@univerjs-pro/docs-code 1.0.0-alpha.8 → 1.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x156c25=_0x57cc;(function(_0xac7cca,_0x27ca3b){var _0x57f315=_0x57cc,_0x4138d3=_0xac7cca();while(!![]){try{var _0x1bedcd=parseInt(_0x57f315(0x177))/0x1+parseInt(_0x57f315(0x1be))/0x2*(-parseInt(_0x57f315(0x1aa))/0x3)+parseInt(_0x57f315(0x16f))/0x4*(parseInt(_0x57f315(0x1b3))/0x5)+-parseInt(_0x57f315(0x1bd))/0x6*(-parseInt(_0x57f315(0x1b1))/0x7)+-parseInt(_0x57f315(0x1bb))/0x8*(parseInt(_0x57f315(0x1b8))/0x9)+-parseInt(_0x57f315(0x19e))/0xa+-parseInt(_0x57f315(0x182))/0xb*(-parseInt(_0x57f315(0x17a))/0xc);if(_0x1bedcd===_0x27ca3b)break;else _0x4138d3['push'](_0x4138d3['shift']());}catch(_0x2366ca){_0x4138d3['push'](_0x4138d3['shift']());}}}(_0x599a,0x902dc),Object[_0x156c25(0x191)](exports,Symbol[_0x156c25(0x187)],{'value':_0x156c25(0x192)}));let e=require('@univerjs-pro/docs-code'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x4a99fd){'@babel/helpers - typeof';var _0xeea194=_0x156c25;return r=typeof Symbol==_0xeea194(0x18a)&&typeof Symbol[_0xeea194(0x17c)]==_0xeea194(0x1a8)?function(_0x533daa){return typeof _0x533daa;}:function(_0x2adb98){var _0x45fc2d=_0xeea194;return _0x2adb98&&typeof Symbol==_0x45fc2d(0x18a)&&_0x2adb98[_0x45fc2d(0x1a2)]===Symbol&&_0x2adb98!==Symbol['prototype']?_0x45fc2d(0x1a8):typeof _0x2adb98;},r(_0x4a99fd);}function i(_0x5e8a9e,_0x4061f1){var _0x122bd3=_0x156c25;if(r(_0x5e8a9e)!='object'||!_0x5e8a9e)return _0x5e8a9e;var _0xcf13a2=_0x5e8a9e[Symbol[_0x122bd3(0x188)]];if(_0xcf13a2!==void 0x0){var _0x11dabb=_0xcf13a2['call'](_0x5e8a9e,_0x4061f1||'default');if(r(_0x11dabb)!=_0x122bd3(0x1a7))return _0x11dabb;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4061f1===_0x122bd3(0x1b6)?String:Number)(_0x5e8a9e);}function a(_0x256ba5){var _0x1f25aa=_0x156c25,_0x391404=i(_0x256ba5,_0x1f25aa(0x1b6));return r(_0x391404)==_0x1f25aa(0x1a8)?_0x391404:_0x391404+'';}function o(_0x2a8964,_0x5044f1,_0xc1c52a){var _0x33a689=_0x156c25;return(_0x5044f1=a(_0x5044f1))in _0x2a8964?Object[_0x33a689(0x191)](_0x2a8964,_0x5044f1,{'value':_0xc1c52a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2a8964[_0x5044f1]=_0xc1c52a,_0x2a8964;}function _0x57cc(_0x487fb9,_0x5a0ffd){_0x487fb9=_0x487fb9-0x16e;var _0x599a21=_0x599a();var _0x57ccb8=_0x599a21[_0x487fb9];return _0x57ccb8;}function s(_0x141db8,_0xde30b2){return function(_0x5e49a4,_0x151fa4){_0xde30b2(_0x5e49a4,_0x151fa4,_0x141db8);};}function c(_0x43d973,_0x5270d,_0x2c0bbe,_0x3464fc){var _0x45b46e=_0x156c25,_0x28652a=arguments[_0x45b46e(0x1b2)],_0xb87adc=_0x28652a<0x3?_0x5270d:_0x3464fc===null?_0x3464fc=Object[_0x45b46e(0x1ad)](_0x5270d,_0x2c0bbe):_0x3464fc,_0x4bae59;if(typeof Reflect==_0x45b46e(0x1a7)&&typeof Reflect[_0x45b46e(0x1b0)]==_0x45b46e(0x18a))_0xb87adc=Reflect[_0x45b46e(0x1b0)](_0x43d973,_0x5270d,_0x2c0bbe,_0x3464fc);else{for(var _0x443a2a=_0x43d973['length']-0x1;_0x443a2a>=0x0;_0x443a2a--)(_0x4bae59=_0x43d973[_0x443a2a])&&(_0xb87adc=(_0x28652a<0x3?_0x4bae59(_0xb87adc):_0x28652a>0x3?_0x4bae59(_0x5270d,_0x2c0bbe,_0xb87adc):_0x4bae59(_0x5270d,_0x2c0bbe))||_0xb87adc);}return _0x28652a>0x3&&_0xb87adc&&Object[_0x45b46e(0x191)](_0x5270d,_0x2c0bbe,_0xb87adc),_0xb87adc;}let l=class{constructor(_0x38cdfe,_0xa04049,_0x565423){var _0x35dbf6=_0x156c25;this[_0x35dbf6(0x1ac)]=_0x38cdfe,this[_0x35dbf6(0x193)]=_0xa04049,this[_0x35dbf6(0x1af)]=_0x565423,o(this,_0x35dbf6(0x18e),void 0x0),this[_0x35dbf6(0x18e)]=this['_document'][_0x35dbf6(0x190)]();}[_0x156c25(0x190)](){var _0x3edcd0=_0x156c25;return this[_0x3edcd0(0x193)];}[_0x156c25(0x19f)](){var _0x3112c5=_0x156c25;let _0x2a7115=this['_getBlockRange']();return _0x2a7115?{'blockId':_0x2a7115[_0x3112c5(0x17b)],'endIndex':_0x2a7115[_0x3112c5(0x185)],'startIndex':_0x2a7115[_0x3112c5(0x198)]}:null;}[_0x156c25(0x1a0)](){var _0x4700d4=_0x156c25,_0x1232f2;let _0x26329f=this[_0x4700d4(0x1a6)](),_0xbc783c=(_0x1232f2=this[_0x4700d4(0x19d)]()[_0x4700d4(0x1b5)])==null?void 0x0:_0x1232f2[_0x4700d4(0x186)];return!_0x26329f||!_0xbc783c?'':u(_0xbc783c[_0x4700d4(0x196)](_0x26329f['startIndex']+0x1,_0x26329f[_0x4700d4(0x185)]));}['describe'](){var _0x4a4a66=_0x156c25;let _0x16f2bb=this[_0x4a4a66(0x19f)]();return _0x16f2bb?{..._0x16f2bb,'config':this[_0x4a4a66(0x1ba)](),'text':this['getText'](),'type':t[_0x4a4a66(0x1a4)][_0x4a4a66(0x18c)]}:null;}[_0x156c25(0x1ba)](){var _0x22c56c=_0x156c25;return(0x0,e[_0x22c56c(0x19c)])(this[_0x22c56c(0x1af)][_0x22c56c(0x1c1)](e[_0x22c56c(0x183)])[_0x22c56c(0x1ab)](this[_0x22c56c(0x18e)],this[_0x22c56c(0x193)]));}[_0x156c25(0x19a)](_0x1a2e20){var _0x311095=_0x156c25;return this[_0x311095(0x1af)][_0x311095(0x1c1)](t[_0x311095(0x1bf)])['syncExecuteCommand'](e[_0x311095(0x1ae)]['id'],{'blockId':this['_blockId'],'config':_0x1a2e20[_0x311095(0x180)],'unitId':this[_0x311095(0x18e)]});}[_0x156c25(0x197)](){var _0x283db6=_0x156c25;return this[_0x283db6(0x1af)][_0x283db6(0x1c1)](t[_0x283db6(0x1bf)])['syncExecuteCommand'](e[_0x283db6(0x1a9)]['id'],{'blockId':this[_0x283db6(0x193)],'unitId':this[_0x283db6(0x18e)]});}[_0x156c25(0x171)](){var _0x36bc7d=_0x156c25;return this[_0x36bc7d(0x1af)][_0x36bc7d(0x1c1)](t[_0x36bc7d(0x1bf)])[_0x36bc7d(0x199)](e[_0x36bc7d(0x178)]['id'],{'blockId':this[_0x36bc7d(0x193)],'unitId':this[_0x36bc7d(0x18e)]});}[_0x156c25(0x1a6)](){var _0x49993a=_0x156c25,_0x499941;let _0x4762d8=(_0x499941=this[_0x49993a(0x19d)]()[_0x49993a(0x1b5)])==null||(_0x499941=_0x499941[_0x49993a(0x194)])==null?void 0x0:_0x499941[_0x49993a(0x173)](_0x302341=>_0x302341[_0x49993a(0x17b)]===this[_0x49993a(0x193)]&&_0x302341[_0x49993a(0x174)]===t[_0x49993a(0x1a4)][_0x49993a(0x18c)]);return _0x4762d8==null?null:_0x4762d8;}['_getDocumentData'](){var _0x46442f=_0x156c25;return this[_0x46442f(0x1ac)][_0x46442f(0x1a1)]();}};function _0x599a(){var _0x48c1b8=['DocsCodeRemoveCommand','insertCode','288efxDnC','blockId','iterator','BLOCK_END','filter','Injector','config','DataStreamTreeTokenType','890505fGfiVM','DocsCodeModel','generateRandomId','endIndex','dataStream','toStringTag','toPrimitive','map','function','Inject','CODE','extend','_unitId','FDocument','getId','defineProperty','Module','_blockId','blockRanges','getCodes','slice','unwrap','startIndex','syncExecuteCommand','updateConfig','findCodeByText','normalizeDocsCodeConfig','_getDocumentData','9577240BeCGTi','getRange','getText','save','constructor','findCodes','DocumentBlockRangeType','some','_getBlockRange','object','symbol','DocsCodeUnwrapCommand','3kwXLRD','getCodeConfig','_document','getOwnPropertyDescriptor','DocsCodeUpdateCommand','_injector','decorate','7UfHSLh','length','5Mrrqen','getCode','body','string','_createFDocumentCode','3753hMqeLH','join','getConfig','1192TCvECw','_getBlockRanges','1069842pjHNPW','2061084BnJjYK','ICommandService','FDocumentCode','get','text','564712vsxiNc','getCodeAt','remove','replace','find','blockType','PARAGRAPH','includes','378550AhsZin'];_0x599a=function(){return _0x48c1b8;};return _0x599a();}l=c([s(0x2,(0x0,t[_0x156c25(0x18b)])(t[_0x156c25(0x17f)]))],l);function u(_0x250b89){var _0x269e58=_0x156c25;return Array['from'](_0x250b89)['map'](_0x1ce755=>_0x1ce755===t[_0x269e58(0x181)][_0x269e58(0x175)]?'\x0a':_0x1ce755)[_0x269e58(0x17e)](_0x353bf1=>_0x353bf1!==t['DataStreamTreeTokenType']['BLOCK_START']&&_0x353bf1!==t[_0x269e58(0x181)][_0x269e58(0x17d)]&&_0x353bf1!==t['DataStreamTreeTokenType']['SECTION_BREAK'])[_0x269e58(0x1b9)]('')[_0x269e58(0x172)](/\n$/,'');}var d=class extends n[_0x156c25(0x18f)]{['getCodes'](){var _0x5e4e30=_0x156c25;return this['_getBlockRanges']()['filter'](_0x5f1eae=>_0x5f1eae[_0x5e4e30(0x174)]===t[_0x5e4e30(0x1a4)][_0x5e4e30(0x18c)])[_0x5e4e30(0x189)](_0x3c20fe=>this['_createFDocumentCode'](_0x3c20fe['blockId']));}['getCode'](_0x29cfad){var _0xafc00f=_0x156c25;return this[_0xafc00f(0x1bc)]()[_0xafc00f(0x1a5)](_0x18b1ef=>_0x18b1ef[_0xafc00f(0x17b)]===_0x29cfad&&_0x18b1ef[_0xafc00f(0x174)]===t[_0xafc00f(0x1a4)][_0xafc00f(0x18c)])?this['_createFDocumentCode'](_0x29cfad):null;}[_0x156c25(0x170)](_0xd54b47){var _0x2e8162=_0x156c25;let _0x2cec4b=this[_0x2e8162(0x1bc)]()[_0x2e8162(0x173)](_0x3c7bf5=>_0x3c7bf5[_0x2e8162(0x174)]===t[_0x2e8162(0x1a4)][_0x2e8162(0x18c)]&&_0x3c7bf5[_0x2e8162(0x198)]<=_0xd54b47&&_0xd54b47<=_0x3c7bf5['endIndex']);return _0x2cec4b?this[_0x2e8162(0x1b7)](_0x2cec4b[_0x2e8162(0x17b)]):null;}[_0x156c25(0x19b)](_0x26aee2){var _0x2a93e8;return(_0x2a93e8=this['findCodes'](_0x26aee2)[0x0])==null?null:_0x2a93e8;}[_0x156c25(0x1a3)](_0x42c166){var _0x1342b9=_0x156c25;let _0x546ed4=typeof _0x42c166==_0x1342b9(0x1b6)?{'text':_0x42c166}:_0x42c166;return this[_0x1342b9(0x195)]()[_0x1342b9(0x17e)](_0x25cc41=>!(_0x546ed4['blockId']&&_0x25cc41[_0x1342b9(0x190)]()!==_0x546ed4['blockId']||_0x546ed4[_0x1342b9(0x16e)]&&!_0x25cc41['getText']()[_0x1342b9(0x176)](_0x546ed4['text'])));}[_0x156c25(0x179)](_0x22f336={},_0x2b8b62={}){var _0x45da67=_0x156c25,_0x206102;let _0xe0e7dc=this[_0x45da67(0x1af)][_0x45da67(0x1c1)](t[_0x45da67(0x1bf)]),_0x22cf5a=(0x0,n['isParagraphFacade'])(_0x22f336)?{..._0x2b8b62,..._0x22f336['getRange']()}:_0x22f336,_0x481cae=(_0x206102=_0x22cf5a[_0x45da67(0x17b)])==null?(0x0,t[_0x45da67(0x184)])(0x6):_0x206102;return _0xe0e7dc[_0x45da67(0x199)](e['DocsCodeInsertCommand']['id'],{..._0x22cf5a,'blockId':_0x481cae,'unitId':this[_0x45da67(0x190)]()})?this[_0x45da67(0x1b4)](_0x481cae):null;}[_0x156c25(0x1bc)](){var _0x1c8fc3=_0x156c25,_0x35450d,_0x4c492d;return(_0x35450d=(_0x4c492d=this[_0x1c8fc3(0x1a1)]()[_0x1c8fc3(0x1b5)])==null?void 0x0:_0x4c492d[_0x1c8fc3(0x194)])==null?[]:_0x35450d;}['_createFDocumentCode'](_0x310f9b){var _0x3fa531=_0x156c25;return this[_0x3fa531(0x1af)]['createInstance'](l,this,_0x310f9b);}};n[_0x156c25(0x18f)][_0x156c25(0x18d)](d),Object[_0x156c25(0x191)](exports,_0x156c25(0x1c0),{'enumerable':!0x0,'get':function(){return l;}});
1
+ var _0x4d862e=_0x2f00;function _0x4cd3(){var _0x4e7b8b=['findCodes','function','remove','getConfig','_unitId','get','prototype','findCodeByText','1335330XwqOng','_blockId','3557810yWYUQI','_createFDocumentCode','join','_getDocumentData','from','getCode','filter','blockId','CODE','object','decorate','117036vdAJpw','1719BFaDjZ','3662715IYTCoC','length','567101hnXJMm','slice','FDocument','describe','some','iterator','DocsCodeInsertCommand','toStringTag','blockRanges','string','unwrap','syncExecuteCommand','defineProperty','getRange','blockType','getOwnPropertyDescriptor','body','updateConfig','_injector','BLOCK_END','PARAGRAPH','isParagraphFacade','_getBlockRanges','DocsCodeUpdateCommand','endIndex','symbol','call','generateRandomId','constructor','getCodes','startIndex','getText','includes','createInstance','Injector','_getBlockRange','config','544OAzRVg','replace','FDocumentCode','DocumentBlockRangeType','_document','1638252lUcGzr','save','2paAiJl','default','getId','DataStreamTreeTokenType','ICommandService','Inject','insertCode'];_0x4cd3=function(){return _0x4e7b8b;};return _0x4cd3();}(function(_0xa08d68,_0x3d487a){var _0x15188d=_0x2f00,_0x1a228f=_0xa08d68();while(!![]){try{var _0x4e1f30=-parseInt(_0x15188d(0x1df))/0x1*(-parseInt(_0x15188d(0x1bf))/0x2)+parseInt(_0x15188d(0x1ce))/0x3+-parseInt(_0x15188d(0x1bd))/0x4+-parseInt(_0x15188d(0x1d0))/0x5+-parseInt(_0x15188d(0x1db))/0x6+parseInt(_0x15188d(0x1dd))/0x7+parseInt(_0x15188d(0x1b8))/0x8*(-parseInt(_0x15188d(0x1dc))/0x9);if(_0x4e1f30===_0x3d487a)break;else _0x1a228f['push'](_0x1a228f['shift']());}catch(_0x5e71d4){_0x1a228f['push'](_0x1a228f['shift']());}}}(_0x4cd3,0x5d38d),Object[_0x4d862e(0x19f)](exports,Symbol[_0x4d862e(0x1e6)],{'value':'Module'}));let e=require('@univerjs-pro/docs-code'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x546320){'@babel/helpers - typeof';var _0x533cf7=_0x4d862e;return r=typeof Symbol==_0x533cf7(0x1c7)&&typeof Symbol[_0x533cf7(0x1e4)]=='symbol'?function(_0x308737){return typeof _0x308737;}:function(_0x563a0a){var _0xed3ade=_0x533cf7;return _0x563a0a&&typeof Symbol=='function'&&_0x563a0a[_0xed3ade(0x1af)]===Symbol&&_0x563a0a!==Symbol[_0xed3ade(0x1cc)]?_0xed3ade(0x1ac):typeof _0x563a0a;},r(_0x546320);}function i(_0x5aec07,_0x2725f7){var _0x33f4db=_0x4d862e;if(r(_0x5aec07)!=_0x33f4db(0x1d9)||!_0x5aec07)return _0x5aec07;var _0x2b899e=_0x5aec07[Symbol['toPrimitive']];if(_0x2b899e!==void 0x0){var _0x5750c5=_0x2b899e[_0x33f4db(0x1ad)](_0x5aec07,_0x2725f7||_0x33f4db(0x1c0));if(r(_0x5750c5)!=_0x33f4db(0x1d9))return _0x5750c5;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x2725f7===_0x33f4db(0x1e8)?String:Number)(_0x5aec07);}function a(_0x158ed2){var _0x13d124=_0x4d862e,_0x367814=i(_0x158ed2,_0x13d124(0x1e8));return r(_0x367814)==_0x13d124(0x1ac)?_0x367814:_0x367814+'';}function _0x2f00(_0x2a9915,_0x46a716){_0x2a9915=_0x2a9915-0x19f;var _0x4cd38b=_0x4cd3();var _0x2f00fa=_0x4cd38b[_0x2a9915];return _0x2f00fa;}function o(_0x3b07c9,_0x376dd7,_0x117648){var _0x58a596=_0x4d862e;return(_0x376dd7=a(_0x376dd7))in _0x3b07c9?Object[_0x58a596(0x19f)](_0x3b07c9,_0x376dd7,{'value':_0x117648,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3b07c9[_0x376dd7]=_0x117648,_0x3b07c9;}function s(_0x3a30ea,_0x5cfa82){return function(_0x3ce9a4,_0x120f91){_0x5cfa82(_0x3ce9a4,_0x120f91,_0x3a30ea);};}function c(_0x2b30a6,_0x21b2b4,_0x2930db,_0x27cb2b){var _0x541ec1=_0x4d862e,_0x73ad27=arguments[_0x541ec1(0x1de)],_0x2d22fb=_0x73ad27<0x3?_0x21b2b4:_0x27cb2b===null?_0x27cb2b=Object[_0x541ec1(0x1a2)](_0x21b2b4,_0x2930db):_0x27cb2b,_0x42799b;if(typeof Reflect==_0x541ec1(0x1d9)&&typeof Reflect[_0x541ec1(0x1da)]==_0x541ec1(0x1c7))_0x2d22fb=Reflect['decorate'](_0x2b30a6,_0x21b2b4,_0x2930db,_0x27cb2b);else{for(var _0x3de8c5=_0x2b30a6[_0x541ec1(0x1de)]-0x1;_0x3de8c5>=0x0;_0x3de8c5--)(_0x42799b=_0x2b30a6[_0x3de8c5])&&(_0x2d22fb=(_0x73ad27<0x3?_0x42799b(_0x2d22fb):_0x73ad27>0x3?_0x42799b(_0x21b2b4,_0x2930db,_0x2d22fb):_0x42799b(_0x21b2b4,_0x2930db))||_0x2d22fb);}return _0x73ad27>0x3&&_0x2d22fb&&Object['defineProperty'](_0x21b2b4,_0x2930db,_0x2d22fb),_0x2d22fb;}let l=class{constructor(_0x1e1f54,_0x59ccf5,_0x2bd05f){var _0xbfc602=_0x4d862e;this[_0xbfc602(0x1bc)]=_0x1e1f54,this[_0xbfc602(0x1cf)]=_0x59ccf5,this[_0xbfc602(0x1a5)]=_0x2bd05f,o(this,'_unitId',void 0x0),this['_unitId']=this[_0xbfc602(0x1bc)]['getId']();}[_0x4d862e(0x1c1)](){var _0x4f7657=_0x4d862e;return this[_0x4f7657(0x1cf)];}[_0x4d862e(0x1a0)](){var _0x595f1e=_0x4d862e;let _0x12c7a7=this[_0x595f1e(0x1b6)]();return _0x12c7a7?{'blockId':_0x12c7a7['blockId'],'endIndex':_0x12c7a7[_0x595f1e(0x1ab)],'startIndex':_0x12c7a7[_0x595f1e(0x1b1)]}:null;}['getText'](){var _0xc48e9a=_0x4d862e,_0x3a66b8;let _0x1894b5=this[_0xc48e9a(0x1b6)](),_0x568ac6=(_0x3a66b8=this[_0xc48e9a(0x1d3)]()[_0xc48e9a(0x1a3)])==null?void 0x0:_0x3a66b8['dataStream'];return!_0x1894b5||!_0x568ac6?'':u(_0x568ac6[_0xc48e9a(0x1e0)](_0x1894b5['startIndex']+0x1,_0x1894b5['endIndex']));}[_0x4d862e(0x1e2)](){var _0x34bb64=_0x4d862e;let _0x10a309=this['getRange']();return _0x10a309?{..._0x10a309,'config':this[_0x34bb64(0x1c9)](),'text':this[_0x34bb64(0x1b2)](),'type':t['DocumentBlockRangeType'][_0x34bb64(0x1d8)]}:null;}[_0x4d862e(0x1c9)](){var _0x5bc4a2=_0x4d862e;return(0x0,e['normalizeDocsCodeConfig'])(this[_0x5bc4a2(0x1a5)][_0x5bc4a2(0x1cb)](e['DocsCodeModel'])['getCodeConfig'](this[_0x5bc4a2(0x1ca)],this[_0x5bc4a2(0x1cf)]));}[_0x4d862e(0x1a4)](_0x3f4b8f){var _0x4992e0=_0x4d862e;return this[_0x4992e0(0x1a5)][_0x4992e0(0x1cb)](t[_0x4992e0(0x1c3)])[_0x4992e0(0x1ea)](e[_0x4992e0(0x1aa)]['id'],{'blockId':this[_0x4992e0(0x1cf)],'config':_0x3f4b8f[_0x4992e0(0x1b7)],'unitId':this[_0x4992e0(0x1ca)]});}[_0x4d862e(0x1e9)](){var _0x5ab93e=_0x4d862e;return this['_injector'][_0x5ab93e(0x1cb)](t[_0x5ab93e(0x1c3)])['syncExecuteCommand'](e['DocsCodeUnwrapCommand']['id'],{'blockId':this[_0x5ab93e(0x1cf)],'unitId':this[_0x5ab93e(0x1ca)]});}[_0x4d862e(0x1c8)](){var _0x53224e=_0x4d862e;return this['_injector'][_0x53224e(0x1cb)](t[_0x53224e(0x1c3)])[_0x53224e(0x1ea)](e['DocsCodeRemoveCommand']['id'],{'blockId':this['_blockId'],'unitId':this[_0x53224e(0x1ca)]});}[_0x4d862e(0x1b6)](){var _0x1d2254=_0x4d862e,_0x4e4793;return((_0x4e4793=this['_getDocumentData']()['body'])==null||(_0x4e4793=_0x4e4793[_0x1d2254(0x1e7)])==null?void 0x0:_0x4e4793['find'](_0x219b86=>_0x219b86['blockId']===this[_0x1d2254(0x1cf)]&&_0x219b86[_0x1d2254(0x1a1)]===t['DocumentBlockRangeType']['CODE']))??null;}[_0x4d862e(0x1d3)](){return this['_document']['save']();}};l=c([s(0x2,(0x0,t[_0x4d862e(0x1c4)])(t[_0x4d862e(0x1b5)]))],l);function u(_0x2d8e9a){var _0x386c9e=_0x4d862e;return Array[_0x386c9e(0x1d4)](_0x2d8e9a)['map'](_0x4d1be4=>_0x4d1be4===t['DataStreamTreeTokenType'][_0x386c9e(0x1a7)]?'\x0a':_0x4d1be4)['filter'](_0x3d5216=>_0x3d5216!==t[_0x386c9e(0x1c2)]['BLOCK_START']&&_0x3d5216!==t[_0x386c9e(0x1c2)][_0x386c9e(0x1a6)]&&_0x3d5216!==t[_0x386c9e(0x1c2)]['SECTION_BREAK'])[_0x386c9e(0x1d2)]('')[_0x386c9e(0x1b9)](/\n$/,'');}var d=class extends n[_0x4d862e(0x1e1)]{[_0x4d862e(0x1b0)](){var _0x5d9b10=_0x4d862e;return this['_getBlockRanges']()[_0x5d9b10(0x1d6)](_0xea2285=>_0xea2285[_0x5d9b10(0x1a1)]===t[_0x5d9b10(0x1bb)]['CODE'])['map'](_0x1ada84=>this[_0x5d9b10(0x1d1)](_0x1ada84[_0x5d9b10(0x1d7)]));}[_0x4d862e(0x1d5)](_0x19b1f7){var _0x1e5d51=_0x4d862e;return this[_0x1e5d51(0x1a9)]()[_0x1e5d51(0x1e3)](_0x864757=>_0x864757['blockId']===_0x19b1f7&&_0x864757[_0x1e5d51(0x1a1)]===t['DocumentBlockRangeType'][_0x1e5d51(0x1d8)])?this[_0x1e5d51(0x1d1)](_0x19b1f7):null;}['getCodeAt'](_0x148ad8){var _0x1028de=_0x4d862e;let _0x2793ac=this[_0x1028de(0x1a9)]()['find'](_0x19055e=>_0x19055e[_0x1028de(0x1a1)]===t[_0x1028de(0x1bb)][_0x1028de(0x1d8)]&&_0x19055e['startIndex']<=_0x148ad8&&_0x148ad8<=_0x19055e[_0x1028de(0x1ab)]);return _0x2793ac?this[_0x1028de(0x1d1)](_0x2793ac['blockId']):null;}[_0x4d862e(0x1cd)](_0x29b7be){var _0x203958=_0x4d862e;return this[_0x203958(0x1c6)](_0x29b7be)[0x0]??null;}[_0x4d862e(0x1c6)](_0x56bd7c){var _0x337704=_0x4d862e;let _0x37e73a=typeof _0x56bd7c==_0x337704(0x1e8)?{'text':_0x56bd7c}:_0x56bd7c;return this[_0x337704(0x1b0)]()[_0x337704(0x1d6)](_0x1c95b5=>!(_0x37e73a[_0x337704(0x1d7)]&&_0x1c95b5[_0x337704(0x1c1)]()!==_0x37e73a[_0x337704(0x1d7)]||_0x37e73a['text']&&!_0x1c95b5[_0x337704(0x1b2)]()[_0x337704(0x1b3)](_0x37e73a['text'])));}[_0x4d862e(0x1c5)](_0x2751fa={},_0x249976={}){var _0x4709b4=_0x4d862e;let _0x578dc5=this[_0x4709b4(0x1a5)][_0x4709b4(0x1cb)](t[_0x4709b4(0x1c3)]),_0x42823a=(0x0,n[_0x4709b4(0x1a8)])(_0x2751fa)?{..._0x249976,..._0x2751fa[_0x4709b4(0x1a0)]()}:_0x2751fa,_0x54c1d7=_0x42823a[_0x4709b4(0x1d7)]??(0x0,t[_0x4709b4(0x1ae)])(0x6);return _0x578dc5[_0x4709b4(0x1ea)](e[_0x4709b4(0x1e5)]['id'],{..._0x42823a,'blockId':_0x54c1d7,'unitId':this[_0x4709b4(0x1c1)]()})?this[_0x4709b4(0x1d5)](_0x54c1d7):null;}[_0x4d862e(0x1a9)](){var _0x41e5f9=_0x4d862e,_0x17be7f;return((_0x17be7f=this[_0x41e5f9(0x1be)]()[_0x41e5f9(0x1a3)])==null?void 0x0:_0x17be7f[_0x41e5f9(0x1e7)])??[];}['_createFDocumentCode'](_0x1566a2){var _0x3dfc8a=_0x4d862e;return this[_0x3dfc8a(0x1a5)][_0x3dfc8a(0x1b4)](l,this,_0x1566a2);}};n[_0x4d862e(0x1e1)]['extend'](d),Object[_0x4d862e(0x19f)](exports,_0x4d862e(0x1ba),{'enumerable':!0x0,'get':function(){return l;}});
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x197120=_0x3472;(function(_0x18012a,_0x17833d){const _0x57f2d8=_0x3472,_0x3a6667=_0x18012a();while(!![]){try{const _0x4cc782=parseInt(_0x57f2d8(0x272))/0x1*(parseInt(_0x57f2d8(0x246))/0x2)+-parseInt(_0x57f2d8(0x1ff))/0x3*(parseInt(_0x57f2d8(0x24d))/0x4)+parseInt(_0x57f2d8(0x28b))/0x5*(-parseInt(_0x57f2d8(0x204))/0x6)+parseInt(_0x57f2d8(0x220))/0x7+parseInt(_0x57f2d8(0x22f))/0x8+-parseInt(_0x57f2d8(0x2a6))/0x9*(parseInt(_0x57f2d8(0x23e))/0xa)+parseInt(_0x57f2d8(0x206))/0xb;if(_0x4cc782===_0x17833d)break;else _0x3a6667['push'](_0x3a6667['shift']());}catch(_0x5ae3e0){_0x3a6667['push'](_0x3a6667['shift']());}}}(_0x1fb4,0x9359c),Object[_0x197120(0x1ec)](exports,Symbol[_0x197120(0x297)],{'value':_0x197120(0x260)}));let e=require('@univerjs/core'),t=require('rxjs'),n=require('@univerjs/docs'),r=require('@univerjs-pro/license');const i={'language':_0x197120(0x249),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function a(_0x14f767){return{...i,..._0x14f767};}function o(_0x5e9694){const _0x453e44=_0x197120;var _0x5638b4;let _0x43dc11=(_0x5638b4=_0x5e9694==null?void 0x0:_0x5e9694[_0x453e44(0x274)])==null?{}:_0x5638b4;return{'codes':Object[_0x453e44(0x26e)](Object['entries'](_0x43dc11)[_0x453e44(0x22b)](([_0x51a1f3,_0x436da7])=>[_0x51a1f3,a(_0x436da7)]))};}function s(_0x52dc0e,_0x3fc40f,_0x2eabd5){const _0x4a0ae0=_0x197120;let _0x2e65dc=o(_0x52dc0e);return _0x2e65dc[_0x4a0ae0(0x274)][_0x3fc40f]=a({..._0x2e65dc[_0x4a0ae0(0x274)][_0x3fc40f],..._0x2eabd5}),_0x2e65dc;}function _0x1fb4(){const _0x1bca11=['_configService','BooleanNumber','docs-code.mutation.set-config','intersectsOperationalIntervals','PARAGRAPH','TextX','prototype','removeUnit','DependentOn','TRUE','startOffset','BLOCK_END','DocsCodeConsumeBoundaryDeleteCommand','UniverInstanceType','deserialize','Document\x20body\x20is\x20required','getInstance','5DGGDFX','docs-code.config','dataStream','_docsCodeModel','insertionMode','blockRanges','model','shiftExclusiveRangeOnDelete','replaceOp','delete','bullet','RemoveDocsCodeConfigMutation','toStringTag','editOp','deleteLength','DOCS_CODE_PLUGIN','DocsCodeModel','parse','keepNext','forEach','spaceAbove','_initResource','cursorOffset','indentStart','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','customDecorations','Disposable','18837SAcGjt','indexOf','paragraphs','pluginName','config','keys','columnGroups','symbol','getSingleDataStreamChange','getBodySliceForTextXAction','shiftInclusiveRangeOnInsert','getUnit','BuildTextUtils','serialize','getParagraphContentStartOffset','docs-code.command.insert-below','createParagraphId','getOwnPropertyDescriptor','docs-code.command.update','getTextRanges','@univerjs-pro/docs-code','min','selectionManager','RichTextEditingMutation','insert','every','defineProperty','containsInteriorInsertionOffset','body','clear','max','insertOp','sectionBreaks','string','commandService','blockType','generateRandomId','getBody','paragraphStyle','iterator','isHeaderFooterSelection','getUnitId','add','isCodeBoundaryDelete','default','36iArqHG','_resourceManagerService','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','convert-paragraph','function','6635268TwNiDu','replaceDocRanges','16635498WIIhbx','disposeWithMe','filter','nextDocumentData','FALSE','call','Inject','customRanges','removeCode','DocumentBlockRangeType','sort','_injector','decorate','insertLength','getParagraphFollowingBlockOffset','COMMAND','previousDocumentData','endIndex','dispose','get','set','endTokenOffset','UniverLicensePlugin','reduce','UniverDocsCodePlugin','textStyle','4136734GKfOkh','unitId','retain','some','documentData','CommandType','entries','docs-code.command.exit','_config','stringify','DocsCodeInsertCommand','map','paragraphStartIndex','nextMetadata','find','8113968sssWTo','UNIVER_DOC','getParagraphContentStartOffsets','columns','_setResource','spaceBelow','onStarting','metadata','registerCommand','compose','next','getBlockRangeInterval','JSONX','endsWith','docs-code.command.remove','1930gczEkQ','isArray','tables','normalizeDocsCodeMetadataResource','Subject','paragraph','normalizeDocsCodeConfig','TABLE_CELL_END','9354NeKtHw','DataStreamTreeTokenType','_change$','javascript','MUTATION','getCodeConfig','textRuns','336276UMOkBC','docs-code.command.consume-boundary-delete','DocsCodeInsertBelowCommand','handler','insert-new','slice','IResourceManagerService','_commandService','paragraphId','buildCancelEmptyCodeParagraphActions','direction','Plugin','object','syncExecuteCommand','start','endOffset','startTokenOffset','removeOp','customBlocks','Module','IUniverInstanceService','ICommandService','widowControl','DocsCodeCancelEmptyParagraphCommand','merge','docs-code.command.unwrap','startIndex','monospace','_resources','DocsCodeRemoveCommand','SetDocsCodeConfigMutation','BLOCK_START','TABLE_CELL_START','fromEntries','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','push','CODE','1cMATHm','DocSelectionManagerService','codes','getCurrentUnitOfType','blockId','DOC_CODE_PLUGIN','length','type'];_0x1fb4=function(){return _0x1bca11;};return _0x1fb4();}function c(_0x325aba,_0x1978e7){const _0x20eb54=_0x197120;let _0x3b73b6=o(_0x325aba);return delete _0x3b73b6[_0x20eb54(0x274)][_0x1978e7],_0x3b73b6;}function l(_0x216ebe){'@babel/helpers - typeof';const _0x3dd946=_0x197120;return l=typeof Symbol=='function'&&typeof Symbol[_0x3dd946(0x1f9)]=='symbol'?function(_0x367981){return typeof _0x367981;}:function(_0x3ea9a3){const _0x1af599=_0x3dd946;return _0x3ea9a3&&typeof Symbol==_0x1af599(0x203)&&_0x3ea9a3['constructor']===Symbol&&_0x3ea9a3!==Symbol[_0x1af599(0x280)]?'symbol':typeof _0x3ea9a3;},l(_0x216ebe);}function u(_0x229cab,_0x27f519){const _0x304a44=_0x197120;if(l(_0x229cab)!='object'||!_0x229cab)return _0x229cab;var _0x1e6926=_0x229cab[Symbol['toPrimitive']];if(_0x1e6926!==void 0x0){var _0x2ca997=_0x1e6926[_0x304a44(0x20b)](_0x229cab,_0x27f519||_0x304a44(0x1fe));if(l(_0x2ca997)!=_0x304a44(0x259))return _0x2ca997;throw TypeError(_0x304a44(0x26f));}return(_0x27f519==='string'?String:Number)(_0x229cab);}function d(_0x1eb48f){const _0x136de8=_0x197120;var _0x5ce6c7=u(_0x1eb48f,_0x136de8(0x1f3));return l(_0x5ce6c7)==_0x136de8(0x1d9)?_0x5ce6c7:_0x5ce6c7+'';}function f(_0x46babe,_0x568e63,_0x5f8032){const _0x1ec607=_0x197120;return(_0x568e63=d(_0x568e63))in _0x46babe?Object[_0x1ec607(0x1ec)](_0x46babe,_0x568e63,{'value':_0x5f8032,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x46babe[_0x568e63]=_0x5f8032,_0x46babe;}var p=class extends e[_0x197120(0x2a5)]{constructor(..._0xf45946){const _0x5a6a89=_0x197120;super(..._0xf45946),f(this,_0x5a6a89(0x269),new Map()),f(this,_0x5a6a89(0x248),new t[(_0x5a6a89(0x242))]()),f(this,'change$',this[_0x5a6a89(0x248)]['asObservable']());}[_0x197120(0x24b)](_0x3be706,_0x114253){const _0x278f8c=_0x197120;return o(this[_0x278f8c(0x269)]['get'](_0x3be706))[_0x278f8c(0x274)][_0x114253];}['setCodeConfig'](_0x3fef48,_0x24b60a,_0x3277d4){const _0x531ae0=_0x197120;this[_0x531ae0(0x233)](_0x3fef48,_0x24b60a,s(this['_resources'][_0x531ae0(0x219)](_0x3fef48),_0x24b60a,_0x3277d4));}[_0x197120(0x20e)](_0x34c0e6,_0x3cf2e6){const _0x1ea2c0=_0x197120;this[_0x1ea2c0(0x233)](_0x34c0e6,_0x3cf2e6,c(this[_0x1ea2c0(0x269)][_0x1ea2c0(0x219)](_0x34c0e6),_0x3cf2e6));}[_0x197120(0x1df)](_0x56be3f){const _0x2def19=_0x197120;return o(this[_0x2def19(0x269)]['get'](_0x56be3f));}[_0x197120(0x288)](_0x58ec7b,_0x9bfcb9){const _0x37cbe0=_0x197120;this[_0x37cbe0(0x269)][_0x37cbe0(0x21a)](_0x58ec7b,o(_0x9bfcb9)),this[_0x37cbe0(0x248)][_0x37cbe0(0x239)]({'unitId':_0x58ec7b});}[_0x197120(0x281)](_0x3cf467){const _0x4e742b=_0x197120;this[_0x4e742b(0x269)][_0x4e742b(0x294)](_0x3cf467),this['_change$'][_0x4e742b(0x239)]({'unitId':_0x3cf467});}[_0x197120(0x218)](){const _0x265bb9=_0x197120;super['dispose'](),this[_0x265bb9(0x269)][_0x265bb9(0x1ef)](),this[_0x265bb9(0x248)]['complete']();}['_setResource'](_0xc5c9fe,_0x149007,_0x1516f4){const _0x307ca5=_0x197120;this[_0x307ca5(0x269)][_0x307ca5(0x21a)](_0xc5c9fe,_0x1516f4),this['_change$'][_0x307ca5(0x239)]({'unitId':_0xc5c9fe,'blockId':_0x149007});}};const m={'id':_0x197120(0x27c),'type':e[_0x197120(0x225)][_0x197120(0x24a)],'handler':(_0x3e8997,_0x529f20)=>!(_0x529f20!=null&&_0x529f20[_0x197120(0x221)])||!_0x529f20[_0x197120(0x276)]?!0x1:(_0x3e8997['get'](p)['setCodeConfig'](_0x529f20['unitId'],_0x529f20[_0x197120(0x276)],_0x529f20[_0x197120(0x2aa)]),!0x0)},h={'id':'docs-code.mutation.remove-config','type':e[_0x197120(0x225)][_0x197120(0x24a)],'handler':(_0x35d2fb,_0x1d671d)=>!(_0x1d671d!=null&&_0x1d671d[_0x197120(0x221)])||!_0x1d671d[_0x197120(0x276)]?!0x1:(_0x35d2fb[_0x197120(0x219)](p)[_0x197120(0x20e)](_0x1d671d[_0x197120(0x221)],_0x1d671d[_0x197120(0x276)]),!0x0)},g=_0x197120(0x268);var _=class extends Error{constructor(_0x1aeb8f=_0x197120(0x201)){super(_0x1aeb8f);}};function v(_0x2e004c){const _0x2293b0=_0x197120;var _0x5b9356,_0x38c14c,_0x40bf90;let _0x315f7d=T(_0x2e004c['documentData']),_0x329ec7=D(_0x315f7d),_0x3e4cf0=te(_0x2e004c[_0x2293b0(0x284)],_0x2e004c[_0x2293b0(0x25c)]),_0x4addf9=_0x3e4cf0?(_0x5b9356=_0x329ec7[_0x2293b0(0x290)])==null?void 0x0:_0x5b9356['find'](_0x199637=>{const _0x5ee447=_0x2293b0;let _0x41aec2=(0x0,e[_0x5ee447(0x23a)])(_0x199637);return _0x41aec2[_0x5ee447(0x284)]===_0x3e4cf0['startOffset']&&_0x41aec2['endOffset']===_0x3e4cf0[_0x5ee447(0x25c)];}):void 0x0,{startOffset:_0x49fd95,endOffset:_0x539e70}=_0x4addf9?_0x3e4cf0:de(_0x329ec7,_0x2e004c[_0x2293b0(0x284)],_0x2e004c[_0x2293b0(0x25c)],_0x2e004c[_0x2293b0(0x28f)]);if(!_0x4addf9&&ne(_0x329ec7,_0x49fd95,_0x539e70))throw new _(_0x2293b0(0x2a3));let _0x3fdab5=me(_0x329ec7,_0x49fd95,_0x539e70),_0x18af99=(_0x38c14c=_0x4addf9==null?void 0x0:_0x4addf9[_0x2293b0(0x276)])==null?_0x2e004c[_0x2293b0(0x276)]:_0x38c14c,_0x16064c=s(_0x2e004c[_0x2293b0(0x236)],_0x18af99,{...i,..._0x2e004c[_0x2293b0(0x2aa)]});if(_0x4addf9)return _0x4addf9['blockType']=e[_0x2293b0(0x20f)][_0x2293b0(0x271)],ee(_0x329ec7,_0x49fd95,_0x539e70),w(_0x329ec7,_0x49fd95,_0x539e70,_0x3fdab5),j(_0x329ec7,_0x4addf9),{'nextDocumentData':_0x315f7d,'nextMetadata':_0x16064c,'cursorOffset':_0x49fd95+0x1};if(_0x49fd95===_0x539e70){var _0x1da8bc,_0x6bd042;let _0x8b718d=''+e[_0x2293b0(0x247)]['BLOCK_START']+e['DataStreamTreeTokenType'][_0x2293b0(0x27e)]+e[_0x2293b0(0x247)][_0x2293b0(0x285)];M(_0x329ec7,_0x49fd95,_0x8b718d,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e[_0x2293b0(0x1e2)])(new Set((_0x1da8bc=_0x329ec7[_0x2293b0(0x2a8)])==null?void 0x0:_0x1da8bc[_0x2293b0(0x22b)](_0x318ed0=>_0x318ed0[_0x2293b0(0x255)]))),'paragraphStyle':C(!0x0,!0x0,_0x3fdab5)}],'blockRanges':[{'blockId':_0x18af99,'blockType':e['DocumentBlockRangeType'][_0x2293b0(0x271)],'startIndex':0x0,'endIndex':_0x8b718d[_0x2293b0(0x278)]-0x1}]});let _0x147e03=(_0x6bd042=_0x329ec7[_0x2293b0(0x290)])==null?void 0x0:_0x6bd042['find'](_0x1d0ba9=>_0x1d0ba9[_0x2293b0(0x276)]===_0x18af99);return _0x147e03&&j(_0x329ec7,_0x147e03),{'nextDocumentData':_0x315f7d,'nextMetadata':_0x16064c,'cursorOffset':_0x49fd95+0x1};}M(_0x329ec7,_0x539e70,e[_0x2293b0(0x247)][_0x2293b0(0x285)]),M(_0x329ec7,_0x49fd95,e[_0x2293b0(0x247)][_0x2293b0(0x26c)]),w(_0x329ec7,_0x49fd95,_0x539e70+0x1,_0x3fdab5);let _0x5f9d77={'blockId':_0x18af99,'blockType':e[_0x2293b0(0x20f)][_0x2293b0(0x271)],'startIndex':_0x49fd95,'endIndex':_0x539e70+0x1};return _0x329ec7[_0x2293b0(0x290)]=[...(_0x40bf90=_0x329ec7[_0x2293b0(0x290)])==null?[]:_0x40bf90,_0x5f9d77]['sort']((_0x36322b,_0x20d23b)=>_0x36322b[_0x2293b0(0x267)]-_0x20d23b[_0x2293b0(0x267)]),j(_0x329ec7,_0x5f9d77),{'nextDocumentData':_0x315f7d,'nextMetadata':_0x16064c,'cursorOffset':_0x49fd95+0x1};}function ee(_0x229a58,_0x318f0d,_0x264fd0){const _0x3f0306=_0x197120;var _0x4b26c1;((_0x4b26c1=_0x229a58[_0x3f0306(0x2a8)])==null?[]:_0x4b26c1)['filter'](_0x1bdace=>_0x1bdace[_0x3f0306(0x267)]>_0x318f0d&&_0x1bdace[_0x3f0306(0x267)]<_0x264fd0)['forEach'](_0x1f5ed4=>{const _0x52918f=_0x3f0306;var _0x52f301;let _0x571246={...(_0x52f301=_0x1f5ed4[_0x52918f(0x1f8)])==null?{}:_0x52f301};delete _0x571246[_0x52918f(0x29f)],delete _0x571246[_0x52918f(0x234)],_0x1f5ed4[_0x52918f(0x1f8)]=_0x571246;});}function te(_0x524cda,_0xc07253){const _0x2448f9=_0x197120;return _0x524cda==null||_0xc07253==null||_0x524cda===_0xc07253?null:{'startOffset':Math['min'](_0x524cda,_0xc07253),'endOffset':Math[_0x2448f9(0x1f0)](_0x524cda,_0xc07253)};}function ne(_0x5c40ef,_0x370a0c,_0x9491){const _0x2b980c=_0x197120;var _0x368330;return((_0x368330=_0x5c40ef[_0x2b980c(0x290)])==null?[]:_0x368330)[_0x2b980c(0x223)](_0x44d5cc=>{const _0x1c22bd=_0x2b980c;let _0x3f19c9=(0x0,e[_0x1c22bd(0x23a)])(_0x44d5cc);return _0x370a0c===_0x9491?(0x0,e[_0x1c22bd(0x1ed)])(_0x3f19c9,_0x370a0c):(0x0,e[_0x1c22bd(0x27d)])(_0x3f19c9,{'startOffset':_0x370a0c,'endOffset':_0x9491});});}function y(_0x40818e){const _0x3647a1=_0x197120;return{'nextDocumentData':T(_0x40818e[_0x3647a1(0x224)]),'nextMetadata':s(_0x40818e[_0x3647a1(0x236)],_0x40818e['blockId'],_0x40818e[_0x3647a1(0x2aa)]),'cursorOffset':0x0};}function b(_0x520e57){const _0x2ec649=_0x197120;let _0xb6ae25=T(_0x520e57[_0x2ec649(0x224)]),_0x2dedc7=D(_0xb6ae25),_0x26931e=S(_0x2dedc7,_0x520e57['blockId']);if(!_0x26931e)return null;let _0x53e149=le(_0x2dedc7,_0x26931e);return{'nextDocumentData':_0xb6ae25,'nextMetadata':c(_0x520e57['metadata'],_0x520e57[_0x2ec649(0x276)]),'cursorOffset':_0x53e149};}function re(_0xf38302){const _0x176177=_0x197120;var _0x496831;let _0x3397f6=T(_0xf38302[_0x176177(0x224)]),_0x2d76df=D(_0x3397f6),_0x1e6fae=S(_0x2d76df,_0xf38302[_0x176177(0x276)]);if(!_0x1e6fae)return null;let _0x571674=(0x0,e[_0x176177(0x23a)])(_0x1e6fae);return N(_0x2d76df,_0x571674[_0x176177(0x284)],_0x571674[_0x176177(0x25c)]),_0x2d76df[_0x176177(0x290)]=(_0x496831=_0x2d76df[_0x176177(0x290)])==null?void 0x0:_0x496831[_0x176177(0x208)](_0xb2af88=>_0xb2af88[_0x176177(0x276)]!==_0xf38302[_0x176177(0x276)]),{'nextDocumentData':_0x3397f6,'nextMetadata':c(_0xf38302[_0x176177(0x236)],_0xf38302[_0x176177(0x276)]),'cursorOffset':_0x1e6fae[_0x176177(0x267)]};}function x(_0x205491){const _0x575027=_0x197120;let _0x2ba781=T(_0x205491[_0x575027(0x224)]),_0x47af62=D(_0x2ba781),_0x2cc4b1=oe(_0x47af62,_0x205491['cursorOffset']);return _0x2cc4b1&&ie(_0x2ba781,_0x47af62,_0x2cc4b1,_0x205491[_0x575027(0x2a1)],_0x205491[_0x575027(0x22c)])||null;}function ie(_0x164305,_0x5f57fc,_0x49b042,_0x5927dd,_0x30a0b1){const _0x5a0d53=_0x197120;let _0x30c73d=ye(_0x5f57fc,_0x49b042,_0x5927dd,_0x30a0b1);if(!_0x30c73d)return null;let _0x52ad96=_0x30c73d[_0x5a0d53(0x21b)]-0x1;return N(_0x5f57fc,_0x30c73d[_0x5a0d53(0x243)][_0x5a0d53(0x267)],_0x30c73d[_0x5a0d53(0x243)]['startIndex']+0x1),{'nextDocumentData':_0x164305,'cursorOffset':_0x52ad96};}function S(_0xa9e4b6,_0x5df795){const _0x17112f=_0x197120;var _0x3e43d2;return _0xa9e4b6==null||(_0x3e43d2=_0xa9e4b6['blockRanges'])==null?void 0x0:_0x3e43d2[_0x17112f(0x22e)](_0x632f5c=>_0x632f5c[_0x17112f(0x1f5)]===e[_0x17112f(0x20f)][_0x17112f(0x271)]&&_0x632f5c['blockId']===_0x5df795);}function ae(_0x49c060){const _0x16d829=_0x197120;var _0x2093f5;let _0x1cd86e=_0x49c060[_0x16d829(0x224)][_0x16d829(0x1ee)];if(!_0x1cd86e)return!0x1;let _0x437dba=_0x49c060[_0x16d829(0x257)]==='left'?_0x49c060[_0x16d829(0x2a1)]-0x1:_0x49c060[_0x16d829(0x2a1)],_0x12425c=_0x49c060[_0x16d829(0x257)]==='right'?_0x49c060[_0x16d829(0x2a1)]+0x1:_0x437dba;return((_0x2093f5=_0x1cd86e[_0x16d829(0x290)])==null?[]:_0x2093f5)['some'](_0x3b5693=>_0x3b5693[_0x16d829(0x1f5)]===e['DocumentBlockRangeType'][_0x16d829(0x271)]?_0x437dba===_0x3b5693[_0x16d829(0x267)]||_0x437dba===_0x3b5693['endIndex']||_0x12425c===_0x3b5693[_0x16d829(0x267)]||_0x12425c===_0x3b5693[_0x16d829(0x217)]:!0x1);}function oe(_0x268270,_0xcad8){const _0x3712d4=_0x197120;var _0x4c9c99;return(_0x4c9c99=_0x268270['blockRanges'])==null?void 0x0:_0x4c9c99[_0x3712d4(0x22e)](_0x3e92d7=>{const _0x4c1ccb=_0x3712d4;let _0x41e6cd=A(_0x3e92d7);return _0x3e92d7[_0x4c1ccb(0x1f5)]===e[_0x4c1ccb(0x20f)]['CODE']&&_0x3e92d7[_0x4c1ccb(0x267)]<=_0xcad8&&_0xcad8<=_0x41e6cd+0x2;});}function C(_0x2ae623,_0x3dbb31,_0x17a004=!0x1){const _0x22cf29=_0x197120;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':e[_0x22cf29(0x27b)]['TRUE'],'keepNext':_0x3dbb31?e[_0x22cf29(0x27b)][_0x22cf29(0x20a)]:e['BooleanNumber'][_0x22cf29(0x283)],'widowControl':e[_0x22cf29(0x27b)][_0x22cf29(0x283)],..._0x2ae623&&_0x17a004?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':g,'fs':0xc}};}function _0x3472(_0x174e54,_0x3f01a2){_0x174e54=_0x174e54-0x1d8;const _0x1fb415=_0x1fb4();let _0x3472cb=_0x1fb415[_0x174e54];return _0x3472cb;}function w(_0x57ed82,_0x40d7e4,_0x2f6ddb,_0x2c24ca=!0x1){const _0x17cf06=_0x197120;var _0x2a54e4;let _0x444e20=((_0x2a54e4=_0x57ed82[_0x17cf06(0x2a8)])==null?[]:_0x2a54e4)[_0x17cf06(0x208)](_0x298ee8=>_0x298ee8[_0x17cf06(0x267)]>_0x40d7e4&&_0x298ee8[_0x17cf06(0x267)]<_0x2f6ddb);_0x444e20[_0x17cf06(0x29e)]((_0x2f41de,_0x4fe295)=>{const _0x5e558b=_0x17cf06;var _0x47e546;_0x2f41de[_0x5e558b(0x1f8)]={...(_0x47e546=_0x2f41de['paragraphStyle'])==null?{}:_0x47e546,...C(_0x4fe295===0x0,_0x4fe295===_0x444e20[_0x5e558b(0x278)]-0x1,_0x2c24ca)};});}function se(_0x129683){const _0x599f1a=_0x197120;var _0x400981,_0x3eaf8e;let _0x28fb8c={..._0x129683==null?{}:_0x129683};return delete _0x28fb8c['indentEnd'],delete _0x28fb8c[_0x599f1a(0x2a2)],delete _0x28fb8c[_0x599f1a(0x29f)],delete _0x28fb8c[_0x599f1a(0x234)],delete _0x28fb8c['keepLines'],delete _0x28fb8c[_0x599f1a(0x29d)],delete _0x28fb8c[_0x599f1a(0x263)],((_0x400981=_0x28fb8c['textStyle'])==null?void 0x0:_0x400981['ff'])===g&&((_0x3eaf8e=_0x28fb8c[_0x599f1a(0x21f)])==null?void 0x0:_0x3eaf8e['fs'])===0xc&&delete _0x28fb8c[_0x599f1a(0x21f)],_0x28fb8c;}function ce(_0x106b6e,_0x1e5b89){const _0x24ed4d=_0x197120;var _0x51bbad;let _0x5e3241=A(_0x1e5b89);return((_0x51bbad=_0x106b6e[_0x24ed4d(0x2a8)])==null?[]:_0x51bbad)[_0x24ed4d(0x208)](_0x282e3d=>_0x282e3d['startIndex']>_0x1e5b89[_0x24ed4d(0x267)]&&_0x282e3d[_0x24ed4d(0x267)]<_0x5e3241);}function le(_0x1cdf15,_0x5950a1){const _0x1ab58f=_0x197120;var _0x59c731;let _0x4a7e30=A(_0x5950a1);return ce(_0x1cdf15,_0x5950a1)[_0x1ab58f(0x29e)](_0x3a3a2e=>{const _0x22fb27=_0x1ab58f;_0x3a3a2e[_0x22fb27(0x1f8)]=se(_0x3a3a2e[_0x22fb27(0x1f8)]);}),N(_0x1cdf15,_0x4a7e30,_0x4a7e30+0x1),N(_0x1cdf15,_0x5950a1[_0x1ab58f(0x267)],_0x5950a1[_0x1ab58f(0x267)]+0x1),_0x1cdf15[_0x1ab58f(0x290)]=(_0x59c731=_0x1cdf15['blockRanges'])==null?void 0x0:_0x59c731[_0x1ab58f(0x208)](_0x228a25=>_0x228a25[_0x1ab58f(0x276)]!==_0x5950a1[_0x1ab58f(0x276)]),_0x5950a1['startIndex'];}function T(_0x190335){const _0x5a66ac=_0x197120;return{..._0x190335,'body':_0x190335[_0x5a66ac(0x1ee)]?ue(_0x190335[_0x5a66ac(0x1ee)]):_0x190335['body']};}function ue(_0x4c99b7){const _0x5b0d78=_0x197120;var _0x301f65,_0x40bc2a,_0x1373f2,_0x266746,_0xe88a7f,_0xc9ceee,_0x249383,_0x27035e,_0x2cfc9b;return{..._0x4c99b7,'paragraphs':(_0x301f65=_0x4c99b7[_0x5b0d78(0x2a8)])==null?void 0x0:_0x301f65[_0x5b0d78(0x22b)](_0xe4afa4=>({..._0xe4afa4,'bullet':E(_0xe4afa4[_0x5b0d78(0x295)]),'paragraphStyle':E(_0xe4afa4[_0x5b0d78(0x1f8)])})),'sectionBreaks':(_0x40bc2a=_0x4c99b7[_0x5b0d78(0x1f2)])==null?void 0x0:_0x40bc2a['map'](_0xfac2ea=>({..._0xfac2ea})),'textRuns':(_0x1373f2=_0x4c99b7[_0x5b0d78(0x24c)])==null?void 0x0:_0x1373f2['map'](_0x408a42=>({..._0x408a42})),'tables':(_0x266746=_0x4c99b7[_0x5b0d78(0x240)])==null?void 0x0:_0x266746[_0x5b0d78(0x22b)](_0x329982=>({..._0x329982})),'columnGroups':(_0xe88a7f=_0x4c99b7[_0x5b0d78(0x1d8)])==null?void 0x0:_0xe88a7f[_0x5b0d78(0x22b)](_0x4dd9bd=>{const _0x508131=_0x5b0d78;var _0x21f31f;return{..._0x4dd9bd,'columns':(_0x21f31f=_0x4dd9bd[_0x508131(0x232)])==null?void 0x0:_0x21f31f['map'](_0x291b7c=>E(_0x291b7c))};}),'blockRanges':(_0xc9ceee=_0x4c99b7[_0x5b0d78(0x290)])==null?void 0x0:_0xc9ceee['map'](_0x5e2784=>({..._0x5e2784})),'customRanges':(_0x249383=_0x4c99b7[_0x5b0d78(0x20d)])==null?void 0x0:_0x249383[_0x5b0d78(0x22b)](_0x274247=>({..._0x274247})),'customDecorations':(_0x27035e=_0x4c99b7['customDecorations'])==null?void 0x0:_0x27035e[_0x5b0d78(0x22b)](_0x10f2f3=>({..._0x10f2f3})),'customBlocks':(_0x2cfc9b=_0x4c99b7[_0x5b0d78(0x25f)])==null?void 0x0:_0x2cfc9b[_0x5b0d78(0x22b)](_0x3090a5=>({..._0x3090a5}))};}function E(_0x53b2de){const _0x1c869a=_0x197120;return Array[_0x1c869a(0x23f)](_0x53b2de)?_0x53b2de[_0x1c869a(0x22b)](_0x40cbfc=>E(_0x40cbfc)):!_0x53b2de||typeof _0x53b2de!='object'?_0x53b2de:Object[_0x1c869a(0x26e)](Object[_0x1c869a(0x226)](_0x53b2de)[_0x1c869a(0x22b)](([_0x5e3603,_0x2f6313])=>[_0x5e3603,E(_0x2f6313)]));}function D(_0x1b2e02){const _0xa9aeb9=_0x197120;if(!_0x1b2e02['body'])throw Error(_0xa9aeb9(0x289));return _0x1b2e02['body'];}function de(_0x589609,_0xda57bc,_0x544a6b,_0x5833a0=_0x197120(0x202)){const _0x7f1346=_0x197120;if(_0xda57bc==null||_0x544a6b==null){let _0x4c9e4d=pe(_0x589609);return{'startOffset':_0x4c9e4d,'endOffset':_0x4c9e4d};}let _0x42a02b=Math['min'](_0xda57bc,_0x544a6b),_0x1908ff=Math[_0x7f1346(0x1f0)](_0xda57bc,_0x544a6b),_0x54b9d0=ve(_0x589609,_0x42a02b,_0x1908ff);return _0x42a02b===_0x1908ff?_0x5833a0===_0x7f1346(0x251)?{'startOffset':_0x42a02b,'endOffset':_0x1908ff}:fe(_0x589609,_0x42a02b,_0x54b9d0):he(_0x589609,_0x42a02b,_0x1908ff,_0x54b9d0);}function fe(_0x352961,_0x3fa96d,_0x3407a4){const _0x533604=_0x197120;let _0x330443=ge(_0x352961,_0x3fa96d);if(_0x330443){let _0x682803=O(_0x352961,_0x330443,_0x3407a4);if(_0x682803<_0x330443[_0x533604(0x267)])return{'startOffset':_0x682803,'endOffset':_0x3407a4?Math[_0x533604(0x1e7)](_0x330443[_0x533604(0x267)]+0x1,_0x3407a4[_0x533604(0x25c)]):_0x330443[_0x533604(0x267)]+0x1};}let _0x1ac167=_0x3fa96d===0x0&&_0x352961[_0x533604(0x28d)][0x0]===e[_0x533604(0x247)][_0x533604(0x27e)]?0x1:_0x3fa96d;return{'startOffset':_0x1ac167,'endOffset':_0x1ac167};}function pe(_0x76534f){const _0xea4b64=_0x197120;return _0x76534f[_0xea4b64(0x28d)][_0xea4b64(0x23c)](e[_0xea4b64(0x247)]['SECTION_BREAK'])?Math[_0xea4b64(0x1f0)](0x0,_0x76534f[_0xea4b64(0x28d)][_0xea4b64(0x278)]-0x1):_0x76534f['dataStream'][_0xea4b64(0x278)];}function me(_0x1275ff,_0x2c4da1,_0x5833a4){const _0x1d7ba9=_0x197120;var _0x7c500b;let _0x2f11ee=Math[_0x1d7ba9(0x1e7)](_0x2c4da1,_0x5833a4),_0x3c30f8=Math[_0x1d7ba9(0x1f0)](_0x2c4da1,_0x5833a4);return!!((_0x7c500b=_0x1275ff['tables'])!=null&&_0x7c500b[_0x1d7ba9(0x223)](_0x4fb368=>_0x2f11ee>_0x4fb368[_0x1d7ba9(0x267)]&&_0x2f11ee<_0x4fb368[_0x1d7ba9(0x217)]||_0x3c30f8>_0x4fb368[_0x1d7ba9(0x267)]&&_0x3c30f8<_0x4fb368[_0x1d7ba9(0x217)]||_0x2f11ee<=_0x4fb368[_0x1d7ba9(0x267)]&&_0x3c30f8>=_0x4fb368[_0x1d7ba9(0x217)]));}function he(_0x3daa9d,_0x59afd4,_0x3e409e,_0x5d5be5){const _0x37a9ab=_0x197120;var _0x3850dd,_0xf17c53;let _0x3cf3cb=[...(_0x3850dd=_0x3daa9d[_0x37a9ab(0x2a8)])==null?[]:_0x3850dd]['sort']((_0x841ee2,_0x254b01)=>_0x841ee2[_0x37a9ab(0x267)]-_0x254b01['startIndex']),_0x291b64=(0x0,e[_0x37a9ab(0x231)])(_0x3daa9d),_0x42457e=_0x3cf3cb[_0x37a9ab(0x22e)](_0x1a0e68=>O(_0x3daa9d,_0x1a0e68,_0x5d5be5,_0x291b64)<=_0x59afd4&&_0x59afd4<=_0x1a0e68[_0x37a9ab(0x267)]),_0x24b186=(_0xf17c53=_0x3cf3cb[_0x37a9ab(0x22e)](_0x203c63=>_0x203c63[_0x37a9ab(0x267)]>=_0x3e409e-0x1))==null?_0x3cf3cb[_0x3cf3cb[_0x37a9ab(0x278)]-0x1]:_0xf17c53;return{'startOffset':_0x42457e?O(_0x3daa9d,_0x42457e,_0x5d5be5,_0x291b64):_0x59afd4,'endOffset':_0x24b186?_e(_0x24b186,_0x5d5be5):_0x3e409e};}function ge(_0xf5b76e,_0x482919){const _0x3fb8ec=_0x197120;var _0x394e3f;let _0x553fdd=[...(_0x394e3f=_0xf5b76e['paragraphs'])==null?[]:_0x394e3f][_0x3fb8ec(0x210)]((_0x247149,_0x500489)=>_0x247149[_0x3fb8ec(0x267)]-_0x500489[_0x3fb8ec(0x267)]),_0x493bac=(0x0,e[_0x3fb8ec(0x231)])(_0xf5b76e);return _0x553fdd[_0x3fb8ec(0x22e)](_0x150e4c=>{const _0x44cec2=_0x3fb8ec;var _0x26a856;return((_0x26a856=_0x493bac[_0x44cec2(0x219)](_0x150e4c[_0x44cec2(0x267)]))==null?0x0:_0x26a856)<=_0x482919&&_0x482919<=_0x150e4c[_0x44cec2(0x267)];});}function O(_0x4cbf62,_0x3c235f,_0x49e378,_0x27c801){const _0x3512be=_0x197120;var _0x2c8bea;let _0x39e802=(_0x2c8bea=_0x27c801==null?void 0x0:_0x27c801[_0x3512be(0x219)](_0x3c235f['startIndex']))==null?(0x0,e['getParagraphContentStartOffset'])(_0x4cbf62,_0x3c235f):_0x2c8bea;return _0x49e378?Math[_0x3512be(0x1f0)](_0x39e802,_0x49e378['startOffset']):_0x39e802;}function _e(_0x555048,_0x1f7bdd){const _0x14c018=_0x197120;let _0x28e9e2=_0x555048[_0x14c018(0x267)]+0x1;return _0x1f7bdd?Math[_0x14c018(0x1e7)](_0x28e9e2,_0x1f7bdd['endOffset']):_0x28e9e2;}function ve(_0x149b38,_0xcc4ace,_0x910b84){const _0x650ebd=_0x197120;let _0x5e3d21=k(_0x149b38,_0xcc4ace),_0x47aeb0=k(_0x149b38,_0xcc4ace===_0x910b84?_0x910b84:Math['max'](_0xcc4ace,_0x910b84-0x1));if(!(!_0x5e3d21&&!_0x47aeb0)){if(!_0x5e3d21||!_0x47aeb0||_0x5e3d21[_0x650ebd(0x25d)]!==_0x47aeb0[_0x650ebd(0x25d)]||_0x5e3d21[_0x650ebd(0x21b)]!==_0x47aeb0[_0x650ebd(0x21b)])throw new _();return _0x5e3d21;}}function k(_0x4f7838,_0x3d6f09){const _0x3a7051=_0x197120;let _0x14fd58=_0x4f7838[_0x3a7051(0x28d)],_0x898aff=-0x1;for(let _0x514fb5=Math['min'](_0x3d6f09,_0x14fd58['length']-0x1);_0x514fb5>=0x0;_0x514fb5--){let _0x11e2f2=_0x14fd58[_0x514fb5];if(_0x11e2f2===e['DataStreamTreeTokenType']['TABLE_CELL_END'])return;if(_0x11e2f2===e[_0x3a7051(0x247)][_0x3a7051(0x26d)]){_0x898aff=_0x514fb5;break;}}if(_0x898aff<0x0)return;let _0x7ae688=_0x14fd58[_0x3a7051(0x2a7)](e[_0x3a7051(0x247)][_0x3a7051(0x245)],_0x898aff+0x1);if(!(_0x7ae688<0x0||_0x3d6f09<_0x898aff+0x1||_0x3d6f09>_0x7ae688-0x1))return{'startOffset':_0x898aff+0x1,'endOffset':Math[_0x3a7051(0x1f0)](_0x898aff+0x1,_0x7ae688-0x1),'startTokenOffset':_0x898aff,'endTokenOffset':_0x7ae688};}function A(_0xda30ea){const _0x165b4d=_0x197120;return(0x0,e[_0x165b4d(0x23a)])(_0xda30ea)[_0x165b4d(0x25c)]-0x1;}function ye(_0x34f251,_0x204e70,_0x37784c,_0xc53cf9){const _0x5d6fed=_0x197120;var _0x5c17fb;let _0x2fc324=A(_0x204e70),_0x1e916a=((_0x5c17fb=_0x34f251[_0x5d6fed(0x2a8)])==null?[]:_0x5c17fb)[_0x5d6fed(0x22e)](_0x20aac0=>_0x20aac0[_0x5d6fed(0x267)]===_0x2fc324+0x1);if(!_0x1e916a||_0xc53cf9!=null&&_0x1e916a[_0x5d6fed(0x267)]!==_0xc53cf9||_0x37784c!=null&&(_0x37784c<_0x2fc324||_0x37784c>_0x1e916a[_0x5d6fed(0x267)]+0x1)||_0x34f251[_0x5d6fed(0x28d)][_0x1e916a['startIndex']]!==e['DataStreamTreeTokenType'][_0x5d6fed(0x27e)])return null;let _0x3236d5=(0x0,e[_0x5d6fed(0x1e0)])(_0x34f251,_0x1e916a),_0x8c7d27=_0x34f251[_0x5d6fed(0x28d)][_0x5d6fed(0x252)](_0x3236d5,_0x1e916a[_0x5d6fed(0x267)]);return Array['from'](_0x8c7d27)[_0x5d6fed(0x1eb)](_0x1ca777=>_0x1ca777===e['DataStreamTreeTokenType'][_0x5d6fed(0x285)])?{'paragraph':_0x1e916a,'endTokenOffset':_0x2fc324}:null;}function j(_0x267a45,_0x764154){const _0x25f21b=_0x197120;var _0x5914a2;let _0x42451b=A(_0x764154),_0x297877=_0x267a45[_0x25f21b(0x28d)][_0x42451b+0x1];(_0x297877===e['DataStreamTreeTokenType']['SECTION_BREAK']||_0x297877===void 0x0)&&M(_0x267a45,_0x42451b+0x1,e['DataStreamTreeTokenType'][_0x25f21b(0x27e)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,e[_0x25f21b(0x1e2)])(new Set((_0x5914a2=_0x267a45[_0x25f21b(0x2a8)])==null?void 0x0:_0x5914a2[_0x25f21b(0x22b)](_0x1cbf71=>_0x1cbf71[_0x25f21b(0x255)])))}]});}function M(_0x5a1ca2,_0x26ecd2,_0x36273e,_0xf4248={}){const _0x147b55=_0x197120;var _0x58cf46,_0x4e9c58;if(_0x36273e){if(_0x5a1ca2[_0x147b55(0x28d)]=''+_0x5a1ca2[_0x147b55(0x28d)][_0x147b55(0x252)](0x0,_0x26ecd2)+_0x36273e+_0x5a1ca2[_0x147b55(0x28d)][_0x147b55(0x252)](_0x26ecd2),be(_0x5a1ca2,_0x26ecd2,_0x36273e['length']),(_0x58cf46=_0xf4248[_0x147b55(0x2a8)])!=null&&_0x58cf46['length']){var _0x229b47;_0x5a1ca2[_0x147b55(0x2a8)]=[...(_0x229b47=_0x5a1ca2[_0x147b55(0x2a8)])==null?[]:_0x229b47,..._0xf4248[_0x147b55(0x2a8)]['map'](_0x4bc0b7=>({..._0x4bc0b7,'startIndex':_0x4bc0b7['startIndex']+_0x26ecd2}))]['sort']((_0x1c171d,_0x499343)=>_0x1c171d[_0x147b55(0x267)]-_0x499343['startIndex']);}if((_0x4e9c58=_0xf4248[_0x147b55(0x290)])!=null&&_0x4e9c58[_0x147b55(0x278)]){var _0x3ce830;_0x5a1ca2[_0x147b55(0x290)]=[...(_0x3ce830=_0x5a1ca2[_0x147b55(0x290)])==null?[]:_0x3ce830,..._0xf4248[_0x147b55(0x290)][_0x147b55(0x22b)](_0x23e807=>({..._0x23e807,'startIndex':_0x23e807[_0x147b55(0x267)]+_0x26ecd2,'endIndex':_0x23e807['endIndex']+_0x26ecd2}))][_0x147b55(0x210)]((_0x240ee0,_0x4f0f61)=>_0x240ee0[_0x147b55(0x267)]-_0x4f0f61[_0x147b55(0x267)]);}}}function N(_0x569745,_0x4452b3,_0x441dbf){const _0x3eaf62=_0x197120;let _0x427433=_0x441dbf-_0x4452b3;_0x569745['dataStream']=''+_0x569745['dataStream'][_0x3eaf62(0x252)](0x0,_0x4452b3)+_0x569745[_0x3eaf62(0x28d)][_0x3eaf62(0x252)](_0x441dbf),xe(_0x569745,_0x4452b3,_0x427433);}function be(_0x42c455,_0x2c6aef,_0x500a57){const _0x1b61e7=_0x197120;_0x42c455[_0x1b61e7(0x2a8)]=P(_0x42c455['paragraphs'],_0x2c6aef,_0x500a57),_0x42c455['sectionBreaks']=P(_0x42c455[_0x1b61e7(0x1f2)],_0x2c6aef,_0x500a57),_0x42c455[_0x1b61e7(0x25f)]=P(_0x42c455[_0x1b61e7(0x25f)],_0x2c6aef,_0x500a57),_0x42c455[_0x1b61e7(0x24c)]=Se(_0x42c455[_0x1b61e7(0x24c)],_0x2c6aef,_0x500a57),_0x42c455['tables']=Ce(_0x42c455[_0x1b61e7(0x240)],_0x2c6aef,_0x500a57),_0x42c455[_0x1b61e7(0x1d8)]=I(_0x42c455['columnGroups'],_0x2c6aef,_0x500a57),_0x42c455[_0x1b61e7(0x20d)]=I(_0x42c455[_0x1b61e7(0x20d)],_0x2c6aef,_0x500a57),_0x42c455['customDecorations']=I(_0x42c455[_0x1b61e7(0x2a4)],_0x2c6aef,_0x500a57),_0x42c455['blockRanges']=I(_0x42c455[_0x1b61e7(0x290)],_0x2c6aef,_0x500a57);}function xe(_0x58c129,_0x22b76c,_0x2cb003){const _0x2785ef=_0x197120;var _0x22f73c,_0xd34e70;_0x58c129['paragraphs']=F(_0x58c129[_0x2785ef(0x2a8)],_0x22b76c,_0x2cb003),_0x58c129[_0x2785ef(0x1f2)]=F(_0x58c129['sectionBreaks'],_0x22b76c,_0x2cb003),_0x58c129[_0x2785ef(0x25f)]=F(_0x58c129['customBlocks'],_0x22b76c,_0x2cb003),_0x58c129['textRuns']=(_0x22f73c=R((_0xd34e70=_0x58c129['textRuns'])==null?void 0x0:_0xd34e70['map'](_0x36cf6b=>({..._0x36cf6b,'startIndex':_0x36cf6b['st'],'endIndex':_0x36cf6b['ed']})),_0x22b76c,_0x2cb003))==null?void 0x0:_0x22f73c[_0x2785ef(0x22b)](_0x153305=>{let {startIndex:_0x5876e5,endIndex:_0x422607,..._0x52cd29}=_0x153305;return{..._0x52cd29,'st':_0x5876e5,'ed':_0x422607};}),_0x58c129[_0x2785ef(0x240)]=R(_0x58c129[_0x2785ef(0x240)],_0x22b76c,_0x2cb003),_0x58c129[_0x2785ef(0x1d8)]=L(_0x58c129[_0x2785ef(0x1d8)],_0x22b76c,_0x2cb003),_0x58c129[_0x2785ef(0x20d)]=L(_0x58c129[_0x2785ef(0x20d)],_0x22b76c,_0x2cb003),_0x58c129[_0x2785ef(0x2a4)]=L(_0x58c129[_0x2785ef(0x2a4)],_0x22b76c,_0x2cb003),_0x58c129[_0x2785ef(0x290)]=L(_0x58c129[_0x2785ef(0x290)],_0x22b76c,_0x2cb003);}function P(_0x1dfc07,_0x4507f6,_0x2960ba){const _0xd894c0=_0x197120;return _0x1dfc07==null?void 0x0:_0x1dfc07[_0xd894c0(0x22b)](_0x56435d=>_0x56435d[_0xd894c0(0x267)]>=_0x4507f6?{..._0x56435d,'startIndex':_0x56435d[_0xd894c0(0x267)]+_0x2960ba}:_0x56435d);}function F(_0x16e890,_0x41dcc1,_0x558bff){const _0x1beed8=_0x197120;let _0x3ae861=_0x41dcc1+_0x558bff;return _0x16e890==null?void 0x0:_0x16e890[_0x1beed8(0x22b)](_0x44073c=>_0x44073c[_0x1beed8(0x267)]>=_0x41dcc1&&_0x44073c['startIndex']<_0x3ae861?null:_0x44073c[_0x1beed8(0x267)]>=_0x3ae861?{..._0x44073c,'startIndex':_0x44073c[_0x1beed8(0x267)]-_0x558bff}:_0x44073c)[_0x1beed8(0x208)](_0x2a64ac=>_0x2a64ac!=null);}function Se(_0x47f838,_0x2a21cd,_0x4c89f2){const _0x2c7fd3=_0x197120;return _0x47f838==null?void 0x0:_0x47f838[_0x2c7fd3(0x22b)](_0x320f24=>_0x320f24['st']>=_0x2a21cd?{..._0x320f24,'st':_0x320f24['st']+_0x4c89f2,'ed':_0x320f24['ed']+_0x4c89f2}:_0x320f24['ed']>_0x2a21cd?{..._0x320f24,'ed':_0x320f24['ed']+_0x4c89f2}:_0x320f24);}function I(_0x30c629,_0x5b645b,_0x26a09b){const _0x18b3c6=_0x197120;return _0x30c629==null?void 0x0:_0x30c629[_0x18b3c6(0x22b)](_0x56f740=>(0x0,e[_0x18b3c6(0x1dc)])(_0x56f740,_0x5b645b,_0x26a09b));}function Ce(_0x45470f,_0x3c3d10,_0x473ea9){const _0x3939f9=_0x197120;return _0x45470f==null?void 0x0:_0x45470f[_0x3939f9(0x22b)](_0x39f876=>(0x0,e['shiftExclusiveRangeOnInsert'])(_0x39f876,_0x3c3d10,_0x473ea9));}function L(_0x595ff3,_0x4d9047,_0x268d46){const _0x28cbce=_0x197120;return _0x595ff3==null?void 0x0:_0x595ff3['map'](_0x14bdcd=>(0x0,e['shiftInclusiveRangeOnDelete'])(_0x14bdcd,_0x4d9047,_0x268d46))[_0x28cbce(0x208)](_0x5a8e1a=>_0x5a8e1a!=null);}function R(_0x17d8a5,_0x2805c0,_0x46072e){const _0x1d18d1=_0x197120;return _0x17d8a5==null?void 0x0:_0x17d8a5[_0x1d18d1(0x22b)](_0x34275d=>(0x0,e[_0x1d18d1(0x292)])(_0x34275d,_0x2805c0,_0x46072e))[_0x1d18d1(0x208)](_0x567efb=>_0x567efb!=null);}const z={'id':_0x197120(0x1e1),'type':e[_0x197120(0x225)]['COMMAND'],'handler':_0x2a08a6=>{const _0x454abd=_0x197120;var _0x4ff19f;if((0x0,n[_0x454abd(0x1fa)])(G(_0x2a08a6)))return!0x1;let _0x5a4de1=(0x0,n['getContentInsertRange'])(_0x2a08a6);if(_0x5a4de1)return _0x2a08a6['get'](e[_0x454abd(0x262)])[_0x454abd(0x25a)](B['id'],{'startOffset':_0x5a4de1[_0x454abd(0x284)],'endOffset':_0x5a4de1['endOffset'],'insertionMode':_0x454abd(0x251),'unitId':_0x5a4de1[_0x454abd(0x221)]});let _0x245848=Ae(_0x2a08a6);if(!_0x245848)return!0x1;let _0x1b281e=(_0x4ff19f=_0x2a08a6[_0x454abd(0x219)](e[_0x454abd(0x261)])[_0x454abd(0x275)](e[_0x454abd(0x287)][_0x454abd(0x230)]))==null?void 0x0:_0x4ff19f[_0x454abd(0x1f7)](),_0x48b744=_0x1b281e?(0x0,e[_0x454abd(0x214)])(_0x1b281e,_0x245848):_0x245848[_0x454abd(0x267)]+0x1;return _0x2a08a6['get'](e['ICommandService'])['syncExecuteCommand'](B['id'],{'startOffset':_0x48b744,'endOffset':_0x48b744});}},we={'id':_0x197120(0x24e),'type':e[_0x197120(0x225)]['COMMAND'],'handler':()=>!0x0},B={'id':'docs-code.command.insert','type':e[_0x197120(0x225)]['COMMAND'],'handler':(_0x30fa81,_0x52f34b)=>{const _0x2646c9=_0x197120;var _0x2b4016;let _0x529eb2=W(_0x30fa81,_0x52f34b==null?void 0x0:_0x52f34b['unitId']);if(!_0x529eb2)return!0x1;let _0x3be07a=G(_0x30fa81);if((0x0,n[_0x2646c9(0x1fa)])(_0x3be07a))return!0x1;let _0x342c52=_0x529eb2[_0x2646c9(0x291)]['serialize'](_0x529eb2[_0x2646c9(0x221)]),_0x313a37=De(_0x52f34b,_0x3be07a),_0x448c6f=Oe(_0x529eb2[_0x2646c9(0x216)],_0x313a37);if(_0x448c6f){if(_0x448c6f[_0x2646c9(0x1f5)]!==e['DocumentBlockRangeType'][_0x2646c9(0x271)])return!0x1;let _0x1bff78=b({'blockId':_0x448c6f[_0x2646c9(0x276)],'documentData':_0x529eb2['previousDocumentData'],'metadata':_0x342c52});if(!_0x1bff78)return!0x1;let _0x40f23b=Y(_0x529eb2[_0x2646c9(0x1f4)],_0x529eb2[_0x2646c9(0x1e8)],_0x529eb2[_0x2646c9(0x221)],_0x529eb2[_0x2646c9(0x216)],_0x1bff78[_0x2646c9(0x209)],B['id'],_0x1bff78[_0x2646c9(0x2a1)]);return _0x40f23b&&_0x1bff78[_0x2646c9(0x22d)]&&_0x529eb2[_0x2646c9(0x291)][_0x2646c9(0x288)](_0x529eb2[_0x2646c9(0x221)],_0x1bff78[_0x2646c9(0x22d)]),_0x40f23b;}let _0x690755=(_0x2b4016=_0x52f34b==null?void 0x0:_0x52f34b[_0x2646c9(0x276)])==null?(0x0,e[_0x2646c9(0x1f6)])(0x6):_0x2b4016,_0xfd47d9;try{_0xfd47d9=v({'blockId':_0x690755,'config':_0x52f34b==null?void 0x0:_0x52f34b[_0x2646c9(0x2aa)],'documentData':_0x529eb2['previousDocumentData'],'endOffset':_0x313a37==null?void 0x0:_0x313a37[_0x2646c9(0x25c)],'insertionMode':_0x52f34b==null?void 0x0:_0x52f34b[_0x2646c9(0x28f)],'metadata':_0x342c52,'startOffset':_0x313a37==null?void 0x0:_0x313a37[_0x2646c9(0x284)]});}catch(_0x190cf1){if(_0x190cf1 instanceof _)return!0x1;throw _0x190cf1;}let _0x43b80e=Y(_0x529eb2[_0x2646c9(0x1f4)],_0x529eb2['selectionManager'],_0x529eb2['unitId'],_0x529eb2['previousDocumentData'],_0xfd47d9[_0x2646c9(0x209)],B['id'],_0xfd47d9['cursorOffset']);return _0x43b80e&&_0xfd47d9[_0x2646c9(0x22d)]&&_0x529eb2['model'][_0x2646c9(0x288)](_0x529eb2[_0x2646c9(0x221)],_0xfd47d9[_0x2646c9(0x22d)]),_0x43b80e;}},Te={'id':_0x197120(0x1e4),'type':e[_0x197120(0x225)][_0x197120(0x215)],'handler':(_0x494c68,_0xb3777b)=>{const _0x29fecb=_0x197120;if(!_0xb3777b)return!0x1;let _0x46982a=W(_0x494c68,_0xb3777b['unitId']);if(!_0x46982a)return!0x1;let _0x51886a=y({'blockId':_0xb3777b[_0x29fecb(0x276)],'config':_0xb3777b[_0x29fecb(0x2aa)],'documentData':_0x46982a[_0x29fecb(0x216)],'metadata':_0x46982a[_0x29fecb(0x291)][_0x29fecb(0x1df)](_0x46982a[_0x29fecb(0x221)])});return _0x51886a[_0x29fecb(0x22d)]&&_0x46982a['model']['deserialize'](_0x46982a[_0x29fecb(0x221)],_0x51886a['nextMetadata']),!0x0;}},Ee={'id':_0x197120(0x227),'type':e[_0x197120(0x225)][_0x197120(0x215)],'handler':(_0xc3e0c6,_0x2f50b1)=>V[_0x197120(0x250)](_0xc3e0c6,_0x2f50b1)},V={'id':_0x197120(0x266),'type':e[_0x197120(0x225)]['COMMAND'],'handler':(_0x1b4091,_0x34e275)=>{const _0x324d25=_0x197120;if(!_0x34e275)return!0x1;let _0x4af649=W(_0x1b4091,_0x34e275==null?void 0x0:_0x34e275['unitId']);if(!_0x4af649)return!0x1;let _0x2815db=b({'blockId':_0x34e275[_0x324d25(0x276)],'documentData':_0x4af649[_0x324d25(0x216)],'metadata':_0x4af649['model'][_0x324d25(0x1df)](_0x4af649['unitId'])});if(!_0x2815db)return!0x1;let _0x4a9769=Y(_0x4af649[_0x324d25(0x1f4)],_0x4af649['selectionManager'],_0x4af649[_0x324d25(0x221)],_0x4af649[_0x324d25(0x216)],_0x2815db[_0x324d25(0x209)],V['id'],_0x2815db[_0x324d25(0x2a1)]);return _0x4a9769&&_0x2815db[_0x324d25(0x22d)]&&_0x4af649['model'][_0x324d25(0x288)](_0x4af649[_0x324d25(0x221)],_0x2815db['nextMetadata']),_0x4a9769;}},H={'id':_0x197120(0x23d),'type':e[_0x197120(0x225)][_0x197120(0x215)],'handler':(_0x2fdf3c,_0x1297d7)=>{const _0x4776e3=_0x197120;if(!_0x1297d7)return!0x1;let _0x5d31e0=W(_0x2fdf3c,_0x1297d7==null?void 0x0:_0x1297d7[_0x4776e3(0x221)]);if(!_0x5d31e0)return!0x1;let _0x2df48f=re({'blockId':_0x1297d7[_0x4776e3(0x276)],'documentData':_0x5d31e0[_0x4776e3(0x216)],'metadata':_0x5d31e0[_0x4776e3(0x291)][_0x4776e3(0x1df)](_0x5d31e0[_0x4776e3(0x221)])});if(!_0x2df48f)return!0x1;let _0x1e7de2=Y(_0x5d31e0['commandService'],_0x5d31e0[_0x4776e3(0x1e8)],_0x5d31e0[_0x4776e3(0x221)],_0x5d31e0['previousDocumentData'],_0x2df48f[_0x4776e3(0x209)],H['id'],_0x2df48f[_0x4776e3(0x2a1)]);return _0x1e7de2&&_0x2df48f[_0x4776e3(0x22d)]&&_0x5d31e0[_0x4776e3(0x291)]['deserialize'](_0x5d31e0[_0x4776e3(0x221)],_0x2df48f[_0x4776e3(0x22d)]),_0x1e7de2;}},U={'id':'docs-code.command.cancel-empty-paragraph','type':e[_0x197120(0x225)][_0x197120(0x215)],'handler':(_0x298b19,_0x16c1bd)=>{const _0x33eefe=_0x197120;var _0x5993cb,_0x166a38;let _0x14ac69=W(_0x298b19,_0x16c1bd==null?void 0x0:_0x16c1bd[_0x33eefe(0x221)]);if(!_0x14ac69)return!0x1;let _0x2ea4c8=(_0x5993cb=_0x16c1bd==null?void 0x0:_0x16c1bd[_0x33eefe(0x2a1)])==null?(_0x166a38=G(_0x298b19))==null?void 0x0:_0x166a38[_0x33eefe(0x284)]:_0x5993cb;if(_0x2ea4c8==null)return!0x1;let _0x3717aa=x({'cursorOffset':_0x2ea4c8,'documentData':_0x14ac69[_0x33eefe(0x216)],'paragraphStartIndex':_0x16c1bd==null?void 0x0:_0x16c1bd['paragraphStartIndex']});return _0x3717aa?Y(_0x14ac69[_0x33eefe(0x1f4)],_0x14ac69[_0x33eefe(0x1e8)],_0x14ac69['unitId'],_0x14ac69[_0x33eefe(0x216)],_0x3717aa[_0x33eefe(0x209)],U['id'],_0x3717aa[_0x33eefe(0x2a1)]):!0x1;}};function W(_0x55ecad,_0x319820){const _0x118c12=_0x197120;let _0x5e96f1=_0x55ecad[_0x118c12(0x219)](e[_0x118c12(0x261)]),_0x439fb3=_0x319820?_0x5e96f1[_0x118c12(0x1dd)](_0x319820,e['UniverInstanceType'][_0x118c12(0x230)]):_0x5e96f1[_0x118c12(0x275)](e['UniverInstanceType']['UNIVER_DOC']);return _0x439fb3?{'commandService':_0x55ecad[_0x118c12(0x219)](e[_0x118c12(0x262)]),'model':_0x55ecad[_0x118c12(0x219)](p),'previousDocumentData':_0x439fb3['getSnapshot'](),'selectionManager':_0x55ecad['get'](n['DocSelectionManagerService']),'unitId':_0x439fb3[_0x118c12(0x1fb)]()}:null;}function G(_0x213e57){const _0x56a634=_0x197120;var _0x2e4e5a;return(_0x2e4e5a=_0x213e57[_0x56a634(0x219)](n[_0x56a634(0x273)])[_0x56a634(0x1e5)]())==null?void 0x0:_0x2e4e5a[0x0];}function De(_0x4275ab,_0x5b7fba){const _0x2e8b81=_0x197120;var _0x288f29,_0x1de1c1;let _0x1be427=(_0x288f29=_0x4275ab==null?void 0x0:_0x4275ab['startOffset'])==null?_0x5b7fba==null?void 0x0:_0x5b7fba[_0x2e8b81(0x284)]:_0x288f29,_0x56784b=(_0x1de1c1=_0x4275ab==null?void 0x0:_0x4275ab[_0x2e8b81(0x25c)])==null?_0x5b7fba==null?void 0x0:_0x5b7fba[_0x2e8b81(0x25c)]:_0x1de1c1;if(_0x1be427!=null&&_0x56784b!=null)return{'endOffset':Math[_0x2e8b81(0x1f0)](_0x1be427,_0x56784b),'startOffset':Math[_0x2e8b81(0x1e7)](_0x1be427,_0x56784b)};}function Oe(_0x4066dc,_0x396494){const _0x3e6eef=_0x197120;var _0x59e1bd;if(!_0x396494)return;let _0x4ed358=ke(_0x396494);return(_0x59e1bd=_0x4066dc[_0x3e6eef(0x1ee)])==null||(_0x59e1bd=_0x59e1bd['blockRanges'])==null?void 0x0:_0x59e1bd[_0x3e6eef(0x22e)](_0x4e87e2=>{const _0x58c41d=_0x3e6eef;let _0x2d6df0=(0x0,e[_0x58c41d(0x23a)])(_0x4e87e2);return _0x396494[_0x58c41d(0x284)]===_0x396494['endOffset']?(0x0,e[_0x58c41d(0x1ed)])(_0x2d6df0,_0x4ed358):(0x0,e['containsStreamIndex'])(_0x2d6df0,_0x4ed358);});}function ke(_0x2b6a5d){const _0x5d69f5=_0x197120;return _0x2b6a5d[_0x5d69f5(0x284)]===_0x2b6a5d[_0x5d69f5(0x25c)]?_0x2b6a5d['startOffset']:_0x2b6a5d[_0x5d69f5(0x284)]+0x1;}function Ae(_0x432128){const _0x1c62f4=_0x197120;var _0x2c033b,_0x52666c,_0x20c76b;let _0x1ddf7c=G(_0x432128);if(!_0x1ddf7c)return null;let _0x3e8ad2=_0x432128[_0x1c62f4(0x219)](e[_0x1c62f4(0x261)])[_0x1c62f4(0x275)](e[_0x1c62f4(0x287)][_0x1c62f4(0x230)]),_0x30d2a8=_0x3e8ad2==null?void 0x0:_0x3e8ad2['getBody']();return _0x30d2a8?(_0x2c033b=e[_0x1c62f4(0x1de)]['range']['getParagraphsInRange'](_0x1ddf7c,(_0x52666c=_0x30d2a8[_0x1c62f4(0x2a8)])==null?[]:_0x52666c,(_0x20c76b=_0x30d2a8[_0x1c62f4(0x28d)])==null?'':_0x20c76b)[0x0])==null?null:_0x2c033b:null;}function je(_0x16062d,_0x11ec2a){const _0x51fef8=_0x197120;let _0x14531b=_0x16062d[_0x51fef8(0x1ee)],_0x125690=_0x11ec2a[_0x51fef8(0x1ee)],_0xfe2ba4=(0x0,e[_0x51fef8(0x1da)])(_0x14531b,_0x125690);return[_0xfe2ba4&&_0x125690?Me(_0x125690,_0xfe2ba4):null,_0xfe2ba4?null:Ne(_0x14531b,_0x125690)]['filter'](Boolean)[_0x51fef8(0x21d)]((_0x2c0a47,_0x290f4e)=>e[_0x51fef8(0x23b)][_0x51fef8(0x238)](_0x2c0a47,_0x290f4e),null);}function Me(_0x18f138,_0x29d64d){const _0xaf5796=_0x197120;let _0x3aa770=new e[(_0xaf5796(0x27f))]();return _0x3aa770[_0xaf5796(0x222)](_0x29d64d[_0xaf5796(0x25b)]),_0x29d64d[_0xaf5796(0x213)]>0x0&&_0x3aa770[_0xaf5796(0x1ea)](_0x29d64d[_0xaf5796(0x213)],(0x0,e[_0xaf5796(0x1db)])(_0x18f138,_0x29d64d['start'],_0x29d64d['start']+_0x29d64d[_0xaf5796(0x213)],!0x1)),_0x29d64d[_0xaf5796(0x299)]>0x0&&_0x3aa770[_0xaf5796(0x294)](_0x29d64d[_0xaf5796(0x299)]),e[_0xaf5796(0x23b)][_0xaf5796(0x28a)]()[_0xaf5796(0x298)](_0x3aa770['serialize'](),[_0xaf5796(0x1ee)]);}function Ne(_0x12bade,_0x230332){const _0x21c9fe=_0x197120;let _0x264921=[],_0x1a5425=_0x12bade?K(_0x12bade):void 0x0,_0x3fc808=_0x230332?K(_0x230332):void 0x0;for(let _0x445773 of Pe)q(e[_0x21c9fe(0x23b)]['getInstance'](),['body',_0x445773],_0x1a5425==null?void 0x0:_0x1a5425[_0x445773],_0x3fc808==null?void 0x0:_0x3fc808[_0x445773],_0x264921);return _0x264921[_0x21c9fe(0x21d)]((_0x37f19a,_0x5201d8)=>e['JSONX'][_0x21c9fe(0x238)](_0x37f19a,_0x5201d8),null);}const Pe=[_0x197120(0x2a8),'sectionBreaks',_0x197120(0x240),'columnGroups',_0x197120(0x290),_0x197120(0x25f),_0x197120(0x20d),_0x197120(0x2a4),'textRuns'];function K(_0x2afb26){return _0x2afb26;}function q(_0x395ae9,_0x85a36,_0x24d80c,_0x428237,_0x1623ce){const _0x5bad3d=_0x197120;if(!J(_0x24d80c,_0x428237)){if(_0x24d80c==null){_0x1623ce[_0x5bad3d(0x270)](_0x395ae9[_0x5bad3d(0x1f1)](_0x85a36,_0x428237));return;}if(_0x428237==null){_0x1623ce[_0x5bad3d(0x270)](_0x395ae9[_0x5bad3d(0x25e)](_0x85a36,_0x24d80c));return;}if(Array[_0x5bad3d(0x23f)](_0x24d80c)&&Array[_0x5bad3d(0x23f)](_0x428237)){Fe(_0x395ae9,_0x85a36,_0x24d80c,_0x428237,_0x1623ce);return;}if(Ie(_0x24d80c)&&Ie(_0x428237)){new Set([...Object['keys'](_0x24d80c),...Object[_0x5bad3d(0x2ab)](_0x428237)])[_0x5bad3d(0x29e)](_0x4473da=>{q(_0x395ae9,[..._0x85a36,_0x4473da],_0x24d80c[_0x4473da],_0x428237[_0x4473da],_0x1623ce);});return;}_0x1623ce[_0x5bad3d(0x270)](_0x395ae9[_0x5bad3d(0x293)](_0x85a36,_0x24d80c,_0x428237));}}function Fe(_0x47fa25,_0x506fe2,_0x1fa7da,_0x371a5b,_0x8077c1){const _0xb328d9=_0x197120;if(_0x1fa7da['length']===_0x371a5b[_0xb328d9(0x278)]){_0x1fa7da[_0xb328d9(0x29e)]((_0x518481,_0x3bad26)=>q(_0x47fa25,[..._0x506fe2,_0x3bad26],_0x518481,_0x371a5b[_0x3bad26],_0x8077c1));return;}let _0x5a12f5=0x0;for(;_0x5a12f5<_0x1fa7da[_0xb328d9(0x278)]&&_0x5a12f5<_0x371a5b[_0xb328d9(0x278)]&&J(_0x1fa7da[_0x5a12f5],_0x371a5b[_0x5a12f5]);)_0x5a12f5++;let _0x1ab13b=_0x1fa7da[_0xb328d9(0x278)]-0x1,_0x1903e4=_0x371a5b[_0xb328d9(0x278)]-0x1;for(;_0x1ab13b>=_0x5a12f5&&_0x1903e4>=_0x5a12f5&&J(_0x1fa7da[_0x1ab13b],_0x371a5b[_0x1903e4]);)_0x1ab13b--,_0x1903e4--;for(let _0x1a1a61=_0x1ab13b;_0x1a1a61>=_0x5a12f5;_0x1a1a61--)_0x8077c1[_0xb328d9(0x270)](_0x47fa25[_0xb328d9(0x25e)]([..._0x506fe2,_0x1a1a61],_0x1fa7da[_0x1a1a61]));for(let _0x45476f=_0x5a12f5;_0x45476f<=_0x1903e4;_0x45476f++)_0x8077c1[_0xb328d9(0x270)](_0x47fa25[_0xb328d9(0x1f1)]([..._0x506fe2,_0x45476f],_0x371a5b[_0x45476f]));}function Ie(_0x5b2df7){const _0x2e9cdf=_0x197120;return typeof _0x5b2df7==_0x2e9cdf(0x259)&&!!_0x5b2df7&&!Array[_0x2e9cdf(0x23f)](_0x5b2df7);}function J(_0x148377,_0x454094){const _0x428da8=_0x197120;return JSON[_0x428da8(0x229)](_0x148377)===JSON[_0x428da8(0x229)](_0x454094);}function Y(_0x31219f,_0x54afb6,_0x53c45e,_0x3a8f4e,_0x4072f4,_0x214701,_0x59df78){const _0x273879=_0x197120;let _0x4d1643=je(_0x3a8f4e,_0x4072f4);return _0x4d1643?!!_0x31219f[_0x273879(0x25a)](n[_0x273879(0x1e9)]['id'],{'unitId':_0x53c45e,'actions':_0x4d1643,'textRanges':[{'startOffset':_0x59df78,'endOffset':_0x59df78,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x214701}):(_0x54afb6[_0x273879(0x205)]([{'startOffset':_0x59df78,'endOffset':_0x59df78}],{'unitId':_0x53c45e,'subUnitId':_0x53c45e},!0x1),!0x0);}const X=_0x197120(0x277);var Le=_0x197120(0x1e6),Re='1.0.0-alpha.8';const ze={};function Z(_0x334e93,_0x37b59b){return function(_0x47949b,_0x4f46e3){_0x37b59b(_0x47949b,_0x4f46e3,_0x334e93);};}function Be(_0x205cdc,_0x48b450,_0x42bc86,_0x56d857){const _0x3b4747=_0x197120;var _0x51ca2b=arguments['length'],_0x264d24=_0x51ca2b<0x3?_0x48b450:_0x56d857===null?_0x56d857=Object[_0x3b4747(0x1e3)](_0x48b450,_0x42bc86):_0x56d857,_0x452c51;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x3b4747(0x203))_0x264d24=Reflect[_0x3b4747(0x212)](_0x205cdc,_0x48b450,_0x42bc86,_0x56d857);else{for(var _0x5f1f85=_0x205cdc[_0x3b4747(0x278)]-0x1;_0x5f1f85>=0x0;_0x5f1f85--)(_0x452c51=_0x205cdc[_0x5f1f85])&&(_0x264d24=(_0x51ca2b<0x3?_0x452c51(_0x264d24):_0x51ca2b>0x3?_0x452c51(_0x48b450,_0x42bc86,_0x264d24):_0x452c51(_0x48b450,_0x42bc86))||_0x264d24);}return _0x51ca2b>0x3&&_0x264d24&&Object['defineProperty'](_0x48b450,_0x42bc86,_0x264d24),_0x264d24;}let Q=class extends e[_0x197120(0x2a5)]{constructor(_0xb4d39c,_0x5a41bc){const _0x348eba=_0x197120;super(),this[_0x348eba(0x200)]=_0xb4d39c,this[_0x348eba(0x28e)]=_0x5a41bc,this[_0x348eba(0x2a0)]();}['_initResource'](){const _0x2b3782=_0x197120;this[_0x2b3782(0x207)](this[_0x2b3782(0x200)]['registerPluginResource']({'pluginName':X,'businesses':[e[_0x2b3782(0x287)][_0x2b3782(0x230)]],'toJson':_0x5deba6=>JSON[_0x2b3782(0x229)](this['_docsCodeModel'][_0x2b3782(0x1df)](_0x5deba6)),'parseJson':_0x3de67b=>o(JSON[_0x2b3782(0x29c)](_0x3de67b)),'onLoad':(_0x24c959,_0x314667)=>this[_0x2b3782(0x28e)]['deserialize'](_0x24c959,_0x314667),'onUnLoad':_0x1ce5d9=>this[_0x2b3782(0x28e)][_0x2b3782(0x281)](_0x1ce5d9)}));}};Q=Be([Z(0x0,e[_0x197120(0x253)]),Z(0x1,(0x0,e[_0x197120(0x20c)])(p))],Q);let $=class extends e[_0x197120(0x258)]{constructor(_0x2818db=ze,_0x4b3e81,_0x336450,_0x69a681){const _0xcfedd7=_0x197120;super(),this[_0xcfedd7(0x228)]=_0x2818db,this[_0xcfedd7(0x211)]=_0x4b3e81,this[_0xcfedd7(0x254)]=_0x336450,this[_0xcfedd7(0x27a)]=_0x69a681;let {..._0x2f9e40}=(0x0,e[_0xcfedd7(0x265)])({},ze,this[_0xcfedd7(0x228)]);this['_configService']['setConfig'](_0xcfedd7(0x28c),_0x2f9e40);}[_0x197120(0x235)](){const _0x150bfd=_0x197120;this['_injector'][_0x150bfd(0x1fc)]([p]),this[_0x150bfd(0x211)]['add']([Q]),this[_0x150bfd(0x211)][_0x150bfd(0x219)](p),this[_0x150bfd(0x211)][_0x150bfd(0x219)](Q),[B,z,Te,V,H,Ee,U,we,m,h][_0x150bfd(0x29e)](_0x12dc0e=>this['disposeWithMe'](this[_0x150bfd(0x254)][_0x150bfd(0x237)](_0x12dc0e)));}};f($,_0x197120(0x2a9),X),f($,'packageName',Le),f($,'version',Re),f($,_0x197120(0x279),e['UniverInstanceType'][_0x197120(0x230)]),$=Be([(0x0,e[_0x197120(0x282)])(r[_0x197120(0x21c)],n['UniverDocsPlugin']),Z(0x1,(0x0,e['Inject'])(e['Injector'])),Z(0x2,e[_0x197120(0x262)]),Z(0x3,e['IConfigService'])],$),exports[_0x197120(0x29a)]=X,exports[_0x197120(0x264)]=U,exports[_0x197120(0x286)]=we,exports[_0x197120(0x24f)]=z,exports[_0x197120(0x22a)]=B,exports[_0x197120(0x29b)]=p,exports[_0x197120(0x26a)]=H,exports['DocsCodeUnwrapCommand']=V,exports['DocsCodeUpdateCommand']=Te,exports[_0x197120(0x296)]=h,exports[_0x197120(0x26b)]=m,Object[_0x197120(0x1ec)](exports,_0x197120(0x21e),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x197120(0x256)]=x,exports[_0x197120(0x1fd)]=ae,exports[_0x197120(0x244)]=a,exports[_0x197120(0x241)]=o;
1
+ const _0x3be772=_0x542f;(function(_0x4cd272,_0x7c4918){const _0x22042a=_0x542f,_0x156fc1=_0x4cd272();while(!![]){try{const _0x12958e=-parseInt(_0x22042a(0x151))/0x1*(parseInt(_0x22042a(0x14f))/0x2)+parseInt(_0x22042a(0x18a))/0x3*(parseInt(_0x22042a(0x18f))/0x4)+parseInt(_0x22042a(0x158))/0x5+-parseInt(_0x22042a(0xe3))/0x6+-parseInt(_0x22042a(0x13c))/0x7+-parseInt(_0x22042a(0x104))/0x8*(parseInt(_0x22042a(0x172))/0x9)+-parseInt(_0x22042a(0x164))/0xa*(-parseInt(_0x22042a(0x178))/0xb);if(_0x12958e===_0x7c4918)break;else _0x156fc1['push'](_0x156fc1['shift']());}catch(_0x25f066){_0x156fc1['push'](_0x156fc1['shift']());}}}(_0x5d6d,0x859e2),Object[_0x3be772(0xc0)](exports,Symbol[_0x3be772(0x162)],{'value':_0x3be772(0x160)}));let e=require('@univerjs/core'),t=require('rxjs'),n=require('@univerjs/docs'),r=require('@univerjs-pro/license');const i={'language':_0x3be772(0x16d),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function a(_0x331e0c){return{...i,..._0x331e0c};}function o(_0x4475fa){const _0x54ff4c=_0x3be772;let _0x3d34f7=(_0x4475fa==null?void 0x0:_0x4475fa[_0x54ff4c(0x14d)])??{};return{'codes':Object[_0x54ff4c(0xc1)](Object[_0x54ff4c(0xbf)](_0x3d34f7)[_0x54ff4c(0x11b)](([_0xdccda5,_0x4f59d0])=>[_0xdccda5,a(_0x4f59d0)]))};}function s(_0x365af6,_0x1332f2,_0x174bcd){const _0x17dc76=_0x3be772;let _0x134c90=o(_0x365af6);return _0x134c90['codes'][_0x1332f2]=a({..._0x134c90[_0x17dc76(0x14d)][_0x1332f2],..._0x174bcd}),_0x134c90;}function c(_0x43c03a,_0x521210){let _0x551aa1=o(_0x43c03a);return delete _0x551aa1['codes'][_0x521210],_0x551aa1;}function l(_0x9e3486){'@babel/helpers - typeof';const _0x335893=_0x3be772;return l=typeof Symbol=='function'&&typeof Symbol[_0x335893(0xee)]==_0x335893(0x139)?function(_0x544224){return typeof _0x544224;}:function(_0x323795){const _0x2a60ec=_0x335893;return _0x323795&&typeof Symbol==_0x2a60ec(0x177)&&_0x323795[_0x2a60ec(0x17f)]===Symbol&&_0x323795!==Symbol[_0x2a60ec(0x102)]?'symbol':typeof _0x323795;},l(_0x9e3486);}function u(_0x1ae81e,_0x1a9e79){const _0x259e51=_0x3be772;if(l(_0x1ae81e)!=_0x259e51(0x126)||!_0x1ae81e)return _0x1ae81e;var _0x58f6e3=_0x1ae81e[Symbol[_0x259e51(0xf3)]];if(_0x58f6e3!==void 0x0){var _0x2ad14c=_0x58f6e3[_0x259e51(0x133)](_0x1ae81e,_0x1a9e79||_0x259e51(0x166));if(l(_0x2ad14c)!=_0x259e51(0x126))return _0x2ad14c;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1a9e79==='string'?String:Number)(_0x1ae81e);}function d(_0x31798e){const _0x20ebf9=_0x3be772;var _0x2698b0=u(_0x31798e,_0x20ebf9(0x123));return l(_0x2698b0)==_0x20ebf9(0x139)?_0x2698b0:_0x2698b0+'';}function f(_0x3604b7,_0x4c14e7,_0x17a03f){const _0x2effa7=_0x3be772;return(_0x4c14e7=d(_0x4c14e7))in _0x3604b7?Object[_0x2effa7(0xc0)](_0x3604b7,_0x4c14e7,{'value':_0x17a03f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3604b7[_0x4c14e7]=_0x17a03f,_0x3604b7;}var p=class extends e[_0x3be772(0x136)]{constructor(..._0x246f89){const _0xa7ebcd=_0x3be772;super(..._0x246f89),f(this,_0xa7ebcd(0x15f),new Map()),f(this,_0xa7ebcd(0xec),new t[(_0xa7ebcd(0xc6))]()),f(this,_0xa7ebcd(0x110),this[_0xa7ebcd(0xec)]['asObservable']());}['getCodeConfig'](_0x442437,_0x4f9f56){const _0x3a59a6=_0x3be772;return o(this[_0x3a59a6(0x15f)][_0x3a59a6(0x12d)](_0x442437))[_0x3a59a6(0x14d)][_0x4f9f56];}['setCodeConfig'](_0x42ce75,_0x3416b6,_0x26d5cf){const _0xac09a6=_0x3be772;this[_0xac09a6(0x115)](_0x42ce75,_0x3416b6,s(this[_0xac09a6(0x15f)][_0xac09a6(0x12d)](_0x42ce75),_0x3416b6,_0x26d5cf));}[_0x3be772(0xf2)](_0x3542fe,_0x4acf24){const _0x35c14a=_0x3be772;this[_0x35c14a(0x115)](_0x3542fe,_0x4acf24,c(this['_resources'][_0x35c14a(0x12d)](_0x3542fe),_0x4acf24));}['serialize'](_0x2848f2){const _0x3970e0=_0x3be772;return o(this[_0x3970e0(0x15f)][_0x3970e0(0x12d)](_0x2848f2));}['deserialize'](_0x1d525a,_0x5147f3){const _0x2d5627=_0x3be772;this[_0x2d5627(0x15f)][_0x2d5627(0xc4)](_0x1d525a,o(_0x5147f3)),this['_change$']['next']({'unitId':_0x1d525a});}[_0x3be772(0x181)](_0x3f1a42){const _0x445ca3=_0x3be772;this['_resources'][_0x445ca3(0xdf)](_0x3f1a42),this[_0x445ca3(0xec)]['next']({'unitId':_0x3f1a42});}[_0x3be772(0x134)](){const _0xe31e51=_0x3be772;super[_0xe31e51(0x134)](),this[_0xe31e51(0x15f)]['clear'](),this[_0xe31e51(0xec)][_0xe31e51(0xd8)]();}[_0x3be772(0x115)](_0x26ae34,_0x37cbd3,_0x45c260){const _0x213bd0=_0x3be772;this[_0x213bd0(0x15f)][_0x213bd0(0xc4)](_0x26ae34,_0x45c260),this[_0x213bd0(0xec)]['next']({'unitId':_0x26ae34,'blockId':_0x37cbd3});}};const m={'id':_0x3be772(0x11f),'type':e[_0x3be772(0xcc)][_0x3be772(0x117)],'handler':(_0x4706ed,_0x12902a)=>!(_0x12902a!=null&&_0x12902a['unitId'])||!_0x12902a[_0x3be772(0x18b)]?!0x1:(_0x4706ed[_0x3be772(0x12d)](p)[_0x3be772(0x179)](_0x12902a['unitId'],_0x12902a[_0x3be772(0x18b)],_0x12902a[_0x3be772(0x15e)]),!0x0)},h={'id':'docs-code.mutation.remove-config','type':e[_0x3be772(0xcc)][_0x3be772(0x117)],'handler':(_0x2bd17f,_0x58ff4b)=>!(_0x58ff4b!=null&&_0x58ff4b[_0x3be772(0x108)])||!_0x58ff4b[_0x3be772(0x18b)]?!0x1:(_0x2bd17f[_0x3be772(0x12d)](p)['removeCode'](_0x58ff4b[_0x3be772(0x108)],_0x58ff4b[_0x3be772(0x18b)]),!0x0)},g='monospace';var _=class extends Error{constructor(_0x1968b4=_0x3be772(0x148)){super(_0x1968b4);}};function ee(_0x29f73e){const _0x482696=_0x3be772;var _0x15e3a4;let _0x50335e=S(_0x29f73e[_0x482696(0x13e)]),_0x2e218a=w(_0x50335e),_0x5cc889=ne(_0x29f73e[_0x482696(0x15b)],_0x29f73e[_0x482696(0x12a)]),_0x26f4eb=_0x5cc889?(_0x15e3a4=_0x2e218a[_0x482696(0xe7)])==null?void 0x0:_0x15e3a4[_0x482696(0x131)](_0x386687=>{const _0x244dfd=_0x482696;let _0x20c762=(0x0,e[_0x244dfd(0x141)])(_0x386687);return _0x20c762[_0x244dfd(0x15b)]===_0x5cc889[_0x244dfd(0x15b)]&&_0x20c762['endOffset']===_0x5cc889[_0x244dfd(0x12a)];}):void 0x0,{startOffset:_0xadbc7e,endOffset:_0xa2cd1c}=_0x26f4eb?_0x5cc889:me(_0x2e218a,_0x29f73e[_0x482696(0x15b)],_0x29f73e[_0x482696(0x12a)],_0x29f73e[_0x482696(0xc2)]);if(!_0x26f4eb&&re(_0x2e218a,_0xadbc7e,_0xa2cd1c))throw new _('Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block');let _0x503d80=_e(_0x2e218a,_0xadbc7e,_0xa2cd1c),_0x3a05a5=(_0x26f4eb==null?void 0x0:_0x26f4eb[_0x482696(0x18b)])??_0x29f73e['blockId'],_0x393e11=s(_0x29f73e[_0x482696(0x127)],_0x3a05a5,{...i,..._0x29f73e[_0x482696(0x15e)]});if(_0x26f4eb)return _0x26f4eb[_0x482696(0x15a)]=e[_0x482696(0x188)][_0x482696(0x122)],te(_0x2e218a,_0xadbc7e,_0xa2cd1c),le(_0x2e218a,_0xadbc7e,_0xa2cd1c,_0x503d80),O(_0x2e218a,_0x26f4eb),{'nextDocumentData':_0x50335e,'nextMetadata':_0x393e11,'cursorOffset':_0xadbc7e+0x1};if(_0xadbc7e===_0xa2cd1c){var _0x4e31e4,_0x434bc9;let _0x1005ca=''+e[_0x482696(0x16e)][_0x482696(0x14e)]+e[_0x482696(0x16e)]['PARAGRAPH']+e[_0x482696(0x16e)][_0x482696(0xfd)];k(_0x2e218a,_0xadbc7e,_0x1005ca,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e['createParagraphId'])(new Set((_0x4e31e4=_0x2e218a[_0x482696(0xd9)])==null?void 0x0:_0x4e31e4['map'](_0x7b90c8=>_0x7b90c8['paragraphId']))),'paragraphStyle':x(!0x0,!0x0,_0x503d80)}],'blockRanges':[{'blockId':_0x3a05a5,'blockType':e[_0x482696(0x188)]['CODE'],'startIndex':0x0,'endIndex':_0x1005ca['length']-0x1}]});let _0x261169=(_0x434bc9=_0x2e218a[_0x482696(0xe7)])==null?void 0x0:_0x434bc9['find'](_0x403c2e=>_0x403c2e['blockId']===_0x3a05a5);return _0x261169&&O(_0x2e218a,_0x261169),{'nextDocumentData':_0x50335e,'nextMetadata':_0x393e11,'cursorOffset':_0xadbc7e+0x1};}k(_0x2e218a,_0xa2cd1c,e[_0x482696(0x16e)]['BLOCK_END']),k(_0x2e218a,_0xadbc7e,e['DataStreamTreeTokenType'][_0x482696(0x14e)]),le(_0x2e218a,_0xadbc7e,_0xa2cd1c+0x1,_0x503d80);let _0x21fb54={'blockId':_0x3a05a5,'blockType':e['DocumentBlockRangeType'][_0x482696(0x122)],'startIndex':_0xadbc7e,'endIndex':_0xa2cd1c+0x1};return _0x2e218a[_0x482696(0xe7)]=[..._0x2e218a[_0x482696(0xe7)]??[],_0x21fb54][_0x482696(0xf9)]((_0x3edea0,_0x3470ef)=>_0x3edea0[_0x482696(0x147)]-_0x3470ef[_0x482696(0x147)]),O(_0x2e218a,_0x21fb54),{'nextDocumentData':_0x50335e,'nextMetadata':_0x393e11,'cursorOffset':_0xadbc7e+0x1};}function te(_0x26743d,_0x4ffa6b,_0x3ff277){const _0x3aaf7f=_0x3be772;(_0x26743d[_0x3aaf7f(0xd9)]??[])[_0x3aaf7f(0x111)](_0x3dc55a=>_0x3dc55a['startIndex']>_0x4ffa6b&&_0x3dc55a['startIndex']<_0x3ff277)[_0x3aaf7f(0xc9)](_0x4afb7e=>{const _0x2e4f5c=_0x3aaf7f;let _0x33f9b6={..._0x4afb7e[_0x2e4f5c(0x168)]??{}};delete _0x33f9b6['spaceAbove'],delete _0x33f9b6[_0x2e4f5c(0x186)],_0x4afb7e[_0x2e4f5c(0x168)]=_0x33f9b6;});}function ne(_0x3f3d16,_0x3e71e7){const _0x527046=_0x3be772;return _0x3f3d16==null||_0x3e71e7==null||_0x3f3d16===_0x3e71e7?null:{'startOffset':Math[_0x527046(0x15c)](_0x3f3d16,_0x3e71e7),'endOffset':Math[_0x527046(0x14c)](_0x3f3d16,_0x3e71e7)};}function re(_0xcb1f12,_0x4dde60,_0x5d00d7){const _0x2649c9=_0x3be772;return(_0xcb1f12[_0x2649c9(0xe7)]??[])[_0x2649c9(0xdc)](_0x4dce56=>{const _0x12aaed=_0x2649c9;let _0x33ac5c=(0x0,e[_0x12aaed(0x141)])(_0x4dce56);return _0x4dde60===_0x5d00d7?(0x0,e[_0x12aaed(0x10a)])(_0x33ac5c,_0x4dde60):(0x0,e[_0x12aaed(0x152)])(_0x33ac5c,{'startOffset':_0x4dde60,'endOffset':_0x5d00d7});});}function ie(_0x12c045){const _0x3e2a8f=_0x3be772;return{'nextDocumentData':S(_0x12c045[_0x3e2a8f(0x13e)]),'nextMetadata':s(_0x12c045['metadata'],_0x12c045['blockId'],_0x12c045['config']),'cursorOffset':0x0};}function v(_0x4688f9){const _0x10adca=_0x3be772;let _0x4f82e9=S(_0x4688f9['documentData']),_0xced459=w(_0x4f82e9),_0x30f15a=b(_0xced459,_0x4688f9[_0x10adca(0x18b)]);if(!_0x30f15a)return null;let _0x2923db=fe(_0xced459,_0x30f15a);return{'nextDocumentData':_0x4f82e9,'nextMetadata':c(_0x4688f9['metadata'],_0x4688f9['blockId']),'cursorOffset':_0x2923db};}function ae(_0x4ade28){const _0x52c023=_0x3be772;var _0x1e1d08;let _0x3438bd=S(_0x4ade28[_0x52c023(0x13e)]),_0x2717da=w(_0x3438bd),_0x266275=b(_0x2717da,_0x4ade28[_0x52c023(0x18b)]);if(!_0x266275)return null;let _0x193be6=(0x0,e[_0x52c023(0x141)])(_0x266275);return A(_0x2717da,_0x193be6[_0x52c023(0x15b)],_0x193be6['endOffset']),_0x2717da[_0x52c023(0xe7)]=(_0x1e1d08=_0x2717da[_0x52c023(0xe7)])==null?void 0x0:_0x1e1d08[_0x52c023(0x111)](_0x3e6405=>_0x3e6405[_0x52c023(0x18b)]!==_0x4ade28[_0x52c023(0x18b)]),{'nextDocumentData':_0x3438bd,'nextMetadata':c(_0x4ade28[_0x52c023(0x127)],_0x4ade28[_0x52c023(0x18b)]),'cursorOffset':_0x266275[_0x52c023(0x147)]};}function y(_0x4b928d){const _0x4ae4c8=_0x3be772;let _0x2b5888=S(_0x4b928d[_0x4ae4c8(0x13e)]),_0x3e6859=w(_0x2b5888),_0xf3062f=ce(_0x3e6859,_0x4b928d[_0x4ae4c8(0x13a)]);return _0xf3062f&&oe(_0x2b5888,_0x3e6859,_0xf3062f,_0x4b928d[_0x4ae4c8(0x13a)],_0x4b928d['paragraphStartIndex'])||null;}function oe(_0x902222,_0x3249cd,_0x1cd407,_0x3f8290,_0x5e9fa1){const _0x5eddb4=_0x3be772;let _0x270184=Se(_0x3249cd,_0x1cd407,_0x3f8290,_0x5e9fa1);if(!_0x270184)return null;let _0x57f33e=_0x270184[_0x5eddb4(0xd1)]-0x1;return A(_0x3249cd,_0x270184[_0x5eddb4(0xd0)][_0x5eddb4(0x147)],_0x270184['paragraph'][_0x5eddb4(0x147)]+0x1),{'nextDocumentData':_0x902222,'cursorOffset':_0x57f33e};}function b(_0x1d8612,_0x20198e){const _0x12a99e=_0x3be772;var _0x997e2e;return _0x1d8612==null||(_0x997e2e=_0x1d8612['blockRanges'])==null?void 0x0:_0x997e2e[_0x12a99e(0x131)](_0xe21cca=>_0xe21cca[_0x12a99e(0x15a)]===e[_0x12a99e(0x188)][_0x12a99e(0x122)]&&_0xe21cca[_0x12a99e(0x18b)]===_0x20198e);}function se(_0xf4230f){const _0x1a26c0=_0x3be772;let _0x7bd939=_0xf4230f[_0x1a26c0(0x13e)][_0x1a26c0(0x174)];if(!_0x7bd939)return!0x1;let _0x3aeb17=_0xf4230f[_0x1a26c0(0x185)]===_0x1a26c0(0x13f)?_0xf4230f[_0x1a26c0(0x13a)]-0x1:_0xf4230f[_0x1a26c0(0x13a)],_0x330899=_0xf4230f[_0x1a26c0(0x185)]===_0x1a26c0(0x11a)?_0xf4230f['cursorOffset']+0x1:_0x3aeb17;return(_0x7bd939[_0x1a26c0(0xe7)]??[])[_0x1a26c0(0xdc)](_0x19fb36=>_0x19fb36[_0x1a26c0(0x15a)]===e[_0x1a26c0(0x188)][_0x1a26c0(0x122)]?_0x3aeb17===_0x19fb36['startIndex']||_0x3aeb17===_0x19fb36[_0x1a26c0(0x159)]||_0x330899===_0x19fb36[_0x1a26c0(0x147)]||_0x330899===_0x19fb36[_0x1a26c0(0x159)]:!0x1);}function ce(_0x10771d,_0x369a95){const _0x4f388e=_0x3be772;var _0x38d5e5;return(_0x38d5e5=_0x10771d[_0x4f388e(0xe7)])==null?void 0x0:_0x38d5e5[_0x4f388e(0x131)](_0x41351d=>{const _0xa4b23f=_0x4f388e;let _0x4ad03a=D(_0x41351d);return _0x41351d['blockType']===e[_0xa4b23f(0x188)]['CODE']&&_0x41351d['startIndex']<=_0x369a95&&_0x369a95<=_0x4ad03a+0x2;});}function x(_0x115203,_0x162c64,_0x3df42b=!0x1){const _0x36e1f6=_0x3be772;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':e[_0x36e1f6(0x112)][_0x36e1f6(0x180)],'keepNext':_0x162c64?e['BooleanNumber'][_0x36e1f6(0x167)]:e['BooleanNumber'][_0x36e1f6(0x180)],'widowControl':e[_0x36e1f6(0x112)][_0x36e1f6(0x180)],..._0x115203&&_0x3df42b?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':g,'fs':0xc}};}function le(_0x13cc58,_0xbf0518,_0x7502f7,_0x3a4bf2=!0x1){const _0x1f1098=_0x3be772;let _0x3bc63a=(_0x13cc58[_0x1f1098(0xd9)]??[])['filter'](_0x5c97db=>_0x5c97db[_0x1f1098(0x147)]>_0xbf0518&&_0x5c97db[_0x1f1098(0x147)]<_0x7502f7);_0x3bc63a[_0x1f1098(0xc9)]((_0x11439b,_0x4b6cb5)=>{const _0x505ec3=_0x1f1098;_0x11439b[_0x505ec3(0x168)]={..._0x11439b[_0x505ec3(0x168)]??{},...x(_0x4b6cb5===0x0,_0x4b6cb5===_0x3bc63a['length']-0x1,_0x3a4bf2)};});}function ue(_0x1505fc){const _0xf0c927=_0x3be772;var _0x53ee12,_0x535b4d;let _0x47baa3={..._0x1505fc??{}};return delete _0x47baa3['indentEnd'],delete _0x47baa3[_0xf0c927(0xfe)],delete _0x47baa3[_0xf0c927(0x119)],delete _0x47baa3[_0xf0c927(0x186)],delete _0x47baa3[_0xf0c927(0xf5)],delete _0x47baa3[_0xf0c927(0xea)],delete _0x47baa3[_0xf0c927(0x191)],((_0x53ee12=_0x47baa3[_0xf0c927(0x130)])==null?void 0x0:_0x53ee12['ff'])===g&&((_0x535b4d=_0x47baa3[_0xf0c927(0x130)])==null?void 0x0:_0x535b4d['fs'])===0xc&&delete _0x47baa3['textStyle'],_0x47baa3;}function de(_0x549975,_0x5412f6){const _0x35dcbc=_0x3be772;let _0x2eeda7=D(_0x5412f6);return(_0x549975[_0x35dcbc(0xd9)]??[])[_0x35dcbc(0x111)](_0x2a49c8=>_0x2a49c8[_0x35dcbc(0x147)]>_0x5412f6[_0x35dcbc(0x147)]&&_0x2a49c8[_0x35dcbc(0x147)]<_0x2eeda7);}function fe(_0x4e33dc,_0x4f79d8){const _0x80b7f4=_0x3be772;var _0x4376bb;let _0x377c64=D(_0x4f79d8);return de(_0x4e33dc,_0x4f79d8)[_0x80b7f4(0xc9)](_0x5d4141=>{const _0x388de2=_0x80b7f4;_0x5d4141[_0x388de2(0x168)]=ue(_0x5d4141[_0x388de2(0x168)]);}),A(_0x4e33dc,_0x377c64,_0x377c64+0x1),A(_0x4e33dc,_0x4f79d8[_0x80b7f4(0x147)],_0x4f79d8['startIndex']+0x1),_0x4e33dc[_0x80b7f4(0xe7)]=(_0x4376bb=_0x4e33dc['blockRanges'])==null?void 0x0:_0x4376bb[_0x80b7f4(0x111)](_0x3aab76=>_0x3aab76[_0x80b7f4(0x18b)]!==_0x4f79d8[_0x80b7f4(0x18b)]),_0x4f79d8[_0x80b7f4(0x147)];}function S(_0x650fc){const _0xc6c4c7=_0x3be772;return{..._0x650fc,'body':_0x650fc[_0xc6c4c7(0x174)]?pe(_0x650fc[_0xc6c4c7(0x174)]):_0x650fc[_0xc6c4c7(0x174)]};}function pe(_0x12668e){const _0x59e4d6=_0x3be772;var _0x40c1d3,_0x3add34,_0x2e5f4b,_0x523dde,_0x27af16,_0xc0f0c1,_0x300e9c,_0x17c0bf,_0x38292c;return{..._0x12668e,'paragraphs':(_0x40c1d3=_0x12668e[_0x59e4d6(0xd9)])==null?void 0x0:_0x40c1d3[_0x59e4d6(0x11b)](_0x1835a2=>({..._0x1835a2,'bullet':C(_0x1835a2['bullet']),'paragraphStyle':C(_0x1835a2['paragraphStyle'])})),'sectionBreaks':(_0x3add34=_0x12668e[_0x59e4d6(0x161)])==null?void 0x0:_0x3add34['map'](_0x53adfe=>({..._0x53adfe})),'textRuns':(_0x2e5f4b=_0x12668e['textRuns'])==null?void 0x0:_0x2e5f4b[_0x59e4d6(0x11b)](_0x22971a=>({..._0x22971a})),'tables':(_0x523dde=_0x12668e[_0x59e4d6(0xfb)])==null?void 0x0:_0x523dde['map'](_0x8fa1ca=>({..._0x8fa1ca})),'columnGroups':(_0x27af16=_0x12668e[_0x59e4d6(0x10e)])==null?void 0x0:_0x27af16[_0x59e4d6(0x11b)](_0x2fc972=>{const _0x131914=_0x59e4d6;var _0x33fdad;return{..._0x2fc972,'columns':(_0x33fdad=_0x2fc972[_0x131914(0x143)])==null?void 0x0:_0x33fdad[_0x131914(0x11b)](_0x49adf3=>C(_0x49adf3))};}),'blockRanges':(_0xc0f0c1=_0x12668e['blockRanges'])==null?void 0x0:_0xc0f0c1[_0x59e4d6(0x11b)](_0x2bc881=>({..._0x2bc881})),'customRanges':(_0x300e9c=_0x12668e[_0x59e4d6(0x155)])==null?void 0x0:_0x300e9c[_0x59e4d6(0x11b)](_0x452030=>({..._0x452030})),'customDecorations':(_0x17c0bf=_0x12668e[_0x59e4d6(0x173)])==null?void 0x0:_0x17c0bf['map'](_0x2081fc=>({..._0x2081fc})),'customBlocks':(_0x38292c=_0x12668e['customBlocks'])==null?void 0x0:_0x38292c[_0x59e4d6(0x11b)](_0xbc6bea=>({..._0xbc6bea}))};}function C(_0x1ea741){const _0x5503c6=_0x3be772;return Array[_0x5503c6(0x114)](_0x1ea741)?_0x1ea741[_0x5503c6(0x11b)](_0x1ba70f=>C(_0x1ba70f)):!_0x1ea741||typeof _0x1ea741!=_0x5503c6(0x126)?_0x1ea741:Object['fromEntries'](Object['entries'](_0x1ea741)['map'](([_0x549f13,_0x280544])=>[_0x549f13,C(_0x280544)]));}function w(_0x59862e){const _0x481a5f=_0x3be772;if(!_0x59862e[_0x481a5f(0x174)])throw Error(_0x481a5f(0xcf));return _0x59862e[_0x481a5f(0x174)];}function me(_0x10e0b1,_0x115b7e,_0x94c05b,_0x2184bd='convert-paragraph'){const _0x14a9a2=_0x3be772;if(_0x115b7e==null||_0x94c05b==null){let _0x1414c0=ge(_0x10e0b1);return{'startOffset':_0x1414c0,'endOffset':_0x1414c0};}let _0x485bf7=Math[_0x14a9a2(0x15c)](_0x115b7e,_0x94c05b),_0x500994=Math[_0x14a9a2(0x14c)](_0x115b7e,_0x94c05b),_0x444365=xe(_0x10e0b1,_0x485bf7,_0x500994);return _0x485bf7===_0x500994?_0x2184bd===_0x14a9a2(0x11e)?{'startOffset':_0x485bf7,'endOffset':_0x500994}:he(_0x10e0b1,_0x485bf7,_0x444365):ve(_0x10e0b1,_0x485bf7,_0x500994,_0x444365);}function he(_0x1e621c,_0x3f1605,_0x500729){const _0x16d2fd=_0x3be772;let _0x49afad=ye(_0x1e621c,_0x3f1605);if(_0x49afad){let _0x14db74=T(_0x1e621c,_0x49afad,_0x500729);if(_0x14db74<_0x49afad[_0x16d2fd(0x147)])return{'startOffset':_0x14db74,'endOffset':_0x500729?Math['min'](_0x49afad[_0x16d2fd(0x147)]+0x1,_0x500729['endOffset']):_0x49afad[_0x16d2fd(0x147)]+0x1};}let _0x35d58e=_0x3f1605===0x0&&_0x1e621c[_0x16d2fd(0x11d)][0x0]===e[_0x16d2fd(0x16e)][_0x16d2fd(0x106)]?0x1:_0x3f1605;return{'startOffset':_0x35d58e,'endOffset':_0x35d58e};}function ge(_0x5b3601){const _0x99df40=_0x3be772;return _0x5b3601[_0x99df40(0x11d)][_0x99df40(0xe2)](e[_0x99df40(0x16e)][_0x99df40(0x190)])?Math[_0x99df40(0x14c)](0x0,_0x5b3601[_0x99df40(0x11d)][_0x99df40(0xbe)]-0x1):_0x5b3601[_0x99df40(0x11d)][_0x99df40(0xbe)];}function _e(_0x75b7e7,_0x2fac3f,_0x4383f0){const _0x3e121f=_0x3be772;var _0x187a8e;let _0x4f21d7=Math[_0x3e121f(0x15c)](_0x2fac3f,_0x4383f0),_0x2869b2=Math[_0x3e121f(0x14c)](_0x2fac3f,_0x4383f0);return!!((_0x187a8e=_0x75b7e7[_0x3e121f(0xfb)])!=null&&_0x187a8e['some'](_0x4ab84b=>_0x4f21d7>_0x4ab84b[_0x3e121f(0x147)]&&_0x4f21d7<_0x4ab84b['endIndex']||_0x2869b2>_0x4ab84b['startIndex']&&_0x2869b2<_0x4ab84b[_0x3e121f(0x159)]||_0x4f21d7<=_0x4ab84b[_0x3e121f(0x147)]&&_0x2869b2>=_0x4ab84b[_0x3e121f(0x159)]));}function ve(_0x44cf8c,_0x5c4f70,_0x116833,_0x1ecdf9){const _0x5cd6d4=_0x3be772;let _0x151a07=[..._0x44cf8c[_0x5cd6d4(0xd9)]??[]][_0x5cd6d4(0xf9)]((_0x515a40,_0x5c8f82)=>_0x515a40[_0x5cd6d4(0x147)]-_0x5c8f82[_0x5cd6d4(0x147)]),_0x7340dc=(0x0,e[_0x5cd6d4(0x100)])(_0x44cf8c),_0x93ca75=_0x151a07['find'](_0x411cbc=>T(_0x44cf8c,_0x411cbc,_0x1ecdf9,_0x7340dc)<=_0x5c4f70&&_0x5c4f70<=_0x411cbc[_0x5cd6d4(0x147)]),_0x363d48=_0x151a07['find'](_0x10dcd9=>_0x10dcd9[_0x5cd6d4(0x147)]>=_0x116833-0x1)??_0x151a07[_0x151a07[_0x5cd6d4(0xbe)]-0x1];return{'startOffset':_0x93ca75?T(_0x44cf8c,_0x93ca75,_0x1ecdf9,_0x7340dc):_0x5c4f70,'endOffset':_0x363d48?be(_0x363d48,_0x1ecdf9):_0x116833};}function ye(_0x1785b4,_0x220504){const _0x1bc2a0=_0x3be772;let _0x34d741=[..._0x1785b4[_0x1bc2a0(0xd9)]??[]]['sort']((_0x77a791,_0xaf9cee)=>_0x77a791[_0x1bc2a0(0x147)]-_0xaf9cee[_0x1bc2a0(0x147)]),_0x5a56b0=(0x0,e[_0x1bc2a0(0x100)])(_0x1785b4);return _0x34d741['find'](_0x3616c3=>(_0x5a56b0[_0x1bc2a0(0x12d)](_0x3616c3[_0x1bc2a0(0x147)])??0x0)<=_0x220504&&_0x220504<=_0x3616c3[_0x1bc2a0(0x147)]);}function T(_0xa1371a,_0x46370e,_0x546de5,_0xcd0c66){const _0x3a021a=_0x3be772;let _0x440186=(_0xcd0c66==null?void 0x0:_0xcd0c66[_0x3a021a(0x12d)](_0x46370e[_0x3a021a(0x147)]))??(0x0,e[_0x3a021a(0x18e)])(_0xa1371a,_0x46370e);return _0x546de5?Math[_0x3a021a(0x14c)](_0x440186,_0x546de5[_0x3a021a(0x15b)]):_0x440186;}function be(_0x462aa6,_0x113268){const _0x3890df=_0x3be772;let _0x18d8d7=_0x462aa6[_0x3890df(0x147)]+0x1;return _0x113268?Math[_0x3890df(0x15c)](_0x18d8d7,_0x113268[_0x3890df(0x12a)]):_0x18d8d7;}function xe(_0xcb6587,_0x4a6fb5,_0x18db3c){const _0x2793b3=_0x3be772;let _0x4ca4a7=E(_0xcb6587,_0x4a6fb5),_0x430a0d=E(_0xcb6587,_0x4a6fb5===_0x18db3c?_0x18db3c:Math[_0x2793b3(0x14c)](_0x4a6fb5,_0x18db3c-0x1));if(!(!_0x4ca4a7&&!_0x430a0d)){if(!_0x4ca4a7||!_0x430a0d||_0x4ca4a7[_0x2793b3(0x149)]!==_0x430a0d['startTokenOffset']||_0x4ca4a7[_0x2793b3(0xd1)]!==_0x430a0d[_0x2793b3(0xd1)])throw new _();return _0x4ca4a7;}}function E(_0x262202,_0x321916){const _0xe4adaf=_0x3be772;let _0x3bb115=_0x262202[_0xe4adaf(0x11d)],_0x1ec453=-0x1;for(let _0x259fc7=Math['min'](_0x321916,_0x3bb115[_0xe4adaf(0xbe)]-0x1);_0x259fc7>=0x0;_0x259fc7--){let _0x4d2860=_0x3bb115[_0x259fc7];if(_0x4d2860===e[_0xe4adaf(0x16e)][_0xe4adaf(0xc8)])return;if(_0x4d2860===e[_0xe4adaf(0x16e)]['TABLE_CELL_START']){_0x1ec453=_0x259fc7;break;}}if(_0x1ec453<0x0)return;let _0x1dfe81=_0x3bb115[_0xe4adaf(0x140)](e[_0xe4adaf(0x16e)][_0xe4adaf(0xc8)],_0x1ec453+0x1);if(!(_0x1dfe81<0x0||_0x321916<_0x1ec453+0x1||_0x321916>_0x1dfe81-0x1))return{'startOffset':_0x1ec453+0x1,'endOffset':Math[_0xe4adaf(0x14c)](_0x1ec453+0x1,_0x1dfe81-0x1),'startTokenOffset':_0x1ec453,'endTokenOffset':_0x1dfe81};}function D(_0x3e9544){const _0x10da74=_0x3be772;return(0x0,e[_0x10da74(0x141)])(_0x3e9544)[_0x10da74(0x12a)]-0x1;}function Se(_0x3ca1c4,_0x1146f7,_0x111257,_0x307d71){const _0x2e58ae=_0x3be772;let _0x48198d=D(_0x1146f7),_0x44e775=(_0x3ca1c4[_0x2e58ae(0xd9)]??[])[_0x2e58ae(0x131)](_0x50655a=>_0x50655a[_0x2e58ae(0x147)]===_0x48198d+0x1);if(!_0x44e775||_0x307d71!=null&&_0x44e775['startIndex']!==_0x307d71||_0x111257!=null&&(_0x111257<_0x48198d||_0x111257>_0x44e775[_0x2e58ae(0x147)]+0x1)||_0x3ca1c4[_0x2e58ae(0x11d)][_0x44e775[_0x2e58ae(0x147)]]!==e[_0x2e58ae(0x16e)][_0x2e58ae(0x106)])return null;let _0xe7335e=(0x0,e[_0x2e58ae(0x18e)])(_0x3ca1c4,_0x44e775),_0x36a302=_0x3ca1c4[_0x2e58ae(0x11d)][_0x2e58ae(0x138)](_0xe7335e,_0x44e775['startIndex']);return Array[_0x2e58ae(0x10f)](_0x36a302)[_0x2e58ae(0xe0)](_0x39dd34=>_0x39dd34===e[_0x2e58ae(0x16e)]['BLOCK_END'])?{'paragraph':_0x44e775,'endTokenOffset':_0x48198d}:null;}function O(_0x1ef1c1,_0x354b80){const _0x57af55=_0x3be772;var _0x14fa09;let _0x3060d1=D(_0x354b80),_0x321e0=_0x1ef1c1[_0x57af55(0x11d)][_0x3060d1+0x1];(_0x321e0===e[_0x57af55(0x16e)][_0x57af55(0x190)]||_0x321e0===void 0x0)&&k(_0x1ef1c1,_0x3060d1+0x1,e[_0x57af55(0x16e)][_0x57af55(0x106)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,e['createParagraphId'])(new Set((_0x14fa09=_0x1ef1c1[_0x57af55(0xd9)])==null?void 0x0:_0x14fa09[_0x57af55(0x11b)](_0x2df7de=>_0x2df7de[_0x57af55(0x135)])))}]});}function k(_0x426769,_0x367fab,_0x2e784d,_0x35fb1a={}){const _0x5526e2=_0x3be772;var _0x9ac7fd,_0x26fe4c;_0x2e784d&&(_0x426769[_0x5526e2(0x11d)]=''+_0x426769[_0x5526e2(0x11d)]['slice'](0x0,_0x367fab)+_0x2e784d+_0x426769[_0x5526e2(0x11d)][_0x5526e2(0x138)](_0x367fab),Ce(_0x426769,_0x367fab,_0x2e784d[_0x5526e2(0xbe)]),(_0x9ac7fd=_0x35fb1a[_0x5526e2(0xd9)])!=null&&_0x9ac7fd[_0x5526e2(0xbe)]&&(_0x426769['paragraphs']=[..._0x426769['paragraphs']??[],..._0x35fb1a['paragraphs']['map'](_0x3ea265=>({..._0x3ea265,'startIndex':_0x3ea265[_0x5526e2(0x147)]+_0x367fab}))][_0x5526e2(0xf9)]((_0x3ec50a,_0xc598da)=>_0x3ec50a[_0x5526e2(0x147)]-_0xc598da['startIndex'])),(_0x26fe4c=_0x35fb1a['blockRanges'])!=null&&_0x26fe4c[_0x5526e2(0xbe)]&&(_0x426769[_0x5526e2(0xe7)]=[..._0x426769[_0x5526e2(0xe7)]??[],..._0x35fb1a['blockRanges'][_0x5526e2(0x11b)](_0x151134=>({..._0x151134,'startIndex':_0x151134[_0x5526e2(0x147)]+_0x367fab,'endIndex':_0x151134['endIndex']+_0x367fab}))][_0x5526e2(0xf9)]((_0x30a1a0,_0x132166)=>_0x30a1a0['startIndex']-_0x132166['startIndex'])));}function A(_0x17bff2,_0x5d8f08,_0x48b12f){const _0x435dd6=_0x3be772;let _0x4b1219=_0x48b12f-_0x5d8f08;_0x17bff2[_0x435dd6(0x11d)]=''+_0x17bff2['dataStream'][_0x435dd6(0x138)](0x0,_0x5d8f08)+_0x17bff2[_0x435dd6(0x11d)][_0x435dd6(0x138)](_0x48b12f),we(_0x17bff2,_0x5d8f08,_0x4b1219);}function Ce(_0x250e75,_0x435e0e,_0x4294f4){const _0x4827ae=_0x3be772;_0x250e75[_0x4827ae(0xd9)]=j(_0x250e75['paragraphs'],_0x435e0e,_0x4294f4),_0x250e75[_0x4827ae(0x161)]=j(_0x250e75[_0x4827ae(0x161)],_0x435e0e,_0x4294f4),_0x250e75['customBlocks']=j(_0x250e75['customBlocks'],_0x435e0e,_0x4294f4),_0x250e75['textRuns']=Te(_0x250e75[_0x4827ae(0x15d)],_0x435e0e,_0x4294f4),_0x250e75[_0x4827ae(0xfb)]=Ee(_0x250e75[_0x4827ae(0xfb)],_0x435e0e,_0x4294f4),_0x250e75[_0x4827ae(0x10e)]=N(_0x250e75[_0x4827ae(0x10e)],_0x435e0e,_0x4294f4),_0x250e75['customRanges']=N(_0x250e75[_0x4827ae(0x155)],_0x435e0e,_0x4294f4),_0x250e75[_0x4827ae(0x173)]=N(_0x250e75['customDecorations'],_0x435e0e,_0x4294f4),_0x250e75[_0x4827ae(0xe7)]=N(_0x250e75[_0x4827ae(0xe7)],_0x435e0e,_0x4294f4);}function we(_0x435d74,_0x49f08c,_0x4b055b){const _0x10cd96=_0x3be772;var _0x348ae5,_0x33b444;_0x435d74[_0x10cd96(0xd9)]=M(_0x435d74[_0x10cd96(0xd9)],_0x49f08c,_0x4b055b),_0x435d74[_0x10cd96(0x161)]=M(_0x435d74[_0x10cd96(0x161)],_0x49f08c,_0x4b055b),_0x435d74['customBlocks']=M(_0x435d74['customBlocks'],_0x49f08c,_0x4b055b),_0x435d74['textRuns']=(_0x348ae5=F((_0x33b444=_0x435d74[_0x10cd96(0x15d)])==null?void 0x0:_0x33b444[_0x10cd96(0x11b)](_0x5f1f98=>({..._0x5f1f98,'startIndex':_0x5f1f98['st'],'endIndex':_0x5f1f98['ed']})),_0x49f08c,_0x4b055b))==null?void 0x0:_0x348ae5[_0x10cd96(0x11b)](_0x1a7080=>{let {startIndex:_0xc7c970,endIndex:_0x102fc3,..._0x27db40}=_0x1a7080;return{..._0x27db40,'st':_0xc7c970,'ed':_0x102fc3};}),_0x435d74[_0x10cd96(0xfb)]=F(_0x435d74[_0x10cd96(0xfb)],_0x49f08c,_0x4b055b),_0x435d74[_0x10cd96(0x10e)]=P(_0x435d74['columnGroups'],_0x49f08c,_0x4b055b),_0x435d74[_0x10cd96(0x155)]=P(_0x435d74[_0x10cd96(0x155)],_0x49f08c,_0x4b055b),_0x435d74[_0x10cd96(0x173)]=P(_0x435d74['customDecorations'],_0x49f08c,_0x4b055b),_0x435d74['blockRanges']=P(_0x435d74['blockRanges'],_0x49f08c,_0x4b055b);}function j(_0x239abe,_0x1f02cb,_0x56a878){const _0x9f39db=_0x3be772;return _0x239abe==null?void 0x0:_0x239abe[_0x9f39db(0x11b)](_0x365738=>_0x365738['startIndex']>=_0x1f02cb?{..._0x365738,'startIndex':_0x365738['startIndex']+_0x56a878}:_0x365738);}function M(_0x42c8d0,_0x38cf99,_0x1cf9db){const _0x2eb957=_0x3be772;let _0x413e73=_0x38cf99+_0x1cf9db;return _0x42c8d0==null?void 0x0:_0x42c8d0['map'](_0x6824fb=>_0x6824fb['startIndex']>=_0x38cf99&&_0x6824fb[_0x2eb957(0x147)]<_0x413e73?null:_0x6824fb[_0x2eb957(0x147)]>=_0x413e73?{..._0x6824fb,'startIndex':_0x6824fb[_0x2eb957(0x147)]-_0x1cf9db}:_0x6824fb)[_0x2eb957(0x111)](_0x209d3f=>_0x209d3f!=null);}function Te(_0x46bc9f,_0x48ea15,_0x44bfa9){const _0x42fbda=_0x3be772;return _0x46bc9f==null?void 0x0:_0x46bc9f[_0x42fbda(0x11b)](_0x29e06c=>_0x29e06c['st']>=_0x48ea15?{..._0x29e06c,'st':_0x29e06c['st']+_0x44bfa9,'ed':_0x29e06c['ed']+_0x44bfa9}:_0x29e06c['ed']>_0x48ea15?{..._0x29e06c,'ed':_0x29e06c['ed']+_0x44bfa9}:_0x29e06c);}function N(_0x2799f0,_0x5afec0,_0x478c93){const _0xaa5057=_0x3be772;return _0x2799f0==null?void 0x0:_0x2799f0[_0xaa5057(0x11b)](_0x2fffe9=>(0x0,e['shiftInclusiveRangeOnInsert'])(_0x2fffe9,_0x5afec0,_0x478c93));}function Ee(_0x238663,_0x2995a9,_0x9552b2){const _0x3cf474=_0x3be772;return _0x238663==null?void 0x0:_0x238663[_0x3cf474(0x11b)](_0x1d1e29=>(0x0,e['shiftExclusiveRangeOnInsert'])(_0x1d1e29,_0x2995a9,_0x9552b2));}function _0x5d6d(){const _0x253d24=['getSingleDataStreamChange','_configService','get','docs-code.command.exit','registerPluginResource','textStyle','find','shiftInclusiveRangeOnDelete','call','dispose','paragraphId','Disposable','Inject','slice','symbol','cursorOffset','getContentInsertRange','5689838UuuQQR','DocsCodeUnwrapCommand','documentData','left','indexOf','getBlockRangeInterval','docs-code.command.insert-below','columns','DocsCodeCancelEmptyParagraphCommand','docs-code.config','getSnapshot','startIndex','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','startTokenOffset','BuildTextUtils','getUnit','max','codes','BLOCK_START','12AJTBAE','DocsCodeInsertCommand','57666nEKQvr','intersectsOperationalIntervals','model','normalizeDocsCodeMetadataResource','customRanges','syncExecuteCommand','customBlocks','3108345OgONIk','endIndex','blockType','startOffset','min','textRuns','config','_resources','Module','sectionBreaks','toStringTag','Injector','50SQqYtR','isCodeBoundaryDelete','default','FALSE','paragraphStyle','UNIVER_DOC','removeOp','pluginName','parse','javascript','DataStreamTreeTokenType','SetDocsCodeConfigMutation','IResourceManagerService','compose','27QfODGa','customDecorations','body','UniverDocsCodePlugin','push','function','4155679uxStcb','setCodeConfig','_commandService','retain','TextX','deleteLength','reduce','constructor','TRUE','removeUnit','DOCS_CODE_PLUGIN','merge','DocSelectionManagerService','direction','spaceBelow','_initResource','DocumentBlockRangeType','range','3ItYZel','blockId','docs-code.command.update','_config','getParagraphContentStartOffset','2164452cnnNNN','SECTION_BREAK','widowControl','getOwnPropertyDescriptor','docs-code.command.unwrap','DocsCodeConsumeBoundaryDeleteCommand','insert','length','entries','defineProperty','fromEntries','insertionMode','nextMetadata','set','_docsCodeModel','Subject','DOC_CODE_PLUGIN','TABLE_CELL_END','forEach','version','previousDocumentData','CommandType','buildCancelEmptyCodeParagraphActions','JSONX','Document\x20body\x20is\x20required','paragraph','endTokenOffset','deserialize','docs-code.command.remove','docs-code.command.cancel-empty-paragraph','IUniverInstanceService','DocsCodeRemoveCommand','selectionManager','complete','paragraphs','RichTextEditingMutation','registerCommand','some','paragraphStartIndex','isHeaderFooterSelection','delete','every','_resourceManagerService','endsWith','2813580fbJLvk','COMMAND','editOp','commandService','blockRanges','1.0.0-beta.0','replaceDocRanges','keepNext','handler','_change$','DocsCodeModel','iterator','type','decorate','getUnitId','removeCode','toPrimitive','getInstance','keepLines','getTextRanges','disposeWithMe','start','sort','_injector','tables','getBody','BLOCK_END','indentStart','docs-code.command.insert','getParagraphContentStartOffsets','IConfigService','prototype','serialize','2337784TcTNjI','replaceOp','PARAGRAPH','add','unitId','ICommandService','containsInteriorInsertionOffset','@univerjs-pro/docs-code','nextDocumentData','DependentOn','columnGroups','from','change$','filter','BooleanNumber','stringify','isArray','_setResource','packageName','MUTATION','generateRandomId','spaceAbove','right','map','shiftExclusiveRangeOnDelete','dataStream','insert-new','docs-code.mutation.set-config','insertLength','getCurrentUnitOfType','CODE','string','UniverInstanceType','onStarting','object','metadata','UniverDocsPlugin','insertOp','endOffset'];_0x5d6d=function(){return _0x253d24;};return _0x5d6d();}function P(_0x57eb0f,_0x5b58cc,_0x1d83c7){const _0x430a99=_0x3be772;return _0x57eb0f==null?void 0x0:_0x57eb0f[_0x430a99(0x11b)](_0x12517b=>(0x0,e[_0x430a99(0x132)])(_0x12517b,_0x5b58cc,_0x1d83c7))[_0x430a99(0x111)](_0x2a396e=>_0x2a396e!=null);}function F(_0x5174b4,_0x3dcfb3,_0x3b4591){const _0x46ad3e=_0x3be772;return _0x5174b4==null?void 0x0:_0x5174b4[_0x46ad3e(0x11b)](_0x455ecd=>(0x0,e[_0x46ad3e(0x11c)])(_0x455ecd,_0x3dcfb3,_0x3b4591))[_0x46ad3e(0x111)](_0x2a7f69=>_0x2a7f69!=null);}const I={'id':_0x3be772(0x142),'type':e[_0x3be772(0xcc)][_0x3be772(0xe4)],'handler':_0x1b0cfc=>{const _0x40a6b7=_0x3be772;var _0x965be5;if((0x0,n[_0x40a6b7(0xde)])(W(_0x1b0cfc)))return!0x1;let _0x2203ea=(0x0,n[_0x40a6b7(0x13b)])(_0x1b0cfc);if(_0x2203ea)return _0x1b0cfc[_0x40a6b7(0x12d)](e['ICommandService'])[_0x40a6b7(0x156)](R['id'],{'startOffset':_0x2203ea[_0x40a6b7(0x15b)],'endOffset':_0x2203ea['endOffset'],'insertionMode':_0x40a6b7(0x11e),'unitId':_0x2203ea[_0x40a6b7(0x108)]});let _0x560dcb=je(_0x1b0cfc);if(!_0x560dcb)return!0x1;let _0x502309=(_0x965be5=_0x1b0cfc[_0x40a6b7(0x12d)](e[_0x40a6b7(0xd5)])['getCurrentUnitOfType'](e['UniverInstanceType'][_0x40a6b7(0x169)]))==null?void 0x0:_0x965be5['getBody'](),_0x498866=_0x502309?(0x0,e['getParagraphFollowingBlockOffset'])(_0x502309,_0x560dcb):_0x560dcb[_0x40a6b7(0x147)]+0x1;return _0x1b0cfc['get'](e[_0x40a6b7(0x109)])[_0x40a6b7(0x156)](R['id'],{'startOffset':_0x498866,'endOffset':_0x498866});}},L={'id':'docs-code.command.consume-boundary-delete','type':e['CommandType'][_0x3be772(0xe4)],'handler':()=>!0x0},R={'id':_0x3be772(0xff),'type':e[_0x3be772(0xcc)]['COMMAND'],'handler':(_0x7736cd,_0x57745a)=>{const _0x1f87c7=_0x3be772;let _0x4d6577=U(_0x7736cd,_0x57745a==null?void 0x0:_0x57745a['unitId']);if(!_0x4d6577)return!0x1;let _0x563311=W(_0x7736cd);if((0x0,n[_0x1f87c7(0xde)])(_0x563311))return!0x1;let _0xdbbfc6=_0x4d6577['model']['serialize'](_0x4d6577[_0x1f87c7(0x108)]),_0x4acf6f=Oe(_0x57745a,_0x563311),_0x46d947=ke(_0x4d6577[_0x1f87c7(0xcb)],_0x4acf6f);if(_0x46d947){if(_0x46d947[_0x1f87c7(0x15a)]!==e[_0x1f87c7(0x188)][_0x1f87c7(0x122)])return!0x1;let _0x4f1446=v({'blockId':_0x46d947[_0x1f87c7(0x18b)],'documentData':_0x4d6577['previousDocumentData'],'metadata':_0xdbbfc6});if(!_0x4f1446)return!0x1;let _0x54480a=J(_0x4d6577[_0x1f87c7(0xe6)],_0x4d6577[_0x1f87c7(0xd7)],_0x4d6577[_0x1f87c7(0x108)],_0x4d6577[_0x1f87c7(0xcb)],_0x4f1446[_0x1f87c7(0x10c)],R['id'],_0x4f1446[_0x1f87c7(0x13a)]);return _0x54480a&&_0x4f1446[_0x1f87c7(0xc3)]&&_0x4d6577[_0x1f87c7(0x153)]['deserialize'](_0x4d6577[_0x1f87c7(0x108)],_0x4f1446['nextMetadata']),_0x54480a;}let _0x3ca44d=(_0x57745a==null?void 0x0:_0x57745a[_0x1f87c7(0x18b)])??(0x0,e[_0x1f87c7(0x118)])(0x6),_0x43f6d6;try{_0x43f6d6=ee({'blockId':_0x3ca44d,'config':_0x57745a==null?void 0x0:_0x57745a['config'],'documentData':_0x4d6577[_0x1f87c7(0xcb)],'endOffset':_0x4acf6f==null?void 0x0:_0x4acf6f['endOffset'],'insertionMode':_0x57745a==null?void 0x0:_0x57745a[_0x1f87c7(0xc2)],'metadata':_0xdbbfc6,'startOffset':_0x4acf6f==null?void 0x0:_0x4acf6f[_0x1f87c7(0x15b)]});}catch(_0x1ce663){if(_0x1ce663 instanceof _)return!0x1;throw _0x1ce663;}let _0x5df06a=J(_0x4d6577[_0x1f87c7(0xe6)],_0x4d6577[_0x1f87c7(0xd7)],_0x4d6577[_0x1f87c7(0x108)],_0x4d6577[_0x1f87c7(0xcb)],_0x43f6d6['nextDocumentData'],R['id'],_0x43f6d6[_0x1f87c7(0x13a)]);return _0x5df06a&&_0x43f6d6[_0x1f87c7(0xc3)]&&_0x4d6577[_0x1f87c7(0x153)]['deserialize'](_0x4d6577[_0x1f87c7(0x108)],_0x43f6d6[_0x1f87c7(0xc3)]),_0x5df06a;}},z={'id':_0x3be772(0x18c),'type':e[_0x3be772(0xcc)][_0x3be772(0xe4)],'handler':(_0x129bdd,_0x4acc16)=>{const _0x1cf7a5=_0x3be772;if(!_0x4acc16)return!0x1;let _0x42ea74=U(_0x129bdd,_0x4acc16[_0x1cf7a5(0x108)]);if(!_0x42ea74)return!0x1;let _0x2a0d9a=ie({'blockId':_0x4acc16[_0x1cf7a5(0x18b)],'config':_0x4acc16[_0x1cf7a5(0x15e)],'documentData':_0x42ea74[_0x1cf7a5(0xcb)],'metadata':_0x42ea74[_0x1cf7a5(0x153)][_0x1cf7a5(0x103)](_0x42ea74[_0x1cf7a5(0x108)])});return _0x2a0d9a[_0x1cf7a5(0xc3)]&&_0x42ea74['model'][_0x1cf7a5(0xd2)](_0x42ea74[_0x1cf7a5(0x108)],_0x2a0d9a[_0x1cf7a5(0xc3)]),!0x0;}},De={'id':_0x3be772(0x12e),'type':e['CommandType'][_0x3be772(0xe4)],'handler':(_0x115595,_0x3b84db)=>B[_0x3be772(0xeb)](_0x115595,_0x3b84db)},B={'id':_0x3be772(0xbb),'type':e[_0x3be772(0xcc)][_0x3be772(0xe4)],'handler':(_0x2a0e25,_0x1acffd)=>{const _0x44808b=_0x3be772;if(!_0x1acffd)return!0x1;let _0x4372b4=U(_0x2a0e25,_0x1acffd==null?void 0x0:_0x1acffd[_0x44808b(0x108)]);if(!_0x4372b4)return!0x1;let _0x6ac7bc=v({'blockId':_0x1acffd[_0x44808b(0x18b)],'documentData':_0x4372b4['previousDocumentData'],'metadata':_0x4372b4[_0x44808b(0x153)][_0x44808b(0x103)](_0x4372b4[_0x44808b(0x108)])});if(!_0x6ac7bc)return!0x1;let _0x56d35b=J(_0x4372b4[_0x44808b(0xe6)],_0x4372b4['selectionManager'],_0x4372b4[_0x44808b(0x108)],_0x4372b4['previousDocumentData'],_0x6ac7bc[_0x44808b(0x10c)],B['id'],_0x6ac7bc[_0x44808b(0x13a)]);return _0x56d35b&&_0x6ac7bc[_0x44808b(0xc3)]&&_0x4372b4[_0x44808b(0x153)][_0x44808b(0xd2)](_0x4372b4[_0x44808b(0x108)],_0x6ac7bc['nextMetadata']),_0x56d35b;}},V={'id':_0x3be772(0xd3),'type':e['CommandType'][_0x3be772(0xe4)],'handler':(_0x153bd1,_0x5ab0f0)=>{const _0x4afe46=_0x3be772;if(!_0x5ab0f0)return!0x1;let _0x5d7ad3=U(_0x153bd1,_0x5ab0f0==null?void 0x0:_0x5ab0f0[_0x4afe46(0x108)]);if(!_0x5d7ad3)return!0x1;let _0x270c84=ae({'blockId':_0x5ab0f0[_0x4afe46(0x18b)],'documentData':_0x5d7ad3[_0x4afe46(0xcb)],'metadata':_0x5d7ad3[_0x4afe46(0x153)][_0x4afe46(0x103)](_0x5d7ad3[_0x4afe46(0x108)])});if(!_0x270c84)return!0x1;let _0x345feb=J(_0x5d7ad3[_0x4afe46(0xe6)],_0x5d7ad3[_0x4afe46(0xd7)],_0x5d7ad3[_0x4afe46(0x108)],_0x5d7ad3[_0x4afe46(0xcb)],_0x270c84['nextDocumentData'],V['id'],_0x270c84[_0x4afe46(0x13a)]);return _0x345feb&&_0x270c84[_0x4afe46(0xc3)]&&_0x5d7ad3[_0x4afe46(0x153)][_0x4afe46(0xd2)](_0x5d7ad3[_0x4afe46(0x108)],_0x270c84[_0x4afe46(0xc3)]),_0x345feb;}},H={'id':_0x3be772(0xd4),'type':e[_0x3be772(0xcc)][_0x3be772(0xe4)],'handler':(_0x3d5674,_0x1093cd)=>{const _0x138f25=_0x3be772;var _0x31d47a;let _0x53e4b1=U(_0x3d5674,_0x1093cd==null?void 0x0:_0x1093cd['unitId']);if(!_0x53e4b1)return!0x1;let _0x4cd627=(_0x1093cd==null?void 0x0:_0x1093cd[_0x138f25(0x13a)])??((_0x31d47a=W(_0x3d5674))==null?void 0x0:_0x31d47a['startOffset']);if(_0x4cd627==null)return!0x1;let _0xd4417d=y({'cursorOffset':_0x4cd627,'documentData':_0x53e4b1[_0x138f25(0xcb)],'paragraphStartIndex':_0x1093cd==null?void 0x0:_0x1093cd[_0x138f25(0xdd)]});return _0xd4417d?J(_0x53e4b1[_0x138f25(0xe6)],_0x53e4b1[_0x138f25(0xd7)],_0x53e4b1['unitId'],_0x53e4b1[_0x138f25(0xcb)],_0xd4417d[_0x138f25(0x10c)],H['id'],_0xd4417d[_0x138f25(0x13a)]):!0x1;}};function _0x542f(_0x506c4c,_0x3eceeb){_0x506c4c=_0x506c4c-0xbb;const _0x5d6da8=_0x5d6d();let _0x542f9f=_0x5d6da8[_0x506c4c];return _0x542f9f;}function U(_0x639a34,_0x1752d0){const _0x5dcc16=_0x3be772;let _0x3c4bc6=_0x639a34['get'](e[_0x5dcc16(0xd5)]),_0x4b16e1=_0x1752d0?_0x3c4bc6[_0x5dcc16(0x14b)](_0x1752d0,e[_0x5dcc16(0x124)][_0x5dcc16(0x169)]):_0x3c4bc6[_0x5dcc16(0x121)](e[_0x5dcc16(0x124)]['UNIVER_DOC']);return _0x4b16e1?{'commandService':_0x639a34['get'](e['ICommandService']),'model':_0x639a34['get'](p),'previousDocumentData':_0x4b16e1[_0x5dcc16(0x146)](),'selectionManager':_0x639a34[_0x5dcc16(0x12d)](n[_0x5dcc16(0x184)]),'unitId':_0x4b16e1[_0x5dcc16(0xf1)]()}:null;}function W(_0xb400df){const _0x4a4512=_0x3be772;var _0x22ab40;return(_0x22ab40=_0xb400df[_0x4a4512(0x12d)](n[_0x4a4512(0x184)])[_0x4a4512(0xf6)]())==null?void 0x0:_0x22ab40[0x0];}function Oe(_0x429204,_0x415317){const _0x10b877=_0x3be772;let _0x3424ec=(_0x429204==null?void 0x0:_0x429204[_0x10b877(0x15b)])??(_0x415317==null?void 0x0:_0x415317[_0x10b877(0x15b)]),_0x329c84=(_0x429204==null?void 0x0:_0x429204['endOffset'])??(_0x415317==null?void 0x0:_0x415317[_0x10b877(0x12a)]);if(_0x3424ec!=null&&_0x329c84!=null)return{'endOffset':Math['max'](_0x3424ec,_0x329c84),'startOffset':Math[_0x10b877(0x15c)](_0x3424ec,_0x329c84)};}function ke(_0x4bbfd8,_0xe51cd2){const _0x5c2439=_0x3be772;var _0x4ef483;if(!_0xe51cd2)return;let _0xaa7f91=Ae(_0xe51cd2);return(_0x4ef483=_0x4bbfd8[_0x5c2439(0x174)])==null||(_0x4ef483=_0x4ef483[_0x5c2439(0xe7)])==null?void 0x0:_0x4ef483[_0x5c2439(0x131)](_0x1a4252=>{const _0x485a0a=_0x5c2439;let _0x368c7b=(0x0,e[_0x485a0a(0x141)])(_0x1a4252);return _0xe51cd2['startOffset']===_0xe51cd2['endOffset']?(0x0,e[_0x485a0a(0x10a)])(_0x368c7b,_0xaa7f91):(0x0,e['containsStreamIndex'])(_0x368c7b,_0xaa7f91);});}function Ae(_0x3ae57e){const _0x2ccb08=_0x3be772;return _0x3ae57e[_0x2ccb08(0x15b)]===_0x3ae57e[_0x2ccb08(0x12a)]?_0x3ae57e['startOffset']:_0x3ae57e[_0x2ccb08(0x15b)]+0x1;}function je(_0x2285b0){const _0x4be8e0=_0x3be772;let _0x552a9c=W(_0x2285b0);if(!_0x552a9c)return null;let _0x165e6f=_0x2285b0['get'](e[_0x4be8e0(0xd5)])['getCurrentUnitOfType'](e['UniverInstanceType'][_0x4be8e0(0x169)]),_0x58f502=_0x165e6f==null?void 0x0:_0x165e6f[_0x4be8e0(0xfc)]();return _0x58f502?e[_0x4be8e0(0x14a)][_0x4be8e0(0x189)]['getParagraphsInRange'](_0x552a9c,_0x58f502[_0x4be8e0(0xd9)]??[],_0x58f502[_0x4be8e0(0x11d)]??'')[0x0]??null:null;}function Me(_0x38c56a,_0x22dc72){const _0x1c8cc9=_0x3be772;let _0x64261f=_0x38c56a[_0x1c8cc9(0x174)],_0x16c858=_0x22dc72[_0x1c8cc9(0x174)],_0x39194f=(0x0,e[_0x1c8cc9(0x12b)])(_0x64261f,_0x16c858);return[_0x39194f&&_0x16c858?Ne(_0x16c858,_0x39194f):null,_0x39194f?null:Pe(_0x64261f,_0x16c858)][_0x1c8cc9(0x111)](Boolean)['reduce']((_0x58e87c,_0x23231b)=>e[_0x1c8cc9(0xce)]['compose'](_0x58e87c,_0x23231b),null);}function Ne(_0x4664f1,_0x26b5a3){const _0x1a5890=_0x3be772;let _0x5d8179=new e[(_0x1a5890(0x17c))]();return _0x5d8179[_0x1a5890(0x17b)](_0x26b5a3[_0x1a5890(0xf8)]),_0x26b5a3[_0x1a5890(0x120)]>0x0&&_0x5d8179[_0x1a5890(0xbd)](_0x26b5a3['insertLength'],(0x0,e['getBodySliceForTextXAction'])(_0x4664f1,_0x26b5a3[_0x1a5890(0xf8)],_0x26b5a3[_0x1a5890(0xf8)]+_0x26b5a3[_0x1a5890(0x120)],!0x1)),_0x26b5a3[_0x1a5890(0x17d)]>0x0&&_0x5d8179['delete'](_0x26b5a3[_0x1a5890(0x17d)]),e[_0x1a5890(0xce)][_0x1a5890(0xf4)]()[_0x1a5890(0xe5)](_0x5d8179[_0x1a5890(0x103)](),[_0x1a5890(0x174)]);}function Pe(_0x4089ab,_0x1ddd7c){const _0x54352b=_0x3be772;let _0x164277=[],_0x49962e=_0x4089ab?G(_0x4089ab):void 0x0,_0x35f94c=_0x1ddd7c?G(_0x1ddd7c):void 0x0;for(let _0x43f090 of Fe)K(e['JSONX'][_0x54352b(0xf4)](),['body',_0x43f090],_0x49962e==null?void 0x0:_0x49962e[_0x43f090],_0x35f94c==null?void 0x0:_0x35f94c[_0x43f090],_0x164277);return _0x164277[_0x54352b(0x17e)]((_0x1c32df,_0x13b62b)=>e[_0x54352b(0xce)][_0x54352b(0x171)](_0x1c32df,_0x13b62b),null);}const Fe=['paragraphs',_0x3be772(0x161),_0x3be772(0xfb),_0x3be772(0x10e),'blockRanges',_0x3be772(0x157),_0x3be772(0x155),_0x3be772(0x173),'textRuns'];function G(_0x54ec32){return _0x54ec32;}function K(_0x2fdb20,_0x5dc808,_0x5b4ff2,_0x64b4c2,_0x241ba7){const _0x5d3410=_0x3be772;if(!q(_0x5b4ff2,_0x64b4c2)){if(_0x5b4ff2==null){_0x241ba7[_0x5d3410(0x176)](_0x2fdb20[_0x5d3410(0x129)](_0x5dc808,_0x64b4c2));return;}if(_0x64b4c2==null){_0x241ba7['push'](_0x2fdb20[_0x5d3410(0x16a)](_0x5dc808,_0x5b4ff2));return;}if(Array[_0x5d3410(0x114)](_0x5b4ff2)&&Array[_0x5d3410(0x114)](_0x64b4c2)){Ie(_0x2fdb20,_0x5dc808,_0x5b4ff2,_0x64b4c2,_0x241ba7);return;}if(Le(_0x5b4ff2)&&Le(_0x64b4c2)){new Set([...Object['keys'](_0x5b4ff2),...Object['keys'](_0x64b4c2)])[_0x5d3410(0xc9)](_0x4d047b=>{K(_0x2fdb20,[..._0x5dc808,_0x4d047b],_0x5b4ff2[_0x4d047b],_0x64b4c2[_0x4d047b],_0x241ba7);});return;}_0x241ba7['push'](_0x2fdb20[_0x5d3410(0x105)](_0x5dc808,_0x5b4ff2,_0x64b4c2));}}function Ie(_0x599cc9,_0x4b20e4,_0x57b473,_0x504e17,_0x59f392){const _0x5cba29=_0x3be772;if(_0x57b473[_0x5cba29(0xbe)]===_0x504e17[_0x5cba29(0xbe)]){_0x57b473['forEach']((_0x3d7a3d,_0x319296)=>K(_0x599cc9,[..._0x4b20e4,_0x319296],_0x3d7a3d,_0x504e17[_0x319296],_0x59f392));return;}let _0x2c34c1=0x0;for(;_0x2c34c1<_0x57b473[_0x5cba29(0xbe)]&&_0x2c34c1<_0x504e17[_0x5cba29(0xbe)]&&q(_0x57b473[_0x2c34c1],_0x504e17[_0x2c34c1]);)_0x2c34c1++;let _0x2e9f9b=_0x57b473[_0x5cba29(0xbe)]-0x1,_0x30a029=_0x504e17[_0x5cba29(0xbe)]-0x1;for(;_0x2e9f9b>=_0x2c34c1&&_0x30a029>=_0x2c34c1&&q(_0x57b473[_0x2e9f9b],_0x504e17[_0x30a029]);)_0x2e9f9b--,_0x30a029--;for(let _0x45924a=_0x2e9f9b;_0x45924a>=_0x2c34c1;_0x45924a--)_0x59f392['push'](_0x599cc9['removeOp']([..._0x4b20e4,_0x45924a],_0x57b473[_0x45924a]));for(let _0x2fe8ea=_0x2c34c1;_0x2fe8ea<=_0x30a029;_0x2fe8ea++)_0x59f392[_0x5cba29(0x176)](_0x599cc9['insertOp']([..._0x4b20e4,_0x2fe8ea],_0x504e17[_0x2fe8ea]));}function Le(_0x3111f0){const _0x15f479=_0x3be772;return typeof _0x3111f0=='object'&&!!_0x3111f0&&!Array[_0x15f479(0x114)](_0x3111f0);}function q(_0x3dea2b,_0x373f75){const _0x1668fc=_0x3be772;return JSON['stringify'](_0x3dea2b)===JSON[_0x1668fc(0x113)](_0x373f75);}function J(_0x56fd08,_0x254e67,_0x8e16c6,_0x46bbee,_0x5ae0b7,_0x4c4633,_0x21d0b8){const _0xd64ebb=_0x3be772;let _0x4d07dd=Me(_0x46bbee,_0x5ae0b7);return _0x4d07dd?!!_0x56fd08[_0xd64ebb(0x156)](n[_0xd64ebb(0xda)]['id'],{'unitId':_0x8e16c6,'actions':_0x4d07dd,'textRanges':[{'startOffset':_0x21d0b8,'endOffset':_0x21d0b8,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x4c4633}):(_0x254e67[_0xd64ebb(0xe9)]([{'startOffset':_0x21d0b8,'endOffset':_0x21d0b8}],{'unitId':_0x8e16c6,'subUnitId':_0x8e16c6},!0x1),!0x0);}const Y=_0x3be772(0xc7);var Re=_0x3be772(0x10b),ze=_0x3be772(0xe8);const Be={};function X(_0x12eebf,_0x7e45a2){return function(_0x394d93,_0x37cfdc){_0x7e45a2(_0x394d93,_0x37cfdc,_0x12eebf);};}function Z(_0x2ee1ef,_0x5b4272,_0xeba332,_0x193eac){const _0x45b9e4=_0x3be772;var _0x514494=arguments[_0x45b9e4(0xbe)],_0x11aa71=_0x514494<0x3?_0x5b4272:_0x193eac===null?_0x193eac=Object[_0x45b9e4(0x192)](_0x5b4272,_0xeba332):_0x193eac,_0x19d377;if(typeof Reflect==_0x45b9e4(0x126)&&typeof Reflect['decorate']=='function')_0x11aa71=Reflect[_0x45b9e4(0xf0)](_0x2ee1ef,_0x5b4272,_0xeba332,_0x193eac);else{for(var _0x4eefc3=_0x2ee1ef[_0x45b9e4(0xbe)]-0x1;_0x4eefc3>=0x0;_0x4eefc3--)(_0x19d377=_0x2ee1ef[_0x4eefc3])&&(_0x11aa71=(_0x514494<0x3?_0x19d377(_0x11aa71):_0x514494>0x3?_0x19d377(_0x5b4272,_0xeba332,_0x11aa71):_0x19d377(_0x5b4272,_0xeba332))||_0x11aa71);}return _0x514494>0x3&&_0x11aa71&&Object['defineProperty'](_0x5b4272,_0xeba332,_0x11aa71),_0x11aa71;}let Q=class extends e[_0x3be772(0x136)]{constructor(_0x36650c,_0x2a65f5){const _0x16d3d5=_0x3be772;super(),this[_0x16d3d5(0xe1)]=_0x36650c,this[_0x16d3d5(0xc5)]=_0x2a65f5,this[_0x16d3d5(0x187)]();}[_0x3be772(0x187)](){const _0x3862e8=_0x3be772;this[_0x3862e8(0xf7)](this['_resourceManagerService'][_0x3862e8(0x12f)]({'pluginName':Y,'businesses':[e[_0x3862e8(0x124)][_0x3862e8(0x169)]],'toJson':_0x3ceff8=>JSON[_0x3862e8(0x113)](this[_0x3862e8(0xc5)][_0x3862e8(0x103)](_0x3ceff8)),'parseJson':_0x3556d6=>o(JSON[_0x3862e8(0x16c)](_0x3556d6)),'onLoad':(_0x23b719,_0x127fb0)=>this[_0x3862e8(0xc5)][_0x3862e8(0xd2)](_0x23b719,_0x127fb0),'onUnLoad':_0x43af73=>this['_docsCodeModel'][_0x3862e8(0x181)](_0x43af73)}));}};Q=Z([X(0x0,e[_0x3be772(0x170)]),X(0x1,(0x0,e[_0x3be772(0x137)])(p))],Q);let $=class extends e['Plugin']{constructor(_0x5cb3b7=Be,_0x1ccd01,_0x3d6fac,_0x47b62b){const _0x475f9b=_0x3be772;super(),this['_config']=_0x5cb3b7,this[_0x475f9b(0xfa)]=_0x1ccd01,this['_commandService']=_0x3d6fac,this['_configService']=_0x47b62b;let {..._0x295a49}=(0x0,e[_0x475f9b(0x183)])({},Be,this[_0x475f9b(0x18d)]);this[_0x475f9b(0x12c)]['setConfig'](_0x475f9b(0x145),_0x295a49);}[_0x3be772(0x125)](){const _0x29920d=_0x3be772;this['_injector'][_0x29920d(0x107)]([p]),this[_0x29920d(0xfa)]['add']([Q]),this[_0x29920d(0xfa)][_0x29920d(0x12d)](p),this['_injector'][_0x29920d(0x12d)](Q),[R,I,z,B,V,De,H,L,m,h][_0x29920d(0xc9)](_0x1b8de5=>this[_0x29920d(0xf7)](this[_0x29920d(0x17a)][_0x29920d(0xdb)](_0x1b8de5)));}};f($,_0x3be772(0x16b),Y),f($,_0x3be772(0x116),Re),f($,_0x3be772(0xca),ze),f($,_0x3be772(0xef),e[_0x3be772(0x124)][_0x3be772(0x169)]),$=Z([(0x0,e[_0x3be772(0x10d)])(r['UniverLicensePlugin'],n[_0x3be772(0x128)]),X(0x1,(0x0,e[_0x3be772(0x137)])(e[_0x3be772(0x163)])),X(0x2,e[_0x3be772(0x109)]),X(0x3,e[_0x3be772(0x101)])],$),exports[_0x3be772(0x182)]=Y,exports[_0x3be772(0x144)]=H,exports[_0x3be772(0xbc)]=L,exports['DocsCodeInsertBelowCommand']=I,exports[_0x3be772(0x150)]=R,exports[_0x3be772(0xed)]=p,exports[_0x3be772(0xd6)]=V,exports[_0x3be772(0x13d)]=B,exports['DocsCodeUpdateCommand']=z,exports['RemoveDocsCodeConfigMutation']=h,exports[_0x3be772(0x16f)]=m,Object[_0x3be772(0xc0)](exports,_0x3be772(0x175),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x3be772(0xcd)]=y,exports[_0x3be772(0x165)]=se,exports['normalizeDocsCodeConfig']=a,exports[_0x3be772(0x154)]=o;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x5334d3=_0x45dd;(function(_0x43723b,_0x52c584){var _0x2af36d=_0x45dd,_0x218859=_0x43723b();while(!![]){try{var _0x39cd28=-parseInt(_0x2af36d(0xb2))/0x1+-parseInt(_0x2af36d(0xbf))/0x2+-parseInt(_0x2af36d(0xe7))/0x3*(parseInt(_0x2af36d(0xa7))/0x4)+parseInt(_0x2af36d(0xb0))/0x5+parseInt(_0x2af36d(0xb1))/0x6+parseInt(_0x2af36d(0xc1))/0x7+-parseInt(_0x2af36d(0xdf))/0x8*(-parseInt(_0x2af36d(0xe6))/0x9);if(_0x39cd28===_0x52c584)break;else _0x218859['push'](_0x218859['shift']());}catch(_0xa4966c){_0x218859['push'](_0x218859['shift']());}}}(_0x5789,0x6b9b2));import{DocsCodeInsertCommand as _0x3d83e4,DocsCodeModel as _0x264053,DocsCodeRemoveCommand as _0x40e020,DocsCodeUnwrapCommand as _0x24fec2,DocsCodeUpdateCommand as _0x2be316,normalizeDocsCodeConfig as _0x441d77}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x3615b9,DocumentBlockRangeType as _0x3e7765,ICommandService as _0x221cfe,Inject as _0x4d2ccb,Injector as _0xdace2a,generateRandomId as _0x434031}from'@univerjs/core';import{FDocument as _0x1bb42d,isParagraphFacade as _0x53c7a}from'@univerjs/docs/facade';function m(_0x11c842){'@babel/helpers - typeof';var _0x494cdc=_0x45dd;return m=typeof Symbol==_0x494cdc(0xd5)&&typeof Symbol[_0x494cdc(0xb9)]==_0x494cdc(0xa5)?function(_0x7fc52a){return typeof _0x7fc52a;}:function(_0x1dc632){var _0x36486c=_0x494cdc;return _0x1dc632&&typeof Symbol=='function'&&_0x1dc632[_0x36486c(0xd6)]===Symbol&&_0x1dc632!==Symbol[_0x36486c(0xc3)]?_0x36486c(0xa5):typeof _0x1dc632;},m(_0x11c842);}function h(_0x5604ae,_0x17620d){var _0x5512dc=_0x45dd;if(m(_0x5604ae)!='object'||!_0x5604ae)return _0x5604ae;var _0x3487ce=_0x5604ae[Symbol[_0x5512dc(0xd9)]];if(_0x3487ce!==void 0x0){var _0x3e7f2d=_0x3487ce['call'](_0x5604ae,_0x17620d||_0x5512dc(0xe2));if(m(_0x3e7f2d)!='object')return _0x3e7f2d;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x17620d===_0x5512dc(0xd3)?String:Number)(_0x5604ae);}function g(_0x3d2dc8){var _0x45b261=_0x45dd,_0x2ca6b0=h(_0x3d2dc8,_0x45b261(0xd3));return m(_0x2ca6b0)=='symbol'?_0x2ca6b0:_0x2ca6b0+'';}function _(_0x528c30,_0x2bc657,_0x38428){var _0x3d8cd8=_0x45dd;return(_0x2bc657=g(_0x2bc657))in _0x528c30?Object[_0x3d8cd8(0xce)](_0x528c30,_0x2bc657,{'value':_0x38428,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x528c30[_0x2bc657]=_0x38428,_0x528c30;}function v(_0x21d251,_0x1d21b4){return function(_0x199104,_0x396a12){_0x1d21b4(_0x199104,_0x396a12,_0x21d251);};}function y(_0x4eccef,_0x570b1d,_0x315d3a,_0x1ffb81){var _0x407144=_0x45dd,_0x2dc723=arguments[_0x407144(0xe1)],_0x1fb0dc=_0x2dc723<0x3?_0x570b1d:_0x1ffb81===null?_0x1ffb81=Object[_0x407144(0xb6)](_0x570b1d,_0x315d3a):_0x1ffb81,_0x346e36;if(typeof Reflect=='object'&&typeof Reflect[_0x407144(0xbc)]==_0x407144(0xd5))_0x1fb0dc=Reflect[_0x407144(0xbc)](_0x4eccef,_0x570b1d,_0x315d3a,_0x1ffb81);else{for(var _0x2cbc22=_0x4eccef[_0x407144(0xe1)]-0x1;_0x2cbc22>=0x0;_0x2cbc22--)(_0x346e36=_0x4eccef[_0x2cbc22])&&(_0x1fb0dc=(_0x2dc723<0x3?_0x346e36(_0x1fb0dc):_0x2dc723>0x3?_0x346e36(_0x570b1d,_0x315d3a,_0x1fb0dc):_0x346e36(_0x570b1d,_0x315d3a))||_0x1fb0dc);}return _0x2dc723>0x3&&_0x1fb0dc&&Object['defineProperty'](_0x570b1d,_0x315d3a,_0x1fb0dc),_0x1fb0dc;}let b=class{constructor(_0x49ba97,_0x455337,_0x21c429){var _0x1c70ac=_0x45dd;this[_0x1c70ac(0xb4)]=_0x49ba97,this[_0x1c70ac(0xe5)]=_0x455337,this[_0x1c70ac(0xac)]=_0x21c429,_(this,_0x1c70ac(0xb3),void 0x0),this[_0x1c70ac(0xb3)]=this[_0x1c70ac(0xb4)]['getId']();}[_0x5334d3(0xcf)](){var _0x5c681a=_0x5334d3;return this[_0x5c681a(0xe5)];}[_0x5334d3(0xd2)](){var _0x1f3711=_0x5334d3;let _0x2bbea6=this[_0x1f3711(0xbe)]();return _0x2bbea6?{'blockId':_0x2bbea6[_0x1f3711(0xbb)],'endIndex':_0x2bbea6[_0x1f3711(0xcc)],'startIndex':_0x2bbea6[_0x1f3711(0xbd)]}:null;}[_0x5334d3(0xcb)](){var _0x5b00ff=_0x5334d3,_0x5b9377;let _0x973bea=this[_0x5b00ff(0xbe)](),_0x57956b=(_0x5b9377=this[_0x5b00ff(0xe3)]()[_0x5b00ff(0xae)])==null?void 0x0:_0x5b9377['dataStream'];return!_0x973bea||!_0x57956b?'':x(_0x57956b['slice'](_0x973bea[_0x5b00ff(0xbd)]+0x1,_0x973bea[_0x5b00ff(0xcc)]));}[_0x5334d3(0xa6)](){var _0x210e91=_0x5334d3;let _0x4fe5e7=this[_0x210e91(0xd2)]();return _0x4fe5e7?{..._0x4fe5e7,'config':this[_0x210e91(0xd1)](),'text':this[_0x210e91(0xcb)](),'type':_0x3e7765[_0x210e91(0xc9)]}:null;}['getConfig'](){var _0xc6141f=_0x5334d3;return _0x441d77(this[_0xc6141f(0xac)][_0xc6141f(0xb5)](_0x264053)['getCodeConfig'](this[_0xc6141f(0xb3)],this[_0xc6141f(0xe5)]));}[_0x5334d3(0xd4)](_0x1d6a42){var _0x90e16e=_0x5334d3;return this[_0x90e16e(0xac)][_0x90e16e(0xb5)](_0x221cfe)[_0x90e16e(0xe4)](_0x2be316['id'],{'blockId':this[_0x90e16e(0xe5)],'config':_0x1d6a42['config'],'unitId':this[_0x90e16e(0xb3)]});}[_0x5334d3(0xab)](){var _0x16237d=_0x5334d3;return this[_0x16237d(0xac)]['get'](_0x221cfe)[_0x16237d(0xe4)](_0x24fec2['id'],{'blockId':this[_0x16237d(0xe5)],'unitId':this[_0x16237d(0xb3)]});}[_0x5334d3(0xd0)](){var _0x33570a=_0x5334d3;return this[_0x33570a(0xac)][_0x33570a(0xb5)](_0x221cfe)['syncExecuteCommand'](_0x40e020['id'],{'blockId':this[_0x33570a(0xe5)],'unitId':this['_unitId']});}[_0x5334d3(0xbe)](){var _0x20b2a8=_0x5334d3,_0x4119ee;let _0x52df2f=(_0x4119ee=this['_getDocumentData']()[_0x20b2a8(0xae)])==null||(_0x4119ee=_0x4119ee[_0x20b2a8(0xca)])==null?void 0x0:_0x4119ee[_0x20b2a8(0xcd)](_0x499ee3=>_0x499ee3['blockId']===this[_0x20b2a8(0xe5)]&&_0x499ee3[_0x20b2a8(0xc4)]===_0x3e7765[_0x20b2a8(0xc9)]);return _0x52df2f==null?null:_0x52df2f;}[_0x5334d3(0xe3)](){var _0x34ef92=_0x5334d3;return this[_0x34ef92(0xb4)][_0x34ef92(0xde)]();}};b=y([v(0x2,_0x4d2ccb(_0xdace2a))],b);function x(_0x47bc49){var _0x2b9bbd=_0x5334d3;return Array[_0x2b9bbd(0xad)](_0x47bc49)[_0x2b9bbd(0xba)](_0x4f7a59=>_0x4f7a59===_0x3615b9[_0x2b9bbd(0xdb)]?'\x0a':_0x4f7a59)[_0x2b9bbd(0xd8)](_0x4fb6fb=>_0x4fb6fb!==_0x3615b9[_0x2b9bbd(0xb7)]&&_0x4fb6fb!==_0x3615b9[_0x2b9bbd(0xc8)]&&_0x4fb6fb!==_0x3615b9[_0x2b9bbd(0xda)])[_0x2b9bbd(0xdc)]('')[_0x2b9bbd(0xc0)](/\n$/,'');}var S=class extends _0x1bb42d{[_0x5334d3(0xd7)](){var _0x23edea=_0x5334d3;return this[_0x23edea(0xa9)]()[_0x23edea(0xd8)](_0x6fc365=>_0x6fc365[_0x23edea(0xc4)]===_0x3e7765[_0x23edea(0xc9)])['map'](_0x327160=>this['_createFDocumentCode'](_0x327160[_0x23edea(0xbb)]));}[_0x5334d3(0xdd)](_0x1eaf98){var _0x197818=_0x5334d3;return this[_0x197818(0xa9)]()[_0x197818(0xa8)](_0x5347d8=>_0x5347d8[_0x197818(0xbb)]===_0x1eaf98&&_0x5347d8[_0x197818(0xc4)]===_0x3e7765[_0x197818(0xc9)])?this[_0x197818(0xaa)](_0x1eaf98):null;}[_0x5334d3(0xc2)](_0x709084){var _0x43a714=_0x5334d3;let _0x553ac1=this['_getBlockRanges']()[_0x43a714(0xcd)](_0x57f3cf=>_0x57f3cf[_0x43a714(0xc4)]===_0x3e7765[_0x43a714(0xc9)]&&_0x57f3cf[_0x43a714(0xbd)]<=_0x709084&&_0x709084<=_0x57f3cf[_0x43a714(0xcc)]);return _0x553ac1?this[_0x43a714(0xaa)](_0x553ac1['blockId']):null;}[_0x5334d3(0xc7)](_0x13e7b7){var _0x4f575c;return(_0x4f575c=this['findCodes'](_0x13e7b7)[0x0])==null?null:_0x4f575c;}[_0x5334d3(0xb8)](_0x1c68d5){var _0x3fb89c=_0x5334d3;let _0x58e728=typeof _0x1c68d5=='string'?{'text':_0x1c68d5}:_0x1c68d5;return this['getCodes']()[_0x3fb89c(0xd8)](_0x1d26eb=>!(_0x58e728[_0x3fb89c(0xbb)]&&_0x1d26eb['getId']()!==_0x58e728[_0x3fb89c(0xbb)]||_0x58e728['text']&&!_0x1d26eb[_0x3fb89c(0xcb)]()[_0x3fb89c(0xc6)](_0x58e728[_0x3fb89c(0xaf)])));}[_0x5334d3(0xc5)](_0x20a1b5={},_0x1cc340={}){var _0x3d4bf3=_0x5334d3,_0x59874e;let _0x3bc052=this[_0x3d4bf3(0xac)]['get'](_0x221cfe),_0xb9df35=_0x53c7a(_0x20a1b5)?{..._0x1cc340,..._0x20a1b5[_0x3d4bf3(0xd2)]()}:_0x20a1b5,_0x55838a=(_0x59874e=_0xb9df35[_0x3d4bf3(0xbb)])==null?_0x434031(0x6):_0x59874e;return _0x3bc052[_0x3d4bf3(0xe4)](_0x3d83e4['id'],{..._0xb9df35,'blockId':_0x55838a,'unitId':this['getId']()})?this[_0x3d4bf3(0xdd)](_0x55838a):null;}[_0x5334d3(0xa9)](){var _0x17f581=_0x5334d3,_0x55eb5b,_0x3ec3d3;return(_0x55eb5b=(_0x3ec3d3=this[_0x17f581(0xde)]()['body'])==null?void 0x0:_0x3ec3d3[_0x17f581(0xca)])==null?[]:_0x55eb5b;}[_0x5334d3(0xaa)](_0x10281e){var _0xe7a0dc=_0x5334d3;return this[_0xe7a0dc(0xac)][_0xe7a0dc(0xe0)](b,this,_0x10281e);}};function _0x45dd(_0x29906e,_0x245ef3){_0x29906e=_0x29906e-0xa5;var _0x5789c1=_0x5789();var _0x45dd4e=_0x5789c1[_0x29906e];return _0x45dd4e;}_0x1bb42d['extend'](S);export{b as FDocumentCode};function _0x5789(){var _0x4400b2=['decorate','startIndex','_getBlockRange','1111674mHJsDd','replace','184884iwWTUj','getCodeAt','prototype','blockType','insertCode','includes','findCodeByText','BLOCK_END','CODE','blockRanges','getText','endIndex','find','defineProperty','getId','remove','getConfig','getRange','string','updateConfig','function','constructor','getCodes','filter','toPrimitive','SECTION_BREAK','PARAGRAPH','join','getCode','save','224igULNG','createInstance','length','default','_getDocumentData','syncExecuteCommand','_blockId','397080nxIHDr','9297NUDjaZ','symbol','describe','944IqHiGg','some','_getBlockRanges','_createFDocumentCode','unwrap','_injector','from','body','text','1372485sINbkx','1598214OCianJ','74683dwCaCa','_unitId','_document','get','getOwnPropertyDescriptor','BLOCK_START','findCodes','iterator','map','blockId'];_0x5789=function(){return _0x4400b2;};return _0x5789();}
1
+ var _0x42de59=_0x37ed;(function(_0x7d25dd,_0x3e911c){var _0x277074=_0x37ed,_0x2f830f=_0x7d25dd();while(!![]){try{var _0x355b05=-parseInt(_0x277074(0x127))/0x1*(-parseInt(_0x277074(0x12c))/0x2)+parseInt(_0x277074(0x11c))/0x3+parseInt(_0x277074(0x116))/0x4*(-parseInt(_0x277074(0x141))/0x5)+-parseInt(_0x277074(0x120))/0x6*(-parseInt(_0x277074(0x12b))/0x7)+parseInt(_0x277074(0x148))/0x8*(parseInt(_0x277074(0x123))/0x9)+parseInt(_0x277074(0x10e))/0xa*(-parseInt(_0x277074(0x147))/0xb)+parseInt(_0x277074(0x121))/0xc;if(_0x355b05===_0x3e911c)break;else _0x2f830f['push'](_0x2f830f['shift']());}catch(_0x5865fc){_0x2f830f['push'](_0x2f830f['shift']());}}}(_0x5f56,0x43f07));import{DocsCodeInsertCommand as _0x39d856,DocsCodeModel as _0x436470,DocsCodeRemoveCommand as _0x1c7b07,DocsCodeUnwrapCommand as _0x31dc38,DocsCodeUpdateCommand as _0xc82bdf,normalizeDocsCodeConfig as _0x3744fb}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x1ba54d,DocumentBlockRangeType as _0x346456,ICommandService as _0x1995d8,Inject as _0x231452,Injector as _0x38022c,generateRandomId as _0x2a9cce}from'@univerjs/core';function _0x37ed(_0x2d98ea,_0x45a458){_0x2d98ea=_0x2d98ea-0x109;var _0x5f56a9=_0x5f56();var _0x37ed4b=_0x5f56a9[_0x2d98ea];return _0x37ed4b;}import{FDocument as _0x312eed,isParagraphFacade as _0x4be108}from'@univerjs/docs/facade';function m(_0x5420fb){'@babel/helpers - typeof';var _0x384246=_0x37ed;return m=typeof Symbol==_0x384246(0x133)&&typeof Symbol[_0x384246(0x145)]==_0x384246(0x10b)?function(_0x2ccbbe){return typeof _0x2ccbbe;}:function(_0x17492b){var _0x4cc83e=_0x384246;return _0x17492b&&typeof Symbol==_0x4cc83e(0x133)&&_0x17492b[_0x4cc83e(0x149)]===Symbol&&_0x17492b!==Symbol[_0x4cc83e(0x135)]?_0x4cc83e(0x10b):typeof _0x17492b;},m(_0x5420fb);}function h(_0xe0fa8f,_0x42c681){var _0x102626=_0x37ed;if(m(_0xe0fa8f)!=_0x102626(0x125)||!_0xe0fa8f)return _0xe0fa8f;var _0x47ad4a=_0xe0fa8f[Symbol[_0x102626(0x129)]];if(_0x47ad4a!==void 0x0){var _0x5a2f65=_0x47ad4a[_0x102626(0x11b)](_0xe0fa8f,_0x42c681||_0x102626(0x12e));if(m(_0x5a2f65)!=_0x102626(0x125))return _0x5a2f65;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x42c681===_0x102626(0x13d)?String:Number)(_0xe0fa8f);}function g(_0x4bd917){var _0x22e8a3=_0x37ed,_0x3adf7f=h(_0x4bd917,_0x22e8a3(0x13d));return m(_0x3adf7f)==_0x22e8a3(0x10b)?_0x3adf7f:_0x3adf7f+'';}function _(_0x337774,_0x33bb50,_0x159898){var _0x54a564=_0x37ed;return(_0x33bb50=g(_0x33bb50))in _0x337774?Object[_0x54a564(0x117)](_0x337774,_0x33bb50,{'value':_0x159898,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x337774[_0x33bb50]=_0x159898,_0x337774;}function v(_0x3c7a10,_0x45e9bb){return function(_0x4474a9,_0xdf9774){_0x45e9bb(_0x4474a9,_0xdf9774,_0x3c7a10);};}function y(_0x54271e,_0x2894fc,_0x31afe4,_0x1a341d){var _0xf93832=_0x37ed,_0x58f15f=arguments[_0xf93832(0x142)],_0x5615f9=_0x58f15f<0x3?_0x2894fc:_0x1a341d===null?_0x1a341d=Object[_0xf93832(0x134)](_0x2894fc,_0x31afe4):_0x1a341d,_0x1c1246;if(typeof Reflect==_0xf93832(0x125)&&typeof Reflect['decorate']=='function')_0x5615f9=Reflect[_0xf93832(0x126)](_0x54271e,_0x2894fc,_0x31afe4,_0x1a341d);else{for(var _0x17f426=_0x54271e[_0xf93832(0x142)]-0x1;_0x17f426>=0x0;_0x17f426--)(_0x1c1246=_0x54271e[_0x17f426])&&(_0x5615f9=(_0x58f15f<0x3?_0x1c1246(_0x5615f9):_0x58f15f>0x3?_0x1c1246(_0x2894fc,_0x31afe4,_0x5615f9):_0x1c1246(_0x2894fc,_0x31afe4))||_0x5615f9);}return _0x58f15f>0x3&&_0x5615f9&&Object['defineProperty'](_0x2894fc,_0x31afe4,_0x5615f9),_0x5615f9;}let b=class{constructor(_0x594e7e,_0x50ff4b,_0x26d675){var _0x135ad5=_0x37ed;this[_0x135ad5(0x130)]=_0x594e7e,this[_0x135ad5(0x10c)]=_0x50ff4b,this['_injector']=_0x26d675,_(this,_0x135ad5(0x10a),void 0x0),this[_0x135ad5(0x10a)]=this[_0x135ad5(0x130)][_0x135ad5(0x14b)]();}[_0x42de59(0x14b)](){return this['_blockId'];}[_0x42de59(0x143)](){var _0x372cd4=_0x42de59;let _0x3eae93=this[_0x372cd4(0x13f)]();return _0x3eae93?{'blockId':_0x3eae93['blockId'],'endIndex':_0x3eae93[_0x372cd4(0x11a)],'startIndex':_0x3eae93[_0x372cd4(0x13c)]}:null;}[_0x42de59(0x109)](){var _0x1cdae8=_0x42de59,_0xc92172;let _0x12b371=this[_0x1cdae8(0x13f)](),_0x2d8dc6=(_0xc92172=this[_0x1cdae8(0x12a)]()['body'])==null?void 0x0:_0xc92172[_0x1cdae8(0x144)];return!_0x12b371||!_0x2d8dc6?'':x(_0x2d8dc6['slice'](_0x12b371[_0x1cdae8(0x13c)]+0x1,_0x12b371[_0x1cdae8(0x11a)]));}[_0x42de59(0x138)](){var _0x51173d=_0x42de59;let _0x226abf=this['getRange']();return _0x226abf?{..._0x226abf,'config':this[_0x51173d(0x119)](),'text':this[_0x51173d(0x109)](),'type':_0x346456[_0x51173d(0x128)]}:null;}['getConfig'](){var _0x55f167=_0x42de59;return _0x3744fb(this[_0x55f167(0x118)][_0x55f167(0x124)](_0x436470)[_0x55f167(0x114)](this[_0x55f167(0x10a)],this['_blockId']));}['updateConfig'](_0x1b492b){var _0x123371=_0x42de59;return this[_0x123371(0x118)]['get'](_0x1995d8)['syncExecuteCommand'](_0xc82bdf['id'],{'blockId':this['_blockId'],'config':_0x1b492b[_0x123371(0x13b)],'unitId':this['_unitId']});}['unwrap'](){var _0x5374e8=_0x42de59;return this[_0x5374e8(0x118)][_0x5374e8(0x124)](_0x1995d8)[_0x5374e8(0x122)](_0x31dc38['id'],{'blockId':this['_blockId'],'unitId':this[_0x5374e8(0x10a)]});}[_0x42de59(0x113)](){var _0x4a7585=_0x42de59;return this[_0x4a7585(0x118)][_0x4a7585(0x124)](_0x1995d8)['syncExecuteCommand'](_0x1c7b07['id'],{'blockId':this[_0x4a7585(0x10c)],'unitId':this[_0x4a7585(0x10a)]});}[_0x42de59(0x13f)](){var _0x56bbba=_0x42de59,_0x2c160f;return((_0x2c160f=this[_0x56bbba(0x12a)]()['body'])==null||(_0x2c160f=_0x2c160f[_0x56bbba(0x14d)])==null?void 0x0:_0x2c160f[_0x56bbba(0x14c)](_0x45d425=>_0x45d425[_0x56bbba(0x11e)]===this[_0x56bbba(0x10c)]&&_0x45d425[_0x56bbba(0x12f)]===_0x346456[_0x56bbba(0x128)]))??null;}[_0x42de59(0x12a)](){var _0x5d2f01=_0x42de59;return this[_0x5d2f01(0x130)][_0x5d2f01(0x13e)]();}};b=y([v(0x2,_0x231452(_0x38022c))],b);function x(_0x3c4546){var _0x5542c1=_0x42de59;return Array['from'](_0x3c4546)['map'](_0x3db03f=>_0x3db03f===_0x1ba54d[_0x5542c1(0x10f)]?'\x0a':_0x3db03f)['filter'](_0x56b276=>_0x56b276!==_0x1ba54d[_0x5542c1(0x11f)]&&_0x56b276!==_0x1ba54d[_0x5542c1(0x11d)]&&_0x56b276!==_0x1ba54d[_0x5542c1(0x111)])[_0x5542c1(0x139)]('')[_0x5542c1(0x12d)](/\n$/,'');}var S=class extends _0x312eed{[_0x42de59(0x146)](){var _0x122fa5=_0x42de59;return this['_getBlockRanges']()[_0x122fa5(0x13a)](_0x3f6b6b=>_0x3f6b6b['blockType']===_0x346456[_0x122fa5(0x128)])[_0x122fa5(0x136)](_0x21053a=>this[_0x122fa5(0x140)](_0x21053a[_0x122fa5(0x11e)]));}[_0x42de59(0x14a)](_0x56923c){var _0x111b7f=_0x42de59;return this[_0x111b7f(0x14e)]()['some'](_0x2ee936=>_0x2ee936[_0x111b7f(0x11e)]===_0x56923c&&_0x2ee936[_0x111b7f(0x12f)]===_0x346456[_0x111b7f(0x128)])?this[_0x111b7f(0x140)](_0x56923c):null;}[_0x42de59(0x115)](_0x4f0152){var _0x3e8fd8=_0x42de59;let _0x2c6c96=this[_0x3e8fd8(0x14e)]()[_0x3e8fd8(0x14c)](_0x1076c0=>_0x1076c0[_0x3e8fd8(0x12f)]===_0x346456[_0x3e8fd8(0x128)]&&_0x1076c0[_0x3e8fd8(0x13c)]<=_0x4f0152&&_0x4f0152<=_0x1076c0[_0x3e8fd8(0x11a)]);return _0x2c6c96?this['_createFDocumentCode'](_0x2c6c96['blockId']):null;}[_0x42de59(0x131)](_0x2a97f4){var _0x2c01fa=_0x42de59;return this[_0x2c01fa(0x132)](_0x2a97f4)[0x0]??null;}[_0x42de59(0x132)](_0x12b119){var _0x1e1bc3=_0x42de59;let _0x2c1573=typeof _0x12b119==_0x1e1bc3(0x13d)?{'text':_0x12b119}:_0x12b119;return this[_0x1e1bc3(0x146)]()[_0x1e1bc3(0x13a)](_0x3e4fda=>!(_0x2c1573[_0x1e1bc3(0x11e)]&&_0x3e4fda[_0x1e1bc3(0x14b)]()!==_0x2c1573['blockId']||_0x2c1573[_0x1e1bc3(0x137)]&&!_0x3e4fda['getText']()[_0x1e1bc3(0x110)](_0x2c1573[_0x1e1bc3(0x137)])));}[_0x42de59(0x10d)](_0x2f1677={},_0x3962f9={}){var _0x113241=_0x42de59;let _0x5aaea9=this[_0x113241(0x118)][_0x113241(0x124)](_0x1995d8),_0x2fa678=_0x4be108(_0x2f1677)?{..._0x3962f9,..._0x2f1677[_0x113241(0x143)]()}:_0x2f1677,_0x4f39fb=_0x2fa678[_0x113241(0x11e)]??_0x2a9cce(0x6);return _0x5aaea9[_0x113241(0x122)](_0x39d856['id'],{..._0x2fa678,'blockId':_0x4f39fb,'unitId':this['getId']()})?this[_0x113241(0x14a)](_0x4f39fb):null;}[_0x42de59(0x14e)](){var _0x653846=_0x42de59,_0x5176c9;return((_0x5176c9=this[_0x653846(0x13e)]()[_0x653846(0x112)])==null?void 0x0:_0x5176c9[_0x653846(0x14d)])??[];}[_0x42de59(0x140)](_0x58dc1a){var _0x141ff4=_0x42de59;return this[_0x141ff4(0x118)]['createInstance'](b,this,_0x58dc1a);}};function _0x5f56(){var _0x25b380=['_document','findCodeByText','findCodes','function','getOwnPropertyDescriptor','prototype','map','text','describe','join','filter','config','startIndex','string','save','_getBlockRange','_createFDocumentCode','1910HIZeBr','length','getRange','dataStream','iterator','getCodes','5150453cbrAvg','8cfoXVB','constructor','getCode','getId','find','blockRanges','_getBlockRanges','getText','_unitId','symbol','_blockId','insertCode','10clZMmR','PARAGRAPH','includes','SECTION_BREAK','body','remove','getCodeConfig','getCodeAt','72rfopTq','defineProperty','_injector','getConfig','endIndex','call','379455UMvvJH','BLOCK_END','blockId','BLOCK_START','1668XsQURZ','658068AWQAsg','syncExecuteCommand','940302flqGLy','get','object','decorate','10KUFfOf','CODE','toPrimitive','_getDocumentData','4529iiRSCj','57542pDnpdQ','replace','default','blockType'];_0x5f56=function(){return _0x25b380;};return _0x5f56();}_0x312eed['extend'](S);export{b as FDocumentCode};