@univerjs-pro/docs-code 0.24.0-insiders.20260530-57a0a3e → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x175eea=_0x3c4d;(function(_0x18fb73,_0x588f92){const _0xe8fffa=_0x3c4d,_0x119c79=_0x18fb73();while(!![]){try{const _0xf4aad4=parseInt(_0xe8fffa(0x1bf))/0x1+parseInt(_0xe8fffa(0x20d))/0x2*(-parseInt(_0xe8fffa(0x22e))/0x3)+parseInt(_0xe8fffa(0x237))/0x4+parseInt(_0xe8fffa(0x1e5))/0x5*(parseInt(_0xe8fffa(0x20c))/0x6)+-parseInt(_0xe8fffa(0x1f1))/0x7+-parseInt(_0xe8fffa(0x231))/0x8*(-parseInt(_0xe8fffa(0x1c0))/0x9)+parseInt(_0xe8fffa(0x1d8))/0xa*(-parseInt(_0xe8fffa(0x1c9))/0xb);if(_0xf4aad4===_0x588f92)break;else _0x119c79['push'](_0x119c79['shift']());}catch(_0x4f06d6){_0x119c79['push'](_0x119c79['shift']());}}}(_0xe9a5,0xbb121));import{CommandType as _0xe42a2e,DataStreamTreeTokenType as _0x54b411,Disposable as _0x489005,ICommandService as _0x1a5331,IUniverInstanceService as _0x35ae8e,JSONX as _0x4ea5f1,Tools as _0x4bc8cb,UniverInstanceType as _0x4a4645,generateRandomId as _0x3d1984}from'@univerjs/core';import{FDocument as _0x4e29f8}from'@univerjs/docs-ui/facade';import{DocSelectionManagerService as _0x21e6ad,RichTextEditingMutation as _0x4d9d19}from'@univerjs/docs';import'@univerjs/docs-ui';import{Subject as _0x414f2b}from'rxjs';function _0xe9a5(){const _0x5ddad2=['nextDocumentData','symbol','getTextRanges','set','customDecorations','getText','blockRanges','BLOCK_END','removeCode','defineProperty','reduce','commandService','getCodes','documentData','syncExecuteCommand','PARAGRAPH','150rLKFcR','46012ZDlYBS','body','nextMetadata','_getBlockRange','length','replaceOp','entries','code','map','some','iterator','indexOf','dataStream','startOffset','startIndex','codes','findCodes','docs-code.command.exit','max','default','join','customBlocks','text','asObservable','docs-code.command.update','config','constructor','getRange','BLOCK_START','_resources','SECTION_BREAK','serialize','endsWith','96LpnXNP','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getConfig','11884528RFxReY','blockType','slice','getId','now','diffValue','3567952MWrCUr','string','unitId','monospace','_change$','from','paragraph','find','428717heRpGZ','9rwIIMm','setCodeConfig','deserialize','blockId','get','endOffset','spaceBelow','delete','dispose','10953745XGoFIq','call','prototype','Document\x20body\x20is\x20required','spaceAbove','endIndex','getUniverDocInstance','javascript','complete','getCurrentUnitOfType','customRanges','previousDocumentData','model','textStyle','exit','10JDRjmi','every','cancelEmptyParagraph','object','_setResource','filter','UNIVER_DOC','change$','getSnapshot','indentEnd','_runtime','getUnitId','paragraphStartIndex','76850KrrpEN','_injector','min','function','assign','paragraphs','toPrimitive','sort','forEach','sectionBreaks','getDocumentData','textRuns','4846051fqSQts','describe','tables','COMMAND','fromEntries','indentStart','docs-code.command.insert','cursorOffset','next','paragraphStyle','clear'];_0xe9a5=function(){return _0x5ddad2;};return _0xe9a5();}const p=_0x175eea(0x214),m={'language':_0x175eea(0x1d0),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function h(_0x23247d){return{...m,..._0x23247d};}function g(_0x64240c){const _0x1c0054=_0x175eea;var _0x5244e3;let _0x5e908f=(_0x5244e3=_0x64240c==null?void 0x0:_0x64240c['codes'])==null?{}:_0x5244e3;return{'codes':Object[_0x1c0054(0x1f5)](Object[_0x1c0054(0x213)](_0x5e908f)[_0x1c0054(0x215)](([_0x523d21,_0x3ed0c3])=>[_0x523d21,h(_0x3ed0c3)]))};}function _(_0x5b6207,_0x5d4290,_0x95ecb5){const _0x1c6ca7=_0x175eea;let _0x550ca0=g(_0x5b6207);return _0x550ca0['codes'][_0x5d4290]=h({..._0x550ca0[_0x1c6ca7(0x21c)][_0x5d4290],..._0x95ecb5}),_0x550ca0;}function v(_0x24ca37,_0x5b08a8){const _0x324334=_0x175eea;let _0x971bc1=g(_0x24ca37);return delete _0x971bc1[_0x324334(0x21c)][_0x5b08a8],_0x971bc1;}const y=_0x175eea(0x23a);function b(_0x1d07d4){const _0x3a4ecc=_0x175eea;var _0xfd9cd0,_0x4b731f,_0x5dcb7b;let _0x4a3171=E(_0x1d07d4['documentData']),_0x3c9e82=D(_0x4a3171),_0x115c45=ee(_0x1d07d4[_0x3a4ecc(0x21a)],_0x1d07d4[_0x3a4ecc(0x1c5)]),_0x546725=_0x115c45?(_0xfd9cd0=_0x3c9e82[_0x3a4ecc(0x202)])==null?void 0x0:_0xfd9cd0[_0x3a4ecc(0x1be)](_0x54bef5=>_0x54bef5[_0x3a4ecc(0x21b)]===_0x115c45['startOffset']&&_0x54bef5[_0x3a4ecc(0x1ce)]+0x1===_0x115c45[_0x3a4ecc(0x1c5)]):void 0x0,{startOffset:_0x5608ed,endOffset:_0x360034}=_0x546725?_0x115c45:se(_0x3c9e82,_0x1d07d4[_0x3a4ecc(0x21a)],_0x1d07d4[_0x3a4ecc(0x1c5)]),_0x9da838=le(_0x3c9e82,_0x5608ed,_0x360034),_0x55b49b=(_0x4b731f=_0x546725==null?void 0x0:_0x546725[_0x3a4ecc(0x1c3)])==null?_0x1d07d4[_0x3a4ecc(0x1c3)]:_0x4b731f,_0x557eb7=_(_0x1d07d4['metadata'],_0x55b49b,{...m,..._0x1d07d4[_0x3a4ecc(0x226)]});if(_0x546725)return _0x546725[_0x3a4ecc(0x232)]=p,x(_0x3c9e82,_0x5608ed,_0x360034),w(_0x3c9e82,_0x5608ed,_0x360034,_0x9da838),{'nextDocumentData':_0x4a3171,'nextMetadata':_0x557eb7,'cursorOffset':_0x5608ed+0x1};if(_0x5608ed===_0x360034){let _0x3082ae=''+_0x54b411[_0x3a4ecc(0x229)]+_0x54b411[_0x3a4ecc(0x20b)]+_0x54b411[_0x3a4ecc(0x203)];return j(_0x3c9e82,_0x5608ed,_0x3082ae,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':C(!0x0,!0x0,_0x9da838)}],'blockRanges':[{'blockId':_0x55b49b,'blockType':p,'startIndex':0x0,'endIndex':_0x3082ae[_0x3a4ecc(0x211)]-0x1}]}),{'nextDocumentData':_0x4a3171,'nextMetadata':_0x557eb7,'cursorOffset':_0x5608ed+0x1};}return j(_0x3c9e82,_0x360034,_0x54b411[_0x3a4ecc(0x203)]),j(_0x3c9e82,_0x5608ed,_0x54b411[_0x3a4ecc(0x229)]),w(_0x3c9e82,_0x5608ed,_0x360034+0x1,_0x9da838),_0x3c9e82[_0x3a4ecc(0x202)]=[...(_0x5dcb7b=_0x3c9e82[_0x3a4ecc(0x202)])==null?[]:_0x5dcb7b,{'blockId':_0x55b49b,'blockType':p,'startIndex':_0x5608ed,'endIndex':_0x360034+0x1}][_0x3a4ecc(0x1ec)]((_0x1c4692,_0x1625da)=>_0x1c4692[_0x3a4ecc(0x21b)]-_0x1625da[_0x3a4ecc(0x21b)]),{'nextDocumentData':_0x4a3171,'nextMetadata':_0x557eb7,'cursorOffset':_0x5608ed+0x1};}function x(_0x3e10cb,_0xbded8d,_0x45fef5){const _0x4c734d=_0x175eea;var _0x3f1abe;((_0x3f1abe=_0x3e10cb[_0x4c734d(0x1ea)])==null?[]:_0x3f1abe)['filter'](_0x3d19be=>_0x3d19be[_0x4c734d(0x21b)]>_0xbded8d&&_0x3d19be[_0x4c734d(0x21b)]<_0x45fef5)[_0x4c734d(0x1ed)](_0x50ec1e=>{const _0x527f1a=_0x4c734d;var _0x1119bf;let _0x34cf13={...(_0x1119bf=_0x50ec1e['paragraphStyle'])==null?{}:_0x1119bf};delete _0x34cf13[_0x527f1a(0x1cd)],delete _0x34cf13[_0x527f1a(0x1c6)],_0x50ec1e[_0x527f1a(0x1fa)]=_0x34cf13;});}function ee(_0x516a5b,_0xf7dd6b){const _0x3637db=_0x175eea;return _0x516a5b==null||_0xf7dd6b==null||_0x516a5b===_0xf7dd6b?null:{'startOffset':Math[_0x3637db(0x1e7)](_0x516a5b,_0xf7dd6b),'endOffset':Math[_0x3637db(0x21f)](_0x516a5b,_0xf7dd6b)};}function te(_0x3ffa19){const _0x422aad=_0x175eea;return{'nextDocumentData':E(_0x3ffa19[_0x422aad(0x209)]),'nextMetadata':_(_0x3ffa19['metadata'],_0x3ffa19[_0x422aad(0x1c3)],_0x3ffa19[_0x422aad(0x226)]),'cursorOffset':0x0};}function ne(_0x5ab0a7){const _0x396a27=_0x175eea;var _0x55ce30,_0x993903;let _0x4d3a69=E(_0x5ab0a7[_0x396a27(0x209)]),_0x471dca=D(_0x4d3a69),_0x40e211=S(_0x471dca,_0x5ab0a7['cursorOffset']);if(!_0x40e211)return null;let _0x4c382c=T(_0x471dca,_0x40e211),_0x58d9e8=_0x4c382c[_0x4c382c[_0x396a27(0x211)]-0x1];if(!_0x58d9e8||!oe(_0x471dca,_0x40e211,_0x58d9e8)||_0x5ab0a7[_0x396a27(0x1f8)]<_0x58d9e8['startIndex'])return null;let _0x31ae32=k(_0x471dca,_0x40e211,_0x58d9e8);if(_0x31ae32>=_0x40e211[_0x396a27(0x1ce)])return null;_0x471dca[_0x396a27(0x219)]=[_0x471dca[_0x396a27(0x219)]['slice'](0x0,_0x31ae32),_0x54b411['BLOCK_END'],_0x471dca[_0x396a27(0x219)][_0x396a27(0x233)](_0x31ae32,_0x40e211['endIndex']),_0x471dca[_0x396a27(0x219)][_0x396a27(0x233)](_0x40e211[_0x396a27(0x1ce)]+0x1)][_0x396a27(0x221)](''),z(_0x471dca[_0x396a27(0x1ea)],_0x31ae32,_0x40e211[_0x396a27(0x1ce)],0x1),z(_0x471dca['sectionBreaks'],_0x31ae32,_0x40e211[_0x396a27(0x1ce)],0x1),z(_0x471dca['customBlocks'],_0x31ae32,_0x40e211[_0x396a27(0x1ce)],0x1),pe(_0x471dca[_0x396a27(0x1f0)],_0x31ae32,_0x40e211[_0x396a27(0x1ce)],0x1),B(_0x471dca['tables'],_0x31ae32,_0x40e211['endIndex'],0x1),B(_0x471dca['customRanges'],_0x31ae32,_0x40e211[_0x396a27(0x1ce)],0x1),B(_0x471dca[_0x396a27(0x200)],_0x31ae32,_0x40e211[_0x396a27(0x1ce)],0x1),(_0x55ce30=_0x471dca[_0x396a27(0x202)])==null||_0x55ce30[_0x396a27(0x1ed)](_0x1328c9=>{const _0x4f211c=_0x396a27;_0x1328c9===_0x40e211||_0x1328c9[_0x4f211c(0x1c3)]===_0x40e211[_0x4f211c(0x1c3)]?_0x1328c9['endIndex']=_0x31ae32:_0x1328c9['startIndex']>=_0x31ae32&&_0x1328c9['startIndex']<_0x40e211['endIndex']&&(_0x1328c9[_0x4f211c(0x21b)]+=0x1,_0x1328c9[_0x4f211c(0x1ce)]+=0x1);});let _0x2bb420=T(_0x471dca,{..._0x40e211,'endIndex':_0x31ae32});_0x2bb420[_0x396a27(0x1ed)]((_0x3f0e97,_0x5f1085)=>{const _0x3ad358=_0x396a27;var _0x3dde53;_0x3f0e97['paragraphStyle']={...(_0x3dde53=_0x3f0e97[_0x3ad358(0x1fa)])==null?{}:_0x3dde53,...C(_0x5f1085===0x0,_0x5f1085===_0x2bb420[_0x3ad358(0x211)]-0x1)};});let _0x2294e1=(_0x993903=_0x471dca[_0x396a27(0x1ea)])==null?void 0x0:_0x993903['find'](_0x1daebb=>_0x1daebb[_0x396a27(0x21b)]===_0x31ae32+0x1);return _0x2294e1&&(_0x2294e1[_0x396a27(0x1fa)]=ae(_0x2294e1[_0x396a27(0x1fa)])),{'nextDocumentData':_0x4d3a69,'cursorOffset':_0x31ae32+0x1};}function re(_0x2805a1){const _0x54ee50=_0x175eea;let _0x3bdb94=E(_0x2805a1[_0x54ee50(0x209)]),_0x38e7d6=D(_0x3bdb94),_0x1e3af8=S(_0x38e7d6,_0x2805a1[_0x54ee50(0x1f8)]);return _0x1e3af8&&ie(_0x3bdb94,_0x38e7d6,_0x1e3af8,_0x2805a1[_0x54ee50(0x1f8)],_0x2805a1[_0x54ee50(0x1e4)])||null;}function ie(_0x30ff79,_0x44c29a,_0x5507e4,_0x5f4f56,_0x29e0bb){const _0x41982d=_0x175eea;let _0x24783e=de(_0x44c29a,_0x5507e4,_0x5f4f56,_0x29e0bb);if(!_0x24783e)return null;let _0x2ceba6=_0x24783e['endTokenOffset']-0x1;return M(_0x44c29a,_0x24783e[_0x41982d(0x1bd)][_0x41982d(0x21b)],_0x24783e['paragraph']['startIndex']+0x1),{'nextDocumentData':_0x30ff79,'cursorOffset':_0x2ceba6};}function S(_0x2cb6e2,_0x293ffb){const _0x417f1e=_0x175eea;var _0x30cc46;return(_0x30cc46=_0x2cb6e2[_0x417f1e(0x202)])==null?void 0x0:_0x30cc46['find'](_0x3a5daf=>{const _0x5d2f33=_0x417f1e;let _0x51339e=A(_0x2cb6e2,_0x3a5daf);return _0x3a5daf[_0x5d2f33(0x232)]==='code'&&_0x3a5daf['startIndex']<=_0x293ffb&&_0x293ffb<=_0x51339e+0x2;});}function C(_0x5177b1,_0x26b4cb,_0x113858=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x5177b1&&_0x113858?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':y,'fs':0xc}};}function w(_0xab2e73,_0x5c922f,_0x17bd57,_0x4d1c4d=!0x1){const _0xc9bcbd=_0x175eea;var _0x48b7d6;let _0x51deb2=((_0x48b7d6=_0xab2e73[_0xc9bcbd(0x1ea)])==null?[]:_0x48b7d6)[_0xc9bcbd(0x1dd)](_0x12f7f9=>_0x12f7f9[_0xc9bcbd(0x21b)]>_0x5c922f&&_0x12f7f9[_0xc9bcbd(0x21b)]<_0x17bd57);_0x51deb2['forEach']((_0x13793c,_0x468221)=>{const _0x10e231=_0xc9bcbd;var _0xda051b;_0x13793c[_0x10e231(0x1fa)]={...(_0xda051b=_0x13793c['paragraphStyle'])==null?{}:_0xda051b,...C(_0x468221===0x0,_0x468221===_0x51deb2[_0x10e231(0x211)]-0x1,_0x4d1c4d)};});}function ae(_0x559a06){const _0x517c2a=_0x175eea;var _0x184923,_0x27290f;let _0x4c84d4={..._0x559a06==null?{}:_0x559a06};return delete _0x4c84d4[_0x517c2a(0x1e1)],delete _0x4c84d4[_0x517c2a(0x1f6)],delete _0x4c84d4[_0x517c2a(0x1cd)],delete _0x4c84d4['spaceBelow'],((_0x184923=_0x4c84d4[_0x517c2a(0x1d6)])==null?void 0x0:_0x184923['ff'])===y&&((_0x27290f=_0x4c84d4[_0x517c2a(0x1d6)])==null?void 0x0:_0x27290f['fs'])===0xc&&delete _0x4c84d4[_0x517c2a(0x1d6)],_0x4c84d4;}function T(_0x41a137,_0x3b02bd){const _0x5585c7=_0x175eea;var _0x5b3e0c;let _0x1bf86a=A(_0x41a137,_0x3b02bd);return((_0x5b3e0c=_0x41a137[_0x5585c7(0x1ea)])==null?[]:_0x5b3e0c)[_0x5585c7(0x1dd)](_0x3f3c07=>_0x3f3c07['startIndex']>_0x3b02bd['startIndex']&&_0x3f3c07[_0x5585c7(0x21b)]<_0x1bf86a);}function oe(_0x5a0f3b,_0x5c8f30,_0x40708e){const _0x55783c=_0x175eea;let _0x373fb4=k(_0x5a0f3b,_0x5c8f30,_0x40708e),_0x327f62=_0x5a0f3b[_0x55783c(0x219)][_0x55783c(0x233)](_0x373fb4,_0x40708e['startIndex']);return Array[_0x55783c(0x1bc)](_0x327f62)[_0x55783c(0x1d9)](_0x4d2650=>_0x4d2650===_0x54b411[_0x55783c(0x229)]||_0x4d2650===_0x54b411[_0x55783c(0x203)]);}function E(_0x314e6c){return _0x4bc8cb['deepClone'](_0x314e6c);}function D(_0x40b86a){const _0x17b3f2=_0x175eea;if(!_0x40b86a['body'])throw Error(_0x17b3f2(0x1cc));return _0x40b86a[_0x17b3f2(0x20e)];}function se(_0x282df9,_0x1cd6c2,_0x1bab55){const _0x373bbc=_0x175eea;if(_0x1cd6c2==null||_0x1bab55==null){let _0x2ccb93=ce(_0x282df9);return{'startOffset':_0x2ccb93,'endOffset':_0x2ccb93};}let _0x31c329=Math[_0x373bbc(0x1e7)](_0x1cd6c2,_0x1bab55),_0x2bb7cf=Math[_0x373bbc(0x21f)](_0x1cd6c2,_0x1bab55);return _0x31c329===_0x2bb7cf?{'startOffset':_0x31c329,'endOffset':_0x31c329}:ue(_0x282df9,_0x31c329,_0x2bb7cf);}function ce(_0x2e8921){const _0x467260=_0x175eea;return _0x2e8921[_0x467260(0x219)][_0x467260(0x22d)](_0x54b411[_0x467260(0x22b)])?Math['max'](0x0,_0x2e8921[_0x467260(0x219)][_0x467260(0x211)]-0x1):_0x2e8921[_0x467260(0x219)][_0x467260(0x211)];}function le(_0x11e248,_0x54cec9,_0x500110){const _0x48c31a=_0x175eea;var _0x576a98;let _0x547533=Math[_0x48c31a(0x1e7)](_0x54cec9,_0x500110),_0x22bc42=Math[_0x48c31a(0x21f)](_0x54cec9,_0x500110);return!!((_0x576a98=_0x11e248[_0x48c31a(0x1f3)])!=null&&_0x576a98['some'](_0x3745a2=>_0x547533>_0x3745a2[_0x48c31a(0x21b)]&&_0x547533<_0x3745a2[_0x48c31a(0x1ce)]||_0x22bc42>_0x3745a2[_0x48c31a(0x21b)]&&_0x22bc42<_0x3745a2[_0x48c31a(0x1ce)]||_0x547533<=_0x3745a2[_0x48c31a(0x21b)]&&_0x22bc42>=_0x3745a2[_0x48c31a(0x1ce)]));}function ue(_0x464ded,_0x43dfb6,_0x26db14){const _0x3942a3=_0x175eea;var _0x4dc8c2,_0x197ce6;let _0x3cfee0=[...(_0x4dc8c2=_0x464ded[_0x3942a3(0x1ea)])==null?[]:_0x4dc8c2][_0x3942a3(0x1ec)]((_0x2259f5,_0x2f2d77)=>_0x2259f5['startIndex']-_0x2f2d77['startIndex']),_0x26b219=_0x3cfee0[_0x3942a3(0x1be)]((_0x2bd679,_0x11c03c)=>(_0x11c03c===0x0?0x0:_0x3cfee0[_0x11c03c-0x1][_0x3942a3(0x21b)]+0x1)<=_0x43dfb6&&_0x43dfb6<=_0x2bd679['startIndex']),_0x564cdc=(_0x197ce6=_0x3cfee0[_0x3942a3(0x1be)](_0x36bc23=>_0x36bc23[_0x3942a3(0x21b)]>=_0x26db14-0x1))==null?_0x3cfee0[_0x3cfee0[_0x3942a3(0x211)]-0x1]:_0x197ce6;return{'startOffset':_0x26b219?O(_0x3cfee0,_0x26b219):_0x43dfb6,'endOffset':_0x564cdc?_0x564cdc[_0x3942a3(0x21b)]+0x1:_0x26db14};}function O(_0x4a4997,_0x41800d){const _0x6a2f6a=_0x175eea;let _0x3585eb=_0x4a4997[_0x6a2f6a(0x218)](_0x41800d);return _0x3585eb>0x0?_0x4a4997[_0x3585eb-0x1][_0x6a2f6a(0x21b)]+0x1:0x0;}function k(_0x37a563,_0x3a2b8f,_0xd514ed){const _0x28b8eb=_0x175eea;var _0x52977e;return Math['max'](O((_0x52977e=_0x37a563[_0x28b8eb(0x1ea)])==null?[]:_0x52977e,_0xd514ed),_0x3a2b8f['startIndex']+0x1);}function A(_0x28b971,_0x469eea){const _0x4cc935=_0x175eea;return _0x28b971[_0x4cc935(0x219)][_0x469eea[_0x4cc935(0x1ce)]]===_0x54b411['BLOCK_END']?_0x469eea['endIndex']:_0x28b971[_0x4cc935(0x219)][_0x469eea[_0x4cc935(0x1ce)]+0x1]===_0x54b411[_0x4cc935(0x203)]?_0x469eea[_0x4cc935(0x1ce)]+0x1:_0x469eea['endIndex'];}function de(_0x3c1252,_0x221fab,_0x4de482,_0x5e04bd){const _0x391f57=_0x175eea;var _0x55d294,_0x3a2c18;let _0x114a97=A(_0x3c1252,_0x221fab),_0x522192=((_0x55d294=_0x3c1252[_0x391f57(0x1ea)])==null?[]:_0x55d294)[_0x391f57(0x1be)](_0x456c4c=>_0x456c4c['startIndex']===_0x114a97+0x1);if(!_0x522192||_0x5e04bd!=null&&_0x522192[_0x391f57(0x21b)]!==_0x5e04bd||_0x4de482<_0x114a97||_0x4de482>_0x522192['startIndex']+0x1||_0x3c1252['dataStream'][_0x522192[_0x391f57(0x21b)]]!==_0x54b411['PARAGRAPH'])return null;let _0xf9ea6d=O((_0x3a2c18=_0x3c1252[_0x391f57(0x1ea)])==null?[]:_0x3a2c18,_0x522192),_0x5a5931=_0x3c1252[_0x391f57(0x219)][_0x391f57(0x233)](_0xf9ea6d,_0x522192[_0x391f57(0x21b)]);return Array[_0x391f57(0x1bc)](_0x5a5931)['every'](_0x53ea29=>_0x53ea29===_0x54b411[_0x391f57(0x203)])?{'paragraph':_0x522192,'endTokenOffset':_0x114a97}:null;}function j(_0x5b02f3,_0x5b83d9,_0x33fd5f,_0x3ef81b={}){const _0x1800b5=_0x175eea;var _0x2d5f67,_0x3b1b27;if(_0x33fd5f){if(_0x5b02f3['dataStream']=''+_0x5b02f3[_0x1800b5(0x219)][_0x1800b5(0x233)](0x0,_0x5b83d9)+_0x33fd5f+_0x5b02f3[_0x1800b5(0x219)]['slice'](_0x5b83d9),N(_0x5b02f3,_0x5b83d9,_0x33fd5f[_0x1800b5(0x211)]),(_0x2d5f67=_0x3ef81b[_0x1800b5(0x1ea)])!=null&&_0x2d5f67['length']){var _0xc51e04;_0x5b02f3['paragraphs']=[...(_0xc51e04=_0x5b02f3[_0x1800b5(0x1ea)])==null?[]:_0xc51e04,..._0x3ef81b[_0x1800b5(0x1ea)][_0x1800b5(0x215)](_0x438c66=>({..._0x438c66,'startIndex':_0x438c66[_0x1800b5(0x21b)]+_0x5b83d9}))][_0x1800b5(0x1ec)]((_0x760aa6,_0x3afc02)=>_0x760aa6[_0x1800b5(0x21b)]-_0x3afc02[_0x1800b5(0x21b)]);}if((_0x3b1b27=_0x3ef81b['blockRanges'])!=null&&_0x3b1b27['length']){var _0x5b06bd;_0x5b02f3[_0x1800b5(0x202)]=[...(_0x5b06bd=_0x5b02f3[_0x1800b5(0x202)])==null?[]:_0x5b06bd,..._0x3ef81b[_0x1800b5(0x202)]['map'](_0x2ffff5=>({..._0x2ffff5,'startIndex':_0x2ffff5['startIndex']+_0x5b83d9,'endIndex':_0x2ffff5['endIndex']+_0x5b83d9}))][_0x1800b5(0x1ec)]((_0x2323f8,_0x3ec8fa)=>_0x2323f8[_0x1800b5(0x21b)]-_0x3ec8fa['startIndex']);}}}function _0x3c4d(_0xc3446c,_0x3fd071){_0xc3446c=_0xc3446c-0x1bb;const _0xe9a5fe=_0xe9a5();let _0x3c4d3d=_0xe9a5fe[_0xc3446c];return _0x3c4d3d;}function M(_0x2853ed,_0x2fc112,_0x2552cb){const _0x5c93b7=_0x175eea;let _0xa55cae=_0x2552cb-_0x2fc112;_0x2853ed[_0x5c93b7(0x219)]=''+_0x2853ed[_0x5c93b7(0x219)][_0x5c93b7(0x233)](0x0,_0x2fc112)+_0x2853ed['dataStream'][_0x5c93b7(0x233)](_0x2552cb),P(_0x2853ed,_0x2fc112,_0xa55cae);}function N(_0x488202,_0x333ff3,_0x69bf8d){const _0x377be0=_0x175eea;_0x488202[_0x377be0(0x1ea)]=F(_0x488202['paragraphs'],_0x333ff3,_0x69bf8d),_0x488202['sectionBreaks']=F(_0x488202[_0x377be0(0x1ee)],_0x333ff3,_0x69bf8d),_0x488202['customBlocks']=F(_0x488202[_0x377be0(0x222)],_0x333ff3,_0x69bf8d),_0x488202[_0x377be0(0x1f0)]=fe(_0x488202[_0x377be0(0x1f0)],_0x333ff3,_0x69bf8d),_0x488202[_0x377be0(0x1f3)]=L(_0x488202['tables'],_0x333ff3,_0x69bf8d),_0x488202[_0x377be0(0x1d3)]=L(_0x488202[_0x377be0(0x1d3)],_0x333ff3,_0x69bf8d),_0x488202['customDecorations']=L(_0x488202[_0x377be0(0x200)],_0x333ff3,_0x69bf8d),_0x488202[_0x377be0(0x202)]=L(_0x488202[_0x377be0(0x202)],_0x333ff3,_0x69bf8d);}function P(_0x4d03c0,_0x5b7fe0,_0x4e46bc){const _0x384880=_0x175eea;var _0x311e9b,_0x3ff041;_0x4d03c0[_0x384880(0x1ea)]=I(_0x4d03c0['paragraphs'],_0x5b7fe0,_0x4e46bc),_0x4d03c0[_0x384880(0x1ee)]=I(_0x4d03c0[_0x384880(0x1ee)],_0x5b7fe0,_0x4e46bc),_0x4d03c0['customBlocks']=I(_0x4d03c0[_0x384880(0x222)],_0x5b7fe0,_0x4e46bc),_0x4d03c0[_0x384880(0x1f0)]=(_0x311e9b=R((_0x3ff041=_0x4d03c0[_0x384880(0x1f0)])==null?void 0x0:_0x3ff041[_0x384880(0x215)](_0x2dfab2=>({..._0x2dfab2,'startIndex':_0x2dfab2['st'],'endIndex':_0x2dfab2['ed']})),_0x5b7fe0,_0x4e46bc))==null?void 0x0:_0x311e9b[_0x384880(0x215)](_0x2d4a7e=>{let {startIndex:_0x49daa1,endIndex:_0x263184,..._0x3a0c76}=_0x2d4a7e;return{..._0x3a0c76,'st':_0x49daa1,'ed':_0x263184};}),_0x4d03c0[_0x384880(0x1f3)]=R(_0x4d03c0['tables'],_0x5b7fe0,_0x4e46bc),_0x4d03c0[_0x384880(0x1d3)]=R(_0x4d03c0[_0x384880(0x1d3)],_0x5b7fe0,_0x4e46bc),_0x4d03c0['customDecorations']=R(_0x4d03c0[_0x384880(0x200)],_0x5b7fe0,_0x4e46bc),_0x4d03c0[_0x384880(0x202)]=R(_0x4d03c0[_0x384880(0x202)],_0x5b7fe0,_0x4e46bc);}function F(_0x31a370,_0xfe6d09,_0x2bf832){const _0x4cb451=_0x175eea;return _0x31a370==null?void 0x0:_0x31a370[_0x4cb451(0x215)](_0x4caaf7=>_0x4caaf7['startIndex']>=_0xfe6d09?{..._0x4caaf7,'startIndex':_0x4caaf7[_0x4cb451(0x21b)]+_0x2bf832}:_0x4caaf7);}function I(_0x53c314,_0x4eba20,_0x3fac13){const _0x3de2e7=_0x175eea;let _0x114039=_0x4eba20+_0x3fac13;return _0x53c314==null?void 0x0:_0x53c314[_0x3de2e7(0x215)](_0x2db93e=>_0x2db93e[_0x3de2e7(0x21b)]>=_0x4eba20&&_0x2db93e[_0x3de2e7(0x21b)]<_0x114039?null:_0x2db93e['startIndex']>=_0x114039?{..._0x2db93e,'startIndex':_0x2db93e['startIndex']-_0x3fac13}:_0x2db93e)[_0x3de2e7(0x1dd)](_0x3a6beb=>_0x3a6beb!=null);}function fe(_0x49064d,_0x52d1d6,_0x34c76a){const _0x6f8879=_0x175eea;return _0x49064d==null?void 0x0:_0x49064d[_0x6f8879(0x215)](_0x5ccf7d=>_0x5ccf7d['st']>=_0x52d1d6?{..._0x5ccf7d,'st':_0x5ccf7d['st']+_0x34c76a,'ed':_0x5ccf7d['ed']+_0x34c76a}:_0x5ccf7d['ed']>_0x52d1d6?{..._0x5ccf7d,'ed':_0x5ccf7d['ed']+_0x34c76a}:_0x5ccf7d);}function L(_0x40a071,_0x4572b3,_0x5d3a13){const _0x5e9363=_0x175eea;return _0x40a071==null?void 0x0:_0x40a071[_0x5e9363(0x215)](_0x6df042=>_0x6df042['startIndex']>=_0x4572b3?{..._0x6df042,'startIndex':_0x6df042[_0x5e9363(0x21b)]+_0x5d3a13,'endIndex':_0x6df042['endIndex']+_0x5d3a13}:_0x6df042['endIndex']>=_0x4572b3?{..._0x6df042,'endIndex':_0x6df042[_0x5e9363(0x1ce)]+_0x5d3a13}:_0x6df042);}function R(_0x37a23d,_0x44d70b,_0x180653){const _0x4fd8f8=_0x175eea;let _0x4fa4b4=_0x44d70b+_0x180653;return _0x37a23d==null?void 0x0:_0x37a23d[_0x4fd8f8(0x215)](_0x517132=>_0x517132['startIndex']>=_0x44d70b&&_0x517132[_0x4fd8f8(0x1ce)]<_0x4fa4b4?null:_0x517132[_0x4fd8f8(0x21b)]>=_0x4fa4b4?{..._0x517132,'startIndex':_0x517132[_0x4fd8f8(0x21b)]-_0x180653,'endIndex':_0x517132[_0x4fd8f8(0x1ce)]-_0x180653}:_0x517132['endIndex']>=_0x44d70b?{..._0x517132,'startIndex':_0x517132['startIndex']<_0x44d70b?_0x517132[_0x4fd8f8(0x21b)]:_0x44d70b,'endIndex':Math['max'](_0x44d70b,_0x517132[_0x4fd8f8(0x1ce)]-_0x180653)}:_0x517132)['filter'](_0x4d286e=>_0x4d286e!=null);}function z(_0x34e375,_0x1cd218,_0x355a5c,_0x5a2c62){_0x34e375==null||_0x34e375['forEach'](_0x2b9112=>{const _0x427594=_0x3c4d;_0x2b9112[_0x427594(0x21b)]>=_0x1cd218&&_0x2b9112[_0x427594(0x21b)]<_0x355a5c&&(_0x2b9112['startIndex']+=_0x5a2c62);});}function pe(_0x15e574,_0x19075a,_0x52aeba,_0x1d7b43){const _0x43b91b=_0x175eea;_0x15e574==null||_0x15e574[_0x43b91b(0x1ed)](_0x519e7a=>{_0x519e7a['st']>=_0x19075a&&_0x519e7a['st']<_0x52aeba?(_0x519e7a['st']+=_0x1d7b43,_0x519e7a['ed']+=_0x1d7b43):_0x519e7a['ed']>_0x19075a&&_0x519e7a['ed']<_0x52aeba&&(_0x519e7a['ed']+=_0x1d7b43);});}function B(_0x82807d,_0x22c510,_0x40e3d8,_0x39014f){const _0x412e5f=_0x175eea;_0x82807d==null||_0x82807d[_0x412e5f(0x1ed)](_0x45d0e9=>{const _0x11b4c7=_0x412e5f;_0x45d0e9[_0x11b4c7(0x21b)]>=_0x22c510&&_0x45d0e9[_0x11b4c7(0x21b)]<_0x40e3d8?(_0x45d0e9[_0x11b4c7(0x21b)]+=_0x39014f,_0x45d0e9[_0x11b4c7(0x1ce)]+=_0x39014f):_0x45d0e9[_0x11b4c7(0x1ce)]>_0x22c510&&_0x45d0e9[_0x11b4c7(0x1ce)]<_0x40e3d8&&(_0x45d0e9[_0x11b4c7(0x1ce)]+=_0x39014f);});}function V(_0x10628b){'@babel/helpers - typeof';const _0x58b41e=_0x175eea;return V=typeof Symbol==_0x58b41e(0x1e8)&&typeof Symbol[_0x58b41e(0x217)]==_0x58b41e(0x1fd)?function(_0x74b651){return typeof _0x74b651;}:function(_0x5a7ff2){const _0x5e0c47=_0x58b41e;return _0x5a7ff2&&typeof Symbol=='function'&&_0x5a7ff2[_0x5e0c47(0x227)]===Symbol&&_0x5a7ff2!==Symbol[_0x5e0c47(0x1cb)]?_0x5e0c47(0x1fd):typeof _0x5a7ff2;},V(_0x10628b);}function me(_0x3e3df7,_0x171b67){const _0x521e43=_0x175eea;if(V(_0x3e3df7)!=_0x521e43(0x1db)||!_0x3e3df7)return _0x3e3df7;var _0x30a77d=_0x3e3df7[Symbol[_0x521e43(0x1eb)]];if(_0x30a77d!==void 0x0){var _0x5d861b=_0x30a77d[_0x521e43(0x1ca)](_0x3e3df7,_0x171b67||_0x521e43(0x220));if(V(_0x5d861b)!=_0x521e43(0x1db))return _0x5d861b;throw TypeError(_0x521e43(0x22f));}return(_0x171b67==='string'?String:Number)(_0x3e3df7);}function he(_0x27424e){const _0x14a817=_0x175eea;var _0x2b418a=me(_0x27424e,_0x14a817(0x238));return V(_0x2b418a)==_0x14a817(0x1fd)?_0x2b418a:_0x2b418a+'';}function H(_0x76a3e0,_0x57d32b,_0x2dc4e8){const _0x17a863=_0x175eea;return(_0x57d32b=he(_0x57d32b))in _0x76a3e0?Object[_0x17a863(0x205)](_0x76a3e0,_0x57d32b,{'value':_0x2dc4e8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x76a3e0[_0x57d32b]=_0x2dc4e8,_0x76a3e0;}var U=class extends _0x489005{constructor(..._0x40eb99){const _0x6f1a20=_0x175eea;super(..._0x40eb99),H(this,'_resources',new Map()),H(this,_0x6f1a20(0x1bb),new _0x414f2b()),H(this,_0x6f1a20(0x1df),this[_0x6f1a20(0x1bb)][_0x6f1a20(0x224)]());}['getCodeConfig'](_0x1ca624,_0x57e66e){const _0x145e13=_0x175eea;return g(this[_0x145e13(0x22a)]['get'](_0x1ca624))[_0x145e13(0x21c)][_0x57e66e];}[_0x175eea(0x1c1)](_0x1eef2e,_0x278a17,_0x5b2138){const _0x27c1a2=_0x175eea;this[_0x27c1a2(0x1dc)](_0x1eef2e,_0x278a17,_(this[_0x27c1a2(0x22a)][_0x27c1a2(0x1c4)](_0x1eef2e),_0x278a17,_0x5b2138));}[_0x175eea(0x204)](_0x4bfb6c,_0xf9adcc){const _0x19f903=_0x175eea;this[_0x19f903(0x1dc)](_0x4bfb6c,_0xf9adcc,v(this[_0x19f903(0x22a)]['get'](_0x4bfb6c),_0xf9adcc));}[_0x175eea(0x22c)](_0x2a1657){const _0x495c2e=_0x175eea;return g(this['_resources'][_0x495c2e(0x1c4)](_0x2a1657));}['deserialize'](_0xf06e2d,_0x29af24){const _0x2ba3ef=_0x175eea;this[_0x2ba3ef(0x22a)]['set'](_0xf06e2d,g(_0x29af24)),this[_0x2ba3ef(0x1bb)]['next']({'unitId':_0xf06e2d});}['removeUnit'](_0x4b6ac3){const _0x39b1d4=_0x175eea;this[_0x39b1d4(0x22a)][_0x39b1d4(0x1c7)](_0x4b6ac3),this['_change$'][_0x39b1d4(0x1f9)]({'unitId':_0x4b6ac3});}[_0x175eea(0x1c8)](){const _0x21d486=_0x175eea;super[_0x21d486(0x1c8)](),this[_0x21d486(0x22a)][_0x21d486(0x1fb)](),this[_0x21d486(0x1bb)][_0x21d486(0x1d1)]();}[_0x175eea(0x1dc)](_0x54ebdf,_0x4393b9,_0x4468f9){const _0x4467ef=_0x175eea;this[_0x4467ef(0x22a)][_0x4467ef(0x1ff)](_0x54ebdf,_0x4468f9),this[_0x4467ef(0x1bb)][_0x4467ef(0x1f9)]({'unitId':_0x54ebdf,'blockId':_0x4393b9});}};_0xe42a2e[_0x175eea(0x1f4)],_0xe42a2e[_0x175eea(0x1f4)];const ge={'id':_0x175eea(0x1f7),'type':_0xe42a2e['COMMAND'],'handler':(_0x344fbe,_0x4afbf9)=>{const _0x4d38c3=_0x175eea;var _0x494583,_0x1294b4,_0xb6e7ef;let _0x218b73=K(_0x344fbe,_0x4afbf9==null?void 0x0:_0x4afbf9[_0x4d38c3(0x239)]);if(!_0x218b73)return!0x1;let _0x13b5ea=q(_0x344fbe),_0x16a86a=b({'blockId':(_0x494583=_0x4afbf9==null?void 0x0:_0x4afbf9[_0x4d38c3(0x1c3)])==null?_0x3d1984(0x6):_0x494583,'config':_0x4afbf9==null?void 0x0:_0x4afbf9[_0x4d38c3(0x226)],'documentData':_0x218b73[_0x4d38c3(0x1d4)],'endOffset':(_0x1294b4=_0x4afbf9==null?void 0x0:_0x4afbf9[_0x4d38c3(0x1c5)])==null?_0x13b5ea==null?void 0x0:_0x13b5ea[_0x4d38c3(0x1c5)]:_0x1294b4,'metadata':_0x218b73[_0x4d38c3(0x1d5)][_0x4d38c3(0x22c)](_0x218b73[_0x4d38c3(0x239)]),'startOffset':(_0xb6e7ef=_0x4afbf9==null?void 0x0:_0x4afbf9[_0x4d38c3(0x21a)])==null?_0x13b5ea==null?void 0x0:_0x13b5ea[_0x4d38c3(0x21a)]:_0xb6e7ef}),_0x10e75b=Y(_0x218b73[_0x4d38c3(0x207)],_0x218b73[_0x4d38c3(0x239)],_0x218b73[_0x4d38c3(0x1d4)],_0x16a86a[_0x4d38c3(0x1fc)],_0x16a86a['cursorOffset']);return _0x10e75b&&_0x16a86a[_0x4d38c3(0x20f)]&&_0x218b73[_0x4d38c3(0x1d5)][_0x4d38c3(0x1c2)](_0x218b73[_0x4d38c3(0x239)],_0x16a86a[_0x4d38c3(0x20f)]),_0x10e75b;}},_e={'id':_0x175eea(0x225),'type':_0xe42a2e[_0x175eea(0x1f4)],'handler':(_0xf1edb1,_0x122fdb)=>{const _0x52d6d6=_0x175eea;if(!_0x122fdb)return!0x1;let _0x50ac8c=K(_0xf1edb1,_0x122fdb['unitId']);if(!_0x50ac8c)return!0x1;let _0x13aefc=te({'blockId':_0x122fdb[_0x52d6d6(0x1c3)],'config':_0x122fdb[_0x52d6d6(0x226)],'documentData':_0x50ac8c[_0x52d6d6(0x1d4)],'metadata':_0x50ac8c[_0x52d6d6(0x1d5)][_0x52d6d6(0x22c)](_0x50ac8c[_0x52d6d6(0x239)])});return _0x13aefc[_0x52d6d6(0x20f)]&&_0x50ac8c['model'][_0x52d6d6(0x1c2)](_0x50ac8c['unitId'],_0x13aefc[_0x52d6d6(0x20f)]),!0x0;}},W={'id':_0x175eea(0x21e),'type':_0xe42a2e[_0x175eea(0x1f4)],'handler':(_0x5eb798,_0x50c97a)=>{const _0x5be55b=_0x175eea;var _0xb8a943,_0x5e7d8f;let _0x1368c5=K(_0x5eb798,_0x50c97a==null?void 0x0:_0x50c97a[_0x5be55b(0x239)]);if(!_0x1368c5)return!0x1;let _0x5d95ba=(_0xb8a943=_0x50c97a==null?void 0x0:_0x50c97a[_0x5be55b(0x1f8)])==null?(_0x5e7d8f=q(_0x5eb798))==null?void 0x0:_0x5e7d8f[_0x5be55b(0x21a)]:_0xb8a943;if(_0x5d95ba==null)return!0x1;let _0x4e2edf=ne({'cursorOffset':_0x5d95ba,'documentData':_0x1368c5[_0x5be55b(0x1d4)]});return _0x4e2edf?Y(_0x1368c5[_0x5be55b(0x207)],_0x1368c5[_0x5be55b(0x239)],_0x1368c5[_0x5be55b(0x1d4)],_0x4e2edf['nextDocumentData'],_0x4e2edf[_0x5be55b(0x1f8)]):!0x1;}},G={'id':'docs-code.command.cancel-empty-paragraph','type':_0xe42a2e['COMMAND'],'handler':(_0x2eb32e,_0x5bd7b3)=>{const _0x569f40=_0x175eea;var _0x4ad5db,_0x1317b0;let _0x196d4c=K(_0x2eb32e,_0x5bd7b3==null?void 0x0:_0x5bd7b3[_0x569f40(0x239)]);if(!_0x196d4c)return!0x1;let _0x36cd0b=(_0x4ad5db=_0x5bd7b3==null?void 0x0:_0x5bd7b3[_0x569f40(0x1f8)])==null?(_0x1317b0=q(_0x2eb32e))==null?void 0x0:_0x1317b0[_0x569f40(0x21a)]:_0x4ad5db;if(_0x36cd0b==null)return!0x1;let _0x2b1672=re({'cursorOffset':_0x36cd0b,'documentData':_0x196d4c['previousDocumentData'],'paragraphStartIndex':_0x5bd7b3==null?void 0x0:_0x5bd7b3[_0x569f40(0x1e4)]});return _0x2b1672?Y(_0x196d4c['commandService'],_0x196d4c['unitId'],_0x196d4c[_0x569f40(0x1d4)],_0x2b1672['nextDocumentData'],_0x2b1672[_0x569f40(0x1f8)]):!0x1;}};function K(_0x2e82ec,_0x4cc26b){const _0x53a040=_0x175eea;let _0x411b76=_0x2e82ec[_0x53a040(0x1c4)](_0x35ae8e),_0x2c9220=_0x4cc26b?_0x411b76[_0x53a040(0x1cf)](_0x4cc26b):_0x411b76[_0x53a040(0x1d2)](_0x4a4645[_0x53a040(0x1de)]);return _0x2c9220?{'commandService':_0x2e82ec[_0x53a040(0x1c4)](_0x1a5331),'model':_0x2e82ec['get'](U),'previousDocumentData':_0x2c9220[_0x53a040(0x1e0)](),'unitId':_0x2c9220[_0x53a040(0x1e3)]()}:null;}function q(_0x2b67cd){const _0x4de2ce=_0x175eea;var _0x11c30c;return(_0x11c30c=_0x2b67cd[_0x4de2ce(0x1c4)](_0x21e6ad)[_0x4de2ce(0x1fe)]())==null?void 0x0:_0x11c30c[0x0];}function ve(_0x2ecdbf,_0x57fdb6){const _0x213cae=_0x175eea;var _0x19aeed,_0x58631c,_0x48dd79,_0x5d5415,_0x3762d7,_0x2e33fe,_0x444874,_0x5000db,_0x33f48a,_0x17f98e,_0x375c70,_0x3b368b,_0x168d50,_0x1140fc,_0x22e5b3,_0x1afd00,_0x1ffeea,_0x1ead0a;let _0x5ccb9a=_0x4ea5f1['getInstance']();return[J(_0x5ccb9a,[_0x213cae(0x20e),'dataStream'],(_0x19aeed=_0x2ecdbf[_0x213cae(0x20e)])==null?void 0x0:_0x19aeed[_0x213cae(0x219)],(_0x58631c=_0x57fdb6[_0x213cae(0x20e)])==null?void 0x0:_0x58631c[_0x213cae(0x219)]),J(_0x5ccb9a,[_0x213cae(0x20e),'paragraphs'],(_0x48dd79=_0x2ecdbf[_0x213cae(0x20e)])==null?void 0x0:_0x48dd79[_0x213cae(0x1ea)],(_0x5d5415=_0x57fdb6['body'])==null?void 0x0:_0x5d5415['paragraphs']),J(_0x5ccb9a,[_0x213cae(0x20e),_0x213cae(0x1ee)],(_0x3762d7=_0x2ecdbf['body'])==null?void 0x0:_0x3762d7[_0x213cae(0x1ee)],(_0x2e33fe=_0x57fdb6['body'])==null?void 0x0:_0x2e33fe[_0x213cae(0x1ee)]),J(_0x5ccb9a,[_0x213cae(0x20e),_0x213cae(0x1f0)],(_0x444874=_0x2ecdbf['body'])==null?void 0x0:_0x444874[_0x213cae(0x1f0)],(_0x5000db=_0x57fdb6[_0x213cae(0x20e)])==null?void 0x0:_0x5000db[_0x213cae(0x1f0)]),J(_0x5ccb9a,['body',_0x213cae(0x222)],(_0x33f48a=_0x2ecdbf[_0x213cae(0x20e)])==null?void 0x0:_0x33f48a[_0x213cae(0x222)],(_0x17f98e=_0x57fdb6[_0x213cae(0x20e)])==null?void 0x0:_0x17f98e[_0x213cae(0x222)]),J(_0x5ccb9a,[_0x213cae(0x20e),_0x213cae(0x1d3)],(_0x375c70=_0x2ecdbf[_0x213cae(0x20e)])==null?void 0x0:_0x375c70[_0x213cae(0x1d3)],(_0x3b368b=_0x57fdb6[_0x213cae(0x20e)])==null?void 0x0:_0x3b368b[_0x213cae(0x1d3)]),J(_0x5ccb9a,[_0x213cae(0x20e),_0x213cae(0x200)],(_0x168d50=_0x2ecdbf['body'])==null?void 0x0:_0x168d50[_0x213cae(0x200)],(_0x1140fc=_0x57fdb6[_0x213cae(0x20e)])==null?void 0x0:_0x1140fc['customDecorations']),J(_0x5ccb9a,[_0x213cae(0x20e),_0x213cae(0x1f3)],(_0x22e5b3=_0x2ecdbf['body'])==null?void 0x0:_0x22e5b3['tables'],(_0x1afd00=_0x57fdb6[_0x213cae(0x20e)])==null?void 0x0:_0x1afd00['tables']),J(_0x5ccb9a,[_0x213cae(0x20e),'blockRanges'],(_0x1ffeea=_0x2ecdbf[_0x213cae(0x20e)])==null?void 0x0:_0x1ffeea[_0x213cae(0x202)],(_0x1ead0a=_0x57fdb6[_0x213cae(0x20e)])==null?void 0x0:_0x1ead0a[_0x213cae(0x202)])][_0x213cae(0x1dd)](Boolean)[_0x213cae(0x206)]((_0x1f32a7,_0x1e62ef)=>_0x4ea5f1['compose'](_0x1f32a7,_0x1e62ef),null);}function J(_0xbb637d,_0x11a374,_0x28a82f,_0x4e4cac){const _0x3f31df=_0x175eea;return _0x4bc8cb[_0x3f31df(0x236)](_0x28a82f,_0x4e4cac)?null:_0xbb637d[_0x3f31df(0x212)](_0x11a374,_0x28a82f,_0x4e4cac);}function Y(_0xca1f21,_0x4aea85,_0x145d5c,_0x4dd771,_0x182911){const _0x127c26=_0x175eea;let _0x437b5f=ve(_0x145d5c,_0x4dd771);return _0x437b5f?!!_0xca1f21[_0x127c26(0x20a)](_0x4d9d19['id'],{'unitId':_0x4aea85,'actions':_0x437b5f,'textRanges':[{'startOffset':_0x182911,'endOffset':_0x182911,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}var X=class{constructor(_0xd5b37c){const _0x2c224a=_0x175eea;this[_0x2c224a(0x1e2)]=_0xd5b37c;}[_0x175eea(0x234)](){return this['_runtime']['blockId'];}[_0x175eea(0x228)](){const _0x31fd1b=_0x175eea;let _0x54971a=this['_getBlockRange']();return _0x54971a?{'blockId':_0x54971a[_0x31fd1b(0x1c3)],'endIndex':_0x54971a[_0x31fd1b(0x1ce)],'startIndex':_0x54971a['startIndex']}:null;}[_0x175eea(0x201)](){const _0x359c3b=_0x175eea;var _0x269a0c;let _0x482fa1=this['_getBlockRange'](),_0x700b03=(_0x269a0c=this[_0x359c3b(0x1e2)][_0x359c3b(0x1ef)]()[_0x359c3b(0x20e)])==null?void 0x0:_0x269a0c[_0x359c3b(0x219)];return!_0x482fa1||!_0x700b03?'':ye(_0x700b03[_0x359c3b(0x233)](_0x482fa1[_0x359c3b(0x21b)]+0x1,_0x482fa1['endIndex']));}[_0x175eea(0x1f2)](){const _0x5c99a4=_0x175eea;let _0x5b9b77=this[_0x5c99a4(0x228)]();return _0x5b9b77?{..._0x5b9b77,'config':this[_0x5c99a4(0x230)](),'text':this[_0x5c99a4(0x201)](),'type':_0x5c99a4(0x214)}:null;}[_0x175eea(0x230)](){const _0x36cbd8=_0x175eea;var _0x19cf66;return h((_0x19cf66=this[_0x36cbd8(0x1e2)][_0x36cbd8(0x1d5)])==null?void 0x0:_0x19cf66['getCodeConfig'](this['_runtime'][_0x36cbd8(0x239)],this[_0x36cbd8(0x1e2)][_0x36cbd8(0x1c3)]));}['updateConfig'](_0x2b986b){const _0x5ecdbb=_0x175eea;var _0x2df593;return!!((_0x2df593=this[_0x5ecdbb(0x1e2)][_0x5ecdbb(0x207)])!=null&&_0x2df593['syncExecuteCommand'](_e['id'],{'blockId':this[_0x5ecdbb(0x1e2)]['blockId'],'config':_0x2b986b['config'],'unitId':this[_0x5ecdbb(0x1e2)][_0x5ecdbb(0x239)]}));}[_0x175eea(0x1d7)](_0x34ecb1){const _0x5b26b2=_0x175eea;var _0x44d35f;return!!((_0x44d35f=this[_0x5b26b2(0x1e2)]['commandService'])!=null&&_0x44d35f[_0x5b26b2(0x20a)](W['id'],{'cursorOffset':_0x34ecb1,'unitId':this[_0x5b26b2(0x1e2)][_0x5b26b2(0x239)]}));}[_0x175eea(0x1da)](_0xa181c7={}){const _0x2f3c0b=_0x175eea;var _0x1f6fc2;return!!((_0x1f6fc2=this[_0x2f3c0b(0x1e2)][_0x2f3c0b(0x207)])!=null&&_0x1f6fc2[_0x2f3c0b(0x20a)](G['id'],{..._0xa181c7,'unitId':this[_0x2f3c0b(0x1e2)][_0x2f3c0b(0x239)]}));}[_0x175eea(0x210)](){const _0x48bf1e=_0x175eea;var _0x243a41;return(_0x243a41=this[_0x48bf1e(0x1e2)][_0x48bf1e(0x1ef)]()[_0x48bf1e(0x20e)])==null||(_0x243a41=_0x243a41[_0x48bf1e(0x202)])==null?void 0x0:_0x243a41['find'](_0x20c0a7=>_0x20c0a7['blockId']===this[_0x48bf1e(0x1e2)]['blockId']&&_0x20c0a7['blockType']===_0x48bf1e(0x214));}};function ye(_0x431a29){const _0x30424f=_0x175eea;return Array[_0x30424f(0x1bc)](_0x431a29)[_0x30424f(0x215)](_0x1043e1=>_0x1043e1===_0x54b411[_0x30424f(0x20b)]?'\x0a':_0x1043e1)['filter'](_0x20c938=>_0x20c938!==_0x54b411[_0x30424f(0x229)]&&_0x20c938!==_0x54b411[_0x30424f(0x203)]&&_0x20c938!==_0x54b411['SECTION_BREAK'])[_0x30424f(0x221)]('')['replace'](/\n$/,'');}Object[_0x175eea(0x1e9)](_0x4e29f8[_0x175eea(0x1cb)],{'getCodes'(){const _0x5ce4cd=_0x175eea;var _0x2de41f,_0x2f9354;return(_0x2de41f=(_0x2f9354=this[_0x5ce4cd(0x1e0)]()[_0x5ce4cd(0x20e)])==null||(_0x2f9354=_0x2f9354[_0x5ce4cd(0x202)])==null?void 0x0:_0x2f9354[_0x5ce4cd(0x1dd)](_0x296d70=>_0x296d70[_0x5ce4cd(0x232)]===_0x5ce4cd(0x214))[_0x5ce4cd(0x215)](_0x4128f5=>Z(this,_0x4128f5['blockId'])))==null?[]:_0x2de41f;},'getCode'(_0x1db4e6){const _0x4b5906=_0x175eea;var _0x140da7;return!((_0x140da7=this[_0x4b5906(0x1e0)]()[_0x4b5906(0x20e)])==null||(_0x140da7=_0x140da7[_0x4b5906(0x202)])==null)&&_0x140da7[_0x4b5906(0x216)](_0x266433=>_0x266433[_0x4b5906(0x1c3)]===_0x1db4e6&&_0x266433['blockType']===_0x4b5906(0x214))?Z(this,_0x1db4e6):null;},'getCodeAt'(_0x216b60){const _0x437f95=_0x175eea;var _0x24d104;let _0x4aaa69=(_0x24d104=this[_0x437f95(0x1e0)]()[_0x437f95(0x20e)])==null||(_0x24d104=_0x24d104[_0x437f95(0x202)])==null||(_0x24d104=_0x24d104[_0x437f95(0x1be)](_0x2b7d23=>_0x2b7d23[_0x437f95(0x232)]===_0x437f95(0x214)&&_0x2b7d23[_0x437f95(0x21b)]<=_0x216b60&&_0x216b60<=_0x2b7d23[_0x437f95(0x1ce)]))==null?void 0x0:_0x24d104[_0x437f95(0x1c3)];return _0x4aaa69?Z(this,_0x4aaa69):null;},'findCodeByText'(_0x10d22d){const _0x4dd69d=_0x175eea;var _0x182362;return(_0x182362=this[_0x4dd69d(0x21d)](_0x10d22d)[0x0])==null?null:_0x182362;},'findCodes'(_0x6299f0){const _0x266778=_0x175eea;let _0x41ffa8=typeof _0x6299f0==_0x266778(0x238)?{'text':_0x6299f0}:_0x6299f0;return this[_0x266778(0x208)]()[_0x266778(0x1dd)](_0x3e818d=>!(_0x41ffa8[_0x266778(0x1c3)]&&_0x3e818d[_0x266778(0x234)]()!==_0x41ffa8[_0x266778(0x1c3)]||_0x41ffa8[_0x266778(0x223)]&&!_0x3e818d[_0x266778(0x201)]()['includes'](_0x41ffa8[_0x266778(0x223)])));},'insertCode'(_0x254b9f={}){const _0x391268=_0x175eea;var _0x125430,_0x2a6a9e;let _0x5a59c2=(_0x125430=_0x254b9f['blockId'])==null?'docs-code-'+Date[_0x391268(0x235)]():_0x125430;return(_0x2a6a9e=Q(this))!=null&&_0x2a6a9e[_0x391268(0x20a)](ge['id'],{..._0x254b9f,'blockId':_0x5a59c2,'unitId':this['getId']()})?Z(this,_0x5a59c2):null;},'exitCode'(_0x7c617f){const _0x50f4f2=_0x175eea;var _0x48b99e;return!!((_0x48b99e=Q(this))!=null&&_0x48b99e[_0x50f4f2(0x20a)](W['id'],{'cursorOffset':_0x7c617f,'unitId':this['getId']()}));},'cancelEmptyCodeParagraph'(_0x21124f={}){const _0xdd3b30=_0x175eea;var _0x1cb517;return!!((_0x1cb517=Q(this))!=null&&_0x1cb517[_0xdd3b30(0x20a)](G['id'],{..._0x21124f,'unitId':this[_0xdd3b30(0x234)]()}));}});function Z(_0xd1c704,_0x228f9e){const _0x1eefd9=_0x175eea;let _0x4c0437=$(_0xd1c704);return new X({'blockId':_0x228f9e,'commandService':Q(_0xd1c704),'getDocumentData':()=>_0xd1c704[_0x1eefd9(0x1e0)](),'model':_0x4c0437==null?void 0x0:_0x4c0437[_0x1eefd9(0x1c4)](U),'unitId':_0xd1c704[_0x1eefd9(0x234)]()});}function Q(_0x16c647){const _0x55a74d=_0x175eea;var _0x4abbf5,_0x5cb530;return(_0x4abbf5=_0x16c647['_commandService'])==null?(_0x5cb530=$(_0x16c647))==null?void 0x0:_0x5cb530[_0x55a74d(0x1c4)](_0x1a5331):_0x4abbf5;}function $(_0x5ce1a8){const _0xe44dae=_0x175eea;return _0x5ce1a8[_0xe44dae(0x1e6)];}export{X as FDocsCode};
1
+ const _0x5d89db=_0x1854;(function(_0x7b897a,_0x26c335){const _0x55ad36=_0x1854,_0x589cce=_0x7b897a();while(!![]){try{const _0x4292fc=-parseInt(_0x55ad36(0x183))/0x1+parseInt(_0x55ad36(0x184))/0x2*(-parseInt(_0x55ad36(0x1bf))/0x3)+parseInt(_0x55ad36(0x1bc))/0x4+parseInt(_0x55ad36(0x1d2))/0x5+parseInt(_0x55ad36(0x169))/0x6*(-parseInt(_0x55ad36(0x1ce))/0x7)+parseInt(_0x55ad36(0x1b7))/0x8+parseInt(_0x55ad36(0x1ab))/0x9;if(_0x4292fc===_0x26c335)break;else _0x589cce['push'](_0x589cce['shift']());}catch(_0x45cf00){_0x589cce['push'](_0x589cce['shift']());}}}(_0x15c7,0x9133d));import{CommandType as _0x22f4b7,DataStreamTreeTokenType as _0x180f7a,Disposable as _0x4bc668,ICommandService as _0x2afc20,IUniverInstanceService as _0x40925a,JSONX as _0x209e0e,Tools as _0x20dd72,UniverInstanceType as _0x10a714,generateRandomId as _0x29ed6a}from'@univerjs/core';import{FDocument as _0x19b331}from'@univerjs/docs-ui/facade';import{DocSelectionManagerService as _0x1206d3,RichTextEditingMutation as _0x3d459c}from'@univerjs/docs';import'@univerjs/docs-ui';import{Subject as _0xf3e6d5}from'rxjs';const p=_0x5d89db(0x1c3),m={'language':_0x5d89db(0x18f),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function h(_0x1ec33f){return{...m,..._0x1ec33f};}function g(_0x5ea74a){const _0x87bc6c=_0x5d89db;var _0x1ef1b5;let _0x377ca0=(_0x1ef1b5=_0x5ea74a==null?void 0x0:_0x5ea74a['codes'])==null?{}:_0x1ef1b5;return{'codes':Object[_0x87bc6c(0x192)](Object[_0x87bc6c(0x1af)](_0x377ca0)['map'](([_0x177b68,_0x239938])=>[_0x177b68,h(_0x239938)]))};}function _(_0x355e4b,_0x7b7f9d,_0x194441){const _0x557168=_0x5d89db;let _0x59518b=g(_0x355e4b);return _0x59518b['codes'][_0x7b7f9d]=h({..._0x59518b[_0x557168(0x181)][_0x7b7f9d],..._0x194441}),_0x59518b;}function v(_0x392a07,_0x36f641){const _0x3eab39=_0x5d89db;let _0x4f4fb2=g(_0x392a07);return delete _0x4f4fb2[_0x3eab39(0x181)][_0x36f641],_0x4f4fb2;}const y=_0x5d89db(0x172);function b(_0x14296b){const _0x28ff2c=_0x5d89db;var _0x2833cb,_0x347dd8,_0x404e4d;let _0x41ae25=E(_0x14296b[_0x28ff2c(0x16f)]),_0x4b41df=D(_0x41ae25),_0x4c0388=ee(_0x14296b['startOffset'],_0x14296b[_0x28ff2c(0x16e)]),_0x190045=_0x4c0388?(_0x2833cb=_0x4b41df['blockRanges'])==null?void 0x0:_0x2833cb['find'](_0x4842fb=>_0x4842fb[_0x28ff2c(0x18b)]===_0x4c0388[_0x28ff2c(0x1aa)]&&_0x4842fb['endIndex']+0x1===_0x4c0388[_0x28ff2c(0x16e)]):void 0x0,{startOffset:_0x5236ac,endOffset:_0x1c60d9}=_0x190045?_0x4c0388:se(_0x4b41df,_0x14296b['startOffset'],_0x14296b[_0x28ff2c(0x16e)]),_0x436bf5=le(_0x4b41df,_0x5236ac,_0x1c60d9),_0x1dc3db=(_0x347dd8=_0x190045==null?void 0x0:_0x190045['blockId'])==null?_0x14296b[_0x28ff2c(0x1c6)]:_0x347dd8,_0x28952e=_(_0x14296b[_0x28ff2c(0x1ca)],_0x1dc3db,{...m,..._0x14296b[_0x28ff2c(0x171)]});if(_0x190045)return _0x190045[_0x28ff2c(0x1a5)]=p,x(_0x4b41df,_0x5236ac,_0x1c60d9),w(_0x4b41df,_0x5236ac,_0x1c60d9,_0x436bf5),{'nextDocumentData':_0x41ae25,'nextMetadata':_0x28952e,'cursorOffset':_0x5236ac+0x1};if(_0x5236ac===_0x1c60d9){let _0x3f03e0=''+_0x180f7a[_0x28ff2c(0x16a)]+_0x180f7a[_0x28ff2c(0x17c)]+_0x180f7a[_0x28ff2c(0x1ba)];return j(_0x4b41df,_0x5236ac,_0x3f03e0,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':C(!0x0,!0x0,_0x436bf5)}],'blockRanges':[{'blockId':_0x1dc3db,'blockType':p,'startIndex':0x0,'endIndex':_0x3f03e0[_0x28ff2c(0x1df)]-0x1}]}),{'nextDocumentData':_0x41ae25,'nextMetadata':_0x28952e,'cursorOffset':_0x5236ac+0x1};}return j(_0x4b41df,_0x1c60d9,_0x180f7a[_0x28ff2c(0x1ba)]),j(_0x4b41df,_0x5236ac,_0x180f7a['BLOCK_START']),w(_0x4b41df,_0x5236ac,_0x1c60d9+0x1,_0x436bf5),_0x4b41df[_0x28ff2c(0x1d1)]=[...(_0x404e4d=_0x4b41df[_0x28ff2c(0x1d1)])==null?[]:_0x404e4d,{'blockId':_0x1dc3db,'blockType':p,'startIndex':_0x5236ac,'endIndex':_0x1c60d9+0x1}][_0x28ff2c(0x1b8)]((_0x349f4f,_0x5a5628)=>_0x349f4f[_0x28ff2c(0x18b)]-_0x5a5628[_0x28ff2c(0x18b)]),{'nextDocumentData':_0x41ae25,'nextMetadata':_0x28952e,'cursorOffset':_0x5236ac+0x1};}function x(_0x3bc76e,_0x438d29,_0x5927f0){const _0x3ae9db=_0x5d89db;var _0x48d2d6;((_0x48d2d6=_0x3bc76e['paragraphs'])==null?[]:_0x48d2d6)[_0x3ae9db(0x17f)](_0x207d22=>_0x207d22[_0x3ae9db(0x18b)]>_0x438d29&&_0x207d22['startIndex']<_0x5927f0)['forEach'](_0x343e72=>{const _0x42712e=_0x3ae9db;var _0xe98acd;let _0x5da6d6={...(_0xe98acd=_0x343e72[_0x42712e(0x19f)])==null?{}:_0xe98acd};delete _0x5da6d6['spaceAbove'],delete _0x5da6d6[_0x42712e(0x1b3)],_0x343e72[_0x42712e(0x19f)]=_0x5da6d6;});}function ee(_0x2428ba,_0x59cb11){const _0x2d6b0a=_0x5d89db;return _0x2428ba==null||_0x59cb11==null||_0x2428ba===_0x59cb11?null:{'startOffset':Math['min'](_0x2428ba,_0x59cb11),'endOffset':Math[_0x2d6b0a(0x1b1)](_0x2428ba,_0x59cb11)};}function te(_0x123960){const _0x3e1eb0=_0x5d89db;return{'nextDocumentData':E(_0x123960['documentData']),'nextMetadata':_(_0x123960[_0x3e1eb0(0x1ca)],_0x123960['blockId'],_0x123960[_0x3e1eb0(0x171)]),'cursorOffset':0x0};}function ne(_0x3f1747){const _0x4b4503=_0x5d89db;var _0x436565,_0x30ddc3;let _0x1ac352=E(_0x3f1747[_0x4b4503(0x16f)]),_0x18951f=D(_0x1ac352),_0x1baad2=S(_0x18951f,_0x3f1747[_0x4b4503(0x17b)]);if(!_0x1baad2)return null;let _0xfbf700=T(_0x18951f,_0x1baad2),_0x474e31=_0xfbf700[_0xfbf700[_0x4b4503(0x1df)]-0x1];if(!_0x474e31||!oe(_0x18951f,_0x1baad2,_0x474e31)||_0x3f1747[_0x4b4503(0x17b)]<_0x474e31[_0x4b4503(0x18b)])return null;let _0x552c99=k(_0x18951f,_0x1baad2,_0x474e31);if(_0x552c99>=_0x1baad2[_0x4b4503(0x1e0)])return null;_0x18951f['dataStream']=[_0x18951f['dataStream']['slice'](0x0,_0x552c99),_0x180f7a['BLOCK_END'],_0x18951f[_0x4b4503(0x167)][_0x4b4503(0x19c)](_0x552c99,_0x1baad2['endIndex']),_0x18951f[_0x4b4503(0x167)]['slice'](_0x1baad2[_0x4b4503(0x1e0)]+0x1)]['join'](''),z(_0x18951f[_0x4b4503(0x1cd)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),z(_0x18951f[_0x4b4503(0x1d9)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),z(_0x18951f['customBlocks'],_0x552c99,_0x1baad2['endIndex'],0x1),pe(_0x18951f[_0x4b4503(0x193)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),B(_0x18951f[_0x4b4503(0x1b9)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),B(_0x18951f[_0x4b4503(0x1b6)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),B(_0x18951f[_0x4b4503(0x186)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),(_0x436565=_0x18951f[_0x4b4503(0x1d1)])==null||_0x436565[_0x4b4503(0x1ae)](_0x53ef3f=>{const _0x2e6b54=_0x4b4503;_0x53ef3f===_0x1baad2||_0x53ef3f['blockId']===_0x1baad2[_0x2e6b54(0x1c6)]?_0x53ef3f[_0x2e6b54(0x1e0)]=_0x552c99:_0x53ef3f['startIndex']>=_0x552c99&&_0x53ef3f[_0x2e6b54(0x18b)]<_0x1baad2[_0x2e6b54(0x1e0)]&&(_0x53ef3f['startIndex']+=0x1,_0x53ef3f['endIndex']+=0x1);});let _0x1e928c=T(_0x18951f,{..._0x1baad2,'endIndex':_0x552c99});_0x1e928c[_0x4b4503(0x1ae)]((_0x4b8e10,_0x1fb964)=>{const _0xf8cec9=_0x4b4503;var _0x16ed39;_0x4b8e10[_0xf8cec9(0x19f)]={...(_0x16ed39=_0x4b8e10['paragraphStyle'])==null?{}:_0x16ed39,...C(_0x1fb964===0x0,_0x1fb964===_0x1e928c[_0xf8cec9(0x1df)]-0x1)};});let _0x30044a=(_0x30ddc3=_0x18951f[_0x4b4503(0x1cd)])==null?void 0x0:_0x30ddc3['find'](_0x425d4f=>_0x425d4f[_0x4b4503(0x18b)]===_0x552c99+0x1);return _0x30044a&&(_0x30044a[_0x4b4503(0x19f)]=ae(_0x30044a['paragraphStyle'])),{'nextDocumentData':_0x1ac352,'cursorOffset':_0x552c99+0x1};}function re(_0x2fa921){let _0x1a02c2=E(_0x2fa921['documentData']),_0x59944c=D(_0x1a02c2),_0x427edd=S(_0x59944c,_0x2fa921['cursorOffset']);return _0x427edd&&ie(_0x1a02c2,_0x59944c,_0x427edd,_0x2fa921['cursorOffset'],_0x2fa921['paragraphStartIndex'])||null;}function ie(_0x1055e6,_0x2279d3,_0x2e0fe6,_0x28f00f,_0x2e9eff){const _0x51ea55=_0x5d89db;let _0x52e1ef=de(_0x2279d3,_0x2e0fe6,_0x28f00f,_0x2e9eff);if(!_0x52e1ef)return null;let _0x3a65a9=_0x52e1ef['endTokenOffset']-0x1;return M(_0x2279d3,_0x52e1ef[_0x51ea55(0x1d4)][_0x51ea55(0x18b)],_0x52e1ef[_0x51ea55(0x1d4)][_0x51ea55(0x18b)]+0x1),{'nextDocumentData':_0x1055e6,'cursorOffset':_0x3a65a9};}function S(_0x488eeb,_0x27eda6){const _0x58c2df=_0x5d89db;var _0x5db9ee;return(_0x5db9ee=_0x488eeb[_0x58c2df(0x1d1)])==null?void 0x0:_0x5db9ee['find'](_0x5246c9=>{const _0x2db0f6=_0x58c2df;let _0x3438e5=A(_0x488eeb,_0x5246c9);return _0x5246c9[_0x2db0f6(0x1a5)]===_0x2db0f6(0x1c3)&&_0x5246c9[_0x2db0f6(0x18b)]<=_0x27eda6&&_0x27eda6<=_0x3438e5+0x2;});}function C(_0x464941,_0xc196a9,_0x32c1c9=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x464941&&_0x32c1c9?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':y,'fs':0xc}};}function w(_0x3ae6ec,_0xbce770,_0x274b60,_0x252afb=!0x1){const _0x2e95dc=_0x5d89db;var _0x20cab8;let _0x32cfbd=((_0x20cab8=_0x3ae6ec[_0x2e95dc(0x1cd)])==null?[]:_0x20cab8)['filter'](_0x309b31=>_0x309b31[_0x2e95dc(0x18b)]>_0xbce770&&_0x309b31[_0x2e95dc(0x18b)]<_0x274b60);_0x32cfbd[_0x2e95dc(0x1ae)]((_0x5047a3,_0x4fc965)=>{const _0x1dfc56=_0x2e95dc;var _0x2598f5;_0x5047a3['paragraphStyle']={...(_0x2598f5=_0x5047a3[_0x1dfc56(0x19f)])==null?{}:_0x2598f5,...C(_0x4fc965===0x0,_0x4fc965===_0x32cfbd[_0x1dfc56(0x1df)]-0x1,_0x252afb)};});}function ae(_0x9c423d){const _0x45f1c7=_0x5d89db;var _0x3698ba,_0x55becb;let _0x1b8e8d={..._0x9c423d==null?{}:_0x9c423d};return delete _0x1b8e8d[_0x45f1c7(0x16c)],delete _0x1b8e8d[_0x45f1c7(0x1ad)],delete _0x1b8e8d[_0x45f1c7(0x1bb)],delete _0x1b8e8d['spaceBelow'],((_0x3698ba=_0x1b8e8d['textStyle'])==null?void 0x0:_0x3698ba['ff'])===y&&((_0x55becb=_0x1b8e8d[_0x45f1c7(0x196)])==null?void 0x0:_0x55becb['fs'])===0xc&&delete _0x1b8e8d[_0x45f1c7(0x196)],_0x1b8e8d;}function T(_0x7384b0,_0x56f1da){const _0xe053af=_0x5d89db;var _0x704972;let _0x9ad8b7=A(_0x7384b0,_0x56f1da);return((_0x704972=_0x7384b0['paragraphs'])==null?[]:_0x704972)[_0xe053af(0x17f)](_0x2cab86=>_0x2cab86[_0xe053af(0x18b)]>_0x56f1da[_0xe053af(0x18b)]&&_0x2cab86[_0xe053af(0x18b)]<_0x9ad8b7);}function oe(_0x263e05,_0x58c442,_0x572df9){const _0x3e95bd=_0x5d89db;let _0x33beef=k(_0x263e05,_0x58c442,_0x572df9),_0x297e16=_0x263e05[_0x3e95bd(0x167)][_0x3e95bd(0x19c)](_0x33beef,_0x572df9[_0x3e95bd(0x18b)]);return Array['from'](_0x297e16)[_0x3e95bd(0x19e)](_0x27c5a4=>_0x27c5a4===_0x180f7a[_0x3e95bd(0x16a)]||_0x27c5a4===_0x180f7a[_0x3e95bd(0x1ba)]);}function E(_0x29845f){const _0x4316e8=_0x5d89db;return _0x20dd72[_0x4316e8(0x1b0)](_0x29845f);}function D(_0x58e932){if(!_0x58e932['body'])throw Error('Document\x20body\x20is\x20required');return _0x58e932['body'];}function se(_0x36f4e8,_0x3bd5d6,_0x25166a){const _0x235829=_0x5d89db;if(_0x3bd5d6==null||_0x25166a==null){let _0x25fce0=ce(_0x36f4e8);return{'startOffset':_0x25fce0,'endOffset':_0x25fce0};}let _0x4ef7a4=Math['min'](_0x3bd5d6,_0x25166a),_0x46f537=Math[_0x235829(0x1b1)](_0x3bd5d6,_0x25166a);return _0x4ef7a4===_0x46f537?{'startOffset':_0x4ef7a4,'endOffset':_0x4ef7a4}:ue(_0x36f4e8,_0x4ef7a4,_0x46f537);}function ce(_0x496e6a){const _0x37ea06=_0x5d89db;return _0x496e6a[_0x37ea06(0x167)]['endsWith'](_0x180f7a[_0x37ea06(0x1d5)])?Math[_0x37ea06(0x1b1)](0x0,_0x496e6a[_0x37ea06(0x167)]['length']-0x1):_0x496e6a[_0x37ea06(0x167)][_0x37ea06(0x1df)];}function le(_0x5726fc,_0xc40240,_0x1eb7dd){const _0x529f64=_0x5d89db;var _0x53d910;let _0x140a9b=Math[_0x529f64(0x180)](_0xc40240,_0x1eb7dd),_0x393ebb=Math['max'](_0xc40240,_0x1eb7dd);return!!((_0x53d910=_0x5726fc['tables'])!=null&&_0x53d910[_0x529f64(0x1ac)](_0x526107=>_0x140a9b>_0x526107[_0x529f64(0x18b)]&&_0x140a9b<_0x526107['endIndex']||_0x393ebb>_0x526107['startIndex']&&_0x393ebb<_0x526107[_0x529f64(0x1e0)]||_0x140a9b<=_0x526107['startIndex']&&_0x393ebb>=_0x526107[_0x529f64(0x1e0)]));}function ue(_0x4626b9,_0x1d6f01,_0x3dc196){const _0x2da2f8=_0x5d89db;var _0x154a6f,_0x2f341b;let _0x4ffbed=[...(_0x154a6f=_0x4626b9[_0x2da2f8(0x1cd)])==null?[]:_0x154a6f][_0x2da2f8(0x1b8)]((_0x3f90de,_0x959ee1)=>_0x3f90de[_0x2da2f8(0x18b)]-_0x959ee1[_0x2da2f8(0x18b)]),_0x12ab00=_0x4ffbed[_0x2da2f8(0x17a)]((_0x2c6f5f,_0x5538a6)=>(_0x5538a6===0x0?0x0:_0x4ffbed[_0x5538a6-0x1][_0x2da2f8(0x18b)]+0x1)<=_0x1d6f01&&_0x1d6f01<=_0x2c6f5f['startIndex']),_0x502b5b=(_0x2f341b=_0x4ffbed[_0x2da2f8(0x17a)](_0x3dd08e=>_0x3dd08e[_0x2da2f8(0x18b)]>=_0x3dc196-0x1))==null?_0x4ffbed[_0x4ffbed['length']-0x1]:_0x2f341b;return{'startOffset':_0x12ab00?O(_0x4ffbed,_0x12ab00):_0x1d6f01,'endOffset':_0x502b5b?_0x502b5b[_0x2da2f8(0x18b)]+0x1:_0x3dc196};}function O(_0x52bb99,_0x257b34){const _0x4ba524=_0x5d89db;let _0x296f7d=_0x52bb99[_0x4ba524(0x18e)](_0x257b34);return _0x296f7d>0x0?_0x52bb99[_0x296f7d-0x1][_0x4ba524(0x18b)]+0x1:0x0;}function k(_0x40997d,_0x368fc9,_0x2004ca){const _0xdc78f1=_0x5d89db;var _0x447af6;return Math[_0xdc78f1(0x1b1)](O((_0x447af6=_0x40997d[_0xdc78f1(0x1cd)])==null?[]:_0x447af6,_0x2004ca),_0x368fc9[_0xdc78f1(0x18b)]+0x1);}function A(_0x31a5f1,_0x3837ff){const _0x4ae2a5=_0x5d89db;return _0x31a5f1[_0x4ae2a5(0x167)][_0x3837ff['endIndex']]===_0x180f7a['BLOCK_END']?_0x3837ff[_0x4ae2a5(0x1e0)]:_0x31a5f1[_0x4ae2a5(0x167)][_0x3837ff[_0x4ae2a5(0x1e0)]+0x1]===_0x180f7a[_0x4ae2a5(0x1ba)]?_0x3837ff[_0x4ae2a5(0x1e0)]+0x1:_0x3837ff[_0x4ae2a5(0x1e0)];}function de(_0x406db7,_0xe8b75b,_0x5d3cc7,_0x1b8be9){const _0x2b6f7c=_0x5d89db;var _0x4603f1,_0x311b17;let _0x33b84d=A(_0x406db7,_0xe8b75b),_0x2f0eb3=((_0x4603f1=_0x406db7[_0x2b6f7c(0x1cd)])==null?[]:_0x4603f1)[_0x2b6f7c(0x17a)](_0x213bf2=>_0x213bf2['startIndex']===_0x33b84d+0x1);if(!_0x2f0eb3||_0x1b8be9!=null&&_0x2f0eb3[_0x2b6f7c(0x18b)]!==_0x1b8be9||_0x5d3cc7<_0x33b84d||_0x5d3cc7>_0x2f0eb3[_0x2b6f7c(0x18b)]+0x1||_0x406db7['dataStream'][_0x2f0eb3['startIndex']]!==_0x180f7a['PARAGRAPH'])return null;let _0x5ded07=O((_0x311b17=_0x406db7[_0x2b6f7c(0x1cd)])==null?[]:_0x311b17,_0x2f0eb3),_0x1f6e0b=_0x406db7[_0x2b6f7c(0x167)][_0x2b6f7c(0x19c)](_0x5ded07,_0x2f0eb3[_0x2b6f7c(0x18b)]);return Array[_0x2b6f7c(0x19b)](_0x1f6e0b)[_0x2b6f7c(0x19e)](_0x496223=>_0x496223===_0x180f7a['BLOCK_END'])?{'paragraph':_0x2f0eb3,'endTokenOffset':_0x33b84d}:null;}function j(_0x148b30,_0x272251,_0x3ecb02,_0x3c2dbd={}){const _0x5d6590=_0x5d89db;var _0x59270d,_0x406a2a;if(_0x3ecb02){if(_0x148b30[_0x5d6590(0x167)]=''+_0x148b30['dataStream'][_0x5d6590(0x19c)](0x0,_0x272251)+_0x3ecb02+_0x148b30[_0x5d6590(0x167)][_0x5d6590(0x19c)](_0x272251),N(_0x148b30,_0x272251,_0x3ecb02[_0x5d6590(0x1df)]),(_0x59270d=_0x3c2dbd[_0x5d6590(0x1cd)])!=null&&_0x59270d['length']){var _0x2d1b30;_0x148b30[_0x5d6590(0x1cd)]=[...(_0x2d1b30=_0x148b30[_0x5d6590(0x1cd)])==null?[]:_0x2d1b30,..._0x3c2dbd[_0x5d6590(0x1cd)]['map'](_0x5745c0=>({..._0x5745c0,'startIndex':_0x5745c0[_0x5d6590(0x18b)]+_0x272251}))][_0x5d6590(0x1b8)]((_0x1a2b43,_0x5776be)=>_0x1a2b43[_0x5d6590(0x18b)]-_0x5776be[_0x5d6590(0x18b)]);}if((_0x406a2a=_0x3c2dbd[_0x5d6590(0x1d1)])!=null&&_0x406a2a[_0x5d6590(0x1df)]){var _0x40dd97;_0x148b30['blockRanges']=[...(_0x40dd97=_0x148b30[_0x5d6590(0x1d1)])==null?[]:_0x40dd97,..._0x3c2dbd[_0x5d6590(0x1d1)][_0x5d6590(0x197)](_0x46d1ae=>({..._0x46d1ae,'startIndex':_0x46d1ae['startIndex']+_0x272251,'endIndex':_0x46d1ae['endIndex']+_0x272251}))][_0x5d6590(0x1b8)]((_0xdb31dd,_0x478c6c)=>_0xdb31dd[_0x5d6590(0x18b)]-_0x478c6c[_0x5d6590(0x18b)]);}}}function M(_0x1ec24b,_0x1e247d,_0x248914){const _0x2b455c=_0x5d89db;let _0x12b852=_0x248914-_0x1e247d;_0x1ec24b[_0x2b455c(0x167)]=''+_0x1ec24b[_0x2b455c(0x167)][_0x2b455c(0x19c)](0x0,_0x1e247d)+_0x1ec24b[_0x2b455c(0x167)]['slice'](_0x248914),P(_0x1ec24b,_0x1e247d,_0x12b852);}function N(_0x63c3d1,_0x4a1b30,_0x4527a5){const _0x1731c2=_0x5d89db;_0x63c3d1[_0x1731c2(0x1cd)]=F(_0x63c3d1[_0x1731c2(0x1cd)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x1d9)]=F(_0x63c3d1[_0x1731c2(0x1d9)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x1cf)]=F(_0x63c3d1[_0x1731c2(0x1cf)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x193)]=fe(_0x63c3d1[_0x1731c2(0x193)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x1b9)]=L(_0x63c3d1[_0x1731c2(0x1b9)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x1b6)]=L(_0x63c3d1[_0x1731c2(0x1b6)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x186)]=L(_0x63c3d1[_0x1731c2(0x186)],_0x4a1b30,_0x4527a5),_0x63c3d1['blockRanges']=L(_0x63c3d1[_0x1731c2(0x1d1)],_0x4a1b30,_0x4527a5);}function P(_0x24fcf5,_0x2093a1,_0x34c49c){const _0x461e01=_0x5d89db;var _0x4909de,_0x341484;_0x24fcf5[_0x461e01(0x1cd)]=I(_0x24fcf5['paragraphs'],_0x2093a1,_0x34c49c),_0x24fcf5[_0x461e01(0x1d9)]=I(_0x24fcf5['sectionBreaks'],_0x2093a1,_0x34c49c),_0x24fcf5[_0x461e01(0x1cf)]=I(_0x24fcf5[_0x461e01(0x1cf)],_0x2093a1,_0x34c49c),_0x24fcf5['textRuns']=(_0x4909de=R((_0x341484=_0x24fcf5[_0x461e01(0x193)])==null?void 0x0:_0x341484[_0x461e01(0x197)](_0x26a58f=>({..._0x26a58f,'startIndex':_0x26a58f['st'],'endIndex':_0x26a58f['ed']})),_0x2093a1,_0x34c49c))==null?void 0x0:_0x4909de[_0x461e01(0x197)](_0x11977a=>{let {startIndex:_0x3fc5d7,endIndex:_0x40b783,..._0x36ed1d}=_0x11977a;return{..._0x36ed1d,'st':_0x3fc5d7,'ed':_0x40b783};}),_0x24fcf5[_0x461e01(0x1b9)]=R(_0x24fcf5[_0x461e01(0x1b9)],_0x2093a1,_0x34c49c),_0x24fcf5[_0x461e01(0x1b6)]=R(_0x24fcf5[_0x461e01(0x1b6)],_0x2093a1,_0x34c49c),_0x24fcf5[_0x461e01(0x186)]=R(_0x24fcf5[_0x461e01(0x186)],_0x2093a1,_0x34c49c),_0x24fcf5[_0x461e01(0x1d1)]=R(_0x24fcf5[_0x461e01(0x1d1)],_0x2093a1,_0x34c49c);}function F(_0x228944,_0x4e0696,_0x7d41f5){const _0x4df949=_0x5d89db;return _0x228944==null?void 0x0:_0x228944['map'](_0x2a62a1=>_0x2a62a1['startIndex']>=_0x4e0696?{..._0x2a62a1,'startIndex':_0x2a62a1[_0x4df949(0x18b)]+_0x7d41f5}:_0x2a62a1);}function I(_0x40bfcd,_0x15617a,_0x3d6e6d){const _0x5b4e60=_0x5d89db;let _0xf7074d=_0x15617a+_0x3d6e6d;return _0x40bfcd==null?void 0x0:_0x40bfcd[_0x5b4e60(0x197)](_0x28f8b2=>_0x28f8b2[_0x5b4e60(0x18b)]>=_0x15617a&&_0x28f8b2[_0x5b4e60(0x18b)]<_0xf7074d?null:_0x28f8b2[_0x5b4e60(0x18b)]>=_0xf7074d?{..._0x28f8b2,'startIndex':_0x28f8b2[_0x5b4e60(0x18b)]-_0x3d6e6d}:_0x28f8b2)[_0x5b4e60(0x17f)](_0x3e7c4e=>_0x3e7c4e!=null);}function fe(_0x2aa63b,_0x1cd250,_0x2f4997){const _0x5b0840=_0x5d89db;return _0x2aa63b==null?void 0x0:_0x2aa63b[_0x5b0840(0x197)](_0x5ad183=>_0x5ad183['st']>=_0x1cd250?{..._0x5ad183,'st':_0x5ad183['st']+_0x2f4997,'ed':_0x5ad183['ed']+_0x2f4997}:_0x5ad183['ed']>_0x1cd250?{..._0x5ad183,'ed':_0x5ad183['ed']+_0x2f4997}:_0x5ad183);}function L(_0x2c077c,_0x2fa6f9,_0x516a1e){const _0x1b3190=_0x5d89db;return _0x2c077c==null?void 0x0:_0x2c077c['map'](_0x232066=>_0x232066[_0x1b3190(0x18b)]>=_0x2fa6f9?{..._0x232066,'startIndex':_0x232066['startIndex']+_0x516a1e,'endIndex':_0x232066[_0x1b3190(0x1e0)]+_0x516a1e}:_0x232066[_0x1b3190(0x1e0)]>=_0x2fa6f9?{..._0x232066,'endIndex':_0x232066['endIndex']+_0x516a1e}:_0x232066);}function R(_0x48a13d,_0x3662ff,_0x2cba16){const _0x22ac11=_0x5d89db;let _0x2b90e5=_0x3662ff+_0x2cba16;return _0x48a13d==null?void 0x0:_0x48a13d['map'](_0x264c7b=>_0x264c7b[_0x22ac11(0x18b)]>=_0x3662ff&&_0x264c7b[_0x22ac11(0x1e0)]<_0x2b90e5?null:_0x264c7b[_0x22ac11(0x18b)]>=_0x2b90e5?{..._0x264c7b,'startIndex':_0x264c7b['startIndex']-_0x2cba16,'endIndex':_0x264c7b[_0x22ac11(0x1e0)]-_0x2cba16}:_0x264c7b[_0x22ac11(0x1e0)]>=_0x3662ff?{..._0x264c7b,'startIndex':_0x264c7b['startIndex']<_0x3662ff?_0x264c7b[_0x22ac11(0x18b)]:_0x3662ff,'endIndex':Math['max'](_0x3662ff,_0x264c7b[_0x22ac11(0x1e0)]-_0x2cba16)}:_0x264c7b)[_0x22ac11(0x17f)](_0x386b00=>_0x386b00!=null);}function z(_0x551695,_0xb6dc78,_0x58d401,_0x511853){const _0x4e06b7=_0x5d89db;_0x551695==null||_0x551695[_0x4e06b7(0x1ae)](_0x37764=>{const _0x57ba2c=_0x4e06b7;_0x37764['startIndex']>=_0xb6dc78&&_0x37764[_0x57ba2c(0x18b)]<_0x58d401&&(_0x37764['startIndex']+=_0x511853);});}function pe(_0x168cdc,_0x29198a,_0x22ceec,_0x5585f0){_0x168cdc==null||_0x168cdc['forEach'](_0x4520bc=>{_0x4520bc['st']>=_0x29198a&&_0x4520bc['st']<_0x22ceec?(_0x4520bc['st']+=_0x5585f0,_0x4520bc['ed']+=_0x5585f0):_0x4520bc['ed']>_0x29198a&&_0x4520bc['ed']<_0x22ceec&&(_0x4520bc['ed']+=_0x5585f0);});}function B(_0x523c77,_0x318ef9,_0x4657bb,_0x4f32a3){const _0x59986d=_0x5d89db;_0x523c77==null||_0x523c77[_0x59986d(0x1ae)](_0x13d3e6=>{const _0x3c8de1=_0x59986d;_0x13d3e6[_0x3c8de1(0x18b)]>=_0x318ef9&&_0x13d3e6[_0x3c8de1(0x18b)]<_0x4657bb?(_0x13d3e6[_0x3c8de1(0x18b)]+=_0x4f32a3,_0x13d3e6['endIndex']+=_0x4f32a3):_0x13d3e6[_0x3c8de1(0x1e0)]>_0x318ef9&&_0x13d3e6[_0x3c8de1(0x1e0)]<_0x4657bb&&(_0x13d3e6[_0x3c8de1(0x1e0)]+=_0x4f32a3);});}function _0x15c7(){const _0x46d774=['sort','tables','BLOCK_END','spaceAbove','104408iUUFUv','complete','docs-code.command.insert','1750191DsIkZw','_runtime','compose','getUnitId','code','next','reduce','blockId','syncExecuteCommand','dispose','docs-code.command.exit','metadata','UNIVER_DOC','removeUnit','paragraphs','63aJTywD','customBlocks','join','blockRanges','2319365sUToex','string','paragraph','SECTION_BREAK','COMMAND','cancelEmptyParagraph','text','sectionBreaks','getId','getTextRanges','replace','getDocumentData','_getBlockRange','length','endIndex','dataStream','commandService','545112IMeicc','BLOCK_START','getCodeConfig','indentEnd','delete','endOffset','documentData','getConfig','config','monospace','getSnapshot','now','docs-code.command.update','getText','getRange','body','function','find','cursorOffset','PARAGRAPH','nextMetadata','clear','filter','min','codes','object','337124KZSZGK','4eFxccj','includes','customDecorations','get','getCurrentUnitOfType','toPrimitive','call','startIndex','_resources','serialize','indexOf','javascript','docs-code.command.cancel-empty-paragraph','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','fromEntries','textRuns','previousDocumentData','paragraphStartIndex','textStyle','map','prototype','exit','model','from','slice','_change$','every','paragraphStyle','_commandService','assign','unitId','_injector','nextDocumentData','blockType','describe','set','setCodeConfig','iterator','startOffset','11645280uUTYsW','some','indentStart','forEach','entries','deepClone','max','getCodes','spaceBelow','updateConfig','deserialize','customRanges','9059520AltEjz'];_0x15c7=function(){return _0x46d774;};return _0x15c7();}function V(_0x5cae6c){'@babel/helpers - typeof';const _0x2d8f5b=_0x5d89db;return V=typeof Symbol==_0x2d8f5b(0x179)&&typeof Symbol[_0x2d8f5b(0x1a9)]=='symbol'?function(_0x338cab){return typeof _0x338cab;}:function(_0x11fad8){const _0x374883=_0x2d8f5b;return _0x11fad8&&typeof Symbol==_0x374883(0x179)&&_0x11fad8['constructor']===Symbol&&_0x11fad8!==Symbol[_0x374883(0x198)]?'symbol':typeof _0x11fad8;},V(_0x5cae6c);}function me(_0xfde3a9,_0x4297e4){const _0x46d0ee=_0x5d89db;if(V(_0xfde3a9)!=_0x46d0ee(0x182)||!_0xfde3a9)return _0xfde3a9;var _0x4bbc02=_0xfde3a9[Symbol[_0x46d0ee(0x189)]];if(_0x4bbc02!==void 0x0){var _0x525cf0=_0x4bbc02[_0x46d0ee(0x18a)](_0xfde3a9,_0x4297e4||'default');if(V(_0x525cf0)!=_0x46d0ee(0x182))return _0x525cf0;throw TypeError(_0x46d0ee(0x191));}return(_0x4297e4===_0x46d0ee(0x1d3)?String:Number)(_0xfde3a9);}function he(_0x2064ea){const _0x4b8115=_0x5d89db;var _0x1ed15f=me(_0x2064ea,_0x4b8115(0x1d3));return V(_0x1ed15f)=='symbol'?_0x1ed15f:_0x1ed15f+'';}function H(_0xe6d4b6,_0x1f3318,_0x35e827){return(_0x1f3318=he(_0x1f3318))in _0xe6d4b6?Object['defineProperty'](_0xe6d4b6,_0x1f3318,{'value':_0x35e827,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xe6d4b6[_0x1f3318]=_0x35e827,_0xe6d4b6;}var U=class extends _0x4bc668{constructor(..._0x8836a6){const _0x578043=_0x5d89db;super(..._0x8836a6),H(this,_0x578043(0x18c),new Map()),H(this,_0x578043(0x19d),new _0xf3e6d5()),H(this,'change$',this[_0x578043(0x19d)]['asObservable']());}['getCodeConfig'](_0xa00113,_0x473da4){const _0x2e8ac5=_0x5d89db;return g(this['_resources'][_0x2e8ac5(0x187)](_0xa00113))['codes'][_0x473da4];}[_0x5d89db(0x1a8)](_0x302cc3,_0x735714,_0x191b94){const _0x517a82=_0x5d89db;this['_setResource'](_0x302cc3,_0x735714,_(this['_resources'][_0x517a82(0x187)](_0x302cc3),_0x735714,_0x191b94));}['removeCode'](_0x357037,_0x288e2a){const _0x195484=_0x5d89db;this['_setResource'](_0x357037,_0x288e2a,v(this[_0x195484(0x18c)][_0x195484(0x187)](_0x357037),_0x288e2a));}['serialize'](_0x55f8a2){const _0x4538d4=_0x5d89db;return g(this[_0x4538d4(0x18c)][_0x4538d4(0x187)](_0x55f8a2));}[_0x5d89db(0x1b5)](_0x6848d0,_0x4d0cc7){const _0x486d05=_0x5d89db;this[_0x486d05(0x18c)][_0x486d05(0x1a7)](_0x6848d0,g(_0x4d0cc7)),this[_0x486d05(0x19d)][_0x486d05(0x1c4)]({'unitId':_0x6848d0});}[_0x5d89db(0x1cc)](_0x2664f3){const _0x265885=_0x5d89db;this[_0x265885(0x18c)][_0x265885(0x16d)](_0x2664f3),this[_0x265885(0x19d)][_0x265885(0x1c4)]({'unitId':_0x2664f3});}[_0x5d89db(0x1c8)](){const _0x36d107=_0x5d89db;super[_0x36d107(0x1c8)](),this[_0x36d107(0x18c)][_0x36d107(0x17e)](),this['_change$'][_0x36d107(0x1bd)]();}['_setResource'](_0x50b617,_0x5c9e94,_0xfae61e){const _0x569e5b=_0x5d89db;this[_0x569e5b(0x18c)][_0x569e5b(0x1a7)](_0x50b617,_0xfae61e),this[_0x569e5b(0x19d)][_0x569e5b(0x1c4)]({'unitId':_0x50b617,'blockId':_0x5c9e94});}};_0x22f4b7[_0x5d89db(0x1d6)],_0x22f4b7[_0x5d89db(0x1d6)];const ge={'id':_0x5d89db(0x1be),'type':_0x22f4b7['COMMAND'],'handler':(_0x54956a,_0x1c7865)=>{const _0x716ed4=_0x5d89db;var _0x13aa30,_0xd95464,_0xc946fa;let _0x2595ae=K(_0x54956a,_0x1c7865==null?void 0x0:_0x1c7865[_0x716ed4(0x1a2)]);if(!_0x2595ae)return!0x1;let _0x3b1199=q(_0x54956a),_0x4314e0=b({'blockId':(_0x13aa30=_0x1c7865==null?void 0x0:_0x1c7865[_0x716ed4(0x1c6)])==null?_0x29ed6a(0x6):_0x13aa30,'config':_0x1c7865==null?void 0x0:_0x1c7865[_0x716ed4(0x171)],'documentData':_0x2595ae['previousDocumentData'],'endOffset':(_0xd95464=_0x1c7865==null?void 0x0:_0x1c7865['endOffset'])==null?_0x3b1199==null?void 0x0:_0x3b1199[_0x716ed4(0x16e)]:_0xd95464,'metadata':_0x2595ae[_0x716ed4(0x19a)][_0x716ed4(0x18d)](_0x2595ae[_0x716ed4(0x1a2)]),'startOffset':(_0xc946fa=_0x1c7865==null?void 0x0:_0x1c7865[_0x716ed4(0x1aa)])==null?_0x3b1199==null?void 0x0:_0x3b1199['startOffset']:_0xc946fa}),_0x351938=Y(_0x2595ae[_0x716ed4(0x168)],_0x2595ae[_0x716ed4(0x1a2)],_0x2595ae[_0x716ed4(0x194)],_0x4314e0[_0x716ed4(0x1a4)],_0x4314e0[_0x716ed4(0x17b)]);return _0x351938&&_0x4314e0['nextMetadata']&&_0x2595ae[_0x716ed4(0x19a)][_0x716ed4(0x1b5)](_0x2595ae[_0x716ed4(0x1a2)],_0x4314e0[_0x716ed4(0x17d)]),_0x351938;}},_e={'id':_0x5d89db(0x175),'type':_0x22f4b7[_0x5d89db(0x1d6)],'handler':(_0x37acd8,_0x566a9f)=>{const _0x19da76=_0x5d89db;if(!_0x566a9f)return!0x1;let _0x5191cc=K(_0x37acd8,_0x566a9f[_0x19da76(0x1a2)]);if(!_0x5191cc)return!0x1;let _0x4dda3f=te({'blockId':_0x566a9f['blockId'],'config':_0x566a9f[_0x19da76(0x171)],'documentData':_0x5191cc[_0x19da76(0x194)],'metadata':_0x5191cc['model'][_0x19da76(0x18d)](_0x5191cc['unitId'])});return _0x4dda3f[_0x19da76(0x17d)]&&_0x5191cc[_0x19da76(0x19a)]['deserialize'](_0x5191cc[_0x19da76(0x1a2)],_0x4dda3f[_0x19da76(0x17d)]),!0x0;}},W={'id':_0x5d89db(0x1c9),'type':_0x22f4b7[_0x5d89db(0x1d6)],'handler':(_0x1e4598,_0x2a2215)=>{const _0x15e536=_0x5d89db;var _0x40f0ba,_0x43afb6;let _0x1483b5=K(_0x1e4598,_0x2a2215==null?void 0x0:_0x2a2215[_0x15e536(0x1a2)]);if(!_0x1483b5)return!0x1;let _0x27af81=(_0x40f0ba=_0x2a2215==null?void 0x0:_0x2a2215[_0x15e536(0x17b)])==null?(_0x43afb6=q(_0x1e4598))==null?void 0x0:_0x43afb6[_0x15e536(0x1aa)]:_0x40f0ba;if(_0x27af81==null)return!0x1;let _0x10f223=ne({'cursorOffset':_0x27af81,'documentData':_0x1483b5[_0x15e536(0x194)]});return _0x10f223?Y(_0x1483b5[_0x15e536(0x168)],_0x1483b5[_0x15e536(0x1a2)],_0x1483b5[_0x15e536(0x194)],_0x10f223['nextDocumentData'],_0x10f223[_0x15e536(0x17b)]):!0x1;}},G={'id':_0x5d89db(0x190),'type':_0x22f4b7['COMMAND'],'handler':(_0x230a6d,_0x562f3e)=>{const _0x159815=_0x5d89db;var _0x47da98,_0x478e31;let _0x279caf=K(_0x230a6d,_0x562f3e==null?void 0x0:_0x562f3e[_0x159815(0x1a2)]);if(!_0x279caf)return!0x1;let _0x179489=(_0x47da98=_0x562f3e==null?void 0x0:_0x562f3e['cursorOffset'])==null?(_0x478e31=q(_0x230a6d))==null?void 0x0:_0x478e31[_0x159815(0x1aa)]:_0x47da98;if(_0x179489==null)return!0x1;let _0x110a69=re({'cursorOffset':_0x179489,'documentData':_0x279caf['previousDocumentData'],'paragraphStartIndex':_0x562f3e==null?void 0x0:_0x562f3e[_0x159815(0x195)]});return _0x110a69?Y(_0x279caf['commandService'],_0x279caf[_0x159815(0x1a2)],_0x279caf[_0x159815(0x194)],_0x110a69['nextDocumentData'],_0x110a69['cursorOffset']):!0x1;}};function _0x1854(_0x239d0b,_0x31542a){_0x239d0b=_0x239d0b-0x167;const _0x15c7e8=_0x15c7();let _0x185481=_0x15c7e8[_0x239d0b];return _0x185481;}function K(_0x5e171b,_0x48bf39){const _0x6f7490=_0x5d89db;let _0x344c59=_0x5e171b[_0x6f7490(0x187)](_0x40925a),_0x553d7d=_0x48bf39?_0x344c59['getUniverDocInstance'](_0x48bf39):_0x344c59[_0x6f7490(0x188)](_0x10a714[_0x6f7490(0x1cb)]);return _0x553d7d?{'commandService':_0x5e171b[_0x6f7490(0x187)](_0x2afc20),'model':_0x5e171b[_0x6f7490(0x187)](U),'previousDocumentData':_0x553d7d['getSnapshot'](),'unitId':_0x553d7d[_0x6f7490(0x1c2)]()}:null;}function q(_0x497fd5){const _0x4bbd74=_0x5d89db;var _0x2d5faa;return(_0x2d5faa=_0x497fd5[_0x4bbd74(0x187)](_0x1206d3)[_0x4bbd74(0x1db)]())==null?void 0x0:_0x2d5faa[0x0];}function ve(_0x564d54,_0x1a1099){const _0x3556b8=_0x5d89db;var _0x1f05e1,_0x4fc269,_0x576ca6,_0x374eb4,_0x278086,_0x26e873,_0x22986d,_0x41e761,_0x4fc049,_0x433796,_0x54280b,_0x2acb9a,_0x1fad92,_0x34c240,_0x2ac03e,_0x4a8a75,_0x414c94,_0x5735d8;let _0x3b36d5=_0x209e0e['getInstance']();return[J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x167)],(_0x1f05e1=_0x564d54['body'])==null?void 0x0:_0x1f05e1[_0x3556b8(0x167)],(_0x4fc269=_0x1a1099['body'])==null?void 0x0:_0x4fc269['dataStream']),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1cd)],(_0x576ca6=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x576ca6['paragraphs'],(_0x374eb4=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x374eb4['paragraphs']),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1d9)],(_0x278086=_0x564d54['body'])==null?void 0x0:_0x278086['sectionBreaks'],(_0x26e873=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x26e873[_0x3556b8(0x1d9)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x193)],(_0x22986d=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x22986d[_0x3556b8(0x193)],(_0x41e761=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x41e761[_0x3556b8(0x193)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1cf)],(_0x4fc049=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x4fc049[_0x3556b8(0x1cf)],(_0x433796=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x433796[_0x3556b8(0x1cf)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1b6)],(_0x54280b=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x54280b[_0x3556b8(0x1b6)],(_0x2acb9a=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x2acb9a[_0x3556b8(0x1b6)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x186)],(_0x1fad92=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x1fad92[_0x3556b8(0x186)],(_0x34c240=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x34c240[_0x3556b8(0x186)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1b9)],(_0x2ac03e=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x2ac03e[_0x3556b8(0x1b9)],(_0x4a8a75=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x4a8a75[_0x3556b8(0x1b9)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1d1)],(_0x414c94=_0x564d54['body'])==null?void 0x0:_0x414c94[_0x3556b8(0x1d1)],(_0x5735d8=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x5735d8['blockRanges'])][_0x3556b8(0x17f)](Boolean)[_0x3556b8(0x1c5)]((_0x3ae940,_0x5e2108)=>_0x209e0e[_0x3556b8(0x1c1)](_0x3ae940,_0x5e2108),null);}function J(_0x535166,_0x2d2f74,_0x1b8e83,_0xbd79f2){return _0x20dd72['diffValue'](_0x1b8e83,_0xbd79f2)?null:_0x535166['replaceOp'](_0x2d2f74,_0x1b8e83,_0xbd79f2);}function Y(_0xe4d6f,_0x266f72,_0x24ca3d,_0xf4ff8e,_0x225eca){const _0x131f7a=_0x5d89db;let _0x299448=ve(_0x24ca3d,_0xf4ff8e);return _0x299448?!!_0xe4d6f[_0x131f7a(0x1c7)](_0x3d459c['id'],{'unitId':_0x266f72,'actions':_0x299448,'textRanges':[{'startOffset':_0x225eca,'endOffset':_0x225eca,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}var X=class{constructor(_0xab58e4){const _0xd97675=_0x5d89db;this[_0xd97675(0x1c0)]=_0xab58e4;}[_0x5d89db(0x1da)](){const _0x20fb2f=_0x5d89db;return this[_0x20fb2f(0x1c0)]['blockId'];}[_0x5d89db(0x177)](){const _0x201cde=_0x5d89db;let _0xc4a2e2=this['_getBlockRange']();return _0xc4a2e2?{'blockId':_0xc4a2e2['blockId'],'endIndex':_0xc4a2e2['endIndex'],'startIndex':_0xc4a2e2[_0x201cde(0x18b)]}:null;}[_0x5d89db(0x176)](){const _0x44497f=_0x5d89db;var _0x256330;let _0x42615c=this['_getBlockRange'](),_0x23ef27=(_0x256330=this[_0x44497f(0x1c0)][_0x44497f(0x1dd)]()['body'])==null?void 0x0:_0x256330[_0x44497f(0x167)];return!_0x42615c||!_0x23ef27?'':ye(_0x23ef27['slice'](_0x42615c[_0x44497f(0x18b)]+0x1,_0x42615c[_0x44497f(0x1e0)]));}[_0x5d89db(0x1a6)](){const _0x2367bd=_0x5d89db;let _0x5ee491=this[_0x2367bd(0x177)]();return _0x5ee491?{..._0x5ee491,'config':this[_0x2367bd(0x170)](),'text':this['getText'](),'type':_0x2367bd(0x1c3)}:null;}['getConfig'](){const _0x3420fa=_0x5d89db;var _0x59c01a;return h((_0x59c01a=this[_0x3420fa(0x1c0)][_0x3420fa(0x19a)])==null?void 0x0:_0x59c01a[_0x3420fa(0x16b)](this[_0x3420fa(0x1c0)][_0x3420fa(0x1a2)],this[_0x3420fa(0x1c0)]['blockId']));}[_0x5d89db(0x1b4)](_0x533d12){const _0x387749=_0x5d89db;var _0x449260;return!!((_0x449260=this[_0x387749(0x1c0)]['commandService'])!=null&&_0x449260[_0x387749(0x1c7)](_e['id'],{'blockId':this[_0x387749(0x1c0)][_0x387749(0x1c6)],'config':_0x533d12[_0x387749(0x171)],'unitId':this[_0x387749(0x1c0)][_0x387749(0x1a2)]}));}[_0x5d89db(0x199)](_0x4c83df){const _0x56090c=_0x5d89db;var _0x50eacb;return!!((_0x50eacb=this[_0x56090c(0x1c0)]['commandService'])!=null&&_0x50eacb[_0x56090c(0x1c7)](W['id'],{'cursorOffset':_0x4c83df,'unitId':this[_0x56090c(0x1c0)]['unitId']}));}[_0x5d89db(0x1d7)](_0x93e404={}){const _0x903ed7=_0x5d89db;var _0xd9888c;return!!((_0xd9888c=this[_0x903ed7(0x1c0)][_0x903ed7(0x168)])!=null&&_0xd9888c[_0x903ed7(0x1c7)](G['id'],{..._0x93e404,'unitId':this[_0x903ed7(0x1c0)][_0x903ed7(0x1a2)]}));}[_0x5d89db(0x1de)](){const _0x1530bf=_0x5d89db;var _0x40092b;return(_0x40092b=this['_runtime'][_0x1530bf(0x1dd)]()[_0x1530bf(0x178)])==null||(_0x40092b=_0x40092b[_0x1530bf(0x1d1)])==null?void 0x0:_0x40092b[_0x1530bf(0x17a)](_0x56f897=>_0x56f897[_0x1530bf(0x1c6)]===this['_runtime'][_0x1530bf(0x1c6)]&&_0x56f897[_0x1530bf(0x1a5)]===_0x1530bf(0x1c3));}};function ye(_0x1af559){const _0x2af04f=_0x5d89db;return Array[_0x2af04f(0x19b)](_0x1af559)[_0x2af04f(0x197)](_0x413d55=>_0x413d55===_0x180f7a[_0x2af04f(0x17c)]?'\x0a':_0x413d55)[_0x2af04f(0x17f)](_0x900462=>_0x900462!==_0x180f7a[_0x2af04f(0x16a)]&&_0x900462!==_0x180f7a[_0x2af04f(0x1ba)]&&_0x900462!==_0x180f7a[_0x2af04f(0x1d5)])[_0x2af04f(0x1d0)]('')[_0x2af04f(0x1dc)](/\n$/,'');}Object[_0x5d89db(0x1a1)](_0x19b331[_0x5d89db(0x198)],{'getCodes'(){const _0x548804=_0x5d89db;var _0x23d4e8,_0x14eb0e;return(_0x23d4e8=(_0x14eb0e=this[_0x548804(0x173)]()[_0x548804(0x178)])==null||(_0x14eb0e=_0x14eb0e['blockRanges'])==null?void 0x0:_0x14eb0e[_0x548804(0x17f)](_0x317a3f=>_0x317a3f['blockType']===_0x548804(0x1c3))[_0x548804(0x197)](_0x1b9a7a=>Z(this,_0x1b9a7a[_0x548804(0x1c6)])))==null?[]:_0x23d4e8;},'getCode'(_0x8216e1){const _0x465615=_0x5d89db;var _0x18a6ee;return!((_0x18a6ee=this[_0x465615(0x173)]()[_0x465615(0x178)])==null||(_0x18a6ee=_0x18a6ee[_0x465615(0x1d1)])==null)&&_0x18a6ee[_0x465615(0x1ac)](_0x41e95c=>_0x41e95c[_0x465615(0x1c6)]===_0x8216e1&&_0x41e95c[_0x465615(0x1a5)]==='code')?Z(this,_0x8216e1):null;},'getCodeAt'(_0x415225){const _0x1efb84=_0x5d89db;var _0x37e4b6;let _0x189e5c=(_0x37e4b6=this['getSnapshot']()['body'])==null||(_0x37e4b6=_0x37e4b6[_0x1efb84(0x1d1)])==null||(_0x37e4b6=_0x37e4b6[_0x1efb84(0x17a)](_0x59572c=>_0x59572c['blockType']===_0x1efb84(0x1c3)&&_0x59572c[_0x1efb84(0x18b)]<=_0x415225&&_0x415225<=_0x59572c[_0x1efb84(0x1e0)]))==null?void 0x0:_0x37e4b6[_0x1efb84(0x1c6)];return _0x189e5c?Z(this,_0x189e5c):null;},'findCodeByText'(_0x3c9ba5){var _0x362aed;return(_0x362aed=this['findCodes'](_0x3c9ba5)[0x0])==null?null:_0x362aed;},'findCodes'(_0x1e62c5){const _0x475334=_0x5d89db;let _0x4700a2=typeof _0x1e62c5=='string'?{'text':_0x1e62c5}:_0x1e62c5;return this[_0x475334(0x1b2)]()['filter'](_0x1d6ec5=>!(_0x4700a2[_0x475334(0x1c6)]&&_0x1d6ec5[_0x475334(0x1da)]()!==_0x4700a2[_0x475334(0x1c6)]||_0x4700a2[_0x475334(0x1d8)]&&!_0x1d6ec5['getText']()[_0x475334(0x185)](_0x4700a2[_0x475334(0x1d8)])));},'insertCode'(_0x43ab34={}){const _0x2e95f8=_0x5d89db;var _0x18b226,_0x2b1335;let _0x83a209=(_0x18b226=_0x43ab34[_0x2e95f8(0x1c6)])==null?'docs-code-'+Date[_0x2e95f8(0x174)]():_0x18b226;return(_0x2b1335=Q(this))!=null&&_0x2b1335[_0x2e95f8(0x1c7)](ge['id'],{..._0x43ab34,'blockId':_0x83a209,'unitId':this['getId']()})?Z(this,_0x83a209):null;},'exitCode'(_0x4b4116){const _0x4d0cd3=_0x5d89db;var _0x303e91;return!!((_0x303e91=Q(this))!=null&&_0x303e91[_0x4d0cd3(0x1c7)](W['id'],{'cursorOffset':_0x4b4116,'unitId':this[_0x4d0cd3(0x1da)]()}));},'cancelEmptyCodeParagraph'(_0x2c1886={}){const _0x5c4f8d=_0x5d89db;var _0x37bbf1;return!!((_0x37bbf1=Q(this))!=null&&_0x37bbf1[_0x5c4f8d(0x1c7)](G['id'],{..._0x2c1886,'unitId':this[_0x5c4f8d(0x1da)]()}));}});function Z(_0x2e7898,_0x509d96){const _0x583551=_0x5d89db;let _0x929d36=$(_0x2e7898);return new X({'blockId':_0x509d96,'commandService':Q(_0x2e7898),'getDocumentData':()=>_0x2e7898[_0x583551(0x173)](),'model':_0x929d36==null?void 0x0:_0x929d36[_0x583551(0x187)](U),'unitId':_0x2e7898['getId']()});}function Q(_0x4a253f){const _0x4d9100=_0x5d89db;var _0x12b10d,_0x566e71;return(_0x12b10d=_0x4a253f[_0x4d9100(0x1a0)])==null?(_0x566e71=$(_0x4a253f))==null?void 0x0:_0x566e71[_0x4d9100(0x187)](_0x2afc20):_0x12b10d;}function $(_0x320f85){const _0x2292aa=_0x5d89db;return _0x320f85[_0x2292aa(0x1a3)];}export{X as FDocsCode};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0xe4af3c=_0x336c;(function(_0x192d95,_0x1eca3a){const _0xb6e24b=_0x336c,_0x3ce893=_0x192d95();while(!![]){try{const _0x20bc7d=parseInt(_0xb6e24b(0x1f9))/0x1*(-parseInt(_0xb6e24b(0x1be))/0x2)+parseInt(_0xb6e24b(0x222))/0x3+parseInt(_0xb6e24b(0x1bb))/0x4+-parseInt(_0xb6e24b(0x1eb))/0x5*(-parseInt(_0xb6e24b(0x21e))/0x6)+-parseInt(_0xb6e24b(0x20a))/0x7+-parseInt(_0xb6e24b(0x1fa))/0x8+parseInt(_0xb6e24b(0x1ba))/0x9*(parseInt(_0xb6e24b(0x1cb))/0xa);if(_0x20bc7d===_0x1eca3a)break;else _0x3ce893['push'](_0x3ce893['shift']());}catch(_0x6d28f4){_0x3ce893['push'](_0x3ce893['shift']());}}}(_0x5e54,0x88c26));import{BuildTextUtils as _0xb0f5fe,CommandType as _0x27a160,DataStreamTreeTokenType as _0x548857,DependentOn as _0x4f78e6,Disposable as _0xe7979f,ICommandService as _0x20ee42,IConfigService as _0x1c1669,IResourceManagerService as _0x1d6dc4,IUniverInstanceService as _0x5b6081,Inject as _0x434876,Injector as _0x5421fe,JSONX as _0x35fccf,Plugin as _0x50416c,Tools as _0x5cbae9,UniverInstanceType as _0x86ecb7,generateRandomId as _0x55f5a7,merge as _0xc19827}from'@univerjs/core';import{DocSelectionManagerService as _0x5c0ac2,RichTextEditingMutation as _0x7b932,UniverDocsPlugin as _0x224da5}from'@univerjs/docs';import{DocContentInsertService as _0x2d6794}from'@univerjs/docs-ui';import{Subject as _0x812377}from'rxjs';import{UniverLicensePlugin as _0x414584}from'@univerjs-pro/license';const S=_0xe4af3c(0x1aa),C='code',w={'language':_0xe4af3c(0x1ab),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function T(_0x3a4b90){return{...w,..._0x3a4b90};}function _0x5e54(){const _0x3cbbdf=['left','_configService','customBlocks','docs-code.command.update','join','diffValue','from','object','body','model','endIndex','sectionBreaks','docs-code.command.insert','monospace','168273nBvVNz','version','paragraphStyle','setConfig','blockId','customDecorations','getCurrentUnitOfType','documentData','config','startIndex','serialize','blockType','find','min','code','dataStream','startOffset','syncExecuteCommand','prototype','fromEntries','79302PGmLIU','decorate','getBody','textRuns','1855359mklzQM','next','getInstance','replaceOp','SECTION_BREAK','getUnitId','BLOCK_END','map','deserialize','indentEnd','DOC_CODE_PLUGIN','javascript','max','_config','length','PARAGRAPH','string','right','_resources','default','docs-code.config','direction','_initResource','get','filter','parse','5463MraJCm','981892JiLOPz','set','forEach','66ftCqMD','sort','indentStart','defineProperty','call','indexOf','@univerjs-pro/docs-code','paragraphStartIndex','symbol','complete','metadata','type','deepClone','6750XkSZZA','customRanges','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','endOffset','nextDocumentData','every','spaceBelow','delete','toPrimitive','iterator','COMMAND','removeUnit','consumeInsertRange','_commandService','_setResource','pluginName','textStyle','nextMetadata','unitId','asObservable','_change$','docs-code.command.cancel-empty-paragraph','disposeWithMe','UNIVER_DOC','tables','removeCode','function','getOwnPropertyDescriptor','packageName','onStarting','commandService','getUniverDocInstance','265WHYoRe','add','stringify','slice','paragraph','BLOCK_START','_injector','dispose','paragraphs','getSnapshot','codes','previousDocumentData','_docsCodeModel','cursorOffset','31358dpRyMY','2841064pMoOaa','blockRanges'];_0x5e54=function(){return _0x3cbbdf;};return _0x5e54();}function E(_0x526c04){const _0x39b261=_0xe4af3c;var _0x38f6a6;let _0x56cb4f=(_0x38f6a6=_0x526c04==null?void 0x0:_0x526c04[_0x39b261(0x1f5)])==null?{}:_0x38f6a6;return{'codes':Object[_0x39b261(0x21d)](Object['entries'](_0x56cb4f)[_0x39b261(0x1a7)](([_0x32e6d4,_0x419381])=>[_0x32e6d4,T(_0x419381)]))};}function D(_0x35b7be,_0xcaf784,_0xe070d){let _0x2666c6=E(_0x35b7be);return _0x2666c6['codes'][_0xcaf784]=T({..._0x2666c6['codes'][_0xcaf784],..._0xe070d}),_0x2666c6;}function te(_0x3f6f46,_0x161407){const _0x2b5c7b=_0xe4af3c;let _0x47c052=E(_0x3f6f46);return delete _0x47c052[_0x2b5c7b(0x1f5)][_0x161407],_0x47c052;}const ne=_0xe4af3c(0x209);function re(_0x2b115b){const _0x2fecb7=_0xe4af3c;var _0xe2fc29,_0x30e6e8,_0x171637;let _0x1b2beb=A(_0x2b115b[_0x2fecb7(0x211)]),_0x535f01=j(_0x1b2beb),_0x3fc930=ae(_0x2b115b['startOffset'],_0x2b115b[_0x2fecb7(0x1ce)]),_0x2e13c4=_0x3fc930?(_0xe2fc29=_0x535f01[_0x2fecb7(0x1fb)])==null?void 0x0:_0xe2fc29[_0x2fecb7(0x216)](_0x50d83f=>_0x50d83f[_0x2fecb7(0x213)]===_0x3fc930[_0x2fecb7(0x21a)]&&_0x50d83f[_0x2fecb7(0x206)]+0x1===_0x3fc930[_0x2fecb7(0x1ce)]):void 0x0,{startOffset:_0x33a435,endOffset:_0x48a5c7}=_0x2e13c4?_0x3fc930:ge(_0x535f01,_0x2b115b['startOffset'],_0x2b115b['endOffset']),_0x57eb8d=ve(_0x535f01,_0x33a435,_0x48a5c7),_0x5016ae=(_0x30e6e8=_0x2e13c4==null?void 0x0:_0x2e13c4[_0x2fecb7(0x20e)])==null?_0x2b115b[_0x2fecb7(0x20e)]:_0x30e6e8,_0x2201d1=D(_0x2b115b[_0x2fecb7(0x1c8)],_0x5016ae,{...w,..._0x2b115b[_0x2fecb7(0x212)]});if(_0x2e13c4)return _0x2e13c4[_0x2fecb7(0x215)]=C,ie(_0x535f01,_0x33a435,_0x48a5c7),fe(_0x535f01,_0x33a435,_0x48a5c7,_0x57eb8d),{'nextDocumentData':_0x1b2beb,'nextMetadata':_0x2201d1,'cursorOffset':_0x33a435+0x1};if(_0x33a435===_0x48a5c7){let _0x47282a=''+_0x548857[_0x2fecb7(0x1f0)]+_0x548857[_0x2fecb7(0x1af)]+_0x548857[_0x2fecb7(0x1a6)];return F(_0x535f01,_0x33a435,_0x47282a,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':k(!0x0,!0x0,_0x57eb8d)}],'blockRanges':[{'blockId':_0x5016ae,'blockType':C,'startIndex':0x0,'endIndex':_0x47282a[_0x2fecb7(0x1ae)]-0x1}]}),{'nextDocumentData':_0x1b2beb,'nextMetadata':_0x2201d1,'cursorOffset':_0x33a435+0x1};}return F(_0x535f01,_0x48a5c7,_0x548857['BLOCK_END']),F(_0x535f01,_0x33a435,_0x548857['BLOCK_START']),fe(_0x535f01,_0x33a435,_0x48a5c7+0x1,_0x57eb8d),_0x535f01[_0x2fecb7(0x1fb)]=[...(_0x171637=_0x535f01[_0x2fecb7(0x1fb)])==null?[]:_0x171637,{'blockId':_0x5016ae,'blockType':C,'startIndex':_0x33a435,'endIndex':_0x48a5c7+0x1}][_0x2fecb7(0x1bf)]((_0x2c695f,_0x518153)=>_0x2c695f[_0x2fecb7(0x213)]-_0x518153['startIndex']),{'nextDocumentData':_0x1b2beb,'nextMetadata':_0x2201d1,'cursorOffset':_0x33a435+0x1};}function ie(_0x111ca9,_0x5456fa,_0x43680a){const _0x3269b0=_0xe4af3c;var _0x561340;((_0x561340=_0x111ca9[_0x3269b0(0x1f3)])==null?[]:_0x561340)[_0x3269b0(0x1b8)](_0x2452eb=>_0x2452eb[_0x3269b0(0x213)]>_0x5456fa&&_0x2452eb[_0x3269b0(0x213)]<_0x43680a)['forEach'](_0x4588c5=>{const _0x17dfdb=_0x3269b0;var _0x5021d7;let _0x3672c4={...(_0x5021d7=_0x4588c5[_0x17dfdb(0x20c)])==null?{}:_0x5021d7};delete _0x3672c4['spaceAbove'],delete _0x3672c4['spaceBelow'],_0x4588c5[_0x17dfdb(0x20c)]=_0x3672c4;});}function ae(_0x2252fe,_0x11e531){const _0xad884e=_0xe4af3c;return _0x2252fe==null||_0x11e531==null||_0x2252fe===_0x11e531?null:{'startOffset':Math['min'](_0x2252fe,_0x11e531),'endOffset':Math[_0xad884e(0x1ac)](_0x2252fe,_0x11e531)};}function O(_0x2bbee1){const _0x5e8902=_0xe4af3c;return{'nextDocumentData':A(_0x2bbee1[_0x5e8902(0x211)]),'nextMetadata':D(_0x2bbee1['metadata'],_0x2bbee1[_0x5e8902(0x20e)],_0x2bbee1[_0x5e8902(0x212)]),'cursorOffset':0x0};}function oe(_0x1048c7){const _0x432b9e=_0xe4af3c;var _0xeadd93,_0x30d781;let _0x4ad1b4=A(_0x1048c7[_0x432b9e(0x211)]),_0x266b9a=j(_0x4ad1b4),_0x8e88db=de(_0x266b9a,_0x1048c7[_0x432b9e(0x1f8)]);if(!_0x8e88db)return null;let _0x20ae91=me(_0x266b9a,_0x8e88db),_0x51e0f6=_0x20ae91[_0x20ae91[_0x432b9e(0x1ae)]-0x1];if(!_0x51e0f6||!he(_0x266b9a,_0x8e88db,_0x51e0f6)||_0x1048c7['cursorOffset']<_0x51e0f6[_0x432b9e(0x213)])return null;let _0x45146e=N(_0x266b9a,_0x8e88db,_0x51e0f6);if(_0x45146e>=_0x8e88db['endIndex'])return null;_0x266b9a[_0x432b9e(0x219)]=[_0x266b9a['dataStream'][_0x432b9e(0x1ee)](0x0,_0x45146e),_0x548857[_0x432b9e(0x1a6)],_0x266b9a[_0x432b9e(0x219)][_0x432b9e(0x1ee)](_0x45146e,_0x8e88db[_0x432b9e(0x206)]),_0x266b9a[_0x432b9e(0x219)]['slice'](_0x8e88db[_0x432b9e(0x206)]+0x1)][_0x432b9e(0x200)](''),B(_0x266b9a[_0x432b9e(0x1f3)],_0x45146e,_0x8e88db[_0x432b9e(0x206)],0x1),B(_0x266b9a[_0x432b9e(0x207)],_0x45146e,_0x8e88db['endIndex'],0x1),B(_0x266b9a[_0x432b9e(0x1fe)],_0x45146e,_0x8e88db['endIndex'],0x1),Te(_0x266b9a[_0x432b9e(0x221)],_0x45146e,_0x8e88db[_0x432b9e(0x206)],0x1),V(_0x266b9a[_0x432b9e(0x1e3)],_0x45146e,_0x8e88db[_0x432b9e(0x206)],0x1),V(_0x266b9a[_0x432b9e(0x1cc)],_0x45146e,_0x8e88db[_0x432b9e(0x206)],0x1),V(_0x266b9a['customDecorations'],_0x45146e,_0x8e88db[_0x432b9e(0x206)],0x1),(_0xeadd93=_0x266b9a[_0x432b9e(0x1fb)])==null||_0xeadd93[_0x432b9e(0x1bd)](_0x349cd5=>{const _0x95587=_0x432b9e;_0x349cd5===_0x8e88db||_0x349cd5[_0x95587(0x20e)]===_0x8e88db[_0x95587(0x20e)]?_0x349cd5[_0x95587(0x206)]=_0x45146e:_0x349cd5['startIndex']>=_0x45146e&&_0x349cd5['startIndex']<_0x8e88db[_0x95587(0x206)]&&(_0x349cd5[_0x95587(0x213)]+=0x1,_0x349cd5['endIndex']+=0x1);});let _0x3309c9=me(_0x266b9a,{..._0x8e88db,'endIndex':_0x45146e});_0x3309c9[_0x432b9e(0x1bd)]((_0x34287f,_0x2ad914)=>{const _0x546fff=_0x432b9e;var _0x318457;_0x34287f['paragraphStyle']={...(_0x318457=_0x34287f[_0x546fff(0x20c)])==null?{}:_0x318457,...k(_0x2ad914===0x0,_0x2ad914===_0x3309c9['length']-0x1)};});let _0x25dada=(_0x30d781=_0x266b9a[_0x432b9e(0x1f3)])==null?void 0x0:_0x30d781[_0x432b9e(0x216)](_0x1c8d52=>_0x1c8d52[_0x432b9e(0x213)]===_0x45146e+0x1);return _0x25dada&&(_0x25dada[_0x432b9e(0x20c)]=pe(_0x25dada[_0x432b9e(0x20c)])),{'nextDocumentData':_0x4ad1b4,'cursorOffset':_0x45146e+0x1};}function se(_0x206a45){const _0x380dbd=_0xe4af3c;let _0x3770fb=A(_0x206a45[_0x380dbd(0x211)]),_0x11fc4a=j(_0x3770fb),_0x443317=de(_0x11fc4a,_0x206a45[_0x380dbd(0x1f8)]);return _0x443317&&ce(_0x3770fb,_0x11fc4a,_0x443317,_0x206a45[_0x380dbd(0x1f8)],_0x206a45['paragraphStartIndex'])||null;}function ce(_0x378f66,_0x4dd8b2,_0x1cb9e9,_0xb4e0c4,_0x2ecd60){const _0x491190=_0xe4af3c;let _0x3b57ba=be(_0x4dd8b2,_0x1cb9e9,_0xb4e0c4,_0x2ecd60);if(!_0x3b57ba)return null;let _0x4aa6e6=_0x3b57ba['endTokenOffset']-0x1;return xe(_0x4dd8b2,_0x3b57ba[_0x491190(0x1ef)][_0x491190(0x213)],_0x3b57ba[_0x491190(0x1ef)][_0x491190(0x213)]+0x1),{'nextDocumentData':_0x378f66,'cursorOffset':_0x4aa6e6};}function le(_0x311817,_0x214c48){const _0x40357a=_0xe4af3c;var _0x67a22f;return _0x311817==null||(_0x67a22f=_0x311817[_0x40357a(0x1fb)])==null?void 0x0:_0x67a22f[_0x40357a(0x216)](_0x3b0a73=>_0x3b0a73['blockType']==='code'&&_0x3b0a73[_0x40357a(0x213)]<=_0x214c48&&_0x214c48<=_0x3b0a73[_0x40357a(0x206)]);}function ue(_0x4baeac){const _0x29706d=_0xe4af3c;var _0x547fba;let _0x261c5e=_0x4baeac[_0x29706d(0x211)][_0x29706d(0x204)];if(!_0x261c5e)return!0x1;let _0xbf41b=_0x4baeac[_0x29706d(0x1b5)]===_0x29706d(0x1fc)?_0x4baeac['cursorOffset']-0x1:_0x4baeac[_0x29706d(0x1f8)],_0x4f9aa8=_0x4baeac['direction']===_0x29706d(0x1b1)?_0x4baeac[_0x29706d(0x1f8)]+0x1:_0xbf41b;return((_0x547fba=_0x261c5e[_0x29706d(0x1fb)])==null?[]:_0x547fba)['some'](_0x295cac=>_0x295cac[_0x29706d(0x215)]===_0x29706d(0x218)?_0xbf41b===_0x295cac[_0x29706d(0x213)]||_0xbf41b===_0x295cac[_0x29706d(0x206)]||_0x4f9aa8===_0x295cac[_0x29706d(0x213)]||_0x4f9aa8===_0x295cac[_0x29706d(0x206)]:!0x1);}function de(_0x2e9e3e,_0x32c178){const _0x13535d=_0xe4af3c;var _0x4a1724;return(_0x4a1724=_0x2e9e3e[_0x13535d(0x1fb)])==null?void 0x0:_0x4a1724[_0x13535d(0x216)](_0x120590=>{const _0x455143=_0x13535d;let _0x19a2a3=P(_0x2e9e3e,_0x120590);return _0x120590[_0x455143(0x215)]==='code'&&_0x120590[_0x455143(0x213)]<=_0x32c178&&_0x32c178<=_0x19a2a3+0x2;});}function k(_0x12c511,_0x602181,_0x22f3c1=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x12c511&&_0x22f3c1?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ne,'fs':0xc}};}function fe(_0x46a735,_0xc45af,_0x4a79c2,_0x35517e=!0x1){const _0x23a969=_0xe4af3c;var _0x5d3fc4;let _0x201e47=((_0x5d3fc4=_0x46a735[_0x23a969(0x1f3)])==null?[]:_0x5d3fc4)[_0x23a969(0x1b8)](_0x5bb5c4=>_0x5bb5c4['startIndex']>_0xc45af&&_0x5bb5c4[_0x23a969(0x213)]<_0x4a79c2);_0x201e47['forEach']((_0x1bd10d,_0x29d823)=>{const _0xcef59a=_0x23a969;var _0x2f685e;_0x1bd10d[_0xcef59a(0x20c)]={...(_0x2f685e=_0x1bd10d[_0xcef59a(0x20c)])==null?{}:_0x2f685e,...k(_0x29d823===0x0,_0x29d823===_0x201e47[_0xcef59a(0x1ae)]-0x1,_0x35517e)};});}function pe(_0x11698e){const _0x41f34f=_0xe4af3c;var _0x42bb8f,_0x11fc77;let _0x3a065d={..._0x11698e==null?{}:_0x11698e};return delete _0x3a065d[_0x41f34f(0x1a9)],delete _0x3a065d[_0x41f34f(0x1c0)],delete _0x3a065d['spaceAbove'],delete _0x3a065d[_0x41f34f(0x1d1)],((_0x42bb8f=_0x3a065d['textStyle'])==null?void 0x0:_0x42bb8f['ff'])===ne&&((_0x11fc77=_0x3a065d[_0x41f34f(0x1db)])==null?void 0x0:_0x11fc77['fs'])===0xc&&delete _0x3a065d['textStyle'],_0x3a065d;}function me(_0x435759,_0x5a7c2b){const _0x4560c1=_0xe4af3c;var _0x54fbc0;let _0x4e9f13=P(_0x435759,_0x5a7c2b);return((_0x54fbc0=_0x435759[_0x4560c1(0x1f3)])==null?[]:_0x54fbc0)['filter'](_0x197218=>_0x197218['startIndex']>_0x5a7c2b[_0x4560c1(0x213)]&&_0x197218[_0x4560c1(0x213)]<_0x4e9f13);}function he(_0x1aae47,_0x10fc4c,_0x505b41){const _0x6beddd=_0xe4af3c;let _0x14fd8e=N(_0x1aae47,_0x10fc4c,_0x505b41),_0x43069c=_0x1aae47[_0x6beddd(0x219)][_0x6beddd(0x1ee)](_0x14fd8e,_0x505b41['startIndex']);return Array[_0x6beddd(0x202)](_0x43069c)['every'](_0x22cf45=>_0x22cf45===_0x548857[_0x6beddd(0x1f0)]||_0x22cf45===_0x548857[_0x6beddd(0x1a6)]);}function A(_0x28a4e8){const _0x16efc2=_0xe4af3c;return _0x5cbae9[_0x16efc2(0x1ca)](_0x28a4e8);}function j(_0x1dd3c6){if(!_0x1dd3c6['body'])throw Error('Document\x20body\x20is\x20required');return _0x1dd3c6['body'];}function ge(_0x204a64,_0x445258,_0x375587){const _0x8a38b1=_0xe4af3c;if(_0x445258==null||_0x375587==null){let _0x148dcb=_e(_0x204a64);return{'startOffset':_0x148dcb,'endOffset':_0x148dcb};}let _0xdcf7ea=Math[_0x8a38b1(0x217)](_0x445258,_0x375587),_0x23d9cf=Math[_0x8a38b1(0x1ac)](_0x445258,_0x375587);return _0xdcf7ea===_0x23d9cf?{'startOffset':_0xdcf7ea,'endOffset':_0xdcf7ea}:ye(_0x204a64,_0xdcf7ea,_0x23d9cf);}function _e(_0x3bc321){const _0x36c945=_0xe4af3c;return _0x3bc321[_0x36c945(0x219)]['endsWith'](_0x548857[_0x36c945(0x1a4)])?Math[_0x36c945(0x1ac)](0x0,_0x3bc321[_0x36c945(0x219)][_0x36c945(0x1ae)]-0x1):_0x3bc321[_0x36c945(0x219)][_0x36c945(0x1ae)];}function ve(_0x25d172,_0x2e2ae5,_0x52a2ef){const _0x1762dc=_0xe4af3c;var _0x114067;let _0x18e0d1=Math['min'](_0x2e2ae5,_0x52a2ef),_0x17db61=Math[_0x1762dc(0x1ac)](_0x2e2ae5,_0x52a2ef);return!!((_0x114067=_0x25d172[_0x1762dc(0x1e3)])!=null&&_0x114067['some'](_0x5bf993=>_0x18e0d1>_0x5bf993[_0x1762dc(0x213)]&&_0x18e0d1<_0x5bf993['endIndex']||_0x17db61>_0x5bf993[_0x1762dc(0x213)]&&_0x17db61<_0x5bf993[_0x1762dc(0x206)]||_0x18e0d1<=_0x5bf993[_0x1762dc(0x213)]&&_0x17db61>=_0x5bf993[_0x1762dc(0x206)]));}function ye(_0x42627e,_0x14addb,_0x581608){const _0x151260=_0xe4af3c;var _0x52d8c9,_0x529b61;let _0x422aba=[...(_0x52d8c9=_0x42627e[_0x151260(0x1f3)])==null?[]:_0x52d8c9][_0x151260(0x1bf)]((_0xe935b3,_0x3e5654)=>_0xe935b3['startIndex']-_0x3e5654[_0x151260(0x213)]),_0x1c5db3=_0x422aba[_0x151260(0x216)]((_0x3f0ac6,_0x4420c1)=>(_0x4420c1===0x0?0x0:_0x422aba[_0x4420c1-0x1][_0x151260(0x213)]+0x1)<=_0x14addb&&_0x14addb<=_0x3f0ac6['startIndex']),_0x31f0be=(_0x529b61=_0x422aba[_0x151260(0x216)](_0x99cc39=>_0x99cc39[_0x151260(0x213)]>=_0x581608-0x1))==null?_0x422aba[_0x422aba[_0x151260(0x1ae)]-0x1]:_0x529b61;return{'startOffset':_0x1c5db3?M(_0x422aba,_0x1c5db3):_0x14addb,'endOffset':_0x31f0be?_0x31f0be['startIndex']+0x1:_0x581608};}function M(_0x76b9e5,_0x4dfb32){const _0x1763b5=_0xe4af3c;let _0xf24513=_0x76b9e5[_0x1763b5(0x1c3)](_0x4dfb32);return _0xf24513>0x0?_0x76b9e5[_0xf24513-0x1][_0x1763b5(0x213)]+0x1:0x0;}function N(_0x2ae276,_0x1609a6,_0x409691){const _0x5e1c6a=_0xe4af3c;var _0xa455f5;return Math[_0x5e1c6a(0x1ac)](M((_0xa455f5=_0x2ae276[_0x5e1c6a(0x1f3)])==null?[]:_0xa455f5,_0x409691),_0x1609a6[_0x5e1c6a(0x213)]+0x1);}function P(_0xdb24b,_0x45db57){const _0x2eb9f9=_0xe4af3c;return _0xdb24b[_0x2eb9f9(0x219)][_0x45db57[_0x2eb9f9(0x206)]]===_0x548857[_0x2eb9f9(0x1a6)]?_0x45db57['endIndex']:_0xdb24b[_0x2eb9f9(0x219)][_0x45db57[_0x2eb9f9(0x206)]+0x1]===_0x548857[_0x2eb9f9(0x1a6)]?_0x45db57['endIndex']+0x1:_0x45db57[_0x2eb9f9(0x206)];}function be(_0x2f4092,_0x453589,_0x5af1dd,_0x559d92){const _0x5ca865=_0xe4af3c;var _0x17b8bc,_0x31b7bf;let _0x1d8603=P(_0x2f4092,_0x453589),_0xd4806f=((_0x17b8bc=_0x2f4092['paragraphs'])==null?[]:_0x17b8bc)['find'](_0x3b9935=>_0x3b9935[_0x5ca865(0x213)]===_0x1d8603+0x1);if(!_0xd4806f||_0x559d92!=null&&_0xd4806f['startIndex']!==_0x559d92||_0x5af1dd<_0x1d8603||_0x5af1dd>_0xd4806f[_0x5ca865(0x213)]+0x1||_0x2f4092[_0x5ca865(0x219)][_0xd4806f[_0x5ca865(0x213)]]!==_0x548857[_0x5ca865(0x1af)])return null;let _0x373422=M((_0x31b7bf=_0x2f4092[_0x5ca865(0x1f3)])==null?[]:_0x31b7bf,_0xd4806f),_0x106166=_0x2f4092[_0x5ca865(0x219)][_0x5ca865(0x1ee)](_0x373422,_0xd4806f[_0x5ca865(0x213)]);return Array[_0x5ca865(0x202)](_0x106166)[_0x5ca865(0x1d0)](_0x3aabc2=>_0x3aabc2===_0x548857[_0x5ca865(0x1a6)])?{'paragraph':_0xd4806f,'endTokenOffset':_0x1d8603}:null;}function F(_0x4f7d4b,_0x55742c,_0x4ac097,_0x1f2e95={}){const _0x46bf75=_0xe4af3c;var _0x1dd9af,_0x4b6ffb;if(_0x4ac097){if(_0x4f7d4b[_0x46bf75(0x219)]=''+_0x4f7d4b[_0x46bf75(0x219)]['slice'](0x0,_0x55742c)+_0x4ac097+_0x4f7d4b[_0x46bf75(0x219)]['slice'](_0x55742c),Se(_0x4f7d4b,_0x55742c,_0x4ac097[_0x46bf75(0x1ae)]),(_0x1dd9af=_0x1f2e95['paragraphs'])!=null&&_0x1dd9af[_0x46bf75(0x1ae)]){var _0x209ff9;_0x4f7d4b[_0x46bf75(0x1f3)]=[...(_0x209ff9=_0x4f7d4b[_0x46bf75(0x1f3)])==null?[]:_0x209ff9,..._0x1f2e95[_0x46bf75(0x1f3)][_0x46bf75(0x1a7)](_0x39a937=>({..._0x39a937,'startIndex':_0x39a937[_0x46bf75(0x213)]+_0x55742c}))][_0x46bf75(0x1bf)]((_0x631bcc,_0x4d99d9)=>_0x631bcc[_0x46bf75(0x213)]-_0x4d99d9[_0x46bf75(0x213)]);}if((_0x4b6ffb=_0x1f2e95['blockRanges'])!=null&&_0x4b6ffb[_0x46bf75(0x1ae)]){var _0x432364;_0x4f7d4b['blockRanges']=[...(_0x432364=_0x4f7d4b['blockRanges'])==null?[]:_0x432364,..._0x1f2e95[_0x46bf75(0x1fb)][_0x46bf75(0x1a7)](_0x410131=>({..._0x410131,'startIndex':_0x410131[_0x46bf75(0x213)]+_0x55742c,'endIndex':_0x410131['endIndex']+_0x55742c}))][_0x46bf75(0x1bf)]((_0x3e569a,_0x304205)=>_0x3e569a[_0x46bf75(0x213)]-_0x304205[_0x46bf75(0x213)]);}}}function xe(_0x581b91,_0xa7e79c,_0x397c91){const _0xebe5a6=_0xe4af3c;let _0x4f4254=_0x397c91-_0xa7e79c;_0x581b91[_0xebe5a6(0x219)]=''+_0x581b91['dataStream'][_0xebe5a6(0x1ee)](0x0,_0xa7e79c)+_0x581b91[_0xebe5a6(0x219)][_0xebe5a6(0x1ee)](_0x397c91),Ce(_0x581b91,_0xa7e79c,_0x4f4254);}function Se(_0x9379e6,_0x36fff4,_0x100369){const _0x214bae=_0xe4af3c;_0x9379e6['paragraphs']=I(_0x9379e6[_0x214bae(0x1f3)],_0x36fff4,_0x100369),_0x9379e6[_0x214bae(0x207)]=I(_0x9379e6['sectionBreaks'],_0x36fff4,_0x100369),_0x9379e6['customBlocks']=I(_0x9379e6[_0x214bae(0x1fe)],_0x36fff4,_0x100369),_0x9379e6[_0x214bae(0x221)]=we(_0x9379e6[_0x214bae(0x221)],_0x36fff4,_0x100369),_0x9379e6[_0x214bae(0x1e3)]=R(_0x9379e6['tables'],_0x36fff4,_0x100369),_0x9379e6[_0x214bae(0x1cc)]=R(_0x9379e6[_0x214bae(0x1cc)],_0x36fff4,_0x100369),_0x9379e6[_0x214bae(0x20f)]=R(_0x9379e6[_0x214bae(0x20f)],_0x36fff4,_0x100369),_0x9379e6[_0x214bae(0x1fb)]=R(_0x9379e6[_0x214bae(0x1fb)],_0x36fff4,_0x100369);}function Ce(_0x2ef594,_0x5a0654,_0x20dd99){const _0x3987fc=_0xe4af3c;var _0x32f017,_0xafce2f;_0x2ef594[_0x3987fc(0x1f3)]=L(_0x2ef594[_0x3987fc(0x1f3)],_0x5a0654,_0x20dd99),_0x2ef594[_0x3987fc(0x207)]=L(_0x2ef594['sectionBreaks'],_0x5a0654,_0x20dd99),_0x2ef594[_0x3987fc(0x1fe)]=L(_0x2ef594['customBlocks'],_0x5a0654,_0x20dd99),_0x2ef594[_0x3987fc(0x221)]=(_0x32f017=z((_0xafce2f=_0x2ef594[_0x3987fc(0x221)])==null?void 0x0:_0xafce2f[_0x3987fc(0x1a7)](_0x24bf68=>({..._0x24bf68,'startIndex':_0x24bf68['st'],'endIndex':_0x24bf68['ed']})),_0x5a0654,_0x20dd99))==null?void 0x0:_0x32f017[_0x3987fc(0x1a7)](_0x137d43=>{let {startIndex:_0x178036,endIndex:_0x3af39b,..._0x530dd8}=_0x137d43;return{..._0x530dd8,'st':_0x178036,'ed':_0x3af39b};}),_0x2ef594[_0x3987fc(0x1e3)]=z(_0x2ef594[_0x3987fc(0x1e3)],_0x5a0654,_0x20dd99),_0x2ef594[_0x3987fc(0x1cc)]=z(_0x2ef594[_0x3987fc(0x1cc)],_0x5a0654,_0x20dd99),_0x2ef594[_0x3987fc(0x20f)]=z(_0x2ef594['customDecorations'],_0x5a0654,_0x20dd99),_0x2ef594[_0x3987fc(0x1fb)]=z(_0x2ef594[_0x3987fc(0x1fb)],_0x5a0654,_0x20dd99);}function I(_0x1b20e4,_0xd8087e,_0x1add9e){const _0x5e0724=_0xe4af3c;return _0x1b20e4==null?void 0x0:_0x1b20e4['map'](_0x4d46e0=>_0x4d46e0[_0x5e0724(0x213)]>=_0xd8087e?{..._0x4d46e0,'startIndex':_0x4d46e0[_0x5e0724(0x213)]+_0x1add9e}:_0x4d46e0);}function L(_0x33f442,_0xb7f139,_0x7000ad){const _0x54168e=_0xe4af3c;let _0x5b566e=_0xb7f139+_0x7000ad;return _0x33f442==null?void 0x0:_0x33f442[_0x54168e(0x1a7)](_0x2598b6=>_0x2598b6[_0x54168e(0x213)]>=_0xb7f139&&_0x2598b6[_0x54168e(0x213)]<_0x5b566e?null:_0x2598b6[_0x54168e(0x213)]>=_0x5b566e?{..._0x2598b6,'startIndex':_0x2598b6[_0x54168e(0x213)]-_0x7000ad}:_0x2598b6)[_0x54168e(0x1b8)](_0x2d7468=>_0x2d7468!=null);}function we(_0x49a1c3,_0x2410ed,_0x1d90d0){return _0x49a1c3==null?void 0x0:_0x49a1c3['map'](_0x542b4b=>_0x542b4b['st']>=_0x2410ed?{..._0x542b4b,'st':_0x542b4b['st']+_0x1d90d0,'ed':_0x542b4b['ed']+_0x1d90d0}:_0x542b4b['ed']>_0x2410ed?{..._0x542b4b,'ed':_0x542b4b['ed']+_0x1d90d0}:_0x542b4b);}function R(_0x22c306,_0x25d62f,_0x38039f){const _0xdffa50=_0xe4af3c;return _0x22c306==null?void 0x0:_0x22c306[_0xdffa50(0x1a7)](_0x5b299a=>_0x5b299a['startIndex']>=_0x25d62f?{..._0x5b299a,'startIndex':_0x5b299a['startIndex']+_0x38039f,'endIndex':_0x5b299a[_0xdffa50(0x206)]+_0x38039f}:_0x5b299a[_0xdffa50(0x206)]>=_0x25d62f?{..._0x5b299a,'endIndex':_0x5b299a[_0xdffa50(0x206)]+_0x38039f}:_0x5b299a);}function z(_0x4cae6e,_0x52f47e,_0x265e88){const _0x49bb1f=_0xe4af3c;let _0x17f431=_0x52f47e+_0x265e88;return _0x4cae6e==null?void 0x0:_0x4cae6e[_0x49bb1f(0x1a7)](_0x47e981=>_0x47e981[_0x49bb1f(0x213)]>=_0x52f47e&&_0x47e981[_0x49bb1f(0x206)]<_0x17f431?null:_0x47e981[_0x49bb1f(0x213)]>=_0x17f431?{..._0x47e981,'startIndex':_0x47e981['startIndex']-_0x265e88,'endIndex':_0x47e981[_0x49bb1f(0x206)]-_0x265e88}:_0x47e981[_0x49bb1f(0x206)]>=_0x52f47e?{..._0x47e981,'startIndex':_0x47e981['startIndex']<_0x52f47e?_0x47e981[_0x49bb1f(0x213)]:_0x52f47e,'endIndex':Math[_0x49bb1f(0x1ac)](_0x52f47e,_0x47e981[_0x49bb1f(0x206)]-_0x265e88)}:_0x47e981)[_0x49bb1f(0x1b8)](_0x5d5cb0=>_0x5d5cb0!=null);}function B(_0x34fb9e,_0x181946,_0x3bceb9,_0x27a747){const _0x3ab53d=_0xe4af3c;_0x34fb9e==null||_0x34fb9e[_0x3ab53d(0x1bd)](_0x521621=>{const _0x3ac30e=_0x3ab53d;_0x521621[_0x3ac30e(0x213)]>=_0x181946&&_0x521621[_0x3ac30e(0x213)]<_0x3bceb9&&(_0x521621[_0x3ac30e(0x213)]+=_0x27a747);});}function _0x336c(_0x388757,_0x4dabd3){_0x388757=_0x388757-0x1a1;const _0x5e540d=_0x5e54();let _0x336c9d=_0x5e540d[_0x388757];return _0x336c9d;}function Te(_0x375994,_0x257e09,_0x162547,_0x1900f0){_0x375994==null||_0x375994['forEach'](_0x4a68f6=>{_0x4a68f6['st']>=_0x257e09&&_0x4a68f6['st']<_0x162547?(_0x4a68f6['st']+=_0x1900f0,_0x4a68f6['ed']+=_0x1900f0):_0x4a68f6['ed']>_0x257e09&&_0x4a68f6['ed']<_0x162547&&(_0x4a68f6['ed']+=_0x1900f0);});}function V(_0x52b45c,_0x326dbe,_0x1d5fd2,_0xddd0c5){const _0x5a8dfb=_0xe4af3c;_0x52b45c==null||_0x52b45c[_0x5a8dfb(0x1bd)](_0x27dfc9=>{const _0x26fc25=_0x5a8dfb;_0x27dfc9[_0x26fc25(0x213)]>=_0x326dbe&&_0x27dfc9['startIndex']<_0x1d5fd2?(_0x27dfc9[_0x26fc25(0x213)]+=_0xddd0c5,_0x27dfc9[_0x26fc25(0x206)]+=_0xddd0c5):_0x27dfc9[_0x26fc25(0x206)]>_0x326dbe&&_0x27dfc9['endIndex']<_0x1d5fd2&&(_0x27dfc9[_0x26fc25(0x206)]+=_0xddd0c5);});}function H(_0x28240a){'@babel/helpers - typeof';const _0x15e99c=_0xe4af3c;return H=typeof Symbol==_0x15e99c(0x1e5)&&typeof Symbol[_0x15e99c(0x1d4)]==_0x15e99c(0x1c6)?function(_0x22f22a){return typeof _0x22f22a;}:function(_0x584ebf){const _0x402da7=_0x15e99c;return _0x584ebf&&typeof Symbol==_0x402da7(0x1e5)&&_0x584ebf['constructor']===Symbol&&_0x584ebf!==Symbol[_0x402da7(0x21c)]?_0x402da7(0x1c6):typeof _0x584ebf;},H(_0x28240a);}function Ee(_0x22f4f4,_0x38ad51){const _0x1576dd=_0xe4af3c;if(H(_0x22f4f4)!=_0x1576dd(0x203)||!_0x22f4f4)return _0x22f4f4;var _0x2305cd=_0x22f4f4[Symbol[_0x1576dd(0x1d3)]];if(_0x2305cd!==void 0x0){var _0x6ad4cb=_0x2305cd[_0x1576dd(0x1c2)](_0x22f4f4,_0x38ad51||_0x1576dd(0x1b3));if(H(_0x6ad4cb)!='object')return _0x6ad4cb;throw TypeError(_0x1576dd(0x1cd));}return(_0x38ad51===_0x1576dd(0x1b0)?String:Number)(_0x22f4f4);}function De(_0x3dc9ab){const _0x54de0a=_0xe4af3c;var _0x2b0e38=Ee(_0x3dc9ab,_0x54de0a(0x1b0));return H(_0x2b0e38)==_0x54de0a(0x1c6)?_0x2b0e38:_0x2b0e38+'';}function U(_0x374331,_0x3e2cc8,_0x25fec3){const _0x2cef18=_0xe4af3c;return(_0x3e2cc8=De(_0x3e2cc8))in _0x374331?Object[_0x2cef18(0x1c1)](_0x374331,_0x3e2cc8,{'value':_0x25fec3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x374331[_0x3e2cc8]=_0x25fec3,_0x374331;}var W=class extends _0xe7979f{constructor(..._0x22a84d){const _0x30852d=_0xe4af3c;super(..._0x22a84d),U(this,_0x30852d(0x1b2),new Map()),U(this,_0x30852d(0x1df),new _0x812377()),U(this,'change$',this[_0x30852d(0x1df)][_0x30852d(0x1de)]());}['getCodeConfig'](_0x3a1412,_0xac0c80){const _0x3554fb=_0xe4af3c;return E(this['_resources'][_0x3554fb(0x1b7)](_0x3a1412))[_0x3554fb(0x1f5)][_0xac0c80];}['setCodeConfig'](_0x46f6d5,_0x3f3726,_0x11cb71){const _0x8e478=_0xe4af3c;this[_0x8e478(0x1d9)](_0x46f6d5,_0x3f3726,D(this[_0x8e478(0x1b2)]['get'](_0x46f6d5),_0x3f3726,_0x11cb71));}[_0xe4af3c(0x1e4)](_0x135bc4,_0x453586){const _0x541c76=_0xe4af3c;this['_setResource'](_0x135bc4,_0x453586,te(this[_0x541c76(0x1b2)]['get'](_0x135bc4),_0x453586));}[_0xe4af3c(0x214)](_0x4d0aea){const _0x47d6dc=_0xe4af3c;return E(this[_0x47d6dc(0x1b2)][_0x47d6dc(0x1b7)](_0x4d0aea));}[_0xe4af3c(0x1a8)](_0x53cec,_0x571aed){const _0x1fe42b=_0xe4af3c;this[_0x1fe42b(0x1b2)][_0x1fe42b(0x1bc)](_0x53cec,E(_0x571aed)),this[_0x1fe42b(0x1df)][_0x1fe42b(0x1a1)]({'unitId':_0x53cec});}[_0xe4af3c(0x1d6)](_0x1b9d25){const _0x184918=_0xe4af3c;this['_resources'][_0x184918(0x1d2)](_0x1b9d25),this['_change$'][_0x184918(0x1a1)]({'unitId':_0x1b9d25});}[_0xe4af3c(0x1f2)](){const _0x3ce08b=_0xe4af3c;super[_0x3ce08b(0x1f2)](),this[_0x3ce08b(0x1b2)]['clear'](),this['_change$'][_0x3ce08b(0x1c7)]();}['_setResource'](_0x4a72a9,_0xee2eba,_0x3b0b89){const _0x368bc5=_0xe4af3c;this[_0x368bc5(0x1b2)]['set'](_0x4a72a9,_0x3b0b89),this[_0x368bc5(0x1df)][_0x368bc5(0x1a1)]({'unitId':_0x4a72a9,'blockId':_0xee2eba});}};const Oe={'id':'docs-code.command.insert-below','type':_0x27a160['COMMAND'],'handler':_0x462a6e=>{const _0x1fc013=_0xe4af3c;let _0x4d57f3=Me(_0x462a6e);if(_0x4d57f3)return _0x462a6e['get'](_0x20ee42)[_0x1fc013(0x21b)](G['id'],{'startOffset':_0x4d57f3[_0x1fc013(0x21a)],'endOffset':_0x4d57f3['endOffset'],'unitId':_0x4d57f3[_0x1fc013(0x1dd)]});let _0x254c12=Ne(_0x462a6e);if(!_0x254c12)return!0x1;let _0x507ba5=_0x254c12[_0x1fc013(0x213)]+0x1;return _0x462a6e[_0x1fc013(0x1b7)](_0x20ee42)['syncExecuteCommand'](G['id'],{'startOffset':_0x507ba5,'endOffset':_0x507ba5});}},ke={'id':'docs-code.command.consume-boundary-delete','type':_0x27a160[_0xe4af3c(0x1d5)],'handler':()=>!0x0},G={'id':_0xe4af3c(0x208),'type':_0x27a160[_0xe4af3c(0x1d5)],'handler':(_0xa037ac,_0x215f4e)=>{const _0x59efe6=_0xe4af3c;var _0x31b713,_0x5826d7,_0x4dd0bd;let _0x1db04d=q(_0xa037ac,_0x215f4e==null?void 0x0:_0x215f4e[_0x59efe6(0x1dd)]);if(!_0x1db04d)return!0x1;let _0x169ffb=J(_0xa037ac),_0x2525f8=re({'blockId':(_0x31b713=_0x215f4e==null?void 0x0:_0x215f4e[_0x59efe6(0x20e)])==null?_0x55f5a7(0x6):_0x31b713,'config':_0x215f4e==null?void 0x0:_0x215f4e[_0x59efe6(0x212)],'documentData':_0x1db04d[_0x59efe6(0x1f6)],'endOffset':(_0x5826d7=_0x215f4e==null?void 0x0:_0x215f4e[_0x59efe6(0x1ce)])==null?_0x169ffb==null?void 0x0:_0x169ffb[_0x59efe6(0x1ce)]:_0x5826d7,'metadata':_0x1db04d['model'][_0x59efe6(0x214)](_0x1db04d[_0x59efe6(0x1dd)]),'startOffset':(_0x4dd0bd=_0x215f4e==null?void 0x0:_0x215f4e[_0x59efe6(0x21a)])==null?_0x169ffb==null?void 0x0:_0x169ffb[_0x59efe6(0x21a)]:_0x4dd0bd}),_0x5643be=X(_0x1db04d[_0x59efe6(0x1e9)],_0x1db04d[_0x59efe6(0x1dd)],_0x1db04d[_0x59efe6(0x1f6)],_0x2525f8[_0x59efe6(0x1cf)],_0x2525f8[_0x59efe6(0x1f8)]);return _0x5643be&&_0x2525f8[_0x59efe6(0x1dc)]&&_0x1db04d[_0x59efe6(0x205)]['deserialize'](_0x1db04d[_0x59efe6(0x1dd)],_0x2525f8[_0x59efe6(0x1dc)]),_0x5643be;}},Ae={'id':_0xe4af3c(0x1ff),'type':_0x27a160[_0xe4af3c(0x1d5)],'handler':(_0x575119,_0x50f71b)=>{const _0x1ab546=_0xe4af3c;if(!_0x50f71b)return!0x1;let _0x102ee5=q(_0x575119,_0x50f71b[_0x1ab546(0x1dd)]);if(!_0x102ee5)return!0x1;let _0x3113fe=O({'blockId':_0x50f71b[_0x1ab546(0x20e)],'config':_0x50f71b[_0x1ab546(0x212)],'documentData':_0x102ee5[_0x1ab546(0x1f6)],'metadata':_0x102ee5[_0x1ab546(0x205)][_0x1ab546(0x214)](_0x102ee5['unitId'])});return _0x3113fe[_0x1ab546(0x1dc)]&&_0x102ee5['model']['deserialize'](_0x102ee5['unitId'],_0x3113fe[_0x1ab546(0x1dc)]),!0x0;}},K={'id':'docs-code.command.exit','type':_0x27a160[_0xe4af3c(0x1d5)],'handler':(_0x41c749,_0x2671ea)=>{const _0x1e18bc=_0xe4af3c;var _0x40c3fa,_0x3469e7;let _0x42fe6d=q(_0x41c749,_0x2671ea==null?void 0x0:_0x2671ea[_0x1e18bc(0x1dd)]);if(!_0x42fe6d)return!0x1;let _0x318693=(_0x40c3fa=_0x2671ea==null?void 0x0:_0x2671ea['cursorOffset'])==null?(_0x3469e7=J(_0x41c749))==null?void 0x0:_0x3469e7[_0x1e18bc(0x21a)]:_0x40c3fa;if(_0x318693==null)return!0x1;let _0x1db8a1=oe({'cursorOffset':_0x318693,'documentData':_0x42fe6d[_0x1e18bc(0x1f6)]});return _0x1db8a1?X(_0x42fe6d[_0x1e18bc(0x1e9)],_0x42fe6d[_0x1e18bc(0x1dd)],_0x42fe6d['previousDocumentData'],_0x1db8a1[_0x1e18bc(0x1cf)],_0x1db8a1[_0x1e18bc(0x1f8)]):!0x1;}},je={'id':_0xe4af3c(0x1e0),'type':_0x27a160[_0xe4af3c(0x1d5)],'handler':(_0x1c5b37,_0x14fb42)=>{const _0xba2040=_0xe4af3c;var _0x345f29,_0x43c6af;let _0x23ec5a=q(_0x1c5b37,_0x14fb42==null?void 0x0:_0x14fb42['unitId']);if(!_0x23ec5a)return!0x1;let _0x50e805=(_0x345f29=_0x14fb42==null?void 0x0:_0x14fb42[_0xba2040(0x1f8)])==null?(_0x43c6af=J(_0x1c5b37))==null?void 0x0:_0x43c6af[_0xba2040(0x21a)]:_0x345f29;if(_0x50e805==null)return!0x1;let _0x21b281=se({'cursorOffset':_0x50e805,'documentData':_0x23ec5a[_0xba2040(0x1f6)],'paragraphStartIndex':_0x14fb42==null?void 0x0:_0x14fb42[_0xba2040(0x1c5)]});return _0x21b281?X(_0x23ec5a['commandService'],_0x23ec5a[_0xba2040(0x1dd)],_0x23ec5a[_0xba2040(0x1f6)],_0x21b281[_0xba2040(0x1cf)],_0x21b281[_0xba2040(0x1f8)]):!0x1;}};function q(_0x2d3e96,_0x5e586e){const _0x5d3200=_0xe4af3c;let _0x1e4ca3=_0x2d3e96[_0x5d3200(0x1b7)](_0x5b6081),_0xbaf87b=_0x5e586e?_0x1e4ca3[_0x5d3200(0x1ea)](_0x5e586e):_0x1e4ca3[_0x5d3200(0x210)](_0x86ecb7['UNIVER_DOC']);return _0xbaf87b?{'commandService':_0x2d3e96[_0x5d3200(0x1b7)](_0x20ee42),'model':_0x2d3e96['get'](W),'previousDocumentData':_0xbaf87b[_0x5d3200(0x1f4)](),'unitId':_0xbaf87b[_0x5d3200(0x1a5)]()}:null;}function J(_0x2041d6){const _0x47c6ee=_0xe4af3c;var _0x318032;return(_0x318032=_0x2041d6[_0x47c6ee(0x1b7)](_0x5c0ac2)['getTextRanges']())==null?void 0x0:_0x318032[0x0];}function Me(_0x2a7eec){const _0x44f521=_0xe4af3c;var _0x242a13;let _0x31a47a=(_0x242a13=_0x2a7eec['get'](_0x5b6081)[_0x44f521(0x210)](_0x86ecb7[_0x44f521(0x1e2)]))==null?void 0x0:_0x242a13['getUnitId']();try{return _0x2a7eec[_0x44f521(0x1b7)](_0x2d6794)[_0x44f521(0x1d7)](_0x31a47a);}catch{return null;}}function Ne(_0x52f2cb){const _0x536189=_0xe4af3c;var _0x11a99c,_0x443ed4,_0x1444e3;let _0x5e2956=J(_0x52f2cb);if(!_0x5e2956)return null;let _0x5903de=_0x52f2cb['get'](_0x5b6081)[_0x536189(0x210)](_0x86ecb7[_0x536189(0x1e2)]),_0x3341e5=_0x5903de==null?void 0x0:_0x5903de[_0x536189(0x220)]();return _0x3341e5?(_0x11a99c=_0xb0f5fe['range']['getParagraphsInRange'](_0x5e2956,(_0x443ed4=_0x3341e5[_0x536189(0x1f3)])==null?[]:_0x443ed4,(_0x1444e3=_0x3341e5[_0x536189(0x219)])==null?'':_0x1444e3)[0x0])==null?null:_0x11a99c:null;}function Pe(_0x9ef07f,_0x5da0fe){const _0x1e9862=_0xe4af3c;var _0x9287c6,_0x2c7067,_0x478c46,_0x5f49f9,_0x3e7ec0,_0x85e5f4,_0xcef6f,_0x580c4c,_0x49ecda,_0x12f9d1,_0x1ec2ea,_0x4008c8,_0x42bdd3,_0x15c87d,_0x40ad9f,_0x47eef3,_0x1937fd,_0x4aa5d6;let _0x12c5ec=_0x35fccf[_0x1e9862(0x1a2)]();return[Y(_0x12c5ec,[_0x1e9862(0x204),'dataStream'],(_0x9287c6=_0x9ef07f[_0x1e9862(0x204)])==null?void 0x0:_0x9287c6['dataStream'],(_0x2c7067=_0x5da0fe['body'])==null?void 0x0:_0x2c7067[_0x1e9862(0x219)]),Y(_0x12c5ec,['body',_0x1e9862(0x1f3)],(_0x478c46=_0x9ef07f['body'])==null?void 0x0:_0x478c46[_0x1e9862(0x1f3)],(_0x5f49f9=_0x5da0fe['body'])==null?void 0x0:_0x5f49f9['paragraphs']),Y(_0x12c5ec,[_0x1e9862(0x204),'sectionBreaks'],(_0x3e7ec0=_0x9ef07f[_0x1e9862(0x204)])==null?void 0x0:_0x3e7ec0[_0x1e9862(0x207)],(_0x85e5f4=_0x5da0fe['body'])==null?void 0x0:_0x85e5f4[_0x1e9862(0x207)]),Y(_0x12c5ec,[_0x1e9862(0x204),_0x1e9862(0x221)],(_0xcef6f=_0x9ef07f['body'])==null?void 0x0:_0xcef6f[_0x1e9862(0x221)],(_0x580c4c=_0x5da0fe[_0x1e9862(0x204)])==null?void 0x0:_0x580c4c[_0x1e9862(0x221)]),Y(_0x12c5ec,[_0x1e9862(0x204),_0x1e9862(0x1fe)],(_0x49ecda=_0x9ef07f[_0x1e9862(0x204)])==null?void 0x0:_0x49ecda[_0x1e9862(0x1fe)],(_0x12f9d1=_0x5da0fe[_0x1e9862(0x204)])==null?void 0x0:_0x12f9d1[_0x1e9862(0x1fe)]),Y(_0x12c5ec,['body',_0x1e9862(0x1cc)],(_0x1ec2ea=_0x9ef07f[_0x1e9862(0x204)])==null?void 0x0:_0x1ec2ea[_0x1e9862(0x1cc)],(_0x4008c8=_0x5da0fe[_0x1e9862(0x204)])==null?void 0x0:_0x4008c8[_0x1e9862(0x1cc)]),Y(_0x12c5ec,[_0x1e9862(0x204),_0x1e9862(0x20f)],(_0x42bdd3=_0x9ef07f[_0x1e9862(0x204)])==null?void 0x0:_0x42bdd3[_0x1e9862(0x20f)],(_0x15c87d=_0x5da0fe[_0x1e9862(0x204)])==null?void 0x0:_0x15c87d[_0x1e9862(0x20f)]),Y(_0x12c5ec,['body',_0x1e9862(0x1e3)],(_0x40ad9f=_0x9ef07f[_0x1e9862(0x204)])==null?void 0x0:_0x40ad9f[_0x1e9862(0x1e3)],(_0x47eef3=_0x5da0fe[_0x1e9862(0x204)])==null?void 0x0:_0x47eef3['tables']),Y(_0x12c5ec,[_0x1e9862(0x204),_0x1e9862(0x1fb)],(_0x1937fd=_0x9ef07f[_0x1e9862(0x204)])==null?void 0x0:_0x1937fd['blockRanges'],(_0x4aa5d6=_0x5da0fe[_0x1e9862(0x204)])==null?void 0x0:_0x4aa5d6[_0x1e9862(0x1fb)])][_0x1e9862(0x1b8)](Boolean)['reduce']((_0x5100f6,_0x50ccab)=>_0x35fccf['compose'](_0x5100f6,_0x50ccab),null);}function Y(_0x584c3e,_0xc83e76,_0x5d7630,_0x39b3ec){const _0x34001c=_0xe4af3c;return _0x5cbae9[_0x34001c(0x201)](_0x5d7630,_0x39b3ec)?null:_0x584c3e[_0x34001c(0x1a3)](_0xc83e76,_0x5d7630,_0x39b3ec);}function X(_0x5a5f62,_0x51ef52,_0x4d7f4c,_0x3622f9,_0x8bde68){let _0x560be0=Pe(_0x4d7f4c,_0x3622f9);return _0x560be0?!!_0x5a5f62['syncExecuteCommand'](_0x7b932['id'],{'unitId':_0x51ef52,'actions':_0x560be0,'textRanges':[{'startOffset':_0x8bde68,'endOffset':_0x8bde68,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}var Fe=_0xe4af3c(0x1c4),Ie='0.24.0-insiders.20260530-57a0a3e';const Le={};function Z(_0x4780d9,_0x12e7b0){return function(_0x316057,_0x20c03f){_0x12e7b0(_0x316057,_0x20c03f,_0x4780d9);};}function Re(_0x298779,_0x481baa,_0x4dee2f,_0x5284e7){const _0x435e33=_0xe4af3c;var _0x251ead=arguments['length'],_0x1376a6=_0x251ead<0x3?_0x481baa:_0x5284e7===null?_0x5284e7=Object[_0x435e33(0x1e6)](_0x481baa,_0x4dee2f):_0x5284e7,_0x100760;if(typeof Reflect==_0x435e33(0x203)&&typeof Reflect[_0x435e33(0x21f)]==_0x435e33(0x1e5))_0x1376a6=Reflect[_0x435e33(0x21f)](_0x298779,_0x481baa,_0x4dee2f,_0x5284e7);else{for(var _0x350dad=_0x298779[_0x435e33(0x1ae)]-0x1;_0x350dad>=0x0;_0x350dad--)(_0x100760=_0x298779[_0x350dad])&&(_0x1376a6=(_0x251ead<0x3?_0x100760(_0x1376a6):_0x251ead>0x3?_0x100760(_0x481baa,_0x4dee2f,_0x1376a6):_0x100760(_0x481baa,_0x4dee2f))||_0x1376a6);}return _0x251ead>0x3&&_0x1376a6&&Object['defineProperty'](_0x481baa,_0x4dee2f,_0x1376a6),_0x1376a6;}let Q=class extends _0xe7979f{constructor(_0x388cb7,_0x1f171){const _0x4ea78e=_0xe4af3c;super(),this['_resourceManagerService']=_0x388cb7,this[_0x4ea78e(0x1f7)]=_0x1f171,this[_0x4ea78e(0x1b6)]();}[_0xe4af3c(0x1b6)](){const _0x191c93=_0xe4af3c;this[_0x191c93(0x1e1)](this['_resourceManagerService']['registerPluginResource']({'pluginName':S,'businesses':[_0x86ecb7[_0x191c93(0x1e2)]],'toJson':_0x29bba8=>JSON[_0x191c93(0x1ed)](this['_docsCodeModel'][_0x191c93(0x214)](_0x29bba8)),'parseJson':_0x297536=>E(JSON[_0x191c93(0x1b9)](_0x297536)),'onLoad':(_0x3bd719,_0x5652f6)=>this[_0x191c93(0x1f7)][_0x191c93(0x1a8)](_0x3bd719,_0x5652f6),'onUnLoad':_0x14d048=>this[_0x191c93(0x1f7)][_0x191c93(0x1d6)](_0x14d048)}));}};Q=Re([Z(0x0,_0x1d6dc4),Z(0x1,_0x434876(W))],Q);let $=class extends _0x50416c{constructor(_0x3fe331=Le,_0x4f2644,_0x4f04b1,_0xe78068){const _0x4d75a6=_0xe4af3c;super(),this[_0x4d75a6(0x1ad)]=_0x3fe331,this[_0x4d75a6(0x1f1)]=_0x4f2644,this[_0x4d75a6(0x1d8)]=_0x4f04b1,this[_0x4d75a6(0x1fd)]=_0xe78068;let {..._0x5226fb}=_0xc19827({},Le,this['_config']);this['_configService'][_0x4d75a6(0x20d)](_0x4d75a6(0x1b4),_0x5226fb);}[_0xe4af3c(0x1e8)](){const _0x5b97bc=_0xe4af3c;this[_0x5b97bc(0x1f1)][_0x5b97bc(0x1ec)]([W]),this[_0x5b97bc(0x1f1)][_0x5b97bc(0x1ec)]([Q]),this[_0x5b97bc(0x1f1)]['get'](W),this[_0x5b97bc(0x1f1)]['get'](Q),[G,Oe,Ae,K,je,ke][_0x5b97bc(0x1bd)](_0x547d9c=>this['disposeWithMe'](this[_0x5b97bc(0x1d8)]['registerCommand'](_0x547d9c)));}};U($,_0xe4af3c(0x1da),S),U($,_0xe4af3c(0x1e7),Fe),U($,_0xe4af3c(0x20b),Ie),U($,_0xe4af3c(0x1c9),_0x86ecb7[_0xe4af3c(0x1e2)]),$=Re([_0x4f78e6(_0x414584,_0x224da5),Z(0x1,_0x434876(_0x5421fe)),Z(0x2,_0x20ee42),Z(0x3,_0x1c1669)],$);export{w as DEFAULT_CODE_CONFIG,C as DOCS_CODE_BLOCK_TYPE,S as DOCS_CODE_PLUGIN,je as DocsCodeCancelEmptyParagraphCommand,ke as DocsCodeConsumeBoundaryDeleteCommand,K as DocsCodeExitCommand,Oe as DocsCodeInsertBelowCommand,G as DocsCodeInsertCommand,W as DocsCodeModel,Ae as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,se as buildCancelEmptyCodeParagraphActions,oe as buildExitCodeActions,re as buildInsertCodeActions,O as buildUpdateCodeActions,le as findCodeRangeAtOffset,ue as isCodeBoundaryDelete,T as normalizeDocsCodeConfig};
1
+ const _0x90b1ed=_0x34cc;(function(_0x198309,_0xb2f495){const _0x335818=_0x34cc,_0x27eefe=_0x198309();while(!![]){try{const _0x1bc96e=parseInt(_0x335818(0xa4))/0x1*(-parseInt(_0x335818(0x82))/0x2)+-parseInt(_0x335818(0xb6))/0x3+-parseInt(_0x335818(0xb4))/0x4*(-parseInt(_0x335818(0xc2))/0x5)+parseInt(_0x335818(0x7c))/0x6*(parseInt(_0x335818(0x91))/0x7)+-parseInt(_0x335818(0xc4))/0x8*(-parseInt(_0x335818(0x7a))/0x9)+parseInt(_0x335818(0xf1))/0xa+-parseInt(_0x335818(0xf2))/0xb*(-parseInt(_0x335818(0xa1))/0xc);if(_0x1bc96e===_0xb2f495)break;else _0x27eefe['push'](_0x27eefe['shift']());}catch(_0x597831){_0x27eefe['push'](_0x27eefe['shift']());}}}(_0x4a0e,0x9085b));import{BuildTextUtils as _0x51dd86,CommandType as _0x123b49,DataStreamTreeTokenType as _0x803f1c,DependentOn as _0x5955c6,Disposable as _0x58c269,ICommandService as _0x170d8a,IConfigService as _0x28e32f,IResourceManagerService as _0x5bcb88,IUniverInstanceService as _0x2bbfcb,Inject as _0x1f43cb,Injector as _0x5121c,JSONX as _0x104200,Plugin as _0x3c090e,Tools as _0x2fe1ea,UniverInstanceType as _0x333d99,generateRandomId as _0x3a4ef4,merge as _0x4a14fb}from'@univerjs/core';import{DocSelectionManagerService as _0xd6548f,RichTextEditingMutation as _0x2ef7f4,UniverDocsPlugin as _0x5e48ad}from'@univerjs/docs';import{DocContentInsertService as _0xaf51af}from'@univerjs/docs-ui';import{Subject as _0x1f73cb}from'rxjs';import{UniverLicensePlugin as _0x111d9d}from'@univerjs-pro/license';function _0x4a0e(){const _0x12a79d=['dispose','packageName','find','registerPluginResource','1843681phDxgz','_setResource','getParagraphsInRange','docs-code.command.exit','function','max','sort','getOwnPropertyDescriptor','_injector','documentData','set','length','right','deepClone','Document\x20body\x20is\x20required','disposeWithMe','12NznGSa','_commandService','forEach','1CiKTGP','cursorOffset','indentEnd','map','paragraph','docs-code.command.update','nextMetadata','javascript','spaceAbove','decorate','blockId','consumeInsertRange','0.25.0','code','customBlocks','BLOCK_END','237868dolhID','getBody','1121148FSQEvE','onStarting','object','UNIVER_DOC','change$','startIndex','getCurrentUnitOfType','docs-code.command.consume-boundary-delete','version','pluginName','blockType','_configService','75wxfkeR','paragraphStyle','152jRzghH','_initResource','docs-code.config','stringify','join','deserialize','_resources','slice','customDecorations','textStyle','customRanges','BLOCK_START','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','endOffset','unitId','every','model','getSnapshot','setCodeConfig','paragraphStartIndex','PARAGRAPH','string','type','next','body','parse','replaceOp','some','paragraphs','sectionBreaks','from','nextDocumentData','_resourceManagerService','SECTION_BREAK','compose','codes','getCodeConfig','call','add','indentStart','getUniverDocInstance','asObservable','blockRanges','_change$','commandService','3601060xyTSNQ','2215169WKDFUj','defineProperty','get','syncExecuteCommand','setConfig','monospace','docs-code.command.cancel-empty-paragraph','config','endTokenOffset','endIndex','startOffset','81045yjlOhk','_docsCodeModel','6RuUNEC','symbol','_config','removeUnit','textRuns','COMMAND','1844578smFXcD','spaceBelow','filter','dataStream','min','metadata','prototype','serialize','previousDocumentData','tables','removeCode'];_0x4a0e=function(){return _0x12a79d;};return _0x4a0e();}const S='DOC_CODE_PLUGIN',C=_0x90b1ed(0xb1),w={'language':_0x90b1ed(0xab),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function T(_0x2bbcce){return{...w,..._0x2bbcce};}function E(_0x2daa30){const _0x169acb=_0x90b1ed;var _0x1dc7cf;let _0x2d323e=(_0x1dc7cf=_0x2daa30==null?void 0x0:_0x2daa30[_0x169acb(0xe7)])==null?{}:_0x1dc7cf;return{'codes':Object['fromEntries'](Object['entries'](_0x2d323e)[_0x169acb(0xa7)](([_0x3ecc73,_0x4be8f8])=>[_0x3ecc73,T(_0x4be8f8)]))};}function D(_0x4d4757,_0x135638,_0x858367){const _0x21f90c=_0x90b1ed;let _0x5b4c0b=E(_0x4d4757);return _0x5b4c0b['codes'][_0x135638]=T({..._0x5b4c0b[_0x21f90c(0xe7)][_0x135638],..._0x858367}),_0x5b4c0b;}function te(_0x102d5a,_0x27b80c){let _0xecf63=E(_0x102d5a);return delete _0xecf63['codes'][_0x27b80c],_0xecf63;}const ne=_0x90b1ed(0xf7);function re(_0x1cdc26){const _0x3a2977=_0x90b1ed;var _0x5a0878,_0x357e56,_0x2374f2;let _0x3807a4=A(_0x1cdc26['documentData']),_0x2b0476=j(_0x3807a4),_0x331446=ae(_0x1cdc26[_0x3a2977(0x79)],_0x1cdc26[_0x3a2977(0xd1)]),_0x13e473=_0x331446?(_0x5a0878=_0x2b0476[_0x3a2977(0xee)])==null?void 0x0:_0x5a0878['find'](_0x126cd1=>_0x126cd1[_0x3a2977(0xbb)]===_0x331446[_0x3a2977(0x79)]&&_0x126cd1[_0x3a2977(0x78)]+0x1===_0x331446['endOffset']):void 0x0,{startOffset:_0x309ed4,endOffset:_0x45db4d}=_0x13e473?_0x331446:ge(_0x2b0476,_0x1cdc26[_0x3a2977(0x79)],_0x1cdc26[_0x3a2977(0xd1)]),_0x2c0e77=ve(_0x2b0476,_0x309ed4,_0x45db4d),_0x41d8de=(_0x357e56=_0x13e473==null?void 0x0:_0x13e473[_0x3a2977(0xae)])==null?_0x1cdc26['blockId']:_0x357e56,_0x4eeb8=D(_0x1cdc26[_0x3a2977(0x87)],_0x41d8de,{...w,..._0x1cdc26[_0x3a2977(0x76)]});if(_0x13e473)return _0x13e473['blockType']=C,ie(_0x2b0476,_0x309ed4,_0x45db4d),fe(_0x2b0476,_0x309ed4,_0x45db4d,_0x2c0e77),{'nextDocumentData':_0x3807a4,'nextMetadata':_0x4eeb8,'cursorOffset':_0x309ed4+0x1};if(_0x309ed4===_0x45db4d){let _0x6c2c11=''+_0x803f1c[_0x3a2977(0xcf)]+_0x803f1c[_0x3a2977(0xd8)]+_0x803f1c[_0x3a2977(0xb3)];return F(_0x2b0476,_0x309ed4,_0x6c2c11,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':k(!0x0,!0x0,_0x2c0e77)}],'blockRanges':[{'blockId':_0x41d8de,'blockType':C,'startIndex':0x0,'endIndex':_0x6c2c11[_0x3a2977(0x9c)]-0x1}]}),{'nextDocumentData':_0x3807a4,'nextMetadata':_0x4eeb8,'cursorOffset':_0x309ed4+0x1};}return F(_0x2b0476,_0x45db4d,_0x803f1c[_0x3a2977(0xb3)]),F(_0x2b0476,_0x309ed4,_0x803f1c['BLOCK_START']),fe(_0x2b0476,_0x309ed4,_0x45db4d+0x1,_0x2c0e77),_0x2b0476[_0x3a2977(0xee)]=[...(_0x2374f2=_0x2b0476[_0x3a2977(0xee)])==null?[]:_0x2374f2,{'blockId':_0x41d8de,'blockType':C,'startIndex':_0x309ed4,'endIndex':_0x45db4d+0x1}]['sort']((_0x3d253d,_0x5f3da3)=>_0x3d253d[_0x3a2977(0xbb)]-_0x5f3da3[_0x3a2977(0xbb)]),{'nextDocumentData':_0x3807a4,'nextMetadata':_0x4eeb8,'cursorOffset':_0x309ed4+0x1};}function ie(_0x555c29,_0x44a37f,_0x2860ea){const _0x4b1347=_0x90b1ed;var _0xedc91d;((_0xedc91d=_0x555c29[_0x4b1347(0xe0)])==null?[]:_0xedc91d)[_0x4b1347(0x84)](_0x364b33=>_0x364b33[_0x4b1347(0xbb)]>_0x44a37f&&_0x364b33[_0x4b1347(0xbb)]<_0x2860ea)[_0x4b1347(0xa3)](_0x5cecb4=>{const _0x4a9d46=_0x4b1347;var _0x45b881;let _0x5a7498={...(_0x45b881=_0x5cecb4['paragraphStyle'])==null?{}:_0x45b881};delete _0x5a7498[_0x4a9d46(0xac)],delete _0x5a7498[_0x4a9d46(0x83)],_0x5cecb4[_0x4a9d46(0xc3)]=_0x5a7498;});}function ae(_0x248605,_0x3cfcd1){const _0x28297d=_0x90b1ed;return _0x248605==null||_0x3cfcd1==null||_0x248605===_0x3cfcd1?null:{'startOffset':Math['min'](_0x248605,_0x3cfcd1),'endOffset':Math[_0x28297d(0x96)](_0x248605,_0x3cfcd1)};}function O(_0x5574c1){const _0x29d83c=_0x90b1ed;return{'nextDocumentData':A(_0x5574c1[_0x29d83c(0x9a)]),'nextMetadata':D(_0x5574c1['metadata'],_0x5574c1[_0x29d83c(0xae)],_0x5574c1[_0x29d83c(0x76)]),'cursorOffset':0x0};}function oe(_0x398cbe){const _0x351df6=_0x90b1ed;var _0x27916a,_0x1fa555;let _0x2819b1=A(_0x398cbe['documentData']),_0x59c82d=j(_0x2819b1),_0x3d2711=de(_0x59c82d,_0x398cbe[_0x351df6(0xa5)]);if(!_0x3d2711)return null;let _0x20f40c=me(_0x59c82d,_0x3d2711),_0x491255=_0x20f40c[_0x20f40c[_0x351df6(0x9c)]-0x1];if(!_0x491255||!he(_0x59c82d,_0x3d2711,_0x491255)||_0x398cbe[_0x351df6(0xa5)]<_0x491255[_0x351df6(0xbb)])return null;let _0x47b389=N(_0x59c82d,_0x3d2711,_0x491255);if(_0x47b389>=_0x3d2711['endIndex'])return null;_0x59c82d[_0x351df6(0x85)]=[_0x59c82d['dataStream']['slice'](0x0,_0x47b389),_0x803f1c['BLOCK_END'],_0x59c82d['dataStream'][_0x351df6(0xcb)](_0x47b389,_0x3d2711[_0x351df6(0x78)]),_0x59c82d['dataStream'][_0x351df6(0xcb)](_0x3d2711[_0x351df6(0x78)]+0x1)][_0x351df6(0xc8)](''),B(_0x59c82d[_0x351df6(0xe0)],_0x47b389,_0x3d2711[_0x351df6(0x78)],0x1),B(_0x59c82d[_0x351df6(0xe1)],_0x47b389,_0x3d2711[_0x351df6(0x78)],0x1),B(_0x59c82d[_0x351df6(0xb2)],_0x47b389,_0x3d2711[_0x351df6(0x78)],0x1),Te(_0x59c82d['textRuns'],_0x47b389,_0x3d2711['endIndex'],0x1),V(_0x59c82d[_0x351df6(0x8b)],_0x47b389,_0x3d2711['endIndex'],0x1),V(_0x59c82d[_0x351df6(0xce)],_0x47b389,_0x3d2711[_0x351df6(0x78)],0x1),V(_0x59c82d[_0x351df6(0xcc)],_0x47b389,_0x3d2711[_0x351df6(0x78)],0x1),(_0x27916a=_0x59c82d[_0x351df6(0xee)])==null||_0x27916a[_0x351df6(0xa3)](_0x39d35b=>{const _0x249d05=_0x351df6;_0x39d35b===_0x3d2711||_0x39d35b['blockId']===_0x3d2711[_0x249d05(0xae)]?_0x39d35b[_0x249d05(0x78)]=_0x47b389:_0x39d35b[_0x249d05(0xbb)]>=_0x47b389&&_0x39d35b[_0x249d05(0xbb)]<_0x3d2711[_0x249d05(0x78)]&&(_0x39d35b[_0x249d05(0xbb)]+=0x1,_0x39d35b[_0x249d05(0x78)]+=0x1);});let _0x3daca0=me(_0x59c82d,{..._0x3d2711,'endIndex':_0x47b389});_0x3daca0['forEach']((_0x241ff1,_0x5e05f4)=>{const _0x4d51b3=_0x351df6;var _0x3ca0d6;_0x241ff1[_0x4d51b3(0xc3)]={...(_0x3ca0d6=_0x241ff1[_0x4d51b3(0xc3)])==null?{}:_0x3ca0d6,...k(_0x5e05f4===0x0,_0x5e05f4===_0x3daca0[_0x4d51b3(0x9c)]-0x1)};});let _0xd93a9e=(_0x1fa555=_0x59c82d[_0x351df6(0xe0)])==null?void 0x0:_0x1fa555[_0x351df6(0x8f)](_0x471087=>_0x471087[_0x351df6(0xbb)]===_0x47b389+0x1);return _0xd93a9e&&(_0xd93a9e[_0x351df6(0xc3)]=pe(_0xd93a9e[_0x351df6(0xc3)])),{'nextDocumentData':_0x2819b1,'cursorOffset':_0x47b389+0x1};}function se(_0x56e485){const _0x44ce01=_0x90b1ed;let _0x33b8f7=A(_0x56e485[_0x44ce01(0x9a)]),_0x2500a7=j(_0x33b8f7),_0x39c77d=de(_0x2500a7,_0x56e485['cursorOffset']);return _0x39c77d&&ce(_0x33b8f7,_0x2500a7,_0x39c77d,_0x56e485[_0x44ce01(0xa5)],_0x56e485['paragraphStartIndex'])||null;}function ce(_0x356e1a,_0x4a59fc,_0x12c6ce,_0x3931fd,_0x310c2f){const _0x14ebb0=_0x90b1ed;let _0x1dfe69=be(_0x4a59fc,_0x12c6ce,_0x3931fd,_0x310c2f);if(!_0x1dfe69)return null;let _0x57d8a7=_0x1dfe69[_0x14ebb0(0x77)]-0x1;return xe(_0x4a59fc,_0x1dfe69['paragraph'][_0x14ebb0(0xbb)],_0x1dfe69[_0x14ebb0(0xa8)][_0x14ebb0(0xbb)]+0x1),{'nextDocumentData':_0x356e1a,'cursorOffset':_0x57d8a7};}function le(_0x38adfc,_0x3d43d6){const _0x594ea6=_0x90b1ed;var _0x4c7069;return _0x38adfc==null||(_0x4c7069=_0x38adfc[_0x594ea6(0xee)])==null?void 0x0:_0x4c7069['find'](_0x1a8dd3=>_0x1a8dd3[_0x594ea6(0xc0)]===_0x594ea6(0xb1)&&_0x1a8dd3[_0x594ea6(0xbb)]<=_0x3d43d6&&_0x3d43d6<=_0x1a8dd3[_0x594ea6(0x78)]);}function ue(_0x323253){const _0x30969c=_0x90b1ed;var _0x4424e0;let _0x1f7f3=_0x323253['documentData'][_0x30969c(0xdc)];if(!_0x1f7f3)return!0x1;let _0x575235=_0x323253['direction']==='left'?_0x323253['cursorOffset']-0x1:_0x323253[_0x30969c(0xa5)],_0x473e1a=_0x323253['direction']===_0x30969c(0x9d)?_0x323253[_0x30969c(0xa5)]+0x1:_0x575235;return((_0x4424e0=_0x1f7f3[_0x30969c(0xee)])==null?[]:_0x4424e0)[_0x30969c(0xdf)](_0x2b42f3=>_0x2b42f3[_0x30969c(0xc0)]===_0x30969c(0xb1)?_0x575235===_0x2b42f3['startIndex']||_0x575235===_0x2b42f3[_0x30969c(0x78)]||_0x473e1a===_0x2b42f3[_0x30969c(0xbb)]||_0x473e1a===_0x2b42f3[_0x30969c(0x78)]:!0x1);}function de(_0x48b38b,_0x813b06){const _0x475248=_0x90b1ed;var _0x163cb8;return(_0x163cb8=_0x48b38b[_0x475248(0xee)])==null?void 0x0:_0x163cb8[_0x475248(0x8f)](_0x1aa7b1=>{const _0x789e7f=_0x475248;let _0x1aba1b=P(_0x48b38b,_0x1aa7b1);return _0x1aa7b1['blockType']===_0x789e7f(0xb1)&&_0x1aa7b1['startIndex']<=_0x813b06&&_0x813b06<=_0x1aba1b+0x2;});}function k(_0x4b49f2,_0x2c2e64,_0x4c8672=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x4b49f2&&_0x4c8672?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ne,'fs':0xc}};}function fe(_0x36ad79,_0x2a8036,_0x4212cf,_0x467be2=!0x1){const _0x57d279=_0x90b1ed;var _0x14b618;let _0x3b87a0=((_0x14b618=_0x36ad79[_0x57d279(0xe0)])==null?[]:_0x14b618)[_0x57d279(0x84)](_0x537127=>_0x537127['startIndex']>_0x2a8036&&_0x537127[_0x57d279(0xbb)]<_0x4212cf);_0x3b87a0[_0x57d279(0xa3)]((_0x2e494c,_0x52c09d)=>{const _0x24e0ad=_0x57d279;var _0x5ac0ce;_0x2e494c['paragraphStyle']={...(_0x5ac0ce=_0x2e494c[_0x24e0ad(0xc3)])==null?{}:_0x5ac0ce,...k(_0x52c09d===0x0,_0x52c09d===_0x3b87a0[_0x24e0ad(0x9c)]-0x1,_0x467be2)};});}function pe(_0xa565de){const _0x42b261=_0x90b1ed;var _0xc2c383,_0x33ddf2;let _0x236066={..._0xa565de==null?{}:_0xa565de};return delete _0x236066[_0x42b261(0xa6)],delete _0x236066[_0x42b261(0xeb)],delete _0x236066[_0x42b261(0xac)],delete _0x236066[_0x42b261(0x83)],((_0xc2c383=_0x236066[_0x42b261(0xcd)])==null?void 0x0:_0xc2c383['ff'])===ne&&((_0x33ddf2=_0x236066[_0x42b261(0xcd)])==null?void 0x0:_0x33ddf2['fs'])===0xc&&delete _0x236066[_0x42b261(0xcd)],_0x236066;}function me(_0x505a69,_0x2eac84){const _0x2b4483=_0x90b1ed;var _0x12d19d;let _0x5f41c7=P(_0x505a69,_0x2eac84);return((_0x12d19d=_0x505a69['paragraphs'])==null?[]:_0x12d19d)[_0x2b4483(0x84)](_0xa8f510=>_0xa8f510['startIndex']>_0x2eac84['startIndex']&&_0xa8f510[_0x2b4483(0xbb)]<_0x5f41c7);}function he(_0x41b373,_0x38b037,_0x5b06e9){const _0x34b5a7=_0x90b1ed;let _0x3937ce=N(_0x41b373,_0x38b037,_0x5b06e9),_0x3b42d3=_0x41b373[_0x34b5a7(0x85)][_0x34b5a7(0xcb)](_0x3937ce,_0x5b06e9[_0x34b5a7(0xbb)]);return Array[_0x34b5a7(0xe2)](_0x3b42d3)['every'](_0x5ab010=>_0x5ab010===_0x803f1c['BLOCK_START']||_0x5ab010===_0x803f1c[_0x34b5a7(0xb3)]);}function A(_0x38e1ec){const _0x4ff6f9=_0x90b1ed;return _0x2fe1ea[_0x4ff6f9(0x9e)](_0x38e1ec);}function j(_0x2215f9){const _0x43a9f0=_0x90b1ed;if(!_0x2215f9[_0x43a9f0(0xdc)])throw Error(_0x43a9f0(0x9f));return _0x2215f9[_0x43a9f0(0xdc)];}function ge(_0xbaafec,_0xd68723,_0x568516){const _0x5f11e9=_0x90b1ed;if(_0xd68723==null||_0x568516==null){let _0x353037=_e(_0xbaafec);return{'startOffset':_0x353037,'endOffset':_0x353037};}let _0x13bb5b=Math[_0x5f11e9(0x86)](_0xd68723,_0x568516),_0x1a9d87=Math[_0x5f11e9(0x96)](_0xd68723,_0x568516);return _0x13bb5b===_0x1a9d87?{'startOffset':_0x13bb5b,'endOffset':_0x13bb5b}:ye(_0xbaafec,_0x13bb5b,_0x1a9d87);}function _e(_0x2e255b){const _0x215692=_0x90b1ed;return _0x2e255b['dataStream']['endsWith'](_0x803f1c[_0x215692(0xe5)])?Math[_0x215692(0x96)](0x0,_0x2e255b[_0x215692(0x85)][_0x215692(0x9c)]-0x1):_0x2e255b[_0x215692(0x85)]['length'];}function ve(_0x52278a,_0x31b780,_0x5cb472){const _0x1d8f24=_0x90b1ed;var _0x1607eb;let _0x117584=Math[_0x1d8f24(0x86)](_0x31b780,_0x5cb472),_0x1e38cd=Math[_0x1d8f24(0x96)](_0x31b780,_0x5cb472);return!!((_0x1607eb=_0x52278a[_0x1d8f24(0x8b)])!=null&&_0x1607eb['some'](_0x4b824d=>_0x117584>_0x4b824d[_0x1d8f24(0xbb)]&&_0x117584<_0x4b824d[_0x1d8f24(0x78)]||_0x1e38cd>_0x4b824d['startIndex']&&_0x1e38cd<_0x4b824d['endIndex']||_0x117584<=_0x4b824d[_0x1d8f24(0xbb)]&&_0x1e38cd>=_0x4b824d[_0x1d8f24(0x78)]));}function ye(_0x58376c,_0x48e439,_0x5b5ab9){const _0x56c5dd=_0x90b1ed;var _0x11b57c,_0x36a876;let _0x3c8461=[...(_0x11b57c=_0x58376c[_0x56c5dd(0xe0)])==null?[]:_0x11b57c]['sort']((_0x33cd25,_0x539b3c)=>_0x33cd25['startIndex']-_0x539b3c[_0x56c5dd(0xbb)]),_0x5af445=_0x3c8461[_0x56c5dd(0x8f)]((_0x32087b,_0x3223f5)=>(_0x3223f5===0x0?0x0:_0x3c8461[_0x3223f5-0x1][_0x56c5dd(0xbb)]+0x1)<=_0x48e439&&_0x48e439<=_0x32087b[_0x56c5dd(0xbb)]),_0x121695=(_0x36a876=_0x3c8461['find'](_0x155bb2=>_0x155bb2['startIndex']>=_0x5b5ab9-0x1))==null?_0x3c8461[_0x3c8461[_0x56c5dd(0x9c)]-0x1]:_0x36a876;return{'startOffset':_0x5af445?M(_0x3c8461,_0x5af445):_0x48e439,'endOffset':_0x121695?_0x121695[_0x56c5dd(0xbb)]+0x1:_0x5b5ab9};}function M(_0x1f2509,_0x3b267d){const _0x4f6cfb=_0x90b1ed;let _0x48901f=_0x1f2509['indexOf'](_0x3b267d);return _0x48901f>0x0?_0x1f2509[_0x48901f-0x1][_0x4f6cfb(0xbb)]+0x1:0x0;}function N(_0x2332d5,_0x1637ee,_0xf876c5){const _0x8e9199=_0x90b1ed;var _0xfb1a33;return Math[_0x8e9199(0x96)](M((_0xfb1a33=_0x2332d5[_0x8e9199(0xe0)])==null?[]:_0xfb1a33,_0xf876c5),_0x1637ee[_0x8e9199(0xbb)]+0x1);}function P(_0x262c7b,_0x249fa2){const _0x4b8d36=_0x90b1ed;return _0x262c7b['dataStream'][_0x249fa2[_0x4b8d36(0x78)]]===_0x803f1c[_0x4b8d36(0xb3)]?_0x249fa2[_0x4b8d36(0x78)]:_0x262c7b[_0x4b8d36(0x85)][_0x249fa2[_0x4b8d36(0x78)]+0x1]===_0x803f1c[_0x4b8d36(0xb3)]?_0x249fa2[_0x4b8d36(0x78)]+0x1:_0x249fa2[_0x4b8d36(0x78)];}function be(_0x585a7f,_0x26b05e,_0x3a80ee,_0x5ef1ff){const _0x1e2216=_0x90b1ed;var _0x447587,_0x1a18b9;let _0x4b7d82=P(_0x585a7f,_0x26b05e),_0x455939=((_0x447587=_0x585a7f[_0x1e2216(0xe0)])==null?[]:_0x447587)[_0x1e2216(0x8f)](_0x580665=>_0x580665['startIndex']===_0x4b7d82+0x1);if(!_0x455939||_0x5ef1ff!=null&&_0x455939[_0x1e2216(0xbb)]!==_0x5ef1ff||_0x3a80ee<_0x4b7d82||_0x3a80ee>_0x455939[_0x1e2216(0xbb)]+0x1||_0x585a7f['dataStream'][_0x455939['startIndex']]!==_0x803f1c['PARAGRAPH'])return null;let _0x2a98bf=M((_0x1a18b9=_0x585a7f[_0x1e2216(0xe0)])==null?[]:_0x1a18b9,_0x455939),_0x5395cd=_0x585a7f[_0x1e2216(0x85)][_0x1e2216(0xcb)](_0x2a98bf,_0x455939[_0x1e2216(0xbb)]);return Array['from'](_0x5395cd)[_0x1e2216(0xd3)](_0x331a57=>_0x331a57===_0x803f1c['BLOCK_END'])?{'paragraph':_0x455939,'endTokenOffset':_0x4b7d82}:null;}function F(_0x34aa91,_0x2aeb25,_0x2065e1,_0xa373c3={}){const _0x56cd43=_0x90b1ed;var _0x42f966,_0xcaaedc;if(_0x2065e1){if(_0x34aa91[_0x56cd43(0x85)]=''+_0x34aa91[_0x56cd43(0x85)][_0x56cd43(0xcb)](0x0,_0x2aeb25)+_0x2065e1+_0x34aa91[_0x56cd43(0x85)][_0x56cd43(0xcb)](_0x2aeb25),Se(_0x34aa91,_0x2aeb25,_0x2065e1[_0x56cd43(0x9c)]),(_0x42f966=_0xa373c3['paragraphs'])!=null&&_0x42f966['length']){var _0x4d1542;_0x34aa91[_0x56cd43(0xe0)]=[...(_0x4d1542=_0x34aa91['paragraphs'])==null?[]:_0x4d1542,..._0xa373c3[_0x56cd43(0xe0)][_0x56cd43(0xa7)](_0x39c84f=>({..._0x39c84f,'startIndex':_0x39c84f[_0x56cd43(0xbb)]+_0x2aeb25}))]['sort']((_0xbac976,_0x389c21)=>_0xbac976[_0x56cd43(0xbb)]-_0x389c21[_0x56cd43(0xbb)]);}if((_0xcaaedc=_0xa373c3[_0x56cd43(0xee)])!=null&&_0xcaaedc[_0x56cd43(0x9c)]){var _0x40a146;_0x34aa91[_0x56cd43(0xee)]=[...(_0x40a146=_0x34aa91['blockRanges'])==null?[]:_0x40a146,..._0xa373c3['blockRanges'][_0x56cd43(0xa7)](_0x4b99a1=>({..._0x4b99a1,'startIndex':_0x4b99a1[_0x56cd43(0xbb)]+_0x2aeb25,'endIndex':_0x4b99a1[_0x56cd43(0x78)]+_0x2aeb25}))][_0x56cd43(0x97)]((_0x996444,_0x28c629)=>_0x996444[_0x56cd43(0xbb)]-_0x28c629['startIndex']);}}}function xe(_0x3add5f,_0x5d38d6,_0x112552){const _0x825238=_0x90b1ed;let _0x1a39ef=_0x112552-_0x5d38d6;_0x3add5f[_0x825238(0x85)]=''+_0x3add5f[_0x825238(0x85)][_0x825238(0xcb)](0x0,_0x5d38d6)+_0x3add5f[_0x825238(0x85)][_0x825238(0xcb)](_0x112552),Ce(_0x3add5f,_0x5d38d6,_0x1a39ef);}function Se(_0x4e990c,_0x11bb3c,_0x13e1c3){const _0xb6d7ba=_0x90b1ed;_0x4e990c[_0xb6d7ba(0xe0)]=I(_0x4e990c[_0xb6d7ba(0xe0)],_0x11bb3c,_0x13e1c3),_0x4e990c[_0xb6d7ba(0xe1)]=I(_0x4e990c[_0xb6d7ba(0xe1)],_0x11bb3c,_0x13e1c3),_0x4e990c[_0xb6d7ba(0xb2)]=I(_0x4e990c['customBlocks'],_0x11bb3c,_0x13e1c3),_0x4e990c[_0xb6d7ba(0x80)]=we(_0x4e990c['textRuns'],_0x11bb3c,_0x13e1c3),_0x4e990c[_0xb6d7ba(0x8b)]=R(_0x4e990c['tables'],_0x11bb3c,_0x13e1c3),_0x4e990c[_0xb6d7ba(0xce)]=R(_0x4e990c[_0xb6d7ba(0xce)],_0x11bb3c,_0x13e1c3),_0x4e990c[_0xb6d7ba(0xcc)]=R(_0x4e990c[_0xb6d7ba(0xcc)],_0x11bb3c,_0x13e1c3),_0x4e990c[_0xb6d7ba(0xee)]=R(_0x4e990c['blockRanges'],_0x11bb3c,_0x13e1c3);}function Ce(_0x91e6b5,_0x3a4500,_0x3be86c){const _0x4f1fec=_0x90b1ed;var _0x1fb56e,_0x18551d;_0x91e6b5['paragraphs']=L(_0x91e6b5[_0x4f1fec(0xe0)],_0x3a4500,_0x3be86c),_0x91e6b5[_0x4f1fec(0xe1)]=L(_0x91e6b5[_0x4f1fec(0xe1)],_0x3a4500,_0x3be86c),_0x91e6b5[_0x4f1fec(0xb2)]=L(_0x91e6b5[_0x4f1fec(0xb2)],_0x3a4500,_0x3be86c),_0x91e6b5[_0x4f1fec(0x80)]=(_0x1fb56e=z((_0x18551d=_0x91e6b5[_0x4f1fec(0x80)])==null?void 0x0:_0x18551d['map'](_0x42bd4e=>({..._0x42bd4e,'startIndex':_0x42bd4e['st'],'endIndex':_0x42bd4e['ed']})),_0x3a4500,_0x3be86c))==null?void 0x0:_0x1fb56e[_0x4f1fec(0xa7)](_0x1ab5b4=>{let {startIndex:_0x1babc9,endIndex:_0x267df8,..._0x474662}=_0x1ab5b4;return{..._0x474662,'st':_0x1babc9,'ed':_0x267df8};}),_0x91e6b5[_0x4f1fec(0x8b)]=z(_0x91e6b5[_0x4f1fec(0x8b)],_0x3a4500,_0x3be86c),_0x91e6b5['customRanges']=z(_0x91e6b5['customRanges'],_0x3a4500,_0x3be86c),_0x91e6b5[_0x4f1fec(0xcc)]=z(_0x91e6b5[_0x4f1fec(0xcc)],_0x3a4500,_0x3be86c),_0x91e6b5[_0x4f1fec(0xee)]=z(_0x91e6b5[_0x4f1fec(0xee)],_0x3a4500,_0x3be86c);}function I(_0x19bb9f,_0x448546,_0x22d083){const _0x218961=_0x90b1ed;return _0x19bb9f==null?void 0x0:_0x19bb9f[_0x218961(0xa7)](_0x1b4290=>_0x1b4290['startIndex']>=_0x448546?{..._0x1b4290,'startIndex':_0x1b4290[_0x218961(0xbb)]+_0x22d083}:_0x1b4290);}function L(_0x190366,_0x1a1505,_0x108fe5){const _0x58f4e8=_0x90b1ed;let _0x143efc=_0x1a1505+_0x108fe5;return _0x190366==null?void 0x0:_0x190366[_0x58f4e8(0xa7)](_0x2bc329=>_0x2bc329[_0x58f4e8(0xbb)]>=_0x1a1505&&_0x2bc329[_0x58f4e8(0xbb)]<_0x143efc?null:_0x2bc329['startIndex']>=_0x143efc?{..._0x2bc329,'startIndex':_0x2bc329['startIndex']-_0x108fe5}:_0x2bc329)[_0x58f4e8(0x84)](_0x141ac8=>_0x141ac8!=null);}function we(_0x36d861,_0x1cf88e,_0x20cd33){const _0x58e5e7=_0x90b1ed;return _0x36d861==null?void 0x0:_0x36d861[_0x58e5e7(0xa7)](_0x1dc49e=>_0x1dc49e['st']>=_0x1cf88e?{..._0x1dc49e,'st':_0x1dc49e['st']+_0x20cd33,'ed':_0x1dc49e['ed']+_0x20cd33}:_0x1dc49e['ed']>_0x1cf88e?{..._0x1dc49e,'ed':_0x1dc49e['ed']+_0x20cd33}:_0x1dc49e);}function R(_0x33e44b,_0x428c7b,_0x59f0d0){const _0x3aaf15=_0x90b1ed;return _0x33e44b==null?void 0x0:_0x33e44b[_0x3aaf15(0xa7)](_0x1732fb=>_0x1732fb['startIndex']>=_0x428c7b?{..._0x1732fb,'startIndex':_0x1732fb[_0x3aaf15(0xbb)]+_0x59f0d0,'endIndex':_0x1732fb[_0x3aaf15(0x78)]+_0x59f0d0}:_0x1732fb[_0x3aaf15(0x78)]>=_0x428c7b?{..._0x1732fb,'endIndex':_0x1732fb['endIndex']+_0x59f0d0}:_0x1732fb);}function z(_0x315c34,_0x2be22a,_0x4c4798){const _0x4298bb=_0x90b1ed;let _0x516b92=_0x2be22a+_0x4c4798;return _0x315c34==null?void 0x0:_0x315c34[_0x4298bb(0xa7)](_0x4d563a=>_0x4d563a[_0x4298bb(0xbb)]>=_0x2be22a&&_0x4d563a[_0x4298bb(0x78)]<_0x516b92?null:_0x4d563a[_0x4298bb(0xbb)]>=_0x516b92?{..._0x4d563a,'startIndex':_0x4d563a[_0x4298bb(0xbb)]-_0x4c4798,'endIndex':_0x4d563a[_0x4298bb(0x78)]-_0x4c4798}:_0x4d563a[_0x4298bb(0x78)]>=_0x2be22a?{..._0x4d563a,'startIndex':_0x4d563a[_0x4298bb(0xbb)]<_0x2be22a?_0x4d563a['startIndex']:_0x2be22a,'endIndex':Math['max'](_0x2be22a,_0x4d563a[_0x4298bb(0x78)]-_0x4c4798)}:_0x4d563a)[_0x4298bb(0x84)](_0x4b9986=>_0x4b9986!=null);}function B(_0x50aef1,_0x465f64,_0x429c33,_0x101da2){const _0x4ba317=_0x90b1ed;_0x50aef1==null||_0x50aef1[_0x4ba317(0xa3)](_0x22d9c1=>{const _0xdfe8=_0x4ba317;_0x22d9c1[_0xdfe8(0xbb)]>=_0x465f64&&_0x22d9c1[_0xdfe8(0xbb)]<_0x429c33&&(_0x22d9c1['startIndex']+=_0x101da2);});}function Te(_0x57bfb3,_0x4cf9f,_0x3c9f9e,_0x427d8c){const _0xbd390c=_0x90b1ed;_0x57bfb3==null||_0x57bfb3[_0xbd390c(0xa3)](_0x4b5dca=>{_0x4b5dca['st']>=_0x4cf9f&&_0x4b5dca['st']<_0x3c9f9e?(_0x4b5dca['st']+=_0x427d8c,_0x4b5dca['ed']+=_0x427d8c):_0x4b5dca['ed']>_0x4cf9f&&_0x4b5dca['ed']<_0x3c9f9e&&(_0x4b5dca['ed']+=_0x427d8c);});}function V(_0x18f6bb,_0xff5d9c,_0x2a8482,_0x4c7e7e){const _0x142e18=_0x90b1ed;_0x18f6bb==null||_0x18f6bb[_0x142e18(0xa3)](_0x25bef4=>{const _0x532773=_0x142e18;_0x25bef4[_0x532773(0xbb)]>=_0xff5d9c&&_0x25bef4['startIndex']<_0x2a8482?(_0x25bef4[_0x532773(0xbb)]+=_0x4c7e7e,_0x25bef4[_0x532773(0x78)]+=_0x4c7e7e):_0x25bef4[_0x532773(0x78)]>_0xff5d9c&&_0x25bef4[_0x532773(0x78)]<_0x2a8482&&(_0x25bef4[_0x532773(0x78)]+=_0x4c7e7e);});}function H(_0x302838){'@babel/helpers - typeof';const _0x37dcbe=_0x90b1ed;return H=typeof Symbol==_0x37dcbe(0x95)&&typeof Symbol['iterator']==_0x37dcbe(0x7d)?function(_0xbdc232){return typeof _0xbdc232;}:function(_0x3d641b){const _0x451961=_0x37dcbe;return _0x3d641b&&typeof Symbol==_0x451961(0x95)&&_0x3d641b['constructor']===Symbol&&_0x3d641b!==Symbol[_0x451961(0x88)]?'symbol':typeof _0x3d641b;},H(_0x302838);}function Ee(_0x192548,_0xaab2b2){const _0x35fd6f=_0x90b1ed;if(H(_0x192548)!=_0x35fd6f(0xb8)||!_0x192548)return _0x192548;var _0x11bac5=_0x192548[Symbol['toPrimitive']];if(_0x11bac5!==void 0x0){var _0x3013c2=_0x11bac5[_0x35fd6f(0xe9)](_0x192548,_0xaab2b2||'default');if(H(_0x3013c2)!=_0x35fd6f(0xb8))return _0x3013c2;throw TypeError(_0x35fd6f(0xd0));}return(_0xaab2b2===_0x35fd6f(0xd9)?String:Number)(_0x192548);}function De(_0x3ca631){const _0x2df239=_0x90b1ed;var _0x3dde7e=Ee(_0x3ca631,'string');return H(_0x3dde7e)==_0x2df239(0x7d)?_0x3dde7e:_0x3dde7e+'';}function U(_0x2e6d97,_0x30be5d,_0x5cec6b){const _0xaa99c1=_0x90b1ed;return(_0x30be5d=De(_0x30be5d))in _0x2e6d97?Object[_0xaa99c1(0xf3)](_0x2e6d97,_0x30be5d,{'value':_0x5cec6b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2e6d97[_0x30be5d]=_0x5cec6b,_0x2e6d97;}var W=class extends _0x58c269{constructor(..._0x4205aa){const _0x4651b6=_0x90b1ed;super(..._0x4205aa),U(this,_0x4651b6(0xca),new Map()),U(this,_0x4651b6(0xef),new _0x1f73cb()),U(this,_0x4651b6(0xba),this['_change$'][_0x4651b6(0xed)]());}[_0x90b1ed(0xe8)](_0x112960,_0x16fabc){const _0x44746d=_0x90b1ed;return E(this[_0x44746d(0xca)][_0x44746d(0xf4)](_0x112960))[_0x44746d(0xe7)][_0x16fabc];}[_0x90b1ed(0xd6)](_0x1e1604,_0x598fb3,_0x6a5b50){const _0x3aa9f6=_0x90b1ed;this['_setResource'](_0x1e1604,_0x598fb3,D(this[_0x3aa9f6(0xca)]['get'](_0x1e1604),_0x598fb3,_0x6a5b50));}[_0x90b1ed(0x8c)](_0x4200e5,_0xc1c07e){const _0x41abda=_0x90b1ed;this[_0x41abda(0x92)](_0x4200e5,_0xc1c07e,te(this[_0x41abda(0xca)]['get'](_0x4200e5),_0xc1c07e));}['serialize'](_0x2b6f7f){const _0x4dccc9=_0x90b1ed;return E(this[_0x4dccc9(0xca)]['get'](_0x2b6f7f));}[_0x90b1ed(0xc9)](_0x5d71f7,_0x12e961){const _0x15391b=_0x90b1ed;this[_0x15391b(0xca)][_0x15391b(0x9b)](_0x5d71f7,E(_0x12e961)),this['_change$'][_0x15391b(0xdb)]({'unitId':_0x5d71f7});}[_0x90b1ed(0x7f)](_0x7d2cf7){const _0x56adfd=_0x90b1ed;this[_0x56adfd(0xca)]['delete'](_0x7d2cf7),this[_0x56adfd(0xef)][_0x56adfd(0xdb)]({'unitId':_0x7d2cf7});}['dispose'](){const _0x3ba5a4=_0x90b1ed;super[_0x3ba5a4(0x8d)](),this[_0x3ba5a4(0xca)]['clear'](),this['_change$']['complete']();}[_0x90b1ed(0x92)](_0x1a2a77,_0x1d8fca,_0x4bc07a){const _0x24fb80=_0x90b1ed;this[_0x24fb80(0xca)][_0x24fb80(0x9b)](_0x1a2a77,_0x4bc07a),this[_0x24fb80(0xef)][_0x24fb80(0xdb)]({'unitId':_0x1a2a77,'blockId':_0x1d8fca});}};const Oe={'id':'docs-code.command.insert-below','type':_0x123b49['COMMAND'],'handler':_0x180095=>{const _0xf948ac=_0x90b1ed;let _0x5e6be7=Me(_0x180095);if(_0x5e6be7)return _0x180095[_0xf948ac(0xf4)](_0x170d8a)[_0xf948ac(0xf5)](G['id'],{'startOffset':_0x5e6be7[_0xf948ac(0x79)],'endOffset':_0x5e6be7[_0xf948ac(0xd1)],'unitId':_0x5e6be7['unitId']});let _0x675b18=Ne(_0x180095);if(!_0x675b18)return!0x1;let _0x22cade=_0x675b18[_0xf948ac(0xbb)]+0x1;return _0x180095[_0xf948ac(0xf4)](_0x170d8a)[_0xf948ac(0xf5)](G['id'],{'startOffset':_0x22cade,'endOffset':_0x22cade});}},ke={'id':_0x90b1ed(0xbd),'type':_0x123b49[_0x90b1ed(0x81)],'handler':()=>!0x0},G={'id':'docs-code.command.insert','type':_0x123b49['COMMAND'],'handler':(_0x173ef0,_0x488acc)=>{const _0x30dd4f=_0x90b1ed;var _0x462f86,_0x3aad8a,_0x59c79a;let _0x205ede=q(_0x173ef0,_0x488acc==null?void 0x0:_0x488acc[_0x30dd4f(0xd2)]);if(!_0x205ede)return!0x1;let _0x253baa=J(_0x173ef0),_0x461d77=re({'blockId':(_0x462f86=_0x488acc==null?void 0x0:_0x488acc['blockId'])==null?_0x3a4ef4(0x6):_0x462f86,'config':_0x488acc==null?void 0x0:_0x488acc['config'],'documentData':_0x205ede[_0x30dd4f(0x8a)],'endOffset':(_0x3aad8a=_0x488acc==null?void 0x0:_0x488acc[_0x30dd4f(0xd1)])==null?_0x253baa==null?void 0x0:_0x253baa['endOffset']:_0x3aad8a,'metadata':_0x205ede['model'][_0x30dd4f(0x89)](_0x205ede['unitId']),'startOffset':(_0x59c79a=_0x488acc==null?void 0x0:_0x488acc[_0x30dd4f(0x79)])==null?_0x253baa==null?void 0x0:_0x253baa['startOffset']:_0x59c79a}),_0x41939f=X(_0x205ede[_0x30dd4f(0xf0)],_0x205ede['unitId'],_0x205ede['previousDocumentData'],_0x461d77[_0x30dd4f(0xe3)],_0x461d77[_0x30dd4f(0xa5)]);return _0x41939f&&_0x461d77[_0x30dd4f(0xaa)]&&_0x205ede[_0x30dd4f(0xd4)][_0x30dd4f(0xc9)](_0x205ede['unitId'],_0x461d77[_0x30dd4f(0xaa)]),_0x41939f;}},Ae={'id':_0x90b1ed(0xa9),'type':_0x123b49[_0x90b1ed(0x81)],'handler':(_0x8ea343,_0x374bef)=>{const _0x112213=_0x90b1ed;if(!_0x374bef)return!0x1;let _0x149893=q(_0x8ea343,_0x374bef[_0x112213(0xd2)]);if(!_0x149893)return!0x1;let _0x3e5eab=O({'blockId':_0x374bef[_0x112213(0xae)],'config':_0x374bef['config'],'documentData':_0x149893[_0x112213(0x8a)],'metadata':_0x149893[_0x112213(0xd4)]['serialize'](_0x149893[_0x112213(0xd2)])});return _0x3e5eab[_0x112213(0xaa)]&&_0x149893[_0x112213(0xd4)][_0x112213(0xc9)](_0x149893[_0x112213(0xd2)],_0x3e5eab[_0x112213(0xaa)]),!0x0;}},K={'id':_0x90b1ed(0x94),'type':_0x123b49[_0x90b1ed(0x81)],'handler':(_0x5e1e16,_0x2352e4)=>{const _0x475967=_0x90b1ed;var _0x2a56ff,_0x5ea6cb;let _0x591866=q(_0x5e1e16,_0x2352e4==null?void 0x0:_0x2352e4[_0x475967(0xd2)]);if(!_0x591866)return!0x1;let _0x537847=(_0x2a56ff=_0x2352e4==null?void 0x0:_0x2352e4['cursorOffset'])==null?(_0x5ea6cb=J(_0x5e1e16))==null?void 0x0:_0x5ea6cb[_0x475967(0x79)]:_0x2a56ff;if(_0x537847==null)return!0x1;let _0x3fd2a6=oe({'cursorOffset':_0x537847,'documentData':_0x591866[_0x475967(0x8a)]});return _0x3fd2a6?X(_0x591866[_0x475967(0xf0)],_0x591866['unitId'],_0x591866[_0x475967(0x8a)],_0x3fd2a6['nextDocumentData'],_0x3fd2a6[_0x475967(0xa5)]):!0x1;}},je={'id':_0x90b1ed(0xf8),'type':_0x123b49[_0x90b1ed(0x81)],'handler':(_0x4c232c,_0x3485e7)=>{const _0x55ec3a=_0x90b1ed;var _0x17b352,_0x5ece58;let _0x49d701=q(_0x4c232c,_0x3485e7==null?void 0x0:_0x3485e7[_0x55ec3a(0xd2)]);if(!_0x49d701)return!0x1;let _0x414869=(_0x17b352=_0x3485e7==null?void 0x0:_0x3485e7[_0x55ec3a(0xa5)])==null?(_0x5ece58=J(_0x4c232c))==null?void 0x0:_0x5ece58[_0x55ec3a(0x79)]:_0x17b352;if(_0x414869==null)return!0x1;let _0x20db5e=se({'cursorOffset':_0x414869,'documentData':_0x49d701['previousDocumentData'],'paragraphStartIndex':_0x3485e7==null?void 0x0:_0x3485e7[_0x55ec3a(0xd7)]});return _0x20db5e?X(_0x49d701['commandService'],_0x49d701[_0x55ec3a(0xd2)],_0x49d701[_0x55ec3a(0x8a)],_0x20db5e['nextDocumentData'],_0x20db5e[_0x55ec3a(0xa5)]):!0x1;}};function q(_0x2c43b1,_0x3b6d54){const _0x1648c6=_0x90b1ed;let _0x3aac76=_0x2c43b1[_0x1648c6(0xf4)](_0x2bbfcb),_0x16c22b=_0x3b6d54?_0x3aac76[_0x1648c6(0xec)](_0x3b6d54):_0x3aac76['getCurrentUnitOfType'](_0x333d99[_0x1648c6(0xb9)]);return _0x16c22b?{'commandService':_0x2c43b1[_0x1648c6(0xf4)](_0x170d8a),'model':_0x2c43b1[_0x1648c6(0xf4)](W),'previousDocumentData':_0x16c22b[_0x1648c6(0xd5)](),'unitId':_0x16c22b['getUnitId']()}:null;}function J(_0x55c760){const _0x2a3cd1=_0x90b1ed;var _0x3c4d0d;return(_0x3c4d0d=_0x55c760[_0x2a3cd1(0xf4)](_0xd6548f)['getTextRanges']())==null?void 0x0:_0x3c4d0d[0x0];}function Me(_0x5281e2){const _0x4ee214=_0x90b1ed;var _0x44eb11;let _0xc735e4=(_0x44eb11=_0x5281e2[_0x4ee214(0xf4)](_0x2bbfcb)[_0x4ee214(0xbc)](_0x333d99['UNIVER_DOC']))==null?void 0x0:_0x44eb11['getUnitId']();try{return _0x5281e2[_0x4ee214(0xf4)](_0xaf51af)[_0x4ee214(0xaf)](_0xc735e4);}catch{return null;}}function Ne(_0x545037){const _0x15928b=_0x90b1ed;var _0x35607c,_0xebd823,_0x31b1ea;let _0x2eda2b=J(_0x545037);if(!_0x2eda2b)return null;let _0x2e3d34=_0x545037[_0x15928b(0xf4)](_0x2bbfcb)['getCurrentUnitOfType'](_0x333d99['UNIVER_DOC']),_0x29244e=_0x2e3d34==null?void 0x0:_0x2e3d34[_0x15928b(0xb5)]();return _0x29244e?(_0x35607c=_0x51dd86['range'][_0x15928b(0x93)](_0x2eda2b,(_0xebd823=_0x29244e['paragraphs'])==null?[]:_0xebd823,(_0x31b1ea=_0x29244e['dataStream'])==null?'':_0x31b1ea)[0x0])==null?null:_0x35607c:null;}function Pe(_0x33941b,_0x16ca57){const _0x573e2b=_0x90b1ed;var _0x20defe,_0x437c12,_0x248225,_0x5a12f8,_0x34d205,_0x5de325,_0xf40731,_0x3c4d0e,_0x32d155,_0x18bdcb,_0x325579,_0x45cb21,_0x4c41ac,_0xc8df4f,_0xdef250,_0x291908,_0x1e914d,_0x3a2e54;let _0x523645=_0x104200['getInstance']();return[Y(_0x523645,[_0x573e2b(0xdc),_0x573e2b(0x85)],(_0x20defe=_0x33941b[_0x573e2b(0xdc)])==null?void 0x0:_0x20defe[_0x573e2b(0x85)],(_0x437c12=_0x16ca57[_0x573e2b(0xdc)])==null?void 0x0:_0x437c12['dataStream']),Y(_0x523645,[_0x573e2b(0xdc),_0x573e2b(0xe0)],(_0x248225=_0x33941b[_0x573e2b(0xdc)])==null?void 0x0:_0x248225[_0x573e2b(0xe0)],(_0x5a12f8=_0x16ca57[_0x573e2b(0xdc)])==null?void 0x0:_0x5a12f8[_0x573e2b(0xe0)]),Y(_0x523645,[_0x573e2b(0xdc),_0x573e2b(0xe1)],(_0x34d205=_0x33941b[_0x573e2b(0xdc)])==null?void 0x0:_0x34d205['sectionBreaks'],(_0x5de325=_0x16ca57[_0x573e2b(0xdc)])==null?void 0x0:_0x5de325[_0x573e2b(0xe1)]),Y(_0x523645,['body',_0x573e2b(0x80)],(_0xf40731=_0x33941b[_0x573e2b(0xdc)])==null?void 0x0:_0xf40731[_0x573e2b(0x80)],(_0x3c4d0e=_0x16ca57[_0x573e2b(0xdc)])==null?void 0x0:_0x3c4d0e['textRuns']),Y(_0x523645,[_0x573e2b(0xdc),'customBlocks'],(_0x32d155=_0x33941b[_0x573e2b(0xdc)])==null?void 0x0:_0x32d155[_0x573e2b(0xb2)],(_0x18bdcb=_0x16ca57['body'])==null?void 0x0:_0x18bdcb[_0x573e2b(0xb2)]),Y(_0x523645,['body',_0x573e2b(0xce)],(_0x325579=_0x33941b['body'])==null?void 0x0:_0x325579[_0x573e2b(0xce)],(_0x45cb21=_0x16ca57[_0x573e2b(0xdc)])==null?void 0x0:_0x45cb21[_0x573e2b(0xce)]),Y(_0x523645,['body',_0x573e2b(0xcc)],(_0x4c41ac=_0x33941b[_0x573e2b(0xdc)])==null?void 0x0:_0x4c41ac[_0x573e2b(0xcc)],(_0xc8df4f=_0x16ca57[_0x573e2b(0xdc)])==null?void 0x0:_0xc8df4f['customDecorations']),Y(_0x523645,[_0x573e2b(0xdc),'tables'],(_0xdef250=_0x33941b['body'])==null?void 0x0:_0xdef250[_0x573e2b(0x8b)],(_0x291908=_0x16ca57['body'])==null?void 0x0:_0x291908[_0x573e2b(0x8b)]),Y(_0x523645,[_0x573e2b(0xdc),_0x573e2b(0xee)],(_0x1e914d=_0x33941b[_0x573e2b(0xdc)])==null?void 0x0:_0x1e914d['blockRanges'],(_0x3a2e54=_0x16ca57[_0x573e2b(0xdc)])==null?void 0x0:_0x3a2e54[_0x573e2b(0xee)])][_0x573e2b(0x84)](Boolean)['reduce']((_0x50b0c7,_0x5e92ad)=>_0x104200[_0x573e2b(0xe6)](_0x50b0c7,_0x5e92ad),null);}function Y(_0x15ea1f,_0x2c8670,_0x1098b1,_0x54d820){const _0x1330dc=_0x90b1ed;return _0x2fe1ea['diffValue'](_0x1098b1,_0x54d820)?null:_0x15ea1f[_0x1330dc(0xde)](_0x2c8670,_0x1098b1,_0x54d820);}function X(_0x3ef515,_0x568fa0,_0x14ea64,_0x271602,_0x1f9a7d){const _0x12c7cb=_0x90b1ed;let _0x2c90bf=Pe(_0x14ea64,_0x271602);return _0x2c90bf?!!_0x3ef515[_0x12c7cb(0xf5)](_0x2ef7f4['id'],{'unitId':_0x568fa0,'actions':_0x2c90bf,'textRanges':[{'startOffset':_0x1f9a7d,'endOffset':_0x1f9a7d,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}function _0x34cc(_0x5cc710,_0x3b84d2){_0x5cc710=_0x5cc710-0x76;const _0x4a0e08=_0x4a0e();let _0x34ccc5=_0x4a0e08[_0x5cc710];return _0x34ccc5;}var Fe='@univerjs-pro/docs-code',Ie=_0x90b1ed(0xb0);const Le={};function Z(_0x123199,_0x2e51a8){return function(_0x4ad631,_0x20854d){_0x2e51a8(_0x4ad631,_0x20854d,_0x123199);};}function Re(_0x2b6b47,_0x397759,_0x3ca90a,_0x402ea2){const _0x3e8fe6=_0x90b1ed;var _0x397c1e=arguments['length'],_0x3ddb73=_0x397c1e<0x3?_0x397759:_0x402ea2===null?_0x402ea2=Object[_0x3e8fe6(0x98)](_0x397759,_0x3ca90a):_0x402ea2,_0xe3f69d;if(typeof Reflect==_0x3e8fe6(0xb8)&&typeof Reflect[_0x3e8fe6(0xad)]==_0x3e8fe6(0x95))_0x3ddb73=Reflect['decorate'](_0x2b6b47,_0x397759,_0x3ca90a,_0x402ea2);else{for(var _0x576d74=_0x2b6b47['length']-0x1;_0x576d74>=0x0;_0x576d74--)(_0xe3f69d=_0x2b6b47[_0x576d74])&&(_0x3ddb73=(_0x397c1e<0x3?_0xe3f69d(_0x3ddb73):_0x397c1e>0x3?_0xe3f69d(_0x397759,_0x3ca90a,_0x3ddb73):_0xe3f69d(_0x397759,_0x3ca90a))||_0x3ddb73);}return _0x397c1e>0x3&&_0x3ddb73&&Object[_0x3e8fe6(0xf3)](_0x397759,_0x3ca90a,_0x3ddb73),_0x3ddb73;}let Q=class extends _0x58c269{constructor(_0x24cb6e,_0x10159c){const _0x6eb239=_0x90b1ed;super(),this[_0x6eb239(0xe4)]=_0x24cb6e,this[_0x6eb239(0x7b)]=_0x10159c,this['_initResource']();}[_0x90b1ed(0xc5)](){const _0x3c5f9b=_0x90b1ed;this[_0x3c5f9b(0xa0)](this[_0x3c5f9b(0xe4)][_0x3c5f9b(0x90)]({'pluginName':S,'businesses':[_0x333d99['UNIVER_DOC']],'toJson':_0xc1bee2=>JSON[_0x3c5f9b(0xc7)](this[_0x3c5f9b(0x7b)][_0x3c5f9b(0x89)](_0xc1bee2)),'parseJson':_0x3dd93c=>E(JSON[_0x3c5f9b(0xdd)](_0x3dd93c)),'onLoad':(_0x4a5d3e,_0x2cb583)=>this['_docsCodeModel']['deserialize'](_0x4a5d3e,_0x2cb583),'onUnLoad':_0x5f2188=>this[_0x3c5f9b(0x7b)][_0x3c5f9b(0x7f)](_0x5f2188)}));}};Q=Re([Z(0x0,_0x5bcb88),Z(0x1,_0x1f43cb(W))],Q);let $=class extends _0x3c090e{constructor(_0x4b66fa=Le,_0x431bea,_0x929542,_0x364725){const _0x59a12a=_0x90b1ed;super(),this[_0x59a12a(0x7e)]=_0x4b66fa,this['_injector']=_0x431bea,this[_0x59a12a(0xa2)]=_0x929542,this[_0x59a12a(0xc1)]=_0x364725;let {..._0x1162cc}=_0x4a14fb({},Le,this[_0x59a12a(0x7e)]);this['_configService'][_0x59a12a(0xf6)](_0x59a12a(0xc6),_0x1162cc);}[_0x90b1ed(0xb7)](){const _0x3d59b2=_0x90b1ed;this['_injector'][_0x3d59b2(0xea)]([W]),this[_0x3d59b2(0x99)]['add']([Q]),this['_injector'][_0x3d59b2(0xf4)](W),this[_0x3d59b2(0x99)][_0x3d59b2(0xf4)](Q),[G,Oe,Ae,K,je,ke][_0x3d59b2(0xa3)](_0x323553=>this['disposeWithMe'](this[_0x3d59b2(0xa2)]['registerCommand'](_0x323553)));}};U($,_0x90b1ed(0xbf),S),U($,_0x90b1ed(0x8e),Fe),U($,_0x90b1ed(0xbe),Ie),U($,_0x90b1ed(0xda),_0x333d99[_0x90b1ed(0xb9)]),$=Re([_0x5955c6(_0x111d9d,_0x5e48ad),Z(0x1,_0x1f43cb(_0x5121c)),Z(0x2,_0x170d8a),Z(0x3,_0x28e32f)],$);export{w as DEFAULT_CODE_CONFIG,C as DOCS_CODE_BLOCK_TYPE,S as DOCS_CODE_PLUGIN,je as DocsCodeCancelEmptyParagraphCommand,ke as DocsCodeConsumeBoundaryDeleteCommand,K as DocsCodeExitCommand,Oe as DocsCodeInsertBelowCommand,G as DocsCodeInsertCommand,W as DocsCodeModel,Ae as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,se as buildCancelEmptyCodeParagraphActions,oe as buildExitCodeActions,re as buildInsertCodeActions,O as buildUpdateCodeActions,le as findCodeRangeAtOffset,ue as isCodeBoundaryDelete,T as normalizeDocsCodeConfig};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x175eea=_0x3c4d;(function(_0x18fb73,_0x588f92){const _0xe8fffa=_0x3c4d,_0x119c79=_0x18fb73();while(!![]){try{const _0xf4aad4=parseInt(_0xe8fffa(0x1bf))/0x1+parseInt(_0xe8fffa(0x20d))/0x2*(-parseInt(_0xe8fffa(0x22e))/0x3)+parseInt(_0xe8fffa(0x237))/0x4+parseInt(_0xe8fffa(0x1e5))/0x5*(parseInt(_0xe8fffa(0x20c))/0x6)+-parseInt(_0xe8fffa(0x1f1))/0x7+-parseInt(_0xe8fffa(0x231))/0x8*(-parseInt(_0xe8fffa(0x1c0))/0x9)+parseInt(_0xe8fffa(0x1d8))/0xa*(-parseInt(_0xe8fffa(0x1c9))/0xb);if(_0xf4aad4===_0x588f92)break;else _0x119c79['push'](_0x119c79['shift']());}catch(_0x4f06d6){_0x119c79['push'](_0x119c79['shift']());}}}(_0xe9a5,0xbb121));import{CommandType as _0xe42a2e,DataStreamTreeTokenType as _0x54b411,Disposable as _0x489005,ICommandService as _0x1a5331,IUniverInstanceService as _0x35ae8e,JSONX as _0x4ea5f1,Tools as _0x4bc8cb,UniverInstanceType as _0x4a4645,generateRandomId as _0x3d1984}from'@univerjs/core';import{FDocument as _0x4e29f8}from'@univerjs/docs-ui/facade';import{DocSelectionManagerService as _0x21e6ad,RichTextEditingMutation as _0x4d9d19}from'@univerjs/docs';import'@univerjs/docs-ui';import{Subject as _0x414f2b}from'rxjs';function _0xe9a5(){const _0x5ddad2=['nextDocumentData','symbol','getTextRanges','set','customDecorations','getText','blockRanges','BLOCK_END','removeCode','defineProperty','reduce','commandService','getCodes','documentData','syncExecuteCommand','PARAGRAPH','150rLKFcR','46012ZDlYBS','body','nextMetadata','_getBlockRange','length','replaceOp','entries','code','map','some','iterator','indexOf','dataStream','startOffset','startIndex','codes','findCodes','docs-code.command.exit','max','default','join','customBlocks','text','asObservable','docs-code.command.update','config','constructor','getRange','BLOCK_START','_resources','SECTION_BREAK','serialize','endsWith','96LpnXNP','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getConfig','11884528RFxReY','blockType','slice','getId','now','diffValue','3567952MWrCUr','string','unitId','monospace','_change$','from','paragraph','find','428717heRpGZ','9rwIIMm','setCodeConfig','deserialize','blockId','get','endOffset','spaceBelow','delete','dispose','10953745XGoFIq','call','prototype','Document\x20body\x20is\x20required','spaceAbove','endIndex','getUniverDocInstance','javascript','complete','getCurrentUnitOfType','customRanges','previousDocumentData','model','textStyle','exit','10JDRjmi','every','cancelEmptyParagraph','object','_setResource','filter','UNIVER_DOC','change$','getSnapshot','indentEnd','_runtime','getUnitId','paragraphStartIndex','76850KrrpEN','_injector','min','function','assign','paragraphs','toPrimitive','sort','forEach','sectionBreaks','getDocumentData','textRuns','4846051fqSQts','describe','tables','COMMAND','fromEntries','indentStart','docs-code.command.insert','cursorOffset','next','paragraphStyle','clear'];_0xe9a5=function(){return _0x5ddad2;};return _0xe9a5();}const p=_0x175eea(0x214),m={'language':_0x175eea(0x1d0),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function h(_0x23247d){return{...m,..._0x23247d};}function g(_0x64240c){const _0x1c0054=_0x175eea;var _0x5244e3;let _0x5e908f=(_0x5244e3=_0x64240c==null?void 0x0:_0x64240c['codes'])==null?{}:_0x5244e3;return{'codes':Object[_0x1c0054(0x1f5)](Object[_0x1c0054(0x213)](_0x5e908f)[_0x1c0054(0x215)](([_0x523d21,_0x3ed0c3])=>[_0x523d21,h(_0x3ed0c3)]))};}function _(_0x5b6207,_0x5d4290,_0x95ecb5){const _0x1c6ca7=_0x175eea;let _0x550ca0=g(_0x5b6207);return _0x550ca0['codes'][_0x5d4290]=h({..._0x550ca0[_0x1c6ca7(0x21c)][_0x5d4290],..._0x95ecb5}),_0x550ca0;}function v(_0x24ca37,_0x5b08a8){const _0x324334=_0x175eea;let _0x971bc1=g(_0x24ca37);return delete _0x971bc1[_0x324334(0x21c)][_0x5b08a8],_0x971bc1;}const y=_0x175eea(0x23a);function b(_0x1d07d4){const _0x3a4ecc=_0x175eea;var _0xfd9cd0,_0x4b731f,_0x5dcb7b;let _0x4a3171=E(_0x1d07d4['documentData']),_0x3c9e82=D(_0x4a3171),_0x115c45=ee(_0x1d07d4[_0x3a4ecc(0x21a)],_0x1d07d4[_0x3a4ecc(0x1c5)]),_0x546725=_0x115c45?(_0xfd9cd0=_0x3c9e82[_0x3a4ecc(0x202)])==null?void 0x0:_0xfd9cd0[_0x3a4ecc(0x1be)](_0x54bef5=>_0x54bef5[_0x3a4ecc(0x21b)]===_0x115c45['startOffset']&&_0x54bef5[_0x3a4ecc(0x1ce)]+0x1===_0x115c45[_0x3a4ecc(0x1c5)]):void 0x0,{startOffset:_0x5608ed,endOffset:_0x360034}=_0x546725?_0x115c45:se(_0x3c9e82,_0x1d07d4[_0x3a4ecc(0x21a)],_0x1d07d4[_0x3a4ecc(0x1c5)]),_0x9da838=le(_0x3c9e82,_0x5608ed,_0x360034),_0x55b49b=(_0x4b731f=_0x546725==null?void 0x0:_0x546725[_0x3a4ecc(0x1c3)])==null?_0x1d07d4[_0x3a4ecc(0x1c3)]:_0x4b731f,_0x557eb7=_(_0x1d07d4['metadata'],_0x55b49b,{...m,..._0x1d07d4[_0x3a4ecc(0x226)]});if(_0x546725)return _0x546725[_0x3a4ecc(0x232)]=p,x(_0x3c9e82,_0x5608ed,_0x360034),w(_0x3c9e82,_0x5608ed,_0x360034,_0x9da838),{'nextDocumentData':_0x4a3171,'nextMetadata':_0x557eb7,'cursorOffset':_0x5608ed+0x1};if(_0x5608ed===_0x360034){let _0x3082ae=''+_0x54b411[_0x3a4ecc(0x229)]+_0x54b411[_0x3a4ecc(0x20b)]+_0x54b411[_0x3a4ecc(0x203)];return j(_0x3c9e82,_0x5608ed,_0x3082ae,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':C(!0x0,!0x0,_0x9da838)}],'blockRanges':[{'blockId':_0x55b49b,'blockType':p,'startIndex':0x0,'endIndex':_0x3082ae[_0x3a4ecc(0x211)]-0x1}]}),{'nextDocumentData':_0x4a3171,'nextMetadata':_0x557eb7,'cursorOffset':_0x5608ed+0x1};}return j(_0x3c9e82,_0x360034,_0x54b411[_0x3a4ecc(0x203)]),j(_0x3c9e82,_0x5608ed,_0x54b411[_0x3a4ecc(0x229)]),w(_0x3c9e82,_0x5608ed,_0x360034+0x1,_0x9da838),_0x3c9e82[_0x3a4ecc(0x202)]=[...(_0x5dcb7b=_0x3c9e82[_0x3a4ecc(0x202)])==null?[]:_0x5dcb7b,{'blockId':_0x55b49b,'blockType':p,'startIndex':_0x5608ed,'endIndex':_0x360034+0x1}][_0x3a4ecc(0x1ec)]((_0x1c4692,_0x1625da)=>_0x1c4692[_0x3a4ecc(0x21b)]-_0x1625da[_0x3a4ecc(0x21b)]),{'nextDocumentData':_0x4a3171,'nextMetadata':_0x557eb7,'cursorOffset':_0x5608ed+0x1};}function x(_0x3e10cb,_0xbded8d,_0x45fef5){const _0x4c734d=_0x175eea;var _0x3f1abe;((_0x3f1abe=_0x3e10cb[_0x4c734d(0x1ea)])==null?[]:_0x3f1abe)['filter'](_0x3d19be=>_0x3d19be[_0x4c734d(0x21b)]>_0xbded8d&&_0x3d19be[_0x4c734d(0x21b)]<_0x45fef5)[_0x4c734d(0x1ed)](_0x50ec1e=>{const _0x527f1a=_0x4c734d;var _0x1119bf;let _0x34cf13={...(_0x1119bf=_0x50ec1e['paragraphStyle'])==null?{}:_0x1119bf};delete _0x34cf13[_0x527f1a(0x1cd)],delete _0x34cf13[_0x527f1a(0x1c6)],_0x50ec1e[_0x527f1a(0x1fa)]=_0x34cf13;});}function ee(_0x516a5b,_0xf7dd6b){const _0x3637db=_0x175eea;return _0x516a5b==null||_0xf7dd6b==null||_0x516a5b===_0xf7dd6b?null:{'startOffset':Math[_0x3637db(0x1e7)](_0x516a5b,_0xf7dd6b),'endOffset':Math[_0x3637db(0x21f)](_0x516a5b,_0xf7dd6b)};}function te(_0x3ffa19){const _0x422aad=_0x175eea;return{'nextDocumentData':E(_0x3ffa19[_0x422aad(0x209)]),'nextMetadata':_(_0x3ffa19['metadata'],_0x3ffa19[_0x422aad(0x1c3)],_0x3ffa19[_0x422aad(0x226)]),'cursorOffset':0x0};}function ne(_0x5ab0a7){const _0x396a27=_0x175eea;var _0x55ce30,_0x993903;let _0x4d3a69=E(_0x5ab0a7[_0x396a27(0x209)]),_0x471dca=D(_0x4d3a69),_0x40e211=S(_0x471dca,_0x5ab0a7['cursorOffset']);if(!_0x40e211)return null;let _0x4c382c=T(_0x471dca,_0x40e211),_0x58d9e8=_0x4c382c[_0x4c382c[_0x396a27(0x211)]-0x1];if(!_0x58d9e8||!oe(_0x471dca,_0x40e211,_0x58d9e8)||_0x5ab0a7[_0x396a27(0x1f8)]<_0x58d9e8['startIndex'])return null;let _0x31ae32=k(_0x471dca,_0x40e211,_0x58d9e8);if(_0x31ae32>=_0x40e211[_0x396a27(0x1ce)])return null;_0x471dca[_0x396a27(0x219)]=[_0x471dca[_0x396a27(0x219)]['slice'](0x0,_0x31ae32),_0x54b411['BLOCK_END'],_0x471dca[_0x396a27(0x219)][_0x396a27(0x233)](_0x31ae32,_0x40e211['endIndex']),_0x471dca[_0x396a27(0x219)][_0x396a27(0x233)](_0x40e211[_0x396a27(0x1ce)]+0x1)][_0x396a27(0x221)](''),z(_0x471dca[_0x396a27(0x1ea)],_0x31ae32,_0x40e211[_0x396a27(0x1ce)],0x1),z(_0x471dca['sectionBreaks'],_0x31ae32,_0x40e211[_0x396a27(0x1ce)],0x1),z(_0x471dca['customBlocks'],_0x31ae32,_0x40e211[_0x396a27(0x1ce)],0x1),pe(_0x471dca[_0x396a27(0x1f0)],_0x31ae32,_0x40e211[_0x396a27(0x1ce)],0x1),B(_0x471dca['tables'],_0x31ae32,_0x40e211['endIndex'],0x1),B(_0x471dca['customRanges'],_0x31ae32,_0x40e211[_0x396a27(0x1ce)],0x1),B(_0x471dca[_0x396a27(0x200)],_0x31ae32,_0x40e211[_0x396a27(0x1ce)],0x1),(_0x55ce30=_0x471dca[_0x396a27(0x202)])==null||_0x55ce30[_0x396a27(0x1ed)](_0x1328c9=>{const _0x4f211c=_0x396a27;_0x1328c9===_0x40e211||_0x1328c9[_0x4f211c(0x1c3)]===_0x40e211[_0x4f211c(0x1c3)]?_0x1328c9['endIndex']=_0x31ae32:_0x1328c9['startIndex']>=_0x31ae32&&_0x1328c9['startIndex']<_0x40e211['endIndex']&&(_0x1328c9[_0x4f211c(0x21b)]+=0x1,_0x1328c9[_0x4f211c(0x1ce)]+=0x1);});let _0x2bb420=T(_0x471dca,{..._0x40e211,'endIndex':_0x31ae32});_0x2bb420[_0x396a27(0x1ed)]((_0x3f0e97,_0x5f1085)=>{const _0x3ad358=_0x396a27;var _0x3dde53;_0x3f0e97['paragraphStyle']={...(_0x3dde53=_0x3f0e97[_0x3ad358(0x1fa)])==null?{}:_0x3dde53,...C(_0x5f1085===0x0,_0x5f1085===_0x2bb420[_0x3ad358(0x211)]-0x1)};});let _0x2294e1=(_0x993903=_0x471dca[_0x396a27(0x1ea)])==null?void 0x0:_0x993903['find'](_0x1daebb=>_0x1daebb[_0x396a27(0x21b)]===_0x31ae32+0x1);return _0x2294e1&&(_0x2294e1[_0x396a27(0x1fa)]=ae(_0x2294e1[_0x396a27(0x1fa)])),{'nextDocumentData':_0x4d3a69,'cursorOffset':_0x31ae32+0x1};}function re(_0x2805a1){const _0x54ee50=_0x175eea;let _0x3bdb94=E(_0x2805a1[_0x54ee50(0x209)]),_0x38e7d6=D(_0x3bdb94),_0x1e3af8=S(_0x38e7d6,_0x2805a1[_0x54ee50(0x1f8)]);return _0x1e3af8&&ie(_0x3bdb94,_0x38e7d6,_0x1e3af8,_0x2805a1[_0x54ee50(0x1f8)],_0x2805a1[_0x54ee50(0x1e4)])||null;}function ie(_0x30ff79,_0x44c29a,_0x5507e4,_0x5f4f56,_0x29e0bb){const _0x41982d=_0x175eea;let _0x24783e=de(_0x44c29a,_0x5507e4,_0x5f4f56,_0x29e0bb);if(!_0x24783e)return null;let _0x2ceba6=_0x24783e['endTokenOffset']-0x1;return M(_0x44c29a,_0x24783e[_0x41982d(0x1bd)][_0x41982d(0x21b)],_0x24783e['paragraph']['startIndex']+0x1),{'nextDocumentData':_0x30ff79,'cursorOffset':_0x2ceba6};}function S(_0x2cb6e2,_0x293ffb){const _0x417f1e=_0x175eea;var _0x30cc46;return(_0x30cc46=_0x2cb6e2[_0x417f1e(0x202)])==null?void 0x0:_0x30cc46['find'](_0x3a5daf=>{const _0x5d2f33=_0x417f1e;let _0x51339e=A(_0x2cb6e2,_0x3a5daf);return _0x3a5daf[_0x5d2f33(0x232)]==='code'&&_0x3a5daf['startIndex']<=_0x293ffb&&_0x293ffb<=_0x51339e+0x2;});}function C(_0x5177b1,_0x26b4cb,_0x113858=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x5177b1&&_0x113858?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':y,'fs':0xc}};}function w(_0xab2e73,_0x5c922f,_0x17bd57,_0x4d1c4d=!0x1){const _0xc9bcbd=_0x175eea;var _0x48b7d6;let _0x51deb2=((_0x48b7d6=_0xab2e73[_0xc9bcbd(0x1ea)])==null?[]:_0x48b7d6)[_0xc9bcbd(0x1dd)](_0x12f7f9=>_0x12f7f9[_0xc9bcbd(0x21b)]>_0x5c922f&&_0x12f7f9[_0xc9bcbd(0x21b)]<_0x17bd57);_0x51deb2['forEach']((_0x13793c,_0x468221)=>{const _0x10e231=_0xc9bcbd;var _0xda051b;_0x13793c[_0x10e231(0x1fa)]={...(_0xda051b=_0x13793c['paragraphStyle'])==null?{}:_0xda051b,...C(_0x468221===0x0,_0x468221===_0x51deb2[_0x10e231(0x211)]-0x1,_0x4d1c4d)};});}function ae(_0x559a06){const _0x517c2a=_0x175eea;var _0x184923,_0x27290f;let _0x4c84d4={..._0x559a06==null?{}:_0x559a06};return delete _0x4c84d4[_0x517c2a(0x1e1)],delete _0x4c84d4[_0x517c2a(0x1f6)],delete _0x4c84d4[_0x517c2a(0x1cd)],delete _0x4c84d4['spaceBelow'],((_0x184923=_0x4c84d4[_0x517c2a(0x1d6)])==null?void 0x0:_0x184923['ff'])===y&&((_0x27290f=_0x4c84d4[_0x517c2a(0x1d6)])==null?void 0x0:_0x27290f['fs'])===0xc&&delete _0x4c84d4[_0x517c2a(0x1d6)],_0x4c84d4;}function T(_0x41a137,_0x3b02bd){const _0x5585c7=_0x175eea;var _0x5b3e0c;let _0x1bf86a=A(_0x41a137,_0x3b02bd);return((_0x5b3e0c=_0x41a137[_0x5585c7(0x1ea)])==null?[]:_0x5b3e0c)[_0x5585c7(0x1dd)](_0x3f3c07=>_0x3f3c07['startIndex']>_0x3b02bd['startIndex']&&_0x3f3c07[_0x5585c7(0x21b)]<_0x1bf86a);}function oe(_0x5a0f3b,_0x5c8f30,_0x40708e){const _0x55783c=_0x175eea;let _0x373fb4=k(_0x5a0f3b,_0x5c8f30,_0x40708e),_0x327f62=_0x5a0f3b[_0x55783c(0x219)][_0x55783c(0x233)](_0x373fb4,_0x40708e['startIndex']);return Array[_0x55783c(0x1bc)](_0x327f62)[_0x55783c(0x1d9)](_0x4d2650=>_0x4d2650===_0x54b411[_0x55783c(0x229)]||_0x4d2650===_0x54b411[_0x55783c(0x203)]);}function E(_0x314e6c){return _0x4bc8cb['deepClone'](_0x314e6c);}function D(_0x40b86a){const _0x17b3f2=_0x175eea;if(!_0x40b86a['body'])throw Error(_0x17b3f2(0x1cc));return _0x40b86a[_0x17b3f2(0x20e)];}function se(_0x282df9,_0x1cd6c2,_0x1bab55){const _0x373bbc=_0x175eea;if(_0x1cd6c2==null||_0x1bab55==null){let _0x2ccb93=ce(_0x282df9);return{'startOffset':_0x2ccb93,'endOffset':_0x2ccb93};}let _0x31c329=Math[_0x373bbc(0x1e7)](_0x1cd6c2,_0x1bab55),_0x2bb7cf=Math[_0x373bbc(0x21f)](_0x1cd6c2,_0x1bab55);return _0x31c329===_0x2bb7cf?{'startOffset':_0x31c329,'endOffset':_0x31c329}:ue(_0x282df9,_0x31c329,_0x2bb7cf);}function ce(_0x2e8921){const _0x467260=_0x175eea;return _0x2e8921[_0x467260(0x219)][_0x467260(0x22d)](_0x54b411[_0x467260(0x22b)])?Math['max'](0x0,_0x2e8921[_0x467260(0x219)][_0x467260(0x211)]-0x1):_0x2e8921[_0x467260(0x219)][_0x467260(0x211)];}function le(_0x11e248,_0x54cec9,_0x500110){const _0x48c31a=_0x175eea;var _0x576a98;let _0x547533=Math[_0x48c31a(0x1e7)](_0x54cec9,_0x500110),_0x22bc42=Math[_0x48c31a(0x21f)](_0x54cec9,_0x500110);return!!((_0x576a98=_0x11e248[_0x48c31a(0x1f3)])!=null&&_0x576a98['some'](_0x3745a2=>_0x547533>_0x3745a2[_0x48c31a(0x21b)]&&_0x547533<_0x3745a2[_0x48c31a(0x1ce)]||_0x22bc42>_0x3745a2[_0x48c31a(0x21b)]&&_0x22bc42<_0x3745a2[_0x48c31a(0x1ce)]||_0x547533<=_0x3745a2[_0x48c31a(0x21b)]&&_0x22bc42>=_0x3745a2[_0x48c31a(0x1ce)]));}function ue(_0x464ded,_0x43dfb6,_0x26db14){const _0x3942a3=_0x175eea;var _0x4dc8c2,_0x197ce6;let _0x3cfee0=[...(_0x4dc8c2=_0x464ded[_0x3942a3(0x1ea)])==null?[]:_0x4dc8c2][_0x3942a3(0x1ec)]((_0x2259f5,_0x2f2d77)=>_0x2259f5['startIndex']-_0x2f2d77['startIndex']),_0x26b219=_0x3cfee0[_0x3942a3(0x1be)]((_0x2bd679,_0x11c03c)=>(_0x11c03c===0x0?0x0:_0x3cfee0[_0x11c03c-0x1][_0x3942a3(0x21b)]+0x1)<=_0x43dfb6&&_0x43dfb6<=_0x2bd679['startIndex']),_0x564cdc=(_0x197ce6=_0x3cfee0[_0x3942a3(0x1be)](_0x36bc23=>_0x36bc23[_0x3942a3(0x21b)]>=_0x26db14-0x1))==null?_0x3cfee0[_0x3cfee0[_0x3942a3(0x211)]-0x1]:_0x197ce6;return{'startOffset':_0x26b219?O(_0x3cfee0,_0x26b219):_0x43dfb6,'endOffset':_0x564cdc?_0x564cdc[_0x3942a3(0x21b)]+0x1:_0x26db14};}function O(_0x4a4997,_0x41800d){const _0x6a2f6a=_0x175eea;let _0x3585eb=_0x4a4997[_0x6a2f6a(0x218)](_0x41800d);return _0x3585eb>0x0?_0x4a4997[_0x3585eb-0x1][_0x6a2f6a(0x21b)]+0x1:0x0;}function k(_0x37a563,_0x3a2b8f,_0xd514ed){const _0x28b8eb=_0x175eea;var _0x52977e;return Math['max'](O((_0x52977e=_0x37a563[_0x28b8eb(0x1ea)])==null?[]:_0x52977e,_0xd514ed),_0x3a2b8f['startIndex']+0x1);}function A(_0x28b971,_0x469eea){const _0x4cc935=_0x175eea;return _0x28b971[_0x4cc935(0x219)][_0x469eea[_0x4cc935(0x1ce)]]===_0x54b411['BLOCK_END']?_0x469eea['endIndex']:_0x28b971[_0x4cc935(0x219)][_0x469eea[_0x4cc935(0x1ce)]+0x1]===_0x54b411[_0x4cc935(0x203)]?_0x469eea[_0x4cc935(0x1ce)]+0x1:_0x469eea['endIndex'];}function de(_0x3c1252,_0x221fab,_0x4de482,_0x5e04bd){const _0x391f57=_0x175eea;var _0x55d294,_0x3a2c18;let _0x114a97=A(_0x3c1252,_0x221fab),_0x522192=((_0x55d294=_0x3c1252[_0x391f57(0x1ea)])==null?[]:_0x55d294)[_0x391f57(0x1be)](_0x456c4c=>_0x456c4c['startIndex']===_0x114a97+0x1);if(!_0x522192||_0x5e04bd!=null&&_0x522192[_0x391f57(0x21b)]!==_0x5e04bd||_0x4de482<_0x114a97||_0x4de482>_0x522192['startIndex']+0x1||_0x3c1252['dataStream'][_0x522192[_0x391f57(0x21b)]]!==_0x54b411['PARAGRAPH'])return null;let _0xf9ea6d=O((_0x3a2c18=_0x3c1252[_0x391f57(0x1ea)])==null?[]:_0x3a2c18,_0x522192),_0x5a5931=_0x3c1252[_0x391f57(0x219)][_0x391f57(0x233)](_0xf9ea6d,_0x522192[_0x391f57(0x21b)]);return Array[_0x391f57(0x1bc)](_0x5a5931)['every'](_0x53ea29=>_0x53ea29===_0x54b411[_0x391f57(0x203)])?{'paragraph':_0x522192,'endTokenOffset':_0x114a97}:null;}function j(_0x5b02f3,_0x5b83d9,_0x33fd5f,_0x3ef81b={}){const _0x1800b5=_0x175eea;var _0x2d5f67,_0x3b1b27;if(_0x33fd5f){if(_0x5b02f3['dataStream']=''+_0x5b02f3[_0x1800b5(0x219)][_0x1800b5(0x233)](0x0,_0x5b83d9)+_0x33fd5f+_0x5b02f3[_0x1800b5(0x219)]['slice'](_0x5b83d9),N(_0x5b02f3,_0x5b83d9,_0x33fd5f[_0x1800b5(0x211)]),(_0x2d5f67=_0x3ef81b[_0x1800b5(0x1ea)])!=null&&_0x2d5f67['length']){var _0xc51e04;_0x5b02f3['paragraphs']=[...(_0xc51e04=_0x5b02f3[_0x1800b5(0x1ea)])==null?[]:_0xc51e04,..._0x3ef81b[_0x1800b5(0x1ea)][_0x1800b5(0x215)](_0x438c66=>({..._0x438c66,'startIndex':_0x438c66[_0x1800b5(0x21b)]+_0x5b83d9}))][_0x1800b5(0x1ec)]((_0x760aa6,_0x3afc02)=>_0x760aa6[_0x1800b5(0x21b)]-_0x3afc02[_0x1800b5(0x21b)]);}if((_0x3b1b27=_0x3ef81b['blockRanges'])!=null&&_0x3b1b27['length']){var _0x5b06bd;_0x5b02f3[_0x1800b5(0x202)]=[...(_0x5b06bd=_0x5b02f3[_0x1800b5(0x202)])==null?[]:_0x5b06bd,..._0x3ef81b[_0x1800b5(0x202)]['map'](_0x2ffff5=>({..._0x2ffff5,'startIndex':_0x2ffff5['startIndex']+_0x5b83d9,'endIndex':_0x2ffff5['endIndex']+_0x5b83d9}))][_0x1800b5(0x1ec)]((_0x2323f8,_0x3ec8fa)=>_0x2323f8[_0x1800b5(0x21b)]-_0x3ec8fa['startIndex']);}}}function _0x3c4d(_0xc3446c,_0x3fd071){_0xc3446c=_0xc3446c-0x1bb;const _0xe9a5fe=_0xe9a5();let _0x3c4d3d=_0xe9a5fe[_0xc3446c];return _0x3c4d3d;}function M(_0x2853ed,_0x2fc112,_0x2552cb){const _0x5c93b7=_0x175eea;let _0xa55cae=_0x2552cb-_0x2fc112;_0x2853ed[_0x5c93b7(0x219)]=''+_0x2853ed[_0x5c93b7(0x219)][_0x5c93b7(0x233)](0x0,_0x2fc112)+_0x2853ed['dataStream'][_0x5c93b7(0x233)](_0x2552cb),P(_0x2853ed,_0x2fc112,_0xa55cae);}function N(_0x488202,_0x333ff3,_0x69bf8d){const _0x377be0=_0x175eea;_0x488202[_0x377be0(0x1ea)]=F(_0x488202['paragraphs'],_0x333ff3,_0x69bf8d),_0x488202['sectionBreaks']=F(_0x488202[_0x377be0(0x1ee)],_0x333ff3,_0x69bf8d),_0x488202['customBlocks']=F(_0x488202[_0x377be0(0x222)],_0x333ff3,_0x69bf8d),_0x488202[_0x377be0(0x1f0)]=fe(_0x488202[_0x377be0(0x1f0)],_0x333ff3,_0x69bf8d),_0x488202[_0x377be0(0x1f3)]=L(_0x488202['tables'],_0x333ff3,_0x69bf8d),_0x488202[_0x377be0(0x1d3)]=L(_0x488202[_0x377be0(0x1d3)],_0x333ff3,_0x69bf8d),_0x488202['customDecorations']=L(_0x488202[_0x377be0(0x200)],_0x333ff3,_0x69bf8d),_0x488202[_0x377be0(0x202)]=L(_0x488202[_0x377be0(0x202)],_0x333ff3,_0x69bf8d);}function P(_0x4d03c0,_0x5b7fe0,_0x4e46bc){const _0x384880=_0x175eea;var _0x311e9b,_0x3ff041;_0x4d03c0[_0x384880(0x1ea)]=I(_0x4d03c0['paragraphs'],_0x5b7fe0,_0x4e46bc),_0x4d03c0[_0x384880(0x1ee)]=I(_0x4d03c0[_0x384880(0x1ee)],_0x5b7fe0,_0x4e46bc),_0x4d03c0['customBlocks']=I(_0x4d03c0[_0x384880(0x222)],_0x5b7fe0,_0x4e46bc),_0x4d03c0[_0x384880(0x1f0)]=(_0x311e9b=R((_0x3ff041=_0x4d03c0[_0x384880(0x1f0)])==null?void 0x0:_0x3ff041[_0x384880(0x215)](_0x2dfab2=>({..._0x2dfab2,'startIndex':_0x2dfab2['st'],'endIndex':_0x2dfab2['ed']})),_0x5b7fe0,_0x4e46bc))==null?void 0x0:_0x311e9b[_0x384880(0x215)](_0x2d4a7e=>{let {startIndex:_0x49daa1,endIndex:_0x263184,..._0x3a0c76}=_0x2d4a7e;return{..._0x3a0c76,'st':_0x49daa1,'ed':_0x263184};}),_0x4d03c0[_0x384880(0x1f3)]=R(_0x4d03c0['tables'],_0x5b7fe0,_0x4e46bc),_0x4d03c0[_0x384880(0x1d3)]=R(_0x4d03c0[_0x384880(0x1d3)],_0x5b7fe0,_0x4e46bc),_0x4d03c0['customDecorations']=R(_0x4d03c0[_0x384880(0x200)],_0x5b7fe0,_0x4e46bc),_0x4d03c0[_0x384880(0x202)]=R(_0x4d03c0[_0x384880(0x202)],_0x5b7fe0,_0x4e46bc);}function F(_0x31a370,_0xfe6d09,_0x2bf832){const _0x4cb451=_0x175eea;return _0x31a370==null?void 0x0:_0x31a370[_0x4cb451(0x215)](_0x4caaf7=>_0x4caaf7['startIndex']>=_0xfe6d09?{..._0x4caaf7,'startIndex':_0x4caaf7[_0x4cb451(0x21b)]+_0x2bf832}:_0x4caaf7);}function I(_0x53c314,_0x4eba20,_0x3fac13){const _0x3de2e7=_0x175eea;let _0x114039=_0x4eba20+_0x3fac13;return _0x53c314==null?void 0x0:_0x53c314[_0x3de2e7(0x215)](_0x2db93e=>_0x2db93e[_0x3de2e7(0x21b)]>=_0x4eba20&&_0x2db93e[_0x3de2e7(0x21b)]<_0x114039?null:_0x2db93e['startIndex']>=_0x114039?{..._0x2db93e,'startIndex':_0x2db93e['startIndex']-_0x3fac13}:_0x2db93e)[_0x3de2e7(0x1dd)](_0x3a6beb=>_0x3a6beb!=null);}function fe(_0x49064d,_0x52d1d6,_0x34c76a){const _0x6f8879=_0x175eea;return _0x49064d==null?void 0x0:_0x49064d[_0x6f8879(0x215)](_0x5ccf7d=>_0x5ccf7d['st']>=_0x52d1d6?{..._0x5ccf7d,'st':_0x5ccf7d['st']+_0x34c76a,'ed':_0x5ccf7d['ed']+_0x34c76a}:_0x5ccf7d['ed']>_0x52d1d6?{..._0x5ccf7d,'ed':_0x5ccf7d['ed']+_0x34c76a}:_0x5ccf7d);}function L(_0x40a071,_0x4572b3,_0x5d3a13){const _0x5e9363=_0x175eea;return _0x40a071==null?void 0x0:_0x40a071[_0x5e9363(0x215)](_0x6df042=>_0x6df042['startIndex']>=_0x4572b3?{..._0x6df042,'startIndex':_0x6df042[_0x5e9363(0x21b)]+_0x5d3a13,'endIndex':_0x6df042['endIndex']+_0x5d3a13}:_0x6df042['endIndex']>=_0x4572b3?{..._0x6df042,'endIndex':_0x6df042[_0x5e9363(0x1ce)]+_0x5d3a13}:_0x6df042);}function R(_0x37a23d,_0x44d70b,_0x180653){const _0x4fd8f8=_0x175eea;let _0x4fa4b4=_0x44d70b+_0x180653;return _0x37a23d==null?void 0x0:_0x37a23d[_0x4fd8f8(0x215)](_0x517132=>_0x517132['startIndex']>=_0x44d70b&&_0x517132[_0x4fd8f8(0x1ce)]<_0x4fa4b4?null:_0x517132[_0x4fd8f8(0x21b)]>=_0x4fa4b4?{..._0x517132,'startIndex':_0x517132[_0x4fd8f8(0x21b)]-_0x180653,'endIndex':_0x517132[_0x4fd8f8(0x1ce)]-_0x180653}:_0x517132['endIndex']>=_0x44d70b?{..._0x517132,'startIndex':_0x517132['startIndex']<_0x44d70b?_0x517132[_0x4fd8f8(0x21b)]:_0x44d70b,'endIndex':Math['max'](_0x44d70b,_0x517132[_0x4fd8f8(0x1ce)]-_0x180653)}:_0x517132)['filter'](_0x4d286e=>_0x4d286e!=null);}function z(_0x34e375,_0x1cd218,_0x355a5c,_0x5a2c62){_0x34e375==null||_0x34e375['forEach'](_0x2b9112=>{const _0x427594=_0x3c4d;_0x2b9112[_0x427594(0x21b)]>=_0x1cd218&&_0x2b9112[_0x427594(0x21b)]<_0x355a5c&&(_0x2b9112['startIndex']+=_0x5a2c62);});}function pe(_0x15e574,_0x19075a,_0x52aeba,_0x1d7b43){const _0x43b91b=_0x175eea;_0x15e574==null||_0x15e574[_0x43b91b(0x1ed)](_0x519e7a=>{_0x519e7a['st']>=_0x19075a&&_0x519e7a['st']<_0x52aeba?(_0x519e7a['st']+=_0x1d7b43,_0x519e7a['ed']+=_0x1d7b43):_0x519e7a['ed']>_0x19075a&&_0x519e7a['ed']<_0x52aeba&&(_0x519e7a['ed']+=_0x1d7b43);});}function B(_0x82807d,_0x22c510,_0x40e3d8,_0x39014f){const _0x412e5f=_0x175eea;_0x82807d==null||_0x82807d[_0x412e5f(0x1ed)](_0x45d0e9=>{const _0x11b4c7=_0x412e5f;_0x45d0e9[_0x11b4c7(0x21b)]>=_0x22c510&&_0x45d0e9[_0x11b4c7(0x21b)]<_0x40e3d8?(_0x45d0e9[_0x11b4c7(0x21b)]+=_0x39014f,_0x45d0e9[_0x11b4c7(0x1ce)]+=_0x39014f):_0x45d0e9[_0x11b4c7(0x1ce)]>_0x22c510&&_0x45d0e9[_0x11b4c7(0x1ce)]<_0x40e3d8&&(_0x45d0e9[_0x11b4c7(0x1ce)]+=_0x39014f);});}function V(_0x10628b){'@babel/helpers - typeof';const _0x58b41e=_0x175eea;return V=typeof Symbol==_0x58b41e(0x1e8)&&typeof Symbol[_0x58b41e(0x217)]==_0x58b41e(0x1fd)?function(_0x74b651){return typeof _0x74b651;}:function(_0x5a7ff2){const _0x5e0c47=_0x58b41e;return _0x5a7ff2&&typeof Symbol=='function'&&_0x5a7ff2[_0x5e0c47(0x227)]===Symbol&&_0x5a7ff2!==Symbol[_0x5e0c47(0x1cb)]?_0x5e0c47(0x1fd):typeof _0x5a7ff2;},V(_0x10628b);}function me(_0x3e3df7,_0x171b67){const _0x521e43=_0x175eea;if(V(_0x3e3df7)!=_0x521e43(0x1db)||!_0x3e3df7)return _0x3e3df7;var _0x30a77d=_0x3e3df7[Symbol[_0x521e43(0x1eb)]];if(_0x30a77d!==void 0x0){var _0x5d861b=_0x30a77d[_0x521e43(0x1ca)](_0x3e3df7,_0x171b67||_0x521e43(0x220));if(V(_0x5d861b)!=_0x521e43(0x1db))return _0x5d861b;throw TypeError(_0x521e43(0x22f));}return(_0x171b67==='string'?String:Number)(_0x3e3df7);}function he(_0x27424e){const _0x14a817=_0x175eea;var _0x2b418a=me(_0x27424e,_0x14a817(0x238));return V(_0x2b418a)==_0x14a817(0x1fd)?_0x2b418a:_0x2b418a+'';}function H(_0x76a3e0,_0x57d32b,_0x2dc4e8){const _0x17a863=_0x175eea;return(_0x57d32b=he(_0x57d32b))in _0x76a3e0?Object[_0x17a863(0x205)](_0x76a3e0,_0x57d32b,{'value':_0x2dc4e8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x76a3e0[_0x57d32b]=_0x2dc4e8,_0x76a3e0;}var U=class extends _0x489005{constructor(..._0x40eb99){const _0x6f1a20=_0x175eea;super(..._0x40eb99),H(this,'_resources',new Map()),H(this,_0x6f1a20(0x1bb),new _0x414f2b()),H(this,_0x6f1a20(0x1df),this[_0x6f1a20(0x1bb)][_0x6f1a20(0x224)]());}['getCodeConfig'](_0x1ca624,_0x57e66e){const _0x145e13=_0x175eea;return g(this[_0x145e13(0x22a)]['get'](_0x1ca624))[_0x145e13(0x21c)][_0x57e66e];}[_0x175eea(0x1c1)](_0x1eef2e,_0x278a17,_0x5b2138){const _0x27c1a2=_0x175eea;this[_0x27c1a2(0x1dc)](_0x1eef2e,_0x278a17,_(this[_0x27c1a2(0x22a)][_0x27c1a2(0x1c4)](_0x1eef2e),_0x278a17,_0x5b2138));}[_0x175eea(0x204)](_0x4bfb6c,_0xf9adcc){const _0x19f903=_0x175eea;this[_0x19f903(0x1dc)](_0x4bfb6c,_0xf9adcc,v(this[_0x19f903(0x22a)]['get'](_0x4bfb6c),_0xf9adcc));}[_0x175eea(0x22c)](_0x2a1657){const _0x495c2e=_0x175eea;return g(this['_resources'][_0x495c2e(0x1c4)](_0x2a1657));}['deserialize'](_0xf06e2d,_0x29af24){const _0x2ba3ef=_0x175eea;this[_0x2ba3ef(0x22a)]['set'](_0xf06e2d,g(_0x29af24)),this[_0x2ba3ef(0x1bb)]['next']({'unitId':_0xf06e2d});}['removeUnit'](_0x4b6ac3){const _0x39b1d4=_0x175eea;this[_0x39b1d4(0x22a)][_0x39b1d4(0x1c7)](_0x4b6ac3),this['_change$'][_0x39b1d4(0x1f9)]({'unitId':_0x4b6ac3});}[_0x175eea(0x1c8)](){const _0x21d486=_0x175eea;super[_0x21d486(0x1c8)](),this[_0x21d486(0x22a)][_0x21d486(0x1fb)](),this[_0x21d486(0x1bb)][_0x21d486(0x1d1)]();}[_0x175eea(0x1dc)](_0x54ebdf,_0x4393b9,_0x4468f9){const _0x4467ef=_0x175eea;this[_0x4467ef(0x22a)][_0x4467ef(0x1ff)](_0x54ebdf,_0x4468f9),this[_0x4467ef(0x1bb)][_0x4467ef(0x1f9)]({'unitId':_0x54ebdf,'blockId':_0x4393b9});}};_0xe42a2e[_0x175eea(0x1f4)],_0xe42a2e[_0x175eea(0x1f4)];const ge={'id':_0x175eea(0x1f7),'type':_0xe42a2e['COMMAND'],'handler':(_0x344fbe,_0x4afbf9)=>{const _0x4d38c3=_0x175eea;var _0x494583,_0x1294b4,_0xb6e7ef;let _0x218b73=K(_0x344fbe,_0x4afbf9==null?void 0x0:_0x4afbf9[_0x4d38c3(0x239)]);if(!_0x218b73)return!0x1;let _0x13b5ea=q(_0x344fbe),_0x16a86a=b({'blockId':(_0x494583=_0x4afbf9==null?void 0x0:_0x4afbf9[_0x4d38c3(0x1c3)])==null?_0x3d1984(0x6):_0x494583,'config':_0x4afbf9==null?void 0x0:_0x4afbf9[_0x4d38c3(0x226)],'documentData':_0x218b73[_0x4d38c3(0x1d4)],'endOffset':(_0x1294b4=_0x4afbf9==null?void 0x0:_0x4afbf9[_0x4d38c3(0x1c5)])==null?_0x13b5ea==null?void 0x0:_0x13b5ea[_0x4d38c3(0x1c5)]:_0x1294b4,'metadata':_0x218b73[_0x4d38c3(0x1d5)][_0x4d38c3(0x22c)](_0x218b73[_0x4d38c3(0x239)]),'startOffset':(_0xb6e7ef=_0x4afbf9==null?void 0x0:_0x4afbf9[_0x4d38c3(0x21a)])==null?_0x13b5ea==null?void 0x0:_0x13b5ea[_0x4d38c3(0x21a)]:_0xb6e7ef}),_0x10e75b=Y(_0x218b73[_0x4d38c3(0x207)],_0x218b73[_0x4d38c3(0x239)],_0x218b73[_0x4d38c3(0x1d4)],_0x16a86a[_0x4d38c3(0x1fc)],_0x16a86a['cursorOffset']);return _0x10e75b&&_0x16a86a[_0x4d38c3(0x20f)]&&_0x218b73[_0x4d38c3(0x1d5)][_0x4d38c3(0x1c2)](_0x218b73[_0x4d38c3(0x239)],_0x16a86a[_0x4d38c3(0x20f)]),_0x10e75b;}},_e={'id':_0x175eea(0x225),'type':_0xe42a2e[_0x175eea(0x1f4)],'handler':(_0xf1edb1,_0x122fdb)=>{const _0x52d6d6=_0x175eea;if(!_0x122fdb)return!0x1;let _0x50ac8c=K(_0xf1edb1,_0x122fdb['unitId']);if(!_0x50ac8c)return!0x1;let _0x13aefc=te({'blockId':_0x122fdb[_0x52d6d6(0x1c3)],'config':_0x122fdb[_0x52d6d6(0x226)],'documentData':_0x50ac8c[_0x52d6d6(0x1d4)],'metadata':_0x50ac8c[_0x52d6d6(0x1d5)][_0x52d6d6(0x22c)](_0x50ac8c[_0x52d6d6(0x239)])});return _0x13aefc[_0x52d6d6(0x20f)]&&_0x50ac8c['model'][_0x52d6d6(0x1c2)](_0x50ac8c['unitId'],_0x13aefc[_0x52d6d6(0x20f)]),!0x0;}},W={'id':_0x175eea(0x21e),'type':_0xe42a2e[_0x175eea(0x1f4)],'handler':(_0x5eb798,_0x50c97a)=>{const _0x5be55b=_0x175eea;var _0xb8a943,_0x5e7d8f;let _0x1368c5=K(_0x5eb798,_0x50c97a==null?void 0x0:_0x50c97a[_0x5be55b(0x239)]);if(!_0x1368c5)return!0x1;let _0x5d95ba=(_0xb8a943=_0x50c97a==null?void 0x0:_0x50c97a[_0x5be55b(0x1f8)])==null?(_0x5e7d8f=q(_0x5eb798))==null?void 0x0:_0x5e7d8f[_0x5be55b(0x21a)]:_0xb8a943;if(_0x5d95ba==null)return!0x1;let _0x4e2edf=ne({'cursorOffset':_0x5d95ba,'documentData':_0x1368c5[_0x5be55b(0x1d4)]});return _0x4e2edf?Y(_0x1368c5[_0x5be55b(0x207)],_0x1368c5[_0x5be55b(0x239)],_0x1368c5[_0x5be55b(0x1d4)],_0x4e2edf['nextDocumentData'],_0x4e2edf[_0x5be55b(0x1f8)]):!0x1;}},G={'id':'docs-code.command.cancel-empty-paragraph','type':_0xe42a2e['COMMAND'],'handler':(_0x2eb32e,_0x5bd7b3)=>{const _0x569f40=_0x175eea;var _0x4ad5db,_0x1317b0;let _0x196d4c=K(_0x2eb32e,_0x5bd7b3==null?void 0x0:_0x5bd7b3[_0x569f40(0x239)]);if(!_0x196d4c)return!0x1;let _0x36cd0b=(_0x4ad5db=_0x5bd7b3==null?void 0x0:_0x5bd7b3[_0x569f40(0x1f8)])==null?(_0x1317b0=q(_0x2eb32e))==null?void 0x0:_0x1317b0[_0x569f40(0x21a)]:_0x4ad5db;if(_0x36cd0b==null)return!0x1;let _0x2b1672=re({'cursorOffset':_0x36cd0b,'documentData':_0x196d4c['previousDocumentData'],'paragraphStartIndex':_0x5bd7b3==null?void 0x0:_0x5bd7b3[_0x569f40(0x1e4)]});return _0x2b1672?Y(_0x196d4c['commandService'],_0x196d4c['unitId'],_0x196d4c[_0x569f40(0x1d4)],_0x2b1672['nextDocumentData'],_0x2b1672[_0x569f40(0x1f8)]):!0x1;}};function K(_0x2e82ec,_0x4cc26b){const _0x53a040=_0x175eea;let _0x411b76=_0x2e82ec[_0x53a040(0x1c4)](_0x35ae8e),_0x2c9220=_0x4cc26b?_0x411b76[_0x53a040(0x1cf)](_0x4cc26b):_0x411b76[_0x53a040(0x1d2)](_0x4a4645[_0x53a040(0x1de)]);return _0x2c9220?{'commandService':_0x2e82ec[_0x53a040(0x1c4)](_0x1a5331),'model':_0x2e82ec['get'](U),'previousDocumentData':_0x2c9220[_0x53a040(0x1e0)](),'unitId':_0x2c9220[_0x53a040(0x1e3)]()}:null;}function q(_0x2b67cd){const _0x4de2ce=_0x175eea;var _0x11c30c;return(_0x11c30c=_0x2b67cd[_0x4de2ce(0x1c4)](_0x21e6ad)[_0x4de2ce(0x1fe)]())==null?void 0x0:_0x11c30c[0x0];}function ve(_0x2ecdbf,_0x57fdb6){const _0x213cae=_0x175eea;var _0x19aeed,_0x58631c,_0x48dd79,_0x5d5415,_0x3762d7,_0x2e33fe,_0x444874,_0x5000db,_0x33f48a,_0x17f98e,_0x375c70,_0x3b368b,_0x168d50,_0x1140fc,_0x22e5b3,_0x1afd00,_0x1ffeea,_0x1ead0a;let _0x5ccb9a=_0x4ea5f1['getInstance']();return[J(_0x5ccb9a,[_0x213cae(0x20e),'dataStream'],(_0x19aeed=_0x2ecdbf[_0x213cae(0x20e)])==null?void 0x0:_0x19aeed[_0x213cae(0x219)],(_0x58631c=_0x57fdb6[_0x213cae(0x20e)])==null?void 0x0:_0x58631c[_0x213cae(0x219)]),J(_0x5ccb9a,[_0x213cae(0x20e),'paragraphs'],(_0x48dd79=_0x2ecdbf[_0x213cae(0x20e)])==null?void 0x0:_0x48dd79[_0x213cae(0x1ea)],(_0x5d5415=_0x57fdb6['body'])==null?void 0x0:_0x5d5415['paragraphs']),J(_0x5ccb9a,[_0x213cae(0x20e),_0x213cae(0x1ee)],(_0x3762d7=_0x2ecdbf['body'])==null?void 0x0:_0x3762d7[_0x213cae(0x1ee)],(_0x2e33fe=_0x57fdb6['body'])==null?void 0x0:_0x2e33fe[_0x213cae(0x1ee)]),J(_0x5ccb9a,[_0x213cae(0x20e),_0x213cae(0x1f0)],(_0x444874=_0x2ecdbf['body'])==null?void 0x0:_0x444874[_0x213cae(0x1f0)],(_0x5000db=_0x57fdb6[_0x213cae(0x20e)])==null?void 0x0:_0x5000db[_0x213cae(0x1f0)]),J(_0x5ccb9a,['body',_0x213cae(0x222)],(_0x33f48a=_0x2ecdbf[_0x213cae(0x20e)])==null?void 0x0:_0x33f48a[_0x213cae(0x222)],(_0x17f98e=_0x57fdb6[_0x213cae(0x20e)])==null?void 0x0:_0x17f98e[_0x213cae(0x222)]),J(_0x5ccb9a,[_0x213cae(0x20e),_0x213cae(0x1d3)],(_0x375c70=_0x2ecdbf[_0x213cae(0x20e)])==null?void 0x0:_0x375c70[_0x213cae(0x1d3)],(_0x3b368b=_0x57fdb6[_0x213cae(0x20e)])==null?void 0x0:_0x3b368b[_0x213cae(0x1d3)]),J(_0x5ccb9a,[_0x213cae(0x20e),_0x213cae(0x200)],(_0x168d50=_0x2ecdbf['body'])==null?void 0x0:_0x168d50[_0x213cae(0x200)],(_0x1140fc=_0x57fdb6[_0x213cae(0x20e)])==null?void 0x0:_0x1140fc['customDecorations']),J(_0x5ccb9a,[_0x213cae(0x20e),_0x213cae(0x1f3)],(_0x22e5b3=_0x2ecdbf['body'])==null?void 0x0:_0x22e5b3['tables'],(_0x1afd00=_0x57fdb6[_0x213cae(0x20e)])==null?void 0x0:_0x1afd00['tables']),J(_0x5ccb9a,[_0x213cae(0x20e),'blockRanges'],(_0x1ffeea=_0x2ecdbf[_0x213cae(0x20e)])==null?void 0x0:_0x1ffeea[_0x213cae(0x202)],(_0x1ead0a=_0x57fdb6[_0x213cae(0x20e)])==null?void 0x0:_0x1ead0a[_0x213cae(0x202)])][_0x213cae(0x1dd)](Boolean)[_0x213cae(0x206)]((_0x1f32a7,_0x1e62ef)=>_0x4ea5f1['compose'](_0x1f32a7,_0x1e62ef),null);}function J(_0xbb637d,_0x11a374,_0x28a82f,_0x4e4cac){const _0x3f31df=_0x175eea;return _0x4bc8cb[_0x3f31df(0x236)](_0x28a82f,_0x4e4cac)?null:_0xbb637d[_0x3f31df(0x212)](_0x11a374,_0x28a82f,_0x4e4cac);}function Y(_0xca1f21,_0x4aea85,_0x145d5c,_0x4dd771,_0x182911){const _0x127c26=_0x175eea;let _0x437b5f=ve(_0x145d5c,_0x4dd771);return _0x437b5f?!!_0xca1f21[_0x127c26(0x20a)](_0x4d9d19['id'],{'unitId':_0x4aea85,'actions':_0x437b5f,'textRanges':[{'startOffset':_0x182911,'endOffset':_0x182911,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}var X=class{constructor(_0xd5b37c){const _0x2c224a=_0x175eea;this[_0x2c224a(0x1e2)]=_0xd5b37c;}[_0x175eea(0x234)](){return this['_runtime']['blockId'];}[_0x175eea(0x228)](){const _0x31fd1b=_0x175eea;let _0x54971a=this['_getBlockRange']();return _0x54971a?{'blockId':_0x54971a[_0x31fd1b(0x1c3)],'endIndex':_0x54971a[_0x31fd1b(0x1ce)],'startIndex':_0x54971a['startIndex']}:null;}[_0x175eea(0x201)](){const _0x359c3b=_0x175eea;var _0x269a0c;let _0x482fa1=this['_getBlockRange'](),_0x700b03=(_0x269a0c=this[_0x359c3b(0x1e2)][_0x359c3b(0x1ef)]()[_0x359c3b(0x20e)])==null?void 0x0:_0x269a0c[_0x359c3b(0x219)];return!_0x482fa1||!_0x700b03?'':ye(_0x700b03[_0x359c3b(0x233)](_0x482fa1[_0x359c3b(0x21b)]+0x1,_0x482fa1['endIndex']));}[_0x175eea(0x1f2)](){const _0x5c99a4=_0x175eea;let _0x5b9b77=this[_0x5c99a4(0x228)]();return _0x5b9b77?{..._0x5b9b77,'config':this[_0x5c99a4(0x230)](),'text':this[_0x5c99a4(0x201)](),'type':_0x5c99a4(0x214)}:null;}[_0x175eea(0x230)](){const _0x36cbd8=_0x175eea;var _0x19cf66;return h((_0x19cf66=this[_0x36cbd8(0x1e2)][_0x36cbd8(0x1d5)])==null?void 0x0:_0x19cf66['getCodeConfig'](this['_runtime'][_0x36cbd8(0x239)],this[_0x36cbd8(0x1e2)][_0x36cbd8(0x1c3)]));}['updateConfig'](_0x2b986b){const _0x5ecdbb=_0x175eea;var _0x2df593;return!!((_0x2df593=this[_0x5ecdbb(0x1e2)][_0x5ecdbb(0x207)])!=null&&_0x2df593['syncExecuteCommand'](_e['id'],{'blockId':this[_0x5ecdbb(0x1e2)]['blockId'],'config':_0x2b986b['config'],'unitId':this[_0x5ecdbb(0x1e2)][_0x5ecdbb(0x239)]}));}[_0x175eea(0x1d7)](_0x34ecb1){const _0x5b26b2=_0x175eea;var _0x44d35f;return!!((_0x44d35f=this[_0x5b26b2(0x1e2)]['commandService'])!=null&&_0x44d35f[_0x5b26b2(0x20a)](W['id'],{'cursorOffset':_0x34ecb1,'unitId':this[_0x5b26b2(0x1e2)][_0x5b26b2(0x239)]}));}[_0x175eea(0x1da)](_0xa181c7={}){const _0x2f3c0b=_0x175eea;var _0x1f6fc2;return!!((_0x1f6fc2=this[_0x2f3c0b(0x1e2)][_0x2f3c0b(0x207)])!=null&&_0x1f6fc2[_0x2f3c0b(0x20a)](G['id'],{..._0xa181c7,'unitId':this[_0x2f3c0b(0x1e2)][_0x2f3c0b(0x239)]}));}[_0x175eea(0x210)](){const _0x48bf1e=_0x175eea;var _0x243a41;return(_0x243a41=this[_0x48bf1e(0x1e2)][_0x48bf1e(0x1ef)]()[_0x48bf1e(0x20e)])==null||(_0x243a41=_0x243a41[_0x48bf1e(0x202)])==null?void 0x0:_0x243a41['find'](_0x20c0a7=>_0x20c0a7['blockId']===this[_0x48bf1e(0x1e2)]['blockId']&&_0x20c0a7['blockType']===_0x48bf1e(0x214));}};function ye(_0x431a29){const _0x30424f=_0x175eea;return Array[_0x30424f(0x1bc)](_0x431a29)[_0x30424f(0x215)](_0x1043e1=>_0x1043e1===_0x54b411[_0x30424f(0x20b)]?'\x0a':_0x1043e1)['filter'](_0x20c938=>_0x20c938!==_0x54b411[_0x30424f(0x229)]&&_0x20c938!==_0x54b411[_0x30424f(0x203)]&&_0x20c938!==_0x54b411['SECTION_BREAK'])[_0x30424f(0x221)]('')['replace'](/\n$/,'');}Object[_0x175eea(0x1e9)](_0x4e29f8[_0x175eea(0x1cb)],{'getCodes'(){const _0x5ce4cd=_0x175eea;var _0x2de41f,_0x2f9354;return(_0x2de41f=(_0x2f9354=this[_0x5ce4cd(0x1e0)]()[_0x5ce4cd(0x20e)])==null||(_0x2f9354=_0x2f9354[_0x5ce4cd(0x202)])==null?void 0x0:_0x2f9354[_0x5ce4cd(0x1dd)](_0x296d70=>_0x296d70[_0x5ce4cd(0x232)]===_0x5ce4cd(0x214))[_0x5ce4cd(0x215)](_0x4128f5=>Z(this,_0x4128f5['blockId'])))==null?[]:_0x2de41f;},'getCode'(_0x1db4e6){const _0x4b5906=_0x175eea;var _0x140da7;return!((_0x140da7=this[_0x4b5906(0x1e0)]()[_0x4b5906(0x20e)])==null||(_0x140da7=_0x140da7[_0x4b5906(0x202)])==null)&&_0x140da7[_0x4b5906(0x216)](_0x266433=>_0x266433[_0x4b5906(0x1c3)]===_0x1db4e6&&_0x266433['blockType']===_0x4b5906(0x214))?Z(this,_0x1db4e6):null;},'getCodeAt'(_0x216b60){const _0x437f95=_0x175eea;var _0x24d104;let _0x4aaa69=(_0x24d104=this[_0x437f95(0x1e0)]()[_0x437f95(0x20e)])==null||(_0x24d104=_0x24d104[_0x437f95(0x202)])==null||(_0x24d104=_0x24d104[_0x437f95(0x1be)](_0x2b7d23=>_0x2b7d23[_0x437f95(0x232)]===_0x437f95(0x214)&&_0x2b7d23[_0x437f95(0x21b)]<=_0x216b60&&_0x216b60<=_0x2b7d23[_0x437f95(0x1ce)]))==null?void 0x0:_0x24d104[_0x437f95(0x1c3)];return _0x4aaa69?Z(this,_0x4aaa69):null;},'findCodeByText'(_0x10d22d){const _0x4dd69d=_0x175eea;var _0x182362;return(_0x182362=this[_0x4dd69d(0x21d)](_0x10d22d)[0x0])==null?null:_0x182362;},'findCodes'(_0x6299f0){const _0x266778=_0x175eea;let _0x41ffa8=typeof _0x6299f0==_0x266778(0x238)?{'text':_0x6299f0}:_0x6299f0;return this[_0x266778(0x208)]()[_0x266778(0x1dd)](_0x3e818d=>!(_0x41ffa8[_0x266778(0x1c3)]&&_0x3e818d[_0x266778(0x234)]()!==_0x41ffa8[_0x266778(0x1c3)]||_0x41ffa8[_0x266778(0x223)]&&!_0x3e818d[_0x266778(0x201)]()['includes'](_0x41ffa8[_0x266778(0x223)])));},'insertCode'(_0x254b9f={}){const _0x391268=_0x175eea;var _0x125430,_0x2a6a9e;let _0x5a59c2=(_0x125430=_0x254b9f['blockId'])==null?'docs-code-'+Date[_0x391268(0x235)]():_0x125430;return(_0x2a6a9e=Q(this))!=null&&_0x2a6a9e[_0x391268(0x20a)](ge['id'],{..._0x254b9f,'blockId':_0x5a59c2,'unitId':this['getId']()})?Z(this,_0x5a59c2):null;},'exitCode'(_0x7c617f){const _0x50f4f2=_0x175eea;var _0x48b99e;return!!((_0x48b99e=Q(this))!=null&&_0x48b99e[_0x50f4f2(0x20a)](W['id'],{'cursorOffset':_0x7c617f,'unitId':this['getId']()}));},'cancelEmptyCodeParagraph'(_0x21124f={}){const _0xdd3b30=_0x175eea;var _0x1cb517;return!!((_0x1cb517=Q(this))!=null&&_0x1cb517[_0xdd3b30(0x20a)](G['id'],{..._0x21124f,'unitId':this[_0xdd3b30(0x234)]()}));}});function Z(_0xd1c704,_0x228f9e){const _0x1eefd9=_0x175eea;let _0x4c0437=$(_0xd1c704);return new X({'blockId':_0x228f9e,'commandService':Q(_0xd1c704),'getDocumentData':()=>_0xd1c704[_0x1eefd9(0x1e0)](),'model':_0x4c0437==null?void 0x0:_0x4c0437[_0x1eefd9(0x1c4)](U),'unitId':_0xd1c704[_0x1eefd9(0x234)]()});}function Q(_0x16c647){const _0x55a74d=_0x175eea;var _0x4abbf5,_0x5cb530;return(_0x4abbf5=_0x16c647['_commandService'])==null?(_0x5cb530=$(_0x16c647))==null?void 0x0:_0x5cb530[_0x55a74d(0x1c4)](_0x1a5331):_0x4abbf5;}function $(_0x5ce1a8){const _0xe44dae=_0x175eea;return _0x5ce1a8[_0xe44dae(0x1e6)];}export{X as FDocsCode};
1
+ const _0x5d89db=_0x1854;(function(_0x7b897a,_0x26c335){const _0x55ad36=_0x1854,_0x589cce=_0x7b897a();while(!![]){try{const _0x4292fc=-parseInt(_0x55ad36(0x183))/0x1+parseInt(_0x55ad36(0x184))/0x2*(-parseInt(_0x55ad36(0x1bf))/0x3)+parseInt(_0x55ad36(0x1bc))/0x4+parseInt(_0x55ad36(0x1d2))/0x5+parseInt(_0x55ad36(0x169))/0x6*(-parseInt(_0x55ad36(0x1ce))/0x7)+parseInt(_0x55ad36(0x1b7))/0x8+parseInt(_0x55ad36(0x1ab))/0x9;if(_0x4292fc===_0x26c335)break;else _0x589cce['push'](_0x589cce['shift']());}catch(_0x45cf00){_0x589cce['push'](_0x589cce['shift']());}}}(_0x15c7,0x9133d));import{CommandType as _0x22f4b7,DataStreamTreeTokenType as _0x180f7a,Disposable as _0x4bc668,ICommandService as _0x2afc20,IUniverInstanceService as _0x40925a,JSONX as _0x209e0e,Tools as _0x20dd72,UniverInstanceType as _0x10a714,generateRandomId as _0x29ed6a}from'@univerjs/core';import{FDocument as _0x19b331}from'@univerjs/docs-ui/facade';import{DocSelectionManagerService as _0x1206d3,RichTextEditingMutation as _0x3d459c}from'@univerjs/docs';import'@univerjs/docs-ui';import{Subject as _0xf3e6d5}from'rxjs';const p=_0x5d89db(0x1c3),m={'language':_0x5d89db(0x18f),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function h(_0x1ec33f){return{...m,..._0x1ec33f};}function g(_0x5ea74a){const _0x87bc6c=_0x5d89db;var _0x1ef1b5;let _0x377ca0=(_0x1ef1b5=_0x5ea74a==null?void 0x0:_0x5ea74a['codes'])==null?{}:_0x1ef1b5;return{'codes':Object[_0x87bc6c(0x192)](Object[_0x87bc6c(0x1af)](_0x377ca0)['map'](([_0x177b68,_0x239938])=>[_0x177b68,h(_0x239938)]))};}function _(_0x355e4b,_0x7b7f9d,_0x194441){const _0x557168=_0x5d89db;let _0x59518b=g(_0x355e4b);return _0x59518b['codes'][_0x7b7f9d]=h({..._0x59518b[_0x557168(0x181)][_0x7b7f9d],..._0x194441}),_0x59518b;}function v(_0x392a07,_0x36f641){const _0x3eab39=_0x5d89db;let _0x4f4fb2=g(_0x392a07);return delete _0x4f4fb2[_0x3eab39(0x181)][_0x36f641],_0x4f4fb2;}const y=_0x5d89db(0x172);function b(_0x14296b){const _0x28ff2c=_0x5d89db;var _0x2833cb,_0x347dd8,_0x404e4d;let _0x41ae25=E(_0x14296b[_0x28ff2c(0x16f)]),_0x4b41df=D(_0x41ae25),_0x4c0388=ee(_0x14296b['startOffset'],_0x14296b[_0x28ff2c(0x16e)]),_0x190045=_0x4c0388?(_0x2833cb=_0x4b41df['blockRanges'])==null?void 0x0:_0x2833cb['find'](_0x4842fb=>_0x4842fb[_0x28ff2c(0x18b)]===_0x4c0388[_0x28ff2c(0x1aa)]&&_0x4842fb['endIndex']+0x1===_0x4c0388[_0x28ff2c(0x16e)]):void 0x0,{startOffset:_0x5236ac,endOffset:_0x1c60d9}=_0x190045?_0x4c0388:se(_0x4b41df,_0x14296b['startOffset'],_0x14296b[_0x28ff2c(0x16e)]),_0x436bf5=le(_0x4b41df,_0x5236ac,_0x1c60d9),_0x1dc3db=(_0x347dd8=_0x190045==null?void 0x0:_0x190045['blockId'])==null?_0x14296b[_0x28ff2c(0x1c6)]:_0x347dd8,_0x28952e=_(_0x14296b[_0x28ff2c(0x1ca)],_0x1dc3db,{...m,..._0x14296b[_0x28ff2c(0x171)]});if(_0x190045)return _0x190045[_0x28ff2c(0x1a5)]=p,x(_0x4b41df,_0x5236ac,_0x1c60d9),w(_0x4b41df,_0x5236ac,_0x1c60d9,_0x436bf5),{'nextDocumentData':_0x41ae25,'nextMetadata':_0x28952e,'cursorOffset':_0x5236ac+0x1};if(_0x5236ac===_0x1c60d9){let _0x3f03e0=''+_0x180f7a[_0x28ff2c(0x16a)]+_0x180f7a[_0x28ff2c(0x17c)]+_0x180f7a[_0x28ff2c(0x1ba)];return j(_0x4b41df,_0x5236ac,_0x3f03e0,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':C(!0x0,!0x0,_0x436bf5)}],'blockRanges':[{'blockId':_0x1dc3db,'blockType':p,'startIndex':0x0,'endIndex':_0x3f03e0[_0x28ff2c(0x1df)]-0x1}]}),{'nextDocumentData':_0x41ae25,'nextMetadata':_0x28952e,'cursorOffset':_0x5236ac+0x1};}return j(_0x4b41df,_0x1c60d9,_0x180f7a[_0x28ff2c(0x1ba)]),j(_0x4b41df,_0x5236ac,_0x180f7a['BLOCK_START']),w(_0x4b41df,_0x5236ac,_0x1c60d9+0x1,_0x436bf5),_0x4b41df[_0x28ff2c(0x1d1)]=[...(_0x404e4d=_0x4b41df[_0x28ff2c(0x1d1)])==null?[]:_0x404e4d,{'blockId':_0x1dc3db,'blockType':p,'startIndex':_0x5236ac,'endIndex':_0x1c60d9+0x1}][_0x28ff2c(0x1b8)]((_0x349f4f,_0x5a5628)=>_0x349f4f[_0x28ff2c(0x18b)]-_0x5a5628[_0x28ff2c(0x18b)]),{'nextDocumentData':_0x41ae25,'nextMetadata':_0x28952e,'cursorOffset':_0x5236ac+0x1};}function x(_0x3bc76e,_0x438d29,_0x5927f0){const _0x3ae9db=_0x5d89db;var _0x48d2d6;((_0x48d2d6=_0x3bc76e['paragraphs'])==null?[]:_0x48d2d6)[_0x3ae9db(0x17f)](_0x207d22=>_0x207d22[_0x3ae9db(0x18b)]>_0x438d29&&_0x207d22['startIndex']<_0x5927f0)['forEach'](_0x343e72=>{const _0x42712e=_0x3ae9db;var _0xe98acd;let _0x5da6d6={...(_0xe98acd=_0x343e72[_0x42712e(0x19f)])==null?{}:_0xe98acd};delete _0x5da6d6['spaceAbove'],delete _0x5da6d6[_0x42712e(0x1b3)],_0x343e72[_0x42712e(0x19f)]=_0x5da6d6;});}function ee(_0x2428ba,_0x59cb11){const _0x2d6b0a=_0x5d89db;return _0x2428ba==null||_0x59cb11==null||_0x2428ba===_0x59cb11?null:{'startOffset':Math['min'](_0x2428ba,_0x59cb11),'endOffset':Math[_0x2d6b0a(0x1b1)](_0x2428ba,_0x59cb11)};}function te(_0x123960){const _0x3e1eb0=_0x5d89db;return{'nextDocumentData':E(_0x123960['documentData']),'nextMetadata':_(_0x123960[_0x3e1eb0(0x1ca)],_0x123960['blockId'],_0x123960[_0x3e1eb0(0x171)]),'cursorOffset':0x0};}function ne(_0x3f1747){const _0x4b4503=_0x5d89db;var _0x436565,_0x30ddc3;let _0x1ac352=E(_0x3f1747[_0x4b4503(0x16f)]),_0x18951f=D(_0x1ac352),_0x1baad2=S(_0x18951f,_0x3f1747[_0x4b4503(0x17b)]);if(!_0x1baad2)return null;let _0xfbf700=T(_0x18951f,_0x1baad2),_0x474e31=_0xfbf700[_0xfbf700[_0x4b4503(0x1df)]-0x1];if(!_0x474e31||!oe(_0x18951f,_0x1baad2,_0x474e31)||_0x3f1747[_0x4b4503(0x17b)]<_0x474e31[_0x4b4503(0x18b)])return null;let _0x552c99=k(_0x18951f,_0x1baad2,_0x474e31);if(_0x552c99>=_0x1baad2[_0x4b4503(0x1e0)])return null;_0x18951f['dataStream']=[_0x18951f['dataStream']['slice'](0x0,_0x552c99),_0x180f7a['BLOCK_END'],_0x18951f[_0x4b4503(0x167)][_0x4b4503(0x19c)](_0x552c99,_0x1baad2['endIndex']),_0x18951f[_0x4b4503(0x167)]['slice'](_0x1baad2[_0x4b4503(0x1e0)]+0x1)]['join'](''),z(_0x18951f[_0x4b4503(0x1cd)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),z(_0x18951f[_0x4b4503(0x1d9)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),z(_0x18951f['customBlocks'],_0x552c99,_0x1baad2['endIndex'],0x1),pe(_0x18951f[_0x4b4503(0x193)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),B(_0x18951f[_0x4b4503(0x1b9)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),B(_0x18951f[_0x4b4503(0x1b6)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),B(_0x18951f[_0x4b4503(0x186)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),(_0x436565=_0x18951f[_0x4b4503(0x1d1)])==null||_0x436565[_0x4b4503(0x1ae)](_0x53ef3f=>{const _0x2e6b54=_0x4b4503;_0x53ef3f===_0x1baad2||_0x53ef3f['blockId']===_0x1baad2[_0x2e6b54(0x1c6)]?_0x53ef3f[_0x2e6b54(0x1e0)]=_0x552c99:_0x53ef3f['startIndex']>=_0x552c99&&_0x53ef3f[_0x2e6b54(0x18b)]<_0x1baad2[_0x2e6b54(0x1e0)]&&(_0x53ef3f['startIndex']+=0x1,_0x53ef3f['endIndex']+=0x1);});let _0x1e928c=T(_0x18951f,{..._0x1baad2,'endIndex':_0x552c99});_0x1e928c[_0x4b4503(0x1ae)]((_0x4b8e10,_0x1fb964)=>{const _0xf8cec9=_0x4b4503;var _0x16ed39;_0x4b8e10[_0xf8cec9(0x19f)]={...(_0x16ed39=_0x4b8e10['paragraphStyle'])==null?{}:_0x16ed39,...C(_0x1fb964===0x0,_0x1fb964===_0x1e928c[_0xf8cec9(0x1df)]-0x1)};});let _0x30044a=(_0x30ddc3=_0x18951f[_0x4b4503(0x1cd)])==null?void 0x0:_0x30ddc3['find'](_0x425d4f=>_0x425d4f[_0x4b4503(0x18b)]===_0x552c99+0x1);return _0x30044a&&(_0x30044a[_0x4b4503(0x19f)]=ae(_0x30044a['paragraphStyle'])),{'nextDocumentData':_0x1ac352,'cursorOffset':_0x552c99+0x1};}function re(_0x2fa921){let _0x1a02c2=E(_0x2fa921['documentData']),_0x59944c=D(_0x1a02c2),_0x427edd=S(_0x59944c,_0x2fa921['cursorOffset']);return _0x427edd&&ie(_0x1a02c2,_0x59944c,_0x427edd,_0x2fa921['cursorOffset'],_0x2fa921['paragraphStartIndex'])||null;}function ie(_0x1055e6,_0x2279d3,_0x2e0fe6,_0x28f00f,_0x2e9eff){const _0x51ea55=_0x5d89db;let _0x52e1ef=de(_0x2279d3,_0x2e0fe6,_0x28f00f,_0x2e9eff);if(!_0x52e1ef)return null;let _0x3a65a9=_0x52e1ef['endTokenOffset']-0x1;return M(_0x2279d3,_0x52e1ef[_0x51ea55(0x1d4)][_0x51ea55(0x18b)],_0x52e1ef[_0x51ea55(0x1d4)][_0x51ea55(0x18b)]+0x1),{'nextDocumentData':_0x1055e6,'cursorOffset':_0x3a65a9};}function S(_0x488eeb,_0x27eda6){const _0x58c2df=_0x5d89db;var _0x5db9ee;return(_0x5db9ee=_0x488eeb[_0x58c2df(0x1d1)])==null?void 0x0:_0x5db9ee['find'](_0x5246c9=>{const _0x2db0f6=_0x58c2df;let _0x3438e5=A(_0x488eeb,_0x5246c9);return _0x5246c9[_0x2db0f6(0x1a5)]===_0x2db0f6(0x1c3)&&_0x5246c9[_0x2db0f6(0x18b)]<=_0x27eda6&&_0x27eda6<=_0x3438e5+0x2;});}function C(_0x464941,_0xc196a9,_0x32c1c9=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x464941&&_0x32c1c9?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':y,'fs':0xc}};}function w(_0x3ae6ec,_0xbce770,_0x274b60,_0x252afb=!0x1){const _0x2e95dc=_0x5d89db;var _0x20cab8;let _0x32cfbd=((_0x20cab8=_0x3ae6ec[_0x2e95dc(0x1cd)])==null?[]:_0x20cab8)['filter'](_0x309b31=>_0x309b31[_0x2e95dc(0x18b)]>_0xbce770&&_0x309b31[_0x2e95dc(0x18b)]<_0x274b60);_0x32cfbd[_0x2e95dc(0x1ae)]((_0x5047a3,_0x4fc965)=>{const _0x1dfc56=_0x2e95dc;var _0x2598f5;_0x5047a3['paragraphStyle']={...(_0x2598f5=_0x5047a3[_0x1dfc56(0x19f)])==null?{}:_0x2598f5,...C(_0x4fc965===0x0,_0x4fc965===_0x32cfbd[_0x1dfc56(0x1df)]-0x1,_0x252afb)};});}function ae(_0x9c423d){const _0x45f1c7=_0x5d89db;var _0x3698ba,_0x55becb;let _0x1b8e8d={..._0x9c423d==null?{}:_0x9c423d};return delete _0x1b8e8d[_0x45f1c7(0x16c)],delete _0x1b8e8d[_0x45f1c7(0x1ad)],delete _0x1b8e8d[_0x45f1c7(0x1bb)],delete _0x1b8e8d['spaceBelow'],((_0x3698ba=_0x1b8e8d['textStyle'])==null?void 0x0:_0x3698ba['ff'])===y&&((_0x55becb=_0x1b8e8d[_0x45f1c7(0x196)])==null?void 0x0:_0x55becb['fs'])===0xc&&delete _0x1b8e8d[_0x45f1c7(0x196)],_0x1b8e8d;}function T(_0x7384b0,_0x56f1da){const _0xe053af=_0x5d89db;var _0x704972;let _0x9ad8b7=A(_0x7384b0,_0x56f1da);return((_0x704972=_0x7384b0['paragraphs'])==null?[]:_0x704972)[_0xe053af(0x17f)](_0x2cab86=>_0x2cab86[_0xe053af(0x18b)]>_0x56f1da[_0xe053af(0x18b)]&&_0x2cab86[_0xe053af(0x18b)]<_0x9ad8b7);}function oe(_0x263e05,_0x58c442,_0x572df9){const _0x3e95bd=_0x5d89db;let _0x33beef=k(_0x263e05,_0x58c442,_0x572df9),_0x297e16=_0x263e05[_0x3e95bd(0x167)][_0x3e95bd(0x19c)](_0x33beef,_0x572df9[_0x3e95bd(0x18b)]);return Array['from'](_0x297e16)[_0x3e95bd(0x19e)](_0x27c5a4=>_0x27c5a4===_0x180f7a[_0x3e95bd(0x16a)]||_0x27c5a4===_0x180f7a[_0x3e95bd(0x1ba)]);}function E(_0x29845f){const _0x4316e8=_0x5d89db;return _0x20dd72[_0x4316e8(0x1b0)](_0x29845f);}function D(_0x58e932){if(!_0x58e932['body'])throw Error('Document\x20body\x20is\x20required');return _0x58e932['body'];}function se(_0x36f4e8,_0x3bd5d6,_0x25166a){const _0x235829=_0x5d89db;if(_0x3bd5d6==null||_0x25166a==null){let _0x25fce0=ce(_0x36f4e8);return{'startOffset':_0x25fce0,'endOffset':_0x25fce0};}let _0x4ef7a4=Math['min'](_0x3bd5d6,_0x25166a),_0x46f537=Math[_0x235829(0x1b1)](_0x3bd5d6,_0x25166a);return _0x4ef7a4===_0x46f537?{'startOffset':_0x4ef7a4,'endOffset':_0x4ef7a4}:ue(_0x36f4e8,_0x4ef7a4,_0x46f537);}function ce(_0x496e6a){const _0x37ea06=_0x5d89db;return _0x496e6a[_0x37ea06(0x167)]['endsWith'](_0x180f7a[_0x37ea06(0x1d5)])?Math[_0x37ea06(0x1b1)](0x0,_0x496e6a[_0x37ea06(0x167)]['length']-0x1):_0x496e6a[_0x37ea06(0x167)][_0x37ea06(0x1df)];}function le(_0x5726fc,_0xc40240,_0x1eb7dd){const _0x529f64=_0x5d89db;var _0x53d910;let _0x140a9b=Math[_0x529f64(0x180)](_0xc40240,_0x1eb7dd),_0x393ebb=Math['max'](_0xc40240,_0x1eb7dd);return!!((_0x53d910=_0x5726fc['tables'])!=null&&_0x53d910[_0x529f64(0x1ac)](_0x526107=>_0x140a9b>_0x526107[_0x529f64(0x18b)]&&_0x140a9b<_0x526107['endIndex']||_0x393ebb>_0x526107['startIndex']&&_0x393ebb<_0x526107[_0x529f64(0x1e0)]||_0x140a9b<=_0x526107['startIndex']&&_0x393ebb>=_0x526107[_0x529f64(0x1e0)]));}function ue(_0x4626b9,_0x1d6f01,_0x3dc196){const _0x2da2f8=_0x5d89db;var _0x154a6f,_0x2f341b;let _0x4ffbed=[...(_0x154a6f=_0x4626b9[_0x2da2f8(0x1cd)])==null?[]:_0x154a6f][_0x2da2f8(0x1b8)]((_0x3f90de,_0x959ee1)=>_0x3f90de[_0x2da2f8(0x18b)]-_0x959ee1[_0x2da2f8(0x18b)]),_0x12ab00=_0x4ffbed[_0x2da2f8(0x17a)]((_0x2c6f5f,_0x5538a6)=>(_0x5538a6===0x0?0x0:_0x4ffbed[_0x5538a6-0x1][_0x2da2f8(0x18b)]+0x1)<=_0x1d6f01&&_0x1d6f01<=_0x2c6f5f['startIndex']),_0x502b5b=(_0x2f341b=_0x4ffbed[_0x2da2f8(0x17a)](_0x3dd08e=>_0x3dd08e[_0x2da2f8(0x18b)]>=_0x3dc196-0x1))==null?_0x4ffbed[_0x4ffbed['length']-0x1]:_0x2f341b;return{'startOffset':_0x12ab00?O(_0x4ffbed,_0x12ab00):_0x1d6f01,'endOffset':_0x502b5b?_0x502b5b[_0x2da2f8(0x18b)]+0x1:_0x3dc196};}function O(_0x52bb99,_0x257b34){const _0x4ba524=_0x5d89db;let _0x296f7d=_0x52bb99[_0x4ba524(0x18e)](_0x257b34);return _0x296f7d>0x0?_0x52bb99[_0x296f7d-0x1][_0x4ba524(0x18b)]+0x1:0x0;}function k(_0x40997d,_0x368fc9,_0x2004ca){const _0xdc78f1=_0x5d89db;var _0x447af6;return Math[_0xdc78f1(0x1b1)](O((_0x447af6=_0x40997d[_0xdc78f1(0x1cd)])==null?[]:_0x447af6,_0x2004ca),_0x368fc9[_0xdc78f1(0x18b)]+0x1);}function A(_0x31a5f1,_0x3837ff){const _0x4ae2a5=_0x5d89db;return _0x31a5f1[_0x4ae2a5(0x167)][_0x3837ff['endIndex']]===_0x180f7a['BLOCK_END']?_0x3837ff[_0x4ae2a5(0x1e0)]:_0x31a5f1[_0x4ae2a5(0x167)][_0x3837ff[_0x4ae2a5(0x1e0)]+0x1]===_0x180f7a[_0x4ae2a5(0x1ba)]?_0x3837ff[_0x4ae2a5(0x1e0)]+0x1:_0x3837ff[_0x4ae2a5(0x1e0)];}function de(_0x406db7,_0xe8b75b,_0x5d3cc7,_0x1b8be9){const _0x2b6f7c=_0x5d89db;var _0x4603f1,_0x311b17;let _0x33b84d=A(_0x406db7,_0xe8b75b),_0x2f0eb3=((_0x4603f1=_0x406db7[_0x2b6f7c(0x1cd)])==null?[]:_0x4603f1)[_0x2b6f7c(0x17a)](_0x213bf2=>_0x213bf2['startIndex']===_0x33b84d+0x1);if(!_0x2f0eb3||_0x1b8be9!=null&&_0x2f0eb3[_0x2b6f7c(0x18b)]!==_0x1b8be9||_0x5d3cc7<_0x33b84d||_0x5d3cc7>_0x2f0eb3[_0x2b6f7c(0x18b)]+0x1||_0x406db7['dataStream'][_0x2f0eb3['startIndex']]!==_0x180f7a['PARAGRAPH'])return null;let _0x5ded07=O((_0x311b17=_0x406db7[_0x2b6f7c(0x1cd)])==null?[]:_0x311b17,_0x2f0eb3),_0x1f6e0b=_0x406db7[_0x2b6f7c(0x167)][_0x2b6f7c(0x19c)](_0x5ded07,_0x2f0eb3[_0x2b6f7c(0x18b)]);return Array[_0x2b6f7c(0x19b)](_0x1f6e0b)[_0x2b6f7c(0x19e)](_0x496223=>_0x496223===_0x180f7a['BLOCK_END'])?{'paragraph':_0x2f0eb3,'endTokenOffset':_0x33b84d}:null;}function j(_0x148b30,_0x272251,_0x3ecb02,_0x3c2dbd={}){const _0x5d6590=_0x5d89db;var _0x59270d,_0x406a2a;if(_0x3ecb02){if(_0x148b30[_0x5d6590(0x167)]=''+_0x148b30['dataStream'][_0x5d6590(0x19c)](0x0,_0x272251)+_0x3ecb02+_0x148b30[_0x5d6590(0x167)][_0x5d6590(0x19c)](_0x272251),N(_0x148b30,_0x272251,_0x3ecb02[_0x5d6590(0x1df)]),(_0x59270d=_0x3c2dbd[_0x5d6590(0x1cd)])!=null&&_0x59270d['length']){var _0x2d1b30;_0x148b30[_0x5d6590(0x1cd)]=[...(_0x2d1b30=_0x148b30[_0x5d6590(0x1cd)])==null?[]:_0x2d1b30,..._0x3c2dbd[_0x5d6590(0x1cd)]['map'](_0x5745c0=>({..._0x5745c0,'startIndex':_0x5745c0[_0x5d6590(0x18b)]+_0x272251}))][_0x5d6590(0x1b8)]((_0x1a2b43,_0x5776be)=>_0x1a2b43[_0x5d6590(0x18b)]-_0x5776be[_0x5d6590(0x18b)]);}if((_0x406a2a=_0x3c2dbd[_0x5d6590(0x1d1)])!=null&&_0x406a2a[_0x5d6590(0x1df)]){var _0x40dd97;_0x148b30['blockRanges']=[...(_0x40dd97=_0x148b30[_0x5d6590(0x1d1)])==null?[]:_0x40dd97,..._0x3c2dbd[_0x5d6590(0x1d1)][_0x5d6590(0x197)](_0x46d1ae=>({..._0x46d1ae,'startIndex':_0x46d1ae['startIndex']+_0x272251,'endIndex':_0x46d1ae['endIndex']+_0x272251}))][_0x5d6590(0x1b8)]((_0xdb31dd,_0x478c6c)=>_0xdb31dd[_0x5d6590(0x18b)]-_0x478c6c[_0x5d6590(0x18b)]);}}}function M(_0x1ec24b,_0x1e247d,_0x248914){const _0x2b455c=_0x5d89db;let _0x12b852=_0x248914-_0x1e247d;_0x1ec24b[_0x2b455c(0x167)]=''+_0x1ec24b[_0x2b455c(0x167)][_0x2b455c(0x19c)](0x0,_0x1e247d)+_0x1ec24b[_0x2b455c(0x167)]['slice'](_0x248914),P(_0x1ec24b,_0x1e247d,_0x12b852);}function N(_0x63c3d1,_0x4a1b30,_0x4527a5){const _0x1731c2=_0x5d89db;_0x63c3d1[_0x1731c2(0x1cd)]=F(_0x63c3d1[_0x1731c2(0x1cd)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x1d9)]=F(_0x63c3d1[_0x1731c2(0x1d9)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x1cf)]=F(_0x63c3d1[_0x1731c2(0x1cf)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x193)]=fe(_0x63c3d1[_0x1731c2(0x193)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x1b9)]=L(_0x63c3d1[_0x1731c2(0x1b9)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x1b6)]=L(_0x63c3d1[_0x1731c2(0x1b6)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x186)]=L(_0x63c3d1[_0x1731c2(0x186)],_0x4a1b30,_0x4527a5),_0x63c3d1['blockRanges']=L(_0x63c3d1[_0x1731c2(0x1d1)],_0x4a1b30,_0x4527a5);}function P(_0x24fcf5,_0x2093a1,_0x34c49c){const _0x461e01=_0x5d89db;var _0x4909de,_0x341484;_0x24fcf5[_0x461e01(0x1cd)]=I(_0x24fcf5['paragraphs'],_0x2093a1,_0x34c49c),_0x24fcf5[_0x461e01(0x1d9)]=I(_0x24fcf5['sectionBreaks'],_0x2093a1,_0x34c49c),_0x24fcf5[_0x461e01(0x1cf)]=I(_0x24fcf5[_0x461e01(0x1cf)],_0x2093a1,_0x34c49c),_0x24fcf5['textRuns']=(_0x4909de=R((_0x341484=_0x24fcf5[_0x461e01(0x193)])==null?void 0x0:_0x341484[_0x461e01(0x197)](_0x26a58f=>({..._0x26a58f,'startIndex':_0x26a58f['st'],'endIndex':_0x26a58f['ed']})),_0x2093a1,_0x34c49c))==null?void 0x0:_0x4909de[_0x461e01(0x197)](_0x11977a=>{let {startIndex:_0x3fc5d7,endIndex:_0x40b783,..._0x36ed1d}=_0x11977a;return{..._0x36ed1d,'st':_0x3fc5d7,'ed':_0x40b783};}),_0x24fcf5[_0x461e01(0x1b9)]=R(_0x24fcf5[_0x461e01(0x1b9)],_0x2093a1,_0x34c49c),_0x24fcf5[_0x461e01(0x1b6)]=R(_0x24fcf5[_0x461e01(0x1b6)],_0x2093a1,_0x34c49c),_0x24fcf5[_0x461e01(0x186)]=R(_0x24fcf5[_0x461e01(0x186)],_0x2093a1,_0x34c49c),_0x24fcf5[_0x461e01(0x1d1)]=R(_0x24fcf5[_0x461e01(0x1d1)],_0x2093a1,_0x34c49c);}function F(_0x228944,_0x4e0696,_0x7d41f5){const _0x4df949=_0x5d89db;return _0x228944==null?void 0x0:_0x228944['map'](_0x2a62a1=>_0x2a62a1['startIndex']>=_0x4e0696?{..._0x2a62a1,'startIndex':_0x2a62a1[_0x4df949(0x18b)]+_0x7d41f5}:_0x2a62a1);}function I(_0x40bfcd,_0x15617a,_0x3d6e6d){const _0x5b4e60=_0x5d89db;let _0xf7074d=_0x15617a+_0x3d6e6d;return _0x40bfcd==null?void 0x0:_0x40bfcd[_0x5b4e60(0x197)](_0x28f8b2=>_0x28f8b2[_0x5b4e60(0x18b)]>=_0x15617a&&_0x28f8b2[_0x5b4e60(0x18b)]<_0xf7074d?null:_0x28f8b2[_0x5b4e60(0x18b)]>=_0xf7074d?{..._0x28f8b2,'startIndex':_0x28f8b2[_0x5b4e60(0x18b)]-_0x3d6e6d}:_0x28f8b2)[_0x5b4e60(0x17f)](_0x3e7c4e=>_0x3e7c4e!=null);}function fe(_0x2aa63b,_0x1cd250,_0x2f4997){const _0x5b0840=_0x5d89db;return _0x2aa63b==null?void 0x0:_0x2aa63b[_0x5b0840(0x197)](_0x5ad183=>_0x5ad183['st']>=_0x1cd250?{..._0x5ad183,'st':_0x5ad183['st']+_0x2f4997,'ed':_0x5ad183['ed']+_0x2f4997}:_0x5ad183['ed']>_0x1cd250?{..._0x5ad183,'ed':_0x5ad183['ed']+_0x2f4997}:_0x5ad183);}function L(_0x2c077c,_0x2fa6f9,_0x516a1e){const _0x1b3190=_0x5d89db;return _0x2c077c==null?void 0x0:_0x2c077c['map'](_0x232066=>_0x232066[_0x1b3190(0x18b)]>=_0x2fa6f9?{..._0x232066,'startIndex':_0x232066['startIndex']+_0x516a1e,'endIndex':_0x232066[_0x1b3190(0x1e0)]+_0x516a1e}:_0x232066[_0x1b3190(0x1e0)]>=_0x2fa6f9?{..._0x232066,'endIndex':_0x232066['endIndex']+_0x516a1e}:_0x232066);}function R(_0x48a13d,_0x3662ff,_0x2cba16){const _0x22ac11=_0x5d89db;let _0x2b90e5=_0x3662ff+_0x2cba16;return _0x48a13d==null?void 0x0:_0x48a13d['map'](_0x264c7b=>_0x264c7b[_0x22ac11(0x18b)]>=_0x3662ff&&_0x264c7b[_0x22ac11(0x1e0)]<_0x2b90e5?null:_0x264c7b[_0x22ac11(0x18b)]>=_0x2b90e5?{..._0x264c7b,'startIndex':_0x264c7b['startIndex']-_0x2cba16,'endIndex':_0x264c7b[_0x22ac11(0x1e0)]-_0x2cba16}:_0x264c7b[_0x22ac11(0x1e0)]>=_0x3662ff?{..._0x264c7b,'startIndex':_0x264c7b['startIndex']<_0x3662ff?_0x264c7b[_0x22ac11(0x18b)]:_0x3662ff,'endIndex':Math['max'](_0x3662ff,_0x264c7b[_0x22ac11(0x1e0)]-_0x2cba16)}:_0x264c7b)[_0x22ac11(0x17f)](_0x386b00=>_0x386b00!=null);}function z(_0x551695,_0xb6dc78,_0x58d401,_0x511853){const _0x4e06b7=_0x5d89db;_0x551695==null||_0x551695[_0x4e06b7(0x1ae)](_0x37764=>{const _0x57ba2c=_0x4e06b7;_0x37764['startIndex']>=_0xb6dc78&&_0x37764[_0x57ba2c(0x18b)]<_0x58d401&&(_0x37764['startIndex']+=_0x511853);});}function pe(_0x168cdc,_0x29198a,_0x22ceec,_0x5585f0){_0x168cdc==null||_0x168cdc['forEach'](_0x4520bc=>{_0x4520bc['st']>=_0x29198a&&_0x4520bc['st']<_0x22ceec?(_0x4520bc['st']+=_0x5585f0,_0x4520bc['ed']+=_0x5585f0):_0x4520bc['ed']>_0x29198a&&_0x4520bc['ed']<_0x22ceec&&(_0x4520bc['ed']+=_0x5585f0);});}function B(_0x523c77,_0x318ef9,_0x4657bb,_0x4f32a3){const _0x59986d=_0x5d89db;_0x523c77==null||_0x523c77[_0x59986d(0x1ae)](_0x13d3e6=>{const _0x3c8de1=_0x59986d;_0x13d3e6[_0x3c8de1(0x18b)]>=_0x318ef9&&_0x13d3e6[_0x3c8de1(0x18b)]<_0x4657bb?(_0x13d3e6[_0x3c8de1(0x18b)]+=_0x4f32a3,_0x13d3e6['endIndex']+=_0x4f32a3):_0x13d3e6[_0x3c8de1(0x1e0)]>_0x318ef9&&_0x13d3e6[_0x3c8de1(0x1e0)]<_0x4657bb&&(_0x13d3e6[_0x3c8de1(0x1e0)]+=_0x4f32a3);});}function _0x15c7(){const _0x46d774=['sort','tables','BLOCK_END','spaceAbove','104408iUUFUv','complete','docs-code.command.insert','1750191DsIkZw','_runtime','compose','getUnitId','code','next','reduce','blockId','syncExecuteCommand','dispose','docs-code.command.exit','metadata','UNIVER_DOC','removeUnit','paragraphs','63aJTywD','customBlocks','join','blockRanges','2319365sUToex','string','paragraph','SECTION_BREAK','COMMAND','cancelEmptyParagraph','text','sectionBreaks','getId','getTextRanges','replace','getDocumentData','_getBlockRange','length','endIndex','dataStream','commandService','545112IMeicc','BLOCK_START','getCodeConfig','indentEnd','delete','endOffset','documentData','getConfig','config','monospace','getSnapshot','now','docs-code.command.update','getText','getRange','body','function','find','cursorOffset','PARAGRAPH','nextMetadata','clear','filter','min','codes','object','337124KZSZGK','4eFxccj','includes','customDecorations','get','getCurrentUnitOfType','toPrimitive','call','startIndex','_resources','serialize','indexOf','javascript','docs-code.command.cancel-empty-paragraph','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','fromEntries','textRuns','previousDocumentData','paragraphStartIndex','textStyle','map','prototype','exit','model','from','slice','_change$','every','paragraphStyle','_commandService','assign','unitId','_injector','nextDocumentData','blockType','describe','set','setCodeConfig','iterator','startOffset','11645280uUTYsW','some','indentStart','forEach','entries','deepClone','max','getCodes','spaceBelow','updateConfig','deserialize','customRanges','9059520AltEjz'];_0x15c7=function(){return _0x46d774;};return _0x15c7();}function V(_0x5cae6c){'@babel/helpers - typeof';const _0x2d8f5b=_0x5d89db;return V=typeof Symbol==_0x2d8f5b(0x179)&&typeof Symbol[_0x2d8f5b(0x1a9)]=='symbol'?function(_0x338cab){return typeof _0x338cab;}:function(_0x11fad8){const _0x374883=_0x2d8f5b;return _0x11fad8&&typeof Symbol==_0x374883(0x179)&&_0x11fad8['constructor']===Symbol&&_0x11fad8!==Symbol[_0x374883(0x198)]?'symbol':typeof _0x11fad8;},V(_0x5cae6c);}function me(_0xfde3a9,_0x4297e4){const _0x46d0ee=_0x5d89db;if(V(_0xfde3a9)!=_0x46d0ee(0x182)||!_0xfde3a9)return _0xfde3a9;var _0x4bbc02=_0xfde3a9[Symbol[_0x46d0ee(0x189)]];if(_0x4bbc02!==void 0x0){var _0x525cf0=_0x4bbc02[_0x46d0ee(0x18a)](_0xfde3a9,_0x4297e4||'default');if(V(_0x525cf0)!=_0x46d0ee(0x182))return _0x525cf0;throw TypeError(_0x46d0ee(0x191));}return(_0x4297e4===_0x46d0ee(0x1d3)?String:Number)(_0xfde3a9);}function he(_0x2064ea){const _0x4b8115=_0x5d89db;var _0x1ed15f=me(_0x2064ea,_0x4b8115(0x1d3));return V(_0x1ed15f)=='symbol'?_0x1ed15f:_0x1ed15f+'';}function H(_0xe6d4b6,_0x1f3318,_0x35e827){return(_0x1f3318=he(_0x1f3318))in _0xe6d4b6?Object['defineProperty'](_0xe6d4b6,_0x1f3318,{'value':_0x35e827,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xe6d4b6[_0x1f3318]=_0x35e827,_0xe6d4b6;}var U=class extends _0x4bc668{constructor(..._0x8836a6){const _0x578043=_0x5d89db;super(..._0x8836a6),H(this,_0x578043(0x18c),new Map()),H(this,_0x578043(0x19d),new _0xf3e6d5()),H(this,'change$',this[_0x578043(0x19d)]['asObservable']());}['getCodeConfig'](_0xa00113,_0x473da4){const _0x2e8ac5=_0x5d89db;return g(this['_resources'][_0x2e8ac5(0x187)](_0xa00113))['codes'][_0x473da4];}[_0x5d89db(0x1a8)](_0x302cc3,_0x735714,_0x191b94){const _0x517a82=_0x5d89db;this['_setResource'](_0x302cc3,_0x735714,_(this['_resources'][_0x517a82(0x187)](_0x302cc3),_0x735714,_0x191b94));}['removeCode'](_0x357037,_0x288e2a){const _0x195484=_0x5d89db;this['_setResource'](_0x357037,_0x288e2a,v(this[_0x195484(0x18c)][_0x195484(0x187)](_0x357037),_0x288e2a));}['serialize'](_0x55f8a2){const _0x4538d4=_0x5d89db;return g(this[_0x4538d4(0x18c)][_0x4538d4(0x187)](_0x55f8a2));}[_0x5d89db(0x1b5)](_0x6848d0,_0x4d0cc7){const _0x486d05=_0x5d89db;this[_0x486d05(0x18c)][_0x486d05(0x1a7)](_0x6848d0,g(_0x4d0cc7)),this[_0x486d05(0x19d)][_0x486d05(0x1c4)]({'unitId':_0x6848d0});}[_0x5d89db(0x1cc)](_0x2664f3){const _0x265885=_0x5d89db;this[_0x265885(0x18c)][_0x265885(0x16d)](_0x2664f3),this[_0x265885(0x19d)][_0x265885(0x1c4)]({'unitId':_0x2664f3});}[_0x5d89db(0x1c8)](){const _0x36d107=_0x5d89db;super[_0x36d107(0x1c8)](),this[_0x36d107(0x18c)][_0x36d107(0x17e)](),this['_change$'][_0x36d107(0x1bd)]();}['_setResource'](_0x50b617,_0x5c9e94,_0xfae61e){const _0x569e5b=_0x5d89db;this[_0x569e5b(0x18c)][_0x569e5b(0x1a7)](_0x50b617,_0xfae61e),this[_0x569e5b(0x19d)][_0x569e5b(0x1c4)]({'unitId':_0x50b617,'blockId':_0x5c9e94});}};_0x22f4b7[_0x5d89db(0x1d6)],_0x22f4b7[_0x5d89db(0x1d6)];const ge={'id':_0x5d89db(0x1be),'type':_0x22f4b7['COMMAND'],'handler':(_0x54956a,_0x1c7865)=>{const _0x716ed4=_0x5d89db;var _0x13aa30,_0xd95464,_0xc946fa;let _0x2595ae=K(_0x54956a,_0x1c7865==null?void 0x0:_0x1c7865[_0x716ed4(0x1a2)]);if(!_0x2595ae)return!0x1;let _0x3b1199=q(_0x54956a),_0x4314e0=b({'blockId':(_0x13aa30=_0x1c7865==null?void 0x0:_0x1c7865[_0x716ed4(0x1c6)])==null?_0x29ed6a(0x6):_0x13aa30,'config':_0x1c7865==null?void 0x0:_0x1c7865[_0x716ed4(0x171)],'documentData':_0x2595ae['previousDocumentData'],'endOffset':(_0xd95464=_0x1c7865==null?void 0x0:_0x1c7865['endOffset'])==null?_0x3b1199==null?void 0x0:_0x3b1199[_0x716ed4(0x16e)]:_0xd95464,'metadata':_0x2595ae[_0x716ed4(0x19a)][_0x716ed4(0x18d)](_0x2595ae[_0x716ed4(0x1a2)]),'startOffset':(_0xc946fa=_0x1c7865==null?void 0x0:_0x1c7865[_0x716ed4(0x1aa)])==null?_0x3b1199==null?void 0x0:_0x3b1199['startOffset']:_0xc946fa}),_0x351938=Y(_0x2595ae[_0x716ed4(0x168)],_0x2595ae[_0x716ed4(0x1a2)],_0x2595ae[_0x716ed4(0x194)],_0x4314e0[_0x716ed4(0x1a4)],_0x4314e0[_0x716ed4(0x17b)]);return _0x351938&&_0x4314e0['nextMetadata']&&_0x2595ae[_0x716ed4(0x19a)][_0x716ed4(0x1b5)](_0x2595ae[_0x716ed4(0x1a2)],_0x4314e0[_0x716ed4(0x17d)]),_0x351938;}},_e={'id':_0x5d89db(0x175),'type':_0x22f4b7[_0x5d89db(0x1d6)],'handler':(_0x37acd8,_0x566a9f)=>{const _0x19da76=_0x5d89db;if(!_0x566a9f)return!0x1;let _0x5191cc=K(_0x37acd8,_0x566a9f[_0x19da76(0x1a2)]);if(!_0x5191cc)return!0x1;let _0x4dda3f=te({'blockId':_0x566a9f['blockId'],'config':_0x566a9f[_0x19da76(0x171)],'documentData':_0x5191cc[_0x19da76(0x194)],'metadata':_0x5191cc['model'][_0x19da76(0x18d)](_0x5191cc['unitId'])});return _0x4dda3f[_0x19da76(0x17d)]&&_0x5191cc[_0x19da76(0x19a)]['deserialize'](_0x5191cc[_0x19da76(0x1a2)],_0x4dda3f[_0x19da76(0x17d)]),!0x0;}},W={'id':_0x5d89db(0x1c9),'type':_0x22f4b7[_0x5d89db(0x1d6)],'handler':(_0x1e4598,_0x2a2215)=>{const _0x15e536=_0x5d89db;var _0x40f0ba,_0x43afb6;let _0x1483b5=K(_0x1e4598,_0x2a2215==null?void 0x0:_0x2a2215[_0x15e536(0x1a2)]);if(!_0x1483b5)return!0x1;let _0x27af81=(_0x40f0ba=_0x2a2215==null?void 0x0:_0x2a2215[_0x15e536(0x17b)])==null?(_0x43afb6=q(_0x1e4598))==null?void 0x0:_0x43afb6[_0x15e536(0x1aa)]:_0x40f0ba;if(_0x27af81==null)return!0x1;let _0x10f223=ne({'cursorOffset':_0x27af81,'documentData':_0x1483b5[_0x15e536(0x194)]});return _0x10f223?Y(_0x1483b5[_0x15e536(0x168)],_0x1483b5[_0x15e536(0x1a2)],_0x1483b5[_0x15e536(0x194)],_0x10f223['nextDocumentData'],_0x10f223[_0x15e536(0x17b)]):!0x1;}},G={'id':_0x5d89db(0x190),'type':_0x22f4b7['COMMAND'],'handler':(_0x230a6d,_0x562f3e)=>{const _0x159815=_0x5d89db;var _0x47da98,_0x478e31;let _0x279caf=K(_0x230a6d,_0x562f3e==null?void 0x0:_0x562f3e[_0x159815(0x1a2)]);if(!_0x279caf)return!0x1;let _0x179489=(_0x47da98=_0x562f3e==null?void 0x0:_0x562f3e['cursorOffset'])==null?(_0x478e31=q(_0x230a6d))==null?void 0x0:_0x478e31[_0x159815(0x1aa)]:_0x47da98;if(_0x179489==null)return!0x1;let _0x110a69=re({'cursorOffset':_0x179489,'documentData':_0x279caf['previousDocumentData'],'paragraphStartIndex':_0x562f3e==null?void 0x0:_0x562f3e[_0x159815(0x195)]});return _0x110a69?Y(_0x279caf['commandService'],_0x279caf[_0x159815(0x1a2)],_0x279caf[_0x159815(0x194)],_0x110a69['nextDocumentData'],_0x110a69['cursorOffset']):!0x1;}};function _0x1854(_0x239d0b,_0x31542a){_0x239d0b=_0x239d0b-0x167;const _0x15c7e8=_0x15c7();let _0x185481=_0x15c7e8[_0x239d0b];return _0x185481;}function K(_0x5e171b,_0x48bf39){const _0x6f7490=_0x5d89db;let _0x344c59=_0x5e171b[_0x6f7490(0x187)](_0x40925a),_0x553d7d=_0x48bf39?_0x344c59['getUniverDocInstance'](_0x48bf39):_0x344c59[_0x6f7490(0x188)](_0x10a714[_0x6f7490(0x1cb)]);return _0x553d7d?{'commandService':_0x5e171b[_0x6f7490(0x187)](_0x2afc20),'model':_0x5e171b[_0x6f7490(0x187)](U),'previousDocumentData':_0x553d7d['getSnapshot'](),'unitId':_0x553d7d[_0x6f7490(0x1c2)]()}:null;}function q(_0x497fd5){const _0x4bbd74=_0x5d89db;var _0x2d5faa;return(_0x2d5faa=_0x497fd5[_0x4bbd74(0x187)](_0x1206d3)[_0x4bbd74(0x1db)]())==null?void 0x0:_0x2d5faa[0x0];}function ve(_0x564d54,_0x1a1099){const _0x3556b8=_0x5d89db;var _0x1f05e1,_0x4fc269,_0x576ca6,_0x374eb4,_0x278086,_0x26e873,_0x22986d,_0x41e761,_0x4fc049,_0x433796,_0x54280b,_0x2acb9a,_0x1fad92,_0x34c240,_0x2ac03e,_0x4a8a75,_0x414c94,_0x5735d8;let _0x3b36d5=_0x209e0e['getInstance']();return[J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x167)],(_0x1f05e1=_0x564d54['body'])==null?void 0x0:_0x1f05e1[_0x3556b8(0x167)],(_0x4fc269=_0x1a1099['body'])==null?void 0x0:_0x4fc269['dataStream']),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1cd)],(_0x576ca6=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x576ca6['paragraphs'],(_0x374eb4=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x374eb4['paragraphs']),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1d9)],(_0x278086=_0x564d54['body'])==null?void 0x0:_0x278086['sectionBreaks'],(_0x26e873=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x26e873[_0x3556b8(0x1d9)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x193)],(_0x22986d=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x22986d[_0x3556b8(0x193)],(_0x41e761=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x41e761[_0x3556b8(0x193)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1cf)],(_0x4fc049=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x4fc049[_0x3556b8(0x1cf)],(_0x433796=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x433796[_0x3556b8(0x1cf)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1b6)],(_0x54280b=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x54280b[_0x3556b8(0x1b6)],(_0x2acb9a=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x2acb9a[_0x3556b8(0x1b6)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x186)],(_0x1fad92=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x1fad92[_0x3556b8(0x186)],(_0x34c240=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x34c240[_0x3556b8(0x186)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1b9)],(_0x2ac03e=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x2ac03e[_0x3556b8(0x1b9)],(_0x4a8a75=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x4a8a75[_0x3556b8(0x1b9)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1d1)],(_0x414c94=_0x564d54['body'])==null?void 0x0:_0x414c94[_0x3556b8(0x1d1)],(_0x5735d8=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x5735d8['blockRanges'])][_0x3556b8(0x17f)](Boolean)[_0x3556b8(0x1c5)]((_0x3ae940,_0x5e2108)=>_0x209e0e[_0x3556b8(0x1c1)](_0x3ae940,_0x5e2108),null);}function J(_0x535166,_0x2d2f74,_0x1b8e83,_0xbd79f2){return _0x20dd72['diffValue'](_0x1b8e83,_0xbd79f2)?null:_0x535166['replaceOp'](_0x2d2f74,_0x1b8e83,_0xbd79f2);}function Y(_0xe4d6f,_0x266f72,_0x24ca3d,_0xf4ff8e,_0x225eca){const _0x131f7a=_0x5d89db;let _0x299448=ve(_0x24ca3d,_0xf4ff8e);return _0x299448?!!_0xe4d6f[_0x131f7a(0x1c7)](_0x3d459c['id'],{'unitId':_0x266f72,'actions':_0x299448,'textRanges':[{'startOffset':_0x225eca,'endOffset':_0x225eca,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}var X=class{constructor(_0xab58e4){const _0xd97675=_0x5d89db;this[_0xd97675(0x1c0)]=_0xab58e4;}[_0x5d89db(0x1da)](){const _0x20fb2f=_0x5d89db;return this[_0x20fb2f(0x1c0)]['blockId'];}[_0x5d89db(0x177)](){const _0x201cde=_0x5d89db;let _0xc4a2e2=this['_getBlockRange']();return _0xc4a2e2?{'blockId':_0xc4a2e2['blockId'],'endIndex':_0xc4a2e2['endIndex'],'startIndex':_0xc4a2e2[_0x201cde(0x18b)]}:null;}[_0x5d89db(0x176)](){const _0x44497f=_0x5d89db;var _0x256330;let _0x42615c=this['_getBlockRange'](),_0x23ef27=(_0x256330=this[_0x44497f(0x1c0)][_0x44497f(0x1dd)]()['body'])==null?void 0x0:_0x256330[_0x44497f(0x167)];return!_0x42615c||!_0x23ef27?'':ye(_0x23ef27['slice'](_0x42615c[_0x44497f(0x18b)]+0x1,_0x42615c[_0x44497f(0x1e0)]));}[_0x5d89db(0x1a6)](){const _0x2367bd=_0x5d89db;let _0x5ee491=this[_0x2367bd(0x177)]();return _0x5ee491?{..._0x5ee491,'config':this[_0x2367bd(0x170)](),'text':this['getText'](),'type':_0x2367bd(0x1c3)}:null;}['getConfig'](){const _0x3420fa=_0x5d89db;var _0x59c01a;return h((_0x59c01a=this[_0x3420fa(0x1c0)][_0x3420fa(0x19a)])==null?void 0x0:_0x59c01a[_0x3420fa(0x16b)](this[_0x3420fa(0x1c0)][_0x3420fa(0x1a2)],this[_0x3420fa(0x1c0)]['blockId']));}[_0x5d89db(0x1b4)](_0x533d12){const _0x387749=_0x5d89db;var _0x449260;return!!((_0x449260=this[_0x387749(0x1c0)]['commandService'])!=null&&_0x449260[_0x387749(0x1c7)](_e['id'],{'blockId':this[_0x387749(0x1c0)][_0x387749(0x1c6)],'config':_0x533d12[_0x387749(0x171)],'unitId':this[_0x387749(0x1c0)][_0x387749(0x1a2)]}));}[_0x5d89db(0x199)](_0x4c83df){const _0x56090c=_0x5d89db;var _0x50eacb;return!!((_0x50eacb=this[_0x56090c(0x1c0)]['commandService'])!=null&&_0x50eacb[_0x56090c(0x1c7)](W['id'],{'cursorOffset':_0x4c83df,'unitId':this[_0x56090c(0x1c0)]['unitId']}));}[_0x5d89db(0x1d7)](_0x93e404={}){const _0x903ed7=_0x5d89db;var _0xd9888c;return!!((_0xd9888c=this[_0x903ed7(0x1c0)][_0x903ed7(0x168)])!=null&&_0xd9888c[_0x903ed7(0x1c7)](G['id'],{..._0x93e404,'unitId':this[_0x903ed7(0x1c0)][_0x903ed7(0x1a2)]}));}[_0x5d89db(0x1de)](){const _0x1530bf=_0x5d89db;var _0x40092b;return(_0x40092b=this['_runtime'][_0x1530bf(0x1dd)]()[_0x1530bf(0x178)])==null||(_0x40092b=_0x40092b[_0x1530bf(0x1d1)])==null?void 0x0:_0x40092b[_0x1530bf(0x17a)](_0x56f897=>_0x56f897[_0x1530bf(0x1c6)]===this['_runtime'][_0x1530bf(0x1c6)]&&_0x56f897[_0x1530bf(0x1a5)]===_0x1530bf(0x1c3));}};function ye(_0x1af559){const _0x2af04f=_0x5d89db;return Array[_0x2af04f(0x19b)](_0x1af559)[_0x2af04f(0x197)](_0x413d55=>_0x413d55===_0x180f7a[_0x2af04f(0x17c)]?'\x0a':_0x413d55)[_0x2af04f(0x17f)](_0x900462=>_0x900462!==_0x180f7a[_0x2af04f(0x16a)]&&_0x900462!==_0x180f7a[_0x2af04f(0x1ba)]&&_0x900462!==_0x180f7a[_0x2af04f(0x1d5)])[_0x2af04f(0x1d0)]('')[_0x2af04f(0x1dc)](/\n$/,'');}Object[_0x5d89db(0x1a1)](_0x19b331[_0x5d89db(0x198)],{'getCodes'(){const _0x548804=_0x5d89db;var _0x23d4e8,_0x14eb0e;return(_0x23d4e8=(_0x14eb0e=this[_0x548804(0x173)]()[_0x548804(0x178)])==null||(_0x14eb0e=_0x14eb0e['blockRanges'])==null?void 0x0:_0x14eb0e[_0x548804(0x17f)](_0x317a3f=>_0x317a3f['blockType']===_0x548804(0x1c3))[_0x548804(0x197)](_0x1b9a7a=>Z(this,_0x1b9a7a[_0x548804(0x1c6)])))==null?[]:_0x23d4e8;},'getCode'(_0x8216e1){const _0x465615=_0x5d89db;var _0x18a6ee;return!((_0x18a6ee=this[_0x465615(0x173)]()[_0x465615(0x178)])==null||(_0x18a6ee=_0x18a6ee[_0x465615(0x1d1)])==null)&&_0x18a6ee[_0x465615(0x1ac)](_0x41e95c=>_0x41e95c[_0x465615(0x1c6)]===_0x8216e1&&_0x41e95c[_0x465615(0x1a5)]==='code')?Z(this,_0x8216e1):null;},'getCodeAt'(_0x415225){const _0x1efb84=_0x5d89db;var _0x37e4b6;let _0x189e5c=(_0x37e4b6=this['getSnapshot']()['body'])==null||(_0x37e4b6=_0x37e4b6[_0x1efb84(0x1d1)])==null||(_0x37e4b6=_0x37e4b6[_0x1efb84(0x17a)](_0x59572c=>_0x59572c['blockType']===_0x1efb84(0x1c3)&&_0x59572c[_0x1efb84(0x18b)]<=_0x415225&&_0x415225<=_0x59572c[_0x1efb84(0x1e0)]))==null?void 0x0:_0x37e4b6[_0x1efb84(0x1c6)];return _0x189e5c?Z(this,_0x189e5c):null;},'findCodeByText'(_0x3c9ba5){var _0x362aed;return(_0x362aed=this['findCodes'](_0x3c9ba5)[0x0])==null?null:_0x362aed;},'findCodes'(_0x1e62c5){const _0x475334=_0x5d89db;let _0x4700a2=typeof _0x1e62c5=='string'?{'text':_0x1e62c5}:_0x1e62c5;return this[_0x475334(0x1b2)]()['filter'](_0x1d6ec5=>!(_0x4700a2[_0x475334(0x1c6)]&&_0x1d6ec5[_0x475334(0x1da)]()!==_0x4700a2[_0x475334(0x1c6)]||_0x4700a2[_0x475334(0x1d8)]&&!_0x1d6ec5['getText']()[_0x475334(0x185)](_0x4700a2[_0x475334(0x1d8)])));},'insertCode'(_0x43ab34={}){const _0x2e95f8=_0x5d89db;var _0x18b226,_0x2b1335;let _0x83a209=(_0x18b226=_0x43ab34[_0x2e95f8(0x1c6)])==null?'docs-code-'+Date[_0x2e95f8(0x174)]():_0x18b226;return(_0x2b1335=Q(this))!=null&&_0x2b1335[_0x2e95f8(0x1c7)](ge['id'],{..._0x43ab34,'blockId':_0x83a209,'unitId':this['getId']()})?Z(this,_0x83a209):null;},'exitCode'(_0x4b4116){const _0x4d0cd3=_0x5d89db;var _0x303e91;return!!((_0x303e91=Q(this))!=null&&_0x303e91[_0x4d0cd3(0x1c7)](W['id'],{'cursorOffset':_0x4b4116,'unitId':this[_0x4d0cd3(0x1da)]()}));},'cancelEmptyCodeParagraph'(_0x2c1886={}){const _0x5c4f8d=_0x5d89db;var _0x37bbf1;return!!((_0x37bbf1=Q(this))!=null&&_0x37bbf1[_0x5c4f8d(0x1c7)](G['id'],{..._0x2c1886,'unitId':this[_0x5c4f8d(0x1da)]()}));}});function Z(_0x2e7898,_0x509d96){const _0x583551=_0x5d89db;let _0x929d36=$(_0x2e7898);return new X({'blockId':_0x509d96,'commandService':Q(_0x2e7898),'getDocumentData':()=>_0x2e7898[_0x583551(0x173)](),'model':_0x929d36==null?void 0x0:_0x929d36[_0x583551(0x187)](U),'unitId':_0x2e7898['getId']()});}function Q(_0x4a253f){const _0x4d9100=_0x5d89db;var _0x12b10d,_0x566e71;return(_0x12b10d=_0x4a253f[_0x4d9100(0x1a0)])==null?(_0x566e71=$(_0x4a253f))==null?void 0x0:_0x566e71[_0x4d9100(0x187)](_0x2afc20):_0x12b10d;}function $(_0x320f85){const _0x2292aa=_0x5d89db;return _0x320f85[_0x2292aa(0x1a3)];}export{X as FDocsCode};