@univerjs-pro/docs-formula 1.0.0-insiders.20260729-99504c3
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/README.md +27 -0
- package/lib/cjs/facade.js +1 -0
- package/lib/cjs/index.js +1 -0
- package/lib/es/facade.js +1 -0
- package/lib/es/index.js +1 -0
- package/lib/facade.js +1 -0
- package/lib/index.js +1 -0
- package/lib/types/commands/doc-formula.command.d.ts +11 -0
- package/lib/types/commands/doc-formula.mutation.d.ts +34 -0
- package/lib/types/common/actions.d.ts +41 -0
- package/lib/types/common/const.d.ts +4 -0
- package/lib/types/common/resource.d.ts +6 -0
- package/lib/types/common/type.d.ts +86 -0
- package/lib/types/config/config.d.ts +5 -0
- package/lib/types/controllers/doc-formula-lifecycle.controller.d.ts +16 -0
- package/lib/types/controllers/doc-formula-resource.controller.d.ts +7 -0
- package/lib/types/facade/f-document-formula.d.ts +291 -0
- package/lib/types/facade/f-document-paragraph.d.ts +91 -0
- package/lib/types/facade/f-document-text-range.d.ts +44 -0
- package/lib/types/facade/f-document.d.ts +178 -0
- package/lib/types/facade/index.d.ts +8 -0
- package/lib/types/facade/types.d.ts +128 -0
- package/lib/types/index.d.ts +17 -0
- package/lib/types/models/doc-formula-model.d.ts +25 -0
- package/lib/types/plugin.d.ts +14 -0
- package/lib/types/services/doc-formula-display-text.service.d.ts +39 -0
- package/lib/types/services/doc-formula-last-value-persistence.provider.d.ts +12 -0
- package/lib/types/services/doc-formula.service.d.ts +44 -0
- package/lib/umd/facade.js +1 -0
- package/lib/umd/index.js +1 -0
- package/package.json +87 -0
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import type { IDocFormulaConfig, IDocFormulaResult } from '@univerjs-pro/docs-formula';
|
|
2
|
+
import type { IHostExternalReference } from '@univerjs-pro/engine-formula';
|
|
3
|
+
/**
|
|
4
|
+
* Options shared by every Doc Formula insertion API.
|
|
5
|
+
*
|
|
6
|
+
* `externalReferences` must include a stable Source Unit binding for every
|
|
7
|
+
* external qualifier that is not already present in the Host External
|
|
8
|
+
* Reference Resource. The insertion command validates and persists those
|
|
9
|
+
* bindings atomically with the formula.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* import type { IDocFormulaCreateFacadeOptions } from '@univerjs-pro/docs-formula/facade';
|
|
14
|
+
*
|
|
15
|
+
* export const formulaOptions: IDocFormulaCreateFacadeOptions = {
|
|
16
|
+
* numberFormat: { pattern: '#,##0.00' },
|
|
17
|
+
* externalReferences: [],
|
|
18
|
+
* };
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export interface IDocFormulaCreateFacadeOptions {
|
|
22
|
+
/** Optional Univer number-format pattern used to render the scalar result. */
|
|
23
|
+
numberFormat?: {
|
|
24
|
+
pattern: string;
|
|
25
|
+
};
|
|
26
|
+
/** Stable external Source bindings selected by the formula editor or caller. */
|
|
27
|
+
externalReferences?: readonly IHostExternalReference[];
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Options for replacing a Doc Formula binding.
|
|
31
|
+
*
|
|
32
|
+
* Updating the formula clears its persisted `lastValue`; a subsequent
|
|
33
|
+
* successful calculation session may write a new derived cache value.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* import type { IDocFormulaUpdateFacadeOptions } from '@univerjs-pro/docs-formula/facade';
|
|
38
|
+
*
|
|
39
|
+
* export const formulaUpdate: IDocFormulaUpdateFacadeOptions = {
|
|
40
|
+
* formula: '=SUM(1, 2, 3)',
|
|
41
|
+
* numberFormat: { pattern: '0.00' },
|
|
42
|
+
* };
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export interface IDocFormulaUpdateFacadeOptions extends IDocFormulaCreateFacadeOptions {
|
|
46
|
+
/** Formula text. A leading `=` is recommended and preserved. */
|
|
47
|
+
formula: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Explicit main-body insertion request for headless and deterministic callers.
|
|
51
|
+
*
|
|
52
|
+
* The half-open range `[startOffset, endOffset)` is snapshot-relative and is
|
|
53
|
+
* replaced immediately by one Formula custom range. A collapsed range inserts
|
|
54
|
+
* at the cursor. The range must remain within one legal Doc structural
|
|
55
|
+
* container. For an insertion anchor retained across document edits, use a
|
|
56
|
+
* stable `FDocumentParagraph` handle instead.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* import type { IDocFormulaInsertFacadeOptions } from '@univerjs-pro/docs-formula/facade';
|
|
61
|
+
*
|
|
62
|
+
* export const insertAtStart: IDocFormulaInsertFacadeOptions = {
|
|
63
|
+
* formula: '=40+2',
|
|
64
|
+
* startOffset: 0,
|
|
65
|
+
* endOffset: 0,
|
|
66
|
+
* };
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
export interface IDocFormulaInsertFacadeOptions extends IDocFormulaCreateFacadeOptions {
|
|
70
|
+
/** Exclusive replacement end offset. */
|
|
71
|
+
endOffset: number;
|
|
72
|
+
/** Formula text to calculate. */
|
|
73
|
+
formula: string;
|
|
74
|
+
/** Inclusive replacement start offset. */
|
|
75
|
+
startOffset: number;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Main-body data-stream range occupied by one whole-entity Doc Formula.
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* ```ts
|
|
82
|
+
* import type { IDocFormulaRange } from '@univerjs-pro/docs-formula/facade';
|
|
83
|
+
*
|
|
84
|
+
* export function isCollapsedFormulaRange(range: IDocFormulaRange) {
|
|
85
|
+
* return range.endOffset === range.startOffset + 1;
|
|
86
|
+
* }
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
export interface IDocFormulaRange {
|
|
90
|
+
/** Exclusive end offset. */
|
|
91
|
+
endOffset: number;
|
|
92
|
+
/** Stable custom-range identity. */
|
|
93
|
+
rangeId: string;
|
|
94
|
+
/** Inclusive start offset. */
|
|
95
|
+
startOffset: number;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Agent-friendly snapshot of one Doc Formula and its current presentation.
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* ```ts
|
|
102
|
+
* import type { IDocFormulaInfo } from '@univerjs-pro/docs-formula/facade';
|
|
103
|
+
*
|
|
104
|
+
* export function summarizeFormula(info: IDocFormulaInfo) {
|
|
105
|
+
* return {
|
|
106
|
+
* id: info.rangeId,
|
|
107
|
+
* formula: info.formula,
|
|
108
|
+
* displayText: info.result.text,
|
|
109
|
+
* stale: info.result.stale,
|
|
110
|
+
* };
|
|
111
|
+
* }
|
|
112
|
+
* ```
|
|
113
|
+
*/
|
|
114
|
+
export interface IDocFormulaInfo extends IDocFormulaRange {
|
|
115
|
+
/** Persisted binding, number format, and optional last successful value. */
|
|
116
|
+
config: IDocFormulaConfig;
|
|
117
|
+
/** Editable formula text. */
|
|
118
|
+
formula: string;
|
|
119
|
+
/**
|
|
120
|
+
* Current presentation.
|
|
121
|
+
*
|
|
122
|
+
* A persisted fallback has `source: 'persisted'` and `stale: true`.
|
|
123
|
+
* It is Host content and inherits the Host document's read permissions.
|
|
124
|
+
*/
|
|
125
|
+
result: IDocFormulaResult;
|
|
126
|
+
/** Stable discriminator for agent tooling. */
|
|
127
|
+
type: 'formula';
|
|
128
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { ConvertDocFormulaToTextCommand, InsertDocFormulaCommand, RemoveDocFormulaCommand, ReplaceDocFormulaWithTextCommand, SetDocFormulaNumberFormatCommand, UpdateDocFormulaCommand, } from './commands/doc-formula.command';
|
|
2
|
+
export type { IReplaceDocFormulaWithTextCommandParams, } from './commands/doc-formula.command';
|
|
3
|
+
export { RemoveDocFormulaMutation, SetDocFormulaLastValuesMutation, SetDocFormulaMutation, SetDocFormulaResourceMutation, } from './commands/doc-formula.mutation';
|
|
4
|
+
export type { IRemoveDocFormulaMutationParams, ISetDocFormulaLastValuesMutationParams, ISetDocFormulaMutationParams, ISetDocFormulaResourceMutationParams, } from './commands/doc-formula.mutation';
|
|
5
|
+
export { assertSafeDocFormulaInsertRange, buildInsertDocFormulaActions, buildRemoveDocFormulaActions, buildUpdateDocFormulaActions, findDocFormulaRange, InvalidDocFormulaInsertRangeError, isDocFormulaRange, } from './common/actions';
|
|
6
|
+
export type { IDocFormulaActionBuildResult, IInsertDocFormulaActionParams, IRemoveDocFormulaActionParams, IUpdateDocFormulaActionParams, } from './common/actions';
|
|
7
|
+
export { DOC_FORMULA_CUSTOM_RANGE_KIND, DOC_FORMULA_OBJECT_REPLACEMENT, DOC_FORMULA_PLUGIN, DOC_FORMULA_SCHEMA_VERSION, } from './common/const';
|
|
8
|
+
export { createEmptyDocFormulaResource, isDocFormulaConfig, isDocFormulaResource, isFormulaLastValue, } from './common/resource';
|
|
9
|
+
export { DocFormulaResultStatus, } from './common/type';
|
|
10
|
+
export type { DocFormulaResourceLoadError, IDocFormulaConfig, IDocFormulaInsertCommandParams, IDocFormulaInsertCommandResult, IDocFormulaInsertTarget, IDocFormulaRemoveCommandParams, IDocFormulaResource, IDocFormulaResult, IDocFormulaSetNumberFormatCommandParams, IDocFormulaUpdateCommandParams, } from './common/type';
|
|
11
|
+
export { DocFormulaLifecycleController } from './controllers/doc-formula-lifecycle.controller';
|
|
12
|
+
export { DocFormulaResourceController } from './controllers/doc-formula-resource.controller';
|
|
13
|
+
export { DocFormulaModel } from './models/doc-formula-model';
|
|
14
|
+
export { UniverDocsFormulaPlugin } from './plugin';
|
|
15
|
+
export { degradeDocFormulaDocumentData, DocFormulaDisplayTextService } from './services/doc-formula-display-text.service';
|
|
16
|
+
export { DocFormulaService } from './services/doc-formula.service';
|
|
17
|
+
export type { IDocFormulaIdentity, IDocFormulaPresentationChange, } from './services/doc-formula.service';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { DocFormulaResourceLoadError, IDocFormulaConfig, IDocFormulaResource } from '../common/type';
|
|
2
|
+
import { Disposable } from '@univerjs/core';
|
|
3
|
+
export declare class DocFormulaModel extends Disposable {
|
|
4
|
+
private readonly _resources;
|
|
5
|
+
private readonly _rawResources;
|
|
6
|
+
private readonly _loadErrors;
|
|
7
|
+
private readonly _change$;
|
|
8
|
+
readonly change$: import("rxjs").Observable<{
|
|
9
|
+
unitId: string;
|
|
10
|
+
rangeIds?: readonly string[];
|
|
11
|
+
}>;
|
|
12
|
+
getFormula(unitId: string, rangeId: string): IDocFormulaConfig | undefined;
|
|
13
|
+
getFormulas(unitId: string): Record<string, IDocFormulaConfig>;
|
|
14
|
+
getResource(unitId: string): IDocFormulaResource | undefined;
|
|
15
|
+
setFormula(unitId: string, rangeId: string, config: IDocFormulaConfig): boolean;
|
|
16
|
+
setResource(unitId: string, resource: IDocFormulaResource): boolean;
|
|
17
|
+
setFormulas(unitId: string, configs: Record<string, IDocFormulaConfig>): boolean;
|
|
18
|
+
removeFormula(unitId: string, rangeId: string): boolean;
|
|
19
|
+
load(unitId: string, value: unknown): boolean;
|
|
20
|
+
serialize(unitId: string): unknown;
|
|
21
|
+
getLoadError(unitId: string): DocFormulaResourceLoadError | undefined;
|
|
22
|
+
removeUnit(unitId: string): void;
|
|
23
|
+
dispose(): void;
|
|
24
|
+
private _preserveInvalid;
|
|
25
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { IUniverDocsFormulaConfig } from './config/config';
|
|
2
|
+
import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
3
|
+
export declare class UniverDocsFormulaPlugin extends Plugin {
|
|
4
|
+
private readonly _config;
|
|
5
|
+
readonly _injector: Injector;
|
|
6
|
+
private readonly _commandService;
|
|
7
|
+
private readonly _configService;
|
|
8
|
+
static pluginName: string;
|
|
9
|
+
static packageName: string;
|
|
10
|
+
static version: string;
|
|
11
|
+
static type: UniverInstanceType;
|
|
12
|
+
constructor(_config: IUniverDocsFormulaConfig | undefined, _injector: Injector, _commandService: ICommandService, _configService: IConfigService);
|
|
13
|
+
onStarting(): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { IDocumentData } from '@univerjs/core';
|
|
2
|
+
import { Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
3
|
+
import { DocTextResolverService } from '@univerjs/docs';
|
|
4
|
+
import { DocFormulaService } from './doc-formula.service';
|
|
5
|
+
/**
|
|
6
|
+
* Single display-text authority for non-native Doc Formula consumers.
|
|
7
|
+
*
|
|
8
|
+
* Render, clipboard, search, and screen-reader integrations use the current
|
|
9
|
+
* presentation. External-format projections only consume the persisted
|
|
10
|
+
* lastValue stored in the provided snapshot.
|
|
11
|
+
*/
|
|
12
|
+
export declare class DocFormulaDisplayTextService extends Disposable {
|
|
13
|
+
private readonly _univerInstanceService;
|
|
14
|
+
private readonly _formulaService;
|
|
15
|
+
constructor(_univerInstanceService: IUniverInstanceService, _formulaService: DocFormulaService, textResolverService: DocTextResolverService);
|
|
16
|
+
resolveFormula(unitId: string, rangeId: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* Resolves a half-open main-body interval to plain text.
|
|
19
|
+
*
|
|
20
|
+
* Structural tokens are preserved for the caller's existing text cleanup;
|
|
21
|
+
* only complete Formula object tokens inside the interval are replaced.
|
|
22
|
+
*/
|
|
23
|
+
resolveText(unitId: string, startOffset: number, endOffset: number): string;
|
|
24
|
+
/**
|
|
25
|
+
* Returns a detached snapshot whose Formula objects are formatted text.
|
|
26
|
+
*
|
|
27
|
+
* This external-format projection reads only the persisted lastValue in the
|
|
28
|
+
* provided snapshot. It never triggers calculation or reads a live result.
|
|
29
|
+
* The source snapshot, its native Formula Resource, and Host External
|
|
30
|
+
* Reference Resource remain unchanged.
|
|
31
|
+
*/
|
|
32
|
+
degradeDocumentData(documentData: IDocumentData): IDocumentData;
|
|
33
|
+
/**
|
|
34
|
+
* Projects a detached body to display text, optionally using clipboard
|
|
35
|
+
* fallbacks captured while the Source document was available.
|
|
36
|
+
*/
|
|
37
|
+
degradeBody(unitId: string, body: NonNullable<IDocumentData['body']>, fallbackText?: Readonly<Record<string, string>>): NonNullable<IDocumentData['body']>;
|
|
38
|
+
}
|
|
39
|
+
export declare function degradeDocFormulaDocumentData(documentData: IDocumentData): IDocumentData;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IFormulaLastValuePersistenceProvider } from '@univerjs-pro/engine-formula';
|
|
2
|
+
import type { IMutationInfo } from '@univerjs/core';
|
|
3
|
+
import type { ISetDocFormulaLastValuesMutationParams } from '../commands/doc-formula.mutation';
|
|
4
|
+
import { FormulaCacheEligibilityService, FormulaLastValuePersistenceService } from '@univerjs-pro/engine-formula';
|
|
5
|
+
import { Disposable } from '@univerjs/core';
|
|
6
|
+
import { DocFormulaService } from './doc-formula.service';
|
|
7
|
+
export declare class DocFormulaLastValuePersistenceProvider extends Disposable implements IFormulaLastValuePersistenceProvider {
|
|
8
|
+
private readonly _formulaService;
|
|
9
|
+
private readonly _cacheEligibilityService;
|
|
10
|
+
constructor(_formulaService: DocFormulaService, _cacheEligibilityService: FormulaCacheEligibilityService, persistenceService: FormulaLastValuePersistenceService);
|
|
11
|
+
collectMutations(_sessionId: number): IMutationInfo<ISetDocFormulaLastValuesMutationParams>[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { IFormulaResultPresentation } from '@univerjs-pro/engine-formula';
|
|
2
|
+
import type { DocumentDataModel } from '@univerjs/core';
|
|
3
|
+
import type { IOtherFormulaResult } from '@univerjs/engine-formula';
|
|
4
|
+
import type { IDocFormulaConfig, IDocFormulaResult } from '../common/type';
|
|
5
|
+
import { HostExternalReferenceModel } from '@univerjs-pro/engine-formula';
|
|
6
|
+
import { Disposable } from '@univerjs/core';
|
|
7
|
+
import { RegisterOtherFormulaService } from '@univerjs/engine-formula';
|
|
8
|
+
import { DocFormulaModel } from '../models/doc-formula-model';
|
|
9
|
+
export interface IDocFormulaIdentity {
|
|
10
|
+
unitId: string;
|
|
11
|
+
rangeId: string;
|
|
12
|
+
}
|
|
13
|
+
export interface IDocFormulaPresentationChange extends IDocFormulaIdentity {
|
|
14
|
+
presentation: IFormulaResultPresentation;
|
|
15
|
+
previousPresentation: IFormulaResultPresentation;
|
|
16
|
+
result: IDocFormulaResult;
|
|
17
|
+
previousResult: IDocFormulaResult;
|
|
18
|
+
}
|
|
19
|
+
export declare class DocFormulaService extends Disposable {
|
|
20
|
+
private readonly _model;
|
|
21
|
+
private readonly _registrationService;
|
|
22
|
+
private readonly _hostExternalReferenceModel;
|
|
23
|
+
private readonly _registrations;
|
|
24
|
+
private readonly _formulaKeys;
|
|
25
|
+
private readonly _presentationChanged$;
|
|
26
|
+
readonly presentationChanged$: import("rxjs").Observable<IDocFormulaPresentationChange>;
|
|
27
|
+
constructor(_model: DocFormulaModel, _registrationService: RegisterOtherFormulaService, _hostExternalReferenceModel: HostExternalReferenceModel);
|
|
28
|
+
syncUnit(document: DocumentDataModel): void;
|
|
29
|
+
register(identity: IDocFormulaIdentity, config: IDocFormulaConfig): void;
|
|
30
|
+
unregister(identity: IDocFormulaIdentity): void;
|
|
31
|
+
unregisterUnit(unitId: string): void;
|
|
32
|
+
getPresentation(identity: IDocFormulaIdentity): IFormulaResultPresentation | undefined;
|
|
33
|
+
getResult(identity: IDocFormulaIdentity): IDocFormulaResult | undefined;
|
|
34
|
+
getRegisteredFormulas(): readonly {
|
|
35
|
+
identity: IDocFormulaIdentity;
|
|
36
|
+
config: IDocFormulaConfig;
|
|
37
|
+
liveResult?: IOtherFormulaResult;
|
|
38
|
+
referenceRevision: number;
|
|
39
|
+
}[];
|
|
40
|
+
dispose(): void;
|
|
41
|
+
private _updateFormulaResult;
|
|
42
|
+
private _setPresentation;
|
|
43
|
+
private _deleteRegistration;
|
|
44
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _0x412f(_0x57f415,_0x4c6e03){_0x57f415=_0x57f415-0x166;var _0x3378af=_0x3378();var _0x412f63=_0x3378af[_0x57f415];return _0x412f63;}(function(_0xd5cb7a,_0x22d575){var _0x34a598=_0x412f,_0x2b1a18=_0xd5cb7a();while(!![]){try{var _0x2f5572=-parseInt(_0x34a598(0x18b))/0x1+parseInt(_0x34a598(0x1bb))/0x2+parseInt(_0x34a598(0x1bf))/0x3+-parseInt(_0x34a598(0x1be))/0x4+parseInt(_0x34a598(0x1ae))/0x5+-parseInt(_0x34a598(0x192))/0x6*(-parseInt(_0x34a598(0x1b3))/0x7)+parseInt(_0x34a598(0x1a9))/0x8*(parseInt(_0x34a598(0x1b0))/0x9);if(_0x2f5572===_0x22d575)break;else _0x2b1a18['push'](_0x2b1a18['shift']());}catch(_0x1b5d83){_0x2b1a18['push'](_0x2b1a18['shift']());}}}(_0x3378,0xbeb57),function(_0x40aa41,_0x3e674c){var _0x3c8d17=_0x412f;typeof exports=='object'&&typeof module<'u'?_0x3e674c(exports,require('@univerjs-pro/docs-formula'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define==_0x3c8d17(0x1af)&&define[_0x3c8d17(0x198)]?define([_0x3c8d17(0x17e),_0x3c8d17(0x195),_0x3c8d17(0x177),_0x3c8d17(0x1c3)],_0x3e674c):(_0x40aa41=typeof globalThis<'u'?globalThis:_0x40aa41||self,_0x3e674c(_0x40aa41[_0x3c8d17(0x1ba)]={},_0x40aa41[_0x3c8d17(0x193)],_0x40aa41[_0x3c8d17(0x19f)],_0x40aa41[_0x3c8d17(0x1ad)]));}(this,function(_0x293ab9,_0x23e743,_0x13526e,_0x4af32c){var _0x3d60db=_0x412f;Object[_0x3d60db(0x176)](_0x293ab9,Symbol[_0x3d60db(0x1a5)],{'value':_0x3d60db(0x16c)});function _0x1d2e8b(_0x2130c5,_0xeb6bda){return function(_0x1ed716,_0x582561){_0xeb6bda(_0x1ed716,_0x582561,_0x2130c5);};}function _0x3adf7e(_0x2d57be,_0x740529,_0x265834,_0x59159b){var _0x30c6aa=_0x3d60db,_0x307708=arguments[_0x30c6aa(0x194)],_0xf6cd16=_0x307708<0x3?_0x740529:_0x59159b===null?_0x59159b=Object['getOwnPropertyDescriptor'](_0x740529,_0x265834):_0x59159b,_0x35f60d;if(typeof Reflect==_0x30c6aa(0x18a)&&typeof Reflect['decorate']=='function')_0xf6cd16=Reflect[_0x30c6aa(0x19e)](_0x2d57be,_0x740529,_0x265834,_0x59159b);else{for(var _0x44f097=_0x2d57be['length']-0x1;_0x44f097>=0x0;_0x44f097--)(_0x35f60d=_0x2d57be[_0x44f097])&&(_0xf6cd16=(_0x307708<0x3?_0x35f60d(_0xf6cd16):_0x307708>0x3?_0x35f60d(_0x740529,_0x265834,_0xf6cd16):_0x35f60d(_0x740529,_0x265834))||_0xf6cd16);}return _0x307708>0x3&&_0xf6cd16&&Object['defineProperty'](_0x740529,_0x265834,_0xf6cd16),_0xf6cd16;}let _0x81e37f=class{constructor(_0x4f97dd,_0x1f472a,_0x473763,_0x43b549,_0x1b7361,_0x1bc8f6){var _0x3c1186=_0x3d60db;this[_0x3c1186(0x1b8)]=_0x4f97dd,this[_0x3c1186(0x173)]=_0x1f472a,this[_0x3c1186(0x18e)]=_0x473763,this[_0x3c1186(0x1a4)]=_0x43b549,this['_service']=_0x1b7361,this[_0x3c1186(0x197)]=_0x1bc8f6;}['getId'](){var _0x4ee6a3=_0x3d60db;return this[_0x4ee6a3(0x173)];}[_0x3d60db(0x178)](){var _0x434dd4=_0x3d60db;let _0x4f3e26=this[_0x434dd4(0x1c7)]();return _0x4f3e26?{'endOffset':_0x4f3e26[_0x434dd4(0x189)]+0x1,'rangeId':_0x4f3e26[_0x434dd4(0x175)],'startOffset':_0x4f3e26['startIndex']}:null;}[_0x3d60db(0x1b6)](){var _0x4b8c25=_0x3d60db,_0x30baf6,_0x1752e6;return(_0x30baf6=(_0x1752e6=this['_model']['getFormula'](this[_0x4b8c25(0x1b8)],this[_0x4b8c25(0x173)]))==null?void 0x0:_0x1752e6[_0x4b8c25(0x19b)])==null?'':_0x30baf6;}[_0x3d60db(0x168)](){var _0x21da13=_0x3d60db,_0x5d08af;return(_0x5d08af=this[_0x21da13(0x1a4)][_0x21da13(0x1b6)](this[_0x21da13(0x1b8)],this[_0x21da13(0x173)]))==null?null:_0x5d08af;}['getResult'](){var _0x5947be=_0x3d60db,_0x4f835e;return(_0x4f835e=this['_service']['getResult']({'unitId':this[_0x5947be(0x1b8)],'rangeId':this[_0x5947be(0x173)]}))==null?null:_0x4f835e;}[_0x3d60db(0x196)](){var _0x555de7=_0x3d60db;let _0xdeeb44=this[_0x555de7(0x178)](),_0x320257=this[_0x555de7(0x168)](),_0x3b2395=this[_0x555de7(0x1a8)]();return!_0xdeeb44||!_0x320257||!_0x3b2395?null:{..._0xdeeb44,'config':_0x320257,'formula':_0x320257[_0x555de7(0x19b)],'result':_0x3b2395,'type':_0x555de7(0x19b)};}['update'](_0x3e7127){var _0x42a89f=_0x3d60db;return this[_0x42a89f(0x18e)][_0x42a89f(0x1c9)](_0x23e743[_0x42a89f(0x186)]['id'],{'externalReferences':_0x3e7127[_0x42a89f(0x16d)],'formula':_0x3e7127['formula'],'numberFormat':_0x3e7127[_0x42a89f(0x1b9)],'rangeId':this[_0x42a89f(0x173)],'unitId':this[_0x42a89f(0x1b8)]});}['setNumberFormat'](_0x1cff6c){var _0x1bd212=_0x3d60db;return this[_0x1bd212(0x18e)][_0x1bd212(0x1c9)](_0x23e743[_0x1bd212(0x181)]['id'],{'numberFormat':_0x1cff6c,'rangeId':this[_0x1bd212(0x173)],'unitId':this[_0x1bd212(0x1b8)]});}['remove'](){var _0x1c3d99=_0x3d60db;return this[_0x1c3d99(0x18e)][_0x1c3d99(0x1c9)](_0x23e743[_0x1c3d99(0x1c0)]['id'],{'rangeId':this['_rangeId'],'unitId':this[_0x1c3d99(0x1b8)]});}[_0x3d60db(0x18c)](_0x29a6df){var _0x886d84=_0x3d60db;return this[_0x886d84(0x18e)][_0x886d84(0x1c9)](_0x23e743[_0x886d84(0x19a)]['id'],{'rangeId':this[_0x886d84(0x173)],'text':_0x29a6df,'unitId':this[_0x886d84(0x1b8)]});}['convertToText'](){var _0x482c65=_0x3d60db;return this['_commandService'][_0x482c65(0x1c9)](_0x23e743[_0x482c65(0x1c6)]['id'],{'rangeId':this[_0x482c65(0x173)],'unitId':this['_unitId']});}['_getCustomRange'](){var _0x51c66a=_0x3d60db,_0x46de02;let _0x5f3813=this[_0x51c66a(0x197)][_0x51c66a(0x1a2)](this[_0x51c66a(0x1b8)],_0x13526e[_0x51c66a(0x17a)][_0x51c66a(0x17d)]);return _0x5f3813==null||(_0x46de02=_0x5f3813['getSnapshot']()[_0x51c66a(0x169)])==null||(_0x46de02=_0x46de02[_0x51c66a(0x16a)])==null?void 0x0:_0x46de02[_0x51c66a(0x185)](_0x341f1d=>_0x341f1d['rangeId']===this[_0x51c66a(0x173)]&&(0x0,_0x23e743[_0x51c66a(0x1aa)])(_0x341f1d));}};_0x81e37f=_0x3adf7e([_0x1d2e8b(0x2,_0x13526e[_0x3d60db(0x1cb)]),_0x1d2e8b(0x3,(0x0,_0x13526e[_0x3d60db(0x190)])(_0x23e743[_0x3d60db(0x170)])),_0x1d2e8b(0x4,(0x0,_0x13526e[_0x3d60db(0x190)])(_0x23e743[_0x3d60db(0x1c4)])),_0x1d2e8b(0x5,_0x13526e[_0x3d60db(0x1a6)])],_0x81e37f);function _0x2ee69e(_0x34ace9){'@babel/helpers - typeof';var _0xd38645=_0x3d60db;return _0x2ee69e=typeof Symbol==_0xd38645(0x1af)&&typeof Symbol[_0xd38645(0x1b2)]==_0xd38645(0x1a7)?function(_0x4ed2e2){return typeof _0x4ed2e2;}:function(_0x1a92bc){var _0x3d2896=_0xd38645;return _0x1a92bc&&typeof Symbol=='function'&&_0x1a92bc[_0x3d2896(0x1ca)]===Symbol&&_0x1a92bc!==Symbol[_0x3d2896(0x172)]?'symbol':typeof _0x1a92bc;},_0x2ee69e(_0x34ace9);}function _0x5533a6(_0x49ae44,_0x3a0385){var _0x5b4624=_0x3d60db;if(_0x2ee69e(_0x49ae44)!=_0x5b4624(0x18a)||!_0x49ae44)return _0x49ae44;var _0xbc2ce7=_0x49ae44[Symbol['toPrimitive']];if(_0xbc2ce7!==void 0x0){var _0x558bdb=_0xbc2ce7[_0x5b4624(0x166)](_0x49ae44,_0x3a0385||_0x5b4624(0x179));if(_0x2ee69e(_0x558bdb)!=_0x5b4624(0x18a))return _0x558bdb;throw TypeError(_0x5b4624(0x19c));}return(_0x3a0385===_0x5b4624(0x187)?String:Number)(_0x49ae44);}function _0x427431(_0x14ab69){var _0x3ccea1=_0x3d60db,_0x676ac4=_0x5533a6(_0x14ab69,_0x3ccea1(0x187));return _0x2ee69e(_0x676ac4)==_0x3ccea1(0x1a7)?_0x676ac4:_0x676ac4+'';}function _0x5c4687(_0x3c303e,_0x121038,_0x5cab9c){var _0x531fc8=_0x3d60db;return(_0x121038=_0x427431(_0x121038))in _0x3c303e?Object[_0x531fc8(0x176)](_0x3c303e,_0x121038,{'value':_0x5cab9c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3c303e[_0x121038]=_0x5cab9c,_0x3c303e;}var _0x21a70b=class extends _0x4af32c[_0x3d60db(0x1c2)]{constructor(..._0x4a01c2){var _0x38c658=_0x3d60db;super(..._0x4a01c2),_0x5c4687(this,_0x38c658(0x1b1),void 0x0),_0x5c4687(this,_0x38c658(0x1a0),void 0x0),_0x5c4687(this,_0x38c658(0x191),void 0x0),_0x5c4687(this,_0x38c658(0x174),void 0x0);}[_0x3d60db(0x183)](_0x3001ef){var _0x18d122=_0x3d60db;this[_0x18d122(0x1b1)]=_0x3001ef['get'](_0x13526e['ICommandService']),this[_0x18d122(0x1a0)]=_0x3001ef[_0x18d122(0x184)](_0x23e743[_0x18d122(0x1c5)]),this[_0x18d122(0x191)]=_0x3001ef['get'](_0x23e743[_0x18d122(0x170)]),this['_docsFormulaResourceLoaderService']=_0x3001ef[_0x18d122(0x184)](_0x13526e[_0x18d122(0x18d)]);}[_0x3d60db(0x182)](){var _0x37659f=_0x3d60db;return this[_0x37659f(0x17f)]()['map'](_0x70ae64=>this[_0x37659f(0x1a3)](_0x70ae64['rangeId']));}['getFormula'](_0x248e17){var _0x18144f=_0x3d60db;return this[_0x18144f(0x17f)]()['some'](_0x2998bd=>_0x2998bd[_0x18144f(0x175)]===_0x248e17)?this[_0x18144f(0x1a3)](_0x248e17):null;}[_0x3d60db(0x18f)](_0x7ff646){var _0x32d9b=_0x3d60db;let _0x33d3f1=this[_0x32d9b(0x17f)]()[_0x32d9b(0x185)](_0x4af6d0=>_0x4af6d0[_0x32d9b(0x1b4)]<=_0x7ff646&&_0x7ff646<=_0x4af6d0[_0x32d9b(0x189)]);return _0x33d3f1?this[_0x32d9b(0x1a3)](_0x33d3f1[_0x32d9b(0x175)]):null;}['saveFormulaDisplayTextSnapshot'](){var _0x7265ef=_0x3d60db;let _0x3df126=this[_0x7265ef(0x174)]['saveUnit'](this['id']);if(!_0x3df126)throw Error('Document\x20'+this['id']+_0x7265ef(0x1bc));return this[_0x7265ef(0x1a0)]['degradeDocumentData'](_0x3df126);}[_0x3d60db(0x17c)](_0x3062cc){var _0x406ed7=_0x3d60db;return this['_insert']({'externalReferences':_0x3062cc[_0x406ed7(0x16d)],'formula':_0x3062cc['formula'],'numberFormat':_0x3062cc['numberFormat'],'target':{'type':_0x406ed7(0x180),'startOffset':_0x3062cc['startOffset'],'endOffset':_0x3062cc['endOffset']},'unitId':this[_0x406ed7(0x1a1)]()});}[_0x3d60db(0x19d)](_0x106494){var _0x1b73d7=_0x3d60db;let _0x2de15e=this[_0x1b73d7(0x1b1)][_0x1b73d7(0x1c9)](_0x23e743[_0x1b73d7(0x167)]['id'],_0x106494);return _0x2de15e?this[_0x1b73d7(0x1a3)](_0x2de15e[_0x1b73d7(0x175)]):null;}[_0x3d60db(0x17f)](){var _0x2194f7=_0x3d60db,_0x52fa59,_0x493f11;let _0x58169b=this[_0x2194f7(0x191)][_0x2194f7(0x182)](this['getId']());return(_0x52fa59=(_0x493f11=this[_0x2194f7(0x1c1)]('')[_0x2194f7(0x16a)])==null?void 0x0:_0x493f11[_0x2194f7(0x1b7)](_0x184bee=>(0x0,_0x23e743[_0x2194f7(0x1aa)])(_0x184bee)&&_0x58169b[_0x184bee[_0x2194f7(0x175)]]!=null))==null?[]:_0x52fa59;}[_0x3d60db(0x1a3)](_0x450c05){var _0x1db452=_0x3d60db;return this[_0x1db452(0x171)]['createInstance'](_0x81e37f,this['getId'](),_0x450c05);}};_0x4af32c[_0x3d60db(0x1c2)][_0x3d60db(0x188)](_0x21a70b);var _0x51ad1a=class extends _0x4af32c[_0x3d60db(0x1ab)]{constructor(..._0x43f45f){var _0x1f483d=_0x3d60db;super(..._0x43f45f),_0x5c4687(this,_0x1f483d(0x1b1),void 0x0);}[_0x3d60db(0x183)](_0x64d67e){var _0x3e104d=_0x3d60db;this['_docsFormulaCommandService']=_0x64d67e[_0x3e104d(0x184)](_0x13526e[_0x3e104d(0x1cb)]);}[_0x3d60db(0x17c)](_0x1c7559,_0x365e90,_0x2b0922={}){var _0x47b866=_0x3d60db;return this[_0x47b866(0x19d)](_0x1c7559,_0x365e90,_0x2b0922);}[_0x3d60db(0x16b)](_0x513ab3,_0x4cb0cb={}){var _0x106bc=_0x3d60db;return this[_0x106bc(0x19d)](_0x106bc(0x17b),_0x513ab3,_0x4cb0cb);}['_insert'](_0x561564,_0x4f607a,_0x44313f){var _0x35305c=_0x3d60db;if(this[_0x35305c(0x1bd)]())return null;let _0x23396b={'externalReferences':_0x44313f[_0x35305c(0x16d)],'formula':_0x4f607a,'numberFormat':_0x44313f[_0x35305c(0x1b9)],'target':{'type':_0x35305c(0x1ac),'paragraphId':this[_0x35305c(0x1a1)](),'position':_0x561564},'unitId':this[_0x35305c(0x1c8)][_0x35305c(0x1a1)]()},_0x136049=this[_0x35305c(0x1b1)]['syncExecuteCommand'](_0x23e743[_0x35305c(0x167)]['id'],_0x23396b);return _0x136049?this[_0x35305c(0x171)][_0x35305c(0x199)](_0x81e37f,this[_0x35305c(0x1c8)]['getId'](),_0x136049[_0x35305c(0x175)]):null;}};_0x4af32c[_0x3d60db(0x1ab)][_0x3d60db(0x188)](_0x51ad1a);var _0x346681=class extends _0x4af32c['FDocumentTextRange']{constructor(..._0x1b9a6f){var _0xf2b90b=_0x3d60db;super(..._0x1b9a6f),_0x5c4687(this,_0xf2b90b(0x1b1),void 0x0);}['_initialize'](_0x528a1c){var _0x59518e=_0x3d60db;this[_0x59518e(0x1b1)]=_0x528a1c['get'](_0x13526e['ICommandService']);}[_0x3d60db(0x16f)](_0x404233,_0x192717={}){var _0x53ccd1=_0x3d60db;let {endOffset:_0x5df41c,segmentId:_0x2ed737,startOffset:_0x5799ff}=this['getRange']();return _0x2ed737?null:this[_0x53ccd1(0x19d)](_0x5799ff,_0x5df41c,_0x404233,_0x192717);}[_0x3d60db(0x19d)](_0x3f6065,_0x4bbbc2,_0x25f6d0,_0x5c144b){var _0x1941f8=_0x3d60db;let _0x122de6={'externalReferences':_0x5c144b[_0x1941f8(0x16d)],'formula':_0x25f6d0,'numberFormat':_0x5c144b[_0x1941f8(0x1b9)],'target':{'type':'range','startOffset':_0x3f6065,'endOffset':_0x4bbbc2},'unitId':this[_0x1941f8(0x1c8)][_0x1941f8(0x1a1)]()},_0x2ad1d1=this['_docsFormulaCommandService'][_0x1941f8(0x1c9)](_0x23e743['InsertDocFormulaCommand']['id'],_0x122de6);return _0x2ad1d1?this['_injector'][_0x1941f8(0x199)](_0x81e37f,this[_0x1941f8(0x1c8)][_0x1941f8(0x1a1)](),_0x2ad1d1['rangeId']):null;}};_0x4af32c[_0x3d60db(0x16e)][_0x3d60db(0x188)](_0x346681),Object[_0x3d60db(0x176)](_0x293ab9,_0x3d60db(0x1b5),{'enumerable':!0x0,'get':function(){return _0x81e37f;}});}));function _0x3378(){var _0x59d05f=['FDocumentParagraph','paragraph','UniverDocsFacade','915995dYlClN','function','36KXCDhO','_docsFormulaCommandService','iterator','14tFhDTy','startIndex','FDocumentFormula','getFormula','filter','_unitId','numberFormat','UniverProDocsFormulaFacade','1182522FFBCiQ','\x20could\x20not\x20be\x20serialized.','getSegmentId','3695552QlLxWd','1339125txMTpG','RemoveDocFormulaCommand','getBody','FDocument','@univerjs/docs/facade','DocFormulaService','DocFormulaDisplayTextService','ConvertDocFormulaToTextCommand','_getCustomRange','_document','syncExecuteCommand','constructor','ICommandService','call','InsertDocFormulaCommand','getConfig','body','customRanges','appendFormula','Module','externalReferences','FDocumentTextRange','replaceWithFormula','DocFormulaModel','_injector','prototype','_rangeId','_docsFormulaResourceLoaderService','rangeId','defineProperty','@univerjs/core','getRange','default','UniverInstanceType','end','insertFormula','UNIVER_DOC','exports','_getCompleteRanges','range','SetDocFormulaNumberFormatCommand','getFormulas','_initialize','get','find','UpdateDocFormulaCommand','string','extend','endIndex','object','1494338nmLcLK','replaceWithText','IResourceLoaderService','_commandService','getFormulaAt','Inject','_docsFormulaModel','800298pxyffY','UniverProDocsFormula','length','@univerjs-pro/docs-formula','describe','_univerInstanceService','amd','createInstance','ReplaceDocFormulaWithTextCommand','formula','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_insert','decorate','UniverCore','_docsFormulaDisplayTextService','getId','getUnit','_createFormula','_model','toStringTag','IUniverInstanceService','symbol','getResult','3423536KJtYZC','isDocFormulaRange'];_0x3378=function(){return _0x59d05f;};return _0x3378();}
|
package/lib/umd/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _0xac3d(_0x3b38d0,_0x58d5cb){_0x3b38d0=_0x3b38d0-0xfd;const _0x5791f1=_0x5791();let _0xac3d8e=_0x5791f1[_0x3b38d0];return _0xac3d8e;}function _0x5791(){const _0x2cefef=['docs-formula.command.replace-with-text','nextDocumentData','TextX','shiftExclusiveRangeOnDelete','_presentationChanged$','max','default','customRanges','resolveText','kind','docs-formula.mutation.set-last-values','body','externalMutations','paragraph','redoMutation','pluginName','getBody','defineProperty','next','schemaVersion','eligible','16SfZnWw','paragraphs','formulaId','deepClone','CellValueType','docs-formula.mutation.remove-formula','status','getFormulaValueSync','IUniverInstanceService','cell','SECTION_BREAK','TABLE_ROW_START','resourceRedo','ConvertDocFormulaToTextCommand','DocSelectionManagerService','dataStream','docs-formula.config','symbol','@univerjs-pro/license','_preserveInvalid','PARAGRAPH','toPrimitive','505407XJHEEb','DataStreamTreeTokenType','stringify','undoMutation','pattern','DOC_FORMULA_SCHEMA_VERSION','empty','5215312ZBYbOb','shiftInclusiveRangeOnInsert','slice','editOp','setFormulas','790316ASkRmc','resources','TABLE_ROW_END','every','COLUMN_GROUP_START','externalReferences','7tVPzDW','model','UpdateDocFormulaCommand','IConfigService','JSONX','referenceRevision','clear','createEmptyDocFormulaResource','amd','TABLE_START','exports','data','presentationChanged$','_updateFormulaResult','retain','unsupported-version','DOC_FORMULA_CUSTOM_RANGE_KIND','setFormula','endsWith','number','EMPTY','set','documentRedo','change$','UNIVER_DOC','SetDocFormulaMutation','ReplaceDocFormulaWithTextCommand','InvalidDocFormulaInsertRangeError','start','_model','DOC_SELECTION_OPTION_PRESERVE_CARET','getUnitId','TABLE_CELL_END','string','previousResource','_resourceManagerService','tables','segmentId','columnGroups','COMMAND','assign','RemoveDocFormulaMutation','delete','FormulaResultStatus','removeUnit','source','rangeType','unregisterUnit','register','degradeDocFormulaDocumentData','startOffset','sequenceNodesBuilder','UniverDocsPlugin','resourceUndo','getAllUnitsForType','registerFormulaWithRange','ERROR','position','success','color','notifyTextChanged','resolveFormula','SetDocFormulaResourceMutation','syncUnit','range','getParagraphContentStartOffset','function','resource','assess','asObservable','DocFormulaModel','_injector','InsertDocFormulaCommand','RegisterOtherFormulaService','UniverLicensePlugin','_loadErrors','CustomRangeType','SUCCESS','DependentOn','length','unitAdded$','endIndex','SetDocFormulaNumberFormatCommand','get','sort','Plugin','trigger','MUTATION','LexerTreeBuilder','from','textRuns','expectedFormula','_instanceService','toFormulaLastValue','UniverEngineFormula','customBlocks','some','DocFormulaLifecycleController','@univerjs/core','text','error','getRegisteredFormulas','setResource','DocFormulaDisplayTextService','object','customDecorations','stale','unitDisposed$','getFormulas','isInteger','document','resolved','presentation','_registrationService','setConfig','collectFormulaExternalReferenceQualifiers','buildUpsertHostExternalReferenceMutations','_setPresentation','call','188440TnJpQj','forEach','trim','formula','degradeBody','degradeDocumentData','UniverProLicense','pending','type','isArray','Subject','onCommandExecuted','cursorOffset','_cacheEligibilityService','getRevision','unitId','unregister','sectionBreaks','2648652YstcHD','lastValue','CommandType','previousDocumentData','_hostExternalReferenceModel','83358RRwTyH','touchDependencies','includes','config','insert','buildUpdateDocFormulaActions','getUnit','min','COLUMN_GROUP_END','isFormulaLastValue','RichTextEditingMutation','syncExecuteCommand','serialize','expectedReferenceRevision','Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.','PENDING','_change$','1.0.0-insiders.20260729-99504c3','selection','liveResult','docs-formula.command.set-number-format','Injector','_commandService','subscribe','480SWRNUR','values','_syncScheduled','formulaResult$','startIndex','_formulaService','replaceDocRanges','add','expectedNumberFormat','UniverInstanceType','DOC','Tools','RemoveDocFormulaCommand','SetDocFormulaLastValuesMutation','entries','207981cPJgGG','BLOCK_END','registerCommand','docs-formula.command.update','merge','docs-formula.command.convert-to-text','deleteLength','_syncUnit','_deleteRegistration','_resources','Inject','getPresentation','_config','DocFormulaResourceController','CUSTOM','filter','_pendingUnitIds','numberFormat','UniverCore','fromEntries','getResource','_service','buildInsertDocFormulaActions','@univerjs-pro/docs-formula','wholeEntity','findDocFormulaRange','has','updates','resolveHostFormulaExternalReferences','identity','boolean','Module','rangeId','find','map','params','UniverProEngineFormula','ICommandService','DOC_FORMULA_PLUGIN','_formulaKeys','getResult','_queueSync','nextResource','end','decorate','FormulaCacheEligibilityService','_isDisposed','blockRanges','_configService','prototype','isDocFormulaResource','documentData','HostExternalReferenceModel','insertLength','getTextRanges','paragraphId','docs-formula.mutation.set-formula','_rawResources','IUndoRedoService','accessor','getCustomRangeInterval','TABLE_END','_registrations','formulas','dispose','UniverProFormulaEnginePlugin','getRichTextEditPath','deleteFormula','resolveFormulaResultPresentation','disposeWithMe','getBodySliceForTextXAction','getFormula','rxjs','Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries','_docFormulaModel','properties','Disposable','iterator','endOffset','getScalarFormulaResultCell','CUSTOM_BLOCK','keys','DocFormulaService'];_0x5791=function(){return _0x2cefef;};return _0x5791();}(function(_0x16c250,_0x20ca27){const _0x22ff2c=_0xac3d,_0x53bfb3=_0x16c250();while(!![]){try{const _0x5a4361=-parseInt(_0x22ff2c(0x1d4))/0x1+parseInt(_0x22ff2c(0x1be))/0x2*(parseInt(_0x22ff2c(0x156))/0x3)+-parseInt(_0x22ff2c(0x1e0))/0x4+parseInt(_0x22ff2c(0x118))/0x5+parseInt(_0x22ff2c(0x12a))/0x6+-parseInt(_0x22ff2c(0x1e6))/0x7*(-parseInt(_0x22ff2c(0x1db))/0x8)+-parseInt(_0x22ff2c(0x12f))/0x9*(parseInt(_0x22ff2c(0x147))/0xa);if(_0x5a4361===_0x20ca27)break;else _0x53bfb3['push'](_0x53bfb3['shift']());}catch(_0xf21e42){_0x53bfb3['push'](_0x53bfb3['shift']());}}}(_0x5791,0x835f2),function(_0xca5048,_0x1211f4){const _0x3f0c15=_0xac3d;typeof exports=='object'&&typeof module<'u'?_0x1211f4(exports,require('@univerjs-pro/engine-formula'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/engine-formula'),require('rxjs'),require('@univerjs-pro/license')):typeof define==_0x3f0c15(0x228)&&define[_0x3f0c15(0x1ee)]?define([_0x3f0c15(0x1f0),'@univerjs-pro/engine-formula',_0x3f0c15(0x103),'@univerjs/docs','@univerjs/engine-formula',_0x3f0c15(0x19e),_0x3f0c15(0x1d0)],_0x1211f4):(_0xca5048=typeof globalThis<'u'?globalThis:_0xca5048||self,_0x1211f4(_0xca5048['UniverProDocsFormula']={},_0xca5048[_0x3f0c15(0x17a)],_0xca5048[_0x3f0c15(0x168)],_0xca5048['UniverDocs'],_0xca5048[_0x3f0c15(0xff)],_0xca5048[_0x3f0c15(0x19e)],_0xca5048[_0x3f0c15(0x11e)]));}(this,function(_0x20544e,_0xa093d0,_0x2ac10b,_0x190834,_0x501c5b,_0x7392e3,_0x4e9623){const _0x8bdc9=_0xac3d;Object[_0x8bdc9(0x1ba)](_0x20544e,Symbol['toStringTag'],{'value':_0x8bdc9(0x175)});let _0x249a09=_0x8bdc9(0x17c),_0x5c3e0a='univer-docs-formula';function _0x7fafb9(){return{'schemaVersion':0x1,'formulas':{}};}function _0x40f6be(_0x376873){const _0x944c22=_0x8bdc9;return!_0x376873||typeof _0x376873!=_0x944c22(0x109)||!_0x1de54a(_0x376873,[_0x944c22(0x1bc),'formulas'])||!(_0x944c22(0x1bc)in _0x376873)||_0x376873[_0x944c22(0x1bc)]!==0x1||!(_0x944c22(0x195)in _0x376873)||!_0x376873[_0x944c22(0x195)]||typeof _0x376873[_0x944c22(0x195)]!=_0x944c22(0x109)||Array[_0x944c22(0x121)](_0x376873[_0x944c22(0x195)])?!0x1:Object[_0x944c22(0x155)](_0x376873[_0x944c22(0x195)])[_0x944c22(0x1e3)](([_0x444d65,_0x513579])=>_0x444d65[_0x944c22(0x235)]>0x0&&_0x5d9cd9(_0x513579));}function _0x5d9cd9(_0x36342f){const _0x248036=_0x8bdc9;return!_0x36342f||typeof _0x36342f!=_0x248036(0x109)||!_0x1de54a(_0x36342f,[_0x248036(0x11b),'numberFormat',_0x248036(0x12b)])||!('formula'in _0x36342f)||typeof _0x36342f[_0x248036(0x11b)]!=_0x248036(0x207)||!_0x36342f[_0x248036(0x11b)]['trim']()||_0x248036(0x167)in _0x36342f&&_0x36342f['numberFormat']!=null&&(typeof _0x36342f[_0x248036(0x167)]!=_0x248036(0x109)||!_0x1de54a(_0x36342f[_0x248036(0x167)],['pattern'])||!(_0x248036(0x1d8)in _0x36342f['numberFormat'])||typeof _0x36342f[_0x248036(0x167)][_0x248036(0x1d8)]!=_0x248036(0x207))?!0x1:!(_0x248036(0x12b)in _0x36342f)||_0x36342f[_0x248036(0x12b)]==null||_0x47834a(_0x36342f[_0x248036(0x12b)]);}function _0x47834a(_0x38a5ab){const _0x51f351=_0x8bdc9;return!_0x38a5ab||typeof _0x38a5ab!=_0x51f351(0x109)||!_0x1de54a(_0x38a5ab,['v','t','pattern'])||!('v'in _0x38a5ab)||_0x38a5ab['v']!==null&&typeof _0x38a5ab['v']!=_0x51f351(0x207)&&typeof _0x38a5ab['v']!='number'&&typeof _0x38a5ab['v']!=_0x51f351(0x174)||'t'in _0x38a5ab&&_0x38a5ab['t']!=null&&!_0x52159f(_0x38a5ab['t'])?!0x1:!('pattern'in _0x38a5ab)||_0x38a5ab[_0x51f351(0x1d8)]==null||typeof _0x38a5ab['pattern']==_0x51f351(0x207);}function _0x1de54a(_0x219a1a,_0x115a4b){const _0x53580f=_0x8bdc9;let _0x416f09=new Set(_0x115a4b);return Object[_0x53580f(0x1a7)](_0x219a1a)[_0x53580f(0x1e3)](_0x2287f3=>_0x416f09[_0x53580f(0x170)](_0x2287f3));}function _0x52159f(_0xa76d21){const _0x51827d=_0x8bdc9;return typeof _0xa76d21==_0x51827d(0x1f9)&&Object[_0x51827d(0x148)](_0x2ac10b[_0x51827d(0x1c2)])[_0x51827d(0x131)](_0xa76d21);}let _0x2c0741=new Set([_0x2ac10b[_0x8bdc9(0x1d5)][_0x8bdc9(0x1c8)],_0x2ac10b[_0x8bdc9(0x1d5)][_0x8bdc9(0x1ef)],_0x2ac10b[_0x8bdc9(0x1d5)][_0x8bdc9(0x1c9)],_0x2ac10b[_0x8bdc9(0x1d5)]['TABLE_CELL_START'],_0x2ac10b[_0x8bdc9(0x1d5)][_0x8bdc9(0x206)],_0x2ac10b[_0x8bdc9(0x1d5)][_0x8bdc9(0x1e2)],_0x2ac10b[_0x8bdc9(0x1d5)][_0x8bdc9(0x193)],_0x2ac10b['DataStreamTreeTokenType'][_0x8bdc9(0x1e4)],_0x2ac10b[_0x8bdc9(0x1d5)]['COLUMN_START'],_0x2ac10b['DataStreamTreeTokenType']['COLUMN_END'],_0x2ac10b[_0x8bdc9(0x1d5)][_0x8bdc9(0x137)],_0x2ac10b['DataStreamTreeTokenType']['BLOCK_START'],_0x2ac10b[_0x8bdc9(0x1d5)][_0x8bdc9(0x157)],_0x2ac10b[_0x8bdc9(0x1d5)][_0x8bdc9(0x1a6)]]);var _0x43dabf=class extends Error{constructor(){const _0x2a2973=_0x8bdc9;super(_0x2a2973(0x19f));}};function _0x26ee81(_0x25eec1){const _0x524f9c=_0x8bdc9;var _0x203d1c,_0x459e55,_0x42d654,_0x1f77e9;let _0x23989a=_0x2ac10b['Tools'][_0x524f9c(0x1c1)](_0x25eec1[_0x524f9c(0x189)]),_0x4dab9c=_0x3c9226(_0x23989a),{startOffset:_0x3a1985,endOffset:_0x330479}=_0x16bc4f(_0x4dab9c,_0x25eec1[_0x524f9c(0x218)],_0x25eec1['endOffset']);_0x15ec0d(_0x4dab9c,_0x3a1985,_0x330479);let _0x3c4d13=(_0x203d1c=(_0x459e55=_0x4dab9c[_0x524f9c(0x1b0)])==null?void 0x0:_0x459e55[_0x524f9c(0x165)](_0xe5fa05=>{const _0xc686f=_0x524f9c;if(!_0x567947(_0xe5fa05))return!0x1;let _0x59e81e=(0x0,_0x2ac10b[_0xc686f(0x192)])(_0xe5fa05);return _0x59e81e[_0xc686f(0x1a4)]>_0x3a1985&&_0x59e81e[_0xc686f(0x218)]<_0x330479;})[_0x524f9c(0x178)](_0x2cfb5f=>_0x2cfb5f['rangeId']))==null?[]:_0x203d1c;_0x321539(_0x4dab9c,_0x3a1985,_0x330479,''),_0x4dab9c['customRanges']=[...(_0x42d654=(_0x1f77e9=_0x4dab9c[_0x524f9c(0x1b0)])==null?void 0x0:_0x1f77e9[_0x524f9c(0x165)](_0x2a1001=>!_0x3c4d13[_0x524f9c(0x131)](_0x2a1001[_0x524f9c(0x176)])&&_0x2a1001['rangeId']!==_0x25eec1[_0x524f9c(0x176)]))==null?[]:_0x42d654,_0x555e44(_0x25eec1[_0x524f9c(0x176)],_0x3a1985)]['sort']((_0x31dca5,_0x4f7a46)=>_0x31dca5[_0x524f9c(0x14b)]-_0x4f7a46[_0x524f9c(0x14b)]);let _0xee3626=_0x417c5a(_0x25eec1['resource']);return _0x3c4d13[_0x524f9c(0x119)](_0x8aa8dd=>{const _0x4d33f9=_0x524f9c;delete _0xee3626[_0x4d33f9(0x195)][_0x8aa8dd];}),_0xee3626[_0x524f9c(0x195)][_0x25eec1['rangeId']]=_0x2ac10b['Tools'][_0x524f9c(0x1c1)](_0x25eec1['config']),{'nextDocumentData':_0x23989a,'nextResource':_0xee3626,'cursorOffset':_0x3a1985+0x1};}function _0x3d1cf5(_0x275543){const _0x315fbb=_0x8bdc9;var _0x347515,_0x149638;let _0x31690d=_0x2ac10b[_0x315fbb(0x152)]['deepClone'](_0x275543[_0x315fbb(0x189)]),_0x1bc9fa=(_0x347515=_0x3c9226(_0x31690d)[_0x315fbb(0x1b0)])==null?void 0x0:_0x347515[_0x315fbb(0x177)](_0x2df85c=>_0x2df85c[_0x315fbb(0x176)]===_0x275543[_0x315fbb(0x176)]&&_0x567947(_0x2df85c));if(!_0x1bc9fa||!((_0x149638=_0x275543['resource'])!=null&&_0x149638[_0x315fbb(0x195)][_0x275543[_0x315fbb(0x176)]]))return null;let _0x11200a=_0x417c5a(_0x275543[_0x315fbb(0x229)]);return _0x11200a[_0x315fbb(0x195)][_0x275543[_0x315fbb(0x176)]]=_0x2ac10b[_0x315fbb(0x152)][_0x315fbb(0x1c1)](_0x275543['config']),{'nextDocumentData':_0x31690d,'nextResource':_0x11200a,'cursorOffset':_0x1bc9fa[_0x315fbb(0x237)]+0x1};}function _0x3e9203(_0x2a35e8){const _0x816e9a=_0x8bdc9;var _0x1de647;let _0x37aa47=_0x2ac10b[_0x816e9a(0x152)]['deepClone'](_0x2a35e8['documentData']),_0x5d51cd=_0x4af688(_0x37aa47,_0x2a35e8[_0x816e9a(0x176)],(_0x1de647=_0x2a35e8[_0x816e9a(0x104)])==null?'':_0x1de647);if(_0x5d51cd==null)return null;let _0x4fa432=_0x417c5a(_0x2a35e8['resource']);return delete _0x4fa432[_0x816e9a(0x195)][_0x2a35e8[_0x816e9a(0x176)]],{'nextDocumentData':_0x37aa47,'nextResource':_0x4fa432,'cursorOffset':_0x5d51cd};}function _0x241d0d(_0x38c783,_0x3baf9d){const _0x2408b8=_0x8bdc9;var _0x4a3b8e,_0x3752b3;let _0x25f419=_0x2ac10b[_0x2408b8(0x152)][_0x2408b8(0x1c1)](_0x38c783),_0x52974c=_0x25f419[_0x2408b8(0x1b4)];if(!_0x52974c)return _0x25f419;let _0x204765=new Map(_0x3baf9d[_0x2408b8(0x178)](_0x4e3368=>[_0x4e3368[_0x2408b8(0x176)],_0x4e3368['text']])),_0x5ea375=(_0x4a3b8e=(_0x3752b3=_0x52974c[_0x2408b8(0x1b0)])==null?void 0x0:_0x3752b3[_0x2408b8(0x165)](_0x174994=>_0x567947(_0x174994)&&_0x204765[_0x2408b8(0x170)](_0x174994[_0x2408b8(0x176)]))[_0x2408b8(0x23a)]((_0x221c9a,_0x3ba293)=>_0x3ba293[_0x2408b8(0x14b)]-_0x221c9a[_0x2408b8(0x14b)]))==null?[]:_0x4a3b8e;for(let _0x14de64 of _0x5ea375){var _0x47b9ee;_0x4af688(_0x25f419,_0x14de64[_0x2408b8(0x176)],(_0x47b9ee=_0x204765['get'](_0x14de64[_0x2408b8(0x176)]))==null?'':_0x47b9ee);}return _0x25f419;}function _0x567947(_0x54a18e){const _0x48f274=_0x8bdc9;var _0x27a663;return(_0x54a18e==null?void 0x0:_0x54a18e[_0x48f274(0x214)])===_0x2ac10b[_0x48f274(0x232)][_0x48f274(0x164)]&&_0x54a18e[_0x48f274(0x16e)]===!0x0&&((_0x27a663=_0x54a18e[_0x48f274(0x1a1)])==null?void 0x0:_0x27a663[_0x48f274(0x1b2)])==='univer-docs-formula';}function _0x3e72e9(_0x4ec69a,_0x2dbdf8){const _0x2f0084=_0x8bdc9;var _0x1e4cf9;return _0x4ec69a==null||(_0x1e4cf9=_0x4ec69a[_0x2f0084(0x1b0)])==null?void 0x0:_0x1e4cf9[_0x2f0084(0x177)](_0x11cc18=>_0x11cc18[_0x2f0084(0x176)]===_0x2dbdf8&&_0x567947(_0x11cc18));}function _0x15ec0d(_0x1288bb,_0x27a7c9,_0x1f842d){const _0x46daf4=_0x8bdc9;if(_0x27a7c9===_0x1f842d){if(_0x2c0741['has'](_0x1288bb[_0x46daf4(0x1cd)][_0x27a7c9]))throw new _0x43dabf();return;}for(let _0x28b954=_0x27a7c9;_0x28b954<_0x1f842d;_0x28b954++)if(_0x1288bb[_0x46daf4(0x1cd)][_0x28b954]===_0x2ac10b['DataStreamTreeTokenType'][_0x46daf4(0x1d2)]||_0x2c0741['has'](_0x1288bb['dataStream'][_0x28b954]))throw new _0x43dabf();}function _0x555e44(_0x3b0cd2,_0x107333){const _0x1433c1=_0x8bdc9;return{'startIndex':_0x107333,'endIndex':_0x107333,'rangeId':_0x3b0cd2,'rangeType':_0x2ac10b[_0x1433c1(0x232)]['CUSTOM'],'wholeEntity':!0x0,'properties':{'kind':_0x5c3e0a}};}function _0x417c5a(_0x8ffe9f){const _0x3eb935=_0x8bdc9;return _0x8ffe9f?_0x2ac10b['Tools'][_0x3eb935(0x1c1)](_0x8ffe9f):_0x7fafb9();}function _0x16bc4f(_0x32e2da,_0x513703,_0x2d9270){let _0x12dc60=_0x383e2d(_0x32e2da),_0x215d71=_0x513703==null?_0x12dc60:_0x513703,_0x1b3893=_0x2d9270==null?_0x215d71:_0x2d9270;return{'startOffset':_0x4de56b(Math['min'](_0x215d71,_0x1b3893),_0x12dc60),'endOffset':_0x4de56b(Math['max'](_0x215d71,_0x1b3893),_0x12dc60)};}function _0x4de56b(_0x282dd2,_0x508fe8){const _0x1baa78=_0x8bdc9;return Math[_0x1baa78(0x1ae)](0x0,Math[_0x1baa78(0x136)](_0x282dd2,_0x508fe8));}function _0x383e2d(_0x5e4a6e){const _0x252c2e=_0x8bdc9;return _0x5e4a6e[_0x252c2e(0x1cd)]['endsWith'](''+_0x2ac10b[_0x252c2e(0x1d5)][_0x252c2e(0x1d2)]+_0x2ac10b[_0x252c2e(0x1d5)]['SECTION_BREAK'])?Math[_0x252c2e(0x1ae)](0x0,_0x5e4a6e[_0x252c2e(0x1cd)][_0x252c2e(0x235)]-0x2):_0x5e4a6e[_0x252c2e(0x1cd)][_0x252c2e(0x1f8)](_0x2ac10b['DataStreamTreeTokenType']['SECTION_BREAK'])?Math[_0x252c2e(0x1ae)](0x0,_0x5e4a6e[_0x252c2e(0x1cd)][_0x252c2e(0x235)]-0x1):_0x5e4a6e[_0x252c2e(0x1cd)][_0x252c2e(0x235)];}function _0x321539(_0x4cf8e0,_0x387151,_0x5e4a98,_0x1e354f){_0x5e4a98>_0x387151&&_0x36d0f6(_0x4cf8e0,_0x387151,_0x5e4a98),_0x540892(_0x4cf8e0,_0x387151,_0x1e354f);}function _0x4af688(_0x92ec95,_0x2c51b2,_0x2cf7cc){const _0x582d34=_0x8bdc9;var _0x48525f,_0x104f5e;let _0x5a1f2a=_0x3c9226(_0x92ec95),_0x386ae4=(_0x48525f=_0x5a1f2a[_0x582d34(0x1b0)])==null?void 0x0:_0x48525f['find'](_0x5b5ac3=>_0x5b5ac3[_0x582d34(0x176)]===_0x2c51b2&&_0x567947(_0x5b5ac3));if(!_0x386ae4)return null;let _0x3b3117=(0x0,_0x2ac10b['getCustomRangeInterval'])(_0x386ae4);return _0x321539(_0x5a1f2a,_0x3b3117[_0x582d34(0x218)],_0x3b3117[_0x582d34(0x1a4)],_0x2cf7cc),_0x5a1f2a[_0x582d34(0x1b0)]=(_0x104f5e=_0x5a1f2a['customRanges'])==null?void 0x0:_0x104f5e[_0x582d34(0x165)](_0x14957c=>_0x14957c[_0x582d34(0x176)]!==_0x2c51b2),_0x3b3117['startOffset']+_0x2cf7cc[_0x582d34(0x235)];}function _0x540892(_0x30affa,_0x4abb93,_0x14013c){const _0x1a8882=_0x8bdc9;_0x14013c&&(_0x30affa[_0x1a8882(0x1cd)]=''+_0x30affa[_0x1a8882(0x1cd)]['slice'](0x0,_0x4abb93)+_0x14013c+_0x30affa['dataStream']['slice'](_0x4abb93),_0x18051c(_0x30affa,_0x4abb93,_0x14013c['length']));}function _0x36d0f6(_0x366671,_0x4ef4cf,_0x14ae17){const _0xe0f900=_0x8bdc9;let _0x2e172e=_0x14ae17-_0x4ef4cf;_0x366671[_0xe0f900(0x1cd)]=''+_0x366671['dataStream']['slice'](0x0,_0x4ef4cf)+_0x366671[_0xe0f900(0x1cd)][_0xe0f900(0x1dd)](_0x14ae17),_0x1cf39e(_0x366671,_0x4ef4cf,_0x2e172e);}function _0x18051c(_0x1007a1,_0x403b0c,_0x8769b2){const _0x1bb3c2=_0x8bdc9;_0x1007a1['paragraphs']=_0x5532c9(_0x1007a1['paragraphs'],_0x403b0c,_0x8769b2),_0x1007a1[_0x1bb3c2(0x129)]=_0x5532c9(_0x1007a1[_0x1bb3c2(0x129)],_0x403b0c,_0x8769b2),_0x1007a1[_0x1bb3c2(0x100)]=_0x5532c9(_0x1007a1[_0x1bb3c2(0x100)],_0x403b0c,_0x8769b2),_0x1007a1[_0x1bb3c2(0x240)]=_0x2c3aab(_0x1007a1[_0x1bb3c2(0x240)],_0x403b0c,_0x8769b2),_0x1007a1[_0x1bb3c2(0x20a)]=_0x31d7a0(_0x1007a1[_0x1bb3c2(0x20a)],_0x403b0c,_0x8769b2),_0x1007a1[_0x1bb3c2(0x20c)]=_0x98f08b(_0x1007a1['columnGroups'],_0x403b0c,_0x8769b2),_0x1007a1[_0x1bb3c2(0x1b0)]=_0x98f08b(_0x1007a1[_0x1bb3c2(0x1b0)],_0x403b0c,_0x8769b2),_0x1007a1[_0x1bb3c2(0x10a)]=_0x98f08b(_0x1007a1[_0x1bb3c2(0x10a)],_0x403b0c,_0x8769b2),_0x1007a1['blockRanges']=_0x98f08b(_0x1007a1[_0x1bb3c2(0x185)],_0x403b0c,_0x8769b2);}function _0x1cf39e(_0x4faa41,_0x5e0506,_0x209d3a){const _0x34db43=_0x8bdc9;var _0x57d346,_0x33825c;_0x4faa41[_0x34db43(0x1bf)]=_0x4b0229(_0x4faa41[_0x34db43(0x1bf)],_0x5e0506,_0x209d3a),_0x4faa41[_0x34db43(0x129)]=_0x4b0229(_0x4faa41[_0x34db43(0x129)],_0x5e0506,_0x209d3a),_0x4faa41['customBlocks']=_0x4b0229(_0x4faa41[_0x34db43(0x100)],_0x5e0506,_0x209d3a),_0x4faa41[_0x34db43(0x240)]=(_0x57d346=_0x23efa5((_0x33825c=_0x4faa41[_0x34db43(0x240)])==null?void 0x0:_0x33825c['map'](_0x82c5=>({..._0x82c5,'startIndex':_0x82c5['st'],'endIndex':_0x82c5['ed']})),_0x5e0506,_0x209d3a))==null?void 0x0:_0x57d346[_0x34db43(0x178)](_0x499aeb=>{let {startIndex:_0x3720f8,endIndex:_0x5346c7,..._0x22c716}=_0x499aeb;return{..._0x22c716,'st':_0x3720f8,'ed':_0x5346c7};}),_0x4faa41['tables']=_0x23efa5(_0x4faa41[_0x34db43(0x20a)],_0x5e0506,_0x209d3a),_0x4faa41[_0x34db43(0x20c)]=_0xd380f9(_0x4faa41[_0x34db43(0x20c)],_0x5e0506,_0x209d3a),_0x4faa41[_0x34db43(0x1b0)]=_0xd380f9(_0x4faa41[_0x34db43(0x1b0)],_0x5e0506,_0x209d3a),_0x4faa41[_0x34db43(0x10a)]=_0xd380f9(_0x4faa41['customDecorations'],_0x5e0506,_0x209d3a),_0x4faa41['blockRanges']=_0xd380f9(_0x4faa41[_0x34db43(0x185)],_0x5e0506,_0x209d3a);}function _0x5532c9(_0x55d79b,_0x5249dd,_0x2f7385){const _0x3d6f27=_0x8bdc9;return _0x55d79b==null?void 0x0:_0x55d79b[_0x3d6f27(0x178)](_0x4b63c5=>_0x4b63c5[_0x3d6f27(0x14b)]>=_0x5249dd?{..._0x4b63c5,'startIndex':_0x4b63c5['startIndex']+_0x2f7385}:_0x4b63c5);}function _0x4b0229(_0x5902b1,_0x36c5a3,_0x1ec3d4){const _0x55adb3=_0x8bdc9;let _0x5824f0=_0x36c5a3+_0x1ec3d4;return _0x5902b1==null?void 0x0:_0x5902b1[_0x55adb3(0x178)](_0x28426c=>_0x28426c['startIndex']>=_0x36c5a3&&_0x28426c['startIndex']<_0x5824f0?null:_0x28426c[_0x55adb3(0x14b)]>=_0x5824f0?{..._0x28426c,'startIndex':_0x28426c[_0x55adb3(0x14b)]-_0x1ec3d4}:_0x28426c)[_0x55adb3(0x165)](_0x107e01=>_0x107e01!=null);}function _0x2c3aab(_0x143935,_0xed899d,_0x125783){const _0x39970f=_0x8bdc9;return _0x143935==null?void 0x0:_0x143935[_0x39970f(0x178)](_0x307f30=>_0x307f30['st']>=_0xed899d?{..._0x307f30,'st':_0x307f30['st']+_0x125783,'ed':_0x307f30['ed']+_0x125783}:_0x307f30['ed']>_0xed899d?{..._0x307f30,'ed':_0x307f30['ed']+_0x125783}:_0x307f30);}function _0x98f08b(_0x2acd35,_0x430b10,_0x43f090){const _0xbcfe20=_0x8bdc9;return _0x2acd35==null?void 0x0:_0x2acd35[_0xbcfe20(0x178)](_0x146862=>(0x0,_0x2ac10b[_0xbcfe20(0x1dc)])(_0x146862,_0x430b10,_0x43f090));}function _0x31d7a0(_0x58c2cb,_0x59bea0,_0x544375){return _0x58c2cb==null?void 0x0:_0x58c2cb['map'](_0x5ddd8d=>(0x0,_0x2ac10b['shiftExclusiveRangeOnInsert'])(_0x5ddd8d,_0x59bea0,_0x544375));}function _0xd380f9(_0x5247a0,_0x2605c1,_0x1ab286){const _0x23efb7=_0x8bdc9;return _0x5247a0==null?void 0x0:_0x5247a0[_0x23efb7(0x178)](_0x5e6c11=>(0x0,_0x2ac10b['shiftInclusiveRangeOnDelete'])(_0x5e6c11,_0x2605c1,_0x1ab286))[_0x23efb7(0x165)](_0x39eee3=>_0x39eee3!=null);}function _0x23efa5(_0x2bfa54,_0x52ac3a,_0x3f2b11){const _0x45a0c8=_0x8bdc9;return _0x2bfa54==null?void 0x0:_0x2bfa54[_0x45a0c8(0x178)](_0x5188f3=>(0x0,_0x2ac10b[_0x45a0c8(0x1ac)])(_0x5188f3,_0x52ac3a,_0x3f2b11))[_0x45a0c8(0x165)](_0x1e7aa2=>_0x1e7aa2!=null);}function _0x3c9226(_0x8b19c2){const _0x1956f9=_0x8bdc9;if(!_0x8b19c2[_0x1956f9(0x1b4)])throw Error(_0x1956f9(0x13d));return _0x8b19c2[_0x1956f9(0x1b4)];}function _0x456470(_0x209825){'@babel/helpers - typeof';const _0x5bb0d6=_0x8bdc9;return _0x456470=typeof Symbol==_0x5bb0d6(0x228)&&typeof Symbol[_0x5bb0d6(0x1a3)]==_0x5bb0d6(0x1cf)?function(_0x209897){return typeof _0x209897;}:function(_0x2bd469){const _0x299d03=_0x5bb0d6;return _0x2bd469&&typeof Symbol=='function'&&_0x2bd469['constructor']===Symbol&&_0x2bd469!==Symbol[_0x299d03(0x187)]?'symbol':typeof _0x2bd469;},_0x456470(_0x209825);}function _0x26e8f4(_0x244f6f,_0x5b7a57){const _0x3353a8=_0x8bdc9;if(_0x456470(_0x244f6f)!=_0x3353a8(0x109)||!_0x244f6f)return _0x244f6f;var _0x341ab0=_0x244f6f[Symbol[_0x3353a8(0x1d3)]];if(_0x341ab0!==void 0x0){var _0x2760f4=_0x341ab0[_0x3353a8(0x117)](_0x244f6f,_0x5b7a57||_0x3353a8(0x1af));if(_0x456470(_0x2760f4)!=_0x3353a8(0x109))return _0x2760f4;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5b7a57===_0x3353a8(0x207)?String:Number)(_0x244f6f);}function _0x50a807(_0x5e3c56){const _0x206ac4=_0x8bdc9;var _0x1ecc44=_0x26e8f4(_0x5e3c56,_0x206ac4(0x207));return _0x456470(_0x1ecc44)==_0x206ac4(0x1cf)?_0x1ecc44:_0x1ecc44+'';}function _0x2b07b4(_0x5cf8de,_0xa1c7b0,_0x162114){const _0x2d10a0=_0x8bdc9;return(_0xa1c7b0=_0x50a807(_0xa1c7b0))in _0x5cf8de?Object[_0x2d10a0(0x1ba)](_0x5cf8de,_0xa1c7b0,{'value':_0x162114,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5cf8de[_0xa1c7b0]=_0x162114,_0x5cf8de;}var _0x452eec=class extends _0x2ac10b['Disposable']{constructor(..._0x2a5f5d){const _0x20701d=_0x8bdc9;super(..._0x2a5f5d),_0x2b07b4(this,'_resources',new Map()),_0x2b07b4(this,_0x20701d(0x18f),new Map()),_0x2b07b4(this,_0x20701d(0x231),new Map()),_0x2b07b4(this,'_change$',new _0x7392e3[(_0x20701d(0x122))]()),_0x2b07b4(this,_0x20701d(0x1fd),this['_change$']['asObservable']());}[_0x8bdc9(0x19d)](_0x34816c,_0x585a4a){const _0x24fc9d=_0x8bdc9;var _0x7ff773;let _0x16f2dd=(_0x7ff773=this[_0x24fc9d(0x15f)][_0x24fc9d(0x239)](_0x34816c))==null?void 0x0:_0x7ff773['formulas'][_0x585a4a];return _0x16f2dd?_0x2ac10b[_0x24fc9d(0x152)][_0x24fc9d(0x1c1)](_0x16f2dd):void 0x0;}[_0x8bdc9(0x10d)](_0x43e214){const _0x1ac896=_0x8bdc9;var _0x54ac65,_0x968e5e;return _0x2ac10b[_0x1ac896(0x152)][_0x1ac896(0x1c1)]((_0x54ac65=(_0x968e5e=this['_resources'][_0x1ac896(0x239)](_0x43e214))==null?void 0x0:_0x968e5e[_0x1ac896(0x195)])==null?{}:_0x54ac65);}[_0x8bdc9(0x16a)](_0x47024e){const _0xdeb705=_0x8bdc9;let _0x1ee76f=this[_0xdeb705(0x15f)]['get'](_0x47024e);return _0x1ee76f?_0x2ac10b[_0xdeb705(0x152)]['deepClone'](_0x1ee76f):void 0x0;}[_0x8bdc9(0x1f7)](_0x590022,_0x1e3deb,_0x348fc9){const _0x4e800f=_0x8bdc9;return this[_0x4e800f(0x1df)](_0x590022,{[_0x1e3deb]:_0x348fc9});}[_0x8bdc9(0x107)](_0x58ad67,_0x5c68c6){const _0x15a6c4=_0x8bdc9;return this[_0x15a6c4(0x231)]['has'](_0x58ad67)||!_0x40f6be(_0x5c68c6)?!0x1:(this[_0x15a6c4(0x15f)][_0x15a6c4(0x1fb)](_0x58ad67,_0x2ac10b[_0x15a6c4(0x152)]['deepClone'](_0x5c68c6)),this['_change$']['next']({'unitId':_0x58ad67}),!0x0);}[_0x8bdc9(0x1df)](_0x3937e4,_0x3add38){const _0x173a23=_0x8bdc9;var _0x2ca26f;if(this[_0x173a23(0x231)][_0x173a23(0x170)](_0x3937e4)||!Object[_0x173a23(0x1a7)](_0x3add38)[_0x173a23(0x235)]||!_0x40f6be({'schemaVersion':0x1,'formulas':_0x3add38}))return!0x1;let _0x385c04=(_0x2ca26f=this[_0x173a23(0x15f)][_0x173a23(0x239)](_0x3937e4))==null?_0x7fafb9():_0x2ca26f,_0x411e48=_0x2ac10b[_0x173a23(0x152)][_0x173a23(0x1c1)](_0x385c04);return Object[_0x173a23(0x20e)](_0x411e48[_0x173a23(0x195)],_0x2ac10b[_0x173a23(0x152)][_0x173a23(0x1c1)](_0x3add38)),this['_resources']['set'](_0x3937e4,_0x411e48),this[_0x173a23(0x13f)][_0x173a23(0x1bb)]({'unitId':_0x3937e4,'rangeIds':Object[_0x173a23(0x1a7)](_0x3add38)}),!0x0;}['removeFormula'](_0x2374fd,_0x130cae){const _0x489019=_0x8bdc9;if(this[_0x489019(0x231)][_0x489019(0x170)](_0x2374fd))return!0x1;let _0xd56a93=this['_resources'][_0x489019(0x239)](_0x2374fd);if(!(_0xd56a93!=null&&_0xd56a93[_0x489019(0x195)][_0x130cae]))return!0x1;let _0x5ee7f6=_0x2ac10b['Tools']['deepClone'](_0xd56a93);return delete _0x5ee7f6[_0x489019(0x195)][_0x130cae],this['_resources'][_0x489019(0x1fb)](_0x2374fd,_0x5ee7f6),this[_0x489019(0x13f)][_0x489019(0x1bb)]({'unitId':_0x2374fd,'rangeIds':[_0x130cae]}),!0x0;}['load'](_0x24b229,_0x49bcca){const _0x5c37d4=_0x8bdc9;return _0x49bcca&&typeof _0x49bcca=='object'&&_0x5c37d4(0x1bc)in _0x49bcca&&_0x49bcca[_0x5c37d4(0x1bc)]!==0x1?(this[_0x5c37d4(0x1d1)](_0x24b229,_0x49bcca,_0x5c37d4(0x1f5)),!0x1):_0x40f6be(_0x49bcca)?(this[_0x5c37d4(0x15f)][_0x5c37d4(0x1fb)](_0x24b229,_0x2ac10b[_0x5c37d4(0x152)]['deepClone'](_0x49bcca)),this[_0x5c37d4(0x18f)][_0x5c37d4(0x210)](_0x24b229),this[_0x5c37d4(0x231)][_0x5c37d4(0x210)](_0x24b229),this[_0x5c37d4(0x13f)][_0x5c37d4(0x1bb)]({'unitId':_0x24b229}),!0x0):(this[_0x5c37d4(0x1d1)](_0x24b229,_0x49bcca,'invalid-resource'),!0x1);}[_0x8bdc9(0x13b)](_0x5c8540){const _0x74088c=_0x8bdc9;let _0x509b5d=this[_0x74088c(0x15f)][_0x74088c(0x239)](_0x5c8540);return _0x509b5d?_0x2ac10b[_0x74088c(0x152)][_0x74088c(0x1c1)](_0x509b5d):this[_0x74088c(0x18f)][_0x74088c(0x170)](_0x5c8540)?_0x2ac10b['Tools'][_0x74088c(0x1c1)](this[_0x74088c(0x18f)][_0x74088c(0x239)](_0x5c8540)):_0x7fafb9();}['getLoadError'](_0xc0099){const _0x5e30de=_0x8bdc9;return this['_loadErrors'][_0x5e30de(0x239)](_0xc0099);}[_0x8bdc9(0x212)](_0x519cad){const _0xcc75c3=_0x8bdc9;this[_0xcc75c3(0x15f)]['delete'](_0x519cad),this[_0xcc75c3(0x18f)][_0xcc75c3(0x210)](_0x519cad),this['_loadErrors'][_0xcc75c3(0x210)](_0x519cad),this['_change$']['next']({'unitId':_0x519cad});}['dispose'](){const _0x4494d0=_0x8bdc9;this[_0x4494d0(0x15f)][_0x4494d0(0x1ec)](),this[_0x4494d0(0x18f)]['clear'](),this['_loadErrors'][_0x4494d0(0x1ec)](),this[_0x4494d0(0x13f)]['complete'](),super[_0x4494d0(0x196)]();}[_0x8bdc9(0x1d1)](_0x4a3c4d,_0x4cd2a2,_0x1a8d6f){const _0x5f0964=_0x8bdc9;this[_0x5f0964(0x15f)]['delete'](_0x4a3c4d),this[_0x5f0964(0x18f)]['set'](_0x4a3c4d,_0x2ac10b[_0x5f0964(0x152)][_0x5f0964(0x1c1)](_0x4cd2a2)),this['_loadErrors']['set'](_0x4a3c4d,_0x1a8d6f),this[_0x5f0964(0x13f)][_0x5f0964(0x1bb)]({'unitId':_0x4a3c4d});}};let _0x26432c=function(_0x13942b){const _0x2bf2e4=_0x8bdc9;return _0x13942b[_0x2bf2e4(0x1fa)]=_0x2bf2e4(0x1da),_0x13942b[_0x2bf2e4(0x13e)]='pending',_0x13942b[_0x2bf2e4(0x233)]=_0x2bf2e4(0x220),_0x13942b[_0x2bf2e4(0x21e)]='error',_0x13942b;}({});function _0x34a45d(_0x355319,_0x27c94a){return function(_0x5aa75d,_0x402639){_0x27c94a(_0x5aa75d,_0x402639,_0x355319);};}function _0x2d669e(_0x1b78e8,_0x2b86e9,_0x53f438,_0x4def1c){const _0x285aae=_0x8bdc9;var _0x4089cb=arguments[_0x285aae(0x235)],_0x126e5c=_0x4089cb<0x3?_0x2b86e9:_0x4def1c===null?_0x4def1c=Object['getOwnPropertyDescriptor'](_0x2b86e9,_0x53f438):_0x4def1c,_0xcb94a;if(typeof Reflect==_0x285aae(0x109)&&typeof Reflect[_0x285aae(0x182)]==_0x285aae(0x228))_0x126e5c=Reflect[_0x285aae(0x182)](_0x1b78e8,_0x2b86e9,_0x53f438,_0x4def1c);else{for(var _0x3e80b1=_0x1b78e8[_0x285aae(0x235)]-0x1;_0x3e80b1>=0x0;_0x3e80b1--)(_0xcb94a=_0x1b78e8[_0x3e80b1])&&(_0x126e5c=(_0x4089cb<0x3?_0xcb94a(_0x126e5c):_0x4089cb>0x3?_0xcb94a(_0x2b86e9,_0x53f438,_0x126e5c):_0xcb94a(_0x2b86e9,_0x53f438))||_0x126e5c);}return _0x4089cb>0x3&&_0x126e5c&&Object['defineProperty'](_0x2b86e9,_0x53f438,_0x126e5c),_0x126e5c;}let _0x5f3925=class extends _0x2ac10b[_0x8bdc9(0x1a2)]{constructor(_0x12ae6a,_0x1a403e,_0x299a41){const _0x59aafd=_0x8bdc9;super(),this[_0x59aafd(0x203)]=_0x12ae6a,this['_registrationService']=_0x1a403e,this[_0x59aafd(0x12e)]=_0x299a41,_0x2b07b4(this,'_registrations',new Map()),_0x2b07b4(this,_0x59aafd(0x17d),new Map()),_0x2b07b4(this,_0x59aafd(0x1ad),new _0x7392e3[(_0x59aafd(0x122))]()),_0x2b07b4(this,_0x59aafd(0x1f2),this[_0x59aafd(0x1ad)][_0x59aafd(0x22b)]()),this['disposeWithMe'](this['_registrationService'][_0x59aafd(0x14a)][_0x59aafd(0x146)](_0x42e9c2=>{const _0x3d3334=_0x59aafd;for(let _0x6fa8d of Object[_0x3d3334(0x148)](_0x42e9c2))for(let _0x5adf72 of Object[_0x3d3334(0x148)](_0x6fa8d))_0x5adf72[_0x3d3334(0x119)](_0x21be29=>this[_0x3d3334(0x1f3)](_0x21be29));}));}[_0x8bdc9(0x225)](_0x549797){const _0x5f1dbb=_0x8bdc9;var _0xa3af81,_0x5f0370;let _0x1bf821=_0x549797[_0x5f1dbb(0x205)](),_0x52898c=(_0xa3af81=(_0x5f0370=_0x549797['getSnapshot']()[_0x5f1dbb(0x1b4)])==null||(_0x5f0370=_0x5f0370[_0x5f1dbb(0x1b0)])==null?void 0x0:_0x5f0370[_0x5f1dbb(0x165)](_0x567947))==null?[]:_0xa3af81,_0x2d21ac=this[_0x5f1dbb(0x203)][_0x5f1dbb(0x10d)](_0x1bf821),_0x4b150c=new Set();for(let _0x180243 of _0x52898c){let _0x29b409=_0x2d21ac[_0x180243[_0x5f1dbb(0x176)]];_0x29b409&&(_0x4b150c['add'](_0x4acdb3(_0x1bf821,_0x180243[_0x5f1dbb(0x176)])),this[_0x5f1dbb(0x216)]({'unitId':_0x1bf821,'rangeId':_0x180243[_0x5f1dbb(0x176)]},_0x29b409));}for(let _0x5611d7 of Array[_0x5f1dbb(0x23f)](this['_registrations']['values']()))_0x5611d7['unitId']===_0x1bf821&&!_0x4b150c[_0x5f1dbb(0x170)](_0x4acdb3(_0x5611d7[_0x5f1dbb(0x127)],_0x5611d7[_0x5f1dbb(0x176)]))&&this[_0x5f1dbb(0x128)](_0x5611d7);}[_0x8bdc9(0x216)](_0x5de783,_0x144ecf){const _0x3cc391=_0x8bdc9;let _0x17c07d=_0x4acdb3(_0x5de783[_0x3cc391(0x127)],_0x5de783[_0x3cc391(0x176)]),_0x3607ca=this['_registrations'][_0x3cc391(0x239)](_0x17c07d),_0x10f04a=this[_0x3cc391(0x12e)][_0x3cc391(0x126)](_0x5de783['unitId']);if(_0x3607ca&&_0x3607ca[_0x3cc391(0x132)][_0x3cc391(0x11b)]===_0x144ecf[_0x3cc391(0x11b)]&&_0x3607ca[_0x3cc391(0x1eb)]===_0x10f04a){var _0x4e11c1;_0x3607ca[_0x3cc391(0x132)]=_0x144ecf;let _0xe43fda=_0x3607ca[_0x3cc391(0x1c0)]?(_0x4e11c1=this['_registrationService'][_0x3cc391(0x1c5)](_0x3607ca[_0x3cc391(0x127)],_0x3607ca[_0x3cc391(0x127)],_0x3607ca['formulaId']))==null?void 0x0:_0x4e11c1:void 0x0;_0x3607ca['liveResult']=_0xe43fda,this['_setPresentation'](_0x17c07d,_0x56f940(_0x144ecf,_0xe43fda));return;}_0x3607ca!=null&&_0x3607ca['formulaId']&&this[_0x3cc391(0x15e)](_0x3607ca);let _0x4183a6={..._0x5de783,'config':_0x144ecf,'referenceRevision':_0x10f04a,'presentation':_0x56f940(_0x144ecf,void 0x0)};if(this[_0x3cc391(0x194)][_0x3cc391(0x1fb)](_0x17c07d,_0x4183a6),!_0x144ecf[_0x3cc391(0x11b)][_0x3cc391(0x11a)]())return;let _0x120736=this[_0x3cc391(0x112)][_0x3cc391(0x21d)](_0x5de783[_0x3cc391(0x127)],_0x5de783[_0x3cc391(0x127)],_0x144ecf[_0x3cc391(0x11b)],void 0x0,{'rangeId':_0x5de783['rangeId']},_0x501c5b['OtherFormulaBizType'][_0x3cc391(0x151)],_0x5de783[_0x3cc391(0x176)]);_0x4183a6['formulaId']=_0x120736,this[_0x3cc391(0x17d)][_0x3cc391(0x1fb)](_0x120736,_0x17c07d);}[_0x8bdc9(0x128)](_0x4c82d7){const _0x17ef02=_0x8bdc9;let _0x28f44b=_0x4acdb3(_0x4c82d7['unitId'],_0x4c82d7[_0x17ef02(0x176)]),_0x16e3f9=this['_registrations']['get'](_0x28f44b);_0x16e3f9&&(this[_0x17ef02(0x15e)](_0x16e3f9),this[_0x17ef02(0x194)]['delete'](_0x28f44b));}['unregisterUnit'](_0x302e6f){const _0x133519=_0x8bdc9;for(let _0x187096 of Array[_0x133519(0x23f)](this[_0x133519(0x194)][_0x133519(0x148)]()))_0x187096['unitId']===_0x302e6f&&this['unregister'](_0x187096);}[_0x8bdc9(0x161)](_0x6fe23b){const _0x27c4a6=_0x8bdc9;var _0x1fb9da;return(_0x1fb9da=this[_0x27c4a6(0x194)]['get'](_0x4acdb3(_0x6fe23b['unitId'],_0x6fe23b['rangeId'])))==null?void 0x0:_0x1fb9da['presentation'];}[_0x8bdc9(0x17e)](_0x5a7a71){const _0x2e0b08=_0x8bdc9;let _0x158f56=this[_0x2e0b08(0x194)]['get'](_0x4acdb3(_0x5a7a71[_0x2e0b08(0x127)],_0x5a7a71['rangeId']));return _0x158f56?_0x4e9a3f(_0x158f56):void 0x0;}['getRegisteredFormulas'](){const _0x2a97c5=_0x8bdc9;return Array[_0x2a97c5(0x23f)](this[_0x2a97c5(0x194)][_0x2a97c5(0x148)](),_0x3fe83b=>({'identity':{'unitId':_0x3fe83b[_0x2a97c5(0x127)],'rangeId':_0x3fe83b['rangeId']},'config':_0x3fe83b['config'],'referenceRevision':_0x3fe83b['referenceRevision'],..._0x3fe83b[_0x2a97c5(0x142)]?{'liveResult':_0x3fe83b['liveResult']}:null}));}[_0x8bdc9(0x196)](){const _0x499fbc=_0x8bdc9;for(let _0x9bddbe of this['_registrations'][_0x499fbc(0x148)]())this[_0x499fbc(0x15e)](_0x9bddbe);this[_0x499fbc(0x194)]['clear'](),this['_formulaKeys'][_0x499fbc(0x1ec)](),this[_0x499fbc(0x1ad)]['complete'](),super[_0x499fbc(0x196)]();}[_0x8bdc9(0x1f3)](_0x44529a){const _0x29b817=_0x8bdc9;let _0x2a5546=this[_0x29b817(0x17d)][_0x29b817(0x239)](_0x44529a[_0x29b817(0x1c0)]),_0x1a932f=_0x2a5546?this[_0x29b817(0x194)][_0x29b817(0x239)](_0x2a5546):void 0x0;!_0x2a5546||!_0x1a932f||(_0x1a932f[_0x29b817(0x142)]=_0x44529a,this[_0x29b817(0x116)](_0x2a5546,_0x56f940(_0x1a932f[_0x29b817(0x132)],_0x44529a)));}[_0x8bdc9(0x116)](_0x335b4b,_0x214cda){const _0x3c85b6=_0x8bdc9;var _0x2922af,_0xb9c689,_0x19946f;let _0x1670c9=this[_0x3c85b6(0x194)][_0x3c85b6(0x239)](_0x335b4b);if(!_0x1670c9||_0x355671(_0x1670c9[_0x3c85b6(0x111)],_0x214cda))return;let _0x55d831=_0x1670c9[_0x3c85b6(0x111)],_0x3e73c=_0x4e9a3f(_0x1670c9);_0x1670c9['presentation']=_0x214cda,this[_0x3c85b6(0x1ad)][_0x3c85b6(0x1bb)]({'unitId':_0x1670c9['unitId'],'rangeId':_0x1670c9[_0x3c85b6(0x176)],'presentation':_0x214cda,'previousPresentation':_0x55d831,'result':_0x4e9a3f(_0x1670c9),'previousResult':{..._0x3e73c,..._0x55d831,'value':(_0x2922af=_0x55d831['cell'])==null?void 0x0:_0x2922af['v'],'valueType':(_0xb9c689=(_0x19946f=_0x55d831['cell'])==null?void 0x0:_0x19946f['t'])==null?void 0x0:_0xb9c689}});}[_0x8bdc9(0x15e)](_0x2ffbe3){const _0x309f30=_0x8bdc9;_0x2ffbe3['formulaId']&&(this[_0x309f30(0x112)][_0x309f30(0x199)](_0x2ffbe3['unitId'],_0x2ffbe3['unitId'],[_0x2ffbe3[_0x309f30(0x1c0)]]),this[_0x309f30(0x17d)][_0x309f30(0x210)](_0x2ffbe3[_0x309f30(0x1c0)]));}};_0x5f3925=_0x2d669e([_0x34a45d(0x0,(0x0,_0x2ac10b[_0x8bdc9(0x160)])(_0x452eec)),_0x34a45d(0x1,(0x0,_0x2ac10b[_0x8bdc9(0x160)])(_0x501c5b[_0x8bdc9(0x22f)])),_0x34a45d(0x2,(0x0,_0x2ac10b['Inject'])(_0xa093d0[_0x8bdc9(0x18a)]))],_0x5f3925);function _0x4acdb3(_0x37eb1e,_0x4e85d5){return _0x37eb1e+'\x00'+_0x4e85d5;}function _0x56f940(_0x4af9ae,_0x1eb86e){const _0x12e396=_0x8bdc9;return(0x0,_0xa093d0[_0x12e396(0x19a)])({'numberFormat':_0x4af9ae[_0x12e396(0x167)],'lastValue':_0x4af9ae[_0x12e396(0x12b)],'result':_0x1eb86e});}function _0x4e9a3f(_0x393961){const _0x2e2415=_0x8bdc9;var _0xea05a7,_0x58262a,_0x34f01f,_0x48c653;let _0x166bee=_0x393961[_0x2e2415(0x111)],_0x30e801=_0x393961[_0x2e2415(0x132)][_0x2e2415(0x11b)]['trim']()?_0x166bee[_0x2e2415(0x10b)]||_0x166bee[_0x2e2415(0x1c7)]==null?_0x2e2415(0x11f):((_0xea05a7=_0x393961[_0x2e2415(0x142)])==null?void 0x0:_0xea05a7['status'])===_0x501c5b[_0x2e2415(0x211)]['ERROR']?_0x2e2415(0x105):'success':_0x2e2415(0x1da);return{..._0x166bee,'status':_0x30e801,'value':(_0x58262a=_0x166bee['cell'])==null?void 0x0:_0x58262a['v'],'valueType':(_0x34f01f=(_0x48c653=_0x166bee['cell'])==null?void 0x0:_0x48c653['t'])==null?void 0x0:_0x34f01f};}function _0x355671(_0x3ae7a3,_0x28d27d){const _0x2b3fcf=_0x8bdc9;var _0x22e234,_0x2610ff,_0x278b9a,_0x89a9fb;return _0x3ae7a3[_0x2b3fcf(0x104)]===_0x28d27d[_0x2b3fcf(0x104)]&&_0x3ae7a3[_0x2b3fcf(0x221)]===_0x28d27d[_0x2b3fcf(0x221)]&&_0x3ae7a3[_0x2b3fcf(0x1d8)]===_0x28d27d[_0x2b3fcf(0x1d8)]&&_0x3ae7a3[_0x2b3fcf(0x213)]===_0x28d27d[_0x2b3fcf(0x213)]&&_0x3ae7a3[_0x2b3fcf(0x10b)]===_0x28d27d[_0x2b3fcf(0x10b)]&&((_0x22e234=_0x3ae7a3[_0x2b3fcf(0x1c7)])==null?void 0x0:_0x22e234['t'])===((_0x2610ff=_0x28d27d[_0x2b3fcf(0x1c7)])==null?void 0x0:_0x2610ff['t'])&&Object['is']((_0x278b9a=_0x3ae7a3['cell'])==null?void 0x0:_0x278b9a['v'],(_0x89a9fb=_0x28d27d['cell'])==null?void 0x0:_0x89a9fb['v']);}let _0x42e591={'id':_0x8bdc9(0x18e),'type':_0x2ac10b[_0x8bdc9(0x12c)][_0x8bdc9(0x23d)],'handler':(_0x39aadb,_0x94189e)=>!(_0x94189e!=null&&_0x94189e[_0x8bdc9(0x127)])||!_0x94189e['rangeId']||!_0x94189e['config']?!0x1:_0x39aadb[_0x8bdc9(0x239)](_0x452eec)[_0x8bdc9(0x1f7)](_0x94189e[_0x8bdc9(0x127)],_0x94189e[_0x8bdc9(0x176)],_0x94189e[_0x8bdc9(0x132)])},_0x120af3={'id':_0x8bdc9(0x1c3),'type':_0x2ac10b['CommandType'][_0x8bdc9(0x23d)],'handler':(_0x18b113,_0x174907)=>!(_0x174907!=null&&_0x174907[_0x8bdc9(0x127)])||!_0x174907['rangeId']?!0x1:_0x18b113[_0x8bdc9(0x239)](_0x452eec)['removeFormula'](_0x174907[_0x8bdc9(0x127)],_0x174907[_0x8bdc9(0x176)])},_0x4f7823={'id':'docs-formula.mutation.set-resource','type':_0x2ac10b[_0x8bdc9(0x12c)]['MUTATION'],'handler':(_0x2b65c2,_0x15e92a)=>!(_0x15e92a!=null&&_0x15e92a['unitId'])||!_0x15e92a[_0x8bdc9(0x229)]?!0x1:_0x2b65c2[_0x8bdc9(0x239)](_0x452eec)['setResource'](_0x15e92a[_0x8bdc9(0x127)],_0x15e92a[_0x8bdc9(0x229)])},_0x2fbfe9={'id':_0x8bdc9(0x1b3),'type':_0x2ac10b[_0x8bdc9(0x12c)][_0x8bdc9(0x23d)],'handler':(_0x15e07d,_0x196409)=>{const _0x3e5502=_0x8bdc9;if(!(_0x196409!=null&&_0x196409[_0x3e5502(0x127)])||!_0x196409[_0x3e5502(0x171)]['length'])return!0x1;let _0x477e61=_0x15e07d[_0x3e5502(0x239)](_0x452eec),_0x3e1a5b=_0x15e07d['get'](_0xa093d0[_0x3e5502(0x18a)]),_0x1ed746=_0x477e61[_0x3e5502(0x16a)](_0x196409['unitId']);if(!_0x1ed746)return!0x1;let _0x349582=_0x2ac10b[_0x3e5502(0x152)]['deepClone'](_0x1ed746),_0x4b3462=!0x1;for(let _0x1fe148 of _0x196409['updates']){var _0x5724d1,_0x356cba,_0x419390,_0x23e8ba;let _0x205ce6=_0x349582['formulas'][_0x1fe148[_0x3e5502(0x176)]];!_0x205ce6||_0x205ce6[_0x3e5502(0x11b)]!==_0x1fe148[_0x3e5502(0x241)]||((_0x5724d1=_0x205ce6[_0x3e5502(0x167)])==null?void 0x0:_0x5724d1[_0x3e5502(0x1d8)])!==_0x1fe148[_0x3e5502(0x14f)]||_0x3e1a5b[_0x3e5502(0x126)](_0x196409['unitId'])!==_0x1fe148[_0x3e5502(0x13c)]||(((_0x356cba=_0x205ce6['lastValue'])==null?void 0x0:_0x356cba['v'])!==_0x1fe148['lastValue']['v']||((_0x419390=_0x205ce6[_0x3e5502(0x12b)])==null?void 0x0:_0x419390['t'])!==_0x1fe148[_0x3e5502(0x12b)]['t']||((_0x23e8ba=_0x205ce6['lastValue'])==null?void 0x0:_0x23e8ba['pattern'])!==_0x1fe148[_0x3e5502(0x12b)][_0x3e5502(0x1d8)])&&(_0x205ce6[_0x3e5502(0x12b)]=_0x2ac10b[_0x3e5502(0x152)][_0x3e5502(0x1c1)](_0x1fe148[_0x3e5502(0x12b)]),_0x4b3462=!0x0);}return!_0x4b3462||_0x477e61[_0x3e5502(0x107)](_0x196409['unitId'],_0x349582);}},_0xf83f93={'id':'docs-formula.command.insert','type':_0x2ac10b[_0x8bdc9(0x12c)]['COMMAND'],'handler':(_0x31a180,_0x41feab)=>{const _0x47cfc4=_0x8bdc9;var _0x3935da;if(!(_0x41feab!=null&&_0x41feab['formula'][_0x47cfc4(0x11a)]()))return!0x1;let _0x37ec58=_0x5a7480(_0x31a180,_0x41feab['unitId'],'');if(!_0x37ec58)return!0x1;let _0x7c0f51=_0x7fde62(_0x41feab['target'],_0x37ec58[_0x47cfc4(0x1b4)],_0x40e08a(_0x31a180,_0x37ec58['unitId']));if(!_0x7c0f51)return!0x1;let _0x7824ec=_0x103435(_0x31a180,_0x37ec58[_0x47cfc4(0x127)],_0x41feab[_0x47cfc4(0x11b)],(_0x3935da=_0x41feab['externalReferences'])==null?[]:_0x3935da);if(!_0x7824ec)return!0x1;let _0x4edd62=_0x2506f5(_0x37ec58[_0x47cfc4(0x1b4)],_0x37ec58[_0x47cfc4(0x1e7)],_0x37ec58['unitId']),_0x45cb1c=_0x50ed49({'documentData':_0x37ec58[_0x47cfc4(0x189)],'resource':_0x37ec58[_0x47cfc4(0x229)],'rangeId':_0x4edd62,'config':{'formula':_0x41feab[_0x47cfc4(0x11b)],..._0x41feab['numberFormat']?{'numberFormat':_0x41feab[_0x47cfc4(0x167)]}:null},'startOffset':_0x7c0f51['startOffset'],'endOffset':_0x7c0f51[_0x47cfc4(0x1a4)]});if(!_0x45cb1c)return!0x1;let _0x44c6dd=(0x0,_0xa093d0[_0x47cfc4(0x115)])(_0x31a180,_0x37ec58['unitId'],_0x7824ec);return!_0x44c6dd||!_0x2be595({'accessor':_0x31a180,'document':_0x37ec58[_0x47cfc4(0x10f)],'unitId':_0x37ec58['unitId'],'trigger':_0xf83f93['id'],'rangeId':_0x4edd62,'previousResource':_0x37ec58[_0x47cfc4(0x229)],'nextResource':_0x45cb1c[_0x47cfc4(0x180)],'previousDocumentData':_0x37ec58[_0x47cfc4(0x189)],'nextDocumentData':_0x45cb1c[_0x47cfc4(0x1aa)],'cursorOffset':_0x45cb1c['cursorOffset'],'externalMutations':_0x44c6dd})?!0x1:{'rangeId':_0x4edd62,'startOffset':_0x45cb1c[_0x47cfc4(0x124)]-0x1,'endOffset':_0x45cb1c[_0x47cfc4(0x124)]};}},_0x2fff19={'id':_0x8bdc9(0x159),'type':_0x2ac10b[_0x8bdc9(0x12c)]['COMMAND'],'handler':(_0x85ab97,_0x4eec72)=>{const _0x3c5295=_0x8bdc9;var _0x51bc61;if(!(_0x4eec72!=null&&_0x4eec72[_0x3c5295(0x176)])||!_0x4eec72[_0x3c5295(0x11b)]['trim']())return!0x1;let _0x1289f9=_0x5a7480(_0x85ab97,_0x4eec72[_0x3c5295(0x127)],''),_0x59469a=_0x1289f9==null?void 0x0:_0x1289f9[_0x3c5295(0x1e7)][_0x3c5295(0x19d)](_0x1289f9[_0x3c5295(0x127)],_0x4eec72[_0x3c5295(0x176)]),_0x3bec18=_0x1289f9?_0x3e72e9(_0x1289f9[_0x3c5295(0x189)][_0x3c5295(0x1b4)],_0x4eec72[_0x3c5295(0x176)]):void 0x0;if(!_0x1289f9||!_0x59469a||!_0x3bec18)return!0x1;let _0x5b4286=_0x103435(_0x85ab97,_0x1289f9[_0x3c5295(0x127)],_0x4eec72['formula'],(_0x51bc61=_0x4eec72[_0x3c5295(0x1e5)])==null?[]:_0x51bc61);if(!_0x5b4286)return!0x1;let _0x3d1a4e=(0x0,_0xa093d0[_0x3c5295(0x115)])(_0x85ab97,_0x1289f9[_0x3c5295(0x127)],_0x5b4286);if(!_0x3d1a4e)return!0x1;let _0x4798d0=_0x171146(_0x1289f9[_0x3c5295(0x229)]);return _0x4798d0[_0x3c5295(0x195)][_0x4eec72[_0x3c5295(0x176)]]={'formula':_0x4eec72[_0x3c5295(0x11b)],..._0x4eec72[_0x3c5295(0x167)]?{'numberFormat':_0x4eec72[_0x3c5295(0x167)]}:_0x59469a['numberFormat']?{'numberFormat':_0x59469a['numberFormat']}:null},_0x2be595({'accessor':_0x85ab97,'document':_0x1289f9[_0x3c5295(0x10f)],'unitId':_0x1289f9[_0x3c5295(0x127)],'trigger':_0x2fff19['id'],'rangeId':_0x4eec72[_0x3c5295(0x176)],'previousResource':_0x1289f9[_0x3c5295(0x229)],'nextResource':_0x4798d0,'cursorOffset':_0x3bec18['endIndex']+0x1,'externalMutations':_0x3d1a4e});}},_0x1447d6={'id':_0x8bdc9(0x143),'type':_0x2ac10b[_0x8bdc9(0x12c)]['COMMAND'],'handler':(_0x490a52,_0xb27831)=>{const _0x4a20a5=_0x8bdc9;if(!(_0xb27831!=null&&_0xb27831[_0x4a20a5(0x176)]))return!0x1;let _0x52ef39=_0x5a7480(_0x490a52,_0xb27831['unitId'],''),_0x216a7c=_0x52ef39==null?void 0x0:_0x52ef39['model'][_0x4a20a5(0x19d)](_0x52ef39[_0x4a20a5(0x127)],_0xb27831[_0x4a20a5(0x176)]),_0x5ac5e4=_0x52ef39?_0x3e72e9(_0x52ef39[_0x4a20a5(0x189)][_0x4a20a5(0x1b4)],_0xb27831[_0x4a20a5(0x176)]):void 0x0;if(!_0x52ef39||!_0x216a7c||!_0x5ac5e4)return!0x1;let _0xd939c1=_0x171146(_0x52ef39['resource']);return _0xd939c1[_0x4a20a5(0x195)][_0xb27831['rangeId']]={..._0x216a7c,..._0xb27831['numberFormat']?{'numberFormat':_0xb27831[_0x4a20a5(0x167)]}:null},_0xb27831[_0x4a20a5(0x167)]||delete _0xd939c1[_0x4a20a5(0x195)][_0xb27831['rangeId']][_0x4a20a5(0x167)],_0x2be595({'accessor':_0x490a52,'document':_0x52ef39[_0x4a20a5(0x10f)],'unitId':_0x52ef39[_0x4a20a5(0x127)],'trigger':_0x1447d6['id'],'rangeId':_0xb27831[_0x4a20a5(0x176)],'previousResource':_0x52ef39[_0x4a20a5(0x229)],'nextResource':_0xd939c1,'cursorOffset':_0x5ac5e4[_0x4a20a5(0x237)]+0x1,'externalMutations':{}});}},_0x15f3ec={'id':'docs-formula.command.remove','type':_0x2ac10b[_0x8bdc9(0x12c)][_0x8bdc9(0x20d)],'handler':(_0x441ed3,_0x24214f)=>_0xee14e1(_0x441ed3,_0x24214f,'',_0x15f3ec['id'])},_0x515213={'id':_0x8bdc9(0x1a9),'type':_0x2ac10b[_0x8bdc9(0x12c)]['COMMAND'],'handler':(_0xa2ee17,_0x3ad8e4)=>{const _0x4a11c3=_0x8bdc9;var _0x127f35;return _0xee14e1(_0xa2ee17,_0x3ad8e4,(_0x127f35=_0x3ad8e4==null?void 0x0:_0x3ad8e4[_0x4a11c3(0x104)])==null?'':_0x127f35,_0x515213['id']);}},_0x51657b={'id':_0x8bdc9(0x15b),'type':_0x2ac10b['CommandType'][_0x8bdc9(0x20d)],'handler':(_0x4eb966,_0x523b8e)=>{const _0x136ff8=_0x8bdc9;if(!(_0x523b8e!=null&&_0x523b8e[_0x136ff8(0x176)]))return!0x1;let _0x2e3257=_0x5a7480(_0x4eb966,_0x523b8e['unitId'],'');if(!_0x2e3257)return!0x1;let _0x4b1b68=_0x4eb966[_0x136ff8(0x239)](_0x5f3925)['getResult']({'unitId':_0x2e3257['unitId'],'rangeId':_0x523b8e[_0x136ff8(0x176)]});return _0x4b1b68?_0xee14e1(_0x4eb966,_0x523b8e,_0x4b1b68['text'],_0x51657b['id']):!0x1;}};function _0xee14e1(_0x3c64c8,_0x921693,_0xb8c3e6,_0x4956dd){const _0x34fec5=_0x8bdc9;if(!(_0x921693!=null&&_0x921693[_0x34fec5(0x176)]))return!0x1;let _0x3d8df5=_0x5a7480(_0x3c64c8,_0x921693['unitId'],'');if(!_0x3d8df5)return!0x1;let _0xb36977=_0x3e9203({'documentData':_0x3d8df5[_0x34fec5(0x189)],'resource':_0x3d8df5[_0x34fec5(0x229)],'rangeId':_0x921693[_0x34fec5(0x176)],'text':_0xb8c3e6});return _0xb36977?_0x2be595({'accessor':_0x3c64c8,'document':_0x3d8df5[_0x34fec5(0x10f)],'unitId':_0x3d8df5[_0x34fec5(0x127)],'trigger':_0x4956dd,'rangeId':_0x921693[_0x34fec5(0x176)],'previousResource':_0x3d8df5['resource'],'nextResource':_0xb36977[_0x34fec5(0x180)],'previousDocumentData':_0x3d8df5[_0x34fec5(0x189)],'nextDocumentData':_0xb36977[_0x34fec5(0x1aa)],'cursorOffset':_0xb36977[_0x34fec5(0x124)],'externalMutations':{}}):!0x1;}function _0x5a7480(_0x40619e,_0x392c07,_0x206069){const _0x28cf75=_0x8bdc9;var _0x524c80,_0x12ef65;if(_0x206069)return null;let _0x522b4a=_0x40619e[_0x28cf75(0x239)](_0x2ac10b[_0x28cf75(0x1c6)]),_0x143fc9=(_0x524c80=_0x392c07?_0x522b4a[_0x28cf75(0x135)](_0x392c07,_0x2ac10b[_0x28cf75(0x150)]['UNIVER_DOC']):_0x522b4a['getCurrentUnitOfType'](_0x2ac10b[_0x28cf75(0x150)][_0x28cf75(0x1fe)]))==null?null:_0x524c80;if(!_0x143fc9)return null;let _0x40da2f=_0x143fc9['getSnapshot'](),_0x59ce41=_0x40da2f[_0x28cf75(0x1b4)];if(_0x40da2f['disabled']||!_0x59ce41)return null;let _0x23c7a5=_0x40619e[_0x28cf75(0x239)](_0x452eec);return _0x23c7a5['getLoadError'](_0x143fc9[_0x28cf75(0x205)]())?null:{'document':_0x143fc9,'body':_0x59ce41,'documentData':_0x40da2f,'model':_0x23c7a5,'resource':(_0x12ef65=_0x23c7a5[_0x28cf75(0x16a)](_0x143fc9[_0x28cf75(0x205)]()))==null?_0x7fafb9():_0x12ef65,'unitId':_0x143fc9['getUnitId']()};}function _0x40e08a(_0x5c5563,_0x35ac3c){const _0x5c60c2=_0x8bdc9;var _0x32752c;return(_0x32752c=_0x5c5563['get'](_0x190834[_0x5c60c2(0x1cc)])[_0x5c60c2(0x18c)]({'subUnitId':_0x35ac3c,'unitId':_0x35ac3c}))==null?void 0x0:_0x32752c[0x0];}function _0x7fde62(_0x4b3df8,_0x17ce44,_0x1191f7){const _0x4d9688=_0x8bdc9;if((_0x4b3df8==null?void 0x0:_0x4b3df8[_0x4d9688(0x120)])===_0x4d9688(0x1b6)){var _0x5e29ff,_0xcf53c2;let _0x4b399d=(_0x5e29ff=(_0xcf53c2=_0x17ce44[_0x4d9688(0x1bf)])==null?void 0x0:_0xcf53c2['filter'](_0x2fdc8b=>_0x2fdc8b['paragraphId']===_0x4b3df8[_0x4d9688(0x18d)]))==null?[]:_0x5e29ff;if(_0x4b399d[_0x4d9688(0x235)]!==0x1)return null;let _0x50b4eb=_0x4b399d[0x0],_0x2abf2e=(0x0,_0x2ac10b[_0x4d9688(0x227)])(_0x17ce44,_0x50b4eb),_0x349e85=_0x50b4eb['startIndex']-_0x2abf2e,_0x11ebed=_0x4b3df8[_0x4d9688(0x21f)]===_0x4d9688(0x181)?_0x349e85:_0x4b3df8['position'];if(!Number['isInteger'](_0x11ebed)||_0x11ebed<0x0||_0x11ebed>_0x349e85)return null;let _0xbce50d=_0x2abf2e+_0x11ebed;return{'startOffset':_0xbce50d,'endOffset':_0xbce50d};}if((_0x4b3df8==null?void 0x0:_0x4b3df8['type'])===_0x4d9688(0x226))return!Number[_0x4d9688(0x10e)](_0x4b3df8[_0x4d9688(0x218)])||!Number[_0x4d9688(0x10e)](_0x4b3df8['endOffset'])?null:{'startOffset':Math[_0x4d9688(0x136)](_0x4b3df8[_0x4d9688(0x218)],_0x4b3df8[_0x4d9688(0x1a4)]),'endOffset':Math['max'](_0x4b3df8['startOffset'],_0x4b3df8[_0x4d9688(0x1a4)])};let _0x2bee99=(_0x4b3df8==null?void 0x0:_0x4b3df8[_0x4d9688(0x120)])===_0x4d9688(0x141)?_0x4b3df8['selection']:_0x1191f7;return!_0x2bee99||_0x2bee99[_0x4d9688(0x20b)]?null:{'startOffset':Math['min'](_0x2bee99[_0x4d9688(0x218)],_0x2bee99[_0x4d9688(0x1a4)]),'endOffset':Math['max'](_0x2bee99['startOffset'],_0x2bee99['endOffset'])};}function _0x103435(_0x10f1ac,_0x1f8a4d,_0xb8e705,_0x5934c4){const _0x41e6e0=_0x8bdc9;let _0x35af09=_0x10f1ac[_0x41e6e0(0x239)](_0x501c5b[_0x41e6e0(0x23e)]),_0x49b2af=_0xb8e705['startsWith']('=')?_0xb8e705['slice'](0x1):_0xb8e705,_0x4b2955=_0x35af09[_0x41e6e0(0x219)](_0x49b2af);if(!_0x4b2955)return null;let _0x563a88=_0x10f1ac[_0x41e6e0(0x239)](_0xa093d0['HostExternalReferenceModel']),_0x1d9212=(0x0,_0xa093d0[_0x41e6e0(0x172)])({'qualifiers':(0x0,_0xa093d0[_0x41e6e0(0x114)])(_0x4b2955),'explicitReferences':_0x5934c4==null?[]:_0x5934c4,'resolveBinding':_0x37ccb4=>_0x563a88['resolveBinding'](_0x1f8a4d,_0x37ccb4)});return _0x1d9212[_0x41e6e0(0x1c4)]===_0x41e6e0(0x110)?_0x1d9212['references']:null;}function _0x2506f5(_0x520d37,_0x466fa6,_0x30a5b7){const _0x22b196=_0x8bdc9;var _0x46311a;let _0x3c205a=(0x0,_0x2ac10b['generateRandomId'])(0x6);for(;_0x520d37!=null&&(_0x46311a=_0x520d37[_0x22b196(0x1b0)])!=null&&_0x46311a[_0x22b196(0x101)](_0xf930a7=>_0xf930a7[_0x22b196(0x176)]===_0x3c205a)||_0x466fa6[_0x22b196(0x19d)](_0x30a5b7,_0x3c205a);)_0x3c205a=(0x0,_0x2ac10b['generateRandomId'])(0x6);return _0x3c205a;}function _0x50ed49(_0x5c8068){try{return _0x26ee81(_0x5c8068);}catch(_0x2aaf48){if(_0x2aaf48 instanceof _0x43dabf)return null;throw _0x2aaf48;}}function _0x329464(_0x56af15){const _0x21c238=_0x8bdc9;let _0x359736=_0x56af15[_0x21c238(0x12d)]&&_0x56af15[_0x21c238(0x1aa)]?_0x389e86(_0x56af15[_0x21c238(0x10f)],_0x56af15['unitId'],_0x56af15[_0x21c238(0x12d)],_0x56af15[_0x21c238(0x1aa)],_0x56af15[_0x21c238(0x124)],_0x56af15['trigger']):null;return _0x56af15[_0x21c238(0x12d)]&&_0x56af15[_0x21c238(0x1aa)]&&!_0x359736?null:{'documentRedo':_0x359736,'resourceRedo':{'id':_0x4f7823['id'],'params':{'unitId':_0x56af15[_0x21c238(0x127)],'resource':_0x56af15[_0x21c238(0x180)]}},'resourceUndo':{'id':_0x4f7823['id'],'params':{'unitId':_0x56af15[_0x21c238(0x127)],'resource':_0x56af15[_0x21c238(0x208)]}}};}function _0x3077fa(_0x84afee,_0x1f3f2d,_0x27bd89,_0x4f548c){const _0x2a1336=_0x8bdc9;_0x4f548c['pushUndoRedo']({'id':_0x84afee[_0x2a1336(0x23c)]+':'+_0x84afee[_0x2a1336(0x176)],'unitID':_0x84afee[_0x2a1336(0x127)],'redoMutations':[..._0x84afee[_0x2a1336(0x1b5)]['redoMutation']?[_0x84afee[_0x2a1336(0x1b5)][_0x2a1336(0x1b7)]]:[],..._0x1f3f2d['documentRedo']?[_0x1f3f2d[_0x2a1336(0x1fc)]]:[],_0x1f3f2d['resourceRedo']],'undoMutations':[_0x1f3f2d[_0x2a1336(0x21b)],..._0x27bd89?[_0x27bd89]:[],..._0x84afee[_0x2a1336(0x1b5)][_0x2a1336(0x1d7)]?[_0x84afee['externalMutations'][_0x2a1336(0x1d7)]]:[]]});}function _0x2be595(_0x4b7b86){const _0xde1232=_0x8bdc9;let _0x33aea6=_0x4b7b86[_0xde1232(0x191)]['get'](_0x2ac10b[_0xde1232(0x17b)]),_0x1f1da4=_0x4b7b86[_0xde1232(0x191)][_0xde1232(0x239)](_0x2ac10b[_0xde1232(0x190)]),_0x500c17=_0x4b7b86[_0xde1232(0x191)][_0xde1232(0x239)](_0x190834[_0xde1232(0x1cc)]),_0x3b2965=_0x329464(_0x4b7b86);if(!_0x3b2965)return!0x1;let _0x3c0571=!0x1,_0x41aaa4=null,_0xe7ad65=!0x1;try{if(_0x4b7b86['externalMutations'][_0xde1232(0x1b7)]){if(!_0x33aea6['syncExecuteCommand'](_0x4b7b86['externalMutations'][_0xde1232(0x1b7)]['id'],_0x4b7b86[_0xde1232(0x1b5)][_0xde1232(0x1b7)]['params']))return!0x1;_0x3c0571=!0x0;}if(_0x3b2965[_0xde1232(0x1fc)]){let _0x38de26=_0x33aea6['syncExecuteCommand'](_0x3b2965[_0xde1232(0x1fc)]['id'],_0x3b2965[_0xde1232(0x1fc)][_0xde1232(0x179)]);if(!_0x38de26)return _0x45e3d2(_0x33aea6,_0x4b7b86[_0xde1232(0x1b5)],_0x3c0571),!0x1;_0x41aaa4={'id':_0x190834['RichTextEditingMutation']['id'],'params':{..._0x38de26,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x33aea6['syncExecuteCommand'](_0x3b2965['resourceRedo']['id'],_0x3b2965[_0xde1232(0x1ca)][_0xde1232(0x179)]))return _0x48472(_0x33aea6,_0x41aaa4),_0x45e3d2(_0x33aea6,_0x4b7b86[_0xde1232(0x1b5)],_0x3c0571),!0x1;_0xe7ad65=!0x0,_0x3077fa(_0x4b7b86,_0x3b2965,_0x41aaa4,_0x1f1da4);}catch(_0x30d96b){throw _0xe7ad65&&_0x33aea6[_0xde1232(0x13a)](_0x3b2965[_0xde1232(0x21b)]['id'],_0x3b2965['resourceUndo'][_0xde1232(0x179)]),_0x48472(_0x33aea6,_0x41aaa4),_0x45e3d2(_0x33aea6,_0x4b7b86[_0xde1232(0x1b5)],_0x3c0571),_0x30d96b;}return _0x500c17[_0xde1232(0x14d)]([{'startOffset':_0x4b7b86[_0xde1232(0x124)],'endOffset':_0x4b7b86[_0xde1232(0x124)],'segmentId':''}],{'unitId':_0x4b7b86[_0xde1232(0x127)],'subUnitId':_0x4b7b86['unitId']},!0x1,{[_0x190834[_0xde1232(0x204)]]:!0x0}),!0x0;}function _0x389e86(_0x1a3975,_0x308403,_0x48aebf,_0x551ba2,_0x33022b,_0x53020b){const _0x13ca69=_0x8bdc9;let _0x345b9c=_0x7da33f(_0x48aebf,_0x551ba2,(0x0,_0x2ac10b[_0x13ca69(0x198)])(_0x1a3975,''));return _0x345b9c?{'id':_0x190834[_0x13ca69(0x139)]['id'],'params':{'unitId':_0x308403,'actions':_0x345b9c,'segmentId':'','textRanges':[{'startOffset':_0x33022b,'endOffset':_0x33022b,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x53020b}}:null;}function _0x48472(_0x55d1a5,_0x4b1b8d){const _0x502611=_0x8bdc9;_0x4b1b8d&&_0x55d1a5['syncExecuteCommand'](_0x4b1b8d['id'],_0x4b1b8d[_0x502611(0x179)]);}function _0x45e3d2(_0x16c91c,_0x311fbf,_0x4223b0){const _0x4b7054=_0x8bdc9;_0x4223b0&&_0x311fbf['undoMutation']&&_0x16c91c[_0x4b7054(0x13a)](_0x311fbf[_0x4b7054(0x1d7)]['id'],_0x311fbf[_0x4b7054(0x1d7)][_0x4b7054(0x179)]);}function _0x7da33f(_0x5a5aae,_0x4db165,_0xa5b82e){const _0x56e981=_0x8bdc9;let _0x288ae8=_0x5a5aae['body'],_0x517dff=_0x4db165[_0x56e981(0x1b4)],_0x3e202b=_0x2085ef(_0x288ae8==null?void 0x0:_0x288ae8['dataStream'],_0x517dff==null?void 0x0:_0x517dff[_0x56e981(0x1cd)]);if(!_0x3e202b||!_0x517dff)return null;let _0x28e847=new _0x2ac10b[(_0x56e981(0x1ab))]();return _0x28e847[_0x56e981(0x1f4)](_0x3e202b['start']),_0x3e202b['insertLength']>0x0&&_0x28e847[_0x56e981(0x133)](_0x3e202b[_0x56e981(0x18b)],(0x0,_0x2ac10b[_0x56e981(0x19c)])(_0x517dff,_0x3e202b['start'],_0x3e202b[_0x56e981(0x202)]+_0x3e202b['insertLength'],!0x1)),_0x3e202b['deleteLength']>0x0&&_0x28e847['delete'](_0x3e202b[_0x56e981(0x15c)]),_0x2ac10b[_0x56e981(0x1ea)]['getInstance']()[_0x56e981(0x1de)](_0x28e847[_0x56e981(0x13b)](),_0xa5b82e);}function _0x2085ef(_0xff61e0,_0x4edf70){const _0x5ccdf5=_0x8bdc9;if(_0xff61e0==null||_0x4edf70==null||_0xff61e0===_0x4edf70)return null;let _0x2a05d1=0x0;for(;_0x2a05d1<_0xff61e0[_0x5ccdf5(0x235)]&&_0x2a05d1<_0x4edf70[_0x5ccdf5(0x235)]&&_0xff61e0[_0x2a05d1]===_0x4edf70[_0x2a05d1];)_0x2a05d1+=0x1;let _0x3252c6=_0xff61e0[_0x5ccdf5(0x235)],_0x2deda2=_0x4edf70['length'];for(;_0x3252c6>_0x2a05d1&&_0x2deda2>_0x2a05d1&&_0xff61e0[_0x3252c6-0x1]===_0x4edf70[_0x2deda2-0x1];)--_0x3252c6,--_0x2deda2;return{'start':_0x2a05d1,'deleteLength':_0x3252c6-_0x2a05d1,'insertLength':_0x2deda2-_0x2a05d1};}function _0x171146(_0x4f4c05){const _0x55476c=_0x8bdc9;return{'schemaVersion':0x1,'formulas':Object[_0x55476c(0x169)](Object['entries'](_0x4f4c05[_0x55476c(0x195)])['map'](([_0x35541e,_0x5e2e77])=>[_0x35541e,{..._0x5e2e77,..._0x5e2e77['numberFormat']?{'numberFormat':{..._0x5e2e77[_0x55476c(0x167)]}}:null,..._0x5e2e77[_0x55476c(0x12b)]?{'lastValue':{..._0x5e2e77[_0x55476c(0x12b)]}}:null}]))};}let _0x4c3b78=class extends _0x2ac10b['Disposable']{constructor(_0x18403f,_0x2a471b,_0x1f3896,_0x37302c){const _0x3a6e62=_0x8bdc9;super(),this['_instanceService']=_0x18403f,this['_commandService']=_0x2a471b,this['_model']=_0x1f3896,this['_service']=_0x37302c,_0x2b07b4(this,_0x3a6e62(0x166),new Set()),_0x2b07b4(this,_0x3a6e62(0x149),!0x1),_0x2b07b4(this,_0x3a6e62(0x184),!0x1),this['_instanceService'][_0x3a6e62(0x21c)](_0x2ac10b[_0x3a6e62(0x150)][_0x3a6e62(0x1fe)])['forEach'](_0x1e65b2=>this['_service'][_0x3a6e62(0x225)](_0x1e65b2)),this[_0x3a6e62(0x19b)](this[_0x3a6e62(0x203)]['change$'][_0x3a6e62(0x146)](({unitId:_0x1d78e4})=>this[_0x3a6e62(0x15d)](_0x1d78e4))),this['disposeWithMe'](this[_0x3a6e62(0xfd)][_0x3a6e62(0x236)][_0x3a6e62(0x146)](({unit:_0x1c2b82})=>{const _0x1393d3=_0x3a6e62;_0x1c2b82[_0x1393d3(0x120)]===_0x2ac10b['UniverInstanceType'][_0x1393d3(0x1fe)]&&this[_0x1393d3(0x17f)](_0x1c2b82[_0x1393d3(0x205)]());})),this[_0x3a6e62(0x19b)](this[_0x3a6e62(0xfd)][_0x3a6e62(0x10c)][_0x3a6e62(0x146)](_0x2b5dbd=>{const _0x5d18c3=_0x3a6e62;this[_0x5d18c3(0x16b)][_0x5d18c3(0x215)](_0x2b5dbd[_0x5d18c3(0x205)]());})),this[_0x3a6e62(0x19b)](this['_commandService'][_0x3a6e62(0x123)](_0x377d12=>{const _0x423210=_0x3a6e62;if(_0x377d12['id']===_0x190834[_0x423210(0x139)]['id']&&_0x23e431(_0x377d12['params'])){let _0x464bd3=_0x377d12['params'];_0x464bd3['segmentId']||this['_syncUnit'](_0x464bd3[_0x423210(0x127)]);}}));}[_0x8bdc9(0x196)](){const _0x5142dc=_0x8bdc9;this[_0x5142dc(0x184)]=!0x0,super['dispose']();}[_0x8bdc9(0x17f)](_0x3b6f95){const _0x128791=_0x8bdc9;this[_0x128791(0x166)][_0x128791(0x14e)](_0x3b6f95),!this['_syncScheduled']&&(this[_0x128791(0x149)]=!0x0,queueMicrotask(()=>{const _0x554bbe=_0x128791;if(this[_0x554bbe(0x149)]=!0x1,this[_0x554bbe(0x184)])return;let _0x36967d=Array[_0x554bbe(0x23f)](this[_0x554bbe(0x166)]);this[_0x554bbe(0x166)][_0x554bbe(0x1ec)](),_0x36967d[_0x554bbe(0x119)](_0x62166f=>this[_0x554bbe(0x15d)](_0x62166f));}));}[_0x8bdc9(0x15d)](_0x4325d2){const _0x2e8347=_0x8bdc9;let _0x3be90e=this[_0x2e8347(0xfd)][_0x2e8347(0x135)](_0x4325d2,_0x2ac10b['UniverInstanceType'][_0x2e8347(0x1fe)]);_0x3be90e&&this['_service'][_0x2e8347(0x225)](_0x3be90e);}};_0x4c3b78=_0x2d669e([_0x34a45d(0x0,_0x2ac10b[_0x8bdc9(0x1c6)]),_0x34a45d(0x1,_0x2ac10b[_0x8bdc9(0x17b)]),_0x34a45d(0x2,(0x0,_0x2ac10b[_0x8bdc9(0x160)])(_0x452eec)),_0x34a45d(0x3,(0x0,_0x2ac10b[_0x8bdc9(0x160)])(_0x5f3925))],_0x4c3b78);function _0x23e431(_0x9bb2b5){const _0x24c6d7=_0x8bdc9;return typeof _0x9bb2b5==_0x24c6d7(0x109)&&!!_0x9bb2b5&&'unitId'in _0x9bb2b5&&typeof _0x9bb2b5[_0x24c6d7(0x127)]==_0x24c6d7(0x207)&&(!(_0x24c6d7(0x20b)in _0x9bb2b5)||_0x9bb2b5[_0x24c6d7(0x20b)]===void 0x0||typeof _0x9bb2b5[_0x24c6d7(0x20b)]==_0x24c6d7(0x207));}let _0x16f61e=class extends _0x2ac10b[_0x8bdc9(0x1a2)]{constructor(_0x351c04,_0x3738b7){const _0x3dae86=_0x8bdc9;super(),this[_0x3dae86(0x209)]=_0x351c04,this[_0x3dae86(0x1a0)]=_0x3738b7,this[_0x3dae86(0x19b)](this[_0x3dae86(0x209)]['registerPluginResource']({'pluginName':_0x249a09,'businesses':[_0x2ac10b[_0x3dae86(0x150)][_0x3dae86(0x1fe)]],'toJson':_0xe33dbe=>JSON[_0x3dae86(0x1d6)](this[_0x3dae86(0x1a0)][_0x3dae86(0x13b)](_0xe33dbe)),'parseJson':_0x2ff8d4=>JSON['parse'](_0x2ff8d4),'onLoad':(_0x360ff8,_0x19ea9b)=>{this['_docFormulaModel']['load'](_0x360ff8,_0x19ea9b);},'onUnLoad':_0x26ba6f=>this[_0x3dae86(0x1a0)][_0x3dae86(0x212)](_0x26ba6f)}));}};_0x16f61e=_0x2d669e([_0x34a45d(0x0,_0x2ac10b['IResourceManagerService']),_0x34a45d(0x1,(0x0,_0x2ac10b[_0x8bdc9(0x160)])(_0x452eec))],_0x16f61e);var _0x3bcfd6=_0x8bdc9(0x16d),_0x30abfe=_0x8bdc9(0x140);let _0x1e265f={},_0x3dae3d=class extends _0x2ac10b[_0x8bdc9(0x1a2)]{constructor(_0x4a6a5a,_0x5517a4,_0xcb3d0d){const _0x23f5ad=_0x8bdc9;super(),this['_univerInstanceService']=_0x4a6a5a,this['_formulaService']=_0x5517a4,this['disposeWithMe'](_0xcb3d0d[_0x23f5ad(0x216)]({'resolve':(_0x4f3e8b,_0x658b1f)=>{const _0x4c46f0=_0x23f5ad;var _0x100d3d,_0x2d0978;return(_0x100d3d=(_0x2d0978=_0x658b1f[_0x4c46f0(0x1b0)])==null?void 0x0:_0x2d0978[_0x4c46f0(0x165)](_0x567947)['map'](_0x5a37d4=>({'startOffset':_0x5a37d4['startIndex'],'endOffset':_0x5a37d4[_0x4c46f0(0x237)]+0x1,'text':this[_0x4c46f0(0x223)](_0x4f3e8b,_0x5a37d4[_0x4c46f0(0x176)])})))==null?[]:_0x100d3d;}})),this[_0x23f5ad(0x19b)](this[_0x23f5ad(0x14c)][_0x23f5ad(0x1f2)]['subscribe'](({unitId:_0x33ff13})=>{const _0x44ddcb=_0x23f5ad;_0xcb3d0d[_0x44ddcb(0x222)](_0x33ff13);}));}[_0x8bdc9(0x223)](_0x2ea62f,_0x4c4077){const _0x34e554=_0x8bdc9;var _0x16f1ab,_0x1f23ab;return(_0x16f1ab=(_0x1f23ab=this['_formulaService'][_0x34e554(0x17e)]({'unitId':_0x2ea62f,'rangeId':_0x4c4077}))==null?void 0x0:_0x1f23ab[_0x34e554(0x104)])==null?'':_0x16f1ab;}[_0x8bdc9(0x1b1)](_0x4ab03d,_0x39744f,_0x5d0226){const _0x4b3485=_0x8bdc9;var _0x4897f5,_0x3c1790;let _0xb37af2=this['_univerInstanceService'][_0x4b3485(0x135)](_0x4ab03d,_0x2ac10b[_0x4b3485(0x150)][_0x4b3485(0x1fe)]),_0x548a0a=_0xb37af2==null?void 0x0:_0xb37af2[_0x4b3485(0x1b9)]();if(!_0x548a0a)return'';let _0x15164e=_0x548a0a[_0x4b3485(0x1cd)][_0x4b3485(0x1dd)](_0x39744f,_0x5d0226),_0x25b911=(_0x4897f5=(_0x3c1790=_0x548a0a[_0x4b3485(0x1b0)])==null?void 0x0:_0x3c1790[_0x4b3485(0x165)](_0x3eb883=>_0x567947(_0x3eb883)&&_0x3eb883['startIndex']>=_0x39744f&&_0x3eb883[_0x4b3485(0x237)]<_0x5d0226)[_0x4b3485(0x23a)]((_0x40e6d5,_0x1502e5)=>_0x1502e5[_0x4b3485(0x14b)]-_0x40e6d5[_0x4b3485(0x14b)]))==null?[]:_0x4897f5;for(let _0x4b2a9e of _0x25b911){let _0x4c3177=_0x4b2a9e[_0x4b3485(0x14b)]-_0x39744f,_0x365f6d=_0x4b2a9e[_0x4b3485(0x237)]-_0x39744f+0x1;_0x15164e=''+_0x15164e[_0x4b3485(0x1dd)](0x0,_0x4c3177)+this['resolveFormula'](_0x4ab03d,_0x4b2a9e[_0x4b3485(0x176)])+_0x15164e['slice'](_0x365f6d);}return _0x15164e;}[_0x8bdc9(0x11d)](_0x4287a6){return _0x2fb1b(_0x4287a6);}[_0x8bdc9(0x11c)](_0x2f8b8c,_0x43843e,_0x49ef04={}){const _0xad7c6d=_0x8bdc9;var _0x5ebef6,_0x48ea60,_0x39df7d;return(_0x39df7d=_0x241d0d({'id':_0x2f8b8c,'body':_0x43843e,'documentStyle':{}},((_0x5ebef6=(_0x48ea60=_0x43843e[_0xad7c6d(0x1b0)])==null?void 0x0:_0x48ea60[_0xad7c6d(0x165)](_0x567947))==null?[]:_0x5ebef6)[_0xad7c6d(0x178)](_0x173bd1=>{const _0x24d197=_0xad7c6d;var _0x23d650;return{'rangeId':_0x173bd1['rangeId'],'text':(_0x23d650=_0x49ef04[_0x173bd1['rangeId']])==null?this[_0x24d197(0x223)](_0x2f8b8c,_0x173bd1[_0x24d197(0x176)]):_0x23d650};}))[_0xad7c6d(0x1b4)])==null?{'dataStream':''}:_0x39df7d;}};_0x3dae3d=_0x2d669e([_0x34a45d(0x0,_0x2ac10b[_0x8bdc9(0x1c6)]),_0x34a45d(0x1,(0x0,_0x2ac10b[_0x8bdc9(0x160)])(_0x5f3925)),_0x34a45d(0x2,(0x0,_0x2ac10b[_0x8bdc9(0x160)])(_0x190834['DocTextResolverService']))],_0x3dae3d);function _0x2fb1b(_0x1669b6){const _0x108784=_0x8bdc9;var _0x2d4b08,_0x24f32e,_0x5483a9;let _0x4e0383=_0x3b0bcf(_0x1669b6),_0x401f85=_0x241d0d(_0x1669b6,((_0x2d4b08=(_0x24f32e=_0x1669b6[_0x108784(0x1b4)])==null||(_0x24f32e=_0x24f32e['customRanges'])==null?void 0x0:_0x24f32e[_0x108784(0x165)](_0x567947))==null?[]:_0x2d4b08)[_0x108784(0x178)](_0x3a07e9=>({'rangeId':_0x3a07e9['rangeId'],'text':_0xce73c2(_0x4e0383==null?void 0x0:_0x4e0383[_0x108784(0x195)][_0x3a07e9[_0x108784(0x176)]])})));return _0x401f85[_0x108784(0x1e1)]=(_0x5483a9=_0x401f85[_0x108784(0x1e1)])==null?void 0x0:_0x5483a9[_0x108784(0x165)](_0x5caf55=>_0x5caf55['name']!==_0x249a09),_0x401f85;}function _0x3b0bcf(_0x37cdb3){const _0x281499=_0x8bdc9;var _0x557f69;let _0x426a46=(_0x557f69=_0x37cdb3['resources'])==null||(_0x557f69=_0x557f69[_0x281499(0x177)](_0x41f8ba=>_0x41f8ba['name']==='DOC_FORMULA_PLUGIN'))==null?void 0x0:_0x557f69[_0x281499(0x1f1)];if(_0x426a46)try{let _0x54daab=JSON['parse'](_0x426a46);return _0x40f6be(_0x54daab)?_0x54daab:void 0x0;}catch{return;}}function _0xce73c2(_0x2b03a3){const _0x3f9b21=_0x8bdc9;return _0x2b03a3?(0x0,_0xa093d0[_0x3f9b21(0x19a)])({'lastValue':_0x2b03a3[_0x3f9b21(0x12b)],'numberFormat':_0x2b03a3[_0x3f9b21(0x167)]})[_0x3f9b21(0x104)]:'';}let _0x1606d1=class extends _0x2ac10b[_0x8bdc9(0x1a2)]{constructor(_0x553e36,_0x46527d,_0x107778){const _0x59973c=_0x8bdc9;super(),this[_0x59973c(0x14c)]=_0x553e36,this['_cacheEligibilityService']=_0x46527d,this[_0x59973c(0x19b)](_0x107778['registerProvider'](this));}['collectMutations'](_0xd36ac2){const _0x1068a7=_0x8bdc9;let _0x2936f0=new Map();for(let _0x1a39e1 of this['_formulaService'][_0x1068a7(0x106)]()){var _0x10ebee,_0x458f31;if(!this[_0x1068a7(0x125)][_0x1068a7(0x22a)](_0x1a39e1[_0x1068a7(0x132)][_0x1068a7(0x11b)],_0x1a39e1[_0x1068a7(0x142)])[_0x1068a7(0x1bd)])continue;let _0x1d1d0d=(0x0,_0xa093d0[_0x1068a7(0x1a5)])(_0x1a39e1['liveResult']),_0x190335=_0x1d1d0d?(0x0,_0xa093d0[_0x1068a7(0xfe)])(_0x1d1d0d):null;if(!_0x190335||_0xd082c5(_0x1a39e1[_0x1068a7(0x132)]['lastValue'],_0x190335))continue;let _0x42cda6=(_0x10ebee=_0x2936f0[_0x1068a7(0x239)](_0x1a39e1[_0x1068a7(0x173)][_0x1068a7(0x127)]))==null?[]:_0x10ebee;_0x42cda6['push']({'rangeId':_0x1a39e1[_0x1068a7(0x173)][_0x1068a7(0x176)],'expectedFormula':_0x1a39e1[_0x1068a7(0x132)][_0x1068a7(0x11b)],'expectedNumberFormat':(_0x458f31=_0x1a39e1[_0x1068a7(0x132)][_0x1068a7(0x167)])==null?void 0x0:_0x458f31['pattern'],'expectedReferenceRevision':_0x1a39e1[_0x1068a7(0x1eb)],'lastValue':_0x190335}),_0x2936f0[_0x1068a7(0x1fb)](_0x1a39e1['identity'][_0x1068a7(0x127)],_0x42cda6);}return Array[_0x1068a7(0x23f)](_0x2936f0,([_0x379e3a,_0x17a78d])=>({'id':_0x2fbfe9['id'],'params':{'unitId':_0x379e3a,'updates':_0x17a78d}}));}};_0x1606d1=_0x2d669e([_0x34a45d(0x0,(0x0,_0x2ac10b['Inject'])(_0x5f3925)),_0x34a45d(0x1,(0x0,_0x2ac10b[_0x8bdc9(0x160)])(_0xa093d0[_0x8bdc9(0x183)])),_0x34a45d(0x2,(0x0,_0x2ac10b[_0x8bdc9(0x160)])(_0xa093d0['FormulaLastValuePersistenceService']))],_0x1606d1);function _0xd082c5(_0x326207,_0x259312){const _0x49666d=_0x8bdc9;return(_0x326207==null?void 0x0:_0x326207['v'])===_0x259312['v']&&(_0x326207==null?void 0x0:_0x326207['t'])===_0x259312['t']&&(_0x326207==null?void 0x0:_0x326207['pattern'])===_0x259312[_0x49666d(0x1d8)];}let _0xf5b4a2=class extends _0x2ac10b[_0x8bdc9(0x23b)]{constructor(_0x8bd54=_0x1e265f,_0x5d95ca,_0x39cb81,_0x5b885b){const _0x2c1db1=_0x8bdc9;super(),this[_0x2c1db1(0x162)]=_0x8bd54,this['_injector']=_0x5d95ca,this[_0x2c1db1(0x145)]=_0x39cb81,this[_0x2c1db1(0x186)]=_0x5b885b;let {..._0x14a78a}=(0x0,_0x2ac10b[_0x2c1db1(0x15a)])({},_0x1e265f,this[_0x2c1db1(0x162)]);this[_0x2c1db1(0x186)][_0x2c1db1(0x113)](_0x2c1db1(0x1ce),_0x14a78a);}['onStarting'](){const _0x311548=_0x8bdc9;this[_0x311548(0x22d)][_0x311548(0x14e)]([_0x452eec]),this[_0x311548(0x22d)]['add']([_0x5f3925]),this[_0x311548(0x22d)][_0x311548(0x14e)]([_0x16f61e]),this['_injector'][_0x311548(0x14e)]([_0x4c3b78]),this[_0x311548(0x22d)][_0x311548(0x14e)]([_0x1606d1]),this[_0x311548(0x22d)][_0x311548(0x14e)]([_0x3dae3d]),(0x0,_0x2ac10b[_0x311548(0x130)])(this[_0x311548(0x22d)],[[_0x452eec],[_0x16f61e],[_0x4c3b78],[_0x1606d1],[_0x3dae3d]]),[_0x42e591,_0x120af3,_0x4f7823,_0x2fbfe9,_0xf83f93,_0x2fff19,_0x1447d6,_0x15f3ec,_0x515213,_0x51657b][_0x311548(0x119)](_0x3e49b8=>this[_0x311548(0x19b)](this[_0x311548(0x145)][_0x311548(0x158)](_0x3e49b8)));}};_0x2b07b4(_0xf5b4a2,_0x8bdc9(0x1b8),_0x249a09),_0x2b07b4(_0xf5b4a2,'packageName',_0x3bcfd6),_0x2b07b4(_0xf5b4a2,'version',_0x30abfe),_0x2b07b4(_0xf5b4a2,_0x8bdc9(0x120),_0x2ac10b[_0x8bdc9(0x150)]['UNIVER_DOC']),_0xf5b4a2=_0x2d669e([(0x0,_0x2ac10b[_0x8bdc9(0x234)])(_0x4e9623[_0x8bdc9(0x230)],_0xa093d0[_0x8bdc9(0x197)],_0x190834[_0x8bdc9(0x21a)]),_0x34a45d(0x1,(0x0,_0x2ac10b['Inject'])(_0x2ac10b[_0x8bdc9(0x144)])),_0x34a45d(0x2,_0x2ac10b[_0x8bdc9(0x17b)]),_0x34a45d(0x3,_0x2ac10b[_0x8bdc9(0x1e9)])],_0xf5b4a2),_0x20544e[_0x8bdc9(0x1cb)]=_0x51657b,_0x20544e[_0x8bdc9(0x1f6)]=_0x5c3e0a,_0x20544e['DOC_FORMULA_OBJECT_REPLACEMENT']='',_0x20544e['DOC_FORMULA_PLUGIN']=_0x249a09,_0x20544e[_0x8bdc9(0x1d9)]=0x1,Object[_0x8bdc9(0x1ba)](_0x20544e,_0x8bdc9(0x108),{'enumerable':!0x0,'get':function(){return _0x3dae3d;}}),Object[_0x8bdc9(0x1ba)](_0x20544e,_0x8bdc9(0x102),{'enumerable':!0x0,'get':function(){return _0x4c3b78;}}),_0x20544e[_0x8bdc9(0x22c)]=_0x452eec,Object[_0x8bdc9(0x1ba)](_0x20544e,_0x8bdc9(0x163),{'enumerable':!0x0,'get':function(){return _0x16f61e;}}),_0x20544e['DocFormulaResultStatus']=_0x26432c,Object[_0x8bdc9(0x1ba)](_0x20544e,_0x8bdc9(0x1a8),{'enumerable':!0x0,'get':function(){return _0x5f3925;}}),_0x20544e[_0x8bdc9(0x22e)]=_0xf83f93,_0x20544e[_0x8bdc9(0x201)]=_0x43dabf,_0x20544e[_0x8bdc9(0x153)]=_0x15f3ec,_0x20544e[_0x8bdc9(0x20f)]=_0x120af3,_0x20544e[_0x8bdc9(0x200)]=_0x515213,_0x20544e[_0x8bdc9(0x154)]=_0x2fbfe9,_0x20544e[_0x8bdc9(0x1ff)]=_0x42e591,_0x20544e[_0x8bdc9(0x238)]=_0x1447d6,_0x20544e[_0x8bdc9(0x224)]=_0x4f7823,Object[_0x8bdc9(0x1ba)](_0x20544e,'UniverDocsFormulaPlugin',{'enumerable':!0x0,'get':function(){return _0xf5b4a2;}}),_0x20544e[_0x8bdc9(0x1e8)]=_0x2fff19,_0x20544e['assertSafeDocFormulaInsertRange']=_0x15ec0d,_0x20544e[_0x8bdc9(0x16c)]=_0x26ee81,_0x20544e['buildRemoveDocFormulaActions']=_0x3e9203,_0x20544e[_0x8bdc9(0x134)]=_0x3d1cf5,_0x20544e[_0x8bdc9(0x1ed)]=_0x7fafb9,_0x20544e[_0x8bdc9(0x217)]=_0x2fb1b,_0x20544e[_0x8bdc9(0x16f)]=_0x3e72e9,_0x20544e['isDocFormulaConfig']=_0x5d9cd9,_0x20544e['isDocFormulaRange']=_0x567947,_0x20544e[_0x8bdc9(0x188)]=_0x40f6be,_0x20544e[_0x8bdc9(0x138)]=_0x47834a;}));
|
package/package.json
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@univerjs-pro/docs-formula",
|
|
3
|
+
"version": "1.0.0-insiders.20260729-99504c3",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "Inline data formula model integration for Univer Docs.",
|
|
6
|
+
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
7
|
+
"funding": {
|
|
8
|
+
"type": "opencollective",
|
|
9
|
+
"url": "https://opencollective.com/univer"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://univer.ai",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/dream-num/univer"
|
|
15
|
+
},
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/dream-num/univer/issues"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"univer",
|
|
21
|
+
"univer-pro",
|
|
22
|
+
"docs",
|
|
23
|
+
"formula",
|
|
24
|
+
"plugin"
|
|
25
|
+
],
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"import": "./lib/es/index.js",
|
|
29
|
+
"require": "./lib/cjs/index.js",
|
|
30
|
+
"types": "./lib/types/index.d.ts"
|
|
31
|
+
},
|
|
32
|
+
"./*": {
|
|
33
|
+
"import": "./lib/es/*",
|
|
34
|
+
"require": "./lib/cjs/*",
|
|
35
|
+
"types": "./lib/types/index.d.ts"
|
|
36
|
+
},
|
|
37
|
+
"./facade": {
|
|
38
|
+
"import": "./lib/es/facade.js",
|
|
39
|
+
"require": "./lib/cjs/facade.js",
|
|
40
|
+
"types": "./lib/types/facade/index.d.ts"
|
|
41
|
+
},
|
|
42
|
+
"./lib/facade": {
|
|
43
|
+
"import": "./lib/es/facade.js",
|
|
44
|
+
"require": "./lib/cjs/facade.js",
|
|
45
|
+
"types": "./lib/types/facade/index.d.ts"
|
|
46
|
+
},
|
|
47
|
+
"./lib/*": "./lib/*"
|
|
48
|
+
},
|
|
49
|
+
"main": "./lib/es/index.js",
|
|
50
|
+
"types": "./lib/types/index.d.ts",
|
|
51
|
+
"publishConfig": {
|
|
52
|
+
"access": "public"
|
|
53
|
+
},
|
|
54
|
+
"directories": {
|
|
55
|
+
"lib": "lib"
|
|
56
|
+
},
|
|
57
|
+
"files": [
|
|
58
|
+
"lib"
|
|
59
|
+
],
|
|
60
|
+
"peerDependencies": {
|
|
61
|
+
"rxjs": ">=7.0.0"
|
|
62
|
+
},
|
|
63
|
+
"dependencies": {
|
|
64
|
+
"@univerjs-pro/engine-formula": "1.0.0-insiders.20260729-99504c3",
|
|
65
|
+
"@univerjs/core": "1.0.0-insiders.20260729-99504c3",
|
|
66
|
+
"@univerjs-pro/license": "1.0.0-insiders.20260729-99504c3",
|
|
67
|
+
"@univerjs/docs": "1.0.0-insiders.20260729-99504c3",
|
|
68
|
+
"@univerjs/engine-formula": "1.0.0-insiders.20260729-99504c3"
|
|
69
|
+
},
|
|
70
|
+
"devDependencies": {
|
|
71
|
+
"rxjs": "7.8.2",
|
|
72
|
+
"typescript": "^6.0.3",
|
|
73
|
+
"vitest": "^4.1.10",
|
|
74
|
+
"@univerjs-infra/shared": "1.0.0-alpha.7",
|
|
75
|
+
"@univerjs/engine-render": "1.0.0-insiders.20260729-99504c3"
|
|
76
|
+
},
|
|
77
|
+
"scripts": {
|
|
78
|
+
"test": "vitest run",
|
|
79
|
+
"test:watch": "vitest",
|
|
80
|
+
"coverage": "vitest run --coverage",
|
|
81
|
+
"typecheck": "tsc --noEmit",
|
|
82
|
+
"build:bundle": "univer-cli build",
|
|
83
|
+
"build:types": "tsc -p tsconfig.node.json",
|
|
84
|
+
"build": "pnpm run build:bundle && pnpm run build:types"
|
|
85
|
+
},
|
|
86
|
+
"module": "./lib/es/index.js"
|
|
87
|
+
}
|