@univerjs-pro/docs-table 1.0.0-beta.0 → 1.0.0-beta.2

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.
@@ -1,8 +1,9 @@
1
1
  import type { ICommand } from '@univerjs/core';
2
2
  import type { IDocsTableSegmentOptions } from '../common/type';
3
3
  export interface IDocsTableDeleteColumnsCommandParams extends IDocsTableSegmentOptions {
4
- tableId?: string;
5
- startColumn?: number;
6
- endColumn?: number;
4
+ unitId: string;
5
+ tableId: string;
6
+ startColumn: number;
7
+ endColumn: number;
7
8
  }
8
9
  export declare const DocsTableDeleteColumnsCommand: ICommand<IDocsTableDeleteColumnsCommandParams>;
@@ -1,8 +1,9 @@
1
1
  import type { ICommand } from '@univerjs/core';
2
2
  import type { IDocsTableSegmentOptions } from '../common/type';
3
3
  export interface IDocsTableDeleteRowsCommandParams extends IDocsTableSegmentOptions {
4
- tableId?: string;
5
- startRow?: number;
6
- endRow?: number;
4
+ unitId: string;
5
+ tableId: string;
6
+ startRow: number;
7
+ endRow: number;
7
8
  }
8
9
  export declare const DocsTableDeleteRowsCommand: ICommand<IDocsTableDeleteRowsCommandParams>;
@@ -1,6 +1,7 @@
1
1
  import type { ICommand } from '@univerjs/core';
2
2
  import type { IDocsTableSegmentOptions } from '../common/type';
3
3
  export interface IDocsTableDeleteTableCommandParams extends IDocsTableSegmentOptions {
4
- tableId?: string;
4
+ unitId: string;
5
+ tableId: string;
5
6
  }
6
7
  export declare const DocsTableDeleteTableCommand: ICommand<IDocsTableDeleteTableCommandParams>;
@@ -1,9 +1,9 @@
1
1
  import type { DocsTableColumnInsertPosition, DocsTableRowInsertPosition, DocsTableSortDirection, IDocsTableCellRange, IDocsTableColumnTypeConfig, IDocsTableMetadata, IDocsTableOffsetRange } from '@univerjs-pro/docs-table';
2
- import type { Injector, ITable, ITableCellMargin, ITableRowSize, Nullable } from '@univerjs/core';
2
+ import type { ITable, ITableCellMargin, ITableRowSize, Nullable } from '@univerjs/core';
3
3
  import type { FDocument } from '@univerjs/docs/facade';
4
4
  import type { IDocsTableBorderOptions, IDocsTableCellContentRange, IDocsTableDescription, IDocsTableInfo, IDocsTableStyle } from './types';
5
5
  import { DocsTableSelectionKind } from '@univerjs-pro/docs-table';
6
- import { TableRowHeightRule } from '@univerjs/core';
6
+ import { ICommandService, Injector, TableRowHeightRule } from '@univerjs/core';
7
7
  import { FDocumentTableCell } from './f-document-table-cell';
