@univerjs-pro/docs-code 1.0.0-alpha.5 → 1.0.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/commands/code-config.mutation.d.ts +13 -0
- package/lib/types/index.d.ts +3 -2
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +5 -5
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1edc1f=_0x23a6;function _0x23a6(_0x5563f6,_0x426ced){_0x5563f6=_0x5563f6-0x1b6;const _0x8e7208=_0x8e72();let _0x23a61a=_0x8e7208[_0x5563f6];return _0x23a61a;}(function(_0x1953ae,_0x259e0d){const _0xce95f5=_0x23a6,_0x43d89e=_0x1953ae();while(!![]){try{const _0x272354=parseInt(_0xce95f5(0x206))/0x1+-parseInt(_0xce95f5(0x254))/0x2*(parseInt(_0xce95f5(0x1ce))/0x3)+-parseInt(_0xce95f5(0x1de))/0x4*(parseInt(_0xce95f5(0x1ed))/0x5)+-parseInt(_0xce95f5(0x1e5))/0x6*(parseInt(_0xce95f5(0x23e))/0x7)+parseInt(_0xce95f5(0x1e1))/0x8*(parseInt(_0xce95f5(0x256))/0x9)+-parseInt(_0xce95f5(0x1bc))/0xa+parseInt(_0xce95f5(0x20b))/0xb*(parseInt(_0xce95f5(0x1dd))/0xc);if(_0x272354===_0x259e0d)break;else _0x43d89e['push'](_0x43d89e['shift']());}catch(_0x118d37){_0x43d89e['push'](_0x43d89e['shift']());}}}(_0x8e72,0xcf039));import{BuildTextUtils as _0xfcd91,CommandType as _0x3aa002,DataStreamTreeTokenType as _0x43b06f,DependentOn as _0x2f1165,Disposable as _0x11f1e7,DocumentBlockRangeType as _0x37a99f,ICommandService as _0x1d61d6,IConfigService as _0x4a9167,IResourceManagerService as _0x50ae34,IUniverInstanceService as _0x45d141,Inject as _0x5c4b8b,Injector as _0x193e69,JSONX as _0x3e4a71,Plugin as _0x19b9cc,TextX as _0x37143f,UniverInstanceType as _0x41a83a,containsInteriorInsertionOffset as _0x52963d,containsStreamIndex as _0xf103f,createParagraphId as _0x5cfb3a,generateRandomId as _0x35a556,getBlockRangeInterval as _0x4a1bb2,getBodySliceForTextXAction as _0x2fb9bb,getParagraphContentStartOffset as _0x120216,getParagraphContentStartOffsets as _0xfa281d,getParagraphFollowingBlockOffset as _0x2be263,getSingleDataStreamChange as _0x1817eb,intersectsOperationalIntervals as _0x2f8ce5,merge as _0x559340,shiftExclusiveRangeOnDelete as _0x1c7981,shiftExclusiveRangeOnInsert as _0x2dea21,shiftInclusiveRangeOnDelete as _0x3a6def,shiftInclusiveRangeOnInsert as _0x5bff0d}from'@univerjs/core';import{DocSelectionManagerService as _0x2ed20d,RichTextEditingMutation as _0xc563fa,UniverDocsPlugin as _0x3f1e99,getContentInsertRange as _0x517640,isHeaderFooterSelection as _0xaf3991}from'@univerjs/docs';import{Subject as _0x3b77df}from'rxjs';import{UniverLicensePlugin as _0x4c3c74}from'@univerjs-pro/license';const ye={'language':_0x1edc1f(0x252),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function b(_0x307f11){return{...ye,..._0x307f11};}function x(_0x28cbb9){const _0x1c8662=_0x1edc1f;var _0x4f48cb;let _0xb2010d=(_0x4f48cb=_0x28cbb9==null?void 0x0:_0x28cbb9[_0x1c8662(0x1ec)])==null?{}:_0x4f48cb;return{'codes':Object[_0x1c8662(0x1f6)](Object[_0x1c8662(0x1c9)](_0xb2010d)['map'](([_0x4db315,_0x9f0254])=>[_0x4db315,b(_0x9f0254)]))};}function S(_0x38e080,_0x200d32,_0xf00307){const _0x25d111=_0x1edc1f;let _0x3bedf1=x(_0x38e080);return _0x3bedf1['codes'][_0x200d32]=b({..._0x3bedf1[_0x25d111(0x1ec)][_0x200d32],..._0xf00307}),_0x3bedf1;}function C(_0x20a188,_0x56154a){let _0x51484b=x(_0x20a188);return delete _0x51484b['codes'][_0x56154a],_0x51484b;}const be=_0x1edc1f(0x253);var w=class extends Error{constructor(_0xfbf296='Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries'){super(_0xfbf296);}};function xe(_0x7f1a3f){const _0x5b9022=_0x1edc1f;var _0x284857,_0x2ae09d,_0x4a5043;let _0x7621eb=T(_0x7f1a3f[_0x5b9022(0x244)]),_0x56992c=D(_0x7621eb),_0x1987bb=Ce(_0x7f1a3f[_0x5b9022(0x232)],_0x7f1a3f[_0x5b9022(0x1e3)]),_0x4ce653=_0x1987bb?(_0x284857=_0x56992c['blockRanges'])==null?void 0x0:_0x284857[_0x5b9022(0x212)](_0xdfaf5e=>{const _0x3ec8ce=_0x5b9022;let _0x1ed206=_0x4a1bb2(_0xdfaf5e);return _0x1ed206[_0x3ec8ce(0x232)]===_0x1987bb['startOffset']&&_0x1ed206[_0x3ec8ce(0x1e3)]===_0x1987bb[_0x3ec8ce(0x1e3)];}):void 0x0,{startOffset:_0x508923,endOffset:_0x577321}=_0x4ce653?_0x1987bb:ze(_0x56992c,_0x7f1a3f[_0x5b9022(0x232)],_0x7f1a3f[_0x5b9022(0x1e3)],_0x7f1a3f[_0x5b9022(0x21b)]);if(!_0x4ce653&&we(_0x56992c,_0x508923,_0x577321))throw new w(_0x5b9022(0x1c6));let _0x3e20fa=He(_0x56992c,_0x508923,_0x577321),_0x2741d6=(_0x2ae09d=_0x4ce653==null?void 0x0:_0x4ce653[_0x5b9022(0x1e4)])==null?_0x7f1a3f[_0x5b9022(0x1e4)]:_0x2ae09d,_0x7585d5=S(_0x7f1a3f[_0x5b9022(0x247)],_0x2741d6,{...ye,..._0x7f1a3f[_0x5b9022(0x1c1)]});if(_0x4ce653)return _0x4ce653[_0x5b9022(0x210)]=_0x37a99f['CODE'],Se(_0x56992c,_0x508923,_0x577321),Pe(_0x56992c,_0x508923,_0x577321,_0x3e20fa),A(_0x56992c,_0x4ce653),{'nextDocumentData':_0x7621eb,'nextMetadata':_0x7585d5,'cursorOffset':_0x508923+0x1};if(_0x508923===_0x577321){var _0x38de6b,_0x167dc0;let _0xf03c04=''+_0x43b06f[_0x5b9022(0x251)]+_0x43b06f[_0x5b9022(0x202)]+_0x43b06f[_0x5b9022(0x241)];j(_0x56992c,_0x508923,_0xf03c04,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x5cfb3a(new Set((_0x38de6b=_0x56992c[_0x5b9022(0x1c7)])==null?void 0x0:_0x38de6b[_0x5b9022(0x200)](_0xc6777d=>_0xc6777d[_0x5b9022(0x214)]))),'paragraphStyle':Ne(!0x0,!0x0,_0x3e20fa)}],'blockRanges':[{'blockId':_0x2741d6,'blockType':_0x37a99f['CODE'],'startIndex':0x0,'endIndex':_0xf03c04[_0x5b9022(0x1d8)]-0x1}]});let _0x3d4e00=(_0x167dc0=_0x56992c['blockRanges'])==null?void 0x0:_0x167dc0[_0x5b9022(0x212)](_0x3fa19f=>_0x3fa19f['blockId']===_0x2741d6);return _0x3d4e00&&A(_0x56992c,_0x3d4e00),{'nextDocumentData':_0x7621eb,'nextMetadata':_0x7585d5,'cursorOffset':_0x508923+0x1};}j(_0x56992c,_0x577321,_0x43b06f['BLOCK_END']),j(_0x56992c,_0x508923,_0x43b06f[_0x5b9022(0x251)]),Pe(_0x56992c,_0x508923,_0x577321+0x1,_0x3e20fa);let _0x3f12a0={'blockId':_0x2741d6,'blockType':_0x37a99f[_0x5b9022(0x1ca)],'startIndex':_0x508923,'endIndex':_0x577321+0x1};return _0x56992c[_0x5b9022(0x1ba)]=[...(_0x4a5043=_0x56992c[_0x5b9022(0x1ba)])==null?[]:_0x4a5043,_0x3f12a0][_0x5b9022(0x1ef)]((_0x1d97d5,_0x5b26b6)=>_0x1d97d5[_0x5b9022(0x209)]-_0x5b26b6[_0x5b9022(0x209)]),A(_0x56992c,_0x3f12a0),{'nextDocumentData':_0x7621eb,'nextMetadata':_0x7585d5,'cursorOffset':_0x508923+0x1};}function Se(_0x4fbf36,_0x21ff01,_0x7e8aac){const _0x23846b=_0x1edc1f;var _0x129efd;((_0x129efd=_0x4fbf36[_0x23846b(0x1c7)])==null?[]:_0x129efd)[_0x23846b(0x1c3)](_0x50d51d=>_0x50d51d[_0x23846b(0x209)]>_0x21ff01&&_0x50d51d[_0x23846b(0x209)]<_0x7e8aac)['forEach'](_0x4f4536=>{const _0x47fbfe=_0x23846b;var _0x15221b;let _0x121bc1={...(_0x15221b=_0x4f4536['paragraphStyle'])==null?{}:_0x15221b};delete _0x121bc1[_0x47fbfe(0x250)],delete _0x121bc1[_0x47fbfe(0x1d5)],_0x4f4536[_0x47fbfe(0x1f3)]=_0x121bc1;});}function Ce(_0x27ef0e,_0x411f04){const _0x3fc7ed=_0x1edc1f;return _0x27ef0e==null||_0x411f04==null||_0x27ef0e===_0x411f04?null:{'startOffset':Math[_0x3fc7ed(0x21d)](_0x27ef0e,_0x411f04),'endOffset':Math['max'](_0x27ef0e,_0x411f04)};}function we(_0x306450,_0x260541,_0x3dfe98){const _0xfe562f=_0x1edc1f;var _0x1475f7;return((_0x1475f7=_0x306450[_0xfe562f(0x1ba)])==null?[]:_0x1475f7)[_0xfe562f(0x22d)](_0xe29a2f=>{let _0x23a889=_0x4a1bb2(_0xe29a2f);return _0x260541===_0x3dfe98?_0x52963d(_0x23a889,_0x260541):_0x2f8ce5(_0x23a889,{'startOffset':_0x260541,'endOffset':_0x3dfe98});});}function Te(_0x3025ad){const _0x245eb3=_0x1edc1f;return{'nextDocumentData':T(_0x3025ad[_0x245eb3(0x244)]),'nextMetadata':S(_0x3025ad['metadata'],_0x3025ad[_0x245eb3(0x1e4)],_0x3025ad['config']),'cursorOffset':0x0};}function Ee(_0x797abf){const _0x59be64=_0x1edc1f;let _0x1fcc1a=T(_0x797abf[_0x59be64(0x244)]),_0x2bc488=D(_0x1fcc1a),_0x199f43=Ae(_0x2bc488,_0x797abf[_0x59be64(0x1e4)]);if(!_0x199f43)return null;let _0x1c0045=Le(_0x2bc488,_0x199f43);return{'nextDocumentData':_0x1fcc1a,'nextMetadata':C(_0x797abf[_0x59be64(0x247)],_0x797abf[_0x59be64(0x1e4)]),'cursorOffset':_0x1c0045};}function De(_0x4a339d){const _0x3b9e48=_0x1edc1f;var _0x42a2dd;let _0x3596c1=T(_0x4a339d['documentData']),_0x48dbbc=D(_0x3596c1),_0x3479a6=Ae(_0x48dbbc,_0x4a339d[_0x3b9e48(0x1e4)]);if(!_0x3479a6)return null;let _0x237fea=_0x4a1bb2(_0x3479a6);return M(_0x48dbbc,_0x237fea[_0x3b9e48(0x232)],_0x237fea['endOffset']),_0x48dbbc[_0x3b9e48(0x1ba)]=(_0x42a2dd=_0x48dbbc[_0x3b9e48(0x1ba)])==null?void 0x0:_0x42a2dd[_0x3b9e48(0x1c3)](_0x1472a3=>_0x1472a3['blockId']!==_0x4a339d[_0x3b9e48(0x1e4)]),{'nextDocumentData':_0x3596c1,'nextMetadata':C(_0x4a339d[_0x3b9e48(0x247)],_0x4a339d['blockId']),'cursorOffset':_0x3479a6[_0x3b9e48(0x209)]};}function Oe(_0x1a9080){const _0x1d5a9c=_0x1edc1f;let _0x4527a6=T(_0x1a9080[_0x1d5a9c(0x244)]),_0x492847=D(_0x4527a6),_0xc17f9d=Me(_0x492847,_0x1a9080[_0x1d5a9c(0x23f)]);return _0xc17f9d&&ke(_0x4527a6,_0x492847,_0xc17f9d,_0x1a9080[_0x1d5a9c(0x23f)],_0x1a9080[_0x1d5a9c(0x1d4)])||null;}function ke(_0x2d2570,_0x52abab,_0x2cdcd0,_0xcd8894,_0x23bec9){const _0x3a120f=_0x1edc1f;let _0x40d752=Je(_0x52abab,_0x2cdcd0,_0xcd8894,_0x23bec9);if(!_0x40d752)return null;let _0x4bf4fe=_0x40d752[_0x3a120f(0x1e7)]-0x1;return M(_0x52abab,_0x40d752[_0x3a120f(0x20a)][_0x3a120f(0x209)],_0x40d752[_0x3a120f(0x20a)]['startIndex']+0x1),{'nextDocumentData':_0x2d2570,'cursorOffset':_0x4bf4fe};}function Ae(_0x489c95,_0x560fcd){const _0x3272a9=_0x1edc1f;var _0xb9996f;return _0x489c95==null||(_0xb9996f=_0x489c95[_0x3272a9(0x1ba)])==null?void 0x0:_0xb9996f[_0x3272a9(0x212)](_0xdc7ab5=>_0xdc7ab5['blockType']===_0x37a99f['CODE']&&_0xdc7ab5[_0x3272a9(0x1e4)]===_0x560fcd);}function je(_0x645ce5){const _0xaed9d0=_0x1edc1f;var _0x279075;let _0x304ce2=_0x645ce5[_0xaed9d0(0x244)][_0xaed9d0(0x1bf)];if(!_0x304ce2)return!0x1;let _0x60761b=_0x645ce5['direction']===_0xaed9d0(0x1b6)?_0x645ce5[_0xaed9d0(0x23f)]-0x1:_0x645ce5[_0xaed9d0(0x23f)],_0x14a22e=_0x645ce5[_0xaed9d0(0x1d9)]===_0xaed9d0(0x1fc)?_0x645ce5[_0xaed9d0(0x23f)]+0x1:_0x60761b;return((_0x279075=_0x304ce2[_0xaed9d0(0x1ba)])==null?[]:_0x279075)[_0xaed9d0(0x22d)](_0x3f72c6=>_0x3f72c6[_0xaed9d0(0x210)]===_0x37a99f[_0xaed9d0(0x1ca)]?_0x60761b===_0x3f72c6[_0xaed9d0(0x209)]||_0x60761b===_0x3f72c6['endIndex']||_0x14a22e===_0x3f72c6[_0xaed9d0(0x209)]||_0x14a22e===_0x3f72c6[_0xaed9d0(0x1c8)]:!0x1);}function Me(_0x28ca91,_0x2be5f1){var _0x187905;return(_0x187905=_0x28ca91['blockRanges'])==null?void 0x0:_0x187905['find'](_0x106f17=>{const _0x3f0a95=_0x23a6;let _0x441a14=k(_0x106f17);return _0x106f17[_0x3f0a95(0x210)]===_0x37a99f[_0x3f0a95(0x1ca)]&&_0x106f17[_0x3f0a95(0x209)]<=_0x2be5f1&&_0x2be5f1<=_0x441a14+0x2;});}function Ne(_0x5d3417,_0x240100,_0x1c7802=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x5d3417&&_0x1c7802?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':be,'fs':0xc}};}function Pe(_0xa421fb,_0x2b1935,_0x52fa33,_0x1a15a0=!0x1){const _0x22720c=_0x1edc1f;var _0x7abf3d;let _0x11249c=((_0x7abf3d=_0xa421fb[_0x22720c(0x1c7)])==null?[]:_0x7abf3d)[_0x22720c(0x1c3)](_0xae4d76=>_0xae4d76[_0x22720c(0x209)]>_0x2b1935&&_0xae4d76[_0x22720c(0x209)]<_0x52fa33);_0x11249c[_0x22720c(0x258)]((_0x2833cc,_0x57ad5e)=>{const _0x32f090=_0x22720c;var _0xe8f4dc;_0x2833cc[_0x32f090(0x1f3)]={...(_0xe8f4dc=_0x2833cc[_0x32f090(0x1f3)])==null?{}:_0xe8f4dc,...Ne(_0x57ad5e===0x0,_0x57ad5e===_0x11249c['length']-0x1,_0x1a15a0)};});}function Fe(_0x5ec983){const _0x177b4d=_0x1edc1f;var _0x53e81e,_0x372e46;let _0x4e3dab={..._0x5ec983==null?{}:_0x5ec983};return delete _0x4e3dab[_0x177b4d(0x1cb)],delete _0x4e3dab[_0x177b4d(0x1d2)],delete _0x4e3dab['spaceAbove'],delete _0x4e3dab[_0x177b4d(0x1d5)],((_0x53e81e=_0x4e3dab[_0x177b4d(0x1bd)])==null?void 0x0:_0x53e81e['ff'])===be&&((_0x372e46=_0x4e3dab[_0x177b4d(0x1bd)])==null?void 0x0:_0x372e46['fs'])===0xc&&delete _0x4e3dab[_0x177b4d(0x1bd)],_0x4e3dab;}function Ie(_0x2ba1fe,_0x4eb7c3){const _0x3ebb31=_0x1edc1f;var _0x1f5fe3;let _0x22b3e9=k(_0x4eb7c3);return((_0x1f5fe3=_0x2ba1fe[_0x3ebb31(0x1c7)])==null?[]:_0x1f5fe3)['filter'](_0x5762eb=>_0x5762eb['startIndex']>_0x4eb7c3[_0x3ebb31(0x209)]&&_0x5762eb[_0x3ebb31(0x209)]<_0x22b3e9);}function Le(_0x41c8bc,_0x2196a2){const _0x2dbf3c=_0x1edc1f;var _0x43cc62;let _0x73b7ab=k(_0x2196a2);return Ie(_0x41c8bc,_0x2196a2)[_0x2dbf3c(0x258)](_0x26a0c1=>{const _0x4f6127=_0x2dbf3c;_0x26a0c1[_0x4f6127(0x1f3)]=Fe(_0x26a0c1[_0x4f6127(0x1f3)]);}),M(_0x41c8bc,_0x73b7ab,_0x73b7ab+0x1),M(_0x41c8bc,_0x2196a2[_0x2dbf3c(0x209)],_0x2196a2[_0x2dbf3c(0x209)]+0x1),_0x41c8bc['blockRanges']=(_0x43cc62=_0x41c8bc['blockRanges'])==null?void 0x0:_0x43cc62['filter'](_0x46b16e=>_0x46b16e[_0x2dbf3c(0x1e4)]!==_0x2196a2['blockId']),_0x2196a2[_0x2dbf3c(0x209)];}function T(_0x4e21ea){const _0x21f041=_0x1edc1f;return{..._0x4e21ea,'body':_0x4e21ea['body']?Re(_0x4e21ea[_0x21f041(0x1bf)]):_0x4e21ea[_0x21f041(0x1bf)]};}function Re(_0x474c38){const _0x2f6a46=_0x1edc1f;var _0x2f7a38,_0xa190d0,_0x5a0484,_0x16f43f,_0x521dc4,_0x2e53b0,_0x33fcba,_0xfadd5b,_0x443b8c;return{..._0x474c38,'paragraphs':(_0x2f7a38=_0x474c38['paragraphs'])==null?void 0x0:_0x2f7a38[_0x2f6a46(0x200)](_0xfbfec4=>({..._0xfbfec4,'bullet':E(_0xfbfec4[_0x2f6a46(0x22c)]),'paragraphStyle':E(_0xfbfec4['paragraphStyle'])})),'sectionBreaks':(_0xa190d0=_0x474c38[_0x2f6a46(0x1f2)])==null?void 0x0:_0xa190d0[_0x2f6a46(0x200)](_0x547762=>({..._0x547762})),'textRuns':(_0x5a0484=_0x474c38[_0x2f6a46(0x235)])==null?void 0x0:_0x5a0484['map'](_0x21c40b=>({..._0x21c40b})),'tables':(_0x16f43f=_0x474c38[_0x2f6a46(0x1b7)])==null?void 0x0:_0x16f43f[_0x2f6a46(0x200)](_0x1ddc7d=>({..._0x1ddc7d})),'columnGroups':(_0x521dc4=_0x474c38[_0x2f6a46(0x24c)])==null?void 0x0:_0x521dc4['map'](_0x1ca51e=>{const _0x3ba0e2=_0x2f6a46;var _0x4ee516;return{..._0x1ca51e,'columns':(_0x4ee516=_0x1ca51e[_0x3ba0e2(0x22e)])==null?void 0x0:_0x4ee516['map'](_0x3a047a=>E(_0x3a047a))};}),'blockRanges':(_0x2e53b0=_0x474c38[_0x2f6a46(0x1ba)])==null?void 0x0:_0x2e53b0[_0x2f6a46(0x200)](_0xe60677=>({..._0xe60677})),'customRanges':(_0x33fcba=_0x474c38['customRanges'])==null?void 0x0:_0x33fcba[_0x2f6a46(0x200)](_0x49d08f=>({..._0x49d08f})),'customDecorations':(_0xfadd5b=_0x474c38[_0x2f6a46(0x24f)])==null?void 0x0:_0xfadd5b['map'](_0x5ad929=>({..._0x5ad929})),'customBlocks':(_0x443b8c=_0x474c38[_0x2f6a46(0x1c4)])==null?void 0x0:_0x443b8c['map'](_0x256944=>({..._0x256944}))};}function E(_0x594720){const _0x2bd9ac=_0x1edc1f;return Array[_0x2bd9ac(0x215)](_0x594720)?_0x594720[_0x2bd9ac(0x200)](_0x51cb5c=>E(_0x51cb5c)):!_0x594720||typeof _0x594720!=_0x2bd9ac(0x1d0)?_0x594720:Object[_0x2bd9ac(0x1f6)](Object[_0x2bd9ac(0x1c9)](_0x594720)['map'](([_0x1e7ee8,_0x2f217d])=>[_0x1e7ee8,E(_0x2f217d)]));}function D(_0x23da4c){const _0x33d802=_0x1edc1f;if(!_0x23da4c[_0x33d802(0x1bf)])throw Error(_0x33d802(0x1dc));return _0x23da4c[_0x33d802(0x1bf)];}function ze(_0x1e2bce,_0x3295fa,_0x5c7f26,_0x4a0e7f='convert-paragraph'){const _0x301df6=_0x1edc1f;if(_0x3295fa==null||_0x5c7f26==null){let _0x2b733a=Ve(_0x1e2bce);return{'startOffset':_0x2b733a,'endOffset':_0x2b733a};}let _0x4d1e9a=Math[_0x301df6(0x21d)](_0x3295fa,_0x5c7f26),_0x179487=Math['max'](_0x3295fa,_0x5c7f26),_0x27816b=Ke(_0x1e2bce,_0x4d1e9a,_0x179487);return _0x4d1e9a===_0x179487?_0x4a0e7f===_0x301df6(0x23b)?{'startOffset':_0x4d1e9a,'endOffset':_0x179487}:Be(_0x1e2bce,_0x4d1e9a,_0x27816b):Ue(_0x1e2bce,_0x4d1e9a,_0x179487,_0x27816b);}function Be(_0x313d01,_0x4ab787,_0x1fd7e8){const _0x1b5f80=_0x1edc1f;let _0x14071c=We(_0x313d01,_0x4ab787);if(_0x14071c){let _0x1c5a35=O(_0x313d01,_0x14071c,_0x1fd7e8);if(_0x1c5a35<_0x14071c['startIndex'])return{'startOffset':_0x1c5a35,'endOffset':_0x1fd7e8?Math[_0x1b5f80(0x21d)](_0x14071c['startIndex']+0x1,_0x1fd7e8['endOffset']):_0x14071c[_0x1b5f80(0x209)]+0x1};}let _0x5e3b24=_0x4ab787===0x0&&_0x313d01[_0x1b5f80(0x213)][0x0]===_0x43b06f[_0x1b5f80(0x202)]?0x1:_0x4ab787;return{'startOffset':_0x5e3b24,'endOffset':_0x5e3b24};}function Ve(_0x4bd124){const _0x30a261=_0x1edc1f;return _0x4bd124[_0x30a261(0x213)]['endsWith'](_0x43b06f[_0x30a261(0x221)])?Math['max'](0x0,_0x4bd124[_0x30a261(0x213)][_0x30a261(0x1d8)]-0x1):_0x4bd124[_0x30a261(0x213)][_0x30a261(0x1d8)];}function He(_0x2772cd,_0x55222c,_0x3fa04a){const _0x57f7cd=_0x1edc1f;var _0x25893e;let _0x58d03f=Math['min'](_0x55222c,_0x3fa04a),_0x1e2a6f=Math[_0x57f7cd(0x255)](_0x55222c,_0x3fa04a);return!!((_0x25893e=_0x2772cd[_0x57f7cd(0x1b7)])!=null&&_0x25893e['some'](_0x1c9ab3=>_0x58d03f>_0x1c9ab3['startIndex']&&_0x58d03f<_0x1c9ab3['endIndex']||_0x1e2a6f>_0x1c9ab3['startIndex']&&_0x1e2a6f<_0x1c9ab3['endIndex']||_0x58d03f<=_0x1c9ab3[_0x57f7cd(0x209)]&&_0x1e2a6f>=_0x1c9ab3['endIndex']));}function Ue(_0x5caaa6,_0x37be9d,_0x4197d9,_0x3d98f7){const _0x222982=_0x1edc1f;var _0x5c03ad,_0x48d39a;let _0x2f18d3=[...(_0x5c03ad=_0x5caaa6[_0x222982(0x1c7)])==null?[]:_0x5c03ad]['sort']((_0x39e6c7,_0x58f275)=>_0x39e6c7['startIndex']-_0x58f275[_0x222982(0x209)]),_0x6d6f7c=_0xfa281d(_0x5caaa6),_0x1b0422=_0x2f18d3[_0x222982(0x212)](_0x511870=>O(_0x5caaa6,_0x511870,_0x3d98f7,_0x6d6f7c)<=_0x37be9d&&_0x37be9d<=_0x511870[_0x222982(0x209)]),_0x10e20f=(_0x48d39a=_0x2f18d3[_0x222982(0x212)](_0x1dae8f=>_0x1dae8f[_0x222982(0x209)]>=_0x4197d9-0x1))==null?_0x2f18d3[_0x2f18d3[_0x222982(0x1d8)]-0x1]:_0x48d39a;return{'startOffset':_0x1b0422?O(_0x5caaa6,_0x1b0422,_0x3d98f7,_0x6d6f7c):_0x37be9d,'endOffset':_0x10e20f?Ge(_0x10e20f,_0x3d98f7):_0x4197d9};}function We(_0x2cfd43,_0x30ae6b){const _0x555386=_0x1edc1f;var _0x574a76;let _0x407150=[...(_0x574a76=_0x2cfd43[_0x555386(0x1c7)])==null?[]:_0x574a76][_0x555386(0x1ef)]((_0x4ad069,_0x2d67a5)=>_0x4ad069[_0x555386(0x209)]-_0x2d67a5['startIndex']),_0x3072bf=_0xfa281d(_0x2cfd43);return _0x407150[_0x555386(0x212)](_0x34f090=>{const _0x1f3156=_0x555386;var _0x3954c2;return((_0x3954c2=_0x3072bf['get'](_0x34f090[_0x1f3156(0x209)]))==null?0x0:_0x3954c2)<=_0x30ae6b&&_0x30ae6b<=_0x34f090[_0x1f3156(0x209)];});}function O(_0x195e3c,_0x8b32e6,_0x29a97c,_0x43aa1f){const _0x4422f6=_0x1edc1f;var _0x29cb00;let _0x5f1912=(_0x29cb00=_0x43aa1f==null?void 0x0:_0x43aa1f[_0x4422f6(0x1c5)](_0x8b32e6[_0x4422f6(0x209)]))==null?_0x120216(_0x195e3c,_0x8b32e6):_0x29cb00;return _0x29a97c?Math['max'](_0x5f1912,_0x29a97c[_0x4422f6(0x232)]):_0x5f1912;}function _0x8e72(){const _0x39c2a7=['constructor','config','range','filter','customBlocks','get','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','paragraphs','endIndex','entries','CODE','indentEnd','_resourceManagerService','reduce','33414zhlrmf','delete','object','getUnit','indentStart','asObservable','paragraphStartIndex','spaceBelow','customRanges','clear','length','direction','syncExecuteCommand','docs-code.command.insert','Document\x20body\x20is\x20required','36cpAREC','32PQMKrg','prototype','getCurrentUnitOfType','3169592BrLEop','registerCommand','endOffset','blockId','125796jcPnRf','parse','endTokenOffset','dispose','_setResource','_resources','next','codes','624555AgKcGI','deserialize','sort','setConfig','getSnapshot','sectionBreaks','paragraphStyle','_initResource','_docsCodeModel','fromEntries','replaceDocRanges','docs-code.command.insert-below','getCodeConfig','removeUnit','nextMetadata','right','version','previousDocumentData','toPrimitive','map','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','PARAGRAPH','insertOp','getParagraphsInRange','_configService','726450eooLjA','getUnitId','docs-code.command.cancel-empty-paragraph','startIndex','paragraph','8596379eAHdDC','insert','_change$','setCodeConfig','removeCode','blockType','set','find','dataStream','paragraphId','isArray','startTokenOffset','docs-code.command.remove','replaceOp','docs-code.command.update','slice','insertionMode','compose','min','symbol','insertLength','defineProperty','SECTION_BREAK','decorate','getTextRanges','_config','add','1.0.0-alpha.5','packageName','deleteLength','getInstance','pluginName','default','bullet','some','columns','TABLE_CELL_START','UNIVER_DOC','docs-code.command.consume-boundary-delete','startOffset','type','TABLE_CELL_END','textRuns','_injector','COMMAND','@univerjs-pro/docs-code','stringify','DOC_CODE_PLUGIN','insert-new','start','disposeWithMe','427rcytkD','cursorOffset','editOp','BLOCK_END','unitId','nextDocumentData','documentData','handler','function','metadata','retain','_commandService','keys','string','columnGroups','model','commandService','customDecorations','spaceAbove','BLOCK_START','javascript','monospace','102tsDXdL','max','18eXrUOc','push','forEach','left','tables','selectionManager','docs-code.config','blockRanges','getBody','1691340ekNFtK','textStyle','serialize','body'];_0x8e72=function(){return _0x39c2a7;};return _0x8e72();}function Ge(_0x293382,_0x4a7339){const _0x36c01d=_0x1edc1f;let _0x36086a=_0x293382['startIndex']+0x1;return _0x4a7339?Math[_0x36c01d(0x21d)](_0x36086a,_0x4a7339[_0x36c01d(0x1e3)]):_0x36086a;}function Ke(_0x51acc4,_0x4726ef,_0x122a9a){const _0x39e9be=_0x1edc1f;let _0x3451b8=qe(_0x51acc4,_0x4726ef),_0x282a9d=qe(_0x51acc4,_0x4726ef===_0x122a9a?_0x122a9a:Math[_0x39e9be(0x255)](_0x4726ef,_0x122a9a-0x1));if(!(!_0x3451b8&&!_0x282a9d)){if(!_0x3451b8||!_0x282a9d||_0x3451b8[_0x39e9be(0x216)]!==_0x282a9d[_0x39e9be(0x216)]||_0x3451b8[_0x39e9be(0x1e7)]!==_0x282a9d[_0x39e9be(0x1e7)])throw new w();return _0x3451b8;}}function qe(_0x327038,_0x244c8a){const _0x53ef0e=_0x1edc1f;let _0x1a9b4f=_0x327038[_0x53ef0e(0x213)],_0x44e4ca=-0x1;for(let _0x36c1b3=Math['min'](_0x244c8a,_0x1a9b4f['length']-0x1);_0x36c1b3>=0x0;_0x36c1b3--){let _0x565fd2=_0x1a9b4f[_0x36c1b3];if(_0x565fd2===_0x43b06f[_0x53ef0e(0x234)])return;if(_0x565fd2===_0x43b06f[_0x53ef0e(0x22f)]){_0x44e4ca=_0x36c1b3;break;}}if(_0x44e4ca<0x0)return;let _0x301ca3=_0x1a9b4f['indexOf'](_0x43b06f[_0x53ef0e(0x234)],_0x44e4ca+0x1);if(!(_0x301ca3<0x0||_0x244c8a<_0x44e4ca+0x1||_0x244c8a>_0x301ca3-0x1))return{'startOffset':_0x44e4ca+0x1,'endOffset':Math['max'](_0x44e4ca+0x1,_0x301ca3-0x1),'startTokenOffset':_0x44e4ca,'endTokenOffset':_0x301ca3};}function k(_0x1ceff5){const _0x3abe2e=_0x1edc1f;return _0x4a1bb2(_0x1ceff5)[_0x3abe2e(0x1e3)]-0x1;}function Je(_0x3cfc2b,_0x851298,_0x14102e,_0x44e5d1){const _0x591bfb=_0x1edc1f;var _0x3fc070;let _0x5dd03d=k(_0x851298),_0x334d6c=((_0x3fc070=_0x3cfc2b['paragraphs'])==null?[]:_0x3fc070)[_0x591bfb(0x212)](_0x1c9ad0=>_0x1c9ad0['startIndex']===_0x5dd03d+0x1);if(!_0x334d6c||_0x44e5d1!=null&&_0x334d6c[_0x591bfb(0x209)]!==_0x44e5d1||_0x14102e!=null&&(_0x14102e<_0x5dd03d||_0x14102e>_0x334d6c[_0x591bfb(0x209)]+0x1)||_0x3cfc2b[_0x591bfb(0x213)][_0x334d6c['startIndex']]!==_0x43b06f['PARAGRAPH'])return null;let _0x2edc6c=_0x120216(_0x3cfc2b,_0x334d6c),_0x386a2f=_0x3cfc2b[_0x591bfb(0x213)][_0x591bfb(0x21a)](_0x2edc6c,_0x334d6c[_0x591bfb(0x209)]);return Array['from'](_0x386a2f)['every'](_0x28c881=>_0x28c881===_0x43b06f['BLOCK_END'])?{'paragraph':_0x334d6c,'endTokenOffset':_0x5dd03d}:null;}function A(_0x8b786,_0x1277d4){const _0x482353=_0x1edc1f;var _0x521d0f;let _0x71585c=k(_0x1277d4),_0x5272ee=_0x8b786[_0x482353(0x213)][_0x71585c+0x1];_0x5272ee!==_0x43b06f[_0x482353(0x221)]&&_0x5272ee!==void 0x0||j(_0x8b786,_0x71585c+0x1,_0x43b06f[_0x482353(0x202)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x5cfb3a(new Set((_0x521d0f=_0x8b786[_0x482353(0x1c7)])==null?void 0x0:_0x521d0f[_0x482353(0x200)](_0x1f1ab3=>_0x1f1ab3[_0x482353(0x214)])))}]});}function j(_0x4e0ad8,_0x41ce78,_0x376913,_0x5a3652={}){const _0x923f57=_0x1edc1f;var _0x3dfb23,_0x156807;if(_0x376913){if(_0x4e0ad8[_0x923f57(0x213)]=''+_0x4e0ad8[_0x923f57(0x213)][_0x923f57(0x21a)](0x0,_0x41ce78)+_0x376913+_0x4e0ad8[_0x923f57(0x213)][_0x923f57(0x21a)](_0x41ce78),Ye(_0x4e0ad8,_0x41ce78,_0x376913[_0x923f57(0x1d8)]),(_0x3dfb23=_0x5a3652[_0x923f57(0x1c7)])!=null&&_0x3dfb23['length']){var _0x560979;_0x4e0ad8['paragraphs']=[...(_0x560979=_0x4e0ad8['paragraphs'])==null?[]:_0x560979,..._0x5a3652[_0x923f57(0x1c7)][_0x923f57(0x200)](_0x1e1138=>({..._0x1e1138,'startIndex':_0x1e1138[_0x923f57(0x209)]+_0x41ce78}))][_0x923f57(0x1ef)]((_0x581a7f,_0x493f48)=>_0x581a7f['startIndex']-_0x493f48[_0x923f57(0x209)]);}if((_0x156807=_0x5a3652['blockRanges'])!=null&&_0x156807['length']){var _0x5eb810;_0x4e0ad8[_0x923f57(0x1ba)]=[...(_0x5eb810=_0x4e0ad8[_0x923f57(0x1ba)])==null?[]:_0x5eb810,..._0x5a3652[_0x923f57(0x1ba)][_0x923f57(0x200)](_0x23af5b=>({..._0x23af5b,'startIndex':_0x23af5b[_0x923f57(0x209)]+_0x41ce78,'endIndex':_0x23af5b[_0x923f57(0x1c8)]+_0x41ce78}))][_0x923f57(0x1ef)]((_0x25efdc,_0x1aa5bc)=>_0x25efdc[_0x923f57(0x209)]-_0x1aa5bc[_0x923f57(0x209)]);}}}function M(_0x2107f2,_0x5a9d66,_0x605d1b){const _0xa9c126=_0x1edc1f;let _0x5efc7d=_0x605d1b-_0x5a9d66;_0x2107f2[_0xa9c126(0x213)]=''+_0x2107f2[_0xa9c126(0x213)][_0xa9c126(0x21a)](0x0,_0x5a9d66)+_0x2107f2[_0xa9c126(0x213)][_0xa9c126(0x21a)](_0x605d1b),Xe(_0x2107f2,_0x5a9d66,_0x5efc7d);}function Ye(_0x27522b,_0x31bdb3,_0xe28e98){const _0xa52bbd=_0x1edc1f;_0x27522b[_0xa52bbd(0x1c7)]=N(_0x27522b[_0xa52bbd(0x1c7)],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x1f2)]=N(_0x27522b[_0xa52bbd(0x1f2)],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x1c4)]=N(_0x27522b[_0xa52bbd(0x1c4)],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x235)]=Ze(_0x27522b[_0xa52bbd(0x235)],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x1b7)]=Qe(_0x27522b['tables'],_0x31bdb3,_0xe28e98),_0x27522b['columnGroups']=F(_0x27522b['columnGroups'],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x1d6)]=F(_0x27522b['customRanges'],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x24f)]=F(_0x27522b['customDecorations'],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x1ba)]=F(_0x27522b[_0xa52bbd(0x1ba)],_0x31bdb3,_0xe28e98);}function Xe(_0x585b0f,_0x413ff8,_0x1662bf){const _0x32b9b2=_0x1edc1f;var _0x4a2d3a,_0x3af86f;_0x585b0f[_0x32b9b2(0x1c7)]=P(_0x585b0f[_0x32b9b2(0x1c7)],_0x413ff8,_0x1662bf),_0x585b0f['sectionBreaks']=P(_0x585b0f[_0x32b9b2(0x1f2)],_0x413ff8,_0x1662bf),_0x585b0f[_0x32b9b2(0x1c4)]=P(_0x585b0f[_0x32b9b2(0x1c4)],_0x413ff8,_0x1662bf),_0x585b0f[_0x32b9b2(0x235)]=(_0x4a2d3a=$e((_0x3af86f=_0x585b0f[_0x32b9b2(0x235)])==null?void 0x0:_0x3af86f[_0x32b9b2(0x200)](_0x532b78=>({..._0x532b78,'startIndex':_0x532b78['st'],'endIndex':_0x532b78['ed']})),_0x413ff8,_0x1662bf))==null?void 0x0:_0x4a2d3a[_0x32b9b2(0x200)](_0x1304a0=>{let {startIndex:_0x4a4620,endIndex:_0x3eb96d,..._0x7b8602}=_0x1304a0;return{..._0x7b8602,'st':_0x4a4620,'ed':_0x3eb96d};}),_0x585b0f['tables']=$e(_0x585b0f[_0x32b9b2(0x1b7)],_0x413ff8,_0x1662bf),_0x585b0f['columnGroups']=I(_0x585b0f['columnGroups'],_0x413ff8,_0x1662bf),_0x585b0f[_0x32b9b2(0x1d6)]=I(_0x585b0f[_0x32b9b2(0x1d6)],_0x413ff8,_0x1662bf),_0x585b0f[_0x32b9b2(0x24f)]=I(_0x585b0f[_0x32b9b2(0x24f)],_0x413ff8,_0x1662bf),_0x585b0f[_0x32b9b2(0x1ba)]=I(_0x585b0f[_0x32b9b2(0x1ba)],_0x413ff8,_0x1662bf);}function N(_0x173330,_0x576081,_0x398334){const _0x11ab3e=_0x1edc1f;return _0x173330==null?void 0x0:_0x173330[_0x11ab3e(0x200)](_0x2b2737=>_0x2b2737[_0x11ab3e(0x209)]>=_0x576081?{..._0x2b2737,'startIndex':_0x2b2737[_0x11ab3e(0x209)]+_0x398334}:_0x2b2737);}function P(_0x4362bb,_0x2d3740,_0x42bbb5){const _0x231117=_0x1edc1f;let _0x5e213c=_0x2d3740+_0x42bbb5;return _0x4362bb==null?void 0x0:_0x4362bb[_0x231117(0x200)](_0x44647f=>_0x44647f[_0x231117(0x209)]>=_0x2d3740&&_0x44647f[_0x231117(0x209)]<_0x5e213c?null:_0x44647f['startIndex']>=_0x5e213c?{..._0x44647f,'startIndex':_0x44647f[_0x231117(0x209)]-_0x42bbb5}:_0x44647f)[_0x231117(0x1c3)](_0x38c18d=>_0x38c18d!=null);}function Ze(_0x28329,_0x135f68,_0x2921a6){const _0x266ff6=_0x1edc1f;return _0x28329==null?void 0x0:_0x28329[_0x266ff6(0x200)](_0x5ad48=>_0x5ad48['st']>=_0x135f68?{..._0x5ad48,'st':_0x5ad48['st']+_0x2921a6,'ed':_0x5ad48['ed']+_0x2921a6}:_0x5ad48['ed']>_0x135f68?{..._0x5ad48,'ed':_0x5ad48['ed']+_0x2921a6}:_0x5ad48);}function F(_0x9f8b7c,_0x49427f,_0x3614a6){const _0x5e982f=_0x1edc1f;return _0x9f8b7c==null?void 0x0:_0x9f8b7c[_0x5e982f(0x200)](_0x204faf=>_0x5bff0d(_0x204faf,_0x49427f,_0x3614a6));}function Qe(_0x41a0fc,_0x17fe16,_0x5c4771){const _0x1e168b=_0x1edc1f;return _0x41a0fc==null?void 0x0:_0x41a0fc[_0x1e168b(0x200)](_0x52cb67=>_0x2dea21(_0x52cb67,_0x17fe16,_0x5c4771));}function I(_0x5b7bca,_0x4e2c5b,_0x305bce){const _0x5a5875=_0x1edc1f;return _0x5b7bca==null?void 0x0:_0x5b7bca[_0x5a5875(0x200)](_0x54a1d4=>_0x3a6def(_0x54a1d4,_0x4e2c5b,_0x305bce))[_0x5a5875(0x1c3)](_0x5a48fc=>_0x5a48fc!=null);}function $e(_0x580c67,_0x3e38ae,_0x35be3f){const _0x9aad91=_0x1edc1f;return _0x580c67==null?void 0x0:_0x580c67[_0x9aad91(0x200)](_0x2ad4ad=>_0x1c7981(_0x2ad4ad,_0x3e38ae,_0x35be3f))['filter'](_0x17dfb4=>_0x17dfb4!=null);}function L(_0x3b899a){'@babel/helpers - typeof';return L=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x299715){return typeof _0x299715;}:function(_0x213cdf){const _0x4280e8=_0x23a6;return _0x213cdf&&typeof Symbol==_0x4280e8(0x246)&&_0x213cdf[_0x4280e8(0x1c0)]===Symbol&&_0x213cdf!==Symbol[_0x4280e8(0x1df)]?_0x4280e8(0x21e):typeof _0x213cdf;},L(_0x3b899a);}function et(_0x6d9f6e,_0x591df4){const _0x159597=_0x1edc1f;if(L(_0x6d9f6e)!=_0x159597(0x1d0)||!_0x6d9f6e)return _0x6d9f6e;var _0xe02695=_0x6d9f6e[Symbol[_0x159597(0x1ff)]];if(_0xe02695!==void 0x0){var _0x51aced=_0xe02695['call'](_0x6d9f6e,_0x591df4||_0x159597(0x22b));if(L(_0x51aced)!=_0x159597(0x1d0))return _0x51aced;throw TypeError(_0x159597(0x201));}return(_0x591df4===_0x159597(0x24b)?String:Number)(_0x6d9f6e);}function tt(_0x5131ee){const _0x6db2e1=_0x1edc1f;var _0x2762ca=et(_0x5131ee,_0x6db2e1(0x24b));return L(_0x2762ca)==_0x6db2e1(0x21e)?_0x2762ca:_0x2762ca+'';}function R(_0x52061a,_0x301eb9,_0x3666f7){const _0x5a7a91=_0x1edc1f;return(_0x301eb9=tt(_0x301eb9))in _0x52061a?Object[_0x5a7a91(0x220)](_0x52061a,_0x301eb9,{'value':_0x3666f7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x52061a[_0x301eb9]=_0x3666f7,_0x52061a;}var z=class extends _0x11f1e7{constructor(..._0x4293ae){const _0xa9b073=_0x1edc1f;super(..._0x4293ae),R(this,_0xa9b073(0x1ea),new Map()),R(this,'_change$',new _0x3b77df()),R(this,'change$',this['_change$'][_0xa9b073(0x1d3)]());}[_0x1edc1f(0x1f9)](_0x137ef2,_0x573a48){const _0x6ba313=_0x1edc1f;return x(this[_0x6ba313(0x1ea)][_0x6ba313(0x1c5)](_0x137ef2))[_0x6ba313(0x1ec)][_0x573a48];}[_0x1edc1f(0x20e)](_0x59afdc,_0x48b802,_0x138a2a){const _0x47e1de=_0x1edc1f;this[_0x47e1de(0x1e9)](_0x59afdc,_0x48b802,S(this[_0x47e1de(0x1ea)][_0x47e1de(0x1c5)](_0x59afdc),_0x48b802,_0x138a2a));}[_0x1edc1f(0x20f)](_0x2b8a47,_0x17bdfd){const _0x52486f=_0x1edc1f;this[_0x52486f(0x1e9)](_0x2b8a47,_0x17bdfd,C(this['_resources']['get'](_0x2b8a47),_0x17bdfd));}['serialize'](_0x1127c7){const _0x36b5c4=_0x1edc1f;return x(this[_0x36b5c4(0x1ea)][_0x36b5c4(0x1c5)](_0x1127c7));}[_0x1edc1f(0x1ee)](_0x167424,_0x3c0f94){const _0x2805ee=_0x1edc1f;this[_0x2805ee(0x1ea)]['set'](_0x167424,x(_0x3c0f94)),this[_0x2805ee(0x20d)][_0x2805ee(0x1eb)]({'unitId':_0x167424});}[_0x1edc1f(0x1fa)](_0x11ab7f){const _0xa509e2=_0x1edc1f;this['_resources'][_0xa509e2(0x1cf)](_0x11ab7f),this[_0xa509e2(0x20d)][_0xa509e2(0x1eb)]({'unitId':_0x11ab7f});}[_0x1edc1f(0x1e8)](){const _0x687d96=_0x1edc1f;super['dispose'](),this[_0x687d96(0x1ea)][_0x687d96(0x1d7)](),this[_0x687d96(0x20d)]['complete']();}['_setResource'](_0x3222d2,_0x3d5508,_0x30019d){const _0x4fe003=_0x1edc1f;this[_0x4fe003(0x1ea)][_0x4fe003(0x211)](_0x3222d2,_0x30019d),this[_0x4fe003(0x20d)]['next']({'unitId':_0x3222d2,'blockId':_0x3d5508});}};const nt={'id':_0x1edc1f(0x1f8),'type':_0x3aa002[_0x1edc1f(0x237)],'handler':_0x1299d4=>{const _0x6ca46c=_0x1edc1f;var _0x1cbe0f;if(_0xaf3991(G(_0x1299d4)))return!0x1;let _0x5de034=_0x517640(_0x1299d4);if(_0x5de034)return _0x1299d4[_0x6ca46c(0x1c5)](_0x1d61d6)[_0x6ca46c(0x1da)](B['id'],{'startOffset':_0x5de034['startOffset'],'endOffset':_0x5de034[_0x6ca46c(0x1e3)],'insertionMode':_0x6ca46c(0x23b),'unitId':_0x5de034['unitId']});let _0x5b8e57=lt(_0x1299d4);if(!_0x5b8e57)return!0x1;let _0xd7e1ed=(_0x1cbe0f=_0x1299d4[_0x6ca46c(0x1c5)](_0x45d141)[_0x6ca46c(0x1e0)](_0x41a83a[_0x6ca46c(0x230)]))==null?void 0x0:_0x1cbe0f[_0x6ca46c(0x1bb)](),_0x4dc5a3=_0xd7e1ed?_0x2be263(_0xd7e1ed,_0x5b8e57):_0x5b8e57[_0x6ca46c(0x209)]+0x1;return _0x1299d4[_0x6ca46c(0x1c5)](_0x1d61d6)['syncExecuteCommand'](B['id'],{'startOffset':_0x4dc5a3,'endOffset':_0x4dc5a3});}},rt={'id':_0x1edc1f(0x231),'type':_0x3aa002[_0x1edc1f(0x237)],'handler':()=>!0x0},B={'id':_0x1edc1f(0x1db),'type':_0x3aa002[_0x1edc1f(0x237)],'handler':(_0x51d502,_0x5cbfc6)=>{const _0x2c49b1=_0x1edc1f;var _0x314c02;let _0x1c88e1=W(_0x51d502,_0x5cbfc6==null?void 0x0:_0x5cbfc6[_0x2c49b1(0x242)]);if(!_0x1c88e1)return!0x1;let _0x50f317=G(_0x51d502);if(_0xaf3991(_0x50f317))return!0x1;let _0x11a8b9=_0x1c88e1['model'][_0x2c49b1(0x1be)](_0x1c88e1['unitId']),_0x1f840f=ot(_0x5cbfc6,_0x50f317),_0x58d62b=st(_0x1c88e1['previousDocumentData'],_0x1f840f);if(_0x58d62b){if(_0x58d62b[_0x2c49b1(0x210)]!==_0x37a99f[_0x2c49b1(0x1ca)])return!0x1;let _0x45126f=Ee({'blockId':_0x58d62b[_0x2c49b1(0x1e4)],'documentData':_0x1c88e1[_0x2c49b1(0x1fe)],'metadata':_0x11a8b9});if(!_0x45126f)return!0x1;let _0x337949=Y(_0x1c88e1[_0x2c49b1(0x24e)],_0x1c88e1[_0x2c49b1(0x1b8)],_0x1c88e1[_0x2c49b1(0x242)],_0x1c88e1[_0x2c49b1(0x1fe)],_0x45126f[_0x2c49b1(0x243)],B['id'],_0x45126f['cursorOffset']);return _0x337949&&_0x45126f[_0x2c49b1(0x1fb)]&&_0x1c88e1[_0x2c49b1(0x24d)][_0x2c49b1(0x1ee)](_0x1c88e1[_0x2c49b1(0x242)],_0x45126f['nextMetadata']),_0x337949;}let _0x52408c=(_0x314c02=_0x5cbfc6==null?void 0x0:_0x5cbfc6[_0x2c49b1(0x1e4)])==null?_0x35a556(0x6):_0x314c02,_0x22d24b;try{_0x22d24b=xe({'blockId':_0x52408c,'config':_0x5cbfc6==null?void 0x0:_0x5cbfc6[_0x2c49b1(0x1c1)],'documentData':_0x1c88e1['previousDocumentData'],'endOffset':_0x1f840f==null?void 0x0:_0x1f840f[_0x2c49b1(0x1e3)],'insertionMode':_0x5cbfc6==null?void 0x0:_0x5cbfc6[_0x2c49b1(0x21b)],'metadata':_0x11a8b9,'startOffset':_0x1f840f==null?void 0x0:_0x1f840f[_0x2c49b1(0x232)]});}catch(_0x1a8da2){if(_0x1a8da2 instanceof w)return!0x1;throw _0x1a8da2;}let _0x21e3eb=Y(_0x1c88e1[_0x2c49b1(0x24e)],_0x1c88e1['selectionManager'],_0x1c88e1[_0x2c49b1(0x242)],_0x1c88e1[_0x2c49b1(0x1fe)],_0x22d24b[_0x2c49b1(0x243)],B['id'],_0x22d24b['cursorOffset']);return _0x21e3eb&&_0x22d24b[_0x2c49b1(0x1fb)]&&_0x1c88e1[_0x2c49b1(0x24d)][_0x2c49b1(0x1ee)](_0x1c88e1[_0x2c49b1(0x242)],_0x22d24b[_0x2c49b1(0x1fb)]),_0x21e3eb;}},it={'id':_0x1edc1f(0x219),'type':_0x3aa002[_0x1edc1f(0x237)],'handler':(_0x2b4099,_0x62152c)=>{const _0x427aa2=_0x1edc1f;if(!_0x62152c)return!0x1;let _0x1c4820=W(_0x2b4099,_0x62152c[_0x427aa2(0x242)]);if(!_0x1c4820)return!0x1;let _0xd96c8=Te({'blockId':_0x62152c[_0x427aa2(0x1e4)],'config':_0x62152c[_0x427aa2(0x1c1)],'documentData':_0x1c4820[_0x427aa2(0x1fe)],'metadata':_0x1c4820[_0x427aa2(0x24d)][_0x427aa2(0x1be)](_0x1c4820[_0x427aa2(0x242)])});return _0xd96c8[_0x427aa2(0x1fb)]&&_0x1c4820[_0x427aa2(0x24d)][_0x427aa2(0x1ee)](_0x1c4820[_0x427aa2(0x242)],_0xd96c8[_0x427aa2(0x1fb)]),!0x0;}},at={'id':'docs-code.command.exit','type':_0x3aa002[_0x1edc1f(0x237)],'handler':(_0x456bcb,_0x29383d)=>V[_0x1edc1f(0x245)](_0x456bcb,_0x29383d)},V={'id':'docs-code.command.unwrap','type':_0x3aa002[_0x1edc1f(0x237)],'handler':(_0x133b58,_0x5a87dd)=>{const _0x476c71=_0x1edc1f;if(!_0x5a87dd)return!0x1;let _0x2c5dfe=W(_0x133b58,_0x5a87dd==null?void 0x0:_0x5a87dd[_0x476c71(0x242)]);if(!_0x2c5dfe)return!0x1;let _0x16d910=Ee({'blockId':_0x5a87dd[_0x476c71(0x1e4)],'documentData':_0x2c5dfe[_0x476c71(0x1fe)],'metadata':_0x2c5dfe[_0x476c71(0x24d)][_0x476c71(0x1be)](_0x2c5dfe[_0x476c71(0x242)])});if(!_0x16d910)return!0x1;let _0x5bd894=Y(_0x2c5dfe[_0x476c71(0x24e)],_0x2c5dfe[_0x476c71(0x1b8)],_0x2c5dfe[_0x476c71(0x242)],_0x2c5dfe[_0x476c71(0x1fe)],_0x16d910['nextDocumentData'],V['id'],_0x16d910['cursorOffset']);return _0x5bd894&&_0x16d910[_0x476c71(0x1fb)]&&_0x2c5dfe['model'][_0x476c71(0x1ee)](_0x2c5dfe[_0x476c71(0x242)],_0x16d910[_0x476c71(0x1fb)]),_0x5bd894;}},H={'id':_0x1edc1f(0x217),'type':_0x3aa002['COMMAND'],'handler':(_0x228bfb,_0x5b4858)=>{const _0x594854=_0x1edc1f;if(!_0x5b4858)return!0x1;let _0x365f56=W(_0x228bfb,_0x5b4858==null?void 0x0:_0x5b4858[_0x594854(0x242)]);if(!_0x365f56)return!0x1;let _0x116f05=De({'blockId':_0x5b4858['blockId'],'documentData':_0x365f56[_0x594854(0x1fe)],'metadata':_0x365f56[_0x594854(0x24d)][_0x594854(0x1be)](_0x365f56[_0x594854(0x242)])});if(!_0x116f05)return!0x1;let _0x4782bf=Y(_0x365f56[_0x594854(0x24e)],_0x365f56[_0x594854(0x1b8)],_0x365f56[_0x594854(0x242)],_0x365f56[_0x594854(0x1fe)],_0x116f05[_0x594854(0x243)],H['id'],_0x116f05[_0x594854(0x23f)]);return _0x4782bf&&_0x116f05[_0x594854(0x1fb)]&&_0x365f56['model']['deserialize'](_0x365f56['unitId'],_0x116f05[_0x594854(0x1fb)]),_0x4782bf;}},U={'id':_0x1edc1f(0x208),'type':_0x3aa002[_0x1edc1f(0x237)],'handler':(_0x2665c4,_0x492459)=>{const _0x1fb50d=_0x1edc1f;var _0x2358ee,_0x19c2dd;let _0x38ef90=W(_0x2665c4,_0x492459==null?void 0x0:_0x492459['unitId']);if(!_0x38ef90)return!0x1;let _0x4e4483=(_0x2358ee=_0x492459==null?void 0x0:_0x492459[_0x1fb50d(0x23f)])==null?(_0x19c2dd=G(_0x2665c4))==null?void 0x0:_0x19c2dd['startOffset']:_0x2358ee;if(_0x4e4483==null)return!0x1;let _0x1f1ebe=Oe({'cursorOffset':_0x4e4483,'documentData':_0x38ef90[_0x1fb50d(0x1fe)],'paragraphStartIndex':_0x492459==null?void 0x0:_0x492459['paragraphStartIndex']});return _0x1f1ebe?Y(_0x38ef90[_0x1fb50d(0x24e)],_0x38ef90[_0x1fb50d(0x1b8)],_0x38ef90[_0x1fb50d(0x242)],_0x38ef90['previousDocumentData'],_0x1f1ebe['nextDocumentData'],U['id'],_0x1f1ebe[_0x1fb50d(0x23f)]):!0x1;}};function W(_0x38bb69,_0x23551e){const _0x42c831=_0x1edc1f;let _0x7c4f2f=_0x38bb69[_0x42c831(0x1c5)](_0x45d141),_0x2c6831=_0x23551e?_0x7c4f2f[_0x42c831(0x1d1)](_0x23551e,_0x41a83a['UNIVER_DOC']):_0x7c4f2f[_0x42c831(0x1e0)](_0x41a83a[_0x42c831(0x230)]);return _0x2c6831?{'commandService':_0x38bb69[_0x42c831(0x1c5)](_0x1d61d6),'model':_0x38bb69[_0x42c831(0x1c5)](z),'previousDocumentData':_0x2c6831[_0x42c831(0x1f1)](),'selectionManager':_0x38bb69[_0x42c831(0x1c5)](_0x2ed20d),'unitId':_0x2c6831[_0x42c831(0x207)]()}:null;}function G(_0x3b88c5){const _0x5f526e=_0x1edc1f;var _0x59663d;return(_0x59663d=_0x3b88c5[_0x5f526e(0x1c5)](_0x2ed20d)[_0x5f526e(0x223)]())==null?void 0x0:_0x59663d[0x0];}function ot(_0x5434fd,_0x278b13){const _0x352e8a=_0x1edc1f;var _0x5ef020,_0xac05ce;let _0x134fcb=(_0x5ef020=_0x5434fd==null?void 0x0:_0x5434fd[_0x352e8a(0x232)])==null?_0x278b13==null?void 0x0:_0x278b13[_0x352e8a(0x232)]:_0x5ef020,_0xf21aba=(_0xac05ce=_0x5434fd==null?void 0x0:_0x5434fd[_0x352e8a(0x1e3)])==null?_0x278b13==null?void 0x0:_0x278b13['endOffset']:_0xac05ce;if(!(_0x134fcb==null||_0xf21aba==null))return{'endOffset':Math[_0x352e8a(0x255)](_0x134fcb,_0xf21aba),'startOffset':Math['min'](_0x134fcb,_0xf21aba)};}function st(_0x285f17,_0x425f11){const _0x1ccc35=_0x1edc1f;var _0xf9d1e9;if(!_0x425f11)return;let _0x42430f=ct(_0x425f11);return(_0xf9d1e9=_0x285f17[_0x1ccc35(0x1bf)])==null||(_0xf9d1e9=_0xf9d1e9[_0x1ccc35(0x1ba)])==null?void 0x0:_0xf9d1e9[_0x1ccc35(0x212)](_0x5a1c45=>{const _0x1622c0=_0x1ccc35;let _0x368919=_0x4a1bb2(_0x5a1c45);return _0x425f11[_0x1622c0(0x232)]===_0x425f11[_0x1622c0(0x1e3)]?_0x52963d(_0x368919,_0x42430f):_0xf103f(_0x368919,_0x42430f);});}function ct(_0x4469b9){const _0x1c95f9=_0x1edc1f;return _0x4469b9[_0x1c95f9(0x232)]===_0x4469b9['endOffset']?_0x4469b9[_0x1c95f9(0x232)]:_0x4469b9[_0x1c95f9(0x232)]+0x1;}function lt(_0x349823){const _0x49a036=_0x1edc1f;var _0x4132a8,_0x3ab5e5,_0x2a1833;let _0x169461=G(_0x349823);if(!_0x169461)return null;let _0x13c1c0=_0x349823['get'](_0x45d141)[_0x49a036(0x1e0)](_0x41a83a[_0x49a036(0x230)]),_0x3f5cc5=_0x13c1c0==null?void 0x0:_0x13c1c0['getBody']();return _0x3f5cc5?(_0x4132a8=_0xfcd91[_0x49a036(0x1c2)][_0x49a036(0x204)](_0x169461,(_0x3ab5e5=_0x3f5cc5['paragraphs'])==null?[]:_0x3ab5e5,(_0x2a1833=_0x3f5cc5['dataStream'])==null?'':_0x2a1833)[0x0])==null?null:_0x4132a8:null;}function ut(_0x4eedbd,_0x1617cd){const _0x58f9f3=_0x1edc1f;let _0x3aac93=_0x4eedbd[_0x58f9f3(0x1bf)],_0x1344ca=_0x1617cd[_0x58f9f3(0x1bf)],_0x7d55a5=_0x1817eb(_0x3aac93,_0x1344ca);return[_0x7d55a5&&_0x1344ca?dt(_0x1344ca,_0x7d55a5):null,_0x7d55a5?null:ft(_0x3aac93,_0x1344ca)][_0x58f9f3(0x1c3)](Boolean)[_0x58f9f3(0x1cd)]((_0x16d52a,_0x49e2fa)=>_0x3e4a71['compose'](_0x16d52a,_0x49e2fa),null);}function dt(_0x4433d9,_0x4f145c){const _0x233ddb=_0x1edc1f;let _0x2505dd=new _0x37143f();return _0x2505dd[_0x233ddb(0x248)](_0x4f145c[_0x233ddb(0x23c)]),_0x4f145c[_0x233ddb(0x21f)]>0x0&&_0x2505dd[_0x233ddb(0x20c)](_0x4f145c[_0x233ddb(0x21f)],_0x2fb9bb(_0x4433d9,_0x4f145c[_0x233ddb(0x23c)],_0x4f145c['start']+_0x4f145c[_0x233ddb(0x21f)],!0x1)),_0x4f145c[_0x233ddb(0x228)]>0x0&&_0x2505dd[_0x233ddb(0x1cf)](_0x4f145c[_0x233ddb(0x228)]),_0x3e4a71['getInstance']()[_0x233ddb(0x240)](_0x2505dd[_0x233ddb(0x1be)](),['body']);}function ft(_0x48fec7,_0x4c0831){const _0x4af238=_0x1edc1f;let _0x436df2=[],_0xb44f48=_0x48fec7?mt(_0x48fec7):void 0x0,_0x559897=_0x4c0831?mt(_0x4c0831):void 0x0;for(let _0xed924e of pt)K(_0x3e4a71[_0x4af238(0x229)](),['body',_0xed924e],_0xb44f48==null?void 0x0:_0xb44f48[_0xed924e],_0x559897==null?void 0x0:_0x559897[_0xed924e],_0x436df2);return _0x436df2['reduce']((_0x49ab30,_0x49244f)=>_0x3e4a71[_0x4af238(0x21c)](_0x49ab30,_0x49244f),null);}const pt=[_0x1edc1f(0x1c7),_0x1edc1f(0x1f2),_0x1edc1f(0x1b7),_0x1edc1f(0x24c),_0x1edc1f(0x1ba),_0x1edc1f(0x1c4),_0x1edc1f(0x1d6),_0x1edc1f(0x24f),_0x1edc1f(0x235)];function mt(_0x399380){return _0x399380;}function K(_0x2c2330,_0x87c84a,_0x2b97b6,_0x18a0c8,_0x33f94e){const _0x52f1a0=_0x1edc1f;if(!J(_0x2b97b6,_0x18a0c8)){if(_0x2b97b6==null){_0x33f94e['push'](_0x2c2330[_0x52f1a0(0x203)](_0x87c84a,_0x18a0c8));return;}if(_0x18a0c8==null){_0x33f94e[_0x52f1a0(0x257)](_0x2c2330['removeOp'](_0x87c84a,_0x2b97b6));return;}if(Array[_0x52f1a0(0x215)](_0x2b97b6)&&Array['isArray'](_0x18a0c8)){ht(_0x2c2330,_0x87c84a,_0x2b97b6,_0x18a0c8,_0x33f94e);return;}if(q(_0x2b97b6)&&q(_0x18a0c8)){new Set([...Object[_0x52f1a0(0x24a)](_0x2b97b6),...Object['keys'](_0x18a0c8)])[_0x52f1a0(0x258)](_0x1feff9=>{K(_0x2c2330,[..._0x87c84a,_0x1feff9],_0x2b97b6[_0x1feff9],_0x18a0c8[_0x1feff9],_0x33f94e);});return;}_0x33f94e[_0x52f1a0(0x257)](_0x2c2330[_0x52f1a0(0x218)](_0x87c84a,_0x2b97b6,_0x18a0c8));}}function ht(_0x38fa16,_0x33ccba,_0x2e174c,_0x1990d4,_0x3960df){const _0x24448a=_0x1edc1f;if(_0x2e174c[_0x24448a(0x1d8)]===_0x1990d4[_0x24448a(0x1d8)]){_0x2e174c[_0x24448a(0x258)]((_0x26c010,_0x4702c2)=>K(_0x38fa16,[..._0x33ccba,_0x4702c2],_0x26c010,_0x1990d4[_0x4702c2],_0x3960df));return;}let _0x498ee4=0x0;for(;_0x498ee4<_0x2e174c[_0x24448a(0x1d8)]&&_0x498ee4<_0x1990d4[_0x24448a(0x1d8)]&&J(_0x2e174c[_0x498ee4],_0x1990d4[_0x498ee4]);)_0x498ee4++;let _0x30a2a6=_0x2e174c[_0x24448a(0x1d8)]-0x1,_0x479fcc=_0x1990d4[_0x24448a(0x1d8)]-0x1;for(;_0x30a2a6>=_0x498ee4&&_0x479fcc>=_0x498ee4&&J(_0x2e174c[_0x30a2a6],_0x1990d4[_0x479fcc]);)_0x30a2a6--,_0x479fcc--;for(let _0x24c9eb=_0x30a2a6;_0x24c9eb>=_0x498ee4;_0x24c9eb--)_0x3960df[_0x24448a(0x257)](_0x38fa16['removeOp']([..._0x33ccba,_0x24c9eb],_0x2e174c[_0x24c9eb]));for(let _0x1beb4e=_0x498ee4;_0x1beb4e<=_0x479fcc;_0x1beb4e++)_0x3960df['push'](_0x38fa16[_0x24448a(0x203)]([..._0x33ccba,_0x1beb4e],_0x1990d4[_0x1beb4e]));}function q(_0x56dcc6){const _0x5310ad=_0x1edc1f;return typeof _0x56dcc6==_0x5310ad(0x1d0)&&!!_0x56dcc6&&!Array[_0x5310ad(0x215)](_0x56dcc6);}function J(_0x1e0222,_0x3f5ec5){const _0x595e24=_0x1edc1f;return JSON[_0x595e24(0x239)](_0x1e0222)===JSON[_0x595e24(0x239)](_0x3f5ec5);}function Y(_0x52af4b,_0x3c6e8a,_0x3aeeac,_0x4ae4dc,_0xea0621,_0x5c7f74,_0x2ba5d5){const _0x465c4c=_0x1edc1f;let _0x48908d=ut(_0x4ae4dc,_0xea0621);return _0x48908d?!!_0x52af4b[_0x465c4c(0x1da)](_0xc563fa['id'],{'unitId':_0x3aeeac,'actions':_0x48908d,'textRanges':[{'startOffset':_0x2ba5d5,'endOffset':_0x2ba5d5,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x5c7f74}):(_0x3c6e8a[_0x465c4c(0x1f7)]([{'startOffset':_0x2ba5d5,'endOffset':_0x2ba5d5}],{'unitId':_0x3aeeac,'subUnitId':_0x3aeeac},!0x1),!0x0);}const X=_0x1edc1f(0x23a);var gt=_0x1edc1f(0x238),_t=_0x1edc1f(0x226);const vt={};function Z(_0x12d672,_0x53d951){return function(_0x1286b1,_0xc98794){_0x53d951(_0x1286b1,_0xc98794,_0x12d672);};}function yt(_0x5d656f,_0x3f585c,_0x69d9a3,_0x1b8442){const _0x56e66a=_0x1edc1f;var _0x351313=arguments[_0x56e66a(0x1d8)],_0x28c126=_0x351313<0x3?_0x3f585c:_0x1b8442===null?_0x1b8442=Object['getOwnPropertyDescriptor'](_0x3f585c,_0x69d9a3):_0x1b8442,_0x524676;if(typeof Reflect==_0x56e66a(0x1d0)&&typeof Reflect[_0x56e66a(0x222)]==_0x56e66a(0x246))_0x28c126=Reflect[_0x56e66a(0x222)](_0x5d656f,_0x3f585c,_0x69d9a3,_0x1b8442);else{for(var _0x13ceb1=_0x5d656f[_0x56e66a(0x1d8)]-0x1;_0x13ceb1>=0x0;_0x13ceb1--)(_0x524676=_0x5d656f[_0x13ceb1])&&(_0x28c126=(_0x351313<0x3?_0x524676(_0x28c126):_0x351313>0x3?_0x524676(_0x3f585c,_0x69d9a3,_0x28c126):_0x524676(_0x3f585c,_0x69d9a3))||_0x28c126);}return _0x351313>0x3&&_0x28c126&&Object[_0x56e66a(0x220)](_0x3f585c,_0x69d9a3,_0x28c126),_0x28c126;}let Q=class extends _0x11f1e7{constructor(_0x38ac2b,_0x14d407){const _0x2f0bec=_0x1edc1f;super(),this[_0x2f0bec(0x1cc)]=_0x38ac2b,this[_0x2f0bec(0x1f5)]=_0x14d407,this[_0x2f0bec(0x1f4)]();}[_0x1edc1f(0x1f4)](){const _0x3222d1=_0x1edc1f;this[_0x3222d1(0x23d)](this['_resourceManagerService']['registerPluginResource']({'pluginName':X,'businesses':[_0x41a83a['UNIVER_DOC']],'toJson':_0x5e6d5d=>JSON[_0x3222d1(0x239)](this[_0x3222d1(0x1f5)][_0x3222d1(0x1be)](_0x5e6d5d)),'parseJson':_0x23f59e=>x(JSON[_0x3222d1(0x1e6)](_0x23f59e)),'onLoad':(_0x537f2c,_0x451d0b)=>this[_0x3222d1(0x1f5)][_0x3222d1(0x1ee)](_0x537f2c,_0x451d0b),'onUnLoad':_0xbdb392=>this['_docsCodeModel'][_0x3222d1(0x1fa)](_0xbdb392)}));}};Q=yt([Z(0x0,_0x50ae34),Z(0x1,_0x5c4b8b(z))],Q);let $=class extends _0x19b9cc{constructor(_0x3892b3=vt,_0x2e3095,_0x255e3e,_0x2b7c55){const _0x56b48e=_0x1edc1f;super(),this[_0x56b48e(0x224)]=_0x3892b3,this[_0x56b48e(0x236)]=_0x2e3095,this['_commandService']=_0x255e3e,this['_configService']=_0x2b7c55;let {..._0x27948e}=_0x559340({},vt,this[_0x56b48e(0x224)]);this[_0x56b48e(0x205)][_0x56b48e(0x1f0)](_0x56b48e(0x1b9),_0x27948e);}['onStarting'](){const _0x960035=_0x1edc1f;this[_0x960035(0x236)]['add']([z]),this[_0x960035(0x236)][_0x960035(0x225)]([Q]),this[_0x960035(0x236)][_0x960035(0x1c5)](z),this[_0x960035(0x236)]['get'](Q),[B,nt,it,V,H,at,U,rt][_0x960035(0x258)](_0x4247a0=>this[_0x960035(0x23d)](this[_0x960035(0x249)][_0x960035(0x1e2)](_0x4247a0)));}};R($,_0x1edc1f(0x22a),X),R($,_0x1edc1f(0x227),gt),R($,_0x1edc1f(0x1fd),_t),R($,_0x1edc1f(0x233),_0x41a83a['UNIVER_DOC']),$=yt([_0x2f1165(_0x4c3c74,_0x3f1e99),Z(0x1,_0x5c4b8b(_0x193e69)),Z(0x2,_0x1d61d6),Z(0x3,_0x4a9167)],$);export{X as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,rt as DocsCodeConsumeBoundaryDeleteCommand,nt as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,z as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,it as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,Oe as buildCancelEmptyCodeParagraphActions,je as isCodeBoundaryDelete,b as normalizeDocsCodeConfig};
|
|
1
|
+
const _0x18c3b6=_0x5d50;(function(_0x31dceb,_0x347800){const _0x25d675=_0x5d50,_0x39d196=_0x31dceb();while(!![]){try{const _0x170749=parseInt(_0x25d675(0x234))/0x1*(parseInt(_0x25d675(0x25e))/0x2)+parseInt(_0x25d675(0x1fc))/0x3+parseInt(_0x25d675(0x209))/0x4+parseInt(_0x25d675(0x26c))/0x5*(parseInt(_0x25d675(0x27d))/0x6)+parseInt(_0x25d675(0x1dd))/0x7*(-parseInt(_0x25d675(0x1de))/0x8)+-parseInt(_0x25d675(0x246))/0x9+-parseInt(_0x25d675(0x255))/0xa;if(_0x170749===_0x347800)break;else _0x39d196['push'](_0x39d196['shift']());}catch(_0x32fb82){_0x39d196['push'](_0x39d196['shift']());}}}(_0x528c,0x2e578));import{BuildTextUtils as _0x2d03d5,CommandType as _0x3be55c,DataStreamTreeTokenType as _0x345b07,DependentOn as _0x276851,Disposable as _0x4948fc,DocumentBlockRangeType as _0x235429,ICommandService as _0x4d0578,IConfigService as _0x293d21,IResourceManagerService as _0x1714ed,IUniverInstanceService as _0x346a74,Inject as _0x4f21b2,Injector as _0x28ac44,JSONX as _0x87d7fa,Plugin as _0x113499,TextX as _0x4e63ee,UniverInstanceType as _0xad7320,containsInteriorInsertionOffset as _0x4077aa,containsStreamIndex as _0x52034b,createParagraphId as _0xa4ecb,generateRandomId as _0x33805c,getBlockRangeInterval as _0x2cea6f,getBodySliceForTextXAction as _0x189863,getParagraphContentStartOffset as _0x3becf7,getParagraphContentStartOffsets as _0xa16992,getParagraphFollowingBlockOffset as _0x291143,getSingleDataStreamChange as _0x1eab78,intersectsOperationalIntervals as _0x12ce39,merge as _0x562bff,shiftExclusiveRangeOnDelete as _0x235aba,shiftExclusiveRangeOnInsert as _0x4bede0,shiftInclusiveRangeOnDelete as _0x160344,shiftInclusiveRangeOnInsert as _0x4ca3f5}from'@univerjs/core';import{Subject as _0x26d1f0}from'rxjs';import{DocSelectionManagerService as _0x462bf4,RichTextEditingMutation as _0x113fa7,UniverDocsPlugin as _0x4cbbf9,getContentInsertRange as _0x2ee982,isHeaderFooterSelection as _0x2c52d7}from'@univerjs/docs';import{UniverLicensePlugin as _0x3d3e22}from'@univerjs-pro/license';const ve={'language':_0x18c3b6(0x266),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function x(_0x526adf){return{...ve,..._0x526adf};}function S(_0x37f5dc){const _0x203858=_0x18c3b6;var _0x1ef9ff;let _0x34d337=(_0x1ef9ff=_0x37f5dc==null?void 0x0:_0x37f5dc[_0x203858(0x219)])==null?{}:_0x1ef9ff;return{'codes':Object[_0x203858(0x200)](Object[_0x203858(0x226)](_0x34d337)[_0x203858(0x252)](([_0x33d412,_0x4e4ed3])=>[_0x33d412,x(_0x4e4ed3)]))};}function C(_0x19d352,_0x5706e5,_0x190a38){const _0x365c39=_0x18c3b6;let _0x53938d=S(_0x19d352);return _0x53938d[_0x365c39(0x219)][_0x5706e5]=x({..._0x53938d[_0x365c39(0x219)][_0x5706e5],..._0x190a38}),_0x53938d;}function w(_0x27b117,_0x31cf6b){const _0x2cd546=_0x18c3b6;let _0x943cc9=S(_0x27b117);return delete _0x943cc9[_0x2cd546(0x219)][_0x31cf6b],_0x943cc9;}function T(_0x2d5269){'@babel/helpers - typeof';const _0x42546f=_0x18c3b6;return T=typeof Symbol==_0x42546f(0x1db)&&typeof Symbol['iterator']==_0x42546f(0x258)?function(_0x534968){return typeof _0x534968;}:function(_0x3031a7){const _0x3b87c4=_0x42546f;return _0x3031a7&&typeof Symbol==_0x3b87c4(0x1db)&&_0x3031a7[_0x3b87c4(0x239)]===Symbol&&_0x3031a7!==Symbol[_0x3b87c4(0x21b)]?_0x3b87c4(0x258):typeof _0x3031a7;},T(_0x2d5269);}function ye(_0x16bfc0,_0x1f3cab){const _0x4ffc48=_0x18c3b6;if(T(_0x16bfc0)!=_0x4ffc48(0x1fb)||!_0x16bfc0)return _0x16bfc0;var _0x3c1f05=_0x16bfc0[Symbol[_0x4ffc48(0x1f2)]];if(_0x3c1f05!==void 0x0){var _0x4f1201=_0x3c1f05[_0x4ffc48(0x1e6)](_0x16bfc0,_0x1f3cab||_0x4ffc48(0x1f6));if(T(_0x4f1201)!='object')return _0x4f1201;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1f3cab===_0x4ffc48(0x22d)?String:Number)(_0x16bfc0);}function be(_0xef4901){const _0x20609d=_0x18c3b6;var _0x23262c=ye(_0xef4901,'string');return T(_0x23262c)==_0x20609d(0x258)?_0x23262c:_0x23262c+'';}function E(_0x2ff3cf,_0x15c041,_0x286912){return(_0x15c041=be(_0x15c041))in _0x2ff3cf?Object['defineProperty'](_0x2ff3cf,_0x15c041,{'value':_0x286912,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2ff3cf[_0x15c041]=_0x286912,_0x2ff3cf;}function _0x5d50(_0x3f47e8,_0x59aa60){_0x3f47e8=_0x3f47e8-0x1d9;const _0x528c45=_0x528c();let _0x5d5023=_0x528c45[_0x3f47e8];return _0x5d5023;}var D=class extends _0x4948fc{constructor(..._0xe24fa6){const _0x1fa2e4=_0x18c3b6;super(..._0xe24fa6),E(this,_0x1fa2e4(0x243),new Map()),E(this,_0x1fa2e4(0x273),new _0x26d1f0()),E(this,_0x1fa2e4(0x1fd),this[_0x1fa2e4(0x273)][_0x1fa2e4(0x257)]());}[_0x18c3b6(0x247)](_0x274c36,_0x1ae938){const _0x44ec25=_0x18c3b6;return S(this[_0x44ec25(0x243)][_0x44ec25(0x278)](_0x274c36))[_0x44ec25(0x219)][_0x1ae938];}[_0x18c3b6(0x240)](_0x2c88a3,_0x1cc28a,_0x3db192){const _0x542443=_0x18c3b6;this[_0x542443(0x233)](_0x2c88a3,_0x1cc28a,C(this['_resources'][_0x542443(0x278)](_0x2c88a3),_0x1cc28a,_0x3db192));}['removeCode'](_0x205192,_0xc017ac){const _0x1eb0cc=_0x18c3b6;this['_setResource'](_0x205192,_0xc017ac,w(this[_0x1eb0cc(0x243)][_0x1eb0cc(0x278)](_0x205192),_0xc017ac));}['serialize'](_0x159b75){const _0x57290c=_0x18c3b6;return S(this[_0x57290c(0x243)][_0x57290c(0x278)](_0x159b75));}[_0x18c3b6(0x1f5)](_0x3ecdc6,_0x2d5df8){const _0x26a739=_0x18c3b6;this['_resources'][_0x26a739(0x265)](_0x3ecdc6,S(_0x2d5df8)),this[_0x26a739(0x273)][_0x26a739(0x1df)]({'unitId':_0x3ecdc6});}[_0x18c3b6(0x275)](_0x534dc2){const _0x431f31=_0x18c3b6;this['_resources'][_0x431f31(0x231)](_0x534dc2),this[_0x431f31(0x273)]['next']({'unitId':_0x534dc2});}[_0x18c3b6(0x224)](){const _0x10b902=_0x18c3b6;super['dispose'](),this[_0x10b902(0x243)][_0x10b902(0x210)](),this[_0x10b902(0x273)][_0x10b902(0x1e1)]();}[_0x18c3b6(0x233)](_0x13a275,_0x378165,_0x3814ed){const _0x3128a6=_0x18c3b6;this[_0x3128a6(0x243)][_0x3128a6(0x265)](_0x13a275,_0x3814ed),this['_change$'][_0x3128a6(0x1df)]({'unitId':_0x13a275,'blockId':_0x378165});}};const xe={'id':'docs-code.mutation.set-config','type':_0x3be55c[_0x18c3b6(0x208)],'handler':(_0x363261,_0x1a6809)=>!(_0x1a6809!=null&&_0x1a6809['unitId'])||!_0x1a6809[_0x18c3b6(0x1fe)]?!0x1:(_0x363261['get'](D)['setCodeConfig'](_0x1a6809[_0x18c3b6(0x25a)],_0x1a6809[_0x18c3b6(0x1fe)],_0x1a6809[_0x18c3b6(0x1ee)]),!0x0)},Se={'id':_0x18c3b6(0x27e),'type':_0x3be55c[_0x18c3b6(0x208)],'handler':(_0x26481a,_0x756fd)=>!(_0x756fd!=null&&_0x756fd[_0x18c3b6(0x25a)])||!_0x756fd['blockId']?!0x1:(_0x26481a[_0x18c3b6(0x278)](D)[_0x18c3b6(0x228)](_0x756fd[_0x18c3b6(0x25a)],_0x756fd[_0x18c3b6(0x1fe)]),!0x0)},Ce=_0x18c3b6(0x1ea);var O=class extends Error{constructor(_0x1635b2=_0x18c3b6(0x23c)){super(_0x1635b2);}};function we(_0x119254){const _0x143c1f=_0x18c3b6;var _0x46a02e,_0x5911d5,_0x5a7127;let _0x56cea1=k(_0x119254['documentData']),_0x41556=j(_0x56cea1),_0x911502=Ee(_0x119254[_0x143c1f(0x274)],_0x119254[_0x143c1f(0x26e)]),_0x5bf3ce=_0x911502?(_0x46a02e=_0x41556['blockRanges'])==null?void 0x0:_0x46a02e[_0x143c1f(0x1ff)](_0x1a1de3=>{const _0x2851c0=_0x143c1f;let _0x2b07a9=_0x2cea6f(_0x1a1de3);return _0x2b07a9[_0x2851c0(0x274)]===_0x911502[_0x2851c0(0x274)]&&_0x2b07a9[_0x2851c0(0x26e)]===_0x911502[_0x2851c0(0x26e)];}):void 0x0,{startOffset:_0x58b077,endOffset:_0x1556de}=_0x5bf3ce?_0x911502:He(_0x41556,_0x119254[_0x143c1f(0x274)],_0x119254[_0x143c1f(0x26e)],_0x119254[_0x143c1f(0x245)]);if(!_0x5bf3ce&&De(_0x41556,_0x58b077,_0x1556de))throw new O(_0x143c1f(0x20d));let _0x20fb66=Ge(_0x41556,_0x58b077,_0x1556de),_0x143ddf=(_0x5911d5=_0x5bf3ce==null?void 0x0:_0x5bf3ce['blockId'])==null?_0x119254[_0x143c1f(0x1fe)]:_0x5911d5,_0x28dadf=C(_0x119254[_0x143c1f(0x229)],_0x143ddf,{...ve,..._0x119254[_0x143c1f(0x1ee)]});if(_0x5bf3ce)return _0x5bf3ce['blockType']=_0x235429['CODE'],Te(_0x41556,_0x58b077,_0x1556de),Le(_0x41556,_0x58b077,_0x1556de,_0x20fb66),P(_0x41556,_0x5bf3ce),{'nextDocumentData':_0x56cea1,'nextMetadata':_0x28dadf,'cursorOffset':_0x58b077+0x1};if(_0x58b077===_0x1556de){var _0x45bc44,_0x466ddf;let _0x585511=''+_0x345b07[_0x143c1f(0x276)]+_0x345b07[_0x143c1f(0x259)]+_0x345b07[_0x143c1f(0x1e3)];F(_0x41556,_0x58b077,_0x585511,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0xa4ecb(new Set((_0x45bc44=_0x41556[_0x143c1f(0x27a)])==null?void 0x0:_0x45bc44[_0x143c1f(0x252)](_0x3e267c=>_0x3e267c[_0x143c1f(0x220)]))),'paragraphStyle':Ie(!0x0,!0x0,_0x20fb66)}],'blockRanges':[{'blockId':_0x143ddf,'blockType':_0x235429['CODE'],'startIndex':0x0,'endIndex':_0x585511['length']-0x1}]});let _0x1122f8=(_0x466ddf=_0x41556[_0x143c1f(0x21f)])==null?void 0x0:_0x466ddf[_0x143c1f(0x1ff)](_0x1b2ae2=>_0x1b2ae2['blockId']===_0x143ddf);return _0x1122f8&&P(_0x41556,_0x1122f8),{'nextDocumentData':_0x56cea1,'nextMetadata':_0x28dadf,'cursorOffset':_0x58b077+0x1};}F(_0x41556,_0x1556de,_0x345b07[_0x143c1f(0x1e3)]),F(_0x41556,_0x58b077,_0x345b07[_0x143c1f(0x276)]),Le(_0x41556,_0x58b077,_0x1556de+0x1,_0x20fb66);let _0x1407ca={'blockId':_0x143ddf,'blockType':_0x235429[_0x143c1f(0x1d9)],'startIndex':_0x58b077,'endIndex':_0x1556de+0x1};return _0x41556['blockRanges']=[...(_0x5a7127=_0x41556[_0x143c1f(0x21f)])==null?[]:_0x5a7127,_0x1407ca][_0x143c1f(0x1fa)]((_0x1f97ae,_0xb58b78)=>_0x1f97ae[_0x143c1f(0x216)]-_0xb58b78[_0x143c1f(0x216)]),P(_0x41556,_0x1407ca),{'nextDocumentData':_0x56cea1,'nextMetadata':_0x28dadf,'cursorOffset':_0x58b077+0x1};}function Te(_0x1c88f2,_0x413e5e,_0x5ccc46){const _0x7868dd=_0x18c3b6;var _0x219c4b;((_0x219c4b=_0x1c88f2[_0x7868dd(0x27a)])==null?[]:_0x219c4b)['filter'](_0xbe1d23=>_0xbe1d23[_0x7868dd(0x216)]>_0x413e5e&&_0xbe1d23['startIndex']<_0x5ccc46)[_0x7868dd(0x1f3)](_0x202a76=>{const _0x389e82=_0x7868dd;var _0x303738;let _0x26fd38={...(_0x303738=_0x202a76[_0x389e82(0x1ed)])==null?{}:_0x303738};delete _0x26fd38[_0x389e82(0x1e8)],delete _0x26fd38[_0x389e82(0x1e5)],_0x202a76[_0x389e82(0x1ed)]=_0x26fd38;});}function Ee(_0x257c3d,_0xf10f5f){const _0x1dea40=_0x18c3b6;return _0x257c3d==null||_0xf10f5f==null||_0x257c3d===_0xf10f5f?null:{'startOffset':Math[_0x1dea40(0x24e)](_0x257c3d,_0xf10f5f),'endOffset':Math['max'](_0x257c3d,_0xf10f5f)};}function De(_0x4c0c41,_0x35e60e,_0x379c51){const _0xfd8327=_0x18c3b6;var _0x252e9f;return((_0x252e9f=_0x4c0c41[_0xfd8327(0x21f)])==null?[]:_0x252e9f)[_0xfd8327(0x261)](_0x17ccd5=>{let _0x484c58=_0x2cea6f(_0x17ccd5);return _0x35e60e===_0x379c51?_0x4077aa(_0x484c58,_0x35e60e):_0x12ce39(_0x484c58,{'startOffset':_0x35e60e,'endOffset':_0x379c51});});}function Oe(_0x57fa12){const _0x6a06a3=_0x18c3b6;return{'nextDocumentData':k(_0x57fa12[_0x6a06a3(0x1f0)]),'nextMetadata':C(_0x57fa12['metadata'],_0x57fa12[_0x6a06a3(0x1fe)],_0x57fa12[_0x6a06a3(0x1ee)]),'cursorOffset':0x0};}function ke(_0x4e3012){const _0x4830ae=_0x18c3b6;let _0x5d8d7d=k(_0x4e3012[_0x4830ae(0x1f0)]),_0x4e6eee=j(_0x5d8d7d),_0x4ccfdf=Ne(_0x4e6eee,_0x4e3012[_0x4830ae(0x1fe)]);if(!_0x4ccfdf)return null;let _0x1f435a=Be(_0x4e6eee,_0x4ccfdf);return{'nextDocumentData':_0x5d8d7d,'nextMetadata':w(_0x4e3012[_0x4830ae(0x229)],_0x4e3012[_0x4830ae(0x1fe)]),'cursorOffset':_0x1f435a};}function Ae(_0xe3b232){const _0x1be0b5=_0x18c3b6;var _0xbf1d23;let _0xa685fe=k(_0xe3b232['documentData']),_0x2df8f6=j(_0xa685fe),_0x47e813=Ne(_0x2df8f6,_0xe3b232[_0x1be0b5(0x1fe)]);if(!_0x47e813)return null;let _0x4bdaf8=_0x2cea6f(_0x47e813);return I(_0x2df8f6,_0x4bdaf8[_0x1be0b5(0x274)],_0x4bdaf8[_0x1be0b5(0x26e)]),_0x2df8f6['blockRanges']=(_0xbf1d23=_0x2df8f6['blockRanges'])==null?void 0x0:_0xbf1d23[_0x1be0b5(0x205)](_0x2a401c=>_0x2a401c[_0x1be0b5(0x1fe)]!==_0xe3b232[_0x1be0b5(0x1fe)]),{'nextDocumentData':_0xa685fe,'nextMetadata':w(_0xe3b232[_0x1be0b5(0x229)],_0xe3b232['blockId']),'cursorOffset':_0x47e813['startIndex']};}function je(_0x49fb75){const _0x3fd450=_0x18c3b6;let _0x4dcd04=k(_0x49fb75[_0x3fd450(0x1f0)]),_0x21c298=j(_0x4dcd04),_0x48e1ed=Fe(_0x21c298,_0x49fb75[_0x3fd450(0x25c)]);return _0x48e1ed&&Me(_0x4dcd04,_0x21c298,_0x48e1ed,_0x49fb75[_0x3fd450(0x25c)],_0x49fb75['paragraphStartIndex'])||null;}function Me(_0x56c3d7,_0x47db92,_0x17e249,_0x556647,_0x14cc28){const _0x187699=_0x18c3b6;let _0x109761=Ze(_0x47db92,_0x17e249,_0x556647,_0x14cc28);if(!_0x109761)return null;let _0x558f83=_0x109761['endTokenOffset']-0x1;return I(_0x47db92,_0x109761[_0x187699(0x23b)][_0x187699(0x216)],_0x109761[_0x187699(0x23b)][_0x187699(0x216)]+0x1),{'nextDocumentData':_0x56c3d7,'cursorOffset':_0x558f83};}function Ne(_0x2228ac,_0x53fff1){const _0x2afb6c=_0x18c3b6;var _0x4d5002;return _0x2228ac==null||(_0x4d5002=_0x2228ac[_0x2afb6c(0x21f)])==null?void 0x0:_0x4d5002['find'](_0x1e178d=>_0x1e178d[_0x2afb6c(0x22e)]===_0x235429['CODE']&&_0x1e178d[_0x2afb6c(0x1fe)]===_0x53fff1);}function Pe(_0x41b086){const _0x1a9a1b=_0x18c3b6;var _0xef6654;let _0x315840=_0x41b086[_0x1a9a1b(0x1f0)][_0x1a9a1b(0x23d)];if(!_0x315840)return!0x1;let _0x3c77c1=_0x41b086[_0x1a9a1b(0x24d)]==='left'?_0x41b086['cursorOffset']-0x1:_0x41b086[_0x1a9a1b(0x25c)],_0x108b71=_0x41b086[_0x1a9a1b(0x24d)]===_0x1a9a1b(0x26d)?_0x41b086[_0x1a9a1b(0x25c)]+0x1:_0x3c77c1;return((_0xef6654=_0x315840[_0x1a9a1b(0x21f)])==null?[]:_0xef6654)[_0x1a9a1b(0x261)](_0x3fade6=>_0x3fade6['blockType']===_0x235429[_0x1a9a1b(0x1d9)]?_0x3c77c1===_0x3fade6['startIndex']||_0x3c77c1===_0x3fade6['endIndex']||_0x108b71===_0x3fade6['startIndex']||_0x108b71===_0x3fade6['endIndex']:!0x1);}function Fe(_0x4e42ef,_0x3c24b4){const _0x51b56d=_0x18c3b6;var _0x322052;return(_0x322052=_0x4e42ef[_0x51b56d(0x21f)])==null?void 0x0:_0x322052['find'](_0x51a584=>{const _0xbe925d=_0x51b56d;let _0x4604b1=N(_0x51a584);return _0x51a584['blockType']===_0x235429['CODE']&&_0x51a584[_0xbe925d(0x216)]<=_0x3c24b4&&_0x3c24b4<=_0x4604b1+0x2;});}function Ie(_0x13843e,_0x3fb838,_0x589635=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x13843e&&_0x589635?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ce,'fs':0xc}};}function Le(_0x370f94,_0x57eb77,_0x1cc1e6,_0x2f06fa=!0x1){const _0x4cb3dc=_0x18c3b6;var _0xb4f60b;let _0x2eb4df=((_0xb4f60b=_0x370f94[_0x4cb3dc(0x27a)])==null?[]:_0xb4f60b)[_0x4cb3dc(0x205)](_0x29fe90=>_0x29fe90[_0x4cb3dc(0x216)]>_0x57eb77&&_0x29fe90[_0x4cb3dc(0x216)]<_0x1cc1e6);_0x2eb4df[_0x4cb3dc(0x1f3)]((_0xe8ad9,_0x294d6d)=>{const _0x351b85=_0x4cb3dc;var _0x465f32;_0xe8ad9['paragraphStyle']={...(_0x465f32=_0xe8ad9[_0x351b85(0x1ed)])==null?{}:_0x465f32,...Ie(_0x294d6d===0x0,_0x294d6d===_0x2eb4df[_0x351b85(0x227)]-0x1,_0x2f06fa)};});}function Re(_0x5f16b5){const _0x2671b6=_0x18c3b6;var _0x5611b8,_0x472fa3;let _0x524e61={..._0x5f16b5==null?{}:_0x5f16b5};return delete _0x524e61[_0x2671b6(0x218)],delete _0x524e61[_0x2671b6(0x211)],delete _0x524e61[_0x2671b6(0x1e8)],delete _0x524e61[_0x2671b6(0x1e5)],((_0x5611b8=_0x524e61[_0x2671b6(0x221)])==null?void 0x0:_0x5611b8['ff'])===Ce&&((_0x472fa3=_0x524e61[_0x2671b6(0x221)])==null?void 0x0:_0x472fa3['fs'])===0xc&&delete _0x524e61['textStyle'],_0x524e61;}function ze(_0x292fdb,_0x583d5e){const _0x1b3699=_0x18c3b6;var _0x19bb0d;let _0x29ebdc=N(_0x583d5e);return((_0x19bb0d=_0x292fdb[_0x1b3699(0x27a)])==null?[]:_0x19bb0d)[_0x1b3699(0x205)](_0x4a6144=>_0x4a6144[_0x1b3699(0x216)]>_0x583d5e[_0x1b3699(0x216)]&&_0x4a6144[_0x1b3699(0x216)]<_0x29ebdc);}function Be(_0x5e0af7,_0x1b32c0){const _0x40814a=_0x18c3b6;var _0x172060;let _0x27bdf4=N(_0x1b32c0);return ze(_0x5e0af7,_0x1b32c0)[_0x40814a(0x1f3)](_0x1db653=>{const _0x515f67=_0x40814a;_0x1db653[_0x515f67(0x1ed)]=Re(_0x1db653[_0x515f67(0x1ed)]);}),I(_0x5e0af7,_0x27bdf4,_0x27bdf4+0x1),I(_0x5e0af7,_0x1b32c0['startIndex'],_0x1b32c0['startIndex']+0x1),_0x5e0af7['blockRanges']=(_0x172060=_0x5e0af7[_0x40814a(0x21f)])==null?void 0x0:_0x172060['filter'](_0x43e9d6=>_0x43e9d6[_0x40814a(0x1fe)]!==_0x1b32c0[_0x40814a(0x1fe)]),_0x1b32c0[_0x40814a(0x216)];}function k(_0x47fae0){const _0x521fa=_0x18c3b6;return{..._0x47fae0,'body':_0x47fae0['body']?Ve(_0x47fae0[_0x521fa(0x23d)]):_0x47fae0[_0x521fa(0x23d)]};}function Ve(_0x4b3cd1){const _0x35f55c=_0x18c3b6;var _0x1c7817,_0x58365c,_0x580c04,_0x2c6f05,_0x5dc719,_0x30c1b4,_0x2e6613,_0x5da43b,_0xa5079a;return{..._0x4b3cd1,'paragraphs':(_0x1c7817=_0x4b3cd1['paragraphs'])==null?void 0x0:_0x1c7817[_0x35f55c(0x252)](_0x1780b8=>({..._0x1780b8,'bullet':A(_0x1780b8[_0x35f55c(0x235)]),'paragraphStyle':A(_0x1780b8['paragraphStyle'])})),'sectionBreaks':(_0x58365c=_0x4b3cd1[_0x35f55c(0x203)])==null?void 0x0:_0x58365c[_0x35f55c(0x252)](_0x369c5c=>({..._0x369c5c})),'textRuns':(_0x580c04=_0x4b3cd1[_0x35f55c(0x251)])==null?void 0x0:_0x580c04[_0x35f55c(0x252)](_0x4436ae=>({..._0x4436ae})),'tables':(_0x2c6f05=_0x4b3cd1[_0x35f55c(0x1f8)])==null?void 0x0:_0x2c6f05[_0x35f55c(0x252)](_0x470628=>({..._0x470628})),'columnGroups':(_0x5dc719=_0x4b3cd1['columnGroups'])==null?void 0x0:_0x5dc719[_0x35f55c(0x252)](_0x236729=>{const _0x46b811=_0x35f55c;var _0x20cd20;return{..._0x236729,'columns':(_0x20cd20=_0x236729[_0x46b811(0x223)])==null?void 0x0:_0x20cd20[_0x46b811(0x252)](_0x3fd2b1=>A(_0x3fd2b1))};}),'blockRanges':(_0x30c1b4=_0x4b3cd1['blockRanges'])==null?void 0x0:_0x30c1b4[_0x35f55c(0x252)](_0x37d8bc=>({..._0x37d8bc})),'customRanges':(_0x2e6613=_0x4b3cd1[_0x35f55c(0x206)])==null?void 0x0:_0x2e6613[_0x35f55c(0x252)](_0x17b2f9=>({..._0x17b2f9})),'customDecorations':(_0x5da43b=_0x4b3cd1[_0x35f55c(0x25d)])==null?void 0x0:_0x5da43b[_0x35f55c(0x252)](_0x456eb6=>({..._0x456eb6})),'customBlocks':(_0xa5079a=_0x4b3cd1[_0x35f55c(0x1e7)])==null?void 0x0:_0xa5079a[_0x35f55c(0x252)](_0x2e7ea6=>({..._0x2e7ea6}))};}function A(_0x3cc26a){const _0x63c078=_0x18c3b6;return Array[_0x63c078(0x22f)](_0x3cc26a)?_0x3cc26a['map'](_0x4a7e35=>A(_0x4a7e35)):!_0x3cc26a||typeof _0x3cc26a!='object'?_0x3cc26a:Object['fromEntries'](Object[_0x63c078(0x226)](_0x3cc26a)[_0x63c078(0x252)](([_0x4d63c6,_0x3d09f1])=>[_0x4d63c6,A(_0x3d09f1)]));}function j(_0x1ea2c3){const _0x1dcbe1=_0x18c3b6;if(!_0x1ea2c3[_0x1dcbe1(0x23d)])throw Error(_0x1dcbe1(0x1e9));return _0x1ea2c3[_0x1dcbe1(0x23d)];}function He(_0x1020f3,_0x49698d,_0x538cc3,_0x3b5003=_0x18c3b6(0x217)){const _0x113b2c=_0x18c3b6;if(_0x49698d==null||_0x538cc3==null){let _0x2e3f12=We(_0x1020f3);return{'startOffset':_0x2e3f12,'endOffset':_0x2e3f12};}let _0x58a604=Math[_0x113b2c(0x24e)](_0x49698d,_0x538cc3),_0x9712a2=Math['max'](_0x49698d,_0x538cc3),_0x32e9cb=Ye(_0x1020f3,_0x58a604,_0x9712a2);return _0x58a604===_0x9712a2?_0x3b5003===_0x113b2c(0x272)?{'startOffset':_0x58a604,'endOffset':_0x9712a2}:Ue(_0x1020f3,_0x58a604,_0x32e9cb):Ke(_0x1020f3,_0x58a604,_0x9712a2,_0x32e9cb);}function Ue(_0x2b3d36,_0x2a4bb3,_0x56603e){const _0x44d801=_0x18c3b6;let _0x5c427c=qe(_0x2b3d36,_0x2a4bb3);if(_0x5c427c){let _0x562373=M(_0x2b3d36,_0x5c427c,_0x56603e);if(_0x562373<_0x5c427c[_0x44d801(0x216)])return{'startOffset':_0x562373,'endOffset':_0x56603e?Math[_0x44d801(0x24e)](_0x5c427c[_0x44d801(0x216)]+0x1,_0x56603e[_0x44d801(0x26e)]):_0x5c427c['startIndex']+0x1};}let _0x2dac27=_0x2a4bb3===0x0&&_0x2b3d36[_0x44d801(0x270)][0x0]===_0x345b07[_0x44d801(0x259)]?0x1:_0x2a4bb3;return{'startOffset':_0x2dac27,'endOffset':_0x2dac27};}function We(_0x33f172){const _0x1f75d3=_0x18c3b6;return _0x33f172[_0x1f75d3(0x270)][_0x1f75d3(0x20c)](_0x345b07['SECTION_BREAK'])?Math['max'](0x0,_0x33f172[_0x1f75d3(0x270)][_0x1f75d3(0x227)]-0x1):_0x33f172[_0x1f75d3(0x270)][_0x1f75d3(0x227)];}function Ge(_0x4598f7,_0x1bdd73,_0x519012){const _0x138ff7=_0x18c3b6;var _0x5e821d;let _0x52c716=Math[_0x138ff7(0x24e)](_0x1bdd73,_0x519012),_0x47a312=Math[_0x138ff7(0x225)](_0x1bdd73,_0x519012);return!!((_0x5e821d=_0x4598f7[_0x138ff7(0x1f8)])!=null&&_0x5e821d[_0x138ff7(0x261)](_0x1c93f4=>_0x52c716>_0x1c93f4[_0x138ff7(0x216)]&&_0x52c716<_0x1c93f4[_0x138ff7(0x1f1)]||_0x47a312>_0x1c93f4[_0x138ff7(0x216)]&&_0x47a312<_0x1c93f4['endIndex']||_0x52c716<=_0x1c93f4[_0x138ff7(0x216)]&&_0x47a312>=_0x1c93f4['endIndex']));}function Ke(_0x2469f8,_0x261110,_0x1a0662,_0x15f427){const _0x42da0c=_0x18c3b6;var _0x3d6fcf,_0x152428;let _0x12537d=[...(_0x3d6fcf=_0x2469f8['paragraphs'])==null?[]:_0x3d6fcf][_0x42da0c(0x1fa)]((_0x5cbea4,_0x3594c5)=>_0x5cbea4[_0x42da0c(0x216)]-_0x3594c5['startIndex']),_0x531b26=_0xa16992(_0x2469f8),_0x2e7f0a=_0x12537d[_0x42da0c(0x1ff)](_0x4ce1b6=>M(_0x2469f8,_0x4ce1b6,_0x15f427,_0x531b26)<=_0x261110&&_0x261110<=_0x4ce1b6[_0x42da0c(0x216)]),_0x59c05b=(_0x152428=_0x12537d['find'](_0x46b4c3=>_0x46b4c3['startIndex']>=_0x1a0662-0x1))==null?_0x12537d[_0x12537d['length']-0x1]:_0x152428;return{'startOffset':_0x2e7f0a?M(_0x2469f8,_0x2e7f0a,_0x15f427,_0x531b26):_0x261110,'endOffset':_0x59c05b?Je(_0x59c05b,_0x15f427):_0x1a0662};}function qe(_0x1d9537,_0x505e57){const _0xeb7dae=_0x18c3b6;var _0x3d2898;let _0x207abc=[...(_0x3d2898=_0x1d9537[_0xeb7dae(0x27a)])==null?[]:_0x3d2898][_0xeb7dae(0x1fa)]((_0x4ae4bb,_0x121c75)=>_0x4ae4bb[_0xeb7dae(0x216)]-_0x121c75[_0xeb7dae(0x216)]),_0x55736c=_0xa16992(_0x1d9537);return _0x207abc['find'](_0x3968bd=>{const _0x22cfd9=_0xeb7dae;var _0x5c0a9c;return((_0x5c0a9c=_0x55736c[_0x22cfd9(0x278)](_0x3968bd['startIndex']))==null?0x0:_0x5c0a9c)<=_0x505e57&&_0x505e57<=_0x3968bd[_0x22cfd9(0x216)];});}function M(_0x20f455,_0x41c50a,_0x4d7eeb,_0x4852c9){const _0x364f48=_0x18c3b6;var _0x2a7142;let _0x5e44f5=(_0x2a7142=_0x4852c9==null?void 0x0:_0x4852c9[_0x364f48(0x278)](_0x41c50a[_0x364f48(0x216)]))==null?_0x3becf7(_0x20f455,_0x41c50a):_0x2a7142;return _0x4d7eeb?Math[_0x364f48(0x225)](_0x5e44f5,_0x4d7eeb[_0x364f48(0x274)]):_0x5e44f5;}function Je(_0x31b70a,_0xc62506){const _0x1a8369=_0x18c3b6;let _0x507441=_0x31b70a[_0x1a8369(0x216)]+0x1;return _0xc62506?Math[_0x1a8369(0x24e)](_0x507441,_0xc62506[_0x1a8369(0x26e)]):_0x507441;}function Ye(_0x131740,_0x3ecd8,_0x39848d){const _0x36d504=_0x18c3b6;let _0x1e19c8=Xe(_0x131740,_0x3ecd8),_0x1d6655=Xe(_0x131740,_0x3ecd8===_0x39848d?_0x39848d:Math['max'](_0x3ecd8,_0x39848d-0x1));if(!(!_0x1e19c8&&!_0x1d6655)){if(!_0x1e19c8||!_0x1d6655||_0x1e19c8[_0x36d504(0x22a)]!==_0x1d6655[_0x36d504(0x22a)]||_0x1e19c8[_0x36d504(0x20f)]!==_0x1d6655[_0x36d504(0x20f)])throw new O();return _0x1e19c8;}}function Xe(_0x54aa7b,_0x5982ae){const _0x5563f5=_0x18c3b6;let _0x59b90b=_0x54aa7b[_0x5563f5(0x270)],_0x3392f1=-0x1;for(let _0x2a3542=Math['min'](_0x5982ae,_0x59b90b['length']-0x1);_0x2a3542>=0x0;_0x2a3542--){let _0x42ea7d=_0x59b90b[_0x2a3542];if(_0x42ea7d===_0x345b07[_0x5563f5(0x24a)])return;if(_0x42ea7d===_0x345b07['TABLE_CELL_START']){_0x3392f1=_0x2a3542;break;}}if(_0x3392f1<0x0)return;let _0xb9fc5b=_0x59b90b[_0x5563f5(0x26a)](_0x345b07[_0x5563f5(0x24a)],_0x3392f1+0x1);if(!(_0xb9fc5b<0x0||_0x5982ae<_0x3392f1+0x1||_0x5982ae>_0xb9fc5b-0x1))return{'startOffset':_0x3392f1+0x1,'endOffset':Math['max'](_0x3392f1+0x1,_0xb9fc5b-0x1),'startTokenOffset':_0x3392f1,'endTokenOffset':_0xb9fc5b};}function N(_0x138c75){const _0x4bf637=_0x18c3b6;return _0x2cea6f(_0x138c75)[_0x4bf637(0x26e)]-0x1;}function Ze(_0x1da14a,_0x589793,_0x1d916a,_0xc9f884){const _0x337a66=_0x18c3b6;var _0x192bcf;let _0xe19140=N(_0x589793),_0x36696d=((_0x192bcf=_0x1da14a['paragraphs'])==null?[]:_0x192bcf)[_0x337a66(0x1ff)](_0x54f00b=>_0x54f00b[_0x337a66(0x216)]===_0xe19140+0x1);if(!_0x36696d||_0xc9f884!=null&&_0x36696d[_0x337a66(0x216)]!==_0xc9f884||_0x1d916a!=null&&(_0x1d916a<_0xe19140||_0x1d916a>_0x36696d[_0x337a66(0x216)]+0x1)||_0x1da14a[_0x337a66(0x270)][_0x36696d['startIndex']]!==_0x345b07[_0x337a66(0x259)])return null;let _0x4f6012=_0x3becf7(_0x1da14a,_0x36696d),_0x47209d=_0x1da14a[_0x337a66(0x270)][_0x337a66(0x24b)](_0x4f6012,_0x36696d[_0x337a66(0x216)]);return Array[_0x337a66(0x250)](_0x47209d)[_0x337a66(0x20e)](_0x48fe63=>_0x48fe63===_0x345b07[_0x337a66(0x1e3)])?{'paragraph':_0x36696d,'endTokenOffset':_0xe19140}:null;}function P(_0x3f2433,_0x11a7bc){const _0x387617=_0x18c3b6;var _0x13fa69;let _0x38e636=N(_0x11a7bc),_0x4c42c2=_0x3f2433['dataStream'][_0x38e636+0x1];_0x4c42c2!==_0x345b07[_0x387617(0x23a)]&&_0x4c42c2!==void 0x0||F(_0x3f2433,_0x38e636+0x1,_0x345b07[_0x387617(0x259)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0xa4ecb(new Set((_0x13fa69=_0x3f2433[_0x387617(0x27a)])==null?void 0x0:_0x13fa69['map'](_0x3616de=>_0x3616de[_0x387617(0x220)])))}]});}function F(_0x1a5ac2,_0x4250a8,_0x347201,_0x27b658={}){const _0x4e2c1a=_0x18c3b6;var _0x386287,_0x362254;if(_0x347201){if(_0x1a5ac2['dataStream']=''+_0x1a5ac2[_0x4e2c1a(0x270)][_0x4e2c1a(0x24b)](0x0,_0x4250a8)+_0x347201+_0x1a5ac2[_0x4e2c1a(0x270)][_0x4e2c1a(0x24b)](_0x4250a8),Qe(_0x1a5ac2,_0x4250a8,_0x347201[_0x4e2c1a(0x227)]),(_0x386287=_0x27b658['paragraphs'])!=null&&_0x386287[_0x4e2c1a(0x227)]){var _0x4e9d86;_0x1a5ac2[_0x4e2c1a(0x27a)]=[...(_0x4e9d86=_0x1a5ac2[_0x4e2c1a(0x27a)])==null?[]:_0x4e9d86,..._0x27b658[_0x4e2c1a(0x27a)][_0x4e2c1a(0x252)](_0x288cee=>({..._0x288cee,'startIndex':_0x288cee['startIndex']+_0x4250a8}))][_0x4e2c1a(0x1fa)]((_0x10db2c,_0x386dde)=>_0x10db2c[_0x4e2c1a(0x216)]-_0x386dde['startIndex']);}if((_0x362254=_0x27b658[_0x4e2c1a(0x21f)])!=null&&_0x362254['length']){var _0x56ecc6;_0x1a5ac2[_0x4e2c1a(0x21f)]=[...(_0x56ecc6=_0x1a5ac2['blockRanges'])==null?[]:_0x56ecc6,..._0x27b658[_0x4e2c1a(0x21f)][_0x4e2c1a(0x252)](_0x45cf9a=>({..._0x45cf9a,'startIndex':_0x45cf9a['startIndex']+_0x4250a8,'endIndex':_0x45cf9a[_0x4e2c1a(0x1f1)]+_0x4250a8}))]['sort']((_0xfb5e38,_0x5c420f)=>_0xfb5e38[_0x4e2c1a(0x216)]-_0x5c420f[_0x4e2c1a(0x216)]);}}}function I(_0x180de5,_0x502995,_0x3c2f9a){const _0x5a580f=_0x18c3b6;let _0x447ca7=_0x3c2f9a-_0x502995;_0x180de5[_0x5a580f(0x270)]=''+_0x180de5[_0x5a580f(0x270)][_0x5a580f(0x24b)](0x0,_0x502995)+_0x180de5['dataStream']['slice'](_0x3c2f9a),$e(_0x180de5,_0x502995,_0x447ca7);}function Qe(_0x5cd851,_0x32615c,_0x26be3c){const _0x4c20d3=_0x18c3b6;_0x5cd851[_0x4c20d3(0x27a)]=L(_0x5cd851[_0x4c20d3(0x27a)],_0x32615c,_0x26be3c),_0x5cd851[_0x4c20d3(0x203)]=L(_0x5cd851[_0x4c20d3(0x203)],_0x32615c,_0x26be3c),_0x5cd851[_0x4c20d3(0x1e7)]=L(_0x5cd851[_0x4c20d3(0x1e7)],_0x32615c,_0x26be3c),_0x5cd851[_0x4c20d3(0x251)]=et(_0x5cd851[_0x4c20d3(0x251)],_0x32615c,_0x26be3c),_0x5cd851[_0x4c20d3(0x1f8)]=tt(_0x5cd851[_0x4c20d3(0x1f8)],_0x32615c,_0x26be3c),_0x5cd851[_0x4c20d3(0x21a)]=z(_0x5cd851[_0x4c20d3(0x21a)],_0x32615c,_0x26be3c),_0x5cd851[_0x4c20d3(0x206)]=z(_0x5cd851[_0x4c20d3(0x206)],_0x32615c,_0x26be3c),_0x5cd851['customDecorations']=z(_0x5cd851[_0x4c20d3(0x25d)],_0x32615c,_0x26be3c),_0x5cd851['blockRanges']=z(_0x5cd851[_0x4c20d3(0x21f)],_0x32615c,_0x26be3c);}function $e(_0x4f94d8,_0x4251d2,_0x5bc103){const _0x3d8073=_0x18c3b6;var _0x2230e4,_0x304300;_0x4f94d8[_0x3d8073(0x27a)]=R(_0x4f94d8[_0x3d8073(0x27a)],_0x4251d2,_0x5bc103),_0x4f94d8[_0x3d8073(0x203)]=R(_0x4f94d8[_0x3d8073(0x203)],_0x4251d2,_0x5bc103),_0x4f94d8[_0x3d8073(0x1e7)]=R(_0x4f94d8[_0x3d8073(0x1e7)],_0x4251d2,_0x5bc103),_0x4f94d8[_0x3d8073(0x251)]=(_0x2230e4=nt((_0x304300=_0x4f94d8['textRuns'])==null?void 0x0:_0x304300[_0x3d8073(0x252)](_0x16ac99=>({..._0x16ac99,'startIndex':_0x16ac99['st'],'endIndex':_0x16ac99['ed']})),_0x4251d2,_0x5bc103))==null?void 0x0:_0x2230e4[_0x3d8073(0x252)](_0x37bdc6=>{let {startIndex:_0x370402,endIndex:_0x2ff1ce,..._0x292423}=_0x37bdc6;return{..._0x292423,'st':_0x370402,'ed':_0x2ff1ce};}),_0x4f94d8[_0x3d8073(0x1f8)]=nt(_0x4f94d8[_0x3d8073(0x1f8)],_0x4251d2,_0x5bc103),_0x4f94d8[_0x3d8073(0x21a)]=B(_0x4f94d8[_0x3d8073(0x21a)],_0x4251d2,_0x5bc103),_0x4f94d8['customRanges']=B(_0x4f94d8[_0x3d8073(0x206)],_0x4251d2,_0x5bc103),_0x4f94d8['customDecorations']=B(_0x4f94d8[_0x3d8073(0x25d)],_0x4251d2,_0x5bc103),_0x4f94d8[_0x3d8073(0x21f)]=B(_0x4f94d8[_0x3d8073(0x21f)],_0x4251d2,_0x5bc103);}function L(_0x48c67d,_0x1f4052,_0x1df629){const _0x514bd2=_0x18c3b6;return _0x48c67d==null?void 0x0:_0x48c67d['map'](_0x35403e=>_0x35403e[_0x514bd2(0x216)]>=_0x1f4052?{..._0x35403e,'startIndex':_0x35403e[_0x514bd2(0x216)]+_0x1df629}:_0x35403e);}function R(_0x3a7267,_0x129b41,_0x3b63d2){const _0x1d12a9=_0x18c3b6;let _0x5e644a=_0x129b41+_0x3b63d2;return _0x3a7267==null?void 0x0:_0x3a7267[_0x1d12a9(0x252)](_0x1a5485=>_0x1a5485['startIndex']>=_0x129b41&&_0x1a5485['startIndex']<_0x5e644a?null:_0x1a5485[_0x1d12a9(0x216)]>=_0x5e644a?{..._0x1a5485,'startIndex':_0x1a5485[_0x1d12a9(0x216)]-_0x3b63d2}:_0x1a5485)[_0x1d12a9(0x205)](_0x2d6123=>_0x2d6123!=null);}function _0x528c(){const _0x3aa68f=['Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','every','endTokenOffset','clear','indentStart','keys','disposeWithMe','docs-code.config','docs-code.command.insert','startIndex','convert-paragraph','indentEnd','codes','columnGroups','prototype','getCurrentUnitOfType','type','docs-code.command.insert-below','blockRanges','paragraphId','textStyle','parse','columns','dispose','max','entries','length','removeCode','metadata','startTokenOffset','docs-code.command.unwrap','replaceOp','string','blockType','isArray','removeOp','delete','reduce','_setResource','30109EcCqcU','bullet','docs-code.command.consume-boundary-delete','deleteLength','_config','constructor','SECTION_BREAK','paragraph','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','body','previousDocumentData','model','setCodeConfig','getOwnPropertyDescriptor','nextMetadata','_resources','handler','insertionMode','1308663IULaiz','getCodeConfig','stringify','UNIVER_DOC','TABLE_CELL_END','slice','compose','direction','min','decorate','from','textRuns','map','syncExecuteCommand','registerPluginResource','1132300gVEhSA','_initResource','asObservable','symbol','PARAGRAPH','unitId','serialize','cursorOffset','customDecorations','6Ryinxi','getParagraphsInRange','_commandService','some','COMMAND','start','registerCommand','set','javascript','onStarting','selectionManager','packageName','indexOf','docs-code.command.cancel-empty-paragraph','1196795UjASeC','right','endOffset','nextDocumentData','dataStream','getBody','insert-new','_change$','startOffset','removeUnit','BLOCK_START','replaceDocRanges','get','insertOp','paragraphs','_docsCodeModel','_injector','6VxpprW','docs-code.mutation.remove-config','CODE','docs-code.command.update','function','_configService','70QvqMMv','274088QVClSt','next','setConfig','complete','push','BLOCK_END','_resourceManagerService','spaceBelow','call','customBlocks','spaceAbove','Document\x20body\x20is\x20required','monospace','docs-code.command.exit','add','paragraphStyle','config','getInstance','documentData','endIndex','toPrimitive','forEach','insert','deserialize','default','range','tables','@univerjs-pro/docs-code','sort','object','773784ZQpJfU','change$','blockId','find','fromEntries','editOp','insertLength','sectionBreaks','1.0.0-alpha.7','filter','customRanges','version','MUTATION','813796ZLSQCH','pluginName','commandService','endsWith'];_0x528c=function(){return _0x3aa68f;};return _0x528c();}function et(_0x1e365e,_0x20d494,_0x4beac5){const _0x2eec7a=_0x18c3b6;return _0x1e365e==null?void 0x0:_0x1e365e[_0x2eec7a(0x252)](_0x5bea8f=>_0x5bea8f['st']>=_0x20d494?{..._0x5bea8f,'st':_0x5bea8f['st']+_0x4beac5,'ed':_0x5bea8f['ed']+_0x4beac5}:_0x5bea8f['ed']>_0x20d494?{..._0x5bea8f,'ed':_0x5bea8f['ed']+_0x4beac5}:_0x5bea8f);}function z(_0x41bfa3,_0x4ecf3f,_0xad6aba){const _0x5d7165=_0x18c3b6;return _0x41bfa3==null?void 0x0:_0x41bfa3[_0x5d7165(0x252)](_0x27c234=>_0x4ca3f5(_0x27c234,_0x4ecf3f,_0xad6aba));}function tt(_0x4d2b6c,_0x4db017,_0x29729a){const _0x51e3d6=_0x18c3b6;return _0x4d2b6c==null?void 0x0:_0x4d2b6c[_0x51e3d6(0x252)](_0x1f5e40=>_0x4bede0(_0x1f5e40,_0x4db017,_0x29729a));}function B(_0x16b5e5,_0x1e3771,_0x472e58){const _0x2dedbd=_0x18c3b6;return _0x16b5e5==null?void 0x0:_0x16b5e5[_0x2dedbd(0x252)](_0x47cb16=>_0x160344(_0x47cb16,_0x1e3771,_0x472e58))['filter'](_0x50fcd7=>_0x50fcd7!=null);}function nt(_0x12535f,_0x56049e,_0x411961){const _0x14728d=_0x18c3b6;return _0x12535f==null?void 0x0:_0x12535f[_0x14728d(0x252)](_0x578a97=>_0x235aba(_0x578a97,_0x56049e,_0x411961))[_0x14728d(0x205)](_0xb5165e=>_0xb5165e!=null);}const rt={'id':_0x18c3b6(0x21e),'type':_0x3be55c['COMMAND'],'handler':_0x463548=>{const _0x296ad5=_0x18c3b6;var _0x1a71f4;if(_0x2c52d7(K(_0x463548)))return!0x1;let _0x5cf037=_0x2ee982(_0x463548);if(_0x5cf037)return _0x463548[_0x296ad5(0x278)](_0x4d0578)[_0x296ad5(0x253)](V['id'],{'startOffset':_0x5cf037[_0x296ad5(0x274)],'endOffset':_0x5cf037[_0x296ad5(0x26e)],'insertionMode':_0x296ad5(0x272),'unitId':_0x5cf037[_0x296ad5(0x25a)]});let _0x536d98=ut(_0x463548);if(!_0x536d98)return!0x1;let _0x59dfd5=(_0x1a71f4=_0x463548[_0x296ad5(0x278)](_0x346a74)['getCurrentUnitOfType'](_0xad7320[_0x296ad5(0x249)]))==null?void 0x0:_0x1a71f4[_0x296ad5(0x271)](),_0x4b0cb8=_0x59dfd5?_0x291143(_0x59dfd5,_0x536d98):_0x536d98['startIndex']+0x1;return _0x463548['get'](_0x4d0578)[_0x296ad5(0x253)](V['id'],{'startOffset':_0x4b0cb8,'endOffset':_0x4b0cb8});}},it={'id':_0x18c3b6(0x236),'type':_0x3be55c[_0x18c3b6(0x262)],'handler':()=>!0x0},V={'id':_0x18c3b6(0x215),'type':_0x3be55c['COMMAND'],'handler':(_0x21b9de,_0x3be057)=>{const _0x976110=_0x18c3b6;var _0x1d93fd;let _0x4d934d=G(_0x21b9de,_0x3be057==null?void 0x0:_0x3be057[_0x976110(0x25a)]);if(!_0x4d934d)return!0x1;let _0x2e7b4b=K(_0x21b9de);if(_0x2c52d7(_0x2e7b4b))return!0x1;let _0x155f60=_0x4d934d['model'][_0x976110(0x25b)](_0x4d934d[_0x976110(0x25a)]),_0x324c73=st(_0x3be057,_0x2e7b4b),_0x4ffe75=ct(_0x4d934d[_0x976110(0x23e)],_0x324c73);if(_0x4ffe75){if(_0x4ffe75[_0x976110(0x22e)]!==_0x235429[_0x976110(0x1d9)])return!0x1;let _0x115dd1=ke({'blockId':_0x4ffe75[_0x976110(0x1fe)],'documentData':_0x4d934d[_0x976110(0x23e)],'metadata':_0x155f60});if(!_0x115dd1)return!0x1;let _0x50f358=Y(_0x4d934d[_0x976110(0x20b)],_0x4d934d['selectionManager'],_0x4d934d[_0x976110(0x25a)],_0x4d934d[_0x976110(0x23e)],_0x115dd1['nextDocumentData'],V['id'],_0x115dd1[_0x976110(0x25c)]);return _0x50f358&&_0x115dd1[_0x976110(0x242)]&&_0x4d934d[_0x976110(0x23f)][_0x976110(0x1f5)](_0x4d934d[_0x976110(0x25a)],_0x115dd1[_0x976110(0x242)]),_0x50f358;}let _0x1c23af=(_0x1d93fd=_0x3be057==null?void 0x0:_0x3be057['blockId'])==null?_0x33805c(0x6):_0x1d93fd,_0x5885c6;try{_0x5885c6=we({'blockId':_0x1c23af,'config':_0x3be057==null?void 0x0:_0x3be057[_0x976110(0x1ee)],'documentData':_0x4d934d['previousDocumentData'],'endOffset':_0x324c73==null?void 0x0:_0x324c73[_0x976110(0x26e)],'insertionMode':_0x3be057==null?void 0x0:_0x3be057[_0x976110(0x245)],'metadata':_0x155f60,'startOffset':_0x324c73==null?void 0x0:_0x324c73['startOffset']});}catch(_0x2ffdc9){if(_0x2ffdc9 instanceof O)return!0x1;throw _0x2ffdc9;}let _0x42c4e0=Y(_0x4d934d[_0x976110(0x20b)],_0x4d934d[_0x976110(0x268)],_0x4d934d[_0x976110(0x25a)],_0x4d934d[_0x976110(0x23e)],_0x5885c6[_0x976110(0x26f)],V['id'],_0x5885c6[_0x976110(0x25c)]);return _0x42c4e0&&_0x5885c6[_0x976110(0x242)]&&_0x4d934d['model'][_0x976110(0x1f5)](_0x4d934d[_0x976110(0x25a)],_0x5885c6[_0x976110(0x242)]),_0x42c4e0;}},at={'id':_0x18c3b6(0x1da),'type':_0x3be55c[_0x18c3b6(0x262)],'handler':(_0x165111,_0x3f6b5c)=>{const _0x7562ec=_0x18c3b6;if(!_0x3f6b5c)return!0x1;let _0x4fea0f=G(_0x165111,_0x3f6b5c['unitId']);if(!_0x4fea0f)return!0x1;let _0x548c16=Oe({'blockId':_0x3f6b5c[_0x7562ec(0x1fe)],'config':_0x3f6b5c[_0x7562ec(0x1ee)],'documentData':_0x4fea0f['previousDocumentData'],'metadata':_0x4fea0f[_0x7562ec(0x23f)][_0x7562ec(0x25b)](_0x4fea0f[_0x7562ec(0x25a)])});return _0x548c16[_0x7562ec(0x242)]&&_0x4fea0f[_0x7562ec(0x23f)]['deserialize'](_0x4fea0f[_0x7562ec(0x25a)],_0x548c16[_0x7562ec(0x242)]),!0x0;}},ot={'id':_0x18c3b6(0x1eb),'type':_0x3be55c[_0x18c3b6(0x262)],'handler':(_0x30d8a7,_0x14542a)=>H[_0x18c3b6(0x244)](_0x30d8a7,_0x14542a)},H={'id':_0x18c3b6(0x22b),'type':_0x3be55c[_0x18c3b6(0x262)],'handler':(_0x2c6f56,_0x317d52)=>{const _0x569717=_0x18c3b6;if(!_0x317d52)return!0x1;let _0xf31c69=G(_0x2c6f56,_0x317d52==null?void 0x0:_0x317d52[_0x569717(0x25a)]);if(!_0xf31c69)return!0x1;let _0x2ca888=ke({'blockId':_0x317d52['blockId'],'documentData':_0xf31c69[_0x569717(0x23e)],'metadata':_0xf31c69[_0x569717(0x23f)]['serialize'](_0xf31c69[_0x569717(0x25a)])});if(!_0x2ca888)return!0x1;let _0x13ac1b=Y(_0xf31c69['commandService'],_0xf31c69[_0x569717(0x268)],_0xf31c69[_0x569717(0x25a)],_0xf31c69[_0x569717(0x23e)],_0x2ca888[_0x569717(0x26f)],H['id'],_0x2ca888[_0x569717(0x25c)]);return _0x13ac1b&&_0x2ca888['nextMetadata']&&_0xf31c69[_0x569717(0x23f)]['deserialize'](_0xf31c69[_0x569717(0x25a)],_0x2ca888[_0x569717(0x242)]),_0x13ac1b;}},U={'id':'docs-code.command.remove','type':_0x3be55c['COMMAND'],'handler':(_0x253ee3,_0x453a21)=>{const _0x2efab7=_0x18c3b6;if(!_0x453a21)return!0x1;let _0x2d9ea9=G(_0x253ee3,_0x453a21==null?void 0x0:_0x453a21['unitId']);if(!_0x2d9ea9)return!0x1;let _0x2f57f6=Ae({'blockId':_0x453a21[_0x2efab7(0x1fe)],'documentData':_0x2d9ea9[_0x2efab7(0x23e)],'metadata':_0x2d9ea9[_0x2efab7(0x23f)][_0x2efab7(0x25b)](_0x2d9ea9[_0x2efab7(0x25a)])});if(!_0x2f57f6)return!0x1;let _0x139b6f=Y(_0x2d9ea9[_0x2efab7(0x20b)],_0x2d9ea9[_0x2efab7(0x268)],_0x2d9ea9[_0x2efab7(0x25a)],_0x2d9ea9[_0x2efab7(0x23e)],_0x2f57f6[_0x2efab7(0x26f)],U['id'],_0x2f57f6[_0x2efab7(0x25c)]);return _0x139b6f&&_0x2f57f6[_0x2efab7(0x242)]&&_0x2d9ea9['model'][_0x2efab7(0x1f5)](_0x2d9ea9['unitId'],_0x2f57f6[_0x2efab7(0x242)]),_0x139b6f;}},W={'id':_0x18c3b6(0x26b),'type':_0x3be55c[_0x18c3b6(0x262)],'handler':(_0x2dd9a6,_0x33b123)=>{const _0x4ba0ae=_0x18c3b6;var _0x1ebf33,_0x48a624;let _0x4ad535=G(_0x2dd9a6,_0x33b123==null?void 0x0:_0x33b123[_0x4ba0ae(0x25a)]);if(!_0x4ad535)return!0x1;let _0x29c992=(_0x1ebf33=_0x33b123==null?void 0x0:_0x33b123[_0x4ba0ae(0x25c)])==null?(_0x48a624=K(_0x2dd9a6))==null?void 0x0:_0x48a624[_0x4ba0ae(0x274)]:_0x1ebf33;if(_0x29c992==null)return!0x1;let _0x2602d9=je({'cursorOffset':_0x29c992,'documentData':_0x4ad535[_0x4ba0ae(0x23e)],'paragraphStartIndex':_0x33b123==null?void 0x0:_0x33b123['paragraphStartIndex']});return _0x2602d9?Y(_0x4ad535[_0x4ba0ae(0x20b)],_0x4ad535[_0x4ba0ae(0x268)],_0x4ad535[_0x4ba0ae(0x25a)],_0x4ad535[_0x4ba0ae(0x23e)],_0x2602d9[_0x4ba0ae(0x26f)],W['id'],_0x2602d9[_0x4ba0ae(0x25c)]):!0x1;}};function G(_0x403494,_0x1761ec){const _0x42857c=_0x18c3b6;let _0x173d30=_0x403494['get'](_0x346a74),_0x218c26=_0x1761ec?_0x173d30['getUnit'](_0x1761ec,_0xad7320[_0x42857c(0x249)]):_0x173d30[_0x42857c(0x21c)](_0xad7320[_0x42857c(0x249)]);return _0x218c26?{'commandService':_0x403494[_0x42857c(0x278)](_0x4d0578),'model':_0x403494[_0x42857c(0x278)](D),'previousDocumentData':_0x218c26['getSnapshot'](),'selectionManager':_0x403494[_0x42857c(0x278)](_0x462bf4),'unitId':_0x218c26['getUnitId']()}:null;}function K(_0x3286a8){const _0xa39d25=_0x18c3b6;var _0x3513da;return(_0x3513da=_0x3286a8[_0xa39d25(0x278)](_0x462bf4)['getTextRanges']())==null?void 0x0:_0x3513da[0x0];}function st(_0x5c8ead,_0x58c76b){const _0x475d87=_0x18c3b6;var _0x39e356,_0x50ef52;let _0x5603c7=(_0x39e356=_0x5c8ead==null?void 0x0:_0x5c8ead[_0x475d87(0x274)])==null?_0x58c76b==null?void 0x0:_0x58c76b['startOffset']:_0x39e356,_0x500ab4=(_0x50ef52=_0x5c8ead==null?void 0x0:_0x5c8ead[_0x475d87(0x26e)])==null?_0x58c76b==null?void 0x0:_0x58c76b[_0x475d87(0x26e)]:_0x50ef52;if(!(_0x5603c7==null||_0x500ab4==null))return{'endOffset':Math[_0x475d87(0x225)](_0x5603c7,_0x500ab4),'startOffset':Math[_0x475d87(0x24e)](_0x5603c7,_0x500ab4)};}function ct(_0x324dda,_0x45ee5c){const _0x5c5706=_0x18c3b6;var _0x5b65cb;if(!_0x45ee5c)return;let _0x108432=lt(_0x45ee5c);return(_0x5b65cb=_0x324dda[_0x5c5706(0x23d)])==null||(_0x5b65cb=_0x5b65cb[_0x5c5706(0x21f)])==null?void 0x0:_0x5b65cb[_0x5c5706(0x1ff)](_0x4af411=>{const _0x4b9c17=_0x5c5706;let _0x9e6cd8=_0x2cea6f(_0x4af411);return _0x45ee5c[_0x4b9c17(0x274)]===_0x45ee5c[_0x4b9c17(0x26e)]?_0x4077aa(_0x9e6cd8,_0x108432):_0x52034b(_0x9e6cd8,_0x108432);});}function lt(_0x31069e){const _0x166e13=_0x18c3b6;return _0x31069e[_0x166e13(0x274)]===_0x31069e[_0x166e13(0x26e)]?_0x31069e['startOffset']:_0x31069e[_0x166e13(0x274)]+0x1;}function ut(_0x1ccf8d){const _0x316562=_0x18c3b6;var _0x4e42c5,_0x27be52,_0x4707d4;let _0x259eba=K(_0x1ccf8d);if(!_0x259eba)return null;let _0x186bcf=_0x1ccf8d[_0x316562(0x278)](_0x346a74)[_0x316562(0x21c)](_0xad7320[_0x316562(0x249)]),_0x23d14b=_0x186bcf==null?void 0x0:_0x186bcf[_0x316562(0x271)]();return _0x23d14b?(_0x4e42c5=_0x2d03d5[_0x316562(0x1f7)][_0x316562(0x25f)](_0x259eba,(_0x27be52=_0x23d14b[_0x316562(0x27a)])==null?[]:_0x27be52,(_0x4707d4=_0x23d14b[_0x316562(0x270)])==null?'':_0x4707d4)[0x0])==null?null:_0x4e42c5:null;}function dt(_0x1c26fc,_0x3f1248){const _0x25bf4e=_0x18c3b6;let _0x8af9dc=_0x1c26fc[_0x25bf4e(0x23d)],_0x1a0338=_0x3f1248['body'],_0x248e07=_0x1eab78(_0x8af9dc,_0x1a0338);return[_0x248e07&&_0x1a0338?ft(_0x1a0338,_0x248e07):null,_0x248e07?null:pt(_0x8af9dc,_0x1a0338)][_0x25bf4e(0x205)](Boolean)[_0x25bf4e(0x232)]((_0x2f488a,_0x524345)=>_0x87d7fa['compose'](_0x2f488a,_0x524345),null);}function ft(_0x334d3b,_0x373ffe){const _0x3ccb02=_0x18c3b6;let _0x3ed44d=new _0x4e63ee();return _0x3ed44d['retain'](_0x373ffe[_0x3ccb02(0x263)]),_0x373ffe[_0x3ccb02(0x202)]>0x0&&_0x3ed44d[_0x3ccb02(0x1f4)](_0x373ffe[_0x3ccb02(0x202)],_0x189863(_0x334d3b,_0x373ffe['start'],_0x373ffe[_0x3ccb02(0x263)]+_0x373ffe[_0x3ccb02(0x202)],!0x1)),_0x373ffe[_0x3ccb02(0x237)]>0x0&&_0x3ed44d[_0x3ccb02(0x231)](_0x373ffe['deleteLength']),_0x87d7fa['getInstance']()[_0x3ccb02(0x201)](_0x3ed44d[_0x3ccb02(0x25b)](),[_0x3ccb02(0x23d)]);}function pt(_0x33e984,_0x276945){const _0xf0c456=_0x18c3b6;let _0x5904db=[],_0x1239f5=_0x33e984?ht(_0x33e984):void 0x0,_0x37a8dd=_0x276945?ht(_0x276945):void 0x0;for(let _0x48d525 of mt)q(_0x87d7fa[_0xf0c456(0x1ef)](),['body',_0x48d525],_0x1239f5==null?void 0x0:_0x1239f5[_0x48d525],_0x37a8dd==null?void 0x0:_0x37a8dd[_0x48d525],_0x5904db);return _0x5904db[_0xf0c456(0x232)]((_0x2be0dd,_0x33ee10)=>_0x87d7fa[_0xf0c456(0x24c)](_0x2be0dd,_0x33ee10),null);}const mt=['paragraphs',_0x18c3b6(0x203),_0x18c3b6(0x1f8),_0x18c3b6(0x21a),_0x18c3b6(0x21f),_0x18c3b6(0x1e7),_0x18c3b6(0x206),'customDecorations',_0x18c3b6(0x251)];function ht(_0x534cce){return _0x534cce;}function q(_0x49e03e,_0x35fbee,_0x1048cd,_0x496f95,_0x3371f6){const _0x325a45=_0x18c3b6;if(!J(_0x1048cd,_0x496f95)){if(_0x1048cd==null){_0x3371f6['push'](_0x49e03e[_0x325a45(0x279)](_0x35fbee,_0x496f95));return;}if(_0x496f95==null){_0x3371f6['push'](_0x49e03e[_0x325a45(0x230)](_0x35fbee,_0x1048cd));return;}if(Array[_0x325a45(0x22f)](_0x1048cd)&&Array[_0x325a45(0x22f)](_0x496f95)){gt(_0x49e03e,_0x35fbee,_0x1048cd,_0x496f95,_0x3371f6);return;}if(_t(_0x1048cd)&&_t(_0x496f95)){new Set([...Object[_0x325a45(0x212)](_0x1048cd),...Object['keys'](_0x496f95)])[_0x325a45(0x1f3)](_0x3c5bc6=>{q(_0x49e03e,[..._0x35fbee,_0x3c5bc6],_0x1048cd[_0x3c5bc6],_0x496f95[_0x3c5bc6],_0x3371f6);});return;}_0x3371f6['push'](_0x49e03e[_0x325a45(0x22c)](_0x35fbee,_0x1048cd,_0x496f95));}}function gt(_0x16f62f,_0xdedf46,_0x32473d,_0x2b698a,_0x30f928){const _0x383383=_0x18c3b6;if(_0x32473d['length']===_0x2b698a[_0x383383(0x227)]){_0x32473d[_0x383383(0x1f3)]((_0x580981,_0x35fd63)=>q(_0x16f62f,[..._0xdedf46,_0x35fd63],_0x580981,_0x2b698a[_0x35fd63],_0x30f928));return;}let _0x36edd0=0x0;for(;_0x36edd0<_0x32473d[_0x383383(0x227)]&&_0x36edd0<_0x2b698a['length']&&J(_0x32473d[_0x36edd0],_0x2b698a[_0x36edd0]);)_0x36edd0++;let _0x2dbcbf=_0x32473d[_0x383383(0x227)]-0x1,_0x4f2317=_0x2b698a[_0x383383(0x227)]-0x1;for(;_0x2dbcbf>=_0x36edd0&&_0x4f2317>=_0x36edd0&&J(_0x32473d[_0x2dbcbf],_0x2b698a[_0x4f2317]);)_0x2dbcbf--,_0x4f2317--;for(let _0x2ed9a1=_0x2dbcbf;_0x2ed9a1>=_0x36edd0;_0x2ed9a1--)_0x30f928[_0x383383(0x1e2)](_0x16f62f[_0x383383(0x230)]([..._0xdedf46,_0x2ed9a1],_0x32473d[_0x2ed9a1]));for(let _0x507cda=_0x36edd0;_0x507cda<=_0x4f2317;_0x507cda++)_0x30f928[_0x383383(0x1e2)](_0x16f62f['insertOp']([..._0xdedf46,_0x507cda],_0x2b698a[_0x507cda]));}function _t(_0x2e28d8){const _0x45a813=_0x18c3b6;return typeof _0x2e28d8=='object'&&!!_0x2e28d8&&!Array[_0x45a813(0x22f)](_0x2e28d8);}function J(_0x4e9388,_0x4dc464){return JSON['stringify'](_0x4e9388)===JSON['stringify'](_0x4dc464);}function Y(_0x2550b3,_0xe8dba8,_0x52a122,_0x3da49a,_0x36640e,_0x3f5c91,_0x11af8b){const _0x3f47b3=_0x18c3b6;let _0x31c1a7=dt(_0x3da49a,_0x36640e);return _0x31c1a7?!!_0x2550b3['syncExecuteCommand'](_0x113fa7['id'],{'unitId':_0x52a122,'actions':_0x31c1a7,'textRanges':[{'startOffset':_0x11af8b,'endOffset':_0x11af8b,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x3f5c91}):(_0xe8dba8[_0x3f47b3(0x277)]([{'startOffset':_0x11af8b,'endOffset':_0x11af8b}],{'unitId':_0x52a122,'subUnitId':_0x52a122},!0x1),!0x0);}const X='DOC_CODE_PLUGIN';var vt=_0x18c3b6(0x1f9),yt=_0x18c3b6(0x204);const bt={};function Z(_0x88b39a,_0x3e8afb){return function(_0x42b07a,_0x1b757d){_0x3e8afb(_0x42b07a,_0x1b757d,_0x88b39a);};}function xt(_0xed8106,_0x3746af,_0x3ef6bd,_0x59de1a){const _0x25eb94=_0x18c3b6;var _0x3f32e8=arguments[_0x25eb94(0x227)],_0x238246=_0x3f32e8<0x3?_0x3746af:_0x59de1a===null?_0x59de1a=Object[_0x25eb94(0x241)](_0x3746af,_0x3ef6bd):_0x59de1a,_0x21fc2a;if(typeof Reflect=='object'&&typeof Reflect[_0x25eb94(0x24f)]==_0x25eb94(0x1db))_0x238246=Reflect[_0x25eb94(0x24f)](_0xed8106,_0x3746af,_0x3ef6bd,_0x59de1a);else{for(var _0x4913ea=_0xed8106['length']-0x1;_0x4913ea>=0x0;_0x4913ea--)(_0x21fc2a=_0xed8106[_0x4913ea])&&(_0x238246=(_0x3f32e8<0x3?_0x21fc2a(_0x238246):_0x3f32e8>0x3?_0x21fc2a(_0x3746af,_0x3ef6bd,_0x238246):_0x21fc2a(_0x3746af,_0x3ef6bd))||_0x238246);}return _0x3f32e8>0x3&&_0x238246&&Object['defineProperty'](_0x3746af,_0x3ef6bd,_0x238246),_0x238246;}let Q=class extends _0x4948fc{constructor(_0x40b799,_0x99b83b){const _0xfbd9ab=_0x18c3b6;super(),this[_0xfbd9ab(0x1e4)]=_0x40b799,this[_0xfbd9ab(0x27b)]=_0x99b83b,this[_0xfbd9ab(0x256)]();}[_0x18c3b6(0x256)](){const _0x5b2d4b=_0x18c3b6;this[_0x5b2d4b(0x213)](this[_0x5b2d4b(0x1e4)][_0x5b2d4b(0x254)]({'pluginName':X,'businesses':[_0xad7320[_0x5b2d4b(0x249)]],'toJson':_0x18684a=>JSON[_0x5b2d4b(0x248)](this[_0x5b2d4b(0x27b)]['serialize'](_0x18684a)),'parseJson':_0x3dcdab=>S(JSON[_0x5b2d4b(0x222)](_0x3dcdab)),'onLoad':(_0x2b47b2,_0x396cc0)=>this[_0x5b2d4b(0x27b)][_0x5b2d4b(0x1f5)](_0x2b47b2,_0x396cc0),'onUnLoad':_0x37846c=>this[_0x5b2d4b(0x27b)][_0x5b2d4b(0x275)](_0x37846c)}));}};Q=xt([Z(0x0,_0x1714ed),Z(0x1,_0x4f21b2(D))],Q);let $=class extends _0x113499{constructor(_0x1bfa5b=bt,_0x75ae79,_0x4e76b1,_0x3542fa){const _0x1c4440=_0x18c3b6;super(),this['_config']=_0x1bfa5b,this[_0x1c4440(0x27c)]=_0x75ae79,this['_commandService']=_0x4e76b1,this[_0x1c4440(0x1dc)]=_0x3542fa;let {..._0x2c7601}=_0x562bff({},bt,this[_0x1c4440(0x238)]);this['_configService'][_0x1c4440(0x1e0)](_0x1c4440(0x214),_0x2c7601);}[_0x18c3b6(0x267)](){const _0x31a710=_0x18c3b6;this[_0x31a710(0x27c)][_0x31a710(0x1ec)]([D]),this[_0x31a710(0x27c)][_0x31a710(0x1ec)]([Q]),this[_0x31a710(0x27c)][_0x31a710(0x278)](D),this['_injector'][_0x31a710(0x278)](Q),[V,rt,at,H,U,ot,W,it,xe,Se][_0x31a710(0x1f3)](_0x443ea7=>this[_0x31a710(0x213)](this[_0x31a710(0x260)][_0x31a710(0x264)](_0x443ea7)));}};E($,_0x18c3b6(0x20a),X),E($,_0x18c3b6(0x269),vt),E($,_0x18c3b6(0x207),yt),E($,_0x18c3b6(0x21d),_0xad7320[_0x18c3b6(0x249)]),$=xt([_0x276851(_0x3d3e22,_0x4cbbf9),Z(0x1,_0x4f21b2(_0x28ac44)),Z(0x2,_0x4d0578),Z(0x3,_0x293d21)],$);export{X as DOCS_CODE_PLUGIN,W as DocsCodeCancelEmptyParagraphCommand,it as DocsCodeConsumeBoundaryDeleteCommand,rt as DocsCodeInsertBelowCommand,V as DocsCodeInsertCommand,D as DocsCodeModel,U as DocsCodeRemoveCommand,H as DocsCodeUnwrapCommand,at as DocsCodeUpdateCommand,Se as RemoveDocsCodeConfigMutation,xe as SetDocsCodeConfigMutation,$ as UniverDocsCodePlugin,je as buildCancelEmptyCodeParagraphActions,Pe as isCodeBoundaryDelete,x as normalizeDocsCodeConfig,S as normalizeDocsCodeMetadataResource};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function _0x1c1c(_0x4e7824,_0x5bbe55){_0x4e7824=_0x4e7824-0x1e8;var _0xe1af64=_0xe1af();var _0x1c1c8a=_0xe1af64[_0x4e7824];return _0x1c1c8a;}var _0x1be9d0=_0x1c1c;(function(_0x5647ed,_0xf611eb){var _0x3004b2=_0x1c1c,_0x78f0ad=_0x5647ed();while(!![]){try{var _0x1bb04d=-parseInt(_0x3004b2(0x222))/0x1+parseInt(_0x3004b2(0x227))/0x2+parseInt(_0x3004b2(0x214))/0x3*(-parseInt(_0x3004b2(0x1f5))/0x4)+parseInt(_0x3004b2(0x1f9))/0x5+-parseInt(_0x3004b2(0x1ff))/0x6+-parseInt(_0x3004b2(0x1fe))/0x7+parseInt(_0x3004b2(0x20e))/0x8*(parseInt(_0x3004b2(0x202))/0x9);if(_0x1bb04d===_0xf611eb)break;else _0x78f0ad['push'](_0x78f0ad['shift']());}catch(_0x59031c){_0x78f0ad['push'](_0x78f0ad['shift']());}}}(_0xe1af,0xba5c8));function _0xe1af(){var _0x545f41=['611207xNZsmD','from','call','length','decorate','1902944EcPPkt','some','_getBlockRange','SECTION_BREAK','find','dataStream','getCodeAt','getCode','insertCode','_document','get','extend','includes','symbol','PARAGRAPH','blockType','function','4ypuMwy','getCodes','_injector','toPrimitive','987625jfABnp','config','endIndex','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','object','1740410ljzuCQ','3730110sEdnBj','CODE','replace','242343WHrAVe','default','getConfig','getText','save','_createFDocumentCode','updateConfig','_getBlockRanges','body','slice','constructor','string','496GJxCtu','remove','findCodeByText','defineProperty','_getDocumentData','getOwnPropertyDescriptor','1720839MofCLz','findCodes','_blockId','filter','_unitId','blockId','map','blockRanges','getRange','getId','startIndex','unwrap','text','BLOCK_START'];_0xe1af=function(){return _0x545f41;};return _0xe1af();}import{DocsCodeInsertCommand as _0x269773,DocsCodeModel as _0x4559e3,DocsCodeRemoveCommand as _0x1720df,DocsCodeUnwrapCommand as _0x2de652,DocsCodeUpdateCommand as _0x217ecc,normalizeDocsCodeConfig as _0x1f00ad}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x15afc9,DocumentBlockRangeType as _0x290993,ICommandService as _0x388373,Inject as _0x260a6a,Injector as _0x704db5,generateRandomId as _0x1b4da9}from'@univerjs/core';import{FDocument as _0x4769e0,isParagraphFacade as _0x11b821}from'@univerjs/docs/facade';function m(_0xd1209a){'@babel/helpers - typeof';var _0x3510f0=_0x1c1c;return m=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x3510f0(0x1f1)?function(_0x54418b){return typeof _0x54418b;}:function(_0x2d98c1){var _0x103311=_0x3510f0;return _0x2d98c1&&typeof Symbol==_0x103311(0x1f4)&&_0x2d98c1[_0x103311(0x20c)]===Symbol&&_0x2d98c1!==Symbol['prototype']?_0x103311(0x1f1):typeof _0x2d98c1;},m(_0xd1209a);}function h(_0x44a889,_0x3e7e0f){var _0x159f14=_0x1c1c;if(m(_0x44a889)!=_0x159f14(0x1fd)||!_0x44a889)return _0x44a889;var _0x467140=_0x44a889[Symbol[_0x159f14(0x1f8)]];if(_0x467140!==void 0x0){var _0xdc5a56=_0x467140[_0x159f14(0x224)](_0x44a889,_0x3e7e0f||_0x159f14(0x203));if(m(_0xdc5a56)!=_0x159f14(0x1fd))return _0xdc5a56;throw TypeError(_0x159f14(0x1fc));}return(_0x3e7e0f===_0x159f14(0x20d)?String:Number)(_0x44a889);}function g(_0x7b6b5f){var _0xf16834=_0x1c1c,_0xcffc51=h(_0x7b6b5f,_0xf16834(0x20d));return m(_0xcffc51)==_0xf16834(0x1f1)?_0xcffc51:_0xcffc51+'';}function _(_0x57bd32,_0x591542,_0x34975f){return(_0x591542=g(_0x591542))in _0x57bd32?Object['defineProperty'](_0x57bd32,_0x591542,{'value':_0x34975f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x57bd32[_0x591542]=_0x34975f,_0x57bd32;}function v(_0x30155c,_0x10fa74){return function(_0x359319,_0x1c2da5){_0x10fa74(_0x359319,_0x1c2da5,_0x30155c);};}function y(_0x527585,_0x34ae72,_0x5edb85,_0x31c31c){var _0x2787f2=_0x1c1c,_0x1d906f=arguments[_0x2787f2(0x225)],_0x4bb6f3=_0x1d906f<0x3?_0x34ae72:_0x31c31c===null?_0x31c31c=Object[_0x2787f2(0x213)](_0x34ae72,_0x5edb85):_0x31c31c,_0x36af7e;if(typeof Reflect==_0x2787f2(0x1fd)&&typeof Reflect['decorate']=='function')_0x4bb6f3=Reflect[_0x2787f2(0x226)](_0x527585,_0x34ae72,_0x5edb85,_0x31c31c);else{for(var _0xb12d88=_0x527585['length']-0x1;_0xb12d88>=0x0;_0xb12d88--)(_0x36af7e=_0x527585[_0xb12d88])&&(_0x4bb6f3=(_0x1d906f<0x3?_0x36af7e(_0x4bb6f3):_0x1d906f>0x3?_0x36af7e(_0x34ae72,_0x5edb85,_0x4bb6f3):_0x36af7e(_0x34ae72,_0x5edb85))||_0x4bb6f3);}return _0x1d906f>0x3&&_0x4bb6f3&&Object[_0x2787f2(0x211)](_0x34ae72,_0x5edb85,_0x4bb6f3),_0x4bb6f3;}let b=class{constructor(_0x4ac40f,_0x184b3b,_0x56dbaf){var _0x14cb96=_0x1c1c;this[_0x14cb96(0x1ed)]=_0x4ac40f,this[_0x14cb96(0x216)]=_0x184b3b,this[_0x14cb96(0x1f7)]=_0x56dbaf,_(this,_0x14cb96(0x218),void 0x0),this[_0x14cb96(0x218)]=this[_0x14cb96(0x1ed)][_0x14cb96(0x21d)]();}['getId'](){var _0x202fd4=_0x1c1c;return this[_0x202fd4(0x216)];}[_0x1be9d0(0x21c)](){var _0x47ff9e=_0x1be9d0;let _0x5559ad=this[_0x47ff9e(0x229)]();return _0x5559ad?{'blockId':_0x5559ad[_0x47ff9e(0x219)],'endIndex':_0x5559ad[_0x47ff9e(0x1fb)],'startIndex':_0x5559ad[_0x47ff9e(0x21e)]}:null;}['getText'](){var _0x30e940=_0x1be9d0,_0x45e7c5;let _0x559a1c=this[_0x30e940(0x229)](),_0x1e4fe4=(_0x45e7c5=this['_getDocumentData']()[_0x30e940(0x20a)])==null?void 0x0:_0x45e7c5[_0x30e940(0x1e9)];return!_0x559a1c||!_0x1e4fe4?'':x(_0x1e4fe4[_0x30e940(0x20b)](_0x559a1c['startIndex']+0x1,_0x559a1c[_0x30e940(0x1fb)]));}['describe'](){var _0x5a532c=_0x1be9d0;let _0x4c450a=this[_0x5a532c(0x21c)]();return _0x4c450a?{..._0x4c450a,'config':this['getConfig'](),'text':this[_0x5a532c(0x205)](),'type':_0x290993[_0x5a532c(0x200)]}:null;}[_0x1be9d0(0x204)](){var _0x5400ed=_0x1be9d0;return _0x1f00ad(this[_0x5400ed(0x1f7)][_0x5400ed(0x1ee)](_0x4559e3)['getCodeConfig'](this[_0x5400ed(0x218)],this[_0x5400ed(0x216)]));}[_0x1be9d0(0x208)](_0x15aacb){var _0x1059a0=_0x1be9d0;return this['_injector'][_0x1059a0(0x1ee)](_0x388373)['syncExecuteCommand'](_0x217ecc['id'],{'blockId':this['_blockId'],'config':_0x15aacb[_0x1059a0(0x1fa)],'unitId':this[_0x1059a0(0x218)]});}[_0x1be9d0(0x21f)](){var _0x34b6b6=_0x1be9d0;return this['_injector'][_0x34b6b6(0x1ee)](_0x388373)['syncExecuteCommand'](_0x2de652['id'],{'blockId':this[_0x34b6b6(0x216)],'unitId':this[_0x34b6b6(0x218)]});}[_0x1be9d0(0x20f)](){var _0x27a4e0=_0x1be9d0;return this[_0x27a4e0(0x1f7)][_0x27a4e0(0x1ee)](_0x388373)['syncExecuteCommand'](_0x1720df['id'],{'blockId':this[_0x27a4e0(0x216)],'unitId':this[_0x27a4e0(0x218)]});}['_getBlockRange'](){var _0x444564=_0x1be9d0,_0x4ca0a1;let _0x262e41=(_0x4ca0a1=this['_getDocumentData']()[_0x444564(0x20a)])==null||(_0x4ca0a1=_0x4ca0a1[_0x444564(0x21b)])==null?void 0x0:_0x4ca0a1[_0x444564(0x1e8)](_0x25d67d=>_0x25d67d['blockId']===this['_blockId']&&_0x25d67d['blockType']===_0x290993[_0x444564(0x200)]);return _0x262e41==null?null:_0x262e41;}[_0x1be9d0(0x212)](){var _0x4e93da=_0x1be9d0;return this['_document'][_0x4e93da(0x206)]();}};b=y([v(0x2,_0x260a6a(_0x704db5))],b);function x(_0x21f26b){var _0x1f6596=_0x1be9d0;return Array[_0x1f6596(0x223)](_0x21f26b)[_0x1f6596(0x21a)](_0x5bc423=>_0x5bc423===_0x15afc9[_0x1f6596(0x1f2)]?'\x0a':_0x5bc423)[_0x1f6596(0x217)](_0x281a42=>_0x281a42!==_0x15afc9[_0x1f6596(0x221)]&&_0x281a42!==_0x15afc9['BLOCK_END']&&_0x281a42!==_0x15afc9[_0x1f6596(0x22a)])['join']('')[_0x1f6596(0x201)](/\n$/,'');}var S=class extends _0x4769e0{[_0x1be9d0(0x1f6)](){var _0x53bedb=_0x1be9d0;return this[_0x53bedb(0x209)]()['filter'](_0x4153e7=>_0x4153e7[_0x53bedb(0x1f3)]===_0x290993[_0x53bedb(0x200)])[_0x53bedb(0x21a)](_0x3cd3ec=>this[_0x53bedb(0x207)](_0x3cd3ec['blockId']));}[_0x1be9d0(0x1eb)](_0xdc29bd){var _0x5e8304=_0x1be9d0;return this[_0x5e8304(0x209)]()[_0x5e8304(0x228)](_0x116488=>_0x116488[_0x5e8304(0x219)]===_0xdc29bd&&_0x116488['blockType']===_0x290993[_0x5e8304(0x200)])?this[_0x5e8304(0x207)](_0xdc29bd):null;}[_0x1be9d0(0x1ea)](_0xbad132){var _0x351c4c=_0x1be9d0;let _0x3b8b9a=this[_0x351c4c(0x209)]()[_0x351c4c(0x1e8)](_0x166c01=>_0x166c01[_0x351c4c(0x1f3)]===_0x290993[_0x351c4c(0x200)]&&_0x166c01['startIndex']<=_0xbad132&&_0xbad132<=_0x166c01[_0x351c4c(0x1fb)]);return _0x3b8b9a?this[_0x351c4c(0x207)](_0x3b8b9a['blockId']):null;}[_0x1be9d0(0x210)](_0x3e25ce){var _0x2f286a=_0x1be9d0,_0x4d288a;return(_0x4d288a=this[_0x2f286a(0x215)](_0x3e25ce)[0x0])==null?null:_0x4d288a;}[_0x1be9d0(0x215)](_0x37c962){var _0x2bdca5=_0x1be9d0;let _0x5e45d4=typeof _0x37c962==_0x2bdca5(0x20d)?{'text':_0x37c962}:_0x37c962;return this[_0x2bdca5(0x1f6)]()[_0x2bdca5(0x217)](_0x808d5b=>!(_0x5e45d4[_0x2bdca5(0x219)]&&_0x808d5b[_0x2bdca5(0x21d)]()!==_0x5e45d4[_0x2bdca5(0x219)]||_0x5e45d4[_0x2bdca5(0x220)]&&!_0x808d5b['getText']()[_0x2bdca5(0x1f0)](_0x5e45d4[_0x2bdca5(0x220)])));}[_0x1be9d0(0x1ec)](_0x5dc873={},_0x136d1e={}){var _0x2dc87c=_0x1be9d0,_0x422068;let _0x587d2e=this['_injector'][_0x2dc87c(0x1ee)](_0x388373),_0x4648cc=_0x11b821(_0x5dc873)?{..._0x136d1e,..._0x5dc873['getRange']()}:_0x5dc873,_0x363b76=(_0x422068=_0x4648cc[_0x2dc87c(0x219)])==null?_0x1b4da9(0x6):_0x422068;return _0x587d2e['syncExecuteCommand'](_0x269773['id'],{..._0x4648cc,'blockId':_0x363b76,'unitId':this[_0x2dc87c(0x21d)]()})?this['getCode'](_0x363b76):null;}['_getBlockRanges'](){var _0x4346e5=_0x1be9d0,_0x2749c6,_0x8325bb;return(_0x2749c6=(_0x8325bb=this['save']()[_0x4346e5(0x20a)])==null?void 0x0:_0x8325bb['blockRanges'])==null?[]:_0x2749c6;}[_0x1be9d0(0x207)](_0x348b00){var _0x26c619=_0x1be9d0;return this[_0x26c619(0x1f7)]['createInstance'](b,this,_0x348b00);}};_0x4769e0[_0x1be9d0(0x1ef)](S);export{b as FDocumentCode};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1edc1f=_0x23a6;function _0x23a6(_0x5563f6,_0x426ced){_0x5563f6=_0x5563f6-0x1b6;const _0x8e7208=_0x8e72();let _0x23a61a=_0x8e7208[_0x5563f6];return _0x23a61a;}(function(_0x1953ae,_0x259e0d){const _0xce95f5=_0x23a6,_0x43d89e=_0x1953ae();while(!![]){try{const _0x272354=parseInt(_0xce95f5(0x206))/0x1+-parseInt(_0xce95f5(0x254))/0x2*(parseInt(_0xce95f5(0x1ce))/0x3)+-parseInt(_0xce95f5(0x1de))/0x4*(parseInt(_0xce95f5(0x1ed))/0x5)+-parseInt(_0xce95f5(0x1e5))/0x6*(parseInt(_0xce95f5(0x23e))/0x7)+parseInt(_0xce95f5(0x1e1))/0x8*(parseInt(_0xce95f5(0x256))/0x9)+-parseInt(_0xce95f5(0x1bc))/0xa+parseInt(_0xce95f5(0x20b))/0xb*(parseInt(_0xce95f5(0x1dd))/0xc);if(_0x272354===_0x259e0d)break;else _0x43d89e['push'](_0x43d89e['shift']());}catch(_0x118d37){_0x43d89e['push'](_0x43d89e['shift']());}}}(_0x8e72,0xcf039));import{BuildTextUtils as _0xfcd91,CommandType as _0x3aa002,DataStreamTreeTokenType as _0x43b06f,DependentOn as _0x2f1165,Disposable as _0x11f1e7,DocumentBlockRangeType as _0x37a99f,ICommandService as _0x1d61d6,IConfigService as _0x4a9167,IResourceManagerService as _0x50ae34,IUniverInstanceService as _0x45d141,Inject as _0x5c4b8b,Injector as _0x193e69,JSONX as _0x3e4a71,Plugin as _0x19b9cc,TextX as _0x37143f,UniverInstanceType as _0x41a83a,containsInteriorInsertionOffset as _0x52963d,containsStreamIndex as _0xf103f,createParagraphId as _0x5cfb3a,generateRandomId as _0x35a556,getBlockRangeInterval as _0x4a1bb2,getBodySliceForTextXAction as _0x2fb9bb,getParagraphContentStartOffset as _0x120216,getParagraphContentStartOffsets as _0xfa281d,getParagraphFollowingBlockOffset as _0x2be263,getSingleDataStreamChange as _0x1817eb,intersectsOperationalIntervals as _0x2f8ce5,merge as _0x559340,shiftExclusiveRangeOnDelete as _0x1c7981,shiftExclusiveRangeOnInsert as _0x2dea21,shiftInclusiveRangeOnDelete as _0x3a6def,shiftInclusiveRangeOnInsert as _0x5bff0d}from'@univerjs/core';import{DocSelectionManagerService as _0x2ed20d,RichTextEditingMutation as _0xc563fa,UniverDocsPlugin as _0x3f1e99,getContentInsertRange as _0x517640,isHeaderFooterSelection as _0xaf3991}from'@univerjs/docs';import{Subject as _0x3b77df}from'rxjs';import{UniverLicensePlugin as _0x4c3c74}from'@univerjs-pro/license';const ye={'language':_0x1edc1f(0x252),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function b(_0x307f11){return{...ye,..._0x307f11};}function x(_0x28cbb9){const _0x1c8662=_0x1edc1f;var _0x4f48cb;let _0xb2010d=(_0x4f48cb=_0x28cbb9==null?void 0x0:_0x28cbb9[_0x1c8662(0x1ec)])==null?{}:_0x4f48cb;return{'codes':Object[_0x1c8662(0x1f6)](Object[_0x1c8662(0x1c9)](_0xb2010d)['map'](([_0x4db315,_0x9f0254])=>[_0x4db315,b(_0x9f0254)]))};}function S(_0x38e080,_0x200d32,_0xf00307){const _0x25d111=_0x1edc1f;let _0x3bedf1=x(_0x38e080);return _0x3bedf1['codes'][_0x200d32]=b({..._0x3bedf1[_0x25d111(0x1ec)][_0x200d32],..._0xf00307}),_0x3bedf1;}function C(_0x20a188,_0x56154a){let _0x51484b=x(_0x20a188);return delete _0x51484b['codes'][_0x56154a],_0x51484b;}const be=_0x1edc1f(0x253);var w=class extends Error{constructor(_0xfbf296='Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries'){super(_0xfbf296);}};function xe(_0x7f1a3f){const _0x5b9022=_0x1edc1f;var _0x284857,_0x2ae09d,_0x4a5043;let _0x7621eb=T(_0x7f1a3f[_0x5b9022(0x244)]),_0x56992c=D(_0x7621eb),_0x1987bb=Ce(_0x7f1a3f[_0x5b9022(0x232)],_0x7f1a3f[_0x5b9022(0x1e3)]),_0x4ce653=_0x1987bb?(_0x284857=_0x56992c['blockRanges'])==null?void 0x0:_0x284857[_0x5b9022(0x212)](_0xdfaf5e=>{const _0x3ec8ce=_0x5b9022;let _0x1ed206=_0x4a1bb2(_0xdfaf5e);return _0x1ed206[_0x3ec8ce(0x232)]===_0x1987bb['startOffset']&&_0x1ed206[_0x3ec8ce(0x1e3)]===_0x1987bb[_0x3ec8ce(0x1e3)];}):void 0x0,{startOffset:_0x508923,endOffset:_0x577321}=_0x4ce653?_0x1987bb:ze(_0x56992c,_0x7f1a3f[_0x5b9022(0x232)],_0x7f1a3f[_0x5b9022(0x1e3)],_0x7f1a3f[_0x5b9022(0x21b)]);if(!_0x4ce653&&we(_0x56992c,_0x508923,_0x577321))throw new w(_0x5b9022(0x1c6));let _0x3e20fa=He(_0x56992c,_0x508923,_0x577321),_0x2741d6=(_0x2ae09d=_0x4ce653==null?void 0x0:_0x4ce653[_0x5b9022(0x1e4)])==null?_0x7f1a3f[_0x5b9022(0x1e4)]:_0x2ae09d,_0x7585d5=S(_0x7f1a3f[_0x5b9022(0x247)],_0x2741d6,{...ye,..._0x7f1a3f[_0x5b9022(0x1c1)]});if(_0x4ce653)return _0x4ce653[_0x5b9022(0x210)]=_0x37a99f['CODE'],Se(_0x56992c,_0x508923,_0x577321),Pe(_0x56992c,_0x508923,_0x577321,_0x3e20fa),A(_0x56992c,_0x4ce653),{'nextDocumentData':_0x7621eb,'nextMetadata':_0x7585d5,'cursorOffset':_0x508923+0x1};if(_0x508923===_0x577321){var _0x38de6b,_0x167dc0;let _0xf03c04=''+_0x43b06f[_0x5b9022(0x251)]+_0x43b06f[_0x5b9022(0x202)]+_0x43b06f[_0x5b9022(0x241)];j(_0x56992c,_0x508923,_0xf03c04,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x5cfb3a(new Set((_0x38de6b=_0x56992c[_0x5b9022(0x1c7)])==null?void 0x0:_0x38de6b[_0x5b9022(0x200)](_0xc6777d=>_0xc6777d[_0x5b9022(0x214)]))),'paragraphStyle':Ne(!0x0,!0x0,_0x3e20fa)}],'blockRanges':[{'blockId':_0x2741d6,'blockType':_0x37a99f['CODE'],'startIndex':0x0,'endIndex':_0xf03c04[_0x5b9022(0x1d8)]-0x1}]});let _0x3d4e00=(_0x167dc0=_0x56992c['blockRanges'])==null?void 0x0:_0x167dc0[_0x5b9022(0x212)](_0x3fa19f=>_0x3fa19f['blockId']===_0x2741d6);return _0x3d4e00&&A(_0x56992c,_0x3d4e00),{'nextDocumentData':_0x7621eb,'nextMetadata':_0x7585d5,'cursorOffset':_0x508923+0x1};}j(_0x56992c,_0x577321,_0x43b06f['BLOCK_END']),j(_0x56992c,_0x508923,_0x43b06f[_0x5b9022(0x251)]),Pe(_0x56992c,_0x508923,_0x577321+0x1,_0x3e20fa);let _0x3f12a0={'blockId':_0x2741d6,'blockType':_0x37a99f[_0x5b9022(0x1ca)],'startIndex':_0x508923,'endIndex':_0x577321+0x1};return _0x56992c[_0x5b9022(0x1ba)]=[...(_0x4a5043=_0x56992c[_0x5b9022(0x1ba)])==null?[]:_0x4a5043,_0x3f12a0][_0x5b9022(0x1ef)]((_0x1d97d5,_0x5b26b6)=>_0x1d97d5[_0x5b9022(0x209)]-_0x5b26b6[_0x5b9022(0x209)]),A(_0x56992c,_0x3f12a0),{'nextDocumentData':_0x7621eb,'nextMetadata':_0x7585d5,'cursorOffset':_0x508923+0x1};}function Se(_0x4fbf36,_0x21ff01,_0x7e8aac){const _0x23846b=_0x1edc1f;var _0x129efd;((_0x129efd=_0x4fbf36[_0x23846b(0x1c7)])==null?[]:_0x129efd)[_0x23846b(0x1c3)](_0x50d51d=>_0x50d51d[_0x23846b(0x209)]>_0x21ff01&&_0x50d51d[_0x23846b(0x209)]<_0x7e8aac)['forEach'](_0x4f4536=>{const _0x47fbfe=_0x23846b;var _0x15221b;let _0x121bc1={...(_0x15221b=_0x4f4536['paragraphStyle'])==null?{}:_0x15221b};delete _0x121bc1[_0x47fbfe(0x250)],delete _0x121bc1[_0x47fbfe(0x1d5)],_0x4f4536[_0x47fbfe(0x1f3)]=_0x121bc1;});}function Ce(_0x27ef0e,_0x411f04){const _0x3fc7ed=_0x1edc1f;return _0x27ef0e==null||_0x411f04==null||_0x27ef0e===_0x411f04?null:{'startOffset':Math[_0x3fc7ed(0x21d)](_0x27ef0e,_0x411f04),'endOffset':Math['max'](_0x27ef0e,_0x411f04)};}function we(_0x306450,_0x260541,_0x3dfe98){const _0xfe562f=_0x1edc1f;var _0x1475f7;return((_0x1475f7=_0x306450[_0xfe562f(0x1ba)])==null?[]:_0x1475f7)[_0xfe562f(0x22d)](_0xe29a2f=>{let _0x23a889=_0x4a1bb2(_0xe29a2f);return _0x260541===_0x3dfe98?_0x52963d(_0x23a889,_0x260541):_0x2f8ce5(_0x23a889,{'startOffset':_0x260541,'endOffset':_0x3dfe98});});}function Te(_0x3025ad){const _0x245eb3=_0x1edc1f;return{'nextDocumentData':T(_0x3025ad[_0x245eb3(0x244)]),'nextMetadata':S(_0x3025ad['metadata'],_0x3025ad[_0x245eb3(0x1e4)],_0x3025ad['config']),'cursorOffset':0x0};}function Ee(_0x797abf){const _0x59be64=_0x1edc1f;let _0x1fcc1a=T(_0x797abf[_0x59be64(0x244)]),_0x2bc488=D(_0x1fcc1a),_0x199f43=Ae(_0x2bc488,_0x797abf[_0x59be64(0x1e4)]);if(!_0x199f43)return null;let _0x1c0045=Le(_0x2bc488,_0x199f43);return{'nextDocumentData':_0x1fcc1a,'nextMetadata':C(_0x797abf[_0x59be64(0x247)],_0x797abf[_0x59be64(0x1e4)]),'cursorOffset':_0x1c0045};}function De(_0x4a339d){const _0x3b9e48=_0x1edc1f;var _0x42a2dd;let _0x3596c1=T(_0x4a339d['documentData']),_0x48dbbc=D(_0x3596c1),_0x3479a6=Ae(_0x48dbbc,_0x4a339d[_0x3b9e48(0x1e4)]);if(!_0x3479a6)return null;let _0x237fea=_0x4a1bb2(_0x3479a6);return M(_0x48dbbc,_0x237fea[_0x3b9e48(0x232)],_0x237fea['endOffset']),_0x48dbbc[_0x3b9e48(0x1ba)]=(_0x42a2dd=_0x48dbbc[_0x3b9e48(0x1ba)])==null?void 0x0:_0x42a2dd[_0x3b9e48(0x1c3)](_0x1472a3=>_0x1472a3['blockId']!==_0x4a339d[_0x3b9e48(0x1e4)]),{'nextDocumentData':_0x3596c1,'nextMetadata':C(_0x4a339d[_0x3b9e48(0x247)],_0x4a339d['blockId']),'cursorOffset':_0x3479a6[_0x3b9e48(0x209)]};}function Oe(_0x1a9080){const _0x1d5a9c=_0x1edc1f;let _0x4527a6=T(_0x1a9080[_0x1d5a9c(0x244)]),_0x492847=D(_0x4527a6),_0xc17f9d=Me(_0x492847,_0x1a9080[_0x1d5a9c(0x23f)]);return _0xc17f9d&&ke(_0x4527a6,_0x492847,_0xc17f9d,_0x1a9080[_0x1d5a9c(0x23f)],_0x1a9080[_0x1d5a9c(0x1d4)])||null;}function ke(_0x2d2570,_0x52abab,_0x2cdcd0,_0xcd8894,_0x23bec9){const _0x3a120f=_0x1edc1f;let _0x40d752=Je(_0x52abab,_0x2cdcd0,_0xcd8894,_0x23bec9);if(!_0x40d752)return null;let _0x4bf4fe=_0x40d752[_0x3a120f(0x1e7)]-0x1;return M(_0x52abab,_0x40d752[_0x3a120f(0x20a)][_0x3a120f(0x209)],_0x40d752[_0x3a120f(0x20a)]['startIndex']+0x1),{'nextDocumentData':_0x2d2570,'cursorOffset':_0x4bf4fe};}function Ae(_0x489c95,_0x560fcd){const _0x3272a9=_0x1edc1f;var _0xb9996f;return _0x489c95==null||(_0xb9996f=_0x489c95[_0x3272a9(0x1ba)])==null?void 0x0:_0xb9996f[_0x3272a9(0x212)](_0xdc7ab5=>_0xdc7ab5['blockType']===_0x37a99f['CODE']&&_0xdc7ab5[_0x3272a9(0x1e4)]===_0x560fcd);}function je(_0x645ce5){const _0xaed9d0=_0x1edc1f;var _0x279075;let _0x304ce2=_0x645ce5[_0xaed9d0(0x244)][_0xaed9d0(0x1bf)];if(!_0x304ce2)return!0x1;let _0x60761b=_0x645ce5['direction']===_0xaed9d0(0x1b6)?_0x645ce5[_0xaed9d0(0x23f)]-0x1:_0x645ce5[_0xaed9d0(0x23f)],_0x14a22e=_0x645ce5[_0xaed9d0(0x1d9)]===_0xaed9d0(0x1fc)?_0x645ce5[_0xaed9d0(0x23f)]+0x1:_0x60761b;return((_0x279075=_0x304ce2[_0xaed9d0(0x1ba)])==null?[]:_0x279075)[_0xaed9d0(0x22d)](_0x3f72c6=>_0x3f72c6[_0xaed9d0(0x210)]===_0x37a99f[_0xaed9d0(0x1ca)]?_0x60761b===_0x3f72c6[_0xaed9d0(0x209)]||_0x60761b===_0x3f72c6['endIndex']||_0x14a22e===_0x3f72c6[_0xaed9d0(0x209)]||_0x14a22e===_0x3f72c6[_0xaed9d0(0x1c8)]:!0x1);}function Me(_0x28ca91,_0x2be5f1){var _0x187905;return(_0x187905=_0x28ca91['blockRanges'])==null?void 0x0:_0x187905['find'](_0x106f17=>{const _0x3f0a95=_0x23a6;let _0x441a14=k(_0x106f17);return _0x106f17[_0x3f0a95(0x210)]===_0x37a99f[_0x3f0a95(0x1ca)]&&_0x106f17[_0x3f0a95(0x209)]<=_0x2be5f1&&_0x2be5f1<=_0x441a14+0x2;});}function Ne(_0x5d3417,_0x240100,_0x1c7802=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x5d3417&&_0x1c7802?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':be,'fs':0xc}};}function Pe(_0xa421fb,_0x2b1935,_0x52fa33,_0x1a15a0=!0x1){const _0x22720c=_0x1edc1f;var _0x7abf3d;let _0x11249c=((_0x7abf3d=_0xa421fb[_0x22720c(0x1c7)])==null?[]:_0x7abf3d)[_0x22720c(0x1c3)](_0xae4d76=>_0xae4d76[_0x22720c(0x209)]>_0x2b1935&&_0xae4d76[_0x22720c(0x209)]<_0x52fa33);_0x11249c[_0x22720c(0x258)]((_0x2833cc,_0x57ad5e)=>{const _0x32f090=_0x22720c;var _0xe8f4dc;_0x2833cc[_0x32f090(0x1f3)]={...(_0xe8f4dc=_0x2833cc[_0x32f090(0x1f3)])==null?{}:_0xe8f4dc,...Ne(_0x57ad5e===0x0,_0x57ad5e===_0x11249c['length']-0x1,_0x1a15a0)};});}function Fe(_0x5ec983){const _0x177b4d=_0x1edc1f;var _0x53e81e,_0x372e46;let _0x4e3dab={..._0x5ec983==null?{}:_0x5ec983};return delete _0x4e3dab[_0x177b4d(0x1cb)],delete _0x4e3dab[_0x177b4d(0x1d2)],delete _0x4e3dab['spaceAbove'],delete _0x4e3dab[_0x177b4d(0x1d5)],((_0x53e81e=_0x4e3dab[_0x177b4d(0x1bd)])==null?void 0x0:_0x53e81e['ff'])===be&&((_0x372e46=_0x4e3dab[_0x177b4d(0x1bd)])==null?void 0x0:_0x372e46['fs'])===0xc&&delete _0x4e3dab[_0x177b4d(0x1bd)],_0x4e3dab;}function Ie(_0x2ba1fe,_0x4eb7c3){const _0x3ebb31=_0x1edc1f;var _0x1f5fe3;let _0x22b3e9=k(_0x4eb7c3);return((_0x1f5fe3=_0x2ba1fe[_0x3ebb31(0x1c7)])==null?[]:_0x1f5fe3)['filter'](_0x5762eb=>_0x5762eb['startIndex']>_0x4eb7c3[_0x3ebb31(0x209)]&&_0x5762eb[_0x3ebb31(0x209)]<_0x22b3e9);}function Le(_0x41c8bc,_0x2196a2){const _0x2dbf3c=_0x1edc1f;var _0x43cc62;let _0x73b7ab=k(_0x2196a2);return Ie(_0x41c8bc,_0x2196a2)[_0x2dbf3c(0x258)](_0x26a0c1=>{const _0x4f6127=_0x2dbf3c;_0x26a0c1[_0x4f6127(0x1f3)]=Fe(_0x26a0c1[_0x4f6127(0x1f3)]);}),M(_0x41c8bc,_0x73b7ab,_0x73b7ab+0x1),M(_0x41c8bc,_0x2196a2[_0x2dbf3c(0x209)],_0x2196a2[_0x2dbf3c(0x209)]+0x1),_0x41c8bc['blockRanges']=(_0x43cc62=_0x41c8bc['blockRanges'])==null?void 0x0:_0x43cc62['filter'](_0x46b16e=>_0x46b16e[_0x2dbf3c(0x1e4)]!==_0x2196a2['blockId']),_0x2196a2[_0x2dbf3c(0x209)];}function T(_0x4e21ea){const _0x21f041=_0x1edc1f;return{..._0x4e21ea,'body':_0x4e21ea['body']?Re(_0x4e21ea[_0x21f041(0x1bf)]):_0x4e21ea[_0x21f041(0x1bf)]};}function Re(_0x474c38){const _0x2f6a46=_0x1edc1f;var _0x2f7a38,_0xa190d0,_0x5a0484,_0x16f43f,_0x521dc4,_0x2e53b0,_0x33fcba,_0xfadd5b,_0x443b8c;return{..._0x474c38,'paragraphs':(_0x2f7a38=_0x474c38['paragraphs'])==null?void 0x0:_0x2f7a38[_0x2f6a46(0x200)](_0xfbfec4=>({..._0xfbfec4,'bullet':E(_0xfbfec4[_0x2f6a46(0x22c)]),'paragraphStyle':E(_0xfbfec4['paragraphStyle'])})),'sectionBreaks':(_0xa190d0=_0x474c38[_0x2f6a46(0x1f2)])==null?void 0x0:_0xa190d0[_0x2f6a46(0x200)](_0x547762=>({..._0x547762})),'textRuns':(_0x5a0484=_0x474c38[_0x2f6a46(0x235)])==null?void 0x0:_0x5a0484['map'](_0x21c40b=>({..._0x21c40b})),'tables':(_0x16f43f=_0x474c38[_0x2f6a46(0x1b7)])==null?void 0x0:_0x16f43f[_0x2f6a46(0x200)](_0x1ddc7d=>({..._0x1ddc7d})),'columnGroups':(_0x521dc4=_0x474c38[_0x2f6a46(0x24c)])==null?void 0x0:_0x521dc4['map'](_0x1ca51e=>{const _0x3ba0e2=_0x2f6a46;var _0x4ee516;return{..._0x1ca51e,'columns':(_0x4ee516=_0x1ca51e[_0x3ba0e2(0x22e)])==null?void 0x0:_0x4ee516['map'](_0x3a047a=>E(_0x3a047a))};}),'blockRanges':(_0x2e53b0=_0x474c38[_0x2f6a46(0x1ba)])==null?void 0x0:_0x2e53b0[_0x2f6a46(0x200)](_0xe60677=>({..._0xe60677})),'customRanges':(_0x33fcba=_0x474c38['customRanges'])==null?void 0x0:_0x33fcba[_0x2f6a46(0x200)](_0x49d08f=>({..._0x49d08f})),'customDecorations':(_0xfadd5b=_0x474c38[_0x2f6a46(0x24f)])==null?void 0x0:_0xfadd5b['map'](_0x5ad929=>({..._0x5ad929})),'customBlocks':(_0x443b8c=_0x474c38[_0x2f6a46(0x1c4)])==null?void 0x0:_0x443b8c['map'](_0x256944=>({..._0x256944}))};}function E(_0x594720){const _0x2bd9ac=_0x1edc1f;return Array[_0x2bd9ac(0x215)](_0x594720)?_0x594720[_0x2bd9ac(0x200)](_0x51cb5c=>E(_0x51cb5c)):!_0x594720||typeof _0x594720!=_0x2bd9ac(0x1d0)?_0x594720:Object[_0x2bd9ac(0x1f6)](Object[_0x2bd9ac(0x1c9)](_0x594720)['map'](([_0x1e7ee8,_0x2f217d])=>[_0x1e7ee8,E(_0x2f217d)]));}function D(_0x23da4c){const _0x33d802=_0x1edc1f;if(!_0x23da4c[_0x33d802(0x1bf)])throw Error(_0x33d802(0x1dc));return _0x23da4c[_0x33d802(0x1bf)];}function ze(_0x1e2bce,_0x3295fa,_0x5c7f26,_0x4a0e7f='convert-paragraph'){const _0x301df6=_0x1edc1f;if(_0x3295fa==null||_0x5c7f26==null){let _0x2b733a=Ve(_0x1e2bce);return{'startOffset':_0x2b733a,'endOffset':_0x2b733a};}let _0x4d1e9a=Math[_0x301df6(0x21d)](_0x3295fa,_0x5c7f26),_0x179487=Math['max'](_0x3295fa,_0x5c7f26),_0x27816b=Ke(_0x1e2bce,_0x4d1e9a,_0x179487);return _0x4d1e9a===_0x179487?_0x4a0e7f===_0x301df6(0x23b)?{'startOffset':_0x4d1e9a,'endOffset':_0x179487}:Be(_0x1e2bce,_0x4d1e9a,_0x27816b):Ue(_0x1e2bce,_0x4d1e9a,_0x179487,_0x27816b);}function Be(_0x313d01,_0x4ab787,_0x1fd7e8){const _0x1b5f80=_0x1edc1f;let _0x14071c=We(_0x313d01,_0x4ab787);if(_0x14071c){let _0x1c5a35=O(_0x313d01,_0x14071c,_0x1fd7e8);if(_0x1c5a35<_0x14071c['startIndex'])return{'startOffset':_0x1c5a35,'endOffset':_0x1fd7e8?Math[_0x1b5f80(0x21d)](_0x14071c['startIndex']+0x1,_0x1fd7e8['endOffset']):_0x14071c[_0x1b5f80(0x209)]+0x1};}let _0x5e3b24=_0x4ab787===0x0&&_0x313d01[_0x1b5f80(0x213)][0x0]===_0x43b06f[_0x1b5f80(0x202)]?0x1:_0x4ab787;return{'startOffset':_0x5e3b24,'endOffset':_0x5e3b24};}function Ve(_0x4bd124){const _0x30a261=_0x1edc1f;return _0x4bd124[_0x30a261(0x213)]['endsWith'](_0x43b06f[_0x30a261(0x221)])?Math['max'](0x0,_0x4bd124[_0x30a261(0x213)][_0x30a261(0x1d8)]-0x1):_0x4bd124[_0x30a261(0x213)][_0x30a261(0x1d8)];}function He(_0x2772cd,_0x55222c,_0x3fa04a){const _0x57f7cd=_0x1edc1f;var _0x25893e;let _0x58d03f=Math['min'](_0x55222c,_0x3fa04a),_0x1e2a6f=Math[_0x57f7cd(0x255)](_0x55222c,_0x3fa04a);return!!((_0x25893e=_0x2772cd[_0x57f7cd(0x1b7)])!=null&&_0x25893e['some'](_0x1c9ab3=>_0x58d03f>_0x1c9ab3['startIndex']&&_0x58d03f<_0x1c9ab3['endIndex']||_0x1e2a6f>_0x1c9ab3['startIndex']&&_0x1e2a6f<_0x1c9ab3['endIndex']||_0x58d03f<=_0x1c9ab3[_0x57f7cd(0x209)]&&_0x1e2a6f>=_0x1c9ab3['endIndex']));}function Ue(_0x5caaa6,_0x37be9d,_0x4197d9,_0x3d98f7){const _0x222982=_0x1edc1f;var _0x5c03ad,_0x48d39a;let _0x2f18d3=[...(_0x5c03ad=_0x5caaa6[_0x222982(0x1c7)])==null?[]:_0x5c03ad]['sort']((_0x39e6c7,_0x58f275)=>_0x39e6c7['startIndex']-_0x58f275[_0x222982(0x209)]),_0x6d6f7c=_0xfa281d(_0x5caaa6),_0x1b0422=_0x2f18d3[_0x222982(0x212)](_0x511870=>O(_0x5caaa6,_0x511870,_0x3d98f7,_0x6d6f7c)<=_0x37be9d&&_0x37be9d<=_0x511870[_0x222982(0x209)]),_0x10e20f=(_0x48d39a=_0x2f18d3[_0x222982(0x212)](_0x1dae8f=>_0x1dae8f[_0x222982(0x209)]>=_0x4197d9-0x1))==null?_0x2f18d3[_0x2f18d3[_0x222982(0x1d8)]-0x1]:_0x48d39a;return{'startOffset':_0x1b0422?O(_0x5caaa6,_0x1b0422,_0x3d98f7,_0x6d6f7c):_0x37be9d,'endOffset':_0x10e20f?Ge(_0x10e20f,_0x3d98f7):_0x4197d9};}function We(_0x2cfd43,_0x30ae6b){const _0x555386=_0x1edc1f;var _0x574a76;let _0x407150=[...(_0x574a76=_0x2cfd43[_0x555386(0x1c7)])==null?[]:_0x574a76][_0x555386(0x1ef)]((_0x4ad069,_0x2d67a5)=>_0x4ad069[_0x555386(0x209)]-_0x2d67a5['startIndex']),_0x3072bf=_0xfa281d(_0x2cfd43);return _0x407150[_0x555386(0x212)](_0x34f090=>{const _0x1f3156=_0x555386;var _0x3954c2;return((_0x3954c2=_0x3072bf['get'](_0x34f090[_0x1f3156(0x209)]))==null?0x0:_0x3954c2)<=_0x30ae6b&&_0x30ae6b<=_0x34f090[_0x1f3156(0x209)];});}function O(_0x195e3c,_0x8b32e6,_0x29a97c,_0x43aa1f){const _0x4422f6=_0x1edc1f;var _0x29cb00;let _0x5f1912=(_0x29cb00=_0x43aa1f==null?void 0x0:_0x43aa1f[_0x4422f6(0x1c5)](_0x8b32e6[_0x4422f6(0x209)]))==null?_0x120216(_0x195e3c,_0x8b32e6):_0x29cb00;return _0x29a97c?Math['max'](_0x5f1912,_0x29a97c[_0x4422f6(0x232)]):_0x5f1912;}function _0x8e72(){const _0x39c2a7=['constructor','config','range','filter','customBlocks','get','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','paragraphs','endIndex','entries','CODE','indentEnd','_resourceManagerService','reduce','33414zhlrmf','delete','object','getUnit','indentStart','asObservable','paragraphStartIndex','spaceBelow','customRanges','clear','length','direction','syncExecuteCommand','docs-code.command.insert','Document\x20body\x20is\x20required','36cpAREC','32PQMKrg','prototype','getCurrentUnitOfType','3169592BrLEop','registerCommand','endOffset','blockId','125796jcPnRf','parse','endTokenOffset','dispose','_setResource','_resources','next','codes','624555AgKcGI','deserialize','sort','setConfig','getSnapshot','sectionBreaks','paragraphStyle','_initResource','_docsCodeModel','fromEntries','replaceDocRanges','docs-code.command.insert-below','getCodeConfig','removeUnit','nextMetadata','right','version','previousDocumentData','toPrimitive','map','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','PARAGRAPH','insertOp','getParagraphsInRange','_configService','726450eooLjA','getUnitId','docs-code.command.cancel-empty-paragraph','startIndex','paragraph','8596379eAHdDC','insert','_change$','setCodeConfig','removeCode','blockType','set','find','dataStream','paragraphId','isArray','startTokenOffset','docs-code.command.remove','replaceOp','docs-code.command.update','slice','insertionMode','compose','min','symbol','insertLength','defineProperty','SECTION_BREAK','decorate','getTextRanges','_config','add','1.0.0-alpha.5','packageName','deleteLength','getInstance','pluginName','default','bullet','some','columns','TABLE_CELL_START','UNIVER_DOC','docs-code.command.consume-boundary-delete','startOffset','type','TABLE_CELL_END','textRuns','_injector','COMMAND','@univerjs-pro/docs-code','stringify','DOC_CODE_PLUGIN','insert-new','start','disposeWithMe','427rcytkD','cursorOffset','editOp','BLOCK_END','unitId','nextDocumentData','documentData','handler','function','metadata','retain','_commandService','keys','string','columnGroups','model','commandService','customDecorations','spaceAbove','BLOCK_START','javascript','monospace','102tsDXdL','max','18eXrUOc','push','forEach','left','tables','selectionManager','docs-code.config','blockRanges','getBody','1691340ekNFtK','textStyle','serialize','body'];_0x8e72=function(){return _0x39c2a7;};return _0x8e72();}function Ge(_0x293382,_0x4a7339){const _0x36c01d=_0x1edc1f;let _0x36086a=_0x293382['startIndex']+0x1;return _0x4a7339?Math[_0x36c01d(0x21d)](_0x36086a,_0x4a7339[_0x36c01d(0x1e3)]):_0x36086a;}function Ke(_0x51acc4,_0x4726ef,_0x122a9a){const _0x39e9be=_0x1edc1f;let _0x3451b8=qe(_0x51acc4,_0x4726ef),_0x282a9d=qe(_0x51acc4,_0x4726ef===_0x122a9a?_0x122a9a:Math[_0x39e9be(0x255)](_0x4726ef,_0x122a9a-0x1));if(!(!_0x3451b8&&!_0x282a9d)){if(!_0x3451b8||!_0x282a9d||_0x3451b8[_0x39e9be(0x216)]!==_0x282a9d[_0x39e9be(0x216)]||_0x3451b8[_0x39e9be(0x1e7)]!==_0x282a9d[_0x39e9be(0x1e7)])throw new w();return _0x3451b8;}}function qe(_0x327038,_0x244c8a){const _0x53ef0e=_0x1edc1f;let _0x1a9b4f=_0x327038[_0x53ef0e(0x213)],_0x44e4ca=-0x1;for(let _0x36c1b3=Math['min'](_0x244c8a,_0x1a9b4f['length']-0x1);_0x36c1b3>=0x0;_0x36c1b3--){let _0x565fd2=_0x1a9b4f[_0x36c1b3];if(_0x565fd2===_0x43b06f[_0x53ef0e(0x234)])return;if(_0x565fd2===_0x43b06f[_0x53ef0e(0x22f)]){_0x44e4ca=_0x36c1b3;break;}}if(_0x44e4ca<0x0)return;let _0x301ca3=_0x1a9b4f['indexOf'](_0x43b06f[_0x53ef0e(0x234)],_0x44e4ca+0x1);if(!(_0x301ca3<0x0||_0x244c8a<_0x44e4ca+0x1||_0x244c8a>_0x301ca3-0x1))return{'startOffset':_0x44e4ca+0x1,'endOffset':Math['max'](_0x44e4ca+0x1,_0x301ca3-0x1),'startTokenOffset':_0x44e4ca,'endTokenOffset':_0x301ca3};}function k(_0x1ceff5){const _0x3abe2e=_0x1edc1f;return _0x4a1bb2(_0x1ceff5)[_0x3abe2e(0x1e3)]-0x1;}function Je(_0x3cfc2b,_0x851298,_0x14102e,_0x44e5d1){const _0x591bfb=_0x1edc1f;var _0x3fc070;let _0x5dd03d=k(_0x851298),_0x334d6c=((_0x3fc070=_0x3cfc2b['paragraphs'])==null?[]:_0x3fc070)[_0x591bfb(0x212)](_0x1c9ad0=>_0x1c9ad0['startIndex']===_0x5dd03d+0x1);if(!_0x334d6c||_0x44e5d1!=null&&_0x334d6c[_0x591bfb(0x209)]!==_0x44e5d1||_0x14102e!=null&&(_0x14102e<_0x5dd03d||_0x14102e>_0x334d6c[_0x591bfb(0x209)]+0x1)||_0x3cfc2b[_0x591bfb(0x213)][_0x334d6c['startIndex']]!==_0x43b06f['PARAGRAPH'])return null;let _0x2edc6c=_0x120216(_0x3cfc2b,_0x334d6c),_0x386a2f=_0x3cfc2b[_0x591bfb(0x213)][_0x591bfb(0x21a)](_0x2edc6c,_0x334d6c[_0x591bfb(0x209)]);return Array['from'](_0x386a2f)['every'](_0x28c881=>_0x28c881===_0x43b06f['BLOCK_END'])?{'paragraph':_0x334d6c,'endTokenOffset':_0x5dd03d}:null;}function A(_0x8b786,_0x1277d4){const _0x482353=_0x1edc1f;var _0x521d0f;let _0x71585c=k(_0x1277d4),_0x5272ee=_0x8b786[_0x482353(0x213)][_0x71585c+0x1];_0x5272ee!==_0x43b06f[_0x482353(0x221)]&&_0x5272ee!==void 0x0||j(_0x8b786,_0x71585c+0x1,_0x43b06f[_0x482353(0x202)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x5cfb3a(new Set((_0x521d0f=_0x8b786[_0x482353(0x1c7)])==null?void 0x0:_0x521d0f[_0x482353(0x200)](_0x1f1ab3=>_0x1f1ab3[_0x482353(0x214)])))}]});}function j(_0x4e0ad8,_0x41ce78,_0x376913,_0x5a3652={}){const _0x923f57=_0x1edc1f;var _0x3dfb23,_0x156807;if(_0x376913){if(_0x4e0ad8[_0x923f57(0x213)]=''+_0x4e0ad8[_0x923f57(0x213)][_0x923f57(0x21a)](0x0,_0x41ce78)+_0x376913+_0x4e0ad8[_0x923f57(0x213)][_0x923f57(0x21a)](_0x41ce78),Ye(_0x4e0ad8,_0x41ce78,_0x376913[_0x923f57(0x1d8)]),(_0x3dfb23=_0x5a3652[_0x923f57(0x1c7)])!=null&&_0x3dfb23['length']){var _0x560979;_0x4e0ad8['paragraphs']=[...(_0x560979=_0x4e0ad8['paragraphs'])==null?[]:_0x560979,..._0x5a3652[_0x923f57(0x1c7)][_0x923f57(0x200)](_0x1e1138=>({..._0x1e1138,'startIndex':_0x1e1138[_0x923f57(0x209)]+_0x41ce78}))][_0x923f57(0x1ef)]((_0x581a7f,_0x493f48)=>_0x581a7f['startIndex']-_0x493f48[_0x923f57(0x209)]);}if((_0x156807=_0x5a3652['blockRanges'])!=null&&_0x156807['length']){var _0x5eb810;_0x4e0ad8[_0x923f57(0x1ba)]=[...(_0x5eb810=_0x4e0ad8[_0x923f57(0x1ba)])==null?[]:_0x5eb810,..._0x5a3652[_0x923f57(0x1ba)][_0x923f57(0x200)](_0x23af5b=>({..._0x23af5b,'startIndex':_0x23af5b[_0x923f57(0x209)]+_0x41ce78,'endIndex':_0x23af5b[_0x923f57(0x1c8)]+_0x41ce78}))][_0x923f57(0x1ef)]((_0x25efdc,_0x1aa5bc)=>_0x25efdc[_0x923f57(0x209)]-_0x1aa5bc[_0x923f57(0x209)]);}}}function M(_0x2107f2,_0x5a9d66,_0x605d1b){const _0xa9c126=_0x1edc1f;let _0x5efc7d=_0x605d1b-_0x5a9d66;_0x2107f2[_0xa9c126(0x213)]=''+_0x2107f2[_0xa9c126(0x213)][_0xa9c126(0x21a)](0x0,_0x5a9d66)+_0x2107f2[_0xa9c126(0x213)][_0xa9c126(0x21a)](_0x605d1b),Xe(_0x2107f2,_0x5a9d66,_0x5efc7d);}function Ye(_0x27522b,_0x31bdb3,_0xe28e98){const _0xa52bbd=_0x1edc1f;_0x27522b[_0xa52bbd(0x1c7)]=N(_0x27522b[_0xa52bbd(0x1c7)],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x1f2)]=N(_0x27522b[_0xa52bbd(0x1f2)],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x1c4)]=N(_0x27522b[_0xa52bbd(0x1c4)],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x235)]=Ze(_0x27522b[_0xa52bbd(0x235)],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x1b7)]=Qe(_0x27522b['tables'],_0x31bdb3,_0xe28e98),_0x27522b['columnGroups']=F(_0x27522b['columnGroups'],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x1d6)]=F(_0x27522b['customRanges'],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x24f)]=F(_0x27522b['customDecorations'],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x1ba)]=F(_0x27522b[_0xa52bbd(0x1ba)],_0x31bdb3,_0xe28e98);}function Xe(_0x585b0f,_0x413ff8,_0x1662bf){const _0x32b9b2=_0x1edc1f;var _0x4a2d3a,_0x3af86f;_0x585b0f[_0x32b9b2(0x1c7)]=P(_0x585b0f[_0x32b9b2(0x1c7)],_0x413ff8,_0x1662bf),_0x585b0f['sectionBreaks']=P(_0x585b0f[_0x32b9b2(0x1f2)],_0x413ff8,_0x1662bf),_0x585b0f[_0x32b9b2(0x1c4)]=P(_0x585b0f[_0x32b9b2(0x1c4)],_0x413ff8,_0x1662bf),_0x585b0f[_0x32b9b2(0x235)]=(_0x4a2d3a=$e((_0x3af86f=_0x585b0f[_0x32b9b2(0x235)])==null?void 0x0:_0x3af86f[_0x32b9b2(0x200)](_0x532b78=>({..._0x532b78,'startIndex':_0x532b78['st'],'endIndex':_0x532b78['ed']})),_0x413ff8,_0x1662bf))==null?void 0x0:_0x4a2d3a[_0x32b9b2(0x200)](_0x1304a0=>{let {startIndex:_0x4a4620,endIndex:_0x3eb96d,..._0x7b8602}=_0x1304a0;return{..._0x7b8602,'st':_0x4a4620,'ed':_0x3eb96d};}),_0x585b0f['tables']=$e(_0x585b0f[_0x32b9b2(0x1b7)],_0x413ff8,_0x1662bf),_0x585b0f['columnGroups']=I(_0x585b0f['columnGroups'],_0x413ff8,_0x1662bf),_0x585b0f[_0x32b9b2(0x1d6)]=I(_0x585b0f[_0x32b9b2(0x1d6)],_0x413ff8,_0x1662bf),_0x585b0f[_0x32b9b2(0x24f)]=I(_0x585b0f[_0x32b9b2(0x24f)],_0x413ff8,_0x1662bf),_0x585b0f[_0x32b9b2(0x1ba)]=I(_0x585b0f[_0x32b9b2(0x1ba)],_0x413ff8,_0x1662bf);}function N(_0x173330,_0x576081,_0x398334){const _0x11ab3e=_0x1edc1f;return _0x173330==null?void 0x0:_0x173330[_0x11ab3e(0x200)](_0x2b2737=>_0x2b2737[_0x11ab3e(0x209)]>=_0x576081?{..._0x2b2737,'startIndex':_0x2b2737[_0x11ab3e(0x209)]+_0x398334}:_0x2b2737);}function P(_0x4362bb,_0x2d3740,_0x42bbb5){const _0x231117=_0x1edc1f;let _0x5e213c=_0x2d3740+_0x42bbb5;return _0x4362bb==null?void 0x0:_0x4362bb[_0x231117(0x200)](_0x44647f=>_0x44647f[_0x231117(0x209)]>=_0x2d3740&&_0x44647f[_0x231117(0x209)]<_0x5e213c?null:_0x44647f['startIndex']>=_0x5e213c?{..._0x44647f,'startIndex':_0x44647f[_0x231117(0x209)]-_0x42bbb5}:_0x44647f)[_0x231117(0x1c3)](_0x38c18d=>_0x38c18d!=null);}function Ze(_0x28329,_0x135f68,_0x2921a6){const _0x266ff6=_0x1edc1f;return _0x28329==null?void 0x0:_0x28329[_0x266ff6(0x200)](_0x5ad48=>_0x5ad48['st']>=_0x135f68?{..._0x5ad48,'st':_0x5ad48['st']+_0x2921a6,'ed':_0x5ad48['ed']+_0x2921a6}:_0x5ad48['ed']>_0x135f68?{..._0x5ad48,'ed':_0x5ad48['ed']+_0x2921a6}:_0x5ad48);}function F(_0x9f8b7c,_0x49427f,_0x3614a6){const _0x5e982f=_0x1edc1f;return _0x9f8b7c==null?void 0x0:_0x9f8b7c[_0x5e982f(0x200)](_0x204faf=>_0x5bff0d(_0x204faf,_0x49427f,_0x3614a6));}function Qe(_0x41a0fc,_0x17fe16,_0x5c4771){const _0x1e168b=_0x1edc1f;return _0x41a0fc==null?void 0x0:_0x41a0fc[_0x1e168b(0x200)](_0x52cb67=>_0x2dea21(_0x52cb67,_0x17fe16,_0x5c4771));}function I(_0x5b7bca,_0x4e2c5b,_0x305bce){const _0x5a5875=_0x1edc1f;return _0x5b7bca==null?void 0x0:_0x5b7bca[_0x5a5875(0x200)](_0x54a1d4=>_0x3a6def(_0x54a1d4,_0x4e2c5b,_0x305bce))[_0x5a5875(0x1c3)](_0x5a48fc=>_0x5a48fc!=null);}function $e(_0x580c67,_0x3e38ae,_0x35be3f){const _0x9aad91=_0x1edc1f;return _0x580c67==null?void 0x0:_0x580c67[_0x9aad91(0x200)](_0x2ad4ad=>_0x1c7981(_0x2ad4ad,_0x3e38ae,_0x35be3f))['filter'](_0x17dfb4=>_0x17dfb4!=null);}function L(_0x3b899a){'@babel/helpers - typeof';return L=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x299715){return typeof _0x299715;}:function(_0x213cdf){const _0x4280e8=_0x23a6;return _0x213cdf&&typeof Symbol==_0x4280e8(0x246)&&_0x213cdf[_0x4280e8(0x1c0)]===Symbol&&_0x213cdf!==Symbol[_0x4280e8(0x1df)]?_0x4280e8(0x21e):typeof _0x213cdf;},L(_0x3b899a);}function et(_0x6d9f6e,_0x591df4){const _0x159597=_0x1edc1f;if(L(_0x6d9f6e)!=_0x159597(0x1d0)||!_0x6d9f6e)return _0x6d9f6e;var _0xe02695=_0x6d9f6e[Symbol[_0x159597(0x1ff)]];if(_0xe02695!==void 0x0){var _0x51aced=_0xe02695['call'](_0x6d9f6e,_0x591df4||_0x159597(0x22b));if(L(_0x51aced)!=_0x159597(0x1d0))return _0x51aced;throw TypeError(_0x159597(0x201));}return(_0x591df4===_0x159597(0x24b)?String:Number)(_0x6d9f6e);}function tt(_0x5131ee){const _0x6db2e1=_0x1edc1f;var _0x2762ca=et(_0x5131ee,_0x6db2e1(0x24b));return L(_0x2762ca)==_0x6db2e1(0x21e)?_0x2762ca:_0x2762ca+'';}function R(_0x52061a,_0x301eb9,_0x3666f7){const _0x5a7a91=_0x1edc1f;return(_0x301eb9=tt(_0x301eb9))in _0x52061a?Object[_0x5a7a91(0x220)](_0x52061a,_0x301eb9,{'value':_0x3666f7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x52061a[_0x301eb9]=_0x3666f7,_0x52061a;}var z=class extends _0x11f1e7{constructor(..._0x4293ae){const _0xa9b073=_0x1edc1f;super(..._0x4293ae),R(this,_0xa9b073(0x1ea),new Map()),R(this,'_change$',new _0x3b77df()),R(this,'change$',this['_change$'][_0xa9b073(0x1d3)]());}[_0x1edc1f(0x1f9)](_0x137ef2,_0x573a48){const _0x6ba313=_0x1edc1f;return x(this[_0x6ba313(0x1ea)][_0x6ba313(0x1c5)](_0x137ef2))[_0x6ba313(0x1ec)][_0x573a48];}[_0x1edc1f(0x20e)](_0x59afdc,_0x48b802,_0x138a2a){const _0x47e1de=_0x1edc1f;this[_0x47e1de(0x1e9)](_0x59afdc,_0x48b802,S(this[_0x47e1de(0x1ea)][_0x47e1de(0x1c5)](_0x59afdc),_0x48b802,_0x138a2a));}[_0x1edc1f(0x20f)](_0x2b8a47,_0x17bdfd){const _0x52486f=_0x1edc1f;this[_0x52486f(0x1e9)](_0x2b8a47,_0x17bdfd,C(this['_resources']['get'](_0x2b8a47),_0x17bdfd));}['serialize'](_0x1127c7){const _0x36b5c4=_0x1edc1f;return x(this[_0x36b5c4(0x1ea)][_0x36b5c4(0x1c5)](_0x1127c7));}[_0x1edc1f(0x1ee)](_0x167424,_0x3c0f94){const _0x2805ee=_0x1edc1f;this[_0x2805ee(0x1ea)]['set'](_0x167424,x(_0x3c0f94)),this[_0x2805ee(0x20d)][_0x2805ee(0x1eb)]({'unitId':_0x167424});}[_0x1edc1f(0x1fa)](_0x11ab7f){const _0xa509e2=_0x1edc1f;this['_resources'][_0xa509e2(0x1cf)](_0x11ab7f),this[_0xa509e2(0x20d)][_0xa509e2(0x1eb)]({'unitId':_0x11ab7f});}[_0x1edc1f(0x1e8)](){const _0x687d96=_0x1edc1f;super['dispose'](),this[_0x687d96(0x1ea)][_0x687d96(0x1d7)](),this[_0x687d96(0x20d)]['complete']();}['_setResource'](_0x3222d2,_0x3d5508,_0x30019d){const _0x4fe003=_0x1edc1f;this[_0x4fe003(0x1ea)][_0x4fe003(0x211)](_0x3222d2,_0x30019d),this[_0x4fe003(0x20d)]['next']({'unitId':_0x3222d2,'blockId':_0x3d5508});}};const nt={'id':_0x1edc1f(0x1f8),'type':_0x3aa002[_0x1edc1f(0x237)],'handler':_0x1299d4=>{const _0x6ca46c=_0x1edc1f;var _0x1cbe0f;if(_0xaf3991(G(_0x1299d4)))return!0x1;let _0x5de034=_0x517640(_0x1299d4);if(_0x5de034)return _0x1299d4[_0x6ca46c(0x1c5)](_0x1d61d6)[_0x6ca46c(0x1da)](B['id'],{'startOffset':_0x5de034['startOffset'],'endOffset':_0x5de034[_0x6ca46c(0x1e3)],'insertionMode':_0x6ca46c(0x23b),'unitId':_0x5de034['unitId']});let _0x5b8e57=lt(_0x1299d4);if(!_0x5b8e57)return!0x1;let _0xd7e1ed=(_0x1cbe0f=_0x1299d4[_0x6ca46c(0x1c5)](_0x45d141)[_0x6ca46c(0x1e0)](_0x41a83a[_0x6ca46c(0x230)]))==null?void 0x0:_0x1cbe0f[_0x6ca46c(0x1bb)](),_0x4dc5a3=_0xd7e1ed?_0x2be263(_0xd7e1ed,_0x5b8e57):_0x5b8e57[_0x6ca46c(0x209)]+0x1;return _0x1299d4[_0x6ca46c(0x1c5)](_0x1d61d6)['syncExecuteCommand'](B['id'],{'startOffset':_0x4dc5a3,'endOffset':_0x4dc5a3});}},rt={'id':_0x1edc1f(0x231),'type':_0x3aa002[_0x1edc1f(0x237)],'handler':()=>!0x0},B={'id':_0x1edc1f(0x1db),'type':_0x3aa002[_0x1edc1f(0x237)],'handler':(_0x51d502,_0x5cbfc6)=>{const _0x2c49b1=_0x1edc1f;var _0x314c02;let _0x1c88e1=W(_0x51d502,_0x5cbfc6==null?void 0x0:_0x5cbfc6[_0x2c49b1(0x242)]);if(!_0x1c88e1)return!0x1;let _0x50f317=G(_0x51d502);if(_0xaf3991(_0x50f317))return!0x1;let _0x11a8b9=_0x1c88e1['model'][_0x2c49b1(0x1be)](_0x1c88e1['unitId']),_0x1f840f=ot(_0x5cbfc6,_0x50f317),_0x58d62b=st(_0x1c88e1['previousDocumentData'],_0x1f840f);if(_0x58d62b){if(_0x58d62b[_0x2c49b1(0x210)]!==_0x37a99f[_0x2c49b1(0x1ca)])return!0x1;let _0x45126f=Ee({'blockId':_0x58d62b[_0x2c49b1(0x1e4)],'documentData':_0x1c88e1[_0x2c49b1(0x1fe)],'metadata':_0x11a8b9});if(!_0x45126f)return!0x1;let _0x337949=Y(_0x1c88e1[_0x2c49b1(0x24e)],_0x1c88e1[_0x2c49b1(0x1b8)],_0x1c88e1[_0x2c49b1(0x242)],_0x1c88e1[_0x2c49b1(0x1fe)],_0x45126f[_0x2c49b1(0x243)],B['id'],_0x45126f['cursorOffset']);return _0x337949&&_0x45126f[_0x2c49b1(0x1fb)]&&_0x1c88e1[_0x2c49b1(0x24d)][_0x2c49b1(0x1ee)](_0x1c88e1[_0x2c49b1(0x242)],_0x45126f['nextMetadata']),_0x337949;}let _0x52408c=(_0x314c02=_0x5cbfc6==null?void 0x0:_0x5cbfc6[_0x2c49b1(0x1e4)])==null?_0x35a556(0x6):_0x314c02,_0x22d24b;try{_0x22d24b=xe({'blockId':_0x52408c,'config':_0x5cbfc6==null?void 0x0:_0x5cbfc6[_0x2c49b1(0x1c1)],'documentData':_0x1c88e1['previousDocumentData'],'endOffset':_0x1f840f==null?void 0x0:_0x1f840f[_0x2c49b1(0x1e3)],'insertionMode':_0x5cbfc6==null?void 0x0:_0x5cbfc6[_0x2c49b1(0x21b)],'metadata':_0x11a8b9,'startOffset':_0x1f840f==null?void 0x0:_0x1f840f[_0x2c49b1(0x232)]});}catch(_0x1a8da2){if(_0x1a8da2 instanceof w)return!0x1;throw _0x1a8da2;}let _0x21e3eb=Y(_0x1c88e1[_0x2c49b1(0x24e)],_0x1c88e1['selectionManager'],_0x1c88e1[_0x2c49b1(0x242)],_0x1c88e1[_0x2c49b1(0x1fe)],_0x22d24b[_0x2c49b1(0x243)],B['id'],_0x22d24b['cursorOffset']);return _0x21e3eb&&_0x22d24b[_0x2c49b1(0x1fb)]&&_0x1c88e1[_0x2c49b1(0x24d)][_0x2c49b1(0x1ee)](_0x1c88e1[_0x2c49b1(0x242)],_0x22d24b[_0x2c49b1(0x1fb)]),_0x21e3eb;}},it={'id':_0x1edc1f(0x219),'type':_0x3aa002[_0x1edc1f(0x237)],'handler':(_0x2b4099,_0x62152c)=>{const _0x427aa2=_0x1edc1f;if(!_0x62152c)return!0x1;let _0x1c4820=W(_0x2b4099,_0x62152c[_0x427aa2(0x242)]);if(!_0x1c4820)return!0x1;let _0xd96c8=Te({'blockId':_0x62152c[_0x427aa2(0x1e4)],'config':_0x62152c[_0x427aa2(0x1c1)],'documentData':_0x1c4820[_0x427aa2(0x1fe)],'metadata':_0x1c4820[_0x427aa2(0x24d)][_0x427aa2(0x1be)](_0x1c4820[_0x427aa2(0x242)])});return _0xd96c8[_0x427aa2(0x1fb)]&&_0x1c4820[_0x427aa2(0x24d)][_0x427aa2(0x1ee)](_0x1c4820[_0x427aa2(0x242)],_0xd96c8[_0x427aa2(0x1fb)]),!0x0;}},at={'id':'docs-code.command.exit','type':_0x3aa002[_0x1edc1f(0x237)],'handler':(_0x456bcb,_0x29383d)=>V[_0x1edc1f(0x245)](_0x456bcb,_0x29383d)},V={'id':'docs-code.command.unwrap','type':_0x3aa002[_0x1edc1f(0x237)],'handler':(_0x133b58,_0x5a87dd)=>{const _0x476c71=_0x1edc1f;if(!_0x5a87dd)return!0x1;let _0x2c5dfe=W(_0x133b58,_0x5a87dd==null?void 0x0:_0x5a87dd[_0x476c71(0x242)]);if(!_0x2c5dfe)return!0x1;let _0x16d910=Ee({'blockId':_0x5a87dd[_0x476c71(0x1e4)],'documentData':_0x2c5dfe[_0x476c71(0x1fe)],'metadata':_0x2c5dfe[_0x476c71(0x24d)][_0x476c71(0x1be)](_0x2c5dfe[_0x476c71(0x242)])});if(!_0x16d910)return!0x1;let _0x5bd894=Y(_0x2c5dfe[_0x476c71(0x24e)],_0x2c5dfe[_0x476c71(0x1b8)],_0x2c5dfe[_0x476c71(0x242)],_0x2c5dfe[_0x476c71(0x1fe)],_0x16d910['nextDocumentData'],V['id'],_0x16d910['cursorOffset']);return _0x5bd894&&_0x16d910[_0x476c71(0x1fb)]&&_0x2c5dfe['model'][_0x476c71(0x1ee)](_0x2c5dfe[_0x476c71(0x242)],_0x16d910[_0x476c71(0x1fb)]),_0x5bd894;}},H={'id':_0x1edc1f(0x217),'type':_0x3aa002['COMMAND'],'handler':(_0x228bfb,_0x5b4858)=>{const _0x594854=_0x1edc1f;if(!_0x5b4858)return!0x1;let _0x365f56=W(_0x228bfb,_0x5b4858==null?void 0x0:_0x5b4858[_0x594854(0x242)]);if(!_0x365f56)return!0x1;let _0x116f05=De({'blockId':_0x5b4858['blockId'],'documentData':_0x365f56[_0x594854(0x1fe)],'metadata':_0x365f56[_0x594854(0x24d)][_0x594854(0x1be)](_0x365f56[_0x594854(0x242)])});if(!_0x116f05)return!0x1;let _0x4782bf=Y(_0x365f56[_0x594854(0x24e)],_0x365f56[_0x594854(0x1b8)],_0x365f56[_0x594854(0x242)],_0x365f56[_0x594854(0x1fe)],_0x116f05[_0x594854(0x243)],H['id'],_0x116f05[_0x594854(0x23f)]);return _0x4782bf&&_0x116f05[_0x594854(0x1fb)]&&_0x365f56['model']['deserialize'](_0x365f56['unitId'],_0x116f05[_0x594854(0x1fb)]),_0x4782bf;}},U={'id':_0x1edc1f(0x208),'type':_0x3aa002[_0x1edc1f(0x237)],'handler':(_0x2665c4,_0x492459)=>{const _0x1fb50d=_0x1edc1f;var _0x2358ee,_0x19c2dd;let _0x38ef90=W(_0x2665c4,_0x492459==null?void 0x0:_0x492459['unitId']);if(!_0x38ef90)return!0x1;let _0x4e4483=(_0x2358ee=_0x492459==null?void 0x0:_0x492459[_0x1fb50d(0x23f)])==null?(_0x19c2dd=G(_0x2665c4))==null?void 0x0:_0x19c2dd['startOffset']:_0x2358ee;if(_0x4e4483==null)return!0x1;let _0x1f1ebe=Oe({'cursorOffset':_0x4e4483,'documentData':_0x38ef90[_0x1fb50d(0x1fe)],'paragraphStartIndex':_0x492459==null?void 0x0:_0x492459['paragraphStartIndex']});return _0x1f1ebe?Y(_0x38ef90[_0x1fb50d(0x24e)],_0x38ef90[_0x1fb50d(0x1b8)],_0x38ef90[_0x1fb50d(0x242)],_0x38ef90['previousDocumentData'],_0x1f1ebe['nextDocumentData'],U['id'],_0x1f1ebe[_0x1fb50d(0x23f)]):!0x1;}};function W(_0x38bb69,_0x23551e){const _0x42c831=_0x1edc1f;let _0x7c4f2f=_0x38bb69[_0x42c831(0x1c5)](_0x45d141),_0x2c6831=_0x23551e?_0x7c4f2f[_0x42c831(0x1d1)](_0x23551e,_0x41a83a['UNIVER_DOC']):_0x7c4f2f[_0x42c831(0x1e0)](_0x41a83a[_0x42c831(0x230)]);return _0x2c6831?{'commandService':_0x38bb69[_0x42c831(0x1c5)](_0x1d61d6),'model':_0x38bb69[_0x42c831(0x1c5)](z),'previousDocumentData':_0x2c6831[_0x42c831(0x1f1)](),'selectionManager':_0x38bb69[_0x42c831(0x1c5)](_0x2ed20d),'unitId':_0x2c6831[_0x42c831(0x207)]()}:null;}function G(_0x3b88c5){const _0x5f526e=_0x1edc1f;var _0x59663d;return(_0x59663d=_0x3b88c5[_0x5f526e(0x1c5)](_0x2ed20d)[_0x5f526e(0x223)]())==null?void 0x0:_0x59663d[0x0];}function ot(_0x5434fd,_0x278b13){const _0x352e8a=_0x1edc1f;var _0x5ef020,_0xac05ce;let _0x134fcb=(_0x5ef020=_0x5434fd==null?void 0x0:_0x5434fd[_0x352e8a(0x232)])==null?_0x278b13==null?void 0x0:_0x278b13[_0x352e8a(0x232)]:_0x5ef020,_0xf21aba=(_0xac05ce=_0x5434fd==null?void 0x0:_0x5434fd[_0x352e8a(0x1e3)])==null?_0x278b13==null?void 0x0:_0x278b13['endOffset']:_0xac05ce;if(!(_0x134fcb==null||_0xf21aba==null))return{'endOffset':Math[_0x352e8a(0x255)](_0x134fcb,_0xf21aba),'startOffset':Math['min'](_0x134fcb,_0xf21aba)};}function st(_0x285f17,_0x425f11){const _0x1ccc35=_0x1edc1f;var _0xf9d1e9;if(!_0x425f11)return;let _0x42430f=ct(_0x425f11);return(_0xf9d1e9=_0x285f17[_0x1ccc35(0x1bf)])==null||(_0xf9d1e9=_0xf9d1e9[_0x1ccc35(0x1ba)])==null?void 0x0:_0xf9d1e9[_0x1ccc35(0x212)](_0x5a1c45=>{const _0x1622c0=_0x1ccc35;let _0x368919=_0x4a1bb2(_0x5a1c45);return _0x425f11[_0x1622c0(0x232)]===_0x425f11[_0x1622c0(0x1e3)]?_0x52963d(_0x368919,_0x42430f):_0xf103f(_0x368919,_0x42430f);});}function ct(_0x4469b9){const _0x1c95f9=_0x1edc1f;return _0x4469b9[_0x1c95f9(0x232)]===_0x4469b9['endOffset']?_0x4469b9[_0x1c95f9(0x232)]:_0x4469b9[_0x1c95f9(0x232)]+0x1;}function lt(_0x349823){const _0x49a036=_0x1edc1f;var _0x4132a8,_0x3ab5e5,_0x2a1833;let _0x169461=G(_0x349823);if(!_0x169461)return null;let _0x13c1c0=_0x349823['get'](_0x45d141)[_0x49a036(0x1e0)](_0x41a83a[_0x49a036(0x230)]),_0x3f5cc5=_0x13c1c0==null?void 0x0:_0x13c1c0['getBody']();return _0x3f5cc5?(_0x4132a8=_0xfcd91[_0x49a036(0x1c2)][_0x49a036(0x204)](_0x169461,(_0x3ab5e5=_0x3f5cc5['paragraphs'])==null?[]:_0x3ab5e5,(_0x2a1833=_0x3f5cc5['dataStream'])==null?'':_0x2a1833)[0x0])==null?null:_0x4132a8:null;}function ut(_0x4eedbd,_0x1617cd){const _0x58f9f3=_0x1edc1f;let _0x3aac93=_0x4eedbd[_0x58f9f3(0x1bf)],_0x1344ca=_0x1617cd[_0x58f9f3(0x1bf)],_0x7d55a5=_0x1817eb(_0x3aac93,_0x1344ca);return[_0x7d55a5&&_0x1344ca?dt(_0x1344ca,_0x7d55a5):null,_0x7d55a5?null:ft(_0x3aac93,_0x1344ca)][_0x58f9f3(0x1c3)](Boolean)[_0x58f9f3(0x1cd)]((_0x16d52a,_0x49e2fa)=>_0x3e4a71['compose'](_0x16d52a,_0x49e2fa),null);}function dt(_0x4433d9,_0x4f145c){const _0x233ddb=_0x1edc1f;let _0x2505dd=new _0x37143f();return _0x2505dd[_0x233ddb(0x248)](_0x4f145c[_0x233ddb(0x23c)]),_0x4f145c[_0x233ddb(0x21f)]>0x0&&_0x2505dd[_0x233ddb(0x20c)](_0x4f145c[_0x233ddb(0x21f)],_0x2fb9bb(_0x4433d9,_0x4f145c[_0x233ddb(0x23c)],_0x4f145c['start']+_0x4f145c[_0x233ddb(0x21f)],!0x1)),_0x4f145c[_0x233ddb(0x228)]>0x0&&_0x2505dd[_0x233ddb(0x1cf)](_0x4f145c[_0x233ddb(0x228)]),_0x3e4a71['getInstance']()[_0x233ddb(0x240)](_0x2505dd[_0x233ddb(0x1be)](),['body']);}function ft(_0x48fec7,_0x4c0831){const _0x4af238=_0x1edc1f;let _0x436df2=[],_0xb44f48=_0x48fec7?mt(_0x48fec7):void 0x0,_0x559897=_0x4c0831?mt(_0x4c0831):void 0x0;for(let _0xed924e of pt)K(_0x3e4a71[_0x4af238(0x229)](),['body',_0xed924e],_0xb44f48==null?void 0x0:_0xb44f48[_0xed924e],_0x559897==null?void 0x0:_0x559897[_0xed924e],_0x436df2);return _0x436df2['reduce']((_0x49ab30,_0x49244f)=>_0x3e4a71[_0x4af238(0x21c)](_0x49ab30,_0x49244f),null);}const pt=[_0x1edc1f(0x1c7),_0x1edc1f(0x1f2),_0x1edc1f(0x1b7),_0x1edc1f(0x24c),_0x1edc1f(0x1ba),_0x1edc1f(0x1c4),_0x1edc1f(0x1d6),_0x1edc1f(0x24f),_0x1edc1f(0x235)];function mt(_0x399380){return _0x399380;}function K(_0x2c2330,_0x87c84a,_0x2b97b6,_0x18a0c8,_0x33f94e){const _0x52f1a0=_0x1edc1f;if(!J(_0x2b97b6,_0x18a0c8)){if(_0x2b97b6==null){_0x33f94e['push'](_0x2c2330[_0x52f1a0(0x203)](_0x87c84a,_0x18a0c8));return;}if(_0x18a0c8==null){_0x33f94e[_0x52f1a0(0x257)](_0x2c2330['removeOp'](_0x87c84a,_0x2b97b6));return;}if(Array[_0x52f1a0(0x215)](_0x2b97b6)&&Array['isArray'](_0x18a0c8)){ht(_0x2c2330,_0x87c84a,_0x2b97b6,_0x18a0c8,_0x33f94e);return;}if(q(_0x2b97b6)&&q(_0x18a0c8)){new Set([...Object[_0x52f1a0(0x24a)](_0x2b97b6),...Object['keys'](_0x18a0c8)])[_0x52f1a0(0x258)](_0x1feff9=>{K(_0x2c2330,[..._0x87c84a,_0x1feff9],_0x2b97b6[_0x1feff9],_0x18a0c8[_0x1feff9],_0x33f94e);});return;}_0x33f94e[_0x52f1a0(0x257)](_0x2c2330[_0x52f1a0(0x218)](_0x87c84a,_0x2b97b6,_0x18a0c8));}}function ht(_0x38fa16,_0x33ccba,_0x2e174c,_0x1990d4,_0x3960df){const _0x24448a=_0x1edc1f;if(_0x2e174c[_0x24448a(0x1d8)]===_0x1990d4[_0x24448a(0x1d8)]){_0x2e174c[_0x24448a(0x258)]((_0x26c010,_0x4702c2)=>K(_0x38fa16,[..._0x33ccba,_0x4702c2],_0x26c010,_0x1990d4[_0x4702c2],_0x3960df));return;}let _0x498ee4=0x0;for(;_0x498ee4<_0x2e174c[_0x24448a(0x1d8)]&&_0x498ee4<_0x1990d4[_0x24448a(0x1d8)]&&J(_0x2e174c[_0x498ee4],_0x1990d4[_0x498ee4]);)_0x498ee4++;let _0x30a2a6=_0x2e174c[_0x24448a(0x1d8)]-0x1,_0x479fcc=_0x1990d4[_0x24448a(0x1d8)]-0x1;for(;_0x30a2a6>=_0x498ee4&&_0x479fcc>=_0x498ee4&&J(_0x2e174c[_0x30a2a6],_0x1990d4[_0x479fcc]);)_0x30a2a6--,_0x479fcc--;for(let _0x24c9eb=_0x30a2a6;_0x24c9eb>=_0x498ee4;_0x24c9eb--)_0x3960df[_0x24448a(0x257)](_0x38fa16['removeOp']([..._0x33ccba,_0x24c9eb],_0x2e174c[_0x24c9eb]));for(let _0x1beb4e=_0x498ee4;_0x1beb4e<=_0x479fcc;_0x1beb4e++)_0x3960df['push'](_0x38fa16[_0x24448a(0x203)]([..._0x33ccba,_0x1beb4e],_0x1990d4[_0x1beb4e]));}function q(_0x56dcc6){const _0x5310ad=_0x1edc1f;return typeof _0x56dcc6==_0x5310ad(0x1d0)&&!!_0x56dcc6&&!Array[_0x5310ad(0x215)](_0x56dcc6);}function J(_0x1e0222,_0x3f5ec5){const _0x595e24=_0x1edc1f;return JSON[_0x595e24(0x239)](_0x1e0222)===JSON[_0x595e24(0x239)](_0x3f5ec5);}function Y(_0x52af4b,_0x3c6e8a,_0x3aeeac,_0x4ae4dc,_0xea0621,_0x5c7f74,_0x2ba5d5){const _0x465c4c=_0x1edc1f;let _0x48908d=ut(_0x4ae4dc,_0xea0621);return _0x48908d?!!_0x52af4b[_0x465c4c(0x1da)](_0xc563fa['id'],{'unitId':_0x3aeeac,'actions':_0x48908d,'textRanges':[{'startOffset':_0x2ba5d5,'endOffset':_0x2ba5d5,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x5c7f74}):(_0x3c6e8a[_0x465c4c(0x1f7)]([{'startOffset':_0x2ba5d5,'endOffset':_0x2ba5d5}],{'unitId':_0x3aeeac,'subUnitId':_0x3aeeac},!0x1),!0x0);}const X=_0x1edc1f(0x23a);var gt=_0x1edc1f(0x238),_t=_0x1edc1f(0x226);const vt={};function Z(_0x12d672,_0x53d951){return function(_0x1286b1,_0xc98794){_0x53d951(_0x1286b1,_0xc98794,_0x12d672);};}function yt(_0x5d656f,_0x3f585c,_0x69d9a3,_0x1b8442){const _0x56e66a=_0x1edc1f;var _0x351313=arguments[_0x56e66a(0x1d8)],_0x28c126=_0x351313<0x3?_0x3f585c:_0x1b8442===null?_0x1b8442=Object['getOwnPropertyDescriptor'](_0x3f585c,_0x69d9a3):_0x1b8442,_0x524676;if(typeof Reflect==_0x56e66a(0x1d0)&&typeof Reflect[_0x56e66a(0x222)]==_0x56e66a(0x246))_0x28c126=Reflect[_0x56e66a(0x222)](_0x5d656f,_0x3f585c,_0x69d9a3,_0x1b8442);else{for(var _0x13ceb1=_0x5d656f[_0x56e66a(0x1d8)]-0x1;_0x13ceb1>=0x0;_0x13ceb1--)(_0x524676=_0x5d656f[_0x13ceb1])&&(_0x28c126=(_0x351313<0x3?_0x524676(_0x28c126):_0x351313>0x3?_0x524676(_0x3f585c,_0x69d9a3,_0x28c126):_0x524676(_0x3f585c,_0x69d9a3))||_0x28c126);}return _0x351313>0x3&&_0x28c126&&Object[_0x56e66a(0x220)](_0x3f585c,_0x69d9a3,_0x28c126),_0x28c126;}let Q=class extends _0x11f1e7{constructor(_0x38ac2b,_0x14d407){const _0x2f0bec=_0x1edc1f;super(),this[_0x2f0bec(0x1cc)]=_0x38ac2b,this[_0x2f0bec(0x1f5)]=_0x14d407,this[_0x2f0bec(0x1f4)]();}[_0x1edc1f(0x1f4)](){const _0x3222d1=_0x1edc1f;this[_0x3222d1(0x23d)](this['_resourceManagerService']['registerPluginResource']({'pluginName':X,'businesses':[_0x41a83a['UNIVER_DOC']],'toJson':_0x5e6d5d=>JSON[_0x3222d1(0x239)](this[_0x3222d1(0x1f5)][_0x3222d1(0x1be)](_0x5e6d5d)),'parseJson':_0x23f59e=>x(JSON[_0x3222d1(0x1e6)](_0x23f59e)),'onLoad':(_0x537f2c,_0x451d0b)=>this[_0x3222d1(0x1f5)][_0x3222d1(0x1ee)](_0x537f2c,_0x451d0b),'onUnLoad':_0xbdb392=>this['_docsCodeModel'][_0x3222d1(0x1fa)](_0xbdb392)}));}};Q=yt([Z(0x0,_0x50ae34),Z(0x1,_0x5c4b8b(z))],Q);let $=class extends _0x19b9cc{constructor(_0x3892b3=vt,_0x2e3095,_0x255e3e,_0x2b7c55){const _0x56b48e=_0x1edc1f;super(),this[_0x56b48e(0x224)]=_0x3892b3,this[_0x56b48e(0x236)]=_0x2e3095,this['_commandService']=_0x255e3e,this['_configService']=_0x2b7c55;let {..._0x27948e}=_0x559340({},vt,this[_0x56b48e(0x224)]);this[_0x56b48e(0x205)][_0x56b48e(0x1f0)](_0x56b48e(0x1b9),_0x27948e);}['onStarting'](){const _0x960035=_0x1edc1f;this[_0x960035(0x236)]['add']([z]),this[_0x960035(0x236)][_0x960035(0x225)]([Q]),this[_0x960035(0x236)][_0x960035(0x1c5)](z),this[_0x960035(0x236)]['get'](Q),[B,nt,it,V,H,at,U,rt][_0x960035(0x258)](_0x4247a0=>this[_0x960035(0x23d)](this[_0x960035(0x249)][_0x960035(0x1e2)](_0x4247a0)));}};R($,_0x1edc1f(0x22a),X),R($,_0x1edc1f(0x227),gt),R($,_0x1edc1f(0x1fd),_t),R($,_0x1edc1f(0x233),_0x41a83a['UNIVER_DOC']),$=yt([_0x2f1165(_0x4c3c74,_0x3f1e99),Z(0x1,_0x5c4b8b(_0x193e69)),Z(0x2,_0x1d61d6),Z(0x3,_0x4a9167)],$);export{X as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,rt as DocsCodeConsumeBoundaryDeleteCommand,nt as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,z as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,it as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,Oe as buildCancelEmptyCodeParagraphActions,je as isCodeBoundaryDelete,b as normalizeDocsCodeConfig};
|
|
1
|
+
const _0x18c3b6=_0x5d50;(function(_0x31dceb,_0x347800){const _0x25d675=_0x5d50,_0x39d196=_0x31dceb();while(!![]){try{const _0x170749=parseInt(_0x25d675(0x234))/0x1*(parseInt(_0x25d675(0x25e))/0x2)+parseInt(_0x25d675(0x1fc))/0x3+parseInt(_0x25d675(0x209))/0x4+parseInt(_0x25d675(0x26c))/0x5*(parseInt(_0x25d675(0x27d))/0x6)+parseInt(_0x25d675(0x1dd))/0x7*(-parseInt(_0x25d675(0x1de))/0x8)+-parseInt(_0x25d675(0x246))/0x9+-parseInt(_0x25d675(0x255))/0xa;if(_0x170749===_0x347800)break;else _0x39d196['push'](_0x39d196['shift']());}catch(_0x32fb82){_0x39d196['push'](_0x39d196['shift']());}}}(_0x528c,0x2e578));import{BuildTextUtils as _0x2d03d5,CommandType as _0x3be55c,DataStreamTreeTokenType as _0x345b07,DependentOn as _0x276851,Disposable as _0x4948fc,DocumentBlockRangeType as _0x235429,ICommandService as _0x4d0578,IConfigService as _0x293d21,IResourceManagerService as _0x1714ed,IUniverInstanceService as _0x346a74,Inject as _0x4f21b2,Injector as _0x28ac44,JSONX as _0x87d7fa,Plugin as _0x113499,TextX as _0x4e63ee,UniverInstanceType as _0xad7320,containsInteriorInsertionOffset as _0x4077aa,containsStreamIndex as _0x52034b,createParagraphId as _0xa4ecb,generateRandomId as _0x33805c,getBlockRangeInterval as _0x2cea6f,getBodySliceForTextXAction as _0x189863,getParagraphContentStartOffset as _0x3becf7,getParagraphContentStartOffsets as _0xa16992,getParagraphFollowingBlockOffset as _0x291143,getSingleDataStreamChange as _0x1eab78,intersectsOperationalIntervals as _0x12ce39,merge as _0x562bff,shiftExclusiveRangeOnDelete as _0x235aba,shiftExclusiveRangeOnInsert as _0x4bede0,shiftInclusiveRangeOnDelete as _0x160344,shiftInclusiveRangeOnInsert as _0x4ca3f5}from'@univerjs/core';import{Subject as _0x26d1f0}from'rxjs';import{DocSelectionManagerService as _0x462bf4,RichTextEditingMutation as _0x113fa7,UniverDocsPlugin as _0x4cbbf9,getContentInsertRange as _0x2ee982,isHeaderFooterSelection as _0x2c52d7}from'@univerjs/docs';import{UniverLicensePlugin as _0x3d3e22}from'@univerjs-pro/license';const ve={'language':_0x18c3b6(0x266),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function x(_0x526adf){return{...ve,..._0x526adf};}function S(_0x37f5dc){const _0x203858=_0x18c3b6;var _0x1ef9ff;let _0x34d337=(_0x1ef9ff=_0x37f5dc==null?void 0x0:_0x37f5dc[_0x203858(0x219)])==null?{}:_0x1ef9ff;return{'codes':Object[_0x203858(0x200)](Object[_0x203858(0x226)](_0x34d337)[_0x203858(0x252)](([_0x33d412,_0x4e4ed3])=>[_0x33d412,x(_0x4e4ed3)]))};}function C(_0x19d352,_0x5706e5,_0x190a38){const _0x365c39=_0x18c3b6;let _0x53938d=S(_0x19d352);return _0x53938d[_0x365c39(0x219)][_0x5706e5]=x({..._0x53938d[_0x365c39(0x219)][_0x5706e5],..._0x190a38}),_0x53938d;}function w(_0x27b117,_0x31cf6b){const _0x2cd546=_0x18c3b6;let _0x943cc9=S(_0x27b117);return delete _0x943cc9[_0x2cd546(0x219)][_0x31cf6b],_0x943cc9;}function T(_0x2d5269){'@babel/helpers - typeof';const _0x42546f=_0x18c3b6;return T=typeof Symbol==_0x42546f(0x1db)&&typeof Symbol['iterator']==_0x42546f(0x258)?function(_0x534968){return typeof _0x534968;}:function(_0x3031a7){const _0x3b87c4=_0x42546f;return _0x3031a7&&typeof Symbol==_0x3b87c4(0x1db)&&_0x3031a7[_0x3b87c4(0x239)]===Symbol&&_0x3031a7!==Symbol[_0x3b87c4(0x21b)]?_0x3b87c4(0x258):typeof _0x3031a7;},T(_0x2d5269);}function ye(_0x16bfc0,_0x1f3cab){const _0x4ffc48=_0x18c3b6;if(T(_0x16bfc0)!=_0x4ffc48(0x1fb)||!_0x16bfc0)return _0x16bfc0;var _0x3c1f05=_0x16bfc0[Symbol[_0x4ffc48(0x1f2)]];if(_0x3c1f05!==void 0x0){var _0x4f1201=_0x3c1f05[_0x4ffc48(0x1e6)](_0x16bfc0,_0x1f3cab||_0x4ffc48(0x1f6));if(T(_0x4f1201)!='object')return _0x4f1201;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1f3cab===_0x4ffc48(0x22d)?String:Number)(_0x16bfc0);}function be(_0xef4901){const _0x20609d=_0x18c3b6;var _0x23262c=ye(_0xef4901,'string');return T(_0x23262c)==_0x20609d(0x258)?_0x23262c:_0x23262c+'';}function E(_0x2ff3cf,_0x15c041,_0x286912){return(_0x15c041=be(_0x15c041))in _0x2ff3cf?Object['defineProperty'](_0x2ff3cf,_0x15c041,{'value':_0x286912,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2ff3cf[_0x15c041]=_0x286912,_0x2ff3cf;}function _0x5d50(_0x3f47e8,_0x59aa60){_0x3f47e8=_0x3f47e8-0x1d9;const _0x528c45=_0x528c();let _0x5d5023=_0x528c45[_0x3f47e8];return _0x5d5023;}var D=class extends _0x4948fc{constructor(..._0xe24fa6){const _0x1fa2e4=_0x18c3b6;super(..._0xe24fa6),E(this,_0x1fa2e4(0x243),new Map()),E(this,_0x1fa2e4(0x273),new _0x26d1f0()),E(this,_0x1fa2e4(0x1fd),this[_0x1fa2e4(0x273)][_0x1fa2e4(0x257)]());}[_0x18c3b6(0x247)](_0x274c36,_0x1ae938){const _0x44ec25=_0x18c3b6;return S(this[_0x44ec25(0x243)][_0x44ec25(0x278)](_0x274c36))[_0x44ec25(0x219)][_0x1ae938];}[_0x18c3b6(0x240)](_0x2c88a3,_0x1cc28a,_0x3db192){const _0x542443=_0x18c3b6;this[_0x542443(0x233)](_0x2c88a3,_0x1cc28a,C(this['_resources'][_0x542443(0x278)](_0x2c88a3),_0x1cc28a,_0x3db192));}['removeCode'](_0x205192,_0xc017ac){const _0x1eb0cc=_0x18c3b6;this['_setResource'](_0x205192,_0xc017ac,w(this[_0x1eb0cc(0x243)][_0x1eb0cc(0x278)](_0x205192),_0xc017ac));}['serialize'](_0x159b75){const _0x57290c=_0x18c3b6;return S(this[_0x57290c(0x243)][_0x57290c(0x278)](_0x159b75));}[_0x18c3b6(0x1f5)](_0x3ecdc6,_0x2d5df8){const _0x26a739=_0x18c3b6;this['_resources'][_0x26a739(0x265)](_0x3ecdc6,S(_0x2d5df8)),this[_0x26a739(0x273)][_0x26a739(0x1df)]({'unitId':_0x3ecdc6});}[_0x18c3b6(0x275)](_0x534dc2){const _0x431f31=_0x18c3b6;this['_resources'][_0x431f31(0x231)](_0x534dc2),this[_0x431f31(0x273)]['next']({'unitId':_0x534dc2});}[_0x18c3b6(0x224)](){const _0x10b902=_0x18c3b6;super['dispose'](),this[_0x10b902(0x243)][_0x10b902(0x210)](),this[_0x10b902(0x273)][_0x10b902(0x1e1)]();}[_0x18c3b6(0x233)](_0x13a275,_0x378165,_0x3814ed){const _0x3128a6=_0x18c3b6;this[_0x3128a6(0x243)][_0x3128a6(0x265)](_0x13a275,_0x3814ed),this['_change$'][_0x3128a6(0x1df)]({'unitId':_0x13a275,'blockId':_0x378165});}};const xe={'id':'docs-code.mutation.set-config','type':_0x3be55c[_0x18c3b6(0x208)],'handler':(_0x363261,_0x1a6809)=>!(_0x1a6809!=null&&_0x1a6809['unitId'])||!_0x1a6809[_0x18c3b6(0x1fe)]?!0x1:(_0x363261['get'](D)['setCodeConfig'](_0x1a6809[_0x18c3b6(0x25a)],_0x1a6809[_0x18c3b6(0x1fe)],_0x1a6809[_0x18c3b6(0x1ee)]),!0x0)},Se={'id':_0x18c3b6(0x27e),'type':_0x3be55c[_0x18c3b6(0x208)],'handler':(_0x26481a,_0x756fd)=>!(_0x756fd!=null&&_0x756fd[_0x18c3b6(0x25a)])||!_0x756fd['blockId']?!0x1:(_0x26481a[_0x18c3b6(0x278)](D)[_0x18c3b6(0x228)](_0x756fd[_0x18c3b6(0x25a)],_0x756fd[_0x18c3b6(0x1fe)]),!0x0)},Ce=_0x18c3b6(0x1ea);var O=class extends Error{constructor(_0x1635b2=_0x18c3b6(0x23c)){super(_0x1635b2);}};function we(_0x119254){const _0x143c1f=_0x18c3b6;var _0x46a02e,_0x5911d5,_0x5a7127;let _0x56cea1=k(_0x119254['documentData']),_0x41556=j(_0x56cea1),_0x911502=Ee(_0x119254[_0x143c1f(0x274)],_0x119254[_0x143c1f(0x26e)]),_0x5bf3ce=_0x911502?(_0x46a02e=_0x41556['blockRanges'])==null?void 0x0:_0x46a02e[_0x143c1f(0x1ff)](_0x1a1de3=>{const _0x2851c0=_0x143c1f;let _0x2b07a9=_0x2cea6f(_0x1a1de3);return _0x2b07a9[_0x2851c0(0x274)]===_0x911502[_0x2851c0(0x274)]&&_0x2b07a9[_0x2851c0(0x26e)]===_0x911502[_0x2851c0(0x26e)];}):void 0x0,{startOffset:_0x58b077,endOffset:_0x1556de}=_0x5bf3ce?_0x911502:He(_0x41556,_0x119254[_0x143c1f(0x274)],_0x119254[_0x143c1f(0x26e)],_0x119254[_0x143c1f(0x245)]);if(!_0x5bf3ce&&De(_0x41556,_0x58b077,_0x1556de))throw new O(_0x143c1f(0x20d));let _0x20fb66=Ge(_0x41556,_0x58b077,_0x1556de),_0x143ddf=(_0x5911d5=_0x5bf3ce==null?void 0x0:_0x5bf3ce['blockId'])==null?_0x119254[_0x143c1f(0x1fe)]:_0x5911d5,_0x28dadf=C(_0x119254[_0x143c1f(0x229)],_0x143ddf,{...ve,..._0x119254[_0x143c1f(0x1ee)]});if(_0x5bf3ce)return _0x5bf3ce['blockType']=_0x235429['CODE'],Te(_0x41556,_0x58b077,_0x1556de),Le(_0x41556,_0x58b077,_0x1556de,_0x20fb66),P(_0x41556,_0x5bf3ce),{'nextDocumentData':_0x56cea1,'nextMetadata':_0x28dadf,'cursorOffset':_0x58b077+0x1};if(_0x58b077===_0x1556de){var _0x45bc44,_0x466ddf;let _0x585511=''+_0x345b07[_0x143c1f(0x276)]+_0x345b07[_0x143c1f(0x259)]+_0x345b07[_0x143c1f(0x1e3)];F(_0x41556,_0x58b077,_0x585511,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0xa4ecb(new Set((_0x45bc44=_0x41556[_0x143c1f(0x27a)])==null?void 0x0:_0x45bc44[_0x143c1f(0x252)](_0x3e267c=>_0x3e267c[_0x143c1f(0x220)]))),'paragraphStyle':Ie(!0x0,!0x0,_0x20fb66)}],'blockRanges':[{'blockId':_0x143ddf,'blockType':_0x235429['CODE'],'startIndex':0x0,'endIndex':_0x585511['length']-0x1}]});let _0x1122f8=(_0x466ddf=_0x41556[_0x143c1f(0x21f)])==null?void 0x0:_0x466ddf[_0x143c1f(0x1ff)](_0x1b2ae2=>_0x1b2ae2['blockId']===_0x143ddf);return _0x1122f8&&P(_0x41556,_0x1122f8),{'nextDocumentData':_0x56cea1,'nextMetadata':_0x28dadf,'cursorOffset':_0x58b077+0x1};}F(_0x41556,_0x1556de,_0x345b07[_0x143c1f(0x1e3)]),F(_0x41556,_0x58b077,_0x345b07[_0x143c1f(0x276)]),Le(_0x41556,_0x58b077,_0x1556de+0x1,_0x20fb66);let _0x1407ca={'blockId':_0x143ddf,'blockType':_0x235429[_0x143c1f(0x1d9)],'startIndex':_0x58b077,'endIndex':_0x1556de+0x1};return _0x41556['blockRanges']=[...(_0x5a7127=_0x41556[_0x143c1f(0x21f)])==null?[]:_0x5a7127,_0x1407ca][_0x143c1f(0x1fa)]((_0x1f97ae,_0xb58b78)=>_0x1f97ae[_0x143c1f(0x216)]-_0xb58b78[_0x143c1f(0x216)]),P(_0x41556,_0x1407ca),{'nextDocumentData':_0x56cea1,'nextMetadata':_0x28dadf,'cursorOffset':_0x58b077+0x1};}function Te(_0x1c88f2,_0x413e5e,_0x5ccc46){const _0x7868dd=_0x18c3b6;var _0x219c4b;((_0x219c4b=_0x1c88f2[_0x7868dd(0x27a)])==null?[]:_0x219c4b)['filter'](_0xbe1d23=>_0xbe1d23[_0x7868dd(0x216)]>_0x413e5e&&_0xbe1d23['startIndex']<_0x5ccc46)[_0x7868dd(0x1f3)](_0x202a76=>{const _0x389e82=_0x7868dd;var _0x303738;let _0x26fd38={...(_0x303738=_0x202a76[_0x389e82(0x1ed)])==null?{}:_0x303738};delete _0x26fd38[_0x389e82(0x1e8)],delete _0x26fd38[_0x389e82(0x1e5)],_0x202a76[_0x389e82(0x1ed)]=_0x26fd38;});}function Ee(_0x257c3d,_0xf10f5f){const _0x1dea40=_0x18c3b6;return _0x257c3d==null||_0xf10f5f==null||_0x257c3d===_0xf10f5f?null:{'startOffset':Math[_0x1dea40(0x24e)](_0x257c3d,_0xf10f5f),'endOffset':Math['max'](_0x257c3d,_0xf10f5f)};}function De(_0x4c0c41,_0x35e60e,_0x379c51){const _0xfd8327=_0x18c3b6;var _0x252e9f;return((_0x252e9f=_0x4c0c41[_0xfd8327(0x21f)])==null?[]:_0x252e9f)[_0xfd8327(0x261)](_0x17ccd5=>{let _0x484c58=_0x2cea6f(_0x17ccd5);return _0x35e60e===_0x379c51?_0x4077aa(_0x484c58,_0x35e60e):_0x12ce39(_0x484c58,{'startOffset':_0x35e60e,'endOffset':_0x379c51});});}function Oe(_0x57fa12){const _0x6a06a3=_0x18c3b6;return{'nextDocumentData':k(_0x57fa12[_0x6a06a3(0x1f0)]),'nextMetadata':C(_0x57fa12['metadata'],_0x57fa12[_0x6a06a3(0x1fe)],_0x57fa12[_0x6a06a3(0x1ee)]),'cursorOffset':0x0};}function ke(_0x4e3012){const _0x4830ae=_0x18c3b6;let _0x5d8d7d=k(_0x4e3012[_0x4830ae(0x1f0)]),_0x4e6eee=j(_0x5d8d7d),_0x4ccfdf=Ne(_0x4e6eee,_0x4e3012[_0x4830ae(0x1fe)]);if(!_0x4ccfdf)return null;let _0x1f435a=Be(_0x4e6eee,_0x4ccfdf);return{'nextDocumentData':_0x5d8d7d,'nextMetadata':w(_0x4e3012[_0x4830ae(0x229)],_0x4e3012[_0x4830ae(0x1fe)]),'cursorOffset':_0x1f435a};}function Ae(_0xe3b232){const _0x1be0b5=_0x18c3b6;var _0xbf1d23;let _0xa685fe=k(_0xe3b232['documentData']),_0x2df8f6=j(_0xa685fe),_0x47e813=Ne(_0x2df8f6,_0xe3b232[_0x1be0b5(0x1fe)]);if(!_0x47e813)return null;let _0x4bdaf8=_0x2cea6f(_0x47e813);return I(_0x2df8f6,_0x4bdaf8[_0x1be0b5(0x274)],_0x4bdaf8[_0x1be0b5(0x26e)]),_0x2df8f6['blockRanges']=(_0xbf1d23=_0x2df8f6['blockRanges'])==null?void 0x0:_0xbf1d23[_0x1be0b5(0x205)](_0x2a401c=>_0x2a401c[_0x1be0b5(0x1fe)]!==_0xe3b232[_0x1be0b5(0x1fe)]),{'nextDocumentData':_0xa685fe,'nextMetadata':w(_0xe3b232[_0x1be0b5(0x229)],_0xe3b232['blockId']),'cursorOffset':_0x47e813['startIndex']};}function je(_0x49fb75){const _0x3fd450=_0x18c3b6;let _0x4dcd04=k(_0x49fb75[_0x3fd450(0x1f0)]),_0x21c298=j(_0x4dcd04),_0x48e1ed=Fe(_0x21c298,_0x49fb75[_0x3fd450(0x25c)]);return _0x48e1ed&&Me(_0x4dcd04,_0x21c298,_0x48e1ed,_0x49fb75[_0x3fd450(0x25c)],_0x49fb75['paragraphStartIndex'])||null;}function Me(_0x56c3d7,_0x47db92,_0x17e249,_0x556647,_0x14cc28){const _0x187699=_0x18c3b6;let _0x109761=Ze(_0x47db92,_0x17e249,_0x556647,_0x14cc28);if(!_0x109761)return null;let _0x558f83=_0x109761['endTokenOffset']-0x1;return I(_0x47db92,_0x109761[_0x187699(0x23b)][_0x187699(0x216)],_0x109761[_0x187699(0x23b)][_0x187699(0x216)]+0x1),{'nextDocumentData':_0x56c3d7,'cursorOffset':_0x558f83};}function Ne(_0x2228ac,_0x53fff1){const _0x2afb6c=_0x18c3b6;var _0x4d5002;return _0x2228ac==null||(_0x4d5002=_0x2228ac[_0x2afb6c(0x21f)])==null?void 0x0:_0x4d5002['find'](_0x1e178d=>_0x1e178d[_0x2afb6c(0x22e)]===_0x235429['CODE']&&_0x1e178d[_0x2afb6c(0x1fe)]===_0x53fff1);}function Pe(_0x41b086){const _0x1a9a1b=_0x18c3b6;var _0xef6654;let _0x315840=_0x41b086[_0x1a9a1b(0x1f0)][_0x1a9a1b(0x23d)];if(!_0x315840)return!0x1;let _0x3c77c1=_0x41b086[_0x1a9a1b(0x24d)]==='left'?_0x41b086['cursorOffset']-0x1:_0x41b086[_0x1a9a1b(0x25c)],_0x108b71=_0x41b086[_0x1a9a1b(0x24d)]===_0x1a9a1b(0x26d)?_0x41b086[_0x1a9a1b(0x25c)]+0x1:_0x3c77c1;return((_0xef6654=_0x315840[_0x1a9a1b(0x21f)])==null?[]:_0xef6654)[_0x1a9a1b(0x261)](_0x3fade6=>_0x3fade6['blockType']===_0x235429[_0x1a9a1b(0x1d9)]?_0x3c77c1===_0x3fade6['startIndex']||_0x3c77c1===_0x3fade6['endIndex']||_0x108b71===_0x3fade6['startIndex']||_0x108b71===_0x3fade6['endIndex']:!0x1);}function Fe(_0x4e42ef,_0x3c24b4){const _0x51b56d=_0x18c3b6;var _0x322052;return(_0x322052=_0x4e42ef[_0x51b56d(0x21f)])==null?void 0x0:_0x322052['find'](_0x51a584=>{const _0xbe925d=_0x51b56d;let _0x4604b1=N(_0x51a584);return _0x51a584['blockType']===_0x235429['CODE']&&_0x51a584[_0xbe925d(0x216)]<=_0x3c24b4&&_0x3c24b4<=_0x4604b1+0x2;});}function Ie(_0x13843e,_0x3fb838,_0x589635=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x13843e&&_0x589635?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ce,'fs':0xc}};}function Le(_0x370f94,_0x57eb77,_0x1cc1e6,_0x2f06fa=!0x1){const _0x4cb3dc=_0x18c3b6;var _0xb4f60b;let _0x2eb4df=((_0xb4f60b=_0x370f94[_0x4cb3dc(0x27a)])==null?[]:_0xb4f60b)[_0x4cb3dc(0x205)](_0x29fe90=>_0x29fe90[_0x4cb3dc(0x216)]>_0x57eb77&&_0x29fe90[_0x4cb3dc(0x216)]<_0x1cc1e6);_0x2eb4df[_0x4cb3dc(0x1f3)]((_0xe8ad9,_0x294d6d)=>{const _0x351b85=_0x4cb3dc;var _0x465f32;_0xe8ad9['paragraphStyle']={...(_0x465f32=_0xe8ad9[_0x351b85(0x1ed)])==null?{}:_0x465f32,...Ie(_0x294d6d===0x0,_0x294d6d===_0x2eb4df[_0x351b85(0x227)]-0x1,_0x2f06fa)};});}function Re(_0x5f16b5){const _0x2671b6=_0x18c3b6;var _0x5611b8,_0x472fa3;let _0x524e61={..._0x5f16b5==null?{}:_0x5f16b5};return delete _0x524e61[_0x2671b6(0x218)],delete _0x524e61[_0x2671b6(0x211)],delete _0x524e61[_0x2671b6(0x1e8)],delete _0x524e61[_0x2671b6(0x1e5)],((_0x5611b8=_0x524e61[_0x2671b6(0x221)])==null?void 0x0:_0x5611b8['ff'])===Ce&&((_0x472fa3=_0x524e61[_0x2671b6(0x221)])==null?void 0x0:_0x472fa3['fs'])===0xc&&delete _0x524e61['textStyle'],_0x524e61;}function ze(_0x292fdb,_0x583d5e){const _0x1b3699=_0x18c3b6;var _0x19bb0d;let _0x29ebdc=N(_0x583d5e);return((_0x19bb0d=_0x292fdb[_0x1b3699(0x27a)])==null?[]:_0x19bb0d)[_0x1b3699(0x205)](_0x4a6144=>_0x4a6144[_0x1b3699(0x216)]>_0x583d5e[_0x1b3699(0x216)]&&_0x4a6144[_0x1b3699(0x216)]<_0x29ebdc);}function Be(_0x5e0af7,_0x1b32c0){const _0x40814a=_0x18c3b6;var _0x172060;let _0x27bdf4=N(_0x1b32c0);return ze(_0x5e0af7,_0x1b32c0)[_0x40814a(0x1f3)](_0x1db653=>{const _0x515f67=_0x40814a;_0x1db653[_0x515f67(0x1ed)]=Re(_0x1db653[_0x515f67(0x1ed)]);}),I(_0x5e0af7,_0x27bdf4,_0x27bdf4+0x1),I(_0x5e0af7,_0x1b32c0['startIndex'],_0x1b32c0['startIndex']+0x1),_0x5e0af7['blockRanges']=(_0x172060=_0x5e0af7[_0x40814a(0x21f)])==null?void 0x0:_0x172060['filter'](_0x43e9d6=>_0x43e9d6[_0x40814a(0x1fe)]!==_0x1b32c0[_0x40814a(0x1fe)]),_0x1b32c0[_0x40814a(0x216)];}function k(_0x47fae0){const _0x521fa=_0x18c3b6;return{..._0x47fae0,'body':_0x47fae0['body']?Ve(_0x47fae0[_0x521fa(0x23d)]):_0x47fae0[_0x521fa(0x23d)]};}function Ve(_0x4b3cd1){const _0x35f55c=_0x18c3b6;var _0x1c7817,_0x58365c,_0x580c04,_0x2c6f05,_0x5dc719,_0x30c1b4,_0x2e6613,_0x5da43b,_0xa5079a;return{..._0x4b3cd1,'paragraphs':(_0x1c7817=_0x4b3cd1['paragraphs'])==null?void 0x0:_0x1c7817[_0x35f55c(0x252)](_0x1780b8=>({..._0x1780b8,'bullet':A(_0x1780b8[_0x35f55c(0x235)]),'paragraphStyle':A(_0x1780b8['paragraphStyle'])})),'sectionBreaks':(_0x58365c=_0x4b3cd1[_0x35f55c(0x203)])==null?void 0x0:_0x58365c[_0x35f55c(0x252)](_0x369c5c=>({..._0x369c5c})),'textRuns':(_0x580c04=_0x4b3cd1[_0x35f55c(0x251)])==null?void 0x0:_0x580c04[_0x35f55c(0x252)](_0x4436ae=>({..._0x4436ae})),'tables':(_0x2c6f05=_0x4b3cd1[_0x35f55c(0x1f8)])==null?void 0x0:_0x2c6f05[_0x35f55c(0x252)](_0x470628=>({..._0x470628})),'columnGroups':(_0x5dc719=_0x4b3cd1['columnGroups'])==null?void 0x0:_0x5dc719[_0x35f55c(0x252)](_0x236729=>{const _0x46b811=_0x35f55c;var _0x20cd20;return{..._0x236729,'columns':(_0x20cd20=_0x236729[_0x46b811(0x223)])==null?void 0x0:_0x20cd20[_0x46b811(0x252)](_0x3fd2b1=>A(_0x3fd2b1))};}),'blockRanges':(_0x30c1b4=_0x4b3cd1['blockRanges'])==null?void 0x0:_0x30c1b4[_0x35f55c(0x252)](_0x37d8bc=>({..._0x37d8bc})),'customRanges':(_0x2e6613=_0x4b3cd1[_0x35f55c(0x206)])==null?void 0x0:_0x2e6613[_0x35f55c(0x252)](_0x17b2f9=>({..._0x17b2f9})),'customDecorations':(_0x5da43b=_0x4b3cd1[_0x35f55c(0x25d)])==null?void 0x0:_0x5da43b[_0x35f55c(0x252)](_0x456eb6=>({..._0x456eb6})),'customBlocks':(_0xa5079a=_0x4b3cd1[_0x35f55c(0x1e7)])==null?void 0x0:_0xa5079a[_0x35f55c(0x252)](_0x2e7ea6=>({..._0x2e7ea6}))};}function A(_0x3cc26a){const _0x63c078=_0x18c3b6;return Array[_0x63c078(0x22f)](_0x3cc26a)?_0x3cc26a['map'](_0x4a7e35=>A(_0x4a7e35)):!_0x3cc26a||typeof _0x3cc26a!='object'?_0x3cc26a:Object['fromEntries'](Object[_0x63c078(0x226)](_0x3cc26a)[_0x63c078(0x252)](([_0x4d63c6,_0x3d09f1])=>[_0x4d63c6,A(_0x3d09f1)]));}function j(_0x1ea2c3){const _0x1dcbe1=_0x18c3b6;if(!_0x1ea2c3[_0x1dcbe1(0x23d)])throw Error(_0x1dcbe1(0x1e9));return _0x1ea2c3[_0x1dcbe1(0x23d)];}function He(_0x1020f3,_0x49698d,_0x538cc3,_0x3b5003=_0x18c3b6(0x217)){const _0x113b2c=_0x18c3b6;if(_0x49698d==null||_0x538cc3==null){let _0x2e3f12=We(_0x1020f3);return{'startOffset':_0x2e3f12,'endOffset':_0x2e3f12};}let _0x58a604=Math[_0x113b2c(0x24e)](_0x49698d,_0x538cc3),_0x9712a2=Math['max'](_0x49698d,_0x538cc3),_0x32e9cb=Ye(_0x1020f3,_0x58a604,_0x9712a2);return _0x58a604===_0x9712a2?_0x3b5003===_0x113b2c(0x272)?{'startOffset':_0x58a604,'endOffset':_0x9712a2}:Ue(_0x1020f3,_0x58a604,_0x32e9cb):Ke(_0x1020f3,_0x58a604,_0x9712a2,_0x32e9cb);}function Ue(_0x2b3d36,_0x2a4bb3,_0x56603e){const _0x44d801=_0x18c3b6;let _0x5c427c=qe(_0x2b3d36,_0x2a4bb3);if(_0x5c427c){let _0x562373=M(_0x2b3d36,_0x5c427c,_0x56603e);if(_0x562373<_0x5c427c[_0x44d801(0x216)])return{'startOffset':_0x562373,'endOffset':_0x56603e?Math[_0x44d801(0x24e)](_0x5c427c[_0x44d801(0x216)]+0x1,_0x56603e[_0x44d801(0x26e)]):_0x5c427c['startIndex']+0x1};}let _0x2dac27=_0x2a4bb3===0x0&&_0x2b3d36[_0x44d801(0x270)][0x0]===_0x345b07[_0x44d801(0x259)]?0x1:_0x2a4bb3;return{'startOffset':_0x2dac27,'endOffset':_0x2dac27};}function We(_0x33f172){const _0x1f75d3=_0x18c3b6;return _0x33f172[_0x1f75d3(0x270)][_0x1f75d3(0x20c)](_0x345b07['SECTION_BREAK'])?Math['max'](0x0,_0x33f172[_0x1f75d3(0x270)][_0x1f75d3(0x227)]-0x1):_0x33f172[_0x1f75d3(0x270)][_0x1f75d3(0x227)];}function Ge(_0x4598f7,_0x1bdd73,_0x519012){const _0x138ff7=_0x18c3b6;var _0x5e821d;let _0x52c716=Math[_0x138ff7(0x24e)](_0x1bdd73,_0x519012),_0x47a312=Math[_0x138ff7(0x225)](_0x1bdd73,_0x519012);return!!((_0x5e821d=_0x4598f7[_0x138ff7(0x1f8)])!=null&&_0x5e821d[_0x138ff7(0x261)](_0x1c93f4=>_0x52c716>_0x1c93f4[_0x138ff7(0x216)]&&_0x52c716<_0x1c93f4[_0x138ff7(0x1f1)]||_0x47a312>_0x1c93f4[_0x138ff7(0x216)]&&_0x47a312<_0x1c93f4['endIndex']||_0x52c716<=_0x1c93f4[_0x138ff7(0x216)]&&_0x47a312>=_0x1c93f4['endIndex']));}function Ke(_0x2469f8,_0x261110,_0x1a0662,_0x15f427){const _0x42da0c=_0x18c3b6;var _0x3d6fcf,_0x152428;let _0x12537d=[...(_0x3d6fcf=_0x2469f8['paragraphs'])==null?[]:_0x3d6fcf][_0x42da0c(0x1fa)]((_0x5cbea4,_0x3594c5)=>_0x5cbea4[_0x42da0c(0x216)]-_0x3594c5['startIndex']),_0x531b26=_0xa16992(_0x2469f8),_0x2e7f0a=_0x12537d[_0x42da0c(0x1ff)](_0x4ce1b6=>M(_0x2469f8,_0x4ce1b6,_0x15f427,_0x531b26)<=_0x261110&&_0x261110<=_0x4ce1b6[_0x42da0c(0x216)]),_0x59c05b=(_0x152428=_0x12537d['find'](_0x46b4c3=>_0x46b4c3['startIndex']>=_0x1a0662-0x1))==null?_0x12537d[_0x12537d['length']-0x1]:_0x152428;return{'startOffset':_0x2e7f0a?M(_0x2469f8,_0x2e7f0a,_0x15f427,_0x531b26):_0x261110,'endOffset':_0x59c05b?Je(_0x59c05b,_0x15f427):_0x1a0662};}function qe(_0x1d9537,_0x505e57){const _0xeb7dae=_0x18c3b6;var _0x3d2898;let _0x207abc=[...(_0x3d2898=_0x1d9537[_0xeb7dae(0x27a)])==null?[]:_0x3d2898][_0xeb7dae(0x1fa)]((_0x4ae4bb,_0x121c75)=>_0x4ae4bb[_0xeb7dae(0x216)]-_0x121c75[_0xeb7dae(0x216)]),_0x55736c=_0xa16992(_0x1d9537);return _0x207abc['find'](_0x3968bd=>{const _0x22cfd9=_0xeb7dae;var _0x5c0a9c;return((_0x5c0a9c=_0x55736c[_0x22cfd9(0x278)](_0x3968bd['startIndex']))==null?0x0:_0x5c0a9c)<=_0x505e57&&_0x505e57<=_0x3968bd[_0x22cfd9(0x216)];});}function M(_0x20f455,_0x41c50a,_0x4d7eeb,_0x4852c9){const _0x364f48=_0x18c3b6;var _0x2a7142;let _0x5e44f5=(_0x2a7142=_0x4852c9==null?void 0x0:_0x4852c9[_0x364f48(0x278)](_0x41c50a[_0x364f48(0x216)]))==null?_0x3becf7(_0x20f455,_0x41c50a):_0x2a7142;return _0x4d7eeb?Math[_0x364f48(0x225)](_0x5e44f5,_0x4d7eeb[_0x364f48(0x274)]):_0x5e44f5;}function Je(_0x31b70a,_0xc62506){const _0x1a8369=_0x18c3b6;let _0x507441=_0x31b70a[_0x1a8369(0x216)]+0x1;return _0xc62506?Math[_0x1a8369(0x24e)](_0x507441,_0xc62506[_0x1a8369(0x26e)]):_0x507441;}function Ye(_0x131740,_0x3ecd8,_0x39848d){const _0x36d504=_0x18c3b6;let _0x1e19c8=Xe(_0x131740,_0x3ecd8),_0x1d6655=Xe(_0x131740,_0x3ecd8===_0x39848d?_0x39848d:Math['max'](_0x3ecd8,_0x39848d-0x1));if(!(!_0x1e19c8&&!_0x1d6655)){if(!_0x1e19c8||!_0x1d6655||_0x1e19c8[_0x36d504(0x22a)]!==_0x1d6655[_0x36d504(0x22a)]||_0x1e19c8[_0x36d504(0x20f)]!==_0x1d6655[_0x36d504(0x20f)])throw new O();return _0x1e19c8;}}function Xe(_0x54aa7b,_0x5982ae){const _0x5563f5=_0x18c3b6;let _0x59b90b=_0x54aa7b[_0x5563f5(0x270)],_0x3392f1=-0x1;for(let _0x2a3542=Math['min'](_0x5982ae,_0x59b90b['length']-0x1);_0x2a3542>=0x0;_0x2a3542--){let _0x42ea7d=_0x59b90b[_0x2a3542];if(_0x42ea7d===_0x345b07[_0x5563f5(0x24a)])return;if(_0x42ea7d===_0x345b07['TABLE_CELL_START']){_0x3392f1=_0x2a3542;break;}}if(_0x3392f1<0x0)return;let _0xb9fc5b=_0x59b90b[_0x5563f5(0x26a)](_0x345b07[_0x5563f5(0x24a)],_0x3392f1+0x1);if(!(_0xb9fc5b<0x0||_0x5982ae<_0x3392f1+0x1||_0x5982ae>_0xb9fc5b-0x1))return{'startOffset':_0x3392f1+0x1,'endOffset':Math['max'](_0x3392f1+0x1,_0xb9fc5b-0x1),'startTokenOffset':_0x3392f1,'endTokenOffset':_0xb9fc5b};}function N(_0x138c75){const _0x4bf637=_0x18c3b6;return _0x2cea6f(_0x138c75)[_0x4bf637(0x26e)]-0x1;}function Ze(_0x1da14a,_0x589793,_0x1d916a,_0xc9f884){const _0x337a66=_0x18c3b6;var _0x192bcf;let _0xe19140=N(_0x589793),_0x36696d=((_0x192bcf=_0x1da14a['paragraphs'])==null?[]:_0x192bcf)[_0x337a66(0x1ff)](_0x54f00b=>_0x54f00b[_0x337a66(0x216)]===_0xe19140+0x1);if(!_0x36696d||_0xc9f884!=null&&_0x36696d[_0x337a66(0x216)]!==_0xc9f884||_0x1d916a!=null&&(_0x1d916a<_0xe19140||_0x1d916a>_0x36696d[_0x337a66(0x216)]+0x1)||_0x1da14a[_0x337a66(0x270)][_0x36696d['startIndex']]!==_0x345b07[_0x337a66(0x259)])return null;let _0x4f6012=_0x3becf7(_0x1da14a,_0x36696d),_0x47209d=_0x1da14a[_0x337a66(0x270)][_0x337a66(0x24b)](_0x4f6012,_0x36696d[_0x337a66(0x216)]);return Array[_0x337a66(0x250)](_0x47209d)[_0x337a66(0x20e)](_0x48fe63=>_0x48fe63===_0x345b07[_0x337a66(0x1e3)])?{'paragraph':_0x36696d,'endTokenOffset':_0xe19140}:null;}function P(_0x3f2433,_0x11a7bc){const _0x387617=_0x18c3b6;var _0x13fa69;let _0x38e636=N(_0x11a7bc),_0x4c42c2=_0x3f2433['dataStream'][_0x38e636+0x1];_0x4c42c2!==_0x345b07[_0x387617(0x23a)]&&_0x4c42c2!==void 0x0||F(_0x3f2433,_0x38e636+0x1,_0x345b07[_0x387617(0x259)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0xa4ecb(new Set((_0x13fa69=_0x3f2433[_0x387617(0x27a)])==null?void 0x0:_0x13fa69['map'](_0x3616de=>_0x3616de[_0x387617(0x220)])))}]});}function F(_0x1a5ac2,_0x4250a8,_0x347201,_0x27b658={}){const _0x4e2c1a=_0x18c3b6;var _0x386287,_0x362254;if(_0x347201){if(_0x1a5ac2['dataStream']=''+_0x1a5ac2[_0x4e2c1a(0x270)][_0x4e2c1a(0x24b)](0x0,_0x4250a8)+_0x347201+_0x1a5ac2[_0x4e2c1a(0x270)][_0x4e2c1a(0x24b)](_0x4250a8),Qe(_0x1a5ac2,_0x4250a8,_0x347201[_0x4e2c1a(0x227)]),(_0x386287=_0x27b658['paragraphs'])!=null&&_0x386287[_0x4e2c1a(0x227)]){var _0x4e9d86;_0x1a5ac2[_0x4e2c1a(0x27a)]=[...(_0x4e9d86=_0x1a5ac2[_0x4e2c1a(0x27a)])==null?[]:_0x4e9d86,..._0x27b658[_0x4e2c1a(0x27a)][_0x4e2c1a(0x252)](_0x288cee=>({..._0x288cee,'startIndex':_0x288cee['startIndex']+_0x4250a8}))][_0x4e2c1a(0x1fa)]((_0x10db2c,_0x386dde)=>_0x10db2c[_0x4e2c1a(0x216)]-_0x386dde['startIndex']);}if((_0x362254=_0x27b658[_0x4e2c1a(0x21f)])!=null&&_0x362254['length']){var _0x56ecc6;_0x1a5ac2[_0x4e2c1a(0x21f)]=[...(_0x56ecc6=_0x1a5ac2['blockRanges'])==null?[]:_0x56ecc6,..._0x27b658[_0x4e2c1a(0x21f)][_0x4e2c1a(0x252)](_0x45cf9a=>({..._0x45cf9a,'startIndex':_0x45cf9a['startIndex']+_0x4250a8,'endIndex':_0x45cf9a[_0x4e2c1a(0x1f1)]+_0x4250a8}))]['sort']((_0xfb5e38,_0x5c420f)=>_0xfb5e38[_0x4e2c1a(0x216)]-_0x5c420f[_0x4e2c1a(0x216)]);}}}function I(_0x180de5,_0x502995,_0x3c2f9a){const _0x5a580f=_0x18c3b6;let _0x447ca7=_0x3c2f9a-_0x502995;_0x180de5[_0x5a580f(0x270)]=''+_0x180de5[_0x5a580f(0x270)][_0x5a580f(0x24b)](0x0,_0x502995)+_0x180de5['dataStream']['slice'](_0x3c2f9a),$e(_0x180de5,_0x502995,_0x447ca7);}function Qe(_0x5cd851,_0x32615c,_0x26be3c){const _0x4c20d3=_0x18c3b6;_0x5cd851[_0x4c20d3(0x27a)]=L(_0x5cd851[_0x4c20d3(0x27a)],_0x32615c,_0x26be3c),_0x5cd851[_0x4c20d3(0x203)]=L(_0x5cd851[_0x4c20d3(0x203)],_0x32615c,_0x26be3c),_0x5cd851[_0x4c20d3(0x1e7)]=L(_0x5cd851[_0x4c20d3(0x1e7)],_0x32615c,_0x26be3c),_0x5cd851[_0x4c20d3(0x251)]=et(_0x5cd851[_0x4c20d3(0x251)],_0x32615c,_0x26be3c),_0x5cd851[_0x4c20d3(0x1f8)]=tt(_0x5cd851[_0x4c20d3(0x1f8)],_0x32615c,_0x26be3c),_0x5cd851[_0x4c20d3(0x21a)]=z(_0x5cd851[_0x4c20d3(0x21a)],_0x32615c,_0x26be3c),_0x5cd851[_0x4c20d3(0x206)]=z(_0x5cd851[_0x4c20d3(0x206)],_0x32615c,_0x26be3c),_0x5cd851['customDecorations']=z(_0x5cd851[_0x4c20d3(0x25d)],_0x32615c,_0x26be3c),_0x5cd851['blockRanges']=z(_0x5cd851[_0x4c20d3(0x21f)],_0x32615c,_0x26be3c);}function $e(_0x4f94d8,_0x4251d2,_0x5bc103){const _0x3d8073=_0x18c3b6;var _0x2230e4,_0x304300;_0x4f94d8[_0x3d8073(0x27a)]=R(_0x4f94d8[_0x3d8073(0x27a)],_0x4251d2,_0x5bc103),_0x4f94d8[_0x3d8073(0x203)]=R(_0x4f94d8[_0x3d8073(0x203)],_0x4251d2,_0x5bc103),_0x4f94d8[_0x3d8073(0x1e7)]=R(_0x4f94d8[_0x3d8073(0x1e7)],_0x4251d2,_0x5bc103),_0x4f94d8[_0x3d8073(0x251)]=(_0x2230e4=nt((_0x304300=_0x4f94d8['textRuns'])==null?void 0x0:_0x304300[_0x3d8073(0x252)](_0x16ac99=>({..._0x16ac99,'startIndex':_0x16ac99['st'],'endIndex':_0x16ac99['ed']})),_0x4251d2,_0x5bc103))==null?void 0x0:_0x2230e4[_0x3d8073(0x252)](_0x37bdc6=>{let {startIndex:_0x370402,endIndex:_0x2ff1ce,..._0x292423}=_0x37bdc6;return{..._0x292423,'st':_0x370402,'ed':_0x2ff1ce};}),_0x4f94d8[_0x3d8073(0x1f8)]=nt(_0x4f94d8[_0x3d8073(0x1f8)],_0x4251d2,_0x5bc103),_0x4f94d8[_0x3d8073(0x21a)]=B(_0x4f94d8[_0x3d8073(0x21a)],_0x4251d2,_0x5bc103),_0x4f94d8['customRanges']=B(_0x4f94d8[_0x3d8073(0x206)],_0x4251d2,_0x5bc103),_0x4f94d8['customDecorations']=B(_0x4f94d8[_0x3d8073(0x25d)],_0x4251d2,_0x5bc103),_0x4f94d8[_0x3d8073(0x21f)]=B(_0x4f94d8[_0x3d8073(0x21f)],_0x4251d2,_0x5bc103);}function L(_0x48c67d,_0x1f4052,_0x1df629){const _0x514bd2=_0x18c3b6;return _0x48c67d==null?void 0x0:_0x48c67d['map'](_0x35403e=>_0x35403e[_0x514bd2(0x216)]>=_0x1f4052?{..._0x35403e,'startIndex':_0x35403e[_0x514bd2(0x216)]+_0x1df629}:_0x35403e);}function R(_0x3a7267,_0x129b41,_0x3b63d2){const _0x1d12a9=_0x18c3b6;let _0x5e644a=_0x129b41+_0x3b63d2;return _0x3a7267==null?void 0x0:_0x3a7267[_0x1d12a9(0x252)](_0x1a5485=>_0x1a5485['startIndex']>=_0x129b41&&_0x1a5485['startIndex']<_0x5e644a?null:_0x1a5485[_0x1d12a9(0x216)]>=_0x5e644a?{..._0x1a5485,'startIndex':_0x1a5485[_0x1d12a9(0x216)]-_0x3b63d2}:_0x1a5485)[_0x1d12a9(0x205)](_0x2d6123=>_0x2d6123!=null);}function _0x528c(){const _0x3aa68f=['Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','every','endTokenOffset','clear','indentStart','keys','disposeWithMe','docs-code.config','docs-code.command.insert','startIndex','convert-paragraph','indentEnd','codes','columnGroups','prototype','getCurrentUnitOfType','type','docs-code.command.insert-below','blockRanges','paragraphId','textStyle','parse','columns','dispose','max','entries','length','removeCode','metadata','startTokenOffset','docs-code.command.unwrap','replaceOp','string','blockType','isArray','removeOp','delete','reduce','_setResource','30109EcCqcU','bullet','docs-code.command.consume-boundary-delete','deleteLength','_config','constructor','SECTION_BREAK','paragraph','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','body','previousDocumentData','model','setCodeConfig','getOwnPropertyDescriptor','nextMetadata','_resources','handler','insertionMode','1308663IULaiz','getCodeConfig','stringify','UNIVER_DOC','TABLE_CELL_END','slice','compose','direction','min','decorate','from','textRuns','map','syncExecuteCommand','registerPluginResource','1132300gVEhSA','_initResource','asObservable','symbol','PARAGRAPH','unitId','serialize','cursorOffset','customDecorations','6Ryinxi','getParagraphsInRange','_commandService','some','COMMAND','start','registerCommand','set','javascript','onStarting','selectionManager','packageName','indexOf','docs-code.command.cancel-empty-paragraph','1196795UjASeC','right','endOffset','nextDocumentData','dataStream','getBody','insert-new','_change$','startOffset','removeUnit','BLOCK_START','replaceDocRanges','get','insertOp','paragraphs','_docsCodeModel','_injector','6VxpprW','docs-code.mutation.remove-config','CODE','docs-code.command.update','function','_configService','70QvqMMv','274088QVClSt','next','setConfig','complete','push','BLOCK_END','_resourceManagerService','spaceBelow','call','customBlocks','spaceAbove','Document\x20body\x20is\x20required','monospace','docs-code.command.exit','add','paragraphStyle','config','getInstance','documentData','endIndex','toPrimitive','forEach','insert','deserialize','default','range','tables','@univerjs-pro/docs-code','sort','object','773784ZQpJfU','change$','blockId','find','fromEntries','editOp','insertLength','sectionBreaks','1.0.0-alpha.7','filter','customRanges','version','MUTATION','813796ZLSQCH','pluginName','commandService','endsWith'];_0x528c=function(){return _0x3aa68f;};return _0x528c();}function et(_0x1e365e,_0x20d494,_0x4beac5){const _0x2eec7a=_0x18c3b6;return _0x1e365e==null?void 0x0:_0x1e365e[_0x2eec7a(0x252)](_0x5bea8f=>_0x5bea8f['st']>=_0x20d494?{..._0x5bea8f,'st':_0x5bea8f['st']+_0x4beac5,'ed':_0x5bea8f['ed']+_0x4beac5}:_0x5bea8f['ed']>_0x20d494?{..._0x5bea8f,'ed':_0x5bea8f['ed']+_0x4beac5}:_0x5bea8f);}function z(_0x41bfa3,_0x4ecf3f,_0xad6aba){const _0x5d7165=_0x18c3b6;return _0x41bfa3==null?void 0x0:_0x41bfa3[_0x5d7165(0x252)](_0x27c234=>_0x4ca3f5(_0x27c234,_0x4ecf3f,_0xad6aba));}function tt(_0x4d2b6c,_0x4db017,_0x29729a){const _0x51e3d6=_0x18c3b6;return _0x4d2b6c==null?void 0x0:_0x4d2b6c[_0x51e3d6(0x252)](_0x1f5e40=>_0x4bede0(_0x1f5e40,_0x4db017,_0x29729a));}function B(_0x16b5e5,_0x1e3771,_0x472e58){const _0x2dedbd=_0x18c3b6;return _0x16b5e5==null?void 0x0:_0x16b5e5[_0x2dedbd(0x252)](_0x47cb16=>_0x160344(_0x47cb16,_0x1e3771,_0x472e58))['filter'](_0x50fcd7=>_0x50fcd7!=null);}function nt(_0x12535f,_0x56049e,_0x411961){const _0x14728d=_0x18c3b6;return _0x12535f==null?void 0x0:_0x12535f[_0x14728d(0x252)](_0x578a97=>_0x235aba(_0x578a97,_0x56049e,_0x411961))[_0x14728d(0x205)](_0xb5165e=>_0xb5165e!=null);}const rt={'id':_0x18c3b6(0x21e),'type':_0x3be55c['COMMAND'],'handler':_0x463548=>{const _0x296ad5=_0x18c3b6;var _0x1a71f4;if(_0x2c52d7(K(_0x463548)))return!0x1;let _0x5cf037=_0x2ee982(_0x463548);if(_0x5cf037)return _0x463548[_0x296ad5(0x278)](_0x4d0578)[_0x296ad5(0x253)](V['id'],{'startOffset':_0x5cf037[_0x296ad5(0x274)],'endOffset':_0x5cf037[_0x296ad5(0x26e)],'insertionMode':_0x296ad5(0x272),'unitId':_0x5cf037[_0x296ad5(0x25a)]});let _0x536d98=ut(_0x463548);if(!_0x536d98)return!0x1;let _0x59dfd5=(_0x1a71f4=_0x463548[_0x296ad5(0x278)](_0x346a74)['getCurrentUnitOfType'](_0xad7320[_0x296ad5(0x249)]))==null?void 0x0:_0x1a71f4[_0x296ad5(0x271)](),_0x4b0cb8=_0x59dfd5?_0x291143(_0x59dfd5,_0x536d98):_0x536d98['startIndex']+0x1;return _0x463548['get'](_0x4d0578)[_0x296ad5(0x253)](V['id'],{'startOffset':_0x4b0cb8,'endOffset':_0x4b0cb8});}},it={'id':_0x18c3b6(0x236),'type':_0x3be55c[_0x18c3b6(0x262)],'handler':()=>!0x0},V={'id':_0x18c3b6(0x215),'type':_0x3be55c['COMMAND'],'handler':(_0x21b9de,_0x3be057)=>{const _0x976110=_0x18c3b6;var _0x1d93fd;let _0x4d934d=G(_0x21b9de,_0x3be057==null?void 0x0:_0x3be057[_0x976110(0x25a)]);if(!_0x4d934d)return!0x1;let _0x2e7b4b=K(_0x21b9de);if(_0x2c52d7(_0x2e7b4b))return!0x1;let _0x155f60=_0x4d934d['model'][_0x976110(0x25b)](_0x4d934d[_0x976110(0x25a)]),_0x324c73=st(_0x3be057,_0x2e7b4b),_0x4ffe75=ct(_0x4d934d[_0x976110(0x23e)],_0x324c73);if(_0x4ffe75){if(_0x4ffe75[_0x976110(0x22e)]!==_0x235429[_0x976110(0x1d9)])return!0x1;let _0x115dd1=ke({'blockId':_0x4ffe75[_0x976110(0x1fe)],'documentData':_0x4d934d[_0x976110(0x23e)],'metadata':_0x155f60});if(!_0x115dd1)return!0x1;let _0x50f358=Y(_0x4d934d[_0x976110(0x20b)],_0x4d934d['selectionManager'],_0x4d934d[_0x976110(0x25a)],_0x4d934d[_0x976110(0x23e)],_0x115dd1['nextDocumentData'],V['id'],_0x115dd1[_0x976110(0x25c)]);return _0x50f358&&_0x115dd1[_0x976110(0x242)]&&_0x4d934d[_0x976110(0x23f)][_0x976110(0x1f5)](_0x4d934d[_0x976110(0x25a)],_0x115dd1[_0x976110(0x242)]),_0x50f358;}let _0x1c23af=(_0x1d93fd=_0x3be057==null?void 0x0:_0x3be057['blockId'])==null?_0x33805c(0x6):_0x1d93fd,_0x5885c6;try{_0x5885c6=we({'blockId':_0x1c23af,'config':_0x3be057==null?void 0x0:_0x3be057[_0x976110(0x1ee)],'documentData':_0x4d934d['previousDocumentData'],'endOffset':_0x324c73==null?void 0x0:_0x324c73[_0x976110(0x26e)],'insertionMode':_0x3be057==null?void 0x0:_0x3be057[_0x976110(0x245)],'metadata':_0x155f60,'startOffset':_0x324c73==null?void 0x0:_0x324c73['startOffset']});}catch(_0x2ffdc9){if(_0x2ffdc9 instanceof O)return!0x1;throw _0x2ffdc9;}let _0x42c4e0=Y(_0x4d934d[_0x976110(0x20b)],_0x4d934d[_0x976110(0x268)],_0x4d934d[_0x976110(0x25a)],_0x4d934d[_0x976110(0x23e)],_0x5885c6[_0x976110(0x26f)],V['id'],_0x5885c6[_0x976110(0x25c)]);return _0x42c4e0&&_0x5885c6[_0x976110(0x242)]&&_0x4d934d['model'][_0x976110(0x1f5)](_0x4d934d[_0x976110(0x25a)],_0x5885c6[_0x976110(0x242)]),_0x42c4e0;}},at={'id':_0x18c3b6(0x1da),'type':_0x3be55c[_0x18c3b6(0x262)],'handler':(_0x165111,_0x3f6b5c)=>{const _0x7562ec=_0x18c3b6;if(!_0x3f6b5c)return!0x1;let _0x4fea0f=G(_0x165111,_0x3f6b5c['unitId']);if(!_0x4fea0f)return!0x1;let _0x548c16=Oe({'blockId':_0x3f6b5c[_0x7562ec(0x1fe)],'config':_0x3f6b5c[_0x7562ec(0x1ee)],'documentData':_0x4fea0f['previousDocumentData'],'metadata':_0x4fea0f[_0x7562ec(0x23f)][_0x7562ec(0x25b)](_0x4fea0f[_0x7562ec(0x25a)])});return _0x548c16[_0x7562ec(0x242)]&&_0x4fea0f[_0x7562ec(0x23f)]['deserialize'](_0x4fea0f[_0x7562ec(0x25a)],_0x548c16[_0x7562ec(0x242)]),!0x0;}},ot={'id':_0x18c3b6(0x1eb),'type':_0x3be55c[_0x18c3b6(0x262)],'handler':(_0x30d8a7,_0x14542a)=>H[_0x18c3b6(0x244)](_0x30d8a7,_0x14542a)},H={'id':_0x18c3b6(0x22b),'type':_0x3be55c[_0x18c3b6(0x262)],'handler':(_0x2c6f56,_0x317d52)=>{const _0x569717=_0x18c3b6;if(!_0x317d52)return!0x1;let _0xf31c69=G(_0x2c6f56,_0x317d52==null?void 0x0:_0x317d52[_0x569717(0x25a)]);if(!_0xf31c69)return!0x1;let _0x2ca888=ke({'blockId':_0x317d52['blockId'],'documentData':_0xf31c69[_0x569717(0x23e)],'metadata':_0xf31c69[_0x569717(0x23f)]['serialize'](_0xf31c69[_0x569717(0x25a)])});if(!_0x2ca888)return!0x1;let _0x13ac1b=Y(_0xf31c69['commandService'],_0xf31c69[_0x569717(0x268)],_0xf31c69[_0x569717(0x25a)],_0xf31c69[_0x569717(0x23e)],_0x2ca888[_0x569717(0x26f)],H['id'],_0x2ca888[_0x569717(0x25c)]);return _0x13ac1b&&_0x2ca888['nextMetadata']&&_0xf31c69[_0x569717(0x23f)]['deserialize'](_0xf31c69[_0x569717(0x25a)],_0x2ca888[_0x569717(0x242)]),_0x13ac1b;}},U={'id':'docs-code.command.remove','type':_0x3be55c['COMMAND'],'handler':(_0x253ee3,_0x453a21)=>{const _0x2efab7=_0x18c3b6;if(!_0x453a21)return!0x1;let _0x2d9ea9=G(_0x253ee3,_0x453a21==null?void 0x0:_0x453a21['unitId']);if(!_0x2d9ea9)return!0x1;let _0x2f57f6=Ae({'blockId':_0x453a21[_0x2efab7(0x1fe)],'documentData':_0x2d9ea9[_0x2efab7(0x23e)],'metadata':_0x2d9ea9[_0x2efab7(0x23f)][_0x2efab7(0x25b)](_0x2d9ea9[_0x2efab7(0x25a)])});if(!_0x2f57f6)return!0x1;let _0x139b6f=Y(_0x2d9ea9[_0x2efab7(0x20b)],_0x2d9ea9[_0x2efab7(0x268)],_0x2d9ea9[_0x2efab7(0x25a)],_0x2d9ea9[_0x2efab7(0x23e)],_0x2f57f6[_0x2efab7(0x26f)],U['id'],_0x2f57f6[_0x2efab7(0x25c)]);return _0x139b6f&&_0x2f57f6[_0x2efab7(0x242)]&&_0x2d9ea9['model'][_0x2efab7(0x1f5)](_0x2d9ea9['unitId'],_0x2f57f6[_0x2efab7(0x242)]),_0x139b6f;}},W={'id':_0x18c3b6(0x26b),'type':_0x3be55c[_0x18c3b6(0x262)],'handler':(_0x2dd9a6,_0x33b123)=>{const _0x4ba0ae=_0x18c3b6;var _0x1ebf33,_0x48a624;let _0x4ad535=G(_0x2dd9a6,_0x33b123==null?void 0x0:_0x33b123[_0x4ba0ae(0x25a)]);if(!_0x4ad535)return!0x1;let _0x29c992=(_0x1ebf33=_0x33b123==null?void 0x0:_0x33b123[_0x4ba0ae(0x25c)])==null?(_0x48a624=K(_0x2dd9a6))==null?void 0x0:_0x48a624[_0x4ba0ae(0x274)]:_0x1ebf33;if(_0x29c992==null)return!0x1;let _0x2602d9=je({'cursorOffset':_0x29c992,'documentData':_0x4ad535[_0x4ba0ae(0x23e)],'paragraphStartIndex':_0x33b123==null?void 0x0:_0x33b123['paragraphStartIndex']});return _0x2602d9?Y(_0x4ad535[_0x4ba0ae(0x20b)],_0x4ad535[_0x4ba0ae(0x268)],_0x4ad535[_0x4ba0ae(0x25a)],_0x4ad535[_0x4ba0ae(0x23e)],_0x2602d9[_0x4ba0ae(0x26f)],W['id'],_0x2602d9[_0x4ba0ae(0x25c)]):!0x1;}};function G(_0x403494,_0x1761ec){const _0x42857c=_0x18c3b6;let _0x173d30=_0x403494['get'](_0x346a74),_0x218c26=_0x1761ec?_0x173d30['getUnit'](_0x1761ec,_0xad7320[_0x42857c(0x249)]):_0x173d30[_0x42857c(0x21c)](_0xad7320[_0x42857c(0x249)]);return _0x218c26?{'commandService':_0x403494[_0x42857c(0x278)](_0x4d0578),'model':_0x403494[_0x42857c(0x278)](D),'previousDocumentData':_0x218c26['getSnapshot'](),'selectionManager':_0x403494[_0x42857c(0x278)](_0x462bf4),'unitId':_0x218c26['getUnitId']()}:null;}function K(_0x3286a8){const _0xa39d25=_0x18c3b6;var _0x3513da;return(_0x3513da=_0x3286a8[_0xa39d25(0x278)](_0x462bf4)['getTextRanges']())==null?void 0x0:_0x3513da[0x0];}function st(_0x5c8ead,_0x58c76b){const _0x475d87=_0x18c3b6;var _0x39e356,_0x50ef52;let _0x5603c7=(_0x39e356=_0x5c8ead==null?void 0x0:_0x5c8ead[_0x475d87(0x274)])==null?_0x58c76b==null?void 0x0:_0x58c76b['startOffset']:_0x39e356,_0x500ab4=(_0x50ef52=_0x5c8ead==null?void 0x0:_0x5c8ead[_0x475d87(0x26e)])==null?_0x58c76b==null?void 0x0:_0x58c76b[_0x475d87(0x26e)]:_0x50ef52;if(!(_0x5603c7==null||_0x500ab4==null))return{'endOffset':Math[_0x475d87(0x225)](_0x5603c7,_0x500ab4),'startOffset':Math[_0x475d87(0x24e)](_0x5603c7,_0x500ab4)};}function ct(_0x324dda,_0x45ee5c){const _0x5c5706=_0x18c3b6;var _0x5b65cb;if(!_0x45ee5c)return;let _0x108432=lt(_0x45ee5c);return(_0x5b65cb=_0x324dda[_0x5c5706(0x23d)])==null||(_0x5b65cb=_0x5b65cb[_0x5c5706(0x21f)])==null?void 0x0:_0x5b65cb[_0x5c5706(0x1ff)](_0x4af411=>{const _0x4b9c17=_0x5c5706;let _0x9e6cd8=_0x2cea6f(_0x4af411);return _0x45ee5c[_0x4b9c17(0x274)]===_0x45ee5c[_0x4b9c17(0x26e)]?_0x4077aa(_0x9e6cd8,_0x108432):_0x52034b(_0x9e6cd8,_0x108432);});}function lt(_0x31069e){const _0x166e13=_0x18c3b6;return _0x31069e[_0x166e13(0x274)]===_0x31069e[_0x166e13(0x26e)]?_0x31069e['startOffset']:_0x31069e[_0x166e13(0x274)]+0x1;}function ut(_0x1ccf8d){const _0x316562=_0x18c3b6;var _0x4e42c5,_0x27be52,_0x4707d4;let _0x259eba=K(_0x1ccf8d);if(!_0x259eba)return null;let _0x186bcf=_0x1ccf8d[_0x316562(0x278)](_0x346a74)[_0x316562(0x21c)](_0xad7320[_0x316562(0x249)]),_0x23d14b=_0x186bcf==null?void 0x0:_0x186bcf[_0x316562(0x271)]();return _0x23d14b?(_0x4e42c5=_0x2d03d5[_0x316562(0x1f7)][_0x316562(0x25f)](_0x259eba,(_0x27be52=_0x23d14b[_0x316562(0x27a)])==null?[]:_0x27be52,(_0x4707d4=_0x23d14b[_0x316562(0x270)])==null?'':_0x4707d4)[0x0])==null?null:_0x4e42c5:null;}function dt(_0x1c26fc,_0x3f1248){const _0x25bf4e=_0x18c3b6;let _0x8af9dc=_0x1c26fc[_0x25bf4e(0x23d)],_0x1a0338=_0x3f1248['body'],_0x248e07=_0x1eab78(_0x8af9dc,_0x1a0338);return[_0x248e07&&_0x1a0338?ft(_0x1a0338,_0x248e07):null,_0x248e07?null:pt(_0x8af9dc,_0x1a0338)][_0x25bf4e(0x205)](Boolean)[_0x25bf4e(0x232)]((_0x2f488a,_0x524345)=>_0x87d7fa['compose'](_0x2f488a,_0x524345),null);}function ft(_0x334d3b,_0x373ffe){const _0x3ccb02=_0x18c3b6;let _0x3ed44d=new _0x4e63ee();return _0x3ed44d['retain'](_0x373ffe[_0x3ccb02(0x263)]),_0x373ffe[_0x3ccb02(0x202)]>0x0&&_0x3ed44d[_0x3ccb02(0x1f4)](_0x373ffe[_0x3ccb02(0x202)],_0x189863(_0x334d3b,_0x373ffe['start'],_0x373ffe[_0x3ccb02(0x263)]+_0x373ffe[_0x3ccb02(0x202)],!0x1)),_0x373ffe[_0x3ccb02(0x237)]>0x0&&_0x3ed44d[_0x3ccb02(0x231)](_0x373ffe['deleteLength']),_0x87d7fa['getInstance']()[_0x3ccb02(0x201)](_0x3ed44d[_0x3ccb02(0x25b)](),[_0x3ccb02(0x23d)]);}function pt(_0x33e984,_0x276945){const _0xf0c456=_0x18c3b6;let _0x5904db=[],_0x1239f5=_0x33e984?ht(_0x33e984):void 0x0,_0x37a8dd=_0x276945?ht(_0x276945):void 0x0;for(let _0x48d525 of mt)q(_0x87d7fa[_0xf0c456(0x1ef)](),['body',_0x48d525],_0x1239f5==null?void 0x0:_0x1239f5[_0x48d525],_0x37a8dd==null?void 0x0:_0x37a8dd[_0x48d525],_0x5904db);return _0x5904db[_0xf0c456(0x232)]((_0x2be0dd,_0x33ee10)=>_0x87d7fa[_0xf0c456(0x24c)](_0x2be0dd,_0x33ee10),null);}const mt=['paragraphs',_0x18c3b6(0x203),_0x18c3b6(0x1f8),_0x18c3b6(0x21a),_0x18c3b6(0x21f),_0x18c3b6(0x1e7),_0x18c3b6(0x206),'customDecorations',_0x18c3b6(0x251)];function ht(_0x534cce){return _0x534cce;}function q(_0x49e03e,_0x35fbee,_0x1048cd,_0x496f95,_0x3371f6){const _0x325a45=_0x18c3b6;if(!J(_0x1048cd,_0x496f95)){if(_0x1048cd==null){_0x3371f6['push'](_0x49e03e[_0x325a45(0x279)](_0x35fbee,_0x496f95));return;}if(_0x496f95==null){_0x3371f6['push'](_0x49e03e[_0x325a45(0x230)](_0x35fbee,_0x1048cd));return;}if(Array[_0x325a45(0x22f)](_0x1048cd)&&Array[_0x325a45(0x22f)](_0x496f95)){gt(_0x49e03e,_0x35fbee,_0x1048cd,_0x496f95,_0x3371f6);return;}if(_t(_0x1048cd)&&_t(_0x496f95)){new Set([...Object[_0x325a45(0x212)](_0x1048cd),...Object['keys'](_0x496f95)])[_0x325a45(0x1f3)](_0x3c5bc6=>{q(_0x49e03e,[..._0x35fbee,_0x3c5bc6],_0x1048cd[_0x3c5bc6],_0x496f95[_0x3c5bc6],_0x3371f6);});return;}_0x3371f6['push'](_0x49e03e[_0x325a45(0x22c)](_0x35fbee,_0x1048cd,_0x496f95));}}function gt(_0x16f62f,_0xdedf46,_0x32473d,_0x2b698a,_0x30f928){const _0x383383=_0x18c3b6;if(_0x32473d['length']===_0x2b698a[_0x383383(0x227)]){_0x32473d[_0x383383(0x1f3)]((_0x580981,_0x35fd63)=>q(_0x16f62f,[..._0xdedf46,_0x35fd63],_0x580981,_0x2b698a[_0x35fd63],_0x30f928));return;}let _0x36edd0=0x0;for(;_0x36edd0<_0x32473d[_0x383383(0x227)]&&_0x36edd0<_0x2b698a['length']&&J(_0x32473d[_0x36edd0],_0x2b698a[_0x36edd0]);)_0x36edd0++;let _0x2dbcbf=_0x32473d[_0x383383(0x227)]-0x1,_0x4f2317=_0x2b698a[_0x383383(0x227)]-0x1;for(;_0x2dbcbf>=_0x36edd0&&_0x4f2317>=_0x36edd0&&J(_0x32473d[_0x2dbcbf],_0x2b698a[_0x4f2317]);)_0x2dbcbf--,_0x4f2317--;for(let _0x2ed9a1=_0x2dbcbf;_0x2ed9a1>=_0x36edd0;_0x2ed9a1--)_0x30f928[_0x383383(0x1e2)](_0x16f62f[_0x383383(0x230)]([..._0xdedf46,_0x2ed9a1],_0x32473d[_0x2ed9a1]));for(let _0x507cda=_0x36edd0;_0x507cda<=_0x4f2317;_0x507cda++)_0x30f928[_0x383383(0x1e2)](_0x16f62f['insertOp']([..._0xdedf46,_0x507cda],_0x2b698a[_0x507cda]));}function _t(_0x2e28d8){const _0x45a813=_0x18c3b6;return typeof _0x2e28d8=='object'&&!!_0x2e28d8&&!Array[_0x45a813(0x22f)](_0x2e28d8);}function J(_0x4e9388,_0x4dc464){return JSON['stringify'](_0x4e9388)===JSON['stringify'](_0x4dc464);}function Y(_0x2550b3,_0xe8dba8,_0x52a122,_0x3da49a,_0x36640e,_0x3f5c91,_0x11af8b){const _0x3f47b3=_0x18c3b6;let _0x31c1a7=dt(_0x3da49a,_0x36640e);return _0x31c1a7?!!_0x2550b3['syncExecuteCommand'](_0x113fa7['id'],{'unitId':_0x52a122,'actions':_0x31c1a7,'textRanges':[{'startOffset':_0x11af8b,'endOffset':_0x11af8b,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x3f5c91}):(_0xe8dba8[_0x3f47b3(0x277)]([{'startOffset':_0x11af8b,'endOffset':_0x11af8b}],{'unitId':_0x52a122,'subUnitId':_0x52a122},!0x1),!0x0);}const X='DOC_CODE_PLUGIN';var vt=_0x18c3b6(0x1f9),yt=_0x18c3b6(0x204);const bt={};function Z(_0x88b39a,_0x3e8afb){return function(_0x42b07a,_0x1b757d){_0x3e8afb(_0x42b07a,_0x1b757d,_0x88b39a);};}function xt(_0xed8106,_0x3746af,_0x3ef6bd,_0x59de1a){const _0x25eb94=_0x18c3b6;var _0x3f32e8=arguments[_0x25eb94(0x227)],_0x238246=_0x3f32e8<0x3?_0x3746af:_0x59de1a===null?_0x59de1a=Object[_0x25eb94(0x241)](_0x3746af,_0x3ef6bd):_0x59de1a,_0x21fc2a;if(typeof Reflect=='object'&&typeof Reflect[_0x25eb94(0x24f)]==_0x25eb94(0x1db))_0x238246=Reflect[_0x25eb94(0x24f)](_0xed8106,_0x3746af,_0x3ef6bd,_0x59de1a);else{for(var _0x4913ea=_0xed8106['length']-0x1;_0x4913ea>=0x0;_0x4913ea--)(_0x21fc2a=_0xed8106[_0x4913ea])&&(_0x238246=(_0x3f32e8<0x3?_0x21fc2a(_0x238246):_0x3f32e8>0x3?_0x21fc2a(_0x3746af,_0x3ef6bd,_0x238246):_0x21fc2a(_0x3746af,_0x3ef6bd))||_0x238246);}return _0x3f32e8>0x3&&_0x238246&&Object['defineProperty'](_0x3746af,_0x3ef6bd,_0x238246),_0x238246;}let Q=class extends _0x4948fc{constructor(_0x40b799,_0x99b83b){const _0xfbd9ab=_0x18c3b6;super(),this[_0xfbd9ab(0x1e4)]=_0x40b799,this[_0xfbd9ab(0x27b)]=_0x99b83b,this[_0xfbd9ab(0x256)]();}[_0x18c3b6(0x256)](){const _0x5b2d4b=_0x18c3b6;this[_0x5b2d4b(0x213)](this[_0x5b2d4b(0x1e4)][_0x5b2d4b(0x254)]({'pluginName':X,'businesses':[_0xad7320[_0x5b2d4b(0x249)]],'toJson':_0x18684a=>JSON[_0x5b2d4b(0x248)](this[_0x5b2d4b(0x27b)]['serialize'](_0x18684a)),'parseJson':_0x3dcdab=>S(JSON[_0x5b2d4b(0x222)](_0x3dcdab)),'onLoad':(_0x2b47b2,_0x396cc0)=>this[_0x5b2d4b(0x27b)][_0x5b2d4b(0x1f5)](_0x2b47b2,_0x396cc0),'onUnLoad':_0x37846c=>this[_0x5b2d4b(0x27b)][_0x5b2d4b(0x275)](_0x37846c)}));}};Q=xt([Z(0x0,_0x1714ed),Z(0x1,_0x4f21b2(D))],Q);let $=class extends _0x113499{constructor(_0x1bfa5b=bt,_0x75ae79,_0x4e76b1,_0x3542fa){const _0x1c4440=_0x18c3b6;super(),this['_config']=_0x1bfa5b,this[_0x1c4440(0x27c)]=_0x75ae79,this['_commandService']=_0x4e76b1,this[_0x1c4440(0x1dc)]=_0x3542fa;let {..._0x2c7601}=_0x562bff({},bt,this[_0x1c4440(0x238)]);this['_configService'][_0x1c4440(0x1e0)](_0x1c4440(0x214),_0x2c7601);}[_0x18c3b6(0x267)](){const _0x31a710=_0x18c3b6;this[_0x31a710(0x27c)][_0x31a710(0x1ec)]([D]),this[_0x31a710(0x27c)][_0x31a710(0x1ec)]([Q]),this[_0x31a710(0x27c)][_0x31a710(0x278)](D),this['_injector'][_0x31a710(0x278)](Q),[V,rt,at,H,U,ot,W,it,xe,Se][_0x31a710(0x1f3)](_0x443ea7=>this[_0x31a710(0x213)](this[_0x31a710(0x260)][_0x31a710(0x264)](_0x443ea7)));}};E($,_0x18c3b6(0x20a),X),E($,_0x18c3b6(0x269),vt),E($,_0x18c3b6(0x207),yt),E($,_0x18c3b6(0x21d),_0xad7320[_0x18c3b6(0x249)]),$=xt([_0x276851(_0x3d3e22,_0x4cbbf9),Z(0x1,_0x4f21b2(_0x28ac44)),Z(0x2,_0x4d0578),Z(0x3,_0x293d21)],$);export{X as DOCS_CODE_PLUGIN,W as DocsCodeCancelEmptyParagraphCommand,it as DocsCodeConsumeBoundaryDeleteCommand,rt as DocsCodeInsertBelowCommand,V as DocsCodeInsertCommand,D as DocsCodeModel,U as DocsCodeRemoveCommand,H as DocsCodeUnwrapCommand,at as DocsCodeUpdateCommand,Se as RemoveDocsCodeConfigMutation,xe as SetDocsCodeConfigMutation,$ as UniverDocsCodePlugin,je as buildCancelEmptyCodeParagraphActions,Pe as isCodeBoundaryDelete,x as normalizeDocsCodeConfig,S as normalizeDocsCodeMetadataResource};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IMutation } from '@univerjs/core';
|
|
2
|
+
import type { IDocsCodeConfig } from '../common/type';
|
|
3
|
+
export interface ISetDocsCodeConfigMutationParams {
|
|
4
|
+
unitId: string;
|
|
5
|
+
blockId: string;
|
|
6
|
+
config: IDocsCodeConfig;
|
|
7
|
+
}
|
|
8
|
+
export interface IRemoveDocsCodeConfigMutationParams {
|
|
9
|
+
unitId: string;
|
|
10
|
+
blockId: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const SetDocsCodeConfigMutation: IMutation<ISetDocsCodeConfigMutationParams>;
|
|
13
|
+
export declare const RemoveDocsCodeConfigMutation: IMutation<IRemoveDocsCodeConfigMutationParams>;
|