@univerjs-pro/docs-code 1.0.0-alpha.7 → 1.0.0-alpha.8
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/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/facade/f-document.d.ts +48 -5
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +5 -5
|
@@ -67,36 +67,72 @@ export interface IFDocumentCodeMixin {
|
|
|
67
67
|
* Inserts a code block around a paragraph element.
|
|
68
68
|
* The paragraph wrapper is resolved by persisted `paragraphId` before the command runs, so facade edits
|
|
69
69
|
* inserted before the paragraph do not require recalculating offsets.
|
|
70
|
+
*
|
|
71
|
+
* This API writes `keepLines` and `widowControl` to every inserted paragraph.
|
|
72
|
+
* For multiple paragraphs it also writes `keepNext = TRUE` between adjacent
|
|
73
|
+
* paragraphs and `keepNext = FALSE` on the final paragraph, so the code block
|
|
74
|
+
* does not capture the following body paragraph. Callers do not need to add
|
|
75
|
+
* these pagination styles manually.
|
|
76
|
+
*
|
|
77
|
+
* Traditional Docs apply the styles during physical pagination. A code block
|
|
78
|
+
* that fits on a fresh page stays together; content taller than a fresh page
|
|
79
|
+
* remains splittable. Modern and Unspecified Docs preserve the styles in the
|
|
80
|
+
* model but do not apply them during physical pagination.
|
|
81
|
+
*
|
|
70
82
|
* @param {FDocumentParagraph} paragraph The paragraph to convert to a code block.
|
|
71
83
|
* @param {IDocsCodeInsertParagraphFacadeOptions} [options] Optional block id and code config.
|
|
72
84
|
* @returns {FDocumentCode | null} The newly inserted FDocumentCode instance, or `null` if the insert code failed.
|
|
73
85
|
* @example
|
|
74
86
|
* ```ts
|
|
75
87
|
* const fDocument = univerAPI.getActiveDocument();
|
|
88
|
+
* if (!fDocument) {
|
|
89
|
+
* throw new Error('No active document');
|
|
90
|
+
* }
|
|
76
91
|
*
|
|
77
92
|
* // Insert a code block around a paragraph with TypeScript language config.
|
|
78
93
|
* const paragraph = fDocument.appendParagraph('const total = rows.length;');
|
|
79
94
|
* const code = fDocument.insertCode(paragraph, {
|
|
80
95
|
* config: { language: 'typescript' },
|
|
81
96
|
* });
|
|
82
|
-
*
|
|
97
|
+
* if (!code) {
|
|
98
|
+
* throw new Error('Failed to insert the code block');
|
|
99
|
+
* }
|
|
100
|
+
* console.log({
|
|
101
|
+
* language: code.getConfig()?.language,
|
|
102
|
+
* wordPaginationApplied: fDocument.isTraditional(),
|
|
103
|
+
* });
|
|
83
104
|
* ```
|
|
84
105
|
*/
|
|
85
106
|
insertCode(paragraph: FDocumentParagraph, options?: IDocsCodeInsertParagraphFacadeOptions): FDocumentCode | null;
|
|
86
107
|
/**
|
|
87
108
|
* Inserts a code around a document range, or inserts an empty code when the range is collapsed.
|
|
88
109
|
* Prefer the paragraph overload for agent-authored code.
|
|
110
|
+
*
|
|
111
|
+
* The same automatic pagination styles as the paragraph overload are written
|
|
112
|
+
* for every paragraph in the range. Traditional Docs apply them; Modern and
|
|
113
|
+
* Unspecified Docs preserve them in the model but ignore them during physical
|
|
114
|
+
* pagination. Content taller than a fresh page remains splittable.
|
|
115
|
+
*
|
|
89
116
|
* @param {IDocsCodeInsertFacadeOptions} [options] Optional block id and start/end offsets.
|
|
90
117
|
* @returns {FDocumentCode | null} The newly inserted FDocumentCode instance, or `null` if the insert code failed.
|
|
91
118
|
* @example
|
|
92
119
|
* ```ts
|
|
93
120
|
* const fDocument = univerAPI.getActiveDocument();
|
|
121
|
+
* if (!fDocument) {
|
|
122
|
+
* throw new Error('No active document');
|
|
123
|
+
* }
|
|
94
124
|
*
|
|
95
125
|
* // Insert a code block around the text "Snippet" in a table cell with TypeScript language config.
|
|
96
126
|
* const table = fDocument.findTableByText('Snippet');
|
|
97
127
|
* const range = table?.getCell(1, 0)?.getContentRange();
|
|
98
|
-
*
|
|
99
|
-
*
|
|
128
|
+
* if (!range) {
|
|
129
|
+
* throw new Error('Snippet table cell not found');
|
|
130
|
+
* }
|
|
131
|
+
* const code = fDocument.insertCode({ ...range, config: { language: 'typescript' } });
|
|
132
|
+
* if (!code) {
|
|
133
|
+
* throw new Error('Failed to insert the table-cell code block');
|
|
134
|
+
* }
|
|
135
|
+
* console.log(code.getId());
|
|
100
136
|
*
|
|
101
137
|
* // Insert a code block around the text "const" and the next three paragraphs with TypeScript language config.
|
|
102
138
|
* // const cell = {
|
|
@@ -107,9 +143,16 @@ export interface IFDocumentCodeMixin {
|
|
|
107
143
|
* if (paragraph) {
|
|
108
144
|
* const paragraphs = fDocument.getParagraphs();
|
|
109
145
|
* const { paragraphIndex, startOffset } = paragraph.getInfo();
|
|
110
|
-
* const
|
|
146
|
+
* const finalParagraph = paragraphs[paragraphIndex + 3];
|
|
147
|
+
* if (!finalParagraph) {
|
|
148
|
+
* throw new Error('Expected three paragraphs after the code start');
|
|
149
|
+
* }
|
|
150
|
+
* const { endOffset } = finalParagraph.getInfo();
|
|
111
151
|
* const code2 = fDocument.insertCode({ startOffset, endOffset, config: { language: 'typescript' } });
|
|
112
|
-
*
|
|
152
|
+
* if (!code2) {
|
|
153
|
+
* throw new Error('Failed to insert the multi-paragraph code block');
|
|
154
|
+
* }
|
|
155
|
+
* console.log(code2.getId());
|
|
113
156
|
* }
|
|
114
157
|
* ```
|
|
115
158
|
*/
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x4ab8(_0x35c588,_0x1946fb){_0x35c588=_0x35c588-0x8f;var _0x426bbe=_0x426b();var _0x4ab8a5=_0x426bbe[_0x35c588];return _0x4ab8a5;}function _0x426b(){var _0x412c95=['insertCode','561687rfkSjT','_injector','getText','join','getId','blockRanges','defineProperty','text','5925410oTipxR','3486000TfKffS','getConfig','_createFDocumentCode','toPrimitive','syncExecuteCommand','FDocument','findCodeByText','@univerjs/core','remove','_unitId','4PrQKNY','normalizeDocsCodeConfig','describe','_document','16760232sGMXJl','@univerjs/docs/facade','includes','save','config','string','_getBlockRange','5478567ZDgprc','createInstance','amd','UniverDocsFacade','_getDocumentData','filter','getCodeConfig','some','getRange','CODE','Injector','FDocumentCode','getOwnPropertyDescriptor','PARAGRAPH','blockId','startIndex','default','dataStream','from','endIndex','@univerjs-pro/docs-code','updateConfig','getCode','4582434LMJERT','DocsCodeInsertCommand','DataStreamTreeTokenType','exports','DocsCodeRemoveCommand','BLOCK_END','Module','_getBlockRanges','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UniverProDocsCodeFacade','decorate','DocsCodeUpdateCommand','_blockId','1792418UzMzHa','blockType','extend','UniverProDocsCode','isParagraphFacade','DocsCodeUnwrapCommand','replace','get','constructor','BLOCK_START','SECTION_BREAK','findCodes','Inject','body','DocumentBlockRangeType','7nMksNg','map','object','find','slice','symbol','function','UniverCore','ICommandService'];_0x426b=function(){return _0x412c95;};return _0x426b();}(function(_0x3874d9,_0x54a37b){var _0x5d9301=_0x4ab8,_0x3ad295=_0x3874d9();while(!![]){try{var _0x53475f=-parseInt(_0x5d9301(0x91))/0x1+-parseInt(_0x5d9301(0xd3))/0x2+-parseInt(_0x5d9301(0xaf))/0x3*(parseInt(_0x5d9301(0xa4))/0x4)+parseInt(_0x5d9301(0x99))/0x5+-parseInt(_0x5d9301(0xc6))/0x6*(-parseInt(_0x5d9301(0xe2))/0x7)+parseInt(_0x5d9301(0x9a))/0x8+parseInt(_0x5d9301(0xa8))/0x9;if(_0x53475f===_0x54a37b)break;else _0x3ad295['push'](_0x3ad295['shift']());}catch(_0x3da005){_0x3ad295['push'](_0x3ad295['shift']());}}}(_0x426b,0xeb0ae),function(_0x415787,_0x3ac7fb){var _0x4357e2=_0x4ab8;typeof exports==_0x4357e2(0xe4)&&typeof module<'u'?_0x3ac7fb(exports,require('@univerjs-pro/docs-code'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define=='function'&&define[_0x4357e2(0xb1)]?define([_0x4357e2(0xc9),_0x4357e2(0xc3),_0x4357e2(0xa1),_0x4357e2(0xa9)],_0x3ac7fb):(_0x415787=typeof globalThis<'u'?globalThis:_0x415787||self,_0x3ac7fb(_0x415787[_0x4357e2(0xcf)]={},_0x415787[_0x4357e2(0xd6)],_0x415787[_0x4357e2(0xe9)],_0x415787[_0x4357e2(0xb2)]));}(this,function(_0x152b47,_0x13ce60,_0x585616,_0x4c6b03){var _0x500ae8=_0x4ab8;Object[_0x500ae8(0x97)](_0x152b47,Symbol['toStringTag'],{'value':_0x500ae8(0xcc)});function _0x4066de(_0x12805e){'@babel/helpers - typeof';var _0x40d085=_0x500ae8;return _0x4066de=typeof Symbol==_0x40d085(0xe8)&&typeof Symbol['iterator']==_0x40d085(0xe7)?function(_0x18637c){return typeof _0x18637c;}:function(_0x5db017){var _0x3f479f=_0x40d085;return _0x5db017&&typeof Symbol==_0x3f479f(0xe8)&&_0x5db017[_0x3f479f(0xdb)]===Symbol&&_0x5db017!==Symbol['prototype']?_0x3f479f(0xe7):typeof _0x5db017;},_0x4066de(_0x12805e);}function _0x593b0c(_0x4f691e,_0x4b5e49){var _0x345d3e=_0x500ae8;if(_0x4066de(_0x4f691e)!='object'||!_0x4f691e)return _0x4f691e;var _0x4f9b1a=_0x4f691e[Symbol[_0x345d3e(0x9d)]];if(_0x4f9b1a!==void 0x0){var _0x16156a=_0x4f9b1a['call'](_0x4f691e,_0x4b5e49||_0x345d3e(0xbf));if(_0x4066de(_0x16156a)!=_0x345d3e(0xe4))return _0x16156a;throw TypeError(_0x345d3e(0xce));}return(_0x4b5e49===_0x345d3e(0xad)?String:Number)(_0x4f691e);}function _0x34c802(_0x5a7f96){var _0x5552a2=_0x500ae8,_0x5883d3=_0x593b0c(_0x5a7f96,_0x5552a2(0xad));return _0x4066de(_0x5883d3)==_0x5552a2(0xe7)?_0x5883d3:_0x5883d3+'';}function _0xbf8c92(_0x4754e5,_0x3ee231,_0x234870){var _0x30de92=_0x500ae8;return(_0x3ee231=_0x34c802(_0x3ee231))in _0x4754e5?Object[_0x30de92(0x97)](_0x4754e5,_0x3ee231,{'value':_0x234870,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4754e5[_0x3ee231]=_0x234870,_0x4754e5;}function _0x1ad032(_0x3fc1a1,_0x183e4e){return function(_0xdcd572,_0x2f2226){_0x183e4e(_0xdcd572,_0x2f2226,_0x3fc1a1);};}function _0xed7a7c(_0x256df4,_0xb04f60,_0x4916a4,_0x379e00){var _0x2aeaeb=_0x500ae8,_0x543123=arguments['length'],_0x1f4c9c=_0x543123<0x3?_0xb04f60:_0x379e00===null?_0x379e00=Object[_0x2aeaeb(0xbb)](_0xb04f60,_0x4916a4):_0x379e00,_0xcb9b67;if(typeof Reflect==_0x2aeaeb(0xe4)&&typeof Reflect[_0x2aeaeb(0xd0)]=='function')_0x1f4c9c=Reflect[_0x2aeaeb(0xd0)](_0x256df4,_0xb04f60,_0x4916a4,_0x379e00);else{for(var _0x367fe6=_0x256df4['length']-0x1;_0x367fe6>=0x0;_0x367fe6--)(_0xcb9b67=_0x256df4[_0x367fe6])&&(_0x1f4c9c=(_0x543123<0x3?_0xcb9b67(_0x1f4c9c):_0x543123>0x3?_0xcb9b67(_0xb04f60,_0x4916a4,_0x1f4c9c):_0xcb9b67(_0xb04f60,_0x4916a4))||_0x1f4c9c);}return _0x543123>0x3&&_0x1f4c9c&&Object[_0x2aeaeb(0x97)](_0xb04f60,_0x4916a4,_0x1f4c9c),_0x1f4c9c;}let _0x198765=class{constructor(_0x34d877,_0xe9c099,_0x3aed56){var _0x5558ee=_0x500ae8;this['_document']=_0x34d877,this[_0x5558ee(0xd2)]=_0xe9c099,this[_0x5558ee(0x92)]=_0x3aed56,_0xbf8c92(this,_0x5558ee(0xa3),void 0x0),this['_unitId']=this[_0x5558ee(0xa7)][_0x5558ee(0x95)]();}[_0x500ae8(0x95)](){return this['_blockId'];}[_0x500ae8(0xb7)](){var _0x26991a=_0x500ae8;let _0x1af725=this[_0x26991a(0xae)]();return _0x1af725?{'blockId':_0x1af725[_0x26991a(0xbd)],'endIndex':_0x1af725['endIndex'],'startIndex':_0x1af725[_0x26991a(0xbe)]}:null;}[_0x500ae8(0x93)](){var _0x5a8ad6=_0x500ae8,_0x568b46;let _0x4ed85b=this[_0x5a8ad6(0xae)](),_0x134213=(_0x568b46=this[_0x5a8ad6(0xb3)]()[_0x5a8ad6(0xe0)])==null?void 0x0:_0x568b46[_0x5a8ad6(0xc0)];return!_0x4ed85b||!_0x134213?'':_0x4e4469(_0x134213[_0x5a8ad6(0xe6)](_0x4ed85b[_0x5a8ad6(0xbe)]+0x1,_0x4ed85b[_0x5a8ad6(0xc2)]));}[_0x500ae8(0xa6)](){var _0x2e02b6=_0x500ae8;let _0x194c68=this[_0x2e02b6(0xb7)]();return _0x194c68?{..._0x194c68,'config':this[_0x2e02b6(0x9b)](),'text':this[_0x2e02b6(0x93)](),'type':_0x585616[_0x2e02b6(0xe1)][_0x2e02b6(0xb8)]}:null;}[_0x500ae8(0x9b)](){var _0xad2ebf=_0x500ae8;return(0x0,_0x13ce60[_0xad2ebf(0xa5)])(this[_0xad2ebf(0x92)]['get'](_0x13ce60['DocsCodeModel'])[_0xad2ebf(0xb5)](this[_0xad2ebf(0xa3)],this[_0xad2ebf(0xd2)]));}[_0x500ae8(0xc4)](_0x59ece1){var _0x1ea8fe=_0x500ae8;return this[_0x1ea8fe(0x92)]['get'](_0x585616[_0x1ea8fe(0x8f)])['syncExecuteCommand'](_0x13ce60[_0x1ea8fe(0xd1)]['id'],{'blockId':this[_0x1ea8fe(0xd2)],'config':_0x59ece1[_0x1ea8fe(0xac)],'unitId':this[_0x1ea8fe(0xa3)]});}['unwrap'](){var _0x5eb01f=_0x500ae8;return this['_injector']['get'](_0x585616['ICommandService'])['syncExecuteCommand'](_0x13ce60[_0x5eb01f(0xd8)]['id'],{'blockId':this[_0x5eb01f(0xd2)],'unitId':this[_0x5eb01f(0xa3)]});}[_0x500ae8(0xa2)](){var _0x14976b=_0x500ae8;return this['_injector'][_0x14976b(0xda)](_0x585616[_0x14976b(0x8f)])[_0x14976b(0x9e)](_0x13ce60[_0x14976b(0xca)]['id'],{'blockId':this['_blockId'],'unitId':this[_0x14976b(0xa3)]});}['_getBlockRange'](){var _0x3be849=_0x500ae8,_0x3bdf93;let _0x5a967c=(_0x3bdf93=this[_0x3be849(0xb3)]()['body'])==null||(_0x3bdf93=_0x3bdf93[_0x3be849(0x96)])==null?void 0x0:_0x3bdf93[_0x3be849(0xe5)](_0xb35801=>_0xb35801[_0x3be849(0xbd)]===this[_0x3be849(0xd2)]&&_0xb35801['blockType']===_0x585616['DocumentBlockRangeType']['CODE']);return _0x5a967c==null?null:_0x5a967c;}['_getDocumentData'](){var _0x53a91e=_0x500ae8;return this[_0x53a91e(0xa7)][_0x53a91e(0xab)]();}};_0x198765=_0xed7a7c([_0x1ad032(0x2,(0x0,_0x585616[_0x500ae8(0xdf)])(_0x585616[_0x500ae8(0xb9)]))],_0x198765);function _0x4e4469(_0x476607){var _0x8f4879=_0x500ae8;return Array[_0x8f4879(0xc1)](_0x476607)[_0x8f4879(0xe3)](_0x362b10=>_0x362b10===_0x585616['DataStreamTreeTokenType'][_0x8f4879(0xbc)]?'\x0a':_0x362b10)[_0x8f4879(0xb4)](_0x2d952c=>_0x2d952c!==_0x585616[_0x8f4879(0xc8)][_0x8f4879(0xdc)]&&_0x2d952c!==_0x585616['DataStreamTreeTokenType'][_0x8f4879(0xcb)]&&_0x2d952c!==_0x585616[_0x8f4879(0xc8)][_0x8f4879(0xdd)])[_0x8f4879(0x94)]('')[_0x8f4879(0xd9)](/\n$/,'');}var _0x24ef66=class extends _0x4c6b03['FDocument']{['getCodes'](){var _0x5a8daf=_0x500ae8;return this[_0x5a8daf(0xcd)]()[_0x5a8daf(0xb4)](_0x277b0a=>_0x277b0a[_0x5a8daf(0xd4)]===_0x585616[_0x5a8daf(0xe1)]['CODE'])[_0x5a8daf(0xe3)](_0x305774=>this[_0x5a8daf(0x9c)](_0x305774[_0x5a8daf(0xbd)]));}[_0x500ae8(0xc5)](_0xff128e){var _0x24a1b7=_0x500ae8;return this[_0x24a1b7(0xcd)]()[_0x24a1b7(0xb6)](_0xc753f6=>_0xc753f6[_0x24a1b7(0xbd)]===_0xff128e&&_0xc753f6[_0x24a1b7(0xd4)]===_0x585616[_0x24a1b7(0xe1)][_0x24a1b7(0xb8)])?this[_0x24a1b7(0x9c)](_0xff128e):null;}['getCodeAt'](_0x3f7a7b){var _0x455f2f=_0x500ae8;let _0x39ed5c=this[_0x455f2f(0xcd)]()['find'](_0x16c185=>_0x16c185[_0x455f2f(0xd4)]===_0x585616[_0x455f2f(0xe1)][_0x455f2f(0xb8)]&&_0x16c185[_0x455f2f(0xbe)]<=_0x3f7a7b&&_0x3f7a7b<=_0x16c185[_0x455f2f(0xc2)]);return _0x39ed5c?this[_0x455f2f(0x9c)](_0x39ed5c['blockId']):null;}[_0x500ae8(0xa0)](_0x2a71f6){var _0x423a0e=_0x500ae8,_0x94daae;return(_0x94daae=this[_0x423a0e(0xde)](_0x2a71f6)[0x0])==null?null:_0x94daae;}[_0x500ae8(0xde)](_0x264bef){var _0x3813ae=_0x500ae8;let _0x4ae8b0=typeof _0x264bef=='string'?{'text':_0x264bef}:_0x264bef;return this['getCodes']()[_0x3813ae(0xb4)](_0x461394=>!(_0x4ae8b0[_0x3813ae(0xbd)]&&_0x461394[_0x3813ae(0x95)]()!==_0x4ae8b0[_0x3813ae(0xbd)]||_0x4ae8b0['text']&&!_0x461394[_0x3813ae(0x93)]()[_0x3813ae(0xaa)](_0x4ae8b0[_0x3813ae(0x98)])));}[_0x500ae8(0x90)](_0x21041f={},_0x369ae8={}){var _0x18c8f5=_0x500ae8,_0xfa1e5c;let _0x391fc3=this['_injector'][_0x18c8f5(0xda)](_0x585616[_0x18c8f5(0x8f)]),_0x205b35=(0x0,_0x4c6b03[_0x18c8f5(0xd7)])(_0x21041f)?{..._0x369ae8,..._0x21041f['getRange']()}:_0x21041f,_0x16aaaa=(_0xfa1e5c=_0x205b35[_0x18c8f5(0xbd)])==null?(0x0,_0x585616['generateRandomId'])(0x6):_0xfa1e5c;return _0x391fc3[_0x18c8f5(0x9e)](_0x13ce60[_0x18c8f5(0xc7)]['id'],{..._0x205b35,'blockId':_0x16aaaa,'unitId':this[_0x18c8f5(0x95)]()})?this['getCode'](_0x16aaaa):null;}[_0x500ae8(0xcd)](){var _0x574df4=_0x500ae8,_0x30f6d6,_0x1dc64e;return(_0x30f6d6=(_0x1dc64e=this[_0x574df4(0xab)]()[_0x574df4(0xe0)])==null?void 0x0:_0x1dc64e[_0x574df4(0x96)])==null?[]:_0x30f6d6;}[_0x500ae8(0x9c)](_0x2f8990){var _0x207300=_0x500ae8;return this[_0x207300(0x92)][_0x207300(0xb0)](_0x198765,this,_0x2f8990);}};_0x4c6b03[_0x500ae8(0x9f)][_0x500ae8(0xd5)](_0x24ef66),Object[_0x500ae8(0x97)](_0x152b47,_0x500ae8(0xba),{'enumerable':!0x0,'get':function(){return _0x198765;}});}));
|
|
1
|
+
(function(_0x16471e,_0x24428f){var _0x426457=_0x22e5,_0x32b4f8=_0x16471e();while(!![]){try{var _0xf733a3=parseInt(_0x426457(0x19a))/0x1+-parseInt(_0x426457(0x188))/0x2+-parseInt(_0x426457(0x196))/0x3+parseInt(_0x426457(0x176))/0x4*(-parseInt(_0x426457(0x14f))/0x5)+parseInt(_0x426457(0x19d))/0x6*(parseInt(_0x426457(0x195))/0x7)+-parseInt(_0x426457(0x1a4))/0x8+parseInt(_0x426457(0x182))/0x9;if(_0xf733a3===_0x24428f)break;else _0x32b4f8['push'](_0x32b4f8['shift']());}catch(_0x5a7123){_0x32b4f8['push'](_0x32b4f8['shift']());}}}(_0x5ae6,0x36c20),function(_0x53cec7,_0x1b4189){var _0x161041=_0x22e5;typeof exports=='object'&&typeof module<'u'?_0x1b4189(exports,require('@univerjs-pro/docs-code'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define==_0x161041(0x168)&&define[_0x161041(0x14d)]?define(['exports','@univerjs-pro/docs-code','@univerjs/core',_0x161041(0x16f)],_0x1b4189):(_0x53cec7=typeof globalThis<'u'?globalThis:_0x53cec7||self,_0x1b4189(_0x53cec7[_0x161041(0x15b)]={},_0x53cec7['UniverProDocsCode'],_0x53cec7[_0x161041(0x1a1)],_0x53cec7['UniverDocsFacade']));}(this,function(_0xeb2c96,_0x53c098,_0x5d8338,_0x9c5dab){var _0x3ae081=_0x22e5;Object[_0x3ae081(0x154)](_0xeb2c96,Symbol[_0x3ae081(0x18d)],{'value':_0x3ae081(0x186)});function _0xe7f4fe(_0x5e4166){'@babel/helpers - typeof';var _0x46c8c1=_0x3ae081;return _0xe7f4fe=typeof Symbol==_0x46c8c1(0x168)&&typeof Symbol[_0x46c8c1(0x17c)]==_0x46c8c1(0x151)?function(_0x4174a3){return typeof _0x4174a3;}:function(_0x114d23){var _0x328a4d=_0x46c8c1;return _0x114d23&&typeof Symbol==_0x328a4d(0x168)&&_0x114d23[_0x328a4d(0x16c)]===Symbol&&_0x114d23!==Symbol[_0x328a4d(0x181)]?_0x328a4d(0x151):typeof _0x114d23;},_0xe7f4fe(_0x5e4166);}function _0x36ecef(_0x38fd96,_0x113aa8){var _0xa7e37=_0x3ae081;if(_0xe7f4fe(_0x38fd96)!=_0xa7e37(0x158)||!_0x38fd96)return _0x38fd96;var _0x504cd8=_0x38fd96[Symbol[_0xa7e37(0x164)]];if(_0x504cd8!==void 0x0){var _0x51062f=_0x504cd8[_0xa7e37(0x190)](_0x38fd96,_0x113aa8||_0xa7e37(0x159));if(_0xe7f4fe(_0x51062f)!=_0xa7e37(0x158))return _0x51062f;throw TypeError(_0xa7e37(0x14e));}return(_0x113aa8===_0xa7e37(0x1a2)?String:Number)(_0x38fd96);}function _0x50a581(_0x517ab5){var _0x56742f=_0x3ae081,_0x62be50=_0x36ecef(_0x517ab5,_0x56742f(0x1a2));return _0xe7f4fe(_0x62be50)=='symbol'?_0x62be50:_0x62be50+'';}function _0x2a83a7(_0x388331,_0x3ab29c,_0x499fc9){var _0x29b53e=_0x3ae081;return(_0x3ab29c=_0x50a581(_0x3ab29c))in _0x388331?Object[_0x29b53e(0x154)](_0x388331,_0x3ab29c,{'value':_0x499fc9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x388331[_0x3ab29c]=_0x499fc9,_0x388331;}function _0x253297(_0x12af02,_0x21bb39){return function(_0x298901,_0x5f4235){_0x21bb39(_0x298901,_0x5f4235,_0x12af02);};}function _0x20cd18(_0x2698e7,_0xa1fbee,_0x10a602,_0x49e0c0){var _0x193f7c=_0x3ae081,_0x343c55=arguments[_0x193f7c(0x160)],_0x2584d1=_0x343c55<0x3?_0xa1fbee:_0x49e0c0===null?_0x49e0c0=Object[_0x193f7c(0x18b)](_0xa1fbee,_0x10a602):_0x49e0c0,_0x1f18c0;if(typeof Reflect==_0x193f7c(0x158)&&typeof Reflect[_0x193f7c(0x15a)]==_0x193f7c(0x168))_0x2584d1=Reflect[_0x193f7c(0x15a)](_0x2698e7,_0xa1fbee,_0x10a602,_0x49e0c0);else{for(var _0xbd6386=_0x2698e7[_0x193f7c(0x160)]-0x1;_0xbd6386>=0x0;_0xbd6386--)(_0x1f18c0=_0x2698e7[_0xbd6386])&&(_0x2584d1=(_0x343c55<0x3?_0x1f18c0(_0x2584d1):_0x343c55>0x3?_0x1f18c0(_0xa1fbee,_0x10a602,_0x2584d1):_0x1f18c0(_0xa1fbee,_0x10a602))||_0x2584d1);}return _0x343c55>0x3&&_0x2584d1&&Object[_0x193f7c(0x154)](_0xa1fbee,_0x10a602,_0x2584d1),_0x2584d1;}let _0x466f26=class{constructor(_0x4fa0c5,_0x29cd78,_0x55f54d){var _0x14e8be=_0x3ae081;this[_0x14e8be(0x15f)]=_0x4fa0c5,this['_blockId']=_0x29cd78,this[_0x14e8be(0x161)]=_0x55f54d,_0x2a83a7(this,_0x14e8be(0x19e),void 0x0),this[_0x14e8be(0x19e)]=this[_0x14e8be(0x15f)][_0x14e8be(0x163)]();}[_0x3ae081(0x163)](){var _0x104bac=_0x3ae081;return this[_0x104bac(0x166)];}[_0x3ae081(0x157)](){var _0x38dfc7=_0x3ae081;let _0x3f07cd=this['_getBlockRange']();return _0x3f07cd?{'blockId':_0x3f07cd['blockId'],'endIndex':_0x3f07cd[_0x38dfc7(0x172)],'startIndex':_0x3f07cd[_0x38dfc7(0x193)]}:null;}[_0x3ae081(0x178)](){var _0x179e6a=_0x3ae081,_0x15745d;let _0x200732=this[_0x179e6a(0x169)](),_0xd6dde5=(_0x15745d=this[_0x179e6a(0x16a)]()[_0x179e6a(0x19f)])==null?void 0x0:_0x15745d[_0x179e6a(0x18a)];return!_0x200732||!_0xd6dde5?'':_0x71e384(_0xd6dde5[_0x179e6a(0x16d)](_0x200732[_0x179e6a(0x193)]+0x1,_0x200732[_0x179e6a(0x172)]));}[_0x3ae081(0x194)](){var _0x184a66=_0x3ae081;let _0x49c468=this[_0x184a66(0x157)]();return _0x49c468?{..._0x49c468,'config':this[_0x184a66(0x15d)](),'text':this[_0x184a66(0x178)](),'type':_0x5d8338[_0x184a66(0x17e)][_0x184a66(0x184)]}:null;}[_0x3ae081(0x15d)](){var _0x51ae57=_0x3ae081;return(0x0,_0x53c098[_0x51ae57(0x189)])(this[_0x51ae57(0x161)][_0x51ae57(0x198)](_0x53c098['DocsCodeModel'])[_0x51ae57(0x17d)](this[_0x51ae57(0x19e)],this[_0x51ae57(0x166)]));}['updateConfig'](_0x5df48e){var _0x12f4f0=_0x3ae081;return this[_0x12f4f0(0x161)][_0x12f4f0(0x198)](_0x5d8338[_0x12f4f0(0x173)])[_0x12f4f0(0x15e)](_0x53c098[_0x12f4f0(0x183)]['id'],{'blockId':this['_blockId'],'config':_0x5df48e[_0x12f4f0(0x192)],'unitId':this['_unitId']});}['unwrap'](){var _0x50d4fa=_0x3ae081;return this[_0x50d4fa(0x161)]['get'](_0x5d8338[_0x50d4fa(0x173)])[_0x50d4fa(0x15e)](_0x53c098[_0x50d4fa(0x152)]['id'],{'blockId':this['_blockId'],'unitId':this['_unitId']});}[_0x3ae081(0x15c)](){var _0x399083=_0x3ae081;return this[_0x399083(0x161)][_0x399083(0x198)](_0x5d8338[_0x399083(0x173)])['syncExecuteCommand'](_0x53c098[_0x399083(0x150)]['id'],{'blockId':this[_0x399083(0x166)],'unitId':this[_0x399083(0x19e)]});}[_0x3ae081(0x169)](){var _0x203b63=_0x3ae081,_0x1d7960;let _0x15b6fc=(_0x1d7960=this[_0x203b63(0x16a)]()[_0x203b63(0x19f)])==null||(_0x1d7960=_0x1d7960['blockRanges'])==null?void 0x0:_0x1d7960['find'](_0x115064=>_0x115064['blockId']===this[_0x203b63(0x166)]&&_0x115064[_0x203b63(0x197)]===_0x5d8338['DocumentBlockRangeType']['CODE']);return _0x15b6fc==null?null:_0x15b6fc;}[_0x3ae081(0x16a)](){var _0xe00837=_0x3ae081;return this[_0xe00837(0x15f)][_0xe00837(0x175)]();}};_0x466f26=_0x20cd18([_0x253297(0x2,(0x0,_0x5d8338['Inject'])(_0x5d8338['Injector']))],_0x466f26);function _0x71e384(_0x264ecd){var _0xb79db0=_0x3ae081;return Array[_0xb79db0(0x16e)](_0x264ecd)['map'](_0x548086=>_0x548086===_0x5d8338[_0xb79db0(0x153)][_0xb79db0(0x155)]?'\x0a':_0x548086)[_0xb79db0(0x17f)](_0x4e2550=>_0x4e2550!==_0x5d8338[_0xb79db0(0x153)][_0xb79db0(0x16b)]&&_0x4e2550!==_0x5d8338[_0xb79db0(0x153)][_0xb79db0(0x165)]&&_0x4e2550!==_0x5d8338['DataStreamTreeTokenType'][_0xb79db0(0x17a)])[_0xb79db0(0x18f)]('')[_0xb79db0(0x162)](/\n$/,'');}var _0x460f19=class extends _0x9c5dab[_0x3ae081(0x191)]{['getCodes'](){var _0xbd6844=_0x3ae081;return this['_getBlockRanges']()['filter'](_0x1f0d9e=>_0x1f0d9e['blockType']===_0x5d8338[_0xbd6844(0x17e)]['CODE'])[_0xbd6844(0x187)](_0x7bc2ea=>this[_0xbd6844(0x18c)](_0x7bc2ea[_0xbd6844(0x174)]));}[_0x3ae081(0x170)](_0x52be01){var _0x4ae733=_0x3ae081;return this['_getBlockRanges']()[_0x4ae733(0x17b)](_0x6e5e03=>_0x6e5e03[_0x4ae733(0x174)]===_0x52be01&&_0x6e5e03[_0x4ae733(0x197)]===_0x5d8338[_0x4ae733(0x17e)][_0x4ae733(0x184)])?this[_0x4ae733(0x18c)](_0x52be01):null;}[_0x3ae081(0x19c)](_0xc5e160){var _0x3f846f=_0x3ae081;let _0x43f1bb=this[_0x3f846f(0x14c)]()[_0x3f846f(0x156)](_0x4da66f=>_0x4da66f[_0x3f846f(0x197)]===_0x5d8338[_0x3f846f(0x17e)][_0x3f846f(0x184)]&&_0x4da66f[_0x3f846f(0x193)]<=_0xc5e160&&_0xc5e160<=_0x4da66f[_0x3f846f(0x172)]);return _0x43f1bb?this[_0x3f846f(0x18c)](_0x43f1bb['blockId']):null;}[_0x3ae081(0x1a3)](_0x14ef5f){var _0x3f4532=_0x3ae081,_0x11dd87;return(_0x11dd87=this[_0x3f4532(0x18e)](_0x14ef5f)[0x0])==null?null:_0x11dd87;}[_0x3ae081(0x18e)](_0x2c40b6){var _0x116971=_0x3ae081;let _0x62b3e0=typeof _0x2c40b6==_0x116971(0x1a2)?{'text':_0x2c40b6}:_0x2c40b6;return this[_0x116971(0x1a0)]()[_0x116971(0x17f)](_0x407c4e=>!(_0x62b3e0['blockId']&&_0x407c4e['getId']()!==_0x62b3e0[_0x116971(0x174)]||_0x62b3e0['text']&&!_0x407c4e[_0x116971(0x178)]()[_0x116971(0x185)](_0x62b3e0['text'])));}[_0x3ae081(0x167)](_0x3d2374={},_0x5b28bc={}){var _0x16c3b0=_0x3ae081,_0x626942;let _0x5b793a=this[_0x16c3b0(0x161)][_0x16c3b0(0x198)](_0x5d8338[_0x16c3b0(0x173)]),_0x2851cb=(0x0,_0x9c5dab[_0x16c3b0(0x179)])(_0x3d2374)?{..._0x5b28bc,..._0x3d2374['getRange']()}:_0x3d2374,_0xac7ca9=(_0x626942=_0x2851cb['blockId'])==null?(0x0,_0x5d8338[_0x16c3b0(0x199)])(0x6):_0x626942;return _0x5b793a[_0x16c3b0(0x15e)](_0x53c098[_0x16c3b0(0x180)]['id'],{..._0x2851cb,'blockId':_0xac7ca9,'unitId':this[_0x16c3b0(0x163)]()})?this[_0x16c3b0(0x170)](_0xac7ca9):null;}[_0x3ae081(0x14c)](){var _0x381404=_0x3ae081,_0x5cbbed,_0x4ac0cb;return(_0x5cbbed=(_0x4ac0cb=this[_0x381404(0x175)]()[_0x381404(0x19f)])==null?void 0x0:_0x4ac0cb[_0x381404(0x171)])==null?[]:_0x5cbbed;}['_createFDocumentCode'](_0x2b7c31){var _0x41288b=_0x3ae081;return this[_0x41288b(0x161)]['createInstance'](_0x466f26,this,_0x2b7c31);}};_0x9c5dab[_0x3ae081(0x191)][_0x3ae081(0x19b)](_0x460f19),Object['defineProperty'](_0xeb2c96,_0x3ae081(0x177),{'enumerable':!0x0,'get':function(){return _0x466f26;}});}));function _0x22e5(_0x4dc6c4,_0x4aff31){_0x4dc6c4=_0x4dc6c4-0x14c;var _0x5ae60f=_0x5ae6();var _0x22e581=_0x5ae60f[_0x4dc6c4];return _0x22e581;}function _0x5ae6(){var _0xe386b5=['_document','length','_injector','replace','getId','toPrimitive','BLOCK_END','_blockId','insertCode','function','_getBlockRange','_getDocumentData','BLOCK_START','constructor','slice','from','@univerjs/docs/facade','getCode','blockRanges','endIndex','ICommandService','blockId','save','20EtAxqY','FDocumentCode','getText','isParagraphFacade','SECTION_BREAK','some','iterator','getCodeConfig','DocumentBlockRangeType','filter','DocsCodeInsertCommand','prototype','814527OUPrxV','DocsCodeUpdateCommand','CODE','includes','Module','map','463378zmfqTI','normalizeDocsCodeConfig','dataStream','getOwnPropertyDescriptor','_createFDocumentCode','toStringTag','findCodes','join','call','FDocument','config','startIndex','describe','98jBWiun','1081389CfsmLt','blockType','get','generateRandomId','360842RfvBlw','extend','getCodeAt','191298qNwjOC','_unitId','body','getCodes','UniverCore','string','findCodeByText','640336IqWDJu','_getBlockRanges','amd','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','1225AmXkGz','DocsCodeRemoveCommand','symbol','DocsCodeUnwrapCommand','DataStreamTreeTokenType','defineProperty','PARAGRAPH','find','getRange','object','default','decorate','UniverProDocsCodeFacade','remove','getConfig','syncExecuteCommand'];_0x5ae6=function(){return _0xe386b5;};return _0x5ae6();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0xf638(_0x2ba148,_0x47c712){_0x2ba148=_0x2ba148-0x1f0;const _0x3ea311=_0x3ea3();let _0xf638a8=_0x3ea311[_0x2ba148];return _0xf638a8;}(function(_0x172ef6,_0x3293ba){const _0xf6e46=_0xf638,_0x2a2fa1=_0x172ef6();while(!![]){try{const _0x35bf80=parseInt(_0xf6e46(0x277))/0x1+parseInt(_0xf6e46(0x21f))/0x2+parseInt(_0xf6e46(0x276))/0x3*(-parseInt(_0xf6e46(0x23d))/0x4)+-parseInt(_0xf6e46(0x202))/0x5*(parseInt(_0xf6e46(0x262))/0x6)+parseInt(_0xf6e46(0x27c))/0x7+-parseInt(_0xf6e46(0x2a1))/0x8*(parseInt(_0xf6e46(0x1f9))/0x9)+parseInt(_0xf6e46(0x2b2))/0xa;if(_0x35bf80===_0x3293ba)break;else _0x2a2fa1['push'](_0x2a2fa1['shift']());}catch(_0x47d1ee){_0x2a2fa1['push'](_0x2a2fa1['shift']());}}}(_0x3ea3,0xb15bd),function(_0x3def12,_0x2bc9e5){const _0xed5e33=_0xf638;typeof exports==_0xed5e33(0x2a7)&&typeof module<'u'?_0x2bc9e5(exports,require('@univerjs/core'),require('rxjs'),require('@univerjs/docs'),require('@univerjs-pro/license')):typeof define==_0xed5e33(0x280)&&define[_0xed5e33(0x246)]?define([_0xed5e33(0x28f),_0xed5e33(0x285),_0xed5e33(0x29b),_0xed5e33(0x271),_0xed5e33(0x23b)],_0x2bc9e5):(_0x3def12=typeof globalThis<'u'?globalThis:_0x3def12||self,_0x2bc9e5(_0x3def12[_0xed5e33(0x1f5)]={},_0x3def12['UniverCore'],_0x3def12[_0xed5e33(0x29b)],_0x3def12['UniverDocs'],_0x3def12[_0xed5e33(0x1ff)]));}(this,function(_0x429989,_0x5e550b,_0x3e712b,_0x279706,_0x4a0047){const _0x5a4fc5=_0xf638;Object[_0x5a4fc5(0x1fe)](_0x429989,Symbol['toStringTag'],{'value':'Module'});let _0x3fa418={'language':_0x5a4fc5(0x24a),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function _0x34b69d(_0x366a1f){return{..._0x3fa418,..._0x366a1f};}function _0x713509(_0x56ccea){const _0x1a4370=_0x5a4fc5;var _0x2fb432;let _0x319d85=(_0x2fb432=_0x56ccea==null?void 0x0:_0x56ccea[_0x1a4370(0x221)])==null?{}:_0x2fb432;return{'codes':Object[_0x1a4370(0x1f6)](Object[_0x1a4370(0x253)](_0x319d85)[_0x1a4370(0x2bb)](([_0x3d6a28,_0x2234a3])=>[_0x3d6a28,_0x34b69d(_0x2234a3)]))};}function _0x32b067(_0x231b3d,_0x170891,_0x1a0f17){const _0x2878ad=_0x5a4fc5;let _0xadd27d=_0x713509(_0x231b3d);return _0xadd27d[_0x2878ad(0x221)][_0x170891]=_0x34b69d({..._0xadd27d['codes'][_0x170891],..._0x1a0f17}),_0xadd27d;}function _0x16ba49(_0x571756,_0x8419fd){const _0x5d3e69=_0x5a4fc5;let _0x2b32df=_0x713509(_0x571756);return delete _0x2b32df[_0x5d3e69(0x221)][_0x8419fd],_0x2b32df;}function _0x5865a3(_0xbfe6de){'@babel/helpers - typeof';const _0x1f48ad=_0x5a4fc5;return _0x5865a3=typeof Symbol==_0x1f48ad(0x280)&&typeof Symbol['iterator']==_0x1f48ad(0x27b)?function(_0x20ad42){return typeof _0x20ad42;}:function(_0x4669d7){const _0x55e85c=_0x1f48ad;return _0x4669d7&&typeof Symbol=='function'&&_0x4669d7[_0x55e85c(0x1fa)]===Symbol&&_0x4669d7!==Symbol[_0x55e85c(0x2b3)]?_0x55e85c(0x27b):typeof _0x4669d7;},_0x5865a3(_0xbfe6de);}function _0x4e559d(_0x5735bc,_0x1292cb){const _0x468876=_0x5a4fc5;if(_0x5865a3(_0x5735bc)!=_0x468876(0x2a7)||!_0x5735bc)return _0x5735bc;var _0x599fff=_0x5735bc[Symbol['toPrimitive']];if(_0x599fff!==void 0x0){var _0x355e43=_0x599fff['call'](_0x5735bc,_0x1292cb||_0x468876(0x2a3));if(_0x5865a3(_0x355e43)!=_0x468876(0x2a7))return _0x355e43;throw TypeError(_0x468876(0x24c));}return(_0x1292cb===_0x468876(0x256)?String:Number)(_0x5735bc);}function _0x7e9ede(_0x48a0f9){const _0x297f2e=_0x5a4fc5;var _0x26dba4=_0x4e559d(_0x48a0f9,_0x297f2e(0x256));return _0x5865a3(_0x26dba4)==_0x297f2e(0x27b)?_0x26dba4:_0x26dba4+'';}function _0x3ebe32(_0x328ee5,_0x18075b,_0x5d50d1){const _0x32f79b=_0x5a4fc5;return(_0x18075b=_0x7e9ede(_0x18075b))in _0x328ee5?Object[_0x32f79b(0x1fe)](_0x328ee5,_0x18075b,{'value':_0x5d50d1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x328ee5[_0x18075b]=_0x5d50d1,_0x328ee5;}var _0x50a18d=class extends _0x5e550b[_0x5a4fc5(0x269)]{constructor(..._0xe61a47){const _0x5eac67=_0x5a4fc5;super(..._0xe61a47),_0x3ebe32(this,_0x5eac67(0x201),new Map()),_0x3ebe32(this,_0x5eac67(0x233),new _0x3e712b[(_0x5eac67(0x2b8))]()),_0x3ebe32(this,_0x5eac67(0x251),this[_0x5eac67(0x233)][_0x5eac67(0x206)]());}[_0x5a4fc5(0x270)](_0x48eeef,_0x13257c){return _0x713509(this['_resources']['get'](_0x48eeef))['codes'][_0x13257c];}['setCodeConfig'](_0x5c61c2,_0x3692eb,_0x5cb7f3){const _0x3752a7=_0x5a4fc5;this[_0x3752a7(0x24d)](_0x5c61c2,_0x3692eb,_0x32b067(this[_0x3752a7(0x201)][_0x3752a7(0x222)](_0x5c61c2),_0x3692eb,_0x5cb7f3));}[_0x5a4fc5(0x25c)](_0x2f7d81,_0x18ddac){const _0x502f4b=_0x5a4fc5;this[_0x502f4b(0x24d)](_0x2f7d81,_0x18ddac,_0x16ba49(this[_0x502f4b(0x201)]['get'](_0x2f7d81),_0x18ddac));}[_0x5a4fc5(0x226)](_0x3b3dc6){const _0x352b06=_0x5a4fc5;return _0x713509(this[_0x352b06(0x201)][_0x352b06(0x222)](_0x3b3dc6));}['deserialize'](_0x328360,_0x183169){const _0x213ba6=_0x5a4fc5;this['_resources'][_0x213ba6(0x27f)](_0x328360,_0x713509(_0x183169)),this[_0x213ba6(0x233)]['next']({'unitId':_0x328360});}[_0x5a4fc5(0x290)](_0x398dc3){const _0x34c5e4=_0x5a4fc5;this[_0x34c5e4(0x201)][_0x34c5e4(0x2a4)](_0x398dc3),this['_change$'][_0x34c5e4(0x21c)]({'unitId':_0x398dc3});}[_0x5a4fc5(0x23c)](){const _0x553558=_0x5a4fc5;super[_0x553558(0x23c)](),this[_0x553558(0x201)][_0x553558(0x261)](),this[_0x553558(0x233)]['complete']();}[_0x5a4fc5(0x24d)](_0x26367d,_0x2143e0,_0x19aa24){const _0x576cd4=_0x5a4fc5;this[_0x576cd4(0x201)][_0x576cd4(0x27f)](_0x26367d,_0x19aa24),this['_change$'][_0x576cd4(0x21c)]({'unitId':_0x26367d,'blockId':_0x2143e0});}};let _0x124ee6={'id':'docs-code.mutation.set-config','type':_0x5e550b[_0x5a4fc5(0x29e)][_0x5a4fc5(0x1f4)],'handler':(_0x6c53dd,_0x26ccca)=>!(_0x26ccca!=null&&_0x26ccca[_0x5a4fc5(0x2a6)])||!_0x26ccca[_0x5a4fc5(0x252)]?!0x1:(_0x6c53dd[_0x5a4fc5(0x222)](_0x50a18d)[_0x5a4fc5(0x215)](_0x26ccca['unitId'],_0x26ccca[_0x5a4fc5(0x252)],_0x26ccca['config']),!0x0)},_0x30c687={'id':_0x5a4fc5(0x26c),'type':_0x5e550b[_0x5a4fc5(0x29e)][_0x5a4fc5(0x1f4)],'handler':(_0x1c1686,_0x8e81cc)=>!(_0x8e81cc!=null&&_0x8e81cc[_0x5a4fc5(0x2a6)])||!_0x8e81cc[_0x5a4fc5(0x252)]?!0x1:(_0x1c1686[_0x5a4fc5(0x222)](_0x50a18d)[_0x5a4fc5(0x25c)](_0x8e81cc[_0x5a4fc5(0x2a6)],_0x8e81cc[_0x5a4fc5(0x252)]),!0x0)},_0xf9e6dc='monospace';var _0x14e695=class extends Error{constructor(_0x1fe6c1='Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries'){super(_0x1fe6c1);}};function _0x3dec13(_0x14f6ca){const _0x3676ce=_0x5a4fc5;var _0x3772c8,_0x13f47e,_0x3ce583;let _0x48e1c9=_0x4bfcdd(_0x14f6ca[_0x3676ce(0x28d)]),_0x255914=_0x3c95d2(_0x48e1c9),_0x2e3e95=_0x5e0534(_0x14f6ca['startOffset'],_0x14f6ca['endOffset']),_0x586768=_0x2e3e95?(_0x3772c8=_0x255914['blockRanges'])==null?void 0x0:_0x3772c8['find'](_0x1cfbd6=>{const _0x563da2=_0x3676ce;let _0x2310e1=(0x0,_0x5e550b['getBlockRangeInterval'])(_0x1cfbd6);return _0x2310e1['startOffset']===_0x2e3e95['startOffset']&&_0x2310e1[_0x563da2(0x229)]===_0x2e3e95[_0x563da2(0x229)];}):void 0x0,{startOffset:_0x4f0274,endOffset:_0xd988fe}=_0x586768?_0x2e3e95:_0x37f1e4(_0x255914,_0x14f6ca[_0x3676ce(0x2ab)],_0x14f6ca[_0x3676ce(0x229)],_0x14f6ca[_0x3676ce(0x29f)]);if(!_0x586768&&_0x511c61(_0x255914,_0x4f0274,_0xd988fe))throw new _0x14e695('Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block');let _0x39dc0d=_0xe72862(_0x255914,_0x4f0274,_0xd988fe),_0xc4ec92=(_0x13f47e=_0x586768==null?void 0x0:_0x586768[_0x3676ce(0x252)])==null?_0x14f6ca['blockId']:_0x13f47e,_0x1369e4=_0x32b067(_0x14f6ca[_0x3676ce(0x20b)],_0xc4ec92,{..._0x3fa418,..._0x14f6ca['config']});if(_0x586768)return _0x586768[_0x3676ce(0x26a)]=_0x5e550b[_0x3676ce(0x21a)]['CODE'],_0x24eca1(_0x255914,_0x4f0274,_0xd988fe),_0x2eebbf(_0x255914,_0x4f0274,_0xd988fe,_0x39dc0d),_0x4cadcc(_0x255914,_0x586768),{'nextDocumentData':_0x48e1c9,'nextMetadata':_0x1369e4,'cursorOffset':_0x4f0274+0x1};if(_0x4f0274===_0xd988fe){var _0x43c28b,_0xa91b00;let _0x484b3e=''+_0x5e550b['DataStreamTreeTokenType'][_0x3676ce(0x248)]+_0x5e550b[_0x3676ce(0x2a2)]['PARAGRAPH']+_0x5e550b[_0x3676ce(0x2a2)]['BLOCK_END'];_0x452b6b(_0x255914,_0x4f0274,_0x484b3e,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,_0x5e550b[_0x3676ce(0x219)])(new Set((_0x43c28b=_0x255914['paragraphs'])==null?void 0x0:_0x43c28b[_0x3676ce(0x2bb)](_0x1af8b9=>_0x1af8b9[_0x3676ce(0x292)]))),'paragraphStyle':_0x43fd62(!0x0,!0x0,_0x39dc0d)}],'blockRanges':[{'blockId':_0xc4ec92,'blockType':_0x5e550b['DocumentBlockRangeType'][_0x3676ce(0x273)],'startIndex':0x0,'endIndex':_0x484b3e[_0x3676ce(0x293)]-0x1}]});let _0x43a121=(_0xa91b00=_0x255914[_0x3676ce(0x291)])==null?void 0x0:_0xa91b00['find'](_0x297adb=>_0x297adb[_0x3676ce(0x252)]===_0xc4ec92);return _0x43a121&&_0x4cadcc(_0x255914,_0x43a121),{'nextDocumentData':_0x48e1c9,'nextMetadata':_0x1369e4,'cursorOffset':_0x4f0274+0x1};}_0x452b6b(_0x255914,_0xd988fe,_0x5e550b[_0x3676ce(0x2a2)][_0x3676ce(0x258)]),_0x452b6b(_0x255914,_0x4f0274,_0x5e550b[_0x3676ce(0x2a2)][_0x3676ce(0x248)]),_0x2eebbf(_0x255914,_0x4f0274,_0xd988fe+0x1,_0x39dc0d);let _0x6ba5a={'blockId':_0xc4ec92,'blockType':_0x5e550b[_0x3676ce(0x21a)][_0x3676ce(0x273)],'startIndex':_0x4f0274,'endIndex':_0xd988fe+0x1};return _0x255914['blockRanges']=[...(_0x3ce583=_0x255914[_0x3676ce(0x291)])==null?[]:_0x3ce583,_0x6ba5a][_0x3676ce(0x296)]((_0x3d0cdb,_0x201815)=>_0x3d0cdb['startIndex']-_0x201815[_0x3676ce(0x237)]),_0x4cadcc(_0x255914,_0x6ba5a),{'nextDocumentData':_0x48e1c9,'nextMetadata':_0x1369e4,'cursorOffset':_0x4f0274+0x1};}function _0x24eca1(_0x24f783,_0x5208f1,_0x12d7fd){const _0x31bcd0=_0x5a4fc5;var _0x4b29ff;((_0x4b29ff=_0x24f783[_0x31bcd0(0x20c)])==null?[]:_0x4b29ff)[_0x31bcd0(0x24e)](_0x186e9c=>_0x186e9c[_0x31bcd0(0x237)]>_0x5208f1&&_0x186e9c[_0x31bcd0(0x237)]<_0x12d7fd)['forEach'](_0x1b37e4=>{const _0x1868b6=_0x31bcd0;var _0xde55b3;let _0x135caf={...(_0xde55b3=_0x1b37e4[_0x1868b6(0x238)])==null?{}:_0xde55b3};delete _0x135caf[_0x1868b6(0x1f3)],delete _0x135caf['spaceBelow'],_0x1b37e4[_0x1868b6(0x238)]=_0x135caf;});}function _0x5e0534(_0x369d22,_0x2df2f6){const _0x157e07=_0x5a4fc5;return _0x369d22==null||_0x2df2f6==null||_0x369d22===_0x2df2f6?null:{'startOffset':Math[_0x157e07(0x2bc)](_0x369d22,_0x2df2f6),'endOffset':Math[_0x157e07(0x23e)](_0x369d22,_0x2df2f6)};}function _0x511c61(_0xce55bf,_0x341f41,_0x273b9f){const _0x4c82b1=_0x5a4fc5;var _0x302a44;return((_0x302a44=_0xce55bf[_0x4c82b1(0x291)])==null?[]:_0x302a44)['some'](_0x2737c5=>{const _0x3a033d=_0x4c82b1;let _0x49ef44=(0x0,_0x5e550b[_0x3a033d(0x205)])(_0x2737c5);return _0x341f41===_0x273b9f?(0x0,_0x5e550b[_0x3a033d(0x1f2)])(_0x49ef44,_0x341f41):(0x0,_0x5e550b[_0x3a033d(0x297)])(_0x49ef44,{'startOffset':_0x341f41,'endOffset':_0x273b9f});});}function _0xc863bc(_0x1bfa0c){const _0x27765f=_0x5a4fc5;return{'nextDocumentData':_0x4bfcdd(_0x1bfa0c[_0x27765f(0x28d)]),'nextMetadata':_0x32b067(_0x1bfa0c['metadata'],_0x1bfa0c[_0x27765f(0x252)],_0x1bfa0c[_0x27765f(0x216)]),'cursorOffset':0x0};}function _0x1fa18f(_0x32806d){const _0x28f613=_0x5a4fc5;let _0x29f1d7=_0x4bfcdd(_0x32806d['documentData']),_0x2fc344=_0x3c95d2(_0x29f1d7),_0xd5616a=_0x179dcc(_0x2fc344,_0x32806d['blockId']);if(!_0xd5616a)return null;let _0xfed5=_0x2db023(_0x2fc344,_0xd5616a);return{'nextDocumentData':_0x29f1d7,'nextMetadata':_0x16ba49(_0x32806d[_0x28f613(0x20b)],_0x32806d[_0x28f613(0x252)]),'cursorOffset':_0xfed5};}function _0x3a0b0e(_0x5cf16a){const _0x53bd6b=_0x5a4fc5;var _0x228a1a;let _0x2f6582=_0x4bfcdd(_0x5cf16a['documentData']),_0x16558d=_0x3c95d2(_0x2f6582),_0x34c8e5=_0x179dcc(_0x16558d,_0x5cf16a[_0x53bd6b(0x252)]);if(!_0x34c8e5)return null;let _0x1a459c=(0x0,_0x5e550b[_0x53bd6b(0x205)])(_0x34c8e5);return _0x31bfd5(_0x16558d,_0x1a459c[_0x53bd6b(0x2ab)],_0x1a459c[_0x53bd6b(0x229)]),_0x16558d[_0x53bd6b(0x291)]=(_0x228a1a=_0x16558d[_0x53bd6b(0x291)])==null?void 0x0:_0x228a1a['filter'](_0x410317=>_0x410317['blockId']!==_0x5cf16a[_0x53bd6b(0x252)]),{'nextDocumentData':_0x2f6582,'nextMetadata':_0x16ba49(_0x5cf16a[_0x53bd6b(0x20b)],_0x5cf16a[_0x53bd6b(0x252)]),'cursorOffset':_0x34c8e5['startIndex']};}function _0x83239a(_0x1c9fb6){const _0xf543d3=_0x5a4fc5;let _0x47e314=_0x4bfcdd(_0x1c9fb6[_0xf543d3(0x28d)]),_0x10edf2=_0x3c95d2(_0x47e314),_0x555dc7=_0x1151bc(_0x10edf2,_0x1c9fb6['cursorOffset']);return _0x555dc7&&_0x179dab(_0x47e314,_0x10edf2,_0x555dc7,_0x1c9fb6['cursorOffset'],_0x1c9fb6['paragraphStartIndex'])||null;}function _0x179dab(_0x5f37f0,_0x410be4,_0x2ca333,_0x53b139,_0x5b4775){const _0x1b6796=_0x5a4fc5;let _0x2ae69f=_0x1de5b2(_0x410be4,_0x2ca333,_0x53b139,_0x5b4775);if(!_0x2ae69f)return null;let _0x2f7eeb=_0x2ae69f[_0x1b6796(0x286)]-0x1;return _0x31bfd5(_0x410be4,_0x2ae69f[_0x1b6796(0x235)][_0x1b6796(0x237)],_0x2ae69f[_0x1b6796(0x235)][_0x1b6796(0x237)]+0x1),{'nextDocumentData':_0x5f37f0,'cursorOffset':_0x2f7eeb};}function _0x179dcc(_0x122ba0,_0x3cbeb1){const _0x17cda3=_0x5a4fc5;var _0x38fd7a;return _0x122ba0==null||(_0x38fd7a=_0x122ba0[_0x17cda3(0x291)])==null?void 0x0:_0x38fd7a[_0x17cda3(0x240)](_0x2ddec8=>_0x2ddec8[_0x17cda3(0x26a)]===_0x5e550b[_0x17cda3(0x21a)][_0x17cda3(0x273)]&&_0x2ddec8[_0x17cda3(0x252)]===_0x3cbeb1);}function _0x5dfcb4(_0x39b3df){const _0x5b9b86=_0x5a4fc5;var _0x2b4438;let _0x53215f=_0x39b3df[_0x5b9b86(0x28d)]['body'];if(!_0x53215f)return!0x1;let _0x4731fa=_0x39b3df['direction']===_0x5b9b86(0x295)?_0x39b3df['cursorOffset']-0x1:_0x39b3df['cursorOffset'],_0x23deca=_0x39b3df[_0x5b9b86(0x1fb)]==='right'?_0x39b3df[_0x5b9b86(0x282)]+0x1:_0x4731fa;return((_0x2b4438=_0x53215f[_0x5b9b86(0x291)])==null?[]:_0x2b4438)[_0x5b9b86(0x27a)](_0x6f954e=>_0x6f954e[_0x5b9b86(0x26a)]===_0x5e550b[_0x5b9b86(0x21a)][_0x5b9b86(0x273)]?_0x4731fa===_0x6f954e[_0x5b9b86(0x237)]||_0x4731fa===_0x6f954e[_0x5b9b86(0x2ac)]||_0x23deca===_0x6f954e[_0x5b9b86(0x237)]||_0x23deca===_0x6f954e[_0x5b9b86(0x2ac)]:!0x1);}function _0x1151bc(_0x29691a,_0x3e5efd){const _0x2bdaa1=_0x5a4fc5;var _0x3dfeb2;return(_0x3dfeb2=_0x29691a[_0x2bdaa1(0x291)])==null?void 0x0:_0x3dfeb2[_0x2bdaa1(0x240)](_0x134305=>{const _0x561433=_0x2bdaa1;let _0x3e3d7a=_0x5d6ac0(_0x134305);return _0x134305[_0x561433(0x26a)]===_0x5e550b[_0x561433(0x21a)][_0x561433(0x273)]&&_0x134305[_0x561433(0x237)]<=_0x3e5efd&&_0x3e5efd<=_0x3e3d7a+0x2;});}function _0x43fd62(_0x107d0,_0x335292,_0x14ce8d=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x107d0&&_0x14ce8d?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':_0xf9e6dc,'fs':0xc}};}function _0x2eebbf(_0x5ac7c7,_0x3cebf5,_0x3e4cf3,_0x4d8711=!0x1){const _0x247686=_0x5a4fc5;var _0x2914ef;let _0x30203b=((_0x2914ef=_0x5ac7c7[_0x247686(0x20c)])==null?[]:_0x2914ef)[_0x247686(0x24e)](_0x55b405=>_0x55b405['startIndex']>_0x3cebf5&&_0x55b405[_0x247686(0x237)]<_0x3e4cf3);_0x30203b[_0x247686(0x23f)]((_0x2e60df,_0x1773a6)=>{const _0x267316=_0x247686;var _0x3b3916;_0x2e60df[_0x267316(0x238)]={...(_0x3b3916=_0x2e60df[_0x267316(0x238)])==null?{}:_0x3b3916,..._0x43fd62(_0x1773a6===0x0,_0x1773a6===_0x30203b[_0x267316(0x293)]-0x1,_0x4d8711)};});}function _0x190789(_0x683325){const _0x152294=_0x5a4fc5;var _0x81489e,_0x48661d;let _0x1298f8={..._0x683325==null?{}:_0x683325};return delete _0x1298f8['indentEnd'],delete _0x1298f8[_0x152294(0x28e)],delete _0x1298f8[_0x152294(0x1f3)],delete _0x1298f8[_0x152294(0x22d)],((_0x81489e=_0x1298f8[_0x152294(0x250)])==null?void 0x0:_0x81489e['ff'])===_0xf9e6dc&&((_0x48661d=_0x1298f8[_0x152294(0x250)])==null?void 0x0:_0x48661d['fs'])===0xc&&delete _0x1298f8['textStyle'],_0x1298f8;}function _0x25e14a(_0x3f29fe,_0x2d9708){const _0x2ffae6=_0x5a4fc5;var _0x185de4;let _0x1f1755=_0x5d6ac0(_0x2d9708);return((_0x185de4=_0x3f29fe[_0x2ffae6(0x20c)])==null?[]:_0x185de4)[_0x2ffae6(0x24e)](_0xf15034=>_0xf15034['startIndex']>_0x2d9708[_0x2ffae6(0x237)]&&_0xf15034['startIndex']<_0x1f1755);}function _0x2db023(_0x16759e,_0x1ea0c2){const _0x25f4dc=_0x5a4fc5;var _0x545cb4;let _0x1f0c0a=_0x5d6ac0(_0x1ea0c2);return _0x25e14a(_0x16759e,_0x1ea0c2)['forEach'](_0x233511=>{const _0x105613=_0xf638;_0x233511[_0x105613(0x238)]=_0x190789(_0x233511[_0x105613(0x238)]);}),_0x31bfd5(_0x16759e,_0x1f0c0a,_0x1f0c0a+0x1),_0x31bfd5(_0x16759e,_0x1ea0c2[_0x25f4dc(0x237)],_0x1ea0c2[_0x25f4dc(0x237)]+0x1),_0x16759e[_0x25f4dc(0x291)]=(_0x545cb4=_0x16759e[_0x25f4dc(0x291)])==null?void 0x0:_0x545cb4[_0x25f4dc(0x24e)](_0x3e9909=>_0x3e9909[_0x25f4dc(0x252)]!==_0x1ea0c2['blockId']),_0x1ea0c2[_0x25f4dc(0x237)];}function _0x4bfcdd(_0x4f5af2){const _0x1a3282=_0x5a4fc5;return{..._0x4f5af2,'body':_0x4f5af2[_0x1a3282(0x2a8)]?_0x381872(_0x4f5af2[_0x1a3282(0x2a8)]):_0x4f5af2[_0x1a3282(0x2a8)]};}function _0x381872(_0x4da905){const _0x1d42ea=_0x5a4fc5;var _0x59f54d,_0x2c8ab9,_0x52702f,_0xa1175e,_0xbc1dc5,_0x3fc9c9,_0x2e0905,_0x5937f7,_0x153a4b;return{..._0x4da905,'paragraphs':(_0x59f54d=_0x4da905['paragraphs'])==null?void 0x0:_0x59f54d['map'](_0x1dbafb=>({..._0x1dbafb,'bullet':_0x5bbcd5(_0x1dbafb[_0x1d42ea(0x26b)]),'paragraphStyle':_0x5bbcd5(_0x1dbafb[_0x1d42ea(0x238)])})),'sectionBreaks':(_0x2c8ab9=_0x4da905[_0x1d42ea(0x2b0)])==null?void 0x0:_0x2c8ab9[_0x1d42ea(0x2bb)](_0x9ac347=>({..._0x9ac347})),'textRuns':(_0x52702f=_0x4da905[_0x1d42ea(0x2b7)])==null?void 0x0:_0x52702f[_0x1d42ea(0x2bb)](_0x2d60de=>({..._0x2d60de})),'tables':(_0xa1175e=_0x4da905['tables'])==null?void 0x0:_0xa1175e[_0x1d42ea(0x2bb)](_0x42cea5=>({..._0x42cea5})),'columnGroups':(_0xbc1dc5=_0x4da905[_0x1d42ea(0x232)])==null?void 0x0:_0xbc1dc5[_0x1d42ea(0x2bb)](_0xb1478b=>{const _0x102e25=_0x1d42ea;var _0x3da59e;return{..._0xb1478b,'columns':(_0x3da59e=_0xb1478b[_0x102e25(0x288)])==null?void 0x0:_0x3da59e['map'](_0x2ec789=>_0x5bbcd5(_0x2ec789))};}),'blockRanges':(_0x3fc9c9=_0x4da905[_0x1d42ea(0x291)])==null?void 0x0:_0x3fc9c9[_0x1d42ea(0x2bb)](_0x4fe1ae=>({..._0x4fe1ae})),'customRanges':(_0x2e0905=_0x4da905[_0x1d42ea(0x1f1)])==null?void 0x0:_0x2e0905[_0x1d42ea(0x2bb)](_0x37deff=>({..._0x37deff})),'customDecorations':(_0x5937f7=_0x4da905['customDecorations'])==null?void 0x0:_0x5937f7['map'](_0x246c51=>({..._0x246c51})),'customBlocks':(_0x153a4b=_0x4da905[_0x1d42ea(0x224)])==null?void 0x0:_0x153a4b[_0x1d42ea(0x2bb)](_0x388b93=>({..._0x388b93}))};}function _0x5bbcd5(_0x35eea1){const _0x40b547=_0x5a4fc5;return Array['isArray'](_0x35eea1)?_0x35eea1[_0x40b547(0x2bb)](_0x3cc82f=>_0x5bbcd5(_0x3cc82f)):!_0x35eea1||typeof _0x35eea1!=_0x40b547(0x2a7)?_0x35eea1:Object['fromEntries'](Object[_0x40b547(0x253)](_0x35eea1)[_0x40b547(0x2bb)](([_0x845cc8,_0x4f4eca])=>[_0x845cc8,_0x5bbcd5(_0x4f4eca)]));}function _0x3c95d2(_0x5de595){const _0x209a57=_0x5a4fc5;if(!_0x5de595[_0x209a57(0x2a8)])throw Error(_0x209a57(0x25e));return _0x5de595['body'];}function _0x37f1e4(_0x2972ac,_0x434df3,_0x364b27,_0x6f7cae=_0x5a4fc5(0x231)){const _0x252b39=_0x5a4fc5;if(_0x434df3==null||_0x364b27==null){let _0x524d24=_0x23d097(_0x2972ac);return{'startOffset':_0x524d24,'endOffset':_0x524d24};}let _0x218714=Math[_0x252b39(0x2bc)](_0x434df3,_0x364b27),_0x352e7e=Math[_0x252b39(0x23e)](_0x434df3,_0x364b27),_0x4aa806=_0x32833f(_0x2972ac,_0x218714,_0x352e7e);return _0x218714===_0x352e7e?_0x6f7cae===_0x252b39(0x25b)?{'startOffset':_0x218714,'endOffset':_0x352e7e}:_0x29d32c(_0x2972ac,_0x218714,_0x4aa806):_0x545361(_0x2972ac,_0x218714,_0x352e7e,_0x4aa806);}function _0x29d32c(_0x3a8dce,_0x45745c,_0x5264bd){const _0x5556b8=_0x5a4fc5;let _0xf9c65e=_0xebaaa7(_0x3a8dce,_0x45745c);if(_0xf9c65e){let _0x2def98=_0x5cd5ce(_0x3a8dce,_0xf9c65e,_0x5264bd);if(_0x2def98<_0xf9c65e['startIndex'])return{'startOffset':_0x2def98,'endOffset':_0x5264bd?Math[_0x5556b8(0x2bc)](_0xf9c65e['startIndex']+0x1,_0x5264bd['endOffset']):_0xf9c65e[_0x5556b8(0x237)]+0x1};}let _0x2542a4=_0x45745c===0x0&&_0x3a8dce[_0x5556b8(0x27e)][0x0]===_0x5e550b[_0x5556b8(0x2a2)][_0x5556b8(0x2a9)]?0x1:_0x45745c;return{'startOffset':_0x2542a4,'endOffset':_0x2542a4};}function _0x23d097(_0x5147f5){const _0x11dc37=_0x5a4fc5;return _0x5147f5[_0x11dc37(0x27e)]['endsWith'](_0x5e550b[_0x11dc37(0x2a2)][_0x11dc37(0x208)])?Math['max'](0x0,_0x5147f5['dataStream'][_0x11dc37(0x293)]-0x1):_0x5147f5[_0x11dc37(0x27e)]['length'];}function _0xe72862(_0x5cf60b,_0x565642,_0x186243){const _0x4d7c65=_0x5a4fc5;var _0x2345e9;let _0x3f1b8d=Math['min'](_0x565642,_0x186243),_0x45d6a1=Math[_0x4d7c65(0x23e)](_0x565642,_0x186243);return!!((_0x2345e9=_0x5cf60b['tables'])!=null&&_0x2345e9[_0x4d7c65(0x27a)](_0x416671=>_0x3f1b8d>_0x416671[_0x4d7c65(0x237)]&&_0x3f1b8d<_0x416671['endIndex']||_0x45d6a1>_0x416671[_0x4d7c65(0x237)]&&_0x45d6a1<_0x416671[_0x4d7c65(0x2ac)]||_0x3f1b8d<=_0x416671[_0x4d7c65(0x237)]&&_0x45d6a1>=_0x416671[_0x4d7c65(0x2ac)]));}function _0x545361(_0x2f9a68,_0x4b39b8,_0x399a64,_0x3d673a){const _0x4b7773=_0x5a4fc5;var _0xd4cc6f,_0xe6b553;let _0x451ece=[...(_0xd4cc6f=_0x2f9a68[_0x4b7773(0x20c)])==null?[]:_0xd4cc6f][_0x4b7773(0x296)]((_0x12ce51,_0x5ed3ac)=>_0x12ce51[_0x4b7773(0x237)]-_0x5ed3ac[_0x4b7773(0x237)]),_0x5e9b19=(0x0,_0x5e550b['getParagraphContentStartOffsets'])(_0x2f9a68),_0x56f16e=_0x451ece[_0x4b7773(0x240)](_0x5ca389=>_0x5cd5ce(_0x2f9a68,_0x5ca389,_0x3d673a,_0x5e9b19)<=_0x4b39b8&&_0x4b39b8<=_0x5ca389[_0x4b7773(0x237)]),_0x9f9a40=(_0xe6b553=_0x451ece[_0x4b7773(0x240)](_0x19b321=>_0x19b321[_0x4b7773(0x237)]>=_0x399a64-0x1))==null?_0x451ece[_0x451ece[_0x4b7773(0x293)]-0x1]:_0xe6b553;return{'startOffset':_0x56f16e?_0x5cd5ce(_0x2f9a68,_0x56f16e,_0x3d673a,_0x5e9b19):_0x4b39b8,'endOffset':_0x9f9a40?_0xdd2aeb(_0x9f9a40,_0x3d673a):_0x399a64};}function _0xebaaa7(_0x5f0e09,_0x23d725){const _0x375829=_0x5a4fc5;var _0x3f663f;let _0x589937=[...(_0x3f663f=_0x5f0e09['paragraphs'])==null?[]:_0x3f663f]['sort']((_0x2c9cc5,_0x34afff)=>_0x2c9cc5[_0x375829(0x237)]-_0x34afff[_0x375829(0x237)]),_0xfca7c=(0x0,_0x5e550b[_0x375829(0x24f)])(_0x5f0e09);return _0x589937[_0x375829(0x240)](_0x2086a2=>{const _0x8bb479=_0x375829;var _0x523454;return((_0x523454=_0xfca7c['get'](_0x2086a2[_0x8bb479(0x237)]))==null?0x0:_0x523454)<=_0x23d725&&_0x23d725<=_0x2086a2[_0x8bb479(0x237)];});}function _0x5cd5ce(_0x5eb332,_0x55d4bf,_0x3249e1,_0x2eddfc){const _0x1db312=_0x5a4fc5;var _0x1f2f5e;let _0x1d483e=(_0x1f2f5e=_0x2eddfc==null?void 0x0:_0x2eddfc[_0x1db312(0x222)](_0x55d4bf['startIndex']))==null?(0x0,_0x5e550b[_0x1db312(0x2ba)])(_0x5eb332,_0x55d4bf):_0x1f2f5e;return _0x3249e1?Math['max'](_0x1d483e,_0x3249e1[_0x1db312(0x2ab)]):_0x1d483e;}function _0xdd2aeb(_0x3b0364,_0x5cecdc){const _0x450aaa=_0x5a4fc5;let _0x4232b7=_0x3b0364[_0x450aaa(0x237)]+0x1;return _0x5cecdc?Math['min'](_0x4232b7,_0x5cecdc[_0x450aaa(0x229)]):_0x4232b7;}function _0x32833f(_0x2d6c87,_0x501bfc,_0x112fa){const _0x29a504=_0x5a4fc5;let _0x4bea04=_0x207ef1(_0x2d6c87,_0x501bfc),_0x5cc8d5=_0x207ef1(_0x2d6c87,_0x501bfc===_0x112fa?_0x112fa:Math[_0x29a504(0x23e)](_0x501bfc,_0x112fa-0x1));if(!(!_0x4bea04&&!_0x5cc8d5)){if(!_0x4bea04||!_0x5cc8d5||_0x4bea04[_0x29a504(0x22f)]!==_0x5cc8d5[_0x29a504(0x22f)]||_0x4bea04[_0x29a504(0x286)]!==_0x5cc8d5[_0x29a504(0x286)])throw new _0x14e695();return _0x4bea04;}}function _0x207ef1(_0x3ffe3e,_0x33d0ac){const _0x498600=_0x5a4fc5;let _0x20ac9d=_0x3ffe3e[_0x498600(0x27e)],_0x41838c=-0x1;for(let _0x9ca090=Math['min'](_0x33d0ac,_0x20ac9d[_0x498600(0x293)]-0x1);_0x9ca090>=0x0;_0x9ca090--){let _0x3b47ce=_0x20ac9d[_0x9ca090];if(_0x3b47ce===_0x5e550b[_0x498600(0x2a2)][_0x498600(0x275)])return;if(_0x3b47ce===_0x5e550b[_0x498600(0x2a2)][_0x498600(0x1f7)]){_0x41838c=_0x9ca090;break;}}if(_0x41838c<0x0)return;let _0x8bbc1d=_0x20ac9d['indexOf'](_0x5e550b['DataStreamTreeTokenType'][_0x498600(0x275)],_0x41838c+0x1);if(!(_0x8bbc1d<0x0||_0x33d0ac<_0x41838c+0x1||_0x33d0ac>_0x8bbc1d-0x1))return{'startOffset':_0x41838c+0x1,'endOffset':Math[_0x498600(0x23e)](_0x41838c+0x1,_0x8bbc1d-0x1),'startTokenOffset':_0x41838c,'endTokenOffset':_0x8bbc1d};}function _0x5d6ac0(_0x2d7b9a){const _0x369dce=_0x5a4fc5;return(0x0,_0x5e550b[_0x369dce(0x205)])(_0x2d7b9a)[_0x369dce(0x229)]-0x1;}function _0x1de5b2(_0x221f4b,_0x14ed82,_0x1b2780,_0x56ecf7){const _0x35ef68=_0x5a4fc5;var _0x3f6e78;let _0x17c089=_0x5d6ac0(_0x14ed82),_0x3094b8=((_0x3f6e78=_0x221f4b[_0x35ef68(0x20c)])==null?[]:_0x3f6e78)[_0x35ef68(0x240)](_0x95c15=>_0x95c15[_0x35ef68(0x237)]===_0x17c089+0x1);if(!_0x3094b8||_0x56ecf7!=null&&_0x3094b8['startIndex']!==_0x56ecf7||_0x1b2780!=null&&(_0x1b2780<_0x17c089||_0x1b2780>_0x3094b8[_0x35ef68(0x237)]+0x1)||_0x221f4b[_0x35ef68(0x27e)][_0x3094b8['startIndex']]!==_0x5e550b[_0x35ef68(0x2a2)][_0x35ef68(0x2a9)])return null;let _0x492606=(0x0,_0x5e550b[_0x35ef68(0x2ba)])(_0x221f4b,_0x3094b8),_0x52685a=_0x221f4b[_0x35ef68(0x27e)][_0x35ef68(0x25f)](_0x492606,_0x3094b8[_0x35ef68(0x237)]);return Array[_0x35ef68(0x26f)](_0x52685a)[_0x35ef68(0x2ae)](_0x44d4ef=>_0x44d4ef===_0x5e550b[_0x35ef68(0x2a2)][_0x35ef68(0x258)])?{'paragraph':_0x3094b8,'endTokenOffset':_0x17c089}:null;}function _0x4cadcc(_0x34f99b,_0x42e63d){const _0x10558b=_0x5a4fc5;var _0x1a24bf;let _0x20b18b=_0x5d6ac0(_0x42e63d),_0x360641=_0x34f99b[_0x10558b(0x27e)][_0x20b18b+0x1];_0x360641!==_0x5e550b[_0x10558b(0x2a2)]['SECTION_BREAK']&&_0x360641!==void 0x0||_0x452b6b(_0x34f99b,_0x20b18b+0x1,_0x5e550b['DataStreamTreeTokenType'][_0x10558b(0x2a9)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,_0x5e550b[_0x10558b(0x219)])(new Set((_0x1a24bf=_0x34f99b[_0x10558b(0x20c)])==null?void 0x0:_0x1a24bf[_0x10558b(0x2bb)](_0x1dde67=>_0x1dde67[_0x10558b(0x292)])))}]});}function _0x452b6b(_0x564e75,_0x5a474a,_0x225079,_0x3750d7={}){const _0x456c0e=_0x5a4fc5;var _0x5dab22,_0x5ab9d8;if(_0x225079){if(_0x564e75['dataStream']=''+_0x564e75[_0x456c0e(0x27e)][_0x456c0e(0x25f)](0x0,_0x5a474a)+_0x225079+_0x564e75[_0x456c0e(0x27e)][_0x456c0e(0x25f)](_0x5a474a),_0x256634(_0x564e75,_0x5a474a,_0x225079[_0x456c0e(0x293)]),(_0x5dab22=_0x3750d7[_0x456c0e(0x20c)])!=null&&_0x5dab22[_0x456c0e(0x293)]){var _0x16c3ec;_0x564e75[_0x456c0e(0x20c)]=[...(_0x16c3ec=_0x564e75[_0x456c0e(0x20c)])==null?[]:_0x16c3ec,..._0x3750d7[_0x456c0e(0x20c)]['map'](_0x2676c6=>({..._0x2676c6,'startIndex':_0x2676c6['startIndex']+_0x5a474a}))][_0x456c0e(0x296)]((_0x3d5e26,_0x270e92)=>_0x3d5e26[_0x456c0e(0x237)]-_0x270e92[_0x456c0e(0x237)]);}if((_0x5ab9d8=_0x3750d7[_0x456c0e(0x291)])!=null&&_0x5ab9d8[_0x456c0e(0x293)]){var _0x31340e;_0x564e75[_0x456c0e(0x291)]=[...(_0x31340e=_0x564e75['blockRanges'])==null?[]:_0x31340e,..._0x3750d7['blockRanges'][_0x456c0e(0x2bb)](_0x5030e5=>({..._0x5030e5,'startIndex':_0x5030e5[_0x456c0e(0x237)]+_0x5a474a,'endIndex':_0x5030e5[_0x456c0e(0x2ac)]+_0x5a474a}))][_0x456c0e(0x296)]((_0xc8cde7,_0x447882)=>_0xc8cde7[_0x456c0e(0x237)]-_0x447882['startIndex']);}}}function _0x31bfd5(_0x19fc82,_0x471989,_0x791035){const _0x26bfc3=_0x5a4fc5;let _0x37e4dc=_0x791035-_0x471989;_0x19fc82['dataStream']=''+_0x19fc82[_0x26bfc3(0x27e)][_0x26bfc3(0x25f)](0x0,_0x471989)+_0x19fc82[_0x26bfc3(0x27e)][_0x26bfc3(0x25f)](_0x791035),_0x181dea(_0x19fc82,_0x471989,_0x37e4dc);}function _0x256634(_0x3dba25,_0x1bb8e3,_0x153ce3){const _0x17d44a=_0x5a4fc5;_0x3dba25[_0x17d44a(0x20c)]=_0x7287b1(_0x3dba25['paragraphs'],_0x1bb8e3,_0x153ce3),_0x3dba25[_0x17d44a(0x2b0)]=_0x7287b1(_0x3dba25[_0x17d44a(0x2b0)],_0x1bb8e3,_0x153ce3),_0x3dba25['customBlocks']=_0x7287b1(_0x3dba25[_0x17d44a(0x224)],_0x1bb8e3,_0x153ce3),_0x3dba25[_0x17d44a(0x2b7)]=_0x39aa43(_0x3dba25[_0x17d44a(0x2b7)],_0x1bb8e3,_0x153ce3),_0x3dba25[_0x17d44a(0x1f0)]=_0x5304ee(_0x3dba25[_0x17d44a(0x1f0)],_0x1bb8e3,_0x153ce3),_0x3dba25[_0x17d44a(0x232)]=_0x280789(_0x3dba25[_0x17d44a(0x232)],_0x1bb8e3,_0x153ce3),_0x3dba25[_0x17d44a(0x1f1)]=_0x280789(_0x3dba25['customRanges'],_0x1bb8e3,_0x153ce3),_0x3dba25[_0x17d44a(0x29a)]=_0x280789(_0x3dba25[_0x17d44a(0x29a)],_0x1bb8e3,_0x153ce3),_0x3dba25[_0x17d44a(0x291)]=_0x280789(_0x3dba25[_0x17d44a(0x291)],_0x1bb8e3,_0x153ce3);}function _0x181dea(_0x321072,_0x57cfaa,_0x19469f){const _0x3af9cb=_0x5a4fc5;var _0x3f2d15,_0x173a0f;_0x321072[_0x3af9cb(0x20c)]=_0x1e138e(_0x321072[_0x3af9cb(0x20c)],_0x57cfaa,_0x19469f),_0x321072[_0x3af9cb(0x2b0)]=_0x1e138e(_0x321072[_0x3af9cb(0x2b0)],_0x57cfaa,_0x19469f),_0x321072[_0x3af9cb(0x224)]=_0x1e138e(_0x321072['customBlocks'],_0x57cfaa,_0x19469f),_0x321072[_0x3af9cb(0x2b7)]=(_0x3f2d15=_0x5c5cb1((_0x173a0f=_0x321072[_0x3af9cb(0x2b7)])==null?void 0x0:_0x173a0f[_0x3af9cb(0x2bb)](_0x2d7c55=>({..._0x2d7c55,'startIndex':_0x2d7c55['st'],'endIndex':_0x2d7c55['ed']})),_0x57cfaa,_0x19469f))==null?void 0x0:_0x3f2d15['map'](_0x2f1c35=>{let {startIndex:_0x527641,endIndex:_0x1e1cf7,..._0x17c7d7}=_0x2f1c35;return{..._0x17c7d7,'st':_0x527641,'ed':_0x1e1cf7};}),_0x321072[_0x3af9cb(0x1f0)]=_0x5c5cb1(_0x321072['tables'],_0x57cfaa,_0x19469f),_0x321072[_0x3af9cb(0x232)]=_0xce493e(_0x321072[_0x3af9cb(0x232)],_0x57cfaa,_0x19469f),_0x321072[_0x3af9cb(0x1f1)]=_0xce493e(_0x321072['customRanges'],_0x57cfaa,_0x19469f),_0x321072['customDecorations']=_0xce493e(_0x321072['customDecorations'],_0x57cfaa,_0x19469f),_0x321072['blockRanges']=_0xce493e(_0x321072[_0x3af9cb(0x291)],_0x57cfaa,_0x19469f);}function _0x7287b1(_0x459c90,_0xdfad24,_0x5c93c3){const _0x3cf609=_0x5a4fc5;return _0x459c90==null?void 0x0:_0x459c90[_0x3cf609(0x2bb)](_0x4e9757=>_0x4e9757['startIndex']>=_0xdfad24?{..._0x4e9757,'startIndex':_0x4e9757[_0x3cf609(0x237)]+_0x5c93c3}:_0x4e9757);}function _0x1e138e(_0x2dc1e7,_0x946b36,_0x1ba531){const _0x11618b=_0x5a4fc5;let _0xf445a6=_0x946b36+_0x1ba531;return _0x2dc1e7==null?void 0x0:_0x2dc1e7[_0x11618b(0x2bb)](_0x2adec5=>_0x2adec5[_0x11618b(0x237)]>=_0x946b36&&_0x2adec5[_0x11618b(0x237)]<_0xf445a6?null:_0x2adec5[_0x11618b(0x237)]>=_0xf445a6?{..._0x2adec5,'startIndex':_0x2adec5[_0x11618b(0x237)]-_0x1ba531}:_0x2adec5)[_0x11618b(0x24e)](_0x2c8809=>_0x2c8809!=null);}function _0x39aa43(_0x25f863,_0x1a6dbe,_0x297d24){const _0x2bddcb=_0x5a4fc5;return _0x25f863==null?void 0x0:_0x25f863[_0x2bddcb(0x2bb)](_0x1b33bc=>_0x1b33bc['st']>=_0x1a6dbe?{..._0x1b33bc,'st':_0x1b33bc['st']+_0x297d24,'ed':_0x1b33bc['ed']+_0x297d24}:_0x1b33bc['ed']>_0x1a6dbe?{..._0x1b33bc,'ed':_0x1b33bc['ed']+_0x297d24}:_0x1b33bc);}function _0x280789(_0x2b8aa6,_0x5bcffc,_0x4be1ee){const _0x2eaaa2=_0x5a4fc5;return _0x2b8aa6==null?void 0x0:_0x2b8aa6[_0x2eaaa2(0x2bb)](_0x467b71=>(0x0,_0x5e550b[_0x2eaaa2(0x234)])(_0x467b71,_0x5bcffc,_0x4be1ee));}function _0x5304ee(_0xe1f7fd,_0x3d9deb,_0x523dfc){const _0x43c4b5=_0x5a4fc5;return _0xe1f7fd==null?void 0x0:_0xe1f7fd[_0x43c4b5(0x2bb)](_0x3193b1=>(0x0,_0x5e550b[_0x43c4b5(0x260)])(_0x3193b1,_0x3d9deb,_0x523dfc));}function _0xce493e(_0x421b8b,_0x5ba0ed,_0x20f6ab){const _0xbfc3c8=_0x5a4fc5;return _0x421b8b==null?void 0x0:_0x421b8b[_0xbfc3c8(0x2bb)](_0x3527f0=>(0x0,_0x5e550b[_0xbfc3c8(0x227)])(_0x3527f0,_0x5ba0ed,_0x20f6ab))['filter'](_0x1d030e=>_0x1d030e!=null);}function _0x5c5cb1(_0x441373,_0x3d1557,_0x5130a6){const _0xdd160b=_0x5a4fc5;return _0x441373==null?void 0x0:_0x441373[_0xdd160b(0x2bb)](_0x291cb7=>(0x0,_0x5e550b[_0xdd160b(0x213)])(_0x291cb7,_0x3d1557,_0x5130a6))[_0xdd160b(0x24e)](_0x4bac99=>_0x4bac99!=null);}let _0x4aaff6={'id':_0x5a4fc5(0x279),'type':_0x5e550b['CommandType'][_0x5a4fc5(0x294)],'handler':_0x40537a=>{const _0xdcfb4=_0x5a4fc5;var _0x3c519b;if((0x0,_0x279706['isHeaderFooterSelection'])(_0x440c21(_0x40537a)))return!0x1;let _0x181d5c=(0x0,_0x279706[_0xdcfb4(0x20d)])(_0x40537a);if(_0x181d5c)return _0x40537a['get'](_0x5e550b['ICommandService'])[_0xdcfb4(0x223)](_0xd9fa02['id'],{'startOffset':_0x181d5c['startOffset'],'endOffset':_0x181d5c['endOffset'],'insertionMode':_0xdcfb4(0x25b),'unitId':_0x181d5c[_0xdcfb4(0x2a6)]});let _0x49a41b=_0x426284(_0x40537a);if(!_0x49a41b)return!0x1;let _0x18524c=(_0x3c519b=_0x40537a['get'](_0x5e550b[_0xdcfb4(0x217)])[_0xdcfb4(0x211)](_0x5e550b[_0xdcfb4(0x1f8)][_0xdcfb4(0x214)]))==null?void 0x0:_0x3c519b['getBody'](),_0x2bfe69=_0x18524c?(0x0,_0x5e550b[_0xdcfb4(0x2b6)])(_0x18524c,_0x49a41b):_0x49a41b['startIndex']+0x1;return _0x40537a[_0xdcfb4(0x222)](_0x5e550b[_0xdcfb4(0x26d)])[_0xdcfb4(0x223)](_0xd9fa02['id'],{'startOffset':_0x2bfe69,'endOffset':_0x2bfe69});}},_0x201326={'id':_0x5a4fc5(0x22a),'type':_0x5e550b[_0x5a4fc5(0x29e)][_0x5a4fc5(0x294)],'handler':()=>!0x0},_0xd9fa02={'id':_0x5a4fc5(0x298),'type':_0x5e550b[_0x5a4fc5(0x29e)][_0x5a4fc5(0x294)],'handler':(_0x1c842d,_0x518fcb)=>{const _0x3a4398=_0x5a4fc5;var _0xc8ccd6;let _0x5e90d9=_0x391bdc(_0x1c842d,_0x518fcb==null?void 0x0:_0x518fcb[_0x3a4398(0x2a6)]);if(!_0x5e90d9)return!0x1;let _0xc15c76=_0x440c21(_0x1c842d);if((0x0,_0x279706['isHeaderFooterSelection'])(_0xc15c76))return!0x1;let _0x21e5db=_0x5e90d9[_0x3a4398(0x249)][_0x3a4398(0x226)](_0x5e90d9['unitId']),_0x394594=_0x3b5f96(_0x518fcb,_0xc15c76),_0x58acb2=_0xe1cafa(_0x5e90d9[_0x3a4398(0x257)],_0x394594);if(_0x58acb2){if(_0x58acb2[_0x3a4398(0x26a)]!==_0x5e550b[_0x3a4398(0x21a)][_0x3a4398(0x273)])return!0x1;let _0x40d8c7=_0x1fa18f({'blockId':_0x58acb2['blockId'],'documentData':_0x5e90d9[_0x3a4398(0x257)],'metadata':_0x21e5db});if(!_0x40d8c7)return!0x1;let _0x1f7671=_0x12c156(_0x5e90d9[_0x3a4398(0x225)],_0x5e90d9[_0x3a4398(0x200)],_0x5e90d9[_0x3a4398(0x2a6)],_0x5e90d9[_0x3a4398(0x257)],_0x40d8c7[_0x3a4398(0x264)],_0xd9fa02['id'],_0x40d8c7[_0x3a4398(0x282)]);return _0x1f7671&&_0x40d8c7[_0x3a4398(0x267)]&&_0x5e90d9[_0x3a4398(0x249)][_0x3a4398(0x241)](_0x5e90d9[_0x3a4398(0x2a6)],_0x40d8c7[_0x3a4398(0x267)]),_0x1f7671;}let _0x92fd12=(_0xc8ccd6=_0x518fcb==null?void 0x0:_0x518fcb[_0x3a4398(0x252)])==null?(0x0,_0x5e550b[_0x3a4398(0x2b4)])(0x6):_0xc8ccd6,_0x236c36;try{_0x236c36=_0x3dec13({'blockId':_0x92fd12,'config':_0x518fcb==null?void 0x0:_0x518fcb['config'],'documentData':_0x5e90d9['previousDocumentData'],'endOffset':_0x394594==null?void 0x0:_0x394594[_0x3a4398(0x229)],'insertionMode':_0x518fcb==null?void 0x0:_0x518fcb[_0x3a4398(0x29f)],'metadata':_0x21e5db,'startOffset':_0x394594==null?void 0x0:_0x394594[_0x3a4398(0x2ab)]});}catch(_0x911219){if(_0x911219 instanceof _0x14e695)return!0x1;throw _0x911219;}let _0x2c0c62=_0x12c156(_0x5e90d9[_0x3a4398(0x225)],_0x5e90d9['selectionManager'],_0x5e90d9[_0x3a4398(0x2a6)],_0x5e90d9[_0x3a4398(0x257)],_0x236c36[_0x3a4398(0x264)],_0xd9fa02['id'],_0x236c36['cursorOffset']);return _0x2c0c62&&_0x236c36[_0x3a4398(0x267)]&&_0x5e90d9[_0x3a4398(0x249)][_0x3a4398(0x241)](_0x5e90d9[_0x3a4398(0x2a6)],_0x236c36['nextMetadata']),_0x2c0c62;}},_0x289ef9={'id':_0x5a4fc5(0x243),'type':_0x5e550b[_0x5a4fc5(0x29e)][_0x5a4fc5(0x294)],'handler':(_0xd0d8e8,_0x3c5a89)=>{const _0x2adcab=_0x5a4fc5;if(!_0x3c5a89)return!0x1;let _0x875599=_0x391bdc(_0xd0d8e8,_0x3c5a89[_0x2adcab(0x2a6)]);if(!_0x875599)return!0x1;let _0x934376=_0xc863bc({'blockId':_0x3c5a89[_0x2adcab(0x252)],'config':_0x3c5a89[_0x2adcab(0x216)],'documentData':_0x875599[_0x2adcab(0x257)],'metadata':_0x875599[_0x2adcab(0x249)]['serialize'](_0x875599[_0x2adcab(0x2a6)])});return _0x934376[_0x2adcab(0x267)]&&_0x875599[_0x2adcab(0x249)][_0x2adcab(0x241)](_0x875599[_0x2adcab(0x2a6)],_0x934376[_0x2adcab(0x267)]),!0x0;}},_0x1867a5={'id':'docs-code.command.exit','type':_0x5e550b[_0x5a4fc5(0x29e)][_0x5a4fc5(0x294)],'handler':(_0x1581c9,_0x81c29a)=>_0x285c4d['handler'](_0x1581c9,_0x81c29a)},_0x285c4d={'id':_0x5a4fc5(0x239),'type':_0x5e550b[_0x5a4fc5(0x29e)][_0x5a4fc5(0x294)],'handler':(_0x60331f,_0x207b1c)=>{const _0x2dc581=_0x5a4fc5;if(!_0x207b1c)return!0x1;let _0x1f6c09=_0x391bdc(_0x60331f,_0x207b1c==null?void 0x0:_0x207b1c[_0x2dc581(0x2a6)]);if(!_0x1f6c09)return!0x1;let _0x33c862=_0x1fa18f({'blockId':_0x207b1c[_0x2dc581(0x252)],'documentData':_0x1f6c09['previousDocumentData'],'metadata':_0x1f6c09[_0x2dc581(0x249)]['serialize'](_0x1f6c09[_0x2dc581(0x2a6)])});if(!_0x33c862)return!0x1;let _0x41a519=_0x12c156(_0x1f6c09['commandService'],_0x1f6c09[_0x2dc581(0x200)],_0x1f6c09[_0x2dc581(0x2a6)],_0x1f6c09[_0x2dc581(0x257)],_0x33c862[_0x2dc581(0x264)],_0x285c4d['id'],_0x33c862['cursorOffset']);return _0x41a519&&_0x33c862[_0x2dc581(0x267)]&&_0x1f6c09['model']['deserialize'](_0x1f6c09[_0x2dc581(0x2a6)],_0x33c862['nextMetadata']),_0x41a519;}},_0x2ad6c2={'id':'docs-code.command.remove','type':_0x5e550b['CommandType']['COMMAND'],'handler':(_0x19d879,_0x5da86c)=>{const _0x7f3f3b=_0x5a4fc5;if(!_0x5da86c)return!0x1;let _0x5edec4=_0x391bdc(_0x19d879,_0x5da86c==null?void 0x0:_0x5da86c[_0x7f3f3b(0x2a6)]);if(!_0x5edec4)return!0x1;let _0x1045b8=_0x3a0b0e({'blockId':_0x5da86c['blockId'],'documentData':_0x5edec4['previousDocumentData'],'metadata':_0x5edec4['model'][_0x7f3f3b(0x226)](_0x5edec4['unitId'])});if(!_0x1045b8)return!0x1;let _0x2a5428=_0x12c156(_0x5edec4[_0x7f3f3b(0x225)],_0x5edec4[_0x7f3f3b(0x200)],_0x5edec4[_0x7f3f3b(0x2a6)],_0x5edec4['previousDocumentData'],_0x1045b8['nextDocumentData'],_0x2ad6c2['id'],_0x1045b8[_0x7f3f3b(0x282)]);return _0x2a5428&&_0x1045b8[_0x7f3f3b(0x267)]&&_0x5edec4['model'][_0x7f3f3b(0x241)](_0x5edec4[_0x7f3f3b(0x2a6)],_0x1045b8['nextMetadata']),_0x2a5428;}},_0x35a46d={'id':_0x5a4fc5(0x29c),'type':_0x5e550b['CommandType'][_0x5a4fc5(0x294)],'handler':(_0x190cf5,_0x50949e)=>{const _0x54846e=_0x5a4fc5;var _0x386901,_0x30cf81;let _0x27f8b3=_0x391bdc(_0x190cf5,_0x50949e==null?void 0x0:_0x50949e[_0x54846e(0x2a6)]);if(!_0x27f8b3)return!0x1;let _0x3bbd26=(_0x386901=_0x50949e==null?void 0x0:_0x50949e['cursorOffset'])==null?(_0x30cf81=_0x440c21(_0x190cf5))==null?void 0x0:_0x30cf81[_0x54846e(0x2ab)]:_0x386901;if(_0x3bbd26==null)return!0x1;let _0xdf76be=_0x83239a({'cursorOffset':_0x3bbd26,'documentData':_0x27f8b3[_0x54846e(0x257)],'paragraphStartIndex':_0x50949e==null?void 0x0:_0x50949e['paragraphStartIndex']});return _0xdf76be?_0x12c156(_0x27f8b3[_0x54846e(0x225)],_0x27f8b3[_0x54846e(0x200)],_0x27f8b3[_0x54846e(0x2a6)],_0x27f8b3[_0x54846e(0x257)],_0xdf76be[_0x54846e(0x264)],_0x35a46d['id'],_0xdf76be[_0x54846e(0x282)]):!0x1;}};function _0x391bdc(_0x3b82df,_0x59b935){const _0x16e991=_0x5a4fc5;let _0x176cf3=_0x3b82df[_0x16e991(0x222)](_0x5e550b[_0x16e991(0x217)]),_0x4954b0=_0x59b935?_0x176cf3[_0x16e991(0x284)](_0x59b935,_0x5e550b[_0x16e991(0x1f8)][_0x16e991(0x214)]):_0x176cf3[_0x16e991(0x211)](_0x5e550b[_0x16e991(0x1f8)][_0x16e991(0x214)]);return _0x4954b0?{'commandService':_0x3b82df[_0x16e991(0x222)](_0x5e550b[_0x16e991(0x26d)]),'model':_0x3b82df[_0x16e991(0x222)](_0x50a18d),'previousDocumentData':_0x4954b0['getSnapshot'](),'selectionManager':_0x3b82df[_0x16e991(0x222)](_0x279706['DocSelectionManagerService']),'unitId':_0x4954b0[_0x16e991(0x278)]()}:null;}function _0x440c21(_0x26fd51){const _0x1789ca=_0x5a4fc5;var _0x111e25;return(_0x111e25=_0x26fd51[_0x1789ca(0x222)](_0x279706['DocSelectionManagerService'])[_0x1789ca(0x242)]())==null?void 0x0:_0x111e25[0x0];}function _0x3b5f96(_0x29724a,_0x5a830a){var _0x58a558,_0x370dc3;let _0x5303cc=(_0x58a558=_0x29724a==null?void 0x0:_0x29724a['startOffset'])==null?_0x5a830a==null?void 0x0:_0x5a830a['startOffset']:_0x58a558,_0x3fa6cc=(_0x370dc3=_0x29724a==null?void 0x0:_0x29724a['endOffset'])==null?_0x5a830a==null?void 0x0:_0x5a830a['endOffset']:_0x370dc3;if(!(_0x5303cc==null||_0x3fa6cc==null))return{'endOffset':Math['max'](_0x5303cc,_0x3fa6cc),'startOffset':Math['min'](_0x5303cc,_0x3fa6cc)};}function _0xe1cafa(_0x4e3c3e,_0x3b6387){const _0x28136a=_0x5a4fc5;var _0x45892c;if(!_0x3b6387)return;let _0x21d313=_0x89661(_0x3b6387);return(_0x45892c=_0x4e3c3e[_0x28136a(0x2a8)])==null||(_0x45892c=_0x45892c[_0x28136a(0x291)])==null?void 0x0:_0x45892c[_0x28136a(0x240)](_0x55fb53=>{const _0x326aaa=_0x28136a;let _0x5c7bb0=(0x0,_0x5e550b[_0x326aaa(0x205)])(_0x55fb53);return _0x3b6387[_0x326aaa(0x2ab)]===_0x3b6387[_0x326aaa(0x229)]?(0x0,_0x5e550b[_0x326aaa(0x1f2)])(_0x5c7bb0,_0x21d313):(0x0,_0x5e550b['containsStreamIndex'])(_0x5c7bb0,_0x21d313);});}function _0x89661(_0x19127d){const _0x330120=_0x5a4fc5;return _0x19127d[_0x330120(0x2ab)]===_0x19127d[_0x330120(0x229)]?_0x19127d[_0x330120(0x2ab)]:_0x19127d[_0x330120(0x2ab)]+0x1;}function _0x426284(_0x39547a){const _0x4d0191=_0x5a4fc5;var _0x34c1cb,_0x2a9dd0,_0x4f5687;let _0x5a287f=_0x440c21(_0x39547a);if(!_0x5a287f)return null;let _0x2d113c=_0x39547a[_0x4d0191(0x222)](_0x5e550b[_0x4d0191(0x217)])[_0x4d0191(0x211)](_0x5e550b[_0x4d0191(0x1f8)][_0x4d0191(0x214)]),_0x1002de=_0x2d113c==null?void 0x0:_0x2d113c[_0x4d0191(0x20f)]();return _0x1002de?(_0x34c1cb=_0x5e550b['BuildTextUtils']['range'][_0x4d0191(0x2aa)](_0x5a287f,(_0x2a9dd0=_0x1002de['paragraphs'])==null?[]:_0x2a9dd0,(_0x4f5687=_0x1002de[_0x4d0191(0x27e)])==null?'':_0x4f5687)[0x0])==null?null:_0x34c1cb:null;}function _0x22440a(_0x18684f,_0x2cf699){const _0x1bb5c6=_0x5a4fc5;let _0x227c65=_0x18684f[_0x1bb5c6(0x2a8)],_0x4f4416=_0x2cf699[_0x1bb5c6(0x2a8)],_0x1d255f=(0x0,_0x5e550b[_0x1bb5c6(0x287)])(_0x227c65,_0x4f4416);return[_0x1d255f&&_0x4f4416?_0x5c9cda(_0x4f4416,_0x1d255f):null,_0x1d255f?null:_0x3a845b(_0x227c65,_0x4f4416)][_0x1bb5c6(0x24e)](Boolean)[_0x1bb5c6(0x281)]((_0x4b7a18,_0x616806)=>_0x5e550b[_0x1bb5c6(0x204)][_0x1bb5c6(0x2b1)](_0x4b7a18,_0x616806),null);}function _0x5c9cda(_0x34b9c6,_0x5279d8){const _0x27b55c=_0x5a4fc5;let _0x2733f7=new _0x5e550b['TextX']();return _0x2733f7[_0x27b55c(0x24b)](_0x5279d8[_0x27b55c(0x218)]),_0x5279d8[_0x27b55c(0x2af)]>0x0&&_0x2733f7[_0x27b55c(0x203)](_0x5279d8['insertLength'],(0x0,_0x5e550b[_0x27b55c(0x22b)])(_0x34b9c6,_0x5279d8[_0x27b55c(0x218)],_0x5279d8[_0x27b55c(0x218)]+_0x5279d8['insertLength'],!0x1)),_0x5279d8[_0x27b55c(0x283)]>0x0&&_0x2733f7[_0x27b55c(0x2a4)](_0x5279d8[_0x27b55c(0x283)]),_0x5e550b[_0x27b55c(0x204)][_0x27b55c(0x27d)]()[_0x27b55c(0x28a)](_0x2733f7[_0x27b55c(0x226)](),[_0x27b55c(0x2a8)]);}function _0x3a845b(_0x5ba033,_0x4588a1){const _0x5ac10f=_0x5a4fc5;let _0x33fe49=[],_0x13db57=_0x5ba033?_0x3e916a(_0x5ba033):void 0x0,_0x25d945=_0x4588a1?_0x3e916a(_0x4588a1):void 0x0;for(let _0x42d083 of _0x4f15bd)_0x4817f0(_0x5e550b[_0x5ac10f(0x204)][_0x5ac10f(0x27d)](),['body',_0x42d083],_0x13db57==null?void 0x0:_0x13db57[_0x42d083],_0x25d945==null?void 0x0:_0x25d945[_0x42d083],_0x33fe49);return _0x33fe49[_0x5ac10f(0x281)]((_0x407db3,_0x28c35b)=>_0x5e550b[_0x5ac10f(0x204)]['compose'](_0x407db3,_0x28c35b),null);}let _0x4f15bd=['paragraphs',_0x5a4fc5(0x2b0),_0x5a4fc5(0x1f0),_0x5a4fc5(0x232),_0x5a4fc5(0x291),'customBlocks',_0x5a4fc5(0x1f1),_0x5a4fc5(0x29a),_0x5a4fc5(0x2b7)];function _0x3e916a(_0x54e14c){return _0x54e14c;}function _0x4817f0(_0x4f3738,_0x399217,_0x2a4ac8,_0x12e670,_0x19f788){const _0x57bfae=_0x5a4fc5;if(!_0x21beef(_0x2a4ac8,_0x12e670)){if(_0x2a4ac8==null){_0x19f788[_0x57bfae(0x254)](_0x4f3738[_0x57bfae(0x265)](_0x399217,_0x12e670));return;}if(_0x12e670==null){_0x19f788[_0x57bfae(0x254)](_0x4f3738['removeOp'](_0x399217,_0x2a4ac8));return;}if(Array[_0x57bfae(0x228)](_0x2a4ac8)&&Array[_0x57bfae(0x228)](_0x12e670)){_0x277ee9(_0x4f3738,_0x399217,_0x2a4ac8,_0x12e670,_0x19f788);return;}if(_0x159bae(_0x2a4ac8)&&_0x159bae(_0x12e670)){new Set([...Object['keys'](_0x2a4ac8),...Object[_0x57bfae(0x244)](_0x12e670)])[_0x57bfae(0x23f)](_0x4d2bd9=>{_0x4817f0(_0x4f3738,[..._0x399217,_0x4d2bd9],_0x2a4ac8[_0x4d2bd9],_0x12e670[_0x4d2bd9],_0x19f788);});return;}_0x19f788[_0x57bfae(0x254)](_0x4f3738[_0x57bfae(0x236)](_0x399217,_0x2a4ac8,_0x12e670));}}function _0x277ee9(_0x3bfd50,_0x30c3d9,_0x36e9dc,_0x1af761,_0x430360){const _0x434846=_0x5a4fc5;if(_0x36e9dc[_0x434846(0x293)]===_0x1af761[_0x434846(0x293)]){_0x36e9dc[_0x434846(0x23f)]((_0x33c5c3,_0x15a262)=>_0x4817f0(_0x3bfd50,[..._0x30c3d9,_0x15a262],_0x33c5c3,_0x1af761[_0x15a262],_0x430360));return;}let _0x29a247=0x0;for(;_0x29a247<_0x36e9dc[_0x434846(0x293)]&&_0x29a247<_0x1af761[_0x434846(0x293)]&&_0x21beef(_0x36e9dc[_0x29a247],_0x1af761[_0x29a247]);)_0x29a247++;let _0x9521a=_0x36e9dc[_0x434846(0x293)]-0x1,_0x5b5596=_0x1af761[_0x434846(0x293)]-0x1;for(;_0x9521a>=_0x29a247&&_0x5b5596>=_0x29a247&&_0x21beef(_0x36e9dc[_0x9521a],_0x1af761[_0x5b5596]);)_0x9521a--,_0x5b5596--;for(let _0x5211f2=_0x9521a;_0x5211f2>=_0x29a247;_0x5211f2--)_0x430360[_0x434846(0x254)](_0x3bfd50[_0x434846(0x2a5)]([..._0x30c3d9,_0x5211f2],_0x36e9dc[_0x5211f2]));for(let _0x5b3bba=_0x29a247;_0x5b3bba<=_0x5b5596;_0x5b3bba++)_0x430360[_0x434846(0x254)](_0x3bfd50['insertOp']([..._0x30c3d9,_0x5b3bba],_0x1af761[_0x5b3bba]));}function _0x159bae(_0x5489a1){const _0xb1a01=_0x5a4fc5;return typeof _0x5489a1==_0xb1a01(0x2a7)&&!!_0x5489a1&&!Array[_0xb1a01(0x228)](_0x5489a1);}function _0x21beef(_0x50e777,_0x48c4c8){const _0x3298b8=_0x5a4fc5;return JSON['stringify'](_0x50e777)===JSON[_0x3298b8(0x299)](_0x48c4c8);}function _0x12c156(_0x3369ff,_0x35cc08,_0x19b1b1,_0x4d33a1,_0x34dadf,_0x536845,_0x102b71){const _0x5461ba=_0x5a4fc5;let _0x210b4a=_0x22440a(_0x4d33a1,_0x34dadf);return _0x210b4a?!!_0x3369ff[_0x5461ba(0x223)](_0x279706['RichTextEditingMutation']['id'],{'unitId':_0x19b1b1,'actions':_0x210b4a,'textRanges':[{'startOffset':_0x102b71,'endOffset':_0x102b71,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x536845}):(_0x35cc08['replaceDocRanges']([{'startOffset':_0x102b71,'endOffset':_0x102b71}],{'unitId':_0x19b1b1,'subUnitId':_0x19b1b1},!0x1),!0x0);}let _0x542c00=_0x5a4fc5(0x26e);var _0x394d9e=_0x5a4fc5(0x22c),_0x327051=_0x5a4fc5(0x29d);let _0x2f8ffb={};function _0x148001(_0x45c337,_0x4f3d29){return function(_0x505cbd,_0x21b3c9){_0x4f3d29(_0x505cbd,_0x21b3c9,_0x45c337);};}function _0x20cdf9(_0x8ced07,_0x3d8f6f,_0x401fbc,_0x1a574a){const _0x23b565=_0x5a4fc5;var _0x1ff567=arguments[_0x23b565(0x293)],_0x598603=_0x1ff567<0x3?_0x3d8f6f:_0x1a574a===null?_0x1a574a=Object[_0x23b565(0x21d)](_0x3d8f6f,_0x401fbc):_0x1a574a,_0x37aeaf;if(typeof Reflect=='object'&&typeof Reflect[_0x23b565(0x28c)]=='function')_0x598603=Reflect['decorate'](_0x8ced07,_0x3d8f6f,_0x401fbc,_0x1a574a);else{for(var _0x43fddf=_0x8ced07[_0x23b565(0x293)]-0x1;_0x43fddf>=0x0;_0x43fddf--)(_0x37aeaf=_0x8ced07[_0x43fddf])&&(_0x598603=(_0x1ff567<0x3?_0x37aeaf(_0x598603):_0x1ff567>0x3?_0x37aeaf(_0x3d8f6f,_0x401fbc,_0x598603):_0x37aeaf(_0x3d8f6f,_0x401fbc))||_0x598603);}return _0x1ff567>0x3&&_0x598603&&Object[_0x23b565(0x1fe)](_0x3d8f6f,_0x401fbc,_0x598603),_0x598603;}let _0x20e537=class extends _0x5e550b[_0x5a4fc5(0x269)]{constructor(_0x550a81,_0x593158){const _0x46f2ef=_0x5a4fc5;super(),this[_0x46f2ef(0x2a0)]=_0x550a81,this['_docsCodeModel']=_0x593158,this[_0x46f2ef(0x25a)]();}['_initResource'](){const _0x1eeecd=_0x5a4fc5;this[_0x1eeecd(0x255)](this[_0x1eeecd(0x2a0)]['registerPluginResource']({'pluginName':_0x542c00,'businesses':[_0x5e550b[_0x1eeecd(0x1f8)][_0x1eeecd(0x214)]],'toJson':_0x124890=>JSON['stringify'](this[_0x1eeecd(0x21e)][_0x1eeecd(0x226)](_0x124890)),'parseJson':_0x47274c=>_0x713509(JSON['parse'](_0x47274c)),'onLoad':(_0x3db412,_0x419469)=>this[_0x1eeecd(0x21e)][_0x1eeecd(0x241)](_0x3db412,_0x419469),'onUnLoad':_0x2d5e44=>this['_docsCodeModel'][_0x1eeecd(0x290)](_0x2d5e44)}));}};_0x20e537=_0x20cdf9([_0x148001(0x0,_0x5e550b[_0x5a4fc5(0x272)]),_0x148001(0x1,(0x0,_0x5e550b['Inject'])(_0x50a18d))],_0x20e537);let _0x4bcd41=class extends _0x5e550b['Plugin']{constructor(_0x587cab=_0x2f8ffb,_0x87b5cb,_0x1d17b6,_0x26f371){const _0xf5f2be=_0x5a4fc5;super(),this[_0xf5f2be(0x20a)]=_0x587cab,this[_0xf5f2be(0x209)]=_0x87b5cb,this[_0xf5f2be(0x245)]=_0x1d17b6,this[_0xf5f2be(0x266)]=_0x26f371;let {..._0x163738}=(0x0,_0x5e550b['merge'])({},_0x2f8ffb,this['_config']);this[_0xf5f2be(0x266)][_0xf5f2be(0x263)]('docs-code.config',_0x163738);}[_0x5a4fc5(0x2b9)](){const _0x3c1410=_0x5a4fc5;this[_0x3c1410(0x209)][_0x3c1410(0x212)]([_0x50a18d]),this[_0x3c1410(0x209)][_0x3c1410(0x212)]([_0x20e537]),this[_0x3c1410(0x209)][_0x3c1410(0x222)](_0x50a18d),this['_injector'][_0x3c1410(0x222)](_0x20e537),[_0xd9fa02,_0x4aaff6,_0x289ef9,_0x285c4d,_0x2ad6c2,_0x1867a5,_0x35a46d,_0x201326,_0x124ee6,_0x30c687]['forEach'](_0x3bdd9f=>this['disposeWithMe'](this[_0x3c1410(0x245)]['registerCommand'](_0x3bdd9f)));}};_0x3ebe32(_0x4bcd41,'pluginName',_0x542c00),_0x3ebe32(_0x4bcd41,_0x5a4fc5(0x289),_0x394d9e),_0x3ebe32(_0x4bcd41,_0x5a4fc5(0x25d),_0x327051),_0x3ebe32(_0x4bcd41,_0x5a4fc5(0x210),_0x5e550b[_0x5a4fc5(0x1f8)][_0x5a4fc5(0x214)]),_0x4bcd41=_0x20cdf9([(0x0,_0x5e550b[_0x5a4fc5(0x23a)])(_0x4a0047[_0x5a4fc5(0x1fd)],_0x279706['UniverDocsPlugin']),_0x148001(0x1,(0x0,_0x5e550b['Inject'])(_0x5e550b[_0x5a4fc5(0x207)])),_0x148001(0x2,_0x5e550b[_0x5a4fc5(0x26d)]),_0x148001(0x3,_0x5e550b[_0x5a4fc5(0x230)])],_0x4bcd41),_0x429989[_0x5a4fc5(0x28b)]=_0x542c00,_0x429989['DocsCodeCancelEmptyParagraphCommand']=_0x35a46d,_0x429989[_0x5a4fc5(0x220)]=_0x201326,_0x429989[_0x5a4fc5(0x2b5)]=_0x4aaff6,_0x429989[_0x5a4fc5(0x20e)]=_0xd9fa02,_0x429989[_0x5a4fc5(0x247)]=_0x50a18d,_0x429989[_0x5a4fc5(0x1fc)]=_0x2ad6c2,_0x429989[_0x5a4fc5(0x274)]=_0x285c4d,_0x429989[_0x5a4fc5(0x2ad)]=_0x289ef9,_0x429989[_0x5a4fc5(0x268)]=_0x30c687,_0x429989[_0x5a4fc5(0x21b)]=_0x124ee6,Object[_0x5a4fc5(0x1fe)](_0x429989,'UniverDocsCodePlugin',{'enumerable':!0x0,'get':function(){return _0x4bcd41;}}),_0x429989[_0x5a4fc5(0x259)]=_0x83239a,_0x429989['isCodeBoundaryDelete']=_0x5dfcb4,_0x429989['normalizeDocsCodeConfig']=_0x34b69d,_0x429989[_0x5a4fc5(0x22e)]=_0x713509;}));function _0x3ea3(){const _0x5c4c0e=['setConfig','nextDocumentData','insertOp','_configService','nextMetadata','RemoveDocsCodeConfigMutation','Disposable','blockType','bullet','docs-code.mutation.remove-config','ICommandService','DOC_CODE_PLUGIN','from','getCodeConfig','@univerjs/docs','IResourceManagerService','CODE','DocsCodeUnwrapCommand','TABLE_CELL_END','5790gjEmJj','151642njsOYj','getUnitId','docs-code.command.insert-below','some','symbol','8688176bGVQJc','getInstance','dataStream','set','function','reduce','cursorOffset','deleteLength','getUnit','@univerjs/core','endTokenOffset','getSingleDataStreamChange','columns','packageName','editOp','DOCS_CODE_PLUGIN','decorate','documentData','indentStart','exports','removeUnit','blockRanges','paragraphId','length','COMMAND','left','sort','intersectsOperationalIntervals','docs-code.command.insert','stringify','customDecorations','rxjs','docs-code.command.cancel-empty-paragraph','1.0.0-alpha.7','CommandType','insertionMode','_resourceManagerService','6328832QPCvjY','DataStreamTreeTokenType','default','delete','removeOp','unitId','object','body','PARAGRAPH','getParagraphsInRange','startOffset','endIndex','DocsCodeUpdateCommand','every','insertLength','sectionBreaks','compose','21895940azoLdN','prototype','generateRandomId','DocsCodeInsertBelowCommand','getParagraphFollowingBlockOffset','textRuns','Subject','onStarting','getParagraphContentStartOffset','map','min','tables','customRanges','containsInteriorInsertionOffset','spaceAbove','MUTATION','UniverProDocsCode','fromEntries','TABLE_CELL_START','UniverInstanceType','9LthNhY','constructor','direction','DocsCodeRemoveCommand','UniverLicensePlugin','defineProperty','UniverProLicense','selectionManager','_resources','7054690QMQVnZ','insert','JSONX','getBlockRangeInterval','asObservable','Injector','SECTION_BREAK','_injector','_config','metadata','paragraphs','getContentInsertRange','DocsCodeInsertCommand','getBody','type','getCurrentUnitOfType','add','shiftExclusiveRangeOnDelete','UNIVER_DOC','setCodeConfig','config','IUniverInstanceService','start','createParagraphId','DocumentBlockRangeType','SetDocsCodeConfigMutation','next','getOwnPropertyDescriptor','_docsCodeModel','656938oYrFEx','DocsCodeConsumeBoundaryDeleteCommand','codes','get','syncExecuteCommand','customBlocks','commandService','serialize','shiftInclusiveRangeOnDelete','isArray','endOffset','docs-code.command.consume-boundary-delete','getBodySliceForTextXAction','@univerjs-pro/docs-code','spaceBelow','normalizeDocsCodeMetadataResource','startTokenOffset','IConfigService','convert-paragraph','columnGroups','_change$','shiftInclusiveRangeOnInsert','paragraph','replaceOp','startIndex','paragraphStyle','docs-code.command.unwrap','DependentOn','@univerjs-pro/license','dispose','2036NlVONx','max','forEach','find','deserialize','getTextRanges','docs-code.command.update','keys','_commandService','amd','DocsCodeModel','BLOCK_START','model','javascript','retain','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_setResource','filter','getParagraphContentStartOffsets','textStyle','change$','blockId','entries','push','disposeWithMe','string','previousDocumentData','BLOCK_END','buildCancelEmptyCodeParagraphActions','_initResource','insert-new','removeCode','version','Document\x20body\x20is\x20required','slice','shiftExclusiveRangeOnInsert','clear','6bjIYWL'];_0x3ea3=function(){return _0x5c4c0e;};return _0x3ea3();}
|
|
1
|
+
function _0x3563(_0x25dab5,_0x3c04e7){_0x25dab5=_0x25dab5-0xb6;const _0x4027da=_0x4027();let _0x3563ca=_0x4027da[_0x25dab5];return _0x3563ca;}(function(_0x4baa28,_0x1b0ec5){const _0x4984d1=_0x3563,_0x3b803d=_0x4baa28();while(!![]){try{const _0x5a0a2f=parseInt(_0x4984d1(0x18d))/0x1+parseInt(_0x4984d1(0xe6))/0x2+parseInt(_0x4984d1(0xd1))/0x3+parseInt(_0x4984d1(0x139))/0x4*(parseInt(_0x4984d1(0xb8))/0x5)+-parseInt(_0x4984d1(0xc0))/0x6+parseInt(_0x4984d1(0x158))/0x7*(-parseInt(_0x4984d1(0x146))/0x8)+parseInt(_0x4984d1(0xc6))/0x9;if(_0x5a0a2f===_0x1b0ec5)break;else _0x3b803d['push'](_0x3b803d['shift']());}catch(_0x162d33){_0x3b803d['push'](_0x3b803d['shift']());}}}(_0x4027,0xa9884),function(_0x12733d,_0x434516){const _0x1d3400=_0x3563;typeof exports==_0x1d3400(0x15a)&&typeof module<'u'?_0x434516(exports,require('@univerjs/core'),require('rxjs'),require('@univerjs/docs'),require('@univerjs-pro/license')):typeof define==_0x1d3400(0x160)&&define['amd']?define([_0x1d3400(0x11f),'@univerjs/core',_0x1d3400(0xee),_0x1d3400(0xc4),_0x1d3400(0x176)],_0x434516):(_0x12733d=typeof globalThis<'u'?globalThis:_0x12733d||self,_0x434516(_0x12733d[_0x1d3400(0x100)]={},_0x12733d['UniverCore'],_0x12733d[_0x1d3400(0xee)],_0x12733d[_0x1d3400(0x14a)],_0x12733d[_0x1d3400(0x110)]));}(this,function(_0x1b6089,_0x2c639f,_0xa912f2,_0x4c2cd6,_0x33c3fd){const _0x4ebfa3=_0x3563;Object[_0x4ebfa3(0x18b)](_0x1b6089,Symbol['toStringTag'],{'value':_0x4ebfa3(0x154)});let _0x57aca2={'language':_0x4ebfa3(0x104),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function _0xe5cddb(_0x1d0ff4){return{..._0x57aca2,..._0x1d0ff4};}function _0xe69571(_0x549f8b){const _0x45cb28=_0x4ebfa3;var _0x531151;let _0x4b0507=(_0x531151=_0x549f8b==null?void 0x0:_0x549f8b[_0x45cb28(0xc1)])==null?{}:_0x531151;return{'codes':Object[_0x45cb28(0x13c)](Object['entries'](_0x4b0507)[_0x45cb28(0x150)](([_0x220298,_0x424421])=>[_0x220298,_0xe5cddb(_0x424421)]))};}function _0x2d8b24(_0x260662,_0x53a04f,_0x1f4081){const _0x1fe3a5=_0x4ebfa3;let _0x55b7ee=_0xe69571(_0x260662);return _0x55b7ee[_0x1fe3a5(0xc1)][_0x53a04f]=_0xe5cddb({..._0x55b7ee[_0x1fe3a5(0xc1)][_0x53a04f],..._0x1f4081}),_0x55b7ee;}function _0x5ae56e(_0x1bcae6,_0x3fc90d){const _0x3cdbba=_0x4ebfa3;let _0x497cd4=_0xe69571(_0x1bcae6);return delete _0x497cd4[_0x3cdbba(0xc1)][_0x3fc90d],_0x497cd4;}function _0x4f6f05(_0x2fb962){'@babel/helpers - typeof';const _0x57adcb=_0x4ebfa3;return _0x4f6f05=typeof Symbol==_0x57adcb(0x160)&&typeof Symbol[_0x57adcb(0x15c)]=='symbol'?function(_0x3b9ee3){return typeof _0x3b9ee3;}:function(_0x1a07e8){const _0x2751d9=_0x57adcb;return _0x1a07e8&&typeof Symbol=='function'&&_0x1a07e8['constructor']===Symbol&&_0x1a07e8!==Symbol[_0x2751d9(0xd6)]?_0x2751d9(0x109):typeof _0x1a07e8;},_0x4f6f05(_0x2fb962);}function _0x41a1d0(_0x5b9bc0,_0x4dae7a){const _0x327815=_0x4ebfa3;if(_0x4f6f05(_0x5b9bc0)!=_0x327815(0x15a)||!_0x5b9bc0)return _0x5b9bc0;var _0x5225c0=_0x5b9bc0[Symbol[_0x327815(0x11c)]];if(_0x5225c0!==void 0x0){var _0x4830d6=_0x5225c0[_0x327815(0x177)](_0x5b9bc0,_0x4dae7a||_0x327815(0x10b));if(_0x4f6f05(_0x4830d6)!=_0x327815(0x15a))return _0x4830d6;throw TypeError(_0x327815(0x103));}return(_0x4dae7a===_0x327815(0x15e)?String:Number)(_0x5b9bc0);}function _0xda4f2d(_0x32e1ae){const _0x4bac46=_0x4ebfa3;var _0x449475=_0x41a1d0(_0x32e1ae,_0x4bac46(0x15e));return _0x4f6f05(_0x449475)==_0x4bac46(0x109)?_0x449475:_0x449475+'';}function _0x4f730f(_0x237013,_0x2bc5da,_0x4d3b80){const _0x3bb8d5=_0x4ebfa3;return(_0x2bc5da=_0xda4f2d(_0x2bc5da))in _0x237013?Object[_0x3bb8d5(0x18b)](_0x237013,_0x2bc5da,{'value':_0x4d3b80,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x237013[_0x2bc5da]=_0x4d3b80,_0x237013;}var _0x1e2f18=class extends _0x2c639f['Disposable']{constructor(..._0x5207ae){const _0x2b833f=_0x4ebfa3;super(..._0x5207ae),_0x4f730f(this,_0x2b833f(0x165),new Map()),_0x4f730f(this,_0x2b833f(0x14c),new _0xa912f2[(_0x2b833f(0x137))]()),_0x4f730f(this,_0x2b833f(0x17e),this[_0x2b833f(0x14c)][_0x2b833f(0x17f)]());}['getCodeConfig'](_0x13ab92,_0x2c484a){const _0x508012=_0x4ebfa3;return _0xe69571(this['_resources'][_0x508012(0x122)](_0x13ab92))[_0x508012(0xc1)][_0x2c484a];}['setCodeConfig'](_0x11f733,_0x296d8d,_0xb90c85){const _0x2dd75e=_0x4ebfa3;this[_0x2dd75e(0x12d)](_0x11f733,_0x296d8d,_0x2d8b24(this[_0x2dd75e(0x165)][_0x2dd75e(0x122)](_0x11f733),_0x296d8d,_0xb90c85));}[_0x4ebfa3(0x101)](_0x3a04a4,_0x51ea0b){const _0x475bb9=_0x4ebfa3;this[_0x475bb9(0x12d)](_0x3a04a4,_0x51ea0b,_0x5ae56e(this[_0x475bb9(0x165)][_0x475bb9(0x122)](_0x3a04a4),_0x51ea0b));}[_0x4ebfa3(0x10f)](_0x2b522f){const _0xed01c2=_0x4ebfa3;return _0xe69571(this[_0xed01c2(0x165)][_0xed01c2(0x122)](_0x2b522f));}['deserialize'](_0x1329a3,_0x37be44){const _0x4fc690=_0x4ebfa3;this[_0x4fc690(0x165)][_0x4fc690(0xc8)](_0x1329a3,_0xe69571(_0x37be44)),this[_0x4fc690(0x14c)]['next']({'unitId':_0x1329a3});}[_0x4ebfa3(0xfd)](_0x18b5bb){const _0x13972c=_0x4ebfa3;this['_resources'][_0x13972c(0x152)](_0x18b5bb),this[_0x13972c(0x14c)][_0x13972c(0x107)]({'unitId':_0x18b5bb});}[_0x4ebfa3(0x17b)](){const _0x33e889=_0x4ebfa3;super[_0x33e889(0x17b)](),this[_0x33e889(0x165)]['clear'](),this[_0x33e889(0x14c)][_0x33e889(0x189)]();}[_0x4ebfa3(0x12d)](_0x2dd981,_0x2555d6,_0x50bc25){const _0x84ab4a=_0x4ebfa3;this[_0x84ab4a(0x165)][_0x84ab4a(0xc8)](_0x2dd981,_0x50bc25),this[_0x84ab4a(0x14c)]['next']({'unitId':_0x2dd981,'blockId':_0x2555d6});}};let _0x2f7668={'id':_0x4ebfa3(0x18f),'type':_0x2c639f['CommandType']['MUTATION'],'handler':(_0x15d747,_0x35799b)=>!(_0x35799b!=null&&_0x35799b[_0x4ebfa3(0x128)])||!_0x35799b['blockId']?!0x1:(_0x15d747['get'](_0x1e2f18)[_0x4ebfa3(0xc5)](_0x35799b[_0x4ebfa3(0x128)],_0x35799b['blockId'],_0x35799b[_0x4ebfa3(0x193)]),!0x0)},_0x31740f={'id':_0x4ebfa3(0x173),'type':_0x2c639f['CommandType'][_0x4ebfa3(0xc2)],'handler':(_0x50c017,_0x6a98c2)=>!(_0x6a98c2!=null&&_0x6a98c2[_0x4ebfa3(0x128)])||!_0x6a98c2[_0x4ebfa3(0x12a)]?!0x1:(_0x50c017[_0x4ebfa3(0x122)](_0x1e2f18)['removeCode'](_0x6a98c2['unitId'],_0x6a98c2['blockId']),!0x0)},_0x3c22b1=_0x4ebfa3(0x184);var _0x44721d=class extends Error{constructor(_0x1cf901='Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries'){super(_0x1cf901);}};function _0x6a6694(_0x584032){const _0x310357=_0x4ebfa3;var _0x2086cd,_0x397342,_0x4aba8b;let _0x26cf16=_0x1440f6(_0x584032[_0x310357(0xe0)]),_0x2c073a=_0x2ebc83(_0x26cf16),_0x44d9ca=_0x420fdf(_0x584032['startOffset'],_0x584032[_0x310357(0x162)]),_0x44ab78=_0x44d9ca?(_0x2086cd=_0x2c073a[_0x310357(0x169)])==null?void 0x0:_0x2086cd[_0x310357(0x114)](_0x12081d=>{const _0x19d295=_0x310357;let _0x25b806=(0x0,_0x2c639f[_0x19d295(0xcb)])(_0x12081d);return _0x25b806['startOffset']===_0x44d9ca['startOffset']&&_0x25b806['endOffset']===_0x44d9ca[_0x19d295(0x162)];}):void 0x0,{startOffset:_0x1f19cb,endOffset:_0x3a6506}=_0x44ab78?_0x44d9ca:_0x4df071(_0x2c073a,_0x584032['startOffset'],_0x584032[_0x310357(0x162)],_0x584032[_0x310357(0xf4)]);if(!_0x44ab78&&_0x42045d(_0x2c073a,_0x1f19cb,_0x3a6506))throw new _0x44721d(_0x310357(0x131));let _0x4cd8e8=_0x4fc43e(_0x2c073a,_0x1f19cb,_0x3a6506),_0x381321=(_0x397342=_0x44ab78==null?void 0x0:_0x44ab78[_0x310357(0x12a)])==null?_0x584032[_0x310357(0x12a)]:_0x397342,_0x7f940e=_0x2d8b24(_0x584032[_0x310357(0xca)],_0x381321,{..._0x57aca2,..._0x584032[_0x310357(0x193)]});if(_0x44ab78)return _0x44ab78['blockType']=_0x2c639f[_0x310357(0xb9)][_0x310357(0x12f)],_0x387f6a(_0x2c073a,_0x1f19cb,_0x3a6506),_0x29794c(_0x2c073a,_0x1f19cb,_0x3a6506,_0x4cd8e8),_0x3e0307(_0x2c073a,_0x44ab78),{'nextDocumentData':_0x26cf16,'nextMetadata':_0x7f940e,'cursorOffset':_0x1f19cb+0x1};if(_0x1f19cb===_0x3a6506){var _0x4f9e5d,_0x457f09;let _0x3909a0=''+_0x2c639f[_0x310357(0xbe)][_0x310357(0xda)]+_0x2c639f[_0x310357(0xbe)][_0x310357(0xd8)]+_0x2c639f[_0x310357(0xbe)]['BLOCK_END'];_0x2f30bc(_0x2c073a,_0x1f19cb,_0x3909a0,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,_0x2c639f[_0x310357(0xcd)])(new Set((_0x4f9e5d=_0x2c073a['paragraphs'])==null?void 0x0:_0x4f9e5d[_0x310357(0x150)](_0x247236=>_0x247236[_0x310357(0x132)]))),'paragraphStyle':_0x4a3e42(!0x0,!0x0,_0x4cd8e8)}],'blockRanges':[{'blockId':_0x381321,'blockType':_0x2c639f[_0x310357(0xb9)][_0x310357(0x12f)],'startIndex':0x0,'endIndex':_0x3909a0[_0x310357(0xde)]-0x1}]});let _0x48984e=(_0x457f09=_0x2c073a[_0x310357(0x169)])==null?void 0x0:_0x457f09['find'](_0x53a81a=>_0x53a81a[_0x310357(0x12a)]===_0x381321);return _0x48984e&&_0x3e0307(_0x2c073a,_0x48984e),{'nextDocumentData':_0x26cf16,'nextMetadata':_0x7f940e,'cursorOffset':_0x1f19cb+0x1};}_0x2f30bc(_0x2c073a,_0x3a6506,_0x2c639f[_0x310357(0xbe)][_0x310357(0x171)]),_0x2f30bc(_0x2c073a,_0x1f19cb,_0x2c639f['DataStreamTreeTokenType'][_0x310357(0xda)]),_0x29794c(_0x2c073a,_0x1f19cb,_0x3a6506+0x1,_0x4cd8e8);let _0x46eeb4={'blockId':_0x381321,'blockType':_0x2c639f[_0x310357(0xb9)]['CODE'],'startIndex':_0x1f19cb,'endIndex':_0x3a6506+0x1};return _0x2c073a[_0x310357(0x169)]=[...(_0x4aba8b=_0x2c073a[_0x310357(0x169)])==null?[]:_0x4aba8b,_0x46eeb4]['sort']((_0x3c8378,_0x24543b)=>_0x3c8378[_0x310357(0xce)]-_0x24543b[_0x310357(0xce)]),_0x3e0307(_0x2c073a,_0x46eeb4),{'nextDocumentData':_0x26cf16,'nextMetadata':_0x7f940e,'cursorOffset':_0x1f19cb+0x1};}function _0x387f6a(_0xa3d729,_0x376a35,_0x1ae143){const _0x244004=_0x4ebfa3;var _0x4b7dcd;((_0x4b7dcd=_0xa3d729[_0x244004(0x181)])==null?[]:_0x4b7dcd)[_0x244004(0x16c)](_0x4e29a9=>_0x4e29a9[_0x244004(0xce)]>_0x376a35&&_0x4e29a9[_0x244004(0xce)]<_0x1ae143)[_0x244004(0x130)](_0x39adc2=>{const _0x5ce7f3=_0x244004;var _0x2a07e4;let _0x15c258={...(_0x2a07e4=_0x39adc2[_0x5ce7f3(0xcc)])==null?{}:_0x2a07e4};delete _0x15c258[_0x5ce7f3(0x147)],delete _0x15c258[_0x5ce7f3(0x116)],_0x39adc2[_0x5ce7f3(0xcc)]=_0x15c258;});}function _0x420fdf(_0x1ef44f,_0x500067){const _0x189ee1=_0x4ebfa3;return _0x1ef44f==null||_0x500067==null||_0x1ef44f===_0x500067?null:{'startOffset':Math[_0x189ee1(0xdc)](_0x1ef44f,_0x500067),'endOffset':Math[_0x189ee1(0x113)](_0x1ef44f,_0x500067)};}function _0x42045d(_0x585009,_0x48da8f,_0x1b6110){const _0x4e1a54=_0x4ebfa3;var _0x5df42c;return((_0x5df42c=_0x585009[_0x4e1a54(0x169)])==null?[]:_0x5df42c)[_0x4e1a54(0x13e)](_0x21e168=>{const _0xea9f5=_0x4e1a54;let _0x39d046=(0x0,_0x2c639f[_0xea9f5(0xcb)])(_0x21e168);return _0x48da8f===_0x1b6110?(0x0,_0x2c639f[_0xea9f5(0x185)])(_0x39d046,_0x48da8f):(0x0,_0x2c639f[_0xea9f5(0x105)])(_0x39d046,{'startOffset':_0x48da8f,'endOffset':_0x1b6110});});}function _0x87ba29(_0x200b0f){const _0x29cc10=_0x4ebfa3;return{'nextDocumentData':_0x1440f6(_0x200b0f['documentData']),'nextMetadata':_0x2d8b24(_0x200b0f[_0x29cc10(0xca)],_0x200b0f['blockId'],_0x200b0f[_0x29cc10(0x193)]),'cursorOffset':0x0};}function _0x164e8d(_0x1d9f4d){const _0xf8e952=_0x4ebfa3;let _0x2763a3=_0x1440f6(_0x1d9f4d[_0xf8e952(0xe0)]),_0xc7bfcf=_0x2ebc83(_0x2763a3),_0x38792b=_0x1cd59c(_0xc7bfcf,_0x1d9f4d[_0xf8e952(0x12a)]);if(!_0x38792b)return null;let _0x5ce424=_0x1d3122(_0xc7bfcf,_0x38792b);return{'nextDocumentData':_0x2763a3,'nextMetadata':_0x5ae56e(_0x1d9f4d[_0xf8e952(0xca)],_0x1d9f4d[_0xf8e952(0x12a)]),'cursorOffset':_0x5ce424};}function _0x4b2a1f(_0x14413f){const _0x55d888=_0x4ebfa3;var _0x5f4938;let _0x2ca341=_0x1440f6(_0x14413f['documentData']),_0x27a6c5=_0x2ebc83(_0x2ca341),_0xe4811c=_0x1cd59c(_0x27a6c5,_0x14413f[_0x55d888(0x12a)]);if(!_0xe4811c)return null;let _0x3dee49=(0x0,_0x2c639f[_0x55d888(0xcb)])(_0xe4811c);return _0x5a5bd9(_0x27a6c5,_0x3dee49['startOffset'],_0x3dee49[_0x55d888(0x162)]),_0x27a6c5[_0x55d888(0x169)]=(_0x5f4938=_0x27a6c5[_0x55d888(0x169)])==null?void 0x0:_0x5f4938[_0x55d888(0x16c)](_0x4ea409=>_0x4ea409[_0x55d888(0x12a)]!==_0x14413f[_0x55d888(0x12a)]),{'nextDocumentData':_0x2ca341,'nextMetadata':_0x5ae56e(_0x14413f[_0x55d888(0xca)],_0x14413f['blockId']),'cursorOffset':_0xe4811c['startIndex']};}function _0x349e27(_0x3e0e47){const _0x5b6935=_0x4ebfa3;let _0x2e8079=_0x1440f6(_0x3e0e47[_0x5b6935(0xe0)]),_0x24dbd0=_0x2ebc83(_0x2e8079),_0x593a87=_0x543a56(_0x24dbd0,_0x3e0e47[_0x5b6935(0x120)]);return _0x593a87&&_0x2cc18e(_0x2e8079,_0x24dbd0,_0x593a87,_0x3e0e47['cursorOffset'],_0x3e0e47[_0x5b6935(0x178)])||null;}function _0x2cc18e(_0x58d0af,_0x1c5345,_0x1af868,_0xca4a4b,_0xfd212e){const _0x328914=_0x4ebfa3;let _0x19c064=_0x4c5d68(_0x1c5345,_0x1af868,_0xca4a4b,_0xfd212e);if(!_0x19c064)return null;let _0x1145c4=_0x19c064[_0x328914(0xfc)]-0x1;return _0x5a5bd9(_0x1c5345,_0x19c064[_0x328914(0xe4)][_0x328914(0xce)],_0x19c064['paragraph'][_0x328914(0xce)]+0x1),{'nextDocumentData':_0x58d0af,'cursorOffset':_0x1145c4};}function _0x1cd59c(_0x399d1d,_0x36b994){const _0x4fcc9d=_0x4ebfa3;var _0x4c23dc;return _0x399d1d==null||(_0x4c23dc=_0x399d1d[_0x4fcc9d(0x169)])==null?void 0x0:_0x4c23dc[_0x4fcc9d(0x114)](_0x131343=>_0x131343[_0x4fcc9d(0x14d)]===_0x2c639f[_0x4fcc9d(0xb9)][_0x4fcc9d(0x12f)]&&_0x131343[_0x4fcc9d(0x12a)]===_0x36b994);}function _0x18a95b(_0x4b4b4a){const _0xdc0ef2=_0x4ebfa3;var _0x55d3d8;let _0x2556c6=_0x4b4b4a[_0xdc0ef2(0xe0)][_0xdc0ef2(0x183)];if(!_0x2556c6)return!0x1;let _0x2f1c30=_0x4b4b4a[_0xdc0ef2(0xec)]===_0xdc0ef2(0x16b)?_0x4b4b4a['cursorOffset']-0x1:_0x4b4b4a[_0xdc0ef2(0x120)],_0x1aed82=_0x4b4b4a[_0xdc0ef2(0xec)]===_0xdc0ef2(0x142)?_0x4b4b4a['cursorOffset']+0x1:_0x2f1c30;return((_0x55d3d8=_0x2556c6[_0xdc0ef2(0x169)])==null?[]:_0x55d3d8)['some'](_0x459f55=>_0x459f55[_0xdc0ef2(0x14d)]===_0x2c639f['DocumentBlockRangeType'][_0xdc0ef2(0x12f)]?_0x2f1c30===_0x459f55[_0xdc0ef2(0xce)]||_0x2f1c30===_0x459f55[_0xdc0ef2(0x170)]||_0x1aed82===_0x459f55['startIndex']||_0x1aed82===_0x459f55[_0xdc0ef2(0x170)]:!0x1);}function _0x543a56(_0x38fd61,_0x1fe57e){const _0x4e844c=_0x4ebfa3;var _0x2300a6;return(_0x2300a6=_0x38fd61[_0x4e844c(0x169)])==null?void 0x0:_0x2300a6['find'](_0x2c5ce4=>{const _0x48dfd0=_0x4e844c;let _0x2ef469=_0xbc2700(_0x2c5ce4);return _0x2c5ce4[_0x48dfd0(0x14d)]===_0x2c639f[_0x48dfd0(0xb9)][_0x48dfd0(0x12f)]&&_0x2c5ce4['startIndex']<=_0x1fe57e&&_0x1fe57e<=_0x2ef469+0x2;});}function _0x4a3e42(_0x139182,_0x22b6d8,_0x16a415=!0x1){const _0x1314dd=_0x4ebfa3;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x2c639f['BooleanNumber'][_0x1314dd(0xbf)],'keepNext':_0x22b6d8?_0x2c639f[_0x1314dd(0x153)][_0x1314dd(0xf0)]:_0x2c639f[_0x1314dd(0x153)]['TRUE'],'widowControl':_0x2c639f['BooleanNumber'][_0x1314dd(0xbf)],..._0x139182&&_0x16a415?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':_0x3c22b1,'fs':0xc}};}function _0x29794c(_0x5689d1,_0x382c89,_0x5ab007,_0x1909b7=!0x1){const _0x44660b=_0x4ebfa3;var _0x572cd8;let _0x2e0626=((_0x572cd8=_0x5689d1['paragraphs'])==null?[]:_0x572cd8)[_0x44660b(0x16c)](_0x3f38fd=>_0x3f38fd[_0x44660b(0xce)]>_0x382c89&&_0x3f38fd[_0x44660b(0xce)]<_0x5ab007);_0x2e0626[_0x44660b(0x130)]((_0x560fd2,_0x2b8882)=>{const _0x4b47be=_0x44660b;var _0x36a91e;_0x560fd2[_0x4b47be(0xcc)]={...(_0x36a91e=_0x560fd2['paragraphStyle'])==null?{}:_0x36a91e,..._0x4a3e42(_0x2b8882===0x0,_0x2b8882===_0x2e0626[_0x4b47be(0xde)]-0x1,_0x1909b7)};});}function _0x22e607(_0x50f931){const _0x1deff8=_0x4ebfa3;var _0x4e60b4,_0x56b5d3;let _0x19e703={..._0x50f931==null?{}:_0x50f931};return delete _0x19e703['indentEnd'],delete _0x19e703[_0x1deff8(0xe7)],delete _0x19e703[_0x1deff8(0x147)],delete _0x19e703[_0x1deff8(0x116)],delete _0x19e703[_0x1deff8(0xf2)],delete _0x19e703[_0x1deff8(0x11b)],delete _0x19e703[_0x1deff8(0x102)],((_0x4e60b4=_0x19e703[_0x1deff8(0x148)])==null?void 0x0:_0x4e60b4['ff'])===_0x3c22b1&&((_0x56b5d3=_0x19e703[_0x1deff8(0x148)])==null?void 0x0:_0x56b5d3['fs'])===0xc&&delete _0x19e703[_0x1deff8(0x148)],_0x19e703;}function _0x43973b(_0xedbaa1,_0x4dce9f){const _0x2583ca=_0x4ebfa3;var _0x4ffad4;let _0x429fda=_0xbc2700(_0x4dce9f);return((_0x4ffad4=_0xedbaa1[_0x2583ca(0x181)])==null?[]:_0x4ffad4)['filter'](_0x5c1b34=>_0x5c1b34[_0x2583ca(0xce)]>_0x4dce9f[_0x2583ca(0xce)]&&_0x5c1b34[_0x2583ca(0xce)]<_0x429fda);}function _0x1d3122(_0x1861a4,_0x300fbe){const _0x4a0871=_0x4ebfa3;var _0x229f91;let _0x3fc0c5=_0xbc2700(_0x300fbe);return _0x43973b(_0x1861a4,_0x300fbe)[_0x4a0871(0x130)](_0x3ed3b8=>{const _0x1e8084=_0x4a0871;_0x3ed3b8[_0x1e8084(0xcc)]=_0x22e607(_0x3ed3b8[_0x1e8084(0xcc)]);}),_0x5a5bd9(_0x1861a4,_0x3fc0c5,_0x3fc0c5+0x1),_0x5a5bd9(_0x1861a4,_0x300fbe['startIndex'],_0x300fbe[_0x4a0871(0xce)]+0x1),_0x1861a4['blockRanges']=(_0x229f91=_0x1861a4[_0x4a0871(0x169)])==null?void 0x0:_0x229f91[_0x4a0871(0x16c)](_0x3f08d3=>_0x3f08d3['blockId']!==_0x300fbe['blockId']),_0x300fbe[_0x4a0871(0xce)];}function _0x1440f6(_0xa7657b){const _0x2a2067=_0x4ebfa3;return{..._0xa7657b,'body':_0xa7657b['body']?_0x4f8d9a(_0xa7657b['body']):_0xa7657b[_0x2a2067(0x183)]};}function _0x4f8d9a(_0x4e1ef7){const _0x5ef34e=_0x4ebfa3;var _0x49af09,_0xee8741,_0x527f6c,_0x1ae1f0,_0x44cbf0,_0x474007,_0x53dcb5,_0x4b2f66,_0x3f8dde;return{..._0x4e1ef7,'paragraphs':(_0x49af09=_0x4e1ef7['paragraphs'])==null?void 0x0:_0x49af09[_0x5ef34e(0x150)](_0x2d1780=>({..._0x2d1780,'bullet':_0x154205(_0x2d1780['bullet']),'paragraphStyle':_0x154205(_0x2d1780[_0x5ef34e(0xcc)])})),'sectionBreaks':(_0xee8741=_0x4e1ef7[_0x5ef34e(0x106)])==null?void 0x0:_0xee8741[_0x5ef34e(0x150)](_0x1cfa8e=>({..._0x1cfa8e})),'textRuns':(_0x527f6c=_0x4e1ef7['textRuns'])==null?void 0x0:_0x527f6c[_0x5ef34e(0x150)](_0x4fd17f=>({..._0x4fd17f})),'tables':(_0x1ae1f0=_0x4e1ef7[_0x5ef34e(0xea)])==null?void 0x0:_0x1ae1f0[_0x5ef34e(0x150)](_0x10b9f6=>({..._0x10b9f6})),'columnGroups':(_0x44cbf0=_0x4e1ef7[_0x5ef34e(0x15b)])==null?void 0x0:_0x44cbf0[_0x5ef34e(0x150)](_0x5c243c=>{const _0x388da7=_0x5ef34e;var _0xf21c11;return{..._0x5c243c,'columns':(_0xf21c11=_0x5c243c['columns'])==null?void 0x0:_0xf21c11[_0x388da7(0x150)](_0x2dda50=>_0x154205(_0x2dda50))};}),'blockRanges':(_0x474007=_0x4e1ef7[_0x5ef34e(0x169)])==null?void 0x0:_0x474007[_0x5ef34e(0x150)](_0x26cf7d=>({..._0x26cf7d})),'customRanges':(_0x53dcb5=_0x4e1ef7[_0x5ef34e(0x16d)])==null?void 0x0:_0x53dcb5[_0x5ef34e(0x150)](_0x4122bd=>({..._0x4122bd})),'customDecorations':(_0x4b2f66=_0x4e1ef7[_0x5ef34e(0x13d)])==null?void 0x0:_0x4b2f66['map'](_0x37f00d=>({..._0x37f00d})),'customBlocks':(_0x3f8dde=_0x4e1ef7[_0x5ef34e(0x18c)])==null?void 0x0:_0x3f8dde[_0x5ef34e(0x150)](_0x2d9900=>({..._0x2d9900}))};}function _0x154205(_0x201fb0){const _0x5eb347=_0x4ebfa3;return Array[_0x5eb347(0x12e)](_0x201fb0)?_0x201fb0[_0x5eb347(0x150)](_0x2e2037=>_0x154205(_0x2e2037)):!_0x201fb0||typeof _0x201fb0!=_0x5eb347(0x15a)?_0x201fb0:Object[_0x5eb347(0x13c)](Object['entries'](_0x201fb0)[_0x5eb347(0x150)](([_0x5da147,_0xc09031])=>[_0x5da147,_0x154205(_0xc09031)]));}function _0x2ebc83(_0x3cd04e){const _0x50e98c=_0x4ebfa3;if(!_0x3cd04e['body'])throw Error(_0x50e98c(0xf8));return _0x3cd04e['body'];}function _0x4df071(_0x1f3ba3,_0xcb1938,_0x564bdc,_0xbfba44='convert-paragraph'){const _0x91a203=_0x4ebfa3;if(_0xcb1938==null||_0x564bdc==null){let _0x538981=_0x10a439(_0x1f3ba3);return{'startOffset':_0x538981,'endOffset':_0x538981};}let _0x3d7d3a=Math[_0x91a203(0xdc)](_0xcb1938,_0x564bdc),_0x3b0082=Math[_0x91a203(0x113)](_0xcb1938,_0x564bdc),_0x10a0de=_0x3ab922(_0x1f3ba3,_0x3d7d3a,_0x3b0082);return _0x3d7d3a===_0x3b0082?_0xbfba44==='insert-new'?{'startOffset':_0x3d7d3a,'endOffset':_0x3b0082}:_0x3077ee(_0x1f3ba3,_0x3d7d3a,_0x10a0de):_0x1aefdc(_0x1f3ba3,_0x3d7d3a,_0x3b0082,_0x10a0de);}function _0x3077ee(_0x118889,_0x5ccde1,_0x18db54){const _0x36c028=_0x4ebfa3;let _0x2c0c4a=_0x6af26d(_0x118889,_0x5ccde1);if(_0x2c0c4a){let _0x3d05e7=_0x206a62(_0x118889,_0x2c0c4a,_0x18db54);if(_0x3d05e7<_0x2c0c4a[_0x36c028(0xce)])return{'startOffset':_0x3d05e7,'endOffset':_0x18db54?Math[_0x36c028(0xdc)](_0x2c0c4a[_0x36c028(0xce)]+0x1,_0x18db54[_0x36c028(0x162)]):_0x2c0c4a[_0x36c028(0xce)]+0x1};}let _0x1ba42a=_0x5ccde1===0x0&&_0x118889[_0x36c028(0x135)][0x0]===_0x2c639f[_0x36c028(0xbe)][_0x36c028(0xd8)]?0x1:_0x5ccde1;return{'startOffset':_0x1ba42a,'endOffset':_0x1ba42a};}function _0x10a439(_0xb9eae3){const _0x2e9bcb=_0x4ebfa3;return _0xb9eae3[_0x2e9bcb(0x135)][_0x2e9bcb(0xfa)](_0x2c639f[_0x2e9bcb(0xbe)][_0x2e9bcb(0x188)])?Math[_0x2e9bcb(0x113)](0x0,_0xb9eae3[_0x2e9bcb(0x135)][_0x2e9bcb(0xde)]-0x1):_0xb9eae3[_0x2e9bcb(0x135)][_0x2e9bcb(0xde)];}function _0x4fc43e(_0x419d4e,_0x290135,_0x4612d4){const _0x282380=_0x4ebfa3;var _0xbfabfc;let _0x23af66=Math[_0x282380(0xdc)](_0x290135,_0x4612d4),_0x1d6d75=Math[_0x282380(0x113)](_0x290135,_0x4612d4);return!!((_0xbfabfc=_0x419d4e[_0x282380(0xea)])!=null&&_0xbfabfc['some'](_0x11e9a3=>_0x23af66>_0x11e9a3[_0x282380(0xce)]&&_0x23af66<_0x11e9a3['endIndex']||_0x1d6d75>_0x11e9a3[_0x282380(0xce)]&&_0x1d6d75<_0x11e9a3[_0x282380(0x170)]||_0x23af66<=_0x11e9a3[_0x282380(0xce)]&&_0x1d6d75>=_0x11e9a3[_0x282380(0x170)]));}function _0x1aefdc(_0x42496f,_0x52ce2e,_0x2ea183,_0x274c67){const _0x4b540d=_0x4ebfa3;var _0xea44a7,_0x516b16;let _0x4083a8=[...(_0xea44a7=_0x42496f[_0x4b540d(0x181)])==null?[]:_0xea44a7]['sort']((_0x2c5995,_0x13d32e)=>_0x2c5995[_0x4b540d(0xce)]-_0x13d32e[_0x4b540d(0xce)]),_0x4e1b8c=(0x0,_0x2c639f[_0x4b540d(0x17d)])(_0x42496f),_0x1a38ca=_0x4083a8[_0x4b540d(0x114)](_0xe83d03=>_0x206a62(_0x42496f,_0xe83d03,_0x274c67,_0x4e1b8c)<=_0x52ce2e&&_0x52ce2e<=_0xe83d03[_0x4b540d(0xce)]),_0x4add72=(_0x516b16=_0x4083a8[_0x4b540d(0x114)](_0x22b876=>_0x22b876['startIndex']>=_0x2ea183-0x1))==null?_0x4083a8[_0x4083a8[_0x4b540d(0xde)]-0x1]:_0x516b16;return{'startOffset':_0x1a38ca?_0x206a62(_0x42496f,_0x1a38ca,_0x274c67,_0x4e1b8c):_0x52ce2e,'endOffset':_0x4add72?_0x352728(_0x4add72,_0x274c67):_0x2ea183};}function _0x6af26d(_0x5d79e5,_0x5cd178){const _0x3b8c0e=_0x4ebfa3;var _0x2e0d43;let _0x937f9c=[...(_0x2e0d43=_0x5d79e5['paragraphs'])==null?[]:_0x2e0d43][_0x3b8c0e(0x186)]((_0x1472ea,_0x288955)=>_0x1472ea[_0x3b8c0e(0xce)]-_0x288955['startIndex']),_0xa85ce3=(0x0,_0x2c639f[_0x3b8c0e(0x17d)])(_0x5d79e5);return _0x937f9c[_0x3b8c0e(0x114)](_0x465d8f=>{const _0x1c24ba=_0x3b8c0e;var _0x40a584;return((_0x40a584=_0xa85ce3[_0x1c24ba(0x122)](_0x465d8f[_0x1c24ba(0xce)]))==null?0x0:_0x40a584)<=_0x5cd178&&_0x5cd178<=_0x465d8f[_0x1c24ba(0xce)];});}function _0x206a62(_0x2c7c1d,_0x7375f1,_0x4408b1,_0xa011d0){const _0x342334=_0x4ebfa3;var _0x12d4de;let _0x3113bd=(_0x12d4de=_0xa011d0==null?void 0x0:_0xa011d0[_0x342334(0x122)](_0x7375f1[_0x342334(0xce)]))==null?(0x0,_0x2c639f[_0x342334(0x14b)])(_0x2c7c1d,_0x7375f1):_0x12d4de;return _0x4408b1?Math[_0x342334(0x113)](_0x3113bd,_0x4408b1[_0x342334(0xfb)]):_0x3113bd;}function _0x352728(_0x8596ae,_0x2237ca){const _0x456d41=_0x4ebfa3;let _0xb4c029=_0x8596ae[_0x456d41(0xce)]+0x1;return _0x2237ca?Math[_0x456d41(0xdc)](_0xb4c029,_0x2237ca[_0x456d41(0x162)]):_0xb4c029;}function _0x3ab922(_0xeae3d4,_0x4cb092,_0x35d3a2){const _0x29f98d=_0x4ebfa3;let _0x4025b3=_0x494863(_0xeae3d4,_0x4cb092),_0x3d8623=_0x494863(_0xeae3d4,_0x4cb092===_0x35d3a2?_0x35d3a2:Math[_0x29f98d(0x113)](_0x4cb092,_0x35d3a2-0x1));if(!(!_0x4025b3&&!_0x3d8623)){if(!_0x4025b3||!_0x3d8623||_0x4025b3['startTokenOffset']!==_0x3d8623['startTokenOffset']||_0x4025b3[_0x29f98d(0xfc)]!==_0x3d8623[_0x29f98d(0xfc)])throw new _0x44721d();return _0x4025b3;}}function _0x494863(_0x3d4ebf,_0xeeaeb8){const _0x53062a=_0x4ebfa3;let _0x810ed6=_0x3d4ebf['dataStream'],_0x1aeb87=-0x1;for(let _0x288522=Math[_0x53062a(0xdc)](_0xeeaeb8,_0x810ed6[_0x53062a(0xde)]-0x1);_0x288522>=0x0;_0x288522--){let _0x3e50f9=_0x810ed6[_0x288522];if(_0x3e50f9===_0x2c639f[_0x53062a(0xbe)][_0x53062a(0xd9)])return;if(_0x3e50f9===_0x2c639f[_0x53062a(0xbe)][_0x53062a(0x16a)]){_0x1aeb87=_0x288522;break;}}if(_0x1aeb87<0x0)return;let _0x5a7f1e=_0x810ed6[_0x53062a(0x111)](_0x2c639f[_0x53062a(0xbe)][_0x53062a(0xd9)],_0x1aeb87+0x1);if(!(_0x5a7f1e<0x0||_0xeeaeb8<_0x1aeb87+0x1||_0xeeaeb8>_0x5a7f1e-0x1))return{'startOffset':_0x1aeb87+0x1,'endOffset':Math['max'](_0x1aeb87+0x1,_0x5a7f1e-0x1),'startTokenOffset':_0x1aeb87,'endTokenOffset':_0x5a7f1e};}function _0xbc2700(_0x13f30b){const _0x3f5149=_0x4ebfa3;return(0x0,_0x2c639f[_0x3f5149(0xcb)])(_0x13f30b)['endOffset']-0x1;}function _0x4c5d68(_0x435e0d,_0x963980,_0x430f7f,_0x48d244){const _0x3a364e=_0x4ebfa3;var _0x286b26;let _0x477cd0=_0xbc2700(_0x963980),_0x70f357=((_0x286b26=_0x435e0d['paragraphs'])==null?[]:_0x286b26)[_0x3a364e(0x114)](_0x15663e=>_0x15663e[_0x3a364e(0xce)]===_0x477cd0+0x1);if(!_0x70f357||_0x48d244!=null&&_0x70f357[_0x3a364e(0xce)]!==_0x48d244||_0x430f7f!=null&&(_0x430f7f<_0x477cd0||_0x430f7f>_0x70f357[_0x3a364e(0xce)]+0x1)||_0x435e0d[_0x3a364e(0x135)][_0x70f357[_0x3a364e(0xce)]]!==_0x2c639f[_0x3a364e(0xbe)][_0x3a364e(0xd8)])return null;let _0x54562b=(0x0,_0x2c639f[_0x3a364e(0x14b)])(_0x435e0d,_0x70f357),_0x3efcfc=_0x435e0d[_0x3a364e(0x135)][_0x3a364e(0xbc)](_0x54562b,_0x70f357['startIndex']);return Array[_0x3a364e(0x12b)](_0x3efcfc)[_0x3a364e(0x163)](_0x419e2a=>_0x419e2a===_0x2c639f[_0x3a364e(0xbe)][_0x3a364e(0x171)])?{'paragraph':_0x70f357,'endTokenOffset':_0x477cd0}:null;}function _0x3e0307(_0x45a85e,_0x266651){const _0x23a369=_0x4ebfa3;var _0x1110ac;let _0x12ca04=_0xbc2700(_0x266651),_0x4f4f37=_0x45a85e['dataStream'][_0x12ca04+0x1];(_0x4f4f37===_0x2c639f[_0x23a369(0xbe)][_0x23a369(0x188)]||_0x4f4f37===void 0x0)&&_0x2f30bc(_0x45a85e,_0x12ca04+0x1,_0x2c639f[_0x23a369(0xbe)]['PARAGRAPH'],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,_0x2c639f[_0x23a369(0xcd)])(new Set((_0x1110ac=_0x45a85e['paragraphs'])==null?void 0x0:_0x1110ac[_0x23a369(0x150)](_0x5b68c6=>_0x5b68c6['paragraphId'])))}]});}function _0x2f30bc(_0xb2a7e0,_0x372d04,_0x457bfd,_0x2899c0={}){const _0x20c2b2=_0x4ebfa3;var _0x488039,_0x57d27b;if(_0x457bfd){if(_0xb2a7e0['dataStream']=''+_0xb2a7e0[_0x20c2b2(0x135)][_0x20c2b2(0xbc)](0x0,_0x372d04)+_0x457bfd+_0xb2a7e0[_0x20c2b2(0x135)]['slice'](_0x372d04),_0x397d89(_0xb2a7e0,_0x372d04,_0x457bfd['length']),(_0x488039=_0x2899c0[_0x20c2b2(0x181)])!=null&&_0x488039[_0x20c2b2(0xde)]){var _0x1bf3b0;_0xb2a7e0[_0x20c2b2(0x181)]=[...(_0x1bf3b0=_0xb2a7e0[_0x20c2b2(0x181)])==null?[]:_0x1bf3b0,..._0x2899c0['paragraphs'][_0x20c2b2(0x150)](_0x51081a=>({..._0x51081a,'startIndex':_0x51081a['startIndex']+_0x372d04}))][_0x20c2b2(0x186)]((_0xd0a514,_0x4a507b)=>_0xd0a514[_0x20c2b2(0xce)]-_0x4a507b[_0x20c2b2(0xce)]);}if((_0x57d27b=_0x2899c0[_0x20c2b2(0x169)])!=null&&_0x57d27b['length']){var _0x26f59b;_0xb2a7e0[_0x20c2b2(0x169)]=[...(_0x26f59b=_0xb2a7e0[_0x20c2b2(0x169)])==null?[]:_0x26f59b,..._0x2899c0[_0x20c2b2(0x169)][_0x20c2b2(0x150)](_0x49c25a=>({..._0x49c25a,'startIndex':_0x49c25a[_0x20c2b2(0xce)]+_0x372d04,'endIndex':_0x49c25a[_0x20c2b2(0x170)]+_0x372d04}))][_0x20c2b2(0x186)]((_0x31ba12,_0x33a847)=>_0x31ba12['startIndex']-_0x33a847[_0x20c2b2(0xce)]);}}}function _0x5a5bd9(_0x560cf1,_0x5ce6d9,_0x1fe815){const _0x136db8=_0x4ebfa3;let _0xc02ef8=_0x1fe815-_0x5ce6d9;_0x560cf1[_0x136db8(0x135)]=''+_0x560cf1[_0x136db8(0x135)][_0x136db8(0xbc)](0x0,_0x5ce6d9)+_0x560cf1[_0x136db8(0x135)][_0x136db8(0xbc)](_0x1fe815),_0x2b214d(_0x560cf1,_0x5ce6d9,_0xc02ef8);}function _0x397d89(_0xd5f9a4,_0x55a143,_0x481916){const _0x232370=_0x4ebfa3;_0xd5f9a4[_0x232370(0x181)]=_0x33bd10(_0xd5f9a4[_0x232370(0x181)],_0x55a143,_0x481916),_0xd5f9a4[_0x232370(0x106)]=_0x33bd10(_0xd5f9a4[_0x232370(0x106)],_0x55a143,_0x481916),_0xd5f9a4[_0x232370(0x18c)]=_0x33bd10(_0xd5f9a4[_0x232370(0x18c)],_0x55a143,_0x481916),_0xd5f9a4[_0x232370(0x17c)]=_0x3749c1(_0xd5f9a4['textRuns'],_0x55a143,_0x481916),_0xd5f9a4[_0x232370(0xea)]=_0x4d19a9(_0xd5f9a4[_0x232370(0xea)],_0x55a143,_0x481916),_0xd5f9a4[_0x232370(0x15b)]=_0x4f789b(_0xd5f9a4[_0x232370(0x15b)],_0x55a143,_0x481916),_0xd5f9a4['customRanges']=_0x4f789b(_0xd5f9a4[_0x232370(0x16d)],_0x55a143,_0x481916),_0xd5f9a4[_0x232370(0x13d)]=_0x4f789b(_0xd5f9a4[_0x232370(0x13d)],_0x55a143,_0x481916),_0xd5f9a4[_0x232370(0x169)]=_0x4f789b(_0xd5f9a4['blockRanges'],_0x55a143,_0x481916);}function _0x2b214d(_0x46cb4a,_0x48faea,_0x4ee026){const _0x238f03=_0x4ebfa3;var _0x49e62a,_0x192dc9;_0x46cb4a[_0x238f03(0x181)]=_0x38bfe4(_0x46cb4a[_0x238f03(0x181)],_0x48faea,_0x4ee026),_0x46cb4a[_0x238f03(0x106)]=_0x38bfe4(_0x46cb4a['sectionBreaks'],_0x48faea,_0x4ee026),_0x46cb4a[_0x238f03(0x18c)]=_0x38bfe4(_0x46cb4a['customBlocks'],_0x48faea,_0x4ee026),_0x46cb4a[_0x238f03(0x17c)]=(_0x49e62a=_0x37cdff((_0x192dc9=_0x46cb4a[_0x238f03(0x17c)])==null?void 0x0:_0x192dc9[_0x238f03(0x150)](_0x5b2a12=>({..._0x5b2a12,'startIndex':_0x5b2a12['st'],'endIndex':_0x5b2a12['ed']})),_0x48faea,_0x4ee026))==null?void 0x0:_0x49e62a[_0x238f03(0x150)](_0x14b4b2=>{let {startIndex:_0x1f13a9,endIndex:_0x1f9764,..._0x4ca52d}=_0x14b4b2;return{..._0x4ca52d,'st':_0x1f13a9,'ed':_0x1f9764};}),_0x46cb4a[_0x238f03(0xea)]=_0x37cdff(_0x46cb4a['tables'],_0x48faea,_0x4ee026),_0x46cb4a[_0x238f03(0x15b)]=_0x2b476c(_0x46cb4a['columnGroups'],_0x48faea,_0x4ee026),_0x46cb4a[_0x238f03(0x16d)]=_0x2b476c(_0x46cb4a[_0x238f03(0x16d)],_0x48faea,_0x4ee026),_0x46cb4a[_0x238f03(0x13d)]=_0x2b476c(_0x46cb4a[_0x238f03(0x13d)],_0x48faea,_0x4ee026),_0x46cb4a['blockRanges']=_0x2b476c(_0x46cb4a[_0x238f03(0x169)],_0x48faea,_0x4ee026);}function _0x33bd10(_0x10c1f2,_0x39d67a,_0x4e8779){const _0x4655a6=_0x4ebfa3;return _0x10c1f2==null?void 0x0:_0x10c1f2[_0x4655a6(0x150)](_0x1b350c=>_0x1b350c[_0x4655a6(0xce)]>=_0x39d67a?{..._0x1b350c,'startIndex':_0x1b350c[_0x4655a6(0xce)]+_0x4e8779}:_0x1b350c);}function _0x38bfe4(_0x147dff,_0x27c577,_0x21382a){const _0x17b9ab=_0x4ebfa3;let _0x3342ab=_0x27c577+_0x21382a;return _0x147dff==null?void 0x0:_0x147dff[_0x17b9ab(0x150)](_0x431606=>_0x431606[_0x17b9ab(0xce)]>=_0x27c577&&_0x431606[_0x17b9ab(0xce)]<_0x3342ab?null:_0x431606[_0x17b9ab(0xce)]>=_0x3342ab?{..._0x431606,'startIndex':_0x431606[_0x17b9ab(0xce)]-_0x21382a}:_0x431606)[_0x17b9ab(0x16c)](_0x882459=>_0x882459!=null);}function _0x3749c1(_0x2112fe,_0x3f7be0,_0x45de99){const _0x312f2b=_0x4ebfa3;return _0x2112fe==null?void 0x0:_0x2112fe[_0x312f2b(0x150)](_0x26f8ba=>_0x26f8ba['st']>=_0x3f7be0?{..._0x26f8ba,'st':_0x26f8ba['st']+_0x45de99,'ed':_0x26f8ba['ed']+_0x45de99}:_0x26f8ba['ed']>_0x3f7be0?{..._0x26f8ba,'ed':_0x26f8ba['ed']+_0x45de99}:_0x26f8ba);}function _0x4f789b(_0x368ccd,_0x2b4776,_0x54257d){const _0xe4c302=_0x4ebfa3;return _0x368ccd==null?void 0x0:_0x368ccd[_0xe4c302(0x150)](_0x1d1b55=>(0x0,_0x2c639f[_0xe4c302(0x10d)])(_0x1d1b55,_0x2b4776,_0x54257d));}function _0x4d19a9(_0x340515,_0x43d728,_0x2ee217){const _0x19f916=_0x4ebfa3;return _0x340515==null?void 0x0:_0x340515[_0x19f916(0x150)](_0x4e9994=>(0x0,_0x2c639f[_0x19f916(0x10c)])(_0x4e9994,_0x43d728,_0x2ee217));}function _0x2b476c(_0x594b30,_0x1c52a9,_0x43327c){const _0x64e2db=_0x4ebfa3;return _0x594b30==null?void 0x0:_0x594b30[_0x64e2db(0x150)](_0x2fedae=>(0x0,_0x2c639f['shiftInclusiveRangeOnDelete'])(_0x2fedae,_0x1c52a9,_0x43327c))['filter'](_0x33aa9a=>_0x33aa9a!=null);}function _0x37cdff(_0x82a27a,_0x5053c0,_0x16009){const _0x136007=_0x4ebfa3;return _0x82a27a==null?void 0x0:_0x82a27a[_0x136007(0x150)](_0x53a902=>(0x0,_0x2c639f[_0x136007(0x143)])(_0x53a902,_0x5053c0,_0x16009))[_0x136007(0x16c)](_0x1b5f06=>_0x1b5f06!=null);}let _0xc4c562={'id':_0x4ebfa3(0x119),'type':_0x2c639f[_0x4ebfa3(0x182)][_0x4ebfa3(0x126)],'handler':_0x230224=>{const _0x220001=_0x4ebfa3;var _0x24eb2f;if((0x0,_0x4c2cd6[_0x220001(0x15d)])(_0x18fd4d(_0x230224)))return!0x1;let _0x5d3c17=(0x0,_0x4c2cd6[_0x220001(0xd3)])(_0x230224);if(_0x5d3c17)return _0x230224['get'](_0x2c639f[_0x220001(0xe2)])[_0x220001(0x123)](_0xa5089e['id'],{'startOffset':_0x5d3c17[_0x220001(0xfb)],'endOffset':_0x5d3c17[_0x220001(0x162)],'insertionMode':_0x220001(0xb6),'unitId':_0x5d3c17[_0x220001(0x128)]});let _0x2c2439=_0x32dc2e(_0x230224);if(!_0x2c2439)return!0x1;let _0x290070=(_0x24eb2f=_0x230224[_0x220001(0x122)](_0x2c639f[_0x220001(0x129)])[_0x220001(0xc3)](_0x2c639f[_0x220001(0x191)][_0x220001(0xed)]))==null?void 0x0:_0x24eb2f[_0x220001(0x192)](),_0x4e721b=_0x290070?(0x0,_0x2c639f[_0x220001(0x141)])(_0x290070,_0x2c2439):_0x2c2439[_0x220001(0xce)]+0x1;return _0x230224['get'](_0x2c639f[_0x220001(0xe2)])[_0x220001(0x123)](_0xa5089e['id'],{'startOffset':_0x4e721b,'endOffset':_0x4e721b});}},_0x5e553c={'id':_0x4ebfa3(0xf5),'type':_0x2c639f[_0x4ebfa3(0x182)][_0x4ebfa3(0x126)],'handler':()=>!0x0},_0xa5089e={'id':'docs-code.command.insert','type':_0x2c639f[_0x4ebfa3(0x182)][_0x4ebfa3(0x126)],'handler':(_0x1dad2f,_0x46ac59)=>{const _0x3fc076=_0x4ebfa3;var _0x1aa777;let _0x3faa03=_0x49ef46(_0x1dad2f,_0x46ac59==null?void 0x0:_0x46ac59['unitId']);if(!_0x3faa03)return!0x1;let _0x536ec1=_0x18fd4d(_0x1dad2f);if((0x0,_0x4c2cd6[_0x3fc076(0x15d)])(_0x536ec1))return!0x1;let _0x31c49e=_0x3faa03[_0x3fc076(0xd0)][_0x3fc076(0x10f)](_0x3faa03[_0x3fc076(0x128)]),_0x83e1a4=_0x181be0(_0x46ac59,_0x536ec1),_0x4b60cb=_0x4f6a2f(_0x3faa03[_0x3fc076(0xf9)],_0x83e1a4);if(_0x4b60cb){if(_0x4b60cb['blockType']!==_0x2c639f['DocumentBlockRangeType']['CODE'])return!0x1;let _0x50d68f=_0x164e8d({'blockId':_0x4b60cb[_0x3fc076(0x12a)],'documentData':_0x3faa03[_0x3fc076(0xf9)],'metadata':_0x31c49e});if(!_0x50d68f)return!0x1;let _0x1f3a49=_0x188bf7(_0x3faa03[_0x3fc076(0x149)],_0x3faa03[_0x3fc076(0x11d)],_0x3faa03[_0x3fc076(0x128)],_0x3faa03[_0x3fc076(0xf9)],_0x50d68f[_0x3fc076(0xe8)],_0xa5089e['id'],_0x50d68f['cursorOffset']);return _0x1f3a49&&_0x50d68f[_0x3fc076(0x174)]&&_0x3faa03['model']['deserialize'](_0x3faa03[_0x3fc076(0x128)],_0x50d68f[_0x3fc076(0x174)]),_0x1f3a49;}let _0x28e926=(_0x1aa777=_0x46ac59==null?void 0x0:_0x46ac59[_0x3fc076(0x12a)])==null?(0x0,_0x2c639f[_0x3fc076(0xe3)])(0x6):_0x1aa777,_0x16ad89;try{_0x16ad89=_0x6a6694({'blockId':_0x28e926,'config':_0x46ac59==null?void 0x0:_0x46ac59['config'],'documentData':_0x3faa03[_0x3fc076(0xf9)],'endOffset':_0x83e1a4==null?void 0x0:_0x83e1a4[_0x3fc076(0x162)],'insertionMode':_0x46ac59==null?void 0x0:_0x46ac59['insertionMode'],'metadata':_0x31c49e,'startOffset':_0x83e1a4==null?void 0x0:_0x83e1a4['startOffset']});}catch(_0x539f65){if(_0x539f65 instanceof _0x44721d)return!0x1;throw _0x539f65;}let _0x223754=_0x188bf7(_0x3faa03['commandService'],_0x3faa03[_0x3fc076(0x11d)],_0x3faa03[_0x3fc076(0x128)],_0x3faa03[_0x3fc076(0xf9)],_0x16ad89[_0x3fc076(0xe8)],_0xa5089e['id'],_0x16ad89[_0x3fc076(0x120)]);return _0x223754&&_0x16ad89[_0x3fc076(0x174)]&&_0x3faa03['model'][_0x3fc076(0x108)](_0x3faa03[_0x3fc076(0x128)],_0x16ad89['nextMetadata']),_0x223754;}},_0x140b75={'id':'docs-code.command.update','type':_0x2c639f['CommandType'][_0x4ebfa3(0x126)],'handler':(_0x431433,_0x2c9ccc)=>{const _0x3c86a3=_0x4ebfa3;if(!_0x2c9ccc)return!0x1;let _0x54f241=_0x49ef46(_0x431433,_0x2c9ccc[_0x3c86a3(0x128)]);if(!_0x54f241)return!0x1;let _0x244ce3=_0x87ba29({'blockId':_0x2c9ccc[_0x3c86a3(0x12a)],'config':_0x2c9ccc['config'],'documentData':_0x54f241[_0x3c86a3(0xf9)],'metadata':_0x54f241['model'][_0x3c86a3(0x10f)](_0x54f241['unitId'])});return _0x244ce3[_0x3c86a3(0x174)]&&_0x54f241[_0x3c86a3(0xd0)][_0x3c86a3(0x108)](_0x54f241['unitId'],_0x244ce3[_0x3c86a3(0x174)]),!0x0;}},_0x23202e={'id':_0x4ebfa3(0xd2),'type':_0x2c639f[_0x4ebfa3(0x182)][_0x4ebfa3(0x126)],'handler':(_0x3b2cf4,_0x1757db)=>_0x2ccf01[_0x4ebfa3(0x140)](_0x3b2cf4,_0x1757db)},_0x2ccf01={'id':_0x4ebfa3(0x127),'type':_0x2c639f['CommandType']['COMMAND'],'handler':(_0x1ae5e6,_0x18d487)=>{const _0x4391ed=_0x4ebfa3;if(!_0x18d487)return!0x1;let _0x4ba08e=_0x49ef46(_0x1ae5e6,_0x18d487==null?void 0x0:_0x18d487[_0x4391ed(0x128)]);if(!_0x4ba08e)return!0x1;let _0x7b4c03=_0x164e8d({'blockId':_0x18d487[_0x4391ed(0x12a)],'documentData':_0x4ba08e[_0x4391ed(0xf9)],'metadata':_0x4ba08e[_0x4391ed(0xd0)]['serialize'](_0x4ba08e[_0x4391ed(0x128)])});if(!_0x7b4c03)return!0x1;let _0x15d426=_0x188bf7(_0x4ba08e['commandService'],_0x4ba08e[_0x4391ed(0x11d)],_0x4ba08e['unitId'],_0x4ba08e[_0x4391ed(0xf9)],_0x7b4c03[_0x4391ed(0xe8)],_0x2ccf01['id'],_0x7b4c03[_0x4391ed(0x120)]);return _0x15d426&&_0x7b4c03[_0x4391ed(0x174)]&&_0x4ba08e['model'][_0x4391ed(0x108)](_0x4ba08e['unitId'],_0x7b4c03['nextMetadata']),_0x15d426;}},_0x338189={'id':_0x4ebfa3(0xf3),'type':_0x2c639f['CommandType']['COMMAND'],'handler':(_0x5d90cf,_0x1829f1)=>{const _0x6cbe81=_0x4ebfa3;if(!_0x1829f1)return!0x1;let _0x327896=_0x49ef46(_0x5d90cf,_0x1829f1==null?void 0x0:_0x1829f1[_0x6cbe81(0x128)]);if(!_0x327896)return!0x1;let _0x10a7ba=_0x4b2a1f({'blockId':_0x1829f1['blockId'],'documentData':_0x327896[_0x6cbe81(0xf9)],'metadata':_0x327896['model'][_0x6cbe81(0x10f)](_0x327896[_0x6cbe81(0x128)])});if(!_0x10a7ba)return!0x1;let _0x5b38e9=_0x188bf7(_0x327896[_0x6cbe81(0x149)],_0x327896['selectionManager'],_0x327896[_0x6cbe81(0x128)],_0x327896[_0x6cbe81(0xf9)],_0x10a7ba[_0x6cbe81(0xe8)],_0x338189['id'],_0x10a7ba[_0x6cbe81(0x120)]);return _0x5b38e9&&_0x10a7ba[_0x6cbe81(0x174)]&&_0x327896[_0x6cbe81(0xd0)][_0x6cbe81(0x108)](_0x327896[_0x6cbe81(0x128)],_0x10a7ba[_0x6cbe81(0x174)]),_0x5b38e9;}},_0x129eb1={'id':_0x4ebfa3(0xf1),'type':_0x2c639f[_0x4ebfa3(0x182)][_0x4ebfa3(0x126)],'handler':(_0x3b3a6e,_0x113102)=>{const _0x618cc0=_0x4ebfa3;var _0x477406,_0x19b8f6;let _0x5c6de8=_0x49ef46(_0x3b3a6e,_0x113102==null?void 0x0:_0x113102['unitId']);if(!_0x5c6de8)return!0x1;let _0x29cb3b=(_0x477406=_0x113102==null?void 0x0:_0x113102[_0x618cc0(0x120)])==null?(_0x19b8f6=_0x18fd4d(_0x3b3a6e))==null?void 0x0:_0x19b8f6[_0x618cc0(0xfb)]:_0x477406;if(_0x29cb3b==null)return!0x1;let _0x4beef2=_0x349e27({'cursorOffset':_0x29cb3b,'documentData':_0x5c6de8['previousDocumentData'],'paragraphStartIndex':_0x113102==null?void 0x0:_0x113102[_0x618cc0(0x178)]});return _0x4beef2?_0x188bf7(_0x5c6de8[_0x618cc0(0x149)],_0x5c6de8[_0x618cc0(0x11d)],_0x5c6de8['unitId'],_0x5c6de8['previousDocumentData'],_0x4beef2[_0x618cc0(0xe8)],_0x129eb1['id'],_0x4beef2[_0x618cc0(0x120)]):!0x1;}};function _0x49ef46(_0x32bfd9,_0x3ad306){const _0x2a9d4c=_0x4ebfa3;let _0x504539=_0x32bfd9[_0x2a9d4c(0x122)](_0x2c639f[_0x2a9d4c(0x129)]),_0x48db31=_0x3ad306?_0x504539['getUnit'](_0x3ad306,_0x2c639f['UniverInstanceType'][_0x2a9d4c(0xed)]):_0x504539[_0x2a9d4c(0xc3)](_0x2c639f[_0x2a9d4c(0x191)]['UNIVER_DOC']);return _0x48db31?{'commandService':_0x32bfd9[_0x2a9d4c(0x122)](_0x2c639f[_0x2a9d4c(0xe2)]),'model':_0x32bfd9[_0x2a9d4c(0x122)](_0x1e2f18),'previousDocumentData':_0x48db31[_0x2a9d4c(0x13b)](),'selectionManager':_0x32bfd9[_0x2a9d4c(0x122)](_0x4c2cd6[_0x2a9d4c(0xf7)]),'unitId':_0x48db31[_0x2a9d4c(0x18e)]()}:null;}function _0x18fd4d(_0x3d2862){const _0x50ab7d=_0x4ebfa3;var _0x4dc8ef;return(_0x4dc8ef=_0x3d2862[_0x50ab7d(0x122)](_0x4c2cd6[_0x50ab7d(0xf7)])[_0x50ab7d(0x145)]())==null?void 0x0:_0x4dc8ef[0x0];}function _0x181be0(_0x1bb523,_0x1a8384){const _0x6825e7=_0x4ebfa3;var _0x1035f1,_0x5e6e52;let _0x576eec=(_0x1035f1=_0x1bb523==null?void 0x0:_0x1bb523[_0x6825e7(0xfb)])==null?_0x1a8384==null?void 0x0:_0x1a8384['startOffset']:_0x1035f1,_0x1d8f5a=(_0x5e6e52=_0x1bb523==null?void 0x0:_0x1bb523['endOffset'])==null?_0x1a8384==null?void 0x0:_0x1a8384['endOffset']:_0x5e6e52;if(_0x576eec!=null&&_0x1d8f5a!=null)return{'endOffset':Math['max'](_0x576eec,_0x1d8f5a),'startOffset':Math[_0x6825e7(0xdc)](_0x576eec,_0x1d8f5a)};}function _0x4f6a2f(_0x37c607,_0x1ca20b){const _0x453479=_0x4ebfa3;var _0x57a044;if(!_0x1ca20b)return;let _0xc3786d=_0x2f7205(_0x1ca20b);return(_0x57a044=_0x37c607[_0x453479(0x183)])==null||(_0x57a044=_0x57a044[_0x453479(0x169)])==null?void 0x0:_0x57a044[_0x453479(0x114)](_0x127cee=>{const _0x92e6f9=_0x453479;let _0x415188=(0x0,_0x2c639f['getBlockRangeInterval'])(_0x127cee);return _0x1ca20b['startOffset']===_0x1ca20b['endOffset']?(0x0,_0x2c639f[_0x92e6f9(0x185)])(_0x415188,_0xc3786d):(0x0,_0x2c639f[_0x92e6f9(0x136)])(_0x415188,_0xc3786d);});}function _0x2f7205(_0x5e6fdc){const _0x24df1b=_0x4ebfa3;return _0x5e6fdc['startOffset']===_0x5e6fdc['endOffset']?_0x5e6fdc['startOffset']:_0x5e6fdc[_0x24df1b(0xfb)]+0x1;}function _0x32dc2e(_0x42b9e9){const _0x532887=_0x4ebfa3;var _0x8d613c,_0x173450,_0x56f9af;let _0x46384e=_0x18fd4d(_0x42b9e9);if(!_0x46384e)return null;let _0x3b43c3=_0x42b9e9[_0x532887(0x122)](_0x2c639f['IUniverInstanceService'])['getCurrentUnitOfType'](_0x2c639f[_0x532887(0x191)]['UNIVER_DOC']),_0x3352f7=_0x3b43c3==null?void 0x0:_0x3b43c3['getBody']();return _0x3352f7?(_0x8d613c=_0x2c639f['BuildTextUtils'][_0x532887(0xf6)][_0x532887(0x10a)](_0x46384e,(_0x173450=_0x3352f7['paragraphs'])==null?[]:_0x173450,(_0x56f9af=_0x3352f7[_0x532887(0x135)])==null?'':_0x56f9af)[0x0])==null?null:_0x8d613c:null;}function _0x1cceab(_0x52861e,_0x1f3be6){const _0x5daecd=_0x4ebfa3;let _0x32837b=_0x52861e[_0x5daecd(0x183)],_0x27298d=_0x1f3be6[_0x5daecd(0x183)],_0x49ce6=(0x0,_0x2c639f['getSingleDataStreamChange'])(_0x32837b,_0x27298d);return[_0x49ce6&&_0x27298d?_0x195eb6(_0x27298d,_0x49ce6):null,_0x49ce6?null:_0x2bbcb3(_0x32837b,_0x27298d)][_0x5daecd(0x16c)](Boolean)[_0x5daecd(0x138)]((_0x2f8a15,_0x222a1f)=>_0x2c639f[_0x5daecd(0x187)][_0x5daecd(0x167)](_0x2f8a15,_0x222a1f),null);}function _0x195eb6(_0x352a76,_0x229153){const _0x3d0eac=_0x4ebfa3;let _0xa5d83f=new _0x2c639f[(_0x3d0eac(0x14f))]();return _0xa5d83f[_0x3d0eac(0xd5)](_0x229153['start']),_0x229153[_0x3d0eac(0x15f)]>0x0&&_0xa5d83f['insert'](_0x229153[_0x3d0eac(0x15f)],(0x0,_0x2c639f[_0x3d0eac(0x16f)])(_0x352a76,_0x229153[_0x3d0eac(0x11a)],_0x229153[_0x3d0eac(0x11a)]+_0x229153['insertLength'],!0x1)),_0x229153[_0x3d0eac(0x161)]>0x0&&_0xa5d83f[_0x3d0eac(0x152)](_0x229153['deleteLength']),_0x2c639f[_0x3d0eac(0x187)][_0x3d0eac(0xc9)]()[_0x3d0eac(0xe1)](_0xa5d83f[_0x3d0eac(0x10f)](),[_0x3d0eac(0x183)]);}function _0x2bbcb3(_0x1bb29b,_0x553628){const _0x393335=_0x4ebfa3;let _0x372edb=[],_0x48858=_0x1bb29b?_0x1aa43f(_0x1bb29b):void 0x0,_0x46f6e5=_0x553628?_0x1aa43f(_0x553628):void 0x0;for(let _0x1c2532 of _0x2ffa05)_0x36ca4d(_0x2c639f[_0x393335(0x187)][_0x393335(0xc9)](),[_0x393335(0x183),_0x1c2532],_0x48858==null?void 0x0:_0x48858[_0x1c2532],_0x46f6e5==null?void 0x0:_0x46f6e5[_0x1c2532],_0x372edb);return _0x372edb[_0x393335(0x138)]((_0x2a40fb,_0x171c2f)=>_0x2c639f[_0x393335(0x187)][_0x393335(0x167)](_0x2a40fb,_0x171c2f),null);}let _0x2ffa05=[_0x4ebfa3(0x181),_0x4ebfa3(0x106),_0x4ebfa3(0xea),_0x4ebfa3(0x15b),_0x4ebfa3(0x169),_0x4ebfa3(0x18c),_0x4ebfa3(0x16d),_0x4ebfa3(0x13d),_0x4ebfa3(0x17c)];function _0x1aa43f(_0x392005){return _0x392005;}function _0x36ca4d(_0x4335e4,_0x21b804,_0x31f291,_0x3a7d68,_0x513086){const _0x51a8c1=_0x4ebfa3;if(!_0xc4e82(_0x31f291,_0x3a7d68)){if(_0x31f291==null){_0x513086[_0x51a8c1(0x13a)](_0x4335e4[_0x51a8c1(0xeb)](_0x21b804,_0x3a7d68));return;}if(_0x3a7d68==null){_0x513086[_0x51a8c1(0x13a)](_0x4335e4['removeOp'](_0x21b804,_0x31f291));return;}if(Array[_0x51a8c1(0x12e)](_0x31f291)&&Array[_0x51a8c1(0x12e)](_0x3a7d68)){_0x46ef24(_0x4335e4,_0x21b804,_0x31f291,_0x3a7d68,_0x513086);return;}if(_0x5b8366(_0x31f291)&&_0x5b8366(_0x3a7d68)){new Set([...Object[_0x51a8c1(0x13f)](_0x31f291),...Object[_0x51a8c1(0x13f)](_0x3a7d68)])['forEach'](_0x810059=>{_0x36ca4d(_0x4335e4,[..._0x21b804,_0x810059],_0x31f291[_0x810059],_0x3a7d68[_0x810059],_0x513086);});return;}_0x513086[_0x51a8c1(0x13a)](_0x4335e4[_0x51a8c1(0xdf)](_0x21b804,_0x31f291,_0x3a7d68));}}function _0x46ef24(_0xb92fed,_0x16bb0d,_0x4e7be2,_0x2bc094,_0x2d61b7){const _0xb357ac=_0x4ebfa3;if(_0x4e7be2[_0xb357ac(0xde)]===_0x2bc094[_0xb357ac(0xde)]){_0x4e7be2[_0xb357ac(0x130)]((_0x1811e7,_0x4b7bda)=>_0x36ca4d(_0xb92fed,[..._0x16bb0d,_0x4b7bda],_0x1811e7,_0x2bc094[_0x4b7bda],_0x2d61b7));return;}let _0xa77591=0x0;for(;_0xa77591<_0x4e7be2[_0xb357ac(0xde)]&&_0xa77591<_0x2bc094['length']&&_0xc4e82(_0x4e7be2[_0xa77591],_0x2bc094[_0xa77591]);)_0xa77591++;let _0x474feb=_0x4e7be2[_0xb357ac(0xde)]-0x1,_0x3e7a62=_0x2bc094[_0xb357ac(0xde)]-0x1;for(;_0x474feb>=_0xa77591&&_0x3e7a62>=_0xa77591&&_0xc4e82(_0x4e7be2[_0x474feb],_0x2bc094[_0x3e7a62]);)_0x474feb--,_0x3e7a62--;for(let _0x4a76d2=_0x474feb;_0x4a76d2>=_0xa77591;_0x4a76d2--)_0x2d61b7[_0xb357ac(0x13a)](_0xb92fed['removeOp']([..._0x16bb0d,_0x4a76d2],_0x4e7be2[_0x4a76d2]));for(let _0x43e25c=_0xa77591;_0x43e25c<=_0x3e7a62;_0x43e25c++)_0x2d61b7['push'](_0xb92fed['insertOp']([..._0x16bb0d,_0x43e25c],_0x2bc094[_0x43e25c]));}function _0x5b8366(_0x395bea){const _0xcde99e=_0x4ebfa3;return typeof _0x395bea==_0xcde99e(0x15a)&&!!_0x395bea&&!Array[_0xcde99e(0x12e)](_0x395bea);}function _0xc4e82(_0x5073b2,_0x2cc39c){const _0x58b90c=_0x4ebfa3;return JSON[_0x58b90c(0xdd)](_0x5073b2)===JSON[_0x58b90c(0xdd)](_0x2cc39c);}function _0x188bf7(_0x4c852a,_0x316b6e,_0x16388c,_0x3247e3,_0x4d6a76,_0x5e0f9f,_0x1d2106){const _0x322f56=_0x4ebfa3;let _0x401ff1=_0x1cceab(_0x3247e3,_0x4d6a76);return _0x401ff1?!!_0x4c852a[_0x322f56(0x123)](_0x4c2cd6[_0x322f56(0x11e)]['id'],{'unitId':_0x16388c,'actions':_0x401ff1,'textRanges':[{'startOffset':_0x1d2106,'endOffset':_0x1d2106,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x5e0f9f}):(_0x316b6e[_0x322f56(0xff)]([{'startOffset':_0x1d2106,'endOffset':_0x1d2106}],{'unitId':_0x16388c,'subUnitId':_0x16388c},!0x1),!0x0);}let _0x52da62=_0x4ebfa3(0x134);var _0x3bda87=_0x4ebfa3(0xe5),_0x4d98ca=_0x4ebfa3(0x164);let _0x45eaca={};function _0x4c02d0(_0x3ae958,_0x2b6490){return function(_0x10fc00,_0x29f6da){_0x2b6490(_0x10fc00,_0x29f6da,_0x3ae958);};}function _0x5c15de(_0xfd66ff,_0x8fc3b0,_0x407de4,_0x218329){const _0x360b29=_0x4ebfa3;var _0xf1deee=arguments[_0x360b29(0xde)],_0x40d997=_0xf1deee<0x3?_0x8fc3b0:_0x218329===null?_0x218329=Object['getOwnPropertyDescriptor'](_0x8fc3b0,_0x407de4):_0x218329,_0x35cb07;if(typeof Reflect=='object'&&typeof Reflect[_0x360b29(0x133)]==_0x360b29(0x160))_0x40d997=Reflect[_0x360b29(0x133)](_0xfd66ff,_0x8fc3b0,_0x407de4,_0x218329);else{for(var _0x5af39c=_0xfd66ff[_0x360b29(0xde)]-0x1;_0x5af39c>=0x0;_0x5af39c--)(_0x35cb07=_0xfd66ff[_0x5af39c])&&(_0x40d997=(_0xf1deee<0x3?_0x35cb07(_0x40d997):_0xf1deee>0x3?_0x35cb07(_0x8fc3b0,_0x407de4,_0x40d997):_0x35cb07(_0x8fc3b0,_0x407de4))||_0x40d997);}return _0xf1deee>0x3&&_0x40d997&&Object[_0x360b29(0x18b)](_0x8fc3b0,_0x407de4,_0x40d997),_0x40d997;}let _0x48206f=class extends _0x2c639f['Disposable']{constructor(_0x490eec,_0x21a751){const _0x44d651=_0x4ebfa3;super(),this[_0x44d651(0x157)]=_0x490eec,this[_0x44d651(0xba)]=_0x21a751,this['_initResource']();}[_0x4ebfa3(0xe9)](){const _0xfcad28=_0x4ebfa3;this[_0xfcad28(0x124)](this['_resourceManagerService']['registerPluginResource']({'pluginName':_0x52da62,'businesses':[_0x2c639f[_0xfcad28(0x191)][_0xfcad28(0xed)]],'toJson':_0x199044=>JSON['stringify'](this[_0xfcad28(0xba)][_0xfcad28(0x10f)](_0x199044)),'parseJson':_0x5e981b=>_0xe69571(JSON[_0xfcad28(0x144)](_0x5e981b)),'onLoad':(_0x364fd0,_0xbb7d17)=>this[_0xfcad28(0xba)]['deserialize'](_0x364fd0,_0xbb7d17),'onUnLoad':_0x5eab18=>this[_0xfcad28(0xba)][_0xfcad28(0xfd)](_0x5eab18)}));}};_0x48206f=_0x5c15de([_0x4c02d0(0x0,_0x2c639f[_0x4ebfa3(0x12c)]),_0x4c02d0(0x1,(0x0,_0x2c639f[_0x4ebfa3(0x190)])(_0x1e2f18))],_0x48206f);let _0x111c71=class extends _0x2c639f[_0x4ebfa3(0xd7)]{constructor(_0x500635=_0x45eaca,_0x378ce9,_0x437f56,_0x34d357){const _0x4203ee=_0x4ebfa3;super(),this[_0x4203ee(0x17a)]=_0x500635,this[_0x4203ee(0xbd)]=_0x378ce9,this['_commandService']=_0x437f56,this[_0x4203ee(0x125)]=_0x34d357;let {..._0x28b979}=(0x0,_0x2c639f[_0x4203ee(0x179)])({},_0x45eaca,this['_config']);this[_0x4203ee(0x125)][_0x4203ee(0x151)](_0x4203ee(0xdb),_0x28b979);}[_0x4ebfa3(0xfe)](){const _0x58e692=_0x4ebfa3;this[_0x58e692(0xbd)][_0x58e692(0xb7)]([_0x1e2f18]),this[_0x58e692(0xbd)][_0x58e692(0xb7)]([_0x48206f]),this['_injector'][_0x58e692(0x122)](_0x1e2f18),this['_injector'][_0x58e692(0x122)](_0x48206f),[_0xa5089e,_0xc4c562,_0x140b75,_0x2ccf01,_0x338189,_0x23202e,_0x129eb1,_0x5e553c,_0x2f7668,_0x31740f][_0x58e692(0x130)](_0x1bd077=>this[_0x58e692(0x124)](this[_0x58e692(0x156)][_0x58e692(0x118)](_0x1bd077)));}};_0x4f730f(_0x111c71,'pluginName',_0x52da62),_0x4f730f(_0x111c71,_0x4ebfa3(0xc7),_0x3bda87),_0x4f730f(_0x111c71,_0x4ebfa3(0x16e),_0x4d98ca),_0x4f730f(_0x111c71,'type',_0x2c639f['UniverInstanceType'][_0x4ebfa3(0xed)]),_0x111c71=_0x5c15de([(0x0,_0x2c639f[_0x4ebfa3(0xef)])(_0x33c3fd['UniverLicensePlugin'],_0x4c2cd6[_0x4ebfa3(0xcf)]),_0x4c02d0(0x1,(0x0,_0x2c639f[_0x4ebfa3(0x190)])(_0x2c639f[_0x4ebfa3(0x115)])),_0x4c02d0(0x2,_0x2c639f[_0x4ebfa3(0xe2)]),_0x4c02d0(0x3,_0x2c639f['IConfigService'])],_0x111c71),_0x1b6089[_0x4ebfa3(0x159)]=_0x52da62,_0x1b6089[_0x4ebfa3(0x112)]=_0x129eb1,_0x1b6089[_0x4ebfa3(0x172)]=_0x5e553c,_0x1b6089[_0x4ebfa3(0xd4)]=_0xc4c562,_0x1b6089[_0x4ebfa3(0x168)]=_0xa5089e,_0x1b6089[_0x4ebfa3(0x10e)]=_0x1e2f18,_0x1b6089[_0x4ebfa3(0x18a)]=_0x338189,_0x1b6089['DocsCodeUnwrapCommand']=_0x2ccf01,_0x1b6089[_0x4ebfa3(0x175)]=_0x140b75,_0x1b6089[_0x4ebfa3(0xbb)]=_0x31740f,_0x1b6089[_0x4ebfa3(0x180)]=_0x2f7668,Object[_0x4ebfa3(0x18b)](_0x1b6089,_0x4ebfa3(0x166),{'enumerable':!0x0,'get':function(){return _0x111c71;}}),_0x1b6089[_0x4ebfa3(0x14e)]=_0x349e27,_0x1b6089[_0x4ebfa3(0x155)]=_0x18a95b,_0x1b6089[_0x4ebfa3(0x117)]=_0xe5cddb,_0x1b6089[_0x4ebfa3(0x121)]=_0xe69571;}));function _0x4027(){const _0x50f2da=['JSONX','SECTION_BREAK','complete','DocsCodeRemoveCommand','defineProperty','customBlocks','141256lwroQn','getUnitId','docs-code.mutation.set-config','Inject','UniverInstanceType','getBody','config','insert-new','add','5bKtqvz','DocumentBlockRangeType','_docsCodeModel','RemoveDocsCodeConfigMutation','slice','_injector','DataStreamTreeTokenType','TRUE','7902396GDivSh','codes','MUTATION','getCurrentUnitOfType','@univerjs/docs','setCodeConfig','8929278EAXYFU','packageName','set','getInstance','metadata','getBlockRangeInterval','paragraphStyle','createParagraphId','startIndex','UniverDocsPlugin','model','2924772bXkvLt','docs-code.command.exit','getContentInsertRange','DocsCodeInsertBelowCommand','retain','prototype','Plugin','PARAGRAPH','TABLE_CELL_END','BLOCK_START','docs-code.config','min','stringify','length','replaceOp','documentData','editOp','ICommandService','generateRandomId','paragraph','@univerjs-pro/docs-code','1005876DyTSbQ','indentStart','nextDocumentData','_initResource','tables','insertOp','direction','UNIVER_DOC','rxjs','DependentOn','FALSE','docs-code.command.cancel-empty-paragraph','keepLines','docs-code.command.remove','insertionMode','docs-code.command.consume-boundary-delete','range','DocSelectionManagerService','Document\x20body\x20is\x20required','previousDocumentData','endsWith','startOffset','endTokenOffset','removeUnit','onStarting','replaceDocRanges','UniverProDocsCode','removeCode','widowControl','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','javascript','intersectsOperationalIntervals','sectionBreaks','next','deserialize','symbol','getParagraphsInRange','default','shiftExclusiveRangeOnInsert','shiftInclusiveRangeOnInsert','DocsCodeModel','serialize','UniverProLicense','indexOf','DocsCodeCancelEmptyParagraphCommand','max','find','Injector','spaceBelow','normalizeDocsCodeConfig','registerCommand','docs-code.command.insert-below','start','keepNext','toPrimitive','selectionManager','RichTextEditingMutation','exports','cursorOffset','normalizeDocsCodeMetadataResource','get','syncExecuteCommand','disposeWithMe','_configService','COMMAND','docs-code.command.unwrap','unitId','IUniverInstanceService','blockId','from','IResourceManagerService','_setResource','isArray','CODE','forEach','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','paragraphId','decorate','DOC_CODE_PLUGIN','dataStream','containsStreamIndex','Subject','reduce','2688044nfTUBk','push','getSnapshot','fromEntries','customDecorations','some','keys','handler','getParagraphFollowingBlockOffset','right','shiftExclusiveRangeOnDelete','parse','getTextRanges','10952bQqISR','spaceAbove','textStyle','commandService','UniverDocs','getParagraphContentStartOffset','_change$','blockType','buildCancelEmptyCodeParagraphActions','TextX','map','setConfig','delete','BooleanNumber','Module','isCodeBoundaryDelete','_commandService','_resourceManagerService','6503XeQPhR','DOCS_CODE_PLUGIN','object','columnGroups','iterator','isHeaderFooterSelection','string','insertLength','function','deleteLength','endOffset','every','1.0.0-alpha.8','_resources','UniverDocsCodePlugin','compose','DocsCodeInsertCommand','blockRanges','TABLE_CELL_START','left','filter','customRanges','version','getBodySliceForTextXAction','endIndex','BLOCK_END','DocsCodeConsumeBoundaryDeleteCommand','docs-code.mutation.remove-config','nextMetadata','DocsCodeUpdateCommand','@univerjs-pro/license','call','paragraphStartIndex','merge','_config','dispose','textRuns','getParagraphContentStartOffsets','change$','asObservable','SetDocsCodeConfigMutation','paragraphs','CommandType','body','monospace','containsInteriorInsertionOffset','sort'];_0x4027=function(){return _0x50f2da;};return _0x4027();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-code",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Code block model integration for Univer Docs.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -61,15 +61,15 @@
|
|
|
61
61
|
"rxjs": ">=7.0.0"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs
|
|
66
|
-
"@univerjs/docs": "1.0.0-alpha.
|
|
64
|
+
"@univerjs-pro/license": "1.0.0-alpha.8",
|
|
65
|
+
"@univerjs/core": "1.0.0-alpha.8",
|
|
66
|
+
"@univerjs/docs": "1.0.0-alpha.8"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"rxjs": "7.8.2",
|
|
70
70
|
"typescript": "^6.0.3",
|
|
71
71
|
"vitest": "^4.1.10",
|
|
72
|
-
"@univerjs-infra/shared": "1.0.0-alpha.
|
|
72
|
+
"@univerjs-infra/shared": "1.0.0-alpha.8"
|
|
73
73
|
},
|
|
74
74
|
"scripts": {
|
|
75
75
|
"test": "vitest run",
|