@univerjs-pro/docs-code 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
## Package Overview
|
|
10
10
|
|
|
11
|
-
| Package | UMD global | CSS | Locales | Facade entry |
|
|
12
|
-
| --- | --- | :---: | :---: | :---: |
|
|
13
|
-
| `@univerjs-pro/docs-code` | `UniverProDocsCode` | No | No | Yes |
|
|
11
|
+
| Package | UMD global | CSS | Locales | Facade entry | Worker entry |
|
|
12
|
+
| --- | --- | :---: | :---: | :---: | :---: |
|
|
13
|
+
| `@univerjs-pro/docs-code` | `UniverProDocsCode` | No | No | Yes | No |
|
|
14
14
|
|
|
15
15
|
## Installation
|
|
16
16
|
|
|
@@ -20,10 +20,10 @@ pnpm add @univerjs-pro/docs-code
|
|
|
20
20
|
npm install @univerjs-pro/docs-code
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
Keep all `@univerjs/*` and `@univerjs-pro/*` packages on the same version.
|
|
24
|
-
|
|
25
23
|
## Usage
|
|
26
24
|
|
|
25
|
+
Start with the [integration setup](https://docs.univer.ai/) for your document type, including its required plugins, styles, and locale resources. The snippet below assumes that setup is complete.
|
|
26
|
+
|
|
27
27
|
```ts
|
|
28
28
|
import { UniverDocsCodePlugin } from '@univerjs-pro/docs-code';
|
|
29
29
|
|
|
@@ -32,10 +32,10 @@ univer.registerPlugin(UniverDocsCodePlugin);
|
|
|
32
32
|
|
|
33
33
|
## Integration Notes
|
|
34
34
|
|
|
35
|
-
- Keep this package on the same version as the other `@univerjs/*` and `@univerjs-pro/*` packages in your application.
|
|
36
35
|
- Use the facade entry when integrating through Univer Facade APIs.
|
|
37
36
|
|
|
38
37
|
## Resources
|
|
39
38
|
|
|
40
|
-
- [Documentation](https://docs.univer.ai
|
|
39
|
+
- [Documentation](https://docs.univer.ai)
|
|
41
40
|
- [NPM package](https://npmjs.com/package/@univerjs-pro/docs-code)
|
|
41
|
+
- [GitHub repository](https://github.com/dream-num/univer-pro)
|
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x217144=_0x75a2;(function(_0x5a8ebe,_0x10fc4a){const _0x5a9e20=_0x75a2,_0xdb890f=_0x5a8ebe();while(!![]){try{const _0x5a4a6e=parseInt(_0x5a9e20(0x150))/0x1*(-parseInt(_0x5a9e20(0x132))/0x2)+parseInt(_0x5a9e20(0x161))/0x3*(-parseInt(_0x5a9e20(0x170))/0x4)+-parseInt(_0x5a9e20(0x181))/0x5*(parseInt(_0x5a9e20(0x14f))/0x6)+-parseInt(_0x5a9e20(0x142))/0x7+parseInt(_0x5a9e20(0x183))/0x8*(-parseInt(_0x5a9e20(0x12b))/0x9)+-parseInt(_0x5a9e20(0x154))/0xa+parseInt(_0x5a9e20(0x16a))/0xb*(parseInt(_0x5a9e20(0x159))/0xc);if(_0x5a4a6e===_0x10fc4a)break;else _0xdb890f['push'](_0xdb890f['shift']());}catch(_0x37b471){_0xdb890f['push'](_0xdb890f['shift']());}}}(_0x1191,0xc4209),Object[_0x217144(0x16b)](exports,Symbol[_0x217144(0x153)],{'value':'Module'}));let e=require('@univerjs-pro/docs-code'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x5d4637){'@babel/helpers - typeof';const _0x5396bd=_0x217144;return r=typeof Symbol==_0x5396bd(0x17e)&&typeof Symbol[_0x5396bd(0x138)]=='symbol'?function(_0x3fabd5){return typeof _0x3fabd5;}:function(_0x460b95){const _0x4bc864=_0x5396bd;return _0x460b95&&typeof Symbol=='function'&&_0x460b95[_0x4bc864(0x13e)]===Symbol&&_0x460b95!==Symbol[_0x4bc864(0x16f)]?_0x4bc864(0x140):typeof _0x460b95;},r(_0x5d4637);}function i(_0x564731,_0x12c039){const _0xfcc349=_0x217144;if(r(_0x564731)!='object'||!_0x564731)return _0x564731;var _0x242fdb;if(typeof Symbol<'u'&&(_0x242fdb=_0x564731[Symbol[_0xfcc349(0x145)]])!==void 0x0){var _0x47d8e9=_0x242fdb[_0xfcc349(0x16d)](_0x564731,_0x12c039||_0xfcc349(0x13b));if(r(_0x47d8e9)!=_0xfcc349(0x141))return _0x47d8e9;throw TypeError(_0xfcc349(0x180));}return(_0x12c039==='string'?String:Number)(_0x564731);}function a(_0x509d9e){const _0x29eb17=_0x217144;var _0x36add4=i(_0x509d9e,_0x29eb17(0x13f));return r(_0x36add4)==_0x29eb17(0x140)?_0x36add4:_0x36add4+'';}function o(_0x57c4e7,_0xf66c8,_0x529528){return(_0xf66c8=a(_0xf66c8))in _0x57c4e7?Object['defineProperty'](_0x57c4e7,_0xf66c8,{'value':_0x529528,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x57c4e7[_0xf66c8]=_0x529528,_0x57c4e7;}function s(_0x463aed,_0x5b14ca){return function(_0x1ff5e4,_0x42dce5){_0x5b14ca(_0x1ff5e4,_0x42dce5,_0x463aed);};}function c(_0x2935dc,_0x26d864,_0x1aab25,_0x4c2a44){const _0x11d2d=_0x217144;var _0x5311b4=arguments[_0x11d2d(0x15a)],_0x683b66=_0x5311b4<0x3?_0x26d864:_0x4c2a44===null?_0x4c2a44=Object[_0x11d2d(0x182)](_0x26d864,_0x1aab25):_0x4c2a44,_0x2b8ac0;if(typeof Reflect==_0x11d2d(0x141)&&typeof Reflect[_0x11d2d(0x152)]==_0x11d2d(0x17e))_0x683b66=Reflect[_0x11d2d(0x152)](_0x2935dc,_0x26d864,_0x1aab25,_0x4c2a44);else{for(var _0x8387a1=_0x2935dc[_0x11d2d(0x15a)]-0x1;_0x8387a1>=0x0;_0x8387a1--)(_0x2b8ac0=_0x2935dc[_0x8387a1])&&(_0x683b66=(_0x5311b4<0x3?_0x2b8ac0(_0x683b66):_0x5311b4>0x3?_0x2b8ac0(_0x26d864,_0x1aab25,_0x683b66):_0x2b8ac0(_0x26d864,_0x1aab25))||_0x683b66);}return _0x5311b4>0x3&&_0x683b66&&Object[_0x11d2d(0x16b)](_0x26d864,_0x1aab25,_0x683b66),_0x683b66;}function _0x1191(){const _0x9b64ea=['1082701iXSbcm','filter','decorate','toStringTag','139690pdpcFG','DocsCodeInsertCommand','_getBlockRanges','_document','generateRandomId','66099192jjeeDU','length','FDocumentCode','getCodeConfig','slice','BLOCK_END','getCodes','Injector','247731iylDpV','getCodeAt','normalizeDocsCodeConfig','DocsCodeRemoveCommand','_getBlockRange','DataStreamTreeTokenType','PARAGRAPH','map','from','11BtnWOh','defineProperty','updateConfig','call','Inject','prototype','16EhMuvO','join','body','describe','getText','get','insertCode','config','DocsCodeUpdateCommand','ICommandService','CODE','_unitId','blockType','findCodes','function','getConfig','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','5sBJsfb','getOwnPropertyDescriptor','4696DTzkvl','5841PukoCl','blockRanges','includes','_blockId','dataStream','blockId','isParagraphFacade','2hAwSyX','_createFDocumentCode','find','createInstance','endIndex','_injector','iterator','FDocument','DocsCodeUnwrapCommand','default','findCodeByText','getCode','constructor','string','symbol','object','10839045OoReoQ','BLOCK_START','getRange','toPrimitive','save','DocumentBlockRangeType','replace','text','startIndex','syncExecuteCommand','_getDocumentData','DocsCodeModel','getId','8091318HRaXlk'];_0x1191=function(){return _0x9b64ea;};return _0x1191();}let l=class{constructor(_0x2c0391,_0x482616,_0x4e6a73){const _0x375acf=_0x217144;this[_0x375acf(0x157)]=_0x2c0391,this[_0x375acf(0x12e)]=_0x482616,this[_0x375acf(0x137)]=_0x4e6a73,o(this,_0x375acf(0x17b),void 0x0),this[_0x375acf(0x17b)]=this['_document']['getId']();}[_0x217144(0x14e)](){const _0x3388ac=_0x217144;return this[_0x3388ac(0x12e)];}[_0x217144(0x144)](){const _0x15690c=_0x217144;let _0x484837=this[_0x15690c(0x165)]();return _0x484837?{'blockId':_0x484837[_0x15690c(0x130)],'endIndex':_0x484837[_0x15690c(0x136)],'startIndex':_0x484837['startIndex']}:null;}[_0x217144(0x174)](){const _0x559552=_0x217144;var _0x44814d;let _0x3b5324=this['_getBlockRange'](),_0x2dc2b9=(_0x44814d=this[_0x559552(0x14c)]()[_0x559552(0x172)])==null?void 0x0:_0x44814d[_0x559552(0x12f)];return!_0x3b5324||!_0x2dc2b9?'':u(_0x2dc2b9[_0x559552(0x15d)](_0x3b5324[_0x559552(0x14a)]+0x1,_0x3b5324['endIndex']));}[_0x217144(0x173)](){const _0x5059b1=_0x217144;let _0x1ccafa=this['getRange']();return _0x1ccafa?{..._0x1ccafa,'config':this[_0x5059b1(0x17f)](),'text':this[_0x5059b1(0x174)](),'type':t[_0x5059b1(0x147)]['CODE']}:null;}['getConfig'](){const _0x3f58f6=_0x217144;let _0x153a88=this[_0x3f58f6(0x137)]['get'](e[_0x3f58f6(0x14d)]);return(0x0,e[_0x3f58f6(0x163)])(_0x153a88[_0x3f58f6(0x15c)](this['_unitId'],this[_0x3f58f6(0x12e)]));}[_0x217144(0x16c)](_0x19894f){const _0x497166=_0x217144;return this[_0x497166(0x137)][_0x497166(0x175)](t[_0x497166(0x179)])['syncExecuteCommand'](e[_0x497166(0x178)]['id'],{'blockId':this[_0x497166(0x12e)],'config':_0x19894f[_0x497166(0x177)],'unitId':this[_0x497166(0x17b)]});}['unwrap'](){const _0x4325f0=_0x217144;return this[_0x4325f0(0x137)][_0x4325f0(0x175)](t[_0x4325f0(0x179)])[_0x4325f0(0x14b)](e[_0x4325f0(0x13a)]['id'],{'blockId':this['_blockId'],'unitId':this['_unitId']});}['remove'](){const _0x2c42a2=_0x217144;return this[_0x2c42a2(0x137)][_0x2c42a2(0x175)](t['ICommandService'])[_0x2c42a2(0x14b)](e[_0x2c42a2(0x164)]['id'],{'blockId':this[_0x2c42a2(0x12e)],'unitId':this[_0x2c42a2(0x17b)]});}[_0x217144(0x165)](){const _0x4bdaae=_0x217144;var _0x4e3226;return((_0x4e3226=this[_0x4bdaae(0x14c)]()['body'])==null||(_0x4e3226=_0x4e3226['blockRanges'])==null?void 0x0:_0x4e3226[_0x4bdaae(0x134)](_0x1f72fe=>_0x1f72fe[_0x4bdaae(0x130)]===this['_blockId']&&_0x1f72fe[_0x4bdaae(0x17c)]===t[_0x4bdaae(0x147)][_0x4bdaae(0x17a)]))??null;}['_getDocumentData'](){const _0x17c46b=_0x217144;return this[_0x17c46b(0x157)][_0x17c46b(0x146)]();}};l=c([s(0x2,(0x0,t[_0x217144(0x16e)])(t[_0x217144(0x160)]))],l);function u(_0x11fadb){const _0x5db4b4=_0x217144;return Array[_0x5db4b4(0x169)](_0x11fadb)['map'](_0x363175=>_0x363175===t[_0x5db4b4(0x166)][_0x5db4b4(0x167)]?'\x0a':_0x363175)['filter'](_0x3055c0=>_0x3055c0!==t['DataStreamTreeTokenType'][_0x5db4b4(0x143)]&&_0x3055c0!==t[_0x5db4b4(0x166)][_0x5db4b4(0x15e)]&&_0x3055c0!==t[_0x5db4b4(0x166)]['SECTION_BREAK'])[_0x5db4b4(0x171)]('')[_0x5db4b4(0x148)](/\n$/,'');}function _0x75a2(_0x3c0865,_0x4ebd11){_0x3c0865=_0x3c0865-0x12b;const _0x119143=_0x1191();let _0x75a26=_0x119143[_0x3c0865];return _0x75a26;}var d=class extends n['FDocument']{['getCodes'](){const _0x14b9fe=_0x217144;return this['_getBlockRanges']()[_0x14b9fe(0x151)](_0x15dbd2=>_0x15dbd2[_0x14b9fe(0x17c)]===t[_0x14b9fe(0x147)][_0x14b9fe(0x17a)])[_0x14b9fe(0x168)](_0x19ad3b=>this[_0x14b9fe(0x133)](_0x19ad3b[_0x14b9fe(0x130)]));}['getCode'](_0xa03b12){const _0x5a49f2=_0x217144;return this[_0x5a49f2(0x156)]()['some'](_0x22a958=>_0x22a958[_0x5a49f2(0x130)]===_0xa03b12&&_0x22a958[_0x5a49f2(0x17c)]===t[_0x5a49f2(0x147)][_0x5a49f2(0x17a)])?this[_0x5a49f2(0x133)](_0xa03b12):null;}[_0x217144(0x162)](_0x1bbdba){const _0x1f27fe=_0x217144;let _0x5ef784=this[_0x1f27fe(0x156)]()[_0x1f27fe(0x134)](_0xbf5a65=>_0xbf5a65[_0x1f27fe(0x17c)]===t[_0x1f27fe(0x147)][_0x1f27fe(0x17a)]&&_0xbf5a65[_0x1f27fe(0x14a)]<=_0x1bbdba&&_0x1bbdba<=_0xbf5a65[_0x1f27fe(0x136)]);return _0x5ef784?this[_0x1f27fe(0x133)](_0x5ef784['blockId']):null;}[_0x217144(0x13c)](_0x3ea048){const _0x1211d0=_0x217144;return this[_0x1211d0(0x17d)](_0x3ea048)[0x0]??null;}[_0x217144(0x17d)](_0x3d1fc9){const _0x524318=_0x217144;let _0x2934ec=typeof _0x3d1fc9=='string'?{'text':_0x3d1fc9}:_0x3d1fc9;return this[_0x524318(0x15f)]()['filter'](_0x1e23b0=>!(_0x2934ec[_0x524318(0x130)]&&_0x1e23b0[_0x524318(0x14e)]()!==_0x2934ec[_0x524318(0x130)]||_0x2934ec['text']&&!_0x1e23b0[_0x524318(0x174)]()[_0x524318(0x12d)](_0x2934ec[_0x524318(0x149)])));}[_0x217144(0x176)](_0x15cd19={},_0x447ac2={}){const _0x5a1673=_0x217144;let _0x58771e=this[_0x5a1673(0x137)]['get'](t[_0x5a1673(0x179)]),_0x44a788=(0x0,n[_0x5a1673(0x131)])(_0x15cd19)?{..._0x447ac2,..._0x15cd19['getRange']()}:_0x15cd19,_0x13974e=_0x44a788[_0x5a1673(0x130)]??(0x0,t[_0x5a1673(0x158)])(0x6);return _0x58771e[_0x5a1673(0x14b)](e[_0x5a1673(0x155)]['id'],{..._0x44a788,'blockId':_0x13974e,'unitId':this[_0x5a1673(0x14e)]()})?this[_0x5a1673(0x13d)](_0x13974e):null;}[_0x217144(0x156)](){const _0x4bdf7b=_0x217144;var _0x22b8aa;return((_0x22b8aa=this[_0x4bdf7b(0x146)]()[_0x4bdf7b(0x172)])==null?void 0x0:_0x22b8aa[_0x4bdf7b(0x12c)])??[];}[_0x217144(0x133)](_0x1d27a1){const _0x5ead6e=_0x217144;return this[_0x5ead6e(0x137)][_0x5ead6e(0x135)](l,this,_0x1d27a1);}};n[_0x217144(0x139)]['extend'](d),Object[_0x217144(0x16b)](exports,_0x217144(0x15b),{'enumerable':!0x0,'get':function(){return l;}});
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x6be3a5=_0x33bf;(function(_0x2ab9ac,_0x1d8e6a){const _0x187d54=_0x33bf,_0xd29ceb=_0x2ab9ac();while(!![]){try{const _0x2a7015=-parseInt(_0x187d54(0x1b1))/0x1+-parseInt(_0x187d54(0x21c))/0x2+parseInt(_0x187d54(0x1a1))/0x3*(parseInt(_0x187d54(0x1da))/0x4)+-parseInt(_0x187d54(0x263))/0x5*(-parseInt(_0x187d54(0x249))/0x6)+parseInt(_0x187d54(0x202))/0x7+-parseInt(_0x187d54(0x1db))/0x8+parseInt(_0x187d54(0x26a))/0x9;if(_0x2a7015===_0x1d8e6a)break;else _0xd29ceb['push'](_0xd29ceb['shift']());}catch(_0x287361){_0xd29ceb['push'](_0xd29ceb['shift']());}}}(_0x205d,0x79d93),Object[_0x6be3a5(0x1e5)](exports,Symbol['toStringTag'],{'value':_0x6be3a5(0x1c3)}));function _0x33bf(_0x563e0a,_0x5be381){_0x563e0a=_0x563e0a-0x196;const _0x205d2e=_0x205d();let _0x33bf99=_0x205d2e[_0x563e0a];return _0x33bf99;}let e=require('@univerjs/core'),t=require('rxjs'),n=require('@univerjs/docs'),r=require('@univerjs-pro/license');const i={'language':_0x6be3a5(0x1ac),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function a(_0x5de81b){return{...i,..._0x5de81b};}function o(_0x397813){const _0x5ec9c1=_0x6be3a5;let _0x38f85b=(_0x397813==null?void 0x0:_0x397813[_0x5ec9c1(0x1d9)])??{};return{'codes':Object[_0x5ec9c1(0x224)](Object['entries'](_0x38f85b)[_0x5ec9c1(0x260)](([_0x3cd2c6,_0x2702ad])=>[_0x3cd2c6,a(_0x2702ad)]))};}function s(_0x36ed1a,_0x3457bb,_0x1ac32f){const _0x1092cd=_0x6be3a5;let _0x523ec5=o(_0x36ed1a);return _0x523ec5[_0x1092cd(0x1d9)][_0x3457bb]=a({..._0x523ec5[_0x1092cd(0x1d9)][_0x3457bb],..._0x1ac32f}),_0x523ec5;}function c(_0x1d1425,_0x205c79){const _0x4af0ef=_0x6be3a5;let _0x3b0375=o(_0x1d1425);return delete _0x3b0375[_0x4af0ef(0x1d9)][_0x205c79],_0x3b0375;}function l(_0x5792dd){'@babel/helpers - typeof';const _0x5c7152=_0x6be3a5;return l=typeof Symbol==_0x5c7152(0x1f5)&&typeof Symbol[_0x5c7152(0x23b)]==_0x5c7152(0x1b2)?function(_0xa5ab89){return typeof _0xa5ab89;}:function(_0x56238c){const _0x3b8498=_0x5c7152;return _0x56238c&&typeof Symbol==_0x3b8498(0x1f5)&&_0x56238c[_0x3b8498(0x258)]===Symbol&&_0x56238c!==Symbol[_0x3b8498(0x1cb)]?'symbol':typeof _0x56238c;},l(_0x5792dd);}function u(_0x536a20,_0x4708e0){const _0x388284=_0x6be3a5;if(l(_0x536a20)!='object'||!_0x536a20)return _0x536a20;var _0x3f6a15=_0x536a20[Symbol[_0x388284(0x23e)]];if(_0x3f6a15!==void 0x0){var _0x254a87=_0x3f6a15[_0x388284(0x1a9)](_0x536a20,_0x4708e0||_0x388284(0x213));if(l(_0x254a87)!=_0x388284(0x19d))return _0x254a87;throw TypeError(_0x388284(0x225));}return(_0x4708e0===_0x388284(0x1cc)?String:Number)(_0x536a20);}function d(_0x49121f){const _0x470ee0=_0x6be3a5;var _0x5c906d=u(_0x49121f,_0x470ee0(0x1cc));return l(_0x5c906d)=='symbol'?_0x5c906d:_0x5c906d+'';}function f(_0xc15f99,_0x4d5835,_0x32bfbe){return(_0x4d5835=d(_0x4d5835))in _0xc15f99?Object['defineProperty'](_0xc15f99,_0x4d5835,{'value':_0x32bfbe,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xc15f99[_0x4d5835]=_0x32bfbe,_0xc15f99;}var p=class extends e[_0x6be3a5(0x1c2)]{constructor(..._0x16e567){const _0x37c70c=_0x6be3a5;super(..._0x16e567),f(this,_0x37c70c(0x20e),new Map()),f(this,_0x37c70c(0x243),new t[(_0x37c70c(0x211))]()),f(this,'change$',this[_0x37c70c(0x243)]['asObservable']());}['getCodeConfig'](_0x1aed8b,_0x123b85){const _0x4c1969=_0x6be3a5;return o(this[_0x4c1969(0x20e)]['get'](_0x1aed8b))[_0x4c1969(0x1d9)][_0x123b85];}[_0x6be3a5(0x25a)](_0x4a6163,_0x918371,_0x3b099e){const _0x5d9bf9=_0x6be3a5;this[_0x5d9bf9(0x221)](_0x4a6163,_0x918371,s(this[_0x5d9bf9(0x20e)][_0x5d9bf9(0x1a4)](_0x4a6163),_0x918371,_0x3b099e));}[_0x6be3a5(0x240)](_0x2f61f2,_0x503ef6){const _0x472f41=_0x6be3a5;this[_0x472f41(0x221)](_0x2f61f2,_0x503ef6,c(this[_0x472f41(0x20e)][_0x472f41(0x1a4)](_0x2f61f2),_0x503ef6));}[_0x6be3a5(0x21d)](_0x199da4){const _0x234183=_0x6be3a5;return o(this['_resources'][_0x234183(0x1a4)](_0x199da4));}['deserialize'](_0x12ceec,_0x2886a4){const _0x3528fb=_0x6be3a5;this['_resources']['set'](_0x12ceec,o(_0x2886a4)),this[_0x3528fb(0x243)][_0x3528fb(0x231)]({'unitId':_0x12ceec});}[_0x6be3a5(0x25d)](_0x5dd891){const _0x34f2a2=_0x6be3a5;this[_0x34f2a2(0x20e)][_0x34f2a2(0x232)](_0x5dd891),this[_0x34f2a2(0x243)][_0x34f2a2(0x231)]({'unitId':_0x5dd891});}[_0x6be3a5(0x216)](){const _0x4ca9fd=_0x6be3a5;super[_0x4ca9fd(0x216)](),this[_0x4ca9fd(0x20e)][_0x4ca9fd(0x207)](),this['_change$']['complete']();}[_0x6be3a5(0x221)](_0x12534c,_0xedee8,_0x4dcb66){const _0x536a15=_0x6be3a5;this[_0x536a15(0x20e)][_0x536a15(0x1ec)](_0x12534c,_0x4dcb66),this[_0x536a15(0x243)][_0x536a15(0x231)]({'unitId':_0x12534c,'blockId':_0xedee8});}};const m={'id':_0x6be3a5(0x19a),'type':e['CommandType'][_0x6be3a5(0x1a7)],'handler':(_0x1fe534,_0x3bc27e)=>!(_0x3bc27e!=null&&_0x3bc27e[_0x6be3a5(0x1f4)])||!_0x3bc27e[_0x6be3a5(0x261)]?!0x1:(_0x1fe534[_0x6be3a5(0x1a4)](p)['setCodeConfig'](_0x3bc27e[_0x6be3a5(0x1f4)],_0x3bc27e[_0x6be3a5(0x261)],_0x3bc27e[_0x6be3a5(0x1f0)]),!0x0)},h={'id':'docs-code.mutation.remove-config','type':e[_0x6be3a5(0x1fe)]['MUTATION'],'handler':(_0x45f6a1,_0x2cba83)=>!(_0x2cba83!=null&&_0x2cba83[_0x6be3a5(0x1f4)])||!_0x2cba83['blockId']?!0x1:(_0x45f6a1[_0x6be3a5(0x1a4)](p)[_0x6be3a5(0x240)](_0x2cba83['unitId'],_0x2cba83[_0x6be3a5(0x261)]),!0x0)},g='monospace';var _=class extends Error{constructor(_0x504fca=_0x6be3a5(0x1af)){super(_0x504fca);}};function ee(_0x94c47c){const _0x1420c9=_0x6be3a5;var _0x181a54;let _0x29c017=S(_0x94c47c[_0x1420c9(0x241)]),_0x8e5cc9=w(_0x29c017),_0x659c33=ne(_0x94c47c[_0x1420c9(0x210)],_0x94c47c[_0x1420c9(0x256)]),_0x706f1d=_0x659c33?(_0x181a54=_0x8e5cc9[_0x1420c9(0x237)])==null?void 0x0:_0x181a54[_0x1420c9(0x23d)](_0xd93042=>{const _0xed3e9c=_0x1420c9;let _0x37221c=(0x0,e[_0xed3e9c(0x1cf)])(_0xd93042);return _0x37221c[_0xed3e9c(0x210)]===_0x659c33[_0xed3e9c(0x210)]&&_0x37221c[_0xed3e9c(0x256)]===_0x659c33[_0xed3e9c(0x256)];}):void 0x0,{startOffset:_0x5d7168,endOffset:_0x4c89f3}=_0x706f1d?_0x659c33:me(_0x8e5cc9,_0x94c47c[_0x1420c9(0x210)],_0x94c47c['endOffset'],_0x94c47c[_0x1420c9(0x229)]);if(!_0x706f1d&&re(_0x8e5cc9,_0x5d7168,_0x4c89f3))throw new _(_0x1420c9(0x1a8));let _0x306aa0=_e(_0x8e5cc9,_0x5d7168,_0x4c89f3),_0x184e9d=(_0x706f1d==null?void 0x0:_0x706f1d[_0x1420c9(0x261)])??_0x94c47c['blockId'],_0x1915f5=s(_0x94c47c[_0x1420c9(0x23f)],_0x184e9d,{...i,..._0x94c47c[_0x1420c9(0x1f0)]});if(_0x706f1d)return _0x706f1d['blockType']=e[_0x1420c9(0x222)][_0x1420c9(0x24f)],te(_0x8e5cc9,_0x5d7168,_0x4c89f3),le(_0x8e5cc9,_0x5d7168,_0x4c89f3,_0x306aa0),O(_0x8e5cc9,_0x706f1d),{'nextDocumentData':_0x29c017,'nextMetadata':_0x1915f5,'cursorOffset':_0x5d7168+0x1};if(_0x5d7168===_0x4c89f3){var _0x182bb6,_0x130379;let _0x5b05ec=''+e[_0x1420c9(0x196)][_0x1420c9(0x1ff)]+e['DataStreamTreeTokenType'][_0x1420c9(0x220)]+e[_0x1420c9(0x196)][_0x1420c9(0x1c5)];k(_0x8e5cc9,_0x5d7168,_0x5b05ec,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e[_0x1420c9(0x230)])(new Set((_0x182bb6=_0x8e5cc9['paragraphs'])==null?void 0x0:_0x182bb6['map'](_0x778ded=>_0x778ded[_0x1420c9(0x24b)]))),'paragraphStyle':x(!0x0,!0x0,_0x306aa0)}],'blockRanges':[{'blockId':_0x184e9d,'blockType':e[_0x1420c9(0x222)][_0x1420c9(0x24f)],'startIndex':0x0,'endIndex':_0x5b05ec[_0x1420c9(0x1ea)]-0x1}]});let _0x341cd7=(_0x130379=_0x8e5cc9[_0x1420c9(0x237)])==null?void 0x0:_0x130379[_0x1420c9(0x23d)](_0xbb4d7f=>_0xbb4d7f[_0x1420c9(0x261)]===_0x184e9d);return _0x341cd7&&O(_0x8e5cc9,_0x341cd7),{'nextDocumentData':_0x29c017,'nextMetadata':_0x1915f5,'cursorOffset':_0x5d7168+0x1};}k(_0x8e5cc9,_0x4c89f3,e[_0x1420c9(0x196)][_0x1420c9(0x1c5)]),k(_0x8e5cc9,_0x5d7168,e[_0x1420c9(0x196)][_0x1420c9(0x1ff)]),le(_0x8e5cc9,_0x5d7168,_0x4c89f3+0x1,_0x306aa0);let _0x50caeb={'blockId':_0x184e9d,'blockType':e['DocumentBlockRangeType']['CODE'],'startIndex':_0x5d7168,'endIndex':_0x4c89f3+0x1};return _0x8e5cc9[_0x1420c9(0x237)]=[..._0x8e5cc9[_0x1420c9(0x237)]??[],_0x50caeb][_0x1420c9(0x1c7)]((_0x6d61cb,_0x455173)=>_0x6d61cb[_0x1420c9(0x1fd)]-_0x455173[_0x1420c9(0x1fd)]),O(_0x8e5cc9,_0x50caeb),{'nextDocumentData':_0x29c017,'nextMetadata':_0x1915f5,'cursorOffset':_0x5d7168+0x1};}function te(_0x383d90,_0x32ef31,_0x587722){const _0x339f31=_0x6be3a5;(_0x383d90['paragraphs']??[])[_0x339f31(0x1d8)](_0x4cba9e=>_0x4cba9e['startIndex']>_0x32ef31&&_0x4cba9e[_0x339f31(0x1fd)]<_0x587722)[_0x339f31(0x252)](_0x34fb5b=>{const _0x403e0a=_0x339f31;let _0x379209={..._0x34fb5b[_0x403e0a(0x218)]??{}};delete _0x379209[_0x403e0a(0x267)],delete _0x379209[_0x403e0a(0x25b)],_0x34fb5b[_0x403e0a(0x218)]=_0x379209;});}function ne(_0x204d63,_0x4b329f){const _0x28f646=_0x6be3a5;return _0x204d63==null||_0x4b329f==null||_0x204d63===_0x4b329f?null:{'startOffset':Math[_0x28f646(0x1e6)](_0x204d63,_0x4b329f),'endOffset':Math['max'](_0x204d63,_0x4b329f)};}function re(_0x58a527,_0x1a0fbe,_0x389e22){const _0xd3fa0f=_0x6be3a5;return(_0x58a527[_0xd3fa0f(0x237)]??[])[_0xd3fa0f(0x244)](_0x40b1b4=>{const _0x2fb9e6=_0xd3fa0f;let _0x3434cf=(0x0,e[_0x2fb9e6(0x1cf)])(_0x40b1b4);return _0x1a0fbe===_0x389e22?(0x0,e[_0x2fb9e6(0x201)])(_0x3434cf,_0x1a0fbe):(0x0,e[_0x2fb9e6(0x239)])(_0x3434cf,{'startOffset':_0x1a0fbe,'endOffset':_0x389e22});});}function ie(_0x5195a0){const _0x352452=_0x6be3a5;return{'nextDocumentData':S(_0x5195a0[_0x352452(0x241)]),'nextMetadata':s(_0x5195a0[_0x352452(0x23f)],_0x5195a0[_0x352452(0x261)],_0x5195a0[_0x352452(0x1f0)]),'cursorOffset':0x0};}function v(_0x4336db){const _0x34ee88=_0x6be3a5;let _0x4bac56=S(_0x4336db[_0x34ee88(0x241)]),_0x2cd59c=w(_0x4bac56),_0x11468c=b(_0x2cd59c,_0x4336db['blockId']);if(!_0x11468c)return null;let _0x4a63e1=fe(_0x2cd59c,_0x11468c);return{'nextDocumentData':_0x4bac56,'nextMetadata':c(_0x4336db[_0x34ee88(0x23f)],_0x4336db['blockId']),'cursorOffset':_0x4a63e1};}function ae(_0x599561){const _0x15d293=_0x6be3a5;var _0x226cc8;let _0xe2c5f7=S(_0x599561[_0x15d293(0x241)]),_0x40fd10=w(_0xe2c5f7),_0x3e676c=b(_0x40fd10,_0x599561[_0x15d293(0x261)]);if(!_0x3e676c)return null;let _0x75b33f=(0x0,e[_0x15d293(0x1cf)])(_0x3e676c);return A(_0x40fd10,_0x75b33f[_0x15d293(0x210)],_0x75b33f['endOffset']),_0x40fd10[_0x15d293(0x237)]=(_0x226cc8=_0x40fd10[_0x15d293(0x237)])==null?void 0x0:_0x226cc8[_0x15d293(0x1d8)](_0x4552b2=>_0x4552b2[_0x15d293(0x261)]!==_0x599561[_0x15d293(0x261)]),{'nextDocumentData':_0xe2c5f7,'nextMetadata':c(_0x599561['metadata'],_0x599561[_0x15d293(0x261)]),'cursorOffset':_0x3e676c[_0x15d293(0x1fd)]};}function y(_0x14ed81){const _0x4f65fd=_0x6be3a5;let _0x1ec657=S(_0x14ed81[_0x4f65fd(0x241)]),_0x5e6ac5=w(_0x1ec657),_0x2c2ccf=ce(_0x5e6ac5,_0x14ed81['cursorOffset']);return _0x2c2ccf&&oe(_0x1ec657,_0x5e6ac5,_0x2c2ccf,_0x14ed81[_0x4f65fd(0x235)],_0x14ed81[_0x4f65fd(0x1a3)])||null;}function oe(_0x109228,_0x10d78c,_0x537e66,_0x303ec4,_0x4a1333){const _0x2be45f=_0x6be3a5;let _0x5e37e7=Se(_0x10d78c,_0x537e66,_0x303ec4,_0x4a1333);if(!_0x5e37e7)return null;let _0x3f3a1c=_0x5e37e7[_0x2be45f(0x1ef)]-0x1;return A(_0x10d78c,_0x5e37e7[_0x2be45f(0x266)][_0x2be45f(0x1fd)],_0x5e37e7['paragraph']['startIndex']+0x1),{'nextDocumentData':_0x109228,'cursorOffset':_0x3f3a1c};}function b(_0x1022d2,_0x5f1e29){const _0x4fb161=_0x6be3a5;var _0x246517;return _0x1022d2==null||(_0x246517=_0x1022d2[_0x4fb161(0x237)])==null?void 0x0:_0x246517[_0x4fb161(0x23d)](_0x2f3e9d=>_0x2f3e9d[_0x4fb161(0x1c0)]===e[_0x4fb161(0x222)][_0x4fb161(0x24f)]&&_0x2f3e9d['blockId']===_0x5f1e29);}function se(_0x387bbc){const _0x53f827=_0x6be3a5;let _0x539c58=_0x387bbc[_0x53f827(0x241)]['body'];if(!_0x539c58)return!0x1;let _0x48c81a=_0x387bbc[_0x53f827(0x1c9)]===_0x53f827(0x215)?_0x387bbc[_0x53f827(0x235)]-0x1:_0x387bbc[_0x53f827(0x235)],_0x37e2ef=_0x387bbc[_0x53f827(0x1c9)]===_0x53f827(0x20c)?_0x387bbc['cursorOffset']+0x1:_0x48c81a;return(_0x539c58['blockRanges']??[])[_0x53f827(0x244)](_0x41efd2=>_0x41efd2[_0x53f827(0x1c0)]===e[_0x53f827(0x222)][_0x53f827(0x24f)]?_0x48c81a===_0x41efd2[_0x53f827(0x1fd)]||_0x48c81a===_0x41efd2['endIndex']||_0x37e2ef===_0x41efd2[_0x53f827(0x1fd)]||_0x37e2ef===_0x41efd2[_0x53f827(0x197)]:!0x1);}function ce(_0x36b816,_0x30c856){const _0x36be4b=_0x6be3a5;var _0x1878f7;return(_0x1878f7=_0x36b816[_0x36be4b(0x237)])==null?void 0x0:_0x1878f7[_0x36be4b(0x23d)](_0x14d537=>{const _0x5d5d5a=_0x36be4b;let _0x12d972=D(_0x14d537);return _0x14d537['blockType']===e['DocumentBlockRangeType'][_0x5d5d5a(0x24f)]&&_0x14d537[_0x5d5d5a(0x1fd)]<=_0x30c856&&_0x30c856<=_0x12d972+0x2;});}function x(_0x584016,_0x5424d7,_0x19e06c=!0x1){const _0x372c50=_0x6be3a5;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':e[_0x372c50(0x205)]['TRUE'],'keepNext':_0x5424d7?e[_0x372c50(0x205)]['FALSE']:e[_0x372c50(0x205)]['TRUE'],'widowControl':e[_0x372c50(0x205)][_0x372c50(0x20a)],..._0x584016&&_0x19e06c?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':g,'fs':0xc}};}function le(_0x4c3533,_0x114888,_0x293836,_0x577445=!0x1){const _0x2fa13c=_0x6be3a5;let _0x57c73b=(_0x4c3533[_0x2fa13c(0x212)]??[])[_0x2fa13c(0x1d8)](_0x544f3b=>_0x544f3b[_0x2fa13c(0x1fd)]>_0x114888&&_0x544f3b[_0x2fa13c(0x1fd)]<_0x293836);_0x57c73b['forEach']((_0x1eb1f2,_0x740deb)=>{const _0x384a51=_0x2fa13c;_0x1eb1f2[_0x384a51(0x218)]={..._0x1eb1f2[_0x384a51(0x218)]??{},...x(_0x740deb===0x0,_0x740deb===_0x57c73b['length']-0x1,_0x577445)};});}function ue(_0x51a498){const _0x545846=_0x6be3a5;var _0x233f76,_0x3d61c1;let _0x5a49e1={..._0x51a498??{}};return delete _0x5a49e1[_0x545846(0x1d7)],delete _0x5a49e1[_0x545846(0x1e9)],delete _0x5a49e1[_0x545846(0x267)],delete _0x5a49e1[_0x545846(0x25b)],delete _0x5a49e1[_0x545846(0x1e4)],delete _0x5a49e1[_0x545846(0x21b)],delete _0x5a49e1[_0x545846(0x19c)],((_0x233f76=_0x5a49e1[_0x545846(0x21e)])==null?void 0x0:_0x233f76['ff'])===g&&((_0x3d61c1=_0x5a49e1[_0x545846(0x21e)])==null?void 0x0:_0x3d61c1['fs'])===0xc&&delete _0x5a49e1['textStyle'],_0x5a49e1;}function de(_0x130997,_0x260d21){const _0x8da8cd=_0x6be3a5;let _0x40bb61=D(_0x260d21);return(_0x130997[_0x8da8cd(0x212)]??[])[_0x8da8cd(0x1d8)](_0x44b7bf=>_0x44b7bf[_0x8da8cd(0x1fd)]>_0x260d21[_0x8da8cd(0x1fd)]&&_0x44b7bf[_0x8da8cd(0x1fd)]<_0x40bb61);}function fe(_0x51b30d,_0x6327d4){const _0x2794ba=_0x6be3a5;var _0xc8b7d3;let _0x4762f8=D(_0x6327d4);return de(_0x51b30d,_0x6327d4)[_0x2794ba(0x252)](_0x30714d=>{const _0x202961=_0x2794ba;_0x30714d[_0x202961(0x218)]=ue(_0x30714d[_0x202961(0x218)]);}),A(_0x51b30d,_0x4762f8,_0x4762f8+0x1),A(_0x51b30d,_0x6327d4[_0x2794ba(0x1fd)],_0x6327d4[_0x2794ba(0x1fd)]+0x1),_0x51b30d[_0x2794ba(0x237)]=(_0xc8b7d3=_0x51b30d[_0x2794ba(0x237)])==null?void 0x0:_0xc8b7d3['filter'](_0x284841=>_0x284841[_0x2794ba(0x261)]!==_0x6327d4['blockId']),_0x6327d4[_0x2794ba(0x1fd)];}function S(_0x1bfe1d){const _0x17c5f1=_0x6be3a5;return{..._0x1bfe1d,'body':_0x1bfe1d['body']?pe(_0x1bfe1d[_0x17c5f1(0x22b)]):_0x1bfe1d[_0x17c5f1(0x22b)]};}function pe(_0x4edb93){const _0x204e86=_0x6be3a5;var _0xf79a35,_0x490a4a,_0x5c719b,_0x4ceeb2,_0xc44fad,_0x56113f,_0x59e773,_0x8b295f,_0x373991;return{..._0x4edb93,'paragraphs':(_0xf79a35=_0x4edb93[_0x204e86(0x212)])==null?void 0x0:_0xf79a35[_0x204e86(0x260)](_0x1dcdd0=>({..._0x1dcdd0,'bullet':C(_0x1dcdd0[_0x204e86(0x1b8)]),'paragraphStyle':C(_0x1dcdd0[_0x204e86(0x218)])})),'sectionBreaks':(_0x490a4a=_0x4edb93[_0x204e86(0x227)])==null?void 0x0:_0x490a4a[_0x204e86(0x260)](_0x1f906d=>({..._0x1f906d})),'textRuns':(_0x5c719b=_0x4edb93[_0x204e86(0x1e2)])==null?void 0x0:_0x5c719b['map'](_0x36b348=>({..._0x36b348})),'tables':(_0x4ceeb2=_0x4edb93[_0x204e86(0x1ae)])==null?void 0x0:_0x4ceeb2['map'](_0x1cb742=>({..._0x1cb742})),'columnGroups':(_0xc44fad=_0x4edb93['columnGroups'])==null?void 0x0:_0xc44fad['map'](_0x1ffaca=>{const _0x4d0623=_0x204e86;var _0x368250;return{..._0x1ffaca,'columns':(_0x368250=_0x1ffaca['columns'])==null?void 0x0:_0x368250[_0x4d0623(0x260)](_0x378d7f=>C(_0x378d7f))};}),'blockRanges':(_0x56113f=_0x4edb93[_0x204e86(0x237)])==null?void 0x0:_0x56113f[_0x204e86(0x260)](_0xbed5a7=>({..._0xbed5a7})),'customRanges':(_0x59e773=_0x4edb93[_0x204e86(0x24c)])==null?void 0x0:_0x59e773[_0x204e86(0x260)](_0x3102d3=>({..._0x3102d3})),'customDecorations':(_0x8b295f=_0x4edb93[_0x204e86(0x1e8)])==null?void 0x0:_0x8b295f[_0x204e86(0x260)](_0x3c9fe0=>({..._0x3c9fe0})),'customBlocks':(_0x373991=_0x4edb93[_0x204e86(0x23a)])==null?void 0x0:_0x373991[_0x204e86(0x260)](_0x1d0c42=>({..._0x1d0c42}))};}function C(_0x55420b){const _0x450fff=_0x6be3a5;return Array[_0x450fff(0x1b4)](_0x55420b)?_0x55420b['map'](_0x3f6c4d=>C(_0x3f6c4d)):!_0x55420b||typeof _0x55420b!=_0x450fff(0x19d)?_0x55420b:Object[_0x450fff(0x224)](Object['entries'](_0x55420b)[_0x450fff(0x260)](([_0x5c1c66,_0x3ec718])=>[_0x5c1c66,C(_0x3ec718)]));}function w(_0x380309){const _0x393487=_0x6be3a5;if(!_0x380309[_0x393487(0x22b)])throw Error(_0x393487(0x22a));return _0x380309[_0x393487(0x22b)];}function me(_0x1e5538,_0x8f7108,_0x3a2d66,_0x9e4a3f='convert-paragraph'){const _0x17b871=_0x6be3a5;if(_0x8f7108==null||_0x3a2d66==null){let _0xf1913c=ge(_0x1e5538);return{'startOffset':_0xf1913c,'endOffset':_0xf1913c};}let _0x238c70=Math[_0x17b871(0x1e6)](_0x8f7108,_0x3a2d66),_0x5ed07c=Math[_0x17b871(0x19b)](_0x8f7108,_0x3a2d66),_0x31b9af=xe(_0x1e5538,_0x238c70,_0x5ed07c);return _0x238c70===_0x5ed07c?_0x9e4a3f===_0x17b871(0x1dc)?{'startOffset':_0x238c70,'endOffset':_0x5ed07c}:he(_0x1e5538,_0x238c70,_0x31b9af):ve(_0x1e5538,_0x238c70,_0x5ed07c,_0x31b9af);}function he(_0x76522,_0x5c765a,_0x145552){const _0x1a93f5=_0x6be3a5;let _0x371097=ye(_0x76522,_0x5c765a);if(_0x371097){let _0x179e1f=T(_0x76522,_0x371097,_0x145552);if(_0x179e1f<_0x371097[_0x1a93f5(0x1fd)])return{'startOffset':_0x179e1f,'endOffset':_0x145552?Math[_0x1a93f5(0x1e6)](_0x371097[_0x1a93f5(0x1fd)]+0x1,_0x145552[_0x1a93f5(0x256)]):_0x371097['startIndex']+0x1};}let _0x9c32b8=_0x5c765a===0x0&&_0x76522[_0x1a93f5(0x265)][0x0]===e['DataStreamTreeTokenType'][_0x1a93f5(0x220)]?0x1:_0x5c765a;return{'startOffset':_0x9c32b8,'endOffset':_0x9c32b8};}function ge(_0x36de29){const _0x2410b3=_0x6be3a5;return _0x36de29[_0x2410b3(0x265)][_0x2410b3(0x1c8)](e[_0x2410b3(0x196)][_0x2410b3(0x238)])?Math[_0x2410b3(0x19b)](0x0,_0x36de29[_0x2410b3(0x265)][_0x2410b3(0x1ea)]-0x1):_0x36de29[_0x2410b3(0x265)][_0x2410b3(0x1ea)];}function _e(_0x28565d,_0x3d5ae8,_0x385554){const _0x329ea2=_0x6be3a5;var _0x4dd9d9;let _0x309816=Math['min'](_0x3d5ae8,_0x385554),_0x3f1b1d=Math['max'](_0x3d5ae8,_0x385554);return!!((_0x4dd9d9=_0x28565d['tables'])!=null&&_0x4dd9d9[_0x329ea2(0x244)](_0x28681a=>_0x309816>_0x28681a[_0x329ea2(0x1fd)]&&_0x309816<_0x28681a[_0x329ea2(0x197)]||_0x3f1b1d>_0x28681a[_0x329ea2(0x1fd)]&&_0x3f1b1d<_0x28681a['endIndex']||_0x309816<=_0x28681a['startIndex']&&_0x3f1b1d>=_0x28681a[_0x329ea2(0x197)]));}function ve(_0x41b201,_0x161e84,_0xc8a56e,_0x198d6d){const _0x34dc52=_0x6be3a5;let _0x4bb856=[..._0x41b201['paragraphs']??[]][_0x34dc52(0x1c7)]((_0x51d0fe,_0x23a0f7)=>_0x51d0fe[_0x34dc52(0x1fd)]-_0x23a0f7[_0x34dc52(0x1fd)]),_0x229fcf=(0x0,e['getParagraphContentStartOffsets'])(_0x41b201),_0x53140f=_0x4bb856['find'](_0x9c3576=>T(_0x41b201,_0x9c3576,_0x198d6d,_0x229fcf)<=_0x161e84&&_0x161e84<=_0x9c3576[_0x34dc52(0x1fd)]),_0x534d00=_0x4bb856[_0x34dc52(0x23d)](_0x55944f=>_0x55944f[_0x34dc52(0x1fd)]>=_0xc8a56e-0x1)??_0x4bb856[_0x4bb856[_0x34dc52(0x1ea)]-0x1];return{'startOffset':_0x53140f?T(_0x41b201,_0x53140f,_0x198d6d,_0x229fcf):_0x161e84,'endOffset':_0x534d00?be(_0x534d00,_0x198d6d):_0xc8a56e};}function ye(_0x3e8109,_0x245dc7){const _0x297135=_0x6be3a5;let _0x236837=[..._0x3e8109['paragraphs']??[]]['sort']((_0x12bb82,_0x26d538)=>_0x12bb82[_0x297135(0x1fd)]-_0x26d538[_0x297135(0x1fd)]),_0x30c9f6=(0x0,e[_0x297135(0x1ad)])(_0x3e8109);return _0x236837[_0x297135(0x23d)](_0x457979=>(_0x30c9f6['get'](_0x457979[_0x297135(0x1fd)])??0x0)<=_0x245dc7&&_0x245dc7<=_0x457979[_0x297135(0x1fd)]);}function T(_0x31c0e1,_0x53a241,_0x2cdf8d,_0x3990d6){const _0x1cade3=_0x6be3a5;let _0x34fc58=(_0x3990d6==null?void 0x0:_0x3990d6['get'](_0x53a241[_0x1cade3(0x1fd)]))??(0x0,e['getParagraphContentStartOffset'])(_0x31c0e1,_0x53a241);return _0x2cdf8d?Math[_0x1cade3(0x19b)](_0x34fc58,_0x2cdf8d[_0x1cade3(0x210)]):_0x34fc58;}function be(_0x4799c0,_0x278303){const _0x1bd903=_0x6be3a5;let _0x1ef336=_0x4799c0[_0x1bd903(0x1fd)]+0x1;return _0x278303?Math[_0x1bd903(0x1e6)](_0x1ef336,_0x278303[_0x1bd903(0x256)]):_0x1ef336;}function xe(_0x28f73d,_0x30044c,_0x5ef72f){const _0x551ef0=_0x6be3a5;let _0x15b2e6=E(_0x28f73d,_0x30044c),_0x293955=E(_0x28f73d,_0x30044c===_0x5ef72f?_0x5ef72f:Math['max'](_0x30044c,_0x5ef72f-0x1));if(_0x15b2e6||_0x293955){if(!_0x15b2e6||!_0x293955||_0x15b2e6[_0x551ef0(0x1bb)]!==_0x293955[_0x551ef0(0x1bb)]||_0x15b2e6[_0x551ef0(0x1ef)]!==_0x293955[_0x551ef0(0x1ef)])throw new _();return _0x15b2e6;}}function E(_0x2593a9,_0x254b3c){const _0x30c8ea=_0x6be3a5;let _0x563eec=_0x2593a9[_0x30c8ea(0x265)],_0xf20618=-0x1;for(let _0x2d1fe5=Math[_0x30c8ea(0x1e6)](_0x254b3c,_0x563eec['length']-0x1);_0x2d1fe5>=0x0;_0x2d1fe5--){let _0x4e76b4=_0x563eec[_0x2d1fe5];if(_0x4e76b4===e[_0x30c8ea(0x196)][_0x30c8ea(0x1f2)])return;if(_0x4e76b4===e[_0x30c8ea(0x196)][_0x30c8ea(0x234)]){_0xf20618=_0x2d1fe5;break;}}if(_0xf20618<0x0)return;let _0x55a7d7=_0x563eec[_0x30c8ea(0x1e1)](e[_0x30c8ea(0x196)][_0x30c8ea(0x1f2)],_0xf20618+0x1);if(!(_0x55a7d7<0x0||_0x254b3c<_0xf20618+0x1||_0x254b3c>_0x55a7d7-0x1))return{'startOffset':_0xf20618+0x1,'endOffset':Math['max'](_0xf20618+0x1,_0x55a7d7-0x1),'startTokenOffset':_0xf20618,'endTokenOffset':_0x55a7d7};}function D(_0x1db6df){return(0x0,e['getBlockRangeInterval'])(_0x1db6df)['endOffset']-0x1;}function Se(_0x46c2fb,_0x11f50b,_0x5947dd,_0x30f325){const _0x10b274=_0x6be3a5;let _0x563e30=D(_0x11f50b),_0x220290=(_0x46c2fb[_0x10b274(0x212)]??[])['find'](_0x351706=>_0x351706[_0x10b274(0x1fd)]===_0x563e30+0x1);if(!_0x220290||_0x30f325!=null&&_0x220290[_0x10b274(0x1fd)]!==_0x30f325||_0x5947dd!=null&&(_0x5947dd<_0x563e30||_0x5947dd>_0x220290[_0x10b274(0x1fd)]+0x1)||_0x46c2fb['dataStream'][_0x220290[_0x10b274(0x1fd)]]!==e[_0x10b274(0x196)][_0x10b274(0x220)])return null;let _0xecffe1=(0x0,e[_0x10b274(0x1bc)])(_0x46c2fb,_0x220290),_0x79083b=_0x46c2fb[_0x10b274(0x265)]['slice'](_0xecffe1,_0x220290[_0x10b274(0x1fd)]);return Array[_0x10b274(0x25c)](_0x79083b)[_0x10b274(0x22f)](_0x2131d8=>_0x2131d8===e['DataStreamTreeTokenType']['BLOCK_END'])?{'paragraph':_0x220290,'endTokenOffset':_0x563e30}:null;}function O(_0x12d497,_0x35522e){const _0x3c0016=_0x6be3a5;var _0x1c4be8;let _0xbcecd5=D(_0x35522e),_0x2bef3a=_0x12d497[_0x3c0016(0x265)][_0xbcecd5+0x1];(_0x2bef3a===e[_0x3c0016(0x196)][_0x3c0016(0x238)]||_0x2bef3a===void 0x0)&&k(_0x12d497,_0xbcecd5+0x1,e[_0x3c0016(0x196)]['PARAGRAPH'],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,e[_0x3c0016(0x230)])(new Set((_0x1c4be8=_0x12d497[_0x3c0016(0x212)])==null?void 0x0:_0x1c4be8[_0x3c0016(0x260)](_0x552f38=>_0x552f38[_0x3c0016(0x24b)])))}]});}function k(_0x5d7ed,_0x49bd3b,_0x3a6c14,_0x1ce8b6={}){const _0x30ee2f=_0x6be3a5;var _0x4e6513,_0xf86741;_0x3a6c14&&(_0x5d7ed[_0x30ee2f(0x265)]=''+_0x5d7ed[_0x30ee2f(0x265)]['slice'](0x0,_0x49bd3b)+_0x3a6c14+_0x5d7ed[_0x30ee2f(0x265)][_0x30ee2f(0x1f9)](_0x49bd3b),Ce(_0x5d7ed,_0x49bd3b,_0x3a6c14[_0x30ee2f(0x1ea)]),(_0x4e6513=_0x1ce8b6['paragraphs'])!=null&&_0x4e6513[_0x30ee2f(0x1ea)]&&(_0x5d7ed[_0x30ee2f(0x212)]=[..._0x5d7ed[_0x30ee2f(0x212)]??[],..._0x1ce8b6[_0x30ee2f(0x212)][_0x30ee2f(0x260)](_0x440f49=>({..._0x440f49,'startIndex':_0x440f49[_0x30ee2f(0x1fd)]+_0x49bd3b}))][_0x30ee2f(0x1c7)]((_0x980b86,_0x415c4a)=>_0x980b86[_0x30ee2f(0x1fd)]-_0x415c4a['startIndex'])),(_0xf86741=_0x1ce8b6[_0x30ee2f(0x237)])!=null&&_0xf86741[_0x30ee2f(0x1ea)]&&(_0x5d7ed[_0x30ee2f(0x237)]=[..._0x5d7ed[_0x30ee2f(0x237)]??[],..._0x1ce8b6[_0x30ee2f(0x237)][_0x30ee2f(0x260)](_0x168821=>({..._0x168821,'startIndex':_0x168821[_0x30ee2f(0x1fd)]+_0x49bd3b,'endIndex':_0x168821[_0x30ee2f(0x197)]+_0x49bd3b}))]['sort']((_0x344452,_0x28bdfd)=>_0x344452[_0x30ee2f(0x1fd)]-_0x28bdfd[_0x30ee2f(0x1fd)])));}function A(_0x58a1c8,_0x59e4c2,_0xe373ce){const _0x20c01c=_0x6be3a5;let _0x2d5a16=_0xe373ce-_0x59e4c2;_0x58a1c8['dataStream']=''+_0x58a1c8['dataStream']['slice'](0x0,_0x59e4c2)+_0x58a1c8[_0x20c01c(0x265)][_0x20c01c(0x1f9)](_0xe373ce),we(_0x58a1c8,_0x59e4c2,_0x2d5a16);}function Ce(_0x34fb7a,_0x569ea9,_0x3248d4){const _0x28dbe7=_0x6be3a5;_0x34fb7a[_0x28dbe7(0x212)]=j(_0x34fb7a[_0x28dbe7(0x212)],_0x569ea9,_0x3248d4),_0x34fb7a[_0x28dbe7(0x227)]=j(_0x34fb7a[_0x28dbe7(0x227)],_0x569ea9,_0x3248d4),_0x34fb7a[_0x28dbe7(0x23a)]=j(_0x34fb7a[_0x28dbe7(0x23a)],_0x569ea9,_0x3248d4),_0x34fb7a[_0x28dbe7(0x1e2)]=Te(_0x34fb7a[_0x28dbe7(0x1e2)],_0x569ea9,_0x3248d4),_0x34fb7a[_0x28dbe7(0x1ae)]=Ee(_0x34fb7a['tables'],_0x569ea9,_0x3248d4),_0x34fb7a[_0x28dbe7(0x1d0)]=N(_0x34fb7a['columnGroups'],_0x569ea9,_0x3248d4),_0x34fb7a[_0x28dbe7(0x24c)]=N(_0x34fb7a[_0x28dbe7(0x24c)],_0x569ea9,_0x3248d4),_0x34fb7a[_0x28dbe7(0x1e8)]=N(_0x34fb7a[_0x28dbe7(0x1e8)],_0x569ea9,_0x3248d4),_0x34fb7a[_0x28dbe7(0x237)]=N(_0x34fb7a[_0x28dbe7(0x237)],_0x569ea9,_0x3248d4);}function we(_0x46ec10,_0x55fb19,_0x98fa3){const _0x3a5af1=_0x6be3a5;var _0x358e17,_0x2c8ead;_0x46ec10[_0x3a5af1(0x212)]=M(_0x46ec10[_0x3a5af1(0x212)],_0x55fb19,_0x98fa3),_0x46ec10[_0x3a5af1(0x227)]=M(_0x46ec10['sectionBreaks'],_0x55fb19,_0x98fa3),_0x46ec10[_0x3a5af1(0x23a)]=M(_0x46ec10[_0x3a5af1(0x23a)],_0x55fb19,_0x98fa3),_0x46ec10[_0x3a5af1(0x1e2)]=(_0x358e17=F((_0x2c8ead=_0x46ec10[_0x3a5af1(0x1e2)])==null?void 0x0:_0x2c8ead['map'](_0x16305a=>({..._0x16305a,'startIndex':_0x16305a['st'],'endIndex':_0x16305a['ed']})),_0x55fb19,_0x98fa3))==null?void 0x0:_0x358e17[_0x3a5af1(0x260)](_0x5e4329=>{let {startIndex:_0x2ce1c9,endIndex:_0x3b921f,..._0x48583b}=_0x5e4329;return{..._0x48583b,'st':_0x2ce1c9,'ed':_0x3b921f};}),_0x46ec10[_0x3a5af1(0x1ae)]=F(_0x46ec10['tables'],_0x55fb19,_0x98fa3),_0x46ec10[_0x3a5af1(0x1d0)]=P(_0x46ec10[_0x3a5af1(0x1d0)],_0x55fb19,_0x98fa3),_0x46ec10[_0x3a5af1(0x24c)]=P(_0x46ec10['customRanges'],_0x55fb19,_0x98fa3),_0x46ec10['customDecorations']=P(_0x46ec10[_0x3a5af1(0x1e8)],_0x55fb19,_0x98fa3),_0x46ec10[_0x3a5af1(0x237)]=P(_0x46ec10['blockRanges'],_0x55fb19,_0x98fa3);}function j(_0xfdb0c3,_0x1dd6cb,_0x12d601){const _0x291518=_0x6be3a5;return _0xfdb0c3==null?void 0x0:_0xfdb0c3[_0x291518(0x260)](_0x576edd=>_0x576edd['startIndex']>=_0x1dd6cb?{..._0x576edd,'startIndex':_0x576edd[_0x291518(0x1fd)]+_0x12d601}:_0x576edd);}function M(_0x2486c0,_0x2f3ba4,_0x5b427c){const _0x2b17ba=_0x6be3a5;let _0x1e1903=_0x2f3ba4+_0x5b427c;return _0x2486c0==null?void 0x0:_0x2486c0['map'](_0x4f274a=>_0x4f274a[_0x2b17ba(0x1fd)]>=_0x2f3ba4&&_0x4f274a['startIndex']<_0x1e1903?null:_0x4f274a[_0x2b17ba(0x1fd)]>=_0x1e1903?{..._0x4f274a,'startIndex':_0x4f274a[_0x2b17ba(0x1fd)]-_0x5b427c}:_0x4f274a)[_0x2b17ba(0x1d8)](_0x231e5c=>_0x231e5c!=null);}function _0x205d(){const _0x52aadf=['handler','_config','getParagraphFollowingBlockOffset','keys','indentEnd','filter','codes','124016dMhHSD','6895480DZgvaR','insert-new','_injector','disposeWithMe','docs-code.command.insert-below','removeOp','indexOf','textRuns','nextMetadata','keepLines','defineProperty','min','buildCancelEmptyCodeParagraphActions','customDecorations','indentStart','length','start','set','DocsCodeModel','getBody','endTokenOffset','config','SetDocsCodeConfigMutation','TABLE_CELL_END','isHeaderFooterSelection','unitId','function','reduce','add','stringify','slice','DependentOn','getOwnPropertyDescriptor','decorate','startIndex','CommandType','BLOCK_START','commandService','containsInteriorInsertionOffset','3190726ARqxAA','docs-code.config','normalizeDocsCodeConfig','BooleanNumber','Inject','clear','previousDocumentData','docs-code.command.consume-boundary-delete','TRUE','docs-code.command.update','right','ICommandService','_resources','UniverLicensePlugin','startOffset','Subject','paragraphs','default','insertLength','left','dispose','UNIVER_DOC','paragraphStyle','getSingleDataStreamChange','range','keepNext','1320876zGPbba','serialize','textStyle','normalizeDocsCodeMetadataResource','PARAGRAPH','_setResource','DocumentBlockRangeType','type','fromEntries','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','version','sectionBreaks','getSnapshot','insertionMode','Document\x20body\x20is\x20required','body','UniverDocsPlugin','getTextRanges','DocsCodeInsertBelowCommand','every','createParagraphId','next','delete','deserialize','TABLE_CELL_START','cursorOffset','IConfigService','blockRanges','SECTION_BREAK','intersectsOperationalIntervals','customBlocks','iterator','isCodeBoundaryDelete','find','toPrimitive','metadata','removeCode','documentData','_docsCodeModel','_change$','some','COMMAND','onStarting','nextDocumentData','model','42joBrsU','docs-code.command.insert','paragraphId','customRanges','docs-code.command.unwrap','setConfig','CODE','_resourceManagerService','docs-code.command.remove','forEach','insert','getUnit','DocsCodeConsumeBoundaryDeleteCommand','endOffset','syncExecuteCommand','constructor','parse','setCodeConfig','spaceBelow','from','removeUnit','compose','TextX','map','blockId','RemoveDocsCodeConfigMutation','258435lJkWWV','merge','dataStream','paragraph','spaceAbove','Injector','registerCommand','10550466pGPneW','DataStreamTreeTokenType','endIndex','selectionManager','getCurrentUnitOfType','docs-code.mutation.set-config','max','widowControl','object','getContentInsertRange','JSONX','1.4.0','75dipZWO','DocSelectionManagerService','paragraphStartIndex','get','IUniverInstanceService','DOCS_CODE_PLUGIN','MUTATION','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','call','DocsCodeInsertCommand','push','javascript','getParagraphContentStartOffsets','tables','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','getUnitId','743537LNzFVB','symbol','editOp','isArray','pluginName','Plugin','DOC_CODE_PLUGIN','bullet','UniverInstanceType','containsStreamIndex','startTokenOffset','getParagraphContentStartOffset','DocsCodeCancelEmptyParagraphCommand','shiftExclusiveRangeOnInsert','getInstance','blockType','_commandService','Disposable','Module','packageName','BLOCK_END','insertOp','sort','endsWith','direction','UniverDocsCodePlugin','prototype','string','deleteLength','docs-code.command.cancel-empty-paragraph','getBlockRangeInterval','columnGroups','shiftInclusiveRangeOnInsert','_initResource'];_0x205d=function(){return _0x52aadf;};return _0x205d();}function Te(_0x3a7a9d,_0x1b2e5c,_0x30a0cd){const _0x41ffbd=_0x6be3a5;return _0x3a7a9d==null?void 0x0:_0x3a7a9d[_0x41ffbd(0x260)](_0x324708=>_0x324708['st']>=_0x1b2e5c?{..._0x324708,'st':_0x324708['st']+_0x30a0cd,'ed':_0x324708['ed']+_0x30a0cd}:_0x324708['ed']>_0x1b2e5c?{..._0x324708,'ed':_0x324708['ed']+_0x30a0cd}:_0x324708);}function N(_0x56170c,_0x2dc0ef,_0x208096){const _0x1fb164=_0x6be3a5;return _0x56170c==null?void 0x0:_0x56170c[_0x1fb164(0x260)](_0x381606=>(0x0,e[_0x1fb164(0x1d1)])(_0x381606,_0x2dc0ef,_0x208096));}function Ee(_0x547f73,_0x33d490,_0x1c8124){const _0x36b069=_0x6be3a5;return _0x547f73==null?void 0x0:_0x547f73['map'](_0x1d564f=>(0x0,e[_0x36b069(0x1be)])(_0x1d564f,_0x33d490,_0x1c8124));}function P(_0x469ca2,_0x24be2a,_0x5884c4){const _0x3059bb=_0x6be3a5;return _0x469ca2==null?void 0x0:_0x469ca2[_0x3059bb(0x260)](_0x5db21d=>(0x0,e['shiftInclusiveRangeOnDelete'])(_0x5db21d,_0x24be2a,_0x5884c4))[_0x3059bb(0x1d8)](_0x34fc6d=>_0x34fc6d!=null);}function F(_0x110855,_0x1a7955,_0x124e67){const _0x16ff72=_0x6be3a5;return _0x110855==null?void 0x0:_0x110855['map'](_0x3343ff=>(0x0,e['shiftExclusiveRangeOnDelete'])(_0x3343ff,_0x1a7955,_0x124e67))[_0x16ff72(0x1d8)](_0x326c63=>_0x326c63!=null);}const I={'id':_0x6be3a5(0x1df),'type':e['CommandType']['COMMAND'],'handler':_0x23ee07=>{const _0x520345=_0x6be3a5;var _0x3fae0d;if((0x0,n[_0x520345(0x1f3)])(W(_0x23ee07)))return!0x1;let _0x23f25b=(0x0,n[_0x520345(0x19e)])(_0x23ee07);if(_0x23f25b)return _0x23ee07[_0x520345(0x1a4)](e[_0x520345(0x20d)])[_0x520345(0x257)](R['id'],{'startOffset':_0x23f25b[_0x520345(0x210)],'endOffset':_0x23f25b[_0x520345(0x256)],'insertionMode':'insert-new','unitId':_0x23f25b[_0x520345(0x1f4)]});let _0x34a669=je(_0x23ee07);if(!_0x34a669)return!0x1;let _0x52a2be=(_0x3fae0d=_0x23ee07[_0x520345(0x1a4)](e[_0x520345(0x1a5)])[_0x520345(0x199)](e[_0x520345(0x1b9)][_0x520345(0x217)]))==null?void 0x0:_0x3fae0d['getBody'](),_0x520efb=_0x52a2be?(0x0,e[_0x520345(0x1d5)])(_0x52a2be,_0x34a669):_0x34a669[_0x520345(0x1fd)]+0x1;return _0x23ee07[_0x520345(0x1a4)](e[_0x520345(0x20d)])[_0x520345(0x257)](R['id'],{'startOffset':_0x520efb,'endOffset':_0x520efb});}},L={'id':_0x6be3a5(0x209),'type':e[_0x6be3a5(0x1fe)][_0x6be3a5(0x245)],'handler':()=>!0x0},R={'id':_0x6be3a5(0x24a),'type':e[_0x6be3a5(0x1fe)][_0x6be3a5(0x245)],'handler':(_0x6b1462,_0x5ab0eb)=>{const _0x34fc1e=_0x6be3a5;let _0x3df9a6=U(_0x6b1462,_0x5ab0eb==null?void 0x0:_0x5ab0eb['unitId']);if(!_0x3df9a6)return!0x1;let _0x547b41=W(_0x6b1462);if((0x0,n['isHeaderFooterSelection'])(_0x547b41))return!0x1;let _0x338666=_0x3df9a6[_0x34fc1e(0x248)][_0x34fc1e(0x21d)](_0x3df9a6[_0x34fc1e(0x1f4)]),_0x56f08f=Oe(_0x5ab0eb,_0x547b41),_0x18a2c8=ke(_0x3df9a6['previousDocumentData'],_0x56f08f);if(_0x18a2c8){if(_0x18a2c8['blockType']!==e['DocumentBlockRangeType'][_0x34fc1e(0x24f)])return!0x1;let _0x1117eb=v({'blockId':_0x18a2c8[_0x34fc1e(0x261)],'documentData':_0x3df9a6['previousDocumentData'],'metadata':_0x338666});if(!_0x1117eb)return!0x1;let _0x379944=J(_0x3df9a6[_0x34fc1e(0x200)],_0x3df9a6[_0x34fc1e(0x198)],_0x3df9a6['unitId'],_0x3df9a6[_0x34fc1e(0x208)],_0x1117eb['nextDocumentData'],R['id'],_0x1117eb[_0x34fc1e(0x235)]);return _0x379944&&_0x1117eb[_0x34fc1e(0x1e3)]&&_0x3df9a6[_0x34fc1e(0x248)][_0x34fc1e(0x233)](_0x3df9a6[_0x34fc1e(0x1f4)],_0x1117eb[_0x34fc1e(0x1e3)]),_0x379944;}let _0x406496=(_0x5ab0eb==null?void 0x0:_0x5ab0eb[_0x34fc1e(0x261)])??(0x0,e['generateRandomId'])(0x6),_0xcb2be8;try{_0xcb2be8=ee({'blockId':_0x406496,'config':_0x5ab0eb==null?void 0x0:_0x5ab0eb[_0x34fc1e(0x1f0)],'documentData':_0x3df9a6['previousDocumentData'],'endOffset':_0x56f08f==null?void 0x0:_0x56f08f[_0x34fc1e(0x256)],'insertionMode':_0x5ab0eb==null?void 0x0:_0x5ab0eb[_0x34fc1e(0x229)],'metadata':_0x338666,'startOffset':_0x56f08f==null?void 0x0:_0x56f08f[_0x34fc1e(0x210)]});}catch(_0x28a922){if(_0x28a922 instanceof _)return!0x1;throw _0x28a922;}let _0x13cafb=J(_0x3df9a6['commandService'],_0x3df9a6[_0x34fc1e(0x198)],_0x3df9a6[_0x34fc1e(0x1f4)],_0x3df9a6[_0x34fc1e(0x208)],_0xcb2be8['nextDocumentData'],R['id'],_0xcb2be8['cursorOffset']);return _0x13cafb&&_0xcb2be8[_0x34fc1e(0x1e3)]&&_0x3df9a6[_0x34fc1e(0x248)][_0x34fc1e(0x233)](_0x3df9a6[_0x34fc1e(0x1f4)],_0xcb2be8['nextMetadata']),_0x13cafb;}},z={'id':_0x6be3a5(0x20b),'type':e[_0x6be3a5(0x1fe)][_0x6be3a5(0x245)],'handler':(_0x33d7ab,_0x21631d)=>{const _0x1cd09d=_0x6be3a5;if(!_0x21631d)return!0x1;let _0x4d9191=U(_0x33d7ab,_0x21631d['unitId']);if(!_0x4d9191)return!0x1;let _0x51d917=ie({'blockId':_0x21631d['blockId'],'config':_0x21631d[_0x1cd09d(0x1f0)],'documentData':_0x4d9191[_0x1cd09d(0x208)],'metadata':_0x4d9191['model']['serialize'](_0x4d9191[_0x1cd09d(0x1f4)])});return _0x51d917[_0x1cd09d(0x1e3)]&&_0x4d9191[_0x1cd09d(0x248)]['deserialize'](_0x4d9191[_0x1cd09d(0x1f4)],_0x51d917[_0x1cd09d(0x1e3)]),!0x0;}},De={'id':'docs-code.command.exit','type':e[_0x6be3a5(0x1fe)][_0x6be3a5(0x245)],'handler':(_0x125d75,_0x5323b4)=>B[_0x6be3a5(0x1d3)](_0x125d75,_0x5323b4)},B={'id':_0x6be3a5(0x24d),'type':e[_0x6be3a5(0x1fe)][_0x6be3a5(0x245)],'handler':(_0x19d4d7,_0x4ca81)=>{const _0x4b1d45=_0x6be3a5;if(!_0x4ca81)return!0x1;let _0xa047af=U(_0x19d4d7,_0x4ca81==null?void 0x0:_0x4ca81['unitId']);if(!_0xa047af)return!0x1;let _0x391654=v({'blockId':_0x4ca81[_0x4b1d45(0x261)],'documentData':_0xa047af[_0x4b1d45(0x208)],'metadata':_0xa047af['model'][_0x4b1d45(0x21d)](_0xa047af['unitId'])});if(!_0x391654)return!0x1;let _0x4022c0=J(_0xa047af[_0x4b1d45(0x200)],_0xa047af[_0x4b1d45(0x198)],_0xa047af[_0x4b1d45(0x1f4)],_0xa047af[_0x4b1d45(0x208)],_0x391654[_0x4b1d45(0x247)],B['id'],_0x391654['cursorOffset']);return _0x4022c0&&_0x391654['nextMetadata']&&_0xa047af[_0x4b1d45(0x248)][_0x4b1d45(0x233)](_0xa047af['unitId'],_0x391654['nextMetadata']),_0x4022c0;}},V={'id':_0x6be3a5(0x251),'type':e[_0x6be3a5(0x1fe)][_0x6be3a5(0x245)],'handler':(_0x336f1e,_0x43f0a2)=>{const _0x15a24c=_0x6be3a5;if(!_0x43f0a2)return!0x1;let _0x3a9cc3=U(_0x336f1e,_0x43f0a2==null?void 0x0:_0x43f0a2[_0x15a24c(0x1f4)]);if(!_0x3a9cc3)return!0x1;let _0x8cdef6=ae({'blockId':_0x43f0a2[_0x15a24c(0x261)],'documentData':_0x3a9cc3[_0x15a24c(0x208)],'metadata':_0x3a9cc3['model'][_0x15a24c(0x21d)](_0x3a9cc3[_0x15a24c(0x1f4)])});if(!_0x8cdef6)return!0x1;let _0x4da970=J(_0x3a9cc3[_0x15a24c(0x200)],_0x3a9cc3['selectionManager'],_0x3a9cc3['unitId'],_0x3a9cc3[_0x15a24c(0x208)],_0x8cdef6['nextDocumentData'],V['id'],_0x8cdef6[_0x15a24c(0x235)]);return _0x4da970&&_0x8cdef6[_0x15a24c(0x1e3)]&&_0x3a9cc3['model']['deserialize'](_0x3a9cc3[_0x15a24c(0x1f4)],_0x8cdef6[_0x15a24c(0x1e3)]),_0x4da970;}},H={'id':_0x6be3a5(0x1ce),'type':e['CommandType'][_0x6be3a5(0x245)],'handler':(_0xf18ac9,_0xcd7230)=>{const _0xe013ff=_0x6be3a5;var _0x42980d;let _0x35aaa7=U(_0xf18ac9,_0xcd7230==null?void 0x0:_0xcd7230[_0xe013ff(0x1f4)]);if(!_0x35aaa7)return!0x1;let _0x5c3129=(_0xcd7230==null?void 0x0:_0xcd7230[_0xe013ff(0x235)])??((_0x42980d=W(_0xf18ac9))==null?void 0x0:_0x42980d[_0xe013ff(0x210)]);if(_0x5c3129==null)return!0x1;let _0x13fbb5=y({'cursorOffset':_0x5c3129,'documentData':_0x35aaa7[_0xe013ff(0x208)],'paragraphStartIndex':_0xcd7230==null?void 0x0:_0xcd7230[_0xe013ff(0x1a3)]});return _0x13fbb5?J(_0x35aaa7[_0xe013ff(0x200)],_0x35aaa7[_0xe013ff(0x198)],_0x35aaa7[_0xe013ff(0x1f4)],_0x35aaa7[_0xe013ff(0x208)],_0x13fbb5[_0xe013ff(0x247)],H['id'],_0x13fbb5[_0xe013ff(0x235)]):!0x1;}};function U(_0x756c07,_0x36b60e){const _0xe7da64=_0x6be3a5;let _0x2b8c1a=_0x756c07[_0xe7da64(0x1a4)](e[_0xe7da64(0x1a5)]),_0x32e326=_0x36b60e?_0x2b8c1a[_0xe7da64(0x254)](_0x36b60e,e[_0xe7da64(0x1b9)][_0xe7da64(0x217)]):_0x2b8c1a[_0xe7da64(0x199)](e[_0xe7da64(0x1b9)][_0xe7da64(0x217)]);return _0x32e326?{'commandService':_0x756c07[_0xe7da64(0x1a4)](e[_0xe7da64(0x20d)]),'model':_0x756c07[_0xe7da64(0x1a4)](p),'previousDocumentData':_0x32e326[_0xe7da64(0x228)](),'selectionManager':_0x756c07[_0xe7da64(0x1a4)](n[_0xe7da64(0x1a2)]),'unitId':_0x32e326[_0xe7da64(0x1b0)]()}:null;}function W(_0x1cf09b){const _0x488d68=_0x6be3a5;var _0x30ce71;return(_0x30ce71=_0x1cf09b[_0x488d68(0x1a4)](n[_0x488d68(0x1a2)])[_0x488d68(0x22d)]())==null?void 0x0:_0x30ce71[0x0];}function Oe(_0x513fd3,_0x515e80){const _0x351a6a=_0x6be3a5;let _0x2183cf=(_0x513fd3==null?void 0x0:_0x513fd3[_0x351a6a(0x210)])??(_0x515e80==null?void 0x0:_0x515e80['startOffset']),_0x343585=(_0x513fd3==null?void 0x0:_0x513fd3['endOffset'])??(_0x515e80==null?void 0x0:_0x515e80[_0x351a6a(0x256)]);if(_0x2183cf!=null&&_0x343585!=null)return{'endOffset':Math[_0x351a6a(0x19b)](_0x2183cf,_0x343585),'startOffset':Math[_0x351a6a(0x1e6)](_0x2183cf,_0x343585)};}function ke(_0xe01f80,_0x20a5ca){const _0x519a1a=_0x6be3a5;var _0x3f3810;if(!_0x20a5ca)return;let _0x74e3c7=Ae(_0x20a5ca);return(_0x3f3810=_0xe01f80[_0x519a1a(0x22b)])==null||(_0x3f3810=_0x3f3810[_0x519a1a(0x237)])==null?void 0x0:_0x3f3810[_0x519a1a(0x23d)](_0x136a44=>{const _0x38827a=_0x519a1a;let _0x3f05ca=(0x0,e[_0x38827a(0x1cf)])(_0x136a44);return _0x20a5ca[_0x38827a(0x210)]===_0x20a5ca[_0x38827a(0x256)]?(0x0,e[_0x38827a(0x201)])(_0x3f05ca,_0x74e3c7):(0x0,e[_0x38827a(0x1ba)])(_0x3f05ca,_0x74e3c7);});}function Ae(_0x2edb9c){const _0x1e9312=_0x6be3a5;return _0x2edb9c[_0x1e9312(0x210)]===_0x2edb9c['endOffset']?_0x2edb9c[_0x1e9312(0x210)]:_0x2edb9c[_0x1e9312(0x210)]+0x1;}function je(_0x1dbefb){const _0xc87dde=_0x6be3a5;let _0x153b48=W(_0x1dbefb);if(!_0x153b48)return null;let _0x25b02a=_0x1dbefb['get'](e[_0xc87dde(0x1a5)])[_0xc87dde(0x199)](e['UniverInstanceType'][_0xc87dde(0x217)]),_0x2682df=_0x25b02a==null?void 0x0:_0x25b02a[_0xc87dde(0x1ee)]();return _0x2682df?e['BuildTextUtils'][_0xc87dde(0x21a)]['getParagraphsInRange'](_0x153b48,_0x2682df[_0xc87dde(0x212)]??[],_0x2682df[_0xc87dde(0x265)]??'')[0x0]??null:null;}function Me(_0x2c09ef,_0xf2a043){const _0x44fd5f=_0x6be3a5;let _0x4e6341=_0x2c09ef['body'],_0x58daf2=_0xf2a043[_0x44fd5f(0x22b)],_0x3ede60=(0x0,e[_0x44fd5f(0x219)])(_0x4e6341,_0x58daf2);return[_0x3ede60&&_0x58daf2?Ne(_0x58daf2,_0x3ede60):null,_0x3ede60?null:Pe(_0x4e6341,_0x58daf2)]['filter'](Boolean)[_0x44fd5f(0x1f6)]((_0x547121,_0x29bda5)=>e[_0x44fd5f(0x19f)][_0x44fd5f(0x25e)](_0x547121,_0x29bda5),null);}function Ne(_0x252d91,_0x330efd){const _0x280831=_0x6be3a5;let _0x2aa30e=new e[(_0x280831(0x25f))]();return _0x2aa30e['retain'](_0x330efd['start']),_0x330efd[_0x280831(0x214)]>0x0&&_0x2aa30e[_0x280831(0x253)](_0x330efd[_0x280831(0x214)],(0x0,e['getBodySliceForTextXAction'])(_0x252d91,_0x330efd[_0x280831(0x1eb)],_0x330efd[_0x280831(0x1eb)]+_0x330efd[_0x280831(0x214)],!0x1)),_0x330efd['deleteLength']>0x0&&_0x2aa30e['delete'](_0x330efd[_0x280831(0x1cd)]),e[_0x280831(0x19f)]['getInstance']()[_0x280831(0x1b3)](_0x2aa30e[_0x280831(0x21d)](),[_0x280831(0x22b)]);}function Pe(_0x4b8078,_0x13ca8f){const _0x3c8312=_0x6be3a5;let _0x1a3d4b=[],_0x4ca063=_0x4b8078?G(_0x4b8078):void 0x0,_0x4f9e7f=_0x13ca8f?G(_0x13ca8f):void 0x0;for(let _0x4bc2bf of Fe)K(e[_0x3c8312(0x19f)][_0x3c8312(0x1bf)](),[_0x3c8312(0x22b),_0x4bc2bf],_0x4ca063==null?void 0x0:_0x4ca063[_0x4bc2bf],_0x4f9e7f==null?void 0x0:_0x4f9e7f[_0x4bc2bf],_0x1a3d4b);return _0x1a3d4b[_0x3c8312(0x1f6)]((_0x26b375,_0x1629a9)=>e[_0x3c8312(0x19f)][_0x3c8312(0x25e)](_0x26b375,_0x1629a9),null);}const Fe=[_0x6be3a5(0x212),'sectionBreaks',_0x6be3a5(0x1ae),_0x6be3a5(0x1d0),_0x6be3a5(0x237),_0x6be3a5(0x23a),_0x6be3a5(0x24c),_0x6be3a5(0x1e8),_0x6be3a5(0x1e2)];function G(_0x41da23){return _0x41da23;}function K(_0xe83203,_0x17509e,_0x22e9fd,_0x44b2ae,_0x4cc4eb){const _0xaa21c4=_0x6be3a5;q(_0x22e9fd,_0x44b2ae)||(_0x22e9fd==null?_0x4cc4eb['push'](_0xe83203[_0xaa21c4(0x1c6)](_0x17509e,_0x44b2ae)):_0x44b2ae==null?_0x4cc4eb['push'](_0xe83203[_0xaa21c4(0x1e0)](_0x17509e,_0x22e9fd)):Array[_0xaa21c4(0x1b4)](_0x22e9fd)&&Array['isArray'](_0x44b2ae)?Ie(_0xe83203,_0x17509e,_0x22e9fd,_0x44b2ae,_0x4cc4eb):Le(_0x22e9fd)&&Le(_0x44b2ae)?new Set([...Object[_0xaa21c4(0x1d6)](_0x22e9fd),...Object[_0xaa21c4(0x1d6)](_0x44b2ae)])[_0xaa21c4(0x252)](_0x529579=>{K(_0xe83203,[..._0x17509e,_0x529579],_0x22e9fd[_0x529579],_0x44b2ae[_0x529579],_0x4cc4eb);}):_0x4cc4eb['push'](_0xe83203['replaceOp'](_0x17509e,_0x22e9fd,_0x44b2ae)));}function Ie(_0x361c38,_0x15715b,_0xfb55ee,_0x57ee2e,_0x34e3b3){const _0x593903=_0x6be3a5;if(_0xfb55ee[_0x593903(0x1ea)]===_0x57ee2e['length']){_0xfb55ee[_0x593903(0x252)]((_0x5c4f0b,_0x2039b7)=>K(_0x361c38,[..._0x15715b,_0x2039b7],_0x5c4f0b,_0x57ee2e[_0x2039b7],_0x34e3b3));return;}let _0x5c6a08=0x0;for(;_0x5c6a08<_0xfb55ee[_0x593903(0x1ea)]&&_0x5c6a08<_0x57ee2e['length']&&q(_0xfb55ee[_0x5c6a08],_0x57ee2e[_0x5c6a08]);)_0x5c6a08++;let _0x2cb5d0=_0xfb55ee[_0x593903(0x1ea)]-0x1,_0x128572=_0x57ee2e[_0x593903(0x1ea)]-0x1;for(;_0x2cb5d0>=_0x5c6a08&&_0x128572>=_0x5c6a08&&q(_0xfb55ee[_0x2cb5d0],_0x57ee2e[_0x128572]);)_0x2cb5d0--,_0x128572--;for(let _0x2bfacb=_0x2cb5d0;_0x2bfacb>=_0x5c6a08;_0x2bfacb--)_0x34e3b3['push'](_0x361c38['removeOp']([..._0x15715b,_0x2bfacb],_0xfb55ee[_0x2bfacb]));for(let _0x535f8b=_0x5c6a08;_0x535f8b<=_0x128572;_0x535f8b++)_0x34e3b3[_0x593903(0x1ab)](_0x361c38[_0x593903(0x1c6)]([..._0x15715b,_0x535f8b],_0x57ee2e[_0x535f8b]));}function Le(_0x4b81e3){const _0x32cef8=_0x6be3a5;return typeof _0x4b81e3==_0x32cef8(0x19d)&&!!_0x4b81e3&&!Array['isArray'](_0x4b81e3);}function q(_0x3308e0,_0x373aa8){const _0x3090de=_0x6be3a5;return JSON[_0x3090de(0x1f8)](_0x3308e0)===JSON[_0x3090de(0x1f8)](_0x373aa8);}function J(_0x157a97,_0x8bf9d3,_0xc367be,_0x31388e,_0xe5816d,_0x2bc6d7,_0x5b1691){const _0x4bdd27=_0x6be3a5;let _0x1f6dc1=Me(_0x31388e,_0xe5816d);return _0x1f6dc1?!!_0x157a97[_0x4bdd27(0x257)](n['RichTextEditingMutation']['id'],{'unitId':_0xc367be,'actions':_0x1f6dc1,'textRanges':[{'startOffset':_0x5b1691,'endOffset':_0x5b1691,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x2bc6d7}):(_0x8bf9d3['replaceDocRanges']([{'startOffset':_0x5b1691,'endOffset':_0x5b1691}],{'unitId':_0xc367be,'subUnitId':_0xc367be},!0x1),!0x0);}const Y=_0x6be3a5(0x1b7);var Re='@univerjs-pro/docs-code',ze=_0x6be3a5(0x1a0);const Be={};function X(_0x5cf270,_0x7c9f9d){return function(_0x8cd942,_0x724076){_0x7c9f9d(_0x8cd942,_0x724076,_0x5cf270);};}function Z(_0x1d994d,_0x56e06f,_0x24e52f,_0x49cbbf){const _0x4b2fe6=_0x6be3a5;var _0x51b30f=arguments[_0x4b2fe6(0x1ea)],_0x31e18b=_0x51b30f<0x3?_0x56e06f:_0x49cbbf===null?_0x49cbbf=Object[_0x4b2fe6(0x1fb)](_0x56e06f,_0x24e52f):_0x49cbbf,_0x36f4b0;if(typeof Reflect=='object'&&typeof Reflect[_0x4b2fe6(0x1fc)]==_0x4b2fe6(0x1f5))_0x31e18b=Reflect[_0x4b2fe6(0x1fc)](_0x1d994d,_0x56e06f,_0x24e52f,_0x49cbbf);else{for(var _0x26cfd8=_0x1d994d['length']-0x1;_0x26cfd8>=0x0;_0x26cfd8--)(_0x36f4b0=_0x1d994d[_0x26cfd8])&&(_0x31e18b=(_0x51b30f<0x3?_0x36f4b0(_0x31e18b):_0x51b30f>0x3?_0x36f4b0(_0x56e06f,_0x24e52f,_0x31e18b):_0x36f4b0(_0x56e06f,_0x24e52f))||_0x31e18b);}return _0x51b30f>0x3&&_0x31e18b&&Object['defineProperty'](_0x56e06f,_0x24e52f,_0x31e18b),_0x31e18b;}let Q=class extends e[_0x6be3a5(0x1c2)]{constructor(_0xaec875,_0x12859a){const _0x2bda0c=_0x6be3a5;super(),this[_0x2bda0c(0x250)]=_0xaec875,this[_0x2bda0c(0x242)]=_0x12859a,this[_0x2bda0c(0x1d2)]();}[_0x6be3a5(0x1d2)](){const _0x5e83ab=_0x6be3a5;this[_0x5e83ab(0x1de)](this['_resourceManagerService']['registerPluginResource']({'pluginName':Y,'businesses':[e[_0x5e83ab(0x1b9)][_0x5e83ab(0x217)]],'toJson':_0x4e8a58=>JSON[_0x5e83ab(0x1f8)](this[_0x5e83ab(0x242)]['serialize'](_0x4e8a58)),'parseJson':_0x20dbb5=>o(JSON[_0x5e83ab(0x259)](_0x20dbb5)),'onLoad':(_0x467873,_0x4980d7)=>this[_0x5e83ab(0x242)][_0x5e83ab(0x233)](_0x467873,_0x4980d7),'onUnLoad':_0x358419=>this[_0x5e83ab(0x242)][_0x5e83ab(0x25d)](_0x358419)}));}};Q=Z([X(0x0,e['IResourceManagerService']),X(0x1,(0x0,e['Inject'])(p))],Q);let $=class extends e[_0x6be3a5(0x1b6)]{constructor(_0x5d81de=Be,_0x276a21,_0x532714,_0x56dbe4){const _0x1dfd37=_0x6be3a5;super(),this[_0x1dfd37(0x1d4)]=_0x5d81de,this['_injector']=_0x276a21,this['_commandService']=_0x532714,this['_configService']=_0x56dbe4;let {..._0x10a9e7}=(0x0,e[_0x1dfd37(0x264)])({},Be,this['_config']);this['_configService'][_0x1dfd37(0x24e)](_0x1dfd37(0x203),_0x10a9e7);}[_0x6be3a5(0x246)](){const _0x422e19=_0x6be3a5;this[_0x422e19(0x1dd)][_0x422e19(0x1f7)]([p]),this[_0x422e19(0x1dd)][_0x422e19(0x1f7)]([Q]),this[_0x422e19(0x1dd)][_0x422e19(0x1a4)](p),this[_0x422e19(0x1dd)][_0x422e19(0x1a4)](Q),[R,I,z,B,V,De,H,L,m,h][_0x422e19(0x252)](_0x5d9818=>this[_0x422e19(0x1de)](this[_0x422e19(0x1c1)][_0x422e19(0x269)](_0x5d9818)));}};f($,_0x6be3a5(0x1b5),Y),f($,_0x6be3a5(0x1c4),Re),f($,_0x6be3a5(0x226),ze),f($,_0x6be3a5(0x223),e[_0x6be3a5(0x1b9)][_0x6be3a5(0x217)]),$=Z([(0x0,e[_0x6be3a5(0x1fa)])(r[_0x6be3a5(0x20f)],n[_0x6be3a5(0x22c)]),X(0x1,(0x0,e[_0x6be3a5(0x206)])(e[_0x6be3a5(0x268)])),X(0x2,e['ICommandService']),X(0x3,e[_0x6be3a5(0x236)])],$),exports[_0x6be3a5(0x1a6)]=Y,exports[_0x6be3a5(0x1bd)]=H,exports[_0x6be3a5(0x255)]=L,exports[_0x6be3a5(0x22e)]=I,exports[_0x6be3a5(0x1aa)]=R,exports[_0x6be3a5(0x1ed)]=p,exports['DocsCodeRemoveCommand']=V,exports['DocsCodeUnwrapCommand']=B,exports['DocsCodeUpdateCommand']=z,exports[_0x6be3a5(0x262)]=h,exports[_0x6be3a5(0x1f1)]=m,Object[_0x6be3a5(0x1e5)](exports,_0x6be3a5(0x1ca),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x6be3a5(0x1e7)]=y,exports[_0x6be3a5(0x23c)]=se,exports[_0x6be3a5(0x204)]=a,exports[_0x6be3a5(0x21f)]=o;
|
|
1
|
+
const _0x2b54fe=_0x47ea;(function(_0x40c7ed,_0x5b969a){const _0xb23d8e=_0x47ea,_0x3cc504=_0x40c7ed();while(!![]){try{const _0x262a1e=-parseInt(_0xb23d8e(0x150))/0x1*(-parseInt(_0xb23d8e(0xaf))/0x2)+-parseInt(_0xb23d8e(0xd1))/0x3*(-parseInt(_0xb23d8e(0x135))/0x4)+-parseInt(_0xb23d8e(0x16e))/0x5*(-parseInt(_0xb23d8e(0x116))/0x6)+-parseInt(_0xb23d8e(0x142))/0x7+parseInt(_0xb23d8e(0xe2))/0x8*(parseInt(_0xb23d8e(0x109))/0x9)+-parseInt(_0xb23d8e(0xd8))/0xa*(parseInt(_0xb23d8e(0x16f))/0xb)+parseInt(_0xb23d8e(0x164))/0xc;if(_0x262a1e===_0x5b969a)break;else _0x3cc504['push'](_0x3cc504['shift']());}catch(_0x459f68){_0x3cc504['push'](_0x3cc504['shift']());}}}(_0x5e3d,0xb728e),Object[_0x2b54fe(0xb0)](exports,Symbol[_0x2b54fe(0x123)],{'value':_0x2b54fe(0xbf)}));let e=require('@univerjs/core'),t=require('rxjs'),n=require('@univerjs/docs'),r=require('@univerjs-pro/license');const i={'language':'javascript','showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function a(_0x50d7fd){return{...i,..._0x50d7fd};}function o(_0x4429ad){const _0xc96f0e=_0x2b54fe;let _0x21f5ed=(_0x4429ad==null?void 0x0:_0x4429ad[_0xc96f0e(0xb9)])??{};return{'codes':Object['fromEntries'](Object[_0xc96f0e(0x12f)](_0x21f5ed)[_0xc96f0e(0x157)](([_0x4af47f,_0x105701])=>[_0x4af47f,a(_0x105701)]))};}function s(_0x5016b6,_0x10aa98,_0x90f7fa){const _0x4dc99e=_0x2b54fe;let _0x1fa19b=o(_0x5016b6);return _0x1fa19b['codes'][_0x10aa98]=a({..._0x1fa19b[_0x4dc99e(0xb9)][_0x10aa98],..._0x90f7fa}),_0x1fa19b;}function c(_0x1fb807,_0x429a24){const _0x161616=_0x2b54fe;let _0x81433c=o(_0x1fb807);return delete _0x81433c[_0x161616(0xb9)][_0x429a24],_0x81433c;}function l(_0x516736){'@babel/helpers - typeof';const _0x249f69=_0x2b54fe;return l=typeof Symbol==_0x249f69(0xe1)&&typeof Symbol['iterator']==_0x249f69(0x11c)?function(_0x47721b){return typeof _0x47721b;}:function(_0x1b0827){const _0x2f1ab2=_0x249f69;return _0x1b0827&&typeof Symbol==_0x2f1ab2(0xe1)&&_0x1b0827['constructor']===Symbol&&_0x1b0827!==Symbol[_0x2f1ab2(0x14f)]?_0x2f1ab2(0x11c):typeof _0x1b0827;},l(_0x516736);}function u(_0x12e883,_0x5d9f70){const _0xadd246=_0x2b54fe;if(l(_0x12e883)!='object'||!_0x12e883)return _0x12e883;var _0x28bce8;if(typeof Symbol<'u'&&(_0x28bce8=_0x12e883[Symbol['toPrimitive']])!==void 0x0){var _0xb5a50b=_0x28bce8[_0xadd246(0xb5)](_0x12e883,_0x5d9f70||'default');if(l(_0xb5a50b)!=_0xadd246(0x132))return _0xb5a50b;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5d9f70===_0xadd246(0x179)?String:Number)(_0x12e883);}function d(_0x3a6c8b){const _0x362479=_0x2b54fe;var _0x4969d1=u(_0x3a6c8b,_0x362479(0x179));return l(_0x4969d1)==_0x362479(0x11c)?_0x4969d1:_0x4969d1+'';}function f(_0x21aaab,_0x2ed4b1,_0x3c7d9b){return(_0x2ed4b1=d(_0x2ed4b1))in _0x21aaab?Object['defineProperty'](_0x21aaab,_0x2ed4b1,{'value':_0x3c7d9b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x21aaab[_0x2ed4b1]=_0x3c7d9b,_0x21aaab;}var p=class extends e[_0x2b54fe(0xc9)]{constructor(..._0x114907){const _0xc49099=_0x2b54fe;super(..._0x114907),f(this,_0xc49099(0xdc),new Map()),f(this,_0xc49099(0x151),new t[(_0xc49099(0x137))]()),f(this,_0xc49099(0xb7),this[_0xc49099(0x151)][_0xc49099(0x125)]());}['getCodeConfig'](_0x558435,_0xcb2db0){const _0x1374d3=_0x2b54fe;return o(this[_0x1374d3(0xdc)][_0x1374d3(0x153)](_0x558435))['codes'][_0xcb2db0];}[_0x2b54fe(0x141)](_0x50417b,_0x18d729,_0x2c71f4){const _0x4e4f04=_0x2b54fe;this[_0x4e4f04(0x103)](_0x50417b,_0x18d729,s(this['_resources'][_0x4e4f04(0x153)](_0x50417b),_0x18d729,_0x2c71f4));}[_0x2b54fe(0x126)](_0x506a3a,_0x111b93){const _0x1b89b8=_0x2b54fe;this[_0x1b89b8(0x103)](_0x506a3a,_0x111b93,c(this['_resources'][_0x1b89b8(0x153)](_0x506a3a),_0x111b93));}[_0x2b54fe(0xfa)](_0x3ea1bb){const _0x20373c=_0x2b54fe;return o(this[_0x20373c(0xdc)][_0x20373c(0x153)](_0x3ea1bb));}['deserialize'](_0x402f7d,_0x1c2a40){const _0x2e4de0=_0x2b54fe;this[_0x2e4de0(0xdc)][_0x2e4de0(0xc0)](_0x402f7d,o(_0x1c2a40)),this[_0x2e4de0(0x151)][_0x2e4de0(0xd2)]({'unitId':_0x402f7d});}[_0x2b54fe(0x10c)](_0x1f850d){const _0x1ad533=_0x2b54fe;this[_0x1ad533(0xdc)][_0x1ad533(0xc7)](_0x1f850d),this['_change$'][_0x1ad533(0xd2)]({'unitId':_0x1f850d});}[_0x2b54fe(0x169)](){const _0x2a3f88=_0x2b54fe;super[_0x2a3f88(0x169)](),this['_resources']['clear'](),this[_0x2a3f88(0x151)][_0x2a3f88(0x16d)]();}[_0x2b54fe(0x103)](_0x2224cc,_0xcc3ec0,_0x4afba5){const _0x240d36=_0x2b54fe;this['_resources'][_0x240d36(0xc0)](_0x2224cc,_0x4afba5),this['_change$'][_0x240d36(0xd2)]({'unitId':_0x2224cc,'blockId':_0xcc3ec0});}};const m={'id':'docs-code.mutation.set-config','type':e[_0x2b54fe(0xf0)]['MUTATION'],'handler':(_0x3efc97,_0x2f8a5b)=>!(_0x2f8a5b!=null&&_0x2f8a5b[_0x2b54fe(0x111)])||!_0x2f8a5b[_0x2b54fe(0xc1)]?!0x1:(_0x3efc97[_0x2b54fe(0x153)](p)[_0x2b54fe(0x141)](_0x2f8a5b['unitId'],_0x2f8a5b[_0x2b54fe(0xc1)],_0x2f8a5b[_0x2b54fe(0x113)]),!0x0)},h={'id':_0x2b54fe(0x12c),'type':e[_0x2b54fe(0xf0)][_0x2b54fe(0xe5)],'handler':(_0x5e4690,_0x3e232d)=>!(_0x3e232d!=null&&_0x3e232d[_0x2b54fe(0x111)])||!_0x3e232d['blockId']?!0x1:(_0x5e4690[_0x2b54fe(0x153)](p)['removeCode'](_0x3e232d['unitId'],_0x3e232d['blockId']),!0x0)},g='monospace';function _0x47ea(_0x42b5d5,_0x4ddaa2){_0x42b5d5=_0x42b5d5-0xa9;const _0x5e3d38=_0x5e3d();let _0x47ea7e=_0x5e3d38[_0x42b5d5];return _0x47ea7e;}var _=class extends Error{constructor(_0x485bb8=_0x2b54fe(0x158)){super(_0x485bb8);}};function ee(_0x50f354){const _0x3f0aa1=_0x2b54fe;var _0x1b6f42;let _0x2afa0f=S(_0x50f354[_0x3f0aa1(0x121)]),_0x2987f0=w(_0x2afa0f),_0x1c7b36=ne(_0x50f354['startOffset'],_0x50f354[_0x3f0aa1(0xd4)]),_0x4cd8d5=_0x1c7b36?(_0x1b6f42=_0x2987f0[_0x3f0aa1(0x136)])==null?void 0x0:_0x1b6f42[_0x3f0aa1(0x14c)](_0x4564cb=>{const _0x50aaaa=_0x3f0aa1;let _0x5910ca=(0x0,e['getBlockRangeInterval'])(_0x4564cb);return _0x5910ca['startOffset']===_0x1c7b36[_0x50aaaa(0xfd)]&&_0x5910ca[_0x50aaaa(0xd4)]===_0x1c7b36['endOffset'];}):void 0x0,{startOffset:_0x20f93c,endOffset:_0x157672}=_0x4cd8d5?_0x1c7b36:me(_0x2987f0,_0x50f354[_0x3f0aa1(0xfd)],_0x50f354[_0x3f0aa1(0xd4)],_0x50f354[_0x3f0aa1(0xec)]);if(!_0x4cd8d5&&re(_0x2987f0,_0x20f93c,_0x157672))throw new _(_0x3f0aa1(0x159));let _0x49f635=_e(_0x2987f0,_0x20f93c,_0x157672),_0x454551=(_0x4cd8d5==null?void 0x0:_0x4cd8d5[_0x3f0aa1(0xc1)])??_0x50f354[_0x3f0aa1(0xc1)],_0x298090=s(_0x50f354[_0x3f0aa1(0x147)],_0x454551,{...i,..._0x50f354[_0x3f0aa1(0x113)]});if(_0x4cd8d5)return _0x4cd8d5[_0x3f0aa1(0xc2)]=e[_0x3f0aa1(0xa9)][_0x3f0aa1(0x105)],te(_0x2987f0,_0x20f93c,_0x157672),le(_0x2987f0,_0x20f93c,_0x157672,_0x49f635),O(_0x2987f0,_0x4cd8d5),{'nextDocumentData':_0x2afa0f,'nextMetadata':_0x298090,'cursorOffset':_0x20f93c+0x1};if(_0x20f93c===_0x157672){var _0x40ee5e,_0x18475d;let _0x207954=''+e[_0x3f0aa1(0x176)]['BLOCK_START']+e['DataStreamTreeTokenType'][_0x3f0aa1(0x156)]+e[_0x3f0aa1(0x176)][_0x3f0aa1(0xcf)];k(_0x2987f0,_0x20f93c,_0x207954,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e[_0x3f0aa1(0x12b)])(new Set((_0x40ee5e=_0x2987f0[_0x3f0aa1(0x129)])==null?void 0x0:_0x40ee5e[_0x3f0aa1(0x157)](_0x5b1f43=>_0x5b1f43[_0x3f0aa1(0x166)]))),'paragraphStyle':x(!0x0,!0x0,_0x49f635)}],'blockRanges':[{'blockId':_0x454551,'blockType':e[_0x3f0aa1(0xa9)][_0x3f0aa1(0x105)],'startIndex':0x0,'endIndex':_0x207954['length']-0x1}]});let _0x50179a=(_0x18475d=_0x2987f0[_0x3f0aa1(0x136)])==null?void 0x0:_0x18475d[_0x3f0aa1(0x14c)](_0x109b40=>_0x109b40[_0x3f0aa1(0xc1)]===_0x454551);return _0x50179a&&O(_0x2987f0,_0x50179a),{'nextDocumentData':_0x2afa0f,'nextMetadata':_0x298090,'cursorOffset':_0x20f93c+0x1};}k(_0x2987f0,_0x157672,e[_0x3f0aa1(0x176)][_0x3f0aa1(0xcf)]),k(_0x2987f0,_0x20f93c,e['DataStreamTreeTokenType'][_0x3f0aa1(0xf1)]),le(_0x2987f0,_0x20f93c,_0x157672+0x1,_0x49f635);let _0x482cf3={'blockId':_0x454551,'blockType':e[_0x3f0aa1(0xa9)][_0x3f0aa1(0x105)],'startIndex':_0x20f93c,'endIndex':_0x157672+0x1};return _0x2987f0[_0x3f0aa1(0x136)]=[..._0x2987f0[_0x3f0aa1(0x136)]??[],_0x482cf3][_0x3f0aa1(0x115)]((_0x2de65b,_0xae5f9b)=>_0x2de65b[_0x3f0aa1(0x168)]-_0xae5f9b['startIndex']),O(_0x2987f0,_0x482cf3),{'nextDocumentData':_0x2afa0f,'nextMetadata':_0x298090,'cursorOffset':_0x20f93c+0x1};}function te(_0x21d8a0,_0x3dd253,_0x1ba041){const _0x4b71a1=_0x2b54fe;(_0x21d8a0[_0x4b71a1(0x129)]??[])[_0x4b71a1(0x124)](_0x380071=>_0x380071[_0x4b71a1(0x168)]>_0x3dd253&&_0x380071[_0x4b71a1(0x168)]<_0x1ba041)[_0x4b71a1(0xaa)](_0x1cddd0=>{const _0x45f081=_0x4b71a1;let _0x481788={..._0x1cddd0[_0x45f081(0xd9)]??{}};delete _0x481788[_0x45f081(0xb1)],delete _0x481788[_0x45f081(0x162)],_0x1cddd0['paragraphStyle']=_0x481788;});}function ne(_0x901cc0,_0x1776fa){const _0x970219=_0x2b54fe;return _0x901cc0==null||_0x1776fa==null||_0x901cc0===_0x1776fa?null:{'startOffset':Math[_0x970219(0xe8)](_0x901cc0,_0x1776fa),'endOffset':Math['max'](_0x901cc0,_0x1776fa)};}function re(_0x18b0c0,_0x10e3a3,_0x486a4c){const _0x28715e=_0x2b54fe;return(_0x18b0c0[_0x28715e(0x136)]??[])[_0x28715e(0x167)](_0x275f1d=>{const _0x34aae3=_0x28715e;let _0x167278=(0x0,e[_0x34aae3(0x122)])(_0x275f1d);return _0x10e3a3===_0x486a4c?(0x0,e[_0x34aae3(0x102)])(_0x167278,_0x10e3a3):(0x0,e[_0x34aae3(0xc5)])(_0x167278,{'startOffset':_0x10e3a3,'endOffset':_0x486a4c});});}function ie(_0x5ef9e4){const _0x3e045e=_0x2b54fe;return{'nextDocumentData':S(_0x5ef9e4['documentData']),'nextMetadata':s(_0x5ef9e4[_0x3e045e(0x147)],_0x5ef9e4[_0x3e045e(0xc1)],_0x5ef9e4[_0x3e045e(0x113)]),'cursorOffset':0x0};}function v(_0x2497b6){const _0x3a8c2e=_0x2b54fe;let _0x50b7e3=S(_0x2497b6[_0x3a8c2e(0x121)]),_0x2efbf5=w(_0x50b7e3),_0x254ed0=b(_0x2efbf5,_0x2497b6[_0x3a8c2e(0xc1)]);if(!_0x254ed0)return null;let _0x50a0cb=fe(_0x2efbf5,_0x254ed0);return{'nextDocumentData':_0x50b7e3,'nextMetadata':c(_0x2497b6[_0x3a8c2e(0x147)],_0x2497b6['blockId']),'cursorOffset':_0x50a0cb};}function ae(_0x3e1a82){const _0x27a383=_0x2b54fe;var _0x526d8f;let _0x1dcf25=S(_0x3e1a82[_0x27a383(0x121)]),_0x4771cc=w(_0x1dcf25),_0x2b2965=b(_0x4771cc,_0x3e1a82[_0x27a383(0xc1)]);if(!_0x2b2965)return null;let _0x54c266=(0x0,e['getBlockRangeInterval'])(_0x2b2965);return A(_0x4771cc,_0x54c266[_0x27a383(0xfd)],_0x54c266[_0x27a383(0xd4)]),_0x4771cc['blockRanges']=(_0x526d8f=_0x4771cc[_0x27a383(0x136)])==null?void 0x0:_0x526d8f['filter'](_0x5d9d23=>_0x5d9d23['blockId']!==_0x3e1a82[_0x27a383(0xc1)]),{'nextDocumentData':_0x1dcf25,'nextMetadata':c(_0x3e1a82[_0x27a383(0x147)],_0x3e1a82[_0x27a383(0xc1)]),'cursorOffset':_0x2b2965['startIndex']};}function y(_0x3995e6){const _0x2ba8df=_0x2b54fe;let _0x586c39=S(_0x3995e6[_0x2ba8df(0x121)]),_0x1b954b=w(_0x586c39),_0x5e67f9=ce(_0x1b954b,_0x3995e6['cursorOffset']);return _0x5e67f9&&oe(_0x586c39,_0x1b954b,_0x5e67f9,_0x3995e6[_0x2ba8df(0xeb)],_0x3995e6['paragraphStartIndex'])||null;}function oe(_0x477bd0,_0x5a222c,_0x2b3905,_0x2751dd,_0x3012ff){const _0x1778d4=_0x2b54fe;let _0xaa595a=Se(_0x5a222c,_0x2b3905,_0x2751dd,_0x3012ff);if(!_0xaa595a)return null;let _0x3e9fff=_0xaa595a[_0x1778d4(0xea)]-0x1;return A(_0x5a222c,_0xaa595a['paragraph'][_0x1778d4(0x168)],_0xaa595a['paragraph'][_0x1778d4(0x168)]+0x1),{'nextDocumentData':_0x477bd0,'cursorOffset':_0x3e9fff};}function b(_0xf0e5a3,_0x2a31d2){const _0x3f9d40=_0x2b54fe;var _0x5ba7b0;return _0xf0e5a3==null||(_0x5ba7b0=_0xf0e5a3[_0x3f9d40(0x136)])==null?void 0x0:_0x5ba7b0['find'](_0x5b93ad=>_0x5b93ad[_0x3f9d40(0xc2)]===e[_0x3f9d40(0xa9)][_0x3f9d40(0x105)]&&_0x5b93ad[_0x3f9d40(0xc1)]===_0x2a31d2);}function se(_0x24517e){const _0xc7eda2=_0x2b54fe;let _0x2a3afe=_0x24517e[_0xc7eda2(0x121)][_0xc7eda2(0xdd)];if(!_0x2a3afe)return!0x1;let _0x8480ef=_0x24517e[_0xc7eda2(0x177)]===_0xc7eda2(0x154)?_0x24517e['cursorOffset']-0x1:_0x24517e[_0xc7eda2(0xeb)],_0x21c04=_0x24517e[_0xc7eda2(0x177)]===_0xc7eda2(0xe3)?_0x24517e[_0xc7eda2(0xeb)]+0x1:_0x8480ef;return(_0x2a3afe[_0xc7eda2(0x136)]??[])[_0xc7eda2(0x167)](_0x1409dc=>_0x1409dc[_0xc7eda2(0xc2)]===e['DocumentBlockRangeType'][_0xc7eda2(0x105)]?_0x8480ef===_0x1409dc['startIndex']||_0x8480ef===_0x1409dc[_0xc7eda2(0x163)]||_0x21c04===_0x1409dc[_0xc7eda2(0x168)]||_0x21c04===_0x1409dc['endIndex']:!0x1);}function ce(_0x5145ca,_0x151aea){const _0x20e53d=_0x2b54fe;var _0x441c13;return(_0x441c13=_0x5145ca[_0x20e53d(0x136)])==null?void 0x0:_0x441c13[_0x20e53d(0x14c)](_0xa33aee=>{const _0x3b3798=_0x20e53d;let _0x3d16b3=D(_0xa33aee);return _0xa33aee[_0x3b3798(0xc2)]===e['DocumentBlockRangeType'][_0x3b3798(0x105)]&&_0xa33aee['startIndex']<=_0x151aea&&_0x151aea<=_0x3d16b3+0x2;});}function x(_0x3edb1b,_0x1fb1b1,_0x1ba143=!0x1){const _0x1ab11d=_0x2b54fe;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':e['BooleanNumber'][_0x1ab11d(0x15b)],'keepNext':_0x1fb1b1?e[_0x1ab11d(0xab)]['FALSE']:e[_0x1ab11d(0xab)][_0x1ab11d(0x15b)],'widowControl':e[_0x1ab11d(0xab)][_0x1ab11d(0x15b)],..._0x3edb1b&&_0x1ba143?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':g,'fs':0xc}};}function le(_0x15ad9a,_0x3adee2,_0x335553,_0x1564af=!0x1){const _0x1679c2=_0x2b54fe;let _0x3aadbc=(_0x15ad9a[_0x1679c2(0x129)]??[])[_0x1679c2(0x124)](_0x4397f8=>_0x4397f8['startIndex']>_0x3adee2&&_0x4397f8['startIndex']<_0x335553);_0x3aadbc[_0x1679c2(0xaa)]((_0x3eeeb8,_0x25611e)=>{const _0x2d3bd6=_0x1679c2;_0x3eeeb8[_0x2d3bd6(0xd9)]={..._0x3eeeb8[_0x2d3bd6(0xd9)]??{},...x(_0x25611e===0x0,_0x25611e===_0x3aadbc[_0x2d3bd6(0x101)]-0x1,_0x1564af)};});}function ue(_0x17594c){const _0x3bce11=_0x2b54fe;var _0x338c5d,_0x320033;let _0x3fe45c={..._0x17594c??{}};return delete _0x3fe45c[_0x3bce11(0x155)],delete _0x3fe45c['indentStart'],delete _0x3fe45c[_0x3bce11(0xb1)],delete _0x3fe45c[_0x3bce11(0x162)],delete _0x3fe45c[_0x3bce11(0x172)],delete _0x3fe45c[_0x3bce11(0x13f)],delete _0x3fe45c['widowControl'],((_0x338c5d=_0x3fe45c['textStyle'])==null?void 0x0:_0x338c5d['ff'])===g&&((_0x320033=_0x3fe45c[_0x3bce11(0x128)])==null?void 0x0:_0x320033['fs'])===0xc&&delete _0x3fe45c[_0x3bce11(0x128)],_0x3fe45c;}function de(_0x3ce9f5,_0x16f274){const _0xfe81a=_0x2b54fe;let _0xec5cf9=D(_0x16f274);return(_0x3ce9f5['paragraphs']??[])[_0xfe81a(0x124)](_0x3ccf21=>_0x3ccf21['startIndex']>_0x16f274[_0xfe81a(0x168)]&&_0x3ccf21[_0xfe81a(0x168)]<_0xec5cf9);}function fe(_0x34ec10,_0x4886c3){const _0x169343=_0x2b54fe;var _0x5cb9c9;let _0x2d16de=D(_0x4886c3);return de(_0x34ec10,_0x4886c3)[_0x169343(0xaa)](_0x2c60d1=>{const _0x57902c=_0x169343;_0x2c60d1[_0x57902c(0xd9)]=ue(_0x2c60d1[_0x57902c(0xd9)]);}),A(_0x34ec10,_0x2d16de,_0x2d16de+0x1),A(_0x34ec10,_0x4886c3[_0x169343(0x168)],_0x4886c3[_0x169343(0x168)]+0x1),_0x34ec10['blockRanges']=(_0x5cb9c9=_0x34ec10[_0x169343(0x136)])==null?void 0x0:_0x5cb9c9[_0x169343(0x124)](_0x42adb7=>_0x42adb7[_0x169343(0xc1)]!==_0x4886c3[_0x169343(0xc1)]),_0x4886c3[_0x169343(0x168)];}function S(_0x16b7ef){const _0x968c29=_0x2b54fe;return{..._0x16b7ef,'body':_0x16b7ef['body']?pe(_0x16b7ef['body']):_0x16b7ef[_0x968c29(0xdd)]};}function pe(_0x47650b){const _0x401708=_0x2b54fe;var _0x2d3b5f,_0x3a4c65,_0x9acfe1,_0x456c9d,_0x1f5890,_0x270566,_0x82c38f,_0x5ceaae,_0x5def3e;return{..._0x47650b,'paragraphs':(_0x2d3b5f=_0x47650b[_0x401708(0x129)])==null?void 0x0:_0x2d3b5f[_0x401708(0x157)](_0x5c3973=>({..._0x5c3973,'bullet':C(_0x5c3973[_0x401708(0xb3)]),'paragraphStyle':C(_0x5c3973[_0x401708(0xd9)])})),'sectionBreaks':(_0x3a4c65=_0x47650b[_0x401708(0xcc)])==null?void 0x0:_0x3a4c65[_0x401708(0x157)](_0x1ed8e9=>({..._0x1ed8e9})),'textRuns':(_0x9acfe1=_0x47650b['textRuns'])==null?void 0x0:_0x9acfe1[_0x401708(0x157)](_0x25b2de=>({..._0x25b2de})),'tables':(_0x456c9d=_0x47650b['tables'])==null?void 0x0:_0x456c9d[_0x401708(0x157)](_0x439a80=>({..._0x439a80})),'columnGroups':(_0x1f5890=_0x47650b[_0x401708(0x175)])==null?void 0x0:_0x1f5890[_0x401708(0x157)](_0x148c3c=>{const _0x329c14=_0x401708;var _0x48d298;return{..._0x148c3c,'columns':(_0x48d298=_0x148c3c[_0x329c14(0xfc)])==null?void 0x0:_0x48d298[_0x329c14(0x157)](_0x3bd59f=>C(_0x3bd59f))};}),'blockRanges':(_0x270566=_0x47650b[_0x401708(0x136)])==null?void 0x0:_0x270566['map'](_0xd7b9c4=>({..._0xd7b9c4})),'customRanges':(_0x82c38f=_0x47650b['customRanges'])==null?void 0x0:_0x82c38f['map'](_0x5752fa=>({..._0x5752fa})),'customDecorations':(_0x5ceaae=_0x47650b['customDecorations'])==null?void 0x0:_0x5ceaae['map'](_0x5cfa7b=>({..._0x5cfa7b})),'customBlocks':(_0x5def3e=_0x47650b['customBlocks'])==null?void 0x0:_0x5def3e[_0x401708(0x157)](_0x17cd5f=>({..._0x17cd5f}))};}function C(_0x1f18d3){const _0x2ca3f3=_0x2b54fe;return Array[_0x2ca3f3(0x133)](_0x1f18d3)?_0x1f18d3['map'](_0x441601=>C(_0x441601)):!_0x1f18d3||typeof _0x1f18d3!=_0x2ca3f3(0x132)?_0x1f18d3:Object['fromEntries'](Object[_0x2ca3f3(0x12f)](_0x1f18d3)['map'](([_0x44a67c,_0x11c4a8])=>[_0x44a67c,C(_0x11c4a8)]));}function w(_0xff0e47){const _0x4e5575=_0x2b54fe;if(!_0xff0e47[_0x4e5575(0xdd)])throw Error(_0x4e5575(0x145));return _0xff0e47[_0x4e5575(0xdd)];}function me(_0x6c47dc,_0x47009e,_0x21d296,_0x463527='convert-paragraph'){const _0xeae5b5=_0x2b54fe;if(_0x47009e==null||_0x21d296==null){let _0x177065=ge(_0x6c47dc);return{'startOffset':_0x177065,'endOffset':_0x177065};}let _0x10568a=Math['min'](_0x47009e,_0x21d296),_0xcfe8cf=Math[_0xeae5b5(0x12e)](_0x47009e,_0x21d296),_0x25b1ae=xe(_0x6c47dc,_0x10568a,_0xcfe8cf);return _0x10568a===_0xcfe8cf?_0x463527===_0xeae5b5(0xcd)?{'startOffset':_0x10568a,'endOffset':_0xcfe8cf}:he(_0x6c47dc,_0x10568a,_0x25b1ae):ve(_0x6c47dc,_0x10568a,_0xcfe8cf,_0x25b1ae);}function he(_0x44ad7c,_0xf05741,_0x4af865){const _0x55bd82=_0x2b54fe;let _0x50b697=ye(_0x44ad7c,_0xf05741);if(_0x50b697){let _0x3ef1d5=T(_0x44ad7c,_0x50b697,_0x4af865);if(_0x3ef1d5<_0x50b697[_0x55bd82(0x168)])return{'startOffset':_0x3ef1d5,'endOffset':_0x4af865?Math[_0x55bd82(0xe8)](_0x50b697['startIndex']+0x1,_0x4af865[_0x55bd82(0xd4)]):_0x50b697['startIndex']+0x1};}let _0x10c772=_0xf05741===0x0&&_0x44ad7c[_0x55bd82(0x127)][0x0]===e[_0x55bd82(0x176)]['PARAGRAPH']?0x1:_0xf05741;return{'startOffset':_0x10c772,'endOffset':_0x10c772};}function _0x5e3d(){const _0x5c15da=['customDecorations','columns','startOffset','previousDocumentData','docs-code.command.update','getTextRanges','length','containsInteriorInsertionOffset','_setResource','nextMetadata','CODE','replaceDocRanges','type','setConfig','711kqwZma','_config','DOCS_CODE_PLUGIN','removeUnit','slice','indexOf','COMMAND','UniverLicensePlugin','unitId','getUnitId','config','docs-code.command.exit','sort','1381320OzzaiT','_initResource','from','selectionManager','BuildTextUtils','generateRandomId','symbol','getInstance','DocsCodeInsertBelowCommand','docs-code.command.unwrap','SECTION_BREAK','documentData','getBlockRangeInterval','toStringTag','filter','asObservable','removeCode','dataStream','textStyle','paragraphs','getContentInsertRange','createParagraphId','docs-code.mutation.remove-config','getBodySliceForTextXAction','max','entries','containsStreamIndex','endsWith','object','isArray','insertOp','53120LVhzup','blockRanges','Subject','shiftExclusiveRangeOnInsert','DocsCodeRemoveCommand','disposeWithMe','insertLength','DependentOn','DocsCodeConsumeBoundaryDeleteCommand','DocsCodeModel','keepNext','deserialize','setCodeConfig','9426151PSRPEj','shiftInclusiveRangeOnDelete','getOwnPropertyDescriptor','Document\x20body\x20is\x20required','DocsCodeInsertCommand','metadata','ICommandService','version','reduce','startTokenOffset','find','TABLE_CELL_START','getParagraphContentStartOffsets','prototype','2ZCbHGb','_change$','deleteLength','get','left','indentEnd','PARAGRAPH','map','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','syncExecuteCommand','TRUE','keys','getSingleDataStreamChange','commandService','stringify','registerCommand','docs-code.command.consume-boundary-delete','spaceBelow','endIndex','12811992ygYTBA','buildCancelEmptyCodeParagraphActions','paragraphId','some','startIndex','dispose','shiftExclusiveRangeOnDelete','_commandService','pluginName','complete','5YnmysT','3531mSRkOI','retain','TABLE_CELL_END','keepLines','UniverDocsCodePlugin','DocSelectionManagerService','columnGroups','DataStreamTreeTokenType','direction','Inject','string','DocumentBlockRangeType','forEach','BooleanNumber','RemoveDocsCodeConfigMutation','decorate','replaceOp','602038ooxMWq','defineProperty','spaceAbove','docs-code.command.remove','bullet','docs-code.command.cancel-empty-paragraph','call','getUnit','change$','_configService','codes','getBody','nextDocumentData','paragraphStartIndex','normalizeDocsCodeConfig','DocsCodeCancelEmptyParagraphCommand','Module','set','blockId','blockType','removeOp','_resourceManagerService','intersectsOperationalIntervals','isHeaderFooterSelection','delete','RichTextEditingMutation','Disposable','Injector','registerPluginResource','sectionBreaks','insert-new','UniverInstanceType','BLOCK_END','_docsCodeModel','243phZFdF','next','customRanges','endOffset','add','customBlocks','getParagraphContentStartOffset','38380AFyaiG','paragraphStyle','SetDocsCodeConfigMutation','getCurrentUnitOfType','_resources','body','UNIVER_DOC','model','DocsCodeUnwrapCommand','function','35768SGKpwv','right','packageName','MUTATION','JSONX','tables','min','UniverDocsPlugin','endTokenOffset','cursorOffset','insertionMode','textRuns','push','IUniverInstanceService','CommandType','BLOCK_START','DOC_CODE_PLUGIN','parse','insert','range','IConfigService','_injector','compose','docs-code.config','serialize'];_0x5e3d=function(){return _0x5c15da;};return _0x5e3d();}function ge(_0x272925){const _0x5794ea=_0x2b54fe;return _0x272925[_0x5794ea(0x127)][_0x5794ea(0x131)](e[_0x5794ea(0x176)][_0x5794ea(0x120)])?Math[_0x5794ea(0x12e)](0x0,_0x272925[_0x5794ea(0x127)][_0x5794ea(0x101)]-0x1):_0x272925[_0x5794ea(0x127)][_0x5794ea(0x101)];}function _e(_0x54d018,_0x33ecd7,_0x5befa3){const _0x752691=_0x2b54fe;var _0x36317f;let _0x5266b1=Math[_0x752691(0xe8)](_0x33ecd7,_0x5befa3),_0x592498=Math[_0x752691(0x12e)](_0x33ecd7,_0x5befa3);return!!((_0x36317f=_0x54d018[_0x752691(0xe7)])!=null&&_0x36317f[_0x752691(0x167)](_0x57c7f6=>_0x5266b1>_0x57c7f6[_0x752691(0x168)]&&_0x5266b1<_0x57c7f6[_0x752691(0x163)]||_0x592498>_0x57c7f6['startIndex']&&_0x592498<_0x57c7f6[_0x752691(0x163)]||_0x5266b1<=_0x57c7f6[_0x752691(0x168)]&&_0x592498>=_0x57c7f6[_0x752691(0x163)]));}function ve(_0x38f84f,_0x509737,_0x8e6bea,_0xba1de8){const _0x54ac2e=_0x2b54fe;let _0x1aa876=[..._0x38f84f['paragraphs']??[]][_0x54ac2e(0x115)]((_0x5cc406,_0x13ddba)=>_0x5cc406['startIndex']-_0x13ddba['startIndex']),_0x4e61e8=(0x0,e['getParagraphContentStartOffsets'])(_0x38f84f),_0x200b67=_0x1aa876['find'](_0x2f15ac=>T(_0x38f84f,_0x2f15ac,_0xba1de8,_0x4e61e8)<=_0x509737&&_0x509737<=_0x2f15ac[_0x54ac2e(0x168)]),_0x69a795=_0x1aa876['find'](_0x1d54c2=>_0x1d54c2[_0x54ac2e(0x168)]>=_0x8e6bea-0x1)??_0x1aa876[_0x1aa876[_0x54ac2e(0x101)]-0x1];return{'startOffset':_0x200b67?T(_0x38f84f,_0x200b67,_0xba1de8,_0x4e61e8):_0x509737,'endOffset':_0x69a795?be(_0x69a795,_0xba1de8):_0x8e6bea};}function ye(_0x1473f0,_0x5f0c53){const _0xce6cfa=_0x2b54fe;let _0x1844f6=[..._0x1473f0[_0xce6cfa(0x129)]??[]]['sort']((_0x22d5f5,_0x32c4f6)=>_0x22d5f5[_0xce6cfa(0x168)]-_0x32c4f6[_0xce6cfa(0x168)]),_0x431b36=(0x0,e[_0xce6cfa(0x14e)])(_0x1473f0);return _0x1844f6[_0xce6cfa(0x14c)](_0x276335=>(_0x431b36[_0xce6cfa(0x153)](_0x276335[_0xce6cfa(0x168)])??0x0)<=_0x5f0c53&&_0x5f0c53<=_0x276335['startIndex']);}function T(_0x57178d,_0x5af22c,_0x3f9030,_0x435fb2){const _0x51355a=_0x2b54fe;let _0x2a3e4e=(_0x435fb2==null?void 0x0:_0x435fb2[_0x51355a(0x153)](_0x5af22c[_0x51355a(0x168)]))??(0x0,e[_0x51355a(0xd7)])(_0x57178d,_0x5af22c);return _0x3f9030?Math[_0x51355a(0x12e)](_0x2a3e4e,_0x3f9030[_0x51355a(0xfd)]):_0x2a3e4e;}function be(_0xdda18a,_0x4afe24){const _0x146f8b=_0x2b54fe;let _0xc96d80=_0xdda18a['startIndex']+0x1;return _0x4afe24?Math[_0x146f8b(0xe8)](_0xc96d80,_0x4afe24[_0x146f8b(0xd4)]):_0xc96d80;}function xe(_0x49ebc5,_0x2622b9,_0x3a670d){const _0x5cfbf5=_0x2b54fe;let _0x30b238=E(_0x49ebc5,_0x2622b9),_0x5c4ab7=E(_0x49ebc5,_0x2622b9===_0x3a670d?_0x3a670d:Math[_0x5cfbf5(0x12e)](_0x2622b9,_0x3a670d-0x1));if(_0x30b238||_0x5c4ab7){if(!_0x30b238||!_0x5c4ab7||_0x30b238[_0x5cfbf5(0x14b)]!==_0x5c4ab7[_0x5cfbf5(0x14b)]||_0x30b238['endTokenOffset']!==_0x5c4ab7[_0x5cfbf5(0xea)])throw new _();return _0x30b238;}}function E(_0xb809be,_0x330df1){const _0x3f59e3=_0x2b54fe;let _0x51137e=_0xb809be[_0x3f59e3(0x127)],_0x1c09d1=-0x1;for(let _0x1bf44d=Math[_0x3f59e3(0xe8)](_0x330df1,_0x51137e['length']-0x1);_0x1bf44d>=0x0;_0x1bf44d--){let _0x39d098=_0x51137e[_0x1bf44d];if(_0x39d098===e[_0x3f59e3(0x176)][_0x3f59e3(0x171)])return;if(_0x39d098===e['DataStreamTreeTokenType'][_0x3f59e3(0x14d)]){_0x1c09d1=_0x1bf44d;break;}}if(_0x1c09d1<0x0)return;let _0x451343=_0x51137e[_0x3f59e3(0x10e)](e['DataStreamTreeTokenType'][_0x3f59e3(0x171)],_0x1c09d1+0x1);if(!(_0x451343<0x0||_0x330df1<_0x1c09d1+0x1||_0x330df1>_0x451343-0x1))return{'startOffset':_0x1c09d1+0x1,'endOffset':Math[_0x3f59e3(0x12e)](_0x1c09d1+0x1,_0x451343-0x1),'startTokenOffset':_0x1c09d1,'endTokenOffset':_0x451343};}function D(_0x321022){const _0x35d40f=_0x2b54fe;return(0x0,e[_0x35d40f(0x122)])(_0x321022)[_0x35d40f(0xd4)]-0x1;}function Se(_0x1d4b85,_0x2a28a0,_0x1d11c2,_0x16fcb1){const _0x42bd51=_0x2b54fe;let _0x5e9220=D(_0x2a28a0),_0x4324ce=(_0x1d4b85[_0x42bd51(0x129)]??[])['find'](_0x1668d9=>_0x1668d9[_0x42bd51(0x168)]===_0x5e9220+0x1);if(!_0x4324ce||_0x16fcb1!=null&&_0x4324ce[_0x42bd51(0x168)]!==_0x16fcb1||_0x1d11c2!=null&&(_0x1d11c2<_0x5e9220||_0x1d11c2>_0x4324ce['startIndex']+0x1)||_0x1d4b85[_0x42bd51(0x127)][_0x4324ce[_0x42bd51(0x168)]]!==e[_0x42bd51(0x176)]['PARAGRAPH'])return null;let _0x34e54f=(0x0,e[_0x42bd51(0xd7)])(_0x1d4b85,_0x4324ce),_0x257c4d=_0x1d4b85[_0x42bd51(0x127)]['slice'](_0x34e54f,_0x4324ce['startIndex']);return Array[_0x42bd51(0x118)](_0x257c4d)['every'](_0x58a18d=>_0x58a18d===e[_0x42bd51(0x176)][_0x42bd51(0xcf)])?{'paragraph':_0x4324ce,'endTokenOffset':_0x5e9220}:null;}function O(_0x4130f8,_0x15dbce){const _0x12d0b3=_0x2b54fe;var _0x1858aa;let _0x11e3a9=D(_0x15dbce),_0x58db40=_0x4130f8[_0x12d0b3(0x127)][_0x11e3a9+0x1];(_0x58db40===e[_0x12d0b3(0x176)][_0x12d0b3(0x120)]||_0x58db40===void 0x0)&&k(_0x4130f8,_0x11e3a9+0x1,e['DataStreamTreeTokenType']['PARAGRAPH'],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,e[_0x12d0b3(0x12b)])(new Set((_0x1858aa=_0x4130f8[_0x12d0b3(0x129)])==null?void 0x0:_0x1858aa[_0x12d0b3(0x157)](_0x4a099e=>_0x4a099e[_0x12d0b3(0x166)])))}]});}function k(_0x19182a,_0x180fda,_0x148304,_0x31a343={}){const _0x3f1ce3=_0x2b54fe;var _0x4f23c3,_0x1429d0;_0x148304&&(_0x19182a[_0x3f1ce3(0x127)]=''+_0x19182a['dataStream'][_0x3f1ce3(0x10d)](0x0,_0x180fda)+_0x148304+_0x19182a[_0x3f1ce3(0x127)][_0x3f1ce3(0x10d)](_0x180fda),Ce(_0x19182a,_0x180fda,_0x148304[_0x3f1ce3(0x101)]),(_0x4f23c3=_0x31a343['paragraphs'])!=null&&_0x4f23c3[_0x3f1ce3(0x101)]&&(_0x19182a[_0x3f1ce3(0x129)]=[..._0x19182a[_0x3f1ce3(0x129)]??[],..._0x31a343[_0x3f1ce3(0x129)][_0x3f1ce3(0x157)](_0x1a09e2=>({..._0x1a09e2,'startIndex':_0x1a09e2[_0x3f1ce3(0x168)]+_0x180fda}))][_0x3f1ce3(0x115)]((_0x2f2647,_0x5664ba)=>_0x2f2647[_0x3f1ce3(0x168)]-_0x5664ba[_0x3f1ce3(0x168)])),(_0x1429d0=_0x31a343[_0x3f1ce3(0x136)])!=null&&_0x1429d0[_0x3f1ce3(0x101)]&&(_0x19182a[_0x3f1ce3(0x136)]=[..._0x19182a[_0x3f1ce3(0x136)]??[],..._0x31a343[_0x3f1ce3(0x136)]['map'](_0x184bbf=>({..._0x184bbf,'startIndex':_0x184bbf[_0x3f1ce3(0x168)]+_0x180fda,'endIndex':_0x184bbf['endIndex']+_0x180fda}))]['sort']((_0x4e66f8,_0x2ce6c1)=>_0x4e66f8[_0x3f1ce3(0x168)]-_0x2ce6c1[_0x3f1ce3(0x168)])));}function A(_0x2a75bb,_0x1a0a8d,_0x45d583){const _0xd0b0a8=_0x2b54fe;let _0x21dbcd=_0x45d583-_0x1a0a8d;_0x2a75bb[_0xd0b0a8(0x127)]=''+_0x2a75bb['dataStream'][_0xd0b0a8(0x10d)](0x0,_0x1a0a8d)+_0x2a75bb['dataStream'][_0xd0b0a8(0x10d)](_0x45d583),we(_0x2a75bb,_0x1a0a8d,_0x21dbcd);}function Ce(_0x1be935,_0x56d5b1,_0x5c7f78){const _0x5949e5=_0x2b54fe;_0x1be935[_0x5949e5(0x129)]=j(_0x1be935[_0x5949e5(0x129)],_0x56d5b1,_0x5c7f78),_0x1be935[_0x5949e5(0xcc)]=j(_0x1be935['sectionBreaks'],_0x56d5b1,_0x5c7f78),_0x1be935[_0x5949e5(0xd6)]=j(_0x1be935['customBlocks'],_0x56d5b1,_0x5c7f78),_0x1be935[_0x5949e5(0xed)]=Te(_0x1be935['textRuns'],_0x56d5b1,_0x5c7f78),_0x1be935[_0x5949e5(0xe7)]=Ee(_0x1be935[_0x5949e5(0xe7)],_0x56d5b1,_0x5c7f78),_0x1be935['columnGroups']=N(_0x1be935[_0x5949e5(0x175)],_0x56d5b1,_0x5c7f78),_0x1be935[_0x5949e5(0xd3)]=N(_0x1be935[_0x5949e5(0xd3)],_0x56d5b1,_0x5c7f78),_0x1be935[_0x5949e5(0xfb)]=N(_0x1be935['customDecorations'],_0x56d5b1,_0x5c7f78),_0x1be935[_0x5949e5(0x136)]=N(_0x1be935['blockRanges'],_0x56d5b1,_0x5c7f78);}function we(_0x2d6127,_0x5777fb,_0x82cb40){const _0x5b6a3e=_0x2b54fe;var _0x2d45bb,_0x45d687;_0x2d6127[_0x5b6a3e(0x129)]=M(_0x2d6127[_0x5b6a3e(0x129)],_0x5777fb,_0x82cb40),_0x2d6127[_0x5b6a3e(0xcc)]=M(_0x2d6127[_0x5b6a3e(0xcc)],_0x5777fb,_0x82cb40),_0x2d6127[_0x5b6a3e(0xd6)]=M(_0x2d6127['customBlocks'],_0x5777fb,_0x82cb40),_0x2d6127[_0x5b6a3e(0xed)]=(_0x2d45bb=F((_0x45d687=_0x2d6127[_0x5b6a3e(0xed)])==null?void 0x0:_0x45d687[_0x5b6a3e(0x157)](_0x3cf7a4=>({..._0x3cf7a4,'startIndex':_0x3cf7a4['st'],'endIndex':_0x3cf7a4['ed']})),_0x5777fb,_0x82cb40))==null?void 0x0:_0x2d45bb['map'](_0x25de36=>{let {startIndex:_0x1090d7,endIndex:_0x42bd2b,..._0x5d0edb}=_0x25de36;return{..._0x5d0edb,'st':_0x1090d7,'ed':_0x42bd2b};}),_0x2d6127[_0x5b6a3e(0xe7)]=F(_0x2d6127['tables'],_0x5777fb,_0x82cb40),_0x2d6127[_0x5b6a3e(0x175)]=P(_0x2d6127[_0x5b6a3e(0x175)],_0x5777fb,_0x82cb40),_0x2d6127['customRanges']=P(_0x2d6127['customRanges'],_0x5777fb,_0x82cb40),_0x2d6127[_0x5b6a3e(0xfb)]=P(_0x2d6127['customDecorations'],_0x5777fb,_0x82cb40),_0x2d6127[_0x5b6a3e(0x136)]=P(_0x2d6127['blockRanges'],_0x5777fb,_0x82cb40);}function j(_0x4cdbc5,_0x5bd894,_0x15ec2f){const _0x95791=_0x2b54fe;return _0x4cdbc5==null?void 0x0:_0x4cdbc5['map'](_0x4b514f=>_0x4b514f['startIndex']>=_0x5bd894?{..._0x4b514f,'startIndex':_0x4b514f[_0x95791(0x168)]+_0x15ec2f}:_0x4b514f);}function M(_0x5abe24,_0x59072c,_0x27eaf6){const _0x6753b2=_0x2b54fe;let _0x47afd9=_0x59072c+_0x27eaf6;return _0x5abe24==null?void 0x0:_0x5abe24[_0x6753b2(0x157)](_0x190b63=>_0x190b63[_0x6753b2(0x168)]>=_0x59072c&&_0x190b63[_0x6753b2(0x168)]<_0x47afd9?null:_0x190b63[_0x6753b2(0x168)]>=_0x47afd9?{..._0x190b63,'startIndex':_0x190b63[_0x6753b2(0x168)]-_0x27eaf6}:_0x190b63)['filter'](_0x8e2ae3=>_0x8e2ae3!=null);}function Te(_0x5b31ef,_0x40fc98,_0x51f74b){const _0x46e6b0=_0x2b54fe;return _0x5b31ef==null?void 0x0:_0x5b31ef[_0x46e6b0(0x157)](_0x179d7d=>_0x179d7d['st']>=_0x40fc98?{..._0x179d7d,'st':_0x179d7d['st']+_0x51f74b,'ed':_0x179d7d['ed']+_0x51f74b}:_0x179d7d['ed']>_0x40fc98?{..._0x179d7d,'ed':_0x179d7d['ed']+_0x51f74b}:_0x179d7d);}function N(_0x5d0fc2,_0x50826d,_0x293fe8){const _0x3357b8=_0x2b54fe;return _0x5d0fc2==null?void 0x0:_0x5d0fc2[_0x3357b8(0x157)](_0x89372d=>(0x0,e['shiftInclusiveRangeOnInsert'])(_0x89372d,_0x50826d,_0x293fe8));}function Ee(_0x53766d,_0x57782c,_0x10ec44){const _0x35d00d=_0x2b54fe;return _0x53766d==null?void 0x0:_0x53766d['map'](_0x545215=>(0x0,e[_0x35d00d(0x138)])(_0x545215,_0x57782c,_0x10ec44));}function P(_0x229e0e,_0x1caa8b,_0x2e94f9){const _0x41e074=_0x2b54fe;return _0x229e0e==null?void 0x0:_0x229e0e[_0x41e074(0x157)](_0x119697=>(0x0,e[_0x41e074(0x143)])(_0x119697,_0x1caa8b,_0x2e94f9))['filter'](_0x20e7d9=>_0x20e7d9!=null);}function F(_0x2b55ef,_0x560c07,_0x134713){const _0x4d5d5c=_0x2b54fe;return _0x2b55ef==null?void 0x0:_0x2b55ef['map'](_0x3e0602=>(0x0,e[_0x4d5d5c(0x16a)])(_0x3e0602,_0x560c07,_0x134713))[_0x4d5d5c(0x124)](_0x387c24=>_0x387c24!=null);}const I={'id':'docs-code.command.insert-below','type':e[_0x2b54fe(0xf0)][_0x2b54fe(0x10f)],'handler':_0x1df3c7=>{const _0x42e874=_0x2b54fe;var _0x7eb5cd;if((0x0,n['isHeaderFooterSelection'])(W(_0x1df3c7)))return!0x1;let _0x4064ae=(0x0,n[_0x42e874(0x12a)])(_0x1df3c7);if(_0x4064ae)return _0x1df3c7['get'](e['ICommandService'])['syncExecuteCommand'](R['id'],{'startOffset':_0x4064ae[_0x42e874(0xfd)],'endOffset':_0x4064ae[_0x42e874(0xd4)],'insertionMode':'insert-new','unitId':_0x4064ae[_0x42e874(0x111)]});let _0x370e5b=je(_0x1df3c7);if(!_0x370e5b)return!0x1;let _0x5b3646=(_0x7eb5cd=_0x1df3c7[_0x42e874(0x153)](e['IUniverInstanceService'])[_0x42e874(0xdb)](e[_0x42e874(0xce)][_0x42e874(0xde)]))==null?void 0x0:_0x7eb5cd[_0x42e874(0xba)](),_0xd0ce42=_0x5b3646?(0x0,e['getParagraphFollowingBlockOffset'])(_0x5b3646,_0x370e5b):_0x370e5b[_0x42e874(0x168)]+0x1;return _0x1df3c7[_0x42e874(0x153)](e[_0x42e874(0x148)])[_0x42e874(0x15a)](R['id'],{'startOffset':_0xd0ce42,'endOffset':_0xd0ce42});}},L={'id':_0x2b54fe(0x161),'type':e['CommandType'][_0x2b54fe(0x10f)],'handler':()=>!0x0},R={'id':'docs-code.command.insert','type':e[_0x2b54fe(0xf0)][_0x2b54fe(0x10f)],'handler':(_0x3c0db3,_0x5d7372)=>{const _0x320f03=_0x2b54fe;let _0x329d5a=U(_0x3c0db3,_0x5d7372==null?void 0x0:_0x5d7372[_0x320f03(0x111)]);if(!_0x329d5a)return!0x1;let _0x36b031=W(_0x3c0db3);if((0x0,n[_0x320f03(0xc6)])(_0x36b031))return!0x1;let _0x46df90=_0x329d5a[_0x320f03(0xdf)][_0x320f03(0xfa)](_0x329d5a[_0x320f03(0x111)]),_0x5819a8=Oe(_0x5d7372,_0x36b031),_0x43b2f5=ke(_0x329d5a[_0x320f03(0xfe)],_0x5819a8);if(_0x43b2f5){if(_0x43b2f5[_0x320f03(0xc2)]!==e[_0x320f03(0xa9)][_0x320f03(0x105)])return!0x1;let _0x2eb1a0=v({'blockId':_0x43b2f5[_0x320f03(0xc1)],'documentData':_0x329d5a['previousDocumentData'],'metadata':_0x46df90});if(!_0x2eb1a0)return!0x1;let _0x5aed61=J(_0x329d5a[_0x320f03(0x15e)],_0x329d5a[_0x320f03(0x119)],_0x329d5a[_0x320f03(0x111)],_0x329d5a[_0x320f03(0xfe)],_0x2eb1a0['nextDocumentData'],R['id'],_0x2eb1a0['cursorOffset']);return _0x5aed61&&_0x2eb1a0[_0x320f03(0x104)]&&_0x329d5a[_0x320f03(0xdf)][_0x320f03(0x140)](_0x329d5a[_0x320f03(0x111)],_0x2eb1a0[_0x320f03(0x104)]),_0x5aed61;}let _0xb6b914=(_0x5d7372==null?void 0x0:_0x5d7372['blockId'])??(0x0,e[_0x320f03(0x11b)])(0x6),_0x49608c;try{_0x49608c=ee({'blockId':_0xb6b914,'config':_0x5d7372==null?void 0x0:_0x5d7372['config'],'documentData':_0x329d5a[_0x320f03(0xfe)],'endOffset':_0x5819a8==null?void 0x0:_0x5819a8['endOffset'],'insertionMode':_0x5d7372==null?void 0x0:_0x5d7372['insertionMode'],'metadata':_0x46df90,'startOffset':_0x5819a8==null?void 0x0:_0x5819a8[_0x320f03(0xfd)]});}catch(_0x4ed2b8){if(_0x4ed2b8 instanceof _)return!0x1;throw _0x4ed2b8;}let _0x51e5c1=J(_0x329d5a[_0x320f03(0x15e)],_0x329d5a['selectionManager'],_0x329d5a[_0x320f03(0x111)],_0x329d5a[_0x320f03(0xfe)],_0x49608c[_0x320f03(0xbb)],R['id'],_0x49608c[_0x320f03(0xeb)]);return _0x51e5c1&&_0x49608c[_0x320f03(0x104)]&&_0x329d5a[_0x320f03(0xdf)]['deserialize'](_0x329d5a[_0x320f03(0x111)],_0x49608c[_0x320f03(0x104)]),_0x51e5c1;}},z={'id':_0x2b54fe(0xff),'type':e[_0x2b54fe(0xf0)][_0x2b54fe(0x10f)],'handler':(_0x1270a9,_0x48cf31)=>{const _0x34227f=_0x2b54fe;if(!_0x48cf31)return!0x1;let _0x1de56f=U(_0x1270a9,_0x48cf31['unitId']);if(!_0x1de56f)return!0x1;let _0x5b355d=ie({'blockId':_0x48cf31[_0x34227f(0xc1)],'config':_0x48cf31['config'],'documentData':_0x1de56f[_0x34227f(0xfe)],'metadata':_0x1de56f[_0x34227f(0xdf)][_0x34227f(0xfa)](_0x1de56f[_0x34227f(0x111)])});return _0x5b355d[_0x34227f(0x104)]&&_0x1de56f['model'][_0x34227f(0x140)](_0x1de56f[_0x34227f(0x111)],_0x5b355d['nextMetadata']),!0x0;}},De={'id':_0x2b54fe(0x114),'type':e[_0x2b54fe(0xf0)][_0x2b54fe(0x10f)],'handler':(_0x24d61e,_0x23c4c0)=>B['handler'](_0x24d61e,_0x23c4c0)},B={'id':_0x2b54fe(0x11f),'type':e[_0x2b54fe(0xf0)][_0x2b54fe(0x10f)],'handler':(_0x17675e,_0xc4b19)=>{const _0x145173=_0x2b54fe;if(!_0xc4b19)return!0x1;let _0x15b2df=U(_0x17675e,_0xc4b19==null?void 0x0:_0xc4b19[_0x145173(0x111)]);if(!_0x15b2df)return!0x1;let _0x45a373=v({'blockId':_0xc4b19[_0x145173(0xc1)],'documentData':_0x15b2df[_0x145173(0xfe)],'metadata':_0x15b2df[_0x145173(0xdf)][_0x145173(0xfa)](_0x15b2df[_0x145173(0x111)])});if(!_0x45a373)return!0x1;let _0x5dca1b=J(_0x15b2df[_0x145173(0x15e)],_0x15b2df[_0x145173(0x119)],_0x15b2df[_0x145173(0x111)],_0x15b2df[_0x145173(0xfe)],_0x45a373[_0x145173(0xbb)],B['id'],_0x45a373[_0x145173(0xeb)]);return _0x5dca1b&&_0x45a373[_0x145173(0x104)]&&_0x15b2df[_0x145173(0xdf)]['deserialize'](_0x15b2df[_0x145173(0x111)],_0x45a373[_0x145173(0x104)]),_0x5dca1b;}},V={'id':_0x2b54fe(0xb2),'type':e[_0x2b54fe(0xf0)][_0x2b54fe(0x10f)],'handler':(_0x58c7c5,_0x1717dc)=>{const _0x748b0f=_0x2b54fe;if(!_0x1717dc)return!0x1;let _0x4f1fb6=U(_0x58c7c5,_0x1717dc==null?void 0x0:_0x1717dc['unitId']);if(!_0x4f1fb6)return!0x1;let _0x51d8d=ae({'blockId':_0x1717dc['blockId'],'documentData':_0x4f1fb6[_0x748b0f(0xfe)],'metadata':_0x4f1fb6['model'][_0x748b0f(0xfa)](_0x4f1fb6[_0x748b0f(0x111)])});if(!_0x51d8d)return!0x1;let _0x155152=J(_0x4f1fb6[_0x748b0f(0x15e)],_0x4f1fb6[_0x748b0f(0x119)],_0x4f1fb6['unitId'],_0x4f1fb6[_0x748b0f(0xfe)],_0x51d8d['nextDocumentData'],V['id'],_0x51d8d['cursorOffset']);return _0x155152&&_0x51d8d[_0x748b0f(0x104)]&&_0x4f1fb6[_0x748b0f(0xdf)][_0x748b0f(0x140)](_0x4f1fb6['unitId'],_0x51d8d['nextMetadata']),_0x155152;}},H={'id':_0x2b54fe(0xb4),'type':e['CommandType'][_0x2b54fe(0x10f)],'handler':(_0x722000,_0x5ab9bb)=>{const _0x2d46cc=_0x2b54fe;var _0x1ea172;let _0x5d2c83=U(_0x722000,_0x5ab9bb==null?void 0x0:_0x5ab9bb[_0x2d46cc(0x111)]);if(!_0x5d2c83)return!0x1;let _0x1f8869=(_0x5ab9bb==null?void 0x0:_0x5ab9bb[_0x2d46cc(0xeb)])??((_0x1ea172=W(_0x722000))==null?void 0x0:_0x1ea172['startOffset']);if(_0x1f8869==null)return!0x1;let _0x1ad9f3=y({'cursorOffset':_0x1f8869,'documentData':_0x5d2c83[_0x2d46cc(0xfe)],'paragraphStartIndex':_0x5ab9bb==null?void 0x0:_0x5ab9bb[_0x2d46cc(0xbc)]});return _0x1ad9f3?J(_0x5d2c83[_0x2d46cc(0x15e)],_0x5d2c83[_0x2d46cc(0x119)],_0x5d2c83[_0x2d46cc(0x111)],_0x5d2c83['previousDocumentData'],_0x1ad9f3['nextDocumentData'],H['id'],_0x1ad9f3[_0x2d46cc(0xeb)]):!0x1;}};function U(_0x44ecaa,_0x574ffe){const _0x32f9d2=_0x2b54fe;let _0x5f59ce=_0x44ecaa[_0x32f9d2(0x153)](e[_0x32f9d2(0xef)]),_0x32dc5d=_0x574ffe?_0x5f59ce[_0x32f9d2(0xb6)](_0x574ffe,e[_0x32f9d2(0xce)][_0x32f9d2(0xde)]):_0x5f59ce[_0x32f9d2(0xdb)](e[_0x32f9d2(0xce)]['UNIVER_DOC']);return _0x32dc5d?{'commandService':_0x44ecaa[_0x32f9d2(0x153)](e['ICommandService']),'model':_0x44ecaa[_0x32f9d2(0x153)](p),'previousDocumentData':_0x32dc5d['getSnapshot'](),'selectionManager':_0x44ecaa[_0x32f9d2(0x153)](n[_0x32f9d2(0x174)]),'unitId':_0x32dc5d[_0x32f9d2(0x112)]()}:null;}function W(_0xc978d7){const _0x47624e=_0x2b54fe;var _0x3b1ae3;return(_0x3b1ae3=_0xc978d7[_0x47624e(0x153)](n['DocSelectionManagerService'])[_0x47624e(0x100)]())==null?void 0x0:_0x3b1ae3[0x0];}function Oe(_0x34eae0,_0x177ba1){const _0x1a3e0c=_0x2b54fe;let _0x3bb2fa=(_0x34eae0==null?void 0x0:_0x34eae0[_0x1a3e0c(0xfd)])??(_0x177ba1==null?void 0x0:_0x177ba1[_0x1a3e0c(0xfd)]),_0x20dda2=(_0x34eae0==null?void 0x0:_0x34eae0['endOffset'])??(_0x177ba1==null?void 0x0:_0x177ba1['endOffset']);if(_0x3bb2fa!=null&&_0x20dda2!=null)return{'endOffset':Math[_0x1a3e0c(0x12e)](_0x3bb2fa,_0x20dda2),'startOffset':Math['min'](_0x3bb2fa,_0x20dda2)};}function ke(_0x38d772,_0x4a20bb){const _0x767cb7=_0x2b54fe;var _0x23541e;if(!_0x4a20bb)return;let _0xd83275=Ae(_0x4a20bb);return(_0x23541e=_0x38d772[_0x767cb7(0xdd)])==null||(_0x23541e=_0x23541e[_0x767cb7(0x136)])==null?void 0x0:_0x23541e[_0x767cb7(0x14c)](_0x42bcfb=>{const _0x298c79=_0x767cb7;let _0x3f0f7e=(0x0,e[_0x298c79(0x122)])(_0x42bcfb);return _0x4a20bb[_0x298c79(0xfd)]===_0x4a20bb[_0x298c79(0xd4)]?(0x0,e['containsInteriorInsertionOffset'])(_0x3f0f7e,_0xd83275):(0x0,e[_0x298c79(0x130)])(_0x3f0f7e,_0xd83275);});}function Ae(_0x1980da){const _0x4c9f11=_0x2b54fe;return _0x1980da[_0x4c9f11(0xfd)]===_0x1980da['endOffset']?_0x1980da[_0x4c9f11(0xfd)]:_0x1980da['startOffset']+0x1;}function je(_0x2780e4){const _0x3e1d1d=_0x2b54fe;let _0x1ffbe8=W(_0x2780e4);if(!_0x1ffbe8)return null;let _0x50d16d=_0x2780e4[_0x3e1d1d(0x153)](e[_0x3e1d1d(0xef)])[_0x3e1d1d(0xdb)](e[_0x3e1d1d(0xce)][_0x3e1d1d(0xde)]),_0x2e6e1e=_0x50d16d==null?void 0x0:_0x50d16d[_0x3e1d1d(0xba)]();return _0x2e6e1e?e[_0x3e1d1d(0x11a)][_0x3e1d1d(0xf5)]['getParagraphsInRange'](_0x1ffbe8,_0x2e6e1e['paragraphs']??[],_0x2e6e1e[_0x3e1d1d(0x127)]??'')[0x0]??null:null;}function Me(_0x44701d,_0x366e1e){const _0x20ffef=_0x2b54fe;let _0x5600d2=_0x44701d[_0x20ffef(0xdd)],_0x2c3ff5=_0x366e1e[_0x20ffef(0xdd)],_0xbda511=(0x0,e[_0x20ffef(0x15d)])(_0x5600d2,_0x2c3ff5);return[_0xbda511&&_0x2c3ff5?Ne(_0x2c3ff5,_0xbda511):null,_0xbda511?null:Pe(_0x5600d2,_0x2c3ff5)]['filter'](Boolean)[_0x20ffef(0x14a)]((_0x12d341,_0x1a82b3)=>e[_0x20ffef(0xe6)][_0x20ffef(0xf8)](_0x12d341,_0x1a82b3),null);}function Ne(_0x3d5264,_0x34ff3b){const _0x46c889=_0x2b54fe;let _0x1b3634=new e['TextX']();return _0x1b3634[_0x46c889(0x170)](_0x34ff3b['start']),_0x34ff3b[_0x46c889(0x13b)]>0x0&&_0x1b3634[_0x46c889(0xf4)](_0x34ff3b[_0x46c889(0x13b)],(0x0,e[_0x46c889(0x12d)])(_0x3d5264,_0x34ff3b['start'],_0x34ff3b['start']+_0x34ff3b[_0x46c889(0x13b)],!0x1)),_0x34ff3b[_0x46c889(0x152)]>0x0&&_0x1b3634[_0x46c889(0xc7)](_0x34ff3b[_0x46c889(0x152)]),e[_0x46c889(0xe6)][_0x46c889(0x11d)]()['editOp'](_0x1b3634[_0x46c889(0xfa)](),[_0x46c889(0xdd)]);}function Pe(_0x494afe,_0xc988f1){const _0xc1067c=_0x2b54fe;let _0x55f863=[],_0x31908b=_0x494afe?G(_0x494afe):void 0x0,_0x41013c=_0xc988f1?G(_0xc988f1):void 0x0;for(let _0x41e77d of Fe)K(e['JSONX'][_0xc1067c(0x11d)](),['body',_0x41e77d],_0x31908b==null?void 0x0:_0x31908b[_0x41e77d],_0x41013c==null?void 0x0:_0x41013c[_0x41e77d],_0x55f863);return _0x55f863[_0xc1067c(0x14a)]((_0x1f6b6e,_0x34650c)=>e[_0xc1067c(0xe6)][_0xc1067c(0xf8)](_0x1f6b6e,_0x34650c),null);}const Fe=[_0x2b54fe(0x129),'sectionBreaks',_0x2b54fe(0xe7),_0x2b54fe(0x175),_0x2b54fe(0x136),_0x2b54fe(0xd6),_0x2b54fe(0xd3),'customDecorations',_0x2b54fe(0xed)];function G(_0x2846e9){return _0x2846e9;}function K(_0x155ad1,_0x2cde14,_0xa489df,_0x418925,_0x584e2e){const _0x44b22e=_0x2b54fe;q(_0xa489df,_0x418925)||(_0xa489df==null?_0x584e2e[_0x44b22e(0xee)](_0x155ad1[_0x44b22e(0x134)](_0x2cde14,_0x418925)):_0x418925==null?_0x584e2e[_0x44b22e(0xee)](_0x155ad1[_0x44b22e(0xc3)](_0x2cde14,_0xa489df)):Array[_0x44b22e(0x133)](_0xa489df)&&Array[_0x44b22e(0x133)](_0x418925)?Ie(_0x155ad1,_0x2cde14,_0xa489df,_0x418925,_0x584e2e):Le(_0xa489df)&&Le(_0x418925)?new Set([...Object[_0x44b22e(0x15c)](_0xa489df),...Object[_0x44b22e(0x15c)](_0x418925)])[_0x44b22e(0xaa)](_0x1fa82b=>{K(_0x155ad1,[..._0x2cde14,_0x1fa82b],_0xa489df[_0x1fa82b],_0x418925[_0x1fa82b],_0x584e2e);}):_0x584e2e['push'](_0x155ad1[_0x44b22e(0xae)](_0x2cde14,_0xa489df,_0x418925)));}function Ie(_0x38c283,_0x5c894d,_0x28ac1c,_0x4c1827,_0x59099a){const _0x4173a1=_0x2b54fe;if(_0x28ac1c['length']===_0x4c1827[_0x4173a1(0x101)]){_0x28ac1c[_0x4173a1(0xaa)]((_0x571c2d,_0xced00e)=>K(_0x38c283,[..._0x5c894d,_0xced00e],_0x571c2d,_0x4c1827[_0xced00e],_0x59099a));return;}let _0x27d673=0x0;for(;_0x27d673<_0x28ac1c[_0x4173a1(0x101)]&&_0x27d673<_0x4c1827[_0x4173a1(0x101)]&&q(_0x28ac1c[_0x27d673],_0x4c1827[_0x27d673]);)_0x27d673++;let _0x55f195=_0x28ac1c[_0x4173a1(0x101)]-0x1,_0x54341a=_0x4c1827[_0x4173a1(0x101)]-0x1;for(;_0x55f195>=_0x27d673&&_0x54341a>=_0x27d673&&q(_0x28ac1c[_0x55f195],_0x4c1827[_0x54341a]);)_0x55f195--,_0x54341a--;for(let _0x57079e=_0x55f195;_0x57079e>=_0x27d673;_0x57079e--)_0x59099a['push'](_0x38c283[_0x4173a1(0xc3)]([..._0x5c894d,_0x57079e],_0x28ac1c[_0x57079e]));for(let _0x56341f=_0x27d673;_0x56341f<=_0x54341a;_0x56341f++)_0x59099a[_0x4173a1(0xee)](_0x38c283[_0x4173a1(0x134)]([..._0x5c894d,_0x56341f],_0x4c1827[_0x56341f]));}function Le(_0x24b90c){const _0x331a2f=_0x2b54fe;return typeof _0x24b90c==_0x331a2f(0x132)&&!!_0x24b90c&&!Array[_0x331a2f(0x133)](_0x24b90c);}function q(_0x1392c3,_0x17b45f){const _0x44f216=_0x2b54fe;return JSON['stringify'](_0x1392c3)===JSON[_0x44f216(0x15f)](_0x17b45f);}function J(_0x26c65c,_0x319526,_0x2adb92,_0x2daa2f,_0x54c128,_0x2390d0,_0xca23de){const _0x15d700=_0x2b54fe;let _0x748490=Me(_0x2daa2f,_0x54c128);return _0x748490?!!_0x26c65c[_0x15d700(0x15a)](n[_0x15d700(0xc8)]['id'],{'unitId':_0x2adb92,'actions':_0x748490,'textRanges':[{'startOffset':_0xca23de,'endOffset':_0xca23de,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x2390d0}):(_0x319526[_0x15d700(0x106)]([{'startOffset':_0xca23de,'endOffset':_0xca23de}],{'unitId':_0x2adb92,'subUnitId':_0x2adb92},!0x1),!0x0);}const Y=_0x2b54fe(0xf2);var Re='@univerjs-pro/docs-code',ze='1.5.0';const Be={};function X(_0x19fad7,_0x226d84){return function(_0xb5c2c6,_0x23f934){_0x226d84(_0xb5c2c6,_0x23f934,_0x19fad7);};}function Z(_0x3e6e0a,_0x5becc5,_0xd47091,_0x461579){const _0x3eb565=_0x2b54fe;var _0x2dcfd5=arguments['length'],_0x48e831=_0x2dcfd5<0x3?_0x5becc5:_0x461579===null?_0x461579=Object[_0x3eb565(0x144)](_0x5becc5,_0xd47091):_0x461579,_0x82eeb;if(typeof Reflect=='object'&&typeof Reflect[_0x3eb565(0xad)]==_0x3eb565(0xe1))_0x48e831=Reflect['decorate'](_0x3e6e0a,_0x5becc5,_0xd47091,_0x461579);else{for(var _0xb21b9f=_0x3e6e0a[_0x3eb565(0x101)]-0x1;_0xb21b9f>=0x0;_0xb21b9f--)(_0x82eeb=_0x3e6e0a[_0xb21b9f])&&(_0x48e831=(_0x2dcfd5<0x3?_0x82eeb(_0x48e831):_0x2dcfd5>0x3?_0x82eeb(_0x5becc5,_0xd47091,_0x48e831):_0x82eeb(_0x5becc5,_0xd47091))||_0x48e831);}return _0x2dcfd5>0x3&&_0x48e831&&Object[_0x3eb565(0xb0)](_0x5becc5,_0xd47091,_0x48e831),_0x48e831;}let Q=class extends e[_0x2b54fe(0xc9)]{constructor(_0x5f1814,_0x39a0a7){const _0x4fd6c8=_0x2b54fe;super(),this['_resourceManagerService']=_0x5f1814,this[_0x4fd6c8(0xd0)]=_0x39a0a7,this[_0x4fd6c8(0x117)]();}[_0x2b54fe(0x117)](){const _0xb4f9c1=_0x2b54fe;this[_0xb4f9c1(0x13a)](this[_0xb4f9c1(0xc4)][_0xb4f9c1(0xcb)]({'pluginName':Y,'businesses':[e[_0xb4f9c1(0xce)][_0xb4f9c1(0xde)]],'toJson':_0x1caa1d=>JSON[_0xb4f9c1(0x15f)](this[_0xb4f9c1(0xd0)]['serialize'](_0x1caa1d)),'parseJson':_0x135e91=>o(JSON[_0xb4f9c1(0xf3)](_0x135e91)),'onLoad':(_0x3982a8,_0x1c4fe6)=>this['_docsCodeModel'][_0xb4f9c1(0x140)](_0x3982a8,_0x1c4fe6),'onUnLoad':_0x9c9e96=>this[_0xb4f9c1(0xd0)][_0xb4f9c1(0x10c)](_0x9c9e96)}));}};Q=Z([X(0x0,e['IResourceManagerService']),X(0x1,(0x0,e[_0x2b54fe(0x178)])(p))],Q);let $=class extends e['Plugin']{constructor(_0x1dc623=Be,_0x34ac49,_0x56c424,_0x4e62ff){const _0x5608f1=_0x2b54fe;super(),this[_0x5608f1(0x10a)]=_0x1dc623,this[_0x5608f1(0xf7)]=_0x34ac49,this[_0x5608f1(0x16b)]=_0x56c424,this[_0x5608f1(0xb8)]=_0x4e62ff;let {..._0x5daa0a}=(0x0,e['merge'])({},Be,this[_0x5608f1(0x10a)]);this[_0x5608f1(0xb8)][_0x5608f1(0x108)](_0x5608f1(0xf9),_0x5daa0a);}['onStarting'](){const _0x34e70e=_0x2b54fe;this[_0x34e70e(0xf7)]['add']([p]),this[_0x34e70e(0xf7)][_0x34e70e(0xd5)]([Q]),this[_0x34e70e(0xf7)][_0x34e70e(0x153)](p),this[_0x34e70e(0xf7)][_0x34e70e(0x153)](Q),[R,I,z,B,V,De,H,L,m,h]['forEach'](_0x6a2c49=>this['disposeWithMe'](this[_0x34e70e(0x16b)][_0x34e70e(0x160)](_0x6a2c49)));}};f($,_0x2b54fe(0x16c),Y),f($,_0x2b54fe(0xe4),Re),f($,_0x2b54fe(0x149),ze),f($,_0x2b54fe(0x107),e[_0x2b54fe(0xce)][_0x2b54fe(0xde)]),$=Z([(0x0,e[_0x2b54fe(0x13c)])(r[_0x2b54fe(0x110)],n[_0x2b54fe(0xe9)]),X(0x1,(0x0,e[_0x2b54fe(0x178)])(e[_0x2b54fe(0xca)])),X(0x2,e[_0x2b54fe(0x148)]),X(0x3,e[_0x2b54fe(0xf6)])],$),exports[_0x2b54fe(0x10b)]=Y,exports[_0x2b54fe(0xbe)]=H,exports[_0x2b54fe(0x13d)]=L,exports[_0x2b54fe(0x11e)]=I,exports[_0x2b54fe(0x146)]=R,exports[_0x2b54fe(0x13e)]=p,exports[_0x2b54fe(0x139)]=V,exports[_0x2b54fe(0xe0)]=B,exports['DocsCodeUpdateCommand']=z,exports[_0x2b54fe(0xac)]=h,exports[_0x2b54fe(0xda)]=m,Object['defineProperty'](exports,_0x2b54fe(0x173),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x2b54fe(0x165)]=y,exports['isCodeBoundaryDelete']=se,exports[_0x2b54fe(0xbd)]=a,exports['normalizeDocsCodeMetadataResource']=o;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x55f873=_0x5b91;(function(_0x352824,_0x3c0e19){var _0x445d42=_0x5b91,_0x2b6e15=_0x352824();while(!![]){try{var _0xa3c4fb=-parseInt(_0x445d42(0x1b1))/0x1*(-parseInt(_0x445d42(0x18d))/0x2)+-parseInt(_0x445d42(0x1be))/0x3*(-parseInt(_0x445d42(0x19e))/0x4)+parseInt(_0x445d42(0x1a3))/0x5+parseInt(_0x445d42(0x1bc))/0x6*(-parseInt(_0x445d42(0x185))/0x7)+-parseInt(_0x445d42(0x18b))/0x8+parseInt(_0x445d42(0x1b2))/0x9*(-parseInt(_0x445d42(0x1ad))/0xa)+-parseInt(_0x445d42(0x1b5))/0xb*(-parseInt(_0x445d42(0x1c3))/0xc);if(_0xa3c4fb===_0x3c0e19)break;else _0x2b6e15['push'](_0x2b6e15['shift']());}catch(_0x25864f){_0x2b6e15['push'](_0x2b6e15['shift']());}}}(_0x272a,0xb441f));import{DocsCodeInsertCommand as _0x44529d,DocsCodeModel as _0x32a5cc,DocsCodeRemoveCommand as _0x33d8e1,DocsCodeUnwrapCommand as _0x413b4c,DocsCodeUpdateCommand as _0x495d91,normalizeDocsCodeConfig as _0x458bde}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x568b66,DocumentBlockRangeType as _0x2d8e95,ICommandService as _0x1f5bd2,Inject as _0x348c6b,Injector as _0xccdc39,generateRandomId as _0x3292d4}from'@univerjs/core';import{FDocument as _0x1556c6,isParagraphFacade as _0x3a3ee0}from'@univerjs/docs/facade';function _0x5b91(_0x1279e7,_0x114324){_0x1279e7=_0x1279e7-0x181;var _0x272a20=_0x272a();var _0x5b91f0=_0x272a20[_0x1279e7];return _0x5b91f0;}function m(_0x282c7f){'@babel/helpers - typeof';var _0x4cfd30=_0x5b91;return m=typeof Symbol==_0x4cfd30(0x1b4)&&typeof Symbol[_0x4cfd30(0x19c)]=='symbol'?function(_0x441ce8){return typeof _0x441ce8;}:function(_0x2cd578){var _0x3283ed=_0x4cfd30;return _0x2cd578&&typeof Symbol==_0x3283ed(0x1b4)&&_0x2cd578[_0x3283ed(0x197)]===Symbol&&_0x2cd578!==Symbol[_0x3283ed(0x192)]?_0x3283ed(0x1ac):typeof _0x2cd578;},m(_0x282c7f);}function h(_0x7f7839,_0x3d5c7c){var _0x28fd2d=_0x5b91;if(m(_0x7f7839)!='object'||!_0x7f7839)return _0x7f7839;var _0x59bad4;if(typeof Symbol<'u'&&(_0x59bad4=_0x7f7839[Symbol[_0x28fd2d(0x1b0)]])!==void 0x0){var _0x21be7c=_0x59bad4['call'](_0x7f7839,_0x3d5c7c||_0x28fd2d(0x18a));if(m(_0x21be7c)!='object')return _0x21be7c;throw TypeError(_0x28fd2d(0x181));}return(_0x3d5c7c===_0x28fd2d(0x1a7)?String:Number)(_0x7f7839);}function _0x272a(){var _0x3e118f=['_injector','729816NwckHQ','getId','219519HCqeXk','remove','syncExecuteCommand','blockType','SECTION_BREAK','36tjERob','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','some','createInstance','getCodes','35ngqpQd','join','getRange','blockRanges','length','default','2473576yAxEEQ','getCodeAt','22qXTQLc','getCode','slice','BLOCK_START','_document','prototype','getCodeConfig','_createFDocumentCode','text','startIndex','constructor','map','insertCode','BLOCK_END','blockId','iterator','getOwnPropertyDescriptor','12pyLHoz','getConfig','extend','save','defineProperty','660840FNvLYX','findCodes','object','_getDocumentData','string','endIndex','filter','config','_getBlockRange','symbol','230EhKJAw','get','_unitId','toPrimitive','11527tZGIqF','213957trwmLv','_blockId','function','6321359vCyHhy','decorate','from','includes','find','CODE'];_0x272a=function(){return _0x3e118f;};return _0x272a();}function g(_0x36f8de){var _0x5ec3f0=_0x5b91,_0x184013=h(_0x36f8de,'string');return m(_0x184013)==_0x5ec3f0(0x1ac)?_0x184013:_0x184013+'';}function _(_0x7b38d8,_0x2b12d8,_0x503226){var _0x4c6a58=_0x5b91;return(_0x2b12d8=g(_0x2b12d8))in _0x7b38d8?Object[_0x4c6a58(0x1a2)](_0x7b38d8,_0x2b12d8,{'value':_0x503226,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x7b38d8[_0x2b12d8]=_0x503226,_0x7b38d8;}function v(_0x479ca7,_0x31ba1b){return function(_0xba93bc,_0x3a783b){_0x31ba1b(_0xba93bc,_0x3a783b,_0x479ca7);};}function y(_0x19e4fd,_0x23f177,_0x2673ac,_0x4a6030){var _0x36b313=_0x5b91,_0x7dd57b=arguments[_0x36b313(0x189)],_0x2c94c6=_0x7dd57b<0x3?_0x23f177:_0x4a6030===null?_0x4a6030=Object[_0x36b313(0x19d)](_0x23f177,_0x2673ac):_0x4a6030,_0x12a4a2;if(typeof Reflect==_0x36b313(0x1a5)&&typeof Reflect[_0x36b313(0x1b6)]=='function')_0x2c94c6=Reflect[_0x36b313(0x1b6)](_0x19e4fd,_0x23f177,_0x2673ac,_0x4a6030);else{for(var _0x15f357=_0x19e4fd['length']-0x1;_0x15f357>=0x0;_0x15f357--)(_0x12a4a2=_0x19e4fd[_0x15f357])&&(_0x2c94c6=(_0x7dd57b<0x3?_0x12a4a2(_0x2c94c6):_0x7dd57b>0x3?_0x12a4a2(_0x23f177,_0x2673ac,_0x2c94c6):_0x12a4a2(_0x23f177,_0x2673ac))||_0x2c94c6);}return _0x7dd57b>0x3&&_0x2c94c6&&Object[_0x36b313(0x1a2)](_0x23f177,_0x2673ac,_0x2c94c6),_0x2c94c6;}let b=class{constructor(_0x2df9f1,_0xa62e8e,_0x4c5a16){var _0x1bcb73=_0x5b91;this['_document']=_0x2df9f1,this[_0x1bcb73(0x1b3)]=_0xa62e8e,this[_0x1bcb73(0x1bb)]=_0x4c5a16,_(this,_0x1bcb73(0x1af),void 0x0),this[_0x1bcb73(0x1af)]=this['_document'][_0x1bcb73(0x1bd)]();}[_0x55f873(0x1bd)](){var _0x3ef355=_0x55f873;return this[_0x3ef355(0x1b3)];}[_0x55f873(0x187)](){var _0x366f94=_0x55f873;let _0xd807b9=this[_0x366f94(0x1ab)]();return _0xd807b9?{'blockId':_0xd807b9[_0x366f94(0x19b)],'endIndex':_0xd807b9[_0x366f94(0x1a8)],'startIndex':_0xd807b9[_0x366f94(0x196)]}:null;}['getText'](){var _0x1ab539=_0x55f873,_0x1255b4;let _0x6c3015=this['_getBlockRange'](),_0x39e714=(_0x1255b4=this[_0x1ab539(0x1a6)]()['body'])==null?void 0x0:_0x1255b4['dataStream'];return!_0x6c3015||!_0x39e714?'':x(_0x39e714[_0x1ab539(0x18f)](_0x6c3015['startIndex']+0x1,_0x6c3015['endIndex']));}['describe'](){var _0x4103ba=_0x55f873;let _0x4d24ae=this[_0x4103ba(0x187)]();return _0x4d24ae?{..._0x4d24ae,'config':this[_0x4103ba(0x19f)](),'text':this['getText'](),'type':_0x2d8e95[_0x4103ba(0x1ba)]}:null;}[_0x55f873(0x19f)](){var _0x359058=_0x55f873;let _0x37ce0a=this[_0x359058(0x1bb)][_0x359058(0x1ae)](_0x32a5cc);return _0x458bde(_0x37ce0a[_0x359058(0x193)](this['_unitId'],this['_blockId']));}['updateConfig'](_0x163f68){var _0x3ed554=_0x55f873;return this[_0x3ed554(0x1bb)][_0x3ed554(0x1ae)](_0x1f5bd2)[_0x3ed554(0x1c0)](_0x495d91['id'],{'blockId':this[_0x3ed554(0x1b3)],'config':_0x163f68[_0x3ed554(0x1aa)],'unitId':this[_0x3ed554(0x1af)]});}['unwrap'](){var _0x22e69d=_0x55f873;return this[_0x22e69d(0x1bb)][_0x22e69d(0x1ae)](_0x1f5bd2)[_0x22e69d(0x1c0)](_0x413b4c['id'],{'blockId':this['_blockId'],'unitId':this[_0x22e69d(0x1af)]});}[_0x55f873(0x1bf)](){var _0x49e665=_0x55f873;return this['_injector'][_0x49e665(0x1ae)](_0x1f5bd2)[_0x49e665(0x1c0)](_0x33d8e1['id'],{'blockId':this[_0x49e665(0x1b3)],'unitId':this[_0x49e665(0x1af)]});}[_0x55f873(0x1ab)](){var _0x125978=_0x55f873,_0x313f1f;return((_0x313f1f=this[_0x125978(0x1a6)]()['body'])==null||(_0x313f1f=_0x313f1f[_0x125978(0x188)])==null?void 0x0:_0x313f1f[_0x125978(0x1b9)](_0x548e9e=>_0x548e9e[_0x125978(0x19b)]===this['_blockId']&&_0x548e9e[_0x125978(0x1c1)]===_0x2d8e95[_0x125978(0x1ba)]))??null;}[_0x55f873(0x1a6)](){var _0x5c39bf=_0x55f873;return this[_0x5c39bf(0x191)][_0x5c39bf(0x1a1)]();}};b=y([v(0x2,_0x348c6b(_0xccdc39))],b);function x(_0x4979aa){var _0xde1847=_0x55f873;return Array[_0xde1847(0x1b7)](_0x4979aa)[_0xde1847(0x198)](_0x4994c7=>_0x4994c7===_0x568b66['PARAGRAPH']?'\x0a':_0x4994c7)[_0xde1847(0x1a9)](_0x117819=>_0x117819!==_0x568b66[_0xde1847(0x190)]&&_0x117819!==_0x568b66[_0xde1847(0x19a)]&&_0x117819!==_0x568b66[_0xde1847(0x1c2)])[_0xde1847(0x186)]('')['replace'](/\n$/,'');}var S=class extends _0x1556c6{['getCodes'](){var _0x410803=_0x55f873;return this['_getBlockRanges']()['filter'](_0x568367=>_0x568367[_0x410803(0x1c1)]===_0x2d8e95[_0x410803(0x1ba)])[_0x410803(0x198)](_0x79bfc6=>this[_0x410803(0x194)](_0x79bfc6['blockId']));}[_0x55f873(0x18e)](_0x4fd716){var _0xe214c7=_0x55f873;return this['_getBlockRanges']()[_0xe214c7(0x182)](_0xfb2217=>_0xfb2217[_0xe214c7(0x19b)]===_0x4fd716&&_0xfb2217['blockType']===_0x2d8e95[_0xe214c7(0x1ba)])?this[_0xe214c7(0x194)](_0x4fd716):null;}[_0x55f873(0x18c)](_0x475644){var _0x39fabc=_0x55f873;let _0x130b1a=this['_getBlockRanges']()[_0x39fabc(0x1b9)](_0x10e018=>_0x10e018[_0x39fabc(0x1c1)]===_0x2d8e95['CODE']&&_0x10e018[_0x39fabc(0x196)]<=_0x475644&&_0x475644<=_0x10e018[_0x39fabc(0x1a8)]);return _0x130b1a?this[_0x39fabc(0x194)](_0x130b1a['blockId']):null;}['findCodeByText'](_0xdad00f){var _0x211b6b=_0x55f873;return this[_0x211b6b(0x1a4)](_0xdad00f)[0x0]??null;}['findCodes'](_0x5da1d9){var _0x495c8e=_0x55f873;let _0x429705=typeof _0x5da1d9==_0x495c8e(0x1a7)?{'text':_0x5da1d9}:_0x5da1d9;return this[_0x495c8e(0x184)]()[_0x495c8e(0x1a9)](_0x18bc84=>!(_0x429705['blockId']&&_0x18bc84[_0x495c8e(0x1bd)]()!==_0x429705[_0x495c8e(0x19b)]||_0x429705['text']&&!_0x18bc84['getText']()[_0x495c8e(0x1b8)](_0x429705[_0x495c8e(0x195)])));}[_0x55f873(0x199)](_0x41512b={},_0x24fcde={}){var _0x1deabd=_0x55f873;let _0x1d149c=this['_injector'][_0x1deabd(0x1ae)](_0x1f5bd2),_0x54e8ed=_0x3a3ee0(_0x41512b)?{..._0x24fcde,..._0x41512b[_0x1deabd(0x187)]()}:_0x41512b,_0x214fe1=_0x54e8ed['blockId']??_0x3292d4(0x6);return _0x1d149c[_0x1deabd(0x1c0)](_0x44529d['id'],{..._0x54e8ed,'blockId':_0x214fe1,'unitId':this[_0x1deabd(0x1bd)]()})?this['getCode'](_0x214fe1):null;}['_getBlockRanges'](){var _0x5230cb=_0x55f873,_0x4082f5;return((_0x4082f5=this[_0x5230cb(0x1a1)]()['body'])==null?void 0x0:_0x4082f5[_0x5230cb(0x188)])??[];}[_0x55f873(0x194)](_0x3bbd24){var _0x332fa8=_0x55f873;return this[_0x332fa8(0x1bb)][_0x332fa8(0x183)](b,this,_0x3bbd24);}};_0x1556c6[_0x55f873(0x1a0)](S);export{b as FDocumentCode};
|