@univerjs-pro/docs-code 1.0.0-insiders.20260801-fe30d15 → 1.0.0-insiders.20260803-82dc67d

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 CHANGED
@@ -1 +1 @@
1
- var _0x500632=_0x4d71;(function(_0x1706db,_0x5df84f){var _0x53a070=_0x4d71,_0x1715b6=_0x1706db();while(!![]){try{var _0x41c5b7=parseInt(_0x53a070(0x15a))/0x1+parseInt(_0x53a070(0x156))/0x2+parseInt(_0x53a070(0x164))/0x3*(-parseInt(_0x53a070(0x170))/0x4)+-parseInt(_0x53a070(0x16d))/0x5*(parseInt(_0x53a070(0x173))/0x6)+-parseInt(_0x53a070(0x155))/0x7+-parseInt(_0x53a070(0x176))/0x8+parseInt(_0x53a070(0x153))/0x9*(parseInt(_0x53a070(0x17e))/0xa);if(_0x41c5b7===_0x5df84f)break;else _0x1715b6['push'](_0x1715b6['shift']());}catch(_0x389c6f){_0x1715b6['push'](_0x1715b6['shift']());}}}(_0x3745,0x45ec1),Object[_0x500632(0x152)](exports,Symbol[_0x500632(0x166)],{'value':_0x500632(0x13c)}));let e=require('@univerjs-pro/docs-code'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x48a935){'@babel/helpers - typeof';var _0x1d5548=_0x500632;return r=typeof Symbol==_0x1d5548(0x16b)&&typeof Symbol['iterator']==_0x1d5548(0x157)?function(_0x2bb598){return typeof _0x2bb598;}:function(_0x43954e){var _0x2a32f4=_0x1d5548;return _0x43954e&&typeof Symbol==_0x2a32f4(0x16b)&&_0x43954e[_0x2a32f4(0x16a)]===Symbol&&_0x43954e!==Symbol[_0x2a32f4(0x165)]?_0x2a32f4(0x157):typeof _0x43954e;},r(_0x48a935);}function _0x3745(){var _0x248dee=['_document','from','2463oMtceF','prototype','toStringTag','_getBlockRange','describe','map','constructor','function','decorate','2095545yLhGQS','DocsCodeUnwrapCommand','_injector','484rXUkGu','join','syncExecuteCommand','6quOPaE','getConfig','getCodes','2753024GVOhvB','_getBlockRanges','generateRandomId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getCode','ICommandService','blockType','SECTION_BREAK','40HSGEGL','DocsCodeUpdateCommand','_unitId','createInstance','getId','find','getText','blockRanges','getCodeConfig','normalizeDocsCodeConfig','PARAGRAPH','endIndex','DocsCodeModel','FDocument','getRange','object','getCodeAt','DocumentBlockRangeType','Module','config','save','length','extend','CODE','getOwnPropertyDescriptor','findCodeByText','FDocumentCode','some','slice','Inject','toPrimitive','blockId','startIndex','body','string','remove','includes','replace','DataStreamTreeTokenType','dataStream','defineProperty','3191301xvimAy','unwrap','3327737qSwadJ','265728QsPITf','symbol','_getDocumentData','text','73150PLFgvw','call','_createFDocumentCode','_blockId','findCodes','get','insertCode','filter'];_0x3745=function(){return _0x248dee;};return _0x3745();}function i(_0x366377,_0x5adbb7){var _0x3c9fd4=_0x500632;if(r(_0x366377)!=_0x3c9fd4(0x139)||!_0x366377)return _0x366377;var _0x3853e6=_0x366377[Symbol[_0x3c9fd4(0x148)]];if(_0x3853e6!==void 0x0){var _0x1667a0=_0x3853e6[_0x3c9fd4(0x15b)](_0x366377,_0x5adbb7||'default');if(r(_0x1667a0)!=_0x3c9fd4(0x139))return _0x1667a0;throw TypeError(_0x3c9fd4(0x179));}return(_0x5adbb7===_0x3c9fd4(0x14c)?String:Number)(_0x366377);}function a(_0x229017){var _0xa47083=_0x500632,_0x4644a2=i(_0x229017,_0xa47083(0x14c));return r(_0x4644a2)==_0xa47083(0x157)?_0x4644a2:_0x4644a2+'';}function o(_0x25e3f7,_0x1c2bcb,_0x4b4375){var _0x265027=_0x500632;return(_0x1c2bcb=a(_0x1c2bcb))in _0x25e3f7?Object[_0x265027(0x152)](_0x25e3f7,_0x1c2bcb,{'value':_0x4b4375,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x25e3f7[_0x1c2bcb]=_0x4b4375,_0x25e3f7;}function s(_0xc43748,_0x12165d){return function(_0x3aa9ec,_0x254304){_0x12165d(_0x3aa9ec,_0x254304,_0xc43748);};}function c(_0x5b190a,_0x5a44ec,_0x47e407,_0x298e6a){var _0x33a78f=_0x500632,_0x20a262=arguments[_0x33a78f(0x13f)],_0x3be4db=_0x20a262<0x3?_0x5a44ec:_0x298e6a===null?_0x298e6a=Object[_0x33a78f(0x142)](_0x5a44ec,_0x47e407):_0x298e6a,_0x27f4eb;if(typeof Reflect==_0x33a78f(0x139)&&typeof Reflect[_0x33a78f(0x16c)]==_0x33a78f(0x16b))_0x3be4db=Reflect[_0x33a78f(0x16c)](_0x5b190a,_0x5a44ec,_0x47e407,_0x298e6a);else{for(var _0x3a2ad3=_0x5b190a[_0x33a78f(0x13f)]-0x1;_0x3a2ad3>=0x0;_0x3a2ad3--)(_0x27f4eb=_0x5b190a[_0x3a2ad3])&&(_0x3be4db=(_0x20a262<0x3?_0x27f4eb(_0x3be4db):_0x20a262>0x3?_0x27f4eb(_0x5a44ec,_0x47e407,_0x3be4db):_0x27f4eb(_0x5a44ec,_0x47e407))||_0x3be4db);}return _0x20a262>0x3&&_0x3be4db&&Object['defineProperty'](_0x5a44ec,_0x47e407,_0x3be4db),_0x3be4db;}let l=class{constructor(_0x441b41,_0x2fe4eb,_0x4ee40a){var _0x28311a=_0x500632;this[_0x28311a(0x162)]=_0x441b41,this[_0x28311a(0x15d)]=_0x2fe4eb,this[_0x28311a(0x16f)]=_0x4ee40a,o(this,'_unitId',void 0x0),this['_unitId']=this[_0x28311a(0x162)]['getId']();}[_0x500632(0x12e)](){var _0x493d5b=_0x500632;return this[_0x493d5b(0x15d)];}[_0x500632(0x138)](){var _0x592f12=_0x500632;let _0x2b50d8=this[_0x592f12(0x167)]();return _0x2b50d8?{'blockId':_0x2b50d8[_0x592f12(0x149)],'endIndex':_0x2b50d8[_0x592f12(0x135)],'startIndex':_0x2b50d8[_0x592f12(0x14a)]}:null;}['getText'](){var _0xeddf29=_0x500632,_0x2cb258;let _0x2758c8=this[_0xeddf29(0x167)](),_0x2cc3db=(_0x2cb258=this[_0xeddf29(0x158)]()['body'])==null?void 0x0:_0x2cb258[_0xeddf29(0x151)];return!_0x2758c8||!_0x2cc3db?'':u(_0x2cc3db[_0xeddf29(0x146)](_0x2758c8[_0xeddf29(0x14a)]+0x1,_0x2758c8[_0xeddf29(0x135)]));}[_0x500632(0x168)](){var _0x574d38=_0x500632;let _0x59efbd=this[_0x574d38(0x138)]();return _0x59efbd?{..._0x59efbd,'config':this[_0x574d38(0x174)](),'text':this[_0x574d38(0x130)](),'type':t[_0x574d38(0x13b)][_0x574d38(0x141)]}:null;}['getConfig'](){var _0x59321e=_0x500632;return(0x0,e[_0x59321e(0x133)])(this['_injector'][_0x59321e(0x15f)](e[_0x59321e(0x136)])[_0x59321e(0x132)](this[_0x59321e(0x180)],this[_0x59321e(0x15d)]));}['updateConfig'](_0xbae76b){var _0x5ed86a=_0x500632;return this[_0x5ed86a(0x16f)][_0x5ed86a(0x15f)](t[_0x5ed86a(0x17b)])['syncExecuteCommand'](e[_0x5ed86a(0x17f)]['id'],{'blockId':this['_blockId'],'config':_0xbae76b[_0x5ed86a(0x13d)],'unitId':this[_0x5ed86a(0x180)]});}[_0x500632(0x154)](){var _0x14babc=_0x500632;return this[_0x14babc(0x16f)][_0x14babc(0x15f)](t[_0x14babc(0x17b)])['syncExecuteCommand'](e[_0x14babc(0x16e)]['id'],{'blockId':this[_0x14babc(0x15d)],'unitId':this[_0x14babc(0x180)]});}[_0x500632(0x14d)](){var _0x51ee8=_0x500632;return this['_injector'][_0x51ee8(0x15f)](t[_0x51ee8(0x17b)])[_0x51ee8(0x172)](e['DocsCodeRemoveCommand']['id'],{'blockId':this[_0x51ee8(0x15d)],'unitId':this[_0x51ee8(0x180)]});}['_getBlockRange'](){var _0x4623c6=_0x500632,_0x2a4745;let _0x33a123=(_0x2a4745=this['_getDocumentData']()[_0x4623c6(0x14b)])==null||(_0x2a4745=_0x2a4745[_0x4623c6(0x131)])==null?void 0x0:_0x2a4745['find'](_0x3ff2bd=>_0x3ff2bd[_0x4623c6(0x149)]===this[_0x4623c6(0x15d)]&&_0x3ff2bd[_0x4623c6(0x17c)]===t['DocumentBlockRangeType']['CODE']);return _0x33a123==null?null:_0x33a123;}[_0x500632(0x158)](){var _0x3c9d3d=_0x500632;return this['_document'][_0x3c9d3d(0x13e)]();}};l=c([s(0x2,(0x0,t[_0x500632(0x147)])(t['Injector']))],l);function u(_0x2f812b){var _0x524ae2=_0x500632;return Array[_0x524ae2(0x163)](_0x2f812b)[_0x524ae2(0x169)](_0x54d122=>_0x54d122===t[_0x524ae2(0x150)][_0x524ae2(0x134)]?'\x0a':_0x54d122)[_0x524ae2(0x161)](_0x21dd66=>_0x21dd66!==t[_0x524ae2(0x150)]['BLOCK_START']&&_0x21dd66!==t[_0x524ae2(0x150)]['BLOCK_END']&&_0x21dd66!==t[_0x524ae2(0x150)][_0x524ae2(0x17d)])[_0x524ae2(0x171)]('')[_0x524ae2(0x14f)](/\n$/,'');}var d=class extends n['FDocument']{[_0x500632(0x175)](){var _0x5c2f35=_0x500632;return this[_0x5c2f35(0x177)]()[_0x5c2f35(0x161)](_0x5f0acb=>_0x5f0acb[_0x5c2f35(0x17c)]===t[_0x5c2f35(0x13b)]['CODE'])[_0x5c2f35(0x169)](_0x6c6f73=>this[_0x5c2f35(0x15c)](_0x6c6f73[_0x5c2f35(0x149)]));}['getCode'](_0x590f4b){var _0x54c1e9=_0x500632;return this[_0x54c1e9(0x177)]()[_0x54c1e9(0x145)](_0x37c96f=>_0x37c96f[_0x54c1e9(0x149)]===_0x590f4b&&_0x37c96f[_0x54c1e9(0x17c)]===t[_0x54c1e9(0x13b)][_0x54c1e9(0x141)])?this[_0x54c1e9(0x15c)](_0x590f4b):null;}[_0x500632(0x13a)](_0x3113b7){var _0x3873d7=_0x500632;let _0x37ff5c=this['_getBlockRanges']()[_0x3873d7(0x12f)](_0x424967=>_0x424967[_0x3873d7(0x17c)]===t['DocumentBlockRangeType'][_0x3873d7(0x141)]&&_0x424967[_0x3873d7(0x14a)]<=_0x3113b7&&_0x3113b7<=_0x424967[_0x3873d7(0x135)]);return _0x37ff5c?this[_0x3873d7(0x15c)](_0x37ff5c['blockId']):null;}[_0x500632(0x143)](_0x5372fb){var _0x40e346=_0x500632,_0x319aa7;return(_0x319aa7=this[_0x40e346(0x15e)](_0x5372fb)[0x0])==null?null:_0x319aa7;}['findCodes'](_0x3731a4){var _0xee455d=_0x500632;let _0x3962d9=typeof _0x3731a4=='string'?{'text':_0x3731a4}:_0x3731a4;return this[_0xee455d(0x175)]()[_0xee455d(0x161)](_0x152b03=>!(_0x3962d9[_0xee455d(0x149)]&&_0x152b03[_0xee455d(0x12e)]()!==_0x3962d9['blockId']||_0x3962d9[_0xee455d(0x159)]&&!_0x152b03[_0xee455d(0x130)]()[_0xee455d(0x14e)](_0x3962d9[_0xee455d(0x159)])));}[_0x500632(0x160)](_0x15e0f6={},_0xe87980={}){var _0x217176=_0x500632,_0x1875ff;let _0x2efa55=this[_0x217176(0x16f)][_0x217176(0x15f)](t[_0x217176(0x17b)]),_0x4f57bb=(0x0,n['isParagraphFacade'])(_0x15e0f6)?{..._0xe87980,..._0x15e0f6[_0x217176(0x138)]()}:_0x15e0f6,_0xda4d4c=(_0x1875ff=_0x4f57bb['blockId'])==null?(0x0,t[_0x217176(0x178)])(0x6):_0x1875ff;return _0x2efa55[_0x217176(0x172)](e['DocsCodeInsertCommand']['id'],{..._0x4f57bb,'blockId':_0xda4d4c,'unitId':this[_0x217176(0x12e)]()})?this[_0x217176(0x17a)](_0xda4d4c):null;}[_0x500632(0x177)](){var _0x42aed7=_0x500632,_0x5a560c,_0x5968f8;return(_0x5a560c=(_0x5968f8=this[_0x42aed7(0x13e)]()[_0x42aed7(0x14b)])==null?void 0x0:_0x5968f8[_0x42aed7(0x131)])==null?[]:_0x5a560c;}[_0x500632(0x15c)](_0x3aad4e){var _0x224f52=_0x500632;return this['_injector'][_0x224f52(0x12d)](l,this,_0x3aad4e);}};function _0x4d71(_0x5ab6da,_0x14ec5a){_0x5ab6da=_0x5ab6da-0x12d;var _0x3745e2=_0x3745();var _0x4d717c=_0x3745e2[_0x5ab6da];return _0x4d717c;}n[_0x500632(0x137)][_0x500632(0x140)](d),Object[_0x500632(0x152)](exports,_0x500632(0x144),{'enumerable':!0x0,'get':function(){return l;}});
1
+ var _0x5097d1=_0x335c;(function(_0x1d0d37,_0x36deca){var _0x3a61f5=_0x335c,_0x3d467d=_0x1d0d37();while(!![]){try{var _0x45e68e=parseInt(_0x3a61f5(0x92))/0x1*(-parseInt(_0x3a61f5(0x78))/0x2)+parseInt(_0x3a61f5(0x8b))/0x3*(-parseInt(_0x3a61f5(0x99))/0x4)+-parseInt(_0x3a61f5(0xb4))/0x5+-parseInt(_0x3a61f5(0xb8))/0x6*(-parseInt(_0x3a61f5(0x75))/0x7)+parseInt(_0x3a61f5(0xb6))/0x8*(parseInt(_0x3a61f5(0x85))/0x9)+-parseInt(_0x3a61f5(0x8a))/0xa+parseInt(_0x3a61f5(0xa5))/0xb;if(_0x45e68e===_0x36deca)break;else _0x3d467d['push'](_0x3d467d['shift']());}catch(_0x5b2754){_0x3d467d['push'](_0x3d467d['shift']());}}}(_0x422b,0xdd68f),Object[_0x5097d1(0x79)](exports,Symbol[_0x5097d1(0xa6)],{'value':_0x5097d1(0x82)}));let e=require('@univerjs-pro/docs-code'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x40e3b1){'@babel/helpers - typeof';var _0x1c0a2c=_0x5097d1;return r=typeof Symbol==_0x1c0a2c(0x7a)&&typeof Symbol[_0x1c0a2c(0xc1)]==_0x1c0a2c(0x7d)?function(_0x1546df){return typeof _0x1546df;}:function(_0x3d0427){var _0x15ffe0=_0x1c0a2c;return _0x3d0427&&typeof Symbol==_0x15ffe0(0x7a)&&_0x3d0427[_0x15ffe0(0x89)]===Symbol&&_0x3d0427!==Symbol[_0x15ffe0(0x8c)]?'symbol':typeof _0x3d0427;},r(_0x40e3b1);}function i(_0x1d05de,_0x23b1e6){var _0x36c508=_0x5097d1;if(r(_0x1d05de)!='object'||!_0x1d05de)return _0x1d05de;var _0xfd96fe=_0x1d05de[Symbol['toPrimitive']];if(_0xfd96fe!==void 0x0){var _0x374fca=_0xfd96fe[_0x36c508(0xc6)](_0x1d05de,_0x23b1e6||_0x36c508(0xa8));if(r(_0x374fca)!=_0x36c508(0x77))return _0x374fca;throw TypeError(_0x36c508(0xba));}return(_0x23b1e6===_0x36c508(0xc5)?String:Number)(_0x1d05de);}function a(_0x66b18c){var _0x571031=_0x5097d1,_0x2cc725=i(_0x66b18c,_0x571031(0xc5));return r(_0x2cc725)=='symbol'?_0x2cc725:_0x2cc725+'';}function o(_0x2fad62,_0x30ef2a,_0xda8180){return(_0x30ef2a=a(_0x30ef2a))in _0x2fad62?Object['defineProperty'](_0x2fad62,_0x30ef2a,{'value':_0xda8180,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2fad62[_0x30ef2a]=_0xda8180,_0x2fad62;}function s(_0x563d21,_0xf8915f){return function(_0xc8b022,_0x5ec121){_0xf8915f(_0xc8b022,_0x5ec121,_0x563d21);};}function c(_0x30a764,_0x41fd53,_0x2e5138,_0x17e79d){var _0x1ca1aa=_0x5097d1,_0x42f2b9=arguments[_0x1ca1aa(0xbd)],_0xa7dcb9=_0x42f2b9<0x3?_0x41fd53:_0x17e79d===null?_0x17e79d=Object[_0x1ca1aa(0x95)](_0x41fd53,_0x2e5138):_0x17e79d,_0x2d9c7e;if(typeof Reflect=='object'&&typeof Reflect[_0x1ca1aa(0xa3)]==_0x1ca1aa(0x7a))_0xa7dcb9=Reflect[_0x1ca1aa(0xa3)](_0x30a764,_0x41fd53,_0x2e5138,_0x17e79d);else{for(var _0xfaa8fa=_0x30a764[_0x1ca1aa(0xbd)]-0x1;_0xfaa8fa>=0x0;_0xfaa8fa--)(_0x2d9c7e=_0x30a764[_0xfaa8fa])&&(_0xa7dcb9=(_0x42f2b9<0x3?_0x2d9c7e(_0xa7dcb9):_0x42f2b9>0x3?_0x2d9c7e(_0x41fd53,_0x2e5138,_0xa7dcb9):_0x2d9c7e(_0x41fd53,_0x2e5138))||_0xa7dcb9);}return _0x42f2b9>0x3&&_0xa7dcb9&&Object[_0x1ca1aa(0x79)](_0x41fd53,_0x2e5138,_0xa7dcb9),_0xa7dcb9;}function _0x422b(){var _0xb300=['2681FGoMkt','ICommandService','object','2ZfiXhD','defineProperty','function','DocsCodeUnwrapCommand','_getBlockRanges','symbol','_injector','SECTION_BREAK','_createFDocumentCode','_unitId','Module','getCode','save','2630871CtpmyK','DocsCodeRemoveCommand','findCodes','blockRanges','constructor','5220860UXSUnj','3FkLInd','prototype','CODE','slice','map','includes','getCodes','1380889ZLRqEK','replace','insertCode','getOwnPropertyDescriptor','extend','filter','describe','4776124zYvcYm','getText','getConfig','_document','join','dataStream','config','getCodeAt','blockType','endIndex','decorate','Injector','30502582CAPFbT','toStringTag','unwrap','default','findCodeByText','text','isParagraphFacade','createInstance','BLOCK_START','body','FDocument','DataStreamTreeTokenType','getRange','find','DocsCodeUpdateCommand','5857535KNALxH','get','24VUBHLi','_getBlockRange','23898NdiGRZ','_blockId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Inject','some','length','normalizeDocsCodeConfig','startIndex','getId','iterator','blockId','_getDocumentData','syncExecuteCommand','string','call','DocumentBlockRangeType','BLOCK_END'];_0x422b=function(){return _0xb300;};return _0x422b();}let l=class{constructor(_0x3dafcc,_0x5ea72,_0x104e0c){var _0x4c6ea0=_0x5097d1;this['_document']=_0x3dafcc,this[_0x4c6ea0(0xb9)]=_0x5ea72,this[_0x4c6ea0(0x7e)]=_0x104e0c,o(this,'_unitId',void 0x0),this[_0x4c6ea0(0x81)]=this['_document'][_0x4c6ea0(0xc0)]();}['getId'](){var _0x2cf2db=_0x5097d1;return this[_0x2cf2db(0xb9)];}[_0x5097d1(0xb1)](){var _0x5b2191=_0x5097d1;let _0x6ebd48=this[_0x5b2191(0xb7)]();return _0x6ebd48?{'blockId':_0x6ebd48['blockId'],'endIndex':_0x6ebd48[_0x5b2191(0xa2)],'startIndex':_0x6ebd48[_0x5b2191(0xbf)]}:null;}[_0x5097d1(0x9a)](){var _0x12c0d0=_0x5097d1,_0x286454;let _0x3c82e9=this[_0x12c0d0(0xb7)](),_0x5e11c4=(_0x286454=this[_0x12c0d0(0xc3)]()['body'])==null?void 0x0:_0x286454[_0x12c0d0(0x9e)];return!_0x3c82e9||!_0x5e11c4?'':u(_0x5e11c4[_0x12c0d0(0x8e)](_0x3c82e9[_0x12c0d0(0xbf)]+0x1,_0x3c82e9[_0x12c0d0(0xa2)]));}[_0x5097d1(0x98)](){var _0x5ca7f1=_0x5097d1;let _0x50716f=this['getRange']();return _0x50716f?{..._0x50716f,'config':this[_0x5ca7f1(0x9b)](),'text':this['getText'](),'type':t[_0x5ca7f1(0xc7)][_0x5ca7f1(0x8d)]}:null;}[_0x5097d1(0x9b)](){var _0x23829a=_0x5097d1;return(0x0,e[_0x23829a(0xbe)])(this[_0x23829a(0x7e)]['get'](e['DocsCodeModel'])['getCodeConfig'](this[_0x23829a(0x81)],this[_0x23829a(0xb9)]));}['updateConfig'](_0xb99675){var _0x915b26=_0x5097d1;return this[_0x915b26(0x7e)]['get'](t['ICommandService'])['syncExecuteCommand'](e[_0x915b26(0xb3)]['id'],{'blockId':this[_0x915b26(0xb9)],'config':_0xb99675[_0x915b26(0x9f)],'unitId':this['_unitId']});}[_0x5097d1(0xa7)](){var _0x233cf0=_0x5097d1;return this[_0x233cf0(0x7e)][_0x233cf0(0xb5)](t[_0x233cf0(0x76)])[_0x233cf0(0xc4)](e[_0x233cf0(0x7b)]['id'],{'blockId':this[_0x233cf0(0xb9)],'unitId':this[_0x233cf0(0x81)]});}['remove'](){var _0x29b0e2=_0x5097d1;return this[_0x29b0e2(0x7e)]['get'](t[_0x29b0e2(0x76)])[_0x29b0e2(0xc4)](e[_0x29b0e2(0x86)]['id'],{'blockId':this['_blockId'],'unitId':this[_0x29b0e2(0x81)]});}[_0x5097d1(0xb7)](){var _0x1ab748=_0x5097d1,_0x3c2cf;let _0x113313=(_0x3c2cf=this[_0x1ab748(0xc3)]()[_0x1ab748(0xae)])==null||(_0x3c2cf=_0x3c2cf['blockRanges'])==null?void 0x0:_0x3c2cf[_0x1ab748(0xb2)](_0x26aee3=>_0x26aee3[_0x1ab748(0xc2)]===this[_0x1ab748(0xb9)]&&_0x26aee3['blockType']===t[_0x1ab748(0xc7)][_0x1ab748(0x8d)]);return _0x113313==null?null:_0x113313;}[_0x5097d1(0xc3)](){var _0x52dc27=_0x5097d1;return this[_0x52dc27(0x9c)][_0x52dc27(0x84)]();}};function _0x335c(_0x5b33bd,_0x5c200b){_0x5b33bd=_0x5b33bd-0x75;var _0x422b6f=_0x422b();var _0x335c88=_0x422b6f[_0x5b33bd];return _0x335c88;}l=c([s(0x2,(0x0,t[_0x5097d1(0xbb)])(t[_0x5097d1(0xa4)]))],l);function u(_0x179e03){var _0x44bad6=_0x5097d1;return Array['from'](_0x179e03)['map'](_0x3787b3=>_0x3787b3===t[_0x44bad6(0xb0)]['PARAGRAPH']?'\x0a':_0x3787b3)[_0x44bad6(0x97)](_0x995e74=>_0x995e74!==t[_0x44bad6(0xb0)][_0x44bad6(0xad)]&&_0x995e74!==t[_0x44bad6(0xb0)][_0x44bad6(0xc8)]&&_0x995e74!==t['DataStreamTreeTokenType'][_0x44bad6(0x7f)])[_0x44bad6(0x9d)]('')[_0x44bad6(0x93)](/\n$/,'');}var d=class extends n[_0x5097d1(0xaf)]{['getCodes'](){var _0x31ecd2=_0x5097d1;return this[_0x31ecd2(0x7c)]()['filter'](_0x58b711=>_0x58b711[_0x31ecd2(0xa1)]===t[_0x31ecd2(0xc7)][_0x31ecd2(0x8d)])[_0x31ecd2(0x8f)](_0x47cced=>this['_createFDocumentCode'](_0x47cced['blockId']));}[_0x5097d1(0x83)](_0x3aba86){var _0x17e708=_0x5097d1;return this[_0x17e708(0x7c)]()[_0x17e708(0xbc)](_0x18316d=>_0x18316d[_0x17e708(0xc2)]===_0x3aba86&&_0x18316d[_0x17e708(0xa1)]===t[_0x17e708(0xc7)][_0x17e708(0x8d)])?this['_createFDocumentCode'](_0x3aba86):null;}[_0x5097d1(0xa0)](_0x4f9509){var _0x443c6a=_0x5097d1;let _0x4569f9=this[_0x443c6a(0x7c)]()[_0x443c6a(0xb2)](_0x3a48f7=>_0x3a48f7[_0x443c6a(0xa1)]===t[_0x443c6a(0xc7)]['CODE']&&_0x3a48f7[_0x443c6a(0xbf)]<=_0x4f9509&&_0x4f9509<=_0x3a48f7[_0x443c6a(0xa2)]);return _0x4569f9?this[_0x443c6a(0x80)](_0x4569f9[_0x443c6a(0xc2)]):null;}[_0x5097d1(0xa9)](_0x2d5446){var _0x1b1ef1=_0x5097d1,_0xc406a7;return(_0xc406a7=this[_0x1b1ef1(0x87)](_0x2d5446)[0x0])==null?null:_0xc406a7;}[_0x5097d1(0x87)](_0x505a92){var _0x1f0734=_0x5097d1;let _0x3f58e9=typeof _0x505a92==_0x1f0734(0xc5)?{'text':_0x505a92}:_0x505a92;return this[_0x1f0734(0x91)]()[_0x1f0734(0x97)](_0x4ea03b=>!(_0x3f58e9[_0x1f0734(0xc2)]&&_0x4ea03b[_0x1f0734(0xc0)]()!==_0x3f58e9[_0x1f0734(0xc2)]||_0x3f58e9[_0x1f0734(0xaa)]&&!_0x4ea03b['getText']()[_0x1f0734(0x90)](_0x3f58e9[_0x1f0734(0xaa)])));}[_0x5097d1(0x94)](_0x2dbe31={},_0x92e832={}){var _0x46a9d0=_0x5097d1,_0x22b5ae;let _0x3f9574=this[_0x46a9d0(0x7e)][_0x46a9d0(0xb5)](t[_0x46a9d0(0x76)]),_0x5d6a50=(0x0,n[_0x46a9d0(0xab)])(_0x2dbe31)?{..._0x92e832,..._0x2dbe31['getRange']()}:_0x2dbe31,_0x351a3d=(_0x22b5ae=_0x5d6a50['blockId'])==null?(0x0,t['generateRandomId'])(0x6):_0x22b5ae;return _0x3f9574[_0x46a9d0(0xc4)](e['DocsCodeInsertCommand']['id'],{..._0x5d6a50,'blockId':_0x351a3d,'unitId':this[_0x46a9d0(0xc0)]()})?this[_0x46a9d0(0x83)](_0x351a3d):null;}[_0x5097d1(0x7c)](){var _0x455bb6=_0x5097d1,_0x3c59cd,_0x1a2ccb;return(_0x3c59cd=(_0x1a2ccb=this[_0x455bb6(0x84)]()[_0x455bb6(0xae)])==null?void 0x0:_0x1a2ccb[_0x455bb6(0x88)])==null?[]:_0x3c59cd;}[_0x5097d1(0x80)](_0x30e81e){var _0x28acf4=_0x5097d1;return this['_injector'][_0x28acf4(0xac)](l,this,_0x30e81e);}};n[_0x5097d1(0xaf)][_0x5097d1(0x96)](d),Object[_0x5097d1(0x79)](exports,'FDocumentCode',{'enumerable':!0x0,'get':function(){return l;}});
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x42beb5=_0x1bad;(function(_0x38d73e,_0x52584f){const _0x57ffbf=_0x1bad,_0x3a17bc=_0x38d73e();while(!![]){try{const _0x1fdedb=-parseInt(_0x57ffbf(0x124))/0x1*(parseInt(_0x57ffbf(0xd3))/0x2)+-parseInt(_0x57ffbf(0x1a3))/0x3*(-parseInt(_0x57ffbf(0x17e))/0x4)+-parseInt(_0x57ffbf(0xf0))/0x5+parseInt(_0x57ffbf(0x128))/0x6+-parseInt(_0x57ffbf(0x112))/0x7*(parseInt(_0x57ffbf(0x1a6))/0x8)+-parseInt(_0x57ffbf(0x119))/0x9+-parseInt(_0x57ffbf(0x13f))/0xa;if(_0x1fdedb===_0x52584f)break;else _0x3a17bc['push'](_0x3a17bc['shift']());}catch(_0x3273ae){_0x3a17bc['push'](_0x3a17bc['shift']());}}}(_0x36ef,0x58fa6),Object[_0x42beb5(0x16b)](exports,Symbol[_0x42beb5(0xf1)],{'value':_0x42beb5(0xdf)}));let e=require('@univerjs/core'),t=require('rxjs'),n=require('@univerjs/docs'),r=require('@univerjs-pro/license');const i={'language':_0x42beb5(0x116),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function a(_0x2427fa){return{...i,..._0x2427fa};}function o(_0x25ab72){const _0x5382de=_0x42beb5;var _0x251b27;let _0x2721ca=(_0x251b27=_0x25ab72==null?void 0x0:_0x25ab72[_0x5382de(0x162)])==null?{}:_0x251b27;return{'codes':Object[_0x5382de(0x180)](Object[_0x5382de(0x12b)](_0x2721ca)[_0x5382de(0x11f)](([_0x3a163b,_0x2bcc19])=>[_0x3a163b,a(_0x2bcc19)]))};}function s(_0x347c9f,_0x39b10c,_0xe41ae4){const _0xda5159=_0x42beb5;let _0x114e66=o(_0x347c9f);return _0x114e66['codes'][_0x39b10c]=a({..._0x114e66[_0xda5159(0x162)][_0x39b10c],..._0xe41ae4}),_0x114e66;}function c(_0x17df65,_0x4433f2){const _0x2ae6c0=_0x42beb5;let _0x51de09=o(_0x17df65);return delete _0x51de09[_0x2ae6c0(0x162)][_0x4433f2],_0x51de09;}function l(_0x185d4a){'@babel/helpers - typeof';const _0x11567a=_0x42beb5;return l=typeof Symbol=='function'&&typeof Symbol[_0x11567a(0x134)]==_0x11567a(0x168)?function(_0x33e730){return typeof _0x33e730;}:function(_0x133cca){const _0x302bbb=_0x11567a;return _0x133cca&&typeof Symbol==_0x302bbb(0xfd)&&_0x133cca[_0x302bbb(0x15b)]===Symbol&&_0x133cca!==Symbol[_0x302bbb(0x16e)]?'symbol':typeof _0x133cca;},l(_0x185d4a);}function u(_0x262e51,_0x26eab9){const _0x2c0b18=_0x42beb5;if(l(_0x262e51)!=_0x2c0b18(0x19e)||!_0x262e51)return _0x262e51;var _0x45fa75=_0x262e51[Symbol[_0x2c0b18(0xd5)]];if(_0x45fa75!==void 0x0){var _0x2cbcbc=_0x45fa75[_0x2c0b18(0x17a)](_0x262e51,_0x26eab9||'default');if(l(_0x2cbcbc)!=_0x2c0b18(0x19e))return _0x2cbcbc;throw TypeError(_0x2c0b18(0x19b));}return(_0x26eab9===_0x2c0b18(0x155)?String:Number)(_0x262e51);}function d(_0x2d4463){const _0x36d660=_0x42beb5;var _0x3653b8=u(_0x2d4463,_0x36d660(0x155));return l(_0x3653b8)==_0x36d660(0x168)?_0x3653b8:_0x3653b8+'';}function f(_0x128da2,_0x1b9dc5,_0x480020){const _0x48170c=_0x42beb5;return(_0x1b9dc5=d(_0x1b9dc5))in _0x128da2?Object[_0x48170c(0x16b)](_0x128da2,_0x1b9dc5,{'value':_0x480020,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x128da2[_0x1b9dc5]=_0x480020,_0x128da2;}var p=class extends e[_0x42beb5(0x17b)]{constructor(..._0x345da3){const _0x3b1ea2=_0x42beb5;super(..._0x345da3),f(this,'_resources',new Map()),f(this,_0x3b1ea2(0x137),new t[(_0x3b1ea2(0xed))]()),f(this,_0x3b1ea2(0x176),this[_0x3b1ea2(0x137)][_0x3b1ea2(0x175)]());}['getCodeConfig'](_0x140c6d,_0x1ea982){const _0x4c2309=_0x42beb5;return o(this['_resources'][_0x4c2309(0xcd)](_0x140c6d))['codes'][_0x1ea982];}[_0x42beb5(0x139)](_0x2cb832,_0x4e8135,_0x1e77e3){const _0x24a4af=_0x42beb5;this[_0x24a4af(0x177)](_0x2cb832,_0x4e8135,s(this[_0x24a4af(0x164)]['get'](_0x2cb832),_0x4e8135,_0x1e77e3));}['removeCode'](_0x39daba,_0x3148a9){const _0x439938=_0x42beb5;this['_setResource'](_0x39daba,_0x3148a9,c(this[_0x439938(0x164)][_0x439938(0xcd)](_0x39daba),_0x3148a9));}[_0x42beb5(0xdb)](_0x21de0e){return o(this['_resources']['get'](_0x21de0e));}['deserialize'](_0x30bd78,_0x389b2b){const _0xdbf5f9=_0x42beb5;this['_resources'][_0xdbf5f9(0x117)](_0x30bd78,o(_0x389b2b)),this[_0xdbf5f9(0x137)][_0xdbf5f9(0xd1)]({'unitId':_0x30bd78});}[_0x42beb5(0x14b)](_0x1dc8e0){const _0x540a05=_0x42beb5;this[_0x540a05(0x164)][_0x540a05(0x14c)](_0x1dc8e0),this[_0x540a05(0x137)]['next']({'unitId':_0x1dc8e0});}[_0x42beb5(0x141)](){const _0x433c12=_0x42beb5;super[_0x433c12(0x141)](),this['_resources'][_0x433c12(0x10a)](),this[_0x433c12(0x137)]['complete']();}[_0x42beb5(0x177)](_0x17561a,_0x40a528,_0x5bfbb9){const _0x9106fc=_0x42beb5;this[_0x9106fc(0x164)]['set'](_0x17561a,_0x5bfbb9),this[_0x9106fc(0x137)][_0x9106fc(0xd1)]({'unitId':_0x17561a,'blockId':_0x40a528});}};const m={'id':_0x42beb5(0x178),'type':e[_0x42beb5(0x1a0)][_0x42beb5(0x13c)],'handler':(_0x5a1d75,_0x36f707)=>!(_0x36f707!=null&&_0x36f707[_0x42beb5(0x13a)])||!_0x36f707['blockId']?!0x1:(_0x5a1d75[_0x42beb5(0xcd)](p)[_0x42beb5(0x139)](_0x36f707[_0x42beb5(0x13a)],_0x36f707[_0x42beb5(0x140)],_0x36f707[_0x42beb5(0x188)]),!0x0)},h={'id':'docs-code.mutation.remove-config','type':e['CommandType'][_0x42beb5(0x13c)],'handler':(_0x1d7fd4,_0x2c802f)=>!(_0x2c802f!=null&&_0x2c802f['unitId'])||!_0x2c802f[_0x42beb5(0x140)]?!0x1:(_0x1d7fd4[_0x42beb5(0xcd)](p)[_0x42beb5(0x14a)](_0x2c802f[_0x42beb5(0x13a)],_0x2c802f['blockId']),!0x0)},g=_0x42beb5(0x109);var _=class extends Error{constructor(_0x495d3d=_0x42beb5(0x1a7)){super(_0x495d3d);}};function _0x1bad(_0x2e3c7c,_0x549dc5){_0x2e3c7c=_0x2e3c7c-0xcd;const _0x36ef17=_0x36ef();let _0x1bad11=_0x36ef17[_0x2e3c7c];return _0x1bad11;}function v(_0x5195f4){const _0x5e65fe=_0x42beb5;var _0x48d6f5,_0x4f74d7,_0x3a5e83;let _0x58dfea=T(_0x5195f4[_0x5e65fe(0x110)]),_0x451870=D(_0x58dfea),_0xebdb2f=te(_0x5195f4[_0x5e65fe(0x199)],_0x5195f4[_0x5e65fe(0x18a)]),_0x308f33=_0xebdb2f?(_0x48d6f5=_0x451870[_0x5e65fe(0x122)])==null?void 0x0:_0x48d6f5['find'](_0x2631a1=>{const _0x33985f=_0x5e65fe;let _0x7253da=(0x0,e[_0x33985f(0xd6)])(_0x2631a1);return _0x7253da[_0x33985f(0x199)]===_0xebdb2f['startOffset']&&_0x7253da[_0x33985f(0x18a)]===_0xebdb2f[_0x33985f(0x18a)];}):void 0x0,{startOffset:_0x221324,endOffset:_0x5c817c}=_0x308f33?_0xebdb2f:de(_0x451870,_0x5195f4[_0x5e65fe(0x199)],_0x5195f4['endOffset'],_0x5195f4['insertionMode']);if(!_0x308f33&&ne(_0x451870,_0x221324,_0x5c817c))throw new _(_0x5e65fe(0xea));let _0x14cb17=me(_0x451870,_0x221324,_0x5c817c),_0xde74b8=(_0x4f74d7=_0x308f33==null?void 0x0:_0x308f33['blockId'])==null?_0x5195f4[_0x5e65fe(0x140)]:_0x4f74d7,_0x3395e4=s(_0x5195f4[_0x5e65fe(0xef)],_0xde74b8,{...i,..._0x5195f4[_0x5e65fe(0x188)]});if(_0x308f33)return _0x308f33[_0x5e65fe(0x10b)]=e[_0x5e65fe(0x191)][_0x5e65fe(0xf6)],ee(_0x451870,_0x221324,_0x5c817c),w(_0x451870,_0x221324,_0x5c817c,_0x14cb17),j(_0x451870,_0x308f33),{'nextDocumentData':_0x58dfea,'nextMetadata':_0x3395e4,'cursorOffset':_0x221324+0x1};if(_0x221324===_0x5c817c){var _0x332540,_0x21d798;let _0xdaaed=''+e[_0x5e65fe(0x160)][_0x5e65fe(0xde)]+e[_0x5e65fe(0x160)][_0x5e65fe(0x17d)]+e[_0x5e65fe(0x160)]['BLOCK_END'];M(_0x451870,_0x221324,_0xdaaed,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e[_0x5e65fe(0xfc)])(new Set((_0x332540=_0x451870['paragraphs'])==null?void 0x0:_0x332540['map'](_0xbaab2a=>_0xbaab2a['paragraphId']))),'paragraphStyle':C(!0x0,!0x0,_0x14cb17)}],'blockRanges':[{'blockId':_0xde74b8,'blockType':e[_0x5e65fe(0x191)][_0x5e65fe(0xf6)],'startIndex':0x0,'endIndex':_0xdaaed[_0x5e65fe(0x14d)]-0x1}]});let _0x31f1ce=(_0x21d798=_0x451870[_0x5e65fe(0x122)])==null?void 0x0:_0x21d798['find'](_0x50ad5c=>_0x50ad5c[_0x5e65fe(0x140)]===_0xde74b8);return _0x31f1ce&&j(_0x451870,_0x31f1ce),{'nextDocumentData':_0x58dfea,'nextMetadata':_0x3395e4,'cursorOffset':_0x221324+0x1};}M(_0x451870,_0x5c817c,e[_0x5e65fe(0x160)]['BLOCK_END']),M(_0x451870,_0x221324,e[_0x5e65fe(0x160)][_0x5e65fe(0xde)]),w(_0x451870,_0x221324,_0x5c817c+0x1,_0x14cb17);let _0x12d5b0={'blockId':_0xde74b8,'blockType':e[_0x5e65fe(0x191)][_0x5e65fe(0xf6)],'startIndex':_0x221324,'endIndex':_0x5c817c+0x1};return _0x451870[_0x5e65fe(0x122)]=[...(_0x3a5e83=_0x451870[_0x5e65fe(0x122)])==null?[]:_0x3a5e83,_0x12d5b0][_0x5e65fe(0x172)]((_0x57d564,_0x4b7c95)=>_0x57d564[_0x5e65fe(0xe5)]-_0x4b7c95['startIndex']),j(_0x451870,_0x12d5b0),{'nextDocumentData':_0x58dfea,'nextMetadata':_0x3395e4,'cursorOffset':_0x221324+0x1};}function ee(_0x12104b,_0x59dd31,_0x52d08f){const _0x5c1366=_0x42beb5;var _0x60958a;((_0x60958a=_0x12104b[_0x5c1366(0x10f)])==null?[]:_0x60958a)['filter'](_0x4fa7b0=>_0x4fa7b0[_0x5c1366(0xe5)]>_0x59dd31&&_0x4fa7b0[_0x5c1366(0xe5)]<_0x52d08f)['forEach'](_0x57bba0=>{const _0x53760b=_0x5c1366;var _0x5e46d6;let _0x529e2a={...(_0x5e46d6=_0x57bba0[_0x53760b(0x15d)])==null?{}:_0x5e46d6};delete _0x529e2a[_0x53760b(0xf4)],delete _0x529e2a[_0x53760b(0x15c)],_0x57bba0[_0x53760b(0x15d)]=_0x529e2a;});}function te(_0x4fd29b,_0x3d218e){const _0x3aab2c=_0x42beb5;return _0x4fd29b==null||_0x3d218e==null||_0x4fd29b===_0x3d218e?null:{'startOffset':Math[_0x3aab2c(0x193)](_0x4fd29b,_0x3d218e),'endOffset':Math[_0x3aab2c(0x106)](_0x4fd29b,_0x3d218e)};}function ne(_0x1adb92,_0x3aac15,_0x144701){const _0x426419=_0x42beb5;var _0x21e001;return((_0x21e001=_0x1adb92[_0x426419(0x122)])==null?[]:_0x21e001)['some'](_0x4521cd=>{const _0x55cf09=_0x426419;let _0x1bcf68=(0x0,e[_0x55cf09(0xd6)])(_0x4521cd);return _0x3aac15===_0x144701?(0x0,e['containsInteriorInsertionOffset'])(_0x1bcf68,_0x3aac15):(0x0,e[_0x55cf09(0x16d)])(_0x1bcf68,{'startOffset':_0x3aac15,'endOffset':_0x144701});});}function y(_0x1ea5db){const _0x3efc22=_0x42beb5;return{'nextDocumentData':T(_0x1ea5db[_0x3efc22(0x110)]),'nextMetadata':s(_0x1ea5db[_0x3efc22(0xef)],_0x1ea5db['blockId'],_0x1ea5db['config']),'cursorOffset':0x0};}function b(_0x1c628f){const _0x2febda=_0x42beb5;let _0x36a1da=T(_0x1c628f[_0x2febda(0x110)]),_0x2abc91=D(_0x36a1da),_0x27dd79=S(_0x2abc91,_0x1c628f[_0x2febda(0x140)]);if(!_0x27dd79)return null;let _0xc8f64b=le(_0x2abc91,_0x27dd79);return{'nextDocumentData':_0x36a1da,'nextMetadata':c(_0x1c628f[_0x2febda(0xef)],_0x1c628f[_0x2febda(0x140)]),'cursorOffset':_0xc8f64b};}function re(_0x3413ea){const _0x406ae6=_0x42beb5;var _0x59eb49;let _0x16be70=T(_0x3413ea[_0x406ae6(0x110)]),_0x3e085b=D(_0x16be70),_0x3aee6e=S(_0x3e085b,_0x3413ea[_0x406ae6(0x140)]);if(!_0x3aee6e)return null;let _0x21060e=(0x0,e[_0x406ae6(0xd6)])(_0x3aee6e);return N(_0x3e085b,_0x21060e[_0x406ae6(0x199)],_0x21060e[_0x406ae6(0x18a)]),_0x3e085b[_0x406ae6(0x122)]=(_0x59eb49=_0x3e085b[_0x406ae6(0x122)])==null?void 0x0:_0x59eb49[_0x406ae6(0x121)](_0x29fa84=>_0x29fa84['blockId']!==_0x3413ea[_0x406ae6(0x140)]),{'nextDocumentData':_0x16be70,'nextMetadata':c(_0x3413ea['metadata'],_0x3413ea['blockId']),'cursorOffset':_0x3aee6e[_0x406ae6(0xe5)]};}function x(_0x39a91b){const _0x5a0253=_0x42beb5;let _0x47f89d=T(_0x39a91b[_0x5a0253(0x110)]),_0x34b0a9=D(_0x47f89d),_0xf2ffe2=oe(_0x34b0a9,_0x39a91b[_0x5a0253(0x120)]);return _0xf2ffe2&&ie(_0x47f89d,_0x34b0a9,_0xf2ffe2,_0x39a91b[_0x5a0253(0x120)],_0x39a91b[_0x5a0253(0x115)])||null;}function ie(_0x4e02bf,_0xaa6af2,_0x29b205,_0x1d4793,_0x43a63d){const _0x3a8709=_0x42beb5;let _0x2fb6c6=ye(_0xaa6af2,_0x29b205,_0x1d4793,_0x43a63d);if(!_0x2fb6c6)return null;let _0x498562=_0x2fb6c6[_0x3a8709(0x159)]-0x1;return N(_0xaa6af2,_0x2fb6c6['paragraph'][_0x3a8709(0xe5)],_0x2fb6c6['paragraph'][_0x3a8709(0xe5)]+0x1),{'nextDocumentData':_0x4e02bf,'cursorOffset':_0x498562};}function S(_0x46e52f,_0x433d05){const _0x4071ef=_0x42beb5;var _0x320f20;return _0x46e52f==null||(_0x320f20=_0x46e52f[_0x4071ef(0x122)])==null?void 0x0:_0x320f20[_0x4071ef(0x158)](_0x54f7f6=>_0x54f7f6['blockType']===e[_0x4071ef(0x191)][_0x4071ef(0xf6)]&&_0x54f7f6[_0x4071ef(0x140)]===_0x433d05);}function ae(_0x1598e5){const _0x1dafa=_0x42beb5;var _0x199b0a;let _0x39b670=_0x1598e5[_0x1dafa(0x110)][_0x1dafa(0x103)];if(!_0x39b670)return!0x1;let _0x3c5f4d=_0x1598e5[_0x1dafa(0x12f)]===_0x1dafa(0x12d)?_0x1598e5[_0x1dafa(0x120)]-0x1:_0x1598e5[_0x1dafa(0x120)],_0x446475=_0x1598e5[_0x1dafa(0x12f)]===_0x1dafa(0x1a4)?_0x1598e5[_0x1dafa(0x120)]+0x1:_0x3c5f4d;return((_0x199b0a=_0x39b670[_0x1dafa(0x122)])==null?[]:_0x199b0a)['some'](_0x3ae6d0=>_0x3ae6d0[_0x1dafa(0x10b)]===e[_0x1dafa(0x191)]['CODE']?_0x3c5f4d===_0x3ae6d0['startIndex']||_0x3c5f4d===_0x3ae6d0['endIndex']||_0x446475===_0x3ae6d0['startIndex']||_0x446475===_0x3ae6d0[_0x1dafa(0xff)]:!0x1);}function oe(_0x5d665b,_0xffca47){const _0x383bb1=_0x42beb5;var _0x39d5a4;return(_0x39d5a4=_0x5d665b[_0x383bb1(0x122)])==null?void 0x0:_0x39d5a4[_0x383bb1(0x158)](_0x182acd=>{const _0x1c9ed9=_0x383bb1;let _0x57ef76=A(_0x182acd);return _0x182acd[_0x1c9ed9(0x10b)]===e[_0x1c9ed9(0x191)][_0x1c9ed9(0xf6)]&&_0x182acd[_0x1c9ed9(0xe5)]<=_0xffca47&&_0xffca47<=_0x57ef76+0x2;});}function C(_0x50f59e,_0x675160,_0x5bba8d=!0x1){const _0x1aa5c2=_0x42beb5;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':e[_0x1aa5c2(0x187)][_0x1aa5c2(0x118)],'keepNext':_0x675160?e[_0x1aa5c2(0x187)]['FALSE']:e[_0x1aa5c2(0x187)][_0x1aa5c2(0x118)],'widowControl':e['BooleanNumber'][_0x1aa5c2(0x118)],..._0x50f59e&&_0x5bba8d?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':g,'fs':0xc}};}function w(_0xded864,_0x2e4c6f,_0x1f4b3d,_0x585e95=!0x1){const _0x157037=_0x42beb5;var _0x5bfb52;let _0xc986ad=((_0x5bfb52=_0xded864['paragraphs'])==null?[]:_0x5bfb52)[_0x157037(0x121)](_0x4eebb5=>_0x4eebb5[_0x157037(0xe5)]>_0x2e4c6f&&_0x4eebb5[_0x157037(0xe5)]<_0x1f4b3d);_0xc986ad['forEach']((_0x7238b2,_0x41959a)=>{const _0x29df1e=_0x157037;var _0x12581f;_0x7238b2[_0x29df1e(0x15d)]={...(_0x12581f=_0x7238b2[_0x29df1e(0x15d)])==null?{}:_0x12581f,...C(_0x41959a===0x0,_0x41959a===_0xc986ad[_0x29df1e(0x14d)]-0x1,_0x585e95)};});}function se(_0x3c5f3a){const _0x107209=_0x42beb5;var _0x497244,_0x37685a;let _0x3a3512={..._0x3c5f3a==null?{}:_0x3c5f3a};return delete _0x3a3512[_0x107209(0xe0)],delete _0x3a3512[_0x107209(0xf9)],delete _0x3a3512['spaceAbove'],delete _0x3a3512[_0x107209(0x15c)],delete _0x3a3512[_0x107209(0x19a)],delete _0x3a3512[_0x107209(0x14f)],delete _0x3a3512['widowControl'],((_0x497244=_0x3a3512[_0x107209(0x17f)])==null?void 0x0:_0x497244['ff'])===g&&((_0x37685a=_0x3a3512[_0x107209(0x17f)])==null?void 0x0:_0x37685a['fs'])===0xc&&delete _0x3a3512[_0x107209(0x17f)],_0x3a3512;}function ce(_0xddf88c,_0x3771cf){const _0x4ac1b3=_0x42beb5;var _0x27d227;let _0x3df6e1=A(_0x3771cf);return((_0x27d227=_0xddf88c['paragraphs'])==null?[]:_0x27d227)['filter'](_0x4eb2f9=>_0x4eb2f9[_0x4ac1b3(0xe5)]>_0x3771cf['startIndex']&&_0x4eb2f9[_0x4ac1b3(0xe5)]<_0x3df6e1);}function le(_0x2f3c8f,_0x52a297){const _0x45f8b3=_0x42beb5;var _0x44b115;let _0x1ba9f2=A(_0x52a297);return ce(_0x2f3c8f,_0x52a297)[_0x45f8b3(0x149)](_0x3dba92=>{const _0x5f081c=_0x45f8b3;_0x3dba92[_0x5f081c(0x15d)]=se(_0x3dba92['paragraphStyle']);}),N(_0x2f3c8f,_0x1ba9f2,_0x1ba9f2+0x1),N(_0x2f3c8f,_0x52a297[_0x45f8b3(0xe5)],_0x52a297['startIndex']+0x1),_0x2f3c8f[_0x45f8b3(0x122)]=(_0x44b115=_0x2f3c8f['blockRanges'])==null?void 0x0:_0x44b115['filter'](_0x2add82=>_0x2add82[_0x45f8b3(0x140)]!==_0x52a297[_0x45f8b3(0x140)]),_0x52a297['startIndex'];}function T(_0x458487){const _0x3fb253=_0x42beb5;return{..._0x458487,'body':_0x458487[_0x3fb253(0x103)]?ue(_0x458487['body']):_0x458487[_0x3fb253(0x103)]};}function ue(_0x14a718){const _0xe29862=_0x42beb5;var _0x4142cf,_0xee490b,_0x32594f,_0x1da0c1,_0x303a04,_0x4c0b5f,_0x537ff3,_0x985886,_0x3de2c4;return{..._0x14a718,'paragraphs':(_0x4142cf=_0x14a718[_0xe29862(0x10f)])==null?void 0x0:_0x4142cf[_0xe29862(0x11f)](_0x26f616=>({..._0x26f616,'bullet':E(_0x26f616[_0xe29862(0xf5)]),'paragraphStyle':E(_0x26f616[_0xe29862(0x15d)])})),'sectionBreaks':(_0xee490b=_0x14a718[_0xe29862(0x11e)])==null?void 0x0:_0xee490b[_0xe29862(0x11f)](_0x1fcd1e=>({..._0x1fcd1e})),'textRuns':(_0x32594f=_0x14a718[_0xe29862(0x18e)])==null?void 0x0:_0x32594f[_0xe29862(0x11f)](_0x1407cb=>({..._0x1407cb})),'tables':(_0x1da0c1=_0x14a718[_0xe29862(0x145)])==null?void 0x0:_0x1da0c1['map'](_0x39021d=>({..._0x39021d})),'columnGroups':(_0x303a04=_0x14a718[_0xe29862(0x18b)])==null?void 0x0:_0x303a04[_0xe29862(0x11f)](_0x5a329a=>{const _0xea124f=_0xe29862;var _0x325fd0;return{..._0x5a329a,'columns':(_0x325fd0=_0x5a329a['columns'])==null?void 0x0:_0x325fd0[_0xea124f(0x11f)](_0x41d0f0=>E(_0x41d0f0))};}),'blockRanges':(_0x4c0b5f=_0x14a718['blockRanges'])==null?void 0x0:_0x4c0b5f[_0xe29862(0x11f)](_0x4e3ad9=>({..._0x4e3ad9})),'customRanges':(_0x537ff3=_0x14a718[_0xe29862(0x153)])==null?void 0x0:_0x537ff3[_0xe29862(0x11f)](_0xc5e20=>({..._0xc5e20})),'customDecorations':(_0x985886=_0x14a718['customDecorations'])==null?void 0x0:_0x985886[_0xe29862(0x11f)](_0x231e6e=>({..._0x231e6e})),'customBlocks':(_0x3de2c4=_0x14a718[_0xe29862(0x15a)])==null?void 0x0:_0x3de2c4[_0xe29862(0x11f)](_0x28d503=>({..._0x28d503}))};}function E(_0x4d05db){const _0x51b31d=_0x42beb5;return Array[_0x51b31d(0x131)](_0x4d05db)?_0x4d05db[_0x51b31d(0x11f)](_0x57bc3e=>E(_0x57bc3e)):!_0x4d05db||typeof _0x4d05db!=_0x51b31d(0x19e)?_0x4d05db:Object[_0x51b31d(0x180)](Object[_0x51b31d(0x12b)](_0x4d05db)[_0x51b31d(0x11f)](([_0x5a11db,_0x2faf42])=>[_0x5a11db,E(_0x2faf42)]));}function D(_0x207a18){const _0x4108d0=_0x42beb5;if(!_0x207a18[_0x4108d0(0x103)])throw Error(_0x4108d0(0x143));return _0x207a18[_0x4108d0(0x103)];}function de(_0x189e51,_0x571c60,_0x306ad4,_0x4ec07d=_0x42beb5(0x15e)){const _0xe08e4c=_0x42beb5;if(_0x571c60==null||_0x306ad4==null){let _0x840e88=pe(_0x189e51);return{'startOffset':_0x840e88,'endOffset':_0x840e88};}let _0x8b9968=Math[_0xe08e4c(0x193)](_0x571c60,_0x306ad4),_0x2a80b7=Math[_0xe08e4c(0x106)](_0x571c60,_0x306ad4),_0x5dc3df=ve(_0x189e51,_0x8b9968,_0x2a80b7);return _0x8b9968===_0x2a80b7?_0x4ec07d===_0xe08e4c(0x185)?{'startOffset':_0x8b9968,'endOffset':_0x2a80b7}:fe(_0x189e51,_0x8b9968,_0x5dc3df):he(_0x189e51,_0x8b9968,_0x2a80b7,_0x5dc3df);}function fe(_0x2b0e94,_0x4dc315,_0x4bf7db){const _0x54d79f=_0x42beb5;let _0x159358=ge(_0x2b0e94,_0x4dc315);if(_0x159358){let _0x46bbf3=O(_0x2b0e94,_0x159358,_0x4bf7db);if(_0x46bbf3<_0x159358[_0x54d79f(0xe5)])return{'startOffset':_0x46bbf3,'endOffset':_0x4bf7db?Math[_0x54d79f(0x193)](_0x159358[_0x54d79f(0xe5)]+0x1,_0x4bf7db[_0x54d79f(0x18a)]):_0x159358['startIndex']+0x1};}let _0x4cb2c9=_0x4dc315===0x0&&_0x2b0e94['dataStream'][0x0]===e['DataStreamTreeTokenType'][_0x54d79f(0x17d)]?0x1:_0x4dc315;return{'startOffset':_0x4cb2c9,'endOffset':_0x4cb2c9};}function _0x36ef(){const _0x2a9bdb=['getOwnPropertyDescriptor','_config','shiftExclusiveRangeOnInsert','customRanges','IConfigService','string','customDecorations','startTokenOffset','find','endTokenOffset','customBlocks','constructor','spaceBelow','paragraphStyle','convert-paragraph','disposeWithMe','DataStreamTreeTokenType','getUnit','codes','DocsCodeModel','_resources','getContentInsertRange','normalizeDocsCodeMetadataResource','IUniverInstanceService','symbol','RemoveDocsCodeConfigMutation','stringify','defineProperty','DocsCodeInsertCommand','intersectsOperationalIntervals','prototype','TABLE_CELL_START','shiftExclusiveRangeOnDelete','getParagraphContentStartOffset','sort','docs-code.command.cancel-empty-paragraph','DocsCodeUnwrapCommand','asObservable','change$','_setResource','docs-code.mutation.set-config','deleteLength','call','Disposable','editOp','PARAGRAPH','4AjvIjq','textStyle','fromEntries','insertOp','getBodySliceForTextXAction','docs-code.command.remove','isCodeBoundaryDelete','insert-new','indexOf','BooleanNumber','config','1.0.0-insiders.20260801-fe30d15','endOffset','columnGroups','BuildTextUtils','COMMAND','textRuns','docs-code.command.consume-boundary-delete','onStarting','DocumentBlockRangeType','range','min','DocsCodeUpdateCommand','compose','endsWith','paragraphId','SECTION_BREAK','startOffset','keepLines','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','nextDocumentData','registerPluginResource','object','model','CommandType','keys','_docsCodeModel','1157703UeamKp','right','_resourceManagerService','16PweJCu','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','nextMetadata','get','_commandService','Inject','docs-code.command.unwrap','next','previousDocumentData','108ZcCHqW','DOC_CODE_PLUGIN','toPrimitive','getBlockRangeInterval','getInstance','_configService','dataStream','Injector','serialize','DocSelectionManagerService','selectionManager','BLOCK_START','Module','indentEnd','removeOp','start','DocsCodeConsumeBoundaryDeleteCommand','deserialize','startIndex','version','getParagraphsInRange','Plugin','slice','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','RichTextEditingMutation','getParagraphContentStartOffsets','Subject','getSnapshot','metadata','57265nuHxkH','toStringTag','getUnitId','normalizeDocsCodeConfig','spaceAbove','bullet','CODE','TextX','parse','indentStart','getCurrentUnitOfType','_injector','createParagraphId','function','getBody','endIndex','docs-code.config','SetDocsCodeConfigMutation','generateRandomId','body','syncExecuteCommand','setConfig','max','add','UniverDocsPlugin','monospace','clear','blockType','replaceOp','insertLength','replaceDocRanges','paragraphs','documentData','UniverInstanceType','390670XEQLmY','DocsCodeInsertBelowCommand','insertionMode','paragraphStartIndex','javascript','set','TRUE','1280331EwwdVC','isHeaderFooterSelection','IResourceManagerService','retain','containsInteriorInsertionOffset','sectionBreaks','map','cursorOffset','filter','blockRanges','UNIVER_DOC','1067dWOLKk','type','getSingleDataStreamChange','docs-code.command.insert','1988952RAxlIl','docs-code.command.update','getTextRanges','entries','some','left','DocsCodeRemoveCommand','direction','UniverLicensePlugin','isArray','_initResource','decorate','iterator','UniverDocsCodePlugin','TABLE_CELL_END','_change$','insert','setCodeConfig','unitId','ICommandService','MUTATION','JSONX','push','299890OzmIDX','blockId','dispose','docs-code.command.exit','Document\x20body\x20is\x20required','pluginName','tables','containsStreamIndex','reduce','every','forEach','removeCode','removeUnit','delete','length','commandService','keepNext'];_0x36ef=function(){return _0x2a9bdb;};return _0x36ef();}function pe(_0xf54c89){const _0x3c2c00=_0x42beb5;return _0xf54c89[_0x3c2c00(0xd9)][_0x3c2c00(0x196)](e[_0x3c2c00(0x160)][_0x3c2c00(0x198)])?Math[_0x3c2c00(0x106)](0x0,_0xf54c89[_0x3c2c00(0xd9)][_0x3c2c00(0x14d)]-0x1):_0xf54c89['dataStream'][_0x3c2c00(0x14d)];}function me(_0x5da435,_0x48cf86,_0x3ac112){const _0x47131e=_0x42beb5;var _0x3252c8;let _0x49596b=Math[_0x47131e(0x193)](_0x48cf86,_0x3ac112),_0x3a5656=Math['max'](_0x48cf86,_0x3ac112);return!!((_0x3252c8=_0x5da435[_0x47131e(0x145)])!=null&&_0x3252c8[_0x47131e(0x12c)](_0x4f443b=>_0x49596b>_0x4f443b['startIndex']&&_0x49596b<_0x4f443b[_0x47131e(0xff)]||_0x3a5656>_0x4f443b[_0x47131e(0xe5)]&&_0x3a5656<_0x4f443b[_0x47131e(0xff)]||_0x49596b<=_0x4f443b[_0x47131e(0xe5)]&&_0x3a5656>=_0x4f443b[_0x47131e(0xff)]));}function he(_0x200f96,_0x292143,_0x31fbeb,_0x46438d){const _0xb391ab=_0x42beb5;var _0x146cc4,_0x6f8663;let _0x4e8d5c=[...(_0x146cc4=_0x200f96[_0xb391ab(0x10f)])==null?[]:_0x146cc4][_0xb391ab(0x172)]((_0x3b46b9,_0x3737da)=>_0x3b46b9[_0xb391ab(0xe5)]-_0x3737da[_0xb391ab(0xe5)]),_0x5c717e=(0x0,e[_0xb391ab(0xec)])(_0x200f96),_0x2d4ba2=_0x4e8d5c[_0xb391ab(0x158)](_0xb7c65d=>O(_0x200f96,_0xb7c65d,_0x46438d,_0x5c717e)<=_0x292143&&_0x292143<=_0xb7c65d[_0xb391ab(0xe5)]),_0x3a9e14=(_0x6f8663=_0x4e8d5c['find'](_0x5b8d7c=>_0x5b8d7c[_0xb391ab(0xe5)]>=_0x31fbeb-0x1))==null?_0x4e8d5c[_0x4e8d5c[_0xb391ab(0x14d)]-0x1]:_0x6f8663;return{'startOffset':_0x2d4ba2?O(_0x200f96,_0x2d4ba2,_0x46438d,_0x5c717e):_0x292143,'endOffset':_0x3a9e14?_e(_0x3a9e14,_0x46438d):_0x31fbeb};}function ge(_0x211593,_0x34c4df){const _0x4de19a=_0x42beb5;var _0xadae7;let _0x130364=[...(_0xadae7=_0x211593[_0x4de19a(0x10f)])==null?[]:_0xadae7][_0x4de19a(0x172)]((_0x1d7ea3,_0x195dc5)=>_0x1d7ea3[_0x4de19a(0xe5)]-_0x195dc5[_0x4de19a(0xe5)]),_0x114179=(0x0,e['getParagraphContentStartOffsets'])(_0x211593);return _0x130364[_0x4de19a(0x158)](_0x4a3476=>{const _0x38f212=_0x4de19a;var _0x37928c;return((_0x37928c=_0x114179[_0x38f212(0xcd)](_0x4a3476[_0x38f212(0xe5)]))==null?0x0:_0x37928c)<=_0x34c4df&&_0x34c4df<=_0x4a3476[_0x38f212(0xe5)];});}function O(_0x637eb8,_0x2c6603,_0x682ed9,_0x44eccd){const _0x170e97=_0x42beb5;var _0x2521e4;let _0x151974=(_0x2521e4=_0x44eccd==null?void 0x0:_0x44eccd[_0x170e97(0xcd)](_0x2c6603['startIndex']))==null?(0x0,e[_0x170e97(0x171)])(_0x637eb8,_0x2c6603):_0x2521e4;return _0x682ed9?Math[_0x170e97(0x106)](_0x151974,_0x682ed9[_0x170e97(0x199)]):_0x151974;}function _e(_0x80d347,_0x3a2255){const _0x373fe9=_0x42beb5;let _0x45153e=_0x80d347[_0x373fe9(0xe5)]+0x1;return _0x3a2255?Math['min'](_0x45153e,_0x3a2255[_0x373fe9(0x18a)]):_0x45153e;}function ve(_0x5c84e5,_0x448f26,_0x536102){const _0x19a615=_0x42beb5;let _0x6e08b0=k(_0x5c84e5,_0x448f26),_0x531e7c=k(_0x5c84e5,_0x448f26===_0x536102?_0x536102:Math['max'](_0x448f26,_0x536102-0x1));if(!(!_0x6e08b0&&!_0x531e7c)){if(!_0x6e08b0||!_0x531e7c||_0x6e08b0[_0x19a615(0x157)]!==_0x531e7c[_0x19a615(0x157)]||_0x6e08b0[_0x19a615(0x159)]!==_0x531e7c[_0x19a615(0x159)])throw new _();return _0x6e08b0;}}function k(_0x1ebad1,_0x3e25b5){const _0x2b3499=_0x42beb5;let _0x4137eb=_0x1ebad1[_0x2b3499(0xd9)],_0x362a6c=-0x1;for(let _0x29d804=Math[_0x2b3499(0x193)](_0x3e25b5,_0x4137eb[_0x2b3499(0x14d)]-0x1);_0x29d804>=0x0;_0x29d804--){let _0x2d5867=_0x4137eb[_0x29d804];if(_0x2d5867===e[_0x2b3499(0x160)][_0x2b3499(0x136)])return;if(_0x2d5867===e[_0x2b3499(0x160)][_0x2b3499(0x16f)]){_0x362a6c=_0x29d804;break;}}if(_0x362a6c<0x0)return;let _0x92dc2d=_0x4137eb[_0x2b3499(0x186)](e[_0x2b3499(0x160)][_0x2b3499(0x136)],_0x362a6c+0x1);if(!(_0x92dc2d<0x0||_0x3e25b5<_0x362a6c+0x1||_0x3e25b5>_0x92dc2d-0x1))return{'startOffset':_0x362a6c+0x1,'endOffset':Math['max'](_0x362a6c+0x1,_0x92dc2d-0x1),'startTokenOffset':_0x362a6c,'endTokenOffset':_0x92dc2d};}function A(_0x599c94){const _0x2b7b4b=_0x42beb5;return(0x0,e[_0x2b7b4b(0xd6)])(_0x599c94)['endOffset']-0x1;}function ye(_0x47e840,_0x2a6890,_0x5ddbe6,_0xf6a49c){const _0xc9c9b6=_0x42beb5;var _0x5c67fc;let _0x49f324=A(_0x2a6890),_0x4d846a=((_0x5c67fc=_0x47e840[_0xc9c9b6(0x10f)])==null?[]:_0x5c67fc)[_0xc9c9b6(0x158)](_0x4f3ee7=>_0x4f3ee7[_0xc9c9b6(0xe5)]===_0x49f324+0x1);if(!_0x4d846a||_0xf6a49c!=null&&_0x4d846a[_0xc9c9b6(0xe5)]!==_0xf6a49c||_0x5ddbe6!=null&&(_0x5ddbe6<_0x49f324||_0x5ddbe6>_0x4d846a[_0xc9c9b6(0xe5)]+0x1)||_0x47e840['dataStream'][_0x4d846a['startIndex']]!==e['DataStreamTreeTokenType'][_0xc9c9b6(0x17d)])return null;let _0x3211cd=(0x0,e[_0xc9c9b6(0x171)])(_0x47e840,_0x4d846a),_0x3b5b87=_0x47e840['dataStream']['slice'](_0x3211cd,_0x4d846a[_0xc9c9b6(0xe5)]);return Array['from'](_0x3b5b87)[_0xc9c9b6(0x148)](_0x315202=>_0x315202===e[_0xc9c9b6(0x160)]['BLOCK_END'])?{'paragraph':_0x4d846a,'endTokenOffset':_0x49f324}:null;}function j(_0x34209f,_0x48f3b2){const _0x4667b4=_0x42beb5;var _0x56b657;let _0x12d76e=A(_0x48f3b2),_0x4624b0=_0x34209f[_0x4667b4(0xd9)][_0x12d76e+0x1];(_0x4624b0===e[_0x4667b4(0x160)]['SECTION_BREAK']||_0x4624b0===void 0x0)&&M(_0x34209f,_0x12d76e+0x1,e[_0x4667b4(0x160)]['PARAGRAPH'],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,e[_0x4667b4(0xfc)])(new Set((_0x56b657=_0x34209f[_0x4667b4(0x10f)])==null?void 0x0:_0x56b657[_0x4667b4(0x11f)](_0x13b1a4=>_0x13b1a4[_0x4667b4(0x197)])))}]});}function M(_0x388b7d,_0x3bfa44,_0x22d153,_0xdfebaa={}){const _0x158fff=_0x42beb5;var _0x4b6c5c,_0x19be85;if(_0x22d153){if(_0x388b7d[_0x158fff(0xd9)]=''+_0x388b7d[_0x158fff(0xd9)][_0x158fff(0xe9)](0x0,_0x3bfa44)+_0x22d153+_0x388b7d['dataStream']['slice'](_0x3bfa44),be(_0x388b7d,_0x3bfa44,_0x22d153['length']),(_0x4b6c5c=_0xdfebaa['paragraphs'])!=null&&_0x4b6c5c['length']){var _0x7252a6;_0x388b7d[_0x158fff(0x10f)]=[...(_0x7252a6=_0x388b7d[_0x158fff(0x10f)])==null?[]:_0x7252a6,..._0xdfebaa[_0x158fff(0x10f)]['map'](_0x30a064=>({..._0x30a064,'startIndex':_0x30a064[_0x158fff(0xe5)]+_0x3bfa44}))][_0x158fff(0x172)]((_0x3eb3e2,_0xa52f68)=>_0x3eb3e2[_0x158fff(0xe5)]-_0xa52f68[_0x158fff(0xe5)]);}if((_0x19be85=_0xdfebaa[_0x158fff(0x122)])!=null&&_0x19be85[_0x158fff(0x14d)]){var _0x587233;_0x388b7d[_0x158fff(0x122)]=[...(_0x587233=_0x388b7d['blockRanges'])==null?[]:_0x587233,..._0xdfebaa[_0x158fff(0x122)][_0x158fff(0x11f)](_0x2fd302=>({..._0x2fd302,'startIndex':_0x2fd302[_0x158fff(0xe5)]+_0x3bfa44,'endIndex':_0x2fd302['endIndex']+_0x3bfa44}))]['sort']((_0x58882f,_0x227f62)=>_0x58882f[_0x158fff(0xe5)]-_0x227f62[_0x158fff(0xe5)]);}}}function N(_0x4ec14b,_0x3e4047,_0x50f5b5){const _0x51ae79=_0x42beb5;let _0x6ae552=_0x50f5b5-_0x3e4047;_0x4ec14b[_0x51ae79(0xd9)]=''+_0x4ec14b[_0x51ae79(0xd9)][_0x51ae79(0xe9)](0x0,_0x3e4047)+_0x4ec14b[_0x51ae79(0xd9)][_0x51ae79(0xe9)](_0x50f5b5),xe(_0x4ec14b,_0x3e4047,_0x6ae552);}function be(_0x238ca6,_0x247fe6,_0x301983){const _0x317664=_0x42beb5;_0x238ca6[_0x317664(0x10f)]=P(_0x238ca6[_0x317664(0x10f)],_0x247fe6,_0x301983),_0x238ca6['sectionBreaks']=P(_0x238ca6[_0x317664(0x11e)],_0x247fe6,_0x301983),_0x238ca6[_0x317664(0x15a)]=P(_0x238ca6[_0x317664(0x15a)],_0x247fe6,_0x301983),_0x238ca6[_0x317664(0x18e)]=Se(_0x238ca6[_0x317664(0x18e)],_0x247fe6,_0x301983),_0x238ca6[_0x317664(0x145)]=Ce(_0x238ca6[_0x317664(0x145)],_0x247fe6,_0x301983),_0x238ca6['columnGroups']=I(_0x238ca6[_0x317664(0x18b)],_0x247fe6,_0x301983),_0x238ca6[_0x317664(0x153)]=I(_0x238ca6[_0x317664(0x153)],_0x247fe6,_0x301983),_0x238ca6['customDecorations']=I(_0x238ca6['customDecorations'],_0x247fe6,_0x301983),_0x238ca6['blockRanges']=I(_0x238ca6['blockRanges'],_0x247fe6,_0x301983);}function xe(_0x54502a,_0x39bb35,_0x3fbfd6){const _0x4dd687=_0x42beb5;var _0x182228,_0x4e2093;_0x54502a[_0x4dd687(0x10f)]=F(_0x54502a['paragraphs'],_0x39bb35,_0x3fbfd6),_0x54502a[_0x4dd687(0x11e)]=F(_0x54502a[_0x4dd687(0x11e)],_0x39bb35,_0x3fbfd6),_0x54502a[_0x4dd687(0x15a)]=F(_0x54502a[_0x4dd687(0x15a)],_0x39bb35,_0x3fbfd6),_0x54502a[_0x4dd687(0x18e)]=(_0x182228=R((_0x4e2093=_0x54502a[_0x4dd687(0x18e)])==null?void 0x0:_0x4e2093['map'](_0x8c1f9a=>({..._0x8c1f9a,'startIndex':_0x8c1f9a['st'],'endIndex':_0x8c1f9a['ed']})),_0x39bb35,_0x3fbfd6))==null?void 0x0:_0x182228[_0x4dd687(0x11f)](_0x4ebe0e=>{let {startIndex:_0x2f029f,endIndex:_0x7b222b,..._0x46fda5}=_0x4ebe0e;return{..._0x46fda5,'st':_0x2f029f,'ed':_0x7b222b};}),_0x54502a[_0x4dd687(0x145)]=R(_0x54502a[_0x4dd687(0x145)],_0x39bb35,_0x3fbfd6),_0x54502a['columnGroups']=L(_0x54502a['columnGroups'],_0x39bb35,_0x3fbfd6),_0x54502a['customRanges']=L(_0x54502a[_0x4dd687(0x153)],_0x39bb35,_0x3fbfd6),_0x54502a[_0x4dd687(0x156)]=L(_0x54502a[_0x4dd687(0x156)],_0x39bb35,_0x3fbfd6),_0x54502a[_0x4dd687(0x122)]=L(_0x54502a[_0x4dd687(0x122)],_0x39bb35,_0x3fbfd6);}function P(_0x3af15b,_0xd998f2,_0x3270ce){const _0x19930a=_0x42beb5;return _0x3af15b==null?void 0x0:_0x3af15b[_0x19930a(0x11f)](_0x3d6795=>_0x3d6795[_0x19930a(0xe5)]>=_0xd998f2?{..._0x3d6795,'startIndex':_0x3d6795[_0x19930a(0xe5)]+_0x3270ce}:_0x3d6795);}function F(_0x5a92d8,_0x1f3c7b,_0x2cd27b){const _0x18f553=_0x42beb5;let _0xabee77=_0x1f3c7b+_0x2cd27b;return _0x5a92d8==null?void 0x0:_0x5a92d8[_0x18f553(0x11f)](_0x1aee2e=>_0x1aee2e[_0x18f553(0xe5)]>=_0x1f3c7b&&_0x1aee2e[_0x18f553(0xe5)]<_0xabee77?null:_0x1aee2e[_0x18f553(0xe5)]>=_0xabee77?{..._0x1aee2e,'startIndex':_0x1aee2e['startIndex']-_0x2cd27b}:_0x1aee2e)[_0x18f553(0x121)](_0x409975=>_0x409975!=null);}function Se(_0x5a00e9,_0x302234,_0x13499f){const _0x3114e4=_0x42beb5;return _0x5a00e9==null?void 0x0:_0x5a00e9[_0x3114e4(0x11f)](_0xa1328d=>_0xa1328d['st']>=_0x302234?{..._0xa1328d,'st':_0xa1328d['st']+_0x13499f,'ed':_0xa1328d['ed']+_0x13499f}:_0xa1328d['ed']>_0x302234?{..._0xa1328d,'ed':_0xa1328d['ed']+_0x13499f}:_0xa1328d);}function I(_0x50dad1,_0x5e6168,_0x4f98f5){const _0xd6ccc3=_0x42beb5;return _0x50dad1==null?void 0x0:_0x50dad1[_0xd6ccc3(0x11f)](_0x59d46e=>(0x0,e['shiftInclusiveRangeOnInsert'])(_0x59d46e,_0x5e6168,_0x4f98f5));}function Ce(_0xaeb0e5,_0x21c91e,_0x5d792b){const _0x4ce262=_0x42beb5;return _0xaeb0e5==null?void 0x0:_0xaeb0e5[_0x4ce262(0x11f)](_0x33471b=>(0x0,e[_0x4ce262(0x152)])(_0x33471b,_0x21c91e,_0x5d792b));}function L(_0x2cdbc2,_0x300626,_0x306a6b){const _0x182a0a=_0x42beb5;return _0x2cdbc2==null?void 0x0:_0x2cdbc2['map'](_0x1b84ab=>(0x0,e['shiftInclusiveRangeOnDelete'])(_0x1b84ab,_0x300626,_0x306a6b))[_0x182a0a(0x121)](_0x43ec32=>_0x43ec32!=null);}function R(_0x2950c7,_0x20d580,_0x5857c2){const _0x895573=_0x42beb5;return _0x2950c7==null?void 0x0:_0x2950c7['map'](_0x486499=>(0x0,e[_0x895573(0x170)])(_0x486499,_0x20d580,_0x5857c2))[_0x895573(0x121)](_0xbd76ec=>_0xbd76ec!=null);}const z={'id':'docs-code.command.insert-below','type':e['CommandType'][_0x42beb5(0x18d)],'handler':_0x155972=>{const _0x4d6a7e=_0x42beb5;var _0x3b877c;if((0x0,n[_0x4d6a7e(0x11a)])(G(_0x155972)))return!0x1;let _0x1c4f42=(0x0,n[_0x4d6a7e(0x165)])(_0x155972);if(_0x1c4f42)return _0x155972[_0x4d6a7e(0xcd)](e[_0x4d6a7e(0x13b)])['syncExecuteCommand'](B['id'],{'startOffset':_0x1c4f42['startOffset'],'endOffset':_0x1c4f42[_0x4d6a7e(0x18a)],'insertionMode':_0x4d6a7e(0x185),'unitId':_0x1c4f42[_0x4d6a7e(0x13a)]});let _0x1923e8=Ae(_0x155972);if(!_0x1923e8)return!0x1;let _0x300675=(_0x3b877c=_0x155972[_0x4d6a7e(0xcd)](e[_0x4d6a7e(0x167)])[_0x4d6a7e(0xfa)](e[_0x4d6a7e(0x111)][_0x4d6a7e(0x123)]))==null?void 0x0:_0x3b877c[_0x4d6a7e(0xfe)](),_0x327cdb=_0x300675?(0x0,e['getParagraphFollowingBlockOffset'])(_0x300675,_0x1923e8):_0x1923e8[_0x4d6a7e(0xe5)]+0x1;return _0x155972[_0x4d6a7e(0xcd)](e[_0x4d6a7e(0x13b)])[_0x4d6a7e(0x104)](B['id'],{'startOffset':_0x327cdb,'endOffset':_0x327cdb});}},we={'id':_0x42beb5(0x18f),'type':e[_0x42beb5(0x1a0)][_0x42beb5(0x18d)],'handler':()=>!0x0},B={'id':_0x42beb5(0x127),'type':e[_0x42beb5(0x1a0)][_0x42beb5(0x18d)],'handler':(_0x4a81d8,_0x3ca75d)=>{const _0x2fe48e=_0x42beb5;var _0x2e36b3;let _0x2fd4c3=W(_0x4a81d8,_0x3ca75d==null?void 0x0:_0x3ca75d[_0x2fe48e(0x13a)]);if(!_0x2fd4c3)return!0x1;let _0x34e1cd=G(_0x4a81d8);if((0x0,n[_0x2fe48e(0x11a)])(_0x34e1cd))return!0x1;let _0x25d1ec=_0x2fd4c3[_0x2fe48e(0x19f)][_0x2fe48e(0xdb)](_0x2fd4c3[_0x2fe48e(0x13a)]),_0x28e29c=De(_0x3ca75d,_0x34e1cd),_0x5d58ce=Oe(_0x2fd4c3[_0x2fe48e(0xd2)],_0x28e29c);if(_0x5d58ce){if(_0x5d58ce[_0x2fe48e(0x10b)]!==e[_0x2fe48e(0x191)][_0x2fe48e(0xf6)])return!0x1;let _0x525ff4=b({'blockId':_0x5d58ce[_0x2fe48e(0x140)],'documentData':_0x2fd4c3[_0x2fe48e(0xd2)],'metadata':_0x25d1ec});if(!_0x525ff4)return!0x1;let _0x5f3379=Y(_0x2fd4c3[_0x2fe48e(0x14e)],_0x2fd4c3[_0x2fe48e(0xdd)],_0x2fd4c3[_0x2fe48e(0x13a)],_0x2fd4c3[_0x2fe48e(0xd2)],_0x525ff4[_0x2fe48e(0x19c)],B['id'],_0x525ff4['cursorOffset']);return _0x5f3379&&_0x525ff4[_0x2fe48e(0x1a8)]&&_0x2fd4c3[_0x2fe48e(0x19f)][_0x2fe48e(0xe4)](_0x2fd4c3[_0x2fe48e(0x13a)],_0x525ff4[_0x2fe48e(0x1a8)]),_0x5f3379;}let _0x3c512b=(_0x2e36b3=_0x3ca75d==null?void 0x0:_0x3ca75d['blockId'])==null?(0x0,e[_0x2fe48e(0x102)])(0x6):_0x2e36b3,_0x3dac72;try{_0x3dac72=v({'blockId':_0x3c512b,'config':_0x3ca75d==null?void 0x0:_0x3ca75d[_0x2fe48e(0x188)],'documentData':_0x2fd4c3[_0x2fe48e(0xd2)],'endOffset':_0x28e29c==null?void 0x0:_0x28e29c[_0x2fe48e(0x18a)],'insertionMode':_0x3ca75d==null?void 0x0:_0x3ca75d[_0x2fe48e(0x114)],'metadata':_0x25d1ec,'startOffset':_0x28e29c==null?void 0x0:_0x28e29c['startOffset']});}catch(_0x398c0c){if(_0x398c0c instanceof _)return!0x1;throw _0x398c0c;}let _0x5c3c3a=Y(_0x2fd4c3[_0x2fe48e(0x14e)],_0x2fd4c3[_0x2fe48e(0xdd)],_0x2fd4c3[_0x2fe48e(0x13a)],_0x2fd4c3[_0x2fe48e(0xd2)],_0x3dac72['nextDocumentData'],B['id'],_0x3dac72[_0x2fe48e(0x120)]);return _0x5c3c3a&&_0x3dac72['nextMetadata']&&_0x2fd4c3[_0x2fe48e(0x19f)][_0x2fe48e(0xe4)](_0x2fd4c3[_0x2fe48e(0x13a)],_0x3dac72[_0x2fe48e(0x1a8)]),_0x5c3c3a;}},Te={'id':_0x42beb5(0x129),'type':e[_0x42beb5(0x1a0)][_0x42beb5(0x18d)],'handler':(_0x530731,_0x45b8d9)=>{const _0x511d9c=_0x42beb5;if(!_0x45b8d9)return!0x1;let _0x3dd29f=W(_0x530731,_0x45b8d9[_0x511d9c(0x13a)]);if(!_0x3dd29f)return!0x1;let _0x199b37=y({'blockId':_0x45b8d9['blockId'],'config':_0x45b8d9[_0x511d9c(0x188)],'documentData':_0x3dd29f[_0x511d9c(0xd2)],'metadata':_0x3dd29f[_0x511d9c(0x19f)][_0x511d9c(0xdb)](_0x3dd29f[_0x511d9c(0x13a)])});return _0x199b37[_0x511d9c(0x1a8)]&&_0x3dd29f[_0x511d9c(0x19f)][_0x511d9c(0xe4)](_0x3dd29f[_0x511d9c(0x13a)],_0x199b37['nextMetadata']),!0x0;}},Ee={'id':_0x42beb5(0x142),'type':e[_0x42beb5(0x1a0)][_0x42beb5(0x18d)],'handler':(_0x130989,_0x519522)=>V['handler'](_0x130989,_0x519522)},V={'id':_0x42beb5(0xd0),'type':e['CommandType'][_0x42beb5(0x18d)],'handler':(_0xa2d84a,_0x2d7dc2)=>{const _0x30be58=_0x42beb5;if(!_0x2d7dc2)return!0x1;let _0x3eaeab=W(_0xa2d84a,_0x2d7dc2==null?void 0x0:_0x2d7dc2[_0x30be58(0x13a)]);if(!_0x3eaeab)return!0x1;let _0x1be37c=b({'blockId':_0x2d7dc2[_0x30be58(0x140)],'documentData':_0x3eaeab['previousDocumentData'],'metadata':_0x3eaeab[_0x30be58(0x19f)]['serialize'](_0x3eaeab[_0x30be58(0x13a)])});if(!_0x1be37c)return!0x1;let _0x274fdb=Y(_0x3eaeab['commandService'],_0x3eaeab[_0x30be58(0xdd)],_0x3eaeab[_0x30be58(0x13a)],_0x3eaeab['previousDocumentData'],_0x1be37c[_0x30be58(0x19c)],V['id'],_0x1be37c[_0x30be58(0x120)]);return _0x274fdb&&_0x1be37c[_0x30be58(0x1a8)]&&_0x3eaeab[_0x30be58(0x19f)][_0x30be58(0xe4)](_0x3eaeab[_0x30be58(0x13a)],_0x1be37c[_0x30be58(0x1a8)]),_0x274fdb;}},H={'id':_0x42beb5(0x183),'type':e[_0x42beb5(0x1a0)][_0x42beb5(0x18d)],'handler':(_0x405df2,_0x415cda)=>{const _0x432ce4=_0x42beb5;if(!_0x415cda)return!0x1;let _0x5c7a7c=W(_0x405df2,_0x415cda==null?void 0x0:_0x415cda['unitId']);if(!_0x5c7a7c)return!0x1;let _0x525134=re({'blockId':_0x415cda['blockId'],'documentData':_0x5c7a7c[_0x432ce4(0xd2)],'metadata':_0x5c7a7c[_0x432ce4(0x19f)][_0x432ce4(0xdb)](_0x5c7a7c[_0x432ce4(0x13a)])});if(!_0x525134)return!0x1;let _0x528cc4=Y(_0x5c7a7c[_0x432ce4(0x14e)],_0x5c7a7c['selectionManager'],_0x5c7a7c[_0x432ce4(0x13a)],_0x5c7a7c[_0x432ce4(0xd2)],_0x525134[_0x432ce4(0x19c)],H['id'],_0x525134[_0x432ce4(0x120)]);return _0x528cc4&&_0x525134['nextMetadata']&&_0x5c7a7c['model'][_0x432ce4(0xe4)](_0x5c7a7c[_0x432ce4(0x13a)],_0x525134[_0x432ce4(0x1a8)]),_0x528cc4;}},U={'id':_0x42beb5(0x173),'type':e['CommandType'][_0x42beb5(0x18d)],'handler':(_0x42e561,_0x4d16cd)=>{const _0x44a613=_0x42beb5;var _0x4ec7ad,_0x5840c2;let _0x4a4eb0=W(_0x42e561,_0x4d16cd==null?void 0x0:_0x4d16cd['unitId']);if(!_0x4a4eb0)return!0x1;let _0x129592=(_0x4ec7ad=_0x4d16cd==null?void 0x0:_0x4d16cd[_0x44a613(0x120)])==null?(_0x5840c2=G(_0x42e561))==null?void 0x0:_0x5840c2['startOffset']:_0x4ec7ad;if(_0x129592==null)return!0x1;let _0x1f6756=x({'cursorOffset':_0x129592,'documentData':_0x4a4eb0[_0x44a613(0xd2)],'paragraphStartIndex':_0x4d16cd==null?void 0x0:_0x4d16cd[_0x44a613(0x115)]});return _0x1f6756?Y(_0x4a4eb0['commandService'],_0x4a4eb0[_0x44a613(0xdd)],_0x4a4eb0[_0x44a613(0x13a)],_0x4a4eb0[_0x44a613(0xd2)],_0x1f6756['nextDocumentData'],U['id'],_0x1f6756[_0x44a613(0x120)]):!0x1;}};function W(_0x1ab94f,_0x8b3bc5){const _0x1d2cb3=_0x42beb5;let _0x29a40d=_0x1ab94f[_0x1d2cb3(0xcd)](e['IUniverInstanceService']),_0x3a8ccf=_0x8b3bc5?_0x29a40d[_0x1d2cb3(0x161)](_0x8b3bc5,e['UniverInstanceType'][_0x1d2cb3(0x123)]):_0x29a40d[_0x1d2cb3(0xfa)](e[_0x1d2cb3(0x111)]['UNIVER_DOC']);return _0x3a8ccf?{'commandService':_0x1ab94f[_0x1d2cb3(0xcd)](e[_0x1d2cb3(0x13b)]),'model':_0x1ab94f['get'](p),'previousDocumentData':_0x3a8ccf[_0x1d2cb3(0xee)](),'selectionManager':_0x1ab94f['get'](n[_0x1d2cb3(0xdc)]),'unitId':_0x3a8ccf[_0x1d2cb3(0xf2)]()}:null;}function G(_0x2d87ab){const _0x6928e5=_0x42beb5;var _0x15eda2;return(_0x15eda2=_0x2d87ab[_0x6928e5(0xcd)](n['DocSelectionManagerService'])[_0x6928e5(0x12a)]())==null?void 0x0:_0x15eda2[0x0];}function De(_0x258dd3,_0x367311){const _0x10900d=_0x42beb5;var _0x579935,_0x41f09a;let _0xdf0472=(_0x579935=_0x258dd3==null?void 0x0:_0x258dd3[_0x10900d(0x199)])==null?_0x367311==null?void 0x0:_0x367311['startOffset']:_0x579935,_0x41ea84=(_0x41f09a=_0x258dd3==null?void 0x0:_0x258dd3['endOffset'])==null?_0x367311==null?void 0x0:_0x367311[_0x10900d(0x18a)]:_0x41f09a;if(_0xdf0472!=null&&_0x41ea84!=null)return{'endOffset':Math['max'](_0xdf0472,_0x41ea84),'startOffset':Math['min'](_0xdf0472,_0x41ea84)};}function Oe(_0x1da137,_0x5e0c6a){const _0x3644f5=_0x42beb5;var _0x1235eb;if(!_0x5e0c6a)return;let _0x2cdee4=ke(_0x5e0c6a);return(_0x1235eb=_0x1da137[_0x3644f5(0x103)])==null||(_0x1235eb=_0x1235eb[_0x3644f5(0x122)])==null?void 0x0:_0x1235eb[_0x3644f5(0x158)](_0x39f4ef=>{const _0x5ed230=_0x3644f5;let _0xcd3d17=(0x0,e[_0x5ed230(0xd6)])(_0x39f4ef);return _0x5e0c6a[_0x5ed230(0x199)]===_0x5e0c6a['endOffset']?(0x0,e[_0x5ed230(0x11d)])(_0xcd3d17,_0x2cdee4):(0x0,e[_0x5ed230(0x146)])(_0xcd3d17,_0x2cdee4);});}function ke(_0x554564){const _0x3624b4=_0x42beb5;return _0x554564[_0x3624b4(0x199)]===_0x554564[_0x3624b4(0x18a)]?_0x554564[_0x3624b4(0x199)]:_0x554564['startOffset']+0x1;}function Ae(_0x232c0f){const _0x31a99d=_0x42beb5;var _0x5f4d53,_0x118bc6,_0x1f200f;let _0xe18839=G(_0x232c0f);if(!_0xe18839)return null;let _0x43eb14=_0x232c0f['get'](e['IUniverInstanceService'])[_0x31a99d(0xfa)](e[_0x31a99d(0x111)][_0x31a99d(0x123)]),_0x17e35c=_0x43eb14==null?void 0x0:_0x43eb14[_0x31a99d(0xfe)]();return _0x17e35c?(_0x5f4d53=e[_0x31a99d(0x18c)][_0x31a99d(0x192)][_0x31a99d(0xe7)](_0xe18839,(_0x118bc6=_0x17e35c[_0x31a99d(0x10f)])==null?[]:_0x118bc6,(_0x1f200f=_0x17e35c[_0x31a99d(0xd9)])==null?'':_0x1f200f)[0x0])==null?null:_0x5f4d53:null;}function je(_0x562c44,_0x218633){const _0x21dfe6=_0x42beb5;let _0x5583e6=_0x562c44[_0x21dfe6(0x103)],_0x3e6823=_0x218633[_0x21dfe6(0x103)],_0x1788e7=(0x0,e[_0x21dfe6(0x126)])(_0x5583e6,_0x3e6823);return[_0x1788e7&&_0x3e6823?Me(_0x3e6823,_0x1788e7):null,_0x1788e7?null:Ne(_0x5583e6,_0x3e6823)][_0x21dfe6(0x121)](Boolean)[_0x21dfe6(0x147)]((_0x28c830,_0x4c6e87)=>e[_0x21dfe6(0x13d)][_0x21dfe6(0x195)](_0x28c830,_0x4c6e87),null);}function Me(_0x56ca6f,_0x517896){const _0x4c10de=_0x42beb5;let _0x317abc=new e[(_0x4c10de(0xf7))]();return _0x317abc[_0x4c10de(0x11c)](_0x517896[_0x4c10de(0xe2)]),_0x517896[_0x4c10de(0x10d)]>0x0&&_0x317abc[_0x4c10de(0x138)](_0x517896[_0x4c10de(0x10d)],(0x0,e[_0x4c10de(0x182)])(_0x56ca6f,_0x517896[_0x4c10de(0xe2)],_0x517896[_0x4c10de(0xe2)]+_0x517896[_0x4c10de(0x10d)],!0x1)),_0x517896[_0x4c10de(0x179)]>0x0&&_0x317abc['delete'](_0x517896['deleteLength']),e[_0x4c10de(0x13d)]['getInstance']()[_0x4c10de(0x17c)](_0x317abc[_0x4c10de(0xdb)](),['body']);}function Ne(_0x28c222,_0x113640){const _0x2c12e4=_0x42beb5;let _0x28f669=[],_0x56c20b=_0x28c222?K(_0x28c222):void 0x0,_0x5894f9=_0x113640?K(_0x113640):void 0x0;for(let _0x318705 of Pe)q(e[_0x2c12e4(0x13d)][_0x2c12e4(0xd7)](),[_0x2c12e4(0x103),_0x318705],_0x56c20b==null?void 0x0:_0x56c20b[_0x318705],_0x5894f9==null?void 0x0:_0x5894f9[_0x318705],_0x28f669);return _0x28f669[_0x2c12e4(0x147)]((_0xa09a10,_0x73212)=>e[_0x2c12e4(0x13d)][_0x2c12e4(0x195)](_0xa09a10,_0x73212),null);}const Pe=[_0x42beb5(0x10f),'sectionBreaks',_0x42beb5(0x145),'columnGroups','blockRanges','customBlocks',_0x42beb5(0x153),_0x42beb5(0x156),_0x42beb5(0x18e)];function K(_0x1d4521){return _0x1d4521;}function q(_0x47b7e6,_0x634966,_0x1f5a92,_0x5128c3,_0x5b49ce){const _0x4fdd49=_0x42beb5;if(!J(_0x1f5a92,_0x5128c3)){if(_0x1f5a92==null){_0x5b49ce[_0x4fdd49(0x13e)](_0x47b7e6['insertOp'](_0x634966,_0x5128c3));return;}if(_0x5128c3==null){_0x5b49ce['push'](_0x47b7e6[_0x4fdd49(0xe1)](_0x634966,_0x1f5a92));return;}if(Array['isArray'](_0x1f5a92)&&Array[_0x4fdd49(0x131)](_0x5128c3)){Fe(_0x47b7e6,_0x634966,_0x1f5a92,_0x5128c3,_0x5b49ce);return;}if(Ie(_0x1f5a92)&&Ie(_0x5128c3)){new Set([...Object[_0x4fdd49(0x1a1)](_0x1f5a92),...Object[_0x4fdd49(0x1a1)](_0x5128c3)])[_0x4fdd49(0x149)](_0x28b205=>{q(_0x47b7e6,[..._0x634966,_0x28b205],_0x1f5a92[_0x28b205],_0x5128c3[_0x28b205],_0x5b49ce);});return;}_0x5b49ce[_0x4fdd49(0x13e)](_0x47b7e6[_0x4fdd49(0x10c)](_0x634966,_0x1f5a92,_0x5128c3));}}function Fe(_0x28d4b5,_0x2c7075,_0x271e00,_0x347a7b,_0x438573){const _0x5dab9f=_0x42beb5;if(_0x271e00[_0x5dab9f(0x14d)]===_0x347a7b[_0x5dab9f(0x14d)]){_0x271e00[_0x5dab9f(0x149)]((_0x318cff,_0x10be63)=>q(_0x28d4b5,[..._0x2c7075,_0x10be63],_0x318cff,_0x347a7b[_0x10be63],_0x438573));return;}let _0x21334b=0x0;for(;_0x21334b<_0x271e00[_0x5dab9f(0x14d)]&&_0x21334b<_0x347a7b['length']&&J(_0x271e00[_0x21334b],_0x347a7b[_0x21334b]);)_0x21334b++;let _0x1019d1=_0x271e00['length']-0x1,_0x1cda04=_0x347a7b[_0x5dab9f(0x14d)]-0x1;for(;_0x1019d1>=_0x21334b&&_0x1cda04>=_0x21334b&&J(_0x271e00[_0x1019d1],_0x347a7b[_0x1cda04]);)_0x1019d1--,_0x1cda04--;for(let _0xf1d0f3=_0x1019d1;_0xf1d0f3>=_0x21334b;_0xf1d0f3--)_0x438573[_0x5dab9f(0x13e)](_0x28d4b5[_0x5dab9f(0xe1)]([..._0x2c7075,_0xf1d0f3],_0x271e00[_0xf1d0f3]));for(let _0x28738b=_0x21334b;_0x28738b<=_0x1cda04;_0x28738b++)_0x438573[_0x5dab9f(0x13e)](_0x28d4b5[_0x5dab9f(0x181)]([..._0x2c7075,_0x28738b],_0x347a7b[_0x28738b]));}function Ie(_0x442f3e){const _0x582450=_0x42beb5;return typeof _0x442f3e==_0x582450(0x19e)&&!!_0x442f3e&&!Array[_0x582450(0x131)](_0x442f3e);}function J(_0x81d67f,_0x5c308a){const _0x31a200=_0x42beb5;return JSON[_0x31a200(0x16a)](_0x81d67f)===JSON[_0x31a200(0x16a)](_0x5c308a);}function Y(_0x3bea28,_0x13ec5a,_0x4f9519,_0x1d0b58,_0x15eb8c,_0x2670c9,_0x2cfa6d){const _0x5c9f73=_0x42beb5;let _0x1d259c=je(_0x1d0b58,_0x15eb8c);return _0x1d259c?!!_0x3bea28[_0x5c9f73(0x104)](n[_0x5c9f73(0xeb)]['id'],{'unitId':_0x4f9519,'actions':_0x1d259c,'textRanges':[{'startOffset':_0x2cfa6d,'endOffset':_0x2cfa6d,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x2670c9}):(_0x13ec5a[_0x5c9f73(0x10e)]([{'startOffset':_0x2cfa6d,'endOffset':_0x2cfa6d}],{'unitId':_0x4f9519,'subUnitId':_0x4f9519},!0x1),!0x0);}const X=_0x42beb5(0xd4);var Le='@univerjs-pro/docs-code',Re=_0x42beb5(0x189);const ze={};function Z(_0x4c0846,_0x2722a1){return function(_0x14e775,_0x47ffa4){_0x2722a1(_0x14e775,_0x47ffa4,_0x4c0846);};}function Be(_0x49ad61,_0x145b20,_0x56bd1f,_0x5ed417){const _0x361df2=_0x42beb5;var _0x7b0b20=arguments[_0x361df2(0x14d)],_0x200698=_0x7b0b20<0x3?_0x145b20:_0x5ed417===null?_0x5ed417=Object[_0x361df2(0x150)](_0x145b20,_0x56bd1f):_0x5ed417,_0x340cae;if(typeof Reflect==_0x361df2(0x19e)&&typeof Reflect[_0x361df2(0x133)]==_0x361df2(0xfd))_0x200698=Reflect[_0x361df2(0x133)](_0x49ad61,_0x145b20,_0x56bd1f,_0x5ed417);else{for(var _0x38e10e=_0x49ad61[_0x361df2(0x14d)]-0x1;_0x38e10e>=0x0;_0x38e10e--)(_0x340cae=_0x49ad61[_0x38e10e])&&(_0x200698=(_0x7b0b20<0x3?_0x340cae(_0x200698):_0x7b0b20>0x3?_0x340cae(_0x145b20,_0x56bd1f,_0x200698):_0x340cae(_0x145b20,_0x56bd1f))||_0x200698);}return _0x7b0b20>0x3&&_0x200698&&Object['defineProperty'](_0x145b20,_0x56bd1f,_0x200698),_0x200698;}let Q=class extends e['Disposable']{constructor(_0x3db1b,_0xb59d72){const _0x2c781b=_0x42beb5;super(),this[_0x2c781b(0x1a5)]=_0x3db1b,this[_0x2c781b(0x1a2)]=_0xb59d72,this[_0x2c781b(0x132)]();}[_0x42beb5(0x132)](){const _0x8c929a=_0x42beb5;this[_0x8c929a(0x15f)](this[_0x8c929a(0x1a5)][_0x8c929a(0x19d)]({'pluginName':X,'businesses':[e[_0x8c929a(0x111)][_0x8c929a(0x123)]],'toJson':_0x222ee3=>JSON[_0x8c929a(0x16a)](this[_0x8c929a(0x1a2)][_0x8c929a(0xdb)](_0x222ee3)),'parseJson':_0x143c40=>o(JSON[_0x8c929a(0xf8)](_0x143c40)),'onLoad':(_0x21602c,_0x4cea85)=>this[_0x8c929a(0x1a2)][_0x8c929a(0xe4)](_0x21602c,_0x4cea85),'onUnLoad':_0x5320d7=>this[_0x8c929a(0x1a2)][_0x8c929a(0x14b)](_0x5320d7)}));}};Q=Be([Z(0x0,e[_0x42beb5(0x11b)]),Z(0x1,(0x0,e[_0x42beb5(0xcf)])(p))],Q);let $=class extends e[_0x42beb5(0xe8)]{constructor(_0x382368=ze,_0x2457e4,_0x471115,_0x2ce8a0){const _0x187658=_0x42beb5;super(),this[_0x187658(0x151)]=_0x382368,this[_0x187658(0xfb)]=_0x2457e4,this['_commandService']=_0x471115,this[_0x187658(0xd8)]=_0x2ce8a0;let {..._0x15c3a0}=(0x0,e['merge'])({},ze,this[_0x187658(0x151)]);this['_configService'][_0x187658(0x105)](_0x187658(0x100),_0x15c3a0);}[_0x42beb5(0x190)](){const _0x1157c9=_0x42beb5;this[_0x1157c9(0xfb)][_0x1157c9(0x107)]([p]),this[_0x1157c9(0xfb)]['add']([Q]),this['_injector'][_0x1157c9(0xcd)](p),this[_0x1157c9(0xfb)][_0x1157c9(0xcd)](Q),[B,z,Te,V,H,Ee,U,we,m,h]['forEach'](_0x179ecc=>this[_0x1157c9(0x15f)](this[_0x1157c9(0xce)]['registerCommand'](_0x179ecc)));}};f($,_0x42beb5(0x144),X),f($,'packageName',Le),f($,_0x42beb5(0xe6),Re),f($,_0x42beb5(0x125),e[_0x42beb5(0x111)][_0x42beb5(0x123)]),$=Be([(0x0,e['DependentOn'])(r[_0x42beb5(0x130)],n[_0x42beb5(0x108)]),Z(0x1,(0x0,e[_0x42beb5(0xcf)])(e[_0x42beb5(0xda)])),Z(0x2,e['ICommandService']),Z(0x3,e[_0x42beb5(0x154)])],$),exports['DOCS_CODE_PLUGIN']=X,exports['DocsCodeCancelEmptyParagraphCommand']=U,exports[_0x42beb5(0xe3)]=we,exports[_0x42beb5(0x113)]=z,exports[_0x42beb5(0x16c)]=B,exports[_0x42beb5(0x163)]=p,exports[_0x42beb5(0x12e)]=H,exports[_0x42beb5(0x174)]=V,exports[_0x42beb5(0x194)]=Te,exports[_0x42beb5(0x169)]=h,exports[_0x42beb5(0x101)]=m,Object[_0x42beb5(0x16b)](exports,_0x42beb5(0x135),{'enumerable':!0x0,'get':function(){return $;}}),exports['buildCancelEmptyCodeParagraphActions']=x,exports[_0x42beb5(0x184)]=ae,exports[_0x42beb5(0xf3)]=a,exports[_0x42beb5(0x166)]=o;
1
+ const _0x203137=_0xf016;(function(_0x409b0f,_0x44a782){const _0x149a13=_0xf016,_0xf7bdb=_0x409b0f();while(!![]){try{const _0x5cd95b=-parseInt(_0x149a13(0x170))/0x1+parseInt(_0x149a13(0x122))/0x2*(-parseInt(_0x149a13(0x115))/0x3)+parseInt(_0x149a13(0x119))/0x4+-parseInt(_0x149a13(0x193))/0x5+parseInt(_0x149a13(0x14d))/0x6*(parseInt(_0x149a13(0x163))/0x7)+parseInt(_0x149a13(0x161))/0x8+parseInt(_0x149a13(0x141))/0x9;if(_0x5cd95b===_0x44a782)break;else _0xf7bdb['push'](_0xf7bdb['shift']());}catch(_0x3afd6d){_0xf7bdb['push'](_0xf7bdb['shift']());}}}(_0x4fd4,0x7a14e),Object['defineProperty'](exports,Symbol[_0x203137(0x105)],{'value':_0x203137(0x106)}));let e=require('@univerjs/core'),t=require('rxjs'),n=require('@univerjs/docs'),r=require('@univerjs-pro/license');const i={'language':_0x203137(0x10a),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function a(_0x200486){return{...i,..._0x200486};}function _0x4fd4(){const _0x1b7674=['packageName','UniverLicensePlugin','sort','paragraphId','registerPluginResource','startOffset','direction','docs-code.mutation.remove-config','syncExecuteCommand','DocsCodeInsertCommand','every','BuildTextUtils','blockId','registerCommand','BLOCK_START','deleteLength','CODE','DocsCodeInsertBelowCommand','insert-new','max','SetDocsCodeConfigMutation','tables','_change$','merge','_commandService','dispose','_config','startIndex','nextMetadata','buildCancelEmptyCodeParagraphActions','CommandType','JSONX','docs-code.command.update','1022140znEcXT','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','docs-code.command.insert','filter','SECTION_BREAK','_resourceManagerService','paragraphStartIndex','blockType','1.0.0-insiders.20260803-82dc67d','forEach','set','IUniverInstanceService','map','push','keys','_injector','config','getContentInsertRange','commandService','shiftInclusiveRangeOnInsert','DataStreamTreeTokenType','indentStart','range','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','removeCode','keepLines','insertOp','_initResource','startTokenOffset','insert','DOC_CODE_PLUGIN','previousDocumentData','TRUE','nextDocumentData','indexOf','MUTATION','_docsCodeModel','getBodySliceForTextXAction','start','ICommandService','symbol','function','cursorOffset','UniverDocsCodePlugin','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','docs-code.command.cancel-empty-paragraph','spaceAbove','body','getCurrentUnitOfType','BLOCK_END','indentEnd','spaceBelow','isArray','DocsCodeUnwrapCommand','stringify','toStringTag','Module','Disposable','retain','PARAGRAPH','javascript','sectionBreaks','shiftExclusiveRangeOnInsert','widowControl','getOwnPropertyDescriptor','decorate','version','IResourceManagerService','object','generateRandomId','textStyle','9255RwMieQ','isHeaderFooterSelection','textRuns','TextX','2780908qfzUba','_configService','next','call','DocumentBlockRangeType','docs-code.command.remove','getInstance','blockRanges','removeUnit','566fDhART','UNIVER_DOC','paragraphStyle','find','some','paragraph','pluginName','slice','defineProperty','editOp','serialize','model','BooleanNumber','selectionManager','_setResource','insertLength','removeOp','docs-code.command.consume-boundary-delete','documentData','@univerjs-pro/docs-code','type','_resources','unitId','shiftExclusiveRangeOnDelete','getBlockRangeInterval','endIndex','entries','isCodeBoundaryDelete','min','replaceOp','TABLE_CELL_END','9166743RWAolV','customDecorations','bullet','COMMAND','endsWith','intersectsOperationalIntervals','DocsCodeRemoveCommand','compose','DocsCodeCancelEmptyParagraphCommand','UniverInstanceType','insertionMode','fromEntries','468Ryqlze','docs-code.config','createParagraphId','getParagraphContentStartOffset','deserialize','columnGroups','paragraphs','codes','getParagraphContentStartOffsets','metadata','DocSelectionManagerService','delete','setCodeConfig','endTokenOffset','Plugin','iterator','add','reduce','onStarting','dataStream','2036896wUqrbD','disposeWithMe','9933WsooBK','getParagraphFollowingBlockOffset','asObservable','string','containsInteriorInsertionOffset','get','length','customRanges','constructor','customBlocks','endOffset','Document\x20body\x20is\x20required','normalizeDocsCodeMetadataResource','501519qsqQRd','RichTextEditingMutation'];_0x4fd4=function(){return _0x1b7674;};return _0x4fd4();}function o(_0x4e16ba){const _0x3aa00f=_0x203137;var _0x48f132;let _0x594d71=(_0x48f132=_0x4e16ba==null?void 0x0:_0x4e16ba[_0x3aa00f(0x154)])==null?{}:_0x48f132;return{'codes':Object[_0x3aa00f(0x14c)](Object['entries'](_0x594d71)['map'](([_0x51b2db,_0x2d4725])=>[_0x51b2db,a(_0x2d4725)]))};}function s(_0x296132,_0x12cbff,_0x238550){const _0x39cbf5=_0x203137;let _0x4a85ab=o(_0x296132);return _0x4a85ab[_0x39cbf5(0x154)][_0x12cbff]=a({..._0x4a85ab['codes'][_0x12cbff],..._0x238550}),_0x4a85ab;}function c(_0x1f3830,_0x4381ec){const _0x524ed7=_0x203137;let _0x1e6f9c=o(_0x1f3830);return delete _0x1e6f9c[_0x524ed7(0x154)][_0x4381ec],_0x1e6f9c;}function l(_0x30f6b2){'@babel/helpers - typeof';const _0x38d0e0=_0x203137;return l=typeof Symbol=='function'&&typeof Symbol[_0x38d0e0(0x15c)]=='symbol'?function(_0x52db5f){return typeof _0x52db5f;}:function(_0x1174b9){const _0x108f61=_0x38d0e0;return _0x1174b9&&typeof Symbol==_0x108f61(0xf7)&&_0x1174b9[_0x108f61(0x16b)]===Symbol&&_0x1174b9!==Symbol['prototype']?_0x108f61(0xf6):typeof _0x1174b9;},l(_0x30f6b2);}function u(_0x208e74,_0x61c969){const _0x59e394=_0x203137;if(l(_0x208e74)!=_0x59e394(0x112)||!_0x208e74)return _0x208e74;var _0x15938d=_0x208e74[Symbol['toPrimitive']];if(_0x15938d!==void 0x0){var _0x332fcd=_0x15938d[_0x59e394(0x11c)](_0x208e74,_0x61c969||'default');if(l(_0x332fcd)!=_0x59e394(0x112))return _0x332fcd;throw TypeError(_0x59e394(0xe5));}return(_0x61c969===_0x59e394(0x166)?String:Number)(_0x208e74);}function d(_0x1e6f3a){const _0x4346ae=_0x203137;var _0xb2c601=u(_0x1e6f3a,_0x4346ae(0x166));return l(_0xb2c601)=='symbol'?_0xb2c601:_0xb2c601+'';}function f(_0x10cece,_0x1d0a3d,_0x475682){return(_0x1d0a3d=d(_0x1d0a3d))in _0x10cece?Object['defineProperty'](_0x10cece,_0x1d0a3d,{'value':_0x475682,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x10cece[_0x1d0a3d]=_0x475682,_0x10cece;}var p=class extends e[_0x203137(0x107)]{constructor(..._0x3af548){const _0x5a3ee6=_0x203137;super(..._0x3af548),f(this,_0x5a3ee6(0x137),new Map()),f(this,_0x5a3ee6(0x188),new t['Subject']()),f(this,'change$',this['_change$'][_0x5a3ee6(0x165)]());}['getCodeConfig'](_0x385b83,_0x2f00b1){const _0x15d71d=_0x203137;return o(this[_0x15d71d(0x137)][_0x15d71d(0x168)](_0x385b83))[_0x15d71d(0x154)][_0x2f00b1];}[_0x203137(0x159)](_0x16c163,_0x576189,_0x323366){const _0xb155ea=_0x203137;this[_0xb155ea(0x130)](_0x16c163,_0x576189,s(this[_0xb155ea(0x137)][_0xb155ea(0x168)](_0x16c163),_0x576189,_0x323366));}[_0x203137(0xe6)](_0x2d91a4,_0x129ad3){const _0x4a5545=_0x203137;this[_0x4a5545(0x130)](_0x2d91a4,_0x129ad3,c(this[_0x4a5545(0x137)][_0x4a5545(0x168)](_0x2d91a4),_0x129ad3));}[_0x203137(0x12c)](_0x594108){const _0x2b833a=_0x203137;return o(this[_0x2b833a(0x137)][_0x2b833a(0x168)](_0x594108));}['deserialize'](_0x4355a3,_0x195303){const _0x245338=_0x203137;this[_0x245338(0x137)][_0x245338(0x19d)](_0x4355a3,o(_0x195303)),this[_0x245338(0x188)][_0x245338(0x11b)]({'unitId':_0x4355a3});}[_0x203137(0x121)](_0x4a6cdd){const _0x842045=_0x203137;this[_0x842045(0x137)][_0x842045(0x158)](_0x4a6cdd),this[_0x842045(0x188)]['next']({'unitId':_0x4a6cdd});}[_0x203137(0x18b)](){const _0x3b0c1d=_0x203137;super[_0x3b0c1d(0x18b)](),this['_resources']['clear'](),this['_change$']['complete']();}[_0x203137(0x130)](_0xfe78d6,_0x51040c,_0x564b39){const _0x255e2f=_0x203137;this[_0x255e2f(0x137)][_0x255e2f(0x19d)](_0xfe78d6,_0x564b39),this[_0x255e2f(0x188)]['next']({'unitId':_0xfe78d6,'blockId':_0x51040c});}};const m={'id':'docs-code.mutation.set-config','type':e[_0x203137(0x190)][_0x203137(0xf1)],'handler':(_0x46aeec,_0x1acacc)=>!(_0x1acacc!=null&&_0x1acacc[_0x203137(0x138)])||!_0x1acacc[_0x203137(0x17e)]?!0x1:(_0x46aeec[_0x203137(0x168)](p)[_0x203137(0x159)](_0x1acacc[_0x203137(0x138)],_0x1acacc[_0x203137(0x17e)],_0x1acacc['config']),!0x0)},h={'id':_0x203137(0x179),'type':e[_0x203137(0x190)]['MUTATION'],'handler':(_0x7ac54e,_0x4cc108)=>!(_0x4cc108!=null&&_0x4cc108[_0x203137(0x138)])||!_0x4cc108[_0x203137(0x17e)]?!0x1:(_0x7ac54e[_0x203137(0x168)](p)[_0x203137(0xe6)](_0x4cc108[_0x203137(0x138)],_0x4cc108[_0x203137(0x17e)]),!0x0)},g='monospace';var _=class extends Error{constructor(_0x4cb0e5=_0x203137(0xfa)){super(_0x4cb0e5);}};function v(_0x2635fc){const _0x500210=_0x203137;var _0x37ba0d,_0x2f5b2c,_0xac9e2d;let _0x2e1967=T(_0x2635fc[_0x500210(0x134)]),_0x806ad8=D(_0x2e1967),_0x17a679=te(_0x2635fc[_0x500210(0x177)],_0x2635fc[_0x500210(0x16d)]),_0x211965=_0x17a679?(_0x37ba0d=_0x806ad8[_0x500210(0x120)])==null?void 0x0:_0x37ba0d['find'](_0x44d34d=>{const _0x3d0542=_0x500210;let _0x4ba3e2=(0x0,e['getBlockRangeInterval'])(_0x44d34d);return _0x4ba3e2['startOffset']===_0x17a679['startOffset']&&_0x4ba3e2[_0x3d0542(0x16d)]===_0x17a679['endOffset'];}):void 0x0,{startOffset:_0x5e2a98,endOffset:_0x5a883f}=_0x211965?_0x17a679:de(_0x806ad8,_0x2635fc[_0x500210(0x177)],_0x2635fc[_0x500210(0x16d)],_0x2635fc['insertionMode']);if(!_0x211965&&ne(_0x806ad8,_0x5e2a98,_0x5a883f))throw new _(_0x500210(0x194));let _0x4b0ee5=me(_0x806ad8,_0x5e2a98,_0x5a883f),_0x2fba48=(_0x2f5b2c=_0x211965==null?void 0x0:_0x211965[_0x500210(0x17e)])==null?_0x2635fc[_0x500210(0x17e)]:_0x2f5b2c,_0x45da54=s(_0x2635fc[_0x500210(0x156)],_0x2fba48,{...i,..._0x2635fc[_0x500210(0x1a3)]});if(_0x211965)return _0x211965[_0x500210(0x19a)]=e['DocumentBlockRangeType']['CODE'],ee(_0x806ad8,_0x5e2a98,_0x5a883f),w(_0x806ad8,_0x5e2a98,_0x5a883f,_0x4b0ee5),j(_0x806ad8,_0x211965),{'nextDocumentData':_0x2e1967,'nextMetadata':_0x45da54,'cursorOffset':_0x5e2a98+0x1};if(_0x5e2a98===_0x5a883f){var _0x24ec0e,_0x3954eb;let _0x407811=''+e['DataStreamTreeTokenType']['BLOCK_START']+e[_0x500210(0x1a7)][_0x500210(0x109)]+e[_0x500210(0x1a7)][_0x500210(0xff)];M(_0x806ad8,_0x5e2a98,_0x407811,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e[_0x500210(0x14f)])(new Set((_0x24ec0e=_0x806ad8[_0x500210(0x153)])==null?void 0x0:_0x24ec0e[_0x500210(0x19f)](_0x506772=>_0x506772['paragraphId']))),'paragraphStyle':C(!0x0,!0x0,_0x4b0ee5)}],'blockRanges':[{'blockId':_0x2fba48,'blockType':e[_0x500210(0x11d)][_0x500210(0x182)],'startIndex':0x0,'endIndex':_0x407811[_0x500210(0x169)]-0x1}]});let _0x1cb9ce=(_0x3954eb=_0x806ad8[_0x500210(0x120)])==null?void 0x0:_0x3954eb[_0x500210(0x125)](_0xd55cba=>_0xd55cba[_0x500210(0x17e)]===_0x2fba48);return _0x1cb9ce&&j(_0x806ad8,_0x1cb9ce),{'nextDocumentData':_0x2e1967,'nextMetadata':_0x45da54,'cursorOffset':_0x5e2a98+0x1};}M(_0x806ad8,_0x5a883f,e[_0x500210(0x1a7)]['BLOCK_END']),M(_0x806ad8,_0x5e2a98,e[_0x500210(0x1a7)][_0x500210(0x180)]),w(_0x806ad8,_0x5e2a98,_0x5a883f+0x1,_0x4b0ee5);let _0x52a2cc={'blockId':_0x2fba48,'blockType':e[_0x500210(0x11d)][_0x500210(0x182)],'startIndex':_0x5e2a98,'endIndex':_0x5a883f+0x1};return _0x806ad8[_0x500210(0x120)]=[...(_0xac9e2d=_0x806ad8[_0x500210(0x120)])==null?[]:_0xac9e2d,_0x52a2cc][_0x500210(0x174)]((_0x34ca61,_0x1edea7)=>_0x34ca61[_0x500210(0x18d)]-_0x1edea7['startIndex']),j(_0x806ad8,_0x52a2cc),{'nextDocumentData':_0x2e1967,'nextMetadata':_0x45da54,'cursorOffset':_0x5e2a98+0x1};}function ee(_0x472d37,_0x3864d7,_0x519f11){const _0x31c808=_0x203137;var _0x312cb4;((_0x312cb4=_0x472d37[_0x31c808(0x153)])==null?[]:_0x312cb4)[_0x31c808(0x196)](_0x3b7c45=>_0x3b7c45[_0x31c808(0x18d)]>_0x3864d7&&_0x3b7c45[_0x31c808(0x18d)]<_0x519f11)['forEach'](_0x3ef2cc=>{const _0x4aba2b=_0x31c808;var _0x496284;let _0xddefe={...(_0x496284=_0x3ef2cc[_0x4aba2b(0x124)])==null?{}:_0x496284};delete _0xddefe[_0x4aba2b(0xfc)],delete _0xddefe[_0x4aba2b(0x101)],_0x3ef2cc['paragraphStyle']=_0xddefe;});}function te(_0x59be4f,_0xa7c998){const _0x38a9a0=_0x203137;return _0x59be4f==null||_0xa7c998==null||_0x59be4f===_0xa7c998?null:{'startOffset':Math[_0x38a9a0(0x13e)](_0x59be4f,_0xa7c998),'endOffset':Math['max'](_0x59be4f,_0xa7c998)};}function ne(_0x1be8a8,_0x383669,_0x5721c0){const _0x27cee6=_0x203137;var _0x4dab2c;return((_0x4dab2c=_0x1be8a8[_0x27cee6(0x120)])==null?[]:_0x4dab2c)[_0x27cee6(0x126)](_0x565ecf=>{const _0x3241c0=_0x27cee6;let _0x2b93fa=(0x0,e['getBlockRangeInterval'])(_0x565ecf);return _0x383669===_0x5721c0?(0x0,e[_0x3241c0(0x167)])(_0x2b93fa,_0x383669):(0x0,e[_0x3241c0(0x146)])(_0x2b93fa,{'startOffset':_0x383669,'endOffset':_0x5721c0});});}function y(_0x137393){const _0x52f53b=_0x203137;return{'nextDocumentData':T(_0x137393[_0x52f53b(0x134)]),'nextMetadata':s(_0x137393['metadata'],_0x137393[_0x52f53b(0x17e)],_0x137393[_0x52f53b(0x1a3)]),'cursorOffset':0x0};}function b(_0x5a2363){const _0x52fc33=_0x203137;let _0x57effb=T(_0x5a2363[_0x52fc33(0x134)]),_0x1650e1=D(_0x57effb),_0x3b2b75=S(_0x1650e1,_0x5a2363[_0x52fc33(0x17e)]);if(!_0x3b2b75)return null;let _0xa107d5=le(_0x1650e1,_0x3b2b75);return{'nextDocumentData':_0x57effb,'nextMetadata':c(_0x5a2363[_0x52fc33(0x156)],_0x5a2363[_0x52fc33(0x17e)]),'cursorOffset':_0xa107d5};}function re(_0x1c20f4){const _0xfc4ff1=_0x203137;var _0x3ab0c4;let _0x56c56f=T(_0x1c20f4[_0xfc4ff1(0x134)]),_0x286106=D(_0x56c56f),_0x505c53=S(_0x286106,_0x1c20f4['blockId']);if(!_0x505c53)return null;let _0x53ef74=(0x0,e[_0xfc4ff1(0x13a)])(_0x505c53);return N(_0x286106,_0x53ef74[_0xfc4ff1(0x177)],_0x53ef74[_0xfc4ff1(0x16d)]),_0x286106[_0xfc4ff1(0x120)]=(_0x3ab0c4=_0x286106[_0xfc4ff1(0x120)])==null?void 0x0:_0x3ab0c4[_0xfc4ff1(0x196)](_0x3d1601=>_0x3d1601[_0xfc4ff1(0x17e)]!==_0x1c20f4['blockId']),{'nextDocumentData':_0x56c56f,'nextMetadata':c(_0x1c20f4[_0xfc4ff1(0x156)],_0x1c20f4[_0xfc4ff1(0x17e)]),'cursorOffset':_0x505c53[_0xfc4ff1(0x18d)]};}function x(_0x452266){const _0x4717f3=_0x203137;let _0x2dc571=T(_0x452266['documentData']),_0x469a1a=D(_0x2dc571),_0x1e73a5=oe(_0x469a1a,_0x452266[_0x4717f3(0xf8)]);return _0x1e73a5&&ie(_0x2dc571,_0x469a1a,_0x1e73a5,_0x452266['cursorOffset'],_0x452266[_0x4717f3(0x199)])||null;}function ie(_0x780e96,_0xaade8e,_0x4653f3,_0x430f75,_0x16ec00){const _0x41370a=_0x203137;let _0x51be55=ye(_0xaade8e,_0x4653f3,_0x430f75,_0x16ec00);if(!_0x51be55)return null;let _0x5c3146=_0x51be55[_0x41370a(0x15a)]-0x1;return N(_0xaade8e,_0x51be55[_0x41370a(0x127)]['startIndex'],_0x51be55[_0x41370a(0x127)]['startIndex']+0x1),{'nextDocumentData':_0x780e96,'cursorOffset':_0x5c3146};}function S(_0x3722ee,_0x54d6d7){const _0x48c869=_0x203137;var _0x33d244;return _0x3722ee==null||(_0x33d244=_0x3722ee[_0x48c869(0x120)])==null?void 0x0:_0x33d244['find'](_0x5533c4=>_0x5533c4['blockType']===e[_0x48c869(0x11d)]['CODE']&&_0x5533c4[_0x48c869(0x17e)]===_0x54d6d7);}function ae(_0x4e00a8){const _0x5734e2=_0x203137;var _0x407f3e;let _0x59842d=_0x4e00a8['documentData'][_0x5734e2(0xfd)];if(!_0x59842d)return!0x1;let _0x85390d=_0x4e00a8['direction']==='left'?_0x4e00a8[_0x5734e2(0xf8)]-0x1:_0x4e00a8['cursorOffset'],_0xb12b0d=_0x4e00a8[_0x5734e2(0x178)]==='right'?_0x4e00a8[_0x5734e2(0xf8)]+0x1:_0x85390d;return((_0x407f3e=_0x59842d['blockRanges'])==null?[]:_0x407f3e)[_0x5734e2(0x126)](_0x2d3ab1=>_0x2d3ab1[_0x5734e2(0x19a)]===e[_0x5734e2(0x11d)][_0x5734e2(0x182)]?_0x85390d===_0x2d3ab1[_0x5734e2(0x18d)]||_0x85390d===_0x2d3ab1[_0x5734e2(0x13b)]||_0xb12b0d===_0x2d3ab1[_0x5734e2(0x18d)]||_0xb12b0d===_0x2d3ab1['endIndex']:!0x1);}function oe(_0x5496d1,_0x2083a5){const _0x3b4ddd=_0x203137;var _0x5c78a6;return(_0x5c78a6=_0x5496d1['blockRanges'])==null?void 0x0:_0x5c78a6[_0x3b4ddd(0x125)](_0x2bd437=>{const _0xe9398=_0x3b4ddd;let _0x3eed18=A(_0x2bd437);return _0x2bd437[_0xe9398(0x19a)]===e[_0xe9398(0x11d)][_0xe9398(0x182)]&&_0x2bd437[_0xe9398(0x18d)]<=_0x2083a5&&_0x2083a5<=_0x3eed18+0x2;});}function C(_0x44d66a,_0x27db19,_0x2d5b69=!0x1){const _0x3b49ad=_0x203137;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':e[_0x3b49ad(0x12e)]['TRUE'],'keepNext':_0x27db19?e[_0x3b49ad(0x12e)]['FALSE']:e[_0x3b49ad(0x12e)][_0x3b49ad(0xee)],'widowControl':e[_0x3b49ad(0x12e)][_0x3b49ad(0xee)],..._0x44d66a&&_0x2d5b69?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':g,'fs':0xc}};}function w(_0x16fe4b,_0x569144,_0x5050a0,_0x2405b5=!0x1){const _0x33122d=_0x203137;var _0x49aa49;let _0x4ae578=((_0x49aa49=_0x16fe4b[_0x33122d(0x153)])==null?[]:_0x49aa49)['filter'](_0x3a5d90=>_0x3a5d90[_0x33122d(0x18d)]>_0x569144&&_0x3a5d90[_0x33122d(0x18d)]<_0x5050a0);_0x4ae578[_0x33122d(0x19c)]((_0x140f79,_0x3fd306)=>{const _0x1cf077=_0x33122d;var _0x1efd87;_0x140f79[_0x1cf077(0x124)]={...(_0x1efd87=_0x140f79[_0x1cf077(0x124)])==null?{}:_0x1efd87,...C(_0x3fd306===0x0,_0x3fd306===_0x4ae578[_0x1cf077(0x169)]-0x1,_0x2405b5)};});}function se(_0x5db08f){const _0x17d7e6=_0x203137;var _0x297ea7,_0x7f51cd;let _0x280686={..._0x5db08f==null?{}:_0x5db08f};return delete _0x280686[_0x17d7e6(0x100)],delete _0x280686[_0x17d7e6(0xe3)],delete _0x280686[_0x17d7e6(0xfc)],delete _0x280686[_0x17d7e6(0x101)],delete _0x280686[_0x17d7e6(0xe7)],delete _0x280686['keepNext'],delete _0x280686[_0x17d7e6(0x10d)],((_0x297ea7=_0x280686[_0x17d7e6(0x114)])==null?void 0x0:_0x297ea7['ff'])===g&&((_0x7f51cd=_0x280686['textStyle'])==null?void 0x0:_0x7f51cd['fs'])===0xc&&delete _0x280686[_0x17d7e6(0x114)],_0x280686;}function ce(_0x110309,_0xf63a15){const _0x2a29d2=_0x203137;var _0xf8fbf1;let _0x1f8c1d=A(_0xf63a15);return((_0xf8fbf1=_0x110309[_0x2a29d2(0x153)])==null?[]:_0xf8fbf1)[_0x2a29d2(0x196)](_0x5ef438=>_0x5ef438[_0x2a29d2(0x18d)]>_0xf63a15[_0x2a29d2(0x18d)]&&_0x5ef438[_0x2a29d2(0x18d)]<_0x1f8c1d);}function le(_0x4e8ca6,_0x870806){const _0x550f4d=_0x203137;var _0xe24f5a;let _0xb50090=A(_0x870806);return ce(_0x4e8ca6,_0x870806)[_0x550f4d(0x19c)](_0xf1d17d=>{const _0x4d244c=_0x550f4d;_0xf1d17d[_0x4d244c(0x124)]=se(_0xf1d17d[_0x4d244c(0x124)]);}),N(_0x4e8ca6,_0xb50090,_0xb50090+0x1),N(_0x4e8ca6,_0x870806[_0x550f4d(0x18d)],_0x870806[_0x550f4d(0x18d)]+0x1),_0x4e8ca6[_0x550f4d(0x120)]=(_0xe24f5a=_0x4e8ca6[_0x550f4d(0x120)])==null?void 0x0:_0xe24f5a[_0x550f4d(0x196)](_0x1060c5=>_0x1060c5['blockId']!==_0x870806['blockId']),_0x870806['startIndex'];}function T(_0x37ac7e){const _0xed0540=_0x203137;return{..._0x37ac7e,'body':_0x37ac7e[_0xed0540(0xfd)]?ue(_0x37ac7e[_0xed0540(0xfd)]):_0x37ac7e[_0xed0540(0xfd)]};}function ue(_0x55d6a1){const _0x41798e=_0x203137;var _0x108701,_0x107f76,_0x174286,_0x20f53e,_0x35c36b,_0xb4ceb5,_0x547672,_0x4f3509,_0x55644f;return{..._0x55d6a1,'paragraphs':(_0x108701=_0x55d6a1[_0x41798e(0x153)])==null?void 0x0:_0x108701[_0x41798e(0x19f)](_0x4c679f=>({..._0x4c679f,'bullet':E(_0x4c679f[_0x41798e(0x143)]),'paragraphStyle':E(_0x4c679f[_0x41798e(0x124)])})),'sectionBreaks':(_0x107f76=_0x55d6a1[_0x41798e(0x10b)])==null?void 0x0:_0x107f76[_0x41798e(0x19f)](_0x4f707e=>({..._0x4f707e})),'textRuns':(_0x174286=_0x55d6a1[_0x41798e(0x117)])==null?void 0x0:_0x174286[_0x41798e(0x19f)](_0x228564=>({..._0x228564})),'tables':(_0x20f53e=_0x55d6a1[_0x41798e(0x187)])==null?void 0x0:_0x20f53e[_0x41798e(0x19f)](_0x21a47f=>({..._0x21a47f})),'columnGroups':(_0x35c36b=_0x55d6a1['columnGroups'])==null?void 0x0:_0x35c36b[_0x41798e(0x19f)](_0x48e400=>{const _0x156463=_0x41798e;var _0x530374;return{..._0x48e400,'columns':(_0x530374=_0x48e400['columns'])==null?void 0x0:_0x530374[_0x156463(0x19f)](_0xb0a78b=>E(_0xb0a78b))};}),'blockRanges':(_0xb4ceb5=_0x55d6a1[_0x41798e(0x120)])==null?void 0x0:_0xb4ceb5[_0x41798e(0x19f)](_0xd3e78b=>({..._0xd3e78b})),'customRanges':(_0x547672=_0x55d6a1[_0x41798e(0x16a)])==null?void 0x0:_0x547672[_0x41798e(0x19f)](_0x123c62=>({..._0x123c62})),'customDecorations':(_0x4f3509=_0x55d6a1[_0x41798e(0x142)])==null?void 0x0:_0x4f3509[_0x41798e(0x19f)](_0x5073d3=>({..._0x5073d3})),'customBlocks':(_0x55644f=_0x55d6a1[_0x41798e(0x16c)])==null?void 0x0:_0x55644f[_0x41798e(0x19f)](_0x3cbb76=>({..._0x3cbb76}))};}function E(_0x5b9cbb){const _0x3f3083=_0x203137;return Array[_0x3f3083(0x102)](_0x5b9cbb)?_0x5b9cbb['map'](_0x18df76=>E(_0x18df76)):!_0x5b9cbb||typeof _0x5b9cbb!=_0x3f3083(0x112)?_0x5b9cbb:Object[_0x3f3083(0x14c)](Object[_0x3f3083(0x13c)](_0x5b9cbb)['map'](([_0x56be8a,_0x4db697])=>[_0x56be8a,E(_0x4db697)]));}function D(_0x311dfd){const _0x53350c=_0x203137;if(!_0x311dfd[_0x53350c(0xfd)])throw Error(_0x53350c(0x16e));return _0x311dfd['body'];}function de(_0x479f4b,_0x55bbe,_0x1be2b3,_0x46f171='convert-paragraph'){const _0x2356f6=_0x203137;if(_0x55bbe==null||_0x1be2b3==null){let _0x306a29=pe(_0x479f4b);return{'startOffset':_0x306a29,'endOffset':_0x306a29};}let _0xefb859=Math['min'](_0x55bbe,_0x1be2b3),_0x26fb26=Math[_0x2356f6(0x185)](_0x55bbe,_0x1be2b3),_0xbaee61=ve(_0x479f4b,_0xefb859,_0x26fb26);return _0xefb859===_0x26fb26?_0x46f171==='insert-new'?{'startOffset':_0xefb859,'endOffset':_0x26fb26}:fe(_0x479f4b,_0xefb859,_0xbaee61):he(_0x479f4b,_0xefb859,_0x26fb26,_0xbaee61);}function fe(_0x52195a,_0x104e07,_0x33cee2){const _0x3c9739=_0x203137;let _0x11c798=ge(_0x52195a,_0x104e07);if(_0x11c798){let _0x1dbf67=O(_0x52195a,_0x11c798,_0x33cee2);if(_0x1dbf67<_0x11c798[_0x3c9739(0x18d)])return{'startOffset':_0x1dbf67,'endOffset':_0x33cee2?Math[_0x3c9739(0x13e)](_0x11c798[_0x3c9739(0x18d)]+0x1,_0x33cee2['endOffset']):_0x11c798[_0x3c9739(0x18d)]+0x1};}let _0x23a258=_0x104e07===0x0&&_0x52195a['dataStream'][0x0]===e['DataStreamTreeTokenType'][_0x3c9739(0x109)]?0x1:_0x104e07;return{'startOffset':_0x23a258,'endOffset':_0x23a258};}function pe(_0x5e1c71){const _0x4c8c88=_0x203137;return _0x5e1c71[_0x4c8c88(0x160)][_0x4c8c88(0x145)](e[_0x4c8c88(0x1a7)]['SECTION_BREAK'])?Math[_0x4c8c88(0x185)](0x0,_0x5e1c71[_0x4c8c88(0x160)][_0x4c8c88(0x169)]-0x1):_0x5e1c71['dataStream'][_0x4c8c88(0x169)];}function me(_0x4fcb83,_0x2f568f,_0x41c1b1){const _0x347cc2=_0x203137;var _0x24d300;let _0x48d7ba=Math[_0x347cc2(0x13e)](_0x2f568f,_0x41c1b1),_0x25a25f=Math[_0x347cc2(0x185)](_0x2f568f,_0x41c1b1);return!!((_0x24d300=_0x4fcb83['tables'])!=null&&_0x24d300[_0x347cc2(0x126)](_0x321053=>_0x48d7ba>_0x321053['startIndex']&&_0x48d7ba<_0x321053[_0x347cc2(0x13b)]||_0x25a25f>_0x321053['startIndex']&&_0x25a25f<_0x321053['endIndex']||_0x48d7ba<=_0x321053['startIndex']&&_0x25a25f>=_0x321053[_0x347cc2(0x13b)]));}function he(_0xc72703,_0x586d30,_0x5357e9,_0x323c29){const _0x488ac5=_0x203137;var _0x4425ee,_0x41cc20;let _0x2a2ce9=[...(_0x4425ee=_0xc72703[_0x488ac5(0x153)])==null?[]:_0x4425ee]['sort']((_0xfe670b,_0x446dbd)=>_0xfe670b['startIndex']-_0x446dbd['startIndex']),_0x5c70be=(0x0,e[_0x488ac5(0x155)])(_0xc72703),_0x487d04=_0x2a2ce9[_0x488ac5(0x125)](_0x4c4be5=>O(_0xc72703,_0x4c4be5,_0x323c29,_0x5c70be)<=_0x586d30&&_0x586d30<=_0x4c4be5[_0x488ac5(0x18d)]),_0x3d4c7b=(_0x41cc20=_0x2a2ce9[_0x488ac5(0x125)](_0x153120=>_0x153120[_0x488ac5(0x18d)]>=_0x5357e9-0x1))==null?_0x2a2ce9[_0x2a2ce9[_0x488ac5(0x169)]-0x1]:_0x41cc20;return{'startOffset':_0x487d04?O(_0xc72703,_0x487d04,_0x323c29,_0x5c70be):_0x586d30,'endOffset':_0x3d4c7b?_e(_0x3d4c7b,_0x323c29):_0x5357e9};}function ge(_0x379931,_0x1338bd){const _0x420c2c=_0x203137;var _0x572c1a;let _0x333f38=[...(_0x572c1a=_0x379931[_0x420c2c(0x153)])==null?[]:_0x572c1a]['sort']((_0x13a98f,_0x491643)=>_0x13a98f['startIndex']-_0x491643['startIndex']),_0x5d6aac=(0x0,e[_0x420c2c(0x155)])(_0x379931);return _0x333f38[_0x420c2c(0x125)](_0x38cf8a=>{const _0x20d270=_0x420c2c;var _0x15c901;return((_0x15c901=_0x5d6aac[_0x20d270(0x168)](_0x38cf8a['startIndex']))==null?0x0:_0x15c901)<=_0x1338bd&&_0x1338bd<=_0x38cf8a['startIndex'];});}function O(_0x586601,_0x42943c,_0x44ac31,_0x51e287){const _0x22990b=_0x203137;var _0x2629fe;let _0x2a36e8=(_0x2629fe=_0x51e287==null?void 0x0:_0x51e287[_0x22990b(0x168)](_0x42943c[_0x22990b(0x18d)]))==null?(0x0,e[_0x22990b(0x150)])(_0x586601,_0x42943c):_0x2629fe;return _0x44ac31?Math[_0x22990b(0x185)](_0x2a36e8,_0x44ac31['startOffset']):_0x2a36e8;}function _e(_0x330df9,_0x1dde3e){const _0x452bba=_0x203137;let _0x556c3a=_0x330df9['startIndex']+0x1;return _0x1dde3e?Math[_0x452bba(0x13e)](_0x556c3a,_0x1dde3e[_0x452bba(0x16d)]):_0x556c3a;}function ve(_0x58cd12,_0xfe6a58,_0x50e44a){const _0x5e0e0a=_0x203137;let _0x2f7e91=k(_0x58cd12,_0xfe6a58),_0x4ba93a=k(_0x58cd12,_0xfe6a58===_0x50e44a?_0x50e44a:Math['max'](_0xfe6a58,_0x50e44a-0x1));if(!(!_0x2f7e91&&!_0x4ba93a)){if(!_0x2f7e91||!_0x4ba93a||_0x2f7e91['startTokenOffset']!==_0x4ba93a[_0x5e0e0a(0xea)]||_0x2f7e91['endTokenOffset']!==_0x4ba93a[_0x5e0e0a(0x15a)])throw new _();return _0x2f7e91;}}function k(_0x59dd47,_0x1a89e0){const _0x5ab571=_0x203137;let _0x168288=_0x59dd47[_0x5ab571(0x160)],_0x455f8a=-0x1;for(let _0xb369f8=Math[_0x5ab571(0x13e)](_0x1a89e0,_0x168288[_0x5ab571(0x169)]-0x1);_0xb369f8>=0x0;_0xb369f8--){let _0x561433=_0x168288[_0xb369f8];if(_0x561433===e[_0x5ab571(0x1a7)][_0x5ab571(0x140)])return;if(_0x561433===e[_0x5ab571(0x1a7)]['TABLE_CELL_START']){_0x455f8a=_0xb369f8;break;}}if(_0x455f8a<0x0)return;let _0x58d4ee=_0x168288[_0x5ab571(0xf0)](e['DataStreamTreeTokenType'][_0x5ab571(0x140)],_0x455f8a+0x1);if(!(_0x58d4ee<0x0||_0x1a89e0<_0x455f8a+0x1||_0x1a89e0>_0x58d4ee-0x1))return{'startOffset':_0x455f8a+0x1,'endOffset':Math['max'](_0x455f8a+0x1,_0x58d4ee-0x1),'startTokenOffset':_0x455f8a,'endTokenOffset':_0x58d4ee};}function A(_0x1dc9d5){const _0x1d384d=_0x203137;return(0x0,e[_0x1d384d(0x13a)])(_0x1dc9d5)[_0x1d384d(0x16d)]-0x1;}function ye(_0x3860b2,_0x52eefc,_0x25f782,_0x40ab9b){const _0x698d2a=_0x203137;var _0x23aa84;let _0x4f94e1=A(_0x52eefc),_0x194b76=((_0x23aa84=_0x3860b2[_0x698d2a(0x153)])==null?[]:_0x23aa84)[_0x698d2a(0x125)](_0x146771=>_0x146771[_0x698d2a(0x18d)]===_0x4f94e1+0x1);if(!_0x194b76||_0x40ab9b!=null&&_0x194b76[_0x698d2a(0x18d)]!==_0x40ab9b||_0x25f782!=null&&(_0x25f782<_0x4f94e1||_0x25f782>_0x194b76[_0x698d2a(0x18d)]+0x1)||_0x3860b2[_0x698d2a(0x160)][_0x194b76[_0x698d2a(0x18d)]]!==e[_0x698d2a(0x1a7)][_0x698d2a(0x109)])return null;let _0x496755=(0x0,e['getParagraphContentStartOffset'])(_0x3860b2,_0x194b76),_0x23763e=_0x3860b2[_0x698d2a(0x160)][_0x698d2a(0x129)](_0x496755,_0x194b76[_0x698d2a(0x18d)]);return Array['from'](_0x23763e)[_0x698d2a(0x17c)](_0x107e12=>_0x107e12===e[_0x698d2a(0x1a7)][_0x698d2a(0xff)])?{'paragraph':_0x194b76,'endTokenOffset':_0x4f94e1}:null;}function j(_0x3d99ca,_0x37970d){const _0x4d1d09=_0x203137;var _0x5ded21;let _0x472267=A(_0x37970d),_0xa34a47=_0x3d99ca[_0x4d1d09(0x160)][_0x472267+0x1];(_0xa34a47===e[_0x4d1d09(0x1a7)][_0x4d1d09(0x197)]||_0xa34a47===void 0x0)&&M(_0x3d99ca,_0x472267+0x1,e['DataStreamTreeTokenType']['PARAGRAPH'],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,e[_0x4d1d09(0x14f)])(new Set((_0x5ded21=_0x3d99ca[_0x4d1d09(0x153)])==null?void 0x0:_0x5ded21[_0x4d1d09(0x19f)](_0xc58867=>_0xc58867[_0x4d1d09(0x175)])))}]});}function M(_0x3af354,_0x91e5c6,_0x33a29c,_0x5064cc={}){const _0x37fa89=_0x203137;var _0x364395,_0x2140a4;if(_0x33a29c){if(_0x3af354['dataStream']=''+_0x3af354[_0x37fa89(0x160)]['slice'](0x0,_0x91e5c6)+_0x33a29c+_0x3af354[_0x37fa89(0x160)]['slice'](_0x91e5c6),be(_0x3af354,_0x91e5c6,_0x33a29c[_0x37fa89(0x169)]),(_0x364395=_0x5064cc[_0x37fa89(0x153)])!=null&&_0x364395[_0x37fa89(0x169)]){var _0x536ab7;_0x3af354[_0x37fa89(0x153)]=[...(_0x536ab7=_0x3af354[_0x37fa89(0x153)])==null?[]:_0x536ab7,..._0x5064cc[_0x37fa89(0x153)][_0x37fa89(0x19f)](_0x224f44=>({..._0x224f44,'startIndex':_0x224f44[_0x37fa89(0x18d)]+_0x91e5c6}))][_0x37fa89(0x174)]((_0x2466b1,_0x5720a7)=>_0x2466b1['startIndex']-_0x5720a7['startIndex']);}if((_0x2140a4=_0x5064cc[_0x37fa89(0x120)])!=null&&_0x2140a4['length']){var _0x598e2f;_0x3af354[_0x37fa89(0x120)]=[...(_0x598e2f=_0x3af354[_0x37fa89(0x120)])==null?[]:_0x598e2f,..._0x5064cc[_0x37fa89(0x120)][_0x37fa89(0x19f)](_0x5c3c1b=>({..._0x5c3c1b,'startIndex':_0x5c3c1b[_0x37fa89(0x18d)]+_0x91e5c6,'endIndex':_0x5c3c1b[_0x37fa89(0x13b)]+_0x91e5c6}))][_0x37fa89(0x174)]((_0x12e49a,_0x504b0f)=>_0x12e49a['startIndex']-_0x504b0f['startIndex']);}}}function N(_0x330f9f,_0x47cc6e,_0x3471fc){const _0x14fdf0=_0x203137;let _0x18a332=_0x3471fc-_0x47cc6e;_0x330f9f[_0x14fdf0(0x160)]=''+_0x330f9f['dataStream']['slice'](0x0,_0x47cc6e)+_0x330f9f[_0x14fdf0(0x160)][_0x14fdf0(0x129)](_0x3471fc),xe(_0x330f9f,_0x47cc6e,_0x18a332);}function be(_0x2f8403,_0x29052c,_0x3c5690){const _0x2fcf95=_0x203137;_0x2f8403[_0x2fcf95(0x153)]=P(_0x2f8403[_0x2fcf95(0x153)],_0x29052c,_0x3c5690),_0x2f8403[_0x2fcf95(0x10b)]=P(_0x2f8403[_0x2fcf95(0x10b)],_0x29052c,_0x3c5690),_0x2f8403[_0x2fcf95(0x16c)]=P(_0x2f8403[_0x2fcf95(0x16c)],_0x29052c,_0x3c5690),_0x2f8403[_0x2fcf95(0x117)]=Se(_0x2f8403[_0x2fcf95(0x117)],_0x29052c,_0x3c5690),_0x2f8403['tables']=Ce(_0x2f8403[_0x2fcf95(0x187)],_0x29052c,_0x3c5690),_0x2f8403[_0x2fcf95(0x152)]=I(_0x2f8403['columnGroups'],_0x29052c,_0x3c5690),_0x2f8403[_0x2fcf95(0x16a)]=I(_0x2f8403[_0x2fcf95(0x16a)],_0x29052c,_0x3c5690),_0x2f8403[_0x2fcf95(0x142)]=I(_0x2f8403['customDecorations'],_0x29052c,_0x3c5690),_0x2f8403['blockRanges']=I(_0x2f8403[_0x2fcf95(0x120)],_0x29052c,_0x3c5690);}function xe(_0x2ba1b3,_0x2dc1cd,_0x246e07){const _0x2de76b=_0x203137;var _0x45c3a7,_0xcd9564;_0x2ba1b3[_0x2de76b(0x153)]=F(_0x2ba1b3[_0x2de76b(0x153)],_0x2dc1cd,_0x246e07),_0x2ba1b3[_0x2de76b(0x10b)]=F(_0x2ba1b3[_0x2de76b(0x10b)],_0x2dc1cd,_0x246e07),_0x2ba1b3[_0x2de76b(0x16c)]=F(_0x2ba1b3[_0x2de76b(0x16c)],_0x2dc1cd,_0x246e07),_0x2ba1b3[_0x2de76b(0x117)]=(_0x45c3a7=R((_0xcd9564=_0x2ba1b3[_0x2de76b(0x117)])==null?void 0x0:_0xcd9564[_0x2de76b(0x19f)](_0x436661=>({..._0x436661,'startIndex':_0x436661['st'],'endIndex':_0x436661['ed']})),_0x2dc1cd,_0x246e07))==null?void 0x0:_0x45c3a7[_0x2de76b(0x19f)](_0x4134ed=>{let {startIndex:_0x23be74,endIndex:_0x2b4845,..._0x298d10}=_0x4134ed;return{..._0x298d10,'st':_0x23be74,'ed':_0x2b4845};}),_0x2ba1b3[_0x2de76b(0x187)]=R(_0x2ba1b3[_0x2de76b(0x187)],_0x2dc1cd,_0x246e07),_0x2ba1b3['columnGroups']=L(_0x2ba1b3[_0x2de76b(0x152)],_0x2dc1cd,_0x246e07),_0x2ba1b3[_0x2de76b(0x16a)]=L(_0x2ba1b3[_0x2de76b(0x16a)],_0x2dc1cd,_0x246e07),_0x2ba1b3[_0x2de76b(0x142)]=L(_0x2ba1b3['customDecorations'],_0x2dc1cd,_0x246e07),_0x2ba1b3[_0x2de76b(0x120)]=L(_0x2ba1b3[_0x2de76b(0x120)],_0x2dc1cd,_0x246e07);}function P(_0x1be059,_0xedb0a3,_0x2485f0){const _0x574ae3=_0x203137;return _0x1be059==null?void 0x0:_0x1be059['map'](_0x5ef2a9=>_0x5ef2a9['startIndex']>=_0xedb0a3?{..._0x5ef2a9,'startIndex':_0x5ef2a9[_0x574ae3(0x18d)]+_0x2485f0}:_0x5ef2a9);}function F(_0x47b5be,_0x51ebeb,_0x2d1ee6){const _0x4a04e8=_0x203137;let _0x57673f=_0x51ebeb+_0x2d1ee6;return _0x47b5be==null?void 0x0:_0x47b5be['map'](_0x11c768=>_0x11c768['startIndex']>=_0x51ebeb&&_0x11c768[_0x4a04e8(0x18d)]<_0x57673f?null:_0x11c768['startIndex']>=_0x57673f?{..._0x11c768,'startIndex':_0x11c768[_0x4a04e8(0x18d)]-_0x2d1ee6}:_0x11c768)[_0x4a04e8(0x196)](_0x32da9d=>_0x32da9d!=null);}function Se(_0x3ff806,_0x3b77ff,_0x4fa831){const _0x3d4c30=_0x203137;return _0x3ff806==null?void 0x0:_0x3ff806[_0x3d4c30(0x19f)](_0xe4e979=>_0xe4e979['st']>=_0x3b77ff?{..._0xe4e979,'st':_0xe4e979['st']+_0x4fa831,'ed':_0xe4e979['ed']+_0x4fa831}:_0xe4e979['ed']>_0x3b77ff?{..._0xe4e979,'ed':_0xe4e979['ed']+_0x4fa831}:_0xe4e979);}function I(_0x2774d2,_0xa5fe23,_0x9ab477){const _0x1aae3a=_0x203137;return _0x2774d2==null?void 0x0:_0x2774d2[_0x1aae3a(0x19f)](_0xe48d8d=>(0x0,e[_0x1aae3a(0x1a6)])(_0xe48d8d,_0xa5fe23,_0x9ab477));}function Ce(_0x486855,_0x353fb6,_0x8e3867){const _0x515bb1=_0x203137;return _0x486855==null?void 0x0:_0x486855[_0x515bb1(0x19f)](_0x13a2b7=>(0x0,e[_0x515bb1(0x10c)])(_0x13a2b7,_0x353fb6,_0x8e3867));}function _0xf016(_0x1ddd2b,_0x3ee160){_0x1ddd2b=_0x1ddd2b-0xe3;const _0x4fd450=_0x4fd4();let _0xf01670=_0x4fd450[_0x1ddd2b];return _0xf01670;}function L(_0x53cbab,_0x8db9f5,_0x5e2f82){const _0x4f7c8f=_0x203137;return _0x53cbab==null?void 0x0:_0x53cbab[_0x4f7c8f(0x19f)](_0x2cfb6a=>(0x0,e['shiftInclusiveRangeOnDelete'])(_0x2cfb6a,_0x8db9f5,_0x5e2f82))[_0x4f7c8f(0x196)](_0x4ff7a1=>_0x4ff7a1!=null);}function R(_0x4ec88c,_0x41a33f,_0x581112){const _0x431d08=_0x203137;return _0x4ec88c==null?void 0x0:_0x4ec88c['map'](_0x29ffc3=>(0x0,e[_0x431d08(0x139)])(_0x29ffc3,_0x41a33f,_0x581112))[_0x431d08(0x196)](_0x59342d=>_0x59342d!=null);}const z={'id':'docs-code.command.insert-below','type':e[_0x203137(0x190)]['COMMAND'],'handler':_0x34c2ac=>{const _0x399021=_0x203137;var _0x19819c;if((0x0,n['isHeaderFooterSelection'])(G(_0x34c2ac)))return!0x1;let _0x568d98=(0x0,n[_0x399021(0x1a4)])(_0x34c2ac);if(_0x568d98)return _0x34c2ac[_0x399021(0x168)](e[_0x399021(0xf5)])[_0x399021(0x17a)](B['id'],{'startOffset':_0x568d98[_0x399021(0x177)],'endOffset':_0x568d98['endOffset'],'insertionMode':_0x399021(0x184),'unitId':_0x568d98[_0x399021(0x138)]});let _0x376f83=Ae(_0x34c2ac);if(!_0x376f83)return!0x1;let _0x20251c=(_0x19819c=_0x34c2ac[_0x399021(0x168)](e[_0x399021(0x19e)])['getCurrentUnitOfType'](e[_0x399021(0x14a)][_0x399021(0x123)]))==null?void 0x0:_0x19819c['getBody'](),_0x43b423=_0x20251c?(0x0,e[_0x399021(0x164)])(_0x20251c,_0x376f83):_0x376f83['startIndex']+0x1;return _0x34c2ac[_0x399021(0x168)](e['ICommandService'])['syncExecuteCommand'](B['id'],{'startOffset':_0x43b423,'endOffset':_0x43b423});}},we={'id':_0x203137(0x133),'type':e[_0x203137(0x190)]['COMMAND'],'handler':()=>!0x0},B={'id':_0x203137(0x195),'type':e[_0x203137(0x190)]['COMMAND'],'handler':(_0x11d280,_0x425ff4)=>{const _0x50055c=_0x203137;var _0x4bf633;let _0x133a68=W(_0x11d280,_0x425ff4==null?void 0x0:_0x425ff4['unitId']);if(!_0x133a68)return!0x1;let _0x9b9635=G(_0x11d280);if((0x0,n[_0x50055c(0x116)])(_0x9b9635))return!0x1;let _0x4d1e5b=_0x133a68['model'][_0x50055c(0x12c)](_0x133a68[_0x50055c(0x138)]),_0x4d25dc=De(_0x425ff4,_0x9b9635),_0x1877df=Oe(_0x133a68[_0x50055c(0xed)],_0x4d25dc);if(_0x1877df){if(_0x1877df['blockType']!==e[_0x50055c(0x11d)][_0x50055c(0x182)])return!0x1;let _0x2267f3=b({'blockId':_0x1877df[_0x50055c(0x17e)],'documentData':_0x133a68['previousDocumentData'],'metadata':_0x4d1e5b});if(!_0x2267f3)return!0x1;let _0x569581=Y(_0x133a68[_0x50055c(0x1a5)],_0x133a68[_0x50055c(0x12f)],_0x133a68[_0x50055c(0x138)],_0x133a68['previousDocumentData'],_0x2267f3[_0x50055c(0xef)],B['id'],_0x2267f3['cursorOffset']);return _0x569581&&_0x2267f3['nextMetadata']&&_0x133a68['model'][_0x50055c(0x151)](_0x133a68[_0x50055c(0x138)],_0x2267f3[_0x50055c(0x18e)]),_0x569581;}let _0x51792b=(_0x4bf633=_0x425ff4==null?void 0x0:_0x425ff4[_0x50055c(0x17e)])==null?(0x0,e[_0x50055c(0x113)])(0x6):_0x4bf633,_0x3a0360;try{_0x3a0360=v({'blockId':_0x51792b,'config':_0x425ff4==null?void 0x0:_0x425ff4['config'],'documentData':_0x133a68[_0x50055c(0xed)],'endOffset':_0x4d25dc==null?void 0x0:_0x4d25dc['endOffset'],'insertionMode':_0x425ff4==null?void 0x0:_0x425ff4[_0x50055c(0x14b)],'metadata':_0x4d1e5b,'startOffset':_0x4d25dc==null?void 0x0:_0x4d25dc['startOffset']});}catch(_0x3ecadd){if(_0x3ecadd instanceof _)return!0x1;throw _0x3ecadd;}let _0x46ff28=Y(_0x133a68['commandService'],_0x133a68[_0x50055c(0x12f)],_0x133a68[_0x50055c(0x138)],_0x133a68[_0x50055c(0xed)],_0x3a0360['nextDocumentData'],B['id'],_0x3a0360[_0x50055c(0xf8)]);return _0x46ff28&&_0x3a0360[_0x50055c(0x18e)]&&_0x133a68['model'][_0x50055c(0x151)](_0x133a68['unitId'],_0x3a0360['nextMetadata']),_0x46ff28;}},Te={'id':_0x203137(0x192),'type':e[_0x203137(0x190)][_0x203137(0x144)],'handler':(_0xbbf63f,_0x5d3494)=>{const _0x3b3949=_0x203137;if(!_0x5d3494)return!0x1;let _0x2c1f29=W(_0xbbf63f,_0x5d3494[_0x3b3949(0x138)]);if(!_0x2c1f29)return!0x1;let _0x59ddb0=y({'blockId':_0x5d3494[_0x3b3949(0x17e)],'config':_0x5d3494[_0x3b3949(0x1a3)],'documentData':_0x2c1f29['previousDocumentData'],'metadata':_0x2c1f29[_0x3b3949(0x12d)][_0x3b3949(0x12c)](_0x2c1f29[_0x3b3949(0x138)])});return _0x59ddb0['nextMetadata']&&_0x2c1f29['model'][_0x3b3949(0x151)](_0x2c1f29[_0x3b3949(0x138)],_0x59ddb0[_0x3b3949(0x18e)]),!0x0;}},Ee={'id':'docs-code.command.exit','type':e[_0x203137(0x190)][_0x203137(0x144)],'handler':(_0x150008,_0x7a7639)=>V['handler'](_0x150008,_0x7a7639)},V={'id':'docs-code.command.unwrap','type':e[_0x203137(0x190)][_0x203137(0x144)],'handler':(_0x24251f,_0xc5ef52)=>{const _0x3bcee6=_0x203137;if(!_0xc5ef52)return!0x1;let _0x8e06b3=W(_0x24251f,_0xc5ef52==null?void 0x0:_0xc5ef52[_0x3bcee6(0x138)]);if(!_0x8e06b3)return!0x1;let _0x58ed69=b({'blockId':_0xc5ef52[_0x3bcee6(0x17e)],'documentData':_0x8e06b3[_0x3bcee6(0xed)],'metadata':_0x8e06b3[_0x3bcee6(0x12d)][_0x3bcee6(0x12c)](_0x8e06b3['unitId'])});if(!_0x58ed69)return!0x1;let _0x40d46c=Y(_0x8e06b3[_0x3bcee6(0x1a5)],_0x8e06b3['selectionManager'],_0x8e06b3['unitId'],_0x8e06b3['previousDocumentData'],_0x58ed69[_0x3bcee6(0xef)],V['id'],_0x58ed69[_0x3bcee6(0xf8)]);return _0x40d46c&&_0x58ed69[_0x3bcee6(0x18e)]&&_0x8e06b3[_0x3bcee6(0x12d)][_0x3bcee6(0x151)](_0x8e06b3[_0x3bcee6(0x138)],_0x58ed69[_0x3bcee6(0x18e)]),_0x40d46c;}},H={'id':_0x203137(0x11e),'type':e['CommandType'][_0x203137(0x144)],'handler':(_0x4e7b63,_0x2b1956)=>{const _0x2f484a=_0x203137;if(!_0x2b1956)return!0x1;let _0x135ce6=W(_0x4e7b63,_0x2b1956==null?void 0x0:_0x2b1956[_0x2f484a(0x138)]);if(!_0x135ce6)return!0x1;let _0x29fc7d=re({'blockId':_0x2b1956[_0x2f484a(0x17e)],'documentData':_0x135ce6[_0x2f484a(0xed)],'metadata':_0x135ce6[_0x2f484a(0x12d)]['serialize'](_0x135ce6[_0x2f484a(0x138)])});if(!_0x29fc7d)return!0x1;let _0x15daee=Y(_0x135ce6[_0x2f484a(0x1a5)],_0x135ce6[_0x2f484a(0x12f)],_0x135ce6[_0x2f484a(0x138)],_0x135ce6[_0x2f484a(0xed)],_0x29fc7d[_0x2f484a(0xef)],H['id'],_0x29fc7d['cursorOffset']);return _0x15daee&&_0x29fc7d['nextMetadata']&&_0x135ce6[_0x2f484a(0x12d)]['deserialize'](_0x135ce6[_0x2f484a(0x138)],_0x29fc7d[_0x2f484a(0x18e)]),_0x15daee;}},U={'id':_0x203137(0xfb),'type':e[_0x203137(0x190)][_0x203137(0x144)],'handler':(_0x5db798,_0x4ae4ca)=>{const _0x53bc56=_0x203137;var _0x55a878,_0xdfbdcd;let _0x499704=W(_0x5db798,_0x4ae4ca==null?void 0x0:_0x4ae4ca[_0x53bc56(0x138)]);if(!_0x499704)return!0x1;let _0x4ed74e=(_0x55a878=_0x4ae4ca==null?void 0x0:_0x4ae4ca[_0x53bc56(0xf8)])==null?(_0xdfbdcd=G(_0x5db798))==null?void 0x0:_0xdfbdcd[_0x53bc56(0x177)]:_0x55a878;if(_0x4ed74e==null)return!0x1;let _0x1e3f04=x({'cursorOffset':_0x4ed74e,'documentData':_0x499704[_0x53bc56(0xed)],'paragraphStartIndex':_0x4ae4ca==null?void 0x0:_0x4ae4ca[_0x53bc56(0x199)]});return _0x1e3f04?Y(_0x499704[_0x53bc56(0x1a5)],_0x499704[_0x53bc56(0x12f)],_0x499704['unitId'],_0x499704[_0x53bc56(0xed)],_0x1e3f04[_0x53bc56(0xef)],U['id'],_0x1e3f04['cursorOffset']):!0x1;}};function W(_0x91e0bf,_0x5e1eeb){const _0x17d82e=_0x203137;let _0x57ee28=_0x91e0bf[_0x17d82e(0x168)](e[_0x17d82e(0x19e)]),_0x4754a1=_0x5e1eeb?_0x57ee28['getUnit'](_0x5e1eeb,e['UniverInstanceType'][_0x17d82e(0x123)]):_0x57ee28[_0x17d82e(0xfe)](e['UniverInstanceType'][_0x17d82e(0x123)]);return _0x4754a1?{'commandService':_0x91e0bf['get'](e['ICommandService']),'model':_0x91e0bf[_0x17d82e(0x168)](p),'previousDocumentData':_0x4754a1['getSnapshot'](),'selectionManager':_0x91e0bf[_0x17d82e(0x168)](n[_0x17d82e(0x157)]),'unitId':_0x4754a1['getUnitId']()}:null;}function G(_0x41e27d){const _0x8a4fbd=_0x203137;var _0xb2a371;return(_0xb2a371=_0x41e27d[_0x8a4fbd(0x168)](n[_0x8a4fbd(0x157)])['getTextRanges']())==null?void 0x0:_0xb2a371[0x0];}function De(_0x6a38bb,_0x1c58a1){const _0x313572=_0x203137;var _0x2bc876,_0x79ea8d;let _0x1eeba7=(_0x2bc876=_0x6a38bb==null?void 0x0:_0x6a38bb['startOffset'])==null?_0x1c58a1==null?void 0x0:_0x1c58a1['startOffset']:_0x2bc876,_0x37167e=(_0x79ea8d=_0x6a38bb==null?void 0x0:_0x6a38bb[_0x313572(0x16d)])==null?_0x1c58a1==null?void 0x0:_0x1c58a1['endOffset']:_0x79ea8d;if(_0x1eeba7!=null&&_0x37167e!=null)return{'endOffset':Math[_0x313572(0x185)](_0x1eeba7,_0x37167e),'startOffset':Math[_0x313572(0x13e)](_0x1eeba7,_0x37167e)};}function Oe(_0x4543a3,_0x50229c){const _0x5363c8=_0x203137;var _0x250721;if(!_0x50229c)return;let _0xbd582f=ke(_0x50229c);return(_0x250721=_0x4543a3[_0x5363c8(0xfd)])==null||(_0x250721=_0x250721['blockRanges'])==null?void 0x0:_0x250721[_0x5363c8(0x125)](_0x531859=>{const _0x233be3=_0x5363c8;let _0x227bca=(0x0,e[_0x233be3(0x13a)])(_0x531859);return _0x50229c[_0x233be3(0x177)]===_0x50229c[_0x233be3(0x16d)]?(0x0,e['containsInteriorInsertionOffset'])(_0x227bca,_0xbd582f):(0x0,e['containsStreamIndex'])(_0x227bca,_0xbd582f);});}function ke(_0x3fd86d){const _0x538a97=_0x203137;return _0x3fd86d[_0x538a97(0x177)]===_0x3fd86d[_0x538a97(0x16d)]?_0x3fd86d['startOffset']:_0x3fd86d[_0x538a97(0x177)]+0x1;}function Ae(_0x375aaa){const _0x224356=_0x203137;var _0x5af6fc,_0x222616,_0x3b1f10;let _0x548213=G(_0x375aaa);if(!_0x548213)return null;let _0x24b3f3=_0x375aaa[_0x224356(0x168)](e[_0x224356(0x19e)])[_0x224356(0xfe)](e['UniverInstanceType'][_0x224356(0x123)]),_0xd082e=_0x24b3f3==null?void 0x0:_0x24b3f3['getBody']();return _0xd082e?(_0x5af6fc=e[_0x224356(0x17d)][_0x224356(0xe4)]['getParagraphsInRange'](_0x548213,(_0x222616=_0xd082e[_0x224356(0x153)])==null?[]:_0x222616,(_0x3b1f10=_0xd082e[_0x224356(0x160)])==null?'':_0x3b1f10)[0x0])==null?null:_0x5af6fc:null;}function je(_0xe82f54,_0x31978c){const _0x46af92=_0x203137;let _0x2c6306=_0xe82f54['body'],_0x5f3494=_0x31978c[_0x46af92(0xfd)],_0x1fed58=(0x0,e['getSingleDataStreamChange'])(_0x2c6306,_0x5f3494);return[_0x1fed58&&_0x5f3494?Me(_0x5f3494,_0x1fed58):null,_0x1fed58?null:Ne(_0x2c6306,_0x5f3494)][_0x46af92(0x196)](Boolean)['reduce']((_0x44b5b2,_0x1d8544)=>e[_0x46af92(0x191)][_0x46af92(0x148)](_0x44b5b2,_0x1d8544),null);}function Me(_0x20c715,_0x400c66){const _0x408c54=_0x203137;let _0x5465b2=new e[(_0x408c54(0x118))]();return _0x5465b2[_0x408c54(0x108)](_0x400c66['start']),_0x400c66['insertLength']>0x0&&_0x5465b2[_0x408c54(0xeb)](_0x400c66[_0x408c54(0x131)],(0x0,e[_0x408c54(0xf3)])(_0x20c715,_0x400c66[_0x408c54(0xf4)],_0x400c66[_0x408c54(0xf4)]+_0x400c66[_0x408c54(0x131)],!0x1)),_0x400c66[_0x408c54(0x181)]>0x0&&_0x5465b2[_0x408c54(0x158)](_0x400c66['deleteLength']),e[_0x408c54(0x191)][_0x408c54(0x11f)]()[_0x408c54(0x12b)](_0x5465b2['serialize'](),[_0x408c54(0xfd)]);}function Ne(_0x25f7e9,_0x5784ee){const _0x3e4056=_0x203137;let _0x1cbd38=[],_0x1241d5=_0x25f7e9?K(_0x25f7e9):void 0x0,_0x4ddd88=_0x5784ee?K(_0x5784ee):void 0x0;for(let _0x311ab7 of Pe)q(e[_0x3e4056(0x191)][_0x3e4056(0x11f)](),[_0x3e4056(0xfd),_0x311ab7],_0x1241d5==null?void 0x0:_0x1241d5[_0x311ab7],_0x4ddd88==null?void 0x0:_0x4ddd88[_0x311ab7],_0x1cbd38);return _0x1cbd38[_0x3e4056(0x15e)]((_0x2932a9,_0x47f6ed)=>e[_0x3e4056(0x191)][_0x3e4056(0x148)](_0x2932a9,_0x47f6ed),null);}const Pe=[_0x203137(0x153),_0x203137(0x10b),_0x203137(0x187),_0x203137(0x152),_0x203137(0x120),_0x203137(0x16c),_0x203137(0x16a),_0x203137(0x142),_0x203137(0x117)];function K(_0x5d4700){return _0x5d4700;}function q(_0x33d788,_0x41fd0a,_0x2bf2ec,_0x2865ff,_0x51d6aa){const _0x41d60b=_0x203137;if(!J(_0x2bf2ec,_0x2865ff)){if(_0x2bf2ec==null){_0x51d6aa['push'](_0x33d788[_0x41d60b(0xe8)](_0x41fd0a,_0x2865ff));return;}if(_0x2865ff==null){_0x51d6aa[_0x41d60b(0x1a0)](_0x33d788[_0x41d60b(0x132)](_0x41fd0a,_0x2bf2ec));return;}if(Array[_0x41d60b(0x102)](_0x2bf2ec)&&Array['isArray'](_0x2865ff)){Fe(_0x33d788,_0x41fd0a,_0x2bf2ec,_0x2865ff,_0x51d6aa);return;}if(Ie(_0x2bf2ec)&&Ie(_0x2865ff)){new Set([...Object[_0x41d60b(0x1a1)](_0x2bf2ec),...Object[_0x41d60b(0x1a1)](_0x2865ff)])[_0x41d60b(0x19c)](_0x4b7c47=>{q(_0x33d788,[..._0x41fd0a,_0x4b7c47],_0x2bf2ec[_0x4b7c47],_0x2865ff[_0x4b7c47],_0x51d6aa);});return;}_0x51d6aa['push'](_0x33d788[_0x41d60b(0x13f)](_0x41fd0a,_0x2bf2ec,_0x2865ff));}}function Fe(_0x56d7e4,_0x5958e3,_0x5ad98e,_0x3b2143,_0x11e017){const _0x3e5a2d=_0x203137;if(_0x5ad98e[_0x3e5a2d(0x169)]===_0x3b2143[_0x3e5a2d(0x169)]){_0x5ad98e[_0x3e5a2d(0x19c)]((_0x242764,_0x25a615)=>q(_0x56d7e4,[..._0x5958e3,_0x25a615],_0x242764,_0x3b2143[_0x25a615],_0x11e017));return;}let _0x428657=0x0;for(;_0x428657<_0x5ad98e[_0x3e5a2d(0x169)]&&_0x428657<_0x3b2143[_0x3e5a2d(0x169)]&&J(_0x5ad98e[_0x428657],_0x3b2143[_0x428657]);)_0x428657++;let _0xf23aa2=_0x5ad98e[_0x3e5a2d(0x169)]-0x1,_0x6b003a=_0x3b2143[_0x3e5a2d(0x169)]-0x1;for(;_0xf23aa2>=_0x428657&&_0x6b003a>=_0x428657&&J(_0x5ad98e[_0xf23aa2],_0x3b2143[_0x6b003a]);)_0xf23aa2--,_0x6b003a--;for(let _0x114b88=_0xf23aa2;_0x114b88>=_0x428657;_0x114b88--)_0x11e017['push'](_0x56d7e4[_0x3e5a2d(0x132)]([..._0x5958e3,_0x114b88],_0x5ad98e[_0x114b88]));for(let _0x586e52=_0x428657;_0x586e52<=_0x6b003a;_0x586e52++)_0x11e017[_0x3e5a2d(0x1a0)](_0x56d7e4[_0x3e5a2d(0xe8)]([..._0x5958e3,_0x586e52],_0x3b2143[_0x586e52]));}function Ie(_0x4b013e){const _0x5cf572=_0x203137;return typeof _0x4b013e==_0x5cf572(0x112)&&!!_0x4b013e&&!Array[_0x5cf572(0x102)](_0x4b013e);}function J(_0x490072,_0xcdc88b){const _0x254416=_0x203137;return JSON[_0x254416(0x104)](_0x490072)===JSON[_0x254416(0x104)](_0xcdc88b);}function Y(_0x5190ea,_0x30320a,_0x37edc9,_0xcc8ce2,_0x20e99c,_0x2d1903,_0x1f9eb6){const _0xe39c3a=_0x203137;let _0x57d1a7=je(_0xcc8ce2,_0x20e99c);return _0x57d1a7?!!_0x5190ea[_0xe39c3a(0x17a)](n[_0xe39c3a(0x171)]['id'],{'unitId':_0x37edc9,'actions':_0x57d1a7,'textRanges':[{'startOffset':_0x1f9eb6,'endOffset':_0x1f9eb6,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x2d1903}):(_0x30320a['replaceDocRanges']([{'startOffset':_0x1f9eb6,'endOffset':_0x1f9eb6}],{'unitId':_0x37edc9,'subUnitId':_0x37edc9},!0x1),!0x0);}const X=_0x203137(0xec);var Le=_0x203137(0x135),Re=_0x203137(0x19b);const ze={};function Z(_0x37c67f,_0x1f4026){return function(_0x2b6a55,_0x257a3a){_0x1f4026(_0x2b6a55,_0x257a3a,_0x37c67f);};}function Be(_0x16bfc4,_0x50b94a,_0x320af7,_0x528a75){const _0x3a3e8b=_0x203137;var _0x1025eb=arguments[_0x3a3e8b(0x169)],_0x5828d8=_0x1025eb<0x3?_0x50b94a:_0x528a75===null?_0x528a75=Object[_0x3a3e8b(0x10e)](_0x50b94a,_0x320af7):_0x528a75,_0x100b84;if(typeof Reflect==_0x3a3e8b(0x112)&&typeof Reflect[_0x3a3e8b(0x10f)]==_0x3a3e8b(0xf7))_0x5828d8=Reflect[_0x3a3e8b(0x10f)](_0x16bfc4,_0x50b94a,_0x320af7,_0x528a75);else{for(var _0x595b79=_0x16bfc4['length']-0x1;_0x595b79>=0x0;_0x595b79--)(_0x100b84=_0x16bfc4[_0x595b79])&&(_0x5828d8=(_0x1025eb<0x3?_0x100b84(_0x5828d8):_0x1025eb>0x3?_0x100b84(_0x50b94a,_0x320af7,_0x5828d8):_0x100b84(_0x50b94a,_0x320af7))||_0x5828d8);}return _0x1025eb>0x3&&_0x5828d8&&Object[_0x3a3e8b(0x12a)](_0x50b94a,_0x320af7,_0x5828d8),_0x5828d8;}let Q=class extends e['Disposable']{constructor(_0x17ac41,_0x1cdbbc){const _0x129ca5=_0x203137;super(),this['_resourceManagerService']=_0x17ac41,this['_docsCodeModel']=_0x1cdbbc,this[_0x129ca5(0xe9)]();}[_0x203137(0xe9)](){const _0x2ba772=_0x203137;this[_0x2ba772(0x162)](this[_0x2ba772(0x198)][_0x2ba772(0x176)]({'pluginName':X,'businesses':[e[_0x2ba772(0x14a)][_0x2ba772(0x123)]],'toJson':_0x488396=>JSON[_0x2ba772(0x104)](this[_0x2ba772(0xf2)][_0x2ba772(0x12c)](_0x488396)),'parseJson':_0x131277=>o(JSON['parse'](_0x131277)),'onLoad':(_0x4c939a,_0x49458f)=>this[_0x2ba772(0xf2)][_0x2ba772(0x151)](_0x4c939a,_0x49458f),'onUnLoad':_0x3b7f75=>this['_docsCodeModel'][_0x2ba772(0x121)](_0x3b7f75)}));}};Q=Be([Z(0x0,e[_0x203137(0x111)]),Z(0x1,(0x0,e['Inject'])(p))],Q);let $=class extends e[_0x203137(0x15b)]{constructor(_0x11192a=ze,_0x1c3b15,_0x131973,_0x28809c){const _0x1736aa=_0x203137;super(),this[_0x1736aa(0x18c)]=_0x11192a,this[_0x1736aa(0x1a2)]=_0x1c3b15,this[_0x1736aa(0x18a)]=_0x131973,this['_configService']=_0x28809c;let {..._0x301b13}=(0x0,e[_0x1736aa(0x189)])({},ze,this[_0x1736aa(0x18c)]);this[_0x1736aa(0x11a)]['setConfig'](_0x1736aa(0x14e),_0x301b13);}[_0x203137(0x15f)](){const _0x4a018a=_0x203137;this[_0x4a018a(0x1a2)][_0x4a018a(0x15d)]([p]),this[_0x4a018a(0x1a2)][_0x4a018a(0x15d)]([Q]),this[_0x4a018a(0x1a2)][_0x4a018a(0x168)](p),this[_0x4a018a(0x1a2)]['get'](Q),[B,z,Te,V,H,Ee,U,we,m,h][_0x4a018a(0x19c)](_0x29de34=>this[_0x4a018a(0x162)](this['_commandService'][_0x4a018a(0x17f)](_0x29de34)));}};f($,_0x203137(0x128),X),f($,_0x203137(0x172),Le),f($,_0x203137(0x110),Re),f($,_0x203137(0x136),e[_0x203137(0x14a)][_0x203137(0x123)]),$=Be([(0x0,e['DependentOn'])(r[_0x203137(0x173)],n['UniverDocsPlugin']),Z(0x1,(0x0,e['Inject'])(e['Injector'])),Z(0x2,e[_0x203137(0xf5)]),Z(0x3,e['IConfigService'])],$),exports['DOCS_CODE_PLUGIN']=X,exports[_0x203137(0x149)]=U,exports['DocsCodeConsumeBoundaryDeleteCommand']=we,exports[_0x203137(0x183)]=z,exports[_0x203137(0x17b)]=B,exports['DocsCodeModel']=p,exports[_0x203137(0x147)]=H,exports[_0x203137(0x103)]=V,exports['DocsCodeUpdateCommand']=Te,exports['RemoveDocsCodeConfigMutation']=h,exports[_0x203137(0x186)]=m,Object[_0x203137(0x12a)](exports,_0x203137(0xf9),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x203137(0x18f)]=x,exports[_0x203137(0x13d)]=ae,exports['normalizeDocsCodeConfig']=a,exports[_0x203137(0x16f)]=o;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x2d8eee=_0x3adc;(function(_0x37d28d,_0x432017){var _0x3193c9=_0x3adc,_0x274727=_0x37d28d();while(!![]){try{var _0xe9a18b=parseInt(_0x3193c9(0x198))/0x1*(parseInt(_0x3193c9(0x182))/0x2)+parseInt(_0x3193c9(0x17d))/0x3*(-parseInt(_0x3193c9(0x1a1))/0x4)+-parseInt(_0x3193c9(0x172))/0x5+parseInt(_0x3193c9(0x1a5))/0x6+parseInt(_0x3193c9(0x191))/0x7+parseInt(_0x3193c9(0x19c))/0x8+-parseInt(_0x3193c9(0x185))/0x9*(parseInt(_0x3193c9(0x184))/0xa);if(_0xe9a18b===_0x432017)break;else _0x274727['push'](_0x274727['shift']());}catch(_0x9a6bf4){_0x274727['push'](_0x274727['shift']());}}}(_0x47c2,0xef97d));import{DocsCodeInsertCommand as _0x413748,DocsCodeModel as _0x2145f2,DocsCodeRemoveCommand as _0x35ed87,DocsCodeUnwrapCommand as _0x4935be,DocsCodeUpdateCommand as _0x208aba,normalizeDocsCodeConfig as _0x586da4}from'@univerjs-pro/docs-code';function _0x3adc(_0x3618ae,_0x1115f6){_0x3618ae=_0x3618ae-0x16c;var _0x47c2db=_0x47c2();var _0x3adc98=_0x47c2db[_0x3618ae];return _0x3adc98;}import{DataStreamTreeTokenType as _0x1e8366,DocumentBlockRangeType as _0x393668,ICommandService as _0x3f7731,Inject as _0x546508,Injector as _0x72ddc8,generateRandomId as _0x35c273}from'@univerjs/core';import{FDocument as _0x521622,isParagraphFacade as _0x39da3d}from'@univerjs/docs/facade';function m(_0x1f969d){'@babel/helpers - typeof';var _0x4961a6=_0x3adc;return m=typeof Symbol==_0x4961a6(0x1a8)&&typeof Symbol[_0x4961a6(0x1a7)]==_0x4961a6(0x188)?function(_0x2d4f7c){return typeof _0x2d4f7c;}:function(_0x2a1d05){var _0x381264=_0x4961a6;return _0x2a1d05&&typeof Symbol=='function'&&_0x2a1d05[_0x381264(0x19b)]===Symbol&&_0x2a1d05!==Symbol['prototype']?_0x381264(0x188):typeof _0x2a1d05;},m(_0x1f969d);}function h(_0x1e00ae,_0x293d06){var _0x424e58=_0x3adc;if(m(_0x1e00ae)!=_0x424e58(0x171)||!_0x1e00ae)return _0x1e00ae;var _0x5e0057=_0x1e00ae[Symbol[_0x424e58(0x17f)]];if(_0x5e0057!==void 0x0){var _0xaaea81=_0x5e0057[_0x424e58(0x179)](_0x1e00ae,_0x293d06||'default');if(m(_0xaaea81)!=_0x424e58(0x171))return _0xaaea81;throw TypeError(_0x424e58(0x17a));}return(_0x293d06===_0x424e58(0x1b0)?String:Number)(_0x1e00ae);}function g(_0x536d20){var _0x47f88a=_0x3adc,_0x33f281=h(_0x536d20,'string');return m(_0x33f281)==_0x47f88a(0x188)?_0x33f281:_0x33f281+'';}function _0x47c2(){var _0x30862e=['blockRanges','string','length','endIndex','startIndex','CODE','blockType','object','7628645lggYDz','_blockId','includes','updateConfig','map','extend','_getBlockRange','call','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','dataStream','unwrap','67047jIZlCh','_getBlockRanges','toPrimitive','remove','_createFDocumentCode','2PWliqS','_document','10uxZTBv','11975841DoZqMm','BLOCK_START','decorate','symbol','getRange','_injector','save','body','_getDocumentData','syncExecuteCommand','createInstance','some','11851602bztJDo','text','getConfig','get','getId','getCode','_unitId','820144ALwzcC','getCodeConfig','getOwnPropertyDescriptor','constructor','440024uBYhhg','blockId','SECTION_BREAK','getCodes','getText','20CttRNb','defineProperty','slice','find','8287578rupQax','config','iterator','function','from','filter','findCodes','BLOCK_END','PARAGRAPH','findCodeByText'];_0x47c2=function(){return _0x30862e;};return _0x47c2();}function _(_0x11ef6c,_0x4e55b3,_0x345cb0){var _0x2cd5c6=_0x3adc;return(_0x4e55b3=g(_0x4e55b3))in _0x11ef6c?Object[_0x2cd5c6(0x1a2)](_0x11ef6c,_0x4e55b3,{'value':_0x345cb0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x11ef6c[_0x4e55b3]=_0x345cb0,_0x11ef6c;}function v(_0xd647c7,_0x58aa5d){return function(_0x3b1c18,_0x3c25fd){_0x58aa5d(_0x3b1c18,_0x3c25fd,_0xd647c7);};}function y(_0x47f737,_0x485235,_0x4ded41,_0x8c527c){var _0x4174dd=_0x3adc,_0x142109=arguments[_0x4174dd(0x16c)],_0x26795e=_0x142109<0x3?_0x485235:_0x8c527c===null?_0x8c527c=Object[_0x4174dd(0x19a)](_0x485235,_0x4ded41):_0x8c527c,_0x362df5;if(typeof Reflect==_0x4174dd(0x171)&&typeof Reflect[_0x4174dd(0x187)]==_0x4174dd(0x1a8))_0x26795e=Reflect['decorate'](_0x47f737,_0x485235,_0x4ded41,_0x8c527c);else{for(var _0x3ac4c6=_0x47f737[_0x4174dd(0x16c)]-0x1;_0x3ac4c6>=0x0;_0x3ac4c6--)(_0x362df5=_0x47f737[_0x3ac4c6])&&(_0x26795e=(_0x142109<0x3?_0x362df5(_0x26795e):_0x142109>0x3?_0x362df5(_0x485235,_0x4ded41,_0x26795e):_0x362df5(_0x485235,_0x4ded41))||_0x26795e);}return _0x142109>0x3&&_0x26795e&&Object[_0x4174dd(0x1a2)](_0x485235,_0x4ded41,_0x26795e),_0x26795e;}let b=class{constructor(_0x1311b8,_0x5b1808,_0x36bc23){var _0x5e9caf=_0x3adc;this[_0x5e9caf(0x183)]=_0x1311b8,this[_0x5e9caf(0x173)]=_0x5b1808,this[_0x5e9caf(0x18a)]=_0x36bc23,_(this,'_unitId',void 0x0),this['_unitId']=this['_document'][_0x5e9caf(0x195)]();}[_0x2d8eee(0x195)](){var _0x3939bb=_0x2d8eee;return this[_0x3939bb(0x173)];}[_0x2d8eee(0x189)](){var _0x437f59=_0x2d8eee;let _0x405c28=this['_getBlockRange']();return _0x405c28?{'blockId':_0x405c28[_0x437f59(0x19d)],'endIndex':_0x405c28['endIndex'],'startIndex':_0x405c28['startIndex']}:null;}[_0x2d8eee(0x1a0)](){var _0x5b4c4d=_0x2d8eee,_0xb9fa1f;let _0x2f318e=this[_0x5b4c4d(0x178)](),_0x3d233f=(_0xb9fa1f=this[_0x5b4c4d(0x18d)]()[_0x5b4c4d(0x18c)])==null?void 0x0:_0xb9fa1f[_0x5b4c4d(0x17b)];return!_0x2f318e||!_0x3d233f?'':x(_0x3d233f[_0x5b4c4d(0x1a3)](_0x2f318e[_0x5b4c4d(0x16e)]+0x1,_0x2f318e[_0x5b4c4d(0x16d)]));}['describe'](){var _0x555808=_0x2d8eee;let _0x44a2c3=this[_0x555808(0x189)]();return _0x44a2c3?{..._0x44a2c3,'config':this[_0x555808(0x193)](),'text':this[_0x555808(0x1a0)](),'type':_0x393668[_0x555808(0x16f)]}:null;}['getConfig'](){var _0x220c84=_0x2d8eee;return _0x586da4(this[_0x220c84(0x18a)][_0x220c84(0x194)](_0x2145f2)[_0x220c84(0x199)](this['_unitId'],this[_0x220c84(0x173)]));}[_0x2d8eee(0x175)](_0x1c8dc9){var _0x1e92fb=_0x2d8eee;return this[_0x1e92fb(0x18a)][_0x1e92fb(0x194)](_0x3f7731)['syncExecuteCommand'](_0x208aba['id'],{'blockId':this[_0x1e92fb(0x173)],'config':_0x1c8dc9[_0x1e92fb(0x1a6)],'unitId':this['_unitId']});}[_0x2d8eee(0x17c)](){var _0x24fde9=_0x2d8eee;return this[_0x24fde9(0x18a)]['get'](_0x3f7731)[_0x24fde9(0x18e)](_0x4935be['id'],{'blockId':this[_0x24fde9(0x173)],'unitId':this['_unitId']});}[_0x2d8eee(0x180)](){var _0x269df1=_0x2d8eee;return this[_0x269df1(0x18a)][_0x269df1(0x194)](_0x3f7731)[_0x269df1(0x18e)](_0x35ed87['id'],{'blockId':this['_blockId'],'unitId':this[_0x269df1(0x197)]});}['_getBlockRange'](){var _0x12138=_0x2d8eee,_0x33f1c5;let _0x4155e1=(_0x33f1c5=this[_0x12138(0x18d)]()[_0x12138(0x18c)])==null||(_0x33f1c5=_0x33f1c5['blockRanges'])==null?void 0x0:_0x33f1c5[_0x12138(0x1a4)](_0x31ebd5=>_0x31ebd5['blockId']===this[_0x12138(0x173)]&&_0x31ebd5[_0x12138(0x170)]===_0x393668[_0x12138(0x16f)]);return _0x4155e1==null?null:_0x4155e1;}['_getDocumentData'](){var _0x51f798=_0x2d8eee;return this[_0x51f798(0x183)][_0x51f798(0x18b)]();}};b=y([v(0x2,_0x546508(_0x72ddc8))],b);function x(_0x1dcd68){var _0x154e60=_0x2d8eee;return Array[_0x154e60(0x1a9)](_0x1dcd68)[_0x154e60(0x176)](_0x53085f=>_0x53085f===_0x1e8366[_0x154e60(0x1ad)]?'\x0a':_0x53085f)['filter'](_0x3bf6f8=>_0x3bf6f8!==_0x1e8366[_0x154e60(0x186)]&&_0x3bf6f8!==_0x1e8366[_0x154e60(0x1ac)]&&_0x3bf6f8!==_0x1e8366[_0x154e60(0x19e)])['join']('')['replace'](/\n$/,'');}var S=class extends _0x521622{[_0x2d8eee(0x19f)](){var _0x58ef22=_0x2d8eee;return this['_getBlockRanges']()[_0x58ef22(0x1aa)](_0x5265f2=>_0x5265f2[_0x58ef22(0x170)]===_0x393668[_0x58ef22(0x16f)])[_0x58ef22(0x176)](_0x540bcc=>this['_createFDocumentCode'](_0x540bcc['blockId']));}[_0x2d8eee(0x196)](_0x5ee216){var _0x4702ec=_0x2d8eee;return this[_0x4702ec(0x17e)]()[_0x4702ec(0x190)](_0x5acb69=>_0x5acb69[_0x4702ec(0x19d)]===_0x5ee216&&_0x5acb69['blockType']===_0x393668['CODE'])?this[_0x4702ec(0x181)](_0x5ee216):null;}['getCodeAt'](_0x37e8da){var _0x101731=_0x2d8eee;let _0x138b78=this[_0x101731(0x17e)]()[_0x101731(0x1a4)](_0x17faee=>_0x17faee['blockType']===_0x393668[_0x101731(0x16f)]&&_0x17faee[_0x101731(0x16e)]<=_0x37e8da&&_0x37e8da<=_0x17faee[_0x101731(0x16d)]);return _0x138b78?this['_createFDocumentCode'](_0x138b78[_0x101731(0x19d)]):null;}[_0x2d8eee(0x1ae)](_0x40fce4){var _0x551bd9=_0x2d8eee,_0x13e1e2;return(_0x13e1e2=this[_0x551bd9(0x1ab)](_0x40fce4)[0x0])==null?null:_0x13e1e2;}[_0x2d8eee(0x1ab)](_0xaf2974){var _0x38c25b=_0x2d8eee;let _0x860ac=typeof _0xaf2974==_0x38c25b(0x1b0)?{'text':_0xaf2974}:_0xaf2974;return this[_0x38c25b(0x19f)]()[_0x38c25b(0x1aa)](_0x24b704=>!(_0x860ac[_0x38c25b(0x19d)]&&_0x24b704[_0x38c25b(0x195)]()!==_0x860ac[_0x38c25b(0x19d)]||_0x860ac[_0x38c25b(0x192)]&&!_0x24b704['getText']()[_0x38c25b(0x174)](_0x860ac[_0x38c25b(0x192)])));}['insertCode'](_0x473195={},_0x220fb2={}){var _0xb1e153=_0x2d8eee,_0x157df0;let _0x35ad13=this[_0xb1e153(0x18a)][_0xb1e153(0x194)](_0x3f7731),_0x4f3989=_0x39da3d(_0x473195)?{..._0x220fb2,..._0x473195[_0xb1e153(0x189)]()}:_0x473195,_0x5438f0=(_0x157df0=_0x4f3989[_0xb1e153(0x19d)])==null?_0x35c273(0x6):_0x157df0;return _0x35ad13[_0xb1e153(0x18e)](_0x413748['id'],{..._0x4f3989,'blockId':_0x5438f0,'unitId':this['getId']()})?this[_0xb1e153(0x196)](_0x5438f0):null;}[_0x2d8eee(0x17e)](){var _0x1fe776=_0x2d8eee,_0x7cf025,_0x333a69;return(_0x7cf025=(_0x333a69=this[_0x1fe776(0x18b)]()[_0x1fe776(0x18c)])==null?void 0x0:_0x333a69[_0x1fe776(0x1af)])==null?[]:_0x7cf025;}['_createFDocumentCode'](_0x5716ed){var _0x56cf85=_0x2d8eee;return this[_0x56cf85(0x18a)][_0x56cf85(0x18f)](b,this,_0x5716ed);}};_0x521622[_0x2d8eee(0x177)](S);export{b as FDocumentCode};
1
+ var _0x16d5dd=_0x401b;(function(_0x5baf0e,_0x406303){var _0x2f623a=_0x401b,_0x242c45=_0x5baf0e();while(!![]){try{var _0x29e0fd=parseInt(_0x2f623a(0x162))/0x1*(-parseInt(_0x2f623a(0x159))/0x2)+parseInt(_0x2f623a(0x15b))/0x3+parseInt(_0x2f623a(0x160))/0x4+parseInt(_0x2f623a(0x165))/0x5+-parseInt(_0x2f623a(0x158))/0x6+parseInt(_0x2f623a(0x155))/0x7+parseInt(_0x2f623a(0x16a))/0x8*(parseInt(_0x2f623a(0x15e))/0x9);if(_0x29e0fd===_0x406303)break;else _0x242c45['push'](_0x242c45['shift']());}catch(_0x4c682d){_0x242c45['push'](_0x242c45['shift']());}}}(_0x392f,0x9ac92));import{DocsCodeInsertCommand as _0x24f854,DocsCodeModel as _0x5ae04f,DocsCodeRemoveCommand as _0x2e3235,DocsCodeUnwrapCommand as _0x5e34cd,DocsCodeUpdateCommand as _0x5de929,normalizeDocsCodeConfig as _0x517998}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x4a231b,DocumentBlockRangeType as _0x28edc6,ICommandService as _0x594aa4,Inject as _0x385da6,Injector as _0xf98a15,generateRandomId as _0x1440a8}from'@univerjs/core';import{FDocument as _0x243364,isParagraphFacade as _0x2c4eb0}from'@univerjs/docs/facade';function m(_0x547249){'@babel/helpers - typeof';var _0x5a43fa=_0x401b;return m=typeof Symbol==_0x5a43fa(0x157)&&typeof Symbol['iterator']==_0x5a43fa(0x17c)?function(_0x3361a7){return typeof _0x3361a7;}:function(_0x4df253){var _0x3d6f5b=_0x5a43fa;return _0x4df253&&typeof Symbol==_0x3d6f5b(0x157)&&_0x4df253['constructor']===Symbol&&_0x4df253!==Symbol['prototype']?'symbol':typeof _0x4df253;},m(_0x547249);}function h(_0x61107d,_0x4a3c73){var _0x38af3d=_0x401b;if(m(_0x61107d)!=_0x38af3d(0x171)||!_0x61107d)return _0x61107d;var _0x4ecdbf=_0x61107d[Symbol['toPrimitive']];if(_0x4ecdbf!==void 0x0){var _0x4a8a22=_0x4ecdbf['call'](_0x61107d,_0x4a3c73||'default');if(m(_0x4a8a22)!=_0x38af3d(0x171))return _0x4a8a22;throw TypeError(_0x38af3d(0x170));}return(_0x4a3c73===_0x38af3d(0x18d)?String:Number)(_0x61107d);}function g(_0x4d5320){var _0x1fe78a=_0x401b,_0x89c7ea=h(_0x4d5320,_0x1fe78a(0x18d));return m(_0x89c7ea)==_0x1fe78a(0x17c)?_0x89c7ea:_0x89c7ea+'';}function _(_0xc11d90,_0x55e491,_0x3050ef){var _0x64830e=_0x401b;return(_0x55e491=g(_0x55e491))in _0xc11d90?Object[_0x64830e(0x187)](_0xc11d90,_0x55e491,{'value':_0x3050ef,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xc11d90[_0x55e491]=_0x3050ef,_0xc11d90;}function v(_0xc6912a,_0x40b447){return function(_0x58170f,_0x55b116){_0x40b447(_0x58170f,_0x55b116,_0xc6912a);};}function _0x392f(){var _0x4649b0=['replace','281795ggrZWg','describe','getRange','BLOCK_START','CODE','8MyoFKL','_getBlockRange','body','_blockId','remove','getCode','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','object','getText','blockRanges','getId','blockId','get','_injector','_unitId','dataStream','save','from','symbol','findCodes','_getDocumentData','startIndex','find','_createFDocumentCode','decorate','text','syncExecuteCommand','SECTION_BREAK','blockType','defineProperty','getOwnPropertyDescriptor','filter','_document','some','getCodes','string','slice','8586095DHmMeX','map','function','5327142krvxHl','2440394hQBpPv','length','24303DEyedo','PARAGRAPH','insertCode','10916379pOysSC','createInstance','952320dFHpHF','endIndex','1IUVeHR','_getBlockRanges'];_0x392f=function(){return _0x4649b0;};return _0x392f();}function y(_0x148c7a,_0x4029c0,_0x241d86,_0x13793a){var _0x4305ef=_0x401b,_0x191762=arguments['length'],_0x8f44b6=_0x191762<0x3?_0x4029c0:_0x13793a===null?_0x13793a=Object[_0x4305ef(0x188)](_0x4029c0,_0x241d86):_0x13793a,_0x53ac3d;if(typeof Reflect==_0x4305ef(0x171)&&typeof Reflect[_0x4305ef(0x182)]=='function')_0x8f44b6=Reflect['decorate'](_0x148c7a,_0x4029c0,_0x241d86,_0x13793a);else{for(var _0x1e2b3e=_0x148c7a[_0x4305ef(0x15a)]-0x1;_0x1e2b3e>=0x0;_0x1e2b3e--)(_0x53ac3d=_0x148c7a[_0x1e2b3e])&&(_0x8f44b6=(_0x191762<0x3?_0x53ac3d(_0x8f44b6):_0x191762>0x3?_0x53ac3d(_0x4029c0,_0x241d86,_0x8f44b6):_0x53ac3d(_0x4029c0,_0x241d86))||_0x8f44b6);}return _0x191762>0x3&&_0x8f44b6&&Object['defineProperty'](_0x4029c0,_0x241d86,_0x8f44b6),_0x8f44b6;}let b=class{constructor(_0xda7f5a,_0x10e7cc,_0x16f946){var _0x40c022=_0x401b;this['_document']=_0xda7f5a,this['_blockId']=_0x10e7cc,this[_0x40c022(0x177)]=_0x16f946,_(this,'_unitId',void 0x0),this['_unitId']=this[_0x40c022(0x18a)]['getId']();}[_0x16d5dd(0x174)](){return this['_blockId'];}[_0x16d5dd(0x167)](){var _0xfddc77=_0x16d5dd;let _0x3460d7=this[_0xfddc77(0x16b)]();return _0x3460d7?{'blockId':_0x3460d7['blockId'],'endIndex':_0x3460d7[_0xfddc77(0x161)],'startIndex':_0x3460d7['startIndex']}:null;}[_0x16d5dd(0x172)](){var _0x1c3793=_0x16d5dd,_0xd434b0;let _0x574f40=this[_0x1c3793(0x16b)](),_0x563e64=(_0xd434b0=this[_0x1c3793(0x17e)]()[_0x1c3793(0x16c)])==null?void 0x0:_0xd434b0[_0x1c3793(0x179)];return!_0x574f40||!_0x563e64?'':x(_0x563e64[_0x1c3793(0x154)](_0x574f40[_0x1c3793(0x17f)]+0x1,_0x574f40['endIndex']));}[_0x16d5dd(0x166)](){var _0x15cbfd=_0x16d5dd;let _0x115a5c=this[_0x15cbfd(0x167)]();return _0x115a5c?{..._0x115a5c,'config':this['getConfig'](),'text':this['getText'](),'type':_0x28edc6[_0x15cbfd(0x169)]}:null;}['getConfig'](){var _0x57ddb3=_0x16d5dd;return _0x517998(this[_0x57ddb3(0x177)][_0x57ddb3(0x176)](_0x5ae04f)['getCodeConfig'](this['_unitId'],this['_blockId']));}['updateConfig'](_0x595c74){var _0x465510=_0x16d5dd;return this[_0x465510(0x177)][_0x465510(0x176)](_0x594aa4)[_0x465510(0x184)](_0x5de929['id'],{'blockId':this['_blockId'],'config':_0x595c74['config'],'unitId':this[_0x465510(0x178)]});}['unwrap'](){var _0x2b046a=_0x16d5dd;return this[_0x2b046a(0x177)]['get'](_0x594aa4)[_0x2b046a(0x184)](_0x5e34cd['id'],{'blockId':this[_0x2b046a(0x16d)],'unitId':this[_0x2b046a(0x178)]});}[_0x16d5dd(0x16e)](){var _0x533769=_0x16d5dd;return this[_0x533769(0x177)][_0x533769(0x176)](_0x594aa4)['syncExecuteCommand'](_0x2e3235['id'],{'blockId':this['_blockId'],'unitId':this[_0x533769(0x178)]});}[_0x16d5dd(0x16b)](){var _0x558d04=_0x16d5dd,_0xc5c459;let _0x2028cb=(_0xc5c459=this[_0x558d04(0x17e)]()[_0x558d04(0x16c)])==null||(_0xc5c459=_0xc5c459[_0x558d04(0x173)])==null?void 0x0:_0xc5c459[_0x558d04(0x180)](_0x462781=>_0x462781[_0x558d04(0x175)]===this['_blockId']&&_0x462781[_0x558d04(0x186)]===_0x28edc6['CODE']);return _0x2028cb==null?null:_0x2028cb;}[_0x16d5dd(0x17e)](){var _0x3a9586=_0x16d5dd;return this[_0x3a9586(0x18a)][_0x3a9586(0x17a)]();}};b=y([v(0x2,_0x385da6(_0xf98a15))],b);function x(_0x46f9ae){var _0x2f97c7=_0x16d5dd;return Array[_0x2f97c7(0x17b)](_0x46f9ae)[_0x2f97c7(0x156)](_0x322076=>_0x322076===_0x4a231b[_0x2f97c7(0x15c)]?'\x0a':_0x322076)[_0x2f97c7(0x189)](_0x544353=>_0x544353!==_0x4a231b[_0x2f97c7(0x168)]&&_0x544353!==_0x4a231b['BLOCK_END']&&_0x544353!==_0x4a231b[_0x2f97c7(0x185)])['join']('')[_0x2f97c7(0x164)](/\n$/,'');}var S=class extends _0x243364{[_0x16d5dd(0x18c)](){var _0x5c1ead=_0x16d5dd;return this[_0x5c1ead(0x163)]()['filter'](_0x4c1755=>_0x4c1755['blockType']===_0x28edc6[_0x5c1ead(0x169)])['map'](_0x4c449c=>this['_createFDocumentCode'](_0x4c449c[_0x5c1ead(0x175)]));}['getCode'](_0x38c5af){var _0x1d1ffd=_0x16d5dd;return this[_0x1d1ffd(0x163)]()[_0x1d1ffd(0x18b)](_0x29ea1c=>_0x29ea1c['blockId']===_0x38c5af&&_0x29ea1c[_0x1d1ffd(0x186)]===_0x28edc6['CODE'])?this['_createFDocumentCode'](_0x38c5af):null;}['getCodeAt'](_0x34c85a){var _0x13e89f=_0x16d5dd;let _0x11dae1=this[_0x13e89f(0x163)]()[_0x13e89f(0x180)](_0x3ec0e0=>_0x3ec0e0[_0x13e89f(0x186)]===_0x28edc6[_0x13e89f(0x169)]&&_0x3ec0e0['startIndex']<=_0x34c85a&&_0x34c85a<=_0x3ec0e0[_0x13e89f(0x161)]);return _0x11dae1?this[_0x13e89f(0x181)](_0x11dae1[_0x13e89f(0x175)]):null;}['findCodeByText'](_0xb5a56){var _0x5dcdea=_0x16d5dd,_0x309d7d;return(_0x309d7d=this[_0x5dcdea(0x17d)](_0xb5a56)[0x0])==null?null:_0x309d7d;}[_0x16d5dd(0x17d)](_0x5445da){var _0x146506=_0x16d5dd;let _0x528308=typeof _0x5445da==_0x146506(0x18d)?{'text':_0x5445da}:_0x5445da;return this['getCodes']()[_0x146506(0x189)](_0x29dbac=>!(_0x528308['blockId']&&_0x29dbac[_0x146506(0x174)]()!==_0x528308['blockId']||_0x528308[_0x146506(0x183)]&&!_0x29dbac[_0x146506(0x172)]()['includes'](_0x528308[_0x146506(0x183)])));}[_0x16d5dd(0x15d)](_0xcddfac={},_0x15b991={}){var _0x5898cb=_0x16d5dd,_0x66007e;let _0x7123d0=this[_0x5898cb(0x177)]['get'](_0x594aa4),_0x21bc6e=_0x2c4eb0(_0xcddfac)?{..._0x15b991,..._0xcddfac[_0x5898cb(0x167)]()}:_0xcddfac,_0x171690=(_0x66007e=_0x21bc6e[_0x5898cb(0x175)])==null?_0x1440a8(0x6):_0x66007e;return _0x7123d0[_0x5898cb(0x184)](_0x24f854['id'],{..._0x21bc6e,'blockId':_0x171690,'unitId':this[_0x5898cb(0x174)]()})?this[_0x5898cb(0x16f)](_0x171690):null;}[_0x16d5dd(0x163)](){var _0x311990=_0x16d5dd,_0x1ea0ee,_0x1f5eab;return(_0x1ea0ee=(_0x1f5eab=this[_0x311990(0x17a)]()['body'])==null?void 0x0:_0x1f5eab[_0x311990(0x173)])==null?[]:_0x1ea0ee;}[_0x16d5dd(0x181)](_0x3e95a5){var _0x26de12=_0x16d5dd;return this[_0x26de12(0x177)][_0x26de12(0x15f)](b,this,_0x3e95a5);}};function _0x401b(_0x4a0abe,_0xf7882d){_0x4a0abe=_0x4a0abe-0x154;var _0x392f2e=_0x392f();var _0x401bb6=_0x392f2e[_0x4a0abe];return _0x401bb6;}_0x243364['extend'](S);export{b as FDocumentCode};