@univerjs-pro/docs-code 1.0.1 → 1.0.3
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/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 _0x3ab0de=_0x8b82;(function(_0x552d13,_0xc65cac){const _0x53a41b=_0x8b82,_0x39a2ac=_0x552d13();while(!![]){try{const _0x49c374=-parseInt(_0x53a41b(0x1ba))/0x1+parseInt(_0x53a41b(0x1b3))/0x2*(-parseInt(_0x53a41b(0x1e8))/0x3)+-parseInt(_0x53a41b(0x1e2))/0x4*(parseInt(_0x53a41b(0x20d))/0x5)+-parseInt(_0x53a41b(0x1e6))/0x6+-parseInt(_0x53a41b(0x238))/0x7+-parseInt(_0x53a41b(0x224))/0x8+parseInt(_0x53a41b(0x1f1))/0x9;if(_0x49c374===_0xc65cac)break;else _0x39a2ac['push'](_0x39a2ac['shift']());}catch(_0x578f4c){_0x39a2ac['push'](_0x39a2ac['shift']());}}}(_0x12f8,0x35492));import{BooleanNumber as _0x1b778a,BuildTextUtils as _0x58acab,CommandType as _0x41a6f1,DataStreamTreeTokenType as _0x1e79a7,DependentOn as _0x3dbf34,Disposable as _0x562207,DocumentBlockRangeType as _0x435faa,ICommandService as _0x15ccf6,IConfigService as _0x1a34db,IResourceManagerService as _0x22a43b,IUniverInstanceService as _0x964d3a,Inject as _0x57b8aa,Injector as _0x584fc0,JSONX as _0x5e3e53,Plugin as _0x5733e8,TextX as _0x443f5a,UniverInstanceType as _0x48efbf,containsInteriorInsertionOffset as _0x300592,containsStreamIndex as _0x114c5d,createParagraphId as _0x403b8e,generateRandomId as _0x2991d6,getBlockRangeInterval as _0x31f500,getBodySliceForTextXAction as _0x2b04e8,getParagraphContentStartOffset as _0x5d088e,getParagraphContentStartOffsets as _0x1b2f31,getParagraphFollowingBlockOffset as _0x1831c1,getSingleDataStreamChange as _0x2f99b7,intersectsOperationalIntervals as _0x1e2ab3,merge as _0x18c64b,shiftExclusiveRangeOnDelete as _0x2a6859,shiftExclusiveRangeOnInsert as _0x126e80,shiftInclusiveRangeOnDelete as _0x168a73,shiftInclusiveRangeOnInsert as _0x905e98}from'@univerjs/core';import{Subject as _0x579692}from'rxjs';import{DocSelectionManagerService as _0x47ac4f,RichTextEditingMutation as _0x388771,UniverDocsPlugin as _0x32f376,getContentInsertRange as _0x3760de,isHeaderFooterSelection as _0x21b5bf}from'@univerjs/docs';import{UniverLicensePlugin as _0x3b72f5}from'@univerjs-pro/license';const Se={'language':_0x3ab0de(0x201),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x519f47){return{...Se,..._0x519f47};}function y(_0x1a0803){const _0x4a9701=_0x3ab0de;let _0x47ae62=(_0x1a0803==null?void 0x0:_0x1a0803[_0x4a9701(0x220)])??{};return{'codes':Object[_0x4a9701(0x1eb)](Object['entries'](_0x47ae62)['map'](([_0x2169d6,_0x148e23])=>[_0x2169d6,v(_0x148e23)]))};}function b(_0x4a57aa,_0x1948d7,_0x4484f2){const _0x326ad8=_0x3ab0de;let _0x16580c=y(_0x4a57aa);return _0x16580c[_0x326ad8(0x220)][_0x1948d7]=v({..._0x16580c[_0x326ad8(0x220)][_0x1948d7],..._0x4484f2}),_0x16580c;}function x(_0x15182d,_0x504b31){const _0x5b5631=_0x3ab0de;let _0x33c5e8=y(_0x15182d);return delete _0x33c5e8[_0x5b5631(0x220)][_0x504b31],_0x33c5e8;}function S(_0x1462e6){'@babel/helpers - typeof';const _0x3db065=_0x3ab0de;return S=typeof Symbol==_0x3db065(0x210)&&typeof Symbol['iterator']==_0x3db065(0x236)?function(_0xe57005){return typeof _0xe57005;}:function(_0x2491ef){const _0x12e227=_0x3db065;return _0x2491ef&&typeof Symbol==_0x12e227(0x210)&&_0x2491ef[_0x12e227(0x1ec)]===Symbol&&_0x2491ef!==Symbol[_0x12e227(0x202)]?_0x12e227(0x236):typeof _0x2491ef;},S(_0x1462e6);}function Ce(_0x56072d,_0x2ca0aa){const _0x18074f=_0x3ab0de;if(S(_0x56072d)!=_0x18074f(0x1d9)||!_0x56072d)return _0x56072d;var _0x238268=_0x56072d[Symbol[_0x18074f(0x1ae)]];if(_0x238268!==void 0x0){var _0x3a3255=_0x238268[_0x18074f(0x20c)](_0x56072d,_0x2ca0aa||_0x18074f(0x204));if(S(_0x3a3255)!='object')return _0x3a3255;throw TypeError(_0x18074f(0x1d5));}return(_0x2ca0aa===_0x18074f(0x195)?String:Number)(_0x56072d);}function we(_0x47b1aa){const _0x9196a6=_0x3ab0de;var _0x1b5237=Ce(_0x47b1aa,_0x9196a6(0x195));return S(_0x1b5237)==_0x9196a6(0x236)?_0x1b5237:_0x1b5237+'';}function C(_0x141520,_0x4b5495,_0x324a1e){const _0x5c857c=_0x3ab0de;return(_0x4b5495=we(_0x4b5495))in _0x141520?Object[_0x5c857c(0x1d6)](_0x141520,_0x4b5495,{'value':_0x324a1e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x141520[_0x4b5495]=_0x324a1e,_0x141520;}function _0x8b82(_0x5791ea,_0x45abe5){_0x5791ea=_0x5791ea-0x194;const _0x12f85a=_0x12f8();let _0x8b8270=_0x12f85a[_0x5791ea];return _0x8b8270;}var w=class extends _0x562207{constructor(..._0x3908d2){const _0x352c3d=_0x3ab0de;super(..._0x3908d2),C(this,_0x352c3d(0x1ad),new Map()),C(this,_0x352c3d(0x20e),new _0x579692()),C(this,_0x352c3d(0x1af),this['_change$'][_0x352c3d(0x229)]());}[_0x3ab0de(0x1b0)](_0x21d30c,_0x3767e0){const _0x29c113=_0x3ab0de;return y(this[_0x29c113(0x1ad)][_0x29c113(0x21e)](_0x21d30c))[_0x29c113(0x220)][_0x3767e0];}[_0x3ab0de(0x1b5)](_0x382789,_0x1c8089,_0x455fe3){const _0x215649=_0x3ab0de;this[_0x215649(0x1a5)](_0x382789,_0x1c8089,b(this[_0x215649(0x1ad)][_0x215649(0x21e)](_0x382789),_0x1c8089,_0x455fe3));}['removeCode'](_0x4a8137,_0x5de15a){const _0x4d9213=_0x3ab0de;this['_setResource'](_0x4a8137,_0x5de15a,x(this[_0x4d9213(0x1ad)]['get'](_0x4a8137),_0x5de15a));}[_0x3ab0de(0x1b7)](_0x180b79){const _0x49d4a6=_0x3ab0de;return y(this[_0x49d4a6(0x1ad)][_0x49d4a6(0x21e)](_0x180b79));}[_0x3ab0de(0x1f7)](_0x1f84ad,_0x4d8e5c){const _0x1fc026=_0x3ab0de;this['_resources'][_0x1fc026(0x1f9)](_0x1f84ad,y(_0x4d8e5c)),this['_change$'][_0x1fc026(0x1c1)]({'unitId':_0x1f84ad});}[_0x3ab0de(0x205)](_0x594ce4){const _0x33034e=_0x3ab0de;this[_0x33034e(0x1ad)]['delete'](_0x594ce4),this[_0x33034e(0x20e)][_0x33034e(0x1c1)]({'unitId':_0x594ce4});}[_0x3ab0de(0x1f2)](){const _0x8e3948=_0x3ab0de;super['dispose'](),this['_resources'][_0x8e3948(0x208)](),this[_0x8e3948(0x20e)]['complete']();}[_0x3ab0de(0x1a5)](_0x2bff85,_0xc3040,_0x40b1fd){const _0x77b7ae=_0x3ab0de;this[_0x77b7ae(0x1ad)]['set'](_0x2bff85,_0x40b1fd),this[_0x77b7ae(0x20e)][_0x77b7ae(0x1c1)]({'unitId':_0x2bff85,'blockId':_0xc3040});}};const Te={'id':'docs-code.mutation.set-config','type':_0x41a6f1[_0x3ab0de(0x214)],'handler':(_0x44b3f1,_0x175eca)=>!(_0x175eca!=null&&_0x175eca[_0x3ab0de(0x219)])||!_0x175eca[_0x3ab0de(0x1c9)]?!0x1:(_0x44b3f1['get'](w)[_0x3ab0de(0x1b5)](_0x175eca['unitId'],_0x175eca['blockId'],_0x175eca[_0x3ab0de(0x222)]),!0x0)},T={'id':_0x3ab0de(0x196),'type':_0x41a6f1[_0x3ab0de(0x214)],'handler':(_0x5f4b50,_0x548cdb)=>!(_0x548cdb!=null&&_0x548cdb[_0x3ab0de(0x219)])||!_0x548cdb[_0x3ab0de(0x1c9)]?!0x1:(_0x5f4b50['get'](w)[_0x3ab0de(0x234)](_0x548cdb['unitId'],_0x548cdb[_0x3ab0de(0x1c9)]),!0x0)},Ee=_0x3ab0de(0x21c);var E=class extends Error{constructor(_0x116d2f=_0x3ab0de(0x1db)){super(_0x116d2f);}};function De(_0x254b71){const _0x787661=_0x3ab0de;var _0x4e8519;let _0x4f9727=O(_0x254b71['documentData']),_0x359a1e=A(_0x4f9727),_0x1d9a68=ke(_0x254b71[_0x787661(0x1bf)],_0x254b71[_0x787661(0x1ca)]),_0x1714cc=_0x1d9a68?(_0x4e8519=_0x359a1e['blockRanges'])==null?void 0x0:_0x4e8519[_0x787661(0x1e5)](_0x27d86e=>{const _0x396510=_0x787661;let _0x90f1f8=_0x31f500(_0x27d86e);return _0x90f1f8[_0x396510(0x1bf)]===_0x1d9a68[_0x396510(0x1bf)]&&_0x90f1f8['endOffset']===_0x1d9a68[_0x396510(0x1ca)];}):void 0x0,{startOffset:_0x540690,endOffset:_0x20deb7}=_0x1714cc?_0x1d9a68:We(_0x359a1e,_0x254b71[_0x787661(0x1bf)],_0x254b71[_0x787661(0x1ca)],_0x254b71[_0x787661(0x1d7)]);if(!_0x1714cc&&Ae(_0x359a1e,_0x540690,_0x20deb7))throw new E(_0x787661(0x1fb));let _0x27229d=qe(_0x359a1e,_0x540690,_0x20deb7),_0x5c1502=(_0x1714cc==null?void 0x0:_0x1714cc['blockId'])??_0x254b71[_0x787661(0x1c9)],_0x5a9d01=b(_0x254b71[_0x787661(0x226)],_0x5c1502,{...Se,..._0x254b71[_0x787661(0x222)]});if(_0x1714cc)return _0x1714cc['blockType']=_0x435faa[_0x787661(0x1e7)],Oe(_0x359a1e,_0x540690,_0x20deb7),ze(_0x359a1e,_0x540690,_0x20deb7,_0x27229d),N(_0x359a1e,_0x1714cc),{'nextDocumentData':_0x4f9727,'nextMetadata':_0x5a9d01,'cursorOffset':_0x540690+0x1};if(_0x540690===_0x20deb7){var _0x129603,_0x3aa27e;let _0x485aa2=''+_0x1e79a7[_0x787661(0x1dc)]+_0x1e79a7[_0x787661(0x1c8)]+_0x1e79a7['BLOCK_END'];P(_0x359a1e,_0x540690,_0x485aa2,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x403b8e(new Set((_0x129603=_0x359a1e[_0x787661(0x1a9)])==null?void 0x0:_0x129603[_0x787661(0x1e9)](_0x28da0c=>_0x28da0c[_0x787661(0x199)]))),'paragraphStyle':Re(!0x0,!0x0,_0x27229d)}],'blockRanges':[{'blockId':_0x5c1502,'blockType':_0x435faa[_0x787661(0x1e7)],'startIndex':0x0,'endIndex':_0x485aa2['length']-0x1}]});let _0x444f3c=(_0x3aa27e=_0x359a1e['blockRanges'])==null?void 0x0:_0x3aa27e['find'](_0x15a51b=>_0x15a51b[_0x787661(0x1c9)]===_0x5c1502);return _0x444f3c&&N(_0x359a1e,_0x444f3c),{'nextDocumentData':_0x4f9727,'nextMetadata':_0x5a9d01,'cursorOffset':_0x540690+0x1};}P(_0x359a1e,_0x20deb7,_0x1e79a7[_0x787661(0x1b1)]),P(_0x359a1e,_0x540690,_0x1e79a7['BLOCK_START']),ze(_0x359a1e,_0x540690,_0x20deb7+0x1,_0x27229d);let _0x444610={'blockId':_0x5c1502,'blockType':_0x435faa['CODE'],'startIndex':_0x540690,'endIndex':_0x20deb7+0x1};return _0x359a1e[_0x787661(0x230)]=[..._0x359a1e[_0x787661(0x230)]??[],_0x444610]['sort']((_0x43184f,_0xa78984)=>_0x43184f[_0x787661(0x21f)]-_0xa78984[_0x787661(0x21f)]),N(_0x359a1e,_0x444610),{'nextDocumentData':_0x4f9727,'nextMetadata':_0x5a9d01,'cursorOffset':_0x540690+0x1};}function Oe(_0x5e2a6a,_0x4a70d9,_0x4b963e){const _0x4b8913=_0x3ab0de;(_0x5e2a6a[_0x4b8913(0x1a9)]??[])[_0x4b8913(0x1bb)](_0x165435=>_0x165435['startIndex']>_0x4a70d9&&_0x165435[_0x4b8913(0x21f)]<_0x4b963e)['forEach'](_0x47ec5c=>{const _0xa527c5=_0x4b8913;let _0x9513b3={..._0x47ec5c[_0xa527c5(0x20b)]??{}};delete _0x9513b3[_0xa527c5(0x1b8)],delete _0x9513b3[_0xa527c5(0x206)],_0x47ec5c[_0xa527c5(0x20b)]=_0x9513b3;});}function ke(_0x5342bd,_0x462e87){const _0x3e224f=_0x3ab0de;return _0x5342bd==null||_0x462e87==null||_0x5342bd===_0x462e87?null:{'startOffset':Math[_0x3e224f(0x22f)](_0x5342bd,_0x462e87),'endOffset':Math[_0x3e224f(0x1a1)](_0x5342bd,_0x462e87)};}function Ae(_0x5ad7ff,_0x4d6e86,_0x3dcf81){const _0x3c54f8=_0x3ab0de;return(_0x5ad7ff[_0x3c54f8(0x230)]??[])[_0x3c54f8(0x1ce)](_0x3abbf5=>{let _0x305fa2=_0x31f500(_0x3abbf5);return _0x4d6e86===_0x3dcf81?_0x300592(_0x305fa2,_0x4d6e86):_0x1e2ab3(_0x305fa2,{'startOffset':_0x4d6e86,'endOffset':_0x3dcf81});});}function je(_0x495060){const _0x1bab38=_0x3ab0de;return{'nextDocumentData':O(_0x495060[_0x1bab38(0x1f8)]),'nextMetadata':b(_0x495060[_0x1bab38(0x226)],_0x495060['blockId'],_0x495060[_0x1bab38(0x222)]),'cursorOffset':0x0};}function D(_0x2ba430){const _0x5a5fb5=_0x3ab0de;let _0x51f88b=O(_0x2ba430[_0x5a5fb5(0x1f8)]),_0x3db213=A(_0x51f88b),_0x4ab016=Fe(_0x3db213,_0x2ba430[_0x5a5fb5(0x1c9)]);if(!_0x4ab016)return null;let _0x5cd787=He(_0x3db213,_0x4ab016);return{'nextDocumentData':_0x51f88b,'nextMetadata':x(_0x2ba430[_0x5a5fb5(0x226)],_0x2ba430['blockId']),'cursorOffset':_0x5cd787};}function Me(_0x2c66d3){const _0x4006d3=_0x3ab0de;var _0x133987;let _0x336a9b=O(_0x2c66d3[_0x4006d3(0x1f8)]),_0x5b6303=A(_0x336a9b),_0xb1e519=Fe(_0x5b6303,_0x2c66d3[_0x4006d3(0x1c9)]);if(!_0xb1e519)return null;let _0x517884=_0x31f500(_0xb1e519);return F(_0x5b6303,_0x517884[_0x4006d3(0x1bf)],_0x517884[_0x4006d3(0x1ca)]),_0x5b6303[_0x4006d3(0x230)]=(_0x133987=_0x5b6303[_0x4006d3(0x230)])==null?void 0x0:_0x133987[_0x4006d3(0x1bb)](_0x1d7e4f=>_0x1d7e4f[_0x4006d3(0x1c9)]!==_0x2c66d3[_0x4006d3(0x1c9)]),{'nextDocumentData':_0x336a9b,'nextMetadata':x(_0x2c66d3[_0x4006d3(0x226)],_0x2c66d3[_0x4006d3(0x1c9)]),'cursorOffset':_0xb1e519['startIndex']};}function Ne(_0x26abf8){const _0x5c3b07=_0x3ab0de;let _0x3be9df=O(_0x26abf8['documentData']),_0x314523=A(_0x3be9df),_0x41e83b=Le(_0x314523,_0x26abf8[_0x5c3b07(0x1da)]);return _0x41e83b&&Pe(_0x3be9df,_0x314523,_0x41e83b,_0x26abf8[_0x5c3b07(0x1da)],_0x26abf8[_0x5c3b07(0x1ee)])||null;}function Pe(_0x40a604,_0x58aee4,_0x1cb05b,_0x2db033,_0x35f12b){const _0x53b996=_0x3ab0de;let _0x3c11db=$e(_0x58aee4,_0x1cb05b,_0x2db033,_0x35f12b);if(!_0x3c11db)return null;let _0x24d90d=_0x3c11db[_0x53b996(0x1d3)]-0x1;return F(_0x58aee4,_0x3c11db[_0x53b996(0x19f)][_0x53b996(0x21f)],_0x3c11db[_0x53b996(0x19f)][_0x53b996(0x21f)]+0x1),{'nextDocumentData':_0x40a604,'cursorOffset':_0x24d90d};}function Fe(_0x1a3786,_0x2df8b4){const _0x238952=_0x3ab0de;var _0x5cba74;return _0x1a3786==null||(_0x5cba74=_0x1a3786[_0x238952(0x230)])==null?void 0x0:_0x5cba74['find'](_0x419bd1=>_0x419bd1['blockType']===_0x435faa[_0x238952(0x1e7)]&&_0x419bd1[_0x238952(0x1c9)]===_0x2df8b4);}function Ie(_0x5eeae0){const _0x12ea2b=_0x3ab0de;let _0x1c47ea=_0x5eeae0[_0x12ea2b(0x1f8)][_0x12ea2b(0x1f3)];if(!_0x1c47ea)return!0x1;let _0x52857b=_0x5eeae0[_0x12ea2b(0x1df)]==='left'?_0x5eeae0[_0x12ea2b(0x1da)]-0x1:_0x5eeae0[_0x12ea2b(0x1da)],_0x24a346=_0x5eeae0[_0x12ea2b(0x1df)]===_0x12ea2b(0x1c5)?_0x5eeae0[_0x12ea2b(0x1da)]+0x1:_0x52857b;return(_0x1c47ea[_0x12ea2b(0x230)]??[])['some'](_0xcf3cc5=>_0xcf3cc5[_0x12ea2b(0x197)]===_0x435faa[_0x12ea2b(0x1e7)]?_0x52857b===_0xcf3cc5[_0x12ea2b(0x21f)]||_0x52857b===_0xcf3cc5[_0x12ea2b(0x1f5)]||_0x24a346===_0xcf3cc5[_0x12ea2b(0x21f)]||_0x24a346===_0xcf3cc5[_0x12ea2b(0x1f5)]:!0x1);}function Le(_0x55ae65,_0x2e1f52){const _0x13054a=_0x3ab0de;var _0x43fac6;return(_0x43fac6=_0x55ae65[_0x13054a(0x230)])==null?void 0x0:_0x43fac6[_0x13054a(0x1e5)](_0x5203f5=>{const _0x3ebd61=_0x13054a;let _0x2d5b5e=M(_0x5203f5);return _0x5203f5['blockType']===_0x435faa[_0x3ebd61(0x1e7)]&&_0x5203f5['startIndex']<=_0x2e1f52&&_0x2e1f52<=_0x2d5b5e+0x2;});}function Re(_0x1c6ed8,_0x2ab88d,_0x4fc263=!0x1){const _0x495493=_0x3ab0de;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x1b778a['TRUE'],'keepNext':_0x2ab88d?_0x1b778a['FALSE']:_0x1b778a['TRUE'],'widowControl':_0x1b778a[_0x495493(0x1cb)],..._0x1c6ed8&&_0x4fc263?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x3b356e,_0x5dd872,_0x34f2f7,_0x493e79=!0x1){const _0x56d026=_0x3ab0de;let _0x28325d=(_0x3b356e[_0x56d026(0x1a9)]??[])[_0x56d026(0x1bb)](_0x53ac34=>_0x53ac34['startIndex']>_0x5dd872&&_0x53ac34[_0x56d026(0x21f)]<_0x34f2f7);_0x28325d[_0x56d026(0x237)]((_0x57455f,_0xdaff55)=>{const _0x4bad37=_0x56d026;_0x57455f[_0x4bad37(0x20b)]={..._0x57455f[_0x4bad37(0x20b)]??{},...Re(_0xdaff55===0x0,_0xdaff55===_0x28325d['length']-0x1,_0x493e79)};});}function Be(_0x477491){const _0x29fd5f=_0x3ab0de;var _0x1d1edd,_0x520d50;let _0x572806={..._0x477491??{}};return delete _0x572806[_0x29fd5f(0x239)],delete _0x572806[_0x29fd5f(0x1ed)],delete _0x572806['spaceAbove'],delete _0x572806['spaceBelow'],delete _0x572806[_0x29fd5f(0x1c3)],delete _0x572806[_0x29fd5f(0x1aa)],delete _0x572806['widowControl'],((_0x1d1edd=_0x572806[_0x29fd5f(0x1b2)])==null?void 0x0:_0x1d1edd['ff'])===Ee&&((_0x520d50=_0x572806[_0x29fd5f(0x1b2)])==null?void 0x0:_0x520d50['fs'])===0xc&&delete _0x572806[_0x29fd5f(0x1b2)],_0x572806;}function Ve(_0x49a8f4,_0x5f55dc){const _0x5176ce=_0x3ab0de;let _0x6e5203=M(_0x5f55dc);return(_0x49a8f4[_0x5176ce(0x1a9)]??[])[_0x5176ce(0x1bb)](_0x392d95=>_0x392d95[_0x5176ce(0x21f)]>_0x5f55dc[_0x5176ce(0x21f)]&&_0x392d95[_0x5176ce(0x21f)]<_0x6e5203);}function He(_0x356a9e,_0x78ad56){const _0x33441f=_0x3ab0de;var _0x1c1582;let _0x5a32e9=M(_0x78ad56);return Ve(_0x356a9e,_0x78ad56)[_0x33441f(0x237)](_0x59fdad=>{const _0x1b4202=_0x33441f;_0x59fdad[_0x1b4202(0x20b)]=Be(_0x59fdad['paragraphStyle']);}),F(_0x356a9e,_0x5a32e9,_0x5a32e9+0x1),F(_0x356a9e,_0x78ad56['startIndex'],_0x78ad56[_0x33441f(0x21f)]+0x1),_0x356a9e['blockRanges']=(_0x1c1582=_0x356a9e[_0x33441f(0x230)])==null?void 0x0:_0x1c1582[_0x33441f(0x1bb)](_0xb2ad55=>_0xb2ad55[_0x33441f(0x1c9)]!==_0x78ad56[_0x33441f(0x1c9)]),_0x78ad56[_0x33441f(0x21f)];}function O(_0x495e74){const _0x386da5=_0x3ab0de;return{..._0x495e74,'body':_0x495e74['body']?Ue(_0x495e74['body']):_0x495e74[_0x386da5(0x1f3)]};}function Ue(_0x1ff267){const _0x37dfa0=_0x3ab0de;var _0x32e686,_0x42123c,_0x2463cb,_0x50e9c2,_0xd8c2f3,_0x2334a8,_0x4dafa1,_0x3745d3,_0x4ec152;return{..._0x1ff267,'paragraphs':(_0x32e686=_0x1ff267[_0x37dfa0(0x1a9)])==null?void 0x0:_0x32e686[_0x37dfa0(0x1e9)](_0x2828bb=>({..._0x2828bb,'bullet':k(_0x2828bb[_0x37dfa0(0x19b)]),'paragraphStyle':k(_0x2828bb[_0x37dfa0(0x20b)])})),'sectionBreaks':(_0x42123c=_0x1ff267[_0x37dfa0(0x1c7)])==null?void 0x0:_0x42123c[_0x37dfa0(0x1e9)](_0x1291fe=>({..._0x1291fe})),'textRuns':(_0x2463cb=_0x1ff267[_0x37dfa0(0x1be)])==null?void 0x0:_0x2463cb[_0x37dfa0(0x1e9)](_0x572307=>({..._0x572307})),'tables':(_0x50e9c2=_0x1ff267[_0x37dfa0(0x1bd)])==null?void 0x0:_0x50e9c2['map'](_0x3c9d76=>({..._0x3c9d76})),'columnGroups':(_0xd8c2f3=_0x1ff267[_0x37dfa0(0x209)])==null?void 0x0:_0xd8c2f3[_0x37dfa0(0x1e9)](_0x52ec25=>{const _0x56dedf=_0x37dfa0;var _0x366a8d;return{..._0x52ec25,'columns':(_0x366a8d=_0x52ec25[_0x56dedf(0x1bc)])==null?void 0x0:_0x366a8d[_0x56dedf(0x1e9)](_0xde7cdf=>k(_0xde7cdf))};}),'blockRanges':(_0x2334a8=_0x1ff267[_0x37dfa0(0x230)])==null?void 0x0:_0x2334a8[_0x37dfa0(0x1e9)](_0x19f00a=>({..._0x19f00a})),'customRanges':(_0x4dafa1=_0x1ff267[_0x37dfa0(0x1ab)])==null?void 0x0:_0x4dafa1['map'](_0x5ddfc3=>({..._0x5ddfc3})),'customDecorations':(_0x3745d3=_0x1ff267[_0x37dfa0(0x218)])==null?void 0x0:_0x3745d3['map'](_0x126964=>({..._0x126964})),'customBlocks':(_0x4ec152=_0x1ff267['customBlocks'])==null?void 0x0:_0x4ec152[_0x37dfa0(0x1e9)](_0x43dd67=>({..._0x43dd67}))};}function k(_0x90b5b6){const _0x230d56=_0x3ab0de;return Array['isArray'](_0x90b5b6)?_0x90b5b6['map'](_0x42e117=>k(_0x42e117)):!_0x90b5b6||typeof _0x90b5b6!=_0x230d56(0x1d9)?_0x90b5b6:Object[_0x230d56(0x1eb)](Object[_0x230d56(0x1fa)](_0x90b5b6)['map'](([_0x427f60,_0x2697c5])=>[_0x427f60,k(_0x2697c5)]));}function A(_0x725649){const _0x496824=_0x3ab0de;if(!_0x725649['body'])throw Error(_0x496824(0x1fd));return _0x725649[_0x496824(0x1f3)];}function We(_0x5981e7,_0x504896,_0xc085c1,_0x1ccd89=_0x3ab0de(0x1b6)){const _0x5b1fea=_0x3ab0de;if(_0x504896==null||_0xc085c1==null){let _0x2fd74f=Ke(_0x5981e7);return{'startOffset':_0x2fd74f,'endOffset':_0x2fd74f};}let _0x212e0e=Math[_0x5b1fea(0x22f)](_0x504896,_0xc085c1),_0x274bdb=Math[_0x5b1fea(0x1a1)](_0x504896,_0xc085c1),_0x261029=Ze(_0x5981e7,_0x212e0e,_0x274bdb);return _0x212e0e===_0x274bdb?_0x1ccd89==='insert-new'?{'startOffset':_0x212e0e,'endOffset':_0x274bdb}:Ge(_0x5981e7,_0x212e0e,_0x261029):Je(_0x5981e7,_0x212e0e,_0x274bdb,_0x261029);}function Ge(_0x31fbcf,_0x5421b3,_0x39f5f0){const _0x505b52=_0x3ab0de;let _0x475e48=Ye(_0x31fbcf,_0x5421b3);if(_0x475e48){let _0x2f839d=j(_0x31fbcf,_0x475e48,_0x39f5f0);if(_0x2f839d<_0x475e48[_0x505b52(0x21f)])return{'startOffset':_0x2f839d,'endOffset':_0x39f5f0?Math[_0x505b52(0x22f)](_0x475e48[_0x505b52(0x21f)]+0x1,_0x39f5f0['endOffset']):_0x475e48[_0x505b52(0x21f)]+0x1};}let _0x18acfd=_0x5421b3===0x0&&_0x31fbcf['dataStream'][0x0]===_0x1e79a7[_0x505b52(0x1c8)]?0x1:_0x5421b3;return{'startOffset':_0x18acfd,'endOffset':_0x18acfd};}function Ke(_0x3fb61c){const _0x3a746c=_0x3ab0de;return _0x3fb61c[_0x3a746c(0x217)][_0x3a746c(0x1a3)](_0x1e79a7[_0x3a746c(0x1f0)])?Math[_0x3a746c(0x1a1)](0x0,_0x3fb61c[_0x3a746c(0x217)][_0x3a746c(0x203)]-0x1):_0x3fb61c[_0x3a746c(0x217)][_0x3a746c(0x203)];}function qe(_0x2e90d6,_0x59654b,_0x294372){const _0x5e803c=_0x3ab0de;var _0x1c0d05;let _0x3f3509=Math[_0x5e803c(0x22f)](_0x59654b,_0x294372),_0x4ed357=Math[_0x5e803c(0x1a1)](_0x59654b,_0x294372);return!!((_0x1c0d05=_0x2e90d6[_0x5e803c(0x1bd)])!=null&&_0x1c0d05['some'](_0x30c61a=>_0x3f3509>_0x30c61a[_0x5e803c(0x21f)]&&_0x3f3509<_0x30c61a[_0x5e803c(0x1f5)]||_0x4ed357>_0x30c61a[_0x5e803c(0x21f)]&&_0x4ed357<_0x30c61a[_0x5e803c(0x1f5)]||_0x3f3509<=_0x30c61a['startIndex']&&_0x4ed357>=_0x30c61a[_0x5e803c(0x1f5)]));}function Je(_0x1902e6,_0x102e24,_0x1cc35b,_0x77dc6d){const _0xfedf01=_0x3ab0de;let _0x5dbf65=[..._0x1902e6[_0xfedf01(0x1a9)]??[]][_0xfedf01(0x1cc)]((_0x3e30d0,_0x596cad)=>_0x3e30d0[_0xfedf01(0x21f)]-_0x596cad[_0xfedf01(0x21f)]),_0x4b417e=_0x1b2f31(_0x1902e6),_0x1f0efe=_0x5dbf65['find'](_0xf9cb68=>j(_0x1902e6,_0xf9cb68,_0x77dc6d,_0x4b417e)<=_0x102e24&&_0x102e24<=_0xf9cb68[_0xfedf01(0x21f)]),_0x193a42=_0x5dbf65[_0xfedf01(0x1e5)](_0xa8fb93=>_0xa8fb93[_0xfedf01(0x21f)]>=_0x1cc35b-0x1)??_0x5dbf65[_0x5dbf65[_0xfedf01(0x203)]-0x1];return{'startOffset':_0x1f0efe?j(_0x1902e6,_0x1f0efe,_0x77dc6d,_0x4b417e):_0x102e24,'endOffset':_0x193a42?Xe(_0x193a42,_0x77dc6d):_0x1cc35b};}function Ye(_0x56c184,_0x3975bc){const _0x290390=_0x3ab0de;let _0x25f6a1=[..._0x56c184[_0x290390(0x1a9)]??[]][_0x290390(0x1cc)]((_0x1056e2,_0x5b52de)=>_0x1056e2['startIndex']-_0x5b52de[_0x290390(0x21f)]),_0x436902=_0x1b2f31(_0x56c184);return _0x25f6a1[_0x290390(0x1e5)](_0x187426=>(_0x436902[_0x290390(0x21e)](_0x187426[_0x290390(0x21f)])??0x0)<=_0x3975bc&&_0x3975bc<=_0x187426[_0x290390(0x21f)]);}function j(_0x42208e,_0x1fbf38,_0x45d808,_0x213766){const _0x344477=_0x3ab0de;let _0x410950=(_0x213766==null?void 0x0:_0x213766[_0x344477(0x21e)](_0x1fbf38[_0x344477(0x21f)]))??_0x5d088e(_0x42208e,_0x1fbf38);return _0x45d808?Math['max'](_0x410950,_0x45d808[_0x344477(0x1bf)]):_0x410950;}function Xe(_0x10a3cc,_0x5986ef){const _0x457f44=_0x3ab0de;let _0x1b03f4=_0x10a3cc[_0x457f44(0x21f)]+0x1;return _0x5986ef?Math[_0x457f44(0x22f)](_0x1b03f4,_0x5986ef[_0x457f44(0x1ca)]):_0x1b03f4;}function Ze(_0x54128a,_0x425a79,_0x5e8cf8){const _0x2b1338=_0x3ab0de;let _0x45f794=Qe(_0x54128a,_0x425a79),_0x48b259=Qe(_0x54128a,_0x425a79===_0x5e8cf8?_0x5e8cf8:Math[_0x2b1338(0x1a1)](_0x425a79,_0x5e8cf8-0x1));if(_0x45f794||_0x48b259){if(!_0x45f794||!_0x48b259||_0x45f794[_0x2b1338(0x20f)]!==_0x48b259['startTokenOffset']||_0x45f794['endTokenOffset']!==_0x48b259[_0x2b1338(0x1d3)])throw new E();return _0x45f794;}}function Qe(_0x504c25,_0x5411f6){const _0x223a40=_0x3ab0de;let _0x302404=_0x504c25[_0x223a40(0x217)],_0x39f334=-0x1;for(let _0x1ed22f=Math['min'](_0x5411f6,_0x302404[_0x223a40(0x203)]-0x1);_0x1ed22f>=0x0;_0x1ed22f--){let _0x125723=_0x302404[_0x1ed22f];if(_0x125723===_0x1e79a7[_0x223a40(0x1a8)])return;if(_0x125723===_0x1e79a7[_0x223a40(0x22e)]){_0x39f334=_0x1ed22f;break;}}if(_0x39f334<0x0)return;let _0x1157fa=_0x302404[_0x223a40(0x1b9)](_0x1e79a7[_0x223a40(0x1a8)],_0x39f334+0x1);if(!(_0x1157fa<0x0||_0x5411f6<_0x39f334+0x1||_0x5411f6>_0x1157fa-0x1))return{'startOffset':_0x39f334+0x1,'endOffset':Math[_0x223a40(0x1a1)](_0x39f334+0x1,_0x1157fa-0x1),'startTokenOffset':_0x39f334,'endTokenOffset':_0x1157fa};}function M(_0x52557b){return _0x31f500(_0x52557b)['endOffset']-0x1;}function $e(_0x2308c5,_0x2b38dc,_0x48c353,_0x341168){const _0x353f02=_0x3ab0de;let _0x545b36=M(_0x2b38dc),_0x2ed266=(_0x2308c5[_0x353f02(0x1a9)]??[])[_0x353f02(0x1e5)](_0x2a513f=>_0x2a513f[_0x353f02(0x21f)]===_0x545b36+0x1);if(!_0x2ed266||_0x341168!=null&&_0x2ed266[_0x353f02(0x21f)]!==_0x341168||_0x48c353!=null&&(_0x48c353<_0x545b36||_0x48c353>_0x2ed266[_0x353f02(0x21f)]+0x1)||_0x2308c5[_0x353f02(0x217)][_0x2ed266[_0x353f02(0x21f)]]!==_0x1e79a7['PARAGRAPH'])return null;let _0x73cec5=_0x5d088e(_0x2308c5,_0x2ed266),_0x3cece7=_0x2308c5['dataStream']['slice'](_0x73cec5,_0x2ed266['startIndex']);return Array[_0x353f02(0x223)](_0x3cece7)[_0x353f02(0x19c)](_0xb63170=>_0xb63170===_0x1e79a7['BLOCK_END'])?{'paragraph':_0x2ed266,'endTokenOffset':_0x545b36}:null;}function N(_0x5455fd,_0x5b57dd){const _0x1684c6=_0x3ab0de;var _0x5c66c2;let _0x38ee87=M(_0x5b57dd),_0x30d223=_0x5455fd[_0x1684c6(0x217)][_0x38ee87+0x1];(_0x30d223===_0x1e79a7[_0x1684c6(0x1f0)]||_0x30d223===void 0x0)&&P(_0x5455fd,_0x38ee87+0x1,_0x1e79a7[_0x1684c6(0x1c8)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x403b8e(new Set((_0x5c66c2=_0x5455fd[_0x1684c6(0x1a9)])==null?void 0x0:_0x5c66c2[_0x1684c6(0x1e9)](_0x379907=>_0x379907[_0x1684c6(0x199)])))}]});}function P(_0x57f62f,_0x127cf1,_0xc3d068,_0x5f5b0a={}){const _0x2c1943=_0x3ab0de;var _0x1decb0,_0x3628b1;_0xc3d068&&(_0x57f62f[_0x2c1943(0x217)]=''+_0x57f62f[_0x2c1943(0x217)][_0x2c1943(0x1ac)](0x0,_0x127cf1)+_0xc3d068+_0x57f62f[_0x2c1943(0x217)][_0x2c1943(0x1ac)](_0x127cf1),et(_0x57f62f,_0x127cf1,_0xc3d068['length']),(_0x1decb0=_0x5f5b0a[_0x2c1943(0x1a9)])!=null&&_0x1decb0[_0x2c1943(0x203)]&&(_0x57f62f[_0x2c1943(0x1a9)]=[..._0x57f62f[_0x2c1943(0x1a9)]??[],..._0x5f5b0a[_0x2c1943(0x1a9)][_0x2c1943(0x1e9)](_0x23d34f=>({..._0x23d34f,'startIndex':_0x23d34f['startIndex']+_0x127cf1}))][_0x2c1943(0x1cc)]((_0x5b8f01,_0x37e712)=>_0x5b8f01['startIndex']-_0x37e712['startIndex'])),(_0x3628b1=_0x5f5b0a[_0x2c1943(0x230)])!=null&&_0x3628b1['length']&&(_0x57f62f[_0x2c1943(0x230)]=[..._0x57f62f[_0x2c1943(0x230)]??[],..._0x5f5b0a[_0x2c1943(0x230)][_0x2c1943(0x1e9)](_0x8f5bdb=>({..._0x8f5bdb,'startIndex':_0x8f5bdb['startIndex']+_0x127cf1,'endIndex':_0x8f5bdb[_0x2c1943(0x1f5)]+_0x127cf1}))]['sort']((_0x19cc6,_0x5b0744)=>_0x19cc6[_0x2c1943(0x21f)]-_0x5b0744[_0x2c1943(0x21f)])));}function F(_0x210625,_0x2fedb0,_0x5dd3d9){const _0x16e306=_0x3ab0de;let _0x58e995=_0x5dd3d9-_0x2fedb0;_0x210625['dataStream']=''+_0x210625[_0x16e306(0x217)]['slice'](0x0,_0x2fedb0)+_0x210625[_0x16e306(0x217)][_0x16e306(0x1ac)](_0x5dd3d9),tt(_0x210625,_0x2fedb0,_0x58e995);}function et(_0x474c85,_0x50d013,_0x15e899){const _0x29e94d=_0x3ab0de;_0x474c85[_0x29e94d(0x1a9)]=I(_0x474c85[_0x29e94d(0x1a9)],_0x50d013,_0x15e899),_0x474c85[_0x29e94d(0x1c7)]=I(_0x474c85[_0x29e94d(0x1c7)],_0x50d013,_0x15e899),_0x474c85['customBlocks']=I(_0x474c85[_0x29e94d(0x1c4)],_0x50d013,_0x15e899),_0x474c85[_0x29e94d(0x1be)]=nt(_0x474c85[_0x29e94d(0x1be)],_0x50d013,_0x15e899),_0x474c85[_0x29e94d(0x1bd)]=rt(_0x474c85[_0x29e94d(0x1bd)],_0x50d013,_0x15e899),_0x474c85[_0x29e94d(0x209)]=R(_0x474c85[_0x29e94d(0x209)],_0x50d013,_0x15e899),_0x474c85[_0x29e94d(0x1ab)]=R(_0x474c85[_0x29e94d(0x1ab)],_0x50d013,_0x15e899),_0x474c85['customDecorations']=R(_0x474c85['customDecorations'],_0x50d013,_0x15e899),_0x474c85['blockRanges']=R(_0x474c85[_0x29e94d(0x230)],_0x50d013,_0x15e899);}function tt(_0x3b71fd,_0x1144a6,_0x2b044b){const _0x286a8c=_0x3ab0de;var _0xcec638,_0xf5f53f;_0x3b71fd['paragraphs']=L(_0x3b71fd[_0x286a8c(0x1a9)],_0x1144a6,_0x2b044b),_0x3b71fd[_0x286a8c(0x1c7)]=L(_0x3b71fd[_0x286a8c(0x1c7)],_0x1144a6,_0x2b044b),_0x3b71fd[_0x286a8c(0x1c4)]=L(_0x3b71fd[_0x286a8c(0x1c4)],_0x1144a6,_0x2b044b),_0x3b71fd['textRuns']=(_0xcec638=it((_0xf5f53f=_0x3b71fd['textRuns'])==null?void 0x0:_0xf5f53f[_0x286a8c(0x1e9)](_0x52f560=>({..._0x52f560,'startIndex':_0x52f560['st'],'endIndex':_0x52f560['ed']})),_0x1144a6,_0x2b044b))==null?void 0x0:_0xcec638['map'](_0x6fb793=>{let {startIndex:_0xa0599b,endIndex:_0xa906f7,..._0x4ade84}=_0x6fb793;return{..._0x4ade84,'st':_0xa0599b,'ed':_0xa906f7};}),_0x3b71fd[_0x286a8c(0x1bd)]=it(_0x3b71fd[_0x286a8c(0x1bd)],_0x1144a6,_0x2b044b),_0x3b71fd[_0x286a8c(0x209)]=z(_0x3b71fd[_0x286a8c(0x209)],_0x1144a6,_0x2b044b),_0x3b71fd['customRanges']=z(_0x3b71fd[_0x286a8c(0x1ab)],_0x1144a6,_0x2b044b),_0x3b71fd[_0x286a8c(0x218)]=z(_0x3b71fd[_0x286a8c(0x218)],_0x1144a6,_0x2b044b),_0x3b71fd[_0x286a8c(0x230)]=z(_0x3b71fd[_0x286a8c(0x230)],_0x1144a6,_0x2b044b);}function I(_0x4c09a2,_0x97c2e8,_0xb24df7){const _0x6d975f=_0x3ab0de;return _0x4c09a2==null?void 0x0:_0x4c09a2[_0x6d975f(0x1e9)](_0x2e1d9e=>_0x2e1d9e['startIndex']>=_0x97c2e8?{..._0x2e1d9e,'startIndex':_0x2e1d9e[_0x6d975f(0x21f)]+_0xb24df7}:_0x2e1d9e);}function L(_0x119419,_0x116959,_0x16a401){const _0x2e9261=_0x3ab0de;let _0x522ddb=_0x116959+_0x16a401;return _0x119419==null?void 0x0:_0x119419[_0x2e9261(0x1e9)](_0x5bb652=>_0x5bb652[_0x2e9261(0x21f)]>=_0x116959&&_0x5bb652[_0x2e9261(0x21f)]<_0x522ddb?null:_0x5bb652[_0x2e9261(0x21f)]>=_0x522ddb?{..._0x5bb652,'startIndex':_0x5bb652['startIndex']-_0x16a401}:_0x5bb652)[_0x2e9261(0x1bb)](_0x379a8d=>_0x379a8d!=null);}function _0x12f8(){const _0x5bcc44=['docs-code.command.insert-below','endsWith','editOp','_setResource','replaceDocRanges','isArray','TABLE_CELL_END','paragraphs','keepNext','customRanges','slice','_resources','toPrimitive','change$','getCodeConfig','BLOCK_END','textStyle','2myvPGS','_resourceManagerService','setCodeConfig','convert-paragraph','serialize','spaceAbove','indexOf','409004Qpgkvy','filter','columns','tables','textRuns','startOffset','_docsCodeModel','next','decorate','keepLines','customBlocks','right','range','sectionBreaks','PARAGRAPH','blockId','endOffset','TRUE','sort','UNIVER_DOC','some','push','pluginName','compose','_initResource','endTokenOffset','registerPluginResource','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','defineProperty','insertionMode','_injector','object','cursorOffset','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','BLOCK_START','getBody','disposeWithMe','direction','getUnitId','nextMetadata','4jylYcq','_config','insertOp','find','2110308VyXHIO','CODE','205914BRcxpc','map','getParagraphsInRange','fromEntries','constructor','indentStart','paragraphStartIndex','DOC_CODE_PLUGIN','SECTION_BREAK','16533180ZLIQcr','dispose','body','setConfig','endIndex','nextDocumentData','deserialize','documentData','set','entries','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','getCurrentUnitOfType','Document\x20body\x20is\x20required','packageName','add','insert-new','javascript','prototype','length','default','removeUnit','spaceBelow','reduce','clear','columnGroups','docs-code.command.update','paragraphStyle','call','1478315ddsvLK','_change$','startTokenOffset','function','keys','insertLength','previousDocumentData','MUTATION','docs-code.config','handler','dataStream','customDecorations','unitId','_configService','model','monospace','docs-code.command.remove','get','startIndex','codes','COMMAND','config','from','2999344WpZusz','onStarting','metadata','docs-code.command.cancel-empty-paragraph','replaceOp','asObservable','retain','start','getInstance','docs-code.command.unwrap','TABLE_CELL_START','min','blockRanges','type','parse','getTextRanges','removeCode','syncExecuteCommand','symbol','forEach','831747UqwISI','indentEnd','docs-code.command.consume-boundary-delete','commandService','deleteLength','string','docs-code.mutation.remove-config','blockType','stringify','paragraphId','_commandService','bullet','every','@univerjs-pro/docs-code','selectionManager','paragraph','version','max'];_0x12f8=function(){return _0x5bcc44;};return _0x12f8();}function nt(_0x167b69,_0x181d52,_0x8ddc98){return _0x167b69==null?void 0x0:_0x167b69['map'](_0xd16525=>_0xd16525['st']>=_0x181d52?{..._0xd16525,'st':_0xd16525['st']+_0x8ddc98,'ed':_0xd16525['ed']+_0x8ddc98}:_0xd16525['ed']>_0x181d52?{..._0xd16525,'ed':_0xd16525['ed']+_0x8ddc98}:_0xd16525);}function R(_0x4432c6,_0x44dacb,_0x4212be){const _0x1a399a=_0x3ab0de;return _0x4432c6==null?void 0x0:_0x4432c6[_0x1a399a(0x1e9)](_0x381126=>_0x905e98(_0x381126,_0x44dacb,_0x4212be));}function rt(_0x4fd975,_0x4bdab8,_0x27c9a5){const _0x4da922=_0x3ab0de;return _0x4fd975==null?void 0x0:_0x4fd975[_0x4da922(0x1e9)](_0x102d65=>_0x126e80(_0x102d65,_0x4bdab8,_0x27c9a5));}function z(_0x410e2f,_0x252d5f,_0x54bb59){const _0x457fe3=_0x3ab0de;return _0x410e2f==null?void 0x0:_0x410e2f[_0x457fe3(0x1e9)](_0x1ebf38=>_0x168a73(_0x1ebf38,_0x252d5f,_0x54bb59))[_0x457fe3(0x1bb)](_0x448d95=>_0x448d95!=null);}function it(_0x1fd29e,_0x1d6287,_0x5a13b5){const _0x586f1=_0x3ab0de;return _0x1fd29e==null?void 0x0:_0x1fd29e['map'](_0x40cf9c=>_0x2a6859(_0x40cf9c,_0x1d6287,_0x5a13b5))[_0x586f1(0x1bb)](_0x170721=>_0x170721!=null);}const at={'id':_0x3ab0de(0x1a2),'type':_0x41a6f1['COMMAND'],'handler':_0x55eb44=>{const _0x11e4c5=_0x3ab0de;var _0x39d914;if(_0x21b5bf(G(_0x55eb44)))return!0x1;let _0x35896a=_0x3760de(_0x55eb44);if(_0x35896a)return _0x55eb44[_0x11e4c5(0x21e)](_0x15ccf6)['syncExecuteCommand'](B['id'],{'startOffset':_0x35896a['startOffset'],'endOffset':_0x35896a[_0x11e4c5(0x1ca)],'insertionMode':_0x11e4c5(0x200),'unitId':_0x35896a['unitId']});let _0x5d9128=ft(_0x55eb44);if(!_0x5d9128)return!0x1;let _0x5e2ac8=(_0x39d914=_0x55eb44['get'](_0x964d3a)['getCurrentUnitOfType'](_0x48efbf[_0x11e4c5(0x1cd)]))==null?void 0x0:_0x39d914[_0x11e4c5(0x1dd)](),_0x4ca85e=_0x5e2ac8?_0x1831c1(_0x5e2ac8,_0x5d9128):_0x5d9128[_0x11e4c5(0x21f)]+0x1;return _0x55eb44[_0x11e4c5(0x21e)](_0x15ccf6)[_0x11e4c5(0x235)](B['id'],{'startOffset':_0x4ca85e,'endOffset':_0x4ca85e});}},ot={'id':_0x3ab0de(0x23a),'type':_0x41a6f1[_0x3ab0de(0x221)],'handler':()=>!0x0},B={'id':'docs-code.command.insert','type':_0x41a6f1[_0x3ab0de(0x221)],'handler':(_0x17fee5,_0x3c02cc)=>{const _0x357e63=_0x3ab0de;let _0x2c1e71=W(_0x17fee5,_0x3c02cc==null?void 0x0:_0x3c02cc[_0x357e63(0x219)]);if(!_0x2c1e71)return!0x1;let _0x5b2a5a=G(_0x17fee5);if(_0x21b5bf(_0x5b2a5a))return!0x1;let _0x2b801b=_0x2c1e71[_0x357e63(0x21b)][_0x357e63(0x1b7)](_0x2c1e71[_0x357e63(0x219)]),_0x14cb38=lt(_0x3c02cc,_0x5b2a5a),_0x5e0a81=ut(_0x2c1e71[_0x357e63(0x213)],_0x14cb38);if(_0x5e0a81){if(_0x5e0a81[_0x357e63(0x197)]!==_0x435faa[_0x357e63(0x1e7)])return!0x1;let _0x8ab0c8=D({'blockId':_0x5e0a81[_0x357e63(0x1c9)],'documentData':_0x2c1e71[_0x357e63(0x213)],'metadata':_0x2b801b});if(!_0x8ab0c8)return!0x1;let _0x5b6863=Y(_0x2c1e71[_0x357e63(0x23b)],_0x2c1e71[_0x357e63(0x19e)],_0x2c1e71[_0x357e63(0x219)],_0x2c1e71[_0x357e63(0x213)],_0x8ab0c8[_0x357e63(0x1f6)],B['id'],_0x8ab0c8['cursorOffset']);return _0x5b6863&&_0x8ab0c8[_0x357e63(0x1e1)]&&_0x2c1e71[_0x357e63(0x21b)][_0x357e63(0x1f7)](_0x2c1e71['unitId'],_0x8ab0c8[_0x357e63(0x1e1)]),_0x5b6863;}let _0x554dec=(_0x3c02cc==null?void 0x0:_0x3c02cc['blockId'])??_0x2991d6(0x6),_0x41b866;try{_0x41b866=De({'blockId':_0x554dec,'config':_0x3c02cc==null?void 0x0:_0x3c02cc['config'],'documentData':_0x2c1e71[_0x357e63(0x213)],'endOffset':_0x14cb38==null?void 0x0:_0x14cb38[_0x357e63(0x1ca)],'insertionMode':_0x3c02cc==null?void 0x0:_0x3c02cc[_0x357e63(0x1d7)],'metadata':_0x2b801b,'startOffset':_0x14cb38==null?void 0x0:_0x14cb38[_0x357e63(0x1bf)]});}catch(_0x3ff4b8){if(_0x3ff4b8 instanceof E)return!0x1;throw _0x3ff4b8;}let _0x270854=Y(_0x2c1e71['commandService'],_0x2c1e71[_0x357e63(0x19e)],_0x2c1e71[_0x357e63(0x219)],_0x2c1e71[_0x357e63(0x213)],_0x41b866[_0x357e63(0x1f6)],B['id'],_0x41b866[_0x357e63(0x1da)]);return _0x270854&&_0x41b866[_0x357e63(0x1e1)]&&_0x2c1e71[_0x357e63(0x21b)][_0x357e63(0x1f7)](_0x2c1e71[_0x357e63(0x219)],_0x41b866[_0x357e63(0x1e1)]),_0x270854;}},st={'id':_0x3ab0de(0x20a),'type':_0x41a6f1[_0x3ab0de(0x221)],'handler':(_0x2e9cdc,_0x361f34)=>{const _0x2ee026=_0x3ab0de;if(!_0x361f34)return!0x1;let _0x977d32=W(_0x2e9cdc,_0x361f34[_0x2ee026(0x219)]);if(!_0x977d32)return!0x1;let _0x29756c=je({'blockId':_0x361f34[_0x2ee026(0x1c9)],'config':_0x361f34[_0x2ee026(0x222)],'documentData':_0x977d32[_0x2ee026(0x213)],'metadata':_0x977d32[_0x2ee026(0x21b)][_0x2ee026(0x1b7)](_0x977d32['unitId'])});return _0x29756c[_0x2ee026(0x1e1)]&&_0x977d32[_0x2ee026(0x21b)][_0x2ee026(0x1f7)](_0x977d32[_0x2ee026(0x219)],_0x29756c[_0x2ee026(0x1e1)]),!0x0;}},ct={'id':'docs-code.command.exit','type':_0x41a6f1['COMMAND'],'handler':(_0x55cf45,_0x24dbc5)=>V[_0x3ab0de(0x216)](_0x55cf45,_0x24dbc5)},V={'id':_0x3ab0de(0x22d),'type':_0x41a6f1['COMMAND'],'handler':(_0xb65b53,_0x3cfc93)=>{const _0x4bcbd4=_0x3ab0de;if(!_0x3cfc93)return!0x1;let _0x15ddb4=W(_0xb65b53,_0x3cfc93==null?void 0x0:_0x3cfc93[_0x4bcbd4(0x219)]);if(!_0x15ddb4)return!0x1;let _0x590f70=D({'blockId':_0x3cfc93[_0x4bcbd4(0x1c9)],'documentData':_0x15ddb4[_0x4bcbd4(0x213)],'metadata':_0x15ddb4[_0x4bcbd4(0x21b)]['serialize'](_0x15ddb4[_0x4bcbd4(0x219)])});if(!_0x590f70)return!0x1;let _0x2b78a3=Y(_0x15ddb4[_0x4bcbd4(0x23b)],_0x15ddb4[_0x4bcbd4(0x19e)],_0x15ddb4[_0x4bcbd4(0x219)],_0x15ddb4[_0x4bcbd4(0x213)],_0x590f70[_0x4bcbd4(0x1f6)],V['id'],_0x590f70[_0x4bcbd4(0x1da)]);return _0x2b78a3&&_0x590f70[_0x4bcbd4(0x1e1)]&&_0x15ddb4[_0x4bcbd4(0x21b)]['deserialize'](_0x15ddb4['unitId'],_0x590f70[_0x4bcbd4(0x1e1)]),_0x2b78a3;}},H={'id':_0x3ab0de(0x21d),'type':_0x41a6f1['COMMAND'],'handler':(_0x46136f,_0x202a06)=>{const _0x337597=_0x3ab0de;if(!_0x202a06)return!0x1;let _0xecab45=W(_0x46136f,_0x202a06==null?void 0x0:_0x202a06[_0x337597(0x219)]);if(!_0xecab45)return!0x1;let _0x47ab34=Me({'blockId':_0x202a06[_0x337597(0x1c9)],'documentData':_0xecab45[_0x337597(0x213)],'metadata':_0xecab45['model']['serialize'](_0xecab45['unitId'])});if(!_0x47ab34)return!0x1;let _0x5edddb=Y(_0xecab45[_0x337597(0x23b)],_0xecab45[_0x337597(0x19e)],_0xecab45[_0x337597(0x219)],_0xecab45['previousDocumentData'],_0x47ab34[_0x337597(0x1f6)],H['id'],_0x47ab34[_0x337597(0x1da)]);return _0x5edddb&&_0x47ab34[_0x337597(0x1e1)]&&_0xecab45['model'][_0x337597(0x1f7)](_0xecab45['unitId'],_0x47ab34[_0x337597(0x1e1)]),_0x5edddb;}},U={'id':_0x3ab0de(0x227),'type':_0x41a6f1[_0x3ab0de(0x221)],'handler':(_0x211ce3,_0x257f7d)=>{const _0x5184e0=_0x3ab0de;var _0x5cff4a;let _0x4a45b0=W(_0x211ce3,_0x257f7d==null?void 0x0:_0x257f7d[_0x5184e0(0x219)]);if(!_0x4a45b0)return!0x1;let _0x5a9d81=(_0x257f7d==null?void 0x0:_0x257f7d[_0x5184e0(0x1da)])??((_0x5cff4a=G(_0x211ce3))==null?void 0x0:_0x5cff4a['startOffset']);if(_0x5a9d81==null)return!0x1;let _0x129776=Ne({'cursorOffset':_0x5a9d81,'documentData':_0x4a45b0['previousDocumentData'],'paragraphStartIndex':_0x257f7d==null?void 0x0:_0x257f7d[_0x5184e0(0x1ee)]});return _0x129776?Y(_0x4a45b0[_0x5184e0(0x23b)],_0x4a45b0[_0x5184e0(0x19e)],_0x4a45b0[_0x5184e0(0x219)],_0x4a45b0[_0x5184e0(0x213)],_0x129776[_0x5184e0(0x1f6)],U['id'],_0x129776[_0x5184e0(0x1da)]):!0x1;}};function W(_0x53c2b0,_0x1260c3){const _0x48b90a=_0x3ab0de;let _0xb8eeae=_0x53c2b0[_0x48b90a(0x21e)](_0x964d3a),_0x5744b7=_0x1260c3?_0xb8eeae['getUnit'](_0x1260c3,_0x48efbf[_0x48b90a(0x1cd)]):_0xb8eeae[_0x48b90a(0x1fc)](_0x48efbf['UNIVER_DOC']);return _0x5744b7?{'commandService':_0x53c2b0[_0x48b90a(0x21e)](_0x15ccf6),'model':_0x53c2b0['get'](w),'previousDocumentData':_0x5744b7['getSnapshot'](),'selectionManager':_0x53c2b0[_0x48b90a(0x21e)](_0x47ac4f),'unitId':_0x5744b7[_0x48b90a(0x1e0)]()}:null;}function G(_0x33152b){const _0x1201d4=_0x3ab0de;var _0x4e2653;return(_0x4e2653=_0x33152b[_0x1201d4(0x21e)](_0x47ac4f)[_0x1201d4(0x233)]())==null?void 0x0:_0x4e2653[0x0];}function lt(_0x1df402,_0x430091){const _0x306b6b=_0x3ab0de;let _0x2ed7d4=(_0x1df402==null?void 0x0:_0x1df402[_0x306b6b(0x1bf)])??(_0x430091==null?void 0x0:_0x430091[_0x306b6b(0x1bf)]),_0x56bc86=(_0x1df402==null?void 0x0:_0x1df402[_0x306b6b(0x1ca)])??(_0x430091==null?void 0x0:_0x430091[_0x306b6b(0x1ca)]);if(_0x2ed7d4!=null&&_0x56bc86!=null)return{'endOffset':Math[_0x306b6b(0x1a1)](_0x2ed7d4,_0x56bc86),'startOffset':Math['min'](_0x2ed7d4,_0x56bc86)};}function ut(_0x103095,_0x5ce19e){const _0x53306f=_0x3ab0de;var _0x1d459f;if(!_0x5ce19e)return;let _0x24fdee=dt(_0x5ce19e);return(_0x1d459f=_0x103095['body'])==null||(_0x1d459f=_0x1d459f[_0x53306f(0x230)])==null?void 0x0:_0x1d459f[_0x53306f(0x1e5)](_0x338e19=>{const _0x186ec7=_0x53306f;let _0x300d67=_0x31f500(_0x338e19);return _0x5ce19e[_0x186ec7(0x1bf)]===_0x5ce19e[_0x186ec7(0x1ca)]?_0x300592(_0x300d67,_0x24fdee):_0x114c5d(_0x300d67,_0x24fdee);});}function dt(_0x2944aa){const _0x18587e=_0x3ab0de;return _0x2944aa['startOffset']===_0x2944aa['endOffset']?_0x2944aa['startOffset']:_0x2944aa[_0x18587e(0x1bf)]+0x1;}function ft(_0x21ba25){const _0x49ff96=_0x3ab0de;let _0x4fbb48=G(_0x21ba25);if(!_0x4fbb48)return null;let _0x745d23=_0x21ba25[_0x49ff96(0x21e)](_0x964d3a)['getCurrentUnitOfType'](_0x48efbf[_0x49ff96(0x1cd)]),_0x5279e0=_0x745d23==null?void 0x0:_0x745d23[_0x49ff96(0x1dd)]();return _0x5279e0?_0x58acab[_0x49ff96(0x1c6)][_0x49ff96(0x1ea)](_0x4fbb48,_0x5279e0['paragraphs']??[],_0x5279e0[_0x49ff96(0x217)]??'')[0x0]??null:null;}function pt(_0xad234c,_0x469ef4){const _0x279b10=_0x3ab0de;let _0x310522=_0xad234c['body'],_0x38db8c=_0x469ef4[_0x279b10(0x1f3)],_0x7d158a=_0x2f99b7(_0x310522,_0x38db8c);return[_0x7d158a&&_0x38db8c?mt(_0x38db8c,_0x7d158a):null,_0x7d158a?null:ht(_0x310522,_0x38db8c)]['filter'](Boolean)['reduce']((_0x5acc95,_0x349644)=>_0x5e3e53[_0x279b10(0x1d1)](_0x5acc95,_0x349644),null);}function mt(_0x47014e,_0x23d102){const _0x2e3aec=_0x3ab0de;let _0x14aa65=new _0x443f5a();return _0x14aa65[_0x2e3aec(0x22a)](_0x23d102['start']),_0x23d102[_0x2e3aec(0x212)]>0x0&&_0x14aa65['insert'](_0x23d102['insertLength'],_0x2b04e8(_0x47014e,_0x23d102[_0x2e3aec(0x22b)],_0x23d102[_0x2e3aec(0x22b)]+_0x23d102['insertLength'],!0x1)),_0x23d102[_0x2e3aec(0x194)]>0x0&&_0x14aa65['delete'](_0x23d102[_0x2e3aec(0x194)]),_0x5e3e53[_0x2e3aec(0x22c)]()[_0x2e3aec(0x1a4)](_0x14aa65[_0x2e3aec(0x1b7)](),[_0x2e3aec(0x1f3)]);}function ht(_0x261765,_0x30350f){const _0x263692=_0x3ab0de;let _0x1cfcb3=[],_0x3111ed=_0x261765?_t(_0x261765):void 0x0,_0x3e1514=_0x30350f?_t(_0x30350f):void 0x0;for(let _0xd52bc0 of gt)K(_0x5e3e53[_0x263692(0x22c)](),[_0x263692(0x1f3),_0xd52bc0],_0x3111ed==null?void 0x0:_0x3111ed[_0xd52bc0],_0x3e1514==null?void 0x0:_0x3e1514[_0xd52bc0],_0x1cfcb3);return _0x1cfcb3[_0x263692(0x207)]((_0x1f1ad2,_0x55aed3)=>_0x5e3e53[_0x263692(0x1d1)](_0x1f1ad2,_0x55aed3),null);}const gt=[_0x3ab0de(0x1a9),'sectionBreaks','tables',_0x3ab0de(0x209),_0x3ab0de(0x230),_0x3ab0de(0x1c4),_0x3ab0de(0x1ab),_0x3ab0de(0x218),_0x3ab0de(0x1be)];function _t(_0x380e90){return _0x380e90;}function K(_0x31d451,_0x9cae8a,_0xee46f2,_0x2f1d5a,_0x1a7fc9){const _0x38cdce=_0x3ab0de;if(!J(_0xee46f2,_0x2f1d5a)){if(_0xee46f2==null){_0x1a7fc9[_0x38cdce(0x1cf)](_0x31d451['insertOp'](_0x9cae8a,_0x2f1d5a));return;}if(_0x2f1d5a==null){_0x1a7fc9['push'](_0x31d451['removeOp'](_0x9cae8a,_0xee46f2));return;}if(Array[_0x38cdce(0x1a7)](_0xee46f2)&&Array['isArray'](_0x2f1d5a)){vt(_0x31d451,_0x9cae8a,_0xee46f2,_0x2f1d5a,_0x1a7fc9);return;}if(q(_0xee46f2)&&q(_0x2f1d5a)){new Set([...Object[_0x38cdce(0x211)](_0xee46f2),...Object[_0x38cdce(0x211)](_0x2f1d5a)])[_0x38cdce(0x237)](_0x2fee23=>{K(_0x31d451,[..._0x9cae8a,_0x2fee23],_0xee46f2[_0x2fee23],_0x2f1d5a[_0x2fee23],_0x1a7fc9);});return;}_0x1a7fc9[_0x38cdce(0x1cf)](_0x31d451[_0x38cdce(0x228)](_0x9cae8a,_0xee46f2,_0x2f1d5a));}}function vt(_0x3494d5,_0x4620d7,_0x393a0b,_0xc20ad3,_0x24519f){const _0x14ec4b=_0x3ab0de;if(_0x393a0b[_0x14ec4b(0x203)]===_0xc20ad3[_0x14ec4b(0x203)]){_0x393a0b['forEach']((_0x18c212,_0x4f630f)=>K(_0x3494d5,[..._0x4620d7,_0x4f630f],_0x18c212,_0xc20ad3[_0x4f630f],_0x24519f));return;}let _0x5d127e=0x0;for(;_0x5d127e<_0x393a0b[_0x14ec4b(0x203)]&&_0x5d127e<_0xc20ad3['length']&&J(_0x393a0b[_0x5d127e],_0xc20ad3[_0x5d127e]);)_0x5d127e++;let _0x4cc7c2=_0x393a0b[_0x14ec4b(0x203)]-0x1,_0x1f2ec4=_0xc20ad3['length']-0x1;for(;_0x4cc7c2>=_0x5d127e&&_0x1f2ec4>=_0x5d127e&&J(_0x393a0b[_0x4cc7c2],_0xc20ad3[_0x1f2ec4]);)_0x4cc7c2--,_0x1f2ec4--;for(let _0x468652=_0x4cc7c2;_0x468652>=_0x5d127e;_0x468652--)_0x24519f[_0x14ec4b(0x1cf)](_0x3494d5['removeOp']([..._0x4620d7,_0x468652],_0x393a0b[_0x468652]));for(let _0x5d7ad2=_0x5d127e;_0x5d7ad2<=_0x1f2ec4;_0x5d7ad2++)_0x24519f[_0x14ec4b(0x1cf)](_0x3494d5[_0x14ec4b(0x1e4)]([..._0x4620d7,_0x5d7ad2],_0xc20ad3[_0x5d7ad2]));}function q(_0x2aa9ad){const _0x36c725=_0x3ab0de;return typeof _0x2aa9ad==_0x36c725(0x1d9)&&!!_0x2aa9ad&&!Array['isArray'](_0x2aa9ad);}function J(_0x61e505,_0x299b70){const _0x452bd4=_0x3ab0de;return JSON['stringify'](_0x61e505)===JSON[_0x452bd4(0x198)](_0x299b70);}function Y(_0x2acb24,_0x2a5bb8,_0x23406e,_0x215c55,_0x8bd1ad,_0x247c11,_0x17dd6a){const _0x5984d8=_0x3ab0de;let _0x4291cf=pt(_0x215c55,_0x8bd1ad);return _0x4291cf?!!_0x2acb24[_0x5984d8(0x235)](_0x388771['id'],{'unitId':_0x23406e,'actions':_0x4291cf,'textRanges':[{'startOffset':_0x17dd6a,'endOffset':_0x17dd6a,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x247c11}):(_0x2a5bb8[_0x5984d8(0x1a6)]([{'startOffset':_0x17dd6a,'endOffset':_0x17dd6a}],{'unitId':_0x23406e,'subUnitId':_0x23406e},!0x1),!0x0);}const X=_0x3ab0de(0x1ef);var yt=_0x3ab0de(0x19d),bt='1.0.1';const xt={};function Z(_0x306196,_0xc449b3){return function(_0xb6c42,_0xff4b51){_0xc449b3(_0xb6c42,_0xff4b51,_0x306196);};}function St(_0x1509b0,_0x13156d,_0x38c417,_0x547e8c){const _0x40a9b7=_0x3ab0de;var _0x4068d3=arguments[_0x40a9b7(0x203)],_0x5ab783=_0x4068d3<0x3?_0x13156d:_0x547e8c===null?_0x547e8c=Object['getOwnPropertyDescriptor'](_0x13156d,_0x38c417):_0x547e8c,_0x48588f;if(typeof Reflect==_0x40a9b7(0x1d9)&&typeof Reflect[_0x40a9b7(0x1c2)]==_0x40a9b7(0x210))_0x5ab783=Reflect['decorate'](_0x1509b0,_0x13156d,_0x38c417,_0x547e8c);else{for(var _0x5b2670=_0x1509b0[_0x40a9b7(0x203)]-0x1;_0x5b2670>=0x0;_0x5b2670--)(_0x48588f=_0x1509b0[_0x5b2670])&&(_0x5ab783=(_0x4068d3<0x3?_0x48588f(_0x5ab783):_0x4068d3>0x3?_0x48588f(_0x13156d,_0x38c417,_0x5ab783):_0x48588f(_0x13156d,_0x38c417))||_0x5ab783);}return _0x4068d3>0x3&&_0x5ab783&&Object['defineProperty'](_0x13156d,_0x38c417,_0x5ab783),_0x5ab783;}let Q=class extends _0x562207{constructor(_0x103c62,_0x26bd89){const _0x533e71=_0x3ab0de;super(),this[_0x533e71(0x1b4)]=_0x103c62,this[_0x533e71(0x1c0)]=_0x26bd89,this[_0x533e71(0x1d2)]();}[_0x3ab0de(0x1d2)](){const _0x320881=_0x3ab0de;this[_0x320881(0x1de)](this[_0x320881(0x1b4)][_0x320881(0x1d4)]({'pluginName':X,'businesses':[_0x48efbf['UNIVER_DOC']],'toJson':_0x4e5e4e=>JSON[_0x320881(0x198)](this['_docsCodeModel'][_0x320881(0x1b7)](_0x4e5e4e)),'parseJson':_0x1ed1cb=>y(JSON[_0x320881(0x232)](_0x1ed1cb)),'onLoad':(_0x92cc48,_0x22db5b)=>this['_docsCodeModel'][_0x320881(0x1f7)](_0x92cc48,_0x22db5b),'onUnLoad':_0x17d96a=>this['_docsCodeModel'][_0x320881(0x205)](_0x17d96a)}));}};Q=St([Z(0x0,_0x22a43b),Z(0x1,_0x57b8aa(w))],Q);let $=class extends _0x5733e8{constructor(_0x47712d=xt,_0x14146a,_0x45ca49,_0x13ab26){const _0x3a86ca=_0x3ab0de;super(),this[_0x3a86ca(0x1e3)]=_0x47712d,this[_0x3a86ca(0x1d8)]=_0x14146a,this[_0x3a86ca(0x19a)]=_0x45ca49,this[_0x3a86ca(0x21a)]=_0x13ab26;let {..._0x568be0}=_0x18c64b({},xt,this[_0x3a86ca(0x1e3)]);this[_0x3a86ca(0x21a)][_0x3a86ca(0x1f4)](_0x3a86ca(0x215),_0x568be0);}[_0x3ab0de(0x225)](){const _0x376cd6=_0x3ab0de;this[_0x376cd6(0x1d8)][_0x376cd6(0x1ff)]([w]),this[_0x376cd6(0x1d8)]['add']([Q]),this[_0x376cd6(0x1d8)][_0x376cd6(0x21e)](w),this['_injector'][_0x376cd6(0x21e)](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x376cd6(0x237)](_0x306ca1=>this[_0x376cd6(0x1de)](this['_commandService']['registerCommand'](_0x306ca1)));}};C($,_0x3ab0de(0x1d0),X),C($,_0x3ab0de(0x1fe),yt),C($,_0x3ab0de(0x1a0),bt),C($,_0x3ab0de(0x231),_0x48efbf[_0x3ab0de(0x1cd)]),$=St([_0x3dbf34(_0x3b72f5,_0x32f376),Z(0x1,_0x57b8aa(_0x584fc0)),Z(0x2,_0x15ccf6),Z(0x3,_0x1a34db)],$);export{X as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,ot as DocsCodeConsumeBoundaryDeleteCommand,at as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,w as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,st as DocsCodeUpdateCommand,T as RemoveDocsCodeConfigMutation,Te as SetDocsCodeConfigMutation,$ as UniverDocsCodePlugin,Ne as buildCancelEmptyCodeParagraphActions,Ie as isCodeBoundaryDelete,v as normalizeDocsCodeConfig,y as normalizeDocsCodeMetadataResource};
|
|
1
|
+
const _0x47262e=_0x4005;(function(_0x20f793,_0x48c8e1){const _0x419890=_0x4005,_0x4847af=_0x20f793();while(!![]){try{const _0x36931d=parseInt(_0x419890(0x10a))/0x1+parseInt(_0x419890(0x117))/0x2+parseInt(_0x419890(0xae))/0x3+-parseInt(_0x419890(0x10b))/0x4+parseInt(_0x419890(0x139))/0x5*(-parseInt(_0x419890(0x145))/0x6)+-parseInt(_0x419890(0xcd))/0x7+parseInt(_0x419890(0x146))/0x8;if(_0x36931d===_0x48c8e1)break;else _0x4847af['push'](_0x4847af['shift']());}catch(_0x30764d){_0x4847af['push'](_0x4847af['shift']());}}}(_0x305b,0x33a15));import{BooleanNumber as _0x305636,BuildTextUtils as _0x39a794,CommandType as _0x56cb03,DataStreamTreeTokenType as _0x4e2eb9,DependentOn as _0x5a7055,Disposable as _0x4a683f,DocumentBlockRangeType as _0x5e660a,ICommandService as _0x590f1e,IConfigService as _0x5308c5,IResourceManagerService as _0x5bbb3a,IUniverInstanceService as _0x3505d2,Inject as _0x20224e,Injector as _0x31802d,JSONX as _0x1d5524,Plugin as _0x947f63,TextX as _0x4d07a5,UniverInstanceType as _0x4c80f2,containsInteriorInsertionOffset as _0xa244f6,containsStreamIndex as _0x8a4026,createParagraphId as _0x4e2158,generateRandomId as _0x339fc6,getBlockRangeInterval as _0x13b73c,getBodySliceForTextXAction as _0x36cb78,getParagraphContentStartOffset as _0x420e80,getParagraphContentStartOffsets as _0x412152,getParagraphFollowingBlockOffset as _0x5e6434,getSingleDataStreamChange as _0x10a6bd,intersectsOperationalIntervals as _0xaf64f7,merge as _0x3335f3,shiftExclusiveRangeOnDelete as _0x31ca35,shiftExclusiveRangeOnInsert as _0x5cd158,shiftInclusiveRangeOnDelete as _0x2ab905,shiftInclusiveRangeOnInsert as _0x243408}from'@univerjs/core';import{Subject as _0x3d9f3e}from'rxjs';import{DocSelectionManagerService as _0xa4b078,RichTextEditingMutation as _0x1711e6,UniverDocsPlugin as _0x18c0f9,getContentInsertRange as _0x50d82b,isHeaderFooterSelection as _0x288372}from'@univerjs/docs';import{UniverLicensePlugin as _0x4d7e7b}from'@univerjs-pro/license';const Se={'language':'javascript','showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x512d50){return{...Se,..._0x512d50};}function y(_0x3040cd){const _0x38a0bd=_0x4005;let _0x28398e=(_0x3040cd==null?void 0x0:_0x3040cd[_0x38a0bd(0x130)])??{};return{'codes':Object[_0x38a0bd(0xe6)](Object[_0x38a0bd(0xbd)](_0x28398e)[_0x38a0bd(0xb2)](([_0x1dde0f,_0x537a27])=>[_0x1dde0f,v(_0x537a27)]))};}function b(_0xf75148,_0x27d725,_0x1d233d){const _0x29f86e=_0x4005;let _0xc4681f=y(_0xf75148);return _0xc4681f[_0x29f86e(0x130)][_0x27d725]=v({..._0xc4681f[_0x29f86e(0x130)][_0x27d725],..._0x1d233d}),_0xc4681f;}function x(_0x1a660c,_0x200ddf){const _0x4ba688=_0x4005;let _0x41a85c=y(_0x1a660c);return delete _0x41a85c[_0x4ba688(0x130)][_0x200ddf],_0x41a85c;}function S(_0x169a72){'@babel/helpers - typeof';return S=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x5d7bcb){return typeof _0x5d7bcb;}:function(_0x30004e){const _0x3538b9=_0x4005;return _0x30004e&&typeof Symbol==_0x3538b9(0x13d)&&_0x30004e[_0x3538b9(0x133)]===Symbol&&_0x30004e!==Symbol['prototype']?'symbol':typeof _0x30004e;},S(_0x169a72);}function _0x4005(_0x531beb,_0x4ff2e7){_0x531beb=_0x531beb-0xa5;const _0x305b34=_0x305b();let _0x4005a5=_0x305b34[_0x531beb];return _0x4005a5;}function Ce(_0x493049,_0x2223ab){const _0x2f34f3=_0x4005;if(S(_0x493049)!=_0x2f34f3(0x115)||!_0x493049)return _0x493049;var _0x3ba476=_0x493049[Symbol[_0x2f34f3(0x118)]];if(_0x3ba476!==void 0x0){var _0x202826=_0x3ba476[_0x2f34f3(0xb8)](_0x493049,_0x2223ab||'default');if(S(_0x202826)!='object')return _0x202826;throw TypeError(_0x2f34f3(0x111));}return(_0x2223ab===_0x2f34f3(0x129)?String:Number)(_0x493049);}function we(_0x2cba79){const _0x3e00ec=_0x4005;var _0x13e4c6=Ce(_0x2cba79,_0x3e00ec(0x129));return S(_0x13e4c6)==_0x3e00ec(0xda)?_0x13e4c6:_0x13e4c6+'';}function C(_0x4a464c,_0x213333,_0x421672){return(_0x213333=we(_0x213333))in _0x4a464c?Object['defineProperty'](_0x4a464c,_0x213333,{'value':_0x421672,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4a464c[_0x213333]=_0x421672,_0x4a464c;}var w=class extends _0x4a683f{constructor(..._0x3d0cd1){const _0x216d9c=_0x4005;super(..._0x3d0cd1),C(this,_0x216d9c(0xf2),new Map()),C(this,_0x216d9c(0x101),new _0x3d9f3e()),C(this,_0x216d9c(0xcc),this['_change$'][_0x216d9c(0xc2)]());}[_0x47262e(0xaa)](_0x574a61,_0x9f83e3){const _0x59ccc1=_0x47262e;return y(this['_resources'][_0x59ccc1(0xfd)](_0x574a61))[_0x59ccc1(0x130)][_0x9f83e3];}[_0x47262e(0xab)](_0x4f47b2,_0x560a7f,_0x37935a){const _0x544f46=_0x47262e;this['_setResource'](_0x4f47b2,_0x560a7f,b(this['_resources'][_0x544f46(0xfd)](_0x4f47b2),_0x560a7f,_0x37935a));}[_0x47262e(0xf7)](_0x3efc68,_0x3dd3d1){const _0x2efab6=_0x47262e;this['_setResource'](_0x3efc68,_0x3dd3d1,x(this[_0x2efab6(0xf2)][_0x2efab6(0xfd)](_0x3efc68),_0x3dd3d1));}['serialize'](_0x4cb589){const _0x22b4e7=_0x47262e;return y(this[_0x22b4e7(0xf2)][_0x22b4e7(0xfd)](_0x4cb589));}[_0x47262e(0x12f)](_0x2ae3b0,_0x3b4dc4){const _0x14910d=_0x47262e;this['_resources'][_0x14910d(0xe2)](_0x2ae3b0,y(_0x3b4dc4)),this[_0x14910d(0x101)][_0x14910d(0x149)]({'unitId':_0x2ae3b0});}['removeUnit'](_0x3257f0){const _0x2c44ec=_0x47262e;this[_0x2c44ec(0xf2)][_0x2c44ec(0xe3)](_0x3257f0),this['_change$'][_0x2c44ec(0x149)]({'unitId':_0x3257f0});}[_0x47262e(0xe4)](){const _0x15adbb=_0x47262e;super['dispose'](),this['_resources']['clear'](),this['_change$'][_0x15adbb(0x11f)]();}['_setResource'](_0x2873e4,_0x2ccee3,_0x40b4dd){const _0x16233a=_0x47262e;this[_0x16233a(0xf2)][_0x16233a(0xe2)](_0x2873e4,_0x40b4dd),this[_0x16233a(0x101)]['next']({'unitId':_0x2873e4,'blockId':_0x2ccee3});}};const Te={'id':_0x47262e(0xea),'type':_0x56cb03[_0x47262e(0x131)],'handler':(_0x61756b,_0x547f17)=>!(_0x547f17!=null&&_0x547f17[_0x47262e(0x136)])||!_0x547f17[_0x47262e(0xb1)]?!0x1:(_0x61756b[_0x47262e(0xfd)](w)[_0x47262e(0xab)](_0x547f17[_0x47262e(0x136)],_0x547f17['blockId'],_0x547f17[_0x47262e(0xf8)]),!0x0)},T={'id':_0x47262e(0x109),'type':_0x56cb03[_0x47262e(0x131)],'handler':(_0x1c7334,_0x344aa0)=>!(_0x344aa0!=null&&_0x344aa0[_0x47262e(0x136)])||!_0x344aa0[_0x47262e(0xb1)]?!0x1:(_0x1c7334['get'](w)['removeCode'](_0x344aa0[_0x47262e(0x136)],_0x344aa0['blockId']),!0x0)},Ee=_0x47262e(0xba);var E=class extends Error{constructor(_0x5ebdcc=_0x47262e(0xd7)){super(_0x5ebdcc);}};function De(_0x3bf6d5){const _0x379c6f=_0x47262e;var _0xabfdfe;let _0x5c9390=O(_0x3bf6d5['documentData']),_0x2a16de=A(_0x5c9390),_0xe6b726=ke(_0x3bf6d5['startOffset'],_0x3bf6d5[_0x379c6f(0xe1)]),_0x30f1d4=_0xe6b726?(_0xabfdfe=_0x2a16de['blockRanges'])==null?void 0x0:_0xabfdfe['find'](_0x53f219=>{const _0x537923=_0x379c6f;let _0x430a3c=_0x13b73c(_0x53f219);return _0x430a3c[_0x537923(0xe7)]===_0xe6b726[_0x537923(0xe7)]&&_0x430a3c['endOffset']===_0xe6b726['endOffset'];}):void 0x0,{startOffset:_0x7fc4d0,endOffset:_0x3f886f}=_0x30f1d4?_0xe6b726:We(_0x2a16de,_0x3bf6d5[_0x379c6f(0xe7)],_0x3bf6d5[_0x379c6f(0xe1)],_0x3bf6d5[_0x379c6f(0xc4)]);if(!_0x30f1d4&&Ae(_0x2a16de,_0x7fc4d0,_0x3f886f))throw new E(_0x379c6f(0x11a));let _0x33c25a=qe(_0x2a16de,_0x7fc4d0,_0x3f886f),_0x98b365=(_0x30f1d4==null?void 0x0:_0x30f1d4[_0x379c6f(0xb1)])??_0x3bf6d5[_0x379c6f(0xb1)],_0x3f3610=b(_0x3bf6d5['metadata'],_0x98b365,{...Se,..._0x3bf6d5[_0x379c6f(0xf8)]});if(_0x30f1d4)return _0x30f1d4[_0x379c6f(0x107)]=_0x5e660a[_0x379c6f(0x113)],Oe(_0x2a16de,_0x7fc4d0,_0x3f886f),ze(_0x2a16de,_0x7fc4d0,_0x3f886f,_0x33c25a),N(_0x2a16de,_0x30f1d4),{'nextDocumentData':_0x5c9390,'nextMetadata':_0x3f3610,'cursorOffset':_0x7fc4d0+0x1};if(_0x7fc4d0===_0x3f886f){var _0x4f4dc7,_0x14ce34;let _0x4d8275=''+_0x4e2eb9[_0x379c6f(0xd9)]+_0x4e2eb9[_0x379c6f(0xf3)]+_0x4e2eb9[_0x379c6f(0xd8)];P(_0x2a16de,_0x7fc4d0,_0x4d8275,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x4e2158(new Set((_0x4f4dc7=_0x2a16de[_0x379c6f(0xa8)])==null?void 0x0:_0x4f4dc7['map'](_0x514e03=>_0x514e03[_0x379c6f(0xd5)]))),'paragraphStyle':Re(!0x0,!0x0,_0x33c25a)}],'blockRanges':[{'blockId':_0x98b365,'blockType':_0x5e660a[_0x379c6f(0x113)],'startIndex':0x0,'endIndex':_0x4d8275['length']-0x1}]});let _0x1269be=(_0x14ce34=_0x2a16de[_0x379c6f(0x13e)])==null?void 0x0:_0x14ce34[_0x379c6f(0x124)](_0x58f73f=>_0x58f73f[_0x379c6f(0xb1)]===_0x98b365);return _0x1269be&&N(_0x2a16de,_0x1269be),{'nextDocumentData':_0x5c9390,'nextMetadata':_0x3f3610,'cursorOffset':_0x7fc4d0+0x1};}P(_0x2a16de,_0x3f886f,_0x4e2eb9[_0x379c6f(0xd8)]),P(_0x2a16de,_0x7fc4d0,_0x4e2eb9[_0x379c6f(0xd9)]),ze(_0x2a16de,_0x7fc4d0,_0x3f886f+0x1,_0x33c25a);let _0x540b7a={'blockId':_0x98b365,'blockType':_0x5e660a[_0x379c6f(0x113)],'startIndex':_0x7fc4d0,'endIndex':_0x3f886f+0x1};return _0x2a16de['blockRanges']=[..._0x2a16de[_0x379c6f(0x13e)]??[],_0x540b7a]['sort']((_0x1f7eb3,_0x5a5f81)=>_0x1f7eb3[_0x379c6f(0x108)]-_0x5a5f81[_0x379c6f(0x108)]),N(_0x2a16de,_0x540b7a),{'nextDocumentData':_0x5c9390,'nextMetadata':_0x3f3610,'cursorOffset':_0x7fc4d0+0x1};}function Oe(_0x30deb0,_0x2e0320,_0x3a55d6){const _0x3fcd78=_0x47262e;(_0x30deb0['paragraphs']??[])[_0x3fcd78(0x112)](_0x18a442=>_0x18a442[_0x3fcd78(0x108)]>_0x2e0320&&_0x18a442[_0x3fcd78(0x108)]<_0x3a55d6)[_0x3fcd78(0x138)](_0x53de5f=>{const _0x568120=_0x3fcd78;let _0x544edc={..._0x53de5f['paragraphStyle']??{}};delete _0x544edc[_0x568120(0xf4)],delete _0x544edc[_0x568120(0xf5)],_0x53de5f[_0x568120(0x14a)]=_0x544edc;});}function ke(_0x158462,_0x3f9328){const _0x9df4c=_0x47262e;return _0x158462==null||_0x3f9328==null||_0x158462===_0x3f9328?null:{'startOffset':Math['min'](_0x158462,_0x3f9328),'endOffset':Math[_0x9df4c(0x140)](_0x158462,_0x3f9328)};}function Ae(_0x229926,_0x3ee356,_0x20cf6a){const _0x1e0604=_0x47262e;return(_0x229926[_0x1e0604(0x13e)]??[])[_0x1e0604(0xaf)](_0x56eb56=>{let _0x539e1e=_0x13b73c(_0x56eb56);return _0x3ee356===_0x20cf6a?_0xa244f6(_0x539e1e,_0x3ee356):_0xaf64f7(_0x539e1e,{'startOffset':_0x3ee356,'endOffset':_0x20cf6a});});}function je(_0x2b6bd2){const _0x2b5404=_0x47262e;return{'nextDocumentData':O(_0x2b6bd2[_0x2b5404(0xa5)]),'nextMetadata':b(_0x2b6bd2[_0x2b5404(0xee)],_0x2b6bd2[_0x2b5404(0xb1)],_0x2b6bd2[_0x2b5404(0xf8)]),'cursorOffset':0x0};}function D(_0x4e4e8d){const _0x4f5fe8=_0x47262e;let _0x45a44f=O(_0x4e4e8d[_0x4f5fe8(0xa5)]),_0x485101=A(_0x45a44f),_0x2e9cb6=Fe(_0x485101,_0x4e4e8d['blockId']);if(!_0x2e9cb6)return null;let _0x5c5417=He(_0x485101,_0x2e9cb6);return{'nextDocumentData':_0x45a44f,'nextMetadata':x(_0x4e4e8d[_0x4f5fe8(0xee)],_0x4e4e8d['blockId']),'cursorOffset':_0x5c5417};}function Me(_0x5bd67a){const _0x2c8f4c=_0x47262e;var _0x75e3c4;let _0x12a5f6=O(_0x5bd67a[_0x2c8f4c(0xa5)]),_0x5cdb7d=A(_0x12a5f6),_0x11e0a2=Fe(_0x5cdb7d,_0x5bd67a[_0x2c8f4c(0xb1)]);if(!_0x11e0a2)return null;let _0x50cca8=_0x13b73c(_0x11e0a2);return F(_0x5cdb7d,_0x50cca8[_0x2c8f4c(0xe7)],_0x50cca8[_0x2c8f4c(0xe1)]),_0x5cdb7d[_0x2c8f4c(0x13e)]=(_0x75e3c4=_0x5cdb7d[_0x2c8f4c(0x13e)])==null?void 0x0:_0x75e3c4[_0x2c8f4c(0x112)](_0x53e3b1=>_0x53e3b1['blockId']!==_0x5bd67a[_0x2c8f4c(0xb1)]),{'nextDocumentData':_0x12a5f6,'nextMetadata':x(_0x5bd67a['metadata'],_0x5bd67a[_0x2c8f4c(0xb1)]),'cursorOffset':_0x11e0a2[_0x2c8f4c(0x108)]};}function Ne(_0x4c7542){const _0x49139a=_0x47262e;let _0x390cf4=O(_0x4c7542[_0x49139a(0xa5)]),_0x4c64a4=A(_0x390cf4),_0x1f94f3=Le(_0x4c64a4,_0x4c7542[_0x49139a(0x126)]);return _0x1f94f3&&Pe(_0x390cf4,_0x4c64a4,_0x1f94f3,_0x4c7542['cursorOffset'],_0x4c7542['paragraphStartIndex'])||null;}function Pe(_0x53243f,_0x43ca75,_0x2ae445,_0x47c42f,_0xf8b813){const _0x571978=_0x47262e;let _0x2d60ad=$e(_0x43ca75,_0x2ae445,_0x47c42f,_0xf8b813);if(!_0x2d60ad)return null;let _0x31b531=_0x2d60ad[_0x571978(0x128)]-0x1;return F(_0x43ca75,_0x2d60ad[_0x571978(0x120)][_0x571978(0x108)],_0x2d60ad[_0x571978(0x120)][_0x571978(0x108)]+0x1),{'nextDocumentData':_0x53243f,'cursorOffset':_0x31b531};}function Fe(_0x493169,_0x54cdce){const _0x253d89=_0x47262e;var _0x4f7d67;return _0x493169==null||(_0x4f7d67=_0x493169[_0x253d89(0x13e)])==null?void 0x0:_0x4f7d67['find'](_0x35c05b=>_0x35c05b[_0x253d89(0x107)]===_0x5e660a[_0x253d89(0x113)]&&_0x35c05b[_0x253d89(0xb1)]===_0x54cdce);}function Ie(_0x8ef6fe){const _0x309300=_0x47262e;let _0x56915c=_0x8ef6fe[_0x309300(0xa5)][_0x309300(0xa7)];if(!_0x56915c)return!0x1;let _0x12eaa0=_0x8ef6fe[_0x309300(0xb5)]===_0x309300(0xef)?_0x8ef6fe[_0x309300(0x126)]-0x1:_0x8ef6fe[_0x309300(0x126)],_0x1b4de5=_0x8ef6fe[_0x309300(0xb5)]===_0x309300(0xd6)?_0x8ef6fe[_0x309300(0x126)]+0x1:_0x12eaa0;return(_0x56915c[_0x309300(0x13e)]??[])[_0x309300(0xaf)](_0x14967c=>_0x14967c[_0x309300(0x107)]===_0x5e660a[_0x309300(0x113)]?_0x12eaa0===_0x14967c[_0x309300(0x108)]||_0x12eaa0===_0x14967c['endIndex']||_0x1b4de5===_0x14967c['startIndex']||_0x1b4de5===_0x14967c['endIndex']:!0x1);}function Le(_0x584f31,_0x28a6ad){const _0x28ce1a=_0x47262e;var _0x3a8a84;return(_0x3a8a84=_0x584f31[_0x28ce1a(0x13e)])==null?void 0x0:_0x3a8a84['find'](_0x14f07c=>{const _0x2700c4=_0x28ce1a;let _0x275f21=M(_0x14f07c);return _0x14f07c[_0x2700c4(0x107)]===_0x5e660a[_0x2700c4(0x113)]&&_0x14f07c['startIndex']<=_0x28a6ad&&_0x28a6ad<=_0x275f21+0x2;});}function Re(_0x5b2eba,_0x2143dc,_0x29729b=!0x1){const _0x46a91b=_0x47262e;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x305636[_0x46a91b(0xb9)],'keepNext':_0x2143dc?_0x305636[_0x46a91b(0x10d)]:_0x305636[_0x46a91b(0xb9)],'widowControl':_0x305636[_0x46a91b(0xb9)],..._0x5b2eba&&_0x29729b?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x357c1d,_0x12cbd9,_0x58f251,_0x4070de=!0x1){const _0x291c04=_0x47262e;let _0x27e209=(_0x357c1d[_0x291c04(0xa8)]??[])[_0x291c04(0x112)](_0x246028=>_0x246028[_0x291c04(0x108)]>_0x12cbd9&&_0x246028[_0x291c04(0x108)]<_0x58f251);_0x27e209[_0x291c04(0x138)]((_0xabd74,_0x20aa41)=>{const _0x3abca3=_0x291c04;_0xabd74['paragraphStyle']={..._0xabd74[_0x3abca3(0x14a)]??{},...Re(_0x20aa41===0x0,_0x20aa41===_0x27e209[_0x3abca3(0xcb)]-0x1,_0x4070de)};});}function Be(_0x22aedc){const _0x2cf7ae=_0x47262e;var _0x591490,_0x205438;let _0x4406ff={..._0x22aedc??{}};return delete _0x4406ff[_0x2cf7ae(0x102)],delete _0x4406ff[_0x2cf7ae(0x142)],delete _0x4406ff[_0x2cf7ae(0xf4)],delete _0x4406ff[_0x2cf7ae(0xf5)],delete _0x4406ff[_0x2cf7ae(0x11c)],delete _0x4406ff[_0x2cf7ae(0xed)],delete _0x4406ff['widowControl'],((_0x591490=_0x4406ff[_0x2cf7ae(0xcf)])==null?void 0x0:_0x591490['ff'])===Ee&&((_0x205438=_0x4406ff['textStyle'])==null?void 0x0:_0x205438['fs'])===0xc&&delete _0x4406ff[_0x2cf7ae(0xcf)],_0x4406ff;}function Ve(_0x5e93f2,_0x3495c5){const _0x26eafe=_0x47262e;let _0x47c684=M(_0x3495c5);return(_0x5e93f2[_0x26eafe(0xa8)]??[])[_0x26eafe(0x112)](_0x259742=>_0x259742[_0x26eafe(0x108)]>_0x3495c5[_0x26eafe(0x108)]&&_0x259742[_0x26eafe(0x108)]<_0x47c684);}function He(_0x1ba698,_0xa9a9a0){const _0x401b16=_0x47262e;var _0x11d6eb;let _0x5b6ef2=M(_0xa9a9a0);return Ve(_0x1ba698,_0xa9a9a0)['forEach'](_0x3a423f=>{const _0x25a1de=_0x4005;_0x3a423f[_0x25a1de(0x14a)]=Be(_0x3a423f[_0x25a1de(0x14a)]);}),F(_0x1ba698,_0x5b6ef2,_0x5b6ef2+0x1),F(_0x1ba698,_0xa9a9a0['startIndex'],_0xa9a9a0[_0x401b16(0x108)]+0x1),_0x1ba698[_0x401b16(0x13e)]=(_0x11d6eb=_0x1ba698[_0x401b16(0x13e)])==null?void 0x0:_0x11d6eb['filter'](_0x4921c2=>_0x4921c2['blockId']!==_0xa9a9a0[_0x401b16(0xb1)]),_0xa9a9a0[_0x401b16(0x108)];}function O(_0xb676eb){const _0xc33668=_0x47262e;return{..._0xb676eb,'body':_0xb676eb[_0xc33668(0xa7)]?Ue(_0xb676eb[_0xc33668(0xa7)]):_0xb676eb['body']};}function Ue(_0x553898){const _0x4fac51=_0x47262e;var _0x485758,_0x33dded,_0x5c7e47,_0x5c4098,_0x280d13,_0x428dc2,_0x1d4b36,_0x38aaa9,_0x1bec98;return{..._0x553898,'paragraphs':(_0x485758=_0x553898[_0x4fac51(0xa8)])==null?void 0x0:_0x485758['map'](_0x2525ba=>({..._0x2525ba,'bullet':k(_0x2525ba[_0x4fac51(0x135)]),'paragraphStyle':k(_0x2525ba[_0x4fac51(0x14a)])})),'sectionBreaks':(_0x33dded=_0x553898[_0x4fac51(0xc8)])==null?void 0x0:_0x33dded[_0x4fac51(0xb2)](_0x2d60e8=>({..._0x2d60e8})),'textRuns':(_0x5c7e47=_0x553898[_0x4fac51(0x13f)])==null?void 0x0:_0x5c7e47['map'](_0x1e51ab=>({..._0x1e51ab})),'tables':(_0x5c4098=_0x553898[_0x4fac51(0xdb)])==null?void 0x0:_0x5c4098[_0x4fac51(0xb2)](_0x2bb0a5=>({..._0x2bb0a5})),'columnGroups':(_0x280d13=_0x553898['columnGroups'])==null?void 0x0:_0x280d13[_0x4fac51(0xb2)](_0x41f704=>{const _0xe80414=_0x4fac51;var _0x1487c8;return{..._0x41f704,'columns':(_0x1487c8=_0x41f704[_0xe80414(0x11d)])==null?void 0x0:_0x1487c8[_0xe80414(0xb2)](_0x2a5db3=>k(_0x2a5db3))};}),'blockRanges':(_0x428dc2=_0x553898[_0x4fac51(0x13e)])==null?void 0x0:_0x428dc2[_0x4fac51(0xb2)](_0x41c4a4=>({..._0x41c4a4})),'customRanges':(_0x1d4b36=_0x553898['customRanges'])==null?void 0x0:_0x1d4b36[_0x4fac51(0xb2)](_0x446350=>({..._0x446350})),'customDecorations':(_0x38aaa9=_0x553898[_0x4fac51(0x141)])==null?void 0x0:_0x38aaa9[_0x4fac51(0xb2)](_0x2f2266=>({..._0x2f2266})),'customBlocks':(_0x1bec98=_0x553898[_0x4fac51(0x12e)])==null?void 0x0:_0x1bec98[_0x4fac51(0xb2)](_0x2986e8=>({..._0x2986e8}))};}function k(_0x8b792e){const _0x1fa3de=_0x47262e;return Array[_0x1fa3de(0xe0)](_0x8b792e)?_0x8b792e[_0x1fa3de(0xb2)](_0x460a77=>k(_0x460a77)):!_0x8b792e||typeof _0x8b792e!='object'?_0x8b792e:Object[_0x1fa3de(0xe6)](Object[_0x1fa3de(0xbd)](_0x8b792e)['map'](([_0x5a5c9f,_0x5329dd])=>[_0x5a5c9f,k(_0x5329dd)]));}function A(_0x40132d){const _0x2c0b68=_0x47262e;if(!_0x40132d[_0x2c0b68(0xa7)])throw Error(_0x2c0b68(0xf9));return _0x40132d[_0x2c0b68(0xa7)];}function _0x305b(){const _0x4df336=['828808wQwmbj','editOp','FALSE','every','_docsCodeModel','reduce','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','filter','CODE','endIndex','object','version','502652rCojPO','toPrimitive','getInstance','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','dataStream','keepLines','columns','getSnapshot','complete','paragraph','registerCommand','_resourceManagerService','getCurrentUnitOfType','find','replaceDocRanges','cursorOffset','columnGroups','endTokenOffset','string','push','onStarting','slice','docs-code.command.cancel-empty-paragraph','customBlocks','deserialize','codes','MUTATION','_injector','constructor','SECTION_BREAK','bullet','unitId','commandService','forEach','370FZirck','removeUnit','min','stringify','function','blockRanges','textRuns','max','customDecorations','indentStart','serialize','getUnit','11754lEWgYT','278208wxbUAr','getOwnPropertyDescriptor','docs-code.command.consume-boundary-delete','next','paragraphStyle','documentData','disposeWithMe','body','paragraphs','defineProperty','getCodeConfig','setCodeConfig','COMMAND','insertOp','520758obMFiW','some','packageName','blockId','map','from','setConfig','direction','DOC_CODE_PLUGIN','removeOp','call','TRUE','monospace','docs-code.command.remove','UNIVER_DOC','entries','handler','endsWith','nextDocumentData','start','asObservable','retain','insertionMode','_initResource','getUnitId','TABLE_CELL_END','sectionBreaks','previousDocumentData','range','length','change$','351869nbecNb','pluginName','textStyle','customRanges','syncExecuteCommand','paragraphStartIndex','docs-code.command.insert','insertLength','paragraphId','right','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','BLOCK_END','BLOCK_START','symbol','tables','TABLE_CELL_START','_configService','docs-code.command.update','deleteLength','isArray','endOffset','set','delete','dispose','getBody','fromEntries','startOffset','parse','nextMetadata','docs-code.mutation.set-config','insert','getTextRanges','keepNext','metadata','left','_config','indexOf','_resources','PARAGRAPH','spaceAbove','spaceBelow','1.0.3','removeCode','config','Document\x20body\x20is\x20required','startTokenOffset','sort','insert-new','get','@univerjs-pro/docs-code','selectionManager','model','_change$','indentEnd','decorate','registerPluginResource','add','keys','blockType','startIndex','docs-code.mutation.remove-config','154224RvZXBi'];_0x305b=function(){return _0x4df336;};return _0x305b();}function We(_0x2f35c7,_0x5685d0,_0x3a1076,_0x8995c5='convert-paragraph'){const _0x563f43=_0x47262e;if(_0x5685d0==null||_0x3a1076==null){let _0x305c52=Ke(_0x2f35c7);return{'startOffset':_0x305c52,'endOffset':_0x305c52};}let _0xe09a70=Math[_0x563f43(0x13b)](_0x5685d0,_0x3a1076),_0x30a176=Math['max'](_0x5685d0,_0x3a1076),_0x13828c=Ze(_0x2f35c7,_0xe09a70,_0x30a176);return _0xe09a70===_0x30a176?_0x8995c5===_0x563f43(0xfc)?{'startOffset':_0xe09a70,'endOffset':_0x30a176}:Ge(_0x2f35c7,_0xe09a70,_0x13828c):Je(_0x2f35c7,_0xe09a70,_0x30a176,_0x13828c);}function Ge(_0x3aac02,_0x58918c,_0x3e373d){const _0x453504=_0x47262e;let _0x418cf8=Ye(_0x3aac02,_0x58918c);if(_0x418cf8){let _0x4f077c=j(_0x3aac02,_0x418cf8,_0x3e373d);if(_0x4f077c<_0x418cf8[_0x453504(0x108)])return{'startOffset':_0x4f077c,'endOffset':_0x3e373d?Math[_0x453504(0x13b)](_0x418cf8[_0x453504(0x108)]+0x1,_0x3e373d[_0x453504(0xe1)]):_0x418cf8['startIndex']+0x1};}let _0x159ac1=_0x58918c===0x0&&_0x3aac02[_0x453504(0x11b)][0x0]===_0x4e2eb9['PARAGRAPH']?0x1:_0x58918c;return{'startOffset':_0x159ac1,'endOffset':_0x159ac1};}function Ke(_0x5994d4){const _0x4ac359=_0x47262e;return _0x5994d4[_0x4ac359(0x11b)][_0x4ac359(0xbf)](_0x4e2eb9[_0x4ac359(0x134)])?Math['max'](0x0,_0x5994d4[_0x4ac359(0x11b)][_0x4ac359(0xcb)]-0x1):_0x5994d4[_0x4ac359(0x11b)][_0x4ac359(0xcb)];}function qe(_0x134211,_0x79d171,_0x4234a5){const _0x5dbe9c=_0x47262e;var _0x38cc19;let _0x34f406=Math[_0x5dbe9c(0x13b)](_0x79d171,_0x4234a5),_0x141f8f=Math['max'](_0x79d171,_0x4234a5);return!!((_0x38cc19=_0x134211['tables'])!=null&&_0x38cc19[_0x5dbe9c(0xaf)](_0x3bd783=>_0x34f406>_0x3bd783[_0x5dbe9c(0x108)]&&_0x34f406<_0x3bd783[_0x5dbe9c(0x114)]||_0x141f8f>_0x3bd783['startIndex']&&_0x141f8f<_0x3bd783[_0x5dbe9c(0x114)]||_0x34f406<=_0x3bd783[_0x5dbe9c(0x108)]&&_0x141f8f>=_0x3bd783[_0x5dbe9c(0x114)]));}function Je(_0x268327,_0x4a239c,_0x3f9997,_0x1a5e82){const _0x5b085d=_0x47262e;let _0x3f12f6=[..._0x268327['paragraphs']??[]][_0x5b085d(0xfb)]((_0x49030b,_0x37699c)=>_0x49030b['startIndex']-_0x37699c[_0x5b085d(0x108)]),_0x424d38=_0x412152(_0x268327),_0x339bbf=_0x3f12f6[_0x5b085d(0x124)](_0x41b8db=>j(_0x268327,_0x41b8db,_0x1a5e82,_0x424d38)<=_0x4a239c&&_0x4a239c<=_0x41b8db[_0x5b085d(0x108)]),_0x1f4192=_0x3f12f6[_0x5b085d(0x124)](_0x56bc8=>_0x56bc8['startIndex']>=_0x3f9997-0x1)??_0x3f12f6[_0x3f12f6[_0x5b085d(0xcb)]-0x1];return{'startOffset':_0x339bbf?j(_0x268327,_0x339bbf,_0x1a5e82,_0x424d38):_0x4a239c,'endOffset':_0x1f4192?Xe(_0x1f4192,_0x1a5e82):_0x3f9997};}function Ye(_0x5ba20f,_0x4655f3){const _0x5419cf=_0x47262e;let _0x126abd=[..._0x5ba20f[_0x5419cf(0xa8)]??[]][_0x5419cf(0xfb)]((_0x5b3002,_0xdb3da7)=>_0x5b3002[_0x5419cf(0x108)]-_0xdb3da7[_0x5419cf(0x108)]),_0x2c37f6=_0x412152(_0x5ba20f);return _0x126abd[_0x5419cf(0x124)](_0x4651bb=>(_0x2c37f6[_0x5419cf(0xfd)](_0x4651bb[_0x5419cf(0x108)])??0x0)<=_0x4655f3&&_0x4655f3<=_0x4651bb[_0x5419cf(0x108)]);}function j(_0x191e56,_0x3e08d4,_0x3c6e89,_0x35b663){const _0x46c23f=_0x47262e;let _0x4bb2ec=(_0x35b663==null?void 0x0:_0x35b663['get'](_0x3e08d4[_0x46c23f(0x108)]))??_0x420e80(_0x191e56,_0x3e08d4);return _0x3c6e89?Math[_0x46c23f(0x140)](_0x4bb2ec,_0x3c6e89['startOffset']):_0x4bb2ec;}function Xe(_0x27193f,_0x3cdd01){const _0xe16e96=_0x47262e;let _0x530fed=_0x27193f[_0xe16e96(0x108)]+0x1;return _0x3cdd01?Math[_0xe16e96(0x13b)](_0x530fed,_0x3cdd01['endOffset']):_0x530fed;}function Ze(_0x386d4a,_0x2f3387,_0x244643){const _0x268ad7=_0x47262e;let _0x5ddc8e=Qe(_0x386d4a,_0x2f3387),_0x3dc1c7=Qe(_0x386d4a,_0x2f3387===_0x244643?_0x244643:Math[_0x268ad7(0x140)](_0x2f3387,_0x244643-0x1));if(_0x5ddc8e||_0x3dc1c7){if(!_0x5ddc8e||!_0x3dc1c7||_0x5ddc8e[_0x268ad7(0xfa)]!==_0x3dc1c7['startTokenOffset']||_0x5ddc8e[_0x268ad7(0x128)]!==_0x3dc1c7[_0x268ad7(0x128)])throw new E();return _0x5ddc8e;}}function Qe(_0x183fbb,_0x8d8dd6){const _0x4866cf=_0x47262e;let _0x2b2733=_0x183fbb[_0x4866cf(0x11b)],_0x59dcd5=-0x1;for(let _0x2b841d=Math[_0x4866cf(0x13b)](_0x8d8dd6,_0x2b2733[_0x4866cf(0xcb)]-0x1);_0x2b841d>=0x0;_0x2b841d--){let _0x45ef38=_0x2b2733[_0x2b841d];if(_0x45ef38===_0x4e2eb9['TABLE_CELL_END'])return;if(_0x45ef38===_0x4e2eb9[_0x4866cf(0xdc)]){_0x59dcd5=_0x2b841d;break;}}if(_0x59dcd5<0x0)return;let _0x584920=_0x2b2733[_0x4866cf(0xf1)](_0x4e2eb9[_0x4866cf(0xc7)],_0x59dcd5+0x1);if(!(_0x584920<0x0||_0x8d8dd6<_0x59dcd5+0x1||_0x8d8dd6>_0x584920-0x1))return{'startOffset':_0x59dcd5+0x1,'endOffset':Math[_0x4866cf(0x140)](_0x59dcd5+0x1,_0x584920-0x1),'startTokenOffset':_0x59dcd5,'endTokenOffset':_0x584920};}function M(_0x5d3bd4){return _0x13b73c(_0x5d3bd4)['endOffset']-0x1;}function $e(_0x4a1ca4,_0x499791,_0x2c7e67,_0x4df8d9){const _0x4f3036=_0x47262e;let _0x3a2602=M(_0x499791),_0x3ea20c=(_0x4a1ca4[_0x4f3036(0xa8)]??[])[_0x4f3036(0x124)](_0x3d3b2c=>_0x3d3b2c[_0x4f3036(0x108)]===_0x3a2602+0x1);if(!_0x3ea20c||_0x4df8d9!=null&&_0x3ea20c[_0x4f3036(0x108)]!==_0x4df8d9||_0x2c7e67!=null&&(_0x2c7e67<_0x3a2602||_0x2c7e67>_0x3ea20c[_0x4f3036(0x108)]+0x1)||_0x4a1ca4[_0x4f3036(0x11b)][_0x3ea20c[_0x4f3036(0x108)]]!==_0x4e2eb9[_0x4f3036(0xf3)])return null;let _0xa892d9=_0x420e80(_0x4a1ca4,_0x3ea20c),_0x49f7fb=_0x4a1ca4[_0x4f3036(0x11b)][_0x4f3036(0x12c)](_0xa892d9,_0x3ea20c[_0x4f3036(0x108)]);return Array[_0x4f3036(0xb3)](_0x49f7fb)[_0x4f3036(0x10e)](_0x39ff90=>_0x39ff90===_0x4e2eb9[_0x4f3036(0xd8)])?{'paragraph':_0x3ea20c,'endTokenOffset':_0x3a2602}:null;}function N(_0x501601,_0x35e791){const _0xd927eb=_0x47262e;var _0x550b0f;let _0x524252=M(_0x35e791),_0x53a94c=_0x501601['dataStream'][_0x524252+0x1];(_0x53a94c===_0x4e2eb9[_0xd927eb(0x134)]||_0x53a94c===void 0x0)&&P(_0x501601,_0x524252+0x1,_0x4e2eb9['PARAGRAPH'],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x4e2158(new Set((_0x550b0f=_0x501601[_0xd927eb(0xa8)])==null?void 0x0:_0x550b0f[_0xd927eb(0xb2)](_0x14f923=>_0x14f923[_0xd927eb(0xd5)])))}]});}function P(_0xf543da,_0x13e78b,_0x188b5d,_0x579bbc={}){const _0x1b7549=_0x47262e;var _0x1817c5,_0x291b29;_0x188b5d&&(_0xf543da[_0x1b7549(0x11b)]=''+_0xf543da[_0x1b7549(0x11b)]['slice'](0x0,_0x13e78b)+_0x188b5d+_0xf543da[_0x1b7549(0x11b)][_0x1b7549(0x12c)](_0x13e78b),et(_0xf543da,_0x13e78b,_0x188b5d[_0x1b7549(0xcb)]),(_0x1817c5=_0x579bbc[_0x1b7549(0xa8)])!=null&&_0x1817c5[_0x1b7549(0xcb)]&&(_0xf543da[_0x1b7549(0xa8)]=[..._0xf543da['paragraphs']??[],..._0x579bbc[_0x1b7549(0xa8)][_0x1b7549(0xb2)](_0x26a5f3=>({..._0x26a5f3,'startIndex':_0x26a5f3[_0x1b7549(0x108)]+_0x13e78b}))][_0x1b7549(0xfb)]((_0x1108ff,_0x5672e8)=>_0x1108ff[_0x1b7549(0x108)]-_0x5672e8[_0x1b7549(0x108)])),(_0x291b29=_0x579bbc['blockRanges'])!=null&&_0x291b29[_0x1b7549(0xcb)]&&(_0xf543da[_0x1b7549(0x13e)]=[..._0xf543da[_0x1b7549(0x13e)]??[],..._0x579bbc[_0x1b7549(0x13e)][_0x1b7549(0xb2)](_0x33d64f=>({..._0x33d64f,'startIndex':_0x33d64f[_0x1b7549(0x108)]+_0x13e78b,'endIndex':_0x33d64f[_0x1b7549(0x114)]+_0x13e78b}))][_0x1b7549(0xfb)]((_0x498e79,_0x16daec)=>_0x498e79['startIndex']-_0x16daec[_0x1b7549(0x108)])));}function F(_0xcdbbe9,_0x2c3263,_0x2fdf80){const _0x37f594=_0x47262e;let _0x5bb469=_0x2fdf80-_0x2c3263;_0xcdbbe9[_0x37f594(0x11b)]=''+_0xcdbbe9[_0x37f594(0x11b)][_0x37f594(0x12c)](0x0,_0x2c3263)+_0xcdbbe9[_0x37f594(0x11b)][_0x37f594(0x12c)](_0x2fdf80),tt(_0xcdbbe9,_0x2c3263,_0x5bb469);}function et(_0x482ff5,_0x50a13d,_0x2c4148){const _0x4c40d9=_0x47262e;_0x482ff5[_0x4c40d9(0xa8)]=I(_0x482ff5[_0x4c40d9(0xa8)],_0x50a13d,_0x2c4148),_0x482ff5[_0x4c40d9(0xc8)]=I(_0x482ff5[_0x4c40d9(0xc8)],_0x50a13d,_0x2c4148),_0x482ff5[_0x4c40d9(0x12e)]=I(_0x482ff5[_0x4c40d9(0x12e)],_0x50a13d,_0x2c4148),_0x482ff5[_0x4c40d9(0x13f)]=nt(_0x482ff5[_0x4c40d9(0x13f)],_0x50a13d,_0x2c4148),_0x482ff5[_0x4c40d9(0xdb)]=rt(_0x482ff5[_0x4c40d9(0xdb)],_0x50a13d,_0x2c4148),_0x482ff5['columnGroups']=R(_0x482ff5[_0x4c40d9(0x127)],_0x50a13d,_0x2c4148),_0x482ff5[_0x4c40d9(0xd0)]=R(_0x482ff5[_0x4c40d9(0xd0)],_0x50a13d,_0x2c4148),_0x482ff5[_0x4c40d9(0x141)]=R(_0x482ff5['customDecorations'],_0x50a13d,_0x2c4148),_0x482ff5[_0x4c40d9(0x13e)]=R(_0x482ff5[_0x4c40d9(0x13e)],_0x50a13d,_0x2c4148);}function tt(_0x26c348,_0x5d7fab,_0x8b1c19){const _0x31768f=_0x47262e;var _0xce4ec7,_0x470158;_0x26c348[_0x31768f(0xa8)]=L(_0x26c348[_0x31768f(0xa8)],_0x5d7fab,_0x8b1c19),_0x26c348[_0x31768f(0xc8)]=L(_0x26c348['sectionBreaks'],_0x5d7fab,_0x8b1c19),_0x26c348[_0x31768f(0x12e)]=L(_0x26c348[_0x31768f(0x12e)],_0x5d7fab,_0x8b1c19),_0x26c348[_0x31768f(0x13f)]=(_0xce4ec7=it((_0x470158=_0x26c348[_0x31768f(0x13f)])==null?void 0x0:_0x470158[_0x31768f(0xb2)](_0x11ae97=>({..._0x11ae97,'startIndex':_0x11ae97['st'],'endIndex':_0x11ae97['ed']})),_0x5d7fab,_0x8b1c19))==null?void 0x0:_0xce4ec7[_0x31768f(0xb2)](_0x17d9c7=>{let {startIndex:_0x4e9338,endIndex:_0xd4d691,..._0x32f5c4}=_0x17d9c7;return{..._0x32f5c4,'st':_0x4e9338,'ed':_0xd4d691};}),_0x26c348[_0x31768f(0xdb)]=it(_0x26c348[_0x31768f(0xdb)],_0x5d7fab,_0x8b1c19),_0x26c348[_0x31768f(0x127)]=z(_0x26c348[_0x31768f(0x127)],_0x5d7fab,_0x8b1c19),_0x26c348[_0x31768f(0xd0)]=z(_0x26c348[_0x31768f(0xd0)],_0x5d7fab,_0x8b1c19),_0x26c348['customDecorations']=z(_0x26c348[_0x31768f(0x141)],_0x5d7fab,_0x8b1c19),_0x26c348[_0x31768f(0x13e)]=z(_0x26c348[_0x31768f(0x13e)],_0x5d7fab,_0x8b1c19);}function I(_0x1767ba,_0x2059c7,_0x58ada6){const _0x596a1f=_0x47262e;return _0x1767ba==null?void 0x0:_0x1767ba[_0x596a1f(0xb2)](_0xe1c518=>_0xe1c518[_0x596a1f(0x108)]>=_0x2059c7?{..._0xe1c518,'startIndex':_0xe1c518[_0x596a1f(0x108)]+_0x58ada6}:_0xe1c518);}function L(_0x5c56bf,_0x2b8fce,_0x332aff){const _0xda086d=_0x47262e;let _0x862433=_0x2b8fce+_0x332aff;return _0x5c56bf==null?void 0x0:_0x5c56bf[_0xda086d(0xb2)](_0x5b6891=>_0x5b6891[_0xda086d(0x108)]>=_0x2b8fce&&_0x5b6891[_0xda086d(0x108)]<_0x862433?null:_0x5b6891[_0xda086d(0x108)]>=_0x862433?{..._0x5b6891,'startIndex':_0x5b6891['startIndex']-_0x332aff}:_0x5b6891)['filter'](_0x427e4b=>_0x427e4b!=null);}function nt(_0x1ee832,_0x18b6c4,_0x3c2943){const _0x54abca=_0x47262e;return _0x1ee832==null?void 0x0:_0x1ee832[_0x54abca(0xb2)](_0x55b284=>_0x55b284['st']>=_0x18b6c4?{..._0x55b284,'st':_0x55b284['st']+_0x3c2943,'ed':_0x55b284['ed']+_0x3c2943}:_0x55b284['ed']>_0x18b6c4?{..._0x55b284,'ed':_0x55b284['ed']+_0x3c2943}:_0x55b284);}function R(_0x4673de,_0x4f755d,_0x1c15f6){const _0x46edd3=_0x47262e;return _0x4673de==null?void 0x0:_0x4673de[_0x46edd3(0xb2)](_0x31fec1=>_0x243408(_0x31fec1,_0x4f755d,_0x1c15f6));}function rt(_0x58557f,_0x4e5f9c,_0x18b67a){const _0x163836=_0x47262e;return _0x58557f==null?void 0x0:_0x58557f[_0x163836(0xb2)](_0x55c438=>_0x5cd158(_0x55c438,_0x4e5f9c,_0x18b67a));}function z(_0x2d663b,_0x300983,_0x57bcef){const _0x196e17=_0x47262e;return _0x2d663b==null?void 0x0:_0x2d663b[_0x196e17(0xb2)](_0x224ec8=>_0x2ab905(_0x224ec8,_0x300983,_0x57bcef))['filter'](_0x332a01=>_0x332a01!=null);}function it(_0x440631,_0x40125f,_0x1b160a){const _0x47f687=_0x47262e;return _0x440631==null?void 0x0:_0x440631[_0x47f687(0xb2)](_0x37b6bd=>_0x31ca35(_0x37b6bd,_0x40125f,_0x1b160a))[_0x47f687(0x112)](_0xe5b00b=>_0xe5b00b!=null);}const at={'id':'docs-code.command.insert-below','type':_0x56cb03['COMMAND'],'handler':_0x2cebf6=>{const _0x28eaf7=_0x47262e;var _0x46eb06;if(_0x288372(G(_0x2cebf6)))return!0x1;let _0x11a883=_0x50d82b(_0x2cebf6);if(_0x11a883)return _0x2cebf6[_0x28eaf7(0xfd)](_0x590f1e)[_0x28eaf7(0xd1)](B['id'],{'startOffset':_0x11a883[_0x28eaf7(0xe7)],'endOffset':_0x11a883[_0x28eaf7(0xe1)],'insertionMode':'insert-new','unitId':_0x11a883[_0x28eaf7(0x136)]});let _0x309501=ft(_0x2cebf6);if(!_0x309501)return!0x1;let _0x9973f4=(_0x46eb06=_0x2cebf6[_0x28eaf7(0xfd)](_0x3505d2)['getCurrentUnitOfType'](_0x4c80f2['UNIVER_DOC']))==null?void 0x0:_0x46eb06['getBody'](),_0x546c01=_0x9973f4?_0x5e6434(_0x9973f4,_0x309501):_0x309501[_0x28eaf7(0x108)]+0x1;return _0x2cebf6['get'](_0x590f1e)[_0x28eaf7(0xd1)](B['id'],{'startOffset':_0x546c01,'endOffset':_0x546c01});}},ot={'id':_0x47262e(0x148),'type':_0x56cb03[_0x47262e(0xac)],'handler':()=>!0x0},B={'id':_0x47262e(0xd3),'type':_0x56cb03['COMMAND'],'handler':(_0x2a41e4,_0x3a48e0)=>{const _0x6db573=_0x47262e;let _0x145a29=W(_0x2a41e4,_0x3a48e0==null?void 0x0:_0x3a48e0[_0x6db573(0x136)]);if(!_0x145a29)return!0x1;let _0x33ede7=G(_0x2a41e4);if(_0x288372(_0x33ede7))return!0x1;let _0x1e0e67=_0x145a29[_0x6db573(0x100)][_0x6db573(0x143)](_0x145a29[_0x6db573(0x136)]),_0x50d4f6=lt(_0x3a48e0,_0x33ede7),_0x2bf6fa=ut(_0x145a29[_0x6db573(0xc9)],_0x50d4f6);if(_0x2bf6fa){if(_0x2bf6fa[_0x6db573(0x107)]!==_0x5e660a[_0x6db573(0x113)])return!0x1;let _0x2df964=D({'blockId':_0x2bf6fa[_0x6db573(0xb1)],'documentData':_0x145a29[_0x6db573(0xc9)],'metadata':_0x1e0e67});if(!_0x2df964)return!0x1;let _0x4b7bd8=Y(_0x145a29[_0x6db573(0x137)],_0x145a29[_0x6db573(0xff)],_0x145a29['unitId'],_0x145a29[_0x6db573(0xc9)],_0x2df964[_0x6db573(0xc0)],B['id'],_0x2df964[_0x6db573(0x126)]);return _0x4b7bd8&&_0x2df964['nextMetadata']&&_0x145a29[_0x6db573(0x100)][_0x6db573(0x12f)](_0x145a29[_0x6db573(0x136)],_0x2df964['nextMetadata']),_0x4b7bd8;}let _0xd2f885=(_0x3a48e0==null?void 0x0:_0x3a48e0['blockId'])??_0x339fc6(0x6),_0x5e265a;try{_0x5e265a=De({'blockId':_0xd2f885,'config':_0x3a48e0==null?void 0x0:_0x3a48e0[_0x6db573(0xf8)],'documentData':_0x145a29[_0x6db573(0xc9)],'endOffset':_0x50d4f6==null?void 0x0:_0x50d4f6[_0x6db573(0xe1)],'insertionMode':_0x3a48e0==null?void 0x0:_0x3a48e0[_0x6db573(0xc4)],'metadata':_0x1e0e67,'startOffset':_0x50d4f6==null?void 0x0:_0x50d4f6[_0x6db573(0xe7)]});}catch(_0x2b4283){if(_0x2b4283 instanceof E)return!0x1;throw _0x2b4283;}let _0x3a4903=Y(_0x145a29['commandService'],_0x145a29[_0x6db573(0xff)],_0x145a29[_0x6db573(0x136)],_0x145a29[_0x6db573(0xc9)],_0x5e265a['nextDocumentData'],B['id'],_0x5e265a[_0x6db573(0x126)]);return _0x3a4903&&_0x5e265a['nextMetadata']&&_0x145a29[_0x6db573(0x100)][_0x6db573(0x12f)](_0x145a29['unitId'],_0x5e265a[_0x6db573(0xe9)]),_0x3a4903;}},st={'id':_0x47262e(0xde),'type':_0x56cb03[_0x47262e(0xac)],'handler':(_0x3f7a21,_0x109f0c)=>{const _0x4fe02b=_0x47262e;if(!_0x109f0c)return!0x1;let _0x13f37d=W(_0x3f7a21,_0x109f0c['unitId']);if(!_0x13f37d)return!0x1;let _0x3e3828=je({'blockId':_0x109f0c[_0x4fe02b(0xb1)],'config':_0x109f0c[_0x4fe02b(0xf8)],'documentData':_0x13f37d[_0x4fe02b(0xc9)],'metadata':_0x13f37d[_0x4fe02b(0x100)][_0x4fe02b(0x143)](_0x13f37d[_0x4fe02b(0x136)])});return _0x3e3828[_0x4fe02b(0xe9)]&&_0x13f37d['model'][_0x4fe02b(0x12f)](_0x13f37d['unitId'],_0x3e3828[_0x4fe02b(0xe9)]),!0x0;}},ct={'id':'docs-code.command.exit','type':_0x56cb03['COMMAND'],'handler':(_0x21d857,_0x188925)=>V[_0x47262e(0xbe)](_0x21d857,_0x188925)},V={'id':'docs-code.command.unwrap','type':_0x56cb03[_0x47262e(0xac)],'handler':(_0x5ac4b7,_0x23fc16)=>{const _0x5304ab=_0x47262e;if(!_0x23fc16)return!0x1;let _0x1a7705=W(_0x5ac4b7,_0x23fc16==null?void 0x0:_0x23fc16['unitId']);if(!_0x1a7705)return!0x1;let _0x597e8a=D({'blockId':_0x23fc16['blockId'],'documentData':_0x1a7705[_0x5304ab(0xc9)],'metadata':_0x1a7705[_0x5304ab(0x100)][_0x5304ab(0x143)](_0x1a7705[_0x5304ab(0x136)])});if(!_0x597e8a)return!0x1;let _0x4f8331=Y(_0x1a7705[_0x5304ab(0x137)],_0x1a7705[_0x5304ab(0xff)],_0x1a7705[_0x5304ab(0x136)],_0x1a7705[_0x5304ab(0xc9)],_0x597e8a['nextDocumentData'],V['id'],_0x597e8a[_0x5304ab(0x126)]);return _0x4f8331&&_0x597e8a[_0x5304ab(0xe9)]&&_0x1a7705['model'][_0x5304ab(0x12f)](_0x1a7705[_0x5304ab(0x136)],_0x597e8a[_0x5304ab(0xe9)]),_0x4f8331;}},H={'id':_0x47262e(0xbb),'type':_0x56cb03[_0x47262e(0xac)],'handler':(_0x3cd248,_0x1c8234)=>{const _0xb2d54d=_0x47262e;if(!_0x1c8234)return!0x1;let _0x390808=W(_0x3cd248,_0x1c8234==null?void 0x0:_0x1c8234[_0xb2d54d(0x136)]);if(!_0x390808)return!0x1;let _0x3122d6=Me({'blockId':_0x1c8234[_0xb2d54d(0xb1)],'documentData':_0x390808[_0xb2d54d(0xc9)],'metadata':_0x390808[_0xb2d54d(0x100)][_0xb2d54d(0x143)](_0x390808['unitId'])});if(!_0x3122d6)return!0x1;let _0x9fac48=Y(_0x390808[_0xb2d54d(0x137)],_0x390808[_0xb2d54d(0xff)],_0x390808[_0xb2d54d(0x136)],_0x390808['previousDocumentData'],_0x3122d6[_0xb2d54d(0xc0)],H['id'],_0x3122d6[_0xb2d54d(0x126)]);return _0x9fac48&&_0x3122d6[_0xb2d54d(0xe9)]&&_0x390808[_0xb2d54d(0x100)][_0xb2d54d(0x12f)](_0x390808['unitId'],_0x3122d6[_0xb2d54d(0xe9)]),_0x9fac48;}},U={'id':_0x47262e(0x12d),'type':_0x56cb03[_0x47262e(0xac)],'handler':(_0x21c440,_0x5cbc9c)=>{const _0x15b1b5=_0x47262e;var _0x1e1f44;let _0x224234=W(_0x21c440,_0x5cbc9c==null?void 0x0:_0x5cbc9c[_0x15b1b5(0x136)]);if(!_0x224234)return!0x1;let _0x411894=(_0x5cbc9c==null?void 0x0:_0x5cbc9c[_0x15b1b5(0x126)])??((_0x1e1f44=G(_0x21c440))==null?void 0x0:_0x1e1f44[_0x15b1b5(0xe7)]);if(_0x411894==null)return!0x1;let _0x16a8e4=Ne({'cursorOffset':_0x411894,'documentData':_0x224234[_0x15b1b5(0xc9)],'paragraphStartIndex':_0x5cbc9c==null?void 0x0:_0x5cbc9c[_0x15b1b5(0xd2)]});return _0x16a8e4?Y(_0x224234[_0x15b1b5(0x137)],_0x224234[_0x15b1b5(0xff)],_0x224234[_0x15b1b5(0x136)],_0x224234['previousDocumentData'],_0x16a8e4['nextDocumentData'],U['id'],_0x16a8e4[_0x15b1b5(0x126)]):!0x1;}};function W(_0x19215e,_0x5fcef8){const _0x460854=_0x47262e;let _0x34d05e=_0x19215e[_0x460854(0xfd)](_0x3505d2),_0x3a0abd=_0x5fcef8?_0x34d05e[_0x460854(0x144)](_0x5fcef8,_0x4c80f2[_0x460854(0xbc)]):_0x34d05e['getCurrentUnitOfType'](_0x4c80f2[_0x460854(0xbc)]);return _0x3a0abd?{'commandService':_0x19215e[_0x460854(0xfd)](_0x590f1e),'model':_0x19215e[_0x460854(0xfd)](w),'previousDocumentData':_0x3a0abd[_0x460854(0x11e)](),'selectionManager':_0x19215e['get'](_0xa4b078),'unitId':_0x3a0abd[_0x460854(0xc6)]()}:null;}function G(_0x18b18f){const _0x53f3e2=_0x47262e;var _0x5dd09c;return(_0x5dd09c=_0x18b18f[_0x53f3e2(0xfd)](_0xa4b078)[_0x53f3e2(0xec)]())==null?void 0x0:_0x5dd09c[0x0];}function lt(_0x4f274a,_0x49134d){const _0x2b262b=_0x47262e;let _0x419968=(_0x4f274a==null?void 0x0:_0x4f274a[_0x2b262b(0xe7)])??(_0x49134d==null?void 0x0:_0x49134d[_0x2b262b(0xe7)]),_0x4e7cb1=(_0x4f274a==null?void 0x0:_0x4f274a[_0x2b262b(0xe1)])??(_0x49134d==null?void 0x0:_0x49134d[_0x2b262b(0xe1)]);if(_0x419968!=null&&_0x4e7cb1!=null)return{'endOffset':Math[_0x2b262b(0x140)](_0x419968,_0x4e7cb1),'startOffset':Math[_0x2b262b(0x13b)](_0x419968,_0x4e7cb1)};}function ut(_0x4cf86f,_0x410818){const _0xb65fd1=_0x47262e;var _0x350fc7;if(!_0x410818)return;let _0x20fd23=dt(_0x410818);return(_0x350fc7=_0x4cf86f['body'])==null||(_0x350fc7=_0x350fc7[_0xb65fd1(0x13e)])==null?void 0x0:_0x350fc7['find'](_0x4a6f0d=>{const _0x576b4b=_0xb65fd1;let _0x21d73a=_0x13b73c(_0x4a6f0d);return _0x410818['startOffset']===_0x410818[_0x576b4b(0xe1)]?_0xa244f6(_0x21d73a,_0x20fd23):_0x8a4026(_0x21d73a,_0x20fd23);});}function dt(_0x372a01){const _0xaecb3f=_0x47262e;return _0x372a01['startOffset']===_0x372a01[_0xaecb3f(0xe1)]?_0x372a01[_0xaecb3f(0xe7)]:_0x372a01[_0xaecb3f(0xe7)]+0x1;}function ft(_0x4f2db9){const _0x287fe8=_0x47262e;let _0x1e4a07=G(_0x4f2db9);if(!_0x1e4a07)return null;let _0xc255e2=_0x4f2db9[_0x287fe8(0xfd)](_0x3505d2)[_0x287fe8(0x123)](_0x4c80f2['UNIVER_DOC']),_0x4d3a07=_0xc255e2==null?void 0x0:_0xc255e2[_0x287fe8(0xe5)]();return _0x4d3a07?_0x39a794[_0x287fe8(0xca)]['getParagraphsInRange'](_0x1e4a07,_0x4d3a07[_0x287fe8(0xa8)]??[],_0x4d3a07[_0x287fe8(0x11b)]??'')[0x0]??null:null;}function pt(_0x55c859,_0x46567a){const _0x31fc30=_0x47262e;let _0x16520a=_0x55c859[_0x31fc30(0xa7)],_0x456f04=_0x46567a['body'],_0x24438e=_0x10a6bd(_0x16520a,_0x456f04);return[_0x24438e&&_0x456f04?mt(_0x456f04,_0x24438e):null,_0x24438e?null:ht(_0x16520a,_0x456f04)]['filter'](Boolean)[_0x31fc30(0x110)]((_0x5f3a78,_0x1765bf)=>_0x1d5524['compose'](_0x5f3a78,_0x1765bf),null);}function mt(_0x3f76c1,_0x1e1268){const _0x611a1e=_0x47262e;let _0xf02700=new _0x4d07a5();return _0xf02700[_0x611a1e(0xc3)](_0x1e1268[_0x611a1e(0xc1)]),_0x1e1268['insertLength']>0x0&&_0xf02700[_0x611a1e(0xeb)](_0x1e1268[_0x611a1e(0xd4)],_0x36cb78(_0x3f76c1,_0x1e1268['start'],_0x1e1268[_0x611a1e(0xc1)]+_0x1e1268['insertLength'],!0x1)),_0x1e1268[_0x611a1e(0xdf)]>0x0&&_0xf02700[_0x611a1e(0xe3)](_0x1e1268['deleteLength']),_0x1d5524['getInstance']()[_0x611a1e(0x10c)](_0xf02700[_0x611a1e(0x143)](),[_0x611a1e(0xa7)]);}function ht(_0x794fa9,_0x130741){const _0x290dbd=_0x47262e;let _0x283686=[],_0x2726b6=_0x794fa9?_t(_0x794fa9):void 0x0,_0x39b2e1=_0x130741?_t(_0x130741):void 0x0;for(let _0x2c125d of gt)K(_0x1d5524[_0x290dbd(0x119)](),['body',_0x2c125d],_0x2726b6==null?void 0x0:_0x2726b6[_0x2c125d],_0x39b2e1==null?void 0x0:_0x39b2e1[_0x2c125d],_0x283686);return _0x283686[_0x290dbd(0x110)]((_0x28959f,_0x191508)=>_0x1d5524['compose'](_0x28959f,_0x191508),null);}const gt=[_0x47262e(0xa8),_0x47262e(0xc8),_0x47262e(0xdb),'columnGroups',_0x47262e(0x13e),_0x47262e(0x12e),_0x47262e(0xd0),'customDecorations',_0x47262e(0x13f)];function _t(_0x1b2104){return _0x1b2104;}function K(_0x13f69f,_0x1099aa,_0x37b03a,_0xeee68a,_0x45a84b){const _0x11a9e9=_0x47262e;if(!J(_0x37b03a,_0xeee68a)){if(_0x37b03a==null){_0x45a84b[_0x11a9e9(0x12a)](_0x13f69f[_0x11a9e9(0xad)](_0x1099aa,_0xeee68a));return;}if(_0xeee68a==null){_0x45a84b['push'](_0x13f69f[_0x11a9e9(0xb7)](_0x1099aa,_0x37b03a));return;}if(Array['isArray'](_0x37b03a)&&Array[_0x11a9e9(0xe0)](_0xeee68a)){vt(_0x13f69f,_0x1099aa,_0x37b03a,_0xeee68a,_0x45a84b);return;}if(q(_0x37b03a)&&q(_0xeee68a)){new Set([...Object[_0x11a9e9(0x106)](_0x37b03a),...Object['keys'](_0xeee68a)])[_0x11a9e9(0x138)](_0x592b06=>{K(_0x13f69f,[..._0x1099aa,_0x592b06],_0x37b03a[_0x592b06],_0xeee68a[_0x592b06],_0x45a84b);});return;}_0x45a84b[_0x11a9e9(0x12a)](_0x13f69f['replaceOp'](_0x1099aa,_0x37b03a,_0xeee68a));}}function vt(_0x1e9125,_0x290219,_0x38ab39,_0x22fdc2,_0x2251f2){const _0x2d6316=_0x47262e;if(_0x38ab39[_0x2d6316(0xcb)]===_0x22fdc2[_0x2d6316(0xcb)]){_0x38ab39[_0x2d6316(0x138)]((_0x403cb0,_0x5b37a4)=>K(_0x1e9125,[..._0x290219,_0x5b37a4],_0x403cb0,_0x22fdc2[_0x5b37a4],_0x2251f2));return;}let _0x448307=0x0;for(;_0x448307<_0x38ab39['length']&&_0x448307<_0x22fdc2[_0x2d6316(0xcb)]&&J(_0x38ab39[_0x448307],_0x22fdc2[_0x448307]);)_0x448307++;let _0x2e4d68=_0x38ab39[_0x2d6316(0xcb)]-0x1,_0x1a4b9c=_0x22fdc2['length']-0x1;for(;_0x2e4d68>=_0x448307&&_0x1a4b9c>=_0x448307&&J(_0x38ab39[_0x2e4d68],_0x22fdc2[_0x1a4b9c]);)_0x2e4d68--,_0x1a4b9c--;for(let _0x2fda2b=_0x2e4d68;_0x2fda2b>=_0x448307;_0x2fda2b--)_0x2251f2[_0x2d6316(0x12a)](_0x1e9125[_0x2d6316(0xb7)]([..._0x290219,_0x2fda2b],_0x38ab39[_0x2fda2b]));for(let _0x1e769b=_0x448307;_0x1e769b<=_0x1a4b9c;_0x1e769b++)_0x2251f2[_0x2d6316(0x12a)](_0x1e9125[_0x2d6316(0xad)]([..._0x290219,_0x1e769b],_0x22fdc2[_0x1e769b]));}function q(_0x8476f6){const _0x40e38b=_0x47262e;return typeof _0x8476f6==_0x40e38b(0x115)&&!!_0x8476f6&&!Array[_0x40e38b(0xe0)](_0x8476f6);}function J(_0x19e448,_0x517746){const _0x2dc7ed=_0x47262e;return JSON[_0x2dc7ed(0x13c)](_0x19e448)===JSON[_0x2dc7ed(0x13c)](_0x517746);}function Y(_0x150d63,_0x13e996,_0x343ff5,_0x5b6426,_0x42f782,_0x56a171,_0x590f8a){const _0x2487a1=_0x47262e;let _0x3cc25b=pt(_0x5b6426,_0x42f782);return _0x3cc25b?!!_0x150d63[_0x2487a1(0xd1)](_0x1711e6['id'],{'unitId':_0x343ff5,'actions':_0x3cc25b,'textRanges':[{'startOffset':_0x590f8a,'endOffset':_0x590f8a,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x56a171}):(_0x13e996[_0x2487a1(0x125)]([{'startOffset':_0x590f8a,'endOffset':_0x590f8a}],{'unitId':_0x343ff5,'subUnitId':_0x343ff5},!0x1),!0x0);}const X=_0x47262e(0xb6);var yt=_0x47262e(0xfe),bt=_0x47262e(0xf6);const xt={};function Z(_0x2192fa,_0x3c3c25){return function(_0xa20550,_0x5ef777){_0x3c3c25(_0xa20550,_0x5ef777,_0x2192fa);};}function St(_0x4f2e66,_0x299933,_0x567b90,_0x125486){const _0x5c94e5=_0x47262e;var _0x4851ae=arguments[_0x5c94e5(0xcb)],_0x36dfe2=_0x4851ae<0x3?_0x299933:_0x125486===null?_0x125486=Object[_0x5c94e5(0x147)](_0x299933,_0x567b90):_0x125486,_0xfd1769;if(typeof Reflect==_0x5c94e5(0x115)&&typeof Reflect['decorate']==_0x5c94e5(0x13d))_0x36dfe2=Reflect[_0x5c94e5(0x103)](_0x4f2e66,_0x299933,_0x567b90,_0x125486);else{for(var _0x2f2853=_0x4f2e66[_0x5c94e5(0xcb)]-0x1;_0x2f2853>=0x0;_0x2f2853--)(_0xfd1769=_0x4f2e66[_0x2f2853])&&(_0x36dfe2=(_0x4851ae<0x3?_0xfd1769(_0x36dfe2):_0x4851ae>0x3?_0xfd1769(_0x299933,_0x567b90,_0x36dfe2):_0xfd1769(_0x299933,_0x567b90))||_0x36dfe2);}return _0x4851ae>0x3&&_0x36dfe2&&Object[_0x5c94e5(0xa9)](_0x299933,_0x567b90,_0x36dfe2),_0x36dfe2;}let Q=class extends _0x4a683f{constructor(_0x2f6481,_0x4a114f){const _0x36edb7=_0x47262e;super(),this['_resourceManagerService']=_0x2f6481,this[_0x36edb7(0x10f)]=_0x4a114f,this[_0x36edb7(0xc5)]();}[_0x47262e(0xc5)](){const _0x5d9004=_0x47262e;this['disposeWithMe'](this[_0x5d9004(0x122)][_0x5d9004(0x104)]({'pluginName':X,'businesses':[_0x4c80f2[_0x5d9004(0xbc)]],'toJson':_0x1f2d34=>JSON[_0x5d9004(0x13c)](this['_docsCodeModel'][_0x5d9004(0x143)](_0x1f2d34)),'parseJson':_0x412a0d=>y(JSON[_0x5d9004(0xe8)](_0x412a0d)),'onLoad':(_0x5b85a,_0x26ae26)=>this[_0x5d9004(0x10f)][_0x5d9004(0x12f)](_0x5b85a,_0x26ae26),'onUnLoad':_0x2000aa=>this[_0x5d9004(0x10f)][_0x5d9004(0x13a)](_0x2000aa)}));}};Q=St([Z(0x0,_0x5bbb3a),Z(0x1,_0x20224e(w))],Q);let $=class extends _0x947f63{constructor(_0x5302fa=xt,_0x426c7b,_0x43f0ef,_0x36b15a){const _0x950805=_0x47262e;super(),this['_config']=_0x5302fa,this[_0x950805(0x132)]=_0x426c7b,this['_commandService']=_0x43f0ef,this['_configService']=_0x36b15a;let {..._0xecb0e2}=_0x3335f3({},xt,this[_0x950805(0xf0)]);this[_0x950805(0xdd)][_0x950805(0xb4)]('docs-code.config',_0xecb0e2);}[_0x47262e(0x12b)](){const _0x1a92f6=_0x47262e;this[_0x1a92f6(0x132)][_0x1a92f6(0x105)]([w]),this[_0x1a92f6(0x132)][_0x1a92f6(0x105)]([Q]),this[_0x1a92f6(0x132)][_0x1a92f6(0xfd)](w),this[_0x1a92f6(0x132)][_0x1a92f6(0xfd)](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x1a92f6(0x138)](_0xd4956b=>this[_0x1a92f6(0xa6)](this['_commandService'][_0x1a92f6(0x121)](_0xd4956b)));}};C($,_0x47262e(0xce),X),C($,_0x47262e(0xb0),yt),C($,_0x47262e(0x116),bt),C($,'type',_0x4c80f2[_0x47262e(0xbc)]),$=St([_0x5a7055(_0x4d7e7b,_0x18c0f9),Z(0x1,_0x20224e(_0x31802d)),Z(0x2,_0x590f1e),Z(0x3,_0x5308c5)],$);export{X as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,ot as DocsCodeConsumeBoundaryDeleteCommand,at as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,w as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,st as DocsCodeUpdateCommand,T as RemoveDocsCodeConfigMutation,Te as SetDocsCodeConfigMutation,$ as UniverDocsCodePlugin,Ne as buildCancelEmptyCodeParagraphActions,Ie as isCodeBoundaryDelete,v as normalizeDocsCodeConfig,y as normalizeDocsCodeMetadataResource};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x50df91=_0x4af0;function _0x2c7b(){var _0x57019c=['34922UlPUgl','find','7921375vCmVoc','remove','object','function','_createFDocumentCode','syncExecuteCommand','_getDocumentData','createInstance','decorate','_blockId','5345862rIwted','7ySKJWj','3276684RAYUfZ','blockId','getCodeAt','22qlbSCF','slice','prototype','2453684ZGXXgl','defineProperty','symbol','get','PARAGRAPH','updateConfig','string','endIndex','getRange','3bRcBuW','replace','dataStream','filter','_getBlockRanges','from','join','CODE','_unitId','map','default','toPrimitive','constructor','save','getText','getConfig','getId','blockRanges','4424920FuAFKY','SECTION_BREAK','insertCode','BLOCK_START','_injector','body','includes','_document','getCodes','text','describe','some','findCodeByText','101NbpHxL','blockType','findCodes','_getBlockRange','length','call','3616664vAbPQq','getCode','unwrap','startIndex'];_0x2c7b=function(){return _0x57019c;};return _0x2c7b();}(function(_0x5d9d1d,_0x539376){var _0x45828b=_0x4af0,_0xc764e8=_0x5d9d1d();while(!![]){try{var _0x2300af=-parseInt(_0x45828b(0x165))/0x1*(parseInt(_0x45828b(0x16f))/0x2)+-parseInt(_0x45828b(0x146))/0x3*(parseInt(_0x45828b(0x183))/0x4)+parseInt(_0x45828b(0x171))/0x5+parseInt(_0x45828b(0x17b))/0x6+parseInt(_0x45828b(0x17c))/0x7*(-parseInt(_0x45828b(0x16b))/0x8)+parseInt(_0x45828b(0x17d))/0x9+parseInt(_0x45828b(0x158))/0xa*(parseInt(_0x45828b(0x180))/0xb);if(_0x2300af===_0x539376)break;else _0xc764e8['push'](_0xc764e8['shift']());}catch(_0x38bd4d){_0xc764e8['push'](_0xc764e8['shift']());}}}(_0x2c7b,0xda90f));import{DocsCodeInsertCommand as _0x32cf21,DocsCodeModel as _0x3875bb,DocsCodeRemoveCommand as _0x524845,DocsCodeUnwrapCommand as _0x2040b4,DocsCodeUpdateCommand as _0x1439fc,normalizeDocsCodeConfig as _0x1766de}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x32615c,DocumentBlockRangeType as _0x5180d0,ICommandService as _0x3533ac,Inject as _0x18b97e,Injector as _0xc932f,generateRandomId as _0x59dbc5}from'@univerjs/core';import{FDocument as _0x4c9ba5,isParagraphFacade as _0x22c8cb}from'@univerjs/docs/facade';function m(_0x450bd7){'@babel/helpers - typeof';var _0x5ed0f6=_0x4af0;return m=typeof Symbol==_0x5ed0f6(0x174)&&typeof Symbol['iterator']==_0x5ed0f6(0x185)?function(_0x4099e5){return typeof _0x4099e5;}:function(_0x4e5eee){var _0x46da6c=_0x5ed0f6;return _0x4e5eee&&typeof Symbol==_0x46da6c(0x174)&&_0x4e5eee[_0x46da6c(0x152)]===Symbol&&_0x4e5eee!==Symbol[_0x46da6c(0x182)]?_0x46da6c(0x185):typeof _0x4e5eee;},m(_0x450bd7);}function h(_0x4c135b,_0x3e63bc){var _0x1a733e=_0x4af0;if(m(_0x4c135b)!=_0x1a733e(0x173)||!_0x4c135b)return _0x4c135b;var _0x11ea03=_0x4c135b[Symbol[_0x1a733e(0x151)]];if(_0x11ea03!==void 0x0){var _0x20052e=_0x11ea03[_0x1a733e(0x16a)](_0x4c135b,_0x3e63bc||_0x1a733e(0x150));if(m(_0x20052e)!='object')return _0x20052e;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3e63bc===_0x1a733e(0x189)?String:Number)(_0x4c135b);}function _0x4af0(_0x160821,_0x1adf2e){_0x160821=_0x160821-0x145;var _0x2c7b3d=_0x2c7b();var _0x4af0a=_0x2c7b3d[_0x160821];return _0x4af0a;}function g(_0x2f554f){var _0x3d0253=_0x4af0,_0x296d97=h(_0x2f554f,_0x3d0253(0x189));return m(_0x296d97)==_0x3d0253(0x185)?_0x296d97:_0x296d97+'';}function _(_0xd42c49,_0x108d81,_0x1274bf){var _0x2748f5=_0x4af0;return(_0x108d81=g(_0x108d81))in _0xd42c49?Object[_0x2748f5(0x184)](_0xd42c49,_0x108d81,{'value':_0x1274bf,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xd42c49[_0x108d81]=_0x1274bf,_0xd42c49;}function v(_0x1dabb3,_0x3b1ee8){return function(_0x1ae6b4,_0x484974){_0x3b1ee8(_0x1ae6b4,_0x484974,_0x1dabb3);};}function y(_0x145255,_0x236770,_0x195529,_0x39a232){var _0xd7d0ef=_0x4af0,_0x529035=arguments['length'],_0x6bf0c0=_0x529035<0x3?_0x236770:_0x39a232===null?_0x39a232=Object['getOwnPropertyDescriptor'](_0x236770,_0x195529):_0x39a232,_0x30036d;if(typeof Reflect==_0xd7d0ef(0x173)&&typeof Reflect[_0xd7d0ef(0x179)]==_0xd7d0ef(0x174))_0x6bf0c0=Reflect[_0xd7d0ef(0x179)](_0x145255,_0x236770,_0x195529,_0x39a232);else{for(var _0x769f22=_0x145255[_0xd7d0ef(0x169)]-0x1;_0x769f22>=0x0;_0x769f22--)(_0x30036d=_0x145255[_0x769f22])&&(_0x6bf0c0=(_0x529035<0x3?_0x30036d(_0x6bf0c0):_0x529035>0x3?_0x30036d(_0x236770,_0x195529,_0x6bf0c0):_0x30036d(_0x236770,_0x195529))||_0x6bf0c0);}return _0x529035>0x3&&_0x6bf0c0&&Object['defineProperty'](_0x236770,_0x195529,_0x6bf0c0),_0x6bf0c0;}let b=class{constructor(_0xf0a8e9,_0x214f13,_0x52c9ac){var _0x1f9c22=_0x4af0;this[_0x1f9c22(0x15f)]=_0xf0a8e9,this[_0x1f9c22(0x17a)]=_0x214f13,this['_injector']=_0x52c9ac,_(this,_0x1f9c22(0x14e),void 0x0),this[_0x1f9c22(0x14e)]=this['_document'][_0x1f9c22(0x156)]();}[_0x50df91(0x156)](){var _0x5cca44=_0x50df91;return this[_0x5cca44(0x17a)];}[_0x50df91(0x145)](){var _0x144b33=_0x50df91;let _0x53fdd6=this[_0x144b33(0x168)]();return _0x53fdd6?{'blockId':_0x53fdd6['blockId'],'endIndex':_0x53fdd6[_0x144b33(0x18a)],'startIndex':_0x53fdd6[_0x144b33(0x16e)]}:null;}[_0x50df91(0x154)](){var _0x45cd02=_0x50df91,_0x4b4133;let _0x1ce17d=this[_0x45cd02(0x168)](),_0x36507d=(_0x4b4133=this['_getDocumentData']()[_0x45cd02(0x15d)])==null?void 0x0:_0x4b4133[_0x45cd02(0x148)];return!_0x1ce17d||!_0x36507d?'':x(_0x36507d[_0x45cd02(0x181)](_0x1ce17d[_0x45cd02(0x16e)]+0x1,_0x1ce17d['endIndex']));}[_0x50df91(0x162)](){var _0x17b11d=_0x50df91;let _0x168997=this[_0x17b11d(0x145)]();return _0x168997?{..._0x168997,'config':this[_0x17b11d(0x155)](),'text':this[_0x17b11d(0x154)](),'type':_0x5180d0[_0x17b11d(0x14d)]}:null;}[_0x50df91(0x155)](){var _0x1831c8=_0x50df91;let _0x58b2b6=this[_0x1831c8(0x15c)][_0x1831c8(0x186)](_0x3875bb);return _0x1766de(_0x58b2b6['getCodeConfig'](this['_unitId'],this[_0x1831c8(0x17a)]));}[_0x50df91(0x188)](_0xb939c){var _0x126e3b=_0x50df91;return this['_injector']['get'](_0x3533ac)[_0x126e3b(0x176)](_0x1439fc['id'],{'blockId':this[_0x126e3b(0x17a)],'config':_0xb939c['config'],'unitId':this[_0x126e3b(0x14e)]});}[_0x50df91(0x16d)](){var _0xacd21b=_0x50df91;return this[_0xacd21b(0x15c)][_0xacd21b(0x186)](_0x3533ac)['syncExecuteCommand'](_0x2040b4['id'],{'blockId':this[_0xacd21b(0x17a)],'unitId':this[_0xacd21b(0x14e)]});}[_0x50df91(0x172)](){var _0x4d56c8=_0x50df91;return this[_0x4d56c8(0x15c)][_0x4d56c8(0x186)](_0x3533ac)['syncExecuteCommand'](_0x524845['id'],{'blockId':this[_0x4d56c8(0x17a)],'unitId':this[_0x4d56c8(0x14e)]});}[_0x50df91(0x168)](){var _0x3a3e21=_0x50df91,_0x20f9f1;return((_0x20f9f1=this[_0x3a3e21(0x177)]()['body'])==null||(_0x20f9f1=_0x20f9f1[_0x3a3e21(0x157)])==null?void 0x0:_0x20f9f1[_0x3a3e21(0x170)](_0x5f2dbe=>_0x5f2dbe['blockId']===this[_0x3a3e21(0x17a)]&&_0x5f2dbe[_0x3a3e21(0x166)]===_0x5180d0[_0x3a3e21(0x14d)]))??null;}['_getDocumentData'](){var _0x4aa676=_0x50df91;return this[_0x4aa676(0x15f)][_0x4aa676(0x153)]();}};b=y([v(0x2,_0x18b97e(_0xc932f))],b);function x(_0xaeaf75){var _0x16cdcf=_0x50df91;return Array[_0x16cdcf(0x14b)](_0xaeaf75)[_0x16cdcf(0x14f)](_0x42ac63=>_0x42ac63===_0x32615c[_0x16cdcf(0x187)]?'\x0a':_0x42ac63)[_0x16cdcf(0x149)](_0x43d764=>_0x43d764!==_0x32615c[_0x16cdcf(0x15b)]&&_0x43d764!==_0x32615c['BLOCK_END']&&_0x43d764!==_0x32615c[_0x16cdcf(0x159)])[_0x16cdcf(0x14c)]('')[_0x16cdcf(0x147)](/\n$/,'');}var S=class extends _0x4c9ba5{[_0x50df91(0x160)](){var _0x2bdc8d=_0x50df91;return this[_0x2bdc8d(0x14a)]()[_0x2bdc8d(0x149)](_0x4e915b=>_0x4e915b['blockType']===_0x5180d0[_0x2bdc8d(0x14d)])[_0x2bdc8d(0x14f)](_0x38b6e9=>this[_0x2bdc8d(0x175)](_0x38b6e9[_0x2bdc8d(0x17e)]));}[_0x50df91(0x16c)](_0x579c52){var _0x289643=_0x50df91;return this[_0x289643(0x14a)]()[_0x289643(0x163)](_0x550622=>_0x550622[_0x289643(0x17e)]===_0x579c52&&_0x550622[_0x289643(0x166)]===_0x5180d0[_0x289643(0x14d)])?this[_0x289643(0x175)](_0x579c52):null;}[_0x50df91(0x17f)](_0x5aa91e){var _0x1b7467=_0x50df91;let _0x205f04=this[_0x1b7467(0x14a)]()[_0x1b7467(0x170)](_0x5dd936=>_0x5dd936['blockType']===_0x5180d0[_0x1b7467(0x14d)]&&_0x5dd936[_0x1b7467(0x16e)]<=_0x5aa91e&&_0x5aa91e<=_0x5dd936[_0x1b7467(0x18a)]);return _0x205f04?this[_0x1b7467(0x175)](_0x205f04[_0x1b7467(0x17e)]):null;}[_0x50df91(0x164)](_0x18bb11){var _0x339f4c=_0x50df91;return this[_0x339f4c(0x167)](_0x18bb11)[0x0]??null;}['findCodes'](_0x548bd9){var _0x5773a5=_0x50df91;let _0x2044ba=typeof _0x548bd9==_0x5773a5(0x189)?{'text':_0x548bd9}:_0x548bd9;return this[_0x5773a5(0x160)]()[_0x5773a5(0x149)](_0x1a3ca8=>!(_0x2044ba['blockId']&&_0x1a3ca8[_0x5773a5(0x156)]()!==_0x2044ba[_0x5773a5(0x17e)]||_0x2044ba['text']&&!_0x1a3ca8['getText']()[_0x5773a5(0x15e)](_0x2044ba[_0x5773a5(0x161)])));}[_0x50df91(0x15a)](_0x29467f={},_0x6b5f14={}){var _0x5af6bb=_0x50df91;let _0x518e64=this['_injector'][_0x5af6bb(0x186)](_0x3533ac),_0x428c60=_0x22c8cb(_0x29467f)?{..._0x6b5f14,..._0x29467f[_0x5af6bb(0x145)]()}:_0x29467f,_0x35781c=_0x428c60[_0x5af6bb(0x17e)]??_0x59dbc5(0x6);return _0x518e64[_0x5af6bb(0x176)](_0x32cf21['id'],{..._0x428c60,'blockId':_0x35781c,'unitId':this[_0x5af6bb(0x156)]()})?this['getCode'](_0x35781c):null;}[_0x50df91(0x14a)](){var _0x164049=_0x50df91,_0x58504c;return((_0x58504c=this['save']()[_0x164049(0x15d)])==null?void 0x0:_0x58504c[_0x164049(0x157)])??[];}[_0x50df91(0x175)](_0x56a5ce){var _0x59e8cf=_0x50df91;return this['_injector'][_0x59e8cf(0x178)](b,this,_0x56a5ce);}};_0x4c9ba5['extend'](S);export{b as FDocumentCode};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3ab0de=_0x8b82;(function(_0x552d13,_0xc65cac){const _0x53a41b=_0x8b82,_0x39a2ac=_0x552d13();while(!![]){try{const _0x49c374=-parseInt(_0x53a41b(0x1ba))/0x1+parseInt(_0x53a41b(0x1b3))/0x2*(-parseInt(_0x53a41b(0x1e8))/0x3)+-parseInt(_0x53a41b(0x1e2))/0x4*(parseInt(_0x53a41b(0x20d))/0x5)+-parseInt(_0x53a41b(0x1e6))/0x6+-parseInt(_0x53a41b(0x238))/0x7+-parseInt(_0x53a41b(0x224))/0x8+parseInt(_0x53a41b(0x1f1))/0x9;if(_0x49c374===_0xc65cac)break;else _0x39a2ac['push'](_0x39a2ac['shift']());}catch(_0x578f4c){_0x39a2ac['push'](_0x39a2ac['shift']());}}}(_0x12f8,0x35492));import{BooleanNumber as _0x1b778a,BuildTextUtils as _0x58acab,CommandType as _0x41a6f1,DataStreamTreeTokenType as _0x1e79a7,DependentOn as _0x3dbf34,Disposable as _0x562207,DocumentBlockRangeType as _0x435faa,ICommandService as _0x15ccf6,IConfigService as _0x1a34db,IResourceManagerService as _0x22a43b,IUniverInstanceService as _0x964d3a,Inject as _0x57b8aa,Injector as _0x584fc0,JSONX as _0x5e3e53,Plugin as _0x5733e8,TextX as _0x443f5a,UniverInstanceType as _0x48efbf,containsInteriorInsertionOffset as _0x300592,containsStreamIndex as _0x114c5d,createParagraphId as _0x403b8e,generateRandomId as _0x2991d6,getBlockRangeInterval as _0x31f500,getBodySliceForTextXAction as _0x2b04e8,getParagraphContentStartOffset as _0x5d088e,getParagraphContentStartOffsets as _0x1b2f31,getParagraphFollowingBlockOffset as _0x1831c1,getSingleDataStreamChange as _0x2f99b7,intersectsOperationalIntervals as _0x1e2ab3,merge as _0x18c64b,shiftExclusiveRangeOnDelete as _0x2a6859,shiftExclusiveRangeOnInsert as _0x126e80,shiftInclusiveRangeOnDelete as _0x168a73,shiftInclusiveRangeOnInsert as _0x905e98}from'@univerjs/core';import{Subject as _0x579692}from'rxjs';import{DocSelectionManagerService as _0x47ac4f,RichTextEditingMutation as _0x388771,UniverDocsPlugin as _0x32f376,getContentInsertRange as _0x3760de,isHeaderFooterSelection as _0x21b5bf}from'@univerjs/docs';import{UniverLicensePlugin as _0x3b72f5}from'@univerjs-pro/license';const Se={'language':_0x3ab0de(0x201),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x519f47){return{...Se,..._0x519f47};}function y(_0x1a0803){const _0x4a9701=_0x3ab0de;let _0x47ae62=(_0x1a0803==null?void 0x0:_0x1a0803[_0x4a9701(0x220)])??{};return{'codes':Object[_0x4a9701(0x1eb)](Object['entries'](_0x47ae62)['map'](([_0x2169d6,_0x148e23])=>[_0x2169d6,v(_0x148e23)]))};}function b(_0x4a57aa,_0x1948d7,_0x4484f2){const _0x326ad8=_0x3ab0de;let _0x16580c=y(_0x4a57aa);return _0x16580c[_0x326ad8(0x220)][_0x1948d7]=v({..._0x16580c[_0x326ad8(0x220)][_0x1948d7],..._0x4484f2}),_0x16580c;}function x(_0x15182d,_0x504b31){const _0x5b5631=_0x3ab0de;let _0x33c5e8=y(_0x15182d);return delete _0x33c5e8[_0x5b5631(0x220)][_0x504b31],_0x33c5e8;}function S(_0x1462e6){'@babel/helpers - typeof';const _0x3db065=_0x3ab0de;return S=typeof Symbol==_0x3db065(0x210)&&typeof Symbol['iterator']==_0x3db065(0x236)?function(_0xe57005){return typeof _0xe57005;}:function(_0x2491ef){const _0x12e227=_0x3db065;return _0x2491ef&&typeof Symbol==_0x12e227(0x210)&&_0x2491ef[_0x12e227(0x1ec)]===Symbol&&_0x2491ef!==Symbol[_0x12e227(0x202)]?_0x12e227(0x236):typeof _0x2491ef;},S(_0x1462e6);}function Ce(_0x56072d,_0x2ca0aa){const _0x18074f=_0x3ab0de;if(S(_0x56072d)!=_0x18074f(0x1d9)||!_0x56072d)return _0x56072d;var _0x238268=_0x56072d[Symbol[_0x18074f(0x1ae)]];if(_0x238268!==void 0x0){var _0x3a3255=_0x238268[_0x18074f(0x20c)](_0x56072d,_0x2ca0aa||_0x18074f(0x204));if(S(_0x3a3255)!='object')return _0x3a3255;throw TypeError(_0x18074f(0x1d5));}return(_0x2ca0aa===_0x18074f(0x195)?String:Number)(_0x56072d);}function we(_0x47b1aa){const _0x9196a6=_0x3ab0de;var _0x1b5237=Ce(_0x47b1aa,_0x9196a6(0x195));return S(_0x1b5237)==_0x9196a6(0x236)?_0x1b5237:_0x1b5237+'';}function C(_0x141520,_0x4b5495,_0x324a1e){const _0x5c857c=_0x3ab0de;return(_0x4b5495=we(_0x4b5495))in _0x141520?Object[_0x5c857c(0x1d6)](_0x141520,_0x4b5495,{'value':_0x324a1e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x141520[_0x4b5495]=_0x324a1e,_0x141520;}function _0x8b82(_0x5791ea,_0x45abe5){_0x5791ea=_0x5791ea-0x194;const _0x12f85a=_0x12f8();let _0x8b8270=_0x12f85a[_0x5791ea];return _0x8b8270;}var w=class extends _0x562207{constructor(..._0x3908d2){const _0x352c3d=_0x3ab0de;super(..._0x3908d2),C(this,_0x352c3d(0x1ad),new Map()),C(this,_0x352c3d(0x20e),new _0x579692()),C(this,_0x352c3d(0x1af),this['_change$'][_0x352c3d(0x229)]());}[_0x3ab0de(0x1b0)](_0x21d30c,_0x3767e0){const _0x29c113=_0x3ab0de;return y(this[_0x29c113(0x1ad)][_0x29c113(0x21e)](_0x21d30c))[_0x29c113(0x220)][_0x3767e0];}[_0x3ab0de(0x1b5)](_0x382789,_0x1c8089,_0x455fe3){const _0x215649=_0x3ab0de;this[_0x215649(0x1a5)](_0x382789,_0x1c8089,b(this[_0x215649(0x1ad)][_0x215649(0x21e)](_0x382789),_0x1c8089,_0x455fe3));}['removeCode'](_0x4a8137,_0x5de15a){const _0x4d9213=_0x3ab0de;this['_setResource'](_0x4a8137,_0x5de15a,x(this[_0x4d9213(0x1ad)]['get'](_0x4a8137),_0x5de15a));}[_0x3ab0de(0x1b7)](_0x180b79){const _0x49d4a6=_0x3ab0de;return y(this[_0x49d4a6(0x1ad)][_0x49d4a6(0x21e)](_0x180b79));}[_0x3ab0de(0x1f7)](_0x1f84ad,_0x4d8e5c){const _0x1fc026=_0x3ab0de;this['_resources'][_0x1fc026(0x1f9)](_0x1f84ad,y(_0x4d8e5c)),this['_change$'][_0x1fc026(0x1c1)]({'unitId':_0x1f84ad});}[_0x3ab0de(0x205)](_0x594ce4){const _0x33034e=_0x3ab0de;this[_0x33034e(0x1ad)]['delete'](_0x594ce4),this[_0x33034e(0x20e)][_0x33034e(0x1c1)]({'unitId':_0x594ce4});}[_0x3ab0de(0x1f2)](){const _0x8e3948=_0x3ab0de;super['dispose'](),this['_resources'][_0x8e3948(0x208)](),this[_0x8e3948(0x20e)]['complete']();}[_0x3ab0de(0x1a5)](_0x2bff85,_0xc3040,_0x40b1fd){const _0x77b7ae=_0x3ab0de;this[_0x77b7ae(0x1ad)]['set'](_0x2bff85,_0x40b1fd),this[_0x77b7ae(0x20e)][_0x77b7ae(0x1c1)]({'unitId':_0x2bff85,'blockId':_0xc3040});}};const Te={'id':'docs-code.mutation.set-config','type':_0x41a6f1[_0x3ab0de(0x214)],'handler':(_0x44b3f1,_0x175eca)=>!(_0x175eca!=null&&_0x175eca[_0x3ab0de(0x219)])||!_0x175eca[_0x3ab0de(0x1c9)]?!0x1:(_0x44b3f1['get'](w)[_0x3ab0de(0x1b5)](_0x175eca['unitId'],_0x175eca['blockId'],_0x175eca[_0x3ab0de(0x222)]),!0x0)},T={'id':_0x3ab0de(0x196),'type':_0x41a6f1[_0x3ab0de(0x214)],'handler':(_0x5f4b50,_0x548cdb)=>!(_0x548cdb!=null&&_0x548cdb[_0x3ab0de(0x219)])||!_0x548cdb[_0x3ab0de(0x1c9)]?!0x1:(_0x5f4b50['get'](w)[_0x3ab0de(0x234)](_0x548cdb['unitId'],_0x548cdb[_0x3ab0de(0x1c9)]),!0x0)},Ee=_0x3ab0de(0x21c);var E=class extends Error{constructor(_0x116d2f=_0x3ab0de(0x1db)){super(_0x116d2f);}};function De(_0x254b71){const _0x787661=_0x3ab0de;var _0x4e8519;let _0x4f9727=O(_0x254b71['documentData']),_0x359a1e=A(_0x4f9727),_0x1d9a68=ke(_0x254b71[_0x787661(0x1bf)],_0x254b71[_0x787661(0x1ca)]),_0x1714cc=_0x1d9a68?(_0x4e8519=_0x359a1e['blockRanges'])==null?void 0x0:_0x4e8519[_0x787661(0x1e5)](_0x27d86e=>{const _0x396510=_0x787661;let _0x90f1f8=_0x31f500(_0x27d86e);return _0x90f1f8[_0x396510(0x1bf)]===_0x1d9a68[_0x396510(0x1bf)]&&_0x90f1f8['endOffset']===_0x1d9a68[_0x396510(0x1ca)];}):void 0x0,{startOffset:_0x540690,endOffset:_0x20deb7}=_0x1714cc?_0x1d9a68:We(_0x359a1e,_0x254b71[_0x787661(0x1bf)],_0x254b71[_0x787661(0x1ca)],_0x254b71[_0x787661(0x1d7)]);if(!_0x1714cc&&Ae(_0x359a1e,_0x540690,_0x20deb7))throw new E(_0x787661(0x1fb));let _0x27229d=qe(_0x359a1e,_0x540690,_0x20deb7),_0x5c1502=(_0x1714cc==null?void 0x0:_0x1714cc['blockId'])??_0x254b71[_0x787661(0x1c9)],_0x5a9d01=b(_0x254b71[_0x787661(0x226)],_0x5c1502,{...Se,..._0x254b71[_0x787661(0x222)]});if(_0x1714cc)return _0x1714cc['blockType']=_0x435faa[_0x787661(0x1e7)],Oe(_0x359a1e,_0x540690,_0x20deb7),ze(_0x359a1e,_0x540690,_0x20deb7,_0x27229d),N(_0x359a1e,_0x1714cc),{'nextDocumentData':_0x4f9727,'nextMetadata':_0x5a9d01,'cursorOffset':_0x540690+0x1};if(_0x540690===_0x20deb7){var _0x129603,_0x3aa27e;let _0x485aa2=''+_0x1e79a7[_0x787661(0x1dc)]+_0x1e79a7[_0x787661(0x1c8)]+_0x1e79a7['BLOCK_END'];P(_0x359a1e,_0x540690,_0x485aa2,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x403b8e(new Set((_0x129603=_0x359a1e[_0x787661(0x1a9)])==null?void 0x0:_0x129603[_0x787661(0x1e9)](_0x28da0c=>_0x28da0c[_0x787661(0x199)]))),'paragraphStyle':Re(!0x0,!0x0,_0x27229d)}],'blockRanges':[{'blockId':_0x5c1502,'blockType':_0x435faa[_0x787661(0x1e7)],'startIndex':0x0,'endIndex':_0x485aa2['length']-0x1}]});let _0x444f3c=(_0x3aa27e=_0x359a1e['blockRanges'])==null?void 0x0:_0x3aa27e['find'](_0x15a51b=>_0x15a51b[_0x787661(0x1c9)]===_0x5c1502);return _0x444f3c&&N(_0x359a1e,_0x444f3c),{'nextDocumentData':_0x4f9727,'nextMetadata':_0x5a9d01,'cursorOffset':_0x540690+0x1};}P(_0x359a1e,_0x20deb7,_0x1e79a7[_0x787661(0x1b1)]),P(_0x359a1e,_0x540690,_0x1e79a7['BLOCK_START']),ze(_0x359a1e,_0x540690,_0x20deb7+0x1,_0x27229d);let _0x444610={'blockId':_0x5c1502,'blockType':_0x435faa['CODE'],'startIndex':_0x540690,'endIndex':_0x20deb7+0x1};return _0x359a1e[_0x787661(0x230)]=[..._0x359a1e[_0x787661(0x230)]??[],_0x444610]['sort']((_0x43184f,_0xa78984)=>_0x43184f[_0x787661(0x21f)]-_0xa78984[_0x787661(0x21f)]),N(_0x359a1e,_0x444610),{'nextDocumentData':_0x4f9727,'nextMetadata':_0x5a9d01,'cursorOffset':_0x540690+0x1};}function Oe(_0x5e2a6a,_0x4a70d9,_0x4b963e){const _0x4b8913=_0x3ab0de;(_0x5e2a6a[_0x4b8913(0x1a9)]??[])[_0x4b8913(0x1bb)](_0x165435=>_0x165435['startIndex']>_0x4a70d9&&_0x165435[_0x4b8913(0x21f)]<_0x4b963e)['forEach'](_0x47ec5c=>{const _0xa527c5=_0x4b8913;let _0x9513b3={..._0x47ec5c[_0xa527c5(0x20b)]??{}};delete _0x9513b3[_0xa527c5(0x1b8)],delete _0x9513b3[_0xa527c5(0x206)],_0x47ec5c[_0xa527c5(0x20b)]=_0x9513b3;});}function ke(_0x5342bd,_0x462e87){const _0x3e224f=_0x3ab0de;return _0x5342bd==null||_0x462e87==null||_0x5342bd===_0x462e87?null:{'startOffset':Math[_0x3e224f(0x22f)](_0x5342bd,_0x462e87),'endOffset':Math[_0x3e224f(0x1a1)](_0x5342bd,_0x462e87)};}function Ae(_0x5ad7ff,_0x4d6e86,_0x3dcf81){const _0x3c54f8=_0x3ab0de;return(_0x5ad7ff[_0x3c54f8(0x230)]??[])[_0x3c54f8(0x1ce)](_0x3abbf5=>{let _0x305fa2=_0x31f500(_0x3abbf5);return _0x4d6e86===_0x3dcf81?_0x300592(_0x305fa2,_0x4d6e86):_0x1e2ab3(_0x305fa2,{'startOffset':_0x4d6e86,'endOffset':_0x3dcf81});});}function je(_0x495060){const _0x1bab38=_0x3ab0de;return{'nextDocumentData':O(_0x495060[_0x1bab38(0x1f8)]),'nextMetadata':b(_0x495060[_0x1bab38(0x226)],_0x495060['blockId'],_0x495060[_0x1bab38(0x222)]),'cursorOffset':0x0};}function D(_0x2ba430){const _0x5a5fb5=_0x3ab0de;let _0x51f88b=O(_0x2ba430[_0x5a5fb5(0x1f8)]),_0x3db213=A(_0x51f88b),_0x4ab016=Fe(_0x3db213,_0x2ba430[_0x5a5fb5(0x1c9)]);if(!_0x4ab016)return null;let _0x5cd787=He(_0x3db213,_0x4ab016);return{'nextDocumentData':_0x51f88b,'nextMetadata':x(_0x2ba430[_0x5a5fb5(0x226)],_0x2ba430['blockId']),'cursorOffset':_0x5cd787};}function Me(_0x2c66d3){const _0x4006d3=_0x3ab0de;var _0x133987;let _0x336a9b=O(_0x2c66d3[_0x4006d3(0x1f8)]),_0x5b6303=A(_0x336a9b),_0xb1e519=Fe(_0x5b6303,_0x2c66d3[_0x4006d3(0x1c9)]);if(!_0xb1e519)return null;let _0x517884=_0x31f500(_0xb1e519);return F(_0x5b6303,_0x517884[_0x4006d3(0x1bf)],_0x517884[_0x4006d3(0x1ca)]),_0x5b6303[_0x4006d3(0x230)]=(_0x133987=_0x5b6303[_0x4006d3(0x230)])==null?void 0x0:_0x133987[_0x4006d3(0x1bb)](_0x1d7e4f=>_0x1d7e4f[_0x4006d3(0x1c9)]!==_0x2c66d3[_0x4006d3(0x1c9)]),{'nextDocumentData':_0x336a9b,'nextMetadata':x(_0x2c66d3[_0x4006d3(0x226)],_0x2c66d3[_0x4006d3(0x1c9)]),'cursorOffset':_0xb1e519['startIndex']};}function Ne(_0x26abf8){const _0x5c3b07=_0x3ab0de;let _0x3be9df=O(_0x26abf8['documentData']),_0x314523=A(_0x3be9df),_0x41e83b=Le(_0x314523,_0x26abf8[_0x5c3b07(0x1da)]);return _0x41e83b&&Pe(_0x3be9df,_0x314523,_0x41e83b,_0x26abf8[_0x5c3b07(0x1da)],_0x26abf8[_0x5c3b07(0x1ee)])||null;}function Pe(_0x40a604,_0x58aee4,_0x1cb05b,_0x2db033,_0x35f12b){const _0x53b996=_0x3ab0de;let _0x3c11db=$e(_0x58aee4,_0x1cb05b,_0x2db033,_0x35f12b);if(!_0x3c11db)return null;let _0x24d90d=_0x3c11db[_0x53b996(0x1d3)]-0x1;return F(_0x58aee4,_0x3c11db[_0x53b996(0x19f)][_0x53b996(0x21f)],_0x3c11db[_0x53b996(0x19f)][_0x53b996(0x21f)]+0x1),{'nextDocumentData':_0x40a604,'cursorOffset':_0x24d90d};}function Fe(_0x1a3786,_0x2df8b4){const _0x238952=_0x3ab0de;var _0x5cba74;return _0x1a3786==null||(_0x5cba74=_0x1a3786[_0x238952(0x230)])==null?void 0x0:_0x5cba74['find'](_0x419bd1=>_0x419bd1['blockType']===_0x435faa[_0x238952(0x1e7)]&&_0x419bd1[_0x238952(0x1c9)]===_0x2df8b4);}function Ie(_0x5eeae0){const _0x12ea2b=_0x3ab0de;let _0x1c47ea=_0x5eeae0[_0x12ea2b(0x1f8)][_0x12ea2b(0x1f3)];if(!_0x1c47ea)return!0x1;let _0x52857b=_0x5eeae0[_0x12ea2b(0x1df)]==='left'?_0x5eeae0[_0x12ea2b(0x1da)]-0x1:_0x5eeae0[_0x12ea2b(0x1da)],_0x24a346=_0x5eeae0[_0x12ea2b(0x1df)]===_0x12ea2b(0x1c5)?_0x5eeae0[_0x12ea2b(0x1da)]+0x1:_0x52857b;return(_0x1c47ea[_0x12ea2b(0x230)]??[])['some'](_0xcf3cc5=>_0xcf3cc5[_0x12ea2b(0x197)]===_0x435faa[_0x12ea2b(0x1e7)]?_0x52857b===_0xcf3cc5[_0x12ea2b(0x21f)]||_0x52857b===_0xcf3cc5[_0x12ea2b(0x1f5)]||_0x24a346===_0xcf3cc5[_0x12ea2b(0x21f)]||_0x24a346===_0xcf3cc5[_0x12ea2b(0x1f5)]:!0x1);}function Le(_0x55ae65,_0x2e1f52){const _0x13054a=_0x3ab0de;var _0x43fac6;return(_0x43fac6=_0x55ae65[_0x13054a(0x230)])==null?void 0x0:_0x43fac6[_0x13054a(0x1e5)](_0x5203f5=>{const _0x3ebd61=_0x13054a;let _0x2d5b5e=M(_0x5203f5);return _0x5203f5['blockType']===_0x435faa[_0x3ebd61(0x1e7)]&&_0x5203f5['startIndex']<=_0x2e1f52&&_0x2e1f52<=_0x2d5b5e+0x2;});}function Re(_0x1c6ed8,_0x2ab88d,_0x4fc263=!0x1){const _0x495493=_0x3ab0de;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x1b778a['TRUE'],'keepNext':_0x2ab88d?_0x1b778a['FALSE']:_0x1b778a['TRUE'],'widowControl':_0x1b778a[_0x495493(0x1cb)],..._0x1c6ed8&&_0x4fc263?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x3b356e,_0x5dd872,_0x34f2f7,_0x493e79=!0x1){const _0x56d026=_0x3ab0de;let _0x28325d=(_0x3b356e[_0x56d026(0x1a9)]??[])[_0x56d026(0x1bb)](_0x53ac34=>_0x53ac34['startIndex']>_0x5dd872&&_0x53ac34[_0x56d026(0x21f)]<_0x34f2f7);_0x28325d[_0x56d026(0x237)]((_0x57455f,_0xdaff55)=>{const _0x4bad37=_0x56d026;_0x57455f[_0x4bad37(0x20b)]={..._0x57455f[_0x4bad37(0x20b)]??{},...Re(_0xdaff55===0x0,_0xdaff55===_0x28325d['length']-0x1,_0x493e79)};});}function Be(_0x477491){const _0x29fd5f=_0x3ab0de;var _0x1d1edd,_0x520d50;let _0x572806={..._0x477491??{}};return delete _0x572806[_0x29fd5f(0x239)],delete _0x572806[_0x29fd5f(0x1ed)],delete _0x572806['spaceAbove'],delete _0x572806['spaceBelow'],delete _0x572806[_0x29fd5f(0x1c3)],delete _0x572806[_0x29fd5f(0x1aa)],delete _0x572806['widowControl'],((_0x1d1edd=_0x572806[_0x29fd5f(0x1b2)])==null?void 0x0:_0x1d1edd['ff'])===Ee&&((_0x520d50=_0x572806[_0x29fd5f(0x1b2)])==null?void 0x0:_0x520d50['fs'])===0xc&&delete _0x572806[_0x29fd5f(0x1b2)],_0x572806;}function Ve(_0x49a8f4,_0x5f55dc){const _0x5176ce=_0x3ab0de;let _0x6e5203=M(_0x5f55dc);return(_0x49a8f4[_0x5176ce(0x1a9)]??[])[_0x5176ce(0x1bb)](_0x392d95=>_0x392d95[_0x5176ce(0x21f)]>_0x5f55dc[_0x5176ce(0x21f)]&&_0x392d95[_0x5176ce(0x21f)]<_0x6e5203);}function He(_0x356a9e,_0x78ad56){const _0x33441f=_0x3ab0de;var _0x1c1582;let _0x5a32e9=M(_0x78ad56);return Ve(_0x356a9e,_0x78ad56)[_0x33441f(0x237)](_0x59fdad=>{const _0x1b4202=_0x33441f;_0x59fdad[_0x1b4202(0x20b)]=Be(_0x59fdad['paragraphStyle']);}),F(_0x356a9e,_0x5a32e9,_0x5a32e9+0x1),F(_0x356a9e,_0x78ad56['startIndex'],_0x78ad56[_0x33441f(0x21f)]+0x1),_0x356a9e['blockRanges']=(_0x1c1582=_0x356a9e[_0x33441f(0x230)])==null?void 0x0:_0x1c1582[_0x33441f(0x1bb)](_0xb2ad55=>_0xb2ad55[_0x33441f(0x1c9)]!==_0x78ad56[_0x33441f(0x1c9)]),_0x78ad56[_0x33441f(0x21f)];}function O(_0x495e74){const _0x386da5=_0x3ab0de;return{..._0x495e74,'body':_0x495e74['body']?Ue(_0x495e74['body']):_0x495e74[_0x386da5(0x1f3)]};}function Ue(_0x1ff267){const _0x37dfa0=_0x3ab0de;var _0x32e686,_0x42123c,_0x2463cb,_0x50e9c2,_0xd8c2f3,_0x2334a8,_0x4dafa1,_0x3745d3,_0x4ec152;return{..._0x1ff267,'paragraphs':(_0x32e686=_0x1ff267[_0x37dfa0(0x1a9)])==null?void 0x0:_0x32e686[_0x37dfa0(0x1e9)](_0x2828bb=>({..._0x2828bb,'bullet':k(_0x2828bb[_0x37dfa0(0x19b)]),'paragraphStyle':k(_0x2828bb[_0x37dfa0(0x20b)])})),'sectionBreaks':(_0x42123c=_0x1ff267[_0x37dfa0(0x1c7)])==null?void 0x0:_0x42123c[_0x37dfa0(0x1e9)](_0x1291fe=>({..._0x1291fe})),'textRuns':(_0x2463cb=_0x1ff267[_0x37dfa0(0x1be)])==null?void 0x0:_0x2463cb[_0x37dfa0(0x1e9)](_0x572307=>({..._0x572307})),'tables':(_0x50e9c2=_0x1ff267[_0x37dfa0(0x1bd)])==null?void 0x0:_0x50e9c2['map'](_0x3c9d76=>({..._0x3c9d76})),'columnGroups':(_0xd8c2f3=_0x1ff267[_0x37dfa0(0x209)])==null?void 0x0:_0xd8c2f3[_0x37dfa0(0x1e9)](_0x52ec25=>{const _0x56dedf=_0x37dfa0;var _0x366a8d;return{..._0x52ec25,'columns':(_0x366a8d=_0x52ec25[_0x56dedf(0x1bc)])==null?void 0x0:_0x366a8d[_0x56dedf(0x1e9)](_0xde7cdf=>k(_0xde7cdf))};}),'blockRanges':(_0x2334a8=_0x1ff267[_0x37dfa0(0x230)])==null?void 0x0:_0x2334a8[_0x37dfa0(0x1e9)](_0x19f00a=>({..._0x19f00a})),'customRanges':(_0x4dafa1=_0x1ff267[_0x37dfa0(0x1ab)])==null?void 0x0:_0x4dafa1['map'](_0x5ddfc3=>({..._0x5ddfc3})),'customDecorations':(_0x3745d3=_0x1ff267[_0x37dfa0(0x218)])==null?void 0x0:_0x3745d3['map'](_0x126964=>({..._0x126964})),'customBlocks':(_0x4ec152=_0x1ff267['customBlocks'])==null?void 0x0:_0x4ec152[_0x37dfa0(0x1e9)](_0x43dd67=>({..._0x43dd67}))};}function k(_0x90b5b6){const _0x230d56=_0x3ab0de;return Array['isArray'](_0x90b5b6)?_0x90b5b6['map'](_0x42e117=>k(_0x42e117)):!_0x90b5b6||typeof _0x90b5b6!=_0x230d56(0x1d9)?_0x90b5b6:Object[_0x230d56(0x1eb)](Object[_0x230d56(0x1fa)](_0x90b5b6)['map'](([_0x427f60,_0x2697c5])=>[_0x427f60,k(_0x2697c5)]));}function A(_0x725649){const _0x496824=_0x3ab0de;if(!_0x725649['body'])throw Error(_0x496824(0x1fd));return _0x725649[_0x496824(0x1f3)];}function We(_0x5981e7,_0x504896,_0xc085c1,_0x1ccd89=_0x3ab0de(0x1b6)){const _0x5b1fea=_0x3ab0de;if(_0x504896==null||_0xc085c1==null){let _0x2fd74f=Ke(_0x5981e7);return{'startOffset':_0x2fd74f,'endOffset':_0x2fd74f};}let _0x212e0e=Math[_0x5b1fea(0x22f)](_0x504896,_0xc085c1),_0x274bdb=Math[_0x5b1fea(0x1a1)](_0x504896,_0xc085c1),_0x261029=Ze(_0x5981e7,_0x212e0e,_0x274bdb);return _0x212e0e===_0x274bdb?_0x1ccd89==='insert-new'?{'startOffset':_0x212e0e,'endOffset':_0x274bdb}:Ge(_0x5981e7,_0x212e0e,_0x261029):Je(_0x5981e7,_0x212e0e,_0x274bdb,_0x261029);}function Ge(_0x31fbcf,_0x5421b3,_0x39f5f0){const _0x505b52=_0x3ab0de;let _0x475e48=Ye(_0x31fbcf,_0x5421b3);if(_0x475e48){let _0x2f839d=j(_0x31fbcf,_0x475e48,_0x39f5f0);if(_0x2f839d<_0x475e48[_0x505b52(0x21f)])return{'startOffset':_0x2f839d,'endOffset':_0x39f5f0?Math[_0x505b52(0x22f)](_0x475e48[_0x505b52(0x21f)]+0x1,_0x39f5f0['endOffset']):_0x475e48[_0x505b52(0x21f)]+0x1};}let _0x18acfd=_0x5421b3===0x0&&_0x31fbcf['dataStream'][0x0]===_0x1e79a7[_0x505b52(0x1c8)]?0x1:_0x5421b3;return{'startOffset':_0x18acfd,'endOffset':_0x18acfd};}function Ke(_0x3fb61c){const _0x3a746c=_0x3ab0de;return _0x3fb61c[_0x3a746c(0x217)][_0x3a746c(0x1a3)](_0x1e79a7[_0x3a746c(0x1f0)])?Math[_0x3a746c(0x1a1)](0x0,_0x3fb61c[_0x3a746c(0x217)][_0x3a746c(0x203)]-0x1):_0x3fb61c[_0x3a746c(0x217)][_0x3a746c(0x203)];}function qe(_0x2e90d6,_0x59654b,_0x294372){const _0x5e803c=_0x3ab0de;var _0x1c0d05;let _0x3f3509=Math[_0x5e803c(0x22f)](_0x59654b,_0x294372),_0x4ed357=Math[_0x5e803c(0x1a1)](_0x59654b,_0x294372);return!!((_0x1c0d05=_0x2e90d6[_0x5e803c(0x1bd)])!=null&&_0x1c0d05['some'](_0x30c61a=>_0x3f3509>_0x30c61a[_0x5e803c(0x21f)]&&_0x3f3509<_0x30c61a[_0x5e803c(0x1f5)]||_0x4ed357>_0x30c61a[_0x5e803c(0x21f)]&&_0x4ed357<_0x30c61a[_0x5e803c(0x1f5)]||_0x3f3509<=_0x30c61a['startIndex']&&_0x4ed357>=_0x30c61a[_0x5e803c(0x1f5)]));}function Je(_0x1902e6,_0x102e24,_0x1cc35b,_0x77dc6d){const _0xfedf01=_0x3ab0de;let _0x5dbf65=[..._0x1902e6[_0xfedf01(0x1a9)]??[]][_0xfedf01(0x1cc)]((_0x3e30d0,_0x596cad)=>_0x3e30d0[_0xfedf01(0x21f)]-_0x596cad[_0xfedf01(0x21f)]),_0x4b417e=_0x1b2f31(_0x1902e6),_0x1f0efe=_0x5dbf65['find'](_0xf9cb68=>j(_0x1902e6,_0xf9cb68,_0x77dc6d,_0x4b417e)<=_0x102e24&&_0x102e24<=_0xf9cb68[_0xfedf01(0x21f)]),_0x193a42=_0x5dbf65[_0xfedf01(0x1e5)](_0xa8fb93=>_0xa8fb93[_0xfedf01(0x21f)]>=_0x1cc35b-0x1)??_0x5dbf65[_0x5dbf65[_0xfedf01(0x203)]-0x1];return{'startOffset':_0x1f0efe?j(_0x1902e6,_0x1f0efe,_0x77dc6d,_0x4b417e):_0x102e24,'endOffset':_0x193a42?Xe(_0x193a42,_0x77dc6d):_0x1cc35b};}function Ye(_0x56c184,_0x3975bc){const _0x290390=_0x3ab0de;let _0x25f6a1=[..._0x56c184[_0x290390(0x1a9)]??[]][_0x290390(0x1cc)]((_0x1056e2,_0x5b52de)=>_0x1056e2['startIndex']-_0x5b52de[_0x290390(0x21f)]),_0x436902=_0x1b2f31(_0x56c184);return _0x25f6a1[_0x290390(0x1e5)](_0x187426=>(_0x436902[_0x290390(0x21e)](_0x187426[_0x290390(0x21f)])??0x0)<=_0x3975bc&&_0x3975bc<=_0x187426[_0x290390(0x21f)]);}function j(_0x42208e,_0x1fbf38,_0x45d808,_0x213766){const _0x344477=_0x3ab0de;let _0x410950=(_0x213766==null?void 0x0:_0x213766[_0x344477(0x21e)](_0x1fbf38[_0x344477(0x21f)]))??_0x5d088e(_0x42208e,_0x1fbf38);return _0x45d808?Math['max'](_0x410950,_0x45d808[_0x344477(0x1bf)]):_0x410950;}function Xe(_0x10a3cc,_0x5986ef){const _0x457f44=_0x3ab0de;let _0x1b03f4=_0x10a3cc[_0x457f44(0x21f)]+0x1;return _0x5986ef?Math[_0x457f44(0x22f)](_0x1b03f4,_0x5986ef[_0x457f44(0x1ca)]):_0x1b03f4;}function Ze(_0x54128a,_0x425a79,_0x5e8cf8){const _0x2b1338=_0x3ab0de;let _0x45f794=Qe(_0x54128a,_0x425a79),_0x48b259=Qe(_0x54128a,_0x425a79===_0x5e8cf8?_0x5e8cf8:Math[_0x2b1338(0x1a1)](_0x425a79,_0x5e8cf8-0x1));if(_0x45f794||_0x48b259){if(!_0x45f794||!_0x48b259||_0x45f794[_0x2b1338(0x20f)]!==_0x48b259['startTokenOffset']||_0x45f794['endTokenOffset']!==_0x48b259[_0x2b1338(0x1d3)])throw new E();return _0x45f794;}}function Qe(_0x504c25,_0x5411f6){const _0x223a40=_0x3ab0de;let _0x302404=_0x504c25[_0x223a40(0x217)],_0x39f334=-0x1;for(let _0x1ed22f=Math['min'](_0x5411f6,_0x302404[_0x223a40(0x203)]-0x1);_0x1ed22f>=0x0;_0x1ed22f--){let _0x125723=_0x302404[_0x1ed22f];if(_0x125723===_0x1e79a7[_0x223a40(0x1a8)])return;if(_0x125723===_0x1e79a7[_0x223a40(0x22e)]){_0x39f334=_0x1ed22f;break;}}if(_0x39f334<0x0)return;let _0x1157fa=_0x302404[_0x223a40(0x1b9)](_0x1e79a7[_0x223a40(0x1a8)],_0x39f334+0x1);if(!(_0x1157fa<0x0||_0x5411f6<_0x39f334+0x1||_0x5411f6>_0x1157fa-0x1))return{'startOffset':_0x39f334+0x1,'endOffset':Math[_0x223a40(0x1a1)](_0x39f334+0x1,_0x1157fa-0x1),'startTokenOffset':_0x39f334,'endTokenOffset':_0x1157fa};}function M(_0x52557b){return _0x31f500(_0x52557b)['endOffset']-0x1;}function $e(_0x2308c5,_0x2b38dc,_0x48c353,_0x341168){const _0x353f02=_0x3ab0de;let _0x545b36=M(_0x2b38dc),_0x2ed266=(_0x2308c5[_0x353f02(0x1a9)]??[])[_0x353f02(0x1e5)](_0x2a513f=>_0x2a513f[_0x353f02(0x21f)]===_0x545b36+0x1);if(!_0x2ed266||_0x341168!=null&&_0x2ed266[_0x353f02(0x21f)]!==_0x341168||_0x48c353!=null&&(_0x48c353<_0x545b36||_0x48c353>_0x2ed266[_0x353f02(0x21f)]+0x1)||_0x2308c5[_0x353f02(0x217)][_0x2ed266[_0x353f02(0x21f)]]!==_0x1e79a7['PARAGRAPH'])return null;let _0x73cec5=_0x5d088e(_0x2308c5,_0x2ed266),_0x3cece7=_0x2308c5['dataStream']['slice'](_0x73cec5,_0x2ed266['startIndex']);return Array[_0x353f02(0x223)](_0x3cece7)[_0x353f02(0x19c)](_0xb63170=>_0xb63170===_0x1e79a7['BLOCK_END'])?{'paragraph':_0x2ed266,'endTokenOffset':_0x545b36}:null;}function N(_0x5455fd,_0x5b57dd){const _0x1684c6=_0x3ab0de;var _0x5c66c2;let _0x38ee87=M(_0x5b57dd),_0x30d223=_0x5455fd[_0x1684c6(0x217)][_0x38ee87+0x1];(_0x30d223===_0x1e79a7[_0x1684c6(0x1f0)]||_0x30d223===void 0x0)&&P(_0x5455fd,_0x38ee87+0x1,_0x1e79a7[_0x1684c6(0x1c8)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x403b8e(new Set((_0x5c66c2=_0x5455fd[_0x1684c6(0x1a9)])==null?void 0x0:_0x5c66c2[_0x1684c6(0x1e9)](_0x379907=>_0x379907[_0x1684c6(0x199)])))}]});}function P(_0x57f62f,_0x127cf1,_0xc3d068,_0x5f5b0a={}){const _0x2c1943=_0x3ab0de;var _0x1decb0,_0x3628b1;_0xc3d068&&(_0x57f62f[_0x2c1943(0x217)]=''+_0x57f62f[_0x2c1943(0x217)][_0x2c1943(0x1ac)](0x0,_0x127cf1)+_0xc3d068+_0x57f62f[_0x2c1943(0x217)][_0x2c1943(0x1ac)](_0x127cf1),et(_0x57f62f,_0x127cf1,_0xc3d068['length']),(_0x1decb0=_0x5f5b0a[_0x2c1943(0x1a9)])!=null&&_0x1decb0[_0x2c1943(0x203)]&&(_0x57f62f[_0x2c1943(0x1a9)]=[..._0x57f62f[_0x2c1943(0x1a9)]??[],..._0x5f5b0a[_0x2c1943(0x1a9)][_0x2c1943(0x1e9)](_0x23d34f=>({..._0x23d34f,'startIndex':_0x23d34f['startIndex']+_0x127cf1}))][_0x2c1943(0x1cc)]((_0x5b8f01,_0x37e712)=>_0x5b8f01['startIndex']-_0x37e712['startIndex'])),(_0x3628b1=_0x5f5b0a[_0x2c1943(0x230)])!=null&&_0x3628b1['length']&&(_0x57f62f[_0x2c1943(0x230)]=[..._0x57f62f[_0x2c1943(0x230)]??[],..._0x5f5b0a[_0x2c1943(0x230)][_0x2c1943(0x1e9)](_0x8f5bdb=>({..._0x8f5bdb,'startIndex':_0x8f5bdb['startIndex']+_0x127cf1,'endIndex':_0x8f5bdb[_0x2c1943(0x1f5)]+_0x127cf1}))]['sort']((_0x19cc6,_0x5b0744)=>_0x19cc6[_0x2c1943(0x21f)]-_0x5b0744[_0x2c1943(0x21f)])));}function F(_0x210625,_0x2fedb0,_0x5dd3d9){const _0x16e306=_0x3ab0de;let _0x58e995=_0x5dd3d9-_0x2fedb0;_0x210625['dataStream']=''+_0x210625[_0x16e306(0x217)]['slice'](0x0,_0x2fedb0)+_0x210625[_0x16e306(0x217)][_0x16e306(0x1ac)](_0x5dd3d9),tt(_0x210625,_0x2fedb0,_0x58e995);}function et(_0x474c85,_0x50d013,_0x15e899){const _0x29e94d=_0x3ab0de;_0x474c85[_0x29e94d(0x1a9)]=I(_0x474c85[_0x29e94d(0x1a9)],_0x50d013,_0x15e899),_0x474c85[_0x29e94d(0x1c7)]=I(_0x474c85[_0x29e94d(0x1c7)],_0x50d013,_0x15e899),_0x474c85['customBlocks']=I(_0x474c85[_0x29e94d(0x1c4)],_0x50d013,_0x15e899),_0x474c85[_0x29e94d(0x1be)]=nt(_0x474c85[_0x29e94d(0x1be)],_0x50d013,_0x15e899),_0x474c85[_0x29e94d(0x1bd)]=rt(_0x474c85[_0x29e94d(0x1bd)],_0x50d013,_0x15e899),_0x474c85[_0x29e94d(0x209)]=R(_0x474c85[_0x29e94d(0x209)],_0x50d013,_0x15e899),_0x474c85[_0x29e94d(0x1ab)]=R(_0x474c85[_0x29e94d(0x1ab)],_0x50d013,_0x15e899),_0x474c85['customDecorations']=R(_0x474c85['customDecorations'],_0x50d013,_0x15e899),_0x474c85['blockRanges']=R(_0x474c85[_0x29e94d(0x230)],_0x50d013,_0x15e899);}function tt(_0x3b71fd,_0x1144a6,_0x2b044b){const _0x286a8c=_0x3ab0de;var _0xcec638,_0xf5f53f;_0x3b71fd['paragraphs']=L(_0x3b71fd[_0x286a8c(0x1a9)],_0x1144a6,_0x2b044b),_0x3b71fd[_0x286a8c(0x1c7)]=L(_0x3b71fd[_0x286a8c(0x1c7)],_0x1144a6,_0x2b044b),_0x3b71fd[_0x286a8c(0x1c4)]=L(_0x3b71fd[_0x286a8c(0x1c4)],_0x1144a6,_0x2b044b),_0x3b71fd['textRuns']=(_0xcec638=it((_0xf5f53f=_0x3b71fd['textRuns'])==null?void 0x0:_0xf5f53f[_0x286a8c(0x1e9)](_0x52f560=>({..._0x52f560,'startIndex':_0x52f560['st'],'endIndex':_0x52f560['ed']})),_0x1144a6,_0x2b044b))==null?void 0x0:_0xcec638['map'](_0x6fb793=>{let {startIndex:_0xa0599b,endIndex:_0xa906f7,..._0x4ade84}=_0x6fb793;return{..._0x4ade84,'st':_0xa0599b,'ed':_0xa906f7};}),_0x3b71fd[_0x286a8c(0x1bd)]=it(_0x3b71fd[_0x286a8c(0x1bd)],_0x1144a6,_0x2b044b),_0x3b71fd[_0x286a8c(0x209)]=z(_0x3b71fd[_0x286a8c(0x209)],_0x1144a6,_0x2b044b),_0x3b71fd['customRanges']=z(_0x3b71fd[_0x286a8c(0x1ab)],_0x1144a6,_0x2b044b),_0x3b71fd[_0x286a8c(0x218)]=z(_0x3b71fd[_0x286a8c(0x218)],_0x1144a6,_0x2b044b),_0x3b71fd[_0x286a8c(0x230)]=z(_0x3b71fd[_0x286a8c(0x230)],_0x1144a6,_0x2b044b);}function I(_0x4c09a2,_0x97c2e8,_0xb24df7){const _0x6d975f=_0x3ab0de;return _0x4c09a2==null?void 0x0:_0x4c09a2[_0x6d975f(0x1e9)](_0x2e1d9e=>_0x2e1d9e['startIndex']>=_0x97c2e8?{..._0x2e1d9e,'startIndex':_0x2e1d9e[_0x6d975f(0x21f)]+_0xb24df7}:_0x2e1d9e);}function L(_0x119419,_0x116959,_0x16a401){const _0x2e9261=_0x3ab0de;let _0x522ddb=_0x116959+_0x16a401;return _0x119419==null?void 0x0:_0x119419[_0x2e9261(0x1e9)](_0x5bb652=>_0x5bb652[_0x2e9261(0x21f)]>=_0x116959&&_0x5bb652[_0x2e9261(0x21f)]<_0x522ddb?null:_0x5bb652[_0x2e9261(0x21f)]>=_0x522ddb?{..._0x5bb652,'startIndex':_0x5bb652['startIndex']-_0x16a401}:_0x5bb652)[_0x2e9261(0x1bb)](_0x379a8d=>_0x379a8d!=null);}function _0x12f8(){const _0x5bcc44=['docs-code.command.insert-below','endsWith','editOp','_setResource','replaceDocRanges','isArray','TABLE_CELL_END','paragraphs','keepNext','customRanges','slice','_resources','toPrimitive','change$','getCodeConfig','BLOCK_END','textStyle','2myvPGS','_resourceManagerService','setCodeConfig','convert-paragraph','serialize','spaceAbove','indexOf','409004Qpgkvy','filter','columns','tables','textRuns','startOffset','_docsCodeModel','next','decorate','keepLines','customBlocks','right','range','sectionBreaks','PARAGRAPH','blockId','endOffset','TRUE','sort','UNIVER_DOC','some','push','pluginName','compose','_initResource','endTokenOffset','registerPluginResource','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','defineProperty','insertionMode','_injector','object','cursorOffset','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','BLOCK_START','getBody','disposeWithMe','direction','getUnitId','nextMetadata','4jylYcq','_config','insertOp','find','2110308VyXHIO','CODE','205914BRcxpc','map','getParagraphsInRange','fromEntries','constructor','indentStart','paragraphStartIndex','DOC_CODE_PLUGIN','SECTION_BREAK','16533180ZLIQcr','dispose','body','setConfig','endIndex','nextDocumentData','deserialize','documentData','set','entries','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','getCurrentUnitOfType','Document\x20body\x20is\x20required','packageName','add','insert-new','javascript','prototype','length','default','removeUnit','spaceBelow','reduce','clear','columnGroups','docs-code.command.update','paragraphStyle','call','1478315ddsvLK','_change$','startTokenOffset','function','keys','insertLength','previousDocumentData','MUTATION','docs-code.config','handler','dataStream','customDecorations','unitId','_configService','model','monospace','docs-code.command.remove','get','startIndex','codes','COMMAND','config','from','2999344WpZusz','onStarting','metadata','docs-code.command.cancel-empty-paragraph','replaceOp','asObservable','retain','start','getInstance','docs-code.command.unwrap','TABLE_CELL_START','min','blockRanges','type','parse','getTextRanges','removeCode','syncExecuteCommand','symbol','forEach','831747UqwISI','indentEnd','docs-code.command.consume-boundary-delete','commandService','deleteLength','string','docs-code.mutation.remove-config','blockType','stringify','paragraphId','_commandService','bullet','every','@univerjs-pro/docs-code','selectionManager','paragraph','version','max'];_0x12f8=function(){return _0x5bcc44;};return _0x12f8();}function nt(_0x167b69,_0x181d52,_0x8ddc98){return _0x167b69==null?void 0x0:_0x167b69['map'](_0xd16525=>_0xd16525['st']>=_0x181d52?{..._0xd16525,'st':_0xd16525['st']+_0x8ddc98,'ed':_0xd16525['ed']+_0x8ddc98}:_0xd16525['ed']>_0x181d52?{..._0xd16525,'ed':_0xd16525['ed']+_0x8ddc98}:_0xd16525);}function R(_0x4432c6,_0x44dacb,_0x4212be){const _0x1a399a=_0x3ab0de;return _0x4432c6==null?void 0x0:_0x4432c6[_0x1a399a(0x1e9)](_0x381126=>_0x905e98(_0x381126,_0x44dacb,_0x4212be));}function rt(_0x4fd975,_0x4bdab8,_0x27c9a5){const _0x4da922=_0x3ab0de;return _0x4fd975==null?void 0x0:_0x4fd975[_0x4da922(0x1e9)](_0x102d65=>_0x126e80(_0x102d65,_0x4bdab8,_0x27c9a5));}function z(_0x410e2f,_0x252d5f,_0x54bb59){const _0x457fe3=_0x3ab0de;return _0x410e2f==null?void 0x0:_0x410e2f[_0x457fe3(0x1e9)](_0x1ebf38=>_0x168a73(_0x1ebf38,_0x252d5f,_0x54bb59))[_0x457fe3(0x1bb)](_0x448d95=>_0x448d95!=null);}function it(_0x1fd29e,_0x1d6287,_0x5a13b5){const _0x586f1=_0x3ab0de;return _0x1fd29e==null?void 0x0:_0x1fd29e['map'](_0x40cf9c=>_0x2a6859(_0x40cf9c,_0x1d6287,_0x5a13b5))[_0x586f1(0x1bb)](_0x170721=>_0x170721!=null);}const at={'id':_0x3ab0de(0x1a2),'type':_0x41a6f1['COMMAND'],'handler':_0x55eb44=>{const _0x11e4c5=_0x3ab0de;var _0x39d914;if(_0x21b5bf(G(_0x55eb44)))return!0x1;let _0x35896a=_0x3760de(_0x55eb44);if(_0x35896a)return _0x55eb44[_0x11e4c5(0x21e)](_0x15ccf6)['syncExecuteCommand'](B['id'],{'startOffset':_0x35896a['startOffset'],'endOffset':_0x35896a[_0x11e4c5(0x1ca)],'insertionMode':_0x11e4c5(0x200),'unitId':_0x35896a['unitId']});let _0x5d9128=ft(_0x55eb44);if(!_0x5d9128)return!0x1;let _0x5e2ac8=(_0x39d914=_0x55eb44['get'](_0x964d3a)['getCurrentUnitOfType'](_0x48efbf[_0x11e4c5(0x1cd)]))==null?void 0x0:_0x39d914[_0x11e4c5(0x1dd)](),_0x4ca85e=_0x5e2ac8?_0x1831c1(_0x5e2ac8,_0x5d9128):_0x5d9128[_0x11e4c5(0x21f)]+0x1;return _0x55eb44[_0x11e4c5(0x21e)](_0x15ccf6)[_0x11e4c5(0x235)](B['id'],{'startOffset':_0x4ca85e,'endOffset':_0x4ca85e});}},ot={'id':_0x3ab0de(0x23a),'type':_0x41a6f1[_0x3ab0de(0x221)],'handler':()=>!0x0},B={'id':'docs-code.command.insert','type':_0x41a6f1[_0x3ab0de(0x221)],'handler':(_0x17fee5,_0x3c02cc)=>{const _0x357e63=_0x3ab0de;let _0x2c1e71=W(_0x17fee5,_0x3c02cc==null?void 0x0:_0x3c02cc[_0x357e63(0x219)]);if(!_0x2c1e71)return!0x1;let _0x5b2a5a=G(_0x17fee5);if(_0x21b5bf(_0x5b2a5a))return!0x1;let _0x2b801b=_0x2c1e71[_0x357e63(0x21b)][_0x357e63(0x1b7)](_0x2c1e71[_0x357e63(0x219)]),_0x14cb38=lt(_0x3c02cc,_0x5b2a5a),_0x5e0a81=ut(_0x2c1e71[_0x357e63(0x213)],_0x14cb38);if(_0x5e0a81){if(_0x5e0a81[_0x357e63(0x197)]!==_0x435faa[_0x357e63(0x1e7)])return!0x1;let _0x8ab0c8=D({'blockId':_0x5e0a81[_0x357e63(0x1c9)],'documentData':_0x2c1e71[_0x357e63(0x213)],'metadata':_0x2b801b});if(!_0x8ab0c8)return!0x1;let _0x5b6863=Y(_0x2c1e71[_0x357e63(0x23b)],_0x2c1e71[_0x357e63(0x19e)],_0x2c1e71[_0x357e63(0x219)],_0x2c1e71[_0x357e63(0x213)],_0x8ab0c8[_0x357e63(0x1f6)],B['id'],_0x8ab0c8['cursorOffset']);return _0x5b6863&&_0x8ab0c8[_0x357e63(0x1e1)]&&_0x2c1e71[_0x357e63(0x21b)][_0x357e63(0x1f7)](_0x2c1e71['unitId'],_0x8ab0c8[_0x357e63(0x1e1)]),_0x5b6863;}let _0x554dec=(_0x3c02cc==null?void 0x0:_0x3c02cc['blockId'])??_0x2991d6(0x6),_0x41b866;try{_0x41b866=De({'blockId':_0x554dec,'config':_0x3c02cc==null?void 0x0:_0x3c02cc['config'],'documentData':_0x2c1e71[_0x357e63(0x213)],'endOffset':_0x14cb38==null?void 0x0:_0x14cb38[_0x357e63(0x1ca)],'insertionMode':_0x3c02cc==null?void 0x0:_0x3c02cc[_0x357e63(0x1d7)],'metadata':_0x2b801b,'startOffset':_0x14cb38==null?void 0x0:_0x14cb38[_0x357e63(0x1bf)]});}catch(_0x3ff4b8){if(_0x3ff4b8 instanceof E)return!0x1;throw _0x3ff4b8;}let _0x270854=Y(_0x2c1e71['commandService'],_0x2c1e71[_0x357e63(0x19e)],_0x2c1e71[_0x357e63(0x219)],_0x2c1e71[_0x357e63(0x213)],_0x41b866[_0x357e63(0x1f6)],B['id'],_0x41b866[_0x357e63(0x1da)]);return _0x270854&&_0x41b866[_0x357e63(0x1e1)]&&_0x2c1e71[_0x357e63(0x21b)][_0x357e63(0x1f7)](_0x2c1e71[_0x357e63(0x219)],_0x41b866[_0x357e63(0x1e1)]),_0x270854;}},st={'id':_0x3ab0de(0x20a),'type':_0x41a6f1[_0x3ab0de(0x221)],'handler':(_0x2e9cdc,_0x361f34)=>{const _0x2ee026=_0x3ab0de;if(!_0x361f34)return!0x1;let _0x977d32=W(_0x2e9cdc,_0x361f34[_0x2ee026(0x219)]);if(!_0x977d32)return!0x1;let _0x29756c=je({'blockId':_0x361f34[_0x2ee026(0x1c9)],'config':_0x361f34[_0x2ee026(0x222)],'documentData':_0x977d32[_0x2ee026(0x213)],'metadata':_0x977d32[_0x2ee026(0x21b)][_0x2ee026(0x1b7)](_0x977d32['unitId'])});return _0x29756c[_0x2ee026(0x1e1)]&&_0x977d32[_0x2ee026(0x21b)][_0x2ee026(0x1f7)](_0x977d32[_0x2ee026(0x219)],_0x29756c[_0x2ee026(0x1e1)]),!0x0;}},ct={'id':'docs-code.command.exit','type':_0x41a6f1['COMMAND'],'handler':(_0x55cf45,_0x24dbc5)=>V[_0x3ab0de(0x216)](_0x55cf45,_0x24dbc5)},V={'id':_0x3ab0de(0x22d),'type':_0x41a6f1['COMMAND'],'handler':(_0xb65b53,_0x3cfc93)=>{const _0x4bcbd4=_0x3ab0de;if(!_0x3cfc93)return!0x1;let _0x15ddb4=W(_0xb65b53,_0x3cfc93==null?void 0x0:_0x3cfc93[_0x4bcbd4(0x219)]);if(!_0x15ddb4)return!0x1;let _0x590f70=D({'blockId':_0x3cfc93[_0x4bcbd4(0x1c9)],'documentData':_0x15ddb4[_0x4bcbd4(0x213)],'metadata':_0x15ddb4[_0x4bcbd4(0x21b)]['serialize'](_0x15ddb4[_0x4bcbd4(0x219)])});if(!_0x590f70)return!0x1;let _0x2b78a3=Y(_0x15ddb4[_0x4bcbd4(0x23b)],_0x15ddb4[_0x4bcbd4(0x19e)],_0x15ddb4[_0x4bcbd4(0x219)],_0x15ddb4[_0x4bcbd4(0x213)],_0x590f70[_0x4bcbd4(0x1f6)],V['id'],_0x590f70[_0x4bcbd4(0x1da)]);return _0x2b78a3&&_0x590f70[_0x4bcbd4(0x1e1)]&&_0x15ddb4[_0x4bcbd4(0x21b)]['deserialize'](_0x15ddb4['unitId'],_0x590f70[_0x4bcbd4(0x1e1)]),_0x2b78a3;}},H={'id':_0x3ab0de(0x21d),'type':_0x41a6f1['COMMAND'],'handler':(_0x46136f,_0x202a06)=>{const _0x337597=_0x3ab0de;if(!_0x202a06)return!0x1;let _0xecab45=W(_0x46136f,_0x202a06==null?void 0x0:_0x202a06[_0x337597(0x219)]);if(!_0xecab45)return!0x1;let _0x47ab34=Me({'blockId':_0x202a06[_0x337597(0x1c9)],'documentData':_0xecab45[_0x337597(0x213)],'metadata':_0xecab45['model']['serialize'](_0xecab45['unitId'])});if(!_0x47ab34)return!0x1;let _0x5edddb=Y(_0xecab45[_0x337597(0x23b)],_0xecab45[_0x337597(0x19e)],_0xecab45[_0x337597(0x219)],_0xecab45['previousDocumentData'],_0x47ab34[_0x337597(0x1f6)],H['id'],_0x47ab34[_0x337597(0x1da)]);return _0x5edddb&&_0x47ab34[_0x337597(0x1e1)]&&_0xecab45['model'][_0x337597(0x1f7)](_0xecab45['unitId'],_0x47ab34[_0x337597(0x1e1)]),_0x5edddb;}},U={'id':_0x3ab0de(0x227),'type':_0x41a6f1[_0x3ab0de(0x221)],'handler':(_0x211ce3,_0x257f7d)=>{const _0x5184e0=_0x3ab0de;var _0x5cff4a;let _0x4a45b0=W(_0x211ce3,_0x257f7d==null?void 0x0:_0x257f7d[_0x5184e0(0x219)]);if(!_0x4a45b0)return!0x1;let _0x5a9d81=(_0x257f7d==null?void 0x0:_0x257f7d[_0x5184e0(0x1da)])??((_0x5cff4a=G(_0x211ce3))==null?void 0x0:_0x5cff4a['startOffset']);if(_0x5a9d81==null)return!0x1;let _0x129776=Ne({'cursorOffset':_0x5a9d81,'documentData':_0x4a45b0['previousDocumentData'],'paragraphStartIndex':_0x257f7d==null?void 0x0:_0x257f7d[_0x5184e0(0x1ee)]});return _0x129776?Y(_0x4a45b0[_0x5184e0(0x23b)],_0x4a45b0[_0x5184e0(0x19e)],_0x4a45b0[_0x5184e0(0x219)],_0x4a45b0[_0x5184e0(0x213)],_0x129776[_0x5184e0(0x1f6)],U['id'],_0x129776[_0x5184e0(0x1da)]):!0x1;}};function W(_0x53c2b0,_0x1260c3){const _0x48b90a=_0x3ab0de;let _0xb8eeae=_0x53c2b0[_0x48b90a(0x21e)](_0x964d3a),_0x5744b7=_0x1260c3?_0xb8eeae['getUnit'](_0x1260c3,_0x48efbf[_0x48b90a(0x1cd)]):_0xb8eeae[_0x48b90a(0x1fc)](_0x48efbf['UNIVER_DOC']);return _0x5744b7?{'commandService':_0x53c2b0[_0x48b90a(0x21e)](_0x15ccf6),'model':_0x53c2b0['get'](w),'previousDocumentData':_0x5744b7['getSnapshot'](),'selectionManager':_0x53c2b0[_0x48b90a(0x21e)](_0x47ac4f),'unitId':_0x5744b7[_0x48b90a(0x1e0)]()}:null;}function G(_0x33152b){const _0x1201d4=_0x3ab0de;var _0x4e2653;return(_0x4e2653=_0x33152b[_0x1201d4(0x21e)](_0x47ac4f)[_0x1201d4(0x233)]())==null?void 0x0:_0x4e2653[0x0];}function lt(_0x1df402,_0x430091){const _0x306b6b=_0x3ab0de;let _0x2ed7d4=(_0x1df402==null?void 0x0:_0x1df402[_0x306b6b(0x1bf)])??(_0x430091==null?void 0x0:_0x430091[_0x306b6b(0x1bf)]),_0x56bc86=(_0x1df402==null?void 0x0:_0x1df402[_0x306b6b(0x1ca)])??(_0x430091==null?void 0x0:_0x430091[_0x306b6b(0x1ca)]);if(_0x2ed7d4!=null&&_0x56bc86!=null)return{'endOffset':Math[_0x306b6b(0x1a1)](_0x2ed7d4,_0x56bc86),'startOffset':Math['min'](_0x2ed7d4,_0x56bc86)};}function ut(_0x103095,_0x5ce19e){const _0x53306f=_0x3ab0de;var _0x1d459f;if(!_0x5ce19e)return;let _0x24fdee=dt(_0x5ce19e);return(_0x1d459f=_0x103095['body'])==null||(_0x1d459f=_0x1d459f[_0x53306f(0x230)])==null?void 0x0:_0x1d459f[_0x53306f(0x1e5)](_0x338e19=>{const _0x186ec7=_0x53306f;let _0x300d67=_0x31f500(_0x338e19);return _0x5ce19e[_0x186ec7(0x1bf)]===_0x5ce19e[_0x186ec7(0x1ca)]?_0x300592(_0x300d67,_0x24fdee):_0x114c5d(_0x300d67,_0x24fdee);});}function dt(_0x2944aa){const _0x18587e=_0x3ab0de;return _0x2944aa['startOffset']===_0x2944aa['endOffset']?_0x2944aa['startOffset']:_0x2944aa[_0x18587e(0x1bf)]+0x1;}function ft(_0x21ba25){const _0x49ff96=_0x3ab0de;let _0x4fbb48=G(_0x21ba25);if(!_0x4fbb48)return null;let _0x745d23=_0x21ba25[_0x49ff96(0x21e)](_0x964d3a)['getCurrentUnitOfType'](_0x48efbf[_0x49ff96(0x1cd)]),_0x5279e0=_0x745d23==null?void 0x0:_0x745d23[_0x49ff96(0x1dd)]();return _0x5279e0?_0x58acab[_0x49ff96(0x1c6)][_0x49ff96(0x1ea)](_0x4fbb48,_0x5279e0['paragraphs']??[],_0x5279e0[_0x49ff96(0x217)]??'')[0x0]??null:null;}function pt(_0xad234c,_0x469ef4){const _0x279b10=_0x3ab0de;let _0x310522=_0xad234c['body'],_0x38db8c=_0x469ef4[_0x279b10(0x1f3)],_0x7d158a=_0x2f99b7(_0x310522,_0x38db8c);return[_0x7d158a&&_0x38db8c?mt(_0x38db8c,_0x7d158a):null,_0x7d158a?null:ht(_0x310522,_0x38db8c)]['filter'](Boolean)['reduce']((_0x5acc95,_0x349644)=>_0x5e3e53[_0x279b10(0x1d1)](_0x5acc95,_0x349644),null);}function mt(_0x47014e,_0x23d102){const _0x2e3aec=_0x3ab0de;let _0x14aa65=new _0x443f5a();return _0x14aa65[_0x2e3aec(0x22a)](_0x23d102['start']),_0x23d102[_0x2e3aec(0x212)]>0x0&&_0x14aa65['insert'](_0x23d102['insertLength'],_0x2b04e8(_0x47014e,_0x23d102[_0x2e3aec(0x22b)],_0x23d102[_0x2e3aec(0x22b)]+_0x23d102['insertLength'],!0x1)),_0x23d102[_0x2e3aec(0x194)]>0x0&&_0x14aa65['delete'](_0x23d102[_0x2e3aec(0x194)]),_0x5e3e53[_0x2e3aec(0x22c)]()[_0x2e3aec(0x1a4)](_0x14aa65[_0x2e3aec(0x1b7)](),[_0x2e3aec(0x1f3)]);}function ht(_0x261765,_0x30350f){const _0x263692=_0x3ab0de;let _0x1cfcb3=[],_0x3111ed=_0x261765?_t(_0x261765):void 0x0,_0x3e1514=_0x30350f?_t(_0x30350f):void 0x0;for(let _0xd52bc0 of gt)K(_0x5e3e53[_0x263692(0x22c)](),[_0x263692(0x1f3),_0xd52bc0],_0x3111ed==null?void 0x0:_0x3111ed[_0xd52bc0],_0x3e1514==null?void 0x0:_0x3e1514[_0xd52bc0],_0x1cfcb3);return _0x1cfcb3[_0x263692(0x207)]((_0x1f1ad2,_0x55aed3)=>_0x5e3e53[_0x263692(0x1d1)](_0x1f1ad2,_0x55aed3),null);}const gt=[_0x3ab0de(0x1a9),'sectionBreaks','tables',_0x3ab0de(0x209),_0x3ab0de(0x230),_0x3ab0de(0x1c4),_0x3ab0de(0x1ab),_0x3ab0de(0x218),_0x3ab0de(0x1be)];function _t(_0x380e90){return _0x380e90;}function K(_0x31d451,_0x9cae8a,_0xee46f2,_0x2f1d5a,_0x1a7fc9){const _0x38cdce=_0x3ab0de;if(!J(_0xee46f2,_0x2f1d5a)){if(_0xee46f2==null){_0x1a7fc9[_0x38cdce(0x1cf)](_0x31d451['insertOp'](_0x9cae8a,_0x2f1d5a));return;}if(_0x2f1d5a==null){_0x1a7fc9['push'](_0x31d451['removeOp'](_0x9cae8a,_0xee46f2));return;}if(Array[_0x38cdce(0x1a7)](_0xee46f2)&&Array['isArray'](_0x2f1d5a)){vt(_0x31d451,_0x9cae8a,_0xee46f2,_0x2f1d5a,_0x1a7fc9);return;}if(q(_0xee46f2)&&q(_0x2f1d5a)){new Set([...Object[_0x38cdce(0x211)](_0xee46f2),...Object[_0x38cdce(0x211)](_0x2f1d5a)])[_0x38cdce(0x237)](_0x2fee23=>{K(_0x31d451,[..._0x9cae8a,_0x2fee23],_0xee46f2[_0x2fee23],_0x2f1d5a[_0x2fee23],_0x1a7fc9);});return;}_0x1a7fc9[_0x38cdce(0x1cf)](_0x31d451[_0x38cdce(0x228)](_0x9cae8a,_0xee46f2,_0x2f1d5a));}}function vt(_0x3494d5,_0x4620d7,_0x393a0b,_0xc20ad3,_0x24519f){const _0x14ec4b=_0x3ab0de;if(_0x393a0b[_0x14ec4b(0x203)]===_0xc20ad3[_0x14ec4b(0x203)]){_0x393a0b['forEach']((_0x18c212,_0x4f630f)=>K(_0x3494d5,[..._0x4620d7,_0x4f630f],_0x18c212,_0xc20ad3[_0x4f630f],_0x24519f));return;}let _0x5d127e=0x0;for(;_0x5d127e<_0x393a0b[_0x14ec4b(0x203)]&&_0x5d127e<_0xc20ad3['length']&&J(_0x393a0b[_0x5d127e],_0xc20ad3[_0x5d127e]);)_0x5d127e++;let _0x4cc7c2=_0x393a0b[_0x14ec4b(0x203)]-0x1,_0x1f2ec4=_0xc20ad3['length']-0x1;for(;_0x4cc7c2>=_0x5d127e&&_0x1f2ec4>=_0x5d127e&&J(_0x393a0b[_0x4cc7c2],_0xc20ad3[_0x1f2ec4]);)_0x4cc7c2--,_0x1f2ec4--;for(let _0x468652=_0x4cc7c2;_0x468652>=_0x5d127e;_0x468652--)_0x24519f[_0x14ec4b(0x1cf)](_0x3494d5['removeOp']([..._0x4620d7,_0x468652],_0x393a0b[_0x468652]));for(let _0x5d7ad2=_0x5d127e;_0x5d7ad2<=_0x1f2ec4;_0x5d7ad2++)_0x24519f[_0x14ec4b(0x1cf)](_0x3494d5[_0x14ec4b(0x1e4)]([..._0x4620d7,_0x5d7ad2],_0xc20ad3[_0x5d7ad2]));}function q(_0x2aa9ad){const _0x36c725=_0x3ab0de;return typeof _0x2aa9ad==_0x36c725(0x1d9)&&!!_0x2aa9ad&&!Array['isArray'](_0x2aa9ad);}function J(_0x61e505,_0x299b70){const _0x452bd4=_0x3ab0de;return JSON['stringify'](_0x61e505)===JSON[_0x452bd4(0x198)](_0x299b70);}function Y(_0x2acb24,_0x2a5bb8,_0x23406e,_0x215c55,_0x8bd1ad,_0x247c11,_0x17dd6a){const _0x5984d8=_0x3ab0de;let _0x4291cf=pt(_0x215c55,_0x8bd1ad);return _0x4291cf?!!_0x2acb24[_0x5984d8(0x235)](_0x388771['id'],{'unitId':_0x23406e,'actions':_0x4291cf,'textRanges':[{'startOffset':_0x17dd6a,'endOffset':_0x17dd6a,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x247c11}):(_0x2a5bb8[_0x5984d8(0x1a6)]([{'startOffset':_0x17dd6a,'endOffset':_0x17dd6a}],{'unitId':_0x23406e,'subUnitId':_0x23406e},!0x1),!0x0);}const X=_0x3ab0de(0x1ef);var yt=_0x3ab0de(0x19d),bt='1.0.1';const xt={};function Z(_0x306196,_0xc449b3){return function(_0xb6c42,_0xff4b51){_0xc449b3(_0xb6c42,_0xff4b51,_0x306196);};}function St(_0x1509b0,_0x13156d,_0x38c417,_0x547e8c){const _0x40a9b7=_0x3ab0de;var _0x4068d3=arguments[_0x40a9b7(0x203)],_0x5ab783=_0x4068d3<0x3?_0x13156d:_0x547e8c===null?_0x547e8c=Object['getOwnPropertyDescriptor'](_0x13156d,_0x38c417):_0x547e8c,_0x48588f;if(typeof Reflect==_0x40a9b7(0x1d9)&&typeof Reflect[_0x40a9b7(0x1c2)]==_0x40a9b7(0x210))_0x5ab783=Reflect['decorate'](_0x1509b0,_0x13156d,_0x38c417,_0x547e8c);else{for(var _0x5b2670=_0x1509b0[_0x40a9b7(0x203)]-0x1;_0x5b2670>=0x0;_0x5b2670--)(_0x48588f=_0x1509b0[_0x5b2670])&&(_0x5ab783=(_0x4068d3<0x3?_0x48588f(_0x5ab783):_0x4068d3>0x3?_0x48588f(_0x13156d,_0x38c417,_0x5ab783):_0x48588f(_0x13156d,_0x38c417))||_0x5ab783);}return _0x4068d3>0x3&&_0x5ab783&&Object['defineProperty'](_0x13156d,_0x38c417,_0x5ab783),_0x5ab783;}let Q=class extends _0x562207{constructor(_0x103c62,_0x26bd89){const _0x533e71=_0x3ab0de;super(),this[_0x533e71(0x1b4)]=_0x103c62,this[_0x533e71(0x1c0)]=_0x26bd89,this[_0x533e71(0x1d2)]();}[_0x3ab0de(0x1d2)](){const _0x320881=_0x3ab0de;this[_0x320881(0x1de)](this[_0x320881(0x1b4)][_0x320881(0x1d4)]({'pluginName':X,'businesses':[_0x48efbf['UNIVER_DOC']],'toJson':_0x4e5e4e=>JSON[_0x320881(0x198)](this['_docsCodeModel'][_0x320881(0x1b7)](_0x4e5e4e)),'parseJson':_0x1ed1cb=>y(JSON[_0x320881(0x232)](_0x1ed1cb)),'onLoad':(_0x92cc48,_0x22db5b)=>this['_docsCodeModel'][_0x320881(0x1f7)](_0x92cc48,_0x22db5b),'onUnLoad':_0x17d96a=>this['_docsCodeModel'][_0x320881(0x205)](_0x17d96a)}));}};Q=St([Z(0x0,_0x22a43b),Z(0x1,_0x57b8aa(w))],Q);let $=class extends _0x5733e8{constructor(_0x47712d=xt,_0x14146a,_0x45ca49,_0x13ab26){const _0x3a86ca=_0x3ab0de;super(),this[_0x3a86ca(0x1e3)]=_0x47712d,this[_0x3a86ca(0x1d8)]=_0x14146a,this[_0x3a86ca(0x19a)]=_0x45ca49,this[_0x3a86ca(0x21a)]=_0x13ab26;let {..._0x568be0}=_0x18c64b({},xt,this[_0x3a86ca(0x1e3)]);this[_0x3a86ca(0x21a)][_0x3a86ca(0x1f4)](_0x3a86ca(0x215),_0x568be0);}[_0x3ab0de(0x225)](){const _0x376cd6=_0x3ab0de;this[_0x376cd6(0x1d8)][_0x376cd6(0x1ff)]([w]),this[_0x376cd6(0x1d8)]['add']([Q]),this[_0x376cd6(0x1d8)][_0x376cd6(0x21e)](w),this['_injector'][_0x376cd6(0x21e)](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x376cd6(0x237)](_0x306ca1=>this[_0x376cd6(0x1de)](this['_commandService']['registerCommand'](_0x306ca1)));}};C($,_0x3ab0de(0x1d0),X),C($,_0x3ab0de(0x1fe),yt),C($,_0x3ab0de(0x1a0),bt),C($,_0x3ab0de(0x231),_0x48efbf[_0x3ab0de(0x1cd)]),$=St([_0x3dbf34(_0x3b72f5,_0x32f376),Z(0x1,_0x57b8aa(_0x584fc0)),Z(0x2,_0x15ccf6),Z(0x3,_0x1a34db)],$);export{X as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,ot as DocsCodeConsumeBoundaryDeleteCommand,at as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,w as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,st as DocsCodeUpdateCommand,T as RemoveDocsCodeConfigMutation,Te as SetDocsCodeConfigMutation,$ as UniverDocsCodePlugin,Ne as buildCancelEmptyCodeParagraphActions,Ie as isCodeBoundaryDelete,v as normalizeDocsCodeConfig,y as normalizeDocsCodeMetadataResource};
|
|
1
|
+
const _0x47262e=_0x4005;(function(_0x20f793,_0x48c8e1){const _0x419890=_0x4005,_0x4847af=_0x20f793();while(!![]){try{const _0x36931d=parseInt(_0x419890(0x10a))/0x1+parseInt(_0x419890(0x117))/0x2+parseInt(_0x419890(0xae))/0x3+-parseInt(_0x419890(0x10b))/0x4+parseInt(_0x419890(0x139))/0x5*(-parseInt(_0x419890(0x145))/0x6)+-parseInt(_0x419890(0xcd))/0x7+parseInt(_0x419890(0x146))/0x8;if(_0x36931d===_0x48c8e1)break;else _0x4847af['push'](_0x4847af['shift']());}catch(_0x30764d){_0x4847af['push'](_0x4847af['shift']());}}}(_0x305b,0x33a15));import{BooleanNumber as _0x305636,BuildTextUtils as _0x39a794,CommandType as _0x56cb03,DataStreamTreeTokenType as _0x4e2eb9,DependentOn as _0x5a7055,Disposable as _0x4a683f,DocumentBlockRangeType as _0x5e660a,ICommandService as _0x590f1e,IConfigService as _0x5308c5,IResourceManagerService as _0x5bbb3a,IUniverInstanceService as _0x3505d2,Inject as _0x20224e,Injector as _0x31802d,JSONX as _0x1d5524,Plugin as _0x947f63,TextX as _0x4d07a5,UniverInstanceType as _0x4c80f2,containsInteriorInsertionOffset as _0xa244f6,containsStreamIndex as _0x8a4026,createParagraphId as _0x4e2158,generateRandomId as _0x339fc6,getBlockRangeInterval as _0x13b73c,getBodySliceForTextXAction as _0x36cb78,getParagraphContentStartOffset as _0x420e80,getParagraphContentStartOffsets as _0x412152,getParagraphFollowingBlockOffset as _0x5e6434,getSingleDataStreamChange as _0x10a6bd,intersectsOperationalIntervals as _0xaf64f7,merge as _0x3335f3,shiftExclusiveRangeOnDelete as _0x31ca35,shiftExclusiveRangeOnInsert as _0x5cd158,shiftInclusiveRangeOnDelete as _0x2ab905,shiftInclusiveRangeOnInsert as _0x243408}from'@univerjs/core';import{Subject as _0x3d9f3e}from'rxjs';import{DocSelectionManagerService as _0xa4b078,RichTextEditingMutation as _0x1711e6,UniverDocsPlugin as _0x18c0f9,getContentInsertRange as _0x50d82b,isHeaderFooterSelection as _0x288372}from'@univerjs/docs';import{UniverLicensePlugin as _0x4d7e7b}from'@univerjs-pro/license';const Se={'language':'javascript','showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x512d50){return{...Se,..._0x512d50};}function y(_0x3040cd){const _0x38a0bd=_0x4005;let _0x28398e=(_0x3040cd==null?void 0x0:_0x3040cd[_0x38a0bd(0x130)])??{};return{'codes':Object[_0x38a0bd(0xe6)](Object[_0x38a0bd(0xbd)](_0x28398e)[_0x38a0bd(0xb2)](([_0x1dde0f,_0x537a27])=>[_0x1dde0f,v(_0x537a27)]))};}function b(_0xf75148,_0x27d725,_0x1d233d){const _0x29f86e=_0x4005;let _0xc4681f=y(_0xf75148);return _0xc4681f[_0x29f86e(0x130)][_0x27d725]=v({..._0xc4681f[_0x29f86e(0x130)][_0x27d725],..._0x1d233d}),_0xc4681f;}function x(_0x1a660c,_0x200ddf){const _0x4ba688=_0x4005;let _0x41a85c=y(_0x1a660c);return delete _0x41a85c[_0x4ba688(0x130)][_0x200ddf],_0x41a85c;}function S(_0x169a72){'@babel/helpers - typeof';return S=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x5d7bcb){return typeof _0x5d7bcb;}:function(_0x30004e){const _0x3538b9=_0x4005;return _0x30004e&&typeof Symbol==_0x3538b9(0x13d)&&_0x30004e[_0x3538b9(0x133)]===Symbol&&_0x30004e!==Symbol['prototype']?'symbol':typeof _0x30004e;},S(_0x169a72);}function _0x4005(_0x531beb,_0x4ff2e7){_0x531beb=_0x531beb-0xa5;const _0x305b34=_0x305b();let _0x4005a5=_0x305b34[_0x531beb];return _0x4005a5;}function Ce(_0x493049,_0x2223ab){const _0x2f34f3=_0x4005;if(S(_0x493049)!=_0x2f34f3(0x115)||!_0x493049)return _0x493049;var _0x3ba476=_0x493049[Symbol[_0x2f34f3(0x118)]];if(_0x3ba476!==void 0x0){var _0x202826=_0x3ba476[_0x2f34f3(0xb8)](_0x493049,_0x2223ab||'default');if(S(_0x202826)!='object')return _0x202826;throw TypeError(_0x2f34f3(0x111));}return(_0x2223ab===_0x2f34f3(0x129)?String:Number)(_0x493049);}function we(_0x2cba79){const _0x3e00ec=_0x4005;var _0x13e4c6=Ce(_0x2cba79,_0x3e00ec(0x129));return S(_0x13e4c6)==_0x3e00ec(0xda)?_0x13e4c6:_0x13e4c6+'';}function C(_0x4a464c,_0x213333,_0x421672){return(_0x213333=we(_0x213333))in _0x4a464c?Object['defineProperty'](_0x4a464c,_0x213333,{'value':_0x421672,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4a464c[_0x213333]=_0x421672,_0x4a464c;}var w=class extends _0x4a683f{constructor(..._0x3d0cd1){const _0x216d9c=_0x4005;super(..._0x3d0cd1),C(this,_0x216d9c(0xf2),new Map()),C(this,_0x216d9c(0x101),new _0x3d9f3e()),C(this,_0x216d9c(0xcc),this['_change$'][_0x216d9c(0xc2)]());}[_0x47262e(0xaa)](_0x574a61,_0x9f83e3){const _0x59ccc1=_0x47262e;return y(this['_resources'][_0x59ccc1(0xfd)](_0x574a61))[_0x59ccc1(0x130)][_0x9f83e3];}[_0x47262e(0xab)](_0x4f47b2,_0x560a7f,_0x37935a){const _0x544f46=_0x47262e;this['_setResource'](_0x4f47b2,_0x560a7f,b(this['_resources'][_0x544f46(0xfd)](_0x4f47b2),_0x560a7f,_0x37935a));}[_0x47262e(0xf7)](_0x3efc68,_0x3dd3d1){const _0x2efab6=_0x47262e;this['_setResource'](_0x3efc68,_0x3dd3d1,x(this[_0x2efab6(0xf2)][_0x2efab6(0xfd)](_0x3efc68),_0x3dd3d1));}['serialize'](_0x4cb589){const _0x22b4e7=_0x47262e;return y(this[_0x22b4e7(0xf2)][_0x22b4e7(0xfd)](_0x4cb589));}[_0x47262e(0x12f)](_0x2ae3b0,_0x3b4dc4){const _0x14910d=_0x47262e;this['_resources'][_0x14910d(0xe2)](_0x2ae3b0,y(_0x3b4dc4)),this[_0x14910d(0x101)][_0x14910d(0x149)]({'unitId':_0x2ae3b0});}['removeUnit'](_0x3257f0){const _0x2c44ec=_0x47262e;this[_0x2c44ec(0xf2)][_0x2c44ec(0xe3)](_0x3257f0),this['_change$'][_0x2c44ec(0x149)]({'unitId':_0x3257f0});}[_0x47262e(0xe4)](){const _0x15adbb=_0x47262e;super['dispose'](),this['_resources']['clear'](),this['_change$'][_0x15adbb(0x11f)]();}['_setResource'](_0x2873e4,_0x2ccee3,_0x40b4dd){const _0x16233a=_0x47262e;this[_0x16233a(0xf2)][_0x16233a(0xe2)](_0x2873e4,_0x40b4dd),this[_0x16233a(0x101)]['next']({'unitId':_0x2873e4,'blockId':_0x2ccee3});}};const Te={'id':_0x47262e(0xea),'type':_0x56cb03[_0x47262e(0x131)],'handler':(_0x61756b,_0x547f17)=>!(_0x547f17!=null&&_0x547f17[_0x47262e(0x136)])||!_0x547f17[_0x47262e(0xb1)]?!0x1:(_0x61756b[_0x47262e(0xfd)](w)[_0x47262e(0xab)](_0x547f17[_0x47262e(0x136)],_0x547f17['blockId'],_0x547f17[_0x47262e(0xf8)]),!0x0)},T={'id':_0x47262e(0x109),'type':_0x56cb03[_0x47262e(0x131)],'handler':(_0x1c7334,_0x344aa0)=>!(_0x344aa0!=null&&_0x344aa0[_0x47262e(0x136)])||!_0x344aa0[_0x47262e(0xb1)]?!0x1:(_0x1c7334['get'](w)['removeCode'](_0x344aa0[_0x47262e(0x136)],_0x344aa0['blockId']),!0x0)},Ee=_0x47262e(0xba);var E=class extends Error{constructor(_0x5ebdcc=_0x47262e(0xd7)){super(_0x5ebdcc);}};function De(_0x3bf6d5){const _0x379c6f=_0x47262e;var _0xabfdfe;let _0x5c9390=O(_0x3bf6d5['documentData']),_0x2a16de=A(_0x5c9390),_0xe6b726=ke(_0x3bf6d5['startOffset'],_0x3bf6d5[_0x379c6f(0xe1)]),_0x30f1d4=_0xe6b726?(_0xabfdfe=_0x2a16de['blockRanges'])==null?void 0x0:_0xabfdfe['find'](_0x53f219=>{const _0x537923=_0x379c6f;let _0x430a3c=_0x13b73c(_0x53f219);return _0x430a3c[_0x537923(0xe7)]===_0xe6b726[_0x537923(0xe7)]&&_0x430a3c['endOffset']===_0xe6b726['endOffset'];}):void 0x0,{startOffset:_0x7fc4d0,endOffset:_0x3f886f}=_0x30f1d4?_0xe6b726:We(_0x2a16de,_0x3bf6d5[_0x379c6f(0xe7)],_0x3bf6d5[_0x379c6f(0xe1)],_0x3bf6d5[_0x379c6f(0xc4)]);if(!_0x30f1d4&&Ae(_0x2a16de,_0x7fc4d0,_0x3f886f))throw new E(_0x379c6f(0x11a));let _0x33c25a=qe(_0x2a16de,_0x7fc4d0,_0x3f886f),_0x98b365=(_0x30f1d4==null?void 0x0:_0x30f1d4[_0x379c6f(0xb1)])??_0x3bf6d5[_0x379c6f(0xb1)],_0x3f3610=b(_0x3bf6d5['metadata'],_0x98b365,{...Se,..._0x3bf6d5[_0x379c6f(0xf8)]});if(_0x30f1d4)return _0x30f1d4[_0x379c6f(0x107)]=_0x5e660a[_0x379c6f(0x113)],Oe(_0x2a16de,_0x7fc4d0,_0x3f886f),ze(_0x2a16de,_0x7fc4d0,_0x3f886f,_0x33c25a),N(_0x2a16de,_0x30f1d4),{'nextDocumentData':_0x5c9390,'nextMetadata':_0x3f3610,'cursorOffset':_0x7fc4d0+0x1};if(_0x7fc4d0===_0x3f886f){var _0x4f4dc7,_0x14ce34;let _0x4d8275=''+_0x4e2eb9[_0x379c6f(0xd9)]+_0x4e2eb9[_0x379c6f(0xf3)]+_0x4e2eb9[_0x379c6f(0xd8)];P(_0x2a16de,_0x7fc4d0,_0x4d8275,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x4e2158(new Set((_0x4f4dc7=_0x2a16de[_0x379c6f(0xa8)])==null?void 0x0:_0x4f4dc7['map'](_0x514e03=>_0x514e03[_0x379c6f(0xd5)]))),'paragraphStyle':Re(!0x0,!0x0,_0x33c25a)}],'blockRanges':[{'blockId':_0x98b365,'blockType':_0x5e660a[_0x379c6f(0x113)],'startIndex':0x0,'endIndex':_0x4d8275['length']-0x1}]});let _0x1269be=(_0x14ce34=_0x2a16de[_0x379c6f(0x13e)])==null?void 0x0:_0x14ce34[_0x379c6f(0x124)](_0x58f73f=>_0x58f73f[_0x379c6f(0xb1)]===_0x98b365);return _0x1269be&&N(_0x2a16de,_0x1269be),{'nextDocumentData':_0x5c9390,'nextMetadata':_0x3f3610,'cursorOffset':_0x7fc4d0+0x1};}P(_0x2a16de,_0x3f886f,_0x4e2eb9[_0x379c6f(0xd8)]),P(_0x2a16de,_0x7fc4d0,_0x4e2eb9[_0x379c6f(0xd9)]),ze(_0x2a16de,_0x7fc4d0,_0x3f886f+0x1,_0x33c25a);let _0x540b7a={'blockId':_0x98b365,'blockType':_0x5e660a[_0x379c6f(0x113)],'startIndex':_0x7fc4d0,'endIndex':_0x3f886f+0x1};return _0x2a16de['blockRanges']=[..._0x2a16de[_0x379c6f(0x13e)]??[],_0x540b7a]['sort']((_0x1f7eb3,_0x5a5f81)=>_0x1f7eb3[_0x379c6f(0x108)]-_0x5a5f81[_0x379c6f(0x108)]),N(_0x2a16de,_0x540b7a),{'nextDocumentData':_0x5c9390,'nextMetadata':_0x3f3610,'cursorOffset':_0x7fc4d0+0x1};}function Oe(_0x30deb0,_0x2e0320,_0x3a55d6){const _0x3fcd78=_0x47262e;(_0x30deb0['paragraphs']??[])[_0x3fcd78(0x112)](_0x18a442=>_0x18a442[_0x3fcd78(0x108)]>_0x2e0320&&_0x18a442[_0x3fcd78(0x108)]<_0x3a55d6)[_0x3fcd78(0x138)](_0x53de5f=>{const _0x568120=_0x3fcd78;let _0x544edc={..._0x53de5f['paragraphStyle']??{}};delete _0x544edc[_0x568120(0xf4)],delete _0x544edc[_0x568120(0xf5)],_0x53de5f[_0x568120(0x14a)]=_0x544edc;});}function ke(_0x158462,_0x3f9328){const _0x9df4c=_0x47262e;return _0x158462==null||_0x3f9328==null||_0x158462===_0x3f9328?null:{'startOffset':Math['min'](_0x158462,_0x3f9328),'endOffset':Math[_0x9df4c(0x140)](_0x158462,_0x3f9328)};}function Ae(_0x229926,_0x3ee356,_0x20cf6a){const _0x1e0604=_0x47262e;return(_0x229926[_0x1e0604(0x13e)]??[])[_0x1e0604(0xaf)](_0x56eb56=>{let _0x539e1e=_0x13b73c(_0x56eb56);return _0x3ee356===_0x20cf6a?_0xa244f6(_0x539e1e,_0x3ee356):_0xaf64f7(_0x539e1e,{'startOffset':_0x3ee356,'endOffset':_0x20cf6a});});}function je(_0x2b6bd2){const _0x2b5404=_0x47262e;return{'nextDocumentData':O(_0x2b6bd2[_0x2b5404(0xa5)]),'nextMetadata':b(_0x2b6bd2[_0x2b5404(0xee)],_0x2b6bd2[_0x2b5404(0xb1)],_0x2b6bd2[_0x2b5404(0xf8)]),'cursorOffset':0x0};}function D(_0x4e4e8d){const _0x4f5fe8=_0x47262e;let _0x45a44f=O(_0x4e4e8d[_0x4f5fe8(0xa5)]),_0x485101=A(_0x45a44f),_0x2e9cb6=Fe(_0x485101,_0x4e4e8d['blockId']);if(!_0x2e9cb6)return null;let _0x5c5417=He(_0x485101,_0x2e9cb6);return{'nextDocumentData':_0x45a44f,'nextMetadata':x(_0x4e4e8d[_0x4f5fe8(0xee)],_0x4e4e8d['blockId']),'cursorOffset':_0x5c5417};}function Me(_0x5bd67a){const _0x2c8f4c=_0x47262e;var _0x75e3c4;let _0x12a5f6=O(_0x5bd67a[_0x2c8f4c(0xa5)]),_0x5cdb7d=A(_0x12a5f6),_0x11e0a2=Fe(_0x5cdb7d,_0x5bd67a[_0x2c8f4c(0xb1)]);if(!_0x11e0a2)return null;let _0x50cca8=_0x13b73c(_0x11e0a2);return F(_0x5cdb7d,_0x50cca8[_0x2c8f4c(0xe7)],_0x50cca8[_0x2c8f4c(0xe1)]),_0x5cdb7d[_0x2c8f4c(0x13e)]=(_0x75e3c4=_0x5cdb7d[_0x2c8f4c(0x13e)])==null?void 0x0:_0x75e3c4[_0x2c8f4c(0x112)](_0x53e3b1=>_0x53e3b1['blockId']!==_0x5bd67a[_0x2c8f4c(0xb1)]),{'nextDocumentData':_0x12a5f6,'nextMetadata':x(_0x5bd67a['metadata'],_0x5bd67a[_0x2c8f4c(0xb1)]),'cursorOffset':_0x11e0a2[_0x2c8f4c(0x108)]};}function Ne(_0x4c7542){const _0x49139a=_0x47262e;let _0x390cf4=O(_0x4c7542[_0x49139a(0xa5)]),_0x4c64a4=A(_0x390cf4),_0x1f94f3=Le(_0x4c64a4,_0x4c7542[_0x49139a(0x126)]);return _0x1f94f3&&Pe(_0x390cf4,_0x4c64a4,_0x1f94f3,_0x4c7542['cursorOffset'],_0x4c7542['paragraphStartIndex'])||null;}function Pe(_0x53243f,_0x43ca75,_0x2ae445,_0x47c42f,_0xf8b813){const _0x571978=_0x47262e;let _0x2d60ad=$e(_0x43ca75,_0x2ae445,_0x47c42f,_0xf8b813);if(!_0x2d60ad)return null;let _0x31b531=_0x2d60ad[_0x571978(0x128)]-0x1;return F(_0x43ca75,_0x2d60ad[_0x571978(0x120)][_0x571978(0x108)],_0x2d60ad[_0x571978(0x120)][_0x571978(0x108)]+0x1),{'nextDocumentData':_0x53243f,'cursorOffset':_0x31b531};}function Fe(_0x493169,_0x54cdce){const _0x253d89=_0x47262e;var _0x4f7d67;return _0x493169==null||(_0x4f7d67=_0x493169[_0x253d89(0x13e)])==null?void 0x0:_0x4f7d67['find'](_0x35c05b=>_0x35c05b[_0x253d89(0x107)]===_0x5e660a[_0x253d89(0x113)]&&_0x35c05b[_0x253d89(0xb1)]===_0x54cdce);}function Ie(_0x8ef6fe){const _0x309300=_0x47262e;let _0x56915c=_0x8ef6fe[_0x309300(0xa5)][_0x309300(0xa7)];if(!_0x56915c)return!0x1;let _0x12eaa0=_0x8ef6fe[_0x309300(0xb5)]===_0x309300(0xef)?_0x8ef6fe[_0x309300(0x126)]-0x1:_0x8ef6fe[_0x309300(0x126)],_0x1b4de5=_0x8ef6fe[_0x309300(0xb5)]===_0x309300(0xd6)?_0x8ef6fe[_0x309300(0x126)]+0x1:_0x12eaa0;return(_0x56915c[_0x309300(0x13e)]??[])[_0x309300(0xaf)](_0x14967c=>_0x14967c[_0x309300(0x107)]===_0x5e660a[_0x309300(0x113)]?_0x12eaa0===_0x14967c[_0x309300(0x108)]||_0x12eaa0===_0x14967c['endIndex']||_0x1b4de5===_0x14967c['startIndex']||_0x1b4de5===_0x14967c['endIndex']:!0x1);}function Le(_0x584f31,_0x28a6ad){const _0x28ce1a=_0x47262e;var _0x3a8a84;return(_0x3a8a84=_0x584f31[_0x28ce1a(0x13e)])==null?void 0x0:_0x3a8a84['find'](_0x14f07c=>{const _0x2700c4=_0x28ce1a;let _0x275f21=M(_0x14f07c);return _0x14f07c[_0x2700c4(0x107)]===_0x5e660a[_0x2700c4(0x113)]&&_0x14f07c['startIndex']<=_0x28a6ad&&_0x28a6ad<=_0x275f21+0x2;});}function Re(_0x5b2eba,_0x2143dc,_0x29729b=!0x1){const _0x46a91b=_0x47262e;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x305636[_0x46a91b(0xb9)],'keepNext':_0x2143dc?_0x305636[_0x46a91b(0x10d)]:_0x305636[_0x46a91b(0xb9)],'widowControl':_0x305636[_0x46a91b(0xb9)],..._0x5b2eba&&_0x29729b?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x357c1d,_0x12cbd9,_0x58f251,_0x4070de=!0x1){const _0x291c04=_0x47262e;let _0x27e209=(_0x357c1d[_0x291c04(0xa8)]??[])[_0x291c04(0x112)](_0x246028=>_0x246028[_0x291c04(0x108)]>_0x12cbd9&&_0x246028[_0x291c04(0x108)]<_0x58f251);_0x27e209[_0x291c04(0x138)]((_0xabd74,_0x20aa41)=>{const _0x3abca3=_0x291c04;_0xabd74['paragraphStyle']={..._0xabd74[_0x3abca3(0x14a)]??{},...Re(_0x20aa41===0x0,_0x20aa41===_0x27e209[_0x3abca3(0xcb)]-0x1,_0x4070de)};});}function Be(_0x22aedc){const _0x2cf7ae=_0x47262e;var _0x591490,_0x205438;let _0x4406ff={..._0x22aedc??{}};return delete _0x4406ff[_0x2cf7ae(0x102)],delete _0x4406ff[_0x2cf7ae(0x142)],delete _0x4406ff[_0x2cf7ae(0xf4)],delete _0x4406ff[_0x2cf7ae(0xf5)],delete _0x4406ff[_0x2cf7ae(0x11c)],delete _0x4406ff[_0x2cf7ae(0xed)],delete _0x4406ff['widowControl'],((_0x591490=_0x4406ff[_0x2cf7ae(0xcf)])==null?void 0x0:_0x591490['ff'])===Ee&&((_0x205438=_0x4406ff['textStyle'])==null?void 0x0:_0x205438['fs'])===0xc&&delete _0x4406ff[_0x2cf7ae(0xcf)],_0x4406ff;}function Ve(_0x5e93f2,_0x3495c5){const _0x26eafe=_0x47262e;let _0x47c684=M(_0x3495c5);return(_0x5e93f2[_0x26eafe(0xa8)]??[])[_0x26eafe(0x112)](_0x259742=>_0x259742[_0x26eafe(0x108)]>_0x3495c5[_0x26eafe(0x108)]&&_0x259742[_0x26eafe(0x108)]<_0x47c684);}function He(_0x1ba698,_0xa9a9a0){const _0x401b16=_0x47262e;var _0x11d6eb;let _0x5b6ef2=M(_0xa9a9a0);return Ve(_0x1ba698,_0xa9a9a0)['forEach'](_0x3a423f=>{const _0x25a1de=_0x4005;_0x3a423f[_0x25a1de(0x14a)]=Be(_0x3a423f[_0x25a1de(0x14a)]);}),F(_0x1ba698,_0x5b6ef2,_0x5b6ef2+0x1),F(_0x1ba698,_0xa9a9a0['startIndex'],_0xa9a9a0[_0x401b16(0x108)]+0x1),_0x1ba698[_0x401b16(0x13e)]=(_0x11d6eb=_0x1ba698[_0x401b16(0x13e)])==null?void 0x0:_0x11d6eb['filter'](_0x4921c2=>_0x4921c2['blockId']!==_0xa9a9a0[_0x401b16(0xb1)]),_0xa9a9a0[_0x401b16(0x108)];}function O(_0xb676eb){const _0xc33668=_0x47262e;return{..._0xb676eb,'body':_0xb676eb[_0xc33668(0xa7)]?Ue(_0xb676eb[_0xc33668(0xa7)]):_0xb676eb['body']};}function Ue(_0x553898){const _0x4fac51=_0x47262e;var _0x485758,_0x33dded,_0x5c7e47,_0x5c4098,_0x280d13,_0x428dc2,_0x1d4b36,_0x38aaa9,_0x1bec98;return{..._0x553898,'paragraphs':(_0x485758=_0x553898[_0x4fac51(0xa8)])==null?void 0x0:_0x485758['map'](_0x2525ba=>({..._0x2525ba,'bullet':k(_0x2525ba[_0x4fac51(0x135)]),'paragraphStyle':k(_0x2525ba[_0x4fac51(0x14a)])})),'sectionBreaks':(_0x33dded=_0x553898[_0x4fac51(0xc8)])==null?void 0x0:_0x33dded[_0x4fac51(0xb2)](_0x2d60e8=>({..._0x2d60e8})),'textRuns':(_0x5c7e47=_0x553898[_0x4fac51(0x13f)])==null?void 0x0:_0x5c7e47['map'](_0x1e51ab=>({..._0x1e51ab})),'tables':(_0x5c4098=_0x553898[_0x4fac51(0xdb)])==null?void 0x0:_0x5c4098[_0x4fac51(0xb2)](_0x2bb0a5=>({..._0x2bb0a5})),'columnGroups':(_0x280d13=_0x553898['columnGroups'])==null?void 0x0:_0x280d13[_0x4fac51(0xb2)](_0x41f704=>{const _0xe80414=_0x4fac51;var _0x1487c8;return{..._0x41f704,'columns':(_0x1487c8=_0x41f704[_0xe80414(0x11d)])==null?void 0x0:_0x1487c8[_0xe80414(0xb2)](_0x2a5db3=>k(_0x2a5db3))};}),'blockRanges':(_0x428dc2=_0x553898[_0x4fac51(0x13e)])==null?void 0x0:_0x428dc2[_0x4fac51(0xb2)](_0x41c4a4=>({..._0x41c4a4})),'customRanges':(_0x1d4b36=_0x553898['customRanges'])==null?void 0x0:_0x1d4b36[_0x4fac51(0xb2)](_0x446350=>({..._0x446350})),'customDecorations':(_0x38aaa9=_0x553898[_0x4fac51(0x141)])==null?void 0x0:_0x38aaa9[_0x4fac51(0xb2)](_0x2f2266=>({..._0x2f2266})),'customBlocks':(_0x1bec98=_0x553898[_0x4fac51(0x12e)])==null?void 0x0:_0x1bec98[_0x4fac51(0xb2)](_0x2986e8=>({..._0x2986e8}))};}function k(_0x8b792e){const _0x1fa3de=_0x47262e;return Array[_0x1fa3de(0xe0)](_0x8b792e)?_0x8b792e[_0x1fa3de(0xb2)](_0x460a77=>k(_0x460a77)):!_0x8b792e||typeof _0x8b792e!='object'?_0x8b792e:Object[_0x1fa3de(0xe6)](Object[_0x1fa3de(0xbd)](_0x8b792e)['map'](([_0x5a5c9f,_0x5329dd])=>[_0x5a5c9f,k(_0x5329dd)]));}function A(_0x40132d){const _0x2c0b68=_0x47262e;if(!_0x40132d[_0x2c0b68(0xa7)])throw Error(_0x2c0b68(0xf9));return _0x40132d[_0x2c0b68(0xa7)];}function _0x305b(){const _0x4df336=['828808wQwmbj','editOp','FALSE','every','_docsCodeModel','reduce','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','filter','CODE','endIndex','object','version','502652rCojPO','toPrimitive','getInstance','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','dataStream','keepLines','columns','getSnapshot','complete','paragraph','registerCommand','_resourceManagerService','getCurrentUnitOfType','find','replaceDocRanges','cursorOffset','columnGroups','endTokenOffset','string','push','onStarting','slice','docs-code.command.cancel-empty-paragraph','customBlocks','deserialize','codes','MUTATION','_injector','constructor','SECTION_BREAK','bullet','unitId','commandService','forEach','370FZirck','removeUnit','min','stringify','function','blockRanges','textRuns','max','customDecorations','indentStart','serialize','getUnit','11754lEWgYT','278208wxbUAr','getOwnPropertyDescriptor','docs-code.command.consume-boundary-delete','next','paragraphStyle','documentData','disposeWithMe','body','paragraphs','defineProperty','getCodeConfig','setCodeConfig','COMMAND','insertOp','520758obMFiW','some','packageName','blockId','map','from','setConfig','direction','DOC_CODE_PLUGIN','removeOp','call','TRUE','monospace','docs-code.command.remove','UNIVER_DOC','entries','handler','endsWith','nextDocumentData','start','asObservable','retain','insertionMode','_initResource','getUnitId','TABLE_CELL_END','sectionBreaks','previousDocumentData','range','length','change$','351869nbecNb','pluginName','textStyle','customRanges','syncExecuteCommand','paragraphStartIndex','docs-code.command.insert','insertLength','paragraphId','right','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','BLOCK_END','BLOCK_START','symbol','tables','TABLE_CELL_START','_configService','docs-code.command.update','deleteLength','isArray','endOffset','set','delete','dispose','getBody','fromEntries','startOffset','parse','nextMetadata','docs-code.mutation.set-config','insert','getTextRanges','keepNext','metadata','left','_config','indexOf','_resources','PARAGRAPH','spaceAbove','spaceBelow','1.0.3','removeCode','config','Document\x20body\x20is\x20required','startTokenOffset','sort','insert-new','get','@univerjs-pro/docs-code','selectionManager','model','_change$','indentEnd','decorate','registerPluginResource','add','keys','blockType','startIndex','docs-code.mutation.remove-config','154224RvZXBi'];_0x305b=function(){return _0x4df336;};return _0x305b();}function We(_0x2f35c7,_0x5685d0,_0x3a1076,_0x8995c5='convert-paragraph'){const _0x563f43=_0x47262e;if(_0x5685d0==null||_0x3a1076==null){let _0x305c52=Ke(_0x2f35c7);return{'startOffset':_0x305c52,'endOffset':_0x305c52};}let _0xe09a70=Math[_0x563f43(0x13b)](_0x5685d0,_0x3a1076),_0x30a176=Math['max'](_0x5685d0,_0x3a1076),_0x13828c=Ze(_0x2f35c7,_0xe09a70,_0x30a176);return _0xe09a70===_0x30a176?_0x8995c5===_0x563f43(0xfc)?{'startOffset':_0xe09a70,'endOffset':_0x30a176}:Ge(_0x2f35c7,_0xe09a70,_0x13828c):Je(_0x2f35c7,_0xe09a70,_0x30a176,_0x13828c);}function Ge(_0x3aac02,_0x58918c,_0x3e373d){const _0x453504=_0x47262e;let _0x418cf8=Ye(_0x3aac02,_0x58918c);if(_0x418cf8){let _0x4f077c=j(_0x3aac02,_0x418cf8,_0x3e373d);if(_0x4f077c<_0x418cf8[_0x453504(0x108)])return{'startOffset':_0x4f077c,'endOffset':_0x3e373d?Math[_0x453504(0x13b)](_0x418cf8[_0x453504(0x108)]+0x1,_0x3e373d[_0x453504(0xe1)]):_0x418cf8['startIndex']+0x1};}let _0x159ac1=_0x58918c===0x0&&_0x3aac02[_0x453504(0x11b)][0x0]===_0x4e2eb9['PARAGRAPH']?0x1:_0x58918c;return{'startOffset':_0x159ac1,'endOffset':_0x159ac1};}function Ke(_0x5994d4){const _0x4ac359=_0x47262e;return _0x5994d4[_0x4ac359(0x11b)][_0x4ac359(0xbf)](_0x4e2eb9[_0x4ac359(0x134)])?Math['max'](0x0,_0x5994d4[_0x4ac359(0x11b)][_0x4ac359(0xcb)]-0x1):_0x5994d4[_0x4ac359(0x11b)][_0x4ac359(0xcb)];}function qe(_0x134211,_0x79d171,_0x4234a5){const _0x5dbe9c=_0x47262e;var _0x38cc19;let _0x34f406=Math[_0x5dbe9c(0x13b)](_0x79d171,_0x4234a5),_0x141f8f=Math['max'](_0x79d171,_0x4234a5);return!!((_0x38cc19=_0x134211['tables'])!=null&&_0x38cc19[_0x5dbe9c(0xaf)](_0x3bd783=>_0x34f406>_0x3bd783[_0x5dbe9c(0x108)]&&_0x34f406<_0x3bd783[_0x5dbe9c(0x114)]||_0x141f8f>_0x3bd783['startIndex']&&_0x141f8f<_0x3bd783[_0x5dbe9c(0x114)]||_0x34f406<=_0x3bd783[_0x5dbe9c(0x108)]&&_0x141f8f>=_0x3bd783[_0x5dbe9c(0x114)]));}function Je(_0x268327,_0x4a239c,_0x3f9997,_0x1a5e82){const _0x5b085d=_0x47262e;let _0x3f12f6=[..._0x268327['paragraphs']??[]][_0x5b085d(0xfb)]((_0x49030b,_0x37699c)=>_0x49030b['startIndex']-_0x37699c[_0x5b085d(0x108)]),_0x424d38=_0x412152(_0x268327),_0x339bbf=_0x3f12f6[_0x5b085d(0x124)](_0x41b8db=>j(_0x268327,_0x41b8db,_0x1a5e82,_0x424d38)<=_0x4a239c&&_0x4a239c<=_0x41b8db[_0x5b085d(0x108)]),_0x1f4192=_0x3f12f6[_0x5b085d(0x124)](_0x56bc8=>_0x56bc8['startIndex']>=_0x3f9997-0x1)??_0x3f12f6[_0x3f12f6[_0x5b085d(0xcb)]-0x1];return{'startOffset':_0x339bbf?j(_0x268327,_0x339bbf,_0x1a5e82,_0x424d38):_0x4a239c,'endOffset':_0x1f4192?Xe(_0x1f4192,_0x1a5e82):_0x3f9997};}function Ye(_0x5ba20f,_0x4655f3){const _0x5419cf=_0x47262e;let _0x126abd=[..._0x5ba20f[_0x5419cf(0xa8)]??[]][_0x5419cf(0xfb)]((_0x5b3002,_0xdb3da7)=>_0x5b3002[_0x5419cf(0x108)]-_0xdb3da7[_0x5419cf(0x108)]),_0x2c37f6=_0x412152(_0x5ba20f);return _0x126abd[_0x5419cf(0x124)](_0x4651bb=>(_0x2c37f6[_0x5419cf(0xfd)](_0x4651bb[_0x5419cf(0x108)])??0x0)<=_0x4655f3&&_0x4655f3<=_0x4651bb[_0x5419cf(0x108)]);}function j(_0x191e56,_0x3e08d4,_0x3c6e89,_0x35b663){const _0x46c23f=_0x47262e;let _0x4bb2ec=(_0x35b663==null?void 0x0:_0x35b663['get'](_0x3e08d4[_0x46c23f(0x108)]))??_0x420e80(_0x191e56,_0x3e08d4);return _0x3c6e89?Math[_0x46c23f(0x140)](_0x4bb2ec,_0x3c6e89['startOffset']):_0x4bb2ec;}function Xe(_0x27193f,_0x3cdd01){const _0xe16e96=_0x47262e;let _0x530fed=_0x27193f[_0xe16e96(0x108)]+0x1;return _0x3cdd01?Math[_0xe16e96(0x13b)](_0x530fed,_0x3cdd01['endOffset']):_0x530fed;}function Ze(_0x386d4a,_0x2f3387,_0x244643){const _0x268ad7=_0x47262e;let _0x5ddc8e=Qe(_0x386d4a,_0x2f3387),_0x3dc1c7=Qe(_0x386d4a,_0x2f3387===_0x244643?_0x244643:Math[_0x268ad7(0x140)](_0x2f3387,_0x244643-0x1));if(_0x5ddc8e||_0x3dc1c7){if(!_0x5ddc8e||!_0x3dc1c7||_0x5ddc8e[_0x268ad7(0xfa)]!==_0x3dc1c7['startTokenOffset']||_0x5ddc8e[_0x268ad7(0x128)]!==_0x3dc1c7[_0x268ad7(0x128)])throw new E();return _0x5ddc8e;}}function Qe(_0x183fbb,_0x8d8dd6){const _0x4866cf=_0x47262e;let _0x2b2733=_0x183fbb[_0x4866cf(0x11b)],_0x59dcd5=-0x1;for(let _0x2b841d=Math[_0x4866cf(0x13b)](_0x8d8dd6,_0x2b2733[_0x4866cf(0xcb)]-0x1);_0x2b841d>=0x0;_0x2b841d--){let _0x45ef38=_0x2b2733[_0x2b841d];if(_0x45ef38===_0x4e2eb9['TABLE_CELL_END'])return;if(_0x45ef38===_0x4e2eb9[_0x4866cf(0xdc)]){_0x59dcd5=_0x2b841d;break;}}if(_0x59dcd5<0x0)return;let _0x584920=_0x2b2733[_0x4866cf(0xf1)](_0x4e2eb9[_0x4866cf(0xc7)],_0x59dcd5+0x1);if(!(_0x584920<0x0||_0x8d8dd6<_0x59dcd5+0x1||_0x8d8dd6>_0x584920-0x1))return{'startOffset':_0x59dcd5+0x1,'endOffset':Math[_0x4866cf(0x140)](_0x59dcd5+0x1,_0x584920-0x1),'startTokenOffset':_0x59dcd5,'endTokenOffset':_0x584920};}function M(_0x5d3bd4){return _0x13b73c(_0x5d3bd4)['endOffset']-0x1;}function $e(_0x4a1ca4,_0x499791,_0x2c7e67,_0x4df8d9){const _0x4f3036=_0x47262e;let _0x3a2602=M(_0x499791),_0x3ea20c=(_0x4a1ca4[_0x4f3036(0xa8)]??[])[_0x4f3036(0x124)](_0x3d3b2c=>_0x3d3b2c[_0x4f3036(0x108)]===_0x3a2602+0x1);if(!_0x3ea20c||_0x4df8d9!=null&&_0x3ea20c[_0x4f3036(0x108)]!==_0x4df8d9||_0x2c7e67!=null&&(_0x2c7e67<_0x3a2602||_0x2c7e67>_0x3ea20c[_0x4f3036(0x108)]+0x1)||_0x4a1ca4[_0x4f3036(0x11b)][_0x3ea20c[_0x4f3036(0x108)]]!==_0x4e2eb9[_0x4f3036(0xf3)])return null;let _0xa892d9=_0x420e80(_0x4a1ca4,_0x3ea20c),_0x49f7fb=_0x4a1ca4[_0x4f3036(0x11b)][_0x4f3036(0x12c)](_0xa892d9,_0x3ea20c[_0x4f3036(0x108)]);return Array[_0x4f3036(0xb3)](_0x49f7fb)[_0x4f3036(0x10e)](_0x39ff90=>_0x39ff90===_0x4e2eb9[_0x4f3036(0xd8)])?{'paragraph':_0x3ea20c,'endTokenOffset':_0x3a2602}:null;}function N(_0x501601,_0x35e791){const _0xd927eb=_0x47262e;var _0x550b0f;let _0x524252=M(_0x35e791),_0x53a94c=_0x501601['dataStream'][_0x524252+0x1];(_0x53a94c===_0x4e2eb9[_0xd927eb(0x134)]||_0x53a94c===void 0x0)&&P(_0x501601,_0x524252+0x1,_0x4e2eb9['PARAGRAPH'],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x4e2158(new Set((_0x550b0f=_0x501601[_0xd927eb(0xa8)])==null?void 0x0:_0x550b0f[_0xd927eb(0xb2)](_0x14f923=>_0x14f923[_0xd927eb(0xd5)])))}]});}function P(_0xf543da,_0x13e78b,_0x188b5d,_0x579bbc={}){const _0x1b7549=_0x47262e;var _0x1817c5,_0x291b29;_0x188b5d&&(_0xf543da[_0x1b7549(0x11b)]=''+_0xf543da[_0x1b7549(0x11b)]['slice'](0x0,_0x13e78b)+_0x188b5d+_0xf543da[_0x1b7549(0x11b)][_0x1b7549(0x12c)](_0x13e78b),et(_0xf543da,_0x13e78b,_0x188b5d[_0x1b7549(0xcb)]),(_0x1817c5=_0x579bbc[_0x1b7549(0xa8)])!=null&&_0x1817c5[_0x1b7549(0xcb)]&&(_0xf543da[_0x1b7549(0xa8)]=[..._0xf543da['paragraphs']??[],..._0x579bbc[_0x1b7549(0xa8)][_0x1b7549(0xb2)](_0x26a5f3=>({..._0x26a5f3,'startIndex':_0x26a5f3[_0x1b7549(0x108)]+_0x13e78b}))][_0x1b7549(0xfb)]((_0x1108ff,_0x5672e8)=>_0x1108ff[_0x1b7549(0x108)]-_0x5672e8[_0x1b7549(0x108)])),(_0x291b29=_0x579bbc['blockRanges'])!=null&&_0x291b29[_0x1b7549(0xcb)]&&(_0xf543da[_0x1b7549(0x13e)]=[..._0xf543da[_0x1b7549(0x13e)]??[],..._0x579bbc[_0x1b7549(0x13e)][_0x1b7549(0xb2)](_0x33d64f=>({..._0x33d64f,'startIndex':_0x33d64f[_0x1b7549(0x108)]+_0x13e78b,'endIndex':_0x33d64f[_0x1b7549(0x114)]+_0x13e78b}))][_0x1b7549(0xfb)]((_0x498e79,_0x16daec)=>_0x498e79['startIndex']-_0x16daec[_0x1b7549(0x108)])));}function F(_0xcdbbe9,_0x2c3263,_0x2fdf80){const _0x37f594=_0x47262e;let _0x5bb469=_0x2fdf80-_0x2c3263;_0xcdbbe9[_0x37f594(0x11b)]=''+_0xcdbbe9[_0x37f594(0x11b)][_0x37f594(0x12c)](0x0,_0x2c3263)+_0xcdbbe9[_0x37f594(0x11b)][_0x37f594(0x12c)](_0x2fdf80),tt(_0xcdbbe9,_0x2c3263,_0x5bb469);}function et(_0x482ff5,_0x50a13d,_0x2c4148){const _0x4c40d9=_0x47262e;_0x482ff5[_0x4c40d9(0xa8)]=I(_0x482ff5[_0x4c40d9(0xa8)],_0x50a13d,_0x2c4148),_0x482ff5[_0x4c40d9(0xc8)]=I(_0x482ff5[_0x4c40d9(0xc8)],_0x50a13d,_0x2c4148),_0x482ff5[_0x4c40d9(0x12e)]=I(_0x482ff5[_0x4c40d9(0x12e)],_0x50a13d,_0x2c4148),_0x482ff5[_0x4c40d9(0x13f)]=nt(_0x482ff5[_0x4c40d9(0x13f)],_0x50a13d,_0x2c4148),_0x482ff5[_0x4c40d9(0xdb)]=rt(_0x482ff5[_0x4c40d9(0xdb)],_0x50a13d,_0x2c4148),_0x482ff5['columnGroups']=R(_0x482ff5[_0x4c40d9(0x127)],_0x50a13d,_0x2c4148),_0x482ff5[_0x4c40d9(0xd0)]=R(_0x482ff5[_0x4c40d9(0xd0)],_0x50a13d,_0x2c4148),_0x482ff5[_0x4c40d9(0x141)]=R(_0x482ff5['customDecorations'],_0x50a13d,_0x2c4148),_0x482ff5[_0x4c40d9(0x13e)]=R(_0x482ff5[_0x4c40d9(0x13e)],_0x50a13d,_0x2c4148);}function tt(_0x26c348,_0x5d7fab,_0x8b1c19){const _0x31768f=_0x47262e;var _0xce4ec7,_0x470158;_0x26c348[_0x31768f(0xa8)]=L(_0x26c348[_0x31768f(0xa8)],_0x5d7fab,_0x8b1c19),_0x26c348[_0x31768f(0xc8)]=L(_0x26c348['sectionBreaks'],_0x5d7fab,_0x8b1c19),_0x26c348[_0x31768f(0x12e)]=L(_0x26c348[_0x31768f(0x12e)],_0x5d7fab,_0x8b1c19),_0x26c348[_0x31768f(0x13f)]=(_0xce4ec7=it((_0x470158=_0x26c348[_0x31768f(0x13f)])==null?void 0x0:_0x470158[_0x31768f(0xb2)](_0x11ae97=>({..._0x11ae97,'startIndex':_0x11ae97['st'],'endIndex':_0x11ae97['ed']})),_0x5d7fab,_0x8b1c19))==null?void 0x0:_0xce4ec7[_0x31768f(0xb2)](_0x17d9c7=>{let {startIndex:_0x4e9338,endIndex:_0xd4d691,..._0x32f5c4}=_0x17d9c7;return{..._0x32f5c4,'st':_0x4e9338,'ed':_0xd4d691};}),_0x26c348[_0x31768f(0xdb)]=it(_0x26c348[_0x31768f(0xdb)],_0x5d7fab,_0x8b1c19),_0x26c348[_0x31768f(0x127)]=z(_0x26c348[_0x31768f(0x127)],_0x5d7fab,_0x8b1c19),_0x26c348[_0x31768f(0xd0)]=z(_0x26c348[_0x31768f(0xd0)],_0x5d7fab,_0x8b1c19),_0x26c348['customDecorations']=z(_0x26c348[_0x31768f(0x141)],_0x5d7fab,_0x8b1c19),_0x26c348[_0x31768f(0x13e)]=z(_0x26c348[_0x31768f(0x13e)],_0x5d7fab,_0x8b1c19);}function I(_0x1767ba,_0x2059c7,_0x58ada6){const _0x596a1f=_0x47262e;return _0x1767ba==null?void 0x0:_0x1767ba[_0x596a1f(0xb2)](_0xe1c518=>_0xe1c518[_0x596a1f(0x108)]>=_0x2059c7?{..._0xe1c518,'startIndex':_0xe1c518[_0x596a1f(0x108)]+_0x58ada6}:_0xe1c518);}function L(_0x5c56bf,_0x2b8fce,_0x332aff){const _0xda086d=_0x47262e;let _0x862433=_0x2b8fce+_0x332aff;return _0x5c56bf==null?void 0x0:_0x5c56bf[_0xda086d(0xb2)](_0x5b6891=>_0x5b6891[_0xda086d(0x108)]>=_0x2b8fce&&_0x5b6891[_0xda086d(0x108)]<_0x862433?null:_0x5b6891[_0xda086d(0x108)]>=_0x862433?{..._0x5b6891,'startIndex':_0x5b6891['startIndex']-_0x332aff}:_0x5b6891)['filter'](_0x427e4b=>_0x427e4b!=null);}function nt(_0x1ee832,_0x18b6c4,_0x3c2943){const _0x54abca=_0x47262e;return _0x1ee832==null?void 0x0:_0x1ee832[_0x54abca(0xb2)](_0x55b284=>_0x55b284['st']>=_0x18b6c4?{..._0x55b284,'st':_0x55b284['st']+_0x3c2943,'ed':_0x55b284['ed']+_0x3c2943}:_0x55b284['ed']>_0x18b6c4?{..._0x55b284,'ed':_0x55b284['ed']+_0x3c2943}:_0x55b284);}function R(_0x4673de,_0x4f755d,_0x1c15f6){const _0x46edd3=_0x47262e;return _0x4673de==null?void 0x0:_0x4673de[_0x46edd3(0xb2)](_0x31fec1=>_0x243408(_0x31fec1,_0x4f755d,_0x1c15f6));}function rt(_0x58557f,_0x4e5f9c,_0x18b67a){const _0x163836=_0x47262e;return _0x58557f==null?void 0x0:_0x58557f[_0x163836(0xb2)](_0x55c438=>_0x5cd158(_0x55c438,_0x4e5f9c,_0x18b67a));}function z(_0x2d663b,_0x300983,_0x57bcef){const _0x196e17=_0x47262e;return _0x2d663b==null?void 0x0:_0x2d663b[_0x196e17(0xb2)](_0x224ec8=>_0x2ab905(_0x224ec8,_0x300983,_0x57bcef))['filter'](_0x332a01=>_0x332a01!=null);}function it(_0x440631,_0x40125f,_0x1b160a){const _0x47f687=_0x47262e;return _0x440631==null?void 0x0:_0x440631[_0x47f687(0xb2)](_0x37b6bd=>_0x31ca35(_0x37b6bd,_0x40125f,_0x1b160a))[_0x47f687(0x112)](_0xe5b00b=>_0xe5b00b!=null);}const at={'id':'docs-code.command.insert-below','type':_0x56cb03['COMMAND'],'handler':_0x2cebf6=>{const _0x28eaf7=_0x47262e;var _0x46eb06;if(_0x288372(G(_0x2cebf6)))return!0x1;let _0x11a883=_0x50d82b(_0x2cebf6);if(_0x11a883)return _0x2cebf6[_0x28eaf7(0xfd)](_0x590f1e)[_0x28eaf7(0xd1)](B['id'],{'startOffset':_0x11a883[_0x28eaf7(0xe7)],'endOffset':_0x11a883[_0x28eaf7(0xe1)],'insertionMode':'insert-new','unitId':_0x11a883[_0x28eaf7(0x136)]});let _0x309501=ft(_0x2cebf6);if(!_0x309501)return!0x1;let _0x9973f4=(_0x46eb06=_0x2cebf6[_0x28eaf7(0xfd)](_0x3505d2)['getCurrentUnitOfType'](_0x4c80f2['UNIVER_DOC']))==null?void 0x0:_0x46eb06['getBody'](),_0x546c01=_0x9973f4?_0x5e6434(_0x9973f4,_0x309501):_0x309501[_0x28eaf7(0x108)]+0x1;return _0x2cebf6['get'](_0x590f1e)[_0x28eaf7(0xd1)](B['id'],{'startOffset':_0x546c01,'endOffset':_0x546c01});}},ot={'id':_0x47262e(0x148),'type':_0x56cb03[_0x47262e(0xac)],'handler':()=>!0x0},B={'id':_0x47262e(0xd3),'type':_0x56cb03['COMMAND'],'handler':(_0x2a41e4,_0x3a48e0)=>{const _0x6db573=_0x47262e;let _0x145a29=W(_0x2a41e4,_0x3a48e0==null?void 0x0:_0x3a48e0[_0x6db573(0x136)]);if(!_0x145a29)return!0x1;let _0x33ede7=G(_0x2a41e4);if(_0x288372(_0x33ede7))return!0x1;let _0x1e0e67=_0x145a29[_0x6db573(0x100)][_0x6db573(0x143)](_0x145a29[_0x6db573(0x136)]),_0x50d4f6=lt(_0x3a48e0,_0x33ede7),_0x2bf6fa=ut(_0x145a29[_0x6db573(0xc9)],_0x50d4f6);if(_0x2bf6fa){if(_0x2bf6fa[_0x6db573(0x107)]!==_0x5e660a[_0x6db573(0x113)])return!0x1;let _0x2df964=D({'blockId':_0x2bf6fa[_0x6db573(0xb1)],'documentData':_0x145a29[_0x6db573(0xc9)],'metadata':_0x1e0e67});if(!_0x2df964)return!0x1;let _0x4b7bd8=Y(_0x145a29[_0x6db573(0x137)],_0x145a29[_0x6db573(0xff)],_0x145a29['unitId'],_0x145a29[_0x6db573(0xc9)],_0x2df964[_0x6db573(0xc0)],B['id'],_0x2df964[_0x6db573(0x126)]);return _0x4b7bd8&&_0x2df964['nextMetadata']&&_0x145a29[_0x6db573(0x100)][_0x6db573(0x12f)](_0x145a29[_0x6db573(0x136)],_0x2df964['nextMetadata']),_0x4b7bd8;}let _0xd2f885=(_0x3a48e0==null?void 0x0:_0x3a48e0['blockId'])??_0x339fc6(0x6),_0x5e265a;try{_0x5e265a=De({'blockId':_0xd2f885,'config':_0x3a48e0==null?void 0x0:_0x3a48e0[_0x6db573(0xf8)],'documentData':_0x145a29[_0x6db573(0xc9)],'endOffset':_0x50d4f6==null?void 0x0:_0x50d4f6[_0x6db573(0xe1)],'insertionMode':_0x3a48e0==null?void 0x0:_0x3a48e0[_0x6db573(0xc4)],'metadata':_0x1e0e67,'startOffset':_0x50d4f6==null?void 0x0:_0x50d4f6[_0x6db573(0xe7)]});}catch(_0x2b4283){if(_0x2b4283 instanceof E)return!0x1;throw _0x2b4283;}let _0x3a4903=Y(_0x145a29['commandService'],_0x145a29[_0x6db573(0xff)],_0x145a29[_0x6db573(0x136)],_0x145a29[_0x6db573(0xc9)],_0x5e265a['nextDocumentData'],B['id'],_0x5e265a[_0x6db573(0x126)]);return _0x3a4903&&_0x5e265a['nextMetadata']&&_0x145a29[_0x6db573(0x100)][_0x6db573(0x12f)](_0x145a29['unitId'],_0x5e265a[_0x6db573(0xe9)]),_0x3a4903;}},st={'id':_0x47262e(0xde),'type':_0x56cb03[_0x47262e(0xac)],'handler':(_0x3f7a21,_0x109f0c)=>{const _0x4fe02b=_0x47262e;if(!_0x109f0c)return!0x1;let _0x13f37d=W(_0x3f7a21,_0x109f0c['unitId']);if(!_0x13f37d)return!0x1;let _0x3e3828=je({'blockId':_0x109f0c[_0x4fe02b(0xb1)],'config':_0x109f0c[_0x4fe02b(0xf8)],'documentData':_0x13f37d[_0x4fe02b(0xc9)],'metadata':_0x13f37d[_0x4fe02b(0x100)][_0x4fe02b(0x143)](_0x13f37d[_0x4fe02b(0x136)])});return _0x3e3828[_0x4fe02b(0xe9)]&&_0x13f37d['model'][_0x4fe02b(0x12f)](_0x13f37d['unitId'],_0x3e3828[_0x4fe02b(0xe9)]),!0x0;}},ct={'id':'docs-code.command.exit','type':_0x56cb03['COMMAND'],'handler':(_0x21d857,_0x188925)=>V[_0x47262e(0xbe)](_0x21d857,_0x188925)},V={'id':'docs-code.command.unwrap','type':_0x56cb03[_0x47262e(0xac)],'handler':(_0x5ac4b7,_0x23fc16)=>{const _0x5304ab=_0x47262e;if(!_0x23fc16)return!0x1;let _0x1a7705=W(_0x5ac4b7,_0x23fc16==null?void 0x0:_0x23fc16['unitId']);if(!_0x1a7705)return!0x1;let _0x597e8a=D({'blockId':_0x23fc16['blockId'],'documentData':_0x1a7705[_0x5304ab(0xc9)],'metadata':_0x1a7705[_0x5304ab(0x100)][_0x5304ab(0x143)](_0x1a7705[_0x5304ab(0x136)])});if(!_0x597e8a)return!0x1;let _0x4f8331=Y(_0x1a7705[_0x5304ab(0x137)],_0x1a7705[_0x5304ab(0xff)],_0x1a7705[_0x5304ab(0x136)],_0x1a7705[_0x5304ab(0xc9)],_0x597e8a['nextDocumentData'],V['id'],_0x597e8a[_0x5304ab(0x126)]);return _0x4f8331&&_0x597e8a[_0x5304ab(0xe9)]&&_0x1a7705['model'][_0x5304ab(0x12f)](_0x1a7705[_0x5304ab(0x136)],_0x597e8a[_0x5304ab(0xe9)]),_0x4f8331;}},H={'id':_0x47262e(0xbb),'type':_0x56cb03[_0x47262e(0xac)],'handler':(_0x3cd248,_0x1c8234)=>{const _0xb2d54d=_0x47262e;if(!_0x1c8234)return!0x1;let _0x390808=W(_0x3cd248,_0x1c8234==null?void 0x0:_0x1c8234[_0xb2d54d(0x136)]);if(!_0x390808)return!0x1;let _0x3122d6=Me({'blockId':_0x1c8234[_0xb2d54d(0xb1)],'documentData':_0x390808[_0xb2d54d(0xc9)],'metadata':_0x390808[_0xb2d54d(0x100)][_0xb2d54d(0x143)](_0x390808['unitId'])});if(!_0x3122d6)return!0x1;let _0x9fac48=Y(_0x390808[_0xb2d54d(0x137)],_0x390808[_0xb2d54d(0xff)],_0x390808[_0xb2d54d(0x136)],_0x390808['previousDocumentData'],_0x3122d6[_0xb2d54d(0xc0)],H['id'],_0x3122d6[_0xb2d54d(0x126)]);return _0x9fac48&&_0x3122d6[_0xb2d54d(0xe9)]&&_0x390808[_0xb2d54d(0x100)][_0xb2d54d(0x12f)](_0x390808['unitId'],_0x3122d6[_0xb2d54d(0xe9)]),_0x9fac48;}},U={'id':_0x47262e(0x12d),'type':_0x56cb03[_0x47262e(0xac)],'handler':(_0x21c440,_0x5cbc9c)=>{const _0x15b1b5=_0x47262e;var _0x1e1f44;let _0x224234=W(_0x21c440,_0x5cbc9c==null?void 0x0:_0x5cbc9c[_0x15b1b5(0x136)]);if(!_0x224234)return!0x1;let _0x411894=(_0x5cbc9c==null?void 0x0:_0x5cbc9c[_0x15b1b5(0x126)])??((_0x1e1f44=G(_0x21c440))==null?void 0x0:_0x1e1f44[_0x15b1b5(0xe7)]);if(_0x411894==null)return!0x1;let _0x16a8e4=Ne({'cursorOffset':_0x411894,'documentData':_0x224234[_0x15b1b5(0xc9)],'paragraphStartIndex':_0x5cbc9c==null?void 0x0:_0x5cbc9c[_0x15b1b5(0xd2)]});return _0x16a8e4?Y(_0x224234[_0x15b1b5(0x137)],_0x224234[_0x15b1b5(0xff)],_0x224234[_0x15b1b5(0x136)],_0x224234['previousDocumentData'],_0x16a8e4['nextDocumentData'],U['id'],_0x16a8e4[_0x15b1b5(0x126)]):!0x1;}};function W(_0x19215e,_0x5fcef8){const _0x460854=_0x47262e;let _0x34d05e=_0x19215e[_0x460854(0xfd)](_0x3505d2),_0x3a0abd=_0x5fcef8?_0x34d05e[_0x460854(0x144)](_0x5fcef8,_0x4c80f2[_0x460854(0xbc)]):_0x34d05e['getCurrentUnitOfType'](_0x4c80f2[_0x460854(0xbc)]);return _0x3a0abd?{'commandService':_0x19215e[_0x460854(0xfd)](_0x590f1e),'model':_0x19215e[_0x460854(0xfd)](w),'previousDocumentData':_0x3a0abd[_0x460854(0x11e)](),'selectionManager':_0x19215e['get'](_0xa4b078),'unitId':_0x3a0abd[_0x460854(0xc6)]()}:null;}function G(_0x18b18f){const _0x53f3e2=_0x47262e;var _0x5dd09c;return(_0x5dd09c=_0x18b18f[_0x53f3e2(0xfd)](_0xa4b078)[_0x53f3e2(0xec)]())==null?void 0x0:_0x5dd09c[0x0];}function lt(_0x4f274a,_0x49134d){const _0x2b262b=_0x47262e;let _0x419968=(_0x4f274a==null?void 0x0:_0x4f274a[_0x2b262b(0xe7)])??(_0x49134d==null?void 0x0:_0x49134d[_0x2b262b(0xe7)]),_0x4e7cb1=(_0x4f274a==null?void 0x0:_0x4f274a[_0x2b262b(0xe1)])??(_0x49134d==null?void 0x0:_0x49134d[_0x2b262b(0xe1)]);if(_0x419968!=null&&_0x4e7cb1!=null)return{'endOffset':Math[_0x2b262b(0x140)](_0x419968,_0x4e7cb1),'startOffset':Math[_0x2b262b(0x13b)](_0x419968,_0x4e7cb1)};}function ut(_0x4cf86f,_0x410818){const _0xb65fd1=_0x47262e;var _0x350fc7;if(!_0x410818)return;let _0x20fd23=dt(_0x410818);return(_0x350fc7=_0x4cf86f['body'])==null||(_0x350fc7=_0x350fc7[_0xb65fd1(0x13e)])==null?void 0x0:_0x350fc7['find'](_0x4a6f0d=>{const _0x576b4b=_0xb65fd1;let _0x21d73a=_0x13b73c(_0x4a6f0d);return _0x410818['startOffset']===_0x410818[_0x576b4b(0xe1)]?_0xa244f6(_0x21d73a,_0x20fd23):_0x8a4026(_0x21d73a,_0x20fd23);});}function dt(_0x372a01){const _0xaecb3f=_0x47262e;return _0x372a01['startOffset']===_0x372a01[_0xaecb3f(0xe1)]?_0x372a01[_0xaecb3f(0xe7)]:_0x372a01[_0xaecb3f(0xe7)]+0x1;}function ft(_0x4f2db9){const _0x287fe8=_0x47262e;let _0x1e4a07=G(_0x4f2db9);if(!_0x1e4a07)return null;let _0xc255e2=_0x4f2db9[_0x287fe8(0xfd)](_0x3505d2)[_0x287fe8(0x123)](_0x4c80f2['UNIVER_DOC']),_0x4d3a07=_0xc255e2==null?void 0x0:_0xc255e2[_0x287fe8(0xe5)]();return _0x4d3a07?_0x39a794[_0x287fe8(0xca)]['getParagraphsInRange'](_0x1e4a07,_0x4d3a07[_0x287fe8(0xa8)]??[],_0x4d3a07[_0x287fe8(0x11b)]??'')[0x0]??null:null;}function pt(_0x55c859,_0x46567a){const _0x31fc30=_0x47262e;let _0x16520a=_0x55c859[_0x31fc30(0xa7)],_0x456f04=_0x46567a['body'],_0x24438e=_0x10a6bd(_0x16520a,_0x456f04);return[_0x24438e&&_0x456f04?mt(_0x456f04,_0x24438e):null,_0x24438e?null:ht(_0x16520a,_0x456f04)]['filter'](Boolean)[_0x31fc30(0x110)]((_0x5f3a78,_0x1765bf)=>_0x1d5524['compose'](_0x5f3a78,_0x1765bf),null);}function mt(_0x3f76c1,_0x1e1268){const _0x611a1e=_0x47262e;let _0xf02700=new _0x4d07a5();return _0xf02700[_0x611a1e(0xc3)](_0x1e1268[_0x611a1e(0xc1)]),_0x1e1268['insertLength']>0x0&&_0xf02700[_0x611a1e(0xeb)](_0x1e1268[_0x611a1e(0xd4)],_0x36cb78(_0x3f76c1,_0x1e1268['start'],_0x1e1268[_0x611a1e(0xc1)]+_0x1e1268['insertLength'],!0x1)),_0x1e1268[_0x611a1e(0xdf)]>0x0&&_0xf02700[_0x611a1e(0xe3)](_0x1e1268['deleteLength']),_0x1d5524['getInstance']()[_0x611a1e(0x10c)](_0xf02700[_0x611a1e(0x143)](),[_0x611a1e(0xa7)]);}function ht(_0x794fa9,_0x130741){const _0x290dbd=_0x47262e;let _0x283686=[],_0x2726b6=_0x794fa9?_t(_0x794fa9):void 0x0,_0x39b2e1=_0x130741?_t(_0x130741):void 0x0;for(let _0x2c125d of gt)K(_0x1d5524[_0x290dbd(0x119)](),['body',_0x2c125d],_0x2726b6==null?void 0x0:_0x2726b6[_0x2c125d],_0x39b2e1==null?void 0x0:_0x39b2e1[_0x2c125d],_0x283686);return _0x283686[_0x290dbd(0x110)]((_0x28959f,_0x191508)=>_0x1d5524['compose'](_0x28959f,_0x191508),null);}const gt=[_0x47262e(0xa8),_0x47262e(0xc8),_0x47262e(0xdb),'columnGroups',_0x47262e(0x13e),_0x47262e(0x12e),_0x47262e(0xd0),'customDecorations',_0x47262e(0x13f)];function _t(_0x1b2104){return _0x1b2104;}function K(_0x13f69f,_0x1099aa,_0x37b03a,_0xeee68a,_0x45a84b){const _0x11a9e9=_0x47262e;if(!J(_0x37b03a,_0xeee68a)){if(_0x37b03a==null){_0x45a84b[_0x11a9e9(0x12a)](_0x13f69f[_0x11a9e9(0xad)](_0x1099aa,_0xeee68a));return;}if(_0xeee68a==null){_0x45a84b['push'](_0x13f69f[_0x11a9e9(0xb7)](_0x1099aa,_0x37b03a));return;}if(Array['isArray'](_0x37b03a)&&Array[_0x11a9e9(0xe0)](_0xeee68a)){vt(_0x13f69f,_0x1099aa,_0x37b03a,_0xeee68a,_0x45a84b);return;}if(q(_0x37b03a)&&q(_0xeee68a)){new Set([...Object[_0x11a9e9(0x106)](_0x37b03a),...Object['keys'](_0xeee68a)])[_0x11a9e9(0x138)](_0x592b06=>{K(_0x13f69f,[..._0x1099aa,_0x592b06],_0x37b03a[_0x592b06],_0xeee68a[_0x592b06],_0x45a84b);});return;}_0x45a84b[_0x11a9e9(0x12a)](_0x13f69f['replaceOp'](_0x1099aa,_0x37b03a,_0xeee68a));}}function vt(_0x1e9125,_0x290219,_0x38ab39,_0x22fdc2,_0x2251f2){const _0x2d6316=_0x47262e;if(_0x38ab39[_0x2d6316(0xcb)]===_0x22fdc2[_0x2d6316(0xcb)]){_0x38ab39[_0x2d6316(0x138)]((_0x403cb0,_0x5b37a4)=>K(_0x1e9125,[..._0x290219,_0x5b37a4],_0x403cb0,_0x22fdc2[_0x5b37a4],_0x2251f2));return;}let _0x448307=0x0;for(;_0x448307<_0x38ab39['length']&&_0x448307<_0x22fdc2[_0x2d6316(0xcb)]&&J(_0x38ab39[_0x448307],_0x22fdc2[_0x448307]);)_0x448307++;let _0x2e4d68=_0x38ab39[_0x2d6316(0xcb)]-0x1,_0x1a4b9c=_0x22fdc2['length']-0x1;for(;_0x2e4d68>=_0x448307&&_0x1a4b9c>=_0x448307&&J(_0x38ab39[_0x2e4d68],_0x22fdc2[_0x1a4b9c]);)_0x2e4d68--,_0x1a4b9c--;for(let _0x2fda2b=_0x2e4d68;_0x2fda2b>=_0x448307;_0x2fda2b--)_0x2251f2[_0x2d6316(0x12a)](_0x1e9125[_0x2d6316(0xb7)]([..._0x290219,_0x2fda2b],_0x38ab39[_0x2fda2b]));for(let _0x1e769b=_0x448307;_0x1e769b<=_0x1a4b9c;_0x1e769b++)_0x2251f2[_0x2d6316(0x12a)](_0x1e9125[_0x2d6316(0xad)]([..._0x290219,_0x1e769b],_0x22fdc2[_0x1e769b]));}function q(_0x8476f6){const _0x40e38b=_0x47262e;return typeof _0x8476f6==_0x40e38b(0x115)&&!!_0x8476f6&&!Array[_0x40e38b(0xe0)](_0x8476f6);}function J(_0x19e448,_0x517746){const _0x2dc7ed=_0x47262e;return JSON[_0x2dc7ed(0x13c)](_0x19e448)===JSON[_0x2dc7ed(0x13c)](_0x517746);}function Y(_0x150d63,_0x13e996,_0x343ff5,_0x5b6426,_0x42f782,_0x56a171,_0x590f8a){const _0x2487a1=_0x47262e;let _0x3cc25b=pt(_0x5b6426,_0x42f782);return _0x3cc25b?!!_0x150d63[_0x2487a1(0xd1)](_0x1711e6['id'],{'unitId':_0x343ff5,'actions':_0x3cc25b,'textRanges':[{'startOffset':_0x590f8a,'endOffset':_0x590f8a,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x56a171}):(_0x13e996[_0x2487a1(0x125)]([{'startOffset':_0x590f8a,'endOffset':_0x590f8a}],{'unitId':_0x343ff5,'subUnitId':_0x343ff5},!0x1),!0x0);}const X=_0x47262e(0xb6);var yt=_0x47262e(0xfe),bt=_0x47262e(0xf6);const xt={};function Z(_0x2192fa,_0x3c3c25){return function(_0xa20550,_0x5ef777){_0x3c3c25(_0xa20550,_0x5ef777,_0x2192fa);};}function St(_0x4f2e66,_0x299933,_0x567b90,_0x125486){const _0x5c94e5=_0x47262e;var _0x4851ae=arguments[_0x5c94e5(0xcb)],_0x36dfe2=_0x4851ae<0x3?_0x299933:_0x125486===null?_0x125486=Object[_0x5c94e5(0x147)](_0x299933,_0x567b90):_0x125486,_0xfd1769;if(typeof Reflect==_0x5c94e5(0x115)&&typeof Reflect['decorate']==_0x5c94e5(0x13d))_0x36dfe2=Reflect[_0x5c94e5(0x103)](_0x4f2e66,_0x299933,_0x567b90,_0x125486);else{for(var _0x2f2853=_0x4f2e66[_0x5c94e5(0xcb)]-0x1;_0x2f2853>=0x0;_0x2f2853--)(_0xfd1769=_0x4f2e66[_0x2f2853])&&(_0x36dfe2=(_0x4851ae<0x3?_0xfd1769(_0x36dfe2):_0x4851ae>0x3?_0xfd1769(_0x299933,_0x567b90,_0x36dfe2):_0xfd1769(_0x299933,_0x567b90))||_0x36dfe2);}return _0x4851ae>0x3&&_0x36dfe2&&Object[_0x5c94e5(0xa9)](_0x299933,_0x567b90,_0x36dfe2),_0x36dfe2;}let Q=class extends _0x4a683f{constructor(_0x2f6481,_0x4a114f){const _0x36edb7=_0x47262e;super(),this['_resourceManagerService']=_0x2f6481,this[_0x36edb7(0x10f)]=_0x4a114f,this[_0x36edb7(0xc5)]();}[_0x47262e(0xc5)](){const _0x5d9004=_0x47262e;this['disposeWithMe'](this[_0x5d9004(0x122)][_0x5d9004(0x104)]({'pluginName':X,'businesses':[_0x4c80f2[_0x5d9004(0xbc)]],'toJson':_0x1f2d34=>JSON[_0x5d9004(0x13c)](this['_docsCodeModel'][_0x5d9004(0x143)](_0x1f2d34)),'parseJson':_0x412a0d=>y(JSON[_0x5d9004(0xe8)](_0x412a0d)),'onLoad':(_0x5b85a,_0x26ae26)=>this[_0x5d9004(0x10f)][_0x5d9004(0x12f)](_0x5b85a,_0x26ae26),'onUnLoad':_0x2000aa=>this[_0x5d9004(0x10f)][_0x5d9004(0x13a)](_0x2000aa)}));}};Q=St([Z(0x0,_0x5bbb3a),Z(0x1,_0x20224e(w))],Q);let $=class extends _0x947f63{constructor(_0x5302fa=xt,_0x426c7b,_0x43f0ef,_0x36b15a){const _0x950805=_0x47262e;super(),this['_config']=_0x5302fa,this[_0x950805(0x132)]=_0x426c7b,this['_commandService']=_0x43f0ef,this['_configService']=_0x36b15a;let {..._0xecb0e2}=_0x3335f3({},xt,this[_0x950805(0xf0)]);this[_0x950805(0xdd)][_0x950805(0xb4)]('docs-code.config',_0xecb0e2);}[_0x47262e(0x12b)](){const _0x1a92f6=_0x47262e;this[_0x1a92f6(0x132)][_0x1a92f6(0x105)]([w]),this[_0x1a92f6(0x132)][_0x1a92f6(0x105)]([Q]),this[_0x1a92f6(0x132)][_0x1a92f6(0xfd)](w),this[_0x1a92f6(0x132)][_0x1a92f6(0xfd)](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x1a92f6(0x138)](_0xd4956b=>this[_0x1a92f6(0xa6)](this['_commandService'][_0x1a92f6(0x121)](_0xd4956b)));}};C($,_0x47262e(0xce),X),C($,_0x47262e(0xb0),yt),C($,_0x47262e(0x116),bt),C($,'type',_0x4c80f2[_0x47262e(0xbc)]),$=St([_0x5a7055(_0x4d7e7b,_0x18c0f9),Z(0x1,_0x20224e(_0x31802d)),Z(0x2,_0x590f1e),Z(0x3,_0x5308c5)],$);export{X as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,ot as DocsCodeConsumeBoundaryDeleteCommand,at as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,w as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,st as DocsCodeUpdateCommand,T as RemoveDocsCodeConfigMutation,Te as SetDocsCodeConfigMutation,$ as UniverDocsCodePlugin,Ne as buildCancelEmptyCodeParagraphActions,Ie as isCodeBoundaryDelete,v as normalizeDocsCodeConfig,y as normalizeDocsCodeMetadataResource};
|