@univerjs-pro/docs-table 1.0.4 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/commands/apply-table-actions.command.d.ts +3 -0
- package/lib/types/commands/resize-column.command.d.ts +2 -0
- package/lib/types/commands/set-column-type.command.d.ts +1 -0
- package/lib/types/commands/utils.d.ts +1 -1
- package/lib/types/common/cell-text.d.ts +1 -0
- package/lib/types/common/metadata.d.ts +18 -1
- package/lib/types/controllers/docs-table-resource.controller.d.ts +3 -2
- package/lib/types/facade/f-document-table.d.ts +1 -0
- package/lib/types/models/docs-table-model.d.ts +3 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +7 -7
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2964ad=_0x59e3;(function(_0x176b83,_0x37693b){const _0x1c5233=_0x59e3,_0x590dd9=_0x176b83();while(!![]){try{const _0x28e0ae=-parseInt(_0x1c5233(0x22b))/0x1+parseInt(_0x1c5233(0x1dd))/0x2+parseInt(_0x1c5233(0x1cb))/0x3*(-parseInt(_0x1c5233(0x1e7))/0x4)+-parseInt(_0x1c5233(0x1d7))/0x5*(parseInt(_0x1c5233(0x1e5))/0x6)+parseInt(_0x1c5233(0x20f))/0x7+parseInt(_0x1c5233(0x1bb))/0x8*(-parseInt(_0x1c5233(0x212))/0x9)+-parseInt(_0x1c5233(0x1cf))/0xa*(-parseInt(_0x1c5233(0x1e0))/0xb);if(_0x28e0ae===_0x37693b)break;else _0x590dd9['push'](_0x590dd9['shift']());}catch(_0x333685){_0x590dd9['push'](_0x590dd9['shift']());}}}(_0x38c5,0x22b4e));import{DEFAULT_DOCS_TABLE_CELL_MARGIN as _0x5a8874,DocsTableBorderPreset as _0x59e935,DocsTableColumnInsertPosition as _0x589bd3,DocsTableColumnType as _0x356fdd,DocsTableDeleteColumnsCommand as _0x364737,DocsTableDeleteRowsCommand as _0x528c3f,DocsTableDeleteTableCommand as _0x4f2b2b,DocsTableInsertPosition as _0x572225,DocsTableInsertTableCommand as _0x2c9106,DocsTableInsertTablePosition as _0x41922a,DocsTableModel as _0x13f143,DocsTableRowInsertPosition as _0x24424d,DocsTableSelectionKind as _0x36be01,DocsTableSelectionService as _0x8deb5f,DocsTableSortDirection as _0x4c957f,buildDistributeTableColumnsMutationActions as _0x3e5889,buildDistributeTableRowsMutationActions as _0x4a19f1,buildInsertTableColumnsMutationActions as _0x5e7d26,buildInsertTableRowsMutationActions as _0x24ef5c,buildInsertTableTitleRowMutationActions as _0x194e49,buildMergeCellsMutationActions as _0x184782,buildMoveFloatingTableMutationActions as _0x58e916,buildMoveTableColumnsMutationActions as _0x1e58f2,buildMoveTableRowsMutationActions as _0x38a0a8,buildMoveTableToOffsetMutationActions as _0x2455da,buildResizeTableColumnActionsFromWidth as _0x2eb7ad,buildResizeTableRowActionsFromHeight as _0x4ac450,buildSetTableBackgroundMutationActions as _0x165ebe,buildSetTableBorderMutationActions as _0x4b2d2c,buildSetTableCellMarginMutationActions as _0x13ede9,buildSetTableCellTextMutationActions as _0x40e296,buildSetTableDefaultCellMarginMutationActions as _0x2a48b4,buildSetTableHeaderRowCountMutationActions as _0x5a2374,buildSortTableMutationActions as _0x1279e9,buildUnmergeCellsMutationActions as _0x273e0e,executeRichTextTableActions as _0x24e9b6,getTableActionBodyPath as _0x5782ef,getTableRangeById as _0x2d82ba}from'@univerjs-pro/docs-table';import{DashStyleType as _0x4bca8c,ICommandService as _0x15d908,Inject as _0x279e1d,Injector as _0x2b9a50,TableRowHeightRule as _0x2c1e70,Tools as _0x29e6a5,generateRandomId as _0x14e7c5}from'@univerjs/core';import{FEnum as _0x5b889d}from'@univerjs/core/facade';import{FDocument as _0x22f2c3}from'@univerjs/docs/facade';var K=class extends _0x5b889d{get[_0x2964ad(0x244)](){return _0x41922a;}get['DocsTableColumnType'](){return _0x356fdd;}get['DocsTableSelectionKind'](){return _0x36be01;}get['DocsTableRowInsertPosition'](){return _0x24424d;}get[_0x2964ad(0x1ba)](){return _0x589bd3;}get[_0x2964ad(0x204)](){return _0x59e935;}get[_0x2964ad(0x1d5)](){return _0x4c957f;}get[_0x2964ad(0x1ab)](){return _0x4bca8c;}};function _0x38c5(){const _0x22b617=['getSegmentId','setCellBackground','#1f1f1f','deleteRows','endOffset','some','setCellText','prototype','insertTableFromData','DocsTableColumnInsertPosition','871016hejyHE','_rowContainsText','setText','getDefaultCellMargin','cells','Above','toPrimitive','_tableId','documentStyle','_getTables','setHeaderRowCount','getText','size','insertRowsAfter','headerRowCount','getInsertOffset','40791gGJkaR','getTableMetadata','constructor','_createFDocumentTable','4406590CSgDhA','type','getBody','deleteColumns','findTables','setStructuralSelection','DocsTableSortDirection','slice','600tIwfvM','_mutateActions','extend','findTableByText','tableSource','moveRow','249806BBBajZ','appendColumn','deepClone','11ZeYuSM','iterator','margin','max','createInstance','11598lhGIfi','_getTableDocumentData','20vEVbts','SOLID','setTableStyle','tableId','_segmentId','_column','insertColumnsAfter','titleRow','default','cellMargin','mergeCells','getTableAtSelection','replace','setBorder','width','tableRows','insertRowBefore','call','setRowHeight','backgroundColor','symbol','deleteColumn','syncExecuteCommand','getCellMarginOverride','moveRows','getInfo','headerText','AT_LEAST','getCellMargin','DocsTableBorderPreset','getColumnsRange','trHeight','Below','getId','titleText','getColumnRange','selectRange','includes','segmentId','getMarginOverride','1926078rESXWh','getColumnCount','border','18hgNuIh','insertRowsBefore','_serializeModel','preset','_table','distributeRows','Right','function','getTableRange','setColumnType','sortByColumn','setCellMargin','getTables','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getCellText','tableColumns','selectColumns','getRange','getCellContentRange','_injector','getDefaultCellMarginOverride','_getDocumentData','_tableContainsText','selectRow','setTitleRow','180859HGJDhF','Left','_unitId','insertColumnsBefore','getRowCount','selectTable','_getBodyPath','string','length','getHeaderRowCount','getSnapshot','getTable','getColumnIndex','mergeTo','getMetadata','tableCells','getCellInsertOffset','Range','_document','hasTitleRow','getDocumentDataModel','body','insertColumnBefore','clearMarginOverride','moveTableBy','DocsTableInsertTablePosition','setDefaultCellMargin','_commandService','moveColumns','startOffset','decorate','object','map','selectCell','from','getSource','getRowsRange','insertColumnAfter','_row','defineProperty','unmerge','setColumnWidth','get','insertTitleRow','getOwnPropertyDescriptor','actions','getCellRange','unmergeCells','Row','DashStyleType','setTableBorder','dataStream','setTableBackground','Column','filter'];_0x38c5=function(){return _0x22b617;};return _0x38c5();}_0x5b889d[_0x2964ad(0x1d9)](K);function _0x59e3(_0x5eec72,_0x2e0063){_0x5eec72=_0x5eec72-0x1a0;const _0x38c56c=_0x38c5();let _0x59e371=_0x38c56c[_0x5eec72];return _0x59e371;}var q=class{constructor(_0x35fdda,_0x18318b,_0x578c9d){const _0x1ad8a3=_0x2964ad;this[_0x1ad8a3(0x216)]=_0x35fdda,this[_0x1ad8a3(0x1a0)]=_0x18318b,this[_0x1ad8a3(0x1ec)]=_0x578c9d;}[_0x2964ad(0x236)](){const _0x1b88ad=_0x2964ad;return this[_0x1b88ad(0x216)];}['getRowIndex'](){const _0x25b4e1=_0x2964ad;return this[_0x25b4e1(0x1a0)];}[_0x2964ad(0x237)](){return this['_column'];}[_0x2964ad(0x1c6)](){const _0x6e60b7=_0x2964ad;return this[_0x6e60b7(0x216)]['getCellText'](this['_row'],this[_0x6e60b7(0x1ec)]);}['getContentRange'](){const _0xa2c663=_0x2964ad;return this['_table'][_0xa2c663(0x224)](this[_0xa2c663(0x1a0)],this[_0xa2c663(0x1ec)]);}[_0x2964ad(0x1ca)](){const _0x3ce600=_0x2964ad;return this[_0x3ce600(0x216)][_0x3ce600(0x23b)](this[_0x3ce600(0x1a0)],this[_0x3ce600(0x1ec)]);}['getMargin'](){const _0x117668=_0x2964ad;return this['_table'][_0x117668(0x203)](this[_0x117668(0x1a0)],this[_0x117668(0x1ec)]);}[_0x2964ad(0x20e)](){const _0x23606c=_0x2964ad;return this[_0x23606c(0x216)][_0x23606c(0x1fe)](this[_0x23606c(0x1a0)],this[_0x23606c(0x1ec)]);}['setMargin'](_0x77916c){const _0x4e4104=_0x2964ad;return this[_0x4e4104(0x216)]['setCellMargin'](this[_0x4e4104(0x216)]['getCellRange'](this[_0x4e4104(0x1a0)],this[_0x4e4104(0x1ec)]),_0x77916c);}[_0x2964ad(0x242)](){const _0x4d42fb=_0x2964ad;return this[_0x4d42fb(0x216)]['setCellMargin'](this[_0x4d42fb(0x216)][_0x4d42fb(0x1a8)](this[_0x4d42fb(0x1a0)],this[_0x4d42fb(0x1ec)]),null);}[_0x2964ad(0x1bd)](_0x50212b){const _0x49a62a=_0x2964ad;return this[_0x49a62a(0x216)]['setCellText'](this[_0x49a62a(0x1a0)],this['_column'],_0x50212b);}['setBackgroundColor'](_0x2e2626){const _0x49d2b5=_0x2964ad;return this[_0x49d2b5(0x216)]['setCellBackground'](this[_0x49d2b5(0x216)][_0x49d2b5(0x1a8)](this[_0x49d2b5(0x1a0)],this['_column']),_0x2e2626);}[_0x2964ad(0x1f4)](_0x1a3495){const _0x1428e0=_0x2964ad;return this['_table'][_0x1428e0(0x1f4)](this[_0x1428e0(0x216)][_0x1428e0(0x1a8)](this[_0x1428e0(0x1a0)],this[_0x1428e0(0x1ec)]),_0x1a3495);}[_0x2964ad(0x238)](_0x574a6c,_0x40564e){const _0x496236=_0x2964ad;return this[_0x496236(0x216)]['mergeCells']({'startRow':this['_row'],'startColumn':this[_0x496236(0x1ec)],'endRow':this['_row']+_0x574a6c-0x1,'endColumn':this[_0x496236(0x1ec)]+_0x40564e-0x1});}[_0x2964ad(0x1a2)](){const _0x298db8=_0x2964ad;return this[_0x298db8(0x216)][_0x298db8(0x1a9)](this[_0x298db8(0x216)]['getCellRange'](this[_0x298db8(0x1a0)],this['_column']));}};function J(_0x58c481){'@babel/helpers - typeof';const _0x46b0b1=_0x2964ad;return J=typeof Symbol==_0x46b0b1(0x219)&&typeof Symbol[_0x46b0b1(0x1e1)]==_0x46b0b1(0x1fb)?function(_0x3c3d45){return typeof _0x3c3d45;}:function(_0x368bd4){const _0xf77b37=_0x46b0b1;return _0x368bd4&&typeof Symbol==_0xf77b37(0x219)&&_0x368bd4[_0xf77b37(0x1cd)]===Symbol&&_0x368bd4!==Symbol[_0xf77b37(0x1b8)]?_0xf77b37(0x1fb):typeof _0x368bd4;},J(_0x58c481);}function Y(_0x5730bb,_0x4dd081){const _0x30c887=_0x2964ad;if(J(_0x5730bb)!='object'||!_0x5730bb)return _0x5730bb;var _0xd95322=_0x5730bb[Symbol[_0x30c887(0x1c1)]];if(_0xd95322!==void 0x0){var _0x2429b3=_0xd95322[_0x30c887(0x1f8)](_0x5730bb,_0x4dd081||_0x30c887(0x1ef));if(J(_0x2429b3)!=_0x30c887(0x24a))return _0x2429b3;throw TypeError(_0x30c887(0x21f));}return(_0x4dd081===_0x30c887(0x232)?String:Number)(_0x5730bb);}function X(_0x11b245){var _0x5a9858=Y(_0x11b245,'string');return J(_0x5a9858)=='symbol'?_0x5a9858:_0x5a9858+'';}function Z(_0x48e74c,_0xb31134,_0x11d073){const _0x5f3468=_0x2964ad;return(_0xb31134=X(_0xb31134))in _0x48e74c?Object[_0x5f3468(0x1a1)](_0x48e74c,_0xb31134,{'value':_0x11d073,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x48e74c[_0xb31134]=_0x11d073,_0x48e74c;}function Q(_0x9ed685,_0x3a50ec){return function(_0x1f1f29,_0x243cac){_0x3a50ec(_0x1f1f29,_0x243cac,_0x9ed685);};}function te(_0x4114d8,_0x1c81e5,_0x308e09,_0x3c1a72){const _0x359570=_0x2964ad;var _0x10b710=arguments['length'],_0x50ebac=_0x10b710<0x3?_0x1c81e5:_0x3c1a72===null?_0x3c1a72=Object[_0x359570(0x1a6)](_0x1c81e5,_0x308e09):_0x3c1a72,_0x1427b3;if(typeof Reflect==_0x359570(0x24a)&&typeof Reflect[_0x359570(0x249)]==_0x359570(0x219))_0x50ebac=Reflect['decorate'](_0x4114d8,_0x1c81e5,_0x308e09,_0x3c1a72);else{for(var _0x3660cf=_0x4114d8[_0x359570(0x233)]-0x1;_0x3660cf>=0x0;_0x3660cf--)(_0x1427b3=_0x4114d8[_0x3660cf])&&(_0x50ebac=(_0x10b710<0x3?_0x1427b3(_0x50ebac):_0x10b710>0x3?_0x1427b3(_0x1c81e5,_0x308e09,_0x50ebac):_0x1427b3(_0x1c81e5,_0x308e09))||_0x50ebac);}return _0x10b710>0x3&&_0x50ebac&&Object[_0x359570(0x1a1)](_0x1c81e5,_0x308e09,_0x50ebac),_0x50ebac;}let $=class{constructor(_0xab2f75,_0x5e7028,_0xd0725c,_0x23c259,_0x5a9e29){const _0x63dee9=_0x2964ad;this[_0x63dee9(0x23d)]=_0xab2f75,this[_0x63dee9(0x1c2)]=_0x5e7028,this['_segmentId']=_0xd0725c,this['_commandService']=_0x23c259,this['_injector']=_0x5a9e29,Z(this,_0x63dee9(0x22d),void 0x0),this[_0x63dee9(0x22d)]=this['_document']['getId']();}[_0x2964ad(0x208)](){return this['_tableId'];}[_0x2964ad(0x1b1)](){return this['_segmentId'];}[_0x2964ad(0x200)](){const _0x2dbed7=_0x2964ad;return{'id':this[_0x2dbed7(0x1c2)],'rowCount':this[_0x2dbed7(0x22f)](),'columnCount':this[_0x2dbed7(0x210)](),'metadata':this[_0x2dbed7(0x239)](),'source':this[_0x2dbed7(0x24e)]()};}['describe'](){const _0x5d92a8=_0x2964ad;let _0x1e0fba=this[_0x5d92a8(0x239)](),_0xc76b6c=this[_0x5d92a8(0x24e)](),_0x39d76f=this[_0x5d92a8(0x210)]();return{'id':this[_0x5d92a8(0x1c2)],'rowCount':this[_0x5d92a8(0x22f)](),'columnCount':_0x39d76f,'headerRowCount':(_0x1e0fba==null?void 0x0:_0x1e0fba['headerRowCount'])??0x0,'titleRow':(_0x1e0fba==null?void 0x0:_0x1e0fba[_0x5d92a8(0x1ee)])??!0x1,'columns':Array[_0x5d92a8(0x24d)]({'length':_0x39d76f},(_0x2e7a71,_0x367f34)=>{const _0x48df6f=_0x5d92a8;var _0x38ede5,_0x24c5a0;return{'index':_0x367f34,'type':_0x1e0fba==null||(_0x38ede5=_0x1e0fba['columnTypes'])==null||(_0x38ede5=_0x38ede5[_0x367f34])==null?void 0x0:_0x38ede5[_0x48df6f(0x1d0)],'width':_0xc76b6c==null||(_0x24c5a0=_0xc76b6c['tableColumns'][_0x367f34])==null?void 0x0:_0x24c5a0[_0x48df6f(0x1c7)]['width']['v']};}),'sampleRows':Array[_0x5d92a8(0x24d)]({'length':this[_0x5d92a8(0x22f)]()},(_0x2de48c,_0x497e64)=>Array['from']({'length':_0x39d76f},(_0x334103,_0x4fe63a)=>this[_0x5d92a8(0x220)](_0x497e64,_0x4fe63a)))[_0x5d92a8(0x1b0)](_0x5617f6=>_0x5617f6[_0x5d92a8(0x1b6)](_0x4b1a2b=>_0x4b1a2b[_0x5d92a8(0x233)]>0x0))[_0x5d92a8(0x1d6)](0x0,0x5)};}['getRowCount'](){const _0x4a46b7=_0x2964ad;var _0x230648;return((_0x230648=this[_0x4a46b7(0x24e)]())==null?void 0x0:_0x230648[_0x4a46b7(0x1f6)][_0x4a46b7(0x233)])??0x0;}[_0x2964ad(0x210)](){const _0x20e859=_0x2964ad;var _0x176667;return((_0x176667=this[_0x20e859(0x24e)]())==null?void 0x0:_0x176667[_0x20e859(0x221)][_0x20e859(0x233)])??0x0;}['getCell'](_0x1be988,_0x59ff28){const _0x160d20=_0x2964ad;var _0x1682d6;return(_0x1682d6=this[_0x160d20(0x24e)]())!=null&&(_0x1682d6=_0x1682d6['tableRows'][_0x1be988])!=null&&_0x1682d6[_0x160d20(0x23a)][_0x59ff28]?this['_injector']['createInstance'](q,this,_0x1be988,_0x59ff28):null;}[_0x2964ad(0x220)](_0x2a7e95,_0x141c2c){const _0x1e6450=_0x2964ad;var _0x231710,_0x462fae;let _0x26bbac=(_0x231710=_0x2d82ba(this[_0x1e6450(0x227)](),this[_0x1e6450(0x1c2)]))==null||(_0x231710=_0x231710['rows'][_0x2a7e95])==null?void 0x0:_0x231710[_0x1e6450(0x1bf)][_0x141c2c];return _0x26bbac?((_0x462fae=this[_0x1e6450(0x227)]()[_0x1e6450(0x240)])==null?void 0x0:_0x462fae[_0x1e6450(0x1ad)][_0x1e6450(0x1d6)](_0x26bbac[_0x1e6450(0x248)]+0x1,_0x26bbac['endOffset'])[_0x1e6450(0x1f3)](/\r\n$/,''))??'':'';}['getCellMargin'](_0x11f360,_0x105134){const _0x1d96b4=_0x2964ad;var _0x34298a;let _0x31f7c8=this[_0x1d96b4(0x24e)](),_0x198959=_0x31f7c8==null||(_0x34298a=_0x31f7c8['tableRows'][_0x11f360])==null?void 0x0:_0x34298a[_0x1d96b4(0x23a)][_0x105134];return _0x198959?_0x29e6a5[_0x1d96b4(0x1df)](_0x198959['margin']??_0x31f7c8[_0x1d96b4(0x1f0)]??_0x5a8874):null;}[_0x2964ad(0x1fe)](_0x19efcc,_0x533b5f){const _0xb0fad=_0x2964ad;var _0x49e1ab;let _0x56a5a5=(_0x49e1ab=this[_0xb0fad(0x24e)]())==null||(_0x49e1ab=_0x49e1ab[_0xb0fad(0x1f6)][_0x19efcc])==null?void 0x0:_0x49e1ab[_0xb0fad(0x23a)][_0x533b5f];return _0x56a5a5!=null&&_0x56a5a5[_0xb0fad(0x1e2)]?_0x29e6a5[_0xb0fad(0x1df)](_0x56a5a5[_0xb0fad(0x1e2)]):null;}[_0x2964ad(0x1be)](){const _0x213766=_0x2964ad;var _0x997973;return _0x29e6a5[_0x213766(0x1df)](((_0x997973=this[_0x213766(0x24e)]())==null?void 0x0:_0x997973[_0x213766(0x1f0)])??_0x5a8874);}[_0x2964ad(0x226)](){const _0x48f381=_0x2964ad;var _0x13b3d6;let _0x31a3d7=(_0x13b3d6=this[_0x48f381(0x24e)]())==null?void 0x0:_0x13b3d6[_0x48f381(0x1f0)];return _0x31a3d7?_0x29e6a5[_0x48f381(0x1df)](_0x31a3d7):null;}[_0x2964ad(0x239)](){const _0xcafafd=_0x2964ad;return this[_0xcafafd(0x225)][_0xcafafd(0x1a4)](_0x13f143)[_0xcafafd(0x1cc)](this[_0xcafafd(0x22d)],this['_tableId']);}[_0x2964ad(0x24e)](){const _0x4c81e6=_0x2964ad;var _0x10b981;return(_0x10b981=this[_0x4c81e6(0x227)]()[_0x4c81e6(0x1db)])==null?void 0x0:_0x10b981[this[_0x4c81e6(0x1c2)]];}[_0x2964ad(0x223)](){const _0x3cd70d=_0x2964ad;return _0x2d82ba(this['_getDocumentData'](),this[_0x3cd70d(0x1c2)]);}['getTableRange'](){const _0x11d687=_0x2964ad;return{'startRow':0x0,'endRow':Math[_0x11d687(0x1e3)](0x0,this[_0x11d687(0x22f)]()-0x1),'startColumn':0x0,'endColumn':Math['max'](0x0,this['getColumnCount']()-0x1)};}['getCellRange'](_0x24c30e,_0x4a611f){return{'startRow':_0x24c30e,'endRow':_0x24c30e,'startColumn':_0x4a611f,'endColumn':_0x4a611f};}[_0x2964ad(0x224)](_0x2ad23c,_0x173274){const _0x463046=_0x2964ad;var _0x47101e;let _0x3d9426=(_0x47101e=_0x2d82ba(this[_0x463046(0x227)](),this[_0x463046(0x1c2)]))==null||(_0x47101e=_0x47101e['rows'][_0x2ad23c])==null?void 0x0:_0x47101e[_0x463046(0x1bf)][_0x173274];if(!_0x3d9426)return null;let _0x36be05=_0x3d9426[_0x463046(0x248)]+0x1;return{'startOffset':_0x36be05,'endOffset':Math['max'](_0x36be05,_0x3d9426[_0x463046(0x1b5)]-0x1),'segmentId':this['_segmentId']};}['getCellInsertOffset'](_0x51930f,_0x5cfcfd){const _0x2c166a=_0x2964ad;let _0x142b8e=this[_0x2c166a(0x224)](_0x51930f,_0x5cfcfd);return _0x142b8e?Math[_0x2c166a(0x1e3)](_0x142b8e[_0x2c166a(0x248)],_0x142b8e[_0x2c166a(0x1b5)]-0x1):null;}['getRowRange'](_0x194334){const _0x2e949e=_0x2964ad;return this[_0x2e949e(0x24f)](_0x194334,0x1);}[_0x2964ad(0x24f)](_0x193c5a,_0x3b4473=0x1){const _0x49a817=_0x2964ad;return{'startRow':_0x193c5a,'endRow':_0x193c5a+_0x3b4473-0x1,'startColumn':0x0,'endColumn':Math[_0x49a817(0x1e3)](0x0,this['getColumnCount']()-0x1)};}[_0x2964ad(0x20a)](_0x45f38a){const _0x397287=_0x2964ad;return this[_0x397287(0x205)](_0x45f38a,0x1);}[_0x2964ad(0x205)](_0x248ec7,_0xf18be5=0x1){const _0x548478=_0x2964ad;return{'startRow':0x0,'endRow':Math[_0x548478(0x1e3)](0x0,this[_0x548478(0x22f)]()-0x1),'startColumn':_0x248ec7,'endColumn':_0x248ec7+_0xf18be5-0x1};}[_0x2964ad(0x230)](){return this['selectRange'](this['getTableRange'](),_0x36be01['Table']);}[_0x2964ad(0x229)](_0x24f21d){return this['selectRows'](_0x24f21d,0x1);}['selectRows'](_0x53dd4e,_0x951de0=0x1){const _0x3074c9=_0x2964ad;return this[_0x3074c9(0x20b)](this[_0x3074c9(0x24f)](_0x53dd4e,_0x951de0),_0x36be01[_0x3074c9(0x1aa)]);}['selectColumn'](_0x314494){const _0x532507=_0x2964ad;return this[_0x532507(0x222)](_0x314494,0x1);}[_0x2964ad(0x222)](_0x438ced,_0x1e92e=0x1){const _0x296145=_0x2964ad;return this[_0x296145(0x20b)](this[_0x296145(0x205)](_0x438ced,_0x1e92e),_0x36be01[_0x296145(0x1af)]);}[_0x2964ad(0x24c)](_0xcb66bd,_0x4f400c){const _0x5b544a=_0x2964ad;return this[_0x5b544a(0x20b)](this[_0x5b544a(0x1a8)](_0xcb66bd,_0x4f400c),_0x36be01['Cell']);}[_0x2964ad(0x20b)](_0x1b7494,_0x50df74=_0x36be01[_0x2964ad(0x23c)]){const _0x116edc=_0x2964ad;return this['_injector']['get'](_0x8deb5f)[_0x116edc(0x1d4)]({..._0x1b7494,'kind':_0x50df74,'segmentId':this[_0x116edc(0x1eb)],'tableId':this['_tableId']}),!0x0;}[_0x2964ad(0x1f7)](_0x213ee0){const _0xa6e8f6=_0x2964ad;return this[_0xa6e8f6(0x213)](_0x213ee0,0x1);}['insertRowAfter'](_0x19b9fe){const _0x5a4a44=_0x2964ad;return this[_0x5a4a44(0x1c8)](_0x19b9fe,0x1);}[_0x2964ad(0x213)](_0x3ce68d,_0x4b3792){const _0x1ea12e=_0x2964ad;let _0x5d3491=this['_getDocumentData'](),_0x5b1706=_0x24ef5c(_0x5d3491,this[_0x1ea12e(0x1c2)],_0x3ce68d,_0x4b3792,_0x572225['Above'],this[_0x1ea12e(0x231)]());return _0x5b1706?this[_0x1ea12e(0x1d8)](_0x5d3491,_0x5b1706['actions']):!0x1;}[_0x2964ad(0x1c8)](_0x216b5e,_0x48781b){const _0x28b149=_0x2964ad;let _0x480cf8=this[_0x28b149(0x227)](),_0x3a115c=_0x24ef5c(_0x480cf8,this[_0x28b149(0x1c2)],_0x216b5e,_0x48781b,_0x572225[_0x28b149(0x207)],this[_0x28b149(0x231)]());return _0x3a115c?this[_0x28b149(0x1d8)](_0x480cf8,_0x3a115c['actions']):!0x1;}['appendRow'](){const _0x5d9ab0=_0x2964ad;return this[_0x5d9ab0(0x1c8)](Math[_0x5d9ab0(0x1e3)](0x0,this[_0x5d9ab0(0x22f)]()-0x1),0x1);}[_0x2964ad(0x241)](_0x40a5a4){const _0x5f0f3c=_0x2964ad;return this[_0x5f0f3c(0x22e)](_0x40a5a4,0x1);}[_0x2964ad(0x250)](_0x427dcd){const _0x5917be=_0x2964ad;return this[_0x5917be(0x1ed)](_0x427dcd,0x1);}[_0x2964ad(0x22e)](_0x570991,_0x2d4257){const _0x16fe67=_0x2964ad;let _0x2dbeff=this[_0x16fe67(0x227)](),_0x520904=_0x5e7d26(_0x2dbeff,this[_0x16fe67(0x1c2)],_0x570991,_0x2d4257,_0x572225[_0x16fe67(0x22c)],{'bodyPath':this[_0x16fe67(0x231)]()});return _0x520904?this[_0x16fe67(0x1d8)](_0x2dbeff,_0x520904[_0x16fe67(0x1a7)]):!0x1;}['insertColumnsAfter'](_0x963fde,_0x37d368){const _0x4f648a=_0x2964ad;let _0x1927e3=this[_0x4f648a(0x227)](),_0x4df525=_0x5e7d26(_0x1927e3,this[_0x4f648a(0x1c2)],_0x963fde,_0x37d368,_0x572225[_0x4f648a(0x218)],{'bodyPath':this[_0x4f648a(0x231)]()});return _0x4df525?this['_mutateActions'](_0x1927e3,_0x4df525['actions']):!0x1;}[_0x2964ad(0x1de)](){const _0x36a44b=_0x2964ad;return this['insertColumnsAfter'](Math[_0x36a44b(0x1e3)](0x0,this['getColumnCount']()-0x1),0x1);}['deleteRow'](_0x428780){const _0x467361=_0x2964ad;return this[_0x467361(0x1b4)](_0x428780,0x1);}[_0x2964ad(0x1b4)](_0x4d2dad,_0x455e90=0x1){const _0x5c620e=_0x2964ad;return!!this['_commandService'][_0x5c620e(0x1fd)](_0x528c3f['id'],{'endRow':_0x4d2dad+_0x455e90-0x1,'segmentId':this[_0x5c620e(0x1eb)],'startRow':_0x4d2dad,'tableId':this[_0x5c620e(0x1c2)],'unitId':this[_0x5c620e(0x22d)]});}[_0x2964ad(0x1fc)](_0x3d8e2d){const _0x198a1a=_0x2964ad;return this[_0x198a1a(0x1d2)](_0x3d8e2d,0x1);}[_0x2964ad(0x1d2)](_0x544180,_0x5af466=0x1){const _0x2ce99a=_0x2964ad;return!!this[_0x2ce99a(0x246)][_0x2ce99a(0x1fd)](_0x364737['id'],{'endColumn':_0x544180+_0x5af466-0x1,'segmentId':this['_segmentId'],'startColumn':_0x544180,'tableId':this[_0x2ce99a(0x1c2)],'unitId':this[_0x2ce99a(0x22d)]});}['deleteTable'](){const _0x54962e=_0x2964ad;return!!this['_commandService'][_0x54962e(0x1fd)](_0x4f2b2b['id'],{'segmentId':this[_0x54962e(0x1eb)],'tableId':this['_tableId'],'unitId':this[_0x54962e(0x22d)]});}[_0x2964ad(0x243)](_0x11e4ec,_0x46a368){const _0x4dd841=_0x2964ad;let _0x251368=this['_getDocumentData']();return this[_0x4dd841(0x1d8)](_0x251368,_0x58e916(_0x251368,this[_0x4dd841(0x1c2)],_0x11e4ec,_0x46a368));}['moveTableToOffset'](_0x2170a0){const _0x4f83c5=_0x2964ad;let _0x429dcd=this[_0x4f83c5(0x227)]();return this[_0x4f83c5(0x1d8)](_0x429dcd,_0x2455da(_0x429dcd,this[_0x4f83c5(0x1c2)],_0x2170a0,this[_0x4f83c5(0x231)]()));}[_0x2964ad(0x1dc)](_0x37c418,_0x40ce78,_0x4d76ec=_0x572225[_0x2964ad(0x1c0)]){const _0x4666bd=_0x2964ad;return this[_0x4666bd(0x1ff)](_0x37c418,0x1,_0x40ce78,_0x4d76ec);}[_0x2964ad(0x1ff)](_0x2f9d35,_0x1104ea,_0x247f4b,_0x5d5a87=_0x572225[_0x2964ad(0x1c0)]){const _0x13d5dd=_0x2964ad;let _0x33d318=this[_0x13d5dd(0x227)](),_0x566870=_0x38a0a8(_0x33d318,this[_0x13d5dd(0x1c2)],_0x2f9d35,_0x247f4b,_0x1104ea,_0x5d5a87,this[_0x13d5dd(0x231)]());return _0x566870?this[_0x13d5dd(0x1d8)](_0x33d318,_0x566870['actions']):!0x1;}['moveColumn'](_0x19386e,_0x141f93,_0x2bbdd6=_0x572225[_0x2964ad(0x22c)]){const _0xc76064=_0x2964ad;return this[_0xc76064(0x247)](_0x19386e,0x1,_0x141f93,_0x2bbdd6);}['moveColumns'](_0x32125b,_0x9b7881,_0x446f28,_0x2ae1ef=_0x572225[_0x2964ad(0x22c)]){const _0x3bbb23=_0x2964ad;let _0x24adac=this[_0x3bbb23(0x227)](),_0x3453a0=_0x1e58f2(_0x24adac,this[_0x3bbb23(0x1c2)],_0x32125b,_0x446f28,_0x9b7881,_0x2ae1ef,this[_0x3bbb23(0x231)]());return _0x3453a0?this['_mutateActions'](_0x24adac,_0x3453a0[_0x3bbb23(0x1a7)]):!0x1;}[_0x2964ad(0x1f1)](_0x355eb8){const _0x6109f7=_0x2964ad;try{let _0x42e807=this['_getDocumentData'](),_0xeee2=_0x184782({'documentData':_0x42e807,'tableId':this[_0x6109f7(0x1c2)],..._0x355eb8});return _0xeee2?this[_0x6109f7(0x1d8)](_0x42e807,_0xeee2['actions'],_0x355eb8):!0x1;}catch{return!0x1;}}[_0x2964ad(0x1a9)](_0x4b8559){const _0x5df13c=_0x2964ad;try{let _0x46facb=this['_getDocumentData'](),_0x5bc35c=_0x273e0e({'documentData':_0x46facb,'tableId':this[_0x5df13c(0x1c2)],..._0x4b8559});return _0x5bc35c?this[_0x5df13c(0x1d8)](_0x46facb,_0x5bc35c[_0x5df13c(0x1a7)],_0x4b8559):!0x1;}catch{return!0x1;}}[_0x2964ad(0x1b7)](_0x452bea,_0x427c27,_0x32dca8){const _0x29c30e=_0x2964ad;let _0x45d4e8=this[_0x29c30e(0x227)](),_0x2a6743=_0x5782ef(this['_document'][_0x29c30e(0x23f)]()[_0x29c30e(0x235)](),this[_0x29c30e(0x1eb)]);return this[_0x29c30e(0x1d8)](_0x45d4e8,_0x40e296({'documentData':_0x45d4e8,'tableId':this[_0x29c30e(0x1c2)],'row':_0x452bea,'column':_0x427c27,'text':_0x32dca8},_0x2a6743),this[_0x29c30e(0x1a8)](_0x452bea,_0x427c27));}[_0x2964ad(0x1b2)](_0x217148,_0x21d418){const _0x367ce2=_0x2964ad;let _0x461dbe=this[_0x367ce2(0x227)]();return this['_mutateActions'](_0x461dbe,_0x165ebe(_0x461dbe,{'tableId':this[_0x367ce2(0x1c2)],..._0x217148,'value':_0x21d418}),_0x217148);}[_0x2964ad(0x21d)](_0x40cc4c,_0x23ae79){const _0x24fdd4=_0x2964ad;let _0x2370a8=this[_0x24fdd4(0x227)]();return this['_mutateActions'](_0x2370a8,_0x13ede9({'documentData':_0x2370a8,'tableId':this['_tableId'],..._0x40cc4c,'margin':_0x23ae79}),_0x40cc4c);}[_0x2964ad(0x245)](_0x39e787){const _0x91d540=_0x2964ad;let _0x3cd4e6=this[_0x91d540(0x227)]();return this[_0x91d540(0x1d8)](_0x3cd4e6,_0x2a48b4(_0x3cd4e6,this[_0x91d540(0x1c2)],_0x39e787));}['setBorder'](_0x42bb4c,_0x5a1061){const _0x2856f1=_0x2964ad;let _0x3d6788=this[_0x2856f1(0x227)]();return this[_0x2856f1(0x1d8)](_0x3d6788,_0x4b2d2c({'documentData':_0x3d6788,'tableId':this[_0x2856f1(0x1c2)],..._0x42bb4c,'preset':_0x5a1061[_0x2856f1(0x215)]??_0x59e935['All'],'border':_0x5a1061['border']??{'color':{'rgb':_0x5a1061['color']??_0x2856f1(0x1b3)},'width':{'v':_0x5a1061[_0x2856f1(0x1f5)]??0x1},'dashStyle':_0x4bca8c[_0x2856f1(0x1e8)]}}),_0x42bb4c);}[_0x2964ad(0x1ae)](_0x125877){const _0x3df5b8=_0x2964ad;return this[_0x3df5b8(0x1b2)](this[_0x3df5b8(0x21a)](),_0x125877);}[_0x2964ad(0x1ac)](_0x46a6e5){return this['setBorder'](this['getTableRange'](),_0x46a6e5);}[_0x2964ad(0x1e9)](_0x2b2d32){const _0x34035a=_0x2964ad;let _0x139ec9=!_0x2b2d32['backgroundColor']||this[_0x34035a(0x1ae)](_0x2b2d32[_0x34035a(0x1fa)]),_0x4c02aa=!_0x2b2d32[_0x34035a(0x211)]||this[_0x34035a(0x1ac)](_0x2b2d32[_0x34035a(0x211)]);return _0x139ec9&&_0x4c02aa;}[_0x2964ad(0x1f9)](_0x4a67c1,_0x53feff,_0x2e2e11=_0x2c1e70[_0x2964ad(0x202)]){const _0x3e276a=_0x2964ad;var _0x2286bb;let _0x5c2e07=this[_0x3e276a(0x227)]();return(_0x2286bb=_0x5c2e07[_0x3e276a(0x1db)])!=null&&(_0x2286bb=_0x2286bb[this[_0x3e276a(0x1c2)]])!=null&&_0x2286bb['tableRows'][_0x4a67c1]?this[_0x3e276a(0x1d8)](_0x5c2e07,_0x4ac450(_0x5c2e07,this['_tableId'],_0x4a67c1,_0x53feff,_0x2e2e11)):!0x1;}['getRowHeight'](_0x5ce3e6){const _0x4a426b=_0x2964ad;var _0x492574;let _0x20cc91=(_0x492574=this[_0x4a426b(0x24e)]())==null||(_0x492574=_0x492574[_0x4a426b(0x1f6)][_0x5ce3e6])==null?void 0x0:_0x492574[_0x4a426b(0x206)];return _0x20cc91?_0x29e6a5['deepClone'](_0x20cc91):null;}[_0x2964ad(0x1a3)](_0x42bbdd,_0x381279){const _0x440eb1=_0x2964ad;var _0x34d001;let _0x164030=this[_0x440eb1(0x227)]();return(_0x34d001=_0x164030[_0x440eb1(0x1db)])!=null&&(_0x34d001=_0x34d001[this['_tableId']])!=null&&_0x34d001[_0x440eb1(0x221)][_0x42bbdd]?this[_0x440eb1(0x1d8)](_0x164030,_0x2eb7ad(_0x164030,this['_tableId'],_0x42bbdd,_0x381279)):!0x1;}[_0x2964ad(0x217)](_0x61dfe7=0x0,_0x1fa15c=this[_0x2964ad(0x22f)]()){const _0x34a949=_0x2964ad;let _0x1d1380=this['_getDocumentData']();return this[_0x34a949(0x1d8)](_0x1d1380,_0x4a19f1(_0x1d1380,this[_0x34a949(0x1c2)],_0x61dfe7,_0x61dfe7+_0x1fa15c-0x1));}['distributeColumns'](_0x46b9f8=0x0,_0x4d194d=this[_0x2964ad(0x210)]()){const _0x37be01=_0x2964ad;let _0x17eb7a=this[_0x37be01(0x227)]();return this[_0x37be01(0x1d8)](_0x17eb7a,_0x3e5889(_0x17eb7a,this[_0x37be01(0x1c2)],_0x46b9f8,_0x46b9f8+_0x4d194d-0x1));}[_0x2964ad(0x234)](){const _0x43b5b9=_0x2964ad;var _0x5bc915;return((_0x5bc915=this[_0x43b5b9(0x239)]())==null?void 0x0:_0x5bc915['headerRowCount'])??0x0;}['setHeaderRowCount'](_0x21ce6d){const _0x2b96cb=_0x2964ad;let _0x2e4769=this['_injector'][_0x2b96cb(0x1a4)](_0x13f143),_0x505109=this[_0x2b96cb(0x227)](),_0x567531=_0x5a2374(_0x505109,this[_0x2b96cb(0x1c2)],_0x21ce6d);if(!_0x567531)return!0x1;let _0x160125=this[_0x2b96cb(0x1d8)](_0x505109,_0x567531[_0x2b96cb(0x1a7)]);return _0x160125&&_0x2e4769[_0x2b96cb(0x1c5)](this[_0x2b96cb(0x22d)],this[_0x2b96cb(0x1c2)],_0x567531[_0x2b96cb(0x1c9)]),_0x160125;}['pinHeaderRows'](_0x333ae3){const _0x32c904=_0x2964ad;return this[_0x32c904(0x1c5)](_0x333ae3);}[_0x2964ad(0x23e)](){const _0x1ce9a7=_0x2964ad;var _0x255a71;return((_0x255a71=this[_0x1ce9a7(0x239)]())==null?void 0x0:_0x255a71[_0x1ce9a7(0x1ee)])??!0x1;}[_0x2964ad(0x1a5)](){const _0x2be43d=_0x2964ad;let _0x42c2a1=this[_0x2be43d(0x225)][_0x2be43d(0x1a4)](_0x13f143),_0x1ee743=this[_0x2be43d(0x227)](),_0x52f76e=_0x194e49(_0x1ee743,this[_0x2be43d(0x1c2)],this[_0x2be43d(0x231)]());if(!_0x52f76e)return!0x1;let _0x2dd217=this[_0x2be43d(0x1d8)](_0x1ee743,_0x52f76e[_0x2be43d(0x1a7)]);return _0x2dd217&&_0x42c2a1[_0x2be43d(0x22a)](this[_0x2be43d(0x22d)],this[_0x2be43d(0x1c2)],!0x0),_0x2dd217;}[_0x2964ad(0x21b)](_0x11f55a,_0x14b8f6){const _0x4701f3=_0x2964ad;return this[_0x4701f3(0x225)][_0x4701f3(0x1a4)](_0x13f143)['setColumnType'](this[_0x4701f3(0x22d)],this['_tableId'],_0x11f55a,_0x14b8f6),!0x0;}[_0x2964ad(0x21c)](_0x47f4d5,_0x2c458d){const _0x4232ab=_0x2964ad;let _0x5e19f7=this['_getDocumentData']();return this['_mutateActions'](_0x5e19f7,_0x1279e9(_0x5e19f7,this[_0x4232ab(0x214)](),this[_0x4232ab(0x1c2)],_0x47f4d5,_0x2c458d,this['_getBodyPath']()));}[_0x2964ad(0x227)](){const _0x9afb8d=_0x2964ad;let _0x20ba5b=this[_0x9afb8d(0x23d)][_0x9afb8d(0x23f)]()[_0x9afb8d(0x235)]();return this[_0x9afb8d(0x1eb)]?{...this[_0x9afb8d(0x23d)][_0x9afb8d(0x23f)](this['_segmentId'])[_0x9afb8d(0x235)](),'documentStyle':_0x20ba5b[_0x9afb8d(0x1c3)],'tableSource':_0x20ba5b[_0x9afb8d(0x1db)]}:_0x20ba5b;}[_0x2964ad(0x214)](){const _0x234393=_0x2964ad;return this[_0x234393(0x225)][_0x234393(0x1a4)](_0x13f143)['serialize'](this[_0x234393(0x22d)]);}['_getBodyPath'](){const _0x14ed01=_0x2964ad;return _0x5782ef(this[_0x14ed01(0x23d)][_0x14ed01(0x23f)]()['getSnapshot'](),this['_segmentId']);}['_mutateActions'](_0xd4c139,_0x3113dd,_0x4ea5b1){const _0x11404c=_0x2964ad;return _0x24e9b6(this[_0x11404c(0x246)],this['_unitId'],_0xd4c139,_0x3113dd,_0x4ea5b1?{'tableId':this[_0x11404c(0x1c2)],'segmentId':this[_0x11404c(0x1eb)],..._0x4ea5b1}:void 0x0);}};$=te([Q(0x3,_0x15d908),Q(0x4,_0x279e1d(_0x2b9a50))],$);var ne=class extends _0x22f2c3{[_0x2964ad(0x21e)](_0xebf593=''){const _0x34582c=_0x2964ad;return this[_0x34582c(0x1c4)](_0xebf593)[_0x34582c(0x24b)](_0xd3409f=>this['_createFDocumentTable'](_0xd3409f['tableId'],_0xebf593));}[_0x2964ad(0x236)](_0x217c9b,_0x2483ea=''){const _0x384721=_0x2964ad;return this[_0x384721(0x1c4)](_0x2483ea)[_0x384721(0x1b6)](_0x427e21=>_0x427e21['tableId']===_0x217c9b)?this[_0x384721(0x1ce)](_0x217c9b,_0x2483ea):null;}['getTableAt'](_0x3dc977,_0x2b81d9=''){const _0x2db693=_0x2964ad;var _0x1d5b94;let _0x4e61f9=(_0x1d5b94=this[_0x2db693(0x1c4)](_0x2b81d9)[_0x3dc977])==null?void 0x0:_0x1d5b94[_0x2db693(0x1ea)];return _0x4e61f9?this['_createFDocumentTable'](_0x4e61f9,_0x2b81d9):null;}[_0x2964ad(0x1f2)](){const _0x5736ec=_0x2964ad;let _0x511730=this[_0x5736ec(0x225)][_0x5736ec(0x1a4)](_0x8deb5f)['getStableTableSelection']();return _0x511730!=null&&_0x511730[_0x5736ec(0x1ea)]?this[_0x5736ec(0x1ce)](_0x511730[_0x5736ec(0x1ea)],_0x511730[_0x5736ec(0x20d)]):null;}[_0x2964ad(0x1da)](_0x453bb3,_0x59e5c2=''){const _0x245881=_0x2964ad;return this[_0x245881(0x1d3)](_0x453bb3,_0x59e5c2)[0x0]??null;}['findTables'](_0x59313f,_0x1fd66e=''){const _0x17b8c3=_0x2964ad;let _0x3f3207=this[_0x17b8c3(0x1e6)](_0x1fd66e),_0x26f384=typeof _0x59313f=='string'?{'text':_0x59313f}:_0x59313f;return this[_0x17b8c3(0x21e)](_0x1fd66e)[_0x17b8c3(0x1b0)](_0x693524=>{const _0x5678fc=_0x17b8c3;let _0x4bb3c2=_0x693524[_0x5678fc(0x208)]();return!(_0x26f384[_0x5678fc(0x1ea)]&&_0x4bb3c2!==_0x26f384[_0x5678fc(0x1ea)]||_0x26f384['text']&&!this[_0x5678fc(0x228)](_0x3f3207,_0x4bb3c2,_0x26f384['text'])||_0x26f384[_0x5678fc(0x201)]&&!this[_0x5678fc(0x1bc)](_0x693524,0x0,_0x26f384['headerText'])||_0x26f384[_0x5678fc(0x209)]&&!this[_0x5678fc(0x1bc)](_0x693524,0x0,_0x26f384[_0x5678fc(0x209)]));});}['insertTable'](_0x3b4ee0,_0x2d315c,_0x46766e={}){const _0x5ed365=_0x2964ad;let _0x56060d=this[_0x5ed365(0x225)][_0x5ed365(0x1a4)](_0x15d908),_0x209658=_0x46766e[_0x5ed365(0x1ea)]??_0x14e7c5(0x6);return _0x56060d[_0x5ed365(0x1fd)](_0x2c9106['id'],{..._0x46766e,'unitId':this[_0x5ed365(0x208)](),'rows':_0x3b4ee0,'columns':_0x2d315c,'tableId':_0x209658})?this[_0x5ed365(0x1ce)](_0x209658,_0x46766e[_0x5ed365(0x20d)]??''):null;}[_0x2964ad(0x1b9)](_0x324cb4,_0x54be98={}){const _0x32ad5f=_0x2964ad;let _0x702081=this[_0x32ad5f(0x225)][_0x32ad5f(0x1a4)](_0x15d908),_0x1af789=_0x54be98[_0x32ad5f(0x1ea)]??_0x14e7c5(0x6);return _0x702081[_0x32ad5f(0x1fd)](_0x2c9106['id'],{..._0x54be98,'unitId':this[_0x32ad5f(0x208)](),'values':_0x324cb4,'tableId':_0x1af789})?this[_0x32ad5f(0x1ce)](_0x1af789,_0x54be98['segmentId']??''):null;}[_0x2964ad(0x1c4)](_0x2348c1=''){const _0x23b461=_0x2964ad;let {tables:_0x39986e=[]}=this[_0x23b461(0x1d1)](_0x2348c1);return _0x39986e;}[_0x2964ad(0x1e6)](_0x4d0e15=''){const _0x4af379=_0x2964ad;let _0x59da15=this[_0x4af379(0x23f)]()[_0x4af379(0x235)]();return _0x4d0e15?{...this['getDocumentDataModel'](_0x4d0e15)[_0x4af379(0x235)](),'documentStyle':_0x59da15[_0x4af379(0x1c3)],'tableSource':_0x59da15[_0x4af379(0x1db)]}:_0x59da15;}[_0x2964ad(0x1ce)](_0x1d6d5b,_0x2eff1e=''){const _0x26f9f3=_0x2964ad;return this[_0x26f9f3(0x225)][_0x26f9f3(0x1e4)]($,this,_0x1d6d5b,_0x2eff1e);}[_0x2964ad(0x228)](_0x19f246,_0x33e08e,_0x55c95d){const _0x3577a0=_0x2964ad;var _0x572e5e;let _0x36443e=_0x2d82ba(_0x19f246,_0x33e08e);if(!_0x36443e)return!0x1;let _0x359d1a=(_0x572e5e=_0x19f246['body'])==null?void 0x0:_0x572e5e[_0x3577a0(0x1ad)];return _0x359d1a?_0x359d1a[_0x3577a0(0x1d6)](_0x36443e[_0x3577a0(0x248)],_0x36443e[_0x3577a0(0x1b5)])[_0x3577a0(0x20c)](_0x55c95d):!0x1;}[_0x2964ad(0x1bc)](_0x35e037,_0xa85b3b,_0x254884){const _0x1b1216=_0x2964ad;return Array['from']({'length':_0x35e037[_0x1b1216(0x210)]()},(_0x2f646c,_0x275ff7)=>_0x35e037[_0x1b1216(0x220)](_0xa85b3b,_0x275ff7))[_0x1b1216(0x1b6)](_0x447eb=>_0x447eb[_0x1b1216(0x20c)](_0x254884));}};_0x22f2c3[_0x2964ad(0x1d9)](ne);export{$ as FDocumentTable,q as FDocumentTableCell};
|
|
1
|
+
const _0x3af55f=_0xefa6;(function(_0xc3b7fc,_0x3ce54e){const _0x2d351a=_0xefa6,_0x5af07d=_0xc3b7fc();while(!![]){try{const _0x4f9ff7=parseInt(_0x2d351a(0x228))/0x1*(-parseInt(_0x2d351a(0x192))/0x2)+-parseInt(_0x2d351a(0x1d4))/0x3+-parseInt(_0x2d351a(0x221))/0x4*(-parseInt(_0x2d351a(0x1b2))/0x5)+-parseInt(_0x2d351a(0x1e4))/0x6+parseInt(_0x2d351a(0x1f7))/0x7*(parseInt(_0x2d351a(0x186))/0x8)+-parseInt(_0x2d351a(0x230))/0x9*(parseInt(_0x2d351a(0x1a2))/0xa)+-parseInt(_0x2d351a(0x231))/0xb*(-parseInt(_0x2d351a(0x1f1))/0xc);if(_0x4f9ff7===_0x3ce54e)break;else _0x5af07d['push'](_0x5af07d['shift']());}catch(_0x57f03c){_0x5af07d['push'](_0x5af07d['shift']());}}}(_0x3bd1,0xc85f1));import{DEFAULT_DOCS_TABLE_CELL_MARGIN as _0x10a2bb,DocsTableBorderPreset as _0x21e5da,DocsTableColumnInsertPosition as _0x76e11d,DocsTableColumnType as _0x5f1eaa,DocsTableDeleteColumnsCommand as _0x269022,DocsTableDeleteRowsCommand as _0xe59a77,DocsTableDeleteTableCommand as _0x46859a,DocsTableInsertPosition as _0x2649be,DocsTableInsertTableCommand as _0x7e92c1,DocsTableInsertTablePosition as _0x3ad52f,DocsTableModel as _0x4deb2e,DocsTableRowInsertPosition as _0x82b3b,DocsTableSelectionKind as _0x3a682d,DocsTableSelectionService as _0x46af07,DocsTableSetColumnTypeCommand as _0x47a3a9,DocsTableSortDirection as _0x27cfac,buildDistributeTableColumnsMutationActions as _0x35e68b,buildDistributeTableRowsMutationActions as _0x585fc2,buildInsertTableColumnsMutationActions as _0x2f079e,buildInsertTableRowsMutationActions as _0x2f9970,buildInsertTableTitleRowMutationActions as _0x590c3e,buildMergeCellsMutationActions as _0x5daaa1,buildMoveFloatingTableMutationActions as _0x49ba5c,buildMoveTableColumnsMutationActions as _0x38c19c,buildMoveTableRowsMutationActions as _0x40e946,buildMoveTableToOffsetMutationActions as _0x5cab22,buildResizeTableColumnActionsFromWidth as _0x380eb0,buildResizeTableRowActionsFromHeight as _0x2a6d77,buildSetTableBackgroundMutationActions as _0x3be999,buildSetTableBorderMutationActions as _0x475739,buildSetTableCellMarginMutationActions as _0x4339b2,buildSetTableCellTextMutationActions as _0x8aa1c1,buildSetTableDefaultCellMarginMutationActions as _0xc24e0e,buildSetTableHeaderRowCountMutationActions as _0x2acf2d,buildSortTableMutationActions as _0x596c36,buildUnmergeCellsMutationActions as _0x51717e,executeRichTextTableActions as _0x32465f,getTableActionBodyPath as _0xc9b810,getTableRangeById as _0x2fe24d}from'@univerjs-pro/docs-table';import{DashStyleType as _0x316dee,ICommandService as _0x19b242,Inject as _0xa66981,Injector as _0x5b17ed,JSONX as _0x1a4f7f,TableRowHeightRule as _0x4f9476,ThemeService as _0x56cb3b,Tools as _0x44d3dc,generateRandomId as _0x556848}from'@univerjs/core';import{FEnum as _0x3582a5}from'@univerjs/core/facade';import{FDocument as _0x52b261}from'@univerjs/docs/facade';var J=class extends _0x3582a5{get[_0x3af55f(0x237)](){return _0x3ad52f;}get[_0x3af55f(0x1b3)](){return _0x5f1eaa;}get[_0x3af55f(0x1cd)](){return _0x3a682d;}get['DocsTableRowInsertPosition'](){return _0x82b3b;}get[_0x3af55f(0x1bb)](){return _0x76e11d;}get[_0x3af55f(0x1f9)](){return _0x21e5da;}get[_0x3af55f(0x180)](){return _0x27cfac;}get[_0x3af55f(0x18f)](){return _0x316dee;}};_0x3582a5[_0x3af55f(0x1fe)](J);var Y=class{constructor(_0x29eaf8,_0x49461d,_0x3ab85a){const _0x9d93fe=_0x3af55f;this[_0x9d93fe(0x193)]=_0x29eaf8,this[_0x9d93fe(0x22f)]=_0x49461d,this[_0x9d93fe(0x182)]=_0x3ab85a;}[_0x3af55f(0x22d)](){return this['_table'];}['getRowIndex'](){const _0x1c109a=_0x3af55f;return this[_0x1c109a(0x22f)];}[_0x3af55f(0x1ee)](){return this['_column'];}['getText'](){const _0x25c249=_0x3af55f;return this[_0x25c249(0x193)]['getCellText'](this['_row'],this[_0x25c249(0x182)]);}[_0x3af55f(0x1de)](){const _0x559214=_0x3af55f;return this[_0x559214(0x193)][_0x559214(0x1c6)](this[_0x559214(0x22f)],this[_0x559214(0x182)]);}[_0x3af55f(0x1c5)](){const _0x2d47c2=_0x3af55f;return this[_0x2d47c2(0x193)]['getCellInsertOffset'](this[_0x2d47c2(0x22f)],this['_column']);}[_0x3af55f(0x183)](){const _0x2add6d=_0x3af55f;return this[_0x2add6d(0x193)][_0x2add6d(0x1f0)](this[_0x2add6d(0x22f)],this['_column']);}[_0x3af55f(0x195)](){const _0x5a9e11=_0x3af55f;return this[_0x5a9e11(0x193)][_0x5a9e11(0x187)](this['_row'],this['_column']);}[_0x3af55f(0x1da)](_0x224d60){const _0x5a7bbd=_0x3af55f;return this[_0x5a7bbd(0x193)][_0x5a7bbd(0x234)](this[_0x5a7bbd(0x193)][_0x5a7bbd(0x1ff)](this['_row'],this[_0x5a7bbd(0x182)]),_0x224d60);}[_0x3af55f(0x18e)](){const _0x2217c0=_0x3af55f;return this[_0x2217c0(0x193)][_0x2217c0(0x234)](this[_0x2217c0(0x193)][_0x2217c0(0x1ff)](this[_0x2217c0(0x22f)],this[_0x2217c0(0x182)]),null);}[_0x3af55f(0x22c)](_0x5aa6f3){const _0x30097a=_0x3af55f;return this[_0x30097a(0x193)]['setCellText'](this[_0x30097a(0x22f)],this[_0x30097a(0x182)],_0x5aa6f3);}[_0x3af55f(0x1c1)](_0x24016b){const _0x181a9e=_0x3af55f;return this['_table']['setCellBackground'](this[_0x181a9e(0x193)]['getCellRange'](this['_row'],this[_0x181a9e(0x182)]),_0x24016b);}['setBorder'](_0x240841){const _0x25d5e6=_0x3af55f;return this[_0x25d5e6(0x193)]['setBorder'](this[_0x25d5e6(0x193)][_0x25d5e6(0x1ff)](this[_0x25d5e6(0x22f)],this[_0x25d5e6(0x182)]),_0x240841);}[_0x3af55f(0x18a)](_0x2492d6,_0x41d6db){const _0x484324=_0x3af55f;return this[_0x484324(0x193)]['mergeCells']({'startRow':this[_0x484324(0x22f)],'startColumn':this[_0x484324(0x182)],'endRow':this[_0x484324(0x22f)]+_0x2492d6-0x1,'endColumn':this[_0x484324(0x182)]+_0x41d6db-0x1});}[_0x3af55f(0x1c7)](){const _0x1f4235=_0x3af55f;return this[_0x1f4235(0x193)][_0x1f4235(0x19a)](this['_table']['getCellRange'](this[_0x1f4235(0x22f)],this[_0x1f4235(0x182)]));}};function _0xefa6(_0x2642b3,_0x1d02d5){_0x2642b3=_0x2642b3-0x180;const _0x3bd165=_0x3bd1();let _0xefa639=_0x3bd165[_0x2642b3];return _0xefa639;}function X(_0x21f243){'@babel/helpers - typeof';const _0x34b2a6=_0x3af55f;return X=typeof Symbol==_0x34b2a6(0x20e)&&typeof Symbol[_0x34b2a6(0x1dc)]==_0x34b2a6(0x1b0)?function(_0x3c7222){return typeof _0x3c7222;}:function(_0x120361){const _0x218118=_0x34b2a6;return _0x120361&&typeof Symbol==_0x218118(0x20e)&&_0x120361[_0x218118(0x185)]===Symbol&&_0x120361!==Symbol[_0x218118(0x21f)]?'symbol':typeof _0x120361;},X(_0x21f243);}function Z(_0x5077a7,_0x50a9d7){const _0x2be5ad=_0x3af55f;if(X(_0x5077a7)!=_0x2be5ad(0x1be)||!_0x5077a7)return _0x5077a7;var _0x5cf7a7=_0x5077a7[Symbol[_0x2be5ad(0x1f5)]];if(_0x5cf7a7!==void 0x0){var _0x4668cd=_0x5cf7a7[_0x2be5ad(0x1db)](_0x5077a7,_0x50a9d7||_0x2be5ad(0x188));if(X(_0x4668cd)!=_0x2be5ad(0x1be))return _0x4668cd;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x50a9d7===_0x2be5ad(0x207)?String:Number)(_0x5077a7);}function ne(_0x3dc19c){const _0x649d6f=_0x3af55f;var _0x19039f=Z(_0x3dc19c,_0x649d6f(0x207));return X(_0x19039f)=='symbol'?_0x19039f:_0x19039f+'';}function re(_0x1be163,_0x25edd4,_0x16db09){const _0x465a50=_0x3af55f;return(_0x25edd4=ne(_0x25edd4))in _0x1be163?Object[_0x465a50(0x1ae)](_0x1be163,_0x25edd4,{'value':_0x16db09,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1be163[_0x25edd4]=_0x16db09,_0x1be163;}function Q(_0xdc8f6c,_0x11da47){return function(_0x4e34fc,_0x1db8b6){_0x11da47(_0x4e34fc,_0x1db8b6,_0xdc8f6c);};}function ie(_0x46b04a,_0x232ffc,_0x1e4a24,_0x147c7e){const _0x2e9a72=_0x3af55f;var _0x9d1b2f=arguments[_0x2e9a72(0x1c8)],_0x34bd28=_0x9d1b2f<0x3?_0x232ffc:_0x147c7e===null?_0x147c7e=Object[_0x2e9a72(0x1fc)](_0x232ffc,_0x1e4a24):_0x147c7e,_0x5b9424;if(typeof Reflect==_0x2e9a72(0x1be)&&typeof Reflect[_0x2e9a72(0x1fd)]==_0x2e9a72(0x20e))_0x34bd28=Reflect['decorate'](_0x46b04a,_0x232ffc,_0x1e4a24,_0x147c7e);else{for(var _0xcfae53=_0x46b04a[_0x2e9a72(0x1c8)]-0x1;_0xcfae53>=0x0;_0xcfae53--)(_0x5b9424=_0x46b04a[_0xcfae53])&&(_0x34bd28=(_0x9d1b2f<0x3?_0x5b9424(_0x34bd28):_0x9d1b2f>0x3?_0x5b9424(_0x232ffc,_0x1e4a24,_0x34bd28):_0x5b9424(_0x232ffc,_0x1e4a24))||_0x34bd28);}return _0x9d1b2f>0x3&&_0x34bd28&&Object[_0x2e9a72(0x1ae)](_0x232ffc,_0x1e4a24,_0x34bd28),_0x34bd28;}let $=class{constructor(_0x104691,_0x1c6302,_0x495672,_0x348464,_0x47e6ea){const _0x49a2d9=_0x3af55f;this[_0x49a2d9(0x19b)]=_0x104691,this['_tableId']=_0x1c6302,this[_0x49a2d9(0x20f)]=_0x495672,this[_0x49a2d9(0x1f6)]=_0x348464,this[_0x49a2d9(0x1bd)]=_0x47e6ea,re(this,_0x49a2d9(0x1d8),void 0x0),this['_unitId']=this[_0x49a2d9(0x19b)][_0x49a2d9(0x229)]();}['getId'](){return this['_tableId'];}[_0x3af55f(0x204)](){const _0x271d4e=_0x3af55f;return this[_0x271d4e(0x20f)];}[_0x3af55f(0x20c)](){const _0x37173d=_0x3af55f;return{'id':this[_0x37173d(0x1a5)],'rowCount':this[_0x37173d(0x1d5)](),'columnCount':this[_0x37173d(0x1eb)](),'metadata':this['getMetadata'](),'source':this[_0x37173d(0x18b)]()};}['describe'](){const _0x14ddcb=_0x3af55f;let _0x2b7e48=this[_0x14ddcb(0x1e2)](),_0xc661c9=this['getSource'](),_0x1970e6=this[_0x14ddcb(0x1eb)]();return{'id':this[_0x14ddcb(0x1a5)],'rowCount':this['getRowCount'](),'columnCount':_0x1970e6,'headerRowCount':(_0x2b7e48==null?void 0x0:_0x2b7e48[_0x14ddcb(0x1e8)])??0x0,'titleRow':(_0x2b7e48==null?void 0x0:_0x2b7e48[_0x14ddcb(0x189)])??!0x1,'columns':Array[_0x14ddcb(0x1a9)]({'length':_0x1970e6},(_0x4b7017,_0x23e72e)=>{const _0x375337=_0x14ddcb;var _0x2a9b15,_0xf4db85;return{'index':_0x23e72e,'type':_0x2b7e48==null||(_0x2a9b15=_0x2b7e48['columnTypes'])==null||(_0x2a9b15=_0x2a9b15[_0x23e72e])==null?void 0x0:_0x2a9b15['type'],'width':_0xc661c9==null||(_0xf4db85=_0xc661c9[_0x375337(0x1dd)][_0x23e72e])==null?void 0x0:_0xf4db85['size'][_0x375337(0x1e7)]['v']};}),'sampleRows':Array[_0x14ddcb(0x1a9)]({'length':this[_0x14ddcb(0x1d5)]()},(_0x527e31,_0x3f2d52)=>Array['from']({'length':_0x1970e6},(_0x225c28,_0x4a77d8)=>this[_0x14ddcb(0x1e5)](_0x3f2d52,_0x4a77d8)))[_0x14ddcb(0x1ad)](_0x3f25bc=>_0x3f25bc['some'](_0x39e2f0=>_0x39e2f0[_0x14ddcb(0x1c8)]>0x0))[_0x14ddcb(0x1ce)](0x0,0x5)};}['getRowCount'](){const _0x684f70=_0x3af55f;var _0x2bad32;return((_0x2bad32=this[_0x684f70(0x18b)]())==null?void 0x0:_0x2bad32[_0x684f70(0x1d7)][_0x684f70(0x1c8)])??0x0;}[_0x3af55f(0x1eb)](){const _0x53bb74=_0x3af55f;var _0xc41c5;return((_0xc41c5=this['getSource']())==null?void 0x0:_0xc41c5[_0x53bb74(0x1dd)][_0x53bb74(0x1c8)])??0x0;}[_0x3af55f(0x1ef)](_0x19b3f2,_0x1a1102){const _0x5024a9=_0x3af55f;var _0x2a9c7e;return(_0x2a9c7e=this['getSource']())!=null&&(_0x2a9c7e=_0x2a9c7e[_0x5024a9(0x1d7)][_0x19b3f2])!=null&&_0x2a9c7e[_0x5024a9(0x201)][_0x1a1102]?this[_0x5024a9(0x1bd)][_0x5024a9(0x236)](Y,this,_0x19b3f2,_0x1a1102):null;}[_0x3af55f(0x1e5)](_0x5300d5,_0x4815bc){const _0x2cd6dd=_0x3af55f;var _0x5b33f8,_0x438549;let _0x4490c9=(_0x5b33f8=_0x2fe24d(this['_getDocumentData'](),this[_0x2cd6dd(0x1a5)]))==null||(_0x5b33f8=_0x5b33f8['rows'][_0x5300d5])==null?void 0x0:_0x5b33f8[_0x2cd6dd(0x1e0)][_0x4815bc];return _0x4490c9?((_0x438549=this['_getDocumentData']()['body'])==null?void 0x0:_0x438549['dataStream'][_0x2cd6dd(0x1ce)](_0x4490c9[_0x2cd6dd(0x1cc)]+0x1,_0x4490c9[_0x2cd6dd(0x1d1)])[_0x2cd6dd(0x194)](/\r\n$/,''))??'':'';}[_0x3af55f(0x1f0)](_0x497421,_0x1bc763){const _0x31eb26=_0x3af55f;var _0x4f5b50;let _0x4ce03e=this[_0x31eb26(0x18b)](),_0x568311=_0x4ce03e==null||(_0x4f5b50=_0x4ce03e['tableRows'][_0x497421])==null?void 0x0:_0x4f5b50[_0x31eb26(0x201)][_0x1bc763];return _0x568311?_0x44d3dc['deepClone'](_0x568311['margin']??_0x4ce03e[_0x31eb26(0x20a)]??_0x10a2bb):null;}[_0x3af55f(0x187)](_0x50d314,_0x57ac77){const _0x1d4990=_0x3af55f;var _0x363c25;let _0x32dd93=(_0x363c25=this[_0x1d4990(0x18b)]())==null||(_0x363c25=_0x363c25[_0x1d4990(0x1d7)][_0x50d314])==null?void 0x0:_0x363c25[_0x1d4990(0x201)][_0x57ac77];return _0x32dd93!=null&&_0x32dd93[_0x1d4990(0x208)]?_0x44d3dc['deepClone'](_0x32dd93['margin']):null;}['getDefaultCellMargin'](){const _0x26ae94=_0x3af55f;var _0xef2451;return _0x44d3dc[_0x26ae94(0x206)](((_0xef2451=this[_0x26ae94(0x18b)]())==null?void 0x0:_0xef2451[_0x26ae94(0x20a)])??_0x10a2bb);}[_0x3af55f(0x212)](){const _0x18aff3=_0x3af55f;var _0x5ebda1;let _0x170cf8=(_0x5ebda1=this['getSource']())==null?void 0x0:_0x5ebda1[_0x18aff3(0x20a)];return _0x170cf8?_0x44d3dc[_0x18aff3(0x206)](_0x170cf8):null;}[_0x3af55f(0x1e2)](){const _0x1120b4=_0x3af55f;let _0x10ac85=this['_injector']['get'](_0x4deb2e),_0x155aa4=this[_0x1120b4(0x18b)]();return _0x155aa4?_0x10ac85[_0x1120b4(0x200)](this[_0x1120b4(0x1d8)],_0x155aa4):void 0x0;}[_0x3af55f(0x18b)](){const _0x5a0c1b=_0x3af55f;var _0x5b31c7;return(_0x5b31c7=this['_getDocumentData']()[_0x5a0c1b(0x1cf)])==null?void 0x0:_0x5b31c7[this[_0x5a0c1b(0x1a5)]];}[_0x3af55f(0x226)](){const _0x5110c9=_0x3af55f;return _0x2fe24d(this[_0x5110c9(0x1c4)](),this[_0x5110c9(0x1a5)]);}[_0x3af55f(0x1d9)](){const _0x46b254=_0x3af55f;return{'startRow':0x0,'endRow':Math['max'](0x0,this[_0x46b254(0x1d5)]()-0x1),'startColumn':0x0,'endColumn':Math['max'](0x0,this[_0x46b254(0x1eb)]()-0x1)};}[_0x3af55f(0x1ff)](_0x13f6de,_0x37f7a8){return{'startRow':_0x13f6de,'endRow':_0x13f6de,'startColumn':_0x37f7a8,'endColumn':_0x37f7a8};}[_0x3af55f(0x1c6)](_0x3e6fb9,_0x2b15aa){const _0xd25cce=_0x3af55f;var _0x40c45f;let _0x543883=(_0x40c45f=_0x2fe24d(this[_0xd25cce(0x1c4)](),this[_0xd25cce(0x1a5)]))==null||(_0x40c45f=_0x40c45f['rows'][_0x3e6fb9])==null?void 0x0:_0x40c45f[_0xd25cce(0x1e0)][_0x2b15aa];if(!_0x543883)return null;let _0x30241d=_0x543883[_0xd25cce(0x1cc)]+0x1;return{'startOffset':_0x30241d,'endOffset':Math[_0xd25cce(0x181)](_0x30241d,_0x543883['endOffset']-0x1),'segmentId':this[_0xd25cce(0x20f)]};}['getCellInsertOffset'](_0x96617e,_0x2c932d){const _0x3c67d9=_0x3af55f;let _0x382998=this[_0x3c67d9(0x1c6)](_0x96617e,_0x2c932d);return _0x382998?Math[_0x3c67d9(0x181)](_0x382998[_0x3c67d9(0x1cc)],_0x382998['endOffset']-0x1):null;}['getRowRange'](_0x36620e){const _0xc64ec9=_0x3af55f;return this[_0xc64ec9(0x218)](_0x36620e,0x1);}[_0x3af55f(0x218)](_0x3ca226,_0x101260=0x1){const _0x49ec2c=_0x3af55f;return{'startRow':_0x3ca226,'endRow':_0x3ca226+_0x101260-0x1,'startColumn':0x0,'endColumn':Math[_0x49ec2c(0x181)](0x0,this[_0x49ec2c(0x1eb)]()-0x1)};}['getColumnRange'](_0x3ae6dc){const _0x1cc577=_0x3af55f;return this[_0x1cc577(0x1d3)](_0x3ae6dc,0x1);}[_0x3af55f(0x1d3)](_0x3c95c8,_0x51dbdb=0x1){const _0x37c5d8=_0x3af55f;return{'startRow':0x0,'endRow':Math[_0x37c5d8(0x181)](0x0,this[_0x37c5d8(0x1d5)]()-0x1),'startColumn':_0x3c95c8,'endColumn':_0x3c95c8+_0x51dbdb-0x1};}[_0x3af55f(0x1c0)](){const _0x1b8719=_0x3af55f;return this[_0x1b8719(0x224)](this[_0x1b8719(0x1d9)](),_0x3a682d['Table']);}[_0x3af55f(0x1b8)](_0x3e461b){const _0x496f65=_0x3af55f;return this[_0x496f65(0x190)](_0x3e461b,0x1);}['selectRows'](_0x81e03,_0x23ae07=0x1){const _0x3184d1=_0x3af55f;return this[_0x3184d1(0x224)](this[_0x3184d1(0x218)](_0x81e03,_0x23ae07),_0x3a682d[_0x3184d1(0x1bc)]);}[_0x3af55f(0x21a)](_0x595a21){const _0x1fbd24=_0x3af55f;return this[_0x1fbd24(0x1fa)](_0x595a21,0x1);}[_0x3af55f(0x1fa)](_0x169333,_0x2fb74e=0x1){const _0x405b90=_0x3af55f;return this['selectRange'](this[_0x405b90(0x1d3)](_0x169333,_0x2fb74e),_0x3a682d[_0x405b90(0x1d2)]);}[_0x3af55f(0x219)](_0x82a94,_0x2a7753){const _0x11f6aa=_0x3af55f;return this[_0x11f6aa(0x224)](this[_0x11f6aa(0x1ff)](_0x82a94,_0x2a7753),_0x3a682d[_0x11f6aa(0x1d0)]);}[_0x3af55f(0x224)](_0x2eea65,_0x244bd1=_0x3a682d['Range']){const _0x2f5608=_0x3af55f;return this[_0x2f5608(0x1bd)][_0x2f5608(0x222)](_0x46af07)[_0x2f5608(0x191)]({..._0x2eea65,'kind':_0x244bd1,'segmentId':this[_0x2f5608(0x20f)],'tableId':this[_0x2f5608(0x1a5)]}),!0x0;}['insertRowBefore'](_0x5965d7){const _0x3b44bd=_0x3af55f;return this[_0x3b44bd(0x202)](_0x5965d7,0x1);}[_0x3af55f(0x19f)](_0x2dea22){const _0x92a448=_0x3af55f;return this[_0x92a448(0x1cb)](_0x2dea22,0x1);}['insertRowsBefore'](_0x40215f,_0x35be9d){const _0xdd2d1d=_0x3af55f;let _0x26a099=this[_0xdd2d1d(0x1c4)](),_0x56bd0a=_0x2f9970(_0x26a099,this[_0xdd2d1d(0x1a5)],_0x40215f,_0x35be9d,_0x2649be[_0xdd2d1d(0x1d6)],this[_0xdd2d1d(0x1ed)]());return _0x56bd0a?this[_0xdd2d1d(0x210)](_0x26a099,_0x56bd0a['actions']):!0x1;}[_0x3af55f(0x1cb)](_0x23f154,_0x482f4d){const _0x4f3c3f=_0x3af55f;let _0x11e11c=this[_0x4f3c3f(0x1c4)](),_0x5c82bc=_0x2f9970(_0x11e11c,this['_tableId'],_0x23f154,_0x482f4d,_0x2649be[_0x4f3c3f(0x1ab)],this['_getBodyPath']());return _0x5c82bc?this[_0x4f3c3f(0x210)](_0x11e11c,_0x5c82bc['actions']):!0x1;}[_0x3af55f(0x22e)](){const _0x49e847=_0x3af55f;return this['insertRowsAfter'](Math[_0x49e847(0x181)](0x0,this[_0x49e847(0x1d5)]()-0x1),0x1);}[_0x3af55f(0x220)](_0x337f6e){const _0x871863=_0x3af55f;return this[_0x871863(0x1e9)](_0x337f6e,0x1);}[_0x3af55f(0x20b)](_0x5c68d5){const _0x8c26b1=_0x3af55f;return this[_0x8c26b1(0x1df)](_0x5c68d5,0x1);}['insertColumnsBefore'](_0x3c4a8b,_0x879259){const _0x81014e=_0x3af55f;let _0x5ef725=this[_0x81014e(0x1c4)](),_0x48388e=_0x2f079e(_0x5ef725,this['_tableId'],_0x3c4a8b,_0x879259,_0x2649be['Left'],{'bodyPath':this['_getBodyPath']()});return _0x48388e?this[_0x81014e(0x210)](_0x5ef725,_0x48388e[_0x81014e(0x213)]):!0x1;}['insertColumnsAfter'](_0x33e832,_0xa1d0ef){const _0x44ada1=_0x3af55f;let _0x2253a1=this[_0x44ada1(0x1c4)](),_0x4688d4=_0x2f079e(_0x2253a1,this[_0x44ada1(0x1a5)],_0x33e832,_0xa1d0ef,_0x2649be[_0x44ada1(0x1e6)],{'bodyPath':this[_0x44ada1(0x1ed)]()});return _0x4688d4?this['_mutateActions'](_0x2253a1,_0x4688d4[_0x44ada1(0x213)]):!0x1;}['appendColumn'](){const _0x6998a1=_0x3af55f;return this['insertColumnsAfter'](Math[_0x6998a1(0x181)](0x0,this[_0x6998a1(0x1eb)]()-0x1),0x1);}[_0x3af55f(0x19c)](_0x2ac93b){return this['deleteRows'](_0x2ac93b,0x1);}[_0x3af55f(0x233)](_0x162d58,_0x6ad362=0x1){const _0x3c5a66=_0x3af55f;return!!this[_0x3c5a66(0x1f6)]['syncExecuteCommand'](_0xe59a77['id'],{'endRow':_0x162d58+_0x6ad362-0x1,'segmentId':this[_0x3c5a66(0x20f)],'startRow':_0x162d58,'tableId':this['_tableId'],'unitId':this[_0x3c5a66(0x1d8)]});}[_0x3af55f(0x20d)](_0x380463){const _0x38ad69=_0x3af55f;return this[_0x38ad69(0x1b5)](_0x380463,0x1);}[_0x3af55f(0x1b5)](_0x4fb75f,_0x41ab26=0x1){const _0x1edb76=_0x3af55f;return!!this['_commandService'][_0x1edb76(0x1f2)](_0x269022['id'],{'endColumn':_0x4fb75f+_0x41ab26-0x1,'segmentId':this[_0x1edb76(0x20f)],'startColumn':_0x4fb75f,'tableId':this[_0x1edb76(0x1a5)],'unitId':this[_0x1edb76(0x1d8)]});}[_0x3af55f(0x216)](){const _0x4807db=_0x3af55f;return!!this['_commandService'][_0x4807db(0x1f2)](_0x46859a['id'],{'segmentId':this[_0x4807db(0x20f)],'tableId':this[_0x4807db(0x1a5)],'unitId':this['_unitId']});}[_0x3af55f(0x1ba)](_0x206f49,_0x560d8c){const _0x176a39=_0x3af55f;let _0x577ccc=this[_0x176a39(0x1c4)]();return this[_0x176a39(0x210)](_0x577ccc,_0x49ba5c(_0x577ccc,this[_0x176a39(0x1a5)],_0x206f49,_0x560d8c));}[_0x3af55f(0x22b)](_0x4a1a7b){const _0x3ade4c=_0x3af55f;let _0x1b0d71=this[_0x3ade4c(0x1c4)]();return this[_0x3ade4c(0x210)](_0x1b0d71,_0x5cab22(_0x1b0d71,this[_0x3ade4c(0x1a5)],_0x4a1a7b,this[_0x3ade4c(0x1ed)]()));}['moveRow'](_0x400331,_0x56346e,_0x5dd896=_0x2649be[_0x3af55f(0x1d6)]){const _0x5f4e9e=_0x3af55f;return this[_0x5f4e9e(0x1ec)](_0x400331,0x1,_0x56346e,_0x5dd896);}[_0x3af55f(0x1ec)](_0x41ed26,_0x5508a1,_0x3d4c03,_0x39d49a=_0x2649be[_0x3af55f(0x1d6)]){const _0xe87093=_0x3af55f;let _0x17b9b0=this[_0xe87093(0x1c4)](),_0xd42835=_0x40e946(_0x17b9b0,this[_0xe87093(0x1a5)],_0x41ed26,_0x3d4c03,_0x5508a1,_0x39d49a,this[_0xe87093(0x1ed)]());return _0xd42835?this['_mutateActions'](_0x17b9b0,_0xd42835[_0xe87093(0x213)]):!0x1;}[_0x3af55f(0x1af)](_0x3355b2,_0x102c23,_0x11f7f9=_0x2649be[_0x3af55f(0x232)]){const _0x231078=_0x3af55f;return this[_0x231078(0x1ca)](_0x3355b2,0x1,_0x102c23,_0x11f7f9);}[_0x3af55f(0x1ca)](_0xc1bffd,_0x5e3b05,_0x611b35,_0xf1e461=_0x2649be['Left']){const _0x2230e0=_0x3af55f;let _0x202000=this[_0x2230e0(0x1c4)](),_0x53b730=_0x38c19c(_0x202000,this[_0x2230e0(0x1a5)],_0xc1bffd,_0x611b35,_0x5e3b05,_0xf1e461,this[_0x2230e0(0x1ed)]());return _0x53b730?this[_0x2230e0(0x210)](_0x202000,_0x53b730[_0x2230e0(0x213)]):!0x1;}['mergeCells'](_0x622f){const _0x415c33=_0x3af55f;try{let _0x4e0ab3=this['_getDocumentData'](),_0x587c91=_0x5daaa1({'documentData':_0x4e0ab3,'tableId':this[_0x415c33(0x1a5)],..._0x622f});return _0x587c91?this[_0x415c33(0x210)](_0x4e0ab3,_0x587c91['actions'],_0x622f):!0x1;}catch{return!0x1;}}[_0x3af55f(0x19a)](_0x7bb3ec){const _0x2044c1=_0x3af55f;try{let _0x19402d=this[_0x2044c1(0x1c4)](),_0x43c559=_0x51717e({'documentData':_0x19402d,'tableId':this[_0x2044c1(0x1a5)],..._0x7bb3ec});return _0x43c559?this['_mutateActions'](_0x19402d,_0x43c559[_0x2044c1(0x213)],_0x7bb3ec):!0x1;}catch{return!0x1;}}[_0x3af55f(0x215)](_0xf4ce12,_0x263c88,_0x3dfac5){const _0x36da2b=_0x3af55f;let _0xfebcb6=this[_0x36da2b(0x1c4)](),_0x4b4ca2=_0xc9b810(this[_0x36da2b(0x19b)]['getDocumentDataModel']()[_0x36da2b(0x21b)](),this[_0x36da2b(0x20f)]);return this[_0x36da2b(0x210)](_0xfebcb6,_0x8aa1c1({'documentData':_0xfebcb6,'tableId':this[_0x36da2b(0x1a5)],'row':_0xf4ce12,'column':_0x263c88,'text':_0x3dfac5},_0x4b4ca2),this[_0x36da2b(0x1ff)](_0xf4ce12,_0x263c88));}[_0x3af55f(0x1b4)](_0x2a026f,_0xa82a4d){const _0xb631ec=_0x3af55f;let _0x56855e=this['_getDocumentData']();return this[_0xb631ec(0x210)](_0x56855e,_0x3be999(_0x56855e,{'tableId':this[_0xb631ec(0x1a5)],..._0x2a026f,'value':_0xa82a4d}),_0x2a026f);}[_0x3af55f(0x234)](_0x2626a5,_0x119233){const _0x3acf63=_0x3af55f;let _0xba54f8=this[_0x3acf63(0x1c4)]();return this['_mutateActions'](_0xba54f8,_0x4339b2({'documentData':_0xba54f8,'tableId':this[_0x3acf63(0x1a5)],..._0x2626a5,'margin':_0x119233}),_0x2626a5);}[_0x3af55f(0x1b9)](_0x2c0ab9){const _0x4a07ee=_0x3af55f;let _0x518bd5=this[_0x4a07ee(0x1c4)]();return this[_0x4a07ee(0x210)](_0x518bd5,_0xc24e0e(_0x518bd5,this['_tableId'],_0x2c0ab9));}[_0x3af55f(0x1b7)](_0x158869,_0x15f6dd){const _0x492c6f=_0x3af55f;let _0x140c9e=this[_0x492c6f(0x1c4)]();return this['_mutateActions'](_0x140c9e,this[_0x492c6f(0x1b6)](_0x140c9e,_0x158869,_0x15f6dd),_0x158869);}['setTableBackground'](_0x5f0e33){const _0x1734fa=_0x3af55f;return this['setCellBackground'](this[_0x1734fa(0x1d9)](),_0x5f0e33);}[_0x3af55f(0x1f8)](_0x380842){const _0x565ff7=_0x3af55f;return this[_0x565ff7(0x1b7)](this[_0x565ff7(0x1d9)](),_0x380842);}['setTableStyle'](_0x47d071){const _0x5ae695=_0x3af55f;let _0x4d3dfd=this[_0x5ae695(0x1c4)](),_0x27cf76=this['getTableRange'](),_0x16f019=_0x47d071[_0x5ae695(0x22a)]?_0x3be999(_0x4d3dfd,{'tableId':this['_tableId'],..._0x27cf76,'value':_0x47d071[_0x5ae695(0x22a)]}):null,_0x53b968=_0x47d071['border']?this[_0x5ae695(0x1b6)](_0x4d3dfd,_0x27cf76,_0x47d071[_0x5ae695(0x198)]):null;return this[_0x5ae695(0x210)](_0x4d3dfd,_0x1a4f7f[_0x5ae695(0x1a7)](_0x16f019,_0x53b968),_0x27cf76);}[_0x3af55f(0x19d)](_0x321c26,_0x912e70,_0x9bb8f1=_0x4f9476['AT_LEAST']){const _0x512ddc=_0x3af55f;var _0x3f9494;let _0x55f56e=this[_0x512ddc(0x1c4)]();return(_0x3f9494=_0x55f56e[_0x512ddc(0x1cf)])!=null&&(_0x3f9494=_0x3f9494[this[_0x512ddc(0x1a5)]])!=null&&_0x3f9494[_0x512ddc(0x1d7)][_0x321c26]?this[_0x512ddc(0x210)](_0x55f56e,_0x2a6d77(_0x55f56e,this[_0x512ddc(0x1a5)],_0x321c26,_0x912e70,_0x9bb8f1)):!0x1;}['getRowHeight'](_0x321009){var _0x59bf4d;let _0x13dab8=(_0x59bf4d=this['getSource']())==null||(_0x59bf4d=_0x59bf4d['tableRows'][_0x321009])==null?void 0x0:_0x59bf4d['trHeight'];return _0x13dab8?_0x44d3dc['deepClone'](_0x13dab8):null;}[_0x3af55f(0x1b1)](_0xf0213,_0x19835a){const _0x4bbfe9=_0x3af55f;var _0x1e38ba;let _0x2a5501=this['_getDocumentData']();return(_0x1e38ba=_0x2a5501[_0x4bbfe9(0x1cf)])!=null&&(_0x1e38ba=_0x1e38ba[this[_0x4bbfe9(0x1a5)]])!=null&&_0x1e38ba['tableColumns'][_0xf0213]?this[_0x4bbfe9(0x210)](_0x2a5501,_0x380eb0(_0x2a5501,this[_0x4bbfe9(0x1a5)],_0xf0213,_0x19835a)):!0x1;}[_0x3af55f(0x1ea)](_0xaad15f=0x0,_0x22ac22=this[_0x3af55f(0x1d5)]()){const _0x3e29d2=_0x3af55f;let _0x5dc96d=this[_0x3e29d2(0x1c4)]();return this[_0x3e29d2(0x210)](_0x5dc96d,_0x585fc2(_0x5dc96d,this['_tableId'],_0xaad15f,_0xaad15f+_0x22ac22-0x1));}['distributeColumns'](_0x36f971=0x0,_0x4a2018=this[_0x3af55f(0x1eb)]()){const _0x210e4f=_0x3af55f;let _0x326a94=this[_0x210e4f(0x1c4)]();return this['_mutateActions'](_0x326a94,_0x35e68b(_0x326a94,this['_tableId'],_0x36f971,_0x36f971+_0x4a2018-0x1));}[_0x3af55f(0x1a3)](){const _0x3d6750=_0x3af55f;var _0x368f67;return((_0x368f67=this[_0x3d6750(0x1e2)]())==null?void 0x0:_0x368f67['headerRowCount'])??0x0;}[_0x3af55f(0x235)](_0x4f5946){const _0x57c023=_0x3af55f;let _0x2a381d=this[_0x57c023(0x1c4)](),_0x16837d=_0x2acf2d(_0x2a381d,this['_tableId'],_0x4f5946);return _0x16837d?this[_0x57c023(0x210)](_0x2a381d,_0x16837d[_0x57c023(0x213)]):!0x1;}[_0x3af55f(0x225)](_0x448663){const _0x548f6e=_0x3af55f;return this[_0x548f6e(0x235)](_0x448663);}['hasTitleRow'](){const _0x47c301=_0x3af55f;var _0x400117;return((_0x400117=this[_0x47c301(0x1e2)]())==null?void 0x0:_0x400117[_0x47c301(0x189)])??!0x1;}[_0x3af55f(0x203)](){const _0x5f33ad=_0x3af55f;let _0x4d40e7=this['_getDocumentData'](),_0x5016c9=_0x590c3e(_0x4d40e7,this[_0x5f33ad(0x1a5)],this['_getBodyPath']());return _0x5016c9?this[_0x5f33ad(0x210)](_0x4d40e7,_0x5016c9[_0x5f33ad(0x213)]):!0x1;}[_0x3af55f(0x1a8)](_0x1d0a20,_0x1dea59){const _0x18dde5=_0x3af55f;return!!this['_commandService'][_0x18dde5(0x1f2)](_0x47a3a9['id'],{'unitId':this[_0x18dde5(0x1d8)],'tableId':this[_0x18dde5(0x1a5)],'segmentId':this[_0x18dde5(0x20f)],'column':_0x1d0a20,'config':_0x1dea59});}[_0x3af55f(0x1f3)](_0x4335bb,_0x285575){const _0x16c082=_0x3af55f;let _0x4baf4b=this['_getDocumentData']();return this[_0x16c082(0x210)](_0x4baf4b,_0x596c36(_0x4baf4b,this[_0x16c082(0x1fb)](),this[_0x16c082(0x1a5)],_0x4335bb,_0x285575,this[_0x16c082(0x1ed)]()));}['_buildBorderActions'](_0x2a8821,_0x28b66e,_0x46cf12){const _0x440568=_0x3af55f;return _0x475739({'documentData':_0x2a8821,'tableId':this[_0x440568(0x1a5)],..._0x28b66e,'preset':_0x46cf12[_0x440568(0x21d)]??_0x21e5da[_0x440568(0x1f4)],'border':_0x46cf12[_0x440568(0x198)]??{'color':{'rgb':_0x46cf12[_0x440568(0x196)]??this[_0x440568(0x1bd)][_0x440568(0x222)](_0x56cb3b)[_0x440568(0x1a6)](_0x440568(0x21c))},'width':{'v':_0x46cf12[_0x440568(0x1e7)]??0x1},'dashStyle':_0x316dee[_0x440568(0x211)]}});}['_getDocumentData'](){const _0xbad7ad=_0x3af55f;let _0x104853=this[_0xbad7ad(0x19b)]['getDocumentDataModel']()['getSnapshot']();return this['_segmentId']?{...this[_0xbad7ad(0x19b)]['getDocumentDataModel'](this['_segmentId'])['getSnapshot'](),'documentStyle':_0x104853[_0xbad7ad(0x1e1)],'tableSource':_0x104853['tableSource']}:_0x104853;}['_serializeModel'](){const _0xea4ea9=_0x3af55f;return this['_injector']['get'](_0x4deb2e)[_0xea4ea9(0x1c2)](this['_unitId'],this[_0xea4ea9(0x19b)][_0xea4ea9(0x18d)]()[_0xea4ea9(0x21b)]());}[_0x3af55f(0x1ed)](){const _0x4422c1=_0x3af55f;return _0xc9b810(this[_0x4422c1(0x19b)][_0x4422c1(0x18d)]()[_0x4422c1(0x21b)](),this[_0x4422c1(0x20f)]);}[_0x3af55f(0x210)](_0x51949d,_0x5cf43a,_0xa5c032){const _0x4cf055=_0x3af55f;return _0x32465f(this[_0x4cf055(0x1f6)],this[_0x4cf055(0x1d8)],_0x51949d,_0x5cf43a,_0xa5c032?{'tableId':this[_0x4cf055(0x1a5)],'segmentId':this['_segmentId'],..._0xa5c032}:void 0x0);}};$=ie([Q(0x3,_0x19b242),Q(0x4,_0xa66981(_0x5b17ed))],$);function _0x3bd1(){const _0x37b247=['getTableAt','headerText','6631460Jsogaf','getHeaderRowCount','getBody','_tableId','getColorFromTheme','compose','setColumnType','from','includes','Below','text','filter','defineProperty','moveColumn','symbol','setColumnWidth','50wRvCmJ','DocsTableColumnType','setCellBackground','deleteColumns','_buildBorderActions','setBorder','selectRow','setDefaultCellMargin','moveTableBy','DocsTableColumnInsertPosition','Row','_injector','object','insertTableFromData','selectTable','setBackgroundColor','serializeDocument','getTableAtSelection','_getDocumentData','getInsertOffset','getCellContentRange','unmerge','length','_getTableDocumentData','moveColumns','insertRowsAfter','startOffset','DocsTableSelectionKind','slice','tableSource','Cell','endOffset','Column','getColumnsRange','1379118PVAcbH','getRowCount','Above','tableRows','_unitId','getTableRange','setMargin','call','iterator','tableColumns','getContentRange','insertColumnsAfter','cells','documentStyle','getMetadata','body','2892072jIFvDU','getCellText','Right','width','headerRowCount','insertColumnsBefore','distributeRows','getColumnCount','moveRows','_getBodyPath','getColumnIndex','getCell','getCellMargin','8532yoHYiy','syncExecuteCommand','sortByColumn','All','toPrimitive','_commandService','3238291lWWoFj','setTableBorder','DocsTableBorderPreset','selectColumns','_serializeModel','getOwnPropertyDescriptor','decorate','extend','getCellRange','resolveTableMetadata','tableCells','insertRowsBefore','insertTitleRow','getSegmentId','findTables','deepClone','string','margin','some','cellMargin','insertColumnAfter','getInfo','deleteColumn','function','_segmentId','_mutateActions','SOLID','getDefaultCellMarginOverride','actions','getTables','setCellText','deleteTable','_rowContainsText','getRowsRange','selectCell','selectColumn','getSnapshot','gray.900','preset','_getTables','prototype','insertColumnBefore','67352LAdacN','get','tableId','selectRange','pinHeaderRows','getRange','dataStream','133818sjMKFT','getId','backgroundColor','moveTableToOffset','setText','getTable','appendRow','_row','18crHDVn','50446lAIEYR','Left','deleteRows','setCellMargin','setHeaderRowCount','createInstance','DocsTableInsertTablePosition','DocsTableSortDirection','max','_column','getMargin','getStableTableSelection','constructor','8YUnPwT','getCellMarginOverride','default','titleRow','mergeTo','getSource','findTableByText','getDocumentDataModel','clearMarginOverride','DashStyleType','selectRows','setStructuralSelection','12xmcLyf','_table','replace','getMarginOverride','color','titleText','border','segmentId','unmergeCells','_document','deleteRow','setRowHeight','_createFDocumentTable','insertRowAfter'];_0x3bd1=function(){return _0x37b247;};return _0x3bd1();}var ae=class extends _0x52b261{['getTables'](_0x194864=''){const _0x1d391f=_0x3af55f;return this[_0x1d391f(0x21e)](_0x194864)['map'](_0x32b782=>this['_createFDocumentTable'](_0x32b782['tableId'],_0x194864));}[_0x3af55f(0x22d)](_0x157a87,_0x11edf3=''){const _0x3ffb1b=_0x3af55f;return this[_0x3ffb1b(0x21e)](_0x11edf3)[_0x3ffb1b(0x209)](_0x21b52a=>_0x21b52a[_0x3ffb1b(0x223)]===_0x157a87)?this[_0x3ffb1b(0x19e)](_0x157a87,_0x11edf3):null;}[_0x3af55f(0x1a0)](_0x43466b,_0x256a2d=''){const _0x1cacd5=_0x3af55f;var _0x3e6b8d;let _0x5234bc=(_0x3e6b8d=this['_getTables'](_0x256a2d)[_0x43466b])==null?void 0x0:_0x3e6b8d[_0x1cacd5(0x223)];return _0x5234bc?this[_0x1cacd5(0x19e)](_0x5234bc,_0x256a2d):null;}[_0x3af55f(0x1c3)](){const _0x228e8a=_0x3af55f;let _0xb80416=this[_0x228e8a(0x1bd)][_0x228e8a(0x222)](_0x46af07)[_0x228e8a(0x184)]();return _0xb80416!=null&&_0xb80416[_0x228e8a(0x223)]?this[_0x228e8a(0x19e)](_0xb80416[_0x228e8a(0x223)],_0xb80416[_0x228e8a(0x199)]):null;}[_0x3af55f(0x18c)](_0x1dadc0,_0x5867aa=''){const _0x44c466=_0x3af55f;return this[_0x44c466(0x205)](_0x1dadc0,_0x5867aa)[0x0]??null;}[_0x3af55f(0x205)](_0x17060c,_0x113512=''){const _0x28b550=_0x3af55f;let _0x2fde30=this[_0x28b550(0x1c9)](_0x113512),_0x1d0bc1=typeof _0x17060c==_0x28b550(0x207)?{'text':_0x17060c}:_0x17060c;return this[_0x28b550(0x214)](_0x113512)[_0x28b550(0x1ad)](_0x4d5396=>{const _0x39c937=_0x28b550;let _0x35ca79=_0x4d5396[_0x39c937(0x229)]();return!(_0x1d0bc1[_0x39c937(0x223)]&&_0x35ca79!==_0x1d0bc1[_0x39c937(0x223)]||_0x1d0bc1[_0x39c937(0x1ac)]&&!this['_tableContainsText'](_0x2fde30,_0x35ca79,_0x1d0bc1[_0x39c937(0x1ac)])||_0x1d0bc1[_0x39c937(0x1a1)]&&!this[_0x39c937(0x217)](_0x4d5396,0x0,_0x1d0bc1[_0x39c937(0x1a1)])||_0x1d0bc1[_0x39c937(0x197)]&&!this[_0x39c937(0x217)](_0x4d5396,0x0,_0x1d0bc1[_0x39c937(0x197)]));});}['insertTable'](_0xf8c2cd,_0x2b07ef,_0x3031ca={}){const _0x395b71=_0x3af55f;let _0x260dba=this[_0x395b71(0x1bd)][_0x395b71(0x222)](_0x19b242),_0x1eb969=_0x3031ca['tableId']??_0x556848(0x6);return _0x260dba['syncExecuteCommand'](_0x7e92c1['id'],{..._0x3031ca,'unitId':this[_0x395b71(0x229)](),'rows':_0xf8c2cd,'columns':_0x2b07ef,'tableId':_0x1eb969})?this['_createFDocumentTable'](_0x1eb969,_0x3031ca['segmentId']??''):null;}[_0x3af55f(0x1bf)](_0x2803b6,_0xf2ed73={}){const _0x5b8b67=_0x3af55f;let _0x547707=this[_0x5b8b67(0x1bd)][_0x5b8b67(0x222)](_0x19b242),_0x1cbed5=_0xf2ed73['tableId']??_0x556848(0x6);return _0x547707[_0x5b8b67(0x1f2)](_0x7e92c1['id'],{..._0xf2ed73,'unitId':this[_0x5b8b67(0x229)](),'values':_0x2803b6,'tableId':_0x1cbed5})?this[_0x5b8b67(0x19e)](_0x1cbed5,_0xf2ed73[_0x5b8b67(0x199)]??''):null;}[_0x3af55f(0x21e)](_0x2c79eb=''){const _0x182fc9=_0x3af55f;let {tables:_0x157463=[]}=this[_0x182fc9(0x1a4)](_0x2c79eb);return _0x157463;}[_0x3af55f(0x1c9)](_0x2d1ed4=''){const _0x575caf=_0x3af55f;let _0x6ffba1=this[_0x575caf(0x18d)]()[_0x575caf(0x21b)]();return _0x2d1ed4?{...this[_0x575caf(0x18d)](_0x2d1ed4)[_0x575caf(0x21b)](),'documentStyle':_0x6ffba1[_0x575caf(0x1e1)],'tableSource':_0x6ffba1['tableSource']}:_0x6ffba1;}[_0x3af55f(0x19e)](_0x975142,_0x9a8687=''){const _0x197361=_0x3af55f;return this[_0x197361(0x1bd)]['createInstance']($,this,_0x975142,_0x9a8687);}['_tableContainsText'](_0x29cc26,_0x2c2a0f,_0xc79778){const _0x5b3b04=_0x3af55f;var _0x105ab2;let _0x526ec9=_0x2fe24d(_0x29cc26,_0x2c2a0f);if(!_0x526ec9)return!0x1;let _0x3a68e0=(_0x105ab2=_0x29cc26[_0x5b3b04(0x1e3)])==null?void 0x0:_0x105ab2[_0x5b3b04(0x227)];return _0x3a68e0?_0x3a68e0[_0x5b3b04(0x1ce)](_0x526ec9[_0x5b3b04(0x1cc)],_0x526ec9['endOffset'])['includes'](_0xc79778):!0x1;}[_0x3af55f(0x217)](_0x44f0d5,_0x1ebf39,_0x2a4ecc){const _0x1ae553=_0x3af55f;return Array['from']({'length':_0x44f0d5[_0x1ae553(0x1eb)]()},(_0x2b1aba,_0x197f7c)=>_0x44f0d5[_0x1ae553(0x1e5)](_0x1ebf39,_0x197f7c))['some'](_0x4971b8=>_0x4971b8[_0x1ae553(0x1aa)](_0x2a4ecc));}};_0x52b261[_0x3af55f(0x1fe)](ae);export{$ as FDocumentTable,Y as FDocumentTableCell};
|