@univerjs-pro/docs-code 1.0.3 → 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 _0x3114(){var _0x19520a=['symbol','_injector','12051603sDXOnm','toPrimitive','defineProperty','11694QsdJaX','@univerjs-pro/docs-code','_blockId','539599ZzFqoD','decorate','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','3257448ssRafc','object','CODE','DocumentBlockRangeType','_getBlockRanges','normalizeDocsCodeConfig','unwrap','iterator','call','2516590bxQJOp','_getBlockRange','filter','remove','constructor','1099041LQQuXm','DocsCodeRemoveCommand','_getDocumentData','BLOCK_END','from','BLOCK_START','prototype','_createFDocumentCode','2KhVuGl','startIndex','toStringTag','DataStreamTreeTokenType','get','25370686bTEjei','Injector','UniverDocsFacade','updateConfig','getRange','isParagraphFacade','FDocumentCode','slice','text','Inject','createInstance','function','ICommandService','Module','map','getText','7HzVlSi','getCodes','_unitId','amd','FDocument','SECTION_BREAK','generateRandomId','findCodes','DocsCodeUnwrapCommand','syncExecuteCommand','find','getOwnPropertyDescriptor','blockRanges','DocsCodeModel','findCodeByText','dataStream','endIndex','some','UniverProDocsCodeFacade','length','blockType','getCodeAt','blockId','getConfig','_document','body','string','DocsCodeInsertCommand','getId','DocsCodeUpdateCommand','getCodeConfig','save','4lfPzFB','2425tIuDpM'];_0x3114=function(){return _0x19520a;};return _0x3114();}function _0x299b(_0x177f31,_0x35de84){_0x177f31=_0x177f31-0x9e;var _0x31146e=_0x3114();var _0x299b8e=_0x31146e[_0x177f31];return _0x299b8e;}(function(_0x32a07a,_0x38564a){var _0x4cea65=_0x299b,_0x370098=_0x32a07a();while(!![]){try{var _0x4e1586=-parseInt(_0x4cea65(0xc7))/0x1*(-parseInt(_0x4cea65(0xe0))/0x2)+-parseInt(_0x4cea65(0xd8))/0x3*(parseInt(_0x4cea65(0xbd))/0x4)+-parseInt(_0x4cea65(0xbe))/0x5*(parseInt(_0x4cea65(0xc4))/0x6)+-parseInt(_0x4cea65(0xf5))/0x7*(-parseInt(_0x4cea65(0xca))/0x8)+-parseInt(_0x4cea65(0xc1))/0x9+parseInt(_0x4cea65(0xd3))/0xa+parseInt(_0x4cea65(0xe5))/0xb;if(_0x4e1586===_0x38564a)break;else _0x370098['push'](_0x370098['shift']());}catch(_0xa5aafe){_0x370098['push'](_0x370098['shift']());}}}(_0x3114,0xd08aa),function(_0x1f5bab,_0x29d7e6){var _0x2932aa=_0x299b;typeof exports==_0x2932aa(0xcb)&&typeof module<'u'?_0x29d7e6(exports,require('@univerjs-pro/docs-code'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define==_0x2932aa(0xf0)&&define[_0x2932aa(0xa0)]?define(['exports',_0x2932aa(0xc5),'@univerjs/core','@univerjs/docs/facade'],_0x29d7e6):(_0x1f5bab=typeof globalThis<'u'?globalThis:_0x1f5bab||self,_0x29d7e6(_0x1f5bab[_0x2932aa(0xaf)]={},_0x1f5bab['UniverProDocsCode'],_0x1f5bab['UniverCore'],_0x1f5bab[_0x2932aa(0xe7)]));}(this,function(_0x1cae52,_0x215ddd,_0x5069ce,_0x113430){var _0x5d0e10=_0x299b;Object[_0x5d0e10(0xc3)](_0x1cae52,Symbol[_0x5d0e10(0xe2)],{'value':_0x5d0e10(0xf2)});function _0x57cf60(_0x46c1bc){'@babel/helpers - typeof';var _0x2ea60a=_0x5d0e10;return _0x57cf60=typeof Symbol=='function'&&typeof Symbol[_0x2ea60a(0xd1)]==_0x2ea60a(0xbf)?function(_0x56410e){return typeof _0x56410e;}:function(_0x4a269f){var _0x52d0e7=_0x2ea60a;return _0x4a269f&&typeof Symbol==_0x52d0e7(0xf0)&&_0x4a269f[_0x52d0e7(0xd7)]===Symbol&&_0x4a269f!==Symbol[_0x52d0e7(0xde)]?_0x52d0e7(0xbf):typeof _0x4a269f;},_0x57cf60(_0x46c1bc);}function _0x1613a6(_0xf21e37,_0x4ea5e4){var _0x31a77=_0x5d0e10;if(_0x57cf60(_0xf21e37)!=_0x31a77(0xcb)||!_0xf21e37)return _0xf21e37;var _0x8a1656=_0xf21e37[Symbol[_0x31a77(0xc2)]];if(_0x8a1656!==void 0x0){var _0x56e37a=_0x8a1656[_0x31a77(0xd2)](_0xf21e37,_0x4ea5e4||'default');if(_0x57cf60(_0x56e37a)!=_0x31a77(0xcb))return _0x56e37a;throw TypeError(_0x31a77(0xc9));}return(_0x4ea5e4===_0x31a77(0xb7)?String:Number)(_0xf21e37);}function _0x5796d7(_0x476ac7){var _0x597286=_0x5d0e10,_0xd55e7c=_0x1613a6(_0x476ac7,'string');return _0x57cf60(_0xd55e7c)==_0x597286(0xbf)?_0xd55e7c:_0xd55e7c+'';}function _0x3863ce(_0x201994,_0x3d3e4b,_0x135a92){var _0x8ede46=_0x5d0e10;return(_0x3d3e4b=_0x5796d7(_0x3d3e4b))in _0x201994?Object[_0x8ede46(0xc3)](_0x201994,_0x3d3e4b,{'value':_0x135a92,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x201994[_0x3d3e4b]=_0x135a92,_0x201994;}function _0x58caf7(_0x27b65b,_0x4f3051){return function(_0x2bacfa,_0x31e907){_0x4f3051(_0x2bacfa,_0x31e907,_0x27b65b);};}function _0x4f2234(_0x5e2d29,_0x5da662,_0x575ce9,_0x2a6ac4){var _0x6b150e=_0x5d0e10,_0x5bbca2=arguments['length'],_0x241cb3=_0x5bbca2<0x3?_0x5da662:_0x2a6ac4===null?_0x2a6ac4=Object[_0x6b150e(0xa8)](_0x5da662,_0x575ce9):_0x2a6ac4,_0xdce955;if(typeof Reflect==_0x6b150e(0xcb)&&typeof Reflect[_0x6b150e(0xc8)]==_0x6b150e(0xf0))_0x241cb3=Reflect[_0x6b150e(0xc8)](_0x5e2d29,_0x5da662,_0x575ce9,_0x2a6ac4);else{for(var _0xb7ad5c=_0x5e2d29[_0x6b150e(0xb0)]-0x1;_0xb7ad5c>=0x0;_0xb7ad5c--)(_0xdce955=_0x5e2d29[_0xb7ad5c])&&(_0x241cb3=(_0x5bbca2<0x3?_0xdce955(_0x241cb3):_0x5bbca2>0x3?_0xdce955(_0x5da662,_0x575ce9,_0x241cb3):_0xdce955(_0x5da662,_0x575ce9))||_0x241cb3);}return _0x5bbca2>0x3&&_0x241cb3&&Object[_0x6b150e(0xc3)](_0x5da662,_0x575ce9,_0x241cb3),_0x241cb3;}let _0x421126=class{constructor(_0x2a92d1,_0x65a609,_0xf422ba){var _0x48c4ed=_0x5d0e10;this['_document']=_0x2a92d1,this['_blockId']=_0x65a609,this[_0x48c4ed(0xc0)]=_0xf422ba,_0x3863ce(this,_0x48c4ed(0x9f),void 0x0),this[_0x48c4ed(0x9f)]=this[_0x48c4ed(0xb5)][_0x48c4ed(0xb9)]();}['getId'](){var _0x3bb8c8=_0x5d0e10;return this[_0x3bb8c8(0xc6)];}['getRange'](){var _0x53da97=_0x5d0e10;let _0x3b1940=this[_0x53da97(0xd4)]();return _0x3b1940?{'blockId':_0x3b1940[_0x53da97(0xb3)],'endIndex':_0x3b1940[_0x53da97(0xad)],'startIndex':_0x3b1940[_0x53da97(0xe1)]}:null;}['getText'](){var _0x255537=_0x5d0e10,_0x1a3b50;let _0xb19fc6=this[_0x255537(0xd4)](),_0x5871bb=(_0x1a3b50=this[_0x255537(0xda)]()[_0x255537(0xb6)])==null?void 0x0:_0x1a3b50[_0x255537(0xac)];return!_0xb19fc6||!_0x5871bb?'':_0x39cc45(_0x5871bb[_0x255537(0xec)](_0xb19fc6[_0x255537(0xe1)]+0x1,_0xb19fc6[_0x255537(0xad)]));}['describe'](){var _0x5037d1=_0x5d0e10;let _0x1c71d7=this[_0x5037d1(0xe9)]();return _0x1c71d7?{..._0x1c71d7,'config':this[_0x5037d1(0xb4)](),'text':this['getText'](),'type':_0x5069ce[_0x5037d1(0xcd)][_0x5037d1(0xcc)]}:null;}['getConfig'](){var _0x22b74a=_0x5d0e10;let _0x52bec7=this[_0x22b74a(0xc0)]['get'](_0x215ddd[_0x22b74a(0xaa)]);return(0x0,_0x215ddd[_0x22b74a(0xcf)])(_0x52bec7[_0x22b74a(0xbb)](this[_0x22b74a(0x9f)],this[_0x22b74a(0xc6)]));}[_0x5d0e10(0xe8)](_0x5bb017){var _0x1d5232=_0x5d0e10;return this[_0x1d5232(0xc0)]['get'](_0x5069ce['ICommandService'])[_0x1d5232(0xa6)](_0x215ddd[_0x1d5232(0xba)]['id'],{'blockId':this[_0x1d5232(0xc6)],'config':_0x5bb017['config'],'unitId':this[_0x1d5232(0x9f)]});}[_0x5d0e10(0xd0)](){var _0x301b6a=_0x5d0e10;return this[_0x301b6a(0xc0)][_0x301b6a(0xe4)](_0x5069ce[_0x301b6a(0xf1)])['syncExecuteCommand'](_0x215ddd[_0x301b6a(0xa5)]['id'],{'blockId':this[_0x301b6a(0xc6)],'unitId':this[_0x301b6a(0x9f)]});}[_0x5d0e10(0xd6)](){var _0x12521f=_0x5d0e10;return this[_0x12521f(0xc0)]['get'](_0x5069ce[_0x12521f(0xf1)])[_0x12521f(0xa6)](_0x215ddd[_0x12521f(0xd9)]['id'],{'blockId':this['_blockId'],'unitId':this['_unitId']});}[_0x5d0e10(0xd4)](){var _0x4d1398=_0x5d0e10,_0x4530be;return((_0x4530be=this[_0x4d1398(0xda)]()[_0x4d1398(0xb6)])==null||(_0x4530be=_0x4530be[_0x4d1398(0xa9)])==null?void 0x0:_0x4530be[_0x4d1398(0xa7)](_0x285c86=>_0x285c86[_0x4d1398(0xb3)]===this['_blockId']&&_0x285c86[_0x4d1398(0xb1)]===_0x5069ce[_0x4d1398(0xcd)]['CODE']))??null;}[_0x5d0e10(0xda)](){var _0x2096cd=_0x5d0e10;return this['_document'][_0x2096cd(0xbc)]();}};_0x421126=_0x4f2234([_0x58caf7(0x2,(0x0,_0x5069ce[_0x5d0e10(0xee)])(_0x5069ce[_0x5d0e10(0xe6)]))],_0x421126);function _0x39cc45(_0x4d098c){var _0x2d06d4=_0x5d0e10;return Array[_0x2d06d4(0xdc)](_0x4d098c)['map'](_0x4c2bd7=>_0x4c2bd7===_0x5069ce[_0x2d06d4(0xe3)]['PARAGRAPH']?'\x0a':_0x4c2bd7)[_0x2d06d4(0xd5)](_0x2d4ed7=>_0x2d4ed7!==_0x5069ce[_0x2d06d4(0xe3)][_0x2d06d4(0xdd)]&&_0x2d4ed7!==_0x5069ce['DataStreamTreeTokenType'][_0x2d06d4(0xdb)]&&_0x2d4ed7!==_0x5069ce['DataStreamTreeTokenType'][_0x2d06d4(0xa2)])['join']('')['replace'](/\n$/,'');}var _0xaf6292=class extends _0x113430['FDocument']{[_0x5d0e10(0x9e)](){var _0x135cf4=_0x5d0e10;return this[_0x135cf4(0xce)]()[_0x135cf4(0xd5)](_0x5b6441=>_0x5b6441['blockType']===_0x5069ce[_0x135cf4(0xcd)]['CODE'])[_0x135cf4(0xf3)](_0x5d0d13=>this[_0x135cf4(0xdf)](_0x5d0d13[_0x135cf4(0xb3)]));}['getCode'](_0x256381){var _0x3bf55e=_0x5d0e10;return this[_0x3bf55e(0xce)]()[_0x3bf55e(0xae)](_0x1c5f74=>_0x1c5f74[_0x3bf55e(0xb3)]===_0x256381&&_0x1c5f74['blockType']===_0x5069ce[_0x3bf55e(0xcd)]['CODE'])?this[_0x3bf55e(0xdf)](_0x256381):null;}[_0x5d0e10(0xb2)](_0x20a3b3){var _0x2b1630=_0x5d0e10;let _0x27fa0e=this[_0x2b1630(0xce)]()[_0x2b1630(0xa7)](_0x3d804d=>_0x3d804d[_0x2b1630(0xb1)]===_0x5069ce[_0x2b1630(0xcd)][_0x2b1630(0xcc)]&&_0x3d804d['startIndex']<=_0x20a3b3&&_0x20a3b3<=_0x3d804d['endIndex']);return _0x27fa0e?this[_0x2b1630(0xdf)](_0x27fa0e[_0x2b1630(0xb3)]):null;}[_0x5d0e10(0xab)](_0x43778d){var _0x2b27d5=_0x5d0e10;return this[_0x2b27d5(0xa4)](_0x43778d)[0x0]??null;}[_0x5d0e10(0xa4)](_0x4e9660){var _0x45c00f=_0x5d0e10;let _0x397752=typeof _0x4e9660==_0x45c00f(0xb7)?{'text':_0x4e9660}:_0x4e9660;return this['getCodes']()[_0x45c00f(0xd5)](_0x57b977=>!(_0x397752[_0x45c00f(0xb3)]&&_0x57b977[_0x45c00f(0xb9)]()!==_0x397752['blockId']||_0x397752[_0x45c00f(0xed)]&&!_0x57b977[_0x45c00f(0xf4)]()['includes'](_0x397752[_0x45c00f(0xed)])));}['insertCode'](_0x210337={},_0x3e8bc2={}){var _0x3d7941=_0x5d0e10;let _0x5d15f1=this[_0x3d7941(0xc0)][_0x3d7941(0xe4)](_0x5069ce[_0x3d7941(0xf1)]),_0x7045c0=(0x0,_0x113430[_0x3d7941(0xea)])(_0x210337)?{..._0x3e8bc2,..._0x210337[_0x3d7941(0xe9)]()}:_0x210337,_0x4b7cf1=_0x7045c0[_0x3d7941(0xb3)]??(0x0,_0x5069ce[_0x3d7941(0xa3)])(0x6);return _0x5d15f1[_0x3d7941(0xa6)](_0x215ddd[_0x3d7941(0xb8)]['id'],{..._0x7045c0,'blockId':_0x4b7cf1,'unitId':this[_0x3d7941(0xb9)]()})?this['getCode'](_0x4b7cf1):null;}[_0x5d0e10(0xce)](){var _0x1be4a4=_0x5d0e10,_0x1dc84c;return((_0x1dc84c=this[_0x1be4a4(0xbc)]()['body'])==null?void 0x0:_0x1dc84c[_0x1be4a4(0xa9)])??[];}[_0x5d0e10(0xdf)](_0xc4c656){var _0x3e58df=_0x5d0e10;return this[_0x3e58df(0xc0)][_0x3e58df(0xef)](_0x421126,this,_0xc4c656);}};_0x113430[_0x5d0e10(0xa1)]['extend'](_0xaf6292),Object[_0x5d0e10(0xc3)](_0x1cae52,_0x5d0e10(0xeb),{'enumerable':!0x0,'get':function(){return _0x421126;}});}));
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(_0x80e8ba,_0x3f80cc){const _0x523886=_0x3926,_0x5b7735=_0x80e8ba();while(!![]){try{const _0x24b947=parseInt(_0x523886(0x23f))/0x1*(-parseInt(_0x523886(0x19c))/0x2)+-parseInt(_0x523886(0x182))/0x3+parseInt(_0x523886(0x1b4))/0x4+-parseInt(_0x523886(0x206))/0x5+-parseInt(_0x523886(0x227))/0x6*(-parseInt(_0x523886(0x219))/0x7)+parseInt(_0x523886(0x229))/0x8*(parseInt(_0x523886(0x234))/0x9)+parseInt(_0x523886(0x1f9))/0xa*(parseInt(_0x523886(0x257))/0xb);if(_0x24b947===_0x3f80cc)break;else _0x5b7735['push'](_0x5b7735['shift']());}catch(_0x2ac242){_0x5b7735['push'](_0x5b7735['shift']());}}}(_0x24eb,0x53f6a),function(_0x34f33d,_0x41080c){const _0x2fb5c0=_0x3926;typeof exports==_0x2fb5c0(0x259)&&typeof module<'u'?_0x41080c(exports,require('@univerjs/core'),require('rxjs'),require('@univerjs/docs'),require('@univerjs-pro/license')):typeof define==_0x2fb5c0(0x212)&&define[_0x2fb5c0(0x1f0)]?define([_0x2fb5c0(0x244),_0x2fb5c0(0x183),_0x2fb5c0(0x22b),_0x2fb5c0(0x220),'@univerjs-pro/license'],_0x41080c):(_0x34f33d=typeof globalThis<'u'?globalThis:_0x34f33d||self,_0x41080c(_0x34f33d[_0x2fb5c0(0x253)]={},_0x34f33d[_0x2fb5c0(0x200)],_0x34f33d[_0x2fb5c0(0x22b)],_0x34f33d[_0x2fb5c0(0x1e2)],_0x34f33d[_0x2fb5c0(0x1dc)]));}(this,function(_0x3a686e,_0x3ec08c,_0x1f3046,_0x514b03,_0x4d0859){const _0x309445=_0x3926;Object[_0x309445(0x24c)](_0x3a686e,Symbol[_0x309445(0x1bc)],{'value':_0x309445(0x1d4)});let _0x412018={'language':_0x309445(0x1b3),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function _0x627ab3(_0x213aed){return{..._0x412018,..._0x213aed};}function _0x4d8be0(_0x16ccde){const _0x104b11=_0x309445;let _0x2c4f0a=(_0x16ccde==null?void 0x0:_0x16ccde[_0x104b11(0x242)])??{};return{'codes':Object[_0x104b11(0x1a0)](Object[_0x104b11(0x1c1)](_0x2c4f0a)[_0x104b11(0x23a)](([_0x5707d3,_0x49a61c])=>[_0x5707d3,_0x627ab3(_0x49a61c)]))};}function _0x546965(_0x2fd52d,_0x243cb8,_0x57a2c6){const _0x474fdb=_0x309445;let _0x116a75=_0x4d8be0(_0x2fd52d);return _0x116a75[_0x474fdb(0x242)][_0x243cb8]=_0x627ab3({..._0x116a75[_0x474fdb(0x242)][_0x243cb8],..._0x57a2c6}),_0x116a75;}function _0x2fa9af(_0x563606,_0x5bd1ec){const _0x5a44e9=_0x309445;let _0x5bfc51=_0x4d8be0(_0x563606);return delete _0x5bfc51[_0x5a44e9(0x242)][_0x5bd1ec],_0x5bfc51;}function _0x5292f5(_0x1f4016){'@babel/helpers - typeof';const _0x52fd65=_0x309445;return _0x5292f5=typeof Symbol==_0x52fd65(0x212)&&typeof Symbol[_0x52fd65(0x256)]==_0x52fd65(0x1f6)?function(_0x5547e4){return typeof _0x5547e4;}:function(_0x1a65f7){const _0x32561c=_0x52fd65;return _0x1a65f7&&typeof Symbol==_0x32561c(0x212)&&_0x1a65f7[_0x32561c(0x203)]===Symbol&&_0x1a65f7!==Symbol[_0x32561c(0x185)]?'symbol':typeof _0x1a65f7;},_0x5292f5(_0x1f4016);}function _0x3812bd(_0x2642f7,_0x5db434){const _0xe7cfef=_0x309445;if(_0x5292f5(_0x2642f7)!=_0xe7cfef(0x259)||!_0x2642f7)return _0x2642f7;var _0x3687cd=_0x2642f7[Symbol[_0xe7cfef(0x197)]];if(_0x3687cd!==void 0x0){var _0x4a7859=_0x3687cd[_0xe7cfef(0x1bb)](_0x2642f7,_0x5db434||'default');if(_0x5292f5(_0x4a7859)!=_0xe7cfef(0x259))return _0x4a7859;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5db434==='string'?String:Number)(_0x2642f7);}function _0x16b248(_0x361385){const _0xd097dc=_0x309445;var _0x3ce6fa=_0x3812bd(_0x361385,'string');return _0x5292f5(_0x3ce6fa)==_0xd097dc(0x1f6)?_0x3ce6fa:_0x3ce6fa+'';}function _0x6a7255(_0x55fec6,_0x8d1cc7,_0x52415c){return(_0x8d1cc7=_0x16b248(_0x8d1cc7))in _0x55fec6?Object['defineProperty'](_0x55fec6,_0x8d1cc7,{'value':_0x52415c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x55fec6[_0x8d1cc7]=_0x52415c,_0x55fec6;}var _0xea2109=class extends _0x3ec08c[_0x309445(0x23d)]{constructor(..._0x3f9109){const _0x28b242=_0x309445;super(..._0x3f9109),_0x6a7255(this,_0x28b242(0x199),new Map()),_0x6a7255(this,'_change$',new _0x1f3046[(_0x28b242(0x1ea))]()),_0x6a7255(this,_0x28b242(0x221),this[_0x28b242(0x1ca)]['asObservable']());}['getCodeConfig'](_0x2b3582,_0x41165d){const _0x394e7d=_0x309445;return _0x4d8be0(this[_0x394e7d(0x199)][_0x394e7d(0x23b)](_0x2b3582))[_0x394e7d(0x242)][_0x41165d];}[_0x309445(0x231)](_0x5bd5a0,_0x271ef8,_0x471f13){const _0x3d64e3=_0x309445;this[_0x3d64e3(0x1f7)](_0x5bd5a0,_0x271ef8,_0x546965(this[_0x3d64e3(0x199)]['get'](_0x5bd5a0),_0x271ef8,_0x471f13));}[_0x309445(0x1af)](_0x12e015,_0x1145a6){const _0xb9740a=_0x309445;this['_setResource'](_0x12e015,_0x1145a6,_0x2fa9af(this[_0xb9740a(0x199)][_0xb9740a(0x23b)](_0x12e015),_0x1145a6));}['serialize'](_0x40566a){const _0x31a5c3=_0x309445;return _0x4d8be0(this[_0x31a5c3(0x199)][_0x31a5c3(0x23b)](_0x40566a));}['deserialize'](_0x2ac7b5,_0x2ab5c6){const _0x2c6c41=_0x309445;this[_0x2c6c41(0x199)][_0x2c6c41(0x1c8)](_0x2ac7b5,_0x4d8be0(_0x2ab5c6)),this['_change$'][_0x2c6c41(0x1fe)]({'unitId':_0x2ac7b5});}[_0x309445(0x210)](_0x1f5c1a){const _0x4ad742=_0x309445;this['_resources'][_0x4ad742(0x1ee)](_0x1f5c1a),this[_0x4ad742(0x1ca)][_0x4ad742(0x1fe)]({'unitId':_0x1f5c1a});}[_0x309445(0x18f)](){const _0x3eabea=_0x309445;super[_0x3eabea(0x18f)](),this[_0x3eabea(0x199)][_0x3eabea(0x1a6)](),this[_0x3eabea(0x1ca)][_0x3eabea(0x1f5)]();}[_0x309445(0x1f7)](_0x198774,_0x40f4fc,_0x9b1196){const _0x535a42=_0x309445;this[_0x535a42(0x199)]['set'](_0x198774,_0x9b1196),this['_change$'][_0x535a42(0x1fe)]({'unitId':_0x198774,'blockId':_0x40f4fc});}};let _0x58a5db={'id':_0x309445(0x1ae),'type':_0x3ec08c[_0x309445(0x21d)][_0x309445(0x1d0)],'handler':(_0x5ac279,_0x3889d3)=>!(_0x3889d3!=null&&_0x3889d3[_0x309445(0x17e)])||!_0x3889d3['blockId']?!0x1:(_0x5ac279['get'](_0xea2109)[_0x309445(0x231)](_0x3889d3[_0x309445(0x17e)],_0x3889d3[_0x309445(0x254)],_0x3889d3[_0x309445(0x1e7)]),!0x0)},_0x2ef9cf={'id':_0x309445(0x237),'type':_0x3ec08c[_0x309445(0x21d)][_0x309445(0x1d0)],'handler':(_0x19689d,_0xcfa5c2)=>!(_0xcfa5c2!=null&&_0xcfa5c2[_0x309445(0x17e)])||!_0xcfa5c2[_0x309445(0x254)]?!0x1:(_0x19689d[_0x309445(0x23b)](_0xea2109)['removeCode'](_0xcfa5c2['unitId'],_0xcfa5c2[_0x309445(0x254)]),!0x0)},_0x2fda6a=_0x309445(0x17f);var _0x4601fe=class extends Error{constructor(_0x2c2e22=_0x309445(0x1b8)){super(_0x2c2e22);}};function _0x4ca597(_0x33b51f){const _0x39ef35=_0x309445;var _0x4a4ac8;let _0x2339f4=_0x5ad516(_0x33b51f[_0x39ef35(0x1ff)]),_0x345f1a=_0x20c914(_0x2339f4),_0x341c76=_0x194a78(_0x33b51f['startOffset'],_0x33b51f['endOffset']),_0x251342=_0x341c76?(_0x4a4ac8=_0x345f1a[_0x39ef35(0x1bd)])==null?void 0x0:_0x4a4ac8[_0x39ef35(0x18d)](_0x3ea5a5=>{const _0x599a47=_0x39ef35;let _0x5b8ce9=(0x0,_0x3ec08c['getBlockRangeInterval'])(_0x3ea5a5);return _0x5b8ce9[_0x599a47(0x1ed)]===_0x341c76['startOffset']&&_0x5b8ce9['endOffset']===_0x341c76[_0x599a47(0x1f1)];}):void 0x0,{startOffset:_0x3ae533,endOffset:_0x2ea353}=_0x251342?_0x341c76:_0x2e4700(_0x345f1a,_0x33b51f[_0x39ef35(0x1ed)],_0x33b51f[_0x39ef35(0x1f1)],_0x33b51f[_0x39ef35(0x1cd)]);if(!_0x251342&&_0x430dad(_0x345f1a,_0x3ae533,_0x2ea353))throw new _0x4601fe('Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block');let _0x5b951f=_0x2e93d4(_0x345f1a,_0x3ae533,_0x2ea353),_0x24adff=(_0x251342==null?void 0x0:_0x251342[_0x39ef35(0x254)])??_0x33b51f['blockId'],_0x5a6346=_0x546965(_0x33b51f[_0x39ef35(0x251)],_0x24adff,{..._0x412018,..._0x33b51f[_0x39ef35(0x1e7)]});if(_0x251342)return _0x251342[_0x39ef35(0x24d)]=_0x3ec08c[_0x39ef35(0x1f3)]['CODE'],_0x391f2e(_0x345f1a,_0x3ae533,_0x2ea353),_0x166b4c(_0x345f1a,_0x3ae533,_0x2ea353,_0x5b951f),_0xabc62f(_0x345f1a,_0x251342),{'nextDocumentData':_0x2339f4,'nextMetadata':_0x5a6346,'cursorOffset':_0x3ae533+0x1};if(_0x3ae533===_0x2ea353){var _0x4d62e6,_0x11fb1b;let _0x3752a5=''+_0x3ec08c['DataStreamTreeTokenType'][_0x39ef35(0x252)]+_0x3ec08c[_0x39ef35(0x218)][_0x39ef35(0x1de)]+_0x3ec08c[_0x39ef35(0x218)][_0x39ef35(0x1ec)];_0x41f5f3(_0x345f1a,_0x3ae533,_0x3752a5,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,_0x3ec08c[_0x39ef35(0x25b)])(new Set((_0x4d62e6=_0x345f1a[_0x39ef35(0x236)])==null?void 0x0:_0x4d62e6[_0x39ef35(0x23a)](_0x27587b=>_0x27587b['paragraphId']))),'paragraphStyle':_0xaa3d3e(!0x0,!0x0,_0x5b951f)}],'blockRanges':[{'blockId':_0x24adff,'blockType':_0x3ec08c[_0x39ef35(0x1f3)]['CODE'],'startIndex':0x0,'endIndex':_0x3752a5[_0x39ef35(0x1ba)]-0x1}]});let _0x5c5e81=(_0x11fb1b=_0x345f1a['blockRanges'])==null?void 0x0:_0x11fb1b['find'](_0x59e639=>_0x59e639['blockId']===_0x24adff);return _0x5c5e81&&_0xabc62f(_0x345f1a,_0x5c5e81),{'nextDocumentData':_0x2339f4,'nextMetadata':_0x5a6346,'cursorOffset':_0x3ae533+0x1};}_0x41f5f3(_0x345f1a,_0x2ea353,_0x3ec08c[_0x39ef35(0x218)][_0x39ef35(0x1ec)]),_0x41f5f3(_0x345f1a,_0x3ae533,_0x3ec08c['DataStreamTreeTokenType'][_0x39ef35(0x252)]),_0x166b4c(_0x345f1a,_0x3ae533,_0x2ea353+0x1,_0x5b951f);let _0x2cc587={'blockId':_0x24adff,'blockType':_0x3ec08c['DocumentBlockRangeType'][_0x39ef35(0x20a)],'startIndex':_0x3ae533,'endIndex':_0x2ea353+0x1};return _0x345f1a[_0x39ef35(0x1bd)]=[..._0x345f1a[_0x39ef35(0x1bd)]??[],_0x2cc587][_0x39ef35(0x19e)]((_0x23d2eb,_0x561cfa)=>_0x23d2eb[_0x39ef35(0x207)]-_0x561cfa['startIndex']),_0xabc62f(_0x345f1a,_0x2cc587),{'nextDocumentData':_0x2339f4,'nextMetadata':_0x5a6346,'cursorOffset':_0x3ae533+0x1};}function _0x391f2e(_0x4d5159,_0x294bb7,_0x2ed28d){const _0x11b162=_0x309445;(_0x4d5159[_0x11b162(0x236)]??[])['filter'](_0x2706a3=>_0x2706a3[_0x11b162(0x207)]>_0x294bb7&&_0x2706a3[_0x11b162(0x207)]<_0x2ed28d)[_0x11b162(0x1d6)](_0xe3d4a6=>{const _0x1ea9e0=_0x11b162;let _0x5a26da={..._0xe3d4a6[_0x1ea9e0(0x21b)]??{}};delete _0x5a26da[_0x1ea9e0(0x1d5)],delete _0x5a26da[_0x1ea9e0(0x17c)],_0xe3d4a6[_0x1ea9e0(0x21b)]=_0x5a26da;});}function _0x194a78(_0x1802c4,_0x3f262c){const _0x18c6aa=_0x309445;return _0x1802c4==null||_0x3f262c==null||_0x1802c4===_0x3f262c?null:{'startOffset':Math[_0x18c6aa(0x18a)](_0x1802c4,_0x3f262c),'endOffset':Math['max'](_0x1802c4,_0x3f262c)};}function _0x430dad(_0x1f2f2f,_0x1844da,_0x831dcb){const _0x1d08fe=_0x309445;return(_0x1f2f2f[_0x1d08fe(0x1bd)]??[])[_0x1d08fe(0x1dd)](_0x2cb1a0=>{const _0x32aa32=_0x1d08fe;let _0x54519c=(0x0,_0x3ec08c[_0x32aa32(0x194)])(_0x2cb1a0);return _0x1844da===_0x831dcb?(0x0,_0x3ec08c[_0x32aa32(0x1ad)])(_0x54519c,_0x1844da):(0x0,_0x3ec08c[_0x32aa32(0x1c3)])(_0x54519c,{'startOffset':_0x1844da,'endOffset':_0x831dcb});});}function _0x2e4649(_0x15007a){const _0x56d0fe=_0x309445;return{'nextDocumentData':_0x5ad516(_0x15007a[_0x56d0fe(0x1ff)]),'nextMetadata':_0x546965(_0x15007a['metadata'],_0x15007a['blockId'],_0x15007a['config']),'cursorOffset':0x0};}function _0x25ca4a(_0x4c42df){const _0x5a3a72=_0x309445;let _0x2efd18=_0x5ad516(_0x4c42df['documentData']),_0x261d53=_0x20c914(_0x2efd18),_0x264580=_0x2929e2(_0x261d53,_0x4c42df['blockId']);if(!_0x264580)return null;let _0x42c33d=_0x12281d(_0x261d53,_0x264580);return{'nextDocumentData':_0x2efd18,'nextMetadata':_0x2fa9af(_0x4c42df[_0x5a3a72(0x251)],_0x4c42df[_0x5a3a72(0x254)]),'cursorOffset':_0x42c33d};}function _0x5d58a9(_0x578933){const _0x1d1609=_0x309445;var _0x4bb3d6;let _0x13b15c=_0x5ad516(_0x578933[_0x1d1609(0x1ff)]),_0x3c74d4=_0x20c914(_0x13b15c),_0x67db74=_0x2929e2(_0x3c74d4,_0x578933[_0x1d1609(0x254)]);if(!_0x67db74)return null;let _0x16cb4b=(0x0,_0x3ec08c[_0x1d1609(0x194)])(_0x67db74);return _0x410d4e(_0x3c74d4,_0x16cb4b[_0x1d1609(0x1ed)],_0x16cb4b['endOffset']),_0x3c74d4[_0x1d1609(0x1bd)]=(_0x4bb3d6=_0x3c74d4['blockRanges'])==null?void 0x0:_0x4bb3d6[_0x1d1609(0x1eb)](_0x13b002=>_0x13b002[_0x1d1609(0x254)]!==_0x578933['blockId']),{'nextDocumentData':_0x13b15c,'nextMetadata':_0x2fa9af(_0x578933['metadata'],_0x578933['blockId']),'cursorOffset':_0x67db74[_0x1d1609(0x207)]};}function _0x1ad099(_0x4aef37){const _0x31a923=_0x309445;let _0x3669fd=_0x5ad516(_0x4aef37[_0x31a923(0x1ff)]),_0x309ccb=_0x20c914(_0x3669fd),_0x5adfef=_0x2f96b7(_0x309ccb,_0x4aef37[_0x31a923(0x250)]);return _0x5adfef&&_0xc612c6(_0x3669fd,_0x309ccb,_0x5adfef,_0x4aef37[_0x31a923(0x250)],_0x4aef37[_0x31a923(0x20f)])||null;}function _0xc612c6(_0x172b2f,_0x2a67df,_0x21ae3d,_0x1146ab,_0x126674){const _0x39c6c4=_0x309445;let _0x5d1f0f=_0x14ad24(_0x2a67df,_0x21ae3d,_0x1146ab,_0x126674);if(!_0x5d1f0f)return null;let _0x32d892=_0x5d1f0f[_0x39c6c4(0x21a)]-0x1;return _0x410d4e(_0x2a67df,_0x5d1f0f[_0x39c6c4(0x189)]['startIndex'],_0x5d1f0f[_0x39c6c4(0x189)][_0x39c6c4(0x207)]+0x1),{'nextDocumentData':_0x172b2f,'cursorOffset':_0x32d892};}function _0x2929e2(_0x5b8fb6,_0x123f66){const _0x1776f1=_0x309445;var _0x2dc39f;return _0x5b8fb6==null||(_0x2dc39f=_0x5b8fb6[_0x1776f1(0x1bd)])==null?void 0x0:_0x2dc39f[_0x1776f1(0x18d)](_0x3afc1e=>_0x3afc1e['blockType']===_0x3ec08c['DocumentBlockRangeType'][_0x1776f1(0x20a)]&&_0x3afc1e[_0x1776f1(0x254)]===_0x123f66);}function _0x280fb7(_0x85aad1){const _0x444e64=_0x309445;let _0x51c7c3=_0x85aad1[_0x444e64(0x1ff)][_0x444e64(0x1fd)];if(!_0x51c7c3)return!0x1;let _0x4df73b=_0x85aad1[_0x444e64(0x1aa)]==='left'?_0x85aad1[_0x444e64(0x250)]-0x1:_0x85aad1['cursorOffset'],_0x68250f=_0x85aad1[_0x444e64(0x1aa)]==='right'?_0x85aad1[_0x444e64(0x250)]+0x1:_0x4df73b;return(_0x51c7c3[_0x444e64(0x1bd)]??[])['some'](_0x5ed7aa=>_0x5ed7aa[_0x444e64(0x24d)]===_0x3ec08c[_0x444e64(0x1f3)]['CODE']?_0x4df73b===_0x5ed7aa[_0x444e64(0x207)]||_0x4df73b===_0x5ed7aa['endIndex']||_0x68250f===_0x5ed7aa['startIndex']||_0x68250f===_0x5ed7aa['endIndex']:!0x1);}function _0x2f96b7(_0x26fce1,_0x37c45c){var _0x173f44;return(_0x173f44=_0x26fce1['blockRanges'])==null?void 0x0:_0x173f44['find'](_0x2664f0=>{const _0x804aaa=_0x3926;let _0x44e451=_0x5444ff(_0x2664f0);return _0x2664f0[_0x804aaa(0x24d)]===_0x3ec08c[_0x804aaa(0x1f3)][_0x804aaa(0x20a)]&&_0x2664f0[_0x804aaa(0x207)]<=_0x37c45c&&_0x37c45c<=_0x44e451+0x2;});}function _0xaa3d3e(_0x2efd59,_0x43528b,_0x3d57d7=!0x1){const _0x2f7d8e=_0x309445;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x3ec08c[_0x2f7d8e(0x21e)]['TRUE'],'keepNext':_0x43528b?_0x3ec08c[_0x2f7d8e(0x21e)][_0x2f7d8e(0x247)]:_0x3ec08c[_0x2f7d8e(0x21e)][_0x2f7d8e(0x19f)],'widowControl':_0x3ec08c['BooleanNumber'][_0x2f7d8e(0x19f)],..._0x2efd59&&_0x3d57d7?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':_0x2fda6a,'fs':0xc}};}function _0x166b4c(_0x428ea2,_0x15a295,_0x54ae90,_0x5457d6=!0x1){const _0x415742=_0x309445;let _0x30f7ed=(_0x428ea2[_0x415742(0x236)]??[])[_0x415742(0x1eb)](_0x4ed5ce=>_0x4ed5ce[_0x415742(0x207)]>_0x15a295&&_0x4ed5ce['startIndex']<_0x54ae90);_0x30f7ed[_0x415742(0x1d6)]((_0x49df62,_0x17dca0)=>{const _0xbdc6c5=_0x415742;_0x49df62[_0xbdc6c5(0x21b)]={..._0x49df62[_0xbdc6c5(0x21b)]??{},..._0xaa3d3e(_0x17dca0===0x0,_0x17dca0===_0x30f7ed[_0xbdc6c5(0x1ba)]-0x1,_0x5457d6)};});}function _0x598b24(_0x30171a){const _0x111257=_0x309445;var _0x1f323a,_0x5d41f1;let _0x19dbfe={..._0x30171a??{}};return delete _0x19dbfe[_0x111257(0x209)],delete _0x19dbfe['indentStart'],delete _0x19dbfe['spaceAbove'],delete _0x19dbfe[_0x111257(0x17c)],delete _0x19dbfe['keepLines'],delete _0x19dbfe[_0x111257(0x240)],delete _0x19dbfe[_0x111257(0x202)],((_0x1f323a=_0x19dbfe['textStyle'])==null?void 0x0:_0x1f323a['ff'])===_0x2fda6a&&((_0x5d41f1=_0x19dbfe[_0x111257(0x211)])==null?void 0x0:_0x5d41f1['fs'])===0xc&&delete _0x19dbfe[_0x111257(0x211)],_0x19dbfe;}function _0x4c506d(_0x14571d,_0x4ddf10){const _0x2578a0=_0x309445;let _0x3effb6=_0x5444ff(_0x4ddf10);return(_0x14571d['paragraphs']??[])['filter'](_0x3c7d08=>_0x3c7d08[_0x2578a0(0x207)]>_0x4ddf10['startIndex']&&_0x3c7d08[_0x2578a0(0x207)]<_0x3effb6);}function _0x12281d(_0x125912,_0x52e885){const _0x3241da=_0x309445;var _0x1ac71c;let _0x394bbb=_0x5444ff(_0x52e885);return _0x4c506d(_0x125912,_0x52e885)[_0x3241da(0x1d6)](_0x1a45e2=>{const _0x4fda6d=_0x3241da;_0x1a45e2[_0x4fda6d(0x21b)]=_0x598b24(_0x1a45e2[_0x4fda6d(0x21b)]);}),_0x410d4e(_0x125912,_0x394bbb,_0x394bbb+0x1),_0x410d4e(_0x125912,_0x52e885['startIndex'],_0x52e885[_0x3241da(0x207)]+0x1),_0x125912[_0x3241da(0x1bd)]=(_0x1ac71c=_0x125912[_0x3241da(0x1bd)])==null?void 0x0:_0x1ac71c['filter'](_0x3980da=>_0x3980da[_0x3241da(0x254)]!==_0x52e885['blockId']),_0x52e885['startIndex'];}function _0x5ad516(_0x5f0335){const _0x1d6a09=_0x309445;return{..._0x5f0335,'body':_0x5f0335[_0x1d6a09(0x1fd)]?_0x1497c4(_0x5f0335[_0x1d6a09(0x1fd)]):_0x5f0335[_0x1d6a09(0x1fd)]};}function _0x1497c4(_0x4b67d3){const _0x33162e=_0x309445;var _0x274bcb,_0x37c2c0,_0xb7816a,_0xb5a80,_0x516a1e,_0x559b86,_0x5c1621,_0x16a08f,_0x11e692;return{..._0x4b67d3,'paragraphs':(_0x274bcb=_0x4b67d3[_0x33162e(0x236)])==null?void 0x0:_0x274bcb[_0x33162e(0x23a)](_0x4c0daf=>({..._0x4c0daf,'bullet':_0x257efd(_0x4c0daf[_0x33162e(0x188)]),'paragraphStyle':_0x257efd(_0x4c0daf[_0x33162e(0x21b)])})),'sectionBreaks':(_0x37c2c0=_0x4b67d3[_0x33162e(0x249)])==null?void 0x0:_0x37c2c0[_0x33162e(0x23a)](_0x950118=>({..._0x950118})),'textRuns':(_0xb7816a=_0x4b67d3[_0x33162e(0x23c)])==null?void 0x0:_0xb7816a[_0x33162e(0x23a)](_0x2ade04=>({..._0x2ade04})),'tables':(_0xb5a80=_0x4b67d3['tables'])==null?void 0x0:_0xb5a80[_0x33162e(0x23a)](_0xd93775=>({..._0xd93775})),'columnGroups':(_0x516a1e=_0x4b67d3[_0x33162e(0x1c0)])==null?void 0x0:_0x516a1e[_0x33162e(0x23a)](_0x3bdbf5=>{const _0x9d6a67=_0x33162e;var _0x1b5605;return{..._0x3bdbf5,'columns':(_0x1b5605=_0x3bdbf5[_0x9d6a67(0x24a)])==null?void 0x0:_0x1b5605['map'](_0x23c639=>_0x257efd(_0x23c639))};}),'blockRanges':(_0x559b86=_0x4b67d3[_0x33162e(0x1bd)])==null?void 0x0:_0x559b86[_0x33162e(0x23a)](_0x4ed843=>({..._0x4ed843})),'customRanges':(_0x5c1621=_0x4b67d3[_0x33162e(0x232)])==null?void 0x0:_0x5c1621['map'](_0x460fa4=>({..._0x460fa4})),'customDecorations':(_0x16a08f=_0x4b67d3['customDecorations'])==null?void 0x0:_0x16a08f['map'](_0x2660d7=>({..._0x2660d7})),'customBlocks':(_0x11e692=_0x4b67d3[_0x33162e(0x178)])==null?void 0x0:_0x11e692[_0x33162e(0x23a)](_0x4caf74=>({..._0x4caf74}))};}function _0x257efd(_0x2d4bb4){const _0x23e793=_0x309445;return Array[_0x23e793(0x238)](_0x2d4bb4)?_0x2d4bb4[_0x23e793(0x23a)](_0x2f6f04=>_0x257efd(_0x2f6f04)):!_0x2d4bb4||typeof _0x2d4bb4!=_0x23e793(0x259)?_0x2d4bb4:Object[_0x23e793(0x1a0)](Object[_0x23e793(0x1c1)](_0x2d4bb4)[_0x23e793(0x23a)](([_0x11a0ef,_0x23dbc9])=>[_0x11a0ef,_0x257efd(_0x23dbc9)]));}function _0x20c914(_0xd9b823){const _0x32143c=_0x309445;if(!_0xd9b823[_0x32143c(0x1fd)])throw Error(_0x32143c(0x1a8));return _0xd9b823[_0x32143c(0x1fd)];}function _0x2e4700(_0xae0ab4,_0xbd2cdd,_0x38afb8,_0x1fff7e=_0x309445(0x1ac)){const _0x5a62d7=_0x309445;if(_0xbd2cdd==null||_0x38afb8==null){let _0x2a7d26=_0x45652d(_0xae0ab4);return{'startOffset':_0x2a7d26,'endOffset':_0x2a7d26};}let _0x3ecc82=Math[_0x5a62d7(0x18a)](_0xbd2cdd,_0x38afb8),_0x4bd126=Math[_0x5a62d7(0x24e)](_0xbd2cdd,_0x38afb8),_0x2473c6=_0xa28212(_0xae0ab4,_0x3ecc82,_0x4bd126);return _0x3ecc82===_0x4bd126?_0x1fff7e===_0x5a62d7(0x21f)?{'startOffset':_0x3ecc82,'endOffset':_0x4bd126}:_0x185d66(_0xae0ab4,_0x3ecc82,_0x2473c6):_0x3926b9(_0xae0ab4,_0x3ecc82,_0x4bd126,_0x2473c6);}function _0x185d66(_0x559ba8,_0x3f234b,_0x2b4b14){const _0x442927=_0x309445;let _0x52e000=_0x5a91c4(_0x559ba8,_0x3f234b);if(_0x52e000){let _0x4449f5=_0x1ba2b4(_0x559ba8,_0x52e000,_0x2b4b14);if(_0x4449f5<_0x52e000['startIndex'])return{'startOffset':_0x4449f5,'endOffset':_0x2b4b14?Math[_0x442927(0x18a)](_0x52e000[_0x442927(0x207)]+0x1,_0x2b4b14[_0x442927(0x1f1)]):_0x52e000[_0x442927(0x207)]+0x1};}let _0x316b63=_0x3f234b===0x0&&_0x559ba8['dataStream'][0x0]===_0x3ec08c[_0x442927(0x218)][_0x442927(0x1de)]?0x1:_0x3f234b;return{'startOffset':_0x316b63,'endOffset':_0x316b63};}function _0x45652d(_0x373fd1){const _0x1dadbf=_0x309445;return _0x373fd1['dataStream'][_0x1dadbf(0x22a)](_0x3ec08c[_0x1dadbf(0x218)][_0x1dadbf(0x239)])?Math[_0x1dadbf(0x24e)](0x0,_0x373fd1[_0x1dadbf(0x1b5)][_0x1dadbf(0x1ba)]-0x1):_0x373fd1[_0x1dadbf(0x1b5)][_0x1dadbf(0x1ba)];}function _0x2e93d4(_0x40d678,_0x2bc3e8,_0x457625){const _0x1a250b=_0x309445;var _0x5ad671;let _0x400f10=Math['min'](_0x2bc3e8,_0x457625),_0x2bcf3f=Math[_0x1a250b(0x24e)](_0x2bc3e8,_0x457625);return!!((_0x5ad671=_0x40d678['tables'])!=null&&_0x5ad671[_0x1a250b(0x1dd)](_0x28cbcc=>_0x400f10>_0x28cbcc['startIndex']&&_0x400f10<_0x28cbcc['endIndex']||_0x2bcf3f>_0x28cbcc[_0x1a250b(0x207)]&&_0x2bcf3f<_0x28cbcc[_0x1a250b(0x243)]||_0x400f10<=_0x28cbcc['startIndex']&&_0x2bcf3f>=_0x28cbcc['endIndex']));}function _0x3926b9(_0x5d8582,_0x2c465f,_0x64fb5d,_0x1cf188){const _0x37f29f=_0x309445;let _0x59201f=[..._0x5d8582[_0x37f29f(0x236)]??[]][_0x37f29f(0x19e)]((_0x225d87,_0x48cc6f)=>_0x225d87[_0x37f29f(0x207)]-_0x48cc6f['startIndex']),_0x3d78b1=(0x0,_0x3ec08c['getParagraphContentStartOffsets'])(_0x5d8582),_0x222599=_0x59201f[_0x37f29f(0x18d)](_0x4bfc72=>_0x1ba2b4(_0x5d8582,_0x4bfc72,_0x1cf188,_0x3d78b1)<=_0x2c465f&&_0x2c465f<=_0x4bfc72[_0x37f29f(0x207)]),_0x49536a=_0x59201f[_0x37f29f(0x18d)](_0x823bf6=>_0x823bf6[_0x37f29f(0x207)]>=_0x64fb5d-0x1)??_0x59201f[_0x59201f[_0x37f29f(0x1ba)]-0x1];return{'startOffset':_0x222599?_0x1ba2b4(_0x5d8582,_0x222599,_0x1cf188,_0x3d78b1):_0x2c465f,'endOffset':_0x49536a?_0x3136a9(_0x49536a,_0x1cf188):_0x64fb5d};}function _0x5a91c4(_0x4664cb,_0x52d5f1){const _0x54196d=_0x309445;let _0x2dca90=[..._0x4664cb[_0x54196d(0x236)]??[]][_0x54196d(0x19e)]((_0x451f25,_0x408106)=>_0x451f25[_0x54196d(0x207)]-_0x408106[_0x54196d(0x207)]),_0x5f14e7=(0x0,_0x3ec08c[_0x54196d(0x1c4)])(_0x4664cb);return _0x2dca90[_0x54196d(0x18d)](_0x31fcc9=>(_0x5f14e7[_0x54196d(0x23b)](_0x31fcc9[_0x54196d(0x207)])??0x0)<=_0x52d5f1&&_0x52d5f1<=_0x31fcc9['startIndex']);}function _0x1ba2b4(_0x4d4171,_0x1b61ef,_0x489cd2,_0x382ab5){const _0x1c4e9a=_0x309445;let _0x241b93=(_0x382ab5==null?void 0x0:_0x382ab5[_0x1c4e9a(0x23b)](_0x1b61ef['startIndex']))??(0x0,_0x3ec08c[_0x1c4e9a(0x1a7)])(_0x4d4171,_0x1b61ef);return _0x489cd2?Math[_0x1c4e9a(0x24e)](_0x241b93,_0x489cd2[_0x1c4e9a(0x1ed)]):_0x241b93;}function _0x3136a9(_0xd40439,_0x319dd9){const _0x12f12c=_0x309445;let _0x4cb353=_0xd40439[_0x12f12c(0x207)]+0x1;return _0x319dd9?Math[_0x12f12c(0x18a)](_0x4cb353,_0x319dd9[_0x12f12c(0x1f1)]):_0x4cb353;}function _0xa28212(_0x30a8da,_0x7427b9,_0x1ddeef){const _0x51ad5e=_0x309445;let _0x3fb856=_0x195d09(_0x30a8da,_0x7427b9),_0x2f6eb7=_0x195d09(_0x30a8da,_0x7427b9===_0x1ddeef?_0x1ddeef:Math['max'](_0x7427b9,_0x1ddeef-0x1));if(_0x3fb856||_0x2f6eb7){if(!_0x3fb856||!_0x2f6eb7||_0x3fb856[_0x51ad5e(0x1a5)]!==_0x2f6eb7[_0x51ad5e(0x1a5)]||_0x3fb856[_0x51ad5e(0x21a)]!==_0x2f6eb7[_0x51ad5e(0x21a)])throw new _0x4601fe();return _0x3fb856;}}function _0x195d09(_0x268c41,_0x513400){const _0x3948aa=_0x309445;let _0x3a6d55=_0x268c41[_0x3948aa(0x1b5)],_0x206c04=-0x1;for(let _0x1d160a=Math[_0x3948aa(0x18a)](_0x513400,_0x3a6d55[_0x3948aa(0x1ba)]-0x1);_0x1d160a>=0x0;_0x1d160a--){let _0x2e6546=_0x3a6d55[_0x1d160a];if(_0x2e6546===_0x3ec08c[_0x3948aa(0x218)][_0x3948aa(0x19d)])return;if(_0x2e6546===_0x3ec08c[_0x3948aa(0x218)][_0x3948aa(0x1f4)]){_0x206c04=_0x1d160a;break;}}if(_0x206c04<0x0)return;let _0x2b7f88=_0x3a6d55[_0x3948aa(0x1cc)](_0x3ec08c[_0x3948aa(0x218)][_0x3948aa(0x19d)],_0x206c04+0x1);if(!(_0x2b7f88<0x0||_0x513400<_0x206c04+0x1||_0x513400>_0x2b7f88-0x1))return{'startOffset':_0x206c04+0x1,'endOffset':Math[_0x3948aa(0x24e)](_0x206c04+0x1,_0x2b7f88-0x1),'startTokenOffset':_0x206c04,'endTokenOffset':_0x2b7f88};}function _0x5444ff(_0x2b05e8){const _0xedfef3=_0x309445;return(0x0,_0x3ec08c['getBlockRangeInterval'])(_0x2b05e8)[_0xedfef3(0x1f1)]-0x1;}function _0x14ad24(_0x430e2d,_0x52ff54,_0x786521,_0x35f4df){const _0xa5826d=_0x309445;let _0x1d7e1a=_0x5444ff(_0x52ff54),_0x341c36=(_0x430e2d[_0xa5826d(0x236)]??[])[_0xa5826d(0x18d)](_0x4524d1=>_0x4524d1[_0xa5826d(0x207)]===_0x1d7e1a+0x1);if(!_0x341c36||_0x35f4df!=null&&_0x341c36[_0xa5826d(0x207)]!==_0x35f4df||_0x786521!=null&&(_0x786521<_0x1d7e1a||_0x786521>_0x341c36[_0xa5826d(0x207)]+0x1)||_0x430e2d['dataStream'][_0x341c36[_0xa5826d(0x207)]]!==_0x3ec08c[_0xa5826d(0x218)][_0xa5826d(0x1de)])return null;let _0x46a8e2=(0x0,_0x3ec08c[_0xa5826d(0x1a7)])(_0x430e2d,_0x341c36),_0x5f1520=_0x430e2d[_0xa5826d(0x1b5)][_0xa5826d(0x258)](_0x46a8e2,_0x341c36[_0xa5826d(0x207)]);return Array['from'](_0x5f1520)[_0xa5826d(0x1d8)](_0x282447=>_0x282447===_0x3ec08c[_0xa5826d(0x218)][_0xa5826d(0x1ec)])?{'paragraph':_0x341c36,'endTokenOffset':_0x1d7e1a}:null;}function _0xabc62f(_0x1caad4,_0x36bdeb){const _0x594fe6=_0x309445;var _0x12b68b;let _0x33d695=_0x5444ff(_0x36bdeb),_0x586694=_0x1caad4['dataStream'][_0x33d695+0x1];(_0x586694===_0x3ec08c[_0x594fe6(0x218)][_0x594fe6(0x239)]||_0x586694===void 0x0)&&_0x41f5f3(_0x1caad4,_0x33d695+0x1,_0x3ec08c[_0x594fe6(0x218)]['PARAGRAPH'],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,_0x3ec08c[_0x594fe6(0x25b)])(new Set((_0x12b68b=_0x1caad4['paragraphs'])==null?void 0x0:_0x12b68b['map'](_0x395fea=>_0x395fea[_0x594fe6(0x1fc)])))}]});}function _0x41f5f3(_0x2e25fb,_0x41f3c8,_0xbed15a,_0x46578f={}){const _0x4ff6ac=_0x309445;var _0x32d10d,_0xe09952;_0xbed15a&&(_0x2e25fb[_0x4ff6ac(0x1b5)]=''+_0x2e25fb[_0x4ff6ac(0x1b5)][_0x4ff6ac(0x258)](0x0,_0x41f3c8)+_0xbed15a+_0x2e25fb['dataStream'][_0x4ff6ac(0x258)](_0x41f3c8),_0x4159c0(_0x2e25fb,_0x41f3c8,_0xbed15a['length']),(_0x32d10d=_0x46578f[_0x4ff6ac(0x236)])!=null&&_0x32d10d[_0x4ff6ac(0x1ba)]&&(_0x2e25fb['paragraphs']=[..._0x2e25fb['paragraphs']??[],..._0x46578f[_0x4ff6ac(0x236)][_0x4ff6ac(0x23a)](_0x4805a0=>({..._0x4805a0,'startIndex':_0x4805a0[_0x4ff6ac(0x207)]+_0x41f3c8}))][_0x4ff6ac(0x19e)]((_0x341019,_0x425ada)=>_0x341019[_0x4ff6ac(0x207)]-_0x425ada[_0x4ff6ac(0x207)])),(_0xe09952=_0x46578f[_0x4ff6ac(0x1bd)])!=null&&_0xe09952[_0x4ff6ac(0x1ba)]&&(_0x2e25fb[_0x4ff6ac(0x1bd)]=[..._0x2e25fb[_0x4ff6ac(0x1bd)]??[],..._0x46578f['blockRanges'][_0x4ff6ac(0x23a)](_0x1ad0b5=>({..._0x1ad0b5,'startIndex':_0x1ad0b5[_0x4ff6ac(0x207)]+_0x41f3c8,'endIndex':_0x1ad0b5[_0x4ff6ac(0x243)]+_0x41f3c8}))][_0x4ff6ac(0x19e)]((_0x3eaaab,_0x395641)=>_0x3eaaab[_0x4ff6ac(0x207)]-_0x395641[_0x4ff6ac(0x207)])));}function _0x410d4e(_0x56d7bf,_0x1a749f,_0x596680){const _0x17f163=_0x309445;let _0x5006fc=_0x596680-_0x1a749f;_0x56d7bf['dataStream']=''+_0x56d7bf[_0x17f163(0x1b5)][_0x17f163(0x258)](0x0,_0x1a749f)+_0x56d7bf[_0x17f163(0x1b5)][_0x17f163(0x258)](_0x596680),_0x5bc6a4(_0x56d7bf,_0x1a749f,_0x5006fc);}function _0x4159c0(_0x2a5fbe,_0x2194b8,_0x13101e){const _0x28c411=_0x309445;_0x2a5fbe[_0x28c411(0x236)]=_0x5a3dc0(_0x2a5fbe['paragraphs'],_0x2194b8,_0x13101e),_0x2a5fbe[_0x28c411(0x249)]=_0x5a3dc0(_0x2a5fbe[_0x28c411(0x249)],_0x2194b8,_0x13101e),_0x2a5fbe[_0x28c411(0x178)]=_0x5a3dc0(_0x2a5fbe[_0x28c411(0x178)],_0x2194b8,_0x13101e),_0x2a5fbe[_0x28c411(0x23c)]=_0x563dd8(_0x2a5fbe[_0x28c411(0x23c)],_0x2194b8,_0x13101e),_0x2a5fbe[_0x28c411(0x216)]=_0x5e87c7(_0x2a5fbe[_0x28c411(0x216)],_0x2194b8,_0x13101e),_0x2a5fbe['columnGroups']=_0x51f654(_0x2a5fbe[_0x28c411(0x1c0)],_0x2194b8,_0x13101e),_0x2a5fbe[_0x28c411(0x232)]=_0x51f654(_0x2a5fbe['customRanges'],_0x2194b8,_0x13101e),_0x2a5fbe[_0x28c411(0x177)]=_0x51f654(_0x2a5fbe[_0x28c411(0x177)],_0x2194b8,_0x13101e),_0x2a5fbe[_0x28c411(0x1bd)]=_0x51f654(_0x2a5fbe[_0x28c411(0x1bd)],_0x2194b8,_0x13101e);}function _0x5bc6a4(_0x1d53ec,_0x56e356,_0x27e771){const _0x470c76=_0x309445;var _0xb4ce2a,_0x38780e;_0x1d53ec[_0x470c76(0x236)]=_0xee02f2(_0x1d53ec[_0x470c76(0x236)],_0x56e356,_0x27e771),_0x1d53ec['sectionBreaks']=_0xee02f2(_0x1d53ec['sectionBreaks'],_0x56e356,_0x27e771),_0x1d53ec[_0x470c76(0x178)]=_0xee02f2(_0x1d53ec[_0x470c76(0x178)],_0x56e356,_0x27e771),_0x1d53ec['textRuns']=(_0xb4ce2a=_0x3457e3((_0x38780e=_0x1d53ec[_0x470c76(0x23c)])==null?void 0x0:_0x38780e[_0x470c76(0x23a)](_0x16ff97=>({..._0x16ff97,'startIndex':_0x16ff97['st'],'endIndex':_0x16ff97['ed']})),_0x56e356,_0x27e771))==null?void 0x0:_0xb4ce2a[_0x470c76(0x23a)](_0x5afc3f=>{let {startIndex:_0x41a474,endIndex:_0x8e2297,..._0x3ca5ac}=_0x5afc3f;return{..._0x3ca5ac,'st':_0x41a474,'ed':_0x8e2297};}),_0x1d53ec[_0x470c76(0x216)]=_0x3457e3(_0x1d53ec[_0x470c76(0x216)],_0x56e356,_0x27e771),_0x1d53ec['columnGroups']=_0x1e0249(_0x1d53ec[_0x470c76(0x1c0)],_0x56e356,_0x27e771),_0x1d53ec[_0x470c76(0x232)]=_0x1e0249(_0x1d53ec[_0x470c76(0x232)],_0x56e356,_0x27e771),_0x1d53ec['customDecorations']=_0x1e0249(_0x1d53ec[_0x470c76(0x177)],_0x56e356,_0x27e771),_0x1d53ec[_0x470c76(0x1bd)]=_0x1e0249(_0x1d53ec[_0x470c76(0x1bd)],_0x56e356,_0x27e771);}function _0x5a3dc0(_0x2cdc57,_0x4f6ebf,_0x192d11){const _0x2c4817=_0x309445;return _0x2cdc57==null?void 0x0:_0x2cdc57[_0x2c4817(0x23a)](_0x346f0d=>_0x346f0d['startIndex']>=_0x4f6ebf?{..._0x346f0d,'startIndex':_0x346f0d['startIndex']+_0x192d11}:_0x346f0d);}function _0xee02f2(_0x42141e,_0x4f9c8f,_0x4f8164){const _0x39f4c2=_0x309445;let _0x5e97b1=_0x4f9c8f+_0x4f8164;return _0x42141e==null?void 0x0:_0x42141e['map'](_0x374bc6=>_0x374bc6[_0x39f4c2(0x207)]>=_0x4f9c8f&&_0x374bc6[_0x39f4c2(0x207)]<_0x5e97b1?null:_0x374bc6[_0x39f4c2(0x207)]>=_0x5e97b1?{..._0x374bc6,'startIndex':_0x374bc6[_0x39f4c2(0x207)]-_0x4f8164}:_0x374bc6)[_0x39f4c2(0x1eb)](_0x37b88d=>_0x37b88d!=null);}function _0x563dd8(_0x2cc7c1,_0x497f3c,_0x226944){const _0x3713d9=_0x309445;return _0x2cc7c1==null?void 0x0:_0x2cc7c1[_0x3713d9(0x23a)](_0x2f8714=>_0x2f8714['st']>=_0x497f3c?{..._0x2f8714,'st':_0x2f8714['st']+_0x226944,'ed':_0x2f8714['ed']+_0x226944}:_0x2f8714['ed']>_0x497f3c?{..._0x2f8714,'ed':_0x2f8714['ed']+_0x226944}:_0x2f8714);}function _0x51f654(_0x2db351,_0x17907f,_0x4543ae){const _0xa4391=_0x309445;return _0x2db351==null?void 0x0:_0x2db351['map'](_0x2542bf=>(0x0,_0x3ec08c[_0xa4391(0x18e)])(_0x2542bf,_0x17907f,_0x4543ae));}function _0x5e87c7(_0x2a03d6,_0x119a62,_0x4aca89){const _0x3ab191=_0x309445;return _0x2a03d6==null?void 0x0:_0x2a03d6[_0x3ab191(0x23a)](_0x175083=>(0x0,_0x3ec08c[_0x3ab191(0x1c6)])(_0x175083,_0x119a62,_0x4aca89));}function _0x1e0249(_0x3d1146,_0x533629,_0x8e9fd2){const _0x10f94=_0x309445;return _0x3d1146==null?void 0x0:_0x3d1146[_0x10f94(0x23a)](_0x49d39f=>(0x0,_0x3ec08c[_0x10f94(0x22d)])(_0x49d39f,_0x533629,_0x8e9fd2))[_0x10f94(0x1eb)](_0x20c68b=>_0x20c68b!=null);}function _0x3457e3(_0x1c7281,_0x1b7097,_0x2fd7ef){const _0x267c17=_0x309445;return _0x1c7281==null?void 0x0:_0x1c7281[_0x267c17(0x23a)](_0x402bb0=>(0x0,_0x3ec08c[_0x267c17(0x208)])(_0x402bb0,_0x1b7097,_0x2fd7ef))[_0x267c17(0x1eb)](_0x10c87c=>_0x10c87c!=null);}let _0x2328e8={'id':'docs-code.command.insert-below','type':_0x3ec08c['CommandType'][_0x309445(0x1ef)],'handler':_0x1ae7b1=>{const _0x440827=_0x309445;var _0x289c78;if((0x0,_0x514b03[_0x440827(0x19a)])(_0x1fa215(_0x1ae7b1)))return!0x1;let _0x4e3713=(0x0,_0x514b03[_0x440827(0x1da)])(_0x1ae7b1);if(_0x4e3713)return _0x1ae7b1[_0x440827(0x23b)](_0x3ec08c[_0x440827(0x187)])[_0x440827(0x196)](_0x3112ef['id'],{'startOffset':_0x4e3713[_0x440827(0x1ed)],'endOffset':_0x4e3713[_0x440827(0x1f1)],'insertionMode':_0x440827(0x21f),'unitId':_0x4e3713[_0x440827(0x17e)]});let _0x2da9dd=_0x19d772(_0x1ae7b1);if(!_0x2da9dd)return!0x1;let _0x11c343=(_0x289c78=_0x1ae7b1[_0x440827(0x23b)](_0x3ec08c['IUniverInstanceService'])[_0x440827(0x1b9)](_0x3ec08c[_0x440827(0x246)][_0x440827(0x1cf)]))==null?void 0x0:_0x289c78[_0x440827(0x1d1)](),_0x43b100=_0x11c343?(0x0,_0x3ec08c[_0x440827(0x17b)])(_0x11c343,_0x2da9dd):_0x2da9dd['startIndex']+0x1;return _0x1ae7b1[_0x440827(0x23b)](_0x3ec08c[_0x440827(0x187)])[_0x440827(0x196)](_0x3112ef['id'],{'startOffset':_0x43b100,'endOffset':_0x43b100});}},_0x3cbc80={'id':_0x309445(0x224),'type':_0x3ec08c['CommandType'][_0x309445(0x1ef)],'handler':()=>!0x0},_0x3112ef={'id':'docs-code.command.insert','type':_0x3ec08c[_0x309445(0x21d)][_0x309445(0x1ef)],'handler':(_0x6b9da4,_0x57b76f)=>{const _0x335f06=_0x309445;let _0x3bff04=_0x150413(_0x6b9da4,_0x57b76f==null?void 0x0:_0x57b76f['unitId']);if(!_0x3bff04)return!0x1;let _0x52df43=_0x1fa215(_0x6b9da4);if((0x0,_0x514b03[_0x335f06(0x19a)])(_0x52df43))return!0x1;let _0x541ea5=_0x3bff04[_0x335f06(0x1c2)]['serialize'](_0x3bff04['unitId']),_0x465fd4=_0x46b6dc(_0x57b76f,_0x52df43),_0x34e8b9=_0x2d098a(_0x3bff04[_0x335f06(0x1fa)],_0x465fd4);if(_0x34e8b9){if(_0x34e8b9[_0x335f06(0x24d)]!==_0x3ec08c[_0x335f06(0x1f3)][_0x335f06(0x20a)])return!0x1;let _0x42c169=_0x25ca4a({'blockId':_0x34e8b9[_0x335f06(0x254)],'documentData':_0x3bff04[_0x335f06(0x1fa)],'metadata':_0x541ea5});if(!_0x42c169)return!0x1;let _0x1634bb=_0x6f2592(_0x3bff04[_0x335f06(0x245)],_0x3bff04[_0x335f06(0x20c)],_0x3bff04[_0x335f06(0x17e)],_0x3bff04[_0x335f06(0x1fa)],_0x42c169[_0x335f06(0x180)],_0x3112ef['id'],_0x42c169[_0x335f06(0x250)]);return _0x1634bb&&_0x42c169['nextMetadata']&&_0x3bff04[_0x335f06(0x1c2)]['deserialize'](_0x3bff04[_0x335f06(0x17e)],_0x42c169[_0x335f06(0x1d9)]),_0x1634bb;}let _0x18c3b2=(_0x57b76f==null?void 0x0:_0x57b76f[_0x335f06(0x254)])??(0x0,_0x3ec08c['generateRandomId'])(0x6),_0x59a15e;try{_0x59a15e=_0x4ca597({'blockId':_0x18c3b2,'config':_0x57b76f==null?void 0x0:_0x57b76f[_0x335f06(0x1e7)],'documentData':_0x3bff04['previousDocumentData'],'endOffset':_0x465fd4==null?void 0x0:_0x465fd4['endOffset'],'insertionMode':_0x57b76f==null?void 0x0:_0x57b76f[_0x335f06(0x1cd)],'metadata':_0x541ea5,'startOffset':_0x465fd4==null?void 0x0:_0x465fd4['startOffset']});}catch(_0x3dba25){if(_0x3dba25 instanceof _0x4601fe)return!0x1;throw _0x3dba25;}let _0x40562c=_0x6f2592(_0x3bff04[_0x335f06(0x245)],_0x3bff04[_0x335f06(0x20c)],_0x3bff04[_0x335f06(0x17e)],_0x3bff04[_0x335f06(0x1fa)],_0x59a15e[_0x335f06(0x180)],_0x3112ef['id'],_0x59a15e[_0x335f06(0x250)]);return _0x40562c&&_0x59a15e['nextMetadata']&&_0x3bff04['model'][_0x335f06(0x1fb)](_0x3bff04[_0x335f06(0x17e)],_0x59a15e[_0x335f06(0x1d9)]),_0x40562c;}},_0x321568={'id':_0x309445(0x205),'type':_0x3ec08c[_0x309445(0x21d)]['COMMAND'],'handler':(_0x13d179,_0x5b43a9)=>{const _0x42db43=_0x309445;if(!_0x5b43a9)return!0x1;let _0x2add82=_0x150413(_0x13d179,_0x5b43a9[_0x42db43(0x17e)]);if(!_0x2add82)return!0x1;let _0x51b6e1=_0x2e4649({'blockId':_0x5b43a9[_0x42db43(0x254)],'config':_0x5b43a9[_0x42db43(0x1e7)],'documentData':_0x2add82[_0x42db43(0x1fa)],'metadata':_0x2add82[_0x42db43(0x1c2)][_0x42db43(0x1c9)](_0x2add82[_0x42db43(0x17e)])});return _0x51b6e1[_0x42db43(0x1d9)]&&_0x2add82['model'][_0x42db43(0x1fb)](_0x2add82['unitId'],_0x51b6e1[_0x42db43(0x1d9)]),!0x0;}},_0x4476ba={'id':_0x309445(0x179),'type':_0x3ec08c[_0x309445(0x21d)][_0x309445(0x1ef)],'handler':(_0xc82163,_0x3a1318)=>_0x4b3dc6[_0x309445(0x1b1)](_0xc82163,_0x3a1318)},_0x4b3dc6={'id':'docs-code.command.unwrap','type':_0x3ec08c[_0x309445(0x21d)]['COMMAND'],'handler':(_0x2f0689,_0x4fa847)=>{const _0x53797c=_0x309445;if(!_0x4fa847)return!0x1;let _0x2eac01=_0x150413(_0x2f0689,_0x4fa847==null?void 0x0:_0x4fa847[_0x53797c(0x17e)]);if(!_0x2eac01)return!0x1;let _0x357b00=_0x25ca4a({'blockId':_0x4fa847[_0x53797c(0x254)],'documentData':_0x2eac01[_0x53797c(0x1fa)],'metadata':_0x2eac01[_0x53797c(0x1c2)][_0x53797c(0x1c9)](_0x2eac01[_0x53797c(0x17e)])});if(!_0x357b00)return!0x1;let _0x2cac05=_0x6f2592(_0x2eac01[_0x53797c(0x245)],_0x2eac01[_0x53797c(0x20c)],_0x2eac01[_0x53797c(0x17e)],_0x2eac01[_0x53797c(0x1fa)],_0x357b00[_0x53797c(0x180)],_0x4b3dc6['id'],_0x357b00[_0x53797c(0x250)]);return _0x2cac05&&_0x357b00[_0x53797c(0x1d9)]&&_0x2eac01['model'][_0x53797c(0x1fb)](_0x2eac01[_0x53797c(0x17e)],_0x357b00[_0x53797c(0x1d9)]),_0x2cac05;}},_0x522564={'id':'docs-code.command.remove','type':_0x3ec08c['CommandType'][_0x309445(0x1ef)],'handler':(_0x51956,_0x34f3ce)=>{const _0x4691b0=_0x309445;if(!_0x34f3ce)return!0x1;let _0x5f38dc=_0x150413(_0x51956,_0x34f3ce==null?void 0x0:_0x34f3ce['unitId']);if(!_0x5f38dc)return!0x1;let _0x597dee=_0x5d58a9({'blockId':_0x34f3ce[_0x4691b0(0x254)],'documentData':_0x5f38dc['previousDocumentData'],'metadata':_0x5f38dc['model'][_0x4691b0(0x1c9)](_0x5f38dc[_0x4691b0(0x17e)])});if(!_0x597dee)return!0x1;let _0x41b22d=_0x6f2592(_0x5f38dc[_0x4691b0(0x245)],_0x5f38dc[_0x4691b0(0x20c)],_0x5f38dc[_0x4691b0(0x17e)],_0x5f38dc['previousDocumentData'],_0x597dee[_0x4691b0(0x180)],_0x522564['id'],_0x597dee[_0x4691b0(0x250)]);return _0x41b22d&&_0x597dee[_0x4691b0(0x1d9)]&&_0x5f38dc['model']['deserialize'](_0x5f38dc[_0x4691b0(0x17e)],_0x597dee[_0x4691b0(0x1d9)]),_0x41b22d;}},_0x3396e4={'id':_0x309445(0x192),'type':_0x3ec08c[_0x309445(0x21d)][_0x309445(0x1ef)],'handler':(_0x1479fa,_0x589e4a)=>{const _0x544268=_0x309445;var _0x21b46b;let _0x3b1db6=_0x150413(_0x1479fa,_0x589e4a==null?void 0x0:_0x589e4a[_0x544268(0x17e)]);if(!_0x3b1db6)return!0x1;let _0x3cc2e2=(_0x589e4a==null?void 0x0:_0x589e4a[_0x544268(0x250)])??((_0x21b46b=_0x1fa215(_0x1479fa))==null?void 0x0:_0x21b46b[_0x544268(0x1ed)]);if(_0x3cc2e2==null)return!0x1;let _0x59b424=_0x1ad099({'cursorOffset':_0x3cc2e2,'documentData':_0x3b1db6[_0x544268(0x1fa)],'paragraphStartIndex':_0x589e4a==null?void 0x0:_0x589e4a[_0x544268(0x20f)]});return _0x59b424?_0x6f2592(_0x3b1db6['commandService'],_0x3b1db6['selectionManager'],_0x3b1db6[_0x544268(0x17e)],_0x3b1db6['previousDocumentData'],_0x59b424[_0x544268(0x180)],_0x3396e4['id'],_0x59b424[_0x544268(0x250)]):!0x1;}};function _0x150413(_0x3c1926,_0x2a0e91){const _0x360181=_0x309445;let _0x24b698=_0x3c1926[_0x360181(0x23b)](_0x3ec08c[_0x360181(0x1e9)]),_0x41aa99=_0x2a0e91?_0x24b698[_0x360181(0x1f2)](_0x2a0e91,_0x3ec08c[_0x360181(0x246)]['UNIVER_DOC']):_0x24b698[_0x360181(0x1b9)](_0x3ec08c[_0x360181(0x246)][_0x360181(0x1cf)]);return _0x41aa99?{'commandService':_0x3c1926[_0x360181(0x23b)](_0x3ec08c['ICommandService']),'model':_0x3c1926[_0x360181(0x23b)](_0xea2109),'previousDocumentData':_0x41aa99[_0x360181(0x181)](),'selectionManager':_0x3c1926[_0x360181(0x23b)](_0x514b03[_0x360181(0x21c)]),'unitId':_0x41aa99[_0x360181(0x19b)]()}:null;}function _0x1fa215(_0x3f3a14){const _0x300693=_0x309445;var _0xe0afdd;return(_0xe0afdd=_0x3f3a14[_0x300693(0x23b)](_0x514b03[_0x300693(0x21c)])[_0x300693(0x201)]())==null?void 0x0:_0xe0afdd[0x0];}function _0x46b6dc(_0x3f067a,_0x10ebd3){const _0xcf56a9=_0x309445;let _0x409cc7=(_0x3f067a==null?void 0x0:_0x3f067a[_0xcf56a9(0x1ed)])??(_0x10ebd3==null?void 0x0:_0x10ebd3[_0xcf56a9(0x1ed)]),_0x27c2c6=(_0x3f067a==null?void 0x0:_0x3f067a[_0xcf56a9(0x1f1)])??(_0x10ebd3==null?void 0x0:_0x10ebd3[_0xcf56a9(0x1f1)]);if(_0x409cc7!=null&&_0x27c2c6!=null)return{'endOffset':Math[_0xcf56a9(0x24e)](_0x409cc7,_0x27c2c6),'startOffset':Math[_0xcf56a9(0x18a)](_0x409cc7,_0x27c2c6)};}function _0x2d098a(_0x4cc3a5,_0x11fb0c){const _0x13788c=_0x309445;var _0x559bd2;if(!_0x11fb0c)return;let _0x5c0285=_0x231382(_0x11fb0c);return(_0x559bd2=_0x4cc3a5[_0x13788c(0x1fd)])==null||(_0x559bd2=_0x559bd2['blockRanges'])==null?void 0x0:_0x559bd2[_0x13788c(0x18d)](_0x11dbd2=>{const _0x1bdf0b=_0x13788c;let _0x13f981=(0x0,_0x3ec08c[_0x1bdf0b(0x194)])(_0x11dbd2);return _0x11fb0c[_0x1bdf0b(0x1ed)]===_0x11fb0c[_0x1bdf0b(0x1f1)]?(0x0,_0x3ec08c[_0x1bdf0b(0x1ad)])(_0x13f981,_0x5c0285):(0x0,_0x3ec08c[_0x1bdf0b(0x1a3)])(_0x13f981,_0x5c0285);});}function _0x231382(_0x17f4a4){const _0x40e335=_0x309445;return _0x17f4a4[_0x40e335(0x1ed)]===_0x17f4a4[_0x40e335(0x1f1)]?_0x17f4a4[_0x40e335(0x1ed)]:_0x17f4a4[_0x40e335(0x1ed)]+0x1;}function _0x19d772(_0x3bb941){const _0x3705e1=_0x309445;let _0x6dd5f0=_0x1fa215(_0x3bb941);if(!_0x6dd5f0)return null;let _0x37e0af=_0x3bb941['get'](_0x3ec08c[_0x3705e1(0x1e9)])[_0x3705e1(0x1b9)](_0x3ec08c[_0x3705e1(0x246)]['UNIVER_DOC']),_0x4a902c=_0x37e0af==null?void 0x0:_0x37e0af[_0x3705e1(0x1d1)]();return _0x4a902c?_0x3ec08c[_0x3705e1(0x184)][_0x3705e1(0x1f8)][_0x3705e1(0x1e3)](_0x6dd5f0,_0x4a902c[_0x3705e1(0x236)]??[],_0x4a902c[_0x3705e1(0x1b5)]??'')[0x0]??null:null;}function _0x1e0dad(_0x49422f,_0x14e869){const _0x270214=_0x309445;let _0x33e2ca=_0x49422f[_0x270214(0x1fd)],_0x3132af=_0x14e869[_0x270214(0x1fd)],_0x598c85=(0x0,_0x3ec08c[_0x270214(0x1c5)])(_0x33e2ca,_0x3132af);return[_0x598c85&&_0x3132af?_0xcb09df(_0x3132af,_0x598c85):null,_0x598c85?null:_0x2007ec(_0x33e2ca,_0x3132af)]['filter'](Boolean)[_0x270214(0x226)]((_0x36ae68,_0x2012ac)=>_0x3ec08c[_0x270214(0x22e)][_0x270214(0x1db)](_0x36ae68,_0x2012ac),null);}function _0xcb09df(_0x5e037b,_0x40fbc7){const _0x32db72=_0x309445;let _0x4abd70=new _0x3ec08c[(_0x32db72(0x20d))]();return _0x4abd70[_0x32db72(0x233)](_0x40fbc7[_0x32db72(0x213)]),_0x40fbc7[_0x32db72(0x1ab)]>0x0&&_0x4abd70[_0x32db72(0x20e)](_0x40fbc7[_0x32db72(0x1ab)],(0x0,_0x3ec08c[_0x32db72(0x1bf)])(_0x5e037b,_0x40fbc7[_0x32db72(0x213)],_0x40fbc7['start']+_0x40fbc7[_0x32db72(0x1ab)],!0x1)),_0x40fbc7[_0x32db72(0x186)]>0x0&&_0x4abd70[_0x32db72(0x1ee)](_0x40fbc7[_0x32db72(0x186)]),_0x3ec08c[_0x32db72(0x22e)][_0x32db72(0x1e1)]()[_0x32db72(0x230)](_0x4abd70[_0x32db72(0x1c9)](),[_0x32db72(0x1fd)]);}function _0x2007ec(_0x48e490,_0xa53c05){const _0x5d3b91=_0x309445;let _0x1ed6d1=[],_0x167c7c=_0x48e490?_0x17d000(_0x48e490):void 0x0,_0x37626d=_0xa53c05?_0x17d000(_0xa53c05):void 0x0;for(let _0x186dac of _0x26cc6a)_0x264040(_0x3ec08c[_0x5d3b91(0x22e)][_0x5d3b91(0x1e1)](),[_0x5d3b91(0x1fd),_0x186dac],_0x167c7c==null?void 0x0:_0x167c7c[_0x186dac],_0x37626d==null?void 0x0:_0x37626d[_0x186dac],_0x1ed6d1);return _0x1ed6d1[_0x5d3b91(0x226)]((_0x48f7db,_0x285c1c)=>_0x3ec08c[_0x5d3b91(0x22e)][_0x5d3b91(0x1db)](_0x48f7db,_0x285c1c),null);}let _0x26cc6a=[_0x309445(0x236),_0x309445(0x249),_0x309445(0x216),_0x309445(0x1c0),_0x309445(0x1bd),_0x309445(0x178),_0x309445(0x232),_0x309445(0x177),_0x309445(0x23c)];function _0x17d000(_0x1a0bd4){return _0x1a0bd4;}function _0x264040(_0x422b60,_0x43b74c,_0x2e17d1,_0x58d956,_0x13fa7b){const _0xd5ea71=_0x309445;if(!_0x32b90a(_0x2e17d1,_0x58d956)){if(_0x2e17d1==null){_0x13fa7b[_0xd5ea71(0x1e5)](_0x422b60[_0xd5ea71(0x1e0)](_0x43b74c,_0x58d956));return;}if(_0x58d956==null){_0x13fa7b[_0xd5ea71(0x1e5)](_0x422b60['removeOp'](_0x43b74c,_0x2e17d1));return;}if(Array[_0xd5ea71(0x238)](_0x2e17d1)&&Array[_0xd5ea71(0x238)](_0x58d956)){_0x2e3584(_0x422b60,_0x43b74c,_0x2e17d1,_0x58d956,_0x13fa7b);return;}if(_0x8fd3ba(_0x2e17d1)&&_0x8fd3ba(_0x58d956)){new Set([...Object[_0xd5ea71(0x20b)](_0x2e17d1),...Object[_0xd5ea71(0x20b)](_0x58d956)])[_0xd5ea71(0x1d6)](_0x1f5118=>{_0x264040(_0x422b60,[..._0x43b74c,_0x1f5118],_0x2e17d1[_0x1f5118],_0x58d956[_0x1f5118],_0x13fa7b);});return;}_0x13fa7b[_0xd5ea71(0x1e5)](_0x422b60[_0xd5ea71(0x17d)](_0x43b74c,_0x2e17d1,_0x58d956));}}function _0x2e3584(_0x45d29b,_0x354f20,_0xa095a4,_0x6f575,_0x2d2a22){const _0x59deb9=_0x309445;if(_0xa095a4[_0x59deb9(0x1ba)]===_0x6f575[_0x59deb9(0x1ba)]){_0xa095a4[_0x59deb9(0x1d6)]((_0x4641da,_0x5bca36)=>_0x264040(_0x45d29b,[..._0x354f20,_0x5bca36],_0x4641da,_0x6f575[_0x5bca36],_0x2d2a22));return;}let _0x12fbe5=0x0;for(;_0x12fbe5<_0xa095a4[_0x59deb9(0x1ba)]&&_0x12fbe5<_0x6f575['length']&&_0x32b90a(_0xa095a4[_0x12fbe5],_0x6f575[_0x12fbe5]);)_0x12fbe5++;let _0x4ad834=_0xa095a4[_0x59deb9(0x1ba)]-0x1,_0x86c129=_0x6f575[_0x59deb9(0x1ba)]-0x1;for(;_0x4ad834>=_0x12fbe5&&_0x86c129>=_0x12fbe5&&_0x32b90a(_0xa095a4[_0x4ad834],_0x6f575[_0x86c129]);)_0x4ad834--,_0x86c129--;for(let _0x3d4fe4=_0x4ad834;_0x3d4fe4>=_0x12fbe5;_0x3d4fe4--)_0x2d2a22[_0x59deb9(0x1e5)](_0x45d29b[_0x59deb9(0x1ce)]([..._0x354f20,_0x3d4fe4],_0xa095a4[_0x3d4fe4]));for(let _0x1c7d3a=_0x12fbe5;_0x1c7d3a<=_0x86c129;_0x1c7d3a++)_0x2d2a22[_0x59deb9(0x1e5)](_0x45d29b['insertOp']([..._0x354f20,_0x1c7d3a],_0x6f575[_0x1c7d3a]));}function _0x8fd3ba(_0x4dbb4b){const _0x7a5bca=_0x309445;return typeof _0x4dbb4b==_0x7a5bca(0x259)&&!!_0x4dbb4b&&!Array[_0x7a5bca(0x238)](_0x4dbb4b);}function _0x32b90a(_0x35e460,_0x3e54ad){const _0x4d7b4a=_0x309445;return JSON[_0x4d7b4a(0x215)](_0x35e460)===JSON[_0x4d7b4a(0x215)](_0x3e54ad);}function _0x6f2592(_0x35ebc1,_0x20aaf8,_0x78cb26,_0x256168,_0xc1654,_0x440cee,_0x3460a3){const _0x5b90c5=_0x309445;let _0x119269=_0x1e0dad(_0x256168,_0xc1654);return _0x119269?!!_0x35ebc1[_0x5b90c5(0x196)](_0x514b03[_0x5b90c5(0x225)]['id'],{'unitId':_0x78cb26,'actions':_0x119269,'textRanges':[{'startOffset':_0x3460a3,'endOffset':_0x3460a3,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x440cee}):(_0x20aaf8[_0x5b90c5(0x228)]([{'startOffset':_0x3460a3,'endOffset':_0x3460a3}],{'unitId':_0x78cb26,'subUnitId':_0x78cb26},!0x1),!0x0);}let _0x445a9a=_0x309445(0x1b2);var _0x6b502c='@univerjs-pro/docs-code',_0x29bf2a=_0x309445(0x24f);let _0x59c2a2={};function _0x1f371c(_0x5922f2,_0x449309){return function(_0x5a0235,_0x451def){_0x449309(_0x5a0235,_0x451def,_0x5922f2);};}function _0x18bfcc(_0xad962f,_0x1ab7df,_0x315011,_0x53531e){const _0x284d73=_0x309445;var _0x5c3b2a=arguments['length'],_0x3b5ea8=_0x5c3b2a<0x3?_0x1ab7df:_0x53531e===null?_0x53531e=Object[_0x284d73(0x1df)](_0x1ab7df,_0x315011):_0x53531e,_0x1c8487;if(typeof Reflect==_0x284d73(0x259)&&typeof Reflect['decorate']==_0x284d73(0x212))_0x3b5ea8=Reflect['decorate'](_0xad962f,_0x1ab7df,_0x315011,_0x53531e);else{for(var _0x369fc0=_0xad962f[_0x284d73(0x1ba)]-0x1;_0x369fc0>=0x0;_0x369fc0--)(_0x1c8487=_0xad962f[_0x369fc0])&&(_0x3b5ea8=(_0x5c3b2a<0x3?_0x1c8487(_0x3b5ea8):_0x5c3b2a>0x3?_0x1c8487(_0x1ab7df,_0x315011,_0x3b5ea8):_0x1c8487(_0x1ab7df,_0x315011))||_0x3b5ea8);}return _0x5c3b2a>0x3&&_0x3b5ea8&&Object[_0x284d73(0x24c)](_0x1ab7df,_0x315011,_0x3b5ea8),_0x3b5ea8;}let _0x1654c2=class extends _0x3ec08c[_0x309445(0x23d)]{constructor(_0x5198a3,_0x32f2a7){const _0x413b0f=_0x309445;super(),this['_resourceManagerService']=_0x5198a3,this[_0x413b0f(0x235)]=_0x32f2a7,this[_0x413b0f(0x1e8)]();}[_0x309445(0x1e8)](){const _0x393857=_0x309445;this[_0x393857(0x255)](this[_0x393857(0x217)]['registerPluginResource']({'pluginName':_0x445a9a,'businesses':[_0x3ec08c[_0x393857(0x246)]['UNIVER_DOC']],'toJson':_0x1a8e3f=>JSON[_0x393857(0x215)](this[_0x393857(0x235)][_0x393857(0x1c9)](_0x1a8e3f)),'parseJson':_0x33a8e1=>_0x4d8be0(JSON[_0x393857(0x25a)](_0x33a8e1)),'onLoad':(_0x398f5d,_0x3001e4)=>this[_0x393857(0x235)]['deserialize'](_0x398f5d,_0x3001e4),'onUnLoad':_0x5d1a3d=>this['_docsCodeModel'][_0x393857(0x210)](_0x5d1a3d)}));}};_0x1654c2=_0x18bfcc([_0x1f371c(0x0,_0x3ec08c[_0x309445(0x1cb)]),_0x1f371c(0x1,(0x0,_0x3ec08c[_0x309445(0x1a4)])(_0xea2109))],_0x1654c2);let _0x4c15b8=class extends _0x3ec08c[_0x309445(0x241)]{constructor(_0x4b4817=_0x59c2a2,_0xaf620d,_0x161775,_0x407ee0){const _0x4ab1fc=_0x309445;super(),this['_config']=_0x4b4817,this[_0x4ab1fc(0x1e4)]=_0xaf620d,this['_commandService']=_0x161775,this['_configService']=_0x407ee0;let {..._0x2827a5}=(0x0,_0x3ec08c[_0x4ab1fc(0x23e)])({},_0x59c2a2,this['_config']);this[_0x4ab1fc(0x17a)][_0x4ab1fc(0x1b6)](_0x4ab1fc(0x18b),_0x2827a5);}[_0x309445(0x1c7)](){const _0x2dab5f=_0x309445;this[_0x2dab5f(0x1e4)][_0x2dab5f(0x22f)]([_0xea2109]),this[_0x2dab5f(0x1e4)][_0x2dab5f(0x22f)]([_0x1654c2]),this[_0x2dab5f(0x1e4)][_0x2dab5f(0x23b)](_0xea2109),this[_0x2dab5f(0x1e4)]['get'](_0x1654c2),[_0x3112ef,_0x2328e8,_0x321568,_0x4b3dc6,_0x522564,_0x4476ba,_0x3396e4,_0x3cbc80,_0x58a5db,_0x2ef9cf][_0x2dab5f(0x1d6)](_0x21c5c4=>this['disposeWithMe'](this[_0x2dab5f(0x223)][_0x2dab5f(0x1b7)](_0x21c5c4)));}};_0x6a7255(_0x4c15b8,'pluginName',_0x445a9a),_0x6a7255(_0x4c15b8,_0x309445(0x22c),_0x6b502c),_0x6a7255(_0x4c15b8,_0x309445(0x204),_0x29bf2a),_0x6a7255(_0x4c15b8,_0x309445(0x1a9),_0x3ec08c[_0x309445(0x246)]['UNIVER_DOC']),_0x4c15b8=_0x18bfcc([(0x0,_0x3ec08c[_0x309445(0x18c)])(_0x4d0859[_0x309445(0x1d2)],_0x514b03[_0x309445(0x198)]),_0x1f371c(0x1,(0x0,_0x3ec08c[_0x309445(0x1a4)])(_0x3ec08c[_0x309445(0x190)])),_0x1f371c(0x2,_0x3ec08c['ICommandService']),_0x1f371c(0x3,_0x3ec08c[_0x309445(0x195)])],_0x4c15b8),_0x3a686e[_0x309445(0x248)]=_0x445a9a,_0x3a686e['DocsCodeCancelEmptyParagraphCommand']=_0x3396e4,_0x3a686e[_0x309445(0x222)]=_0x3cbc80,_0x3a686e[_0x309445(0x24b)]=_0x2328e8,_0x3a686e['DocsCodeInsertCommand']=_0x3112ef,_0x3a686e[_0x309445(0x1a2)]=_0xea2109,_0x3a686e['DocsCodeRemoveCommand']=_0x522564,_0x3a686e[_0x309445(0x214)]=_0x4b3dc6,_0x3a686e[_0x309445(0x1be)]=_0x321568,_0x3a686e[_0x309445(0x1a1)]=_0x2ef9cf,_0x3a686e[_0x309445(0x1e6)]=_0x58a5db,Object[_0x309445(0x24c)](_0x3a686e,_0x309445(0x193),{'enumerable':!0x0,'get':function(){return _0x4c15b8;}}),_0x3a686e[_0x309445(0x1d7)]=_0x1ad099,_0x3a686e[_0x309445(0x1b0)]=_0x280fb7,_0x3a686e[_0x309445(0x191)]=_0x627ab3,_0x3a686e[_0x309445(0x1d3)]=_0x4d8be0;}));function _0x3926(_0x47116a,_0x3270ce){_0x47116a=_0x47116a-0x177;const _0x24eb4d=_0x24eb();let _0x392608=_0x24eb4d[_0x47116a];return _0x392608;}function _0x24eb(){const _0x5f0c88=['FALSE','DOCS_CODE_PLUGIN','sectionBreaks','columns','DocsCodeInsertBelowCommand','defineProperty','blockType','max','1.0.3','cursorOffset','metadata','BLOCK_START','UniverProDocsCode','blockId','disposeWithMe','iterator','11npfylU','slice','object','parse','createParagraphId','customDecorations','customBlocks','docs-code.command.exit','_configService','getParagraphFollowingBlockOffset','spaceBelow','replaceOp','unitId','monospace','nextDocumentData','getSnapshot','1765860zxYcyG','@univerjs/core','BuildTextUtils','prototype','deleteLength','ICommandService','bullet','paragraph','min','docs-code.config','DependentOn','find','shiftInclusiveRangeOnInsert','dispose','Injector','normalizeDocsCodeConfig','docs-code.command.cancel-empty-paragraph','UniverDocsCodePlugin','getBlockRangeInterval','IConfigService','syncExecuteCommand','toPrimitive','UniverDocsPlugin','_resources','isHeaderFooterSelection','getUnitId','4TWqvGV','TABLE_CELL_END','sort','TRUE','fromEntries','RemoveDocsCodeConfigMutation','DocsCodeModel','containsStreamIndex','Inject','startTokenOffset','clear','getParagraphContentStartOffset','Document\x20body\x20is\x20required','type','direction','insertLength','convert-paragraph','containsInteriorInsertionOffset','docs-code.mutation.set-config','removeCode','isCodeBoundaryDelete','handler','DOC_CODE_PLUGIN','javascript','289544vSyUzD','dataStream','setConfig','registerCommand','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','getCurrentUnitOfType','length','call','toStringTag','blockRanges','DocsCodeUpdateCommand','getBodySliceForTextXAction','columnGroups','entries','model','intersectsOperationalIntervals','getParagraphContentStartOffsets','getSingleDataStreamChange','shiftExclusiveRangeOnInsert','onStarting','set','serialize','_change$','IResourceManagerService','indexOf','insertionMode','removeOp','UNIVER_DOC','MUTATION','getBody','UniverLicensePlugin','normalizeDocsCodeMetadataResource','Module','spaceAbove','forEach','buildCancelEmptyCodeParagraphActions','every','nextMetadata','getContentInsertRange','compose','UniverProLicense','some','PARAGRAPH','getOwnPropertyDescriptor','insertOp','getInstance','UniverDocs','getParagraphsInRange','_injector','push','SetDocsCodeConfigMutation','config','_initResource','IUniverInstanceService','Subject','filter','BLOCK_END','startOffset','delete','COMMAND','amd','endOffset','getUnit','DocumentBlockRangeType','TABLE_CELL_START','complete','symbol','_setResource','range','8696500pbCZBw','previousDocumentData','deserialize','paragraphId','body','next','documentData','UniverCore','getTextRanges','widowControl','constructor','version','docs-code.command.update','2213710pHMEgE','startIndex','shiftExclusiveRangeOnDelete','indentEnd','CODE','keys','selectionManager','TextX','insert','paragraphStartIndex','removeUnit','textStyle','function','start','DocsCodeUnwrapCommand','stringify','tables','_resourceManagerService','DataStreamTreeTokenType','358855naKFIy','endTokenOffset','paragraphStyle','DocSelectionManagerService','CommandType','BooleanNumber','insert-new','@univerjs/docs','change$','DocsCodeConsumeBoundaryDeleteCommand','_commandService','docs-code.command.consume-boundary-delete','RichTextEditingMutation','reduce','78wSikJV','replaceDocRanges','8osEcXR','endsWith','rxjs','packageName','shiftInclusiveRangeOnDelete','JSONX','add','editOp','setCodeConfig','customRanges','retain','2188989ZGFrHc','_docsCodeModel','paragraphs','docs-code.mutation.remove-config','isArray','SECTION_BREAK','map','get','textRuns','Disposable','merge','238213OOqQUy','keepNext','Plugin','codes','endIndex','exports','commandService','UniverInstanceType'];_0x24eb=function(){return _0x5f0c88;};return _0x24eb();}
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.3",
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.3",
65
- "@univerjs/core": "1.0.3",
66
- "@univerjs/docs": "1.0.3"
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.3",
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",