@univerjs-pro/docs-code 1.0.4 → 1.1.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.
@@ -14,7 +14,7 @@ import { Injector } from '@univerjs/core';
14
14
  * console.log(code?.getText());
15
15
  * console.log(code?.getConfig());
16
16
  *
17
- * code?.updateConfig({ language: 'javascript', lineNumbers: true });
17
+ * code?.updateConfig({ config: { language: 'javascript', lineNumbers: true } });
18
18
  * console.log(code?.describe());
19
19
  *
20
20
  * code?.unwrap();
@@ -31,6 +31,7 @@ export declare class FDocumentCode {
31
31
  * Returns the code block id.
32
32
  * @returns {string} The code block range id.
33
33
  * @example
34
+ * ```ts
34
35
  * const fDocument = univerAPI.getActiveDocument();
35
36
  * const codes = fDocument.getCodes();
36
37
  *
@@ -46,6 +47,7 @@ export declare class FDocumentCode {
46
47
  * Returns the code block range in the document data stream.
47
48
  * @returns {IDocsCodeRange | null} The code range, or `null` if it no longer exists.
48
49
  * @example
50
+ * ```ts
49
51
  * const fDocument = univerAPI.getActiveDocument();
50
52
  * const codes = fDocument.getCodes();
51
53
  *
@@ -61,6 +63,7 @@ export declare class FDocumentCode {
61
63
  * Returns plain text inside the code.
62
64
  * @returns {string} The code text with block tokens removed.
63
65
  * @example
66
+ * ```ts
64
67
  * const fDocument = univerAPI.getActiveDocument();
65
68
  * const code = fDocument.findCodeByText('function');
66
69
  *
@@ -111,7 +114,6 @@ export declare class FDocumentCode {
111
114
  * code.updateConfig({ config: { language: 'typescript' } });
112
115
  * }
113
116
  * ```
114
- * ```
115
117
  */
116
118
  updateConfig(options: IDocsCodeUpdateFacadeOptions): boolean;
117
119
  /**
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x5a4b(){var _0x4045b3=['iterator','_getDocumentData','normalizeDocsCodeConfig','getCodeConfig','4EcGZaw','startIndex','DocsCodeUnwrapCommand','find','blockId','join','6cQOTcc','includes','7pmNrGA','12iBUVyB','14059513HSvLHE','unwrap','updateConfig','ICommandService','symbol','_injector','map','1018482qEvnBK','@univerjs/docs/facade','getId','getOwnPropertyDescriptor','createInstance','string','blockType','slice','getCodeAt','59yQgsGV','text','length','1178920VfZokx','filter','4902070XiMwuH','save','prototype','UniverCore','exports','DataStreamTreeTokenType','endIndex','2476413MhLIBF','_unitId','body','_blockId','object','function','insertCode','BLOCK_END','11XqeRww','syncExecuteCommand','extend','@univerjs/core','FDocument','some','CODE','_getBlockRanges','UniverProDocsCode','14654prdBMl','get','constructor','DocsCodeRemoveCommand','toStringTag','UniverProDocsCodeFacade','amd','dataStream','_createFDocumentCode','isParagraphFacade','@univerjs-pro/docs-code','getConfig','BLOCK_START','from','defineProperty','62616FjOFRC','PARAGRAPH','getText','blockRanges','getRange','getCode','replace','_getBlockRange','decorate','_document','remove','DocsCodeUpdateCommand','DocumentBlockRangeType'];_0x5a4b=function(){return _0x4045b3;};return _0x5a4b();}function _0x4660(_0x25246e,_0x2d4884){_0x25246e=_0x25246e-0xd8;var _0x5a4b8b=_0x5a4b();var _0x466089=_0x5a4b8b[_0x25246e];return _0x466089;}(function(_0x1befcb,_0x5059f8){var _0x1317ec=_0x4660,_0x136410=_0x1befcb();while(!![]){try{var _0x119a01=-parseInt(_0x1317ec(0x12c))/0x1*(parseInt(_0x1317ec(0xf2))/0x2)+parseInt(_0x1317ec(0x123))/0x3*(-parseInt(_0x1317ec(0x112))/0x4)+parseInt(_0x1317ec(0xd8))/0x5*(-parseInt(_0x1317ec(0x118))/0x6)+parseInt(_0x1317ec(0x11a))/0x7*(parseInt(_0x1317ec(0x101))/0x8)+-parseInt(_0x1317ec(0xe1))/0x9+-parseInt(_0x1317ec(0xda))/0xa*(-parseInt(_0x1317ec(0xe9))/0xb)+parseInt(_0x1317ec(0x11b))/0xc*(parseInt(_0x1317ec(0x11c))/0xd);if(_0x119a01===_0x5059f8)break;else _0x136410['push'](_0x136410['shift']());}catch(_0x51dd8e){_0x136410['push'](_0x136410['shift']());}}}(_0x5a4b,0x48767),function(_0x2d7e95,_0x150ef1){var _0x1de4c5=_0x4660;typeof exports=='object'&&typeof module<'u'?_0x150ef1(exports,require('@univerjs-pro/docs-code'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define==_0x1de4c5(0xe6)&&define[_0x1de4c5(0xf8)]?define([_0x1de4c5(0xde),_0x1de4c5(0xfc),_0x1de4c5(0xec),_0x1de4c5(0x124)],_0x150ef1):(_0x2d7e95=typeof globalThis<'u'?globalThis:_0x2d7e95||self,_0x150ef1(_0x2d7e95[_0x1de4c5(0xf7)]={},_0x2d7e95[_0x1de4c5(0xf1)],_0x2d7e95[_0x1de4c5(0xdd)],_0x2d7e95['UniverDocsFacade']));}(this,function(_0x5d62dd,_0x171896,_0x37eff1,_0x1b4d90){var _0x3dbdc3=_0x4660;Object[_0x3dbdc3(0x100)](_0x5d62dd,Symbol[_0x3dbdc3(0xf6)],{'value':'Module'});function _0x4a5a39(_0x87f36){'@babel/helpers - typeof';var _0x40ce7b=_0x3dbdc3;return _0x4a5a39=typeof Symbol==_0x40ce7b(0xe6)&&typeof Symbol[_0x40ce7b(0x10e)]==_0x40ce7b(0x120)?function(_0x1d763e){return typeof _0x1d763e;}:function(_0x3437c3){var _0x28dae4=_0x40ce7b;return _0x3437c3&&typeof Symbol==_0x28dae4(0xe6)&&_0x3437c3[_0x28dae4(0xf4)]===Symbol&&_0x3437c3!==Symbol[_0x28dae4(0xdc)]?_0x28dae4(0x120):typeof _0x3437c3;},_0x4a5a39(_0x87f36);}function _0x51be1b(_0xe6dc29,_0x1d9596){var _0x27ea86=_0x3dbdc3;if(_0x4a5a39(_0xe6dc29)!=_0x27ea86(0xe5)||!_0xe6dc29)return _0xe6dc29;var _0x30bfdc=_0xe6dc29[Symbol['toPrimitive']];if(_0x30bfdc!==void 0x0){var _0x8d954=_0x30bfdc['call'](_0xe6dc29,_0x1d9596||'default');if(_0x4a5a39(_0x8d954)!=_0x27ea86(0xe5))return _0x8d954;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1d9596===_0x27ea86(0x128)?String:Number)(_0xe6dc29);}function _0x3179ed(_0x32dcc9){var _0xf9239e=_0x3dbdc3,_0x378fe4=_0x51be1b(_0x32dcc9,_0xf9239e(0x128));return _0x4a5a39(_0x378fe4)==_0xf9239e(0x120)?_0x378fe4:_0x378fe4+'';}function _0xc8d253(_0x1f6fff,_0x2bafb7,_0x2c2dec){var _0x3a245c=_0x3dbdc3;return(_0x2bafb7=_0x3179ed(_0x2bafb7))in _0x1f6fff?Object[_0x3a245c(0x100)](_0x1f6fff,_0x2bafb7,{'value':_0x2c2dec,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1f6fff[_0x2bafb7]=_0x2c2dec,_0x1f6fff;}function _0x18fc14(_0x2d35e8,_0x1cfd14){return function(_0x78075c,_0x490c73){_0x1cfd14(_0x78075c,_0x490c73,_0x2d35e8);};}function _0x50ce1f(_0x53ce55,_0x36a064,_0x451be7,_0x3ae3ef){var _0x40e144=_0x3dbdc3,_0x184e77=arguments[_0x40e144(0x12e)],_0x416e89=_0x184e77<0x3?_0x36a064:_0x3ae3ef===null?_0x3ae3ef=Object[_0x40e144(0x126)](_0x36a064,_0x451be7):_0x3ae3ef,_0x4b48fe;if(typeof Reflect=='object'&&typeof Reflect[_0x40e144(0x109)]==_0x40e144(0xe6))_0x416e89=Reflect[_0x40e144(0x109)](_0x53ce55,_0x36a064,_0x451be7,_0x3ae3ef);else{for(var _0x41fd17=_0x53ce55[_0x40e144(0x12e)]-0x1;_0x41fd17>=0x0;_0x41fd17--)(_0x4b48fe=_0x53ce55[_0x41fd17])&&(_0x416e89=(_0x184e77<0x3?_0x4b48fe(_0x416e89):_0x184e77>0x3?_0x4b48fe(_0x36a064,_0x451be7,_0x416e89):_0x4b48fe(_0x36a064,_0x451be7))||_0x416e89);}return _0x184e77>0x3&&_0x416e89&&Object[_0x40e144(0x100)](_0x36a064,_0x451be7,_0x416e89),_0x416e89;}let _0x4ebebf=class{constructor(_0x4ed7b3,_0x1f416c,_0x5208d9){var _0x8bd0b1=_0x3dbdc3;this[_0x8bd0b1(0x10a)]=_0x4ed7b3,this['_blockId']=_0x1f416c,this[_0x8bd0b1(0x121)]=_0x5208d9,_0xc8d253(this,_0x8bd0b1(0xe2),void 0x0),this[_0x8bd0b1(0xe2)]=this[_0x8bd0b1(0x10a)][_0x8bd0b1(0x125)]();}[_0x3dbdc3(0x125)](){var _0x3fceb4=_0x3dbdc3;return this[_0x3fceb4(0xe4)];}[_0x3dbdc3(0x105)](){var _0x125dde=_0x3dbdc3;let _0x4b50be=this[_0x125dde(0x108)]();return _0x4b50be?{'blockId':_0x4b50be[_0x125dde(0x116)],'endIndex':_0x4b50be[_0x125dde(0xe0)],'startIndex':_0x4b50be[_0x125dde(0x113)]}:null;}[_0x3dbdc3(0x103)](){var _0xa2b403=_0x3dbdc3,_0x7e274d;let _0x4c1b83=this[_0xa2b403(0x108)](),_0x34a4ef=(_0x7e274d=this['_getDocumentData']()[_0xa2b403(0xe3)])==null?void 0x0:_0x7e274d[_0xa2b403(0xf9)];return!_0x4c1b83||!_0x34a4ef?'':_0x3af3bf(_0x34a4ef[_0xa2b403(0x12a)](_0x4c1b83[_0xa2b403(0x113)]+0x1,_0x4c1b83['endIndex']));}['describe'](){var _0x38f5f1=_0x3dbdc3;let _0x2c3faf=this[_0x38f5f1(0x105)]();return _0x2c3faf?{..._0x2c3faf,'config':this[_0x38f5f1(0xfd)](),'text':this[_0x38f5f1(0x103)](),'type':_0x37eff1[_0x38f5f1(0x10d)][_0x38f5f1(0xef)]}:null;}[_0x3dbdc3(0xfd)](){var _0x5f421b=_0x3dbdc3;let _0x1d9da4=this[_0x5f421b(0x121)][_0x5f421b(0xf3)](_0x171896['DocsCodeModel']);return(0x0,_0x171896[_0x5f421b(0x110)])(_0x1d9da4[_0x5f421b(0x111)](this[_0x5f421b(0xe2)],this[_0x5f421b(0xe4)]));}[_0x3dbdc3(0x11e)](_0x24270f){var _0xad05e=_0x3dbdc3;return this[_0xad05e(0x121)][_0xad05e(0xf3)](_0x37eff1[_0xad05e(0x11f)])[_0xad05e(0xea)](_0x171896[_0xad05e(0x10c)]['id'],{'blockId':this['_blockId'],'config':_0x24270f['config'],'unitId':this[_0xad05e(0xe2)]});}[_0x3dbdc3(0x11d)](){var _0x2a98c7=_0x3dbdc3;return this[_0x2a98c7(0x121)]['get'](_0x37eff1[_0x2a98c7(0x11f)])[_0x2a98c7(0xea)](_0x171896[_0x2a98c7(0x114)]['id'],{'blockId':this[_0x2a98c7(0xe4)],'unitId':this[_0x2a98c7(0xe2)]});}[_0x3dbdc3(0x10b)](){var _0x5b304f=_0x3dbdc3;return this[_0x5b304f(0x121)][_0x5b304f(0xf3)](_0x37eff1[_0x5b304f(0x11f)])[_0x5b304f(0xea)](_0x171896[_0x5b304f(0xf5)]['id'],{'blockId':this[_0x5b304f(0xe4)],'unitId':this['_unitId']});}['_getBlockRange'](){var _0x3a0f67=_0x3dbdc3,_0x3e4453;return((_0x3e4453=this[_0x3a0f67(0x10f)]()['body'])==null||(_0x3e4453=_0x3e4453[_0x3a0f67(0x104)])==null?void 0x0:_0x3e4453[_0x3a0f67(0x115)](_0x3ef17c=>_0x3ef17c[_0x3a0f67(0x116)]===this[_0x3a0f67(0xe4)]&&_0x3ef17c[_0x3a0f67(0x129)]===_0x37eff1[_0x3a0f67(0x10d)][_0x3a0f67(0xef)]))??null;}[_0x3dbdc3(0x10f)](){var _0x47586c=_0x3dbdc3;return this[_0x47586c(0x10a)][_0x47586c(0xdb)]();}};_0x4ebebf=_0x50ce1f([_0x18fc14(0x2,(0x0,_0x37eff1['Inject'])(_0x37eff1['Injector']))],_0x4ebebf);function _0x3af3bf(_0x340a28){var _0xe5a83c=_0x3dbdc3;return Array[_0xe5a83c(0xff)](_0x340a28)[_0xe5a83c(0x122)](_0x16e53c=>_0x16e53c===_0x37eff1[_0xe5a83c(0xdf)][_0xe5a83c(0x102)]?'\x0a':_0x16e53c)[_0xe5a83c(0xd9)](_0xd0af1=>_0xd0af1!==_0x37eff1['DataStreamTreeTokenType'][_0xe5a83c(0xfe)]&&_0xd0af1!==_0x37eff1['DataStreamTreeTokenType'][_0xe5a83c(0xe8)]&&_0xd0af1!==_0x37eff1[_0xe5a83c(0xdf)]['SECTION_BREAK'])[_0xe5a83c(0x117)]('')[_0xe5a83c(0x107)](/\n$/,'');}var _0x123d26=class extends _0x1b4d90[_0x3dbdc3(0xed)]{['getCodes'](){var _0x58b66a=_0x3dbdc3;return this[_0x58b66a(0xf0)]()[_0x58b66a(0xd9)](_0x1ade4d=>_0x1ade4d[_0x58b66a(0x129)]===_0x37eff1['DocumentBlockRangeType']['CODE'])[_0x58b66a(0x122)](_0xf117ff=>this[_0x58b66a(0xfa)](_0xf117ff[_0x58b66a(0x116)]));}[_0x3dbdc3(0x106)](_0x1e9c90){var _0x2f9c33=_0x3dbdc3;return this['_getBlockRanges']()[_0x2f9c33(0xee)](_0x227fd0=>_0x227fd0[_0x2f9c33(0x116)]===_0x1e9c90&&_0x227fd0[_0x2f9c33(0x129)]===_0x37eff1['DocumentBlockRangeType']['CODE'])?this['_createFDocumentCode'](_0x1e9c90):null;}[_0x3dbdc3(0x12b)](_0x2dda17){var _0x37db07=_0x3dbdc3;let _0x261213=this[_0x37db07(0xf0)]()[_0x37db07(0x115)](_0x1b5b69=>_0x1b5b69['blockType']===_0x37eff1['DocumentBlockRangeType'][_0x37db07(0xef)]&&_0x1b5b69[_0x37db07(0x113)]<=_0x2dda17&&_0x2dda17<=_0x1b5b69['endIndex']);return _0x261213?this[_0x37db07(0xfa)](_0x261213[_0x37db07(0x116)]):null;}['findCodeByText'](_0x5200fd){return this['findCodes'](_0x5200fd)[0x0]??null;}['findCodes'](_0x2901a5){var _0x50093f=_0x3dbdc3;let _0x529899=typeof _0x2901a5==_0x50093f(0x128)?{'text':_0x2901a5}:_0x2901a5;return this['getCodes']()[_0x50093f(0xd9)](_0x27ddaf=>!(_0x529899[_0x50093f(0x116)]&&_0x27ddaf[_0x50093f(0x125)]()!==_0x529899[_0x50093f(0x116)]||_0x529899[_0x50093f(0x12d)]&&!_0x27ddaf[_0x50093f(0x103)]()[_0x50093f(0x119)](_0x529899[_0x50093f(0x12d)])));}[_0x3dbdc3(0xe7)](_0x5f59c6={},_0x498338={}){var _0x271395=_0x3dbdc3;let _0x4287c6=this[_0x271395(0x121)][_0x271395(0xf3)](_0x37eff1[_0x271395(0x11f)]),_0x4c0a62=(0x0,_0x1b4d90[_0x271395(0xfb)])(_0x5f59c6)?{..._0x498338,..._0x5f59c6[_0x271395(0x105)]()}:_0x5f59c6,_0x2396cd=_0x4c0a62[_0x271395(0x116)]??(0x0,_0x37eff1['generateRandomId'])(0x6);return _0x4287c6[_0x271395(0xea)](_0x171896['DocsCodeInsertCommand']['id'],{..._0x4c0a62,'blockId':_0x2396cd,'unitId':this[_0x271395(0x125)]()})?this[_0x271395(0x106)](_0x2396cd):null;}[_0x3dbdc3(0xf0)](){var _0x3de01f=_0x3dbdc3,_0x2eb751;return((_0x2eb751=this['save']()[_0x3de01f(0xe3)])==null?void 0x0:_0x2eb751['blockRanges'])??[];}[_0x3dbdc3(0xfa)](_0x3043d5){var _0x218ec4=_0x3dbdc3;return this[_0x218ec4(0x121)][_0x218ec4(0x127)](_0x4ebebf,this,_0x3043d5);}};_0x1b4d90[_0x3dbdc3(0xed)][_0x3dbdc3(0xeb)](_0x123d26),Object['defineProperty'](_0x5d62dd,'FDocumentCode',{'enumerable':!0x0,'get':function(){return _0x4ebebf;}});}));
1
+ function _0x234a(_0x4cc28a,_0x23e4e7){_0x4cc28a=_0x4cc28a-0x117;var _0x3d94e3=_0x3d94();var _0x234a4a=_0x3d94e3[_0x4cc28a];return _0x234a4a;}function _0x3d94(){var _0x4cee46=['DataStreamTreeTokenType','FDocumentCode','CODE','iterator','SECTION_BREAK','join','text','prototype','filter','startIndex','_document','DocumentBlockRangeType','getCodes','getText','defineProperty','_createFDocumentCode','endIndex','DocsCodeInsertCommand','decorate','DocsCodeUnwrapCommand','extend','createInstance','BLOCK_START','amd','symbol','9iaUSIw','6gpooyN','findCodeByText','string','updateConfig','unwrap','getCodeAt','blockId','FDocument','from','_getDocumentData','30QpQaxB','some','dataStream','function','call','87222LGMFsX','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getId','toPrimitive','@univerjs/core','786504YlpTIK','blockRanges','7527WuMPSm','Injector','Module','@univerjs-pro/docs-code','blockType','object','33704mISPxW','673175OQYoxF','PARAGRAPH','generateRandomId','length','ICommandService','UniverProDocsCodeFacade','_blockId','_unitId','UniverProDocsCode','config','get','_getBlockRanges','148MloBCx','describe','insertCode','getOwnPropertyDescriptor','map','syncExecuteCommand','body','DocsCodeUpdateCommand','getCodeConfig','2493080bLEGLh','_getBlockRange','normalizeDocsCodeConfig','419223VJDkrt','_injector','276nthdsm','UniverDocsFacade','findCodes','getCode','getConfig','getRange','DocsCodeModel','toStringTag','find'];_0x3d94=function(){return _0x4cee46;};return _0x3d94();}(function(_0xb9a1f9,_0x1ed05e){var _0x4bd94f=_0x234a,_0x28d0c5=_0xb9a1f9();while(!![]){try{var _0x2f47e1=-parseInt(_0x4bd94f(0x160))/0x1*(-parseInt(_0x4bd94f(0x16f))/0x2)+parseInt(_0x4bd94f(0x11c))/0x3*(parseInt(_0x4bd94f(0x12f))/0x4)+-parseInt(_0x4bd94f(0x123))/0x5+parseInt(_0x4bd94f(0x16a))/0x6*(parseInt(_0x4bd94f(0x13b))/0x7)+-parseInt(_0x4bd94f(0x11a))/0x8*(parseInt(_0x4bd94f(0x15f))/0x9)+-parseInt(_0x4bd94f(0x138))/0xa+-parseInt(_0x4bd94f(0x122))/0xb*(-parseInt(_0x4bd94f(0x13d))/0xc);if(_0x2f47e1===_0x1ed05e)break;else _0x28d0c5['push'](_0x28d0c5['shift']());}catch(_0x42ee81){_0x28d0c5['push'](_0x28d0c5['shift']());}}}(_0x3d94,0x3b1f0),function(_0xe7bbff,_0x3057bd){var _0x32288c=_0x234a;typeof exports==_0x32288c(0x121)&&typeof module<'u'?_0x3057bd(exports,require('@univerjs-pro/docs-code'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define=='function'&&define[_0x32288c(0x15d)]?define(['exports',_0x32288c(0x11f),_0x32288c(0x119),'@univerjs/docs/facade'],_0x3057bd):(_0xe7bbff=typeof globalThis<'u'?globalThis:_0xe7bbff||self,_0x3057bd(_0xe7bbff[_0x32288c(0x128)]={},_0xe7bbff[_0x32288c(0x12b)],_0xe7bbff['UniverCore'],_0xe7bbff[_0x32288c(0x13e)]));}(this,function(_0x4341bf,_0x1103b9,_0x3006de,_0x4eaf56){var _0x167f2b=_0x234a;Object[_0x167f2b(0x154)](_0x4341bf,Symbol[_0x167f2b(0x144)],{'value':_0x167f2b(0x11e)});function _0x291587(_0x41d64e){'@babel/helpers - typeof';var _0x37fe1b=_0x167f2b;return _0x291587=typeof Symbol==_0x37fe1b(0x16d)&&typeof Symbol[_0x37fe1b(0x149)]==_0x37fe1b(0x15e)?function(_0x1817ca){return typeof _0x1817ca;}:function(_0x5bc5cb){var _0x17218f=_0x37fe1b;return _0x5bc5cb&&typeof Symbol==_0x17218f(0x16d)&&_0x5bc5cb['constructor']===Symbol&&_0x5bc5cb!==Symbol[_0x17218f(0x14d)]?_0x17218f(0x15e):typeof _0x5bc5cb;},_0x291587(_0x41d64e);}function _0x4085ce(_0x4ecb3e,_0x2770d5){var _0x246969=_0x167f2b;if(_0x291587(_0x4ecb3e)!='object'||!_0x4ecb3e)return _0x4ecb3e;var _0x564371=_0x4ecb3e[Symbol[_0x246969(0x118)]];if(_0x564371!==void 0x0){var _0xf8c4f2=_0x564371[_0x246969(0x16e)](_0x4ecb3e,_0x2770d5||'default');if(_0x291587(_0xf8c4f2)!=_0x246969(0x121))return _0xf8c4f2;throw TypeError(_0x246969(0x170));}return(_0x2770d5===_0x246969(0x162)?String:Number)(_0x4ecb3e);}function _0x2d51bf(_0x552d51){var _0x1fd0a7=_0x167f2b,_0x4560b9=_0x4085ce(_0x552d51,_0x1fd0a7(0x162));return _0x291587(_0x4560b9)==_0x1fd0a7(0x15e)?_0x4560b9:_0x4560b9+'';}function _0x29da60(_0x1c4106,_0x8bc384,_0x1389cc){var _0x5f3305=_0x167f2b;return(_0x8bc384=_0x2d51bf(_0x8bc384))in _0x1c4106?Object[_0x5f3305(0x154)](_0x1c4106,_0x8bc384,{'value':_0x1389cc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1c4106[_0x8bc384]=_0x1389cc,_0x1c4106;}function _0xfa31aa(_0x1c8347,_0x147768){return function(_0x3dcb5a,_0x4a54e4){_0x147768(_0x3dcb5a,_0x4a54e4,_0x1c8347);};}function _0x510b72(_0xafb693,_0x597f35,_0x359d7f,_0x4f6caf){var _0x3cd56e=_0x167f2b,_0x5c4c5e=arguments[_0x3cd56e(0x126)],_0x26e42a=_0x5c4c5e<0x3?_0x597f35:_0x4f6caf===null?_0x4f6caf=Object[_0x3cd56e(0x132)](_0x597f35,_0x359d7f):_0x4f6caf,_0x2c31ef;if(typeof Reflect==_0x3cd56e(0x121)&&typeof Reflect[_0x3cd56e(0x158)]==_0x3cd56e(0x16d))_0x26e42a=Reflect[_0x3cd56e(0x158)](_0xafb693,_0x597f35,_0x359d7f,_0x4f6caf);else{for(var _0x3a2244=_0xafb693[_0x3cd56e(0x126)]-0x1;_0x3a2244>=0x0;_0x3a2244--)(_0x2c31ef=_0xafb693[_0x3a2244])&&(_0x26e42a=(_0x5c4c5e<0x3?_0x2c31ef(_0x26e42a):_0x5c4c5e>0x3?_0x2c31ef(_0x597f35,_0x359d7f,_0x26e42a):_0x2c31ef(_0x597f35,_0x359d7f))||_0x26e42a);}return _0x5c4c5e>0x3&&_0x26e42a&&Object['defineProperty'](_0x597f35,_0x359d7f,_0x26e42a),_0x26e42a;}let _0x11fde9=class{constructor(_0xfbc843,_0xe050d1,_0x25256b){var _0x406d33=_0x167f2b;this[_0x406d33(0x150)]=_0xfbc843,this[_0x406d33(0x129)]=_0xe050d1,this[_0x406d33(0x13c)]=_0x25256b,_0x29da60(this,'_unitId',void 0x0),this['_unitId']=this['_document'][_0x406d33(0x117)]();}[_0x167f2b(0x117)](){var _0x775ed5=_0x167f2b;return this[_0x775ed5(0x129)];}[_0x167f2b(0x142)](){var _0x1fc5f4=_0x167f2b;let _0x2dab8c=this['_getBlockRange']();return _0x2dab8c?{'blockId':_0x2dab8c[_0x1fc5f4(0x166)],'endIndex':_0x2dab8c['endIndex'],'startIndex':_0x2dab8c[_0x1fc5f4(0x14f)]}:null;}[_0x167f2b(0x153)](){var _0x2e6ee6=_0x167f2b,_0x57e8b0;let _0x1fb704=this['_getBlockRange'](),_0xf4b47f=(_0x57e8b0=this[_0x2e6ee6(0x169)]()[_0x2e6ee6(0x135)])==null?void 0x0:_0x57e8b0[_0x2e6ee6(0x16c)];return!_0x1fb704||!_0xf4b47f?'':_0x97dc74(_0xf4b47f['slice'](_0x1fb704['startIndex']+0x1,_0x1fb704[_0x2e6ee6(0x156)]));}[_0x167f2b(0x130)](){var _0xd1cb11=_0x167f2b;let _0x2e660e=this['getRange']();return _0x2e660e?{..._0x2e660e,'config':this[_0xd1cb11(0x141)](),'text':this[_0xd1cb11(0x153)](),'type':_0x3006de[_0xd1cb11(0x151)]['CODE']}:null;}[_0x167f2b(0x141)](){var _0x530d1c=_0x167f2b;let _0x4a3452=this[_0x530d1c(0x13c)][_0x530d1c(0x12d)](_0x1103b9[_0x530d1c(0x143)]);return(0x0,_0x1103b9[_0x530d1c(0x13a)])(_0x4a3452[_0x530d1c(0x137)](this[_0x530d1c(0x12a)],this['_blockId']));}[_0x167f2b(0x163)](_0x86f0ba){var _0x43a569=_0x167f2b;return this[_0x43a569(0x13c)][_0x43a569(0x12d)](_0x3006de[_0x43a569(0x127)])[_0x43a569(0x134)](_0x1103b9[_0x43a569(0x136)]['id'],{'blockId':this[_0x43a569(0x129)],'config':_0x86f0ba[_0x43a569(0x12c)],'unitId':this[_0x43a569(0x12a)]});}[_0x167f2b(0x164)](){var _0x2c3d60=_0x167f2b;return this['_injector'][_0x2c3d60(0x12d)](_0x3006de[_0x2c3d60(0x127)])['syncExecuteCommand'](_0x1103b9[_0x2c3d60(0x159)]['id'],{'blockId':this[_0x2c3d60(0x129)],'unitId':this[_0x2c3d60(0x12a)]});}['remove'](){var _0x4da7a7=_0x167f2b;return this[_0x4da7a7(0x13c)][_0x4da7a7(0x12d)](_0x3006de[_0x4da7a7(0x127)])[_0x4da7a7(0x134)](_0x1103b9['DocsCodeRemoveCommand']['id'],{'blockId':this[_0x4da7a7(0x129)],'unitId':this['_unitId']});}[_0x167f2b(0x139)](){var _0x11d2d2=_0x167f2b,_0x5e9491;return((_0x5e9491=this[_0x11d2d2(0x169)]()['body'])==null||(_0x5e9491=_0x5e9491['blockRanges'])==null?void 0x0:_0x5e9491['find'](_0x32f651=>_0x32f651['blockId']===this[_0x11d2d2(0x129)]&&_0x32f651['blockType']===_0x3006de[_0x11d2d2(0x151)][_0x11d2d2(0x148)]))??null;}['_getDocumentData'](){var _0x4932f5=_0x167f2b;return this[_0x4932f5(0x150)]['save']();}};_0x11fde9=_0x510b72([_0xfa31aa(0x2,(0x0,_0x3006de['Inject'])(_0x3006de[_0x167f2b(0x11d)]))],_0x11fde9);function _0x97dc74(_0x2c0f28){var _0x20a9fe=_0x167f2b;return Array[_0x20a9fe(0x168)](_0x2c0f28)['map'](_0x54cc78=>_0x54cc78===_0x3006de[_0x20a9fe(0x146)][_0x20a9fe(0x124)]?'\x0a':_0x54cc78)[_0x20a9fe(0x14e)](_0x1d3ca5=>_0x1d3ca5!==_0x3006de['DataStreamTreeTokenType'][_0x20a9fe(0x15c)]&&_0x1d3ca5!==_0x3006de[_0x20a9fe(0x146)]['BLOCK_END']&&_0x1d3ca5!==_0x3006de[_0x20a9fe(0x146)][_0x20a9fe(0x14a)])[_0x20a9fe(0x14b)]('')['replace'](/\n$/,'');}var _0x2ded15=class extends _0x4eaf56[_0x167f2b(0x167)]{[_0x167f2b(0x152)](){var _0x24851f=_0x167f2b;return this['_getBlockRanges']()['filter'](_0x183773=>_0x183773[_0x24851f(0x120)]===_0x3006de[_0x24851f(0x151)][_0x24851f(0x148)])[_0x24851f(0x133)](_0x1127fe=>this['_createFDocumentCode'](_0x1127fe[_0x24851f(0x166)]));}[_0x167f2b(0x140)](_0x54a557){var _0x218723=_0x167f2b;return this[_0x218723(0x12e)]()[_0x218723(0x16b)](_0x329671=>_0x329671[_0x218723(0x166)]===_0x54a557&&_0x329671[_0x218723(0x120)]===_0x3006de[_0x218723(0x151)][_0x218723(0x148)])?this[_0x218723(0x155)](_0x54a557):null;}[_0x167f2b(0x165)](_0x3c1ae4){var _0x51f305=_0x167f2b;let _0x344b11=this[_0x51f305(0x12e)]()[_0x51f305(0x145)](_0x15070e=>_0x15070e[_0x51f305(0x120)]===_0x3006de[_0x51f305(0x151)][_0x51f305(0x148)]&&_0x15070e['startIndex']<=_0x3c1ae4&&_0x3c1ae4<=_0x15070e[_0x51f305(0x156)]);return _0x344b11?this['_createFDocumentCode'](_0x344b11[_0x51f305(0x166)]):null;}[_0x167f2b(0x161)](_0x4d5a47){var _0x1c63d0=_0x167f2b;return this[_0x1c63d0(0x13f)](_0x4d5a47)[0x0]??null;}[_0x167f2b(0x13f)](_0x1ce4e5){var _0x5004d8=_0x167f2b;let _0x2b928f=typeof _0x1ce4e5==_0x5004d8(0x162)?{'text':_0x1ce4e5}:_0x1ce4e5;return this[_0x5004d8(0x152)]()[_0x5004d8(0x14e)](_0x378537=>!(_0x2b928f[_0x5004d8(0x166)]&&_0x378537[_0x5004d8(0x117)]()!==_0x2b928f['blockId']||_0x2b928f['text']&&!_0x378537[_0x5004d8(0x153)]()['includes'](_0x2b928f[_0x5004d8(0x14c)])));}[_0x167f2b(0x131)](_0x512e8a={},_0x4462d9={}){var _0x36d0b3=_0x167f2b;let _0x24b4e4=this[_0x36d0b3(0x13c)][_0x36d0b3(0x12d)](_0x3006de[_0x36d0b3(0x127)]),_0x113fbf=(0x0,_0x4eaf56['isParagraphFacade'])(_0x512e8a)?{..._0x4462d9,..._0x512e8a[_0x36d0b3(0x142)]()}:_0x512e8a,_0x1ab150=_0x113fbf['blockId']??(0x0,_0x3006de[_0x36d0b3(0x125)])(0x6);return _0x24b4e4[_0x36d0b3(0x134)](_0x1103b9[_0x36d0b3(0x157)]['id'],{..._0x113fbf,'blockId':_0x1ab150,'unitId':this['getId']()})?this[_0x36d0b3(0x140)](_0x1ab150):null;}[_0x167f2b(0x12e)](){var _0x2f4a7f=_0x167f2b,_0x430c7e;return((_0x430c7e=this['save']()[_0x2f4a7f(0x135)])==null?void 0x0:_0x430c7e[_0x2f4a7f(0x11b)])??[];}[_0x167f2b(0x155)](_0x236cec){var _0x1e4d1e=_0x167f2b;return this[_0x1e4d1e(0x13c)][_0x1e4d1e(0x15b)](_0x11fde9,this,_0x236cec);}};_0x4eaf56[_0x167f2b(0x167)][_0x167f2b(0x15a)](_0x2ded15),Object[_0x167f2b(0x154)](_0x4341bf,_0x167f2b(0x147),{'enumerable':!0x0,'get':function(){return _0x11fde9;}});}));
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x4684(_0x24a451,_0xf8e459){_0x24a451=_0x24a451-0x141;const _0x3678ea=_0x3678();let _0x46842f=_0x3678ea[_0x24a451];return _0x46842f;}(function(_0x51c93b,_0x1c9eff){const _0x489fa7=_0x4684,_0x73eab9=_0x51c93b();while(!![]){try{const _0x4475eb=-parseInt(_0x489fa7(0x1da))/0x1+-parseInt(_0x489fa7(0x1fb))/0x2+-parseInt(_0x489fa7(0x1f9))/0x3*(parseInt(_0x489fa7(0x171))/0x4)+parseInt(_0x489fa7(0x17b))/0x5+-parseInt(_0x489fa7(0x1af))/0x6+-parseInt(_0x489fa7(0x154))/0x7+-parseInt(_0x489fa7(0x1ab))/0x8*(-parseInt(_0x489fa7(0x153))/0x9);if(_0x4475eb===_0x1c9eff)break;else _0x73eab9['push'](_0x73eab9['shift']());}catch(_0x5c0b6c){_0x73eab9['push'](_0x73eab9['shift']());}}}(_0x3678,0xdccfd),function(_0x1cb151,_0x4f98ed){const _0x4cb87b=_0x4684;typeof exports==_0x4cb87b(0x1aa)&&typeof module<'u'?_0x4f98ed(exports,require('@univerjs/core'),require('rxjs'),require('@univerjs/docs'),require('@univerjs-pro/license')):typeof define==_0x4cb87b(0x185)&&define['amd']?define([_0x4cb87b(0x216),_0x4cb87b(0x18c),_0x4cb87b(0x1a0),_0x4cb87b(0x19d),_0x4cb87b(0x1cb)],_0x4f98ed):(_0x1cb151=typeof globalThis<'u'?globalThis:_0x1cb151||self,_0x4f98ed(_0x1cb151[_0x4cb87b(0x1e2)]={},_0x1cb151[_0x4cb87b(0x1c1)],_0x1cb151[_0x4cb87b(0x1a0)],_0x1cb151[_0x4cb87b(0x1d8)],_0x1cb151['UniverProLicense']));}(this,function(_0x4f0b82,_0x190c0c,_0x43d3a9,_0x44c43b,_0x50263d){const _0x2eefbc=_0x4684;Object['defineProperty'](_0x4f0b82,Symbol['toStringTag'],{'value':'Module'});let _0x4562dc={'language':_0x2eefbc(0x19c),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function _0x256d55(_0x48b7f8){return{..._0x4562dc,..._0x48b7f8};}function _0x371b2d(_0x236ae0){const _0x36368d=_0x2eefbc;let _0x43edb9=(_0x236ae0==null?void 0x0:_0x236ae0[_0x36368d(0x204)])??{};return{'codes':Object[_0x36368d(0x17e)](Object[_0x36368d(0x161)](_0x43edb9)['map'](([_0x518b85,_0x31f358])=>[_0x518b85,_0x256d55(_0x31f358)]))};}function _0x4cda6d(_0x4ea90a,_0x1474a5,_0x2da9d1){const _0x1715e9=_0x2eefbc;let _0x2dea39=_0x371b2d(_0x4ea90a);return _0x2dea39['codes'][_0x1474a5]=_0x256d55({..._0x2dea39[_0x1715e9(0x204)][_0x1474a5],..._0x2da9d1}),_0x2dea39;}function _0x10b5ff(_0xa6fb60,_0x56284c){const _0x1be637=_0x2eefbc;let _0x41ead5=_0x371b2d(_0xa6fb60);return delete _0x41ead5[_0x1be637(0x204)][_0x56284c],_0x41ead5;}function _0x40e65d(_0x3350f2){'@babel/helpers - typeof';const _0x206c99=_0x2eefbc;return _0x40e65d=typeof Symbol==_0x206c99(0x185)&&typeof Symbol[_0x206c99(0x1a7)]==_0x206c99(0x1b8)?function(_0x1db612){return typeof _0x1db612;}:function(_0x5b5dc5){const _0x3931fa=_0x206c99;return _0x5b5dc5&&typeof Symbol==_0x3931fa(0x185)&&_0x5b5dc5[_0x3931fa(0x160)]===Symbol&&_0x5b5dc5!==Symbol[_0x3931fa(0x1be)]?'symbol':typeof _0x5b5dc5;},_0x40e65d(_0x3350f2);}function _0x70b174(_0x19cc40,_0x6a8ef9){const _0x314e77=_0x2eefbc;if(_0x40e65d(_0x19cc40)!=_0x314e77(0x1aa)||!_0x19cc40)return _0x19cc40;var _0x4868fc=_0x19cc40[Symbol['toPrimitive']];if(_0x4868fc!==void 0x0){var _0x4adb3c=_0x4868fc[_0x314e77(0x181)](_0x19cc40,_0x6a8ef9||_0x314e77(0x212));if(_0x40e65d(_0x4adb3c)!=_0x314e77(0x1aa))return _0x4adb3c;throw TypeError(_0x314e77(0x166));}return(_0x6a8ef9===_0x314e77(0x1f2)?String:Number)(_0x19cc40);}function _0xeacb22(_0x582f29){const _0x203e5e=_0x2eefbc;var _0x5634ae=_0x70b174(_0x582f29,_0x203e5e(0x1f2));return _0x40e65d(_0x5634ae)==_0x203e5e(0x1b8)?_0x5634ae:_0x5634ae+'';}function _0x2572d1(_0x640f75,_0x451b6f,_0x47215a){const _0x169830=_0x2eefbc;return(_0x451b6f=_0xeacb22(_0x451b6f))in _0x640f75?Object[_0x169830(0x170)](_0x640f75,_0x451b6f,{'value':_0x47215a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x640f75[_0x451b6f]=_0x47215a,_0x640f75;}var _0x23b283=class extends _0x190c0c['Disposable']{constructor(..._0x23b5c5){const _0x5d8d4e=_0x2eefbc;super(..._0x23b5c5),_0x2572d1(this,'_resources',new Map()),_0x2572d1(this,_0x5d8d4e(0x1b6),new _0x43d3a9[(_0x5d8d4e(0x182))]()),_0x2572d1(this,_0x5d8d4e(0x1d9),this[_0x5d8d4e(0x1b6)][_0x5d8d4e(0x203)]());}['getCodeConfig'](_0x9fb93e,_0x2a1cba){const _0x19d82f=_0x2eefbc;return _0x371b2d(this[_0x19d82f(0x167)]['get'](_0x9fb93e))[_0x19d82f(0x204)][_0x2a1cba];}[_0x2eefbc(0x144)](_0x5642fc,_0x3469ed,_0x35f50a){const _0x2c3978=_0x2eefbc;this[_0x2c3978(0x1ea)](_0x5642fc,_0x3469ed,_0x4cda6d(this[_0x2c3978(0x167)]['get'](_0x5642fc),_0x3469ed,_0x35f50a));}[_0x2eefbc(0x205)](_0x3b6388,_0x276e36){const _0x19578a=_0x2eefbc;this[_0x19578a(0x1ea)](_0x3b6388,_0x276e36,_0x10b5ff(this['_resources'][_0x19578a(0x1c2)](_0x3b6388),_0x276e36));}[_0x2eefbc(0x1c4)](_0x4218ae){const _0x1bb54b=_0x2eefbc;return _0x371b2d(this[_0x1bb54b(0x167)]['get'](_0x4218ae));}['deserialize'](_0x18f1fb,_0x210b12){const _0x21f7ac=_0x2eefbc;this['_resources'][_0x21f7ac(0x200)](_0x18f1fb,_0x371b2d(_0x210b12)),this[_0x21f7ac(0x1b6)][_0x21f7ac(0x194)]({'unitId':_0x18f1fb});}[_0x2eefbc(0x14a)](_0x5ccf1){const _0x393046=_0x2eefbc;this[_0x393046(0x167)][_0x393046(0x1d2)](_0x5ccf1),this[_0x393046(0x1b6)][_0x393046(0x194)]({'unitId':_0x5ccf1});}[_0x2eefbc(0x1d1)](){const _0x3344bf=_0x2eefbc;super[_0x3344bf(0x1d1)](),this['_resources'][_0x3344bf(0x168)](),this[_0x3344bf(0x1b6)][_0x3344bf(0x1e9)]();}['_setResource'](_0x3c85d2,_0xc1fc35,_0x733f69){const _0x195900=_0x2eefbc;this[_0x195900(0x167)][_0x195900(0x200)](_0x3c85d2,_0x733f69),this[_0x195900(0x1b6)][_0x195900(0x194)]({'unitId':_0x3c85d2,'blockId':_0xc1fc35});}};let _0x1132ee={'id':_0x2eefbc(0x14f),'type':_0x190c0c[_0x2eefbc(0x209)][_0x2eefbc(0x15b)],'handler':(_0x2ce7b7,_0x2f41b5)=>!(_0x2f41b5!=null&&_0x2f41b5[_0x2eefbc(0x195)])||!_0x2f41b5['blockId']?!0x1:(_0x2ce7b7[_0x2eefbc(0x1c2)](_0x23b283)[_0x2eefbc(0x144)](_0x2f41b5['unitId'],_0x2f41b5[_0x2eefbc(0x1e5)],_0x2f41b5[_0x2eefbc(0x189)]),!0x0)},_0x5734cc={'id':'docs-code.mutation.remove-config','type':_0x190c0c[_0x2eefbc(0x209)]['MUTATION'],'handler':(_0x365861,_0x11cadc)=>!(_0x11cadc!=null&&_0x11cadc[_0x2eefbc(0x195)])||!_0x11cadc[_0x2eefbc(0x1e5)]?!0x1:(_0x365861[_0x2eefbc(0x1c2)](_0x23b283)[_0x2eefbc(0x205)](_0x11cadc['unitId'],_0x11cadc[_0x2eefbc(0x1e5)]),!0x0)},_0x2cba4d='monospace';var _0x2da518=class extends Error{constructor(_0x463e00='Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries'){super(_0x463e00);}};function _0x114801(_0x35c6dd){const _0x12d064=_0x2eefbc;var _0x23214a;let _0x150d95=_0x38378d(_0x35c6dd[_0x12d064(0x180)]),_0x4b83e6=_0x545ecc(_0x150d95),_0x56cc9b=_0x3494eb(_0x35c6dd[_0x12d064(0x14b)],_0x35c6dd['endOffset']),_0x2da841=_0x56cc9b?(_0x23214a=_0x4b83e6[_0x12d064(0x197)])==null?void 0x0:_0x23214a[_0x12d064(0x1c8)](_0x48efc9=>{const _0x320cf5=_0x12d064;let _0x3b5ed2=(0x0,_0x190c0c[_0x320cf5(0x19a)])(_0x48efc9);return _0x3b5ed2[_0x320cf5(0x14b)]===_0x56cc9b[_0x320cf5(0x14b)]&&_0x3b5ed2[_0x320cf5(0x1a9)]===_0x56cc9b['endOffset'];}):void 0x0,{startOffset:_0x503c22,endOffset:_0x20d575}=_0x2da841?_0x56cc9b:_0x4b71c9(_0x4b83e6,_0x35c6dd[_0x12d064(0x14b)],_0x35c6dd[_0x12d064(0x1a9)],_0x35c6dd[_0x12d064(0x150)]);if(!_0x2da841&&_0x12e9a4(_0x4b83e6,_0x503c22,_0x20d575))throw new _0x2da518(_0x12d064(0x191));let _0x3d2949=_0x5e2451(_0x4b83e6,_0x503c22,_0x20d575),_0x1758e5=(_0x2da841==null?void 0x0:_0x2da841[_0x12d064(0x1e5)])??_0x35c6dd[_0x12d064(0x1e5)],_0x4ec309=_0x4cda6d(_0x35c6dd['metadata'],_0x1758e5,{..._0x4562dc,..._0x35c6dd[_0x12d064(0x189)]});if(_0x2da841)return _0x2da841[_0x12d064(0x1fc)]=_0x190c0c[_0x12d064(0x18a)][_0x12d064(0x1a8)],_0x571233(_0x4b83e6,_0x503c22,_0x20d575),_0x2c8de4(_0x4b83e6,_0x503c22,_0x20d575,_0x3d2949),_0x378d4f(_0x4b83e6,_0x2da841),{'nextDocumentData':_0x150d95,'nextMetadata':_0x4ec309,'cursorOffset':_0x503c22+0x1};if(_0x503c22===_0x20d575){var _0x6b4d68,_0x2af9b6;let _0x52c66a=''+_0x190c0c[_0x12d064(0x1a4)][_0x12d064(0x1ff)]+_0x190c0c[_0x12d064(0x1a4)][_0x12d064(0x157)]+_0x190c0c[_0x12d064(0x1a4)][_0x12d064(0x1ae)];_0x3b6438(_0x4b83e6,_0x503c22,_0x52c66a,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,_0x190c0c[_0x12d064(0x1f3)])(new Set((_0x6b4d68=_0x4b83e6[_0x12d064(0x1b9)])==null?void 0x0:_0x6b4d68['map'](_0x5cf248=>_0x5cf248['paragraphId']))),'paragraphStyle':_0x235768(!0x0,!0x0,_0x3d2949)}],'blockRanges':[{'blockId':_0x1758e5,'blockType':_0x190c0c['DocumentBlockRangeType'][_0x12d064(0x1a8)],'startIndex':0x0,'endIndex':_0x52c66a[_0x12d064(0x1cc)]-0x1}]});let _0xc5945c=(_0x2af9b6=_0x4b83e6[_0x12d064(0x197)])==null?void 0x0:_0x2af9b6[_0x12d064(0x1c8)](_0x12dbbf=>_0x12dbbf['blockId']===_0x1758e5);return _0xc5945c&&_0x378d4f(_0x4b83e6,_0xc5945c),{'nextDocumentData':_0x150d95,'nextMetadata':_0x4ec309,'cursorOffset':_0x503c22+0x1};}_0x3b6438(_0x4b83e6,_0x20d575,_0x190c0c[_0x12d064(0x1a4)]['BLOCK_END']),_0x3b6438(_0x4b83e6,_0x503c22,_0x190c0c[_0x12d064(0x1a4)]['BLOCK_START']),_0x2c8de4(_0x4b83e6,_0x503c22,_0x20d575+0x1,_0x3d2949);let _0x47ccd7={'blockId':_0x1758e5,'blockType':_0x190c0c[_0x12d064(0x18a)][_0x12d064(0x1a8)],'startIndex':_0x503c22,'endIndex':_0x20d575+0x1};return _0x4b83e6['blockRanges']=[..._0x4b83e6[_0x12d064(0x197)]??[],_0x47ccd7][_0x12d064(0x1dc)]((_0x38bd62,_0x4d7bfc)=>_0x38bd62[_0x12d064(0x1b5)]-_0x4d7bfc[_0x12d064(0x1b5)]),_0x378d4f(_0x4b83e6,_0x47ccd7),{'nextDocumentData':_0x150d95,'nextMetadata':_0x4ec309,'cursorOffset':_0x503c22+0x1};}function _0x571233(_0x5e6184,_0xb42885,_0x3ffae9){const _0x2b2511=_0x2eefbc;(_0x5e6184['paragraphs']??[])['filter'](_0x32a0f1=>_0x32a0f1[_0x2b2511(0x1b5)]>_0xb42885&&_0x32a0f1['startIndex']<_0x3ffae9)[_0x2b2511(0x1ca)](_0x538df9=>{const _0x31a51f=_0x2b2511;let _0x218be5={..._0x538df9['paragraphStyle']??{}};delete _0x218be5[_0x31a51f(0x187)],delete _0x218be5[_0x31a51f(0x206)],_0x538df9[_0x31a51f(0x1b0)]=_0x218be5;});}function _0x3494eb(_0xad56d0,_0x6ab1d6){const _0x5a93b9=_0x2eefbc;return _0xad56d0==null||_0x6ab1d6==null||_0xad56d0===_0x6ab1d6?null:{'startOffset':Math[_0x5a93b9(0x1a1)](_0xad56d0,_0x6ab1d6),'endOffset':Math['max'](_0xad56d0,_0x6ab1d6)};}function _0x12e9a4(_0x5f3528,_0x483b52,_0x26cf48){const _0x260c0e=_0x2eefbc;return(_0x5f3528[_0x260c0e(0x197)]??[])['some'](_0x15a2ad=>{const _0xc52b71=_0x260c0e;let _0x1f737b=(0x0,_0x190c0c[_0xc52b71(0x19a)])(_0x15a2ad);return _0x483b52===_0x26cf48?(0x0,_0x190c0c[_0xc52b71(0x169)])(_0x1f737b,_0x483b52):(0x0,_0x190c0c[_0xc52b71(0x1c3)])(_0x1f737b,{'startOffset':_0x483b52,'endOffset':_0x26cf48});});}function _0x667cca(_0x1e56a1){const _0x26b315=_0x2eefbc;return{'nextDocumentData':_0x38378d(_0x1e56a1['documentData']),'nextMetadata':_0x4cda6d(_0x1e56a1[_0x26b315(0x15f)],_0x1e56a1[_0x26b315(0x1e5)],_0x1e56a1['config']),'cursorOffset':0x0};}function _0x18ccdd(_0x1b9acd){const _0x3436af=_0x2eefbc;let _0x3e7467=_0x38378d(_0x1b9acd[_0x3436af(0x180)]),_0x222c95=_0x545ecc(_0x3e7467),_0xb5a75b=_0x4d1381(_0x222c95,_0x1b9acd['blockId']);if(!_0xb5a75b)return null;let _0x26d6d4=_0x20ae16(_0x222c95,_0xb5a75b);return{'nextDocumentData':_0x3e7467,'nextMetadata':_0x10b5ff(_0x1b9acd[_0x3436af(0x15f)],_0x1b9acd[_0x3436af(0x1e5)]),'cursorOffset':_0x26d6d4};}function _0x1d782e(_0x1908e8){const _0x4e653b=_0x2eefbc;var _0x182e3e;let _0x24b7b7=_0x38378d(_0x1908e8[_0x4e653b(0x180)]),_0x28f136=_0x545ecc(_0x24b7b7),_0x479955=_0x4d1381(_0x28f136,_0x1908e8[_0x4e653b(0x1e5)]);if(!_0x479955)return null;let _0x2c3a0f=(0x0,_0x190c0c[_0x4e653b(0x19a)])(_0x479955);return _0x39e7dc(_0x28f136,_0x2c3a0f[_0x4e653b(0x14b)],_0x2c3a0f[_0x4e653b(0x1a9)]),_0x28f136[_0x4e653b(0x197)]=(_0x182e3e=_0x28f136[_0x4e653b(0x197)])==null?void 0x0:_0x182e3e['filter'](_0x3fd61e=>_0x3fd61e[_0x4e653b(0x1e5)]!==_0x1908e8['blockId']),{'nextDocumentData':_0x24b7b7,'nextMetadata':_0x10b5ff(_0x1908e8['metadata'],_0x1908e8[_0x4e653b(0x1e5)]),'cursorOffset':_0x479955['startIndex']};}function _0x24805f(_0x4ccc40){const _0x196b33=_0x2eefbc;let _0x3d19d1=_0x38378d(_0x4ccc40[_0x196b33(0x180)]),_0x3cc9bd=_0x545ecc(_0x3d19d1),_0x5c467f=_0x28a44f(_0x3cc9bd,_0x4ccc40[_0x196b33(0x179)]);return _0x5c467f&&_0x1665aa(_0x3d19d1,_0x3cc9bd,_0x5c467f,_0x4ccc40[_0x196b33(0x179)],_0x4ccc40['paragraphStartIndex'])||null;}function _0x1665aa(_0x5cb4df,_0x430de4,_0x1dcdfd,_0x37ae9c,_0x47bf6a){const _0x275e51=_0x2eefbc;let _0x4edf3e=_0x4ca6dd(_0x430de4,_0x1dcdfd,_0x37ae9c,_0x47bf6a);if(!_0x4edf3e)return null;let _0x2be05c=_0x4edf3e[_0x275e51(0x174)]-0x1;return _0x39e7dc(_0x430de4,_0x4edf3e['paragraph'][_0x275e51(0x1b5)],_0x4edf3e[_0x275e51(0x1ee)][_0x275e51(0x1b5)]+0x1),{'nextDocumentData':_0x5cb4df,'cursorOffset':_0x2be05c};}function _0x4d1381(_0x24b92b,_0x19e4ad){const _0x125bbb=_0x2eefbc;var _0xc27664;return _0x24b92b==null||(_0xc27664=_0x24b92b[_0x125bbb(0x197)])==null?void 0x0:_0xc27664[_0x125bbb(0x1c8)](_0x54c5c1=>_0x54c5c1[_0x125bbb(0x1fc)]===_0x190c0c[_0x125bbb(0x18a)][_0x125bbb(0x1a8)]&&_0x54c5c1['blockId']===_0x19e4ad);}function _0x26d918(_0x336091){const _0x4e296d=_0x2eefbc;let _0xce6d56=_0x336091[_0x4e296d(0x180)]['body'];if(!_0xce6d56)return!0x1;let _0x2a1263=_0x336091[_0x4e296d(0x1ad)]==='left'?_0x336091['cursorOffset']-0x1:_0x336091[_0x4e296d(0x179)],_0x244192=_0x336091['direction']===_0x4e296d(0x1c9)?_0x336091['cursorOffset']+0x1:_0x2a1263;return(_0xce6d56['blockRanges']??[])['some'](_0x33c5ca=>_0x33c5ca[_0x4e296d(0x1fc)]===_0x190c0c[_0x4e296d(0x18a)][_0x4e296d(0x1a8)]?_0x2a1263===_0x33c5ca[_0x4e296d(0x1b5)]||_0x2a1263===_0x33c5ca[_0x4e296d(0x164)]||_0x244192===_0x33c5ca[_0x4e296d(0x1b5)]||_0x244192===_0x33c5ca['endIndex']:!0x1);}function _0x28a44f(_0x55cce8,_0x37cf28){const _0x486f3b=_0x2eefbc;var _0x458ce1;return(_0x458ce1=_0x55cce8[_0x486f3b(0x197)])==null?void 0x0:_0x458ce1['find'](_0xed9e30=>{const _0x4dca3e=_0x486f3b;let _0x221c12=_0x8d741a(_0xed9e30);return _0xed9e30[_0x4dca3e(0x1fc)]===_0x190c0c[_0x4dca3e(0x18a)][_0x4dca3e(0x1a8)]&&_0xed9e30[_0x4dca3e(0x1b5)]<=_0x37cf28&&_0x37cf28<=_0x221c12+0x2;});}function _0x235768(_0x2e41a5,_0x5b4590,_0x452a2e=!0x1){const _0x45b08c=_0x2eefbc;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x190c0c[_0x45b08c(0x1ac)][_0x45b08c(0x21b)],'keepNext':_0x5b4590?_0x190c0c['BooleanNumber'][_0x45b08c(0x172)]:_0x190c0c[_0x45b08c(0x1ac)][_0x45b08c(0x21b)],'widowControl':_0x190c0c[_0x45b08c(0x1ac)][_0x45b08c(0x21b)],..._0x2e41a5&&_0x452a2e?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':_0x2cba4d,'fs':0xc}};}function _0x2c8de4(_0x1662db,_0x525229,_0x4e432e,_0x484941=!0x1){const _0x7446ab=_0x2eefbc;let _0x909927=(_0x1662db[_0x7446ab(0x1b9)]??[])[_0x7446ab(0x1a5)](_0x1a9634=>_0x1a9634[_0x7446ab(0x1b5)]>_0x525229&&_0x1a9634['startIndex']<_0x4e432e);_0x909927['forEach']((_0x4bf651,_0x7105b0)=>{const _0xc2cf18=_0x7446ab;_0x4bf651['paragraphStyle']={..._0x4bf651[_0xc2cf18(0x1b0)]??{},..._0x235768(_0x7105b0===0x0,_0x7105b0===_0x909927[_0xc2cf18(0x1cc)]-0x1,_0x484941)};});}function _0x2b1180(_0x216311){const _0x3d04f5=_0x2eefbc;var _0xa6a5c5,_0x5b7340;let _0x2fd4b8={..._0x216311??{}};return delete _0x2fd4b8[_0x3d04f5(0x1f7)],delete _0x2fd4b8[_0x3d04f5(0x19f)],delete _0x2fd4b8[_0x3d04f5(0x187)],delete _0x2fd4b8[_0x3d04f5(0x206)],delete _0x2fd4b8[_0x3d04f5(0x20b)],delete _0x2fd4b8['keepNext'],delete _0x2fd4b8['widowControl'],((_0xa6a5c5=_0x2fd4b8[_0x3d04f5(0x1f0)])==null?void 0x0:_0xa6a5c5['ff'])===_0x2cba4d&&((_0x5b7340=_0x2fd4b8[_0x3d04f5(0x1f0)])==null?void 0x0:_0x5b7340['fs'])===0xc&&delete _0x2fd4b8[_0x3d04f5(0x1f0)],_0x2fd4b8;}function _0xf03f00(_0x53aa64,_0x53dfbf){const _0x2c287e=_0x2eefbc;let _0x10e0ca=_0x8d741a(_0x53dfbf);return(_0x53aa64[_0x2c287e(0x1b9)]??[])[_0x2c287e(0x1a5)](_0x1218bb=>_0x1218bb[_0x2c287e(0x1b5)]>_0x53dfbf['startIndex']&&_0x1218bb[_0x2c287e(0x1b5)]<_0x10e0ca);}function _0x20ae16(_0xa32f5d,_0x558200){const _0x482583=_0x2eefbc;var _0x3a2f34;let _0x54b90c=_0x8d741a(_0x558200);return _0xf03f00(_0xa32f5d,_0x558200)['forEach'](_0x987816=>{const _0x53bbc8=_0x4684;_0x987816[_0x53bbc8(0x1b0)]=_0x2b1180(_0x987816[_0x53bbc8(0x1b0)]);}),_0x39e7dc(_0xa32f5d,_0x54b90c,_0x54b90c+0x1),_0x39e7dc(_0xa32f5d,_0x558200[_0x482583(0x1b5)],_0x558200['startIndex']+0x1),_0xa32f5d[_0x482583(0x197)]=(_0x3a2f34=_0xa32f5d[_0x482583(0x197)])==null?void 0x0:_0x3a2f34[_0x482583(0x1a5)](_0xd22436=>_0xd22436[_0x482583(0x1e5)]!==_0x558200[_0x482583(0x1e5)]),_0x558200['startIndex'];}function _0x38378d(_0x402c0e){const _0x443593=_0x2eefbc;return{..._0x402c0e,'body':_0x402c0e[_0x443593(0x178)]?_0x4c0837(_0x402c0e[_0x443593(0x178)]):_0x402c0e[_0x443593(0x178)]};}function _0x4c0837(_0x38e293){const _0x4c1394=_0x2eefbc;var _0x3a5e67,_0x3570a6,_0x1e1235,_0x8f53f1,_0x49ad99,_0x5488cf,_0x15d727,_0x75158d,_0xf88ec0;return{..._0x38e293,'paragraphs':(_0x3a5e67=_0x38e293['paragraphs'])==null?void 0x0:_0x3a5e67['map'](_0x2af636=>({..._0x2af636,'bullet':_0x51848b(_0x2af636[_0x4c1394(0x1eb)]),'paragraphStyle':_0x51848b(_0x2af636[_0x4c1394(0x1b0)])})),'sectionBreaks':(_0x3570a6=_0x38e293[_0x4c1394(0x184)])==null?void 0x0:_0x3570a6[_0x4c1394(0x1c6)](_0x4c7a02=>({..._0x4c7a02})),'textRuns':(_0x1e1235=_0x38e293[_0x4c1394(0x207)])==null?void 0x0:_0x1e1235[_0x4c1394(0x1c6)](_0x194127=>({..._0x194127})),'tables':(_0x8f53f1=_0x38e293['tables'])==null?void 0x0:_0x8f53f1['map'](_0x2bcf9e=>({..._0x2bcf9e})),'columnGroups':(_0x49ad99=_0x38e293[_0x4c1394(0x1c0)])==null?void 0x0:_0x49ad99[_0x4c1394(0x1c6)](_0x19afcf=>{const _0x408979=_0x4c1394;var _0x40ee3a;return{..._0x19afcf,'columns':(_0x40ee3a=_0x19afcf[_0x408979(0x1e3)])==null?void 0x0:_0x40ee3a[_0x408979(0x1c6)](_0x3b6db=>_0x51848b(_0x3b6db))};}),'blockRanges':(_0x5488cf=_0x38e293[_0x4c1394(0x197)])==null?void 0x0:_0x5488cf[_0x4c1394(0x1c6)](_0xb2b341=>({..._0xb2b341})),'customRanges':(_0x15d727=_0x38e293[_0x4c1394(0x1f5)])==null?void 0x0:_0x15d727['map'](_0x308542=>({..._0x308542})),'customDecorations':(_0x75158d=_0x38e293[_0x4c1394(0x1cf)])==null?void 0x0:_0x75158d['map'](_0x9dbd8=>({..._0x9dbd8})),'customBlocks':(_0xf88ec0=_0x38e293[_0x4c1394(0x1bb)])==null?void 0x0:_0xf88ec0['map'](_0x56841c=>({..._0x56841c}))};}function _0x51848b(_0x23dd58){const _0x571a6e=_0x2eefbc;return Array[_0x571a6e(0x15a)](_0x23dd58)?_0x23dd58[_0x571a6e(0x1c6)](_0x166ce1=>_0x51848b(_0x166ce1)):!_0x23dd58||typeof _0x23dd58!=_0x571a6e(0x1aa)?_0x23dd58:Object[_0x571a6e(0x17e)](Object[_0x571a6e(0x161)](_0x23dd58)['map'](([_0x498114,_0x2cca92])=>[_0x498114,_0x51848b(_0x2cca92)]));}function _0x545ecc(_0x32663d){const _0x1fc41f=_0x2eefbc;if(!_0x32663d[_0x1fc41f(0x178)])throw Error(_0x1fc41f(0x1fd));return _0x32663d['body'];}function _0x4b71c9(_0x268bf8,_0x61877,_0x55836e,_0x4d6b25=_0x2eefbc(0x202)){const _0x124012=_0x2eefbc;if(_0x61877==null||_0x55836e==null){let _0x240179=_0x2c4ad7(_0x268bf8);return{'startOffset':_0x240179,'endOffset':_0x240179};}let _0x401a4b=Math[_0x124012(0x1a1)](_0x61877,_0x55836e),_0x28d6f5=Math['max'](_0x61877,_0x55836e),_0x1cf465=_0x19218a(_0x268bf8,_0x401a4b,_0x28d6f5);return _0x401a4b===_0x28d6f5?_0x4d6b25===_0x124012(0x14d)?{'startOffset':_0x401a4b,'endOffset':_0x28d6f5}:_0x41647e(_0x268bf8,_0x401a4b,_0x1cf465):_0x389d04(_0x268bf8,_0x401a4b,_0x28d6f5,_0x1cf465);}function _0x41647e(_0x316709,_0x2bc412,_0x54dee5){const _0x5a6093=_0x2eefbc;let _0x178ce4=_0x396546(_0x316709,_0x2bc412);if(_0x178ce4){let _0x133f51=_0x5f2971(_0x316709,_0x178ce4,_0x54dee5);if(_0x133f51<_0x178ce4[_0x5a6093(0x1b5)])return{'startOffset':_0x133f51,'endOffset':_0x54dee5?Math[_0x5a6093(0x1a1)](_0x178ce4[_0x5a6093(0x1b5)]+0x1,_0x54dee5[_0x5a6093(0x1a9)]):_0x178ce4[_0x5a6093(0x1b5)]+0x1};}let _0x40f0e0=_0x2bc412===0x0&&_0x316709[_0x5a6093(0x20a)][0x0]===_0x190c0c[_0x5a6093(0x1a4)][_0x5a6093(0x157)]?0x1:_0x2bc412;return{'startOffset':_0x40f0e0,'endOffset':_0x40f0e0};}function _0x2c4ad7(_0x54802c){const _0x24b643=_0x2eefbc;return _0x54802c['dataStream']['endsWith'](_0x190c0c[_0x24b643(0x1a4)]['SECTION_BREAK'])?Math['max'](0x0,_0x54802c['dataStream']['length']-0x1):_0x54802c['dataStream'][_0x24b643(0x1cc)];}function _0x5e2451(_0x5f444d,_0x31edc6,_0x1a2d7b){const _0x1f33b9=_0x2eefbc;var _0x1af8fb;let _0x50316f=Math[_0x1f33b9(0x1a1)](_0x31edc6,_0x1a2d7b),_0x215172=Math['max'](_0x31edc6,_0x1a2d7b);return!!((_0x1af8fb=_0x5f444d[_0x1f33b9(0x1a3)])!=null&&_0x1af8fb[_0x1f33b9(0x1e4)](_0x491f0d=>_0x50316f>_0x491f0d['startIndex']&&_0x50316f<_0x491f0d[_0x1f33b9(0x164)]||_0x215172>_0x491f0d[_0x1f33b9(0x1b5)]&&_0x215172<_0x491f0d[_0x1f33b9(0x164)]||_0x50316f<=_0x491f0d[_0x1f33b9(0x1b5)]&&_0x215172>=_0x491f0d['endIndex']));}function _0x389d04(_0x51dbeb,_0x4510d4,_0x4dcbbd,_0x20ce9a){const _0x1149ce=_0x2eefbc;let _0x4d2473=[..._0x51dbeb[_0x1149ce(0x1b9)]??[]][_0x1149ce(0x1dc)]((_0x4d8264,_0x3d79c5)=>_0x4d8264[_0x1149ce(0x1b5)]-_0x3d79c5['startIndex']),_0x28b389=(0x0,_0x190c0c[_0x1149ce(0x16c)])(_0x51dbeb),_0xefcb00=_0x4d2473[_0x1149ce(0x1c8)](_0x26f939=>_0x5f2971(_0x51dbeb,_0x26f939,_0x20ce9a,_0x28b389)<=_0x4510d4&&_0x4510d4<=_0x26f939[_0x1149ce(0x1b5)]),_0x190c40=_0x4d2473[_0x1149ce(0x1c8)](_0x529cfa=>_0x529cfa[_0x1149ce(0x1b5)]>=_0x4dcbbd-0x1)??_0x4d2473[_0x4d2473[_0x1149ce(0x1cc)]-0x1];return{'startOffset':_0xefcb00?_0x5f2971(_0x51dbeb,_0xefcb00,_0x20ce9a,_0x28b389):_0x4510d4,'endOffset':_0x190c40?_0x134479(_0x190c40,_0x20ce9a):_0x4dcbbd};}function _0x396546(_0x50a9cb,_0x58f639){const _0x5427bd=_0x2eefbc;let _0x13e340=[..._0x50a9cb[_0x5427bd(0x1b9)]??[]]['sort']((_0x477d9d,_0x3b5287)=>_0x477d9d['startIndex']-_0x3b5287[_0x5427bd(0x1b5)]),_0xd828eb=(0x0,_0x190c0c[_0x5427bd(0x16c)])(_0x50a9cb);return _0x13e340[_0x5427bd(0x1c8)](_0x53593b=>(_0xd828eb[_0x5427bd(0x1c2)](_0x53593b['startIndex'])??0x0)<=_0x58f639&&_0x58f639<=_0x53593b[_0x5427bd(0x1b5)]);}function _0x5f2971(_0xcbdaa0,_0x2cbff0,_0x281113,_0x396a9a){const _0x5bbaa5=_0x2eefbc;let _0x417799=(_0x396a9a==null?void 0x0:_0x396a9a[_0x5bbaa5(0x1c2)](_0x2cbff0[_0x5bbaa5(0x1b5)]))??(0x0,_0x190c0c[_0x5bbaa5(0x1d0)])(_0xcbdaa0,_0x2cbff0);return _0x281113?Math[_0x5bbaa5(0x1f4)](_0x417799,_0x281113[_0x5bbaa5(0x14b)]):_0x417799;}function _0x134479(_0x4714a2,_0x300bc9){const _0x3c8b56=_0x2eefbc;let _0x23d0d9=_0x4714a2[_0x3c8b56(0x1b5)]+0x1;return _0x300bc9?Math[_0x3c8b56(0x1a1)](_0x23d0d9,_0x300bc9['endOffset']):_0x23d0d9;}function _0x19218a(_0x32640c,_0x4d39f6,_0x4a973e){const _0x5cf606=_0x2eefbc;let _0x108d4f=_0x427abb(_0x32640c,_0x4d39f6),_0x1d0f4e=_0x427abb(_0x32640c,_0x4d39f6===_0x4a973e?_0x4a973e:Math[_0x5cf606(0x1f4)](_0x4d39f6,_0x4a973e-0x1));if(_0x108d4f||_0x1d0f4e){if(!_0x108d4f||!_0x1d0f4e||_0x108d4f['startTokenOffset']!==_0x1d0f4e[_0x5cf606(0x143)]||_0x108d4f[_0x5cf606(0x174)]!==_0x1d0f4e[_0x5cf606(0x174)])throw new _0x2da518();return _0x108d4f;}}function _0x427abb(_0x12c041,_0x4154d7){const _0x5ba99e=_0x2eefbc;let _0x57be56=_0x12c041['dataStream'],_0x473153=-0x1;for(let _0x23bba0=Math[_0x5ba99e(0x1a1)](_0x4154d7,_0x57be56[_0x5ba99e(0x1cc)]-0x1);_0x23bba0>=0x0;_0x23bba0--){let _0x21c11d=_0x57be56[_0x23bba0];if(_0x21c11d===_0x190c0c[_0x5ba99e(0x1a4)][_0x5ba99e(0x1db)])return;if(_0x21c11d===_0x190c0c['DataStreamTreeTokenType'][_0x5ba99e(0x162)]){_0x473153=_0x23bba0;break;}}if(_0x473153<0x0)return;let _0x2b000e=_0x57be56['indexOf'](_0x190c0c[_0x5ba99e(0x1a4)][_0x5ba99e(0x1db)],_0x473153+0x1);if(!(_0x2b000e<0x0||_0x4154d7<_0x473153+0x1||_0x4154d7>_0x2b000e-0x1))return{'startOffset':_0x473153+0x1,'endOffset':Math['max'](_0x473153+0x1,_0x2b000e-0x1),'startTokenOffset':_0x473153,'endTokenOffset':_0x2b000e};}function _0x8d741a(_0x39f310){const _0x38751c=_0x2eefbc;return(0x0,_0x190c0c[_0x38751c(0x19a)])(_0x39f310)['endOffset']-0x1;}function _0x4ca6dd(_0x1947d7,_0x36c81d,_0x3444b5,_0x56be41){const _0x4e7b6b=_0x2eefbc;let _0x47641b=_0x8d741a(_0x36c81d),_0xc27511=(_0x1947d7['paragraphs']??[])[_0x4e7b6b(0x1c8)](_0x743d93=>_0x743d93['startIndex']===_0x47641b+0x1);if(!_0xc27511||_0x56be41!=null&&_0xc27511[_0x4e7b6b(0x1b5)]!==_0x56be41||_0x3444b5!=null&&(_0x3444b5<_0x47641b||_0x3444b5>_0xc27511[_0x4e7b6b(0x1b5)]+0x1)||_0x1947d7[_0x4e7b6b(0x20a)][_0xc27511[_0x4e7b6b(0x1b5)]]!==_0x190c0c['DataStreamTreeTokenType'][_0x4e7b6b(0x157)])return null;let _0x3066d5=(0x0,_0x190c0c[_0x4e7b6b(0x1d0)])(_0x1947d7,_0xc27511),_0x58e0f0=_0x1947d7[_0x4e7b6b(0x20a)][_0x4e7b6b(0x18b)](_0x3066d5,_0xc27511[_0x4e7b6b(0x1b5)]);return Array[_0x4e7b6b(0x175)](_0x58e0f0)[_0x4e7b6b(0x173)](_0x20567a=>_0x20567a===_0x190c0c[_0x4e7b6b(0x1a4)][_0x4e7b6b(0x1ae)])?{'paragraph':_0xc27511,'endTokenOffset':_0x47641b}:null;}function _0x378d4f(_0x34aa45,_0x3e25ff){const _0x383a4c=_0x2eefbc;var _0x1ad2d4;let _0x44610a=_0x8d741a(_0x3e25ff),_0x414ecd=_0x34aa45['dataStream'][_0x44610a+0x1];(_0x414ecd===_0x190c0c[_0x383a4c(0x1a4)][_0x383a4c(0x1a6)]||_0x414ecd===void 0x0)&&_0x3b6438(_0x34aa45,_0x44610a+0x1,_0x190c0c['DataStreamTreeTokenType'][_0x383a4c(0x157)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,_0x190c0c['createParagraphId'])(new Set((_0x1ad2d4=_0x34aa45[_0x383a4c(0x1b9)])==null?void 0x0:_0x1ad2d4['map'](_0x35fc92=>_0x35fc92[_0x383a4c(0x1b1)])))}]});}function _0x3b6438(_0x20d1aa,_0x2cd45a,_0x594054,_0xc2daa0={}){const _0x1e6236=_0x2eefbc;var _0x5ba80c,_0x15740c;_0x594054&&(_0x20d1aa['dataStream']=''+_0x20d1aa[_0x1e6236(0x20a)][_0x1e6236(0x18b)](0x0,_0x2cd45a)+_0x594054+_0x20d1aa[_0x1e6236(0x20a)][_0x1e6236(0x18b)](_0x2cd45a),_0x4eabeb(_0x20d1aa,_0x2cd45a,_0x594054['length']),(_0x5ba80c=_0xc2daa0[_0x1e6236(0x1b9)])!=null&&_0x5ba80c['length']&&(_0x20d1aa[_0x1e6236(0x1b9)]=[..._0x20d1aa[_0x1e6236(0x1b9)]??[],..._0xc2daa0[_0x1e6236(0x1b9)]['map'](_0x164c75=>({..._0x164c75,'startIndex':_0x164c75[_0x1e6236(0x1b5)]+_0x2cd45a}))]['sort']((_0x50fc4d,_0x273b34)=>_0x50fc4d[_0x1e6236(0x1b5)]-_0x273b34['startIndex'])),(_0x15740c=_0xc2daa0[_0x1e6236(0x197)])!=null&&_0x15740c['length']&&(_0x20d1aa[_0x1e6236(0x197)]=[..._0x20d1aa[_0x1e6236(0x197)]??[],..._0xc2daa0[_0x1e6236(0x197)][_0x1e6236(0x1c6)](_0x8dae6d=>({..._0x8dae6d,'startIndex':_0x8dae6d[_0x1e6236(0x1b5)]+_0x2cd45a,'endIndex':_0x8dae6d[_0x1e6236(0x164)]+_0x2cd45a}))][_0x1e6236(0x1dc)]((_0x8344da,_0x5e76b6)=>_0x8344da[_0x1e6236(0x1b5)]-_0x5e76b6['startIndex'])));}function _0x39e7dc(_0x120b72,_0x37651b,_0x52c871){const _0x5a3d72=_0x2eefbc;let _0x34657d=_0x52c871-_0x37651b;_0x120b72[_0x5a3d72(0x20a)]=''+_0x120b72[_0x5a3d72(0x20a)][_0x5a3d72(0x18b)](0x0,_0x37651b)+_0x120b72[_0x5a3d72(0x20a)][_0x5a3d72(0x18b)](_0x52c871),_0x15866c(_0x120b72,_0x37651b,_0x34657d);}function _0x4eabeb(_0x58e83a,_0x3e18f9,_0x40cbcb){const _0x250b91=_0x2eefbc;_0x58e83a['paragraphs']=_0x4bf94f(_0x58e83a['paragraphs'],_0x3e18f9,_0x40cbcb),_0x58e83a[_0x250b91(0x184)]=_0x4bf94f(_0x58e83a['sectionBreaks'],_0x3e18f9,_0x40cbcb),_0x58e83a[_0x250b91(0x1bb)]=_0x4bf94f(_0x58e83a[_0x250b91(0x1bb)],_0x3e18f9,_0x40cbcb),_0x58e83a[_0x250b91(0x207)]=_0x50b247(_0x58e83a[_0x250b91(0x207)],_0x3e18f9,_0x40cbcb),_0x58e83a[_0x250b91(0x1a3)]=_0x4a021c(_0x58e83a[_0x250b91(0x1a3)],_0x3e18f9,_0x40cbcb),_0x58e83a[_0x250b91(0x1c0)]=_0x48dc2a(_0x58e83a[_0x250b91(0x1c0)],_0x3e18f9,_0x40cbcb),_0x58e83a[_0x250b91(0x1f5)]=_0x48dc2a(_0x58e83a[_0x250b91(0x1f5)],_0x3e18f9,_0x40cbcb),_0x58e83a[_0x250b91(0x1cf)]=_0x48dc2a(_0x58e83a['customDecorations'],_0x3e18f9,_0x40cbcb),_0x58e83a['blockRanges']=_0x48dc2a(_0x58e83a[_0x250b91(0x197)],_0x3e18f9,_0x40cbcb);}function _0x15866c(_0x2bb05e,_0x580a46,_0x5357c9){const _0x1d301c=_0x2eefbc;var _0x30b43a,_0x4af10d;_0x2bb05e[_0x1d301c(0x1b9)]=_0x3a77da(_0x2bb05e[_0x1d301c(0x1b9)],_0x580a46,_0x5357c9),_0x2bb05e[_0x1d301c(0x184)]=_0x3a77da(_0x2bb05e[_0x1d301c(0x184)],_0x580a46,_0x5357c9),_0x2bb05e[_0x1d301c(0x1bb)]=_0x3a77da(_0x2bb05e[_0x1d301c(0x1bb)],_0x580a46,_0x5357c9),_0x2bb05e['textRuns']=(_0x30b43a=_0x30ce7e((_0x4af10d=_0x2bb05e[_0x1d301c(0x207)])==null?void 0x0:_0x4af10d['map'](_0x638f7b=>({..._0x638f7b,'startIndex':_0x638f7b['st'],'endIndex':_0x638f7b['ed']})),_0x580a46,_0x5357c9))==null?void 0x0:_0x30b43a[_0x1d301c(0x1c6)](_0x43d6d4=>{let {startIndex:_0x557f7b,endIndex:_0x4b1ab7,..._0x213f1e}=_0x43d6d4;return{..._0x213f1e,'st':_0x557f7b,'ed':_0x4b1ab7};}),_0x2bb05e[_0x1d301c(0x1a3)]=_0x30ce7e(_0x2bb05e[_0x1d301c(0x1a3)],_0x580a46,_0x5357c9),_0x2bb05e['columnGroups']=_0x3240b4(_0x2bb05e[_0x1d301c(0x1c0)],_0x580a46,_0x5357c9),_0x2bb05e[_0x1d301c(0x1f5)]=_0x3240b4(_0x2bb05e[_0x1d301c(0x1f5)],_0x580a46,_0x5357c9),_0x2bb05e[_0x1d301c(0x1cf)]=_0x3240b4(_0x2bb05e['customDecorations'],_0x580a46,_0x5357c9),_0x2bb05e[_0x1d301c(0x197)]=_0x3240b4(_0x2bb05e[_0x1d301c(0x197)],_0x580a46,_0x5357c9);}function _0x4bf94f(_0x2b7945,_0x1f2586,_0xa4f6f0){const _0x34f718=_0x2eefbc;return _0x2b7945==null?void 0x0:_0x2b7945[_0x34f718(0x1c6)](_0x250c5b=>_0x250c5b[_0x34f718(0x1b5)]>=_0x1f2586?{..._0x250c5b,'startIndex':_0x250c5b['startIndex']+_0xa4f6f0}:_0x250c5b);}function _0x3a77da(_0x36ecb1,_0x6c9db3,_0x4493e1){const _0x5481f6=_0x2eefbc;let _0xa1f427=_0x6c9db3+_0x4493e1;return _0x36ecb1==null?void 0x0:_0x36ecb1[_0x5481f6(0x1c6)](_0x5c0286=>_0x5c0286[_0x5481f6(0x1b5)]>=_0x6c9db3&&_0x5c0286['startIndex']<_0xa1f427?null:_0x5c0286[_0x5481f6(0x1b5)]>=_0xa1f427?{..._0x5c0286,'startIndex':_0x5c0286[_0x5481f6(0x1b5)]-_0x4493e1}:_0x5c0286)[_0x5481f6(0x1a5)](_0x36d255=>_0x36d255!=null);}function _0x50b247(_0x33e187,_0xf54331,_0x4f99db){return _0x33e187==null?void 0x0:_0x33e187['map'](_0x31795e=>_0x31795e['st']>=_0xf54331?{..._0x31795e,'st':_0x31795e['st']+_0x4f99db,'ed':_0x31795e['ed']+_0x4f99db}:_0x31795e['ed']>_0xf54331?{..._0x31795e,'ed':_0x31795e['ed']+_0x4f99db}:_0x31795e);}function _0x48dc2a(_0x29805b,_0x3b1098,_0x18a176){const _0x1d3a44=_0x2eefbc;return _0x29805b==null?void 0x0:_0x29805b[_0x1d3a44(0x1c6)](_0x58bc44=>(0x0,_0x190c0c[_0x1d3a44(0x1b7)])(_0x58bc44,_0x3b1098,_0x18a176));}function _0x4a021c(_0x45d0ee,_0x59f802,_0x50a57f){const _0x348289=_0x2eefbc;return _0x45d0ee==null?void 0x0:_0x45d0ee[_0x348289(0x1c6)](_0x26bf37=>(0x0,_0x190c0c[_0x348289(0x1c7)])(_0x26bf37,_0x59f802,_0x50a57f));}function _0x3240b4(_0x1ccdff,_0x40f5e6,_0x4a3d46){const _0x5aea27=_0x2eefbc;return _0x1ccdff==null?void 0x0:_0x1ccdff['map'](_0x23e170=>(0x0,_0x190c0c['shiftInclusiveRangeOnDelete'])(_0x23e170,_0x40f5e6,_0x4a3d46))[_0x5aea27(0x1a5)](_0x2cfc21=>_0x2cfc21!=null);}function _0x30ce7e(_0x5c2b58,_0x5778c1,_0x25bd32){const _0x2bdd31=_0x2eefbc;return _0x5c2b58==null?void 0x0:_0x5c2b58['map'](_0x32a675=>(0x0,_0x190c0c[_0x2bdd31(0x1fa)])(_0x32a675,_0x5778c1,_0x25bd32))[_0x2bdd31(0x1a5)](_0x2d43c6=>_0x2d43c6!=null);}let _0x376966={'id':_0x2eefbc(0x17d),'type':_0x190c0c['CommandType'][_0x2eefbc(0x21a)],'handler':_0x2ef7d5=>{const _0x394de1=_0x2eefbc;var _0x455782;if((0x0,_0x44c43b[_0x394de1(0x17f)])(_0x26c0e9(_0x2ef7d5)))return!0x1;let _0x5df78d=(0x0,_0x44c43b[_0x394de1(0x214)])(_0x2ef7d5);if(_0x5df78d)return _0x2ef7d5['get'](_0x190c0c[_0x394de1(0x142)])[_0x394de1(0x152)](_0x2c1a69['id'],{'startOffset':_0x5df78d['startOffset'],'endOffset':_0x5df78d['endOffset'],'insertionMode':_0x394de1(0x14d),'unitId':_0x5df78d[_0x394de1(0x195)]});let _0x2d9293=_0x4ad115(_0x2ef7d5);if(!_0x2d9293)return!0x1;let _0x3b4dfa=(_0x455782=_0x2ef7d5[_0x394de1(0x1c2)](_0x190c0c[_0x394de1(0x1a2)])[_0x394de1(0x183)](_0x190c0c[_0x394de1(0x146)][_0x394de1(0x1f6)]))==null?void 0x0:_0x455782[_0x394de1(0x19e)](),_0x56ec68=_0x3b4dfa?(0x0,_0x190c0c[_0x394de1(0x190)])(_0x3b4dfa,_0x2d9293):_0x2d9293['startIndex']+0x1;return _0x2ef7d5['get'](_0x190c0c[_0x394de1(0x142)])[_0x394de1(0x152)](_0x2c1a69['id'],{'startOffset':_0x56ec68,'endOffset':_0x56ec68});}},_0x24f957={'id':'docs-code.command.consume-boundary-delete','type':_0x190c0c[_0x2eefbc(0x209)][_0x2eefbc(0x21a)],'handler':()=>!0x0},_0x2c1a69={'id':'docs-code.command.insert','type':_0x190c0c[_0x2eefbc(0x209)][_0x2eefbc(0x21a)],'handler':(_0x3de786,_0x30845e)=>{const _0x2f6dbf=_0x2eefbc;let _0x33d808=_0x38b19b(_0x3de786,_0x30845e==null?void 0x0:_0x30845e[_0x2f6dbf(0x195)]);if(!_0x33d808)return!0x1;let _0x5bfc38=_0x26c0e9(_0x3de786);if((0x0,_0x44c43b[_0x2f6dbf(0x17f)])(_0x5bfc38))return!0x1;let _0x5c9629=_0x33d808[_0x2f6dbf(0x1b4)][_0x2f6dbf(0x1c4)](_0x33d808['unitId']),_0x53986d=_0x4dd7d8(_0x30845e,_0x5bfc38),_0x46ed24=_0x5f503d(_0x33d808[_0x2f6dbf(0x165)],_0x53986d);if(_0x46ed24){if(_0x46ed24['blockType']!==_0x190c0c[_0x2f6dbf(0x18a)]['CODE'])return!0x1;let _0x129f1e=_0x18ccdd({'blockId':_0x46ed24['blockId'],'documentData':_0x33d808[_0x2f6dbf(0x165)],'metadata':_0x5c9629});if(!_0x129f1e)return!0x1;let _0x30aae2=_0x39ffd5(_0x33d808['commandService'],_0x33d808[_0x2f6dbf(0x159)],_0x33d808[_0x2f6dbf(0x195)],_0x33d808[_0x2f6dbf(0x165)],_0x129f1e[_0x2f6dbf(0x16a)],_0x2c1a69['id'],_0x129f1e[_0x2f6dbf(0x179)]);return _0x30aae2&&_0x129f1e[_0x2f6dbf(0x16d)]&&_0x33d808[_0x2f6dbf(0x1b4)][_0x2f6dbf(0x199)](_0x33d808[_0x2f6dbf(0x195)],_0x129f1e['nextMetadata']),_0x30aae2;}let _0x1ddd06=(_0x30845e==null?void 0x0:_0x30845e[_0x2f6dbf(0x1e5)])??(0x0,_0x190c0c['generateRandomId'])(0x6),_0x2a6f50;try{_0x2a6f50=_0x114801({'blockId':_0x1ddd06,'config':_0x30845e==null?void 0x0:_0x30845e['config'],'documentData':_0x33d808['previousDocumentData'],'endOffset':_0x53986d==null?void 0x0:_0x53986d[_0x2f6dbf(0x1a9)],'insertionMode':_0x30845e==null?void 0x0:_0x30845e[_0x2f6dbf(0x150)],'metadata':_0x5c9629,'startOffset':_0x53986d==null?void 0x0:_0x53986d[_0x2f6dbf(0x14b)]});}catch(_0x555b7f){if(_0x555b7f instanceof _0x2da518)return!0x1;throw _0x555b7f;}let _0x135f99=_0x39ffd5(_0x33d808[_0x2f6dbf(0x193)],_0x33d808[_0x2f6dbf(0x159)],_0x33d808[_0x2f6dbf(0x195)],_0x33d808[_0x2f6dbf(0x165)],_0x2a6f50[_0x2f6dbf(0x16a)],_0x2c1a69['id'],_0x2a6f50['cursorOffset']);return _0x135f99&&_0x2a6f50['nextMetadata']&&_0x33d808[_0x2f6dbf(0x1b4)][_0x2f6dbf(0x199)](_0x33d808[_0x2f6dbf(0x195)],_0x2a6f50[_0x2f6dbf(0x16d)]),_0x135f99;}},_0x45e4fa={'id':'docs-code.command.update','type':_0x190c0c[_0x2eefbc(0x209)][_0x2eefbc(0x21a)],'handler':(_0x1817aa,_0x4582d8)=>{const _0x7807ea=_0x2eefbc;if(!_0x4582d8)return!0x1;let _0x250590=_0x38b19b(_0x1817aa,_0x4582d8['unitId']);if(!_0x250590)return!0x1;let _0x28b294=_0x667cca({'blockId':_0x4582d8[_0x7807ea(0x1e5)],'config':_0x4582d8[_0x7807ea(0x189)],'documentData':_0x250590[_0x7807ea(0x165)],'metadata':_0x250590[_0x7807ea(0x1b4)][_0x7807ea(0x1c4)](_0x250590[_0x7807ea(0x195)])});return _0x28b294['nextMetadata']&&_0x250590[_0x7807ea(0x1b4)]['deserialize'](_0x250590[_0x7807ea(0x195)],_0x28b294['nextMetadata']),!0x0;}},_0xf577ac={'id':_0x2eefbc(0x1fe),'type':_0x190c0c[_0x2eefbc(0x209)]['COMMAND'],'handler':(_0x589c4d,_0x14ecaa)=>_0x1717c9[_0x2eefbc(0x1bf)](_0x589c4d,_0x14ecaa)},_0x1717c9={'id':'docs-code.command.unwrap','type':_0x190c0c[_0x2eefbc(0x209)]['COMMAND'],'handler':(_0x3e52fb,_0x2238b2)=>{const _0x2300a3=_0x2eefbc;if(!_0x2238b2)return!0x1;let _0x341919=_0x38b19b(_0x3e52fb,_0x2238b2==null?void 0x0:_0x2238b2[_0x2300a3(0x195)]);if(!_0x341919)return!0x1;let _0x177b36=_0x18ccdd({'blockId':_0x2238b2[_0x2300a3(0x1e5)],'documentData':_0x341919['previousDocumentData'],'metadata':_0x341919[_0x2300a3(0x1b4)]['serialize'](_0x341919['unitId'])});if(!_0x177b36)return!0x1;let _0x3df19a=_0x39ffd5(_0x341919[_0x2300a3(0x193)],_0x341919[_0x2300a3(0x159)],_0x341919[_0x2300a3(0x195)],_0x341919[_0x2300a3(0x165)],_0x177b36[_0x2300a3(0x16a)],_0x1717c9['id'],_0x177b36[_0x2300a3(0x179)]);return _0x3df19a&&_0x177b36[_0x2300a3(0x16d)]&&_0x341919[_0x2300a3(0x1b4)][_0x2300a3(0x199)](_0x341919[_0x2300a3(0x195)],_0x177b36['nextMetadata']),_0x3df19a;}},_0x5132a0={'id':'docs-code.command.remove','type':_0x190c0c[_0x2eefbc(0x209)][_0x2eefbc(0x21a)],'handler':(_0xbaf3f,_0x1b6de2)=>{const _0x2eb045=_0x2eefbc;if(!_0x1b6de2)return!0x1;let _0x43afee=_0x38b19b(_0xbaf3f,_0x1b6de2==null?void 0x0:_0x1b6de2['unitId']);if(!_0x43afee)return!0x1;let _0x3c4440=_0x1d782e({'blockId':_0x1b6de2[_0x2eb045(0x1e5)],'documentData':_0x43afee['previousDocumentData'],'metadata':_0x43afee[_0x2eb045(0x1b4)][_0x2eb045(0x1c4)](_0x43afee[_0x2eb045(0x195)])});if(!_0x3c4440)return!0x1;let _0x2f4ab9=_0x39ffd5(_0x43afee[_0x2eb045(0x193)],_0x43afee[_0x2eb045(0x159)],_0x43afee[_0x2eb045(0x195)],_0x43afee[_0x2eb045(0x165)],_0x3c4440['nextDocumentData'],_0x5132a0['id'],_0x3c4440['cursorOffset']);return _0x2f4ab9&&_0x3c4440[_0x2eb045(0x16d)]&&_0x43afee[_0x2eb045(0x1b4)]['deserialize'](_0x43afee['unitId'],_0x3c4440[_0x2eb045(0x16d)]),_0x2f4ab9;}},_0x2dd8ad={'id':'docs-code.command.cancel-empty-paragraph','type':_0x190c0c['CommandType'][_0x2eefbc(0x21a)],'handler':(_0x54b544,_0x360230)=>{const _0x4a883c=_0x2eefbc;var _0x2f09a6;let _0x2309fb=_0x38b19b(_0x54b544,_0x360230==null?void 0x0:_0x360230['unitId']);if(!_0x2309fb)return!0x1;let _0x35bdde=(_0x360230==null?void 0x0:_0x360230[_0x4a883c(0x179)])??((_0x2f09a6=_0x26c0e9(_0x54b544))==null?void 0x0:_0x2f09a6[_0x4a883c(0x14b)]);if(_0x35bdde==null)return!0x1;let _0x1a9f4c=_0x24805f({'cursorOffset':_0x35bdde,'documentData':_0x2309fb[_0x4a883c(0x165)],'paragraphStartIndex':_0x360230==null?void 0x0:_0x360230[_0x4a883c(0x18d)]});return _0x1a9f4c?_0x39ffd5(_0x2309fb[_0x4a883c(0x193)],_0x2309fb[_0x4a883c(0x159)],_0x2309fb['unitId'],_0x2309fb[_0x4a883c(0x165)],_0x1a9f4c[_0x4a883c(0x16a)],_0x2dd8ad['id'],_0x1a9f4c['cursorOffset']):!0x1;}};function _0x38b19b(_0x3e6692,_0x3fddd8){const _0x12734b=_0x2eefbc;let _0x47a5d0=_0x3e6692[_0x12734b(0x1c2)](_0x190c0c[_0x12734b(0x1a2)]),_0x3f697f=_0x3fddd8?_0x47a5d0['getUnit'](_0x3fddd8,_0x190c0c[_0x12734b(0x146)][_0x12734b(0x1f6)]):_0x47a5d0[_0x12734b(0x183)](_0x190c0c[_0x12734b(0x146)][_0x12734b(0x1f6)]);return _0x3f697f?{'commandService':_0x3e6692[_0x12734b(0x1c2)](_0x190c0c[_0x12734b(0x142)]),'model':_0x3e6692[_0x12734b(0x1c2)](_0x23b283),'previousDocumentData':_0x3f697f[_0x12734b(0x198)](),'selectionManager':_0x3e6692['get'](_0x44c43b['DocSelectionManagerService']),'unitId':_0x3f697f[_0x12734b(0x20d)]()}:null;}function _0x26c0e9(_0x59b5a4){const _0x390b09=_0x2eefbc;var _0x2c0571;return(_0x2c0571=_0x59b5a4[_0x390b09(0x1c2)](_0x44c43b[_0x390b09(0x192)])[_0x390b09(0x15e)]())==null?void 0x0:_0x2c0571[0x0];}function _0x4dd7d8(_0x4e8e5e,_0x440c9b){const _0x47bd77=_0x2eefbc;let _0x401ad3=(_0x4e8e5e==null?void 0x0:_0x4e8e5e[_0x47bd77(0x14b)])??(_0x440c9b==null?void 0x0:_0x440c9b[_0x47bd77(0x14b)]),_0x213d3b=(_0x4e8e5e==null?void 0x0:_0x4e8e5e[_0x47bd77(0x1a9)])??(_0x440c9b==null?void 0x0:_0x440c9b[_0x47bd77(0x1a9)]);if(_0x401ad3!=null&&_0x213d3b!=null)return{'endOffset':Math['max'](_0x401ad3,_0x213d3b),'startOffset':Math['min'](_0x401ad3,_0x213d3b)};}function _0x5f503d(_0x25b35d,_0x31fa64){const _0x35e871=_0x2eefbc;var _0x22d84c;if(!_0x31fa64)return;let _0xe3fd84=_0x15a1a9(_0x31fa64);return(_0x22d84c=_0x25b35d[_0x35e871(0x178)])==null||(_0x22d84c=_0x22d84c['blockRanges'])==null?void 0x0:_0x22d84c[_0x35e871(0x1c8)](_0x705268=>{const _0x42d745=_0x35e871;let _0x25e064=(0x0,_0x190c0c[_0x42d745(0x19a)])(_0x705268);return _0x31fa64['startOffset']===_0x31fa64[_0x42d745(0x1a9)]?(0x0,_0x190c0c[_0x42d745(0x169)])(_0x25e064,_0xe3fd84):(0x0,_0x190c0c[_0x42d745(0x1e0)])(_0x25e064,_0xe3fd84);});}function _0x15a1a9(_0x6af812){const _0x3abeb0=_0x2eefbc;return _0x6af812['startOffset']===_0x6af812[_0x3abeb0(0x1a9)]?_0x6af812[_0x3abeb0(0x14b)]:_0x6af812[_0x3abeb0(0x14b)]+0x1;}function _0x4ad115(_0x5430bd){const _0x19b7d1=_0x2eefbc;let _0x2e2a2d=_0x26c0e9(_0x5430bd);if(!_0x2e2a2d)return null;let _0x3dc1fe=_0x5430bd[_0x19b7d1(0x1c2)](_0x190c0c['IUniverInstanceService'])[_0x19b7d1(0x183)](_0x190c0c[_0x19b7d1(0x146)][_0x19b7d1(0x1f6)]),_0x66b8f0=_0x3dc1fe==null?void 0x0:_0x3dc1fe[_0x19b7d1(0x19e)]();return _0x66b8f0?_0x190c0c[_0x19b7d1(0x20e)][_0x19b7d1(0x1bc)]['getParagraphsInRange'](_0x2e2a2d,_0x66b8f0['paragraphs']??[],_0x66b8f0[_0x19b7d1(0x20a)]??'')[0x0]??null:null;}function _0x2b657d(_0x3614d4,_0x467158){const _0xc97049=_0x2eefbc;let _0x542f99=_0x3614d4[_0xc97049(0x178)],_0x2d8d9b=_0x467158[_0xc97049(0x178)],_0x43ceb7=(0x0,_0x190c0c[_0xc97049(0x20c)])(_0x542f99,_0x2d8d9b);return[_0x43ceb7&&_0x2d8d9b?_0x3fdbd8(_0x2d8d9b,_0x43ceb7):null,_0x43ceb7?null:_0x5d8481(_0x542f99,_0x2d8d9b)][_0xc97049(0x1a5)](Boolean)[_0xc97049(0x1d5)]((_0x5e3c21,_0x406a55)=>_0x190c0c[_0xc97049(0x156)]['compose'](_0x5e3c21,_0x406a55),null);}function _0x3fdbd8(_0x3e1146,_0x525062){const _0x5ea471=_0x2eefbc;let _0xa75209=new _0x190c0c[(_0x5ea471(0x188))]();return _0xa75209[_0x5ea471(0x17c)](_0x525062[_0x5ea471(0x1e6)]),_0x525062['insertLength']>0x0&&_0xa75209['insert'](_0x525062[_0x5ea471(0x16b)],(0x0,_0x190c0c[_0x5ea471(0x1df)])(_0x3e1146,_0x525062[_0x5ea471(0x1e6)],_0x525062[_0x5ea471(0x1e6)]+_0x525062['insertLength'],!0x1)),_0x525062[_0x5ea471(0x147)]>0x0&&_0xa75209[_0x5ea471(0x1d2)](_0x525062[_0x5ea471(0x147)]),_0x190c0c[_0x5ea471(0x156)][_0x5ea471(0x201)]()[_0x5ea471(0x1ce)](_0xa75209[_0x5ea471(0x1c4)](),['body']);}function _0x5d8481(_0x12c883,_0x461186){const _0x4c01fb=_0x2eefbc;let _0x47b415=[],_0x552e62=_0x12c883?_0x3c943b(_0x12c883):void 0x0,_0x34033c=_0x461186?_0x3c943b(_0x461186):void 0x0;for(let _0x155877 of _0x5d4128)_0x2f212a(_0x190c0c[_0x4c01fb(0x156)]['getInstance'](),[_0x4c01fb(0x178),_0x155877],_0x552e62==null?void 0x0:_0x552e62[_0x155877],_0x34033c==null?void 0x0:_0x34033c[_0x155877],_0x47b415);return _0x47b415[_0x4c01fb(0x1d5)]((_0x50e150,_0x39ffb2)=>_0x190c0c[_0x4c01fb(0x156)][_0x4c01fb(0x20f)](_0x50e150,_0x39ffb2),null);}let _0x5d4128=[_0x2eefbc(0x1b9),'sectionBreaks','tables',_0x2eefbc(0x1c0),_0x2eefbc(0x197),'customBlocks',_0x2eefbc(0x1f5),_0x2eefbc(0x1cf),_0x2eefbc(0x207)];function _0x3c943b(_0x2c0bcf){return _0x2c0bcf;}function _0x2f212a(_0x27f3f3,_0x43ff0d,_0x588c82,_0x471210,_0x4678e1){const _0x3fe519=_0x2eefbc;if(!_0x215c1c(_0x588c82,_0x471210)){if(_0x588c82==null){_0x4678e1[_0x3fe519(0x1f8)](_0x27f3f3[_0x3fe519(0x218)](_0x43ff0d,_0x471210));return;}if(_0x471210==null){_0x4678e1[_0x3fe519(0x1f8)](_0x27f3f3[_0x3fe519(0x151)](_0x43ff0d,_0x588c82));return;}if(Array[_0x3fe519(0x15a)](_0x588c82)&&Array[_0x3fe519(0x15a)](_0x471210)){_0x1734f7(_0x27f3f3,_0x43ff0d,_0x588c82,_0x471210,_0x4678e1);return;}if(_0x8e1bb4(_0x588c82)&&_0x8e1bb4(_0x471210)){new Set([...Object[_0x3fe519(0x158)](_0x588c82),...Object[_0x3fe519(0x158)](_0x471210)])[_0x3fe519(0x1ca)](_0x43e553=>{_0x2f212a(_0x27f3f3,[..._0x43ff0d,_0x43e553],_0x588c82[_0x43e553],_0x471210[_0x43e553],_0x4678e1);});return;}_0x4678e1[_0x3fe519(0x1f8)](_0x27f3f3[_0x3fe519(0x1e8)](_0x43ff0d,_0x588c82,_0x471210));}}function _0x1734f7(_0x57a091,_0x1bc3f3,_0x4a12ff,_0x476ec6,_0x3af526){const _0x29baec=_0x2eefbc;if(_0x4a12ff['length']===_0x476ec6['length']){_0x4a12ff[_0x29baec(0x1ca)]((_0x296b85,_0x24bdab)=>_0x2f212a(_0x57a091,[..._0x1bc3f3,_0x24bdab],_0x296b85,_0x476ec6[_0x24bdab],_0x3af526));return;}let _0x163180=0x0;for(;_0x163180<_0x4a12ff['length']&&_0x163180<_0x476ec6[_0x29baec(0x1cc)]&&_0x215c1c(_0x4a12ff[_0x163180],_0x476ec6[_0x163180]);)_0x163180++;let _0xe206cf=_0x4a12ff[_0x29baec(0x1cc)]-0x1,_0x5d5289=_0x476ec6[_0x29baec(0x1cc)]-0x1;for(;_0xe206cf>=_0x163180&&_0x5d5289>=_0x163180&&_0x215c1c(_0x4a12ff[_0xe206cf],_0x476ec6[_0x5d5289]);)_0xe206cf--,_0x5d5289--;for(let _0x1f27fb=_0xe206cf;_0x1f27fb>=_0x163180;_0x1f27fb--)_0x3af526[_0x29baec(0x1f8)](_0x57a091[_0x29baec(0x151)]([..._0x1bc3f3,_0x1f27fb],_0x4a12ff[_0x1f27fb]));for(let _0x29fe48=_0x163180;_0x29fe48<=_0x5d5289;_0x29fe48++)_0x3af526[_0x29baec(0x1f8)](_0x57a091[_0x29baec(0x218)]([..._0x1bc3f3,_0x29fe48],_0x476ec6[_0x29fe48]));}function _0x8e1bb4(_0x4a6046){const _0x350168=_0x2eefbc;return typeof _0x4a6046==_0x350168(0x1aa)&&!!_0x4a6046&&!Array[_0x350168(0x15a)](_0x4a6046);}function _0x215c1c(_0x527091,_0x1b4fc4){const _0xbd518a=_0x2eefbc;return JSON[_0xbd518a(0x217)](_0x527091)===JSON['stringify'](_0x1b4fc4);}function _0x39ffd5(_0x49058e,_0x287688,_0x400b96,_0x35f872,_0x3122b0,_0x261f7c,_0x20dc72){const _0x121e8d=_0x2eefbc;let _0x2d9420=_0x2b657d(_0x35f872,_0x3122b0);return _0x2d9420?!!_0x49058e[_0x121e8d(0x152)](_0x44c43b[_0x121e8d(0x141)]['id'],{'unitId':_0x400b96,'actions':_0x2d9420,'textRanges':[{'startOffset':_0x20dc72,'endOffset':_0x20dc72,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x261f7c}):(_0x287688[_0x121e8d(0x149)]([{'startOffset':_0x20dc72,'endOffset':_0x20dc72}],{'unitId':_0x400b96,'subUnitId':_0x400b96},!0x1),!0x0);}let _0x5612c5=_0x2eefbc(0x15c);var _0x5aecbe=_0x2eefbc(0x176),_0x312ff0='1.0.4';let _0xf5b41f={};function _0x3b7159(_0x57fcd0,_0x2221dd){return function(_0x5f2190,_0x2a4811){_0x2221dd(_0x5f2190,_0x2a4811,_0x57fcd0);};}function _0x24929a(_0x2d6157,_0x233dae,_0x3fca04,_0x3aad98){const _0x14f43f=_0x2eefbc;var _0x1efc8c=arguments['length'],_0x595a49=_0x1efc8c<0x3?_0x233dae:_0x3aad98===null?_0x3aad98=Object[_0x14f43f(0x208)](_0x233dae,_0x3fca04):_0x3aad98,_0x6c34b4;if(typeof Reflect=='object'&&typeof Reflect[_0x14f43f(0x17a)]==_0x14f43f(0x185))_0x595a49=Reflect[_0x14f43f(0x17a)](_0x2d6157,_0x233dae,_0x3fca04,_0x3aad98);else{for(var _0x2eb4b2=_0x2d6157['length']-0x1;_0x2eb4b2>=0x0;_0x2eb4b2--)(_0x6c34b4=_0x2d6157[_0x2eb4b2])&&(_0x595a49=(_0x1efc8c<0x3?_0x6c34b4(_0x595a49):_0x1efc8c>0x3?_0x6c34b4(_0x233dae,_0x3fca04,_0x595a49):_0x6c34b4(_0x233dae,_0x3fca04))||_0x595a49);}return _0x1efc8c>0x3&&_0x595a49&&Object['defineProperty'](_0x233dae,_0x3fca04,_0x595a49),_0x595a49;}let _0x423e02=class extends _0x190c0c[_0x2eefbc(0x1ba)]{constructor(_0x1a42d5,_0x44228c){const _0x1572ca=_0x2eefbc;super(),this[_0x1572ca(0x1d4)]=_0x1a42d5,this['_docsCodeModel']=_0x44228c,this['_initResource']();}[_0x2eefbc(0x1d3)](){const _0x2d852a=_0x2eefbc;this[_0x2d852a(0x1e1)](this['_resourceManagerService'][_0x2d852a(0x155)]({'pluginName':_0x5612c5,'businesses':[_0x190c0c[_0x2d852a(0x146)][_0x2d852a(0x1f6)]],'toJson':_0x2a3415=>JSON['stringify'](this[_0x2d852a(0x18e)][_0x2d852a(0x1c4)](_0x2a3415)),'parseJson':_0x51127e=>_0x371b2d(JSON[_0x2d852a(0x177)](_0x51127e)),'onLoad':(_0x41f65a,_0x161239)=>this[_0x2d852a(0x18e)][_0x2d852a(0x199)](_0x41f65a,_0x161239),'onUnLoad':_0x35d786=>this['_docsCodeModel']['removeUnit'](_0x35d786)}));}};_0x423e02=_0x24929a([_0x3b7159(0x0,_0x190c0c[_0x2eefbc(0x215)]),_0x3b7159(0x1,(0x0,_0x190c0c[_0x2eefbc(0x211)])(_0x23b283))],_0x423e02);let _0x270254=class extends _0x190c0c[_0x2eefbc(0x1de)]{constructor(_0x3a5b64=_0xf5b41f,_0x137363,_0x177e27,_0x1ffdf9){const _0x1a4c95=_0x2eefbc;super(),this[_0x1a4c95(0x210)]=_0x3a5b64,this[_0x1a4c95(0x15d)]=_0x137363,this['_commandService']=_0x177e27,this['_configService']=_0x1ffdf9;let {..._0x55453c}=(0x0,_0x190c0c['merge'])({},_0xf5b41f,this[_0x1a4c95(0x210)]);this[_0x1a4c95(0x163)][_0x1a4c95(0x1b2)](_0x1a4c95(0x145),_0x55453c);}['onStarting'](){const _0x83ac47=_0x2eefbc;this[_0x83ac47(0x15d)]['add']([_0x23b283]),this[_0x83ac47(0x15d)]['add']([_0x423e02]),this['_injector'][_0x83ac47(0x1c2)](_0x23b283),this[_0x83ac47(0x15d)][_0x83ac47(0x1c2)](_0x423e02),[_0x2c1a69,_0x376966,_0x45e4fa,_0x1717c9,_0x5132a0,_0xf577ac,_0x2dd8ad,_0x24f957,_0x1132ee,_0x5734cc][_0x83ac47(0x1ca)](_0x555d78=>this[_0x83ac47(0x1e1)](this[_0x83ac47(0x1d7)][_0x83ac47(0x1f1)](_0x555d78)));}};_0x2572d1(_0x270254,_0x2eefbc(0x1dd),_0x5612c5),_0x2572d1(_0x270254,_0x2eefbc(0x1cd),_0x5aecbe),_0x2572d1(_0x270254,_0x2eefbc(0x186),_0x312ff0),_0x2572d1(_0x270254,_0x2eefbc(0x14c),_0x190c0c['UniverInstanceType'][_0x2eefbc(0x1f6)]),_0x270254=_0x24929a([(0x0,_0x190c0c[_0x2eefbc(0x18f)])(_0x50263d[_0x2eefbc(0x1ed)],_0x44c43b[_0x2eefbc(0x1ec)]),_0x3b7159(0x1,(0x0,_0x190c0c[_0x2eefbc(0x211)])(_0x190c0c[_0x2eefbc(0x1d6)])),_0x3b7159(0x2,_0x190c0c['ICommandService']),_0x3b7159(0x3,_0x190c0c[_0x2eefbc(0x1e7)])],_0x270254),_0x4f0b82[_0x2eefbc(0x1b3)]=_0x5612c5,_0x4f0b82['DocsCodeCancelEmptyParagraphCommand']=_0x2dd8ad,_0x4f0b82[_0x2eefbc(0x219)]=_0x24f957,_0x4f0b82[_0x2eefbc(0x16e)]=_0x376966,_0x4f0b82[_0x2eefbc(0x1ef)]=_0x2c1a69,_0x4f0b82[_0x2eefbc(0x196)]=_0x23b283,_0x4f0b82['DocsCodeRemoveCommand']=_0x5132a0,_0x4f0b82[_0x2eefbc(0x16f)]=_0x1717c9,_0x4f0b82['DocsCodeUpdateCommand']=_0x45e4fa,_0x4f0b82[_0x2eefbc(0x148)]=_0x5734cc,_0x4f0b82['SetDocsCodeConfigMutation']=_0x1132ee,Object['defineProperty'](_0x4f0b82,_0x2eefbc(0x1c5),{'enumerable':!0x0,'get':function(){return _0x270254;}}),_0x4f0b82[_0x2eefbc(0x19b)]=_0x24805f,_0x4f0b82[_0x2eefbc(0x1bd)]=_0x26d918,_0x4f0b82[_0x2eefbc(0x213)]=_0x256d55,_0x4f0b82[_0x2eefbc(0x14e)]=_0x371b2d;}));function _0x3678(){const _0x552626=['4XkobVt','FALSE','every','endTokenOffset','from','@univerjs-pro/docs-code','parse','body','cursorOffset','decorate','5062830JYlcLZ','retain','docs-code.command.insert-below','fromEntries','isHeaderFooterSelection','documentData','call','Subject','getCurrentUnitOfType','sectionBreaks','function','version','spaceAbove','TextX','config','DocumentBlockRangeType','slice','@univerjs/core','paragraphStartIndex','_docsCodeModel','DependentOn','getParagraphFollowingBlockOffset','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','DocSelectionManagerService','commandService','next','unitId','DocsCodeModel','blockRanges','getSnapshot','deserialize','getBlockRangeInterval','buildCancelEmptyCodeParagraphActions','javascript','@univerjs/docs','getBody','indentStart','rxjs','min','IUniverInstanceService','tables','DataStreamTreeTokenType','filter','SECTION_BREAK','iterator','CODE','endOffset','object','39568UisPNi','BooleanNumber','direction','BLOCK_END','767754bUHRqG','paragraphStyle','paragraphId','setConfig','DOCS_CODE_PLUGIN','model','startIndex','_change$','shiftInclusiveRangeOnInsert','symbol','paragraphs','Disposable','customBlocks','range','isCodeBoundaryDelete','prototype','handler','columnGroups','UniverCore','get','intersectsOperationalIntervals','serialize','UniverDocsCodePlugin','map','shiftExclusiveRangeOnInsert','find','right','forEach','@univerjs-pro/license','length','packageName','editOp','customDecorations','getParagraphContentStartOffset','dispose','delete','_initResource','_resourceManagerService','reduce','Injector','_commandService','UniverDocs','change$','1610683agagNn','TABLE_CELL_END','sort','pluginName','Plugin','getBodySliceForTextXAction','containsStreamIndex','disposeWithMe','UniverProDocsCode','columns','some','blockId','start','IConfigService','replaceOp','complete','_setResource','bullet','UniverDocsPlugin','UniverLicensePlugin','paragraph','DocsCodeInsertCommand','textStyle','registerCommand','string','createParagraphId','max','customRanges','UNIVER_DOC','indentEnd','push','3093381aKekfY','shiftExclusiveRangeOnDelete','1043650jfyClL','blockType','Document\x20body\x20is\x20required','docs-code.command.exit','BLOCK_START','set','getInstance','convert-paragraph','asObservable','codes','removeCode','spaceBelow','textRuns','getOwnPropertyDescriptor','CommandType','dataStream','keepLines','getSingleDataStreamChange','getUnitId','BuildTextUtils','compose','_config','Inject','default','normalizeDocsCodeConfig','getContentInsertRange','IResourceManagerService','exports','stringify','insertOp','DocsCodeConsumeBoundaryDeleteCommand','COMMAND','TRUE','RichTextEditingMutation','ICommandService','startTokenOffset','setCodeConfig','docs-code.config','UniverInstanceType','deleteLength','RemoveDocsCodeConfigMutation','replaceDocRanges','removeUnit','startOffset','type','insert-new','normalizeDocsCodeMetadataResource','docs-code.mutation.set-config','insertionMode','removeOp','syncExecuteCommand','7389IDCdJT','6140351DxDTxS','registerPluginResource','JSONX','PARAGRAPH','keys','selectionManager','isArray','MUTATION','DOC_CODE_PLUGIN','_injector','getTextRanges','metadata','constructor','entries','TABLE_CELL_START','_configService','endIndex','previousDocumentData','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_resources','clear','containsInteriorInsertionOffset','nextDocumentData','insertLength','getParagraphContentStartOffsets','nextMetadata','DocsCodeInsertBelowCommand','DocsCodeUnwrapCommand','defineProperty'];_0x3678=function(){return _0x552626;};return _0x3678();}
1
+ function _0x4537(_0x5d13e0,_0x25759e){_0x5d13e0=_0x5d13e0-0x1c3;const _0x5c3e67=_0x5c3e();let _0x4537f2=_0x5c3e67[_0x5d13e0];return _0x4537f2;}function _0x5c3e(){const _0x3f30fb=['UniverDocs','DataStreamTreeTokenType','getParagraphContentStartOffset','shiftExclusiveRangeOnDelete','1834554ilyaJo','_change$','direction','decorate','normalizeDocsCodeMetadataResource','BuildTextUtils','iterator','getParagraphsInRange','next','indentStart','isCodeBoundaryDelete','constructor','pluginName','registerPluginResource','docs-code.command.insert-below','5BHQPHl','symbol','paragraphStyle','createParagraphId','endTokenOffset','registerCommand','PARAGRAPH','DOCS_CODE_PLUGIN','metadata','isHeaderFooterSelection','columns','textStyle','3658444vPvYIF','sectionBreaks','docs-code.command.update','insert-new','insert','customDecorations','BLOCK_START','set','SECTION_BREAK','DocsCodeConsumeBoundaryDeleteCommand','UniverLicensePlugin','entries','endOffset','default','handler','merge','setCodeConfig','string','_initResource','BLOCK_END','removeUnit','TRUE','clear','customBlocks','sort','body','unitId','deserialize','asObservable','DocsCodeInsertBelowCommand','TABLE_CELL_END','CODE','1337681plKntl','textRuns','customRanges','8019888eWwKQE','previousDocumentData','@univerjs/docs','range','getInstance','fromEntries','map','replaceDocRanges','Document\x20body\x20is\x20required','type','amd','delete','filter','disposeWithMe','find','getCurrentUnitOfType','paragraphStartIndex','keepLines','CommandType','BooleanNumber','columnGroups','dataStream','commandService','get','18CstVOM','MUTATION','getBodySliceForTextXAction','startTokenOffset','monospace','function','cursorOffset','getBlockRangeInterval','UNIVER_DOC','IResourceManagerService','@univerjs-pro/license','JSONX','complete','insertionMode','RichTextEditingMutation','_docsCodeModel','@univerjs-pro/docs-code','stringify','blockId','change$','getUnit','blockType','isArray','min','paragraphs','UniverDocsCodePlugin','shiftExclusiveRangeOnInsert','tables','spaceAbove','blockRanges','slice','13755hKEHTo','DocsCodeModel','getSnapshot','toPrimitive','paragraphId','insertLength','498750isVFac','dispose','1.1.0','keys','reduce','DocsCodeCancelEmptyParagraphCommand','version','deleteLength','endIndex','TABLE_CELL_START','nextMetadata','_setResource','removeOp','@univerjs/core','DocsCodeRemoveCommand','Module','_injector','push','_commandService','length','some','RemoveDocsCodeConfigMutation','COMMAND','normalizeDocsCodeConfig','DocSelectionManagerService','call','nextDocumentData','DocsCodeUnwrapCommand','indexOf','serialize','spaceBelow','IConfigService','shiftInclusiveRangeOnInsert','UniverProLicense','defineProperty','widowControl','docs-code.command.exit','bullet','UniverCore','_configService','5958402QDwLPJ','IUniverInstanceService','setConfig','DOC_CODE_PLUGIN','codes','onStarting','endsWith','object','documentData','Subject','TextX','every','max','left','Injector','DocsCodeUpdateCommand','compose','removeCode','packageName','start','toStringTag','DocumentBlockRangeType','_resources','indentEnd','Plugin','getOwnPropertyDescriptor','startOffset','Inject','forEach','rxjs','right','config','javascript','containsInteriorInsertionOffset','_resourceManagerService','UniverInstanceType','ICommandService','retain','parse','_config','selectionManager','syncExecuteCommand','docs-code.command.remove','model','getUnitId','UniverDocsPlugin','docs-code.command.insert','containsStreamIndex','getParagraphContentStartOffsets','insertOp','getParagraphFollowingBlockOffset','DependentOn','startIndex','getBody','exports','SetDocsCodeConfigMutation','shiftInclusiveRangeOnDelete'];_0x5c3e=function(){return _0x3f30fb;};return _0x5c3e();}(function(_0x17bdc0,_0x78566d){const _0x5c72c3=_0x4537,_0x4cd405=_0x17bdc0();while(!![]){try{const _0x5b09ff=-parseInt(_0x5c72c3(0x1d8))/0x1+-parseInt(_0x5c72c3(0x218))/0x2+parseInt(_0x5c72c3(0x27d))/0x3+-parseInt(_0x5c72c3(0x298))/0x4*(-parseInt(_0x5c72c3(0x28c))/0x5)+-parseInt(_0x5c72c3(0x240))/0x6+-parseInt(_0x5c72c3(0x212))/0x7+parseInt(_0x5c72c3(0x1db))/0x8*(parseInt(_0x5c72c3(0x1f3))/0x9);if(_0x5b09ff===_0x78566d)break;else _0x4cd405['push'](_0x4cd405['shift']());}catch(_0x483274){_0x4cd405['push'](_0x4cd405['shift']());}}}(_0x5c3e,0xe7b15),function(_0x41f373,_0x2c4e81){const _0x74b962=_0x4537;typeof exports==_0x74b962(0x247)&&typeof module<'u'?_0x2c4e81(exports,require('@univerjs/core'),require('rxjs'),require('@univerjs/docs'),require('@univerjs-pro/license')):typeof define==_0x74b962(0x1f8)&&define[_0x74b962(0x1e5)]?define([_0x74b962(0x276),_0x74b962(0x225),_0x74b962(0x25d),_0x74b962(0x1dd),_0x74b962(0x1fd)],_0x2c4e81):(_0x41f373=typeof globalThis<'u'?globalThis:_0x41f373||self,_0x2c4e81(_0x41f373['UniverProDocsCode']={},_0x41f373[_0x74b962(0x23e)],_0x41f373[_0x74b962(0x25d)],_0x41f373[_0x74b962(0x279)],_0x41f373[_0x74b962(0x239)]));}(this,function(_0x20031a,_0x2a5329,_0x41899e,_0xd998f,_0x2a235e){const _0x5eba1f=_0x4537;Object['defineProperty'](_0x20031a,Symbol[_0x5eba1f(0x254)],{'value':_0x5eba1f(0x227)});let _0x198dee={'language':_0x5eba1f(0x260),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function _0x4f674c(_0x57dc5b){return{..._0x198dee,..._0x57dc5b};}function _0x3bd20a(_0x519ae3){const _0x3ad0d3=_0x5eba1f;let _0x5c906c=(_0x519ae3==null?void 0x0:_0x519ae3[_0x3ad0d3(0x244)])??{};return{'codes':Object[_0x3ad0d3(0x1e0)](Object[_0x3ad0d3(0x1c3)](_0x5c906c)['map'](([_0x545bf1,_0x1c67fc])=>[_0x545bf1,_0x4f674c(_0x1c67fc)]))};}function _0x4f0ab1(_0x488195,_0x462ea4,_0x277f53){const _0x2dcf0c=_0x5eba1f;let _0x5014ce=_0x3bd20a(_0x488195);return _0x5014ce[_0x2dcf0c(0x244)][_0x462ea4]=_0x4f674c({..._0x5014ce[_0x2dcf0c(0x244)][_0x462ea4],..._0x277f53}),_0x5014ce;}function _0x36eeb2(_0x1d79de,_0x1dcfdd){let _0x46911d=_0x3bd20a(_0x1d79de);return delete _0x46911d['codes'][_0x1dcfdd],_0x46911d;}function _0x504125(_0x3b7d68){'@babel/helpers - typeof';const _0x170ef5=_0x5eba1f;return _0x504125=typeof Symbol==_0x170ef5(0x1f8)&&typeof Symbol[_0x170ef5(0x283)]==_0x170ef5(0x28d)?function(_0x5a97b4){return typeof _0x5a97b4;}:function(_0x3e6a67){const _0x537f53=_0x170ef5;return _0x3e6a67&&typeof Symbol=='function'&&_0x3e6a67[_0x537f53(0x288)]===Symbol&&_0x3e6a67!==Symbol['prototype']?_0x537f53(0x28d):typeof _0x3e6a67;},_0x504125(_0x3b7d68);}function _0x5da08f(_0x3cb904,_0x19e73b){const _0x460305=_0x5eba1f;if(_0x504125(_0x3cb904)!='object'||!_0x3cb904)return _0x3cb904;var _0x4173f7=_0x3cb904[Symbol[_0x460305(0x215)]];if(_0x4173f7!==void 0x0){var _0x3618af=_0x4173f7[_0x460305(0x231)](_0x3cb904,_0x19e73b||_0x460305(0x1c5));if(_0x504125(_0x3618af)!='object')return _0x3618af;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x19e73b===_0x460305(0x1c9)?String:Number)(_0x3cb904);}function _0x322098(_0x9407d3){const _0x4271fb=_0x5eba1f;var _0xda2859=_0x5da08f(_0x9407d3,_0x4271fb(0x1c9));return _0x504125(_0xda2859)==_0x4271fb(0x28d)?_0xda2859:_0xda2859+'';}function _0x18c008(_0x4db3e7,_0x3fe1cb,_0x22368a){const _0x30f953=_0x5eba1f;return(_0x3fe1cb=_0x322098(_0x3fe1cb))in _0x4db3e7?Object[_0x30f953(0x23a)](_0x4db3e7,_0x3fe1cb,{'value':_0x22368a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4db3e7[_0x3fe1cb]=_0x22368a,_0x4db3e7;}var _0x2b6374=class extends _0x2a5329['Disposable']{constructor(..._0x4e22ef){const _0x50653a=_0x5eba1f;super(..._0x4e22ef),_0x18c008(this,_0x50653a(0x256),new Map()),_0x18c008(this,_0x50653a(0x27e),new _0x41899e[(_0x50653a(0x249))]()),_0x18c008(this,_0x50653a(0x206),this[_0x50653a(0x27e)][_0x50653a(0x1d4)]());}['getCodeConfig'](_0x285b36,_0x4df6d1){const _0x37edf4=_0x5eba1f;return _0x3bd20a(this['_resources'][_0x37edf4(0x1f2)](_0x285b36))[_0x37edf4(0x244)][_0x4df6d1];}[_0x5eba1f(0x1c8)](_0x23838d,_0x46ae98,_0x3db67b){const _0x123334=_0x5eba1f;this[_0x123334(0x223)](_0x23838d,_0x46ae98,_0x4f0ab1(this[_0x123334(0x256)]['get'](_0x23838d),_0x46ae98,_0x3db67b));}[_0x5eba1f(0x251)](_0x18202e,_0xf4b127){const _0x2cec2a=_0x5eba1f;this['_setResource'](_0x18202e,_0xf4b127,_0x36eeb2(this[_0x2cec2a(0x256)][_0x2cec2a(0x1f2)](_0x18202e),_0xf4b127));}[_0x5eba1f(0x235)](_0x699946){const _0x307def=_0x5eba1f;return _0x3bd20a(this[_0x307def(0x256)][_0x307def(0x1f2)](_0x699946));}['deserialize'](_0x3f3fee,_0x2b8dbe){const _0x53c7a9=_0x5eba1f;this[_0x53c7a9(0x256)][_0x53c7a9(0x29f)](_0x3f3fee,_0x3bd20a(_0x2b8dbe)),this['_change$'][_0x53c7a9(0x285)]({'unitId':_0x3f3fee});}[_0x5eba1f(0x1cc)](_0x325327){const _0x356442=_0x5eba1f;this[_0x356442(0x256)][_0x356442(0x1e6)](_0x325327),this[_0x356442(0x27e)][_0x356442(0x285)]({'unitId':_0x325327});}[_0x5eba1f(0x219)](){const _0x258592=_0x5eba1f;super[_0x258592(0x219)](),this[_0x258592(0x256)][_0x258592(0x1ce)](),this[_0x258592(0x27e)][_0x258592(0x1ff)]();}[_0x5eba1f(0x223)](_0x840f0a,_0x4a2bcf,_0x413d6f){const _0xe429e=_0x5eba1f;this['_resources'][_0xe429e(0x29f)](_0x840f0a,_0x413d6f),this[_0xe429e(0x27e)][_0xe429e(0x285)]({'unitId':_0x840f0a,'blockId':_0x4a2bcf});}};let _0xfea112={'id':'docs-code.mutation.set-config','type':_0x2a5329['CommandType'][_0x5eba1f(0x1f4)],'handler':(_0x5990c2,_0x5133f5)=>!(_0x5133f5!=null&&_0x5133f5[_0x5eba1f(0x1d2)])||!_0x5133f5[_0x5eba1f(0x205)]?!0x1:(_0x5990c2[_0x5eba1f(0x1f2)](_0x2b6374)[_0x5eba1f(0x1c8)](_0x5133f5[_0x5eba1f(0x1d2)],_0x5133f5[_0x5eba1f(0x205)],_0x5133f5[_0x5eba1f(0x25f)]),!0x0)},_0x46da34={'id':'docs-code.mutation.remove-config','type':_0x2a5329['CommandType'][_0x5eba1f(0x1f4)],'handler':(_0x4ac368,_0x109409)=>!(_0x109409!=null&&_0x109409[_0x5eba1f(0x1d2)])||!_0x109409[_0x5eba1f(0x205)]?!0x1:(_0x4ac368[_0x5eba1f(0x1f2)](_0x2b6374)['removeCode'](_0x109409[_0x5eba1f(0x1d2)],_0x109409[_0x5eba1f(0x205)]),!0x0)},_0x128267=_0x5eba1f(0x1f7);var _0x2eaf3f=class extends Error{constructor(_0xe78468='Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries'){super(_0xe78468);}};function _0x405f43(_0x3d8834){const _0x4e2ce1=_0x5eba1f;var _0x45352b;let _0x42e067=_0x2dcdc4(_0x3d8834[_0x4e2ce1(0x248)]),_0x48dcc5=_0x321b75(_0x42e067),_0xeeefd4=_0x410a13(_0x3d8834['startOffset'],_0x3d8834[_0x4e2ce1(0x1c4)]),_0x3d9c8f=_0xeeefd4?(_0x45352b=_0x48dcc5[_0x4e2ce1(0x210)])==null?void 0x0:_0x45352b[_0x4e2ce1(0x1e9)](_0x50b346=>{const _0x538a4f=_0x4e2ce1;let _0x46ca62=(0x0,_0x2a5329[_0x538a4f(0x1fa)])(_0x50b346);return _0x46ca62[_0x538a4f(0x25a)]===_0xeeefd4[_0x538a4f(0x25a)]&&_0x46ca62[_0x538a4f(0x1c4)]===_0xeeefd4[_0x538a4f(0x1c4)];}):void 0x0,{startOffset:_0x1565f0,endOffset:_0x456472}=_0x3d9c8f?_0xeeefd4:_0x33873c(_0x48dcc5,_0x3d8834['startOffset'],_0x3d8834[_0x4e2ce1(0x1c4)],_0x3d8834['insertionMode']);if(!_0x3d9c8f&&_0x1091cc(_0x48dcc5,_0x1565f0,_0x456472))throw new _0x2eaf3f('Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block');let _0xb92747=_0x278bb1(_0x48dcc5,_0x1565f0,_0x456472),_0x17f672=(_0x3d9c8f==null?void 0x0:_0x3d9c8f[_0x4e2ce1(0x205)])??_0x3d8834['blockId'],_0x180c35=_0x4f0ab1(_0x3d8834['metadata'],_0x17f672,{..._0x198dee,..._0x3d8834[_0x4e2ce1(0x25f)]});if(_0x3d9c8f)return _0x3d9c8f['blockType']=_0x2a5329[_0x4e2ce1(0x255)][_0x4e2ce1(0x1d7)],_0x46ef3e(_0x48dcc5,_0x1565f0,_0x456472),_0x438f18(_0x48dcc5,_0x1565f0,_0x456472,_0xb92747),_0x11e109(_0x48dcc5,_0x3d9c8f),{'nextDocumentData':_0x42e067,'nextMetadata':_0x180c35,'cursorOffset':_0x1565f0+0x1};if(_0x1565f0===_0x456472){var _0x4c710d,_0x4c8e45;let _0x20b1b1=''+_0x2a5329['DataStreamTreeTokenType'][_0x4e2ce1(0x29e)]+_0x2a5329[_0x4e2ce1(0x27a)][_0x4e2ce1(0x292)]+_0x2a5329[_0x4e2ce1(0x27a)]['BLOCK_END'];_0x5f3461(_0x48dcc5,_0x1565f0,_0x20b1b1,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,_0x2a5329[_0x4e2ce1(0x28f)])(new Set((_0x4c710d=_0x48dcc5[_0x4e2ce1(0x20b)])==null?void 0x0:_0x4c710d['map'](_0xc72b28=>_0xc72b28[_0x4e2ce1(0x216)]))),'paragraphStyle':_0x2c098a(!0x0,!0x0,_0xb92747)}],'blockRanges':[{'blockId':_0x17f672,'blockType':_0x2a5329[_0x4e2ce1(0x255)][_0x4e2ce1(0x1d7)],'startIndex':0x0,'endIndex':_0x20b1b1[_0x4e2ce1(0x22b)]-0x1}]});let _0x5d0e1b=(_0x4c8e45=_0x48dcc5[_0x4e2ce1(0x210)])==null?void 0x0:_0x4c8e45[_0x4e2ce1(0x1e9)](_0x3ba54d=>_0x3ba54d[_0x4e2ce1(0x205)]===_0x17f672);return _0x5d0e1b&&_0x11e109(_0x48dcc5,_0x5d0e1b),{'nextDocumentData':_0x42e067,'nextMetadata':_0x180c35,'cursorOffset':_0x1565f0+0x1};}_0x5f3461(_0x48dcc5,_0x456472,_0x2a5329[_0x4e2ce1(0x27a)][_0x4e2ce1(0x1cb)]),_0x5f3461(_0x48dcc5,_0x1565f0,_0x2a5329['DataStreamTreeTokenType'][_0x4e2ce1(0x29e)]),_0x438f18(_0x48dcc5,_0x1565f0,_0x456472+0x1,_0xb92747);let _0xfe03a9={'blockId':_0x17f672,'blockType':_0x2a5329[_0x4e2ce1(0x255)]['CODE'],'startIndex':_0x1565f0,'endIndex':_0x456472+0x1};return _0x48dcc5['blockRanges']=[..._0x48dcc5[_0x4e2ce1(0x210)]??[],_0xfe03a9]['sort']((_0x2199f2,_0x1f51be)=>_0x2199f2[_0x4e2ce1(0x274)]-_0x1f51be[_0x4e2ce1(0x274)]),_0x11e109(_0x48dcc5,_0xfe03a9),{'nextDocumentData':_0x42e067,'nextMetadata':_0x180c35,'cursorOffset':_0x1565f0+0x1};}function _0x46ef3e(_0x9d6668,_0x3a395c,_0x2f1e4c){const _0x51ba12=_0x5eba1f;(_0x9d6668['paragraphs']??[])[_0x51ba12(0x1e7)](_0x2a9cbb=>_0x2a9cbb[_0x51ba12(0x274)]>_0x3a395c&&_0x2a9cbb[_0x51ba12(0x274)]<_0x2f1e4c)[_0x51ba12(0x25c)](_0xd07f03=>{const _0x3b1251=_0x51ba12;let _0x44d35b={..._0xd07f03[_0x3b1251(0x28e)]??{}};delete _0x44d35b[_0x3b1251(0x20f)],delete _0x44d35b[_0x3b1251(0x236)],_0xd07f03[_0x3b1251(0x28e)]=_0x44d35b;});}function _0x410a13(_0x4b29da,_0x162778){const _0xd7b50c=_0x5eba1f;return _0x4b29da==null||_0x162778==null||_0x4b29da===_0x162778?null:{'startOffset':Math['min'](_0x4b29da,_0x162778),'endOffset':Math[_0xd7b50c(0x24c)](_0x4b29da,_0x162778)};}function _0x1091cc(_0x2bb655,_0x57bcbd,_0x1d91fd){return(_0x2bb655['blockRanges']??[])['some'](_0x468248=>{const _0x31dcaa=_0x4537;let _0xdc51aa=(0x0,_0x2a5329[_0x31dcaa(0x1fa)])(_0x468248);return _0x57bcbd===_0x1d91fd?(0x0,_0x2a5329[_0x31dcaa(0x261)])(_0xdc51aa,_0x57bcbd):(0x0,_0x2a5329['intersectsOperationalIntervals'])(_0xdc51aa,{'startOffset':_0x57bcbd,'endOffset':_0x1d91fd});});}function _0xfd46a5(_0x473978){const _0x4eb8fc=_0x5eba1f;return{'nextDocumentData':_0x2dcdc4(_0x473978[_0x4eb8fc(0x248)]),'nextMetadata':_0x4f0ab1(_0x473978[_0x4eb8fc(0x294)],_0x473978[_0x4eb8fc(0x205)],_0x473978[_0x4eb8fc(0x25f)]),'cursorOffset':0x0};}function _0x31f425(_0x6b05d4){const _0x10e720=_0x5eba1f;let _0x3a0d4b=_0x2dcdc4(_0x6b05d4['documentData']),_0x55a436=_0x321b75(_0x3a0d4b),_0x55fbc3=_0x5a4194(_0x55a436,_0x6b05d4[_0x10e720(0x205)]);if(!_0x55fbc3)return null;let _0x16a571=_0x3b6089(_0x55a436,_0x55fbc3);return{'nextDocumentData':_0x3a0d4b,'nextMetadata':_0x36eeb2(_0x6b05d4[_0x10e720(0x294)],_0x6b05d4[_0x10e720(0x205)]),'cursorOffset':_0x16a571};}function _0x1c7443(_0x1f1045){const _0x271191=_0x5eba1f;var _0x586f99;let _0x19fc04=_0x2dcdc4(_0x1f1045[_0x271191(0x248)]),_0xf1535b=_0x321b75(_0x19fc04),_0x599df9=_0x5a4194(_0xf1535b,_0x1f1045['blockId']);if(!_0x599df9)return null;let _0x267500=(0x0,_0x2a5329[_0x271191(0x1fa)])(_0x599df9);return _0x32bd45(_0xf1535b,_0x267500['startOffset'],_0x267500[_0x271191(0x1c4)]),_0xf1535b[_0x271191(0x210)]=(_0x586f99=_0xf1535b['blockRanges'])==null?void 0x0:_0x586f99[_0x271191(0x1e7)](_0x306577=>_0x306577[_0x271191(0x205)]!==_0x1f1045[_0x271191(0x205)]),{'nextDocumentData':_0x19fc04,'nextMetadata':_0x36eeb2(_0x1f1045[_0x271191(0x294)],_0x1f1045['blockId']),'cursorOffset':_0x599df9[_0x271191(0x274)]};}function _0x35527e(_0x216be6){const _0x4c47bb=_0x5eba1f;let _0x2f3e70=_0x2dcdc4(_0x216be6['documentData']),_0x2983ee=_0x321b75(_0x2f3e70),_0x2b0f2c=_0x23b687(_0x2983ee,_0x216be6[_0x4c47bb(0x1f9)]);return _0x2b0f2c&&_0x4a292f(_0x2f3e70,_0x2983ee,_0x2b0f2c,_0x216be6['cursorOffset'],_0x216be6[_0x4c47bb(0x1eb)])||null;}function _0x4a292f(_0x19d64a,_0x1e085d,_0x6fef6f,_0x102397,_0x53b6d8){const _0x19e8eb=_0x5eba1f;let _0x3e6fbb=_0x4499fb(_0x1e085d,_0x6fef6f,_0x102397,_0x53b6d8);if(!_0x3e6fbb)return null;let _0x439fe3=_0x3e6fbb[_0x19e8eb(0x290)]-0x1;return _0x32bd45(_0x1e085d,_0x3e6fbb['paragraph']['startIndex'],_0x3e6fbb['paragraph'][_0x19e8eb(0x274)]+0x1),{'nextDocumentData':_0x19d64a,'cursorOffset':_0x439fe3};}function _0x5a4194(_0x12b845,_0x75d7ef){const _0x1bae7b=_0x5eba1f;var _0x31f19e;return _0x12b845==null||(_0x31f19e=_0x12b845[_0x1bae7b(0x210)])==null?void 0x0:_0x31f19e[_0x1bae7b(0x1e9)](_0x32aeb3=>_0x32aeb3['blockType']===_0x2a5329[_0x1bae7b(0x255)][_0x1bae7b(0x1d7)]&&_0x32aeb3['blockId']===_0x75d7ef);}function _0x30c98d(_0x4c4b36){const _0x2dd63e=_0x5eba1f;let _0xb01dad=_0x4c4b36[_0x2dd63e(0x248)][_0x2dd63e(0x1d1)];if(!_0xb01dad)return!0x1;let _0x51148c=_0x4c4b36['direction']===_0x2dd63e(0x24d)?_0x4c4b36[_0x2dd63e(0x1f9)]-0x1:_0x4c4b36[_0x2dd63e(0x1f9)],_0x18124f=_0x4c4b36[_0x2dd63e(0x27f)]===_0x2dd63e(0x25e)?_0x4c4b36['cursorOffset']+0x1:_0x51148c;return(_0xb01dad[_0x2dd63e(0x210)]??[])[_0x2dd63e(0x22c)](_0x195589=>_0x195589[_0x2dd63e(0x208)]===_0x2a5329['DocumentBlockRangeType'][_0x2dd63e(0x1d7)]?_0x51148c===_0x195589[_0x2dd63e(0x274)]||_0x51148c===_0x195589[_0x2dd63e(0x220)]||_0x18124f===_0x195589[_0x2dd63e(0x274)]||_0x18124f===_0x195589[_0x2dd63e(0x220)]:!0x1);}function _0x23b687(_0x35e2c7,_0x345974){const _0x59fe92=_0x5eba1f;var _0x1f2f90;return(_0x1f2f90=_0x35e2c7[_0x59fe92(0x210)])==null?void 0x0:_0x1f2f90[_0x59fe92(0x1e9)](_0x462958=>{const _0x56b4c4=_0x59fe92;let _0x575a02=_0x3793df(_0x462958);return _0x462958['blockType']===_0x2a5329[_0x56b4c4(0x255)][_0x56b4c4(0x1d7)]&&_0x462958['startIndex']<=_0x345974&&_0x345974<=_0x575a02+0x2;});}function _0x2c098a(_0x1b4f38,_0x29c7c7,_0x398f55=!0x1){const _0x5ec986=_0x5eba1f;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x2a5329[_0x5ec986(0x1ee)][_0x5ec986(0x1cd)],'keepNext':_0x29c7c7?_0x2a5329[_0x5ec986(0x1ee)]['FALSE']:_0x2a5329[_0x5ec986(0x1ee)][_0x5ec986(0x1cd)],'widowControl':_0x2a5329['BooleanNumber'][_0x5ec986(0x1cd)],..._0x1b4f38&&_0x398f55?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':_0x128267,'fs':0xc}};}function _0x438f18(_0x18ffc7,_0x3021da,_0x1b0f14,_0x500421=!0x1){const _0x19c61c=_0x5eba1f;let _0x29c3cf=(_0x18ffc7[_0x19c61c(0x20b)]??[])['filter'](_0x3ca1b6=>_0x3ca1b6[_0x19c61c(0x274)]>_0x3021da&&_0x3ca1b6[_0x19c61c(0x274)]<_0x1b0f14);_0x29c3cf['forEach']((_0x26ac59,_0x13c142)=>{const _0x4c91e2=_0x19c61c;_0x26ac59[_0x4c91e2(0x28e)]={..._0x26ac59[_0x4c91e2(0x28e)]??{},..._0x2c098a(_0x13c142===0x0,_0x13c142===_0x29c3cf['length']-0x1,_0x500421)};});}function _0x5bbddb(_0x27d05c){const _0x8d07ce=_0x5eba1f;var _0x56884e,_0x3433fd;let _0x5764a1={..._0x27d05c??{}};return delete _0x5764a1[_0x8d07ce(0x257)],delete _0x5764a1[_0x8d07ce(0x286)],delete _0x5764a1[_0x8d07ce(0x20f)],delete _0x5764a1[_0x8d07ce(0x236)],delete _0x5764a1[_0x8d07ce(0x1ec)],delete _0x5764a1['keepNext'],delete _0x5764a1[_0x8d07ce(0x23b)],((_0x56884e=_0x5764a1[_0x8d07ce(0x297)])==null?void 0x0:_0x56884e['ff'])===_0x128267&&((_0x3433fd=_0x5764a1[_0x8d07ce(0x297)])==null?void 0x0:_0x3433fd['fs'])===0xc&&delete _0x5764a1['textStyle'],_0x5764a1;}function _0x2603e0(_0x139b2a,_0x19fbc0){const _0x408467=_0x5eba1f;let _0x1c0462=_0x3793df(_0x19fbc0);return(_0x139b2a['paragraphs']??[])['filter'](_0x270136=>_0x270136[_0x408467(0x274)]>_0x19fbc0['startIndex']&&_0x270136['startIndex']<_0x1c0462);}function _0x3b6089(_0xcd20a3,_0xfeea79){const _0x10ec2f=_0x5eba1f;var _0x459089;let _0x3c5629=_0x3793df(_0xfeea79);return _0x2603e0(_0xcd20a3,_0xfeea79)['forEach'](_0x3222ee=>{const _0x46d73a=_0x4537;_0x3222ee[_0x46d73a(0x28e)]=_0x5bbddb(_0x3222ee[_0x46d73a(0x28e)]);}),_0x32bd45(_0xcd20a3,_0x3c5629,_0x3c5629+0x1),_0x32bd45(_0xcd20a3,_0xfeea79['startIndex'],_0xfeea79[_0x10ec2f(0x274)]+0x1),_0xcd20a3[_0x10ec2f(0x210)]=(_0x459089=_0xcd20a3[_0x10ec2f(0x210)])==null?void 0x0:_0x459089['filter'](_0x1a29e7=>_0x1a29e7['blockId']!==_0xfeea79[_0x10ec2f(0x205)]),_0xfeea79['startIndex'];}function _0x2dcdc4(_0x334f86){const _0x3b3620=_0x5eba1f;return{..._0x334f86,'body':_0x334f86[_0x3b3620(0x1d1)]?_0x1bec5a(_0x334f86[_0x3b3620(0x1d1)]):_0x334f86['body']};}function _0x1bec5a(_0x4450c8){const _0x2dcb19=_0x5eba1f;var _0x4c630d,_0x55bdf9,_0x4829c8,_0x36a5c6,_0x3236ff,_0x29b7db,_0x5a6836,_0x163db4,_0x2cfe09;return{..._0x4450c8,'paragraphs':(_0x4c630d=_0x4450c8['paragraphs'])==null?void 0x0:_0x4c630d[_0x2dcb19(0x1e1)](_0x8ba0c8=>({..._0x8ba0c8,'bullet':_0x3a4ab0(_0x8ba0c8[_0x2dcb19(0x23d)]),'paragraphStyle':_0x3a4ab0(_0x8ba0c8[_0x2dcb19(0x28e)])})),'sectionBreaks':(_0x55bdf9=_0x4450c8['sectionBreaks'])==null?void 0x0:_0x55bdf9[_0x2dcb19(0x1e1)](_0x83ad94=>({..._0x83ad94})),'textRuns':(_0x4829c8=_0x4450c8[_0x2dcb19(0x1d9)])==null?void 0x0:_0x4829c8[_0x2dcb19(0x1e1)](_0x357c01=>({..._0x357c01})),'tables':(_0x36a5c6=_0x4450c8['tables'])==null?void 0x0:_0x36a5c6[_0x2dcb19(0x1e1)](_0x2fc37b=>({..._0x2fc37b})),'columnGroups':(_0x3236ff=_0x4450c8['columnGroups'])==null?void 0x0:_0x3236ff[_0x2dcb19(0x1e1)](_0x5afb6f=>{const _0x156253=_0x2dcb19;var _0x33e1d5;return{..._0x5afb6f,'columns':(_0x33e1d5=_0x5afb6f[_0x156253(0x296)])==null?void 0x0:_0x33e1d5[_0x156253(0x1e1)](_0x1fd7a8=>_0x3a4ab0(_0x1fd7a8))};}),'blockRanges':(_0x29b7db=_0x4450c8[_0x2dcb19(0x210)])==null?void 0x0:_0x29b7db[_0x2dcb19(0x1e1)](_0x32e888=>({..._0x32e888})),'customRanges':(_0x5a6836=_0x4450c8['customRanges'])==null?void 0x0:_0x5a6836[_0x2dcb19(0x1e1)](_0x2eef0e=>({..._0x2eef0e})),'customDecorations':(_0x163db4=_0x4450c8[_0x2dcb19(0x29d)])==null?void 0x0:_0x163db4[_0x2dcb19(0x1e1)](_0x219959=>({..._0x219959})),'customBlocks':(_0x2cfe09=_0x4450c8['customBlocks'])==null?void 0x0:_0x2cfe09[_0x2dcb19(0x1e1)](_0x2475c7=>({..._0x2475c7}))};}function _0x3a4ab0(_0x415ba3){const _0x155cb8=_0x5eba1f;return Array[_0x155cb8(0x209)](_0x415ba3)?_0x415ba3[_0x155cb8(0x1e1)](_0x4f476d=>_0x3a4ab0(_0x4f476d)):!_0x415ba3||typeof _0x415ba3!=_0x155cb8(0x247)?_0x415ba3:Object[_0x155cb8(0x1e0)](Object[_0x155cb8(0x1c3)](_0x415ba3)[_0x155cb8(0x1e1)](([_0x1e4f03,_0x58c7a5])=>[_0x1e4f03,_0x3a4ab0(_0x58c7a5)]));}function _0x321b75(_0x4b4b65){const _0xa9ca45=_0x5eba1f;if(!_0x4b4b65['body'])throw Error(_0xa9ca45(0x1e3));return _0x4b4b65[_0xa9ca45(0x1d1)];}function _0x33873c(_0x12a94a,_0x1c34cf,_0x4a7e59,_0x5be4ff='convert-paragraph'){const _0xc0c77=_0x5eba1f;if(_0x1c34cf==null||_0x4a7e59==null){let _0x38accf=_0x2b5be4(_0x12a94a);return{'startOffset':_0x38accf,'endOffset':_0x38accf};}let _0x4d69ab=Math[_0xc0c77(0x20a)](_0x1c34cf,_0x4a7e59),_0x23e7c6=Math[_0xc0c77(0x24c)](_0x1c34cf,_0x4a7e59),_0x38b49f=_0x17ec23(_0x12a94a,_0x4d69ab,_0x23e7c6);return _0x4d69ab===_0x23e7c6?_0x5be4ff===_0xc0c77(0x29b)?{'startOffset':_0x4d69ab,'endOffset':_0x23e7c6}:_0x2dfc79(_0x12a94a,_0x4d69ab,_0x38b49f):_0x12bb9b(_0x12a94a,_0x4d69ab,_0x23e7c6,_0x38b49f);}function _0x2dfc79(_0x51e38a,_0x35c04c,_0xeac873){const _0x28bab5=_0x5eba1f;let _0x1c03e4=_0x267e61(_0x51e38a,_0x35c04c);if(_0x1c03e4){let _0x1f34fb=_0x2937e2(_0x51e38a,_0x1c03e4,_0xeac873);if(_0x1f34fb<_0x1c03e4[_0x28bab5(0x274)])return{'startOffset':_0x1f34fb,'endOffset':_0xeac873?Math[_0x28bab5(0x20a)](_0x1c03e4[_0x28bab5(0x274)]+0x1,_0xeac873[_0x28bab5(0x1c4)]):_0x1c03e4[_0x28bab5(0x274)]+0x1};}let _0x12d639=_0x35c04c===0x0&&_0x51e38a['dataStream'][0x0]===_0x2a5329[_0x28bab5(0x27a)][_0x28bab5(0x292)]?0x1:_0x35c04c;return{'startOffset':_0x12d639,'endOffset':_0x12d639};}function _0x2b5be4(_0x3fff02){const _0xaad3c7=_0x5eba1f;return _0x3fff02[_0xaad3c7(0x1f0)][_0xaad3c7(0x246)](_0x2a5329[_0xaad3c7(0x27a)][_0xaad3c7(0x2a0)])?Math['max'](0x0,_0x3fff02[_0xaad3c7(0x1f0)]['length']-0x1):_0x3fff02[_0xaad3c7(0x1f0)]['length'];}function _0x278bb1(_0x5c01a4,_0x2a9448,_0x3a25c1){const _0x18b266=_0x5eba1f;var _0x159694;let _0x2c316f=Math['min'](_0x2a9448,_0x3a25c1),_0x42fc28=Math[_0x18b266(0x24c)](_0x2a9448,_0x3a25c1);return!!((_0x159694=_0x5c01a4[_0x18b266(0x20e)])!=null&&_0x159694[_0x18b266(0x22c)](_0x5e1887=>_0x2c316f>_0x5e1887[_0x18b266(0x274)]&&_0x2c316f<_0x5e1887[_0x18b266(0x220)]||_0x42fc28>_0x5e1887[_0x18b266(0x274)]&&_0x42fc28<_0x5e1887[_0x18b266(0x220)]||_0x2c316f<=_0x5e1887[_0x18b266(0x274)]&&_0x42fc28>=_0x5e1887[_0x18b266(0x220)]));}function _0x12bb9b(_0x289f35,_0xaf5f3d,_0xe3f4fd,_0x1d1b15){const _0x5873bd=_0x5eba1f;let _0x4663fb=[..._0x289f35[_0x5873bd(0x20b)]??[]][_0x5873bd(0x1d0)]((_0x201065,_0x3b4c29)=>_0x201065[_0x5873bd(0x274)]-_0x3b4c29['startIndex']),_0x52f12f=(0x0,_0x2a5329[_0x5873bd(0x270)])(_0x289f35),_0x353e50=_0x4663fb['find'](_0x3c1fdd=>_0x2937e2(_0x289f35,_0x3c1fdd,_0x1d1b15,_0x52f12f)<=_0xaf5f3d&&_0xaf5f3d<=_0x3c1fdd[_0x5873bd(0x274)]),_0x34e2fe=_0x4663fb[_0x5873bd(0x1e9)](_0x76c0e0=>_0x76c0e0[_0x5873bd(0x274)]>=_0xe3f4fd-0x1)??_0x4663fb[_0x4663fb['length']-0x1];return{'startOffset':_0x353e50?_0x2937e2(_0x289f35,_0x353e50,_0x1d1b15,_0x52f12f):_0xaf5f3d,'endOffset':_0x34e2fe?_0x3ef984(_0x34e2fe,_0x1d1b15):_0xe3f4fd};}function _0x267e61(_0x123ab7,_0x1d6d33){const _0x54bad3=_0x5eba1f;let _0xbb458d=[..._0x123ab7[_0x54bad3(0x20b)]??[]][_0x54bad3(0x1d0)]((_0x45d540,_0x233dbb)=>_0x45d540[_0x54bad3(0x274)]-_0x233dbb[_0x54bad3(0x274)]),_0xa355e7=(0x0,_0x2a5329[_0x54bad3(0x270)])(_0x123ab7);return _0xbb458d[_0x54bad3(0x1e9)](_0x2b8d73=>(_0xa355e7[_0x54bad3(0x1f2)](_0x2b8d73['startIndex'])??0x0)<=_0x1d6d33&&_0x1d6d33<=_0x2b8d73[_0x54bad3(0x274)]);}function _0x2937e2(_0x2e3544,_0x2c4609,_0xcedab7,_0x36b87c){const _0x2a78e5=_0x5eba1f;let _0x57e85e=(_0x36b87c==null?void 0x0:_0x36b87c[_0x2a78e5(0x1f2)](_0x2c4609[_0x2a78e5(0x274)]))??(0x0,_0x2a5329[_0x2a78e5(0x27b)])(_0x2e3544,_0x2c4609);return _0xcedab7?Math['max'](_0x57e85e,_0xcedab7[_0x2a78e5(0x25a)]):_0x57e85e;}function _0x3ef984(_0x21c44c,_0x3ed3b0){const _0x4f04de=_0x5eba1f;let _0xf4bf23=_0x21c44c[_0x4f04de(0x274)]+0x1;return _0x3ed3b0?Math['min'](_0xf4bf23,_0x3ed3b0[_0x4f04de(0x1c4)]):_0xf4bf23;}function _0x17ec23(_0x478d20,_0x35edae,_0x452402){const _0x10c60c=_0x5eba1f;let _0x60d220=_0x192407(_0x478d20,_0x35edae),_0x32817b=_0x192407(_0x478d20,_0x35edae===_0x452402?_0x452402:Math['max'](_0x35edae,_0x452402-0x1));if(_0x60d220||_0x32817b){if(!_0x60d220||!_0x32817b||_0x60d220[_0x10c60c(0x1f6)]!==_0x32817b['startTokenOffset']||_0x60d220[_0x10c60c(0x290)]!==_0x32817b[_0x10c60c(0x290)])throw new _0x2eaf3f();return _0x60d220;}}function _0x192407(_0x3e64ce,_0x584460){const _0xa36ab7=_0x5eba1f;let _0x24b7e7=_0x3e64ce[_0xa36ab7(0x1f0)],_0x351fcd=-0x1;for(let _0x533dfb=Math[_0xa36ab7(0x20a)](_0x584460,_0x24b7e7[_0xa36ab7(0x22b)]-0x1);_0x533dfb>=0x0;_0x533dfb--){let _0x5e365f=_0x24b7e7[_0x533dfb];if(_0x5e365f===_0x2a5329[_0xa36ab7(0x27a)][_0xa36ab7(0x1d6)])return;if(_0x5e365f===_0x2a5329[_0xa36ab7(0x27a)][_0xa36ab7(0x221)]){_0x351fcd=_0x533dfb;break;}}if(_0x351fcd<0x0)return;let _0x370728=_0x24b7e7[_0xa36ab7(0x234)](_0x2a5329[_0xa36ab7(0x27a)][_0xa36ab7(0x1d6)],_0x351fcd+0x1);if(!(_0x370728<0x0||_0x584460<_0x351fcd+0x1||_0x584460>_0x370728-0x1))return{'startOffset':_0x351fcd+0x1,'endOffset':Math[_0xa36ab7(0x24c)](_0x351fcd+0x1,_0x370728-0x1),'startTokenOffset':_0x351fcd,'endTokenOffset':_0x370728};}function _0x3793df(_0x218372){const _0x6681dc=_0x5eba1f;return(0x0,_0x2a5329[_0x6681dc(0x1fa)])(_0x218372)[_0x6681dc(0x1c4)]-0x1;}function _0x4499fb(_0x4edaf8,_0x3edbff,_0xc8a780,_0x3e3475){const _0x5a24ea=_0x5eba1f;let _0x13b779=_0x3793df(_0x3edbff),_0x18e6ad=(_0x4edaf8[_0x5a24ea(0x20b)]??[])[_0x5a24ea(0x1e9)](_0x3d19cf=>_0x3d19cf['startIndex']===_0x13b779+0x1);if(!_0x18e6ad||_0x3e3475!=null&&_0x18e6ad[_0x5a24ea(0x274)]!==_0x3e3475||_0xc8a780!=null&&(_0xc8a780<_0x13b779||_0xc8a780>_0x18e6ad[_0x5a24ea(0x274)]+0x1)||_0x4edaf8['dataStream'][_0x18e6ad['startIndex']]!==_0x2a5329[_0x5a24ea(0x27a)][_0x5a24ea(0x292)])return null;let _0xb94db7=(0x0,_0x2a5329[_0x5a24ea(0x27b)])(_0x4edaf8,_0x18e6ad),_0x2d106=_0x4edaf8[_0x5a24ea(0x1f0)]['slice'](_0xb94db7,_0x18e6ad[_0x5a24ea(0x274)]);return Array['from'](_0x2d106)[_0x5a24ea(0x24b)](_0x3ff9ef=>_0x3ff9ef===_0x2a5329[_0x5a24ea(0x27a)][_0x5a24ea(0x1cb)])?{'paragraph':_0x18e6ad,'endTokenOffset':_0x13b779}:null;}function _0x11e109(_0x2bc271,_0x470f62){const _0x56cc3d=_0x5eba1f;var _0x4d2255;let _0x44a20b=_0x3793df(_0x470f62),_0x3c6bb9=_0x2bc271[_0x56cc3d(0x1f0)][_0x44a20b+0x1];(_0x3c6bb9===_0x2a5329[_0x56cc3d(0x27a)]['SECTION_BREAK']||_0x3c6bb9===void 0x0)&&_0x5f3461(_0x2bc271,_0x44a20b+0x1,_0x2a5329[_0x56cc3d(0x27a)][_0x56cc3d(0x292)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,_0x2a5329['createParagraphId'])(new Set((_0x4d2255=_0x2bc271[_0x56cc3d(0x20b)])==null?void 0x0:_0x4d2255[_0x56cc3d(0x1e1)](_0x3d54b3=>_0x3d54b3[_0x56cc3d(0x216)])))}]});}function _0x5f3461(_0x539cd3,_0x2da483,_0x4d5fba,_0x2c3dcc={}){const _0x11cd76=_0x5eba1f;var _0x123792,_0x4c99b2;_0x4d5fba&&(_0x539cd3['dataStream']=''+_0x539cd3[_0x11cd76(0x1f0)][_0x11cd76(0x211)](0x0,_0x2da483)+_0x4d5fba+_0x539cd3['dataStream'][_0x11cd76(0x211)](_0x2da483),_0x4ab265(_0x539cd3,_0x2da483,_0x4d5fba[_0x11cd76(0x22b)]),(_0x123792=_0x2c3dcc[_0x11cd76(0x20b)])!=null&&_0x123792['length']&&(_0x539cd3[_0x11cd76(0x20b)]=[..._0x539cd3[_0x11cd76(0x20b)]??[],..._0x2c3dcc[_0x11cd76(0x20b)][_0x11cd76(0x1e1)](_0x372eb3=>({..._0x372eb3,'startIndex':_0x372eb3[_0x11cd76(0x274)]+_0x2da483}))][_0x11cd76(0x1d0)]((_0x2f688b,_0x2ac80f)=>_0x2f688b[_0x11cd76(0x274)]-_0x2ac80f[_0x11cd76(0x274)])),(_0x4c99b2=_0x2c3dcc[_0x11cd76(0x210)])!=null&&_0x4c99b2[_0x11cd76(0x22b)]&&(_0x539cd3[_0x11cd76(0x210)]=[..._0x539cd3[_0x11cd76(0x210)]??[],..._0x2c3dcc[_0x11cd76(0x210)][_0x11cd76(0x1e1)](_0x194a40=>({..._0x194a40,'startIndex':_0x194a40[_0x11cd76(0x274)]+_0x2da483,'endIndex':_0x194a40[_0x11cd76(0x220)]+_0x2da483}))]['sort']((_0x291d48,_0x18e1ce)=>_0x291d48[_0x11cd76(0x274)]-_0x18e1ce[_0x11cd76(0x274)])));}function _0x32bd45(_0x222173,_0x4d8c46,_0x339fc5){const _0x2ca1c0=_0x5eba1f;let _0x2eecba=_0x339fc5-_0x4d8c46;_0x222173[_0x2ca1c0(0x1f0)]=''+_0x222173[_0x2ca1c0(0x1f0)]['slice'](0x0,_0x4d8c46)+_0x222173[_0x2ca1c0(0x1f0)][_0x2ca1c0(0x211)](_0x339fc5),_0x40922f(_0x222173,_0x4d8c46,_0x2eecba);}function _0x4ab265(_0xfc6850,_0x348ba0,_0x21b074){const _0x4a3572=_0x5eba1f;_0xfc6850['paragraphs']=_0x16e408(_0xfc6850['paragraphs'],_0x348ba0,_0x21b074),_0xfc6850[_0x4a3572(0x299)]=_0x16e408(_0xfc6850[_0x4a3572(0x299)],_0x348ba0,_0x21b074),_0xfc6850[_0x4a3572(0x1cf)]=_0x16e408(_0xfc6850[_0x4a3572(0x1cf)],_0x348ba0,_0x21b074),_0xfc6850[_0x4a3572(0x1d9)]=_0x278b68(_0xfc6850['textRuns'],_0x348ba0,_0x21b074),_0xfc6850[_0x4a3572(0x20e)]=_0x14b2b5(_0xfc6850[_0x4a3572(0x20e)],_0x348ba0,_0x21b074),_0xfc6850[_0x4a3572(0x1ef)]=_0x505dc3(_0xfc6850[_0x4a3572(0x1ef)],_0x348ba0,_0x21b074),_0xfc6850[_0x4a3572(0x1da)]=_0x505dc3(_0xfc6850[_0x4a3572(0x1da)],_0x348ba0,_0x21b074),_0xfc6850[_0x4a3572(0x29d)]=_0x505dc3(_0xfc6850[_0x4a3572(0x29d)],_0x348ba0,_0x21b074),_0xfc6850['blockRanges']=_0x505dc3(_0xfc6850['blockRanges'],_0x348ba0,_0x21b074);}function _0x40922f(_0x17dc34,_0x129d55,_0x3635f1){const _0x3698d4=_0x5eba1f;var _0x402f12,_0x31edc5;_0x17dc34['paragraphs']=_0x1cb620(_0x17dc34[_0x3698d4(0x20b)],_0x129d55,_0x3635f1),_0x17dc34[_0x3698d4(0x299)]=_0x1cb620(_0x17dc34[_0x3698d4(0x299)],_0x129d55,_0x3635f1),_0x17dc34[_0x3698d4(0x1cf)]=_0x1cb620(_0x17dc34[_0x3698d4(0x1cf)],_0x129d55,_0x3635f1),_0x17dc34[_0x3698d4(0x1d9)]=(_0x402f12=_0x377cb6((_0x31edc5=_0x17dc34[_0x3698d4(0x1d9)])==null?void 0x0:_0x31edc5['map'](_0x4c0a29=>({..._0x4c0a29,'startIndex':_0x4c0a29['st'],'endIndex':_0x4c0a29['ed']})),_0x129d55,_0x3635f1))==null?void 0x0:_0x402f12[_0x3698d4(0x1e1)](_0x4be9a3=>{let {startIndex:_0x2945a1,endIndex:_0x886b01,..._0xa01ddd}=_0x4be9a3;return{..._0xa01ddd,'st':_0x2945a1,'ed':_0x886b01};}),_0x17dc34[_0x3698d4(0x20e)]=_0x377cb6(_0x17dc34['tables'],_0x129d55,_0x3635f1),_0x17dc34['columnGroups']=_0x47229d(_0x17dc34['columnGroups'],_0x129d55,_0x3635f1),_0x17dc34[_0x3698d4(0x1da)]=_0x47229d(_0x17dc34[_0x3698d4(0x1da)],_0x129d55,_0x3635f1),_0x17dc34[_0x3698d4(0x29d)]=_0x47229d(_0x17dc34['customDecorations'],_0x129d55,_0x3635f1),_0x17dc34['blockRanges']=_0x47229d(_0x17dc34[_0x3698d4(0x210)],_0x129d55,_0x3635f1);}function _0x16e408(_0x52d2de,_0x111966,_0x4a4c55){const _0x2898a3=_0x5eba1f;return _0x52d2de==null?void 0x0:_0x52d2de[_0x2898a3(0x1e1)](_0x3a5ef5=>_0x3a5ef5['startIndex']>=_0x111966?{..._0x3a5ef5,'startIndex':_0x3a5ef5[_0x2898a3(0x274)]+_0x4a4c55}:_0x3a5ef5);}function _0x1cb620(_0xeafaac,_0x199790,_0x2cf9cc){const _0x165b58=_0x5eba1f;let _0x48e99f=_0x199790+_0x2cf9cc;return _0xeafaac==null?void 0x0:_0xeafaac[_0x165b58(0x1e1)](_0xc7edbb=>_0xc7edbb[_0x165b58(0x274)]>=_0x199790&&_0xc7edbb[_0x165b58(0x274)]<_0x48e99f?null:_0xc7edbb[_0x165b58(0x274)]>=_0x48e99f?{..._0xc7edbb,'startIndex':_0xc7edbb[_0x165b58(0x274)]-_0x2cf9cc}:_0xc7edbb)[_0x165b58(0x1e7)](_0x5848de=>_0x5848de!=null);}function _0x278b68(_0x450ede,_0x35b1b4,_0x25d207){const _0x359a13=_0x5eba1f;return _0x450ede==null?void 0x0:_0x450ede[_0x359a13(0x1e1)](_0x125dc8=>_0x125dc8['st']>=_0x35b1b4?{..._0x125dc8,'st':_0x125dc8['st']+_0x25d207,'ed':_0x125dc8['ed']+_0x25d207}:_0x125dc8['ed']>_0x35b1b4?{..._0x125dc8,'ed':_0x125dc8['ed']+_0x25d207}:_0x125dc8);}function _0x505dc3(_0x2cd76a,_0x248d36,_0xdd98f9){const _0x240a89=_0x5eba1f;return _0x2cd76a==null?void 0x0:_0x2cd76a[_0x240a89(0x1e1)](_0xe78652=>(0x0,_0x2a5329[_0x240a89(0x238)])(_0xe78652,_0x248d36,_0xdd98f9));}function _0x14b2b5(_0x4292b8,_0x5e427f,_0x23e432){const _0x4a7827=_0x5eba1f;return _0x4292b8==null?void 0x0:_0x4292b8[_0x4a7827(0x1e1)](_0x223ea3=>(0x0,_0x2a5329[_0x4a7827(0x20d)])(_0x223ea3,_0x5e427f,_0x23e432));}function _0x47229d(_0x43b68f,_0x595423,_0x27194c){const _0x5df005=_0x5eba1f;return _0x43b68f==null?void 0x0:_0x43b68f['map'](_0x557933=>(0x0,_0x2a5329[_0x5df005(0x278)])(_0x557933,_0x595423,_0x27194c))[_0x5df005(0x1e7)](_0x35808e=>_0x35808e!=null);}function _0x377cb6(_0x582216,_0x180543,_0x2f83c5){const _0x570485=_0x5eba1f;return _0x582216==null?void 0x0:_0x582216[_0x570485(0x1e1)](_0xfba115=>(0x0,_0x2a5329[_0x570485(0x27c)])(_0xfba115,_0x180543,_0x2f83c5))[_0x570485(0x1e7)](_0x7e80eb=>_0x7e80eb!=null);}let _0x4a06ef={'id':_0x5eba1f(0x28b),'type':_0x2a5329['CommandType'][_0x5eba1f(0x22e)],'handler':_0xa0f875=>{const _0x8f6d1=_0x5eba1f;var _0x33f8f5;if((0x0,_0xd998f[_0x8f6d1(0x295)])(_0x1fbbc0(_0xa0f875)))return!0x1;let _0x4dd31b=(0x0,_0xd998f['getContentInsertRange'])(_0xa0f875);if(_0x4dd31b)return _0xa0f875[_0x8f6d1(0x1f2)](_0x2a5329[_0x8f6d1(0x264)])[_0x8f6d1(0x269)](_0x4490c4['id'],{'startOffset':_0x4dd31b[_0x8f6d1(0x25a)],'endOffset':_0x4dd31b[_0x8f6d1(0x1c4)],'insertionMode':_0x8f6d1(0x29b),'unitId':_0x4dd31b[_0x8f6d1(0x1d2)]});let _0x4a8dd1=_0x42bb3b(_0xa0f875);if(!_0x4a8dd1)return!0x1;let _0x2bbc8a=(_0x33f8f5=_0xa0f875[_0x8f6d1(0x1f2)](_0x2a5329[_0x8f6d1(0x241)])[_0x8f6d1(0x1ea)](_0x2a5329['UniverInstanceType']['UNIVER_DOC']))==null?void 0x0:_0x33f8f5[_0x8f6d1(0x275)](),_0xcf2262=_0x2bbc8a?(0x0,_0x2a5329[_0x8f6d1(0x272)])(_0x2bbc8a,_0x4a8dd1):_0x4a8dd1[_0x8f6d1(0x274)]+0x1;return _0xa0f875[_0x8f6d1(0x1f2)](_0x2a5329[_0x8f6d1(0x264)])[_0x8f6d1(0x269)](_0x4490c4['id'],{'startOffset':_0xcf2262,'endOffset':_0xcf2262});}},_0x433134={'id':'docs-code.command.consume-boundary-delete','type':_0x2a5329[_0x5eba1f(0x1ed)][_0x5eba1f(0x22e)],'handler':()=>!0x0},_0x4490c4={'id':_0x5eba1f(0x26e),'type':_0x2a5329['CommandType'][_0x5eba1f(0x22e)],'handler':(_0x4a4a2f,_0x2f0ee2)=>{const _0xb64ba1=_0x5eba1f;let _0x194910=_0x256f15(_0x4a4a2f,_0x2f0ee2==null?void 0x0:_0x2f0ee2[_0xb64ba1(0x1d2)]);if(!_0x194910)return!0x1;let _0x198deb=_0x1fbbc0(_0x4a4a2f);if((0x0,_0xd998f['isHeaderFooterSelection'])(_0x198deb))return!0x1;let _0x61bdf0=_0x194910['model'][_0xb64ba1(0x235)](_0x194910[_0xb64ba1(0x1d2)]),_0x40c446=_0x6c6bd2(_0x2f0ee2,_0x198deb),_0x2f4057=_0x346731(_0x194910['previousDocumentData'],_0x40c446);if(_0x2f4057){if(_0x2f4057['blockType']!==_0x2a5329[_0xb64ba1(0x255)][_0xb64ba1(0x1d7)])return!0x1;let _0x308e51=_0x31f425({'blockId':_0x2f4057[_0xb64ba1(0x205)],'documentData':_0x194910[_0xb64ba1(0x1dc)],'metadata':_0x61bdf0});if(!_0x308e51)return!0x1;let _0x10649c=_0x45182a(_0x194910[_0xb64ba1(0x1f1)],_0x194910['selectionManager'],_0x194910[_0xb64ba1(0x1d2)],_0x194910[_0xb64ba1(0x1dc)],_0x308e51['nextDocumentData'],_0x4490c4['id'],_0x308e51['cursorOffset']);return _0x10649c&&_0x308e51[_0xb64ba1(0x222)]&&_0x194910[_0xb64ba1(0x26b)][_0xb64ba1(0x1d3)](_0x194910['unitId'],_0x308e51['nextMetadata']),_0x10649c;}let _0x334030=(_0x2f0ee2==null?void 0x0:_0x2f0ee2[_0xb64ba1(0x205)])??(0x0,_0x2a5329['generateRandomId'])(0x6),_0x423050;try{_0x423050=_0x405f43({'blockId':_0x334030,'config':_0x2f0ee2==null?void 0x0:_0x2f0ee2['config'],'documentData':_0x194910[_0xb64ba1(0x1dc)],'endOffset':_0x40c446==null?void 0x0:_0x40c446[_0xb64ba1(0x1c4)],'insertionMode':_0x2f0ee2==null?void 0x0:_0x2f0ee2[_0xb64ba1(0x200)],'metadata':_0x61bdf0,'startOffset':_0x40c446==null?void 0x0:_0x40c446[_0xb64ba1(0x25a)]});}catch(_0x4d6c2a){if(_0x4d6c2a instanceof _0x2eaf3f)return!0x1;throw _0x4d6c2a;}let _0x480c63=_0x45182a(_0x194910[_0xb64ba1(0x1f1)],_0x194910['selectionManager'],_0x194910['unitId'],_0x194910[_0xb64ba1(0x1dc)],_0x423050[_0xb64ba1(0x232)],_0x4490c4['id'],_0x423050[_0xb64ba1(0x1f9)]);return _0x480c63&&_0x423050[_0xb64ba1(0x222)]&&_0x194910[_0xb64ba1(0x26b)][_0xb64ba1(0x1d3)](_0x194910[_0xb64ba1(0x1d2)],_0x423050[_0xb64ba1(0x222)]),_0x480c63;}},_0x25d2bc={'id':_0x5eba1f(0x29a),'type':_0x2a5329['CommandType']['COMMAND'],'handler':(_0x37101b,_0xad11fe)=>{const _0x4f293e=_0x5eba1f;if(!_0xad11fe)return!0x1;let _0x41f5ef=_0x256f15(_0x37101b,_0xad11fe[_0x4f293e(0x1d2)]);if(!_0x41f5ef)return!0x1;let _0x2ac41c=_0xfd46a5({'blockId':_0xad11fe[_0x4f293e(0x205)],'config':_0xad11fe['config'],'documentData':_0x41f5ef[_0x4f293e(0x1dc)],'metadata':_0x41f5ef[_0x4f293e(0x26b)][_0x4f293e(0x235)](_0x41f5ef[_0x4f293e(0x1d2)])});return _0x2ac41c['nextMetadata']&&_0x41f5ef[_0x4f293e(0x26b)][_0x4f293e(0x1d3)](_0x41f5ef[_0x4f293e(0x1d2)],_0x2ac41c[_0x4f293e(0x222)]),!0x0;}},_0x589ed4={'id':_0x5eba1f(0x23c),'type':_0x2a5329[_0x5eba1f(0x1ed)]['COMMAND'],'handler':(_0x304d41,_0x88de98)=>_0x5c7341[_0x5eba1f(0x1c6)](_0x304d41,_0x88de98)},_0x5c7341={'id':'docs-code.command.unwrap','type':_0x2a5329[_0x5eba1f(0x1ed)][_0x5eba1f(0x22e)],'handler':(_0x49fb62,_0x4e29f5)=>{const _0x206926=_0x5eba1f;if(!_0x4e29f5)return!0x1;let _0x6c2898=_0x256f15(_0x49fb62,_0x4e29f5==null?void 0x0:_0x4e29f5[_0x206926(0x1d2)]);if(!_0x6c2898)return!0x1;let _0x2a25e8=_0x31f425({'blockId':_0x4e29f5[_0x206926(0x205)],'documentData':_0x6c2898[_0x206926(0x1dc)],'metadata':_0x6c2898[_0x206926(0x26b)][_0x206926(0x235)](_0x6c2898[_0x206926(0x1d2)])});if(!_0x2a25e8)return!0x1;let _0x3c8f10=_0x45182a(_0x6c2898[_0x206926(0x1f1)],_0x6c2898[_0x206926(0x268)],_0x6c2898['unitId'],_0x6c2898['previousDocumentData'],_0x2a25e8[_0x206926(0x232)],_0x5c7341['id'],_0x2a25e8[_0x206926(0x1f9)]);return _0x3c8f10&&_0x2a25e8[_0x206926(0x222)]&&_0x6c2898[_0x206926(0x26b)][_0x206926(0x1d3)](_0x6c2898['unitId'],_0x2a25e8[_0x206926(0x222)]),_0x3c8f10;}},_0xabeec1={'id':_0x5eba1f(0x26a),'type':_0x2a5329[_0x5eba1f(0x1ed)][_0x5eba1f(0x22e)],'handler':(_0x583e0c,_0x12ff85)=>{const _0xee2db5=_0x5eba1f;if(!_0x12ff85)return!0x1;let _0x2fe77c=_0x256f15(_0x583e0c,_0x12ff85==null?void 0x0:_0x12ff85[_0xee2db5(0x1d2)]);if(!_0x2fe77c)return!0x1;let _0x338422=_0x1c7443({'blockId':_0x12ff85[_0xee2db5(0x205)],'documentData':_0x2fe77c[_0xee2db5(0x1dc)],'metadata':_0x2fe77c['model'][_0xee2db5(0x235)](_0x2fe77c['unitId'])});if(!_0x338422)return!0x1;let _0x46a359=_0x45182a(_0x2fe77c[_0xee2db5(0x1f1)],_0x2fe77c[_0xee2db5(0x268)],_0x2fe77c[_0xee2db5(0x1d2)],_0x2fe77c[_0xee2db5(0x1dc)],_0x338422['nextDocumentData'],_0xabeec1['id'],_0x338422['cursorOffset']);return _0x46a359&&_0x338422['nextMetadata']&&_0x2fe77c['model'][_0xee2db5(0x1d3)](_0x2fe77c[_0xee2db5(0x1d2)],_0x338422[_0xee2db5(0x222)]),_0x46a359;}},_0xb5bab8={'id':'docs-code.command.cancel-empty-paragraph','type':_0x2a5329[_0x5eba1f(0x1ed)][_0x5eba1f(0x22e)],'handler':(_0x3eacbf,_0x47a9f2)=>{const _0x5731fe=_0x5eba1f;var _0x4e4297;let _0x391168=_0x256f15(_0x3eacbf,_0x47a9f2==null?void 0x0:_0x47a9f2['unitId']);if(!_0x391168)return!0x1;let _0xcd83af=(_0x47a9f2==null?void 0x0:_0x47a9f2['cursorOffset'])??((_0x4e4297=_0x1fbbc0(_0x3eacbf))==null?void 0x0:_0x4e4297[_0x5731fe(0x25a)]);if(_0xcd83af==null)return!0x1;let _0x57e765=_0x35527e({'cursorOffset':_0xcd83af,'documentData':_0x391168['previousDocumentData'],'paragraphStartIndex':_0x47a9f2==null?void 0x0:_0x47a9f2[_0x5731fe(0x1eb)]});return _0x57e765?_0x45182a(_0x391168[_0x5731fe(0x1f1)],_0x391168['selectionManager'],_0x391168[_0x5731fe(0x1d2)],_0x391168[_0x5731fe(0x1dc)],_0x57e765[_0x5731fe(0x232)],_0xb5bab8['id'],_0x57e765['cursorOffset']):!0x1;}};function _0x256f15(_0x4fa2c6,_0x389b11){const _0x402caf=_0x5eba1f;let _0x2105c6=_0x4fa2c6[_0x402caf(0x1f2)](_0x2a5329['IUniverInstanceService']),_0x379a2d=_0x389b11?_0x2105c6[_0x402caf(0x207)](_0x389b11,_0x2a5329[_0x402caf(0x263)][_0x402caf(0x1fb)]):_0x2105c6[_0x402caf(0x1ea)](_0x2a5329[_0x402caf(0x263)]['UNIVER_DOC']);return _0x379a2d?{'commandService':_0x4fa2c6['get'](_0x2a5329[_0x402caf(0x264)]),'model':_0x4fa2c6[_0x402caf(0x1f2)](_0x2b6374),'previousDocumentData':_0x379a2d[_0x402caf(0x214)](),'selectionManager':_0x4fa2c6[_0x402caf(0x1f2)](_0xd998f['DocSelectionManagerService']),'unitId':_0x379a2d[_0x402caf(0x26c)]()}:null;}function _0x1fbbc0(_0x92e7ba){const _0x2bf321=_0x5eba1f;var _0x3df33d;return(_0x3df33d=_0x92e7ba[_0x2bf321(0x1f2)](_0xd998f[_0x2bf321(0x230)])['getTextRanges']())==null?void 0x0:_0x3df33d[0x0];}function _0x6c6bd2(_0x4e14fb,_0x3d2176){const _0x20286f=_0x5eba1f;let _0x54bc37=(_0x4e14fb==null?void 0x0:_0x4e14fb[_0x20286f(0x25a)])??(_0x3d2176==null?void 0x0:_0x3d2176[_0x20286f(0x25a)]),_0x1f30db=(_0x4e14fb==null?void 0x0:_0x4e14fb['endOffset'])??(_0x3d2176==null?void 0x0:_0x3d2176[_0x20286f(0x1c4)]);if(_0x54bc37!=null&&_0x1f30db!=null)return{'endOffset':Math[_0x20286f(0x24c)](_0x54bc37,_0x1f30db),'startOffset':Math[_0x20286f(0x20a)](_0x54bc37,_0x1f30db)};}function _0x346731(_0x1b9125,_0x2d2f33){const _0x2ba0ff=_0x5eba1f;var _0x215902;if(!_0x2d2f33)return;let _0x189bdf=_0x595e79(_0x2d2f33);return(_0x215902=_0x1b9125['body'])==null||(_0x215902=_0x215902['blockRanges'])==null?void 0x0:_0x215902[_0x2ba0ff(0x1e9)](_0x325498=>{const _0x2e6301=_0x2ba0ff;let _0x2e4d5=(0x0,_0x2a5329[_0x2e6301(0x1fa)])(_0x325498);return _0x2d2f33[_0x2e6301(0x25a)]===_0x2d2f33['endOffset']?(0x0,_0x2a5329[_0x2e6301(0x261)])(_0x2e4d5,_0x189bdf):(0x0,_0x2a5329[_0x2e6301(0x26f)])(_0x2e4d5,_0x189bdf);});}function _0x595e79(_0x223c19){const _0x34328b=_0x5eba1f;return _0x223c19[_0x34328b(0x25a)]===_0x223c19['endOffset']?_0x223c19[_0x34328b(0x25a)]:_0x223c19[_0x34328b(0x25a)]+0x1;}function _0x42bb3b(_0x403361){const _0x5450ab=_0x5eba1f;let _0x4eb216=_0x1fbbc0(_0x403361);if(!_0x4eb216)return null;let _0x3c6f40=_0x403361[_0x5450ab(0x1f2)](_0x2a5329[_0x5450ab(0x241)])[_0x5450ab(0x1ea)](_0x2a5329['UniverInstanceType']['UNIVER_DOC']),_0x640c=_0x3c6f40==null?void 0x0:_0x3c6f40[_0x5450ab(0x275)]();return _0x640c?_0x2a5329[_0x5450ab(0x282)][_0x5450ab(0x1de)][_0x5450ab(0x284)](_0x4eb216,_0x640c['paragraphs']??[],_0x640c['dataStream']??'')[0x0]??null:null;}function _0x31a552(_0x347aad,_0x5b8488){const _0x2a1eb6=_0x5eba1f;let _0x392ec4=_0x347aad[_0x2a1eb6(0x1d1)],_0x4adaea=_0x5b8488[_0x2a1eb6(0x1d1)],_0x554088=(0x0,_0x2a5329['getSingleDataStreamChange'])(_0x392ec4,_0x4adaea);return[_0x554088&&_0x4adaea?_0x75971f(_0x4adaea,_0x554088):null,_0x554088?null:_0x167375(_0x392ec4,_0x4adaea)]['filter'](Boolean)['reduce']((_0x47b845,_0x2c4a31)=>_0x2a5329[_0x2a1eb6(0x1fe)]['compose'](_0x47b845,_0x2c4a31),null);}function _0x75971f(_0x375dea,_0x25be4b){const _0x466420=_0x5eba1f;let _0x1f5065=new _0x2a5329[(_0x466420(0x24a))]();return _0x1f5065[_0x466420(0x265)](_0x25be4b[_0x466420(0x253)]),_0x25be4b['insertLength']>0x0&&_0x1f5065[_0x466420(0x29c)](_0x25be4b[_0x466420(0x217)],(0x0,_0x2a5329[_0x466420(0x1f5)])(_0x375dea,_0x25be4b[_0x466420(0x253)],_0x25be4b[_0x466420(0x253)]+_0x25be4b[_0x466420(0x217)],!0x1)),_0x25be4b[_0x466420(0x21f)]>0x0&&_0x1f5065[_0x466420(0x1e6)](_0x25be4b[_0x466420(0x21f)]),_0x2a5329[_0x466420(0x1fe)][_0x466420(0x1df)]()['editOp'](_0x1f5065['serialize'](),['body']);}function _0x167375(_0x37862d,_0x8ab408){const _0x44c746=_0x5eba1f;let _0x4677b9=[],_0x36a8ff=_0x37862d?_0x3990f5(_0x37862d):void 0x0,_0x4a7dff=_0x8ab408?_0x3990f5(_0x8ab408):void 0x0;for(let _0x155d88 of _0x18f7dc)_0x3a517c(_0x2a5329['JSONX'][_0x44c746(0x1df)](),[_0x44c746(0x1d1),_0x155d88],_0x36a8ff==null?void 0x0:_0x36a8ff[_0x155d88],_0x4a7dff==null?void 0x0:_0x4a7dff[_0x155d88],_0x4677b9);return _0x4677b9[_0x44c746(0x21c)]((_0x51489f,_0x8aa602)=>_0x2a5329[_0x44c746(0x1fe)][_0x44c746(0x250)](_0x51489f,_0x8aa602),null);}let _0x18f7dc=[_0x5eba1f(0x20b),'sectionBreaks',_0x5eba1f(0x20e),_0x5eba1f(0x1ef),'blockRanges',_0x5eba1f(0x1cf),_0x5eba1f(0x1da),'customDecorations',_0x5eba1f(0x1d9)];function _0x3990f5(_0x33c1a4){return _0x33c1a4;}function _0x3a517c(_0x3f2ca8,_0x1e2c66,_0x262ab5,_0x308330,_0x75c502){const _0x107433=_0x5eba1f;_0x5b09a4(_0x262ab5,_0x308330)||(_0x262ab5==null?_0x75c502[_0x107433(0x229)](_0x3f2ca8[_0x107433(0x271)](_0x1e2c66,_0x308330)):_0x308330==null?_0x75c502[_0x107433(0x229)](_0x3f2ca8[_0x107433(0x224)](_0x1e2c66,_0x262ab5)):Array[_0x107433(0x209)](_0x262ab5)&&Array[_0x107433(0x209)](_0x308330)?_0x337a32(_0x3f2ca8,_0x1e2c66,_0x262ab5,_0x308330,_0x75c502):_0x2fcea9(_0x262ab5)&&_0x2fcea9(_0x308330)?new Set([...Object[_0x107433(0x21b)](_0x262ab5),...Object['keys'](_0x308330)])['forEach'](_0x55d822=>{_0x3a517c(_0x3f2ca8,[..._0x1e2c66,_0x55d822],_0x262ab5[_0x55d822],_0x308330[_0x55d822],_0x75c502);}):_0x75c502[_0x107433(0x229)](_0x3f2ca8['replaceOp'](_0x1e2c66,_0x262ab5,_0x308330)));}function _0x337a32(_0x2a5df4,_0x559b0e,_0x14364f,_0x35442d,_0x1584dd){const _0xfc70b1=_0x5eba1f;if(_0x14364f[_0xfc70b1(0x22b)]===_0x35442d[_0xfc70b1(0x22b)]){_0x14364f[_0xfc70b1(0x25c)]((_0x11c870,_0x131cd6)=>_0x3a517c(_0x2a5df4,[..._0x559b0e,_0x131cd6],_0x11c870,_0x35442d[_0x131cd6],_0x1584dd));return;}let _0x427b61=0x0;for(;_0x427b61<_0x14364f[_0xfc70b1(0x22b)]&&_0x427b61<_0x35442d[_0xfc70b1(0x22b)]&&_0x5b09a4(_0x14364f[_0x427b61],_0x35442d[_0x427b61]);)_0x427b61++;let _0x45e72c=_0x14364f[_0xfc70b1(0x22b)]-0x1,_0x13000d=_0x35442d[_0xfc70b1(0x22b)]-0x1;for(;_0x45e72c>=_0x427b61&&_0x13000d>=_0x427b61&&_0x5b09a4(_0x14364f[_0x45e72c],_0x35442d[_0x13000d]);)_0x45e72c--,_0x13000d--;for(let _0x277ec2=_0x45e72c;_0x277ec2>=_0x427b61;_0x277ec2--)_0x1584dd['push'](_0x2a5df4['removeOp']([..._0x559b0e,_0x277ec2],_0x14364f[_0x277ec2]));for(let _0xa27b66=_0x427b61;_0xa27b66<=_0x13000d;_0xa27b66++)_0x1584dd[_0xfc70b1(0x229)](_0x2a5df4['insertOp']([..._0x559b0e,_0xa27b66],_0x35442d[_0xa27b66]));}function _0x2fcea9(_0x41a6f1){const _0x4c61a7=_0x5eba1f;return typeof _0x41a6f1==_0x4c61a7(0x247)&&!!_0x41a6f1&&!Array[_0x4c61a7(0x209)](_0x41a6f1);}function _0x5b09a4(_0xcfd66b,_0x4e447f){const _0x582fad=_0x5eba1f;return JSON[_0x582fad(0x204)](_0xcfd66b)===JSON[_0x582fad(0x204)](_0x4e447f);}function _0x45182a(_0x137389,_0x4c805c,_0x4da838,_0x47d853,_0x1c942e,_0x1a179a,_0x279074){const _0x3dd51c=_0x5eba1f;let _0x49df92=_0x31a552(_0x47d853,_0x1c942e);return _0x49df92?!!_0x137389[_0x3dd51c(0x269)](_0xd998f[_0x3dd51c(0x201)]['id'],{'unitId':_0x4da838,'actions':_0x49df92,'textRanges':[{'startOffset':_0x279074,'endOffset':_0x279074,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x1a179a}):(_0x4c805c[_0x3dd51c(0x1e2)]([{'startOffset':_0x279074,'endOffset':_0x279074}],{'unitId':_0x4da838,'subUnitId':_0x4da838},!0x1),!0x0);}let _0x3d4c46=_0x5eba1f(0x243);var _0x46dcf4=_0x5eba1f(0x203),_0x12e3ce=_0x5eba1f(0x21a);let _0x166a79={};function _0x18b440(_0x5d8a80,_0x5db2de){return function(_0x5391eb,_0xb5b7f5){_0x5db2de(_0x5391eb,_0xb5b7f5,_0x5d8a80);};}function _0x573885(_0x4d1e57,_0x20db97,_0x160100,_0x2db468){const _0x524002=_0x5eba1f;var _0x17e286=arguments[_0x524002(0x22b)],_0x4cf663=_0x17e286<0x3?_0x20db97:_0x2db468===null?_0x2db468=Object[_0x524002(0x259)](_0x20db97,_0x160100):_0x2db468,_0x48d1a4;if(typeof Reflect==_0x524002(0x247)&&typeof Reflect[_0x524002(0x280)]==_0x524002(0x1f8))_0x4cf663=Reflect['decorate'](_0x4d1e57,_0x20db97,_0x160100,_0x2db468);else{for(var _0x2957bd=_0x4d1e57['length']-0x1;_0x2957bd>=0x0;_0x2957bd--)(_0x48d1a4=_0x4d1e57[_0x2957bd])&&(_0x4cf663=(_0x17e286<0x3?_0x48d1a4(_0x4cf663):_0x17e286>0x3?_0x48d1a4(_0x20db97,_0x160100,_0x4cf663):_0x48d1a4(_0x20db97,_0x160100))||_0x4cf663);}return _0x17e286>0x3&&_0x4cf663&&Object[_0x524002(0x23a)](_0x20db97,_0x160100,_0x4cf663),_0x4cf663;}let _0x4db51d=class extends _0x2a5329['Disposable']{constructor(_0x68503e,_0x2a512c){const _0xabd527=_0x5eba1f;super(),this['_resourceManagerService']=_0x68503e,this[_0xabd527(0x202)]=_0x2a512c,this[_0xabd527(0x1ca)]();}[_0x5eba1f(0x1ca)](){const _0xc0e741=_0x5eba1f;this[_0xc0e741(0x1e8)](this[_0xc0e741(0x262)][_0xc0e741(0x28a)]({'pluginName':_0x3d4c46,'businesses':[_0x2a5329[_0xc0e741(0x263)][_0xc0e741(0x1fb)]],'toJson':_0x20ecd0=>JSON[_0xc0e741(0x204)](this['_docsCodeModel'][_0xc0e741(0x235)](_0x20ecd0)),'parseJson':_0x26b294=>_0x3bd20a(JSON[_0xc0e741(0x266)](_0x26b294)),'onLoad':(_0x357423,_0x2a596f)=>this[_0xc0e741(0x202)][_0xc0e741(0x1d3)](_0x357423,_0x2a596f),'onUnLoad':_0x5f3c23=>this[_0xc0e741(0x202)]['removeUnit'](_0x5f3c23)}));}};_0x4db51d=_0x573885([_0x18b440(0x0,_0x2a5329[_0x5eba1f(0x1fc)]),_0x18b440(0x1,(0x0,_0x2a5329[_0x5eba1f(0x25b)])(_0x2b6374))],_0x4db51d);let _0x22959a=class extends _0x2a5329[_0x5eba1f(0x258)]{constructor(_0x452a45=_0x166a79,_0x869823,_0xc4e533,_0x21704e){const _0x45880c=_0x5eba1f;super(),this[_0x45880c(0x267)]=_0x452a45,this[_0x45880c(0x228)]=_0x869823,this['_commandService']=_0xc4e533,this[_0x45880c(0x23f)]=_0x21704e;let {..._0x5124f7}=(0x0,_0x2a5329[_0x45880c(0x1c7)])({},_0x166a79,this[_0x45880c(0x267)]);this[_0x45880c(0x23f)][_0x45880c(0x242)]('docs-code.config',_0x5124f7);}[_0x5eba1f(0x245)](){const _0x51bd1b=_0x5eba1f;this['_injector']['add']([_0x2b6374]),this['_injector']['add']([_0x4db51d]),this[_0x51bd1b(0x228)]['get'](_0x2b6374),this[_0x51bd1b(0x228)][_0x51bd1b(0x1f2)](_0x4db51d),[_0x4490c4,_0x4a06ef,_0x25d2bc,_0x5c7341,_0xabeec1,_0x589ed4,_0xb5bab8,_0x433134,_0xfea112,_0x46da34][_0x51bd1b(0x25c)](_0x5159e0=>this[_0x51bd1b(0x1e8)](this[_0x51bd1b(0x22a)][_0x51bd1b(0x291)](_0x5159e0)));}};_0x18c008(_0x22959a,_0x5eba1f(0x289),_0x3d4c46),_0x18c008(_0x22959a,_0x5eba1f(0x252),_0x46dcf4),_0x18c008(_0x22959a,_0x5eba1f(0x21e),_0x12e3ce),_0x18c008(_0x22959a,_0x5eba1f(0x1e4),_0x2a5329['UniverInstanceType'][_0x5eba1f(0x1fb)]),_0x22959a=_0x573885([(0x0,_0x2a5329[_0x5eba1f(0x273)])(_0x2a235e[_0x5eba1f(0x2a2)],_0xd998f[_0x5eba1f(0x26d)]),_0x18b440(0x1,(0x0,_0x2a5329['Inject'])(_0x2a5329[_0x5eba1f(0x24e)])),_0x18b440(0x2,_0x2a5329[_0x5eba1f(0x264)]),_0x18b440(0x3,_0x2a5329[_0x5eba1f(0x237)])],_0x22959a),_0x20031a[_0x5eba1f(0x293)]=_0x3d4c46,_0x20031a[_0x5eba1f(0x21d)]=_0xb5bab8,_0x20031a[_0x5eba1f(0x2a1)]=_0x433134,_0x20031a[_0x5eba1f(0x1d5)]=_0x4a06ef,_0x20031a['DocsCodeInsertCommand']=_0x4490c4,_0x20031a[_0x5eba1f(0x213)]=_0x2b6374,_0x20031a[_0x5eba1f(0x226)]=_0xabeec1,_0x20031a[_0x5eba1f(0x233)]=_0x5c7341,_0x20031a[_0x5eba1f(0x24f)]=_0x25d2bc,_0x20031a[_0x5eba1f(0x22d)]=_0x46da34,_0x20031a[_0x5eba1f(0x277)]=_0xfea112,Object[_0x5eba1f(0x23a)](_0x20031a,_0x5eba1f(0x20c),{'enumerable':!0x0,'get':function(){return _0x22959a;}}),_0x20031a['buildCancelEmptyCodeParagraphActions']=_0x35527e,_0x20031a[_0x5eba1f(0x287)]=_0x30c98d,_0x20031a[_0x5eba1f(0x22f)]=_0x4f674c,_0x20031a[_0x5eba1f(0x281)]=_0x3bd20a;}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/docs-code",
3
- "version": "1.0.4",
3
+ "version": "1.1.0",
4
4
  "private": false,
5
5
  "description": "Code block model integration for Univer Docs.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -61,15 +61,15 @@
61
61
  "rxjs": ">=7.0.0"
62
62
  },
63
63
  "dependencies": {
64
- "@univerjs-pro/license": "1.0.4",
65
- "@univerjs/core": "1.0.4",
66
- "@univerjs/docs": "1.0.4"
64
+ "@univerjs-pro/license": "1.1.0",
65
+ "@univerjs/core": "1.1.0",
66
+ "@univerjs/docs": "1.1.0"
67
67
  },
68
68
  "devDependencies": {
69
- "@univerjs-infra/shared": "1.0.4",
69
+ "@univerjs-infra/shared": "1.1.0",
70
70
  "rxjs": "7.8.2",
71
71
  "typescript": "^6.0.3",
72
- "vitest": "^5.0.0"
72
+ "vitest": "^5.0.4"
73
73
  },
74
74
  "scripts": {
75
75
  "test": "vitest run",