8
8
  /**
9
9
  * Facade object for a single enhanced docs table.
@@ -25,9 +25,10 @@ export declare class FDocumentTable {
25
25
  private readonly _document;
26
26
  private readonly _tableId;
27
27
  private readonly _segmentId;
28
+ private readonly _commandService;
28
29
  private readonly _injector;
29
30
  private readonly _unitId;
30
- constructor(_document: FDocument, _tableId: string, _segmentId: string | undefined, _injector: Injector);
31
+ constructor(_document: FDocument, _tableId: string, _segmentId: string, _commandService: ICommandService, _injector: Injector);
31
32
  /**
32
33
  * Returns the table id.
33
34
  * @returns {string} The table id stored in the document snapshot.
@@ -17,6 +17,7 @@ export declare class DocsTableSelectionService extends Disposable {
17
17
  private readonly _docSelectionManagerService;
18
18
  private readonly _selectionChange$;
19
19
  private _structuralSelection;
20
+ private _structuralSelectionTableShape;
20
21
  private _nativeSelectionSuppressed;
21
22
  private _preserveStructuralSelectionOnNextTextSelection;
22
23
  readonly selectionChange$: import("rxjs").Observable<Nullable<IDocsTableSelection>>;
@@ -36,5 +37,7 @@ export declare class DocsTableSelectionService extends Disposable {
36
37
  private _getSelectionFromActiveTextRange;
37
38
  private _getSelectionFromRectRanges;
38
39
  private _canCombineRectRanges;
40
+ private _getValidStructuralSelection;
41
+ private _clearStructuralSelectionState;
39
42
  }
40
43
  export {};
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- (function(_0x13532d,_0x4d1907){const _0x4a7977=_0x23c7,_0x51032b=_0x13532d();while(!![]){try{const _0x30bfee=parseInt(_0x4a7977(0xe1))/0x1*(-parseInt(_0x4a7977(0x100))/0x2)+parseInt(_0x4a7977(0xdc))/0x3+-parseInt(_0x4a7977(0xa3))/0x4*(-parseInt(_0x4a7977(0x88))/0x5)+-parseInt(_0x4a7977(0x89))/0x6*(parseInt(_0x4a7977(0x159))/0x7)+parseInt(_0x4a7977(0x15c))/0x8*(-parseInt(_0x4a7977(0x11b))/0x9)+parseInt(_0x4a7977(0xba))/0xa*(-parseInt(_0x4a7977(0xcf))/0xb)+-parseInt(_0x4a7977(0xc4))/0xc*(-parseInt(_0x4a7977(0x124))/0xd);if(_0x30bfee===_0x4d1907)break;else _0x51032b['push'](_0x51032b['shift']());}catch(_0x2e2ae3){_0x51032b['push'](_0x51032b['shift']());}}}(_0x2f9a,0x4b699),function(_0x4b57be,_0x4baf84){const _0x3c0561=_0x23c7;typeof exports=='object'&&typeof module<'u'?_0x4baf84(exports,require('@univerjs-pro/docs-table'),require('@univerjs/core'),require('@univerjs/core/facade'),require('@univerjs/docs/facade')):typeof define==_0x3c0561(0xe3)&&define[_0x3c0561(0x151)]?define([_0x3c0561(0x112),_0x3c0561(0xb8),_0x3c0561(0x15d),_0x3c0561(0xda),_0x3c0561(0x155)],_0x4baf84):(_0x4b57be=typeof globalThis<'u'?globalThis:_0x4b57be||self,_0x4baf84(_0x4b57be[_0x3c0561(0xbc)]={},_0x4b57be['UniverProDocsTable'],_0x4b57be['UniverCore'],_0x4b57be[_0x3c0561(0x149)],_0x4b57be[_0x3c0561(0xc0)]));}(this,function(_0x485777,_0x4fcea3,_0x1de5da,_0x4e00eb,_0x461350){const _0x35ec16=_0x23c7;Object[_0x35ec16(0xe8)](_0x485777,Symbol['toStringTag'],{'value':_0x35ec16(0x8d)});var _0x3efbfd=class extends _0x4e00eb[_0x35ec16(0x118)]{get[_0x35ec16(0xf6)](){const _0x5a3b9f=_0x35ec16;return _0x4fcea3[_0x5a3b9f(0xf6)];}get[_0x35ec16(0xc9)](){const _0x3744ce=_0x35ec16;return _0x4fcea3[_0x3744ce(0xc9)];}get[_0x35ec16(0x9e)](){const _0x354655=_0x35ec16;return _0x4fcea3[_0x354655(0x9e)];}get[_0x35ec16(0x107)](){return _0x4fcea3['DocsTableRowInsertPosition'];}get[_0x35ec16(0x127)](){const _0x1df8ce=_0x35ec16;return _0x4fcea3[_0x1df8ce(0x127)];}get[_0x35ec16(0xc2)](){const _0x597559=_0x35ec16;return _0x4fcea3[_0x597559(0xc2)];}get['DocsTableSortDirection'](){const _0x44be06=_0x35ec16;return _0x4fcea3[_0x44be06(0x143)];}get[_0x35ec16(0x158)](){const _0x26c55b=_0x35ec16;return _0x1de5da[_0x26c55b(0x158)];}};_0x4e00eb[_0x35ec16(0x118)][_0x35ec16(0x113)](_0x3efbfd);var _0x37036d=class{constructor(_0x84ad15,_0x3b80b1,_0x293f75){const _0x201b77=_0x35ec16;this['_table']=_0x84ad15,this[_0x201b77(0x10a)]=_0x3b80b1,this[_0x201b77(0x12b)]=_0x293f75;}[_0x35ec16(0xd4)](){const _0x1d8bf3=_0x35ec16;return this[_0x1d8bf3(0xcb)];}['getRowIndex'](){const _0x295929=_0x35ec16;return this[_0x295929(0x10a)];}[_0x35ec16(0xc3)](){const _0x3ff9e6=_0x35ec16;return this[_0x3ff9e6(0x12b)];}[_0x35ec16(0x129)](){const _0x57cbdb=_0x35ec16;return this[_0x57cbdb(0xcb)]['getCellText'](this['_row'],this['_column']);}[_0x35ec16(0xe7)](){const _0x47b95f=_0x35ec16;return this[_0x47b95f(0xcb)][_0x47b95f(0xaf)](this[_0x47b95f(0x10a)],this[_0x47b95f(0x12b)]);}[_0x35ec16(0x99)](){const _0xb097b5=_0x35ec16;return this['_table'][_0xb097b5(0xb1)](this[_0xb097b5(0x10a)],this[_0xb097b5(0x12b)]);}[_0x35ec16(0x121)](){const _0x25bc08=_0x35ec16;return this[_0x25bc08(0xcb)][_0x25bc08(0xd7)](this['_row'],this[_0x25bc08(0x12b)]);}[_0x35ec16(0xad)](){const _0x193852=_0x35ec16;return this[_0x193852(0xcb)]['getCellMarginOverride'](this[_0x193852(0x10a)],this[_0x193852(0x12b)]);}['setMargin'](_0xfb8d07){const _0x19c10d=_0x35ec16;return this['_table'][_0x19c10d(0xeb)](this['_table']['getCellRange'](this[_0x19c10d(0x10a)],this[_0x19c10d(0x12b)]),_0xfb8d07);}[_0x35ec16(0x9b)](){const _0x34480c=_0x35ec16;return this[_0x34480c(0xcb)][_0x34480c(0xeb)](this[_0x34480c(0xcb)][_0x34480c(0x12a)](this[_0x34480c(0x10a)],this[_0x34480c(0x12b)]),null);}[_0x35ec16(0xdd)](_0x56fab7){const _0x23339d=_0x35ec16;return this['_table'][_0x23339d(0x144)](this[_0x23339d(0x10a)],this[_0x23339d(0x12b)],_0x56fab7);}[_0x35ec16(0x157)](_0x778770){const _0x3cadee=_0x35ec16;return this[_0x3cadee(0xcb)][_0x3cadee(0x136)](this[_0x3cadee(0xcb)]['getCellRange'](this[_0x3cadee(0x10a)],this[_0x3cadee(0x12b)]),_0x778770);}[_0x35ec16(0xf3)](_0x3064cf){const _0x112a29=_0x35ec16;return this[_0x112a29(0xcb)][_0x112a29(0xf3)](this[_0x112a29(0xcb)][_0x112a29(0x12a)](this['_row'],this[_0x112a29(0x12b)]),_0x3064cf);}['mergeTo'](_0x3d8a2d,_0x4d7e2e){const _0x350a33=_0x35ec16;return this[_0x350a33(0xcb)][_0x350a33(0x94)]({'startRow':this[_0x350a33(0x10a)],'startColumn':this[_0x350a33(0x12b)],'endRow':this[_0x350a33(0x10a)]+_0x3d8a2d-0x1,'endColumn':this['_column']+_0x4d7e2e-0x1});}[_0x35ec16(0x125)](){const _0x4bc508=_0x35ec16;return this['_table'][_0x4bc508(0xb7)](this[_0x4bc508(0xcb)]['getCellRange'](this['_row'],this['_column']));}};function _0x23667d(_0x4aa22b){'@babel/helpers - typeof';const _0x2d1da4=_0x35ec16;return _0x23667d=typeof Symbol==_0x2d1da4(0xe3)&&typeof Symbol['iterator']==_0x2d1da4(0x11d)?function(_0x4ad6fe){return typeof _0x4ad6fe;}:function(_0x107c88){const _0x136ab2=_0x2d1da4;return _0x107c88&&typeof Symbol==_0x136ab2(0xe3)&&_0x107c88[_0x136ab2(0x82)]===Symbol&&_0x107c88!==Symbol[_0x136ab2(0xc8)]?_0x136ab2(0x11d):typeof _0x107c88;},_0x23667d(_0x4aa22b);}function _0x5685bd(_0x14391d,_0x23777a){const _0x5192f2=_0x35ec16;if(_0x23667d(_0x14391d)!=_0x5192f2(0xbf)||!_0x14391d)return _0x14391d;var _0x332852=_0x14391d[Symbol['toPrimitive']];if(_0x332852!==void 0x0){var _0x1906ae=_0x332852[_0x5192f2(0x131)](_0x14391d,_0x23777a||'default');if(_0x23667d(_0x1906ae)!='object')return _0x1906ae;throw TypeError(_0x5192f2(0x8f));}return(_0x23777a===_0x5192f2(0xde)?String:Number)(_0x14391d);}function _0x1acee6(_0x3a0d8e){const _0x28ad27=_0x35ec16;var _0x27655a=_0x5685bd(_0x3a0d8e,_0x28ad27(0xde));return _0x23667d(_0x27655a)==_0x28ad27(0x11d)?_0x27655a:_0x27655a+'';}function _0x30ca2b(_0x12dc3a,_0x5efead,_0x3f397b){return(_0x5efead=_0x1acee6(_0x5efead))in _0x12dc3a?Object['defineProperty'](_0x12dc3a,_0x5efead,{'value':_0x3f397b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x12dc3a[_0x5efead]=_0x3f397b,_0x12dc3a;}var _0x39f630=class{constructor(_0x5f3f77,_0x391ab2,_0x2a27c8='',_0x2142ae){const _0x858b3=_0x35ec16;this[_0x858b3(0xec)]=_0x5f3f77,this[_0x858b3(0xfa)]=_0x391ab2,this['_segmentId']=_0x2a27c8,this['_injector']=_0x2142ae,_0x30ca2b(this,_0x858b3(0x11f),void 0x0),this[_0x858b3(0x11f)]=this['_document'][_0x858b3(0x13e)]();}['getId'](){const _0x330501=_0x35ec16;return this[_0x330501(0xfa)];}[_0x35ec16(0x96)](){const _0x48fe79=_0x35ec16;return this[_0x48fe79(0xb4)];}['getInfo'](){const _0x48514c=_0x35ec16;return{'id':this['_tableId'],'rowCount':this[_0x48514c(0x134)](),'columnCount':this[_0x48514c(0xb5)](),'metadata':this[_0x48514c(0xae)](),'source':this[_0x48514c(0x148)]()};}[_0x35ec16(0x101)](){const _0xe44d9d=_0x35ec16;let _0x53f74f=this[_0xe44d9d(0xae)](),_0x397e34=this[_0xe44d9d(0x148)](),_0xfcb563=this[_0xe44d9d(0xb5)]();return{'id':this[_0xe44d9d(0xfa)],'rowCount':this['getRowCount'](),'columnCount':_0xfcb563,'headerRowCount':(_0x53f74f==null?void 0x0:_0x53f74f[_0xe44d9d(0x150)])??0x0,'titleRow':(_0x53f74f==null?void 0x0:_0x53f74f[_0xe44d9d(0x119)])??!0x1,'columns':Array[_0xe44d9d(0x13a)]({'length':_0xfcb563},(_0x3a7046,_0x1ed7d3)=>{const _0x5f472c=_0xe44d9d;var _0x26293f,_0x55b0a9;return{'index':_0x1ed7d3,'type':_0x53f74f==null||(_0x26293f=_0x53f74f[_0x5f472c(0x102)])==null||(_0x26293f=_0x26293f[_0x1ed7d3])==null?void 0x0:_0x26293f[_0x5f472c(0xd2)],'width':_0x397e34==null||(_0x55b0a9=_0x397e34['tableColumns'][_0x1ed7d3])==null?void 0x0:_0x55b0a9['size']['width']['v']};}),'sampleRows':Array[_0xe44d9d(0x13a)]({'length':this['getRowCount']()},(_0x4e279b,_0x49a7f3)=>Array[_0xe44d9d(0x13a)]({'length':_0xfcb563},(_0x371a75,_0x24fa05)=>this[_0xe44d9d(0x11c)](_0x49a7f3,_0x24fa05)))[_0xe44d9d(0x145)](_0x3fcc07=>_0x3fcc07[_0xe44d9d(0x116)](_0xe385e8=>_0xe385e8[_0xe44d9d(0x87)]>0x0))[_0xe44d9d(0xfc)](0x0,0x5)};}[_0x35ec16(0x134)](){const _0x502466=_0x35ec16;var _0x15bdd4;return((_0x15bdd4=this['getSource']())==null?void 0x0:_0x15bdd4[_0x502466(0x10f)][_0x502466(0x87)])??0x0;}['getColumnCount'](){const _0x2368dd=_0x35ec16;var _0x229b26;return((_0x229b26=this[_0x2368dd(0x148)]())==null?void 0x0:_0x229b26[_0x2368dd(0x84)][_0x2368dd(0x87)])??0x0;}[_0x35ec16(0xf4)](_0x4a4160,_0x2a4014){const _0x2f257a=_0x35ec16;var _0x566883;return(_0x566883=this[_0x2f257a(0x148)]())!=null&&(_0x566883=_0x566883[_0x2f257a(0x10f)][_0x4a4160])!=null&&_0x566883[_0x2f257a(0x97)][_0x2a4014]?this['_injector'][_0x2f257a(0x12d)](_0x37036d,this,_0x4a4160,_0x2a4014):null;}[_0x35ec16(0x11c)](_0x2e2057,_0x18bef2){const _0x57bfff=_0x35ec16;var _0x19993f,_0xd4c91e;let _0x2a2328=(_0x19993f=(0x0,_0x4fcea3[_0x57bfff(0xf9)])(this[_0x57bfff(0xbd)](),this['_tableId']))==null||(_0x19993f=_0x19993f[_0x57bfff(0xa2)][_0x2e2057])==null?void 0x0:_0x19993f[_0x57bfff(0x142)][_0x18bef2];return _0x2a2328?((_0xd4c91e=this['_getDocumentData']()[_0x57bfff(0x105)])==null?void 0x0:_0xd4c91e[_0x57bfff(0x13f)]['slice'](_0x2a2328[_0x57bfff(0x12f)]+0x1,_0x2a2328[_0x57bfff(0x14e)])['replace'](/\r\n$/,''))??'':'';}[_0x35ec16(0xd7)](_0x4f6093,_0x205b9c){const _0x138b54=_0x35ec16;var _0x4649f4;let _0x2fba35=this['getSource'](),_0x136691=_0x2fba35==null||(_0x4649f4=_0x2fba35[_0x138b54(0x10f)][_0x4f6093])==null?void 0x0:_0x4649f4[_0x138b54(0x97)][_0x205b9c];return _0x136691?_0x1de5da['Tools'][_0x138b54(0x8a)](_0x136691[_0x138b54(0xe4)]??_0x2fba35[_0x138b54(0x9a)]??_0x4fcea3['DEFAULT_DOCS_TABLE_CELL_MARGIN']):null;}[_0x35ec16(0xb3)](_0xaa3e58,_0x183907){const _0x49e663=_0x35ec16;var _0x316768;let _0x255c5f=(_0x316768=this[_0x49e663(0x148)]())==null||(_0x316768=_0x316768[_0x49e663(0x10f)][_0xaa3e58])==null?void 0x0:_0x316768[_0x49e663(0x97)][_0x183907];return _0x255c5f!=null&&_0x255c5f[_0x49e663(0xe4)]?_0x1de5da[_0x49e663(0x156)][_0x49e663(0x8a)](_0x255c5f[_0x49e663(0xe4)]):null;}[_0x35ec16(0x152)](){const _0x6c6822=_0x35ec16;var _0x422eda;return _0x1de5da[_0x6c6822(0x156)][_0x6c6822(0x8a)](((_0x422eda=this['getSource']())==null?void 0x0:_0x422eda['cellMargin'])??_0x4fcea3[_0x6c6822(0xb2)]);}[_0x35ec16(0x10d)](){const _0x1cc365=_0x35ec16;var _0x47f413;let _0x1b76f4=(_0x47f413=this[_0x1cc365(0x148)]())==null?void 0x0:_0x47f413['cellMargin'];return _0x1b76f4?_0x1de5da[_0x1cc365(0x156)][_0x1cc365(0x8a)](_0x1b76f4):null;}['getMetadata'](){const _0x1dff68=_0x35ec16;return this['_injector']['get'](_0x4fcea3[_0x1dff68(0x12e)])[_0x1dff68(0xc5)](this[_0x1dff68(0x11f)],this[_0x1dff68(0xfa)]);}[_0x35ec16(0x148)](){const _0x2ea99d=_0x35ec16;var _0x5278da;return(_0x5278da=this['_getDocumentData']()['tableSource'])==null?void 0x0:_0x5278da[this[_0x2ea99d(0xfa)]];}['getRange'](){const _0x1cfed9=_0x35ec16;return(0x0,_0x4fcea3[_0x1cfed9(0xf9)])(this[_0x1cfed9(0xbd)](),this[_0x1cfed9(0xfa)]);}[_0x35ec16(0xa0)](){const _0x578f85=_0x35ec16;return{'startRow':0x0,'endRow':Math['max'](0x0,this[_0x578f85(0x134)]()-0x1),'startColumn':0x0,'endColumn':Math[_0x578f85(0xc1)](0x0,this['getColumnCount']()-0x1)};}[_0x35ec16(0x12a)](_0x3af197,_0x4d2933){return{'startRow':_0x3af197,'endRow':_0x3af197,'startColumn':_0x4d2933,'endColumn':_0x4d2933};}[_0x35ec16(0xaf)](_0x3d58df,_0x27fb43){const _0xa20e78=_0x35ec16;var _0x409a58;let _0x50658f=(_0x409a58=(0x0,_0x4fcea3[_0xa20e78(0xf9)])(this[_0xa20e78(0xbd)](),this[_0xa20e78(0xfa)]))==null||(_0x409a58=_0x409a58[_0xa20e78(0xa2)][_0x3d58df])==null?void 0x0:_0x409a58['cells'][_0x27fb43];if(!_0x50658f)return null;let _0x19c783=_0x50658f[_0xa20e78(0x12f)]+0x1;return{'startOffset':_0x19c783,'endOffset':Math[_0xa20e78(0xc1)](_0x19c783,_0x50658f[_0xa20e78(0x14e)]-0x1),'segmentId':this['_segmentId']};}[_0x35ec16(0xb1)](_0x31e842,_0x2245f1){const _0x21227b=_0x35ec16;let _0x221b67=this[_0x21227b(0xaf)](_0x31e842,_0x2245f1);return _0x221b67?Math['max'](_0x221b67[_0x21227b(0x12f)],_0x221b67['endOffset']-0x1):null;}['getRowRange'](_0x1851b4){const _0x1e5aba=_0x35ec16;return this[_0x1e5aba(0x103)](_0x1851b4,0x1);}['getRowsRange'](_0x3dc2ed,_0x3a48ae=0x1){return{'startRow':_0x3dc2ed,'endRow':_0x3dc2ed+_0x3a48ae-0x1,'startColumn':0x0,'endColumn':Math['max'](0x0,this['getColumnCount']()-0x1)};}['getColumnRange'](_0x49edb7){const _0x2b7cf5=_0x35ec16;return this[_0x2b7cf5(0x12c)](_0x49edb7,0x1);}[_0x35ec16(0x12c)](_0x55d4a0,_0x34d1ff=0x1){const _0x58aa3d=_0x35ec16;return{'startRow':0x0,'endRow':Math[_0x58aa3d(0xc1)](0x0,this[_0x58aa3d(0x134)]()-0x1),'startColumn':_0x55d4a0,'endColumn':_0x55d4a0+_0x34d1ff-0x1};}[_0x35ec16(0xbb)](){const _0x438741=_0x35ec16;return this[_0x438741(0x133)](this['getTableRange'](),_0x4fcea3[_0x438741(0x9e)][_0x438741(0xcc)]);}['selectRow'](_0x48b437){const _0x31cc0a=_0x35ec16;return this[_0x31cc0a(0xfe)](_0x48b437,0x1);}[_0x35ec16(0xfe)](_0x456a71,_0x3f9413=0x1){const _0x588c4d=_0x35ec16;return this[_0x588c4d(0x133)](this[_0x588c4d(0x103)](_0x456a71,_0x3f9413),_0x4fcea3[_0x588c4d(0x9e)][_0x588c4d(0xd5)]);}[_0x35ec16(0x14f)](_0x10ee00){return this['selectColumns'](_0x10ee00,0x1);}[_0x35ec16(0x95)](_0x52d42b,_0x1078cc=0x1){const _0x22441a=_0x35ec16;return this[_0x22441a(0x133)](this[_0x22441a(0x12c)](_0x52d42b,_0x1078cc),_0x4fcea3[_0x22441a(0x9e)]['Column']);}[_0x35ec16(0xd0)](_0x2955a5,_0x315243){const _0x3fb17a=_0x35ec16;return this[_0x3fb17a(0x133)](this[_0x3fb17a(0x12a)](_0x2955a5,_0x315243),_0x4fcea3[_0x3fb17a(0x9e)][_0x3fb17a(0xa1)]);}[_0x35ec16(0x133)](_0x3feda3,_0x1d645f=_0x4fcea3[_0x35ec16(0x9e)][_0x35ec16(0x126)]){const _0x466ff9=_0x35ec16;return this[_0x466ff9(0xe5)][_0x466ff9(0xf8)](_0x4fcea3['DocsTableSelectionService'])[_0x466ff9(0xa7)]({..._0x3feda3,'kind':_0x1d645f,'segmentId':this[_0x466ff9(0xb4)],'tableId':this[_0x466ff9(0xfa)]}),!0x0;}[_0x35ec16(0x8c)](_0x2b125a){return this['insertRowsBefore'](_0x2b125a,0x1);}[_0x35ec16(0x9f)](_0xa9d36d){const _0x3ddb3f=_0x35ec16;return this[_0x3ddb3f(0x15f)](_0xa9d36d,0x1);}[_0x35ec16(0xfd)](_0x4466a4,_0xfd80e1){const _0x4214cc=_0x35ec16;let _0x8c8910=this[_0x4214cc(0xbd)](),_0x3b3c97=(0x0,_0x4fcea3[_0x4214cc(0xc7)])(_0x8c8910,this[_0x4214cc(0xfa)],_0x4466a4,_0xfd80e1,_0x4fcea3[_0x4214cc(0x9c)][_0x4214cc(0xa6)],this[_0x4214cc(0x106)]());return _0x3b3c97?this['_mutateActions'](_0x8c8910,_0x3b3c97['actions']):!0x1;}[_0x35ec16(0x15f)](_0x3ba10d,_0x3f76d8){const _0x118bb0=_0x35ec16;let _0x2bf76d=this[_0x118bb0(0xbd)](),_0x1230d5=(0x0,_0x4fcea3['buildInsertTableRowsMutationActions'])(_0x2bf76d,this[_0x118bb0(0xfa)],_0x3ba10d,_0x3f76d8,_0x4fcea3[_0x118bb0(0x9c)][_0x118bb0(0xbe)],this[_0x118bb0(0x106)]());return _0x1230d5?this[_0x118bb0(0x110)](_0x2bf76d,_0x1230d5[_0x118bb0(0x138)]):!0x1;}[_0x35ec16(0x92)](){const _0x3021e2=_0x35ec16;return this['insertRowsAfter'](Math[_0x3021e2(0xc1)](0x0,this[_0x3021e2(0x134)]()-0x1),0x1);}[_0x35ec16(0x83)](_0x94892){const _0x24cceb=_0x35ec16;return this[_0x24cceb(0xf7)](_0x94892,0x1);}['insertColumnAfter'](_0x240400){const _0x4c9a80=_0x35ec16;return this[_0x4c9a80(0x122)](_0x240400,0x1);}['insertColumnsBefore'](_0x83b6fb,_0x557fa6){const _0x27547e=_0x35ec16;let _0x1e48b=this[_0x27547e(0xbd)](),_0x20f8f4=(0x0,_0x4fcea3[_0x27547e(0x111)])(_0x1e48b,this[_0x27547e(0xfa)],_0x83b6fb,_0x557fa6,_0x4fcea3[_0x27547e(0x9c)][_0x27547e(0x90)],{'bodyPath':this[_0x27547e(0x106)]()});return _0x20f8f4?this[_0x27547e(0x110)](_0x1e48b,_0x20f8f4['actions']):!0x1;}['insertColumnsAfter'](_0x20a2fd,_0x75c87a){const _0x59e54b=_0x35ec16;let _0xdca956=this[_0x59e54b(0xbd)](),_0x23133b=(0x0,_0x4fcea3[_0x59e54b(0x111)])(_0xdca956,this[_0x59e54b(0xfa)],_0x20a2fd,_0x75c87a,_0x4fcea3[_0x59e54b(0x9c)][_0x59e54b(0xed)],{'bodyPath':this[_0x59e54b(0x106)]()});return _0x23133b?this[_0x59e54b(0x110)](_0xdca956,_0x23133b[_0x59e54b(0x138)]):!0x1;}[_0x35ec16(0xe6)](){const _0x36f25e=_0x35ec16;return this[_0x36f25e(0x122)](Math[_0x36f25e(0xc1)](0x0,this[_0x36f25e(0xb5)]()-0x1),0x1);}[_0x35ec16(0xb9)](_0xda79b2){const _0x1c635a=_0x35ec16;return this[_0x1c635a(0xc6)](_0xda79b2,0x1);}[_0x35ec16(0xc6)](_0xccb82c,_0x3ede4a=0x1){const _0x598433=_0x35ec16;let _0x4167e2=this['_getDocumentData'](),_0x689925=(0x0,_0x4fcea3[_0x598433(0xd1)])(_0x4167e2,this[_0x598433(0xfa)],_0xccb82c,_0xccb82c+_0x3ede4a-0x1,this[_0x598433(0x106)]());return _0x689925?this[_0x598433(0x110)](_0x4167e2,_0x689925['actions']):!0x1;}[_0x35ec16(0x108)](_0x150104){return this['deleteColumns'](_0x150104,0x1);}[_0x35ec16(0xf1)](_0x1e9748,_0x526325=0x1){const _0x3f9c41=_0x35ec16;let _0x5bc6a0=this['_getDocumentData'](),_0x10d8df=(0x0,_0x4fcea3[_0x3f9c41(0xa8)])(_0x5bc6a0,this['_tableId'],_0x1e9748,_0x1e9748+_0x526325-0x1,this[_0x3f9c41(0x106)]());return _0x10d8df?this[_0x3f9c41(0x110)](_0x5bc6a0,_0x10d8df[_0x3f9c41(0x138)]):!0x1;}[_0x35ec16(0x8b)](){const _0x26894e=_0x35ec16;let _0x4d2091=this[_0x26894e(0xbd)](),_0x23b823=(0x0,_0x4fcea3[_0x26894e(0x8e)])(_0x4d2091,this[_0x26894e(0xfa)],this[_0x26894e(0x106)]());return _0x23b823?this[_0x26894e(0x110)](_0x4d2091,_0x23b823[_0x26894e(0x138)]):!0x1;}['moveTableBy'](_0x3924ea,_0x491707){const _0x4fa668=_0x35ec16;let _0x53e2fb=this[_0x4fa668(0xbd)]();return this[_0x4fa668(0x110)](_0x53e2fb,(0x0,_0x4fcea3[_0x4fa668(0x120)])(_0x53e2fb,this['_tableId'],_0x3924ea,_0x491707));}[_0x35ec16(0x10e)](_0x1d3caa){const _0x3c6b4d=_0x35ec16;let _0x4e2d34=this[_0x3c6b4d(0xbd)]();return this[_0x3c6b4d(0x110)](_0x4e2d34,(0x0,_0x4fcea3[_0x3c6b4d(0xab)])(_0x4e2d34,this[_0x3c6b4d(0xfa)],_0x1d3caa,this[_0x3c6b4d(0x106)]()));}[_0x35ec16(0x141)](_0x321065,_0x3b0871,_0xb17f19=_0x4fcea3['DocsTableInsertPosition'][_0x35ec16(0xa6)]){return this['moveRows'](_0x321065,0x1,_0x3b0871,_0xb17f19);}[_0x35ec16(0xca)](_0x174280,_0x3ea3bc,_0x1705c9,_0x32ab67=_0x4fcea3[_0x35ec16(0x9c)][_0x35ec16(0xa6)]){const _0x5e1150=_0x35ec16;let _0x753b59=this[_0x5e1150(0xbd)](),_0x291990=(0x0,_0x4fcea3['buildMoveTableRowsMutationActions'])(_0x753b59,this[_0x5e1150(0xfa)],_0x174280,_0x1705c9,_0x3ea3bc,_0x32ab67,this[_0x5e1150(0x106)]());return _0x291990?this[_0x5e1150(0x110)](_0x753b59,_0x291990['actions']):!0x1;}[_0x35ec16(0x140)](_0x141d52,_0x5c0501,_0x808a04=_0x4fcea3[_0x35ec16(0x9c)][_0x35ec16(0x90)]){const _0x5bfd28=_0x35ec16;return this[_0x5bfd28(0x93)](_0x141d52,0x1,_0x5c0501,_0x808a04);}[_0x35ec16(0x93)](_0x1164a0,_0xb54fa2,_0x5e7884,_0x4c2b59=_0x4fcea3[_0x35ec16(0x9c)]['Left']){const _0x3886a4=_0x35ec16;let _0x13da21=this[_0x3886a4(0xbd)](),_0x4c3fb0=(0x0,_0x4fcea3['buildMoveTableColumnsMutationActions'])(_0x13da21,this['_tableId'],_0x1164a0,_0x5e7884,_0xb54fa2,_0x4c2b59,this['_getBodyPath']());return _0x4c3fb0?this[_0x3886a4(0x110)](_0x13da21,_0x4c3fb0[_0x3886a4(0x138)]):!0x1;}[_0x35ec16(0x94)](_0x454337){const _0x5a3c3c=_0x35ec16;try{let _0x4cd0a1=this['_getDocumentData'](),_0x307182=(0x0,_0x4fcea3[_0x5a3c3c(0x98)])({'documentData':_0x4cd0a1,'tableId':this[_0x5a3c3c(0xfa)],..._0x454337});return _0x307182?this[_0x5a3c3c(0x110)](_0x4cd0a1,_0x307182['actions'],_0x454337):!0x1;}catch{return!0x1;}}[_0x35ec16(0xb7)](_0x8d5ac9){const _0x31a352=_0x35ec16;try{let _0xcbe3f0=this[_0x31a352(0xbd)](),_0x2a3677=(0x0,_0x4fcea3[_0x31a352(0xb0)])({'documentData':_0xcbe3f0,'tableId':this[_0x31a352(0xfa)],..._0x8d5ac9});return _0x2a3677?this[_0x31a352(0x110)](_0xcbe3f0,_0x2a3677['actions'],_0x8d5ac9):!0x1;}catch{return!0x1;}}[_0x35ec16(0x144)](_0x45f4d7,_0x5d155a,_0x57d251){const _0x16e0d6=_0x35ec16;let _0x5cc827=this[_0x16e0d6(0xbd)](),_0x251924=(0x0,_0x4fcea3['getTableActionBodyPath'])(this['_document'][_0x16e0d6(0x13c)]()[_0x16e0d6(0x123)](),this[_0x16e0d6(0xb4)]);return this[_0x16e0d6(0x110)](_0x5cc827,(0x0,_0x4fcea3[_0x16e0d6(0x14b)])({'documentData':_0x5cc827,'tableId':this[_0x16e0d6(0xfa)],'row':_0x45f4d7,'column':_0x5d155a,'text':_0x57d251},_0x251924),this[_0x16e0d6(0x12a)](_0x45f4d7,_0x5d155a));}[_0x35ec16(0x136)](_0x35bf3a,_0x456582){const _0x59dca5=_0x35ec16;let _0x4ed6ac=this['_getDocumentData']();return this[_0x59dca5(0x110)](_0x4ed6ac,(0x0,_0x4fcea3[_0x59dca5(0xac)])(_0x4ed6ac,{'tableId':this[_0x59dca5(0xfa)],..._0x35bf3a,'value':_0x456582}),_0x35bf3a);}[_0x35ec16(0xeb)](_0x311989,_0x4ac669){const _0x37f207=_0x35ec16;let _0x29389a=this['_getDocumentData']();return this['_mutateActions'](_0x29389a,(0x0,_0x4fcea3[_0x37f207(0xe9)])({'documentData':_0x29389a,'tableId':this[_0x37f207(0xfa)],..._0x311989,'margin':_0x4ac669}),_0x311989);}[_0x35ec16(0xaa)](_0x2f4689){const _0x107a86=_0x35ec16;let _0x4ac482=this['_getDocumentData']();return this[_0x107a86(0x110)](_0x4ac482,(0x0,_0x4fcea3['buildSetTableDefaultCellMarginMutationActions'])(_0x4ac482,this[_0x107a86(0xfa)],_0x2f4689));}[_0x35ec16(0xf3)](_0x552ea4,_0x1aeb70){const _0x418722=_0x35ec16;let _0xb91b7e=this[_0x418722(0xbd)]();return this[_0x418722(0x110)](_0xb91b7e,(0x0,_0x4fcea3[_0x418722(0x10c)])({'documentData':_0xb91b7e,'tableId':this[_0x418722(0xfa)],..._0x552ea4,'preset':_0x1aeb70[_0x418722(0xea)]??_0x4fcea3[_0x418722(0xc2)][_0x418722(0x104)],'border':_0x1aeb70[_0x418722(0x14d)]??{'color':{'rgb':_0x1aeb70[_0x418722(0x13b)]??_0x418722(0x137)},'width':{'v':_0x1aeb70[_0x418722(0x86)]??0x1},'dashStyle':_0x1de5da['DashStyleType'][_0x418722(0xd9)]}}),_0x552ea4);}['setTableBackground'](_0x1ea3f5){const _0x57383f=_0x35ec16;return this['setCellBackground'](this[_0x57383f(0xa0)](),_0x1ea3f5);}['setTableBorder'](_0x482d4a){const _0xf65955=_0x35ec16;return this[_0xf65955(0xf3)](this[_0xf65955(0xa0)](),_0x482d4a);}[_0x35ec16(0xcd)](_0x5c855f){const _0x393f2e=_0x35ec16;let _0x58dd83=!_0x5c855f['backgroundColor']||this[_0x393f2e(0x153)](_0x5c855f[_0x393f2e(0x117)]),_0x4094e1=!_0x5c855f[_0x393f2e(0x14d)]||this[_0x393f2e(0x13d)](_0x5c855f[_0x393f2e(0x14d)]);return _0x58dd83&&_0x4094e1;}[_0x35ec16(0x9d)](_0x563674,_0x2ccc38,_0x559a39=_0x1de5da[_0x35ec16(0x135)][_0x35ec16(0x15a)]){const _0xfb1d72=_0x35ec16;var _0x22f445;let _0x3bfbfa=this[_0xfb1d72(0xbd)]();return(_0x22f445=_0x3bfbfa['tableSource'])!=null&&(_0x22f445=_0x22f445[this[_0xfb1d72(0xfa)]])!=null&&_0x22f445[_0xfb1d72(0x10f)][_0x563674]?this[_0xfb1d72(0x110)](_0x3bfbfa,(0x0,_0x4fcea3['buildResizeTableRowActionsFromHeight'])(_0x3bfbfa,this[_0xfb1d72(0xfa)],_0x563674,_0x2ccc38,_0x559a39)):!0x1;}[_0x35ec16(0xff)](_0x44ddf0){const _0x4ae771=_0x35ec16;var _0x4e5ece;let _0x25df1a=(_0x4e5ece=this[_0x4ae771(0x148)]())==null||(_0x4e5ece=_0x4e5ece[_0x4ae771(0x10f)][_0x44ddf0])==null?void 0x0:_0x4e5ece['trHeight'];return _0x25df1a?_0x1de5da[_0x4ae771(0x156)][_0x4ae771(0x8a)](_0x25df1a):null;}['setColumnWidth'](_0x4e52a3,_0x6bfa5a){const _0xa54717=_0x35ec16;var _0x5bfe02;let _0x4f1c9d=this['_getDocumentData']();return(_0x5bfe02=_0x4f1c9d[_0xa54717(0xe2)])!=null&&(_0x5bfe02=_0x5bfe02[this[_0xa54717(0xfa)]])!=null&&_0x5bfe02[_0xa54717(0x84)][_0x4e52a3]?this[_0xa54717(0x110)](_0x4f1c9d,(0x0,_0x4fcea3['buildResizeTableColumnActionsFromWidth'])(_0x4f1c9d,this[_0xa54717(0xfa)],_0x4e52a3,_0x6bfa5a)):!0x1;}['distributeRows'](_0x3056be=0x0,_0x1ce603=this[_0x35ec16(0x134)]()){const _0x161b27=_0x35ec16;let _0x5b9b3c=this[_0x161b27(0xbd)]();return this[_0x161b27(0x110)](_0x5b9b3c,(0x0,_0x4fcea3[_0x161b27(0x154)])(_0x5b9b3c,this['_tableId'],_0x3056be,_0x3056be+_0x1ce603-0x1));}[_0x35ec16(0x11a)](_0x1219b3=0x0,_0x1f3690=this[_0x35ec16(0xb5)]()){const _0x191d5d=_0x35ec16;let _0x56513f=this['_getDocumentData']();return this[_0x191d5d(0x110)](_0x56513f,(0x0,_0x4fcea3[_0x191d5d(0x10b)])(_0x56513f,this[_0x191d5d(0xfa)],_0x1219b3,_0x1219b3+_0x1f3690-0x1));}[_0x35ec16(0x132)](){const _0x4bd054=_0x35ec16;var _0x1de917;return((_0x1de917=this[_0x4bd054(0xae)]())==null?void 0x0:_0x1de917[_0x4bd054(0x150)])??0x0;}[_0x35ec16(0x146)](_0x4a052a){const _0x1fcd85=_0x35ec16;let _0x4e38f4=this['_injector'][_0x1fcd85(0xf8)](_0x4fcea3['DocsTableModel']),_0x323df6=this[_0x1fcd85(0xbd)](),_0x2072b3=(0x0,_0x4fcea3[_0x1fcd85(0x15b)])(_0x323df6,this[_0x1fcd85(0xfa)],_0x4a052a);if(!_0x2072b3)return!0x1;let _0x3210b6=this[_0x1fcd85(0x110)](_0x323df6,_0x2072b3['actions']);return _0x3210b6&&_0x4e38f4['setHeaderRowCount'](this['_unitId'],this[_0x1fcd85(0xfa)],_0x2072b3['headerRowCount']),_0x3210b6;}['pinHeaderRows'](_0x38bf26){return this['setHeaderRowCount'](_0x38bf26);}[_0x35ec16(0xce)](){const _0x3e5f91=_0x35ec16;var _0x3c3940;return((_0x3c3940=this[_0x3e5f91(0xae)]())==null?void 0x0:_0x3c3940[_0x3e5f91(0x119)])??!0x1;}['insertTitleRow'](){const _0x42ebdc=_0x35ec16;let _0x20fd4b=this[_0x42ebdc(0xe5)][_0x42ebdc(0xf8)](_0x4fcea3[_0x42ebdc(0x12e)]),_0x50585e=this[_0x42ebdc(0xbd)](),_0x7c1c97=(0x0,_0x4fcea3[_0x42ebdc(0x91)])(_0x50585e,this[_0x42ebdc(0xfa)],this[_0x42ebdc(0x106)]());if(!_0x7c1c97)return!0x1;let _0x2c0a1a=this[_0x42ebdc(0x110)](_0x50585e,_0x7c1c97['actions']);return _0x2c0a1a&&_0x20fd4b[_0x42ebdc(0x14a)](this[_0x42ebdc(0x11f)],this[_0x42ebdc(0xfa)],!0x0),_0x2c0a1a;}[_0x35ec16(0xe0)](_0x3863bf,_0x465744){const _0x3eab75=_0x35ec16;return this[_0x3eab75(0xe5)][_0x3eab75(0xf8)](_0x4fcea3[_0x3eab75(0x12e)])[_0x3eab75(0xe0)](this['_unitId'],this['_tableId'],_0x3863bf,_0x465744),!0x0;}[_0x35ec16(0x115)](_0x160614,_0x5c9ae9){const _0x4349a1=_0x35ec16;let _0x2b56e2=this[_0x4349a1(0xbd)]();return this[_0x4349a1(0x110)](_0x2b56e2,(0x0,_0x4fcea3['buildSortTableMutationActions'])(_0x2b56e2,this[_0x4349a1(0x14c)](),this[_0x4349a1(0xfa)],_0x160614,_0x5c9ae9,this[_0x4349a1(0x106)]()));}[_0x35ec16(0xbd)](){const _0x45d941=_0x35ec16;let _0x24cc33=this[_0x45d941(0xec)][_0x45d941(0x13c)]()['getSnapshot']();return this['_segmentId']?{...this[_0x45d941(0xec)][_0x45d941(0x13c)](this[_0x45d941(0xb4)])['getSnapshot'](),'documentStyle':_0x24cc33[_0x45d941(0x147)],'tableSource':_0x24cc33[_0x45d941(0xe2)]}:_0x24cc33;}[_0x35ec16(0x14c)](){const _0x1bbe3b=_0x35ec16;return this['_injector']['get'](_0x4fcea3[_0x1bbe3b(0x12e)])['serialize'](this[_0x1bbe3b(0x11f)]);}['_getBodyPath'](){const _0x5d9d26=_0x35ec16;return(0x0,_0x4fcea3[_0x5d9d26(0xb6)])(this[_0x5d9d26(0xec)][_0x5d9d26(0x13c)]()[_0x5d9d26(0x123)](),this['_segmentId']);}[_0x35ec16(0x110)](_0x556736,_0x452f85,_0x42ed9){const _0x4b9556=_0x35ec16;return(0x0,_0x4fcea3[_0x4b9556(0xf0)])(this[_0x4b9556(0xe5)][_0x4b9556(0xf8)](_0x1de5da[_0x4b9556(0x11e)]),this['_unitId'],_0x556736,_0x452f85,_0x42ed9?{'tableId':this[_0x4b9556(0xfa)],'segmentId':this[_0x4b9556(0xb4)],..._0x42ed9}:void 0x0);}},_0x419589=class extends _0x461350[_0x35ec16(0xdf)]{[_0x35ec16(0x139)](_0x49136a=''){const _0x8cab36=_0x35ec16;return this[_0x8cab36(0x109)](_0x49136a)[_0x8cab36(0xd6)](_0x495bba=>this[_0x8cab36(0xf2)](_0x495bba[_0x8cab36(0x81)],_0x49136a));}['getTable'](_0x472cc4,_0x1dac17=''){const _0x2768bc=_0x35ec16;return this[_0x2768bc(0x109)](_0x1dac17)[_0x2768bc(0x116)](_0x5c879a=>_0x5c879a[_0x2768bc(0x81)]===_0x472cc4)?this['_createFDocumentTable'](_0x472cc4,_0x1dac17):null;}['getTableAt'](_0x2d0f8b,_0x24b2dc=''){const _0x271d0d=_0x35ec16;var _0x44a91b;let _0x523fc5=(_0x44a91b=this['_getTables'](_0x24b2dc)[_0x2d0f8b])==null?void 0x0:_0x44a91b[_0x271d0d(0x81)];return _0x523fc5?this[_0x271d0d(0xf2)](_0x523fc5,_0x24b2dc):null;}['getTableAtSelection'](){const _0x464c5c=_0x35ec16;let _0x413d56=this[_0x464c5c(0xe5)][_0x464c5c(0xf8)](_0x4fcea3['DocsTableSelectionService'])[_0x464c5c(0xdb)]();return _0x413d56!=null&&_0x413d56[_0x464c5c(0x81)]?this[_0x464c5c(0xf2)](_0x413d56[_0x464c5c(0x81)],_0x413d56[_0x464c5c(0xd8)]):null;}['findTableByText'](_0x23cae9,_0x238b44=''){const _0x487deb=_0x35ec16;return this[_0x487deb(0x114)](_0x23cae9,_0x238b44)[0x0]??null;}[_0x35ec16(0x114)](_0x485a7b,_0x182c1e=''){const _0x72ad59=_0x35ec16;let _0x42f0c6=this['_getTableDocumentData'](_0x182c1e),_0x2a6cbf=typeof _0x485a7b==_0x72ad59(0xde)?{'text':_0x485a7b}:_0x485a7b;return this['getTables'](_0x182c1e)['filter'](_0x56c8be=>{const _0x21f18a=_0x72ad59;let _0x31572b=_0x56c8be[_0x21f18a(0x13e)]();return!(_0x2a6cbf[_0x21f18a(0x81)]&&_0x31572b!==_0x2a6cbf[_0x21f18a(0x81)]||_0x2a6cbf[_0x21f18a(0x85)]&&!this[_0x21f18a(0xef)](_0x42f0c6,_0x31572b,_0x2a6cbf[_0x21f18a(0x85)])||_0x2a6cbf[_0x21f18a(0x15e)]&&!this['_rowContainsText'](_0x56c8be,0x0,_0x2a6cbf[_0x21f18a(0x15e)])||_0x2a6cbf[_0x21f18a(0xa4)]&&!this[_0x21f18a(0xa9)](_0x56c8be,0x0,_0x2a6cbf[_0x21f18a(0xa4)]));});}[_0x35ec16(0xf5)](_0x21c1be,_0x417321,_0x30b411={}){const _0xf48517=_0x35ec16;let _0x5bbf9e=this[_0xf48517(0xe5)][_0xf48517(0xf8)](_0x1de5da[_0xf48517(0x11e)]),_0x12c6e3=_0x30b411[_0xf48517(0x81)]??(0x0,_0x1de5da[_0xf48517(0x128)])(0x6);return _0x5bbf9e[_0xf48517(0xa5)](_0x4fcea3[_0xf48517(0x130)]['id'],{..._0x30b411,'unitId':this[_0xf48517(0x13e)](),'rows':_0x21c1be,'columns':_0x417321,'tableId':_0x12c6e3})?this[_0xf48517(0xf2)](_0x12c6e3,_0x30b411[_0xf48517(0xd8)]??''):null;}['insertTableFromData'](_0x3ef0e0,_0x4c2d67={}){const _0x481ed4=_0x35ec16;let _0x68cdd7=this[_0x481ed4(0xe5)][_0x481ed4(0xf8)](_0x1de5da[_0x481ed4(0x11e)]),_0x162cf9=_0x4c2d67[_0x481ed4(0x81)]??(0x0,_0x1de5da[_0x481ed4(0x128)])(0x6);return _0x68cdd7[_0x481ed4(0xa5)](_0x4fcea3[_0x481ed4(0x130)]['id'],{..._0x4c2d67,'unitId':this['getId'](),'values':_0x3ef0e0,'tableId':_0x162cf9})?this['_createFDocumentTable'](_0x162cf9,_0x4c2d67['segmentId']??''):null;}[_0x35ec16(0x109)](_0x5b7638=''){let {tables:_0x5d8239=[]}=this['getBody'](_0x5b7638);return _0x5d8239;}[_0x35ec16(0xee)](_0x59f209=''){const _0x2365ed=_0x35ec16;let _0x2721b9=this['getDocumentDataModel']()[_0x2365ed(0x123)]();return _0x59f209?{...this[_0x2365ed(0x13c)](_0x59f209)[_0x2365ed(0x123)](),'documentStyle':_0x2721b9[_0x2365ed(0x147)],'tableSource':_0x2721b9[_0x2365ed(0xe2)]}:_0x2721b9;}[_0x35ec16(0xf2)](_0x250cde,_0xa5f926=''){const _0x39c91f=_0x35ec16;return this['_injector'][_0x39c91f(0x12d)](_0x39f630,this,_0x250cde,_0xa5f926,this[_0x39c91f(0xe5)]);}[_0x35ec16(0xef)](_0x58ae3f,_0x4fbc8b,_0x3c7390){const _0x29995d=_0x35ec16;var _0x263dd4;let _0x518a6e=(0x0,_0x4fcea3[_0x29995d(0xf9)])(_0x58ae3f,_0x4fbc8b);if(!_0x518a6e)return!0x1;let _0x3492f2=(_0x263dd4=_0x58ae3f[_0x29995d(0x105)])==null?void 0x0:_0x263dd4[_0x29995d(0x13f)];return _0x3492f2?_0x3492f2[_0x29995d(0xfc)](_0x518a6e[_0x29995d(0x12f)],_0x518a6e[_0x29995d(0x14e)])[_0x29995d(0xfb)](_0x3c7390):!0x1;}['_rowContainsText'](_0x509558,_0x18e81e,_0x5f5a15){const _0x216771=_0x35ec16;return Array[_0x216771(0x13a)]({'length':_0x509558[_0x216771(0xb5)]()},(_0x28be44,_0x23be4d)=>_0x509558['getCellText'](_0x18e81e,_0x23be4d))[_0x216771(0x116)](_0x32cc5f=>_0x32cc5f[_0x216771(0xfb)](_0x5f5a15));}};_0x461350[_0x35ec16(0xdf)][_0x35ec16(0x113)](_0x419589),_0x485777[_0x35ec16(0xd3)]=_0x39f630,_0x485777['FDocumentTableCell']=_0x37036d;}));function _0x23c7(_0x32c934,_0x2cc98b){_0x32c934=_0x32c934-0x81;const _0x2f9af4=_0x2f9a();let _0x23c7c4=_0x2f9af4[_0x32c934];return _0x23c7c4;}function _0x2f9a(){const _0x446e74=['unmergeCells','@univerjs-pro/docs-table','deleteRow','2400190wueBJy','selectTable','UniverProDocsTableFacade','_getDocumentData','Below','object','UniverDocsFacade','max','DocsTableBorderPreset','getColumnIndex','4188372nbvAcH','getTableMetadata','deleteRows','buildInsertTableRowsMutationActions','prototype','DocsTableColumnType','moveRows','_table','Table','setTableStyle','hasTitleRow','22cVRaEW','selectCell','buildDeleteTableRowsMutationActions','type','FDocumentTable','getTable','Row','map','getCellMargin','segmentId','SOLID','@univerjs/core/facade','getStableTableSelection','632805rKXSSL','setText','string','FDocument','setColumnType','2657StzLLs','tableSource','function','margin','_injector','appendColumn','getContentRange','defineProperty','buildSetTableCellMarginMutationActions','preset','setCellMargin','_document','Right','_getTableDocumentData','_tableContainsText','executeRichTextTableActions','deleteColumns','_createFDocumentTable','setBorder','getCell','insertTable','DocsTableInsertTablePosition','insertColumnsBefore','get','getTableRangeById','_tableId','includes','slice','insertRowsBefore','selectRows','getRowHeight','182iVaGEz','describe','columnTypes','getRowsRange','All','body','_getBodyPath','DocsTableRowInsertPosition','deleteColumn','_getTables','_row','buildDistributeTableColumnsMutationActions','buildSetTableBorderMutationActions','getDefaultCellMarginOverride','moveTableToOffset','tableRows','_mutateActions','buildInsertTableColumnsMutationActions','exports','extend','findTables','sortByColumn','some','backgroundColor','FEnum','titleRow','distributeColumns','2135682laCnsx','getCellText','symbol','ICommandService','_unitId','buildMoveFloatingTableMutationActions','getMargin','insertColumnsAfter','getSnapshot','26imFrVa','unmerge','Range','DocsTableColumnInsertPosition','generateRandomId','getText','getCellRange','_column','getColumnsRange','createInstance','DocsTableModel','startOffset','DocsTableInsertTableCommand','call','getHeaderRowCount','selectRange','getRowCount','TableRowHeightRule','setCellBackground','#1f1f1f','actions','getTables','from','color','getDocumentDataModel','setTableBorder','getId','dataStream','moveColumn','moveRow','cells','DocsTableSortDirection','setCellText','filter','setHeaderRowCount','documentStyle','getSource','UniverCoreFacade','setTitleRow','buildSetTableCellTextMutationActions','_serializeModel','border','endOffset','selectColumn','headerRowCount','amd','getDefaultCellMargin','setTableBackground','buildDistributeTableRowsMutationActions','@univerjs/docs/facade','Tools','setBackgroundColor','DashStyleType','2212xiZQXx','AT_LEAST','buildSetTableHeaderRowCountMutationActions','8edpydB','@univerjs/core','headerText','insertRowsAfter','tableId','constructor','insertColumnBefore','tableColumns','text','width','length','5RgGtcz','1878pwiLxZ','deepClone','deleteTable','insertRowBefore','Module','buildDeleteTableMutationActions','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Left','buildInsertTableTitleRowMutationActions','appendRow','moveColumns','mergeCells','selectColumns','getSegmentId','tableCells','buildMergeCellsMutationActions','getInsertOffset','cellMargin','clearMarginOverride','DocsTableInsertPosition','setRowHeight','DocsTableSelectionKind','insertRowAfter','getTableRange','Cell','rows','1831692lnnzHF','titleText','syncExecuteCommand','Above','setStructuralSelection','buildDeleteTableColumnsMutationActions','_rowContainsText','setDefaultCellMargin','buildMoveTableToOffsetMutationActions','buildSetTableBackgroundMutationActions','getMarginOverride','getMetadata','getCellContentRange','buildUnmergeCellsMutationActions','getCellInsertOffset','DEFAULT_DOCS_TABLE_CELL_MARGIN','getCellMarginOverride','_segmentId','getColumnCount','getTableActionBodyPath'];_0x2f9a=function(){return _0x446e74;};return _0x2f9a();}
1
+ function _0x1d93(_0x87e7e5,_0x2fb583){_0x87e7e5=_0x87e7e5-0x10d;const _0x26e292=_0x26e2();let _0x1d93c6=_0x26e292[_0x87e7e5];return _0x1d93c6;}(function(_0x97fa46,_0x48a3d0){const _0x26a650=_0x1d93,_0x38394f=_0x97fa46();while(!![]){try{const _0x22cb8d=parseInt(_0x26a650(0x18e))/0x1+parseInt(_0x26a650(0x122))/0x2+parseInt(_0x26a650(0x166))/0x3*(-parseInt(_0x26a650(0x147))/0x4)+parseInt(_0x26a650(0x165))/0x5+parseInt(_0x26a650(0x137))/0x6*(parseInt(_0x26a650(0x1de))/0x7)+parseInt(_0x26a650(0x13e))/0x8+-parseInt(_0x26a650(0x12a))/0x9*(parseInt(_0x26a650(0x1e3))/0xa);if(_0x22cb8d===_0x48a3d0)break;else _0x38394f['push'](_0x38394f['shift']());}catch(_0x4e244c){_0x38394f['push'](_0x38394f['shift']());}}}(_0x26e2,0x4299f),function(_0x227478,_0x25c09b){const _0x3814a9=_0x1d93;typeof exports=='object'&&typeof module<'u'?_0x25c09b(exports,require('@univerjs-pro/docs-table'),require('@univerjs/core'),require('@univerjs/core/facade'),require('@univerjs/docs/facade')):typeof define=='function'&&define[_0x3814a9(0x117)]?define(['exports',_0x3814a9(0x120),_0x3814a9(0x1b8),_0x3814a9(0x16a),_0x3814a9(0x12f)],_0x25c09b):(_0x227478=typeof globalThis<'u'?globalThis:_0x227478||self,_0x25c09b(_0x227478[_0x3814a9(0x1d2)]={},_0x227478[_0x3814a9(0x1cb)],_0x227478['UniverCore'],_0x227478[_0x3814a9(0x14e)],_0x227478[_0x3814a9(0x187)]));}(this,function(_0xa5bfab,_0x3e8f93,_0x4305d8,_0x426f00,_0x4c7010){const _0x27bc21=_0x1d93;Object[_0x27bc21(0x138)](_0xa5bfab,Symbol[_0x27bc21(0x18c)],{'value':_0x27bc21(0x150)});var _0x574ccd=class extends _0x426f00[_0x27bc21(0x1ad)]{get[_0x27bc21(0x168)](){return _0x3e8f93['DocsTableInsertTablePosition'];}get['DocsTableColumnType'](){const _0x44cf26=_0x27bc21;return _0x3e8f93[_0x44cf26(0x116)];}get[_0x27bc21(0x132)](){const _0x180ec1=_0x27bc21;return _0x3e8f93[_0x180ec1(0x132)];}get[_0x27bc21(0x140)](){const _0x334cbf=_0x27bc21;return _0x3e8f93[_0x334cbf(0x140)];}get[_0x27bc21(0x16c)](){const _0x147c00=_0x27bc21;return _0x3e8f93[_0x147c00(0x16c)];}get['DocsTableBorderPreset'](){const _0x3d92f6=_0x27bc21;return _0x3e8f93[_0x3d92f6(0x131)];}get[_0x27bc21(0x16f)](){const _0x40085f=_0x27bc21;return _0x3e8f93[_0x40085f(0x16f)];}get[_0x27bc21(0x144)](){const _0x4060c7=_0x27bc21;return _0x4305d8[_0x4060c7(0x144)];}};_0x426f00[_0x27bc21(0x1ad)][_0x27bc21(0x1c5)](_0x574ccd);var _0x15a5b6=class{constructor(_0x50649e,_0x252dfd,_0x3dadb9){const _0x5560da=_0x27bc21;this[_0x5560da(0x1c9)]=_0x50649e,this[_0x5560da(0x1c4)]=_0x252dfd,this[_0x5560da(0x1c3)]=_0x3dadb9;}['getTable'](){return this['_table'];}['getRowIndex'](){return this['_row'];}[_0x27bc21(0x1da)](){return this['_column'];}['getText'](){const _0x3a6edb=_0x27bc21;return this[_0x3a6edb(0x1c9)][_0x3a6edb(0x119)](this[_0x3a6edb(0x1c4)],this[_0x3a6edb(0x1c3)]);}[_0x27bc21(0x1c7)](){const _0xbd6bd4=_0x27bc21;return this[_0xbd6bd4(0x1c9)]['getCellContentRange'](this['_row'],this[_0xbd6bd4(0x1c3)]);}[_0x27bc21(0x163)](){const _0x34da6a=_0x27bc21;return this[_0x34da6a(0x1c9)][_0x34da6a(0x142)](this['_row'],this['_column']);}[_0x27bc21(0x18d)](){const _0x1e455f=_0x27bc21;return this[_0x1e455f(0x1c9)]['getCellMargin'](this[_0x1e455f(0x1c4)],this[_0x1e455f(0x1c3)]);}[_0x27bc21(0x1dc)](){const _0x3d8fa8=_0x27bc21;return this[_0x3d8fa8(0x1c9)][_0x3d8fa8(0x1d8)](this['_row'],this[_0x3d8fa8(0x1c3)]);}['setMargin'](_0xfa7ee4){const _0x2b064a=_0x27bc21;return this[_0x2b064a(0x1c9)]['setCellMargin'](this[_0x2b064a(0x1c9)][_0x2b064a(0x114)](this[_0x2b064a(0x1c4)],this[_0x2b064a(0x1c3)]),_0xfa7ee4);}['clearMarginOverride'](){const _0x12e880=_0x27bc21;return this[_0x12e880(0x1c9)][_0x12e880(0x16d)](this[_0x12e880(0x1c9)][_0x12e880(0x114)](this[_0x12e880(0x1c4)],this[_0x12e880(0x1c3)]),null);}[_0x27bc21(0x13f)](_0x4b50b6){const _0x499452=_0x27bc21;return this[_0x499452(0x1c9)][_0x499452(0x175)](this['_row'],this[_0x499452(0x1c3)],_0x4b50b6);}[_0x27bc21(0x1ab)](_0x2f2928){const _0x4b374f=_0x27bc21;return this[_0x4b374f(0x1c9)][_0x4b374f(0x1a4)](this[_0x4b374f(0x1c9)][_0x4b374f(0x114)](this[_0x4b374f(0x1c4)],this['_column']),_0x2f2928);}[_0x27bc21(0x174)](_0x61b52){const _0x3f4d24=_0x27bc21;return this[_0x3f4d24(0x1c9)][_0x3f4d24(0x174)](this[_0x3f4d24(0x1c9)][_0x3f4d24(0x114)](this[_0x3f4d24(0x1c4)],this[_0x3f4d24(0x1c3)]),_0x61b52);}[_0x27bc21(0x11d)](_0x5699b2,_0x484078){const _0x5ced6b=_0x27bc21;return this[_0x5ced6b(0x1c9)]['mergeCells']({'startRow':this[_0x5ced6b(0x1c4)],'startColumn':this[_0x5ced6b(0x1c3)],'endRow':this[_0x5ced6b(0x1c4)]+_0x5699b2-0x1,'endColumn':this[_0x5ced6b(0x1c3)]+_0x484078-0x1});}[_0x27bc21(0x151)](){const _0x23ad3d=_0x27bc21;return this[_0x23ad3d(0x1c9)][_0x23ad3d(0x149)](this[_0x23ad3d(0x1c9)][_0x23ad3d(0x114)](this['_row'],this[_0x23ad3d(0x1c3)]));}};function _0x28d9e1(_0x4027b7){'@babel/helpers - typeof';const _0x5e4570=_0x27bc21;return _0x28d9e1=typeof Symbol==_0x5e4570(0x198)&&typeof Symbol['iterator']==_0x5e4570(0x11a)?function(_0x5b1ef8){return typeof _0x5b1ef8;}:function(_0xf20992){const _0x14bb1c=_0x5e4570;return _0xf20992&&typeof Symbol==_0x14bb1c(0x198)&&_0xf20992[_0x14bb1c(0x1ea)]===Symbol&&_0xf20992!==Symbol['prototype']?_0x14bb1c(0x11a):typeof _0xf20992;},_0x28d9e1(_0x4027b7);}function _0x5bbb19(_0x35d025,_0x50a638){const _0x3fff67=_0x27bc21;if(_0x28d9e1(_0x35d025)!=_0x3fff67(0x190)||!_0x35d025)return _0x35d025;var _0x3a8928=_0x35d025[Symbol[_0x3fff67(0x1b4)]];if(_0x3a8928!==void 0x0){var _0x2c45f8=_0x3a8928[_0x3fff67(0x1b0)](_0x35d025,_0x50a638||_0x3fff67(0x199));if(_0x28d9e1(_0x2c45f8)!=_0x3fff67(0x190))return _0x2c45f8;throw TypeError(_0x3fff67(0x177));}return(_0x50a638===_0x3fff67(0x1cc)?String:Number)(_0x35d025);}function _0x2ef529(_0x146976){const _0xc8519=_0x27bc21;var _0x4a256a=_0x5bbb19(_0x146976,_0xc8519(0x1cc));return _0x28d9e1(_0x4a256a)==_0xc8519(0x11a)?_0x4a256a:_0x4a256a+'';}function _0xaae77a(_0x13ea7c,_0x35162e,_0x1c9883){return(_0x35162e=_0x2ef529(_0x35162e))in _0x13ea7c?Object['defineProperty'](_0x13ea7c,_0x35162e,{'value':_0x1c9883,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x13ea7c[_0x35162e]=_0x1c9883,_0x13ea7c;}function _0x21410a(_0x268ab5,_0x4f4c56){return function(_0x4a38af,_0x490386){_0x4f4c56(_0x4a38af,_0x490386,_0x268ab5);};}function _0x387bc2(_0x3e83b6,_0x4c74fc,_0x2b4871,_0x33b239){const _0x31d485=_0x27bc21;var _0x3854c9=arguments[_0x31d485(0x124)],_0x481241=_0x3854c9<0x3?_0x4c74fc:_0x33b239===null?_0x33b239=Object[_0x31d485(0x118)](_0x4c74fc,_0x2b4871):_0x33b239,_0x20fcd9;if(typeof Reflect==_0x31d485(0x190)&&typeof Reflect['decorate']==_0x31d485(0x198))_0x481241=Reflect[_0x31d485(0x1bf)](_0x3e83b6,_0x4c74fc,_0x2b4871,_0x33b239);else{for(var _0x1ba761=_0x3e83b6['length']-0x1;_0x1ba761>=0x0;_0x1ba761--)(_0x20fcd9=_0x3e83b6[_0x1ba761])&&(_0x481241=(_0x3854c9<0x3?_0x20fcd9(_0x481241):_0x3854c9>0x3?_0x20fcd9(_0x4c74fc,_0x2b4871,_0x481241):_0x20fcd9(_0x4c74fc,_0x2b4871))||_0x481241);}return _0x3854c9>0x3&&_0x481241&&Object['defineProperty'](_0x4c74fc,_0x2b4871,_0x481241),_0x481241;}let _0x1aa285=class{constructor(_0x2abb0f,_0x25480e,_0x5ce372,_0xc307a9,_0x5ccd51){const _0xd97dcc=_0x27bc21;this[_0xd97dcc(0x1ae)]=_0x2abb0f,this[_0xd97dcc(0x162)]=_0x25480e,this[_0xd97dcc(0x1dd)]=_0x5ce372,this['_commandService']=_0xc307a9,this['_injector']=_0x5ccd51,_0xaae77a(this,'_unitId',void 0x0),this['_unitId']=this[_0xd97dcc(0x1ae)][_0xd97dcc(0x1b7)]();}[_0x27bc21(0x1b7)](){return this['_tableId'];}[_0x27bc21(0x192)](){const _0x321285=_0x27bc21;return this[_0x321285(0x1dd)];}[_0x27bc21(0x1ce)](){const _0x58ee49=_0x27bc21;return{'id':this[_0x58ee49(0x162)],'rowCount':this[_0x58ee49(0x1e8)](),'columnCount':this[_0x58ee49(0x1b1)](),'metadata':this[_0x58ee49(0x15c)](),'source':this[_0x58ee49(0x18f)]()};}['describe'](){const _0x42f37f=_0x27bc21;let _0x3a04de=this[_0x42f37f(0x15c)](),_0x12aad7=this[_0x42f37f(0x18f)](),_0x3e71f9=this[_0x42f37f(0x1b1)]();return{'id':this[_0x42f37f(0x162)],'rowCount':this[_0x42f37f(0x1e8)](),'columnCount':_0x3e71f9,'headerRowCount':(_0x3a04de==null?void 0x0:_0x3a04de['headerRowCount'])??0x0,'titleRow':(_0x3a04de==null?void 0x0:_0x3a04de['titleRow'])??!0x1,'columns':Array[_0x42f37f(0x121)]({'length':_0x3e71f9},(_0x1e6426,_0x4184e3)=>{const _0x51b9bc=_0x42f37f;var _0xa06355,_0x474fb9;return{'index':_0x4184e3,'type':_0x3a04de==null||(_0xa06355=_0x3a04de[_0x51b9bc(0x1a1)])==null||(_0xa06355=_0xa06355[_0x4184e3])==null?void 0x0:_0xa06355[_0x51b9bc(0x173)],'width':_0x12aad7==null||(_0x474fb9=_0x12aad7['tableColumns'][_0x4184e3])==null?void 0x0:_0x474fb9['size'][_0x51b9bc(0x184)]['v']};}),'sampleRows':Array[_0x42f37f(0x121)]({'length':this['getRowCount']()},(_0x3ba781,_0x111648)=>Array[_0x42f37f(0x121)]({'length':_0x3e71f9},(_0x2b6347,_0x13af3f)=>this[_0x42f37f(0x119)](_0x111648,_0x13af3f)))[_0x42f37f(0x1c1)](_0xe37441=>_0xe37441['some'](_0x2dbef3=>_0x2dbef3[_0x42f37f(0x124)]>0x0))[_0x42f37f(0x112)](0x0,0x5)};}['getRowCount'](){const _0x5a708e=_0x27bc21;var _0x38102e;return((_0x38102e=this['getSource']())==null?void 0x0:_0x38102e[_0x5a708e(0x15e)][_0x5a708e(0x124)])??0x0;}[_0x27bc21(0x1b1)](){const _0x4a3695=_0x27bc21;var _0x2d6d45;return((_0x2d6d45=this[_0x4a3695(0x18f)]())==null?void 0x0:_0x2d6d45['tableColumns']['length'])??0x0;}[_0x27bc21(0x19b)](_0x302564,_0xf37fa9){const _0x4ebc5f=_0x27bc21;var _0x3b0630;return(_0x3b0630=this[_0x4ebc5f(0x18f)]())!=null&&(_0x3b0630=_0x3b0630[_0x4ebc5f(0x15e)][_0x302564])!=null&&_0x3b0630[_0x4ebc5f(0x1a9)][_0xf37fa9]?this[_0x4ebc5f(0x167)][_0x4ebc5f(0x14a)](_0x15a5b6,this,_0x302564,_0xf37fa9):null;}[_0x27bc21(0x119)](_0x5a876c,_0x3bc3d5){const _0x5ca8df=_0x27bc21;var _0x313d40,_0x3d42ec;let _0x4d033c=(_0x313d40=(0x0,_0x3e8f93[_0x5ca8df(0x156)])(this[_0x5ca8df(0x179)](),this['_tableId']))==null||(_0x313d40=_0x313d40['rows'][_0x5a876c])==null?void 0x0:_0x313d40[_0x5ca8df(0x15a)][_0x3bc3d5];return _0x4d033c?((_0x3d42ec=this[_0x5ca8df(0x179)]()[_0x5ca8df(0x15d)])==null?void 0x0:_0x3d42ec['dataStream'][_0x5ca8df(0x112)](_0x4d033c[_0x5ca8df(0x17c)]+0x1,_0x4d033c[_0x5ca8df(0x110)])[_0x5ca8df(0x13b)](/\r\n$/,''))??'':'';}[_0x27bc21(0x115)](_0x24263e,_0x566a3a){const _0x2aa79f=_0x27bc21;var _0x560754;let _0x153bb7=this[_0x2aa79f(0x18f)](),_0x2df28b=_0x153bb7==null||(_0x560754=_0x153bb7[_0x2aa79f(0x15e)][_0x24263e])==null?void 0x0:_0x560754[_0x2aa79f(0x1a9)][_0x566a3a];return _0x2df28b?_0x4305d8['Tools']['deepClone'](_0x2df28b[_0x2aa79f(0x139)]??_0x153bb7[_0x2aa79f(0x130)]??_0x3e8f93[_0x2aa79f(0x181)]):null;}['getCellMarginOverride'](_0x1f8f49,_0xe5130a){const _0x20dc54=_0x27bc21;var _0x57fe40;let _0x1f4a89=(_0x57fe40=this[_0x20dc54(0x18f)]())==null||(_0x57fe40=_0x57fe40[_0x20dc54(0x15e)][_0x1f8f49])==null?void 0x0:_0x57fe40[_0x20dc54(0x1a9)][_0xe5130a];return _0x1f4a89!=null&&_0x1f4a89[_0x20dc54(0x139)]?_0x4305d8[_0x20dc54(0x14b)][_0x20dc54(0x135)](_0x1f4a89[_0x20dc54(0x139)]):null;}[_0x27bc21(0x12b)](){const _0x1ea71a=_0x27bc21;var _0x49c0de;return _0x4305d8[_0x1ea71a(0x14b)][_0x1ea71a(0x135)](((_0x49c0de=this[_0x1ea71a(0x18f)]())==null?void 0x0:_0x49c0de['cellMargin'])??_0x3e8f93[_0x1ea71a(0x181)]);}[_0x27bc21(0x17b)](){const _0x15d005=_0x27bc21;var _0x3efd08;let _0x562246=(_0x3efd08=this['getSource']())==null?void 0x0:_0x3efd08[_0x15d005(0x130)];return _0x562246?_0x4305d8[_0x15d005(0x14b)][_0x15d005(0x135)](_0x562246):null;}[_0x27bc21(0x15c)](){const _0x54ad1d=_0x27bc21;return this[_0x54ad1d(0x167)][_0x54ad1d(0x1e4)](_0x3e8f93[_0x54ad1d(0x19e)])[_0x54ad1d(0x1e7)](this[_0x54ad1d(0x145)],this[_0x54ad1d(0x162)]);}[_0x27bc21(0x18f)](){const _0x177f13=_0x27bc21;var _0x586122;return(_0x586122=this['_getDocumentData']()[_0x177f13(0x1ac)])==null?void 0x0:_0x586122[this[_0x177f13(0x162)]];}['getRange'](){const _0x4da684=_0x27bc21;return(0x0,_0x3e8f93[_0x4da684(0x156)])(this[_0x4da684(0x179)](),this[_0x4da684(0x162)]);}['getTableRange'](){const _0xf02cc0=_0x27bc21;return{'startRow':0x0,'endRow':Math[_0xf02cc0(0x194)](0x0,this[_0xf02cc0(0x1e8)]()-0x1),'startColumn':0x0,'endColumn':Math[_0xf02cc0(0x194)](0x0,this[_0xf02cc0(0x1b1)]()-0x1)};}[_0x27bc21(0x114)](_0x31eedd,_0x25045e){return{'startRow':_0x31eedd,'endRow':_0x31eedd,'startColumn':_0x25045e,'endColumn':_0x25045e};}[_0x27bc21(0x1e9)](_0x1690e3,_0x2990e1){const _0x25d567=_0x27bc21;var _0x357805;let _0x17c814=(_0x357805=(0x0,_0x3e8f93[_0x25d567(0x156)])(this['_getDocumentData'](),this[_0x25d567(0x162)]))==null||(_0x357805=_0x357805[_0x25d567(0x152)][_0x1690e3])==null?void 0x0:_0x357805['cells'][_0x2990e1];if(!_0x17c814)return null;let _0x40fa75=_0x17c814[_0x25d567(0x17c)]+0x1;return{'startOffset':_0x40fa75,'endOffset':Math[_0x25d567(0x194)](_0x40fa75,_0x17c814[_0x25d567(0x110)]-0x1),'segmentId':this['_segmentId']};}[_0x27bc21(0x142)](_0x1a3998,_0x5afd4c){const _0x231682=_0x27bc21;let _0x35e35d=this[_0x231682(0x1e9)](_0x1a3998,_0x5afd4c);return _0x35e35d?Math[_0x231682(0x194)](_0x35e35d[_0x231682(0x17c)],_0x35e35d[_0x231682(0x110)]-0x1):null;}[_0x27bc21(0x1b9)](_0x534393){const _0x414c79=_0x27bc21;return this[_0x414c79(0x11c)](_0x534393,0x1);}[_0x27bc21(0x11c)](_0x438756,_0x8d036b=0x1){const _0x37d41b=_0x27bc21;return{'startRow':_0x438756,'endRow':_0x438756+_0x8d036b-0x1,'startColumn':0x0,'endColumn':Math[_0x37d41b(0x194)](0x0,this[_0x37d41b(0x1b1)]()-0x1)};}[_0x27bc21(0x1c2)](_0x57d458){const _0x4c28fc=_0x27bc21;return this[_0x4c28fc(0x143)](_0x57d458,0x1);}[_0x27bc21(0x143)](_0x186bb4,_0x2cdd81=0x1){const _0x3972f7=_0x27bc21;return{'startRow':0x0,'endRow':Math[_0x3972f7(0x194)](0x0,this['getRowCount']()-0x1),'startColumn':_0x186bb4,'endColumn':_0x186bb4+_0x2cdd81-0x1};}[_0x27bc21(0x1e1)](){const _0x1f6dbf=_0x27bc21;return this[_0x1f6dbf(0x1cf)](this['getTableRange'](),_0x3e8f93[_0x1f6dbf(0x132)][_0x1f6dbf(0x129)]);}[_0x27bc21(0x1ba)](_0xce6eaf){const _0x4c0492=_0x27bc21;return this[_0x4c0492(0x19f)](_0xce6eaf,0x1);}[_0x27bc21(0x19f)](_0x193214,_0x11d67a=0x1){const _0x4340c1=_0x27bc21;return this[_0x4340c1(0x1cf)](this['getRowsRange'](_0x193214,_0x11d67a),_0x3e8f93[_0x4340c1(0x132)]['Row']);}[_0x27bc21(0x1a2)](_0x2d50a2){return this['selectColumns'](_0x2d50a2,0x1);}[_0x27bc21(0x146)](_0x633713,_0x21d340=0x1){const _0x196c06=_0x27bc21;return this[_0x196c06(0x1cf)](this[_0x196c06(0x143)](_0x633713,_0x21d340),_0x3e8f93['DocsTableSelectionKind'][_0x196c06(0x185)]);}[_0x27bc21(0x1bd)](_0x22ddba,_0x1fd6a5){const _0x1d3f9c=_0x27bc21;return this['selectRange'](this['getCellRange'](_0x22ddba,_0x1fd6a5),_0x3e8f93[_0x1d3f9c(0x132)][_0x1d3f9c(0x1b6)]);}['selectRange'](_0x4475fd,_0xf90faa=_0x3e8f93[_0x27bc21(0x132)][_0x27bc21(0x158)]){const _0x5d324a=_0x27bc21;return this[_0x5d324a(0x167)]['get'](_0x3e8f93[_0x5d324a(0x1b3)])[_0x5d324a(0x1e5)]({..._0x4475fd,'kind':_0xf90faa,'segmentId':this[_0x5d324a(0x1dd)],'tableId':this[_0x5d324a(0x162)]}),!0x0;}['insertRowBefore'](_0xd5e484){const _0x19fead=_0x27bc21;return this[_0x19fead(0x1d0)](_0xd5e484,0x1);}[_0x27bc21(0x1b5)](_0xeff57){const _0x2bb535=_0x27bc21;return this[_0x2bb535(0x191)](_0xeff57,0x1);}['insertRowsBefore'](_0x312961,_0x1fd5e8){const _0x578b38=_0x27bc21;let _0x116cae=this[_0x578b38(0x179)](),_0x487084=(0x0,_0x3e8f93[_0x578b38(0x1be)])(_0x116cae,this['_tableId'],_0x312961,_0x1fd5e8,_0x3e8f93[_0x578b38(0x1d7)][_0x578b38(0x1af)],this[_0x578b38(0x1bb)]());return _0x487084?this[_0x578b38(0x197)](_0x116cae,_0x487084[_0x578b38(0x1cd)]):!0x1;}[_0x27bc21(0x191)](_0x32920e,_0x186e34){const _0x231c55=_0x27bc21;let _0xd8501d=this[_0x231c55(0x179)](),_0x240f59=(0x0,_0x3e8f93['buildInsertTableRowsMutationActions'])(_0xd8501d,this['_tableId'],_0x32920e,_0x186e34,_0x3e8f93[_0x231c55(0x1d7)][_0x231c55(0x1bc)],this[_0x231c55(0x1bb)]());return _0x240f59?this[_0x231c55(0x197)](_0xd8501d,_0x240f59[_0x231c55(0x1cd)]):!0x1;}['appendRow'](){const _0x4e86dc=_0x27bc21;return this['insertRowsAfter'](Math[_0x4e86dc(0x194)](0x0,this[_0x4e86dc(0x1e8)]()-0x1),0x1);}['insertColumnBefore'](_0x5a5b67){const _0x141437=_0x27bc21;return this[_0x141437(0x1d4)](_0x5a5b67,0x1);}['insertColumnAfter'](_0x221640){return this['insertColumnsAfter'](_0x221640,0x1);}[_0x27bc21(0x1d4)](_0x1bf962,_0x100be0){const _0x1476ef=_0x27bc21;let _0x1bc479=this['_getDocumentData'](),_0x48c027=(0x0,_0x3e8f93[_0x1476ef(0x155)])(_0x1bc479,this['_tableId'],_0x1bf962,_0x100be0,_0x3e8f93[_0x1476ef(0x1d7)][_0x1476ef(0x154)],{'bodyPath':this[_0x1476ef(0x1bb)]()});return _0x48c027?this[_0x1476ef(0x197)](_0x1bc479,_0x48c027[_0x1476ef(0x1cd)]):!0x1;}[_0x27bc21(0x15f)](_0x29bbb6,_0x1d0041){const _0x38d4c4=_0x27bc21;let _0x41cf7d=this[_0x38d4c4(0x179)](),_0x1a3507=(0x0,_0x3e8f93[_0x38d4c4(0x155)])(_0x41cf7d,this[_0x38d4c4(0x162)],_0x29bbb6,_0x1d0041,_0x3e8f93[_0x38d4c4(0x1d7)]['Right'],{'bodyPath':this[_0x38d4c4(0x1bb)]()});return _0x1a3507?this['_mutateActions'](_0x41cf7d,_0x1a3507[_0x38d4c4(0x1cd)]):!0x1;}[_0x27bc21(0x170)](){return this['insertColumnsAfter'](Math['max'](0x0,this['getColumnCount']()-0x1),0x1);}[_0x27bc21(0x1d3)](_0x449968){const _0x53a180=_0x27bc21;return this[_0x53a180(0x134)](_0x449968,0x1);}[_0x27bc21(0x134)](_0x3397b0,_0x456646=0x1){const _0x5302d5=_0x27bc21;return!!this[_0x5302d5(0x14f)][_0x5302d5(0x125)](_0x3e8f93[_0x5302d5(0x157)]['id'],{'endRow':_0x3397b0+_0x456646-0x1,'segmentId':this[_0x5302d5(0x1dd)],'startRow':_0x3397b0,'tableId':this['_tableId'],'unitId':this[_0x5302d5(0x145)]});}[_0x27bc21(0x123)](_0x5399c6){const _0x4e03d3=_0x27bc21;return this[_0x4e03d3(0x18a)](_0x5399c6,0x1);}[_0x27bc21(0x18a)](_0x35805e,_0x29f861=0x1){const _0x37afa7=_0x27bc21;return!!this[_0x37afa7(0x14f)][_0x37afa7(0x125)](_0x3e8f93[_0x37afa7(0x11b)]['id'],{'endColumn':_0x35805e+_0x29f861-0x1,'segmentId':this[_0x37afa7(0x1dd)],'startColumn':_0x35805e,'tableId':this['_tableId'],'unitId':this[_0x37afa7(0x145)]});}[_0x27bc21(0x1e6)](){const _0x2b22e4=_0x27bc21;return!!this['_commandService'][_0x2b22e4(0x125)](_0x3e8f93[_0x2b22e4(0x176)]['id'],{'segmentId':this[_0x2b22e4(0x1dd)],'tableId':this[_0x2b22e4(0x162)],'unitId':this[_0x2b22e4(0x145)]});}['moveTableBy'](_0x27cb81,_0x372ded){const _0x261ec8=_0x27bc21;let _0x457d37=this[_0x261ec8(0x179)]();return this[_0x261ec8(0x197)](_0x457d37,(0x0,_0x3e8f93[_0x261ec8(0x16e)])(_0x457d37,this[_0x261ec8(0x162)],_0x27cb81,_0x372ded));}['moveTableToOffset'](_0x5e4b20){const _0x3ffaf4=_0x27bc21;let _0x2f3d16=this[_0x3ffaf4(0x179)]();return this[_0x3ffaf4(0x197)](_0x2f3d16,(0x0,_0x3e8f93['buildMoveTableToOffsetMutationActions'])(_0x2f3d16,this[_0x3ffaf4(0x162)],_0x5e4b20,this[_0x3ffaf4(0x1bb)]()));}['moveRow'](_0x29693a,_0x5863a2,_0x125cc6=_0x3e8f93['DocsTableInsertPosition'][_0x27bc21(0x1af)]){const _0x4c1d71=_0x27bc21;return this[_0x4c1d71(0x1b2)](_0x29693a,0x1,_0x5863a2,_0x125cc6);}['moveRows'](_0x2178c6,_0x158af6,_0x15bc8a,_0x6414fb=_0x3e8f93[_0x27bc21(0x1d7)][_0x27bc21(0x1af)]){const _0x4006fd=_0x27bc21;let _0x48f9da=this[_0x4006fd(0x179)](),_0x53536b=(0x0,_0x3e8f93[_0x4006fd(0x17f)])(_0x48f9da,this[_0x4006fd(0x162)],_0x2178c6,_0x15bc8a,_0x158af6,_0x6414fb,this['_getBodyPath']());return _0x53536b?this['_mutateActions'](_0x48f9da,_0x53536b[_0x4006fd(0x1cd)]):!0x1;}[_0x27bc21(0x13a)](_0x2d0912,_0x512619,_0x91f428=_0x3e8f93['DocsTableInsertPosition']['Left']){return this['moveColumns'](_0x2d0912,0x1,_0x512619,_0x91f428);}[_0x27bc21(0x16b)](_0x4846a2,_0x436ae3,_0x12cdb7,_0x540a99=_0x3e8f93[_0x27bc21(0x1d7)][_0x27bc21(0x154)]){const _0x1e9a9e=_0x27bc21;let _0x3b0e7f=this['_getDocumentData'](),_0x5c3b5c=(0x0,_0x3e8f93[_0x1e9a9e(0x10e)])(_0x3b0e7f,this[_0x1e9a9e(0x162)],_0x4846a2,_0x12cdb7,_0x436ae3,_0x540a99,this[_0x1e9a9e(0x1bb)]());return _0x5c3b5c?this[_0x1e9a9e(0x197)](_0x3b0e7f,_0x5c3b5c[_0x1e9a9e(0x1cd)]):!0x1;}[_0x27bc21(0x148)](_0xca79e2){const _0xb17a96=_0x27bc21;try{let _0x92416b=this[_0xb17a96(0x179)](),_0x312c14=(0x0,_0x3e8f93[_0xb17a96(0x141)])({'documentData':_0x92416b,'tableId':this[_0xb17a96(0x162)],..._0xca79e2});return _0x312c14?this[_0xb17a96(0x197)](_0x92416b,_0x312c14[_0xb17a96(0x1cd)],_0xca79e2):!0x1;}catch{return!0x1;}}[_0x27bc21(0x149)](_0x41c223){const _0x238b8f=_0x27bc21;try{let _0x42bde2=this[_0x238b8f(0x179)](),_0x14800f=(0x0,_0x3e8f93[_0x238b8f(0x1a6)])({'documentData':_0x42bde2,'tableId':this[_0x238b8f(0x162)],..._0x41c223});return _0x14800f?this['_mutateActions'](_0x42bde2,_0x14800f[_0x238b8f(0x1cd)],_0x41c223):!0x1;}catch{return!0x1;}}[_0x27bc21(0x175)](_0x5ab306,_0x5126a2,_0x413e01){const _0x543d20=_0x27bc21;let _0x3023f4=this[_0x543d20(0x179)](),_0x8b7dd8=(0x0,_0x3e8f93[_0x543d20(0x1d9)])(this[_0x543d20(0x1ae)]['getDocumentDataModel']()['getSnapshot'](),this[_0x543d20(0x1dd)]);return this['_mutateActions'](_0x3023f4,(0x0,_0x3e8f93[_0x543d20(0x1d5)])({'documentData':_0x3023f4,'tableId':this[_0x543d20(0x162)],'row':_0x5ab306,'column':_0x5126a2,'text':_0x413e01},_0x8b7dd8),this[_0x543d20(0x114)](_0x5ab306,_0x5126a2));}[_0x27bc21(0x1a4)](_0x165714,_0x65afa5){const _0x2c5ba9=_0x27bc21;let _0x3150c8=this[_0x2c5ba9(0x179)]();return this['_mutateActions'](_0x3150c8,(0x0,_0x3e8f93['buildSetTableBackgroundMutationActions'])(_0x3150c8,{'tableId':this[_0x2c5ba9(0x162)],..._0x165714,'value':_0x65afa5}),_0x165714);}[_0x27bc21(0x16d)](_0x4029ff,_0xf53cb5){const _0xba1a66=_0x27bc21;let _0xcb619b=this[_0xba1a66(0x179)]();return this['_mutateActions'](_0xcb619b,(0x0,_0x3e8f93[_0xba1a66(0x111)])({'documentData':_0xcb619b,'tableId':this[_0xba1a66(0x162)],..._0x4029ff,'margin':_0xf53cb5}),_0x4029ff);}[_0x27bc21(0x161)](_0x1853f7){const _0xe966fd=_0x27bc21;let _0x2d1a36=this[_0xe966fd(0x179)]();return this['_mutateActions'](_0x2d1a36,(0x0,_0x3e8f93['buildSetTableDefaultCellMarginMutationActions'])(_0x2d1a36,this[_0xe966fd(0x162)],_0x1853f7));}[_0x27bc21(0x174)](_0x2ee668,_0x19dbc4){const _0x48d2fe=_0x27bc21;let _0x192c78=this[_0x48d2fe(0x179)]();return this['_mutateActions'](_0x192c78,(0x0,_0x3e8f93[_0x48d2fe(0x1a8)])({'documentData':_0x192c78,'tableId':this['_tableId'],..._0x2ee668,'preset':_0x19dbc4[_0x48d2fe(0x171)]??_0x3e8f93[_0x48d2fe(0x131)]['All'],'border':_0x19dbc4[_0x48d2fe(0x17d)]??{'color':{'rgb':_0x19dbc4[_0x48d2fe(0x1c0)]??_0x48d2fe(0x160)},'width':{'v':_0x19dbc4[_0x48d2fe(0x184)]??0x1},'dashStyle':_0x4305d8[_0x48d2fe(0x144)][_0x48d2fe(0x113)]}}),_0x2ee668);}[_0x27bc21(0x186)](_0x1efbb0){return this['setCellBackground'](this['getTableRange'](),_0x1efbb0);}[_0x27bc21(0x11e)](_0x7deb0f){const _0x1edc79=_0x27bc21;return this[_0x1edc79(0x174)](this[_0x1edc79(0x183)](),_0x7deb0f);}[_0x27bc21(0x1e2)](_0x8f6f79){const _0x121009=_0x27bc21;let _0xb82f2=!_0x8f6f79[_0x121009(0x15b)]||this['setTableBackground'](_0x8f6f79[_0x121009(0x15b)]),_0x375fc=!_0x8f6f79['border']||this[_0x121009(0x11e)](_0x8f6f79[_0x121009(0x17d)]);return _0xb82f2&&_0x375fc;}[_0x27bc21(0x13d)](_0x566918,_0x111520,_0x39c0e3=_0x4305d8[_0x27bc21(0x195)]['AT_LEAST']){const _0x3cda56=_0x27bc21;var _0x2b4c23;let _0x4bf67f=this[_0x3cda56(0x179)]();return(_0x2b4c23=_0x4bf67f[_0x3cda56(0x1ac)])!=null&&(_0x2b4c23=_0x2b4c23[this[_0x3cda56(0x162)]])!=null&&_0x2b4c23[_0x3cda56(0x15e)][_0x566918]?this[_0x3cda56(0x197)](_0x4bf67f,(0x0,_0x3e8f93[_0x3cda56(0x1aa)])(_0x4bf67f,this['_tableId'],_0x566918,_0x111520,_0x39c0e3)):!0x1;}[_0x27bc21(0x10d)](_0x15f751){const _0x4d9306=_0x27bc21;var _0x601e2c;let _0x51a8e4=(_0x601e2c=this['getSource']())==null||(_0x601e2c=_0x601e2c[_0x4d9306(0x15e)][_0x15f751])==null?void 0x0:_0x601e2c[_0x4d9306(0x18b)];return _0x51a8e4?_0x4305d8['Tools']['deepClone'](_0x51a8e4):null;}[_0x27bc21(0x180)](_0x19f2a5,_0x273bbb){const _0x2d337f=_0x27bc21;var _0x4ef641;let _0x1a7234=this[_0x2d337f(0x179)]();return(_0x4ef641=_0x1a7234['tableSource'])!=null&&(_0x4ef641=_0x4ef641[this[_0x2d337f(0x162)]])!=null&&_0x4ef641['tableColumns'][_0x19f2a5]?this[_0x2d337f(0x197)](_0x1a7234,(0x0,_0x3e8f93[_0x2d337f(0x19a)])(_0x1a7234,this[_0x2d337f(0x162)],_0x19f2a5,_0x273bbb)):!0x1;}[_0x27bc21(0x126)](_0x217f76=0x0,_0x2ffbe2=this[_0x27bc21(0x1e8)]()){const _0x1d05e8=_0x27bc21;let _0x1321ee=this[_0x1d05e8(0x179)]();return this[_0x1d05e8(0x197)](_0x1321ee,(0x0,_0x3e8f93[_0x1d05e8(0x164)])(_0x1321ee,this['_tableId'],_0x217f76,_0x217f76+_0x2ffbe2-0x1));}['distributeColumns'](_0xb50ab3=0x0,_0xb32f65=this[_0x27bc21(0x1b1)]()){const _0x1e6461=_0x27bc21;let _0x5ec7be=this[_0x1e6461(0x179)]();return this[_0x1e6461(0x197)](_0x5ec7be,(0x0,_0x3e8f93[_0x1e6461(0x1a3)])(_0x5ec7be,this[_0x1e6461(0x162)],_0xb50ab3,_0xb50ab3+_0xb32f65-0x1));}[_0x27bc21(0x1d1)](){const _0x5e99e2=_0x27bc21;var _0x5d1399;return((_0x5d1399=this[_0x5e99e2(0x15c)]())==null?void 0x0:_0x5d1399['headerRowCount'])??0x0;}[_0x27bc21(0x133)](_0xde4fa4){const _0x35117c=_0x27bc21;let _0x44e27f=this[_0x35117c(0x167)]['get'](_0x3e8f93[_0x35117c(0x19e)]),_0x35a0bb=this[_0x35117c(0x179)](),_0x45868b=(0x0,_0x3e8f93['buildSetTableHeaderRowCountMutationActions'])(_0x35a0bb,this[_0x35117c(0x162)],_0xde4fa4);if(!_0x45868b)return!0x1;let _0x432e1c=this['_mutateActions'](_0x35a0bb,_0x45868b[_0x35117c(0x1cd)]);return _0x432e1c&&_0x44e27f[_0x35117c(0x133)](this[_0x35117c(0x145)],this[_0x35117c(0x162)],_0x45868b['headerRowCount']),_0x432e1c;}[_0x27bc21(0x159)](_0x184727){const _0x2d8b04=_0x27bc21;return this[_0x2d8b04(0x133)](_0x184727);}[_0x27bc21(0x1db)](){const _0x4703ae=_0x27bc21;var _0x1424ed;return((_0x1424ed=this[_0x4703ae(0x15c)]())==null?void 0x0:_0x1424ed['titleRow'])??!0x1;}['insertTitleRow'](){const _0x1ceb05=_0x27bc21;let _0x2956db=this[_0x1ceb05(0x167)][_0x1ceb05(0x1e4)](_0x3e8f93[_0x1ceb05(0x19e)]),_0x4381bf=this[_0x1ceb05(0x179)](),_0x53f6ac=(0x0,_0x3e8f93[_0x1ceb05(0x1a7)])(_0x4381bf,this[_0x1ceb05(0x162)],this[_0x1ceb05(0x1bb)]());if(!_0x53f6ac)return!0x1;let _0x57615a=this[_0x1ceb05(0x197)](_0x4381bf,_0x53f6ac[_0x1ceb05(0x1cd)]);return _0x57615a&&_0x2956db['setTitleRow'](this[_0x1ceb05(0x145)],this[_0x1ceb05(0x162)],!0x0),_0x57615a;}[_0x27bc21(0x1ca)](_0x1f22a3,_0x138c56){const _0x5acd98=_0x27bc21;return this['_injector'][_0x5acd98(0x1e4)](_0x3e8f93['DocsTableModel'])[_0x5acd98(0x1ca)](this[_0x5acd98(0x145)],this['_tableId'],_0x1f22a3,_0x138c56),!0x0;}['sortByColumn'](_0x19bd14,_0x4ace8c){const _0x44e499=_0x27bc21;let _0x34078c=this['_getDocumentData']();return this['_mutateActions'](_0x34078c,(0x0,_0x3e8f93[_0x44e499(0x10f)])(_0x34078c,this[_0x44e499(0x14c)](),this[_0x44e499(0x162)],_0x19bd14,_0x4ace8c,this[_0x44e499(0x1bb)]()));}[_0x27bc21(0x179)](){const _0x4ccfe8=_0x27bc21;let _0x18295f=this['_document']['getDocumentDataModel']()[_0x4ccfe8(0x1d6)]();return this[_0x4ccfe8(0x1dd)]?{...this[_0x4ccfe8(0x1ae)][_0x4ccfe8(0x193)](this['_segmentId'])[_0x4ccfe8(0x1d6)](),'documentStyle':_0x18295f[_0x4ccfe8(0x1c8)],'tableSource':_0x18295f[_0x4ccfe8(0x1ac)]}:_0x18295f;}['_serializeModel'](){const _0x193c1c=_0x27bc21;return this[_0x193c1c(0x167)][_0x193c1c(0x1e4)](_0x3e8f93['DocsTableModel'])[_0x193c1c(0x136)](this['_unitId']);}['_getBodyPath'](){const _0x268130=_0x27bc21;return(0x0,_0x3e8f93[_0x268130(0x1d9)])(this[_0x268130(0x1ae)][_0x268130(0x193)]()[_0x268130(0x1d6)](),this[_0x268130(0x1dd)]);}['_mutateActions'](_0x2c8adb,_0x1da4e9,_0xb3118c){const _0x26ce72=_0x27bc21;return(0x0,_0x3e8f93[_0x26ce72(0x128)])(this[_0x26ce72(0x14f)],this[_0x26ce72(0x145)],_0x2c8adb,_0x1da4e9,_0xb3118c?{'tableId':this[_0x26ce72(0x162)],'segmentId':this[_0x26ce72(0x1dd)],..._0xb3118c}:void 0x0);}};_0x1aa285=_0x387bc2([_0x21410a(0x3,_0x4305d8[_0x27bc21(0x172)]),_0x21410a(0x4,(0x0,_0x4305d8[_0x27bc21(0x127)])(_0x4305d8['Injector']))],_0x1aa285);var _0x114f5f=class extends _0x4c7010[_0x27bc21(0x13c)]{[_0x27bc21(0x153)](_0x13d188=''){const _0x432df7=_0x27bc21;return this['_getTables'](_0x13d188)[_0x432df7(0x17a)](_0x18054b=>this['_createFDocumentTable'](_0x18054b[_0x432df7(0x189)],_0x13d188));}['getTable'](_0x4c060f,_0x55bfd3=''){const _0x28e03d=_0x27bc21;return this['_getTables'](_0x55bfd3)[_0x28e03d(0x178)](_0x25927d=>_0x25927d[_0x28e03d(0x189)]===_0x4c060f)?this['_createFDocumentTable'](_0x4c060f,_0x55bfd3):null;}['getTableAt'](_0x1058b4,_0xa5fedd=''){const _0x2d905b=_0x27bc21;var _0x97b284;let _0x5130d2=(_0x97b284=this[_0x2d905b(0x19c)](_0xa5fedd)[_0x1058b4])==null?void 0x0:_0x97b284[_0x2d905b(0x189)];return _0x5130d2?this[_0x2d905b(0x17e)](_0x5130d2,_0xa5fedd):null;}[_0x27bc21(0x169)](){const _0x2a9381=_0x27bc21;let _0x2c7f86=this[_0x2a9381(0x167)][_0x2a9381(0x1e4)](_0x3e8f93[_0x2a9381(0x1b3)])[_0x2a9381(0x1e0)]();return _0x2c7f86!=null&&_0x2c7f86['tableId']?this[_0x2a9381(0x17e)](_0x2c7f86[_0x2a9381(0x189)],_0x2c7f86[_0x2a9381(0x196)]):null;}[_0x27bc21(0x1a0)](_0x1f8c9b,_0x567b4b=''){const _0x4c561f=_0x27bc21;return this[_0x4c561f(0x1c6)](_0x1f8c9b,_0x567b4b)[0x0]??null;}[_0x27bc21(0x1c6)](_0x313283,_0x614c0d=''){const _0xac08e9=_0x27bc21;let _0x2dab8d=this[_0xac08e9(0x11f)](_0x614c0d),_0x3c9af4=typeof _0x313283==_0xac08e9(0x1cc)?{'text':_0x313283}:_0x313283;return this[_0xac08e9(0x153)](_0x614c0d)['filter'](_0x108bb6=>{const _0x7c6bf1=_0xac08e9;let _0x2ebc6d=_0x108bb6[_0x7c6bf1(0x1b7)]();return!(_0x3c9af4[_0x7c6bf1(0x189)]&&_0x2ebc6d!==_0x3c9af4['tableId']||_0x3c9af4['text']&&!this[_0x7c6bf1(0x12e)](_0x2dab8d,_0x2ebc6d,_0x3c9af4['text'])||_0x3c9af4[_0x7c6bf1(0x1a5)]&&!this[_0x7c6bf1(0x14d)](_0x108bb6,0x0,_0x3c9af4[_0x7c6bf1(0x1a5)])||_0x3c9af4[_0x7c6bf1(0x1eb)]&&!this['_rowContainsText'](_0x108bb6,0x0,_0x3c9af4['titleText']));});}['insertTable'](_0x59f94b,_0x340330,_0x3b0870={}){const _0x88d1d8=_0x27bc21;let _0x32e737=this[_0x88d1d8(0x167)][_0x88d1d8(0x1e4)](_0x4305d8[_0x88d1d8(0x172)]),_0xc3ae4e=_0x3b0870[_0x88d1d8(0x189)]??(0x0,_0x4305d8[_0x88d1d8(0x12d)])(0x6);return _0x32e737['syncExecuteCommand'](_0x3e8f93['DocsTableInsertTableCommand']['id'],{..._0x3b0870,'unitId':this[_0x88d1d8(0x1b7)](),'rows':_0x59f94b,'columns':_0x340330,'tableId':_0xc3ae4e})?this[_0x88d1d8(0x17e)](_0xc3ae4e,_0x3b0870[_0x88d1d8(0x196)]??''):null;}[_0x27bc21(0x19d)](_0x50380b,_0x4aa883={}){const _0x2ee376=_0x27bc21;let _0x3231e6=this[_0x2ee376(0x167)]['get'](_0x4305d8[_0x2ee376(0x172)]),_0x5223f8=_0x4aa883[_0x2ee376(0x189)]??(0x0,_0x4305d8[_0x2ee376(0x12d)])(0x6);return _0x3231e6['syncExecuteCommand'](_0x3e8f93[_0x2ee376(0x182)]['id'],{..._0x4aa883,'unitId':this[_0x2ee376(0x1b7)](),'values':_0x50380b,'tableId':_0x5223f8})?this[_0x2ee376(0x17e)](_0x5223f8,_0x4aa883['segmentId']??''):null;}['_getTables'](_0x289552=''){const _0x4d4431=_0x27bc21;let {tables:_0x2b083d=[]}=this[_0x4d4431(0x12c)](_0x289552);return _0x2b083d;}[_0x27bc21(0x11f)](_0x2121b8=''){const _0xabbb5f=_0x27bc21;let _0x47df66=this['getDocumentDataModel']()[_0xabbb5f(0x1d6)]();return _0x2121b8?{...this[_0xabbb5f(0x193)](_0x2121b8)[_0xabbb5f(0x1d6)](),'documentStyle':_0x47df66[_0xabbb5f(0x1c8)],'tableSource':_0x47df66[_0xabbb5f(0x1ac)]}:_0x47df66;}[_0x27bc21(0x17e)](_0x388a0e,_0x292068=''){const _0x4ff0f9=_0x27bc21;return this[_0x4ff0f9(0x167)][_0x4ff0f9(0x14a)](_0x1aa285,this,_0x388a0e,_0x292068);}['_tableContainsText'](_0x2d88d2,_0x3b4e7f,_0x148d44){const _0x47e8f4=_0x27bc21;var _0x1f8fbc;let _0x22f784=(0x0,_0x3e8f93[_0x47e8f4(0x156)])(_0x2d88d2,_0x3b4e7f);if(!_0x22f784)return!0x1;let _0x3a36e1=(_0x1f8fbc=_0x2d88d2[_0x47e8f4(0x15d)])==null?void 0x0:_0x1f8fbc['dataStream'];return _0x3a36e1?_0x3a36e1['slice'](_0x22f784[_0x47e8f4(0x17c)],_0x22f784['endOffset'])[_0x47e8f4(0x1df)](_0x148d44):!0x1;}[_0x27bc21(0x14d)](_0x4568d8,_0x78107f,_0x4b171d){const _0x1caff=_0x27bc21;return Array['from']({'length':_0x4568d8['getColumnCount']()},(_0x559bbe,_0x52e34e)=>_0x4568d8[_0x1caff(0x119)](_0x78107f,_0x52e34e))[_0x1caff(0x178)](_0x4440a0=>_0x4440a0[_0x1caff(0x1df)](_0x4b171d));}};_0x4c7010[_0x27bc21(0x13c)][_0x27bc21(0x1c5)](_0x114f5f),Object[_0x27bc21(0x138)](_0xa5bfab,_0x27bc21(0x188),{'enumerable':!0x0,'get':function(){return _0x1aa285;}}),_0xa5bfab['FDocumentTableCell']=_0x15a5b6;}));function _0x26e2(){const _0x16e618=['deleteRow','insertColumnsBefore','buildSetTableCellTextMutationActions','getSnapshot','DocsTableInsertPosition','getCellMarginOverride','getTableActionBodyPath','getColumnIndex','hasTitleRow','getMarginOverride','_segmentId','301xKcKxz','includes','getStableTableSelection','selectTable','setTableStyle','1430qsfkpr','get','setStructuralSelection','deleteTable','getTableMetadata','getRowCount','getCellContentRange','constructor','titleText','getRowHeight','buildMoveTableColumnsMutationActions','buildSortTableMutationActions','endOffset','buildSetTableCellMarginMutationActions','slice','SOLID','getCellRange','getCellMargin','DocsTableColumnType','amd','getOwnPropertyDescriptor','getCellText','symbol','DocsTableDeleteColumnsCommand','getRowsRange','mergeTo','setTableBorder','_getTableDocumentData','@univerjs-pro/docs-table','from','702252oIjSnB','deleteColumn','length','syncExecuteCommand','distributeRows','Inject','executeRichTextTableActions','Table','39915sMXdpY','getDefaultCellMargin','getBody','generateRandomId','_tableContainsText','@univerjs/docs/facade','cellMargin','DocsTableBorderPreset','DocsTableSelectionKind','setHeaderRowCount','deleteRows','deepClone','serialize','10074YtGPJQ','defineProperty','margin','moveColumn','replace','FDocument','setRowHeight','4297176KwFPvZ','setText','DocsTableRowInsertPosition','buildMergeCellsMutationActions','getCellInsertOffset','getColumnsRange','DashStyleType','_unitId','selectColumns','1560824gfNGiC','mergeCells','unmergeCells','createInstance','Tools','_serializeModel','_rowContainsText','UniverCoreFacade','_commandService','Module','unmerge','rows','getTables','Left','buildInsertTableColumnsMutationActions','getTableRangeById','DocsTableDeleteRowsCommand','Range','pinHeaderRows','cells','backgroundColor','getMetadata','body','tableRows','insertColumnsAfter','#1f1f1f','setDefaultCellMargin','_tableId','getInsertOffset','buildDistributeTableRowsMutationActions','1484860ZjcrMi','3SUfKfU','_injector','DocsTableInsertTablePosition','getTableAtSelection','@univerjs/core/facade','moveColumns','DocsTableColumnInsertPosition','setCellMargin','buildMoveFloatingTableMutationActions','DocsTableSortDirection','appendColumn','preset','ICommandService','type','setBorder','setCellText','DocsTableDeleteTableCommand','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','some','_getDocumentData','map','getDefaultCellMarginOverride','startOffset','border','_createFDocumentTable','buildMoveTableRowsMutationActions','setColumnWidth','DEFAULT_DOCS_TABLE_CELL_MARGIN','DocsTableInsertTableCommand','getTableRange','width','Column','setTableBackground','UniverDocsFacade','FDocumentTable','tableId','deleteColumns','trHeight','toStringTag','getMargin','39768EfskBz','getSource','object','insertRowsAfter','getSegmentId','getDocumentDataModel','max','TableRowHeightRule','segmentId','_mutateActions','function','default','buildResizeTableColumnActionsFromWidth','getCell','_getTables','insertTableFromData','DocsTableModel','selectRows','findTableByText','columnTypes','selectColumn','buildDistributeTableColumnsMutationActions','setCellBackground','headerText','buildUnmergeCellsMutationActions','buildInsertTableTitleRowMutationActions','buildSetTableBorderMutationActions','tableCells','buildResizeTableRowActionsFromHeight','setBackgroundColor','tableSource','FEnum','_document','Above','call','getColumnCount','moveRows','DocsTableSelectionService','toPrimitive','insertRowAfter','Cell','getId','@univerjs/core','getRowRange','selectRow','_getBodyPath','Below','selectCell','buildInsertTableRowsMutationActions','decorate','color','filter','getColumnRange','_column','_row','extend','findTables','getContentRange','documentStyle','_table','setColumnType','UniverProDocsTable','string','actions','getInfo','selectRange','insertRowsBefore','getHeaderRowCount','UniverProDocsTableFacade'];_0x26e2=function(){return _0x16e618;};return _0x26e2();}