@univerjs-pro/docs-code 0.25.0-insiders.20260618-fa5d5d0 → 0.25.0-insiders.20260622-93bd55a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +4 -4
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x3b6a8c=_0x3143;(function(_0x3b7c2b,_0x419cec){var _0x310d37=_0x3143,_0x1fe182=_0x3b7c2b();while(!![]){try{var _0x406c19=parseInt(_0x310d37(0xe4))/0x1*(-parseInt(_0x310d37(0x12f))/0x2)+parseInt(_0x310d37(0x118))/0x3*(-parseInt(_0x310d37(0x126))/0x4)+parseInt(_0x310d37(0x129))/0x5*(-parseInt(_0x310d37(0xdf))/0x6)+-parseInt(_0x310d37(0xe6))/0x7+-parseInt(_0x310d37(0x11f))/0x8+-parseInt(_0x310d37(0xff))/0x9*(-parseInt(_0x310d37(0x128))/0xa)+parseInt(_0x310d37(0xfa))/0xb;if(_0x406c19===_0x419cec)break;else _0x1fe182['push'](_0x1fe182['shift']());}catch(_0x3e602a){_0x1fe182['push'](_0x1fe182['shift']());}}}(_0x33a2,0x2248f),Object['defineProperty'](exports,Symbol[_0x3b6a8c(0xf9)],{'value':_0x3b6a8c(0xfd)}));let e=require('@univerjs-pro/docs-code'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x515be2){'@babel/helpers - typeof';var _0x1cc0bf=_0x3b6a8c;return r=typeof Symbol==_0x1cc0bf(0x111)&&typeof Symbol[_0x1cc0bf(0xea)]=='symbol'?function(_0x1ff8b3){return typeof _0x1ff8b3;}:function(_0x3efc4c){var _0x2ab15b=_0x1cc0bf;return _0x3efc4c&&typeof Symbol=='function'&&_0x3efc4c[_0x2ab15b(0x12d)]===Symbol&&_0x3efc4c!==Symbol[_0x2ab15b(0x102)]?_0x2ab15b(0xe5):typeof _0x3efc4c;},r(_0x515be2);}function _0x3143(_0xd07e32,_0x549a36){_0xd07e32=_0xd07e32-0xdd;var _0x33a236=_0x33a2();var _0x3143c1=_0x33a236[_0xd07e32];return _0x3143c1;}function i(_0x115033,_0x314199){var _0x325150=_0x3b6a8c;if(r(_0x115033)!=_0x325150(0x125)||!_0x115033)return _0x115033;var _0x58658b=_0x115033[Symbol[_0x325150(0xe9)]];if(_0x58658b!==void 0x0){var _0x3baf72=_0x58658b[_0x325150(0xf0)](_0x115033,_0x314199||'default');if(r(_0x3baf72)!=_0x325150(0x125))return _0x3baf72;throw TypeError(_0x325150(0xf1));}return(_0x314199===_0x325150(0xf2)?String:Number)(_0x115033);}function a(_0x1e191){var _0x1f1875=_0x3b6a8c,_0x4e642d=i(_0x1e191,_0x1f1875(0xf2));return r(_0x4e642d)==_0x1f1875(0xe5)?_0x4e642d:_0x4e642d+'';}function o(_0xae3381,_0x1a88db,_0x17b3a8){return(_0x1a88db=a(_0x1a88db))in _0xae3381?Object['defineProperty'](_0xae3381,_0x1a88db,{'value':_0x17b3a8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xae3381[_0x1a88db]=_0x17b3a8,_0xae3381;}function s(_0x118026,_0x324a51){return function(_0x5b851e,_0x3d985e){_0x324a51(_0x5b851e,_0x3d985e,_0x118026);};}function c(_0x4451a2,_0x326f3c,_0xf20428,_0x5d3020){var _0x120c4c=_0x3b6a8c,_0x147bc4=arguments['length'],_0x2956a8=_0x147bc4<0x3?_0x326f3c:_0x5d3020===null?_0x5d3020=Object['getOwnPropertyDescriptor'](_0x326f3c,_0xf20428):_0x5d3020,_0x398744;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x120c4c(0x111))_0x2956a8=Reflect['decorate'](_0x4451a2,_0x326f3c,_0xf20428,_0x5d3020);else{for(var _0x2c7c9a=_0x4451a2[_0x120c4c(0x109)]-0x1;_0x2c7c9a>=0x0;_0x2c7c9a--)(_0x398744=_0x4451a2[_0x2c7c9a])&&(_0x2956a8=(_0x147bc4<0x3?_0x398744(_0x2956a8):_0x147bc4>0x3?_0x398744(_0x326f3c,_0xf20428,_0x2956a8):_0x398744(_0x326f3c,_0xf20428))||_0x2956a8);}return _0x147bc4>0x3&&_0x2956a8&&Object[_0x120c4c(0x123)](_0x326f3c,_0xf20428,_0x2956a8),_0x2956a8;}let l=class{constructor(_0x27ca3b,_0x56ffab,_0x4ca81e){var _0x14cacd=_0x3b6a8c;this[_0x14cacd(0x10c)]=_0x27ca3b,this[_0x14cacd(0x110)]=_0x56ffab,this[_0x14cacd(0x11a)]=_0x4ca81e,o(this,_0x14cacd(0x12b),void 0x0),this[_0x14cacd(0x12b)]=this['_document'][_0x14cacd(0xe7)]();}[_0x3b6a8c(0xe7)](){var _0x45b14d=_0x3b6a8c;return this[_0x45b14d(0x110)];}[_0x3b6a8c(0xf8)](){var _0x74dfc5=_0x3b6a8c;let _0x2bb843=this[_0x74dfc5(0x130)]();return _0x2bb843?{'blockId':_0x2bb843[_0x74dfc5(0x104)],'endIndex':_0x2bb843[_0x74dfc5(0x11e)],'startIndex':_0x2bb843[_0x74dfc5(0xe8)]}:null;}[_0x3b6a8c(0xe3)](){var _0x17c986=_0x3b6a8c,_0x3dc460;let _0x355132=this[_0x17c986(0x130)](),_0x3479b4=(_0x3dc460=this[_0x17c986(0x120)]()[_0x17c986(0xfb)])==null?void 0x0:_0x3dc460[_0x17c986(0xeb)];return!_0x355132||!_0x3479b4?'':u(_0x3479b4['slice'](_0x355132[_0x17c986(0xe8)]+0x1,_0x355132[_0x17c986(0x11e)]));}[_0x3b6a8c(0xf7)](){var _0x18dc3c=_0x3b6a8c;let _0x47d832=this[_0x18dc3c(0xf8)]();return _0x47d832?{..._0x47d832,'config':this[_0x18dc3c(0xef)](),'text':this['getText'](),'type':t[_0x18dc3c(0x105)][_0x18dc3c(0x101)]}:null;}[_0x3b6a8c(0xef)](){var _0x69b8e9=_0x3b6a8c;return(0x0,e['normalizeDocsCodeConfig'])(this[_0x69b8e9(0x11a)]['get'](e['DocsCodeModel'])[_0x69b8e9(0x10f)](this[_0x69b8e9(0x12b)],this['_blockId']));}['updateConfig'](_0x28e9d6){var _0x9aaad3=_0x3b6a8c;return this[_0x9aaad3(0x11a)][_0x9aaad3(0x10e)](t[_0x9aaad3(0xde)])['syncExecuteCommand'](e[_0x9aaad3(0xdd)]['id'],{'blockId':this['_blockId'],'config':_0x28e9d6[_0x9aaad3(0x10a)],'unitId':this['_unitId']});}[_0x3b6a8c(0xed)](_0x56677f){var _0x3c2d4d=_0x3b6a8c;return this[_0x3c2d4d(0x11a)][_0x3c2d4d(0x10e)](t[_0x3c2d4d(0xde)])[_0x3c2d4d(0xec)](e[_0x3c2d4d(0x11c)]['id'],{'cursorOffset':_0x56677f,'unitId':this[_0x3c2d4d(0x12b)]});}[_0x3b6a8c(0xe2)](_0x6e3503={}){var _0x10ee4d=_0x3b6a8c;return this['_injector'][_0x10ee4d(0x10e)](t[_0x10ee4d(0xde)])['syncExecuteCommand'](e['DocsCodeCancelEmptyParagraphCommand']['id'],{..._0x6e3503,'unitId':this[_0x10ee4d(0x12b)]});}[_0x3b6a8c(0x120)](){var _0x25734f=_0x3b6a8c;return this[_0x25734f(0x10c)]['save']();}[_0x3b6a8c(0x130)](){var _0x23f4bb=_0x3b6a8c,_0x5ecdbb;let _0x1c77e4=(_0x5ecdbb=this[_0x23f4bb(0x120)]()[_0x23f4bb(0xfb)])==null||(_0x5ecdbb=_0x5ecdbb[_0x23f4bb(0x127)])==null?void 0x0:_0x5ecdbb[_0x23f4bb(0x108)](_0x3c5b15=>_0x3c5b15['blockId']===this[_0x23f4bb(0x110)]&&_0x3c5b15[_0x23f4bb(0x113)]===t[_0x23f4bb(0x105)][_0x23f4bb(0x101)]);return _0x1c77e4==null?null:_0x1c77e4;}};l=c([s(0x2,(0x0,t[_0x3b6a8c(0x10d)])(t[_0x3b6a8c(0xe1)]))],l);function _0x33a2(){var _0x5e06bd=['symbol','1574118cOQrng','getId','startIndex','toPrimitive','iterator','dataStream','syncExecuteCommand','exit','FDocumentCode','getConfig','call','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','string','DataStreamTreeTokenType','_getBlockRanges','_createFDocumentCode','save','describe','getRange','toStringTag','7652062RUiFRH','body','text','Module','some','666kxaBjd','replace','CODE','prototype','SECTION_BREAK','blockId','DocumentBlockRangeType','getCode','generateRandomId','find','length','config','DocsCodeCancelEmptyParagraphCommand','_document','Inject','get','getCodeConfig','_blockId','function','paragraph','blockType','BLOCK_START','insertCode','findCodes','getCodeAt','60141ETjgXt','findCodeByText','_injector','cancelEmptyCodeParagraph','DocsCodeExitCommand','extend','endIndex','2011448rYefPD','_getDocumentData','createInstance','DocsCodeInsertCommand','defineProperty','map','object','12NGyZRl','blockRanges','27190xHyAse','15WLkVTu','from','_unitId','getCodes','constructor','FDocument','4KcgqEP','_getBlockRange','DocsCodeUpdateCommand','ICommandService','273498rKouwj','filter','Injector','cancelEmptyParagraph','getText','41611tWeZFm'];_0x33a2=function(){return _0x5e06bd;};return _0x33a2();}function u(_0x4acb99){var _0x5b592d=_0x3b6a8c;return Array[_0x5b592d(0x12a)](_0x4acb99)[_0x5b592d(0x124)](_0x30abbe=>_0x30abbe===t['DataStreamTreeTokenType']['PARAGRAPH']?'\x0a':_0x30abbe)[_0x5b592d(0xe0)](_0x47aa9a=>_0x47aa9a!==t[_0x5b592d(0xf3)][_0x5b592d(0x114)]&&_0x47aa9a!==t[_0x5b592d(0xf3)]['BLOCK_END']&&_0x47aa9a!==t[_0x5b592d(0xf3)][_0x5b592d(0x103)])['join']('')[_0x5b592d(0x100)](/\n$/,'');}var d=class extends n[_0x3b6a8c(0x12e)]{['getCodes'](){var _0x570e39=_0x3b6a8c;return this['_getBlockRanges']()[_0x570e39(0xe0)](_0x165636=>_0x165636[_0x570e39(0x113)]===t[_0x570e39(0x105)][_0x570e39(0x101)])['map'](_0x34ed6b=>this[_0x570e39(0xf5)](_0x34ed6b['blockId']));}[_0x3b6a8c(0x106)](_0x40bc26){var _0x1f26cb=_0x3b6a8c;return this[_0x1f26cb(0xf4)]()[_0x1f26cb(0xfe)](_0x2154ae=>_0x2154ae[_0x1f26cb(0x104)]===_0x40bc26&&_0x2154ae[_0x1f26cb(0x113)]===t[_0x1f26cb(0x105)]['CODE'])?this['_createFDocumentCode'](_0x40bc26):null;}[_0x3b6a8c(0x117)](_0x1997c1){var _0x13e64e=_0x3b6a8c;let _0x357a93=this[_0x13e64e(0xf4)]()[_0x13e64e(0x108)](_0x5ba1cb=>_0x5ba1cb[_0x13e64e(0x113)]===t[_0x13e64e(0x105)][_0x13e64e(0x101)]&&_0x5ba1cb['startIndex']<=_0x1997c1&&_0x1997c1<=_0x5ba1cb[_0x13e64e(0x11e)]);return _0x357a93?this[_0x13e64e(0xf5)](_0x357a93[_0x13e64e(0x104)]):null;}[_0x3b6a8c(0x119)](_0x2077cf){var _0x368ce4;return(_0x368ce4=this['findCodes'](_0x2077cf)[0x0])==null?null:_0x368ce4;}[_0x3b6a8c(0x116)](_0x3fb8e2){var _0x342cf7=_0x3b6a8c;let _0x52f217=typeof _0x3fb8e2==_0x342cf7(0xf2)?{'text':_0x3fb8e2}:_0x3fb8e2;return this[_0x342cf7(0x12c)]()['filter'](_0x32a75e=>!(_0x52f217[_0x342cf7(0x104)]&&_0x32a75e['getId']()!==_0x52f217[_0x342cf7(0x104)]||_0x52f217['text']&&!_0x32a75e[_0x342cf7(0xe3)]()['includes'](_0x52f217[_0x342cf7(0xfc)])));}[_0x3b6a8c(0x115)](_0x1bc16b={},_0x127b6f={}){var _0x4f8553=_0x3b6a8c,_0x4cb325;let _0x45c27e=this[_0x4f8553(0x11a)]['get'](t[_0x4f8553(0xde)]),_0xf66708=f(_0x1bc16b)?{..._0x127b6f,...p(_0x1bc16b)}:_0x1bc16b,_0x4b5aed=(_0x4cb325=_0xf66708[_0x4f8553(0x104)])==null?(0x0,t[_0x4f8553(0x107)])(0x6):_0x4cb325;return _0x45c27e[_0x4f8553(0xec)](e[_0x4f8553(0x122)]['id'],{..._0xf66708,'blockId':_0x4b5aed,'unitId':this[_0x4f8553(0xe7)]()})?this[_0x4f8553(0xf5)](_0x4b5aed):null;}['exitCode'](_0xd4237f){var _0x5a613a=_0x3b6a8c;return this[_0x5a613a(0x11a)][_0x5a613a(0x10e)](t[_0x5a613a(0xde)])[_0x5a613a(0xec)](e['DocsCodeExitCommand']['id'],{'cursorOffset':_0xd4237f,'unitId':this[_0x5a613a(0xe7)]()});}[_0x3b6a8c(0x11b)](_0x2c815b={}){var _0x182595=_0x3b6a8c;return this['_injector']['get'](t[_0x182595(0xde)])[_0x182595(0xec)](e[_0x182595(0x10b)]['id'],{..._0x2c815b,'unitId':this[_0x182595(0xe7)]()});}[_0x3b6a8c(0xf4)](){var _0x2bff6c=_0x3b6a8c,_0x2aea85,_0x356d20;return(_0x2aea85=(_0x356d20=this[_0x2bff6c(0xf6)]()[_0x2bff6c(0xfb)])==null?void 0x0:_0x356d20[_0x2bff6c(0x127)])==null?[]:_0x2aea85;}[_0x3b6a8c(0xf5)](_0x11e5ba){var _0x19012b=_0x3b6a8c;return this[_0x19012b(0x11a)][_0x19012b(0x121)](l,this,_0x11e5ba);}};function f(_0x26e0f8){var _0x39de02=_0x3b6a8c;return typeof _0x26e0f8==_0x39de02(0x125)&&!!_0x26e0f8&&typeof _0x26e0f8['getKey']==_0x39de02(0x111)&&typeof _0x26e0f8[_0x39de02(0xf8)]==_0x39de02(0x111)&&typeof _0x26e0f8['getType']==_0x39de02(0x111)&&_0x26e0f8['getType']()===_0x39de02(0x112);}function p(_0xa7acd9){var _0x580591=_0x3b6a8c;return _0xa7acd9[_0x580591(0xf8)]();}n[_0x3b6a8c(0x12e)][_0x3b6a8c(0x11d)](d),Object[_0x3b6a8c(0x123)](exports,_0x3b6a8c(0xee),{'enumerable':!0x0,'get':function(){return l;}});
|
|
1
|
+
var _0x569145=_0x57db;(function(_0x4628b6,_0x1983b0){var _0x494b14=_0x57db,_0x543b96=_0x4628b6();while(!![]){try{var _0x16a39b=parseInt(_0x494b14(0xa8))/0x1+parseInt(_0x494b14(0xa0))/0x2+parseInt(_0x494b14(0x9a))/0x3+-parseInt(_0x494b14(0xad))/0x4*(parseInt(_0x494b14(0xc8))/0x5)+-parseInt(_0x494b14(0x98))/0x6*(parseInt(_0x494b14(0xd5))/0x7)+-parseInt(_0x494b14(0xab))/0x8+-parseInt(_0x494b14(0xe3))/0x9*(-parseInt(_0x494b14(0xcd))/0xa);if(_0x16a39b===_0x1983b0)break;else _0x543b96['push'](_0x543b96['shift']());}catch(_0x1e5bab){_0x543b96['push'](_0x543b96['shift']());}}}(_0x440c,0x896b1),Object[_0x569145(0x97)](exports,Symbol[_0x569145(0xc9)],{'value':_0x569145(0xac)}));let e=require('@univerjs-pro/docs-code'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x565296){'@babel/helpers - typeof';var _0xd7894a=_0x569145;return r=typeof Symbol==_0xd7894a(0xbf)&&typeof Symbol[_0xd7894a(0xc6)]=='symbol'?function(_0x28757c){return typeof _0x28757c;}:function(_0x1e11d3){var _0x431bd0=_0xd7894a;return _0x1e11d3&&typeof Symbol==_0x431bd0(0xbf)&&_0x1e11d3['constructor']===Symbol&&_0x1e11d3!==Symbol[_0x431bd0(0xaa)]?_0x431bd0(0x99):typeof _0x1e11d3;},r(_0x565296);}function i(_0x4f3d85,_0x2a7c02){var _0x26da94=_0x569145;if(r(_0x4f3d85)!=_0x26da94(0x95)||!_0x4f3d85)return _0x4f3d85;var _0x336975=_0x4f3d85[Symbol['toPrimitive']];if(_0x336975!==void 0x0){var _0x7c4e27=_0x336975['call'](_0x4f3d85,_0x2a7c02||_0x26da94(0xcf));if(r(_0x7c4e27)!=_0x26da94(0x95))return _0x7c4e27;throw TypeError(_0x26da94(0xe8));}return(_0x2a7c02===_0x26da94(0xb2)?String:Number)(_0x4f3d85);}function a(_0x1ec15f){var _0x222c1a=_0x569145,_0x4da682=i(_0x1ec15f,_0x222c1a(0xb2));return r(_0x4da682)=='symbol'?_0x4da682:_0x4da682+'';}function _0x440c(){var _0x121000=['_createFDocumentCode','FDocument','getCode','length','iterator','findCodes','3288010XPJwcT','toStringTag','_document','describe','slice','10danRRm','startIndex','default','CODE','FDocumentCode','from','blockRanges','Injector','2375681CyBCHC','_injector','DocsCodeInsertCommand','ICommandService','DocsCodeExitCommand','_blockId','blockId','SECTION_BREAK','cancelEmptyCodeParagraph','DocsCodeModel','updateConfig','join','DocumentBlockRangeType','text','5165613kciUHv','some','exit','BLOCK_END','get','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getConfig','object','endIndex','defineProperty','6DFrxtr','symbol','3224220ZJuuae','DocsCodeUpdateCommand','decorate','createInstance','extend','_getDocumentData','147350KmtYRy','getKey','DocsCodeCancelEmptyParagraphCommand','_getBlockRanges','filter','save','_unitId','PARAGRAPH','737184CyXGoi','cancelEmptyParagraph','prototype','7197648gXICxc','Module','4nGzYyr','getCodeConfig','getId','find','blockType','string','DataStreamTreeTokenType','findCodeByText','BLOCK_START','normalizeDocsCodeConfig','_getBlockRange','body','generateRandomId','getRange','syncExecuteCommand','getText','map','includes','function','getOwnPropertyDescriptor','dataStream'];_0x440c=function(){return _0x121000;};return _0x440c();}function o(_0x121b8b,_0x388d9a,_0x149c1b){var _0xb91d8e=_0x569145;return(_0x388d9a=a(_0x388d9a))in _0x121b8b?Object[_0xb91d8e(0x97)](_0x121b8b,_0x388d9a,{'value':_0x149c1b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x121b8b[_0x388d9a]=_0x149c1b,_0x121b8b;}function s(_0x4357c0,_0x40ab4a){return function(_0x3a43d3,_0x2b7018){_0x40ab4a(_0x3a43d3,_0x2b7018,_0x4357c0);};}function c(_0x1e0eb6,_0x26774c,_0x2e63e5,_0xf5bd45){var _0x41dfa5=_0x569145,_0x29925f=arguments[_0x41dfa5(0xc5)],_0x114de7=_0x29925f<0x3?_0x26774c:_0xf5bd45===null?_0xf5bd45=Object[_0x41dfa5(0xc0)](_0x26774c,_0x2e63e5):_0xf5bd45,_0x36b11f;if(typeof Reflect=='object'&&typeof Reflect['decorate']=='function')_0x114de7=Reflect[_0x41dfa5(0x9c)](_0x1e0eb6,_0x26774c,_0x2e63e5,_0xf5bd45);else{for(var _0x1aa561=_0x1e0eb6['length']-0x1;_0x1aa561>=0x0;_0x1aa561--)(_0x36b11f=_0x1e0eb6[_0x1aa561])&&(_0x114de7=(_0x29925f<0x3?_0x36b11f(_0x114de7):_0x29925f>0x3?_0x36b11f(_0x26774c,_0x2e63e5,_0x114de7):_0x36b11f(_0x26774c,_0x2e63e5))||_0x114de7);}return _0x29925f>0x3&&_0x114de7&&Object[_0x41dfa5(0x97)](_0x26774c,_0x2e63e5,_0x114de7),_0x114de7;}let l=class{constructor(_0x12c05b,_0x4af466,_0x46a96e){var _0x49b8b7=_0x569145;this[_0x49b8b7(0xca)]=_0x12c05b,this['_blockId']=_0x4af466,this[_0x49b8b7(0xd6)]=_0x46a96e,o(this,'_unitId',void 0x0),this['_unitId']=this[_0x49b8b7(0xca)][_0x49b8b7(0xaf)]();}['getId'](){var _0x69ea0b=_0x569145;return this[_0x69ea0b(0xda)];}[_0x569145(0xba)](){var _0x81daa5=_0x569145;let _0x1747e3=this['_getBlockRange']();return _0x1747e3?{'blockId':_0x1747e3[_0x81daa5(0xdb)],'endIndex':_0x1747e3[_0x81daa5(0x96)],'startIndex':_0x1747e3[_0x81daa5(0xce)]}:null;}[_0x569145(0xbc)](){var _0xa529e9=_0x569145,_0x6b17dc;let _0x6ad2b6=this[_0xa529e9(0xb7)](),_0x207646=(_0x6b17dc=this[_0xa529e9(0x9f)]()[_0xa529e9(0xb8)])==null?void 0x0:_0x6b17dc[_0xa529e9(0xc1)];return!_0x6ad2b6||!_0x207646?'':u(_0x207646[_0xa529e9(0xcc)](_0x6ad2b6['startIndex']+0x1,_0x6ad2b6[_0xa529e9(0x96)]));}[_0x569145(0xcb)](){var _0x1902b0=_0x569145;let _0x299e28=this[_0x1902b0(0xba)]();return _0x299e28?{..._0x299e28,'config':this[_0x1902b0(0x94)](),'text':this[_0x1902b0(0xbc)](),'type':t['DocumentBlockRangeType'][_0x1902b0(0xd0)]}:null;}[_0x569145(0x94)](){var _0x546cfc=_0x569145;return(0x0,e[_0x546cfc(0xb6)])(this[_0x546cfc(0xd6)][_0x546cfc(0xe7)](e[_0x546cfc(0xde)])[_0x546cfc(0xae)](this['_unitId'],this[_0x546cfc(0xda)]));}[_0x569145(0xdf)](_0x576a11){var _0x3b9539=_0x569145;return this[_0x3b9539(0xd6)][_0x3b9539(0xe7)](t[_0x3b9539(0xd8)])['syncExecuteCommand'](e[_0x3b9539(0x9b)]['id'],{'blockId':this[_0x3b9539(0xda)],'config':_0x576a11['config'],'unitId':this[_0x3b9539(0xa6)]});}[_0x569145(0xe5)](_0x381157){var _0x520d8f=_0x569145;return this[_0x520d8f(0xd6)][_0x520d8f(0xe7)](t[_0x520d8f(0xd8)])[_0x520d8f(0xbb)](e[_0x520d8f(0xd9)]['id'],{'cursorOffset':_0x381157,'unitId':this['_unitId']});}[_0x569145(0xa9)](_0x301271={}){var _0x8076db=_0x569145;return this['_injector'][_0x8076db(0xe7)](t['ICommandService'])['syncExecuteCommand'](e[_0x8076db(0xa2)]['id'],{..._0x301271,'unitId':this[_0x8076db(0xa6)]});}['_getDocumentData'](){var _0x355e01=_0x569145;return this[_0x355e01(0xca)][_0x355e01(0xa5)]();}[_0x569145(0xb7)](){var _0x1b6b67=_0x569145,_0x16276f;let _0x8b05e5=(_0x16276f=this[_0x1b6b67(0x9f)]()[_0x1b6b67(0xb8)])==null||(_0x16276f=_0x16276f[_0x1b6b67(0xd3)])==null?void 0x0:_0x16276f[_0x1b6b67(0xb0)](_0x30a8b6=>_0x30a8b6[_0x1b6b67(0xdb)]===this[_0x1b6b67(0xda)]&&_0x30a8b6[_0x1b6b67(0xb1)]===t[_0x1b6b67(0xe1)]['CODE']);return _0x8b05e5==null?null:_0x8b05e5;}};l=c([s(0x2,(0x0,t['Inject'])(t[_0x569145(0xd4)]))],l);function u(_0x1c366c){var _0x2f894d=_0x569145;return Array[_0x2f894d(0xd2)](_0x1c366c)[_0x2f894d(0xbd)](_0x102e80=>_0x102e80===t[_0x2f894d(0xb3)][_0x2f894d(0xa7)]?'\x0a':_0x102e80)['filter'](_0x1c5e20=>_0x1c5e20!==t[_0x2f894d(0xb3)][_0x2f894d(0xb5)]&&_0x1c5e20!==t['DataStreamTreeTokenType'][_0x2f894d(0xe6)]&&_0x1c5e20!==t[_0x2f894d(0xb3)][_0x2f894d(0xdc)])[_0x2f894d(0xe0)]('')['replace'](/\n$/,'');}var d=class extends n[_0x569145(0xc3)]{['getCodes'](){var _0x1bfa4e=_0x569145;return this['_getBlockRanges']()[_0x1bfa4e(0xa4)](_0x41bdae=>_0x41bdae[_0x1bfa4e(0xb1)]===t[_0x1bfa4e(0xe1)][_0x1bfa4e(0xd0)])[_0x1bfa4e(0xbd)](_0xf258c4=>this['_createFDocumentCode'](_0xf258c4[_0x1bfa4e(0xdb)]));}[_0x569145(0xc4)](_0x68f277){var _0x505d56=_0x569145;return this[_0x505d56(0xa3)]()[_0x505d56(0xe4)](_0x533fce=>_0x533fce[_0x505d56(0xdb)]===_0x68f277&&_0x533fce['blockType']===t['DocumentBlockRangeType']['CODE'])?this['_createFDocumentCode'](_0x68f277):null;}['getCodeAt'](_0x229cb9){var _0xf1060f=_0x569145;let _0x1d7252=this[_0xf1060f(0xa3)]()[_0xf1060f(0xb0)](_0x4fe738=>_0x4fe738[_0xf1060f(0xb1)]===t[_0xf1060f(0xe1)][_0xf1060f(0xd0)]&&_0x4fe738[_0xf1060f(0xce)]<=_0x229cb9&&_0x229cb9<=_0x4fe738['endIndex']);return _0x1d7252?this[_0xf1060f(0xc2)](_0x1d7252[_0xf1060f(0xdb)]):null;}[_0x569145(0xb4)](_0x4743d5){var _0x32d865;return(_0x32d865=this['findCodes'](_0x4743d5)[0x0])==null?null:_0x32d865;}[_0x569145(0xc7)](_0x40843f){var _0x3e2db8=_0x569145;let _0x142b60=typeof _0x40843f==_0x3e2db8(0xb2)?{'text':_0x40843f}:_0x40843f;return this['getCodes']()['filter'](_0x460510=>!(_0x142b60['blockId']&&_0x460510[_0x3e2db8(0xaf)]()!==_0x142b60[_0x3e2db8(0xdb)]||_0x142b60[_0x3e2db8(0xe2)]&&!_0x460510[_0x3e2db8(0xbc)]()[_0x3e2db8(0xbe)](_0x142b60[_0x3e2db8(0xe2)])));}['insertCode'](_0x49b3c0={},_0x222a04={}){var _0x33b4e2=_0x569145,_0xc84151;let _0xdf2187=this[_0x33b4e2(0xd6)][_0x33b4e2(0xe7)](t[_0x33b4e2(0xd8)]),_0x4933e5=f(_0x49b3c0)?{..._0x222a04,...p(_0x49b3c0)}:_0x49b3c0,_0x3beb5f=(_0xc84151=_0x4933e5[_0x33b4e2(0xdb)])==null?(0x0,t[_0x33b4e2(0xb9)])(0x6):_0xc84151;return _0xdf2187[_0x33b4e2(0xbb)](e[_0x33b4e2(0xd7)]['id'],{..._0x4933e5,'blockId':_0x3beb5f,'unitId':this[_0x33b4e2(0xaf)]()})?this['_createFDocumentCode'](_0x3beb5f):null;}['exitCode'](_0xefd072){var _0x47d25a=_0x569145;return this[_0x47d25a(0xd6)]['get'](t['ICommandService'])[_0x47d25a(0xbb)](e['DocsCodeExitCommand']['id'],{'cursorOffset':_0xefd072,'unitId':this[_0x47d25a(0xaf)]()});}[_0x569145(0xdd)](_0xf26d85={}){var _0x4629e3=_0x569145;return this[_0x4629e3(0xd6)]['get'](t[_0x4629e3(0xd8)])[_0x4629e3(0xbb)](e[_0x4629e3(0xa2)]['id'],{..._0xf26d85,'unitId':this[_0x4629e3(0xaf)]()});}['_getBlockRanges'](){var _0x5cc0ea=_0x569145,_0x1efcfa,_0x2b52d2;return(_0x1efcfa=(_0x2b52d2=this['save']()['body'])==null?void 0x0:_0x2b52d2[_0x5cc0ea(0xd3)])==null?[]:_0x1efcfa;}[_0x569145(0xc2)](_0x5029c9){var _0x108b12=_0x569145;return this[_0x108b12(0xd6)][_0x108b12(0x9d)](l,this,_0x5029c9);}};function f(_0x2595a3){var _0x4da347=_0x569145;return typeof _0x2595a3=='object'&&!!_0x2595a3&&typeof _0x2595a3[_0x4da347(0xa1)]==_0x4da347(0xbf)&&typeof _0x2595a3[_0x4da347(0xba)]==_0x4da347(0xbf)&&typeof _0x2595a3['getType']=='function'&&_0x2595a3['getType']()==='paragraph';}function p(_0x3bc343){var _0x2df2bd=_0x569145;return _0x3bc343[_0x2df2bd(0xba)]();}function _0x57db(_0x3d6c8e,_0x3d6d54){_0x3d6c8e=_0x3d6c8e-0x94;var _0x440c44=_0x440c();var _0x57db4a=_0x440c44[_0x3d6c8e];return _0x57db4a;}n[_0x569145(0xc3)][_0x569145(0x9e)](d),Object[_0x569145(0x97)](exports,_0x569145(0xd1),{'enumerable':!0x0,'get':function(){return l;}});
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x112416=_0x2981;(function(_0x2c6a71,_0x3abbed){const _0x2053b9=_0x2981,_0x3abb5e=_0x2c6a71();while(!![]){try{const _0x2efe24=parseInt(_0x2053b9(0x22f))/0x1+parseInt(_0x2053b9(0x229))/0x2*(-parseInt(_0x2053b9(0x1c6))/0x3)+parseInt(_0x2053b9(0x1e8))/0x4+-parseInt(_0x2053b9(0x1c0))/0x5+parseInt(_0x2053b9(0x1db))/0x6*(parseInt(_0x2053b9(0x240))/0x7)+parseInt(_0x2053b9(0x1fb))/0x8*(parseInt(_0x2053b9(0x25a))/0x9)+-parseInt(_0x2053b9(0x244))/0xa*(parseInt(_0x2053b9(0x219))/0xb);if(_0x2efe24===_0x3abbed)break;else _0x3abb5e['push'](_0x3abb5e['shift']());}catch(_0x3fc581){_0x3abb5e['push'](_0x3abb5e['shift']());}}}(_0x1db5,0xd2bcc),Object[_0x112416(0x1c1)](exports,Symbol[_0x112416(0x1ed)],{'value':_0x112416(0x1d9)}));function _0x2981(_0x4d01df,_0x11db63){_0x4d01df=_0x4d01df-0x1ba;const _0x1db5f1=_0x1db5();let _0x298137=_0x1db5f1[_0x4d01df];return _0x298137;}let e=require('@univerjs/core'),t=require('@univerjs/docs'),n=require('rxjs'),r=require('@univerjs-pro/license');const i={'language':'javascript','showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function a(_0x302ea3){return{...i,..._0x302ea3};}function o(_0x3336d3){const _0xeed70c=_0x112416;var _0x3e28ad;let _0x541e83=(_0x3e28ad=_0x3336d3==null?void 0x0:_0x3336d3[_0xeed70c(0x22e)])==null?{}:_0x3e28ad;return{'codes':Object[_0xeed70c(0x249)](Object[_0xeed70c(0x23e)](_0x541e83)[_0xeed70c(0x223)](([_0x6ed8bf,_0x13c366])=>[_0x6ed8bf,a(_0x13c366)]))};}function s(_0x22042b,_0x199bdb,_0x401a8d){const _0x19cb25=_0x112416;let _0x143ab0=o(_0x22042b);return _0x143ab0[_0x19cb25(0x22e)][_0x199bdb]=a({..._0x143ab0['codes'][_0x199bdb],..._0x401a8d}),_0x143ab0;}function c(_0x58afd7,_0x3e0362){const _0x56f124=_0x112416;let _0x5d91c7=o(_0x58afd7);return delete _0x5d91c7[_0x56f124(0x22e)][_0x3e0362],_0x5d91c7;}const l='monospace';function u(_0x4a65d9){const _0x2d156d=_0x112416;var _0x1c378c,_0x1eeb85,_0x4eb162;let _0x1dc51f=w(_0x4a65d9['documentData']),_0x3554a4=T(_0x1dc51f),_0x314b27=f(_0x4a65d9[_0x2d156d(0x1d4)],_0x4a65d9[_0x2d156d(0x200)]),_0x2f4cad=_0x314b27?(_0x1c378c=_0x3554a4[_0x2d156d(0x220)])==null?void 0x0:_0x1c378c['find'](_0x22a8c6=>_0x22a8c6[_0x2d156d(0x1de)]===_0x314b27[_0x2d156d(0x1d4)]&&_0x22a8c6[_0x2d156d(0x20e)]+0x1===_0x314b27[_0x2d156d(0x200)]):void 0x0,{startOffset:_0x240bac,endOffset:_0x471692}=_0x2f4cad?_0x314b27:te(_0x3554a4,_0x4a65d9[_0x2d156d(0x1d4)],_0x4a65d9[_0x2d156d(0x200)]),_0x85dff1=ie(_0x3554a4,_0x240bac,_0x471692),_0x3a7144=(_0x1eeb85=_0x2f4cad==null?void 0x0:_0x2f4cad[_0x2d156d(0x1cd)])==null?_0x4a65d9[_0x2d156d(0x1cd)]:_0x1eeb85,_0x16c1b1=s(_0x4a65d9[_0x2d156d(0x259)],_0x3a7144,{...i,..._0x4a65d9['config']});if(_0x2f4cad)return _0x2f4cad[_0x2d156d(0x21e)]=e[_0x2d156d(0x208)][_0x2d156d(0x1bd)],d(_0x3554a4,_0x240bac,_0x471692),x(_0x3554a4,_0x240bac,_0x471692,_0x85dff1),O(_0x3554a4,_0x2f4cad),{'nextDocumentData':_0x1dc51f,'nextMetadata':_0x16c1b1,'cursorOffset':_0x240bac+0x1};if(_0x240bac===_0x471692){var _0x22966a,_0x780ec8;let _0x591667=''+e[_0x2d156d(0x215)][_0x2d156d(0x241)]+e[_0x2d156d(0x215)][_0x2d156d(0x224)]+e[_0x2d156d(0x215)][_0x2d156d(0x257)];k(_0x3554a4,_0x240bac,_0x591667,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e[_0x2d156d(0x1e1)])(new Set((_0x22966a=_0x3554a4[_0x2d156d(0x227)])==null?void 0x0:_0x22966a[_0x2d156d(0x223)](_0x1b5d90=>_0x1b5d90[_0x2d156d(0x236)]))),'paragraphStyle':b(!0x0,!0x0,_0x85dff1)}],'blockRanges':[{'blockId':_0x3a7144,'blockType':e['DocumentBlockRangeType'][_0x2d156d(0x1bd)],'startIndex':0x0,'endIndex':_0x591667[_0x2d156d(0x24f)]-0x1}]});let _0x42675d=(_0x780ec8=_0x3554a4[_0x2d156d(0x220)])==null?void 0x0:_0x780ec8[_0x2d156d(0x1d3)](_0x4c9e20=>_0x4c9e20[_0x2d156d(0x1cd)]===_0x3a7144);return _0x42675d&&O(_0x3554a4,_0x42675d),{'nextDocumentData':_0x1dc51f,'nextMetadata':_0x16c1b1,'cursorOffset':_0x240bac+0x1};}k(_0x3554a4,_0x471692,e['DataStreamTreeTokenType']['BLOCK_END']),k(_0x3554a4,_0x240bac,e['DataStreamTreeTokenType'][_0x2d156d(0x241)]),x(_0x3554a4,_0x240bac,_0x471692+0x1,_0x85dff1);let _0x5536f7={'blockId':_0x3a7144,'blockType':e[_0x2d156d(0x208)][_0x2d156d(0x1bd)],'startIndex':_0x240bac,'endIndex':_0x471692+0x1};return _0x3554a4[_0x2d156d(0x220)]=[...(_0x4eb162=_0x3554a4[_0x2d156d(0x220)])==null?[]:_0x4eb162,_0x5536f7]['sort']((_0x31df73,_0x225ec9)=>_0x31df73['startIndex']-_0x225ec9[_0x2d156d(0x1de)]),O(_0x3554a4,_0x5536f7),{'nextDocumentData':_0x1dc51f,'nextMetadata':_0x16c1b1,'cursorOffset':_0x240bac+0x1};}function d(_0x2d3bce,_0xcb479d,_0x2c42f1){const _0x58887f=_0x112416;var _0x2dec8c;((_0x2dec8c=_0x2d3bce[_0x58887f(0x227)])==null?[]:_0x2dec8c)[_0x58887f(0x245)](_0x42efbc=>_0x42efbc['startIndex']>_0xcb479d&&_0x42efbc[_0x58887f(0x1de)]<_0x2c42f1)['forEach'](_0x13934f=>{const _0x566ac3=_0x58887f;var _0x1ed7e8;let _0x5d0a50={...(_0x1ed7e8=_0x13934f[_0x566ac3(0x1be)])==null?{}:_0x1ed7e8};delete _0x5d0a50[_0x566ac3(0x1fc)],delete _0x5d0a50[_0x566ac3(0x1c3)],_0x13934f[_0x566ac3(0x1be)]=_0x5d0a50;});}function f(_0x39b378,_0x246a49){const _0x5c1b31=_0x112416;return _0x39b378==null||_0x246a49==null||_0x39b378===_0x246a49?null:{'startOffset':Math[_0x5c1b31(0x1ec)](_0x39b378,_0x246a49),'endOffset':Math[_0x5c1b31(0x1cb)](_0x39b378,_0x246a49)};}function p(_0x97d1ed){const _0x2ab678=_0x112416;return{'nextDocumentData':w(_0x97d1ed[_0x2ab678(0x1d6)]),'nextMetadata':s(_0x97d1ed[_0x2ab678(0x259)],_0x97d1ed[_0x2ab678(0x1cd)],_0x97d1ed[_0x2ab678(0x1c2)]),'cursorOffset':0x0};}function m(_0x341713){const _0x2d58e9=_0x112416;var _0x1e7e4c,_0x313b79;let _0x1c0f4b=w(_0x341713[_0x2d58e9(0x1d6)]),_0x1902f2=T(_0x1c0f4b),_0x28812b=y(_0x1902f2,_0x341713['cursorOffset']);if(!_0x28812b)return null;let _0x310fc0=C(_0x1902f2,_0x28812b),_0x330ddf=_0x310fc0[_0x310fc0[_0x2d58e9(0x24f)]-0x1];if(!_0x330ddf||!ee(_0x1902f2,_0x28812b,_0x330ddf)||_0x341713['cursorOffset']<_0x330ddf['startIndex'])return null;let _0xa046b=oe(_0x1902f2,_0x28812b,_0x330ddf);if(_0xa046b>=_0x28812b[_0x2d58e9(0x20e)])return null;_0x1902f2[_0x2d58e9(0x1e2)]=[_0x1902f2[_0x2d58e9(0x1e2)]['slice'](0x0,_0xa046b),e[_0x2d58e9(0x215)][_0x2d58e9(0x257)],_0x1902f2[_0x2d58e9(0x1e2)][_0x2d58e9(0x1bb)](_0xa046b,_0x28812b['endIndex']),_0x1902f2[_0x2d58e9(0x1e2)]['slice'](_0x28812b[_0x2d58e9(0x20e)]+0x1)][_0x2d58e9(0x209)](''),P(_0x1902f2[_0x2d58e9(0x227)],_0xa046b,_0x28812b[_0x2d58e9(0x20e)],0x1),P(_0x1902f2[_0x2d58e9(0x21f)],_0xa046b,_0x28812b[_0x2d58e9(0x20e)],0x1),P(_0x1902f2['customBlocks'],_0xa046b,_0x28812b[_0x2d58e9(0x20e)],0x1),fe(_0x1902f2[_0x2d58e9(0x1fa)],_0xa046b,_0x28812b[_0x2d58e9(0x20e)],0x1),F(_0x1902f2[_0x2d58e9(0x203)],_0xa046b,_0x28812b[_0x2d58e9(0x20e)],0x1),F(_0x1902f2[_0x2d58e9(0x251)],_0xa046b,_0x28812b[_0x2d58e9(0x20e)],0x1),F(_0x1902f2[_0x2d58e9(0x23a)],_0xa046b,_0x28812b[_0x2d58e9(0x20e)],0x1),(_0x1e7e4c=_0x1902f2['blockRanges'])==null||_0x1e7e4c['forEach'](_0x1652f5=>{const _0x4b4f58=_0x2d58e9;_0x1652f5===_0x28812b||_0x1652f5['blockId']===_0x28812b[_0x4b4f58(0x1cd)]?_0x1652f5[_0x4b4f58(0x20e)]=_0xa046b:_0x1652f5[_0x4b4f58(0x1de)]>=_0xa046b&&_0x1652f5['startIndex']<_0x28812b[_0x4b4f58(0x20e)]&&(_0x1652f5[_0x4b4f58(0x1de)]+=0x1,_0x1652f5[_0x4b4f58(0x20e)]+=0x1);});let _0x6f7ac0=C(_0x1902f2,{..._0x28812b,'endIndex':_0xa046b});_0x6f7ac0[_0x2d58e9(0x24a)]((_0x26eae3,_0x8c471e)=>{const _0x23db61=_0x2d58e9;var _0x8eaa88;_0x26eae3[_0x23db61(0x1be)]={...(_0x8eaa88=_0x26eae3['paragraphStyle'])==null?{}:_0x8eaa88,...b(_0x8c471e===0x0,_0x8c471e===_0x6f7ac0[_0x23db61(0x24f)]-0x1)};});let _0x5095c6=(_0x313b79=_0x1902f2['paragraphs'])==null?void 0x0:_0x313b79['find'](_0x5ee393=>_0x5ee393[_0x2d58e9(0x1de)]===_0xa046b+0x1);return _0x5095c6&&(_0x5095c6[_0x2d58e9(0x1be)]=S(_0x5095c6[_0x2d58e9(0x1be)])),{'nextDocumentData':_0x1c0f4b,'cursorOffset':_0xa046b+0x1};}function h(_0x193dc){const _0x19e0e0=_0x112416;let _0x50e7de=w(_0x193dc['documentData']),_0x56c5f4=T(_0x50e7de),_0x159ef4=y(_0x56c5f4,_0x193dc[_0x19e0e0(0x1d2)]);return _0x159ef4&&g(_0x50e7de,_0x56c5f4,_0x159ef4,_0x193dc['cursorOffset'],_0x193dc[_0x19e0e0(0x1eb)])||null;}function g(_0x24c905,_0x4f6176,_0x533bb2,_0x14c988,_0xe4542e){const _0x5ca23e=_0x112416;let _0x5d3e72=se(_0x4f6176,_0x533bb2,_0x14c988,_0xe4542e);if(!_0x5d3e72)return null;let _0x5eeac6=_0x5d3e72['endTokenOffset']-0x1;return ce(_0x4f6176,_0x5d3e72[_0x5ca23e(0x1ca)][_0x5ca23e(0x1de)],_0x5d3e72[_0x5ca23e(0x1ca)]['startIndex']+0x1),{'nextDocumentData':_0x24c905,'cursorOffset':_0x5eeac6};}function _(_0x340a3b,_0x12c8db){const _0x510442=_0x112416;var _0x37f89d;return _0x340a3b==null||(_0x37f89d=_0x340a3b['blockRanges'])==null?void 0x0:_0x37f89d[_0x510442(0x1d3)](_0x431197=>_0x431197['blockType']===e[_0x510442(0x208)][_0x510442(0x1bd)]&&_0x431197[_0x510442(0x1de)]<=_0x12c8db&&_0x12c8db<=_0x431197['endIndex']);}function v(_0x3a4ec9){const _0x1abd21=_0x112416;var _0x2c8990;let _0x289c29=_0x3a4ec9['documentData']['body'];if(!_0x289c29)return!0x1;let _0x2cc8e8=_0x3a4ec9[_0x1abd21(0x1df)]===_0x1abd21(0x1f6)?_0x3a4ec9[_0x1abd21(0x1d2)]-0x1:_0x3a4ec9[_0x1abd21(0x1d2)],_0x21182b=_0x3a4ec9['direction']==='right'?_0x3a4ec9[_0x1abd21(0x1d2)]+0x1:_0x2cc8e8;return((_0x2c8990=_0x289c29[_0x1abd21(0x220)])==null?[]:_0x2c8990)[_0x1abd21(0x1c7)](_0x509aa9=>_0x509aa9[_0x1abd21(0x21e)]===e[_0x1abd21(0x208)][_0x1abd21(0x1bd)]?_0x2cc8e8===_0x509aa9[_0x1abd21(0x1de)]||_0x2cc8e8===_0x509aa9[_0x1abd21(0x20e)]||_0x21182b===_0x509aa9[_0x1abd21(0x1de)]||_0x21182b===_0x509aa9[_0x1abd21(0x20e)]:!0x1);}function y(_0x14c6b0,_0x41504d){const _0x13817e=_0x112416;var _0x5a02ba;return(_0x5a02ba=_0x14c6b0['blockRanges'])==null?void 0x0:_0x5a02ba[_0x13817e(0x1d3)](_0x9cdf66=>{const _0x538059=_0x13817e;let _0x320edd=D(_0x14c6b0,_0x9cdf66);return _0x9cdf66[_0x538059(0x21e)]===e[_0x538059(0x208)]['CODE']&&_0x9cdf66[_0x538059(0x1de)]<=_0x41504d&&_0x41504d<=_0x320edd+0x2;});}function b(_0x2d1e1d,_0x1890da,_0x4835b8=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x2d1e1d&&_0x4835b8?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':l,'fs':0xc}};}function x(_0x54ae2d,_0x123842,_0x198ba5,_0x486033=!0x1){const _0x103a4d=_0x112416;var _0x47c4cd;let _0x28e17f=((_0x47c4cd=_0x54ae2d[_0x103a4d(0x227)])==null?[]:_0x47c4cd)[_0x103a4d(0x245)](_0x511824=>_0x511824[_0x103a4d(0x1de)]>_0x123842&&_0x511824[_0x103a4d(0x1de)]<_0x198ba5);_0x28e17f['forEach']((_0x89624,_0x4ed2f5)=>{const _0x1b5437=_0x103a4d;var _0x20c2ac;_0x89624[_0x1b5437(0x1be)]={...(_0x20c2ac=_0x89624[_0x1b5437(0x1be)])==null?{}:_0x20c2ac,...b(_0x4ed2f5===0x0,_0x4ed2f5===_0x28e17f[_0x1b5437(0x24f)]-0x1,_0x486033)};});}function S(_0x321d0b){const _0x49d924=_0x112416;var _0x54285e,_0x92b002;let _0x389a40={..._0x321d0b==null?{}:_0x321d0b};return delete _0x389a40['indentEnd'],delete _0x389a40[_0x49d924(0x24b)],delete _0x389a40['spaceAbove'],delete _0x389a40[_0x49d924(0x1c3)],((_0x54285e=_0x389a40[_0x49d924(0x235)])==null?void 0x0:_0x54285e['ff'])===l&&((_0x92b002=_0x389a40[_0x49d924(0x235)])==null?void 0x0:_0x92b002['fs'])===0xc&&delete _0x389a40[_0x49d924(0x235)],_0x389a40;}function C(_0x3f61de,_0x4773f7){const _0x2f5f53=_0x112416;var _0x21936b;let _0x5d5606=D(_0x3f61de,_0x4773f7);return((_0x21936b=_0x3f61de['paragraphs'])==null?[]:_0x21936b)[_0x2f5f53(0x245)](_0x1486f3=>_0x1486f3['startIndex']>_0x4773f7[_0x2f5f53(0x1de)]&&_0x1486f3[_0x2f5f53(0x1de)]<_0x5d5606);}function ee(_0x656b9,_0x3dacd6,_0x2aeeed){const _0x352cb1=_0x112416;let _0x2b67bd=oe(_0x656b9,_0x3dacd6,_0x2aeeed),_0x5e1cf1=_0x656b9[_0x352cb1(0x1e2)][_0x352cb1(0x1bb)](_0x2b67bd,_0x2aeeed[_0x352cb1(0x1de)]);return Array[_0x352cb1(0x24d)](_0x5e1cf1)['every'](_0x3f560d=>_0x3f560d===e[_0x352cb1(0x215)]['BLOCK_START']||_0x3f560d===e[_0x352cb1(0x215)][_0x352cb1(0x257)]);}function w(_0x2f4033){const _0xbea7ab=_0x112416;return e['Tools'][_0xbea7ab(0x23f)](_0x2f4033);}function T(_0x171f35){const _0x4b5b42=_0x112416;if(!_0x171f35['body'])throw Error('Document\x20body\x20is\x20required');return _0x171f35[_0x4b5b42(0x1ba)];}function te(_0x1ee00a,_0x32e530,_0x16ad9f){if(_0x32e530==null||_0x16ad9f==null){let _0x445631=re(_0x1ee00a);return{'startOffset':_0x445631,'endOffset':_0x445631};}let _0x458f18=Math['min'](_0x32e530,_0x16ad9f),_0x71df56=Math['max'](_0x32e530,_0x16ad9f);if(_0x458f18===_0x71df56){let _0x204b0d=ne(_0x1ee00a,_0x458f18);return{'startOffset':_0x204b0d,'endOffset':_0x204b0d};}return ae(_0x1ee00a,_0x458f18,_0x71df56);}function ne(_0x3447e8,_0x12976e){const _0x5c0169=_0x112416;return _0x12976e===0x0&&_0x3447e8[_0x5c0169(0x1e2)][0x0]===e[_0x5c0169(0x215)][_0x5c0169(0x224)]?0x1:_0x12976e;}function re(_0x34a031){const _0x57c6ee=_0x112416;return _0x34a031[_0x57c6ee(0x1e2)][_0x57c6ee(0x1f1)](e['DataStreamTreeTokenType'][_0x57c6ee(0x1ef)])?Math['max'](0x0,_0x34a031[_0x57c6ee(0x1e2)]['length']-0x1):_0x34a031[_0x57c6ee(0x1e2)]['length'];}function ie(_0x235f61,_0x47f949,_0x42d51e){const _0x13b3e7=_0x112416;var _0x47c617;let _0x200c1a=Math[_0x13b3e7(0x1ec)](_0x47f949,_0x42d51e),_0x31301a=Math['max'](_0x47f949,_0x42d51e);return!!((_0x47c617=_0x235f61[_0x13b3e7(0x203)])!=null&&_0x47c617['some'](_0x328c73=>_0x200c1a>_0x328c73[_0x13b3e7(0x1de)]&&_0x200c1a<_0x328c73[_0x13b3e7(0x20e)]||_0x31301a>_0x328c73[_0x13b3e7(0x1de)]&&_0x31301a<_0x328c73[_0x13b3e7(0x20e)]||_0x200c1a<=_0x328c73[_0x13b3e7(0x1de)]&&_0x31301a>=_0x328c73[_0x13b3e7(0x20e)]));}function ae(_0x4bcbf6,_0x3a4f82,_0xf2309e){const _0x2350ab=_0x112416;var _0x5cbe44,_0x22722a;let _0x2db696=[...(_0x5cbe44=_0x4bcbf6[_0x2350ab(0x227)])==null?[]:_0x5cbe44]['sort']((_0x48b1b5,_0x3d65bc)=>_0x48b1b5['startIndex']-_0x3d65bc[_0x2350ab(0x1de)]),_0x329d4b=_0x2db696[_0x2350ab(0x1d3)]((_0x34fb3b,_0x3d9b7d)=>(_0x3d9b7d===0x0?0x0:_0x2db696[_0x3d9b7d-0x1][_0x2350ab(0x1de)]+0x1)<=_0x3a4f82&&_0x3a4f82<=_0x34fb3b['startIndex']),_0x3a9f6a=(_0x22722a=_0x2db696['find'](_0x260189=>_0x260189[_0x2350ab(0x1de)]>=_0xf2309e-0x1))==null?_0x2db696[_0x2db696[_0x2350ab(0x24f)]-0x1]:_0x22722a;return{'startOffset':_0x329d4b?E(_0x2db696,_0x329d4b):_0x3a4f82,'endOffset':_0x3a9f6a?_0x3a9f6a[_0x2350ab(0x1de)]+0x1:_0xf2309e};}function E(_0x289a25,_0x15ea94){const _0x40ab7e=_0x112416;let _0x25758b=_0x289a25['indexOf'](_0x15ea94);return _0x25758b>0x0?_0x289a25[_0x25758b-0x1][_0x40ab7e(0x1de)]+0x1:0x0;}function oe(_0x10ad3c,_0x5817c0,_0x13afc8){const _0x5071df=_0x112416;var _0x40952d;return Math[_0x5071df(0x1cb)](E((_0x40952d=_0x10ad3c['paragraphs'])==null?[]:_0x40952d,_0x13afc8),_0x5817c0[_0x5071df(0x1de)]+0x1);}function D(_0x304303,_0x6ed3f8){const _0xc7b21a=_0x112416;return _0x304303[_0xc7b21a(0x1e2)][_0x6ed3f8[_0xc7b21a(0x20e)]]===e[_0xc7b21a(0x215)][_0xc7b21a(0x257)]?_0x6ed3f8[_0xc7b21a(0x20e)]:_0x304303[_0xc7b21a(0x1e2)][_0x6ed3f8[_0xc7b21a(0x20e)]+0x1]===e[_0xc7b21a(0x215)][_0xc7b21a(0x257)]?_0x6ed3f8['endIndex']+0x1:_0x6ed3f8['endIndex'];}function se(_0xcb2dfc,_0x5ace05,_0x24aaa2,_0x4f33c6){const _0x4495f0=_0x112416;var _0x406bab,_0x3cc1fa;let _0x421733=D(_0xcb2dfc,_0x5ace05),_0x994d1a=((_0x406bab=_0xcb2dfc[_0x4495f0(0x227)])==null?[]:_0x406bab)[_0x4495f0(0x1d3)](_0x2c8f80=>_0x2c8f80[_0x4495f0(0x1de)]===_0x421733+0x1);if(!_0x994d1a||_0x4f33c6!=null&&_0x994d1a['startIndex']!==_0x4f33c6||_0x24aaa2<_0x421733||_0x24aaa2>_0x994d1a[_0x4495f0(0x1de)]+0x1||_0xcb2dfc['dataStream'][_0x994d1a[_0x4495f0(0x1de)]]!==e[_0x4495f0(0x215)][_0x4495f0(0x224)])return null;let _0x43d6c6=E((_0x3cc1fa=_0xcb2dfc['paragraphs'])==null?[]:_0x3cc1fa,_0x994d1a),_0x3dee7a=_0xcb2dfc[_0x4495f0(0x1e2)]['slice'](_0x43d6c6,_0x994d1a[_0x4495f0(0x1de)]);return Array[_0x4495f0(0x24d)](_0x3dee7a)['every'](_0x4ea606=>_0x4ea606===e[_0x4495f0(0x215)][_0x4495f0(0x257)])?{'paragraph':_0x994d1a,'endTokenOffset':_0x421733}:null;}function O(_0x514f32,_0x3157c7){const _0x3f6d92=_0x112416;var _0x2e3f32;let _0x391f59=D(_0x514f32,_0x3157c7),_0x4db2b3=_0x514f32[_0x3f6d92(0x1e2)][_0x391f59+0x1];_0x4db2b3!==e[_0x3f6d92(0x215)][_0x3f6d92(0x1ef)]&&_0x4db2b3!==void 0x0||k(_0x514f32,_0x391f59+0x1,e[_0x3f6d92(0x215)][_0x3f6d92(0x224)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,e['createParagraphId'])(new Set((_0x2e3f32=_0x514f32[_0x3f6d92(0x227)])==null?void 0x0:_0x2e3f32[_0x3f6d92(0x223)](_0x5965b3=>_0x5965b3[_0x3f6d92(0x236)])))}]});}function k(_0x357783,_0x2ff1f5,_0x38623a,_0x152348={}){const _0x42b285=_0x112416;var _0x41bbad,_0x5b6804;if(_0x38623a){if(_0x357783[_0x42b285(0x1e2)]=''+_0x357783[_0x42b285(0x1e2)]['slice'](0x0,_0x2ff1f5)+_0x38623a+_0x357783[_0x42b285(0x1e2)][_0x42b285(0x1bb)](_0x2ff1f5),le(_0x357783,_0x2ff1f5,_0x38623a[_0x42b285(0x24f)]),(_0x41bbad=_0x152348['paragraphs'])!=null&&_0x41bbad['length']){var _0x2d02ad;_0x357783[_0x42b285(0x227)]=[...(_0x2d02ad=_0x357783[_0x42b285(0x227)])==null?[]:_0x2d02ad,..._0x152348[_0x42b285(0x227)][_0x42b285(0x223)](_0x1f13b2=>({..._0x1f13b2,'startIndex':_0x1f13b2[_0x42b285(0x1de)]+_0x2ff1f5}))][_0x42b285(0x1cc)]((_0x39a800,_0x4ca685)=>_0x39a800[_0x42b285(0x1de)]-_0x4ca685[_0x42b285(0x1de)]);}if((_0x5b6804=_0x152348[_0x42b285(0x220)])!=null&&_0x5b6804[_0x42b285(0x24f)]){var _0x1c7e59;_0x357783[_0x42b285(0x220)]=[...(_0x1c7e59=_0x357783['blockRanges'])==null?[]:_0x1c7e59,..._0x152348[_0x42b285(0x220)][_0x42b285(0x223)](_0x36f4e3=>({..._0x36f4e3,'startIndex':_0x36f4e3[_0x42b285(0x1de)]+_0x2ff1f5,'endIndex':_0x36f4e3['endIndex']+_0x2ff1f5}))][_0x42b285(0x1cc)]((_0x4288b0,_0x3a5073)=>_0x4288b0[_0x42b285(0x1de)]-_0x3a5073[_0x42b285(0x1de)]);}}}function ce(_0x4c781f,_0x25fc02,_0xfe1425){const _0x41e1f3=_0x112416;let _0x40a0e6=_0xfe1425-_0x25fc02;_0x4c781f['dataStream']=''+_0x4c781f[_0x41e1f3(0x1e2)][_0x41e1f3(0x1bb)](0x0,_0x25fc02)+_0x4c781f[_0x41e1f3(0x1e2)][_0x41e1f3(0x1bb)](_0xfe1425),ue(_0x4c781f,_0x25fc02,_0x40a0e6);}function le(_0x490a33,_0x3cd72e,_0x4c4eea){const _0x204c6d=_0x112416;_0x490a33[_0x204c6d(0x227)]=A(_0x490a33['paragraphs'],_0x3cd72e,_0x4c4eea),_0x490a33[_0x204c6d(0x21f)]=A(_0x490a33[_0x204c6d(0x21f)],_0x3cd72e,_0x4c4eea),_0x490a33[_0x204c6d(0x20c)]=A(_0x490a33[_0x204c6d(0x20c)],_0x3cd72e,_0x4c4eea),_0x490a33[_0x204c6d(0x1fa)]=de(_0x490a33[_0x204c6d(0x1fa)],_0x3cd72e,_0x4c4eea),_0x490a33[_0x204c6d(0x203)]=M(_0x490a33['tables'],_0x3cd72e,_0x4c4eea),_0x490a33['customRanges']=M(_0x490a33[_0x204c6d(0x251)],_0x3cd72e,_0x4c4eea),_0x490a33[_0x204c6d(0x23a)]=M(_0x490a33[_0x204c6d(0x23a)],_0x3cd72e,_0x4c4eea),_0x490a33['blockRanges']=M(_0x490a33['blockRanges'],_0x3cd72e,_0x4c4eea);}function ue(_0x465ecc,_0x3d270e,_0x42372d){const _0x3e9a09=_0x112416;var _0x2d27da,_0x15b25f;_0x465ecc[_0x3e9a09(0x227)]=j(_0x465ecc[_0x3e9a09(0x227)],_0x3d270e,_0x42372d),_0x465ecc[_0x3e9a09(0x21f)]=j(_0x465ecc['sectionBreaks'],_0x3d270e,_0x42372d),_0x465ecc['customBlocks']=j(_0x465ecc[_0x3e9a09(0x20c)],_0x3d270e,_0x42372d),_0x465ecc[_0x3e9a09(0x1fa)]=(_0x2d27da=N((_0x15b25f=_0x465ecc['textRuns'])==null?void 0x0:_0x15b25f[_0x3e9a09(0x223)](_0x1b506a=>({..._0x1b506a,'startIndex':_0x1b506a['st'],'endIndex':_0x1b506a['ed']})),_0x3d270e,_0x42372d))==null?void 0x0:_0x2d27da[_0x3e9a09(0x223)](_0x1f1cbc=>{let {startIndex:_0x1f6c11,endIndex:_0x5bbb1d,..._0x49f7f8}=_0x1f1cbc;return{..._0x49f7f8,'st':_0x1f6c11,'ed':_0x5bbb1d};}),_0x465ecc['tables']=N(_0x465ecc['tables'],_0x3d270e,_0x42372d),_0x465ecc[_0x3e9a09(0x251)]=N(_0x465ecc[_0x3e9a09(0x251)],_0x3d270e,_0x42372d),_0x465ecc[_0x3e9a09(0x23a)]=N(_0x465ecc[_0x3e9a09(0x23a)],_0x3d270e,_0x42372d),_0x465ecc[_0x3e9a09(0x220)]=N(_0x465ecc[_0x3e9a09(0x220)],_0x3d270e,_0x42372d);}function A(_0x527fb7,_0x37fb18,_0x2d11bc){const _0x21eaf0=_0x112416;return _0x527fb7==null?void 0x0:_0x527fb7[_0x21eaf0(0x223)](_0x50cb6c=>_0x50cb6c[_0x21eaf0(0x1de)]>=_0x37fb18?{..._0x50cb6c,'startIndex':_0x50cb6c[_0x21eaf0(0x1de)]+_0x2d11bc}:_0x50cb6c);}function j(_0x4014fa,_0x3ce560,_0x28ba39){const _0x8d6fcd=_0x112416;let _0x177ed0=_0x3ce560+_0x28ba39;return _0x4014fa==null?void 0x0:_0x4014fa[_0x8d6fcd(0x223)](_0x4fa49e=>_0x4fa49e[_0x8d6fcd(0x1de)]>=_0x3ce560&&_0x4fa49e[_0x8d6fcd(0x1de)]<_0x177ed0?null:_0x4fa49e[_0x8d6fcd(0x1de)]>=_0x177ed0?{..._0x4fa49e,'startIndex':_0x4fa49e['startIndex']-_0x28ba39}:_0x4fa49e)[_0x8d6fcd(0x245)](_0x5d7870=>_0x5d7870!=null);}function de(_0x41618c,_0x572865,_0x4807c5){const _0xd51bf=_0x112416;return _0x41618c==null?void 0x0:_0x41618c[_0xd51bf(0x223)](_0x56e1b5=>_0x56e1b5['st']>=_0x572865?{..._0x56e1b5,'st':_0x56e1b5['st']+_0x4807c5,'ed':_0x56e1b5['ed']+_0x4807c5}:_0x56e1b5['ed']>_0x572865?{..._0x56e1b5,'ed':_0x56e1b5['ed']+_0x4807c5}:_0x56e1b5);}function M(_0x97cf47,_0x155948,_0x290230){const _0x342fdb=_0x112416;return _0x97cf47==null?void 0x0:_0x97cf47[_0x342fdb(0x223)](_0x452171=>_0x452171[_0x342fdb(0x1de)]>=_0x155948?{..._0x452171,'startIndex':_0x452171[_0x342fdb(0x1de)]+_0x290230,'endIndex':_0x452171[_0x342fdb(0x20e)]+_0x290230}:_0x452171['endIndex']>=_0x155948?{..._0x452171,'endIndex':_0x452171[_0x342fdb(0x20e)]+_0x290230}:_0x452171);}function N(_0x585a1b,_0x30abe1,_0x1619f3){const _0x455092=_0x112416;let _0x5d010f=_0x30abe1+_0x1619f3;return _0x585a1b==null?void 0x0:_0x585a1b['map'](_0x6da3f2=>_0x6da3f2['startIndex']>=_0x30abe1&&_0x6da3f2['endIndex']<_0x5d010f?null:_0x6da3f2[_0x455092(0x1de)]>=_0x5d010f?{..._0x6da3f2,'startIndex':_0x6da3f2['startIndex']-_0x1619f3,'endIndex':_0x6da3f2[_0x455092(0x20e)]-_0x1619f3}:_0x6da3f2['endIndex']>=_0x30abe1?{..._0x6da3f2,'startIndex':_0x6da3f2[_0x455092(0x1de)]<_0x30abe1?_0x6da3f2['startIndex']:_0x30abe1,'endIndex':Math[_0x455092(0x1cb)](_0x30abe1,_0x6da3f2[_0x455092(0x20e)]-_0x1619f3)}:_0x6da3f2)[_0x455092(0x245)](_0x160d62=>_0x160d62!=null);}function P(_0x4f0024,_0x138ffd,_0x2a03c9,_0x2976d1){const _0xdb03f2=_0x112416;_0x4f0024==null||_0x4f0024[_0xdb03f2(0x24a)](_0x28332b=>{const _0x25e705=_0xdb03f2;_0x28332b[_0x25e705(0x1de)]>=_0x138ffd&&_0x28332b['startIndex']<_0x2a03c9&&(_0x28332b['startIndex']+=_0x2976d1);});}function fe(_0x4b917f,_0x300061,_0x1bc75a,_0x32c699){const _0x47dc35=_0x112416;_0x4b917f==null||_0x4b917f[_0x47dc35(0x24a)](_0x1fba86=>{_0x1fba86['st']>=_0x300061&&_0x1fba86['st']<_0x1bc75a?(_0x1fba86['st']+=_0x32c699,_0x1fba86['ed']+=_0x32c699):_0x1fba86['ed']>_0x300061&&_0x1fba86['ed']<_0x1bc75a&&(_0x1fba86['ed']+=_0x32c699);});}function F(_0x2ffd18,_0xacf202,_0x3e5fbd,_0x40d32e){const _0x32bf8d=_0x112416;_0x2ffd18==null||_0x2ffd18[_0x32bf8d(0x24a)](_0x257a74=>{const _0x5d3436=_0x32bf8d;_0x257a74['startIndex']>=_0xacf202&&_0x257a74[_0x5d3436(0x1de)]<_0x3e5fbd?(_0x257a74['startIndex']+=_0x40d32e,_0x257a74[_0x5d3436(0x20e)]+=_0x40d32e):_0x257a74['endIndex']>_0xacf202&&_0x257a74[_0x5d3436(0x20e)]<_0x3e5fbd&&(_0x257a74[_0x5d3436(0x20e)]+=_0x40d32e);});}function I(_0x47076e){'@babel/helpers - typeof';const _0x4ea00b=_0x112416;return I=typeof Symbol==_0x4ea00b(0x1e3)&&typeof Symbol[_0x4ea00b(0x234)]==_0x4ea00b(0x242)?function(_0x2a6ab4){return typeof _0x2a6ab4;}:function(_0x2e1dde){const _0x5020ad=_0x4ea00b;return _0x2e1dde&&typeof Symbol=='function'&&_0x2e1dde['constructor']===Symbol&&_0x2e1dde!==Symbol[_0x5020ad(0x258)]?_0x5020ad(0x242):typeof _0x2e1dde;},I(_0x47076e);}function pe(_0x5babc8,_0x2bda71){const _0x42a862=_0x112416;if(I(_0x5babc8)!='object'||!_0x5babc8)return _0x5babc8;var _0x99c018=_0x5babc8[Symbol[_0x42a862(0x1ce)]];if(_0x99c018!==void 0x0){var _0x27ffb1=_0x99c018[_0x42a862(0x1c4)](_0x5babc8,_0x2bda71||'default');if(I(_0x27ffb1)!=_0x42a862(0x1d0))return _0x27ffb1;throw TypeError(_0x42a862(0x1bf));}return(_0x2bda71==='string'?String:Number)(_0x5babc8);}function me(_0x2f4254){const _0x49973a=_0x112416;var _0x431ee3=pe(_0x2f4254,'string');return I(_0x431ee3)==_0x49973a(0x242)?_0x431ee3:_0x431ee3+'';}function L(_0x263961,_0x5b8d4f,_0x4afdb1){const _0x290b49=_0x112416;return(_0x5b8d4f=me(_0x5b8d4f))in _0x263961?Object[_0x290b49(0x1c1)](_0x263961,_0x5b8d4f,{'value':_0x4afdb1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x263961[_0x5b8d4f]=_0x4afdb1,_0x263961;}var R=class extends e[_0x112416(0x1e4)]{constructor(..._0x4959eb){const _0x4fed03=_0x112416;super(..._0x4959eb),L(this,_0x4fed03(0x1d7),new Map()),L(this,'_change$',new n[(_0x4fed03(0x1e9))]()),L(this,'change$',this[_0x4fed03(0x1e0)]['asObservable']());}[_0x112416(0x253)](_0x400a2a,_0x5a4f51){const _0x306a68=_0x112416;return o(this[_0x306a68(0x1d7)][_0x306a68(0x1d1)](_0x400a2a))[_0x306a68(0x22e)][_0x5a4f51];}['setCodeConfig'](_0x4679b4,_0x407b70,_0x3bcd06){this['_setResource'](_0x4679b4,_0x407b70,s(this['_resources']['get'](_0x4679b4),_0x407b70,_0x3bcd06));}['removeCode'](_0x96817c,_0x246ca5){const _0x55591a=_0x112416;this['_setResource'](_0x96817c,_0x246ca5,c(this[_0x55591a(0x1d7)][_0x55591a(0x1d1)](_0x96817c),_0x246ca5));}['serialize'](_0x2812b8){const _0x3b9f03=_0x112416;return o(this[_0x3b9f03(0x1d7)][_0x3b9f03(0x1d1)](_0x2812b8));}[_0x112416(0x206)](_0x119ba1,_0x34f569){const _0x267028=_0x112416;this[_0x267028(0x1d7)][_0x267028(0x1da)](_0x119ba1,o(_0x34f569)),this[_0x267028(0x1e0)][_0x267028(0x22b)]({'unitId':_0x119ba1});}[_0x112416(0x256)](_0x478dd9){const _0x21051a=_0x112416;this[_0x21051a(0x1d7)][_0x21051a(0x1d8)](_0x478dd9),this[_0x21051a(0x1e0)][_0x21051a(0x22b)]({'unitId':_0x478dd9});}[_0x112416(0x22a)](){const _0x18998b=_0x112416;super[_0x18998b(0x22a)](),this[_0x18998b(0x1d7)]['clear'](),this[_0x18998b(0x1e0)][_0x18998b(0x205)]();}[_0x112416(0x238)](_0x48930d,_0x1e3b7e,_0x55457c){const _0x365188=_0x112416;this[_0x365188(0x1d7)][_0x365188(0x1da)](_0x48930d,_0x55457c),this[_0x365188(0x1e0)][_0x365188(0x22b)]({'unitId':_0x48930d,'blockId':_0x1e3b7e});}};function _0x1db5(){const _0x46c6a0=['DOCS_CODE_PLUGIN','@univerjs-pro/docs-code','textRuns','296WXgija','spaceAbove','Plugin','_commandService','disposeWithMe','endOffset','DEFAULT_CODE_CONFIG','DependentOn','tables','previousDocumentData','complete','deserialize','setConfig','DocumentBlockRangeType','join','diffValue','packageName','customBlocks','type','endIndex','DocsCodeCancelEmptyParagraphCommand','nextMetadata','add','normalizeDocsCodeConfig','CommandType','docs-code.command.consume-boundary-delete','DataStreamTreeTokenType','consumeInsertRange','registerPluginResource','IResourceManagerService','27137NMnvnv','getUniverDocInstance','DocSelectionManagerService','docs-code.command.insert','UniverInstanceType','blockType','sectionBreaks','blockRanges','unitId','_docsCodeModel','map','PARAGRAPH','UniverDocsPlugin','getUnitId','paragraphs','docs-code.command.cancel-empty-paragraph','5212iJhWMb','dispose','next','getSnapshot','DocsCodeUpdateCommand','codes','1173802FCrgoQ','getCurrentUnitOfType','DocsCodeConsumeBoundaryDeleteCommand','commandService','DocsCodeModel','iterator','textStyle','paragraphId','getOwnPropertyDescriptor','_setResource','_configService','customDecorations','stringify','COMMAND','buildCancelEmptyCodeParagraphActions','entries','deepClone','12530tfpfGB','BLOCK_START','symbol','_config','8180IoUoMj','filter','buildInsertCodeActions','syncExecuteCommand','_initResource','fromEntries','forEach','indentStart','getParagraphsInRange','from','buildUpdateCodeActions','length','IUniverInstanceService','customRanges','range','getCodeConfig','nextDocumentData','UniverDocsCodePlugin','removeUnit','BLOCK_END','prototype','metadata','300321KVvOnK','reduce','body','slice','BuildTextUtils','CODE','paragraphStyle','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','2928960lTXjBz','defineProperty','config','spaceBelow','call','pluginName','507HNkEGS','some','RichTextEditingMutation','_injector','paragraph','max','sort','blockId','toPrimitive','version','object','get','cursorOffset','find','startOffset','docs-code.config','documentData','_resources','delete','Module','set','1914ZgqbTB','DocsCodeInsertBelowCommand','ICommandService','startIndex','direction','_change$','createParagraphId','dataStream','function','Disposable','model','generateRandomId','onStarting','3711708CTyubd','Subject','0.25.0-insiders.20260618-fa5d5d0','paragraphStartIndex','min','toStringTag','_resourceManagerService','SECTION_BREAK','Inject','endsWith','findCodeRangeAtOffset','UNIVER_DOC','decorate','docs-code.command.insert-below','left','serialize'];_0x1db5=function(){return _0x46c6a0;};return _0x1db5();}const z={'id':_0x112416(0x1f5),'type':e['CommandType']['COMMAND'],'handler':_0x302033=>{const _0x25920b=_0x112416;let _0x1e5a0e=he(_0x302033);if(_0x1e5a0e)return _0x302033[_0x25920b(0x1d1)](e['ICommandService'])['syncExecuteCommand'](V['id'],{'startOffset':_0x1e5a0e[_0x25920b(0x1d4)],'endOffset':_0x1e5a0e['endOffset'],'unitId':_0x1e5a0e[_0x25920b(0x221)]});let _0x5a9f3e=ge(_0x302033);if(!_0x5a9f3e)return!0x1;let _0x2f5efe=_0x5a9f3e[_0x25920b(0x1de)]+0x1;return _0x302033[_0x25920b(0x1d1)](e[_0x25920b(0x1dd)])[_0x25920b(0x247)](V['id'],{'startOffset':_0x2f5efe,'endOffset':_0x2f5efe});}},B={'id':_0x112416(0x214),'type':e[_0x112416(0x213)][_0x112416(0x23c)],'handler':()=>!0x0},V={'id':_0x112416(0x21c),'type':e[_0x112416(0x213)][_0x112416(0x23c)],'handler':(_0x2963d4,_0x47b8de)=>{const _0x1d8886=_0x112416;var _0x2ccfa8,_0x2be89a,_0x3eb62b;let _0x7e5f06=G(_0x2963d4,_0x47b8de==null?void 0x0:_0x47b8de[_0x1d8886(0x221)]);if(!_0x7e5f06)return!0x1;let _0x37ac50=K(_0x2963d4),_0x4a5cbf=u({'blockId':(_0x2ccfa8=_0x47b8de==null?void 0x0:_0x47b8de[_0x1d8886(0x1cd)])==null?(0x0,e[_0x1d8886(0x1e6)])(0x6):_0x2ccfa8,'config':_0x47b8de==null?void 0x0:_0x47b8de[_0x1d8886(0x1c2)],'documentData':_0x7e5f06['previousDocumentData'],'endOffset':(_0x2be89a=_0x47b8de==null?void 0x0:_0x47b8de[_0x1d8886(0x200)])==null?_0x37ac50==null?void 0x0:_0x37ac50[_0x1d8886(0x200)]:_0x2be89a,'metadata':_0x7e5f06[_0x1d8886(0x1e5)][_0x1d8886(0x1f7)](_0x7e5f06[_0x1d8886(0x221)]),'startOffset':(_0x3eb62b=_0x47b8de==null?void 0x0:_0x47b8de[_0x1d8886(0x1d4)])==null?_0x37ac50==null?void 0x0:_0x37ac50[_0x1d8886(0x1d4)]:_0x3eb62b}),_0x5f54b6=J(_0x7e5f06[_0x1d8886(0x232)],_0x7e5f06[_0x1d8886(0x221)],_0x7e5f06[_0x1d8886(0x204)],_0x4a5cbf[_0x1d8886(0x254)],_0x4a5cbf['cursorOffset']);return _0x5f54b6&&_0x4a5cbf[_0x1d8886(0x210)]&&_0x7e5f06[_0x1d8886(0x1e5)][_0x1d8886(0x206)](_0x7e5f06['unitId'],_0x4a5cbf[_0x1d8886(0x210)]),_0x5f54b6;}},H={'id':'docs-code.command.update','type':e[_0x112416(0x213)][_0x112416(0x23c)],'handler':(_0x57ad89,_0x539698)=>{const _0x30df8d=_0x112416;if(!_0x539698)return!0x1;let _0x33edd7=G(_0x57ad89,_0x539698['unitId']);if(!_0x33edd7)return!0x1;let _0x5e658c=p({'blockId':_0x539698['blockId'],'config':_0x539698[_0x30df8d(0x1c2)],'documentData':_0x33edd7[_0x30df8d(0x204)],'metadata':_0x33edd7[_0x30df8d(0x1e5)][_0x30df8d(0x1f7)](_0x33edd7[_0x30df8d(0x221)])});return _0x5e658c[_0x30df8d(0x210)]&&_0x33edd7['model'][_0x30df8d(0x206)](_0x33edd7[_0x30df8d(0x221)],_0x5e658c[_0x30df8d(0x210)]),!0x0;}},U={'id':'docs-code.command.exit','type':e[_0x112416(0x213)][_0x112416(0x23c)],'handler':(_0x108d0f,_0x306c55)=>{const _0x415fed=_0x112416;var _0x4008bd,_0x4553d8;let _0x2773ed=G(_0x108d0f,_0x306c55==null?void 0x0:_0x306c55[_0x415fed(0x221)]);if(!_0x2773ed)return!0x1;let _0x103384=(_0x4008bd=_0x306c55==null?void 0x0:_0x306c55[_0x415fed(0x1d2)])==null?(_0x4553d8=K(_0x108d0f))==null?void 0x0:_0x4553d8['startOffset']:_0x4008bd;if(_0x103384==null)return!0x1;let _0x2b2162=m({'cursorOffset':_0x103384,'documentData':_0x2773ed[_0x415fed(0x204)]});return _0x2b2162?J(_0x2773ed['commandService'],_0x2773ed['unitId'],_0x2773ed[_0x415fed(0x204)],_0x2b2162['nextDocumentData'],_0x2b2162[_0x415fed(0x1d2)]):!0x1;}},W={'id':_0x112416(0x228),'type':e[_0x112416(0x213)][_0x112416(0x23c)],'handler':(_0x5e54ed,_0x24050c)=>{const _0x594f5c=_0x112416;var _0x18aa47,_0x32deeb;let _0x51f5b8=G(_0x5e54ed,_0x24050c==null?void 0x0:_0x24050c[_0x594f5c(0x221)]);if(!_0x51f5b8)return!0x1;let _0x3e9eb1=(_0x18aa47=_0x24050c==null?void 0x0:_0x24050c[_0x594f5c(0x1d2)])==null?(_0x32deeb=K(_0x5e54ed))==null?void 0x0:_0x32deeb[_0x594f5c(0x1d4)]:_0x18aa47;if(_0x3e9eb1==null)return!0x1;let _0x44a523=h({'cursorOffset':_0x3e9eb1,'documentData':_0x51f5b8[_0x594f5c(0x204)],'paragraphStartIndex':_0x24050c==null?void 0x0:_0x24050c['paragraphStartIndex']});return _0x44a523?J(_0x51f5b8[_0x594f5c(0x232)],_0x51f5b8[_0x594f5c(0x221)],_0x51f5b8['previousDocumentData'],_0x44a523[_0x594f5c(0x254)],_0x44a523[_0x594f5c(0x1d2)]):!0x1;}};function G(_0x39a10c,_0x267d6e){const _0x382ea3=_0x112416;let _0xc1f90=_0x39a10c[_0x382ea3(0x1d1)](e[_0x382ea3(0x250)]),_0x461a0d=_0x267d6e?_0xc1f90[_0x382ea3(0x21a)](_0x267d6e):_0xc1f90['getCurrentUnitOfType'](e[_0x382ea3(0x21d)][_0x382ea3(0x1f3)]);return _0x461a0d?{'commandService':_0x39a10c[_0x382ea3(0x1d1)](e[_0x382ea3(0x1dd)]),'model':_0x39a10c[_0x382ea3(0x1d1)](R),'previousDocumentData':_0x461a0d[_0x382ea3(0x22c)](),'unitId':_0x461a0d[_0x382ea3(0x226)]()}:null;}function K(_0x3e4f11){const _0x4291c7=_0x112416;var _0x173c53;return(_0x173c53=_0x3e4f11[_0x4291c7(0x1d1)](t[_0x4291c7(0x21b)])['getTextRanges']())==null?void 0x0:_0x173c53[0x0];}function he(_0x5e2b79){const _0x2e5373=_0x112416;var _0x17d861;let _0x39d6fb=(_0x17d861=_0x5e2b79[_0x2e5373(0x1d1)](e[_0x2e5373(0x250)])['getCurrentUnitOfType'](e[_0x2e5373(0x21d)][_0x2e5373(0x1f3)]))==null?void 0x0:_0x17d861[_0x2e5373(0x226)]();try{return _0x5e2b79['get'](t['DocContentInsertService'])[_0x2e5373(0x216)](_0x39d6fb);}catch{return null;}}function ge(_0x216f33){const _0x194bec=_0x112416;var _0x3ff607,_0x4094ea,_0xe0eaf3;let _0x3118e5=K(_0x216f33);if(!_0x3118e5)return null;let _0x5400bc=_0x216f33[_0x194bec(0x1d1)](e[_0x194bec(0x250)])[_0x194bec(0x230)](e['UniverInstanceType']['UNIVER_DOC']),_0xcdbe47=_0x5400bc==null?void 0x0:_0x5400bc['getBody']();return _0xcdbe47?(_0x3ff607=e[_0x194bec(0x1bc)][_0x194bec(0x252)][_0x194bec(0x24c)](_0x3118e5,(_0x4094ea=_0xcdbe47[_0x194bec(0x227)])==null?[]:_0x4094ea,(_0xe0eaf3=_0xcdbe47[_0x194bec(0x1e2)])==null?'':_0xe0eaf3)[0x0])==null?null:_0x3ff607:null;}function _e(_0x44df2e,_0x11023d){const _0x28da5=_0x112416;var _0xf55bc2,_0x294057,_0x35b868,_0x20ea96,_0x380838,_0x24f2fc,_0x15bf74,_0x5cc412,_0x2a624d,_0xcf7d7b,_0x21ab24,_0x2d3972,_0x597f57,_0x37200d,_0xa57c6a,_0x256e99,_0x3f31af,_0xf8f8ec;let _0xa48874=e['JSONX']['getInstance']();return[q(_0xa48874,[_0x28da5(0x1ba),_0x28da5(0x1e2)],(_0xf55bc2=_0x44df2e[_0x28da5(0x1ba)])==null?void 0x0:_0xf55bc2[_0x28da5(0x1e2)],(_0x294057=_0x11023d[_0x28da5(0x1ba)])==null?void 0x0:_0x294057['dataStream']),q(_0xa48874,['body',_0x28da5(0x227)],(_0x35b868=_0x44df2e[_0x28da5(0x1ba)])==null?void 0x0:_0x35b868[_0x28da5(0x227)],(_0x20ea96=_0x11023d['body'])==null?void 0x0:_0x20ea96[_0x28da5(0x227)]),q(_0xa48874,[_0x28da5(0x1ba),'sectionBreaks'],(_0x380838=_0x44df2e[_0x28da5(0x1ba)])==null?void 0x0:_0x380838[_0x28da5(0x21f)],(_0x24f2fc=_0x11023d[_0x28da5(0x1ba)])==null?void 0x0:_0x24f2fc[_0x28da5(0x21f)]),q(_0xa48874,['body','textRuns'],(_0x15bf74=_0x44df2e['body'])==null?void 0x0:_0x15bf74['textRuns'],(_0x5cc412=_0x11023d[_0x28da5(0x1ba)])==null?void 0x0:_0x5cc412[_0x28da5(0x1fa)]),q(_0xa48874,[_0x28da5(0x1ba),_0x28da5(0x20c)],(_0x2a624d=_0x44df2e['body'])==null?void 0x0:_0x2a624d[_0x28da5(0x20c)],(_0xcf7d7b=_0x11023d['body'])==null?void 0x0:_0xcf7d7b[_0x28da5(0x20c)]),q(_0xa48874,['body',_0x28da5(0x251)],(_0x21ab24=_0x44df2e[_0x28da5(0x1ba)])==null?void 0x0:_0x21ab24[_0x28da5(0x251)],(_0x2d3972=_0x11023d['body'])==null?void 0x0:_0x2d3972[_0x28da5(0x251)]),q(_0xa48874,['body','customDecorations'],(_0x597f57=_0x44df2e[_0x28da5(0x1ba)])==null?void 0x0:_0x597f57['customDecorations'],(_0x37200d=_0x11023d[_0x28da5(0x1ba)])==null?void 0x0:_0x37200d[_0x28da5(0x23a)]),q(_0xa48874,[_0x28da5(0x1ba),_0x28da5(0x203)],(_0xa57c6a=_0x44df2e[_0x28da5(0x1ba)])==null?void 0x0:_0xa57c6a[_0x28da5(0x203)],(_0x256e99=_0x11023d[_0x28da5(0x1ba)])==null?void 0x0:_0x256e99[_0x28da5(0x203)]),q(_0xa48874,[_0x28da5(0x1ba),'blockRanges'],(_0x3f31af=_0x44df2e[_0x28da5(0x1ba)])==null?void 0x0:_0x3f31af[_0x28da5(0x220)],(_0xf8f8ec=_0x11023d[_0x28da5(0x1ba)])==null?void 0x0:_0xf8f8ec[_0x28da5(0x220)])][_0x28da5(0x245)](Boolean)[_0x28da5(0x25b)]((_0x53dd64,_0x1d78de)=>e['JSONX']['compose'](_0x53dd64,_0x1d78de),null);}function q(_0xa8d3f7,_0x3cccad,_0x4bb3ec,_0x1b310c){const _0x4f0e29=_0x112416;return e['Tools'][_0x4f0e29(0x20a)](_0x4bb3ec,_0x1b310c)?null:_0xa8d3f7['replaceOp'](_0x3cccad,_0x4bb3ec,_0x1b310c);}function J(_0x5efa0f,_0x2cf456,_0x147efc,_0x2e39c4,_0x5c4db4){const _0x10ae87=_0x112416;let _0x565443=_e(_0x147efc,_0x2e39c4);return _0x565443?!!_0x5efa0f[_0x10ae87(0x247)](t[_0x10ae87(0x1c8)]['id'],{'unitId':_0x2cf456,'actions':_0x565443,'textRanges':[{'startOffset':_0x5c4db4,'endOffset':_0x5c4db4,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const Y='DOC_CODE_PLUGIN';var ve=_0x112416(0x1f9),ye=_0x112416(0x1ea);const X={};function Z(_0x52da71,_0x5dee45){return function(_0x13a212,_0x38c7d4){_0x5dee45(_0x13a212,_0x38c7d4,_0x52da71);};}function be(_0x5a3f8b,_0x437e47,_0x519941,_0x4a6db3){const _0x19c248=_0x112416;var _0x4bab7f=arguments[_0x19c248(0x24f)],_0xed4633=_0x4bab7f<0x3?_0x437e47:_0x4a6db3===null?_0x4a6db3=Object[_0x19c248(0x237)](_0x437e47,_0x519941):_0x4a6db3,_0x14e019;if(typeof Reflect==_0x19c248(0x1d0)&&typeof Reflect[_0x19c248(0x1f4)]==_0x19c248(0x1e3))_0xed4633=Reflect['decorate'](_0x5a3f8b,_0x437e47,_0x519941,_0x4a6db3);else{for(var _0x4eda7f=_0x5a3f8b[_0x19c248(0x24f)]-0x1;_0x4eda7f>=0x0;_0x4eda7f--)(_0x14e019=_0x5a3f8b[_0x4eda7f])&&(_0xed4633=(_0x4bab7f<0x3?_0x14e019(_0xed4633):_0x4bab7f>0x3?_0x14e019(_0x437e47,_0x519941,_0xed4633):_0x14e019(_0x437e47,_0x519941))||_0xed4633);}return _0x4bab7f>0x3&&_0xed4633&&Object[_0x19c248(0x1c1)](_0x437e47,_0x519941,_0xed4633),_0xed4633;}let Q=class extends e[_0x112416(0x1e4)]{constructor(_0x3c8925,_0x5c45f6){const _0x4a7d21=_0x112416;super(),this['_resourceManagerService']=_0x3c8925,this[_0x4a7d21(0x222)]=_0x5c45f6,this[_0x4a7d21(0x248)]();}[_0x112416(0x248)](){const _0x2211f6=_0x112416;this['disposeWithMe'](this[_0x2211f6(0x1ee)][_0x2211f6(0x217)]({'pluginName':Y,'businesses':[e[_0x2211f6(0x21d)][_0x2211f6(0x1f3)]],'toJson':_0x43f836=>JSON[_0x2211f6(0x23b)](this[_0x2211f6(0x222)][_0x2211f6(0x1f7)](_0x43f836)),'parseJson':_0xdac42f=>o(JSON['parse'](_0xdac42f)),'onLoad':(_0x388af4,_0x3807fc)=>this[_0x2211f6(0x222)]['deserialize'](_0x388af4,_0x3807fc),'onUnLoad':_0x470804=>this[_0x2211f6(0x222)][_0x2211f6(0x256)](_0x470804)}));}};Q=be([Z(0x0,e[_0x112416(0x218)]),Z(0x1,(0x0,e['Inject'])(R))],Q);let $=class extends e[_0x112416(0x1fd)]{constructor(_0x320059=X,_0x46dfd9,_0x5518ee,_0x5f287c){const _0x4270eb=_0x112416;super(),this[_0x4270eb(0x243)]=_0x320059,this[_0x4270eb(0x1c9)]=_0x46dfd9,this[_0x4270eb(0x1fe)]=_0x5518ee,this[_0x4270eb(0x239)]=_0x5f287c;let {..._0x38a056}=(0x0,e['merge'])({},X,this['_config']);this[_0x4270eb(0x239)][_0x4270eb(0x207)](_0x4270eb(0x1d5),_0x38a056);}[_0x112416(0x1e7)](){const _0x5147fc=_0x112416;this['_injector'][_0x5147fc(0x211)]([R]),this[_0x5147fc(0x1c9)][_0x5147fc(0x211)]([Q]),this[_0x5147fc(0x1c9)][_0x5147fc(0x1d1)](R),this[_0x5147fc(0x1c9)][_0x5147fc(0x1d1)](Q),[V,z,H,U,W,B][_0x5147fc(0x24a)](_0x20314e=>this[_0x5147fc(0x1ff)](this[_0x5147fc(0x1fe)]['registerCommand'](_0x20314e)));}};L($,_0x112416(0x1c5),Y),L($,_0x112416(0x20b),ve),L($,_0x112416(0x1cf),ye),L($,_0x112416(0x20d),e[_0x112416(0x21d)][_0x112416(0x1f3)]),$=be([(0x0,e[_0x112416(0x202)])(r['UniverLicensePlugin'],t[_0x112416(0x225)]),Z(0x1,(0x0,e[_0x112416(0x1f0)])(e['Injector'])),Z(0x2,e['ICommandService']),Z(0x3,e['IConfigService'])],$),exports[_0x112416(0x201)]=i,exports[_0x112416(0x1f8)]=Y,exports[_0x112416(0x20f)]=W,exports[_0x112416(0x231)]=B,exports['DocsCodeExitCommand']=U,exports[_0x112416(0x1dc)]=z,exports['DocsCodeInsertCommand']=V,exports[_0x112416(0x233)]=R,exports[_0x112416(0x22d)]=H,Object[_0x112416(0x1c1)](exports,_0x112416(0x255),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x112416(0x23d)]=h,exports['buildExitCodeActions']=m,exports[_0x112416(0x246)]=u,exports[_0x112416(0x24e)]=p,exports[_0x112416(0x1f2)]=_,exports['isCodeBoundaryDelete']=v,exports[_0x112416(0x212)]=a;
|
|
1
|
+
const _0x27c813=_0x37d5;(function(_0x156ff3,_0x424aa1){const _0x93991=_0x37d5,_0x3eb305=_0x156ff3();while(!![]){try{const _0x2f592d=parseInt(_0x93991(0x1ff))/0x1+-parseInt(_0x93991(0x28d))/0x2+-parseInt(_0x93991(0x249))/0x3+parseInt(_0x93991(0x24a))/0x4*(parseInt(_0x93991(0x28b))/0x5)+parseInt(_0x93991(0x259))/0x6+parseInt(_0x93991(0x207))/0x7+parseInt(_0x93991(0x24d))/0x8*(-parseInt(_0x93991(0x241))/0x9);if(_0x2f592d===_0x424aa1)break;else _0x3eb305['push'](_0x3eb305['shift']());}catch(_0xcfdb7f){_0x3eb305['push'](_0x3eb305['shift']());}}}(_0x3ef8,0x717ab),Object[_0x27c813(0x234)](exports,Symbol[_0x27c813(0x272)],{'value':_0x27c813(0x251)}));let e=require('@univerjs/core'),t=require('@univerjs/docs'),n=require('rxjs'),r=require('@univerjs-pro/license');const i={'language':_0x27c813(0x212),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function a(_0x1d10bb){return{...i,..._0x1d10bb};}function o(_0x5cb09b){const _0x2ab705=_0x27c813;var _0x216653;let _0x526f34=(_0x216653=_0x5cb09b==null?void 0x0:_0x5cb09b['codes'])==null?{}:_0x216653;return{'codes':Object[_0x2ab705(0x25d)](Object[_0x2ab705(0x22e)](_0x526f34)[_0x2ab705(0x203)](([_0x58ca0c,_0x3c4dcc])=>[_0x58ca0c,a(_0x3c4dcc)]))};}function s(_0x338965,_0x55b617,_0x10968f){const _0x17d419=_0x27c813;let _0x16fc2e=o(_0x338965);return _0x16fc2e[_0x17d419(0x255)][_0x55b617]=a({..._0x16fc2e['codes'][_0x55b617],..._0x10968f}),_0x16fc2e;}function c(_0x53098c,_0x27f169){const _0x56444c=_0x27c813;let _0x532fc6=o(_0x53098c);return delete _0x532fc6[_0x56444c(0x255)][_0x27f169],_0x532fc6;}const l=_0x27c813(0x1f9);function u(_0x3657df){const _0x237637=_0x27c813;var _0xdce266,_0x3bdfcc,_0x19ba62;let _0x2bcc04=w(_0x3657df[_0x237637(0x28c)]),_0x3d7305=T(_0x2bcc04),_0x514efd=f(_0x3657df[_0x237637(0x22c)],_0x3657df['endOffset']),_0x79ea64=_0x514efd?(_0xdce266=_0x3d7305[_0x237637(0x232)])==null?void 0x0:_0xdce266[_0x237637(0x25e)](_0x1ca4ad=>_0x1ca4ad[_0x237637(0x1f3)]===_0x514efd['startOffset']&&_0x1ca4ad[_0x237637(0x1ee)]+0x1===_0x514efd[_0x237637(0x219)]):void 0x0,{startOffset:_0x28b342,endOffset:_0x151aaa}=_0x79ea64?_0x514efd:te(_0x3d7305,_0x3657df['startOffset'],_0x3657df[_0x237637(0x219)]),_0x3529e5=ie(_0x3d7305,_0x28b342,_0x151aaa),_0x5ce9c4=(_0x3bdfcc=_0x79ea64==null?void 0x0:_0x79ea64['blockId'])==null?_0x3657df['blockId']:_0x3bdfcc,_0x23bc31=s(_0x3657df['metadata'],_0x5ce9c4,{...i,..._0x3657df[_0x237637(0x28a)]});if(_0x79ea64)return _0x79ea64[_0x237637(0x1eb)]=e[_0x237637(0x200)]['CODE'],d(_0x3d7305,_0x28b342,_0x151aaa),x(_0x3d7305,_0x28b342,_0x151aaa,_0x3529e5),O(_0x3d7305,_0x79ea64),{'nextDocumentData':_0x2bcc04,'nextMetadata':_0x23bc31,'cursorOffset':_0x28b342+0x1};if(_0x28b342===_0x151aaa){var _0x1db159,_0x4ac353;let _0x3ef445=''+e[_0x237637(0x27c)][_0x237637(0x27a)]+e[_0x237637(0x27c)][_0x237637(0x291)]+e['DataStreamTreeTokenType'][_0x237637(0x25a)];k(_0x3d7305,_0x28b342,_0x3ef445,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e[_0x237637(0x1e9)])(new Set((_0x1db159=_0x3d7305[_0x237637(0x24f)])==null?void 0x0:_0x1db159[_0x237637(0x203)](_0x2a546e=>_0x2a546e[_0x237637(0x287)]))),'paragraphStyle':b(!0x0,!0x0,_0x3529e5)}],'blockRanges':[{'blockId':_0x5ce9c4,'blockType':e[_0x237637(0x200)][_0x237637(0x1e7)],'startIndex':0x0,'endIndex':_0x3ef445['length']-0x1}]});let _0x2b90e0=(_0x4ac353=_0x3d7305['blockRanges'])==null?void 0x0:_0x4ac353[_0x237637(0x25e)](_0x35fa53=>_0x35fa53['blockId']===_0x5ce9c4);return _0x2b90e0&&O(_0x3d7305,_0x2b90e0),{'nextDocumentData':_0x2bcc04,'nextMetadata':_0x23bc31,'cursorOffset':_0x28b342+0x1};}k(_0x3d7305,_0x151aaa,e[_0x237637(0x27c)][_0x237637(0x25a)]),k(_0x3d7305,_0x28b342,e[_0x237637(0x27c)]['BLOCK_START']),x(_0x3d7305,_0x28b342,_0x151aaa+0x1,_0x3529e5);let _0x3fcef8={'blockId':_0x5ce9c4,'blockType':e[_0x237637(0x200)][_0x237637(0x1e7)],'startIndex':_0x28b342,'endIndex':_0x151aaa+0x1};return _0x3d7305[_0x237637(0x232)]=[...(_0x19ba62=_0x3d7305[_0x237637(0x232)])==null?[]:_0x19ba62,_0x3fcef8]['sort']((_0x166352,_0x15d8d8)=>_0x166352[_0x237637(0x1f3)]-_0x15d8d8[_0x237637(0x1f3)]),O(_0x3d7305,_0x3fcef8),{'nextDocumentData':_0x2bcc04,'nextMetadata':_0x23bc31,'cursorOffset':_0x28b342+0x1};}function d(_0x52b305,_0x26a535,_0x300122){const _0x4aa73c=_0x27c813;var _0x19e5a6;((_0x19e5a6=_0x52b305[_0x4aa73c(0x24f)])==null?[]:_0x19e5a6)[_0x4aa73c(0x1f8)](_0x157ab6=>_0x157ab6['startIndex']>_0x26a535&&_0x157ab6['startIndex']<_0x300122)[_0x4aa73c(0x215)](_0x4f3579=>{const _0x4c6936=_0x4aa73c;var _0x37fcc5;let _0x11edd1={...(_0x37fcc5=_0x4f3579[_0x4c6936(0x25c)])==null?{}:_0x37fcc5};delete _0x11edd1[_0x4c6936(0x275)],delete _0x11edd1['spaceBelow'],_0x4f3579[_0x4c6936(0x25c)]=_0x11edd1;});}function f(_0x5727ce,_0xe8437c){const _0x228d4b=_0x27c813;return _0x5727ce==null||_0xe8437c==null||_0x5727ce===_0xe8437c?null:{'startOffset':Math[_0x228d4b(0x204)](_0x5727ce,_0xe8437c),'endOffset':Math['max'](_0x5727ce,_0xe8437c)};}function p(_0x1a6552){const _0x404f76=_0x27c813;return{'nextDocumentData':w(_0x1a6552['documentData']),'nextMetadata':s(_0x1a6552[_0x404f76(0x1f6)],_0x1a6552[_0x404f76(0x24c)],_0x1a6552['config']),'cursorOffset':0x0};}function m(_0x5dfd2b){const _0x1389dc=_0x27c813;var _0x4c2669,_0x3f49a1;let _0x577bc7=w(_0x5dfd2b[_0x1389dc(0x28c)]),_0x2191fb=T(_0x577bc7),_0x247744=y(_0x2191fb,_0x5dfd2b[_0x1389dc(0x223)]);if(!_0x247744)return null;let _0x1d93cf=C(_0x2191fb,_0x247744),_0x488b44=_0x1d93cf[_0x1d93cf[_0x1389dc(0x21a)]-0x1];if(!_0x488b44||!ee(_0x2191fb,_0x247744,_0x488b44)||_0x5dfd2b[_0x1389dc(0x223)]<_0x488b44[_0x1389dc(0x1f3)])return null;let _0x4f9f04=oe(_0x2191fb,_0x247744,_0x488b44);if(_0x4f9f04>=_0x247744[_0x1389dc(0x1ee)])return null;_0x2191fb[_0x1389dc(0x227)]=[_0x2191fb['dataStream'][_0x1389dc(0x257)](0x0,_0x4f9f04),e[_0x1389dc(0x27c)]['BLOCK_END'],_0x2191fb[_0x1389dc(0x227)][_0x1389dc(0x257)](_0x4f9f04,_0x247744[_0x1389dc(0x1ee)]),_0x2191fb['dataStream']['slice'](_0x247744[_0x1389dc(0x1ee)]+0x1)][_0x1389dc(0x22b)](''),P(_0x2191fb[_0x1389dc(0x24f)],_0x4f9f04,_0x247744[_0x1389dc(0x1ee)],0x1),P(_0x2191fb[_0x1389dc(0x240)],_0x4f9f04,_0x247744['endIndex'],0x1),P(_0x2191fb[_0x1389dc(0x21c)],_0x4f9f04,_0x247744[_0x1389dc(0x1ee)],0x1),fe(_0x2191fb['textRuns'],_0x4f9f04,_0x247744[_0x1389dc(0x1ee)],0x1),F(_0x2191fb[_0x1389dc(0x1fe)],_0x4f9f04,_0x247744[_0x1389dc(0x1ee)],0x1),F(_0x2191fb[_0x1389dc(0x276)],_0x4f9f04,_0x247744[_0x1389dc(0x1ee)],0x1),F(_0x2191fb['customDecorations'],_0x4f9f04,_0x247744[_0x1389dc(0x1ee)],0x1),(_0x4c2669=_0x2191fb[_0x1389dc(0x232)])==null||_0x4c2669[_0x1389dc(0x215)](_0x27f50c=>{const _0x3d135d=_0x1389dc;_0x27f50c===_0x247744||_0x27f50c[_0x3d135d(0x24c)]===_0x247744[_0x3d135d(0x24c)]?_0x27f50c['endIndex']=_0x4f9f04:_0x27f50c[_0x3d135d(0x1f3)]>=_0x4f9f04&&_0x27f50c[_0x3d135d(0x1f3)]<_0x247744[_0x3d135d(0x1ee)]&&(_0x27f50c['startIndex']+=0x1,_0x27f50c['endIndex']+=0x1);});let _0x3aa169=C(_0x2191fb,{..._0x247744,'endIndex':_0x4f9f04});_0x3aa169['forEach']((_0x23be5b,_0x59f0eb)=>{const _0x30218d=_0x1389dc;var _0x4cd03f;_0x23be5b['paragraphStyle']={...(_0x4cd03f=_0x23be5b[_0x30218d(0x25c)])==null?{}:_0x4cd03f,...b(_0x59f0eb===0x0,_0x59f0eb===_0x3aa169[_0x30218d(0x21a)]-0x1)};});let _0x40f858=(_0x3f49a1=_0x2191fb['paragraphs'])==null?void 0x0:_0x3f49a1[_0x1389dc(0x25e)](_0x12252d=>_0x12252d['startIndex']===_0x4f9f04+0x1);return _0x40f858&&(_0x40f858[_0x1389dc(0x25c)]=S(_0x40f858[_0x1389dc(0x25c)])),{'nextDocumentData':_0x577bc7,'cursorOffset':_0x4f9f04+0x1};}function h(_0x141d76){const _0x4cb82c=_0x27c813;let _0x12d290=w(_0x141d76[_0x4cb82c(0x28c)]),_0xa74f9d=T(_0x12d290),_0x3d8fea=y(_0xa74f9d,_0x141d76[_0x4cb82c(0x223)]);return _0x3d8fea&&g(_0x12d290,_0xa74f9d,_0x3d8fea,_0x141d76['cursorOffset'],_0x141d76['paragraphStartIndex'])||null;}function g(_0x256771,_0x1d2bc0,_0x433bf7,_0x509013,_0x2d767e){const _0x1eeb6c=_0x27c813;let _0xf9ccf2=se(_0x1d2bc0,_0x433bf7,_0x509013,_0x2d767e);if(!_0xf9ccf2)return null;let _0x2daf38=_0xf9ccf2[_0x1eeb6c(0x253)]-0x1;return ce(_0x1d2bc0,_0xf9ccf2[_0x1eeb6c(0x1f7)][_0x1eeb6c(0x1f3)],_0xf9ccf2['paragraph'][_0x1eeb6c(0x1f3)]+0x1),{'nextDocumentData':_0x256771,'cursorOffset':_0x2daf38};}function _(_0x5a9a8c,_0x41b9df){const _0x84fe94=_0x27c813;var _0x425b76;return _0x5a9a8c==null||(_0x425b76=_0x5a9a8c[_0x84fe94(0x232)])==null?void 0x0:_0x425b76['find'](_0x4ec0ef=>_0x4ec0ef['blockType']===e['DocumentBlockRangeType'][_0x84fe94(0x1e7)]&&_0x4ec0ef[_0x84fe94(0x1f3)]<=_0x41b9df&&_0x41b9df<=_0x4ec0ef[_0x84fe94(0x1ee)]);}function v(_0x5c639c){const _0x10b483=_0x27c813;var _0x140fc0;let _0x16cc6e=_0x5c639c[_0x10b483(0x28c)][_0x10b483(0x256)];if(!_0x16cc6e)return!0x1;let _0x40cf42=_0x5c639c[_0x10b483(0x246)]===_0x10b483(0x225)?_0x5c639c[_0x10b483(0x223)]-0x1:_0x5c639c[_0x10b483(0x223)],_0x42c722=_0x5c639c[_0x10b483(0x246)]===_0x10b483(0x25b)?_0x5c639c[_0x10b483(0x223)]+0x1:_0x40cf42;return((_0x140fc0=_0x16cc6e[_0x10b483(0x232)])==null?[]:_0x140fc0)[_0x10b483(0x266)](_0x1d46fe=>_0x1d46fe[_0x10b483(0x1eb)]===e[_0x10b483(0x200)][_0x10b483(0x1e7)]?_0x40cf42===_0x1d46fe[_0x10b483(0x1f3)]||_0x40cf42===_0x1d46fe[_0x10b483(0x1ee)]||_0x42c722===_0x1d46fe[_0x10b483(0x1f3)]||_0x42c722===_0x1d46fe['endIndex']:!0x1);}function y(_0x20aa4d,_0x2f751a){const _0xb591b=_0x27c813;var _0x13e726;return(_0x13e726=_0x20aa4d[_0xb591b(0x232)])==null?void 0x0:_0x13e726[_0xb591b(0x25e)](_0x42cc9e=>{const _0x4d7409=_0xb591b;let _0x2ee9fb=D(_0x20aa4d,_0x42cc9e);return _0x42cc9e[_0x4d7409(0x1eb)]===e[_0x4d7409(0x200)][_0x4d7409(0x1e7)]&&_0x42cc9e[_0x4d7409(0x1f3)]<=_0x2f751a&&_0x2f751a<=_0x2ee9fb+0x2;});}function b(_0x4a9fae,_0x29e45d,_0x316ec5=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x4a9fae&&_0x316ec5?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':l,'fs':0xc}};}function x(_0x90823f,_0x2faf4d,_0x360dfe,_0x312e81=!0x1){const _0x4596bb=_0x27c813;var _0xad0ed1;let _0x5b8b55=((_0xad0ed1=_0x90823f[_0x4596bb(0x24f)])==null?[]:_0xad0ed1)[_0x4596bb(0x1f8)](_0x4fb5d6=>_0x4fb5d6[_0x4596bb(0x1f3)]>_0x2faf4d&&_0x4fb5d6[_0x4596bb(0x1f3)]<_0x360dfe);_0x5b8b55[_0x4596bb(0x215)]((_0x475029,_0x5d6ba3)=>{const _0x1df907=_0x4596bb;var _0x2294b7;_0x475029[_0x1df907(0x25c)]={...(_0x2294b7=_0x475029[_0x1df907(0x25c)])==null?{}:_0x2294b7,...b(_0x5d6ba3===0x0,_0x5d6ba3===_0x5b8b55[_0x1df907(0x21a)]-0x1,_0x312e81)};});}function S(_0x55b10d){const _0x2cb7c6=_0x27c813;var _0xe136fe,_0x42ee8d;let _0x2423e8={..._0x55b10d==null?{}:_0x55b10d};return delete _0x2423e8[_0x2cb7c6(0x290)],delete _0x2423e8['indentStart'],delete _0x2423e8[_0x2cb7c6(0x275)],delete _0x2423e8[_0x2cb7c6(0x26e)],((_0xe136fe=_0x2423e8[_0x2cb7c6(0x1fb)])==null?void 0x0:_0xe136fe['ff'])===l&&((_0x42ee8d=_0x2423e8[_0x2cb7c6(0x1fb)])==null?void 0x0:_0x42ee8d['fs'])===0xc&&delete _0x2423e8[_0x2cb7c6(0x1fb)],_0x2423e8;}function C(_0x15d89,_0x1ff96e){const _0x108a8e=_0x27c813;var _0x885826;let _0x42115c=D(_0x15d89,_0x1ff96e);return((_0x885826=_0x15d89[_0x108a8e(0x24f)])==null?[]:_0x885826)[_0x108a8e(0x1f8)](_0x2da9c2=>_0x2da9c2[_0x108a8e(0x1f3)]>_0x1ff96e[_0x108a8e(0x1f3)]&&_0x2da9c2[_0x108a8e(0x1f3)]<_0x42115c);}function ee(_0x50d246,_0x4d8ee4,_0xc7b295){const _0xd5aee2=_0x27c813;let _0x4ae5f6=oe(_0x50d246,_0x4d8ee4,_0xc7b295),_0x3f7b75=_0x50d246[_0xd5aee2(0x227)][_0xd5aee2(0x257)](_0x4ae5f6,_0xc7b295[_0xd5aee2(0x1f3)]);return Array[_0xd5aee2(0x221)](_0x3f7b75)['every'](_0x54ff68=>_0x54ff68===e['DataStreamTreeTokenType'][_0xd5aee2(0x27a)]||_0x54ff68===e[_0xd5aee2(0x27c)]['BLOCK_END']);}function w(_0x2dbc17){const _0x40bffa=_0x27c813;return e[_0x40bffa(0x20a)][_0x40bffa(0x20d)](_0x2dbc17);}function T(_0x3c02fd){const _0x2dd1b9=_0x27c813;if(!_0x3c02fd['body'])throw Error(_0x2dd1b9(0x26b));return _0x3c02fd['body'];}function te(_0x2483f4,_0xca0a36,_0x1f2ca5){const _0x50ff85=_0x27c813;if(_0xca0a36==null||_0x1f2ca5==null){let _0x431830=re(_0x2483f4);return{'startOffset':_0x431830,'endOffset':_0x431830};}let _0xa24224=Math[_0x50ff85(0x204)](_0xca0a36,_0x1f2ca5),_0x3f9518=Math['max'](_0xca0a36,_0x1f2ca5);if(_0xa24224===_0x3f9518){let _0x1859a8=ne(_0x2483f4,_0xa24224);return{'startOffset':_0x1859a8,'endOffset':_0x1859a8};}return ae(_0x2483f4,_0xa24224,_0x3f9518);}function ne(_0x2fefc7,_0x5003a3){const _0x12e6ce=_0x27c813;return _0x5003a3===0x0&&_0x2fefc7[_0x12e6ce(0x227)][0x0]===e[_0x12e6ce(0x27c)]['PARAGRAPH']?0x1:_0x5003a3;}function re(_0x3ba0a9){const _0x29b812=_0x27c813;return _0x3ba0a9['dataStream']['endsWith'](e[_0x29b812(0x27c)]['SECTION_BREAK'])?Math['max'](0x0,_0x3ba0a9[_0x29b812(0x227)]['length']-0x1):_0x3ba0a9[_0x29b812(0x227)][_0x29b812(0x21a)];}function ie(_0x20644d,_0x27afa9,_0xf3340a){const _0x2b327f=_0x27c813;var _0x39106c;let _0x1669a7=Math[_0x2b327f(0x204)](_0x27afa9,_0xf3340a),_0x262457=Math[_0x2b327f(0x264)](_0x27afa9,_0xf3340a);return!!((_0x39106c=_0x20644d[_0x2b327f(0x1fe)])!=null&&_0x39106c['some'](_0x530242=>_0x1669a7>_0x530242[_0x2b327f(0x1f3)]&&_0x1669a7<_0x530242['endIndex']||_0x262457>_0x530242[_0x2b327f(0x1f3)]&&_0x262457<_0x530242['endIndex']||_0x1669a7<=_0x530242['startIndex']&&_0x262457>=_0x530242['endIndex']));}function ae(_0x2c9c1d,_0x41e066,_0x13d2d2){const _0xf076ca=_0x27c813;var _0x3bb320,_0x2f9091;let _0xe7c8eb=[...(_0x3bb320=_0x2c9c1d['paragraphs'])==null?[]:_0x3bb320][_0xf076ca(0x261)]((_0x4095f3,_0x25cba9)=>_0x4095f3[_0xf076ca(0x1f3)]-_0x25cba9[_0xf076ca(0x1f3)]),_0x47b559=_0xe7c8eb[_0xf076ca(0x25e)]((_0x2768f6,_0x32dea1)=>(_0x32dea1===0x0?0x0:_0xe7c8eb[_0x32dea1-0x1][_0xf076ca(0x1f3)]+0x1)<=_0x41e066&&_0x41e066<=_0x2768f6[_0xf076ca(0x1f3)]),_0x2c3c60=(_0x2f9091=_0xe7c8eb[_0xf076ca(0x25e)](_0x7002cf=>_0x7002cf['startIndex']>=_0x13d2d2-0x1))==null?_0xe7c8eb[_0xe7c8eb[_0xf076ca(0x21a)]-0x1]:_0x2f9091;return{'startOffset':_0x47b559?E(_0xe7c8eb,_0x47b559):_0x41e066,'endOffset':_0x2c3c60?_0x2c3c60[_0xf076ca(0x1f3)]+0x1:_0x13d2d2};}function E(_0x1517bd,_0x3b2a32){const _0xe21d83=_0x27c813;let _0x13d132=_0x1517bd[_0xe21d83(0x230)](_0x3b2a32);return _0x13d132>0x0?_0x1517bd[_0x13d132-0x1][_0xe21d83(0x1f3)]+0x1:0x0;}function oe(_0x58cf84,_0x311678,_0x1b997f){const _0x439d12=_0x27c813;var _0x16cea2;return Math[_0x439d12(0x264)](E((_0x16cea2=_0x58cf84[_0x439d12(0x24f)])==null?[]:_0x16cea2,_0x1b997f),_0x311678[_0x439d12(0x1f3)]+0x1);}function D(_0x3cbce3,_0x53c7d9){const _0x3b2748=_0x27c813;return _0x3cbce3['dataStream'][_0x53c7d9[_0x3b2748(0x1ee)]]===e[_0x3b2748(0x27c)][_0x3b2748(0x25a)]?_0x53c7d9[_0x3b2748(0x1ee)]:_0x3cbce3[_0x3b2748(0x227)][_0x53c7d9[_0x3b2748(0x1ee)]+0x1]===e[_0x3b2748(0x27c)][_0x3b2748(0x25a)]?_0x53c7d9[_0x3b2748(0x1ee)]+0x1:_0x53c7d9[_0x3b2748(0x1ee)];}function se(_0x255256,_0xc29b8e,_0x17e558,_0x322e2f){const _0x2c5779=_0x27c813;var _0x37b671,_0x587e09;let _0x3f01f1=D(_0x255256,_0xc29b8e),_0x38fce6=((_0x37b671=_0x255256[_0x2c5779(0x24f)])==null?[]:_0x37b671)[_0x2c5779(0x25e)](_0x5b50b9=>_0x5b50b9[_0x2c5779(0x1f3)]===_0x3f01f1+0x1);if(!_0x38fce6||_0x322e2f!=null&&_0x38fce6['startIndex']!==_0x322e2f||_0x17e558<_0x3f01f1||_0x17e558>_0x38fce6['startIndex']+0x1||_0x255256[_0x2c5779(0x227)][_0x38fce6[_0x2c5779(0x1f3)]]!==e[_0x2c5779(0x27c)][_0x2c5779(0x291)])return null;let _0x22dbf0=E((_0x587e09=_0x255256[_0x2c5779(0x24f)])==null?[]:_0x587e09,_0x38fce6),_0x2e100e=_0x255256['dataStream'][_0x2c5779(0x257)](_0x22dbf0,_0x38fce6[_0x2c5779(0x1f3)]);return Array[_0x2c5779(0x221)](_0x2e100e)['every'](_0x54d3ee=>_0x54d3ee===e['DataStreamTreeTokenType'][_0x2c5779(0x25a)])?{'paragraph':_0x38fce6,'endTokenOffset':_0x3f01f1}:null;}function O(_0x38a787,_0x574091){const _0x36de5e=_0x27c813;var _0xd143bc;let _0x5ae262=D(_0x38a787,_0x574091),_0x8e780a=_0x38a787[_0x36de5e(0x227)][_0x5ae262+0x1];_0x8e780a!==e[_0x36de5e(0x27c)][_0x36de5e(0x224)]&&_0x8e780a!==void 0x0||k(_0x38a787,_0x5ae262+0x1,e['DataStreamTreeTokenType'][_0x36de5e(0x291)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,e[_0x36de5e(0x1e9)])(new Set((_0xd143bc=_0x38a787['paragraphs'])==null?void 0x0:_0xd143bc[_0x36de5e(0x203)](_0x4a7a9d=>_0x4a7a9d['paragraphId'])))}]});}function k(_0xbd3557,_0x29f64e,_0xa67a86,_0x21a4ee={}){const _0x4ced38=_0x27c813;var _0x587e0d,_0x5ee084;if(_0xa67a86){if(_0xbd3557[_0x4ced38(0x227)]=''+_0xbd3557[_0x4ced38(0x227)]['slice'](0x0,_0x29f64e)+_0xa67a86+_0xbd3557[_0x4ced38(0x227)][_0x4ced38(0x257)](_0x29f64e),le(_0xbd3557,_0x29f64e,_0xa67a86['length']),(_0x587e0d=_0x21a4ee[_0x4ced38(0x24f)])!=null&&_0x587e0d['length']){var _0x3ee650;_0xbd3557[_0x4ced38(0x24f)]=[...(_0x3ee650=_0xbd3557[_0x4ced38(0x24f)])==null?[]:_0x3ee650,..._0x21a4ee['paragraphs']['map'](_0x50f18a=>({..._0x50f18a,'startIndex':_0x50f18a['startIndex']+_0x29f64e}))][_0x4ced38(0x261)]((_0x4d944a,_0x3ae51b)=>_0x4d944a[_0x4ced38(0x1f3)]-_0x3ae51b['startIndex']);}if((_0x5ee084=_0x21a4ee[_0x4ced38(0x232)])!=null&&_0x5ee084[_0x4ced38(0x21a)]){var _0x2514f7;_0xbd3557[_0x4ced38(0x232)]=[...(_0x2514f7=_0xbd3557[_0x4ced38(0x232)])==null?[]:_0x2514f7,..._0x21a4ee['blockRanges']['map'](_0x2b59fe=>({..._0x2b59fe,'startIndex':_0x2b59fe[_0x4ced38(0x1f3)]+_0x29f64e,'endIndex':_0x2b59fe[_0x4ced38(0x1ee)]+_0x29f64e}))][_0x4ced38(0x261)]((_0x3357f4,_0x1c8233)=>_0x3357f4[_0x4ced38(0x1f3)]-_0x1c8233['startIndex']);}}}function ce(_0x527e45,_0x5aacb0,_0x11dbdc){const _0x303b78=_0x27c813;let _0x76686b=_0x11dbdc-_0x5aacb0;_0x527e45[_0x303b78(0x227)]=''+_0x527e45[_0x303b78(0x227)]['slice'](0x0,_0x5aacb0)+_0x527e45[_0x303b78(0x227)][_0x303b78(0x257)](_0x11dbdc),ue(_0x527e45,_0x5aacb0,_0x76686b);}function le(_0x4b81b5,_0xfe79b8,_0x4053c8){const _0x4b4b9a=_0x27c813;_0x4b81b5[_0x4b4b9a(0x24f)]=A(_0x4b81b5['paragraphs'],_0xfe79b8,_0x4053c8),_0x4b81b5['sectionBreaks']=A(_0x4b81b5[_0x4b4b9a(0x240)],_0xfe79b8,_0x4053c8),_0x4b81b5['customBlocks']=A(_0x4b81b5['customBlocks'],_0xfe79b8,_0x4053c8),_0x4b81b5[_0x4b4b9a(0x281)]=de(_0x4b81b5[_0x4b4b9a(0x281)],_0xfe79b8,_0x4053c8),_0x4b81b5[_0x4b4b9a(0x1fe)]=M(_0x4b81b5[_0x4b4b9a(0x1fe)],_0xfe79b8,_0x4053c8),_0x4b81b5[_0x4b4b9a(0x276)]=M(_0x4b81b5['customRanges'],_0xfe79b8,_0x4053c8),_0x4b81b5[_0x4b4b9a(0x279)]=M(_0x4b81b5[_0x4b4b9a(0x279)],_0xfe79b8,_0x4053c8),_0x4b81b5[_0x4b4b9a(0x232)]=M(_0x4b81b5[_0x4b4b9a(0x232)],_0xfe79b8,_0x4053c8);}function ue(_0x3e6ba2,_0x1720eb,_0x208e0c){const _0xf968b2=_0x27c813;var _0x1d8dbc,_0x5caa35;_0x3e6ba2[_0xf968b2(0x24f)]=j(_0x3e6ba2[_0xf968b2(0x24f)],_0x1720eb,_0x208e0c),_0x3e6ba2[_0xf968b2(0x240)]=j(_0x3e6ba2['sectionBreaks'],_0x1720eb,_0x208e0c),_0x3e6ba2[_0xf968b2(0x21c)]=j(_0x3e6ba2[_0xf968b2(0x21c)],_0x1720eb,_0x208e0c),_0x3e6ba2[_0xf968b2(0x281)]=(_0x1d8dbc=N((_0x5caa35=_0x3e6ba2[_0xf968b2(0x281)])==null?void 0x0:_0x5caa35[_0xf968b2(0x203)](_0x3785cd=>({..._0x3785cd,'startIndex':_0x3785cd['st'],'endIndex':_0x3785cd['ed']})),_0x1720eb,_0x208e0c))==null?void 0x0:_0x1d8dbc[_0xf968b2(0x203)](_0x3b0345=>{let {startIndex:_0x406ed3,endIndex:_0x2fec85,..._0xeda627}=_0x3b0345;return{..._0xeda627,'st':_0x406ed3,'ed':_0x2fec85};}),_0x3e6ba2[_0xf968b2(0x1fe)]=N(_0x3e6ba2[_0xf968b2(0x1fe)],_0x1720eb,_0x208e0c),_0x3e6ba2[_0xf968b2(0x276)]=N(_0x3e6ba2[_0xf968b2(0x276)],_0x1720eb,_0x208e0c),_0x3e6ba2[_0xf968b2(0x279)]=N(_0x3e6ba2[_0xf968b2(0x279)],_0x1720eb,_0x208e0c),_0x3e6ba2['blockRanges']=N(_0x3e6ba2[_0xf968b2(0x232)],_0x1720eb,_0x208e0c);}function A(_0xa94d19,_0x1d861c,_0x34116d){const _0x15e807=_0x27c813;return _0xa94d19==null?void 0x0:_0xa94d19['map'](_0x3acf96=>_0x3acf96[_0x15e807(0x1f3)]>=_0x1d861c?{..._0x3acf96,'startIndex':_0x3acf96[_0x15e807(0x1f3)]+_0x34116d}:_0x3acf96);}function _0x37d5(_0x433a6a,_0x16c8df){_0x433a6a=_0x433a6a-0x1e6;const _0x3ef877=_0x3ef8();let _0x37d5bf=_0x3ef877[_0x433a6a];return _0x37d5bf;}function j(_0x699f59,_0x1571de,_0x4899e8){const _0x1edcca=_0x27c813;let _0x33c1f0=_0x1571de+_0x4899e8;return _0x699f59==null?void 0x0:_0x699f59[_0x1edcca(0x203)](_0x30d098=>_0x30d098[_0x1edcca(0x1f3)]>=_0x1571de&&_0x30d098[_0x1edcca(0x1f3)]<_0x33c1f0?null:_0x30d098['startIndex']>=_0x33c1f0?{..._0x30d098,'startIndex':_0x30d098[_0x1edcca(0x1f3)]-_0x4899e8}:_0x30d098)[_0x1edcca(0x1f8)](_0x1889a7=>_0x1889a7!=null);}function de(_0x2c6c8a,_0x44ec5e,_0x15df42){const _0x321a9f=_0x27c813;return _0x2c6c8a==null?void 0x0:_0x2c6c8a[_0x321a9f(0x203)](_0x1446e3=>_0x1446e3['st']>=_0x44ec5e?{..._0x1446e3,'st':_0x1446e3['st']+_0x15df42,'ed':_0x1446e3['ed']+_0x15df42}:_0x1446e3['ed']>_0x44ec5e?{..._0x1446e3,'ed':_0x1446e3['ed']+_0x15df42}:_0x1446e3);}function M(_0x16564a,_0xcefc66,_0x2574d2){const _0x57511d=_0x27c813;return _0x16564a==null?void 0x0:_0x16564a[_0x57511d(0x203)](_0x4efda0=>_0x4efda0['startIndex']>=_0xcefc66?{..._0x4efda0,'startIndex':_0x4efda0[_0x57511d(0x1f3)]+_0x2574d2,'endIndex':_0x4efda0['endIndex']+_0x2574d2}:_0x4efda0[_0x57511d(0x1ee)]>=_0xcefc66?{..._0x4efda0,'endIndex':_0x4efda0[_0x57511d(0x1ee)]+_0x2574d2}:_0x4efda0);}function N(_0x106cca,_0x20bb82,_0x391b1f){const _0x762b52=_0x27c813;let _0x488eb2=_0x20bb82+_0x391b1f;return _0x106cca==null?void 0x0:_0x106cca[_0x762b52(0x203)](_0x5ead42=>_0x5ead42[_0x762b52(0x1f3)]>=_0x20bb82&&_0x5ead42['endIndex']<_0x488eb2?null:_0x5ead42[_0x762b52(0x1f3)]>=_0x488eb2?{..._0x5ead42,'startIndex':_0x5ead42[_0x762b52(0x1f3)]-_0x391b1f,'endIndex':_0x5ead42['endIndex']-_0x391b1f}:_0x5ead42[_0x762b52(0x1ee)]>=_0x20bb82?{..._0x5ead42,'startIndex':_0x5ead42['startIndex']<_0x20bb82?_0x5ead42[_0x762b52(0x1f3)]:_0x20bb82,'endIndex':Math[_0x762b52(0x264)](_0x20bb82,_0x5ead42[_0x762b52(0x1ee)]-_0x391b1f)}:_0x5ead42)[_0x762b52(0x1f8)](_0xebcd7f=>_0xebcd7f!=null);}function P(_0x861f3b,_0x4a8bae,_0x2bd86d,_0x895f97){_0x861f3b==null||_0x861f3b['forEach'](_0x31a29a=>{const _0x53fc1e=_0x37d5;_0x31a29a[_0x53fc1e(0x1f3)]>=_0x4a8bae&&_0x31a29a[_0x53fc1e(0x1f3)]<_0x2bd86d&&(_0x31a29a['startIndex']+=_0x895f97);});}function fe(_0x5a1bf6,_0x299069,_0x4c37f9,_0x94ad80){const _0x4fa9b3=_0x27c813;_0x5a1bf6==null||_0x5a1bf6[_0x4fa9b3(0x215)](_0x470c0c=>{_0x470c0c['st']>=_0x299069&&_0x470c0c['st']<_0x4c37f9?(_0x470c0c['st']+=_0x94ad80,_0x470c0c['ed']+=_0x94ad80):_0x470c0c['ed']>_0x299069&&_0x470c0c['ed']<_0x4c37f9&&(_0x470c0c['ed']+=_0x94ad80);});}function F(_0x140a24,_0x3083b7,_0x3597f8,_0x1f1dc7){const _0x204159=_0x27c813;_0x140a24==null||_0x140a24[_0x204159(0x215)](_0x44c26c=>{const _0x3860de=_0x204159;_0x44c26c[_0x3860de(0x1f3)]>=_0x3083b7&&_0x44c26c[_0x3860de(0x1f3)]<_0x3597f8?(_0x44c26c[_0x3860de(0x1f3)]+=_0x1f1dc7,_0x44c26c[_0x3860de(0x1ee)]+=_0x1f1dc7):_0x44c26c[_0x3860de(0x1ee)]>_0x3083b7&&_0x44c26c[_0x3860de(0x1ee)]<_0x3597f8&&(_0x44c26c[_0x3860de(0x1ee)]+=_0x1f1dc7);});}function I(_0x588277){'@babel/helpers - typeof';const _0x4756ed=_0x27c813;return I=typeof Symbol==_0x4756ed(0x231)&&typeof Symbol[_0x4756ed(0x236)]=='symbol'?function(_0x23ce2d){return typeof _0x23ce2d;}:function(_0x380a2a){const _0x3f939d=_0x4756ed;return _0x380a2a&&typeof Symbol==_0x3f939d(0x231)&&_0x380a2a[_0x3f939d(0x26c)]===Symbol&&_0x380a2a!==Symbol[_0x3f939d(0x1f4)]?_0x3f939d(0x1e6):typeof _0x380a2a;},I(_0x588277);}function pe(_0x5cf552,_0xbbe18e){const _0x277c62=_0x27c813;if(I(_0x5cf552)!=_0x277c62(0x267)||!_0x5cf552)return _0x5cf552;var _0x5f05d9=_0x5cf552[Symbol[_0x277c62(0x284)]];if(_0x5f05d9!==void 0x0){var _0x3657d1=_0x5f05d9[_0x277c62(0x226)](_0x5cf552,_0xbbe18e||'default');if(I(_0x3657d1)!=_0x277c62(0x267))return _0x3657d1;throw TypeError(_0x277c62(0x23b));}return(_0xbbe18e===_0x277c62(0x270)?String:Number)(_0x5cf552);}function me(_0x4e6a26){const _0x3c3f04=_0x27c813;var _0x24a315=pe(_0x4e6a26,_0x3c3f04(0x270));return I(_0x24a315)==_0x3c3f04(0x1e6)?_0x24a315:_0x24a315+'';}function L(_0x3f30d2,_0x382f99,_0x31a0f6){const _0x561800=_0x27c813;return(_0x382f99=me(_0x382f99))in _0x3f30d2?Object[_0x561800(0x234)](_0x3f30d2,_0x382f99,{'value':_0x31a0f6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3f30d2[_0x382f99]=_0x31a0f6,_0x3f30d2;}var R=class extends e[_0x27c813(0x1f2)]{constructor(..._0x2242c9){const _0x4610da=_0x27c813;super(..._0x2242c9),L(this,_0x4610da(0x27f),new Map()),L(this,_0x4610da(0x263),new n[(_0x4610da(0x24b))]()),L(this,_0x4610da(0x233),this['_change$'][_0x4610da(0x282)]());}[_0x27c813(0x21b)](_0x50319f,_0x2a2871){const _0x3c8a93=_0x27c813;return o(this[_0x3c8a93(0x27f)]['get'](_0x50319f))['codes'][_0x2a2871];}[_0x27c813(0x250)](_0x25661f,_0x1cee96,_0x3e4f2c){const _0x517c61=_0x27c813;this[_0x517c61(0x265)](_0x25661f,_0x1cee96,s(this['_resources'][_0x517c61(0x23f)](_0x25661f),_0x1cee96,_0x3e4f2c));}[_0x27c813(0x1e8)](_0x50b608,_0x35cec7){const _0x3a0912=_0x27c813;this[_0x3a0912(0x265)](_0x50b608,_0x35cec7,c(this['_resources'][_0x3a0912(0x23f)](_0x50b608),_0x35cec7));}['serialize'](_0x2ff765){return o(this['_resources']['get'](_0x2ff765));}[_0x27c813(0x283)](_0x1ede0f,_0x2e7ff5){const _0x25c096=_0x27c813;this['_resources'][_0x25c096(0x1ea)](_0x1ede0f,o(_0x2e7ff5)),this[_0x25c096(0x263)][_0x25c096(0x222)]({'unitId':_0x1ede0f});}[_0x27c813(0x273)](_0x86bdfe){const _0x435d06=_0x27c813;this['_resources'][_0x435d06(0x237)](_0x86bdfe),this['_change$'][_0x435d06(0x222)]({'unitId':_0x86bdfe});}[_0x27c813(0x1fc)](){const _0x380c7b=_0x27c813;super[_0x380c7b(0x1fc)](),this[_0x380c7b(0x27f)][_0x380c7b(0x28e)](),this[_0x380c7b(0x263)][_0x380c7b(0x280)]();}[_0x27c813(0x265)](_0x353aa5,_0x2e1c57,_0x5206dc){const _0x33e13e=_0x27c813;this[_0x33e13e(0x27f)][_0x33e13e(0x1ea)](_0x353aa5,_0x5206dc),this[_0x33e13e(0x263)]['next']({'unitId':_0x353aa5,'blockId':_0x2e1c57});}};const z={'id':'docs-code.command.insert-below','type':e[_0x27c813(0x27d)][_0x27c813(0x274)],'handler':_0x56e51f=>{const _0x111f59=_0x27c813;let _0x585828=he(_0x56e51f);if(_0x585828)return _0x56e51f['get'](e[_0x111f59(0x26f)])[_0x111f59(0x288)](V['id'],{'startOffset':_0x585828[_0x111f59(0x22c)],'endOffset':_0x585828[_0x111f59(0x219)],'unitId':_0x585828[_0x111f59(0x244)]});let _0x29f3e2=ge(_0x56e51f);if(!_0x29f3e2)return!0x1;let _0x27bffc=_0x29f3e2[_0x111f59(0x1f3)]+0x1;return _0x56e51f[_0x111f59(0x23f)](e[_0x111f59(0x26f)])[_0x111f59(0x288)](V['id'],{'startOffset':_0x27bffc,'endOffset':_0x27bffc});}},B={'id':_0x27c813(0x235),'type':e['CommandType'][_0x27c813(0x274)],'handler':()=>!0x0},V={'id':_0x27c813(0x1fd),'type':e[_0x27c813(0x27d)][_0x27c813(0x274)],'handler':(_0x1458e0,_0x1b12e1)=>{const _0x3fa49e=_0x27c813;var _0x25308e,_0x5c0707,_0xb1f17f;let _0x32ed8b=G(_0x1458e0,_0x1b12e1==null?void 0x0:_0x1b12e1[_0x3fa49e(0x244)]);if(!_0x32ed8b)return!0x1;let _0x16f5ab=K(_0x1458e0),_0x5efcb7=u({'blockId':(_0x25308e=_0x1b12e1==null?void 0x0:_0x1b12e1[_0x3fa49e(0x24c)])==null?(0x0,e[_0x3fa49e(0x210)])(0x6):_0x25308e,'config':_0x1b12e1==null?void 0x0:_0x1b12e1[_0x3fa49e(0x28a)],'documentData':_0x32ed8b[_0x3fa49e(0x285)],'endOffset':(_0x5c0707=_0x1b12e1==null?void 0x0:_0x1b12e1[_0x3fa49e(0x219)])==null?_0x16f5ab==null?void 0x0:_0x16f5ab[_0x3fa49e(0x219)]:_0x5c0707,'metadata':_0x32ed8b[_0x3fa49e(0x27b)][_0x3fa49e(0x289)](_0x32ed8b[_0x3fa49e(0x244)]),'startOffset':(_0xb1f17f=_0x1b12e1==null?void 0x0:_0x1b12e1['startOffset'])==null?_0x16f5ab==null?void 0x0:_0x16f5ab[_0x3fa49e(0x22c)]:_0xb1f17f}),_0x276124=J(_0x32ed8b['commandService'],_0x32ed8b[_0x3fa49e(0x244)],_0x32ed8b[_0x3fa49e(0x285)],_0x5efcb7[_0x3fa49e(0x202)],_0x5efcb7['cursorOffset']);return _0x276124&&_0x5efcb7['nextMetadata']&&_0x32ed8b['model'][_0x3fa49e(0x283)](_0x32ed8b[_0x3fa49e(0x244)],_0x5efcb7['nextMetadata']),_0x276124;}},H={'id':_0x27c813(0x254),'type':e[_0x27c813(0x27d)][_0x27c813(0x274)],'handler':(_0x2c1bb1,_0xc2c429)=>{const _0x5ca557=_0x27c813;if(!_0xc2c429)return!0x1;let _0x4526d0=G(_0x2c1bb1,_0xc2c429[_0x5ca557(0x244)]);if(!_0x4526d0)return!0x1;let _0x34e21f=p({'blockId':_0xc2c429['blockId'],'config':_0xc2c429[_0x5ca557(0x28a)],'documentData':_0x4526d0[_0x5ca557(0x285)],'metadata':_0x4526d0[_0x5ca557(0x27b)]['serialize'](_0x4526d0[_0x5ca557(0x244)])});return _0x34e21f[_0x5ca557(0x286)]&&_0x4526d0[_0x5ca557(0x27b)][_0x5ca557(0x283)](_0x4526d0[_0x5ca557(0x244)],_0x34e21f['nextMetadata']),!0x0;}},U={'id':_0x27c813(0x277),'type':e[_0x27c813(0x27d)][_0x27c813(0x274)],'handler':(_0x22d813,_0x3a698f)=>{const _0x5252a7=_0x27c813;var _0x106b22,_0x42c822;let _0x3a174d=G(_0x22d813,_0x3a698f==null?void 0x0:_0x3a698f['unitId']);if(!_0x3a174d)return!0x1;let _0x40d2d4=(_0x106b22=_0x3a698f==null?void 0x0:_0x3a698f['cursorOffset'])==null?(_0x42c822=K(_0x22d813))==null?void 0x0:_0x42c822[_0x5252a7(0x22c)]:_0x106b22;if(_0x40d2d4==null)return!0x1;let _0x3483c5=m({'cursorOffset':_0x40d2d4,'documentData':_0x3a174d[_0x5252a7(0x285)]});return _0x3483c5?J(_0x3a174d[_0x5252a7(0x208)],_0x3a174d[_0x5252a7(0x244)],_0x3a174d[_0x5252a7(0x285)],_0x3483c5[_0x5252a7(0x202)],_0x3483c5['cursorOffset']):!0x1;}},W={'id':'docs-code.command.cancel-empty-paragraph','type':e[_0x27c813(0x27d)][_0x27c813(0x274)],'handler':(_0xe94a07,_0x4efd2a)=>{const _0x295af8=_0x27c813;var _0x285873,_0x45f046;let _0x52db81=G(_0xe94a07,_0x4efd2a==null?void 0x0:_0x4efd2a[_0x295af8(0x244)]);if(!_0x52db81)return!0x1;let _0x20e17d=(_0x285873=_0x4efd2a==null?void 0x0:_0x4efd2a[_0x295af8(0x223)])==null?(_0x45f046=K(_0xe94a07))==null?void 0x0:_0x45f046[_0x295af8(0x22c)]:_0x285873;if(_0x20e17d==null)return!0x1;let _0x39af9c=h({'cursorOffset':_0x20e17d,'documentData':_0x52db81[_0x295af8(0x285)],'paragraphStartIndex':_0x4efd2a==null?void 0x0:_0x4efd2a[_0x295af8(0x23c)]});return _0x39af9c?J(_0x52db81[_0x295af8(0x208)],_0x52db81[_0x295af8(0x244)],_0x52db81[_0x295af8(0x285)],_0x39af9c[_0x295af8(0x202)],_0x39af9c[_0x295af8(0x223)]):!0x1;}};function G(_0x55f5d1,_0x83ff7e){const _0x1b7a9c=_0x27c813;let _0x1d95c2=_0x55f5d1['get'](e['IUniverInstanceService']),_0x14e419=_0x83ff7e?_0x1d95c2[_0x1b7a9c(0x26a)](_0x83ff7e):_0x1d95c2[_0x1b7a9c(0x218)](e[_0x1b7a9c(0x1f5)][_0x1b7a9c(0x228)]);return _0x14e419?{'commandService':_0x55f5d1[_0x1b7a9c(0x23f)](e[_0x1b7a9c(0x26f)]),'model':_0x55f5d1[_0x1b7a9c(0x23f)](R),'previousDocumentData':_0x14e419[_0x1b7a9c(0x260)](),'unitId':_0x14e419[_0x1b7a9c(0x268)]()}:null;}function K(_0x2c9cab){const _0x3032cf=_0x27c813;var _0x474afc;return(_0x474afc=_0x2c9cab[_0x3032cf(0x23f)](t['DocSelectionManagerService'])[_0x3032cf(0x23d)]())==null?void 0x0:_0x474afc[0x0];}function he(_0x401f5b){const _0x2a30f3=_0x27c813;var _0x52635c;let _0x2e44f8=(_0x52635c=_0x401f5b['get'](e[_0x2a30f3(0x248)])[_0x2a30f3(0x218)](e[_0x2a30f3(0x1f5)][_0x2a30f3(0x228)]))==null?void 0x0:_0x52635c[_0x2a30f3(0x268)]();try{return _0x401f5b[_0x2a30f3(0x23f)](t[_0x2a30f3(0x242)])[_0x2a30f3(0x220)](_0x2e44f8);}catch{return null;}}function ge(_0x294d60){const _0x1b16ac=_0x27c813;var _0x2e9fe3,_0xb64f37,_0x378a79;let _0xf1c180=K(_0x294d60);if(!_0xf1c180)return null;let _0x434bd2=_0x294d60[_0x1b16ac(0x23f)](e[_0x1b16ac(0x248)])[_0x1b16ac(0x218)](e[_0x1b16ac(0x1f5)][_0x1b16ac(0x228)]),_0x3fbba1=_0x434bd2==null?void 0x0:_0x434bd2['getBody']();return _0x3fbba1?(_0x2e9fe3=e[_0x1b16ac(0x247)][_0x1b16ac(0x252)][_0x1b16ac(0x278)](_0xf1c180,(_0xb64f37=_0x3fbba1[_0x1b16ac(0x24f)])==null?[]:_0xb64f37,(_0x378a79=_0x3fbba1[_0x1b16ac(0x227)])==null?'':_0x378a79)[0x0])==null?null:_0x2e9fe3:null;}function _e(_0x56970f,_0x4a6702){const _0xded961=_0x27c813;var _0x1ce19d,_0x268f3,_0x31fcdb,_0x421706,_0x49ccab,_0x3bb899,_0x1ce618,_0x5c1cf3,_0x2c8f38,_0xc6a166,_0x12f592,_0x22b78b,_0x94f637,_0x6d083a,_0x11957f,_0x14b155,_0x38b5ab,_0x2b37a3;let _0x4249be=e[_0xded961(0x22a)]['getInstance']();return[q(_0x4249be,[_0xded961(0x256),_0xded961(0x227)],(_0x1ce19d=_0x56970f[_0xded961(0x256)])==null?void 0x0:_0x1ce19d[_0xded961(0x227)],(_0x268f3=_0x4a6702[_0xded961(0x256)])==null?void 0x0:_0x268f3['dataStream']),q(_0x4249be,[_0xded961(0x256),_0xded961(0x24f)],(_0x31fcdb=_0x56970f[_0xded961(0x256)])==null?void 0x0:_0x31fcdb[_0xded961(0x24f)],(_0x421706=_0x4a6702[_0xded961(0x256)])==null?void 0x0:_0x421706[_0xded961(0x24f)]),q(_0x4249be,['body',_0xded961(0x240)],(_0x49ccab=_0x56970f['body'])==null?void 0x0:_0x49ccab[_0xded961(0x240)],(_0x3bb899=_0x4a6702[_0xded961(0x256)])==null?void 0x0:_0x3bb899[_0xded961(0x240)]),q(_0x4249be,[_0xded961(0x256),_0xded961(0x281)],(_0x1ce618=_0x56970f[_0xded961(0x256)])==null?void 0x0:_0x1ce618['textRuns'],(_0x5c1cf3=_0x4a6702[_0xded961(0x256)])==null?void 0x0:_0x5c1cf3['textRuns']),q(_0x4249be,[_0xded961(0x256),_0xded961(0x21c)],(_0x2c8f38=_0x56970f['body'])==null?void 0x0:_0x2c8f38[_0xded961(0x21c)],(_0xc6a166=_0x4a6702['body'])==null?void 0x0:_0xc6a166[_0xded961(0x21c)]),q(_0x4249be,[_0xded961(0x256),_0xded961(0x276)],(_0x12f592=_0x56970f[_0xded961(0x256)])==null?void 0x0:_0x12f592[_0xded961(0x276)],(_0x22b78b=_0x4a6702[_0xded961(0x256)])==null?void 0x0:_0x22b78b[_0xded961(0x276)]),q(_0x4249be,['body',_0xded961(0x279)],(_0x94f637=_0x56970f[_0xded961(0x256)])==null?void 0x0:_0x94f637[_0xded961(0x279)],(_0x6d083a=_0x4a6702[_0xded961(0x256)])==null?void 0x0:_0x6d083a[_0xded961(0x279)]),q(_0x4249be,[_0xded961(0x256),_0xded961(0x1fe)],(_0x11957f=_0x56970f[_0xded961(0x256)])==null?void 0x0:_0x11957f['tables'],(_0x14b155=_0x4a6702['body'])==null?void 0x0:_0x14b155[_0xded961(0x1fe)]),q(_0x4249be,[_0xded961(0x256),_0xded961(0x232)],(_0x38b5ab=_0x56970f[_0xded961(0x256)])==null?void 0x0:_0x38b5ab[_0xded961(0x232)],(_0x2b37a3=_0x4a6702[_0xded961(0x256)])==null?void 0x0:_0x2b37a3[_0xded961(0x232)])][_0xded961(0x1f8)](Boolean)['reduce']((_0x2439ec,_0xe27136)=>e[_0xded961(0x22a)][_0xded961(0x239)](_0x2439ec,_0xe27136),null);}function q(_0x1097be,_0x875c96,_0x282762,_0x27ea9d){const _0x15582c=_0x27c813;return e[_0x15582c(0x20a)][_0x15582c(0x243)](_0x282762,_0x27ea9d)?null:_0x1097be[_0x15582c(0x271)](_0x875c96,_0x282762,_0x27ea9d);}function J(_0x49e6be,_0x1dda47,_0x4af6c6,_0x4e2412,_0x2430f8){const _0x43d997=_0x27c813;let _0x12026d=_e(_0x4af6c6,_0x4e2412);return _0x12026d?!!_0x49e6be['syncExecuteCommand'](t[_0x43d997(0x21d)]['id'],{'unitId':_0x1dda47,'actions':_0x12026d,'textRanges':[{'startOffset':_0x2430f8,'endOffset':_0x2430f8,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const Y=_0x27c813(0x1ed);var ve=_0x27c813(0x24e),ye=_0x27c813(0x21e);const X={};function Z(_0x7ce326,_0x33ef2c){return function(_0x83a0d7,_0x1388c1){_0x33ef2c(_0x83a0d7,_0x1388c1,_0x7ce326);};}function _0x3ef8(){const _0x39c557=['DOCS_CODE_PLUGIN','Tools','onStarting','pluginName','deepClone','UniverDocsPlugin','Plugin','generateRandomId','packageName','javascript','_docsCodeModel','findCodeRangeAtOffset','forEach','DocsCodeInsertBelowCommand','DocsCodeExitCommand','getCurrentUnitOfType','endOffset','length','getCodeConfig','customBlocks','RichTextEditingMutation','0.25.0-insiders.20260622-93bd55a','DependentOn','consumeInsertRange','from','next','cursorOffset','SECTION_BREAK','left','call','dataStream','UNIVER_DOC','_injector','JSONX','join','startOffset','docs-code.config','entries','UniverLicensePlugin','indexOf','function','blockRanges','change$','defineProperty','docs-code.command.consume-boundary-delete','iterator','delete','setConfig','compose','DEFAULT_CODE_CONFIG','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','paragraphStartIndex','getTextRanges','buildUpdateCodeActions','get','sectionBreaks','9QWKKml','DocContentInsertService','diffValue','unitId','normalizeDocsCodeConfig','direction','BuildTextUtils','IUniverInstanceService','2604408lBWeUy','4NSPSmm','Subject','blockId','6426136PxtiDg','@univerjs-pro/docs-code','paragraphs','setCodeConfig','Module','range','endTokenOffset','docs-code.command.update','codes','body','slice','decorate','3172344czuKgQ','BLOCK_END','right','paragraphStyle','fromEntries','find','registerCommand','getSnapshot','sort','add','_change$','max','_setResource','some','object','getUnitId','_configService','getUniverDocInstance','Document\x20body\x20is\x20required','constructor','getOwnPropertyDescriptor','spaceBelow','ICommandService','string','replaceOp','toStringTag','removeUnit','COMMAND','spaceAbove','customRanges','docs-code.command.exit','getParagraphsInRange','customDecorations','BLOCK_START','model','DataStreamTreeTokenType','CommandType','_config','_resources','complete','textRuns','asObservable','deserialize','toPrimitive','previousDocumentData','nextMetadata','paragraphId','syncExecuteCommand','serialize','config','4364705APayBL','documentData','734524RuHGXV','clear','IResourceManagerService','indentEnd','PARAGRAPH','symbol','CODE','removeCode','createParagraphId','set','blockType','isCodeBoundaryDelete','DOC_CODE_PLUGIN','endIndex','parse','registerPluginResource','type','Disposable','startIndex','prototype','UniverInstanceType','metadata','paragraph','filter','monospace','disposeWithMe','textStyle','dispose','docs-code.command.insert','tables','263312TNKayu','DocumentBlockRangeType','_commandService','nextDocumentData','map','min','_resourceManagerService','Inject','5869493mCYTja','commandService'];_0x3ef8=function(){return _0x39c557;};return _0x3ef8();}function be(_0x26bf62,_0x72f968,_0x187846,_0x327f12){const _0x3f8b91=_0x27c813;var _0x2d4565=arguments[_0x3f8b91(0x21a)],_0x4881e2=_0x2d4565<0x3?_0x72f968:_0x327f12===null?_0x327f12=Object[_0x3f8b91(0x26d)](_0x72f968,_0x187846):_0x327f12,_0x39c26d;if(typeof Reflect=='object'&&typeof Reflect[_0x3f8b91(0x258)]==_0x3f8b91(0x231))_0x4881e2=Reflect[_0x3f8b91(0x258)](_0x26bf62,_0x72f968,_0x187846,_0x327f12);else{for(var _0x358bea=_0x26bf62[_0x3f8b91(0x21a)]-0x1;_0x358bea>=0x0;_0x358bea--)(_0x39c26d=_0x26bf62[_0x358bea])&&(_0x4881e2=(_0x2d4565<0x3?_0x39c26d(_0x4881e2):_0x2d4565>0x3?_0x39c26d(_0x72f968,_0x187846,_0x4881e2):_0x39c26d(_0x72f968,_0x187846))||_0x4881e2);}return _0x2d4565>0x3&&_0x4881e2&&Object[_0x3f8b91(0x234)](_0x72f968,_0x187846,_0x4881e2),_0x4881e2;}let Q=class extends e[_0x27c813(0x1f2)]{constructor(_0x286761,_0x2fbf7d){const _0x41f33a=_0x27c813;super(),this[_0x41f33a(0x205)]=_0x286761,this['_docsCodeModel']=_0x2fbf7d,this['_initResource']();}['_initResource'](){const _0x951722=_0x27c813;this[_0x951722(0x1fa)](this[_0x951722(0x205)][_0x951722(0x1f0)]({'pluginName':Y,'businesses':[e['UniverInstanceType'][_0x951722(0x228)]],'toJson':_0x30ea37=>JSON['stringify'](this['_docsCodeModel'][_0x951722(0x289)](_0x30ea37)),'parseJson':_0x4fe0d5=>o(JSON[_0x951722(0x1ef)](_0x4fe0d5)),'onLoad':(_0x214148,_0x491ad4)=>this[_0x951722(0x213)][_0x951722(0x283)](_0x214148,_0x491ad4),'onUnLoad':_0x3ab81d=>this[_0x951722(0x213)][_0x951722(0x273)](_0x3ab81d)}));}};Q=be([Z(0x0,e[_0x27c813(0x28f)]),Z(0x1,(0x0,e[_0x27c813(0x206)])(R))],Q);let $=class extends e[_0x27c813(0x20f)]{constructor(_0x493bc4=X,_0x7a890,_0x16360e,_0x5cfffe){const _0x3ef5e6=_0x27c813;super(),this[_0x3ef5e6(0x27e)]=_0x493bc4,this[_0x3ef5e6(0x229)]=_0x7a890,this[_0x3ef5e6(0x201)]=_0x16360e,this['_configService']=_0x5cfffe;let {..._0x4d78b8}=(0x0,e['merge'])({},X,this['_config']);this[_0x3ef5e6(0x269)][_0x3ef5e6(0x238)](_0x3ef5e6(0x22d),_0x4d78b8);}[_0x27c813(0x20b)](){const _0xfe5b5a=_0x27c813;this[_0xfe5b5a(0x229)][_0xfe5b5a(0x262)]([R]),this['_injector']['add']([Q]),this['_injector'][_0xfe5b5a(0x23f)](R),this[_0xfe5b5a(0x229)]['get'](Q),[V,z,H,U,W,B][_0xfe5b5a(0x215)](_0x46837f=>this[_0xfe5b5a(0x1fa)](this[_0xfe5b5a(0x201)][_0xfe5b5a(0x25f)](_0x46837f)));}};L($,_0x27c813(0x20c),Y),L($,_0x27c813(0x211),ve),L($,'version',ye),L($,_0x27c813(0x1f1),e['UniverInstanceType'][_0x27c813(0x228)]),$=be([(0x0,e[_0x27c813(0x21f)])(r[_0x27c813(0x22f)],t[_0x27c813(0x20e)]),Z(0x1,(0x0,e[_0x27c813(0x206)])(e['Injector'])),Z(0x2,e[_0x27c813(0x26f)]),Z(0x3,e['IConfigService'])],$),exports[_0x27c813(0x23a)]=i,exports[_0x27c813(0x209)]=Y,exports['DocsCodeCancelEmptyParagraphCommand']=W,exports['DocsCodeConsumeBoundaryDeleteCommand']=B,exports[_0x27c813(0x217)]=U,exports[_0x27c813(0x216)]=z,exports['DocsCodeInsertCommand']=V,exports['DocsCodeModel']=R,exports['DocsCodeUpdateCommand']=H,Object[_0x27c813(0x234)](exports,'UniverDocsCodePlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports['buildCancelEmptyCodeParagraphActions']=h,exports['buildExitCodeActions']=m,exports['buildInsertCodeActions']=u,exports[_0x27c813(0x23e)]=p,exports[_0x27c813(0x214)]=_,exports[_0x27c813(0x1ec)]=v,exports[_0x27c813(0x245)]=a;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x1fe0f=_0x362d;(function(_0x5daaa4,_0x3d9e62){var _0x421855=_0x362d,_0x4b2aae=_0x5daaa4();while(!![]){try{var _0xb9fbe5=-parseInt(_0x421855(0x157))/0x1*(parseInt(_0x421855(0x17a))/0x2)+parseInt(_0x421855(0x156))/0x3*(-parseInt(_0x421855(0x181))/0x4)+parseInt(_0x421855(0x159))/0x5*(-parseInt(_0x421855(0x17f))/0x6)+parseInt(_0x421855(0x179))/0x7*(parseInt(_0x421855(0x15a))/0x8)+parseInt(_0x421855(0x14d))/0x9*(-parseInt(_0x421855(0x186))/0xa)+-parseInt(_0x421855(0x192))/0xb+-parseInt(_0x421855(0x184))/0xc*(-parseInt(_0x421855(0x16d))/0xd);if(_0xb9fbe5===_0x3d9e62)break;else _0x4b2aae['push'](_0x4b2aae['shift']());}catch(_0x1a1ade){_0x4b2aae['push'](_0x4b2aae['shift']());}}}(_0x4046,0xa50d4));import{DocsCodeCancelEmptyParagraphCommand as _0x139ed0,DocsCodeExitCommand as _0x2802ac,DocsCodeInsertCommand as _0x467d58,DocsCodeModel as _0x19aebd,DocsCodeUpdateCommand as _0x518eac,normalizeDocsCodeConfig as _0x44169}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x38c0cd,DocumentBlockRangeType as _0x2440a5,ICommandService as _0x8fdc0e,Inject as _0x4fca7f,Injector as _0x46ca51,generateRandomId as _0x2fc7b2}from'@univerjs/core';import{FDocument as _0x577ce2}from'@univerjs/docs/facade';function p(_0x386977){'@babel/helpers - typeof';var _0x5aacd5=_0x362d;return p=typeof Symbol==_0x5aacd5(0x172)&&typeof Symbol[_0x5aacd5(0x151)]=='symbol'?function(_0x44c099){return typeof _0x44c099;}:function(_0x35ff82){var _0x5d1b31=_0x5aacd5;return _0x35ff82&&typeof Symbol==_0x5d1b31(0x172)&&_0x35ff82[_0x5d1b31(0x15b)]===Symbol&&_0x35ff82!==Symbol[_0x5d1b31(0x187)]?_0x5d1b31(0x14c):typeof _0x35ff82;},p(_0x386977);}function _0x4046(){var _0x21af0f=['getId','get','371112BdYhXb','55486oXsfJE','endIndex','dataStream','_getBlockRanges','createInstance','24714dFExjU','getKey','1816Jpryqz','getText','getConfig','49941084Tgerjp','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','20WBeMgJ','prototype','default','some','exit','getType','describe','length','getCodes','_injector','cancelEmptyCodeParagraph','_getDocumentData','2575089GbuKtO','exitCode','includes','syncExecuteCommand','startIndex','extend','slice','getRange','call','symbol','6081741YNawKH','findCodeByText','config','_document','iterator','object','findCodes','BLOCK_START','decorate','762nhhKuN','22nHwEPF','getCodeConfig','1490xnOgLl','8JwHZPu','constructor','_unitId','updateConfig','_blockId','getCode','paragraph','save','SECTION_BREAK','blockType','map','from','defineProperty','filter','replace','cancelEmptyParagraph','CODE','_getBlockRange','_createFDocumentCode','13yYnjuu','BLOCK_END','body','insertCode','blockId','function','getOwnPropertyDescriptor','string','blockRanges','text'];_0x4046=function(){return _0x21af0f;};return _0x4046();}function m(_0x521a8b,_0x560133){var _0x167c33=_0x362d;if(p(_0x521a8b)!='object'||!_0x521a8b)return _0x521a8b;var _0x2c3998=_0x521a8b[Symbol['toPrimitive']];if(_0x2c3998!==void 0x0){var _0x90fa0a=_0x2c3998[_0x167c33(0x14b)](_0x521a8b,_0x560133||_0x167c33(0x188));if(p(_0x90fa0a)!=_0x167c33(0x152))return _0x90fa0a;throw TypeError(_0x167c33(0x185));}return(_0x560133===_0x167c33(0x174)?String:Number)(_0x521a8b);}function h(_0x5e1c1f){var _0x37274c=_0x362d,_0x8cb750=m(_0x5e1c1f,_0x37274c(0x174));return p(_0x8cb750)==_0x37274c(0x14c)?_0x8cb750:_0x8cb750+'';}function g(_0x3d6bbe,_0x47ceaf,_0x27d6b2){var _0x6580fd=_0x362d;return(_0x47ceaf=h(_0x47ceaf))in _0x3d6bbe?Object[_0x6580fd(0x166)](_0x3d6bbe,_0x47ceaf,{'value':_0x27d6b2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3d6bbe[_0x47ceaf]=_0x27d6b2,_0x3d6bbe;}function _(_0x381e1f,_0x59a760){return function(_0x35bfd1,_0x26d71d){_0x59a760(_0x35bfd1,_0x26d71d,_0x381e1f);};}function v(_0x25bb73,_0x348af2,_0x521627,_0x5c77f8){var _0x1a280e=_0x362d,_0x4c8a62=arguments[_0x1a280e(0x18d)],_0x484cea=_0x4c8a62<0x3?_0x348af2:_0x5c77f8===null?_0x5c77f8=Object[_0x1a280e(0x173)](_0x348af2,_0x521627):_0x5c77f8,_0x4b2f94;if(typeof Reflect==_0x1a280e(0x152)&&typeof Reflect[_0x1a280e(0x155)]==_0x1a280e(0x172))_0x484cea=Reflect[_0x1a280e(0x155)](_0x25bb73,_0x348af2,_0x521627,_0x5c77f8);else{for(var _0x26aeeb=_0x25bb73[_0x1a280e(0x18d)]-0x1;_0x26aeeb>=0x0;_0x26aeeb--)(_0x4b2f94=_0x25bb73[_0x26aeeb])&&(_0x484cea=(_0x4c8a62<0x3?_0x4b2f94(_0x484cea):_0x4c8a62>0x3?_0x4b2f94(_0x348af2,_0x521627,_0x484cea):_0x4b2f94(_0x348af2,_0x521627))||_0x484cea);}return _0x4c8a62>0x3&&_0x484cea&&Object[_0x1a280e(0x166)](_0x348af2,_0x521627,_0x484cea),_0x484cea;}let y=class{constructor(_0x4bfab0,_0x35fee8,_0x2b9add){var _0x38cc35=_0x362d;this[_0x38cc35(0x150)]=_0x4bfab0,this[_0x38cc35(0x15e)]=_0x35fee8,this[_0x38cc35(0x18f)]=_0x2b9add,g(this,_0x38cc35(0x15c),void 0x0),this[_0x38cc35(0x15c)]=this[_0x38cc35(0x150)][_0x38cc35(0x177)]();}[_0x1fe0f(0x177)](){return this['_blockId'];}[_0x1fe0f(0x14a)](){var _0x47faeb=_0x1fe0f;let _0x5c3efa=this[_0x47faeb(0x16b)]();return _0x5c3efa?{'blockId':_0x5c3efa[_0x47faeb(0x171)],'endIndex':_0x5c3efa['endIndex'],'startIndex':_0x5c3efa['startIndex']}:null;}[_0x1fe0f(0x182)](){var _0x48aa15=_0x1fe0f,_0x2bec46;let _0x2ba2b0=this[_0x48aa15(0x16b)](),_0x3ad334=(_0x2bec46=this[_0x48aa15(0x191)]()['body'])==null?void 0x0:_0x2bec46[_0x48aa15(0x17c)];return!_0x2ba2b0||!_0x3ad334?'':b(_0x3ad334[_0x48aa15(0x149)](_0x2ba2b0[_0x48aa15(0x147)]+0x1,_0x2ba2b0[_0x48aa15(0x17b)]));}[_0x1fe0f(0x18c)](){var _0x213e77=_0x1fe0f;let _0x36d07c=this['getRange']();return _0x36d07c?{..._0x36d07c,'config':this[_0x213e77(0x183)](),'text':this[_0x213e77(0x182)](),'type':_0x2440a5['CODE']}:null;}['getConfig'](){var _0x3b4b37=_0x1fe0f;return _0x44169(this[_0x3b4b37(0x18f)][_0x3b4b37(0x178)](_0x19aebd)[_0x3b4b37(0x158)](this[_0x3b4b37(0x15c)],this[_0x3b4b37(0x15e)]));}[_0x1fe0f(0x15d)](_0x16e98a){var _0x8ba4f9=_0x1fe0f;return this[_0x8ba4f9(0x18f)][_0x8ba4f9(0x178)](_0x8fdc0e)[_0x8ba4f9(0x195)](_0x518eac['id'],{'blockId':this['_blockId'],'config':_0x16e98a[_0x8ba4f9(0x14f)],'unitId':this['_unitId']});}[_0x1fe0f(0x18a)](_0x13b067){var _0x29d7d2=_0x1fe0f;return this['_injector'][_0x29d7d2(0x178)](_0x8fdc0e)[_0x29d7d2(0x195)](_0x2802ac['id'],{'cursorOffset':_0x13b067,'unitId':this['_unitId']});}[_0x1fe0f(0x169)](_0x86e50f={}){var _0x136857=_0x1fe0f;return this[_0x136857(0x18f)][_0x136857(0x178)](_0x8fdc0e)[_0x136857(0x195)](_0x139ed0['id'],{..._0x86e50f,'unitId':this['_unitId']});}[_0x1fe0f(0x191)](){var _0x4d691e=_0x1fe0f;return this[_0x4d691e(0x150)][_0x4d691e(0x161)]();}[_0x1fe0f(0x16b)](){var _0x2bae34=_0x1fe0f,_0x382efe;let _0x1c0341=(_0x382efe=this[_0x2bae34(0x191)]()[_0x2bae34(0x16f)])==null||(_0x382efe=_0x382efe['blockRanges'])==null?void 0x0:_0x382efe['find'](_0x229f99=>_0x229f99[_0x2bae34(0x171)]===this[_0x2bae34(0x15e)]&&_0x229f99['blockType']===_0x2440a5[_0x2bae34(0x16a)]);return _0x1c0341==null?null:_0x1c0341;}};y=v([_(0x2,_0x4fca7f(_0x46ca51))],y);function b(_0x3d94fa){var _0x37645b=_0x1fe0f;return Array[_0x37645b(0x165)](_0x3d94fa)['map'](_0x1c99f4=>_0x1c99f4===_0x38c0cd['PARAGRAPH']?'\x0a':_0x1c99f4)[_0x37645b(0x167)](_0x5a2fff=>_0x5a2fff!==_0x38c0cd[_0x37645b(0x154)]&&_0x5a2fff!==_0x38c0cd[_0x37645b(0x16e)]&&_0x5a2fff!==_0x38c0cd[_0x37645b(0x162)])['join']('')[_0x37645b(0x168)](/\n$/,'');}var x=class extends _0x577ce2{[_0x1fe0f(0x18e)](){var _0x4be329=_0x1fe0f;return this[_0x4be329(0x17d)]()['filter'](_0x539a27=>_0x539a27[_0x4be329(0x163)]===_0x2440a5['CODE'])[_0x4be329(0x164)](_0x22021b=>this[_0x4be329(0x16c)](_0x22021b[_0x4be329(0x171)]));}[_0x1fe0f(0x15f)](_0x46c091){var _0xb4fdae=_0x1fe0f;return this[_0xb4fdae(0x17d)]()[_0xb4fdae(0x189)](_0x3e7156=>_0x3e7156[_0xb4fdae(0x171)]===_0x46c091&&_0x3e7156[_0xb4fdae(0x163)]===_0x2440a5[_0xb4fdae(0x16a)])?this[_0xb4fdae(0x16c)](_0x46c091):null;}['getCodeAt'](_0x358619){var _0x1c85ef=_0x1fe0f;let _0x350fb1=this[_0x1c85ef(0x17d)]()['find'](_0x20b6b9=>_0x20b6b9['blockType']===_0x2440a5[_0x1c85ef(0x16a)]&&_0x20b6b9['startIndex']<=_0x358619&&_0x358619<=_0x20b6b9['endIndex']);return _0x350fb1?this[_0x1c85ef(0x16c)](_0x350fb1[_0x1c85ef(0x171)]):null;}[_0x1fe0f(0x14e)](_0x130099){var _0x8b28a6=_0x1fe0f,_0xcdd755;return(_0xcdd755=this[_0x8b28a6(0x153)](_0x130099)[0x0])==null?null:_0xcdd755;}[_0x1fe0f(0x153)](_0x517786){var _0x3885d8=_0x1fe0f;let _0xad8ef0=typeof _0x517786==_0x3885d8(0x174)?{'text':_0x517786}:_0x517786;return this[_0x3885d8(0x18e)]()[_0x3885d8(0x167)](_0xe756e4=>!(_0xad8ef0[_0x3885d8(0x171)]&&_0xe756e4['getId']()!==_0xad8ef0[_0x3885d8(0x171)]||_0xad8ef0[_0x3885d8(0x176)]&&!_0xe756e4[_0x3885d8(0x182)]()[_0x3885d8(0x194)](_0xad8ef0[_0x3885d8(0x176)])));}[_0x1fe0f(0x170)](_0x59784c={},_0x349b37={}){var _0x3764ac=_0x1fe0f,_0x599372;let _0x1458dc=this[_0x3764ac(0x18f)][_0x3764ac(0x178)](_0x8fdc0e),_0x277a32=S(_0x59784c)?{..._0x349b37,...C(_0x59784c)}:_0x59784c,_0x521a9d=(_0x599372=_0x277a32['blockId'])==null?_0x2fc7b2(0x6):_0x599372;return _0x1458dc[_0x3764ac(0x195)](_0x467d58['id'],{..._0x277a32,'blockId':_0x521a9d,'unitId':this[_0x3764ac(0x177)]()})?this[_0x3764ac(0x16c)](_0x521a9d):null;}[_0x1fe0f(0x193)](_0x56e8f5){var _0x454348=_0x1fe0f;return this[_0x454348(0x18f)][_0x454348(0x178)](_0x8fdc0e)[_0x454348(0x195)](_0x2802ac['id'],{'cursorOffset':_0x56e8f5,'unitId':this[_0x454348(0x177)]()});}[_0x1fe0f(0x190)](_0x322fc2={}){var _0x1bf49f=_0x1fe0f;return this[_0x1bf49f(0x18f)][_0x1bf49f(0x178)](_0x8fdc0e)[_0x1bf49f(0x195)](_0x139ed0['id'],{..._0x322fc2,'unitId':this[_0x1bf49f(0x177)]()});}[_0x1fe0f(0x17d)](){var _0x182f4a=_0x1fe0f,_0x4b1f35,_0x2320f7;return(_0x4b1f35=(_0x2320f7=this[_0x182f4a(0x161)]()[_0x182f4a(0x16f)])==null?void 0x0:_0x2320f7[_0x182f4a(0x175)])==null?[]:_0x4b1f35;}[_0x1fe0f(0x16c)](_0x4d188e){var _0x23af5d=_0x1fe0f;return this[_0x23af5d(0x18f)][_0x23af5d(0x17e)](y,this,_0x4d188e);}};function _0x362d(_0x13ce63,_0xe3b7ab){_0x13ce63=_0x13ce63-0x147;var _0x40461c=_0x4046();var _0x362d1d=_0x40461c[_0x13ce63];return _0x362d1d;}function S(_0x32dec9){var _0x3b4347=_0x1fe0f;return typeof _0x32dec9=='object'&&!!_0x32dec9&&typeof _0x32dec9[_0x3b4347(0x180)]=='function'&&typeof _0x32dec9[_0x3b4347(0x14a)]==_0x3b4347(0x172)&&typeof _0x32dec9['getType']==_0x3b4347(0x172)&&_0x32dec9[_0x3b4347(0x18b)]()===_0x3b4347(0x160);}function C(_0x2b30dc){return _0x2b30dc['getRange']();}_0x577ce2[_0x1fe0f(0x148)](x);export{y as FDocumentCode};
|
|
1
|
+
function _0x4671(_0xccd1e7,_0xd80446){_0xccd1e7=_0xccd1e7-0x84;var _0x3986fc=_0x3986();var _0x4671f4=_0x3986fc[_0xccd1e7];return _0x4671f4;}var _0x1824cd=_0x4671;function _0x3986(){var _0x500265=['_getBlockRanges','getCode','_blockId','replace','_getBlockRange','getType','4264696mCusJD','includes','getText','some','extend','paragraph','getCodeConfig','getKey','blockType','updateConfig','createInstance','1556ZvGZak','28cQcGfL','body','7148601FcDefD','defineProperty','6730570BdCAVu','slice','endIndex','default','join','exit','getCodes','map','prototype','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','function','_document','blockId','_injector','getRange','5DLCUQo','_unitId','get','477435iLlIfQ','dataStream','_createFDocumentCode','insertCode','symbol','string','call','getId','findCodeByText','syncExecuteCommand','cancelEmptyCodeParagraph','save','_getDocumentData','688tniqQe','CODE','filter','toPrimitive','SECTION_BREAK','getConfig','text','exitCode','findCodes','getCodeAt','config','constructor','decorate','100904GyyHmg','find','startIndex','from','blockRanges','1184562GziTwA','object','describe'];_0x3986=function(){return _0x500265;};return _0x3986();}(function(_0x5e3789,_0x4b1390){var _0x40b9cd=_0x4671,_0x4b9536=_0x5e3789();while(!![]){try{var _0x46c91a=-parseInt(_0x40b9cd(0x89))/0x1*(parseInt(_0x40b9cd(0xaf))/0x2)+-parseInt(_0x40b9cd(0xc6))/0x3+parseInt(_0x40b9cd(0xa4))/0x4+-parseInt(_0x40b9cd(0xc3))/0x5*(-parseInt(_0x40b9cd(0x9b))/0x6)+-parseInt(_0x40b9cd(0xb0))/0x7*(parseInt(_0x40b9cd(0x96))/0x8)+parseInt(_0x40b9cd(0xb2))/0x9+-parseInt(_0x40b9cd(0xb4))/0xa;if(_0x46c91a===_0x4b1390)break;else _0x4b9536['push'](_0x4b9536['shift']());}catch(_0x4e37a0){_0x4b9536['push'](_0x4b9536['shift']());}}}(_0x3986,0x9c3e4));import{DocsCodeCancelEmptyParagraphCommand as _0x171536,DocsCodeExitCommand as _0x581040,DocsCodeInsertCommand as _0x1952af,DocsCodeModel as _0x19c7e3,DocsCodeUpdateCommand as _0xe92d90,normalizeDocsCodeConfig as _0x1a0d9e}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x1281a0,DocumentBlockRangeType as _0x5189f8,ICommandService as _0x5c9fe9,Inject as _0x4f5327,Injector as _0x285566,generateRandomId as _0x5bac66}from'@univerjs/core';import{FDocument as _0x570bf7}from'@univerjs/docs/facade';function p(_0x151651){'@babel/helpers - typeof';var _0x239ed8=_0x4671;return p=typeof Symbol==_0x239ed8(0xbe)&&typeof Symbol['iterator']==_0x239ed8(0xca)?function(_0x2012d8){return typeof _0x2012d8;}:function(_0x4a8bae){var _0x454ced=_0x239ed8;return _0x4a8bae&&typeof Symbol==_0x454ced(0xbe)&&_0x4a8bae[_0x454ced(0x94)]===Symbol&&_0x4a8bae!==Symbol[_0x454ced(0xbc)]?_0x454ced(0xca):typeof _0x4a8bae;},p(_0x151651);}function m(_0x3c1d9c,_0x4e380d){var _0xb75e9=_0x4671;if(p(_0x3c1d9c)!=_0xb75e9(0x9c)||!_0x3c1d9c)return _0x3c1d9c;var _0x4a1d8a=_0x3c1d9c[Symbol[_0xb75e9(0x8c)]];if(_0x4a1d8a!==void 0x0){var _0x2e143d=_0x4a1d8a[_0xb75e9(0xcc)](_0x3c1d9c,_0x4e380d||_0xb75e9(0xb7));if(p(_0x2e143d)!='object')return _0x2e143d;throw TypeError(_0xb75e9(0xbd));}return(_0x4e380d==='string'?String:Number)(_0x3c1d9c);}function h(_0x12d43a){var _0x3ea3e6=_0x4671,_0x1971d3=m(_0x12d43a,_0x3ea3e6(0xcb));return p(_0x1971d3)==_0x3ea3e6(0xca)?_0x1971d3:_0x1971d3+'';}function g(_0x1e4bcf,_0x31b635,_0x1433f1){var _0x317a72=_0x4671;return(_0x31b635=h(_0x31b635))in _0x1e4bcf?Object[_0x317a72(0xb3)](_0x1e4bcf,_0x31b635,{'value':_0x1433f1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1e4bcf[_0x31b635]=_0x1433f1,_0x1e4bcf;}function _(_0x466e84,_0x3028af){return function(_0x1fcb97,_0x8843b0){_0x3028af(_0x1fcb97,_0x8843b0,_0x466e84);};}function v(_0x4046cc,_0x515831,_0xbf1d9e,_0x1e90cb){var _0x1b01ce=_0x4671,_0x31341a=arguments['length'],_0x12327d=_0x31341a<0x3?_0x515831:_0x1e90cb===null?_0x1e90cb=Object['getOwnPropertyDescriptor'](_0x515831,_0xbf1d9e):_0x1e90cb,_0x54194a;if(typeof Reflect=='object'&&typeof Reflect[_0x1b01ce(0x95)]==_0x1b01ce(0xbe))_0x12327d=Reflect[_0x1b01ce(0x95)](_0x4046cc,_0x515831,_0xbf1d9e,_0x1e90cb);else{for(var _0x3966cd=_0x4046cc['length']-0x1;_0x3966cd>=0x0;_0x3966cd--)(_0x54194a=_0x4046cc[_0x3966cd])&&(_0x12327d=(_0x31341a<0x3?_0x54194a(_0x12327d):_0x31341a>0x3?_0x54194a(_0x515831,_0xbf1d9e,_0x12327d):_0x54194a(_0x515831,_0xbf1d9e))||_0x12327d);}return _0x31341a>0x3&&_0x12327d&&Object[_0x1b01ce(0xb3)](_0x515831,_0xbf1d9e,_0x12327d),_0x12327d;}let y=class{constructor(_0x5e0808,_0x4f1d64,_0x4f221f){var _0x44eac1=_0x4671;this[_0x44eac1(0xbf)]=_0x5e0808,this[_0x44eac1(0xa0)]=_0x4f1d64,this[_0x44eac1(0xc1)]=_0x4f221f,g(this,_0x44eac1(0xc4),void 0x0),this[_0x44eac1(0xc4)]=this[_0x44eac1(0xbf)][_0x44eac1(0xcd)]();}['getId'](){var _0x53fcd9=_0x4671;return this[_0x53fcd9(0xa0)];}[_0x1824cd(0xc2)](){var _0x436d8d=_0x1824cd;let _0x4259d3=this[_0x436d8d(0xa2)]();return _0x4259d3?{'blockId':_0x4259d3['blockId'],'endIndex':_0x4259d3[_0x436d8d(0xb6)],'startIndex':_0x4259d3['startIndex']}:null;}[_0x1824cd(0xa6)](){var _0x1886ba=_0x1824cd,_0xe342;let _0x5bd7ac=this[_0x1886ba(0xa2)](),_0x322cbe=(_0xe342=this[_0x1886ba(0x88)]()[_0x1886ba(0xb1)])==null?void 0x0:_0xe342[_0x1886ba(0xc7)];return!_0x5bd7ac||!_0x322cbe?'':b(_0x322cbe[_0x1886ba(0xb5)](_0x5bd7ac['startIndex']+0x1,_0x5bd7ac[_0x1886ba(0xb6)]));}[_0x1824cd(0x9d)](){var _0x15e7ea=_0x1824cd;let _0xaad869=this['getRange']();return _0xaad869?{..._0xaad869,'config':this[_0x15e7ea(0x8e)](),'text':this[_0x15e7ea(0xa6)](),'type':_0x5189f8[_0x15e7ea(0x8a)]}:null;}[_0x1824cd(0x8e)](){var _0x11004e=_0x1824cd;return _0x1a0d9e(this[_0x11004e(0xc1)]['get'](_0x19c7e3)[_0x11004e(0xaa)](this['_unitId'],this[_0x11004e(0xa0)]));}[_0x1824cd(0xad)](_0x28f169){var _0x533a2a=_0x1824cd;return this[_0x533a2a(0xc1)][_0x533a2a(0xc5)](_0x5c9fe9)['syncExecuteCommand'](_0xe92d90['id'],{'blockId':this[_0x533a2a(0xa0)],'config':_0x28f169[_0x533a2a(0x93)],'unitId':this[_0x533a2a(0xc4)]});}[_0x1824cd(0xb9)](_0x1be6c1){var _0xcdec39=_0x1824cd;return this[_0xcdec39(0xc1)][_0xcdec39(0xc5)](_0x5c9fe9)[_0xcdec39(0x85)](_0x581040['id'],{'cursorOffset':_0x1be6c1,'unitId':this['_unitId']});}['cancelEmptyParagraph'](_0x29c428={}){var _0x2f4351=_0x1824cd;return this['_injector']['get'](_0x5c9fe9)[_0x2f4351(0x85)](_0x171536['id'],{..._0x29c428,'unitId':this['_unitId']});}[_0x1824cd(0x88)](){var _0x40ff94=_0x1824cd;return this['_document'][_0x40ff94(0x87)]();}[_0x1824cd(0xa2)](){var _0x3c6721=_0x1824cd,_0x4d855d;let _0x599720=(_0x4d855d=this['_getDocumentData']()[_0x3c6721(0xb1)])==null||(_0x4d855d=_0x4d855d['blockRanges'])==null?void 0x0:_0x4d855d[_0x3c6721(0x97)](_0x5cda64=>_0x5cda64[_0x3c6721(0xc0)]===this[_0x3c6721(0xa0)]&&_0x5cda64[_0x3c6721(0xac)]===_0x5189f8['CODE']);return _0x599720==null?null:_0x599720;}};y=v([_(0x2,_0x4f5327(_0x285566))],y);function b(_0x216c3a){var _0x5df21a=_0x1824cd;return Array[_0x5df21a(0x99)](_0x216c3a)['map'](_0x9a0cc8=>_0x9a0cc8===_0x1281a0['PARAGRAPH']?'\x0a':_0x9a0cc8)[_0x5df21a(0x8b)](_0x2a6839=>_0x2a6839!==_0x1281a0['BLOCK_START']&&_0x2a6839!==_0x1281a0['BLOCK_END']&&_0x2a6839!==_0x1281a0[_0x5df21a(0x8d)])[_0x5df21a(0xb8)]('')[_0x5df21a(0xa1)](/\n$/,'');}var x=class extends _0x570bf7{['getCodes'](){var _0x3701fe=_0x1824cd;return this[_0x3701fe(0x9e)]()[_0x3701fe(0x8b)](_0x80551f=>_0x80551f[_0x3701fe(0xac)]===_0x5189f8[_0x3701fe(0x8a)])[_0x3701fe(0xbb)](_0x410a0b=>this[_0x3701fe(0xc8)](_0x410a0b[_0x3701fe(0xc0)]));}[_0x1824cd(0x9f)](_0x7601e0){var _0x34f132=_0x1824cd;return this['_getBlockRanges']()[_0x34f132(0xa7)](_0x28cc6f=>_0x28cc6f[_0x34f132(0xc0)]===_0x7601e0&&_0x28cc6f['blockType']===_0x5189f8['CODE'])?this[_0x34f132(0xc8)](_0x7601e0):null;}[_0x1824cd(0x92)](_0x444869){var _0x225f57=_0x1824cd;let _0x1486f6=this['_getBlockRanges']()[_0x225f57(0x97)](_0x3454cc=>_0x3454cc['blockType']===_0x5189f8[_0x225f57(0x8a)]&&_0x3454cc[_0x225f57(0x98)]<=_0x444869&&_0x444869<=_0x3454cc['endIndex']);return _0x1486f6?this[_0x225f57(0xc8)](_0x1486f6[_0x225f57(0xc0)]):null;}[_0x1824cd(0x84)](_0x3ae8a7){var _0x4a0330;return(_0x4a0330=this['findCodes'](_0x3ae8a7)[0x0])==null?null:_0x4a0330;}[_0x1824cd(0x91)](_0xca6323){var _0x8bdaf2=_0x1824cd;let _0x8ce507=typeof _0xca6323==_0x8bdaf2(0xcb)?{'text':_0xca6323}:_0xca6323;return this[_0x8bdaf2(0xba)]()[_0x8bdaf2(0x8b)](_0x3e5c10=>!(_0x8ce507[_0x8bdaf2(0xc0)]&&_0x3e5c10[_0x8bdaf2(0xcd)]()!==_0x8ce507[_0x8bdaf2(0xc0)]||_0x8ce507['text']&&!_0x3e5c10[_0x8bdaf2(0xa6)]()[_0x8bdaf2(0xa5)](_0x8ce507[_0x8bdaf2(0x8f)])));}[_0x1824cd(0xc9)](_0xedfb41={},_0x438bb4={}){var _0x14a20a=_0x1824cd,_0x50a948;let _0x5ba950=this[_0x14a20a(0xc1)][_0x14a20a(0xc5)](_0x5c9fe9),_0x15f8d3=S(_0xedfb41)?{..._0x438bb4,...C(_0xedfb41)}:_0xedfb41,_0x38baf8=(_0x50a948=_0x15f8d3[_0x14a20a(0xc0)])==null?_0x5bac66(0x6):_0x50a948;return _0x5ba950['syncExecuteCommand'](_0x1952af['id'],{..._0x15f8d3,'blockId':_0x38baf8,'unitId':this[_0x14a20a(0xcd)]()})?this[_0x14a20a(0xc8)](_0x38baf8):null;}[_0x1824cd(0x90)](_0x13aadf){var _0x3781c4=_0x1824cd;return this[_0x3781c4(0xc1)][_0x3781c4(0xc5)](_0x5c9fe9)[_0x3781c4(0x85)](_0x581040['id'],{'cursorOffset':_0x13aadf,'unitId':this['getId']()});}[_0x1824cd(0x86)](_0x14adf6={}){var _0x3efac9=_0x1824cd;return this[_0x3efac9(0xc1)][_0x3efac9(0xc5)](_0x5c9fe9)['syncExecuteCommand'](_0x171536['id'],{..._0x14adf6,'unitId':this[_0x3efac9(0xcd)]()});}[_0x1824cd(0x9e)](){var _0x1da683=_0x1824cd,_0x50eb20,_0x5da9c0;return(_0x50eb20=(_0x5da9c0=this[_0x1da683(0x87)]()[_0x1da683(0xb1)])==null?void 0x0:_0x5da9c0[_0x1da683(0x9a)])==null?[]:_0x50eb20;}[_0x1824cd(0xc8)](_0x29aa03){var _0x33bb22=_0x1824cd;return this['_injector'][_0x33bb22(0xae)](y,this,_0x29aa03);}};function S(_0xfadf99){var _0x492b5b=_0x1824cd;return typeof _0xfadf99==_0x492b5b(0x9c)&&!!_0xfadf99&&typeof _0xfadf99[_0x492b5b(0xab)]=='function'&&typeof _0xfadf99['getRange']==_0x492b5b(0xbe)&&typeof _0xfadf99[_0x492b5b(0xa3)]=='function'&&_0xfadf99[_0x492b5b(0xa3)]()===_0x492b5b(0xa9);}function C(_0x4ed4e3){var _0x14afe5=_0x1824cd;return _0x4ed4e3[_0x14afe5(0xc2)]();}_0x570bf7[_0x1824cd(0xa8)](x);export{y as FDocumentCode};
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x573451=_0x5b77;(function(_0x25e252,_0x1a85f6){const _0x2232ff=_0x5b77,_0x2fd709=_0x25e252();while(!![]){try{const _0x29595d=-parseInt(_0x2232ff(0xd4))/0x1*(-parseInt(_0x2232ff(0x100))/0x2)+parseInt(_0x2232ff(0xd0))/0x3*(-parseInt(_0x2232ff(0x8b))/0x4)+parseInt(_0x2232ff(0xf7))/0x5*(parseInt(_0x2232ff(0xa4))/0x6)+-parseInt(_0x2232ff(0xdb))/0x7+-parseInt(_0x2232ff(0xe1))/0x8+parseInt(_0x2232ff(0xda))/0x9*(parseInt(_0x2232ff(0xe9))/0xa)+parseInt(_0x2232ff(0x105))/0xb;if(_0x29595d===_0x1a85f6)break;else _0x2fd709['push'](_0x2fd709['shift']());}catch(_0x391e60){_0x2fd709['push'](_0x2fd709['shift']());}}}(_0x549c,0xe2e73));import{BuildTextUtils as _0x55168e,CommandType as _0x351439,DataStreamTreeTokenType as _0x44840e,DependentOn as _0x62210c,Disposable as _0x31b9f9,DocumentBlockRangeType as _0xbe313d,ICommandService as _0x9902cc,IConfigService as _0x34c159,IResourceManagerService as _0x19351f,IUniverInstanceService as _0x430140,Inject as _0x51ccf3,Injector as _0x31cf9d,JSONX as _0xbc2f76,Plugin as _0x233ba5,Tools as _0x223860,UniverInstanceType as _0x4a473f,createParagraphId as _0x109b3b,generateRandomId as _0x12c824,merge as _0x50d7aa}from'@univerjs/core';import{DocContentInsertService as _0x5b79f4,DocSelectionManagerService as _0x280038,RichTextEditingMutation as _0x24f4de,UniverDocsPlugin as _0xcb8284}from'@univerjs/docs';import{Subject as _0x188f5e}from'rxjs';import{UniverLicensePlugin as _0x1eeb83}from'@univerjs-pro/license';const S={'language':_0x573451(0x98),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function C(_0x58463a){return{...S,..._0x58463a};}function w(_0x526f91){const _0x461fa9=_0x573451;var _0x7d7041;let _0x496a70=(_0x7d7041=_0x526f91==null?void 0x0:_0x526f91[_0x461fa9(0xf5)])==null?{}:_0x7d7041;return{'codes':Object[_0x461fa9(0xe6)](Object['entries'](_0x496a70)[_0x461fa9(0xf9)](([_0x5bbc19,_0x43e8cd])=>[_0x5bbc19,C(_0x43e8cd)]))};}function T(_0x4e5c67,_0x468b3a,_0x1506fc){const _0x17e07b=_0x573451;let _0x45e556=w(_0x4e5c67);return _0x45e556[_0x17e07b(0xf5)][_0x468b3a]=C({..._0x45e556[_0x17e07b(0xf5)][_0x468b3a],..._0x1506fc}),_0x45e556;}function _0x549c(){const _0x471e8a=['blockType','nextDocumentData','body','getOwnPropertyDescriptor','delete','object','sort','javascript','documentData','iterator','setConfig','indentStart','change$','call','_commandService','deepClone','CODE','get','textStyle','18HncOXU','_resourceManagerService','set','range','docs-code.command.update','getUnitId','string','stringify','prototype','startIndex','spaceBelow','docs-code.config','length','spaceAbove','clear','left','docs-code.command.consume-boundary-delete','_injector','model','some','SECTION_BREAK','removeCode','0.25.0-insiders.20260618-fa5d5d0','UNIVER_DOC','version','compose','nextMetadata','every','disposeWithMe','blockRanges','filter','getCurrentUnitOfType','tables','paragraphStartIndex','monospace','BLOCK_END','endIndex','min','slice','getParagraphsInRange','_setResource','docs-code.command.cancel-empty-paragraph','next','type','2577pGXBpm','commandService','_docsCodeModel','_config','2HkIeku','syncExecuteCommand','customRanges','getTextRanges','COMMAND','dispose','9mBcwBE','6469470IVPRSb','paragraphStyle','_configService','right','parse','forEach','7639104aaRByr','indentEnd','config','cursorOffset','replaceOp','fromEntries','_resources','getBody','16212490NYcvhE','serialize','paragraphId','max','paragraphs','BLOCK_START','from','find','paragraph','registerPluginResource','@univerjs-pro/docs-code','docs-code.command.insert','codes','blockId','1775210iIjgnn','_initResource','map','startOffset','complete','default','Document\x20body\x20is\x20required','dataStream','deserialize','344722EGWYKJ','indexOf','toPrimitive','customDecorations','_change$','1699467qGIfdm','endOffset','function','add','decorate','customBlocks','unitId','PARAGRAPH','symbol','sectionBreaks','endsWith','onStarting','1756uXjAeK','pluginName','direction','metadata','textRuns','previousDocumentData'];_0x549c=function(){return _0x471e8a;};return _0x549c();}function re(_0x37d471,_0x10e15a){const _0x154c65=_0x573451;let _0x2b438b=w(_0x37d471);return delete _0x2b438b[_0x154c65(0xf5)][_0x10e15a],_0x2b438b;}const ie=_0x573451(0xc6);function ae(_0x33c189){const _0x504c2b=_0x573451;var _0xe6dfce,_0x362be0,_0x53ad3c;let _0x4bb134=D(_0x33c189[_0x504c2b(0x99)]),_0x3ed4e3=O(_0x4bb134),_0x5aeee9=se(_0x33c189[_0x504c2b(0xfa)],_0x33c189[_0x504c2b(0x106)]),_0x2f2ae6=_0x5aeee9?(_0xe6dfce=_0x3ed4e3[_0x504c2b(0xc1)])==null?void 0x0:_0xe6dfce[_0x504c2b(0xf0)](_0x41a31f=>_0x41a31f['startIndex']===_0x5aeee9[_0x504c2b(0xfa)]&&_0x41a31f['endIndex']+0x1===_0x5aeee9[_0x504c2b(0x106)]):void 0x0,{startOffset:_0x19bb23,endOffset:_0x15d13a}=_0x2f2ae6?_0x5aeee9:ye(_0x3ed4e3,_0x33c189[_0x504c2b(0xfa)],_0x33c189[_0x504c2b(0x106)]),_0x48f842=Se(_0x3ed4e3,_0x19bb23,_0x15d13a),_0x18ea15=(_0x362be0=_0x2f2ae6==null?void 0x0:_0x2f2ae6[_0x504c2b(0xf6)])==null?_0x33c189[_0x504c2b(0xf6)]:_0x362be0,_0x395cd8=T(_0x33c189[_0x504c2b(0x8e)],_0x18ea15,{...S,..._0x33c189[_0x504c2b(0xe3)]});if(_0x2f2ae6)return _0x2f2ae6[_0x504c2b(0x91)]=_0xbe313d[_0x504c2b(0xa1)],oe(_0x3ed4e3,_0x19bb23,_0x15d13a),he(_0x3ed4e3,_0x19bb23,_0x15d13a,_0x48f842),M(_0x3ed4e3,_0x2f2ae6),{'nextDocumentData':_0x4bb134,'nextMetadata':_0x395cd8,'cursorOffset':_0x19bb23+0x1};if(_0x19bb23===_0x15d13a){var _0x754edc,_0xdc15af;let _0x108647=''+_0x44840e['BLOCK_START']+_0x44840e[_0x504c2b(0x86)]+_0x44840e[_0x504c2b(0xc7)];N(_0x3ed4e3,_0x19bb23,_0x108647,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x109b3b(new Set((_0x754edc=_0x3ed4e3['paragraphs'])==null?void 0x0:_0x754edc[_0x504c2b(0xf9)](_0x3879dd=>_0x3879dd[_0x504c2b(0xeb)]))),'paragraphStyle':E(!0x0,!0x0,_0x48f842)}],'blockRanges':[{'blockId':_0x18ea15,'blockType':_0xbe313d[_0x504c2b(0xa1)],'startIndex':0x0,'endIndex':_0x108647[_0x504c2b(0xb0)]-0x1}]});let _0x1e3f1d=(_0xdc15af=_0x3ed4e3[_0x504c2b(0xc1)])==null?void 0x0:_0xdc15af[_0x504c2b(0xf0)](_0x1acdb1=>_0x1acdb1[_0x504c2b(0xf6)]===_0x18ea15);return _0x1e3f1d&&M(_0x3ed4e3,_0x1e3f1d),{'nextDocumentData':_0x4bb134,'nextMetadata':_0x395cd8,'cursorOffset':_0x19bb23+0x1};}N(_0x3ed4e3,_0x15d13a,_0x44840e[_0x504c2b(0xc7)]),N(_0x3ed4e3,_0x19bb23,_0x44840e['BLOCK_START']),he(_0x3ed4e3,_0x19bb23,_0x15d13a+0x1,_0x48f842);let _0x83f8e7={'blockId':_0x18ea15,'blockType':_0xbe313d[_0x504c2b(0xa1)],'startIndex':_0x19bb23,'endIndex':_0x15d13a+0x1};return _0x3ed4e3[_0x504c2b(0xc1)]=[...(_0x53ad3c=_0x3ed4e3[_0x504c2b(0xc1)])==null?[]:_0x53ad3c,_0x83f8e7][_0x504c2b(0x97)]((_0x5de677,_0x566da2)=>_0x5de677['startIndex']-_0x566da2[_0x504c2b(0xad)]),M(_0x3ed4e3,_0x83f8e7),{'nextDocumentData':_0x4bb134,'nextMetadata':_0x395cd8,'cursorOffset':_0x19bb23+0x1};}function oe(_0x336622,_0x4e43a9,_0x1f602c){const _0x177348=_0x573451;var _0x731003;((_0x731003=_0x336622[_0x177348(0xed)])==null?[]:_0x731003)[_0x177348(0xc2)](_0x485c1e=>_0x485c1e[_0x177348(0xad)]>_0x4e43a9&&_0x485c1e[_0x177348(0xad)]<_0x1f602c)['forEach'](_0x442241=>{const _0x43eaec=_0x177348;var _0x107963;let _0x34faf8={...(_0x107963=_0x442241[_0x43eaec(0xdc)])==null?{}:_0x107963};delete _0x34faf8[_0x43eaec(0xb1)],delete _0x34faf8[_0x43eaec(0xae)],_0x442241['paragraphStyle']=_0x34faf8;});}function se(_0x217d04,_0x4cafb6){const _0xb3a8f=_0x573451;return _0x217d04==null||_0x4cafb6==null||_0x217d04===_0x4cafb6?null:{'startOffset':Math[_0xb3a8f(0xc9)](_0x217d04,_0x4cafb6),'endOffset':Math[_0xb3a8f(0xec)](_0x217d04,_0x4cafb6)};}function ce(_0x3f708a){const _0x25af54=_0x573451;return{'nextDocumentData':D(_0x3f708a[_0x25af54(0x99)]),'nextMetadata':T(_0x3f708a['metadata'],_0x3f708a[_0x25af54(0xf6)],_0x3f708a[_0x25af54(0xe3)]),'cursorOffset':0x0};}function le(_0x50a28f){const _0x4eaee3=_0x573451;var _0xb3ce98,_0x466e5b;let _0x13a4f2=D(_0x50a28f[_0x4eaee3(0x99)]),_0x53609f=O(_0x13a4f2),_0x137846=me(_0x53609f,_0x50a28f[_0x4eaee3(0xe4)]);if(!_0x137846)return null;let _0x573425=_e(_0x53609f,_0x137846),_0x57fb98=_0x573425[_0x573425[_0x4eaee3(0xb0)]-0x1];if(!_0x57fb98||!ve(_0x53609f,_0x137846,_0x57fb98)||_0x50a28f[_0x4eaee3(0xe4)]<_0x57fb98['startIndex'])return null;let _0x2d6881=A(_0x53609f,_0x137846,_0x57fb98);if(_0x2d6881>=_0x137846[_0x4eaee3(0xc8)])return null;_0x53609f[_0x4eaee3(0xfe)]=[_0x53609f[_0x4eaee3(0xfe)][_0x4eaee3(0xca)](0x0,_0x2d6881),_0x44840e[_0x4eaee3(0xc7)],_0x53609f['dataStream'][_0x4eaee3(0xca)](_0x2d6881,_0x137846['endIndex']),_0x53609f[_0x4eaee3(0xfe)]['slice'](_0x137846['endIndex']+0x1)]['join'](''),R(_0x53609f['paragraphs'],_0x2d6881,_0x137846['endIndex'],0x1),R(_0x53609f['sectionBreaks'],_0x2d6881,_0x137846['endIndex'],0x1),R(_0x53609f['customBlocks'],_0x2d6881,_0x137846[_0x4eaee3(0xc8)],0x1),ke(_0x53609f[_0x4eaee3(0x8f)],_0x2d6881,_0x137846['endIndex'],0x1),z(_0x53609f[_0x4eaee3(0xc4)],_0x2d6881,_0x137846[_0x4eaee3(0xc8)],0x1),z(_0x53609f[_0x4eaee3(0xd6)],_0x2d6881,_0x137846[_0x4eaee3(0xc8)],0x1),z(_0x53609f[_0x4eaee3(0x103)],_0x2d6881,_0x137846[_0x4eaee3(0xc8)],0x1),(_0xb3ce98=_0x53609f[_0x4eaee3(0xc1)])==null||_0xb3ce98['forEach'](_0x5e5b5a=>{const _0x43df35=_0x4eaee3;_0x5e5b5a===_0x137846||_0x5e5b5a['blockId']===_0x137846[_0x43df35(0xf6)]?_0x5e5b5a[_0x43df35(0xc8)]=_0x2d6881:_0x5e5b5a[_0x43df35(0xad)]>=_0x2d6881&&_0x5e5b5a[_0x43df35(0xad)]<_0x137846[_0x43df35(0xc8)]&&(_0x5e5b5a[_0x43df35(0xad)]+=0x1,_0x5e5b5a[_0x43df35(0xc8)]+=0x1);});let _0x42745a=_e(_0x53609f,{..._0x137846,'endIndex':_0x2d6881});_0x42745a[_0x4eaee3(0xe0)]((_0xb760a2,_0xf4824d)=>{const _0x182cfc=_0x4eaee3;var _0x48b921;_0xb760a2['paragraphStyle']={...(_0x48b921=_0xb760a2['paragraphStyle'])==null?{}:_0x48b921,...E(_0xf4824d===0x0,_0xf4824d===_0x42745a[_0x182cfc(0xb0)]-0x1)};});let _0x4c9110=(_0x466e5b=_0x53609f[_0x4eaee3(0xed)])==null?void 0x0:_0x466e5b[_0x4eaee3(0xf0)](_0x26f559=>_0x26f559[_0x4eaee3(0xad)]===_0x2d6881+0x1);return _0x4c9110&&(_0x4c9110[_0x4eaee3(0xdc)]=ge(_0x4c9110['paragraphStyle'])),{'nextDocumentData':_0x13a4f2,'cursorOffset':_0x2d6881+0x1};}function ue(_0x1831fa){const _0x350a40=_0x573451;let _0x348d5f=D(_0x1831fa['documentData']),_0x2b426c=O(_0x348d5f),_0x42fac6=me(_0x2b426c,_0x1831fa[_0x350a40(0xe4)]);return _0x42fac6&&de(_0x348d5f,_0x2b426c,_0x42fac6,_0x1831fa[_0x350a40(0xe4)],_0x1831fa[_0x350a40(0xc5)])||null;}function de(_0x10c1b0,_0x3f0583,_0x3b81a7,_0x3e648b,_0x3634d2){const _0x4f8a04=_0x573451;let _0x836ba7=we(_0x3f0583,_0x3b81a7,_0x3e648b,_0x3634d2);if(!_0x836ba7)return null;let _0x3a355b=_0x836ba7['endTokenOffset']-0x1;return Te(_0x3f0583,_0x836ba7[_0x4f8a04(0xf1)][_0x4f8a04(0xad)],_0x836ba7['paragraph'][_0x4f8a04(0xad)]+0x1),{'nextDocumentData':_0x10c1b0,'cursorOffset':_0x3a355b};}function fe(_0x2d0f45,_0x5bb7d9){const _0x58bb33=_0x573451;var _0x3f994f;return _0x2d0f45==null||(_0x3f994f=_0x2d0f45['blockRanges'])==null?void 0x0:_0x3f994f[_0x58bb33(0xf0)](_0x2bf747=>_0x2bf747[_0x58bb33(0x91)]===_0xbe313d[_0x58bb33(0xa1)]&&_0x2bf747[_0x58bb33(0xad)]<=_0x5bb7d9&&_0x5bb7d9<=_0x2bf747[_0x58bb33(0xc8)]);}function pe(_0x4b166d){const _0x1c3877=_0x573451;var _0x2dfb9a;let _0x5cc1e2=_0x4b166d[_0x1c3877(0x99)][_0x1c3877(0x93)];if(!_0x5cc1e2)return!0x1;let _0x2c62ef=_0x4b166d[_0x1c3877(0x8d)]===_0x1c3877(0xb3)?_0x4b166d[_0x1c3877(0xe4)]-0x1:_0x4b166d['cursorOffset'],_0x373e1e=_0x4b166d['direction']===_0x1c3877(0xde)?_0x4b166d['cursorOffset']+0x1:_0x2c62ef;return((_0x2dfb9a=_0x5cc1e2[_0x1c3877(0xc1)])==null?[]:_0x2dfb9a)[_0x1c3877(0xb7)](_0x1424cf=>_0x1424cf['blockType']===_0xbe313d[_0x1c3877(0xa1)]?_0x2c62ef===_0x1424cf[_0x1c3877(0xad)]||_0x2c62ef===_0x1424cf[_0x1c3877(0xc8)]||_0x373e1e===_0x1424cf['startIndex']||_0x373e1e===_0x1424cf[_0x1c3877(0xc8)]:!0x1);}function me(_0x39d74e,_0x285779){const _0x2ba4ae=_0x573451;var _0x1b8599;return(_0x1b8599=_0x39d74e[_0x2ba4ae(0xc1)])==null?void 0x0:_0x1b8599[_0x2ba4ae(0xf0)](_0x242b7f=>{const _0x3f9bbb=_0x2ba4ae;let _0x196d86=j(_0x39d74e,_0x242b7f);return _0x242b7f[_0x3f9bbb(0x91)]===_0xbe313d[_0x3f9bbb(0xa1)]&&_0x242b7f[_0x3f9bbb(0xad)]<=_0x285779&&_0x285779<=_0x196d86+0x2;});}function E(_0x903cb6,_0x51ac44,_0x21e9b9=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x903cb6&&_0x21e9b9?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ie,'fs':0xc}};}function he(_0x2b1489,_0x163ec8,_0xf31457,_0xa069d6=!0x1){const _0x22012f=_0x573451;var _0x354ddc;let _0x41317c=((_0x354ddc=_0x2b1489[_0x22012f(0xed)])==null?[]:_0x354ddc)[_0x22012f(0xc2)](_0x16df23=>_0x16df23[_0x22012f(0xad)]>_0x163ec8&&_0x16df23[_0x22012f(0xad)]<_0xf31457);_0x41317c[_0x22012f(0xe0)]((_0x3cbe34,_0x21edd0)=>{const _0x50d32b=_0x22012f;var _0x4f759d;_0x3cbe34[_0x50d32b(0xdc)]={...(_0x4f759d=_0x3cbe34[_0x50d32b(0xdc)])==null?{}:_0x4f759d,...E(_0x21edd0===0x0,_0x21edd0===_0x41317c[_0x50d32b(0xb0)]-0x1,_0xa069d6)};});}function ge(_0x5616ff){const _0x437718=_0x573451;var _0x1259fe,_0x26dd9a;let _0x2b4268={..._0x5616ff==null?{}:_0x5616ff};return delete _0x2b4268[_0x437718(0xe2)],delete _0x2b4268[_0x437718(0x9c)],delete _0x2b4268[_0x437718(0xb1)],delete _0x2b4268[_0x437718(0xae)],((_0x1259fe=_0x2b4268[_0x437718(0xa3)])==null?void 0x0:_0x1259fe['ff'])===ie&&((_0x26dd9a=_0x2b4268['textStyle'])==null?void 0x0:_0x26dd9a['fs'])===0xc&&delete _0x2b4268[_0x437718(0xa3)],_0x2b4268;}function _e(_0x5a61b1,_0x425bf5){const _0x127b7c=_0x573451;var _0x5be68e;let _0x458682=j(_0x5a61b1,_0x425bf5);return((_0x5be68e=_0x5a61b1[_0x127b7c(0xed)])==null?[]:_0x5be68e)['filter'](_0x294faf=>_0x294faf[_0x127b7c(0xad)]>_0x425bf5[_0x127b7c(0xad)]&&_0x294faf[_0x127b7c(0xad)]<_0x458682);}function ve(_0x2c85d3,_0x2eab4d,_0x767626){const _0x3b6276=_0x573451;let _0x2d396e=A(_0x2c85d3,_0x2eab4d,_0x767626),_0x202fd4=_0x2c85d3[_0x3b6276(0xfe)][_0x3b6276(0xca)](_0x2d396e,_0x767626[_0x3b6276(0xad)]);return Array['from'](_0x202fd4)['every'](_0x5b8abb=>_0x5b8abb===_0x44840e[_0x3b6276(0xee)]||_0x5b8abb===_0x44840e[_0x3b6276(0xc7)]);}function D(_0x4a4aa1){const _0x2a6d35=_0x573451;return _0x223860[_0x2a6d35(0xa0)](_0x4a4aa1);}function O(_0x16afd3){const _0x11b8af=_0x573451;if(!_0x16afd3['body'])throw Error(_0x11b8af(0xfd));return _0x16afd3[_0x11b8af(0x93)];}function ye(_0x5209ad,_0x23e331,_0x3666ef){if(_0x23e331==null||_0x3666ef==null){let _0x306d2a=xe(_0x5209ad);return{'startOffset':_0x306d2a,'endOffset':_0x306d2a};}let _0x169478=Math['min'](_0x23e331,_0x3666ef),_0x2acb5e=Math['max'](_0x23e331,_0x3666ef);if(_0x169478===_0x2acb5e){let _0x332316=be(_0x5209ad,_0x169478);return{'startOffset':_0x332316,'endOffset':_0x332316};}return Ce(_0x5209ad,_0x169478,_0x2acb5e);}function be(_0x36f239,_0xe7f716){const _0x7b79cd=_0x573451;return _0xe7f716===0x0&&_0x36f239[_0x7b79cd(0xfe)][0x0]===_0x44840e[_0x7b79cd(0x86)]?0x1:_0xe7f716;}function xe(_0x46fec1){const _0x3bf364=_0x573451;return _0x46fec1[_0x3bf364(0xfe)][_0x3bf364(0x89)](_0x44840e[_0x3bf364(0xb8)])?Math[_0x3bf364(0xec)](0x0,_0x46fec1[_0x3bf364(0xfe)][_0x3bf364(0xb0)]-0x1):_0x46fec1[_0x3bf364(0xfe)][_0x3bf364(0xb0)];}function Se(_0x44d466,_0x4df665,_0x4a6858){const _0x593bac=_0x573451;var _0x283bec;let _0x439a4=Math[_0x593bac(0xc9)](_0x4df665,_0x4a6858),_0x1b68be=Math[_0x593bac(0xec)](_0x4df665,_0x4a6858);return!!((_0x283bec=_0x44d466[_0x593bac(0xc4)])!=null&&_0x283bec[_0x593bac(0xb7)](_0x5d9392=>_0x439a4>_0x5d9392['startIndex']&&_0x439a4<_0x5d9392[_0x593bac(0xc8)]||_0x1b68be>_0x5d9392['startIndex']&&_0x1b68be<_0x5d9392[_0x593bac(0xc8)]||_0x439a4<=_0x5d9392['startIndex']&&_0x1b68be>=_0x5d9392['endIndex']));}function Ce(_0x5376da,_0x469ebe,_0x149362){const _0x3d0e84=_0x573451;var _0x217e56,_0x3daafd;let _0x5ef267=[...(_0x217e56=_0x5376da[_0x3d0e84(0xed)])==null?[]:_0x217e56][_0x3d0e84(0x97)]((_0x37d6de,_0x215df4)=>_0x37d6de[_0x3d0e84(0xad)]-_0x215df4[_0x3d0e84(0xad)]),_0xf3c26b=_0x5ef267[_0x3d0e84(0xf0)]((_0x12f818,_0x547999)=>(_0x547999===0x0?0x0:_0x5ef267[_0x547999-0x1][_0x3d0e84(0xad)]+0x1)<=_0x469ebe&&_0x469ebe<=_0x12f818[_0x3d0e84(0xad)]),_0x3ad789=(_0x3daafd=_0x5ef267[_0x3d0e84(0xf0)](_0x4ffb49=>_0x4ffb49[_0x3d0e84(0xad)]>=_0x149362-0x1))==null?_0x5ef267[_0x5ef267[_0x3d0e84(0xb0)]-0x1]:_0x3daafd;return{'startOffset':_0xf3c26b?k(_0x5ef267,_0xf3c26b):_0x469ebe,'endOffset':_0x3ad789?_0x3ad789[_0x3d0e84(0xad)]+0x1:_0x149362};}function k(_0x1cc7de,_0x44aaef){const _0x45df11=_0x573451;let _0x8f4ea1=_0x1cc7de[_0x45df11(0x101)](_0x44aaef);return _0x8f4ea1>0x0?_0x1cc7de[_0x8f4ea1-0x1][_0x45df11(0xad)]+0x1:0x0;}function A(_0x33daec,_0x3991e1,_0xf4f484){const _0x1b372b=_0x573451;var _0x5c583a;return Math[_0x1b372b(0xec)](k((_0x5c583a=_0x33daec[_0x1b372b(0xed)])==null?[]:_0x5c583a,_0xf4f484),_0x3991e1['startIndex']+0x1);}function j(_0x2bf395,_0x3c6ef3){const _0x288ecc=_0x573451;return _0x2bf395['dataStream'][_0x3c6ef3[_0x288ecc(0xc8)]]===_0x44840e[_0x288ecc(0xc7)]?_0x3c6ef3[_0x288ecc(0xc8)]:_0x2bf395[_0x288ecc(0xfe)][_0x3c6ef3[_0x288ecc(0xc8)]+0x1]===_0x44840e[_0x288ecc(0xc7)]?_0x3c6ef3[_0x288ecc(0xc8)]+0x1:_0x3c6ef3['endIndex'];}function we(_0x571efb,_0x585111,_0x1a245d,_0x4af444){const _0x3efe0a=_0x573451;var _0x47c6b5,_0x199e09;let _0x55fe27=j(_0x571efb,_0x585111),_0x26a461=((_0x47c6b5=_0x571efb[_0x3efe0a(0xed)])==null?[]:_0x47c6b5)[_0x3efe0a(0xf0)](_0x276130=>_0x276130[_0x3efe0a(0xad)]===_0x55fe27+0x1);if(!_0x26a461||_0x4af444!=null&&_0x26a461['startIndex']!==_0x4af444||_0x1a245d<_0x55fe27||_0x1a245d>_0x26a461[_0x3efe0a(0xad)]+0x1||_0x571efb['dataStream'][_0x26a461[_0x3efe0a(0xad)]]!==_0x44840e['PARAGRAPH'])return null;let _0x224226=k((_0x199e09=_0x571efb['paragraphs'])==null?[]:_0x199e09,_0x26a461),_0x482583=_0x571efb['dataStream']['slice'](_0x224226,_0x26a461[_0x3efe0a(0xad)]);return Array[_0x3efe0a(0xef)](_0x482583)[_0x3efe0a(0xbf)](_0x59ac20=>_0x59ac20===_0x44840e[_0x3efe0a(0xc7)])?{'paragraph':_0x26a461,'endTokenOffset':_0x55fe27}:null;}function M(_0x189683,_0x12aa98){const _0x591a47=_0x573451;var _0x2023e7;let _0x373d11=j(_0x189683,_0x12aa98),_0x1e9a2e=_0x189683['dataStream'][_0x373d11+0x1];_0x1e9a2e!==_0x44840e[_0x591a47(0xb8)]&&_0x1e9a2e!==void 0x0||N(_0x189683,_0x373d11+0x1,_0x44840e[_0x591a47(0x86)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x109b3b(new Set((_0x2023e7=_0x189683[_0x591a47(0xed)])==null?void 0x0:_0x2023e7[_0x591a47(0xf9)](_0x229684=>_0x229684[_0x591a47(0xeb)])))}]});}function N(_0x5682de,_0x1a949c,_0x47d49c,_0xc11bcd={}){const _0x2ece07=_0x573451;var _0x2729c3,_0x2d8c66;if(_0x47d49c){if(_0x5682de['dataStream']=''+_0x5682de[_0x2ece07(0xfe)][_0x2ece07(0xca)](0x0,_0x1a949c)+_0x47d49c+_0x5682de[_0x2ece07(0xfe)][_0x2ece07(0xca)](_0x1a949c),Ee(_0x5682de,_0x1a949c,_0x47d49c['length']),(_0x2729c3=_0xc11bcd[_0x2ece07(0xed)])!=null&&_0x2729c3[_0x2ece07(0xb0)]){var _0x381992;_0x5682de[_0x2ece07(0xed)]=[...(_0x381992=_0x5682de[_0x2ece07(0xed)])==null?[]:_0x381992,..._0xc11bcd[_0x2ece07(0xed)][_0x2ece07(0xf9)](_0x3194c7=>({..._0x3194c7,'startIndex':_0x3194c7[_0x2ece07(0xad)]+_0x1a949c}))][_0x2ece07(0x97)]((_0x4f252c,_0x1893fa)=>_0x4f252c[_0x2ece07(0xad)]-_0x1893fa[_0x2ece07(0xad)]);}if((_0x2d8c66=_0xc11bcd[_0x2ece07(0xc1)])!=null&&_0x2d8c66[_0x2ece07(0xb0)]){var _0x3ca7fb;_0x5682de['blockRanges']=[...(_0x3ca7fb=_0x5682de[_0x2ece07(0xc1)])==null?[]:_0x3ca7fb,..._0xc11bcd[_0x2ece07(0xc1)][_0x2ece07(0xf9)](_0xf5819a=>({..._0xf5819a,'startIndex':_0xf5819a[_0x2ece07(0xad)]+_0x1a949c,'endIndex':_0xf5819a[_0x2ece07(0xc8)]+_0x1a949c}))][_0x2ece07(0x97)]((_0x429c6a,_0x20e0e6)=>_0x429c6a['startIndex']-_0x20e0e6['startIndex']);}}}function Te(_0x2a96a6,_0x5f5a60,_0x9c9213){const _0x3a67bb=_0x573451;let _0x2838ee=_0x9c9213-_0x5f5a60;_0x2a96a6[_0x3a67bb(0xfe)]=''+_0x2a96a6[_0x3a67bb(0xfe)][_0x3a67bb(0xca)](0x0,_0x5f5a60)+_0x2a96a6[_0x3a67bb(0xfe)]['slice'](_0x9c9213),De(_0x2a96a6,_0x5f5a60,_0x2838ee);}function Ee(_0x8c8f6d,_0x4b8681,_0x26860e){const _0x58ce0e=_0x573451;_0x8c8f6d[_0x58ce0e(0xed)]=P(_0x8c8f6d[_0x58ce0e(0xed)],_0x4b8681,_0x26860e),_0x8c8f6d[_0x58ce0e(0x88)]=P(_0x8c8f6d[_0x58ce0e(0x88)],_0x4b8681,_0x26860e),_0x8c8f6d[_0x58ce0e(0x84)]=P(_0x8c8f6d[_0x58ce0e(0x84)],_0x4b8681,_0x26860e),_0x8c8f6d[_0x58ce0e(0x8f)]=Oe(_0x8c8f6d[_0x58ce0e(0x8f)],_0x4b8681,_0x26860e),_0x8c8f6d[_0x58ce0e(0xc4)]=I(_0x8c8f6d['tables'],_0x4b8681,_0x26860e),_0x8c8f6d[_0x58ce0e(0xd6)]=I(_0x8c8f6d[_0x58ce0e(0xd6)],_0x4b8681,_0x26860e),_0x8c8f6d[_0x58ce0e(0x103)]=I(_0x8c8f6d[_0x58ce0e(0x103)],_0x4b8681,_0x26860e),_0x8c8f6d[_0x58ce0e(0xc1)]=I(_0x8c8f6d['blockRanges'],_0x4b8681,_0x26860e);}function De(_0x49c5cf,_0x6b82f9,_0x4c1f17){const _0x1a1f31=_0x573451;var _0x2df76d,_0x5dcdfd;_0x49c5cf['paragraphs']=F(_0x49c5cf['paragraphs'],_0x6b82f9,_0x4c1f17),_0x49c5cf[_0x1a1f31(0x88)]=F(_0x49c5cf[_0x1a1f31(0x88)],_0x6b82f9,_0x4c1f17),_0x49c5cf[_0x1a1f31(0x84)]=F(_0x49c5cf['customBlocks'],_0x6b82f9,_0x4c1f17),_0x49c5cf[_0x1a1f31(0x8f)]=(_0x2df76d=L((_0x5dcdfd=_0x49c5cf[_0x1a1f31(0x8f)])==null?void 0x0:_0x5dcdfd[_0x1a1f31(0xf9)](_0x554416=>({..._0x554416,'startIndex':_0x554416['st'],'endIndex':_0x554416['ed']})),_0x6b82f9,_0x4c1f17))==null?void 0x0:_0x2df76d['map'](_0x5bd393=>{let {startIndex:_0x31adbe,endIndex:_0x389b96,..._0x516454}=_0x5bd393;return{..._0x516454,'st':_0x31adbe,'ed':_0x389b96};}),_0x49c5cf['tables']=L(_0x49c5cf[_0x1a1f31(0xc4)],_0x6b82f9,_0x4c1f17),_0x49c5cf[_0x1a1f31(0xd6)]=L(_0x49c5cf['customRanges'],_0x6b82f9,_0x4c1f17),_0x49c5cf[_0x1a1f31(0x103)]=L(_0x49c5cf[_0x1a1f31(0x103)],_0x6b82f9,_0x4c1f17),_0x49c5cf[_0x1a1f31(0xc1)]=L(_0x49c5cf[_0x1a1f31(0xc1)],_0x6b82f9,_0x4c1f17);}function P(_0x5a9653,_0x2bb971,_0x100042){const _0x20acc3=_0x573451;return _0x5a9653==null?void 0x0:_0x5a9653['map'](_0x55a56a=>_0x55a56a['startIndex']>=_0x2bb971?{..._0x55a56a,'startIndex':_0x55a56a[_0x20acc3(0xad)]+_0x100042}:_0x55a56a);}function F(_0x13ae07,_0x42eb5a,_0x5a40c8){const _0x32c916=_0x573451;let _0x4f4cea=_0x42eb5a+_0x5a40c8;return _0x13ae07==null?void 0x0:_0x13ae07['map'](_0x4fe070=>_0x4fe070[_0x32c916(0xad)]>=_0x42eb5a&&_0x4fe070[_0x32c916(0xad)]<_0x4f4cea?null:_0x4fe070[_0x32c916(0xad)]>=_0x4f4cea?{..._0x4fe070,'startIndex':_0x4fe070[_0x32c916(0xad)]-_0x5a40c8}:_0x4fe070)['filter'](_0x27131b=>_0x27131b!=null);}function Oe(_0x267c3e,_0x55162c,_0x197214){const _0x1b7cdf=_0x573451;return _0x267c3e==null?void 0x0:_0x267c3e[_0x1b7cdf(0xf9)](_0x88abde=>_0x88abde['st']>=_0x55162c?{..._0x88abde,'st':_0x88abde['st']+_0x197214,'ed':_0x88abde['ed']+_0x197214}:_0x88abde['ed']>_0x55162c?{..._0x88abde,'ed':_0x88abde['ed']+_0x197214}:_0x88abde);}function I(_0x24c9ab,_0x2b4cf9,_0x238ffc){const _0x5c4622=_0x573451;return _0x24c9ab==null?void 0x0:_0x24c9ab['map'](_0x57ac5c=>_0x57ac5c[_0x5c4622(0xad)]>=_0x2b4cf9?{..._0x57ac5c,'startIndex':_0x57ac5c[_0x5c4622(0xad)]+_0x238ffc,'endIndex':_0x57ac5c[_0x5c4622(0xc8)]+_0x238ffc}:_0x57ac5c[_0x5c4622(0xc8)]>=_0x2b4cf9?{..._0x57ac5c,'endIndex':_0x57ac5c[_0x5c4622(0xc8)]+_0x238ffc}:_0x57ac5c);}function _0x5b77(_0x10e3d8,_0x81380b){_0x10e3d8=_0x10e3d8-0x83;const _0x549cf5=_0x549c();let _0x5b777c=_0x549cf5[_0x10e3d8];return _0x5b777c;}function L(_0x387810,_0x4a7aba,_0x48f5f9){const _0x9f4595=_0x573451;let _0x4d455a=_0x4a7aba+_0x48f5f9;return _0x387810==null?void 0x0:_0x387810[_0x9f4595(0xf9)](_0x3a6b00=>_0x3a6b00[_0x9f4595(0xad)]>=_0x4a7aba&&_0x3a6b00[_0x9f4595(0xc8)]<_0x4d455a?null:_0x3a6b00[_0x9f4595(0xad)]>=_0x4d455a?{..._0x3a6b00,'startIndex':_0x3a6b00[_0x9f4595(0xad)]-_0x48f5f9,'endIndex':_0x3a6b00[_0x9f4595(0xc8)]-_0x48f5f9}:_0x3a6b00[_0x9f4595(0xc8)]>=_0x4a7aba?{..._0x3a6b00,'startIndex':_0x3a6b00[_0x9f4595(0xad)]<_0x4a7aba?_0x3a6b00[_0x9f4595(0xad)]:_0x4a7aba,'endIndex':Math['max'](_0x4a7aba,_0x3a6b00['endIndex']-_0x48f5f9)}:_0x3a6b00)[_0x9f4595(0xc2)](_0x210331=>_0x210331!=null);}function R(_0x252084,_0x5d10e4,_0x45d8be,_0x5a2a90){const _0x35dcb4=_0x573451;_0x252084==null||_0x252084[_0x35dcb4(0xe0)](_0x2790b5=>{const _0x4dde98=_0x35dcb4;_0x2790b5[_0x4dde98(0xad)]>=_0x5d10e4&&_0x2790b5[_0x4dde98(0xad)]<_0x45d8be&&(_0x2790b5[_0x4dde98(0xad)]+=_0x5a2a90);});}function ke(_0x5e75b1,_0x3e3ab1,_0x4d9d50,_0x45d713){_0x5e75b1==null||_0x5e75b1['forEach'](_0x3604cc=>{_0x3604cc['st']>=_0x3e3ab1&&_0x3604cc['st']<_0x4d9d50?(_0x3604cc['st']+=_0x45d713,_0x3604cc['ed']+=_0x45d713):_0x3604cc['ed']>_0x3e3ab1&&_0x3604cc['ed']<_0x4d9d50&&(_0x3604cc['ed']+=_0x45d713);});}function z(_0x13076c,_0x54c811,_0x45ac85,_0x34e3de){_0x13076c==null||_0x13076c['forEach'](_0x47149e=>{const _0x3ca603=_0x5b77;_0x47149e['startIndex']>=_0x54c811&&_0x47149e[_0x3ca603(0xad)]<_0x45ac85?(_0x47149e[_0x3ca603(0xad)]+=_0x34e3de,_0x47149e[_0x3ca603(0xc8)]+=_0x34e3de):_0x47149e[_0x3ca603(0xc8)]>_0x54c811&&_0x47149e['endIndex']<_0x45ac85&&(_0x47149e[_0x3ca603(0xc8)]+=_0x34e3de);});}function B(_0x430b23){'@babel/helpers - typeof';const _0x2158fa=_0x573451;return B=typeof Symbol==_0x2158fa(0x107)&&typeof Symbol[_0x2158fa(0x9a)]==_0x2158fa(0x87)?function(_0x2d10a4){return typeof _0x2d10a4;}:function(_0x59453f){const _0x3efce2=_0x2158fa;return _0x59453f&&typeof Symbol==_0x3efce2(0x107)&&_0x59453f['constructor']===Symbol&&_0x59453f!==Symbol[_0x3efce2(0xac)]?_0x3efce2(0x87):typeof _0x59453f;},B(_0x430b23);}function Ae(_0x550762,_0x5c9ca8){const _0x2207d5=_0x573451;if(B(_0x550762)!=_0x2207d5(0x96)||!_0x550762)return _0x550762;var _0x5e9301=_0x550762[Symbol[_0x2207d5(0x102)]];if(_0x5e9301!==void 0x0){var _0x3214b1=_0x5e9301[_0x2207d5(0x9e)](_0x550762,_0x5c9ca8||_0x2207d5(0xfc));if(B(_0x3214b1)!=_0x2207d5(0x96))return _0x3214b1;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5c9ca8===_0x2207d5(0xaa)?String:Number)(_0x550762);}function je(_0x44a74a){const _0x1fab3c=_0x573451;var _0x347a09=Ae(_0x44a74a,_0x1fab3c(0xaa));return B(_0x347a09)==_0x1fab3c(0x87)?_0x347a09:_0x347a09+'';}function V(_0x19580a,_0x5ddeb5,_0x9d00d1){return(_0x5ddeb5=je(_0x5ddeb5))in _0x19580a?Object['defineProperty'](_0x19580a,_0x5ddeb5,{'value':_0x9d00d1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x19580a[_0x5ddeb5]=_0x9d00d1,_0x19580a;}var H=class extends _0x31b9f9{constructor(..._0x38869b){const _0x436873=_0x573451;super(..._0x38869b),V(this,_0x436873(0xe7),new Map()),V(this,'_change$',new _0x188f5e()),V(this,_0x436873(0x9d),this[_0x436873(0x104)]['asObservable']());}['getCodeConfig'](_0x21d025,_0x91f557){const _0x45d1fd=_0x573451;return w(this[_0x45d1fd(0xe7)]['get'](_0x21d025))[_0x45d1fd(0xf5)][_0x91f557];}['setCodeConfig'](_0x539144,_0x4055ac,_0x3c2563){const _0x37930f=_0x573451;this['_setResource'](_0x539144,_0x4055ac,T(this[_0x37930f(0xe7)][_0x37930f(0xa2)](_0x539144),_0x4055ac,_0x3c2563));}[_0x573451(0xb9)](_0x3d6a16,_0x3ca851){const _0x11d9a7=_0x573451;this[_0x11d9a7(0xcc)](_0x3d6a16,_0x3ca851,re(this[_0x11d9a7(0xe7)][_0x11d9a7(0xa2)](_0x3d6a16),_0x3ca851));}[_0x573451(0xea)](_0x128d32){const _0x515fdc=_0x573451;return w(this[_0x515fdc(0xe7)][_0x515fdc(0xa2)](_0x128d32));}['deserialize'](_0x348a0d,_0x36df75){const _0x7453cf=_0x573451;this['_resources'][_0x7453cf(0xa6)](_0x348a0d,w(_0x36df75)),this[_0x7453cf(0x104)][_0x7453cf(0xce)]({'unitId':_0x348a0d});}['removeUnit'](_0x2ac33b){const _0x426b16=_0x573451;this[_0x426b16(0xe7)][_0x426b16(0x95)](_0x2ac33b),this[_0x426b16(0x104)][_0x426b16(0xce)]({'unitId':_0x2ac33b});}[_0x573451(0xd9)](){const _0x2303d3=_0x573451;super['dispose'](),this[_0x2303d3(0xe7)][_0x2303d3(0xb2)](),this[_0x2303d3(0x104)][_0x2303d3(0xfb)]();}['_setResource'](_0x3e67a8,_0x320859,_0x5e0295){const _0x496e64=_0x573451;this[_0x496e64(0xe7)][_0x496e64(0xa6)](_0x3e67a8,_0x5e0295),this[_0x496e64(0x104)]['next']({'unitId':_0x3e67a8,'blockId':_0x320859});}};const Me={'id':'docs-code.command.insert-below','type':_0x351439[_0x573451(0xd8)],'handler':_0x2acb73=>{const _0x1ab459=_0x573451;let _0x4f342e=Le(_0x2acb73);if(_0x4f342e)return _0x2acb73[_0x1ab459(0xa2)](_0x9902cc)[_0x1ab459(0xd5)](U['id'],{'startOffset':_0x4f342e[_0x1ab459(0xfa)],'endOffset':_0x4f342e[_0x1ab459(0x106)],'unitId':_0x4f342e[_0x1ab459(0x85)]});let _0x261905=Re(_0x2acb73);if(!_0x261905)return!0x1;let _0x33975a=_0x261905[_0x1ab459(0xad)]+0x1;return _0x2acb73['get'](_0x9902cc)['syncExecuteCommand'](U['id'],{'startOffset':_0x33975a,'endOffset':_0x33975a});}},Ne={'id':_0x573451(0xb4),'type':_0x351439[_0x573451(0xd8)],'handler':()=>!0x0},U={'id':_0x573451(0xf4),'type':_0x351439[_0x573451(0xd8)],'handler':(_0x1891a9,_0x2e1ac0)=>{const _0x433170=_0x573451;var _0x193a38,_0x5b4cc2,_0x5a342c;let _0xf518ff=W(_0x1891a9,_0x2e1ac0==null?void 0x0:_0x2e1ac0['unitId']);if(!_0xf518ff)return!0x1;let _0x4dda7b=G(_0x1891a9),_0x379dda=ae({'blockId':(_0x193a38=_0x2e1ac0==null?void 0x0:_0x2e1ac0[_0x433170(0xf6)])==null?_0x12c824(0x6):_0x193a38,'config':_0x2e1ac0==null?void 0x0:_0x2e1ac0[_0x433170(0xe3)],'documentData':_0xf518ff[_0x433170(0x90)],'endOffset':(_0x5b4cc2=_0x2e1ac0==null?void 0x0:_0x2e1ac0[_0x433170(0x106)])==null?_0x4dda7b==null?void 0x0:_0x4dda7b[_0x433170(0x106)]:_0x5b4cc2,'metadata':_0xf518ff[_0x433170(0xb6)]['serialize'](_0xf518ff['unitId']),'startOffset':(_0x5a342c=_0x2e1ac0==null?void 0x0:_0x2e1ac0[_0x433170(0xfa)])==null?_0x4dda7b==null?void 0x0:_0x4dda7b[_0x433170(0xfa)]:_0x5a342c}),_0x356261=q(_0xf518ff[_0x433170(0xd1)],_0xf518ff[_0x433170(0x85)],_0xf518ff[_0x433170(0x90)],_0x379dda['nextDocumentData'],_0x379dda['cursorOffset']);return _0x356261&&_0x379dda[_0x433170(0xbe)]&&_0xf518ff[_0x433170(0xb6)]['deserialize'](_0xf518ff[_0x433170(0x85)],_0x379dda['nextMetadata']),_0x356261;}},Pe={'id':_0x573451(0xa8),'type':_0x351439[_0x573451(0xd8)],'handler':(_0x26910b,_0x488c52)=>{const _0x2d0465=_0x573451;if(!_0x488c52)return!0x1;let _0x18f2e0=W(_0x26910b,_0x488c52[_0x2d0465(0x85)]);if(!_0x18f2e0)return!0x1;let _0x56c348=ce({'blockId':_0x488c52[_0x2d0465(0xf6)],'config':_0x488c52[_0x2d0465(0xe3)],'documentData':_0x18f2e0['previousDocumentData'],'metadata':_0x18f2e0[_0x2d0465(0xb6)][_0x2d0465(0xea)](_0x18f2e0[_0x2d0465(0x85)])});return _0x56c348[_0x2d0465(0xbe)]&&_0x18f2e0['model'][_0x2d0465(0xff)](_0x18f2e0['unitId'],_0x56c348[_0x2d0465(0xbe)]),!0x0;}},Fe={'id':'docs-code.command.exit','type':_0x351439[_0x573451(0xd8)],'handler':(_0x824f9,_0x338b74)=>{const _0x43582f=_0x573451;var _0x55f564,_0x5dce32;let _0x111e72=W(_0x824f9,_0x338b74==null?void 0x0:_0x338b74[_0x43582f(0x85)]);if(!_0x111e72)return!0x1;let _0x5ef4fe=(_0x55f564=_0x338b74==null?void 0x0:_0x338b74[_0x43582f(0xe4)])==null?(_0x5dce32=G(_0x824f9))==null?void 0x0:_0x5dce32[_0x43582f(0xfa)]:_0x55f564;if(_0x5ef4fe==null)return!0x1;let _0x98520e=le({'cursorOffset':_0x5ef4fe,'documentData':_0x111e72[_0x43582f(0x90)]});return _0x98520e?q(_0x111e72[_0x43582f(0xd1)],_0x111e72[_0x43582f(0x85)],_0x111e72[_0x43582f(0x90)],_0x98520e[_0x43582f(0x92)],_0x98520e[_0x43582f(0xe4)]):!0x1;}},Ie={'id':_0x573451(0xcd),'type':_0x351439[_0x573451(0xd8)],'handler':(_0x31c9eb,_0x350ef0)=>{const _0x2482cf=_0x573451;var _0x2f1705,_0x1dc10d;let _0x32f73f=W(_0x31c9eb,_0x350ef0==null?void 0x0:_0x350ef0[_0x2482cf(0x85)]);if(!_0x32f73f)return!0x1;let _0x5dc93f=(_0x2f1705=_0x350ef0==null?void 0x0:_0x350ef0['cursorOffset'])==null?(_0x1dc10d=G(_0x31c9eb))==null?void 0x0:_0x1dc10d[_0x2482cf(0xfa)]:_0x2f1705;if(_0x5dc93f==null)return!0x1;let _0x2c609a=ue({'cursorOffset':_0x5dc93f,'documentData':_0x32f73f[_0x2482cf(0x90)],'paragraphStartIndex':_0x350ef0==null?void 0x0:_0x350ef0['paragraphStartIndex']});return _0x2c609a?q(_0x32f73f['commandService'],_0x32f73f['unitId'],_0x32f73f['previousDocumentData'],_0x2c609a['nextDocumentData'],_0x2c609a[_0x2482cf(0xe4)]):!0x1;}};function W(_0xdaaabf,_0x2e4c7a){const _0x31de90=_0x573451;let _0x539201=_0xdaaabf[_0x31de90(0xa2)](_0x430140),_0x3f5707=_0x2e4c7a?_0x539201['getUniverDocInstance'](_0x2e4c7a):_0x539201['getCurrentUnitOfType'](_0x4a473f[_0x31de90(0xbb)]);return _0x3f5707?{'commandService':_0xdaaabf[_0x31de90(0xa2)](_0x9902cc),'model':_0xdaaabf[_0x31de90(0xa2)](H),'previousDocumentData':_0x3f5707['getSnapshot'](),'unitId':_0x3f5707['getUnitId']()}:null;}function G(_0x5f49ed){const _0x40b790=_0x573451;var _0x4ef069;return(_0x4ef069=_0x5f49ed[_0x40b790(0xa2)](_0x280038)[_0x40b790(0xd7)]())==null?void 0x0:_0x4ef069[0x0];}function Le(_0xfd35ea){const _0xd6cca6=_0x573451;var _0x303fa1;let _0x2ba1a5=(_0x303fa1=_0xfd35ea[_0xd6cca6(0xa2)](_0x430140)[_0xd6cca6(0xc3)](_0x4a473f[_0xd6cca6(0xbb)]))==null?void 0x0:_0x303fa1[_0xd6cca6(0xa9)]();try{return _0xfd35ea[_0xd6cca6(0xa2)](_0x5b79f4)['consumeInsertRange'](_0x2ba1a5);}catch{return null;}}function Re(_0x49ff9b){const _0x60dc7b=_0x573451;var _0x416790,_0x67e86e,_0x43e0e0;let _0x28d9ad=G(_0x49ff9b);if(!_0x28d9ad)return null;let _0x3cf4a0=_0x49ff9b[_0x60dc7b(0xa2)](_0x430140)[_0x60dc7b(0xc3)](_0x4a473f[_0x60dc7b(0xbb)]),_0x581817=_0x3cf4a0==null?void 0x0:_0x3cf4a0[_0x60dc7b(0xe8)]();return _0x581817?(_0x416790=_0x55168e[_0x60dc7b(0xa7)][_0x60dc7b(0xcb)](_0x28d9ad,(_0x67e86e=_0x581817[_0x60dc7b(0xed)])==null?[]:_0x67e86e,(_0x43e0e0=_0x581817['dataStream'])==null?'':_0x43e0e0)[0x0])==null?null:_0x416790:null;}function ze(_0x5df1b5,_0x2f415d){const _0x23da2f=_0x573451;var _0x5d1318,_0x4a15fc,_0x5f0252,_0x1843ec,_0x5448a9,_0x696e3d,_0x34e64b,_0x38acb7,_0x236b05,_0x49b980,_0x23827b,_0x4f056e,_0x400fe5,_0x1cb08d,_0x1f678c,_0x1ff12e,_0x563e13,_0x329ef2;let _0x41445b=_0xbc2f76['getInstance']();return[K(_0x41445b,[_0x23da2f(0x93),_0x23da2f(0xfe)],(_0x5d1318=_0x5df1b5[_0x23da2f(0x93)])==null?void 0x0:_0x5d1318[_0x23da2f(0xfe)],(_0x4a15fc=_0x2f415d[_0x23da2f(0x93)])==null?void 0x0:_0x4a15fc['dataStream']),K(_0x41445b,['body','paragraphs'],(_0x5f0252=_0x5df1b5[_0x23da2f(0x93)])==null?void 0x0:_0x5f0252['paragraphs'],(_0x1843ec=_0x2f415d[_0x23da2f(0x93)])==null?void 0x0:_0x1843ec[_0x23da2f(0xed)]),K(_0x41445b,[_0x23da2f(0x93),_0x23da2f(0x88)],(_0x5448a9=_0x5df1b5[_0x23da2f(0x93)])==null?void 0x0:_0x5448a9[_0x23da2f(0x88)],(_0x696e3d=_0x2f415d[_0x23da2f(0x93)])==null?void 0x0:_0x696e3d['sectionBreaks']),K(_0x41445b,['body',_0x23da2f(0x8f)],(_0x34e64b=_0x5df1b5[_0x23da2f(0x93)])==null?void 0x0:_0x34e64b['textRuns'],(_0x38acb7=_0x2f415d['body'])==null?void 0x0:_0x38acb7[_0x23da2f(0x8f)]),K(_0x41445b,[_0x23da2f(0x93),_0x23da2f(0x84)],(_0x236b05=_0x5df1b5['body'])==null?void 0x0:_0x236b05[_0x23da2f(0x84)],(_0x49b980=_0x2f415d[_0x23da2f(0x93)])==null?void 0x0:_0x49b980[_0x23da2f(0x84)]),K(_0x41445b,['body',_0x23da2f(0xd6)],(_0x23827b=_0x5df1b5['body'])==null?void 0x0:_0x23827b[_0x23da2f(0xd6)],(_0x4f056e=_0x2f415d[_0x23da2f(0x93)])==null?void 0x0:_0x4f056e[_0x23da2f(0xd6)]),K(_0x41445b,[_0x23da2f(0x93),_0x23da2f(0x103)],(_0x400fe5=_0x5df1b5[_0x23da2f(0x93)])==null?void 0x0:_0x400fe5[_0x23da2f(0x103)],(_0x1cb08d=_0x2f415d['body'])==null?void 0x0:_0x1cb08d[_0x23da2f(0x103)]),K(_0x41445b,[_0x23da2f(0x93),_0x23da2f(0xc4)],(_0x1f678c=_0x5df1b5['body'])==null?void 0x0:_0x1f678c['tables'],(_0x1ff12e=_0x2f415d[_0x23da2f(0x93)])==null?void 0x0:_0x1ff12e[_0x23da2f(0xc4)]),K(_0x41445b,['body','blockRanges'],(_0x563e13=_0x5df1b5['body'])==null?void 0x0:_0x563e13['blockRanges'],(_0x329ef2=_0x2f415d[_0x23da2f(0x93)])==null?void 0x0:_0x329ef2[_0x23da2f(0xc1)])][_0x23da2f(0xc2)](Boolean)['reduce']((_0x59c4c4,_0x1415c9)=>_0xbc2f76[_0x23da2f(0xbd)](_0x59c4c4,_0x1415c9),null);}function K(_0x268ab3,_0x3bcfcd,_0x285dd3,_0x31fcde){const _0x501c23=_0x573451;return _0x223860['diffValue'](_0x285dd3,_0x31fcde)?null:_0x268ab3[_0x501c23(0xe5)](_0x3bcfcd,_0x285dd3,_0x31fcde);}function q(_0x592d98,_0x555b6f,_0x1ed70a,_0xab345b,_0x553548){let _0x190ccd=ze(_0x1ed70a,_0xab345b);return _0x190ccd?!!_0x592d98['syncExecuteCommand'](_0x24f4de['id'],{'unitId':_0x555b6f,'actions':_0x190ccd,'textRanges':[{'startOffset':_0x553548,'endOffset':_0x553548,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const J='DOC_CODE_PLUGIN';var Be=_0x573451(0xf3),Ve=_0x573451(0xba);const Y={};function X(_0x1a937a,_0x52a710){return function(_0x4c8035,_0xace045){_0x52a710(_0x4c8035,_0xace045,_0x1a937a);};}function Z(_0xfd988d,_0x9776e7,_0xff47f9,_0x2ee177){const _0x5b29eb=_0x573451;var _0xf797b8=arguments[_0x5b29eb(0xb0)],_0x42f705=_0xf797b8<0x3?_0x9776e7:_0x2ee177===null?_0x2ee177=Object[_0x5b29eb(0x94)](_0x9776e7,_0xff47f9):_0x2ee177,_0x33de8c;if(typeof Reflect==_0x5b29eb(0x96)&&typeof Reflect['decorate']=='function')_0x42f705=Reflect[_0x5b29eb(0x83)](_0xfd988d,_0x9776e7,_0xff47f9,_0x2ee177);else{for(var _0xf5f42d=_0xfd988d[_0x5b29eb(0xb0)]-0x1;_0xf5f42d>=0x0;_0xf5f42d--)(_0x33de8c=_0xfd988d[_0xf5f42d])&&(_0x42f705=(_0xf797b8<0x3?_0x33de8c(_0x42f705):_0xf797b8>0x3?_0x33de8c(_0x9776e7,_0xff47f9,_0x42f705):_0x33de8c(_0x9776e7,_0xff47f9))||_0x42f705);}return _0xf797b8>0x3&&_0x42f705&&Object['defineProperty'](_0x9776e7,_0xff47f9,_0x42f705),_0x42f705;}let Q=class extends _0x31b9f9{constructor(_0xa86fa9,_0x13b184){const _0xdad63b=_0x573451;super(),this[_0xdad63b(0xa5)]=_0xa86fa9,this['_docsCodeModel']=_0x13b184,this[_0xdad63b(0xf8)]();}['_initResource'](){const _0x4e5f49=_0x573451;this[_0x4e5f49(0xc0)](this['_resourceManagerService'][_0x4e5f49(0xf2)]({'pluginName':J,'businesses':[_0x4a473f['UNIVER_DOC']],'toJson':_0x3a0fd4=>JSON[_0x4e5f49(0xab)](this['_docsCodeModel'][_0x4e5f49(0xea)](_0x3a0fd4)),'parseJson':_0x351a9a=>w(JSON[_0x4e5f49(0xdf)](_0x351a9a)),'onLoad':(_0x4e37c5,_0x458fcc)=>this[_0x4e5f49(0xd2)]['deserialize'](_0x4e37c5,_0x458fcc),'onUnLoad':_0x4cfec2=>this['_docsCodeModel']['removeUnit'](_0x4cfec2)}));}};Q=Z([X(0x0,_0x19351f),X(0x1,_0x51ccf3(H))],Q);let $=class extends _0x233ba5{constructor(_0x20ad97=Y,_0x300cab,_0x39f7a0,_0x27dca0){const _0x1d6e41=_0x573451;super(),this[_0x1d6e41(0xd3)]=_0x20ad97,this[_0x1d6e41(0xb5)]=_0x300cab,this[_0x1d6e41(0x9f)]=_0x39f7a0,this[_0x1d6e41(0xdd)]=_0x27dca0;let {..._0x56ffae}=_0x50d7aa({},Y,this[_0x1d6e41(0xd3)]);this['_configService'][_0x1d6e41(0x9b)](_0x1d6e41(0xaf),_0x56ffae);}[_0x573451(0x8a)](){const _0x40ada9=_0x573451;this['_injector'][_0x40ada9(0x108)]([H]),this[_0x40ada9(0xb5)][_0x40ada9(0x108)]([Q]),this[_0x40ada9(0xb5)][_0x40ada9(0xa2)](H),this['_injector'][_0x40ada9(0xa2)](Q),[U,Me,Pe,Fe,Ie,Ne][_0x40ada9(0xe0)](_0x12c532=>this['disposeWithMe'](this['_commandService']['registerCommand'](_0x12c532)));}};V($,_0x573451(0x8c),J),V($,'packageName',Be),V($,_0x573451(0xbc),Ve),V($,_0x573451(0xcf),_0x4a473f[_0x573451(0xbb)]),$=Z([_0x62210c(_0x1eeb83,_0xcb8284),X(0x1,_0x51ccf3(_0x31cf9d)),X(0x2,_0x9902cc),X(0x3,_0x34c159)],$);export{S as DEFAULT_CODE_CONFIG,J as DOCS_CODE_PLUGIN,Ie as DocsCodeCancelEmptyParagraphCommand,Ne as DocsCodeConsumeBoundaryDeleteCommand,Fe as DocsCodeExitCommand,Me as DocsCodeInsertBelowCommand,U as DocsCodeInsertCommand,H as DocsCodeModel,Pe as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,ue as buildCancelEmptyCodeParagraphActions,le as buildExitCodeActions,ae as buildInsertCodeActions,ce as buildUpdateCodeActions,fe as findCodeRangeAtOffset,pe as isCodeBoundaryDelete,C as normalizeDocsCodeConfig};
|
|
1
|
+
const _0x5eace4=_0x3364;(function(_0x2ffd56,_0xab6cb2){const _0x121d22=_0x3364,_0x495943=_0x2ffd56();while(!![]){try{const _0x359853=-parseInt(_0x121d22(0x1d4))/0x1*(-parseInt(_0x121d22(0x1b4))/0x2)+-parseInt(_0x121d22(0x197))/0x3+-parseInt(_0x121d22(0x1b3))/0x4+-parseInt(_0x121d22(0x1ba))/0x5*(parseInt(_0x121d22(0x172))/0x6)+-parseInt(_0x121d22(0x1e4))/0x7*(-parseInt(_0x121d22(0x183))/0x8)+parseInt(_0x121d22(0x1db))/0x9+parseInt(_0x121d22(0x1b1))/0xa*(parseInt(_0x121d22(0x1cd))/0xb);if(_0x359853===_0xab6cb2)break;else _0x495943['push'](_0x495943['shift']());}catch(_0x5eb2ea){_0x495943['push'](_0x495943['shift']());}}}(_0x1e34,0x94940));import{BuildTextUtils as _0x31aef0,CommandType as _0x3bdce4,DataStreamTreeTokenType as _0x12dc14,DependentOn as _0xa6c8c4,Disposable as _0x51061b,DocumentBlockRangeType as _0x1c5fe0,ICommandService as _0x58c777,IConfigService as _0x2d86d1,IResourceManagerService as _0x2879eb,IUniverInstanceService as _0x17a029,Inject as _0x3524d0,Injector as _0x1470b9,JSONX as _0x1b7758,Plugin as _0x5079f1,Tools as _0x282787,UniverInstanceType as _0x56e428,createParagraphId as _0x84f9b7,generateRandomId as _0x2ce6a6,merge as _0x1ce801}from'@univerjs/core';import{DocContentInsertService as _0x5d6321,DocSelectionManagerService as _0x129ce4,RichTextEditingMutation as _0x410cd0,UniverDocsPlugin as _0x72a19}from'@univerjs/docs';import{Subject as _0x29213d}from'rxjs';import{UniverLicensePlugin as _0x221e19}from'@univerjs-pro/license';const S={'language':_0x5eace4(0x176),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function C(_0x27fefe){return{...S,..._0x27fefe};}function w(_0x277b3e){const _0x15686f=_0x5eace4;var _0x3f7c55;let _0x348519=(_0x3f7c55=_0x277b3e==null?void 0x0:_0x277b3e['codes'])==null?{}:_0x3f7c55;return{'codes':Object['fromEntries'](Object[_0x15686f(0x1b9)](_0x348519)[_0x15686f(0x1ae)](([_0x457bf0,_0x4c406f])=>[_0x457bf0,C(_0x4c406f)]))};}function T(_0x26e53c,_0x2948c8,_0x1d3483){const _0xd4576d=_0x5eace4;let _0x77f5f3=w(_0x26e53c);return _0x77f5f3[_0xd4576d(0x19e)][_0x2948c8]=C({..._0x77f5f3['codes'][_0x2948c8],..._0x1d3483}),_0x77f5f3;}function re(_0x52ded8,_0x5943eb){const _0x1dd4a2=_0x5eace4;let _0x4ae8c1=w(_0x52ded8);return delete _0x4ae8c1[_0x1dd4a2(0x19e)][_0x5943eb],_0x4ae8c1;}const ie=_0x5eace4(0x17f);function ae(_0x20f9a5){const _0x1e32f8=_0x5eace4;var _0x77c8cc,_0x6bfb9d,_0x32a0ef;let _0x52f655=D(_0x20f9a5[_0x1e32f8(0x199)]),_0x5553b2=O(_0x52f655),_0x3db3fd=se(_0x20f9a5['startOffset'],_0x20f9a5[_0x1e32f8(0x1a0)]),_0x1562ef=_0x3db3fd?(_0x77c8cc=_0x5553b2[_0x1e32f8(0x1c0)])==null?void 0x0:_0x77c8cc[_0x1e32f8(0x1bf)](_0x554a4a=>_0x554a4a[_0x1e32f8(0x184)]===_0x3db3fd['startOffset']&&_0x554a4a['endIndex']+0x1===_0x3db3fd[_0x1e32f8(0x1a0)]):void 0x0,{startOffset:_0x566a99,endOffset:_0x482ff2}=_0x1562ef?_0x3db3fd:ye(_0x5553b2,_0x20f9a5[_0x1e32f8(0x17d)],_0x20f9a5[_0x1e32f8(0x1a0)]),_0xc20441=Se(_0x5553b2,_0x566a99,_0x482ff2),_0x385c83=(_0x6bfb9d=_0x1562ef==null?void 0x0:_0x1562ef[_0x1e32f8(0x187)])==null?_0x20f9a5[_0x1e32f8(0x187)]:_0x6bfb9d,_0x5a9447=T(_0x20f9a5[_0x1e32f8(0x1b5)],_0x385c83,{...S,..._0x20f9a5[_0x1e32f8(0x1d8)]});if(_0x1562ef)return _0x1562ef[_0x1e32f8(0x180)]=_0x1c5fe0[_0x1e32f8(0x1a7)],oe(_0x5553b2,_0x566a99,_0x482ff2),he(_0x5553b2,_0x566a99,_0x482ff2,_0xc20441),M(_0x5553b2,_0x1562ef),{'nextDocumentData':_0x52f655,'nextMetadata':_0x5a9447,'cursorOffset':_0x566a99+0x1};if(_0x566a99===_0x482ff2){var _0x2877ce,_0x570757;let _0x58528d=''+_0x12dc14[_0x1e32f8(0x1a8)]+_0x12dc14[_0x1e32f8(0x17b)]+_0x12dc14['BLOCK_END'];N(_0x5553b2,_0x566a99,_0x58528d,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x84f9b7(new Set((_0x2877ce=_0x5553b2[_0x1e32f8(0x1d5)])==null?void 0x0:_0x2877ce[_0x1e32f8(0x1ae)](_0x3f40ba=>_0x3f40ba[_0x1e32f8(0x1e1)]))),'paragraphStyle':E(!0x0,!0x0,_0xc20441)}],'blockRanges':[{'blockId':_0x385c83,'blockType':_0x1c5fe0[_0x1e32f8(0x1a7)],'startIndex':0x0,'endIndex':_0x58528d[_0x1e32f8(0x1da)]-0x1}]});let _0x1b673a=(_0x570757=_0x5553b2[_0x1e32f8(0x1c0)])==null?void 0x0:_0x570757[_0x1e32f8(0x1bf)](_0x278361=>_0x278361[_0x1e32f8(0x187)]===_0x385c83);return _0x1b673a&&M(_0x5553b2,_0x1b673a),{'nextDocumentData':_0x52f655,'nextMetadata':_0x5a9447,'cursorOffset':_0x566a99+0x1};}N(_0x5553b2,_0x482ff2,_0x12dc14[_0x1e32f8(0x186)]),N(_0x5553b2,_0x566a99,_0x12dc14[_0x1e32f8(0x1a8)]),he(_0x5553b2,_0x566a99,_0x482ff2+0x1,_0xc20441);let _0x12fd3e={'blockId':_0x385c83,'blockType':_0x1c5fe0['CODE'],'startIndex':_0x566a99,'endIndex':_0x482ff2+0x1};return _0x5553b2[_0x1e32f8(0x1c0)]=[...(_0x32a0ef=_0x5553b2[_0x1e32f8(0x1c0)])==null?[]:_0x32a0ef,_0x12fd3e][_0x1e32f8(0x1be)]((_0x304f5b,_0x321f3d)=>_0x304f5b[_0x1e32f8(0x184)]-_0x321f3d[_0x1e32f8(0x184)]),M(_0x5553b2,_0x12fd3e),{'nextDocumentData':_0x52f655,'nextMetadata':_0x5a9447,'cursorOffset':_0x566a99+0x1};}function oe(_0x14c378,_0x10f03c,_0x1a1710){const _0x1f3e09=_0x5eace4;var _0x3ac443;((_0x3ac443=_0x14c378[_0x1f3e09(0x1d5)])==null?[]:_0x3ac443)[_0x1f3e09(0x18c)](_0x4e2b1d=>_0x4e2b1d[_0x1f3e09(0x184)]>_0x10f03c&&_0x4e2b1d[_0x1f3e09(0x184)]<_0x1a1710)[_0x1f3e09(0x1eb)](_0x46294c=>{const _0x111e61=_0x1f3e09;var _0x288f84;let _0x2f0219={...(_0x288f84=_0x46294c['paragraphStyle'])==null?{}:_0x288f84};delete _0x2f0219[_0x111e61(0x195)],delete _0x2f0219['spaceBelow'],_0x46294c[_0x111e61(0x17c)]=_0x2f0219;});}function se(_0x21fad5,_0x1b7500){const _0x2f74c6=_0x5eace4;return _0x21fad5==null||_0x1b7500==null||_0x21fad5===_0x1b7500?null:{'startOffset':Math[_0x2f74c6(0x1a4)](_0x21fad5,_0x1b7500),'endOffset':Math[_0x2f74c6(0x1b8)](_0x21fad5,_0x1b7500)};}function ce(_0x3316b3){const _0x1ca8b2=_0x5eace4;return{'nextDocumentData':D(_0x3316b3[_0x1ca8b2(0x199)]),'nextMetadata':T(_0x3316b3['metadata'],_0x3316b3[_0x1ca8b2(0x187)],_0x3316b3['config']),'cursorOffset':0x0};}function le(_0xbbb9de){const _0x49a686=_0x5eace4;var _0xca5294,_0x56dbc3;let _0x1eef71=D(_0xbbb9de[_0x49a686(0x199)]),_0x3f57f2=O(_0x1eef71),_0x1b2c04=me(_0x3f57f2,_0xbbb9de[_0x49a686(0x18e)]);if(!_0x1b2c04)return null;let _0x27c631=_e(_0x3f57f2,_0x1b2c04),_0x11997e=_0x27c631[_0x27c631[_0x49a686(0x1da)]-0x1];if(!_0x11997e||!ve(_0x3f57f2,_0x1b2c04,_0x11997e)||_0xbbb9de[_0x49a686(0x18e)]<_0x11997e[_0x49a686(0x184)])return null;let _0x416a4b=A(_0x3f57f2,_0x1b2c04,_0x11997e);if(_0x416a4b>=_0x1b2c04[_0x49a686(0x19f)])return null;_0x3f57f2[_0x49a686(0x1ec)]=[_0x3f57f2[_0x49a686(0x1ec)][_0x49a686(0x1c1)](0x0,_0x416a4b),_0x12dc14[_0x49a686(0x186)],_0x3f57f2[_0x49a686(0x1ec)][_0x49a686(0x1c1)](_0x416a4b,_0x1b2c04[_0x49a686(0x19f)]),_0x3f57f2[_0x49a686(0x1ec)][_0x49a686(0x1c1)](_0x1b2c04['endIndex']+0x1)][_0x49a686(0x171)](''),R(_0x3f57f2[_0x49a686(0x1d5)],_0x416a4b,_0x1b2c04[_0x49a686(0x19f)],0x1),R(_0x3f57f2['sectionBreaks'],_0x416a4b,_0x1b2c04[_0x49a686(0x19f)],0x1),R(_0x3f57f2['customBlocks'],_0x416a4b,_0x1b2c04[_0x49a686(0x19f)],0x1),ke(_0x3f57f2['textRuns'],_0x416a4b,_0x1b2c04['endIndex'],0x1),z(_0x3f57f2[_0x49a686(0x198)],_0x416a4b,_0x1b2c04['endIndex'],0x1),z(_0x3f57f2[_0x49a686(0x1d1)],_0x416a4b,_0x1b2c04[_0x49a686(0x19f)],0x1),z(_0x3f57f2[_0x49a686(0x1ed)],_0x416a4b,_0x1b2c04[_0x49a686(0x19f)],0x1),(_0xca5294=_0x3f57f2[_0x49a686(0x1c0)])==null||_0xca5294['forEach'](_0xd7b962=>{const _0x75ffde=_0x49a686;_0xd7b962===_0x1b2c04||_0xd7b962[_0x75ffde(0x187)]===_0x1b2c04['blockId']?_0xd7b962[_0x75ffde(0x19f)]=_0x416a4b:_0xd7b962[_0x75ffde(0x184)]>=_0x416a4b&&_0xd7b962[_0x75ffde(0x184)]<_0x1b2c04[_0x75ffde(0x19f)]&&(_0xd7b962[_0x75ffde(0x184)]+=0x1,_0xd7b962[_0x75ffde(0x19f)]+=0x1);});let _0xb09f3d=_e(_0x3f57f2,{..._0x1b2c04,'endIndex':_0x416a4b});_0xb09f3d[_0x49a686(0x1eb)]((_0x1a0373,_0x175685)=>{const _0x239e8c=_0x49a686;var _0x599144;_0x1a0373[_0x239e8c(0x17c)]={...(_0x599144=_0x1a0373[_0x239e8c(0x17c)])==null?{}:_0x599144,...E(_0x175685===0x0,_0x175685===_0xb09f3d['length']-0x1)};});let _0x7672fa=(_0x56dbc3=_0x3f57f2[_0x49a686(0x1d5)])==null?void 0x0:_0x56dbc3['find'](_0x510ce5=>_0x510ce5[_0x49a686(0x184)]===_0x416a4b+0x1);return _0x7672fa&&(_0x7672fa[_0x49a686(0x17c)]=ge(_0x7672fa[_0x49a686(0x17c)])),{'nextDocumentData':_0x1eef71,'cursorOffset':_0x416a4b+0x1};}function ue(_0x563605){const _0x33f566=_0x5eace4;let _0x48f01c=D(_0x563605[_0x33f566(0x199)]),_0x22fe98=O(_0x48f01c),_0x50ecaf=me(_0x22fe98,_0x563605[_0x33f566(0x18e)]);return _0x50ecaf&&de(_0x48f01c,_0x22fe98,_0x50ecaf,_0x563605[_0x33f566(0x18e)],_0x563605[_0x33f566(0x17e)])||null;}function de(_0x23c70d,_0x5f2a5a,_0x38ca53,_0x2bceda,_0x56e517){const _0x3221af=_0x5eace4;let _0x43cb7a=we(_0x5f2a5a,_0x38ca53,_0x2bceda,_0x56e517);if(!_0x43cb7a)return null;let _0x5da1a7=_0x43cb7a['endTokenOffset']-0x1;return Te(_0x5f2a5a,_0x43cb7a['paragraph'][_0x3221af(0x184)],_0x43cb7a[_0x3221af(0x1b2)][_0x3221af(0x184)]+0x1),{'nextDocumentData':_0x23c70d,'cursorOffset':_0x5da1a7};}function fe(_0x2b51fc,_0x311373){const _0x1faf18=_0x5eace4;var _0x5b3b9c;return _0x2b51fc==null||(_0x5b3b9c=_0x2b51fc[_0x1faf18(0x1c0)])==null?void 0x0:_0x5b3b9c[_0x1faf18(0x1bf)](_0x534d81=>_0x534d81['blockType']===_0x1c5fe0[_0x1faf18(0x1a7)]&&_0x534d81[_0x1faf18(0x184)]<=_0x311373&&_0x311373<=_0x534d81['endIndex']);}function pe(_0x5ec5cd){const _0x343f32=_0x5eace4;var _0x29250f;let _0x3d0f16=_0x5ec5cd['documentData'][_0x343f32(0x1c3)];if(!_0x3d0f16)return!0x1;let _0x4fcba6=_0x5ec5cd[_0x343f32(0x1a9)]===_0x343f32(0x182)?_0x5ec5cd[_0x343f32(0x18e)]-0x1:_0x5ec5cd[_0x343f32(0x18e)],_0x297a38=_0x5ec5cd['direction']===_0x343f32(0x1f4)?_0x5ec5cd[_0x343f32(0x18e)]+0x1:_0x4fcba6;return((_0x29250f=_0x3d0f16[_0x343f32(0x1c0)])==null?[]:_0x29250f)['some'](_0x147f5d=>_0x147f5d[_0x343f32(0x180)]===_0x1c5fe0[_0x343f32(0x1a7)]?_0x4fcba6===_0x147f5d[_0x343f32(0x184)]||_0x4fcba6===_0x147f5d[_0x343f32(0x19f)]||_0x297a38===_0x147f5d[_0x343f32(0x184)]||_0x297a38===_0x147f5d['endIndex']:!0x1);}function me(_0x4d17f4,_0x104728){const _0x1f36d6=_0x5eace4;var _0x5c0224;return(_0x5c0224=_0x4d17f4['blockRanges'])==null?void 0x0:_0x5c0224[_0x1f36d6(0x1bf)](_0x399d64=>{const _0x1e873f=_0x1f36d6;let _0x24c421=j(_0x4d17f4,_0x399d64);return _0x399d64[_0x1e873f(0x180)]===_0x1c5fe0[_0x1e873f(0x1a7)]&&_0x399d64[_0x1e873f(0x184)]<=_0x104728&&_0x104728<=_0x24c421+0x2;});}function E(_0x256ce1,_0x3eec76,_0x4cd97c=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x256ce1&&_0x4cd97c?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ie,'fs':0xc}};}function he(_0x1b0125,_0x1bcd4e,_0x39f6ac,_0x32afa7=!0x1){const _0x513b40=_0x5eace4;var _0x3f7fcc;let _0xac33ea=((_0x3f7fcc=_0x1b0125[_0x513b40(0x1d5)])==null?[]:_0x3f7fcc)[_0x513b40(0x18c)](_0x346727=>_0x346727[_0x513b40(0x184)]>_0x1bcd4e&&_0x346727['startIndex']<_0x39f6ac);_0xac33ea['forEach']((_0x25e7c3,_0x30dd67)=>{const _0x173bbe=_0x513b40;var _0xc4f340;_0x25e7c3[_0x173bbe(0x17c)]={...(_0xc4f340=_0x25e7c3['paragraphStyle'])==null?{}:_0xc4f340,...E(_0x30dd67===0x0,_0x30dd67===_0xac33ea[_0x173bbe(0x1da)]-0x1,_0x32afa7)};});}function _0x3364(_0x373af6,_0x4580b9){_0x373af6=_0x373af6-0x171;const _0x1e349b=_0x1e34();let _0x336465=_0x1e349b[_0x373af6];return _0x336465;}function ge(_0x5686f3){const _0x4c5f68=_0x5eace4;var _0x3ee7ad,_0xfc8eae;let _0x2b6066={..._0x5686f3==null?{}:_0x5686f3};return delete _0x2b6066[_0x4c5f68(0x1c5)],delete _0x2b6066['indentStart'],delete _0x2b6066[_0x4c5f68(0x195)],delete _0x2b6066['spaceBelow'],((_0x3ee7ad=_0x2b6066[_0x4c5f68(0x1df)])==null?void 0x0:_0x3ee7ad['ff'])===ie&&((_0xfc8eae=_0x2b6066[_0x4c5f68(0x1df)])==null?void 0x0:_0xfc8eae['fs'])===0xc&&delete _0x2b6066[_0x4c5f68(0x1df)],_0x2b6066;}function _e(_0x52206a,_0x3e81fb){const _0x373e81=_0x5eace4;var _0x193e00;let _0x3612b7=j(_0x52206a,_0x3e81fb);return((_0x193e00=_0x52206a[_0x373e81(0x1d5)])==null?[]:_0x193e00)[_0x373e81(0x18c)](_0x5d1c12=>_0x5d1c12[_0x373e81(0x184)]>_0x3e81fb[_0x373e81(0x184)]&&_0x5d1c12[_0x373e81(0x184)]<_0x3612b7);}function _0x1e34(){const _0x415eb9=['getTextRanges','every','spaceAbove','Document\x20body\x20is\x20required','2530557cCjiLt','tables','documentData','dispose','sectionBreaks','asObservable','call','codes','endIndex','endOffset','textRuns','parse','customBlocks','min','registerPluginResource','some','CODE','BLOCK_START','direction','pluginName','setCodeConfig','getInstance','nextMetadata','map','complete','compose','360XFmVoQ','paragraph','1654396tkWLNw','49176FVqAFu','metadata','symbol','UNIVER_DOC','max','entries','4644175qTGwqX','_resources','docs-code.command.exit','syncExecuteCommand','sort','find','blockRanges','slice','unitId','body','removeCode','indentEnd','docs-code.command.consume-boundary-delete','change$','_resourceManagerService','docs-code.command.cancel-empty-paragraph','getOwnPropertyDescriptor','prototype','get','580118wPEXcI','getUnitId','getUniverDocInstance','version','customRanges','deserialize','onStarting','21BABsDQ','paragraphs','deepClone','getSnapshot','config','type','length','1954782mHGedq','stringify','removeUnit','_docsCodeModel','textStyle','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','paragraphId','endsWith','reduce','385vJWUTu','from','_commandService','_setResource','default','getCurrentUnitOfType','previousDocumentData','forEach','dataStream','customDecorations','registerCommand','next','object','add','string','model','right','join','6RXSwXa','getBody','DOC_CODE_PLUGIN','clear','javascript','docs-code.command.insert-below','set','setConfig','nextDocumentData','PARAGRAPH','paragraphStyle','startOffset','paragraphStartIndex','monospace','blockType','commandService','left','23624lhHHea','startIndex','_initResource','BLOCK_END','blockId','COMMAND','function','_injector','disposeWithMe','filter','_configService','cursorOffset','replaceOp','serialize','defineProperty','_change$'];_0x1e34=function(){return _0x415eb9;};return _0x1e34();}function ve(_0x11a3f4,_0x11ab29,_0x56e73c){const _0x507231=_0x5eace4;let _0x7d5784=A(_0x11a3f4,_0x11ab29,_0x56e73c),_0x256d1a=_0x11a3f4[_0x507231(0x1ec)][_0x507231(0x1c1)](_0x7d5784,_0x56e73c[_0x507231(0x184)]);return Array['from'](_0x256d1a)[_0x507231(0x194)](_0x53b3b2=>_0x53b3b2===_0x12dc14[_0x507231(0x1a8)]||_0x53b3b2===_0x12dc14['BLOCK_END']);}function D(_0x57bee6){const _0x2456ce=_0x5eace4;return _0x282787[_0x2456ce(0x1d6)](_0x57bee6);}function O(_0x325f9d){const _0x3a0294=_0x5eace4;if(!_0x325f9d['body'])throw Error(_0x3a0294(0x196));return _0x325f9d[_0x3a0294(0x1c3)];}function ye(_0x5c96ae,_0x1563f1,_0x5e94c6){const _0x574d80=_0x5eace4;if(_0x1563f1==null||_0x5e94c6==null){let _0x316a5b=xe(_0x5c96ae);return{'startOffset':_0x316a5b,'endOffset':_0x316a5b};}let _0x47fded=Math[_0x574d80(0x1a4)](_0x1563f1,_0x5e94c6),_0x21921d=Math[_0x574d80(0x1b8)](_0x1563f1,_0x5e94c6);if(_0x47fded===_0x21921d){let _0xa9b12b=be(_0x5c96ae,_0x47fded);return{'startOffset':_0xa9b12b,'endOffset':_0xa9b12b};}return Ce(_0x5c96ae,_0x47fded,_0x21921d);}function be(_0x270064,_0x9d1c18){const _0x2a9e6e=_0x5eace4;return _0x9d1c18===0x0&&_0x270064[_0x2a9e6e(0x1ec)][0x0]===_0x12dc14[_0x2a9e6e(0x17b)]?0x1:_0x9d1c18;}function xe(_0x2404ef){const _0x11b732=_0x5eace4;return _0x2404ef[_0x11b732(0x1ec)][_0x11b732(0x1e2)](_0x12dc14['SECTION_BREAK'])?Math[_0x11b732(0x1b8)](0x0,_0x2404ef[_0x11b732(0x1ec)]['length']-0x1):_0x2404ef[_0x11b732(0x1ec)]['length'];}function Se(_0x4dc5c9,_0x4367f5,_0x168f9a){const _0x4018a4=_0x5eace4;var _0x22392e;let _0x5e5415=Math[_0x4018a4(0x1a4)](_0x4367f5,_0x168f9a),_0x30c497=Math[_0x4018a4(0x1b8)](_0x4367f5,_0x168f9a);return!!((_0x22392e=_0x4dc5c9['tables'])!=null&&_0x22392e[_0x4018a4(0x1a6)](_0x210736=>_0x5e5415>_0x210736[_0x4018a4(0x184)]&&_0x5e5415<_0x210736[_0x4018a4(0x19f)]||_0x30c497>_0x210736[_0x4018a4(0x184)]&&_0x30c497<_0x210736[_0x4018a4(0x19f)]||_0x5e5415<=_0x210736[_0x4018a4(0x184)]&&_0x30c497>=_0x210736['endIndex']));}function Ce(_0x2ef870,_0x16d44a,_0x107c82){const _0x4ed3b0=_0x5eace4;var _0x2c6fc6,_0x4ab699;let _0xab2e6e=[...(_0x2c6fc6=_0x2ef870[_0x4ed3b0(0x1d5)])==null?[]:_0x2c6fc6][_0x4ed3b0(0x1be)]((_0x43ac61,_0x5ee2fe)=>_0x43ac61['startIndex']-_0x5ee2fe['startIndex']),_0x4e56ce=_0xab2e6e['find']((_0xdb8d66,_0x3b18fc)=>(_0x3b18fc===0x0?0x0:_0xab2e6e[_0x3b18fc-0x1]['startIndex']+0x1)<=_0x16d44a&&_0x16d44a<=_0xdb8d66[_0x4ed3b0(0x184)]),_0x33498e=(_0x4ab699=_0xab2e6e['find'](_0x5c0f23=>_0x5c0f23[_0x4ed3b0(0x184)]>=_0x107c82-0x1))==null?_0xab2e6e[_0xab2e6e[_0x4ed3b0(0x1da)]-0x1]:_0x4ab699;return{'startOffset':_0x4e56ce?k(_0xab2e6e,_0x4e56ce):_0x16d44a,'endOffset':_0x33498e?_0x33498e['startIndex']+0x1:_0x107c82};}function k(_0x58df61,_0x58eb4c){const _0x3a2a6d=_0x5eace4;let _0x46c139=_0x58df61['indexOf'](_0x58eb4c);return _0x46c139>0x0?_0x58df61[_0x46c139-0x1][_0x3a2a6d(0x184)]+0x1:0x0;}function A(_0x45a0fc,_0x279ec9,_0x7599fc){const _0x10653c=_0x5eace4;var _0x404462;return Math[_0x10653c(0x1b8)](k((_0x404462=_0x45a0fc['paragraphs'])==null?[]:_0x404462,_0x7599fc),_0x279ec9[_0x10653c(0x184)]+0x1);}function j(_0x19f279,_0x3b842e){const _0x378a2f=_0x5eace4;return _0x19f279['dataStream'][_0x3b842e['endIndex']]===_0x12dc14['BLOCK_END']?_0x3b842e[_0x378a2f(0x19f)]:_0x19f279[_0x378a2f(0x1ec)][_0x3b842e[_0x378a2f(0x19f)]+0x1]===_0x12dc14[_0x378a2f(0x186)]?_0x3b842e['endIndex']+0x1:_0x3b842e[_0x378a2f(0x19f)];}function we(_0x172c61,_0x5601f8,_0x33c153,_0x55f60b){const _0x26c6d1=_0x5eace4;var _0x139ee8,_0x2ab262;let _0x3f26de=j(_0x172c61,_0x5601f8),_0x5ab271=((_0x139ee8=_0x172c61['paragraphs'])==null?[]:_0x139ee8)[_0x26c6d1(0x1bf)](_0x4f52f1=>_0x4f52f1[_0x26c6d1(0x184)]===_0x3f26de+0x1);if(!_0x5ab271||_0x55f60b!=null&&_0x5ab271[_0x26c6d1(0x184)]!==_0x55f60b||_0x33c153<_0x3f26de||_0x33c153>_0x5ab271[_0x26c6d1(0x184)]+0x1||_0x172c61[_0x26c6d1(0x1ec)][_0x5ab271['startIndex']]!==_0x12dc14[_0x26c6d1(0x17b)])return null;let _0x3ceea2=k((_0x2ab262=_0x172c61[_0x26c6d1(0x1d5)])==null?[]:_0x2ab262,_0x5ab271),_0x895a33=_0x172c61[_0x26c6d1(0x1ec)][_0x26c6d1(0x1c1)](_0x3ceea2,_0x5ab271[_0x26c6d1(0x184)]);return Array[_0x26c6d1(0x1e5)](_0x895a33)[_0x26c6d1(0x194)](_0x1eb594=>_0x1eb594===_0x12dc14['BLOCK_END'])?{'paragraph':_0x5ab271,'endTokenOffset':_0x3f26de}:null;}function M(_0x3c6e8c,_0xfdfdac){const _0x262065=_0x5eace4;var _0x6406df;let _0xfa1acf=j(_0x3c6e8c,_0xfdfdac),_0x149c7e=_0x3c6e8c[_0x262065(0x1ec)][_0xfa1acf+0x1];_0x149c7e!==_0x12dc14['SECTION_BREAK']&&_0x149c7e!==void 0x0||N(_0x3c6e8c,_0xfa1acf+0x1,_0x12dc14[_0x262065(0x17b)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x84f9b7(new Set((_0x6406df=_0x3c6e8c['paragraphs'])==null?void 0x0:_0x6406df[_0x262065(0x1ae)](_0x3113bc=>_0x3113bc[_0x262065(0x1e1)])))}]});}function N(_0x47de18,_0x193b13,_0xd4a325,_0x16f117={}){const _0x1bca14=_0x5eace4;var _0x511f1c,_0xed39ee;if(_0xd4a325){if(_0x47de18[_0x1bca14(0x1ec)]=''+_0x47de18[_0x1bca14(0x1ec)][_0x1bca14(0x1c1)](0x0,_0x193b13)+_0xd4a325+_0x47de18['dataStream'][_0x1bca14(0x1c1)](_0x193b13),Ee(_0x47de18,_0x193b13,_0xd4a325[_0x1bca14(0x1da)]),(_0x511f1c=_0x16f117[_0x1bca14(0x1d5)])!=null&&_0x511f1c['length']){var _0x41243b;_0x47de18['paragraphs']=[...(_0x41243b=_0x47de18[_0x1bca14(0x1d5)])==null?[]:_0x41243b,..._0x16f117[_0x1bca14(0x1d5)][_0x1bca14(0x1ae)](_0x5ecb19=>({..._0x5ecb19,'startIndex':_0x5ecb19[_0x1bca14(0x184)]+_0x193b13}))][_0x1bca14(0x1be)]((_0x2b6997,_0x4c5213)=>_0x2b6997[_0x1bca14(0x184)]-_0x4c5213[_0x1bca14(0x184)]);}if((_0xed39ee=_0x16f117[_0x1bca14(0x1c0)])!=null&&_0xed39ee[_0x1bca14(0x1da)]){var _0x3d438d;_0x47de18[_0x1bca14(0x1c0)]=[...(_0x3d438d=_0x47de18[_0x1bca14(0x1c0)])==null?[]:_0x3d438d,..._0x16f117[_0x1bca14(0x1c0)][_0x1bca14(0x1ae)](_0x1e91d2=>({..._0x1e91d2,'startIndex':_0x1e91d2[_0x1bca14(0x184)]+_0x193b13,'endIndex':_0x1e91d2[_0x1bca14(0x19f)]+_0x193b13}))]['sort']((_0x48509c,_0x3a1eeb)=>_0x48509c[_0x1bca14(0x184)]-_0x3a1eeb['startIndex']);}}}function Te(_0x587f05,_0x5c3783,_0x1909a1){const _0x956cbf=_0x5eace4;let _0xe9c056=_0x1909a1-_0x5c3783;_0x587f05['dataStream']=''+_0x587f05[_0x956cbf(0x1ec)][_0x956cbf(0x1c1)](0x0,_0x5c3783)+_0x587f05[_0x956cbf(0x1ec)][_0x956cbf(0x1c1)](_0x1909a1),De(_0x587f05,_0x5c3783,_0xe9c056);}function Ee(_0x52067f,_0x5f4840,_0x1379d5){const _0x37b587=_0x5eace4;_0x52067f[_0x37b587(0x1d5)]=P(_0x52067f['paragraphs'],_0x5f4840,_0x1379d5),_0x52067f['sectionBreaks']=P(_0x52067f[_0x37b587(0x19b)],_0x5f4840,_0x1379d5),_0x52067f['customBlocks']=P(_0x52067f['customBlocks'],_0x5f4840,_0x1379d5),_0x52067f['textRuns']=Oe(_0x52067f['textRuns'],_0x5f4840,_0x1379d5),_0x52067f['tables']=I(_0x52067f['tables'],_0x5f4840,_0x1379d5),_0x52067f[_0x37b587(0x1d1)]=I(_0x52067f[_0x37b587(0x1d1)],_0x5f4840,_0x1379d5),_0x52067f[_0x37b587(0x1ed)]=I(_0x52067f[_0x37b587(0x1ed)],_0x5f4840,_0x1379d5),_0x52067f[_0x37b587(0x1c0)]=I(_0x52067f[_0x37b587(0x1c0)],_0x5f4840,_0x1379d5);}function De(_0x1dfe11,_0x25c05a,_0x427c8f){const _0x3f1b26=_0x5eace4;var _0x893005,_0x4cc43f;_0x1dfe11[_0x3f1b26(0x1d5)]=F(_0x1dfe11[_0x3f1b26(0x1d5)],_0x25c05a,_0x427c8f),_0x1dfe11['sectionBreaks']=F(_0x1dfe11[_0x3f1b26(0x19b)],_0x25c05a,_0x427c8f),_0x1dfe11[_0x3f1b26(0x1a3)]=F(_0x1dfe11[_0x3f1b26(0x1a3)],_0x25c05a,_0x427c8f),_0x1dfe11[_0x3f1b26(0x1a1)]=(_0x893005=L((_0x4cc43f=_0x1dfe11[_0x3f1b26(0x1a1)])==null?void 0x0:_0x4cc43f['map'](_0x11395b=>({..._0x11395b,'startIndex':_0x11395b['st'],'endIndex':_0x11395b['ed']})),_0x25c05a,_0x427c8f))==null?void 0x0:_0x893005[_0x3f1b26(0x1ae)](_0x2672e2=>{let {startIndex:_0xe6a602,endIndex:_0x256095,..._0x251c4a}=_0x2672e2;return{..._0x251c4a,'st':_0xe6a602,'ed':_0x256095};}),_0x1dfe11['tables']=L(_0x1dfe11[_0x3f1b26(0x198)],_0x25c05a,_0x427c8f),_0x1dfe11[_0x3f1b26(0x1d1)]=L(_0x1dfe11[_0x3f1b26(0x1d1)],_0x25c05a,_0x427c8f),_0x1dfe11['customDecorations']=L(_0x1dfe11['customDecorations'],_0x25c05a,_0x427c8f),_0x1dfe11[_0x3f1b26(0x1c0)]=L(_0x1dfe11[_0x3f1b26(0x1c0)],_0x25c05a,_0x427c8f);}function P(_0xdbae15,_0x45ddc3,_0x358651){const _0x264f58=_0x5eace4;return _0xdbae15==null?void 0x0:_0xdbae15[_0x264f58(0x1ae)](_0x106056=>_0x106056[_0x264f58(0x184)]>=_0x45ddc3?{..._0x106056,'startIndex':_0x106056[_0x264f58(0x184)]+_0x358651}:_0x106056);}function F(_0x2ee65a,_0x552820,_0x400d81){const _0x554f2f=_0x5eace4;let _0x2a870d=_0x552820+_0x400d81;return _0x2ee65a==null?void 0x0:_0x2ee65a[_0x554f2f(0x1ae)](_0x589b52=>_0x589b52['startIndex']>=_0x552820&&_0x589b52[_0x554f2f(0x184)]<_0x2a870d?null:_0x589b52[_0x554f2f(0x184)]>=_0x2a870d?{..._0x589b52,'startIndex':_0x589b52[_0x554f2f(0x184)]-_0x400d81}:_0x589b52)[_0x554f2f(0x18c)](_0xcc03df=>_0xcc03df!=null);}function Oe(_0x3db0bf,_0x226913,_0x5bd198){return _0x3db0bf==null?void 0x0:_0x3db0bf['map'](_0x915c8a=>_0x915c8a['st']>=_0x226913?{..._0x915c8a,'st':_0x915c8a['st']+_0x5bd198,'ed':_0x915c8a['ed']+_0x5bd198}:_0x915c8a['ed']>_0x226913?{..._0x915c8a,'ed':_0x915c8a['ed']+_0x5bd198}:_0x915c8a);}function I(_0x193b62,_0x209794,_0x2917a8){const _0x3c422b=_0x5eace4;return _0x193b62==null?void 0x0:_0x193b62[_0x3c422b(0x1ae)](_0x260935=>_0x260935[_0x3c422b(0x184)]>=_0x209794?{..._0x260935,'startIndex':_0x260935[_0x3c422b(0x184)]+_0x2917a8,'endIndex':_0x260935[_0x3c422b(0x19f)]+_0x2917a8}:_0x260935[_0x3c422b(0x19f)]>=_0x209794?{..._0x260935,'endIndex':_0x260935['endIndex']+_0x2917a8}:_0x260935);}function L(_0x28372b,_0x374274,_0x35b1b6){const _0x18de96=_0x5eace4;let _0x1e5987=_0x374274+_0x35b1b6;return _0x28372b==null?void 0x0:_0x28372b[_0x18de96(0x1ae)](_0x19d19a=>_0x19d19a[_0x18de96(0x184)]>=_0x374274&&_0x19d19a[_0x18de96(0x19f)]<_0x1e5987?null:_0x19d19a[_0x18de96(0x184)]>=_0x1e5987?{..._0x19d19a,'startIndex':_0x19d19a[_0x18de96(0x184)]-_0x35b1b6,'endIndex':_0x19d19a[_0x18de96(0x19f)]-_0x35b1b6}:_0x19d19a[_0x18de96(0x19f)]>=_0x374274?{..._0x19d19a,'startIndex':_0x19d19a['startIndex']<_0x374274?_0x19d19a[_0x18de96(0x184)]:_0x374274,'endIndex':Math['max'](_0x374274,_0x19d19a[_0x18de96(0x19f)]-_0x35b1b6)}:_0x19d19a)[_0x18de96(0x18c)](_0x1f54df=>_0x1f54df!=null);}function R(_0x24d7da,_0x54f448,_0x46b6bd,_0x35a166){const _0x18fd9c=_0x5eace4;_0x24d7da==null||_0x24d7da[_0x18fd9c(0x1eb)](_0x22c2be=>{const _0x1ebd50=_0x18fd9c;_0x22c2be[_0x1ebd50(0x184)]>=_0x54f448&&_0x22c2be[_0x1ebd50(0x184)]<_0x46b6bd&&(_0x22c2be['startIndex']+=_0x35a166);});}function ke(_0x315d7b,_0x105690,_0x5392d3,_0x29cb5e){const _0x2b4e8f=_0x5eace4;_0x315d7b==null||_0x315d7b[_0x2b4e8f(0x1eb)](_0x508749=>{_0x508749['st']>=_0x105690&&_0x508749['st']<_0x5392d3?(_0x508749['st']+=_0x29cb5e,_0x508749['ed']+=_0x29cb5e):_0x508749['ed']>_0x105690&&_0x508749['ed']<_0x5392d3&&(_0x508749['ed']+=_0x29cb5e);});}function z(_0x5873e3,_0x390724,_0x3f7c3d,_0x2048d7){_0x5873e3==null||_0x5873e3['forEach'](_0x3cb2f6=>{const _0x4e1f83=_0x3364;_0x3cb2f6['startIndex']>=_0x390724&&_0x3cb2f6[_0x4e1f83(0x184)]<_0x3f7c3d?(_0x3cb2f6[_0x4e1f83(0x184)]+=_0x2048d7,_0x3cb2f6[_0x4e1f83(0x19f)]+=_0x2048d7):_0x3cb2f6['endIndex']>_0x390724&&_0x3cb2f6[_0x4e1f83(0x19f)]<_0x3f7c3d&&(_0x3cb2f6['endIndex']+=_0x2048d7);});}function B(_0x1a6a05){'@babel/helpers - typeof';const _0x287592=_0x5eace4;return B=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x287592(0x1b6)?function(_0x1120f8){return typeof _0x1120f8;}:function(_0x19d7b1){const _0x3ede9e=_0x287592;return _0x19d7b1&&typeof Symbol==_0x3ede9e(0x189)&&_0x19d7b1['constructor']===Symbol&&_0x19d7b1!==Symbol[_0x3ede9e(0x1cb)]?_0x3ede9e(0x1b6):typeof _0x19d7b1;},B(_0x1a6a05);}function Ae(_0x5228e8,_0x45e6f4){const _0x1b1a1a=_0x5eace4;if(B(_0x5228e8)!=_0x1b1a1a(0x1f0)||!_0x5228e8)return _0x5228e8;var _0x3eaaa2=_0x5228e8[Symbol['toPrimitive']];if(_0x3eaaa2!==void 0x0){var _0x4ccb1c=_0x3eaaa2[_0x1b1a1a(0x19d)](_0x5228e8,_0x45e6f4||_0x1b1a1a(0x1e8));if(B(_0x4ccb1c)!=_0x1b1a1a(0x1f0))return _0x4ccb1c;throw TypeError(_0x1b1a1a(0x1e0));}return(_0x45e6f4===_0x1b1a1a(0x1f2)?String:Number)(_0x5228e8);}function je(_0x550943){const _0x27d920=_0x5eace4;var _0x186449=Ae(_0x550943,'string');return B(_0x186449)==_0x27d920(0x1b6)?_0x186449:_0x186449+'';}function V(_0x187233,_0x4bb3fb,_0x4f2b2d){return(_0x4bb3fb=je(_0x4bb3fb))in _0x187233?Object['defineProperty'](_0x187233,_0x4bb3fb,{'value':_0x4f2b2d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x187233[_0x4bb3fb]=_0x4f2b2d,_0x187233;}var H=class extends _0x51061b{constructor(..._0x2a3d13){const _0x1ec67f=_0x5eace4;super(..._0x2a3d13),V(this,_0x1ec67f(0x1bb),new Map()),V(this,_0x1ec67f(0x192),new _0x29213d()),V(this,_0x1ec67f(0x1c7),this[_0x1ec67f(0x192)][_0x1ec67f(0x19c)]());}['getCodeConfig'](_0x43822f,_0x25ed91){const _0x15a316=_0x5eace4;return w(this[_0x15a316(0x1bb)][_0x15a316(0x1cc)](_0x43822f))[_0x15a316(0x19e)][_0x25ed91];}[_0x5eace4(0x1ab)](_0xd4de10,_0x518d40,_0x2e4517){const _0x5cd362=_0x5eace4;this['_setResource'](_0xd4de10,_0x518d40,T(this[_0x5cd362(0x1bb)][_0x5cd362(0x1cc)](_0xd4de10),_0x518d40,_0x2e4517));}[_0x5eace4(0x1c4)](_0x4505e5,_0x35c825){const _0x580e3f=_0x5eace4;this['_setResource'](_0x4505e5,_0x35c825,re(this[_0x580e3f(0x1bb)][_0x580e3f(0x1cc)](_0x4505e5),_0x35c825));}[_0x5eace4(0x190)](_0x130f06){const _0x51685e=_0x5eace4;return w(this[_0x51685e(0x1bb)][_0x51685e(0x1cc)](_0x130f06));}[_0x5eace4(0x1d2)](_0x434dc1,_0x112393){const _0x394f28=_0x5eace4;this[_0x394f28(0x1bb)]['set'](_0x434dc1,w(_0x112393)),this[_0x394f28(0x192)][_0x394f28(0x1ef)]({'unitId':_0x434dc1});}[_0x5eace4(0x1dd)](_0x5476d0){const _0x22d5d9=_0x5eace4;this[_0x22d5d9(0x1bb)]['delete'](_0x5476d0),this[_0x22d5d9(0x192)]['next']({'unitId':_0x5476d0});}[_0x5eace4(0x19a)](){const _0xbc872=_0x5eace4;super[_0xbc872(0x19a)](),this[_0xbc872(0x1bb)][_0xbc872(0x175)](),this[_0xbc872(0x192)][_0xbc872(0x1af)]();}[_0x5eace4(0x1e7)](_0x35ab21,_0x3a76c1,_0x325760){const _0x2cf0c0=_0x5eace4;this[_0x2cf0c0(0x1bb)][_0x2cf0c0(0x178)](_0x35ab21,_0x325760),this[_0x2cf0c0(0x192)]['next']({'unitId':_0x35ab21,'blockId':_0x3a76c1});}};const Me={'id':_0x5eace4(0x177),'type':_0x3bdce4[_0x5eace4(0x188)],'handler':_0x3fbb6d=>{const _0x563088=_0x5eace4;let _0x3655ee=Le(_0x3fbb6d);if(_0x3655ee)return _0x3fbb6d[_0x563088(0x1cc)](_0x58c777)[_0x563088(0x1bd)](U['id'],{'startOffset':_0x3655ee[_0x563088(0x17d)],'endOffset':_0x3655ee[_0x563088(0x1a0)],'unitId':_0x3655ee['unitId']});let _0x57df05=Re(_0x3fbb6d);if(!_0x57df05)return!0x1;let _0x3ae2af=_0x57df05[_0x563088(0x184)]+0x1;return _0x3fbb6d[_0x563088(0x1cc)](_0x58c777)[_0x563088(0x1bd)](U['id'],{'startOffset':_0x3ae2af,'endOffset':_0x3ae2af});}},Ne={'id':_0x5eace4(0x1c6),'type':_0x3bdce4[_0x5eace4(0x188)],'handler':()=>!0x0},U={'id':'docs-code.command.insert','type':_0x3bdce4['COMMAND'],'handler':(_0x15ef6d,_0xbf661f)=>{const _0x311ba8=_0x5eace4;var _0x572cd5,_0x35019f,_0x44a9c4;let _0x3fc33b=W(_0x15ef6d,_0xbf661f==null?void 0x0:_0xbf661f['unitId']);if(!_0x3fc33b)return!0x1;let _0x44d3cb=G(_0x15ef6d),_0x243bde=ae({'blockId':(_0x572cd5=_0xbf661f==null?void 0x0:_0xbf661f[_0x311ba8(0x187)])==null?_0x2ce6a6(0x6):_0x572cd5,'config':_0xbf661f==null?void 0x0:_0xbf661f[_0x311ba8(0x1d8)],'documentData':_0x3fc33b['previousDocumentData'],'endOffset':(_0x35019f=_0xbf661f==null?void 0x0:_0xbf661f[_0x311ba8(0x1a0)])==null?_0x44d3cb==null?void 0x0:_0x44d3cb['endOffset']:_0x35019f,'metadata':_0x3fc33b[_0x311ba8(0x1f3)][_0x311ba8(0x190)](_0x3fc33b['unitId']),'startOffset':(_0x44a9c4=_0xbf661f==null?void 0x0:_0xbf661f[_0x311ba8(0x17d)])==null?_0x44d3cb==null?void 0x0:_0x44d3cb[_0x311ba8(0x17d)]:_0x44a9c4}),_0x13fe9d=q(_0x3fc33b[_0x311ba8(0x181)],_0x3fc33b[_0x311ba8(0x1c2)],_0x3fc33b[_0x311ba8(0x1ea)],_0x243bde[_0x311ba8(0x17a)],_0x243bde[_0x311ba8(0x18e)]);return _0x13fe9d&&_0x243bde[_0x311ba8(0x1ad)]&&_0x3fc33b[_0x311ba8(0x1f3)][_0x311ba8(0x1d2)](_0x3fc33b[_0x311ba8(0x1c2)],_0x243bde[_0x311ba8(0x1ad)]),_0x13fe9d;}},Pe={'id':'docs-code.command.update','type':_0x3bdce4[_0x5eace4(0x188)],'handler':(_0x254e7c,_0x4623ac)=>{const _0x1a1d1c=_0x5eace4;if(!_0x4623ac)return!0x1;let _0x445cd7=W(_0x254e7c,_0x4623ac[_0x1a1d1c(0x1c2)]);if(!_0x445cd7)return!0x1;let _0x5b5397=ce({'blockId':_0x4623ac['blockId'],'config':_0x4623ac[_0x1a1d1c(0x1d8)],'documentData':_0x445cd7[_0x1a1d1c(0x1ea)],'metadata':_0x445cd7['model'][_0x1a1d1c(0x190)](_0x445cd7['unitId'])});return _0x5b5397[_0x1a1d1c(0x1ad)]&&_0x445cd7[_0x1a1d1c(0x1f3)][_0x1a1d1c(0x1d2)](_0x445cd7['unitId'],_0x5b5397[_0x1a1d1c(0x1ad)]),!0x0;}},Fe={'id':_0x5eace4(0x1bc),'type':_0x3bdce4['COMMAND'],'handler':(_0x3dbc14,_0x4fe7f7)=>{const _0x743bba=_0x5eace4;var _0x20af29,_0x1703ca;let _0x26c038=W(_0x3dbc14,_0x4fe7f7==null?void 0x0:_0x4fe7f7[_0x743bba(0x1c2)]);if(!_0x26c038)return!0x1;let _0x404d08=(_0x20af29=_0x4fe7f7==null?void 0x0:_0x4fe7f7[_0x743bba(0x18e)])==null?(_0x1703ca=G(_0x3dbc14))==null?void 0x0:_0x1703ca['startOffset']:_0x20af29;if(_0x404d08==null)return!0x1;let _0x24bb75=le({'cursorOffset':_0x404d08,'documentData':_0x26c038[_0x743bba(0x1ea)]});return _0x24bb75?q(_0x26c038['commandService'],_0x26c038['unitId'],_0x26c038['previousDocumentData'],_0x24bb75['nextDocumentData'],_0x24bb75[_0x743bba(0x18e)]):!0x1;}},Ie={'id':_0x5eace4(0x1c9),'type':_0x3bdce4[_0x5eace4(0x188)],'handler':(_0xe3b19d,_0x11f83e)=>{const _0x2e943d=_0x5eace4;var _0x438895,_0x2e0720;let _0x2654ef=W(_0xe3b19d,_0x11f83e==null?void 0x0:_0x11f83e[_0x2e943d(0x1c2)]);if(!_0x2654ef)return!0x1;let _0x2909fc=(_0x438895=_0x11f83e==null?void 0x0:_0x11f83e[_0x2e943d(0x18e)])==null?(_0x2e0720=G(_0xe3b19d))==null?void 0x0:_0x2e0720[_0x2e943d(0x17d)]:_0x438895;if(_0x2909fc==null)return!0x1;let _0x1151f4=ue({'cursorOffset':_0x2909fc,'documentData':_0x2654ef[_0x2e943d(0x1ea)],'paragraphStartIndex':_0x11f83e==null?void 0x0:_0x11f83e['paragraphStartIndex']});return _0x1151f4?q(_0x2654ef[_0x2e943d(0x181)],_0x2654ef['unitId'],_0x2654ef[_0x2e943d(0x1ea)],_0x1151f4[_0x2e943d(0x17a)],_0x1151f4[_0x2e943d(0x18e)]):!0x1;}};function W(_0x10463a,_0x3abf9c){const _0x16d397=_0x5eace4;let _0x4d6690=_0x10463a[_0x16d397(0x1cc)](_0x17a029),_0x222427=_0x3abf9c?_0x4d6690[_0x16d397(0x1cf)](_0x3abf9c):_0x4d6690[_0x16d397(0x1e9)](_0x56e428[_0x16d397(0x1b7)]);return _0x222427?{'commandService':_0x10463a[_0x16d397(0x1cc)](_0x58c777),'model':_0x10463a[_0x16d397(0x1cc)](H),'previousDocumentData':_0x222427[_0x16d397(0x1d7)](),'unitId':_0x222427[_0x16d397(0x1ce)]()}:null;}function G(_0x51f175){const _0x1b7c9d=_0x5eace4;var _0xb82b52;return(_0xb82b52=_0x51f175[_0x1b7c9d(0x1cc)](_0x129ce4)[_0x1b7c9d(0x193)]())==null?void 0x0:_0xb82b52[0x0];}function Le(_0x34ebcd){const _0x3e947f=_0x5eace4;var _0x5484df;let _0x28ea5b=(_0x5484df=_0x34ebcd[_0x3e947f(0x1cc)](_0x17a029)[_0x3e947f(0x1e9)](_0x56e428[_0x3e947f(0x1b7)]))==null?void 0x0:_0x5484df[_0x3e947f(0x1ce)]();try{return _0x34ebcd[_0x3e947f(0x1cc)](_0x5d6321)['consumeInsertRange'](_0x28ea5b);}catch{return null;}}function Re(_0x909bf6){const _0x56ef80=_0x5eace4;var _0x343599,_0x4a1563,_0x599702;let _0xee8bc3=G(_0x909bf6);if(!_0xee8bc3)return null;let _0x3100b0=_0x909bf6[_0x56ef80(0x1cc)](_0x17a029)[_0x56ef80(0x1e9)](_0x56e428[_0x56ef80(0x1b7)]),_0x33a135=_0x3100b0==null?void 0x0:_0x3100b0[_0x56ef80(0x173)]();return _0x33a135?(_0x343599=_0x31aef0['range']['getParagraphsInRange'](_0xee8bc3,(_0x4a1563=_0x33a135[_0x56ef80(0x1d5)])==null?[]:_0x4a1563,(_0x599702=_0x33a135['dataStream'])==null?'':_0x599702)[0x0])==null?null:_0x343599:null;}function ze(_0x3772e,_0x14bb54){const _0x18966d=_0x5eace4;var _0x56cd57,_0x4d4c1a,_0x115242,_0x903a2e,_0x4a6003,_0x4e507c,_0x1872d5,_0x309322,_0x162368,_0x8b7e17,_0xc9058b,_0x21e74b,_0xc2ca10,_0x1e45de,_0x11c073,_0x5d8fe0,_0x585835,_0x44881b;let _0x2690ad=_0x1b7758[_0x18966d(0x1ac)]();return[K(_0x2690ad,[_0x18966d(0x1c3),'dataStream'],(_0x56cd57=_0x3772e[_0x18966d(0x1c3)])==null?void 0x0:_0x56cd57['dataStream'],(_0x4d4c1a=_0x14bb54[_0x18966d(0x1c3)])==null?void 0x0:_0x4d4c1a[_0x18966d(0x1ec)]),K(_0x2690ad,[_0x18966d(0x1c3),_0x18966d(0x1d5)],(_0x115242=_0x3772e[_0x18966d(0x1c3)])==null?void 0x0:_0x115242[_0x18966d(0x1d5)],(_0x903a2e=_0x14bb54['body'])==null?void 0x0:_0x903a2e[_0x18966d(0x1d5)]),K(_0x2690ad,[_0x18966d(0x1c3),_0x18966d(0x19b)],(_0x4a6003=_0x3772e[_0x18966d(0x1c3)])==null?void 0x0:_0x4a6003[_0x18966d(0x19b)],(_0x4e507c=_0x14bb54[_0x18966d(0x1c3)])==null?void 0x0:_0x4e507c['sectionBreaks']),K(_0x2690ad,[_0x18966d(0x1c3),_0x18966d(0x1a1)],(_0x1872d5=_0x3772e[_0x18966d(0x1c3)])==null?void 0x0:_0x1872d5['textRuns'],(_0x309322=_0x14bb54[_0x18966d(0x1c3)])==null?void 0x0:_0x309322[_0x18966d(0x1a1)]),K(_0x2690ad,['body',_0x18966d(0x1a3)],(_0x162368=_0x3772e[_0x18966d(0x1c3)])==null?void 0x0:_0x162368[_0x18966d(0x1a3)],(_0x8b7e17=_0x14bb54['body'])==null?void 0x0:_0x8b7e17[_0x18966d(0x1a3)]),K(_0x2690ad,[_0x18966d(0x1c3),'customRanges'],(_0xc9058b=_0x3772e[_0x18966d(0x1c3)])==null?void 0x0:_0xc9058b[_0x18966d(0x1d1)],(_0x21e74b=_0x14bb54[_0x18966d(0x1c3)])==null?void 0x0:_0x21e74b['customRanges']),K(_0x2690ad,[_0x18966d(0x1c3),_0x18966d(0x1ed)],(_0xc2ca10=_0x3772e[_0x18966d(0x1c3)])==null?void 0x0:_0xc2ca10[_0x18966d(0x1ed)],(_0x1e45de=_0x14bb54[_0x18966d(0x1c3)])==null?void 0x0:_0x1e45de['customDecorations']),K(_0x2690ad,[_0x18966d(0x1c3),'tables'],(_0x11c073=_0x3772e[_0x18966d(0x1c3)])==null?void 0x0:_0x11c073['tables'],(_0x5d8fe0=_0x14bb54[_0x18966d(0x1c3)])==null?void 0x0:_0x5d8fe0[_0x18966d(0x198)]),K(_0x2690ad,[_0x18966d(0x1c3),_0x18966d(0x1c0)],(_0x585835=_0x3772e[_0x18966d(0x1c3)])==null?void 0x0:_0x585835[_0x18966d(0x1c0)],(_0x44881b=_0x14bb54['body'])==null?void 0x0:_0x44881b[_0x18966d(0x1c0)])]['filter'](Boolean)[_0x18966d(0x1e3)]((_0x175b68,_0x3c33ab)=>_0x1b7758[_0x18966d(0x1b0)](_0x175b68,_0x3c33ab),null);}function K(_0x5dd955,_0x49b155,_0x4916b0,_0x5f43d6){const _0x4e6325=_0x5eace4;return _0x282787['diffValue'](_0x4916b0,_0x5f43d6)?null:_0x5dd955[_0x4e6325(0x18f)](_0x49b155,_0x4916b0,_0x5f43d6);}function q(_0x565309,_0x3ba76e,_0x4d2eb1,_0x1b6ac3,_0x9087d7){const _0x563d45=_0x5eace4;let _0x339b3c=ze(_0x4d2eb1,_0x1b6ac3);return _0x339b3c?!!_0x565309[_0x563d45(0x1bd)](_0x410cd0['id'],{'unitId':_0x3ba76e,'actions':_0x339b3c,'textRanges':[{'startOffset':_0x9087d7,'endOffset':_0x9087d7,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const J=_0x5eace4(0x174);var Be='@univerjs-pro/docs-code',Ve='0.25.0-insiders.20260622-93bd55a';const Y={};function X(_0x49312a,_0x6ad884){return function(_0x163c00,_0x1a33cf){_0x6ad884(_0x163c00,_0x1a33cf,_0x49312a);};}function Z(_0x5c1ab4,_0x483675,_0x2f6059,_0x403ec8){const _0x5e1125=_0x5eace4;var _0x9eb356=arguments[_0x5e1125(0x1da)],_0x27c30a=_0x9eb356<0x3?_0x483675:_0x403ec8===null?_0x403ec8=Object[_0x5e1125(0x1ca)](_0x483675,_0x2f6059):_0x403ec8,_0x235e4a;if(typeof Reflect==_0x5e1125(0x1f0)&&typeof Reflect['decorate']==_0x5e1125(0x189))_0x27c30a=Reflect['decorate'](_0x5c1ab4,_0x483675,_0x2f6059,_0x403ec8);else{for(var _0x9435e0=_0x5c1ab4['length']-0x1;_0x9435e0>=0x0;_0x9435e0--)(_0x235e4a=_0x5c1ab4[_0x9435e0])&&(_0x27c30a=(_0x9eb356<0x3?_0x235e4a(_0x27c30a):_0x9eb356>0x3?_0x235e4a(_0x483675,_0x2f6059,_0x27c30a):_0x235e4a(_0x483675,_0x2f6059))||_0x27c30a);}return _0x9eb356>0x3&&_0x27c30a&&Object[_0x5e1125(0x191)](_0x483675,_0x2f6059,_0x27c30a),_0x27c30a;}let Q=class extends _0x51061b{constructor(_0x4c0212,_0x21c058){const _0x28b9d1=_0x5eace4;super(),this['_resourceManagerService']=_0x4c0212,this[_0x28b9d1(0x1de)]=_0x21c058,this['_initResource']();}[_0x5eace4(0x185)](){const _0x57542c=_0x5eace4;this[_0x57542c(0x18b)](this[_0x57542c(0x1c8)][_0x57542c(0x1a5)]({'pluginName':J,'businesses':[_0x56e428[_0x57542c(0x1b7)]],'toJson':_0x340ec2=>JSON[_0x57542c(0x1dc)](this[_0x57542c(0x1de)][_0x57542c(0x190)](_0x340ec2)),'parseJson':_0x504839=>w(JSON[_0x57542c(0x1a2)](_0x504839)),'onLoad':(_0x38bb71,_0x4b6b34)=>this[_0x57542c(0x1de)]['deserialize'](_0x38bb71,_0x4b6b34),'onUnLoad':_0x1ad29b=>this[_0x57542c(0x1de)][_0x57542c(0x1dd)](_0x1ad29b)}));}};Q=Z([X(0x0,_0x2879eb),X(0x1,_0x3524d0(H))],Q);let $=class extends _0x5079f1{constructor(_0x4a3f85=Y,_0x548a01,_0x560f18,_0x2db80d){const _0xd25725=_0x5eace4;super(),this['_config']=_0x4a3f85,this[_0xd25725(0x18a)]=_0x548a01,this[_0xd25725(0x1e6)]=_0x560f18,this[_0xd25725(0x18d)]=_0x2db80d;let {..._0x144f31}=_0x1ce801({},Y,this['_config']);this[_0xd25725(0x18d)][_0xd25725(0x179)]('docs-code.config',_0x144f31);}[_0x5eace4(0x1d3)](){const _0x18d9f8=_0x5eace4;this[_0x18d9f8(0x18a)][_0x18d9f8(0x1f1)]([H]),this[_0x18d9f8(0x18a)][_0x18d9f8(0x1f1)]([Q]),this['_injector'][_0x18d9f8(0x1cc)](H),this[_0x18d9f8(0x18a)]['get'](Q),[U,Me,Pe,Fe,Ie,Ne][_0x18d9f8(0x1eb)](_0x40965d=>this[_0x18d9f8(0x18b)](this[_0x18d9f8(0x1e6)][_0x18d9f8(0x1ee)](_0x40965d)));}};V($,_0x5eace4(0x1aa),J),V($,'packageName',Be),V($,_0x5eace4(0x1d0),Ve),V($,_0x5eace4(0x1d9),_0x56e428[_0x5eace4(0x1b7)]),$=Z([_0xa6c8c4(_0x221e19,_0x72a19),X(0x1,_0x3524d0(_0x1470b9)),X(0x2,_0x58c777),X(0x3,_0x2d86d1)],$);export{S as DEFAULT_CODE_CONFIG,J as DOCS_CODE_PLUGIN,Ie as DocsCodeCancelEmptyParagraphCommand,Ne as DocsCodeConsumeBoundaryDeleteCommand,Fe as DocsCodeExitCommand,Me as DocsCodeInsertBelowCommand,U as DocsCodeInsertCommand,H as DocsCodeModel,Pe as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,ue as buildCancelEmptyCodeParagraphActions,le as buildExitCodeActions,ae as buildInsertCodeActions,ce as buildUpdateCodeActions,fe as findCodeRangeAtOffset,pe as isCodeBoundaryDelete,C as normalizeDocsCodeConfig};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x1fe0f=_0x362d;(function(_0x5daaa4,_0x3d9e62){var _0x421855=_0x362d,_0x4b2aae=_0x5daaa4();while(!![]){try{var _0xb9fbe5=-parseInt(_0x421855(0x157))/0x1*(parseInt(_0x421855(0x17a))/0x2)+parseInt(_0x421855(0x156))/0x3*(-parseInt(_0x421855(0x181))/0x4)+parseInt(_0x421855(0x159))/0x5*(-parseInt(_0x421855(0x17f))/0x6)+parseInt(_0x421855(0x179))/0x7*(parseInt(_0x421855(0x15a))/0x8)+parseInt(_0x421855(0x14d))/0x9*(-parseInt(_0x421855(0x186))/0xa)+-parseInt(_0x421855(0x192))/0xb+-parseInt(_0x421855(0x184))/0xc*(-parseInt(_0x421855(0x16d))/0xd);if(_0xb9fbe5===_0x3d9e62)break;else _0x4b2aae['push'](_0x4b2aae['shift']());}catch(_0x1a1ade){_0x4b2aae['push'](_0x4b2aae['shift']());}}}(_0x4046,0xa50d4));import{DocsCodeCancelEmptyParagraphCommand as _0x139ed0,DocsCodeExitCommand as _0x2802ac,DocsCodeInsertCommand as _0x467d58,DocsCodeModel as _0x19aebd,DocsCodeUpdateCommand as _0x518eac,normalizeDocsCodeConfig as _0x44169}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x38c0cd,DocumentBlockRangeType as _0x2440a5,ICommandService as _0x8fdc0e,Inject as _0x4fca7f,Injector as _0x46ca51,generateRandomId as _0x2fc7b2}from'@univerjs/core';import{FDocument as _0x577ce2}from'@univerjs/docs/facade';function p(_0x386977){'@babel/helpers - typeof';var _0x5aacd5=_0x362d;return p=typeof Symbol==_0x5aacd5(0x172)&&typeof Symbol[_0x5aacd5(0x151)]=='symbol'?function(_0x44c099){return typeof _0x44c099;}:function(_0x35ff82){var _0x5d1b31=_0x5aacd5;return _0x35ff82&&typeof Symbol==_0x5d1b31(0x172)&&_0x35ff82[_0x5d1b31(0x15b)]===Symbol&&_0x35ff82!==Symbol[_0x5d1b31(0x187)]?_0x5d1b31(0x14c):typeof _0x35ff82;},p(_0x386977);}function _0x4046(){var _0x21af0f=['getId','get','371112BdYhXb','55486oXsfJE','endIndex','dataStream','_getBlockRanges','createInstance','24714dFExjU','getKey','1816Jpryqz','getText','getConfig','49941084Tgerjp','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','20WBeMgJ','prototype','default','some','exit','getType','describe','length','getCodes','_injector','cancelEmptyCodeParagraph','_getDocumentData','2575089GbuKtO','exitCode','includes','syncExecuteCommand','startIndex','extend','slice','getRange','call','symbol','6081741YNawKH','findCodeByText','config','_document','iterator','object','findCodes','BLOCK_START','decorate','762nhhKuN','22nHwEPF','getCodeConfig','1490xnOgLl','8JwHZPu','constructor','_unitId','updateConfig','_blockId','getCode','paragraph','save','SECTION_BREAK','blockType','map','from','defineProperty','filter','replace','cancelEmptyParagraph','CODE','_getBlockRange','_createFDocumentCode','13yYnjuu','BLOCK_END','body','insertCode','blockId','function','getOwnPropertyDescriptor','string','blockRanges','text'];_0x4046=function(){return _0x21af0f;};return _0x4046();}function m(_0x521a8b,_0x560133){var _0x167c33=_0x362d;if(p(_0x521a8b)!='object'||!_0x521a8b)return _0x521a8b;var _0x2c3998=_0x521a8b[Symbol['toPrimitive']];if(_0x2c3998!==void 0x0){var _0x90fa0a=_0x2c3998[_0x167c33(0x14b)](_0x521a8b,_0x560133||_0x167c33(0x188));if(p(_0x90fa0a)!=_0x167c33(0x152))return _0x90fa0a;throw TypeError(_0x167c33(0x185));}return(_0x560133===_0x167c33(0x174)?String:Number)(_0x521a8b);}function h(_0x5e1c1f){var _0x37274c=_0x362d,_0x8cb750=m(_0x5e1c1f,_0x37274c(0x174));return p(_0x8cb750)==_0x37274c(0x14c)?_0x8cb750:_0x8cb750+'';}function g(_0x3d6bbe,_0x47ceaf,_0x27d6b2){var _0x6580fd=_0x362d;return(_0x47ceaf=h(_0x47ceaf))in _0x3d6bbe?Object[_0x6580fd(0x166)](_0x3d6bbe,_0x47ceaf,{'value':_0x27d6b2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3d6bbe[_0x47ceaf]=_0x27d6b2,_0x3d6bbe;}function _(_0x381e1f,_0x59a760){return function(_0x35bfd1,_0x26d71d){_0x59a760(_0x35bfd1,_0x26d71d,_0x381e1f);};}function v(_0x25bb73,_0x348af2,_0x521627,_0x5c77f8){var _0x1a280e=_0x362d,_0x4c8a62=arguments[_0x1a280e(0x18d)],_0x484cea=_0x4c8a62<0x3?_0x348af2:_0x5c77f8===null?_0x5c77f8=Object[_0x1a280e(0x173)](_0x348af2,_0x521627):_0x5c77f8,_0x4b2f94;if(typeof Reflect==_0x1a280e(0x152)&&typeof Reflect[_0x1a280e(0x155)]==_0x1a280e(0x172))_0x484cea=Reflect[_0x1a280e(0x155)](_0x25bb73,_0x348af2,_0x521627,_0x5c77f8);else{for(var _0x26aeeb=_0x25bb73[_0x1a280e(0x18d)]-0x1;_0x26aeeb>=0x0;_0x26aeeb--)(_0x4b2f94=_0x25bb73[_0x26aeeb])&&(_0x484cea=(_0x4c8a62<0x3?_0x4b2f94(_0x484cea):_0x4c8a62>0x3?_0x4b2f94(_0x348af2,_0x521627,_0x484cea):_0x4b2f94(_0x348af2,_0x521627))||_0x484cea);}return _0x4c8a62>0x3&&_0x484cea&&Object[_0x1a280e(0x166)](_0x348af2,_0x521627,_0x484cea),_0x484cea;}let y=class{constructor(_0x4bfab0,_0x35fee8,_0x2b9add){var _0x38cc35=_0x362d;this[_0x38cc35(0x150)]=_0x4bfab0,this[_0x38cc35(0x15e)]=_0x35fee8,this[_0x38cc35(0x18f)]=_0x2b9add,g(this,_0x38cc35(0x15c),void 0x0),this[_0x38cc35(0x15c)]=this[_0x38cc35(0x150)][_0x38cc35(0x177)]();}[_0x1fe0f(0x177)](){return this['_blockId'];}[_0x1fe0f(0x14a)](){var _0x47faeb=_0x1fe0f;let _0x5c3efa=this[_0x47faeb(0x16b)]();return _0x5c3efa?{'blockId':_0x5c3efa[_0x47faeb(0x171)],'endIndex':_0x5c3efa['endIndex'],'startIndex':_0x5c3efa['startIndex']}:null;}[_0x1fe0f(0x182)](){var _0x48aa15=_0x1fe0f,_0x2bec46;let _0x2ba2b0=this[_0x48aa15(0x16b)](),_0x3ad334=(_0x2bec46=this[_0x48aa15(0x191)]()['body'])==null?void 0x0:_0x2bec46[_0x48aa15(0x17c)];return!_0x2ba2b0||!_0x3ad334?'':b(_0x3ad334[_0x48aa15(0x149)](_0x2ba2b0[_0x48aa15(0x147)]+0x1,_0x2ba2b0[_0x48aa15(0x17b)]));}[_0x1fe0f(0x18c)](){var _0x213e77=_0x1fe0f;let _0x36d07c=this['getRange']();return _0x36d07c?{..._0x36d07c,'config':this[_0x213e77(0x183)](),'text':this[_0x213e77(0x182)](),'type':_0x2440a5['CODE']}:null;}['getConfig'](){var _0x3b4b37=_0x1fe0f;return _0x44169(this[_0x3b4b37(0x18f)][_0x3b4b37(0x178)](_0x19aebd)[_0x3b4b37(0x158)](this[_0x3b4b37(0x15c)],this[_0x3b4b37(0x15e)]));}[_0x1fe0f(0x15d)](_0x16e98a){var _0x8ba4f9=_0x1fe0f;return this[_0x8ba4f9(0x18f)][_0x8ba4f9(0x178)](_0x8fdc0e)[_0x8ba4f9(0x195)](_0x518eac['id'],{'blockId':this['_blockId'],'config':_0x16e98a[_0x8ba4f9(0x14f)],'unitId':this['_unitId']});}[_0x1fe0f(0x18a)](_0x13b067){var _0x29d7d2=_0x1fe0f;return this['_injector'][_0x29d7d2(0x178)](_0x8fdc0e)[_0x29d7d2(0x195)](_0x2802ac['id'],{'cursorOffset':_0x13b067,'unitId':this['_unitId']});}[_0x1fe0f(0x169)](_0x86e50f={}){var _0x136857=_0x1fe0f;return this[_0x136857(0x18f)][_0x136857(0x178)](_0x8fdc0e)[_0x136857(0x195)](_0x139ed0['id'],{..._0x86e50f,'unitId':this['_unitId']});}[_0x1fe0f(0x191)](){var _0x4d691e=_0x1fe0f;return this[_0x4d691e(0x150)][_0x4d691e(0x161)]();}[_0x1fe0f(0x16b)](){var _0x2bae34=_0x1fe0f,_0x382efe;let _0x1c0341=(_0x382efe=this[_0x2bae34(0x191)]()[_0x2bae34(0x16f)])==null||(_0x382efe=_0x382efe['blockRanges'])==null?void 0x0:_0x382efe['find'](_0x229f99=>_0x229f99[_0x2bae34(0x171)]===this[_0x2bae34(0x15e)]&&_0x229f99['blockType']===_0x2440a5[_0x2bae34(0x16a)]);return _0x1c0341==null?null:_0x1c0341;}};y=v([_(0x2,_0x4fca7f(_0x46ca51))],y);function b(_0x3d94fa){var _0x37645b=_0x1fe0f;return Array[_0x37645b(0x165)](_0x3d94fa)['map'](_0x1c99f4=>_0x1c99f4===_0x38c0cd['PARAGRAPH']?'\x0a':_0x1c99f4)[_0x37645b(0x167)](_0x5a2fff=>_0x5a2fff!==_0x38c0cd[_0x37645b(0x154)]&&_0x5a2fff!==_0x38c0cd[_0x37645b(0x16e)]&&_0x5a2fff!==_0x38c0cd[_0x37645b(0x162)])['join']('')[_0x37645b(0x168)](/\n$/,'');}var x=class extends _0x577ce2{[_0x1fe0f(0x18e)](){var _0x4be329=_0x1fe0f;return this[_0x4be329(0x17d)]()['filter'](_0x539a27=>_0x539a27[_0x4be329(0x163)]===_0x2440a5['CODE'])[_0x4be329(0x164)](_0x22021b=>this[_0x4be329(0x16c)](_0x22021b[_0x4be329(0x171)]));}[_0x1fe0f(0x15f)](_0x46c091){var _0xb4fdae=_0x1fe0f;return this[_0xb4fdae(0x17d)]()[_0xb4fdae(0x189)](_0x3e7156=>_0x3e7156[_0xb4fdae(0x171)]===_0x46c091&&_0x3e7156[_0xb4fdae(0x163)]===_0x2440a5[_0xb4fdae(0x16a)])?this[_0xb4fdae(0x16c)](_0x46c091):null;}['getCodeAt'](_0x358619){var _0x1c85ef=_0x1fe0f;let _0x350fb1=this[_0x1c85ef(0x17d)]()['find'](_0x20b6b9=>_0x20b6b9['blockType']===_0x2440a5[_0x1c85ef(0x16a)]&&_0x20b6b9['startIndex']<=_0x358619&&_0x358619<=_0x20b6b9['endIndex']);return _0x350fb1?this[_0x1c85ef(0x16c)](_0x350fb1[_0x1c85ef(0x171)]):null;}[_0x1fe0f(0x14e)](_0x130099){var _0x8b28a6=_0x1fe0f,_0xcdd755;return(_0xcdd755=this[_0x8b28a6(0x153)](_0x130099)[0x0])==null?null:_0xcdd755;}[_0x1fe0f(0x153)](_0x517786){var _0x3885d8=_0x1fe0f;let _0xad8ef0=typeof _0x517786==_0x3885d8(0x174)?{'text':_0x517786}:_0x517786;return this[_0x3885d8(0x18e)]()[_0x3885d8(0x167)](_0xe756e4=>!(_0xad8ef0[_0x3885d8(0x171)]&&_0xe756e4['getId']()!==_0xad8ef0[_0x3885d8(0x171)]||_0xad8ef0[_0x3885d8(0x176)]&&!_0xe756e4[_0x3885d8(0x182)]()[_0x3885d8(0x194)](_0xad8ef0[_0x3885d8(0x176)])));}[_0x1fe0f(0x170)](_0x59784c={},_0x349b37={}){var _0x3764ac=_0x1fe0f,_0x599372;let _0x1458dc=this[_0x3764ac(0x18f)][_0x3764ac(0x178)](_0x8fdc0e),_0x277a32=S(_0x59784c)?{..._0x349b37,...C(_0x59784c)}:_0x59784c,_0x521a9d=(_0x599372=_0x277a32['blockId'])==null?_0x2fc7b2(0x6):_0x599372;return _0x1458dc[_0x3764ac(0x195)](_0x467d58['id'],{..._0x277a32,'blockId':_0x521a9d,'unitId':this[_0x3764ac(0x177)]()})?this[_0x3764ac(0x16c)](_0x521a9d):null;}[_0x1fe0f(0x193)](_0x56e8f5){var _0x454348=_0x1fe0f;return this[_0x454348(0x18f)][_0x454348(0x178)](_0x8fdc0e)[_0x454348(0x195)](_0x2802ac['id'],{'cursorOffset':_0x56e8f5,'unitId':this[_0x454348(0x177)]()});}[_0x1fe0f(0x190)](_0x322fc2={}){var _0x1bf49f=_0x1fe0f;return this[_0x1bf49f(0x18f)][_0x1bf49f(0x178)](_0x8fdc0e)[_0x1bf49f(0x195)](_0x139ed0['id'],{..._0x322fc2,'unitId':this[_0x1bf49f(0x177)]()});}[_0x1fe0f(0x17d)](){var _0x182f4a=_0x1fe0f,_0x4b1f35,_0x2320f7;return(_0x4b1f35=(_0x2320f7=this[_0x182f4a(0x161)]()[_0x182f4a(0x16f)])==null?void 0x0:_0x2320f7[_0x182f4a(0x175)])==null?[]:_0x4b1f35;}[_0x1fe0f(0x16c)](_0x4d188e){var _0x23af5d=_0x1fe0f;return this[_0x23af5d(0x18f)][_0x23af5d(0x17e)](y,this,_0x4d188e);}};function _0x362d(_0x13ce63,_0xe3b7ab){_0x13ce63=_0x13ce63-0x147;var _0x40461c=_0x4046();var _0x362d1d=_0x40461c[_0x13ce63];return _0x362d1d;}function S(_0x32dec9){var _0x3b4347=_0x1fe0f;return typeof _0x32dec9=='object'&&!!_0x32dec9&&typeof _0x32dec9[_0x3b4347(0x180)]=='function'&&typeof _0x32dec9[_0x3b4347(0x14a)]==_0x3b4347(0x172)&&typeof _0x32dec9['getType']==_0x3b4347(0x172)&&_0x32dec9[_0x3b4347(0x18b)]()===_0x3b4347(0x160);}function C(_0x2b30dc){return _0x2b30dc['getRange']();}_0x577ce2[_0x1fe0f(0x148)](x);export{y as FDocumentCode};
|
|
1
|
+
function _0x4671(_0xccd1e7,_0xd80446){_0xccd1e7=_0xccd1e7-0x84;var _0x3986fc=_0x3986();var _0x4671f4=_0x3986fc[_0xccd1e7];return _0x4671f4;}var _0x1824cd=_0x4671;function _0x3986(){var _0x500265=['_getBlockRanges','getCode','_blockId','replace','_getBlockRange','getType','4264696mCusJD','includes','getText','some','extend','paragraph','getCodeConfig','getKey','blockType','updateConfig','createInstance','1556ZvGZak','28cQcGfL','body','7148601FcDefD','defineProperty','6730570BdCAVu','slice','endIndex','default','join','exit','getCodes','map','prototype','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','function','_document','blockId','_injector','getRange','5DLCUQo','_unitId','get','477435iLlIfQ','dataStream','_createFDocumentCode','insertCode','symbol','string','call','getId','findCodeByText','syncExecuteCommand','cancelEmptyCodeParagraph','save','_getDocumentData','688tniqQe','CODE','filter','toPrimitive','SECTION_BREAK','getConfig','text','exitCode','findCodes','getCodeAt','config','constructor','decorate','100904GyyHmg','find','startIndex','from','blockRanges','1184562GziTwA','object','describe'];_0x3986=function(){return _0x500265;};return _0x3986();}(function(_0x5e3789,_0x4b1390){var _0x40b9cd=_0x4671,_0x4b9536=_0x5e3789();while(!![]){try{var _0x46c91a=-parseInt(_0x40b9cd(0x89))/0x1*(parseInt(_0x40b9cd(0xaf))/0x2)+-parseInt(_0x40b9cd(0xc6))/0x3+parseInt(_0x40b9cd(0xa4))/0x4+-parseInt(_0x40b9cd(0xc3))/0x5*(-parseInt(_0x40b9cd(0x9b))/0x6)+-parseInt(_0x40b9cd(0xb0))/0x7*(parseInt(_0x40b9cd(0x96))/0x8)+parseInt(_0x40b9cd(0xb2))/0x9+-parseInt(_0x40b9cd(0xb4))/0xa;if(_0x46c91a===_0x4b1390)break;else _0x4b9536['push'](_0x4b9536['shift']());}catch(_0x4e37a0){_0x4b9536['push'](_0x4b9536['shift']());}}}(_0x3986,0x9c3e4));import{DocsCodeCancelEmptyParagraphCommand as _0x171536,DocsCodeExitCommand as _0x581040,DocsCodeInsertCommand as _0x1952af,DocsCodeModel as _0x19c7e3,DocsCodeUpdateCommand as _0xe92d90,normalizeDocsCodeConfig as _0x1a0d9e}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x1281a0,DocumentBlockRangeType as _0x5189f8,ICommandService as _0x5c9fe9,Inject as _0x4f5327,Injector as _0x285566,generateRandomId as _0x5bac66}from'@univerjs/core';import{FDocument as _0x570bf7}from'@univerjs/docs/facade';function p(_0x151651){'@babel/helpers - typeof';var _0x239ed8=_0x4671;return p=typeof Symbol==_0x239ed8(0xbe)&&typeof Symbol['iterator']==_0x239ed8(0xca)?function(_0x2012d8){return typeof _0x2012d8;}:function(_0x4a8bae){var _0x454ced=_0x239ed8;return _0x4a8bae&&typeof Symbol==_0x454ced(0xbe)&&_0x4a8bae[_0x454ced(0x94)]===Symbol&&_0x4a8bae!==Symbol[_0x454ced(0xbc)]?_0x454ced(0xca):typeof _0x4a8bae;},p(_0x151651);}function m(_0x3c1d9c,_0x4e380d){var _0xb75e9=_0x4671;if(p(_0x3c1d9c)!=_0xb75e9(0x9c)||!_0x3c1d9c)return _0x3c1d9c;var _0x4a1d8a=_0x3c1d9c[Symbol[_0xb75e9(0x8c)]];if(_0x4a1d8a!==void 0x0){var _0x2e143d=_0x4a1d8a[_0xb75e9(0xcc)](_0x3c1d9c,_0x4e380d||_0xb75e9(0xb7));if(p(_0x2e143d)!='object')return _0x2e143d;throw TypeError(_0xb75e9(0xbd));}return(_0x4e380d==='string'?String:Number)(_0x3c1d9c);}function h(_0x12d43a){var _0x3ea3e6=_0x4671,_0x1971d3=m(_0x12d43a,_0x3ea3e6(0xcb));return p(_0x1971d3)==_0x3ea3e6(0xca)?_0x1971d3:_0x1971d3+'';}function g(_0x1e4bcf,_0x31b635,_0x1433f1){var _0x317a72=_0x4671;return(_0x31b635=h(_0x31b635))in _0x1e4bcf?Object[_0x317a72(0xb3)](_0x1e4bcf,_0x31b635,{'value':_0x1433f1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1e4bcf[_0x31b635]=_0x1433f1,_0x1e4bcf;}function _(_0x466e84,_0x3028af){return function(_0x1fcb97,_0x8843b0){_0x3028af(_0x1fcb97,_0x8843b0,_0x466e84);};}function v(_0x4046cc,_0x515831,_0xbf1d9e,_0x1e90cb){var _0x1b01ce=_0x4671,_0x31341a=arguments['length'],_0x12327d=_0x31341a<0x3?_0x515831:_0x1e90cb===null?_0x1e90cb=Object['getOwnPropertyDescriptor'](_0x515831,_0xbf1d9e):_0x1e90cb,_0x54194a;if(typeof Reflect=='object'&&typeof Reflect[_0x1b01ce(0x95)]==_0x1b01ce(0xbe))_0x12327d=Reflect[_0x1b01ce(0x95)](_0x4046cc,_0x515831,_0xbf1d9e,_0x1e90cb);else{for(var _0x3966cd=_0x4046cc['length']-0x1;_0x3966cd>=0x0;_0x3966cd--)(_0x54194a=_0x4046cc[_0x3966cd])&&(_0x12327d=(_0x31341a<0x3?_0x54194a(_0x12327d):_0x31341a>0x3?_0x54194a(_0x515831,_0xbf1d9e,_0x12327d):_0x54194a(_0x515831,_0xbf1d9e))||_0x12327d);}return _0x31341a>0x3&&_0x12327d&&Object[_0x1b01ce(0xb3)](_0x515831,_0xbf1d9e,_0x12327d),_0x12327d;}let y=class{constructor(_0x5e0808,_0x4f1d64,_0x4f221f){var _0x44eac1=_0x4671;this[_0x44eac1(0xbf)]=_0x5e0808,this[_0x44eac1(0xa0)]=_0x4f1d64,this[_0x44eac1(0xc1)]=_0x4f221f,g(this,_0x44eac1(0xc4),void 0x0),this[_0x44eac1(0xc4)]=this[_0x44eac1(0xbf)][_0x44eac1(0xcd)]();}['getId'](){var _0x53fcd9=_0x4671;return this[_0x53fcd9(0xa0)];}[_0x1824cd(0xc2)](){var _0x436d8d=_0x1824cd;let _0x4259d3=this[_0x436d8d(0xa2)]();return _0x4259d3?{'blockId':_0x4259d3['blockId'],'endIndex':_0x4259d3[_0x436d8d(0xb6)],'startIndex':_0x4259d3['startIndex']}:null;}[_0x1824cd(0xa6)](){var _0x1886ba=_0x1824cd,_0xe342;let _0x5bd7ac=this[_0x1886ba(0xa2)](),_0x322cbe=(_0xe342=this[_0x1886ba(0x88)]()[_0x1886ba(0xb1)])==null?void 0x0:_0xe342[_0x1886ba(0xc7)];return!_0x5bd7ac||!_0x322cbe?'':b(_0x322cbe[_0x1886ba(0xb5)](_0x5bd7ac['startIndex']+0x1,_0x5bd7ac[_0x1886ba(0xb6)]));}[_0x1824cd(0x9d)](){var _0x15e7ea=_0x1824cd;let _0xaad869=this['getRange']();return _0xaad869?{..._0xaad869,'config':this[_0x15e7ea(0x8e)](),'text':this[_0x15e7ea(0xa6)](),'type':_0x5189f8[_0x15e7ea(0x8a)]}:null;}[_0x1824cd(0x8e)](){var _0x11004e=_0x1824cd;return _0x1a0d9e(this[_0x11004e(0xc1)]['get'](_0x19c7e3)[_0x11004e(0xaa)](this['_unitId'],this[_0x11004e(0xa0)]));}[_0x1824cd(0xad)](_0x28f169){var _0x533a2a=_0x1824cd;return this[_0x533a2a(0xc1)][_0x533a2a(0xc5)](_0x5c9fe9)['syncExecuteCommand'](_0xe92d90['id'],{'blockId':this[_0x533a2a(0xa0)],'config':_0x28f169[_0x533a2a(0x93)],'unitId':this[_0x533a2a(0xc4)]});}[_0x1824cd(0xb9)](_0x1be6c1){var _0xcdec39=_0x1824cd;return this[_0xcdec39(0xc1)][_0xcdec39(0xc5)](_0x5c9fe9)[_0xcdec39(0x85)](_0x581040['id'],{'cursorOffset':_0x1be6c1,'unitId':this['_unitId']});}['cancelEmptyParagraph'](_0x29c428={}){var _0x2f4351=_0x1824cd;return this['_injector']['get'](_0x5c9fe9)[_0x2f4351(0x85)](_0x171536['id'],{..._0x29c428,'unitId':this['_unitId']});}[_0x1824cd(0x88)](){var _0x40ff94=_0x1824cd;return this['_document'][_0x40ff94(0x87)]();}[_0x1824cd(0xa2)](){var _0x3c6721=_0x1824cd,_0x4d855d;let _0x599720=(_0x4d855d=this['_getDocumentData']()[_0x3c6721(0xb1)])==null||(_0x4d855d=_0x4d855d['blockRanges'])==null?void 0x0:_0x4d855d[_0x3c6721(0x97)](_0x5cda64=>_0x5cda64[_0x3c6721(0xc0)]===this[_0x3c6721(0xa0)]&&_0x5cda64[_0x3c6721(0xac)]===_0x5189f8['CODE']);return _0x599720==null?null:_0x599720;}};y=v([_(0x2,_0x4f5327(_0x285566))],y);function b(_0x216c3a){var _0x5df21a=_0x1824cd;return Array[_0x5df21a(0x99)](_0x216c3a)['map'](_0x9a0cc8=>_0x9a0cc8===_0x1281a0['PARAGRAPH']?'\x0a':_0x9a0cc8)[_0x5df21a(0x8b)](_0x2a6839=>_0x2a6839!==_0x1281a0['BLOCK_START']&&_0x2a6839!==_0x1281a0['BLOCK_END']&&_0x2a6839!==_0x1281a0[_0x5df21a(0x8d)])[_0x5df21a(0xb8)]('')[_0x5df21a(0xa1)](/\n$/,'');}var x=class extends _0x570bf7{['getCodes'](){var _0x3701fe=_0x1824cd;return this[_0x3701fe(0x9e)]()[_0x3701fe(0x8b)](_0x80551f=>_0x80551f[_0x3701fe(0xac)]===_0x5189f8[_0x3701fe(0x8a)])[_0x3701fe(0xbb)](_0x410a0b=>this[_0x3701fe(0xc8)](_0x410a0b[_0x3701fe(0xc0)]));}[_0x1824cd(0x9f)](_0x7601e0){var _0x34f132=_0x1824cd;return this['_getBlockRanges']()[_0x34f132(0xa7)](_0x28cc6f=>_0x28cc6f[_0x34f132(0xc0)]===_0x7601e0&&_0x28cc6f['blockType']===_0x5189f8['CODE'])?this[_0x34f132(0xc8)](_0x7601e0):null;}[_0x1824cd(0x92)](_0x444869){var _0x225f57=_0x1824cd;let _0x1486f6=this['_getBlockRanges']()[_0x225f57(0x97)](_0x3454cc=>_0x3454cc['blockType']===_0x5189f8[_0x225f57(0x8a)]&&_0x3454cc[_0x225f57(0x98)]<=_0x444869&&_0x444869<=_0x3454cc['endIndex']);return _0x1486f6?this[_0x225f57(0xc8)](_0x1486f6[_0x225f57(0xc0)]):null;}[_0x1824cd(0x84)](_0x3ae8a7){var _0x4a0330;return(_0x4a0330=this['findCodes'](_0x3ae8a7)[0x0])==null?null:_0x4a0330;}[_0x1824cd(0x91)](_0xca6323){var _0x8bdaf2=_0x1824cd;let _0x8ce507=typeof _0xca6323==_0x8bdaf2(0xcb)?{'text':_0xca6323}:_0xca6323;return this[_0x8bdaf2(0xba)]()[_0x8bdaf2(0x8b)](_0x3e5c10=>!(_0x8ce507[_0x8bdaf2(0xc0)]&&_0x3e5c10[_0x8bdaf2(0xcd)]()!==_0x8ce507[_0x8bdaf2(0xc0)]||_0x8ce507['text']&&!_0x3e5c10[_0x8bdaf2(0xa6)]()[_0x8bdaf2(0xa5)](_0x8ce507[_0x8bdaf2(0x8f)])));}[_0x1824cd(0xc9)](_0xedfb41={},_0x438bb4={}){var _0x14a20a=_0x1824cd,_0x50a948;let _0x5ba950=this[_0x14a20a(0xc1)][_0x14a20a(0xc5)](_0x5c9fe9),_0x15f8d3=S(_0xedfb41)?{..._0x438bb4,...C(_0xedfb41)}:_0xedfb41,_0x38baf8=(_0x50a948=_0x15f8d3[_0x14a20a(0xc0)])==null?_0x5bac66(0x6):_0x50a948;return _0x5ba950['syncExecuteCommand'](_0x1952af['id'],{..._0x15f8d3,'blockId':_0x38baf8,'unitId':this[_0x14a20a(0xcd)]()})?this[_0x14a20a(0xc8)](_0x38baf8):null;}[_0x1824cd(0x90)](_0x13aadf){var _0x3781c4=_0x1824cd;return this[_0x3781c4(0xc1)][_0x3781c4(0xc5)](_0x5c9fe9)[_0x3781c4(0x85)](_0x581040['id'],{'cursorOffset':_0x13aadf,'unitId':this['getId']()});}[_0x1824cd(0x86)](_0x14adf6={}){var _0x3efac9=_0x1824cd;return this[_0x3efac9(0xc1)][_0x3efac9(0xc5)](_0x5c9fe9)['syncExecuteCommand'](_0x171536['id'],{..._0x14adf6,'unitId':this[_0x3efac9(0xcd)]()});}[_0x1824cd(0x9e)](){var _0x1da683=_0x1824cd,_0x50eb20,_0x5da9c0;return(_0x50eb20=(_0x5da9c0=this[_0x1da683(0x87)]()[_0x1da683(0xb1)])==null?void 0x0:_0x5da9c0[_0x1da683(0x9a)])==null?[]:_0x50eb20;}[_0x1824cd(0xc8)](_0x29aa03){var _0x33bb22=_0x1824cd;return this['_injector'][_0x33bb22(0xae)](y,this,_0x29aa03);}};function S(_0xfadf99){var _0x492b5b=_0x1824cd;return typeof _0xfadf99==_0x492b5b(0x9c)&&!!_0xfadf99&&typeof _0xfadf99[_0x492b5b(0xab)]=='function'&&typeof _0xfadf99['getRange']==_0x492b5b(0xbe)&&typeof _0xfadf99[_0x492b5b(0xa3)]=='function'&&_0xfadf99[_0x492b5b(0xa3)]()===_0x492b5b(0xa9);}function C(_0x4ed4e3){var _0x14afe5=_0x1824cd;return _0x4ed4e3[_0x14afe5(0xc2)]();}_0x570bf7[_0x1824cd(0xa8)](x);export{y as FDocumentCode};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x573451=_0x5b77;(function(_0x25e252,_0x1a85f6){const _0x2232ff=_0x5b77,_0x2fd709=_0x25e252();while(!![]){try{const _0x29595d=-parseInt(_0x2232ff(0xd4))/0x1*(-parseInt(_0x2232ff(0x100))/0x2)+parseInt(_0x2232ff(0xd0))/0x3*(-parseInt(_0x2232ff(0x8b))/0x4)+parseInt(_0x2232ff(0xf7))/0x5*(parseInt(_0x2232ff(0xa4))/0x6)+-parseInt(_0x2232ff(0xdb))/0x7+-parseInt(_0x2232ff(0xe1))/0x8+parseInt(_0x2232ff(0xda))/0x9*(parseInt(_0x2232ff(0xe9))/0xa)+parseInt(_0x2232ff(0x105))/0xb;if(_0x29595d===_0x1a85f6)break;else _0x2fd709['push'](_0x2fd709['shift']());}catch(_0x391e60){_0x2fd709['push'](_0x2fd709['shift']());}}}(_0x549c,0xe2e73));import{BuildTextUtils as _0x55168e,CommandType as _0x351439,DataStreamTreeTokenType as _0x44840e,DependentOn as _0x62210c,Disposable as _0x31b9f9,DocumentBlockRangeType as _0xbe313d,ICommandService as _0x9902cc,IConfigService as _0x34c159,IResourceManagerService as _0x19351f,IUniverInstanceService as _0x430140,Inject as _0x51ccf3,Injector as _0x31cf9d,JSONX as _0xbc2f76,Plugin as _0x233ba5,Tools as _0x223860,UniverInstanceType as _0x4a473f,createParagraphId as _0x109b3b,generateRandomId as _0x12c824,merge as _0x50d7aa}from'@univerjs/core';import{DocContentInsertService as _0x5b79f4,DocSelectionManagerService as _0x280038,RichTextEditingMutation as _0x24f4de,UniverDocsPlugin as _0xcb8284}from'@univerjs/docs';import{Subject as _0x188f5e}from'rxjs';import{UniverLicensePlugin as _0x1eeb83}from'@univerjs-pro/license';const S={'language':_0x573451(0x98),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function C(_0x58463a){return{...S,..._0x58463a};}function w(_0x526f91){const _0x461fa9=_0x573451;var _0x7d7041;let _0x496a70=(_0x7d7041=_0x526f91==null?void 0x0:_0x526f91[_0x461fa9(0xf5)])==null?{}:_0x7d7041;return{'codes':Object[_0x461fa9(0xe6)](Object['entries'](_0x496a70)[_0x461fa9(0xf9)](([_0x5bbc19,_0x43e8cd])=>[_0x5bbc19,C(_0x43e8cd)]))};}function T(_0x4e5c67,_0x468b3a,_0x1506fc){const _0x17e07b=_0x573451;let _0x45e556=w(_0x4e5c67);return _0x45e556[_0x17e07b(0xf5)][_0x468b3a]=C({..._0x45e556[_0x17e07b(0xf5)][_0x468b3a],..._0x1506fc}),_0x45e556;}function _0x549c(){const _0x471e8a=['blockType','nextDocumentData','body','getOwnPropertyDescriptor','delete','object','sort','javascript','documentData','iterator','setConfig','indentStart','change$','call','_commandService','deepClone','CODE','get','textStyle','18HncOXU','_resourceManagerService','set','range','docs-code.command.update','getUnitId','string','stringify','prototype','startIndex','spaceBelow','docs-code.config','length','spaceAbove','clear','left','docs-code.command.consume-boundary-delete','_injector','model','some','SECTION_BREAK','removeCode','0.25.0-insiders.20260618-fa5d5d0','UNIVER_DOC','version','compose','nextMetadata','every','disposeWithMe','blockRanges','filter','getCurrentUnitOfType','tables','paragraphStartIndex','monospace','BLOCK_END','endIndex','min','slice','getParagraphsInRange','_setResource','docs-code.command.cancel-empty-paragraph','next','type','2577pGXBpm','commandService','_docsCodeModel','_config','2HkIeku','syncExecuteCommand','customRanges','getTextRanges','COMMAND','dispose','9mBcwBE','6469470IVPRSb','paragraphStyle','_configService','right','parse','forEach','7639104aaRByr','indentEnd','config','cursorOffset','replaceOp','fromEntries','_resources','getBody','16212490NYcvhE','serialize','paragraphId','max','paragraphs','BLOCK_START','from','find','paragraph','registerPluginResource','@univerjs-pro/docs-code','docs-code.command.insert','codes','blockId','1775210iIjgnn','_initResource','map','startOffset','complete','default','Document\x20body\x20is\x20required','dataStream','deserialize','344722EGWYKJ','indexOf','toPrimitive','customDecorations','_change$','1699467qGIfdm','endOffset','function','add','decorate','customBlocks','unitId','PARAGRAPH','symbol','sectionBreaks','endsWith','onStarting','1756uXjAeK','pluginName','direction','metadata','textRuns','previousDocumentData'];_0x549c=function(){return _0x471e8a;};return _0x549c();}function re(_0x37d471,_0x10e15a){const _0x154c65=_0x573451;let _0x2b438b=w(_0x37d471);return delete _0x2b438b[_0x154c65(0xf5)][_0x10e15a],_0x2b438b;}const ie=_0x573451(0xc6);function ae(_0x33c189){const _0x504c2b=_0x573451;var _0xe6dfce,_0x362be0,_0x53ad3c;let _0x4bb134=D(_0x33c189[_0x504c2b(0x99)]),_0x3ed4e3=O(_0x4bb134),_0x5aeee9=se(_0x33c189[_0x504c2b(0xfa)],_0x33c189[_0x504c2b(0x106)]),_0x2f2ae6=_0x5aeee9?(_0xe6dfce=_0x3ed4e3[_0x504c2b(0xc1)])==null?void 0x0:_0xe6dfce[_0x504c2b(0xf0)](_0x41a31f=>_0x41a31f['startIndex']===_0x5aeee9[_0x504c2b(0xfa)]&&_0x41a31f['endIndex']+0x1===_0x5aeee9[_0x504c2b(0x106)]):void 0x0,{startOffset:_0x19bb23,endOffset:_0x15d13a}=_0x2f2ae6?_0x5aeee9:ye(_0x3ed4e3,_0x33c189[_0x504c2b(0xfa)],_0x33c189[_0x504c2b(0x106)]),_0x48f842=Se(_0x3ed4e3,_0x19bb23,_0x15d13a),_0x18ea15=(_0x362be0=_0x2f2ae6==null?void 0x0:_0x2f2ae6[_0x504c2b(0xf6)])==null?_0x33c189[_0x504c2b(0xf6)]:_0x362be0,_0x395cd8=T(_0x33c189[_0x504c2b(0x8e)],_0x18ea15,{...S,..._0x33c189[_0x504c2b(0xe3)]});if(_0x2f2ae6)return _0x2f2ae6[_0x504c2b(0x91)]=_0xbe313d[_0x504c2b(0xa1)],oe(_0x3ed4e3,_0x19bb23,_0x15d13a),he(_0x3ed4e3,_0x19bb23,_0x15d13a,_0x48f842),M(_0x3ed4e3,_0x2f2ae6),{'nextDocumentData':_0x4bb134,'nextMetadata':_0x395cd8,'cursorOffset':_0x19bb23+0x1};if(_0x19bb23===_0x15d13a){var _0x754edc,_0xdc15af;let _0x108647=''+_0x44840e['BLOCK_START']+_0x44840e[_0x504c2b(0x86)]+_0x44840e[_0x504c2b(0xc7)];N(_0x3ed4e3,_0x19bb23,_0x108647,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x109b3b(new Set((_0x754edc=_0x3ed4e3['paragraphs'])==null?void 0x0:_0x754edc[_0x504c2b(0xf9)](_0x3879dd=>_0x3879dd[_0x504c2b(0xeb)]))),'paragraphStyle':E(!0x0,!0x0,_0x48f842)}],'blockRanges':[{'blockId':_0x18ea15,'blockType':_0xbe313d[_0x504c2b(0xa1)],'startIndex':0x0,'endIndex':_0x108647[_0x504c2b(0xb0)]-0x1}]});let _0x1e3f1d=(_0xdc15af=_0x3ed4e3[_0x504c2b(0xc1)])==null?void 0x0:_0xdc15af[_0x504c2b(0xf0)](_0x1acdb1=>_0x1acdb1[_0x504c2b(0xf6)]===_0x18ea15);return _0x1e3f1d&&M(_0x3ed4e3,_0x1e3f1d),{'nextDocumentData':_0x4bb134,'nextMetadata':_0x395cd8,'cursorOffset':_0x19bb23+0x1};}N(_0x3ed4e3,_0x15d13a,_0x44840e[_0x504c2b(0xc7)]),N(_0x3ed4e3,_0x19bb23,_0x44840e['BLOCK_START']),he(_0x3ed4e3,_0x19bb23,_0x15d13a+0x1,_0x48f842);let _0x83f8e7={'blockId':_0x18ea15,'blockType':_0xbe313d[_0x504c2b(0xa1)],'startIndex':_0x19bb23,'endIndex':_0x15d13a+0x1};return _0x3ed4e3[_0x504c2b(0xc1)]=[...(_0x53ad3c=_0x3ed4e3[_0x504c2b(0xc1)])==null?[]:_0x53ad3c,_0x83f8e7][_0x504c2b(0x97)]((_0x5de677,_0x566da2)=>_0x5de677['startIndex']-_0x566da2[_0x504c2b(0xad)]),M(_0x3ed4e3,_0x83f8e7),{'nextDocumentData':_0x4bb134,'nextMetadata':_0x395cd8,'cursorOffset':_0x19bb23+0x1};}function oe(_0x336622,_0x4e43a9,_0x1f602c){const _0x177348=_0x573451;var _0x731003;((_0x731003=_0x336622[_0x177348(0xed)])==null?[]:_0x731003)[_0x177348(0xc2)](_0x485c1e=>_0x485c1e[_0x177348(0xad)]>_0x4e43a9&&_0x485c1e[_0x177348(0xad)]<_0x1f602c)['forEach'](_0x442241=>{const _0x43eaec=_0x177348;var _0x107963;let _0x34faf8={...(_0x107963=_0x442241[_0x43eaec(0xdc)])==null?{}:_0x107963};delete _0x34faf8[_0x43eaec(0xb1)],delete _0x34faf8[_0x43eaec(0xae)],_0x442241['paragraphStyle']=_0x34faf8;});}function se(_0x217d04,_0x4cafb6){const _0xb3a8f=_0x573451;return _0x217d04==null||_0x4cafb6==null||_0x217d04===_0x4cafb6?null:{'startOffset':Math[_0xb3a8f(0xc9)](_0x217d04,_0x4cafb6),'endOffset':Math[_0xb3a8f(0xec)](_0x217d04,_0x4cafb6)};}function ce(_0x3f708a){const _0x25af54=_0x573451;return{'nextDocumentData':D(_0x3f708a[_0x25af54(0x99)]),'nextMetadata':T(_0x3f708a['metadata'],_0x3f708a[_0x25af54(0xf6)],_0x3f708a[_0x25af54(0xe3)]),'cursorOffset':0x0};}function le(_0x50a28f){const _0x4eaee3=_0x573451;var _0xb3ce98,_0x466e5b;let _0x13a4f2=D(_0x50a28f[_0x4eaee3(0x99)]),_0x53609f=O(_0x13a4f2),_0x137846=me(_0x53609f,_0x50a28f[_0x4eaee3(0xe4)]);if(!_0x137846)return null;let _0x573425=_e(_0x53609f,_0x137846),_0x57fb98=_0x573425[_0x573425[_0x4eaee3(0xb0)]-0x1];if(!_0x57fb98||!ve(_0x53609f,_0x137846,_0x57fb98)||_0x50a28f[_0x4eaee3(0xe4)]<_0x57fb98['startIndex'])return null;let _0x2d6881=A(_0x53609f,_0x137846,_0x57fb98);if(_0x2d6881>=_0x137846[_0x4eaee3(0xc8)])return null;_0x53609f[_0x4eaee3(0xfe)]=[_0x53609f[_0x4eaee3(0xfe)][_0x4eaee3(0xca)](0x0,_0x2d6881),_0x44840e[_0x4eaee3(0xc7)],_0x53609f['dataStream'][_0x4eaee3(0xca)](_0x2d6881,_0x137846['endIndex']),_0x53609f[_0x4eaee3(0xfe)]['slice'](_0x137846['endIndex']+0x1)]['join'](''),R(_0x53609f['paragraphs'],_0x2d6881,_0x137846['endIndex'],0x1),R(_0x53609f['sectionBreaks'],_0x2d6881,_0x137846['endIndex'],0x1),R(_0x53609f['customBlocks'],_0x2d6881,_0x137846[_0x4eaee3(0xc8)],0x1),ke(_0x53609f[_0x4eaee3(0x8f)],_0x2d6881,_0x137846['endIndex'],0x1),z(_0x53609f[_0x4eaee3(0xc4)],_0x2d6881,_0x137846[_0x4eaee3(0xc8)],0x1),z(_0x53609f[_0x4eaee3(0xd6)],_0x2d6881,_0x137846[_0x4eaee3(0xc8)],0x1),z(_0x53609f[_0x4eaee3(0x103)],_0x2d6881,_0x137846[_0x4eaee3(0xc8)],0x1),(_0xb3ce98=_0x53609f[_0x4eaee3(0xc1)])==null||_0xb3ce98['forEach'](_0x5e5b5a=>{const _0x43df35=_0x4eaee3;_0x5e5b5a===_0x137846||_0x5e5b5a['blockId']===_0x137846[_0x43df35(0xf6)]?_0x5e5b5a[_0x43df35(0xc8)]=_0x2d6881:_0x5e5b5a[_0x43df35(0xad)]>=_0x2d6881&&_0x5e5b5a[_0x43df35(0xad)]<_0x137846[_0x43df35(0xc8)]&&(_0x5e5b5a[_0x43df35(0xad)]+=0x1,_0x5e5b5a[_0x43df35(0xc8)]+=0x1);});let _0x42745a=_e(_0x53609f,{..._0x137846,'endIndex':_0x2d6881});_0x42745a[_0x4eaee3(0xe0)]((_0xb760a2,_0xf4824d)=>{const _0x182cfc=_0x4eaee3;var _0x48b921;_0xb760a2['paragraphStyle']={...(_0x48b921=_0xb760a2['paragraphStyle'])==null?{}:_0x48b921,...E(_0xf4824d===0x0,_0xf4824d===_0x42745a[_0x182cfc(0xb0)]-0x1)};});let _0x4c9110=(_0x466e5b=_0x53609f[_0x4eaee3(0xed)])==null?void 0x0:_0x466e5b[_0x4eaee3(0xf0)](_0x26f559=>_0x26f559[_0x4eaee3(0xad)]===_0x2d6881+0x1);return _0x4c9110&&(_0x4c9110[_0x4eaee3(0xdc)]=ge(_0x4c9110['paragraphStyle'])),{'nextDocumentData':_0x13a4f2,'cursorOffset':_0x2d6881+0x1};}function ue(_0x1831fa){const _0x350a40=_0x573451;let _0x348d5f=D(_0x1831fa['documentData']),_0x2b426c=O(_0x348d5f),_0x42fac6=me(_0x2b426c,_0x1831fa[_0x350a40(0xe4)]);return _0x42fac6&&de(_0x348d5f,_0x2b426c,_0x42fac6,_0x1831fa[_0x350a40(0xe4)],_0x1831fa[_0x350a40(0xc5)])||null;}function de(_0x10c1b0,_0x3f0583,_0x3b81a7,_0x3e648b,_0x3634d2){const _0x4f8a04=_0x573451;let _0x836ba7=we(_0x3f0583,_0x3b81a7,_0x3e648b,_0x3634d2);if(!_0x836ba7)return null;let _0x3a355b=_0x836ba7['endTokenOffset']-0x1;return Te(_0x3f0583,_0x836ba7[_0x4f8a04(0xf1)][_0x4f8a04(0xad)],_0x836ba7['paragraph'][_0x4f8a04(0xad)]+0x1),{'nextDocumentData':_0x10c1b0,'cursorOffset':_0x3a355b};}function fe(_0x2d0f45,_0x5bb7d9){const _0x58bb33=_0x573451;var _0x3f994f;return _0x2d0f45==null||(_0x3f994f=_0x2d0f45['blockRanges'])==null?void 0x0:_0x3f994f[_0x58bb33(0xf0)](_0x2bf747=>_0x2bf747[_0x58bb33(0x91)]===_0xbe313d[_0x58bb33(0xa1)]&&_0x2bf747[_0x58bb33(0xad)]<=_0x5bb7d9&&_0x5bb7d9<=_0x2bf747[_0x58bb33(0xc8)]);}function pe(_0x4b166d){const _0x1c3877=_0x573451;var _0x2dfb9a;let _0x5cc1e2=_0x4b166d[_0x1c3877(0x99)][_0x1c3877(0x93)];if(!_0x5cc1e2)return!0x1;let _0x2c62ef=_0x4b166d[_0x1c3877(0x8d)]===_0x1c3877(0xb3)?_0x4b166d[_0x1c3877(0xe4)]-0x1:_0x4b166d['cursorOffset'],_0x373e1e=_0x4b166d['direction']===_0x1c3877(0xde)?_0x4b166d['cursorOffset']+0x1:_0x2c62ef;return((_0x2dfb9a=_0x5cc1e2[_0x1c3877(0xc1)])==null?[]:_0x2dfb9a)[_0x1c3877(0xb7)](_0x1424cf=>_0x1424cf['blockType']===_0xbe313d[_0x1c3877(0xa1)]?_0x2c62ef===_0x1424cf[_0x1c3877(0xad)]||_0x2c62ef===_0x1424cf[_0x1c3877(0xc8)]||_0x373e1e===_0x1424cf['startIndex']||_0x373e1e===_0x1424cf[_0x1c3877(0xc8)]:!0x1);}function me(_0x39d74e,_0x285779){const _0x2ba4ae=_0x573451;var _0x1b8599;return(_0x1b8599=_0x39d74e[_0x2ba4ae(0xc1)])==null?void 0x0:_0x1b8599[_0x2ba4ae(0xf0)](_0x242b7f=>{const _0x3f9bbb=_0x2ba4ae;let _0x196d86=j(_0x39d74e,_0x242b7f);return _0x242b7f[_0x3f9bbb(0x91)]===_0xbe313d[_0x3f9bbb(0xa1)]&&_0x242b7f[_0x3f9bbb(0xad)]<=_0x285779&&_0x285779<=_0x196d86+0x2;});}function E(_0x903cb6,_0x51ac44,_0x21e9b9=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x903cb6&&_0x21e9b9?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ie,'fs':0xc}};}function he(_0x2b1489,_0x163ec8,_0xf31457,_0xa069d6=!0x1){const _0x22012f=_0x573451;var _0x354ddc;let _0x41317c=((_0x354ddc=_0x2b1489[_0x22012f(0xed)])==null?[]:_0x354ddc)[_0x22012f(0xc2)](_0x16df23=>_0x16df23[_0x22012f(0xad)]>_0x163ec8&&_0x16df23[_0x22012f(0xad)]<_0xf31457);_0x41317c[_0x22012f(0xe0)]((_0x3cbe34,_0x21edd0)=>{const _0x50d32b=_0x22012f;var _0x4f759d;_0x3cbe34[_0x50d32b(0xdc)]={...(_0x4f759d=_0x3cbe34[_0x50d32b(0xdc)])==null?{}:_0x4f759d,...E(_0x21edd0===0x0,_0x21edd0===_0x41317c[_0x50d32b(0xb0)]-0x1,_0xa069d6)};});}function ge(_0x5616ff){const _0x437718=_0x573451;var _0x1259fe,_0x26dd9a;let _0x2b4268={..._0x5616ff==null?{}:_0x5616ff};return delete _0x2b4268[_0x437718(0xe2)],delete _0x2b4268[_0x437718(0x9c)],delete _0x2b4268[_0x437718(0xb1)],delete _0x2b4268[_0x437718(0xae)],((_0x1259fe=_0x2b4268[_0x437718(0xa3)])==null?void 0x0:_0x1259fe['ff'])===ie&&((_0x26dd9a=_0x2b4268['textStyle'])==null?void 0x0:_0x26dd9a['fs'])===0xc&&delete _0x2b4268[_0x437718(0xa3)],_0x2b4268;}function _e(_0x5a61b1,_0x425bf5){const _0x127b7c=_0x573451;var _0x5be68e;let _0x458682=j(_0x5a61b1,_0x425bf5);return((_0x5be68e=_0x5a61b1[_0x127b7c(0xed)])==null?[]:_0x5be68e)['filter'](_0x294faf=>_0x294faf[_0x127b7c(0xad)]>_0x425bf5[_0x127b7c(0xad)]&&_0x294faf[_0x127b7c(0xad)]<_0x458682);}function ve(_0x2c85d3,_0x2eab4d,_0x767626){const _0x3b6276=_0x573451;let _0x2d396e=A(_0x2c85d3,_0x2eab4d,_0x767626),_0x202fd4=_0x2c85d3[_0x3b6276(0xfe)][_0x3b6276(0xca)](_0x2d396e,_0x767626[_0x3b6276(0xad)]);return Array['from'](_0x202fd4)['every'](_0x5b8abb=>_0x5b8abb===_0x44840e[_0x3b6276(0xee)]||_0x5b8abb===_0x44840e[_0x3b6276(0xc7)]);}function D(_0x4a4aa1){const _0x2a6d35=_0x573451;return _0x223860[_0x2a6d35(0xa0)](_0x4a4aa1);}function O(_0x16afd3){const _0x11b8af=_0x573451;if(!_0x16afd3['body'])throw Error(_0x11b8af(0xfd));return _0x16afd3[_0x11b8af(0x93)];}function ye(_0x5209ad,_0x23e331,_0x3666ef){if(_0x23e331==null||_0x3666ef==null){let _0x306d2a=xe(_0x5209ad);return{'startOffset':_0x306d2a,'endOffset':_0x306d2a};}let _0x169478=Math['min'](_0x23e331,_0x3666ef),_0x2acb5e=Math['max'](_0x23e331,_0x3666ef);if(_0x169478===_0x2acb5e){let _0x332316=be(_0x5209ad,_0x169478);return{'startOffset':_0x332316,'endOffset':_0x332316};}return Ce(_0x5209ad,_0x169478,_0x2acb5e);}function be(_0x36f239,_0xe7f716){const _0x7b79cd=_0x573451;return _0xe7f716===0x0&&_0x36f239[_0x7b79cd(0xfe)][0x0]===_0x44840e[_0x7b79cd(0x86)]?0x1:_0xe7f716;}function xe(_0x46fec1){const _0x3bf364=_0x573451;return _0x46fec1[_0x3bf364(0xfe)][_0x3bf364(0x89)](_0x44840e[_0x3bf364(0xb8)])?Math[_0x3bf364(0xec)](0x0,_0x46fec1[_0x3bf364(0xfe)][_0x3bf364(0xb0)]-0x1):_0x46fec1[_0x3bf364(0xfe)][_0x3bf364(0xb0)];}function Se(_0x44d466,_0x4df665,_0x4a6858){const _0x593bac=_0x573451;var _0x283bec;let _0x439a4=Math[_0x593bac(0xc9)](_0x4df665,_0x4a6858),_0x1b68be=Math[_0x593bac(0xec)](_0x4df665,_0x4a6858);return!!((_0x283bec=_0x44d466[_0x593bac(0xc4)])!=null&&_0x283bec[_0x593bac(0xb7)](_0x5d9392=>_0x439a4>_0x5d9392['startIndex']&&_0x439a4<_0x5d9392[_0x593bac(0xc8)]||_0x1b68be>_0x5d9392['startIndex']&&_0x1b68be<_0x5d9392[_0x593bac(0xc8)]||_0x439a4<=_0x5d9392['startIndex']&&_0x1b68be>=_0x5d9392['endIndex']));}function Ce(_0x5376da,_0x469ebe,_0x149362){const _0x3d0e84=_0x573451;var _0x217e56,_0x3daafd;let _0x5ef267=[...(_0x217e56=_0x5376da[_0x3d0e84(0xed)])==null?[]:_0x217e56][_0x3d0e84(0x97)]((_0x37d6de,_0x215df4)=>_0x37d6de[_0x3d0e84(0xad)]-_0x215df4[_0x3d0e84(0xad)]),_0xf3c26b=_0x5ef267[_0x3d0e84(0xf0)]((_0x12f818,_0x547999)=>(_0x547999===0x0?0x0:_0x5ef267[_0x547999-0x1][_0x3d0e84(0xad)]+0x1)<=_0x469ebe&&_0x469ebe<=_0x12f818[_0x3d0e84(0xad)]),_0x3ad789=(_0x3daafd=_0x5ef267[_0x3d0e84(0xf0)](_0x4ffb49=>_0x4ffb49[_0x3d0e84(0xad)]>=_0x149362-0x1))==null?_0x5ef267[_0x5ef267[_0x3d0e84(0xb0)]-0x1]:_0x3daafd;return{'startOffset':_0xf3c26b?k(_0x5ef267,_0xf3c26b):_0x469ebe,'endOffset':_0x3ad789?_0x3ad789[_0x3d0e84(0xad)]+0x1:_0x149362};}function k(_0x1cc7de,_0x44aaef){const _0x45df11=_0x573451;let _0x8f4ea1=_0x1cc7de[_0x45df11(0x101)](_0x44aaef);return _0x8f4ea1>0x0?_0x1cc7de[_0x8f4ea1-0x1][_0x45df11(0xad)]+0x1:0x0;}function A(_0x33daec,_0x3991e1,_0xf4f484){const _0x1b372b=_0x573451;var _0x5c583a;return Math[_0x1b372b(0xec)](k((_0x5c583a=_0x33daec[_0x1b372b(0xed)])==null?[]:_0x5c583a,_0xf4f484),_0x3991e1['startIndex']+0x1);}function j(_0x2bf395,_0x3c6ef3){const _0x288ecc=_0x573451;return _0x2bf395['dataStream'][_0x3c6ef3[_0x288ecc(0xc8)]]===_0x44840e[_0x288ecc(0xc7)]?_0x3c6ef3[_0x288ecc(0xc8)]:_0x2bf395[_0x288ecc(0xfe)][_0x3c6ef3[_0x288ecc(0xc8)]+0x1]===_0x44840e[_0x288ecc(0xc7)]?_0x3c6ef3[_0x288ecc(0xc8)]+0x1:_0x3c6ef3['endIndex'];}function we(_0x571efb,_0x585111,_0x1a245d,_0x4af444){const _0x3efe0a=_0x573451;var _0x47c6b5,_0x199e09;let _0x55fe27=j(_0x571efb,_0x585111),_0x26a461=((_0x47c6b5=_0x571efb[_0x3efe0a(0xed)])==null?[]:_0x47c6b5)[_0x3efe0a(0xf0)](_0x276130=>_0x276130[_0x3efe0a(0xad)]===_0x55fe27+0x1);if(!_0x26a461||_0x4af444!=null&&_0x26a461['startIndex']!==_0x4af444||_0x1a245d<_0x55fe27||_0x1a245d>_0x26a461[_0x3efe0a(0xad)]+0x1||_0x571efb['dataStream'][_0x26a461[_0x3efe0a(0xad)]]!==_0x44840e['PARAGRAPH'])return null;let _0x224226=k((_0x199e09=_0x571efb['paragraphs'])==null?[]:_0x199e09,_0x26a461),_0x482583=_0x571efb['dataStream']['slice'](_0x224226,_0x26a461[_0x3efe0a(0xad)]);return Array[_0x3efe0a(0xef)](_0x482583)[_0x3efe0a(0xbf)](_0x59ac20=>_0x59ac20===_0x44840e[_0x3efe0a(0xc7)])?{'paragraph':_0x26a461,'endTokenOffset':_0x55fe27}:null;}function M(_0x189683,_0x12aa98){const _0x591a47=_0x573451;var _0x2023e7;let _0x373d11=j(_0x189683,_0x12aa98),_0x1e9a2e=_0x189683['dataStream'][_0x373d11+0x1];_0x1e9a2e!==_0x44840e[_0x591a47(0xb8)]&&_0x1e9a2e!==void 0x0||N(_0x189683,_0x373d11+0x1,_0x44840e[_0x591a47(0x86)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x109b3b(new Set((_0x2023e7=_0x189683[_0x591a47(0xed)])==null?void 0x0:_0x2023e7[_0x591a47(0xf9)](_0x229684=>_0x229684[_0x591a47(0xeb)])))}]});}function N(_0x5682de,_0x1a949c,_0x47d49c,_0xc11bcd={}){const _0x2ece07=_0x573451;var _0x2729c3,_0x2d8c66;if(_0x47d49c){if(_0x5682de['dataStream']=''+_0x5682de[_0x2ece07(0xfe)][_0x2ece07(0xca)](0x0,_0x1a949c)+_0x47d49c+_0x5682de[_0x2ece07(0xfe)][_0x2ece07(0xca)](_0x1a949c),Ee(_0x5682de,_0x1a949c,_0x47d49c['length']),(_0x2729c3=_0xc11bcd[_0x2ece07(0xed)])!=null&&_0x2729c3[_0x2ece07(0xb0)]){var _0x381992;_0x5682de[_0x2ece07(0xed)]=[...(_0x381992=_0x5682de[_0x2ece07(0xed)])==null?[]:_0x381992,..._0xc11bcd[_0x2ece07(0xed)][_0x2ece07(0xf9)](_0x3194c7=>({..._0x3194c7,'startIndex':_0x3194c7[_0x2ece07(0xad)]+_0x1a949c}))][_0x2ece07(0x97)]((_0x4f252c,_0x1893fa)=>_0x4f252c[_0x2ece07(0xad)]-_0x1893fa[_0x2ece07(0xad)]);}if((_0x2d8c66=_0xc11bcd[_0x2ece07(0xc1)])!=null&&_0x2d8c66[_0x2ece07(0xb0)]){var _0x3ca7fb;_0x5682de['blockRanges']=[...(_0x3ca7fb=_0x5682de[_0x2ece07(0xc1)])==null?[]:_0x3ca7fb,..._0xc11bcd[_0x2ece07(0xc1)][_0x2ece07(0xf9)](_0xf5819a=>({..._0xf5819a,'startIndex':_0xf5819a[_0x2ece07(0xad)]+_0x1a949c,'endIndex':_0xf5819a[_0x2ece07(0xc8)]+_0x1a949c}))][_0x2ece07(0x97)]((_0x429c6a,_0x20e0e6)=>_0x429c6a['startIndex']-_0x20e0e6['startIndex']);}}}function Te(_0x2a96a6,_0x5f5a60,_0x9c9213){const _0x3a67bb=_0x573451;let _0x2838ee=_0x9c9213-_0x5f5a60;_0x2a96a6[_0x3a67bb(0xfe)]=''+_0x2a96a6[_0x3a67bb(0xfe)][_0x3a67bb(0xca)](0x0,_0x5f5a60)+_0x2a96a6[_0x3a67bb(0xfe)]['slice'](_0x9c9213),De(_0x2a96a6,_0x5f5a60,_0x2838ee);}function Ee(_0x8c8f6d,_0x4b8681,_0x26860e){const _0x58ce0e=_0x573451;_0x8c8f6d[_0x58ce0e(0xed)]=P(_0x8c8f6d[_0x58ce0e(0xed)],_0x4b8681,_0x26860e),_0x8c8f6d[_0x58ce0e(0x88)]=P(_0x8c8f6d[_0x58ce0e(0x88)],_0x4b8681,_0x26860e),_0x8c8f6d[_0x58ce0e(0x84)]=P(_0x8c8f6d[_0x58ce0e(0x84)],_0x4b8681,_0x26860e),_0x8c8f6d[_0x58ce0e(0x8f)]=Oe(_0x8c8f6d[_0x58ce0e(0x8f)],_0x4b8681,_0x26860e),_0x8c8f6d[_0x58ce0e(0xc4)]=I(_0x8c8f6d['tables'],_0x4b8681,_0x26860e),_0x8c8f6d[_0x58ce0e(0xd6)]=I(_0x8c8f6d[_0x58ce0e(0xd6)],_0x4b8681,_0x26860e),_0x8c8f6d[_0x58ce0e(0x103)]=I(_0x8c8f6d[_0x58ce0e(0x103)],_0x4b8681,_0x26860e),_0x8c8f6d[_0x58ce0e(0xc1)]=I(_0x8c8f6d['blockRanges'],_0x4b8681,_0x26860e);}function De(_0x49c5cf,_0x6b82f9,_0x4c1f17){const _0x1a1f31=_0x573451;var _0x2df76d,_0x5dcdfd;_0x49c5cf['paragraphs']=F(_0x49c5cf['paragraphs'],_0x6b82f9,_0x4c1f17),_0x49c5cf[_0x1a1f31(0x88)]=F(_0x49c5cf[_0x1a1f31(0x88)],_0x6b82f9,_0x4c1f17),_0x49c5cf[_0x1a1f31(0x84)]=F(_0x49c5cf['customBlocks'],_0x6b82f9,_0x4c1f17),_0x49c5cf[_0x1a1f31(0x8f)]=(_0x2df76d=L((_0x5dcdfd=_0x49c5cf[_0x1a1f31(0x8f)])==null?void 0x0:_0x5dcdfd[_0x1a1f31(0xf9)](_0x554416=>({..._0x554416,'startIndex':_0x554416['st'],'endIndex':_0x554416['ed']})),_0x6b82f9,_0x4c1f17))==null?void 0x0:_0x2df76d['map'](_0x5bd393=>{let {startIndex:_0x31adbe,endIndex:_0x389b96,..._0x516454}=_0x5bd393;return{..._0x516454,'st':_0x31adbe,'ed':_0x389b96};}),_0x49c5cf['tables']=L(_0x49c5cf[_0x1a1f31(0xc4)],_0x6b82f9,_0x4c1f17),_0x49c5cf[_0x1a1f31(0xd6)]=L(_0x49c5cf['customRanges'],_0x6b82f9,_0x4c1f17),_0x49c5cf[_0x1a1f31(0x103)]=L(_0x49c5cf[_0x1a1f31(0x103)],_0x6b82f9,_0x4c1f17),_0x49c5cf[_0x1a1f31(0xc1)]=L(_0x49c5cf[_0x1a1f31(0xc1)],_0x6b82f9,_0x4c1f17);}function P(_0x5a9653,_0x2bb971,_0x100042){const _0x20acc3=_0x573451;return _0x5a9653==null?void 0x0:_0x5a9653['map'](_0x55a56a=>_0x55a56a['startIndex']>=_0x2bb971?{..._0x55a56a,'startIndex':_0x55a56a[_0x20acc3(0xad)]+_0x100042}:_0x55a56a);}function F(_0x13ae07,_0x42eb5a,_0x5a40c8){const _0x32c916=_0x573451;let _0x4f4cea=_0x42eb5a+_0x5a40c8;return _0x13ae07==null?void 0x0:_0x13ae07['map'](_0x4fe070=>_0x4fe070[_0x32c916(0xad)]>=_0x42eb5a&&_0x4fe070[_0x32c916(0xad)]<_0x4f4cea?null:_0x4fe070[_0x32c916(0xad)]>=_0x4f4cea?{..._0x4fe070,'startIndex':_0x4fe070[_0x32c916(0xad)]-_0x5a40c8}:_0x4fe070)['filter'](_0x27131b=>_0x27131b!=null);}function Oe(_0x267c3e,_0x55162c,_0x197214){const _0x1b7cdf=_0x573451;return _0x267c3e==null?void 0x0:_0x267c3e[_0x1b7cdf(0xf9)](_0x88abde=>_0x88abde['st']>=_0x55162c?{..._0x88abde,'st':_0x88abde['st']+_0x197214,'ed':_0x88abde['ed']+_0x197214}:_0x88abde['ed']>_0x55162c?{..._0x88abde,'ed':_0x88abde['ed']+_0x197214}:_0x88abde);}function I(_0x24c9ab,_0x2b4cf9,_0x238ffc){const _0x5c4622=_0x573451;return _0x24c9ab==null?void 0x0:_0x24c9ab['map'](_0x57ac5c=>_0x57ac5c[_0x5c4622(0xad)]>=_0x2b4cf9?{..._0x57ac5c,'startIndex':_0x57ac5c[_0x5c4622(0xad)]+_0x238ffc,'endIndex':_0x57ac5c[_0x5c4622(0xc8)]+_0x238ffc}:_0x57ac5c[_0x5c4622(0xc8)]>=_0x2b4cf9?{..._0x57ac5c,'endIndex':_0x57ac5c[_0x5c4622(0xc8)]+_0x238ffc}:_0x57ac5c);}function _0x5b77(_0x10e3d8,_0x81380b){_0x10e3d8=_0x10e3d8-0x83;const _0x549cf5=_0x549c();let _0x5b777c=_0x549cf5[_0x10e3d8];return _0x5b777c;}function L(_0x387810,_0x4a7aba,_0x48f5f9){const _0x9f4595=_0x573451;let _0x4d455a=_0x4a7aba+_0x48f5f9;return _0x387810==null?void 0x0:_0x387810[_0x9f4595(0xf9)](_0x3a6b00=>_0x3a6b00[_0x9f4595(0xad)]>=_0x4a7aba&&_0x3a6b00[_0x9f4595(0xc8)]<_0x4d455a?null:_0x3a6b00[_0x9f4595(0xad)]>=_0x4d455a?{..._0x3a6b00,'startIndex':_0x3a6b00[_0x9f4595(0xad)]-_0x48f5f9,'endIndex':_0x3a6b00[_0x9f4595(0xc8)]-_0x48f5f9}:_0x3a6b00[_0x9f4595(0xc8)]>=_0x4a7aba?{..._0x3a6b00,'startIndex':_0x3a6b00[_0x9f4595(0xad)]<_0x4a7aba?_0x3a6b00[_0x9f4595(0xad)]:_0x4a7aba,'endIndex':Math['max'](_0x4a7aba,_0x3a6b00['endIndex']-_0x48f5f9)}:_0x3a6b00)[_0x9f4595(0xc2)](_0x210331=>_0x210331!=null);}function R(_0x252084,_0x5d10e4,_0x45d8be,_0x5a2a90){const _0x35dcb4=_0x573451;_0x252084==null||_0x252084[_0x35dcb4(0xe0)](_0x2790b5=>{const _0x4dde98=_0x35dcb4;_0x2790b5[_0x4dde98(0xad)]>=_0x5d10e4&&_0x2790b5[_0x4dde98(0xad)]<_0x45d8be&&(_0x2790b5[_0x4dde98(0xad)]+=_0x5a2a90);});}function ke(_0x5e75b1,_0x3e3ab1,_0x4d9d50,_0x45d713){_0x5e75b1==null||_0x5e75b1['forEach'](_0x3604cc=>{_0x3604cc['st']>=_0x3e3ab1&&_0x3604cc['st']<_0x4d9d50?(_0x3604cc['st']+=_0x45d713,_0x3604cc['ed']+=_0x45d713):_0x3604cc['ed']>_0x3e3ab1&&_0x3604cc['ed']<_0x4d9d50&&(_0x3604cc['ed']+=_0x45d713);});}function z(_0x13076c,_0x54c811,_0x45ac85,_0x34e3de){_0x13076c==null||_0x13076c['forEach'](_0x47149e=>{const _0x3ca603=_0x5b77;_0x47149e['startIndex']>=_0x54c811&&_0x47149e[_0x3ca603(0xad)]<_0x45ac85?(_0x47149e[_0x3ca603(0xad)]+=_0x34e3de,_0x47149e[_0x3ca603(0xc8)]+=_0x34e3de):_0x47149e[_0x3ca603(0xc8)]>_0x54c811&&_0x47149e['endIndex']<_0x45ac85&&(_0x47149e[_0x3ca603(0xc8)]+=_0x34e3de);});}function B(_0x430b23){'@babel/helpers - typeof';const _0x2158fa=_0x573451;return B=typeof Symbol==_0x2158fa(0x107)&&typeof Symbol[_0x2158fa(0x9a)]==_0x2158fa(0x87)?function(_0x2d10a4){return typeof _0x2d10a4;}:function(_0x59453f){const _0x3efce2=_0x2158fa;return _0x59453f&&typeof Symbol==_0x3efce2(0x107)&&_0x59453f['constructor']===Symbol&&_0x59453f!==Symbol[_0x3efce2(0xac)]?_0x3efce2(0x87):typeof _0x59453f;},B(_0x430b23);}function Ae(_0x550762,_0x5c9ca8){const _0x2207d5=_0x573451;if(B(_0x550762)!=_0x2207d5(0x96)||!_0x550762)return _0x550762;var _0x5e9301=_0x550762[Symbol[_0x2207d5(0x102)]];if(_0x5e9301!==void 0x0){var _0x3214b1=_0x5e9301[_0x2207d5(0x9e)](_0x550762,_0x5c9ca8||_0x2207d5(0xfc));if(B(_0x3214b1)!=_0x2207d5(0x96))return _0x3214b1;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5c9ca8===_0x2207d5(0xaa)?String:Number)(_0x550762);}function je(_0x44a74a){const _0x1fab3c=_0x573451;var _0x347a09=Ae(_0x44a74a,_0x1fab3c(0xaa));return B(_0x347a09)==_0x1fab3c(0x87)?_0x347a09:_0x347a09+'';}function V(_0x19580a,_0x5ddeb5,_0x9d00d1){return(_0x5ddeb5=je(_0x5ddeb5))in _0x19580a?Object['defineProperty'](_0x19580a,_0x5ddeb5,{'value':_0x9d00d1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x19580a[_0x5ddeb5]=_0x9d00d1,_0x19580a;}var H=class extends _0x31b9f9{constructor(..._0x38869b){const _0x436873=_0x573451;super(..._0x38869b),V(this,_0x436873(0xe7),new Map()),V(this,'_change$',new _0x188f5e()),V(this,_0x436873(0x9d),this[_0x436873(0x104)]['asObservable']());}['getCodeConfig'](_0x21d025,_0x91f557){const _0x45d1fd=_0x573451;return w(this[_0x45d1fd(0xe7)]['get'](_0x21d025))[_0x45d1fd(0xf5)][_0x91f557];}['setCodeConfig'](_0x539144,_0x4055ac,_0x3c2563){const _0x37930f=_0x573451;this['_setResource'](_0x539144,_0x4055ac,T(this[_0x37930f(0xe7)][_0x37930f(0xa2)](_0x539144),_0x4055ac,_0x3c2563));}[_0x573451(0xb9)](_0x3d6a16,_0x3ca851){const _0x11d9a7=_0x573451;this[_0x11d9a7(0xcc)](_0x3d6a16,_0x3ca851,re(this[_0x11d9a7(0xe7)][_0x11d9a7(0xa2)](_0x3d6a16),_0x3ca851));}[_0x573451(0xea)](_0x128d32){const _0x515fdc=_0x573451;return w(this[_0x515fdc(0xe7)][_0x515fdc(0xa2)](_0x128d32));}['deserialize'](_0x348a0d,_0x36df75){const _0x7453cf=_0x573451;this['_resources'][_0x7453cf(0xa6)](_0x348a0d,w(_0x36df75)),this[_0x7453cf(0x104)][_0x7453cf(0xce)]({'unitId':_0x348a0d});}['removeUnit'](_0x2ac33b){const _0x426b16=_0x573451;this[_0x426b16(0xe7)][_0x426b16(0x95)](_0x2ac33b),this[_0x426b16(0x104)][_0x426b16(0xce)]({'unitId':_0x2ac33b});}[_0x573451(0xd9)](){const _0x2303d3=_0x573451;super['dispose'](),this[_0x2303d3(0xe7)][_0x2303d3(0xb2)](),this[_0x2303d3(0x104)][_0x2303d3(0xfb)]();}['_setResource'](_0x3e67a8,_0x320859,_0x5e0295){const _0x496e64=_0x573451;this[_0x496e64(0xe7)][_0x496e64(0xa6)](_0x3e67a8,_0x5e0295),this[_0x496e64(0x104)]['next']({'unitId':_0x3e67a8,'blockId':_0x320859});}};const Me={'id':'docs-code.command.insert-below','type':_0x351439[_0x573451(0xd8)],'handler':_0x2acb73=>{const _0x1ab459=_0x573451;let _0x4f342e=Le(_0x2acb73);if(_0x4f342e)return _0x2acb73[_0x1ab459(0xa2)](_0x9902cc)[_0x1ab459(0xd5)](U['id'],{'startOffset':_0x4f342e[_0x1ab459(0xfa)],'endOffset':_0x4f342e[_0x1ab459(0x106)],'unitId':_0x4f342e[_0x1ab459(0x85)]});let _0x261905=Re(_0x2acb73);if(!_0x261905)return!0x1;let _0x33975a=_0x261905[_0x1ab459(0xad)]+0x1;return _0x2acb73['get'](_0x9902cc)['syncExecuteCommand'](U['id'],{'startOffset':_0x33975a,'endOffset':_0x33975a});}},Ne={'id':_0x573451(0xb4),'type':_0x351439[_0x573451(0xd8)],'handler':()=>!0x0},U={'id':_0x573451(0xf4),'type':_0x351439[_0x573451(0xd8)],'handler':(_0x1891a9,_0x2e1ac0)=>{const _0x433170=_0x573451;var _0x193a38,_0x5b4cc2,_0x5a342c;let _0xf518ff=W(_0x1891a9,_0x2e1ac0==null?void 0x0:_0x2e1ac0['unitId']);if(!_0xf518ff)return!0x1;let _0x4dda7b=G(_0x1891a9),_0x379dda=ae({'blockId':(_0x193a38=_0x2e1ac0==null?void 0x0:_0x2e1ac0[_0x433170(0xf6)])==null?_0x12c824(0x6):_0x193a38,'config':_0x2e1ac0==null?void 0x0:_0x2e1ac0[_0x433170(0xe3)],'documentData':_0xf518ff[_0x433170(0x90)],'endOffset':(_0x5b4cc2=_0x2e1ac0==null?void 0x0:_0x2e1ac0[_0x433170(0x106)])==null?_0x4dda7b==null?void 0x0:_0x4dda7b[_0x433170(0x106)]:_0x5b4cc2,'metadata':_0xf518ff[_0x433170(0xb6)]['serialize'](_0xf518ff['unitId']),'startOffset':(_0x5a342c=_0x2e1ac0==null?void 0x0:_0x2e1ac0[_0x433170(0xfa)])==null?_0x4dda7b==null?void 0x0:_0x4dda7b[_0x433170(0xfa)]:_0x5a342c}),_0x356261=q(_0xf518ff[_0x433170(0xd1)],_0xf518ff[_0x433170(0x85)],_0xf518ff[_0x433170(0x90)],_0x379dda['nextDocumentData'],_0x379dda['cursorOffset']);return _0x356261&&_0x379dda[_0x433170(0xbe)]&&_0xf518ff[_0x433170(0xb6)]['deserialize'](_0xf518ff[_0x433170(0x85)],_0x379dda['nextMetadata']),_0x356261;}},Pe={'id':_0x573451(0xa8),'type':_0x351439[_0x573451(0xd8)],'handler':(_0x26910b,_0x488c52)=>{const _0x2d0465=_0x573451;if(!_0x488c52)return!0x1;let _0x18f2e0=W(_0x26910b,_0x488c52[_0x2d0465(0x85)]);if(!_0x18f2e0)return!0x1;let _0x56c348=ce({'blockId':_0x488c52[_0x2d0465(0xf6)],'config':_0x488c52[_0x2d0465(0xe3)],'documentData':_0x18f2e0['previousDocumentData'],'metadata':_0x18f2e0[_0x2d0465(0xb6)][_0x2d0465(0xea)](_0x18f2e0[_0x2d0465(0x85)])});return _0x56c348[_0x2d0465(0xbe)]&&_0x18f2e0['model'][_0x2d0465(0xff)](_0x18f2e0['unitId'],_0x56c348[_0x2d0465(0xbe)]),!0x0;}},Fe={'id':'docs-code.command.exit','type':_0x351439[_0x573451(0xd8)],'handler':(_0x824f9,_0x338b74)=>{const _0x43582f=_0x573451;var _0x55f564,_0x5dce32;let _0x111e72=W(_0x824f9,_0x338b74==null?void 0x0:_0x338b74[_0x43582f(0x85)]);if(!_0x111e72)return!0x1;let _0x5ef4fe=(_0x55f564=_0x338b74==null?void 0x0:_0x338b74[_0x43582f(0xe4)])==null?(_0x5dce32=G(_0x824f9))==null?void 0x0:_0x5dce32[_0x43582f(0xfa)]:_0x55f564;if(_0x5ef4fe==null)return!0x1;let _0x98520e=le({'cursorOffset':_0x5ef4fe,'documentData':_0x111e72[_0x43582f(0x90)]});return _0x98520e?q(_0x111e72[_0x43582f(0xd1)],_0x111e72[_0x43582f(0x85)],_0x111e72[_0x43582f(0x90)],_0x98520e[_0x43582f(0x92)],_0x98520e[_0x43582f(0xe4)]):!0x1;}},Ie={'id':_0x573451(0xcd),'type':_0x351439[_0x573451(0xd8)],'handler':(_0x31c9eb,_0x350ef0)=>{const _0x2482cf=_0x573451;var _0x2f1705,_0x1dc10d;let _0x32f73f=W(_0x31c9eb,_0x350ef0==null?void 0x0:_0x350ef0[_0x2482cf(0x85)]);if(!_0x32f73f)return!0x1;let _0x5dc93f=(_0x2f1705=_0x350ef0==null?void 0x0:_0x350ef0['cursorOffset'])==null?(_0x1dc10d=G(_0x31c9eb))==null?void 0x0:_0x1dc10d[_0x2482cf(0xfa)]:_0x2f1705;if(_0x5dc93f==null)return!0x1;let _0x2c609a=ue({'cursorOffset':_0x5dc93f,'documentData':_0x32f73f[_0x2482cf(0x90)],'paragraphStartIndex':_0x350ef0==null?void 0x0:_0x350ef0['paragraphStartIndex']});return _0x2c609a?q(_0x32f73f['commandService'],_0x32f73f['unitId'],_0x32f73f['previousDocumentData'],_0x2c609a['nextDocumentData'],_0x2c609a[_0x2482cf(0xe4)]):!0x1;}};function W(_0xdaaabf,_0x2e4c7a){const _0x31de90=_0x573451;let _0x539201=_0xdaaabf[_0x31de90(0xa2)](_0x430140),_0x3f5707=_0x2e4c7a?_0x539201['getUniverDocInstance'](_0x2e4c7a):_0x539201['getCurrentUnitOfType'](_0x4a473f[_0x31de90(0xbb)]);return _0x3f5707?{'commandService':_0xdaaabf[_0x31de90(0xa2)](_0x9902cc),'model':_0xdaaabf[_0x31de90(0xa2)](H),'previousDocumentData':_0x3f5707['getSnapshot'](),'unitId':_0x3f5707['getUnitId']()}:null;}function G(_0x5f49ed){const _0x40b790=_0x573451;var _0x4ef069;return(_0x4ef069=_0x5f49ed[_0x40b790(0xa2)](_0x280038)[_0x40b790(0xd7)]())==null?void 0x0:_0x4ef069[0x0];}function Le(_0xfd35ea){const _0xd6cca6=_0x573451;var _0x303fa1;let _0x2ba1a5=(_0x303fa1=_0xfd35ea[_0xd6cca6(0xa2)](_0x430140)[_0xd6cca6(0xc3)](_0x4a473f[_0xd6cca6(0xbb)]))==null?void 0x0:_0x303fa1[_0xd6cca6(0xa9)]();try{return _0xfd35ea[_0xd6cca6(0xa2)](_0x5b79f4)['consumeInsertRange'](_0x2ba1a5);}catch{return null;}}function Re(_0x49ff9b){const _0x60dc7b=_0x573451;var _0x416790,_0x67e86e,_0x43e0e0;let _0x28d9ad=G(_0x49ff9b);if(!_0x28d9ad)return null;let _0x3cf4a0=_0x49ff9b[_0x60dc7b(0xa2)](_0x430140)[_0x60dc7b(0xc3)](_0x4a473f[_0x60dc7b(0xbb)]),_0x581817=_0x3cf4a0==null?void 0x0:_0x3cf4a0[_0x60dc7b(0xe8)]();return _0x581817?(_0x416790=_0x55168e[_0x60dc7b(0xa7)][_0x60dc7b(0xcb)](_0x28d9ad,(_0x67e86e=_0x581817[_0x60dc7b(0xed)])==null?[]:_0x67e86e,(_0x43e0e0=_0x581817['dataStream'])==null?'':_0x43e0e0)[0x0])==null?null:_0x416790:null;}function ze(_0x5df1b5,_0x2f415d){const _0x23da2f=_0x573451;var _0x5d1318,_0x4a15fc,_0x5f0252,_0x1843ec,_0x5448a9,_0x696e3d,_0x34e64b,_0x38acb7,_0x236b05,_0x49b980,_0x23827b,_0x4f056e,_0x400fe5,_0x1cb08d,_0x1f678c,_0x1ff12e,_0x563e13,_0x329ef2;let _0x41445b=_0xbc2f76['getInstance']();return[K(_0x41445b,[_0x23da2f(0x93),_0x23da2f(0xfe)],(_0x5d1318=_0x5df1b5[_0x23da2f(0x93)])==null?void 0x0:_0x5d1318[_0x23da2f(0xfe)],(_0x4a15fc=_0x2f415d[_0x23da2f(0x93)])==null?void 0x0:_0x4a15fc['dataStream']),K(_0x41445b,['body','paragraphs'],(_0x5f0252=_0x5df1b5[_0x23da2f(0x93)])==null?void 0x0:_0x5f0252['paragraphs'],(_0x1843ec=_0x2f415d[_0x23da2f(0x93)])==null?void 0x0:_0x1843ec[_0x23da2f(0xed)]),K(_0x41445b,[_0x23da2f(0x93),_0x23da2f(0x88)],(_0x5448a9=_0x5df1b5[_0x23da2f(0x93)])==null?void 0x0:_0x5448a9[_0x23da2f(0x88)],(_0x696e3d=_0x2f415d[_0x23da2f(0x93)])==null?void 0x0:_0x696e3d['sectionBreaks']),K(_0x41445b,['body',_0x23da2f(0x8f)],(_0x34e64b=_0x5df1b5[_0x23da2f(0x93)])==null?void 0x0:_0x34e64b['textRuns'],(_0x38acb7=_0x2f415d['body'])==null?void 0x0:_0x38acb7[_0x23da2f(0x8f)]),K(_0x41445b,[_0x23da2f(0x93),_0x23da2f(0x84)],(_0x236b05=_0x5df1b5['body'])==null?void 0x0:_0x236b05[_0x23da2f(0x84)],(_0x49b980=_0x2f415d[_0x23da2f(0x93)])==null?void 0x0:_0x49b980[_0x23da2f(0x84)]),K(_0x41445b,['body',_0x23da2f(0xd6)],(_0x23827b=_0x5df1b5['body'])==null?void 0x0:_0x23827b[_0x23da2f(0xd6)],(_0x4f056e=_0x2f415d[_0x23da2f(0x93)])==null?void 0x0:_0x4f056e[_0x23da2f(0xd6)]),K(_0x41445b,[_0x23da2f(0x93),_0x23da2f(0x103)],(_0x400fe5=_0x5df1b5[_0x23da2f(0x93)])==null?void 0x0:_0x400fe5[_0x23da2f(0x103)],(_0x1cb08d=_0x2f415d['body'])==null?void 0x0:_0x1cb08d[_0x23da2f(0x103)]),K(_0x41445b,[_0x23da2f(0x93),_0x23da2f(0xc4)],(_0x1f678c=_0x5df1b5['body'])==null?void 0x0:_0x1f678c['tables'],(_0x1ff12e=_0x2f415d[_0x23da2f(0x93)])==null?void 0x0:_0x1ff12e[_0x23da2f(0xc4)]),K(_0x41445b,['body','blockRanges'],(_0x563e13=_0x5df1b5['body'])==null?void 0x0:_0x563e13['blockRanges'],(_0x329ef2=_0x2f415d[_0x23da2f(0x93)])==null?void 0x0:_0x329ef2[_0x23da2f(0xc1)])][_0x23da2f(0xc2)](Boolean)['reduce']((_0x59c4c4,_0x1415c9)=>_0xbc2f76[_0x23da2f(0xbd)](_0x59c4c4,_0x1415c9),null);}function K(_0x268ab3,_0x3bcfcd,_0x285dd3,_0x31fcde){const _0x501c23=_0x573451;return _0x223860['diffValue'](_0x285dd3,_0x31fcde)?null:_0x268ab3[_0x501c23(0xe5)](_0x3bcfcd,_0x285dd3,_0x31fcde);}function q(_0x592d98,_0x555b6f,_0x1ed70a,_0xab345b,_0x553548){let _0x190ccd=ze(_0x1ed70a,_0xab345b);return _0x190ccd?!!_0x592d98['syncExecuteCommand'](_0x24f4de['id'],{'unitId':_0x555b6f,'actions':_0x190ccd,'textRanges':[{'startOffset':_0x553548,'endOffset':_0x553548,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const J='DOC_CODE_PLUGIN';var Be=_0x573451(0xf3),Ve=_0x573451(0xba);const Y={};function X(_0x1a937a,_0x52a710){return function(_0x4c8035,_0xace045){_0x52a710(_0x4c8035,_0xace045,_0x1a937a);};}function Z(_0xfd988d,_0x9776e7,_0xff47f9,_0x2ee177){const _0x5b29eb=_0x573451;var _0xf797b8=arguments[_0x5b29eb(0xb0)],_0x42f705=_0xf797b8<0x3?_0x9776e7:_0x2ee177===null?_0x2ee177=Object[_0x5b29eb(0x94)](_0x9776e7,_0xff47f9):_0x2ee177,_0x33de8c;if(typeof Reflect==_0x5b29eb(0x96)&&typeof Reflect['decorate']=='function')_0x42f705=Reflect[_0x5b29eb(0x83)](_0xfd988d,_0x9776e7,_0xff47f9,_0x2ee177);else{for(var _0xf5f42d=_0xfd988d[_0x5b29eb(0xb0)]-0x1;_0xf5f42d>=0x0;_0xf5f42d--)(_0x33de8c=_0xfd988d[_0xf5f42d])&&(_0x42f705=(_0xf797b8<0x3?_0x33de8c(_0x42f705):_0xf797b8>0x3?_0x33de8c(_0x9776e7,_0xff47f9,_0x42f705):_0x33de8c(_0x9776e7,_0xff47f9))||_0x42f705);}return _0xf797b8>0x3&&_0x42f705&&Object['defineProperty'](_0x9776e7,_0xff47f9,_0x42f705),_0x42f705;}let Q=class extends _0x31b9f9{constructor(_0xa86fa9,_0x13b184){const _0xdad63b=_0x573451;super(),this[_0xdad63b(0xa5)]=_0xa86fa9,this['_docsCodeModel']=_0x13b184,this[_0xdad63b(0xf8)]();}['_initResource'](){const _0x4e5f49=_0x573451;this[_0x4e5f49(0xc0)](this['_resourceManagerService'][_0x4e5f49(0xf2)]({'pluginName':J,'businesses':[_0x4a473f['UNIVER_DOC']],'toJson':_0x3a0fd4=>JSON[_0x4e5f49(0xab)](this['_docsCodeModel'][_0x4e5f49(0xea)](_0x3a0fd4)),'parseJson':_0x351a9a=>w(JSON[_0x4e5f49(0xdf)](_0x351a9a)),'onLoad':(_0x4e37c5,_0x458fcc)=>this[_0x4e5f49(0xd2)]['deserialize'](_0x4e37c5,_0x458fcc),'onUnLoad':_0x4cfec2=>this['_docsCodeModel']['removeUnit'](_0x4cfec2)}));}};Q=Z([X(0x0,_0x19351f),X(0x1,_0x51ccf3(H))],Q);let $=class extends _0x233ba5{constructor(_0x20ad97=Y,_0x300cab,_0x39f7a0,_0x27dca0){const _0x1d6e41=_0x573451;super(),this[_0x1d6e41(0xd3)]=_0x20ad97,this[_0x1d6e41(0xb5)]=_0x300cab,this[_0x1d6e41(0x9f)]=_0x39f7a0,this[_0x1d6e41(0xdd)]=_0x27dca0;let {..._0x56ffae}=_0x50d7aa({},Y,this[_0x1d6e41(0xd3)]);this['_configService'][_0x1d6e41(0x9b)](_0x1d6e41(0xaf),_0x56ffae);}[_0x573451(0x8a)](){const _0x40ada9=_0x573451;this['_injector'][_0x40ada9(0x108)]([H]),this[_0x40ada9(0xb5)][_0x40ada9(0x108)]([Q]),this[_0x40ada9(0xb5)][_0x40ada9(0xa2)](H),this['_injector'][_0x40ada9(0xa2)](Q),[U,Me,Pe,Fe,Ie,Ne][_0x40ada9(0xe0)](_0x12c532=>this['disposeWithMe'](this['_commandService']['registerCommand'](_0x12c532)));}};V($,_0x573451(0x8c),J),V($,'packageName',Be),V($,_0x573451(0xbc),Ve),V($,_0x573451(0xcf),_0x4a473f[_0x573451(0xbb)]),$=Z([_0x62210c(_0x1eeb83,_0xcb8284),X(0x1,_0x51ccf3(_0x31cf9d)),X(0x2,_0x9902cc),X(0x3,_0x34c159)],$);export{S as DEFAULT_CODE_CONFIG,J as DOCS_CODE_PLUGIN,Ie as DocsCodeCancelEmptyParagraphCommand,Ne as DocsCodeConsumeBoundaryDeleteCommand,Fe as DocsCodeExitCommand,Me as DocsCodeInsertBelowCommand,U as DocsCodeInsertCommand,H as DocsCodeModel,Pe as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,ue as buildCancelEmptyCodeParagraphActions,le as buildExitCodeActions,ae as buildInsertCodeActions,ce as buildUpdateCodeActions,fe as findCodeRangeAtOffset,pe as isCodeBoundaryDelete,C as normalizeDocsCodeConfig};
|
|
1
|
+
const _0x5eace4=_0x3364;(function(_0x2ffd56,_0xab6cb2){const _0x121d22=_0x3364,_0x495943=_0x2ffd56();while(!![]){try{const _0x359853=-parseInt(_0x121d22(0x1d4))/0x1*(-parseInt(_0x121d22(0x1b4))/0x2)+-parseInt(_0x121d22(0x197))/0x3+-parseInt(_0x121d22(0x1b3))/0x4+-parseInt(_0x121d22(0x1ba))/0x5*(parseInt(_0x121d22(0x172))/0x6)+-parseInt(_0x121d22(0x1e4))/0x7*(-parseInt(_0x121d22(0x183))/0x8)+parseInt(_0x121d22(0x1db))/0x9+parseInt(_0x121d22(0x1b1))/0xa*(parseInt(_0x121d22(0x1cd))/0xb);if(_0x359853===_0xab6cb2)break;else _0x495943['push'](_0x495943['shift']());}catch(_0x5eb2ea){_0x495943['push'](_0x495943['shift']());}}}(_0x1e34,0x94940));import{BuildTextUtils as _0x31aef0,CommandType as _0x3bdce4,DataStreamTreeTokenType as _0x12dc14,DependentOn as _0xa6c8c4,Disposable as _0x51061b,DocumentBlockRangeType as _0x1c5fe0,ICommandService as _0x58c777,IConfigService as _0x2d86d1,IResourceManagerService as _0x2879eb,IUniverInstanceService as _0x17a029,Inject as _0x3524d0,Injector as _0x1470b9,JSONX as _0x1b7758,Plugin as _0x5079f1,Tools as _0x282787,UniverInstanceType as _0x56e428,createParagraphId as _0x84f9b7,generateRandomId as _0x2ce6a6,merge as _0x1ce801}from'@univerjs/core';import{DocContentInsertService as _0x5d6321,DocSelectionManagerService as _0x129ce4,RichTextEditingMutation as _0x410cd0,UniverDocsPlugin as _0x72a19}from'@univerjs/docs';import{Subject as _0x29213d}from'rxjs';import{UniverLicensePlugin as _0x221e19}from'@univerjs-pro/license';const S={'language':_0x5eace4(0x176),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function C(_0x27fefe){return{...S,..._0x27fefe};}function w(_0x277b3e){const _0x15686f=_0x5eace4;var _0x3f7c55;let _0x348519=(_0x3f7c55=_0x277b3e==null?void 0x0:_0x277b3e['codes'])==null?{}:_0x3f7c55;return{'codes':Object['fromEntries'](Object[_0x15686f(0x1b9)](_0x348519)[_0x15686f(0x1ae)](([_0x457bf0,_0x4c406f])=>[_0x457bf0,C(_0x4c406f)]))};}function T(_0x26e53c,_0x2948c8,_0x1d3483){const _0xd4576d=_0x5eace4;let _0x77f5f3=w(_0x26e53c);return _0x77f5f3[_0xd4576d(0x19e)][_0x2948c8]=C({..._0x77f5f3['codes'][_0x2948c8],..._0x1d3483}),_0x77f5f3;}function re(_0x52ded8,_0x5943eb){const _0x1dd4a2=_0x5eace4;let _0x4ae8c1=w(_0x52ded8);return delete _0x4ae8c1[_0x1dd4a2(0x19e)][_0x5943eb],_0x4ae8c1;}const ie=_0x5eace4(0x17f);function ae(_0x20f9a5){const _0x1e32f8=_0x5eace4;var _0x77c8cc,_0x6bfb9d,_0x32a0ef;let _0x52f655=D(_0x20f9a5[_0x1e32f8(0x199)]),_0x5553b2=O(_0x52f655),_0x3db3fd=se(_0x20f9a5['startOffset'],_0x20f9a5[_0x1e32f8(0x1a0)]),_0x1562ef=_0x3db3fd?(_0x77c8cc=_0x5553b2[_0x1e32f8(0x1c0)])==null?void 0x0:_0x77c8cc[_0x1e32f8(0x1bf)](_0x554a4a=>_0x554a4a[_0x1e32f8(0x184)]===_0x3db3fd['startOffset']&&_0x554a4a['endIndex']+0x1===_0x3db3fd[_0x1e32f8(0x1a0)]):void 0x0,{startOffset:_0x566a99,endOffset:_0x482ff2}=_0x1562ef?_0x3db3fd:ye(_0x5553b2,_0x20f9a5[_0x1e32f8(0x17d)],_0x20f9a5[_0x1e32f8(0x1a0)]),_0xc20441=Se(_0x5553b2,_0x566a99,_0x482ff2),_0x385c83=(_0x6bfb9d=_0x1562ef==null?void 0x0:_0x1562ef[_0x1e32f8(0x187)])==null?_0x20f9a5[_0x1e32f8(0x187)]:_0x6bfb9d,_0x5a9447=T(_0x20f9a5[_0x1e32f8(0x1b5)],_0x385c83,{...S,..._0x20f9a5[_0x1e32f8(0x1d8)]});if(_0x1562ef)return _0x1562ef[_0x1e32f8(0x180)]=_0x1c5fe0[_0x1e32f8(0x1a7)],oe(_0x5553b2,_0x566a99,_0x482ff2),he(_0x5553b2,_0x566a99,_0x482ff2,_0xc20441),M(_0x5553b2,_0x1562ef),{'nextDocumentData':_0x52f655,'nextMetadata':_0x5a9447,'cursorOffset':_0x566a99+0x1};if(_0x566a99===_0x482ff2){var _0x2877ce,_0x570757;let _0x58528d=''+_0x12dc14[_0x1e32f8(0x1a8)]+_0x12dc14[_0x1e32f8(0x17b)]+_0x12dc14['BLOCK_END'];N(_0x5553b2,_0x566a99,_0x58528d,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x84f9b7(new Set((_0x2877ce=_0x5553b2[_0x1e32f8(0x1d5)])==null?void 0x0:_0x2877ce[_0x1e32f8(0x1ae)](_0x3f40ba=>_0x3f40ba[_0x1e32f8(0x1e1)]))),'paragraphStyle':E(!0x0,!0x0,_0xc20441)}],'blockRanges':[{'blockId':_0x385c83,'blockType':_0x1c5fe0[_0x1e32f8(0x1a7)],'startIndex':0x0,'endIndex':_0x58528d[_0x1e32f8(0x1da)]-0x1}]});let _0x1b673a=(_0x570757=_0x5553b2[_0x1e32f8(0x1c0)])==null?void 0x0:_0x570757[_0x1e32f8(0x1bf)](_0x278361=>_0x278361[_0x1e32f8(0x187)]===_0x385c83);return _0x1b673a&&M(_0x5553b2,_0x1b673a),{'nextDocumentData':_0x52f655,'nextMetadata':_0x5a9447,'cursorOffset':_0x566a99+0x1};}N(_0x5553b2,_0x482ff2,_0x12dc14[_0x1e32f8(0x186)]),N(_0x5553b2,_0x566a99,_0x12dc14[_0x1e32f8(0x1a8)]),he(_0x5553b2,_0x566a99,_0x482ff2+0x1,_0xc20441);let _0x12fd3e={'blockId':_0x385c83,'blockType':_0x1c5fe0['CODE'],'startIndex':_0x566a99,'endIndex':_0x482ff2+0x1};return _0x5553b2[_0x1e32f8(0x1c0)]=[...(_0x32a0ef=_0x5553b2[_0x1e32f8(0x1c0)])==null?[]:_0x32a0ef,_0x12fd3e][_0x1e32f8(0x1be)]((_0x304f5b,_0x321f3d)=>_0x304f5b[_0x1e32f8(0x184)]-_0x321f3d[_0x1e32f8(0x184)]),M(_0x5553b2,_0x12fd3e),{'nextDocumentData':_0x52f655,'nextMetadata':_0x5a9447,'cursorOffset':_0x566a99+0x1};}function oe(_0x14c378,_0x10f03c,_0x1a1710){const _0x1f3e09=_0x5eace4;var _0x3ac443;((_0x3ac443=_0x14c378[_0x1f3e09(0x1d5)])==null?[]:_0x3ac443)[_0x1f3e09(0x18c)](_0x4e2b1d=>_0x4e2b1d[_0x1f3e09(0x184)]>_0x10f03c&&_0x4e2b1d[_0x1f3e09(0x184)]<_0x1a1710)[_0x1f3e09(0x1eb)](_0x46294c=>{const _0x111e61=_0x1f3e09;var _0x288f84;let _0x2f0219={...(_0x288f84=_0x46294c['paragraphStyle'])==null?{}:_0x288f84};delete _0x2f0219[_0x111e61(0x195)],delete _0x2f0219['spaceBelow'],_0x46294c[_0x111e61(0x17c)]=_0x2f0219;});}function se(_0x21fad5,_0x1b7500){const _0x2f74c6=_0x5eace4;return _0x21fad5==null||_0x1b7500==null||_0x21fad5===_0x1b7500?null:{'startOffset':Math[_0x2f74c6(0x1a4)](_0x21fad5,_0x1b7500),'endOffset':Math[_0x2f74c6(0x1b8)](_0x21fad5,_0x1b7500)};}function ce(_0x3316b3){const _0x1ca8b2=_0x5eace4;return{'nextDocumentData':D(_0x3316b3[_0x1ca8b2(0x199)]),'nextMetadata':T(_0x3316b3['metadata'],_0x3316b3[_0x1ca8b2(0x187)],_0x3316b3['config']),'cursorOffset':0x0};}function le(_0xbbb9de){const _0x49a686=_0x5eace4;var _0xca5294,_0x56dbc3;let _0x1eef71=D(_0xbbb9de[_0x49a686(0x199)]),_0x3f57f2=O(_0x1eef71),_0x1b2c04=me(_0x3f57f2,_0xbbb9de[_0x49a686(0x18e)]);if(!_0x1b2c04)return null;let _0x27c631=_e(_0x3f57f2,_0x1b2c04),_0x11997e=_0x27c631[_0x27c631[_0x49a686(0x1da)]-0x1];if(!_0x11997e||!ve(_0x3f57f2,_0x1b2c04,_0x11997e)||_0xbbb9de[_0x49a686(0x18e)]<_0x11997e[_0x49a686(0x184)])return null;let _0x416a4b=A(_0x3f57f2,_0x1b2c04,_0x11997e);if(_0x416a4b>=_0x1b2c04[_0x49a686(0x19f)])return null;_0x3f57f2[_0x49a686(0x1ec)]=[_0x3f57f2[_0x49a686(0x1ec)][_0x49a686(0x1c1)](0x0,_0x416a4b),_0x12dc14[_0x49a686(0x186)],_0x3f57f2[_0x49a686(0x1ec)][_0x49a686(0x1c1)](_0x416a4b,_0x1b2c04[_0x49a686(0x19f)]),_0x3f57f2[_0x49a686(0x1ec)][_0x49a686(0x1c1)](_0x1b2c04['endIndex']+0x1)][_0x49a686(0x171)](''),R(_0x3f57f2[_0x49a686(0x1d5)],_0x416a4b,_0x1b2c04[_0x49a686(0x19f)],0x1),R(_0x3f57f2['sectionBreaks'],_0x416a4b,_0x1b2c04[_0x49a686(0x19f)],0x1),R(_0x3f57f2['customBlocks'],_0x416a4b,_0x1b2c04[_0x49a686(0x19f)],0x1),ke(_0x3f57f2['textRuns'],_0x416a4b,_0x1b2c04['endIndex'],0x1),z(_0x3f57f2[_0x49a686(0x198)],_0x416a4b,_0x1b2c04['endIndex'],0x1),z(_0x3f57f2[_0x49a686(0x1d1)],_0x416a4b,_0x1b2c04[_0x49a686(0x19f)],0x1),z(_0x3f57f2[_0x49a686(0x1ed)],_0x416a4b,_0x1b2c04[_0x49a686(0x19f)],0x1),(_0xca5294=_0x3f57f2[_0x49a686(0x1c0)])==null||_0xca5294['forEach'](_0xd7b962=>{const _0x75ffde=_0x49a686;_0xd7b962===_0x1b2c04||_0xd7b962[_0x75ffde(0x187)]===_0x1b2c04['blockId']?_0xd7b962[_0x75ffde(0x19f)]=_0x416a4b:_0xd7b962[_0x75ffde(0x184)]>=_0x416a4b&&_0xd7b962[_0x75ffde(0x184)]<_0x1b2c04[_0x75ffde(0x19f)]&&(_0xd7b962[_0x75ffde(0x184)]+=0x1,_0xd7b962[_0x75ffde(0x19f)]+=0x1);});let _0xb09f3d=_e(_0x3f57f2,{..._0x1b2c04,'endIndex':_0x416a4b});_0xb09f3d[_0x49a686(0x1eb)]((_0x1a0373,_0x175685)=>{const _0x239e8c=_0x49a686;var _0x599144;_0x1a0373[_0x239e8c(0x17c)]={...(_0x599144=_0x1a0373[_0x239e8c(0x17c)])==null?{}:_0x599144,...E(_0x175685===0x0,_0x175685===_0xb09f3d['length']-0x1)};});let _0x7672fa=(_0x56dbc3=_0x3f57f2[_0x49a686(0x1d5)])==null?void 0x0:_0x56dbc3['find'](_0x510ce5=>_0x510ce5[_0x49a686(0x184)]===_0x416a4b+0x1);return _0x7672fa&&(_0x7672fa[_0x49a686(0x17c)]=ge(_0x7672fa[_0x49a686(0x17c)])),{'nextDocumentData':_0x1eef71,'cursorOffset':_0x416a4b+0x1};}function ue(_0x563605){const _0x33f566=_0x5eace4;let _0x48f01c=D(_0x563605[_0x33f566(0x199)]),_0x22fe98=O(_0x48f01c),_0x50ecaf=me(_0x22fe98,_0x563605[_0x33f566(0x18e)]);return _0x50ecaf&&de(_0x48f01c,_0x22fe98,_0x50ecaf,_0x563605[_0x33f566(0x18e)],_0x563605[_0x33f566(0x17e)])||null;}function de(_0x23c70d,_0x5f2a5a,_0x38ca53,_0x2bceda,_0x56e517){const _0x3221af=_0x5eace4;let _0x43cb7a=we(_0x5f2a5a,_0x38ca53,_0x2bceda,_0x56e517);if(!_0x43cb7a)return null;let _0x5da1a7=_0x43cb7a['endTokenOffset']-0x1;return Te(_0x5f2a5a,_0x43cb7a['paragraph'][_0x3221af(0x184)],_0x43cb7a[_0x3221af(0x1b2)][_0x3221af(0x184)]+0x1),{'nextDocumentData':_0x23c70d,'cursorOffset':_0x5da1a7};}function fe(_0x2b51fc,_0x311373){const _0x1faf18=_0x5eace4;var _0x5b3b9c;return _0x2b51fc==null||(_0x5b3b9c=_0x2b51fc[_0x1faf18(0x1c0)])==null?void 0x0:_0x5b3b9c[_0x1faf18(0x1bf)](_0x534d81=>_0x534d81['blockType']===_0x1c5fe0[_0x1faf18(0x1a7)]&&_0x534d81[_0x1faf18(0x184)]<=_0x311373&&_0x311373<=_0x534d81['endIndex']);}function pe(_0x5ec5cd){const _0x343f32=_0x5eace4;var _0x29250f;let _0x3d0f16=_0x5ec5cd['documentData'][_0x343f32(0x1c3)];if(!_0x3d0f16)return!0x1;let _0x4fcba6=_0x5ec5cd[_0x343f32(0x1a9)]===_0x343f32(0x182)?_0x5ec5cd[_0x343f32(0x18e)]-0x1:_0x5ec5cd[_0x343f32(0x18e)],_0x297a38=_0x5ec5cd['direction']===_0x343f32(0x1f4)?_0x5ec5cd[_0x343f32(0x18e)]+0x1:_0x4fcba6;return((_0x29250f=_0x3d0f16[_0x343f32(0x1c0)])==null?[]:_0x29250f)['some'](_0x147f5d=>_0x147f5d[_0x343f32(0x180)]===_0x1c5fe0[_0x343f32(0x1a7)]?_0x4fcba6===_0x147f5d[_0x343f32(0x184)]||_0x4fcba6===_0x147f5d[_0x343f32(0x19f)]||_0x297a38===_0x147f5d[_0x343f32(0x184)]||_0x297a38===_0x147f5d['endIndex']:!0x1);}function me(_0x4d17f4,_0x104728){const _0x1f36d6=_0x5eace4;var _0x5c0224;return(_0x5c0224=_0x4d17f4['blockRanges'])==null?void 0x0:_0x5c0224[_0x1f36d6(0x1bf)](_0x399d64=>{const _0x1e873f=_0x1f36d6;let _0x24c421=j(_0x4d17f4,_0x399d64);return _0x399d64[_0x1e873f(0x180)]===_0x1c5fe0[_0x1e873f(0x1a7)]&&_0x399d64[_0x1e873f(0x184)]<=_0x104728&&_0x104728<=_0x24c421+0x2;});}function E(_0x256ce1,_0x3eec76,_0x4cd97c=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x256ce1&&_0x4cd97c?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ie,'fs':0xc}};}function he(_0x1b0125,_0x1bcd4e,_0x39f6ac,_0x32afa7=!0x1){const _0x513b40=_0x5eace4;var _0x3f7fcc;let _0xac33ea=((_0x3f7fcc=_0x1b0125[_0x513b40(0x1d5)])==null?[]:_0x3f7fcc)[_0x513b40(0x18c)](_0x346727=>_0x346727[_0x513b40(0x184)]>_0x1bcd4e&&_0x346727['startIndex']<_0x39f6ac);_0xac33ea['forEach']((_0x25e7c3,_0x30dd67)=>{const _0x173bbe=_0x513b40;var _0xc4f340;_0x25e7c3[_0x173bbe(0x17c)]={...(_0xc4f340=_0x25e7c3['paragraphStyle'])==null?{}:_0xc4f340,...E(_0x30dd67===0x0,_0x30dd67===_0xac33ea[_0x173bbe(0x1da)]-0x1,_0x32afa7)};});}function _0x3364(_0x373af6,_0x4580b9){_0x373af6=_0x373af6-0x171;const _0x1e349b=_0x1e34();let _0x336465=_0x1e349b[_0x373af6];return _0x336465;}function ge(_0x5686f3){const _0x4c5f68=_0x5eace4;var _0x3ee7ad,_0xfc8eae;let _0x2b6066={..._0x5686f3==null?{}:_0x5686f3};return delete _0x2b6066[_0x4c5f68(0x1c5)],delete _0x2b6066['indentStart'],delete _0x2b6066[_0x4c5f68(0x195)],delete _0x2b6066['spaceBelow'],((_0x3ee7ad=_0x2b6066[_0x4c5f68(0x1df)])==null?void 0x0:_0x3ee7ad['ff'])===ie&&((_0xfc8eae=_0x2b6066[_0x4c5f68(0x1df)])==null?void 0x0:_0xfc8eae['fs'])===0xc&&delete _0x2b6066[_0x4c5f68(0x1df)],_0x2b6066;}function _e(_0x52206a,_0x3e81fb){const _0x373e81=_0x5eace4;var _0x193e00;let _0x3612b7=j(_0x52206a,_0x3e81fb);return((_0x193e00=_0x52206a[_0x373e81(0x1d5)])==null?[]:_0x193e00)[_0x373e81(0x18c)](_0x5d1c12=>_0x5d1c12[_0x373e81(0x184)]>_0x3e81fb[_0x373e81(0x184)]&&_0x5d1c12[_0x373e81(0x184)]<_0x3612b7);}function _0x1e34(){const _0x415eb9=['getTextRanges','every','spaceAbove','Document\x20body\x20is\x20required','2530557cCjiLt','tables','documentData','dispose','sectionBreaks','asObservable','call','codes','endIndex','endOffset','textRuns','parse','customBlocks','min','registerPluginResource','some','CODE','BLOCK_START','direction','pluginName','setCodeConfig','getInstance','nextMetadata','map','complete','compose','360XFmVoQ','paragraph','1654396tkWLNw','49176FVqAFu','metadata','symbol','UNIVER_DOC','max','entries','4644175qTGwqX','_resources','docs-code.command.exit','syncExecuteCommand','sort','find','blockRanges','slice','unitId','body','removeCode','indentEnd','docs-code.command.consume-boundary-delete','change$','_resourceManagerService','docs-code.command.cancel-empty-paragraph','getOwnPropertyDescriptor','prototype','get','580118wPEXcI','getUnitId','getUniverDocInstance','version','customRanges','deserialize','onStarting','21BABsDQ','paragraphs','deepClone','getSnapshot','config','type','length','1954782mHGedq','stringify','removeUnit','_docsCodeModel','textStyle','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','paragraphId','endsWith','reduce','385vJWUTu','from','_commandService','_setResource','default','getCurrentUnitOfType','previousDocumentData','forEach','dataStream','customDecorations','registerCommand','next','object','add','string','model','right','join','6RXSwXa','getBody','DOC_CODE_PLUGIN','clear','javascript','docs-code.command.insert-below','set','setConfig','nextDocumentData','PARAGRAPH','paragraphStyle','startOffset','paragraphStartIndex','monospace','blockType','commandService','left','23624lhHHea','startIndex','_initResource','BLOCK_END','blockId','COMMAND','function','_injector','disposeWithMe','filter','_configService','cursorOffset','replaceOp','serialize','defineProperty','_change$'];_0x1e34=function(){return _0x415eb9;};return _0x1e34();}function ve(_0x11a3f4,_0x11ab29,_0x56e73c){const _0x507231=_0x5eace4;let _0x7d5784=A(_0x11a3f4,_0x11ab29,_0x56e73c),_0x256d1a=_0x11a3f4[_0x507231(0x1ec)][_0x507231(0x1c1)](_0x7d5784,_0x56e73c[_0x507231(0x184)]);return Array['from'](_0x256d1a)[_0x507231(0x194)](_0x53b3b2=>_0x53b3b2===_0x12dc14[_0x507231(0x1a8)]||_0x53b3b2===_0x12dc14['BLOCK_END']);}function D(_0x57bee6){const _0x2456ce=_0x5eace4;return _0x282787[_0x2456ce(0x1d6)](_0x57bee6);}function O(_0x325f9d){const _0x3a0294=_0x5eace4;if(!_0x325f9d['body'])throw Error(_0x3a0294(0x196));return _0x325f9d[_0x3a0294(0x1c3)];}function ye(_0x5c96ae,_0x1563f1,_0x5e94c6){const _0x574d80=_0x5eace4;if(_0x1563f1==null||_0x5e94c6==null){let _0x316a5b=xe(_0x5c96ae);return{'startOffset':_0x316a5b,'endOffset':_0x316a5b};}let _0x47fded=Math[_0x574d80(0x1a4)](_0x1563f1,_0x5e94c6),_0x21921d=Math[_0x574d80(0x1b8)](_0x1563f1,_0x5e94c6);if(_0x47fded===_0x21921d){let _0xa9b12b=be(_0x5c96ae,_0x47fded);return{'startOffset':_0xa9b12b,'endOffset':_0xa9b12b};}return Ce(_0x5c96ae,_0x47fded,_0x21921d);}function be(_0x270064,_0x9d1c18){const _0x2a9e6e=_0x5eace4;return _0x9d1c18===0x0&&_0x270064[_0x2a9e6e(0x1ec)][0x0]===_0x12dc14[_0x2a9e6e(0x17b)]?0x1:_0x9d1c18;}function xe(_0x2404ef){const _0x11b732=_0x5eace4;return _0x2404ef[_0x11b732(0x1ec)][_0x11b732(0x1e2)](_0x12dc14['SECTION_BREAK'])?Math[_0x11b732(0x1b8)](0x0,_0x2404ef[_0x11b732(0x1ec)]['length']-0x1):_0x2404ef[_0x11b732(0x1ec)]['length'];}function Se(_0x4dc5c9,_0x4367f5,_0x168f9a){const _0x4018a4=_0x5eace4;var _0x22392e;let _0x5e5415=Math[_0x4018a4(0x1a4)](_0x4367f5,_0x168f9a),_0x30c497=Math[_0x4018a4(0x1b8)](_0x4367f5,_0x168f9a);return!!((_0x22392e=_0x4dc5c9['tables'])!=null&&_0x22392e[_0x4018a4(0x1a6)](_0x210736=>_0x5e5415>_0x210736[_0x4018a4(0x184)]&&_0x5e5415<_0x210736[_0x4018a4(0x19f)]||_0x30c497>_0x210736[_0x4018a4(0x184)]&&_0x30c497<_0x210736[_0x4018a4(0x19f)]||_0x5e5415<=_0x210736[_0x4018a4(0x184)]&&_0x30c497>=_0x210736['endIndex']));}function Ce(_0x2ef870,_0x16d44a,_0x107c82){const _0x4ed3b0=_0x5eace4;var _0x2c6fc6,_0x4ab699;let _0xab2e6e=[...(_0x2c6fc6=_0x2ef870[_0x4ed3b0(0x1d5)])==null?[]:_0x2c6fc6][_0x4ed3b0(0x1be)]((_0x43ac61,_0x5ee2fe)=>_0x43ac61['startIndex']-_0x5ee2fe['startIndex']),_0x4e56ce=_0xab2e6e['find']((_0xdb8d66,_0x3b18fc)=>(_0x3b18fc===0x0?0x0:_0xab2e6e[_0x3b18fc-0x1]['startIndex']+0x1)<=_0x16d44a&&_0x16d44a<=_0xdb8d66[_0x4ed3b0(0x184)]),_0x33498e=(_0x4ab699=_0xab2e6e['find'](_0x5c0f23=>_0x5c0f23[_0x4ed3b0(0x184)]>=_0x107c82-0x1))==null?_0xab2e6e[_0xab2e6e[_0x4ed3b0(0x1da)]-0x1]:_0x4ab699;return{'startOffset':_0x4e56ce?k(_0xab2e6e,_0x4e56ce):_0x16d44a,'endOffset':_0x33498e?_0x33498e['startIndex']+0x1:_0x107c82};}function k(_0x58df61,_0x58eb4c){const _0x3a2a6d=_0x5eace4;let _0x46c139=_0x58df61['indexOf'](_0x58eb4c);return _0x46c139>0x0?_0x58df61[_0x46c139-0x1][_0x3a2a6d(0x184)]+0x1:0x0;}function A(_0x45a0fc,_0x279ec9,_0x7599fc){const _0x10653c=_0x5eace4;var _0x404462;return Math[_0x10653c(0x1b8)](k((_0x404462=_0x45a0fc['paragraphs'])==null?[]:_0x404462,_0x7599fc),_0x279ec9[_0x10653c(0x184)]+0x1);}function j(_0x19f279,_0x3b842e){const _0x378a2f=_0x5eace4;return _0x19f279['dataStream'][_0x3b842e['endIndex']]===_0x12dc14['BLOCK_END']?_0x3b842e[_0x378a2f(0x19f)]:_0x19f279[_0x378a2f(0x1ec)][_0x3b842e[_0x378a2f(0x19f)]+0x1]===_0x12dc14[_0x378a2f(0x186)]?_0x3b842e['endIndex']+0x1:_0x3b842e[_0x378a2f(0x19f)];}function we(_0x172c61,_0x5601f8,_0x33c153,_0x55f60b){const _0x26c6d1=_0x5eace4;var _0x139ee8,_0x2ab262;let _0x3f26de=j(_0x172c61,_0x5601f8),_0x5ab271=((_0x139ee8=_0x172c61['paragraphs'])==null?[]:_0x139ee8)[_0x26c6d1(0x1bf)](_0x4f52f1=>_0x4f52f1[_0x26c6d1(0x184)]===_0x3f26de+0x1);if(!_0x5ab271||_0x55f60b!=null&&_0x5ab271[_0x26c6d1(0x184)]!==_0x55f60b||_0x33c153<_0x3f26de||_0x33c153>_0x5ab271[_0x26c6d1(0x184)]+0x1||_0x172c61[_0x26c6d1(0x1ec)][_0x5ab271['startIndex']]!==_0x12dc14[_0x26c6d1(0x17b)])return null;let _0x3ceea2=k((_0x2ab262=_0x172c61[_0x26c6d1(0x1d5)])==null?[]:_0x2ab262,_0x5ab271),_0x895a33=_0x172c61[_0x26c6d1(0x1ec)][_0x26c6d1(0x1c1)](_0x3ceea2,_0x5ab271[_0x26c6d1(0x184)]);return Array[_0x26c6d1(0x1e5)](_0x895a33)[_0x26c6d1(0x194)](_0x1eb594=>_0x1eb594===_0x12dc14['BLOCK_END'])?{'paragraph':_0x5ab271,'endTokenOffset':_0x3f26de}:null;}function M(_0x3c6e8c,_0xfdfdac){const _0x262065=_0x5eace4;var _0x6406df;let _0xfa1acf=j(_0x3c6e8c,_0xfdfdac),_0x149c7e=_0x3c6e8c[_0x262065(0x1ec)][_0xfa1acf+0x1];_0x149c7e!==_0x12dc14['SECTION_BREAK']&&_0x149c7e!==void 0x0||N(_0x3c6e8c,_0xfa1acf+0x1,_0x12dc14[_0x262065(0x17b)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x84f9b7(new Set((_0x6406df=_0x3c6e8c['paragraphs'])==null?void 0x0:_0x6406df[_0x262065(0x1ae)](_0x3113bc=>_0x3113bc[_0x262065(0x1e1)])))}]});}function N(_0x47de18,_0x193b13,_0xd4a325,_0x16f117={}){const _0x1bca14=_0x5eace4;var _0x511f1c,_0xed39ee;if(_0xd4a325){if(_0x47de18[_0x1bca14(0x1ec)]=''+_0x47de18[_0x1bca14(0x1ec)][_0x1bca14(0x1c1)](0x0,_0x193b13)+_0xd4a325+_0x47de18['dataStream'][_0x1bca14(0x1c1)](_0x193b13),Ee(_0x47de18,_0x193b13,_0xd4a325[_0x1bca14(0x1da)]),(_0x511f1c=_0x16f117[_0x1bca14(0x1d5)])!=null&&_0x511f1c['length']){var _0x41243b;_0x47de18['paragraphs']=[...(_0x41243b=_0x47de18[_0x1bca14(0x1d5)])==null?[]:_0x41243b,..._0x16f117[_0x1bca14(0x1d5)][_0x1bca14(0x1ae)](_0x5ecb19=>({..._0x5ecb19,'startIndex':_0x5ecb19[_0x1bca14(0x184)]+_0x193b13}))][_0x1bca14(0x1be)]((_0x2b6997,_0x4c5213)=>_0x2b6997[_0x1bca14(0x184)]-_0x4c5213[_0x1bca14(0x184)]);}if((_0xed39ee=_0x16f117[_0x1bca14(0x1c0)])!=null&&_0xed39ee[_0x1bca14(0x1da)]){var _0x3d438d;_0x47de18[_0x1bca14(0x1c0)]=[...(_0x3d438d=_0x47de18[_0x1bca14(0x1c0)])==null?[]:_0x3d438d,..._0x16f117[_0x1bca14(0x1c0)][_0x1bca14(0x1ae)](_0x1e91d2=>({..._0x1e91d2,'startIndex':_0x1e91d2[_0x1bca14(0x184)]+_0x193b13,'endIndex':_0x1e91d2[_0x1bca14(0x19f)]+_0x193b13}))]['sort']((_0x48509c,_0x3a1eeb)=>_0x48509c[_0x1bca14(0x184)]-_0x3a1eeb['startIndex']);}}}function Te(_0x587f05,_0x5c3783,_0x1909a1){const _0x956cbf=_0x5eace4;let _0xe9c056=_0x1909a1-_0x5c3783;_0x587f05['dataStream']=''+_0x587f05[_0x956cbf(0x1ec)][_0x956cbf(0x1c1)](0x0,_0x5c3783)+_0x587f05[_0x956cbf(0x1ec)][_0x956cbf(0x1c1)](_0x1909a1),De(_0x587f05,_0x5c3783,_0xe9c056);}function Ee(_0x52067f,_0x5f4840,_0x1379d5){const _0x37b587=_0x5eace4;_0x52067f[_0x37b587(0x1d5)]=P(_0x52067f['paragraphs'],_0x5f4840,_0x1379d5),_0x52067f['sectionBreaks']=P(_0x52067f[_0x37b587(0x19b)],_0x5f4840,_0x1379d5),_0x52067f['customBlocks']=P(_0x52067f['customBlocks'],_0x5f4840,_0x1379d5),_0x52067f['textRuns']=Oe(_0x52067f['textRuns'],_0x5f4840,_0x1379d5),_0x52067f['tables']=I(_0x52067f['tables'],_0x5f4840,_0x1379d5),_0x52067f[_0x37b587(0x1d1)]=I(_0x52067f[_0x37b587(0x1d1)],_0x5f4840,_0x1379d5),_0x52067f[_0x37b587(0x1ed)]=I(_0x52067f[_0x37b587(0x1ed)],_0x5f4840,_0x1379d5),_0x52067f[_0x37b587(0x1c0)]=I(_0x52067f[_0x37b587(0x1c0)],_0x5f4840,_0x1379d5);}function De(_0x1dfe11,_0x25c05a,_0x427c8f){const _0x3f1b26=_0x5eace4;var _0x893005,_0x4cc43f;_0x1dfe11[_0x3f1b26(0x1d5)]=F(_0x1dfe11[_0x3f1b26(0x1d5)],_0x25c05a,_0x427c8f),_0x1dfe11['sectionBreaks']=F(_0x1dfe11[_0x3f1b26(0x19b)],_0x25c05a,_0x427c8f),_0x1dfe11[_0x3f1b26(0x1a3)]=F(_0x1dfe11[_0x3f1b26(0x1a3)],_0x25c05a,_0x427c8f),_0x1dfe11[_0x3f1b26(0x1a1)]=(_0x893005=L((_0x4cc43f=_0x1dfe11[_0x3f1b26(0x1a1)])==null?void 0x0:_0x4cc43f['map'](_0x11395b=>({..._0x11395b,'startIndex':_0x11395b['st'],'endIndex':_0x11395b['ed']})),_0x25c05a,_0x427c8f))==null?void 0x0:_0x893005[_0x3f1b26(0x1ae)](_0x2672e2=>{let {startIndex:_0xe6a602,endIndex:_0x256095,..._0x251c4a}=_0x2672e2;return{..._0x251c4a,'st':_0xe6a602,'ed':_0x256095};}),_0x1dfe11['tables']=L(_0x1dfe11[_0x3f1b26(0x198)],_0x25c05a,_0x427c8f),_0x1dfe11[_0x3f1b26(0x1d1)]=L(_0x1dfe11[_0x3f1b26(0x1d1)],_0x25c05a,_0x427c8f),_0x1dfe11['customDecorations']=L(_0x1dfe11['customDecorations'],_0x25c05a,_0x427c8f),_0x1dfe11[_0x3f1b26(0x1c0)]=L(_0x1dfe11[_0x3f1b26(0x1c0)],_0x25c05a,_0x427c8f);}function P(_0xdbae15,_0x45ddc3,_0x358651){const _0x264f58=_0x5eace4;return _0xdbae15==null?void 0x0:_0xdbae15[_0x264f58(0x1ae)](_0x106056=>_0x106056[_0x264f58(0x184)]>=_0x45ddc3?{..._0x106056,'startIndex':_0x106056[_0x264f58(0x184)]+_0x358651}:_0x106056);}function F(_0x2ee65a,_0x552820,_0x400d81){const _0x554f2f=_0x5eace4;let _0x2a870d=_0x552820+_0x400d81;return _0x2ee65a==null?void 0x0:_0x2ee65a[_0x554f2f(0x1ae)](_0x589b52=>_0x589b52['startIndex']>=_0x552820&&_0x589b52[_0x554f2f(0x184)]<_0x2a870d?null:_0x589b52[_0x554f2f(0x184)]>=_0x2a870d?{..._0x589b52,'startIndex':_0x589b52[_0x554f2f(0x184)]-_0x400d81}:_0x589b52)[_0x554f2f(0x18c)](_0xcc03df=>_0xcc03df!=null);}function Oe(_0x3db0bf,_0x226913,_0x5bd198){return _0x3db0bf==null?void 0x0:_0x3db0bf['map'](_0x915c8a=>_0x915c8a['st']>=_0x226913?{..._0x915c8a,'st':_0x915c8a['st']+_0x5bd198,'ed':_0x915c8a['ed']+_0x5bd198}:_0x915c8a['ed']>_0x226913?{..._0x915c8a,'ed':_0x915c8a['ed']+_0x5bd198}:_0x915c8a);}function I(_0x193b62,_0x209794,_0x2917a8){const _0x3c422b=_0x5eace4;return _0x193b62==null?void 0x0:_0x193b62[_0x3c422b(0x1ae)](_0x260935=>_0x260935[_0x3c422b(0x184)]>=_0x209794?{..._0x260935,'startIndex':_0x260935[_0x3c422b(0x184)]+_0x2917a8,'endIndex':_0x260935[_0x3c422b(0x19f)]+_0x2917a8}:_0x260935[_0x3c422b(0x19f)]>=_0x209794?{..._0x260935,'endIndex':_0x260935['endIndex']+_0x2917a8}:_0x260935);}function L(_0x28372b,_0x374274,_0x35b1b6){const _0x18de96=_0x5eace4;let _0x1e5987=_0x374274+_0x35b1b6;return _0x28372b==null?void 0x0:_0x28372b[_0x18de96(0x1ae)](_0x19d19a=>_0x19d19a[_0x18de96(0x184)]>=_0x374274&&_0x19d19a[_0x18de96(0x19f)]<_0x1e5987?null:_0x19d19a[_0x18de96(0x184)]>=_0x1e5987?{..._0x19d19a,'startIndex':_0x19d19a[_0x18de96(0x184)]-_0x35b1b6,'endIndex':_0x19d19a[_0x18de96(0x19f)]-_0x35b1b6}:_0x19d19a[_0x18de96(0x19f)]>=_0x374274?{..._0x19d19a,'startIndex':_0x19d19a['startIndex']<_0x374274?_0x19d19a[_0x18de96(0x184)]:_0x374274,'endIndex':Math['max'](_0x374274,_0x19d19a[_0x18de96(0x19f)]-_0x35b1b6)}:_0x19d19a)[_0x18de96(0x18c)](_0x1f54df=>_0x1f54df!=null);}function R(_0x24d7da,_0x54f448,_0x46b6bd,_0x35a166){const _0x18fd9c=_0x5eace4;_0x24d7da==null||_0x24d7da[_0x18fd9c(0x1eb)](_0x22c2be=>{const _0x1ebd50=_0x18fd9c;_0x22c2be[_0x1ebd50(0x184)]>=_0x54f448&&_0x22c2be[_0x1ebd50(0x184)]<_0x46b6bd&&(_0x22c2be['startIndex']+=_0x35a166);});}function ke(_0x315d7b,_0x105690,_0x5392d3,_0x29cb5e){const _0x2b4e8f=_0x5eace4;_0x315d7b==null||_0x315d7b[_0x2b4e8f(0x1eb)](_0x508749=>{_0x508749['st']>=_0x105690&&_0x508749['st']<_0x5392d3?(_0x508749['st']+=_0x29cb5e,_0x508749['ed']+=_0x29cb5e):_0x508749['ed']>_0x105690&&_0x508749['ed']<_0x5392d3&&(_0x508749['ed']+=_0x29cb5e);});}function z(_0x5873e3,_0x390724,_0x3f7c3d,_0x2048d7){_0x5873e3==null||_0x5873e3['forEach'](_0x3cb2f6=>{const _0x4e1f83=_0x3364;_0x3cb2f6['startIndex']>=_0x390724&&_0x3cb2f6[_0x4e1f83(0x184)]<_0x3f7c3d?(_0x3cb2f6[_0x4e1f83(0x184)]+=_0x2048d7,_0x3cb2f6[_0x4e1f83(0x19f)]+=_0x2048d7):_0x3cb2f6['endIndex']>_0x390724&&_0x3cb2f6[_0x4e1f83(0x19f)]<_0x3f7c3d&&(_0x3cb2f6['endIndex']+=_0x2048d7);});}function B(_0x1a6a05){'@babel/helpers - typeof';const _0x287592=_0x5eace4;return B=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x287592(0x1b6)?function(_0x1120f8){return typeof _0x1120f8;}:function(_0x19d7b1){const _0x3ede9e=_0x287592;return _0x19d7b1&&typeof Symbol==_0x3ede9e(0x189)&&_0x19d7b1['constructor']===Symbol&&_0x19d7b1!==Symbol[_0x3ede9e(0x1cb)]?_0x3ede9e(0x1b6):typeof _0x19d7b1;},B(_0x1a6a05);}function Ae(_0x5228e8,_0x45e6f4){const _0x1b1a1a=_0x5eace4;if(B(_0x5228e8)!=_0x1b1a1a(0x1f0)||!_0x5228e8)return _0x5228e8;var _0x3eaaa2=_0x5228e8[Symbol['toPrimitive']];if(_0x3eaaa2!==void 0x0){var _0x4ccb1c=_0x3eaaa2[_0x1b1a1a(0x19d)](_0x5228e8,_0x45e6f4||_0x1b1a1a(0x1e8));if(B(_0x4ccb1c)!=_0x1b1a1a(0x1f0))return _0x4ccb1c;throw TypeError(_0x1b1a1a(0x1e0));}return(_0x45e6f4===_0x1b1a1a(0x1f2)?String:Number)(_0x5228e8);}function je(_0x550943){const _0x27d920=_0x5eace4;var _0x186449=Ae(_0x550943,'string');return B(_0x186449)==_0x27d920(0x1b6)?_0x186449:_0x186449+'';}function V(_0x187233,_0x4bb3fb,_0x4f2b2d){return(_0x4bb3fb=je(_0x4bb3fb))in _0x187233?Object['defineProperty'](_0x187233,_0x4bb3fb,{'value':_0x4f2b2d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x187233[_0x4bb3fb]=_0x4f2b2d,_0x187233;}var H=class extends _0x51061b{constructor(..._0x2a3d13){const _0x1ec67f=_0x5eace4;super(..._0x2a3d13),V(this,_0x1ec67f(0x1bb),new Map()),V(this,_0x1ec67f(0x192),new _0x29213d()),V(this,_0x1ec67f(0x1c7),this[_0x1ec67f(0x192)][_0x1ec67f(0x19c)]());}['getCodeConfig'](_0x43822f,_0x25ed91){const _0x15a316=_0x5eace4;return w(this[_0x15a316(0x1bb)][_0x15a316(0x1cc)](_0x43822f))[_0x15a316(0x19e)][_0x25ed91];}[_0x5eace4(0x1ab)](_0xd4de10,_0x518d40,_0x2e4517){const _0x5cd362=_0x5eace4;this['_setResource'](_0xd4de10,_0x518d40,T(this[_0x5cd362(0x1bb)][_0x5cd362(0x1cc)](_0xd4de10),_0x518d40,_0x2e4517));}[_0x5eace4(0x1c4)](_0x4505e5,_0x35c825){const _0x580e3f=_0x5eace4;this['_setResource'](_0x4505e5,_0x35c825,re(this[_0x580e3f(0x1bb)][_0x580e3f(0x1cc)](_0x4505e5),_0x35c825));}[_0x5eace4(0x190)](_0x130f06){const _0x51685e=_0x5eace4;return w(this[_0x51685e(0x1bb)][_0x51685e(0x1cc)](_0x130f06));}[_0x5eace4(0x1d2)](_0x434dc1,_0x112393){const _0x394f28=_0x5eace4;this[_0x394f28(0x1bb)]['set'](_0x434dc1,w(_0x112393)),this[_0x394f28(0x192)][_0x394f28(0x1ef)]({'unitId':_0x434dc1});}[_0x5eace4(0x1dd)](_0x5476d0){const _0x22d5d9=_0x5eace4;this[_0x22d5d9(0x1bb)]['delete'](_0x5476d0),this[_0x22d5d9(0x192)]['next']({'unitId':_0x5476d0});}[_0x5eace4(0x19a)](){const _0xbc872=_0x5eace4;super[_0xbc872(0x19a)](),this[_0xbc872(0x1bb)][_0xbc872(0x175)](),this[_0xbc872(0x192)][_0xbc872(0x1af)]();}[_0x5eace4(0x1e7)](_0x35ab21,_0x3a76c1,_0x325760){const _0x2cf0c0=_0x5eace4;this[_0x2cf0c0(0x1bb)][_0x2cf0c0(0x178)](_0x35ab21,_0x325760),this[_0x2cf0c0(0x192)]['next']({'unitId':_0x35ab21,'blockId':_0x3a76c1});}};const Me={'id':_0x5eace4(0x177),'type':_0x3bdce4[_0x5eace4(0x188)],'handler':_0x3fbb6d=>{const _0x563088=_0x5eace4;let _0x3655ee=Le(_0x3fbb6d);if(_0x3655ee)return _0x3fbb6d[_0x563088(0x1cc)](_0x58c777)[_0x563088(0x1bd)](U['id'],{'startOffset':_0x3655ee[_0x563088(0x17d)],'endOffset':_0x3655ee[_0x563088(0x1a0)],'unitId':_0x3655ee['unitId']});let _0x57df05=Re(_0x3fbb6d);if(!_0x57df05)return!0x1;let _0x3ae2af=_0x57df05[_0x563088(0x184)]+0x1;return _0x3fbb6d[_0x563088(0x1cc)](_0x58c777)[_0x563088(0x1bd)](U['id'],{'startOffset':_0x3ae2af,'endOffset':_0x3ae2af});}},Ne={'id':_0x5eace4(0x1c6),'type':_0x3bdce4[_0x5eace4(0x188)],'handler':()=>!0x0},U={'id':'docs-code.command.insert','type':_0x3bdce4['COMMAND'],'handler':(_0x15ef6d,_0xbf661f)=>{const _0x311ba8=_0x5eace4;var _0x572cd5,_0x35019f,_0x44a9c4;let _0x3fc33b=W(_0x15ef6d,_0xbf661f==null?void 0x0:_0xbf661f['unitId']);if(!_0x3fc33b)return!0x1;let _0x44d3cb=G(_0x15ef6d),_0x243bde=ae({'blockId':(_0x572cd5=_0xbf661f==null?void 0x0:_0xbf661f[_0x311ba8(0x187)])==null?_0x2ce6a6(0x6):_0x572cd5,'config':_0xbf661f==null?void 0x0:_0xbf661f[_0x311ba8(0x1d8)],'documentData':_0x3fc33b['previousDocumentData'],'endOffset':(_0x35019f=_0xbf661f==null?void 0x0:_0xbf661f[_0x311ba8(0x1a0)])==null?_0x44d3cb==null?void 0x0:_0x44d3cb['endOffset']:_0x35019f,'metadata':_0x3fc33b[_0x311ba8(0x1f3)][_0x311ba8(0x190)](_0x3fc33b['unitId']),'startOffset':(_0x44a9c4=_0xbf661f==null?void 0x0:_0xbf661f[_0x311ba8(0x17d)])==null?_0x44d3cb==null?void 0x0:_0x44d3cb[_0x311ba8(0x17d)]:_0x44a9c4}),_0x13fe9d=q(_0x3fc33b[_0x311ba8(0x181)],_0x3fc33b[_0x311ba8(0x1c2)],_0x3fc33b[_0x311ba8(0x1ea)],_0x243bde[_0x311ba8(0x17a)],_0x243bde[_0x311ba8(0x18e)]);return _0x13fe9d&&_0x243bde[_0x311ba8(0x1ad)]&&_0x3fc33b[_0x311ba8(0x1f3)][_0x311ba8(0x1d2)](_0x3fc33b[_0x311ba8(0x1c2)],_0x243bde[_0x311ba8(0x1ad)]),_0x13fe9d;}},Pe={'id':'docs-code.command.update','type':_0x3bdce4[_0x5eace4(0x188)],'handler':(_0x254e7c,_0x4623ac)=>{const _0x1a1d1c=_0x5eace4;if(!_0x4623ac)return!0x1;let _0x445cd7=W(_0x254e7c,_0x4623ac[_0x1a1d1c(0x1c2)]);if(!_0x445cd7)return!0x1;let _0x5b5397=ce({'blockId':_0x4623ac['blockId'],'config':_0x4623ac[_0x1a1d1c(0x1d8)],'documentData':_0x445cd7[_0x1a1d1c(0x1ea)],'metadata':_0x445cd7['model'][_0x1a1d1c(0x190)](_0x445cd7['unitId'])});return _0x5b5397[_0x1a1d1c(0x1ad)]&&_0x445cd7[_0x1a1d1c(0x1f3)][_0x1a1d1c(0x1d2)](_0x445cd7['unitId'],_0x5b5397[_0x1a1d1c(0x1ad)]),!0x0;}},Fe={'id':_0x5eace4(0x1bc),'type':_0x3bdce4['COMMAND'],'handler':(_0x3dbc14,_0x4fe7f7)=>{const _0x743bba=_0x5eace4;var _0x20af29,_0x1703ca;let _0x26c038=W(_0x3dbc14,_0x4fe7f7==null?void 0x0:_0x4fe7f7[_0x743bba(0x1c2)]);if(!_0x26c038)return!0x1;let _0x404d08=(_0x20af29=_0x4fe7f7==null?void 0x0:_0x4fe7f7[_0x743bba(0x18e)])==null?(_0x1703ca=G(_0x3dbc14))==null?void 0x0:_0x1703ca['startOffset']:_0x20af29;if(_0x404d08==null)return!0x1;let _0x24bb75=le({'cursorOffset':_0x404d08,'documentData':_0x26c038[_0x743bba(0x1ea)]});return _0x24bb75?q(_0x26c038['commandService'],_0x26c038['unitId'],_0x26c038['previousDocumentData'],_0x24bb75['nextDocumentData'],_0x24bb75[_0x743bba(0x18e)]):!0x1;}},Ie={'id':_0x5eace4(0x1c9),'type':_0x3bdce4[_0x5eace4(0x188)],'handler':(_0xe3b19d,_0x11f83e)=>{const _0x2e943d=_0x5eace4;var _0x438895,_0x2e0720;let _0x2654ef=W(_0xe3b19d,_0x11f83e==null?void 0x0:_0x11f83e[_0x2e943d(0x1c2)]);if(!_0x2654ef)return!0x1;let _0x2909fc=(_0x438895=_0x11f83e==null?void 0x0:_0x11f83e[_0x2e943d(0x18e)])==null?(_0x2e0720=G(_0xe3b19d))==null?void 0x0:_0x2e0720[_0x2e943d(0x17d)]:_0x438895;if(_0x2909fc==null)return!0x1;let _0x1151f4=ue({'cursorOffset':_0x2909fc,'documentData':_0x2654ef[_0x2e943d(0x1ea)],'paragraphStartIndex':_0x11f83e==null?void 0x0:_0x11f83e['paragraphStartIndex']});return _0x1151f4?q(_0x2654ef[_0x2e943d(0x181)],_0x2654ef['unitId'],_0x2654ef[_0x2e943d(0x1ea)],_0x1151f4[_0x2e943d(0x17a)],_0x1151f4[_0x2e943d(0x18e)]):!0x1;}};function W(_0x10463a,_0x3abf9c){const _0x16d397=_0x5eace4;let _0x4d6690=_0x10463a[_0x16d397(0x1cc)](_0x17a029),_0x222427=_0x3abf9c?_0x4d6690[_0x16d397(0x1cf)](_0x3abf9c):_0x4d6690[_0x16d397(0x1e9)](_0x56e428[_0x16d397(0x1b7)]);return _0x222427?{'commandService':_0x10463a[_0x16d397(0x1cc)](_0x58c777),'model':_0x10463a[_0x16d397(0x1cc)](H),'previousDocumentData':_0x222427[_0x16d397(0x1d7)](),'unitId':_0x222427[_0x16d397(0x1ce)]()}:null;}function G(_0x51f175){const _0x1b7c9d=_0x5eace4;var _0xb82b52;return(_0xb82b52=_0x51f175[_0x1b7c9d(0x1cc)](_0x129ce4)[_0x1b7c9d(0x193)]())==null?void 0x0:_0xb82b52[0x0];}function Le(_0x34ebcd){const _0x3e947f=_0x5eace4;var _0x5484df;let _0x28ea5b=(_0x5484df=_0x34ebcd[_0x3e947f(0x1cc)](_0x17a029)[_0x3e947f(0x1e9)](_0x56e428[_0x3e947f(0x1b7)]))==null?void 0x0:_0x5484df[_0x3e947f(0x1ce)]();try{return _0x34ebcd[_0x3e947f(0x1cc)](_0x5d6321)['consumeInsertRange'](_0x28ea5b);}catch{return null;}}function Re(_0x909bf6){const _0x56ef80=_0x5eace4;var _0x343599,_0x4a1563,_0x599702;let _0xee8bc3=G(_0x909bf6);if(!_0xee8bc3)return null;let _0x3100b0=_0x909bf6[_0x56ef80(0x1cc)](_0x17a029)[_0x56ef80(0x1e9)](_0x56e428[_0x56ef80(0x1b7)]),_0x33a135=_0x3100b0==null?void 0x0:_0x3100b0[_0x56ef80(0x173)]();return _0x33a135?(_0x343599=_0x31aef0['range']['getParagraphsInRange'](_0xee8bc3,(_0x4a1563=_0x33a135[_0x56ef80(0x1d5)])==null?[]:_0x4a1563,(_0x599702=_0x33a135['dataStream'])==null?'':_0x599702)[0x0])==null?null:_0x343599:null;}function ze(_0x3772e,_0x14bb54){const _0x18966d=_0x5eace4;var _0x56cd57,_0x4d4c1a,_0x115242,_0x903a2e,_0x4a6003,_0x4e507c,_0x1872d5,_0x309322,_0x162368,_0x8b7e17,_0xc9058b,_0x21e74b,_0xc2ca10,_0x1e45de,_0x11c073,_0x5d8fe0,_0x585835,_0x44881b;let _0x2690ad=_0x1b7758[_0x18966d(0x1ac)]();return[K(_0x2690ad,[_0x18966d(0x1c3),'dataStream'],(_0x56cd57=_0x3772e[_0x18966d(0x1c3)])==null?void 0x0:_0x56cd57['dataStream'],(_0x4d4c1a=_0x14bb54[_0x18966d(0x1c3)])==null?void 0x0:_0x4d4c1a[_0x18966d(0x1ec)]),K(_0x2690ad,[_0x18966d(0x1c3),_0x18966d(0x1d5)],(_0x115242=_0x3772e[_0x18966d(0x1c3)])==null?void 0x0:_0x115242[_0x18966d(0x1d5)],(_0x903a2e=_0x14bb54['body'])==null?void 0x0:_0x903a2e[_0x18966d(0x1d5)]),K(_0x2690ad,[_0x18966d(0x1c3),_0x18966d(0x19b)],(_0x4a6003=_0x3772e[_0x18966d(0x1c3)])==null?void 0x0:_0x4a6003[_0x18966d(0x19b)],(_0x4e507c=_0x14bb54[_0x18966d(0x1c3)])==null?void 0x0:_0x4e507c['sectionBreaks']),K(_0x2690ad,[_0x18966d(0x1c3),_0x18966d(0x1a1)],(_0x1872d5=_0x3772e[_0x18966d(0x1c3)])==null?void 0x0:_0x1872d5['textRuns'],(_0x309322=_0x14bb54[_0x18966d(0x1c3)])==null?void 0x0:_0x309322[_0x18966d(0x1a1)]),K(_0x2690ad,['body',_0x18966d(0x1a3)],(_0x162368=_0x3772e[_0x18966d(0x1c3)])==null?void 0x0:_0x162368[_0x18966d(0x1a3)],(_0x8b7e17=_0x14bb54['body'])==null?void 0x0:_0x8b7e17[_0x18966d(0x1a3)]),K(_0x2690ad,[_0x18966d(0x1c3),'customRanges'],(_0xc9058b=_0x3772e[_0x18966d(0x1c3)])==null?void 0x0:_0xc9058b[_0x18966d(0x1d1)],(_0x21e74b=_0x14bb54[_0x18966d(0x1c3)])==null?void 0x0:_0x21e74b['customRanges']),K(_0x2690ad,[_0x18966d(0x1c3),_0x18966d(0x1ed)],(_0xc2ca10=_0x3772e[_0x18966d(0x1c3)])==null?void 0x0:_0xc2ca10[_0x18966d(0x1ed)],(_0x1e45de=_0x14bb54[_0x18966d(0x1c3)])==null?void 0x0:_0x1e45de['customDecorations']),K(_0x2690ad,[_0x18966d(0x1c3),'tables'],(_0x11c073=_0x3772e[_0x18966d(0x1c3)])==null?void 0x0:_0x11c073['tables'],(_0x5d8fe0=_0x14bb54[_0x18966d(0x1c3)])==null?void 0x0:_0x5d8fe0[_0x18966d(0x198)]),K(_0x2690ad,[_0x18966d(0x1c3),_0x18966d(0x1c0)],(_0x585835=_0x3772e[_0x18966d(0x1c3)])==null?void 0x0:_0x585835[_0x18966d(0x1c0)],(_0x44881b=_0x14bb54['body'])==null?void 0x0:_0x44881b[_0x18966d(0x1c0)])]['filter'](Boolean)[_0x18966d(0x1e3)]((_0x175b68,_0x3c33ab)=>_0x1b7758[_0x18966d(0x1b0)](_0x175b68,_0x3c33ab),null);}function K(_0x5dd955,_0x49b155,_0x4916b0,_0x5f43d6){const _0x4e6325=_0x5eace4;return _0x282787['diffValue'](_0x4916b0,_0x5f43d6)?null:_0x5dd955[_0x4e6325(0x18f)](_0x49b155,_0x4916b0,_0x5f43d6);}function q(_0x565309,_0x3ba76e,_0x4d2eb1,_0x1b6ac3,_0x9087d7){const _0x563d45=_0x5eace4;let _0x339b3c=ze(_0x4d2eb1,_0x1b6ac3);return _0x339b3c?!!_0x565309[_0x563d45(0x1bd)](_0x410cd0['id'],{'unitId':_0x3ba76e,'actions':_0x339b3c,'textRanges':[{'startOffset':_0x9087d7,'endOffset':_0x9087d7,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const J=_0x5eace4(0x174);var Be='@univerjs-pro/docs-code',Ve='0.25.0-insiders.20260622-93bd55a';const Y={};function X(_0x49312a,_0x6ad884){return function(_0x163c00,_0x1a33cf){_0x6ad884(_0x163c00,_0x1a33cf,_0x49312a);};}function Z(_0x5c1ab4,_0x483675,_0x2f6059,_0x403ec8){const _0x5e1125=_0x5eace4;var _0x9eb356=arguments[_0x5e1125(0x1da)],_0x27c30a=_0x9eb356<0x3?_0x483675:_0x403ec8===null?_0x403ec8=Object[_0x5e1125(0x1ca)](_0x483675,_0x2f6059):_0x403ec8,_0x235e4a;if(typeof Reflect==_0x5e1125(0x1f0)&&typeof Reflect['decorate']==_0x5e1125(0x189))_0x27c30a=Reflect['decorate'](_0x5c1ab4,_0x483675,_0x2f6059,_0x403ec8);else{for(var _0x9435e0=_0x5c1ab4['length']-0x1;_0x9435e0>=0x0;_0x9435e0--)(_0x235e4a=_0x5c1ab4[_0x9435e0])&&(_0x27c30a=(_0x9eb356<0x3?_0x235e4a(_0x27c30a):_0x9eb356>0x3?_0x235e4a(_0x483675,_0x2f6059,_0x27c30a):_0x235e4a(_0x483675,_0x2f6059))||_0x27c30a);}return _0x9eb356>0x3&&_0x27c30a&&Object[_0x5e1125(0x191)](_0x483675,_0x2f6059,_0x27c30a),_0x27c30a;}let Q=class extends _0x51061b{constructor(_0x4c0212,_0x21c058){const _0x28b9d1=_0x5eace4;super(),this['_resourceManagerService']=_0x4c0212,this[_0x28b9d1(0x1de)]=_0x21c058,this['_initResource']();}[_0x5eace4(0x185)](){const _0x57542c=_0x5eace4;this[_0x57542c(0x18b)](this[_0x57542c(0x1c8)][_0x57542c(0x1a5)]({'pluginName':J,'businesses':[_0x56e428[_0x57542c(0x1b7)]],'toJson':_0x340ec2=>JSON[_0x57542c(0x1dc)](this[_0x57542c(0x1de)][_0x57542c(0x190)](_0x340ec2)),'parseJson':_0x504839=>w(JSON[_0x57542c(0x1a2)](_0x504839)),'onLoad':(_0x38bb71,_0x4b6b34)=>this[_0x57542c(0x1de)]['deserialize'](_0x38bb71,_0x4b6b34),'onUnLoad':_0x1ad29b=>this[_0x57542c(0x1de)][_0x57542c(0x1dd)](_0x1ad29b)}));}};Q=Z([X(0x0,_0x2879eb),X(0x1,_0x3524d0(H))],Q);let $=class extends _0x5079f1{constructor(_0x4a3f85=Y,_0x548a01,_0x560f18,_0x2db80d){const _0xd25725=_0x5eace4;super(),this['_config']=_0x4a3f85,this[_0xd25725(0x18a)]=_0x548a01,this[_0xd25725(0x1e6)]=_0x560f18,this[_0xd25725(0x18d)]=_0x2db80d;let {..._0x144f31}=_0x1ce801({},Y,this['_config']);this[_0xd25725(0x18d)][_0xd25725(0x179)]('docs-code.config',_0x144f31);}[_0x5eace4(0x1d3)](){const _0x18d9f8=_0x5eace4;this[_0x18d9f8(0x18a)][_0x18d9f8(0x1f1)]([H]),this[_0x18d9f8(0x18a)][_0x18d9f8(0x1f1)]([Q]),this['_injector'][_0x18d9f8(0x1cc)](H),this[_0x18d9f8(0x18a)]['get'](Q),[U,Me,Pe,Fe,Ie,Ne][_0x18d9f8(0x1eb)](_0x40965d=>this[_0x18d9f8(0x18b)](this[_0x18d9f8(0x1e6)][_0x18d9f8(0x1ee)](_0x40965d)));}};V($,_0x5eace4(0x1aa),J),V($,'packageName',Be),V($,_0x5eace4(0x1d0),Ve),V($,_0x5eace4(0x1d9),_0x56e428[_0x5eace4(0x1b7)]),$=Z([_0xa6c8c4(_0x221e19,_0x72a19),X(0x1,_0x3524d0(_0x1470b9)),X(0x2,_0x58c777),X(0x3,_0x2d86d1)],$);export{S as DEFAULT_CODE_CONFIG,J as DOCS_CODE_PLUGIN,Ie as DocsCodeCancelEmptyParagraphCommand,Ne as DocsCodeConsumeBoundaryDeleteCommand,Fe as DocsCodeExitCommand,Me as DocsCodeInsertBelowCommand,U as DocsCodeInsertCommand,H as DocsCodeModel,Pe as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,ue as buildCancelEmptyCodeParagraphActions,le as buildExitCodeActions,ae as buildInsertCodeActions,ce as buildUpdateCodeActions,fe as findCodeRangeAtOffset,pe as isCodeBoundaryDelete,C as normalizeDocsCodeConfig};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x375bbb,_0x353d58){var _0x201231=_0xeb3b,_0x5f4fd7=_0x375bbb();while(!![]){try{var _0x394585=-parseInt(_0x201231(0xd2))/0x1+parseInt(_0x201231(0x8e))/0x2*(-parseInt(_0x201231(0xa8))/0x3)+-parseInt(_0x201231(0x9c))/0x4*(parseInt(_0x201231(0xc0))/0x5)+-parseInt(_0x201231(0xb6))/0x6+parseInt(_0x201231(0x84))/0x7*(parseInt(_0x201231(0x85))/0x8)+-parseInt(_0x201231(0xd0))/0x9*(parseInt(_0x201231(0x8b))/0xa)+parseInt(_0x201231(0xa1))/0xb;if(_0x394585===_0x353d58)break;else _0x5f4fd7['push'](_0x5f4fd7['shift']());}catch(_0x302928){_0x5f4fd7['push'](_0x5f4fd7['shift']());}}}(_0x53a9,0x9ca0c),function(_0x51eef8,_0x4fbdc0){var _0x2cbaa0=_0xeb3b;typeof exports==_0x2cbaa0(0xb3)&&typeof module<'u'?_0x4fbdc0(exports,require('@univerjs-pro/docs-code'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define==_0x2cbaa0(0xc8)&&define['amd']?define([_0x2cbaa0(0x88),_0x2cbaa0(0x8c),_0x2cbaa0(0xb5),_0x2cbaa0(0x92)],_0x4fbdc0):(_0x51eef8=typeof globalThis<'u'?globalThis:_0x51eef8||self,_0x4fbdc0(_0x51eef8[_0x2cbaa0(0x83)]={},_0x51eef8[_0x2cbaa0(0xab)],_0x51eef8['UniverCore'],_0x51eef8['UniverDocsFacade']));}(this,function(_0x108976,_0x45df1d,_0x2c87e0,_0xaa82f6){var _0xbc9427=_0xeb3b;Object['defineProperty'](_0x108976,Symbol[_0xbc9427(0x98)],{'value':_0xbc9427(0xb1)});function _0x57b1e2(_0x44ea7d){'@babel/helpers - typeof';var _0x507d39=_0xbc9427;return _0x57b1e2=typeof Symbol==_0x507d39(0xc8)&&typeof Symbol['iterator']==_0x507d39(0x7f)?function(_0x197afe){return typeof _0x197afe;}:function(_0x2a8f5f){var _0x188d0c=_0x507d39;return _0x2a8f5f&&typeof Symbol=='function'&&_0x2a8f5f[_0x188d0c(0xc2)]===Symbol&&_0x2a8f5f!==Symbol[_0x188d0c(0xcb)]?'symbol':typeof _0x2a8f5f;},_0x57b1e2(_0x44ea7d);}function _0x505997(_0x237557,_0x2f00e6){var _0x22ed4b=_0xbc9427;if(_0x57b1e2(_0x237557)!='object'||!_0x237557)return _0x237557;var _0x42be74=_0x237557[Symbol['toPrimitive']];if(_0x42be74!==void 0x0){var _0x25000c=_0x42be74[_0x22ed4b(0xbf)](_0x237557,_0x2f00e6||_0x22ed4b(0xbb));if(_0x57b1e2(_0x25000c)!=_0x22ed4b(0xb3))return _0x25000c;throw TypeError(_0x22ed4b(0x9f));}return(_0x2f00e6==='string'?String:Number)(_0x237557);}function _0x51a25d(_0xc10b94){var _0x3629f4=_0xbc9427,_0x53b88f=_0x505997(_0xc10b94,_0x3629f4(0x9b));return _0x57b1e2(_0x53b88f)==_0x3629f4(0x7f)?_0x53b88f:_0x53b88f+'';}function _0x58783e(_0x1e6b89,_0x3cedea,_0x186fd3){var _0x42de73=_0xbc9427;return(_0x3cedea=_0x51a25d(_0x3cedea))in _0x1e6b89?Object[_0x42de73(0xc4)](_0x1e6b89,_0x3cedea,{'value':_0x186fd3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1e6b89[_0x3cedea]=_0x186fd3,_0x1e6b89;}function _0x542a01(_0x27fbc5,_0x25ddec){return function(_0x368938,_0x360786){_0x25ddec(_0x368938,_0x360786,_0x27fbc5);};}function _0x2acee3(_0x355c30,_0x400db3,_0x245d96,_0x31bbc3){var _0x1945cd=_0xbc9427,_0x24f533=arguments[_0x1945cd(0xa0)],_0x435c14=_0x24f533<0x3?_0x400db3:_0x31bbc3===null?_0x31bbc3=Object[_0x1945cd(0x97)](_0x400db3,_0x245d96):_0x31bbc3,_0x29de9c;if(typeof Reflect==_0x1945cd(0xb3)&&typeof Reflect[_0x1945cd(0x82)]=='function')_0x435c14=Reflect['decorate'](_0x355c30,_0x400db3,_0x245d96,_0x31bbc3);else{for(var _0x2f47b6=_0x355c30['length']-0x1;_0x2f47b6>=0x0;_0x2f47b6--)(_0x29de9c=_0x355c30[_0x2f47b6])&&(_0x435c14=(_0x24f533<0x3?_0x29de9c(_0x435c14):_0x24f533>0x3?_0x29de9c(_0x400db3,_0x245d96,_0x435c14):_0x29de9c(_0x400db3,_0x245d96))||_0x435c14);}return _0x24f533>0x3&&_0x435c14&&Object['defineProperty'](_0x400db3,_0x245d96,_0x435c14),_0x435c14;}let _0x52debc=class{constructor(_0x44732a,_0x10dc56,_0x3d4ac3){var _0x1fe5c6=_0xbc9427;this['_document']=_0x44732a,this['_blockId']=_0x10dc56,this['_injector']=_0x3d4ac3,_0x58783e(this,_0x1fe5c6(0x7e),void 0x0),this[_0x1fe5c6(0x7e)]=this[_0x1fe5c6(0xaf)][_0x1fe5c6(0xcc)]();}[_0xbc9427(0xcc)](){var _0x52a22b=_0xbc9427;return this[_0x52a22b(0xce)];}[_0xbc9427(0xc6)](){var _0x4eb1b4=_0xbc9427;let _0x5bd327=this[_0x4eb1b4(0xa3)]();return _0x5bd327?{'blockId':_0x5bd327[_0x4eb1b4(0x91)],'endIndex':_0x5bd327[_0x4eb1b4(0x81)],'startIndex':_0x5bd327[_0x4eb1b4(0xca)]}:null;}['getText'](){var _0x18bd1a=_0xbc9427,_0x1b7a4f;let _0x515053=this[_0x18bd1a(0xa3)](),_0x41c5a0=(_0x1b7a4f=this[_0x18bd1a(0xb2)]()[_0x18bd1a(0x87)])==null?void 0x0:_0x1b7a4f[_0x18bd1a(0xb8)];return!_0x515053||!_0x41c5a0?'':_0x198b09(_0x41c5a0['slice'](_0x515053[_0x18bd1a(0xca)]+0x1,_0x515053['endIndex']));}[_0xbc9427(0x96)](){var _0x335672=_0xbc9427;let _0x55dc5f=this[_0x335672(0xc6)]();return _0x55dc5f?{..._0x55dc5f,'config':this[_0x335672(0xb0)](),'text':this[_0x335672(0x89)](),'type':_0x2c87e0[_0x335672(0x90)][_0x335672(0xc7)]}:null;}[_0xbc9427(0xb0)](){var _0x1d9226=_0xbc9427;return(0x0,_0x45df1d[_0x1d9226(0xaa)])(this[_0x1d9226(0xae)]['get'](_0x45df1d['DocsCodeModel'])[_0x1d9226(0x95)](this[_0x1d9226(0x7e)],this[_0x1d9226(0xce)]));}[_0xbc9427(0x7b)](_0x480223){var _0x554741=_0xbc9427;return this[_0x554741(0xae)]['get'](_0x2c87e0[_0x554741(0x8f)])[_0x554741(0xc3)](_0x45df1d['DocsCodeUpdateCommand']['id'],{'blockId':this[_0x554741(0xce)],'config':_0x480223['config'],'unitId':this[_0x554741(0x7e)]});}[_0xbc9427(0xb4)](_0x47fbf9){var _0x39ef3f=_0xbc9427;return this['_injector'][_0x39ef3f(0x7c)](_0x2c87e0[_0x39ef3f(0x8f)])[_0x39ef3f(0xc3)](_0x45df1d[_0x39ef3f(0xcf)]['id'],{'cursorOffset':_0x47fbf9,'unitId':this[_0x39ef3f(0x7e)]});}[_0xbc9427(0xcd)](_0x4b998d={}){var _0x58d823=_0xbc9427;return this[_0x58d823(0xae)]['get'](_0x2c87e0['ICommandService'])[_0x58d823(0xc3)](_0x45df1d[_0x58d823(0xc9)]['id'],{..._0x4b998d,'unitId':this[_0x58d823(0x7e)]});}['_getDocumentData'](){var _0x122122=_0xbc9427;return this['_document'][_0x122122(0xc1)]();}['_getBlockRange'](){var _0x11ddf2=_0xbc9427,_0x545b1c;let _0x5a3bad=(_0x545b1c=this['_getDocumentData']()[_0x11ddf2(0x87)])==null||(_0x545b1c=_0x545b1c[_0x11ddf2(0xba)])==null?void 0x0:_0x545b1c[_0x11ddf2(0x8a)](_0x2d9684=>_0x2d9684[_0x11ddf2(0x91)]===this[_0x11ddf2(0xce)]&&_0x2d9684[_0x11ddf2(0xbe)]===_0x2c87e0[_0x11ddf2(0x90)][_0x11ddf2(0xc7)]);return _0x5a3bad==null?null:_0x5a3bad;}};_0x52debc=_0x2acee3([_0x542a01(0x2,(0x0,_0x2c87e0[_0xbc9427(0xb9)])(_0x2c87e0[_0xbc9427(0x99)]))],_0x52debc);function _0x198b09(_0x35ea1b){var _0x32f6e6=_0xbc9427;return Array[_0x32f6e6(0x7d)](_0x35ea1b)[_0x32f6e6(0x8d)](_0x17002b=>_0x17002b===_0x2c87e0[_0x32f6e6(0x80)]['PARAGRAPH']?'\x0a':_0x17002b)[_0x32f6e6(0xd3)](_0x34a478=>_0x34a478!==_0x2c87e0[_0x32f6e6(0x80)][_0x32f6e6(0xad)]&&_0x34a478!==_0x2c87e0[_0x32f6e6(0x80)][_0x32f6e6(0xd4)]&&_0x34a478!==_0x2c87e0[_0x32f6e6(0x80)]['SECTION_BREAK'])[_0x32f6e6(0xc5)]('')[_0x32f6e6(0xa7)](/\n$/,'');}var _0x53549a=class extends _0xaa82f6['FDocument']{[_0xbc9427(0x9d)](){var _0xa636b3=_0xbc9427;return this[_0xa636b3(0xb7)]()[_0xa636b3(0xd3)](_0x255d52=>_0x255d52['blockType']===_0x2c87e0[_0xa636b3(0x90)][_0xa636b3(0xc7)])[_0xa636b3(0x8d)](_0x134198=>this['_createFDocumentCode'](_0x134198['blockId']));}[_0xbc9427(0x86)](_0x392189){var _0x58eb25=_0xbc9427;return this['_getBlockRanges']()[_0x58eb25(0xa5)](_0x5a760c=>_0x5a760c['blockId']===_0x392189&&_0x5a760c[_0x58eb25(0xbe)]===_0x2c87e0[_0x58eb25(0x90)]['CODE'])?this[_0x58eb25(0x94)](_0x392189):null;}[_0xbc9427(0xac)](_0x5c4e36){var _0x2310bd=_0xbc9427;let _0x578f15=this[_0x2310bd(0xb7)]()[_0x2310bd(0x8a)](_0x3c8b05=>_0x3c8b05[_0x2310bd(0xbe)]===_0x2c87e0['DocumentBlockRangeType'][_0x2310bd(0xc7)]&&_0x3c8b05[_0x2310bd(0xca)]<=_0x5c4e36&&_0x5c4e36<=_0x3c8b05[_0x2310bd(0x81)]);return _0x578f15?this[_0x2310bd(0x94)](_0x578f15[_0x2310bd(0x91)]):null;}[_0xbc9427(0xbd)](_0x295c72){var _0x2b8bb7=_0xbc9427,_0xd630df;return(_0xd630df=this[_0x2b8bb7(0xd1)](_0x295c72)[0x0])==null?null:_0xd630df;}[_0xbc9427(0xd1)](_0x39b016){var _0x2bfbe3=_0xbc9427;let _0x55ede5=typeof _0x39b016=='string'?{'text':_0x39b016}:_0x39b016;return this[_0x2bfbe3(0x9d)]()[_0x2bfbe3(0xd3)](_0x1f0e81=>!(_0x55ede5[_0x2bfbe3(0x91)]&&_0x1f0e81['getId']()!==_0x55ede5[_0x2bfbe3(0x91)]||_0x55ede5['text']&&!_0x1f0e81[_0x2bfbe3(0x89)]()[_0x2bfbe3(0x9a)](_0x55ede5[_0x2bfbe3(0xbc)])));}[_0xbc9427(0xa9)](_0xcb087f={},_0x556c3a={}){var _0x442a61=_0xbc9427,_0x4317c4;let _0x565093=this[_0x442a61(0xae)][_0x442a61(0x7c)](_0x2c87e0['ICommandService']),_0x1c8e37=_0x4f74cc(_0xcb087f)?{..._0x556c3a,..._0x358a4e(_0xcb087f)}:_0xcb087f,_0x14c40e=(_0x4317c4=_0x1c8e37[_0x442a61(0x91)])==null?(0x0,_0x2c87e0['generateRandomId'])(0x6):_0x4317c4;return _0x565093[_0x442a61(0xc3)](_0x45df1d[_0x442a61(0xa6)]['id'],{..._0x1c8e37,'blockId':_0x14c40e,'unitId':this[_0x442a61(0xcc)]()})?this[_0x442a61(0x94)](_0x14c40e):null;}['exitCode'](_0x14c4ae){var _0x4d4ce1=_0xbc9427;return this['_injector'][_0x4d4ce1(0x7c)](_0x2c87e0['ICommandService'])[_0x4d4ce1(0xc3)](_0x45df1d[_0x4d4ce1(0xcf)]['id'],{'cursorOffset':_0x14c4ae,'unitId':this[_0x4d4ce1(0xcc)]()});}['cancelEmptyCodeParagraph'](_0x74e02e={}){var _0x5460e1=_0xbc9427;return this[_0x5460e1(0xae)][_0x5460e1(0x7c)](_0x2c87e0[_0x5460e1(0x8f)])[_0x5460e1(0xc3)](_0x45df1d[_0x5460e1(0xc9)]['id'],{..._0x74e02e,'unitId':this[_0x5460e1(0xcc)]()});}['_getBlockRanges'](){var _0xea057=_0xbc9427,_0x24ba0e,_0x58c7a2;return(_0x24ba0e=(_0x58c7a2=this['save']()['body'])==null?void 0x0:_0x58c7a2[_0xea057(0xba)])==null?[]:_0x24ba0e;}[_0xbc9427(0x94)](_0xb3ba3b){var _0xfd34bc=_0xbc9427;return this[_0xfd34bc(0xae)]['createInstance'](_0x52debc,this,_0xb3ba3b);}};function _0x4f74cc(_0x2773b1){var _0x46e277=_0xbc9427;return typeof _0x2773b1==_0x46e277(0xb3)&&!!_0x2773b1&&typeof _0x2773b1[_0x46e277(0x93)]==_0x46e277(0xc8)&&typeof _0x2773b1[_0x46e277(0xc6)]==_0x46e277(0xc8)&&typeof _0x2773b1[_0x46e277(0xa2)]==_0x46e277(0xc8)&&_0x2773b1[_0x46e277(0xa2)]()==='paragraph';}function _0x358a4e(_0xf6120f){var _0x102e1f=_0xbc9427;return _0xf6120f[_0x102e1f(0xc6)]();}_0xaa82f6[_0xbc9427(0x9e)][_0xbc9427(0xa4)](_0x53549a),Object[_0xbc9427(0xc4)](_0x108976,'FDocumentCode',{'enumerable':!0x0,'get':function(){return _0x52debc;}});}));function _0xeb3b(_0x36d66d,_0x1bb20e){_0x36d66d=_0x36d66d-0x7b;var _0x53a922=_0x53a9();var _0xeb3bc8=_0x53a922[_0x36d66d];return _0xeb3bc8;}function _0x53a9(){var _0x1efc88=['@univerjs/core','5357706wXuDkh','_getBlockRanges','dataStream','Inject','blockRanges','default','text','findCodeByText','blockType','call','25LNMjnK','save','constructor','syncExecuteCommand','defineProperty','join','getRange','CODE','function','DocsCodeCancelEmptyParagraphCommand','startIndex','prototype','getId','cancelEmptyParagraph','_blockId','DocsCodeExitCommand','1071nnqOIl','findCodes','726146TILykw','filter','BLOCK_END','updateConfig','get','from','_unitId','symbol','DataStreamTreeTokenType','endIndex','decorate','UniverProDocsCodeFacade','154InFkJb','424968lpURBP','getCode','body','exports','getText','find','106630nzsBfT','@univerjs-pro/docs-code','map','2iXZMSZ','ICommandService','DocumentBlockRangeType','blockId','@univerjs/docs/facade','getKey','_createFDocumentCode','getCodeConfig','describe','getOwnPropertyDescriptor','toStringTag','Injector','includes','string','30104mEOBhW','getCodes','FDocument','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','length','28823751iVfbAq','getType','_getBlockRange','extend','some','DocsCodeInsertCommand','replace','665493xUZSON','insertCode','normalizeDocsCodeConfig','UniverProDocsCode','getCodeAt','BLOCK_START','_injector','_document','getConfig','Module','_getDocumentData','object','exit'];_0x53a9=function(){return _0x1efc88;};return _0x53a9();}
|
|
1
|
+
function _0x5c33(_0x599f33,_0x5a0d2b){_0x599f33=_0x599f33-0x133;var _0x8d22a3=_0x8d22();var _0x5c33ae=_0x8d22a3[_0x599f33];return _0x5c33ae;}(function(_0x10bb06,_0x111466){var _0x44d286=_0x5c33,_0x3f9b87=_0x10bb06();while(!![]){try{var _0x5abb58=-parseInt(_0x44d286(0x17e))/0x1+-parseInt(_0x44d286(0x159))/0x2*(-parseInt(_0x44d286(0x153))/0x3)+parseInt(_0x44d286(0x14b))/0x4*(-parseInt(_0x44d286(0x17f))/0x5)+-parseInt(_0x44d286(0x158))/0x6+parseInt(_0x44d286(0x143))/0x7+-parseInt(_0x44d286(0x16b))/0x8+parseInt(_0x44d286(0x16e))/0x9;if(_0x5abb58===_0x111466)break;else _0x3f9b87['push'](_0x3f9b87['shift']());}catch(_0x59a520){_0x3f9b87['push'](_0x3f9b87['shift']());}}}(_0x8d22,0x4e7df),function(_0x2e9557,_0x1c1c42){var _0x3f0f96=_0x5c33;typeof exports==_0x3f0f96(0x161)&&typeof module<'u'?_0x1c1c42(exports,require('@univerjs-pro/docs-code'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define=='function'&&define[_0x3f0f96(0x160)]?define([_0x3f0f96(0x152),_0x3f0f96(0x13e),'@univerjs/core',_0x3f0f96(0x186)],_0x1c1c42):(_0x2e9557=typeof globalThis<'u'?globalThis:_0x2e9557||self,_0x1c1c42(_0x2e9557[_0x3f0f96(0x148)]={},_0x2e9557[_0x3f0f96(0x184)],_0x2e9557['UniverCore'],_0x2e9557[_0x3f0f96(0x179)]));}(this,function(_0x34587a,_0x508ed7,_0xe70f5b,_0x484be4){var _0x1967b4=_0x5c33;Object['defineProperty'](_0x34587a,Symbol[_0x1967b4(0x147)],{'value':_0x1967b4(0x15f)});function _0x3a86bc(_0x4e8bfd){'@babel/helpers - typeof';var _0x4110e3=_0x1967b4;return _0x3a86bc=typeof Symbol==_0x4110e3(0x141)&&typeof Symbol[_0x4110e3(0x146)]==_0x4110e3(0x13c)?function(_0xa7a93){return typeof _0xa7a93;}:function(_0x2c4a83){var _0x5ffda6=_0x4110e3;return _0x2c4a83&&typeof Symbol==_0x5ffda6(0x141)&&_0x2c4a83[_0x5ffda6(0x162)]===Symbol&&_0x2c4a83!==Symbol['prototype']?'symbol':typeof _0x2c4a83;},_0x3a86bc(_0x4e8bfd);}function _0x54cd0a(_0x280969,_0x30e9fe){var _0x24e8cf=_0x1967b4;if(_0x3a86bc(_0x280969)!=_0x24e8cf(0x161)||!_0x280969)return _0x280969;var _0x1d6bea=_0x280969[Symbol[_0x24e8cf(0x13d)]];if(_0x1d6bea!==void 0x0){var _0x2b2c89=_0x1d6bea[_0x24e8cf(0x14f)](_0x280969,_0x30e9fe||'default');if(_0x3a86bc(_0x2b2c89)!=_0x24e8cf(0x161))return _0x2b2c89;throw TypeError(_0x24e8cf(0x13f));}return(_0x30e9fe==='string'?String:Number)(_0x280969);}function _0x317c3a(_0x4ce958){var _0x445695=_0x1967b4,_0x511165=_0x54cd0a(_0x4ce958,'string');return _0x3a86bc(_0x511165)==_0x445695(0x13c)?_0x511165:_0x511165+'';}function _0x2c7faa(_0x31794c,_0x26fea6,_0x4b39ec){var _0x2fe0ca=_0x1967b4;return(_0x26fea6=_0x317c3a(_0x26fea6))in _0x31794c?Object[_0x2fe0ca(0x182)](_0x31794c,_0x26fea6,{'value':_0x4b39ec,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x31794c[_0x26fea6]=_0x4b39ec,_0x31794c;}function _0x205b69(_0x2d5b00,_0x4a755a){return function(_0x514ac1,_0x2479a8){_0x4a755a(_0x514ac1,_0x2479a8,_0x2d5b00);};}function _0x16c489(_0x47d8b7,_0x2ef174,_0x26bd1d,_0x4593fa){var _0x35943b=_0x1967b4,_0x3cf1da=arguments[_0x35943b(0x145)],_0x528665=_0x3cf1da<0x3?_0x2ef174:_0x4593fa===null?_0x4593fa=Object[_0x35943b(0x18a)](_0x2ef174,_0x26bd1d):_0x4593fa,_0x19c801;if(typeof Reflect==_0x35943b(0x161)&&typeof Reflect[_0x35943b(0x133)]=='function')_0x528665=Reflect[_0x35943b(0x133)](_0x47d8b7,_0x2ef174,_0x26bd1d,_0x4593fa);else{for(var _0x1dcd63=_0x47d8b7[_0x35943b(0x145)]-0x1;_0x1dcd63>=0x0;_0x1dcd63--)(_0x19c801=_0x47d8b7[_0x1dcd63])&&(_0x528665=(_0x3cf1da<0x3?_0x19c801(_0x528665):_0x3cf1da>0x3?_0x19c801(_0x2ef174,_0x26bd1d,_0x528665):_0x19c801(_0x2ef174,_0x26bd1d))||_0x528665);}return _0x3cf1da>0x3&&_0x528665&&Object[_0x35943b(0x182)](_0x2ef174,_0x26bd1d,_0x528665),_0x528665;}let _0x1b1334=class{constructor(_0x468095,_0x29f520,_0x12d8c8){var _0x2528de=_0x1967b4;this[_0x2528de(0x154)]=_0x468095,this[_0x2528de(0x164)]=_0x29f520,this[_0x2528de(0x16c)]=_0x12d8c8,_0x2c7faa(this,_0x2528de(0x16a),void 0x0),this['_unitId']=this[_0x2528de(0x154)][_0x2528de(0x180)]();}[_0x1967b4(0x180)](){return this['_blockId'];}['getRange'](){var _0x566715=_0x1967b4;let _0x2891a9=this[_0x566715(0x17d)]();return _0x2891a9?{'blockId':_0x2891a9[_0x566715(0x167)],'endIndex':_0x2891a9[_0x566715(0x156)],'startIndex':_0x2891a9['startIndex']}:null;}[_0x1967b4(0x183)](){var _0x592ca9=_0x1967b4,_0x4ac7bf;let _0x604dfe=this[_0x592ca9(0x17d)](),_0x39a17b=(_0x4ac7bf=this[_0x592ca9(0x166)]()[_0x592ca9(0x176)])==null?void 0x0:_0x4ac7bf['dataStream'];return!_0x604dfe||!_0x39a17b?'':_0x35a4cf(_0x39a17b[_0x592ca9(0x168)](_0x604dfe[_0x592ca9(0x151)]+0x1,_0x604dfe['endIndex']));}[_0x1967b4(0x15d)](){var _0x294168=_0x1967b4;let _0x5e8821=this[_0x294168(0x14c)]();return _0x5e8821?{..._0x5e8821,'config':this[_0x294168(0x170)](),'text':this[_0x294168(0x183)](),'type':_0xe70f5b[_0x294168(0x18b)][_0x294168(0x157)]}:null;}[_0x1967b4(0x170)](){var _0x2ad3b7=_0x1967b4;return(0x0,_0x508ed7[_0x2ad3b7(0x13a)])(this['_injector'][_0x2ad3b7(0x173)](_0x508ed7['DocsCodeModel'])['getCodeConfig'](this[_0x2ad3b7(0x16a)],this[_0x2ad3b7(0x164)]));}[_0x1967b4(0x15c)](_0x1a8e06){var _0x38dbf8=_0x1967b4;return this['_injector'][_0x38dbf8(0x173)](_0xe70f5b['ICommandService'])[_0x38dbf8(0x138)](_0x508ed7[_0x38dbf8(0x15b)]['id'],{'blockId':this['_blockId'],'config':_0x1a8e06[_0x38dbf8(0x175)],'unitId':this[_0x38dbf8(0x16a)]});}[_0x1967b4(0x134)](_0x43ad27){var _0x1728c8=_0x1967b4;return this[_0x1728c8(0x16c)]['get'](_0xe70f5b[_0x1728c8(0x149)])[_0x1728c8(0x138)](_0x508ed7[_0x1728c8(0x163)]['id'],{'cursorOffset':_0x43ad27,'unitId':this[_0x1728c8(0x16a)]});}['cancelEmptyParagraph'](_0x54e91a={}){var _0x2718fb=_0x1967b4;return this[_0x2718fb(0x16c)][_0x2718fb(0x173)](_0xe70f5b['ICommandService'])['syncExecuteCommand'](_0x508ed7['DocsCodeCancelEmptyParagraphCommand']['id'],{..._0x54e91a,'unitId':this[_0x2718fb(0x16a)]});}['_getDocumentData'](){var _0x4a6375=_0x1967b4;return this[_0x4a6375(0x154)][_0x4a6375(0x13b)]();}[_0x1967b4(0x17d)](){var _0x585554=_0x1967b4,_0x1dff37;let _0x52f6f8=(_0x1dff37=this[_0x585554(0x166)]()[_0x585554(0x176)])==null||(_0x1dff37=_0x1dff37[_0x585554(0x155)])==null?void 0x0:_0x1dff37[_0x585554(0x189)](_0x2d324c=>_0x2d324c[_0x585554(0x167)]===this[_0x585554(0x164)]&&_0x2d324c['blockType']===_0xe70f5b[_0x585554(0x18b)][_0x585554(0x157)]);return _0x52f6f8==null?null:_0x52f6f8;}};_0x1b1334=_0x16c489([_0x205b69(0x2,(0x0,_0xe70f5b['Inject'])(_0xe70f5b[_0x1967b4(0x165)]))],_0x1b1334);function _0x35a4cf(_0x23a78a){var _0x20edb5=_0x1967b4;return Array[_0x20edb5(0x172)](_0x23a78a)[_0x20edb5(0x139)](_0x412ceb=>_0x412ceb===_0xe70f5b[_0x20edb5(0x14d)][_0x20edb5(0x136)]?'\x0a':_0x412ceb)['filter'](_0x92ca51=>_0x92ca51!==_0xe70f5b[_0x20edb5(0x14d)][_0x20edb5(0x14e)]&&_0x92ca51!==_0xe70f5b[_0x20edb5(0x14d)][_0x20edb5(0x169)]&&_0x92ca51!==_0xe70f5b[_0x20edb5(0x14d)][_0x20edb5(0x17b)])[_0x20edb5(0x17c)]('')['replace'](/\n$/,'');}var _0x3c2ec7=class extends _0x484be4[_0x1967b4(0x144)]{[_0x1967b4(0x140)](){var _0x153fad=_0x1967b4;return this[_0x153fad(0x171)]()['filter'](_0x3d3839=>_0x3d3839[_0x153fad(0x16f)]===_0xe70f5b['DocumentBlockRangeType'][_0x153fad(0x157)])[_0x153fad(0x139)](_0x2c714d=>this['_createFDocumentCode'](_0x2c714d['blockId']));}['getCode'](_0x25c37f){var _0x395615=_0x1967b4;return this['_getBlockRanges']()['some'](_0x524e0d=>_0x524e0d[_0x395615(0x167)]===_0x25c37f&&_0x524e0d[_0x395615(0x16f)]===_0xe70f5b[_0x395615(0x18b)]['CODE'])?this[_0x395615(0x137)](_0x25c37f):null;}[_0x1967b4(0x185)](_0x3f2366){var _0x7310be=_0x1967b4;let _0x311089=this[_0x7310be(0x171)]()['find'](_0x32fa1c=>_0x32fa1c[_0x7310be(0x16f)]===_0xe70f5b[_0x7310be(0x18b)][_0x7310be(0x157)]&&_0x32fa1c['startIndex']<=_0x3f2366&&_0x3f2366<=_0x32fa1c[_0x7310be(0x156)]);return _0x311089?this[_0x7310be(0x137)](_0x311089['blockId']):null;}[_0x1967b4(0x174)](_0x537c85){var _0x2941b6=_0x1967b4,_0x32f350;return(_0x32f350=this[_0x2941b6(0x135)](_0x537c85)[0x0])==null?null:_0x32f350;}[_0x1967b4(0x135)](_0x181470){var _0x4f586b=_0x1967b4;let _0xfacb03=typeof _0x181470=='string'?{'text':_0x181470}:_0x181470;return this[_0x4f586b(0x140)]()['filter'](_0x525a78=>!(_0xfacb03['blockId']&&_0x525a78[_0x4f586b(0x180)]()!==_0xfacb03['blockId']||_0xfacb03[_0x4f586b(0x16d)]&&!_0x525a78['getText']()[_0x4f586b(0x178)](_0xfacb03[_0x4f586b(0x16d)])));}[_0x1967b4(0x142)](_0x2bac33={},_0x15c5ac={}){var _0x562249=_0x1967b4,_0x10955e;let _0x46b42d=this[_0x562249(0x16c)][_0x562249(0x173)](_0xe70f5b['ICommandService']),_0x4afdc0=_0x48b6ed(_0x2bac33)?{..._0x15c5ac,..._0x2c4a47(_0x2bac33)}:_0x2bac33,_0xb3c126=(_0x10955e=_0x4afdc0[_0x562249(0x167)])==null?(0x0,_0xe70f5b[_0x562249(0x17a)])(0x6):_0x10955e;return _0x46b42d[_0x562249(0x138)](_0x508ed7[_0x562249(0x181)]['id'],{..._0x4afdc0,'blockId':_0xb3c126,'unitId':this[_0x562249(0x180)]()})?this[_0x562249(0x137)](_0xb3c126):null;}[_0x1967b4(0x15e)](_0x2903fd){var _0x11de35=_0x1967b4;return this[_0x11de35(0x16c)][_0x11de35(0x173)](_0xe70f5b[_0x11de35(0x149)])['syncExecuteCommand'](_0x508ed7[_0x11de35(0x163)]['id'],{'cursorOffset':_0x2903fd,'unitId':this['getId']()});}[_0x1967b4(0x14a)](_0x2d1de4={}){var _0x3e465f=_0x1967b4;return this[_0x3e465f(0x16c)]['get'](_0xe70f5b['ICommandService'])[_0x3e465f(0x138)](_0x508ed7[_0x3e465f(0x188)]['id'],{..._0x2d1de4,'unitId':this['getId']()});}['_getBlockRanges'](){var _0xc3014c=_0x1967b4,_0x4daf67,_0x3ab178;return(_0x4daf67=(_0x3ab178=this['save']()[_0xc3014c(0x176)])==null?void 0x0:_0x3ab178[_0xc3014c(0x155)])==null?[]:_0x4daf67;}['_createFDocumentCode'](_0x9f6946){var _0x10d730=_0x1967b4;return this[_0x10d730(0x16c)]['createInstance'](_0x1b1334,this,_0x9f6946);}};function _0x48b6ed(_0x22aab8){var _0x5d2a5d=_0x1967b4;return typeof _0x22aab8==_0x5d2a5d(0x161)&&!!_0x22aab8&&typeof _0x22aab8[_0x5d2a5d(0x187)]==_0x5d2a5d(0x141)&&typeof _0x22aab8['getRange']==_0x5d2a5d(0x141)&&typeof _0x22aab8['getType']==_0x5d2a5d(0x141)&&_0x22aab8[_0x5d2a5d(0x177)]()==='paragraph';}function _0x2c4a47(_0x2792d8){var _0x44bc44=_0x1967b4;return _0x2792d8[_0x44bc44(0x14c)]();}_0x484be4[_0x1967b4(0x144)][_0x1967b4(0x150)](_0x3c2ec7),Object[_0x1967b4(0x182)](_0x34587a,_0x1967b4(0x15a),{'enumerable':!0x0,'get':function(){return _0x1b1334;}});}));function _0x8d22(){var _0x28345a=['toStringTag','UniverProDocsCodeFacade','ICommandService','cancelEmptyCodeParagraph','2996RKeaPE','getRange','DataStreamTreeTokenType','BLOCK_START','call','extend','startIndex','exports','3DFYumm','_document','blockRanges','endIndex','CODE','2566194sJybkJ','174388CALYBg','FDocumentCode','DocsCodeUpdateCommand','updateConfig','describe','exitCode','Module','amd','object','constructor','DocsCodeExitCommand','_blockId','Injector','_getDocumentData','blockId','slice','BLOCK_END','_unitId','1848224IuFmiX','_injector','text','13216905owRRcq','blockType','getConfig','_getBlockRanges','from','get','findCodeByText','config','body','getType','includes','UniverDocsFacade','generateRandomId','SECTION_BREAK','join','_getBlockRange','182049zzrYPA','2900YBybYX','getId','DocsCodeInsertCommand','defineProperty','getText','UniverProDocsCode','getCodeAt','@univerjs/docs/facade','getKey','DocsCodeCancelEmptyParagraphCommand','find','getOwnPropertyDescriptor','DocumentBlockRangeType','decorate','exit','findCodes','PARAGRAPH','_createFDocumentCode','syncExecuteCommand','map','normalizeDocsCodeConfig','save','symbol','toPrimitive','@univerjs-pro/docs-code','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getCodes','function','insertCode','286720EynRZE','FDocument','length','iterator'];_0x8d22=function(){return _0x28345a;};return _0x8d22();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x5e69(){const _0x1c6315=['default','parse','Module','packageName','docs-code.command.update','ICommandService','setConfig','JSONX','createParagraphId','version','indentStart','prototype','tables','DocsCodeModel','paragraphStartIndex','string','min','_initResource','Injector','toStringTag','_configService','DataStreamTreeTokenType','Inject','from','set','0.25.0-insiders.20260618-fa5d5d0','object','IUniverInstanceService','COMMAND','indentEnd','removeCode','docs-code.command.insert','Tools','deepClone','_change$','type','registerCommand','compose','length','7249oMUYCG','startOffset','DocSelectionManagerService','body','deserialize','DocsCodeUpdateCommand','spaceAbove','blockRanges','javascript','startIndex','_commandService','_injector','removeUnit','getParagraphsInRange','buildUpdateCodeActions','getUnitId','CODE','textStyle','25457SnANbK','buildInsertCodeActions','PARAGRAPH','138573SDIijQ','nextMetadata','paragraphStyle','1916845cIDltJ','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','delete','DocsCodeInsertBelowCommand','buildExitCodeActions','customBlocks','textRuns','nextDocumentData','replaceOp','getCurrentUnitOfType','complete','docs-code.command.consume-boundary-delete','find','138776KKxmqa','defineProperty','getOwnPropertyDescriptor','docs-code.command.exit','onStarting','direction','forEach','Document\x20body\x20is\x20required','sort','symbol','UniverInstanceType','_resources','UniverDocsCodePlugin','1152408ipESEp','diffValue','cursorOffset','_resourceManagerService','amd','BLOCK_START','right','24xLGqwy','getSnapshot','endOffset','SECTION_BREAK','filter','serialize','some','Disposable','docs-code.command.cancel-empty-paragraph','rxjs','disposeWithMe','customRanges','@univerjs/core','findCodeRangeAtOffset','registerPluginResource','customDecorations','4910sgVayZ','setCodeConfig','max','reduce','_setResource','sectionBreaks','blockId','BLOCK_END','normalizeDocsCodeConfig','merge','62968eEojWe','@univerjs-pro/license','config','9jACCZH','DocContentInsertService','constructor','Plugin','fromEntries','paragraphs','DocsCodeInsertCommand','slice','unitId','blockType','change$','decorate','_docsCodeModel','paragraphId','iterator','30hcsrLW','left','syncExecuteCommand','DependentOn','documentData','DocsCodeCancelEmptyParagraphCommand','function','getTextRanges','CommandType','previousDocumentData','codes','endIndex','docs-code.config','get','Subject','paragraph','add','6pPUkAA','RichTextEditingMutation','pluginName','@univerjs/docs','model','toPrimitive','DocumentBlockRangeType','every','exports','metadata','spaceBelow','consumeInsertRange','DOC_CODE_PLUGIN','getCodeConfig','getInstance','DocsCodeExitCommand','join','_config','UNIVER_DOC','map','UniverLicensePlugin','getBody','dataStream','UniverProDocsCode','next','UniverDocs'];_0x5e69=function(){return _0x1c6315;};return _0x5e69();}function _0x1fe1(_0x28f809,_0x5dca40){_0x28f809=_0x28f809-0x1cb;const _0x5e69ea=_0x5e69();let _0x1fe15c=_0x5e69ea[_0x28f809];return _0x1fe15c;}(function(_0x43fe2a,_0x2d388c){const _0x2ade60=_0x1fe1,_0x299805=_0x43fe2a();while(!![]){try{const _0x44e05e=parseInt(_0x2ade60(0x1cb))/0x1*(parseInt(_0x2ade60(0x1f2))/0x2)+-parseInt(_0x2ade60(0x1ce))/0x3+parseInt(_0x2ade60(0x1de))/0x4*(-parseInt(_0x2ade60(0x21e))/0x5)+-parseInt(_0x2ade60(0x22f))/0x6*(parseInt(_0x2ade60(0x1d1))/0x7)+-parseInt(_0x2ade60(0x20c))/0x8*(parseInt(_0x2ade60(0x20f))/0x9)+parseInt(_0x2ade60(0x202))/0xa*(parseInt(_0x2ade60(0x270))/0xb)+parseInt(_0x2ade60(0x1eb))/0xc;if(_0x44e05e===_0x2d388c)break;else _0x299805['push'](_0x299805['shift']());}catch(_0x4c4b30){_0x299805['push'](_0x299805['shift']());}}}(_0x5e69,0x2e262),function(_0x31c7e3,_0x51fb69){const _0x58a264=_0x1fe1;typeof exports==_0x58a264(0x263)&&typeof module<'u'?_0x51fb69(exports,require('@univerjs/core'),require('@univerjs/docs'),require('rxjs'),require('@univerjs-pro/license')):typeof define==_0x58a264(0x224)&&define[_0x58a264(0x1ef)]?define([_0x58a264(0x237),_0x58a264(0x1fe),_0x58a264(0x232),_0x58a264(0x1fb),_0x58a264(0x20d)],_0x51fb69):(_0x31c7e3=typeof globalThis<'u'?globalThis:_0x31c7e3||self,_0x51fb69(_0x31c7e3[_0x58a264(0x246)]={},_0x31c7e3['UniverCore'],_0x31c7e3[_0x58a264(0x248)],_0x31c7e3['rxjs'],_0x31c7e3['UniverProLicense']));}(this,function(_0x80bbac,_0x282742,_0x56826b,_0x38f985,_0x31be7c){const _0x45ca6a=_0x1fe1;Object[_0x45ca6a(0x1df)](_0x80bbac,Symbol[_0x45ca6a(0x25c)],{'value':_0x45ca6a(0x24b)});let _0x365a6={'language':_0x45ca6a(0x278),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function _0x112c50(_0x190929){return{..._0x365a6,..._0x190929};}function _0x5e35d9(_0x1a2f8b){const _0x35665d=_0x45ca6a;var _0x16b5f5;let _0x7040ef=(_0x16b5f5=_0x1a2f8b==null?void 0x0:_0x1a2f8b[_0x35665d(0x228)])==null?{}:_0x16b5f5;return{'codes':Object[_0x35665d(0x213)](Object['entries'](_0x7040ef)[_0x35665d(0x242)](([_0x4eefcb,_0x57f6c9])=>[_0x4eefcb,_0x112c50(_0x57f6c9)]))};}function _0x25998a(_0x42a180,_0x4f887b,_0x78d757){const _0x8294e5=_0x45ca6a;let _0x37fda9=_0x5e35d9(_0x42a180);return _0x37fda9[_0x8294e5(0x228)][_0x4f887b]=_0x112c50({..._0x37fda9['codes'][_0x4f887b],..._0x78d757}),_0x37fda9;}function _0x1c01de(_0x43fbed,_0x4d38be){const _0x1561a1=_0x45ca6a;let _0x217db0=_0x5e35d9(_0x43fbed);return delete _0x217db0[_0x1561a1(0x228)][_0x4d38be],_0x217db0;}let _0xa3fdf5='monospace';function _0x5f1af6(_0x206aa9){const _0x33918b=_0x45ca6a;var _0x34fced,_0x51a8d2,_0x14538c;let _0xbb2a03=_0x4bdb9a(_0x206aa9[_0x33918b(0x222)]),_0x4ef565=_0x13624e(_0xbb2a03),_0x9952e4=_0xf7bf71(_0x206aa9['startOffset'],_0x206aa9[_0x33918b(0x1f4)]),_0x2ea953=_0x9952e4?(_0x34fced=_0x4ef565[_0x33918b(0x277)])==null?void 0x0:_0x34fced[_0x33918b(0x1dd)](_0x730eca=>_0x730eca[_0x33918b(0x279)]===_0x9952e4[_0x33918b(0x271)]&&_0x730eca[_0x33918b(0x229)]+0x1===_0x9952e4[_0x33918b(0x1f4)]):void 0x0,{startOffset:_0x30bd82,endOffset:_0x4c945d}=_0x2ea953?_0x9952e4:_0x2503ce(_0x4ef565,_0x206aa9[_0x33918b(0x271)],_0x206aa9[_0x33918b(0x1f4)]),_0x46f9e0=_0xb8c547(_0x4ef565,_0x30bd82,_0x4c945d),_0x2e152c=(_0x51a8d2=_0x2ea953==null?void 0x0:_0x2ea953[_0x33918b(0x208)])==null?_0x206aa9[_0x33918b(0x208)]:_0x51a8d2,_0xa06fb1=_0x25998a(_0x206aa9[_0x33918b(0x238)],_0x2e152c,{..._0x365a6,..._0x206aa9[_0x33918b(0x20e)]});if(_0x2ea953)return _0x2ea953[_0x33918b(0x218)]=_0x282742[_0x33918b(0x235)][_0x33918b(0x280)],_0x4f6f9a(_0x4ef565,_0x30bd82,_0x4c945d),_0x42ec2a(_0x4ef565,_0x30bd82,_0x4c945d,_0x46f9e0),_0xf0c5d3(_0x4ef565,_0x2ea953),{'nextDocumentData':_0xbb2a03,'nextMetadata':_0xa06fb1,'cursorOffset':_0x30bd82+0x1};if(_0x30bd82===_0x4c945d){var _0x45d59d,_0x68415a;let _0x142603=''+_0x282742[_0x33918b(0x25e)]['BLOCK_START']+_0x282742[_0x33918b(0x25e)][_0x33918b(0x1cd)]+_0x282742[_0x33918b(0x25e)][_0x33918b(0x209)];_0x34984f(_0x4ef565,_0x30bd82,_0x142603,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,_0x282742[_0x33918b(0x251)])(new Set((_0x45d59d=_0x4ef565[_0x33918b(0x214)])==null?void 0x0:_0x45d59d[_0x33918b(0x242)](_0x50ea39=>_0x50ea39[_0x33918b(0x21c)]))),'paragraphStyle':_0x1be91b(!0x0,!0x0,_0x46f9e0)}],'blockRanges':[{'blockId':_0x2e152c,'blockType':_0x282742[_0x33918b(0x235)][_0x33918b(0x280)],'startIndex':0x0,'endIndex':_0x142603[_0x33918b(0x26f)]-0x1}]});let _0x3e4c7a=(_0x68415a=_0x4ef565[_0x33918b(0x277)])==null?void 0x0:_0x68415a[_0x33918b(0x1dd)](_0x5694be=>_0x5694be[_0x33918b(0x208)]===_0x2e152c);return _0x3e4c7a&&_0xf0c5d3(_0x4ef565,_0x3e4c7a),{'nextDocumentData':_0xbb2a03,'nextMetadata':_0xa06fb1,'cursorOffset':_0x30bd82+0x1};}_0x34984f(_0x4ef565,_0x4c945d,_0x282742[_0x33918b(0x25e)][_0x33918b(0x209)]),_0x34984f(_0x4ef565,_0x30bd82,_0x282742[_0x33918b(0x25e)][_0x33918b(0x1f0)]),_0x42ec2a(_0x4ef565,_0x30bd82,_0x4c945d+0x1,_0x46f9e0);let _0x4e2987={'blockId':_0x2e152c,'blockType':_0x282742[_0x33918b(0x235)][_0x33918b(0x280)],'startIndex':_0x30bd82,'endIndex':_0x4c945d+0x1};return _0x4ef565['blockRanges']=[...(_0x14538c=_0x4ef565['blockRanges'])==null?[]:_0x14538c,_0x4e2987][_0x33918b(0x1e6)]((_0x2a0081,_0x5e8984)=>_0x2a0081['startIndex']-_0x5e8984[_0x33918b(0x279)]),_0xf0c5d3(_0x4ef565,_0x4e2987),{'nextDocumentData':_0xbb2a03,'nextMetadata':_0xa06fb1,'cursorOffset':_0x30bd82+0x1};}function _0x4f6f9a(_0xe8ff2,_0x4fe2de,_0x49fa4c){const _0x4fba7f=_0x45ca6a;var _0x105967;((_0x105967=_0xe8ff2[_0x4fba7f(0x214)])==null?[]:_0x105967)[_0x4fba7f(0x1f6)](_0x3d340a=>_0x3d340a['startIndex']>_0x4fe2de&&_0x3d340a['startIndex']<_0x49fa4c)['forEach'](_0x1ac2e9=>{const _0x3044bc=_0x4fba7f;var _0x41ea50;let _0x358266={...(_0x41ea50=_0x1ac2e9[_0x3044bc(0x1d0)])==null?{}:_0x41ea50};delete _0x358266[_0x3044bc(0x276)],delete _0x358266[_0x3044bc(0x239)],_0x1ac2e9[_0x3044bc(0x1d0)]=_0x358266;});}function _0xf7bf71(_0x17d167,_0x249010){const _0x2bbfcf=_0x45ca6a;return _0x17d167==null||_0x249010==null||_0x17d167===_0x249010?null:{'startOffset':Math[_0x2bbfcf(0x259)](_0x17d167,_0x249010),'endOffset':Math[_0x2bbfcf(0x204)](_0x17d167,_0x249010)};}function _0x4cbc0f(_0x363fdb){const _0x5c36e0=_0x45ca6a;return{'nextDocumentData':_0x4bdb9a(_0x363fdb[_0x5c36e0(0x222)]),'nextMetadata':_0x25998a(_0x363fdb[_0x5c36e0(0x238)],_0x363fdb[_0x5c36e0(0x208)],_0x363fdb[_0x5c36e0(0x20e)]),'cursorOffset':0x0};}function _0x2c9cb4(_0xc4ef){const _0x21ce58=_0x45ca6a;var _0x1ff305,_0x385139;let _0xebadea=_0x4bdb9a(_0xc4ef[_0x21ce58(0x222)]),_0x4b5831=_0x13624e(_0xebadea),_0x4e5ccd=_0xa0b5bc(_0x4b5831,_0xc4ef['cursorOffset']);if(!_0x4e5ccd)return null;let _0x35e5c8=_0x55526b(_0x4b5831,_0x4e5ccd),_0x3582c8=_0x35e5c8[_0x35e5c8[_0x21ce58(0x26f)]-0x1];if(!_0x3582c8||!_0x2587ad(_0x4b5831,_0x4e5ccd,_0x3582c8)||_0xc4ef['cursorOffset']<_0x3582c8[_0x21ce58(0x279)])return null;let _0x5c5b89=_0x4d806d(_0x4b5831,_0x4e5ccd,_0x3582c8);if(_0x5c5b89>=_0x4e5ccd['endIndex'])return null;_0x4b5831[_0x21ce58(0x245)]=[_0x4b5831[_0x21ce58(0x245)]['slice'](0x0,_0x5c5b89),_0x282742[_0x21ce58(0x25e)][_0x21ce58(0x209)],_0x4b5831[_0x21ce58(0x245)][_0x21ce58(0x216)](_0x5c5b89,_0x4e5ccd['endIndex']),_0x4b5831[_0x21ce58(0x245)][_0x21ce58(0x216)](_0x4e5ccd[_0x21ce58(0x229)]+0x1)][_0x21ce58(0x23f)](''),_0x578cba(_0x4b5831['paragraphs'],_0x5c5b89,_0x4e5ccd[_0x21ce58(0x229)],0x1),_0x578cba(_0x4b5831[_0x21ce58(0x207)],_0x5c5b89,_0x4e5ccd[_0x21ce58(0x229)],0x1),_0x578cba(_0x4b5831[_0x21ce58(0x1d6)],_0x5c5b89,_0x4e5ccd['endIndex'],0x1),_0x5d1971(_0x4b5831[_0x21ce58(0x1d7)],_0x5c5b89,_0x4e5ccd['endIndex'],0x1),_0x52cd7a(_0x4b5831['tables'],_0x5c5b89,_0x4e5ccd['endIndex'],0x1),_0x52cd7a(_0x4b5831[_0x21ce58(0x1fd)],_0x5c5b89,_0x4e5ccd[_0x21ce58(0x229)],0x1),_0x52cd7a(_0x4b5831['customDecorations'],_0x5c5b89,_0x4e5ccd['endIndex'],0x1),(_0x1ff305=_0x4b5831[_0x21ce58(0x277)])==null||_0x1ff305['forEach'](_0x51a209=>{const _0x197d03=_0x21ce58;_0x51a209===_0x4e5ccd||_0x51a209[_0x197d03(0x208)]===_0x4e5ccd[_0x197d03(0x208)]?_0x51a209['endIndex']=_0x5c5b89:_0x51a209['startIndex']>=_0x5c5b89&&_0x51a209['startIndex']<_0x4e5ccd[_0x197d03(0x229)]&&(_0x51a209[_0x197d03(0x279)]+=0x1,_0x51a209[_0x197d03(0x229)]+=0x1);});let _0x2e8f8f=_0x55526b(_0x4b5831,{..._0x4e5ccd,'endIndex':_0x5c5b89});_0x2e8f8f[_0x21ce58(0x1e4)]((_0x215500,_0x154744)=>{const _0x282d82=_0x21ce58;var _0x327d14;_0x215500[_0x282d82(0x1d0)]={...(_0x327d14=_0x215500['paragraphStyle'])==null?{}:_0x327d14,..._0x1be91b(_0x154744===0x0,_0x154744===_0x2e8f8f['length']-0x1)};});let _0x2ed643=(_0x385139=_0x4b5831[_0x21ce58(0x214)])==null?void 0x0:_0x385139[_0x21ce58(0x1dd)](_0x338757=>_0x338757[_0x21ce58(0x279)]===_0x5c5b89+0x1);return _0x2ed643&&(_0x2ed643[_0x21ce58(0x1d0)]=_0x20b37e(_0x2ed643[_0x21ce58(0x1d0)])),{'nextDocumentData':_0xebadea,'cursorOffset':_0x5c5b89+0x1};}function _0x249d4f(_0x1740ca){const _0x179b7d=_0x45ca6a;let _0x4871a9=_0x4bdb9a(_0x1740ca[_0x179b7d(0x222)]),_0x1c92cd=_0x13624e(_0x4871a9),_0x3abb31=_0xa0b5bc(_0x1c92cd,_0x1740ca[_0x179b7d(0x1ed)]);return _0x3abb31&&_0x2d8c40(_0x4871a9,_0x1c92cd,_0x3abb31,_0x1740ca[_0x179b7d(0x1ed)],_0x1740ca[_0x179b7d(0x257)])||null;}function _0x2d8c40(_0x532cd2,_0x5565be,_0x478c29,_0xdec5f4,_0x1bfa37){const _0x4adb62=_0x45ca6a;let _0x92c4ea=_0x49a549(_0x5565be,_0x478c29,_0xdec5f4,_0x1bfa37);if(!_0x92c4ea)return null;let _0x4f0157=_0x92c4ea['endTokenOffset']-0x1;return _0xac0229(_0x5565be,_0x92c4ea[_0x4adb62(0x22d)][_0x4adb62(0x279)],_0x92c4ea[_0x4adb62(0x22d)][_0x4adb62(0x279)]+0x1),{'nextDocumentData':_0x532cd2,'cursorOffset':_0x4f0157};}function _0x2f03a0(_0x4c4dfa,_0x154e82){const _0x787c20=_0x45ca6a;var _0x358e79;return _0x4c4dfa==null||(_0x358e79=_0x4c4dfa[_0x787c20(0x277)])==null?void 0x0:_0x358e79[_0x787c20(0x1dd)](_0x3d208e=>_0x3d208e[_0x787c20(0x218)]===_0x282742[_0x787c20(0x235)][_0x787c20(0x280)]&&_0x3d208e['startIndex']<=_0x154e82&&_0x154e82<=_0x3d208e[_0x787c20(0x229)]);}function _0x5ad3f3(_0x257891){const _0x3364f0=_0x45ca6a;var _0x8eefdb;let _0x336fb8=_0x257891[_0x3364f0(0x222)]['body'];if(!_0x336fb8)return!0x1;let _0x354b56=_0x257891[_0x3364f0(0x1e3)]===_0x3364f0(0x21f)?_0x257891[_0x3364f0(0x1ed)]-0x1:_0x257891['cursorOffset'],_0x86202b=_0x257891[_0x3364f0(0x1e3)]===_0x3364f0(0x1f1)?_0x257891[_0x3364f0(0x1ed)]+0x1:_0x354b56;return((_0x8eefdb=_0x336fb8[_0x3364f0(0x277)])==null?[]:_0x8eefdb)[_0x3364f0(0x1f8)](_0x13f712=>_0x13f712['blockType']===_0x282742[_0x3364f0(0x235)][_0x3364f0(0x280)]?_0x354b56===_0x13f712['startIndex']||_0x354b56===_0x13f712['endIndex']||_0x86202b===_0x13f712[_0x3364f0(0x279)]||_0x86202b===_0x13f712[_0x3364f0(0x229)]:!0x1);}function _0xa0b5bc(_0x234d53,_0x5ce8f9){const _0x306af6=_0x45ca6a;var _0x30e2ba;return(_0x30e2ba=_0x234d53[_0x306af6(0x277)])==null?void 0x0:_0x30e2ba['find'](_0x455fe1=>{const _0x488617=_0x306af6;let _0x57aa95=_0x5e1401(_0x234d53,_0x455fe1);return _0x455fe1[_0x488617(0x218)]===_0x282742[_0x488617(0x235)][_0x488617(0x280)]&&_0x455fe1[_0x488617(0x279)]<=_0x5ce8f9&&_0x5ce8f9<=_0x57aa95+0x2;});}function _0x1be91b(_0x4bd05f,_0x177e51,_0x149918=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x4bd05f&&_0x149918?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':_0xa3fdf5,'fs':0xc}};}function _0x42ec2a(_0xdf51d5,_0x3fcdf6,_0x279378,_0x36fb6e=!0x1){const _0x1a8abb=_0x45ca6a;var _0x1a67cc;let _0x2e0b0e=((_0x1a67cc=_0xdf51d5[_0x1a8abb(0x214)])==null?[]:_0x1a67cc)[_0x1a8abb(0x1f6)](_0x5824ce=>_0x5824ce[_0x1a8abb(0x279)]>_0x3fcdf6&&_0x5824ce[_0x1a8abb(0x279)]<_0x279378);_0x2e0b0e[_0x1a8abb(0x1e4)]((_0x1b3c0e,_0x4b8232)=>{const _0x2fbe23=_0x1a8abb;var _0x839a58;_0x1b3c0e[_0x2fbe23(0x1d0)]={...(_0x839a58=_0x1b3c0e[_0x2fbe23(0x1d0)])==null?{}:_0x839a58,..._0x1be91b(_0x4b8232===0x0,_0x4b8232===_0x2e0b0e['length']-0x1,_0x36fb6e)};});}function _0x20b37e(_0xc6d076){const _0x39d23f=_0x45ca6a;var _0x2c0efb,_0x36a349;let _0x53f6f9={..._0xc6d076==null?{}:_0xc6d076};return delete _0x53f6f9[_0x39d23f(0x266)],delete _0x53f6f9[_0x39d23f(0x253)],delete _0x53f6f9[_0x39d23f(0x276)],delete _0x53f6f9[_0x39d23f(0x239)],((_0x2c0efb=_0x53f6f9[_0x39d23f(0x281)])==null?void 0x0:_0x2c0efb['ff'])===_0xa3fdf5&&((_0x36a349=_0x53f6f9[_0x39d23f(0x281)])==null?void 0x0:_0x36a349['fs'])===0xc&&delete _0x53f6f9[_0x39d23f(0x281)],_0x53f6f9;}function _0x55526b(_0x269ab1,_0x420907){const _0x437b7b=_0x45ca6a;var _0x26f086;let _0xea1baf=_0x5e1401(_0x269ab1,_0x420907);return((_0x26f086=_0x269ab1[_0x437b7b(0x214)])==null?[]:_0x26f086)[_0x437b7b(0x1f6)](_0x409049=>_0x409049['startIndex']>_0x420907[_0x437b7b(0x279)]&&_0x409049[_0x437b7b(0x279)]<_0xea1baf);}function _0x2587ad(_0x569273,_0x22153d,_0x402721){const _0xb1115a=_0x45ca6a;let _0x5b3c2b=_0x4d806d(_0x569273,_0x22153d,_0x402721),_0xe7ba48=_0x569273[_0xb1115a(0x245)][_0xb1115a(0x216)](_0x5b3c2b,_0x402721[_0xb1115a(0x279)]);return Array[_0xb1115a(0x260)](_0xe7ba48)[_0xb1115a(0x236)](_0x3b6e4e=>_0x3b6e4e===_0x282742[_0xb1115a(0x25e)][_0xb1115a(0x1f0)]||_0x3b6e4e===_0x282742[_0xb1115a(0x25e)]['BLOCK_END']);}function _0x4bdb9a(_0x2c6f22){const _0x32d25c=_0x45ca6a;return _0x282742[_0x32d25c(0x269)][_0x32d25c(0x26a)](_0x2c6f22);}function _0x13624e(_0x36108a){const _0x1eac88=_0x45ca6a;if(!_0x36108a[_0x1eac88(0x273)])throw Error(_0x1eac88(0x1e5));return _0x36108a[_0x1eac88(0x273)];}function _0x2503ce(_0x12026a,_0x2943b3,_0x23d13c){const _0x51d3f3=_0x45ca6a;if(_0x2943b3==null||_0x23d13c==null){let _0x1994bb=_0x32ce3d(_0x12026a);return{'startOffset':_0x1994bb,'endOffset':_0x1994bb};}let _0x368bd6=Math['min'](_0x2943b3,_0x23d13c),_0xd2157=Math[_0x51d3f3(0x204)](_0x2943b3,_0x23d13c);if(_0x368bd6===_0xd2157){let _0x41c185=_0x2df052(_0x12026a,_0x368bd6);return{'startOffset':_0x41c185,'endOffset':_0x41c185};}return _0x436409(_0x12026a,_0x368bd6,_0xd2157);}function _0x2df052(_0x3c5295,_0x3cb435){const _0x196f20=_0x45ca6a;return _0x3cb435===0x0&&_0x3c5295[_0x196f20(0x245)][0x0]===_0x282742['DataStreamTreeTokenType']['PARAGRAPH']?0x1:_0x3cb435;}function _0x32ce3d(_0xbf7fff){const _0x1f971b=_0x45ca6a;return _0xbf7fff[_0x1f971b(0x245)]['endsWith'](_0x282742[_0x1f971b(0x25e)][_0x1f971b(0x1f5)])?Math[_0x1f971b(0x204)](0x0,_0xbf7fff[_0x1f971b(0x245)][_0x1f971b(0x26f)]-0x1):_0xbf7fff['dataStream'][_0x1f971b(0x26f)];}function _0xb8c547(_0x227964,_0x1980c4,_0x44147e){const _0x1aae08=_0x45ca6a;var _0x280b1e;let _0x18f517=Math[_0x1aae08(0x259)](_0x1980c4,_0x44147e),_0x39c2a0=Math[_0x1aae08(0x204)](_0x1980c4,_0x44147e);return!!((_0x280b1e=_0x227964[_0x1aae08(0x255)])!=null&&_0x280b1e[_0x1aae08(0x1f8)](_0x2e638c=>_0x18f517>_0x2e638c[_0x1aae08(0x279)]&&_0x18f517<_0x2e638c[_0x1aae08(0x229)]||_0x39c2a0>_0x2e638c[_0x1aae08(0x279)]&&_0x39c2a0<_0x2e638c[_0x1aae08(0x229)]||_0x18f517<=_0x2e638c['startIndex']&&_0x39c2a0>=_0x2e638c[_0x1aae08(0x229)]));}function _0x436409(_0x5c7db9,_0x2cf7d4,_0xaaf8dd){const _0x23323b=_0x45ca6a;var _0x551ed6,_0x39a217;let _0x4f5b24=[...(_0x551ed6=_0x5c7db9[_0x23323b(0x214)])==null?[]:_0x551ed6]['sort']((_0x23030d,_0x2d8c23)=>_0x23030d[_0x23323b(0x279)]-_0x2d8c23['startIndex']),_0x5b5176=_0x4f5b24[_0x23323b(0x1dd)]((_0x155a4d,_0x6986c5)=>(_0x6986c5===0x0?0x0:_0x4f5b24[_0x6986c5-0x1][_0x23323b(0x279)]+0x1)<=_0x2cf7d4&&_0x2cf7d4<=_0x155a4d[_0x23323b(0x279)]),_0x4a22e1=(_0x39a217=_0x4f5b24[_0x23323b(0x1dd)](_0x41f79c=>_0x41f79c['startIndex']>=_0xaaf8dd-0x1))==null?_0x4f5b24[_0x4f5b24[_0x23323b(0x26f)]-0x1]:_0x39a217;return{'startOffset':_0x5b5176?_0x43e5fd(_0x4f5b24,_0x5b5176):_0x2cf7d4,'endOffset':_0x4a22e1?_0x4a22e1[_0x23323b(0x279)]+0x1:_0xaaf8dd};}function _0x43e5fd(_0x2d5579,_0xec43de){let _0x5ca7c4=_0x2d5579['indexOf'](_0xec43de);return _0x5ca7c4>0x0?_0x2d5579[_0x5ca7c4-0x1]['startIndex']+0x1:0x0;}function _0x4d806d(_0x39bfc2,_0x5e6fa5,_0x2f9f56){const _0xe350cf=_0x45ca6a;var _0x32b06b;return Math[_0xe350cf(0x204)](_0x43e5fd((_0x32b06b=_0x39bfc2[_0xe350cf(0x214)])==null?[]:_0x32b06b,_0x2f9f56),_0x5e6fa5[_0xe350cf(0x279)]+0x1);}function _0x5e1401(_0x7d8dd,_0x5f5a2c){const _0x2cddba=_0x45ca6a;return _0x7d8dd[_0x2cddba(0x245)][_0x5f5a2c[_0x2cddba(0x229)]]===_0x282742[_0x2cddba(0x25e)]['BLOCK_END']?_0x5f5a2c['endIndex']:_0x7d8dd[_0x2cddba(0x245)][_0x5f5a2c[_0x2cddba(0x229)]+0x1]===_0x282742[_0x2cddba(0x25e)][_0x2cddba(0x209)]?_0x5f5a2c[_0x2cddba(0x229)]+0x1:_0x5f5a2c[_0x2cddba(0x229)];}function _0x49a549(_0xb865af,_0x59db90,_0x5c752a,_0x54e015){const _0x4fd31a=_0x45ca6a;var _0x1961cf,_0x3fe02d;let _0x3da81a=_0x5e1401(_0xb865af,_0x59db90),_0x2fa610=((_0x1961cf=_0xb865af[_0x4fd31a(0x214)])==null?[]:_0x1961cf)[_0x4fd31a(0x1dd)](_0x59ad25=>_0x59ad25[_0x4fd31a(0x279)]===_0x3da81a+0x1);if(!_0x2fa610||_0x54e015!=null&&_0x2fa610[_0x4fd31a(0x279)]!==_0x54e015||_0x5c752a<_0x3da81a||_0x5c752a>_0x2fa610[_0x4fd31a(0x279)]+0x1||_0xb865af[_0x4fd31a(0x245)][_0x2fa610[_0x4fd31a(0x279)]]!==_0x282742['DataStreamTreeTokenType']['PARAGRAPH'])return null;let _0x47464a=_0x43e5fd((_0x3fe02d=_0xb865af[_0x4fd31a(0x214)])==null?[]:_0x3fe02d,_0x2fa610),_0x158713=_0xb865af['dataStream'][_0x4fd31a(0x216)](_0x47464a,_0x2fa610['startIndex']);return Array[_0x4fd31a(0x260)](_0x158713)['every'](_0x413642=>_0x413642===_0x282742[_0x4fd31a(0x25e)]['BLOCK_END'])?{'paragraph':_0x2fa610,'endTokenOffset':_0x3da81a}:null;}function _0xf0c5d3(_0x2ed9bb,_0xbb38d8){const _0x1ff1d8=_0x45ca6a;var _0x85971f;let _0x3ef21b=_0x5e1401(_0x2ed9bb,_0xbb38d8),_0x4c64d4=_0x2ed9bb['dataStream'][_0x3ef21b+0x1];_0x4c64d4!==_0x282742[_0x1ff1d8(0x25e)][_0x1ff1d8(0x1f5)]&&_0x4c64d4!==void 0x0||_0x34984f(_0x2ed9bb,_0x3ef21b+0x1,_0x282742[_0x1ff1d8(0x25e)][_0x1ff1d8(0x1cd)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,_0x282742['createParagraphId'])(new Set((_0x85971f=_0x2ed9bb[_0x1ff1d8(0x214)])==null?void 0x0:_0x85971f[_0x1ff1d8(0x242)](_0x3df5ef=>_0x3df5ef['paragraphId'])))}]});}function _0x34984f(_0x2535ac,_0x330616,_0x57af82,_0x4f4179={}){const _0x35813d=_0x45ca6a;var _0x445bbc,_0x14e475;if(_0x57af82){if(_0x2535ac[_0x35813d(0x245)]=''+_0x2535ac[_0x35813d(0x245)]['slice'](0x0,_0x330616)+_0x57af82+_0x2535ac[_0x35813d(0x245)][_0x35813d(0x216)](_0x330616),_0x3677e2(_0x2535ac,_0x330616,_0x57af82[_0x35813d(0x26f)]),(_0x445bbc=_0x4f4179['paragraphs'])!=null&&_0x445bbc[_0x35813d(0x26f)]){var _0x65159d;_0x2535ac[_0x35813d(0x214)]=[...(_0x65159d=_0x2535ac['paragraphs'])==null?[]:_0x65159d,..._0x4f4179[_0x35813d(0x214)][_0x35813d(0x242)](_0x143d35=>({..._0x143d35,'startIndex':_0x143d35[_0x35813d(0x279)]+_0x330616}))][_0x35813d(0x1e6)]((_0xc0ae84,_0x347428)=>_0xc0ae84[_0x35813d(0x279)]-_0x347428['startIndex']);}if((_0x14e475=_0x4f4179[_0x35813d(0x277)])!=null&&_0x14e475['length']){var _0x348621;_0x2535ac[_0x35813d(0x277)]=[...(_0x348621=_0x2535ac[_0x35813d(0x277)])==null?[]:_0x348621,..._0x4f4179['blockRanges'][_0x35813d(0x242)](_0x134828=>({..._0x134828,'startIndex':_0x134828[_0x35813d(0x279)]+_0x330616,'endIndex':_0x134828[_0x35813d(0x229)]+_0x330616}))]['sort']((_0x55d4d9,_0xa88780)=>_0x55d4d9[_0x35813d(0x279)]-_0xa88780['startIndex']);}}}function _0xac0229(_0x4c5f67,_0xa17a68,_0x47bb8){const _0xb90bbb=_0x45ca6a;let _0x3ce4e8=_0x47bb8-_0xa17a68;_0x4c5f67['dataStream']=''+_0x4c5f67[_0xb90bbb(0x245)][_0xb90bbb(0x216)](0x0,_0xa17a68)+_0x4c5f67['dataStream'][_0xb90bbb(0x216)](_0x47bb8),_0x1ffb55(_0x4c5f67,_0xa17a68,_0x3ce4e8);}function _0x3677e2(_0x32a349,_0x4315ab,_0x4d6559){const _0x808731=_0x45ca6a;_0x32a349[_0x808731(0x214)]=_0x4ddd48(_0x32a349[_0x808731(0x214)],_0x4315ab,_0x4d6559),_0x32a349[_0x808731(0x207)]=_0x4ddd48(_0x32a349[_0x808731(0x207)],_0x4315ab,_0x4d6559),_0x32a349[_0x808731(0x1d6)]=_0x4ddd48(_0x32a349['customBlocks'],_0x4315ab,_0x4d6559),_0x32a349[_0x808731(0x1d7)]=_0x584cb4(_0x32a349[_0x808731(0x1d7)],_0x4315ab,_0x4d6559),_0x32a349[_0x808731(0x255)]=_0x418025(_0x32a349[_0x808731(0x255)],_0x4315ab,_0x4d6559),_0x32a349[_0x808731(0x1fd)]=_0x418025(_0x32a349[_0x808731(0x1fd)],_0x4315ab,_0x4d6559),_0x32a349[_0x808731(0x201)]=_0x418025(_0x32a349[_0x808731(0x201)],_0x4315ab,_0x4d6559),_0x32a349['blockRanges']=_0x418025(_0x32a349[_0x808731(0x277)],_0x4315ab,_0x4d6559);}function _0x1ffb55(_0x22a6ca,_0x153709,_0xb79950){const _0x355eb2=_0x45ca6a;var _0x407f75,_0x1e3851;_0x22a6ca[_0x355eb2(0x214)]=_0x11a584(_0x22a6ca[_0x355eb2(0x214)],_0x153709,_0xb79950),_0x22a6ca['sectionBreaks']=_0x11a584(_0x22a6ca['sectionBreaks'],_0x153709,_0xb79950),_0x22a6ca[_0x355eb2(0x1d6)]=_0x11a584(_0x22a6ca[_0x355eb2(0x1d6)],_0x153709,_0xb79950),_0x22a6ca[_0x355eb2(0x1d7)]=(_0x407f75=_0x1fda75((_0x1e3851=_0x22a6ca[_0x355eb2(0x1d7)])==null?void 0x0:_0x1e3851[_0x355eb2(0x242)](_0x2bae50=>({..._0x2bae50,'startIndex':_0x2bae50['st'],'endIndex':_0x2bae50['ed']})),_0x153709,_0xb79950))==null?void 0x0:_0x407f75[_0x355eb2(0x242)](_0x482985=>{let {startIndex:_0x479d94,endIndex:_0x337ed9,..._0x23a3b2}=_0x482985;return{..._0x23a3b2,'st':_0x479d94,'ed':_0x337ed9};}),_0x22a6ca[_0x355eb2(0x255)]=_0x1fda75(_0x22a6ca[_0x355eb2(0x255)],_0x153709,_0xb79950),_0x22a6ca[_0x355eb2(0x1fd)]=_0x1fda75(_0x22a6ca[_0x355eb2(0x1fd)],_0x153709,_0xb79950),_0x22a6ca[_0x355eb2(0x201)]=_0x1fda75(_0x22a6ca[_0x355eb2(0x201)],_0x153709,_0xb79950),_0x22a6ca['blockRanges']=_0x1fda75(_0x22a6ca[_0x355eb2(0x277)],_0x153709,_0xb79950);}function _0x4ddd48(_0x5390c3,_0x123c89,_0x5aa6e7){return _0x5390c3==null?void 0x0:_0x5390c3['map'](_0x44bbcd=>_0x44bbcd['startIndex']>=_0x123c89?{..._0x44bbcd,'startIndex':_0x44bbcd['startIndex']+_0x5aa6e7}:_0x44bbcd);}function _0x11a584(_0xd85005,_0x5e1b12,_0x9f56c2){const _0x3e768d=_0x45ca6a;let _0xb7e5a0=_0x5e1b12+_0x9f56c2;return _0xd85005==null?void 0x0:_0xd85005[_0x3e768d(0x242)](_0x369b65=>_0x369b65[_0x3e768d(0x279)]>=_0x5e1b12&&_0x369b65[_0x3e768d(0x279)]<_0xb7e5a0?null:_0x369b65[_0x3e768d(0x279)]>=_0xb7e5a0?{..._0x369b65,'startIndex':_0x369b65[_0x3e768d(0x279)]-_0x9f56c2}:_0x369b65)[_0x3e768d(0x1f6)](_0x1e73c2=>_0x1e73c2!=null);}function _0x584cb4(_0x5bacb6,_0x1ea842,_0x33dfc0){const _0x44cfc9=_0x45ca6a;return _0x5bacb6==null?void 0x0:_0x5bacb6[_0x44cfc9(0x242)](_0x152028=>_0x152028['st']>=_0x1ea842?{..._0x152028,'st':_0x152028['st']+_0x33dfc0,'ed':_0x152028['ed']+_0x33dfc0}:_0x152028['ed']>_0x1ea842?{..._0x152028,'ed':_0x152028['ed']+_0x33dfc0}:_0x152028);}function _0x418025(_0x609a0c,_0x19a238,_0x3cbda5){const _0x5c959b=_0x45ca6a;return _0x609a0c==null?void 0x0:_0x609a0c[_0x5c959b(0x242)](_0x18f165=>_0x18f165[_0x5c959b(0x279)]>=_0x19a238?{..._0x18f165,'startIndex':_0x18f165[_0x5c959b(0x279)]+_0x3cbda5,'endIndex':_0x18f165[_0x5c959b(0x229)]+_0x3cbda5}:_0x18f165[_0x5c959b(0x229)]>=_0x19a238?{..._0x18f165,'endIndex':_0x18f165['endIndex']+_0x3cbda5}:_0x18f165);}function _0x1fda75(_0xc5254,_0x209c57,_0x2fde53){const _0x180a90=_0x45ca6a;let _0x368bec=_0x209c57+_0x2fde53;return _0xc5254==null?void 0x0:_0xc5254[_0x180a90(0x242)](_0x3e6dda=>_0x3e6dda[_0x180a90(0x279)]>=_0x209c57&&_0x3e6dda[_0x180a90(0x229)]<_0x368bec?null:_0x3e6dda[_0x180a90(0x279)]>=_0x368bec?{..._0x3e6dda,'startIndex':_0x3e6dda[_0x180a90(0x279)]-_0x2fde53,'endIndex':_0x3e6dda[_0x180a90(0x229)]-_0x2fde53}:_0x3e6dda[_0x180a90(0x229)]>=_0x209c57?{..._0x3e6dda,'startIndex':_0x3e6dda[_0x180a90(0x279)]<_0x209c57?_0x3e6dda[_0x180a90(0x279)]:_0x209c57,'endIndex':Math[_0x180a90(0x204)](_0x209c57,_0x3e6dda['endIndex']-_0x2fde53)}:_0x3e6dda)[_0x180a90(0x1f6)](_0x55cfd3=>_0x55cfd3!=null);}function _0x578cba(_0x47b9c4,_0x47c489,_0x42c561,_0x42294a){const _0x575438=_0x45ca6a;_0x47b9c4==null||_0x47b9c4[_0x575438(0x1e4)](_0x217b36=>{const _0x167e9c=_0x575438;_0x217b36['startIndex']>=_0x47c489&&_0x217b36[_0x167e9c(0x279)]<_0x42c561&&(_0x217b36[_0x167e9c(0x279)]+=_0x42294a);});}function _0x5d1971(_0x1acde4,_0x562ca6,_0x386e6d,_0x27f8bc){const _0x43668f=_0x45ca6a;_0x1acde4==null||_0x1acde4[_0x43668f(0x1e4)](_0x2b32d7=>{_0x2b32d7['st']>=_0x562ca6&&_0x2b32d7['st']<_0x386e6d?(_0x2b32d7['st']+=_0x27f8bc,_0x2b32d7['ed']+=_0x27f8bc):_0x2b32d7['ed']>_0x562ca6&&_0x2b32d7['ed']<_0x386e6d&&(_0x2b32d7['ed']+=_0x27f8bc);});}function _0x52cd7a(_0x359310,_0x3f8521,_0x4e2e95,_0x15cdf7){_0x359310==null||_0x359310['forEach'](_0x220d24=>{const _0x4286bc=_0x1fe1;_0x220d24[_0x4286bc(0x279)]>=_0x3f8521&&_0x220d24[_0x4286bc(0x279)]<_0x4e2e95?(_0x220d24[_0x4286bc(0x279)]+=_0x15cdf7,_0x220d24[_0x4286bc(0x229)]+=_0x15cdf7):_0x220d24['endIndex']>_0x3f8521&&_0x220d24[_0x4286bc(0x229)]<_0x4e2e95&&(_0x220d24[_0x4286bc(0x229)]+=_0x15cdf7);});}function _0x3f2512(_0x14ea59){'@babel/helpers - typeof';const _0x1c089b=_0x45ca6a;return _0x3f2512=typeof Symbol=='function'&&typeof Symbol[_0x1c089b(0x21d)]==_0x1c089b(0x1e7)?function(_0x43a1f0){return typeof _0x43a1f0;}:function(_0x159bfd){const _0x30b34f=_0x1c089b;return _0x159bfd&&typeof Symbol=='function'&&_0x159bfd[_0x30b34f(0x211)]===Symbol&&_0x159bfd!==Symbol[_0x30b34f(0x254)]?_0x30b34f(0x1e7):typeof _0x159bfd;},_0x3f2512(_0x14ea59);}function _0x97de64(_0x47e133,_0x35e202){const _0x50427e=_0x45ca6a;if(_0x3f2512(_0x47e133)!=_0x50427e(0x263)||!_0x47e133)return _0x47e133;var _0x11c67e=_0x47e133[Symbol[_0x50427e(0x234)]];if(_0x11c67e!==void 0x0){var _0x261ba9=_0x11c67e['call'](_0x47e133,_0x35e202||_0x50427e(0x249));if(_0x3f2512(_0x261ba9)!=_0x50427e(0x263))return _0x261ba9;throw TypeError(_0x50427e(0x1d2));}return(_0x35e202==='string'?String:Number)(_0x47e133);}function _0x587edc(_0x3d0fb6){const _0x1c4cbd=_0x45ca6a;var _0x46d313=_0x97de64(_0x3d0fb6,_0x1c4cbd(0x258));return _0x3f2512(_0x46d313)==_0x1c4cbd(0x1e7)?_0x46d313:_0x46d313+'';}function _0x1d2d3c(_0x51a422,_0x5eaa0,_0x131632){return(_0x5eaa0=_0x587edc(_0x5eaa0))in _0x51a422?Object['defineProperty'](_0x51a422,_0x5eaa0,{'value':_0x131632,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x51a422[_0x5eaa0]=_0x131632,_0x51a422;}var _0x45f248=class extends _0x282742[_0x45ca6a(0x1f9)]{constructor(..._0x59629f){const _0x16838f=_0x45ca6a;super(..._0x59629f),_0x1d2d3c(this,'_resources',new Map()),_0x1d2d3c(this,'_change$',new _0x38f985[(_0x16838f(0x22c))]()),_0x1d2d3c(this,_0x16838f(0x219),this[_0x16838f(0x26b)]['asObservable']());}[_0x45ca6a(0x23c)](_0x3ad237,_0x3a5024){const _0x302df3=_0x45ca6a;return _0x5e35d9(this[_0x302df3(0x1e9)][_0x302df3(0x22b)](_0x3ad237))[_0x302df3(0x228)][_0x3a5024];}[_0x45ca6a(0x203)](_0x1268e3,_0x421dd3,_0x4dd173){const _0x359955=_0x45ca6a;this['_setResource'](_0x1268e3,_0x421dd3,_0x25998a(this[_0x359955(0x1e9)]['get'](_0x1268e3),_0x421dd3,_0x4dd173));}[_0x45ca6a(0x267)](_0x58996d,_0x175ab6){const _0x4c4839=_0x45ca6a;this[_0x4c4839(0x206)](_0x58996d,_0x175ab6,_0x1c01de(this[_0x4c4839(0x1e9)][_0x4c4839(0x22b)](_0x58996d),_0x175ab6));}[_0x45ca6a(0x1f7)](_0x4724e7){const _0x117f0a=_0x45ca6a;return _0x5e35d9(this['_resources'][_0x117f0a(0x22b)](_0x4724e7));}['deserialize'](_0x2de792,_0x2f2de4){const _0x3bedcf=_0x45ca6a;this[_0x3bedcf(0x1e9)]['set'](_0x2de792,_0x5e35d9(_0x2f2de4)),this[_0x3bedcf(0x26b)][_0x3bedcf(0x247)]({'unitId':_0x2de792});}[_0x45ca6a(0x27c)](_0x4ba5a8){const _0x479990=_0x45ca6a;this[_0x479990(0x1e9)][_0x479990(0x1d3)](_0x4ba5a8),this['_change$']['next']({'unitId':_0x4ba5a8});}['dispose'](){const _0x5e3040=_0x45ca6a;super['dispose'](),this[_0x5e3040(0x1e9)]['clear'](),this[_0x5e3040(0x26b)][_0x5e3040(0x1db)]();}[_0x45ca6a(0x206)](_0x482a84,_0x53e2d2,_0x25d75a){const _0x27012e=_0x45ca6a;this[_0x27012e(0x1e9)][_0x27012e(0x261)](_0x482a84,_0x25d75a),this[_0x27012e(0x26b)][_0x27012e(0x247)]({'unitId':_0x482a84,'blockId':_0x53e2d2});}};let _0xd82485={'id':'docs-code.command.insert-below','type':_0x282742[_0x45ca6a(0x226)][_0x45ca6a(0x265)],'handler':_0x2d87d6=>{const _0x40ee7e=_0x45ca6a;let _0xcf0859=_0x3e8283(_0x2d87d6);if(_0xcf0859)return _0x2d87d6[_0x40ee7e(0x22b)](_0x282742['ICommandService'])[_0x40ee7e(0x220)](_0x182a56['id'],{'startOffset':_0xcf0859[_0x40ee7e(0x271)],'endOffset':_0xcf0859['endOffset'],'unitId':_0xcf0859['unitId']});let _0x539b07=_0x4ca230(_0x2d87d6);if(!_0x539b07)return!0x1;let _0x9ce2ed=_0x539b07[_0x40ee7e(0x279)]+0x1;return _0x2d87d6['get'](_0x282742[_0x40ee7e(0x24e)])[_0x40ee7e(0x220)](_0x182a56['id'],{'startOffset':_0x9ce2ed,'endOffset':_0x9ce2ed});}},_0x188660={'id':_0x45ca6a(0x1dc),'type':_0x282742[_0x45ca6a(0x226)][_0x45ca6a(0x265)],'handler':()=>!0x0},_0x182a56={'id':_0x45ca6a(0x268),'type':_0x282742[_0x45ca6a(0x226)]['COMMAND'],'handler':(_0x1456ab,_0x54ad76)=>{const _0x429e6b=_0x45ca6a;var _0x4d6ea5,_0x296926,_0x35d108;let _0x3315ce=_0x2c99f9(_0x1456ab,_0x54ad76==null?void 0x0:_0x54ad76[_0x429e6b(0x217)]);if(!_0x3315ce)return!0x1;let _0x16fab6=_0x242660(_0x1456ab),_0x1b8f59=_0x5f1af6({'blockId':(_0x4d6ea5=_0x54ad76==null?void 0x0:_0x54ad76[_0x429e6b(0x208)])==null?(0x0,_0x282742['generateRandomId'])(0x6):_0x4d6ea5,'config':_0x54ad76==null?void 0x0:_0x54ad76[_0x429e6b(0x20e)],'documentData':_0x3315ce[_0x429e6b(0x227)],'endOffset':(_0x296926=_0x54ad76==null?void 0x0:_0x54ad76['endOffset'])==null?_0x16fab6==null?void 0x0:_0x16fab6[_0x429e6b(0x1f4)]:_0x296926,'metadata':_0x3315ce[_0x429e6b(0x233)][_0x429e6b(0x1f7)](_0x3315ce[_0x429e6b(0x217)]),'startOffset':(_0x35d108=_0x54ad76==null?void 0x0:_0x54ad76[_0x429e6b(0x271)])==null?_0x16fab6==null?void 0x0:_0x16fab6[_0x429e6b(0x271)]:_0x35d108}),_0x12152d=_0xf25a8d(_0x3315ce['commandService'],_0x3315ce[_0x429e6b(0x217)],_0x3315ce[_0x429e6b(0x227)],_0x1b8f59[_0x429e6b(0x1d8)],_0x1b8f59['cursorOffset']);return _0x12152d&&_0x1b8f59['nextMetadata']&&_0x3315ce['model'][_0x429e6b(0x274)](_0x3315ce[_0x429e6b(0x217)],_0x1b8f59[_0x429e6b(0x1cf)]),_0x12152d;}},_0x2bcbde={'id':_0x45ca6a(0x24d),'type':_0x282742[_0x45ca6a(0x226)][_0x45ca6a(0x265)],'handler':(_0x59f485,_0x54a6a9)=>{const _0x195eaf=_0x45ca6a;if(!_0x54a6a9)return!0x1;let _0x43ba7c=_0x2c99f9(_0x59f485,_0x54a6a9[_0x195eaf(0x217)]);if(!_0x43ba7c)return!0x1;let _0x49a7a9=_0x4cbc0f({'blockId':_0x54a6a9[_0x195eaf(0x208)],'config':_0x54a6a9['config'],'documentData':_0x43ba7c['previousDocumentData'],'metadata':_0x43ba7c['model'][_0x195eaf(0x1f7)](_0x43ba7c['unitId'])});return _0x49a7a9[_0x195eaf(0x1cf)]&&_0x43ba7c[_0x195eaf(0x233)][_0x195eaf(0x274)](_0x43ba7c[_0x195eaf(0x217)],_0x49a7a9[_0x195eaf(0x1cf)]),!0x0;}},_0x21cc24={'id':_0x45ca6a(0x1e1),'type':_0x282742[_0x45ca6a(0x226)][_0x45ca6a(0x265)],'handler':(_0x4983bf,_0x54b603)=>{const _0x2a4f44=_0x45ca6a;var _0x50915a,_0x2f35f3;let _0x43b680=_0x2c99f9(_0x4983bf,_0x54b603==null?void 0x0:_0x54b603[_0x2a4f44(0x217)]);if(!_0x43b680)return!0x1;let _0x3c91af=(_0x50915a=_0x54b603==null?void 0x0:_0x54b603['cursorOffset'])==null?(_0x2f35f3=_0x242660(_0x4983bf))==null?void 0x0:_0x2f35f3[_0x2a4f44(0x271)]:_0x50915a;if(_0x3c91af==null)return!0x1;let _0x3078ff=_0x2c9cb4({'cursorOffset':_0x3c91af,'documentData':_0x43b680[_0x2a4f44(0x227)]});return _0x3078ff?_0xf25a8d(_0x43b680['commandService'],_0x43b680[_0x2a4f44(0x217)],_0x43b680['previousDocumentData'],_0x3078ff[_0x2a4f44(0x1d8)],_0x3078ff[_0x2a4f44(0x1ed)]):!0x1;}},_0x478aa1={'id':_0x45ca6a(0x1fa),'type':_0x282742[_0x45ca6a(0x226)][_0x45ca6a(0x265)],'handler':(_0x37ada2,_0x57be29)=>{const _0x122b3b=_0x45ca6a;var _0x488178,_0x4cb069;let _0x41e9b4=_0x2c99f9(_0x37ada2,_0x57be29==null?void 0x0:_0x57be29[_0x122b3b(0x217)]);if(!_0x41e9b4)return!0x1;let _0x42696b=(_0x488178=_0x57be29==null?void 0x0:_0x57be29['cursorOffset'])==null?(_0x4cb069=_0x242660(_0x37ada2))==null?void 0x0:_0x4cb069['startOffset']:_0x488178;if(_0x42696b==null)return!0x1;let _0x433c61=_0x249d4f({'cursorOffset':_0x42696b,'documentData':_0x41e9b4[_0x122b3b(0x227)],'paragraphStartIndex':_0x57be29==null?void 0x0:_0x57be29[_0x122b3b(0x257)]});return _0x433c61?_0xf25a8d(_0x41e9b4['commandService'],_0x41e9b4['unitId'],_0x41e9b4[_0x122b3b(0x227)],_0x433c61[_0x122b3b(0x1d8)],_0x433c61[_0x122b3b(0x1ed)]):!0x1;}};function _0x2c99f9(_0x542064,_0x36c582){const _0x1734e4=_0x45ca6a;let _0x1b2731=_0x542064[_0x1734e4(0x22b)](_0x282742[_0x1734e4(0x264)]),_0xe62325=_0x36c582?_0x1b2731['getUniverDocInstance'](_0x36c582):_0x1b2731[_0x1734e4(0x1da)](_0x282742[_0x1734e4(0x1e8)]['UNIVER_DOC']);return _0xe62325?{'commandService':_0x542064[_0x1734e4(0x22b)](_0x282742[_0x1734e4(0x24e)]),'model':_0x542064['get'](_0x45f248),'previousDocumentData':_0xe62325[_0x1734e4(0x1f3)](),'unitId':_0xe62325[_0x1734e4(0x27f)]()}:null;}function _0x242660(_0x34fc93){const _0x505d18=_0x45ca6a;var _0x544d08;return(_0x544d08=_0x34fc93[_0x505d18(0x22b)](_0x56826b[_0x505d18(0x272)])[_0x505d18(0x225)]())==null?void 0x0:_0x544d08[0x0];}function _0x3e8283(_0x3b5f2e){const _0x57d96a=_0x45ca6a;var _0x254867;let _0x3eb27b=(_0x254867=_0x3b5f2e[_0x57d96a(0x22b)](_0x282742['IUniverInstanceService'])[_0x57d96a(0x1da)](_0x282742[_0x57d96a(0x1e8)][_0x57d96a(0x241)]))==null?void 0x0:_0x254867[_0x57d96a(0x27f)]();try{return _0x3b5f2e[_0x57d96a(0x22b)](_0x56826b[_0x57d96a(0x210)])[_0x57d96a(0x23a)](_0x3eb27b);}catch{return null;}}function _0x4ca230(_0x55c0de){const _0x4481a4=_0x45ca6a;var _0x17fb60,_0x5714fb,_0x1db453;let _0x5dd2d2=_0x242660(_0x55c0de);if(!_0x5dd2d2)return null;let _0x3e3342=_0x55c0de[_0x4481a4(0x22b)](_0x282742['IUniverInstanceService'])[_0x4481a4(0x1da)](_0x282742['UniverInstanceType'][_0x4481a4(0x241)]),_0x33e728=_0x3e3342==null?void 0x0:_0x3e3342[_0x4481a4(0x244)]();return _0x33e728?(_0x17fb60=_0x282742['BuildTextUtils']['range'][_0x4481a4(0x27d)](_0x5dd2d2,(_0x5714fb=_0x33e728['paragraphs'])==null?[]:_0x5714fb,(_0x1db453=_0x33e728[_0x4481a4(0x245)])==null?'':_0x1db453)[0x0])==null?null:_0x17fb60:null;}function _0x2bd998(_0xf5c4fe,_0x3f842e){const _0x491d00=_0x45ca6a;var _0x57e028,_0x3016fa,_0x2fa4ed,_0x3af5d6,_0x485e4d,_0xfdf9c2,_0x11e874,_0x369ac5,_0x170760,_0xe32368,_0x1d0c77,_0x387080,_0x5c9059,_0x437f60,_0x22402b,_0x18a712,_0x93dddc,_0x403d04;let _0x54cc1b=_0x282742[_0x491d00(0x250)][_0x491d00(0x23d)]();return[_0x5c9990(_0x54cc1b,['body',_0x491d00(0x245)],(_0x57e028=_0xf5c4fe['body'])==null?void 0x0:_0x57e028[_0x491d00(0x245)],(_0x3016fa=_0x3f842e['body'])==null?void 0x0:_0x3016fa[_0x491d00(0x245)]),_0x5c9990(_0x54cc1b,['body',_0x491d00(0x214)],(_0x2fa4ed=_0xf5c4fe[_0x491d00(0x273)])==null?void 0x0:_0x2fa4ed[_0x491d00(0x214)],(_0x3af5d6=_0x3f842e[_0x491d00(0x273)])==null?void 0x0:_0x3af5d6['paragraphs']),_0x5c9990(_0x54cc1b,[_0x491d00(0x273),_0x491d00(0x207)],(_0x485e4d=_0xf5c4fe['body'])==null?void 0x0:_0x485e4d['sectionBreaks'],(_0xfdf9c2=_0x3f842e[_0x491d00(0x273)])==null?void 0x0:_0xfdf9c2[_0x491d00(0x207)]),_0x5c9990(_0x54cc1b,[_0x491d00(0x273),_0x491d00(0x1d7)],(_0x11e874=_0xf5c4fe[_0x491d00(0x273)])==null?void 0x0:_0x11e874[_0x491d00(0x1d7)],(_0x369ac5=_0x3f842e[_0x491d00(0x273)])==null?void 0x0:_0x369ac5[_0x491d00(0x1d7)]),_0x5c9990(_0x54cc1b,[_0x491d00(0x273),_0x491d00(0x1d6)],(_0x170760=_0xf5c4fe[_0x491d00(0x273)])==null?void 0x0:_0x170760['customBlocks'],(_0xe32368=_0x3f842e[_0x491d00(0x273)])==null?void 0x0:_0xe32368['customBlocks']),_0x5c9990(_0x54cc1b,[_0x491d00(0x273),_0x491d00(0x1fd)],(_0x1d0c77=_0xf5c4fe[_0x491d00(0x273)])==null?void 0x0:_0x1d0c77[_0x491d00(0x1fd)],(_0x387080=_0x3f842e[_0x491d00(0x273)])==null?void 0x0:_0x387080[_0x491d00(0x1fd)]),_0x5c9990(_0x54cc1b,['body',_0x491d00(0x201)],(_0x5c9059=_0xf5c4fe[_0x491d00(0x273)])==null?void 0x0:_0x5c9059[_0x491d00(0x201)],(_0x437f60=_0x3f842e[_0x491d00(0x273)])==null?void 0x0:_0x437f60[_0x491d00(0x201)]),_0x5c9990(_0x54cc1b,[_0x491d00(0x273),_0x491d00(0x255)],(_0x22402b=_0xf5c4fe['body'])==null?void 0x0:_0x22402b[_0x491d00(0x255)],(_0x18a712=_0x3f842e['body'])==null?void 0x0:_0x18a712[_0x491d00(0x255)]),_0x5c9990(_0x54cc1b,[_0x491d00(0x273),'blockRanges'],(_0x93dddc=_0xf5c4fe[_0x491d00(0x273)])==null?void 0x0:_0x93dddc['blockRanges'],(_0x403d04=_0x3f842e[_0x491d00(0x273)])==null?void 0x0:_0x403d04['blockRanges'])]['filter'](Boolean)[_0x491d00(0x205)]((_0x5a4721,_0x80f3cb)=>_0x282742[_0x491d00(0x250)][_0x491d00(0x26e)](_0x5a4721,_0x80f3cb),null);}function _0x5c9990(_0x16152c,_0x13b800,_0xc752fd,_0x3302cc){const _0x590e0e=_0x45ca6a;return _0x282742[_0x590e0e(0x269)][_0x590e0e(0x1ec)](_0xc752fd,_0x3302cc)?null:_0x16152c[_0x590e0e(0x1d9)](_0x13b800,_0xc752fd,_0x3302cc);}function _0xf25a8d(_0x1b4fd4,_0x1d05df,_0x27e420,_0x52c86a,_0x1bd12c){const _0xc73f17=_0x45ca6a;let _0x1aec6d=_0x2bd998(_0x27e420,_0x52c86a);return _0x1aec6d?!!_0x1b4fd4['syncExecuteCommand'](_0x56826b[_0xc73f17(0x230)]['id'],{'unitId':_0x1d05df,'actions':_0x1aec6d,'textRanges':[{'startOffset':_0x1bd12c,'endOffset':_0x1bd12c,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}let _0xb3cc63=_0x45ca6a(0x23b);var _0x155249='@univerjs-pro/docs-code',_0x1c76b1=_0x45ca6a(0x262);let _0x316b7e={};function _0x235758(_0x3cba85,_0x3e9430){return function(_0x43d82c,_0x50817f){_0x3e9430(_0x43d82c,_0x50817f,_0x3cba85);};}function _0x5bbe25(_0x566ce9,_0x18a6d7,_0x1e7ee1,_0xeb2735){const _0x59004e=_0x45ca6a;var _0x53986e=arguments[_0x59004e(0x26f)],_0x5bb35d=_0x53986e<0x3?_0x18a6d7:_0xeb2735===null?_0xeb2735=Object[_0x59004e(0x1e0)](_0x18a6d7,_0x1e7ee1):_0xeb2735,_0x16c0f0;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x59004e(0x224))_0x5bb35d=Reflect[_0x59004e(0x21a)](_0x566ce9,_0x18a6d7,_0x1e7ee1,_0xeb2735);else{for(var _0x4c670f=_0x566ce9[_0x59004e(0x26f)]-0x1;_0x4c670f>=0x0;_0x4c670f--)(_0x16c0f0=_0x566ce9[_0x4c670f])&&(_0x5bb35d=(_0x53986e<0x3?_0x16c0f0(_0x5bb35d):_0x53986e>0x3?_0x16c0f0(_0x18a6d7,_0x1e7ee1,_0x5bb35d):_0x16c0f0(_0x18a6d7,_0x1e7ee1))||_0x5bb35d);}return _0x53986e>0x3&&_0x5bb35d&&Object[_0x59004e(0x1df)](_0x18a6d7,_0x1e7ee1,_0x5bb35d),_0x5bb35d;}let _0x34126a=class extends _0x282742[_0x45ca6a(0x1f9)]{constructor(_0x122c96,_0x2ece6){const _0x3f7018=_0x45ca6a;super(),this[_0x3f7018(0x1ee)]=_0x122c96,this[_0x3f7018(0x21b)]=_0x2ece6,this['_initResource']();}[_0x45ca6a(0x25a)](){const _0x2894fd=_0x45ca6a;this['disposeWithMe'](this['_resourceManagerService'][_0x2894fd(0x200)]({'pluginName':_0xb3cc63,'businesses':[_0x282742[_0x2894fd(0x1e8)][_0x2894fd(0x241)]],'toJson':_0x653a36=>JSON['stringify'](this[_0x2894fd(0x21b)][_0x2894fd(0x1f7)](_0x653a36)),'parseJson':_0x2a7906=>_0x5e35d9(JSON[_0x2894fd(0x24a)](_0x2a7906)),'onLoad':(_0x57fc14,_0x490d5b)=>this[_0x2894fd(0x21b)]['deserialize'](_0x57fc14,_0x490d5b),'onUnLoad':_0x1d128e=>this[_0x2894fd(0x21b)][_0x2894fd(0x27c)](_0x1d128e)}));}};_0x34126a=_0x5bbe25([_0x235758(0x0,_0x282742['IResourceManagerService']),_0x235758(0x1,(0x0,_0x282742[_0x45ca6a(0x25f)])(_0x45f248))],_0x34126a);let _0x20ff82=class extends _0x282742[_0x45ca6a(0x212)]{constructor(_0xe25de1=_0x316b7e,_0x1decf2,_0xd031d7,_0x2c6299){const _0x10a875=_0x45ca6a;super(),this[_0x10a875(0x240)]=_0xe25de1,this[_0x10a875(0x27b)]=_0x1decf2,this[_0x10a875(0x27a)]=_0xd031d7,this[_0x10a875(0x25d)]=_0x2c6299;let {..._0x2a8c18}=(0x0,_0x282742[_0x10a875(0x20b)])({},_0x316b7e,this[_0x10a875(0x240)]);this[_0x10a875(0x25d)][_0x10a875(0x24f)](_0x10a875(0x22a),_0x2a8c18);}[_0x45ca6a(0x1e2)](){const _0x570877=_0x45ca6a;this[_0x570877(0x27b)]['add']([_0x45f248]),this[_0x570877(0x27b)][_0x570877(0x22e)]([_0x34126a]),this['_injector'][_0x570877(0x22b)](_0x45f248),this['_injector'][_0x570877(0x22b)](_0x34126a),[_0x182a56,_0xd82485,_0x2bcbde,_0x21cc24,_0x478aa1,_0x188660][_0x570877(0x1e4)](_0xc8d2c2=>this[_0x570877(0x1fc)](this['_commandService'][_0x570877(0x26d)](_0xc8d2c2)));}};_0x1d2d3c(_0x20ff82,_0x45ca6a(0x231),_0xb3cc63),_0x1d2d3c(_0x20ff82,_0x45ca6a(0x24c),_0x155249),_0x1d2d3c(_0x20ff82,_0x45ca6a(0x252),_0x1c76b1),_0x1d2d3c(_0x20ff82,_0x45ca6a(0x26c),_0x282742[_0x45ca6a(0x1e8)][_0x45ca6a(0x241)]),_0x20ff82=_0x5bbe25([(0x0,_0x282742[_0x45ca6a(0x221)])(_0x31be7c[_0x45ca6a(0x243)],_0x56826b['UniverDocsPlugin']),_0x235758(0x1,(0x0,_0x282742[_0x45ca6a(0x25f)])(_0x282742[_0x45ca6a(0x25b)])),_0x235758(0x2,_0x282742[_0x45ca6a(0x24e)]),_0x235758(0x3,_0x282742['IConfigService'])],_0x20ff82),_0x80bbac['DEFAULT_CODE_CONFIG']=_0x365a6,_0x80bbac['DOCS_CODE_PLUGIN']=_0xb3cc63,_0x80bbac[_0x45ca6a(0x223)]=_0x478aa1,_0x80bbac['DocsCodeConsumeBoundaryDeleteCommand']=_0x188660,_0x80bbac[_0x45ca6a(0x23e)]=_0x21cc24,_0x80bbac[_0x45ca6a(0x1d4)]=_0xd82485,_0x80bbac[_0x45ca6a(0x215)]=_0x182a56,_0x80bbac[_0x45ca6a(0x256)]=_0x45f248,_0x80bbac[_0x45ca6a(0x275)]=_0x2bcbde,Object[_0x45ca6a(0x1df)](_0x80bbac,_0x45ca6a(0x1ea),{'enumerable':!0x0,'get':function(){return _0x20ff82;}}),_0x80bbac['buildCancelEmptyCodeParagraphActions']=_0x249d4f,_0x80bbac[_0x45ca6a(0x1d5)]=_0x2c9cb4,_0x80bbac[_0x45ca6a(0x1cc)]=_0x5f1af6,_0x80bbac[_0x45ca6a(0x27e)]=_0x4cbc0f,_0x80bbac[_0x45ca6a(0x1ff)]=_0x2f03a0,_0x80bbac['isCodeBoundaryDelete']=_0x5ad3f3,_0x80bbac[_0x45ca6a(0x20a)]=_0x112c50;}));
|
|
1
|
+
function _0x2350(_0x5bb30b,_0x5ea6bd){_0x5bb30b=_0x5bb30b-0x94;const _0x21c8df=_0x21c8();let _0x2350be=_0x21c8df[_0x5bb30b];return _0x2350be;}(function(_0x7a0c4a,_0x3474c9){const _0x469da0=_0x2350,_0x3f3f66=_0x7a0c4a();while(!![]){try{const _0x1de4f6=-parseInt(_0x469da0(0x119))/0x1+parseInt(_0x469da0(0x143))/0x2*(parseInt(_0x469da0(0xaa))/0x3)+parseInt(_0x469da0(0xaf))/0x4*(parseInt(_0x469da0(0x136))/0x5)+-parseInt(_0x469da0(0xae))/0x6*(parseInt(_0x469da0(0xb9))/0x7)+parseInt(_0x469da0(0xde))/0x8+parseInt(_0x469da0(0x128))/0x9*(-parseInt(_0x469da0(0xa6))/0xa)+parseInt(_0x469da0(0xce))/0xb*(parseInt(_0x469da0(0x10e))/0xc);if(_0x1de4f6===_0x3474c9)break;else _0x3f3f66['push'](_0x3f3f66['shift']());}catch(_0x56fa7d){_0x3f3f66['push'](_0x3f3f66['shift']());}}}(_0x21c8,0x64288),function(_0x3d7d52,_0x44923a){const _0x370a41=_0x2350;typeof exports==_0x370a41(0x102)&&typeof module<'u'?_0x44923a(exports,require('@univerjs/core'),require('@univerjs/docs'),require('rxjs'),require('@univerjs-pro/license')):typeof define==_0x370a41(0xed)&&define[_0x370a41(0xdc)]?define([_0x370a41(0x9e),_0x370a41(0xef),_0x370a41(0xcc),_0x370a41(0x13b),_0x370a41(0xd6)],_0x44923a):(_0x3d7d52=typeof globalThis<'u'?globalThis:_0x3d7d52||self,_0x44923a(_0x3d7d52[_0x370a41(0xba)]={},_0x3d7d52[_0x370a41(0xee)],_0x3d7d52['UniverDocs'],_0x3d7d52[_0x370a41(0x13b)],_0x3d7d52[_0x370a41(0xc4)]));}(this,function(_0x137990,_0x12bfb0,_0x49d7ad,_0x1b2194,_0x2e5d47){const _0x1e8c3c=_0x2350;Object[_0x1e8c3c(0xbd)](_0x137990,Symbol[_0x1e8c3c(0xb5)],{'value':_0x1e8c3c(0xe3)});let _0x2e814b={'language':_0x1e8c3c(0x112),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function _0x3f19b9(_0x38e795){return{..._0x2e814b,..._0x38e795};}function _0x1ba336(_0x368c36){const _0x447191=_0x1e8c3c;var _0x30be55;let _0x52f0f5=(_0x30be55=_0x368c36==null?void 0x0:_0x368c36[_0x447191(0x133)])==null?{}:_0x30be55;return{'codes':Object[_0x447191(0x146)](Object[_0x447191(0x12d)](_0x52f0f5)[_0x447191(0x144)](([_0x3ba443,_0x4412e1])=>[_0x3ba443,_0x3f19b9(_0x4412e1)]))};}function _0x311b4f(_0x159001,_0x5dd052,_0x56b226){const _0x486b3b=_0x1e8c3c;let _0x2318ad=_0x1ba336(_0x159001);return _0x2318ad[_0x486b3b(0x133)][_0x5dd052]=_0x3f19b9({..._0x2318ad[_0x486b3b(0x133)][_0x5dd052],..._0x56b226}),_0x2318ad;}function _0x58e57e(_0x539781,_0x52d907){let _0x235abd=_0x1ba336(_0x539781);return delete _0x235abd['codes'][_0x52d907],_0x235abd;}let _0x24a7f7='monospace';function _0x29bb46(_0x3a9f2b){const _0x167c62=_0x1e8c3c;var _0x156134,_0x169deb,_0x2490d9;let _0x193c2e=_0x97eb9(_0x3a9f2b[_0x167c62(0xd5)]),_0x2581ba=_0x545404(_0x193c2e),_0x40e8b2=_0x9fa608(_0x3a9f2b['startOffset'],_0x3a9f2b[_0x167c62(0xa9)]),_0x30a14a=_0x40e8b2?(_0x156134=_0x2581ba[_0x167c62(0x147)])==null?void 0x0:_0x156134[_0x167c62(0x13a)](_0x58416c=>_0x58416c[_0x167c62(0x95)]===_0x40e8b2[_0x167c62(0xb2)]&&_0x58416c[_0x167c62(0x113)]+0x1===_0x40e8b2[_0x167c62(0xa9)]):void 0x0,{startOffset:_0x2da3c8,endOffset:_0x5aa029}=_0x30a14a?_0x40e8b2:_0x3c7f11(_0x2581ba,_0x3a9f2b[_0x167c62(0xb2)],_0x3a9f2b[_0x167c62(0xa9)]),_0x5e194e=_0x1ff1c1(_0x2581ba,_0x2da3c8,_0x5aa029),_0x12ef25=(_0x169deb=_0x30a14a==null?void 0x0:_0x30a14a['blockId'])==null?_0x3a9f2b[_0x167c62(0x101)]:_0x169deb,_0x2f8eca=_0x311b4f(_0x3a9f2b[_0x167c62(0xe7)],_0x12ef25,{..._0x2e814b,..._0x3a9f2b['config']});if(_0x30a14a)return _0x30a14a[_0x167c62(0xc3)]=_0x12bfb0[_0x167c62(0x140)][_0x167c62(0xec)],_0x571d4f(_0x2581ba,_0x2da3c8,_0x5aa029),_0x1d34a8(_0x2581ba,_0x2da3c8,_0x5aa029,_0x5e194e),_0x2f8aa8(_0x2581ba,_0x30a14a),{'nextDocumentData':_0x193c2e,'nextMetadata':_0x2f8eca,'cursorOffset':_0x2da3c8+0x1};if(_0x2da3c8===_0x5aa029){var _0x3921d7,_0x54c191;let _0x3ac27b=''+_0x12bfb0[_0x167c62(0xbc)][_0x167c62(0x142)]+_0x12bfb0[_0x167c62(0xbc)][_0x167c62(0xc5)]+_0x12bfb0[_0x167c62(0xbc)][_0x167c62(0x9d)];_0x2d3904(_0x2581ba,_0x2da3c8,_0x3ac27b,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,_0x12bfb0['createParagraphId'])(new Set((_0x3921d7=_0x2581ba[_0x167c62(0x13f)])==null?void 0x0:_0x3921d7[_0x167c62(0x144)](_0x1df2f1=>_0x1df2f1[_0x167c62(0x11b)]))),'paragraphStyle':_0x83336b(!0x0,!0x0,_0x5e194e)}],'blockRanges':[{'blockId':_0x12ef25,'blockType':_0x12bfb0['DocumentBlockRangeType'][_0x167c62(0xec)],'startIndex':0x0,'endIndex':_0x3ac27b[_0x167c62(0x10b)]-0x1}]});let _0x265563=(_0x54c191=_0x2581ba[_0x167c62(0x147)])==null?void 0x0:_0x54c191[_0x167c62(0x13a)](_0x404365=>_0x404365[_0x167c62(0x101)]===_0x12ef25);return _0x265563&&_0x2f8aa8(_0x2581ba,_0x265563),{'nextDocumentData':_0x193c2e,'nextMetadata':_0x2f8eca,'cursorOffset':_0x2da3c8+0x1};}_0x2d3904(_0x2581ba,_0x5aa029,_0x12bfb0['DataStreamTreeTokenType']['BLOCK_END']),_0x2d3904(_0x2581ba,_0x2da3c8,_0x12bfb0[_0x167c62(0xbc)]['BLOCK_START']),_0x1d34a8(_0x2581ba,_0x2da3c8,_0x5aa029+0x1,_0x5e194e);let _0xa18f3={'blockId':_0x12ef25,'blockType':_0x12bfb0[_0x167c62(0x140)][_0x167c62(0xec)],'startIndex':_0x2da3c8,'endIndex':_0x5aa029+0x1};return _0x2581ba[_0x167c62(0x147)]=[...(_0x2490d9=_0x2581ba['blockRanges'])==null?[]:_0x2490d9,_0xa18f3]['sort']((_0x14965c,_0x4ee5d9)=>_0x14965c['startIndex']-_0x4ee5d9[_0x167c62(0x95)]),_0x2f8aa8(_0x2581ba,_0xa18f3),{'nextDocumentData':_0x193c2e,'nextMetadata':_0x2f8eca,'cursorOffset':_0x2da3c8+0x1};}function _0x571d4f(_0x59986e,_0x11531d,_0x774015){const _0x2dccde=_0x1e8c3c;var _0x30671f;((_0x30671f=_0x59986e['paragraphs'])==null?[]:_0x30671f)['filter'](_0x2de3c1=>_0x2de3c1[_0x2dccde(0x95)]>_0x11531d&&_0x2de3c1[_0x2dccde(0x95)]<_0x774015)[_0x2dccde(0x114)](_0x283902=>{const _0x1cf728=_0x2dccde;var _0xd594cc;let _0x181b97={...(_0xd594cc=_0x283902[_0x1cf728(0x97)])==null?{}:_0xd594cc};delete _0x181b97[_0x1cf728(0xf3)],delete _0x181b97[_0x1cf728(0x126)],_0x283902[_0x1cf728(0x97)]=_0x181b97;});}function _0x9fa608(_0x3d16ad,_0x4ec4bd){const _0x498acd=_0x1e8c3c;return _0x3d16ad==null||_0x4ec4bd==null||_0x3d16ad===_0x4ec4bd?null:{'startOffset':Math[_0x498acd(0xf6)](_0x3d16ad,_0x4ec4bd),'endOffset':Math[_0x498acd(0xe2)](_0x3d16ad,_0x4ec4bd)};}function _0x84da81(_0x774619){const _0x1578b6=_0x1e8c3c;return{'nextDocumentData':_0x97eb9(_0x774619[_0x1578b6(0xd5)]),'nextMetadata':_0x311b4f(_0x774619[_0x1578b6(0xe7)],_0x774619[_0x1578b6(0x101)],_0x774619[_0x1578b6(0xa0)]),'cursorOffset':0x0};}function _0x553e53(_0x1ebdd9){const _0x422224=_0x1e8c3c;var _0x1ddc6a,_0x2509e2;let _0x447a31=_0x97eb9(_0x1ebdd9['documentData']),_0x2166f8=_0x545404(_0x447a31),_0x4394cf=_0x1031e0(_0x2166f8,_0x1ebdd9[_0x422224(0x13c)]);if(!_0x4394cf)return null;let _0x3f3d09=_0x240b97(_0x2166f8,_0x4394cf),_0x50ccf7=_0x3f3d09[_0x3f3d09[_0x422224(0x10b)]-0x1];if(!_0x50ccf7||!_0x4320aa(_0x2166f8,_0x4394cf,_0x50ccf7)||_0x1ebdd9[_0x422224(0x13c)]<_0x50ccf7['startIndex'])return null;let _0x10a0c1=_0x5e9fd7(_0x2166f8,_0x4394cf,_0x50ccf7);if(_0x10a0c1>=_0x4394cf['endIndex'])return null;_0x2166f8[_0x422224(0xe1)]=[_0x2166f8[_0x422224(0xe1)]['slice'](0x0,_0x10a0c1),_0x12bfb0['DataStreamTreeTokenType'][_0x422224(0x9d)],_0x2166f8['dataStream'][_0x422224(0xe4)](_0x10a0c1,_0x4394cf[_0x422224(0x113)]),_0x2166f8[_0x422224(0xe1)][_0x422224(0xe4)](_0x4394cf[_0x422224(0x113)]+0x1)]['join'](''),_0x4860c0(_0x2166f8['paragraphs'],_0x10a0c1,_0x4394cf[_0x422224(0x113)],0x1),_0x4860c0(_0x2166f8[_0x422224(0xa3)],_0x10a0c1,_0x4394cf[_0x422224(0x113)],0x1),_0x4860c0(_0x2166f8[_0x422224(0xa7)],_0x10a0c1,_0x4394cf['endIndex'],0x1),_0x49d5a4(_0x2166f8[_0x422224(0x137)],_0x10a0c1,_0x4394cf[_0x422224(0x113)],0x1),_0x5b07f6(_0x2166f8['tables'],_0x10a0c1,_0x4394cf[_0x422224(0x113)],0x1),_0x5b07f6(_0x2166f8[_0x422224(0xdf)],_0x10a0c1,_0x4394cf[_0x422224(0x113)],0x1),_0x5b07f6(_0x2166f8[_0x422224(0xab)],_0x10a0c1,_0x4394cf[_0x422224(0x113)],0x1),(_0x1ddc6a=_0x2166f8[_0x422224(0x147)])==null||_0x1ddc6a[_0x422224(0x114)](_0x165351=>{const _0x2fb23=_0x422224;_0x165351===_0x4394cf||_0x165351[_0x2fb23(0x101)]===_0x4394cf[_0x2fb23(0x101)]?_0x165351[_0x2fb23(0x113)]=_0x10a0c1:_0x165351[_0x2fb23(0x95)]>=_0x10a0c1&&_0x165351[_0x2fb23(0x95)]<_0x4394cf[_0x2fb23(0x113)]&&(_0x165351[_0x2fb23(0x95)]+=0x1,_0x165351['endIndex']+=0x1);});let _0x50a203=_0x240b97(_0x2166f8,{..._0x4394cf,'endIndex':_0x10a0c1});_0x50a203[_0x422224(0x114)]((_0x1088de,_0x4d8df0)=>{var _0x5f2972;_0x1088de['paragraphStyle']={...(_0x5f2972=_0x1088de['paragraphStyle'])==null?{}:_0x5f2972,..._0x83336b(_0x4d8df0===0x0,_0x4d8df0===_0x50a203['length']-0x1)};});let _0x4c648c=(_0x2509e2=_0x2166f8[_0x422224(0x13f)])==null?void 0x0:_0x2509e2[_0x422224(0x13a)](_0x5d1ab2=>_0x5d1ab2[_0x422224(0x95)]===_0x10a0c1+0x1);return _0x4c648c&&(_0x4c648c[_0x422224(0x97)]=_0x49f566(_0x4c648c[_0x422224(0x97)])),{'nextDocumentData':_0x447a31,'cursorOffset':_0x10a0c1+0x1};}function _0x49d3c8(_0x4bfa1d){const _0x516b41=_0x1e8c3c;let _0x1e4006=_0x97eb9(_0x4bfa1d[_0x516b41(0xd5)]),_0x33eb3d=_0x545404(_0x1e4006),_0x2412d8=_0x1031e0(_0x33eb3d,_0x4bfa1d[_0x516b41(0x13c)]);return _0x2412d8&&_0x3e143b(_0x1e4006,_0x33eb3d,_0x2412d8,_0x4bfa1d[_0x516b41(0x13c)],_0x4bfa1d[_0x516b41(0x145)])||null;}function _0x3e143b(_0x52b9c8,_0x1ff33b,_0x1e0c10,_0x6ae3e1,_0x181bb6){const _0x3db29a=_0x1e8c3c;let _0x5879ba=_0x243eaf(_0x1ff33b,_0x1e0c10,_0x6ae3e1,_0x181bb6);if(!_0x5879ba)return null;let _0x43addd=_0x5879ba[_0x3db29a(0xd0)]-0x1;return _0x13bed6(_0x1ff33b,_0x5879ba['paragraph']['startIndex'],_0x5879ba[_0x3db29a(0xf5)]['startIndex']+0x1),{'nextDocumentData':_0x52b9c8,'cursorOffset':_0x43addd};}function _0x252345(_0xb107cb,_0x51913e){const _0x5a0bbb=_0x1e8c3c;var _0x57ef01;return _0xb107cb==null||(_0x57ef01=_0xb107cb[_0x5a0bbb(0x147)])==null?void 0x0:_0x57ef01['find'](_0x14a470=>_0x14a470[_0x5a0bbb(0xc3)]===_0x12bfb0[_0x5a0bbb(0x140)][_0x5a0bbb(0xec)]&&_0x14a470[_0x5a0bbb(0x95)]<=_0x51913e&&_0x51913e<=_0x14a470[_0x5a0bbb(0x113)]);}function _0x29479e(_0x29b3f7){const _0xfe3922=_0x1e8c3c;var _0x59f3ad;let _0x3085fa=_0x29b3f7[_0xfe3922(0xd5)][_0xfe3922(0x116)];if(!_0x3085fa)return!0x1;let _0x570a01=_0x29b3f7[_0xfe3922(0xe8)]===_0xfe3922(0x11d)?_0x29b3f7[_0xfe3922(0x13c)]-0x1:_0x29b3f7[_0xfe3922(0x13c)],_0x4435c7=_0x29b3f7[_0xfe3922(0xe8)]==='right'?_0x29b3f7[_0xfe3922(0x13c)]+0x1:_0x570a01;return((_0x59f3ad=_0x3085fa[_0xfe3922(0x147)])==null?[]:_0x59f3ad)[_0xfe3922(0xa8)](_0x50f2ae=>_0x50f2ae[_0xfe3922(0xc3)]===_0x12bfb0[_0xfe3922(0x140)]['CODE']?_0x570a01===_0x50f2ae['startIndex']||_0x570a01===_0x50f2ae['endIndex']||_0x4435c7===_0x50f2ae[_0xfe3922(0x95)]||_0x4435c7===_0x50f2ae['endIndex']:!0x1);}function _0x1031e0(_0x95ca30,_0x1a92e2){const _0x41ee96=_0x1e8c3c;var _0x4cd534;return(_0x4cd534=_0x95ca30[_0x41ee96(0x147)])==null?void 0x0:_0x4cd534['find'](_0x28a7aa=>{const _0x695843=_0x41ee96;let _0x747b9c=_0x432bc4(_0x95ca30,_0x28a7aa);return _0x28a7aa['blockType']===_0x12bfb0[_0x695843(0x140)][_0x695843(0xec)]&&_0x28a7aa[_0x695843(0x95)]<=_0x1a92e2&&_0x1a92e2<=_0x747b9c+0x2;});}function _0x83336b(_0x156c61,_0x302d6e,_0x4b78dc=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x156c61&&_0x4b78dc?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':_0x24a7f7,'fs':0xc}};}function _0x1d34a8(_0x36c961,_0xd3d7f3,_0x1920de,_0x42b00c=!0x1){const _0x464791=_0x1e8c3c;var _0x5e3bd0;let _0x47076b=((_0x5e3bd0=_0x36c961[_0x464791(0x13f)])==null?[]:_0x5e3bd0)[_0x464791(0xb1)](_0x18f285=>_0x18f285[_0x464791(0x95)]>_0xd3d7f3&&_0x18f285[_0x464791(0x95)]<_0x1920de);_0x47076b['forEach']((_0x2b4bbf,_0xe5a154)=>{const _0x52b423=_0x464791;var _0x1a41f0;_0x2b4bbf[_0x52b423(0x97)]={...(_0x1a41f0=_0x2b4bbf['paragraphStyle'])==null?{}:_0x1a41f0,..._0x83336b(_0xe5a154===0x0,_0xe5a154===_0x47076b[_0x52b423(0x10b)]-0x1,_0x42b00c)};});}function _0x49f566(_0x12d490){const _0x5d65cf=_0x1e8c3c;var _0x25d304,_0x1ee42e;let _0x269222={..._0x12d490==null?{}:_0x12d490};return delete _0x269222['indentEnd'],delete _0x269222[_0x5d65cf(0x107)],delete _0x269222[_0x5d65cf(0xf3)],delete _0x269222[_0x5d65cf(0x126)],((_0x25d304=_0x269222[_0x5d65cf(0x10f)])==null?void 0x0:_0x25d304['ff'])===_0x24a7f7&&((_0x1ee42e=_0x269222[_0x5d65cf(0x10f)])==null?void 0x0:_0x1ee42e['fs'])===0xc&&delete _0x269222[_0x5d65cf(0x10f)],_0x269222;}function _0x240b97(_0xa5affc,_0x4ea901){const _0x2e759d=_0x1e8c3c;var _0x576a6;let _0x3fd26d=_0x432bc4(_0xa5affc,_0x4ea901);return((_0x576a6=_0xa5affc[_0x2e759d(0x13f)])==null?[]:_0x576a6)[_0x2e759d(0xb1)](_0x5513f7=>_0x5513f7['startIndex']>_0x4ea901[_0x2e759d(0x95)]&&_0x5513f7[_0x2e759d(0x95)]<_0x3fd26d);}function _0x4320aa(_0x5d5433,_0x14bf14,_0x592d9c){const _0x5dd541=_0x1e8c3c;let _0x1be490=_0x5e9fd7(_0x5d5433,_0x14bf14,_0x592d9c),_0x564061=_0x5d5433[_0x5dd541(0xe1)][_0x5dd541(0xe4)](_0x1be490,_0x592d9c['startIndex']);return Array[_0x5dd541(0x135)](_0x564061)['every'](_0x578e44=>_0x578e44===_0x12bfb0[_0x5dd541(0xbc)][_0x5dd541(0x142)]||_0x578e44===_0x12bfb0['DataStreamTreeTokenType']['BLOCK_END']);}function _0x97eb9(_0x88a0ad){const _0xb86f22=_0x1e8c3c;return _0x12bfb0['Tools'][_0xb86f22(0xcb)](_0x88a0ad);}function _0x545404(_0xc014de){const _0x436a38=_0x1e8c3c;if(!_0xc014de[_0x436a38(0x116)])throw Error(_0x436a38(0xeb));return _0xc014de[_0x436a38(0x116)];}function _0x3c7f11(_0x2c1a5e,_0xae6fa0,_0x56fa02){const _0x55ca74=_0x1e8c3c;if(_0xae6fa0==null||_0x56fa02==null){let _0x19df1b=_0x22d216(_0x2c1a5e);return{'startOffset':_0x19df1b,'endOffset':_0x19df1b};}let _0x38cc3a=Math[_0x55ca74(0xf6)](_0xae6fa0,_0x56fa02),_0x91d5f7=Math[_0x55ca74(0xe2)](_0xae6fa0,_0x56fa02);if(_0x38cc3a===_0x91d5f7){let _0x4ebc02=_0x3146c8(_0x2c1a5e,_0x38cc3a);return{'startOffset':_0x4ebc02,'endOffset':_0x4ebc02};}return _0x159483(_0x2c1a5e,_0x38cc3a,_0x91d5f7);}function _0x3146c8(_0x5484b1,_0x31312b){const _0x34dbde=_0x1e8c3c;return _0x31312b===0x0&&_0x5484b1[_0x34dbde(0xe1)][0x0]===_0x12bfb0['DataStreamTreeTokenType'][_0x34dbde(0xc5)]?0x1:_0x31312b;}function _0x22d216(_0x5bb23a){const _0xe508a7=_0x1e8c3c;return _0x5bb23a[_0xe508a7(0xe1)][_0xe508a7(0xd2)](_0x12bfb0[_0xe508a7(0xbc)][_0xe508a7(0x104)])?Math[_0xe508a7(0xe2)](0x0,_0x5bb23a[_0xe508a7(0xe1)]['length']-0x1):_0x5bb23a[_0xe508a7(0xe1)][_0xe508a7(0x10b)];}function _0x1ff1c1(_0x24d880,_0x1c5619,_0xcf9cee){const _0x109cd0=_0x1e8c3c;var _0x520df2;let _0x28eb66=Math[_0x109cd0(0xf6)](_0x1c5619,_0xcf9cee),_0x7caf5f=Math[_0x109cd0(0xe2)](_0x1c5619,_0xcf9cee);return!!((_0x520df2=_0x24d880['tables'])!=null&&_0x520df2['some'](_0x500101=>_0x28eb66>_0x500101['startIndex']&&_0x28eb66<_0x500101[_0x109cd0(0x113)]||_0x7caf5f>_0x500101[_0x109cd0(0x95)]&&_0x7caf5f<_0x500101[_0x109cd0(0x113)]||_0x28eb66<=_0x500101['startIndex']&&_0x7caf5f>=_0x500101[_0x109cd0(0x113)]));}function _0x159483(_0x276029,_0x27d10b,_0x38e931){const _0x227a04=_0x1e8c3c;var _0x27d259,_0x477556;let _0x14a223=[...(_0x27d259=_0x276029['paragraphs'])==null?[]:_0x27d259]['sort']((_0x319bca,_0x4ed226)=>_0x319bca[_0x227a04(0x95)]-_0x4ed226[_0x227a04(0x95)]),_0x1a1739=_0x14a223['find']((_0x2ec3f3,_0x10379d)=>(_0x10379d===0x0?0x0:_0x14a223[_0x10379d-0x1]['startIndex']+0x1)<=_0x27d10b&&_0x27d10b<=_0x2ec3f3[_0x227a04(0x95)]),_0x10c530=(_0x477556=_0x14a223[_0x227a04(0x13a)](_0x1dd008=>_0x1dd008['startIndex']>=_0x38e931-0x1))==null?_0x14a223[_0x14a223['length']-0x1]:_0x477556;return{'startOffset':_0x1a1739?_0x4da876(_0x14a223,_0x1a1739):_0x27d10b,'endOffset':_0x10c530?_0x10c530['startIndex']+0x1:_0x38e931};}function _0x4da876(_0x231273,_0x3cb9e1){let _0x30adc1=_0x231273['indexOf'](_0x3cb9e1);return _0x30adc1>0x0?_0x231273[_0x30adc1-0x1]['startIndex']+0x1:0x0;}function _0x5e9fd7(_0x49f424,_0x5876ce,_0x5797f1){const _0xc34e0a=_0x1e8c3c;var _0x435bdf;return Math[_0xc34e0a(0xe2)](_0x4da876((_0x435bdf=_0x49f424[_0xc34e0a(0x13f)])==null?[]:_0x435bdf,_0x5797f1),_0x5876ce['startIndex']+0x1);}function _0x432bc4(_0x3f85ad,_0x5eafdf){const _0x49aafe=_0x1e8c3c;return _0x3f85ad['dataStream'][_0x5eafdf[_0x49aafe(0x113)]]===_0x12bfb0[_0x49aafe(0xbc)][_0x49aafe(0x9d)]?_0x5eafdf[_0x49aafe(0x113)]:_0x3f85ad[_0x49aafe(0xe1)][_0x5eafdf[_0x49aafe(0x113)]+0x1]===_0x12bfb0['DataStreamTreeTokenType'][_0x49aafe(0x9d)]?_0x5eafdf['endIndex']+0x1:_0x5eafdf[_0x49aafe(0x113)];}function _0x243eaf(_0x2c0687,_0x350d48,_0x86b983,_0x295d87){const _0x4fbf46=_0x1e8c3c;var _0xe9db79,_0x531085;let _0x4f85b0=_0x432bc4(_0x2c0687,_0x350d48),_0x1d3899=((_0xe9db79=_0x2c0687[_0x4fbf46(0x13f)])==null?[]:_0xe9db79)['find'](_0x5d3530=>_0x5d3530[_0x4fbf46(0x95)]===_0x4f85b0+0x1);if(!_0x1d3899||_0x295d87!=null&&_0x1d3899[_0x4fbf46(0x95)]!==_0x295d87||_0x86b983<_0x4f85b0||_0x86b983>_0x1d3899[_0x4fbf46(0x95)]+0x1||_0x2c0687[_0x4fbf46(0xe1)][_0x1d3899[_0x4fbf46(0x95)]]!==_0x12bfb0[_0x4fbf46(0xbc)][_0x4fbf46(0xc5)])return null;let _0x3540af=_0x4da876((_0x531085=_0x2c0687[_0x4fbf46(0x13f)])==null?[]:_0x531085,_0x1d3899),_0x5db347=_0x2c0687[_0x4fbf46(0xe1)][_0x4fbf46(0xe4)](_0x3540af,_0x1d3899['startIndex']);return Array[_0x4fbf46(0x135)](_0x5db347)[_0x4fbf46(0xbb)](_0x125739=>_0x125739===_0x12bfb0['DataStreamTreeTokenType'][_0x4fbf46(0x9d)])?{'paragraph':_0x1d3899,'endTokenOffset':_0x4f85b0}:null;}function _0x2f8aa8(_0x19e284,_0x44eee8){const _0x1e3413=_0x1e8c3c;var _0x23b28b;let _0x1f97bf=_0x432bc4(_0x19e284,_0x44eee8),_0x4de8cc=_0x19e284['dataStream'][_0x1f97bf+0x1];_0x4de8cc!==_0x12bfb0['DataStreamTreeTokenType'][_0x1e3413(0x104)]&&_0x4de8cc!==void 0x0||_0x2d3904(_0x19e284,_0x1f97bf+0x1,_0x12bfb0['DataStreamTreeTokenType'][_0x1e3413(0xc5)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,_0x12bfb0['createParagraphId'])(new Set((_0x23b28b=_0x19e284[_0x1e3413(0x13f)])==null?void 0x0:_0x23b28b[_0x1e3413(0x144)](_0x492bd5=>_0x492bd5[_0x1e3413(0x11b)])))}]});}function _0x2d3904(_0x1b1efb,_0x37670e,_0x96a16d,_0x54af30={}){const _0x1f4cec=_0x1e8c3c;var _0x4ca51a,_0x3f2ea3;if(_0x96a16d){if(_0x1b1efb[_0x1f4cec(0xe1)]=''+_0x1b1efb[_0x1f4cec(0xe1)]['slice'](0x0,_0x37670e)+_0x96a16d+_0x1b1efb[_0x1f4cec(0xe1)][_0x1f4cec(0xe4)](_0x37670e),_0x52ad01(_0x1b1efb,_0x37670e,_0x96a16d['length']),(_0x4ca51a=_0x54af30[_0x1f4cec(0x13f)])!=null&&_0x4ca51a['length']){var _0x56fc34;_0x1b1efb[_0x1f4cec(0x13f)]=[...(_0x56fc34=_0x1b1efb[_0x1f4cec(0x13f)])==null?[]:_0x56fc34,..._0x54af30[_0x1f4cec(0x13f)][_0x1f4cec(0x144)](_0x5ae49b=>({..._0x5ae49b,'startIndex':_0x5ae49b['startIndex']+_0x37670e}))][_0x1f4cec(0xc8)]((_0xf7e773,_0x3f187b)=>_0xf7e773[_0x1f4cec(0x95)]-_0x3f187b['startIndex']);}if((_0x3f2ea3=_0x54af30['blockRanges'])!=null&&_0x3f2ea3[_0x1f4cec(0x10b)]){var _0x16bd70;_0x1b1efb[_0x1f4cec(0x147)]=[...(_0x16bd70=_0x1b1efb[_0x1f4cec(0x147)])==null?[]:_0x16bd70,..._0x54af30[_0x1f4cec(0x147)]['map'](_0x20a210=>({..._0x20a210,'startIndex':_0x20a210[_0x1f4cec(0x95)]+_0x37670e,'endIndex':_0x20a210[_0x1f4cec(0x113)]+_0x37670e}))][_0x1f4cec(0xc8)]((_0xfae670,_0x332b24)=>_0xfae670['startIndex']-_0x332b24[_0x1f4cec(0x95)]);}}}function _0x13bed6(_0xd8e8e7,_0x50e870,_0x2f6079){const _0x3de294=_0x1e8c3c;let _0x4acfbf=_0x2f6079-_0x50e870;_0xd8e8e7[_0x3de294(0xe1)]=''+_0xd8e8e7[_0x3de294(0xe1)][_0x3de294(0xe4)](0x0,_0x50e870)+_0xd8e8e7['dataStream'][_0x3de294(0xe4)](_0x2f6079),_0x79aa34(_0xd8e8e7,_0x50e870,_0x4acfbf);}function _0x52ad01(_0x3a1345,_0x1e6b4d,_0x56b693){const _0x15758b=_0x1e8c3c;_0x3a1345[_0x15758b(0x13f)]=_0x8f606(_0x3a1345[_0x15758b(0x13f)],_0x1e6b4d,_0x56b693),_0x3a1345[_0x15758b(0xa3)]=_0x8f606(_0x3a1345[_0x15758b(0xa3)],_0x1e6b4d,_0x56b693),_0x3a1345[_0x15758b(0xa7)]=_0x8f606(_0x3a1345['customBlocks'],_0x1e6b4d,_0x56b693),_0x3a1345[_0x15758b(0x137)]=_0x4bfdaf(_0x3a1345[_0x15758b(0x137)],_0x1e6b4d,_0x56b693),_0x3a1345[_0x15758b(0xd4)]=_0x22f52e(_0x3a1345[_0x15758b(0xd4)],_0x1e6b4d,_0x56b693),_0x3a1345[_0x15758b(0xdf)]=_0x22f52e(_0x3a1345['customRanges'],_0x1e6b4d,_0x56b693),_0x3a1345['customDecorations']=_0x22f52e(_0x3a1345[_0x15758b(0xab)],_0x1e6b4d,_0x56b693),_0x3a1345['blockRanges']=_0x22f52e(_0x3a1345['blockRanges'],_0x1e6b4d,_0x56b693);}function _0x79aa34(_0xcfadc3,_0x5035b0,_0x14b6f0){const _0x24bbeb=_0x1e8c3c;var _0x56a4fd,_0x2c8134;_0xcfadc3[_0x24bbeb(0x13f)]=_0x3c7cbe(_0xcfadc3[_0x24bbeb(0x13f)],_0x5035b0,_0x14b6f0),_0xcfadc3[_0x24bbeb(0xa3)]=_0x3c7cbe(_0xcfadc3['sectionBreaks'],_0x5035b0,_0x14b6f0),_0xcfadc3[_0x24bbeb(0xa7)]=_0x3c7cbe(_0xcfadc3['customBlocks'],_0x5035b0,_0x14b6f0),_0xcfadc3[_0x24bbeb(0x137)]=(_0x56a4fd=_0x2df977((_0x2c8134=_0xcfadc3[_0x24bbeb(0x137)])==null?void 0x0:_0x2c8134[_0x24bbeb(0x144)](_0x1a139c=>({..._0x1a139c,'startIndex':_0x1a139c['st'],'endIndex':_0x1a139c['ed']})),_0x5035b0,_0x14b6f0))==null?void 0x0:_0x56a4fd[_0x24bbeb(0x144)](_0x3ee06c=>{let {startIndex:_0x218ece,endIndex:_0x549e6e,..._0x4e09c2}=_0x3ee06c;return{..._0x4e09c2,'st':_0x218ece,'ed':_0x549e6e};}),_0xcfadc3['tables']=_0x2df977(_0xcfadc3[_0x24bbeb(0xd4)],_0x5035b0,_0x14b6f0),_0xcfadc3[_0x24bbeb(0xdf)]=_0x2df977(_0xcfadc3['customRanges'],_0x5035b0,_0x14b6f0),_0xcfadc3[_0x24bbeb(0xab)]=_0x2df977(_0xcfadc3[_0x24bbeb(0xab)],_0x5035b0,_0x14b6f0),_0xcfadc3[_0x24bbeb(0x147)]=_0x2df977(_0xcfadc3[_0x24bbeb(0x147)],_0x5035b0,_0x14b6f0);}function _0x8f606(_0x291b68,_0x35a491,_0x24708a){const _0x223a87=_0x1e8c3c;return _0x291b68==null?void 0x0:_0x291b68[_0x223a87(0x144)](_0x2ee8e3=>_0x2ee8e3['startIndex']>=_0x35a491?{..._0x2ee8e3,'startIndex':_0x2ee8e3[_0x223a87(0x95)]+_0x24708a}:_0x2ee8e3);}function _0x3c7cbe(_0x352125,_0x16a81d,_0x3811e9){const _0x28c34a=_0x1e8c3c;let _0x5cfbb7=_0x16a81d+_0x3811e9;return _0x352125==null?void 0x0:_0x352125[_0x28c34a(0x144)](_0x1063b8=>_0x1063b8[_0x28c34a(0x95)]>=_0x16a81d&&_0x1063b8[_0x28c34a(0x95)]<_0x5cfbb7?null:_0x1063b8[_0x28c34a(0x95)]>=_0x5cfbb7?{..._0x1063b8,'startIndex':_0x1063b8[_0x28c34a(0x95)]-_0x3811e9}:_0x1063b8)['filter'](_0x2309a5=>_0x2309a5!=null);}function _0x4bfdaf(_0x96e3a7,_0x42f5a5,_0x5207d3){const _0x4b1553=_0x1e8c3c;return _0x96e3a7==null?void 0x0:_0x96e3a7[_0x4b1553(0x144)](_0x3cf9b1=>_0x3cf9b1['st']>=_0x42f5a5?{..._0x3cf9b1,'st':_0x3cf9b1['st']+_0x5207d3,'ed':_0x3cf9b1['ed']+_0x5207d3}:_0x3cf9b1['ed']>_0x42f5a5?{..._0x3cf9b1,'ed':_0x3cf9b1['ed']+_0x5207d3}:_0x3cf9b1);}function _0x22f52e(_0x2dc97f,_0x1f3750,_0x7a662c){const _0x3943cd=_0x1e8c3c;return _0x2dc97f==null?void 0x0:_0x2dc97f[_0x3943cd(0x144)](_0x1b3dc6=>_0x1b3dc6[_0x3943cd(0x95)]>=_0x1f3750?{..._0x1b3dc6,'startIndex':_0x1b3dc6[_0x3943cd(0x95)]+_0x7a662c,'endIndex':_0x1b3dc6[_0x3943cd(0x113)]+_0x7a662c}:_0x1b3dc6[_0x3943cd(0x113)]>=_0x1f3750?{..._0x1b3dc6,'endIndex':_0x1b3dc6[_0x3943cd(0x113)]+_0x7a662c}:_0x1b3dc6);}function _0x2df977(_0x42b679,_0x36b057,_0xcb2600){const _0x32157c=_0x1e8c3c;let _0x4d6897=_0x36b057+_0xcb2600;return _0x42b679==null?void 0x0:_0x42b679['map'](_0x2e0f36=>_0x2e0f36[_0x32157c(0x95)]>=_0x36b057&&_0x2e0f36['endIndex']<_0x4d6897?null:_0x2e0f36[_0x32157c(0x95)]>=_0x4d6897?{..._0x2e0f36,'startIndex':_0x2e0f36[_0x32157c(0x95)]-_0xcb2600,'endIndex':_0x2e0f36['endIndex']-_0xcb2600}:_0x2e0f36[_0x32157c(0x113)]>=_0x36b057?{..._0x2e0f36,'startIndex':_0x2e0f36[_0x32157c(0x95)]<_0x36b057?_0x2e0f36[_0x32157c(0x95)]:_0x36b057,'endIndex':Math['max'](_0x36b057,_0x2e0f36[_0x32157c(0x113)]-_0xcb2600)}:_0x2e0f36)['filter'](_0x3a3b42=>_0x3a3b42!=null);}function _0x4860c0(_0x4aa1cd,_0xf3f889,_0x5365e9,_0x40eab9){const _0x4d1c48=_0x1e8c3c;_0x4aa1cd==null||_0x4aa1cd[_0x4d1c48(0x114)](_0xb54a8=>{const _0x334b68=_0x4d1c48;_0xb54a8[_0x334b68(0x95)]>=_0xf3f889&&_0xb54a8[_0x334b68(0x95)]<_0x5365e9&&(_0xb54a8[_0x334b68(0x95)]+=_0x40eab9);});}function _0x49d5a4(_0x506772,_0x1d5194,_0x4ebab9,_0x30b6aa){const _0x677dee=_0x1e8c3c;_0x506772==null||_0x506772[_0x677dee(0x114)](_0x3a04db=>{_0x3a04db['st']>=_0x1d5194&&_0x3a04db['st']<_0x4ebab9?(_0x3a04db['st']+=_0x30b6aa,_0x3a04db['ed']+=_0x30b6aa):_0x3a04db['ed']>_0x1d5194&&_0x3a04db['ed']<_0x4ebab9&&(_0x3a04db['ed']+=_0x30b6aa);});}function _0x5b07f6(_0x3470d2,_0x5673ad,_0x51aa4c,_0x3e92d7){_0x3470d2==null||_0x3470d2['forEach'](_0x31e55b=>{const _0x14041b=_0x2350;_0x31e55b[_0x14041b(0x95)]>=_0x5673ad&&_0x31e55b['startIndex']<_0x51aa4c?(_0x31e55b[_0x14041b(0x95)]+=_0x3e92d7,_0x31e55b['endIndex']+=_0x3e92d7):_0x31e55b['endIndex']>_0x5673ad&&_0x31e55b[_0x14041b(0x113)]<_0x51aa4c&&(_0x31e55b[_0x14041b(0x113)]+=_0x3e92d7);});}function _0x4b8240(_0x5c1be8){'@babel/helpers - typeof';const _0x5e706c=_0x1e8c3c;return _0x4b8240=typeof Symbol=='function'&&typeof Symbol[_0x5e706c(0xb4)]=='symbol'?function(_0x54cf10){return typeof _0x54cf10;}:function(_0x320d90){const _0x239e86=_0x5e706c;return _0x320d90&&typeof Symbol==_0x239e86(0xed)&&_0x320d90[_0x239e86(0x12c)]===Symbol&&_0x320d90!==Symbol[_0x239e86(0x11e)]?'symbol':typeof _0x320d90;},_0x4b8240(_0x5c1be8);}function _0x2eacc9(_0x486eff,_0x1c06f2){const _0x3fba00=_0x1e8c3c;if(_0x4b8240(_0x486eff)!='object'||!_0x486eff)return _0x486eff;var _0x2b11ed=_0x486eff[Symbol[_0x3fba00(0xa2)]];if(_0x2b11ed!==void 0x0){var _0x267ea1=_0x2b11ed[_0x3fba00(0x122)](_0x486eff,_0x1c06f2||_0x3fba00(0xca));if(_0x4b8240(_0x267ea1)!=_0x3fba00(0x102))return _0x267ea1;throw TypeError(_0x3fba00(0x111));}return(_0x1c06f2==='string'?String:Number)(_0x486eff);}function _0x642c48(_0xdeae0d){var _0x23587e=_0x2eacc9(_0xdeae0d,'string');return _0x4b8240(_0x23587e)=='symbol'?_0x23587e:_0x23587e+'';}function _0x919512(_0x37a938,_0x58fcfa,_0x4c216b){const _0x3d0f5f=_0x1e8c3c;return(_0x58fcfa=_0x642c48(_0x58fcfa))in _0x37a938?Object[_0x3d0f5f(0xbd)](_0x37a938,_0x58fcfa,{'value':_0x4c216b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x37a938[_0x58fcfa]=_0x4c216b,_0x37a938;}var _0x324a5f=class extends _0x12bfb0[_0x1e8c3c(0xf8)]{constructor(..._0x134944){const _0x28d913=_0x1e8c3c;super(..._0x134944),_0x919512(this,'_resources',new Map()),_0x919512(this,_0x28d913(0xc6),new _0x1b2194['Subject']()),_0x919512(this,_0x28d913(0x118),this['_change$']['asObservable']());}[_0x1e8c3c(0x123)](_0x29a6b0,_0x464133){const _0x1f0e27=_0x1e8c3c;return _0x1ba336(this[_0x1f0e27(0x11a)][_0x1f0e27(0xd3)](_0x29a6b0))[_0x1f0e27(0x133)][_0x464133];}[_0x1e8c3c(0x13e)](_0x40516d,_0x96b237,_0x2f9f9d){const _0x516205=_0x1e8c3c;this[_0x516205(0x117)](_0x40516d,_0x96b237,_0x311b4f(this[_0x516205(0x11a)][_0x516205(0xd3)](_0x40516d),_0x96b237,_0x2f9f9d));}['removeCode'](_0x42fb59,_0x35e80a){const _0x57d2d0=_0x1e8c3c;this[_0x57d2d0(0x117)](_0x42fb59,_0x35e80a,_0x58e57e(this['_resources'][_0x57d2d0(0xd3)](_0x42fb59),_0x35e80a));}[_0x1e8c3c(0x10c)](_0x21306d){const _0x2a2fb3=_0x1e8c3c;return _0x1ba336(this[_0x2a2fb3(0x11a)]['get'](_0x21306d));}[_0x1e8c3c(0xc9)](_0x3c25ac,_0x1ade26){const _0x302062=_0x1e8c3c;this[_0x302062(0x11a)][_0x302062(0xd7)](_0x3c25ac,_0x1ba336(_0x1ade26)),this['_change$'][_0x302062(0x94)]({'unitId':_0x3c25ac});}[_0x1e8c3c(0xb3)](_0x59f2f7){const _0x2951ad=_0x1e8c3c;this['_resources'][_0x2951ad(0x99)](_0x59f2f7),this[_0x2951ad(0xc6)][_0x2951ad(0x94)]({'unitId':_0x59f2f7});}['dispose'](){const _0x2b794c=_0x1e8c3c;super[_0x2b794c(0xf4)](),this[_0x2b794c(0x11a)][_0x2b794c(0x9a)](),this[_0x2b794c(0xc6)][_0x2b794c(0xfa)]();}[_0x1e8c3c(0x117)](_0x39f682,_0x10eb61,_0x3e6a19){const _0xbf464d=_0x1e8c3c;this[_0xbf464d(0x11a)][_0xbf464d(0xd7)](_0x39f682,_0x3e6a19),this['_change$'][_0xbf464d(0x94)]({'unitId':_0x39f682,'blockId':_0x10eb61});}};let _0x4271bc={'id':'docs-code.command.insert-below','type':_0x12bfb0[_0x1e8c3c(0x115)]['COMMAND'],'handler':_0x4afcde=>{const _0x4a3844=_0x1e8c3c;let _0x4459d1=_0x418bdd(_0x4afcde);if(_0x4459d1)return _0x4afcde[_0x4a3844(0xd3)](_0x12bfb0[_0x4a3844(0xe6)])[_0x4a3844(0xa4)](_0x5d794a['id'],{'startOffset':_0x4459d1[_0x4a3844(0xb2)],'endOffset':_0x4459d1[_0x4a3844(0xa9)],'unitId':_0x4459d1[_0x4a3844(0x10a)]});let _0x1f0870=_0xe6b824(_0x4afcde);if(!_0x1f0870)return!0x1;let _0x14b7f7=_0x1f0870['startIndex']+0x1;return _0x4afcde[_0x4a3844(0xd3)](_0x12bfb0[_0x4a3844(0xe6)])[_0x4a3844(0xa4)](_0x5d794a['id'],{'startOffset':_0x14b7f7,'endOffset':_0x14b7f7});}},_0x9be245={'id':_0x1e8c3c(0xff),'type':_0x12bfb0[_0x1e8c3c(0x115)][_0x1e8c3c(0x13d)],'handler':()=>!0x0},_0x5d794a={'id':_0x1e8c3c(0x110),'type':_0x12bfb0[_0x1e8c3c(0x115)]['COMMAND'],'handler':(_0x1a26bc,_0x4d0a72)=>{const _0x40b529=_0x1e8c3c;var _0x2bdff1,_0x577a52,_0x54dcf1;let _0x5911bf=_0x359ea1(_0x1a26bc,_0x4d0a72==null?void 0x0:_0x4d0a72[_0x40b529(0x10a)]);if(!_0x5911bf)return!0x1;let _0x45ced9=_0x2db0a9(_0x1a26bc),_0x478a76=_0x29bb46({'blockId':(_0x2bdff1=_0x4d0a72==null?void 0x0:_0x4d0a72['blockId'])==null?(0x0,_0x12bfb0[_0x40b529(0x108)])(0x6):_0x2bdff1,'config':_0x4d0a72==null?void 0x0:_0x4d0a72[_0x40b529(0xa0)],'documentData':_0x5911bf['previousDocumentData'],'endOffset':(_0x577a52=_0x4d0a72==null?void 0x0:_0x4d0a72[_0x40b529(0xa9)])==null?_0x45ced9==null?void 0x0:_0x45ced9['endOffset']:_0x577a52,'metadata':_0x5911bf[_0x40b529(0xda)][_0x40b529(0x10c)](_0x5911bf[_0x40b529(0x10a)]),'startOffset':(_0x54dcf1=_0x4d0a72==null?void 0x0:_0x4d0a72[_0x40b529(0xb2)])==null?_0x45ced9==null?void 0x0:_0x45ced9[_0x40b529(0xb2)]:_0x54dcf1}),_0x40f95f=_0x25e2c8(_0x5911bf[_0x40b529(0xc1)],_0x5911bf['unitId'],_0x5911bf[_0x40b529(0x139)],_0x478a76['nextDocumentData'],_0x478a76['cursorOffset']);return _0x40f95f&&_0x478a76['nextMetadata']&&_0x5911bf[_0x40b529(0xda)][_0x40b529(0xc9)](_0x5911bf[_0x40b529(0x10a)],_0x478a76['nextMetadata']),_0x40f95f;}},_0x21bf0e={'id':_0x1e8c3c(0xc0),'type':_0x12bfb0[_0x1e8c3c(0x115)]['COMMAND'],'handler':(_0xac283f,_0x331379)=>{const _0x23df8b=_0x1e8c3c;if(!_0x331379)return!0x1;let _0xaa0e62=_0x359ea1(_0xac283f,_0x331379['unitId']);if(!_0xaa0e62)return!0x1;let _0xe8aaf2=_0x84da81({'blockId':_0x331379[_0x23df8b(0x101)],'config':_0x331379['config'],'documentData':_0xaa0e62[_0x23df8b(0x139)],'metadata':_0xaa0e62[_0x23df8b(0xda)][_0x23df8b(0x10c)](_0xaa0e62[_0x23df8b(0x10a)])});return _0xe8aaf2[_0x23df8b(0x12f)]&&_0xaa0e62['model'][_0x23df8b(0xc9)](_0xaa0e62[_0x23df8b(0x10a)],_0xe8aaf2[_0x23df8b(0x12f)]),!0x0;}},_0xc77ceb={'id':_0x1e8c3c(0xe0),'type':_0x12bfb0['CommandType'][_0x1e8c3c(0x13d)],'handler':(_0x346a49,_0x543cdc)=>{const _0x1e306a=_0x1e8c3c;var _0x19627f,_0x18d402;let _0x34a6f2=_0x359ea1(_0x346a49,_0x543cdc==null?void 0x0:_0x543cdc[_0x1e306a(0x10a)]);if(!_0x34a6f2)return!0x1;let _0x36bcc8=(_0x19627f=_0x543cdc==null?void 0x0:_0x543cdc['cursorOffset'])==null?(_0x18d402=_0x2db0a9(_0x346a49))==null?void 0x0:_0x18d402[_0x1e306a(0xb2)]:_0x19627f;if(_0x36bcc8==null)return!0x1;let _0x5dd5f9=_0x553e53({'cursorOffset':_0x36bcc8,'documentData':_0x34a6f2['previousDocumentData']});return _0x5dd5f9?_0x25e2c8(_0x34a6f2[_0x1e306a(0xc1)],_0x34a6f2['unitId'],_0x34a6f2[_0x1e306a(0x139)],_0x5dd5f9[_0x1e306a(0xf7)],_0x5dd5f9[_0x1e306a(0x13c)]):!0x1;}},_0x2a277d={'id':_0x1e8c3c(0xa5),'type':_0x12bfb0[_0x1e8c3c(0x115)][_0x1e8c3c(0x13d)],'handler':(_0x5a5062,_0x329021)=>{const _0xc33a88=_0x1e8c3c;var _0x2e0422,_0xfb8d44;let _0x83a4b4=_0x359ea1(_0x5a5062,_0x329021==null?void 0x0:_0x329021[_0xc33a88(0x10a)]);if(!_0x83a4b4)return!0x1;let _0x645edb=(_0x2e0422=_0x329021==null?void 0x0:_0x329021[_0xc33a88(0x13c)])==null?(_0xfb8d44=_0x2db0a9(_0x5a5062))==null?void 0x0:_0xfb8d44[_0xc33a88(0xb2)]:_0x2e0422;if(_0x645edb==null)return!0x1;let _0x36af2a=_0x49d3c8({'cursorOffset':_0x645edb,'documentData':_0x83a4b4[_0xc33a88(0x139)],'paragraphStartIndex':_0x329021==null?void 0x0:_0x329021[_0xc33a88(0x145)]});return _0x36af2a?_0x25e2c8(_0x83a4b4[_0xc33a88(0xc1)],_0x83a4b4[_0xc33a88(0x10a)],_0x83a4b4['previousDocumentData'],_0x36af2a[_0xc33a88(0xf7)],_0x36af2a[_0xc33a88(0x13c)]):!0x1;}};function _0x359ea1(_0x2c8328,_0x2b6c38){const _0x4b3b58=_0x1e8c3c;let _0x1c1a89=_0x2c8328['get'](_0x12bfb0[_0x4b3b58(0x11f)]),_0x31fbf0=_0x2b6c38?_0x1c1a89[_0x4b3b58(0x125)](_0x2b6c38):_0x1c1a89['getCurrentUnitOfType'](_0x12bfb0[_0x4b3b58(0xfe)]['UNIVER_DOC']);return _0x31fbf0?{'commandService':_0x2c8328[_0x4b3b58(0xd3)](_0x12bfb0[_0x4b3b58(0xe6)]),'model':_0x2c8328[_0x4b3b58(0xd3)](_0x324a5f),'previousDocumentData':_0x31fbf0['getSnapshot'](),'unitId':_0x31fbf0[_0x4b3b58(0x96)]()}:null;}function _0x2db0a9(_0x1a3187){const _0x40e879=_0x1e8c3c;var _0x4f9d6f;return(_0x4f9d6f=_0x1a3187[_0x40e879(0xd3)](_0x49d7ad[_0x40e879(0xf2)])['getTextRanges']())==null?void 0x0:_0x4f9d6f[0x0];}function _0x418bdd(_0x36751e){const _0x4d869b=_0x1e8c3c;var _0x5bba4a;let _0x53678f=(_0x5bba4a=_0x36751e[_0x4d869b(0xd3)](_0x12bfb0['IUniverInstanceService'])['getCurrentUnitOfType'](_0x12bfb0[_0x4d869b(0xfe)][_0x4d869b(0x131)]))==null?void 0x0:_0x5bba4a[_0x4d869b(0x96)]();try{return _0x36751e[_0x4d869b(0xd3)](_0x49d7ad['DocContentInsertService'])[_0x4d869b(0xa1)](_0x53678f);}catch{return null;}}function _0xe6b824(_0x4c8964){const _0x3f4056=_0x1e8c3c;var _0x2bf49a,_0x3e15f5,_0x5f3bee;let _0x19bfa1=_0x2db0a9(_0x4c8964);if(!_0x19bfa1)return null;let _0x16f71d=_0x4c8964['get'](_0x12bfb0['IUniverInstanceService'])[_0x3f4056(0xe9)](_0x12bfb0[_0x3f4056(0xfe)][_0x3f4056(0x131)]),_0x319449=_0x16f71d==null?void 0x0:_0x16f71d[_0x3f4056(0xea)]();return _0x319449?(_0x2bf49a=_0x12bfb0[_0x3f4056(0x103)][_0x3f4056(0xbf)][_0x3f4056(0x138)](_0x19bfa1,(_0x3e15f5=_0x319449[_0x3f4056(0x13f)])==null?[]:_0x3e15f5,(_0x5f3bee=_0x319449[_0x3f4056(0xe1)])==null?'':_0x5f3bee)[0x0])==null?null:_0x2bf49a:null;}function _0x4b46e4(_0x2bc2a1,_0x458881){const _0x52792f=_0x1e8c3c;var _0x8f15d3,_0x52439b,_0xbe754f,_0x42dcf9,_0x2c82e8,_0x27e247,_0x341d59,_0x5949b0,_0x282232,_0x21a9f3,_0x47e874,_0x48a74a,_0x50747a,_0x1bd173,_0x3ab3b8,_0xd44a97,_0x739f87,_0x53e11a;let _0x2a37b6=_0x12bfb0[_0x52792f(0xf0)]['getInstance']();return[_0x25d42f(_0x2a37b6,[_0x52792f(0x116),_0x52792f(0xe1)],(_0x8f15d3=_0x2bc2a1[_0x52792f(0x116)])==null?void 0x0:_0x8f15d3['dataStream'],(_0x52439b=_0x458881[_0x52792f(0x116)])==null?void 0x0:_0x52439b[_0x52792f(0xe1)]),_0x25d42f(_0x2a37b6,['body','paragraphs'],(_0xbe754f=_0x2bc2a1[_0x52792f(0x116)])==null?void 0x0:_0xbe754f[_0x52792f(0x13f)],(_0x42dcf9=_0x458881[_0x52792f(0x116)])==null?void 0x0:_0x42dcf9[_0x52792f(0x13f)]),_0x25d42f(_0x2a37b6,[_0x52792f(0x116),_0x52792f(0xa3)],(_0x2c82e8=_0x2bc2a1['body'])==null?void 0x0:_0x2c82e8[_0x52792f(0xa3)],(_0x27e247=_0x458881['body'])==null?void 0x0:_0x27e247[_0x52792f(0xa3)]),_0x25d42f(_0x2a37b6,[_0x52792f(0x116),_0x52792f(0x137)],(_0x341d59=_0x2bc2a1['body'])==null?void 0x0:_0x341d59[_0x52792f(0x137)],(_0x5949b0=_0x458881['body'])==null?void 0x0:_0x5949b0['textRuns']),_0x25d42f(_0x2a37b6,[_0x52792f(0x116),_0x52792f(0xa7)],(_0x282232=_0x2bc2a1[_0x52792f(0x116)])==null?void 0x0:_0x282232[_0x52792f(0xa7)],(_0x21a9f3=_0x458881[_0x52792f(0x116)])==null?void 0x0:_0x21a9f3['customBlocks']),_0x25d42f(_0x2a37b6,[_0x52792f(0x116),'customRanges'],(_0x47e874=_0x2bc2a1[_0x52792f(0x116)])==null?void 0x0:_0x47e874[_0x52792f(0xdf)],(_0x48a74a=_0x458881[_0x52792f(0x116)])==null?void 0x0:_0x48a74a[_0x52792f(0xdf)]),_0x25d42f(_0x2a37b6,[_0x52792f(0x116),_0x52792f(0xab)],(_0x50747a=_0x2bc2a1[_0x52792f(0x116)])==null?void 0x0:_0x50747a[_0x52792f(0xab)],(_0x1bd173=_0x458881[_0x52792f(0x116)])==null?void 0x0:_0x1bd173[_0x52792f(0xab)]),_0x25d42f(_0x2a37b6,['body',_0x52792f(0xd4)],(_0x3ab3b8=_0x2bc2a1[_0x52792f(0x116)])==null?void 0x0:_0x3ab3b8[_0x52792f(0xd4)],(_0xd44a97=_0x458881[_0x52792f(0x116)])==null?void 0x0:_0xd44a97[_0x52792f(0xd4)]),_0x25d42f(_0x2a37b6,[_0x52792f(0x116),'blockRanges'],(_0x739f87=_0x2bc2a1[_0x52792f(0x116)])==null?void 0x0:_0x739f87[_0x52792f(0x147)],(_0x53e11a=_0x458881[_0x52792f(0x116)])==null?void 0x0:_0x53e11a['blockRanges'])][_0x52792f(0xb1)](Boolean)['reduce']((_0x42985d,_0x1ffbf0)=>_0x12bfb0[_0x52792f(0xf0)]['compose'](_0x42985d,_0x1ffbf0),null);}function _0x25d42f(_0x2bfff0,_0x1060c3,_0x4d225b,_0x45554c){const _0x164613=_0x1e8c3c;return _0x12bfb0[_0x164613(0x105)][_0x164613(0x9b)](_0x4d225b,_0x45554c)?null:_0x2bfff0[_0x164613(0xf9)](_0x1060c3,_0x4d225b,_0x45554c);}function _0x25e2c8(_0x11f651,_0x538a7d,_0x469f33,_0x2a2914,_0xa81799){const _0x1f3611=_0x1e8c3c;let _0x506db0=_0x4b46e4(_0x469f33,_0x2a2914);return _0x506db0?!!_0x11f651['syncExecuteCommand'](_0x49d7ad[_0x1f3611(0xb0)]['id'],{'unitId':_0x538a7d,'actions':_0x506db0,'textRanges':[{'startOffset':_0xa81799,'endOffset':_0xa81799,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}let _0x4fc10e=_0x1e8c3c(0x109);var _0x62850=_0x1e8c3c(0x9c),_0x57248f='0.25.0-insiders.20260622-93bd55a';let _0xe189a4={};function _0x26035f(_0x21cd6a,_0x4cc8a3){return function(_0x3ebf94,_0x5b69c8){_0x4cc8a3(_0x3ebf94,_0x5b69c8,_0x21cd6a);};}function _0x34adbb(_0x571ab1,_0xcbaf4,_0x209d91,_0x222294){const _0xf0c9e5=_0x1e8c3c;var _0x3da81e=arguments[_0xf0c9e5(0x10b)],_0x1948bf=_0x3da81e<0x3?_0xcbaf4:_0x222294===null?_0x222294=Object[_0xf0c9e5(0xb6)](_0xcbaf4,_0x209d91):_0x222294,_0x57c0d6;if(typeof Reflect=='object'&&typeof Reflect[_0xf0c9e5(0x12a)]=='function')_0x1948bf=Reflect[_0xf0c9e5(0x12a)](_0x571ab1,_0xcbaf4,_0x209d91,_0x222294);else{for(var _0x1778e4=_0x571ab1['length']-0x1;_0x1778e4>=0x0;_0x1778e4--)(_0x57c0d6=_0x571ab1[_0x1778e4])&&(_0x1948bf=(_0x3da81e<0x3?_0x57c0d6(_0x1948bf):_0x3da81e>0x3?_0x57c0d6(_0xcbaf4,_0x209d91,_0x1948bf):_0x57c0d6(_0xcbaf4,_0x209d91))||_0x1948bf);}return _0x3da81e>0x3&&_0x1948bf&&Object[_0xf0c9e5(0xbd)](_0xcbaf4,_0x209d91,_0x1948bf),_0x1948bf;}let _0x5a007a=class extends _0x12bfb0[_0x1e8c3c(0xf8)]{constructor(_0x38a7ea,_0x25574c){const _0x5a8f12=_0x1e8c3c;super(),this[_0x5a8f12(0xb8)]=_0x38a7ea,this[_0x5a8f12(0xd1)]=_0x25574c,this[_0x5a8f12(0xcd)]();}[_0x1e8c3c(0xcd)](){const _0x5ad43a=_0x1e8c3c;this[_0x5ad43a(0x148)](this['_resourceManagerService']['registerPluginResource']({'pluginName':_0x4fc10e,'businesses':[_0x12bfb0['UniverInstanceType'][_0x5ad43a(0x131)]],'toJson':_0x20fd2f=>JSON['stringify'](this['_docsCodeModel'][_0x5ad43a(0x10c)](_0x20fd2f)),'parseJson':_0x42b2f0=>_0x1ba336(JSON['parse'](_0x42b2f0)),'onLoad':(_0x20a9c9,_0x393627)=>this[_0x5ad43a(0xd1)][_0x5ad43a(0xc9)](_0x20a9c9,_0x393627),'onUnLoad':_0x57a260=>this[_0x5ad43a(0xd1)][_0x5ad43a(0xb3)](_0x57a260)}));}};_0x5a007a=_0x34adbb([_0x26035f(0x0,_0x12bfb0[_0x1e8c3c(0xac)]),_0x26035f(0x1,(0x0,_0x12bfb0[_0x1e8c3c(0x141)])(_0x324a5f))],_0x5a007a);let _0x121ea2=class extends _0x12bfb0[_0x1e8c3c(0x130)]{constructor(_0x39d63a=_0xe189a4,_0x2d3542,_0x312c09,_0x59c8e8){const _0x881b1a=_0x1e8c3c;super(),this[_0x881b1a(0x12e)]=_0x39d63a,this[_0x881b1a(0xb7)]=_0x2d3542,this['_commandService']=_0x312c09,this['_configService']=_0x59c8e8;let {..._0x29ba1b}=(0x0,_0x12bfb0[_0x881b1a(0xf1)])({},_0xe189a4,this[_0x881b1a(0x12e)]);this[_0x881b1a(0x134)][_0x881b1a(0xdb)](_0x881b1a(0x121),_0x29ba1b);}[_0x1e8c3c(0xad)](){const _0x5f5400=_0x1e8c3c;this['_injector']['add']([_0x324a5f]),this[_0x5f5400(0xb7)]['add']([_0x5a007a]),this[_0x5f5400(0xb7)][_0x5f5400(0xd3)](_0x324a5f),this[_0x5f5400(0xb7)][_0x5f5400(0xd3)](_0x5a007a),[_0x5d794a,_0x4271bc,_0x21bf0e,_0xc77ceb,_0x2a277d,_0x9be245][_0x5f5400(0x114)](_0x49adbe=>this[_0x5f5400(0x148)](this[_0x5f5400(0xc7)][_0x5f5400(0x106)](_0x49adbe)));}};_0x919512(_0x121ea2,_0x1e8c3c(0x12b),_0x4fc10e),_0x919512(_0x121ea2,_0x1e8c3c(0x11c),_0x62850),_0x919512(_0x121ea2,_0x1e8c3c(0x127),_0x57248f),_0x919512(_0x121ea2,'type',_0x12bfb0[_0x1e8c3c(0xfe)][_0x1e8c3c(0x131)]),_0x121ea2=_0x34adbb([(0x0,_0x12bfb0[_0x1e8c3c(0xd9)])(_0x2e5d47['UniverLicensePlugin'],_0x49d7ad[_0x1e8c3c(0x9f)]),_0x26035f(0x1,(0x0,_0x12bfb0[_0x1e8c3c(0x141)])(_0x12bfb0[_0x1e8c3c(0xfc)])),_0x26035f(0x2,_0x12bfb0['ICommandService']),_0x26035f(0x3,_0x12bfb0['IConfigService'])],_0x121ea2),_0x137990[_0x1e8c3c(0xd8)]=_0x2e814b,_0x137990[_0x1e8c3c(0x10d)]=_0x4fc10e,_0x137990[_0x1e8c3c(0x98)]=_0x2a277d,_0x137990[_0x1e8c3c(0xfd)]=_0x9be245,_0x137990[_0x1e8c3c(0x124)]=_0xc77ceb,_0x137990['DocsCodeInsertBelowCommand']=_0x4271bc,_0x137990[_0x1e8c3c(0x100)]=_0x5d794a,_0x137990[_0x1e8c3c(0xc2)]=_0x324a5f,_0x137990[_0x1e8c3c(0xbe)]=_0x21bf0e,Object['defineProperty'](_0x137990,_0x1e8c3c(0x132),{'enumerable':!0x0,'get':function(){return _0x121ea2;}}),_0x137990[_0x1e8c3c(0xe5)]=_0x49d3c8,_0x137990[_0x1e8c3c(0x120)]=_0x553e53,_0x137990[_0x1e8c3c(0xfb)]=_0x29bb46,_0x137990[_0x1e8c3c(0x129)]=_0x84da81,_0x137990[_0x1e8c3c(0xdd)]=_0x252345,_0x137990['isCodeBoundaryDelete']=_0x29479e,_0x137990[_0x1e8c3c(0xcf)]=_0x3f19b9;}));function _0x21c8(){const _0x134a44=['_config','nextMetadata','Plugin','UNIVER_DOC','UniverDocsCodePlugin','codes','_configService','from','25uuWcYz','textRuns','getParagraphsInRange','previousDocumentData','find','rxjs','cursorOffset','COMMAND','setCodeConfig','paragraphs','DocumentBlockRangeType','Inject','BLOCK_START','517268ZXLaFG','map','paragraphStartIndex','fromEntries','blockRanges','disposeWithMe','next','startIndex','getUnitId','paragraphStyle','DocsCodeCancelEmptyParagraphCommand','delete','clear','diffValue','@univerjs-pro/docs-code','BLOCK_END','exports','UniverDocsPlugin','config','consumeInsertRange','toPrimitive','sectionBreaks','syncExecuteCommand','docs-code.command.cancel-empty-paragraph','121070hgTuqf','customBlocks','some','endOffset','9ySPEPK','customDecorations','IResourceManagerService','onStarting','175692HXdcQy','4920bCCcff','RichTextEditingMutation','filter','startOffset','removeUnit','iterator','toStringTag','getOwnPropertyDescriptor','_injector','_resourceManagerService','133sufixE','UniverProDocsCode','every','DataStreamTreeTokenType','defineProperty','DocsCodeUpdateCommand','range','docs-code.command.update','commandService','DocsCodeModel','blockType','UniverProLicense','PARAGRAPH','_change$','_commandService','sort','deserialize','default','deepClone','@univerjs/docs','_initResource','42295NJIiML','normalizeDocsCodeConfig','endTokenOffset','_docsCodeModel','endsWith','get','tables','documentData','@univerjs-pro/license','set','DEFAULT_CODE_CONFIG','DependentOn','model','setConfig','amd','findCodeRangeAtOffset','2426496lFcgiv','customRanges','docs-code.command.exit','dataStream','max','Module','slice','buildCancelEmptyCodeParagraphActions','ICommandService','metadata','direction','getCurrentUnitOfType','getBody','Document\x20body\x20is\x20required','CODE','function','UniverCore','@univerjs/core','JSONX','merge','DocSelectionManagerService','spaceAbove','dispose','paragraph','min','nextDocumentData','Disposable','replaceOp','complete','buildInsertCodeActions','Injector','DocsCodeConsumeBoundaryDeleteCommand','UniverInstanceType','docs-code.command.consume-boundary-delete','DocsCodeInsertCommand','blockId','object','BuildTextUtils','SECTION_BREAK','Tools','registerCommand','indentStart','generateRandomId','DOC_CODE_PLUGIN','unitId','length','serialize','DOCS_CODE_PLUGIN','2172XIrbeo','textStyle','docs-code.command.insert','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','javascript','endIndex','forEach','CommandType','body','_setResource','change$','463600sSQkkf','_resources','paragraphId','packageName','left','prototype','IUniverInstanceService','buildExitCodeActions','docs-code.config','call','getCodeConfig','DocsCodeExitCommand','getUniverDocInstance','spaceBelow','version','261zLZBUo','buildUpdateCodeActions','decorate','pluginName','constructor','entries'];_0x21c8=function(){return _0x134a44;};return _0x21c8();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-code",
|
|
3
|
-
"version": "0.25.0-insiders.
|
|
3
|
+
"version": "0.25.0-insiders.20260622-93bd55a",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Code block model integration for Univer Docs.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"rxjs": ">=7.0.0"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@univerjs-pro/license": "0.25.0-insiders.
|
|
65
|
-
"@univerjs/core": "0.25.0-insiders.
|
|
66
|
-
"@univerjs/docs": "0.25.0-insiders.
|
|
64
|
+
"@univerjs-pro/license": "0.25.0-insiders.20260622-93bd55a",
|
|
65
|
+
"@univerjs/core": "0.25.0-insiders.20260622-93bd55a",
|
|
66
|
+
"@univerjs/docs": "0.25.0-insiders.20260622-93bd55a"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"rxjs": "7.8.2",
|