@univerjs-pro/docs-table 1.4.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -235,6 +235,10 @@ export declare class FDocumentTable {
235
235
  getCellInsertOffset(row: number, column: number): number | null;
236
236
  /**
237
237
  * Gets the cell range for the specified row index, covering all columns in the row.
238
+ *
239
+ * For multiple consecutive rows, use {@link FDocumentTable.getRowsRange} with the full count
240
+ * instead of constructing a separate range for each row.
241
+ *
238
242
  * @param {number} row The zero-based row index.
239
243
  * @returns {IDocsTableCellRange} The cell range for the specified row, or `null` if the row does not exist.
240
244
  * @example
@@ -262,6 +266,10 @@ export declare class FDocumentTable {
262
266
  getRowsRange(startRow: number, count?: number): IDocsTableCellRange;
263
267
  /**
264
268
  * Gets the cell range for the specified column index, covering all rows in the column.
269
+ *
270
+ * For multiple consecutive columns, use {@link FDocumentTable.getColumnsRange} with the full count
271
+ * instead of constructing a separate range for each column.
272
+ *
265
273
  * @param {number} column The zero-based column index.
266
274
  * @returns {IDocsTableCellRange} The cell range for the specified column, or `null` if the column does not exist.
267
275
  * @example
@@ -300,6 +308,10 @@ export declare class FDocumentTable {
300
308
  selectTable(): boolean;
301
309
  /**
302
310
  * Selects a single row in the table.
311
+ *
312
+ * For multiple consecutive rows, prefer {@link FDocumentTable.selectRows} with the full count
313
+ * instead of calling this method for each row.
314
+ *
303
315
  * @param {number} row The zero-based row index to select.
304
316
  * @returns {boolean} `true` if the selection was successfully set, or `false` if the table source is not found in the document snapshot.
305
317
  * @example
@@ -312,6 +324,9 @@ export declare class FDocumentTable {
312
324
  selectRow(row: number): boolean;
313
325
  /**
314
326
  * Selects multiple rows in the table.
327
+ *
328
+ * For multiple consecutive rows, pass the full `count` in one call instead of looping with `count = 1`.
329
+ *
315
330
  * @param {number} startRow The zero-based starting row index to select.
316
331
  * @param {number} [count] The number of rows to select.
317
332
  * @returns {boolean} `true` if the selection was successfully set, or `false` if the table source is not found in the document snapshot.
@@ -325,6 +340,10 @@ export declare class FDocumentTable {
325
340
  selectRows(startRow: number, count?: number): boolean;
326
341
  /**
327
342
  * Selects a single column in the table.
343
+ *
344
+ * For multiple consecutive columns, prefer {@link FDocumentTable.selectColumns} with the full count
345
+ * instead of calling this method for each column.
346
+ *
328
347
  * @param {number} column The zero-based column index to select.
329
348
  * @returns {boolean} `true` if the selection was successfully set, or `false` if the table source is not found in the document snapshot.
330
349
  * @example
@@ -337,6 +356,9 @@ export declare class FDocumentTable {
337
356
  selectColumn(column: number): boolean;
338
357
  /**
339
358
  * Selects multiple columns in the table.
359
+ *
360
+ * For multiple consecutive columns, pass the full `count` in one call instead of looping with `count = 1`.
361
+ *
340
362
  * @param {number} startColumn The zero-based starting column index to select.
341
363
  * @param {number} [count] The number of columns to select.
342
364
  * @returns {boolean} `true` if the selection was successfully set, or `false` if the table source is not found in the document snapshot.
@@ -350,6 +372,10 @@ export declare class FDocumentTable {
350
372
  selectColumns(startColumn: number, count?: number): boolean;
351
373
  /**
352
374
  * Selects a single cell in the table.
375
+ *
376
+ * To select multiple cells, use {@link FDocumentTable.selectRange} once with the complete target range;
377
+ * repeated calls to this method replace the selection.
378
+ *
353
379
  * @param {number} row The zero-based row index of the cell to select.
354
380
  * @param {number} column The zero-based column index of the cell to select.
355
381
  * @returns {boolean} `true` if the selection was successfully set, or `false` if the table source is not found in the document snapshot.
@@ -383,6 +409,10 @@ export declare class FDocumentTable {
383
409
  selectRange(range: IDocsTableCellRange, kind?: Exclude<DocsTableSelectionKind, DocsTableSelectionKind.None | DocsTableSelectionKind.Text>): boolean;
384
410
  /**
385
411
  * Inserts a new row before the specified row index.
412
+ *
413
+ * For multiple consecutive rows, prefer {@link FDocumentTable.insertRowsBefore} with the full count
414
+ * instead of calling this method for each row.
415
+ *
386
416
  * @param {number} row The zero-based row index to insert before.
387
417
  * @returns {boolean} `true` if the row was successfully inserted.
388
418
  * @example
@@ -395,6 +425,10 @@ export declare class FDocumentTable {
395
425
  insertRowBefore(row: number): boolean;
396
426
  /**
397
427
  * Inserts a new row after the specified row index.
428
+ *
429
+ * For multiple consecutive rows, prefer {@link FDocumentTable.insertRowsAfter} with the full count
430
+ * instead of calling this method for each row.
431
+ *
398
432
  * @param {number} row The zero-based row index to insert after.
399
433
  * @returns {boolean} `true` if the row was successfully inserted.
400
434
  * @example
@@ -433,6 +467,10 @@ export declare class FDocumentTable {
433
467
  insertRowsAfter(row: number, count: number): boolean;
434
468
  /**
435
469
  * Appends a new row at the end of the table.
470
+ *
471
+ * To append multiple rows, call {@link FDocumentTable.insertRowsAfter} once with the last
472
+ * row index and the full count instead of repeatedly calling this method.
473
+ *
436
474
  * @returns {boolean} `true` if the row was successfully appended.
437
475
  * @example
438
476
  * ```ts
@@ -444,6 +482,10 @@ export declare class FDocumentTable {
444
482
  appendRow(): boolean;
445
483
  /**
446
484
  * Inserts a new column before the specified column index.
485
+ *
486
+ * For multiple consecutive columns, prefer {@link FDocumentTable.insertColumnsBefore} with the full count
487
+ * instead of calling this method for each column.
488
+ *
447
489
  * @param {number} column The zero-based column index to insert before.
448
490
  * @returns {boolean} `true` if the column was successfully inserted.
449
491
  * @example
@@ -456,6 +498,10 @@ export declare class FDocumentTable {
456
498
  insertColumnBefore(column: number): boolean;
457
499
  /**
458
500
  * Inserts a new column after the specified column index.
501
+ *
502
+ * For multiple consecutive columns, prefer {@link FDocumentTable.insertColumnsAfter} with the full count
503
+ * instead of calling this method for each column.
504
+ *
459
505
  * @param {number} column The zero-based column index to insert after.
460
506
  * @returns {boolean} `true` if the column was successfully inserted.
461
507
  * @example
@@ -494,6 +540,10 @@ export declare class FDocumentTable {
494
540
  insertColumnsAfter(column: number, count: number): boolean;
495
541
  /**
496
542
  * Appends a new column at the end of the table.
543
+ *
544
+ * To append multiple columns, call {@link FDocumentTable.insertColumnsAfter} once with the last
545
+ * column index and the full count instead of repeatedly calling this method.
546
+ *
497
547
  * @returns {boolean} `true` if the column was successfully appended.
498
548
  * @example
499
549
  * ```ts
@@ -505,6 +555,10 @@ export declare class FDocumentTable {
505
555
  appendColumn(): boolean;
506
556
  /**
507
557
  * Deletes a single row at the specified row index.
558
+ *
559
+ * For multiple consecutive rows, prefer {@link FDocumentTable.deleteRows} with the full count
560
+ * instead of calling this method for each row.
561
+ *
508
562
  * @param {number} row The zero-based row index to delete.
509
563
  * @returns {boolean} `true` if the row was successfully deleted.
510
564
  * @example
@@ -517,6 +571,9 @@ export declare class FDocumentTable {
517
571
  deleteRow(row: number): boolean;
518
572
  /**
519
573
  * Deletes multiple rows starting from the specified row index.
574
+ *
575
+ * For multiple consecutive rows, pass the full `count` in one call instead of looping with `count = 1`.
576
+ *
520
577
  * @param {number} startRow The zero-based starting row index to delete.
521
578
  * @param {number} [count] The number of rows to delete.
522
579
  * @returns {boolean} `true` if the rows were successfully deleted.
@@ -530,6 +587,10 @@ export declare class FDocumentTable {
530
587
  deleteRows(startRow: number, count?: number): boolean;
531
588
  /**
532
589
  * Deletes a single column at the specified column index.
590
+ *
591
+ * For multiple consecutive columns, prefer {@link FDocumentTable.deleteColumns} with the full count
592
+ * instead of calling this method for each column.
593
+ *
533
594
  * @param {number} column The zero-based column index to delete.
534
595
  * @returns {boolean} `true` if the column was successfully deleted.
535
596
  * @example
@@ -542,6 +603,9 @@ export declare class FDocumentTable {
542
603
  deleteColumn(column: number): boolean;
543
604
  /**
544
605
  * Deletes multiple columns starting from the specified column index.
606
+ *
607
+ * For multiple consecutive columns, pass the full `count` in one call instead of looping with `count = 1`.
608
+ *
545
609
  * @param {number} startColumn The zero-based starting column index to delete.
546
610
  * @param {number} [count] The number of columns to delete.
547
611
  * @returns {boolean} `true` if the columns were successfully deleted.
@@ -591,6 +655,10 @@ export declare class FDocumentTable {
591
655
  moveTableToOffset(offset: number): boolean;
592
656
  /**
593
657
  * Moves a single row to a target row index with the specified insert position relative to the target row.
658
+ *
659
+ * For multiple consecutive rows, prefer {@link FDocumentTable.moveRows} with the full count
660
+ * instead of calling this method for each row.
661
+ *
594
662
  * @param {number} row The zero-based row index to move.
595
663
  * @param {number} targetRow The zero-based target row index to move to.
596
664
  * @param {DocsTableRowInsertPosition} [position] The position to insert the moved row relative to the target row. Defaults to `Above`.
@@ -620,6 +688,10 @@ export declare class FDocumentTable {
620
688
  moveRows(startRow: number, count: number, targetRow: number, position?: DocsTableRowInsertPosition): boolean;
621
689
  /**
622
690
  * Moves a single column to a target column index with the specified insert position relative to the target column.
691
+ *
692
+ * For multiple consecutive columns, prefer {@link FDocumentTable.moveColumns} with the full count
693
+ * instead of calling this method for each column.
694
+ *
623
695
  * @param {number} column The zero-based column index to move.
624
696
  * @param {number} targetColumn The zero-based target column index to move to.
625
697
  * @param {DocsTableColumnInsertPosition} [position] The position to insert the moved column relative to the target column. Defaults to `Left`.
@@ -701,6 +773,10 @@ export declare class FDocumentTable {
701
773
  setCellText(row: number, column: number, text: string): boolean;
702
774
  /**
703
775
  * Sets the background color of a range of cells in the table.
776
+ *
777
+ * To apply the same setting to multiple cells, pass the complete target `range` in one call
778
+ * instead of calling this method for each cell.
779
+ *
704
780
  * @param {IDocsTableCellRange} range The range of cells to set the background color for.
705
781
  * @param {string} color The background color to set, specified as a hex string (e.g., `#ff0000` for red).
706
782
  * @returns {boolean} `true` if the cell background color was successfully set.
@@ -722,6 +798,10 @@ export declare class FDocumentTable {
722
798
  /**
723
799
  * Sets or clears the explicit margin override for a range of cells.
724
800
  * Pass `null` to make the cells inherit the table default.
801
+ *
802
+ * To apply the same setting to multiple cells, pass the complete target `range` in one call
803
+ * instead of calling this method for each cell.
804
+ *
725
805
  * @param {IDocsTableCellRange} range The target cell range.
726
806
  * @param {ITableCellMargin | null} margin The margin override, or `null` to clear it.
727
807
  * @returns {boolean} Whether the mutation succeeded.
@@ -736,6 +816,10 @@ export declare class FDocumentTable {
736
816
  setDefaultCellMargin(margin: Nullable<ITableCellMargin>): boolean;
737
817
  /**
738
818
  * Sets the border properties for a range of cells in the table.
819
+ *
820
+ * For borders on multiple cells, pass the complete target `range` in one call. Border presets are
821
+ * interpreted relative to that range, so applying them to each cell can produce different borders.
822
+ *
739
823
  * @param {IDocsTableCellRange} range The range of cells to set the border for.
740
824
  * @param {IDocsTableBorderOptions} options The border options, including color, width, dash style, and presets for which sides to apply the border to.
741
825
  * @returns {boolean} `true` if the cell border was successfully set.
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x350c(){const _0x1aa57f=['buildInsertTableRowsMutationActions','deleteColumns','getTableRange','setHeaderRowCount','_tableContainsText','selectColumns','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','color','setRowHeight','Tools','getTableRangeById','getRange','_buildBorderActions','getCellContentRange','Row','getColorFromTheme','setDefaultCellMargin','map','DocsTableRowInsertPosition','getMetadata','_unitId','deleteRows','buildMoveTableColumnsMutationActions','size','moveColumns','deleteRow','_segmentId','body','_column','SOLID','buildInsertTableColumnsMutationActions','setCellText','cellMargin','getDocumentDataModel','backgroundColor','setBorder','UniverProDocsTable','setTableBackground','Inject','sortByColumn','insertColumnsAfter','some','Cell','UniverCoreFacade','getCellMarginOverride','insertTable','insertRowsAfter','length','DocsTableColumnType','preset','border','distributeColumns','buildMoveTableRowsMutationActions','findTables','Range','selectRange','serializeDocument','toStringTag','compose','UniverProDocsTableFacade','669LlFYIp','getMargin','getContentRange','deepClone','Left','801636iDrtGG','max','trHeight','getTableAtSelection','ThemeService','columnTypes','Right','DocsTableInsertPosition','text','setColumnWidth','_row','margin','moveRows','843543KayibC','Above','from','appendRow','FDocument','dataStream','DocsTableDeleteTableCommand','getCellText','endOffset','buildInsertTableTitleRowMutationActions','setTableBorder','pinHeaderRows','insertRowsBefore','generateRandomId','getColumnRange','FEnum','string','actions','moveRow','buildMoveTableToOffsetMutationActions','insertColumnAfter','width','Module','deleteColumn','setText','getCellRange','getTables','_getTableDocumentData','_commandService','tableId','DocsTableColumnInsertPosition','documentStyle','tableCells','TableRowHeightRule','getColumnsRange','rows','_document','72EMptcR','appendColumn','@univerjs/core/facade','UniverDocsFacade','findTableByText','DocsTableSelectionKind','type','_table','buildMergeCellsMutationActions','getRowsRange','buildUnmergeCellsMutationActions','getSnapshot','get','FDocumentTable','getCell','ICommandService','_getTables','startOffset','symbol','moveColumn','@univerjs-pro/docs-table','buildResizeTableColumnActionsFromWidth','function','buildSetTableDefaultCellMarginMutationActions','getTableAt','tableColumns','selectRows','DocsTableBorderPreset','headerText','buildSetTableHeaderRowCountMutationActions','DocsTableInsertTablePosition','buildMoveFloatingTableMutationActions','createInstance','selectCell','unmerge','includes','mergeTo','buildDistributeTableRowsMutationActions','_createFDocumentTable','buildSortTableMutationActions','insertColumnBefore','DocsTableInsertTableCommand','titleRow','getCellInsertOffset','All','cells','default','AT_LEAST','filter','2324dBueEv','tableSource','distributeRows','insertColumnsBefore','_getBodyPath','setStructuralSelection','call','buildResizeTableRowActionsFromHeight','replace','Below','segmentId','syncExecuteCommand','844327UGQaXC','6631674wSXwLN','DEFAULT_DOCS_TABLE_CELL_MARGIN','getRowCount','selectTable','gray.900','setCellBackground','getCellMargin','getTable','insertTitleRow','slice','buildSetTableBackgroundMutationActions','moveTableToOffset','insertRowAfter','extend','moveTableBy','buildDistributeTableColumnsMutationActions','unmergeCells','_tableId','getSource','mergeCells','setTableStyle','headerRowCount','DocsTableModel','getInsertOffset','setCellMargin','_rowContainsText','_getDocumentData','getColumnCount','_mutateActions','buildSetTableCellMarginMutationActions','6597480fWncEy','Table','defineProperty','tableRows','_injector','getId','DashStyleType','titleText','selectColumn','getColumnIndex','clearMarginOverride','_serializeModel','getRowRange','iterator','7042926krfohs','object'];_0x350c=function(){return _0x1aa57f;};return _0x350c();}function _0x2ba0(_0x3c2cd7,_0x5ac329){_0x3c2cd7=_0x3c2cd7-0x1a5;const _0x350cc0=_0x350c();let _0x2ba0c0=_0x350cc0[_0x3c2cd7];return _0x2ba0c0;}(function(_0x551cf2,_0x47162e){const _0x123b7d=_0x2ba0,_0x281040=_0x551cf2();while(!![]){try{const _0x18f643=-parseInt(_0x123b7d(0x21a))/0x1+-parseInt(_0x123b7d(0x1ab))/0x2+parseInt(_0x123b7d(0x1a6))/0x3*(parseInt(_0x123b7d(0x20e))/0x4)+parseInt(_0x123b7d(0x239))/0x5+-parseInt(_0x123b7d(0x247))/0x6+parseInt(_0x123b7d(0x21b))/0x7+-parseInt(_0x123b7d(0x1dd))/0x8*(-parseInt(_0x123b7d(0x1b8))/0x9);if(_0x18f643===_0x47162e)break;else _0x281040['push'](_0x281040['shift']());}catch(_0x254558){_0x281040['push'](_0x281040['shift']());}}}(_0x350c,0xc871a),function(_0x228ef8,_0x31e494){const _0x2a90e9=_0x2ba0;typeof exports==_0x2a90e9(0x248)&&typeof module<'u'?_0x31e494(exports,require('@univerjs-pro/docs-table'),require('@univerjs/core'),require('@univerjs/core/facade'),require('@univerjs/docs/facade')):typeof define==_0x2a90e9(0x1f3)&&define['amd']?define(['exports',_0x2a90e9(0x1f1),'@univerjs/core',_0x2a90e9(0x1df),'@univerjs/docs/facade'],_0x31e494):(_0x228ef8=typeof globalThis<'u'?globalThis:_0x228ef8||self,_0x31e494(_0x228ef8[_0x2a90e9(0x1a5)]={},_0x228ef8[_0x2a90e9(0x26d)],_0x228ef8['UniverCore'],_0x228ef8[_0x2a90e9(0x274)],_0x228ef8[_0x2a90e9(0x1e0)]));}(this,function(_0x5e4f39,_0x2de058,_0x3cc9fb,_0x5214b1,_0x319cfb){const _0x2a6225=_0x2ba0;Object[_0x2a6225(0x23b)](_0x5e4f39,Symbol[_0x2a6225(0x282)],{'value':_0x2a6225(0x1ce)});var _0x1b3d71=class extends _0x5214b1['FEnum']{get[_0x2a6225(0x1fb)](){const _0x3c7aac=_0x2a6225;return _0x2de058[_0x3c7aac(0x1fb)];}get[_0x2a6225(0x279)](){const _0x4f0bb4=_0x2a6225;return _0x2de058[_0x4f0bb4(0x279)];}get[_0x2a6225(0x1e2)](){return _0x2de058['DocsTableSelectionKind'];}get[_0x2a6225(0x25b)](){return _0x2de058['DocsTableRowInsertPosition'];}get[_0x2a6225(0x1d6)](){const _0x2198a0=_0x2a6225;return _0x2de058[_0x2198a0(0x1d6)];}get[_0x2a6225(0x1f8)](){return _0x2de058['DocsTableBorderPreset'];}get['DocsTableSortDirection'](){return _0x2de058['DocsTableSortDirection'];}get['DashStyleType'](){return _0x3cc9fb['DashStyleType'];}};_0x5214b1[_0x2a6225(0x1c7)][_0x2a6225(0x228)](_0x1b3d71);var _0x444506=class{constructor(_0x27c914,_0x3143d2,_0x10ea80){const _0x384925=_0x2a6225;this['_table']=_0x27c914,this[_0x384925(0x1b5)]=_0x3143d2,this['_column']=_0x10ea80;}[_0x2a6225(0x222)](){const _0x36a2c4=_0x2a6225;return this[_0x36a2c4(0x1e4)];}['getRowIndex'](){return this['_row'];}[_0x2a6225(0x242)](){const _0x5dfa4e=_0x2a6225;return this[_0x5dfa4e(0x265)];}['getText'](){const _0x38d61c=_0x2a6225;return this['_table'][_0x38d61c(0x1bf)](this[_0x38d61c(0x1b5)],this['_column']);}[_0x2a6225(0x1a8)](){const _0x121742=_0x2a6225;return this[_0x121742(0x1e4)][_0x121742(0x256)](this[_0x121742(0x1b5)],this[_0x121742(0x265)]);}[_0x2a6225(0x232)](){const _0x4afd7c=_0x2a6225;return this[_0x4afd7c(0x1e4)]['getCellInsertOffset'](this[_0x4afd7c(0x1b5)],this[_0x4afd7c(0x265)]);}[_0x2a6225(0x1a7)](){const _0x16cd51=_0x2a6225;return this[_0x16cd51(0x1e4)][_0x16cd51(0x221)](this[_0x16cd51(0x1b5)],this[_0x16cd51(0x265)]);}['getMarginOverride'](){const _0x5a95fb=_0x2a6225;return this[_0x5a95fb(0x1e4)]['getCellMarginOverride'](this[_0x5a95fb(0x1b5)],this[_0x5a95fb(0x265)]);}['setMargin'](_0x194fbc){const _0x1bd11a=_0x2a6225;return this[_0x1bd11a(0x1e4)][_0x1bd11a(0x233)](this[_0x1bd11a(0x1e4)][_0x1bd11a(0x1d1)](this[_0x1bd11a(0x1b5)],this['_column']),_0x194fbc);}[_0x2a6225(0x243)](){const _0x42f9ce=_0x2a6225;return this[_0x42f9ce(0x1e4)][_0x42f9ce(0x233)](this[_0x42f9ce(0x1e4)][_0x42f9ce(0x1d1)](this[_0x42f9ce(0x1b5)],this[_0x42f9ce(0x265)]),null);}[_0x2a6225(0x1d0)](_0x31e4c5){const _0x24d8e9=_0x2a6225;return this[_0x24d8e9(0x1e4)][_0x24d8e9(0x268)](this['_row'],this[_0x24d8e9(0x265)],_0x31e4c5);}['setBackgroundColor'](_0x5a23d9){const _0x5db0f3=_0x2a6225;return this[_0x5db0f3(0x1e4)][_0x5db0f3(0x220)](this['_table'][_0x5db0f3(0x1d1)](this['_row'],this[_0x5db0f3(0x265)]),_0x5a23d9);}[_0x2a6225(0x26c)](_0x1d2dad){const _0x2db867=_0x2a6225;return this[_0x2db867(0x1e4)][_0x2db867(0x26c)](this[_0x2db867(0x1e4)][_0x2db867(0x1d1)](this['_row'],this['_column']),_0x1d2dad);}[_0x2a6225(0x201)](_0x5341d3,_0x3f09fe){const _0x576f80=_0x2a6225;return this[_0x576f80(0x1e4)][_0x576f80(0x22e)]({'startRow':this[_0x576f80(0x1b5)],'startColumn':this[_0x576f80(0x265)],'endRow':this[_0x576f80(0x1b5)]+_0x5341d3-0x1,'endColumn':this[_0x576f80(0x265)]+_0x3f09fe-0x1});}[_0x2a6225(0x1ff)](){const _0x4063b2=_0x2a6225;return this[_0x4063b2(0x1e4)][_0x4063b2(0x22b)](this[_0x4063b2(0x1e4)][_0x4063b2(0x1d1)](this['_row'],this['_column']));}};function _0xe1179a(_0xd36dab){'@babel/helpers - typeof';const _0x3e41af=_0x2a6225;return _0xe1179a=typeof Symbol==_0x3e41af(0x1f3)&&typeof Symbol[_0x3e41af(0x246)]==_0x3e41af(0x1ef)?function(_0xa55377){return typeof _0xa55377;}:function(_0x537117){const _0x4fb23a=_0x3e41af;return _0x537117&&typeof Symbol==_0x4fb23a(0x1f3)&&_0x537117['constructor']===Symbol&&_0x537117!==Symbol['prototype']?_0x4fb23a(0x1ef):typeof _0x537117;},_0xe1179a(_0xd36dab);}function _0x72c231(_0x19e337,_0x392237){const _0x2ccca1=_0x2a6225;if(_0xe1179a(_0x19e337)!=_0x2ccca1(0x248)||!_0x19e337)return _0x19e337;var _0x4ba34a=_0x19e337[Symbol['toPrimitive']];if(_0x4ba34a!==void 0x0){var _0x423f50=_0x4ba34a[_0x2ccca1(0x214)](_0x19e337,_0x392237||_0x2ccca1(0x20b));if(_0xe1179a(_0x423f50)!=_0x2ccca1(0x248))return _0x423f50;throw TypeError(_0x2ccca1(0x24f));}return(_0x392237===_0x2ccca1(0x1c8)?String:Number)(_0x19e337);}function _0x3e795a(_0x1a45c4){const _0x4b15f0=_0x2a6225;var _0x5b1dcd=_0x72c231(_0x1a45c4,_0x4b15f0(0x1c8));return _0xe1179a(_0x5b1dcd)==_0x4b15f0(0x1ef)?_0x5b1dcd:_0x5b1dcd+'';}function _0x2ffd79(_0x4f429c,_0x40d6d9,_0x2f6fb4){const _0x11db53=_0x2a6225;return(_0x40d6d9=_0x3e795a(_0x40d6d9))in _0x4f429c?Object[_0x11db53(0x23b)](_0x4f429c,_0x40d6d9,{'value':_0x2f6fb4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4f429c[_0x40d6d9]=_0x2f6fb4,_0x4f429c;}function _0x32136e(_0x188362,_0x1df889){return function(_0x5e169c,_0xaf8c29){_0x1df889(_0x5e169c,_0xaf8c29,_0x188362);};}function _0x358732(_0x20e7f4,_0x235e1d,_0x480f04,_0x32ce79){const _0x521d8c=_0x2a6225;var _0x374e4e=arguments[_0x521d8c(0x278)],_0x1a0d6b=_0x374e4e<0x3?_0x235e1d:_0x32ce79===null?_0x32ce79=Object['getOwnPropertyDescriptor'](_0x235e1d,_0x480f04):_0x32ce79,_0x5d9a79;if(typeof Reflect==_0x521d8c(0x248)&&typeof Reflect['decorate']==_0x521d8c(0x1f3))_0x1a0d6b=Reflect['decorate'](_0x20e7f4,_0x235e1d,_0x480f04,_0x32ce79);else{for(var _0x390116=_0x20e7f4[_0x521d8c(0x278)]-0x1;_0x390116>=0x0;_0x390116--)(_0x5d9a79=_0x20e7f4[_0x390116])&&(_0x1a0d6b=(_0x374e4e<0x3?_0x5d9a79(_0x1a0d6b):_0x374e4e>0x3?_0x5d9a79(_0x235e1d,_0x480f04,_0x1a0d6b):_0x5d9a79(_0x235e1d,_0x480f04))||_0x1a0d6b);}return _0x374e4e>0x3&&_0x1a0d6b&&Object[_0x521d8c(0x23b)](_0x235e1d,_0x480f04,_0x1a0d6b),_0x1a0d6b;}let _0x4e5482=class{constructor(_0x2add4b,_0x3d0511,_0x11adc1,_0x3ffb3a,_0x536993){const _0x33df69=_0x2a6225;this[_0x33df69(0x1dc)]=_0x2add4b,this[_0x33df69(0x22c)]=_0x3d0511,this[_0x33df69(0x263)]=_0x11adc1,this[_0x33df69(0x1d4)]=_0x3ffb3a,this[_0x33df69(0x23d)]=_0x536993,_0x2ffd79(this,'_unitId',void 0x0),this['_unitId']=this[_0x33df69(0x1dc)]['getId']();}[_0x2a6225(0x23e)](){const _0x1a2d9b=_0x2a6225;return this[_0x1a2d9b(0x22c)];}['getSegmentId'](){const _0x42f2d8=_0x2a6225;return this[_0x42f2d8(0x263)];}['getInfo'](){const _0x27b144=_0x2a6225;return{'id':this[_0x27b144(0x22c)],'rowCount':this[_0x27b144(0x21d)](),'columnCount':this[_0x27b144(0x236)](),'metadata':this[_0x27b144(0x25c)](),'source':this[_0x27b144(0x22d)]()};}['describe'](){const _0x1b62ff=_0x2a6225;let _0x5e3f9f=this[_0x1b62ff(0x25c)](),_0x43ceff=this[_0x1b62ff(0x22d)](),_0x396eaf=this[_0x1b62ff(0x236)]();return{'id':this[_0x1b62ff(0x22c)],'rowCount':this[_0x1b62ff(0x21d)](),'columnCount':_0x396eaf,'headerRowCount':(_0x5e3f9f==null?void 0x0:_0x5e3f9f[_0x1b62ff(0x230)])??0x0,'titleRow':(_0x5e3f9f==null?void 0x0:_0x5e3f9f[_0x1b62ff(0x207)])??!0x1,'columns':Array[_0x1b62ff(0x1ba)]({'length':_0x396eaf},(_0x288584,_0xe5551f)=>{const _0x2e636a=_0x1b62ff;var _0x234fa6,_0x39e8ca;return{'index':_0xe5551f,'type':_0x5e3f9f==null||(_0x234fa6=_0x5e3f9f[_0x2e636a(0x1b0)])==null||(_0x234fa6=_0x234fa6[_0xe5551f])==null?void 0x0:_0x234fa6[_0x2e636a(0x1e3)],'width':_0x43ceff==null||(_0x39e8ca=_0x43ceff[_0x2e636a(0x1f6)][_0xe5551f])==null?void 0x0:_0x39e8ca[_0x2e636a(0x260)][_0x2e636a(0x1cd)]['v']};}),'sampleRows':Array['from']({'length':this['getRowCount']()},(_0x14571c,_0x265265)=>Array['from']({'length':_0x396eaf},(_0x66816,_0x4e1206)=>this[_0x1b62ff(0x1bf)](_0x265265,_0x4e1206)))['filter'](_0x32375d=>_0x32375d[_0x1b62ff(0x272)](_0x3175cd=>_0x3175cd[_0x1b62ff(0x278)]>0x0))[_0x1b62ff(0x224)](0x0,0x5)};}['getRowCount'](){const _0x5f395c=_0x2a6225;var _0x3b681d;return((_0x3b681d=this[_0x5f395c(0x22d)]())==null?void 0x0:_0x3b681d['tableRows'][_0x5f395c(0x278)])??0x0;}[_0x2a6225(0x236)](){const _0x157ba9=_0x2a6225;var _0x54bee1;return((_0x54bee1=this['getSource']())==null?void 0x0:_0x54bee1['tableColumns'][_0x157ba9(0x278)])??0x0;}[_0x2a6225(0x1eb)](_0x162f35,_0x2c0eff){const _0x502ec2=_0x2a6225;var _0xbaf146;return(_0xbaf146=this['getSource']())!=null&&(_0xbaf146=_0xbaf146[_0x502ec2(0x23c)][_0x162f35])!=null&&_0xbaf146[_0x502ec2(0x1d8)][_0x2c0eff]?this[_0x502ec2(0x23d)][_0x502ec2(0x1fd)](_0x444506,this,_0x162f35,_0x2c0eff):null;}[_0x2a6225(0x1bf)](_0x5a2213,_0x391016){const _0xa06a38=_0x2a6225;var _0x2027b6,_0x5f12f6;let _0x1c1534=(_0x2027b6=(0x0,_0x2de058[_0xa06a38(0x253)])(this[_0xa06a38(0x235)](),this[_0xa06a38(0x22c)]))==null||(_0x2027b6=_0x2027b6[_0xa06a38(0x1db)][_0x5a2213])==null?void 0x0:_0x2027b6[_0xa06a38(0x20a)][_0x391016];return _0x1c1534?((_0x5f12f6=this[_0xa06a38(0x235)]()[_0xa06a38(0x264)])==null?void 0x0:_0x5f12f6[_0xa06a38(0x1bd)]['slice'](_0x1c1534['startOffset']+0x1,_0x1c1534[_0xa06a38(0x1c0)])[_0xa06a38(0x216)](/\r\n$/,''))??'':'';}[_0x2a6225(0x221)](_0xff7292,_0x3626ec){const _0x5787a0=_0x2a6225;var _0xb58224;let _0x22af07=this['getSource'](),_0x41642d=_0x22af07==null||(_0xb58224=_0x22af07[_0x5787a0(0x23c)][_0xff7292])==null?void 0x0:_0xb58224[_0x5787a0(0x1d8)][_0x3626ec];return _0x41642d?_0x3cc9fb[_0x5787a0(0x252)][_0x5787a0(0x1a9)](_0x41642d[_0x5787a0(0x1b6)]??_0x22af07[_0x5787a0(0x269)]??_0x2de058[_0x5787a0(0x21c)]):null;}[_0x2a6225(0x275)](_0x34040d,_0x26fd6a){const _0x466d65=_0x2a6225;var _0x4c549;let _0x2e0ee2=(_0x4c549=this[_0x466d65(0x22d)]())==null||(_0x4c549=_0x4c549[_0x466d65(0x23c)][_0x34040d])==null?void 0x0:_0x4c549[_0x466d65(0x1d8)][_0x26fd6a];return _0x2e0ee2!=null&&_0x2e0ee2['margin']?_0x3cc9fb[_0x466d65(0x252)][_0x466d65(0x1a9)](_0x2e0ee2[_0x466d65(0x1b6)]):null;}['getDefaultCellMargin'](){const _0x2573df=_0x2a6225;var _0x4136db;return _0x3cc9fb[_0x2573df(0x252)]['deepClone'](((_0x4136db=this[_0x2573df(0x22d)]())==null?void 0x0:_0x4136db['cellMargin'])??_0x2de058[_0x2573df(0x21c)]);}['getDefaultCellMarginOverride'](){const _0x5373b5=_0x2a6225;var _0xdb4284;let _0xdc5748=(_0xdb4284=this[_0x5373b5(0x22d)]())==null?void 0x0:_0xdb4284[_0x5373b5(0x269)];return _0xdc5748?_0x3cc9fb[_0x5373b5(0x252)][_0x5373b5(0x1a9)](_0xdc5748):null;}[_0x2a6225(0x25c)](){const _0x403735=_0x2a6225;let _0x2edf9e=this[_0x403735(0x23d)][_0x403735(0x1e9)](_0x2de058[_0x403735(0x231)]),_0x5e332e=this[_0x403735(0x22d)]();return _0x5e332e?_0x2edf9e['resolveTableMetadata'](this[_0x403735(0x25d)],_0x5e332e):void 0x0;}['getSource'](){const _0xc4fe4e=_0x2a6225;var _0x35b3f2;return(_0x35b3f2=this[_0xc4fe4e(0x235)]()[_0xc4fe4e(0x20f)])==null?void 0x0:_0x35b3f2[this[_0xc4fe4e(0x22c)]];}[_0x2a6225(0x254)](){const _0x5a07ee=_0x2a6225;return(0x0,_0x2de058[_0x5a07ee(0x253)])(this[_0x5a07ee(0x235)](),this[_0x5a07ee(0x22c)]);}[_0x2a6225(0x24b)](){const _0x53331d=_0x2a6225;return{'startRow':0x0,'endRow':Math[_0x53331d(0x1ac)](0x0,this[_0x53331d(0x21d)]()-0x1),'startColumn':0x0,'endColumn':Math[_0x53331d(0x1ac)](0x0,this[_0x53331d(0x236)]()-0x1)};}[_0x2a6225(0x1d1)](_0x194a66,_0x385caa){return{'startRow':_0x194a66,'endRow':_0x194a66,'startColumn':_0x385caa,'endColumn':_0x385caa};}[_0x2a6225(0x256)](_0x1b9a3c,_0x391cf8){const _0x2c31e2=_0x2a6225;var _0x111baf;let _0x167bb0=(_0x111baf=(0x0,_0x2de058[_0x2c31e2(0x253)])(this['_getDocumentData'](),this[_0x2c31e2(0x22c)]))==null||(_0x111baf=_0x111baf['rows'][_0x1b9a3c])==null?void 0x0:_0x111baf['cells'][_0x391cf8];if(!_0x167bb0)return null;let _0x2981ff=_0x167bb0[_0x2c31e2(0x1ee)]+0x1;return{'startOffset':_0x2981ff,'endOffset':Math[_0x2c31e2(0x1ac)](_0x2981ff,_0x167bb0['endOffset']-0x1),'segmentId':this['_segmentId']};}[_0x2a6225(0x208)](_0x162ad2,_0x104f8a){const _0x367ea3=_0x2a6225;let _0xc9ba35=this[_0x367ea3(0x256)](_0x162ad2,_0x104f8a);return _0xc9ba35?Math[_0x367ea3(0x1ac)](_0xc9ba35[_0x367ea3(0x1ee)],_0xc9ba35[_0x367ea3(0x1c0)]-0x1):null;}[_0x2a6225(0x245)](_0x1922fb){const _0x475c5b=_0x2a6225;return this[_0x475c5b(0x1e6)](_0x1922fb,0x1);}[_0x2a6225(0x1e6)](_0x578a36,_0x415057=0x1){const _0x387805=_0x2a6225;return{'startRow':_0x578a36,'endRow':_0x578a36+_0x415057-0x1,'startColumn':0x0,'endColumn':Math[_0x387805(0x1ac)](0x0,this[_0x387805(0x236)]()-0x1)};}[_0x2a6225(0x1c6)](_0x41f6b5){const _0x5b23f9=_0x2a6225;return this[_0x5b23f9(0x1da)](_0x41f6b5,0x1);}['getColumnsRange'](_0x719ed6,_0x3bccf7=0x1){const _0x1b2fa3=_0x2a6225;return{'startRow':0x0,'endRow':Math[_0x1b2fa3(0x1ac)](0x0,this[_0x1b2fa3(0x21d)]()-0x1),'startColumn':_0x719ed6,'endColumn':_0x719ed6+_0x3bccf7-0x1};}[_0x2a6225(0x21e)](){const _0x4405d3=_0x2a6225;return this['selectRange'](this[_0x4405d3(0x24b)](),_0x2de058[_0x4405d3(0x1e2)][_0x4405d3(0x23a)]);}['selectRow'](_0x2713c2){return this['selectRows'](_0x2713c2,0x1);}[_0x2a6225(0x1f7)](_0x163c26,_0x1c422a=0x1){const _0xb5565=_0x2a6225;return this[_0xb5565(0x280)](this[_0xb5565(0x1e6)](_0x163c26,_0x1c422a),_0x2de058[_0xb5565(0x1e2)][_0xb5565(0x257)]);}[_0x2a6225(0x241)](_0x11cc5e){const _0x362f81=_0x2a6225;return this[_0x362f81(0x24e)](_0x11cc5e,0x1);}['selectColumns'](_0x54cb39,_0x5e389d=0x1){const _0xd0af35=_0x2a6225;return this['selectRange'](this['getColumnsRange'](_0x54cb39,_0x5e389d),_0x2de058[_0xd0af35(0x1e2)]['Column']);}[_0x2a6225(0x1fe)](_0x1e5219,_0x3f5385){const _0x2d825a=_0x2a6225;return this[_0x2d825a(0x280)](this[_0x2d825a(0x1d1)](_0x1e5219,_0x3f5385),_0x2de058[_0x2d825a(0x1e2)][_0x2d825a(0x273)]);}[_0x2a6225(0x280)](_0x228b2e,_0x2526b8=_0x2de058[_0x2a6225(0x1e2)][_0x2a6225(0x27f)]){const _0x34cb31=_0x2a6225;return this['_injector'][_0x34cb31(0x1e9)](_0x2de058['DocsTableSelectionService'])[_0x34cb31(0x213)]({..._0x228b2e,'kind':_0x2526b8,'segmentId':this[_0x34cb31(0x263)],'tableId':this[_0x34cb31(0x22c)]}),!0x0;}['insertRowBefore'](_0x36e9f0){return this['insertRowsBefore'](_0x36e9f0,0x1);}[_0x2a6225(0x227)](_0x2c751e){return this['insertRowsAfter'](_0x2c751e,0x1);}[_0x2a6225(0x1c4)](_0x57f993,_0x3779f6){const _0x2267bf=_0x2a6225;let _0x41ed1b=this['_getDocumentData'](),_0x4283df=(0x0,_0x2de058['buildInsertTableRowsMutationActions'])(_0x41ed1b,this[_0x2267bf(0x22c)],_0x57f993,_0x3779f6,_0x2de058[_0x2267bf(0x1b2)][_0x2267bf(0x1b9)],this[_0x2267bf(0x212)]());return _0x4283df?this[_0x2267bf(0x237)](_0x41ed1b,_0x4283df[_0x2267bf(0x1c9)]):!0x1;}['insertRowsAfter'](_0x2ce3f4,_0x30898d){const _0xb4a999=_0x2a6225;let _0xcf6098=this[_0xb4a999(0x235)](),_0xbf719e=(0x0,_0x2de058[_0xb4a999(0x249)])(_0xcf6098,this[_0xb4a999(0x22c)],_0x2ce3f4,_0x30898d,_0x2de058[_0xb4a999(0x1b2)][_0xb4a999(0x217)],this[_0xb4a999(0x212)]());return _0xbf719e?this[_0xb4a999(0x237)](_0xcf6098,_0xbf719e[_0xb4a999(0x1c9)]):!0x1;}[_0x2a6225(0x1bb)](){const _0x143f0d=_0x2a6225;return this[_0x143f0d(0x277)](Math[_0x143f0d(0x1ac)](0x0,this[_0x143f0d(0x21d)]()-0x1),0x1);}[_0x2a6225(0x205)](_0x36f6e2){const _0x47fdc0=_0x2a6225;return this[_0x47fdc0(0x211)](_0x36f6e2,0x1);}[_0x2a6225(0x1cc)](_0x531b6f){const _0x5e750f=_0x2a6225;return this[_0x5e750f(0x271)](_0x531b6f,0x1);}['insertColumnsBefore'](_0xd5769c,_0x3dbfeb){const _0x1c29cf=_0x2a6225;let _0x1f3f9a=this[_0x1c29cf(0x235)](),_0x545792=(0x0,_0x2de058[_0x1c29cf(0x267)])(_0x1f3f9a,this['_tableId'],_0xd5769c,_0x3dbfeb,_0x2de058[_0x1c29cf(0x1b2)][_0x1c29cf(0x1aa)],{'bodyPath':this['_getBodyPath']()});return _0x545792?this[_0x1c29cf(0x237)](_0x1f3f9a,_0x545792[_0x1c29cf(0x1c9)]):!0x1;}[_0x2a6225(0x271)](_0x516345,_0x4a357b){const _0x458092=_0x2a6225;let _0x5509d9=this[_0x458092(0x235)](),_0x4db154=(0x0,_0x2de058['buildInsertTableColumnsMutationActions'])(_0x5509d9,this[_0x458092(0x22c)],_0x516345,_0x4a357b,_0x2de058[_0x458092(0x1b2)][_0x458092(0x1b1)],{'bodyPath':this[_0x458092(0x212)]()});return _0x4db154?this[_0x458092(0x237)](_0x5509d9,_0x4db154[_0x458092(0x1c9)]):!0x1;}[_0x2a6225(0x1de)](){const _0x49a889=_0x2a6225;return this[_0x49a889(0x271)](Math[_0x49a889(0x1ac)](0x0,this[_0x49a889(0x236)]()-0x1),0x1);}[_0x2a6225(0x262)](_0x47dd85){const _0xd595a2=_0x2a6225;return this[_0xd595a2(0x25e)](_0x47dd85,0x1);}[_0x2a6225(0x25e)](_0x2698ce,_0x4e77ce=0x1){const _0xcd06ee=_0x2a6225;return!!this[_0xcd06ee(0x1d4)][_0xcd06ee(0x219)](_0x2de058['DocsTableDeleteRowsCommand']['id'],{'endRow':_0x2698ce+_0x4e77ce-0x1,'segmentId':this['_segmentId'],'startRow':_0x2698ce,'tableId':this['_tableId'],'unitId':this['_unitId']});}[_0x2a6225(0x1cf)](_0x2e5397){const _0x32f421=_0x2a6225;return this[_0x32f421(0x24a)](_0x2e5397,0x1);}[_0x2a6225(0x24a)](_0x356805,_0x2f181e=0x1){const _0xa92a3e=_0x2a6225;return!!this[_0xa92a3e(0x1d4)][_0xa92a3e(0x219)](_0x2de058['DocsTableDeleteColumnsCommand']['id'],{'endColumn':_0x356805+_0x2f181e-0x1,'segmentId':this[_0xa92a3e(0x263)],'startColumn':_0x356805,'tableId':this[_0xa92a3e(0x22c)],'unitId':this[_0xa92a3e(0x25d)]});}['deleteTable'](){const _0x3e2d4f=_0x2a6225;return!!this[_0x3e2d4f(0x1d4)][_0x3e2d4f(0x219)](_0x2de058[_0x3e2d4f(0x1be)]['id'],{'segmentId':this[_0x3e2d4f(0x263)],'tableId':this[_0x3e2d4f(0x22c)],'unitId':this[_0x3e2d4f(0x25d)]});}[_0x2a6225(0x229)](_0x227471,_0x4474de){const _0x19f219=_0x2a6225;let _0x4c9fd8=this[_0x19f219(0x235)]();return this[_0x19f219(0x237)](_0x4c9fd8,(0x0,_0x2de058[_0x19f219(0x1fc)])(_0x4c9fd8,this[_0x19f219(0x22c)],_0x227471,_0x4474de));}[_0x2a6225(0x226)](_0x47454d){const _0x4f2618=_0x2a6225;let _0x3babe2=this[_0x4f2618(0x235)]();return this[_0x4f2618(0x237)](_0x3babe2,(0x0,_0x2de058[_0x4f2618(0x1cb)])(_0x3babe2,this[_0x4f2618(0x22c)],_0x47454d,this[_0x4f2618(0x212)]()));}[_0x2a6225(0x1ca)](_0x45eea0,_0x5f1be6,_0x370de6=_0x2de058[_0x2a6225(0x1b2)][_0x2a6225(0x1b9)]){const _0x314bcb=_0x2a6225;return this[_0x314bcb(0x1b7)](_0x45eea0,0x1,_0x5f1be6,_0x370de6);}[_0x2a6225(0x1b7)](_0x31ee2b,_0x4054aa,_0x3d6cda,_0x295c87=_0x2de058[_0x2a6225(0x1b2)][_0x2a6225(0x1b9)]){const _0x234a1b=_0x2a6225;let _0x4b615d=this[_0x234a1b(0x235)](),_0x49168d=(0x0,_0x2de058[_0x234a1b(0x27d)])(_0x4b615d,this[_0x234a1b(0x22c)],_0x31ee2b,_0x3d6cda,_0x4054aa,_0x295c87,this['_getBodyPath']());return _0x49168d?this['_mutateActions'](_0x4b615d,_0x49168d[_0x234a1b(0x1c9)]):!0x1;}[_0x2a6225(0x1f0)](_0x233ee5,_0x4a2ea4,_0x196d08=_0x2de058[_0x2a6225(0x1b2)][_0x2a6225(0x1aa)]){const _0x28c5e9=_0x2a6225;return this[_0x28c5e9(0x261)](_0x233ee5,0x1,_0x4a2ea4,_0x196d08);}[_0x2a6225(0x261)](_0x39ad0f,_0x18a995,_0x372db9,_0x47d6d1=_0x2de058[_0x2a6225(0x1b2)]['Left']){const _0x4ffe93=_0x2a6225;let _0x506f25=this[_0x4ffe93(0x235)](),_0xa614b7=(0x0,_0x2de058[_0x4ffe93(0x25f)])(_0x506f25,this[_0x4ffe93(0x22c)],_0x39ad0f,_0x372db9,_0x18a995,_0x47d6d1,this[_0x4ffe93(0x212)]());return _0xa614b7?this[_0x4ffe93(0x237)](_0x506f25,_0xa614b7[_0x4ffe93(0x1c9)]):!0x1;}[_0x2a6225(0x22e)](_0x48eb37){const _0x2c9ea0=_0x2a6225;try{let _0x458077=this[_0x2c9ea0(0x235)](),_0x4fb463=(0x0,_0x2de058[_0x2c9ea0(0x1e5)])({'documentData':_0x458077,'tableId':this['_tableId'],..._0x48eb37});return _0x4fb463?this[_0x2c9ea0(0x237)](_0x458077,_0x4fb463[_0x2c9ea0(0x1c9)],_0x48eb37):!0x1;}catch{return!0x1;}}[_0x2a6225(0x22b)](_0x364a1e){const _0x3fc2a1=_0x2a6225;try{let _0x14399d=this[_0x3fc2a1(0x235)](),_0x54db82=(0x0,_0x2de058[_0x3fc2a1(0x1e7)])({'documentData':_0x14399d,'tableId':this['_tableId'],..._0x364a1e});return _0x54db82?this['_mutateActions'](_0x14399d,_0x54db82[_0x3fc2a1(0x1c9)],_0x364a1e):!0x1;}catch{return!0x1;}}[_0x2a6225(0x268)](_0x221971,_0x1dfb3a,_0x512d6b){const _0x33cc0d=_0x2a6225;let _0x402faf=this[_0x33cc0d(0x235)](),_0x5ec32b=(0x0,_0x2de058['getTableActionBodyPath'])(this['_document'][_0x33cc0d(0x26a)]()[_0x33cc0d(0x1e8)](),this[_0x33cc0d(0x263)]);return this[_0x33cc0d(0x237)](_0x402faf,(0x0,_0x2de058['buildSetTableCellTextMutationActions'])({'documentData':_0x402faf,'tableId':this['_tableId'],'row':_0x221971,'column':_0x1dfb3a,'text':_0x512d6b},_0x5ec32b),this[_0x33cc0d(0x1d1)](_0x221971,_0x1dfb3a));}['setCellBackground'](_0x6d3250,_0x58e737){const _0x379ca3=_0x2a6225;let _0xb0b68=this[_0x379ca3(0x235)]();return this[_0x379ca3(0x237)](_0xb0b68,(0x0,_0x2de058[_0x379ca3(0x225)])(_0xb0b68,{'tableId':this[_0x379ca3(0x22c)],..._0x6d3250,'value':_0x58e737}),_0x6d3250);}[_0x2a6225(0x233)](_0x21b60b,_0x1955f2){const _0xbcaadd=_0x2a6225;let _0x22db32=this[_0xbcaadd(0x235)]();return this['_mutateActions'](_0x22db32,(0x0,_0x2de058[_0xbcaadd(0x238)])({'documentData':_0x22db32,'tableId':this['_tableId'],..._0x21b60b,'margin':_0x1955f2}),_0x21b60b);}[_0x2a6225(0x259)](_0x3bb1fe){const _0xeb8e94=_0x2a6225;let _0x38888a=this[_0xeb8e94(0x235)]();return this[_0xeb8e94(0x237)](_0x38888a,(0x0,_0x2de058[_0xeb8e94(0x1f4)])(_0x38888a,this['_tableId'],_0x3bb1fe));}['setBorder'](_0x1cbb81,_0x5474d1){const _0x3fea54=_0x2a6225;let _0x547b54=this[_0x3fea54(0x235)]();return this[_0x3fea54(0x237)](_0x547b54,this['_buildBorderActions'](_0x547b54,_0x1cbb81,_0x5474d1),_0x1cbb81);}[_0x2a6225(0x26e)](_0x1ca577){const _0x12c6ba=_0x2a6225;return this[_0x12c6ba(0x220)](this[_0x12c6ba(0x24b)](),_0x1ca577);}[_0x2a6225(0x1c2)](_0x2e1091){const _0xefb8d0=_0x2a6225;return this[_0xefb8d0(0x26c)](this[_0xefb8d0(0x24b)](),_0x2e1091);}[_0x2a6225(0x22f)](_0x28f3a2){const _0x5746ff=_0x2a6225;let _0x5eb19b=this[_0x5746ff(0x235)](),_0x279511=this[_0x5746ff(0x24b)](),_0x421a46=_0x28f3a2[_0x5746ff(0x26b)]?(0x0,_0x2de058[_0x5746ff(0x225)])(_0x5eb19b,{'tableId':this[_0x5746ff(0x22c)],..._0x279511,'value':_0x28f3a2[_0x5746ff(0x26b)]}):null,_0x1ab7b6=_0x28f3a2[_0x5746ff(0x27b)]?this[_0x5746ff(0x255)](_0x5eb19b,_0x279511,_0x28f3a2[_0x5746ff(0x27b)]):null;return this['_mutateActions'](_0x5eb19b,_0x3cc9fb['JSONX'][_0x5746ff(0x283)](_0x421a46,_0x1ab7b6),_0x279511);}[_0x2a6225(0x251)](_0x1b78c9,_0x3bfafc,_0x4cbb70=_0x3cc9fb[_0x2a6225(0x1d9)][_0x2a6225(0x20c)]){const _0x2f1949=_0x2a6225;var _0x472930;let _0x323fce=this[_0x2f1949(0x235)]();return(_0x472930=_0x323fce[_0x2f1949(0x20f)])!=null&&(_0x472930=_0x472930[this[_0x2f1949(0x22c)]])!=null&&_0x472930['tableRows'][_0x1b78c9]?this['_mutateActions'](_0x323fce,(0x0,_0x2de058[_0x2f1949(0x215)])(_0x323fce,this[_0x2f1949(0x22c)],_0x1b78c9,_0x3bfafc,_0x4cbb70)):!0x1;}['getRowHeight'](_0x11645c){const _0x4533af=_0x2a6225;var _0x14e0fb;let _0x435d1f=(_0x14e0fb=this[_0x4533af(0x22d)]())==null||(_0x14e0fb=_0x14e0fb[_0x4533af(0x23c)][_0x11645c])==null?void 0x0:_0x14e0fb[_0x4533af(0x1ad)];return _0x435d1f?_0x3cc9fb[_0x4533af(0x252)][_0x4533af(0x1a9)](_0x435d1f):null;}[_0x2a6225(0x1b4)](_0x4c0aba,_0x1ae96a){const _0x298071=_0x2a6225;var _0x34db46;let _0x3c5ae9=this[_0x298071(0x235)]();return(_0x34db46=_0x3c5ae9[_0x298071(0x20f)])!=null&&(_0x34db46=_0x34db46[this[_0x298071(0x22c)]])!=null&&_0x34db46[_0x298071(0x1f6)][_0x4c0aba]?this[_0x298071(0x237)](_0x3c5ae9,(0x0,_0x2de058[_0x298071(0x1f2)])(_0x3c5ae9,this[_0x298071(0x22c)],_0x4c0aba,_0x1ae96a)):!0x1;}[_0x2a6225(0x210)](_0x5dd8cd=0x0,_0x55e617=this['getRowCount']()){const _0x1273c5=_0x2a6225;let _0x22a560=this[_0x1273c5(0x235)]();return this[_0x1273c5(0x237)](_0x22a560,(0x0,_0x2de058[_0x1273c5(0x202)])(_0x22a560,this['_tableId'],_0x5dd8cd,_0x5dd8cd+_0x55e617-0x1));}[_0x2a6225(0x27c)](_0x260631=0x0,_0x26cf87=this[_0x2a6225(0x236)]()){const _0x518b9a=_0x2a6225;let _0x57dd0d=this[_0x518b9a(0x235)]();return this['_mutateActions'](_0x57dd0d,(0x0,_0x2de058[_0x518b9a(0x22a)])(_0x57dd0d,this[_0x518b9a(0x22c)],_0x260631,_0x260631+_0x26cf87-0x1));}['getHeaderRowCount'](){var _0x5aa6b1;return((_0x5aa6b1=this['getMetadata']())==null?void 0x0:_0x5aa6b1['headerRowCount'])??0x0;}[_0x2a6225(0x24c)](_0x58c142){const _0xe089bd=_0x2a6225;let _0x138451=this[_0xe089bd(0x235)](),_0x2005ed=(0x0,_0x2de058[_0xe089bd(0x1fa)])(_0x138451,this[_0xe089bd(0x22c)],_0x58c142);return _0x2005ed?this[_0xe089bd(0x237)](_0x138451,_0x2005ed[_0xe089bd(0x1c9)]):!0x1;}[_0x2a6225(0x1c3)](_0x174051){const _0x3751cd=_0x2a6225;return this[_0x3751cd(0x24c)](_0x174051);}['hasTitleRow'](){const _0x56b7ab=_0x2a6225;var _0xf2cc40;return((_0xf2cc40=this[_0x56b7ab(0x25c)]())==null?void 0x0:_0xf2cc40[_0x56b7ab(0x207)])??!0x1;}[_0x2a6225(0x223)](){const _0x2ec083=_0x2a6225;let _0x45ab19=this[_0x2ec083(0x235)](),_0x14d2dd=(0x0,_0x2de058[_0x2ec083(0x1c1)])(_0x45ab19,this[_0x2ec083(0x22c)],this[_0x2ec083(0x212)]());return _0x14d2dd?this[_0x2ec083(0x237)](_0x45ab19,_0x14d2dd[_0x2ec083(0x1c9)]):!0x1;}['setColumnType'](_0x5381eb,_0xb491f4){const _0x429ceb=_0x2a6225;return!!this[_0x429ceb(0x1d4)]['syncExecuteCommand'](_0x2de058['DocsTableSetColumnTypeCommand']['id'],{'unitId':this[_0x429ceb(0x25d)],'tableId':this[_0x429ceb(0x22c)],'segmentId':this[_0x429ceb(0x263)],'column':_0x5381eb,'config':_0xb491f4});}[_0x2a6225(0x270)](_0x221c50,_0x1aa998){const _0x46929a=_0x2a6225;let _0x173f3c=this[_0x46929a(0x235)]();return this[_0x46929a(0x237)](_0x173f3c,(0x0,_0x2de058[_0x46929a(0x204)])(_0x173f3c,this[_0x46929a(0x244)](),this[_0x46929a(0x22c)],_0x221c50,_0x1aa998,this[_0x46929a(0x212)]()));}[_0x2a6225(0x255)](_0xd8ef75,_0x2a5427,_0x29ba4b){const _0x34cec5=_0x2a6225;return(0x0,_0x2de058['buildSetTableBorderMutationActions'])({'documentData':_0xd8ef75,'tableId':this[_0x34cec5(0x22c)],..._0x2a5427,'preset':_0x29ba4b[_0x34cec5(0x27a)]??_0x2de058[_0x34cec5(0x1f8)][_0x34cec5(0x209)],'border':_0x29ba4b[_0x34cec5(0x27b)]??{'color':{'rgb':_0x29ba4b[_0x34cec5(0x250)]??this[_0x34cec5(0x23d)][_0x34cec5(0x1e9)](_0x3cc9fb[_0x34cec5(0x1af)])[_0x34cec5(0x258)](_0x34cec5(0x21f))},'width':{'v':_0x29ba4b[_0x34cec5(0x1cd)]??0x1},'dashStyle':_0x3cc9fb[_0x34cec5(0x23f)][_0x34cec5(0x266)]}});}[_0x2a6225(0x235)](){const _0x33dd2d=_0x2a6225;let _0x1c7a3e=this[_0x33dd2d(0x1dc)][_0x33dd2d(0x26a)]()[_0x33dd2d(0x1e8)]();return this[_0x33dd2d(0x263)]?{...this[_0x33dd2d(0x1dc)][_0x33dd2d(0x26a)](this['_segmentId'])[_0x33dd2d(0x1e8)](),'documentStyle':_0x1c7a3e['documentStyle'],'tableSource':_0x1c7a3e['tableSource']}:_0x1c7a3e;}[_0x2a6225(0x244)](){const _0x158650=_0x2a6225;return this[_0x158650(0x23d)][_0x158650(0x1e9)](_0x2de058['DocsTableModel'])[_0x158650(0x281)](this[_0x158650(0x25d)],this[_0x158650(0x1dc)][_0x158650(0x26a)]()[_0x158650(0x1e8)]());}[_0x2a6225(0x212)](){const _0x2dc3c0=_0x2a6225;return(0x0,_0x2de058['getTableActionBodyPath'])(this[_0x2dc3c0(0x1dc)][_0x2dc3c0(0x26a)]()[_0x2dc3c0(0x1e8)](),this[_0x2dc3c0(0x263)]);}[_0x2a6225(0x237)](_0x5f3317,_0xa9d1cd,_0x4374c6){const _0x409455=_0x2a6225;return(0x0,_0x2de058['executeRichTextTableActions'])(this[_0x409455(0x1d4)],this[_0x409455(0x25d)],_0x5f3317,_0xa9d1cd,_0x4374c6?{'tableId':this['_tableId'],'segmentId':this['_segmentId'],..._0x4374c6}:void 0x0);}};_0x4e5482=_0x358732([_0x32136e(0x3,_0x3cc9fb[_0x2a6225(0x1ec)]),_0x32136e(0x4,(0x0,_0x3cc9fb[_0x2a6225(0x26f)])(_0x3cc9fb['Injector']))],_0x4e5482);var _0x4e1010=class extends _0x319cfb[_0x2a6225(0x1bc)]{['getTables'](_0xd425cf=''){const _0x7ab3fa=_0x2a6225;return this[_0x7ab3fa(0x1ed)](_0xd425cf)[_0x7ab3fa(0x25a)](_0x23c417=>this[_0x7ab3fa(0x203)](_0x23c417[_0x7ab3fa(0x1d5)],_0xd425cf));}[_0x2a6225(0x222)](_0x1581fd,_0x222d94=''){const _0x5ce6aa=_0x2a6225;return this[_0x5ce6aa(0x1ed)](_0x222d94)[_0x5ce6aa(0x272)](_0x308e18=>_0x308e18[_0x5ce6aa(0x1d5)]===_0x1581fd)?this['_createFDocumentTable'](_0x1581fd,_0x222d94):null;}[_0x2a6225(0x1f5)](_0xcc3411,_0x5898d3=''){const _0x32ea55=_0x2a6225;var _0x4a0e6e;let _0x10f4e6=(_0x4a0e6e=this[_0x32ea55(0x1ed)](_0x5898d3)[_0xcc3411])==null?void 0x0:_0x4a0e6e[_0x32ea55(0x1d5)];return _0x10f4e6?this[_0x32ea55(0x203)](_0x10f4e6,_0x5898d3):null;}[_0x2a6225(0x1ae)](){const _0x581f0a=_0x2a6225;let _0x2a3578=this[_0x581f0a(0x23d)][_0x581f0a(0x1e9)](_0x2de058['DocsTableSelectionService'])['getStableTableSelection']();return _0x2a3578!=null&&_0x2a3578[_0x581f0a(0x1d5)]?this[_0x581f0a(0x203)](_0x2a3578[_0x581f0a(0x1d5)],_0x2a3578['segmentId']):null;}[_0x2a6225(0x1e1)](_0x4c7575,_0x21324b=''){const _0x9f055d=_0x2a6225;return this[_0x9f055d(0x27e)](_0x4c7575,_0x21324b)[0x0]??null;}[_0x2a6225(0x27e)](_0x2a8dc1,_0x44efb8=''){const _0x5838c1=_0x2a6225;let _0x1a162e=this[_0x5838c1(0x1d3)](_0x44efb8),_0x51ab94=typeof _0x2a8dc1==_0x5838c1(0x1c8)?{'text':_0x2a8dc1}:_0x2a8dc1;return this[_0x5838c1(0x1d2)](_0x44efb8)[_0x5838c1(0x20d)](_0x1598dc=>{const _0x15f924=_0x5838c1;let _0x4525bc=_0x1598dc[_0x15f924(0x23e)]();return!(_0x51ab94[_0x15f924(0x1d5)]&&_0x4525bc!==_0x51ab94[_0x15f924(0x1d5)]||_0x51ab94['text']&&!this['_tableContainsText'](_0x1a162e,_0x4525bc,_0x51ab94[_0x15f924(0x1b3)])||_0x51ab94[_0x15f924(0x1f9)]&&!this[_0x15f924(0x234)](_0x1598dc,0x0,_0x51ab94['headerText'])||_0x51ab94[_0x15f924(0x240)]&&!this[_0x15f924(0x234)](_0x1598dc,0x0,_0x51ab94['titleText']));});}[_0x2a6225(0x276)](_0x3ed60a,_0x247065,_0x2fcc89={}){const _0xb799e4=_0x2a6225;let _0xe02509=this[_0xb799e4(0x23d)][_0xb799e4(0x1e9)](_0x3cc9fb[_0xb799e4(0x1ec)]),_0x139ab2=_0x2fcc89[_0xb799e4(0x1d5)]??(0x0,_0x3cc9fb[_0xb799e4(0x1c5)])(0x6);return _0xe02509[_0xb799e4(0x219)](_0x2de058['DocsTableInsertTableCommand']['id'],{..._0x2fcc89,'unitId':this[_0xb799e4(0x23e)](),'rows':_0x3ed60a,'columns':_0x247065,'tableId':_0x139ab2})?this['_createFDocumentTable'](_0x139ab2,_0x2fcc89[_0xb799e4(0x218)]??''):null;}['insertTableFromData'](_0x261d20,_0x288553={}){const _0x382252=_0x2a6225;let _0x12b4f3=this[_0x382252(0x23d)]['get'](_0x3cc9fb[_0x382252(0x1ec)]),_0x2e54a4=_0x288553[_0x382252(0x1d5)]??(0x0,_0x3cc9fb[_0x382252(0x1c5)])(0x6);return _0x12b4f3[_0x382252(0x219)](_0x2de058[_0x382252(0x206)]['id'],{..._0x288553,'unitId':this['getId'](),'values':_0x261d20,'tableId':_0x2e54a4})?this[_0x382252(0x203)](_0x2e54a4,_0x288553[_0x382252(0x218)]??''):null;}['_getTables'](_0x2c4acd=''){let {tables:_0x58f0e0=[]}=this['getBody'](_0x2c4acd);return _0x58f0e0;}[_0x2a6225(0x1d3)](_0x4d5179=''){const _0x2f696b=_0x2a6225;let _0x132cca=this['getDocumentDataModel']()[_0x2f696b(0x1e8)]();return _0x4d5179?{...this[_0x2f696b(0x26a)](_0x4d5179)[_0x2f696b(0x1e8)](),'documentStyle':_0x132cca[_0x2f696b(0x1d7)],'tableSource':_0x132cca[_0x2f696b(0x20f)]}:_0x132cca;}['_createFDocumentTable'](_0x4241ba,_0x33bece=''){const _0x2f0dfc=_0x2a6225;return this[_0x2f0dfc(0x23d)][_0x2f0dfc(0x1fd)](_0x4e5482,this,_0x4241ba,_0x33bece);}[_0x2a6225(0x24d)](_0x5be3cc,_0x44d994,_0x3770b1){const _0xe0d1b8=_0x2a6225;var _0x112ab8;let _0x224ad8=(0x0,_0x2de058['getTableRangeById'])(_0x5be3cc,_0x44d994);if(!_0x224ad8)return!0x1;let _0x25f3a1=(_0x112ab8=_0x5be3cc[_0xe0d1b8(0x264)])==null?void 0x0:_0x112ab8[_0xe0d1b8(0x1bd)];return _0x25f3a1?_0x25f3a1[_0xe0d1b8(0x224)](_0x224ad8[_0xe0d1b8(0x1ee)],_0x224ad8[_0xe0d1b8(0x1c0)])[_0xe0d1b8(0x200)](_0x3770b1):!0x1;}[_0x2a6225(0x234)](_0x50f1d8,_0x424337,_0x33884c){const _0x5911db=_0x2a6225;return Array[_0x5911db(0x1ba)]({'length':_0x50f1d8[_0x5911db(0x236)]()},(_0x4a2abd,_0xcbc42e)=>_0x50f1d8['getCellText'](_0x424337,_0xcbc42e))[_0x5911db(0x272)](_0x59d53a=>_0x59d53a[_0x5911db(0x200)](_0x33884c));}};_0x319cfb[_0x2a6225(0x1bc)]['extend'](_0x4e1010),Object[_0x2a6225(0x23b)](_0x5e4f39,_0x2a6225(0x1ea),{'enumerable':!0x0,'get':function(){return _0x4e5482;}}),_0x5e4f39['FDocumentTableCell']=_0x444506;}));
1
+ function _0x131a(_0x9af8f0,_0x106413){_0x9af8f0=_0x9af8f0-0x197;const _0x2468c3=_0x2468();let _0x131a5c=_0x2468c3[_0x9af8f0];return _0x131a5c;}(function(_0x379c7d,_0x1f7338){const _0x257b90=_0x131a,_0x4a618c=_0x379c7d();while(!![]){try{const _0x43724c=-parseInt(_0x257b90(0x26a))/0x1*(-parseInt(_0x257b90(0x1ff))/0x2)+parseInt(_0x257b90(0x212))/0x3+parseInt(_0x257b90(0x1d1))/0x4*(parseInt(_0x257b90(0x228))/0x5)+-parseInt(_0x257b90(0x1d6))/0x6*(-parseInt(_0x257b90(0x1ba))/0x7)+-parseInt(_0x257b90(0x1bd))/0x8+-parseInt(_0x257b90(0x1e4))/0x9*(parseInt(_0x257b90(0x1ef))/0xa)+-parseInt(_0x257b90(0x1a6))/0xb*(parseInt(_0x257b90(0x1f7))/0xc);if(_0x43724c===_0x1f7338)break;else _0x4a618c['push'](_0x4a618c['shift']());}catch(_0x38fa69){_0x4a618c['push'](_0x4a618c['shift']());}}}(_0x2468,0x891c7),function(_0x2f2500,_0x446f74){const _0x4b48d2=_0x131a;typeof exports=='object'&&typeof module<'u'?_0x446f74(exports,require('@univerjs-pro/docs-table'),require('@univerjs/core'),require('@univerjs/core/facade'),require('@univerjs/docs/facade')):typeof define=='function'&&define[_0x4b48d2(0x19e)]?define([_0x4b48d2(0x23a),'@univerjs-pro/docs-table',_0x4b48d2(0x1a3),'@univerjs/core/facade',_0x4b48d2(0x1fa)],_0x446f74):(_0x2f2500=typeof globalThis<'u'?globalThis:_0x2f2500||self,_0x446f74(_0x2f2500[_0x4b48d2(0x250)]={},_0x2f2500[_0x4b48d2(0x23c)],_0x2f2500[_0x4b48d2(0x1d5)],_0x2f2500[_0x4b48d2(0x1c9)],_0x2f2500[_0x4b48d2(0x25b)]));}(this,function(_0xd7978e,_0x42d762,_0x545a19,_0x47e5ac,_0x2f7ccb){const _0x42456f=_0x131a;Object[_0x42456f(0x234)](_0xd7978e,Symbol[_0x42456f(0x1aa)],{'value':_0x42456f(0x1c6)});var _0xad7c20=class extends _0x47e5ac[_0x42456f(0x232)]{get[_0x42456f(0x1af)](){const _0x443859=_0x42456f;return _0x42d762[_0x443859(0x1af)];}get['DocsTableColumnType'](){const _0x5d5f64=_0x42456f;return _0x42d762[_0x5d5f64(0x1db)];}get[_0x42456f(0x1e7)](){const _0x4a80fb=_0x42456f;return _0x42d762[_0x4a80fb(0x1e7)];}get[_0x42456f(0x1f4)](){return _0x42d762['DocsTableRowInsertPosition'];}get[_0x42456f(0x254)](){const _0xe1ac6=_0x42456f;return _0x42d762[_0xe1ac6(0x254)];}get[_0x42456f(0x262)](){const _0x3e94ee=_0x42456f;return _0x42d762[_0x3e94ee(0x262)];}get[_0x42456f(0x20f)](){return _0x42d762['DocsTableSortDirection'];}get[_0x42456f(0x1dc)](){return _0x545a19['DashStyleType'];}};_0x47e5ac[_0x42456f(0x232)][_0x42456f(0x22a)](_0xad7c20);var _0x170945=class{constructor(_0xd0f95b,_0x55bb65,_0x3b81cc){const _0x3e895d=_0x42456f;this[_0x3e895d(0x1f2)]=_0xd0f95b,this[_0x3e895d(0x1cb)]=_0x55bb65,this[_0x3e895d(0x1d3)]=_0x3b81cc;}['getTable'](){const _0x1786cf=_0x42456f;return this[_0x1786cf(0x1f2)];}[_0x42456f(0x201)](){const _0x3785d2=_0x42456f;return this[_0x3785d2(0x1cb)];}[_0x42456f(0x24f)](){const _0x3afb7b=_0x42456f;return this[_0x3afb7b(0x1d3)];}['getText'](){const _0x2fd934=_0x42456f;return this[_0x2fd934(0x1f2)][_0x2fd934(0x1f5)](this[_0x2fd934(0x1cb)],this[_0x2fd934(0x1d3)]);}[_0x42456f(0x1f0)](){const _0x2d207b=_0x42456f;return this[_0x2d207b(0x1f2)][_0x2d207b(0x25c)](this[_0x2d207b(0x1cb)],this['_column']);}[_0x42456f(0x1e1)](){const _0x4dd4a7=_0x42456f;return this[_0x4dd4a7(0x1f2)]['getCellInsertOffset'](this[_0x4dd4a7(0x1cb)],this[_0x4dd4a7(0x1d3)]);}['getMargin'](){const _0x393cc3=_0x42456f;return this['_table'][_0x393cc3(0x23d)](this['_row'],this[_0x393cc3(0x1d3)]);}['getMarginOverride'](){const _0x254d74=_0x42456f;return this[_0x254d74(0x1f2)]['getCellMarginOverride'](this[_0x254d74(0x1cb)],this[_0x254d74(0x1d3)]);}[_0x42456f(0x20c)](_0x2a0272){const _0x3ea95e=_0x42456f;return this['_table']['setCellMargin'](this[_0x3ea95e(0x1f2)][_0x3ea95e(0x20d)](this[_0x3ea95e(0x1cb)],this[_0x3ea95e(0x1d3)]),_0x2a0272);}[_0x42456f(0x22f)](){const _0x295a86=_0x42456f;return this[_0x295a86(0x1f2)][_0x295a86(0x251)](this[_0x295a86(0x1f2)][_0x295a86(0x20d)](this[_0x295a86(0x1cb)],this['_column']),null);}[_0x42456f(0x257)](_0x4e01c7){const _0x55033c=_0x42456f;return this[_0x55033c(0x1f2)][_0x55033c(0x1be)](this[_0x55033c(0x1cb)],this[_0x55033c(0x1d3)],_0x4e01c7);}[_0x42456f(0x1cf)](_0xceca69){const _0x1b13a2=_0x42456f;return this[_0x1b13a2(0x1f2)][_0x1b13a2(0x203)](this[_0x1b13a2(0x1f2)][_0x1b13a2(0x20d)](this['_row'],this['_column']),_0xceca69);}[_0x42456f(0x21d)](_0x35b51f){const _0x5c190d=_0x42456f;return this[_0x5c190d(0x1f2)][_0x5c190d(0x21d)](this[_0x5c190d(0x1f2)][_0x5c190d(0x20d)](this[_0x5c190d(0x1cb)],this[_0x5c190d(0x1d3)]),_0x35b51f);}[_0x42456f(0x1d2)](_0x8a4afe,_0x212aa9){const _0x5330cd=_0x42456f;return this[_0x5330cd(0x1f2)][_0x5330cd(0x216)]({'startRow':this[_0x5330cd(0x1cb)],'startColumn':this['_column'],'endRow':this[_0x5330cd(0x1cb)]+_0x8a4afe-0x1,'endColumn':this[_0x5330cd(0x1d3)]+_0x212aa9-0x1});}['unmerge'](){const _0x37e75c=_0x42456f;return this['_table'][_0x37e75c(0x1c1)](this[_0x37e75c(0x1f2)][_0x37e75c(0x20d)](this[_0x37e75c(0x1cb)],this[_0x37e75c(0x1d3)]));}};function _0xe4d71f(_0x2635e0){'@babel/helpers - typeof';const _0x4fa501=_0x42456f;return _0xe4d71f=typeof Symbol==_0x4fa501(0x245)&&typeof Symbol[_0x4fa501(0x1c8)]==_0x4fa501(0x1a5)?function(_0x3a01ad){return typeof _0x3a01ad;}:function(_0x193e10){const _0x56e6bd=_0x4fa501;return _0x193e10&&typeof Symbol==_0x56e6bd(0x245)&&_0x193e10['constructor']===Symbol&&_0x193e10!==Symbol['prototype']?_0x56e6bd(0x1a5):typeof _0x193e10;},_0xe4d71f(_0x2635e0);}function _0x272a87(_0x2d1133,_0xdd6977){const _0x4a3371=_0x42456f;if(_0xe4d71f(_0x2d1133)!='object'||!_0x2d1133)return _0x2d1133;var _0x119d4b;if(typeof Symbol<'u'&&(_0x119d4b=_0x2d1133[Symbol[_0x4a3371(0x22b)]])!==void 0x0){var _0x1f27a7=_0x119d4b[_0x4a3371(0x20e)](_0x2d1133,_0xdd6977||_0x4a3371(0x1f8));if(_0xe4d71f(_0x1f27a7)!=_0x4a3371(0x1fd))return _0x1f27a7;throw TypeError(_0x4a3371(0x1ab));}return(_0xdd6977===_0x4a3371(0x220)?String:Number)(_0x2d1133);}function _0x54a5d8(_0x30a269){const _0x4bbd2f=_0x42456f;var _0x2379db=_0x272a87(_0x30a269,'string');return _0xe4d71f(_0x2379db)==_0x4bbd2f(0x1a5)?_0x2379db:_0x2379db+'';}function _0x14c3cc(_0xee7f6e,_0x25a8a4,_0x230313){const _0x1b0f9c=_0x42456f;return(_0x25a8a4=_0x54a5d8(_0x25a8a4))in _0xee7f6e?Object[_0x1b0f9c(0x234)](_0xee7f6e,_0x25a8a4,{'value':_0x230313,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xee7f6e[_0x25a8a4]=_0x230313,_0xee7f6e;}function _0x593271(_0x543d72,_0x32dda7){return function(_0x1b85e5,_0x45e187){_0x32dda7(_0x1b85e5,_0x45e187,_0x543d72);};}function _0x1f8f59(_0x3e2373,_0x1a30d1,_0x244434,_0x3d91b8){const _0x411da6=_0x42456f;var _0x3b055a=arguments[_0x411da6(0x207)],_0x3462d1=_0x3b055a<0x3?_0x1a30d1:_0x3d91b8===null?_0x3d91b8=Object[_0x411da6(0x247)](_0x1a30d1,_0x244434):_0x3d91b8,_0x490127;if(typeof Reflect=='object'&&typeof Reflect[_0x411da6(0x1ea)]=='function')_0x3462d1=Reflect[_0x411da6(0x1ea)](_0x3e2373,_0x1a30d1,_0x244434,_0x3d91b8);else{for(var _0x4bb67a=_0x3e2373[_0x411da6(0x207)]-0x1;_0x4bb67a>=0x0;_0x4bb67a--)(_0x490127=_0x3e2373[_0x4bb67a])&&(_0x3462d1=(_0x3b055a<0x3?_0x490127(_0x3462d1):_0x3b055a>0x3?_0x490127(_0x1a30d1,_0x244434,_0x3462d1):_0x490127(_0x1a30d1,_0x244434))||_0x3462d1);}return _0x3b055a>0x3&&_0x3462d1&&Object[_0x411da6(0x234)](_0x1a30d1,_0x244434,_0x3462d1),_0x3462d1;}let _0x261495=class{constructor(_0x4a6a97,_0x36326d,_0x497fba,_0x136cf0,_0x37559b){const _0x526a31=_0x42456f;this[_0x526a31(0x1b7)]=_0x4a6a97,this[_0x526a31(0x258)]=_0x36326d,this[_0x526a31(0x23e)]=_0x497fba,this[_0x526a31(0x235)]=_0x136cf0,this[_0x526a31(0x1c0)]=_0x37559b,_0x14c3cc(this,_0x526a31(0x1fb),void 0x0),this['_unitId']=this[_0x526a31(0x1b7)]['getId']();}[_0x42456f(0x199)](){const _0x2a0202=_0x42456f;return this[_0x2a0202(0x258)];}['getSegmentId'](){return this['_segmentId'];}[_0x42456f(0x20b)](){const _0xf695d9=_0x42456f;return{'id':this[_0xf695d9(0x258)],'rowCount':this[_0xf695d9(0x1c2)](),'columnCount':this[_0xf695d9(0x241)](),'metadata':this[_0xf695d9(0x19a)](),'source':this[_0xf695d9(0x24d)]()};}[_0x42456f(0x259)](){const _0x3c6af6=_0x42456f;let _0x16fc27=this['getMetadata'](),_0x536a90=this['getSource'](),_0x9e5fa2=this[_0x3c6af6(0x241)]();return{'id':this['_tableId'],'rowCount':this[_0x3c6af6(0x1c2)](),'columnCount':_0x9e5fa2,'headerRowCount':(_0x16fc27==null?void 0x0:_0x16fc27[_0x3c6af6(0x1d7)])??0x0,'titleRow':(_0x16fc27==null?void 0x0:_0x16fc27['titleRow'])??!0x1,'columns':Array[_0x3c6af6(0x214)]({'length':_0x9e5fa2},(_0x20527c,_0x4a6460)=>{const _0x40107d=_0x3c6af6;var _0x312f31,_0x9e910;return{'index':_0x4a6460,'type':_0x16fc27==null||(_0x312f31=_0x16fc27[_0x40107d(0x1f1)])==null||(_0x312f31=_0x312f31[_0x4a6460])==null?void 0x0:_0x312f31[_0x40107d(0x229)],'width':_0x536a90==null||(_0x9e910=_0x536a90[_0x40107d(0x244)][_0x4a6460])==null?void 0x0:_0x9e910['size'][_0x40107d(0x269)]['v']};}),'sampleRows':Array[_0x3c6af6(0x214)]({'length':this[_0x3c6af6(0x1c2)]()},(_0x16ca46,_0xdbfb19)=>Array[_0x3c6af6(0x214)]({'length':_0x9e5fa2},(_0x44714c,_0x505240)=>this['getCellText'](_0xdbfb19,_0x505240)))[_0x3c6af6(0x264)](_0x3ea7ed=>_0x3ea7ed[_0x3c6af6(0x1ee)](_0x40162f=>_0x40162f[_0x3c6af6(0x207)]>0x0))['slice'](0x0,0x5)};}['getRowCount'](){const _0x53c766=_0x42456f;var _0x307fcc;return((_0x307fcc=this['getSource']())==null?void 0x0:_0x307fcc[_0x53c766(0x239)][_0x53c766(0x207)])??0x0;}['getColumnCount'](){const _0x444df4=_0x42456f;var _0x437126;return((_0x437126=this['getSource']())==null?void 0x0:_0x437126[_0x444df4(0x244)][_0x444df4(0x207)])??0x0;}[_0x42456f(0x267)](_0x4a0fa9,_0x12c5ac){const _0x490cec=_0x42456f;var _0x5cb347;return(_0x5cb347=this['getSource']())!=null&&(_0x5cb347=_0x5cb347[_0x490cec(0x239)][_0x4a0fa9])!=null&&_0x5cb347[_0x490cec(0x202)][_0x12c5ac]?this[_0x490cec(0x1c0)]['createInstance'](_0x170945,this,_0x4a0fa9,_0x12c5ac):null;}['getCellText'](_0x249f3b,_0x25e80b){const _0x513257=_0x42456f;var _0x2b1959,_0x3a4777;let _0x38e2df=(_0x2b1959=(0x0,_0x42d762[_0x513257(0x215)])(this['_getDocumentData'](),this[_0x513257(0x258)]))==null||(_0x2b1959=_0x2b1959['rows'][_0x249f3b])==null?void 0x0:_0x2b1959[_0x513257(0x1dd)][_0x25e80b];return _0x38e2df?((_0x3a4777=this[_0x513257(0x26d)]()[_0x513257(0x21f)])==null?void 0x0:_0x3a4777[_0x513257(0x24a)][_0x513257(0x26f)](_0x38e2df['startOffset']+0x1,_0x38e2df[_0x513257(0x263)])[_0x513257(0x1a2)](/\r\n$/,''))??'':'';}['getCellMargin'](_0x4429f1,_0x259ece){const _0x3fdb9e=_0x42456f;var _0x548876;let _0xf973da=this['getSource'](),_0x57a264=_0xf973da==null||(_0x548876=_0xf973da[_0x3fdb9e(0x239)][_0x4429f1])==null?void 0x0:_0x548876[_0x3fdb9e(0x202)][_0x259ece];return _0x57a264?_0x545a19[_0x3fdb9e(0x230)][_0x3fdb9e(0x1df)](_0x57a264[_0x3fdb9e(0x1a9)]??_0xf973da[_0x3fdb9e(0x22d)]??_0x42d762['DEFAULT_DOCS_TABLE_CELL_MARGIN']):null;}[_0x42456f(0x246)](_0x1f7c74,_0x2c2516){const _0x13bef9=_0x42456f;var _0xb79e54;let _0x4fa6c3=(_0xb79e54=this[_0x13bef9(0x24d)]())==null||(_0xb79e54=_0xb79e54[_0x13bef9(0x239)][_0x1f7c74])==null?void 0x0:_0xb79e54['tableCells'][_0x2c2516];return _0x4fa6c3!=null&&_0x4fa6c3[_0x13bef9(0x1a9)]?_0x545a19[_0x13bef9(0x230)][_0x13bef9(0x1df)](_0x4fa6c3[_0x13bef9(0x1a9)]):null;}['getDefaultCellMargin'](){const _0x366f95=_0x42456f;var _0x3a8c8b;return _0x545a19[_0x366f95(0x230)][_0x366f95(0x1df)](((_0x3a8c8b=this[_0x366f95(0x24d)]())==null?void 0x0:_0x3a8c8b['cellMargin'])??_0x42d762['DEFAULT_DOCS_TABLE_CELL_MARGIN']);}[_0x42456f(0x1b4)](){const _0x5819bb=_0x42456f;var _0x5dc199;let _0xbbc512=(_0x5dc199=this[_0x5819bb(0x24d)]())==null?void 0x0:_0x5dc199[_0x5819bb(0x22d)];return _0xbbc512?_0x545a19[_0x5819bb(0x230)]['deepClone'](_0xbbc512):null;}[_0x42456f(0x19a)](){const _0x6d6eb7=_0x42456f;let _0x58d20b=this['_injector'][_0x6d6eb7(0x237)](_0x42d762[_0x6d6eb7(0x1cd)]),_0x49f4a4=this[_0x6d6eb7(0x24d)]();return _0x49f4a4?_0x58d20b['resolveTableMetadata'](this['_unitId'],_0x49f4a4):void 0x0;}[_0x42456f(0x24d)](){const _0x3e23bc=_0x42456f;var _0x120660;return(_0x120660=this[_0x3e23bc(0x26d)]()[_0x3e23bc(0x205)])==null?void 0x0:_0x120660[this['_tableId']];}[_0x42456f(0x266)](){const _0x5ab8ec=_0x42456f;return(0x0,_0x42d762[_0x5ab8ec(0x215)])(this[_0x5ab8ec(0x26d)](),this[_0x5ab8ec(0x258)]);}[_0x42456f(0x21b)](){const _0x59e9be=_0x42456f;return{'startRow':0x0,'endRow':Math[_0x59e9be(0x25a)](0x0,this['getRowCount']()-0x1),'startColumn':0x0,'endColumn':Math[_0x59e9be(0x25a)](0x0,this[_0x59e9be(0x241)]()-0x1)};}['getCellRange'](_0x5dab4b,_0x4dbf89){return{'startRow':_0x5dab4b,'endRow':_0x5dab4b,'startColumn':_0x4dbf89,'endColumn':_0x4dbf89};}['getCellContentRange'](_0x6c58e3,_0x13ec2e){const _0x189541=_0x42456f;var _0x3259dd;let _0x565f46=(_0x3259dd=(0x0,_0x42d762[_0x189541(0x215)])(this['_getDocumentData'](),this['_tableId']))==null||(_0x3259dd=_0x3259dd[_0x189541(0x206)][_0x6c58e3])==null?void 0x0:_0x3259dd[_0x189541(0x1dd)][_0x13ec2e];if(!_0x565f46)return null;let _0x41b805=_0x565f46[_0x189541(0x1ce)]+0x1;return{'startOffset':_0x41b805,'endOffset':Math[_0x189541(0x25a)](_0x41b805,_0x565f46['endOffset']-0x1),'segmentId':this[_0x189541(0x23e)]};}[_0x42456f(0x1e6)](_0x2a7381,_0xc68322){const _0x5d2e16=_0x42456f;let _0x252d27=this['getCellContentRange'](_0x2a7381,_0xc68322);return _0x252d27?Math['max'](_0x252d27['startOffset'],_0x252d27[_0x5d2e16(0x263)]-0x1):null;}[_0x42456f(0x1de)](_0x5bf385){const _0x50e7d8=_0x42456f;return this[_0x50e7d8(0x208)](_0x5bf385,0x1);}['getRowsRange'](_0x1da491,_0x42ad98=0x1){const _0x261448=_0x42456f;return{'startRow':_0x1da491,'endRow':_0x1da491+_0x42ad98-0x1,'startColumn':0x0,'endColumn':Math['max'](0x0,this[_0x261448(0x241)]()-0x1)};}['getColumnRange'](_0x12a491){const _0x143af8=_0x42456f;return this[_0x143af8(0x1eb)](_0x12a491,0x1);}[_0x42456f(0x1eb)](_0x4d4e3c,_0x201714=0x1){return{'startRow':0x0,'endRow':Math['max'](0x0,this['getRowCount']()-0x1),'startColumn':_0x4d4e3c,'endColumn':_0x4d4e3c+_0x201714-0x1};}[_0x42456f(0x200)](){const _0x287bb8=_0x42456f;return this[_0x287bb8(0x21e)](this[_0x287bb8(0x21b)](),_0x42d762[_0x287bb8(0x1e7)][_0x287bb8(0x1b1)]);}['selectRow'](_0x4426e1){const _0x859a5e=_0x42456f;return this[_0x859a5e(0x256)](_0x4426e1,0x1);}['selectRows'](_0x5d59ca,_0x5ace6b=0x1){const _0x2d1895=_0x42456f;return this[_0x2d1895(0x21e)](this[_0x2d1895(0x208)](_0x5d59ca,_0x5ace6b),_0x42d762[_0x2d1895(0x1e7)][_0x2d1895(0x25f)]);}['selectColumn'](_0x2627fa){return this['selectColumns'](_0x2627fa,0x1);}['selectColumns'](_0x1ab0e1,_0x46638f=0x1){const _0xc12cd5=_0x42456f;return this[_0xc12cd5(0x21e)](this[_0xc12cd5(0x1eb)](_0x1ab0e1,_0x46638f),_0x42d762[_0xc12cd5(0x1e7)]['Column']);}['selectCell'](_0x414db4,_0xf73bd9){const _0x1297d5=_0x42456f;return this['selectRange'](this['getCellRange'](_0x414db4,_0xf73bd9),_0x42d762['DocsTableSelectionKind'][_0x1297d5(0x19c)]);}[_0x42456f(0x21e)](_0x2347ac,_0x55cd0b=_0x42d762['DocsTableSelectionKind'][_0x42456f(0x219)]){const _0x3232df=_0x42456f;return this[_0x3232df(0x1c0)][_0x3232df(0x237)](_0x42d762['DocsTableSelectionService'])['setStructuralSelection']({..._0x2347ac,'kind':_0x55cd0b,'segmentId':this[_0x3232df(0x23e)],'tableId':this[_0x3232df(0x258)]}),!0x0;}[_0x42456f(0x1da)](_0x3c75d6){return this['insertRowsBefore'](_0x3c75d6,0x1);}[_0x42456f(0x1e5)](_0x2e1594){const _0x3fdafc=_0x42456f;return this[_0x3fdafc(0x24c)](_0x2e1594,0x1);}['insertRowsBefore'](_0x25ea1a,_0x559ce4){const _0x40d546=_0x42456f;let _0x5c749f=this[_0x40d546(0x26d)](),_0x24525d=(0x0,_0x42d762[_0x40d546(0x1d8)])(_0x5c749f,this[_0x40d546(0x258)],_0x25ea1a,_0x559ce4,_0x42d762[_0x40d546(0x26b)][_0x40d546(0x209)],this[_0x40d546(0x1b6)]());return _0x24525d?this[_0x40d546(0x1ad)](_0x5c749f,_0x24525d['actions']):!0x1;}['insertRowsAfter'](_0x377f9b,_0x118193){const _0x136a9b=_0x42456f;let _0x997a43=this[_0x136a9b(0x26d)](),_0x4dfb6b=(0x0,_0x42d762[_0x136a9b(0x1d8)])(_0x997a43,this[_0x136a9b(0x258)],_0x377f9b,_0x118193,_0x42d762['DocsTableInsertPosition'][_0x136a9b(0x1b9)],this['_getBodyPath']());return _0x4dfb6b?this[_0x136a9b(0x1ad)](_0x997a43,_0x4dfb6b[_0x136a9b(0x26c)]):!0x1;}['appendRow'](){const _0x130b74=_0x42456f;return this[_0x130b74(0x24c)](Math['max'](0x0,this[_0x130b74(0x1c2)]()-0x1),0x1);}[_0x42456f(0x243)](_0x9054ca){const _0x2518ce=_0x42456f;return this[_0x2518ce(0x19b)](_0x9054ca,0x1);}['insertColumnAfter'](_0x576467){return this['insertColumnsAfter'](_0x576467,0x1);}[_0x42456f(0x19b)](_0x90bbfa,_0x362672){const _0x5e6bd6=_0x42456f;let _0x5283a1=this[_0x5e6bd6(0x26d)](),_0x422cab=(0x0,_0x42d762[_0x5e6bd6(0x221)])(_0x5283a1,this['_tableId'],_0x90bbfa,_0x362672,_0x42d762['DocsTableInsertPosition']['Left'],{'bodyPath':this[_0x5e6bd6(0x1b6)]()});return _0x422cab?this[_0x5e6bd6(0x1ad)](_0x5283a1,_0x422cab[_0x5e6bd6(0x26c)]):!0x1;}['insertColumnsAfter'](_0x2e4dbb,_0x12d3d9){const _0x5b6e5f=_0x42456f;let _0x1313d5=this[_0x5b6e5f(0x26d)](),_0x3dc864=(0x0,_0x42d762['buildInsertTableColumnsMutationActions'])(_0x1313d5,this[_0x5b6e5f(0x258)],_0x2e4dbb,_0x12d3d9,_0x42d762['DocsTableInsertPosition']['Right'],{'bodyPath':this[_0x5b6e5f(0x1b6)]()});return _0x3dc864?this['_mutateActions'](_0x1313d5,_0x3dc864[_0x5b6e5f(0x26c)]):!0x1;}[_0x42456f(0x1d0)](){const _0x7365ab=_0x42456f;return this['insertColumnsAfter'](Math[_0x7365ab(0x25a)](0x0,this[_0x7365ab(0x241)]()-0x1),0x1);}['deleteRow'](_0x383443){const _0x14f025=_0x42456f;return this[_0x14f025(0x261)](_0x383443,0x1);}[_0x42456f(0x261)](_0x2d4e31,_0x1d1b3b=0x1){const _0x498622=_0x42456f;return!!this[_0x498622(0x235)]['syncExecuteCommand'](_0x42d762[_0x498622(0x1b0)]['id'],{'endRow':_0x2d4e31+_0x1d1b3b-0x1,'segmentId':this['_segmentId'],'startRow':_0x2d4e31,'tableId':this[_0x498622(0x258)],'unitId':this[_0x498622(0x1fb)]});}[_0x42456f(0x23b)](_0x171c0c){const _0x427ef2=_0x42456f;return this[_0x427ef2(0x1c7)](_0x171c0c,0x1);}[_0x42456f(0x1c7)](_0x3f056c,_0x59a8ee=0x1){const _0x11a5d8=_0x42456f;return!!this['_commandService']['syncExecuteCommand'](_0x42d762[_0x11a5d8(0x249)]['id'],{'endColumn':_0x3f056c+_0x59a8ee-0x1,'segmentId':this[_0x11a5d8(0x23e)],'startColumn':_0x3f056c,'tableId':this['_tableId'],'unitId':this['_unitId']});}['deleteTable'](){const _0x37bb87=_0x42456f;return!!this['_commandService'][_0x37bb87(0x20a)](_0x42d762[_0x37bb87(0x24e)]['id'],{'segmentId':this[_0x37bb87(0x23e)],'tableId':this[_0x37bb87(0x258)],'unitId':this[_0x37bb87(0x1fb)]});}['moveTableBy'](_0x1cf3a4,_0x3f6025){const _0xd36ade=_0x42456f;let _0x131c40=this['_getDocumentData']();return this[_0xd36ade(0x1ad)](_0x131c40,(0x0,_0x42d762['buildMoveFloatingTableMutationActions'])(_0x131c40,this[_0xd36ade(0x258)],_0x1cf3a4,_0x3f6025));}[_0x42456f(0x226)](_0x2a9e86){const _0x1092b4=_0x42456f;let _0xc95f19=this[_0x1092b4(0x26d)]();return this[_0x1092b4(0x1ad)](_0xc95f19,(0x0,_0x42d762[_0x1092b4(0x1bf)])(_0xc95f19,this['_tableId'],_0x2a9e86,this['_getBodyPath']()));}[_0x42456f(0x1ed)](_0x1fc5c7,_0x14603b,_0x3bfd18=_0x42d762[_0x42456f(0x26b)][_0x42456f(0x209)]){const _0x359e59=_0x42456f;return this[_0x359e59(0x231)](_0x1fc5c7,0x1,_0x14603b,_0x3bfd18);}[_0x42456f(0x231)](_0x44cc30,_0x23acd7,_0x3db672,_0x395991=_0x42d762[_0x42456f(0x26b)]['Above']){const _0x229390=_0x42456f;let _0x5a27eb=this[_0x229390(0x26d)](),_0x4a7198=(0x0,_0x42d762[_0x229390(0x26e)])(_0x5a27eb,this[_0x229390(0x258)],_0x44cc30,_0x3db672,_0x23acd7,_0x395991,this[_0x229390(0x1b6)]());return _0x4a7198?this[_0x229390(0x1ad)](_0x5a27eb,_0x4a7198[_0x229390(0x26c)]):!0x1;}[_0x42456f(0x1f9)](_0x21347a,_0x56f09e,_0x573c84=_0x42d762[_0x42456f(0x26b)][_0x42456f(0x21c)]){const _0xfefb6a=_0x42456f;return this[_0xfefb6a(0x1ac)](_0x21347a,0x1,_0x56f09e,_0x573c84);}[_0x42456f(0x1ac)](_0x370c5c,_0x397b48,_0xe34b5d,_0xbdafae=_0x42d762['DocsTableInsertPosition'][_0x42456f(0x21c)]){const _0x8a4142=_0x42456f;let _0x4c623a=this['_getDocumentData'](),_0x4eff42=(0x0,_0x42d762['buildMoveTableColumnsMutationActions'])(_0x4c623a,this[_0x8a4142(0x258)],_0x370c5c,_0xe34b5d,_0x397b48,_0xbdafae,this['_getBodyPath']());return _0x4eff42?this[_0x8a4142(0x1ad)](_0x4c623a,_0x4eff42[_0x8a4142(0x26c)]):!0x1;}[_0x42456f(0x216)](_0x3a8112){const _0x1017f7=_0x42456f;try{let _0x6c638f=this['_getDocumentData'](),_0x270bfc=(0x0,_0x42d762['buildMergeCellsMutationActions'])({'documentData':_0x6c638f,'tableId':this[_0x1017f7(0x258)],..._0x3a8112});return _0x270bfc?this[_0x1017f7(0x1ad)](_0x6c638f,_0x270bfc[_0x1017f7(0x26c)],_0x3a8112):!0x1;}catch{return!0x1;}}['unmergeCells'](_0x3f6f96){const _0x30dc61=_0x42456f;try{let _0x38295e=this['_getDocumentData'](),_0x31e3dd=(0x0,_0x42d762['buildUnmergeCellsMutationActions'])({'documentData':_0x38295e,'tableId':this[_0x30dc61(0x258)],..._0x3f6f96});return _0x31e3dd?this[_0x30dc61(0x1ad)](_0x38295e,_0x31e3dd[_0x30dc61(0x26c)],_0x3f6f96):!0x1;}catch{return!0x1;}}[_0x42456f(0x1be)](_0x8890d1,_0x4febab,_0x2e2d08){const _0x1bcf60=_0x42456f;let _0x17abaa=this[_0x1bcf60(0x26d)](),_0x3d2b58=(0x0,_0x42d762['getTableActionBodyPath'])(this[_0x1bcf60(0x1b7)][_0x1bcf60(0x252)]()['getSnapshot'](),this[_0x1bcf60(0x23e)]);return this[_0x1bcf60(0x1ad)](_0x17abaa,(0x0,_0x42d762[_0x1bcf60(0x210)])({'documentData':_0x17abaa,'tableId':this['_tableId'],'row':_0x8890d1,'column':_0x4febab,'text':_0x2e2d08},_0x3d2b58),this[_0x1bcf60(0x20d)](_0x8890d1,_0x4febab));}[_0x42456f(0x203)](_0x38296a,_0x34d485){const _0x752f98=_0x42456f;let _0x262ce8=this[_0x752f98(0x26d)]();return this[_0x752f98(0x1ad)](_0x262ce8,(0x0,_0x42d762[_0x752f98(0x223)])(_0x262ce8,{'tableId':this['_tableId'],..._0x38296a,'value':_0x34d485}),_0x38296a);}[_0x42456f(0x251)](_0x357734,_0x424b14){const _0x355fcb=_0x42456f;let _0xfa1dcc=this[_0x355fcb(0x26d)]();return this[_0x355fcb(0x1ad)](_0xfa1dcc,(0x0,_0x42d762['buildSetTableCellMarginMutationActions'])({'documentData':_0xfa1dcc,'tableId':this[_0x355fcb(0x258)],..._0x357734,'margin':_0x424b14}),_0x357734);}['setDefaultCellMargin'](_0x38d77d){const _0x20d286=_0x42456f;let _0x758bf=this[_0x20d286(0x26d)]();return this['_mutateActions'](_0x758bf,(0x0,_0x42d762['buildSetTableDefaultCellMarginMutationActions'])(_0x758bf,this[_0x20d286(0x258)],_0x38d77d));}[_0x42456f(0x21d)](_0x5b6bce,_0x3d1199){const _0x2840dc=_0x42456f;let _0x57e7f6=this[_0x2840dc(0x26d)]();return this[_0x2840dc(0x1ad)](_0x57e7f6,this[_0x2840dc(0x253)](_0x57e7f6,_0x5b6bce,_0x3d1199),_0x5b6bce);}['setTableBackground'](_0x40d387){const _0x2a22a8=_0x42456f;return this[_0x2a22a8(0x203)](this[_0x2a22a8(0x21b)](),_0x40d387);}[_0x42456f(0x22e)](_0x5e22e3){const _0x2b014e=_0x42456f;return this[_0x2b014e(0x21d)](this['getTableRange'](),_0x5e22e3);}[_0x42456f(0x1a4)](_0x4ff8a0){const _0x48443a=_0x42456f;let _0xb9ebe4=this[_0x48443a(0x26d)](),_0x54aba6=this[_0x48443a(0x21b)](),_0x50ccf7=_0x4ff8a0[_0x48443a(0x1e9)]?(0x0,_0x42d762[_0x48443a(0x223)])(_0xb9ebe4,{'tableId':this[_0x48443a(0x258)],..._0x54aba6,'value':_0x4ff8a0['backgroundColor']}):null,_0x48b9a5=_0x4ff8a0[_0x48443a(0x217)]?this[_0x48443a(0x253)](_0xb9ebe4,_0x54aba6,_0x4ff8a0['border']):null;return this['_mutateActions'](_0xb9ebe4,_0x545a19[_0x48443a(0x240)][_0x48443a(0x1a7)](_0x50ccf7,_0x48b9a5),_0x54aba6);}[_0x42456f(0x260)](_0x3fd24e,_0x5e9994,_0x3ddac8=_0x545a19[_0x42456f(0x255)][_0x42456f(0x1c3)]){const _0x3f44ad=_0x42456f;var _0x28ed4e;let _0x429cc4=this['_getDocumentData']();return(_0x28ed4e=_0x429cc4[_0x3f44ad(0x205)])!=null&&(_0x28ed4e=_0x28ed4e[this[_0x3f44ad(0x258)]])!=null&&_0x28ed4e[_0x3f44ad(0x239)][_0x3fd24e]?this[_0x3f44ad(0x1ad)](_0x429cc4,(0x0,_0x42d762[_0x3f44ad(0x1ca)])(_0x429cc4,this[_0x3f44ad(0x258)],_0x3fd24e,_0x5e9994,_0x3ddac8)):!0x1;}[_0x42456f(0x1ae)](_0x4224ae){const _0x3cfa41=_0x42456f;var _0x10f2d5;let _0x433ed6=(_0x10f2d5=this['getSource']())==null||(_0x10f2d5=_0x10f2d5[_0x3cfa41(0x239)][_0x4224ae])==null?void 0x0:_0x10f2d5['trHeight'];return _0x433ed6?_0x545a19[_0x3cfa41(0x230)][_0x3cfa41(0x1df)](_0x433ed6):null;}[_0x42456f(0x1e2)](_0x285554,_0x1639d3){const _0x161d8b=_0x42456f;var _0xc3acfa;let _0x43c037=this[_0x161d8b(0x26d)]();return(_0xc3acfa=_0x43c037['tableSource'])!=null&&(_0xc3acfa=_0xc3acfa[this[_0x161d8b(0x258)]])!=null&&_0xc3acfa[_0x161d8b(0x244)][_0x285554]?this[_0x161d8b(0x1ad)](_0x43c037,(0x0,_0x42d762['buildResizeTableColumnActionsFromWidth'])(_0x43c037,this['_tableId'],_0x285554,_0x1639d3)):!0x1;}[_0x42456f(0x1b5)](_0x334fb5=0x0,_0x3887b3=this[_0x42456f(0x1c2)]()){const _0x35ec75=_0x42456f;let _0x558e2d=this[_0x35ec75(0x26d)]();return this['_mutateActions'](_0x558e2d,(0x0,_0x42d762[_0x35ec75(0x218)])(_0x558e2d,this[_0x35ec75(0x258)],_0x334fb5,_0x334fb5+_0x3887b3-0x1));}[_0x42456f(0x1d4)](_0x1e528c=0x0,_0xbd21c6=this['getColumnCount']()){const _0x1e430b=_0x42456f;let _0x3e1aac=this['_getDocumentData']();return this[_0x1e430b(0x1ad)](_0x3e1aac,(0x0,_0x42d762['buildDistributeTableColumnsMutationActions'])(_0x3e1aac,this['_tableId'],_0x1e528c,_0x1e528c+_0xbd21c6-0x1));}[_0x42456f(0x1bc)](){const _0x3ae7d1=_0x42456f;var _0x30d8c8;return((_0x30d8c8=this[_0x3ae7d1(0x19a)]())==null?void 0x0:_0x30d8c8[_0x3ae7d1(0x1d7)])??0x0;}[_0x42456f(0x211)](_0x491c8c){const _0x487c53=_0x42456f;let _0x3fb422=this['_getDocumentData'](),_0x30101a=(0x0,_0x42d762[_0x487c53(0x238)])(_0x3fb422,this[_0x487c53(0x258)],_0x491c8c);return _0x30101a?this[_0x487c53(0x1ad)](_0x3fb422,_0x30101a[_0x487c53(0x26c)]):!0x1;}['pinHeaderRows'](_0x5f4971){const _0x3c96c9=_0x42456f;return this[_0x3c96c9(0x211)](_0x5f4971);}[_0x42456f(0x233)](){const _0x2d86d2=_0x42456f;var _0x46f8ff;return((_0x46f8ff=this[_0x2d86d2(0x19a)]())==null?void 0x0:_0x46f8ff[_0x2d86d2(0x213)])??!0x1;}['insertTitleRow'](){const _0x3a8665=_0x42456f;let _0x135012=this[_0x3a8665(0x26d)](),_0xbc863e=(0x0,_0x42d762[_0x3a8665(0x1f3)])(_0x135012,this[_0x3a8665(0x258)],this['_getBodyPath']());return _0xbc863e?this[_0x3a8665(0x1ad)](_0x135012,_0xbc863e['actions']):!0x1;}['setColumnType'](_0x3c117f,_0x33f273){const _0x3ad3b6=_0x42456f;return!!this[_0x3ad3b6(0x235)]['syncExecuteCommand'](_0x42d762[_0x3ad3b6(0x236)]['id'],{'unitId':this[_0x3ad3b6(0x1fb)],'tableId':this[_0x3ad3b6(0x258)],'segmentId':this['_segmentId'],'column':_0x3c117f,'config':_0x33f273});}[_0x42456f(0x1b8)](_0x20ebb8,_0x366ecf){const _0x445459=_0x42456f;let _0x25e08b=this['_getDocumentData']();return this[_0x445459(0x1ad)](_0x25e08b,(0x0,_0x42d762[_0x445459(0x1fc)])(_0x25e08b,this[_0x445459(0x198)](),this[_0x445459(0x258)],_0x20ebb8,_0x366ecf,this[_0x445459(0x1b6)]()));}[_0x42456f(0x253)](_0x38b8ee,_0x121993,_0x2baff2){const _0x59e761=_0x42456f;return(0x0,_0x42d762[_0x59e761(0x22c)])({'documentData':_0x38b8ee,'tableId':this[_0x59e761(0x258)],..._0x121993,'preset':_0x2baff2['preset']??_0x42d762[_0x59e761(0x262)]['All'],'border':_0x2baff2[_0x59e761(0x217)]??{'color':{'rgb':_0x2baff2['color']??this['_injector'][_0x59e761(0x237)](_0x545a19[_0x59e761(0x1b3)])[_0x59e761(0x1a8)](_0x59e761(0x1b2))},'width':{'v':_0x2baff2[_0x59e761(0x269)]??0x1},'dashStyle':_0x545a19[_0x59e761(0x1dc)][_0x59e761(0x242)]}});}[_0x42456f(0x26d)](){const _0x1e2210=_0x42456f;let _0x5560eb=this[_0x1e2210(0x1b7)][_0x1e2210(0x252)]()[_0x1e2210(0x25d)]();return this['_segmentId']?{...this['_document'][_0x1e2210(0x252)](this['_segmentId'])[_0x1e2210(0x25d)](),'documentStyle':_0x5560eb[_0x1e2210(0x21a)],'tableSource':_0x5560eb[_0x1e2210(0x205)]}:_0x5560eb;}['_serializeModel'](){const _0x223e7a=_0x42456f;return this['_injector'][_0x223e7a(0x237)](_0x42d762[_0x223e7a(0x1cd)])['serializeDocument'](this[_0x223e7a(0x1fb)],this[_0x223e7a(0x1b7)]['getDocumentDataModel']()['getSnapshot']());}[_0x42456f(0x1b6)](){const _0x3915a3=_0x42456f;return(0x0,_0x42d762['getTableActionBodyPath'])(this['_document']['getDocumentDataModel']()[_0x3915a3(0x25d)](),this[_0x3915a3(0x23e)]);}[_0x42456f(0x1ad)](_0x5345e6,_0x5e4f78,_0x28b256){const _0x20e24e=_0x42456f;return(0x0,_0x42d762[_0x20e24e(0x1cc)])(this[_0x20e24e(0x235)],this[_0x20e24e(0x1fb)],_0x5345e6,_0x5e4f78,_0x28b256?{'tableId':this[_0x20e24e(0x258)],'segmentId':this[_0x20e24e(0x23e)],..._0x28b256}:void 0x0);}};_0x261495=_0x1f8f59([_0x593271(0x3,_0x545a19[_0x42456f(0x222)]),_0x593271(0x4,(0x0,_0x545a19[_0x42456f(0x1fe)])(_0x545a19['Injector']))],_0x261495);var _0x3591f5=class extends _0x2f7ccb[_0x42456f(0x1e8)]{['getTables'](_0x90490d=''){const _0x3061e2=_0x42456f;return this[_0x3061e2(0x1d9)](_0x90490d)[_0x3061e2(0x268)](_0x110d5c=>this[_0x3061e2(0x197)](_0x110d5c['tableId'],_0x90490d));}[_0x42456f(0x1c5)](_0x32573a,_0x33ab54=''){const _0x4351be=_0x42456f;return this['_getTables'](_0x33ab54)['some'](_0x1b1f65=>_0x1b1f65[_0x4351be(0x1ec)]===_0x32573a)?this[_0x4351be(0x197)](_0x32573a,_0x33ab54):null;}[_0x42456f(0x1a1)](_0x518fc9,_0xb03bda=''){const _0x5b645f=_0x42456f;var _0x4aa1a4;let _0x372f00=(_0x4aa1a4=this['_getTables'](_0xb03bda)[_0x518fc9])==null?void 0x0:_0x4aa1a4[_0x5b645f(0x1ec)];return _0x372f00?this[_0x5b645f(0x197)](_0x372f00,_0xb03bda):null;}[_0x42456f(0x1e0)](){const _0x3aee45=_0x42456f;let _0x46827b=this['_injector']['get'](_0x42d762['DocsTableSelectionService'])[_0x3aee45(0x1bb)]();return _0x46827b!=null&&_0x46827b[_0x3aee45(0x1ec)]?this['_createFDocumentTable'](_0x46827b[_0x3aee45(0x1ec)],_0x46827b['segmentId']):null;}['findTableByText'](_0x11076e,_0x179ed9=''){const _0x485771=_0x42456f;return this[_0x485771(0x224)](_0x11076e,_0x179ed9)[0x0]??null;}[_0x42456f(0x224)](_0x27aef6,_0x579a5e=''){const _0x1e42f3=_0x42456f;let _0x5c5bc7=this[_0x1e42f3(0x1f6)](_0x579a5e),_0x353b82=typeof _0x27aef6==_0x1e42f3(0x220)?{'text':_0x27aef6}:_0x27aef6;return this[_0x1e42f3(0x248)](_0x579a5e)['filter'](_0x3c46ef=>{const _0x417d7d=_0x1e42f3;let _0x193125=_0x3c46ef[_0x417d7d(0x199)]();return!(_0x353b82[_0x417d7d(0x1ec)]&&_0x193125!==_0x353b82[_0x417d7d(0x1ec)]||_0x353b82[_0x417d7d(0x1a0)]&&!this['_tableContainsText'](_0x5c5bc7,_0x193125,_0x353b82[_0x417d7d(0x1a0)])||_0x353b82[_0x417d7d(0x19f)]&&!this['_rowContainsText'](_0x3c46ef,0x0,_0x353b82['headerText'])||_0x353b82[_0x417d7d(0x204)]&&!this[_0x417d7d(0x1c4)](_0x3c46ef,0x0,_0x353b82[_0x417d7d(0x204)]));});}['insertTable'](_0x513223,_0x4e7a02,_0x339c80={}){const _0x37b653=_0x42456f;let _0x2a23d5=this[_0x37b653(0x1c0)][_0x37b653(0x237)](_0x545a19[_0x37b653(0x222)]),_0x18dc77=_0x339c80[_0x37b653(0x1ec)]??(0x0,_0x545a19[_0x37b653(0x225)])(0x6);return _0x2a23d5[_0x37b653(0x20a)](_0x42d762[_0x37b653(0x24b)]['id'],{..._0x339c80,'unitId':this[_0x37b653(0x199)](),'rows':_0x513223,'columns':_0x4e7a02,'tableId':_0x18dc77})?this[_0x37b653(0x197)](_0x18dc77,_0x339c80[_0x37b653(0x227)]??''):null;}[_0x42456f(0x19d)](_0x43f1ae,_0x384c67={}){const _0x324764=_0x42456f;let _0xdaa002=this[_0x324764(0x1c0)][_0x324764(0x237)](_0x545a19['ICommandService']),_0x8b0a18=_0x384c67[_0x324764(0x1ec)]??(0x0,_0x545a19[_0x324764(0x225)])(0x6);return _0xdaa002['syncExecuteCommand'](_0x42d762[_0x324764(0x24b)]['id'],{..._0x384c67,'unitId':this[_0x324764(0x199)](),'values':_0x43f1ae,'tableId':_0x8b0a18})?this[_0x324764(0x197)](_0x8b0a18,_0x384c67[_0x324764(0x227)]??''):null;}['_getTables'](_0x1b91ba=''){const _0xabd1f0=_0x42456f;let {tables:_0x46dd03=[]}=this[_0xabd1f0(0x23f)](_0x1b91ba);return _0x46dd03;}[_0x42456f(0x1f6)](_0x2df689=''){const _0xd66d0d=_0x42456f;let _0x24706f=this[_0xd66d0d(0x252)]()[_0xd66d0d(0x25d)]();return _0x2df689?{...this['getDocumentDataModel'](_0x2df689)[_0xd66d0d(0x25d)](),'documentStyle':_0x24706f[_0xd66d0d(0x21a)],'tableSource':_0x24706f['tableSource']}:_0x24706f;}[_0x42456f(0x197)](_0x3b1716,_0x3ec33e=''){const _0x107f32=_0x42456f;return this[_0x107f32(0x1c0)]['createInstance'](_0x261495,this,_0x3b1716,_0x3ec33e);}[_0x42456f(0x25e)](_0x3170b1,_0x418e7d,_0x2c2e89){const _0x2f193d=_0x42456f;var _0x4bf2d7;let _0x3bd47a=(0x0,_0x42d762['getTableRangeById'])(_0x3170b1,_0x418e7d);if(!_0x3bd47a)return!0x1;let _0x1c1dd7=(_0x4bf2d7=_0x3170b1['body'])==null?void 0x0:_0x4bf2d7[_0x2f193d(0x24a)];return _0x1c1dd7?_0x1c1dd7[_0x2f193d(0x26f)](_0x3bd47a[_0x2f193d(0x1ce)],_0x3bd47a[_0x2f193d(0x263)])[_0x2f193d(0x1e3)](_0x2c2e89):!0x1;}['_rowContainsText'](_0x6fbbc3,_0x1f0f3e,_0xc4973d){const _0x29ab94=_0x42456f;return Array['from']({'length':_0x6fbbc3['getColumnCount']()},(_0x6d579d,_0x5889e9)=>_0x6fbbc3[_0x29ab94(0x1f5)](_0x1f0f3e,_0x5889e9))[_0x29ab94(0x1ee)](_0x369fd5=>_0x369fd5[_0x29ab94(0x1e3)](_0xc4973d));}};_0x2f7ccb[_0x42456f(0x1e8)]['extend'](_0x3591f5),Object[_0x42456f(0x234)](_0xd7978e,_0x42456f(0x265),{'enumerable':!0x0,'get':function(){return _0x261495;}}),_0xd7978e['FDocumentTableCell']=_0x170945;}));function _0x2468(){const _0x514234=['buildSortTableMutationActions','object','Inject','395854TQbVKx','selectTable','getRowIndex','tableCells','setCellBackground','titleText','tableSource','rows','length','getRowsRange','Above','syncExecuteCommand','getInfo','setMargin','getCellRange','call','DocsTableSortDirection','buildSetTableCellTextMutationActions','setHeaderRowCount','732297qJSCWp','titleRow','from','getTableRangeById','mergeCells','border','buildDistributeTableRowsMutationActions','Range','documentStyle','getTableRange','Left','setBorder','selectRange','body','string','buildInsertTableColumnsMutationActions','ICommandService','buildSetTableBackgroundMutationActions','findTables','generateRandomId','moveTableToOffset','segmentId','1000fBlNRq','type','extend','toPrimitive','buildSetTableBorderMutationActions','cellMargin','setTableBorder','clearMarginOverride','Tools','moveRows','FEnum','hasTitleRow','defineProperty','_commandService','DocsTableSetColumnTypeCommand','get','buildSetTableHeaderRowCountMutationActions','tableRows','exports','deleteColumn','UniverProDocsTable','getCellMargin','_segmentId','getBody','JSONX','getColumnCount','SOLID','insertColumnBefore','tableColumns','function','getCellMarginOverride','getOwnPropertyDescriptor','getTables','DocsTableDeleteColumnsCommand','dataStream','DocsTableInsertTableCommand','insertRowsAfter','getSource','DocsTableDeleteTableCommand','getColumnIndex','UniverProDocsTableFacade','setCellMargin','getDocumentDataModel','_buildBorderActions','DocsTableColumnInsertPosition','TableRowHeightRule','selectRows','setText','_tableId','describe','max','UniverDocsFacade','getCellContentRange','getSnapshot','_tableContainsText','Row','setRowHeight','deleteRows','DocsTableBorderPreset','endOffset','filter','FDocumentTable','getRange','getCell','map','width','5NSmrwM','DocsTableInsertPosition','actions','_getDocumentData','buildMoveTableRowsMutationActions','slice','_createFDocumentTable','_serializeModel','getId','getMetadata','insertColumnsBefore','Cell','insertTableFromData','amd','headerText','text','getTableAt','replace','@univerjs/core','setTableStyle','symbol','33OphSSp','compose','getColorFromTheme','margin','toStringTag','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','moveColumns','_mutateActions','getRowHeight','DocsTableInsertTablePosition','DocsTableDeleteRowsCommand','Table','gray.900','ThemeService','getDefaultCellMarginOverride','distributeRows','_getBodyPath','_document','sortByColumn','Below','952931tRTMfQ','getStableTableSelection','getHeaderRowCount','6950640YsNpNg','setCellText','buildMoveTableToOffsetMutationActions','_injector','unmergeCells','getRowCount','AT_LEAST','_rowContainsText','getTable','Module','deleteColumns','iterator','UniverCoreFacade','buildResizeTableRowActionsFromHeight','_row','executeRichTextTableActions','DocsTableModel','startOffset','setBackgroundColor','appendColumn','7352XjpwKk','mergeTo','_column','distributeColumns','UniverCore','6ZewFqw','headerRowCount','buildInsertTableRowsMutationActions','_getTables','insertRowBefore','DocsTableColumnType','DashStyleType','cells','getRowRange','deepClone','getTableAtSelection','getInsertOffset','setColumnWidth','includes','711WERdeC','insertRowAfter','getCellInsertOffset','DocsTableSelectionKind','FDocument','backgroundColor','decorate','getColumnsRange','tableId','moveRow','some','10BQOrlL','getContentRange','columnTypes','_table','buildInsertTableTitleRowMutationActions','DocsTableRowInsertPosition','getCellText','_getTableDocumentData','1227804UEFmqJ','default','moveColumn','@univerjs/docs/facade','_unitId'];_0x2468=function(){return _0x514234;};return _0x2468();}