@univerjs-pro/docs-quote 0.24.0-insiders.20260528-29f582d
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 +35 -0
- package/lib/cjs/facade.js +1 -0
- package/lib/cjs/index.js +1 -0
- package/lib/es/facade.js +1 -0
- package/lib/es/index.js +1 -0
- package/lib/facade.js +1 -0
- package/lib/index.js +1 -0
- package/lib/umd/facade.js +1 -0
- package/lib/umd/index.js +1 -0
- package/package.json +82 -0
package/README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# @univerjs-pro/docs-quote
|
|
2
|
+
|
|
3
|
+
[](https://npmjs.com/package/@univerjs-pro/docs-quote)
|
|
4
|
+
[](https://npmjs.com/package/@univerjs-pro/docs-quote)
|
|
5
|
+
|
|
6
|
+
`@univerjs-pro/docs-quote` provides quote block model integration for Univer Docs.
|
|
7
|
+
|
|
8
|
+
## Package Overview
|
|
9
|
+
|
|
10
|
+
| Package | UMD global | CSS | Locales | Facade entry |
|
|
11
|
+
| --- | --- | :---: | :---: | :---: |
|
|
12
|
+
| `@univerjs-pro/docs-quote` | `UniverProDocsQuote` | No | No | Yes |
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
```sh
|
|
17
|
+
pnpm add @univerjs-pro/docs-quote
|
|
18
|
+
# or
|
|
19
|
+
npm install @univerjs-pro/docs-quote
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Keep all `@univerjs/*` and `@univerjs-pro/*` packages on the same version.
|
|
23
|
+
|
|
24
|
+
## Usage
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
import { UniverDocsQuotePlugin } from '@univerjs-pro/docs-quote';
|
|
28
|
+
|
|
29
|
+
univer.registerPlugin(UniverDocsQuotePlugin);
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Resources
|
|
33
|
+
|
|
34
|
+
- [Documentation](https://docs.univer.ai/guides/pro)
|
|
35
|
+
- [NPM package](https://npmjs.com/package/@univerjs-pro/docs-quote)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0xa1cf20=_0x4ac9;(function(_0x4d52b1,_0x4d5b6f){const _0x3e47b4=_0x4ac9,_0x4182ec=_0x4d52b1();while(!![]){try{const _0x16a085=-parseInt(_0x3e47b4(0x19b))/0x1+-parseInt(_0x3e47b4(0x1b5))/0x2+-parseInt(_0x3e47b4(0x1c8))/0x3+parseInt(_0x3e47b4(0x1e9))/0x4*(parseInt(_0x3e47b4(0x1e6))/0x5)+-parseInt(_0x3e47b4(0x1df))/0x6*(-parseInt(_0x3e47b4(0x1d2))/0x7)+parseInt(_0x3e47b4(0x19c))/0x8*(-parseInt(_0x3e47b4(0x1d8))/0x9)+-parseInt(_0x3e47b4(0x1aa))/0xa*(-parseInt(_0x3e47b4(0x1cc))/0xb);if(_0x16a085===_0x4d5b6f)break;else _0x4182ec['push'](_0x4182ec['shift']());}catch(_0x19479e){_0x4182ec['push'](_0x4182ec['shift']());}}}(_0x4727,0x6507d),Object[_0xa1cf20(0x1b9)](exports,Symbol[_0xa1cf20(0x1f0)],{'value':_0xa1cf20(0x1a9)}));let e=require(`@univerjs/core`),t=require(`@univerjs/docs-ui/facade`),n=require(`@univerjs/docs`);require(`@univerjs/docs-ui`);const r='quote';function i(_0x4a5dd2){const _0x468ad3=_0xa1cf20;var _0xddbd1e,_0x31278c,_0x34507b;let _0x30c805=y(_0x4a5dd2[_0x468ad3(0x19a)]),_0xa5a867=b(_0x30c805),_0x24dea6=a(_0x4a5dd2['startOffset'],_0x4a5dd2[_0x468ad3(0x1ae)]),_0x526a0f=_0x24dea6?(_0xddbd1e=_0xa5a867['blockRanges'])==null?void 0x0:_0xddbd1e[_0x468ad3(0x196)](_0x51a223=>_0x51a223['startIndex']===_0x24dea6[_0x468ad3(0x1f5)]&&_0x51a223['endIndex']+0x1===_0x24dea6['endOffset']):void 0x0,{startOffset:_0x1738fc,endOffset:_0xb35c61}=_0x526a0f?_0x24dea6:x(_0xa5a867,_0x4a5dd2['startOffset'],_0x4a5dd2['endOffset']),_0x3dcf25=C(_0xa5a867,_0x1738fc,_0xb35c61),_0x3326c9=(_0x31278c=_0x526a0f==null?void 0x0:_0x526a0f[_0x468ad3(0x190)])==null?_0x4a5dd2[_0x468ad3(0x190)]:_0x31278c;if(_0x526a0f)return _0x526a0f['blockType']=r,o(_0xa5a867,_0x1738fc,_0xb35c61),p(_0xa5a867,_0x1738fc,_0xb35c61,_0x3dcf25),{'nextDocumentData':_0x30c805,'cursorOffset':_0x1738fc+0x1};if(_0x1738fc===_0xb35c61){let _0x144536=''+e['DataStreamTreeTokenType'][_0x468ad3(0x1de)]+e[_0x468ad3(0x1ba)]['PARAGRAPH']+e['DataStreamTreeTokenType'][_0x468ad3(0x1ea)];return k(_0xa5a867,_0x1738fc,_0x144536,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':f(!0x0,!0x0,_0x3dcf25)}],'blockRanges':[{'blockId':_0x3326c9,'blockType':r,'startIndex':0x0,'endIndex':_0x144536[_0x468ad3(0x1c6)]-0x1}]}),{'nextDocumentData':_0x30c805,'cursorOffset':_0x1738fc+0x1};}return k(_0xa5a867,_0xb35c61,e[_0x468ad3(0x1ba)][_0x468ad3(0x1ea)]),k(_0xa5a867,_0x1738fc,e['DataStreamTreeTokenType'][_0x468ad3(0x1de)]),p(_0xa5a867,_0x1738fc,_0xb35c61+0x1,_0x3dcf25),_0xa5a867[_0x468ad3(0x1cb)]=[...(_0x34507b=_0xa5a867[_0x468ad3(0x1cb)])==null?[]:_0x34507b,{'blockId':_0x3326c9,'blockType':r,'startIndex':_0x1738fc,'endIndex':_0xb35c61+0x1}][_0x468ad3(0x1b7)]((_0x246384,_0x104aec)=>_0x246384[_0x468ad3(0x1c2)]-_0x104aec[_0x468ad3(0x1c2)]),{'nextDocumentData':_0x30c805,'cursorOffset':_0x1738fc+0x1};}function a(_0x57f6fb,_0x56ec4a){const _0x29b4e2=_0xa1cf20;return _0x57f6fb==null||_0x56ec4a==null||_0x57f6fb===_0x56ec4a?null:{'startOffset':Math[_0x29b4e2(0x1c9)](_0x57f6fb,_0x56ec4a),'endOffset':Math['max'](_0x57f6fb,_0x56ec4a)};}function _0x4727(){const _0x5e7063=['8Shzaiw','syncExecuteCommand','customRanges','getId','endTokenOffset','quote','from','body','getRange','FDocument','nextDocumentData','_getBlockRange','tables','Module','1090vTOJKB','cursorOffset','paragraphStartIndex','cancelEmptyParagraph','endOffset','every','textRuns','getSnapshot','get','PARAGRAPH','docs-quote.command.exit','500472QfPywR','paragraph','sort','dataStream','defineProperty','DataStreamTreeTokenType','sectionBreaks','paragraphStyle','Document\x20body\x20is\x20required','max','customBlocks','_commandService','getUnitId','startIndex','spaceAbove','previousDocumentData','_injector','length','paragraphs','690672qvGJmD','min','JSONX','blockRanges','114169jxLBzP','UNIVER_DOC','CommandType','IUniverInstanceService','ICommandService','slice','7ejJQLf','endIndex','SECTION_BREAK','customDecorations','getUniverDocInstance','string','3855096hKmBUy','text','spaceBelow','indentEnd','generateRandomId','deepClone','BLOCK_START','968682MVXUFi','some','indexOf','findQuotes','reduce','docs-quote.command.insert','FDocsQuote','1293380owhJHH','getText','docs-quote-','4dXeFcS','BLOCK_END','_runtime','now','commandService','exit','filter','toStringTag','join','includes','getTextRanges','blockType','startOffset','forEach','Tools','blockId','map','indentStart','DocSelectionManagerService','unitId','getInstance','find','RichTextEditingMutation','docs-quote.command.cancel-empty-paragraph','COMMAND','documentData','228809knXBeT'];_0x4727=function(){return _0x5e7063;};return _0x4727();}function o(_0x16d912,_0x1ee4d8,_0x2ead1d){const _0x3511e6=_0xa1cf20;var _0x33cb9d;((_0x33cb9d=_0x16d912[_0x3511e6(0x1c7)])==null?[]:_0x33cb9d)[_0x3511e6(0x1ef)](_0x286de5=>_0x286de5[_0x3511e6(0x1c2)]>_0x1ee4d8&&_0x286de5['startIndex']<_0x2ead1d)[_0x3511e6(0x1f6)](_0x290d2a=>{const _0x46d7bd=_0x3511e6;var _0xf0bf52;let _0x59d115={...(_0xf0bf52=_0x290d2a[_0x46d7bd(0x1bc)])==null?{}:_0xf0bf52};delete _0x59d115[_0x46d7bd(0x1db)],delete _0x59d115[_0x46d7bd(0x1c3)],delete _0x59d115[_0x46d7bd(0x1da)],delete _0x59d115['textStyle'],_0x290d2a[_0x46d7bd(0x1bc)]=_0x59d115;});}function s(_0x1b3bc6){const _0x21f4fe=_0xa1cf20;var _0x1b78b4,_0x1f13fc;let _0x4947df=y(_0x1b3bc6[_0x21f4fe(0x19a)]),_0x564d19=b(_0x4947df),_0x167f41=d(_0x564d19,_0x1b3bc6['cursorOffset']);if(!_0x167f41)return null;let _0x1476cb=h(_0x564d19,_0x167f41),_0x4eeef7=_0x1476cb[_0x1476cb['length']-0x1];if(!_0x4eeef7||!g(_0x564d19,_0x167f41,_0x4eeef7)||_0x1b3bc6[_0x21f4fe(0x1ab)]<_0x4eeef7[_0x21f4fe(0x1c2)])return null;let _0x359810=E(_0x564d19,_0x167f41,_0x4eeef7);if(_0x359810>=_0x167f41[_0x21f4fe(0x1d3)])return null;_0x564d19[_0x21f4fe(0x1b8)]=[_0x564d19[_0x21f4fe(0x1b8)][_0x21f4fe(0x1d1)](0x0,_0x359810),e['DataStreamTreeTokenType'][_0x21f4fe(0x1ea)],_0x564d19[_0x21f4fe(0x1b8)][_0x21f4fe(0x1d1)](_0x359810,_0x167f41['endIndex']),_0x564d19[_0x21f4fe(0x1b8)][_0x21f4fe(0x1d1)](_0x167f41[_0x21f4fe(0x1d3)]+0x1)][_0x21f4fe(0x1f1)](''),R(_0x564d19['paragraphs'],_0x359810,_0x167f41[_0x21f4fe(0x1d3)],0x1),R(_0x564d19['sectionBreaks'],_0x359810,_0x167f41[_0x21f4fe(0x1d3)],0x1),R(_0x564d19[_0x21f4fe(0x1bf)],_0x359810,_0x167f41['endIndex'],0x1),z(_0x564d19[_0x21f4fe(0x1b0)],_0x359810,_0x167f41[_0x21f4fe(0x1d3)],0x1),B(_0x564d19[_0x21f4fe(0x1a8)],_0x359810,_0x167f41[_0x21f4fe(0x1d3)],0x1),B(_0x564d19[_0x21f4fe(0x19e)],_0x359810,_0x167f41[_0x21f4fe(0x1d3)],0x1),B(_0x564d19[_0x21f4fe(0x1d5)],_0x359810,_0x167f41['endIndex'],0x1),(_0x1b78b4=_0x564d19[_0x21f4fe(0x1cb)])==null||_0x1b78b4[_0x21f4fe(0x1f6)](_0x3b71cd=>{const _0x1e8542=_0x21f4fe;_0x3b71cd===_0x167f41||_0x3b71cd[_0x1e8542(0x190)]===_0x167f41[_0x1e8542(0x190)]?_0x3b71cd[_0x1e8542(0x1d3)]=_0x359810:_0x3b71cd[_0x1e8542(0x1c2)]>=_0x359810&&_0x3b71cd[_0x1e8542(0x1c2)]<_0x167f41[_0x1e8542(0x1d3)]&&(_0x3b71cd[_0x1e8542(0x1c2)]+=0x1,_0x3b71cd[_0x1e8542(0x1d3)]+=0x1);});let _0x94042d=h(_0x564d19,{..._0x167f41,'endIndex':_0x359810});_0x94042d[_0x21f4fe(0x1f6)]((_0x557829,_0xa88018)=>{const _0x42cb80=_0x21f4fe;var _0x33a97b;_0x557829[_0x42cb80(0x1bc)]={...(_0x33a97b=_0x557829[_0x42cb80(0x1bc)])==null?{}:_0x33a97b,...f(_0xa88018===0x0,_0xa88018===_0x94042d[_0x42cb80(0x1c6)]-0x1)};});let _0x18bbef=(_0x1f13fc=_0x564d19[_0x21f4fe(0x1c7)])==null?void 0x0:_0x1f13fc[_0x21f4fe(0x196)](_0xdca784=>_0xdca784['startIndex']===_0x359810+0x1);return _0x18bbef&&(_0x18bbef['paragraphStyle']=m(_0x18bbef[_0x21f4fe(0x1bc)])),{'nextDocumentData':_0x4947df,'cursorOffset':_0x359810+0x1};}function c(_0x3f8f38){const _0xae8a08=_0xa1cf20;let _0x19bdd7=y(_0x3f8f38[_0xae8a08(0x19a)]),_0x3bb3f3=b(_0x19bdd7),_0x84523a=d(_0x3bb3f3,_0x3f8f38[_0xae8a08(0x1ab)]);return _0x84523a&&(l(_0x19bdd7,_0x3bb3f3,_0x84523a,_0x3f8f38[_0xae8a08(0x1ab)],_0x3f8f38[_0xae8a08(0x1ac)])||u(_0x19bdd7,_0x3bb3f3,_0x84523a,_0x3f8f38[_0xae8a08(0x1ab)]))||null;}function l(_0x29832c,_0x41ebff,_0x109400,_0x1a0b1a,_0x177017){const _0x5c9723=_0xa1cf20;let _0x7923a4=O(_0x41ebff,_0x109400,_0x1a0b1a,_0x177017);if(!_0x7923a4)return null;let _0x521a03=_0x7923a4[_0x5c9723(0x1a0)]-0x1;return A(_0x41ebff,_0x7923a4[_0x5c9723(0x1b6)][_0x5c9723(0x1c2)],_0x7923a4[_0x5c9723(0x1b6)][_0x5c9723(0x1c2)]+0x1),{'nextDocumentData':_0x29832c,'cursorOffset':_0x521a03};}function u(_0x7e7faf,_0x58f4ea,_0x293586,_0x7ae1cd){const _0x14627f=_0xa1cf20;if(_0x7ae1cd!==_0x293586[_0x14627f(0x1c2)]+0x1)return null;let _0x47c8db=h(_0x58f4ea,_0x293586),_0x2715f2=_0x47c8db[0x0];return!_0x2715f2||E(_0x58f4ea,_0x293586,_0x2715f2)!==_0x7ae1cd?null:_0x47c8db[_0x14627f(0x1c6)]===0x1?_(_0x7e7faf,_0x58f4ea,_0x293586,_0x2715f2):v(_0x7e7faf,_0x58f4ea,_0x293586,_0x2715f2);}function d(_0x547289,_0x49c933){const _0x5ddc50=_0xa1cf20;var _0x2dca8c;return(_0x2dca8c=_0x547289[_0x5ddc50(0x1cb)])==null?void 0x0:_0x2dca8c['find'](_0x45b5a6=>{const _0x3f70d2=_0x5ddc50;let _0x29d5a0=D(_0x547289,_0x45b5a6);return _0x45b5a6[_0x3f70d2(0x1f4)]===_0x3f70d2(0x1a1)&&_0x45b5a6[_0x3f70d2(0x1c2)]<=_0x49c933&&_0x49c933<=_0x29d5a0+0x2;});}function f(_0x1ea77a,_0x4857b3,_0x526f3d=!0x1){return{'indentStart':{'v':0x16},..._0x1ea77a&&_0x526f3d?{'spaceAbove':{'v':0x8}}:{}};}function p(_0xb37401,_0xb7aee1,_0x5ed4b6,_0x3bfb94=!0x1){const _0x3ecefa=_0xa1cf20;var _0x24f1cd;let _0x5263ea=((_0x24f1cd=_0xb37401[_0x3ecefa(0x1c7)])==null?[]:_0x24f1cd)[_0x3ecefa(0x1ef)](_0x2bbaa0=>_0x2bbaa0[_0x3ecefa(0x1c2)]>_0xb7aee1&&_0x2bbaa0[_0x3ecefa(0x1c2)]<_0x5ed4b6);_0x5263ea[_0x3ecefa(0x1f6)]((_0x5ef700,_0x1f26e8)=>{const _0x5ec25e=_0x3ecefa;var _0xaec2ce;_0x5ef700['paragraphStyle']={...(_0xaec2ce=_0x5ef700[_0x5ec25e(0x1bc)])==null?{}:_0xaec2ce,...f(_0x1f26e8===0x0,_0x1f26e8===_0x5263ea[_0x5ec25e(0x1c6)]-0x1,_0x3bfb94)};});}function m(_0x26b508){const _0x1886d4=_0xa1cf20;let _0x3c2fc5={..._0x26b508==null?{}:_0x26b508};return delete _0x3c2fc5[_0x1886d4(0x192)],delete _0x3c2fc5[_0x1886d4(0x1c3)],delete _0x3c2fc5[_0x1886d4(0x1da)],_0x3c2fc5;}function h(_0x4fa267,_0x3c6746){const _0x471af8=_0xa1cf20;var _0x52a677;let _0x33c076=D(_0x4fa267,_0x3c6746);return((_0x52a677=_0x4fa267['paragraphs'])==null?[]:_0x52a677)['filter'](_0xcbdfa0=>_0xcbdfa0[_0x471af8(0x1c2)]>_0x3c6746[_0x471af8(0x1c2)]&&_0xcbdfa0[_0x471af8(0x1c2)]<_0x33c076);}function g(_0x4361e8,_0x2ce42c,_0x3e31ba){const _0x1006c4=_0xa1cf20;let _0x5cf6a1=E(_0x4361e8,_0x2ce42c,_0x3e31ba),_0xbd3e2=_0x4361e8[_0x1006c4(0x1b8)]['slice'](_0x5cf6a1,_0x3e31ba[_0x1006c4(0x1c2)]);return Array[_0x1006c4(0x1a2)](_0xbd3e2)[_0x1006c4(0x1af)](_0x279989=>_0x279989===e['DataStreamTreeTokenType'][_0x1006c4(0x1de)]||_0x279989===e[_0x1006c4(0x1ba)][_0x1006c4(0x1ea)]);}function _(_0x3ea008,_0x5c3ab4,_0x294c23,_0x43116b){const _0x5f464d=_0xa1cf20;var _0x27d0ab,_0x515ba4;let _0x2286a6=_0x294c23['startIndex'];A(_0x5c3ab4,_0x294c23[_0x5f464d(0x1d3)],_0x294c23[_0x5f464d(0x1d3)]+0x1),A(_0x5c3ab4,_0x294c23[_0x5f464d(0x1c2)],_0x294c23[_0x5f464d(0x1c2)]+0x1),_0x5c3ab4[_0x5f464d(0x1cb)]=(_0x27d0ab=_0x5c3ab4[_0x5f464d(0x1cb)])==null?void 0x0:_0x27d0ab[_0x5f464d(0x1ef)](_0x39bbae=>_0x39bbae[_0x5f464d(0x190)]!==_0x294c23[_0x5f464d(0x190)]);let _0x31b747=(_0x515ba4=_0x5c3ab4[_0x5f464d(0x1c7)])==null?void 0x0:_0x515ba4[_0x5f464d(0x196)](_0x48de7f=>_0x48de7f[_0x5f464d(0x1c2)]===_0x43116b[_0x5f464d(0x1c2)]-0x1);return _0x31b747&&(_0x31b747[_0x5f464d(0x1bc)]=m(_0x31b747[_0x5f464d(0x1bc)])),{'nextDocumentData':_0x3ea008,'cursorOffset':_0x2286a6};}function v(_0x1d6cb0,_0x4fd2db,_0x3d76c6,_0x57f71f){const _0x140cf5=_0xa1cf20;var _0x2c1b0e,_0x475dbd;let _0x3eedb3=_0x57f71f[_0x140cf5(0x1c2)],_0x27fae0=_0x3d76c6[_0x140cf5(0x1c2)];k(_0x4fd2db,_0x57f71f[_0x140cf5(0x1c2)]+0x1,e[_0x140cf5(0x1ba)][_0x140cf5(0x1de)]),A(_0x4fd2db,_0x3d76c6[_0x140cf5(0x1c2)],_0x3d76c6[_0x140cf5(0x1c2)]+0x1);let _0x599749=(_0x2c1b0e=_0x4fd2db[_0x140cf5(0x1c7)])==null?void 0x0:_0x2c1b0e[_0x140cf5(0x196)](_0x42407c=>_0x42407c['startIndex']===_0x3eedb3-0x1),_0xc15a8=(_0x475dbd=_0x4fd2db[_0x140cf5(0x1cb)])==null?void 0x0:_0x475dbd['find'](_0x43ce8e=>_0x43ce8e[_0x140cf5(0x190)]===_0x3d76c6[_0x140cf5(0x190)]);return _0x599749&&(_0x599749['paragraphStyle']=m(_0x599749[_0x140cf5(0x1bc)]),_0xc15a8&&(_0xc15a8[_0x140cf5(0x1c2)]=_0x599749[_0x140cf5(0x1c2)]+0x1)),_0xc15a8&&p(_0x4fd2db,_0xc15a8[_0x140cf5(0x1c2)],_0xc15a8['endIndex']),{'nextDocumentData':_0x1d6cb0,'cursorOffset':_0x27fae0};}function y(_0x12ebb5){const _0x10e8ce=_0xa1cf20;return e[_0x10e8ce(0x1f7)][_0x10e8ce(0x1dd)](_0x12ebb5);}function b(_0x4dc415){const _0x59d226=_0xa1cf20;if(!_0x4dc415[_0x59d226(0x1a3)])throw Error(_0x59d226(0x1bd));return _0x4dc415[_0x59d226(0x1a3)];}function x(_0x591127,_0x13d3b2,_0x5e33ad){const _0x18eecc=_0xa1cf20;if(_0x13d3b2==null||_0x5e33ad==null){let _0x18bf60=S(_0x591127);return{'startOffset':_0x18bf60,'endOffset':_0x18bf60};}let _0x21e917=Math[_0x18eecc(0x1c9)](_0x13d3b2,_0x5e33ad),_0xd54cb5=Math['max'](_0x13d3b2,_0x5e33ad);return _0x21e917===_0xd54cb5?{'startOffset':_0x21e917,'endOffset':_0x21e917}:w(_0x591127,_0x21e917,_0xd54cb5);}function S(_0x21c965){const _0x3ad617=_0xa1cf20;return _0x21c965[_0x3ad617(0x1b8)]['endsWith'](e[_0x3ad617(0x1ba)][_0x3ad617(0x1d4)])?Math[_0x3ad617(0x1be)](0x0,_0x21c965[_0x3ad617(0x1b8)][_0x3ad617(0x1c6)]-0x1):_0x21c965[_0x3ad617(0x1b8)]['length'];}function C(_0x542806,_0x1d6aa7,_0x3fd38d){const _0x4e1158=_0xa1cf20;var _0x20480e;let _0x220d49=Math[_0x4e1158(0x1c9)](_0x1d6aa7,_0x3fd38d),_0x531e9e=Math['max'](_0x1d6aa7,_0x3fd38d);return!!((_0x20480e=_0x542806[_0x4e1158(0x1a8)])!=null&&_0x20480e[_0x4e1158(0x1e0)](_0xb35407=>_0x220d49>_0xb35407[_0x4e1158(0x1c2)]&&_0x220d49<_0xb35407['endIndex']||_0x531e9e>_0xb35407[_0x4e1158(0x1c2)]&&_0x531e9e<_0xb35407['endIndex']||_0x220d49<=_0xb35407[_0x4e1158(0x1c2)]&&_0x531e9e>=_0xb35407[_0x4e1158(0x1d3)]));}function w(_0x66888c,_0x452d34,_0x5ae021){const _0x320597=_0xa1cf20;var _0x49ae10,_0x2ec1c4;let _0x461a12=[...(_0x49ae10=_0x66888c[_0x320597(0x1c7)])==null?[]:_0x49ae10]['sort']((_0x3b08ce,_0x13fad9)=>_0x3b08ce[_0x320597(0x1c2)]-_0x13fad9['startIndex']),_0x18622d=_0x461a12[_0x320597(0x196)]((_0x2a35f2,_0x3a56c0)=>(_0x3a56c0===0x0?0x0:_0x461a12[_0x3a56c0-0x1]['startIndex']+0x1)<=_0x452d34&&_0x452d34<=_0x2a35f2[_0x320597(0x1c2)]),_0x1b3254=(_0x2ec1c4=_0x461a12[_0x320597(0x196)](_0x5e4215=>_0x5e4215[_0x320597(0x1c2)]>=_0x5ae021-0x1))==null?_0x461a12[_0x461a12[_0x320597(0x1c6)]-0x1]:_0x2ec1c4;return{'startOffset':_0x18622d?T(_0x461a12,_0x18622d):_0x452d34,'endOffset':_0x1b3254?_0x1b3254[_0x320597(0x1c2)]+0x1:_0x5ae021};}function T(_0x530c56,_0x4c77ef){const _0x1c9b53=_0xa1cf20;let _0x2bed99=_0x530c56[_0x1c9b53(0x1e1)](_0x4c77ef);return _0x2bed99>0x0?_0x530c56[_0x2bed99-0x1][_0x1c9b53(0x1c2)]+0x1:0x0;}function E(_0x378633,_0x2a25ad,_0x956a15){const _0x330343=_0xa1cf20;var _0x49f4ac;return Math[_0x330343(0x1be)](T((_0x49f4ac=_0x378633[_0x330343(0x1c7)])==null?[]:_0x49f4ac,_0x956a15),_0x2a25ad['startIndex']+0x1);}function D(_0x57373f,_0x1fbfdd){const _0xc2d654=_0xa1cf20;return _0x57373f[_0xc2d654(0x1b8)][_0x1fbfdd['endIndex']]===e[_0xc2d654(0x1ba)][_0xc2d654(0x1ea)]?_0x1fbfdd[_0xc2d654(0x1d3)]:_0x57373f[_0xc2d654(0x1b8)][_0x1fbfdd[_0xc2d654(0x1d3)]+0x1]===e[_0xc2d654(0x1ba)][_0xc2d654(0x1ea)]?_0x1fbfdd[_0xc2d654(0x1d3)]+0x1:_0x1fbfdd[_0xc2d654(0x1d3)];}function O(_0x33bb9e,_0x3e8fac,_0x274d1c,_0x44f3a4){const _0x299ace=_0xa1cf20;var _0x459870,_0x141dff;let _0x4d5922=D(_0x33bb9e,_0x3e8fac),_0x2b9770=((_0x459870=_0x33bb9e[_0x299ace(0x1c7)])==null?[]:_0x459870)[_0x299ace(0x196)](_0x50053a=>_0x50053a['startIndex']===_0x4d5922+0x1);if(!_0x2b9770||_0x44f3a4!=null&&_0x2b9770['startIndex']!==_0x44f3a4||_0x274d1c<_0x4d5922||_0x274d1c>_0x2b9770[_0x299ace(0x1c2)]+0x1||_0x33bb9e[_0x299ace(0x1b8)][_0x2b9770['startIndex']]!==e[_0x299ace(0x1ba)][_0x299ace(0x1b3)])return null;let _0x4c0ca4=T((_0x141dff=_0x33bb9e[_0x299ace(0x1c7)])==null?[]:_0x141dff,_0x2b9770),_0x183386=_0x33bb9e[_0x299ace(0x1b8)][_0x299ace(0x1d1)](_0x4c0ca4,_0x2b9770['startIndex']);return Array['from'](_0x183386)['every'](_0x30a2bc=>_0x30a2bc===e[_0x299ace(0x1ba)][_0x299ace(0x1ea)])?{'paragraph':_0x2b9770,'endTokenOffset':_0x4d5922}:null;}function k(_0x579744,_0x351322,_0x1fbe14,_0x16dd44={}){const _0x5b2bef=_0xa1cf20;var _0x15c35e,_0x24cf53;if(_0x1fbe14){if(_0x579744['dataStream']=''+_0x579744[_0x5b2bef(0x1b8)]['slice'](0x0,_0x351322)+_0x1fbe14+_0x579744[_0x5b2bef(0x1b8)][_0x5b2bef(0x1d1)](_0x351322),j(_0x579744,_0x351322,_0x1fbe14[_0x5b2bef(0x1c6)]),(_0x15c35e=_0x16dd44[_0x5b2bef(0x1c7)])!=null&&_0x15c35e[_0x5b2bef(0x1c6)]){var _0x44a3a6;_0x579744[_0x5b2bef(0x1c7)]=[...(_0x44a3a6=_0x579744['paragraphs'])==null?[]:_0x44a3a6,..._0x16dd44['paragraphs'][_0x5b2bef(0x191)](_0x4c41d6=>({..._0x4c41d6,'startIndex':_0x4c41d6['startIndex']+_0x351322}))][_0x5b2bef(0x1b7)]((_0x45096d,_0x435159)=>_0x45096d[_0x5b2bef(0x1c2)]-_0x435159[_0x5b2bef(0x1c2)]);}if((_0x24cf53=_0x16dd44[_0x5b2bef(0x1cb)])!=null&&_0x24cf53[_0x5b2bef(0x1c6)]){var _0x5853f3;_0x579744[_0x5b2bef(0x1cb)]=[...(_0x5853f3=_0x579744[_0x5b2bef(0x1cb)])==null?[]:_0x5853f3,..._0x16dd44[_0x5b2bef(0x1cb)]['map'](_0x292e6a=>({..._0x292e6a,'startIndex':_0x292e6a[_0x5b2bef(0x1c2)]+_0x351322,'endIndex':_0x292e6a[_0x5b2bef(0x1d3)]+_0x351322}))]['sort']((_0x88c04d,_0x252f38)=>_0x88c04d[_0x5b2bef(0x1c2)]-_0x252f38[_0x5b2bef(0x1c2)]);}}}function A(_0x5b71f3,_0x2e0b94,_0x294761){const _0x3c7d5b=_0xa1cf20;let _0x599bc7=_0x294761-_0x2e0b94;_0x5b71f3['dataStream']=''+_0x5b71f3[_0x3c7d5b(0x1b8)]['slice'](0x0,_0x2e0b94)+_0x5b71f3[_0x3c7d5b(0x1b8)][_0x3c7d5b(0x1d1)](_0x294761),M(_0x5b71f3,_0x2e0b94,_0x599bc7);}function j(_0x3d6a26,_0x559d0a,_0x565bd1){const _0x217513=_0xa1cf20;_0x3d6a26[_0x217513(0x1c7)]=N(_0x3d6a26[_0x217513(0x1c7)],_0x559d0a,_0x565bd1),_0x3d6a26['sectionBreaks']=N(_0x3d6a26[_0x217513(0x1bb)],_0x559d0a,_0x565bd1),_0x3d6a26[_0x217513(0x1bf)]=N(_0x3d6a26[_0x217513(0x1bf)],_0x559d0a,_0x565bd1),_0x3d6a26['textRuns']=F(_0x3d6a26['textRuns'],_0x559d0a,_0x565bd1),_0x3d6a26[_0x217513(0x1a8)]=I(_0x3d6a26[_0x217513(0x1a8)],_0x559d0a,_0x565bd1),_0x3d6a26[_0x217513(0x19e)]=I(_0x3d6a26[_0x217513(0x19e)],_0x559d0a,_0x565bd1),_0x3d6a26[_0x217513(0x1d5)]=I(_0x3d6a26[_0x217513(0x1d5)],_0x559d0a,_0x565bd1),_0x3d6a26['blockRanges']=I(_0x3d6a26['blockRanges'],_0x559d0a,_0x565bd1);}function M(_0x3a503e,_0x174b19,_0x2d24cf){const _0x3c0d08=_0xa1cf20;var _0x498fe9,_0x2532e4;_0x3a503e[_0x3c0d08(0x1c7)]=P(_0x3a503e[_0x3c0d08(0x1c7)],_0x174b19,_0x2d24cf),_0x3a503e[_0x3c0d08(0x1bb)]=P(_0x3a503e[_0x3c0d08(0x1bb)],_0x174b19,_0x2d24cf),_0x3a503e[_0x3c0d08(0x1bf)]=P(_0x3a503e[_0x3c0d08(0x1bf)],_0x174b19,_0x2d24cf),_0x3a503e[_0x3c0d08(0x1b0)]=(_0x498fe9=L((_0x2532e4=_0x3a503e[_0x3c0d08(0x1b0)])==null?void 0x0:_0x2532e4[_0x3c0d08(0x191)](_0x3391c1=>({..._0x3391c1,'startIndex':_0x3391c1['st'],'endIndex':_0x3391c1['ed']})),_0x174b19,_0x2d24cf))==null?void 0x0:_0x498fe9[_0x3c0d08(0x191)](_0x1cfd76=>{let {startIndex:_0x4e96b7,endIndex:_0x57da0f,..._0x937d9f}=_0x1cfd76;return{..._0x937d9f,'st':_0x4e96b7,'ed':_0x57da0f};}),_0x3a503e[_0x3c0d08(0x1a8)]=L(_0x3a503e[_0x3c0d08(0x1a8)],_0x174b19,_0x2d24cf),_0x3a503e[_0x3c0d08(0x19e)]=L(_0x3a503e[_0x3c0d08(0x19e)],_0x174b19,_0x2d24cf),_0x3a503e[_0x3c0d08(0x1d5)]=L(_0x3a503e[_0x3c0d08(0x1d5)],_0x174b19,_0x2d24cf),_0x3a503e[_0x3c0d08(0x1cb)]=L(_0x3a503e[_0x3c0d08(0x1cb)],_0x174b19,_0x2d24cf);}function N(_0x1368b9,_0x223996,_0x2e3485){const _0x5acedd=_0xa1cf20;return _0x1368b9==null?void 0x0:_0x1368b9[_0x5acedd(0x191)](_0x237e8e=>_0x237e8e[_0x5acedd(0x1c2)]>=_0x223996?{..._0x237e8e,'startIndex':_0x237e8e[_0x5acedd(0x1c2)]+_0x2e3485}:_0x237e8e);}function P(_0x2b1276,_0x3a16c8,_0x3443b0){const _0x383beb=_0xa1cf20;let _0x20d53b=_0x3a16c8+_0x3443b0;return _0x2b1276==null?void 0x0:_0x2b1276[_0x383beb(0x191)](_0x3d1d9e=>_0x3d1d9e[_0x383beb(0x1c2)]>=_0x3a16c8&&_0x3d1d9e[_0x383beb(0x1c2)]<_0x20d53b?null:_0x3d1d9e[_0x383beb(0x1c2)]>=_0x20d53b?{..._0x3d1d9e,'startIndex':_0x3d1d9e['startIndex']-_0x3443b0}:_0x3d1d9e)[_0x383beb(0x1ef)](_0x3d8e07=>_0x3d8e07!=null);}function F(_0x4b4b45,_0x12827b,_0x3f6144){return _0x4b4b45==null?void 0x0:_0x4b4b45['map'](_0x204558=>_0x204558['st']>=_0x12827b?{..._0x204558,'st':_0x204558['st']+_0x3f6144,'ed':_0x204558['ed']+_0x3f6144}:_0x204558['ed']>_0x12827b?{..._0x204558,'ed':_0x204558['ed']+_0x3f6144}:_0x204558);}function I(_0x158035,_0x11b8d5,_0x4e100e){const _0xec8535=_0xa1cf20;return _0x158035==null?void 0x0:_0x158035[_0xec8535(0x191)](_0x45425c=>_0x45425c[_0xec8535(0x1c2)]>=_0x11b8d5?{..._0x45425c,'startIndex':_0x45425c[_0xec8535(0x1c2)]+_0x4e100e,'endIndex':_0x45425c[_0xec8535(0x1d3)]+_0x4e100e}:_0x45425c[_0xec8535(0x1d3)]>=_0x11b8d5?{..._0x45425c,'endIndex':_0x45425c[_0xec8535(0x1d3)]+_0x4e100e}:_0x45425c);}function L(_0x1205fe,_0x96db09,_0x12a17d){const _0x195a24=_0xa1cf20;let _0x14c0ea=_0x96db09+_0x12a17d;return _0x1205fe==null?void 0x0:_0x1205fe[_0x195a24(0x191)](_0xb04f0d=>_0xb04f0d[_0x195a24(0x1c2)]>=_0x96db09&&_0xb04f0d[_0x195a24(0x1d3)]<_0x14c0ea?null:_0xb04f0d[_0x195a24(0x1c2)]>=_0x14c0ea?{..._0xb04f0d,'startIndex':_0xb04f0d['startIndex']-_0x12a17d,'endIndex':_0xb04f0d[_0x195a24(0x1d3)]-_0x12a17d}:_0xb04f0d['endIndex']>=_0x96db09?{..._0xb04f0d,'startIndex':_0xb04f0d['startIndex']<_0x96db09?_0xb04f0d['startIndex']:_0x96db09,'endIndex':Math[_0x195a24(0x1be)](_0x96db09,_0xb04f0d[_0x195a24(0x1d3)]-_0x12a17d)}:_0xb04f0d)[_0x195a24(0x1ef)](_0x42bd22=>_0x42bd22!=null);}function R(_0x53ff70,_0x5a3122,_0x2f571d,_0x4368b9){const _0x3b2d16=_0xa1cf20;_0x53ff70==null||_0x53ff70[_0x3b2d16(0x1f6)](_0x1addf7=>{const _0x4c18bb=_0x3b2d16;_0x1addf7[_0x4c18bb(0x1c2)]>=_0x5a3122&&_0x1addf7[_0x4c18bb(0x1c2)]<_0x2f571d&&(_0x1addf7[_0x4c18bb(0x1c2)]+=_0x4368b9);});}function z(_0x57da3d,_0x26195b,_0x5f0429,_0x584c2f){_0x57da3d==null||_0x57da3d['forEach'](_0x2ce1a4=>{_0x2ce1a4['st']>=_0x26195b&&_0x2ce1a4['st']<_0x5f0429?(_0x2ce1a4['st']+=_0x584c2f,_0x2ce1a4['ed']+=_0x584c2f):_0x2ce1a4['ed']>_0x26195b&&_0x2ce1a4['ed']<_0x5f0429&&(_0x2ce1a4['ed']+=_0x584c2f);});}function B(_0x1065db,_0x5f24bf,_0x16c91c,_0x2d0bf8){const _0x509290=_0xa1cf20;_0x1065db==null||_0x1065db[_0x509290(0x1f6)](_0x668260=>{const _0x16acf8=_0x509290;_0x668260[_0x16acf8(0x1c2)]>=_0x5f24bf&&_0x668260['startIndex']<_0x16c91c?(_0x668260[_0x16acf8(0x1c2)]+=_0x2d0bf8,_0x668260['endIndex']+=_0x2d0bf8):_0x668260['endIndex']>_0x5f24bf&&_0x668260[_0x16acf8(0x1d3)]<_0x16c91c&&(_0x668260[_0x16acf8(0x1d3)]+=_0x2d0bf8);});}e[_0xa1cf20(0x1ce)][_0xa1cf20(0x199)];const V={'id':_0xa1cf20(0x1e4),'type':e[_0xa1cf20(0x1ce)]['COMMAND'],'handler':(_0x3c4cb4,_0x5db26c)=>{const _0x546027=_0xa1cf20;var _0x4bad98,_0x22ac5f,_0x1f1d02;let _0x33ac58=W(_0x3c4cb4,_0x5db26c==null?void 0x0:_0x5db26c[_0x546027(0x194)]);if(!_0x33ac58)return!0x1;let _0x5ebc56=G(_0x3c4cb4),_0x43e46d=i({'blockId':(_0x4bad98=_0x5db26c==null?void 0x0:_0x5db26c[_0x546027(0x190)])==null?(0x0,e[_0x546027(0x1dc)])(0x6):_0x4bad98,'documentData':_0x33ac58[_0x546027(0x1c4)],'endOffset':(_0x22ac5f=_0x5db26c==null?void 0x0:_0x5db26c[_0x546027(0x1ae)])==null?_0x5ebc56==null?void 0x0:_0x5ebc56['endOffset']:_0x22ac5f,'startOffset':(_0x1f1d02=_0x5db26c==null?void 0x0:_0x5db26c[_0x546027(0x1f5)])==null?_0x5ebc56==null?void 0x0:_0x5ebc56[_0x546027(0x1f5)]:_0x1f1d02});return J(_0x33ac58[_0x546027(0x1ed)],_0x33ac58[_0x546027(0x194)],_0x33ac58['previousDocumentData'],_0x43e46d['nextDocumentData'],_0x43e46d['cursorOffset']);}},H={'id':_0xa1cf20(0x1b4),'type':e['CommandType'][_0xa1cf20(0x199)],'handler':(_0x2c307c,_0x479732)=>{const _0x19fee9=_0xa1cf20;var _0x237f52,_0x227b25;let _0x13e8fb=W(_0x2c307c,_0x479732==null?void 0x0:_0x479732[_0x19fee9(0x194)]);if(!_0x13e8fb)return!0x1;let _0x1c8bc7=(_0x237f52=_0x479732==null?void 0x0:_0x479732['cursorOffset'])==null?(_0x227b25=G(_0x2c307c))==null?void 0x0:_0x227b25['startOffset']:_0x237f52;if(_0x1c8bc7==null)return!0x1;let _0x455b2e=s({'cursorOffset':_0x1c8bc7,'documentData':_0x13e8fb[_0x19fee9(0x1c4)]});return _0x455b2e?J(_0x13e8fb['commandService'],_0x13e8fb[_0x19fee9(0x194)],_0x13e8fb['previousDocumentData'],_0x455b2e[_0x19fee9(0x1a6)],_0x455b2e['cursorOffset']):!0x1;}},U={'id':_0xa1cf20(0x198),'type':e[_0xa1cf20(0x1ce)][_0xa1cf20(0x199)],'handler':(_0x4ff894,_0x1aa3a4)=>{const _0x51de42=_0xa1cf20;var _0x19bdc4,_0x3d7ad8;let _0x323367=W(_0x4ff894,_0x1aa3a4==null?void 0x0:_0x1aa3a4['unitId']);if(!_0x323367)return!0x1;let _0xc48018=(_0x19bdc4=_0x1aa3a4==null?void 0x0:_0x1aa3a4[_0x51de42(0x1ab)])==null?(_0x3d7ad8=G(_0x4ff894))==null?void 0x0:_0x3d7ad8[_0x51de42(0x1f5)]:_0x19bdc4;if(_0xc48018==null)return!0x1;let _0x28c60f=c({'cursorOffset':_0xc48018,'documentData':_0x323367[_0x51de42(0x1c4)],'paragraphStartIndex':_0x1aa3a4==null?void 0x0:_0x1aa3a4[_0x51de42(0x1ac)]});return _0x28c60f?J(_0x323367['commandService'],_0x323367[_0x51de42(0x194)],_0x323367[_0x51de42(0x1c4)],_0x28c60f['nextDocumentData'],_0x28c60f['cursorOffset']):!0x1;}};function W(_0xa31233,_0x8c79ee){const _0x2a1a5f=_0xa1cf20;let _0x5c8abc=_0xa31233['get'](e[_0x2a1a5f(0x1cf)]),_0x3ea6eb=_0x8c79ee?_0x5c8abc[_0x2a1a5f(0x1d6)](_0x8c79ee):_0x5c8abc['getCurrentUnitOfType'](e['UniverInstanceType'][_0x2a1a5f(0x1cd)]);return _0x3ea6eb?{'commandService':_0xa31233[_0x2a1a5f(0x1b2)](e[_0x2a1a5f(0x1d0)]),'previousDocumentData':_0x3ea6eb[_0x2a1a5f(0x1b1)](),'unitId':_0x3ea6eb[_0x2a1a5f(0x1c1)]()}:null;}function G(_0x575b02){const _0x51f1c3=_0xa1cf20;var _0x43ca01;return(_0x43ca01=_0x575b02[_0x51f1c3(0x1b2)](n[_0x51f1c3(0x193)])[_0x51f1c3(0x1f3)]())==null?void 0x0:_0x43ca01[0x0];}function K(_0x5249d9,_0x17529e){const _0x109eff=_0xa1cf20;var _0x4ffc7a,_0x2e019e,_0x55b024,_0x4e2213,_0x577dc7,_0x1ee8f5,_0xf749e7,_0x3454eb,_0x352308,_0x14fbed,_0x80ee03,_0x5ac520,_0x12890a,_0x56b4f8,_0x11e6cc,_0x4afdaa,_0x1b9488,_0x438758;let _0x38c1ff=e['JSONX'][_0x109eff(0x195)]();return[q(_0x38c1ff,[_0x109eff(0x1a3),'dataStream'],(_0x4ffc7a=_0x5249d9['body'])==null?void 0x0:_0x4ffc7a[_0x109eff(0x1b8)],(_0x2e019e=_0x17529e['body'])==null?void 0x0:_0x2e019e[_0x109eff(0x1b8)]),q(_0x38c1ff,[_0x109eff(0x1a3),_0x109eff(0x1c7)],(_0x55b024=_0x5249d9['body'])==null?void 0x0:_0x55b024[_0x109eff(0x1c7)],(_0x4e2213=_0x17529e[_0x109eff(0x1a3)])==null?void 0x0:_0x4e2213[_0x109eff(0x1c7)]),q(_0x38c1ff,[_0x109eff(0x1a3),_0x109eff(0x1bb)],(_0x577dc7=_0x5249d9[_0x109eff(0x1a3)])==null?void 0x0:_0x577dc7[_0x109eff(0x1bb)],(_0x1ee8f5=_0x17529e[_0x109eff(0x1a3)])==null?void 0x0:_0x1ee8f5[_0x109eff(0x1bb)]),q(_0x38c1ff,[_0x109eff(0x1a3),_0x109eff(0x1b0)],(_0xf749e7=_0x5249d9[_0x109eff(0x1a3)])==null?void 0x0:_0xf749e7['textRuns'],(_0x3454eb=_0x17529e['body'])==null?void 0x0:_0x3454eb[_0x109eff(0x1b0)]),q(_0x38c1ff,['body','customBlocks'],(_0x352308=_0x5249d9['body'])==null?void 0x0:_0x352308[_0x109eff(0x1bf)],(_0x14fbed=_0x17529e['body'])==null?void 0x0:_0x14fbed[_0x109eff(0x1bf)]),q(_0x38c1ff,[_0x109eff(0x1a3),_0x109eff(0x19e)],(_0x80ee03=_0x5249d9[_0x109eff(0x1a3)])==null?void 0x0:_0x80ee03[_0x109eff(0x19e)],(_0x5ac520=_0x17529e[_0x109eff(0x1a3)])==null?void 0x0:_0x5ac520[_0x109eff(0x19e)]),q(_0x38c1ff,['body',_0x109eff(0x1d5)],(_0x12890a=_0x5249d9[_0x109eff(0x1a3)])==null?void 0x0:_0x12890a[_0x109eff(0x1d5)],(_0x56b4f8=_0x17529e[_0x109eff(0x1a3)])==null?void 0x0:_0x56b4f8[_0x109eff(0x1d5)]),q(_0x38c1ff,[_0x109eff(0x1a3),_0x109eff(0x1a8)],(_0x11e6cc=_0x5249d9[_0x109eff(0x1a3)])==null?void 0x0:_0x11e6cc[_0x109eff(0x1a8)],(_0x4afdaa=_0x17529e[_0x109eff(0x1a3)])==null?void 0x0:_0x4afdaa[_0x109eff(0x1a8)]),q(_0x38c1ff,['body',_0x109eff(0x1cb)],(_0x1b9488=_0x5249d9[_0x109eff(0x1a3)])==null?void 0x0:_0x1b9488['blockRanges'],(_0x438758=_0x17529e[_0x109eff(0x1a3)])==null?void 0x0:_0x438758[_0x109eff(0x1cb)])][_0x109eff(0x1ef)](Boolean)[_0x109eff(0x1e3)]((_0x2daeb2,_0x1c0b15)=>e[_0x109eff(0x1ca)]['compose'](_0x2daeb2,_0x1c0b15),null);}function q(_0x2d2972,_0x1dae70,_0x7f262a,_0x118126){const _0x12cf61=_0xa1cf20;return e[_0x12cf61(0x1f7)]['diffValue'](_0x7f262a,_0x118126)?null:_0x2d2972['replaceOp'](_0x1dae70,_0x7f262a,_0x118126);}function J(_0x22d469,_0x4777d2,_0xcbe223,_0x41ad8b,_0x1f8f52){const _0x34a89f=_0xa1cf20;let _0x8734bd=K(_0xcbe223,_0x41ad8b);return _0x8734bd?!!_0x22d469[_0x34a89f(0x19d)](n[_0x34a89f(0x197)]['id'],{'unitId':_0x4777d2,'actions':_0x8734bd,'textRanges':[{'startOffset':_0x1f8f52,'endOffset':_0x1f8f52,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}var Y=class{constructor(_0x30317d){const _0x368fe1=_0xa1cf20;this[_0x368fe1(0x1eb)]=_0x30317d;}[_0xa1cf20(0x19f)](){const _0x517fa5=_0xa1cf20;return this[_0x517fa5(0x1eb)][_0x517fa5(0x190)];}[_0xa1cf20(0x1a4)](){const _0x194926=_0xa1cf20;let _0x4239f3=this[_0x194926(0x1a7)]();return _0x4239f3?{'blockId':_0x4239f3[_0x194926(0x190)],'endIndex':_0x4239f3[_0x194926(0x1d3)],'startIndex':_0x4239f3[_0x194926(0x1c2)]}:null;}[_0xa1cf20(0x1e7)](){const _0x24983c=_0xa1cf20;var _0x489b49;let _0x56fe37=this[_0x24983c(0x1a7)](),_0x1b4642=(_0x489b49=this[_0x24983c(0x1eb)]['getDocumentData']()[_0x24983c(0x1a3)])==null?void 0x0:_0x489b49[_0x24983c(0x1b8)];return!_0x56fe37||!_0x1b4642?'':X(_0x1b4642[_0x24983c(0x1d1)](_0x56fe37[_0x24983c(0x1c2)]+0x1,_0x56fe37[_0x24983c(0x1d3)]));}['describe'](){const _0x502f38=_0xa1cf20;let _0x5a09b4=this[_0x502f38(0x1a4)]();return _0x5a09b4?{..._0x5a09b4,'text':this[_0x502f38(0x1e7)](),'type':'quote'}:null;}[_0xa1cf20(0x1ee)](_0x13a5a9){const _0x4e86ef=_0xa1cf20;var _0x3285e3;return!!((_0x3285e3=this[_0x4e86ef(0x1eb)][_0x4e86ef(0x1ed)])!=null&&_0x3285e3['syncExecuteCommand'](H['id'],{'cursorOffset':_0x13a5a9,'unitId':this[_0x4e86ef(0x1eb)]['unitId']}));}[_0xa1cf20(0x1ad)](_0x3ec1c0={}){const _0x224848=_0xa1cf20;var _0x4bbcf9;return!!((_0x4bbcf9=this['_runtime']['commandService'])!=null&&_0x4bbcf9[_0x224848(0x19d)](U['id'],{..._0x3ec1c0,'unitId':this['_runtime'][_0x224848(0x194)]}));}[_0xa1cf20(0x1a7)](){const _0x495958=_0xa1cf20;var _0x5f4edf;return(_0x5f4edf=this[_0x495958(0x1eb)]['getDocumentData']()[_0x495958(0x1a3)])==null||(_0x5f4edf=_0x5f4edf[_0x495958(0x1cb)])==null?void 0x0:_0x5f4edf[_0x495958(0x196)](_0x4efebc=>_0x4efebc['blockId']===this[_0x495958(0x1eb)]['blockId']&&_0x4efebc[_0x495958(0x1f4)]==='quote');}};function X(_0x2e49d7){const _0x2a5fbe=_0xa1cf20;return Array[_0x2a5fbe(0x1a2)](_0x2e49d7)[_0x2a5fbe(0x191)](_0x13b2d5=>_0x13b2d5===e[_0x2a5fbe(0x1ba)][_0x2a5fbe(0x1b3)]?'\x0a':_0x13b2d5)[_0x2a5fbe(0x1ef)](_0x32df52=>_0x32df52!==e['DataStreamTreeTokenType'][_0x2a5fbe(0x1de)]&&_0x32df52!==e[_0x2a5fbe(0x1ba)][_0x2a5fbe(0x1ea)]&&_0x32df52!==e[_0x2a5fbe(0x1ba)]['SECTION_BREAK'])[_0x2a5fbe(0x1f1)]('')['replace'](/\n$/,'');}Object['assign'](t[_0xa1cf20(0x1a5)]['prototype'],{'getQuotes'(){const _0x2eba4e=_0xa1cf20;var _0x4c6f53,_0x1dc50e;return(_0x4c6f53=(_0x1dc50e=this['getSnapshot']()[_0x2eba4e(0x1a3)])==null||(_0x1dc50e=_0x1dc50e[_0x2eba4e(0x1cb)])==null?void 0x0:_0x1dc50e[_0x2eba4e(0x1ef)](_0x57cd1b=>_0x57cd1b[_0x2eba4e(0x1f4)]===_0x2eba4e(0x1a1))[_0x2eba4e(0x191)](_0x4ddf3b=>Z(this,_0x4ddf3b['blockId'])))==null?[]:_0x4c6f53;},'getQuote'(_0x494095){const _0x17990d=_0xa1cf20;var _0x1b74bc;return!((_0x1b74bc=this['getSnapshot']()['body'])==null||(_0x1b74bc=_0x1b74bc[_0x17990d(0x1cb)])==null)&&_0x1b74bc[_0x17990d(0x1e0)](_0x1d56ac=>_0x1d56ac[_0x17990d(0x190)]===_0x494095&&_0x1d56ac[_0x17990d(0x1f4)]===_0x17990d(0x1a1))?Z(this,_0x494095):null;},'getQuoteAt'(_0x2976ff){const _0x551f26=_0xa1cf20;var _0x53956a;let _0x18c615=(_0x53956a=this['getSnapshot']()['body'])==null||(_0x53956a=_0x53956a[_0x551f26(0x1cb)])==null||(_0x53956a=_0x53956a[_0x551f26(0x196)](_0x1f968b=>_0x1f968b[_0x551f26(0x1f4)]===_0x551f26(0x1a1)&&_0x1f968b[_0x551f26(0x1c2)]<=_0x2976ff&&_0x2976ff<=_0x1f968b[_0x551f26(0x1d3)]))==null?void 0x0:_0x53956a[_0x551f26(0x190)];return _0x18c615?Z(this,_0x18c615):null;},'findQuoteByText'(_0x5d1d8b){const _0x12f901=_0xa1cf20;var _0x120aa6;return(_0x120aa6=this[_0x12f901(0x1e2)](_0x5d1d8b)[0x0])==null?null:_0x120aa6;},'findQuotes'(_0x5aa6bf){const _0xd05cb2=_0xa1cf20;let _0x4bc7b1=typeof _0x5aa6bf==_0xd05cb2(0x1d7)?{'text':_0x5aa6bf}:_0x5aa6bf;return this['getQuotes']()[_0xd05cb2(0x1ef)](_0x29d05e=>!(_0x4bc7b1[_0xd05cb2(0x190)]&&_0x29d05e[_0xd05cb2(0x19f)]()!==_0x4bc7b1['blockId']||_0x4bc7b1[_0xd05cb2(0x1d9)]&&!_0x29d05e[_0xd05cb2(0x1e7)]()[_0xd05cb2(0x1f2)](_0x4bc7b1[_0xd05cb2(0x1d9)])));},'insertQuote'(_0x5ef795={}){const _0xef7002=_0xa1cf20;var _0x51ec8f,_0x4d6220;let _0x538d39=(_0x51ec8f=_0x5ef795['blockId'])==null?_0xef7002(0x1e8)+Date[_0xef7002(0x1ec)]():_0x51ec8f;return(_0x4d6220=Q(this))!=null&&_0x4d6220[_0xef7002(0x19d)](V['id'],{..._0x5ef795,'blockId':_0x538d39,'unitId':this[_0xef7002(0x19f)]()})?Z(this,_0x538d39):null;},'exitQuote'(_0x411fca){const _0x1bab30=_0xa1cf20;var _0x2ebf29;return!!((_0x2ebf29=Q(this))!=null&&_0x2ebf29['syncExecuteCommand'](H['id'],{'cursorOffset':_0x411fca,'unitId':this[_0x1bab30(0x19f)]()}));},'cancelEmptyQuoteParagraph'(_0x329705={}){const _0x7f9a57=_0xa1cf20;var _0x4a5bdf;return!!((_0x4a5bdf=Q(this))!=null&&_0x4a5bdf[_0x7f9a57(0x19d)](U['id'],{..._0x329705,'unitId':this[_0x7f9a57(0x19f)]()}));}});function _0x4ac9(_0x194b14,_0x442073){_0x194b14=_0x194b14-0x190;const _0x47278f=_0x4727();let _0x4ac9b1=_0x47278f[_0x194b14];return _0x4ac9b1;}function Z(_0x2d7900,_0x591e7b){const _0x1fe0a8=_0xa1cf20;return new Y({'blockId':_0x591e7b,'commandService':Q(_0x2d7900),'getDocumentData':()=>_0x2d7900[_0x1fe0a8(0x1b1)](),'unitId':_0x2d7900[_0x1fe0a8(0x19f)]()});}function Q(_0xf832e3){const _0x39d122=_0xa1cf20;var _0x7fa4f7,_0x5c698a;let _0x118227=_0xf832e3;return(_0x7fa4f7=_0x118227[_0x39d122(0x1c0)])==null?(_0x5c698a=_0x118227[_0x39d122(0x1c5)])==null?void 0x0:_0x5c698a[_0x39d122(0x1b2)](e[_0x39d122(0x1d0)]):_0x7fa4f7;}exports[_0xa1cf20(0x1e5)]=Y;
|
package/lib/cjs/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x148bf2=_0x2622;(function(_0x53c361,_0x214b6d){const _0x173aae=_0x2622,_0x2bbe49=_0x53c361();while(!![]){try{const _0x58b9d3=-parseInt(_0x173aae(0xa6))/0x1*(parseInt(_0x173aae(0x80))/0x2)+parseInt(_0x173aae(0x70))/0x3*(parseInt(_0x173aae(0x7f))/0x4)+parseInt(_0x173aae(0xbe))/0x5+-parseInt(_0x173aae(0x76))/0x6+-parseInt(_0x173aae(0xaf))/0x7+parseInt(_0x173aae(0xd1))/0x8+-parseInt(_0x173aae(0x9b))/0x9*(-parseInt(_0x173aae(0xe3))/0xa);if(_0x58b9d3===_0x214b6d)break;else _0x2bbe49['push'](_0x2bbe49['shift']());}catch(_0x136d1a){_0x2bbe49['push'](_0x2bbe49['shift']());}}}(_0x5d2a,0x6b1a7),Object[_0x148bf2(0xc1)](exports,Symbol[_0x148bf2(0xdb)],{'value':'Module'}));let e=require(`@univerjs/core`),t=require(`@univerjs/docs`),n=require(`@univerjs/docs-ui`),r=require(`@univerjs-pro/license`);const i=_0x148bf2(0xc7),a=_0x148bf2(0xf2);function o(_0x890f05){const _0x1f44e1=_0x148bf2;var _0x294fb6,_0x3b9802,_0xecaade;let _0x53a360=S(_0x890f05[_0x1f44e1(0xc5)]),_0x4b259a=C(_0x53a360),_0x5e137b=s(_0x890f05[_0x1f44e1(0x8a)],_0x890f05[_0x1f44e1(0xb7)]),_0x1772ec=_0x5e137b?(_0x294fb6=_0x4b259a[_0x1f44e1(0x79)])==null?void 0x0:_0x294fb6['find'](_0x462c24=>_0x462c24['startIndex']===_0x5e137b[_0x1f44e1(0x8a)]&&_0x462c24['endIndex']+0x1===_0x5e137b['endOffset']):void 0x0,{startOffset:_0xafb6d,endOffset:_0x381e4c}=_0x1772ec?_0x5e137b:ee(_0x4b259a,_0x890f05[_0x1f44e1(0x8a)],_0x890f05[_0x1f44e1(0xb7)]),_0x4410d3=w(_0x4b259a,_0xafb6d,_0x381e4c),_0x22cbdf=(_0x3b9802=_0x1772ec==null?void 0x0:_0x1772ec['blockId'])==null?_0x890f05[_0x1f44e1(0xbc)]:_0x3b9802;if(_0x1772ec)return _0x1772ec[_0x1f44e1(0xe5)]=a,c(_0x4b259a,_0xafb6d,_0x381e4c),g(_0x4b259a,_0xafb6d,_0x381e4c,_0x4410d3),{'nextDocumentData':_0x53a360,'cursorOffset':_0xafb6d+0x1};if(_0xafb6d===_0x381e4c){let _0x3809a2=''+e[_0x1f44e1(0xa2)][_0x1f44e1(0xc0)]+e[_0x1f44e1(0xa2)][_0x1f44e1(0xca)]+e[_0x1f44e1(0xa2)][_0x1f44e1(0x83)];return O(_0x4b259a,_0xafb6d,_0x3809a2,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':h(!0x0,!0x0,_0x4410d3)}],'blockRanges':[{'blockId':_0x22cbdf,'blockType':a,'startIndex':0x0,'endIndex':_0x3809a2[_0x1f44e1(0x7a)]-0x1}]}),{'nextDocumentData':_0x53a360,'cursorOffset':_0xafb6d+0x1};}return O(_0x4b259a,_0x381e4c,e[_0x1f44e1(0xa2)][_0x1f44e1(0x83)]),O(_0x4b259a,_0xafb6d,e[_0x1f44e1(0xa2)][_0x1f44e1(0xc0)]),g(_0x4b259a,_0xafb6d,_0x381e4c+0x1,_0x4410d3),_0x4b259a['blockRanges']=[...(_0xecaade=_0x4b259a[_0x1f44e1(0x79)])==null?[]:_0xecaade,{'blockId':_0x22cbdf,'blockType':a,'startIndex':_0xafb6d,'endIndex':_0x381e4c+0x1}][_0x1f44e1(0xd3)]((_0x16caf8,_0x481042)=>_0x16caf8[_0x1f44e1(0x7b)]-_0x481042['startIndex']),{'nextDocumentData':_0x53a360,'cursorOffset':_0xafb6d+0x1};}function s(_0x259f59,_0x522c6d){const _0x45b7d3=_0x148bf2;return _0x259f59==null||_0x522c6d==null||_0x259f59===_0x522c6d?null:{'startOffset':Math[_0x45b7d3(0x9d)](_0x259f59,_0x522c6d),'endOffset':Math['max'](_0x259f59,_0x522c6d)};}function c(_0x2c5602,_0x16119f,_0x3f65a1){const _0x3bc7d9=_0x148bf2;var _0x166c10;((_0x166c10=_0x2c5602[_0x3bc7d9(0xa7)])==null?[]:_0x166c10)[_0x3bc7d9(0xd4)](_0x5b42e0=>_0x5b42e0['startIndex']>_0x16119f&&_0x5b42e0[_0x3bc7d9(0x7b)]<_0x3f65a1)[_0x3bc7d9(0x85)](_0x67ff74=>{const _0x4f2040=_0x3bc7d9;var _0x32f5a6;let _0x3e5bef={...(_0x32f5a6=_0x67ff74[_0x4f2040(0x98)])==null?{}:_0x32f5a6};delete _0x3e5bef[_0x4f2040(0xbd)],delete _0x3e5bef[_0x4f2040(0xb8)],delete _0x3e5bef[_0x4f2040(0xa8)],delete _0x3e5bef[_0x4f2040(0x82)],_0x67ff74[_0x4f2040(0x98)]=_0x3e5bef;});}function l(_0x43f85d){const _0x2aa30b=_0x148bf2;var _0x4ed69b,_0x235647;let _0x2f10f1=S(_0x43f85d[_0x2aa30b(0xc5)]),_0x2ee914=C(_0x2f10f1),_0xf52e2c=m(_0x2ee914,_0x43f85d[_0x2aa30b(0x78)]);if(!_0xf52e2c)return null;let _0x1565d2=v(_0x2ee914,_0xf52e2c),_0x1a391f=_0x1565d2[_0x1565d2[_0x2aa30b(0x7a)]-0x1];if(!_0x1a391f||!y(_0x2ee914,_0xf52e2c,_0x1a391f)||_0x43f85d['cursorOffset']<_0x1a391f[_0x2aa30b(0x7b)])return null;let _0x23aaa2=E(_0x2ee914,_0xf52e2c,_0x1a391f);if(_0x23aaa2>=_0xf52e2c[_0x2aa30b(0x96)])return null;_0x2ee914[_0x2aa30b(0x71)]=[_0x2ee914[_0x2aa30b(0x71)][_0x2aa30b(0xb5)](0x0,_0x23aaa2),e[_0x2aa30b(0xa2)][_0x2aa30b(0x83)],_0x2ee914['dataStream']['slice'](_0x23aaa2,_0xf52e2c[_0x2aa30b(0x96)]),_0x2ee914[_0x2aa30b(0x71)][_0x2aa30b(0xb5)](_0xf52e2c[_0x2aa30b(0x96)]+0x1)][_0x2aa30b(0xb2)](''),F(_0x2ee914['paragraphs'],_0x23aaa2,_0xf52e2c[_0x2aa30b(0x96)],0x1),F(_0x2ee914[_0x2aa30b(0xe8)],_0x23aaa2,_0xf52e2c[_0x2aa30b(0x96)],0x1),F(_0x2ee914[_0x2aa30b(0xb3)],_0x23aaa2,_0xf52e2c[_0x2aa30b(0x96)],0x1),oe(_0x2ee914[_0x2aa30b(0xba)],_0x23aaa2,_0xf52e2c[_0x2aa30b(0x96)],0x1),I(_0x2ee914[_0x2aa30b(0xde)],_0x23aaa2,_0xf52e2c['endIndex'],0x1),I(_0x2ee914[_0x2aa30b(0x8f)],_0x23aaa2,_0xf52e2c['endIndex'],0x1),I(_0x2ee914['customDecorations'],_0x23aaa2,_0xf52e2c[_0x2aa30b(0x96)],0x1),(_0x4ed69b=_0x2ee914[_0x2aa30b(0x79)])==null||_0x4ed69b['forEach'](_0x3b1511=>{const _0xc152c7=_0x2aa30b;_0x3b1511===_0xf52e2c||_0x3b1511[_0xc152c7(0xbc)]===_0xf52e2c[_0xc152c7(0xbc)]?_0x3b1511[_0xc152c7(0x96)]=_0x23aaa2:_0x3b1511['startIndex']>=_0x23aaa2&&_0x3b1511['startIndex']<_0xf52e2c['endIndex']&&(_0x3b1511[_0xc152c7(0x7b)]+=0x1,_0x3b1511[_0xc152c7(0x96)]+=0x1);});let _0xc6352a=v(_0x2ee914,{..._0xf52e2c,'endIndex':_0x23aaa2});_0xc6352a[_0x2aa30b(0x85)]((_0x5a7888,_0x507dca)=>{const _0x55ce64=_0x2aa30b;var _0x316a4e;_0x5a7888[_0x55ce64(0x98)]={...(_0x316a4e=_0x5a7888[_0x55ce64(0x98)])==null?{}:_0x316a4e,...h(_0x507dca===0x0,_0x507dca===_0xc6352a[_0x55ce64(0x7a)]-0x1)};});let _0x4543e7=(_0x235647=_0x2ee914[_0x2aa30b(0xa7)])==null?void 0x0:_0x235647[_0x2aa30b(0xdd)](_0x251e23=>_0x251e23[_0x2aa30b(0x7b)]===_0x23aaa2+0x1);return _0x4543e7&&(_0x4543e7['paragraphStyle']=_(_0x4543e7[_0x2aa30b(0x98)])),{'nextDocumentData':_0x2f10f1,'cursorOffset':_0x23aaa2+0x1};}function u(_0x1cc994){const _0x206af8=_0x148bf2;let _0xfa3710=S(_0x1cc994[_0x206af8(0xc5)]),_0x19fe58=C(_0xfa3710),_0x54a27d=m(_0x19fe58,_0x1cc994[_0x206af8(0x78)]);return _0x54a27d&&(d(_0xfa3710,_0x19fe58,_0x54a27d,_0x1cc994[_0x206af8(0x78)],_0x1cc994['paragraphStartIndex'])||f(_0xfa3710,_0x19fe58,_0x54a27d,_0x1cc994[_0x206af8(0x78)]))||null;}function d(_0x4d5f62,_0x32dfc2,_0x24a3f8,_0x201023,_0x1f0194){const _0x2c241d=_0x148bf2;let _0x2c29a6=re(_0x32dfc2,_0x24a3f8,_0x201023,_0x1f0194);if(!_0x2c29a6)return null;let _0xfafc80=_0x2c29a6[_0x2c241d(0xa0)]-0x1;return k(_0x32dfc2,_0x2c29a6['paragraph'][_0x2c241d(0x7b)],_0x2c29a6[_0x2c241d(0xc2)][_0x2c241d(0x7b)]+0x1),{'nextDocumentData':_0x4d5f62,'cursorOffset':_0xfafc80};}function f(_0x4a4165,_0x46e593,_0x42a3d7,_0x507e54){const _0x54c103=_0x148bf2;if(_0x507e54!==_0x42a3d7[_0x54c103(0x7b)]+0x1)return null;let _0x456155=v(_0x46e593,_0x42a3d7),_0xd11b63=_0x456155[0x0];return!_0xd11b63||E(_0x46e593,_0x42a3d7,_0xd11b63)!==_0x507e54?null:_0x456155[_0x54c103(0x7a)]===0x1?b(_0x4a4165,_0x46e593,_0x42a3d7,_0xd11b63):x(_0x4a4165,_0x46e593,_0x42a3d7,_0xd11b63);}function p(_0x4ea8a4,_0x18905c){const _0x4f178e=_0x148bf2;var _0x264536;return _0x4ea8a4==null||(_0x264536=_0x4ea8a4[_0x4f178e(0x79)])==null?void 0x0:_0x264536[_0x4f178e(0xdd)](_0x4b5f5a=>_0x4b5f5a[_0x4f178e(0xe5)]==='quote'&&_0x4b5f5a[_0x4f178e(0x7b)]<=_0x18905c&&_0x18905c<=_0x4b5f5a[_0x4f178e(0x96)]);}function m(_0x49ca7d,_0x59c5d2){const _0x5280e0=_0x148bf2;var _0x1a2395;return(_0x1a2395=_0x49ca7d[_0x5280e0(0x79)])==null?void 0x0:_0x1a2395[_0x5280e0(0xdd)](_0x34eabd=>{const _0x4e9c93=_0x5280e0;let _0x3b6363=D(_0x49ca7d,_0x34eabd);return _0x34eabd[_0x4e9c93(0xe5)]==='quote'&&_0x34eabd[_0x4e9c93(0x7b)]<=_0x59c5d2&&_0x59c5d2<=_0x3b6363+0x2;});}function h(_0x2422f7,_0x42790b,_0x1c8c31=!0x1){return{'indentStart':{'v':0x16},..._0x2422f7&&_0x1c8c31?{'spaceAbove':{'v':0x8}}:{}};}function g(_0x17eccc,_0x4bde87,_0x219ee1,_0x1591f4=!0x1){const _0x545b18=_0x148bf2;var _0x48abdb;let _0x27a661=((_0x48abdb=_0x17eccc['paragraphs'])==null?[]:_0x48abdb)['filter'](_0x3795bc=>_0x3795bc[_0x545b18(0x7b)]>_0x4bde87&&_0x3795bc[_0x545b18(0x7b)]<_0x219ee1);_0x27a661[_0x545b18(0x85)]((_0x2f908b,_0x1a83cc)=>{const _0x3f1e19=_0x545b18;var _0x3726b0;_0x2f908b[_0x3f1e19(0x98)]={...(_0x3726b0=_0x2f908b[_0x3f1e19(0x98)])==null?{}:_0x3726b0,...h(_0x1a83cc===0x0,_0x1a83cc===_0x27a661[_0x3f1e19(0x7a)]-0x1,_0x1591f4)};});}function _(_0x59225c){const _0x5cda4a=_0x148bf2;let _0x295b72={..._0x59225c==null?{}:_0x59225c};return delete _0x295b72[_0x5cda4a(0xa3)],delete _0x295b72[_0x5cda4a(0xb8)],delete _0x295b72[_0x5cda4a(0xa8)],_0x295b72;}function v(_0x515cf9,_0x32c70c){const _0x3170fd=_0x148bf2;var _0xd778e9;let _0x5810f9=D(_0x515cf9,_0x32c70c);return((_0xd778e9=_0x515cf9[_0x3170fd(0xa7)])==null?[]:_0xd778e9)[_0x3170fd(0xd4)](_0x91be81=>_0x91be81['startIndex']>_0x32c70c[_0x3170fd(0x7b)]&&_0x91be81[_0x3170fd(0x7b)]<_0x5810f9);}function y(_0x2b2509,_0x43533c,_0x353518){const _0xbf9d98=_0x148bf2;let _0x484ae5=E(_0x2b2509,_0x43533c,_0x353518),_0x4751d9=_0x2b2509[_0xbf9d98(0x71)][_0xbf9d98(0xb5)](_0x484ae5,_0x353518[_0xbf9d98(0x7b)]);return Array[_0xbf9d98(0xa1)](_0x4751d9)[_0xbf9d98(0xc8)](_0x3bd237=>_0x3bd237===e[_0xbf9d98(0xa2)][_0xbf9d98(0xc0)]||_0x3bd237===e['DataStreamTreeTokenType'][_0xbf9d98(0x83)]);}function b(_0xb34b7c,_0x1646b8,_0x1d2fe6,_0x1f7090){const _0xd5e1ed=_0x148bf2;var _0x495a2a,_0x16a885;let _0x528664=_0x1d2fe6[_0xd5e1ed(0x7b)];k(_0x1646b8,_0x1d2fe6[_0xd5e1ed(0x96)],_0x1d2fe6[_0xd5e1ed(0x96)]+0x1),k(_0x1646b8,_0x1d2fe6['startIndex'],_0x1d2fe6[_0xd5e1ed(0x7b)]+0x1),_0x1646b8[_0xd5e1ed(0x79)]=(_0x495a2a=_0x1646b8['blockRanges'])==null?void 0x0:_0x495a2a[_0xd5e1ed(0xd4)](_0x81272a=>_0x81272a[_0xd5e1ed(0xbc)]!==_0x1d2fe6[_0xd5e1ed(0xbc)]);let _0x530ec2=(_0x16a885=_0x1646b8[_0xd5e1ed(0xa7)])==null?void 0x0:_0x16a885[_0xd5e1ed(0xdd)](_0x44eb8e=>_0x44eb8e[_0xd5e1ed(0x7b)]===_0x1f7090[_0xd5e1ed(0x7b)]-0x1);return _0x530ec2&&(_0x530ec2[_0xd5e1ed(0x98)]=_(_0x530ec2[_0xd5e1ed(0x98)])),{'nextDocumentData':_0xb34b7c,'cursorOffset':_0x528664};}function x(_0x40a5d3,_0x61255c,_0x32d86a,_0x263def){const _0x5dcda4=_0x148bf2;var _0x234f07,_0x17c647;let _0x238692=_0x263def[_0x5dcda4(0x7b)],_0x4f077a=_0x32d86a[_0x5dcda4(0x7b)];O(_0x61255c,_0x263def['startIndex']+0x1,e[_0x5dcda4(0xa2)][_0x5dcda4(0xc0)]),k(_0x61255c,_0x32d86a[_0x5dcda4(0x7b)],_0x32d86a[_0x5dcda4(0x7b)]+0x1);let _0x44ab2d=(_0x234f07=_0x61255c[_0x5dcda4(0xa7)])==null?void 0x0:_0x234f07[_0x5dcda4(0xdd)](_0x1256bf=>_0x1256bf[_0x5dcda4(0x7b)]===_0x238692-0x1),_0x2fe927=(_0x17c647=_0x61255c[_0x5dcda4(0x79)])==null?void 0x0:_0x17c647[_0x5dcda4(0xdd)](_0x98825b=>_0x98825b['blockId']===_0x32d86a[_0x5dcda4(0xbc)]);return _0x44ab2d&&(_0x44ab2d[_0x5dcda4(0x98)]=_(_0x44ab2d[_0x5dcda4(0x98)]),_0x2fe927&&(_0x2fe927[_0x5dcda4(0x7b)]=_0x44ab2d[_0x5dcda4(0x7b)]+0x1)),_0x2fe927&&g(_0x61255c,_0x2fe927[_0x5dcda4(0x7b)],_0x2fe927['endIndex']),{'nextDocumentData':_0x40a5d3,'cursorOffset':_0x4f077a};}function S(_0x1877ff){const _0x520fea=_0x148bf2;return e[_0x520fea(0xf1)][_0x520fea(0xee)](_0x1877ff);}function C(_0x4daeaf){const _0x1fa5f3=_0x148bf2;if(!_0x4daeaf[_0x1fa5f3(0x8d)])throw Error('Document\x20body\x20is\x20required');return _0x4daeaf['body'];}function ee(_0x4264a7,_0x23327d,_0x1493c4){const _0x12c30a=_0x148bf2;if(_0x23327d==null||_0x1493c4==null){let _0x40f43d=te(_0x4264a7);return{'startOffset':_0x40f43d,'endOffset':_0x40f43d};}let _0x254762=Math[_0x12c30a(0x9d)](_0x23327d,_0x1493c4),_0xa63a68=Math[_0x12c30a(0x7e)](_0x23327d,_0x1493c4);return _0x254762===_0xa63a68?{'startOffset':_0x254762,'endOffset':_0x254762}:ne(_0x4264a7,_0x254762,_0xa63a68);}function te(_0x26240b){const _0x5a05ac=_0x148bf2;return _0x26240b[_0x5a05ac(0x71)][_0x5a05ac(0xb0)](e[_0x5a05ac(0xa2)][_0x5a05ac(0xd5)])?Math['max'](0x0,_0x26240b[_0x5a05ac(0x71)][_0x5a05ac(0x7a)]-0x1):_0x26240b[_0x5a05ac(0x71)][_0x5a05ac(0x7a)];}function w(_0x7a14eb,_0x49a297,_0xb7cc6b){const _0x46fb3e=_0x148bf2;var _0xe8549d;let _0x161403=Math[_0x46fb3e(0x9d)](_0x49a297,_0xb7cc6b),_0xccd3a4=Math['max'](_0x49a297,_0xb7cc6b);return!!((_0xe8549d=_0x7a14eb[_0x46fb3e(0xde)])!=null&&_0xe8549d[_0x46fb3e(0x91)](_0x2e16c1=>_0x161403>_0x2e16c1[_0x46fb3e(0x7b)]&&_0x161403<_0x2e16c1['endIndex']||_0xccd3a4>_0x2e16c1[_0x46fb3e(0x7b)]&&_0xccd3a4<_0x2e16c1[_0x46fb3e(0x96)]||_0x161403<=_0x2e16c1[_0x46fb3e(0x7b)]&&_0xccd3a4>=_0x2e16c1['endIndex']));}function ne(_0x2565b4,_0x4d1adf,_0x54e38f){const _0x29c597=_0x148bf2;var _0x34edef,_0x4bb445;let _0x4ff1f2=[...(_0x34edef=_0x2565b4[_0x29c597(0xa7)])==null?[]:_0x34edef]['sort']((_0x3c736d,_0x3d8858)=>_0x3c736d[_0x29c597(0x7b)]-_0x3d8858[_0x29c597(0x7b)]),_0x562158=_0x4ff1f2[_0x29c597(0xdd)]((_0x240f24,_0x1d1786)=>(_0x1d1786===0x0?0x0:_0x4ff1f2[_0x1d1786-0x1]['startIndex']+0x1)<=_0x4d1adf&&_0x4d1adf<=_0x240f24['startIndex']),_0x1610e9=(_0x4bb445=_0x4ff1f2[_0x29c597(0xdd)](_0x422232=>_0x422232[_0x29c597(0x7b)]>=_0x54e38f-0x1))==null?_0x4ff1f2[_0x4ff1f2[_0x29c597(0x7a)]-0x1]:_0x4bb445;return{'startOffset':_0x562158?T(_0x4ff1f2,_0x562158):_0x4d1adf,'endOffset':_0x1610e9?_0x1610e9[_0x29c597(0x7b)]+0x1:_0x54e38f};}function _0x5d2a(){const _0x4eb5b7=['docs-quote.command.exit','customRanges','DocContentInsertService','some','replaceOp','BuildTextUtils','string','onStarting','endIndex','toPrimitive','paragraphStyle','DocsQuoteInsertCommand','RichTextEditingMutation','19782ZxMXGj','findQuoteRangeAtOffset','min','UNIVER_DOC','COMMAND','endTokenOffset','from','DataStreamTreeTokenType','indentStart','decorate','_injector','170808DhiamF','paragraphs','spaceBelow','default','_configService','version','object','previousDocumentData','getOwnPropertyDescriptor','279839PjrzRn','endsWith','type','join','customBlocks','Injector','slice','getSnapshot','endOffset','spaceAbove','IUniverInstanceService','textRuns','_commandService','blockId','indentEnd','1060440rWhfcj','iterator','BLOCK_START','defineProperty','paragraph','getCurrentUnitOfType','docs-quote.config','documentData','getInstance','DOCS_QUOTE_PLUGIN','every','docs-quote.command.cancel-empty-paragraph','PARAGRAPH','buildInsertQuoteActions','JSONX','consumeInsertRange','customDecorations','DocSelectionManagerService','ICommandService','1696680yFNRDP','IConfigService','sort','filter','SECTION_BREAK','function','DocsQuoteCancelEmptyParagraphCommand','getBody','DependentOn','getParagraphsInRange','toStringTag','UniverDocsPlugin','find','tables','prototype','unitId','symbol','get','340MdtuVg','getUnitId','blockType','registerCommand','DocsQuoteExitCommand','sectionBreaks','generateRandomId','packageName','_config','docs-quote.command.insert','@univerjs-pro/docs-quote','deepClone','UniverDocsQuotePlugin','nextDocumentData','Tools','quote','Inject','141MygUAs','dataStream','commandService','constructor','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','call','1701948dlpPOt','paragraphStartIndex','cursorOffset','blockRanges','length','startIndex','buildCancelEmptyQuoteParagraphActions','0.24.0-insiders.20260528-29f582d','max','36956fApcfJ','2EnnzrK','DocsQuoteInsertBelowCommand','textStyle','BLOCK_END','diffValue','forEach','syncExecuteCommand','CommandType','UniverInstanceType','reduce','startOffset','map','merge','body'];_0x5d2a=function(){return _0x4eb5b7;};return _0x5d2a();}function T(_0x4202a2,_0x4f4068){const _0x275a42=_0x148bf2;let _0xe0992f=_0x4202a2['indexOf'](_0x4f4068);return _0xe0992f>0x0?_0x4202a2[_0xe0992f-0x1][_0x275a42(0x7b)]+0x1:0x0;}function E(_0x470c36,_0x522312,_0x4cb70f){var _0x925006;return Math['max'](T((_0x925006=_0x470c36['paragraphs'])==null?[]:_0x925006,_0x4cb70f),_0x522312['startIndex']+0x1);}function D(_0xa5f662,_0x52cad1){const _0x32cfc7=_0x148bf2;return _0xa5f662[_0x32cfc7(0x71)][_0x52cad1[_0x32cfc7(0x96)]]===e[_0x32cfc7(0xa2)][_0x32cfc7(0x83)]?_0x52cad1[_0x32cfc7(0x96)]:_0xa5f662['dataStream'][_0x52cad1['endIndex']+0x1]===e['DataStreamTreeTokenType']['BLOCK_END']?_0x52cad1[_0x32cfc7(0x96)]+0x1:_0x52cad1['endIndex'];}function re(_0x51e5aa,_0x20e817,_0x31af64,_0x3ce6fb){const _0x4b820e=_0x148bf2;var _0x4ba7c5,_0x3f302a;let _0x4c6037=D(_0x51e5aa,_0x20e817),_0x28559a=((_0x4ba7c5=_0x51e5aa[_0x4b820e(0xa7)])==null?[]:_0x4ba7c5)[_0x4b820e(0xdd)](_0x1308d7=>_0x1308d7[_0x4b820e(0x7b)]===_0x4c6037+0x1);if(!_0x28559a||_0x3ce6fb!=null&&_0x28559a['startIndex']!==_0x3ce6fb||_0x31af64<_0x4c6037||_0x31af64>_0x28559a['startIndex']+0x1||_0x51e5aa[_0x4b820e(0x71)][_0x28559a[_0x4b820e(0x7b)]]!==e[_0x4b820e(0xa2)][_0x4b820e(0xca)])return null;let _0x5d51e1=T((_0x3f302a=_0x51e5aa[_0x4b820e(0xa7)])==null?[]:_0x3f302a,_0x28559a),_0x6ff6b=_0x51e5aa[_0x4b820e(0x71)][_0x4b820e(0xb5)](_0x5d51e1,_0x28559a[_0x4b820e(0x7b)]);return Array[_0x4b820e(0xa1)](_0x6ff6b)[_0x4b820e(0xc8)](_0x10faaf=>_0x10faaf===e[_0x4b820e(0xa2)][_0x4b820e(0x83)])?{'paragraph':_0x28559a,'endTokenOffset':_0x4c6037}:null;}function O(_0x337ad1,_0x40b6f3,_0x4bbc52,_0x36e460={}){const _0x3e6410=_0x148bf2;var _0x1a59f4,_0x5b3422;if(_0x4bbc52){if(_0x337ad1['dataStream']=''+_0x337ad1['dataStream'][_0x3e6410(0xb5)](0x0,_0x40b6f3)+_0x4bbc52+_0x337ad1[_0x3e6410(0x71)][_0x3e6410(0xb5)](_0x40b6f3),ie(_0x337ad1,_0x40b6f3,_0x4bbc52['length']),(_0x1a59f4=_0x36e460[_0x3e6410(0xa7)])!=null&&_0x1a59f4[_0x3e6410(0x7a)]){var _0x2f900a;_0x337ad1['paragraphs']=[...(_0x2f900a=_0x337ad1['paragraphs'])==null?[]:_0x2f900a,..._0x36e460[_0x3e6410(0xa7)][_0x3e6410(0x8b)](_0x4ab7b2=>({..._0x4ab7b2,'startIndex':_0x4ab7b2[_0x3e6410(0x7b)]+_0x40b6f3}))][_0x3e6410(0xd3)]((_0x3871f4,_0x633a2a)=>_0x3871f4[_0x3e6410(0x7b)]-_0x633a2a['startIndex']);}if((_0x5b3422=_0x36e460[_0x3e6410(0x79)])!=null&&_0x5b3422[_0x3e6410(0x7a)]){var _0x1affe3;_0x337ad1[_0x3e6410(0x79)]=[...(_0x1affe3=_0x337ad1[_0x3e6410(0x79)])==null?[]:_0x1affe3,..._0x36e460[_0x3e6410(0x79)][_0x3e6410(0x8b)](_0x23064f=>({..._0x23064f,'startIndex':_0x23064f['startIndex']+_0x40b6f3,'endIndex':_0x23064f[_0x3e6410(0x96)]+_0x40b6f3}))][_0x3e6410(0xd3)]((_0x238cff,_0x57e49c)=>_0x238cff['startIndex']-_0x57e49c[_0x3e6410(0x7b)]);}}}function k(_0x34e0ba,_0x3cf9c5,_0x16a62e){const _0x403ae4=_0x148bf2;let _0x541ce9=_0x16a62e-_0x3cf9c5;_0x34e0ba[_0x403ae4(0x71)]=''+_0x34e0ba['dataStream']['slice'](0x0,_0x3cf9c5)+_0x34e0ba[_0x403ae4(0x71)][_0x403ae4(0xb5)](_0x16a62e),ae(_0x34e0ba,_0x3cf9c5,_0x541ce9);}function ie(_0x40077a,_0x407610,_0x37af9a){const _0x4090cb=_0x148bf2;_0x40077a[_0x4090cb(0xa7)]=A(_0x40077a[_0x4090cb(0xa7)],_0x407610,_0x37af9a),_0x40077a[_0x4090cb(0xe8)]=A(_0x40077a[_0x4090cb(0xe8)],_0x407610,_0x37af9a),_0x40077a[_0x4090cb(0xb3)]=A(_0x40077a[_0x4090cb(0xb3)],_0x407610,_0x37af9a),_0x40077a[_0x4090cb(0xba)]=M(_0x40077a[_0x4090cb(0xba)],_0x407610,_0x37af9a),_0x40077a['tables']=N(_0x40077a['tables'],_0x407610,_0x37af9a),_0x40077a[_0x4090cb(0x8f)]=N(_0x40077a[_0x4090cb(0x8f)],_0x407610,_0x37af9a),_0x40077a[_0x4090cb(0xce)]=N(_0x40077a[_0x4090cb(0xce)],_0x407610,_0x37af9a),_0x40077a[_0x4090cb(0x79)]=N(_0x40077a[_0x4090cb(0x79)],_0x407610,_0x37af9a);}function ae(_0x525b4d,_0x5336f2,_0x4b7773){const _0x57e1b1=_0x148bf2;var _0x1676f4,_0x2fce42;_0x525b4d[_0x57e1b1(0xa7)]=j(_0x525b4d[_0x57e1b1(0xa7)],_0x5336f2,_0x4b7773),_0x525b4d['sectionBreaks']=j(_0x525b4d[_0x57e1b1(0xe8)],_0x5336f2,_0x4b7773),_0x525b4d[_0x57e1b1(0xb3)]=j(_0x525b4d[_0x57e1b1(0xb3)],_0x5336f2,_0x4b7773),_0x525b4d[_0x57e1b1(0xba)]=(_0x1676f4=P((_0x2fce42=_0x525b4d[_0x57e1b1(0xba)])==null?void 0x0:_0x2fce42[_0x57e1b1(0x8b)](_0x1269e2=>({..._0x1269e2,'startIndex':_0x1269e2['st'],'endIndex':_0x1269e2['ed']})),_0x5336f2,_0x4b7773))==null?void 0x0:_0x1676f4[_0x57e1b1(0x8b)](_0x133a7d=>{let {startIndex:_0x3e77e1,endIndex:_0x3109d9,..._0x3b137e}=_0x133a7d;return{..._0x3b137e,'st':_0x3e77e1,'ed':_0x3109d9};}),_0x525b4d['tables']=P(_0x525b4d[_0x57e1b1(0xde)],_0x5336f2,_0x4b7773),_0x525b4d[_0x57e1b1(0x8f)]=P(_0x525b4d[_0x57e1b1(0x8f)],_0x5336f2,_0x4b7773),_0x525b4d[_0x57e1b1(0xce)]=P(_0x525b4d[_0x57e1b1(0xce)],_0x5336f2,_0x4b7773),_0x525b4d[_0x57e1b1(0x79)]=P(_0x525b4d['blockRanges'],_0x5336f2,_0x4b7773);}function A(_0x760dd9,_0x563567,_0x2d486a){const _0x4ad2b5=_0x148bf2;return _0x760dd9==null?void 0x0:_0x760dd9['map'](_0x44dcc7=>_0x44dcc7[_0x4ad2b5(0x7b)]>=_0x563567?{..._0x44dcc7,'startIndex':_0x44dcc7['startIndex']+_0x2d486a}:_0x44dcc7);}function j(_0x435dfd,_0x3e2105,_0x21cd8c){const _0x3ed201=_0x148bf2;let _0x586b79=_0x3e2105+_0x21cd8c;return _0x435dfd==null?void 0x0:_0x435dfd[_0x3ed201(0x8b)](_0x3d0d95=>_0x3d0d95['startIndex']>=_0x3e2105&&_0x3d0d95[_0x3ed201(0x7b)]<_0x586b79?null:_0x3d0d95[_0x3ed201(0x7b)]>=_0x586b79?{..._0x3d0d95,'startIndex':_0x3d0d95[_0x3ed201(0x7b)]-_0x21cd8c}:_0x3d0d95)['filter'](_0x24693d=>_0x24693d!=null);}function M(_0x53ba27,_0x34bb09,_0x3eaeef){const _0x1c9a00=_0x148bf2;return _0x53ba27==null?void 0x0:_0x53ba27[_0x1c9a00(0x8b)](_0x22347d=>_0x22347d['st']>=_0x34bb09?{..._0x22347d,'st':_0x22347d['st']+_0x3eaeef,'ed':_0x22347d['ed']+_0x3eaeef}:_0x22347d['ed']>_0x34bb09?{..._0x22347d,'ed':_0x22347d['ed']+_0x3eaeef}:_0x22347d);}function N(_0x1b2cd1,_0x8e337c,_0x57153a){const _0x27600e=_0x148bf2;return _0x1b2cd1==null?void 0x0:_0x1b2cd1[_0x27600e(0x8b)](_0x46810e=>_0x46810e[_0x27600e(0x7b)]>=_0x8e337c?{..._0x46810e,'startIndex':_0x46810e[_0x27600e(0x7b)]+_0x57153a,'endIndex':_0x46810e[_0x27600e(0x96)]+_0x57153a}:_0x46810e[_0x27600e(0x96)]>=_0x8e337c?{..._0x46810e,'endIndex':_0x46810e['endIndex']+_0x57153a}:_0x46810e);}function P(_0x2fc501,_0x1163ab,_0x4017cb){const _0x27e41d=_0x148bf2;let _0x3015b9=_0x1163ab+_0x4017cb;return _0x2fc501==null?void 0x0:_0x2fc501['map'](_0x17f20b=>_0x17f20b[_0x27e41d(0x7b)]>=_0x1163ab&&_0x17f20b['endIndex']<_0x3015b9?null:_0x17f20b[_0x27e41d(0x7b)]>=_0x3015b9?{..._0x17f20b,'startIndex':_0x17f20b[_0x27e41d(0x7b)]-_0x4017cb,'endIndex':_0x17f20b[_0x27e41d(0x96)]-_0x4017cb}:_0x17f20b[_0x27e41d(0x96)]>=_0x1163ab?{..._0x17f20b,'startIndex':_0x17f20b['startIndex']<_0x1163ab?_0x17f20b[_0x27e41d(0x7b)]:_0x1163ab,'endIndex':Math[_0x27e41d(0x7e)](_0x1163ab,_0x17f20b[_0x27e41d(0x96)]-_0x4017cb)}:_0x17f20b)[_0x27e41d(0xd4)](_0x4deff8=>_0x4deff8!=null);}function F(_0x38b77b,_0x5a72ca,_0x448c4a,_0x13132b){const _0x50a5d6=_0x148bf2;_0x38b77b==null||_0x38b77b[_0x50a5d6(0x85)](_0x27440b=>{const _0x59aaf1=_0x50a5d6;_0x27440b['startIndex']>=_0x5a72ca&&_0x27440b['startIndex']<_0x448c4a&&(_0x27440b[_0x59aaf1(0x7b)]+=_0x13132b);});}function oe(_0x23da8a,_0x1fa5d6,_0x57015f,_0x103d02){const _0x494375=_0x148bf2;_0x23da8a==null||_0x23da8a[_0x494375(0x85)](_0xdedef6=>{_0xdedef6['st']>=_0x1fa5d6&&_0xdedef6['st']<_0x57015f?(_0xdedef6['st']+=_0x103d02,_0xdedef6['ed']+=_0x103d02):_0xdedef6['ed']>_0x1fa5d6&&_0xdedef6['ed']<_0x57015f&&(_0xdedef6['ed']+=_0x103d02);});}function I(_0x2f4e45,_0x20a4aa,_0x6082a,_0x45bdfb){_0x2f4e45==null||_0x2f4e45['forEach'](_0x4f2dc0=>{const _0x1729ae=_0x2622;_0x4f2dc0[_0x1729ae(0x7b)]>=_0x20a4aa&&_0x4f2dc0[_0x1729ae(0x7b)]<_0x6082a?(_0x4f2dc0[_0x1729ae(0x7b)]+=_0x45bdfb,_0x4f2dc0[_0x1729ae(0x96)]+=_0x45bdfb):_0x4f2dc0[_0x1729ae(0x96)]>_0x20a4aa&&_0x4f2dc0[_0x1729ae(0x96)]<_0x6082a&&(_0x4f2dc0[_0x1729ae(0x96)]+=_0x45bdfb);});}const L={'id':'docs-quote.command.insert-below','type':e[_0x148bf2(0x87)][_0x148bf2(0x9f)],'handler':_0x4c4e48=>{const _0x381c6c=_0x148bf2;let _0x5bf3af=se(_0x4c4e48);if(_0x5bf3af)return _0x4c4e48[_0x381c6c(0xe2)](e['ICommandService'])[_0x381c6c(0x86)](R['id'],{'startOffset':_0x5bf3af[_0x381c6c(0x8a)],'endOffset':_0x5bf3af['endOffset'],'unitId':_0x5bf3af[_0x381c6c(0xe0)]});let _0x56fc16=U(_0x4c4e48);if(!_0x56fc16)return!0x1;let _0x15f0dc=_0x56fc16[_0x381c6c(0x7b)]+0x1;return _0x4c4e48[_0x381c6c(0xe2)](e[_0x381c6c(0xd0)])[_0x381c6c(0x86)](R['id'],{'startOffset':_0x15f0dc,'endOffset':_0x15f0dc});}},R={'id':_0x148bf2(0xec),'type':e[_0x148bf2(0x87)][_0x148bf2(0x9f)],'handler':(_0x14f1f3,_0x41db95)=>{const _0x5ea8de=_0x148bf2;var _0x59996e,_0x5d02c1,_0xd87c8;let _0x3f656a=V(_0x14f1f3,_0x41db95==null?void 0x0:_0x41db95['unitId']);if(!_0x3f656a)return!0x1;let _0xf58367=H(_0x14f1f3),_0x3dce7e=o({'blockId':(_0x59996e=_0x41db95==null?void 0x0:_0x41db95[_0x5ea8de(0xbc)])==null?(0x0,e[_0x5ea8de(0xe9)])(0x6):_0x59996e,'documentData':_0x3f656a[_0x5ea8de(0xad)],'endOffset':(_0x5d02c1=_0x41db95==null?void 0x0:_0x41db95[_0x5ea8de(0xb7)])==null?_0xf58367==null?void 0x0:_0xf58367[_0x5ea8de(0xb7)]:_0x5d02c1,'startOffset':(_0xd87c8=_0x41db95==null?void 0x0:_0x41db95[_0x5ea8de(0x8a)])==null?_0xf58367==null?void 0x0:_0xf58367[_0x5ea8de(0x8a)]:_0xd87c8});return K(_0x3f656a[_0x5ea8de(0x72)],_0x3f656a[_0x5ea8de(0xe0)],_0x3f656a[_0x5ea8de(0xad)],_0x3dce7e[_0x5ea8de(0xf0)],_0x3dce7e[_0x5ea8de(0x78)]);}},z={'id':_0x148bf2(0x8e),'type':e[_0x148bf2(0x87)][_0x148bf2(0x9f)],'handler':(_0x5ed771,_0x3f3654)=>{const _0x514370=_0x148bf2;var _0x53c00d,_0x464651;let _0x345205=V(_0x5ed771,_0x3f3654==null?void 0x0:_0x3f3654['unitId']);if(!_0x345205)return!0x1;let _0x46ef5b=(_0x53c00d=_0x3f3654==null?void 0x0:_0x3f3654[_0x514370(0x78)])==null?(_0x464651=H(_0x5ed771))==null?void 0x0:_0x464651['startOffset']:_0x53c00d;if(_0x46ef5b==null)return!0x1;let _0x90dd30=l({'cursorOffset':_0x46ef5b,'documentData':_0x345205[_0x514370(0xad)]});return _0x90dd30?K(_0x345205['commandService'],_0x345205[_0x514370(0xe0)],_0x345205['previousDocumentData'],_0x90dd30[_0x514370(0xf0)],_0x90dd30[_0x514370(0x78)]):!0x1;}},B={'id':_0x148bf2(0xc9),'type':e[_0x148bf2(0x87)]['COMMAND'],'handler':(_0x2c5171,_0x5c7ccf)=>{const _0x2cd3c1=_0x148bf2;var _0x2e2cc9,_0x332664;let _0x3ffdb1=V(_0x2c5171,_0x5c7ccf==null?void 0x0:_0x5c7ccf[_0x2cd3c1(0xe0)]);if(!_0x3ffdb1)return!0x1;let _0x4e3602=(_0x2e2cc9=_0x5c7ccf==null?void 0x0:_0x5c7ccf['cursorOffset'])==null?(_0x332664=H(_0x2c5171))==null?void 0x0:_0x332664[_0x2cd3c1(0x8a)]:_0x2e2cc9;if(_0x4e3602==null)return!0x1;let _0x44512c=u({'cursorOffset':_0x4e3602,'documentData':_0x3ffdb1[_0x2cd3c1(0xad)],'paragraphStartIndex':_0x5c7ccf==null?void 0x0:_0x5c7ccf[_0x2cd3c1(0x77)]});return _0x44512c?K(_0x3ffdb1[_0x2cd3c1(0x72)],_0x3ffdb1[_0x2cd3c1(0xe0)],_0x3ffdb1['previousDocumentData'],_0x44512c[_0x2cd3c1(0xf0)],_0x44512c['cursorOffset']):!0x1;}};function V(_0x3b79fe,_0xfa0f13){const _0x2b7cd8=_0x148bf2;let _0x451496=_0x3b79fe[_0x2b7cd8(0xe2)](e[_0x2b7cd8(0xb9)]),_0xb39f05=_0xfa0f13?_0x451496['getUniverDocInstance'](_0xfa0f13):_0x451496[_0x2b7cd8(0xc3)](e[_0x2b7cd8(0x88)]['UNIVER_DOC']);return _0xb39f05?{'commandService':_0x3b79fe[_0x2b7cd8(0xe2)](e[_0x2b7cd8(0xd0)]),'previousDocumentData':_0xb39f05[_0x2b7cd8(0xb6)](),'unitId':_0xb39f05[_0x2b7cd8(0xe4)]()}:null;}function H(_0x4a8eae){const _0x5ee348=_0x148bf2;var _0x4d5a34;return(_0x4d5a34=_0x4a8eae[_0x5ee348(0xe2)](t[_0x5ee348(0xcf)])['getTextRanges']())==null?void 0x0:_0x4d5a34[0x0];}function se(_0x1e2782){const _0x357b10=_0x148bf2;var _0x516556;let _0x32cf2c=(_0x516556=_0x1e2782[_0x357b10(0xe2)](e[_0x357b10(0xb9)])[_0x357b10(0xc3)](e[_0x357b10(0x88)][_0x357b10(0x9e)]))==null?void 0x0:_0x516556[_0x357b10(0xe4)]();try{return _0x1e2782[_0x357b10(0xe2)](n[_0x357b10(0x90)])[_0x357b10(0xcd)](_0x32cf2c);}catch{return null;}}function U(_0x2aab2b){const _0x388410=_0x148bf2;var _0x135053,_0x47ee72,_0x4cc82;let _0x1fbd11=H(_0x2aab2b);if(!_0x1fbd11)return null;let _0x18fb52=_0x2aab2b[_0x388410(0xe2)](e[_0x388410(0xb9)])[_0x388410(0xc3)](e['UniverInstanceType'][_0x388410(0x9e)]),_0x362e34=_0x18fb52==null?void 0x0:_0x18fb52[_0x388410(0xd8)]();return _0x362e34?(_0x135053=e[_0x388410(0x93)]['range'][_0x388410(0xda)](_0x1fbd11,(_0x47ee72=_0x362e34[_0x388410(0xa7)])==null?[]:_0x47ee72,(_0x4cc82=_0x362e34[_0x388410(0x71)])==null?'':_0x4cc82)[0x0])==null?null:_0x135053:null;}function W(_0x33b070,_0x3a5242){const _0x416ab7=_0x148bf2;var _0x2cd5ac,_0x56f217,_0x3c4320,_0xc7d31e,_0x5d7da0,_0x4ece5b,_0x50176a,_0x3d999c,_0x40f7e0,_0x1d62c7,_0x583602,_0x278c60,_0x54b8d7,_0x333d45,_0xdd8e73,_0x567ea3,_0x35b1b0,_0x1cc85a;let _0x4ce601=e[_0x416ab7(0xcc)][_0x416ab7(0xc6)]();return[G(_0x4ce601,[_0x416ab7(0x8d),'dataStream'],(_0x2cd5ac=_0x33b070[_0x416ab7(0x8d)])==null?void 0x0:_0x2cd5ac[_0x416ab7(0x71)],(_0x56f217=_0x3a5242[_0x416ab7(0x8d)])==null?void 0x0:_0x56f217[_0x416ab7(0x71)]),G(_0x4ce601,['body','paragraphs'],(_0x3c4320=_0x33b070[_0x416ab7(0x8d)])==null?void 0x0:_0x3c4320[_0x416ab7(0xa7)],(_0xc7d31e=_0x3a5242[_0x416ab7(0x8d)])==null?void 0x0:_0xc7d31e[_0x416ab7(0xa7)]),G(_0x4ce601,[_0x416ab7(0x8d),_0x416ab7(0xe8)],(_0x5d7da0=_0x33b070[_0x416ab7(0x8d)])==null?void 0x0:_0x5d7da0[_0x416ab7(0xe8)],(_0x4ece5b=_0x3a5242[_0x416ab7(0x8d)])==null?void 0x0:_0x4ece5b[_0x416ab7(0xe8)]),G(_0x4ce601,['body','textRuns'],(_0x50176a=_0x33b070[_0x416ab7(0x8d)])==null?void 0x0:_0x50176a[_0x416ab7(0xba)],(_0x3d999c=_0x3a5242[_0x416ab7(0x8d)])==null?void 0x0:_0x3d999c[_0x416ab7(0xba)]),G(_0x4ce601,[_0x416ab7(0x8d),_0x416ab7(0xb3)],(_0x40f7e0=_0x33b070['body'])==null?void 0x0:_0x40f7e0[_0x416ab7(0xb3)],(_0x1d62c7=_0x3a5242[_0x416ab7(0x8d)])==null?void 0x0:_0x1d62c7[_0x416ab7(0xb3)]),G(_0x4ce601,[_0x416ab7(0x8d),_0x416ab7(0x8f)],(_0x583602=_0x33b070['body'])==null?void 0x0:_0x583602['customRanges'],(_0x278c60=_0x3a5242[_0x416ab7(0x8d)])==null?void 0x0:_0x278c60['customRanges']),G(_0x4ce601,[_0x416ab7(0x8d),_0x416ab7(0xce)],(_0x54b8d7=_0x33b070[_0x416ab7(0x8d)])==null?void 0x0:_0x54b8d7['customDecorations'],(_0x333d45=_0x3a5242[_0x416ab7(0x8d)])==null?void 0x0:_0x333d45[_0x416ab7(0xce)]),G(_0x4ce601,['body','tables'],(_0xdd8e73=_0x33b070[_0x416ab7(0x8d)])==null?void 0x0:_0xdd8e73[_0x416ab7(0xde)],(_0x567ea3=_0x3a5242[_0x416ab7(0x8d)])==null?void 0x0:_0x567ea3[_0x416ab7(0xde)]),G(_0x4ce601,[_0x416ab7(0x8d),_0x416ab7(0x79)],(_0x35b1b0=_0x33b070['body'])==null?void 0x0:_0x35b1b0[_0x416ab7(0x79)],(_0x1cc85a=_0x3a5242['body'])==null?void 0x0:_0x1cc85a[_0x416ab7(0x79)])][_0x416ab7(0xd4)](Boolean)[_0x416ab7(0x89)]((_0x4777d4,_0xdf8453)=>e['JSONX']['compose'](_0x4777d4,_0xdf8453),null);}function G(_0x3ac6c6,_0x236ea8,_0xef2570,_0x3c953c){const _0x4f6bd5=_0x148bf2;return e[_0x4f6bd5(0xf1)][_0x4f6bd5(0x84)](_0xef2570,_0x3c953c)?null:_0x3ac6c6[_0x4f6bd5(0x92)](_0x236ea8,_0xef2570,_0x3c953c);}function K(_0x25db0e,_0x3386a6,_0x28f53e,_0xfedc1b,_0x36c3e2){const _0x3a28ef=_0x148bf2;let _0x4d7865=W(_0x28f53e,_0xfedc1b);return _0x4d7865?!!_0x25db0e['syncExecuteCommand'](t[_0x3a28ef(0x9a)]['id'],{'unitId':_0x3386a6,'actions':_0x4d7865,'textRanges':[{'startOffset':_0x36c3e2,'endOffset':_0x36c3e2,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}var ce=_0x148bf2(0xed),le=_0x148bf2(0x7d);const q=_0x148bf2(0xc4);Symbol(q);const J={};function Y(_0x2d8b37,_0x9278db){return function(_0x2bbd59,_0x2741df){_0x9278db(_0x2bbd59,_0x2741df,_0x2d8b37);};}function X(_0x38c098,_0x33b1c4,_0x38ed8e,_0x35e719){const _0x16f5e4=_0x148bf2;var _0x1d5463=arguments[_0x16f5e4(0x7a)],_0x494f74=_0x1d5463<0x3?_0x33b1c4:_0x35e719===null?_0x35e719=Object[_0x16f5e4(0xae)](_0x33b1c4,_0x38ed8e):_0x35e719,_0x3c38c4;if(typeof Reflect==_0x16f5e4(0xac)&&typeof Reflect[_0x16f5e4(0xa4)]==_0x16f5e4(0xd6))_0x494f74=Reflect['decorate'](_0x38c098,_0x33b1c4,_0x38ed8e,_0x35e719);else{for(var _0xd51f70=_0x38c098['length']-0x1;_0xd51f70>=0x0;_0xd51f70--)(_0x3c38c4=_0x38c098[_0xd51f70])&&(_0x494f74=(_0x1d5463<0x3?_0x3c38c4(_0x494f74):_0x1d5463>0x3?_0x3c38c4(_0x33b1c4,_0x38ed8e,_0x494f74):_0x3c38c4(_0x33b1c4,_0x38ed8e))||_0x494f74);}return _0x1d5463>0x3&&_0x494f74&&Object[_0x16f5e4(0xc1)](_0x33b1c4,_0x38ed8e,_0x494f74),_0x494f74;}function Z(_0x18bfcb){'@babel/helpers - typeof';const _0x412578=_0x148bf2;return Z=typeof Symbol==_0x412578(0xd6)&&typeof Symbol[_0x412578(0xbf)]==_0x412578(0xe1)?function(_0x55ba5f){return typeof _0x55ba5f;}:function(_0xc6d78c){const _0x5caa18=_0x412578;return _0xc6d78c&&typeof Symbol=='function'&&_0xc6d78c[_0x5caa18(0x73)]===Symbol&&_0xc6d78c!==Symbol[_0x5caa18(0xdf)]?_0x5caa18(0xe1):typeof _0xc6d78c;},Z(_0x18bfcb);}function ue(_0x133975,_0x26fc75){const _0x260f9f=_0x148bf2;if(Z(_0x133975)!='object'||!_0x133975)return _0x133975;var _0x352911=_0x133975[Symbol[_0x260f9f(0x97)]];if(_0x352911!==void 0x0){var _0x3a6a63=_0x352911[_0x260f9f(0x75)](_0x133975,_0x26fc75||_0x260f9f(0xa9));if(Z(_0x3a6a63)!=_0x260f9f(0xac))return _0x3a6a63;throw TypeError(_0x260f9f(0x74));}return(_0x26fc75===_0x260f9f(0x94)?String:Number)(_0x133975);}function de(_0x6f7d24){const _0x28c298=_0x148bf2;var _0x38cdc2=ue(_0x6f7d24,_0x28c298(0x94));return Z(_0x38cdc2)==_0x28c298(0xe1)?_0x38cdc2:_0x38cdc2+'';}function Q(_0x5c8b03,_0x2006c1,_0x5c8c80){return(_0x2006c1=de(_0x2006c1))in _0x5c8b03?Object['defineProperty'](_0x5c8b03,_0x2006c1,{'value':_0x5c8c80,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5c8b03[_0x2006c1]=_0x5c8c80,_0x5c8b03;}let $=class extends e['Plugin']{constructor(_0x59f3e4=J,_0x55e353,_0x727a53,_0x1e4675){const _0x381aec=_0x148bf2;super(),this['_config']=_0x59f3e4,this[_0x381aec(0xa5)]=_0x55e353,this[_0x381aec(0xbb)]=_0x727a53,this[_0x381aec(0xaa)]=_0x1e4675;let {..._0x1ca0fa}=(0x0,e[_0x381aec(0x8c)])({},J,this[_0x381aec(0xeb)]);this[_0x381aec(0xaa)]['setConfig'](q,_0x1ca0fa);}[_0x148bf2(0x95)](){const _0x11bfae=_0x148bf2;[R,L,z,B][_0x11bfae(0x85)](_0x393023=>this['disposeWithMe'](this[_0x11bfae(0xbb)][_0x11bfae(0xe6)](_0x393023)));}};function _0x2622(_0x66eb7,_0x51ead4){_0x66eb7=_0x66eb7-0x6f;const _0x5d2a4f=_0x5d2a();let _0x2622c1=_0x5d2a4f[_0x66eb7];return _0x2622c1;}Q($,'pluginName',i),Q($,_0x148bf2(0xea),ce),Q($,_0x148bf2(0xab),le),Q($,_0x148bf2(0xb1),e[_0x148bf2(0x88)][_0x148bf2(0x9e)]),$=X([(0x0,e[_0x148bf2(0xd9)])(r['UniverLicensePlugin'],t[_0x148bf2(0xdc)]),Y(0x1,(0x0,e[_0x148bf2(0x6f)])(e[_0x148bf2(0xb4)])),Y(0x2,e[_0x148bf2(0xd0)]),Y(0x3,e[_0x148bf2(0xd2)])],$),exports['DOCS_QUOTE_BLOCK_TYPE']=a,exports[_0x148bf2(0xc7)]=i,exports[_0x148bf2(0xd7)]=B,exports[_0x148bf2(0xe7)]=z,exports[_0x148bf2(0x81)]=L,exports[_0x148bf2(0x99)]=R,Object[_0x148bf2(0xc1)](exports,_0x148bf2(0xef),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x148bf2(0x7c)]=u,exports['buildExitQuoteActions']=l,exports[_0x148bf2(0xcb)]=o,exports[_0x148bf2(0x9c)]=p;
|
package/lib/es/facade.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x4ec56b=_0x37e1;(function(_0x2268e6,_0x5e2b18){const _0xf76119=_0x37e1,_0x55e55d=_0x2268e6();while(!![]){try{const _0x24876f=parseInt(_0xf76119(0x161))/0x1*(-parseInt(_0xf76119(0x18a))/0x2)+parseInt(_0xf76119(0x185))/0x3+parseInt(_0xf76119(0x180))/0x4*(-parseInt(_0xf76119(0x14c))/0x5)+-parseInt(_0xf76119(0x146))/0x6*(parseInt(_0xf76119(0x163))/0x7)+-parseInt(_0xf76119(0x15a))/0x8*(parseInt(_0xf76119(0x16f))/0x9)+parseInt(_0xf76119(0x174))/0xa+parseInt(_0xf76119(0x142))/0xb*(parseInt(_0xf76119(0x148))/0xc);if(_0x24876f===_0x5e2b18)break;else _0x55e55d['push'](_0x55e55d['shift']());}catch(_0x2b0530){_0x55e55d['push'](_0x55e55d['shift']());}}}(_0x5043,0x62fe7));import{CommandType as _0x5b2109,DataStreamTreeTokenType as _0x19dcdd,ICommandService as _0x1d2fde,IUniverInstanceService as _0x6ec290,JSONX as _0x4b7bdb,Tools as _0x2656d0,UniverInstanceType as _0x329643,generateRandomId as _0x31817e}from'@univerjs/core';import{FDocument as _0x486f68}from'@univerjs/docs-ui/facade';import{DocSelectionManagerService as _0x13b143,RichTextEditingMutation as _0x24f978}from'@univerjs/docs';import'@univerjs/docs-ui';const d=_0x4ec56b(0x16e);function f(_0x21aa71){const _0x450739=_0x4ec56b;var _0x4edb3c,_0x104130,_0x67af71;let _0x415877=T(_0x21aa71[_0x450739(0x171)]),_0x1fba05=E(_0x415877),_0x4b885f=p(_0x21aa71[_0x450739(0x149)],_0x21aa71[_0x450739(0x14a)]),_0xe4bdfa=_0x4b885f?(_0x4edb3c=_0x1fba05[_0x450739(0x15f)])==null?void 0x0:_0x4edb3c[_0x450739(0x182)](_0x1ae3c0=>_0x1ae3c0['startIndex']===_0x4b885f[_0x450739(0x149)]&&_0x1ae3c0['endIndex']+0x1===_0x4b885f['endOffset']):void 0x0,{startOffset:_0x4afb20,endOffset:_0x1c48b1}=_0xe4bdfa?_0x4b885f:D(_0x1fba05,_0x21aa71[_0x450739(0x149)],_0x21aa71[_0x450739(0x14a)]),_0x50960a=O(_0x1fba05,_0x4afb20,_0x1c48b1),_0x20faa3=(_0x104130=_0xe4bdfa==null?void 0x0:_0xe4bdfa[_0x450739(0x13d)])==null?_0x21aa71[_0x450739(0x13d)]:_0x104130;if(_0xe4bdfa)return _0xe4bdfa[_0x450739(0x176)]=d,m(_0x1fba05,_0x4afb20,_0x1c48b1),x(_0x1fba05,_0x4afb20,_0x1c48b1,_0x50960a),{'nextDocumentData':_0x415877,'cursorOffset':_0x4afb20+0x1};if(_0x4afb20===_0x1c48b1){let _0x12ec30=''+_0x19dcdd['BLOCK_START']+_0x19dcdd[_0x450739(0x16d)]+_0x19dcdd[_0x450739(0x184)];return P(_0x1fba05,_0x4afb20,_0x12ec30,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':b(!0x0,!0x0,_0x50960a)}],'blockRanges':[{'blockId':_0x20faa3,'blockType':d,'startIndex':0x0,'endIndex':_0x12ec30[_0x450739(0x14e)]-0x1}]}),{'nextDocumentData':_0x415877,'cursorOffset':_0x4afb20+0x1};}return P(_0x1fba05,_0x1c48b1,_0x19dcdd[_0x450739(0x184)]),P(_0x1fba05,_0x4afb20,_0x19dcdd[_0x450739(0x160)]),x(_0x1fba05,_0x4afb20,_0x1c48b1+0x1,_0x50960a),_0x1fba05['blockRanges']=[...(_0x67af71=_0x1fba05['blockRanges'])==null?[]:_0x67af71,{'blockId':_0x20faa3,'blockType':d,'startIndex':_0x4afb20,'endIndex':_0x1c48b1+0x1}][_0x450739(0x18d)]((_0x473294,_0x3f26f2)=>_0x473294[_0x450739(0x18f)]-_0x3f26f2['startIndex']),{'nextDocumentData':_0x415877,'cursorOffset':_0x4afb20+0x1};}function _0x37e1(_0x378ff1,_0x21eebb){_0x378ff1=_0x378ff1-0x134;const _0x50438d=_0x5043();let _0x37e14d=_0x50438d[_0x378ff1];return _0x37e14d;}function p(_0x4de315,_0x66181b){const _0x2bb678=_0x4ec56b;return _0x4de315==null||_0x66181b==null||_0x4de315===_0x66181b?null:{'startOffset':Math['min'](_0x4de315,_0x66181b),'endOffset':Math[_0x2bb678(0x179)](_0x4de315,_0x66181b)};}function m(_0x457e2c,_0x485d1d,_0x10322b){const _0x2e3b21=_0x4ec56b;var _0x5ea095;((_0x5ea095=_0x457e2c['paragraphs'])==null?[]:_0x5ea095)[_0x2e3b21(0x16c)](_0x3037d0=>_0x3037d0['startIndex']>_0x485d1d&&_0x3037d0[_0x2e3b21(0x18f)]<_0x10322b)['forEach'](_0x21663b=>{const _0x15cb4d=_0x2e3b21;var _0x1f11dc;let _0x52d574={...(_0x1f11dc=_0x21663b[_0x15cb4d(0x15c)])==null?{}:_0x1f11dc};delete _0x52d574[_0x15cb4d(0x138)],delete _0x52d574[_0x15cb4d(0x158)],delete _0x52d574[_0x15cb4d(0x165)],delete _0x52d574[_0x15cb4d(0x17e)],_0x21663b[_0x15cb4d(0x15c)]=_0x52d574;});}function h(_0x1f9f41){const _0x432943=_0x4ec56b;var _0x1a4910,_0x1ea8ca;let _0x25395e=T(_0x1f9f41[_0x432943(0x171)]),_0x29bebe=E(_0x25395e),_0x34f52b=y(_0x29bebe,_0x1f9f41[_0x432943(0x183)]);if(!_0x34f52b)return null;let _0x15e79c=C(_0x29bebe,_0x34f52b),_0x10b091=_0x15e79c[_0x15e79c['length']-0x1];if(!_0x10b091||!ee(_0x29bebe,_0x34f52b,_0x10b091)||_0x1f9f41[_0x432943(0x183)]<_0x10b091['startIndex'])return null;let _0x280c95=j(_0x29bebe,_0x34f52b,_0x10b091);if(_0x280c95>=_0x34f52b[_0x432943(0x15d)])return null;_0x29bebe['dataStream']=[_0x29bebe['dataStream'][_0x432943(0x169)](0x0,_0x280c95),_0x19dcdd['BLOCK_END'],_0x29bebe[_0x432943(0x13c)]['slice'](_0x280c95,_0x34f52b[_0x432943(0x15d)]),_0x29bebe[_0x432943(0x13c)]['slice'](_0x34f52b[_0x432943(0x15d)]+0x1)][_0x432943(0x189)](''),V(_0x29bebe['paragraphs'],_0x280c95,_0x34f52b[_0x432943(0x15d)],0x1),V(_0x29bebe[_0x432943(0x18b)],_0x280c95,_0x34f52b[_0x432943(0x15d)],0x1),V(_0x29bebe['customBlocks'],_0x280c95,_0x34f52b[_0x432943(0x15d)],0x1),H(_0x29bebe['textRuns'],_0x280c95,_0x34f52b[_0x432943(0x15d)],0x1),U(_0x29bebe['tables'],_0x280c95,_0x34f52b[_0x432943(0x15d)],0x1),U(_0x29bebe[_0x432943(0x135)],_0x280c95,_0x34f52b[_0x432943(0x15d)],0x1),U(_0x29bebe[_0x432943(0x14f)],_0x280c95,_0x34f52b['endIndex'],0x1),(_0x1a4910=_0x29bebe[_0x432943(0x15f)])==null||_0x1a4910[_0x432943(0x159)](_0x29467f=>{const _0x55bf02=_0x432943;_0x29467f===_0x34f52b||_0x29467f['blockId']===_0x34f52b[_0x55bf02(0x13d)]?_0x29467f[_0x55bf02(0x15d)]=_0x280c95:_0x29467f[_0x55bf02(0x18f)]>=_0x280c95&&_0x29467f[_0x55bf02(0x18f)]<_0x34f52b[_0x55bf02(0x15d)]&&(_0x29467f['startIndex']+=0x1,_0x29467f[_0x55bf02(0x15d)]+=0x1);});let _0x39ba53=C(_0x29bebe,{..._0x34f52b,'endIndex':_0x280c95});_0x39ba53[_0x432943(0x159)]((_0x4f514f,_0x11636a)=>{const _0x22681a=_0x432943;var _0x339f2e;_0x4f514f[_0x22681a(0x15c)]={...(_0x339f2e=_0x4f514f[_0x22681a(0x15c)])==null?{}:_0x339f2e,...b(_0x11636a===0x0,_0x11636a===_0x39ba53[_0x22681a(0x14e)]-0x1)};});let _0x291c09=(_0x1ea8ca=_0x29bebe[_0x432943(0x15b)])==null?void 0x0:_0x1ea8ca[_0x432943(0x182)](_0xcbc7a3=>_0xcbc7a3[_0x432943(0x18f)]===_0x280c95+0x1);return _0x291c09&&(_0x291c09[_0x432943(0x15c)]=S(_0x291c09[_0x432943(0x15c)])),{'nextDocumentData':_0x25395e,'cursorOffset':_0x280c95+0x1};}function g(_0x36dc9c){const _0x5b8cf5=_0x4ec56b;let _0x3c19d2=T(_0x36dc9c[_0x5b8cf5(0x171)]),_0x2b0d0e=E(_0x3c19d2),_0x108e8f=y(_0x2b0d0e,_0x36dc9c['cursorOffset']);return _0x108e8f&&(_(_0x3c19d2,_0x2b0d0e,_0x108e8f,_0x36dc9c['cursorOffset'],_0x36dc9c[_0x5b8cf5(0x173)])||v(_0x3c19d2,_0x2b0d0e,_0x108e8f,_0x36dc9c[_0x5b8cf5(0x183)]))||null;}function _(_0x50a4f8,_0x36508e,_0x261918,_0x585691,_0x3edd58){const _0x275b28=_0x4ec56b;let _0x5936e5=N(_0x36508e,_0x261918,_0x585691,_0x3edd58);if(!_0x5936e5)return null;let _0x40444c=_0x5936e5[_0x275b28(0x186)]-0x1;return F(_0x36508e,_0x5936e5[_0x275b28(0x139)]['startIndex'],_0x5936e5[_0x275b28(0x139)]['startIndex']+0x1),{'nextDocumentData':_0x50a4f8,'cursorOffset':_0x40444c};}function v(_0x19923a,_0x3750b2,_0x21c45a,_0x56625f){const _0x75a797=_0x4ec56b;if(_0x56625f!==_0x21c45a['startIndex']+0x1)return null;let _0x485c86=C(_0x3750b2,_0x21c45a),_0x41632c=_0x485c86[0x0];return!_0x41632c||j(_0x3750b2,_0x21c45a,_0x41632c)!==_0x56625f?null:_0x485c86[_0x75a797(0x14e)]===0x1?te(_0x19923a,_0x3750b2,_0x21c45a,_0x41632c):w(_0x19923a,_0x3750b2,_0x21c45a,_0x41632c);}function y(_0x5e5127,_0x1b936c){const _0x4245b0=_0x4ec56b;var _0x141337;return(_0x141337=_0x5e5127[_0x4245b0(0x15f)])==null?void 0x0:_0x141337['find'](_0x490c71=>{const _0x3d4bb7=_0x4245b0;let _0x26d7a1=M(_0x5e5127,_0x490c71);return _0x490c71[_0x3d4bb7(0x176)]===_0x3d4bb7(0x16e)&&_0x490c71[_0x3d4bb7(0x18f)]<=_0x1b936c&&_0x1b936c<=_0x26d7a1+0x2;});}function b(_0x47d186,_0x38ee05,_0xfb9838=!0x1){return{'indentStart':{'v':0x16},..._0x47d186&&_0xfb9838?{'spaceAbove':{'v':0x8}}:{}};}function x(_0x3c60dc,_0x3cab01,_0x55eacc,_0x169e37=!0x1){const _0x3cb2c2=_0x4ec56b;var _0x5da1b9;let _0x4a1aa3=((_0x5da1b9=_0x3c60dc[_0x3cb2c2(0x15b)])==null?[]:_0x5da1b9)[_0x3cb2c2(0x16c)](_0x5c5706=>_0x5c5706[_0x3cb2c2(0x18f)]>_0x3cab01&&_0x5c5706[_0x3cb2c2(0x18f)]<_0x55eacc);_0x4a1aa3[_0x3cb2c2(0x159)]((_0x32094c,_0xe0dd6f)=>{const _0x14c149=_0x3cb2c2;var _0x59aba3;_0x32094c[_0x14c149(0x15c)]={...(_0x59aba3=_0x32094c[_0x14c149(0x15c)])==null?{}:_0x59aba3,...b(_0xe0dd6f===0x0,_0xe0dd6f===_0x4a1aa3[_0x14c149(0x14e)]-0x1,_0x169e37)};});}function S(_0x21438a){const _0x42b429=_0x4ec56b;let _0x2a9dde={..._0x21438a==null?{}:_0x21438a};return delete _0x2a9dde['indentStart'],delete _0x2a9dde[_0x42b429(0x158)],delete _0x2a9dde[_0x42b429(0x165)],_0x2a9dde;}function C(_0x315691,_0x505709){const _0x4ff995=_0x4ec56b;var _0x540b6c;let _0x350f76=M(_0x315691,_0x505709);return((_0x540b6c=_0x315691[_0x4ff995(0x15b)])==null?[]:_0x540b6c)[_0x4ff995(0x16c)](_0x1b60d8=>_0x1b60d8[_0x4ff995(0x18f)]>_0x505709[_0x4ff995(0x18f)]&&_0x1b60d8[_0x4ff995(0x18f)]<_0x350f76);}function ee(_0x1c1cdd,_0x6fe3df,_0x19ec46){const _0x48f40f=_0x4ec56b;let _0x4d28c6=j(_0x1c1cdd,_0x6fe3df,_0x19ec46),_0x54e01b=_0x1c1cdd[_0x48f40f(0x13c)][_0x48f40f(0x169)](_0x4d28c6,_0x19ec46[_0x48f40f(0x18f)]);return Array[_0x48f40f(0x137)](_0x54e01b)['every'](_0xdd9ebd=>_0xdd9ebd===_0x19dcdd[_0x48f40f(0x160)]||_0xdd9ebd===_0x19dcdd['BLOCK_END']);}function te(_0x564fe4,_0x348e39,_0x2314a8,_0x10dc6f){const _0x3699d9=_0x4ec56b;var _0x2e5a45,_0x4e9613;let _0xab965c=_0x2314a8[_0x3699d9(0x18f)];F(_0x348e39,_0x2314a8[_0x3699d9(0x15d)],_0x2314a8[_0x3699d9(0x15d)]+0x1),F(_0x348e39,_0x2314a8['startIndex'],_0x2314a8[_0x3699d9(0x18f)]+0x1),_0x348e39[_0x3699d9(0x15f)]=(_0x2e5a45=_0x348e39[_0x3699d9(0x15f)])==null?void 0x0:_0x2e5a45[_0x3699d9(0x16c)](_0x231629=>_0x231629[_0x3699d9(0x13d)]!==_0x2314a8['blockId']);let _0x37d5d5=(_0x4e9613=_0x348e39[_0x3699d9(0x15b)])==null?void 0x0:_0x4e9613[_0x3699d9(0x182)](_0xba63c4=>_0xba63c4[_0x3699d9(0x18f)]===_0x10dc6f[_0x3699d9(0x18f)]-0x1);return _0x37d5d5&&(_0x37d5d5['paragraphStyle']=S(_0x37d5d5[_0x3699d9(0x15c)])),{'nextDocumentData':_0x564fe4,'cursorOffset':_0xab965c};}function w(_0xec57de,_0x56c139,_0x3cc9a4,_0x2c6176){const _0x11f937=_0x4ec56b;var _0x31d544,_0x38de57;let _0x148715=_0x2c6176[_0x11f937(0x18f)],_0x3295a9=_0x3cc9a4['startIndex'];P(_0x56c139,_0x2c6176[_0x11f937(0x18f)]+0x1,_0x19dcdd[_0x11f937(0x160)]),F(_0x56c139,_0x3cc9a4['startIndex'],_0x3cc9a4['startIndex']+0x1);let _0x3113e2=(_0x31d544=_0x56c139[_0x11f937(0x15b)])==null?void 0x0:_0x31d544[_0x11f937(0x182)](_0x29a395=>_0x29a395[_0x11f937(0x18f)]===_0x148715-0x1),_0x1cd5dc=(_0x38de57=_0x56c139[_0x11f937(0x15f)])==null?void 0x0:_0x38de57[_0x11f937(0x182)](_0x213726=>_0x213726[_0x11f937(0x13d)]===_0x3cc9a4[_0x11f937(0x13d)]);return _0x3113e2&&(_0x3113e2[_0x11f937(0x15c)]=S(_0x3113e2['paragraphStyle']),_0x1cd5dc&&(_0x1cd5dc[_0x11f937(0x18f)]=_0x3113e2[_0x11f937(0x18f)]+0x1)),_0x1cd5dc&&x(_0x56c139,_0x1cd5dc[_0x11f937(0x18f)],_0x1cd5dc['endIndex']),{'nextDocumentData':_0xec57de,'cursorOffset':_0x3295a9};}function T(_0x358843){return _0x2656d0['deepClone'](_0x358843);}function E(_0x4f082e){const _0x59b419=_0x4ec56b;if(!_0x4f082e['body'])throw Error(_0x59b419(0x188));return _0x4f082e[_0x59b419(0x15e)];}function D(_0x5ec46b,_0x3cdd8c,_0x54da6b){const _0x35886e=_0x4ec56b;if(_0x3cdd8c==null||_0x54da6b==null){let _0x146c97=ne(_0x5ec46b);return{'startOffset':_0x146c97,'endOffset':_0x146c97};}let _0x3b5018=Math['min'](_0x3cdd8c,_0x54da6b),_0x13d040=Math[_0x35886e(0x179)](_0x3cdd8c,_0x54da6b);return _0x3b5018===_0x13d040?{'startOffset':_0x3b5018,'endOffset':_0x3b5018}:k(_0x5ec46b,_0x3b5018,_0x13d040);}function ne(_0x4e606c){const _0xd0b097=_0x4ec56b;return _0x4e606c[_0xd0b097(0x13c)][_0xd0b097(0x147)](_0x19dcdd[_0xd0b097(0x17c)])?Math[_0xd0b097(0x179)](0x0,_0x4e606c[_0xd0b097(0x13c)][_0xd0b097(0x14e)]-0x1):_0x4e606c['dataStream'][_0xd0b097(0x14e)];}function O(_0x14387c,_0x312104,_0x5bf10){const _0x1c8a85=_0x4ec56b;var _0x3bb10d;let _0x2d9a57=Math[_0x1c8a85(0x14d)](_0x312104,_0x5bf10),_0x25d5da=Math[_0x1c8a85(0x179)](_0x312104,_0x5bf10);return!!((_0x3bb10d=_0x14387c[_0x1c8a85(0x157)])!=null&&_0x3bb10d[_0x1c8a85(0x156)](_0x40e87d=>_0x2d9a57>_0x40e87d[_0x1c8a85(0x18f)]&&_0x2d9a57<_0x40e87d['endIndex']||_0x25d5da>_0x40e87d[_0x1c8a85(0x18f)]&&_0x25d5da<_0x40e87d['endIndex']||_0x2d9a57<=_0x40e87d[_0x1c8a85(0x18f)]&&_0x25d5da>=_0x40e87d[_0x1c8a85(0x15d)]));}function k(_0x1ad457,_0x1612ab,_0x2b65a2){const _0x3f095f=_0x4ec56b;var _0x287b7f,_0x1b2c74;let _0x4936fc=[...(_0x287b7f=_0x1ad457['paragraphs'])==null?[]:_0x287b7f][_0x3f095f(0x18d)]((_0x1990da,_0x59a27c)=>_0x1990da[_0x3f095f(0x18f)]-_0x59a27c[_0x3f095f(0x18f)]),_0x2f728c=_0x4936fc['find']((_0x2c078d,_0xe3e384)=>(_0xe3e384===0x0?0x0:_0x4936fc[_0xe3e384-0x1]['startIndex']+0x1)<=_0x1612ab&&_0x1612ab<=_0x2c078d[_0x3f095f(0x18f)]),_0x3196e9=(_0x1b2c74=_0x4936fc['find'](_0x4e00d5=>_0x4e00d5[_0x3f095f(0x18f)]>=_0x2b65a2-0x1))==null?_0x4936fc[_0x4936fc[_0x3f095f(0x14e)]-0x1]:_0x1b2c74;return{'startOffset':_0x2f728c?A(_0x4936fc,_0x2f728c):_0x1612ab,'endOffset':_0x3196e9?_0x3196e9[_0x3f095f(0x18f)]+0x1:_0x2b65a2};}function A(_0x58e367,_0x7c854){const _0x2cad3d=_0x4ec56b;let _0x15d2b=_0x58e367[_0x2cad3d(0x140)](_0x7c854);return _0x15d2b>0x0?_0x58e367[_0x15d2b-0x1]['startIndex']+0x1:0x0;}function j(_0x407afc,_0x1b8f9b,_0x3fb81c){const _0x3bec5f=_0x4ec56b;var _0xd73003;return Math[_0x3bec5f(0x179)](A((_0xd73003=_0x407afc[_0x3bec5f(0x15b)])==null?[]:_0xd73003,_0x3fb81c),_0x1b8f9b[_0x3bec5f(0x18f)]+0x1);}function M(_0x31a25b,_0x3480dd){const _0x26814e=_0x4ec56b;return _0x31a25b['dataStream'][_0x3480dd[_0x26814e(0x15d)]]===_0x19dcdd[_0x26814e(0x184)]?_0x3480dd[_0x26814e(0x15d)]:_0x31a25b[_0x26814e(0x13c)][_0x3480dd[_0x26814e(0x15d)]+0x1]===_0x19dcdd[_0x26814e(0x184)]?_0x3480dd[_0x26814e(0x15d)]+0x1:_0x3480dd[_0x26814e(0x15d)];}function N(_0x203826,_0x466bad,_0x3c2743,_0x455494){const _0x534ac1=_0x4ec56b;var _0x202bac,_0x1b0f5d;let _0x10da81=M(_0x203826,_0x466bad),_0x35f403=((_0x202bac=_0x203826[_0x534ac1(0x15b)])==null?[]:_0x202bac)[_0x534ac1(0x182)](_0x1caec4=>_0x1caec4[_0x534ac1(0x18f)]===_0x10da81+0x1);if(!_0x35f403||_0x455494!=null&&_0x35f403[_0x534ac1(0x18f)]!==_0x455494||_0x3c2743<_0x10da81||_0x3c2743>_0x35f403[_0x534ac1(0x18f)]+0x1||_0x203826['dataStream'][_0x35f403['startIndex']]!==_0x19dcdd['PARAGRAPH'])return null;let _0x18bb9d=A((_0x1b0f5d=_0x203826[_0x534ac1(0x15b)])==null?[]:_0x1b0f5d,_0x35f403),_0x31191d=_0x203826[_0x534ac1(0x13c)][_0x534ac1(0x169)](_0x18bb9d,_0x35f403[_0x534ac1(0x18f)]);return Array[_0x534ac1(0x137)](_0x31191d)[_0x534ac1(0x164)](_0x43bfe2=>_0x43bfe2===_0x19dcdd['BLOCK_END'])?{'paragraph':_0x35f403,'endTokenOffset':_0x10da81}:null;}function P(_0x1e9264,_0x33c635,_0x48ad7a,_0x5a1267={}){const _0x562d38=_0x4ec56b;var _0x10928a,_0x585551;if(_0x48ad7a){if(_0x1e9264[_0x562d38(0x13c)]=''+_0x1e9264[_0x562d38(0x13c)][_0x562d38(0x169)](0x0,_0x33c635)+_0x48ad7a+_0x1e9264[_0x562d38(0x13c)][_0x562d38(0x169)](_0x33c635),I(_0x1e9264,_0x33c635,_0x48ad7a[_0x562d38(0x14e)]),(_0x10928a=_0x5a1267['paragraphs'])!=null&&_0x10928a[_0x562d38(0x14e)]){var _0x28c5d2;_0x1e9264[_0x562d38(0x15b)]=[...(_0x28c5d2=_0x1e9264[_0x562d38(0x15b)])==null?[]:_0x28c5d2,..._0x5a1267[_0x562d38(0x15b)]['map'](_0x2b931c=>({..._0x2b931c,'startIndex':_0x2b931c[_0x562d38(0x18f)]+_0x33c635}))]['sort']((_0x19c918,_0x16a6d4)=>_0x19c918[_0x562d38(0x18f)]-_0x16a6d4[_0x562d38(0x18f)]);}if((_0x585551=_0x5a1267[_0x562d38(0x15f)])!=null&&_0x585551[_0x562d38(0x14e)]){var _0x12d9d6;_0x1e9264[_0x562d38(0x15f)]=[...(_0x12d9d6=_0x1e9264[_0x562d38(0x15f)])==null?[]:_0x12d9d6,..._0x5a1267['blockRanges'][_0x562d38(0x13a)](_0x2fc7dc=>({..._0x2fc7dc,'startIndex':_0x2fc7dc[_0x562d38(0x18f)]+_0x33c635,'endIndex':_0x2fc7dc['endIndex']+_0x33c635}))][_0x562d38(0x18d)]((_0x525c87,_0x113708)=>_0x525c87['startIndex']-_0x113708['startIndex']);}}}function F(_0x5f4734,_0x354bb4,_0x106dd2){const _0x1ee0b3=_0x4ec56b;let _0x3a362f=_0x106dd2-_0x354bb4;_0x5f4734['dataStream']=''+_0x5f4734[_0x1ee0b3(0x13c)][_0x1ee0b3(0x169)](0x0,_0x354bb4)+_0x5f4734[_0x1ee0b3(0x13c)][_0x1ee0b3(0x169)](_0x106dd2),re(_0x5f4734,_0x354bb4,_0x3a362f);}function I(_0x320863,_0xe279a0,_0x205bcd){const _0x2d8332=_0x4ec56b;_0x320863['paragraphs']=L(_0x320863[_0x2d8332(0x15b)],_0xe279a0,_0x205bcd),_0x320863[_0x2d8332(0x18b)]=L(_0x320863[_0x2d8332(0x18b)],_0xe279a0,_0x205bcd),_0x320863[_0x2d8332(0x187)]=L(_0x320863['customBlocks'],_0xe279a0,_0x205bcd),_0x320863['textRuns']=ie(_0x320863['textRuns'],_0xe279a0,_0x205bcd),_0x320863[_0x2d8332(0x157)]=z(_0x320863['tables'],_0xe279a0,_0x205bcd),_0x320863[_0x2d8332(0x135)]=z(_0x320863[_0x2d8332(0x135)],_0xe279a0,_0x205bcd),_0x320863[_0x2d8332(0x14f)]=z(_0x320863[_0x2d8332(0x14f)],_0xe279a0,_0x205bcd),_0x320863[_0x2d8332(0x15f)]=z(_0x320863['blockRanges'],_0xe279a0,_0x205bcd);}function re(_0x5b4688,_0x55893a,_0x4dae1d){const _0x3aba01=_0x4ec56b;var _0x5517ad,_0x54582b;_0x5b4688[_0x3aba01(0x15b)]=R(_0x5b4688['paragraphs'],_0x55893a,_0x4dae1d),_0x5b4688[_0x3aba01(0x18b)]=R(_0x5b4688[_0x3aba01(0x18b)],_0x55893a,_0x4dae1d),_0x5b4688[_0x3aba01(0x187)]=R(_0x5b4688[_0x3aba01(0x187)],_0x55893a,_0x4dae1d),_0x5b4688['textRuns']=(_0x5517ad=B((_0x54582b=_0x5b4688[_0x3aba01(0x177)])==null?void 0x0:_0x54582b['map'](_0x5118da=>({..._0x5118da,'startIndex':_0x5118da['st'],'endIndex':_0x5118da['ed']})),_0x55893a,_0x4dae1d))==null?void 0x0:_0x5517ad['map'](_0x2cd889=>{let {startIndex:_0xc71307,endIndex:_0x58a6f2,..._0x1f9178}=_0x2cd889;return{..._0x1f9178,'st':_0xc71307,'ed':_0x58a6f2};}),_0x5b4688[_0x3aba01(0x157)]=B(_0x5b4688['tables'],_0x55893a,_0x4dae1d),_0x5b4688[_0x3aba01(0x135)]=B(_0x5b4688[_0x3aba01(0x135)],_0x55893a,_0x4dae1d),_0x5b4688[_0x3aba01(0x14f)]=B(_0x5b4688['customDecorations'],_0x55893a,_0x4dae1d),_0x5b4688[_0x3aba01(0x15f)]=B(_0x5b4688[_0x3aba01(0x15f)],_0x55893a,_0x4dae1d);}function L(_0x55a0d9,_0x276c14,_0x100b48){const _0x3dd542=_0x4ec56b;return _0x55a0d9==null?void 0x0:_0x55a0d9['map'](_0x319555=>_0x319555['startIndex']>=_0x276c14?{..._0x319555,'startIndex':_0x319555[_0x3dd542(0x18f)]+_0x100b48}:_0x319555);}function R(_0x47efe2,_0x577eca,_0x245fc8){const _0x2c2bd8=_0x4ec56b;let _0xe5afcb=_0x577eca+_0x245fc8;return _0x47efe2==null?void 0x0:_0x47efe2[_0x2c2bd8(0x13a)](_0x649daa=>_0x649daa[_0x2c2bd8(0x18f)]>=_0x577eca&&_0x649daa[_0x2c2bd8(0x18f)]<_0xe5afcb?null:_0x649daa['startIndex']>=_0xe5afcb?{..._0x649daa,'startIndex':_0x649daa['startIndex']-_0x245fc8}:_0x649daa)['filter'](_0x24a136=>_0x24a136!=null);}function ie(_0x4c41fb,_0x5ef08b,_0x264907){const _0x2fc3f0=_0x4ec56b;return _0x4c41fb==null?void 0x0:_0x4c41fb[_0x2fc3f0(0x13a)](_0x29e219=>_0x29e219['st']>=_0x5ef08b?{..._0x29e219,'st':_0x29e219['st']+_0x264907,'ed':_0x29e219['ed']+_0x264907}:_0x29e219['ed']>_0x5ef08b?{..._0x29e219,'ed':_0x29e219['ed']+_0x264907}:_0x29e219);}function z(_0xb3af1d,_0x5ce716,_0x558b27){const _0x36242a=_0x4ec56b;return _0xb3af1d==null?void 0x0:_0xb3af1d[_0x36242a(0x13a)](_0x2cc364=>_0x2cc364[_0x36242a(0x18f)]>=_0x5ce716?{..._0x2cc364,'startIndex':_0x2cc364[_0x36242a(0x18f)]+_0x558b27,'endIndex':_0x2cc364[_0x36242a(0x15d)]+_0x558b27}:_0x2cc364['endIndex']>=_0x5ce716?{..._0x2cc364,'endIndex':_0x2cc364[_0x36242a(0x15d)]+_0x558b27}:_0x2cc364);}function B(_0x186fca,_0x3768ab,_0x50a099){const _0x43ad38=_0x4ec56b;let _0xa7280b=_0x3768ab+_0x50a099;return _0x186fca==null?void 0x0:_0x186fca[_0x43ad38(0x13a)](_0xdb57a1=>_0xdb57a1['startIndex']>=_0x3768ab&&_0xdb57a1[_0x43ad38(0x15d)]<_0xa7280b?null:_0xdb57a1[_0x43ad38(0x18f)]>=_0xa7280b?{..._0xdb57a1,'startIndex':_0xdb57a1[_0x43ad38(0x18f)]-_0x50a099,'endIndex':_0xdb57a1[_0x43ad38(0x15d)]-_0x50a099}:_0xdb57a1[_0x43ad38(0x15d)]>=_0x3768ab?{..._0xdb57a1,'startIndex':_0xdb57a1[_0x43ad38(0x18f)]<_0x3768ab?_0xdb57a1[_0x43ad38(0x18f)]:_0x3768ab,'endIndex':Math[_0x43ad38(0x179)](_0x3768ab,_0xdb57a1[_0x43ad38(0x15d)]-_0x50a099)}:_0xdb57a1)['filter'](_0x5d6cdd=>_0x5d6cdd!=null);}function V(_0x1329ba,_0x4f25ba,_0x1c00a,_0x1ade61){const _0x1ee354=_0x4ec56b;_0x1329ba==null||_0x1329ba[_0x1ee354(0x159)](_0x23d9ed=>{const _0x4c3d29=_0x1ee354;_0x23d9ed[_0x4c3d29(0x18f)]>=_0x4f25ba&&_0x23d9ed[_0x4c3d29(0x18f)]<_0x1c00a&&(_0x23d9ed['startIndex']+=_0x1ade61);});}function H(_0x1c6447,_0x4c33c4,_0x527484,_0x3c45d5){const _0x2aea51=_0x4ec56b;_0x1c6447==null||_0x1c6447[_0x2aea51(0x159)](_0x5d7b97=>{_0x5d7b97['st']>=_0x4c33c4&&_0x5d7b97['st']<_0x527484?(_0x5d7b97['st']+=_0x3c45d5,_0x5d7b97['ed']+=_0x3c45d5):_0x5d7b97['ed']>_0x4c33c4&&_0x5d7b97['ed']<_0x527484&&(_0x5d7b97['ed']+=_0x3c45d5);});}function U(_0x1e1cb3,_0x2c3eb7,_0x5a696a,_0x127361){const _0xa808cb=_0x4ec56b;_0x1e1cb3==null||_0x1e1cb3[_0xa808cb(0x159)](_0x488e27=>{const _0x33960a=_0xa808cb;_0x488e27[_0x33960a(0x18f)]>=_0x2c3eb7&&_0x488e27[_0x33960a(0x18f)]<_0x5a696a?(_0x488e27[_0x33960a(0x18f)]+=_0x127361,_0x488e27['endIndex']+=_0x127361):_0x488e27[_0x33960a(0x15d)]>_0x2c3eb7&&_0x488e27[_0x33960a(0x15d)]<_0x5a696a&&(_0x488e27['endIndex']+=_0x127361);});}_0x5b2109['COMMAND'];const W={'id':'docs-quote.command.insert','type':_0x5b2109[_0x4ec56b(0x152)],'handler':(_0x4850ad,_0x4e23f2)=>{const _0x7c4852=_0x4ec56b;var _0x371a4c,_0x19917c,_0x59d42c;let _0x42eea0=q(_0x4850ad,_0x4e23f2==null?void 0x0:_0x4e23f2[_0x7c4852(0x181)]);if(!_0x42eea0)return!0x1;let _0x59956e=J(_0x4850ad),_0x16c8b0=f({'blockId':(_0x371a4c=_0x4e23f2==null?void 0x0:_0x4e23f2[_0x7c4852(0x13d)])==null?_0x31817e(0x6):_0x371a4c,'documentData':_0x42eea0[_0x7c4852(0x151)],'endOffset':(_0x19917c=_0x4e23f2==null?void 0x0:_0x4e23f2[_0x7c4852(0x14a)])==null?_0x59956e==null?void 0x0:_0x59956e[_0x7c4852(0x14a)]:_0x19917c,'startOffset':(_0x59d42c=_0x4e23f2==null?void 0x0:_0x4e23f2[_0x7c4852(0x149)])==null?_0x59956e==null?void 0x0:_0x59956e[_0x7c4852(0x149)]:_0x59d42c});return X(_0x42eea0[_0x7c4852(0x143)],_0x42eea0[_0x7c4852(0x181)],_0x42eea0['previousDocumentData'],_0x16c8b0[_0x7c4852(0x16a)],_0x16c8b0[_0x7c4852(0x183)]);}},G={'id':_0x4ec56b(0x170),'type':_0x5b2109['COMMAND'],'handler':(_0x33786c,_0x28f8a4)=>{const _0x4dfac9=_0x4ec56b;var _0x282a9a,_0x2d673d;let _0x290c16=q(_0x33786c,_0x28f8a4==null?void 0x0:_0x28f8a4[_0x4dfac9(0x181)]);if(!_0x290c16)return!0x1;let _0x30f4f3=(_0x282a9a=_0x28f8a4==null?void 0x0:_0x28f8a4[_0x4dfac9(0x183)])==null?(_0x2d673d=J(_0x33786c))==null?void 0x0:_0x2d673d[_0x4dfac9(0x149)]:_0x282a9a;if(_0x30f4f3==null)return!0x1;let _0x7e4c45=h({'cursorOffset':_0x30f4f3,'documentData':_0x290c16[_0x4dfac9(0x151)]});return _0x7e4c45?X(_0x290c16['commandService'],_0x290c16['unitId'],_0x290c16[_0x4dfac9(0x151)],_0x7e4c45['nextDocumentData'],_0x7e4c45[_0x4dfac9(0x183)]):!0x1;}},K={'id':'docs-quote.command.cancel-empty-paragraph','type':_0x5b2109['COMMAND'],'handler':(_0x5170c9,_0x579836)=>{const _0x30648e=_0x4ec56b;var _0x66be26,_0x4140a4;let _0x161a2c=q(_0x5170c9,_0x579836==null?void 0x0:_0x579836['unitId']);if(!_0x161a2c)return!0x1;let _0x23cad2=(_0x66be26=_0x579836==null?void 0x0:_0x579836[_0x30648e(0x183)])==null?(_0x4140a4=J(_0x5170c9))==null?void 0x0:_0x4140a4[_0x30648e(0x149)]:_0x66be26;if(_0x23cad2==null)return!0x1;let _0x3a5889=g({'cursorOffset':_0x23cad2,'documentData':_0x161a2c[_0x30648e(0x151)],'paragraphStartIndex':_0x579836==null?void 0x0:_0x579836[_0x30648e(0x173)]});return _0x3a5889?X(_0x161a2c['commandService'],_0x161a2c[_0x30648e(0x181)],_0x161a2c[_0x30648e(0x151)],_0x3a5889[_0x30648e(0x16a)],_0x3a5889[_0x30648e(0x183)]):!0x1;}};function q(_0x5c8cf9,_0x22356f){const _0x257f3c=_0x4ec56b;let _0x434c04=_0x5c8cf9['get'](_0x6ec290),_0x496272=_0x22356f?_0x434c04['getUniverDocInstance'](_0x22356f):_0x434c04[_0x257f3c(0x14b)](_0x329643['UNIVER_DOC']);return _0x496272?{'commandService':_0x5c8cf9['get'](_0x1d2fde),'previousDocumentData':_0x496272[_0x257f3c(0x144)](),'unitId':_0x496272[_0x257f3c(0x13e)]()}:null;}function J(_0x4db161){const _0x55ed79=_0x4ec56b;var _0x1a638d;return(_0x1a638d=_0x4db161[_0x55ed79(0x178)](_0x13b143)[_0x55ed79(0x136)]())==null?void 0x0:_0x1a638d[0x0];}function _0x5043(){const _0x2fa957=['BLOCK_END','1627728MeKssq','endTokenOffset','customBlocks','Document\x20body\x20is\x20required','join','2buJiCq','sectionBreaks','reduce','sort','docs-quote-','startIndex','assign','getQuotes','describe','customRanges','getTextRanges','from','indentEnd','paragraph','map','getId','dataStream','blockId','getUnitId','getText','indexOf','getInstance','11wMzCYf','commandService','getSnapshot','includes','444yoZQNW','endsWith','3069096rEuZjT','startOffset','endOffset','getCurrentUnitOfType','5FQCyiy','min','length','customDecorations','compose','previousDocumentData','COMMAND','diffValue','findQuotes','now','some','tables','spaceAbove','forEach','1303336YXCQjX','paragraphs','paragraphStyle','endIndex','body','blockRanges','BLOCK_START','43999YwArlf','text','707ChpvbN','every','spaceBelow','string','cancelEmptyParagraph','_getBlockRange','slice','nextDocumentData','getDocumentData','filter','PARAGRAPH','quote','9rMNPsQ','docs-quote.command.exit','documentData','_injector','paragraphStartIndex','2253570MYIucF','replace','blockType','textRuns','get','max','getRange','_runtime','SECTION_BREAK','prototype','textStyle','syncExecuteCommand','1615288HciDFp','unitId','find','cursorOffset'];_0x5043=function(){return _0x2fa957;};return _0x5043();}function ae(_0x4c6b57,_0x3a63ef){const _0x401921=_0x4ec56b;var _0xf84d34,_0x4d1784,_0x2a63bf,_0x164387,_0x1097f1,_0x389b4f,_0x4317b2,_0x219eff,_0x24312f,_0x548d80,_0x4e250b,_0x2c7e65,_0x712bb1,_0x2e2685,_0x5cce4d,_0x45e853,_0x5545d6,_0x1699a9;let _0xe7553b=_0x4b7bdb[_0x401921(0x141)]();return[Y(_0xe7553b,[_0x401921(0x15e),'dataStream'],(_0xf84d34=_0x4c6b57[_0x401921(0x15e)])==null?void 0x0:_0xf84d34[_0x401921(0x13c)],(_0x4d1784=_0x3a63ef[_0x401921(0x15e)])==null?void 0x0:_0x4d1784[_0x401921(0x13c)]),Y(_0xe7553b,[_0x401921(0x15e),_0x401921(0x15b)],(_0x2a63bf=_0x4c6b57['body'])==null?void 0x0:_0x2a63bf[_0x401921(0x15b)],(_0x164387=_0x3a63ef[_0x401921(0x15e)])==null?void 0x0:_0x164387[_0x401921(0x15b)]),Y(_0xe7553b,[_0x401921(0x15e),_0x401921(0x18b)],(_0x1097f1=_0x4c6b57[_0x401921(0x15e)])==null?void 0x0:_0x1097f1[_0x401921(0x18b)],(_0x389b4f=_0x3a63ef[_0x401921(0x15e)])==null?void 0x0:_0x389b4f[_0x401921(0x18b)]),Y(_0xe7553b,[_0x401921(0x15e),_0x401921(0x177)],(_0x4317b2=_0x4c6b57[_0x401921(0x15e)])==null?void 0x0:_0x4317b2['textRuns'],(_0x219eff=_0x3a63ef[_0x401921(0x15e)])==null?void 0x0:_0x219eff[_0x401921(0x177)]),Y(_0xe7553b,[_0x401921(0x15e),_0x401921(0x187)],(_0x24312f=_0x4c6b57['body'])==null?void 0x0:_0x24312f['customBlocks'],(_0x548d80=_0x3a63ef[_0x401921(0x15e)])==null?void 0x0:_0x548d80[_0x401921(0x187)]),Y(_0xe7553b,[_0x401921(0x15e),_0x401921(0x135)],(_0x4e250b=_0x4c6b57[_0x401921(0x15e)])==null?void 0x0:_0x4e250b[_0x401921(0x135)],(_0x2c7e65=_0x3a63ef[_0x401921(0x15e)])==null?void 0x0:_0x2c7e65['customRanges']),Y(_0xe7553b,[_0x401921(0x15e),_0x401921(0x14f)],(_0x712bb1=_0x4c6b57[_0x401921(0x15e)])==null?void 0x0:_0x712bb1[_0x401921(0x14f)],(_0x2e2685=_0x3a63ef[_0x401921(0x15e)])==null?void 0x0:_0x2e2685['customDecorations']),Y(_0xe7553b,[_0x401921(0x15e),_0x401921(0x157)],(_0x5cce4d=_0x4c6b57['body'])==null?void 0x0:_0x5cce4d[_0x401921(0x157)],(_0x45e853=_0x3a63ef[_0x401921(0x15e)])==null?void 0x0:_0x45e853[_0x401921(0x157)]),Y(_0xe7553b,['body','blockRanges'],(_0x5545d6=_0x4c6b57[_0x401921(0x15e)])==null?void 0x0:_0x5545d6[_0x401921(0x15f)],(_0x1699a9=_0x3a63ef[_0x401921(0x15e)])==null?void 0x0:_0x1699a9[_0x401921(0x15f)])]['filter'](Boolean)[_0x401921(0x18c)]((_0x572a5a,_0x5e59db)=>_0x4b7bdb[_0x401921(0x150)](_0x572a5a,_0x5e59db),null);}function Y(_0x680c01,_0x11cb52,_0x27488b,_0x3c7838){const _0xe45079=_0x4ec56b;return _0x2656d0[_0xe45079(0x153)](_0x27488b,_0x3c7838)?null:_0x680c01['replaceOp'](_0x11cb52,_0x27488b,_0x3c7838);}function X(_0x1849fc,_0x122d4d,_0x329007,_0x527bac,_0x5624a8){const _0x418d14=_0x4ec56b;let _0x5902f5=ae(_0x329007,_0x527bac);return _0x5902f5?!!_0x1849fc[_0x418d14(0x17f)](_0x24f978['id'],{'unitId':_0x122d4d,'actions':_0x5902f5,'textRanges':[{'startOffset':_0x5624a8,'endOffset':_0x5624a8,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}var Z=class{constructor(_0x32500f){this['_runtime']=_0x32500f;}[_0x4ec56b(0x13b)](){const _0x125e29=_0x4ec56b;return this[_0x125e29(0x17b)][_0x125e29(0x13d)];}[_0x4ec56b(0x17a)](){const _0x58ffbc=_0x4ec56b;let _0x538294=this[_0x58ffbc(0x168)]();return _0x538294?{'blockId':_0x538294[_0x58ffbc(0x13d)],'endIndex':_0x538294[_0x58ffbc(0x15d)],'startIndex':_0x538294[_0x58ffbc(0x18f)]}:null;}[_0x4ec56b(0x13f)](){const _0x40bc5a=_0x4ec56b;var _0x5ec8a8;let _0x9ea295=this[_0x40bc5a(0x168)](),_0x4b4264=(_0x5ec8a8=this[_0x40bc5a(0x17b)]['getDocumentData']()[_0x40bc5a(0x15e)])==null?void 0x0:_0x5ec8a8[_0x40bc5a(0x13c)];return!_0x9ea295||!_0x4b4264?'':oe(_0x4b4264['slice'](_0x9ea295[_0x40bc5a(0x18f)]+0x1,_0x9ea295[_0x40bc5a(0x15d)]));}[_0x4ec56b(0x134)](){const _0x98fc5f=_0x4ec56b;let _0x2799d3=this[_0x98fc5f(0x17a)]();return _0x2799d3?{..._0x2799d3,'text':this[_0x98fc5f(0x13f)](),'type':'quote'}:null;}['exit'](_0x25bdc8){const _0x206489=_0x4ec56b;var _0x4b9e77;return!!((_0x4b9e77=this[_0x206489(0x17b)][_0x206489(0x143)])!=null&&_0x4b9e77['syncExecuteCommand'](G['id'],{'cursorOffset':_0x25bdc8,'unitId':this[_0x206489(0x17b)][_0x206489(0x181)]}));}[_0x4ec56b(0x167)](_0x32c27c={}){const _0x4e6159=_0x4ec56b;var _0x3710f4;return!!((_0x3710f4=this[_0x4e6159(0x17b)][_0x4e6159(0x143)])!=null&&_0x3710f4[_0x4e6159(0x17f)](K['id'],{..._0x32c27c,'unitId':this['_runtime'][_0x4e6159(0x181)]}));}[_0x4ec56b(0x168)](){const _0x45e1ce=_0x4ec56b;var _0xf02385;return(_0xf02385=this[_0x45e1ce(0x17b)][_0x45e1ce(0x16b)]()[_0x45e1ce(0x15e)])==null||(_0xf02385=_0xf02385[_0x45e1ce(0x15f)])==null?void 0x0:_0xf02385['find'](_0x419ea8=>_0x419ea8[_0x45e1ce(0x13d)]===this['_runtime'][_0x45e1ce(0x13d)]&&_0x419ea8[_0x45e1ce(0x176)]==='quote');}};function oe(_0xa0be95){const _0x436ebf=_0x4ec56b;return Array[_0x436ebf(0x137)](_0xa0be95)[_0x436ebf(0x13a)](_0x6230ea=>_0x6230ea===_0x19dcdd['PARAGRAPH']?'\x0a':_0x6230ea)[_0x436ebf(0x16c)](_0x220230=>_0x220230!==_0x19dcdd[_0x436ebf(0x160)]&&_0x220230!==_0x19dcdd[_0x436ebf(0x184)]&&_0x220230!==_0x19dcdd[_0x436ebf(0x17c)])['join']('')[_0x436ebf(0x175)](/\n$/,'');}Object[_0x4ec56b(0x190)](_0x486f68[_0x4ec56b(0x17d)],{'getQuotes'(){const _0x482857=_0x4ec56b;var _0x2a9f7b,_0x28c182;return(_0x2a9f7b=(_0x28c182=this[_0x482857(0x144)]()[_0x482857(0x15e)])==null||(_0x28c182=_0x28c182[_0x482857(0x15f)])==null?void 0x0:_0x28c182['filter'](_0x4c598a=>_0x4c598a[_0x482857(0x176)]===_0x482857(0x16e))[_0x482857(0x13a)](_0x59e328=>Q(this,_0x59e328[_0x482857(0x13d)])))==null?[]:_0x2a9f7b;},'getQuote'(_0x1069d7){const _0x1ff7c3=_0x4ec56b;var _0x4c7f6c;return!((_0x4c7f6c=this[_0x1ff7c3(0x144)]()[_0x1ff7c3(0x15e)])==null||(_0x4c7f6c=_0x4c7f6c[_0x1ff7c3(0x15f)])==null)&&_0x4c7f6c[_0x1ff7c3(0x156)](_0x39c973=>_0x39c973[_0x1ff7c3(0x13d)]===_0x1069d7&&_0x39c973[_0x1ff7c3(0x176)]==='quote')?Q(this,_0x1069d7):null;},'getQuoteAt'(_0x3779ee){const _0x4fefce=_0x4ec56b;var _0x483971;let _0x4b6cc2=(_0x483971=this[_0x4fefce(0x144)]()[_0x4fefce(0x15e)])==null||(_0x483971=_0x483971[_0x4fefce(0x15f)])==null||(_0x483971=_0x483971[_0x4fefce(0x182)](_0x1862df=>_0x1862df[_0x4fefce(0x176)]==='quote'&&_0x1862df[_0x4fefce(0x18f)]<=_0x3779ee&&_0x3779ee<=_0x1862df[_0x4fefce(0x15d)]))==null?void 0x0:_0x483971[_0x4fefce(0x13d)];return _0x4b6cc2?Q(this,_0x4b6cc2):null;},'findQuoteByText'(_0xfaedfe){const _0x103abb=_0x4ec56b;var _0x436e29;return(_0x436e29=this[_0x103abb(0x154)](_0xfaedfe)[0x0])==null?null:_0x436e29;},'findQuotes'(_0x177377){const _0x27fc6e=_0x4ec56b;let _0x191160=typeof _0x177377==_0x27fc6e(0x166)?{'text':_0x177377}:_0x177377;return this[_0x27fc6e(0x191)]()[_0x27fc6e(0x16c)](_0x3bc302=>!(_0x191160[_0x27fc6e(0x13d)]&&_0x3bc302[_0x27fc6e(0x13b)]()!==_0x191160['blockId']||_0x191160['text']&&!_0x3bc302[_0x27fc6e(0x13f)]()[_0x27fc6e(0x145)](_0x191160[_0x27fc6e(0x162)])));},'insertQuote'(_0x2c717d={}){const _0x2aeca5=_0x4ec56b;var _0xdc4e5,_0xa7f17d;let _0x2dc5ad=(_0xdc4e5=_0x2c717d[_0x2aeca5(0x13d)])==null?_0x2aeca5(0x18e)+Date[_0x2aeca5(0x155)]():_0xdc4e5;return(_0xa7f17d=$(this))!=null&&_0xa7f17d[_0x2aeca5(0x17f)](W['id'],{..._0x2c717d,'blockId':_0x2dc5ad,'unitId':this[_0x2aeca5(0x13b)]()})?Q(this,_0x2dc5ad):null;},'exitQuote'(_0x151231){const _0x32dec7=_0x4ec56b;var _0x8e1cf7;return!!((_0x8e1cf7=$(this))!=null&&_0x8e1cf7[_0x32dec7(0x17f)](G['id'],{'cursorOffset':_0x151231,'unitId':this[_0x32dec7(0x13b)]()}));},'cancelEmptyQuoteParagraph'(_0x69876b={}){const _0x4efcbc=_0x4ec56b;var _0x5c2a3d;return!!((_0x5c2a3d=$(this))!=null&&_0x5c2a3d[_0x4efcbc(0x17f)](K['id'],{..._0x69876b,'unitId':this['getId']()}));}});function Q(_0x118a8b,_0x5bfe91){return new Z({'blockId':_0x5bfe91,'commandService':$(_0x118a8b),'getDocumentData':()=>_0x118a8b['getSnapshot'](),'unitId':_0x118a8b['getId']()});}function $(_0x1983c5){const _0x8fd9c7=_0x4ec56b;var _0x59263f,_0x17499b;let _0x7706ac=_0x1983c5;return(_0x59263f=_0x7706ac['_commandService'])==null?(_0x17499b=_0x7706ac[_0x8fd9c7(0x172)])==null?void 0x0:_0x17499b[_0x8fd9c7(0x178)](_0x1d2fde):_0x59263f;}export{Z as FDocsQuote};
|
package/lib/es/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x941233=_0x4fb1;(function(_0x900f2d,_0x36d532){const _0x2d71c4=_0x4fb1,_0x4d74fd=_0x900f2d();while(!![]){try{const _0x30c6c1=-parseInt(_0x2d71c4(0x216))/0x1+parseInt(_0x2d71c4(0x22b))/0x2+-parseInt(_0x2d71c4(0x211))/0x3+-parseInt(_0x2d71c4(0x227))/0x4*(-parseInt(_0x2d71c4(0x242))/0x5)+-parseInt(_0x2d71c4(0x21d))/0x6+parseInt(_0x2d71c4(0x228))/0x7+-parseInt(_0x2d71c4(0x226))/0x8;if(_0x30c6c1===_0x36d532)break;else _0x4d74fd['push'](_0x4d74fd['shift']());}catch(_0x73c6de){_0x4d74fd['push'](_0x4d74fd['shift']());}}}(_0x176c,0xd3647));import{BuildTextUtils as _0x5af6e9,CommandType as _0xa186f,DataStreamTreeTokenType as _0x46a8a8,DependentOn as _0x35d418,ICommandService as _0x46f782,IConfigService as _0x2602f8,IUniverInstanceService as _0x3831f6,Inject as _0x4c1005,Injector as _0x2ea91f,JSONX as _0xd81bba,Plugin as _0x491f0b,Tools as _0x4f30da,UniverInstanceType as _0x50a4b8,generateRandomId as _0x2ea456,merge as _0x50aeae}from'@univerjs/core';import{DocSelectionManagerService as _0x2a33a2,RichTextEditingMutation as _0x40520e,UniverDocsPlugin as _0x46cb6f}from'@univerjs/docs';import{DocContentInsertService as _0x2fe867}from'@univerjs/docs-ui';import{UniverLicensePlugin as _0x2bcd2a}from'@univerjs-pro/license';const b='DOCS_QUOTE_PLUGIN',x=_0x941233(0x1f5);function ee(_0x2c9452){const _0x1b36bf=_0x941233;var _0x50eba5,_0x59315e,_0x294168;let _0x112a95=k(_0x2c9452[_0x1b36bf(0x1f7)]),_0x5aa94f=A(_0x112a95),_0x3ce6a9=te(_0x2c9452[_0x1b36bf(0x21f)],_0x2c9452[_0x1b36bf(0x24c)]),_0x1e362f=_0x3ce6a9?(_0x50eba5=_0x5aa94f[_0x1b36bf(0x209)])==null?void 0x0:_0x50eba5[_0x1b36bf(0x22f)](_0x472989=>_0x472989[_0x1b36bf(0x20a)]===_0x3ce6a9['startOffset']&&_0x472989[_0x1b36bf(0x20b)]+0x1===_0x3ce6a9['endOffset']):void 0x0,{startOffset:_0x4d7b93,endOffset:_0x42d279}=_0x1e362f?_0x3ce6a9:le(_0x5aa94f,_0x2c9452[_0x1b36bf(0x21f)],_0x2c9452[_0x1b36bf(0x24c)]),_0x43b5ba=de(_0x5aa94f,_0x4d7b93,_0x42d279),_0x4f8aca=(_0x59315e=_0x1e362f==null?void 0x0:_0x1e362f['blockId'])==null?_0x2c9452['blockId']:_0x59315e;if(_0x1e362f)return _0x1e362f['blockType']=x,ne(_0x5aa94f,_0x4d7b93,_0x42d279),E(_0x5aa94f,_0x4d7b93,_0x42d279,_0x43b5ba),{'nextDocumentData':_0x112a95,'cursorOffset':_0x4d7b93+0x1};if(_0x4d7b93===_0x42d279){let _0x105aa0=''+_0x46a8a8[_0x1b36bf(0x1ff)]+_0x46a8a8[_0x1b36bf(0x231)]+_0x46a8a8[_0x1b36bf(0x1fc)];return P(_0x5aa94f,_0x4d7b93,_0x105aa0,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':T(!0x0,!0x0,_0x43b5ba)}],'blockRanges':[{'blockId':_0x4f8aca,'blockType':x,'startIndex':0x0,'endIndex':_0x105aa0[_0x1b36bf(0x237)]-0x1}]}),{'nextDocumentData':_0x112a95,'cursorOffset':_0x4d7b93+0x1};}return P(_0x5aa94f,_0x42d279,_0x46a8a8[_0x1b36bf(0x1fc)]),P(_0x5aa94f,_0x4d7b93,_0x46a8a8[_0x1b36bf(0x1ff)]),E(_0x5aa94f,_0x4d7b93,_0x42d279+0x1,_0x43b5ba),_0x5aa94f[_0x1b36bf(0x209)]=[...(_0x294168=_0x5aa94f[_0x1b36bf(0x209)])==null?[]:_0x294168,{'blockId':_0x4f8aca,'blockType':x,'startIndex':_0x4d7b93,'endIndex':_0x42d279+0x1}][_0x1b36bf(0x21b)]((_0x565f4f,_0x412e49)=>_0x565f4f[_0x1b36bf(0x20a)]-_0x412e49['startIndex']),{'nextDocumentData':_0x112a95,'cursorOffset':_0x4d7b93+0x1};}function te(_0x199e1f,_0x54a152){const _0x1186a0=_0x941233;return _0x199e1f==null||_0x54a152==null||_0x199e1f===_0x54a152?null:{'startOffset':Math[_0x1186a0(0x23c)](_0x199e1f,_0x54a152),'endOffset':Math[_0x1186a0(0x225)](_0x199e1f,_0x54a152)};}function ne(_0x5c622e,_0x2977b3,_0xbf5e19){const _0x40c48f=_0x941233;var _0x3e8f41;((_0x3e8f41=_0x5c622e['paragraphs'])==null?[]:_0x3e8f41)[_0x40c48f(0x257)](_0x4d22cb=>_0x4d22cb[_0x40c48f(0x20a)]>_0x2977b3&&_0x4d22cb[_0x40c48f(0x20a)]<_0xbf5e19)[_0x40c48f(0x22c)](_0x6935ef=>{const _0x2e7fc6=_0x40c48f;var _0x28f2cb;let _0x3ea81f={...(_0x28f2cb=_0x6935ef[_0x2e7fc6(0x223)])==null?{}:_0x28f2cb};delete _0x3ea81f[_0x2e7fc6(0x1fe)],delete _0x3ea81f[_0x2e7fc6(0x234)],delete _0x3ea81f['spaceBelow'],delete _0x3ea81f[_0x2e7fc6(0x20f)],_0x6935ef[_0x2e7fc6(0x223)]=_0x3ea81f;});}function S(_0x51e722){const _0x942c35=_0x941233;var _0x2ea3d4,_0x2413cf;let _0x3f3d00=k(_0x51e722[_0x942c35(0x1f7)]),_0x4bf6e9=A(_0x3f3d00),_0x317f3c=w(_0x4bf6e9,_0x51e722[_0x942c35(0x207)]);if(!_0x317f3c)return null;let _0xd531cf=O(_0x4bf6e9,_0x317f3c),_0x20ae48=_0xd531cf[_0xd531cf['length']-0x1];if(!_0x20ae48||!oe(_0x4bf6e9,_0x317f3c,_0x20ae48)||_0x51e722[_0x942c35(0x207)]<_0x20ae48[_0x942c35(0x20a)])return null;let _0x494b3b=M(_0x4bf6e9,_0x317f3c,_0x20ae48);if(_0x494b3b>=_0x317f3c[_0x942c35(0x20b)])return null;_0x4bf6e9[_0x942c35(0x203)]=[_0x4bf6e9['dataStream'][_0x942c35(0x21c)](0x0,_0x494b3b),_0x46a8a8[_0x942c35(0x1fc)],_0x4bf6e9[_0x942c35(0x203)][_0x942c35(0x21c)](_0x494b3b,_0x317f3c[_0x942c35(0x20b)]),_0x4bf6e9[_0x942c35(0x203)][_0x942c35(0x21c)](_0x317f3c[_0x942c35(0x20b)]+0x1)][_0x942c35(0x202)](''),B(_0x4bf6e9[_0x942c35(0x217)],_0x494b3b,_0x317f3c['endIndex'],0x1),B(_0x4bf6e9[_0x942c35(0x24a)],_0x494b3b,_0x317f3c[_0x942c35(0x20b)],0x1),B(_0x4bf6e9[_0x942c35(0x1f6)],_0x494b3b,_0x317f3c[_0x942c35(0x20b)],0x1),_e(_0x4bf6e9[_0x942c35(0x240)],_0x494b3b,_0x317f3c['endIndex'],0x1),V(_0x4bf6e9[_0x942c35(0x239)],_0x494b3b,_0x317f3c[_0x942c35(0x20b)],0x1),V(_0x4bf6e9['customRanges'],_0x494b3b,_0x317f3c[_0x942c35(0x20b)],0x1),V(_0x4bf6e9['customDecorations'],_0x494b3b,_0x317f3c[_0x942c35(0x20b)],0x1),(_0x2ea3d4=_0x4bf6e9['blockRanges'])==null||_0x2ea3d4[_0x942c35(0x22c)](_0x165ee5=>{const _0x31962f=_0x942c35;_0x165ee5===_0x317f3c||_0x165ee5[_0x31962f(0x20c)]===_0x317f3c['blockId']?_0x165ee5[_0x31962f(0x20b)]=_0x494b3b:_0x165ee5[_0x31962f(0x20a)]>=_0x494b3b&&_0x165ee5[_0x31962f(0x20a)]<_0x317f3c[_0x31962f(0x20b)]&&(_0x165ee5[_0x31962f(0x20a)]+=0x1,_0x165ee5[_0x31962f(0x20b)]+=0x1);});let _0x43a9f1=O(_0x4bf6e9,{..._0x317f3c,'endIndex':_0x494b3b});_0x43a9f1[_0x942c35(0x22c)]((_0x50e224,_0x1b4405)=>{const _0x3d0282=_0x942c35;var _0xe058a4;_0x50e224[_0x3d0282(0x223)]={...(_0xe058a4=_0x50e224[_0x3d0282(0x223)])==null?{}:_0xe058a4,...T(_0x1b4405===0x0,_0x1b4405===_0x43a9f1[_0x3d0282(0x237)]-0x1)};});let _0x48094c=(_0x2413cf=_0x4bf6e9['paragraphs'])==null?void 0x0:_0x2413cf[_0x942c35(0x22f)](_0x3b2dba=>_0x3b2dba['startIndex']===_0x494b3b+0x1);return _0x48094c&&(_0x48094c['paragraphStyle']=D(_0x48094c[_0x942c35(0x223)])),{'nextDocumentData':_0x3f3d00,'cursorOffset':_0x494b3b+0x1};}function C(_0x184424){const _0x53b00a=_0x941233;let _0x5cc2aa=k(_0x184424['documentData']),_0x465c16=A(_0x5cc2aa),_0x115f24=w(_0x465c16,_0x184424['cursorOffset']);return _0x115f24&&(re(_0x5cc2aa,_0x465c16,_0x115f24,_0x184424['cursorOffset'],_0x184424[_0x53b00a(0x247)])||ie(_0x5cc2aa,_0x465c16,_0x115f24,_0x184424['cursorOffset']))||null;}function re(_0x10e117,_0x486844,_0x52cc41,_0x3dc204,_0x10e13b){const _0x100e56=_0x941233;let _0x5a7735=pe(_0x486844,_0x52cc41,_0x3dc204,_0x10e13b);if(!_0x5a7735)return null;let _0x221950=_0x5a7735[_0x100e56(0x221)]-0x1;return F(_0x486844,_0x5a7735[_0x100e56(0x20e)][_0x100e56(0x20a)],_0x5a7735[_0x100e56(0x20e)][_0x100e56(0x20a)]+0x1),{'nextDocumentData':_0x10e117,'cursorOffset':_0x221950};}function ie(_0x215d66,_0x5246fd,_0x307483,_0x23a3fb){const _0x110b3d=_0x941233;if(_0x23a3fb!==_0x307483['startIndex']+0x1)return null;let _0x136096=O(_0x5246fd,_0x307483),_0x10acc3=_0x136096[0x0];return!_0x10acc3||M(_0x5246fd,_0x307483,_0x10acc3)!==_0x23a3fb?null:_0x136096[_0x110b3d(0x237)]===0x1?se(_0x215d66,_0x5246fd,_0x307483,_0x10acc3):ce(_0x215d66,_0x5246fd,_0x307483,_0x10acc3);}function ae(_0x2ce6d9,_0x4ab675){const _0x85a28f=_0x941233;var _0x5b21a5;return _0x2ce6d9==null||(_0x5b21a5=_0x2ce6d9[_0x85a28f(0x209)])==null?void 0x0:_0x5b21a5[_0x85a28f(0x22f)](_0x3f2406=>_0x3f2406[_0x85a28f(0x229)]===_0x85a28f(0x1f5)&&_0x3f2406[_0x85a28f(0x20a)]<=_0x4ab675&&_0x4ab675<=_0x3f2406[_0x85a28f(0x20b)]);}function w(_0x51eb86,_0x54bd9e){const _0x4f4c4e=_0x941233;var _0x2c44b6;return(_0x2c44b6=_0x51eb86[_0x4f4c4e(0x209)])==null?void 0x0:_0x2c44b6[_0x4f4c4e(0x22f)](_0x4fab5e=>{const _0x146b71=_0x4f4c4e;let _0x49b4d5=N(_0x51eb86,_0x4fab5e);return _0x4fab5e[_0x146b71(0x229)]===_0x146b71(0x1f5)&&_0x4fab5e[_0x146b71(0x20a)]<=_0x54bd9e&&_0x54bd9e<=_0x49b4d5+0x2;});}function T(_0x2042e6,_0x59ce6b,_0x1f13bf=!0x1){return{'indentStart':{'v':0x16},..._0x2042e6&&_0x1f13bf?{'spaceAbove':{'v':0x8}}:{}};}function E(_0x57d961,_0x3a1e62,_0x585d92,_0x45ab2a=!0x1){const _0x579c5c=_0x941233;var _0x2731c5;let _0x5af39d=((_0x2731c5=_0x57d961[_0x579c5c(0x217)])==null?[]:_0x2731c5)[_0x579c5c(0x257)](_0x53d733=>_0x53d733['startIndex']>_0x3a1e62&&_0x53d733['startIndex']<_0x585d92);_0x5af39d['forEach']((_0x1c7711,_0x2fd08b)=>{const _0x95e42d=_0x579c5c;var _0x29c31c;_0x1c7711[_0x95e42d(0x223)]={...(_0x29c31c=_0x1c7711[_0x95e42d(0x223)])==null?{}:_0x29c31c,...T(_0x2fd08b===0x0,_0x2fd08b===_0x5af39d['length']-0x1,_0x45ab2a)};});}function D(_0x743368){const _0x11c1ad=_0x941233;let _0x2293b3={..._0x743368==null?{}:_0x743368};return delete _0x2293b3['indentStart'],delete _0x2293b3[_0x11c1ad(0x234)],delete _0x2293b3[_0x11c1ad(0x255)],_0x2293b3;}function _0x176c(){const _0xd2edf1=['docs-quote.command.insert','docs-quote.command.cancel-empty-paragraph','type','symbol','_injector','customDecorations','call','decorate','spaceBelow','reduce','filter','getOwnPropertyDescriptor','endsWith','getCurrentUnitOfType','range','UNIVER_DOC','quote','customBlocks','documentData','setConfig','getSnapshot','getUniverDocInstance','string','BLOCK_END','some','indentEnd','BLOCK_START','diffValue','packageName','join','dataStream','pluginName','_commandService','getTextRanges','cursorOffset','registerCommand','blockRanges','startIndex','endIndex','blockId','commandService','paragraph','textStyle','from','2459457kfwjhl','unitId','consumeInsertRange','toPrimitive','version','223988dcmnad','paragraphs','object','previousDocumentData','getUnitId','sort','slice','4188330rmWQRQ','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','startOffset','getInstance','endTokenOffset','body','paragraphStyle','getBody','max','5088976xPqeKw','4FpZEMs','8215046SYjPpW','blockType','customRanges','806100uZepdK','forEach','deepClone','COMMAND','find','defineProperty','PARAGRAPH','docs-quote.command.insert-below','SECTION_BREAK','spaceAbove','_config','every','length','@univerjs-pro/docs-quote','tables','syncExecuteCommand','_configService','min','map','replaceOp','iterator','textRuns','get','8336095Sirafb','function','prototype','Document\x20body\x20is\x20required','nextDocumentData','paragraphStartIndex','indexOf','onStarting','sectionBreaks','docs-quote.command.exit','endOffset'];_0x176c=function(){return _0xd2edf1;};return _0x176c();}function O(_0x2b8249,_0x1ceff8){const _0x16dba0=_0x941233;var _0x1693f7;let _0x487fbe=N(_0x2b8249,_0x1ceff8);return((_0x1693f7=_0x2b8249[_0x16dba0(0x217)])==null?[]:_0x1693f7)[_0x16dba0(0x257)](_0x397ac9=>_0x397ac9[_0x16dba0(0x20a)]>_0x1ceff8[_0x16dba0(0x20a)]&&_0x397ac9[_0x16dba0(0x20a)]<_0x487fbe);}function oe(_0x1102c9,_0x335a5f,_0xbc7801){const _0x13e37f=_0x941233;let _0x5846a0=M(_0x1102c9,_0x335a5f,_0xbc7801),_0x1374bd=_0x1102c9['dataStream'][_0x13e37f(0x21c)](_0x5846a0,_0xbc7801[_0x13e37f(0x20a)]);return Array[_0x13e37f(0x210)](_0x1374bd)[_0x13e37f(0x236)](_0x1531b0=>_0x1531b0===_0x46a8a8['BLOCK_START']||_0x1531b0===_0x46a8a8[_0x13e37f(0x1fc)]);}function se(_0x318c0c,_0xe6d5fc,_0x1440b2,_0x2e1855){const _0x38d458=_0x941233;var _0x2f05f4,_0x408e59;let _0x5b6b6b=_0x1440b2[_0x38d458(0x20a)];F(_0xe6d5fc,_0x1440b2['endIndex'],_0x1440b2[_0x38d458(0x20b)]+0x1),F(_0xe6d5fc,_0x1440b2[_0x38d458(0x20a)],_0x1440b2[_0x38d458(0x20a)]+0x1),_0xe6d5fc[_0x38d458(0x209)]=(_0x2f05f4=_0xe6d5fc[_0x38d458(0x209)])==null?void 0x0:_0x2f05f4['filter'](_0x3e3f4c=>_0x3e3f4c[_0x38d458(0x20c)]!==_0x1440b2[_0x38d458(0x20c)]);let _0x5a962d=(_0x408e59=_0xe6d5fc[_0x38d458(0x217)])==null?void 0x0:_0x408e59[_0x38d458(0x22f)](_0x4dacc1=>_0x4dacc1['startIndex']===_0x2e1855[_0x38d458(0x20a)]-0x1);return _0x5a962d&&(_0x5a962d[_0x38d458(0x223)]=D(_0x5a962d[_0x38d458(0x223)])),{'nextDocumentData':_0x318c0c,'cursorOffset':_0x5b6b6b};}function ce(_0x2d513b,_0xc6047e,_0xf8dcdc,_0x192b15){const _0x4feb8b=_0x941233;var _0x2a45a0,_0x18c4c3;let _0x7937c5=_0x192b15[_0x4feb8b(0x20a)],_0xcb2abb=_0xf8dcdc[_0x4feb8b(0x20a)];P(_0xc6047e,_0x192b15[_0x4feb8b(0x20a)]+0x1,_0x46a8a8['BLOCK_START']),F(_0xc6047e,_0xf8dcdc[_0x4feb8b(0x20a)],_0xf8dcdc[_0x4feb8b(0x20a)]+0x1);let _0x5f5822=(_0x2a45a0=_0xc6047e[_0x4feb8b(0x217)])==null?void 0x0:_0x2a45a0['find'](_0x5dbd39=>_0x5dbd39[_0x4feb8b(0x20a)]===_0x7937c5-0x1),_0x3221d5=(_0x18c4c3=_0xc6047e[_0x4feb8b(0x209)])==null?void 0x0:_0x18c4c3[_0x4feb8b(0x22f)](_0x2e05f3=>_0x2e05f3[_0x4feb8b(0x20c)]===_0xf8dcdc['blockId']);return _0x5f5822&&(_0x5f5822[_0x4feb8b(0x223)]=D(_0x5f5822[_0x4feb8b(0x223)]),_0x3221d5&&(_0x3221d5[_0x4feb8b(0x20a)]=_0x5f5822[_0x4feb8b(0x20a)]+0x1)),_0x3221d5&&E(_0xc6047e,_0x3221d5['startIndex'],_0x3221d5['endIndex']),{'nextDocumentData':_0x2d513b,'cursorOffset':_0xcb2abb};}function k(_0x2e6d3c){const _0x2b425b=_0x941233;return _0x4f30da[_0x2b425b(0x22d)](_0x2e6d3c);}function A(_0x34d790){const _0x22ac2c=_0x941233;if(!_0x34d790['body'])throw Error(_0x22ac2c(0x245));return _0x34d790[_0x22ac2c(0x222)];}function _0x4fb1(_0x48423c,_0x5669ed){_0x48423c=_0x48423c-0x1f1;const _0x176c7f=_0x176c();let _0x4fb13d=_0x176c7f[_0x48423c];return _0x4fb13d;}function le(_0x3cc827,_0x3bf5fc,_0x4fbee2){const _0x91998d=_0x941233;if(_0x3bf5fc==null||_0x4fbee2==null){let _0x3087cd=ue(_0x3cc827);return{'startOffset':_0x3087cd,'endOffset':_0x3087cd};}let _0x1112e9=Math[_0x91998d(0x23c)](_0x3bf5fc,_0x4fbee2),_0x3f9888=Math[_0x91998d(0x225)](_0x3bf5fc,_0x4fbee2);return _0x1112e9===_0x3f9888?{'startOffset':_0x1112e9,'endOffset':_0x1112e9}:fe(_0x3cc827,_0x1112e9,_0x3f9888);}function ue(_0x41c415){const _0x418ce4=_0x941233;return _0x41c415['dataStream'][_0x418ce4(0x1f1)](_0x46a8a8[_0x418ce4(0x233)])?Math[_0x418ce4(0x225)](0x0,_0x41c415[_0x418ce4(0x203)][_0x418ce4(0x237)]-0x1):_0x41c415[_0x418ce4(0x203)][_0x418ce4(0x237)];}function de(_0x3c9285,_0x2b8cec,_0x2f62ff){const _0x531be6=_0x941233;var _0x4d4aff;let _0x157b56=Math[_0x531be6(0x23c)](_0x2b8cec,_0x2f62ff),_0x4651e1=Math['max'](_0x2b8cec,_0x2f62ff);return!!((_0x4d4aff=_0x3c9285[_0x531be6(0x239)])!=null&&_0x4d4aff[_0x531be6(0x1fd)](_0x29aea1=>_0x157b56>_0x29aea1['startIndex']&&_0x157b56<_0x29aea1[_0x531be6(0x20b)]||_0x4651e1>_0x29aea1[_0x531be6(0x20a)]&&_0x4651e1<_0x29aea1[_0x531be6(0x20b)]||_0x157b56<=_0x29aea1[_0x531be6(0x20a)]&&_0x4651e1>=_0x29aea1[_0x531be6(0x20b)]));}function fe(_0x34259e,_0x550cb1,_0x48fee3){const _0x3c44a5=_0x941233;var _0x386cee,_0x4b94aa;let _0xb4ed4a=[...(_0x386cee=_0x34259e[_0x3c44a5(0x217)])==null?[]:_0x386cee][_0x3c44a5(0x21b)]((_0x214b86,_0x4702c4)=>_0x214b86[_0x3c44a5(0x20a)]-_0x4702c4[_0x3c44a5(0x20a)]),_0x403a27=_0xb4ed4a[_0x3c44a5(0x22f)]((_0x1b13e7,_0x54d9a9)=>(_0x54d9a9===0x0?0x0:_0xb4ed4a[_0x54d9a9-0x1][_0x3c44a5(0x20a)]+0x1)<=_0x550cb1&&_0x550cb1<=_0x1b13e7[_0x3c44a5(0x20a)]),_0x3231e7=(_0x4b94aa=_0xb4ed4a[_0x3c44a5(0x22f)](_0x4c7e8d=>_0x4c7e8d[_0x3c44a5(0x20a)]>=_0x48fee3-0x1))==null?_0xb4ed4a[_0xb4ed4a[_0x3c44a5(0x237)]-0x1]:_0x4b94aa;return{'startOffset':_0x403a27?j(_0xb4ed4a,_0x403a27):_0x550cb1,'endOffset':_0x3231e7?_0x3231e7[_0x3c44a5(0x20a)]+0x1:_0x48fee3};}function j(_0x2f1408,_0x4ed79d){const _0x20b7dc=_0x941233;let _0xa3a75f=_0x2f1408[_0x20b7dc(0x248)](_0x4ed79d);return _0xa3a75f>0x0?_0x2f1408[_0xa3a75f-0x1][_0x20b7dc(0x20a)]+0x1:0x0;}function M(_0x3245b9,_0xc625f0,_0x26dc03){const _0x4ea96b=_0x941233;var _0x595418;return Math[_0x4ea96b(0x225)](j((_0x595418=_0x3245b9[_0x4ea96b(0x217)])==null?[]:_0x595418,_0x26dc03),_0xc625f0['startIndex']+0x1);}function N(_0x17ab8e,_0x5d5072){const _0x5207f2=_0x941233;return _0x17ab8e[_0x5207f2(0x203)][_0x5d5072[_0x5207f2(0x20b)]]===_0x46a8a8[_0x5207f2(0x1fc)]?_0x5d5072[_0x5207f2(0x20b)]:_0x17ab8e[_0x5207f2(0x203)][_0x5d5072[_0x5207f2(0x20b)]+0x1]===_0x46a8a8[_0x5207f2(0x1fc)]?_0x5d5072[_0x5207f2(0x20b)]+0x1:_0x5d5072[_0x5207f2(0x20b)];}function pe(_0x39a28d,_0x364733,_0xf3fee9,_0x4be4ed){const _0x4cff4e=_0x941233;var _0x2cdcfa,_0x2401e3;let _0x4291d7=N(_0x39a28d,_0x364733),_0x4c8ae9=((_0x2cdcfa=_0x39a28d[_0x4cff4e(0x217)])==null?[]:_0x2cdcfa)[_0x4cff4e(0x22f)](_0x124d8e=>_0x124d8e[_0x4cff4e(0x20a)]===_0x4291d7+0x1);if(!_0x4c8ae9||_0x4be4ed!=null&&_0x4c8ae9[_0x4cff4e(0x20a)]!==_0x4be4ed||_0xf3fee9<_0x4291d7||_0xf3fee9>_0x4c8ae9[_0x4cff4e(0x20a)]+0x1||_0x39a28d[_0x4cff4e(0x203)][_0x4c8ae9[_0x4cff4e(0x20a)]]!==_0x46a8a8[_0x4cff4e(0x231)])return null;let _0x4b785d=j((_0x2401e3=_0x39a28d['paragraphs'])==null?[]:_0x2401e3,_0x4c8ae9),_0x16e4b9=_0x39a28d[_0x4cff4e(0x203)]['slice'](_0x4b785d,_0x4c8ae9[_0x4cff4e(0x20a)]);return Array['from'](_0x16e4b9)['every'](_0x445385=>_0x445385===_0x46a8a8[_0x4cff4e(0x1fc)])?{'paragraph':_0x4c8ae9,'endTokenOffset':_0x4291d7}:null;}function P(_0x3152ed,_0x5c7156,_0x2a5fa2,_0x1490f4={}){const _0x599ab8=_0x941233;var _0x1815ec,_0x18c288;if(_0x2a5fa2){if(_0x3152ed[_0x599ab8(0x203)]=''+_0x3152ed[_0x599ab8(0x203)][_0x599ab8(0x21c)](0x0,_0x5c7156)+_0x2a5fa2+_0x3152ed['dataStream'][_0x599ab8(0x21c)](_0x5c7156),me(_0x3152ed,_0x5c7156,_0x2a5fa2['length']),(_0x1815ec=_0x1490f4[_0x599ab8(0x217)])!=null&&_0x1815ec[_0x599ab8(0x237)]){var _0x37312d;_0x3152ed[_0x599ab8(0x217)]=[...(_0x37312d=_0x3152ed[_0x599ab8(0x217)])==null?[]:_0x37312d,..._0x1490f4[_0x599ab8(0x217)]['map'](_0xb8d724=>({..._0xb8d724,'startIndex':_0xb8d724[_0x599ab8(0x20a)]+_0x5c7156}))]['sort']((_0x2e12e1,_0x30c595)=>_0x2e12e1['startIndex']-_0x30c595[_0x599ab8(0x20a)]);}if((_0x18c288=_0x1490f4['blockRanges'])!=null&&_0x18c288[_0x599ab8(0x237)]){var _0xb20cb9;_0x3152ed['blockRanges']=[...(_0xb20cb9=_0x3152ed['blockRanges'])==null?[]:_0xb20cb9,..._0x1490f4[_0x599ab8(0x209)][_0x599ab8(0x23d)](_0x554d70=>({..._0x554d70,'startIndex':_0x554d70[_0x599ab8(0x20a)]+_0x5c7156,'endIndex':_0x554d70[_0x599ab8(0x20b)]+_0x5c7156}))][_0x599ab8(0x21b)]((_0x29e699,_0x5b9ed7)=>_0x29e699['startIndex']-_0x5b9ed7['startIndex']);}}}function F(_0x16d95d,_0x3cd346,_0x1c8312){const _0x992018=_0x941233;let _0x5bee37=_0x1c8312-_0x3cd346;_0x16d95d[_0x992018(0x203)]=''+_0x16d95d[_0x992018(0x203)]['slice'](0x0,_0x3cd346)+_0x16d95d[_0x992018(0x203)][_0x992018(0x21c)](_0x1c8312),he(_0x16d95d,_0x3cd346,_0x5bee37);}function me(_0x267a32,_0x312c44,_0x160b02){const _0x487408=_0x941233;_0x267a32[_0x487408(0x217)]=I(_0x267a32['paragraphs'],_0x312c44,_0x160b02),_0x267a32[_0x487408(0x24a)]=I(_0x267a32['sectionBreaks'],_0x312c44,_0x160b02),_0x267a32[_0x487408(0x1f6)]=I(_0x267a32[_0x487408(0x1f6)],_0x312c44,_0x160b02),_0x267a32[_0x487408(0x240)]=ge(_0x267a32[_0x487408(0x240)],_0x312c44,_0x160b02),_0x267a32[_0x487408(0x239)]=R(_0x267a32[_0x487408(0x239)],_0x312c44,_0x160b02),_0x267a32[_0x487408(0x22a)]=R(_0x267a32[_0x487408(0x22a)],_0x312c44,_0x160b02),_0x267a32[_0x487408(0x252)]=R(_0x267a32[_0x487408(0x252)],_0x312c44,_0x160b02),_0x267a32['blockRanges']=R(_0x267a32[_0x487408(0x209)],_0x312c44,_0x160b02);}function he(_0x59f060,_0x4d55bf,_0x4598cb){const _0x2f6d8b=_0x941233;var _0x184dad,_0x505c29;_0x59f060[_0x2f6d8b(0x217)]=L(_0x59f060[_0x2f6d8b(0x217)],_0x4d55bf,_0x4598cb),_0x59f060['sectionBreaks']=L(_0x59f060['sectionBreaks'],_0x4d55bf,_0x4598cb),_0x59f060[_0x2f6d8b(0x1f6)]=L(_0x59f060[_0x2f6d8b(0x1f6)],_0x4d55bf,_0x4598cb),_0x59f060[_0x2f6d8b(0x240)]=(_0x184dad=z((_0x505c29=_0x59f060[_0x2f6d8b(0x240)])==null?void 0x0:_0x505c29[_0x2f6d8b(0x23d)](_0x47b674=>({..._0x47b674,'startIndex':_0x47b674['st'],'endIndex':_0x47b674['ed']})),_0x4d55bf,_0x4598cb))==null?void 0x0:_0x184dad[_0x2f6d8b(0x23d)](_0xf65810=>{let {startIndex:_0x4459a5,endIndex:_0x538e51,..._0x168399}=_0xf65810;return{..._0x168399,'st':_0x4459a5,'ed':_0x538e51};}),_0x59f060[_0x2f6d8b(0x239)]=z(_0x59f060['tables'],_0x4d55bf,_0x4598cb),_0x59f060['customRanges']=z(_0x59f060[_0x2f6d8b(0x22a)],_0x4d55bf,_0x4598cb),_0x59f060['customDecorations']=z(_0x59f060[_0x2f6d8b(0x252)],_0x4d55bf,_0x4598cb),_0x59f060[_0x2f6d8b(0x209)]=z(_0x59f060[_0x2f6d8b(0x209)],_0x4d55bf,_0x4598cb);}function I(_0x509227,_0x5d698d,_0x453361){const _0x489ae1=_0x941233;return _0x509227==null?void 0x0:_0x509227[_0x489ae1(0x23d)](_0x47d561=>_0x47d561[_0x489ae1(0x20a)]>=_0x5d698d?{..._0x47d561,'startIndex':_0x47d561[_0x489ae1(0x20a)]+_0x453361}:_0x47d561);}function L(_0x54fa44,_0x9bc7e6,_0x2520a5){const _0x133bc2=_0x941233;let _0x16fcf4=_0x9bc7e6+_0x2520a5;return _0x54fa44==null?void 0x0:_0x54fa44[_0x133bc2(0x23d)](_0x3c9fd1=>_0x3c9fd1[_0x133bc2(0x20a)]>=_0x9bc7e6&&_0x3c9fd1[_0x133bc2(0x20a)]<_0x16fcf4?null:_0x3c9fd1[_0x133bc2(0x20a)]>=_0x16fcf4?{..._0x3c9fd1,'startIndex':_0x3c9fd1[_0x133bc2(0x20a)]-_0x2520a5}:_0x3c9fd1)[_0x133bc2(0x257)](_0x29c4ff=>_0x29c4ff!=null);}function ge(_0x5879a4,_0x2b3e5f,_0x5295f1){const _0x11ee1b=_0x941233;return _0x5879a4==null?void 0x0:_0x5879a4[_0x11ee1b(0x23d)](_0x1088ab=>_0x1088ab['st']>=_0x2b3e5f?{..._0x1088ab,'st':_0x1088ab['st']+_0x5295f1,'ed':_0x1088ab['ed']+_0x5295f1}:_0x1088ab['ed']>_0x2b3e5f?{..._0x1088ab,'ed':_0x1088ab['ed']+_0x5295f1}:_0x1088ab);}function R(_0x2561eb,_0x30e751,_0x3c30a4){const _0x40e796=_0x941233;return _0x2561eb==null?void 0x0:_0x2561eb[_0x40e796(0x23d)](_0x1d3d79=>_0x1d3d79['startIndex']>=_0x30e751?{..._0x1d3d79,'startIndex':_0x1d3d79[_0x40e796(0x20a)]+_0x3c30a4,'endIndex':_0x1d3d79[_0x40e796(0x20b)]+_0x3c30a4}:_0x1d3d79[_0x40e796(0x20b)]>=_0x30e751?{..._0x1d3d79,'endIndex':_0x1d3d79[_0x40e796(0x20b)]+_0x3c30a4}:_0x1d3d79);}function z(_0x184c87,_0x4a4a90,_0x4d57b9){const _0x8fbf6a=_0x941233;let _0x2e8441=_0x4a4a90+_0x4d57b9;return _0x184c87==null?void 0x0:_0x184c87[_0x8fbf6a(0x23d)](_0x4e73a9=>_0x4e73a9[_0x8fbf6a(0x20a)]>=_0x4a4a90&&_0x4e73a9['endIndex']<_0x2e8441?null:_0x4e73a9['startIndex']>=_0x2e8441?{..._0x4e73a9,'startIndex':_0x4e73a9['startIndex']-_0x4d57b9,'endIndex':_0x4e73a9['endIndex']-_0x4d57b9}:_0x4e73a9[_0x8fbf6a(0x20b)]>=_0x4a4a90?{..._0x4e73a9,'startIndex':_0x4e73a9[_0x8fbf6a(0x20a)]<_0x4a4a90?_0x4e73a9[_0x8fbf6a(0x20a)]:_0x4a4a90,'endIndex':Math[_0x8fbf6a(0x225)](_0x4a4a90,_0x4e73a9[_0x8fbf6a(0x20b)]-_0x4d57b9)}:_0x4e73a9)[_0x8fbf6a(0x257)](_0x328123=>_0x328123!=null);}function B(_0x336b8d,_0x5adf8e,_0x59b3cc,_0x3ebff8){const _0xa40739=_0x941233;_0x336b8d==null||_0x336b8d[_0xa40739(0x22c)](_0x4171fc=>{const _0x220362=_0xa40739;_0x4171fc[_0x220362(0x20a)]>=_0x5adf8e&&_0x4171fc[_0x220362(0x20a)]<_0x59b3cc&&(_0x4171fc[_0x220362(0x20a)]+=_0x3ebff8);});}function _e(_0x3d12c4,_0x442e85,_0x236040,_0x385b46){const _0x24aa4f=_0x941233;_0x3d12c4==null||_0x3d12c4[_0x24aa4f(0x22c)](_0x1ea254=>{_0x1ea254['st']>=_0x442e85&&_0x1ea254['st']<_0x236040?(_0x1ea254['st']+=_0x385b46,_0x1ea254['ed']+=_0x385b46):_0x1ea254['ed']>_0x442e85&&_0x1ea254['ed']<_0x236040&&(_0x1ea254['ed']+=_0x385b46);});}function V(_0x5da16,_0x1334ed,_0x12d48d,_0x5f1456){const _0x5574ec=_0x941233;_0x5da16==null||_0x5da16[_0x5574ec(0x22c)](_0x6b2b86=>{const _0x132680=_0x5574ec;_0x6b2b86[_0x132680(0x20a)]>=_0x1334ed&&_0x6b2b86[_0x132680(0x20a)]<_0x12d48d?(_0x6b2b86[_0x132680(0x20a)]+=_0x5f1456,_0x6b2b86[_0x132680(0x20b)]+=_0x5f1456):_0x6b2b86['endIndex']>_0x1334ed&&_0x6b2b86['endIndex']<_0x12d48d&&(_0x6b2b86[_0x132680(0x20b)]+=_0x5f1456);});}const H={'id':_0x941233(0x232),'type':_0xa186f[_0x941233(0x22e)],'handler':_0x52192e=>{const _0x1e44f9=_0x941233;let _0x4afdc1=ve(_0x52192e);if(_0x4afdc1)return _0x52192e['get'](_0x46f782)[_0x1e44f9(0x23a)](U['id'],{'startOffset':_0x4afdc1[_0x1e44f9(0x21f)],'endOffset':_0x4afdc1[_0x1e44f9(0x24c)],'unitId':_0x4afdc1[_0x1e44f9(0x212)]});let _0x1e7dc7=ye(_0x52192e);if(!_0x1e7dc7)return!0x1;let _0x2b87bd=_0x1e7dc7[_0x1e44f9(0x20a)]+0x1;return _0x52192e[_0x1e44f9(0x241)](_0x46f782)[_0x1e44f9(0x23a)](U['id'],{'startOffset':_0x2b87bd,'endOffset':_0x2b87bd});}},U={'id':_0x941233(0x24d),'type':_0xa186f[_0x941233(0x22e)],'handler':(_0x5215ed,_0x3193bf)=>{const _0x462549=_0x941233;var _0x5ae160,_0x20f53c,_0x36f080;let _0x146f22=K(_0x5215ed,_0x3193bf==null?void 0x0:_0x3193bf[_0x462549(0x212)]);if(!_0x146f22)return!0x1;let _0x18ec74=q(_0x5215ed),_0x2a13ec=ee({'blockId':(_0x5ae160=_0x3193bf==null?void 0x0:_0x3193bf[_0x462549(0x20c)])==null?_0x2ea456(0x6):_0x5ae160,'documentData':_0x146f22[_0x462549(0x219)],'endOffset':(_0x20f53c=_0x3193bf==null?void 0x0:_0x3193bf['endOffset'])==null?_0x18ec74==null?void 0x0:_0x18ec74[_0x462549(0x24c)]:_0x20f53c,'startOffset':(_0x36f080=_0x3193bf==null?void 0x0:_0x3193bf[_0x462549(0x21f)])==null?_0x18ec74==null?void 0x0:_0x18ec74['startOffset']:_0x36f080});return Y(_0x146f22[_0x462549(0x20d)],_0x146f22[_0x462549(0x212)],_0x146f22[_0x462549(0x219)],_0x2a13ec[_0x462549(0x246)],_0x2a13ec['cursorOffset']);}},W={'id':_0x941233(0x24b),'type':_0xa186f[_0x941233(0x22e)],'handler':(_0x10c804,_0x4f2f00)=>{const _0x350505=_0x941233;var _0xcc4fd5,_0x57d392;let _0x59d61e=K(_0x10c804,_0x4f2f00==null?void 0x0:_0x4f2f00[_0x350505(0x212)]);if(!_0x59d61e)return!0x1;let _0x5f3c1d=(_0xcc4fd5=_0x4f2f00==null?void 0x0:_0x4f2f00[_0x350505(0x207)])==null?(_0x57d392=q(_0x10c804))==null?void 0x0:_0x57d392['startOffset']:_0xcc4fd5;if(_0x5f3c1d==null)return!0x1;let _0x10a9e9=S({'cursorOffset':_0x5f3c1d,'documentData':_0x59d61e['previousDocumentData']});return _0x10a9e9?Y(_0x59d61e[_0x350505(0x20d)],_0x59d61e['unitId'],_0x59d61e[_0x350505(0x219)],_0x10a9e9[_0x350505(0x246)],_0x10a9e9[_0x350505(0x207)]):!0x1;}},G={'id':_0x941233(0x24e),'type':_0xa186f[_0x941233(0x22e)],'handler':(_0x39da0b,_0x1c6bbb)=>{const _0x3b0e95=_0x941233;var _0x1b14fb,_0x194452;let _0x4e0bce=K(_0x39da0b,_0x1c6bbb==null?void 0x0:_0x1c6bbb[_0x3b0e95(0x212)]);if(!_0x4e0bce)return!0x1;let _0x59c9b0=(_0x1b14fb=_0x1c6bbb==null?void 0x0:_0x1c6bbb['cursorOffset'])==null?(_0x194452=q(_0x39da0b))==null?void 0x0:_0x194452[_0x3b0e95(0x21f)]:_0x1b14fb;if(_0x59c9b0==null)return!0x1;let _0x38b9b1=C({'cursorOffset':_0x59c9b0,'documentData':_0x4e0bce['previousDocumentData'],'paragraphStartIndex':_0x1c6bbb==null?void 0x0:_0x1c6bbb[_0x3b0e95(0x247)]});return _0x38b9b1?Y(_0x4e0bce[_0x3b0e95(0x20d)],_0x4e0bce[_0x3b0e95(0x212)],_0x4e0bce[_0x3b0e95(0x219)],_0x38b9b1[_0x3b0e95(0x246)],_0x38b9b1[_0x3b0e95(0x207)]):!0x1;}};function K(_0x544315,_0x14ba3f){const _0x4237e3=_0x941233;let _0xbeedb6=_0x544315[_0x4237e3(0x241)](_0x3831f6),_0x5adaa2=_0x14ba3f?_0xbeedb6[_0x4237e3(0x1fa)](_0x14ba3f):_0xbeedb6[_0x4237e3(0x1f2)](_0x50a4b8['UNIVER_DOC']);return _0x5adaa2?{'commandService':_0x544315['get'](_0x46f782),'previousDocumentData':_0x5adaa2[_0x4237e3(0x1f9)](),'unitId':_0x5adaa2[_0x4237e3(0x21a)]()}:null;}function q(_0x2e68f4){const _0x26eb85=_0x941233;var _0x28b2d9;return(_0x28b2d9=_0x2e68f4['get'](_0x2a33a2)[_0x26eb85(0x206)]())==null?void 0x0:_0x28b2d9[0x0];}function ve(_0x30620c){const _0x24d423=_0x941233;var _0xd909c6;let _0x17eea3=(_0xd909c6=_0x30620c[_0x24d423(0x241)](_0x3831f6)['getCurrentUnitOfType'](_0x50a4b8[_0x24d423(0x1f4)]))==null?void 0x0:_0xd909c6[_0x24d423(0x21a)]();try{return _0x30620c[_0x24d423(0x241)](_0x2fe867)[_0x24d423(0x213)](_0x17eea3);}catch{return null;}}function ye(_0xc0b68f){const _0x46e77a=_0x941233;var _0x11271e,_0x574c3a,_0x14b823;let _0x27f7c7=q(_0xc0b68f);if(!_0x27f7c7)return null;let _0x91b450=_0xc0b68f[_0x46e77a(0x241)](_0x3831f6)[_0x46e77a(0x1f2)](_0x50a4b8[_0x46e77a(0x1f4)]),_0x3224cd=_0x91b450==null?void 0x0:_0x91b450[_0x46e77a(0x224)]();return _0x3224cd?(_0x11271e=_0x5af6e9[_0x46e77a(0x1f3)]['getParagraphsInRange'](_0x27f7c7,(_0x574c3a=_0x3224cd[_0x46e77a(0x217)])==null?[]:_0x574c3a,(_0x14b823=_0x3224cd['dataStream'])==null?'':_0x14b823)[0x0])==null?null:_0x11271e:null;}function be(_0x4cc385,_0x3158ac){const _0x681526=_0x941233;var _0x3bccf3,_0x41bf54,_0x1f485a,_0x255801,_0xf40315,_0xeda4b7,_0x1aec23,_0x5e3691,_0x2b9bdb,_0x367f89,_0x59d85e,_0x2917e1,_0x16a82e,_0x401bae,_0x351d5e,_0x2dde77,_0x38f1df,_0x5be345;let _0x587c13=_0xd81bba[_0x681526(0x220)]();return[J(_0x587c13,[_0x681526(0x222),_0x681526(0x203)],(_0x3bccf3=_0x4cc385[_0x681526(0x222)])==null?void 0x0:_0x3bccf3['dataStream'],(_0x41bf54=_0x3158ac['body'])==null?void 0x0:_0x41bf54[_0x681526(0x203)]),J(_0x587c13,['body','paragraphs'],(_0x1f485a=_0x4cc385[_0x681526(0x222)])==null?void 0x0:_0x1f485a[_0x681526(0x217)],(_0x255801=_0x3158ac['body'])==null?void 0x0:_0x255801[_0x681526(0x217)]),J(_0x587c13,['body',_0x681526(0x24a)],(_0xf40315=_0x4cc385['body'])==null?void 0x0:_0xf40315[_0x681526(0x24a)],(_0xeda4b7=_0x3158ac[_0x681526(0x222)])==null?void 0x0:_0xeda4b7[_0x681526(0x24a)]),J(_0x587c13,[_0x681526(0x222),_0x681526(0x240)],(_0x1aec23=_0x4cc385['body'])==null?void 0x0:_0x1aec23['textRuns'],(_0x5e3691=_0x3158ac[_0x681526(0x222)])==null?void 0x0:_0x5e3691[_0x681526(0x240)]),J(_0x587c13,[_0x681526(0x222),'customBlocks'],(_0x2b9bdb=_0x4cc385[_0x681526(0x222)])==null?void 0x0:_0x2b9bdb[_0x681526(0x1f6)],(_0x367f89=_0x3158ac[_0x681526(0x222)])==null?void 0x0:_0x367f89['customBlocks']),J(_0x587c13,['body',_0x681526(0x22a)],(_0x59d85e=_0x4cc385[_0x681526(0x222)])==null?void 0x0:_0x59d85e[_0x681526(0x22a)],(_0x2917e1=_0x3158ac[_0x681526(0x222)])==null?void 0x0:_0x2917e1[_0x681526(0x22a)]),J(_0x587c13,[_0x681526(0x222),_0x681526(0x252)],(_0x16a82e=_0x4cc385[_0x681526(0x222)])==null?void 0x0:_0x16a82e[_0x681526(0x252)],(_0x401bae=_0x3158ac[_0x681526(0x222)])==null?void 0x0:_0x401bae[_0x681526(0x252)]),J(_0x587c13,[_0x681526(0x222),_0x681526(0x239)],(_0x351d5e=_0x4cc385[_0x681526(0x222)])==null?void 0x0:_0x351d5e[_0x681526(0x239)],(_0x2dde77=_0x3158ac[_0x681526(0x222)])==null?void 0x0:_0x2dde77[_0x681526(0x239)]),J(_0x587c13,[_0x681526(0x222),_0x681526(0x209)],(_0x38f1df=_0x4cc385[_0x681526(0x222)])==null?void 0x0:_0x38f1df[_0x681526(0x209)],(_0x5be345=_0x3158ac[_0x681526(0x222)])==null?void 0x0:_0x5be345['blockRanges'])][_0x681526(0x257)](Boolean)[_0x681526(0x256)]((_0xc854c7,_0x46c16a)=>_0xd81bba['compose'](_0xc854c7,_0x46c16a),null);}function J(_0x40eeea,_0xecec66,_0x27604f,_0x59bd73){const _0x4f5af7=_0x941233;return _0x4f30da[_0x4f5af7(0x200)](_0x27604f,_0x59bd73)?null:_0x40eeea[_0x4f5af7(0x23e)](_0xecec66,_0x27604f,_0x59bd73);}function Y(_0x202739,_0x318f67,_0x388631,_0xa06ec7,_0x168830){let _0x4e69ad=be(_0x388631,_0xa06ec7);return _0x4e69ad?!!_0x202739['syncExecuteCommand'](_0x40520e['id'],{'unitId':_0x318f67,'actions':_0x4e69ad,'textRanges':[{'startOffset':_0x168830,'endOffset':_0x168830,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}var xe=_0x941233(0x238),Se='0.24.0-insiders.20260528-29f582d';const Ce='docs-quote.config';Symbol(Ce);const we={};function X(_0x214fc9,_0x2c2196){return function(_0x1aa6b2,_0x107eb6){_0x2c2196(_0x1aa6b2,_0x107eb6,_0x214fc9);};}function Te(_0x31169c,_0xc4d527,_0x5a8ac1,_0x210ed0){const _0x5e772b=_0x941233;var _0x5f2de3=arguments[_0x5e772b(0x237)],_0x15aa00=_0x5f2de3<0x3?_0xc4d527:_0x210ed0===null?_0x210ed0=Object[_0x5e772b(0x258)](_0xc4d527,_0x5a8ac1):_0x210ed0,_0x4a99be;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x5e772b(0x243))_0x15aa00=Reflect[_0x5e772b(0x254)](_0x31169c,_0xc4d527,_0x5a8ac1,_0x210ed0);else{for(var _0x20008d=_0x31169c['length']-0x1;_0x20008d>=0x0;_0x20008d--)(_0x4a99be=_0x31169c[_0x20008d])&&(_0x15aa00=(_0x5f2de3<0x3?_0x4a99be(_0x15aa00):_0x5f2de3>0x3?_0x4a99be(_0xc4d527,_0x5a8ac1,_0x15aa00):_0x4a99be(_0xc4d527,_0x5a8ac1))||_0x15aa00);}return _0x5f2de3>0x3&&_0x15aa00&&Object[_0x5e772b(0x230)](_0xc4d527,_0x5a8ac1,_0x15aa00),_0x15aa00;}function Z(_0x5edcfb){'@babel/helpers - typeof';const _0x3fdca5=_0x941233;return Z=typeof Symbol==_0x3fdca5(0x243)&&typeof Symbol[_0x3fdca5(0x23f)]=='symbol'?function(_0x2e29b2){return typeof _0x2e29b2;}:function(_0x3d5f72){const _0x10589c=_0x3fdca5;return _0x3d5f72&&typeof Symbol==_0x10589c(0x243)&&_0x3d5f72['constructor']===Symbol&&_0x3d5f72!==Symbol[_0x10589c(0x244)]?_0x10589c(0x250):typeof _0x3d5f72;},Z(_0x5edcfb);}function Ee(_0x4ec2c4,_0x5a9372){const _0x5929cf=_0x941233;if(Z(_0x4ec2c4)!='object'||!_0x4ec2c4)return _0x4ec2c4;var _0x330dac=_0x4ec2c4[Symbol[_0x5929cf(0x214)]];if(_0x330dac!==void 0x0){var _0x1031e3=_0x330dac[_0x5929cf(0x253)](_0x4ec2c4,_0x5a9372||'default');if(Z(_0x1031e3)!=_0x5929cf(0x218))return _0x1031e3;throw TypeError(_0x5929cf(0x21e));}return(_0x5a9372===_0x5929cf(0x1fb)?String:Number)(_0x4ec2c4);}function De(_0x3865c3){const _0x50e2d7=_0x941233;var _0x4f9e97=Ee(_0x3865c3,'string');return Z(_0x4f9e97)==_0x50e2d7(0x250)?_0x4f9e97:_0x4f9e97+'';}function Q(_0x4f4cea,_0x409b09,_0x226abd){return(_0x409b09=De(_0x409b09))in _0x4f4cea?Object['defineProperty'](_0x4f4cea,_0x409b09,{'value':_0x226abd,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4f4cea[_0x409b09]=_0x226abd,_0x4f4cea;}let $=class extends _0x491f0b{constructor(_0x2c3cdc=we,_0x41a423,_0x4f102b,_0x2e63b7){const _0x403bcc=_0x941233;super(),this['_config']=_0x2c3cdc,this[_0x403bcc(0x251)]=_0x41a423,this[_0x403bcc(0x205)]=_0x4f102b,this[_0x403bcc(0x23b)]=_0x2e63b7;let {..._0x5e9434}=_0x50aeae({},we,this[_0x403bcc(0x235)]);this[_0x403bcc(0x23b)][_0x403bcc(0x1f8)](Ce,_0x5e9434);}[_0x941233(0x249)](){const _0x54815f=_0x941233;[U,H,W,G][_0x54815f(0x22c)](_0x5c4172=>this['disposeWithMe'](this['_commandService'][_0x54815f(0x208)](_0x5c4172)));}};Q($,_0x941233(0x204),b),Q($,_0x941233(0x201),xe),Q($,_0x941233(0x215),Se),Q($,_0x941233(0x24f),_0x50a4b8[_0x941233(0x1f4)]),$=Te([_0x35d418(_0x2bcd2a,_0x46cb6f),X(0x1,_0x4c1005(_0x2ea91f)),X(0x2,_0x46f782),X(0x3,_0x2602f8)],$);export{x as DOCS_QUOTE_BLOCK_TYPE,b as DOCS_QUOTE_PLUGIN,G as DocsQuoteCancelEmptyParagraphCommand,W as DocsQuoteExitCommand,H as DocsQuoteInsertBelowCommand,U as DocsQuoteInsertCommand,$ as UniverDocsQuotePlugin,C as buildCancelEmptyQuoteParagraphActions,S as buildExitQuoteActions,ee as buildInsertQuoteActions,ae as findQuoteRangeAtOffset};
|
package/lib/facade.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x4ec56b=_0x37e1;(function(_0x2268e6,_0x5e2b18){const _0xf76119=_0x37e1,_0x55e55d=_0x2268e6();while(!![]){try{const _0x24876f=parseInt(_0xf76119(0x161))/0x1*(-parseInt(_0xf76119(0x18a))/0x2)+parseInt(_0xf76119(0x185))/0x3+parseInt(_0xf76119(0x180))/0x4*(-parseInt(_0xf76119(0x14c))/0x5)+-parseInt(_0xf76119(0x146))/0x6*(parseInt(_0xf76119(0x163))/0x7)+-parseInt(_0xf76119(0x15a))/0x8*(parseInt(_0xf76119(0x16f))/0x9)+parseInt(_0xf76119(0x174))/0xa+parseInt(_0xf76119(0x142))/0xb*(parseInt(_0xf76119(0x148))/0xc);if(_0x24876f===_0x5e2b18)break;else _0x55e55d['push'](_0x55e55d['shift']());}catch(_0x2b0530){_0x55e55d['push'](_0x55e55d['shift']());}}}(_0x5043,0x62fe7));import{CommandType as _0x5b2109,DataStreamTreeTokenType as _0x19dcdd,ICommandService as _0x1d2fde,IUniverInstanceService as _0x6ec290,JSONX as _0x4b7bdb,Tools as _0x2656d0,UniverInstanceType as _0x329643,generateRandomId as _0x31817e}from'@univerjs/core';import{FDocument as _0x486f68}from'@univerjs/docs-ui/facade';import{DocSelectionManagerService as _0x13b143,RichTextEditingMutation as _0x24f978}from'@univerjs/docs';import'@univerjs/docs-ui';const d=_0x4ec56b(0x16e);function f(_0x21aa71){const _0x450739=_0x4ec56b;var _0x4edb3c,_0x104130,_0x67af71;let _0x415877=T(_0x21aa71[_0x450739(0x171)]),_0x1fba05=E(_0x415877),_0x4b885f=p(_0x21aa71[_0x450739(0x149)],_0x21aa71[_0x450739(0x14a)]),_0xe4bdfa=_0x4b885f?(_0x4edb3c=_0x1fba05[_0x450739(0x15f)])==null?void 0x0:_0x4edb3c[_0x450739(0x182)](_0x1ae3c0=>_0x1ae3c0['startIndex']===_0x4b885f[_0x450739(0x149)]&&_0x1ae3c0['endIndex']+0x1===_0x4b885f['endOffset']):void 0x0,{startOffset:_0x4afb20,endOffset:_0x1c48b1}=_0xe4bdfa?_0x4b885f:D(_0x1fba05,_0x21aa71[_0x450739(0x149)],_0x21aa71[_0x450739(0x14a)]),_0x50960a=O(_0x1fba05,_0x4afb20,_0x1c48b1),_0x20faa3=(_0x104130=_0xe4bdfa==null?void 0x0:_0xe4bdfa[_0x450739(0x13d)])==null?_0x21aa71[_0x450739(0x13d)]:_0x104130;if(_0xe4bdfa)return _0xe4bdfa[_0x450739(0x176)]=d,m(_0x1fba05,_0x4afb20,_0x1c48b1),x(_0x1fba05,_0x4afb20,_0x1c48b1,_0x50960a),{'nextDocumentData':_0x415877,'cursorOffset':_0x4afb20+0x1};if(_0x4afb20===_0x1c48b1){let _0x12ec30=''+_0x19dcdd['BLOCK_START']+_0x19dcdd[_0x450739(0x16d)]+_0x19dcdd[_0x450739(0x184)];return P(_0x1fba05,_0x4afb20,_0x12ec30,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':b(!0x0,!0x0,_0x50960a)}],'blockRanges':[{'blockId':_0x20faa3,'blockType':d,'startIndex':0x0,'endIndex':_0x12ec30[_0x450739(0x14e)]-0x1}]}),{'nextDocumentData':_0x415877,'cursorOffset':_0x4afb20+0x1};}return P(_0x1fba05,_0x1c48b1,_0x19dcdd[_0x450739(0x184)]),P(_0x1fba05,_0x4afb20,_0x19dcdd[_0x450739(0x160)]),x(_0x1fba05,_0x4afb20,_0x1c48b1+0x1,_0x50960a),_0x1fba05['blockRanges']=[...(_0x67af71=_0x1fba05['blockRanges'])==null?[]:_0x67af71,{'blockId':_0x20faa3,'blockType':d,'startIndex':_0x4afb20,'endIndex':_0x1c48b1+0x1}][_0x450739(0x18d)]((_0x473294,_0x3f26f2)=>_0x473294[_0x450739(0x18f)]-_0x3f26f2['startIndex']),{'nextDocumentData':_0x415877,'cursorOffset':_0x4afb20+0x1};}function _0x37e1(_0x378ff1,_0x21eebb){_0x378ff1=_0x378ff1-0x134;const _0x50438d=_0x5043();let _0x37e14d=_0x50438d[_0x378ff1];return _0x37e14d;}function p(_0x4de315,_0x66181b){const _0x2bb678=_0x4ec56b;return _0x4de315==null||_0x66181b==null||_0x4de315===_0x66181b?null:{'startOffset':Math['min'](_0x4de315,_0x66181b),'endOffset':Math[_0x2bb678(0x179)](_0x4de315,_0x66181b)};}function m(_0x457e2c,_0x485d1d,_0x10322b){const _0x2e3b21=_0x4ec56b;var _0x5ea095;((_0x5ea095=_0x457e2c['paragraphs'])==null?[]:_0x5ea095)[_0x2e3b21(0x16c)](_0x3037d0=>_0x3037d0['startIndex']>_0x485d1d&&_0x3037d0[_0x2e3b21(0x18f)]<_0x10322b)['forEach'](_0x21663b=>{const _0x15cb4d=_0x2e3b21;var _0x1f11dc;let _0x52d574={...(_0x1f11dc=_0x21663b[_0x15cb4d(0x15c)])==null?{}:_0x1f11dc};delete _0x52d574[_0x15cb4d(0x138)],delete _0x52d574[_0x15cb4d(0x158)],delete _0x52d574[_0x15cb4d(0x165)],delete _0x52d574[_0x15cb4d(0x17e)],_0x21663b[_0x15cb4d(0x15c)]=_0x52d574;});}function h(_0x1f9f41){const _0x432943=_0x4ec56b;var _0x1a4910,_0x1ea8ca;let _0x25395e=T(_0x1f9f41[_0x432943(0x171)]),_0x29bebe=E(_0x25395e),_0x34f52b=y(_0x29bebe,_0x1f9f41[_0x432943(0x183)]);if(!_0x34f52b)return null;let _0x15e79c=C(_0x29bebe,_0x34f52b),_0x10b091=_0x15e79c[_0x15e79c['length']-0x1];if(!_0x10b091||!ee(_0x29bebe,_0x34f52b,_0x10b091)||_0x1f9f41[_0x432943(0x183)]<_0x10b091['startIndex'])return null;let _0x280c95=j(_0x29bebe,_0x34f52b,_0x10b091);if(_0x280c95>=_0x34f52b[_0x432943(0x15d)])return null;_0x29bebe['dataStream']=[_0x29bebe['dataStream'][_0x432943(0x169)](0x0,_0x280c95),_0x19dcdd['BLOCK_END'],_0x29bebe[_0x432943(0x13c)]['slice'](_0x280c95,_0x34f52b[_0x432943(0x15d)]),_0x29bebe[_0x432943(0x13c)]['slice'](_0x34f52b[_0x432943(0x15d)]+0x1)][_0x432943(0x189)](''),V(_0x29bebe['paragraphs'],_0x280c95,_0x34f52b[_0x432943(0x15d)],0x1),V(_0x29bebe[_0x432943(0x18b)],_0x280c95,_0x34f52b[_0x432943(0x15d)],0x1),V(_0x29bebe['customBlocks'],_0x280c95,_0x34f52b[_0x432943(0x15d)],0x1),H(_0x29bebe['textRuns'],_0x280c95,_0x34f52b[_0x432943(0x15d)],0x1),U(_0x29bebe['tables'],_0x280c95,_0x34f52b[_0x432943(0x15d)],0x1),U(_0x29bebe[_0x432943(0x135)],_0x280c95,_0x34f52b[_0x432943(0x15d)],0x1),U(_0x29bebe[_0x432943(0x14f)],_0x280c95,_0x34f52b['endIndex'],0x1),(_0x1a4910=_0x29bebe[_0x432943(0x15f)])==null||_0x1a4910[_0x432943(0x159)](_0x29467f=>{const _0x55bf02=_0x432943;_0x29467f===_0x34f52b||_0x29467f['blockId']===_0x34f52b[_0x55bf02(0x13d)]?_0x29467f[_0x55bf02(0x15d)]=_0x280c95:_0x29467f[_0x55bf02(0x18f)]>=_0x280c95&&_0x29467f[_0x55bf02(0x18f)]<_0x34f52b[_0x55bf02(0x15d)]&&(_0x29467f['startIndex']+=0x1,_0x29467f[_0x55bf02(0x15d)]+=0x1);});let _0x39ba53=C(_0x29bebe,{..._0x34f52b,'endIndex':_0x280c95});_0x39ba53[_0x432943(0x159)]((_0x4f514f,_0x11636a)=>{const _0x22681a=_0x432943;var _0x339f2e;_0x4f514f[_0x22681a(0x15c)]={...(_0x339f2e=_0x4f514f[_0x22681a(0x15c)])==null?{}:_0x339f2e,...b(_0x11636a===0x0,_0x11636a===_0x39ba53[_0x22681a(0x14e)]-0x1)};});let _0x291c09=(_0x1ea8ca=_0x29bebe[_0x432943(0x15b)])==null?void 0x0:_0x1ea8ca[_0x432943(0x182)](_0xcbc7a3=>_0xcbc7a3[_0x432943(0x18f)]===_0x280c95+0x1);return _0x291c09&&(_0x291c09[_0x432943(0x15c)]=S(_0x291c09[_0x432943(0x15c)])),{'nextDocumentData':_0x25395e,'cursorOffset':_0x280c95+0x1};}function g(_0x36dc9c){const _0x5b8cf5=_0x4ec56b;let _0x3c19d2=T(_0x36dc9c[_0x5b8cf5(0x171)]),_0x2b0d0e=E(_0x3c19d2),_0x108e8f=y(_0x2b0d0e,_0x36dc9c['cursorOffset']);return _0x108e8f&&(_(_0x3c19d2,_0x2b0d0e,_0x108e8f,_0x36dc9c['cursorOffset'],_0x36dc9c[_0x5b8cf5(0x173)])||v(_0x3c19d2,_0x2b0d0e,_0x108e8f,_0x36dc9c[_0x5b8cf5(0x183)]))||null;}function _(_0x50a4f8,_0x36508e,_0x261918,_0x585691,_0x3edd58){const _0x275b28=_0x4ec56b;let _0x5936e5=N(_0x36508e,_0x261918,_0x585691,_0x3edd58);if(!_0x5936e5)return null;let _0x40444c=_0x5936e5[_0x275b28(0x186)]-0x1;return F(_0x36508e,_0x5936e5[_0x275b28(0x139)]['startIndex'],_0x5936e5[_0x275b28(0x139)]['startIndex']+0x1),{'nextDocumentData':_0x50a4f8,'cursorOffset':_0x40444c};}function v(_0x19923a,_0x3750b2,_0x21c45a,_0x56625f){const _0x75a797=_0x4ec56b;if(_0x56625f!==_0x21c45a['startIndex']+0x1)return null;let _0x485c86=C(_0x3750b2,_0x21c45a),_0x41632c=_0x485c86[0x0];return!_0x41632c||j(_0x3750b2,_0x21c45a,_0x41632c)!==_0x56625f?null:_0x485c86[_0x75a797(0x14e)]===0x1?te(_0x19923a,_0x3750b2,_0x21c45a,_0x41632c):w(_0x19923a,_0x3750b2,_0x21c45a,_0x41632c);}function y(_0x5e5127,_0x1b936c){const _0x4245b0=_0x4ec56b;var _0x141337;return(_0x141337=_0x5e5127[_0x4245b0(0x15f)])==null?void 0x0:_0x141337['find'](_0x490c71=>{const _0x3d4bb7=_0x4245b0;let _0x26d7a1=M(_0x5e5127,_0x490c71);return _0x490c71[_0x3d4bb7(0x176)]===_0x3d4bb7(0x16e)&&_0x490c71[_0x3d4bb7(0x18f)]<=_0x1b936c&&_0x1b936c<=_0x26d7a1+0x2;});}function b(_0x47d186,_0x38ee05,_0xfb9838=!0x1){return{'indentStart':{'v':0x16},..._0x47d186&&_0xfb9838?{'spaceAbove':{'v':0x8}}:{}};}function x(_0x3c60dc,_0x3cab01,_0x55eacc,_0x169e37=!0x1){const _0x3cb2c2=_0x4ec56b;var _0x5da1b9;let _0x4a1aa3=((_0x5da1b9=_0x3c60dc[_0x3cb2c2(0x15b)])==null?[]:_0x5da1b9)[_0x3cb2c2(0x16c)](_0x5c5706=>_0x5c5706[_0x3cb2c2(0x18f)]>_0x3cab01&&_0x5c5706[_0x3cb2c2(0x18f)]<_0x55eacc);_0x4a1aa3[_0x3cb2c2(0x159)]((_0x32094c,_0xe0dd6f)=>{const _0x14c149=_0x3cb2c2;var _0x59aba3;_0x32094c[_0x14c149(0x15c)]={...(_0x59aba3=_0x32094c[_0x14c149(0x15c)])==null?{}:_0x59aba3,...b(_0xe0dd6f===0x0,_0xe0dd6f===_0x4a1aa3[_0x14c149(0x14e)]-0x1,_0x169e37)};});}function S(_0x21438a){const _0x42b429=_0x4ec56b;let _0x2a9dde={..._0x21438a==null?{}:_0x21438a};return delete _0x2a9dde['indentStart'],delete _0x2a9dde[_0x42b429(0x158)],delete _0x2a9dde[_0x42b429(0x165)],_0x2a9dde;}function C(_0x315691,_0x505709){const _0x4ff995=_0x4ec56b;var _0x540b6c;let _0x350f76=M(_0x315691,_0x505709);return((_0x540b6c=_0x315691[_0x4ff995(0x15b)])==null?[]:_0x540b6c)[_0x4ff995(0x16c)](_0x1b60d8=>_0x1b60d8[_0x4ff995(0x18f)]>_0x505709[_0x4ff995(0x18f)]&&_0x1b60d8[_0x4ff995(0x18f)]<_0x350f76);}function ee(_0x1c1cdd,_0x6fe3df,_0x19ec46){const _0x48f40f=_0x4ec56b;let _0x4d28c6=j(_0x1c1cdd,_0x6fe3df,_0x19ec46),_0x54e01b=_0x1c1cdd[_0x48f40f(0x13c)][_0x48f40f(0x169)](_0x4d28c6,_0x19ec46[_0x48f40f(0x18f)]);return Array[_0x48f40f(0x137)](_0x54e01b)['every'](_0xdd9ebd=>_0xdd9ebd===_0x19dcdd[_0x48f40f(0x160)]||_0xdd9ebd===_0x19dcdd['BLOCK_END']);}function te(_0x564fe4,_0x348e39,_0x2314a8,_0x10dc6f){const _0x3699d9=_0x4ec56b;var _0x2e5a45,_0x4e9613;let _0xab965c=_0x2314a8[_0x3699d9(0x18f)];F(_0x348e39,_0x2314a8[_0x3699d9(0x15d)],_0x2314a8[_0x3699d9(0x15d)]+0x1),F(_0x348e39,_0x2314a8['startIndex'],_0x2314a8[_0x3699d9(0x18f)]+0x1),_0x348e39[_0x3699d9(0x15f)]=(_0x2e5a45=_0x348e39[_0x3699d9(0x15f)])==null?void 0x0:_0x2e5a45[_0x3699d9(0x16c)](_0x231629=>_0x231629[_0x3699d9(0x13d)]!==_0x2314a8['blockId']);let _0x37d5d5=(_0x4e9613=_0x348e39[_0x3699d9(0x15b)])==null?void 0x0:_0x4e9613[_0x3699d9(0x182)](_0xba63c4=>_0xba63c4[_0x3699d9(0x18f)]===_0x10dc6f[_0x3699d9(0x18f)]-0x1);return _0x37d5d5&&(_0x37d5d5['paragraphStyle']=S(_0x37d5d5[_0x3699d9(0x15c)])),{'nextDocumentData':_0x564fe4,'cursorOffset':_0xab965c};}function w(_0xec57de,_0x56c139,_0x3cc9a4,_0x2c6176){const _0x11f937=_0x4ec56b;var _0x31d544,_0x38de57;let _0x148715=_0x2c6176[_0x11f937(0x18f)],_0x3295a9=_0x3cc9a4['startIndex'];P(_0x56c139,_0x2c6176[_0x11f937(0x18f)]+0x1,_0x19dcdd[_0x11f937(0x160)]),F(_0x56c139,_0x3cc9a4['startIndex'],_0x3cc9a4['startIndex']+0x1);let _0x3113e2=(_0x31d544=_0x56c139[_0x11f937(0x15b)])==null?void 0x0:_0x31d544[_0x11f937(0x182)](_0x29a395=>_0x29a395[_0x11f937(0x18f)]===_0x148715-0x1),_0x1cd5dc=(_0x38de57=_0x56c139[_0x11f937(0x15f)])==null?void 0x0:_0x38de57[_0x11f937(0x182)](_0x213726=>_0x213726[_0x11f937(0x13d)]===_0x3cc9a4[_0x11f937(0x13d)]);return _0x3113e2&&(_0x3113e2[_0x11f937(0x15c)]=S(_0x3113e2['paragraphStyle']),_0x1cd5dc&&(_0x1cd5dc[_0x11f937(0x18f)]=_0x3113e2[_0x11f937(0x18f)]+0x1)),_0x1cd5dc&&x(_0x56c139,_0x1cd5dc[_0x11f937(0x18f)],_0x1cd5dc['endIndex']),{'nextDocumentData':_0xec57de,'cursorOffset':_0x3295a9};}function T(_0x358843){return _0x2656d0['deepClone'](_0x358843);}function E(_0x4f082e){const _0x59b419=_0x4ec56b;if(!_0x4f082e['body'])throw Error(_0x59b419(0x188));return _0x4f082e[_0x59b419(0x15e)];}function D(_0x5ec46b,_0x3cdd8c,_0x54da6b){const _0x35886e=_0x4ec56b;if(_0x3cdd8c==null||_0x54da6b==null){let _0x146c97=ne(_0x5ec46b);return{'startOffset':_0x146c97,'endOffset':_0x146c97};}let _0x3b5018=Math['min'](_0x3cdd8c,_0x54da6b),_0x13d040=Math[_0x35886e(0x179)](_0x3cdd8c,_0x54da6b);return _0x3b5018===_0x13d040?{'startOffset':_0x3b5018,'endOffset':_0x3b5018}:k(_0x5ec46b,_0x3b5018,_0x13d040);}function ne(_0x4e606c){const _0xd0b097=_0x4ec56b;return _0x4e606c[_0xd0b097(0x13c)][_0xd0b097(0x147)](_0x19dcdd[_0xd0b097(0x17c)])?Math[_0xd0b097(0x179)](0x0,_0x4e606c[_0xd0b097(0x13c)][_0xd0b097(0x14e)]-0x1):_0x4e606c['dataStream'][_0xd0b097(0x14e)];}function O(_0x14387c,_0x312104,_0x5bf10){const _0x1c8a85=_0x4ec56b;var _0x3bb10d;let _0x2d9a57=Math[_0x1c8a85(0x14d)](_0x312104,_0x5bf10),_0x25d5da=Math[_0x1c8a85(0x179)](_0x312104,_0x5bf10);return!!((_0x3bb10d=_0x14387c[_0x1c8a85(0x157)])!=null&&_0x3bb10d[_0x1c8a85(0x156)](_0x40e87d=>_0x2d9a57>_0x40e87d[_0x1c8a85(0x18f)]&&_0x2d9a57<_0x40e87d['endIndex']||_0x25d5da>_0x40e87d[_0x1c8a85(0x18f)]&&_0x25d5da<_0x40e87d['endIndex']||_0x2d9a57<=_0x40e87d[_0x1c8a85(0x18f)]&&_0x25d5da>=_0x40e87d[_0x1c8a85(0x15d)]));}function k(_0x1ad457,_0x1612ab,_0x2b65a2){const _0x3f095f=_0x4ec56b;var _0x287b7f,_0x1b2c74;let _0x4936fc=[...(_0x287b7f=_0x1ad457['paragraphs'])==null?[]:_0x287b7f][_0x3f095f(0x18d)]((_0x1990da,_0x59a27c)=>_0x1990da[_0x3f095f(0x18f)]-_0x59a27c[_0x3f095f(0x18f)]),_0x2f728c=_0x4936fc['find']((_0x2c078d,_0xe3e384)=>(_0xe3e384===0x0?0x0:_0x4936fc[_0xe3e384-0x1]['startIndex']+0x1)<=_0x1612ab&&_0x1612ab<=_0x2c078d[_0x3f095f(0x18f)]),_0x3196e9=(_0x1b2c74=_0x4936fc['find'](_0x4e00d5=>_0x4e00d5[_0x3f095f(0x18f)]>=_0x2b65a2-0x1))==null?_0x4936fc[_0x4936fc[_0x3f095f(0x14e)]-0x1]:_0x1b2c74;return{'startOffset':_0x2f728c?A(_0x4936fc,_0x2f728c):_0x1612ab,'endOffset':_0x3196e9?_0x3196e9[_0x3f095f(0x18f)]+0x1:_0x2b65a2};}function A(_0x58e367,_0x7c854){const _0x2cad3d=_0x4ec56b;let _0x15d2b=_0x58e367[_0x2cad3d(0x140)](_0x7c854);return _0x15d2b>0x0?_0x58e367[_0x15d2b-0x1]['startIndex']+0x1:0x0;}function j(_0x407afc,_0x1b8f9b,_0x3fb81c){const _0x3bec5f=_0x4ec56b;var _0xd73003;return Math[_0x3bec5f(0x179)](A((_0xd73003=_0x407afc[_0x3bec5f(0x15b)])==null?[]:_0xd73003,_0x3fb81c),_0x1b8f9b[_0x3bec5f(0x18f)]+0x1);}function M(_0x31a25b,_0x3480dd){const _0x26814e=_0x4ec56b;return _0x31a25b['dataStream'][_0x3480dd[_0x26814e(0x15d)]]===_0x19dcdd[_0x26814e(0x184)]?_0x3480dd[_0x26814e(0x15d)]:_0x31a25b[_0x26814e(0x13c)][_0x3480dd[_0x26814e(0x15d)]+0x1]===_0x19dcdd[_0x26814e(0x184)]?_0x3480dd[_0x26814e(0x15d)]+0x1:_0x3480dd[_0x26814e(0x15d)];}function N(_0x203826,_0x466bad,_0x3c2743,_0x455494){const _0x534ac1=_0x4ec56b;var _0x202bac,_0x1b0f5d;let _0x10da81=M(_0x203826,_0x466bad),_0x35f403=((_0x202bac=_0x203826[_0x534ac1(0x15b)])==null?[]:_0x202bac)[_0x534ac1(0x182)](_0x1caec4=>_0x1caec4[_0x534ac1(0x18f)]===_0x10da81+0x1);if(!_0x35f403||_0x455494!=null&&_0x35f403[_0x534ac1(0x18f)]!==_0x455494||_0x3c2743<_0x10da81||_0x3c2743>_0x35f403[_0x534ac1(0x18f)]+0x1||_0x203826['dataStream'][_0x35f403['startIndex']]!==_0x19dcdd['PARAGRAPH'])return null;let _0x18bb9d=A((_0x1b0f5d=_0x203826[_0x534ac1(0x15b)])==null?[]:_0x1b0f5d,_0x35f403),_0x31191d=_0x203826[_0x534ac1(0x13c)][_0x534ac1(0x169)](_0x18bb9d,_0x35f403[_0x534ac1(0x18f)]);return Array[_0x534ac1(0x137)](_0x31191d)[_0x534ac1(0x164)](_0x43bfe2=>_0x43bfe2===_0x19dcdd['BLOCK_END'])?{'paragraph':_0x35f403,'endTokenOffset':_0x10da81}:null;}function P(_0x1e9264,_0x33c635,_0x48ad7a,_0x5a1267={}){const _0x562d38=_0x4ec56b;var _0x10928a,_0x585551;if(_0x48ad7a){if(_0x1e9264[_0x562d38(0x13c)]=''+_0x1e9264[_0x562d38(0x13c)][_0x562d38(0x169)](0x0,_0x33c635)+_0x48ad7a+_0x1e9264[_0x562d38(0x13c)][_0x562d38(0x169)](_0x33c635),I(_0x1e9264,_0x33c635,_0x48ad7a[_0x562d38(0x14e)]),(_0x10928a=_0x5a1267['paragraphs'])!=null&&_0x10928a[_0x562d38(0x14e)]){var _0x28c5d2;_0x1e9264[_0x562d38(0x15b)]=[...(_0x28c5d2=_0x1e9264[_0x562d38(0x15b)])==null?[]:_0x28c5d2,..._0x5a1267[_0x562d38(0x15b)]['map'](_0x2b931c=>({..._0x2b931c,'startIndex':_0x2b931c[_0x562d38(0x18f)]+_0x33c635}))]['sort']((_0x19c918,_0x16a6d4)=>_0x19c918[_0x562d38(0x18f)]-_0x16a6d4[_0x562d38(0x18f)]);}if((_0x585551=_0x5a1267[_0x562d38(0x15f)])!=null&&_0x585551[_0x562d38(0x14e)]){var _0x12d9d6;_0x1e9264[_0x562d38(0x15f)]=[...(_0x12d9d6=_0x1e9264[_0x562d38(0x15f)])==null?[]:_0x12d9d6,..._0x5a1267['blockRanges'][_0x562d38(0x13a)](_0x2fc7dc=>({..._0x2fc7dc,'startIndex':_0x2fc7dc[_0x562d38(0x18f)]+_0x33c635,'endIndex':_0x2fc7dc['endIndex']+_0x33c635}))][_0x562d38(0x18d)]((_0x525c87,_0x113708)=>_0x525c87['startIndex']-_0x113708['startIndex']);}}}function F(_0x5f4734,_0x354bb4,_0x106dd2){const _0x1ee0b3=_0x4ec56b;let _0x3a362f=_0x106dd2-_0x354bb4;_0x5f4734['dataStream']=''+_0x5f4734[_0x1ee0b3(0x13c)][_0x1ee0b3(0x169)](0x0,_0x354bb4)+_0x5f4734[_0x1ee0b3(0x13c)][_0x1ee0b3(0x169)](_0x106dd2),re(_0x5f4734,_0x354bb4,_0x3a362f);}function I(_0x320863,_0xe279a0,_0x205bcd){const _0x2d8332=_0x4ec56b;_0x320863['paragraphs']=L(_0x320863[_0x2d8332(0x15b)],_0xe279a0,_0x205bcd),_0x320863[_0x2d8332(0x18b)]=L(_0x320863[_0x2d8332(0x18b)],_0xe279a0,_0x205bcd),_0x320863[_0x2d8332(0x187)]=L(_0x320863['customBlocks'],_0xe279a0,_0x205bcd),_0x320863['textRuns']=ie(_0x320863['textRuns'],_0xe279a0,_0x205bcd),_0x320863[_0x2d8332(0x157)]=z(_0x320863['tables'],_0xe279a0,_0x205bcd),_0x320863[_0x2d8332(0x135)]=z(_0x320863[_0x2d8332(0x135)],_0xe279a0,_0x205bcd),_0x320863[_0x2d8332(0x14f)]=z(_0x320863[_0x2d8332(0x14f)],_0xe279a0,_0x205bcd),_0x320863[_0x2d8332(0x15f)]=z(_0x320863['blockRanges'],_0xe279a0,_0x205bcd);}function re(_0x5b4688,_0x55893a,_0x4dae1d){const _0x3aba01=_0x4ec56b;var _0x5517ad,_0x54582b;_0x5b4688[_0x3aba01(0x15b)]=R(_0x5b4688['paragraphs'],_0x55893a,_0x4dae1d),_0x5b4688[_0x3aba01(0x18b)]=R(_0x5b4688[_0x3aba01(0x18b)],_0x55893a,_0x4dae1d),_0x5b4688[_0x3aba01(0x187)]=R(_0x5b4688[_0x3aba01(0x187)],_0x55893a,_0x4dae1d),_0x5b4688['textRuns']=(_0x5517ad=B((_0x54582b=_0x5b4688[_0x3aba01(0x177)])==null?void 0x0:_0x54582b['map'](_0x5118da=>({..._0x5118da,'startIndex':_0x5118da['st'],'endIndex':_0x5118da['ed']})),_0x55893a,_0x4dae1d))==null?void 0x0:_0x5517ad['map'](_0x2cd889=>{let {startIndex:_0xc71307,endIndex:_0x58a6f2,..._0x1f9178}=_0x2cd889;return{..._0x1f9178,'st':_0xc71307,'ed':_0x58a6f2};}),_0x5b4688[_0x3aba01(0x157)]=B(_0x5b4688['tables'],_0x55893a,_0x4dae1d),_0x5b4688[_0x3aba01(0x135)]=B(_0x5b4688[_0x3aba01(0x135)],_0x55893a,_0x4dae1d),_0x5b4688[_0x3aba01(0x14f)]=B(_0x5b4688['customDecorations'],_0x55893a,_0x4dae1d),_0x5b4688[_0x3aba01(0x15f)]=B(_0x5b4688[_0x3aba01(0x15f)],_0x55893a,_0x4dae1d);}function L(_0x55a0d9,_0x276c14,_0x100b48){const _0x3dd542=_0x4ec56b;return _0x55a0d9==null?void 0x0:_0x55a0d9['map'](_0x319555=>_0x319555['startIndex']>=_0x276c14?{..._0x319555,'startIndex':_0x319555[_0x3dd542(0x18f)]+_0x100b48}:_0x319555);}function R(_0x47efe2,_0x577eca,_0x245fc8){const _0x2c2bd8=_0x4ec56b;let _0xe5afcb=_0x577eca+_0x245fc8;return _0x47efe2==null?void 0x0:_0x47efe2[_0x2c2bd8(0x13a)](_0x649daa=>_0x649daa[_0x2c2bd8(0x18f)]>=_0x577eca&&_0x649daa[_0x2c2bd8(0x18f)]<_0xe5afcb?null:_0x649daa['startIndex']>=_0xe5afcb?{..._0x649daa,'startIndex':_0x649daa['startIndex']-_0x245fc8}:_0x649daa)['filter'](_0x24a136=>_0x24a136!=null);}function ie(_0x4c41fb,_0x5ef08b,_0x264907){const _0x2fc3f0=_0x4ec56b;return _0x4c41fb==null?void 0x0:_0x4c41fb[_0x2fc3f0(0x13a)](_0x29e219=>_0x29e219['st']>=_0x5ef08b?{..._0x29e219,'st':_0x29e219['st']+_0x264907,'ed':_0x29e219['ed']+_0x264907}:_0x29e219['ed']>_0x5ef08b?{..._0x29e219,'ed':_0x29e219['ed']+_0x264907}:_0x29e219);}function z(_0xb3af1d,_0x5ce716,_0x558b27){const _0x36242a=_0x4ec56b;return _0xb3af1d==null?void 0x0:_0xb3af1d[_0x36242a(0x13a)](_0x2cc364=>_0x2cc364[_0x36242a(0x18f)]>=_0x5ce716?{..._0x2cc364,'startIndex':_0x2cc364[_0x36242a(0x18f)]+_0x558b27,'endIndex':_0x2cc364[_0x36242a(0x15d)]+_0x558b27}:_0x2cc364['endIndex']>=_0x5ce716?{..._0x2cc364,'endIndex':_0x2cc364[_0x36242a(0x15d)]+_0x558b27}:_0x2cc364);}function B(_0x186fca,_0x3768ab,_0x50a099){const _0x43ad38=_0x4ec56b;let _0xa7280b=_0x3768ab+_0x50a099;return _0x186fca==null?void 0x0:_0x186fca[_0x43ad38(0x13a)](_0xdb57a1=>_0xdb57a1['startIndex']>=_0x3768ab&&_0xdb57a1[_0x43ad38(0x15d)]<_0xa7280b?null:_0xdb57a1[_0x43ad38(0x18f)]>=_0xa7280b?{..._0xdb57a1,'startIndex':_0xdb57a1[_0x43ad38(0x18f)]-_0x50a099,'endIndex':_0xdb57a1[_0x43ad38(0x15d)]-_0x50a099}:_0xdb57a1[_0x43ad38(0x15d)]>=_0x3768ab?{..._0xdb57a1,'startIndex':_0xdb57a1[_0x43ad38(0x18f)]<_0x3768ab?_0xdb57a1[_0x43ad38(0x18f)]:_0x3768ab,'endIndex':Math[_0x43ad38(0x179)](_0x3768ab,_0xdb57a1[_0x43ad38(0x15d)]-_0x50a099)}:_0xdb57a1)['filter'](_0x5d6cdd=>_0x5d6cdd!=null);}function V(_0x1329ba,_0x4f25ba,_0x1c00a,_0x1ade61){const _0x1ee354=_0x4ec56b;_0x1329ba==null||_0x1329ba[_0x1ee354(0x159)](_0x23d9ed=>{const _0x4c3d29=_0x1ee354;_0x23d9ed[_0x4c3d29(0x18f)]>=_0x4f25ba&&_0x23d9ed[_0x4c3d29(0x18f)]<_0x1c00a&&(_0x23d9ed['startIndex']+=_0x1ade61);});}function H(_0x1c6447,_0x4c33c4,_0x527484,_0x3c45d5){const _0x2aea51=_0x4ec56b;_0x1c6447==null||_0x1c6447[_0x2aea51(0x159)](_0x5d7b97=>{_0x5d7b97['st']>=_0x4c33c4&&_0x5d7b97['st']<_0x527484?(_0x5d7b97['st']+=_0x3c45d5,_0x5d7b97['ed']+=_0x3c45d5):_0x5d7b97['ed']>_0x4c33c4&&_0x5d7b97['ed']<_0x527484&&(_0x5d7b97['ed']+=_0x3c45d5);});}function U(_0x1e1cb3,_0x2c3eb7,_0x5a696a,_0x127361){const _0xa808cb=_0x4ec56b;_0x1e1cb3==null||_0x1e1cb3[_0xa808cb(0x159)](_0x488e27=>{const _0x33960a=_0xa808cb;_0x488e27[_0x33960a(0x18f)]>=_0x2c3eb7&&_0x488e27[_0x33960a(0x18f)]<_0x5a696a?(_0x488e27[_0x33960a(0x18f)]+=_0x127361,_0x488e27['endIndex']+=_0x127361):_0x488e27[_0x33960a(0x15d)]>_0x2c3eb7&&_0x488e27[_0x33960a(0x15d)]<_0x5a696a&&(_0x488e27['endIndex']+=_0x127361);});}_0x5b2109['COMMAND'];const W={'id':'docs-quote.command.insert','type':_0x5b2109[_0x4ec56b(0x152)],'handler':(_0x4850ad,_0x4e23f2)=>{const _0x7c4852=_0x4ec56b;var _0x371a4c,_0x19917c,_0x59d42c;let _0x42eea0=q(_0x4850ad,_0x4e23f2==null?void 0x0:_0x4e23f2[_0x7c4852(0x181)]);if(!_0x42eea0)return!0x1;let _0x59956e=J(_0x4850ad),_0x16c8b0=f({'blockId':(_0x371a4c=_0x4e23f2==null?void 0x0:_0x4e23f2[_0x7c4852(0x13d)])==null?_0x31817e(0x6):_0x371a4c,'documentData':_0x42eea0[_0x7c4852(0x151)],'endOffset':(_0x19917c=_0x4e23f2==null?void 0x0:_0x4e23f2[_0x7c4852(0x14a)])==null?_0x59956e==null?void 0x0:_0x59956e[_0x7c4852(0x14a)]:_0x19917c,'startOffset':(_0x59d42c=_0x4e23f2==null?void 0x0:_0x4e23f2[_0x7c4852(0x149)])==null?_0x59956e==null?void 0x0:_0x59956e[_0x7c4852(0x149)]:_0x59d42c});return X(_0x42eea0[_0x7c4852(0x143)],_0x42eea0[_0x7c4852(0x181)],_0x42eea0['previousDocumentData'],_0x16c8b0[_0x7c4852(0x16a)],_0x16c8b0[_0x7c4852(0x183)]);}},G={'id':_0x4ec56b(0x170),'type':_0x5b2109['COMMAND'],'handler':(_0x33786c,_0x28f8a4)=>{const _0x4dfac9=_0x4ec56b;var _0x282a9a,_0x2d673d;let _0x290c16=q(_0x33786c,_0x28f8a4==null?void 0x0:_0x28f8a4[_0x4dfac9(0x181)]);if(!_0x290c16)return!0x1;let _0x30f4f3=(_0x282a9a=_0x28f8a4==null?void 0x0:_0x28f8a4[_0x4dfac9(0x183)])==null?(_0x2d673d=J(_0x33786c))==null?void 0x0:_0x2d673d[_0x4dfac9(0x149)]:_0x282a9a;if(_0x30f4f3==null)return!0x1;let _0x7e4c45=h({'cursorOffset':_0x30f4f3,'documentData':_0x290c16[_0x4dfac9(0x151)]});return _0x7e4c45?X(_0x290c16['commandService'],_0x290c16['unitId'],_0x290c16[_0x4dfac9(0x151)],_0x7e4c45['nextDocumentData'],_0x7e4c45[_0x4dfac9(0x183)]):!0x1;}},K={'id':'docs-quote.command.cancel-empty-paragraph','type':_0x5b2109['COMMAND'],'handler':(_0x5170c9,_0x579836)=>{const _0x30648e=_0x4ec56b;var _0x66be26,_0x4140a4;let _0x161a2c=q(_0x5170c9,_0x579836==null?void 0x0:_0x579836['unitId']);if(!_0x161a2c)return!0x1;let _0x23cad2=(_0x66be26=_0x579836==null?void 0x0:_0x579836[_0x30648e(0x183)])==null?(_0x4140a4=J(_0x5170c9))==null?void 0x0:_0x4140a4[_0x30648e(0x149)]:_0x66be26;if(_0x23cad2==null)return!0x1;let _0x3a5889=g({'cursorOffset':_0x23cad2,'documentData':_0x161a2c[_0x30648e(0x151)],'paragraphStartIndex':_0x579836==null?void 0x0:_0x579836[_0x30648e(0x173)]});return _0x3a5889?X(_0x161a2c['commandService'],_0x161a2c[_0x30648e(0x181)],_0x161a2c[_0x30648e(0x151)],_0x3a5889[_0x30648e(0x16a)],_0x3a5889[_0x30648e(0x183)]):!0x1;}};function q(_0x5c8cf9,_0x22356f){const _0x257f3c=_0x4ec56b;let _0x434c04=_0x5c8cf9['get'](_0x6ec290),_0x496272=_0x22356f?_0x434c04['getUniverDocInstance'](_0x22356f):_0x434c04[_0x257f3c(0x14b)](_0x329643['UNIVER_DOC']);return _0x496272?{'commandService':_0x5c8cf9['get'](_0x1d2fde),'previousDocumentData':_0x496272[_0x257f3c(0x144)](),'unitId':_0x496272[_0x257f3c(0x13e)]()}:null;}function J(_0x4db161){const _0x55ed79=_0x4ec56b;var _0x1a638d;return(_0x1a638d=_0x4db161[_0x55ed79(0x178)](_0x13b143)[_0x55ed79(0x136)]())==null?void 0x0:_0x1a638d[0x0];}function _0x5043(){const _0x2fa957=['BLOCK_END','1627728MeKssq','endTokenOffset','customBlocks','Document\x20body\x20is\x20required','join','2buJiCq','sectionBreaks','reduce','sort','docs-quote-','startIndex','assign','getQuotes','describe','customRanges','getTextRanges','from','indentEnd','paragraph','map','getId','dataStream','blockId','getUnitId','getText','indexOf','getInstance','11wMzCYf','commandService','getSnapshot','includes','444yoZQNW','endsWith','3069096rEuZjT','startOffset','endOffset','getCurrentUnitOfType','5FQCyiy','min','length','customDecorations','compose','previousDocumentData','COMMAND','diffValue','findQuotes','now','some','tables','spaceAbove','forEach','1303336YXCQjX','paragraphs','paragraphStyle','endIndex','body','blockRanges','BLOCK_START','43999YwArlf','text','707ChpvbN','every','spaceBelow','string','cancelEmptyParagraph','_getBlockRange','slice','nextDocumentData','getDocumentData','filter','PARAGRAPH','quote','9rMNPsQ','docs-quote.command.exit','documentData','_injector','paragraphStartIndex','2253570MYIucF','replace','blockType','textRuns','get','max','getRange','_runtime','SECTION_BREAK','prototype','textStyle','syncExecuteCommand','1615288HciDFp','unitId','find','cursorOffset'];_0x5043=function(){return _0x2fa957;};return _0x5043();}function ae(_0x4c6b57,_0x3a63ef){const _0x401921=_0x4ec56b;var _0xf84d34,_0x4d1784,_0x2a63bf,_0x164387,_0x1097f1,_0x389b4f,_0x4317b2,_0x219eff,_0x24312f,_0x548d80,_0x4e250b,_0x2c7e65,_0x712bb1,_0x2e2685,_0x5cce4d,_0x45e853,_0x5545d6,_0x1699a9;let _0xe7553b=_0x4b7bdb[_0x401921(0x141)]();return[Y(_0xe7553b,[_0x401921(0x15e),'dataStream'],(_0xf84d34=_0x4c6b57[_0x401921(0x15e)])==null?void 0x0:_0xf84d34[_0x401921(0x13c)],(_0x4d1784=_0x3a63ef[_0x401921(0x15e)])==null?void 0x0:_0x4d1784[_0x401921(0x13c)]),Y(_0xe7553b,[_0x401921(0x15e),_0x401921(0x15b)],(_0x2a63bf=_0x4c6b57['body'])==null?void 0x0:_0x2a63bf[_0x401921(0x15b)],(_0x164387=_0x3a63ef[_0x401921(0x15e)])==null?void 0x0:_0x164387[_0x401921(0x15b)]),Y(_0xe7553b,[_0x401921(0x15e),_0x401921(0x18b)],(_0x1097f1=_0x4c6b57[_0x401921(0x15e)])==null?void 0x0:_0x1097f1[_0x401921(0x18b)],(_0x389b4f=_0x3a63ef[_0x401921(0x15e)])==null?void 0x0:_0x389b4f[_0x401921(0x18b)]),Y(_0xe7553b,[_0x401921(0x15e),_0x401921(0x177)],(_0x4317b2=_0x4c6b57[_0x401921(0x15e)])==null?void 0x0:_0x4317b2['textRuns'],(_0x219eff=_0x3a63ef[_0x401921(0x15e)])==null?void 0x0:_0x219eff[_0x401921(0x177)]),Y(_0xe7553b,[_0x401921(0x15e),_0x401921(0x187)],(_0x24312f=_0x4c6b57['body'])==null?void 0x0:_0x24312f['customBlocks'],(_0x548d80=_0x3a63ef[_0x401921(0x15e)])==null?void 0x0:_0x548d80[_0x401921(0x187)]),Y(_0xe7553b,[_0x401921(0x15e),_0x401921(0x135)],(_0x4e250b=_0x4c6b57[_0x401921(0x15e)])==null?void 0x0:_0x4e250b[_0x401921(0x135)],(_0x2c7e65=_0x3a63ef[_0x401921(0x15e)])==null?void 0x0:_0x2c7e65['customRanges']),Y(_0xe7553b,[_0x401921(0x15e),_0x401921(0x14f)],(_0x712bb1=_0x4c6b57[_0x401921(0x15e)])==null?void 0x0:_0x712bb1[_0x401921(0x14f)],(_0x2e2685=_0x3a63ef[_0x401921(0x15e)])==null?void 0x0:_0x2e2685['customDecorations']),Y(_0xe7553b,[_0x401921(0x15e),_0x401921(0x157)],(_0x5cce4d=_0x4c6b57['body'])==null?void 0x0:_0x5cce4d[_0x401921(0x157)],(_0x45e853=_0x3a63ef[_0x401921(0x15e)])==null?void 0x0:_0x45e853[_0x401921(0x157)]),Y(_0xe7553b,['body','blockRanges'],(_0x5545d6=_0x4c6b57[_0x401921(0x15e)])==null?void 0x0:_0x5545d6[_0x401921(0x15f)],(_0x1699a9=_0x3a63ef[_0x401921(0x15e)])==null?void 0x0:_0x1699a9[_0x401921(0x15f)])]['filter'](Boolean)[_0x401921(0x18c)]((_0x572a5a,_0x5e59db)=>_0x4b7bdb[_0x401921(0x150)](_0x572a5a,_0x5e59db),null);}function Y(_0x680c01,_0x11cb52,_0x27488b,_0x3c7838){const _0xe45079=_0x4ec56b;return _0x2656d0[_0xe45079(0x153)](_0x27488b,_0x3c7838)?null:_0x680c01['replaceOp'](_0x11cb52,_0x27488b,_0x3c7838);}function X(_0x1849fc,_0x122d4d,_0x329007,_0x527bac,_0x5624a8){const _0x418d14=_0x4ec56b;let _0x5902f5=ae(_0x329007,_0x527bac);return _0x5902f5?!!_0x1849fc[_0x418d14(0x17f)](_0x24f978['id'],{'unitId':_0x122d4d,'actions':_0x5902f5,'textRanges':[{'startOffset':_0x5624a8,'endOffset':_0x5624a8,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}var Z=class{constructor(_0x32500f){this['_runtime']=_0x32500f;}[_0x4ec56b(0x13b)](){const _0x125e29=_0x4ec56b;return this[_0x125e29(0x17b)][_0x125e29(0x13d)];}[_0x4ec56b(0x17a)](){const _0x58ffbc=_0x4ec56b;let _0x538294=this[_0x58ffbc(0x168)]();return _0x538294?{'blockId':_0x538294[_0x58ffbc(0x13d)],'endIndex':_0x538294[_0x58ffbc(0x15d)],'startIndex':_0x538294[_0x58ffbc(0x18f)]}:null;}[_0x4ec56b(0x13f)](){const _0x40bc5a=_0x4ec56b;var _0x5ec8a8;let _0x9ea295=this[_0x40bc5a(0x168)](),_0x4b4264=(_0x5ec8a8=this[_0x40bc5a(0x17b)]['getDocumentData']()[_0x40bc5a(0x15e)])==null?void 0x0:_0x5ec8a8[_0x40bc5a(0x13c)];return!_0x9ea295||!_0x4b4264?'':oe(_0x4b4264['slice'](_0x9ea295[_0x40bc5a(0x18f)]+0x1,_0x9ea295[_0x40bc5a(0x15d)]));}[_0x4ec56b(0x134)](){const _0x98fc5f=_0x4ec56b;let _0x2799d3=this[_0x98fc5f(0x17a)]();return _0x2799d3?{..._0x2799d3,'text':this[_0x98fc5f(0x13f)](),'type':'quote'}:null;}['exit'](_0x25bdc8){const _0x206489=_0x4ec56b;var _0x4b9e77;return!!((_0x4b9e77=this[_0x206489(0x17b)][_0x206489(0x143)])!=null&&_0x4b9e77['syncExecuteCommand'](G['id'],{'cursorOffset':_0x25bdc8,'unitId':this[_0x206489(0x17b)][_0x206489(0x181)]}));}[_0x4ec56b(0x167)](_0x32c27c={}){const _0x4e6159=_0x4ec56b;var _0x3710f4;return!!((_0x3710f4=this[_0x4e6159(0x17b)][_0x4e6159(0x143)])!=null&&_0x3710f4[_0x4e6159(0x17f)](K['id'],{..._0x32c27c,'unitId':this['_runtime'][_0x4e6159(0x181)]}));}[_0x4ec56b(0x168)](){const _0x45e1ce=_0x4ec56b;var _0xf02385;return(_0xf02385=this[_0x45e1ce(0x17b)][_0x45e1ce(0x16b)]()[_0x45e1ce(0x15e)])==null||(_0xf02385=_0xf02385[_0x45e1ce(0x15f)])==null?void 0x0:_0xf02385['find'](_0x419ea8=>_0x419ea8[_0x45e1ce(0x13d)]===this['_runtime'][_0x45e1ce(0x13d)]&&_0x419ea8[_0x45e1ce(0x176)]==='quote');}};function oe(_0xa0be95){const _0x436ebf=_0x4ec56b;return Array[_0x436ebf(0x137)](_0xa0be95)[_0x436ebf(0x13a)](_0x6230ea=>_0x6230ea===_0x19dcdd['PARAGRAPH']?'\x0a':_0x6230ea)[_0x436ebf(0x16c)](_0x220230=>_0x220230!==_0x19dcdd[_0x436ebf(0x160)]&&_0x220230!==_0x19dcdd[_0x436ebf(0x184)]&&_0x220230!==_0x19dcdd[_0x436ebf(0x17c)])['join']('')[_0x436ebf(0x175)](/\n$/,'');}Object[_0x4ec56b(0x190)](_0x486f68[_0x4ec56b(0x17d)],{'getQuotes'(){const _0x482857=_0x4ec56b;var _0x2a9f7b,_0x28c182;return(_0x2a9f7b=(_0x28c182=this[_0x482857(0x144)]()[_0x482857(0x15e)])==null||(_0x28c182=_0x28c182[_0x482857(0x15f)])==null?void 0x0:_0x28c182['filter'](_0x4c598a=>_0x4c598a[_0x482857(0x176)]===_0x482857(0x16e))[_0x482857(0x13a)](_0x59e328=>Q(this,_0x59e328[_0x482857(0x13d)])))==null?[]:_0x2a9f7b;},'getQuote'(_0x1069d7){const _0x1ff7c3=_0x4ec56b;var _0x4c7f6c;return!((_0x4c7f6c=this[_0x1ff7c3(0x144)]()[_0x1ff7c3(0x15e)])==null||(_0x4c7f6c=_0x4c7f6c[_0x1ff7c3(0x15f)])==null)&&_0x4c7f6c[_0x1ff7c3(0x156)](_0x39c973=>_0x39c973[_0x1ff7c3(0x13d)]===_0x1069d7&&_0x39c973[_0x1ff7c3(0x176)]==='quote')?Q(this,_0x1069d7):null;},'getQuoteAt'(_0x3779ee){const _0x4fefce=_0x4ec56b;var _0x483971;let _0x4b6cc2=(_0x483971=this[_0x4fefce(0x144)]()[_0x4fefce(0x15e)])==null||(_0x483971=_0x483971[_0x4fefce(0x15f)])==null||(_0x483971=_0x483971[_0x4fefce(0x182)](_0x1862df=>_0x1862df[_0x4fefce(0x176)]==='quote'&&_0x1862df[_0x4fefce(0x18f)]<=_0x3779ee&&_0x3779ee<=_0x1862df[_0x4fefce(0x15d)]))==null?void 0x0:_0x483971[_0x4fefce(0x13d)];return _0x4b6cc2?Q(this,_0x4b6cc2):null;},'findQuoteByText'(_0xfaedfe){const _0x103abb=_0x4ec56b;var _0x436e29;return(_0x436e29=this[_0x103abb(0x154)](_0xfaedfe)[0x0])==null?null:_0x436e29;},'findQuotes'(_0x177377){const _0x27fc6e=_0x4ec56b;let _0x191160=typeof _0x177377==_0x27fc6e(0x166)?{'text':_0x177377}:_0x177377;return this[_0x27fc6e(0x191)]()[_0x27fc6e(0x16c)](_0x3bc302=>!(_0x191160[_0x27fc6e(0x13d)]&&_0x3bc302[_0x27fc6e(0x13b)]()!==_0x191160['blockId']||_0x191160['text']&&!_0x3bc302[_0x27fc6e(0x13f)]()[_0x27fc6e(0x145)](_0x191160[_0x27fc6e(0x162)])));},'insertQuote'(_0x2c717d={}){const _0x2aeca5=_0x4ec56b;var _0xdc4e5,_0xa7f17d;let _0x2dc5ad=(_0xdc4e5=_0x2c717d[_0x2aeca5(0x13d)])==null?_0x2aeca5(0x18e)+Date[_0x2aeca5(0x155)]():_0xdc4e5;return(_0xa7f17d=$(this))!=null&&_0xa7f17d[_0x2aeca5(0x17f)](W['id'],{..._0x2c717d,'blockId':_0x2dc5ad,'unitId':this[_0x2aeca5(0x13b)]()})?Q(this,_0x2dc5ad):null;},'exitQuote'(_0x151231){const _0x32dec7=_0x4ec56b;var _0x8e1cf7;return!!((_0x8e1cf7=$(this))!=null&&_0x8e1cf7[_0x32dec7(0x17f)](G['id'],{'cursorOffset':_0x151231,'unitId':this[_0x32dec7(0x13b)]()}));},'cancelEmptyQuoteParagraph'(_0x69876b={}){const _0x4efcbc=_0x4ec56b;var _0x5c2a3d;return!!((_0x5c2a3d=$(this))!=null&&_0x5c2a3d[_0x4efcbc(0x17f)](K['id'],{..._0x69876b,'unitId':this['getId']()}));}});function Q(_0x118a8b,_0x5bfe91){return new Z({'blockId':_0x5bfe91,'commandService':$(_0x118a8b),'getDocumentData':()=>_0x118a8b['getSnapshot'](),'unitId':_0x118a8b['getId']()});}function $(_0x1983c5){const _0x8fd9c7=_0x4ec56b;var _0x59263f,_0x17499b;let _0x7706ac=_0x1983c5;return(_0x59263f=_0x7706ac['_commandService'])==null?(_0x17499b=_0x7706ac[_0x8fd9c7(0x172)])==null?void 0x0:_0x17499b[_0x8fd9c7(0x178)](_0x1d2fde):_0x59263f;}export{Z as FDocsQuote};
|
package/lib/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x941233=_0x4fb1;(function(_0x900f2d,_0x36d532){const _0x2d71c4=_0x4fb1,_0x4d74fd=_0x900f2d();while(!![]){try{const _0x30c6c1=-parseInt(_0x2d71c4(0x216))/0x1+parseInt(_0x2d71c4(0x22b))/0x2+-parseInt(_0x2d71c4(0x211))/0x3+-parseInt(_0x2d71c4(0x227))/0x4*(-parseInt(_0x2d71c4(0x242))/0x5)+-parseInt(_0x2d71c4(0x21d))/0x6+parseInt(_0x2d71c4(0x228))/0x7+-parseInt(_0x2d71c4(0x226))/0x8;if(_0x30c6c1===_0x36d532)break;else _0x4d74fd['push'](_0x4d74fd['shift']());}catch(_0x73c6de){_0x4d74fd['push'](_0x4d74fd['shift']());}}}(_0x176c,0xd3647));import{BuildTextUtils as _0x5af6e9,CommandType as _0xa186f,DataStreamTreeTokenType as _0x46a8a8,DependentOn as _0x35d418,ICommandService as _0x46f782,IConfigService as _0x2602f8,IUniverInstanceService as _0x3831f6,Inject as _0x4c1005,Injector as _0x2ea91f,JSONX as _0xd81bba,Plugin as _0x491f0b,Tools as _0x4f30da,UniverInstanceType as _0x50a4b8,generateRandomId as _0x2ea456,merge as _0x50aeae}from'@univerjs/core';import{DocSelectionManagerService as _0x2a33a2,RichTextEditingMutation as _0x40520e,UniverDocsPlugin as _0x46cb6f}from'@univerjs/docs';import{DocContentInsertService as _0x2fe867}from'@univerjs/docs-ui';import{UniverLicensePlugin as _0x2bcd2a}from'@univerjs-pro/license';const b='DOCS_QUOTE_PLUGIN',x=_0x941233(0x1f5);function ee(_0x2c9452){const _0x1b36bf=_0x941233;var _0x50eba5,_0x59315e,_0x294168;let _0x112a95=k(_0x2c9452[_0x1b36bf(0x1f7)]),_0x5aa94f=A(_0x112a95),_0x3ce6a9=te(_0x2c9452[_0x1b36bf(0x21f)],_0x2c9452[_0x1b36bf(0x24c)]),_0x1e362f=_0x3ce6a9?(_0x50eba5=_0x5aa94f[_0x1b36bf(0x209)])==null?void 0x0:_0x50eba5[_0x1b36bf(0x22f)](_0x472989=>_0x472989[_0x1b36bf(0x20a)]===_0x3ce6a9['startOffset']&&_0x472989[_0x1b36bf(0x20b)]+0x1===_0x3ce6a9['endOffset']):void 0x0,{startOffset:_0x4d7b93,endOffset:_0x42d279}=_0x1e362f?_0x3ce6a9:le(_0x5aa94f,_0x2c9452[_0x1b36bf(0x21f)],_0x2c9452[_0x1b36bf(0x24c)]),_0x43b5ba=de(_0x5aa94f,_0x4d7b93,_0x42d279),_0x4f8aca=(_0x59315e=_0x1e362f==null?void 0x0:_0x1e362f['blockId'])==null?_0x2c9452['blockId']:_0x59315e;if(_0x1e362f)return _0x1e362f['blockType']=x,ne(_0x5aa94f,_0x4d7b93,_0x42d279),E(_0x5aa94f,_0x4d7b93,_0x42d279,_0x43b5ba),{'nextDocumentData':_0x112a95,'cursorOffset':_0x4d7b93+0x1};if(_0x4d7b93===_0x42d279){let _0x105aa0=''+_0x46a8a8[_0x1b36bf(0x1ff)]+_0x46a8a8[_0x1b36bf(0x231)]+_0x46a8a8[_0x1b36bf(0x1fc)];return P(_0x5aa94f,_0x4d7b93,_0x105aa0,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':T(!0x0,!0x0,_0x43b5ba)}],'blockRanges':[{'blockId':_0x4f8aca,'blockType':x,'startIndex':0x0,'endIndex':_0x105aa0[_0x1b36bf(0x237)]-0x1}]}),{'nextDocumentData':_0x112a95,'cursorOffset':_0x4d7b93+0x1};}return P(_0x5aa94f,_0x42d279,_0x46a8a8[_0x1b36bf(0x1fc)]),P(_0x5aa94f,_0x4d7b93,_0x46a8a8[_0x1b36bf(0x1ff)]),E(_0x5aa94f,_0x4d7b93,_0x42d279+0x1,_0x43b5ba),_0x5aa94f[_0x1b36bf(0x209)]=[...(_0x294168=_0x5aa94f[_0x1b36bf(0x209)])==null?[]:_0x294168,{'blockId':_0x4f8aca,'blockType':x,'startIndex':_0x4d7b93,'endIndex':_0x42d279+0x1}][_0x1b36bf(0x21b)]((_0x565f4f,_0x412e49)=>_0x565f4f[_0x1b36bf(0x20a)]-_0x412e49['startIndex']),{'nextDocumentData':_0x112a95,'cursorOffset':_0x4d7b93+0x1};}function te(_0x199e1f,_0x54a152){const _0x1186a0=_0x941233;return _0x199e1f==null||_0x54a152==null||_0x199e1f===_0x54a152?null:{'startOffset':Math[_0x1186a0(0x23c)](_0x199e1f,_0x54a152),'endOffset':Math[_0x1186a0(0x225)](_0x199e1f,_0x54a152)};}function ne(_0x5c622e,_0x2977b3,_0xbf5e19){const _0x40c48f=_0x941233;var _0x3e8f41;((_0x3e8f41=_0x5c622e['paragraphs'])==null?[]:_0x3e8f41)[_0x40c48f(0x257)](_0x4d22cb=>_0x4d22cb[_0x40c48f(0x20a)]>_0x2977b3&&_0x4d22cb[_0x40c48f(0x20a)]<_0xbf5e19)[_0x40c48f(0x22c)](_0x6935ef=>{const _0x2e7fc6=_0x40c48f;var _0x28f2cb;let _0x3ea81f={...(_0x28f2cb=_0x6935ef[_0x2e7fc6(0x223)])==null?{}:_0x28f2cb};delete _0x3ea81f[_0x2e7fc6(0x1fe)],delete _0x3ea81f[_0x2e7fc6(0x234)],delete _0x3ea81f['spaceBelow'],delete _0x3ea81f[_0x2e7fc6(0x20f)],_0x6935ef[_0x2e7fc6(0x223)]=_0x3ea81f;});}function S(_0x51e722){const _0x942c35=_0x941233;var _0x2ea3d4,_0x2413cf;let _0x3f3d00=k(_0x51e722[_0x942c35(0x1f7)]),_0x4bf6e9=A(_0x3f3d00),_0x317f3c=w(_0x4bf6e9,_0x51e722[_0x942c35(0x207)]);if(!_0x317f3c)return null;let _0xd531cf=O(_0x4bf6e9,_0x317f3c),_0x20ae48=_0xd531cf[_0xd531cf['length']-0x1];if(!_0x20ae48||!oe(_0x4bf6e9,_0x317f3c,_0x20ae48)||_0x51e722[_0x942c35(0x207)]<_0x20ae48[_0x942c35(0x20a)])return null;let _0x494b3b=M(_0x4bf6e9,_0x317f3c,_0x20ae48);if(_0x494b3b>=_0x317f3c[_0x942c35(0x20b)])return null;_0x4bf6e9[_0x942c35(0x203)]=[_0x4bf6e9['dataStream'][_0x942c35(0x21c)](0x0,_0x494b3b),_0x46a8a8[_0x942c35(0x1fc)],_0x4bf6e9[_0x942c35(0x203)][_0x942c35(0x21c)](_0x494b3b,_0x317f3c[_0x942c35(0x20b)]),_0x4bf6e9[_0x942c35(0x203)][_0x942c35(0x21c)](_0x317f3c[_0x942c35(0x20b)]+0x1)][_0x942c35(0x202)](''),B(_0x4bf6e9[_0x942c35(0x217)],_0x494b3b,_0x317f3c['endIndex'],0x1),B(_0x4bf6e9[_0x942c35(0x24a)],_0x494b3b,_0x317f3c[_0x942c35(0x20b)],0x1),B(_0x4bf6e9[_0x942c35(0x1f6)],_0x494b3b,_0x317f3c[_0x942c35(0x20b)],0x1),_e(_0x4bf6e9[_0x942c35(0x240)],_0x494b3b,_0x317f3c['endIndex'],0x1),V(_0x4bf6e9[_0x942c35(0x239)],_0x494b3b,_0x317f3c[_0x942c35(0x20b)],0x1),V(_0x4bf6e9['customRanges'],_0x494b3b,_0x317f3c[_0x942c35(0x20b)],0x1),V(_0x4bf6e9['customDecorations'],_0x494b3b,_0x317f3c[_0x942c35(0x20b)],0x1),(_0x2ea3d4=_0x4bf6e9['blockRanges'])==null||_0x2ea3d4[_0x942c35(0x22c)](_0x165ee5=>{const _0x31962f=_0x942c35;_0x165ee5===_0x317f3c||_0x165ee5[_0x31962f(0x20c)]===_0x317f3c['blockId']?_0x165ee5[_0x31962f(0x20b)]=_0x494b3b:_0x165ee5[_0x31962f(0x20a)]>=_0x494b3b&&_0x165ee5[_0x31962f(0x20a)]<_0x317f3c[_0x31962f(0x20b)]&&(_0x165ee5[_0x31962f(0x20a)]+=0x1,_0x165ee5[_0x31962f(0x20b)]+=0x1);});let _0x43a9f1=O(_0x4bf6e9,{..._0x317f3c,'endIndex':_0x494b3b});_0x43a9f1[_0x942c35(0x22c)]((_0x50e224,_0x1b4405)=>{const _0x3d0282=_0x942c35;var _0xe058a4;_0x50e224[_0x3d0282(0x223)]={...(_0xe058a4=_0x50e224[_0x3d0282(0x223)])==null?{}:_0xe058a4,...T(_0x1b4405===0x0,_0x1b4405===_0x43a9f1[_0x3d0282(0x237)]-0x1)};});let _0x48094c=(_0x2413cf=_0x4bf6e9['paragraphs'])==null?void 0x0:_0x2413cf[_0x942c35(0x22f)](_0x3b2dba=>_0x3b2dba['startIndex']===_0x494b3b+0x1);return _0x48094c&&(_0x48094c['paragraphStyle']=D(_0x48094c[_0x942c35(0x223)])),{'nextDocumentData':_0x3f3d00,'cursorOffset':_0x494b3b+0x1};}function C(_0x184424){const _0x53b00a=_0x941233;let _0x5cc2aa=k(_0x184424['documentData']),_0x465c16=A(_0x5cc2aa),_0x115f24=w(_0x465c16,_0x184424['cursorOffset']);return _0x115f24&&(re(_0x5cc2aa,_0x465c16,_0x115f24,_0x184424['cursorOffset'],_0x184424[_0x53b00a(0x247)])||ie(_0x5cc2aa,_0x465c16,_0x115f24,_0x184424['cursorOffset']))||null;}function re(_0x10e117,_0x486844,_0x52cc41,_0x3dc204,_0x10e13b){const _0x100e56=_0x941233;let _0x5a7735=pe(_0x486844,_0x52cc41,_0x3dc204,_0x10e13b);if(!_0x5a7735)return null;let _0x221950=_0x5a7735[_0x100e56(0x221)]-0x1;return F(_0x486844,_0x5a7735[_0x100e56(0x20e)][_0x100e56(0x20a)],_0x5a7735[_0x100e56(0x20e)][_0x100e56(0x20a)]+0x1),{'nextDocumentData':_0x10e117,'cursorOffset':_0x221950};}function ie(_0x215d66,_0x5246fd,_0x307483,_0x23a3fb){const _0x110b3d=_0x941233;if(_0x23a3fb!==_0x307483['startIndex']+0x1)return null;let _0x136096=O(_0x5246fd,_0x307483),_0x10acc3=_0x136096[0x0];return!_0x10acc3||M(_0x5246fd,_0x307483,_0x10acc3)!==_0x23a3fb?null:_0x136096[_0x110b3d(0x237)]===0x1?se(_0x215d66,_0x5246fd,_0x307483,_0x10acc3):ce(_0x215d66,_0x5246fd,_0x307483,_0x10acc3);}function ae(_0x2ce6d9,_0x4ab675){const _0x85a28f=_0x941233;var _0x5b21a5;return _0x2ce6d9==null||(_0x5b21a5=_0x2ce6d9[_0x85a28f(0x209)])==null?void 0x0:_0x5b21a5[_0x85a28f(0x22f)](_0x3f2406=>_0x3f2406[_0x85a28f(0x229)]===_0x85a28f(0x1f5)&&_0x3f2406[_0x85a28f(0x20a)]<=_0x4ab675&&_0x4ab675<=_0x3f2406[_0x85a28f(0x20b)]);}function w(_0x51eb86,_0x54bd9e){const _0x4f4c4e=_0x941233;var _0x2c44b6;return(_0x2c44b6=_0x51eb86[_0x4f4c4e(0x209)])==null?void 0x0:_0x2c44b6[_0x4f4c4e(0x22f)](_0x4fab5e=>{const _0x146b71=_0x4f4c4e;let _0x49b4d5=N(_0x51eb86,_0x4fab5e);return _0x4fab5e[_0x146b71(0x229)]===_0x146b71(0x1f5)&&_0x4fab5e[_0x146b71(0x20a)]<=_0x54bd9e&&_0x54bd9e<=_0x49b4d5+0x2;});}function T(_0x2042e6,_0x59ce6b,_0x1f13bf=!0x1){return{'indentStart':{'v':0x16},..._0x2042e6&&_0x1f13bf?{'spaceAbove':{'v':0x8}}:{}};}function E(_0x57d961,_0x3a1e62,_0x585d92,_0x45ab2a=!0x1){const _0x579c5c=_0x941233;var _0x2731c5;let _0x5af39d=((_0x2731c5=_0x57d961[_0x579c5c(0x217)])==null?[]:_0x2731c5)[_0x579c5c(0x257)](_0x53d733=>_0x53d733['startIndex']>_0x3a1e62&&_0x53d733['startIndex']<_0x585d92);_0x5af39d['forEach']((_0x1c7711,_0x2fd08b)=>{const _0x95e42d=_0x579c5c;var _0x29c31c;_0x1c7711[_0x95e42d(0x223)]={...(_0x29c31c=_0x1c7711[_0x95e42d(0x223)])==null?{}:_0x29c31c,...T(_0x2fd08b===0x0,_0x2fd08b===_0x5af39d['length']-0x1,_0x45ab2a)};});}function D(_0x743368){const _0x11c1ad=_0x941233;let _0x2293b3={..._0x743368==null?{}:_0x743368};return delete _0x2293b3['indentStart'],delete _0x2293b3[_0x11c1ad(0x234)],delete _0x2293b3[_0x11c1ad(0x255)],_0x2293b3;}function _0x176c(){const _0xd2edf1=['docs-quote.command.insert','docs-quote.command.cancel-empty-paragraph','type','symbol','_injector','customDecorations','call','decorate','spaceBelow','reduce','filter','getOwnPropertyDescriptor','endsWith','getCurrentUnitOfType','range','UNIVER_DOC','quote','customBlocks','documentData','setConfig','getSnapshot','getUniverDocInstance','string','BLOCK_END','some','indentEnd','BLOCK_START','diffValue','packageName','join','dataStream','pluginName','_commandService','getTextRanges','cursorOffset','registerCommand','blockRanges','startIndex','endIndex','blockId','commandService','paragraph','textStyle','from','2459457kfwjhl','unitId','consumeInsertRange','toPrimitive','version','223988dcmnad','paragraphs','object','previousDocumentData','getUnitId','sort','slice','4188330rmWQRQ','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','startOffset','getInstance','endTokenOffset','body','paragraphStyle','getBody','max','5088976xPqeKw','4FpZEMs','8215046SYjPpW','blockType','customRanges','806100uZepdK','forEach','deepClone','COMMAND','find','defineProperty','PARAGRAPH','docs-quote.command.insert-below','SECTION_BREAK','spaceAbove','_config','every','length','@univerjs-pro/docs-quote','tables','syncExecuteCommand','_configService','min','map','replaceOp','iterator','textRuns','get','8336095Sirafb','function','prototype','Document\x20body\x20is\x20required','nextDocumentData','paragraphStartIndex','indexOf','onStarting','sectionBreaks','docs-quote.command.exit','endOffset'];_0x176c=function(){return _0xd2edf1;};return _0x176c();}function O(_0x2b8249,_0x1ceff8){const _0x16dba0=_0x941233;var _0x1693f7;let _0x487fbe=N(_0x2b8249,_0x1ceff8);return((_0x1693f7=_0x2b8249[_0x16dba0(0x217)])==null?[]:_0x1693f7)[_0x16dba0(0x257)](_0x397ac9=>_0x397ac9[_0x16dba0(0x20a)]>_0x1ceff8[_0x16dba0(0x20a)]&&_0x397ac9[_0x16dba0(0x20a)]<_0x487fbe);}function oe(_0x1102c9,_0x335a5f,_0xbc7801){const _0x13e37f=_0x941233;let _0x5846a0=M(_0x1102c9,_0x335a5f,_0xbc7801),_0x1374bd=_0x1102c9['dataStream'][_0x13e37f(0x21c)](_0x5846a0,_0xbc7801[_0x13e37f(0x20a)]);return Array[_0x13e37f(0x210)](_0x1374bd)[_0x13e37f(0x236)](_0x1531b0=>_0x1531b0===_0x46a8a8['BLOCK_START']||_0x1531b0===_0x46a8a8[_0x13e37f(0x1fc)]);}function se(_0x318c0c,_0xe6d5fc,_0x1440b2,_0x2e1855){const _0x38d458=_0x941233;var _0x2f05f4,_0x408e59;let _0x5b6b6b=_0x1440b2[_0x38d458(0x20a)];F(_0xe6d5fc,_0x1440b2['endIndex'],_0x1440b2[_0x38d458(0x20b)]+0x1),F(_0xe6d5fc,_0x1440b2[_0x38d458(0x20a)],_0x1440b2[_0x38d458(0x20a)]+0x1),_0xe6d5fc[_0x38d458(0x209)]=(_0x2f05f4=_0xe6d5fc[_0x38d458(0x209)])==null?void 0x0:_0x2f05f4['filter'](_0x3e3f4c=>_0x3e3f4c[_0x38d458(0x20c)]!==_0x1440b2[_0x38d458(0x20c)]);let _0x5a962d=(_0x408e59=_0xe6d5fc[_0x38d458(0x217)])==null?void 0x0:_0x408e59[_0x38d458(0x22f)](_0x4dacc1=>_0x4dacc1['startIndex']===_0x2e1855[_0x38d458(0x20a)]-0x1);return _0x5a962d&&(_0x5a962d[_0x38d458(0x223)]=D(_0x5a962d[_0x38d458(0x223)])),{'nextDocumentData':_0x318c0c,'cursorOffset':_0x5b6b6b};}function ce(_0x2d513b,_0xc6047e,_0xf8dcdc,_0x192b15){const _0x4feb8b=_0x941233;var _0x2a45a0,_0x18c4c3;let _0x7937c5=_0x192b15[_0x4feb8b(0x20a)],_0xcb2abb=_0xf8dcdc[_0x4feb8b(0x20a)];P(_0xc6047e,_0x192b15[_0x4feb8b(0x20a)]+0x1,_0x46a8a8['BLOCK_START']),F(_0xc6047e,_0xf8dcdc[_0x4feb8b(0x20a)],_0xf8dcdc[_0x4feb8b(0x20a)]+0x1);let _0x5f5822=(_0x2a45a0=_0xc6047e[_0x4feb8b(0x217)])==null?void 0x0:_0x2a45a0['find'](_0x5dbd39=>_0x5dbd39[_0x4feb8b(0x20a)]===_0x7937c5-0x1),_0x3221d5=(_0x18c4c3=_0xc6047e[_0x4feb8b(0x209)])==null?void 0x0:_0x18c4c3[_0x4feb8b(0x22f)](_0x2e05f3=>_0x2e05f3[_0x4feb8b(0x20c)]===_0xf8dcdc['blockId']);return _0x5f5822&&(_0x5f5822[_0x4feb8b(0x223)]=D(_0x5f5822[_0x4feb8b(0x223)]),_0x3221d5&&(_0x3221d5[_0x4feb8b(0x20a)]=_0x5f5822[_0x4feb8b(0x20a)]+0x1)),_0x3221d5&&E(_0xc6047e,_0x3221d5['startIndex'],_0x3221d5['endIndex']),{'nextDocumentData':_0x2d513b,'cursorOffset':_0xcb2abb};}function k(_0x2e6d3c){const _0x2b425b=_0x941233;return _0x4f30da[_0x2b425b(0x22d)](_0x2e6d3c);}function A(_0x34d790){const _0x22ac2c=_0x941233;if(!_0x34d790['body'])throw Error(_0x22ac2c(0x245));return _0x34d790[_0x22ac2c(0x222)];}function _0x4fb1(_0x48423c,_0x5669ed){_0x48423c=_0x48423c-0x1f1;const _0x176c7f=_0x176c();let _0x4fb13d=_0x176c7f[_0x48423c];return _0x4fb13d;}function le(_0x3cc827,_0x3bf5fc,_0x4fbee2){const _0x91998d=_0x941233;if(_0x3bf5fc==null||_0x4fbee2==null){let _0x3087cd=ue(_0x3cc827);return{'startOffset':_0x3087cd,'endOffset':_0x3087cd};}let _0x1112e9=Math[_0x91998d(0x23c)](_0x3bf5fc,_0x4fbee2),_0x3f9888=Math[_0x91998d(0x225)](_0x3bf5fc,_0x4fbee2);return _0x1112e9===_0x3f9888?{'startOffset':_0x1112e9,'endOffset':_0x1112e9}:fe(_0x3cc827,_0x1112e9,_0x3f9888);}function ue(_0x41c415){const _0x418ce4=_0x941233;return _0x41c415['dataStream'][_0x418ce4(0x1f1)](_0x46a8a8[_0x418ce4(0x233)])?Math[_0x418ce4(0x225)](0x0,_0x41c415[_0x418ce4(0x203)][_0x418ce4(0x237)]-0x1):_0x41c415[_0x418ce4(0x203)][_0x418ce4(0x237)];}function de(_0x3c9285,_0x2b8cec,_0x2f62ff){const _0x531be6=_0x941233;var _0x4d4aff;let _0x157b56=Math[_0x531be6(0x23c)](_0x2b8cec,_0x2f62ff),_0x4651e1=Math['max'](_0x2b8cec,_0x2f62ff);return!!((_0x4d4aff=_0x3c9285[_0x531be6(0x239)])!=null&&_0x4d4aff[_0x531be6(0x1fd)](_0x29aea1=>_0x157b56>_0x29aea1['startIndex']&&_0x157b56<_0x29aea1[_0x531be6(0x20b)]||_0x4651e1>_0x29aea1[_0x531be6(0x20a)]&&_0x4651e1<_0x29aea1[_0x531be6(0x20b)]||_0x157b56<=_0x29aea1[_0x531be6(0x20a)]&&_0x4651e1>=_0x29aea1[_0x531be6(0x20b)]));}function fe(_0x34259e,_0x550cb1,_0x48fee3){const _0x3c44a5=_0x941233;var _0x386cee,_0x4b94aa;let _0xb4ed4a=[...(_0x386cee=_0x34259e[_0x3c44a5(0x217)])==null?[]:_0x386cee][_0x3c44a5(0x21b)]((_0x214b86,_0x4702c4)=>_0x214b86[_0x3c44a5(0x20a)]-_0x4702c4[_0x3c44a5(0x20a)]),_0x403a27=_0xb4ed4a[_0x3c44a5(0x22f)]((_0x1b13e7,_0x54d9a9)=>(_0x54d9a9===0x0?0x0:_0xb4ed4a[_0x54d9a9-0x1][_0x3c44a5(0x20a)]+0x1)<=_0x550cb1&&_0x550cb1<=_0x1b13e7[_0x3c44a5(0x20a)]),_0x3231e7=(_0x4b94aa=_0xb4ed4a[_0x3c44a5(0x22f)](_0x4c7e8d=>_0x4c7e8d[_0x3c44a5(0x20a)]>=_0x48fee3-0x1))==null?_0xb4ed4a[_0xb4ed4a[_0x3c44a5(0x237)]-0x1]:_0x4b94aa;return{'startOffset':_0x403a27?j(_0xb4ed4a,_0x403a27):_0x550cb1,'endOffset':_0x3231e7?_0x3231e7[_0x3c44a5(0x20a)]+0x1:_0x48fee3};}function j(_0x2f1408,_0x4ed79d){const _0x20b7dc=_0x941233;let _0xa3a75f=_0x2f1408[_0x20b7dc(0x248)](_0x4ed79d);return _0xa3a75f>0x0?_0x2f1408[_0xa3a75f-0x1][_0x20b7dc(0x20a)]+0x1:0x0;}function M(_0x3245b9,_0xc625f0,_0x26dc03){const _0x4ea96b=_0x941233;var _0x595418;return Math[_0x4ea96b(0x225)](j((_0x595418=_0x3245b9[_0x4ea96b(0x217)])==null?[]:_0x595418,_0x26dc03),_0xc625f0['startIndex']+0x1);}function N(_0x17ab8e,_0x5d5072){const _0x5207f2=_0x941233;return _0x17ab8e[_0x5207f2(0x203)][_0x5d5072[_0x5207f2(0x20b)]]===_0x46a8a8[_0x5207f2(0x1fc)]?_0x5d5072[_0x5207f2(0x20b)]:_0x17ab8e[_0x5207f2(0x203)][_0x5d5072[_0x5207f2(0x20b)]+0x1]===_0x46a8a8[_0x5207f2(0x1fc)]?_0x5d5072[_0x5207f2(0x20b)]+0x1:_0x5d5072[_0x5207f2(0x20b)];}function pe(_0x39a28d,_0x364733,_0xf3fee9,_0x4be4ed){const _0x4cff4e=_0x941233;var _0x2cdcfa,_0x2401e3;let _0x4291d7=N(_0x39a28d,_0x364733),_0x4c8ae9=((_0x2cdcfa=_0x39a28d[_0x4cff4e(0x217)])==null?[]:_0x2cdcfa)[_0x4cff4e(0x22f)](_0x124d8e=>_0x124d8e[_0x4cff4e(0x20a)]===_0x4291d7+0x1);if(!_0x4c8ae9||_0x4be4ed!=null&&_0x4c8ae9[_0x4cff4e(0x20a)]!==_0x4be4ed||_0xf3fee9<_0x4291d7||_0xf3fee9>_0x4c8ae9[_0x4cff4e(0x20a)]+0x1||_0x39a28d[_0x4cff4e(0x203)][_0x4c8ae9[_0x4cff4e(0x20a)]]!==_0x46a8a8[_0x4cff4e(0x231)])return null;let _0x4b785d=j((_0x2401e3=_0x39a28d['paragraphs'])==null?[]:_0x2401e3,_0x4c8ae9),_0x16e4b9=_0x39a28d[_0x4cff4e(0x203)]['slice'](_0x4b785d,_0x4c8ae9[_0x4cff4e(0x20a)]);return Array['from'](_0x16e4b9)['every'](_0x445385=>_0x445385===_0x46a8a8[_0x4cff4e(0x1fc)])?{'paragraph':_0x4c8ae9,'endTokenOffset':_0x4291d7}:null;}function P(_0x3152ed,_0x5c7156,_0x2a5fa2,_0x1490f4={}){const _0x599ab8=_0x941233;var _0x1815ec,_0x18c288;if(_0x2a5fa2){if(_0x3152ed[_0x599ab8(0x203)]=''+_0x3152ed[_0x599ab8(0x203)][_0x599ab8(0x21c)](0x0,_0x5c7156)+_0x2a5fa2+_0x3152ed['dataStream'][_0x599ab8(0x21c)](_0x5c7156),me(_0x3152ed,_0x5c7156,_0x2a5fa2['length']),(_0x1815ec=_0x1490f4[_0x599ab8(0x217)])!=null&&_0x1815ec[_0x599ab8(0x237)]){var _0x37312d;_0x3152ed[_0x599ab8(0x217)]=[...(_0x37312d=_0x3152ed[_0x599ab8(0x217)])==null?[]:_0x37312d,..._0x1490f4[_0x599ab8(0x217)]['map'](_0xb8d724=>({..._0xb8d724,'startIndex':_0xb8d724[_0x599ab8(0x20a)]+_0x5c7156}))]['sort']((_0x2e12e1,_0x30c595)=>_0x2e12e1['startIndex']-_0x30c595[_0x599ab8(0x20a)]);}if((_0x18c288=_0x1490f4['blockRanges'])!=null&&_0x18c288[_0x599ab8(0x237)]){var _0xb20cb9;_0x3152ed['blockRanges']=[...(_0xb20cb9=_0x3152ed['blockRanges'])==null?[]:_0xb20cb9,..._0x1490f4[_0x599ab8(0x209)][_0x599ab8(0x23d)](_0x554d70=>({..._0x554d70,'startIndex':_0x554d70[_0x599ab8(0x20a)]+_0x5c7156,'endIndex':_0x554d70[_0x599ab8(0x20b)]+_0x5c7156}))][_0x599ab8(0x21b)]((_0x29e699,_0x5b9ed7)=>_0x29e699['startIndex']-_0x5b9ed7['startIndex']);}}}function F(_0x16d95d,_0x3cd346,_0x1c8312){const _0x992018=_0x941233;let _0x5bee37=_0x1c8312-_0x3cd346;_0x16d95d[_0x992018(0x203)]=''+_0x16d95d[_0x992018(0x203)]['slice'](0x0,_0x3cd346)+_0x16d95d[_0x992018(0x203)][_0x992018(0x21c)](_0x1c8312),he(_0x16d95d,_0x3cd346,_0x5bee37);}function me(_0x267a32,_0x312c44,_0x160b02){const _0x487408=_0x941233;_0x267a32[_0x487408(0x217)]=I(_0x267a32['paragraphs'],_0x312c44,_0x160b02),_0x267a32[_0x487408(0x24a)]=I(_0x267a32['sectionBreaks'],_0x312c44,_0x160b02),_0x267a32[_0x487408(0x1f6)]=I(_0x267a32[_0x487408(0x1f6)],_0x312c44,_0x160b02),_0x267a32[_0x487408(0x240)]=ge(_0x267a32[_0x487408(0x240)],_0x312c44,_0x160b02),_0x267a32[_0x487408(0x239)]=R(_0x267a32[_0x487408(0x239)],_0x312c44,_0x160b02),_0x267a32[_0x487408(0x22a)]=R(_0x267a32[_0x487408(0x22a)],_0x312c44,_0x160b02),_0x267a32[_0x487408(0x252)]=R(_0x267a32[_0x487408(0x252)],_0x312c44,_0x160b02),_0x267a32['blockRanges']=R(_0x267a32[_0x487408(0x209)],_0x312c44,_0x160b02);}function he(_0x59f060,_0x4d55bf,_0x4598cb){const _0x2f6d8b=_0x941233;var _0x184dad,_0x505c29;_0x59f060[_0x2f6d8b(0x217)]=L(_0x59f060[_0x2f6d8b(0x217)],_0x4d55bf,_0x4598cb),_0x59f060['sectionBreaks']=L(_0x59f060['sectionBreaks'],_0x4d55bf,_0x4598cb),_0x59f060[_0x2f6d8b(0x1f6)]=L(_0x59f060[_0x2f6d8b(0x1f6)],_0x4d55bf,_0x4598cb),_0x59f060[_0x2f6d8b(0x240)]=(_0x184dad=z((_0x505c29=_0x59f060[_0x2f6d8b(0x240)])==null?void 0x0:_0x505c29[_0x2f6d8b(0x23d)](_0x47b674=>({..._0x47b674,'startIndex':_0x47b674['st'],'endIndex':_0x47b674['ed']})),_0x4d55bf,_0x4598cb))==null?void 0x0:_0x184dad[_0x2f6d8b(0x23d)](_0xf65810=>{let {startIndex:_0x4459a5,endIndex:_0x538e51,..._0x168399}=_0xf65810;return{..._0x168399,'st':_0x4459a5,'ed':_0x538e51};}),_0x59f060[_0x2f6d8b(0x239)]=z(_0x59f060['tables'],_0x4d55bf,_0x4598cb),_0x59f060['customRanges']=z(_0x59f060[_0x2f6d8b(0x22a)],_0x4d55bf,_0x4598cb),_0x59f060['customDecorations']=z(_0x59f060[_0x2f6d8b(0x252)],_0x4d55bf,_0x4598cb),_0x59f060[_0x2f6d8b(0x209)]=z(_0x59f060[_0x2f6d8b(0x209)],_0x4d55bf,_0x4598cb);}function I(_0x509227,_0x5d698d,_0x453361){const _0x489ae1=_0x941233;return _0x509227==null?void 0x0:_0x509227[_0x489ae1(0x23d)](_0x47d561=>_0x47d561[_0x489ae1(0x20a)]>=_0x5d698d?{..._0x47d561,'startIndex':_0x47d561[_0x489ae1(0x20a)]+_0x453361}:_0x47d561);}function L(_0x54fa44,_0x9bc7e6,_0x2520a5){const _0x133bc2=_0x941233;let _0x16fcf4=_0x9bc7e6+_0x2520a5;return _0x54fa44==null?void 0x0:_0x54fa44[_0x133bc2(0x23d)](_0x3c9fd1=>_0x3c9fd1[_0x133bc2(0x20a)]>=_0x9bc7e6&&_0x3c9fd1[_0x133bc2(0x20a)]<_0x16fcf4?null:_0x3c9fd1[_0x133bc2(0x20a)]>=_0x16fcf4?{..._0x3c9fd1,'startIndex':_0x3c9fd1[_0x133bc2(0x20a)]-_0x2520a5}:_0x3c9fd1)[_0x133bc2(0x257)](_0x29c4ff=>_0x29c4ff!=null);}function ge(_0x5879a4,_0x2b3e5f,_0x5295f1){const _0x11ee1b=_0x941233;return _0x5879a4==null?void 0x0:_0x5879a4[_0x11ee1b(0x23d)](_0x1088ab=>_0x1088ab['st']>=_0x2b3e5f?{..._0x1088ab,'st':_0x1088ab['st']+_0x5295f1,'ed':_0x1088ab['ed']+_0x5295f1}:_0x1088ab['ed']>_0x2b3e5f?{..._0x1088ab,'ed':_0x1088ab['ed']+_0x5295f1}:_0x1088ab);}function R(_0x2561eb,_0x30e751,_0x3c30a4){const _0x40e796=_0x941233;return _0x2561eb==null?void 0x0:_0x2561eb[_0x40e796(0x23d)](_0x1d3d79=>_0x1d3d79['startIndex']>=_0x30e751?{..._0x1d3d79,'startIndex':_0x1d3d79[_0x40e796(0x20a)]+_0x3c30a4,'endIndex':_0x1d3d79[_0x40e796(0x20b)]+_0x3c30a4}:_0x1d3d79[_0x40e796(0x20b)]>=_0x30e751?{..._0x1d3d79,'endIndex':_0x1d3d79[_0x40e796(0x20b)]+_0x3c30a4}:_0x1d3d79);}function z(_0x184c87,_0x4a4a90,_0x4d57b9){const _0x8fbf6a=_0x941233;let _0x2e8441=_0x4a4a90+_0x4d57b9;return _0x184c87==null?void 0x0:_0x184c87[_0x8fbf6a(0x23d)](_0x4e73a9=>_0x4e73a9[_0x8fbf6a(0x20a)]>=_0x4a4a90&&_0x4e73a9['endIndex']<_0x2e8441?null:_0x4e73a9['startIndex']>=_0x2e8441?{..._0x4e73a9,'startIndex':_0x4e73a9['startIndex']-_0x4d57b9,'endIndex':_0x4e73a9['endIndex']-_0x4d57b9}:_0x4e73a9[_0x8fbf6a(0x20b)]>=_0x4a4a90?{..._0x4e73a9,'startIndex':_0x4e73a9[_0x8fbf6a(0x20a)]<_0x4a4a90?_0x4e73a9[_0x8fbf6a(0x20a)]:_0x4a4a90,'endIndex':Math[_0x8fbf6a(0x225)](_0x4a4a90,_0x4e73a9[_0x8fbf6a(0x20b)]-_0x4d57b9)}:_0x4e73a9)[_0x8fbf6a(0x257)](_0x328123=>_0x328123!=null);}function B(_0x336b8d,_0x5adf8e,_0x59b3cc,_0x3ebff8){const _0xa40739=_0x941233;_0x336b8d==null||_0x336b8d[_0xa40739(0x22c)](_0x4171fc=>{const _0x220362=_0xa40739;_0x4171fc[_0x220362(0x20a)]>=_0x5adf8e&&_0x4171fc[_0x220362(0x20a)]<_0x59b3cc&&(_0x4171fc[_0x220362(0x20a)]+=_0x3ebff8);});}function _e(_0x3d12c4,_0x442e85,_0x236040,_0x385b46){const _0x24aa4f=_0x941233;_0x3d12c4==null||_0x3d12c4[_0x24aa4f(0x22c)](_0x1ea254=>{_0x1ea254['st']>=_0x442e85&&_0x1ea254['st']<_0x236040?(_0x1ea254['st']+=_0x385b46,_0x1ea254['ed']+=_0x385b46):_0x1ea254['ed']>_0x442e85&&_0x1ea254['ed']<_0x236040&&(_0x1ea254['ed']+=_0x385b46);});}function V(_0x5da16,_0x1334ed,_0x12d48d,_0x5f1456){const _0x5574ec=_0x941233;_0x5da16==null||_0x5da16[_0x5574ec(0x22c)](_0x6b2b86=>{const _0x132680=_0x5574ec;_0x6b2b86[_0x132680(0x20a)]>=_0x1334ed&&_0x6b2b86[_0x132680(0x20a)]<_0x12d48d?(_0x6b2b86[_0x132680(0x20a)]+=_0x5f1456,_0x6b2b86[_0x132680(0x20b)]+=_0x5f1456):_0x6b2b86['endIndex']>_0x1334ed&&_0x6b2b86['endIndex']<_0x12d48d&&(_0x6b2b86[_0x132680(0x20b)]+=_0x5f1456);});}const H={'id':_0x941233(0x232),'type':_0xa186f[_0x941233(0x22e)],'handler':_0x52192e=>{const _0x1e44f9=_0x941233;let _0x4afdc1=ve(_0x52192e);if(_0x4afdc1)return _0x52192e['get'](_0x46f782)[_0x1e44f9(0x23a)](U['id'],{'startOffset':_0x4afdc1[_0x1e44f9(0x21f)],'endOffset':_0x4afdc1[_0x1e44f9(0x24c)],'unitId':_0x4afdc1[_0x1e44f9(0x212)]});let _0x1e7dc7=ye(_0x52192e);if(!_0x1e7dc7)return!0x1;let _0x2b87bd=_0x1e7dc7[_0x1e44f9(0x20a)]+0x1;return _0x52192e[_0x1e44f9(0x241)](_0x46f782)[_0x1e44f9(0x23a)](U['id'],{'startOffset':_0x2b87bd,'endOffset':_0x2b87bd});}},U={'id':_0x941233(0x24d),'type':_0xa186f[_0x941233(0x22e)],'handler':(_0x5215ed,_0x3193bf)=>{const _0x462549=_0x941233;var _0x5ae160,_0x20f53c,_0x36f080;let _0x146f22=K(_0x5215ed,_0x3193bf==null?void 0x0:_0x3193bf[_0x462549(0x212)]);if(!_0x146f22)return!0x1;let _0x18ec74=q(_0x5215ed),_0x2a13ec=ee({'blockId':(_0x5ae160=_0x3193bf==null?void 0x0:_0x3193bf[_0x462549(0x20c)])==null?_0x2ea456(0x6):_0x5ae160,'documentData':_0x146f22[_0x462549(0x219)],'endOffset':(_0x20f53c=_0x3193bf==null?void 0x0:_0x3193bf['endOffset'])==null?_0x18ec74==null?void 0x0:_0x18ec74[_0x462549(0x24c)]:_0x20f53c,'startOffset':(_0x36f080=_0x3193bf==null?void 0x0:_0x3193bf[_0x462549(0x21f)])==null?_0x18ec74==null?void 0x0:_0x18ec74['startOffset']:_0x36f080});return Y(_0x146f22[_0x462549(0x20d)],_0x146f22[_0x462549(0x212)],_0x146f22[_0x462549(0x219)],_0x2a13ec[_0x462549(0x246)],_0x2a13ec['cursorOffset']);}},W={'id':_0x941233(0x24b),'type':_0xa186f[_0x941233(0x22e)],'handler':(_0x10c804,_0x4f2f00)=>{const _0x350505=_0x941233;var _0xcc4fd5,_0x57d392;let _0x59d61e=K(_0x10c804,_0x4f2f00==null?void 0x0:_0x4f2f00[_0x350505(0x212)]);if(!_0x59d61e)return!0x1;let _0x5f3c1d=(_0xcc4fd5=_0x4f2f00==null?void 0x0:_0x4f2f00[_0x350505(0x207)])==null?(_0x57d392=q(_0x10c804))==null?void 0x0:_0x57d392['startOffset']:_0xcc4fd5;if(_0x5f3c1d==null)return!0x1;let _0x10a9e9=S({'cursorOffset':_0x5f3c1d,'documentData':_0x59d61e['previousDocumentData']});return _0x10a9e9?Y(_0x59d61e[_0x350505(0x20d)],_0x59d61e['unitId'],_0x59d61e[_0x350505(0x219)],_0x10a9e9[_0x350505(0x246)],_0x10a9e9[_0x350505(0x207)]):!0x1;}},G={'id':_0x941233(0x24e),'type':_0xa186f[_0x941233(0x22e)],'handler':(_0x39da0b,_0x1c6bbb)=>{const _0x3b0e95=_0x941233;var _0x1b14fb,_0x194452;let _0x4e0bce=K(_0x39da0b,_0x1c6bbb==null?void 0x0:_0x1c6bbb[_0x3b0e95(0x212)]);if(!_0x4e0bce)return!0x1;let _0x59c9b0=(_0x1b14fb=_0x1c6bbb==null?void 0x0:_0x1c6bbb['cursorOffset'])==null?(_0x194452=q(_0x39da0b))==null?void 0x0:_0x194452[_0x3b0e95(0x21f)]:_0x1b14fb;if(_0x59c9b0==null)return!0x1;let _0x38b9b1=C({'cursorOffset':_0x59c9b0,'documentData':_0x4e0bce['previousDocumentData'],'paragraphStartIndex':_0x1c6bbb==null?void 0x0:_0x1c6bbb[_0x3b0e95(0x247)]});return _0x38b9b1?Y(_0x4e0bce[_0x3b0e95(0x20d)],_0x4e0bce[_0x3b0e95(0x212)],_0x4e0bce[_0x3b0e95(0x219)],_0x38b9b1[_0x3b0e95(0x246)],_0x38b9b1[_0x3b0e95(0x207)]):!0x1;}};function K(_0x544315,_0x14ba3f){const _0x4237e3=_0x941233;let _0xbeedb6=_0x544315[_0x4237e3(0x241)](_0x3831f6),_0x5adaa2=_0x14ba3f?_0xbeedb6[_0x4237e3(0x1fa)](_0x14ba3f):_0xbeedb6[_0x4237e3(0x1f2)](_0x50a4b8['UNIVER_DOC']);return _0x5adaa2?{'commandService':_0x544315['get'](_0x46f782),'previousDocumentData':_0x5adaa2[_0x4237e3(0x1f9)](),'unitId':_0x5adaa2[_0x4237e3(0x21a)]()}:null;}function q(_0x2e68f4){const _0x26eb85=_0x941233;var _0x28b2d9;return(_0x28b2d9=_0x2e68f4['get'](_0x2a33a2)[_0x26eb85(0x206)]())==null?void 0x0:_0x28b2d9[0x0];}function ve(_0x30620c){const _0x24d423=_0x941233;var _0xd909c6;let _0x17eea3=(_0xd909c6=_0x30620c[_0x24d423(0x241)](_0x3831f6)['getCurrentUnitOfType'](_0x50a4b8[_0x24d423(0x1f4)]))==null?void 0x0:_0xd909c6[_0x24d423(0x21a)]();try{return _0x30620c[_0x24d423(0x241)](_0x2fe867)[_0x24d423(0x213)](_0x17eea3);}catch{return null;}}function ye(_0xc0b68f){const _0x46e77a=_0x941233;var _0x11271e,_0x574c3a,_0x14b823;let _0x27f7c7=q(_0xc0b68f);if(!_0x27f7c7)return null;let _0x91b450=_0xc0b68f[_0x46e77a(0x241)](_0x3831f6)[_0x46e77a(0x1f2)](_0x50a4b8[_0x46e77a(0x1f4)]),_0x3224cd=_0x91b450==null?void 0x0:_0x91b450[_0x46e77a(0x224)]();return _0x3224cd?(_0x11271e=_0x5af6e9[_0x46e77a(0x1f3)]['getParagraphsInRange'](_0x27f7c7,(_0x574c3a=_0x3224cd[_0x46e77a(0x217)])==null?[]:_0x574c3a,(_0x14b823=_0x3224cd['dataStream'])==null?'':_0x14b823)[0x0])==null?null:_0x11271e:null;}function be(_0x4cc385,_0x3158ac){const _0x681526=_0x941233;var _0x3bccf3,_0x41bf54,_0x1f485a,_0x255801,_0xf40315,_0xeda4b7,_0x1aec23,_0x5e3691,_0x2b9bdb,_0x367f89,_0x59d85e,_0x2917e1,_0x16a82e,_0x401bae,_0x351d5e,_0x2dde77,_0x38f1df,_0x5be345;let _0x587c13=_0xd81bba[_0x681526(0x220)]();return[J(_0x587c13,[_0x681526(0x222),_0x681526(0x203)],(_0x3bccf3=_0x4cc385[_0x681526(0x222)])==null?void 0x0:_0x3bccf3['dataStream'],(_0x41bf54=_0x3158ac['body'])==null?void 0x0:_0x41bf54[_0x681526(0x203)]),J(_0x587c13,['body','paragraphs'],(_0x1f485a=_0x4cc385[_0x681526(0x222)])==null?void 0x0:_0x1f485a[_0x681526(0x217)],(_0x255801=_0x3158ac['body'])==null?void 0x0:_0x255801[_0x681526(0x217)]),J(_0x587c13,['body',_0x681526(0x24a)],(_0xf40315=_0x4cc385['body'])==null?void 0x0:_0xf40315[_0x681526(0x24a)],(_0xeda4b7=_0x3158ac[_0x681526(0x222)])==null?void 0x0:_0xeda4b7[_0x681526(0x24a)]),J(_0x587c13,[_0x681526(0x222),_0x681526(0x240)],(_0x1aec23=_0x4cc385['body'])==null?void 0x0:_0x1aec23['textRuns'],(_0x5e3691=_0x3158ac[_0x681526(0x222)])==null?void 0x0:_0x5e3691[_0x681526(0x240)]),J(_0x587c13,[_0x681526(0x222),'customBlocks'],(_0x2b9bdb=_0x4cc385[_0x681526(0x222)])==null?void 0x0:_0x2b9bdb[_0x681526(0x1f6)],(_0x367f89=_0x3158ac[_0x681526(0x222)])==null?void 0x0:_0x367f89['customBlocks']),J(_0x587c13,['body',_0x681526(0x22a)],(_0x59d85e=_0x4cc385[_0x681526(0x222)])==null?void 0x0:_0x59d85e[_0x681526(0x22a)],(_0x2917e1=_0x3158ac[_0x681526(0x222)])==null?void 0x0:_0x2917e1[_0x681526(0x22a)]),J(_0x587c13,[_0x681526(0x222),_0x681526(0x252)],(_0x16a82e=_0x4cc385[_0x681526(0x222)])==null?void 0x0:_0x16a82e[_0x681526(0x252)],(_0x401bae=_0x3158ac[_0x681526(0x222)])==null?void 0x0:_0x401bae[_0x681526(0x252)]),J(_0x587c13,[_0x681526(0x222),_0x681526(0x239)],(_0x351d5e=_0x4cc385[_0x681526(0x222)])==null?void 0x0:_0x351d5e[_0x681526(0x239)],(_0x2dde77=_0x3158ac[_0x681526(0x222)])==null?void 0x0:_0x2dde77[_0x681526(0x239)]),J(_0x587c13,[_0x681526(0x222),_0x681526(0x209)],(_0x38f1df=_0x4cc385[_0x681526(0x222)])==null?void 0x0:_0x38f1df[_0x681526(0x209)],(_0x5be345=_0x3158ac[_0x681526(0x222)])==null?void 0x0:_0x5be345['blockRanges'])][_0x681526(0x257)](Boolean)[_0x681526(0x256)]((_0xc854c7,_0x46c16a)=>_0xd81bba['compose'](_0xc854c7,_0x46c16a),null);}function J(_0x40eeea,_0xecec66,_0x27604f,_0x59bd73){const _0x4f5af7=_0x941233;return _0x4f30da[_0x4f5af7(0x200)](_0x27604f,_0x59bd73)?null:_0x40eeea[_0x4f5af7(0x23e)](_0xecec66,_0x27604f,_0x59bd73);}function Y(_0x202739,_0x318f67,_0x388631,_0xa06ec7,_0x168830){let _0x4e69ad=be(_0x388631,_0xa06ec7);return _0x4e69ad?!!_0x202739['syncExecuteCommand'](_0x40520e['id'],{'unitId':_0x318f67,'actions':_0x4e69ad,'textRanges':[{'startOffset':_0x168830,'endOffset':_0x168830,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}var xe=_0x941233(0x238),Se='0.24.0-insiders.20260528-29f582d';const Ce='docs-quote.config';Symbol(Ce);const we={};function X(_0x214fc9,_0x2c2196){return function(_0x1aa6b2,_0x107eb6){_0x2c2196(_0x1aa6b2,_0x107eb6,_0x214fc9);};}function Te(_0x31169c,_0xc4d527,_0x5a8ac1,_0x210ed0){const _0x5e772b=_0x941233;var _0x5f2de3=arguments[_0x5e772b(0x237)],_0x15aa00=_0x5f2de3<0x3?_0xc4d527:_0x210ed0===null?_0x210ed0=Object[_0x5e772b(0x258)](_0xc4d527,_0x5a8ac1):_0x210ed0,_0x4a99be;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x5e772b(0x243))_0x15aa00=Reflect[_0x5e772b(0x254)](_0x31169c,_0xc4d527,_0x5a8ac1,_0x210ed0);else{for(var _0x20008d=_0x31169c['length']-0x1;_0x20008d>=0x0;_0x20008d--)(_0x4a99be=_0x31169c[_0x20008d])&&(_0x15aa00=(_0x5f2de3<0x3?_0x4a99be(_0x15aa00):_0x5f2de3>0x3?_0x4a99be(_0xc4d527,_0x5a8ac1,_0x15aa00):_0x4a99be(_0xc4d527,_0x5a8ac1))||_0x15aa00);}return _0x5f2de3>0x3&&_0x15aa00&&Object[_0x5e772b(0x230)](_0xc4d527,_0x5a8ac1,_0x15aa00),_0x15aa00;}function Z(_0x5edcfb){'@babel/helpers - typeof';const _0x3fdca5=_0x941233;return Z=typeof Symbol==_0x3fdca5(0x243)&&typeof Symbol[_0x3fdca5(0x23f)]=='symbol'?function(_0x2e29b2){return typeof _0x2e29b2;}:function(_0x3d5f72){const _0x10589c=_0x3fdca5;return _0x3d5f72&&typeof Symbol==_0x10589c(0x243)&&_0x3d5f72['constructor']===Symbol&&_0x3d5f72!==Symbol[_0x10589c(0x244)]?_0x10589c(0x250):typeof _0x3d5f72;},Z(_0x5edcfb);}function Ee(_0x4ec2c4,_0x5a9372){const _0x5929cf=_0x941233;if(Z(_0x4ec2c4)!='object'||!_0x4ec2c4)return _0x4ec2c4;var _0x330dac=_0x4ec2c4[Symbol[_0x5929cf(0x214)]];if(_0x330dac!==void 0x0){var _0x1031e3=_0x330dac[_0x5929cf(0x253)](_0x4ec2c4,_0x5a9372||'default');if(Z(_0x1031e3)!=_0x5929cf(0x218))return _0x1031e3;throw TypeError(_0x5929cf(0x21e));}return(_0x5a9372===_0x5929cf(0x1fb)?String:Number)(_0x4ec2c4);}function De(_0x3865c3){const _0x50e2d7=_0x941233;var _0x4f9e97=Ee(_0x3865c3,'string');return Z(_0x4f9e97)==_0x50e2d7(0x250)?_0x4f9e97:_0x4f9e97+'';}function Q(_0x4f4cea,_0x409b09,_0x226abd){return(_0x409b09=De(_0x409b09))in _0x4f4cea?Object['defineProperty'](_0x4f4cea,_0x409b09,{'value':_0x226abd,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4f4cea[_0x409b09]=_0x226abd,_0x4f4cea;}let $=class extends _0x491f0b{constructor(_0x2c3cdc=we,_0x41a423,_0x4f102b,_0x2e63b7){const _0x403bcc=_0x941233;super(),this['_config']=_0x2c3cdc,this[_0x403bcc(0x251)]=_0x41a423,this[_0x403bcc(0x205)]=_0x4f102b,this[_0x403bcc(0x23b)]=_0x2e63b7;let {..._0x5e9434}=_0x50aeae({},we,this[_0x403bcc(0x235)]);this[_0x403bcc(0x23b)][_0x403bcc(0x1f8)](Ce,_0x5e9434);}[_0x941233(0x249)](){const _0x54815f=_0x941233;[U,H,W,G][_0x54815f(0x22c)](_0x5c4172=>this['disposeWithMe'](this['_commandService'][_0x54815f(0x208)](_0x5c4172)));}};Q($,_0x941233(0x204),b),Q($,_0x941233(0x201),xe),Q($,_0x941233(0x215),Se),Q($,_0x941233(0x24f),_0x50a4b8[_0x941233(0x1f4)]),$=Te([_0x35d418(_0x2bcd2a,_0x46cb6f),X(0x1,_0x4c1005(_0x2ea91f)),X(0x2,_0x46f782),X(0x3,_0x2602f8)],$);export{x as DOCS_QUOTE_BLOCK_TYPE,b as DOCS_QUOTE_PLUGIN,G as DocsQuoteCancelEmptyParagraphCommand,W as DocsQuoteExitCommand,H as DocsQuoteInsertBelowCommand,U as DocsQuoteInsertCommand,$ as UniverDocsQuotePlugin,C as buildCancelEmptyQuoteParagraphActions,S as buildExitQuoteActions,ee as buildInsertQuoteActions,ae as findQuoteRangeAtOffset};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x276ab6,_0x1c078c){const _0x461739=_0x233e,_0x2b03d8=_0x276ab6();while(!![]){try{const _0x3b8d0c=-parseInt(_0x461739(0x22b))/0x1+-parseInt(_0x461739(0x1d8))/0x2+parseInt(_0x461739(0x1e9))/0x3+-parseInt(_0x461739(0x240))/0x4+-parseInt(_0x461739(0x227))/0x5+parseInt(_0x461739(0x1f3))/0x6+parseInt(_0x461739(0x20c))/0x7;if(_0x3b8d0c===_0x1c078c)break;else _0x2b03d8['push'](_0x2b03d8['shift']());}catch(_0x7fcae0){_0x2b03d8['push'](_0x2b03d8['shift']());}}}(_0x5ea0,0xbf890),function(_0x11ff50,_0x377147){const _0x457332=_0x233e;typeof exports==_0x457332(0x202)&&typeof module<'u'?_0x377147(exports,require(`@univerjs/core`),require(`@univerjs/docs-ui/facade`),require(`@univerjs/docs`),require(`@univerjs/docs-ui`)):typeof define=='function'&&define[_0x457332(0x23b)]?define([_0x457332(0x232),_0x457332(0x21b),_0x457332(0x24a),_0x457332(0x1d9),_0x457332(0x1dc)],_0x377147):(_0x11ff50=typeof globalThis<'u'?globalThis:_0x11ff50||self,_0x377147(_0x11ff50['UniverProDocsQuoteFacade']={},_0x11ff50['UniverCore'],_0x11ff50[_0x457332(0x1ec)],_0x11ff50[_0x457332(0x217)],_0x11ff50[_0x457332(0x223)]));}(this,function(_0x351e54,_0x968906,_0x37508b,_0x1fdd69,_0xafa12c){const _0x5afd21=_0x233e;Object['defineProperty'](_0x351e54,Symbol[_0x5afd21(0x23f)],{'value':_0x5afd21(0x21e)});let _0x38ec3f='quote';function _0x596dff(_0x416688){const _0x3ec130=_0x5afd21;var _0x34901f,_0x3d0323,_0x1d8b1f;let _0x1aa38c=_0x4164d0(_0x416688['documentData']),_0x5a3b5f=_0x26639c(_0x1aa38c),_0x2c0fd1=_0x5f2905(_0x416688[_0x3ec130(0x22a)],_0x416688[_0x3ec130(0x20f)]),_0x8cdde=_0x2c0fd1?(_0x34901f=_0x5a3b5f[_0x3ec130(0x216)])==null?void 0x0:_0x34901f[_0x3ec130(0x231)](_0x2579ee=>_0x2579ee[_0x3ec130(0x248)]===_0x2c0fd1[_0x3ec130(0x22a)]&&_0x2579ee['endIndex']+0x1===_0x2c0fd1[_0x3ec130(0x20f)]):void 0x0,{startOffset:_0x52bed7,endOffset:_0x4f7584}=_0x8cdde?_0x2c0fd1:_0x21f1f1(_0x5a3b5f,_0x416688[_0x3ec130(0x22a)],_0x416688['endOffset']),_0xde1e1=_0x55f7fc(_0x5a3b5f,_0x52bed7,_0x4f7584),_0x1e1f35=(_0x3d0323=_0x8cdde==null?void 0x0:_0x8cdde['blockId'])==null?_0x416688[_0x3ec130(0x20a)]:_0x3d0323;if(_0x8cdde)return _0x8cdde[_0x3ec130(0x23d)]=_0x38ec3f,_0xba8336(_0x5a3b5f,_0x52bed7,_0x4f7584),_0x15cc06(_0x5a3b5f,_0x52bed7,_0x4f7584,_0xde1e1),{'nextDocumentData':_0x1aa38c,'cursorOffset':_0x52bed7+0x1};if(_0x52bed7===_0x4f7584){let _0x173976=''+_0x968906[_0x3ec130(0x220)][_0x3ec130(0x224)]+_0x968906[_0x3ec130(0x220)][_0x3ec130(0x218)]+_0x968906['DataStreamTreeTokenType'][_0x3ec130(0x242)];return _0x91ce10(_0x5a3b5f,_0x52bed7,_0x173976,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':_0x3ca3f0(!0x0,!0x0,_0xde1e1)}],'blockRanges':[{'blockId':_0x1e1f35,'blockType':_0x38ec3f,'startIndex':0x0,'endIndex':_0x173976[_0x3ec130(0x1e7)]-0x1}]}),{'nextDocumentData':_0x1aa38c,'cursorOffset':_0x52bed7+0x1};}return _0x91ce10(_0x5a3b5f,_0x4f7584,_0x968906[_0x3ec130(0x220)][_0x3ec130(0x242)]),_0x91ce10(_0x5a3b5f,_0x52bed7,_0x968906[_0x3ec130(0x220)]['BLOCK_START']),_0x15cc06(_0x5a3b5f,_0x52bed7,_0x4f7584+0x1,_0xde1e1),_0x5a3b5f['blockRanges']=[...(_0x1d8b1f=_0x5a3b5f[_0x3ec130(0x216)])==null?[]:_0x1d8b1f,{'blockId':_0x1e1f35,'blockType':_0x38ec3f,'startIndex':_0x52bed7,'endIndex':_0x4f7584+0x1}][_0x3ec130(0x204)]((_0xc1d91e,_0x1bc705)=>_0xc1d91e[_0x3ec130(0x248)]-_0x1bc705[_0x3ec130(0x248)]),{'nextDocumentData':_0x1aa38c,'cursorOffset':_0x52bed7+0x1};}function _0x5f2905(_0xe83614,_0x308e6a){const _0x25408e=_0x5afd21;return _0xe83614==null||_0x308e6a==null||_0xe83614===_0x308e6a?null:{'startOffset':Math['min'](_0xe83614,_0x308e6a),'endOffset':Math[_0x25408e(0x209)](_0xe83614,_0x308e6a)};}function _0xba8336(_0x13062a,_0x48c03d,_0x24b97c){const _0xa026c4=_0x5afd21;var _0x2463d1;((_0x2463d1=_0x13062a[_0xa026c4(0x230)])==null?[]:_0x2463d1)[_0xa026c4(0x1f8)](_0x55b638=>_0x55b638[_0xa026c4(0x248)]>_0x48c03d&&_0x55b638['startIndex']<_0x24b97c)['forEach'](_0x1f6642=>{const _0x20fc43=_0xa026c4;var _0x3cb185;let _0x52687a={...(_0x3cb185=_0x1f6642[_0x20fc43(0x210)])==null?{}:_0x3cb185};delete _0x52687a['indentEnd'],delete _0x52687a[_0x20fc43(0x1f0)],delete _0x52687a[_0x20fc43(0x1df)],delete _0x52687a['textStyle'],_0x1f6642[_0x20fc43(0x210)]=_0x52687a;});}function _0x2e1c0e(_0x4061f1){const _0xe342a7=_0x5afd21;var _0x2dce85,_0x23359d;let _0x5a6e7c=_0x4164d0(_0x4061f1[_0xe342a7(0x23a)]),_0x2dbe59=_0x26639c(_0x5a6e7c),_0x5ec03a=_0x2db07c(_0x2dbe59,_0x4061f1[_0xe342a7(0x247)]);if(!_0x5ec03a)return null;let _0x3f2b12=_0x2bf913(_0x2dbe59,_0x5ec03a),_0x3b3d06=_0x3f2b12[_0x3f2b12[_0xe342a7(0x1e7)]-0x1];if(!_0x3b3d06||!_0x3b0dc2(_0x2dbe59,_0x5ec03a,_0x3b3d06)||_0x4061f1[_0xe342a7(0x247)]<_0x3b3d06[_0xe342a7(0x248)])return null;let _0xa78ed3=_0x4025f9(_0x2dbe59,_0x5ec03a,_0x3b3d06);if(_0xa78ed3>=_0x5ec03a[_0xe342a7(0x215)])return null;_0x2dbe59['dataStream']=[_0x2dbe59[_0xe342a7(0x200)][_0xe342a7(0x208)](0x0,_0xa78ed3),_0x968906[_0xe342a7(0x220)][_0xe342a7(0x242)],_0x2dbe59[_0xe342a7(0x200)]['slice'](_0xa78ed3,_0x5ec03a[_0xe342a7(0x215)]),_0x2dbe59['dataStream'][_0xe342a7(0x208)](_0x5ec03a[_0xe342a7(0x215)]+0x1)][_0xe342a7(0x243)](''),_0x2c8344(_0x2dbe59['paragraphs'],_0xa78ed3,_0x5ec03a['endIndex'],0x1),_0x2c8344(_0x2dbe59['sectionBreaks'],_0xa78ed3,_0x5ec03a[_0xe342a7(0x215)],0x1),_0x2c8344(_0x2dbe59[_0xe342a7(0x239)],_0xa78ed3,_0x5ec03a[_0xe342a7(0x215)],0x1),_0xf83a09(_0x2dbe59[_0xe342a7(0x229)],_0xa78ed3,_0x5ec03a[_0xe342a7(0x215)],0x1),_0x1ed902(_0x2dbe59[_0xe342a7(0x235)],_0xa78ed3,_0x5ec03a[_0xe342a7(0x215)],0x1),_0x1ed902(_0x2dbe59[_0xe342a7(0x228)],_0xa78ed3,_0x5ec03a[_0xe342a7(0x215)],0x1),_0x1ed902(_0x2dbe59[_0xe342a7(0x206)],_0xa78ed3,_0x5ec03a['endIndex'],0x1),(_0x2dce85=_0x2dbe59[_0xe342a7(0x216)])==null||_0x2dce85[_0xe342a7(0x1fe)](_0xd647ee=>{const _0x31ad91=_0xe342a7;_0xd647ee===_0x5ec03a||_0xd647ee[_0x31ad91(0x20a)]===_0x5ec03a[_0x31ad91(0x20a)]?_0xd647ee[_0x31ad91(0x215)]=_0xa78ed3:_0xd647ee[_0x31ad91(0x248)]>=_0xa78ed3&&_0xd647ee[_0x31ad91(0x248)]<_0x5ec03a[_0x31ad91(0x215)]&&(_0xd647ee['startIndex']+=0x1,_0xd647ee[_0x31ad91(0x215)]+=0x1);});let _0x228738=_0x2bf913(_0x2dbe59,{..._0x5ec03a,'endIndex':_0xa78ed3});_0x228738['forEach']((_0x58bc54,_0x5a1595)=>{const _0x592748=_0xe342a7;var _0x3ad33c;_0x58bc54[_0x592748(0x210)]={...(_0x3ad33c=_0x58bc54[_0x592748(0x210)])==null?{}:_0x3ad33c,..._0x3ca3f0(_0x5a1595===0x0,_0x5a1595===_0x228738['length']-0x1)};});let _0x595428=(_0x23359d=_0x2dbe59['paragraphs'])==null?void 0x0:_0x23359d[_0xe342a7(0x231)](_0x4c2462=>_0x4c2462[_0xe342a7(0x248)]===_0xa78ed3+0x1);return _0x595428&&(_0x595428[_0xe342a7(0x210)]=_0x41ed66(_0x595428[_0xe342a7(0x210)])),{'nextDocumentData':_0x5a6e7c,'cursorOffset':_0xa78ed3+0x1};}function _0x3aacc6(_0x3d12c0){const _0x5787a5=_0x5afd21;let _0x582ef8=_0x4164d0(_0x3d12c0[_0x5787a5(0x23a)]),_0x20c88b=_0x26639c(_0x582ef8),_0x575460=_0x2db07c(_0x20c88b,_0x3d12c0[_0x5787a5(0x247)]);return _0x575460&&(_0x8e3f28(_0x582ef8,_0x20c88b,_0x575460,_0x3d12c0[_0x5787a5(0x247)],_0x3d12c0[_0x5787a5(0x201)])||_0x4c314e(_0x582ef8,_0x20c88b,_0x575460,_0x3d12c0[_0x5787a5(0x247)]))||null;}function _0x8e3f28(_0x5a4fed,_0x4bb013,_0x1c8e6f,_0x4f9a99,_0x7b4c0){const _0x5d66e4=_0x5afd21;let _0x4f338a=_0x383295(_0x4bb013,_0x1c8e6f,_0x4f9a99,_0x7b4c0);if(!_0x4f338a)return null;let _0x484980=_0x4f338a[_0x5d66e4(0x1ef)]-0x1;return _0x57941b(_0x4bb013,_0x4f338a[_0x5d66e4(0x21f)]['startIndex'],_0x4f338a[_0x5d66e4(0x21f)][_0x5d66e4(0x248)]+0x1),{'nextDocumentData':_0x5a4fed,'cursorOffset':_0x484980};}function _0x4c314e(_0x616a63,_0x55c907,_0x26f283,_0x4398eb){const _0x3f4e22=_0x5afd21;if(_0x4398eb!==_0x26f283['startIndex']+0x1)return null;let _0x259abd=_0x2bf913(_0x55c907,_0x26f283),_0xb44ca4=_0x259abd[0x0];return!_0xb44ca4||_0x4025f9(_0x55c907,_0x26f283,_0xb44ca4)!==_0x4398eb?null:_0x259abd[_0x3f4e22(0x1e7)]===0x1?_0x5646e8(_0x616a63,_0x55c907,_0x26f283,_0xb44ca4):_0x3c24cc(_0x616a63,_0x55c907,_0x26f283,_0xb44ca4);}function _0x2db07c(_0x2c400d,_0x4f7d72){const _0x14165b=_0x5afd21;var _0x7bc8fc;return(_0x7bc8fc=_0x2c400d[_0x14165b(0x216)])==null?void 0x0:_0x7bc8fc[_0x14165b(0x231)](_0x2304ae=>{const _0x3e463c=_0x14165b;let _0x135a69=_0x56d91f(_0x2c400d,_0x2304ae);return _0x2304ae[_0x3e463c(0x23d)]===_0x3e463c(0x1e8)&&_0x2304ae[_0x3e463c(0x248)]<=_0x4f7d72&&_0x4f7d72<=_0x135a69+0x2;});}function _0x3ca3f0(_0x3e2c93,_0x4b2664,_0x5a8a67=!0x1){return{'indentStart':{'v':0x16},..._0x3e2c93&&_0x5a8a67?{'spaceAbove':{'v':0x8}}:{}};}function _0x15cc06(_0x9e8083,_0x5236ec,_0x148771,_0x3d7b2b=!0x1){const _0xdb8427=_0x5afd21;var _0x2aad43;let _0x548f4c=((_0x2aad43=_0x9e8083[_0xdb8427(0x230)])==null?[]:_0x2aad43)[_0xdb8427(0x1f8)](_0x100400=>_0x100400['startIndex']>_0x5236ec&&_0x100400[_0xdb8427(0x248)]<_0x148771);_0x548f4c[_0xdb8427(0x1fe)]((_0x4ef2b3,_0x44669e)=>{const _0x48e6bd=_0xdb8427;var _0x5eb262;_0x4ef2b3['paragraphStyle']={...(_0x5eb262=_0x4ef2b3[_0x48e6bd(0x210)])==null?{}:_0x5eb262,..._0x3ca3f0(_0x44669e===0x0,_0x44669e===_0x548f4c[_0x48e6bd(0x1e7)]-0x1,_0x3d7b2b)};});}function _0x41ed66(_0x2f0117){const _0x398965=_0x5afd21;let _0xe3c8fa={..._0x2f0117==null?{}:_0x2f0117};return delete _0xe3c8fa[_0x398965(0x1f2)],delete _0xe3c8fa[_0x398965(0x1f0)],delete _0xe3c8fa[_0x398965(0x1df)],_0xe3c8fa;}function _0x2bf913(_0x444eaf,_0x2d9d64){const _0x7e6f04=_0x5afd21;var _0x3c4752;let _0x4da538=_0x56d91f(_0x444eaf,_0x2d9d64);return((_0x3c4752=_0x444eaf[_0x7e6f04(0x230)])==null?[]:_0x3c4752)['filter'](_0x236f8a=>_0x236f8a[_0x7e6f04(0x248)]>_0x2d9d64['startIndex']&&_0x236f8a[_0x7e6f04(0x248)]<_0x4da538);}function _0x3b0dc2(_0x4ccd27,_0x5f150e,_0x5738f5){const _0xecceda=_0x5afd21;let _0x342fe1=_0x4025f9(_0x4ccd27,_0x5f150e,_0x5738f5),_0x5bb369=_0x4ccd27['dataStream'][_0xecceda(0x208)](_0x342fe1,_0x5738f5[_0xecceda(0x248)]);return Array[_0xecceda(0x207)](_0x5bb369)['every'](_0x1b11a0=>_0x1b11a0===_0x968906[_0xecceda(0x220)][_0xecceda(0x224)]||_0x1b11a0===_0x968906[_0xecceda(0x220)]['BLOCK_END']);}function _0x5646e8(_0x2d7b51,_0x4b5131,_0x4614c7,_0x49532c){const _0x4a889e=_0x5afd21;var _0x46a4f6,_0x122f6e;let _0x2aeac5=_0x4614c7[_0x4a889e(0x248)];_0x57941b(_0x4b5131,_0x4614c7[_0x4a889e(0x215)],_0x4614c7['endIndex']+0x1),_0x57941b(_0x4b5131,_0x4614c7[_0x4a889e(0x248)],_0x4614c7[_0x4a889e(0x248)]+0x1),_0x4b5131[_0x4a889e(0x216)]=(_0x46a4f6=_0x4b5131[_0x4a889e(0x216)])==null?void 0x0:_0x46a4f6[_0x4a889e(0x1f8)](_0x3735a2=>_0x3735a2[_0x4a889e(0x20a)]!==_0x4614c7[_0x4a889e(0x20a)]);let _0x551e83=(_0x122f6e=_0x4b5131[_0x4a889e(0x230)])==null?void 0x0:_0x122f6e[_0x4a889e(0x231)](_0x3d2be0=>_0x3d2be0[_0x4a889e(0x248)]===_0x49532c[_0x4a889e(0x248)]-0x1);return _0x551e83&&(_0x551e83[_0x4a889e(0x210)]=_0x41ed66(_0x551e83['paragraphStyle'])),{'nextDocumentData':_0x2d7b51,'cursorOffset':_0x2aeac5};}function _0x3c24cc(_0x30a5f9,_0x2bac77,_0x3344d1,_0x37b80d){const _0x564de0=_0x5afd21;var _0xc06263,_0x569568;let _0x5ed4ad=_0x37b80d[_0x564de0(0x248)],_0x18b714=_0x3344d1[_0x564de0(0x248)];_0x91ce10(_0x2bac77,_0x37b80d['startIndex']+0x1,_0x968906[_0x564de0(0x220)][_0x564de0(0x224)]),_0x57941b(_0x2bac77,_0x3344d1[_0x564de0(0x248)],_0x3344d1[_0x564de0(0x248)]+0x1);let _0x3e6561=(_0xc06263=_0x2bac77['paragraphs'])==null?void 0x0:_0xc06263['find'](_0x105271=>_0x105271['startIndex']===_0x5ed4ad-0x1),_0x22bf98=(_0x569568=_0x2bac77['blockRanges'])==null?void 0x0:_0x569568[_0x564de0(0x231)](_0x111027=>_0x111027[_0x564de0(0x20a)]===_0x3344d1['blockId']);return _0x3e6561&&(_0x3e6561[_0x564de0(0x210)]=_0x41ed66(_0x3e6561[_0x564de0(0x210)]),_0x22bf98&&(_0x22bf98[_0x564de0(0x248)]=_0x3e6561['startIndex']+0x1)),_0x22bf98&&_0x15cc06(_0x2bac77,_0x22bf98[_0x564de0(0x248)],_0x22bf98[_0x564de0(0x215)]),{'nextDocumentData':_0x30a5f9,'cursorOffset':_0x18b714};}function _0x4164d0(_0x5a7761){const _0x4b5e51=_0x5afd21;return _0x968906[_0x4b5e51(0x234)][_0x4b5e51(0x1fd)](_0x5a7761);}function _0x26639c(_0x40f527){const _0xabceae=_0x5afd21;if(!_0x40f527['body'])throw Error(_0xabceae(0x1eb));return _0x40f527[_0xabceae(0x20b)];}function _0x21f1f1(_0x50828d,_0x2b3d71,_0x1fc596){const _0x161262=_0x5afd21;if(_0x2b3d71==null||_0x1fc596==null){let _0x29c824=_0x490f07(_0x50828d);return{'startOffset':_0x29c824,'endOffset':_0x29c824};}let _0x411cd0=Math[_0x161262(0x20e)](_0x2b3d71,_0x1fc596),_0x4b6bbe=Math[_0x161262(0x209)](_0x2b3d71,_0x1fc596);return _0x411cd0===_0x4b6bbe?{'startOffset':_0x411cd0,'endOffset':_0x411cd0}:_0x9f488a(_0x50828d,_0x411cd0,_0x4b6bbe);}function _0x490f07(_0x2e220b){const _0x2464dc=_0x5afd21;return _0x2e220b[_0x2464dc(0x200)][_0x2464dc(0x1ed)](_0x968906['DataStreamTreeTokenType']['SECTION_BREAK'])?Math[_0x2464dc(0x209)](0x0,_0x2e220b[_0x2464dc(0x200)]['length']-0x1):_0x2e220b['dataStream'][_0x2464dc(0x1e7)];}function _0x55f7fc(_0x260da4,_0x1fb35c,_0x4774f9){const _0x24a8fc=_0x5afd21;var _0x479ed1;let _0x27c09f=Math['min'](_0x1fb35c,_0x4774f9),_0x3fb1b0=Math[_0x24a8fc(0x209)](_0x1fb35c,_0x4774f9);return!!((_0x479ed1=_0x260da4[_0x24a8fc(0x235)])!=null&&_0x479ed1[_0x24a8fc(0x1f1)](_0x38932a=>_0x27c09f>_0x38932a[_0x24a8fc(0x248)]&&_0x27c09f<_0x38932a['endIndex']||_0x3fb1b0>_0x38932a[_0x24a8fc(0x248)]&&_0x3fb1b0<_0x38932a[_0x24a8fc(0x215)]||_0x27c09f<=_0x38932a[_0x24a8fc(0x248)]&&_0x3fb1b0>=_0x38932a[_0x24a8fc(0x215)]));}function _0x9f488a(_0x534aae,_0x534068,_0x110df7){const _0x28111d=_0x5afd21;var _0x54f69b,_0x410cd3;let _0x4a37a0=[...(_0x54f69b=_0x534aae[_0x28111d(0x230)])==null?[]:_0x54f69b][_0x28111d(0x204)]((_0x3e0063,_0xf7721d)=>_0x3e0063[_0x28111d(0x248)]-_0xf7721d[_0x28111d(0x248)]),_0x11155a=_0x4a37a0[_0x28111d(0x231)]((_0x585181,_0x434c0c)=>(_0x434c0c===0x0?0x0:_0x4a37a0[_0x434c0c-0x1][_0x28111d(0x248)]+0x1)<=_0x534068&&_0x534068<=_0x585181[_0x28111d(0x248)]),_0x57a70c=(_0x410cd3=_0x4a37a0[_0x28111d(0x231)](_0x10ff2a=>_0x10ff2a[_0x28111d(0x248)]>=_0x110df7-0x1))==null?_0x4a37a0[_0x4a37a0[_0x28111d(0x1e7)]-0x1]:_0x410cd3;return{'startOffset':_0x11155a?_0x23413e(_0x4a37a0,_0x11155a):_0x534068,'endOffset':_0x57a70c?_0x57a70c[_0x28111d(0x248)]+0x1:_0x110df7};}function _0x23413e(_0x39a573,_0x1a2254){const _0x4de8ce=_0x5afd21;let _0x1e071f=_0x39a573[_0x4de8ce(0x233)](_0x1a2254);return _0x1e071f>0x0?_0x39a573[_0x1e071f-0x1][_0x4de8ce(0x248)]+0x1:0x0;}function _0x4025f9(_0x173a64,_0x40ef4d,_0x4d4fce){const _0x5639ce=_0x5afd21;var _0x5e65cc;return Math[_0x5639ce(0x209)](_0x23413e((_0x5e65cc=_0x173a64['paragraphs'])==null?[]:_0x5e65cc,_0x4d4fce),_0x40ef4d[_0x5639ce(0x248)]+0x1);}function _0x56d91f(_0x3d6825,_0x5275a1){const _0x393d73=_0x5afd21;return _0x3d6825[_0x393d73(0x200)][_0x5275a1[_0x393d73(0x215)]]===_0x968906[_0x393d73(0x220)][_0x393d73(0x242)]?_0x5275a1[_0x393d73(0x215)]:_0x3d6825[_0x393d73(0x200)][_0x5275a1['endIndex']+0x1]===_0x968906[_0x393d73(0x220)][_0x393d73(0x242)]?_0x5275a1['endIndex']+0x1:_0x5275a1['endIndex'];}function _0x383295(_0x18ab45,_0x293030,_0x5ba23d,_0x5d110f){const _0x85cfca=_0x5afd21;var _0x38f2fa,_0x17ef38;let _0x3784de=_0x56d91f(_0x18ab45,_0x293030),_0x2b4f44=((_0x38f2fa=_0x18ab45[_0x85cfca(0x230)])==null?[]:_0x38f2fa)[_0x85cfca(0x231)](_0xb4e931=>_0xb4e931['startIndex']===_0x3784de+0x1);if(!_0x2b4f44||_0x5d110f!=null&&_0x2b4f44[_0x85cfca(0x248)]!==_0x5d110f||_0x5ba23d<_0x3784de||_0x5ba23d>_0x2b4f44[_0x85cfca(0x248)]+0x1||_0x18ab45[_0x85cfca(0x200)][_0x2b4f44['startIndex']]!==_0x968906[_0x85cfca(0x220)][_0x85cfca(0x218)])return null;let _0x50b7a5=_0x23413e((_0x17ef38=_0x18ab45[_0x85cfca(0x230)])==null?[]:_0x17ef38,_0x2b4f44),_0x4d65de=_0x18ab45['dataStream'][_0x85cfca(0x208)](_0x50b7a5,_0x2b4f44[_0x85cfca(0x248)]);return Array[_0x85cfca(0x207)](_0x4d65de)[_0x85cfca(0x1e5)](_0xe3daa2=>_0xe3daa2===_0x968906['DataStreamTreeTokenType'][_0x85cfca(0x242)])?{'paragraph':_0x2b4f44,'endTokenOffset':_0x3784de}:null;}function _0x91ce10(_0x375d83,_0x2be657,_0x5edc23,_0x447f08={}){const _0x2a75eb=_0x5afd21;var _0x262244,_0x48ebcc;if(_0x5edc23){if(_0x375d83[_0x2a75eb(0x200)]=''+_0x375d83[_0x2a75eb(0x200)][_0x2a75eb(0x208)](0x0,_0x2be657)+_0x5edc23+_0x375d83[_0x2a75eb(0x200)]['slice'](_0x2be657),_0x221413(_0x375d83,_0x2be657,_0x5edc23[_0x2a75eb(0x1e7)]),(_0x262244=_0x447f08[_0x2a75eb(0x230)])!=null&&_0x262244[_0x2a75eb(0x1e7)]){var _0x250aa1;_0x375d83[_0x2a75eb(0x230)]=[...(_0x250aa1=_0x375d83['paragraphs'])==null?[]:_0x250aa1,..._0x447f08[_0x2a75eb(0x230)][_0x2a75eb(0x205)](_0x54dbcb=>({..._0x54dbcb,'startIndex':_0x54dbcb[_0x2a75eb(0x248)]+_0x2be657}))][_0x2a75eb(0x204)]((_0x1c5444,_0x247d40)=>_0x1c5444[_0x2a75eb(0x248)]-_0x247d40[_0x2a75eb(0x248)]);}if((_0x48ebcc=_0x447f08[_0x2a75eb(0x216)])!=null&&_0x48ebcc[_0x2a75eb(0x1e7)]){var _0x4f6035;_0x375d83['blockRanges']=[...(_0x4f6035=_0x375d83[_0x2a75eb(0x216)])==null?[]:_0x4f6035,..._0x447f08[_0x2a75eb(0x216)][_0x2a75eb(0x205)](_0x4b0cc2=>({..._0x4b0cc2,'startIndex':_0x4b0cc2['startIndex']+_0x2be657,'endIndex':_0x4b0cc2[_0x2a75eb(0x215)]+_0x2be657}))][_0x2a75eb(0x204)]((_0x4494c5,_0x65f9e1)=>_0x4494c5[_0x2a75eb(0x248)]-_0x65f9e1[_0x2a75eb(0x248)]);}}}function _0x57941b(_0x3d8564,_0x1a3da3,_0x58d0f2){const _0x53441c=_0x5afd21;let _0x417c7e=_0x58d0f2-_0x1a3da3;_0x3d8564[_0x53441c(0x200)]=''+_0x3d8564[_0x53441c(0x200)][_0x53441c(0x208)](0x0,_0x1a3da3)+_0x3d8564[_0x53441c(0x200)][_0x53441c(0x208)](_0x58d0f2),_0x56a3e5(_0x3d8564,_0x1a3da3,_0x417c7e);}function _0x221413(_0x44f9f4,_0x2ec1a3,_0x6d57a0){const _0x3b1183=_0x5afd21;_0x44f9f4[_0x3b1183(0x230)]=_0x55e118(_0x44f9f4['paragraphs'],_0x2ec1a3,_0x6d57a0),_0x44f9f4['sectionBreaks']=_0x55e118(_0x44f9f4['sectionBreaks'],_0x2ec1a3,_0x6d57a0),_0x44f9f4['customBlocks']=_0x55e118(_0x44f9f4[_0x3b1183(0x239)],_0x2ec1a3,_0x6d57a0),_0x44f9f4[_0x3b1183(0x229)]=_0x3f4ddb(_0x44f9f4[_0x3b1183(0x229)],_0x2ec1a3,_0x6d57a0),_0x44f9f4[_0x3b1183(0x235)]=_0x2b4a78(_0x44f9f4[_0x3b1183(0x235)],_0x2ec1a3,_0x6d57a0),_0x44f9f4[_0x3b1183(0x228)]=_0x2b4a78(_0x44f9f4[_0x3b1183(0x228)],_0x2ec1a3,_0x6d57a0),_0x44f9f4['customDecorations']=_0x2b4a78(_0x44f9f4[_0x3b1183(0x206)],_0x2ec1a3,_0x6d57a0),_0x44f9f4[_0x3b1183(0x216)]=_0x2b4a78(_0x44f9f4[_0x3b1183(0x216)],_0x2ec1a3,_0x6d57a0);}function _0x56a3e5(_0x4d9cbf,_0x6119b3,_0x2328c4){const _0x319594=_0x5afd21;var _0x19c004,_0x2639dc;_0x4d9cbf[_0x319594(0x230)]=_0x498eb5(_0x4d9cbf['paragraphs'],_0x6119b3,_0x2328c4),_0x4d9cbf[_0x319594(0x1db)]=_0x498eb5(_0x4d9cbf[_0x319594(0x1db)],_0x6119b3,_0x2328c4),_0x4d9cbf['customBlocks']=_0x498eb5(_0x4d9cbf[_0x319594(0x239)],_0x6119b3,_0x2328c4),_0x4d9cbf[_0x319594(0x229)]=(_0x19c004=_0x1b19d3((_0x2639dc=_0x4d9cbf[_0x319594(0x229)])==null?void 0x0:_0x2639dc[_0x319594(0x205)](_0xd2a406=>({..._0xd2a406,'startIndex':_0xd2a406['st'],'endIndex':_0xd2a406['ed']})),_0x6119b3,_0x2328c4))==null?void 0x0:_0x19c004['map'](_0x38a12a=>{let {startIndex:_0x563eb6,endIndex:_0x5e555b,..._0x3c8e9a}=_0x38a12a;return{..._0x3c8e9a,'st':_0x563eb6,'ed':_0x5e555b};}),_0x4d9cbf['tables']=_0x1b19d3(_0x4d9cbf[_0x319594(0x235)],_0x6119b3,_0x2328c4),_0x4d9cbf[_0x319594(0x228)]=_0x1b19d3(_0x4d9cbf['customRanges'],_0x6119b3,_0x2328c4),_0x4d9cbf[_0x319594(0x206)]=_0x1b19d3(_0x4d9cbf[_0x319594(0x206)],_0x6119b3,_0x2328c4),_0x4d9cbf[_0x319594(0x216)]=_0x1b19d3(_0x4d9cbf[_0x319594(0x216)],_0x6119b3,_0x2328c4);}function _0x55e118(_0xf96b7e,_0x48040b,_0xa98f9e){const _0x52f8a8=_0x5afd21;return _0xf96b7e==null?void 0x0:_0xf96b7e['map'](_0xc2de79=>_0xc2de79[_0x52f8a8(0x248)]>=_0x48040b?{..._0xc2de79,'startIndex':_0xc2de79[_0x52f8a8(0x248)]+_0xa98f9e}:_0xc2de79);}function _0x498eb5(_0x80b2c1,_0x2320d5,_0x596a4b){const _0x284c03=_0x5afd21;let _0x5be1cd=_0x2320d5+_0x596a4b;return _0x80b2c1==null?void 0x0:_0x80b2c1[_0x284c03(0x205)](_0x8b0302=>_0x8b0302[_0x284c03(0x248)]>=_0x2320d5&&_0x8b0302[_0x284c03(0x248)]<_0x5be1cd?null:_0x8b0302[_0x284c03(0x248)]>=_0x5be1cd?{..._0x8b0302,'startIndex':_0x8b0302[_0x284c03(0x248)]-_0x596a4b}:_0x8b0302)['filter'](_0x5d558f=>_0x5d558f!=null);}function _0x3f4ddb(_0x334e4f,_0x1af0de,_0x3cebbd){const _0x3d9c7b=_0x5afd21;return _0x334e4f==null?void 0x0:_0x334e4f[_0x3d9c7b(0x205)](_0x5b4562=>_0x5b4562['st']>=_0x1af0de?{..._0x5b4562,'st':_0x5b4562['st']+_0x3cebbd,'ed':_0x5b4562['ed']+_0x3cebbd}:_0x5b4562['ed']>_0x1af0de?{..._0x5b4562,'ed':_0x5b4562['ed']+_0x3cebbd}:_0x5b4562);}function _0x2b4a78(_0xe10074,_0x1ae056,_0x152f0a){const _0x3d0b92=_0x5afd21;return _0xe10074==null?void 0x0:_0xe10074['map'](_0x43bcd8=>_0x43bcd8[_0x3d0b92(0x248)]>=_0x1ae056?{..._0x43bcd8,'startIndex':_0x43bcd8[_0x3d0b92(0x248)]+_0x152f0a,'endIndex':_0x43bcd8[_0x3d0b92(0x215)]+_0x152f0a}:_0x43bcd8['endIndex']>=_0x1ae056?{..._0x43bcd8,'endIndex':_0x43bcd8[_0x3d0b92(0x215)]+_0x152f0a}:_0x43bcd8);}function _0x1b19d3(_0x4a6dc2,_0x11832d,_0x82400b){const _0x58340a=_0x5afd21;let _0x2c7ef5=_0x11832d+_0x82400b;return _0x4a6dc2==null?void 0x0:_0x4a6dc2['map'](_0x4b198c=>_0x4b198c[_0x58340a(0x248)]>=_0x11832d&&_0x4b198c[_0x58340a(0x215)]<_0x2c7ef5?null:_0x4b198c[_0x58340a(0x248)]>=_0x2c7ef5?{..._0x4b198c,'startIndex':_0x4b198c[_0x58340a(0x248)]-_0x82400b,'endIndex':_0x4b198c['endIndex']-_0x82400b}:_0x4b198c[_0x58340a(0x215)]>=_0x11832d?{..._0x4b198c,'startIndex':_0x4b198c['startIndex']<_0x11832d?_0x4b198c[_0x58340a(0x248)]:_0x11832d,'endIndex':Math['max'](_0x11832d,_0x4b198c[_0x58340a(0x215)]-_0x82400b)}:_0x4b198c)[_0x58340a(0x1f8)](_0x315a73=>_0x315a73!=null);}function _0x2c8344(_0x4b7067,_0x2c414f,_0x4c23ed,_0x2ca99f){_0x4b7067==null||_0x4b7067['forEach'](_0x5ae850=>{const _0x16f7d7=_0x233e;_0x5ae850[_0x16f7d7(0x248)]>=_0x2c414f&&_0x5ae850[_0x16f7d7(0x248)]<_0x4c23ed&&(_0x5ae850[_0x16f7d7(0x248)]+=_0x2ca99f);});}function _0xf83a09(_0x2a3339,_0x4dc271,_0x2869e8,_0xb400e5){const _0x4a3d98=_0x5afd21;_0x2a3339==null||_0x2a3339[_0x4a3d98(0x1fe)](_0x1eb8b3=>{_0x1eb8b3['st']>=_0x4dc271&&_0x1eb8b3['st']<_0x2869e8?(_0x1eb8b3['st']+=_0xb400e5,_0x1eb8b3['ed']+=_0xb400e5):_0x1eb8b3['ed']>_0x4dc271&&_0x1eb8b3['ed']<_0x2869e8&&(_0x1eb8b3['ed']+=_0xb400e5);});}function _0x1ed902(_0x4e40b0,_0x46fe03,_0x172966,_0x57044e){const _0xc441a4=_0x5afd21;_0x4e40b0==null||_0x4e40b0[_0xc441a4(0x1fe)](_0x8b3e51=>{const _0x2f336d=_0xc441a4;_0x8b3e51['startIndex']>=_0x46fe03&&_0x8b3e51[_0x2f336d(0x248)]<_0x172966?(_0x8b3e51[_0x2f336d(0x248)]+=_0x57044e,_0x8b3e51[_0x2f336d(0x215)]+=_0x57044e):_0x8b3e51['endIndex']>_0x46fe03&&_0x8b3e51[_0x2f336d(0x215)]<_0x172966&&(_0x8b3e51[_0x2f336d(0x215)]+=_0x57044e);});}_0x968906[_0x5afd21(0x225)][_0x5afd21(0x21c)];let _0x3e6520={'id':_0x5afd21(0x1ff),'type':_0x968906['CommandType'][_0x5afd21(0x21c)],'handler':(_0x2030a9,_0x34cc6d)=>{const _0x4a0c48=_0x5afd21;var _0x3513f1,_0x194323,_0x4c136a;let _0x212838=_0x4e0196(_0x2030a9,_0x34cc6d==null?void 0x0:_0x34cc6d[_0x4a0c48(0x21a)]);if(!_0x212838)return!0x1;let _0x366b94=_0x548ad8(_0x2030a9),_0x3b2e39=_0x596dff({'blockId':(_0x3513f1=_0x34cc6d==null?void 0x0:_0x34cc6d[_0x4a0c48(0x20a)])==null?(0x0,_0x968906[_0x4a0c48(0x23c)])(0x6):_0x3513f1,'documentData':_0x212838['previousDocumentData'],'endOffset':(_0x194323=_0x34cc6d==null?void 0x0:_0x34cc6d[_0x4a0c48(0x20f)])==null?_0x366b94==null?void 0x0:_0x366b94['endOffset']:_0x194323,'startOffset':(_0x4c136a=_0x34cc6d==null?void 0x0:_0x34cc6d[_0x4a0c48(0x22a)])==null?_0x366b94==null?void 0x0:_0x366b94[_0x4a0c48(0x22a)]:_0x4c136a});return _0x2ab65a(_0x212838[_0x4a0c48(0x1dd)],_0x212838[_0x4a0c48(0x21a)],_0x212838[_0x4a0c48(0x221)],_0x3b2e39[_0x4a0c48(0x1fa)],_0x3b2e39[_0x4a0c48(0x247)]);}},_0x2820bd={'id':_0x5afd21(0x222),'type':_0x968906[_0x5afd21(0x225)][_0x5afd21(0x21c)],'handler':(_0x3e7f20,_0x339c82)=>{const _0x2020e1=_0x5afd21;var _0x5f4d8a,_0x58ea8f;let _0x4e57cb=_0x4e0196(_0x3e7f20,_0x339c82==null?void 0x0:_0x339c82['unitId']);if(!_0x4e57cb)return!0x1;let _0x4e4dd6=(_0x5f4d8a=_0x339c82==null?void 0x0:_0x339c82[_0x2020e1(0x247)])==null?(_0x58ea8f=_0x548ad8(_0x3e7f20))==null?void 0x0:_0x58ea8f[_0x2020e1(0x22a)]:_0x5f4d8a;if(_0x4e4dd6==null)return!0x1;let _0x15e50c=_0x2e1c0e({'cursorOffset':_0x4e4dd6,'documentData':_0x4e57cb[_0x2020e1(0x221)]});return _0x15e50c?_0x2ab65a(_0x4e57cb[_0x2020e1(0x1dd)],_0x4e57cb[_0x2020e1(0x21a)],_0x4e57cb[_0x2020e1(0x221)],_0x15e50c[_0x2020e1(0x1fa)],_0x15e50c[_0x2020e1(0x247)]):!0x1;}},_0x4bfb42={'id':_0x5afd21(0x203),'type':_0x968906['CommandType']['COMMAND'],'handler':(_0x317f86,_0x1b1385)=>{const _0x50b518=_0x5afd21;var _0x49a467,_0xd7261b;let _0xcab140=_0x4e0196(_0x317f86,_0x1b1385==null?void 0x0:_0x1b1385[_0x50b518(0x21a)]);if(!_0xcab140)return!0x1;let _0x37e6a3=(_0x49a467=_0x1b1385==null?void 0x0:_0x1b1385[_0x50b518(0x247)])==null?(_0xd7261b=_0x548ad8(_0x317f86))==null?void 0x0:_0xd7261b['startOffset']:_0x49a467;if(_0x37e6a3==null)return!0x1;let _0x422e11=_0x3aacc6({'cursorOffset':_0x37e6a3,'documentData':_0xcab140['previousDocumentData'],'paragraphStartIndex':_0x1b1385==null?void 0x0:_0x1b1385[_0x50b518(0x201)]});return _0x422e11?_0x2ab65a(_0xcab140['commandService'],_0xcab140[_0x50b518(0x21a)],_0xcab140[_0x50b518(0x221)],_0x422e11[_0x50b518(0x1fa)],_0x422e11[_0x50b518(0x247)]):!0x1;}};function _0x4e0196(_0x718a75,_0x3de804){const _0x425527=_0x5afd21;let _0xc1e815=_0x718a75[_0x425527(0x219)](_0x968906['IUniverInstanceService']),_0x360a9b=_0x3de804?_0xc1e815[_0x425527(0x246)](_0x3de804):_0xc1e815[_0x425527(0x22d)](_0x968906[_0x425527(0x1f4)][_0x425527(0x236)]);return _0x360a9b?{'commandService':_0x718a75[_0x425527(0x219)](_0x968906[_0x425527(0x22f)]),'previousDocumentData':_0x360a9b[_0x425527(0x1e4)](),'unitId':_0x360a9b[_0x425527(0x214)]()}:null;}function _0x548ad8(_0x34e01d){const _0x450b29=_0x5afd21;var _0x1e9406;return(_0x1e9406=_0x34e01d[_0x450b29(0x219)](_0x1fdd69[_0x450b29(0x1de)])[_0x450b29(0x1ee)]())==null?void 0x0:_0x1e9406[0x0];}function _0x1988aa(_0x1494ef,_0xc2424f){const _0x4a2c42=_0x5afd21;var _0x4a6b04,_0x3df91a,_0x316922,_0x1b7870,_0x525c03,_0x3700f3,_0x75c6f8,_0x3f623e,_0x1618b5,_0xb0f616,_0x48af54,_0x1e7751,_0x2cd154,_0xb0e782,_0x180640,_0x459292,_0x38b279,_0xc37814;let _0x738d4a=_0x968906[_0x4a2c42(0x245)][_0x4a2c42(0x22e)]();return[_0x2f92a8(_0x738d4a,[_0x4a2c42(0x20b),_0x4a2c42(0x200)],(_0x4a6b04=_0x1494ef[_0x4a2c42(0x20b)])==null?void 0x0:_0x4a6b04[_0x4a2c42(0x200)],(_0x3df91a=_0xc2424f[_0x4a2c42(0x20b)])==null?void 0x0:_0x3df91a[_0x4a2c42(0x200)]),_0x2f92a8(_0x738d4a,['body','paragraphs'],(_0x316922=_0x1494ef['body'])==null?void 0x0:_0x316922[_0x4a2c42(0x230)],(_0x1b7870=_0xc2424f[_0x4a2c42(0x20b)])==null?void 0x0:_0x1b7870[_0x4a2c42(0x230)]),_0x2f92a8(_0x738d4a,['body',_0x4a2c42(0x1db)],(_0x525c03=_0x1494ef[_0x4a2c42(0x20b)])==null?void 0x0:_0x525c03[_0x4a2c42(0x1db)],(_0x3700f3=_0xc2424f['body'])==null?void 0x0:_0x3700f3[_0x4a2c42(0x1db)]),_0x2f92a8(_0x738d4a,[_0x4a2c42(0x20b),'textRuns'],(_0x75c6f8=_0x1494ef[_0x4a2c42(0x20b)])==null?void 0x0:_0x75c6f8['textRuns'],(_0x3f623e=_0xc2424f[_0x4a2c42(0x20b)])==null?void 0x0:_0x3f623e[_0x4a2c42(0x229)]),_0x2f92a8(_0x738d4a,[_0x4a2c42(0x20b),_0x4a2c42(0x239)],(_0x1618b5=_0x1494ef[_0x4a2c42(0x20b)])==null?void 0x0:_0x1618b5['customBlocks'],(_0xb0f616=_0xc2424f[_0x4a2c42(0x20b)])==null?void 0x0:_0xb0f616[_0x4a2c42(0x239)]),_0x2f92a8(_0x738d4a,[_0x4a2c42(0x20b),_0x4a2c42(0x228)],(_0x48af54=_0x1494ef[_0x4a2c42(0x20b)])==null?void 0x0:_0x48af54['customRanges'],(_0x1e7751=_0xc2424f['body'])==null?void 0x0:_0x1e7751[_0x4a2c42(0x228)]),_0x2f92a8(_0x738d4a,[_0x4a2c42(0x20b),_0x4a2c42(0x206)],(_0x2cd154=_0x1494ef[_0x4a2c42(0x20b)])==null?void 0x0:_0x2cd154[_0x4a2c42(0x206)],(_0xb0e782=_0xc2424f['body'])==null?void 0x0:_0xb0e782[_0x4a2c42(0x206)]),_0x2f92a8(_0x738d4a,['body','tables'],(_0x180640=_0x1494ef[_0x4a2c42(0x20b)])==null?void 0x0:_0x180640['tables'],(_0x459292=_0xc2424f['body'])==null?void 0x0:_0x459292[_0x4a2c42(0x235)]),_0x2f92a8(_0x738d4a,[_0x4a2c42(0x20b),'blockRanges'],(_0x38b279=_0x1494ef[_0x4a2c42(0x20b)])==null?void 0x0:_0x38b279['blockRanges'],(_0xc37814=_0xc2424f[_0x4a2c42(0x20b)])==null?void 0x0:_0xc37814[_0x4a2c42(0x216)])][_0x4a2c42(0x1f8)](Boolean)[_0x4a2c42(0x211)]((_0x17e00f,_0x51ce32)=>_0x968906[_0x4a2c42(0x245)][_0x4a2c42(0x1e1)](_0x17e00f,_0x51ce32),null);}function _0x2f92a8(_0x11b6c7,_0x30f2e9,_0x3ff225,_0x4b22cd){const _0x43fa51=_0x5afd21;return _0x968906[_0x43fa51(0x234)][_0x43fa51(0x226)](_0x3ff225,_0x4b22cd)?null:_0x11b6c7[_0x43fa51(0x1e2)](_0x30f2e9,_0x3ff225,_0x4b22cd);}function _0x2ab65a(_0x58348e,_0x41f58a,_0x3b07ec,_0x40efd3,_0x3ca69e){const _0x2693c8=_0x5afd21;let _0x42fdbb=_0x1988aa(_0x3b07ec,_0x40efd3);return _0x42fdbb?!!_0x58348e[_0x2693c8(0x1f5)](_0x1fdd69[_0x2693c8(0x1fc)]['id'],{'unitId':_0x41f58a,'actions':_0x42fdbb,'textRanges':[{'startOffset':_0x3ca69e,'endOffset':_0x3ca69e,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}var _0x379501=class{constructor(_0x5d99d2){const _0x29735d=_0x5afd21;this[_0x29735d(0x244)]=_0x5d99d2;}[_0x5afd21(0x23e)](){return this['_runtime']['blockId'];}['getRange'](){const _0x2eb9da=_0x5afd21;let _0x59506a=this['_getBlockRange']();return _0x59506a?{'blockId':_0x59506a[_0x2eb9da(0x20a)],'endIndex':_0x59506a[_0x2eb9da(0x215)],'startIndex':_0x59506a[_0x2eb9da(0x248)]}:null;}['getText'](){const _0x2dbce1=_0x5afd21;var _0x47b944;let _0x54a27e=this[_0x2dbce1(0x1da)](),_0x36da56=(_0x47b944=this['_runtime'][_0x2dbce1(0x212)]()[_0x2dbce1(0x20b)])==null?void 0x0:_0x47b944['dataStream'];return!_0x54a27e||!_0x36da56?'':_0x2f8176(_0x36da56[_0x2dbce1(0x208)](_0x54a27e[_0x2dbce1(0x248)]+0x1,_0x54a27e[_0x2dbce1(0x215)]));}[_0x5afd21(0x1f6)](){const _0x3c54ac=_0x5afd21;let _0x1ecec3=this['getRange']();return _0x1ecec3?{..._0x1ecec3,'text':this[_0x3c54ac(0x1f7)](),'type':_0x3c54ac(0x1e8)}:null;}[_0x5afd21(0x241)](_0x1e6c6e){const _0x311565=_0x5afd21;var _0x3165ba;return!!((_0x3165ba=this[_0x311565(0x244)][_0x311565(0x1dd)])!=null&&_0x3165ba[_0x311565(0x1f5)](_0x2820bd['id'],{'cursorOffset':_0x1e6c6e,'unitId':this[_0x311565(0x244)][_0x311565(0x21a)]}));}[_0x5afd21(0x237)](_0x2bbedc={}){const _0x2c623b=_0x5afd21;var _0x320d9c;return!!((_0x320d9c=this[_0x2c623b(0x244)][_0x2c623b(0x1dd)])!=null&&_0x320d9c[_0x2c623b(0x1f5)](_0x4bfb42['id'],{..._0x2bbedc,'unitId':this[_0x2c623b(0x244)][_0x2c623b(0x21a)]}));}[_0x5afd21(0x1da)](){const _0xebac29=_0x5afd21;var _0x401470;return(_0x401470=this[_0xebac29(0x244)][_0xebac29(0x212)]()[_0xebac29(0x20b)])==null||(_0x401470=_0x401470[_0xebac29(0x216)])==null?void 0x0:_0x401470[_0xebac29(0x231)](_0x1feffc=>_0x1feffc[_0xebac29(0x20a)]===this[_0xebac29(0x244)][_0xebac29(0x20a)]&&_0x1feffc['blockType']==='quote');}};function _0x2f8176(_0x2cb7e1){const _0x51edb9=_0x5afd21;return Array['from'](_0x2cb7e1)[_0x51edb9(0x205)](_0x239d27=>_0x239d27===_0x968906[_0x51edb9(0x220)][_0x51edb9(0x218)]?'\x0a':_0x239d27)['filter'](_0x5bafab=>_0x5bafab!==_0x968906[_0x51edb9(0x220)][_0x51edb9(0x224)]&&_0x5bafab!==_0x968906[_0x51edb9(0x220)][_0x51edb9(0x242)]&&_0x5bafab!==_0x968906[_0x51edb9(0x220)][_0x51edb9(0x1e0)])[_0x51edb9(0x243)]('')[_0x51edb9(0x21d)](/\n$/,'');}Object[_0x5afd21(0x1fb)](_0x37508b['FDocument'][_0x5afd21(0x22c)],{'getQuotes'(){const _0x1c400a=_0x5afd21;var _0x3ccdd3,_0x4763d3;return(_0x3ccdd3=(_0x4763d3=this[_0x1c400a(0x1e4)]()['body'])==null||(_0x4763d3=_0x4763d3[_0x1c400a(0x216)])==null?void 0x0:_0x4763d3[_0x1c400a(0x1f8)](_0x16d001=>_0x16d001[_0x1c400a(0x23d)]===_0x1c400a(0x1e8))['map'](_0xaf133b=>_0x5d3051(this,_0xaf133b['blockId'])))==null?[]:_0x3ccdd3;},'getQuote'(_0x520f35){const _0x5cef26=_0x5afd21;var _0xfb438a;return!((_0xfb438a=this[_0x5cef26(0x1e4)]()[_0x5cef26(0x20b)])==null||(_0xfb438a=_0xfb438a[_0x5cef26(0x216)])==null)&&_0xfb438a[_0x5cef26(0x1f1)](_0x2eafbd=>_0x2eafbd['blockId']===_0x520f35&&_0x2eafbd[_0x5cef26(0x23d)]===_0x5cef26(0x1e8))?_0x5d3051(this,_0x520f35):null;},'getQuoteAt'(_0x2e8baf){const _0x5b6bcd=_0x5afd21;var _0x131c01;let _0x28e9ea=(_0x131c01=this[_0x5b6bcd(0x1e4)]()['body'])==null||(_0x131c01=_0x131c01[_0x5b6bcd(0x216)])==null||(_0x131c01=_0x131c01[_0x5b6bcd(0x231)](_0x3f19e2=>_0x3f19e2[_0x5b6bcd(0x23d)]==='quote'&&_0x3f19e2['startIndex']<=_0x2e8baf&&_0x2e8baf<=_0x3f19e2[_0x5b6bcd(0x215)]))==null?void 0x0:_0x131c01[_0x5b6bcd(0x20a)];return _0x28e9ea?_0x5d3051(this,_0x28e9ea):null;},'findQuoteByText'(_0x25c17c){const _0x2f41eb=_0x5afd21;var _0x5b9097;return(_0x5b9097=this[_0x2f41eb(0x1e6)](_0x25c17c)[0x0])==null?null:_0x5b9097;},'findQuotes'(_0x1f969f){const _0x307353=_0x5afd21;let _0x21c623=typeof _0x1f969f==_0x307353(0x1f9)?{'text':_0x1f969f}:_0x1f969f;return this['getQuotes']()[_0x307353(0x1f8)](_0x146678=>!(_0x21c623['blockId']&&_0x146678[_0x307353(0x23e)]()!==_0x21c623[_0x307353(0x20a)]||_0x21c623[_0x307353(0x1ea)]&&!_0x146678['getText']()['includes'](_0x21c623[_0x307353(0x1ea)])));},'insertQuote'(_0x1a9878={}){const _0x56bfab=_0x5afd21;var _0x577206,_0x40b066;let _0x1f926c=(_0x577206=_0x1a9878[_0x56bfab(0x20a)])==null?_0x56bfab(0x1e3)+Date[_0x56bfab(0x213)]():_0x577206;return(_0x40b066=_0x401c0f(this))!=null&&_0x40b066[_0x56bfab(0x1f5)](_0x3e6520['id'],{..._0x1a9878,'blockId':_0x1f926c,'unitId':this[_0x56bfab(0x23e)]()})?_0x5d3051(this,_0x1f926c):null;},'exitQuote'(_0x18aed9){const _0x251a5d=_0x5afd21;var _0x4fde4a;return!!((_0x4fde4a=_0x401c0f(this))!=null&&_0x4fde4a[_0x251a5d(0x1f5)](_0x2820bd['id'],{'cursorOffset':_0x18aed9,'unitId':this['getId']()}));},'cancelEmptyQuoteParagraph'(_0x43e6c7={}){const _0xc6e1dc=_0x5afd21;var _0x556b09;return!!((_0x556b09=_0x401c0f(this))!=null&&_0x556b09[_0xc6e1dc(0x1f5)](_0x4bfb42['id'],{..._0x43e6c7,'unitId':this[_0xc6e1dc(0x23e)]()}));}});function _0x5d3051(_0x115e7b,_0x448fcb){const _0x38618b=_0x5afd21;return new _0x379501({'blockId':_0x448fcb,'commandService':_0x401c0f(_0x115e7b),'getDocumentData':()=>_0x115e7b['getSnapshot'](),'unitId':_0x115e7b[_0x38618b(0x23e)]()});}function _0x401c0f(_0x15544b){const _0x24b948=_0x5afd21;var _0x3e084e,_0x2eda48;let _0x56bf75=_0x15544b;return(_0x3e084e=_0x56bf75[_0x24b948(0x20d)])==null?(_0x2eda48=_0x56bf75[_0x24b948(0x238)])==null?void 0x0:_0x2eda48[_0x24b948(0x219)](_0x968906[_0x24b948(0x22f)]):_0x3e084e;}_0x351e54[_0x5afd21(0x249)]=_0x379501;}));function _0x233e(_0x4e02f3,_0x5da107){_0x4e02f3=_0x4e02f3-0x1d8;const _0x5ea0f2=_0x5ea0();let _0x233ee2=_0x5ea0f2[_0x4e02f3];return _0x233ee2;}function _0x5ea0(){const _0xed0c81=['143655PKPjTm','prototype','getCurrentUnitOfType','getInstance','ICommandService','paragraphs','find','exports','indexOf','Tools','tables','UNIVER_DOC','cancelEmptyParagraph','_injector','customBlocks','documentData','amd','generateRandomId','blockType','getId','toStringTag','3958656nAOVTr','exit','BLOCK_END','join','_runtime','JSONX','getUniverDocInstance','cursorOffset','startIndex','FDocsQuote','@univerjs/docs-ui/facade','3095024UombKu','@univerjs/docs','_getBlockRange','sectionBreaks','@univerjs/docs-ui','commandService','DocSelectionManagerService','spaceBelow','SECTION_BREAK','compose','replaceOp','docs-quote-','getSnapshot','every','findQuotes','length','quote','1439115TJAkgt','text','Document\x20body\x20is\x20required','UniverDocsUiFacade','endsWith','getTextRanges','endTokenOffset','spaceAbove','some','indentStart','5166864KVYUSR','UniverInstanceType','syncExecuteCommand','describe','getText','filter','string','nextDocumentData','assign','RichTextEditingMutation','deepClone','forEach','docs-quote.command.insert','dataStream','paragraphStartIndex','object','docs-quote.command.cancel-empty-paragraph','sort','map','customDecorations','from','slice','max','blockId','body','19770527aEndWf','_commandService','min','endOffset','paragraphStyle','reduce','getDocumentData','now','getUnitId','endIndex','blockRanges','UniverDocs','PARAGRAPH','get','unitId','@univerjs/core','COMMAND','replace','Module','paragraph','DataStreamTreeTokenType','previousDocumentData','docs-quote.command.exit','UniverDocsUi','BLOCK_START','CommandType','diffValue','3499255rzrLVe','customRanges','textRuns','startOffset'];_0x5ea0=function(){return _0xed0c81;};return _0x5ea0();}
|
package/lib/umd/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _0x3ce6(_0x2c3f40,_0x22b626){_0x2c3f40=_0x2c3f40-0x1c3;const _0x2ea5b9=_0x2ea5();let _0x3ce60c=_0x2ea5b9[_0x2c3f40];return _0x3ce60c;}(function(_0x4f0618,_0x4e13de){const _0x1057db=_0x3ce6,_0xd59250=_0x4f0618();while(!![]){try{const _0x5ccc61=-parseInt(_0x1057db(0x207))/0x1+parseInt(_0x1057db(0x236))/0x2+-parseInt(_0x1057db(0x1d9))/0x3*(-parseInt(_0x1057db(0x1e1))/0x4)+-parseInt(_0x1057db(0x1d3))/0x5*(parseInt(_0x1057db(0x1eb))/0x6)+-parseInt(_0x1057db(0x1c7))/0x7*(parseInt(_0x1057db(0x242))/0x8)+-parseInt(_0x1057db(0x1e7))/0x9+parseInt(_0x1057db(0x244))/0xa;if(_0x5ccc61===_0x4e13de)break;else _0xd59250['push'](_0xd59250['shift']());}catch(_0x6d9111){_0xd59250['push'](_0xd59250['shift']());}}}(_0x2ea5,0x6f769),function(_0x43c252,_0x2f7fdd){const _0x5cd254=_0x3ce6;typeof exports=='object'&&typeof module<'u'?_0x2f7fdd(exports,require(`@univerjs/core`),require(`@univerjs/docs`),require(`@univerjs/docs-ui`),require(`@univerjs-pro/license`)):typeof define==_0x5cd254(0x1c5)&&define['amd']?define(['exports','@univerjs/core',_0x5cd254(0x1e6),_0x5cd254(0x21c),'@univerjs-pro/license'],_0x2f7fdd):(_0x43c252=typeof globalThis<'u'?globalThis:_0x43c252||self,_0x2f7fdd(_0x43c252['UniverProDocsQuote']={},_0x43c252[_0x5cd254(0x1cd)],_0x43c252[_0x5cd254(0x21d)],_0x43c252[_0x5cd254(0x221)],_0x43c252['UniverProLicense']));}(this,function(_0x21313e,_0x43bcc7,_0x3b2716,_0x22558b,_0x3d4a32){const _0x455bbe=_0x3ce6;Object['defineProperty'](_0x21313e,Symbol[_0x455bbe(0x1e2)],{'value':_0x455bbe(0x1d5)});let _0x12d263=_0x455bbe(0x1fb),_0x511825=_0x455bbe(0x20b);function _0x44703c(_0x4f2716){const _0x500a00=_0x455bbe;var _0x443a88,_0x5d5e6a,_0x544cc4;let _0x441996=_0x176546(_0x4f2716[_0x500a00(0x23c)]),_0x188af5=_0x580266(_0x441996),_0x4c462e=_0x4e1b5a(_0x4f2716[_0x500a00(0x1f6)],_0x4f2716[_0x500a00(0x246)]),_0x37e006=_0x4c462e?(_0x443a88=_0x188af5[_0x500a00(0x1ed)])==null?void 0x0:_0x443a88[_0x500a00(0x1c9)](_0x3abe9b=>_0x3abe9b[_0x500a00(0x21b)]===_0x4c462e[_0x500a00(0x1f6)]&&_0x3abe9b[_0x500a00(0x219)]+0x1===_0x4c462e[_0x500a00(0x246)]):void 0x0,{startOffset:_0x413c48,endOffset:_0x59ed89}=_0x37e006?_0x4c462e:_0x7e71b4(_0x188af5,_0x4f2716['startOffset'],_0x4f2716['endOffset']),_0x277fac=_0x4b6f57(_0x188af5,_0x413c48,_0x59ed89),_0x1d4685=(_0x5d5e6a=_0x37e006==null?void 0x0:_0x37e006[_0x500a00(0x1f5)])==null?_0x4f2716[_0x500a00(0x1f5)]:_0x5d5e6a;if(_0x37e006)return _0x37e006[_0x500a00(0x23d)]=_0x511825,_0x49f44f(_0x188af5,_0x413c48,_0x59ed89),_0x20c32c(_0x188af5,_0x413c48,_0x59ed89,_0x277fac),{'nextDocumentData':_0x441996,'cursorOffset':_0x413c48+0x1};if(_0x413c48===_0x59ed89){let _0x3de6e5=''+_0x43bcc7['DataStreamTreeTokenType']['BLOCK_START']+_0x43bcc7[_0x500a00(0x1d2)]['PARAGRAPH']+_0x43bcc7['DataStreamTreeTokenType']['BLOCK_END'];return _0x499d4e(_0x188af5,_0x413c48,_0x3de6e5,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':_0x250d31(!0x0,!0x0,_0x277fac)}],'blockRanges':[{'blockId':_0x1d4685,'blockType':_0x511825,'startIndex':0x0,'endIndex':_0x3de6e5['length']-0x1}]}),{'nextDocumentData':_0x441996,'cursorOffset':_0x413c48+0x1};}return _0x499d4e(_0x188af5,_0x59ed89,_0x43bcc7[_0x500a00(0x1d2)][_0x500a00(0x228)]),_0x499d4e(_0x188af5,_0x413c48,_0x43bcc7['DataStreamTreeTokenType']['BLOCK_START']),_0x20c32c(_0x188af5,_0x413c48,_0x59ed89+0x1,_0x277fac),_0x188af5['blockRanges']=[...(_0x544cc4=_0x188af5[_0x500a00(0x1ed)])==null?[]:_0x544cc4,{'blockId':_0x1d4685,'blockType':_0x511825,'startIndex':_0x413c48,'endIndex':_0x59ed89+0x1}][_0x500a00(0x1da)]((_0x1dc30b,_0x3a3dac)=>_0x1dc30b[_0x500a00(0x21b)]-_0x3a3dac[_0x500a00(0x21b)]),{'nextDocumentData':_0x441996,'cursorOffset':_0x413c48+0x1};}function _0x4e1b5a(_0x999e9,_0x349373){const _0x5c8437=_0x455bbe;return _0x999e9==null||_0x349373==null||_0x999e9===_0x349373?null:{'startOffset':Math[_0x5c8437(0x22c)](_0x999e9,_0x349373),'endOffset':Math[_0x5c8437(0x22e)](_0x999e9,_0x349373)};}function _0x49f44f(_0x50f9b1,_0x5d3442,_0x333223){const _0x4f0bf3=_0x455bbe;var _0x310396;((_0x310396=_0x50f9b1[_0x4f0bf3(0x1e4)])==null?[]:_0x310396)[_0x4f0bf3(0x20a)](_0x43a755=>_0x43a755['startIndex']>_0x5d3442&&_0x43a755[_0x4f0bf3(0x21b)]<_0x333223)['forEach'](_0x28a8b3=>{const _0x43feb6=_0x4f0bf3;var _0x2e0693;let _0x1ad1e4={...(_0x2e0693=_0x28a8b3[_0x43feb6(0x237)])==null?{}:_0x2e0693};delete _0x1ad1e4[_0x43feb6(0x1f0)],delete _0x1ad1e4['spaceAbove'],delete _0x1ad1e4[_0x43feb6(0x1dc)],delete _0x1ad1e4[_0x43feb6(0x21e)],_0x28a8b3[_0x43feb6(0x237)]=_0x1ad1e4;});}function _0x3a87e6(_0x4d79ba){const _0x18c3dc=_0x455bbe;var _0x14f0d6,_0x33f0fd;let _0x30b60e=_0x176546(_0x4d79ba[_0x18c3dc(0x23c)]),_0x107074=_0x580266(_0x30b60e),_0x5671b4=_0x49b0e0(_0x107074,_0x4d79ba['cursorOffset']);if(!_0x5671b4)return null;let _0x4da745=_0xa1599b(_0x107074,_0x5671b4),_0x3012af=_0x4da745[_0x4da745[_0x18c3dc(0x239)]-0x1];if(!_0x3012af||!_0x290e5f(_0x107074,_0x5671b4,_0x3012af)||_0x4d79ba[_0x18c3dc(0x1ec)]<_0x3012af['startIndex'])return null;let _0x3bfd6d=_0x4a98e3(_0x107074,_0x5671b4,_0x3012af);if(_0x3bfd6d>=_0x5671b4[_0x18c3dc(0x219)])return null;_0x107074['dataStream']=[_0x107074[_0x18c3dc(0x1ea)][_0x18c3dc(0x1ce)](0x0,_0x3bfd6d),_0x43bcc7[_0x18c3dc(0x1d2)][_0x18c3dc(0x228)],_0x107074[_0x18c3dc(0x1ea)][_0x18c3dc(0x1ce)](_0x3bfd6d,_0x5671b4['endIndex']),_0x107074[_0x18c3dc(0x1ea)][_0x18c3dc(0x1ce)](_0x5671b4[_0x18c3dc(0x219)]+0x1)][_0x18c3dc(0x227)](''),_0x2bdade(_0x107074['paragraphs'],_0x3bfd6d,_0x5671b4['endIndex'],0x1),_0x2bdade(_0x107074[_0x18c3dc(0x1fa)],_0x3bfd6d,_0x5671b4[_0x18c3dc(0x219)],0x1),_0x2bdade(_0x107074[_0x18c3dc(0x240)],_0x3bfd6d,_0x5671b4[_0x18c3dc(0x219)],0x1),_0x53e8e4(_0x107074[_0x18c3dc(0x22a)],_0x3bfd6d,_0x5671b4[_0x18c3dc(0x219)],0x1),_0x46d802(_0x107074[_0x18c3dc(0x1df)],_0x3bfd6d,_0x5671b4[_0x18c3dc(0x219)],0x1),_0x46d802(_0x107074['customRanges'],_0x3bfd6d,_0x5671b4['endIndex'],0x1),_0x46d802(_0x107074[_0x18c3dc(0x245)],_0x3bfd6d,_0x5671b4[_0x18c3dc(0x219)],0x1),(_0x14f0d6=_0x107074[_0x18c3dc(0x1ed)])==null||_0x14f0d6[_0x18c3dc(0x22d)](_0x4e34b5=>{const _0x55c6c3=_0x18c3dc;_0x4e34b5===_0x5671b4||_0x4e34b5[_0x55c6c3(0x1f5)]===_0x5671b4['blockId']?_0x4e34b5[_0x55c6c3(0x219)]=_0x3bfd6d:_0x4e34b5['startIndex']>=_0x3bfd6d&&_0x4e34b5['startIndex']<_0x5671b4['endIndex']&&(_0x4e34b5[_0x55c6c3(0x21b)]+=0x1,_0x4e34b5[_0x55c6c3(0x219)]+=0x1);});let _0x166942=_0xa1599b(_0x107074,{..._0x5671b4,'endIndex':_0x3bfd6d});_0x166942[_0x18c3dc(0x22d)]((_0x4b9a5d,_0x20d6c7)=>{const _0x1aa455=_0x18c3dc;var _0x3ddf47;_0x4b9a5d['paragraphStyle']={...(_0x3ddf47=_0x4b9a5d[_0x1aa455(0x237)])==null?{}:_0x3ddf47,..._0x250d31(_0x20d6c7===0x0,_0x20d6c7===_0x166942[_0x1aa455(0x239)]-0x1)};});let _0x352dfb=(_0x33f0fd=_0x107074[_0x18c3dc(0x1e4)])==null?void 0x0:_0x33f0fd[_0x18c3dc(0x1c9)](_0x4ff1b7=>_0x4ff1b7[_0x18c3dc(0x21b)]===_0x3bfd6d+0x1);return _0x352dfb&&(_0x352dfb[_0x18c3dc(0x237)]=_0x2d3dee(_0x352dfb[_0x18c3dc(0x237)])),{'nextDocumentData':_0x30b60e,'cursorOffset':_0x3bfd6d+0x1};}function _0x4caa55(_0x4ff9b2){const _0x7841f0=_0x455bbe;let _0x28b13c=_0x176546(_0x4ff9b2['documentData']),_0xf4c1ff=_0x580266(_0x28b13c),_0x17bbc0=_0x49b0e0(_0xf4c1ff,_0x4ff9b2[_0x7841f0(0x1ec)]);return _0x17bbc0&&(_0xb4d327(_0x28b13c,_0xf4c1ff,_0x17bbc0,_0x4ff9b2[_0x7841f0(0x1ec)],_0x4ff9b2[_0x7841f0(0x214)])||_0x32a07d(_0x28b13c,_0xf4c1ff,_0x17bbc0,_0x4ff9b2[_0x7841f0(0x1ec)]))||null;}function _0xb4d327(_0x51d503,_0x4e1ac1,_0x42c97a,_0x217bb9,_0x571bc8){const _0x205aca=_0x455bbe;let _0x27610c=_0x860b59(_0x4e1ac1,_0x42c97a,_0x217bb9,_0x571bc8);if(!_0x27610c)return null;let _0x1308c5=_0x27610c['endTokenOffset']-0x1;return _0x51f4c3(_0x4e1ac1,_0x27610c['paragraph']['startIndex'],_0x27610c[_0x205aca(0x21a)][_0x205aca(0x21b)]+0x1),{'nextDocumentData':_0x51d503,'cursorOffset':_0x1308c5};}function _0x32a07d(_0x25e4ae,_0x3b398a,_0x4f106b,_0x1e0749){const _0x3f2507=_0x455bbe;if(_0x1e0749!==_0x4f106b[_0x3f2507(0x21b)]+0x1)return null;let _0x3960b2=_0xa1599b(_0x3b398a,_0x4f106b),_0x37ae73=_0x3960b2[0x0];return!_0x37ae73||_0x4a98e3(_0x3b398a,_0x4f106b,_0x37ae73)!==_0x1e0749?null:_0x3960b2[_0x3f2507(0x239)]===0x1?_0xec0ae2(_0x25e4ae,_0x3b398a,_0x4f106b,_0x37ae73):_0x1d85b5(_0x25e4ae,_0x3b398a,_0x4f106b,_0x37ae73);}function _0x4f2cc7(_0x501434,_0x5a452f){const _0x1eb900=_0x455bbe;var _0x1b8687;return _0x501434==null||(_0x1b8687=_0x501434[_0x1eb900(0x1ed)])==null?void 0x0:_0x1b8687[_0x1eb900(0x1c9)](_0x42c553=>_0x42c553[_0x1eb900(0x23d)]===_0x1eb900(0x20b)&&_0x42c553['startIndex']<=_0x5a452f&&_0x5a452f<=_0x42c553[_0x1eb900(0x219)]);}function _0x49b0e0(_0x5c7ff7,_0x1af174){const _0x17ba25=_0x455bbe;var _0x299d2e;return(_0x299d2e=_0x5c7ff7[_0x17ba25(0x1ed)])==null?void 0x0:_0x299d2e[_0x17ba25(0x1c9)](_0x127582=>{const _0x5dc2d6=_0x17ba25;let _0x5017ad=_0x56eecf(_0x5c7ff7,_0x127582);return _0x127582['blockType']===_0x5dc2d6(0x20b)&&_0x127582[_0x5dc2d6(0x21b)]<=_0x1af174&&_0x1af174<=_0x5017ad+0x2;});}function _0x250d31(_0x5a7010,_0x4b482e,_0x20951c=!0x1){return{'indentStart':{'v':0x16},..._0x5a7010&&_0x20951c?{'spaceAbove':{'v':0x8}}:{}};}function _0x20c32c(_0x53b27b,_0x4b0198,_0x3f2cb9,_0x58d077=!0x1){const _0x85a10a=_0x455bbe;var _0x837778;let _0x535658=((_0x837778=_0x53b27b[_0x85a10a(0x1e4)])==null?[]:_0x837778)[_0x85a10a(0x20a)](_0x106a54=>_0x106a54[_0x85a10a(0x21b)]>_0x4b0198&&_0x106a54[_0x85a10a(0x21b)]<_0x3f2cb9);_0x535658[_0x85a10a(0x22d)]((_0x57f887,_0x1e2c24)=>{const _0x57bf39=_0x85a10a;var _0x3b0249;_0x57f887[_0x57bf39(0x237)]={...(_0x3b0249=_0x57f887[_0x57bf39(0x237)])==null?{}:_0x3b0249,..._0x250d31(_0x1e2c24===0x0,_0x1e2c24===_0x535658['length']-0x1,_0x58d077)};});}function _0x2d3dee(_0x4409fc){const _0x499891=_0x455bbe;let _0x429892={..._0x4409fc==null?{}:_0x4409fc};return delete _0x429892[_0x499891(0x1db)],delete _0x429892[_0x499891(0x226)],delete _0x429892[_0x499891(0x1dc)],_0x429892;}function _0xa1599b(_0x5baf65,_0x580369){const _0x55ea02=_0x455bbe;var _0x1e0573;let _0x5bca86=_0x56eecf(_0x5baf65,_0x580369);return((_0x1e0573=_0x5baf65['paragraphs'])==null?[]:_0x1e0573)[_0x55ea02(0x20a)](_0xd37da7=>_0xd37da7[_0x55ea02(0x21b)]>_0x580369[_0x55ea02(0x21b)]&&_0xd37da7['startIndex']<_0x5bca86);}function _0x290e5f(_0x311575,_0x57e9b4,_0x103cda){const _0x5a7507=_0x455bbe;let _0x44729d=_0x4a98e3(_0x311575,_0x57e9b4,_0x103cda),_0x22ced4=_0x311575[_0x5a7507(0x1ea)][_0x5a7507(0x1ce)](_0x44729d,_0x103cda['startIndex']);return Array[_0x5a7507(0x1e9)](_0x22ced4)[_0x5a7507(0x23b)](_0x412e79=>_0x412e79===_0x43bcc7['DataStreamTreeTokenType']['BLOCK_START']||_0x412e79===_0x43bcc7['DataStreamTreeTokenType'][_0x5a7507(0x228)]);}function _0xec0ae2(_0x486f7d,_0x3c4e33,_0x49eeea,_0x376122){const _0x30d9c9=_0x455bbe;var _0x3caee7,_0x33fc8f;let _0x404027=_0x49eeea['startIndex'];_0x51f4c3(_0x3c4e33,_0x49eeea['endIndex'],_0x49eeea[_0x30d9c9(0x219)]+0x1),_0x51f4c3(_0x3c4e33,_0x49eeea[_0x30d9c9(0x21b)],_0x49eeea['startIndex']+0x1),_0x3c4e33[_0x30d9c9(0x1ed)]=(_0x3caee7=_0x3c4e33[_0x30d9c9(0x1ed)])==null?void 0x0:_0x3caee7[_0x30d9c9(0x20a)](_0x1fc0c1=>_0x1fc0c1[_0x30d9c9(0x1f5)]!==_0x49eeea[_0x30d9c9(0x1f5)]);let _0x5b3357=(_0x33fc8f=_0x3c4e33[_0x30d9c9(0x1e4)])==null?void 0x0:_0x33fc8f['find'](_0xfd701f=>_0xfd701f[_0x30d9c9(0x21b)]===_0x376122[_0x30d9c9(0x21b)]-0x1);return _0x5b3357&&(_0x5b3357[_0x30d9c9(0x237)]=_0x2d3dee(_0x5b3357[_0x30d9c9(0x237)])),{'nextDocumentData':_0x486f7d,'cursorOffset':_0x404027};}function _0x1d85b5(_0x9a10d,_0x3a0f8f,_0x5f0852,_0x59bff8){const _0x551067=_0x455bbe;var _0x5fc5fb,_0x5a944b;let _0x17750f=_0x59bff8[_0x551067(0x21b)],_0x41de56=_0x5f0852['startIndex'];_0x499d4e(_0x3a0f8f,_0x59bff8[_0x551067(0x21b)]+0x1,_0x43bcc7[_0x551067(0x1d2)][_0x551067(0x203)]),_0x51f4c3(_0x3a0f8f,_0x5f0852[_0x551067(0x21b)],_0x5f0852[_0x551067(0x21b)]+0x1);let _0xdf61bc=(_0x5fc5fb=_0x3a0f8f[_0x551067(0x1e4)])==null?void 0x0:_0x5fc5fb[_0x551067(0x1c9)](_0x1fbce4=>_0x1fbce4[_0x551067(0x21b)]===_0x17750f-0x1),_0x1664ff=(_0x5a944b=_0x3a0f8f[_0x551067(0x1ed)])==null?void 0x0:_0x5a944b[_0x551067(0x1c9)](_0x2d3ff6=>_0x2d3ff6[_0x551067(0x1f5)]===_0x5f0852[_0x551067(0x1f5)]);return _0xdf61bc&&(_0xdf61bc['paragraphStyle']=_0x2d3dee(_0xdf61bc['paragraphStyle']),_0x1664ff&&(_0x1664ff['startIndex']=_0xdf61bc['startIndex']+0x1)),_0x1664ff&&_0x20c32c(_0x3a0f8f,_0x1664ff[_0x551067(0x21b)],_0x1664ff[_0x551067(0x219)]),{'nextDocumentData':_0x9a10d,'cursorOffset':_0x41de56};}function _0x176546(_0x412818){const _0x5424c8=_0x455bbe;return _0x43bcc7[_0x5424c8(0x1cb)][_0x5424c8(0x206)](_0x412818);}function _0x580266(_0x3a8543){const _0x29852f=_0x455bbe;if(!_0x3a8543['body'])throw Error(_0x29852f(0x218));return _0x3a8543['body'];}function _0x7e71b4(_0x3139e0,_0x7d665c,_0x36eb83){const _0x399f5c=_0x455bbe;if(_0x7d665c==null||_0x36eb83==null){let _0x226b54=_0x375808(_0x3139e0);return{'startOffset':_0x226b54,'endOffset':_0x226b54};}let _0x1784cd=Math[_0x399f5c(0x22c)](_0x7d665c,_0x36eb83),_0x531fee=Math['max'](_0x7d665c,_0x36eb83);return _0x1784cd===_0x531fee?{'startOffset':_0x1784cd,'endOffset':_0x1784cd}:_0x1d2f2d(_0x3139e0,_0x1784cd,_0x531fee);}function _0x375808(_0x5802c9){const _0x13ab68=_0x455bbe;return _0x5802c9[_0x13ab68(0x1ea)][_0x13ab68(0x1f2)](_0x43bcc7[_0x13ab68(0x1d2)][_0x13ab68(0x212)])?Math[_0x13ab68(0x22e)](0x0,_0x5802c9[_0x13ab68(0x1ea)][_0x13ab68(0x239)]-0x1):_0x5802c9[_0x13ab68(0x1ea)][_0x13ab68(0x239)];}function _0x4b6f57(_0x45dd37,_0x5a3b9d,_0x432c81){const _0x5c5049=_0x455bbe;var _0x456be0;let _0x2d46d1=Math[_0x5c5049(0x22c)](_0x5a3b9d,_0x432c81),_0x3c12c2=Math[_0x5c5049(0x22e)](_0x5a3b9d,_0x432c81);return!!((_0x456be0=_0x45dd37[_0x5c5049(0x1df)])!=null&&_0x456be0['some'](_0x368f30=>_0x2d46d1>_0x368f30[_0x5c5049(0x21b)]&&_0x2d46d1<_0x368f30[_0x5c5049(0x219)]||_0x3c12c2>_0x368f30[_0x5c5049(0x21b)]&&_0x3c12c2<_0x368f30[_0x5c5049(0x219)]||_0x2d46d1<=_0x368f30['startIndex']&&_0x3c12c2>=_0x368f30[_0x5c5049(0x219)]));}function _0x1d2f2d(_0x130c4e,_0xbea765,_0x2b5054){const _0x147c07=_0x455bbe;var _0x14e52b,_0x5864a3;let _0x26a541=[...(_0x14e52b=_0x130c4e[_0x147c07(0x1e4)])==null?[]:_0x14e52b][_0x147c07(0x1da)]((_0x29165f,_0x4c87ba)=>_0x29165f[_0x147c07(0x21b)]-_0x4c87ba[_0x147c07(0x21b)]),_0x4cd2fa=_0x26a541[_0x147c07(0x1c9)]((_0x3b4a15,_0x5d859b)=>(_0x5d859b===0x0?0x0:_0x26a541[_0x5d859b-0x1]['startIndex']+0x1)<=_0xbea765&&_0xbea765<=_0x3b4a15[_0x147c07(0x21b)]),_0x690830=(_0x5864a3=_0x26a541['find'](_0x462f39=>_0x462f39[_0x147c07(0x21b)]>=_0x2b5054-0x1))==null?_0x26a541[_0x26a541[_0x147c07(0x239)]-0x1]:_0x5864a3;return{'startOffset':_0x4cd2fa?_0x87b91a(_0x26a541,_0x4cd2fa):_0xbea765,'endOffset':_0x690830?_0x690830[_0x147c07(0x21b)]+0x1:_0x2b5054};}function _0x87b91a(_0x32da9c,_0x28370e){const _0x420b4a=_0x455bbe;let _0x1dba0b=_0x32da9c[_0x420b4a(0x229)](_0x28370e);return _0x1dba0b>0x0?_0x32da9c[_0x1dba0b-0x1][_0x420b4a(0x21b)]+0x1:0x0;}function _0x4a98e3(_0xb05304,_0x547f7f,_0x30ab55){const _0x349018=_0x455bbe;var _0x1d2909;return Math[_0x349018(0x22e)](_0x87b91a((_0x1d2909=_0xb05304[_0x349018(0x1e4)])==null?[]:_0x1d2909,_0x30ab55),_0x547f7f['startIndex']+0x1);}function _0x56eecf(_0x44029b,_0x1a371d){const _0x11fdac=_0x455bbe;return _0x44029b[_0x11fdac(0x1ea)][_0x1a371d[_0x11fdac(0x219)]]===_0x43bcc7[_0x11fdac(0x1d2)]['BLOCK_END']?_0x1a371d[_0x11fdac(0x219)]:_0x44029b[_0x11fdac(0x1ea)][_0x1a371d['endIndex']+0x1]===_0x43bcc7[_0x11fdac(0x1d2)]['BLOCK_END']?_0x1a371d[_0x11fdac(0x219)]+0x1:_0x1a371d[_0x11fdac(0x219)];}function _0x860b59(_0x2c0b6a,_0xf2a370,_0x2c1497,_0x16c5e3){const _0x1da7dd=_0x455bbe;var _0x5d68d1,_0x1b86af;let _0x28a042=_0x56eecf(_0x2c0b6a,_0xf2a370),_0x5e88a1=((_0x5d68d1=_0x2c0b6a[_0x1da7dd(0x1e4)])==null?[]:_0x5d68d1)[_0x1da7dd(0x1c9)](_0x51a3bc=>_0x51a3bc[_0x1da7dd(0x21b)]===_0x28a042+0x1);if(!_0x5e88a1||_0x16c5e3!=null&&_0x5e88a1[_0x1da7dd(0x21b)]!==_0x16c5e3||_0x2c1497<_0x28a042||_0x2c1497>_0x5e88a1['startIndex']+0x1||_0x2c0b6a[_0x1da7dd(0x1ea)][_0x5e88a1['startIndex']]!==_0x43bcc7['DataStreamTreeTokenType'][_0x1da7dd(0x1cc)])return null;let _0x10345b=_0x87b91a((_0x1b86af=_0x2c0b6a['paragraphs'])==null?[]:_0x1b86af,_0x5e88a1),_0x55883c=_0x2c0b6a[_0x1da7dd(0x1ea)]['slice'](_0x10345b,_0x5e88a1[_0x1da7dd(0x21b)]);return Array[_0x1da7dd(0x1e9)](_0x55883c)[_0x1da7dd(0x23b)](_0x3ec3dd=>_0x3ec3dd===_0x43bcc7['DataStreamTreeTokenType'][_0x1da7dd(0x228)])?{'paragraph':_0x5e88a1,'endTokenOffset':_0x28a042}:null;}function _0x499d4e(_0x349d89,_0x5160df,_0x14fdf7,_0x2c126b={}){const _0x4b0615=_0x455bbe;var _0x1bd86c,_0x420baa;if(_0x14fdf7){if(_0x349d89[_0x4b0615(0x1ea)]=''+_0x349d89[_0x4b0615(0x1ea)][_0x4b0615(0x1ce)](0x0,_0x5160df)+_0x14fdf7+_0x349d89[_0x4b0615(0x1ea)][_0x4b0615(0x1ce)](_0x5160df),_0x4839ee(_0x349d89,_0x5160df,_0x14fdf7['length']),(_0x1bd86c=_0x2c126b['paragraphs'])!=null&&_0x1bd86c['length']){var _0x391985;_0x349d89['paragraphs']=[...(_0x391985=_0x349d89[_0x4b0615(0x1e4)])==null?[]:_0x391985,..._0x2c126b[_0x4b0615(0x1e4)]['map'](_0x1a1148=>({..._0x1a1148,'startIndex':_0x1a1148[_0x4b0615(0x21b)]+_0x5160df}))][_0x4b0615(0x1da)]((_0x289a1f,_0x288635)=>_0x289a1f[_0x4b0615(0x21b)]-_0x288635[_0x4b0615(0x21b)]);}if((_0x420baa=_0x2c126b[_0x4b0615(0x1ed)])!=null&&_0x420baa[_0x4b0615(0x239)]){var _0x2f0e8c;_0x349d89[_0x4b0615(0x1ed)]=[...(_0x2f0e8c=_0x349d89[_0x4b0615(0x1ed)])==null?[]:_0x2f0e8c,..._0x2c126b['blockRanges'][_0x4b0615(0x1f1)](_0xed8249=>({..._0xed8249,'startIndex':_0xed8249['startIndex']+_0x5160df,'endIndex':_0xed8249['endIndex']+_0x5160df}))][_0x4b0615(0x1da)]((_0x590ab2,_0x40b169)=>_0x590ab2[_0x4b0615(0x21b)]-_0x40b169[_0x4b0615(0x21b)]);}}}function _0x51f4c3(_0x5e5c90,_0x3be74c,_0xad70b3){const _0x414a64=_0x455bbe;let _0x25ae26=_0xad70b3-_0x3be74c;_0x5e5c90[_0x414a64(0x1ea)]=''+_0x5e5c90[_0x414a64(0x1ea)]['slice'](0x0,_0x3be74c)+_0x5e5c90['dataStream'][_0x414a64(0x1ce)](_0xad70b3),_0x11fd93(_0x5e5c90,_0x3be74c,_0x25ae26);}function _0x4839ee(_0x4d8c08,_0x4bc95a,_0x2fb328){const _0xafedcd=_0x455bbe;_0x4d8c08['paragraphs']=_0x2bc65f(_0x4d8c08[_0xafedcd(0x1e4)],_0x4bc95a,_0x2fb328),_0x4d8c08['sectionBreaks']=_0x2bc65f(_0x4d8c08['sectionBreaks'],_0x4bc95a,_0x2fb328),_0x4d8c08[_0xafedcd(0x240)]=_0x2bc65f(_0x4d8c08[_0xafedcd(0x240)],_0x4bc95a,_0x2fb328),_0x4d8c08[_0xafedcd(0x22a)]=_0x2bed33(_0x4d8c08[_0xafedcd(0x22a)],_0x4bc95a,_0x2fb328),_0x4d8c08[_0xafedcd(0x1df)]=_0x43467d(_0x4d8c08[_0xafedcd(0x1df)],_0x4bc95a,_0x2fb328),_0x4d8c08[_0xafedcd(0x1f8)]=_0x43467d(_0x4d8c08['customRanges'],_0x4bc95a,_0x2fb328),_0x4d8c08[_0xafedcd(0x245)]=_0x43467d(_0x4d8c08[_0xafedcd(0x245)],_0x4bc95a,_0x2fb328),_0x4d8c08[_0xafedcd(0x1ed)]=_0x43467d(_0x4d8c08[_0xafedcd(0x1ed)],_0x4bc95a,_0x2fb328);}function _0x11fd93(_0xbfbb35,_0x183b98,_0x2aa561){const _0x2b5489=_0x455bbe;var _0x249576,_0x2d5756;_0xbfbb35[_0x2b5489(0x1e4)]=_0x169b46(_0xbfbb35[_0x2b5489(0x1e4)],_0x183b98,_0x2aa561),_0xbfbb35[_0x2b5489(0x1fa)]=_0x169b46(_0xbfbb35[_0x2b5489(0x1fa)],_0x183b98,_0x2aa561),_0xbfbb35[_0x2b5489(0x240)]=_0x169b46(_0xbfbb35[_0x2b5489(0x240)],_0x183b98,_0x2aa561),_0xbfbb35['textRuns']=(_0x249576=_0x5229c9((_0x2d5756=_0xbfbb35['textRuns'])==null?void 0x0:_0x2d5756[_0x2b5489(0x1f1)](_0x43f61f=>({..._0x43f61f,'startIndex':_0x43f61f['st'],'endIndex':_0x43f61f['ed']})),_0x183b98,_0x2aa561))==null?void 0x0:_0x249576[_0x2b5489(0x1f1)](_0x376570=>{let {startIndex:_0x124d6b,endIndex:_0x4ae38f,..._0x500d17}=_0x376570;return{..._0x500d17,'st':_0x124d6b,'ed':_0x4ae38f};}),_0xbfbb35[_0x2b5489(0x1df)]=_0x5229c9(_0xbfbb35[_0x2b5489(0x1df)],_0x183b98,_0x2aa561),_0xbfbb35[_0x2b5489(0x1f8)]=_0x5229c9(_0xbfbb35['customRanges'],_0x183b98,_0x2aa561),_0xbfbb35[_0x2b5489(0x245)]=_0x5229c9(_0xbfbb35['customDecorations'],_0x183b98,_0x2aa561),_0xbfbb35[_0x2b5489(0x1ed)]=_0x5229c9(_0xbfbb35[_0x2b5489(0x1ed)],_0x183b98,_0x2aa561);}function _0x2bc65f(_0x1a9c3c,_0x4448e8,_0x2c238a){const _0x1ec5a3=_0x455bbe;return _0x1a9c3c==null?void 0x0:_0x1a9c3c[_0x1ec5a3(0x1f1)](_0x1573ed=>_0x1573ed[_0x1ec5a3(0x21b)]>=_0x4448e8?{..._0x1573ed,'startIndex':_0x1573ed['startIndex']+_0x2c238a}:_0x1573ed);}function _0x169b46(_0x2a85fc,_0x1a0f28,_0x17962f){const _0x402268=_0x455bbe;let _0x4fa90a=_0x1a0f28+_0x17962f;return _0x2a85fc==null?void 0x0:_0x2a85fc[_0x402268(0x1f1)](_0xcff10=>_0xcff10['startIndex']>=_0x1a0f28&&_0xcff10[_0x402268(0x21b)]<_0x4fa90a?null:_0xcff10['startIndex']>=_0x4fa90a?{..._0xcff10,'startIndex':_0xcff10['startIndex']-_0x17962f}:_0xcff10)['filter'](_0xc317d5=>_0xc317d5!=null);}function _0x2bed33(_0x4c207f,_0x45fb8a,_0x3931ef){const _0x29a9e2=_0x455bbe;return _0x4c207f==null?void 0x0:_0x4c207f[_0x29a9e2(0x1f1)](_0x111c32=>_0x111c32['st']>=_0x45fb8a?{..._0x111c32,'st':_0x111c32['st']+_0x3931ef,'ed':_0x111c32['ed']+_0x3931ef}:_0x111c32['ed']>_0x45fb8a?{..._0x111c32,'ed':_0x111c32['ed']+_0x3931ef}:_0x111c32);}function _0x43467d(_0x48a311,_0x4a7c86,_0x4bae3c){const _0x13ded2=_0x455bbe;return _0x48a311==null?void 0x0:_0x48a311[_0x13ded2(0x1f1)](_0x504c04=>_0x504c04[_0x13ded2(0x21b)]>=_0x4a7c86?{..._0x504c04,'startIndex':_0x504c04['startIndex']+_0x4bae3c,'endIndex':_0x504c04[_0x13ded2(0x219)]+_0x4bae3c}:_0x504c04[_0x13ded2(0x219)]>=_0x4a7c86?{..._0x504c04,'endIndex':_0x504c04[_0x13ded2(0x219)]+_0x4bae3c}:_0x504c04);}function _0x5229c9(_0x49e2b3,_0x396e14,_0xb754d){const _0x28e3f9=_0x455bbe;let _0x32fc17=_0x396e14+_0xb754d;return _0x49e2b3==null?void 0x0:_0x49e2b3[_0x28e3f9(0x1f1)](_0x955ce0=>_0x955ce0[_0x28e3f9(0x21b)]>=_0x396e14&&_0x955ce0[_0x28e3f9(0x219)]<_0x32fc17?null:_0x955ce0[_0x28e3f9(0x21b)]>=_0x32fc17?{..._0x955ce0,'startIndex':_0x955ce0['startIndex']-_0xb754d,'endIndex':_0x955ce0['endIndex']-_0xb754d}:_0x955ce0[_0x28e3f9(0x219)]>=_0x396e14?{..._0x955ce0,'startIndex':_0x955ce0[_0x28e3f9(0x21b)]<_0x396e14?_0x955ce0[_0x28e3f9(0x21b)]:_0x396e14,'endIndex':Math[_0x28e3f9(0x22e)](_0x396e14,_0x955ce0['endIndex']-_0xb754d)}:_0x955ce0)[_0x28e3f9(0x20a)](_0x5e6f13=>_0x5e6f13!=null);}function _0x2bdade(_0x37af59,_0x1251a7,_0x39dba1,_0x17a72f){const _0x16f006=_0x455bbe;_0x37af59==null||_0x37af59[_0x16f006(0x22d)](_0x395c2f=>{const _0x5861a1=_0x16f006;_0x395c2f['startIndex']>=_0x1251a7&&_0x395c2f[_0x5861a1(0x21b)]<_0x39dba1&&(_0x395c2f['startIndex']+=_0x17a72f);});}function _0x53e8e4(_0x490e0d,_0xc32bc1,_0x357806,_0x4ce8e5){_0x490e0d==null||_0x490e0d['forEach'](_0x109ab0=>{_0x109ab0['st']>=_0xc32bc1&&_0x109ab0['st']<_0x357806?(_0x109ab0['st']+=_0x4ce8e5,_0x109ab0['ed']+=_0x4ce8e5):_0x109ab0['ed']>_0xc32bc1&&_0x109ab0['ed']<_0x357806&&(_0x109ab0['ed']+=_0x4ce8e5);});}function _0x46d802(_0x187e49,_0xc2b79e,_0x2fb805,_0x3d9f14){const _0x18a0b3=_0x455bbe;_0x187e49==null||_0x187e49[_0x18a0b3(0x22d)](_0x33067c=>{const _0x457152=_0x18a0b3;_0x33067c[_0x457152(0x21b)]>=_0xc2b79e&&_0x33067c['startIndex']<_0x2fb805?(_0x33067c[_0x457152(0x21b)]+=_0x3d9f14,_0x33067c[_0x457152(0x219)]+=_0x3d9f14):_0x33067c['endIndex']>_0xc2b79e&&_0x33067c[_0x457152(0x219)]<_0x2fb805&&(_0x33067c['endIndex']+=_0x3d9f14);});}let _0x4606a1={'id':_0x455bbe(0x208),'type':_0x43bcc7['CommandType'][_0x455bbe(0x1de)],'handler':_0x3435a4=>{const _0x5d1455=_0x455bbe;let _0x334ce4=_0x310261(_0x3435a4);if(_0x334ce4)return _0x3435a4[_0x5d1455(0x248)](_0x43bcc7[_0x5d1455(0x247)])[_0x5d1455(0x1f3)](_0x5ea983['id'],{'startOffset':_0x334ce4['startOffset'],'endOffset':_0x334ce4[_0x5d1455(0x246)],'unitId':_0x334ce4[_0x5d1455(0x230)]});let _0x3afd53=_0x3a7b77(_0x3435a4);if(!_0x3afd53)return!0x1;let _0x4f74ad=_0x3afd53['startIndex']+0x1;return _0x3435a4[_0x5d1455(0x248)](_0x43bcc7[_0x5d1455(0x247)])[_0x5d1455(0x1f3)](_0x5ea983['id'],{'startOffset':_0x4f74ad,'endOffset':_0x4f74ad});}},_0x5ea983={'id':_0x455bbe(0x205),'type':_0x43bcc7[_0x455bbe(0x231)][_0x455bbe(0x1de)],'handler':(_0x54f0b4,_0x4ea18c)=>{const _0x458d52=_0x455bbe;var _0x47660b,_0x3b79fc,_0x5b6947;let _0x17fe49=_0x1e431b(_0x54f0b4,_0x4ea18c==null?void 0x0:_0x4ea18c[_0x458d52(0x230)]);if(!_0x17fe49)return!0x1;let _0x42a321=_0x1c06d7(_0x54f0b4),_0x64ec1f=_0x44703c({'blockId':(_0x47660b=_0x4ea18c==null?void 0x0:_0x4ea18c['blockId'])==null?(0x0,_0x43bcc7[_0x458d52(0x213)])(0x6):_0x47660b,'documentData':_0x17fe49[_0x458d52(0x1c3)],'endOffset':(_0x3b79fc=_0x4ea18c==null?void 0x0:_0x4ea18c[_0x458d52(0x246)])==null?_0x42a321==null?void 0x0:_0x42a321['endOffset']:_0x3b79fc,'startOffset':(_0x5b6947=_0x4ea18c==null?void 0x0:_0x4ea18c['startOffset'])==null?_0x42a321==null?void 0x0:_0x42a321[_0x458d52(0x1f6)]:_0x5b6947});return _0x4e684c(_0x17fe49[_0x458d52(0x1e8)],_0x17fe49['unitId'],_0x17fe49[_0x458d52(0x1c3)],_0x64ec1f['nextDocumentData'],_0x64ec1f[_0x458d52(0x1ec)]);}},_0x4dff14={'id':_0x455bbe(0x210),'type':_0x43bcc7['CommandType'][_0x455bbe(0x1de)],'handler':(_0x17e422,_0x1084b2)=>{const _0x2b8ded=_0x455bbe;var _0x35a5e8,_0x4d016e;let _0x3a8be4=_0x1e431b(_0x17e422,_0x1084b2==null?void 0x0:_0x1084b2[_0x2b8ded(0x230)]);if(!_0x3a8be4)return!0x1;let _0x30bf80=(_0x35a5e8=_0x1084b2==null?void 0x0:_0x1084b2[_0x2b8ded(0x1ec)])==null?(_0x4d016e=_0x1c06d7(_0x17e422))==null?void 0x0:_0x4d016e[_0x2b8ded(0x1f6)]:_0x35a5e8;if(_0x30bf80==null)return!0x1;let _0x1ffead=_0x3a87e6({'cursorOffset':_0x30bf80,'documentData':_0x3a8be4[_0x2b8ded(0x1c3)]});return _0x1ffead?_0x4e684c(_0x3a8be4[_0x2b8ded(0x1e8)],_0x3a8be4[_0x2b8ded(0x230)],_0x3a8be4[_0x2b8ded(0x1c3)],_0x1ffead['nextDocumentData'],_0x1ffead[_0x2b8ded(0x1ec)]):!0x1;}},_0x215e8c={'id':'docs-quote.command.cancel-empty-paragraph','type':_0x43bcc7[_0x455bbe(0x231)]['COMMAND'],'handler':(_0x5e876e,_0x128959)=>{const _0x4c8c3b=_0x455bbe;var _0x2150b1,_0x9b753;let _0x903a21=_0x1e431b(_0x5e876e,_0x128959==null?void 0x0:_0x128959[_0x4c8c3b(0x230)]);if(!_0x903a21)return!0x1;let _0x1e0629=(_0x2150b1=_0x128959==null?void 0x0:_0x128959[_0x4c8c3b(0x1ec)])==null?(_0x9b753=_0x1c06d7(_0x5e876e))==null?void 0x0:_0x9b753[_0x4c8c3b(0x1f6)]:_0x2150b1;if(_0x1e0629==null)return!0x1;let _0x4016c5=_0x4caa55({'cursorOffset':_0x1e0629,'documentData':_0x903a21['previousDocumentData'],'paragraphStartIndex':_0x128959==null?void 0x0:_0x128959['paragraphStartIndex']});return _0x4016c5?_0x4e684c(_0x903a21[_0x4c8c3b(0x1e8)],_0x903a21[_0x4c8c3b(0x230)],_0x903a21[_0x4c8c3b(0x1c3)],_0x4016c5[_0x4c8c3b(0x1f4)],_0x4016c5['cursorOffset']):!0x1;}};function _0x1e431b(_0x53feb6,_0x929e8d){const _0x796a6a=_0x455bbe;let _0x445f31=_0x53feb6[_0x796a6a(0x248)](_0x43bcc7['IUniverInstanceService']),_0x3e98bc=_0x929e8d?_0x445f31[_0x796a6a(0x1d4)](_0x929e8d):_0x445f31[_0x796a6a(0x22f)](_0x43bcc7[_0x796a6a(0x1c8)][_0x796a6a(0x1ef)]);return _0x3e98bc?{'commandService':_0x53feb6[_0x796a6a(0x248)](_0x43bcc7[_0x796a6a(0x247)]),'previousDocumentData':_0x3e98bc[_0x796a6a(0x1ee)](),'unitId':_0x3e98bc[_0x796a6a(0x217)]()}:null;}function _0x1c06d7(_0x3886e3){const _0x5d8a56=_0x455bbe;var _0x20d431;return(_0x20d431=_0x3886e3[_0x5d8a56(0x248)](_0x3b2716[_0x5d8a56(0x234)])[_0x5d8a56(0x20f)]())==null?void 0x0:_0x20d431[0x0];}function _0x310261(_0x5a19f8){const _0x1a6f6a=_0x455bbe;var _0x2af6d2;let _0xe2e58b=(_0x2af6d2=_0x5a19f8[_0x1a6f6a(0x248)](_0x43bcc7[_0x1a6f6a(0x1fe)])[_0x1a6f6a(0x22f)](_0x43bcc7['UniverInstanceType'][_0x1a6f6a(0x1ef)]))==null?void 0x0:_0x2af6d2[_0x1a6f6a(0x217)]();try{return _0x5a19f8[_0x1a6f6a(0x248)](_0x22558b[_0x1a6f6a(0x20d)])[_0x1a6f6a(0x235)](_0xe2e58b);}catch{return null;}}function _0x3a7b77(_0x40d27f){const _0x12d463=_0x455bbe;var _0x39ec4f,_0x257aa3,_0x10de09;let _0x504965=_0x1c06d7(_0x40d27f);if(!_0x504965)return null;let _0x1b1076=_0x40d27f['get'](_0x43bcc7[_0x12d463(0x1fe)])[_0x12d463(0x22f)](_0x43bcc7[_0x12d463(0x1c8)][_0x12d463(0x1ef)]),_0x1acecc=_0x1b1076==null?void 0x0:_0x1b1076[_0x12d463(0x1d0)]();return _0x1acecc?(_0x39ec4f=_0x43bcc7[_0x12d463(0x1d1)][_0x12d463(0x1e0)][_0x12d463(0x204)](_0x504965,(_0x257aa3=_0x1acecc[_0x12d463(0x1e4)])==null?[]:_0x257aa3,(_0x10de09=_0x1acecc['dataStream'])==null?'':_0x10de09)[0x0])==null?null:_0x39ec4f:null;}function _0x32ffb3(_0x21c43e,_0x11691c){const _0x4ec7c6=_0x455bbe;var _0x3bb8e5,_0x27a907,_0x55155a,_0x2a2d70,_0x211f52,_0x2ea266,_0x172b18,_0x209fac,_0x42cc0e,_0x5bd9ac,_0x8bd234,_0x33dc3f,_0x6e88fd,_0x33c1e4,_0x3856ec,_0x5a8a76,_0x4bb8cb,_0xa0173f;let _0x8e361e=_0x43bcc7['JSONX'][_0x4ec7c6(0x20e)]();return[_0xe6e38a(_0x8e361e,[_0x4ec7c6(0x220),_0x4ec7c6(0x1ea)],(_0x3bb8e5=_0x21c43e[_0x4ec7c6(0x220)])==null?void 0x0:_0x3bb8e5[_0x4ec7c6(0x1ea)],(_0x27a907=_0x11691c[_0x4ec7c6(0x220)])==null?void 0x0:_0x27a907[_0x4ec7c6(0x1ea)]),_0xe6e38a(_0x8e361e,[_0x4ec7c6(0x220),_0x4ec7c6(0x1e4)],(_0x55155a=_0x21c43e[_0x4ec7c6(0x220)])==null?void 0x0:_0x55155a[_0x4ec7c6(0x1e4)],(_0x2a2d70=_0x11691c[_0x4ec7c6(0x220)])==null?void 0x0:_0x2a2d70[_0x4ec7c6(0x1e4)]),_0xe6e38a(_0x8e361e,[_0x4ec7c6(0x220),_0x4ec7c6(0x1fa)],(_0x211f52=_0x21c43e['body'])==null?void 0x0:_0x211f52[_0x4ec7c6(0x1fa)],(_0x2ea266=_0x11691c['body'])==null?void 0x0:_0x2ea266[_0x4ec7c6(0x1fa)]),_0xe6e38a(_0x8e361e,['body',_0x4ec7c6(0x22a)],(_0x172b18=_0x21c43e['body'])==null?void 0x0:_0x172b18[_0x4ec7c6(0x22a)],(_0x209fac=_0x11691c['body'])==null?void 0x0:_0x209fac['textRuns']),_0xe6e38a(_0x8e361e,[_0x4ec7c6(0x220),_0x4ec7c6(0x240)],(_0x42cc0e=_0x21c43e['body'])==null?void 0x0:_0x42cc0e['customBlocks'],(_0x5bd9ac=_0x11691c['body'])==null?void 0x0:_0x5bd9ac['customBlocks']),_0xe6e38a(_0x8e361e,[_0x4ec7c6(0x220),_0x4ec7c6(0x1f8)],(_0x8bd234=_0x21c43e[_0x4ec7c6(0x220)])==null?void 0x0:_0x8bd234[_0x4ec7c6(0x1f8)],(_0x33dc3f=_0x11691c[_0x4ec7c6(0x220)])==null?void 0x0:_0x33dc3f[_0x4ec7c6(0x1f8)]),_0xe6e38a(_0x8e361e,[_0x4ec7c6(0x220),_0x4ec7c6(0x245)],(_0x6e88fd=_0x21c43e[_0x4ec7c6(0x220)])==null?void 0x0:_0x6e88fd[_0x4ec7c6(0x245)],(_0x33c1e4=_0x11691c['body'])==null?void 0x0:_0x33c1e4[_0x4ec7c6(0x245)]),_0xe6e38a(_0x8e361e,['body',_0x4ec7c6(0x1df)],(_0x3856ec=_0x21c43e[_0x4ec7c6(0x220)])==null?void 0x0:_0x3856ec[_0x4ec7c6(0x1df)],(_0x5a8a76=_0x11691c[_0x4ec7c6(0x220)])==null?void 0x0:_0x5a8a76[_0x4ec7c6(0x1df)]),_0xe6e38a(_0x8e361e,[_0x4ec7c6(0x220),'blockRanges'],(_0x4bb8cb=_0x21c43e[_0x4ec7c6(0x220)])==null?void 0x0:_0x4bb8cb[_0x4ec7c6(0x1ed)],(_0xa0173f=_0x11691c[_0x4ec7c6(0x220)])==null?void 0x0:_0xa0173f[_0x4ec7c6(0x1ed)])][_0x4ec7c6(0x20a)](Boolean)[_0x4ec7c6(0x1c4)]((_0x113364,_0x96478a)=>_0x43bcc7['JSONX']['compose'](_0x113364,_0x96478a),null);}function _0xe6e38a(_0x292a22,_0x38b1bc,_0x27caf6,_0x3c91e4){const _0x5ddbe0=_0x455bbe;return _0x43bcc7[_0x5ddbe0(0x1cb)][_0x5ddbe0(0x211)](_0x27caf6,_0x3c91e4)?null:_0x292a22['replaceOp'](_0x38b1bc,_0x27caf6,_0x3c91e4);}function _0x4e684c(_0x102c89,_0xce10ff,_0x3882f0,_0x4cbbff,_0x4c6406){const _0xf2c392=_0x455bbe;let _0x4484d7=_0x32ffb3(_0x3882f0,_0x4cbbff);return _0x4484d7?!!_0x102c89[_0xf2c392(0x1f3)](_0x3b2716[_0xf2c392(0x1fd)]['id'],{'unitId':_0xce10ff,'actions':_0x4484d7,'textRanges':[{'startOffset':_0x4c6406,'endOffset':_0x4c6406,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}var _0xdef425=_0x455bbe(0x1d8),_0x20c653='0.24.0-insiders.20260528-29f582d';let _0x41df92=_0x455bbe(0x22b);Symbol(_0x41df92);let _0x5f2278={};function _0x5765b3(_0x32b387,_0x306e0c){return function(_0x4862f1,_0x2a0547){_0x306e0c(_0x4862f1,_0x2a0547,_0x32b387);};}function _0x38643c(_0x2e7252,_0x4a6cc0,_0x23c5c4,_0xca6bb){const _0x2d0d13=_0x455bbe;var _0x36fdf4=arguments['length'],_0x3a7db2=_0x36fdf4<0x3?_0x4a6cc0:_0xca6bb===null?_0xca6bb=Object[_0x2d0d13(0x200)](_0x4a6cc0,_0x23c5c4):_0xca6bb,_0x55aeaf;if(typeof Reflect==_0x2d0d13(0x241)&&typeof Reflect[_0x2d0d13(0x243)]=='function')_0x3a7db2=Reflect[_0x2d0d13(0x243)](_0x2e7252,_0x4a6cc0,_0x23c5c4,_0xca6bb);else{for(var _0x1c97f9=_0x2e7252[_0x2d0d13(0x239)]-0x1;_0x1c97f9>=0x0;_0x1c97f9--)(_0x55aeaf=_0x2e7252[_0x1c97f9])&&(_0x3a7db2=(_0x36fdf4<0x3?_0x55aeaf(_0x3a7db2):_0x36fdf4>0x3?_0x55aeaf(_0x4a6cc0,_0x23c5c4,_0x3a7db2):_0x55aeaf(_0x4a6cc0,_0x23c5c4))||_0x3a7db2);}return _0x36fdf4>0x3&&_0x3a7db2&&Object[_0x2d0d13(0x1ca)](_0x4a6cc0,_0x23c5c4,_0x3a7db2),_0x3a7db2;}function _0x1eb1e6(_0x58b62c){'@babel/helpers - typeof';const _0x22132b=_0x455bbe;return _0x1eb1e6=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x22132b(0x225)?function(_0x10a1dc){return typeof _0x10a1dc;}:function(_0x15401b){const _0x322f12=_0x22132b;return _0x15401b&&typeof Symbol==_0x322f12(0x1c5)&&_0x15401b[_0x322f12(0x201)]===Symbol&&_0x15401b!==Symbol['prototype']?_0x322f12(0x225):typeof _0x15401b;},_0x1eb1e6(_0x58b62c);}function _0x4bd1a6(_0x33fc13,_0x101dfc){const _0x2fd8cb=_0x455bbe;if(_0x1eb1e6(_0x33fc13)!=_0x2fd8cb(0x241)||!_0x33fc13)return _0x33fc13;var _0x323214=_0x33fc13[Symbol[_0x2fd8cb(0x223)]];if(_0x323214!==void 0x0){var _0x184129=_0x323214['call'](_0x33fc13,_0x101dfc||_0x2fd8cb(0x202));if(_0x1eb1e6(_0x184129)!='object')return _0x184129;throw TypeError(_0x2fd8cb(0x1fc));}return(_0x101dfc===_0x2fd8cb(0x222)?String:Number)(_0x33fc13);}function _0x34a331(_0x11ce44){const _0x5b3b3c=_0x455bbe;var _0x5d04ef=_0x4bd1a6(_0x11ce44,_0x5b3b3c(0x222));return _0x1eb1e6(_0x5d04ef)==_0x5b3b3c(0x225)?_0x5d04ef:_0x5d04ef+'';}function _0x15dbfb(_0x3d52a6,_0x5dab93,_0x4b710b){const _0x2e3861=_0x455bbe;return(_0x5dab93=_0x34a331(_0x5dab93))in _0x3d52a6?Object[_0x2e3861(0x1ca)](_0x3d52a6,_0x5dab93,{'value':_0x4b710b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3d52a6[_0x5dab93]=_0x4b710b,_0x3d52a6;}let _0x35b39a=class extends _0x43bcc7[_0x455bbe(0x216)]{constructor(_0x3754ca=_0x5f2278,_0x35aabf,_0x1ff799,_0x1f3f03){const _0x370f43=_0x455bbe;super(),this[_0x370f43(0x1d7)]=_0x3754ca,this[_0x370f43(0x23f)]=_0x35aabf,this['_commandService']=_0x1ff799,this[_0x370f43(0x23a)]=_0x1f3f03;let {..._0x55e148}=(0x0,_0x43bcc7[_0x370f43(0x233)])({},_0x5f2278,this['_config']);this[_0x370f43(0x23a)][_0x370f43(0x1c6)](_0x41df92,_0x55e148);}[_0x455bbe(0x20c)](){const _0x3d8226=_0x455bbe;[_0x5ea983,_0x4606a1,_0x4dff14,_0x215e8c][_0x3d8226(0x22d)](_0x2594df=>this[_0x3d8226(0x1ff)](this[_0x3d8226(0x1cf)][_0x3d8226(0x21f)](_0x2594df)));}};_0x15dbfb(_0x35b39a,_0x455bbe(0x238),_0x12d263),_0x15dbfb(_0x35b39a,'packageName',_0xdef425),_0x15dbfb(_0x35b39a,_0x455bbe(0x1f7),_0x20c653),_0x15dbfb(_0x35b39a,_0x455bbe(0x1e3),_0x43bcc7['UniverInstanceType'][_0x455bbe(0x1ef)]),_0x35b39a=_0x38643c([(0x0,_0x43bcc7['DependentOn'])(_0x3d4a32[_0x455bbe(0x1dd)],_0x3b2716[_0x455bbe(0x23e)]),_0x5765b3(0x1,(0x0,_0x43bcc7['Inject'])(_0x43bcc7[_0x455bbe(0x215)])),_0x5765b3(0x2,_0x43bcc7[_0x455bbe(0x247)]),_0x5765b3(0x3,_0x43bcc7[_0x455bbe(0x209)])],_0x35b39a),_0x21313e[_0x455bbe(0x249)]=_0x511825,_0x21313e[_0x455bbe(0x1fb)]=_0x12d263,_0x21313e['DocsQuoteCancelEmptyParagraphCommand']=_0x215e8c,_0x21313e['DocsQuoteExitCommand']=_0x4dff14,_0x21313e[_0x455bbe(0x1e5)]=_0x4606a1,_0x21313e['DocsQuoteInsertCommand']=_0x5ea983,Object['defineProperty'](_0x21313e,_0x455bbe(0x1d6),{'enumerable':!0x0,'get':function(){return _0x35b39a;}}),_0x21313e[_0x455bbe(0x1f9)]=_0x4caa55,_0x21313e['buildExitQuoteActions']=_0x3a87e6,_0x21313e[_0x455bbe(0x232)]=_0x44703c,_0x21313e[_0x455bbe(0x224)]=_0x4f2cc7;}));function _0x2ea5(){const _0x29c7f1=['consumeInsertRange','1114400CzVwaU','paragraphStyle','pluginName','length','_configService','every','documentData','blockType','UniverDocsPlugin','_injector','customBlocks','object','16lFJUNi','decorate','242610sHMPyY','customDecorations','endOffset','ICommandService','get','DOCS_QUOTE_BLOCK_TYPE','previousDocumentData','reduce','function','setConfig','296345ijFznu','UniverInstanceType','find','defineProperty','Tools','PARAGRAPH','UniverCore','slice','_commandService','getBody','BuildTextUtils','DataStreamTreeTokenType','6245mCmriy','getUniverDocInstance','Module','UniverDocsQuotePlugin','_config','@univerjs-pro/docs-quote','57KRreeD','sort','indentStart','spaceBelow','UniverLicensePlugin','COMMAND','tables','range','21724MHLObn','toStringTag','type','paragraphs','DocsQuoteInsertBelowCommand','@univerjs/docs','632646AZSlQm','commandService','from','dataStream','342actSOd','cursorOffset','blockRanges','getSnapshot','UNIVER_DOC','indentEnd','map','endsWith','syncExecuteCommand','nextDocumentData','blockId','startOffset','version','customRanges','buildCancelEmptyQuoteParagraphActions','sectionBreaks','DOCS_QUOTE_PLUGIN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','RichTextEditingMutation','IUniverInstanceService','disposeWithMe','getOwnPropertyDescriptor','constructor','default','BLOCK_START','getParagraphsInRange','docs-quote.command.insert','deepClone','1940RJBWYQ','docs-quote.command.insert-below','IConfigService','filter','quote','onStarting','DocContentInsertService','getInstance','getTextRanges','docs-quote.command.exit','diffValue','SECTION_BREAK','generateRandomId','paragraphStartIndex','Injector','Plugin','getUnitId','Document\x20body\x20is\x20required','endIndex','paragraph','startIndex','@univerjs/docs-ui','UniverDocs','textStyle','registerCommand','body','UniverDocsUi','string','toPrimitive','findQuoteRangeAtOffset','symbol','spaceAbove','join','BLOCK_END','indexOf','textRuns','docs-quote.config','min','forEach','max','getCurrentUnitOfType','unitId','CommandType','buildInsertQuoteActions','merge','DocSelectionManagerService'];_0x2ea5=function(){return _0x29c7f1;};return _0x2ea5();}
|
package/package.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@univerjs-pro/docs-quote",
|
|
3
|
+
"version": "0.24.0-insiders.20260528-29f582d",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "Quote block model integration for Univer Docs.",
|
|
6
|
+
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
7
|
+
"funding": {
|
|
8
|
+
"type": "opencollective",
|
|
9
|
+
"url": "https://opencollective.com/univer"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://univer.ai",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/dream-num/univer"
|
|
15
|
+
},
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/dream-num/univer/issues"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"univer",
|
|
21
|
+
"univer-pro",
|
|
22
|
+
"docs",
|
|
23
|
+
"quote",
|
|
24
|
+
"plugin"
|
|
25
|
+
],
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"import": "./lib/es/index.js",
|
|
29
|
+
"require": "./lib/cjs/index.js",
|
|
30
|
+
"types": "./lib/types/index.d.ts"
|
|
31
|
+
},
|
|
32
|
+
"./*": {
|
|
33
|
+
"import": "./lib/es/*",
|
|
34
|
+
"require": "./lib/cjs/*",
|
|
35
|
+
"types": "./lib/types/index.d.ts"
|
|
36
|
+
},
|
|
37
|
+
"./facade": {
|
|
38
|
+
"import": "./lib/es/facade.js",
|
|
39
|
+
"require": "./lib/cjs/facade.js",
|
|
40
|
+
"types": "./lib/types/facade/index.d.ts"
|
|
41
|
+
},
|
|
42
|
+
"./lib/facade": {
|
|
43
|
+
"import": "./lib/es/facade.js",
|
|
44
|
+
"require": "./lib/cjs/facade.js",
|
|
45
|
+
"types": "./lib/types/facade/index.d.ts"
|
|
46
|
+
},
|
|
47
|
+
"./lib/*": "./lib/*"
|
|
48
|
+
},
|
|
49
|
+
"main": "./lib/es/index.js",
|
|
50
|
+
"types": "./lib/types/index.d.ts",
|
|
51
|
+
"publishConfig": {
|
|
52
|
+
"access": "public"
|
|
53
|
+
},
|
|
54
|
+
"directories": {
|
|
55
|
+
"lib": "lib"
|
|
56
|
+
},
|
|
57
|
+
"files": [
|
|
58
|
+
"lib"
|
|
59
|
+
],
|
|
60
|
+
"dependencies": {
|
|
61
|
+
"@univerjs/docs-ui": "0.24.0-insiders.20260528-29f582d",
|
|
62
|
+
"@univerjs/core": "0.24.0-insiders.20260528-29f582d",
|
|
63
|
+
"@univerjs/docs": "0.24.0-insiders.20260528-29f582d",
|
|
64
|
+
"@univerjs-pro/license": "0.24.0-insiders.20260528-29f582d"
|
|
65
|
+
},
|
|
66
|
+
"devDependencies": {
|
|
67
|
+
"rxjs": "7.8.2",
|
|
68
|
+
"typescript": "^6.0.3",
|
|
69
|
+
"vitest": "^4.1.6",
|
|
70
|
+
"@univerjs-infra/shared": "0.24.0"
|
|
71
|
+
},
|
|
72
|
+
"scripts": {
|
|
73
|
+
"test": "vitest run",
|
|
74
|
+
"test:watch": "vitest",
|
|
75
|
+
"coverage": "vitest run --coverage",
|
|
76
|
+
"typecheck": "tsc --noEmit",
|
|
77
|
+
"build:bundle": "univer-cli build",
|
|
78
|
+
"build:types": "tsc -p tsconfig.node.json",
|
|
79
|
+
"build": "pnpm run build:bundle && pnpm run build:types"
|
|
80
|
+
},
|
|
81
|
+
"module": "./lib/es/index.js"
|
|
82
|
+
}
|