@univerjs-pro/docs-code 1.3.0 → 1.3.1

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
- const _0x284a05=_0x57db;function _0x57db(_0x577333,_0x27d5ce){_0x577333=_0x577333-0x14f;const _0x8dee78=_0x8dee();let _0x57db6c=_0x8dee78[_0x577333];return _0x57db6c;}(function(_0x3324bc,_0x19b45c){const _0x1675c8=_0x57db,_0x326b5e=_0x3324bc();while(!![]){try{const _0x39756f=-parseInt(_0x1675c8(0x168))/0x1*(-parseInt(_0x1675c8(0x16a))/0x2)+parseInt(_0x1675c8(0x171))/0x3+parseInt(_0x1675c8(0x17b))/0x4*(-parseInt(_0x1675c8(0x183))/0x5)+parseInt(_0x1675c8(0x161))/0x6+-parseInt(_0x1675c8(0x167))/0x7*(parseInt(_0x1675c8(0x196))/0x8)+-parseInt(_0x1675c8(0x17e))/0x9+parseInt(_0x1675c8(0x17a))/0xa;if(_0x39756f===_0x19b45c)break;else _0x326b5e['push'](_0x326b5e['shift']());}catch(_0x4081e2){_0x326b5e['push'](_0x326b5e['shift']());}}}(_0x8dee,0x64a2d),Object['defineProperty'](exports,Symbol[_0x284a05(0x199)],{'value':_0x284a05(0x175)}));let e=require('@univerjs-pro/docs-code'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x515b7f){'@babel/helpers - typeof';const _0x5588ed=_0x284a05;return r=typeof Symbol==_0x5588ed(0x18f)&&typeof Symbol[_0x5588ed(0x19c)]==_0x5588ed(0x164)?function(_0x5f2816){return typeof _0x5f2816;}:function(_0xe40192){const _0x380b28=_0x5588ed;return _0xe40192&&typeof Symbol==_0x380b28(0x18f)&&_0xe40192[_0x380b28(0x192)]===Symbol&&_0xe40192!==Symbol['prototype']?_0x380b28(0x164):typeof _0xe40192;},r(_0x515b7f);}function i(_0x7a1d35,_0x507e87){const _0x2d49d5=_0x284a05;if(r(_0x7a1d35)!='object'||!_0x7a1d35)return _0x7a1d35;var _0x2e794c=_0x7a1d35[Symbol[_0x2d49d5(0x18d)]];if(_0x2e794c!==void 0x0){var _0x5f4669=_0x2e794c[_0x2d49d5(0x195)](_0x7a1d35,_0x507e87||'default');if(r(_0x5f4669)!='object')return _0x5f4669;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x507e87===_0x2d49d5(0x15f)?String:Number)(_0x7a1d35);}function _0x8dee(){const _0x3d2532=['getCode','DocsCodeUnwrapCommand','Module','decorate','findCodes','getId','_injector','3676650ToLHkl','409308sNgLyH','config','DataStreamTreeTokenType','7261515YgygML','_blockId','FDocument','body','getRange','35OmDEnz','getCodeConfig','remove','DocsCodeModel','blockId','getConfig','BLOCK_START','DocsCodeUpdateCommand','unwrap','get','toPrimitive','getText','function','SECTION_BREAK','DocumentBlockRangeType','constructor','Inject','getCodes','call','55576OPwrbl','_createFDocumentCode','blockType','toStringTag','describe','updateConfig','iterator','DocsCodeInsertCommand','getOwnPropertyDescriptor','endIndex','FDocumentCode','syncExecuteCommand','map','text','_getBlockRange','_getBlockRanges','_getDocumentData','startIndex','ICommandService','normalizeDocsCodeConfig','DocsCodeRemoveCommand','CODE','_unitId','BLOCK_END','isParagraphFacade','string','Injector','2549310qBrhOG','slice','extend','symbol','blockRanges','findCodeByText','259oAVoyQ','584831wwvNCw','_document','2ndbBnL','length','dataStream','defineProperty','find','filter','save','2444961PKxpjs','generateRandomId'];_0x8dee=function(){return _0x3d2532;};return _0x8dee();}function a(_0x4d0394){const _0xa58f14=_0x284a05;var _0x429dfd=i(_0x4d0394,'string');return r(_0x429dfd)==_0xa58f14(0x164)?_0x429dfd:_0x429dfd+'';}function o(_0x54f74e,_0x415f5f,_0x2a592a){const _0x2fd469=_0x284a05;return(_0x415f5f=a(_0x415f5f))in _0x54f74e?Object[_0x2fd469(0x16d)](_0x54f74e,_0x415f5f,{'value':_0x2a592a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x54f74e[_0x415f5f]=_0x2a592a,_0x54f74e;}function s(_0x207807,_0x4105e8){return function(_0x1b1c7a,_0x2abdb3){_0x4105e8(_0x1b1c7a,_0x2abdb3,_0x207807);};}function c(_0x31fb7b,_0x347972,_0x423857,_0x16032c){const _0x35a5b2=_0x284a05;var _0x527dd8=arguments[_0x35a5b2(0x16b)],_0xd5dff4=_0x527dd8<0x3?_0x347972:_0x16032c===null?_0x16032c=Object[_0x35a5b2(0x19e)](_0x347972,_0x423857):_0x16032c,_0x22d732;if(typeof Reflect=='object'&&typeof Reflect[_0x35a5b2(0x176)]=='function')_0xd5dff4=Reflect[_0x35a5b2(0x176)](_0x31fb7b,_0x347972,_0x423857,_0x16032c);else{for(var _0x1fe438=_0x31fb7b[_0x35a5b2(0x16b)]-0x1;_0x1fe438>=0x0;_0x1fe438--)(_0x22d732=_0x31fb7b[_0x1fe438])&&(_0xd5dff4=(_0x527dd8<0x3?_0x22d732(_0xd5dff4):_0x527dd8>0x3?_0x22d732(_0x347972,_0x423857,_0xd5dff4):_0x22d732(_0x347972,_0x423857))||_0xd5dff4);}return _0x527dd8>0x3&&_0xd5dff4&&Object[_0x35a5b2(0x16d)](_0x347972,_0x423857,_0xd5dff4),_0xd5dff4;}let l=class{constructor(_0x327119,_0x14630c,_0x513710){const _0x1ffb03=_0x284a05;this[_0x1ffb03(0x169)]=_0x327119,this['_blockId']=_0x14630c,this['_injector']=_0x513710,o(this,_0x1ffb03(0x15c),void 0x0),this[_0x1ffb03(0x15c)]=this[_0x1ffb03(0x169)][_0x1ffb03(0x178)]();}[_0x284a05(0x178)](){return this['_blockId'];}[_0x284a05(0x182)](){const _0x5489e7=_0x284a05;let _0x4e5074=this['_getBlockRange']();return _0x4e5074?{'blockId':_0x4e5074[_0x5489e7(0x187)],'endIndex':_0x4e5074[_0x5489e7(0x14f)],'startIndex':_0x4e5074[_0x5489e7(0x157)]}:null;}[_0x284a05(0x18e)](){const _0x1cb614=_0x284a05;var _0x7168e3;let _0x2dae95=this['_getBlockRange'](),_0xed47bb=(_0x7168e3=this[_0x1cb614(0x156)]()['body'])==null?void 0x0:_0x7168e3[_0x1cb614(0x16c)];return!_0x2dae95||!_0xed47bb?'':u(_0xed47bb[_0x1cb614(0x162)](_0x2dae95[_0x1cb614(0x157)]+0x1,_0x2dae95['endIndex']));}[_0x284a05(0x19a)](){const _0x11cf81=_0x284a05;let _0x161835=this[_0x11cf81(0x182)]();return _0x161835?{..._0x161835,'config':this[_0x11cf81(0x188)](),'text':this['getText'](),'type':t['DocumentBlockRangeType'][_0x11cf81(0x15b)]}:null;}[_0x284a05(0x188)](){const _0x17e8f7=_0x284a05;let _0x5e44c9=this['_injector'][_0x17e8f7(0x18c)](e[_0x17e8f7(0x186)]);return(0x0,e[_0x17e8f7(0x159)])(_0x5e44c9[_0x17e8f7(0x184)](this[_0x17e8f7(0x15c)],this[_0x17e8f7(0x17f)]));}[_0x284a05(0x19b)](_0x47df9f){const _0xbed422=_0x284a05;return this['_injector'][_0xbed422(0x18c)](t[_0xbed422(0x158)])[_0xbed422(0x151)](e[_0xbed422(0x18a)]['id'],{'blockId':this[_0xbed422(0x17f)],'config':_0x47df9f[_0xbed422(0x17c)],'unitId':this['_unitId']});}[_0x284a05(0x18b)](){const _0x2023f3=_0x284a05;return this[_0x2023f3(0x179)]['get'](t[_0x2023f3(0x158)])[_0x2023f3(0x151)](e[_0x2023f3(0x174)]['id'],{'blockId':this[_0x2023f3(0x17f)],'unitId':this[_0x2023f3(0x15c)]});}[_0x284a05(0x185)](){const _0x2c785b=_0x284a05;return this['_injector'][_0x2c785b(0x18c)](t['ICommandService'])['syncExecuteCommand'](e[_0x2c785b(0x15a)]['id'],{'blockId':this[_0x2c785b(0x17f)],'unitId':this[_0x2c785b(0x15c)]});}[_0x284a05(0x154)](){const _0x5c9f25=_0x284a05;var _0x4eaac4;return((_0x4eaac4=this['_getDocumentData']()['body'])==null||(_0x4eaac4=_0x4eaac4[_0x5c9f25(0x165)])==null?void 0x0:_0x4eaac4[_0x5c9f25(0x16e)](_0x327218=>_0x327218[_0x5c9f25(0x187)]===this[_0x5c9f25(0x17f)]&&_0x327218[_0x5c9f25(0x198)]===t['DocumentBlockRangeType'][_0x5c9f25(0x15b)]))??null;}[_0x284a05(0x156)](){const _0x3ee623=_0x284a05;return this[_0x3ee623(0x169)][_0x3ee623(0x170)]();}};l=c([s(0x2,(0x0,t[_0x284a05(0x193)])(t[_0x284a05(0x160)]))],l);function u(_0x195b15){const _0x45f840=_0x284a05;return Array['from'](_0x195b15)[_0x45f840(0x152)](_0x9a22e=>_0x9a22e===t[_0x45f840(0x17d)]['PARAGRAPH']?'\x0a':_0x9a22e)[_0x45f840(0x16f)](_0x4b563f=>_0x4b563f!==t['DataStreamTreeTokenType'][_0x45f840(0x189)]&&_0x4b563f!==t[_0x45f840(0x17d)][_0x45f840(0x15d)]&&_0x4b563f!==t[_0x45f840(0x17d)][_0x45f840(0x190)])['join']('')['replace'](/\n$/,'');}var d=class extends n[_0x284a05(0x180)]{['getCodes'](){const _0xf357da=_0x284a05;return this['_getBlockRanges']()[_0xf357da(0x16f)](_0x211170=>_0x211170[_0xf357da(0x198)]===t[_0xf357da(0x191)][_0xf357da(0x15b)])[_0xf357da(0x152)](_0x48d266=>this[_0xf357da(0x197)](_0x48d266[_0xf357da(0x187)]));}[_0x284a05(0x173)](_0x4342db){const _0xb8e6ea=_0x284a05;return this[_0xb8e6ea(0x155)]()['some'](_0x566fe8=>_0x566fe8[_0xb8e6ea(0x187)]===_0x4342db&&_0x566fe8[_0xb8e6ea(0x198)]===t['DocumentBlockRangeType']['CODE'])?this[_0xb8e6ea(0x197)](_0x4342db):null;}['getCodeAt'](_0x3286ea){const _0x1bfbf0=_0x284a05;let _0xa8300c=this[_0x1bfbf0(0x155)]()[_0x1bfbf0(0x16e)](_0x619550=>_0x619550[_0x1bfbf0(0x198)]===t[_0x1bfbf0(0x191)][_0x1bfbf0(0x15b)]&&_0x619550['startIndex']<=_0x3286ea&&_0x3286ea<=_0x619550[_0x1bfbf0(0x14f)]);return _0xa8300c?this[_0x1bfbf0(0x197)](_0xa8300c['blockId']):null;}[_0x284a05(0x166)](_0x5eaba8){const _0x18f88c=_0x284a05;return this[_0x18f88c(0x177)](_0x5eaba8)[0x0]??null;}[_0x284a05(0x177)](_0x36216a){const _0x321b86=_0x284a05;let _0x2fbe70=typeof _0x36216a==_0x321b86(0x15f)?{'text':_0x36216a}:_0x36216a;return this[_0x321b86(0x194)]()['filter'](_0x207d87=>!(_0x2fbe70[_0x321b86(0x187)]&&_0x207d87[_0x321b86(0x178)]()!==_0x2fbe70['blockId']||_0x2fbe70[_0x321b86(0x153)]&&!_0x207d87[_0x321b86(0x18e)]()['includes'](_0x2fbe70[_0x321b86(0x153)])));}['insertCode'](_0x21db13={},_0x54c13e={}){const _0x31f5f8=_0x284a05;let _0x1b4121=this[_0x31f5f8(0x179)]['get'](t['ICommandService']),_0xc4a9eb=(0x0,n[_0x31f5f8(0x15e)])(_0x21db13)?{..._0x54c13e,..._0x21db13[_0x31f5f8(0x182)]()}:_0x21db13,_0x97977d=_0xc4a9eb[_0x31f5f8(0x187)]??(0x0,t[_0x31f5f8(0x172)])(0x6);return _0x1b4121[_0x31f5f8(0x151)](e[_0x31f5f8(0x19d)]['id'],{..._0xc4a9eb,'blockId':_0x97977d,'unitId':this[_0x31f5f8(0x178)]()})?this[_0x31f5f8(0x173)](_0x97977d):null;}[_0x284a05(0x155)](){const _0x456543=_0x284a05;var _0x3f456c;return((_0x3f456c=this[_0x456543(0x170)]()[_0x456543(0x181)])==null?void 0x0:_0x3f456c[_0x456543(0x165)])??[];}['_createFDocumentCode'](_0x8f674e){const _0x163f55=_0x284a05;return this[_0x163f55(0x179)]['createInstance'](l,this,_0x8f674e);}};n[_0x284a05(0x180)][_0x284a05(0x163)](d),Object[_0x284a05(0x16d)](exports,_0x284a05(0x150),{'enumerable':!0x0,'get':function(){return l;}});
1
+ const _0x87345e=_0x57fb;function _0x1d75(){const _0x5ec111=['normalizeDocsCodeConfig','_getBlockRanges','findCodes','toPrimitive','getRange','map','FDocumentCode','DocsCodeUpdateCommand','prototype','object','blockType','_blockId','Injector','body','function','DocsCodeUnwrapCommand','endIndex','getOwnPropertyDescriptor','createInstance','blockRanges','string','BLOCK_END','text','getCodeConfig','isParagraphFacade','findCodeByText','2625078BjOBfI','decorate','DocsCodeInsertCommand','get','DataStreamTreeTokenType','filter','save','blockId','Module','replace','find','BLOCK_START','Inject','4ZNdZGF','config','call','_createFDocumentCode','dataStream','_document','symbol','1700478CKKaao','join','defineProperty','getCodes','iterator','_unitId','getCodeAt','updateConfig','describe','2441970gchlYS','getCode','1378640jegFgg','1623040ugpJtC','FDocument','DocsCodeRemoveCommand','generateRandomId','_getDocumentData','from','DocumentBlockRangeType','_getBlockRange','getConfig','syncExecuteCommand','includes','remove','DocsCodeModel','length','CODE','extend','constructor','insertCode','getText','ICommandService','_injector','getId','334608DMOVUc','42CTkXOv','some','513224gTveYy','unwrap','startIndex'];_0x1d75=function(){return _0x5ec111;};return _0x1d75();}(function(_0xb46b1,_0x20fb5d){const _0x33b50a=_0x57fb,_0x2ec3b9=_0xb46b1();while(!![]){try{const _0x4e0dc7=-parseInt(_0x33b50a(0x214))/0x1+parseInt(_0x33b50a(0x1fa))/0x2+parseInt(_0x33b50a(0x1db))/0x3*(parseInt(_0x33b50a(0x1e8))/0x4)+-parseInt(_0x33b50a(0x1fb))/0x5+parseInt(_0x33b50a(0x1f8))/0x6+parseInt(_0x33b50a(0x212))/0x7*(-parseInt(_0x33b50a(0x211))/0x8)+-parseInt(_0x33b50a(0x1ef))/0x9;if(_0x4e0dc7===_0x20fb5d)break;else _0x2ec3b9['push'](_0x2ec3b9['shift']());}catch(_0x55f2d2){_0x2ec3b9['push'](_0x2ec3b9['shift']());}}}(_0x1d75,0xa956b),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x87345e(0x1e3)}));let e=require('@univerjs-pro/docs-code'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x34d608){'@babel/helpers - typeof';const _0x369f2a=_0x87345e;return r=typeof Symbol==_0x369f2a(0x1cf)&&typeof Symbol[_0x369f2a(0x1f3)]==_0x369f2a(0x1ee)?function(_0x5c821c){return typeof _0x5c821c;}:function(_0x1fd10f){const _0x135d35=_0x369f2a;return _0x1fd10f&&typeof Symbol=='function'&&_0x1fd10f[_0x135d35(0x20b)]===Symbol&&_0x1fd10f!==Symbol[_0x135d35(0x1c9)]?'symbol':typeof _0x1fd10f;},r(_0x34d608);}function _0x57fb(_0x2888b9,_0x4cf822){_0x2888b9=_0x2888b9-0x1c1;const _0x1d7519=_0x1d75();let _0x57fb0b=_0x1d7519[_0x2888b9];return _0x57fb0b;}function i(_0x185b0f,_0x124d38){const _0x2c809d=_0x87345e;if(r(_0x185b0f)!='object'||!_0x185b0f)return _0x185b0f;var _0x11bec2=_0x185b0f[Symbol[_0x2c809d(0x1c4)]];if(_0x11bec2!==void 0x0){var _0x154294=_0x11bec2[_0x2c809d(0x1ea)](_0x185b0f,_0x124d38||'default');if(r(_0x154294)!='object')return _0x154294;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x124d38==='string'?String:Number)(_0x185b0f);}function a(_0x5cebc7){const _0x3d95e7=_0x87345e;var _0x20427c=i(_0x5cebc7,_0x3d95e7(0x1d5));return r(_0x20427c)==_0x3d95e7(0x1ee)?_0x20427c:_0x20427c+'';}function o(_0x40e256,_0x3861c1,_0x4fdb39){const _0x5c1276=_0x87345e;return(_0x3861c1=a(_0x3861c1))in _0x40e256?Object[_0x5c1276(0x1f1)](_0x40e256,_0x3861c1,{'value':_0x4fdb39,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x40e256[_0x3861c1]=_0x4fdb39,_0x40e256;}function s(_0x192613,_0x42aae6){return function(_0x32ebe4,_0x5b0ca1){_0x42aae6(_0x32ebe4,_0x5b0ca1,_0x192613);};}function c(_0x387fff,_0xe9f7a8,_0x394d57,_0x32c89a){const _0x3e9ad5=_0x87345e;var _0x4c12f2=arguments[_0x3e9ad5(0x208)],_0x21a425=_0x4c12f2<0x3?_0xe9f7a8:_0x32c89a===null?_0x32c89a=Object[_0x3e9ad5(0x1d2)](_0xe9f7a8,_0x394d57):_0x32c89a,_0x363dd0;if(typeof Reflect==_0x3e9ad5(0x1ca)&&typeof Reflect[_0x3e9ad5(0x1dc)]=='function')_0x21a425=Reflect[_0x3e9ad5(0x1dc)](_0x387fff,_0xe9f7a8,_0x394d57,_0x32c89a);else{for(var _0x7a0e2a=_0x387fff[_0x3e9ad5(0x208)]-0x1;_0x7a0e2a>=0x0;_0x7a0e2a--)(_0x363dd0=_0x387fff[_0x7a0e2a])&&(_0x21a425=(_0x4c12f2<0x3?_0x363dd0(_0x21a425):_0x4c12f2>0x3?_0x363dd0(_0xe9f7a8,_0x394d57,_0x21a425):_0x363dd0(_0xe9f7a8,_0x394d57))||_0x21a425);}return _0x4c12f2>0x3&&_0x21a425&&Object['defineProperty'](_0xe9f7a8,_0x394d57,_0x21a425),_0x21a425;}let l=class{constructor(_0x14c4d0,_0x5344c4,_0x3c9070){const _0x5ed196=_0x87345e;this[_0x5ed196(0x1ed)]=_0x14c4d0,this[_0x5ed196(0x1cc)]=_0x5344c4,this[_0x5ed196(0x20f)]=_0x3c9070,o(this,'_unitId',void 0x0),this[_0x5ed196(0x1f4)]=this[_0x5ed196(0x1ed)][_0x5ed196(0x210)]();}[_0x87345e(0x210)](){return this['_blockId'];}[_0x87345e(0x1c5)](){const _0x44d28d=_0x87345e;let _0x3d2669=this[_0x44d28d(0x202)]();return _0x3d2669?{'blockId':_0x3d2669[_0x44d28d(0x1e2)],'endIndex':_0x3d2669[_0x44d28d(0x1d1)],'startIndex':_0x3d2669[_0x44d28d(0x216)]}:null;}[_0x87345e(0x20d)](){const _0x22b0b8=_0x87345e;var _0x5dcf11;let _0x23768c=this[_0x22b0b8(0x202)](),_0x1e0c38=(_0x5dcf11=this[_0x22b0b8(0x1ff)]()[_0x22b0b8(0x1ce)])==null?void 0x0:_0x5dcf11[_0x22b0b8(0x1ec)];return!_0x23768c||!_0x1e0c38?'':u(_0x1e0c38['slice'](_0x23768c[_0x22b0b8(0x216)]+0x1,_0x23768c['endIndex']));}[_0x87345e(0x1f7)](){const _0x47632e=_0x87345e;let _0x2d360c=this[_0x47632e(0x1c5)]();return _0x2d360c?{..._0x2d360c,'config':this[_0x47632e(0x203)](),'text':this['getText'](),'type':t['DocumentBlockRangeType'][_0x47632e(0x209)]}:null;}[_0x87345e(0x203)](){const _0x5cde44=_0x87345e;let _0x2c0c99=this[_0x5cde44(0x20f)][_0x5cde44(0x1de)](e[_0x5cde44(0x207)]);return(0x0,e[_0x5cde44(0x1c1)])(_0x2c0c99[_0x5cde44(0x1d8)](this['_unitId'],this[_0x5cde44(0x1cc)]));}[_0x87345e(0x1f6)](_0x3f5341){const _0x51a013=_0x87345e;return this[_0x51a013(0x20f)][_0x51a013(0x1de)](t[_0x51a013(0x20e)])[_0x51a013(0x204)](e[_0x51a013(0x1c8)]['id'],{'blockId':this['_blockId'],'config':_0x3f5341[_0x51a013(0x1e9)],'unitId':this['_unitId']});}[_0x87345e(0x215)](){const _0xe3ccbf=_0x87345e;return this['_injector'][_0xe3ccbf(0x1de)](t[_0xe3ccbf(0x20e)])['syncExecuteCommand'](e[_0xe3ccbf(0x1d0)]['id'],{'blockId':this[_0xe3ccbf(0x1cc)],'unitId':this[_0xe3ccbf(0x1f4)]});}[_0x87345e(0x206)](){const _0x219589=_0x87345e;return this[_0x219589(0x20f)][_0x219589(0x1de)](t[_0x219589(0x20e)])['syncExecuteCommand'](e[_0x219589(0x1fd)]['id'],{'blockId':this[_0x219589(0x1cc)],'unitId':this[_0x219589(0x1f4)]});}[_0x87345e(0x202)](){const _0x5ade43=_0x87345e;var _0xa3e87b;return((_0xa3e87b=this['_getDocumentData']()[_0x5ade43(0x1ce)])==null||(_0xa3e87b=_0xa3e87b[_0x5ade43(0x1d4)])==null?void 0x0:_0xa3e87b[_0x5ade43(0x1e5)](_0xb116fe=>_0xb116fe[_0x5ade43(0x1e2)]===this['_blockId']&&_0xb116fe[_0x5ade43(0x1cb)]===t[_0x5ade43(0x201)][_0x5ade43(0x209)]))??null;}['_getDocumentData'](){const _0xcdaa2f=_0x87345e;return this[_0xcdaa2f(0x1ed)][_0xcdaa2f(0x1e1)]();}};l=c([s(0x2,(0x0,t[_0x87345e(0x1e7)])(t[_0x87345e(0x1cd)]))],l);function u(_0x436e2b){const _0x519a30=_0x87345e;return Array[_0x519a30(0x200)](_0x436e2b)[_0x519a30(0x1c6)](_0x43b2f9=>_0x43b2f9===t[_0x519a30(0x1df)]['PARAGRAPH']?'\x0a':_0x43b2f9)['filter'](_0x5ead12=>_0x5ead12!==t['DataStreamTreeTokenType'][_0x519a30(0x1e6)]&&_0x5ead12!==t[_0x519a30(0x1df)][_0x519a30(0x1d6)]&&_0x5ead12!==t['DataStreamTreeTokenType']['SECTION_BREAK'])[_0x519a30(0x1f0)]('')[_0x519a30(0x1e4)](/\n$/,'');}var d=class extends n[_0x87345e(0x1fc)]{['getCodes'](){const _0x41ac40=_0x87345e;return this[_0x41ac40(0x1c2)]()[_0x41ac40(0x1e0)](_0x19171b=>_0x19171b[_0x41ac40(0x1cb)]===t[_0x41ac40(0x201)][_0x41ac40(0x209)])['map'](_0x17f940=>this['_createFDocumentCode'](_0x17f940[_0x41ac40(0x1e2)]));}[_0x87345e(0x1f9)](_0x8c9ef9){const _0x11a92f=_0x87345e;return this['_getBlockRanges']()[_0x11a92f(0x213)](_0x2c0adb=>_0x2c0adb[_0x11a92f(0x1e2)]===_0x8c9ef9&&_0x2c0adb[_0x11a92f(0x1cb)]===t[_0x11a92f(0x201)]['CODE'])?this['_createFDocumentCode'](_0x8c9ef9):null;}[_0x87345e(0x1f5)](_0x2c6970){const _0x72f05f=_0x87345e;let _0x57cc28=this[_0x72f05f(0x1c2)]()[_0x72f05f(0x1e5)](_0x52138f=>_0x52138f[_0x72f05f(0x1cb)]===t[_0x72f05f(0x201)]['CODE']&&_0x52138f['startIndex']<=_0x2c6970&&_0x2c6970<=_0x52138f[_0x72f05f(0x1d1)]);return _0x57cc28?this['_createFDocumentCode'](_0x57cc28[_0x72f05f(0x1e2)]):null;}[_0x87345e(0x1da)](_0x139329){const _0x2f1224=_0x87345e;return this[_0x2f1224(0x1c3)](_0x139329)[0x0]??null;}['findCodes'](_0x246f82){const _0x580201=_0x87345e;let _0x59c01d=typeof _0x246f82=='string'?{'text':_0x246f82}:_0x246f82;return this[_0x580201(0x1f2)]()[_0x580201(0x1e0)](_0x2943bf=>!(_0x59c01d[_0x580201(0x1e2)]&&_0x2943bf[_0x580201(0x210)]()!==_0x59c01d['blockId']||_0x59c01d[_0x580201(0x1d7)]&&!_0x2943bf[_0x580201(0x20d)]()[_0x580201(0x205)](_0x59c01d[_0x580201(0x1d7)])));}[_0x87345e(0x20c)](_0x115dc2={},_0x27936f={}){const _0x452b89=_0x87345e;let _0x479307=this['_injector'][_0x452b89(0x1de)](t[_0x452b89(0x20e)]),_0x3fb3dd=(0x0,n[_0x452b89(0x1d9)])(_0x115dc2)?{..._0x27936f,..._0x115dc2[_0x452b89(0x1c5)]()}:_0x115dc2,_0x2fe70f=_0x3fb3dd[_0x452b89(0x1e2)]??(0x0,t[_0x452b89(0x1fe)])(0x6);return _0x479307['syncExecuteCommand'](e[_0x452b89(0x1dd)]['id'],{..._0x3fb3dd,'blockId':_0x2fe70f,'unitId':this['getId']()})?this['getCode'](_0x2fe70f):null;}['_getBlockRanges'](){const _0x5b5f7e=_0x87345e;var _0x1e1431;return((_0x1e1431=this['save']()['body'])==null?void 0x0:_0x1e1431[_0x5b5f7e(0x1d4)])??[];}[_0x87345e(0x1eb)](_0xcafbec){const _0x46baf4=_0x87345e;return this[_0x46baf4(0x20f)][_0x46baf4(0x1d3)](l,this,_0xcafbec);}};n[_0x87345e(0x1fc)][_0x87345e(0x20a)](d),Object[_0x87345e(0x1f1)](exports,_0x87345e(0x1c7),{'enumerable':!0x0,'get':function(){return l;}});
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0xa3a59c=_0x9030;(function(_0x8857db,_0x1cb335){const _0x8e19c8=_0x9030,_0x35bcba=_0x8857db();while(!![]){try{const _0x156104=-parseInt(_0x8e19c8(0x7e))/0x1*(-parseInt(_0x8e19c8(0x10e))/0x2)+parseInt(_0x8e19c8(0x128))/0x3*(-parseInt(_0x8e19c8(0x9e))/0x4)+parseInt(_0x8e19c8(0x6f))/0x5*(-parseInt(_0x8e19c8(0xa1))/0x6)+-parseInt(_0x8e19c8(0x95))/0x7*(parseInt(_0x8e19c8(0xb2))/0x8)+parseInt(_0x8e19c8(0x72))/0x9+parseInt(_0x8e19c8(0x12a))/0xa+parseInt(_0x8e19c8(0xca))/0xb*(-parseInt(_0x8e19c8(0xa5))/0xc);if(_0x156104===_0x1cb335)break;else _0x35bcba['push'](_0x35bcba['shift']());}catch(_0x231fbb){_0x35bcba['push'](_0x35bcba['shift']());}}}(_0x17a5,0x8e900),Object[_0xa3a59c(0xa9)](exports,Symbol['toStringTag'],{'value':_0xa3a59c(0x11e)}));let e=require('@univerjs/core'),t=require('rxjs'),n=require('@univerjs/docs'),r=require('@univerjs-pro/license');const i={'language':_0xa3a59c(0x133),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function a(_0x22c228){return{...i,..._0x22c228};}function o(_0x58e8a4){const _0x4d5d91=_0xa3a59c;let _0x3d8d2d=(_0x58e8a4==null?void 0x0:_0x58e8a4[_0x4d5d91(0xff)])??{};return{'codes':Object[_0x4d5d91(0xa6)](Object['entries'](_0x3d8d2d)[_0x4d5d91(0xd7)](([_0x15acc7,_0xc79b08])=>[_0x15acc7,a(_0xc79b08)]))};}function s(_0x5a09fd,_0x2dc6a,_0x31b232){const _0x103163=_0xa3a59c;let _0x33b07e=o(_0x5a09fd);return _0x33b07e[_0x103163(0xff)][_0x2dc6a]=a({..._0x33b07e[_0x103163(0xff)][_0x2dc6a],..._0x31b232}),_0x33b07e;}function c(_0x3ac992,_0x350e59){const _0x734d82=_0xa3a59c;let _0xdf289f=o(_0x3ac992);return delete _0xdf289f[_0x734d82(0xff)][_0x350e59],_0xdf289f;}function l(_0x541c5c){'@babel/helpers - typeof';const _0x5a3a90=_0xa3a59c;return l=typeof Symbol=='function'&&typeof Symbol[_0x5a3a90(0xdd)]=='symbol'?function(_0x2c3ec3){return typeof _0x2c3ec3;}:function(_0x5635bb){const _0x1b8d7a=_0x5a3a90;return _0x5635bb&&typeof Symbol=='function'&&_0x5635bb['constructor']===Symbol&&_0x5635bb!==Symbol[_0x1b8d7a(0x11d)]?'symbol':typeof _0x5635bb;},l(_0x541c5c);}function u(_0x32f4b3,_0x5d124f){const _0x3d3d60=_0xa3a59c;if(l(_0x32f4b3)!=_0x3d3d60(0x88)||!_0x32f4b3)return _0x32f4b3;var _0x118c43=_0x32f4b3[Symbol[_0x3d3d60(0x127)]];if(_0x118c43!==void 0x0){var _0x5692ec=_0x118c43[_0x3d3d60(0x79)](_0x32f4b3,_0x5d124f||_0x3d3d60(0x100));if(l(_0x5692ec)!='object')return _0x5692ec;throw TypeError(_0x3d3d60(0x132));}return(_0x5d124f===_0x3d3d60(0x104)?String:Number)(_0x32f4b3);}function d(_0x488175){const _0x4f2026=_0xa3a59c;var _0x508b44=u(_0x488175,'string');return l(_0x508b44)==_0x4f2026(0xc6)?_0x508b44:_0x508b44+'';}function f(_0x3feb63,_0x136a56,_0xd57b82){const _0x5e29d6=_0xa3a59c;return(_0x136a56=d(_0x136a56))in _0x3feb63?Object[_0x5e29d6(0xa9)](_0x3feb63,_0x136a56,{'value':_0xd57b82,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3feb63[_0x136a56]=_0xd57b82,_0x3feb63;}var p=class extends e[_0xa3a59c(0x73)]{constructor(..._0xb8d19c){const _0xb606d9=_0xa3a59c;super(..._0xb8d19c),f(this,'_resources',new Map()),f(this,_0xb606d9(0x13a),new t[(_0xb606d9(0x83))]()),f(this,'change$',this[_0xb606d9(0x13a)][_0xb606d9(0x123)]());}[_0xa3a59c(0x7b)](_0x24c130,_0x113626){const _0x387570=_0xa3a59c;return o(this[_0x387570(0xd6)][_0x387570(0xfe)](_0x24c130))[_0x387570(0xff)][_0x113626];}['setCodeConfig'](_0x35fd32,_0x4f3fc5,_0x200d57){const _0x1e14cf=_0xa3a59c;this[_0x1e14cf(0x78)](_0x35fd32,_0x4f3fc5,s(this[_0x1e14cf(0xd6)][_0x1e14cf(0xfe)](_0x35fd32),_0x4f3fc5,_0x200d57));}['removeCode'](_0x4e64a3,_0x21ddfc){const _0x1baff1=_0xa3a59c;this[_0x1baff1(0x78)](_0x4e64a3,_0x21ddfc,c(this[_0x1baff1(0xd6)][_0x1baff1(0xfe)](_0x4e64a3),_0x21ddfc));}[_0xa3a59c(0xf1)](_0x251c4b){const _0x1c02b3=_0xa3a59c;return o(this[_0x1c02b3(0xd6)][_0x1c02b3(0xfe)](_0x251c4b));}[_0xa3a59c(0xcf)](_0x3dc68b,_0x54d97b){const _0x400271=_0xa3a59c;this[_0x400271(0xd6)]['set'](_0x3dc68b,o(_0x54d97b)),this[_0x400271(0x13a)]['next']({'unitId':_0x3dc68b});}['removeUnit'](_0xbd86ed){const _0x4c42ce=_0xa3a59c;this['_resources']['delete'](_0xbd86ed),this[_0x4c42ce(0x13a)][_0x4c42ce(0x113)]({'unitId':_0xbd86ed});}[_0xa3a59c(0x9b)](){const _0x1b794d=_0xa3a59c;super[_0x1b794d(0x9b)](),this[_0x1b794d(0xd6)][_0x1b794d(0xb5)](),this[_0x1b794d(0x13a)][_0x1b794d(0xcd)]();}[_0xa3a59c(0x78)](_0x33cd6b,_0x5cf863,_0x38eb4d){const _0x29fda3=_0xa3a59c;this[_0x29fda3(0xd6)][_0x29fda3(0x98)](_0x33cd6b,_0x38eb4d),this['_change$'][_0x29fda3(0x113)]({'unitId':_0x33cd6b,'blockId':_0x5cf863});}};const m={'id':_0xa3a59c(0xbc),'type':e[_0xa3a59c(0x9d)][_0xa3a59c(0xf7)],'handler':(_0x5c5cb5,_0x10b739)=>!(_0x10b739!=null&&_0x10b739[_0xa3a59c(0xd0)])||!_0x10b739[_0xa3a59c(0x131)]?!0x1:(_0x5c5cb5['get'](p)[_0xa3a59c(0xb0)](_0x10b739[_0xa3a59c(0xd0)],_0x10b739[_0xa3a59c(0x131)],_0x10b739['config']),!0x0)},h={'id':_0xa3a59c(0x8c),'type':e['CommandType'][_0xa3a59c(0xf7)],'handler':(_0x168865,_0x2935e4)=>!(_0x2935e4!=null&&_0x2935e4['unitId'])||!_0x2935e4[_0xa3a59c(0x131)]?!0x1:(_0x168865[_0xa3a59c(0xfe)](p)[_0xa3a59c(0xe5)](_0x2935e4[_0xa3a59c(0xd0)],_0x2935e4[_0xa3a59c(0x131)]),!0x0)},g='monospace';var _=class extends Error{constructor(_0xb80a81=_0xa3a59c(0xae)){super(_0xb80a81);}};function ee(_0x495fbe){const _0x57e14c=_0xa3a59c;var _0x151483;let _0x415c39=S(_0x495fbe[_0x57e14c(0xbf)]),_0x172903=w(_0x415c39),_0x2cf962=ne(_0x495fbe[_0x57e14c(0xe0)],_0x495fbe[_0x57e14c(0xc0)]),_0x3f4cba=_0x2cf962?(_0x151483=_0x172903[_0x57e14c(0x8f)])==null?void 0x0:_0x151483[_0x57e14c(0xc5)](_0x452832=>{const _0x4a5d1f=_0x57e14c;let _0x2c420=(0x0,e[_0x4a5d1f(0xe9)])(_0x452832);return _0x2c420['startOffset']===_0x2cf962[_0x4a5d1f(0xe0)]&&_0x2c420['endOffset']===_0x2cf962[_0x4a5d1f(0xc0)];}):void 0x0,{startOffset:_0x4561fe,endOffset:_0x33508a}=_0x3f4cba?_0x2cf962:me(_0x172903,_0x495fbe['startOffset'],_0x495fbe[_0x57e14c(0xc0)],_0x495fbe['insertionMode']);if(!_0x3f4cba&&re(_0x172903,_0x4561fe,_0x33508a))throw new _('Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block');let _0x213c36=_e(_0x172903,_0x4561fe,_0x33508a),_0x4720d5=(_0x3f4cba==null?void 0x0:_0x3f4cba[_0x57e14c(0x131)])??_0x495fbe['blockId'],_0x458082=s(_0x495fbe['metadata'],_0x4720d5,{...i,..._0x495fbe['config']});if(_0x3f4cba)return _0x3f4cba[_0x57e14c(0xb1)]=e[_0x57e14c(0x125)][_0x57e14c(0xeb)],te(_0x172903,_0x4561fe,_0x33508a),le(_0x172903,_0x4561fe,_0x33508a,_0x213c36),O(_0x172903,_0x3f4cba),{'nextDocumentData':_0x415c39,'nextMetadata':_0x458082,'cursorOffset':_0x4561fe+0x1};if(_0x4561fe===_0x33508a){var _0x11506d,_0x344b26;let _0x112c31=''+e['DataStreamTreeTokenType'][_0x57e14c(0x115)]+e[_0x57e14c(0x118)][_0x57e14c(0x13c)]+e[_0x57e14c(0x118)][_0x57e14c(0x89)];k(_0x172903,_0x4561fe,_0x112c31,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e[_0x57e14c(0x9c)])(new Set((_0x11506d=_0x172903['paragraphs'])==null?void 0x0:_0x11506d['map'](_0x33d710=>_0x33d710[_0x57e14c(0x6b)]))),'paragraphStyle':x(!0x0,!0x0,_0x213c36)}],'blockRanges':[{'blockId':_0x4720d5,'blockType':e[_0x57e14c(0x125)][_0x57e14c(0xeb)],'startIndex':0x0,'endIndex':_0x112c31[_0x57e14c(0xd4)]-0x1}]});let _0x4d7bb9=(_0x344b26=_0x172903[_0x57e14c(0x8f)])==null?void 0x0:_0x344b26[_0x57e14c(0xc5)](_0x42c48e=>_0x42c48e[_0x57e14c(0x131)]===_0x4720d5);return _0x4d7bb9&&O(_0x172903,_0x4d7bb9),{'nextDocumentData':_0x415c39,'nextMetadata':_0x458082,'cursorOffset':_0x4561fe+0x1};}k(_0x172903,_0x33508a,e[_0x57e14c(0x118)][_0x57e14c(0x89)]),k(_0x172903,_0x4561fe,e[_0x57e14c(0x118)][_0x57e14c(0x115)]),le(_0x172903,_0x4561fe,_0x33508a+0x1,_0x213c36);let _0x254315={'blockId':_0x4720d5,'blockType':e[_0x57e14c(0x125)][_0x57e14c(0xeb)],'startIndex':_0x4561fe,'endIndex':_0x33508a+0x1};return _0x172903[_0x57e14c(0x8f)]=[..._0x172903[_0x57e14c(0x8f)]??[],_0x254315]['sort']((_0x2d87af,_0x15754c)=>_0x2d87af[_0x57e14c(0xaf)]-_0x15754c['startIndex']),O(_0x172903,_0x254315),{'nextDocumentData':_0x415c39,'nextMetadata':_0x458082,'cursorOffset':_0x4561fe+0x1};}function te(_0xa5c771,_0x3f91e7,_0x31563a){const _0x5c80e8=_0xa3a59c;(_0xa5c771['paragraphs']??[])[_0x5c80e8(0xda)](_0x22af6b=>_0x22af6b[_0x5c80e8(0xaf)]>_0x3f91e7&&_0x22af6b[_0x5c80e8(0xaf)]<_0x31563a)[_0x5c80e8(0x90)](_0x3e5e0e=>{const _0x147cda=_0x5c80e8;let _0x3798f0={..._0x3e5e0e[_0x147cda(0xb3)]??{}};delete _0x3798f0['spaceAbove'],delete _0x3798f0[_0x147cda(0x69)],_0x3e5e0e[_0x147cda(0xb3)]=_0x3798f0;});}function ne(_0x363265,_0x48ace5){const _0x158c2e=_0xa3a59c;return _0x363265==null||_0x48ace5==null||_0x363265===_0x48ace5?null:{'startOffset':Math[_0x158c2e(0xfb)](_0x363265,_0x48ace5),'endOffset':Math['max'](_0x363265,_0x48ace5)};}function re(_0x5193ff,_0x4079db,_0x249a05){const _0x3641b8=_0xa3a59c;return(_0x5193ff['blockRanges']??[])[_0x3641b8(0x139)](_0x8f6f9e=>{const _0x177e88=_0x3641b8;let _0x4bc069=(0x0,e['getBlockRangeInterval'])(_0x8f6f9e);return _0x4079db===_0x249a05?(0x0,e[_0x177e88(0xe4)])(_0x4bc069,_0x4079db):(0x0,e['intersectsOperationalIntervals'])(_0x4bc069,{'startOffset':_0x4079db,'endOffset':_0x249a05});});}function ie(_0x3d2d45){const _0x36f478=_0xa3a59c;return{'nextDocumentData':S(_0x3d2d45[_0x36f478(0xbf)]),'nextMetadata':s(_0x3d2d45[_0x36f478(0xaa)],_0x3d2d45['blockId'],_0x3d2d45['config']),'cursorOffset':0x0};}function v(_0x2f4e01){const _0x3fd1f7=_0xa3a59c;let _0x25c5a8=S(_0x2f4e01['documentData']),_0x4f7496=w(_0x25c5a8),_0x2e6c74=b(_0x4f7496,_0x2f4e01[_0x3fd1f7(0x131)]);if(!_0x2e6c74)return null;let _0x5eefd5=fe(_0x4f7496,_0x2e6c74);return{'nextDocumentData':_0x25c5a8,'nextMetadata':c(_0x2f4e01['metadata'],_0x2f4e01[_0x3fd1f7(0x131)]),'cursorOffset':_0x5eefd5};}function ae(_0x34870c){const _0x39101e=_0xa3a59c;var _0x55bdaa;let _0x17e5b2=S(_0x34870c[_0x39101e(0xbf)]),_0x3041d3=w(_0x17e5b2),_0x5651b5=b(_0x3041d3,_0x34870c[_0x39101e(0x131)]);if(!_0x5651b5)return null;let _0x434e53=(0x0,e[_0x39101e(0xe9)])(_0x5651b5);return A(_0x3041d3,_0x434e53[_0x39101e(0xe0)],_0x434e53[_0x39101e(0xc0)]),_0x3041d3[_0x39101e(0x8f)]=(_0x55bdaa=_0x3041d3[_0x39101e(0x8f)])==null?void 0x0:_0x55bdaa[_0x39101e(0xda)](_0x2dfaa6=>_0x2dfaa6[_0x39101e(0x131)]!==_0x34870c[_0x39101e(0x131)]),{'nextDocumentData':_0x17e5b2,'nextMetadata':c(_0x34870c[_0x39101e(0xaa)],_0x34870c[_0x39101e(0x131)]),'cursorOffset':_0x5651b5[_0x39101e(0xaf)]};}function y(_0x44bd1f){const _0x364f55=_0xa3a59c;let _0x543c6b=S(_0x44bd1f['documentData']),_0x42f90c=w(_0x543c6b),_0x2b780f=ce(_0x42f90c,_0x44bd1f[_0x364f55(0x7a)]);return _0x2b780f&&oe(_0x543c6b,_0x42f90c,_0x2b780f,_0x44bd1f[_0x364f55(0x7a)],_0x44bd1f[_0x364f55(0x11f)])||null;}function oe(_0x53a4f6,_0x2bb7f9,_0x1b2632,_0x1ad5c0,_0xb615ad){const _0x497958=_0xa3a59c;let _0x2d4d41=Se(_0x2bb7f9,_0x1b2632,_0x1ad5c0,_0xb615ad);if(!_0x2d4d41)return null;let _0x1d0033=_0x2d4d41[_0x497958(0xba)]-0x1;return A(_0x2bb7f9,_0x2d4d41['paragraph'][_0x497958(0xaf)],_0x2d4d41[_0x497958(0x12c)][_0x497958(0xaf)]+0x1),{'nextDocumentData':_0x53a4f6,'cursorOffset':_0x1d0033};}function b(_0x2fe105,_0x44cb10){const _0x50a859=_0xa3a59c;var _0x2a8754;return _0x2fe105==null||(_0x2a8754=_0x2fe105[_0x50a859(0x8f)])==null?void 0x0:_0x2a8754[_0x50a859(0xc5)](_0x11107f=>_0x11107f[_0x50a859(0xb1)]===e[_0x50a859(0x125)]['CODE']&&_0x11107f['blockId']===_0x44cb10);}function se(_0x30cba9){const _0x46a434=_0xa3a59c;let _0x5e1d33=_0x30cba9[_0x46a434(0xbf)][_0x46a434(0xe1)];if(!_0x5e1d33)return!0x1;let _0x4642d3=_0x30cba9['direction']===_0x46a434(0xef)?_0x30cba9[_0x46a434(0x7a)]-0x1:_0x30cba9[_0x46a434(0x7a)],_0x53ddfa=_0x30cba9[_0x46a434(0x92)]===_0x46a434(0x13d)?_0x30cba9[_0x46a434(0x7a)]+0x1:_0x4642d3;return(_0x5e1d33[_0x46a434(0x8f)]??[])[_0x46a434(0x139)](_0x3197dd=>_0x3197dd[_0x46a434(0xb1)]===e[_0x46a434(0x125)][_0x46a434(0xeb)]?_0x4642d3===_0x3197dd[_0x46a434(0xaf)]||_0x4642d3===_0x3197dd[_0x46a434(0x108)]||_0x53ddfa===_0x3197dd[_0x46a434(0xaf)]||_0x53ddfa===_0x3197dd[_0x46a434(0x108)]:!0x1);}function ce(_0x39e575,_0x363fca){var _0x503fb9;return(_0x503fb9=_0x39e575['blockRanges'])==null?void 0x0:_0x503fb9['find'](_0x5c5ebc=>{const _0x213dcf=_0x9030;let _0x4866bc=D(_0x5c5ebc);return _0x5c5ebc[_0x213dcf(0xb1)]===e[_0x213dcf(0x125)][_0x213dcf(0xeb)]&&_0x5c5ebc[_0x213dcf(0xaf)]<=_0x363fca&&_0x363fca<=_0x4866bc+0x2;});}function x(_0x30d8e1,_0x5acf9b,_0x1b84aa=!0x1){const _0x4de776=_0xa3a59c;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':e[_0x4de776(0xe2)]['TRUE'],'keepNext':_0x5acf9b?e[_0x4de776(0xe2)]['FALSE']:e['BooleanNumber'][_0x4de776(0x77)],'widowControl':e[_0x4de776(0xe2)]['TRUE'],..._0x30d8e1&&_0x1b84aa?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':g,'fs':0xc}};}function le(_0x5e56a9,_0x24c374,_0x2e3ecf,_0x1aa1d6=!0x1){const _0xb0e10=_0xa3a59c;let _0x5a095e=(_0x5e56a9[_0xb0e10(0xd8)]??[])['filter'](_0x545d36=>_0x545d36[_0xb0e10(0xaf)]>_0x24c374&&_0x545d36[_0xb0e10(0xaf)]<_0x2e3ecf);_0x5a095e[_0xb0e10(0x90)]((_0x48a799,_0x74fa11)=>{const _0x435d7b=_0xb0e10;_0x48a799[_0x435d7b(0xb3)]={..._0x48a799[_0x435d7b(0xb3)]??{},...x(_0x74fa11===0x0,_0x74fa11===_0x5a095e[_0x435d7b(0xd4)]-0x1,_0x1aa1d6)};});}function ue(_0x95c56b){const _0x27e1bf=_0xa3a59c;var _0x437a0b,_0x3ac3d5;let _0x50c685={..._0x95c56b??{}};return delete _0x50c685[_0x27e1bf(0xc1)],delete _0x50c685[_0x27e1bf(0xf8)],delete _0x50c685[_0x27e1bf(0x7c)],delete _0x50c685['spaceBelow'],delete _0x50c685[_0x27e1bf(0x97)],delete _0x50c685[_0x27e1bf(0x13f)],delete _0x50c685[_0x27e1bf(0x91)],((_0x437a0b=_0x50c685[_0x27e1bf(0x10c)])==null?void 0x0:_0x437a0b['ff'])===g&&((_0x3ac3d5=_0x50c685['textStyle'])==null?void 0x0:_0x3ac3d5['fs'])===0xc&&delete _0x50c685[_0x27e1bf(0x10c)],_0x50c685;}function de(_0x496900,_0xa41922){const _0x2a9b6d=_0xa3a59c;let _0x4fb0f5=D(_0xa41922);return(_0x496900[_0x2a9b6d(0xd8)]??[])[_0x2a9b6d(0xda)](_0x3ac78d=>_0x3ac78d[_0x2a9b6d(0xaf)]>_0xa41922[_0x2a9b6d(0xaf)]&&_0x3ac78d[_0x2a9b6d(0xaf)]<_0x4fb0f5);}function fe(_0x49f8d7,_0x51602a){const _0x2b96a0=_0xa3a59c;var _0x23ed97;let _0x147dda=D(_0x51602a);return de(_0x49f8d7,_0x51602a)['forEach'](_0x5f5ab4=>{const _0x39fd9e=_0x9030;_0x5f5ab4[_0x39fd9e(0xb3)]=ue(_0x5f5ab4['paragraphStyle']);}),A(_0x49f8d7,_0x147dda,_0x147dda+0x1),A(_0x49f8d7,_0x51602a[_0x2b96a0(0xaf)],_0x51602a[_0x2b96a0(0xaf)]+0x1),_0x49f8d7[_0x2b96a0(0x8f)]=(_0x23ed97=_0x49f8d7[_0x2b96a0(0x8f)])==null?void 0x0:_0x23ed97[_0x2b96a0(0xda)](_0x4de0d2=>_0x4de0d2['blockId']!==_0x51602a[_0x2b96a0(0x131)]),_0x51602a[_0x2b96a0(0xaf)];}function S(_0x37d637){const _0xdffe6d=_0xa3a59c;return{..._0x37d637,'body':_0x37d637[_0xdffe6d(0xe1)]?pe(_0x37d637['body']):_0x37d637[_0xdffe6d(0xe1)]};}function pe(_0xc374d9){const _0x285285=_0xa3a59c;var _0x5c87da,_0x4c4189,_0x4d05f3,_0x1a49ff,_0x5923a1,_0x4b612a,_0x5f0d6a,_0x5e056b,_0x336298;return{..._0xc374d9,'paragraphs':(_0x5c87da=_0xc374d9[_0x285285(0xd8)])==null?void 0x0:_0x5c87da[_0x285285(0xd7)](_0x255ca1=>({..._0x255ca1,'bullet':C(_0x255ca1[_0x285285(0x134)]),'paragraphStyle':C(_0x255ca1[_0x285285(0xb3)])})),'sectionBreaks':(_0x4c4189=_0xc374d9[_0x285285(0x8d)])==null?void 0x0:_0x4c4189['map'](_0x14af17=>({..._0x14af17})),'textRuns':(_0x4d05f3=_0xc374d9['textRuns'])==null?void 0x0:_0x4d05f3[_0x285285(0xd7)](_0xbadef8=>({..._0xbadef8})),'tables':(_0x1a49ff=_0xc374d9[_0x285285(0x67)])==null?void 0x0:_0x1a49ff[_0x285285(0xd7)](_0x5166e0=>({..._0x5166e0})),'columnGroups':(_0x5923a1=_0xc374d9['columnGroups'])==null?void 0x0:_0x5923a1['map'](_0x1aa6ab=>{const _0x27988d=_0x285285;var _0x1a99c8;return{..._0x1aa6ab,'columns':(_0x1a99c8=_0x1aa6ab[_0x27988d(0x102)])==null?void 0x0:_0x1a99c8[_0x27988d(0xd7)](_0x2c3848=>C(_0x2c3848))};}),'blockRanges':(_0x4b612a=_0xc374d9[_0x285285(0x8f)])==null?void 0x0:_0x4b612a[_0x285285(0xd7)](_0x4d9f4c=>({..._0x4d9f4c})),'customRanges':(_0x5f0d6a=_0xc374d9[_0x285285(0x6c)])==null?void 0x0:_0x5f0d6a['map'](_0x42f201=>({..._0x42f201})),'customDecorations':(_0x5e056b=_0xc374d9[_0x285285(0xf3)])==null?void 0x0:_0x5e056b[_0x285285(0xd7)](_0x5a3f44=>({..._0x5a3f44})),'customBlocks':(_0x336298=_0xc374d9[_0x285285(0xa0)])==null?void 0x0:_0x336298[_0x285285(0xd7)](_0x16abc2=>({..._0x16abc2}))};}function C(_0x14b067){const _0x416d54=_0xa3a59c;return Array[_0x416d54(0x120)](_0x14b067)?_0x14b067[_0x416d54(0xd7)](_0x3bd9f9=>C(_0x3bd9f9)):!_0x14b067||typeof _0x14b067!='object'?_0x14b067:Object['fromEntries'](Object[_0x416d54(0x101)](_0x14b067)[_0x416d54(0xd7)](([_0x52e038,_0x590f61])=>[_0x52e038,C(_0x590f61)]));}function w(_0x1fb0de){const _0x117260=_0xa3a59c;if(!_0x1fb0de[_0x117260(0xe1)])throw Error(_0x117260(0xdc));return _0x1fb0de[_0x117260(0xe1)];}function me(_0x1f1880,_0x53ee78,_0x67e2de,_0x61703a=_0xa3a59c(0xea)){const _0x36ee34=_0xa3a59c;if(_0x53ee78==null||_0x67e2de==null){let _0x3ec54a=ge(_0x1f1880);return{'startOffset':_0x3ec54a,'endOffset':_0x3ec54a};}let _0x22374b=Math[_0x36ee34(0xfb)](_0x53ee78,_0x67e2de),_0x4c9559=Math['max'](_0x53ee78,_0x67e2de),_0x2119cd=xe(_0x1f1880,_0x22374b,_0x4c9559);return _0x22374b===_0x4c9559?_0x61703a===_0x36ee34(0x109)?{'startOffset':_0x22374b,'endOffset':_0x4c9559}:he(_0x1f1880,_0x22374b,_0x2119cd):ve(_0x1f1880,_0x22374b,_0x4c9559,_0x2119cd);}function he(_0x3b8674,_0x4f0141,_0x2ab825){const _0x4e17e7=_0xa3a59c;let _0x10a093=ye(_0x3b8674,_0x4f0141);if(_0x10a093){let _0x2d38ed=T(_0x3b8674,_0x10a093,_0x2ab825);if(_0x2d38ed<_0x10a093[_0x4e17e7(0xaf)])return{'startOffset':_0x2d38ed,'endOffset':_0x2ab825?Math[_0x4e17e7(0xfb)](_0x10a093[_0x4e17e7(0xaf)]+0x1,_0x2ab825[_0x4e17e7(0xc0)]):_0x10a093[_0x4e17e7(0xaf)]+0x1};}let _0x4fe35a=_0x4f0141===0x0&&_0x3b8674[_0x4e17e7(0x6d)][0x0]===e[_0x4e17e7(0x118)][_0x4e17e7(0x13c)]?0x1:_0x4f0141;return{'startOffset':_0x4fe35a,'endOffset':_0x4fe35a};}function ge(_0x4019c5){const _0x5187f5=_0xa3a59c;return _0x4019c5[_0x5187f5(0x6d)][_0x5187f5(0x75)](e[_0x5187f5(0x118)]['SECTION_BREAK'])?Math[_0x5187f5(0x94)](0x0,_0x4019c5[_0x5187f5(0x6d)]['length']-0x1):_0x4019c5[_0x5187f5(0x6d)]['length'];}function _e(_0x2a1481,_0x18ade1,_0x3e422b){const _0x48da93=_0xa3a59c;var _0x5f1ba7;let _0x1ff3fe=Math[_0x48da93(0xfb)](_0x18ade1,_0x3e422b),_0x5c33c7=Math[_0x48da93(0x94)](_0x18ade1,_0x3e422b);return!!((_0x5f1ba7=_0x2a1481[_0x48da93(0x67)])!=null&&_0x5f1ba7[_0x48da93(0x139)](_0x106103=>_0x1ff3fe>_0x106103[_0x48da93(0xaf)]&&_0x1ff3fe<_0x106103[_0x48da93(0x108)]||_0x5c33c7>_0x106103[_0x48da93(0xaf)]&&_0x5c33c7<_0x106103['endIndex']||_0x1ff3fe<=_0x106103[_0x48da93(0xaf)]&&_0x5c33c7>=_0x106103[_0x48da93(0x108)]));}function ve(_0x674acd,_0x471792,_0x53316a,_0x1e81e8){const _0x2ca2ca=_0xa3a59c;let _0x3f1311=[..._0x674acd[_0x2ca2ca(0xd8)]??[]][_0x2ca2ca(0xad)]((_0x1f2006,_0x313f33)=>_0x1f2006[_0x2ca2ca(0xaf)]-_0x313f33[_0x2ca2ca(0xaf)]),_0x59752e=(0x0,e[_0x2ca2ca(0xc4)])(_0x674acd),_0x199638=_0x3f1311[_0x2ca2ca(0xc5)](_0x5404bc=>T(_0x674acd,_0x5404bc,_0x1e81e8,_0x59752e)<=_0x471792&&_0x471792<=_0x5404bc[_0x2ca2ca(0xaf)]),_0x22ac2b=_0x3f1311[_0x2ca2ca(0xc5)](_0x274620=>_0x274620[_0x2ca2ca(0xaf)]>=_0x53316a-0x1)??_0x3f1311[_0x3f1311['length']-0x1];return{'startOffset':_0x199638?T(_0x674acd,_0x199638,_0x1e81e8,_0x59752e):_0x471792,'endOffset':_0x22ac2b?be(_0x22ac2b,_0x1e81e8):_0x53316a};}function ye(_0x2d0ebe,_0x1b4792){const _0x3690ff=_0xa3a59c;let _0x54740e=[..._0x2d0ebe[_0x3690ff(0xd8)]??[]]['sort']((_0x1cc79e,_0x2febbf)=>_0x1cc79e[_0x3690ff(0xaf)]-_0x2febbf[_0x3690ff(0xaf)]),_0x2c4f68=(0x0,e[_0x3690ff(0xc4)])(_0x2d0ebe);return _0x54740e['find'](_0x3e13a2=>(_0x2c4f68[_0x3690ff(0xfe)](_0x3e13a2['startIndex'])??0x0)<=_0x1b4792&&_0x1b4792<=_0x3e13a2[_0x3690ff(0xaf)]);}function _0x9030(_0x1e4c43,_0x261254){_0x1e4c43=_0x1e4c43-0x67;const _0x17a514=_0x17a5();let _0x90301e=_0x17a514[_0x1e4c43];return _0x90301e;}function T(_0x5e102d,_0x2bf255,_0x11a675,_0x3fd8d7){const _0x4231ca=_0xa3a59c;let _0x4ab6a1=(_0x3fd8d7==null?void 0x0:_0x3fd8d7[_0x4231ca(0xfe)](_0x2bf255[_0x4231ca(0xaf)]))??(0x0,e[_0x4231ca(0xe7)])(_0x5e102d,_0x2bf255);return _0x11a675?Math['max'](_0x4ab6a1,_0x11a675[_0x4231ca(0xe0)]):_0x4ab6a1;}function be(_0x8444a6,_0x55f879){const _0x27d3f4=_0xa3a59c;let _0x360eb6=_0x8444a6[_0x27d3f4(0xaf)]+0x1;return _0x55f879?Math[_0x27d3f4(0xfb)](_0x360eb6,_0x55f879[_0x27d3f4(0xc0)]):_0x360eb6;}function xe(_0x3e2361,_0x5a2b8e,_0x3d09ac){const _0x3b67c9=_0xa3a59c;let _0x1ddaaf=E(_0x3e2361,_0x5a2b8e),_0x37b587=E(_0x3e2361,_0x5a2b8e===_0x3d09ac?_0x3d09ac:Math[_0x3b67c9(0x94)](_0x5a2b8e,_0x3d09ac-0x1));if(_0x1ddaaf||_0x37b587){if(!_0x1ddaaf||!_0x37b587||_0x1ddaaf[_0x3b67c9(0x129)]!==_0x37b587[_0x3b67c9(0x129)]||_0x1ddaaf[_0x3b67c9(0xba)]!==_0x37b587[_0x3b67c9(0xba)])throw new _();return _0x1ddaaf;}}function E(_0x18b5ac,_0x3341a8){const _0x3cd370=_0xa3a59c;let _0x165ad8=_0x18b5ac[_0x3cd370(0x6d)],_0x35d5f6=-0x1;for(let _0x3e0bd9=Math[_0x3cd370(0xfb)](_0x3341a8,_0x165ad8['length']-0x1);_0x3e0bd9>=0x0;_0x3e0bd9--){let _0x33f6fd=_0x165ad8[_0x3e0bd9];if(_0x33f6fd===e['DataStreamTreeTokenType'][_0x3cd370(0xdb)])return;if(_0x33f6fd===e[_0x3cd370(0x118)][_0x3cd370(0xec)]){_0x35d5f6=_0x3e0bd9;break;}}if(_0x35d5f6<0x0)return;let _0x1e1f96=_0x165ad8[_0x3cd370(0x7f)](e[_0x3cd370(0x118)][_0x3cd370(0xdb)],_0x35d5f6+0x1);if(!(_0x1e1f96<0x0||_0x3341a8<_0x35d5f6+0x1||_0x3341a8>_0x1e1f96-0x1))return{'startOffset':_0x35d5f6+0x1,'endOffset':Math[_0x3cd370(0x94)](_0x35d5f6+0x1,_0x1e1f96-0x1),'startTokenOffset':_0x35d5f6,'endTokenOffset':_0x1e1f96};}function D(_0x3b4b35){const _0x2ced40=_0xa3a59c;return(0x0,e['getBlockRangeInterval'])(_0x3b4b35)[_0x2ced40(0xc0)]-0x1;}function Se(_0x23f323,_0x20c933,_0x11aa49,_0x248ad6){const _0x30fee7=_0xa3a59c;let _0x5c0699=D(_0x20c933),_0x1dd1d1=(_0x23f323[_0x30fee7(0xd8)]??[])[_0x30fee7(0xc5)](_0x12e2df=>_0x12e2df[_0x30fee7(0xaf)]===_0x5c0699+0x1);if(!_0x1dd1d1||_0x248ad6!=null&&_0x1dd1d1[_0x30fee7(0xaf)]!==_0x248ad6||_0x11aa49!=null&&(_0x11aa49<_0x5c0699||_0x11aa49>_0x1dd1d1[_0x30fee7(0xaf)]+0x1)||_0x23f323[_0x30fee7(0x6d)][_0x1dd1d1[_0x30fee7(0xaf)]]!==e['DataStreamTreeTokenType']['PARAGRAPH'])return null;let _0x79dc4f=(0x0,e[_0x30fee7(0xe7)])(_0x23f323,_0x1dd1d1),_0x3eb73d=_0x23f323['dataStream'][_0x30fee7(0xce)](_0x79dc4f,_0x1dd1d1['startIndex']);return Array[_0x30fee7(0xa3)](_0x3eb73d)[_0x30fee7(0x9a)](_0x1a5441=>_0x1a5441===e[_0x30fee7(0x118)][_0x30fee7(0x89)])?{'paragraph':_0x1dd1d1,'endTokenOffset':_0x5c0699}:null;}function O(_0x1ce933,_0x428809){const _0x51be4b=_0xa3a59c;var _0x537dae;let _0x1a3b05=D(_0x428809),_0x28393e=_0x1ce933['dataStream'][_0x1a3b05+0x1];(_0x28393e===e[_0x51be4b(0x118)][_0x51be4b(0xcb)]||_0x28393e===void 0x0)&&k(_0x1ce933,_0x1a3b05+0x1,e['DataStreamTreeTokenType'][_0x51be4b(0x13c)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,e['createParagraphId'])(new Set((_0x537dae=_0x1ce933[_0x51be4b(0xd8)])==null?void 0x0:_0x537dae['map'](_0x20f82d=>_0x20f82d[_0x51be4b(0x6b)])))}]});}function k(_0x5a8eee,_0x29caf2,_0x199a39,_0x3bf876={}){const _0x2cccec=_0xa3a59c;var _0x30471d,_0x42ce09;_0x199a39&&(_0x5a8eee[_0x2cccec(0x6d)]=''+_0x5a8eee[_0x2cccec(0x6d)][_0x2cccec(0xce)](0x0,_0x29caf2)+_0x199a39+_0x5a8eee[_0x2cccec(0x6d)][_0x2cccec(0xce)](_0x29caf2),Ce(_0x5a8eee,_0x29caf2,_0x199a39[_0x2cccec(0xd4)]),(_0x30471d=_0x3bf876[_0x2cccec(0xd8)])!=null&&_0x30471d[_0x2cccec(0xd4)]&&(_0x5a8eee[_0x2cccec(0xd8)]=[..._0x5a8eee[_0x2cccec(0xd8)]??[],..._0x3bf876[_0x2cccec(0xd8)]['map'](_0x34bb37=>({..._0x34bb37,'startIndex':_0x34bb37[_0x2cccec(0xaf)]+_0x29caf2}))][_0x2cccec(0xad)]((_0x1643f3,_0x5ca238)=>_0x1643f3['startIndex']-_0x5ca238['startIndex'])),(_0x42ce09=_0x3bf876[_0x2cccec(0x8f)])!=null&&_0x42ce09['length']&&(_0x5a8eee[_0x2cccec(0x8f)]=[..._0x5a8eee[_0x2cccec(0x8f)]??[],..._0x3bf876[_0x2cccec(0x8f)]['map'](_0x1ab769=>({..._0x1ab769,'startIndex':_0x1ab769[_0x2cccec(0xaf)]+_0x29caf2,'endIndex':_0x1ab769[_0x2cccec(0x108)]+_0x29caf2}))][_0x2cccec(0xad)]((_0x1a2656,_0x51dd46)=>_0x1a2656[_0x2cccec(0xaf)]-_0x51dd46[_0x2cccec(0xaf)])));}function A(_0x2de421,_0x55a556,_0x3d6f25){const _0x5bd0af=_0xa3a59c;let _0xd2163=_0x3d6f25-_0x55a556;_0x2de421['dataStream']=''+_0x2de421['dataStream'][_0x5bd0af(0xce)](0x0,_0x55a556)+_0x2de421[_0x5bd0af(0x6d)][_0x5bd0af(0xce)](_0x3d6f25),we(_0x2de421,_0x55a556,_0xd2163);}function Ce(_0x4fb138,_0x711f50,_0x4a35ff){const _0x3c2cdd=_0xa3a59c;_0x4fb138[_0x3c2cdd(0xd8)]=j(_0x4fb138[_0x3c2cdd(0xd8)],_0x711f50,_0x4a35ff),_0x4fb138[_0x3c2cdd(0x8d)]=j(_0x4fb138[_0x3c2cdd(0x8d)],_0x711f50,_0x4a35ff),_0x4fb138[_0x3c2cdd(0xa0)]=j(_0x4fb138[_0x3c2cdd(0xa0)],_0x711f50,_0x4a35ff),_0x4fb138['textRuns']=Te(_0x4fb138[_0x3c2cdd(0xfc)],_0x711f50,_0x4a35ff),_0x4fb138[_0x3c2cdd(0x67)]=Ee(_0x4fb138[_0x3c2cdd(0x67)],_0x711f50,_0x4a35ff),_0x4fb138['columnGroups']=N(_0x4fb138['columnGroups'],_0x711f50,_0x4a35ff),_0x4fb138['customRanges']=N(_0x4fb138[_0x3c2cdd(0x6c)],_0x711f50,_0x4a35ff),_0x4fb138['customDecorations']=N(_0x4fb138[_0x3c2cdd(0xf3)],_0x711f50,_0x4a35ff),_0x4fb138['blockRanges']=N(_0x4fb138['blockRanges'],_0x711f50,_0x4a35ff);}function we(_0x4f8634,_0x1100de,_0x196f0f){const _0x64d391=_0xa3a59c;var _0x3bb387,_0x1456b3;_0x4f8634[_0x64d391(0xd8)]=M(_0x4f8634['paragraphs'],_0x1100de,_0x196f0f),_0x4f8634[_0x64d391(0x8d)]=M(_0x4f8634[_0x64d391(0x8d)],_0x1100de,_0x196f0f),_0x4f8634[_0x64d391(0xa0)]=M(_0x4f8634[_0x64d391(0xa0)],_0x1100de,_0x196f0f),_0x4f8634[_0x64d391(0xfc)]=(_0x3bb387=F((_0x1456b3=_0x4f8634['textRuns'])==null?void 0x0:_0x1456b3[_0x64d391(0xd7)](_0x1939d9=>({..._0x1939d9,'startIndex':_0x1939d9['st'],'endIndex':_0x1939d9['ed']})),_0x1100de,_0x196f0f))==null?void 0x0:_0x3bb387['map'](_0x2c09c8=>{let {startIndex:_0x33a52d,endIndex:_0x4c1005,..._0x363ad6}=_0x2c09c8;return{..._0x363ad6,'st':_0x33a52d,'ed':_0x4c1005};}),_0x4f8634[_0x64d391(0x67)]=F(_0x4f8634[_0x64d391(0x67)],_0x1100de,_0x196f0f),_0x4f8634[_0x64d391(0x6a)]=P(_0x4f8634[_0x64d391(0x6a)],_0x1100de,_0x196f0f),_0x4f8634[_0x64d391(0x6c)]=P(_0x4f8634[_0x64d391(0x6c)],_0x1100de,_0x196f0f),_0x4f8634[_0x64d391(0xf3)]=P(_0x4f8634[_0x64d391(0xf3)],_0x1100de,_0x196f0f),_0x4f8634['blockRanges']=P(_0x4f8634[_0x64d391(0x8f)],_0x1100de,_0x196f0f);}function j(_0x4c7c75,_0x148384,_0x441a63){const _0x21a121=_0xa3a59c;return _0x4c7c75==null?void 0x0:_0x4c7c75['map'](_0x406c2c=>_0x406c2c['startIndex']>=_0x148384?{..._0x406c2c,'startIndex':_0x406c2c[_0x21a121(0xaf)]+_0x441a63}:_0x406c2c);}function M(_0x8c28de,_0x3f469f,_0x25f4f6){const _0x34f4f4=_0xa3a59c;let _0x5c77be=_0x3f469f+_0x25f4f6;return _0x8c28de==null?void 0x0:_0x8c28de['map'](_0x295d1d=>_0x295d1d[_0x34f4f4(0xaf)]>=_0x3f469f&&_0x295d1d[_0x34f4f4(0xaf)]<_0x5c77be?null:_0x295d1d[_0x34f4f4(0xaf)]>=_0x5c77be?{..._0x295d1d,'startIndex':_0x295d1d[_0x34f4f4(0xaf)]-_0x25f4f6}:_0x295d1d)[_0x34f4f4(0xda)](_0x45968d=>_0x45968d!=null);}function Te(_0x5d92a3,_0x3637dc,_0x4f242f){const _0x27c622=_0xa3a59c;return _0x5d92a3==null?void 0x0:_0x5d92a3[_0x27c622(0xd7)](_0x322394=>_0x322394['st']>=_0x3637dc?{..._0x322394,'st':_0x322394['st']+_0x4f242f,'ed':_0x322394['ed']+_0x4f242f}:_0x322394['ed']>_0x3637dc?{..._0x322394,'ed':_0x322394['ed']+_0x4f242f}:_0x322394);}function N(_0x27c964,_0x2fc9e6,_0x36321c){return _0x27c964==null?void 0x0:_0x27c964['map'](_0x5e6161=>(0x0,e['shiftInclusiveRangeOnInsert'])(_0x5e6161,_0x2fc9e6,_0x36321c));}function Ee(_0x39a1d8,_0x4d715f,_0x1aa318){const _0x2e9a9e=_0xa3a59c;return _0x39a1d8==null?void 0x0:_0x39a1d8[_0x2e9a9e(0xd7)](_0x3c3c7c=>(0x0,e[_0x2e9a9e(0x80)])(_0x3c3c7c,_0x4d715f,_0x1aa318));}function P(_0xcaf2f9,_0x49b126,_0x51020e){const _0x435cc9=_0xa3a59c;return _0xcaf2f9==null?void 0x0:_0xcaf2f9[_0x435cc9(0xd7)](_0x20e22c=>(0x0,e[_0x435cc9(0x112)])(_0x20e22c,_0x49b126,_0x51020e))[_0x435cc9(0xda)](_0xa8e53b=>_0xa8e53b!=null);}function F(_0x4454de,_0x5130c9,_0x3dd099){const _0x597eed=_0xa3a59c;return _0x4454de==null?void 0x0:_0x4454de[_0x597eed(0xd7)](_0x3e614c=>(0x0,e[_0x597eed(0x111)])(_0x3e614c,_0x5130c9,_0x3dd099))[_0x597eed(0xda)](_0x1d25ce=>_0x1d25ce!=null);}const I={'id':_0xa3a59c(0x105),'type':e[_0xa3a59c(0x9d)][_0xa3a59c(0x99)],'handler':_0xfb16e1=>{const _0x5b9ee8=_0xa3a59c;var _0x4cbc47;if((0x0,n[_0x5b9ee8(0xf2)])(W(_0xfb16e1)))return!0x1;let _0x173f46=(0x0,n[_0x5b9ee8(0xc3)])(_0xfb16e1);if(_0x173f46)return _0xfb16e1['get'](e['ICommandService'])[_0x5b9ee8(0xee)](R['id'],{'startOffset':_0x173f46['startOffset'],'endOffset':_0x173f46['endOffset'],'insertionMode':_0x5b9ee8(0x109),'unitId':_0x173f46['unitId']});let _0x5d7b1f=je(_0xfb16e1);if(!_0x5d7b1f)return!0x1;let _0x3699ae=(_0x4cbc47=_0xfb16e1['get'](e['IUniverInstanceService'])['getCurrentUnitOfType'](e[_0x5b9ee8(0xd9)][_0x5b9ee8(0x136)]))==null?void 0x0:_0x4cbc47[_0x5b9ee8(0xf5)](),_0x2de6f5=_0x3699ae?(0x0,e[_0x5b9ee8(0xc8)])(_0x3699ae,_0x5d7b1f):_0x5d7b1f['startIndex']+0x1;return _0xfb16e1[_0x5b9ee8(0xfe)](e[_0x5b9ee8(0xbd)])[_0x5b9ee8(0xee)](R['id'],{'startOffset':_0x2de6f5,'endOffset':_0x2de6f5});}},L={'id':_0xa3a59c(0xc9),'type':e[_0xa3a59c(0x9d)][_0xa3a59c(0x99)],'handler':()=>!0x0},R={'id':_0xa3a59c(0x86),'type':e[_0xa3a59c(0x9d)]['COMMAND'],'handler':(_0x5654dd,_0x3a211f)=>{const _0x32ea18=_0xa3a59c;let _0x3481d2=U(_0x5654dd,_0x3a211f==null?void 0x0:_0x3a211f['unitId']);if(!_0x3481d2)return!0x1;let _0x220a11=W(_0x5654dd);if((0x0,n['isHeaderFooterSelection'])(_0x220a11))return!0x1;let _0x4994af=_0x3481d2[_0x32ea18(0xed)][_0x32ea18(0xf1)](_0x3481d2[_0x32ea18(0xd0)]),_0xd8060b=Oe(_0x3a211f,_0x220a11),_0x30976b=ke(_0x3481d2[_0x32ea18(0x10f)],_0xd8060b);if(_0x30976b){if(_0x30976b['blockType']!==e[_0x32ea18(0x125)][_0x32ea18(0xeb)])return!0x1;let _0x316e99=v({'blockId':_0x30976b['blockId'],'documentData':_0x3481d2[_0x32ea18(0x10f)],'metadata':_0x4994af});if(!_0x316e99)return!0x1;let _0x39453b=J(_0x3481d2[_0x32ea18(0x11c)],_0x3481d2[_0x32ea18(0xb4)],_0x3481d2[_0x32ea18(0xd0)],_0x3481d2['previousDocumentData'],_0x316e99[_0x32ea18(0x84)],R['id'],_0x316e99[_0x32ea18(0x7a)]);return _0x39453b&&_0x316e99['nextMetadata']&&_0x3481d2[_0x32ea18(0xed)]['deserialize'](_0x3481d2['unitId'],_0x316e99[_0x32ea18(0x76)]),_0x39453b;}let _0x1c8047=(_0x3a211f==null?void 0x0:_0x3a211f['blockId'])??(0x0,e['generateRandomId'])(0x6),_0x3d2e2b;try{_0x3d2e2b=ee({'blockId':_0x1c8047,'config':_0x3a211f==null?void 0x0:_0x3a211f['config'],'documentData':_0x3481d2[_0x32ea18(0x10f)],'endOffset':_0xd8060b==null?void 0x0:_0xd8060b['endOffset'],'insertionMode':_0x3a211f==null?void 0x0:_0x3a211f['insertionMode'],'metadata':_0x4994af,'startOffset':_0xd8060b==null?void 0x0:_0xd8060b[_0x32ea18(0xe0)]});}catch(_0x2a1129){if(_0x2a1129 instanceof _)return!0x1;throw _0x2a1129;}let _0x82b23b=J(_0x3481d2['commandService'],_0x3481d2[_0x32ea18(0xb4)],_0x3481d2['unitId'],_0x3481d2[_0x32ea18(0x10f)],_0x3d2e2b[_0x32ea18(0x84)],R['id'],_0x3d2e2b[_0x32ea18(0x7a)]);return _0x82b23b&&_0x3d2e2b[_0x32ea18(0x76)]&&_0x3481d2['model'][_0x32ea18(0xcf)](_0x3481d2['unitId'],_0x3d2e2b[_0x32ea18(0x76)]),_0x82b23b;}},z={'id':_0xa3a59c(0xe8),'type':e[_0xa3a59c(0x9d)][_0xa3a59c(0x99)],'handler':(_0x4cf004,_0x405c67)=>{const _0x1dd6b1=_0xa3a59c;if(!_0x405c67)return!0x1;let _0x23e4ad=U(_0x4cf004,_0x405c67[_0x1dd6b1(0xd0)]);if(!_0x23e4ad)return!0x1;let _0x5f066f=ie({'blockId':_0x405c67[_0x1dd6b1(0x131)],'config':_0x405c67[_0x1dd6b1(0x71)],'documentData':_0x23e4ad[_0x1dd6b1(0x10f)],'metadata':_0x23e4ad[_0x1dd6b1(0xed)][_0x1dd6b1(0xf1)](_0x23e4ad[_0x1dd6b1(0xd0)])});return _0x5f066f['nextMetadata']&&_0x23e4ad['model'][_0x1dd6b1(0xcf)](_0x23e4ad['unitId'],_0x5f066f[_0x1dd6b1(0x76)]),!0x0;}},De={'id':_0xa3a59c(0x107),'type':e[_0xa3a59c(0x9d)][_0xa3a59c(0x99)],'handler':(_0x5a6cf1,_0xd81a7a)=>B[_0xa3a59c(0x10a)](_0x5a6cf1,_0xd81a7a)},B={'id':_0xa3a59c(0x116),'type':e[_0xa3a59c(0x9d)][_0xa3a59c(0x99)],'handler':(_0x160b6e,_0x45acbe)=>{const _0x3aff34=_0xa3a59c;if(!_0x45acbe)return!0x1;let _0x419af4=U(_0x160b6e,_0x45acbe==null?void 0x0:_0x45acbe[_0x3aff34(0xd0)]);if(!_0x419af4)return!0x1;let _0x372b22=v({'blockId':_0x45acbe['blockId'],'documentData':_0x419af4[_0x3aff34(0x10f)],'metadata':_0x419af4[_0x3aff34(0xed)][_0x3aff34(0xf1)](_0x419af4['unitId'])});if(!_0x372b22)return!0x1;let _0x2a9eb2=J(_0x419af4['commandService'],_0x419af4['selectionManager'],_0x419af4['unitId'],_0x419af4[_0x3aff34(0x10f)],_0x372b22['nextDocumentData'],B['id'],_0x372b22['cursorOffset']);return _0x2a9eb2&&_0x372b22[_0x3aff34(0x76)]&&_0x419af4['model'][_0x3aff34(0xcf)](_0x419af4['unitId'],_0x372b22[_0x3aff34(0x76)]),_0x2a9eb2;}},V={'id':'docs-code.command.remove','type':e[_0xa3a59c(0x9d)][_0xa3a59c(0x99)],'handler':(_0x1c8273,_0x2c0112)=>{const _0x3e223c=_0xa3a59c;if(!_0x2c0112)return!0x1;let _0x22cd60=U(_0x1c8273,_0x2c0112==null?void 0x0:_0x2c0112[_0x3e223c(0xd0)]);if(!_0x22cd60)return!0x1;let _0x2254a8=ae({'blockId':_0x2c0112[_0x3e223c(0x131)],'documentData':_0x22cd60[_0x3e223c(0x10f)],'metadata':_0x22cd60[_0x3e223c(0xed)]['serialize'](_0x22cd60['unitId'])});if(!_0x2254a8)return!0x1;let _0x43cf1b=J(_0x22cd60[_0x3e223c(0x11c)],_0x22cd60[_0x3e223c(0xb4)],_0x22cd60['unitId'],_0x22cd60[_0x3e223c(0x10f)],_0x2254a8['nextDocumentData'],V['id'],_0x2254a8[_0x3e223c(0x7a)]);return _0x43cf1b&&_0x2254a8[_0x3e223c(0x76)]&&_0x22cd60[_0x3e223c(0xed)][_0x3e223c(0xcf)](_0x22cd60[_0x3e223c(0xd0)],_0x2254a8[_0x3e223c(0x76)]),_0x43cf1b;}},H={'id':_0xa3a59c(0xfa),'type':e[_0xa3a59c(0x9d)][_0xa3a59c(0x99)],'handler':(_0x428002,_0xbbfaa0)=>{const _0x25dcb2=_0xa3a59c;var _0x4a0fa1;let _0x530a62=U(_0x428002,_0xbbfaa0==null?void 0x0:_0xbbfaa0[_0x25dcb2(0xd0)]);if(!_0x530a62)return!0x1;let _0x13cd26=(_0xbbfaa0==null?void 0x0:_0xbbfaa0[_0x25dcb2(0x7a)])??((_0x4a0fa1=W(_0x428002))==null?void 0x0:_0x4a0fa1[_0x25dcb2(0xe0)]);if(_0x13cd26==null)return!0x1;let _0x1e437d=y({'cursorOffset':_0x13cd26,'documentData':_0x530a62['previousDocumentData'],'paragraphStartIndex':_0xbbfaa0==null?void 0x0:_0xbbfaa0['paragraphStartIndex']});return _0x1e437d?J(_0x530a62[_0x25dcb2(0x11c)],_0x530a62[_0x25dcb2(0xb4)],_0x530a62[_0x25dcb2(0xd0)],_0x530a62[_0x25dcb2(0x10f)],_0x1e437d[_0x25dcb2(0x84)],H['id'],_0x1e437d['cursorOffset']):!0x1;}};function U(_0x1092a3,_0x2d10d2){const _0x2f9ecb=_0xa3a59c;let _0x1fb325=_0x1092a3['get'](e[_0x2f9ecb(0xf6)]),_0x4114a0=_0x2d10d2?_0x1fb325[_0x2f9ecb(0x8b)](_0x2d10d2,e[_0x2f9ecb(0xd9)][_0x2f9ecb(0x136)]):_0x1fb325[_0x2f9ecb(0xb8)](e[_0x2f9ecb(0xd9)]['UNIVER_DOC']);return _0x4114a0?{'commandService':_0x1092a3[_0x2f9ecb(0xfe)](e['ICommandService']),'model':_0x1092a3['get'](p),'previousDocumentData':_0x4114a0[_0x2f9ecb(0x130)](),'selectionManager':_0x1092a3['get'](n[_0x2f9ecb(0xa2)]),'unitId':_0x4114a0[_0x2f9ecb(0x110)]()}:null;}function W(_0x316378){const _0x263155=_0xa3a59c;var _0x87ceda;return(_0x87ceda=_0x316378[_0x263155(0xfe)](n['DocSelectionManagerService'])[_0x263155(0x124)]())==null?void 0x0:_0x87ceda[0x0];}function Oe(_0x2d561c,_0x574757){const _0x4e5c14=_0xa3a59c;let _0x1091b9=(_0x2d561c==null?void 0x0:_0x2d561c['startOffset'])??(_0x574757==null?void 0x0:_0x574757['startOffset']),_0x5741fe=(_0x2d561c==null?void 0x0:_0x2d561c[_0x4e5c14(0xc0)])??(_0x574757==null?void 0x0:_0x574757['endOffset']);if(_0x1091b9!=null&&_0x5741fe!=null)return{'endOffset':Math[_0x4e5c14(0x94)](_0x1091b9,_0x5741fe),'startOffset':Math[_0x4e5c14(0xfb)](_0x1091b9,_0x5741fe)};}function ke(_0x4c54cb,_0x495627){const _0x374875=_0xa3a59c;var _0x45a86f;if(!_0x495627)return;let _0x47d77e=Ae(_0x495627);return(_0x45a86f=_0x4c54cb[_0x374875(0xe1)])==null||(_0x45a86f=_0x45a86f[_0x374875(0x8f)])==null?void 0x0:_0x45a86f[_0x374875(0xc5)](_0x15a2b4=>{const _0x35acde=_0x374875;let _0x2ce9b9=(0x0,e[_0x35acde(0xe9)])(_0x15a2b4);return _0x495627['startOffset']===_0x495627['endOffset']?(0x0,e[_0x35acde(0xe4)])(_0x2ce9b9,_0x47d77e):(0x0,e['containsStreamIndex'])(_0x2ce9b9,_0x47d77e);});}function Ae(_0x5c746d){const _0x5b8d90=_0xa3a59c;return _0x5c746d[_0x5b8d90(0xe0)]===_0x5c746d[_0x5b8d90(0xc0)]?_0x5c746d[_0x5b8d90(0xe0)]:_0x5c746d['startOffset']+0x1;}function je(_0x13b10f){const _0x1e706d=_0xa3a59c;let _0x5d687e=W(_0x13b10f);if(!_0x5d687e)return null;let _0x2c8cef=_0x13b10f[_0x1e706d(0xfe)](e[_0x1e706d(0xf6)])[_0x1e706d(0xb8)](e[_0x1e706d(0xd9)][_0x1e706d(0x136)]),_0x2bfde5=_0x2c8cef==null?void 0x0:_0x2c8cef[_0x1e706d(0xf5)]();return _0x2bfde5?e[_0x1e706d(0x74)][_0x1e706d(0x7d)][_0x1e706d(0x8e)](_0x5d687e,_0x2bfde5['paragraphs']??[],_0x2bfde5[_0x1e706d(0x6d)]??'')[0x0]??null:null;}function Me(_0xfce9b8,_0xa2923d){const _0x2f2584=_0xa3a59c;let _0x342f67=_0xfce9b8[_0x2f2584(0xe1)],_0xaea8f=_0xa2923d[_0x2f2584(0xe1)],_0x46c195=(0x0,e[_0x2f2584(0xb7)])(_0x342f67,_0xaea8f);return[_0x46c195&&_0xaea8f?Ne(_0xaea8f,_0x46c195):null,_0x46c195?null:Pe(_0x342f67,_0xaea8f)][_0x2f2584(0xda)](Boolean)[_0x2f2584(0xf9)]((_0x20f9e3,_0x1caa82)=>e[_0x2f2584(0x96)][_0x2f2584(0x9f)](_0x20f9e3,_0x1caa82),null);}function Ne(_0x532de8,_0x299c59){const _0x19b775=_0xa3a59c;let _0x3275e5=new e[(_0x19b775(0xfd))]();return _0x3275e5[_0x19b775(0x117)](_0x299c59[_0x19b775(0x135)]),_0x299c59[_0x19b775(0x126)]>0x0&&_0x3275e5['insert'](_0x299c59['insertLength'],(0x0,e[_0x19b775(0x87)])(_0x532de8,_0x299c59['start'],_0x299c59[_0x19b775(0x135)]+_0x299c59[_0x19b775(0x126)],!0x1)),_0x299c59[_0x19b775(0x12f)]>0x0&&_0x3275e5[_0x19b775(0x85)](_0x299c59[_0x19b775(0x12f)]),e['JSONX']['getInstance']()[_0x19b775(0xde)](_0x3275e5[_0x19b775(0xf1)](),['body']);}function Pe(_0x2fdf60,_0x23ccde){const _0x3a2cad=_0xa3a59c;let _0x56e442=[],_0x4c2059=_0x2fdf60?G(_0x2fdf60):void 0x0,_0x4da6f2=_0x23ccde?G(_0x23ccde):void 0x0;for(let _0x58ccdf of Fe)K(e[_0x3a2cad(0x96)][_0x3a2cad(0xbb)](),[_0x3a2cad(0xe1),_0x58ccdf],_0x4c2059==null?void 0x0:_0x4c2059[_0x58ccdf],_0x4da6f2==null?void 0x0:_0x4da6f2[_0x58ccdf],_0x56e442);return _0x56e442['reduce']((_0x1bc47a,_0x1ebbdf)=>e['JSONX'][_0x3a2cad(0x9f)](_0x1bc47a,_0x1ebbdf),null);}const Fe=['paragraphs',_0xa3a59c(0x8d),'tables',_0xa3a59c(0x6a),'blockRanges',_0xa3a59c(0xa0),_0xa3a59c(0x6c),_0xa3a59c(0xf3),_0xa3a59c(0xfc)];function G(_0x19fe1f){return _0x19fe1f;}function K(_0xdaa515,_0x207690,_0x10f485,_0xc38843,_0x1fd6ee){const _0x53d13c=_0xa3a59c;q(_0x10f485,_0xc38843)||(_0x10f485==null?_0x1fd6ee[_0x53d13c(0x138)](_0xdaa515[_0x53d13c(0xa8)](_0x207690,_0xc38843)):_0xc38843==null?_0x1fd6ee['push'](_0xdaa515[_0x53d13c(0xe6)](_0x207690,_0x10f485)):Array[_0x53d13c(0x120)](_0x10f485)&&Array[_0x53d13c(0x120)](_0xc38843)?Ie(_0xdaa515,_0x207690,_0x10f485,_0xc38843,_0x1fd6ee):Le(_0x10f485)&&Le(_0xc38843)?new Set([...Object[_0x53d13c(0x70)](_0x10f485),...Object[_0x53d13c(0x70)](_0xc38843)])['forEach'](_0x38341c=>{K(_0xdaa515,[..._0x207690,_0x38341c],_0x10f485[_0x38341c],_0xc38843[_0x38341c],_0x1fd6ee);}):_0x1fd6ee[_0x53d13c(0x138)](_0xdaa515[_0x53d13c(0xd3)](_0x207690,_0x10f485,_0xc38843)));}function Ie(_0x1a0dfb,_0x3022c6,_0x38b417,_0x14d228,_0x77ba1a){const _0x142dbe=_0xa3a59c;if(_0x38b417[_0x142dbe(0xd4)]===_0x14d228['length']){_0x38b417[_0x142dbe(0x90)]((_0x229041,_0xa13768)=>K(_0x1a0dfb,[..._0x3022c6,_0xa13768],_0x229041,_0x14d228[_0xa13768],_0x77ba1a));return;}let _0x16fe1d=0x0;for(;_0x16fe1d<_0x38b417['length']&&_0x16fe1d<_0x14d228[_0x142dbe(0xd4)]&&q(_0x38b417[_0x16fe1d],_0x14d228[_0x16fe1d]);)_0x16fe1d++;let _0x11a5c1=_0x38b417[_0x142dbe(0xd4)]-0x1,_0x592917=_0x14d228[_0x142dbe(0xd4)]-0x1;for(;_0x11a5c1>=_0x16fe1d&&_0x592917>=_0x16fe1d&&q(_0x38b417[_0x11a5c1],_0x14d228[_0x592917]);)_0x11a5c1--,_0x592917--;for(let _0x3948b5=_0x11a5c1;_0x3948b5>=_0x16fe1d;_0x3948b5--)_0x77ba1a[_0x142dbe(0x138)](_0x1a0dfb['removeOp']([..._0x3022c6,_0x3948b5],_0x38b417[_0x3948b5]));for(let _0x2e5725=_0x16fe1d;_0x2e5725<=_0x592917;_0x2e5725++)_0x77ba1a[_0x142dbe(0x138)](_0x1a0dfb[_0x142dbe(0xa8)]([..._0x3022c6,_0x2e5725],_0x14d228[_0x2e5725]));}function Le(_0xb0cf2c){const _0x260df2=_0xa3a59c;return typeof _0xb0cf2c==_0x260df2(0x88)&&!!_0xb0cf2c&&!Array[_0x260df2(0x120)](_0xb0cf2c);}function q(_0x540850,_0x52e978){const _0x57435c=_0xa3a59c;return JSON[_0x57435c(0xa4)](_0x540850)===JSON[_0x57435c(0xa4)](_0x52e978);}function J(_0x2e8477,_0x26f5e2,_0x3f9c9b,_0x3c33b8,_0x2b4e34,_0x5e2480,_0x2836e5){const _0x5bd699=_0xa3a59c;let _0xdc98d2=Me(_0x3c33b8,_0x2b4e34);return _0xdc98d2?!!_0x2e8477['syncExecuteCommand'](n[_0x5bd699(0xb9)]['id'],{'unitId':_0x3f9c9b,'actions':_0xdc98d2,'textRanges':[{'startOffset':_0x2836e5,'endOffset':_0x2836e5,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x5e2480}):(_0x26f5e2[_0x5bd699(0xd2)]([{'startOffset':_0x2836e5,'endOffset':_0x2836e5}],{'unitId':_0x3f9c9b,'subUnitId':_0x3f9c9b},!0x1),!0x0);}const Y=_0xa3a59c(0x10b);var Re=_0xa3a59c(0xc7),ze=_0xa3a59c(0xf4);const Be={};function X(_0x455078,_0x3288a1){return function(_0x1b86f8,_0x2da500){_0x3288a1(_0x1b86f8,_0x2da500,_0x455078);};}function Z(_0x57a4b3,_0x31d8d5,_0x264a70,_0x5a1759){const _0x17e7c7=_0xa3a59c;var _0x2ca61a=arguments[_0x17e7c7(0xd4)],_0x2c1b71=_0x2ca61a<0x3?_0x31d8d5:_0x5a1759===null?_0x5a1759=Object[_0x17e7c7(0x6e)](_0x31d8d5,_0x264a70):_0x5a1759,_0xd3d803;if(typeof Reflect==_0x17e7c7(0x88)&&typeof Reflect[_0x17e7c7(0xa7)]==_0x17e7c7(0x12e))_0x2c1b71=Reflect[_0x17e7c7(0xa7)](_0x57a4b3,_0x31d8d5,_0x264a70,_0x5a1759);else{for(var _0x1a3bd1=_0x57a4b3[_0x17e7c7(0xd4)]-0x1;_0x1a3bd1>=0x0;_0x1a3bd1--)(_0xd3d803=_0x57a4b3[_0x1a3bd1])&&(_0x2c1b71=(_0x2ca61a<0x3?_0xd3d803(_0x2c1b71):_0x2ca61a>0x3?_0xd3d803(_0x31d8d5,_0x264a70,_0x2c1b71):_0xd3d803(_0x31d8d5,_0x264a70))||_0x2c1b71);}return _0x2ca61a>0x3&&_0x2c1b71&&Object['defineProperty'](_0x31d8d5,_0x264a70,_0x2c1b71),_0x2c1b71;}let Q=class extends e['Disposable']{constructor(_0x13cb7e,_0x10df34){const _0x4ad89c=_0xa3a59c;super(),this[_0x4ad89c(0x122)]=_0x13cb7e,this[_0x4ad89c(0x11b)]=_0x10df34,this[_0x4ad89c(0x106)]();}[_0xa3a59c(0x106)](){const _0x457167=_0xa3a59c;this[_0x457167(0x119)](this['_resourceManagerService'][_0x457167(0x114)]({'pluginName':Y,'businesses':[e[_0x457167(0xd9)][_0x457167(0x136)]],'toJson':_0x3b7a02=>JSON['stringify'](this['_docsCodeModel']['serialize'](_0x3b7a02)),'parseJson':_0x585089=>o(JSON['parse'](_0x585089)),'onLoad':(_0x3da25b,_0x8bcd86)=>this['_docsCodeModel'][_0x457167(0xcf)](_0x3da25b,_0x8bcd86),'onUnLoad':_0x4d8dab=>this[_0x457167(0x11b)][_0x457167(0x82)](_0x4d8dab)}));}};Q=Z([X(0x0,e[_0xa3a59c(0x121)]),X(0x1,(0x0,e[_0xa3a59c(0x81)])(p))],Q);function _0x17a5(){const _0x26ca16=['endOffset','indentEnd','IConfigService','getContentInsertRange','getParagraphContentStartOffsets','find','symbol','@univerjs-pro/docs-code','getParagraphFollowingBlockOffset','docs-code.command.consume-boundary-delete','7249451NnpCVQ','SECTION_BREAK','DocsCodeCancelEmptyParagraphCommand','complete','slice','deserialize','unitId','add','replaceDocRanges','replaceOp','length','setConfig','_resources','map','paragraphs','UniverInstanceType','filter','TABLE_CELL_END','Document\x20body\x20is\x20required','iterator','editOp','DocsCodeConsumeBoundaryDeleteCommand','startOffset','body','BooleanNumber','DependentOn','containsInteriorInsertionOffset','removeCode','removeOp','getParagraphContentStartOffset','docs-code.command.update','getBlockRangeInterval','convert-paragraph','CODE','TABLE_CELL_START','model','syncExecuteCommand','left','registerCommand','serialize','isHeaderFooterSelection','customDecorations','1.3.0','getBody','IUniverInstanceService','MUTATION','indentStart','reduce','docs-code.command.cancel-empty-paragraph','min','textRuns','TextX','get','codes','default','entries','columns','type','string','docs-code.command.insert-below','_initResource','docs-code.command.exit','endIndex','insert-new','handler','DOC_CODE_PLUGIN','textStyle','_commandService','146PdqqAJ','previousDocumentData','getUnitId','shiftExclusiveRangeOnDelete','shiftInclusiveRangeOnDelete','next','registerPluginResource','BLOCK_START','docs-code.command.unwrap','retain','DataStreamTreeTokenType','disposeWithMe','DocsCodeInsertBelowCommand','_docsCodeModel','commandService','prototype','Module','paragraphStartIndex','isArray','IResourceManagerService','_resourceManagerService','asObservable','getTextRanges','DocumentBlockRangeType','insertLength','toPrimitive','361554CkUSIn','startTokenOffset','8672910kmEIKa','UniverDocsPlugin','paragraph','version','function','deleteLength','getSnapshot','blockId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','javascript','bullet','start','UNIVER_DOC','_configService','push','some','_change$','onStarting','PARAGRAPH','right','normalizeDocsCodeConfig','keepNext','tables','DocsCodeUpdateCommand','spaceBelow','columnGroups','paragraphId','customRanges','dataStream','getOwnPropertyDescriptor','5hKXkOb','keys','config','10038501TamoKb','Disposable','BuildTextUtils','endsWith','nextMetadata','TRUE','_setResource','call','cursorOffset','getCodeConfig','spaceAbove','range','13208xhuwmN','indexOf','shiftExclusiveRangeOnInsert','Inject','removeUnit','Subject','nextDocumentData','delete','docs-code.command.insert','getBodySliceForTextXAction','object','BLOCK_END','docs-code.config','getUnit','docs-code.mutation.remove-config','sectionBreaks','getParagraphsInRange','blockRanges','forEach','widowControl','direction','_injector','max','120827nWoHWy','JSONX','keepLines','set','COMMAND','every','dispose','createParagraphId','CommandType','16zEVWFt','compose','customBlocks','391968kYmvIl','DocSelectionManagerService','from','stringify','12EBzWEu','fromEntries','decorate','insertOp','defineProperty','metadata','Injector','RemoveDocsCodeConfigMutation','sort','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','startIndex','setCodeConfig','blockType','536eEzsAa','paragraphStyle','selectionManager','clear','_config','getSingleDataStreamChange','getCurrentUnitOfType','RichTextEditingMutation','endTokenOffset','getInstance','docs-code.mutation.set-config','ICommandService','DocsCodeModel','documentData'];_0x17a5=function(){return _0x26ca16;};return _0x17a5();}let $=class extends e['Plugin']{constructor(_0x2adb4e=Be,_0x2f01b7,_0x18b72b,_0x55ea1b){const _0x45854a=_0xa3a59c;super(),this[_0x45854a(0xb6)]=_0x2adb4e,this['_injector']=_0x2f01b7,this[_0x45854a(0x10d)]=_0x18b72b,this['_configService']=_0x55ea1b;let {..._0x41efc}=(0x0,e['merge'])({},Be,this[_0x45854a(0xb6)]);this[_0x45854a(0x137)][_0x45854a(0xd5)](_0x45854a(0x8a),_0x41efc);}[_0xa3a59c(0x13b)](){const _0x3b1201=_0xa3a59c;this[_0x3b1201(0x93)][_0x3b1201(0xd1)]([p]),this['_injector']['add']([Q]),this[_0x3b1201(0x93)]['get'](p),this[_0x3b1201(0x93)][_0x3b1201(0xfe)](Q),[R,I,z,B,V,De,H,L,m,h][_0x3b1201(0x90)](_0x2d4515=>this[_0x3b1201(0x119)](this[_0x3b1201(0x10d)][_0x3b1201(0xf0)](_0x2d4515)));}};f($,'pluginName',Y),f($,'packageName',Re),f($,_0xa3a59c(0x12d),ze),f($,_0xa3a59c(0x103),e[_0xa3a59c(0xd9)][_0xa3a59c(0x136)]),$=Z([(0x0,e[_0xa3a59c(0xe3)])(r['UniverLicensePlugin'],n[_0xa3a59c(0x12b)]),X(0x1,(0x0,e['Inject'])(e[_0xa3a59c(0xab)])),X(0x2,e[_0xa3a59c(0xbd)]),X(0x3,e[_0xa3a59c(0xc2)])],$),exports['DOCS_CODE_PLUGIN']=Y,exports[_0xa3a59c(0xcc)]=H,exports[_0xa3a59c(0xdf)]=L,exports[_0xa3a59c(0x11a)]=I,exports['DocsCodeInsertCommand']=R,exports[_0xa3a59c(0xbe)]=p,exports['DocsCodeRemoveCommand']=V,exports['DocsCodeUnwrapCommand']=B,exports[_0xa3a59c(0x68)]=z,exports[_0xa3a59c(0xac)]=h,exports['SetDocsCodeConfigMutation']=m,Object[_0xa3a59c(0xa9)](exports,'UniverDocsCodePlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports['buildCancelEmptyCodeParagraphActions']=y,exports['isCodeBoundaryDelete']=se,exports[_0xa3a59c(0x13e)]=a,exports['normalizeDocsCodeMetadataResource']=o;
1
+ const _0x1dea98=_0x4ac4;(function(_0xce0721,_0x16503b){const _0x3431a4=_0x4ac4,_0x1fc037=_0xce0721();while(!![]){try{const _0x413332=-parseInt(_0x3431a4(0xd2))/0x1+parseInt(_0x3431a4(0xe3))/0x2*(-parseInt(_0x3431a4(0x14b))/0x3)+parseInt(_0x3431a4(0x105))/0x4*(-parseInt(_0x3431a4(0x98))/0x5)+parseInt(_0x3431a4(0x138))/0x6*(-parseInt(_0x3431a4(0x139))/0x7)+-parseInt(_0x3431a4(0x151))/0x8+parseInt(_0x3431a4(0x89))/0x9*(parseInt(_0x3431a4(0x91))/0xa)+parseInt(_0x3431a4(0x137))/0xb*(parseInt(_0x3431a4(0x8f))/0xc);if(_0x413332===_0x16503b)break;else _0x1fc037['push'](_0x1fc037['shift']());}catch(_0x52437e){_0x1fc037['push'](_0x1fc037['shift']());}}}(_0x46c8,0x6dfa3),Object[_0x1dea98(0xe7)](exports,Symbol[_0x1dea98(0x131)],{'value':_0x1dea98(0x8c)}));let e=require('@univerjs/core'),t=require('rxjs'),n=require('@univerjs/docs'),r=require('@univerjs-pro/license');const i={'language':_0x1dea98(0x9f),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function a(_0xa1157d){return{...i,..._0xa1157d};}function o(_0x55aca8){const _0x1f75e9=_0x1dea98;let _0x2fa845=(_0x55aca8==null?void 0x0:_0x55aca8[_0x1f75e9(0x121)])??{};return{'codes':Object['fromEntries'](Object[_0x1f75e9(0x155)](_0x2fa845)[_0x1f75e9(0xbb)](([_0x3da0f8,_0x40cd36])=>[_0x3da0f8,a(_0x40cd36)]))};}function s(_0x4f3872,_0xb9d33a,_0x14e275){const _0x523635=_0x1dea98;let _0x1df141=o(_0x4f3872);return _0x1df141[_0x523635(0x121)][_0xb9d33a]=a({..._0x1df141[_0x523635(0x121)][_0xb9d33a],..._0x14e275}),_0x1df141;}function _0x46c8(){const _0x3905b0=['serialize','6951992PoafqG','pluginName','body','UniverInstanceType','entries','IResourceManagerService','nextMetadata','add','normalizeDocsCodeMetadataResource','DocSelectionManagerService','documentData','next','getCurrentUnitOfType','207rGpjOF','forEach','paragraphStartIndex','Module','startIndex','start','4011804gyXSCd','max','171910OPEYCW','paragraphId','DocsCodeUnwrapCommand','docs-code.mutation.remove-config','default','shiftExclusiveRangeOnDelete','ICommandService','5xYDyhl','config','delete','DocsCodeModel','asObservable','replaceOp','min','javascript','dataStream','startOffset','model','insertOp','isCodeBoundaryDelete','endTokenOffset','BLOCK_START','SECTION_BREAK','left','find','shiftInclusiveRangeOnDelete','getOwnPropertyDescriptor','getUnit','removeCode','columns','IUniverInstanceService','isArray','previousDocumentData','type','version','blockRanges','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','getSingleDataStreamChange','blockType','call','textStyle','DOCS_CODE_PLUGIN','map','TRUE','buildCancelEmptyCodeParagraphActions','convert-paragraph','_config','change$','getBlockRangeInterval','deleteLength','bullet','_docsCodeModel','DOC_CODE_PLUGIN','decorate','every','JSONX','PARAGRAPH','TextX','textRuns','paragraphs','disposeWithMe','DocumentBlockRangeType','unitId','insertLength','getParagraphsInRange','292823xrtARe','indentEnd','DependentOn','endIndex','DocsCodeUpdateCommand','insertionMode','spaceAbove','range','deserialize','docs-code.command.consume-boundary-delete','some','compose','reduce','UniverDocsCodePlugin','BooleanNumber','object','indentStart','106BIQBAt','monospace','metadata','get','defineProperty','FALSE','_configService','DocsCodeCancelEmptyParagraphCommand','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','keys','CODE','getBody','slice','docs-code.command.update','customDecorations','DocsCodeInsertBelowCommand','cursorOffset','getParagraphContentStartOffset','containsInteriorInsertionOffset','DataStreamTreeTokenType','COMMAND','insert-new','endsWith','generateRandomId','getBodySliceForTextXAction','RichTextEditingMutation','complete','editOp','packageName','docs-code.command.insert','startTokenOffset','TABLE_CELL_END','Inject','right','2557652kHWsoB','dispose','constructor','push','Document\x20body\x20is\x20required','customBlocks','UniverDocsPlugin','DocsCodeRemoveCommand','iterator','spaceBelow','@univerjs-pro/docs-code','_resources','_injector','paragraphStyle','keepLines','Subject','BLOCK_END','customRanges','_initResource','docs-code.command.insert-below','getInstance','removeOp','UniverLicensePlugin','sectionBreaks','direction','stringify','SetDocsCodeConfigMutation','nextDocumentData','codes','merge','endOffset','handler','UNIVER_DOC','getParagraphContentStartOffsets','commandService','docs-code.command.remove','1.3.1','TABLE_CELL_START','shiftExclusiveRangeOnInsert','getContentInsertRange','createParagraphId','docs-code.command.unwrap','function','CommandType','toStringTag','syncExecuteCommand','isHeaderFooterSelection','Disposable','symbol','paragraph','88ibZcBR','2746644DmdywM','7mbOAHm','prototype','intersectsOperationalIntervals','from','selectionManager','_setResource','_change$','_resourceManagerService','docs-code.command.exit','getCodeConfig','docs-code.config','blockId','length','getTextRanges','getUnitId','shiftInclusiveRangeOnInsert','clear','sort','20403HsqUZr','columnGroups','tables','filter','RemoveDocsCodeConfigMutation'];_0x46c8=function(){return _0x3905b0;};return _0x46c8();}function c(_0x560832,_0x46970a){const _0x1bc711=_0x1dea98;let _0xaae83e=o(_0x560832);return delete _0xaae83e[_0x1bc711(0x121)][_0x46970a],_0xaae83e;}function l(_0x4dbf60){'@babel/helpers - typeof';const _0x11e4df=_0x1dea98;return l=typeof Symbol==_0x11e4df(0x12f)&&typeof Symbol[_0x11e4df(0x10d)]==_0x11e4df(0x135)?function(_0x3773c2){return typeof _0x3773c2;}:function(_0x3ff4b0){const _0x5e86a0=_0x11e4df;return _0x3ff4b0&&typeof Symbol==_0x5e86a0(0x12f)&&_0x3ff4b0[_0x5e86a0(0x107)]===Symbol&&_0x3ff4b0!==Symbol[_0x5e86a0(0x13a)]?'symbol':typeof _0x3ff4b0;},l(_0x4dbf60);}function u(_0x2936a5,_0x1cfa83){const _0x45ce12=_0x1dea98;if(l(_0x2936a5)!=_0x45ce12(0xe1)||!_0x2936a5)return _0x2936a5;var _0x3e024b=_0x2936a5[Symbol['toPrimitive']];if(_0x3e024b!==void 0x0){var _0x1d3ad7=_0x3e024b[_0x45ce12(0xb8)](_0x2936a5,_0x1cfa83||_0x45ce12(0x95));if(l(_0x1d3ad7)!='object')return _0x1d3ad7;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1cfa83==='string'?String:Number)(_0x2936a5);}function d(_0x2eebd7){var _0x29f7f0=u(_0x2eebd7,'string');return l(_0x29f7f0)=='symbol'?_0x29f7f0:_0x29f7f0+'';}function f(_0x4bf32,_0x2cc437,_0x571cbe){const _0x3ec4e2=_0x1dea98;return(_0x2cc437=d(_0x2cc437))in _0x4bf32?Object[_0x3ec4e2(0xe7)](_0x4bf32,_0x2cc437,{'value':_0x571cbe,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4bf32[_0x2cc437]=_0x571cbe,_0x4bf32;}var p=class extends e[_0x1dea98(0x134)]{constructor(..._0x539c99){const _0x5692a9=_0x1dea98;super(..._0x539c99),f(this,_0x5692a9(0x110),new Map()),f(this,_0x5692a9(0x13f),new t[(_0x5692a9(0x114))]()),f(this,_0x5692a9(0xc0),this['_change$'][_0x5692a9(0x9c)]());}[_0x1dea98(0x142)](_0x48288e,_0x1910bb){const _0x4c628d=_0x1dea98;return o(this['_resources'][_0x4c628d(0xe6)](_0x48288e))[_0x4c628d(0x121)][_0x1910bb];}['setCodeConfig'](_0x4c5db9,_0x4d5b6b,_0xba8c90){const _0x1528da=_0x1dea98;this['_setResource'](_0x4c5db9,_0x4d5b6b,s(this['_resources'][_0x1528da(0xe6)](_0x4c5db9),_0x4d5b6b,_0xba8c90));}['removeCode'](_0xcc1a91,_0xcd48da){const _0xc35400=_0x1dea98;this['_setResource'](_0xcc1a91,_0xcd48da,c(this[_0xc35400(0x110)][_0xc35400(0xe6)](_0xcc1a91),_0xcd48da));}[_0x1dea98(0x150)](_0x12edce){const _0x13389a=_0x1dea98;return o(this[_0x13389a(0x110)][_0x13389a(0xe6)](_0x12edce));}[_0x1dea98(0xda)](_0x1256e3,_0x1e0400){const _0x421d5b=_0x1dea98;this['_resources']['set'](_0x1256e3,o(_0x1e0400)),this[_0x421d5b(0x13f)]['next']({'unitId':_0x1256e3});}['removeUnit'](_0x10e26d){const _0x50bc67=_0x1dea98;this[_0x50bc67(0x110)][_0x50bc67(0x9a)](_0x10e26d),this[_0x50bc67(0x13f)][_0x50bc67(0x87)]({'unitId':_0x10e26d});}[_0x1dea98(0x106)](){const _0x2dd98f=_0x1dea98;super[_0x2dd98f(0x106)](),this[_0x2dd98f(0x110)][_0x2dd98f(0x149)](),this[_0x2dd98f(0x13f)][_0x2dd98f(0xfd)]();}[_0x1dea98(0x13e)](_0x452a28,_0x2e2019,_0x2dea20){const _0x2634c3=_0x1dea98;this[_0x2634c3(0x110)]['set'](_0x452a28,_0x2dea20),this['_change$'][_0x2634c3(0x87)]({'unitId':_0x452a28,'blockId':_0x2e2019});}};const m={'id':'docs-code.mutation.set-config','type':e['CommandType']['MUTATION'],'handler':(_0x35fbe1,_0x35ec4f)=>!(_0x35ec4f!=null&&_0x35ec4f[_0x1dea98(0xcf)])||!_0x35ec4f['blockId']?!0x1:(_0x35fbe1[_0x1dea98(0xe6)](p)['setCodeConfig'](_0x35ec4f[_0x1dea98(0xcf)],_0x35ec4f[_0x1dea98(0x144)],_0x35ec4f[_0x1dea98(0x99)]),!0x0)},h={'id':_0x1dea98(0x94),'type':e['CommandType']['MUTATION'],'handler':(_0xeb7950,_0x5bb281)=>!(_0x5bb281!=null&&_0x5bb281[_0x1dea98(0xcf)])||!_0x5bb281['blockId']?!0x1:(_0xeb7950['get'](p)[_0x1dea98(0xad)](_0x5bb281[_0x1dea98(0xcf)],_0x5bb281[_0x1dea98(0x144)]),!0x0)},g=_0x1dea98(0xe4);var _=class extends Error{constructor(_0x3d2a5d=_0x1dea98(0xeb)){super(_0x3d2a5d);}};function ee(_0x2cbb77){const _0x3fffbe=_0x1dea98;var _0x10d172;let _0xc5c1ac=S(_0x2cbb77['documentData']),_0x53389f=w(_0xc5c1ac),_0x179ee5=ne(_0x2cbb77['startOffset'],_0x2cbb77[_0x3fffbe(0x123)]),_0x26b45c=_0x179ee5?(_0x10d172=_0x53389f['blockRanges'])==null?void 0x0:_0x10d172[_0x3fffbe(0xa9)](_0x5e9582=>{const _0x56b1d5=_0x3fffbe;let _0x56867e=(0x0,e[_0x56b1d5(0xc1)])(_0x5e9582);return _0x56867e[_0x56b1d5(0xa1)]===_0x179ee5[_0x56b1d5(0xa1)]&&_0x56867e[_0x56b1d5(0x123)]===_0x179ee5[_0x56b1d5(0x123)];}):void 0x0,{startOffset:_0x220dcd,endOffset:_0x194b40}=_0x26b45c?_0x179ee5:me(_0x53389f,_0x2cbb77[_0x3fffbe(0xa1)],_0x2cbb77[_0x3fffbe(0x123)],_0x2cbb77['insertionMode']);if(!_0x26b45c&&re(_0x53389f,_0x220dcd,_0x194b40))throw new _(_0x3fffbe(0xb5));let _0x22d94e=_e(_0x53389f,_0x220dcd,_0x194b40),_0x2db1b2=(_0x26b45c==null?void 0x0:_0x26b45c[_0x3fffbe(0x144)])??_0x2cbb77['blockId'],_0x2dd9be=s(_0x2cbb77[_0x3fffbe(0xe5)],_0x2db1b2,{...i,..._0x2cbb77['config']});if(_0x26b45c)return _0x26b45c[_0x3fffbe(0xb7)]=e[_0x3fffbe(0xce)][_0x3fffbe(0xed)],te(_0x53389f,_0x220dcd,_0x194b40),le(_0x53389f,_0x220dcd,_0x194b40,_0x22d94e),O(_0x53389f,_0x26b45c),{'nextDocumentData':_0xc5c1ac,'nextMetadata':_0x2dd9be,'cursorOffset':_0x220dcd+0x1};if(_0x220dcd===_0x194b40){var _0x395e20,_0x19a284;let _0x1f4065=''+e[_0x3fffbe(0xf6)]['BLOCK_START']+e[_0x3fffbe(0xf6)]['PARAGRAPH']+e['DataStreamTreeTokenType'][_0x3fffbe(0x115)];k(_0x53389f,_0x220dcd,_0x1f4065,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e['createParagraphId'])(new Set((_0x395e20=_0x53389f['paragraphs'])==null?void 0x0:_0x395e20[_0x3fffbe(0xbb)](_0x3ce9da=>_0x3ce9da[_0x3fffbe(0x92)]))),'paragraphStyle':x(!0x0,!0x0,_0x22d94e)}],'blockRanges':[{'blockId':_0x2db1b2,'blockType':e[_0x3fffbe(0xce)][_0x3fffbe(0xed)],'startIndex':0x0,'endIndex':_0x1f4065[_0x3fffbe(0x145)]-0x1}]});let _0x40b12e=(_0x19a284=_0x53389f[_0x3fffbe(0xb4)])==null?void 0x0:_0x19a284[_0x3fffbe(0xa9)](_0x25eb6c=>_0x25eb6c[_0x3fffbe(0x144)]===_0x2db1b2);return _0x40b12e&&O(_0x53389f,_0x40b12e),{'nextDocumentData':_0xc5c1ac,'nextMetadata':_0x2dd9be,'cursorOffset':_0x220dcd+0x1};}k(_0x53389f,_0x194b40,e['DataStreamTreeTokenType'][_0x3fffbe(0x115)]),k(_0x53389f,_0x220dcd,e[_0x3fffbe(0xf6)][_0x3fffbe(0xa6)]),le(_0x53389f,_0x220dcd,_0x194b40+0x1,_0x22d94e);let _0x493398={'blockId':_0x2db1b2,'blockType':e['DocumentBlockRangeType'][_0x3fffbe(0xed)],'startIndex':_0x220dcd,'endIndex':_0x194b40+0x1};return _0x53389f[_0x3fffbe(0xb4)]=[..._0x53389f[_0x3fffbe(0xb4)]??[],_0x493398][_0x3fffbe(0x14a)]((_0x2ddfdc,_0x1d6347)=>_0x2ddfdc['startIndex']-_0x1d6347[_0x3fffbe(0x8d)]),O(_0x53389f,_0x493398),{'nextDocumentData':_0xc5c1ac,'nextMetadata':_0x2dd9be,'cursorOffset':_0x220dcd+0x1};}function te(_0x7eb0c8,_0x28a181,_0x2b994b){const _0x124b15=_0x1dea98;(_0x7eb0c8[_0x124b15(0xcc)]??[])[_0x124b15(0x14e)](_0x3647ed=>_0x3647ed['startIndex']>_0x28a181&&_0x3647ed[_0x124b15(0x8d)]<_0x2b994b)[_0x124b15(0x8a)](_0x19c78a=>{const _0x542fa7=_0x124b15;let _0x5f4ce9={..._0x19c78a[_0x542fa7(0x112)]??{}};delete _0x5f4ce9[_0x542fa7(0xd8)],delete _0x5f4ce9[_0x542fa7(0x10e)],_0x19c78a['paragraphStyle']=_0x5f4ce9;});}function ne(_0x3b37dd,_0x271fe2){return _0x3b37dd==null||_0x271fe2==null||_0x3b37dd===_0x271fe2?null:{'startOffset':Math['min'](_0x3b37dd,_0x271fe2),'endOffset':Math['max'](_0x3b37dd,_0x271fe2)};}function re(_0x14ef05,_0xcc990d,_0x5ba61b){const _0x32ed16=_0x1dea98;return(_0x14ef05[_0x32ed16(0xb4)]??[])[_0x32ed16(0xdc)](_0x8fc580=>{const _0x571070=_0x32ed16;let _0x47933c=(0x0,e[_0x571070(0xc1)])(_0x8fc580);return _0xcc990d===_0x5ba61b?(0x0,e[_0x571070(0xf5)])(_0x47933c,_0xcc990d):(0x0,e[_0x571070(0x13b)])(_0x47933c,{'startOffset':_0xcc990d,'endOffset':_0x5ba61b});});}function ie(_0x636d16){const _0x2d5a51=_0x1dea98;return{'nextDocumentData':S(_0x636d16['documentData']),'nextMetadata':s(_0x636d16[_0x2d5a51(0xe5)],_0x636d16[_0x2d5a51(0x144)],_0x636d16['config']),'cursorOffset':0x0};}function v(_0x1c61fc){const _0x31c90b=_0x1dea98;let _0x3442e3=S(_0x1c61fc[_0x31c90b(0x86)]),_0x2d51a0=w(_0x3442e3),_0x50773b=b(_0x2d51a0,_0x1c61fc[_0x31c90b(0x144)]);if(!_0x50773b)return null;let _0x1653ee=fe(_0x2d51a0,_0x50773b);return{'nextDocumentData':_0x3442e3,'nextMetadata':c(_0x1c61fc[_0x31c90b(0xe5)],_0x1c61fc[_0x31c90b(0x144)]),'cursorOffset':_0x1653ee};}function ae(_0x240fc9){const _0x5d3a73=_0x1dea98;var _0x31771d;let _0x3844ad=S(_0x240fc9[_0x5d3a73(0x86)]),_0x5269e4=w(_0x3844ad),_0x4f73fc=b(_0x5269e4,_0x240fc9[_0x5d3a73(0x144)]);if(!_0x4f73fc)return null;let _0x227fd2=(0x0,e[_0x5d3a73(0xc1)])(_0x4f73fc);return A(_0x5269e4,_0x227fd2[_0x5d3a73(0xa1)],_0x227fd2['endOffset']),_0x5269e4['blockRanges']=(_0x31771d=_0x5269e4[_0x5d3a73(0xb4)])==null?void 0x0:_0x31771d[_0x5d3a73(0x14e)](_0x4590b8=>_0x4590b8['blockId']!==_0x240fc9[_0x5d3a73(0x144)]),{'nextDocumentData':_0x3844ad,'nextMetadata':c(_0x240fc9[_0x5d3a73(0xe5)],_0x240fc9['blockId']),'cursorOffset':_0x4f73fc[_0x5d3a73(0x8d)]};}function y(_0x5bf3ac){const _0x5bab4b=_0x1dea98;let _0x544dec=S(_0x5bf3ac[_0x5bab4b(0x86)]),_0x53925e=w(_0x544dec),_0x5f4373=ce(_0x53925e,_0x5bf3ac[_0x5bab4b(0xf3)]);return _0x5f4373&&oe(_0x544dec,_0x53925e,_0x5f4373,_0x5bf3ac[_0x5bab4b(0xf3)],_0x5bf3ac[_0x5bab4b(0x8b)])||null;}function oe(_0xd27b4f,_0xcea8da,_0x36ad7f,_0x338844,_0x47f4ce){const _0x39e808=_0x1dea98;let _0x37994f=Se(_0xcea8da,_0x36ad7f,_0x338844,_0x47f4ce);if(!_0x37994f)return null;let _0x479202=_0x37994f[_0x39e808(0xa5)]-0x1;return A(_0xcea8da,_0x37994f[_0x39e808(0x136)][_0x39e808(0x8d)],_0x37994f[_0x39e808(0x136)][_0x39e808(0x8d)]+0x1),{'nextDocumentData':_0xd27b4f,'cursorOffset':_0x479202};}function b(_0x4a3d41,_0x1b5b1a){const _0x5ee141=_0x1dea98;var _0x46328c;return _0x4a3d41==null||(_0x46328c=_0x4a3d41[_0x5ee141(0xb4)])==null?void 0x0:_0x46328c[_0x5ee141(0xa9)](_0x1b69ba=>_0x1b69ba[_0x5ee141(0xb7)]===e['DocumentBlockRangeType']['CODE']&&_0x1b69ba['blockId']===_0x1b5b1a);}function se(_0x52413c){const _0x407e3b=_0x1dea98;let _0x1670a3=_0x52413c[_0x407e3b(0x86)]['body'];if(!_0x1670a3)return!0x1;let _0x409a89=_0x52413c[_0x407e3b(0x11d)]===_0x407e3b(0xa8)?_0x52413c[_0x407e3b(0xf3)]-0x1:_0x52413c[_0x407e3b(0xf3)],_0x4e45d9=_0x52413c[_0x407e3b(0x11d)]===_0x407e3b(0x104)?_0x52413c['cursorOffset']+0x1:_0x409a89;return(_0x1670a3[_0x407e3b(0xb4)]??[])[_0x407e3b(0xdc)](_0x37c275=>_0x37c275[_0x407e3b(0xb7)]===e[_0x407e3b(0xce)]['CODE']?_0x409a89===_0x37c275['startIndex']||_0x409a89===_0x37c275[_0x407e3b(0xd5)]||_0x4e45d9===_0x37c275[_0x407e3b(0x8d)]||_0x4e45d9===_0x37c275[_0x407e3b(0xd5)]:!0x1);}function ce(_0xcecb4f,_0xf7ec45){const _0x54bf62=_0x1dea98;var _0x517a7a;return(_0x517a7a=_0xcecb4f[_0x54bf62(0xb4)])==null?void 0x0:_0x517a7a[_0x54bf62(0xa9)](_0x210403=>{const _0x2fb601=_0x54bf62;let _0x1b7aa1=D(_0x210403);return _0x210403[_0x2fb601(0xb7)]===e[_0x2fb601(0xce)][_0x2fb601(0xed)]&&_0x210403[_0x2fb601(0x8d)]<=_0xf7ec45&&_0xf7ec45<=_0x1b7aa1+0x2;});}function x(_0x3c5eb0,_0x4edda7,_0x208db5=!0x1){const _0x5be0f5=_0x1dea98;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':e[_0x5be0f5(0xe0)][_0x5be0f5(0xbc)],'keepNext':_0x4edda7?e['BooleanNumber'][_0x5be0f5(0xe8)]:e[_0x5be0f5(0xe0)][_0x5be0f5(0xbc)],'widowControl':e[_0x5be0f5(0xe0)][_0x5be0f5(0xbc)],..._0x3c5eb0&&_0x208db5?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':g,'fs':0xc}};}function le(_0xeda84f,_0x50abfb,_0x5b9360,_0x10ceb0=!0x1){const _0x8e448e=_0x1dea98;let _0xf6d722=(_0xeda84f[_0x8e448e(0xcc)]??[])['filter'](_0x5c4227=>_0x5c4227[_0x8e448e(0x8d)]>_0x50abfb&&_0x5c4227[_0x8e448e(0x8d)]<_0x5b9360);_0xf6d722[_0x8e448e(0x8a)]((_0x5a8b47,_0x1f9c9b)=>{const _0x1d6303=_0x8e448e;_0x5a8b47['paragraphStyle']={..._0x5a8b47[_0x1d6303(0x112)]??{},...x(_0x1f9c9b===0x0,_0x1f9c9b===_0xf6d722['length']-0x1,_0x10ceb0)};});}function ue(_0x3d1d32){const _0x5c7507=_0x1dea98;var _0x586e07,_0x46da4b;let _0x1f2824={..._0x3d1d32??{}};return delete _0x1f2824[_0x5c7507(0xd3)],delete _0x1f2824[_0x5c7507(0xe2)],delete _0x1f2824[_0x5c7507(0xd8)],delete _0x1f2824[_0x5c7507(0x10e)],delete _0x1f2824[_0x5c7507(0x113)],delete _0x1f2824['keepNext'],delete _0x1f2824['widowControl'],((_0x586e07=_0x1f2824[_0x5c7507(0xb9)])==null?void 0x0:_0x586e07['ff'])===g&&((_0x46da4b=_0x1f2824['textStyle'])==null?void 0x0:_0x46da4b['fs'])===0xc&&delete _0x1f2824[_0x5c7507(0xb9)],_0x1f2824;}function de(_0x132af9,_0x1820bb){const _0x58fa7c=_0x1dea98;let _0x17000f=D(_0x1820bb);return(_0x132af9['paragraphs']??[])[_0x58fa7c(0x14e)](_0x251b5d=>_0x251b5d[_0x58fa7c(0x8d)]>_0x1820bb[_0x58fa7c(0x8d)]&&_0x251b5d[_0x58fa7c(0x8d)]<_0x17000f);}function _0x4ac4(_0x136bd8,_0x10a033){_0x136bd8=_0x136bd8-0x83;const _0x46c807=_0x46c8();let _0x4ac4ba=_0x46c807[_0x136bd8];return _0x4ac4ba;}function fe(_0x78ccf9,_0x398599){const _0x5770f1=_0x1dea98;var _0xd5457f;let _0x2d6eae=D(_0x398599);return de(_0x78ccf9,_0x398599)[_0x5770f1(0x8a)](_0x461594=>{const _0x182300=_0x5770f1;_0x461594['paragraphStyle']=ue(_0x461594[_0x182300(0x112)]);}),A(_0x78ccf9,_0x2d6eae,_0x2d6eae+0x1),A(_0x78ccf9,_0x398599[_0x5770f1(0x8d)],_0x398599[_0x5770f1(0x8d)]+0x1),_0x78ccf9[_0x5770f1(0xb4)]=(_0xd5457f=_0x78ccf9[_0x5770f1(0xb4)])==null?void 0x0:_0xd5457f['filter'](_0x5784a0=>_0x5784a0[_0x5770f1(0x144)]!==_0x398599['blockId']),_0x398599[_0x5770f1(0x8d)];}function S(_0x4ec141){const _0xcb3e77=_0x1dea98;return{..._0x4ec141,'body':_0x4ec141['body']?pe(_0x4ec141[_0xcb3e77(0x153)]):_0x4ec141['body']};}function pe(_0x335709){const _0x3747cd=_0x1dea98;var _0x5503d2,_0x48bf09,_0x3e9ce0,_0x273726,_0x1313ac,_0x53fe60,_0x1bb9a4,_0x38843,_0x1a786e;return{..._0x335709,'paragraphs':(_0x5503d2=_0x335709[_0x3747cd(0xcc)])==null?void 0x0:_0x5503d2[_0x3747cd(0xbb)](_0x42e784=>({..._0x42e784,'bullet':C(_0x42e784[_0x3747cd(0xc3)]),'paragraphStyle':C(_0x42e784[_0x3747cd(0x112)])})),'sectionBreaks':(_0x48bf09=_0x335709[_0x3747cd(0x11c)])==null?void 0x0:_0x48bf09[_0x3747cd(0xbb)](_0x5e1076=>({..._0x5e1076})),'textRuns':(_0x3e9ce0=_0x335709[_0x3747cd(0xcb)])==null?void 0x0:_0x3e9ce0['map'](_0x1fa9fe=>({..._0x1fa9fe})),'tables':(_0x273726=_0x335709[_0x3747cd(0x14d)])==null?void 0x0:_0x273726[_0x3747cd(0xbb)](_0x500149=>({..._0x500149})),'columnGroups':(_0x1313ac=_0x335709[_0x3747cd(0x14c)])==null?void 0x0:_0x1313ac['map'](_0xe30d84=>{const _0x1fffdd=_0x3747cd;var _0x432062;return{..._0xe30d84,'columns':(_0x432062=_0xe30d84[_0x1fffdd(0xae)])==null?void 0x0:_0x432062[_0x1fffdd(0xbb)](_0x3914a8=>C(_0x3914a8))};}),'blockRanges':(_0x53fe60=_0x335709[_0x3747cd(0xb4)])==null?void 0x0:_0x53fe60['map'](_0x10d158=>({..._0x10d158})),'customRanges':(_0x1bb9a4=_0x335709[_0x3747cd(0x116)])==null?void 0x0:_0x1bb9a4['map'](_0x1678e8=>({..._0x1678e8})),'customDecorations':(_0x38843=_0x335709[_0x3747cd(0xf1)])==null?void 0x0:_0x38843[_0x3747cd(0xbb)](_0x1e95c6=>({..._0x1e95c6})),'customBlocks':(_0x1a786e=_0x335709[_0x3747cd(0x10a)])==null?void 0x0:_0x1a786e[_0x3747cd(0xbb)](_0x384b56=>({..._0x384b56}))};}function C(_0xa450d4){const _0x44cd2d=_0x1dea98;return Array['isArray'](_0xa450d4)?_0xa450d4[_0x44cd2d(0xbb)](_0x1c3194=>C(_0x1c3194)):!_0xa450d4||typeof _0xa450d4!=_0x44cd2d(0xe1)?_0xa450d4:Object['fromEntries'](Object[_0x44cd2d(0x155)](_0xa450d4)[_0x44cd2d(0xbb)](([_0x269997,_0x4414ad])=>[_0x269997,C(_0x4414ad)]));}function w(_0x3dd18a){const _0x30687a=_0x1dea98;if(!_0x3dd18a['body'])throw Error(_0x30687a(0x109));return _0x3dd18a['body'];}function me(_0x3a1d46,_0x2f06c2,_0x1577fd,_0x500c5d=_0x1dea98(0xbe)){const _0x4034cc=_0x1dea98;if(_0x2f06c2==null||_0x1577fd==null){let _0x4e1840=ge(_0x3a1d46);return{'startOffset':_0x4e1840,'endOffset':_0x4e1840};}let _0x3ea3aa=Math[_0x4034cc(0x9e)](_0x2f06c2,_0x1577fd),_0x5320e2=Math['max'](_0x2f06c2,_0x1577fd),_0x52eceb=xe(_0x3a1d46,_0x3ea3aa,_0x5320e2);return _0x3ea3aa===_0x5320e2?_0x500c5d==='insert-new'?{'startOffset':_0x3ea3aa,'endOffset':_0x5320e2}:he(_0x3a1d46,_0x3ea3aa,_0x52eceb):ve(_0x3a1d46,_0x3ea3aa,_0x5320e2,_0x52eceb);}function he(_0x2de652,_0x2f96d1,_0x272dc1){const _0x2e1974=_0x1dea98;let _0x523c2a=ye(_0x2de652,_0x2f96d1);if(_0x523c2a){let _0x489adf=T(_0x2de652,_0x523c2a,_0x272dc1);if(_0x489adf<_0x523c2a[_0x2e1974(0x8d)])return{'startOffset':_0x489adf,'endOffset':_0x272dc1?Math['min'](_0x523c2a[_0x2e1974(0x8d)]+0x1,_0x272dc1[_0x2e1974(0x123)]):_0x523c2a[_0x2e1974(0x8d)]+0x1};}let _0x45d773=_0x2f96d1===0x0&&_0x2de652['dataStream'][0x0]===e[_0x2e1974(0xf6)][_0x2e1974(0xc9)]?0x1:_0x2f96d1;return{'startOffset':_0x45d773,'endOffset':_0x45d773};}function ge(_0x44a51d){const _0x1ff5db=_0x1dea98;return _0x44a51d[_0x1ff5db(0xa0)][_0x1ff5db(0xf9)](e[_0x1ff5db(0xf6)][_0x1ff5db(0xa7)])?Math['max'](0x0,_0x44a51d['dataStream'][_0x1ff5db(0x145)]-0x1):_0x44a51d['dataStream'][_0x1ff5db(0x145)];}function _e(_0x578ddc,_0x3cda36,_0x23ee68){const _0x2f1155=_0x1dea98;var _0x32821c;let _0x2ff037=Math[_0x2f1155(0x9e)](_0x3cda36,_0x23ee68),_0x28c50b=Math[_0x2f1155(0x90)](_0x3cda36,_0x23ee68);return!!((_0x32821c=_0x578ddc[_0x2f1155(0x14d)])!=null&&_0x32821c[_0x2f1155(0xdc)](_0x1dc9e6=>_0x2ff037>_0x1dc9e6[_0x2f1155(0x8d)]&&_0x2ff037<_0x1dc9e6[_0x2f1155(0xd5)]||_0x28c50b>_0x1dc9e6[_0x2f1155(0x8d)]&&_0x28c50b<_0x1dc9e6[_0x2f1155(0xd5)]||_0x2ff037<=_0x1dc9e6[_0x2f1155(0x8d)]&&_0x28c50b>=_0x1dc9e6[_0x2f1155(0xd5)]));}function ve(_0x49d485,_0x54bf49,_0x4c12eb,_0x4eae54){const _0x1f3880=_0x1dea98;let _0x41b4e9=[..._0x49d485[_0x1f3880(0xcc)]??[]][_0x1f3880(0x14a)]((_0x36c341,_0x41293b)=>_0x36c341[_0x1f3880(0x8d)]-_0x41293b['startIndex']),_0x345e6f=(0x0,e[_0x1f3880(0x126)])(_0x49d485),_0x431ff6=_0x41b4e9[_0x1f3880(0xa9)](_0x591755=>T(_0x49d485,_0x591755,_0x4eae54,_0x345e6f)<=_0x54bf49&&_0x54bf49<=_0x591755[_0x1f3880(0x8d)]),_0x45b3b5=_0x41b4e9[_0x1f3880(0xa9)](_0x4bb78b=>_0x4bb78b['startIndex']>=_0x4c12eb-0x1)??_0x41b4e9[_0x41b4e9[_0x1f3880(0x145)]-0x1];return{'startOffset':_0x431ff6?T(_0x49d485,_0x431ff6,_0x4eae54,_0x345e6f):_0x54bf49,'endOffset':_0x45b3b5?be(_0x45b3b5,_0x4eae54):_0x4c12eb};}function ye(_0x34eaa4,_0x1c8793){const _0x50e38b=_0x1dea98;let _0x1f4686=[..._0x34eaa4['paragraphs']??[]]['sort']((_0x279e02,_0x2be987)=>_0x279e02[_0x50e38b(0x8d)]-_0x2be987[_0x50e38b(0x8d)]),_0x53ef0c=(0x0,e[_0x50e38b(0x126)])(_0x34eaa4);return _0x1f4686['find'](_0x68fb77=>(_0x53ef0c[_0x50e38b(0xe6)](_0x68fb77['startIndex'])??0x0)<=_0x1c8793&&_0x1c8793<=_0x68fb77[_0x50e38b(0x8d)]);}function T(_0x398c24,_0x583904,_0x5680d0,_0x2c16d8){const _0x316ed1=_0x1dea98;let _0x21d200=(_0x2c16d8==null?void 0x0:_0x2c16d8[_0x316ed1(0xe6)](_0x583904['startIndex']))??(0x0,e[_0x316ed1(0xf4)])(_0x398c24,_0x583904);return _0x5680d0?Math[_0x316ed1(0x90)](_0x21d200,_0x5680d0[_0x316ed1(0xa1)]):_0x21d200;}function be(_0x44cff8,_0x29f540){const _0x17325f=_0x1dea98;let _0x5265f3=_0x44cff8['startIndex']+0x1;return _0x29f540?Math['min'](_0x5265f3,_0x29f540[_0x17325f(0x123)]):_0x5265f3;}function xe(_0x267206,_0x238a26,_0x5bb8bf){const _0x15cbbd=_0x1dea98;let _0xd838ef=E(_0x267206,_0x238a26),_0x12da20=E(_0x267206,_0x238a26===_0x5bb8bf?_0x5bb8bf:Math[_0x15cbbd(0x90)](_0x238a26,_0x5bb8bf-0x1));if(_0xd838ef||_0x12da20){if(!_0xd838ef||!_0x12da20||_0xd838ef[_0x15cbbd(0x101)]!==_0x12da20['startTokenOffset']||_0xd838ef[_0x15cbbd(0xa5)]!==_0x12da20[_0x15cbbd(0xa5)])throw new _();return _0xd838ef;}}function E(_0x3f4b0c,_0x6d9d53){const _0x352c2b=_0x1dea98;let _0x13f54e=_0x3f4b0c[_0x352c2b(0xa0)],_0x4e34c9=-0x1;for(let _0x1f7704=Math[_0x352c2b(0x9e)](_0x6d9d53,_0x13f54e[_0x352c2b(0x145)]-0x1);_0x1f7704>=0x0;_0x1f7704--){let _0x446632=_0x13f54e[_0x1f7704];if(_0x446632===e[_0x352c2b(0xf6)][_0x352c2b(0x102)])return;if(_0x446632===e[_0x352c2b(0xf6)][_0x352c2b(0x12a)]){_0x4e34c9=_0x1f7704;break;}}if(_0x4e34c9<0x0)return;let _0x174475=_0x13f54e['indexOf'](e[_0x352c2b(0xf6)]['TABLE_CELL_END'],_0x4e34c9+0x1);if(!(_0x174475<0x0||_0x6d9d53<_0x4e34c9+0x1||_0x6d9d53>_0x174475-0x1))return{'startOffset':_0x4e34c9+0x1,'endOffset':Math[_0x352c2b(0x90)](_0x4e34c9+0x1,_0x174475-0x1),'startTokenOffset':_0x4e34c9,'endTokenOffset':_0x174475};}function D(_0x236194){const _0xeee514=_0x1dea98;return(0x0,e['getBlockRangeInterval'])(_0x236194)[_0xeee514(0x123)]-0x1;}function Se(_0x591c3a,_0x45700c,_0x5a6cec,_0x54a65f){const _0x4a233f=_0x1dea98;let _0x358abd=D(_0x45700c),_0x28be20=(_0x591c3a[_0x4a233f(0xcc)]??[])['find'](_0x142a7e=>_0x142a7e['startIndex']===_0x358abd+0x1);if(!_0x28be20||_0x54a65f!=null&&_0x28be20[_0x4a233f(0x8d)]!==_0x54a65f||_0x5a6cec!=null&&(_0x5a6cec<_0x358abd||_0x5a6cec>_0x28be20[_0x4a233f(0x8d)]+0x1)||_0x591c3a['dataStream'][_0x28be20[_0x4a233f(0x8d)]]!==e[_0x4a233f(0xf6)][_0x4a233f(0xc9)])return null;let _0x37408e=(0x0,e[_0x4a233f(0xf4)])(_0x591c3a,_0x28be20),_0x4cd690=_0x591c3a[_0x4a233f(0xa0)][_0x4a233f(0xef)](_0x37408e,_0x28be20[_0x4a233f(0x8d)]);return Array[_0x4a233f(0x13c)](_0x4cd690)[_0x4a233f(0xc7)](_0x5945c2=>_0x5945c2===e['DataStreamTreeTokenType']['BLOCK_END'])?{'paragraph':_0x28be20,'endTokenOffset':_0x358abd}:null;}function O(_0x42beda,_0xd76eab){const _0x376d5b=_0x1dea98;var _0x11d5af;let _0x570928=D(_0xd76eab),_0x17a6c7=_0x42beda[_0x376d5b(0xa0)][_0x570928+0x1];(_0x17a6c7===e['DataStreamTreeTokenType'][_0x376d5b(0xa7)]||_0x17a6c7===void 0x0)&&k(_0x42beda,_0x570928+0x1,e[_0x376d5b(0xf6)]['PARAGRAPH'],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,e[_0x376d5b(0x12d)])(new Set((_0x11d5af=_0x42beda[_0x376d5b(0xcc)])==null?void 0x0:_0x11d5af[_0x376d5b(0xbb)](_0x26a8a9=>_0x26a8a9['paragraphId'])))}]});}function k(_0x12e7b6,_0x51148a,_0x4c5bad,_0x180dd5={}){const _0x182e76=_0x1dea98;var _0x209aa5,_0x4d54e6;_0x4c5bad&&(_0x12e7b6['dataStream']=''+_0x12e7b6[_0x182e76(0xa0)][_0x182e76(0xef)](0x0,_0x51148a)+_0x4c5bad+_0x12e7b6[_0x182e76(0xa0)]['slice'](_0x51148a),Ce(_0x12e7b6,_0x51148a,_0x4c5bad[_0x182e76(0x145)]),(_0x209aa5=_0x180dd5['paragraphs'])!=null&&_0x209aa5['length']&&(_0x12e7b6[_0x182e76(0xcc)]=[..._0x12e7b6['paragraphs']??[],..._0x180dd5[_0x182e76(0xcc)][_0x182e76(0xbb)](_0xb8507=>({..._0xb8507,'startIndex':_0xb8507[_0x182e76(0x8d)]+_0x51148a}))]['sort']((_0x44dfef,_0x2ff4d4)=>_0x44dfef['startIndex']-_0x2ff4d4['startIndex'])),(_0x4d54e6=_0x180dd5[_0x182e76(0xb4)])!=null&&_0x4d54e6[_0x182e76(0x145)]&&(_0x12e7b6[_0x182e76(0xb4)]=[..._0x12e7b6[_0x182e76(0xb4)]??[],..._0x180dd5['blockRanges']['map'](_0x5c07fa=>({..._0x5c07fa,'startIndex':_0x5c07fa[_0x182e76(0x8d)]+_0x51148a,'endIndex':_0x5c07fa[_0x182e76(0xd5)]+_0x51148a}))]['sort']((_0x3797ed,_0x41e4f6)=>_0x3797ed[_0x182e76(0x8d)]-_0x41e4f6['startIndex'])));}function A(_0x63125f,_0x23cdb1,_0x3db8ae){const _0x2f456a=_0x1dea98;let _0x19eef4=_0x3db8ae-_0x23cdb1;_0x63125f['dataStream']=''+_0x63125f['dataStream']['slice'](0x0,_0x23cdb1)+_0x63125f[_0x2f456a(0xa0)][_0x2f456a(0xef)](_0x3db8ae),we(_0x63125f,_0x23cdb1,_0x19eef4);}function Ce(_0x218e1f,_0x464d38,_0x451e74){const _0x32ed9f=_0x1dea98;_0x218e1f['paragraphs']=j(_0x218e1f[_0x32ed9f(0xcc)],_0x464d38,_0x451e74),_0x218e1f[_0x32ed9f(0x11c)]=j(_0x218e1f['sectionBreaks'],_0x464d38,_0x451e74),_0x218e1f[_0x32ed9f(0x10a)]=j(_0x218e1f[_0x32ed9f(0x10a)],_0x464d38,_0x451e74),_0x218e1f[_0x32ed9f(0xcb)]=Te(_0x218e1f[_0x32ed9f(0xcb)],_0x464d38,_0x451e74),_0x218e1f[_0x32ed9f(0x14d)]=Ee(_0x218e1f[_0x32ed9f(0x14d)],_0x464d38,_0x451e74),_0x218e1f[_0x32ed9f(0x14c)]=N(_0x218e1f['columnGroups'],_0x464d38,_0x451e74),_0x218e1f[_0x32ed9f(0x116)]=N(_0x218e1f[_0x32ed9f(0x116)],_0x464d38,_0x451e74),_0x218e1f['customDecorations']=N(_0x218e1f['customDecorations'],_0x464d38,_0x451e74),_0x218e1f[_0x32ed9f(0xb4)]=N(_0x218e1f[_0x32ed9f(0xb4)],_0x464d38,_0x451e74);}function we(_0x38770f,_0x319428,_0x198a28){const _0x21e3ea=_0x1dea98;var _0x5c261a,_0x1f6af0;_0x38770f[_0x21e3ea(0xcc)]=M(_0x38770f['paragraphs'],_0x319428,_0x198a28),_0x38770f[_0x21e3ea(0x11c)]=M(_0x38770f[_0x21e3ea(0x11c)],_0x319428,_0x198a28),_0x38770f[_0x21e3ea(0x10a)]=M(_0x38770f[_0x21e3ea(0x10a)],_0x319428,_0x198a28),_0x38770f[_0x21e3ea(0xcb)]=(_0x5c261a=F((_0x1f6af0=_0x38770f['textRuns'])==null?void 0x0:_0x1f6af0[_0x21e3ea(0xbb)](_0x274857=>({..._0x274857,'startIndex':_0x274857['st'],'endIndex':_0x274857['ed']})),_0x319428,_0x198a28))==null?void 0x0:_0x5c261a[_0x21e3ea(0xbb)](_0x48af20=>{let {startIndex:_0x8b773f,endIndex:_0x1b5dc0,..._0x3a2693}=_0x48af20;return{..._0x3a2693,'st':_0x8b773f,'ed':_0x1b5dc0};}),_0x38770f['tables']=F(_0x38770f[_0x21e3ea(0x14d)],_0x319428,_0x198a28),_0x38770f[_0x21e3ea(0x14c)]=P(_0x38770f[_0x21e3ea(0x14c)],_0x319428,_0x198a28),_0x38770f[_0x21e3ea(0x116)]=P(_0x38770f[_0x21e3ea(0x116)],_0x319428,_0x198a28),_0x38770f[_0x21e3ea(0xf1)]=P(_0x38770f[_0x21e3ea(0xf1)],_0x319428,_0x198a28),_0x38770f[_0x21e3ea(0xb4)]=P(_0x38770f[_0x21e3ea(0xb4)],_0x319428,_0x198a28);}function j(_0x5472a0,_0x3abcfe,_0x2c55c4){const _0x38607e=_0x1dea98;return _0x5472a0==null?void 0x0:_0x5472a0[_0x38607e(0xbb)](_0x2927a3=>_0x2927a3['startIndex']>=_0x3abcfe?{..._0x2927a3,'startIndex':_0x2927a3[_0x38607e(0x8d)]+_0x2c55c4}:_0x2927a3);}function M(_0x5bf2b7,_0x5414b8,_0x1901bd){const _0x1d8b9f=_0x1dea98;let _0x40d375=_0x5414b8+_0x1901bd;return _0x5bf2b7==null?void 0x0:_0x5bf2b7[_0x1d8b9f(0xbb)](_0x29154d=>_0x29154d[_0x1d8b9f(0x8d)]>=_0x5414b8&&_0x29154d[_0x1d8b9f(0x8d)]<_0x40d375?null:_0x29154d['startIndex']>=_0x40d375?{..._0x29154d,'startIndex':_0x29154d[_0x1d8b9f(0x8d)]-_0x1901bd}:_0x29154d)['filter'](_0x494ede=>_0x494ede!=null);}function Te(_0x5c2eaa,_0x4037ba,_0x19c3b1){const _0x5ceb87=_0x1dea98;return _0x5c2eaa==null?void 0x0:_0x5c2eaa[_0x5ceb87(0xbb)](_0x36551c=>_0x36551c['st']>=_0x4037ba?{..._0x36551c,'st':_0x36551c['st']+_0x19c3b1,'ed':_0x36551c['ed']+_0x19c3b1}:_0x36551c['ed']>_0x4037ba?{..._0x36551c,'ed':_0x36551c['ed']+_0x19c3b1}:_0x36551c);}function N(_0x435db3,_0xc7a662,_0x33cf98){const _0x3b9a6d=_0x1dea98;return _0x435db3==null?void 0x0:_0x435db3[_0x3b9a6d(0xbb)](_0x1b8b95=>(0x0,e[_0x3b9a6d(0x148)])(_0x1b8b95,_0xc7a662,_0x33cf98));}function Ee(_0x4bbe16,_0x33fa73,_0x3605f6){const _0x2ec71d=_0x1dea98;return _0x4bbe16==null?void 0x0:_0x4bbe16['map'](_0xf6f83d=>(0x0,e[_0x2ec71d(0x12b)])(_0xf6f83d,_0x33fa73,_0x3605f6));}function P(_0x37503f,_0x29114e,_0x4c68ca){const _0x3908f3=_0x1dea98;return _0x37503f==null?void 0x0:_0x37503f[_0x3908f3(0xbb)](_0x4cb13b=>(0x0,e[_0x3908f3(0xaa)])(_0x4cb13b,_0x29114e,_0x4c68ca))[_0x3908f3(0x14e)](_0x2dbde3=>_0x2dbde3!=null);}function F(_0x5c28dc,_0x26560b,_0x2e12ac){const _0x38ed85=_0x1dea98;return _0x5c28dc==null?void 0x0:_0x5c28dc[_0x38ed85(0xbb)](_0xeb07f1=>(0x0,e[_0x38ed85(0x96)])(_0xeb07f1,_0x26560b,_0x2e12ac))[_0x38ed85(0x14e)](_0x4d93d2=>_0x4d93d2!=null);}const I={'id':_0x1dea98(0x118),'type':e['CommandType']['COMMAND'],'handler':_0x3b0b89=>{const _0x9ff142=_0x1dea98;var _0x31f358;if((0x0,n[_0x9ff142(0x133)])(W(_0x3b0b89)))return!0x1;let _0xbaa48c=(0x0,n[_0x9ff142(0x12c)])(_0x3b0b89);if(_0xbaa48c)return _0x3b0b89['get'](e[_0x9ff142(0x97)])[_0x9ff142(0x132)](R['id'],{'startOffset':_0xbaa48c[_0x9ff142(0xa1)],'endOffset':_0xbaa48c[_0x9ff142(0x123)],'insertionMode':_0x9ff142(0xf8),'unitId':_0xbaa48c['unitId']});let _0x5a92a=je(_0x3b0b89);if(!_0x5a92a)return!0x1;let _0x3887bb=(_0x31f358=_0x3b0b89['get'](e[_0x9ff142(0xaf)])[_0x9ff142(0x88)](e[_0x9ff142(0x154)][_0x9ff142(0x125)]))==null?void 0x0:_0x31f358[_0x9ff142(0xee)](),_0x4224b8=_0x3887bb?(0x0,e['getParagraphFollowingBlockOffset'])(_0x3887bb,_0x5a92a):_0x5a92a[_0x9ff142(0x8d)]+0x1;return _0x3b0b89['get'](e[_0x9ff142(0x97)])[_0x9ff142(0x132)](R['id'],{'startOffset':_0x4224b8,'endOffset':_0x4224b8});}},L={'id':_0x1dea98(0xdb),'type':e[_0x1dea98(0x130)]['COMMAND'],'handler':()=>!0x0},R={'id':_0x1dea98(0x100),'type':e[_0x1dea98(0x130)]['COMMAND'],'handler':(_0x2cb211,_0x39a17c)=>{const _0x1f7b0c=_0x1dea98;let _0x5a37ca=U(_0x2cb211,_0x39a17c==null?void 0x0:_0x39a17c[_0x1f7b0c(0xcf)]);if(!_0x5a37ca)return!0x1;let _0x343b7d=W(_0x2cb211);if((0x0,n[_0x1f7b0c(0x133)])(_0x343b7d))return!0x1;let _0x1ddd70=_0x5a37ca[_0x1f7b0c(0xa2)][_0x1f7b0c(0x150)](_0x5a37ca['unitId']),_0x3395a7=Oe(_0x39a17c,_0x343b7d),_0x4a7a66=ke(_0x5a37ca[_0x1f7b0c(0xb1)],_0x3395a7);if(_0x4a7a66){if(_0x4a7a66['blockType']!==e[_0x1f7b0c(0xce)]['CODE'])return!0x1;let _0x4db4a2=v({'blockId':_0x4a7a66[_0x1f7b0c(0x144)],'documentData':_0x5a37ca['previousDocumentData'],'metadata':_0x1ddd70});if(!_0x4db4a2)return!0x1;let _0x46cdf6=J(_0x5a37ca['commandService'],_0x5a37ca[_0x1f7b0c(0x13d)],_0x5a37ca[_0x1f7b0c(0xcf)],_0x5a37ca[_0x1f7b0c(0xb1)],_0x4db4a2[_0x1f7b0c(0x120)],R['id'],_0x4db4a2[_0x1f7b0c(0xf3)]);return _0x46cdf6&&_0x4db4a2['nextMetadata']&&_0x5a37ca[_0x1f7b0c(0xa2)][_0x1f7b0c(0xda)](_0x5a37ca['unitId'],_0x4db4a2['nextMetadata']),_0x46cdf6;}let _0x4bbb54=(_0x39a17c==null?void 0x0:_0x39a17c[_0x1f7b0c(0x144)])??(0x0,e[_0x1f7b0c(0xfa)])(0x6),_0x52c5b1;try{_0x52c5b1=ee({'blockId':_0x4bbb54,'config':_0x39a17c==null?void 0x0:_0x39a17c[_0x1f7b0c(0x99)],'documentData':_0x5a37ca[_0x1f7b0c(0xb1)],'endOffset':_0x3395a7==null?void 0x0:_0x3395a7[_0x1f7b0c(0x123)],'insertionMode':_0x39a17c==null?void 0x0:_0x39a17c[_0x1f7b0c(0xd7)],'metadata':_0x1ddd70,'startOffset':_0x3395a7==null?void 0x0:_0x3395a7['startOffset']});}catch(_0xf2a207){if(_0xf2a207 instanceof _)return!0x1;throw _0xf2a207;}let _0x5d9790=J(_0x5a37ca[_0x1f7b0c(0x127)],_0x5a37ca[_0x1f7b0c(0x13d)],_0x5a37ca[_0x1f7b0c(0xcf)],_0x5a37ca[_0x1f7b0c(0xb1)],_0x52c5b1[_0x1f7b0c(0x120)],R['id'],_0x52c5b1[_0x1f7b0c(0xf3)]);return _0x5d9790&&_0x52c5b1['nextMetadata']&&_0x5a37ca['model']['deserialize'](_0x5a37ca[_0x1f7b0c(0xcf)],_0x52c5b1[_0x1f7b0c(0x157)]),_0x5d9790;}},z={'id':_0x1dea98(0xf0),'type':e[_0x1dea98(0x130)][_0x1dea98(0xf7)],'handler':(_0x5b32df,_0x12bbe8)=>{const _0xb95e54=_0x1dea98;if(!_0x12bbe8)return!0x1;let _0x55905f=U(_0x5b32df,_0x12bbe8['unitId']);if(!_0x55905f)return!0x1;let _0x902eb9=ie({'blockId':_0x12bbe8[_0xb95e54(0x144)],'config':_0x12bbe8[_0xb95e54(0x99)],'documentData':_0x55905f[_0xb95e54(0xb1)],'metadata':_0x55905f[_0xb95e54(0xa2)][_0xb95e54(0x150)](_0x55905f[_0xb95e54(0xcf)])});return _0x902eb9['nextMetadata']&&_0x55905f['model']['deserialize'](_0x55905f[_0xb95e54(0xcf)],_0x902eb9['nextMetadata']),!0x0;}},De={'id':_0x1dea98(0x141),'type':e[_0x1dea98(0x130)][_0x1dea98(0xf7)],'handler':(_0xde9a65,_0x2b28f2)=>B[_0x1dea98(0x124)](_0xde9a65,_0x2b28f2)},B={'id':_0x1dea98(0x12e),'type':e[_0x1dea98(0x130)]['COMMAND'],'handler':(_0xa51c95,_0x3780f3)=>{const _0x2b3709=_0x1dea98;if(!_0x3780f3)return!0x1;let _0x3ff200=U(_0xa51c95,_0x3780f3==null?void 0x0:_0x3780f3[_0x2b3709(0xcf)]);if(!_0x3ff200)return!0x1;let _0x4c078f=v({'blockId':_0x3780f3[_0x2b3709(0x144)],'documentData':_0x3ff200[_0x2b3709(0xb1)],'metadata':_0x3ff200[_0x2b3709(0xa2)]['serialize'](_0x3ff200[_0x2b3709(0xcf)])});if(!_0x4c078f)return!0x1;let _0x392053=J(_0x3ff200[_0x2b3709(0x127)],_0x3ff200[_0x2b3709(0x13d)],_0x3ff200['unitId'],_0x3ff200['previousDocumentData'],_0x4c078f[_0x2b3709(0x120)],B['id'],_0x4c078f[_0x2b3709(0xf3)]);return _0x392053&&_0x4c078f['nextMetadata']&&_0x3ff200['model'][_0x2b3709(0xda)](_0x3ff200['unitId'],_0x4c078f[_0x2b3709(0x157)]),_0x392053;}},V={'id':_0x1dea98(0x128),'type':e[_0x1dea98(0x130)][_0x1dea98(0xf7)],'handler':(_0xd4b36e,_0x22fa16)=>{const _0x285e9d=_0x1dea98;if(!_0x22fa16)return!0x1;let _0x45fca5=U(_0xd4b36e,_0x22fa16==null?void 0x0:_0x22fa16[_0x285e9d(0xcf)]);if(!_0x45fca5)return!0x1;let _0x4221ee=ae({'blockId':_0x22fa16[_0x285e9d(0x144)],'documentData':_0x45fca5[_0x285e9d(0xb1)],'metadata':_0x45fca5['model'][_0x285e9d(0x150)](_0x45fca5[_0x285e9d(0xcf)])});if(!_0x4221ee)return!0x1;let _0x227741=J(_0x45fca5['commandService'],_0x45fca5['selectionManager'],_0x45fca5[_0x285e9d(0xcf)],_0x45fca5['previousDocumentData'],_0x4221ee[_0x285e9d(0x120)],V['id'],_0x4221ee['cursorOffset']);return _0x227741&&_0x4221ee[_0x285e9d(0x157)]&&_0x45fca5[_0x285e9d(0xa2)][_0x285e9d(0xda)](_0x45fca5['unitId'],_0x4221ee[_0x285e9d(0x157)]),_0x227741;}},H={'id':'docs-code.command.cancel-empty-paragraph','type':e[_0x1dea98(0x130)][_0x1dea98(0xf7)],'handler':(_0x50c8e3,_0x16fc7e)=>{const _0x3f8f5a=_0x1dea98;var _0xbf7fb6;let _0x4b481f=U(_0x50c8e3,_0x16fc7e==null?void 0x0:_0x16fc7e[_0x3f8f5a(0xcf)]);if(!_0x4b481f)return!0x1;let _0x96d520=(_0x16fc7e==null?void 0x0:_0x16fc7e[_0x3f8f5a(0xf3)])??((_0xbf7fb6=W(_0x50c8e3))==null?void 0x0:_0xbf7fb6[_0x3f8f5a(0xa1)]);if(_0x96d520==null)return!0x1;let _0x20534f=y({'cursorOffset':_0x96d520,'documentData':_0x4b481f[_0x3f8f5a(0xb1)],'paragraphStartIndex':_0x16fc7e==null?void 0x0:_0x16fc7e[_0x3f8f5a(0x8b)]});return _0x20534f?J(_0x4b481f[_0x3f8f5a(0x127)],_0x4b481f[_0x3f8f5a(0x13d)],_0x4b481f[_0x3f8f5a(0xcf)],_0x4b481f['previousDocumentData'],_0x20534f[_0x3f8f5a(0x120)],H['id'],_0x20534f['cursorOffset']):!0x1;}};function U(_0x37501c,_0x926a6a){const _0x1054ee=_0x1dea98;let _0x5e9e62=_0x37501c['get'](e[_0x1054ee(0xaf)]),_0x4321de=_0x926a6a?_0x5e9e62[_0x1054ee(0xac)](_0x926a6a,e[_0x1054ee(0x154)]['UNIVER_DOC']):_0x5e9e62[_0x1054ee(0x88)](e[_0x1054ee(0x154)][_0x1054ee(0x125)]);return _0x4321de?{'commandService':_0x37501c['get'](e['ICommandService']),'model':_0x37501c[_0x1054ee(0xe6)](p),'previousDocumentData':_0x4321de['getSnapshot'](),'selectionManager':_0x37501c['get'](n['DocSelectionManagerService']),'unitId':_0x4321de[_0x1054ee(0x147)]()}:null;}function W(_0x2bb9c4){const _0x41073c=_0x1dea98;var _0x381387;return(_0x381387=_0x2bb9c4[_0x41073c(0xe6)](n[_0x41073c(0x85)])[_0x41073c(0x146)]())==null?void 0x0:_0x381387[0x0];}function Oe(_0x45397d,_0x3dff5d){const _0x1e2494=_0x1dea98;let _0x1b7221=(_0x45397d==null?void 0x0:_0x45397d[_0x1e2494(0xa1)])??(_0x3dff5d==null?void 0x0:_0x3dff5d[_0x1e2494(0xa1)]),_0x582d4a=(_0x45397d==null?void 0x0:_0x45397d[_0x1e2494(0x123)])??(_0x3dff5d==null?void 0x0:_0x3dff5d[_0x1e2494(0x123)]);if(_0x1b7221!=null&&_0x582d4a!=null)return{'endOffset':Math[_0x1e2494(0x90)](_0x1b7221,_0x582d4a),'startOffset':Math[_0x1e2494(0x9e)](_0x1b7221,_0x582d4a)};}function ke(_0x1285f1,_0x37d9ad){const _0x26810c=_0x1dea98;var _0x9eab4b;if(!_0x37d9ad)return;let _0x1af306=Ae(_0x37d9ad);return(_0x9eab4b=_0x1285f1['body'])==null||(_0x9eab4b=_0x9eab4b[_0x26810c(0xb4)])==null?void 0x0:_0x9eab4b[_0x26810c(0xa9)](_0x508884=>{const _0x454d6e=_0x26810c;let _0x55ae0c=(0x0,e[_0x454d6e(0xc1)])(_0x508884);return _0x37d9ad[_0x454d6e(0xa1)]===_0x37d9ad[_0x454d6e(0x123)]?(0x0,e[_0x454d6e(0xf5)])(_0x55ae0c,_0x1af306):(0x0,e['containsStreamIndex'])(_0x55ae0c,_0x1af306);});}function Ae(_0x174e19){const _0x39ffa1=_0x1dea98;return _0x174e19[_0x39ffa1(0xa1)]===_0x174e19[_0x39ffa1(0x123)]?_0x174e19['startOffset']:_0x174e19[_0x39ffa1(0xa1)]+0x1;}function je(_0x347284){const _0x30f406=_0x1dea98;let _0x19e3bd=W(_0x347284);if(!_0x19e3bd)return null;let _0x4eccd3=_0x347284[_0x30f406(0xe6)](e['IUniverInstanceService'])['getCurrentUnitOfType'](e[_0x30f406(0x154)][_0x30f406(0x125)]),_0x48370e=_0x4eccd3==null?void 0x0:_0x4eccd3['getBody']();return _0x48370e?e['BuildTextUtils'][_0x30f406(0xd9)][_0x30f406(0xd1)](_0x19e3bd,_0x48370e[_0x30f406(0xcc)]??[],_0x48370e[_0x30f406(0xa0)]??'')[0x0]??null:null;}function Me(_0x5837cc,_0x3760ea){const _0x30cf02=_0x1dea98;let _0x176692=_0x5837cc[_0x30cf02(0x153)],_0xe7d62f=_0x3760ea[_0x30cf02(0x153)],_0x20b86a=(0x0,e[_0x30cf02(0xb6)])(_0x176692,_0xe7d62f);return[_0x20b86a&&_0xe7d62f?Ne(_0xe7d62f,_0x20b86a):null,_0x20b86a?null:Pe(_0x176692,_0xe7d62f)][_0x30cf02(0x14e)](Boolean)['reduce']((_0x3d4d50,_0x30f4e5)=>e[_0x30cf02(0xc8)][_0x30cf02(0xdd)](_0x3d4d50,_0x30f4e5),null);}function Ne(_0x1d2821,_0x2663fd){const _0x446385=_0x1dea98;let _0x141ac3=new e[(_0x446385(0xca))]();return _0x141ac3['retain'](_0x2663fd[_0x446385(0x8e)]),_0x2663fd[_0x446385(0xd0)]>0x0&&_0x141ac3['insert'](_0x2663fd[_0x446385(0xd0)],(0x0,e[_0x446385(0xfb)])(_0x1d2821,_0x2663fd[_0x446385(0x8e)],_0x2663fd[_0x446385(0x8e)]+_0x2663fd[_0x446385(0xd0)],!0x1)),_0x2663fd[_0x446385(0xc2)]>0x0&&_0x141ac3['delete'](_0x2663fd[_0x446385(0xc2)]),e[_0x446385(0xc8)][_0x446385(0x119)]()[_0x446385(0xfe)](_0x141ac3['serialize'](),['body']);}function Pe(_0x1a1f8,_0x13febb){const _0x6555=_0x1dea98;let _0x687b14=[],_0x531788=_0x1a1f8?G(_0x1a1f8):void 0x0,_0x47f502=_0x13febb?G(_0x13febb):void 0x0;for(let _0x323ac2 of Fe)K(e[_0x6555(0xc8)][_0x6555(0x119)](),[_0x6555(0x153),_0x323ac2],_0x531788==null?void 0x0:_0x531788[_0x323ac2],_0x47f502==null?void 0x0:_0x47f502[_0x323ac2],_0x687b14);return _0x687b14[_0x6555(0xde)]((_0x36673f,_0x315e74)=>e[_0x6555(0xc8)][_0x6555(0xdd)](_0x36673f,_0x315e74),null);}const Fe=['paragraphs',_0x1dea98(0x11c),_0x1dea98(0x14d),_0x1dea98(0x14c),_0x1dea98(0xb4),_0x1dea98(0x10a),_0x1dea98(0x116),'customDecorations',_0x1dea98(0xcb)];function G(_0x3e8916){return _0x3e8916;}function K(_0x210fa4,_0x147d64,_0x408828,_0x38157b,_0x2dfcd3){const _0xb7f06f=_0x1dea98;q(_0x408828,_0x38157b)||(_0x408828==null?_0x2dfcd3['push'](_0x210fa4[_0xb7f06f(0xa3)](_0x147d64,_0x38157b)):_0x38157b==null?_0x2dfcd3[_0xb7f06f(0x108)](_0x210fa4[_0xb7f06f(0x11a)](_0x147d64,_0x408828)):Array[_0xb7f06f(0xb0)](_0x408828)&&Array[_0xb7f06f(0xb0)](_0x38157b)?Ie(_0x210fa4,_0x147d64,_0x408828,_0x38157b,_0x2dfcd3):Le(_0x408828)&&Le(_0x38157b)?new Set([...Object[_0xb7f06f(0xec)](_0x408828),...Object[_0xb7f06f(0xec)](_0x38157b)])['forEach'](_0x4b4774=>{K(_0x210fa4,[..._0x147d64,_0x4b4774],_0x408828[_0x4b4774],_0x38157b[_0x4b4774],_0x2dfcd3);}):_0x2dfcd3[_0xb7f06f(0x108)](_0x210fa4[_0xb7f06f(0x9d)](_0x147d64,_0x408828,_0x38157b)));}function Ie(_0x5f080a,_0x55c52d,_0x228655,_0x3fa302,_0x1b3a5d){const _0x2bceff=_0x1dea98;if(_0x228655[_0x2bceff(0x145)]===_0x3fa302['length']){_0x228655['forEach']((_0x27292c,_0x4325d5)=>K(_0x5f080a,[..._0x55c52d,_0x4325d5],_0x27292c,_0x3fa302[_0x4325d5],_0x1b3a5d));return;}let _0x3caef2=0x0;for(;_0x3caef2<_0x228655['length']&&_0x3caef2<_0x3fa302[_0x2bceff(0x145)]&&q(_0x228655[_0x3caef2],_0x3fa302[_0x3caef2]);)_0x3caef2++;let _0x172fad=_0x228655[_0x2bceff(0x145)]-0x1,_0x5f1f41=_0x3fa302[_0x2bceff(0x145)]-0x1;for(;_0x172fad>=_0x3caef2&&_0x5f1f41>=_0x3caef2&&q(_0x228655[_0x172fad],_0x3fa302[_0x5f1f41]);)_0x172fad--,_0x5f1f41--;for(let _0x2b8282=_0x172fad;_0x2b8282>=_0x3caef2;_0x2b8282--)_0x1b3a5d[_0x2bceff(0x108)](_0x5f080a[_0x2bceff(0x11a)]([..._0x55c52d,_0x2b8282],_0x228655[_0x2b8282]));for(let _0x4b3322=_0x3caef2;_0x4b3322<=_0x5f1f41;_0x4b3322++)_0x1b3a5d['push'](_0x5f080a[_0x2bceff(0xa3)]([..._0x55c52d,_0x4b3322],_0x3fa302[_0x4b3322]));}function Le(_0x5c5354){const _0x41bbbb=_0x1dea98;return typeof _0x5c5354==_0x41bbbb(0xe1)&&!!_0x5c5354&&!Array[_0x41bbbb(0xb0)](_0x5c5354);}function q(_0x4dbb21,_0x573c59){const _0x4e6ee2=_0x1dea98;return JSON[_0x4e6ee2(0x11e)](_0x4dbb21)===JSON[_0x4e6ee2(0x11e)](_0x573c59);}function J(_0x3cb6a8,_0xaa63d5,_0x578de4,_0x2ca491,_0x34cce8,_0x2eb7bd,_0x3a6582){const _0x4516ad=_0x1dea98;let _0x1129e6=Me(_0x2ca491,_0x34cce8);return _0x1129e6?!!_0x3cb6a8[_0x4516ad(0x132)](n[_0x4516ad(0xfc)]['id'],{'unitId':_0x578de4,'actions':_0x1129e6,'textRanges':[{'startOffset':_0x3a6582,'endOffset':_0x3a6582,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x2eb7bd}):(_0xaa63d5['replaceDocRanges']([{'startOffset':_0x3a6582,'endOffset':_0x3a6582}],{'unitId':_0x578de4,'subUnitId':_0x578de4},!0x1),!0x0);}const Y=_0x1dea98(0xc5);var Re=_0x1dea98(0x10f),ze=_0x1dea98(0x129);const Be={};function X(_0x5610cb,_0x1e4e8d){return function(_0x54d243,_0x85cdbe){_0x1e4e8d(_0x54d243,_0x85cdbe,_0x5610cb);};}function Z(_0x238e34,_0x28710a,_0x4e422f,_0xc30ca0){const _0x389fd2=_0x1dea98;var _0x4ad55a=arguments[_0x389fd2(0x145)],_0x227207=_0x4ad55a<0x3?_0x28710a:_0xc30ca0===null?_0xc30ca0=Object[_0x389fd2(0xab)](_0x28710a,_0x4e422f):_0xc30ca0,_0x1d6901;if(typeof Reflect==_0x389fd2(0xe1)&&typeof Reflect[_0x389fd2(0xc6)]==_0x389fd2(0x12f))_0x227207=Reflect[_0x389fd2(0xc6)](_0x238e34,_0x28710a,_0x4e422f,_0xc30ca0);else{for(var _0x18fbc4=_0x238e34[_0x389fd2(0x145)]-0x1;_0x18fbc4>=0x0;_0x18fbc4--)(_0x1d6901=_0x238e34[_0x18fbc4])&&(_0x227207=(_0x4ad55a<0x3?_0x1d6901(_0x227207):_0x4ad55a>0x3?_0x1d6901(_0x28710a,_0x4e422f,_0x227207):_0x1d6901(_0x28710a,_0x4e422f))||_0x227207);}return _0x4ad55a>0x3&&_0x227207&&Object[_0x389fd2(0xe7)](_0x28710a,_0x4e422f,_0x227207),_0x227207;}let Q=class extends e[_0x1dea98(0x134)]{constructor(_0xd750e1,_0x6461a1){const _0x46ee64=_0x1dea98;super(),this[_0x46ee64(0x140)]=_0xd750e1,this[_0x46ee64(0xc4)]=_0x6461a1,this[_0x46ee64(0x117)]();}[_0x1dea98(0x117)](){const _0x57e681=_0x1dea98;this[_0x57e681(0xcd)](this[_0x57e681(0x140)]['registerPluginResource']({'pluginName':Y,'businesses':[e['UniverInstanceType'][_0x57e681(0x125)]],'toJson':_0x3c82f9=>JSON[_0x57e681(0x11e)](this[_0x57e681(0xc4)][_0x57e681(0x150)](_0x3c82f9)),'parseJson':_0x246784=>o(JSON['parse'](_0x246784)),'onLoad':(_0x81bd73,_0x31d58b)=>this[_0x57e681(0xc4)][_0x57e681(0xda)](_0x81bd73,_0x31d58b),'onUnLoad':_0x29c814=>this['_docsCodeModel']['removeUnit'](_0x29c814)}));}};Q=Z([X(0x0,e[_0x1dea98(0x156)]),X(0x1,(0x0,e[_0x1dea98(0x103)])(p))],Q);let $=class extends e['Plugin']{constructor(_0x5ef4da=Be,_0x416823,_0x5b24c1,_0x41861b){const _0x406982=_0x1dea98;super(),this['_config']=_0x5ef4da,this[_0x406982(0x111)]=_0x416823,this['_commandService']=_0x5b24c1,this[_0x406982(0xe9)]=_0x41861b;let {..._0x4dede5}=(0x0,e[_0x406982(0x122)])({},Be,this[_0x406982(0xbf)]);this[_0x406982(0xe9)]['setConfig'](_0x406982(0x143),_0x4dede5);}['onStarting'](){const _0x2c8cad=_0x1dea98;this[_0x2c8cad(0x111)][_0x2c8cad(0x83)]([p]),this[_0x2c8cad(0x111)][_0x2c8cad(0x83)]([Q]),this['_injector'][_0x2c8cad(0xe6)](p),this[_0x2c8cad(0x111)][_0x2c8cad(0xe6)](Q),[R,I,z,B,V,De,H,L,m,h]['forEach'](_0xab2f47=>this[_0x2c8cad(0xcd)](this['_commandService']['registerCommand'](_0xab2f47)));}};f($,_0x1dea98(0x152),Y),f($,_0x1dea98(0xff),Re),f($,_0x1dea98(0xb3),ze),f($,_0x1dea98(0xb2),e[_0x1dea98(0x154)][_0x1dea98(0x125)]),$=Z([(0x0,e[_0x1dea98(0xd4)])(r[_0x1dea98(0x11b)],n[_0x1dea98(0x10b)]),X(0x1,(0x0,e[_0x1dea98(0x103)])(e['Injector'])),X(0x2,e[_0x1dea98(0x97)]),X(0x3,e['IConfigService'])],$),exports[_0x1dea98(0xba)]=Y,exports[_0x1dea98(0xea)]=H,exports['DocsCodeConsumeBoundaryDeleteCommand']=L,exports[_0x1dea98(0xf2)]=I,exports['DocsCodeInsertCommand']=R,exports[_0x1dea98(0x9b)]=p,exports[_0x1dea98(0x10c)]=V,exports[_0x1dea98(0x93)]=B,exports[_0x1dea98(0xd6)]=z,exports[_0x1dea98(0x14f)]=h,exports[_0x1dea98(0x11f)]=m,Object[_0x1dea98(0xe7)](exports,_0x1dea98(0xdf),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x1dea98(0xbd)]=y,exports[_0x1dea98(0xa4)]=se,exports['normalizeDocsCodeConfig']=a,exports[_0x1dea98(0x84)]=o;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x3347ac=_0x18f6;(function(_0x487f3d,_0x46e1c3){var _0x2d957c=_0x18f6,_0x59e3b4=_0x487f3d();while(!![]){try{var _0xffdf14=-parseInt(_0x2d957c(0xe9))/0x1*(-parseInt(_0x2d957c(0x10f))/0x2)+parseInt(_0x2d957c(0xdb))/0x3*(parseInt(_0x2d957c(0xdc))/0x4)+-parseInt(_0x2d957c(0xe7))/0x5*(parseInt(_0x2d957c(0xd7))/0x6)+parseInt(_0x2d957c(0x103))/0x7*(parseInt(_0x2d957c(0x10a))/0x8)+parseInt(_0x2d957c(0xe3))/0x9*(-parseInt(_0x2d957c(0xfb))/0xa)+parseInt(_0x2d957c(0xf5))/0xb*(-parseInt(_0x2d957c(0xed))/0xc)+parseInt(_0x2d957c(0xf4))/0xd;if(_0xffdf14===_0x46e1c3)break;else _0x59e3b4['push'](_0x59e3b4['shift']());}catch(_0x40242e){_0x59e3b4['push'](_0x59e3b4['shift']());}}}(_0x4a49,0x734d2));import{DocsCodeInsertCommand as _0x59cb5d,DocsCodeModel as _0x40a00e,DocsCodeRemoveCommand as _0x256b63,DocsCodeUnwrapCommand as _0xaf85ab,DocsCodeUpdateCommand as _0x31cdd3,normalizeDocsCodeConfig as _0x5a71bf}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x118512,DocumentBlockRangeType as _0x5c4620,ICommandService as _0x40c345,Inject as _0x17d1a7,Injector as _0x118e46,generateRandomId as _0x3bb2dc}from'@univerjs/core';import{FDocument as _0x3f0eb7,isParagraphFacade as _0x3148a1}from'@univerjs/docs/facade';function m(_0x43a999){'@babel/helpers - typeof';var _0x5640c7=_0x18f6;return m=typeof Symbol==_0x5640c7(0x10c)&&typeof Symbol['iterator']==_0x5640c7(0xe5)?function(_0x54d35d){return typeof _0x54d35d;}:function(_0x95e6a3){var _0x1870c1=_0x5640c7;return _0x95e6a3&&typeof Symbol==_0x1870c1(0x10c)&&_0x95e6a3[_0x1870c1(0x106)]===Symbol&&_0x95e6a3!==Symbol[_0x1870c1(0xf2)]?_0x1870c1(0xe5):typeof _0x95e6a3;},m(_0x43a999);}function h(_0x5a394a,_0x399df8){var _0x4ff5bb=_0x18f6;if(m(_0x5a394a)!=_0x4ff5bb(0x115)||!_0x5a394a)return _0x5a394a;var _0x3cd379=_0x5a394a[Symbol['toPrimitive']];if(_0x3cd379!==void 0x0){var _0x41b000=_0x3cd379[_0x4ff5bb(0xf6)](_0x5a394a,_0x399df8||'default');if(m(_0x41b000)!=_0x4ff5bb(0x115))return _0x41b000;throw TypeError(_0x4ff5bb(0xe6));}return(_0x399df8===_0x4ff5bb(0xda)?String:Number)(_0x5a394a);}function g(_0x2d2b89){var _0x54194f=_0x18f6,_0x311cef=h(_0x2d2b89,'string');return m(_0x311cef)==_0x54194f(0xe5)?_0x311cef:_0x311cef+'';}function _(_0x3974ee,_0x433b6a,_0x1168f0){var _0x97535f=_0x18f6;return(_0x433b6a=g(_0x433b6a))in _0x3974ee?Object[_0x97535f(0xe2)](_0x3974ee,_0x433b6a,{'value':_0x1168f0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3974ee[_0x433b6a]=_0x1168f0,_0x3974ee;}function _0x4a49(){var _0x3a0ec0=['text','SECTION_BREAK','147540BbGzhA','length','_blockId','getOwnPropertyDescriptor','_getBlockRange','prototype','BLOCK_END','1377909zDpLdA','473YCNfGa','call','find','decorate','filter','map','1030dwUJMo','updateConfig','save','_getBlockRanges','getCodeAt','getRange','dataStream','getText','87731nnlCEG','BLOCK_START','extend','constructor','getConfig','getCodes','findCodes','408PuYoXr','join','function','createInstance','slice','2rrZAcX','getId','includes','describe','blockType','config','object','_injector','blockId','getCode','PARAGRAPH','get','CODE','18gbmvCO','startIndex','getCodeConfig','string','591ofYecv','4924XBiKZC','_unitId','syncExecuteCommand','_getDocumentData','_createFDocumentCode','blockRanges','defineProperty','41382ZBpyAp','some','symbol','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','512635UVPcMj','endIndex','794451yUnxBG','replace'];_0x4a49=function(){return _0x3a0ec0;};return _0x4a49();}function v(_0x2c0cb1,_0x1a2836){return function(_0x71d96c,_0x300484){_0x1a2836(_0x71d96c,_0x300484,_0x2c0cb1);};}function y(_0x498d81,_0x410179,_0x547b6e,_0x11dc5f){var _0x7b327b=_0x18f6,_0x57f549=arguments[_0x7b327b(0xee)],_0x485a6e=_0x57f549<0x3?_0x410179:_0x11dc5f===null?_0x11dc5f=Object[_0x7b327b(0xf0)](_0x410179,_0x547b6e):_0x11dc5f,_0x32985d;if(typeof Reflect=='object'&&typeof Reflect[_0x7b327b(0xf8)]==_0x7b327b(0x10c))_0x485a6e=Reflect[_0x7b327b(0xf8)](_0x498d81,_0x410179,_0x547b6e,_0x11dc5f);else{for(var _0x74f1de=_0x498d81[_0x7b327b(0xee)]-0x1;_0x74f1de>=0x0;_0x74f1de--)(_0x32985d=_0x498d81[_0x74f1de])&&(_0x485a6e=(_0x57f549<0x3?_0x32985d(_0x485a6e):_0x57f549>0x3?_0x32985d(_0x410179,_0x547b6e,_0x485a6e):_0x32985d(_0x410179,_0x547b6e))||_0x485a6e);}return _0x57f549>0x3&&_0x485a6e&&Object[_0x7b327b(0xe2)](_0x410179,_0x547b6e,_0x485a6e),_0x485a6e;}let b=class{constructor(_0x3e0171,_0x4b8058,_0x535af5){var _0x17e94e=_0x18f6;this['_document']=_0x3e0171,this[_0x17e94e(0xef)]=_0x4b8058,this['_injector']=_0x535af5,_(this,_0x17e94e(0xdd),void 0x0),this['_unitId']=this['_document'][_0x17e94e(0x110)]();}[_0x3347ac(0x110)](){var _0xf48a03=_0x3347ac;return this[_0xf48a03(0xef)];}[_0x3347ac(0x100)](){var _0x5e2a69=_0x3347ac;let _0x546669=this[_0x5e2a69(0xf1)]();return _0x546669?{'blockId':_0x546669[_0x5e2a69(0x117)],'endIndex':_0x546669[_0x5e2a69(0xe8)],'startIndex':_0x546669[_0x5e2a69(0xd8)]}:null;}[_0x3347ac(0x102)](){var _0x46485a=_0x3347ac,_0x361dab;let _0x2803ce=this[_0x46485a(0xf1)](),_0x3e74ac=(_0x361dab=this[_0x46485a(0xdf)]()['body'])==null?void 0x0:_0x361dab[_0x46485a(0x101)];return!_0x2803ce||!_0x3e74ac?'':x(_0x3e74ac[_0x46485a(0x10e)](_0x2803ce[_0x46485a(0xd8)]+0x1,_0x2803ce[_0x46485a(0xe8)]));}[_0x3347ac(0x112)](){var _0x26f8f2=_0x3347ac;let _0x145c1b=this[_0x26f8f2(0x100)]();return _0x145c1b?{..._0x145c1b,'config':this[_0x26f8f2(0x107)](),'text':this['getText'](),'type':_0x5c4620[_0x26f8f2(0xd6)]}:null;}[_0x3347ac(0x107)](){var _0x4e983a=_0x3347ac;let _0x3504a0=this[_0x4e983a(0x116)][_0x4e983a(0x11a)](_0x40a00e);return _0x5a71bf(_0x3504a0[_0x4e983a(0xd9)](this[_0x4e983a(0xdd)],this[_0x4e983a(0xef)]));}[_0x3347ac(0xfc)](_0x15e1f8){var _0x3ca89f=_0x3347ac;return this[_0x3ca89f(0x116)][_0x3ca89f(0x11a)](_0x40c345)[_0x3ca89f(0xde)](_0x31cdd3['id'],{'blockId':this['_blockId'],'config':_0x15e1f8[_0x3ca89f(0x114)],'unitId':this[_0x3ca89f(0xdd)]});}['unwrap'](){var _0x67641=_0x3347ac;return this[_0x67641(0x116)]['get'](_0x40c345)['syncExecuteCommand'](_0xaf85ab['id'],{'blockId':this[_0x67641(0xef)],'unitId':this['_unitId']});}['remove'](){var _0x5f18ec=_0x3347ac;return this[_0x5f18ec(0x116)][_0x5f18ec(0x11a)](_0x40c345)[_0x5f18ec(0xde)](_0x256b63['id'],{'blockId':this[_0x5f18ec(0xef)],'unitId':this[_0x5f18ec(0xdd)]});}['_getBlockRange'](){var _0x2b42eb=_0x3347ac,_0x3f4ae2;return((_0x3f4ae2=this['_getDocumentData']()['body'])==null||(_0x3f4ae2=_0x3f4ae2[_0x2b42eb(0xe1)])==null?void 0x0:_0x3f4ae2[_0x2b42eb(0xf7)](_0x5bd92d=>_0x5bd92d['blockId']===this[_0x2b42eb(0xef)]&&_0x5bd92d[_0x2b42eb(0x113)]===_0x5c4620['CODE']))??null;}['_getDocumentData'](){var _0xf3cb66=_0x3347ac;return this['_document'][_0xf3cb66(0xfd)]();}};b=y([v(0x2,_0x17d1a7(_0x118e46))],b);function x(_0x1a39e2){var _0x25177f=_0x3347ac;return Array['from'](_0x1a39e2)[_0x25177f(0xfa)](_0x408916=>_0x408916===_0x118512[_0x25177f(0x119)]?'\x0a':_0x408916)['filter'](_0x22a40b=>_0x22a40b!==_0x118512[_0x25177f(0x104)]&&_0x22a40b!==_0x118512[_0x25177f(0xf3)]&&_0x22a40b!==_0x118512[_0x25177f(0xec)])[_0x25177f(0x10b)]('')[_0x25177f(0xea)](/\n$/,'');}function _0x18f6(_0x4d47ab,_0x1972bc){_0x4d47ab=_0x4d47ab-0xd6;var _0x4a49ef=_0x4a49();var _0x18f6ff=_0x4a49ef[_0x4d47ab];return _0x18f6ff;}var S=class extends _0x3f0eb7{['getCodes'](){var _0x13a210=_0x3347ac;return this['_getBlockRanges']()[_0x13a210(0xf9)](_0x3509c2=>_0x3509c2[_0x13a210(0x113)]===_0x5c4620[_0x13a210(0xd6)])[_0x13a210(0xfa)](_0x290a9f=>this[_0x13a210(0xe0)](_0x290a9f[_0x13a210(0x117)]));}[_0x3347ac(0x118)](_0x30a4d6){var _0x20d988=_0x3347ac;return this[_0x20d988(0xfe)]()[_0x20d988(0xe4)](_0x3ec3cf=>_0x3ec3cf['blockId']===_0x30a4d6&&_0x3ec3cf[_0x20d988(0x113)]===_0x5c4620[_0x20d988(0xd6)])?this[_0x20d988(0xe0)](_0x30a4d6):null;}[_0x3347ac(0xff)](_0x2b2287){var _0x4701f5=_0x3347ac;let _0x3ecb08=this[_0x4701f5(0xfe)]()[_0x4701f5(0xf7)](_0x53974c=>_0x53974c['blockType']===_0x5c4620['CODE']&&_0x53974c['startIndex']<=_0x2b2287&&_0x2b2287<=_0x53974c[_0x4701f5(0xe8)]);return _0x3ecb08?this['_createFDocumentCode'](_0x3ecb08[_0x4701f5(0x117)]):null;}['findCodeByText'](_0x350e4c){var _0x333ff8=_0x3347ac;return this[_0x333ff8(0x109)](_0x350e4c)[0x0]??null;}['findCodes'](_0x457cc9){var _0x1a4438=_0x3347ac;let _0xe11b6b=typeof _0x457cc9==_0x1a4438(0xda)?{'text':_0x457cc9}:_0x457cc9;return this[_0x1a4438(0x108)]()[_0x1a4438(0xf9)](_0x11d5a1=>!(_0xe11b6b[_0x1a4438(0x117)]&&_0x11d5a1[_0x1a4438(0x110)]()!==_0xe11b6b[_0x1a4438(0x117)]||_0xe11b6b[_0x1a4438(0xeb)]&&!_0x11d5a1['getText']()[_0x1a4438(0x111)](_0xe11b6b[_0x1a4438(0xeb)])));}['insertCode'](_0x5d9a87={},_0x2141bf={}){var _0x3e73a3=_0x3347ac;let _0x131aeb=this['_injector'][_0x3e73a3(0x11a)](_0x40c345),_0x85a178=_0x3148a1(_0x5d9a87)?{..._0x2141bf,..._0x5d9a87[_0x3e73a3(0x100)]()}:_0x5d9a87,_0x140dc3=_0x85a178['blockId']??_0x3bb2dc(0x6);return _0x131aeb['syncExecuteCommand'](_0x59cb5d['id'],{..._0x85a178,'blockId':_0x140dc3,'unitId':this[_0x3e73a3(0x110)]()})?this[_0x3e73a3(0x118)](_0x140dc3):null;}['_getBlockRanges'](){var _0x2a9bb3=_0x3347ac,_0x486806;return((_0x486806=this[_0x2a9bb3(0xfd)]()['body'])==null?void 0x0:_0x486806[_0x2a9bb3(0xe1)])??[];}[_0x3347ac(0xe0)](_0x4ac979){var _0x4b0d77=_0x3347ac;return this[_0x4b0d77(0x116)][_0x4b0d77(0x10d)](b,this,_0x4ac979);}};_0x3f0eb7[_0x3347ac(0x105)](S);export{b as FDocumentCode};
1
+ var _0x523619=_0x3e77;function _0x273d(){var _0x523f53=['15656mvVdiS','find','replace','defineProperty','function','filter','_unitId','CODE','3LhfaaV','_injector','body','endIndex','getText','remove','slice','8488578etzGfD','_blockId','_document','SECTION_BREAK','extend','blockId','config','includes','findCodeByText','2621020gSPome','getCodeAt','getCodeConfig','getId','constructor','10PxHSAd','map','_getBlockRange','from','prototype','7KLoOsw','getRange','iterator','BLOCK_START','default','insertCode','_getDocumentData','8699273NUgBsH','888288fBJPci','unwrap','call','5097752SEzUWm','decorate','BLOCK_END','startIndex','get','describe','_getBlockRanges','toPrimitive','_createFDocumentCode','622666mMSqVf','4239YXFynn','some','save','getConfig','text','object','updateConfig','getCodes','blockRanges','createInstance','blockType','string','getCode','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','symbol','syncExecuteCommand'];_0x273d=function(){return _0x523f53;};return _0x273d();}(function(_0x335eb2,_0x65d4a4){var _0x9e8b56=_0x3e77,_0x562101=_0x335eb2();while(!![]){try{var _0x201c67=parseInt(_0x9e8b56(0x178))/0x1+parseInt(_0x9e8b56(0x184))/0x2+parseInt(_0x9e8b56(0x156))/0x3*(-parseInt(_0x9e8b56(0x17b))/0x4)+parseInt(_0x9e8b56(0x166))/0x5+parseInt(_0x9e8b56(0x15d))/0x6*(-parseInt(_0x9e8b56(0x170))/0x7)+-parseInt(_0x9e8b56(0x14e))/0x8*(-parseInt(_0x9e8b56(0x185))/0x9)+-parseInt(_0x9e8b56(0x16b))/0xa*(-parseInt(_0x9e8b56(0x177))/0xb);if(_0x201c67===_0x65d4a4)break;else _0x562101['push'](_0x562101['shift']());}catch(_0x42a83b){_0x562101['push'](_0x562101['shift']());}}}(_0x273d,0xb66ce));import{DocsCodeInsertCommand as _0x1084c1,DocsCodeModel as _0x1795d6,DocsCodeRemoveCommand as _0x388fa1,DocsCodeUnwrapCommand as _0x5d55d7,DocsCodeUpdateCommand as _0x37caab,normalizeDocsCodeConfig as _0x5d2e3b}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0xe08ab3,DocumentBlockRangeType as _0x1a5759,ICommandService as _0x55e8a6,Inject as _0x352200,Injector as _0x491548,generateRandomId as _0x535c1d}from'@univerjs/core';import{FDocument as _0x5dacc6,isParagraphFacade as _0x3dd811}from'@univerjs/docs/facade';function m(_0x4111a0){'@babel/helpers - typeof';var _0x563b17=_0x3e77;return m=typeof Symbol=='function'&&typeof Symbol[_0x563b17(0x172)]==_0x563b17(0x14c)?function(_0x28e975){return typeof _0x28e975;}:function(_0x42fb57){var _0x561bc2=_0x563b17;return _0x42fb57&&typeof Symbol==_0x561bc2(0x152)&&_0x42fb57[_0x561bc2(0x16a)]===Symbol&&_0x42fb57!==Symbol[_0x561bc2(0x16f)]?'symbol':typeof _0x42fb57;},m(_0x4111a0);}function h(_0x3c2f8c,_0x1b68db){var _0x53a937=_0x3e77;if(m(_0x3c2f8c)!=_0x53a937(0x143)||!_0x3c2f8c)return _0x3c2f8c;var _0x2be133=_0x3c2f8c[Symbol[_0x53a937(0x182)]];if(_0x2be133!==void 0x0){var _0x137533=_0x2be133[_0x53a937(0x17a)](_0x3c2f8c,_0x1b68db||_0x53a937(0x174));if(m(_0x137533)!=_0x53a937(0x143))return _0x137533;throw TypeError(_0x53a937(0x14b));}return(_0x1b68db===_0x53a937(0x149)?String:Number)(_0x3c2f8c);}function g(_0x1be631){var _0x5ad09f=h(_0x1be631,'string');return m(_0x5ad09f)=='symbol'?_0x5ad09f:_0x5ad09f+'';}function _(_0x589346,_0x9f4f2f,_0x17b56b){var _0x56be00=_0x3e77;return(_0x9f4f2f=g(_0x9f4f2f))in _0x589346?Object[_0x56be00(0x151)](_0x589346,_0x9f4f2f,{'value':_0x17b56b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x589346[_0x9f4f2f]=_0x17b56b,_0x589346;}function v(_0x8347f5,_0x32761b){return function(_0x2b6eba,_0x140e4b){_0x32761b(_0x2b6eba,_0x140e4b,_0x8347f5);};}function y(_0x917fa5,_0x3e0a75,_0x5db6d9,_0x200c18){var _0x452aa2=_0x3e77,_0x469f3f=arguments['length'],_0x4c9071=_0x469f3f<0x3?_0x3e0a75:_0x200c18===null?_0x200c18=Object['getOwnPropertyDescriptor'](_0x3e0a75,_0x5db6d9):_0x200c18,_0xdefea2;if(typeof Reflect=='object'&&typeof Reflect[_0x452aa2(0x17c)]=='function')_0x4c9071=Reflect[_0x452aa2(0x17c)](_0x917fa5,_0x3e0a75,_0x5db6d9,_0x200c18);else{for(var _0x23dc93=_0x917fa5['length']-0x1;_0x23dc93>=0x0;_0x23dc93--)(_0xdefea2=_0x917fa5[_0x23dc93])&&(_0x4c9071=(_0x469f3f<0x3?_0xdefea2(_0x4c9071):_0x469f3f>0x3?_0xdefea2(_0x3e0a75,_0x5db6d9,_0x4c9071):_0xdefea2(_0x3e0a75,_0x5db6d9))||_0x4c9071);}return _0x469f3f>0x3&&_0x4c9071&&Object[_0x452aa2(0x151)](_0x3e0a75,_0x5db6d9,_0x4c9071),_0x4c9071;}let b=class{constructor(_0x249e1f,_0x80a068,_0x2150fe){var _0x97f0c8=_0x3e77;this['_document']=_0x249e1f,this[_0x97f0c8(0x15e)]=_0x80a068,this[_0x97f0c8(0x157)]=_0x2150fe,_(this,'_unitId',void 0x0),this[_0x97f0c8(0x154)]=this[_0x97f0c8(0x15f)][_0x97f0c8(0x169)]();}['getId'](){var _0x57ef20=_0x3e77;return this[_0x57ef20(0x15e)];}['getRange'](){var _0x349ee2=_0x3e77;let _0x3b5498=this['_getBlockRange']();return _0x3b5498?{'blockId':_0x3b5498['blockId'],'endIndex':_0x3b5498[_0x349ee2(0x159)],'startIndex':_0x3b5498['startIndex']}:null;}['getText'](){var _0xe8ffa5=_0x3e77,_0x39733d;let _0x1dc5a4=this['_getBlockRange'](),_0x305235=(_0x39733d=this['_getDocumentData']()[_0xe8ffa5(0x158)])==null?void 0x0:_0x39733d['dataStream'];return!_0x1dc5a4||!_0x305235?'':x(_0x305235[_0xe8ffa5(0x15c)](_0x1dc5a4[_0xe8ffa5(0x17e)]+0x1,_0x1dc5a4[_0xe8ffa5(0x159)]));}[_0x523619(0x180)](){var _0x25ce3f=_0x523619;let _0x572501=this[_0x25ce3f(0x171)]();return _0x572501?{..._0x572501,'config':this[_0x25ce3f(0x141)](),'text':this['getText'](),'type':_0x1a5759['CODE']}:null;}['getConfig'](){var _0x25bf1f=_0x523619;let _0x126f12=this[_0x25bf1f(0x157)][_0x25bf1f(0x17f)](_0x1795d6);return _0x5d2e3b(_0x126f12[_0x25bf1f(0x168)](this[_0x25bf1f(0x154)],this[_0x25bf1f(0x15e)]));}[_0x523619(0x144)](_0xd0d1ba){var _0x3b3774=_0x523619;return this[_0x3b3774(0x157)][_0x3b3774(0x17f)](_0x55e8a6)[_0x3b3774(0x14d)](_0x37caab['id'],{'blockId':this[_0x3b3774(0x15e)],'config':_0xd0d1ba[_0x3b3774(0x163)],'unitId':this[_0x3b3774(0x154)]});}[_0x523619(0x179)](){var _0x4095b0=_0x523619;return this['_injector']['get'](_0x55e8a6)['syncExecuteCommand'](_0x5d55d7['id'],{'blockId':this[_0x4095b0(0x15e)],'unitId':this[_0x4095b0(0x154)]});}[_0x523619(0x15b)](){var _0x4a1189=_0x523619;return this['_injector'][_0x4a1189(0x17f)](_0x55e8a6)[_0x4a1189(0x14d)](_0x388fa1['id'],{'blockId':this[_0x4a1189(0x15e)],'unitId':this[_0x4a1189(0x154)]});}[_0x523619(0x16d)](){var _0x59b8e8=_0x523619,_0x19e168;return((_0x19e168=this[_0x59b8e8(0x176)]()[_0x59b8e8(0x158)])==null||(_0x19e168=_0x19e168[_0x59b8e8(0x146)])==null?void 0x0:_0x19e168[_0x59b8e8(0x14f)](_0x1cc644=>_0x1cc644[_0x59b8e8(0x162)]===this[_0x59b8e8(0x15e)]&&_0x1cc644[_0x59b8e8(0x148)]===_0x1a5759[_0x59b8e8(0x155)]))??null;}[_0x523619(0x176)](){var _0x308cab=_0x523619;return this['_document'][_0x308cab(0x187)]();}};b=y([v(0x2,_0x352200(_0x491548))],b);function _0x3e77(_0x8ff20b,_0xa1f21d){_0x8ff20b=_0x8ff20b-0x141;var _0x273dcc=_0x273d();var _0x3e77d2=_0x273dcc[_0x8ff20b];return _0x3e77d2;}function x(_0xaa9811){var _0x7b1757=_0x523619;return Array[_0x7b1757(0x16e)](_0xaa9811)[_0x7b1757(0x16c)](_0x4c79d4=>_0x4c79d4===_0xe08ab3['PARAGRAPH']?'\x0a':_0x4c79d4)['filter'](_0x2e89ba=>_0x2e89ba!==_0xe08ab3[_0x7b1757(0x173)]&&_0x2e89ba!==_0xe08ab3[_0x7b1757(0x17d)]&&_0x2e89ba!==_0xe08ab3[_0x7b1757(0x160)])['join']('')[_0x7b1757(0x150)](/\n$/,'');}var S=class extends _0x5dacc6{[_0x523619(0x145)](){var _0x1c31c3=_0x523619;return this['_getBlockRanges']()[_0x1c31c3(0x153)](_0x4701e5=>_0x4701e5[_0x1c31c3(0x148)]===_0x1a5759['CODE'])[_0x1c31c3(0x16c)](_0x2d2585=>this[_0x1c31c3(0x183)](_0x2d2585[_0x1c31c3(0x162)]));}[_0x523619(0x14a)](_0x4f9c6e){var _0x1a3f5b=_0x523619;return this[_0x1a3f5b(0x181)]()[_0x1a3f5b(0x186)](_0x31a680=>_0x31a680[_0x1a3f5b(0x162)]===_0x4f9c6e&&_0x31a680[_0x1a3f5b(0x148)]===_0x1a5759[_0x1a3f5b(0x155)])?this[_0x1a3f5b(0x183)](_0x4f9c6e):null;}[_0x523619(0x167)](_0x3ab4f4){var _0x1837da=_0x523619;let _0x1912b7=this[_0x1837da(0x181)]()[_0x1837da(0x14f)](_0x4d6e7f=>_0x4d6e7f[_0x1837da(0x148)]===_0x1a5759[_0x1837da(0x155)]&&_0x4d6e7f[_0x1837da(0x17e)]<=_0x3ab4f4&&_0x3ab4f4<=_0x4d6e7f['endIndex']);return _0x1912b7?this[_0x1837da(0x183)](_0x1912b7[_0x1837da(0x162)]):null;}[_0x523619(0x165)](_0x3555cb){return this['findCodes'](_0x3555cb)[0x0]??null;}['findCodes'](_0x96085c){var _0x180fb6=_0x523619;let _0x5898c7=typeof _0x96085c==_0x180fb6(0x149)?{'text':_0x96085c}:_0x96085c;return this[_0x180fb6(0x145)]()[_0x180fb6(0x153)](_0x57de9a=>!(_0x5898c7[_0x180fb6(0x162)]&&_0x57de9a['getId']()!==_0x5898c7['blockId']||_0x5898c7[_0x180fb6(0x142)]&&!_0x57de9a[_0x180fb6(0x15a)]()[_0x180fb6(0x164)](_0x5898c7[_0x180fb6(0x142)])));}[_0x523619(0x175)](_0x45ec4a={},_0x338f7e={}){var _0x18a3d3=_0x523619;let _0x100377=this[_0x18a3d3(0x157)][_0x18a3d3(0x17f)](_0x55e8a6),_0x4b99fe=_0x3dd811(_0x45ec4a)?{..._0x338f7e,..._0x45ec4a['getRange']()}:_0x45ec4a,_0x4f4ec7=_0x4b99fe[_0x18a3d3(0x162)]??_0x535c1d(0x6);return _0x100377[_0x18a3d3(0x14d)](_0x1084c1['id'],{..._0x4b99fe,'blockId':_0x4f4ec7,'unitId':this[_0x18a3d3(0x169)]()})?this[_0x18a3d3(0x14a)](_0x4f4ec7):null;}['_getBlockRanges'](){var _0x36d51a=_0x523619,_0x4e0b53;return((_0x4e0b53=this[_0x36d51a(0x187)]()[_0x36d51a(0x158)])==null?void 0x0:_0x4e0b53['blockRanges'])??[];}[_0x523619(0x183)](_0x400106){var _0x4e0cab=_0x523619;return this[_0x4e0cab(0x157)][_0x4e0cab(0x147)](b,this,_0x400106);}};_0x5dacc6[_0x523619(0x161)](S);export{b as FDocumentCode};