@univerjs-pro/docs-code 0.25.0-insiders.20260618-fa5d5d0 → 0.25.0-insiders.20260618-d756bd0
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 _0x56771f=_0x9682;(function(_0x55fa6b,_0x2255a7){var _0x1b5903=_0x9682,_0x1570fe=_0x55fa6b();while(!![]){try{var _0x445e3d=-parseInt(_0x1b5903(0x129))/0x1+-parseInt(_0x1b5903(0x127))/0x2*(-parseInt(_0x1b5903(0x13f))/0x3)+parseInt(_0x1b5903(0x128))/0x4+-parseInt(_0x1b5903(0x152))/0x5+-parseInt(_0x1b5903(0x12e))/0x6*(parseInt(_0x1b5903(0x115))/0x7)+parseInt(_0x1b5903(0x11c))/0x8*(parseInt(_0x1b5903(0x124))/0x9)+-parseInt(_0x1b5903(0x11a))/0xa*(parseInt(_0x1b5903(0x142))/0xb);if(_0x445e3d===_0x2255a7)break;else _0x1570fe['push'](_0x1570fe['shift']());}catch(_0x4b68a6){_0x1570fe['push'](_0x1570fe['shift']());}}}(_0x1338,0x43fdd),Object[_0x56771f(0x109)](exports,Symbol[_0x56771f(0x14b)],{'value':_0x56771f(0x12b)}));let e=require('@univerjs-pro/docs-code'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x3c6630){'@babel/helpers - typeof';var _0x2ebdf6=_0x56771f;return r=typeof Symbol==_0x2ebdf6(0x14f)&&typeof Symbol[_0x2ebdf6(0x14e)]==_0x2ebdf6(0x137)?function(_0x12ede5){return typeof _0x12ede5;}:function(_0x2f3046){var _0x985fe9=_0x2ebdf6;return _0x2f3046&&typeof Symbol==_0x985fe9(0x14f)&&_0x2f3046[_0x985fe9(0x13c)]===Symbol&&_0x2f3046!==Symbol[_0x985fe9(0x131)]?_0x985fe9(0x137):typeof _0x2f3046;},r(_0x3c6630);}function i(_0x49d690,_0x10e92d){var _0x5b6557=_0x56771f;if(r(_0x49d690)!=_0x5b6557(0x130)||!_0x49d690)return _0x49d690;var _0x22e1df=_0x49d690[Symbol[_0x5b6557(0x123)]];if(_0x22e1df!==void 0x0){var _0x45d257=_0x22e1df[_0x5b6557(0x12c)](_0x49d690,_0x10e92d||_0x5b6557(0x10d));if(r(_0x45d257)!=_0x5b6557(0x130))return _0x45d257;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x10e92d==='string'?String:Number)(_0x49d690);}function a(_0xd51c91){var _0x5bdef2=_0x56771f,_0x19a2ca=i(_0xd51c91,_0x5bdef2(0x14a));return r(_0x19a2ca)=='symbol'?_0x19a2ca:_0x19a2ca+'';}function o(_0x52a5e0,_0x153699,_0xac64a0){var _0x440cb3=_0x56771f;return(_0x153699=a(_0x153699))in _0x52a5e0?Object[_0x440cb3(0x109)](_0x52a5e0,_0x153699,{'value':_0xac64a0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x52a5e0[_0x153699]=_0xac64a0,_0x52a5e0;}function s(_0x157f1f,_0xa7b9df){return function(_0x35b727,_0x5bb899){_0xa7b9df(_0x35b727,_0x5bb899,_0x157f1f);};}function c(_0x294962,_0x445db4,_0xfe8a89,_0x197939){var _0x3dbd1f=_0x56771f,_0x3bb717=arguments[_0x3dbd1f(0x140)],_0x4f3de6=_0x3bb717<0x3?_0x445db4:_0x197939===null?_0x197939=Object[_0x3dbd1f(0x143)](_0x445db4,_0xfe8a89):_0x197939,_0x53e067;if(typeof Reflect==_0x3dbd1f(0x130)&&typeof Reflect[_0x3dbd1f(0x11f)]==_0x3dbd1f(0x14f))_0x4f3de6=Reflect[_0x3dbd1f(0x11f)](_0x294962,_0x445db4,_0xfe8a89,_0x197939);else{for(var _0x2683dd=_0x294962[_0x3dbd1f(0x140)]-0x1;_0x2683dd>=0x0;_0x2683dd--)(_0x53e067=_0x294962[_0x2683dd])&&(_0x4f3de6=(_0x3bb717<0x3?_0x53e067(_0x4f3de6):_0x3bb717>0x3?_0x53e067(_0x445db4,_0xfe8a89,_0x4f3de6):_0x53e067(_0x445db4,_0xfe8a89))||_0x4f3de6);}return _0x3bb717>0x3&&_0x4f3de6&&Object[_0x3dbd1f(0x109)](_0x445db4,_0xfe8a89,_0x4f3de6),_0x4f3de6;}let l=class{constructor(_0xc0753d,_0x23aeac,_0x31a170){var _0x51daa9=_0x56771f;this[_0x51daa9(0x150)]=_0xc0753d,this[_0x51daa9(0x146)]=_0x23aeac,this[_0x51daa9(0x10e)]=_0x31a170,o(this,'_unitId',void 0x0),this[_0x51daa9(0x144)]=this['_document'][_0x51daa9(0x11e)]();}[_0x56771f(0x11e)](){var _0x2b158e=_0x56771f;return this[_0x2b158e(0x146)];}[_0x56771f(0x11d)](){var _0x31df34=_0x56771f;let _0x2bd7b6=this[_0x31df34(0x104)]();return _0x2bd7b6?{'blockId':_0x2bd7b6[_0x31df34(0x10f)],'endIndex':_0x2bd7b6[_0x31df34(0x14c)],'startIndex':_0x2bd7b6['startIndex']}:null;}[_0x56771f(0x118)](){var _0x2a0b8e=_0x56771f,_0x14b42b;let _0x59f316=this[_0x2a0b8e(0x104)](),_0x37540d=(_0x14b42b=this[_0x2a0b8e(0x125)]()[_0x2a0b8e(0x10a)])==null?void 0x0:_0x14b42b['dataStream'];return!_0x59f316||!_0x37540d?'':u(_0x37540d['slice'](_0x59f316['startIndex']+0x1,_0x59f316[_0x2a0b8e(0x14c)]));}['describe'](){var _0xc6e4e=_0x56771f;let _0x38ab90=this[_0xc6e4e(0x11d)]();return _0x38ab90?{..._0x38ab90,'config':this['getConfig'](),'text':this[_0xc6e4e(0x118)](),'type':t['DocumentBlockRangeType']['CODE']}:null;}['getConfig'](){var _0xc64e6d=_0x56771f;return(0x0,e['normalizeDocsCodeConfig'])(this['_injector'][_0xc64e6d(0x122)](e[_0xc64e6d(0x120)])[_0xc64e6d(0x138)](this[_0xc64e6d(0x144)],this[_0xc64e6d(0x146)]));}[_0x56771f(0x10b)](_0x281b94){var _0x258fa0=_0x56771f;return this['_injector'][_0x258fa0(0x122)](t[_0x258fa0(0x110)])[_0x258fa0(0x108)](e[_0x258fa0(0x145)]['id'],{'blockId':this['_blockId'],'config':_0x281b94[_0x258fa0(0x135)],'unitId':this[_0x258fa0(0x144)]});}['exit'](_0x2ab447){var _0x101bf1=_0x56771f;return this[_0x101bf1(0x10e)][_0x101bf1(0x122)](t[_0x101bf1(0x110)])[_0x101bf1(0x108)](e[_0x101bf1(0x106)]['id'],{'cursorOffset':_0x2ab447,'unitId':this[_0x101bf1(0x144)]});}[_0x56771f(0x14d)](_0x471f29={}){var _0x269598=_0x56771f;return this[_0x269598(0x10e)][_0x269598(0x122)](t[_0x269598(0x110)])[_0x269598(0x108)](e['DocsCodeCancelEmptyParagraphCommand']['id'],{..._0x471f29,'unitId':this['_unitId']});}[_0x56771f(0x125)](){var _0x865910=_0x56771f;return this[_0x865910(0x150)][_0x865910(0x136)]();}['_getBlockRange'](){var _0x1a7d5d=_0x56771f,_0x457f1c;let _0x5d5862=(_0x457f1c=this[_0x1a7d5d(0x125)]()[_0x1a7d5d(0x10a)])==null||(_0x457f1c=_0x457f1c['blockRanges'])==null?void 0x0:_0x457f1c[_0x1a7d5d(0x116)](_0x2ddc66=>_0x2ddc66['blockId']===this[_0x1a7d5d(0x146)]&&_0x2ddc66['blockType']===t['DocumentBlockRangeType']['CODE']);return _0x5d5862==null?null:_0x5d5862;}};l=c([s(0x2,(0x0,t['Inject'])(t[_0x56771f(0x11b)]))],l);function u(_0x2a8a86){var _0x258d11=_0x56771f;return Array[_0x258d11(0x107)](_0x2a8a86)['map'](_0x37baa6=>_0x37baa6===t[_0x258d11(0x148)]['PARAGRAPH']?'\x0a':_0x37baa6)[_0x258d11(0x141)](_0x4f3a89=>_0x4f3a89!==t[_0x258d11(0x148)]['BLOCK_START']&&_0x4f3a89!==t[_0x258d11(0x148)]['BLOCK_END']&&_0x4f3a89!==t['DataStreamTreeTokenType']['SECTION_BREAK'])[_0x258d11(0x151)]('')[_0x258d11(0x13b)](/\n$/,'');}function _0x9682(_0x4a2d36,_0x1049f0){_0x4a2d36=_0x4a2d36-0x104;var _0x1338e1=_0x1338();var _0x9682a7=_0x1338e1[_0x4a2d36];return _0x9682a7;}var d=class extends n[_0x56771f(0x119)]{[_0x56771f(0x12a)](){var _0x4ae92b=_0x56771f;return this[_0x4ae92b(0x10c)]()[_0x4ae92b(0x141)](_0x3c8dfc=>_0x3c8dfc['blockType']===t['DocumentBlockRangeType'][_0x4ae92b(0x121)])[_0x4ae92b(0x12f)](_0x3d6033=>this['_createFDocumentCode'](_0x3d6033['blockId']));}['getCode'](_0x4d9e86){var _0x3ef5db=_0x56771f;return this[_0x3ef5db(0x10c)]()[_0x3ef5db(0x105)](_0x5dc59d=>_0x5dc59d['blockId']===_0x4d9e86&&_0x5dc59d[_0x3ef5db(0x139)]===t[_0x3ef5db(0x147)][_0x3ef5db(0x121)])?this[_0x3ef5db(0x153)](_0x4d9e86):null;}['getCodeAt'](_0x25bb06){var _0x58845c=_0x56771f;let _0x3fb5d1=this['_getBlockRanges']()[_0x58845c(0x116)](_0x439ddb=>_0x439ddb[_0x58845c(0x139)]===t['DocumentBlockRangeType'][_0x58845c(0x121)]&&_0x439ddb[_0x58845c(0x126)]<=_0x25bb06&&_0x25bb06<=_0x439ddb['endIndex']);return _0x3fb5d1?this[_0x58845c(0x153)](_0x3fb5d1[_0x58845c(0x10f)]):null;}[_0x56771f(0x114)](_0x52d398){var _0x3d62af=_0x56771f,_0x4b6114;return(_0x4b6114=this[_0x3d62af(0x132)](_0x52d398)[0x0])==null?null:_0x4b6114;}[_0x56771f(0x132)](_0x55c305){var _0x21bb52=_0x56771f;let _0x31309b=typeof _0x55c305==_0x21bb52(0x14a)?{'text':_0x55c305}:_0x55c305;return this[_0x21bb52(0x12a)]()[_0x21bb52(0x141)](_0x5c8cc1=>!(_0x31309b['blockId']&&_0x5c8cc1['getId']()!==_0x31309b['blockId']||_0x31309b['text']&&!_0x5c8cc1[_0x21bb52(0x118)]()[_0x21bb52(0x117)](_0x31309b['text'])));}[_0x56771f(0x112)](_0x26f1f8={},_0x57f9d0={}){var _0x580f6d=_0x56771f,_0x411ee3;let _0x177d2c=this[_0x580f6d(0x10e)][_0x580f6d(0x122)](t['ICommandService']),_0x47d01a=f(_0x26f1f8)?{..._0x57f9d0,...p(_0x26f1f8)}:_0x26f1f8,_0x1a2420=(_0x411ee3=_0x47d01a['blockId'])==null?(0x0,t[_0x580f6d(0x149)])(0x6):_0x411ee3;return _0x177d2c['syncExecuteCommand'](e[_0x580f6d(0x13e)]['id'],{..._0x47d01a,'blockId':_0x1a2420,'unitId':this[_0x580f6d(0x11e)]()})?this['_createFDocumentCode'](_0x1a2420):null;}[_0x56771f(0x154)](_0x5c9229){var _0x6ebfad=_0x56771f;return this[_0x6ebfad(0x10e)]['get'](t[_0x6ebfad(0x110)])['syncExecuteCommand'](e[_0x6ebfad(0x106)]['id'],{'cursorOffset':_0x5c9229,'unitId':this['getId']()});}[_0x56771f(0x113)](_0x30d6c9={}){var _0x45d155=_0x56771f;return this[_0x45d155(0x10e)]['get'](t[_0x45d155(0x110)])[_0x45d155(0x108)](e['DocsCodeCancelEmptyParagraphCommand']['id'],{..._0x30d6c9,'unitId':this['getId']()});}['_getBlockRanges'](){var _0xd339e3=_0x56771f,_0x1c6740,_0x1315ce;return(_0x1c6740=(_0x1315ce=this[_0xd339e3(0x136)]()['body'])==null?void 0x0:_0x1315ce[_0xd339e3(0x12d)])==null?[]:_0x1c6740;}[_0x56771f(0x153)](_0xe071a7){var _0x561ef1=_0x56771f;return this['_injector'][_0x561ef1(0x134)](l,this,_0xe071a7);}};function f(_0x170fcc){var _0x6dbf98=_0x56771f;return typeof _0x170fcc==_0x6dbf98(0x130)&&!!_0x170fcc&&typeof _0x170fcc[_0x6dbf98(0x111)]==_0x6dbf98(0x14f)&&typeof _0x170fcc[_0x6dbf98(0x11d)]==_0x6dbf98(0x14f)&&typeof _0x170fcc[_0x6dbf98(0x133)]==_0x6dbf98(0x14f)&&_0x170fcc[_0x6dbf98(0x133)]()==='paragraph';}function _0x1338(){var _0x1db20c=['DataStreamTreeTokenType','generateRandomId','string','toStringTag','endIndex','cancelEmptyParagraph','iterator','function','_document','join','405870wSzmWv','_createFDocumentCode','exitCode','_getBlockRange','some','DocsCodeExitCommand','from','syncExecuteCommand','defineProperty','body','updateConfig','_getBlockRanges','default','_injector','blockId','ICommandService','getKey','insertCode','cancelEmptyCodeParagraph','findCodeByText','417046gpEJxO','find','includes','getText','FDocument','373310VijNzh','Injector','40qTrHxz','getRange','getId','decorate','DocsCodeModel','CODE','get','toPrimitive','670500LFjiZb','_getDocumentData','startIndex','20nVBUFw','564832kFRjFY','319852WGgvHI','getCodes','Module','call','blockRanges','6CdSwOb','map','object','prototype','findCodes','getType','createInstance','config','save','symbol','getCodeConfig','blockType','extend','replace','constructor','FDocumentCode','DocsCodeInsertCommand','78816MgZTwf','length','filter','11Trazxc','getOwnPropertyDescriptor','_unitId','DocsCodeUpdateCommand','_blockId','DocumentBlockRangeType'];_0x1338=function(){return _0x1db20c;};return _0x1338();}function p(_0x240356){var _0x393a31=_0x56771f;return _0x240356[_0x393a31(0x11d)]();}n[_0x56771f(0x119)][_0x56771f(0x13a)](d),Object['defineProperty'](exports,_0x56771f(0x13d),{'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 _0x33f584=_0x4fde;(function(_0x10e6c2,_0x72a58c){const _0x902779=_0x4fde,_0x3202f5=_0x10e6c2();while(!![]){try{const _0x1c33c6=-parseInt(_0x902779(0xe3))/0x1+parseInt(_0x902779(0xf9))/0x2+-parseInt(_0x902779(0xae))/0x3+parseInt(_0x902779(0xb8))/0x4+-parseInt(_0x902779(0x136))/0x5*(-parseInt(_0x902779(0xea))/0x6)+parseInt(_0x902779(0xd0))/0x7*(parseInt(_0x902779(0xaf))/0x8)+parseInt(_0x902779(0x112))/0x9*(-parseInt(_0x902779(0xce))/0xa);if(_0x1c33c6===_0x72a58c)break;else _0x3202f5['push'](_0x3202f5['shift']());}catch(_0x2e0474){_0x3202f5['push'](_0x3202f5['shift']());}}}(_0x68c2,0xc05cf),Object[_0x33f584(0xdc)](exports,Symbol['toStringTag'],{'value':'Module'}));let e=require('@univerjs/core'),t=require('@univerjs/docs'),n=require('rxjs'),r=require('@univerjs-pro/license');const i={'language':_0x33f584(0xdd),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function a(_0x28df9d){return{...i,..._0x28df9d};}function o(_0x140617){const _0x3b2d7f=_0x33f584;var _0x598774;let _0x241908=(_0x598774=_0x140617==null?void 0x0:_0x140617[_0x3b2d7f(0x9d)])==null?{}:_0x598774;return{'codes':Object[_0x3b2d7f(0x9c)](Object[_0x3b2d7f(0xbf)](_0x241908)[_0x3b2d7f(0x13b)](([_0x57bc84,_0x1286e1])=>[_0x57bc84,a(_0x1286e1)]))};}function s(_0x174bc9,_0x6c928e,_0x57ad31){const _0x5b482a=_0x33f584;let _0xf3d04b=o(_0x174bc9);return _0xf3d04b[_0x5b482a(0x9d)][_0x6c928e]=a({..._0xf3d04b['codes'][_0x6c928e],..._0x57ad31}),_0xf3d04b;}function c(_0x11cf87,_0x2468d7){const _0x537082=_0x33f584;let _0x3e4b42=o(_0x11cf87);return delete _0x3e4b42[_0x537082(0x9d)][_0x2468d7],_0x3e4b42;}const l=_0x33f584(0xd9);function u(_0x4d2fb5){const _0x213e32=_0x33f584;var _0x465347,_0x1cb37d,_0x2f832d;let _0x244375=w(_0x4d2fb5['documentData']),_0x15edc9=T(_0x244375),_0x46de0e=f(_0x4d2fb5[_0x213e32(0xb0)],_0x4d2fb5[_0x213e32(0xe0)]),_0x3ce58b=_0x46de0e?(_0x465347=_0x15edc9[_0x213e32(0xab)])==null?void 0x0:_0x465347[_0x213e32(0x91)](_0x168c9b=>_0x168c9b[_0x213e32(0x114)]===_0x46de0e[_0x213e32(0xb0)]&&_0x168c9b[_0x213e32(0x118)]+0x1===_0x46de0e[_0x213e32(0xe0)]):void 0x0,{startOffset:_0x1ff675,endOffset:_0x589549}=_0x3ce58b?_0x46de0e:te(_0x15edc9,_0x4d2fb5[_0x213e32(0xb0)],_0x4d2fb5[_0x213e32(0xe0)]),_0x3a7d93=ie(_0x15edc9,_0x1ff675,_0x589549),_0x230f66=(_0x1cb37d=_0x3ce58b==null?void 0x0:_0x3ce58b[_0x213e32(0xa1)])==null?_0x4d2fb5['blockId']:_0x1cb37d,_0x50c221=s(_0x4d2fb5['metadata'],_0x230f66,{...i,..._0x4d2fb5['config']});if(_0x3ce58b)return _0x3ce58b[_0x213e32(0x121)]=e[_0x213e32(0x132)][_0x213e32(0x135)],d(_0x15edc9,_0x1ff675,_0x589549),x(_0x15edc9,_0x1ff675,_0x589549,_0x3a7d93),O(_0x15edc9,_0x3ce58b),{'nextDocumentData':_0x244375,'nextMetadata':_0x50c221,'cursorOffset':_0x1ff675+0x1};if(_0x1ff675===_0x589549){var _0x26c6e0,_0xce9953;let _0x1e23b7=''+e[_0x213e32(0x10b)][_0x213e32(0x10f)]+e['DataStreamTreeTokenType'][_0x213e32(0xe5)]+e[_0x213e32(0x10b)][_0x213e32(0xc7)];k(_0x15edc9,_0x1ff675,_0x1e23b7,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e[_0x213e32(0x10c)])(new Set((_0x26c6e0=_0x15edc9[_0x213e32(0xdb)])==null?void 0x0:_0x26c6e0[_0x213e32(0x13b)](_0x5dd502=>_0x5dd502[_0x213e32(0x130)]))),'paragraphStyle':b(!0x0,!0x0,_0x3a7d93)}],'blockRanges':[{'blockId':_0x230f66,'blockType':e[_0x213e32(0x132)][_0x213e32(0x135)],'startIndex':0x0,'endIndex':_0x1e23b7['length']-0x1}]});let _0x18108f=(_0xce9953=_0x15edc9[_0x213e32(0xab)])==null?void 0x0:_0xce9953[_0x213e32(0x91)](_0x1c383b=>_0x1c383b[_0x213e32(0xa1)]===_0x230f66);return _0x18108f&&O(_0x15edc9,_0x18108f),{'nextDocumentData':_0x244375,'nextMetadata':_0x50c221,'cursorOffset':_0x1ff675+0x1};}k(_0x15edc9,_0x589549,e[_0x213e32(0x10b)][_0x213e32(0xc7)]),k(_0x15edc9,_0x1ff675,e[_0x213e32(0x10b)][_0x213e32(0x10f)]),x(_0x15edc9,_0x1ff675,_0x589549+0x1,_0x3a7d93);let _0x240efb={'blockId':_0x230f66,'blockType':e[_0x213e32(0x132)][_0x213e32(0x135)],'startIndex':_0x1ff675,'endIndex':_0x589549+0x1};return _0x15edc9[_0x213e32(0xab)]=[...(_0x2f832d=_0x15edc9[_0x213e32(0xab)])==null?[]:_0x2f832d,_0x240efb][_0x213e32(0x99)]((_0x50260c,_0x3b8b8e)=>_0x50260c[_0x213e32(0x114)]-_0x3b8b8e[_0x213e32(0x114)]),O(_0x15edc9,_0x240efb),{'nextDocumentData':_0x244375,'nextMetadata':_0x50c221,'cursorOffset':_0x1ff675+0x1};}function d(_0x252543,_0x190f5c,_0x319950){const _0x5e12a4=_0x33f584;var _0x745de9;((_0x745de9=_0x252543['paragraphs'])==null?[]:_0x745de9)[_0x5e12a4(0xfa)](_0xa7553a=>_0xa7553a[_0x5e12a4(0x114)]>_0x190f5c&&_0xa7553a[_0x5e12a4(0x114)]<_0x319950)[_0x5e12a4(0x124)](_0x5eaedb=>{const _0x2c1ac6=_0x5e12a4;var _0x1b8a10;let _0x34acbf={...(_0x1b8a10=_0x5eaedb[_0x2c1ac6(0xbc)])==null?{}:_0x1b8a10};delete _0x34acbf[_0x2c1ac6(0x105)],delete _0x34acbf[_0x2c1ac6(0xf7)],_0x5eaedb['paragraphStyle']=_0x34acbf;});}function f(_0x51eeae,_0x5ecad4){const _0x23b899=_0x33f584;return _0x51eeae==null||_0x5ecad4==null||_0x51eeae===_0x5ecad4?null:{'startOffset':Math[_0x23b899(0xee)](_0x51eeae,_0x5ecad4),'endOffset':Math['max'](_0x51eeae,_0x5ecad4)};}function p(_0x31efc4){const _0x4b80f0=_0x33f584;return{'nextDocumentData':w(_0x31efc4[_0x4b80f0(0xe7)]),'nextMetadata':s(_0x31efc4[_0x4b80f0(0x96)],_0x31efc4['blockId'],_0x31efc4[_0x4b80f0(0xad)]),'cursorOffset':0x0};}function m(_0x1c30d4){const _0x5e75f1=_0x33f584;var _0x69dfd4,_0x1835bb;let _0x326295=w(_0x1c30d4['documentData']),_0x3ce71a=T(_0x326295),_0x4d2e4e=y(_0x3ce71a,_0x1c30d4[_0x5e75f1(0x13a)]);if(!_0x4d2e4e)return null;let _0xa5bbd6=C(_0x3ce71a,_0x4d2e4e),_0x17b72c=_0xa5bbd6[_0xa5bbd6['length']-0x1];if(!_0x17b72c||!ee(_0x3ce71a,_0x4d2e4e,_0x17b72c)||_0x1c30d4[_0x5e75f1(0x13a)]<_0x17b72c[_0x5e75f1(0x114)])return null;let _0x641318=oe(_0x3ce71a,_0x4d2e4e,_0x17b72c);if(_0x641318>=_0x4d2e4e['endIndex'])return null;_0x3ce71a['dataStream']=[_0x3ce71a[_0x5e75f1(0x94)]['slice'](0x0,_0x641318),e[_0x5e75f1(0x10b)][_0x5e75f1(0xc7)],_0x3ce71a[_0x5e75f1(0x94)][_0x5e75f1(0xa0)](_0x641318,_0x4d2e4e['endIndex']),_0x3ce71a[_0x5e75f1(0x94)][_0x5e75f1(0xa0)](_0x4d2e4e[_0x5e75f1(0x118)]+0x1)][_0x5e75f1(0xc2)](''),P(_0x3ce71a['paragraphs'],_0x641318,_0x4d2e4e[_0x5e75f1(0x118)],0x1),P(_0x3ce71a['sectionBreaks'],_0x641318,_0x4d2e4e[_0x5e75f1(0x118)],0x1),P(_0x3ce71a[_0x5e75f1(0x137)],_0x641318,_0x4d2e4e['endIndex'],0x1),fe(_0x3ce71a[_0x5e75f1(0x13e)],_0x641318,_0x4d2e4e[_0x5e75f1(0x118)],0x1),F(_0x3ce71a[_0x5e75f1(0x107)],_0x641318,_0x4d2e4e[_0x5e75f1(0x118)],0x1),F(_0x3ce71a[_0x5e75f1(0xaa)],_0x641318,_0x4d2e4e['endIndex'],0x1),F(_0x3ce71a[_0x5e75f1(0x101)],_0x641318,_0x4d2e4e[_0x5e75f1(0x118)],0x1),(_0x69dfd4=_0x3ce71a['blockRanges'])==null||_0x69dfd4[_0x5e75f1(0x124)](_0x4103ae=>{const _0x2535f7=_0x5e75f1;_0x4103ae===_0x4d2e4e||_0x4103ae[_0x2535f7(0xa1)]===_0x4d2e4e[_0x2535f7(0xa1)]?_0x4103ae[_0x2535f7(0x118)]=_0x641318:_0x4103ae[_0x2535f7(0x114)]>=_0x641318&&_0x4103ae[_0x2535f7(0x114)]<_0x4d2e4e[_0x2535f7(0x118)]&&(_0x4103ae['startIndex']+=0x1,_0x4103ae[_0x2535f7(0x118)]+=0x1);});let _0x3f190b=C(_0x3ce71a,{..._0x4d2e4e,'endIndex':_0x641318});_0x3f190b[_0x5e75f1(0x124)]((_0x347322,_0x5e85f6)=>{const _0x5b2046=_0x5e75f1;var _0x564f09;_0x347322[_0x5b2046(0xbc)]={...(_0x564f09=_0x347322[_0x5b2046(0xbc)])==null?{}:_0x564f09,...b(_0x5e85f6===0x0,_0x5e85f6===_0x3f190b[_0x5b2046(0x104)]-0x1)};});let _0x18e324=(_0x1835bb=_0x3ce71a[_0x5e75f1(0xdb)])==null?void 0x0:_0x1835bb[_0x5e75f1(0x91)](_0xdbd34=>_0xdbd34[_0x5e75f1(0x114)]===_0x641318+0x1);return _0x18e324&&(_0x18e324['paragraphStyle']=S(_0x18e324[_0x5e75f1(0xbc)])),{'nextDocumentData':_0x326295,'cursorOffset':_0x641318+0x1};}function h(_0x4f3a06){const _0x4ad1a2=_0x33f584;let _0xfc83c4=w(_0x4f3a06[_0x4ad1a2(0xe7)]),_0xd8177d=T(_0xfc83c4),_0x471d8b=y(_0xd8177d,_0x4f3a06[_0x4ad1a2(0x13a)]);return _0x471d8b&&g(_0xfc83c4,_0xd8177d,_0x471d8b,_0x4f3a06[_0x4ad1a2(0x13a)],_0x4f3a06[_0x4ad1a2(0x13c)])||null;}function g(_0x5c57d2,_0x9371f8,_0x2ae939,_0x3dd9f7,_0x17a963){const _0x66b881=_0x33f584;let _0x33d2d3=se(_0x9371f8,_0x2ae939,_0x3dd9f7,_0x17a963);if(!_0x33d2d3)return null;let _0x5d57db=_0x33d2d3[_0x66b881(0xb1)]-0x1;return ce(_0x9371f8,_0x33d2d3[_0x66b881(0xed)]['startIndex'],_0x33d2d3[_0x66b881(0xed)][_0x66b881(0x114)]+0x1),{'nextDocumentData':_0x5c57d2,'cursorOffset':_0x5d57db};}function _(_0x5726af,_0x5bd911){const _0x502704=_0x33f584;var _0x17b856;return _0x5726af==null||(_0x17b856=_0x5726af[_0x502704(0xab)])==null?void 0x0:_0x17b856[_0x502704(0x91)](_0x50eece=>_0x50eece[_0x502704(0x121)]===e[_0x502704(0x132)][_0x502704(0x135)]&&_0x50eece[_0x502704(0x114)]<=_0x5bd911&&_0x5bd911<=_0x50eece['endIndex']);}function v(_0x297883){const _0x421248=_0x33f584;var _0x42e01b;let _0x91cd0=_0x297883['documentData'][_0x421248(0xca)];if(!_0x91cd0)return!0x1;let _0x3c88ca=_0x297883[_0x421248(0xf2)]===_0x421248(0xd1)?_0x297883[_0x421248(0x13a)]-0x1:_0x297883[_0x421248(0x13a)],_0x519f94=_0x297883[_0x421248(0xf2)]===_0x421248(0x119)?_0x297883[_0x421248(0x13a)]+0x1:_0x3c88ca;return((_0x42e01b=_0x91cd0[_0x421248(0xab)])==null?[]:_0x42e01b)[_0x421248(0x131)](_0x417559=>_0x417559['blockType']===e[_0x421248(0x132)][_0x421248(0x135)]?_0x3c88ca===_0x417559['startIndex']||_0x3c88ca===_0x417559[_0x421248(0x118)]||_0x519f94===_0x417559['startIndex']||_0x519f94===_0x417559[_0x421248(0x118)]:!0x1);}function y(_0x256121,_0x44c268){const _0x4b299d=_0x33f584;var _0x2dc0fc;return(_0x2dc0fc=_0x256121[_0x4b299d(0xab)])==null?void 0x0:_0x2dc0fc[_0x4b299d(0x91)](_0x258385=>{const _0x3ac241=_0x4b299d;let _0x5f037d=D(_0x256121,_0x258385);return _0x258385[_0x3ac241(0x121)]===e[_0x3ac241(0x132)][_0x3ac241(0x135)]&&_0x258385['startIndex']<=_0x44c268&&_0x44c268<=_0x5f037d+0x2;});}function b(_0x2d52bf,_0x406e9b,_0x2ad781=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x2d52bf&&_0x2ad781?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':l,'fs':0xc}};}function x(_0x4e662d,_0x47d1b7,_0x1d262,_0x2401cc=!0x1){const _0x3691f2=_0x33f584;var _0xeefe53;let _0x2f0a8b=((_0xeefe53=_0x4e662d['paragraphs'])==null?[]:_0xeefe53)[_0x3691f2(0xfa)](_0x4f2cd9=>_0x4f2cd9[_0x3691f2(0x114)]>_0x47d1b7&&_0x4f2cd9[_0x3691f2(0x114)]<_0x1d262);_0x2f0a8b[_0x3691f2(0x124)]((_0x1a811e,_0x85c40a)=>{const _0x296649=_0x3691f2;var _0x1372b3;_0x1a811e['paragraphStyle']={...(_0x1372b3=_0x1a811e[_0x296649(0xbc)])==null?{}:_0x1372b3,...b(_0x85c40a===0x0,_0x85c40a===_0x2f0a8b[_0x296649(0x104)]-0x1,_0x2401cc)};});}function S(_0x4fdcff){const _0x29939e=_0x33f584;var _0x574902,_0x24fcc7;let _0x1b971c={..._0x4fdcff==null?{}:_0x4fdcff};return delete _0x1b971c[_0x29939e(0xe6)],delete _0x1b971c[_0x29939e(0x12b)],delete _0x1b971c[_0x29939e(0x105)],delete _0x1b971c[_0x29939e(0xf7)],((_0x574902=_0x1b971c[_0x29939e(0x129)])==null?void 0x0:_0x574902['ff'])===l&&((_0x24fcc7=_0x1b971c[_0x29939e(0x129)])==null?void 0x0:_0x24fcc7['fs'])===0xc&&delete _0x1b971c[_0x29939e(0x129)],_0x1b971c;}function C(_0xc65d1d,_0x369ba2){const _0x317300=_0x33f584;var _0x390a70;let _0x2556ec=D(_0xc65d1d,_0x369ba2);return((_0x390a70=_0xc65d1d[_0x317300(0xdb)])==null?[]:_0x390a70)['filter'](_0x4375d3=>_0x4375d3[_0x317300(0x114)]>_0x369ba2[_0x317300(0x114)]&&_0x4375d3['startIndex']<_0x2556ec);}function ee(_0x3ab2e2,_0x1868fe,_0x4cc0e5){const _0xf65c0d=_0x33f584;let _0x2454ed=oe(_0x3ab2e2,_0x1868fe,_0x4cc0e5),_0xd64b4a=_0x3ab2e2[_0xf65c0d(0x94)][_0xf65c0d(0xa0)](_0x2454ed,_0x4cc0e5['startIndex']);return Array[_0xf65c0d(0xde)](_0xd64b4a)[_0xf65c0d(0xc1)](_0x532116=>_0x532116===e[_0xf65c0d(0x10b)][_0xf65c0d(0x10f)]||_0x532116===e['DataStreamTreeTokenType'][_0xf65c0d(0xc7)]);}function w(_0x5dfdff){const _0x22aca1=_0x33f584;return e[_0x22aca1(0x123)][_0x22aca1(0xe2)](_0x5dfdff);}function T(_0x193a25){const _0x15f9ee=_0x33f584;if(!_0x193a25[_0x15f9ee(0xca)])throw Error(_0x15f9ee(0x138));return _0x193a25[_0x15f9ee(0xca)];}function te(_0xc7f4f5,_0x1d5feb,_0x29fd91){const _0x4c5d10=_0x33f584;if(_0x1d5feb==null||_0x29fd91==null){let _0x4002d4=re(_0xc7f4f5);return{'startOffset':_0x4002d4,'endOffset':_0x4002d4};}let _0x27b17d=Math[_0x4c5d10(0xee)](_0x1d5feb,_0x29fd91),_0x5f144b=Math['max'](_0x1d5feb,_0x29fd91);if(_0x27b17d===_0x5f144b){let _0x42c8cd=ne(_0xc7f4f5,_0x27b17d);return{'startOffset':_0x42c8cd,'endOffset':_0x42c8cd};}return ae(_0xc7f4f5,_0x27b17d,_0x5f144b);}function ne(_0x2a65ce,_0x2fa3d8){const _0x123036=_0x33f584;return _0x2fa3d8===0x0&&_0x2a65ce[_0x123036(0x94)][0x0]===e['DataStreamTreeTokenType']['PARAGRAPH']?0x1:_0x2fa3d8;}function re(_0x15146f){const _0x4ed609=_0x33f584;return _0x15146f[_0x4ed609(0x94)][_0x4ed609(0x12a)](e[_0x4ed609(0x10b)]['SECTION_BREAK'])?Math['max'](0x0,_0x15146f[_0x4ed609(0x94)]['length']-0x1):_0x15146f['dataStream']['length'];}function ie(_0x4719a3,_0x58fb9b,_0x2accef){const _0x2773a9=_0x33f584;var _0x4706c5;let _0x1877d2=Math['min'](_0x58fb9b,_0x2accef),_0x32e712=Math[_0x2773a9(0x13d)](_0x58fb9b,_0x2accef);return!!((_0x4706c5=_0x4719a3['tables'])!=null&&_0x4706c5[_0x2773a9(0x131)](_0x399979=>_0x1877d2>_0x399979[_0x2773a9(0x114)]&&_0x1877d2<_0x399979[_0x2773a9(0x118)]||_0x32e712>_0x399979[_0x2773a9(0x114)]&&_0x32e712<_0x399979[_0x2773a9(0x118)]||_0x1877d2<=_0x399979[_0x2773a9(0x114)]&&_0x32e712>=_0x399979['endIndex']));}function ae(_0x3e4391,_0x42d5df,_0x1f95de){const _0x5ceae9=_0x33f584;var _0x9f20cb,_0x4cef0c;let _0x484c83=[...(_0x9f20cb=_0x3e4391[_0x5ceae9(0xdb)])==null?[]:_0x9f20cb][_0x5ceae9(0x99)]((_0x37c5dd,_0x43061b)=>_0x37c5dd['startIndex']-_0x43061b[_0x5ceae9(0x114)]),_0x2a5fe9=_0x484c83[_0x5ceae9(0x91)]((_0x2e7afd,_0x172918)=>(_0x172918===0x0?0x0:_0x484c83[_0x172918-0x1][_0x5ceae9(0x114)]+0x1)<=_0x42d5df&&_0x42d5df<=_0x2e7afd[_0x5ceae9(0x114)]),_0x23b063=(_0x4cef0c=_0x484c83[_0x5ceae9(0x91)](_0x59295e=>_0x59295e['startIndex']>=_0x1f95de-0x1))==null?_0x484c83[_0x484c83['length']-0x1]:_0x4cef0c;return{'startOffset':_0x2a5fe9?E(_0x484c83,_0x2a5fe9):_0x42d5df,'endOffset':_0x23b063?_0x23b063[_0x5ceae9(0x114)]+0x1:_0x1f95de};}function E(_0x368b2a,_0x1035cc){const _0x409c4f=_0x33f584;let _0x1a7deb=_0x368b2a[_0x409c4f(0xd6)](_0x1035cc);return _0x1a7deb>0x0?_0x368b2a[_0x1a7deb-0x1][_0x409c4f(0x114)]+0x1:0x0;}function oe(_0xbd1d17,_0x1f0e72,_0x4bf80d){const _0x863b5d=_0x33f584;var _0x292c94;return Math['max'](E((_0x292c94=_0xbd1d17['paragraphs'])==null?[]:_0x292c94,_0x4bf80d),_0x1f0e72[_0x863b5d(0x114)]+0x1);}function D(_0x8f7615,_0x289e5b){const _0x3e209b=_0x33f584;return _0x8f7615[_0x3e209b(0x94)][_0x289e5b[_0x3e209b(0x118)]]===e[_0x3e209b(0x10b)][_0x3e209b(0xc7)]?_0x289e5b[_0x3e209b(0x118)]:_0x8f7615[_0x3e209b(0x94)][_0x289e5b[_0x3e209b(0x118)]+0x1]===e[_0x3e209b(0x10b)][_0x3e209b(0xc7)]?_0x289e5b[_0x3e209b(0x118)]+0x1:_0x289e5b[_0x3e209b(0x118)];}function se(_0x54d567,_0x113e73,_0x4e619a,_0x4d26f2){const _0x1c77b6=_0x33f584;var _0x501ef2,_0x5c9311;let _0x1d7238=D(_0x54d567,_0x113e73),_0x46d0ae=((_0x501ef2=_0x54d567[_0x1c77b6(0xdb)])==null?[]:_0x501ef2)[_0x1c77b6(0x91)](_0x5b6fd2=>_0x5b6fd2['startIndex']===_0x1d7238+0x1);if(!_0x46d0ae||_0x4d26f2!=null&&_0x46d0ae[_0x1c77b6(0x114)]!==_0x4d26f2||_0x4e619a<_0x1d7238||_0x4e619a>_0x46d0ae[_0x1c77b6(0x114)]+0x1||_0x54d567[_0x1c77b6(0x94)][_0x46d0ae[_0x1c77b6(0x114)]]!==e[_0x1c77b6(0x10b)][_0x1c77b6(0xe5)])return null;let _0x4a7287=E((_0x5c9311=_0x54d567[_0x1c77b6(0xdb)])==null?[]:_0x5c9311,_0x46d0ae),_0x249746=_0x54d567[_0x1c77b6(0x94)][_0x1c77b6(0xa0)](_0x4a7287,_0x46d0ae[_0x1c77b6(0x114)]);return Array[_0x1c77b6(0xde)](_0x249746)[_0x1c77b6(0xc1)](_0x216e25=>_0x216e25===e[_0x1c77b6(0x10b)][_0x1c77b6(0xc7)])?{'paragraph':_0x46d0ae,'endTokenOffset':_0x1d7238}:null;}function O(_0xfc6102,_0x39c27f){const _0x9717b9=_0x33f584;var _0x273472;let _0x5d21fa=D(_0xfc6102,_0x39c27f),_0x23ad09=_0xfc6102['dataStream'][_0x5d21fa+0x1];_0x23ad09!==e[_0x9717b9(0x10b)][_0x9717b9(0x120)]&&_0x23ad09!==void 0x0||k(_0xfc6102,_0x5d21fa+0x1,e[_0x9717b9(0x10b)][_0x9717b9(0xe5)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,e[_0x9717b9(0x10c)])(new Set((_0x273472=_0xfc6102[_0x9717b9(0xdb)])==null?void 0x0:_0x273472[_0x9717b9(0x13b)](_0x48ac2c=>_0x48ac2c[_0x9717b9(0x130)])))}]});}function k(_0x7379c6,_0x268022,_0x31245a,_0x3b26cd={}){const _0xb2ef49=_0x33f584;var _0x338e5d,_0x250431;if(_0x31245a){if(_0x7379c6['dataStream']=''+_0x7379c6[_0xb2ef49(0x94)]['slice'](0x0,_0x268022)+_0x31245a+_0x7379c6[_0xb2ef49(0x94)][_0xb2ef49(0xa0)](_0x268022),le(_0x7379c6,_0x268022,_0x31245a['length']),(_0x338e5d=_0x3b26cd[_0xb2ef49(0xdb)])!=null&&_0x338e5d['length']){var _0x6540e8;_0x7379c6[_0xb2ef49(0xdb)]=[...(_0x6540e8=_0x7379c6['paragraphs'])==null?[]:_0x6540e8,..._0x3b26cd[_0xb2ef49(0xdb)][_0xb2ef49(0x13b)](_0x3fe786=>({..._0x3fe786,'startIndex':_0x3fe786['startIndex']+_0x268022}))][_0xb2ef49(0x99)]((_0x3022b4,_0x3cb2fa)=>_0x3022b4[_0xb2ef49(0x114)]-_0x3cb2fa[_0xb2ef49(0x114)]);}if((_0x250431=_0x3b26cd['blockRanges'])!=null&&_0x250431['length']){var _0x1357ac;_0x7379c6[_0xb2ef49(0xab)]=[...(_0x1357ac=_0x7379c6[_0xb2ef49(0xab)])==null?[]:_0x1357ac,..._0x3b26cd[_0xb2ef49(0xab)][_0xb2ef49(0x13b)](_0x23ad68=>({..._0x23ad68,'startIndex':_0x23ad68[_0xb2ef49(0x114)]+_0x268022,'endIndex':_0x23ad68[_0xb2ef49(0x118)]+_0x268022}))][_0xb2ef49(0x99)]((_0x5028f0,_0x51561e)=>_0x5028f0[_0xb2ef49(0x114)]-_0x51561e[_0xb2ef49(0x114)]);}}}function _0x68c2(){const _0x4283cf=['endTokenOffset','_resourceManagerService','syncExecuteCommand','normalizeDocsCodeConfig','delete','isCodeBoundaryDelete','JSONX','3835248xYyJHY','dispose','onStarting','_setResource','paragraphStyle','DocsCodeInsertBelowCommand','model','entries','removeCode','every','join','commandService','add','prototype','object','BLOCK_END','nextMetadata','DocsCodeConsumeBoundaryDeleteCommand','body','getOwnPropertyDescriptor','setCodeConfig','_change$','16924730tCfjer','getCurrentUnitOfType','63OeTYKw','left','getCodeConfig','getUnitId','DocSelectionManagerService','version','indexOf','default','range','monospace','deserialize','paragraphs','defineProperty','javascript','from','_docsCodeModel','endOffset','_resources','deepClone','81400DjpbRb','function','PARAGRAPH','indentEnd','documentData','ICommandService','docs-code.command.consume-boundary-delete','1288524qDtCET','DocsCodeModel','COMMAND','paragraph','min','generateRandomId','_configService','get','direction','_injector','setConfig','unitId','toPrimitive','spaceBelow','UNIVER_DOC','1462520rpBszb','filter','IUniverInstanceService','string','Disposable','nextDocumentData','clear','compose','customDecorations','@univerjs-pro/docs-code','UniverLicensePlugin','length','spaceAbove','DEFAULT_CODE_CONFIG','tables','DependentOn','registerPluginResource','Injector','DataStreamTreeTokenType','createParagraphId','serialize','reduce','BLOCK_START','IConfigService','_config','9oSCQTo','_initResource','startIndex','getTextRanges','set','buildUpdateCodeActions','endIndex','right','docs-code.command.exit','decorate','previousDocumentData','stringify','getSnapshot','getBody','SECTION_BREAK','blockType','sectionBreaks','Tools','forEach','removeUnit','docs-code.config','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','CommandType','textStyle','endsWith','indentStart','0.25.0-insiders.20260618-d756bd0','UniverInstanceType','findCodeRangeAtOffset','type','paragraphId','some','DocumentBlockRangeType','DocsCodeExitCommand','BuildTextUtils','CODE','30hnaHaC','customBlocks','Document\x20body\x20is\x20required','UniverDocsPlugin','cursorOffset','map','paragraphStartIndex','max','textRuns','_commandService','DOCS_CODE_PLUGIN','find','getUniverDocInstance','DocsCodeCancelEmptyParagraphCommand','dataStream','RichTextEditingMutation','metadata','IResourceManagerService','symbol','sort','buildCancelEmptyCodeParagraphActions','packageName','fromEntries','codes','consumeInsertRange','buildExitCodeActions','slice','blockId','call','DocContentInsertService','diffValue','DOC_CODE_PLUGIN','complete','Plugin','docs-code.command.insert-below','next','customRanges','blockRanges','iterator','config','2857965GBALkl','476312CsqGfS','startOffset'];_0x68c2=function(){return _0x4283cf;};return _0x68c2();}function ce(_0x204f8e,_0x5a739e,_0x3e9278){const _0x41fd54=_0x33f584;let _0x2ec28a=_0x3e9278-_0x5a739e;_0x204f8e[_0x41fd54(0x94)]=''+_0x204f8e[_0x41fd54(0x94)]['slice'](0x0,_0x5a739e)+_0x204f8e[_0x41fd54(0x94)][_0x41fd54(0xa0)](_0x3e9278),ue(_0x204f8e,_0x5a739e,_0x2ec28a);}function _0x4fde(_0x4e40d1,_0x1aebdc){_0x4e40d1=_0x4e40d1-0x8f;const _0x68c294=_0x68c2();let _0x4fdea0=_0x68c294[_0x4e40d1];return _0x4fdea0;}function le(_0x4be186,_0x17f93c,_0x28569d){const _0x4f0753=_0x33f584;_0x4be186[_0x4f0753(0xdb)]=A(_0x4be186[_0x4f0753(0xdb)],_0x17f93c,_0x28569d),_0x4be186['sectionBreaks']=A(_0x4be186[_0x4f0753(0x122)],_0x17f93c,_0x28569d),_0x4be186[_0x4f0753(0x137)]=A(_0x4be186[_0x4f0753(0x137)],_0x17f93c,_0x28569d),_0x4be186['textRuns']=de(_0x4be186[_0x4f0753(0x13e)],_0x17f93c,_0x28569d),_0x4be186[_0x4f0753(0x107)]=M(_0x4be186[_0x4f0753(0x107)],_0x17f93c,_0x28569d),_0x4be186[_0x4f0753(0xaa)]=M(_0x4be186[_0x4f0753(0xaa)],_0x17f93c,_0x28569d),_0x4be186[_0x4f0753(0x101)]=M(_0x4be186[_0x4f0753(0x101)],_0x17f93c,_0x28569d),_0x4be186['blockRanges']=M(_0x4be186[_0x4f0753(0xab)],_0x17f93c,_0x28569d);}function ue(_0x534804,_0x53613d,_0x583c7f){const _0x40b1f2=_0x33f584;var _0x5acac4,_0x5f11ce;_0x534804[_0x40b1f2(0xdb)]=j(_0x534804[_0x40b1f2(0xdb)],_0x53613d,_0x583c7f),_0x534804['sectionBreaks']=j(_0x534804['sectionBreaks'],_0x53613d,_0x583c7f),_0x534804[_0x40b1f2(0x137)]=j(_0x534804[_0x40b1f2(0x137)],_0x53613d,_0x583c7f),_0x534804['textRuns']=(_0x5acac4=N((_0x5f11ce=_0x534804[_0x40b1f2(0x13e)])==null?void 0x0:_0x5f11ce[_0x40b1f2(0x13b)](_0x23733=>({..._0x23733,'startIndex':_0x23733['st'],'endIndex':_0x23733['ed']})),_0x53613d,_0x583c7f))==null?void 0x0:_0x5acac4[_0x40b1f2(0x13b)](_0x2ed2da=>{let {startIndex:_0x5aa2a1,endIndex:_0x299bd5,..._0x39a384}=_0x2ed2da;return{..._0x39a384,'st':_0x5aa2a1,'ed':_0x299bd5};}),_0x534804['tables']=N(_0x534804[_0x40b1f2(0x107)],_0x53613d,_0x583c7f),_0x534804[_0x40b1f2(0xaa)]=N(_0x534804['customRanges'],_0x53613d,_0x583c7f),_0x534804['customDecorations']=N(_0x534804[_0x40b1f2(0x101)],_0x53613d,_0x583c7f),_0x534804['blockRanges']=N(_0x534804[_0x40b1f2(0xab)],_0x53613d,_0x583c7f);}function A(_0x1162ec,_0x1cc9ce,_0x48dbd9){const _0x33c178=_0x33f584;return _0x1162ec==null?void 0x0:_0x1162ec['map'](_0x1dc1c5=>_0x1dc1c5[_0x33c178(0x114)]>=_0x1cc9ce?{..._0x1dc1c5,'startIndex':_0x1dc1c5[_0x33c178(0x114)]+_0x48dbd9}:_0x1dc1c5);}function j(_0x2e0c62,_0x1c29ee,_0x214899){const _0xdadc50=_0x33f584;let _0x5c6c54=_0x1c29ee+_0x214899;return _0x2e0c62==null?void 0x0:_0x2e0c62['map'](_0x1697ca=>_0x1697ca[_0xdadc50(0x114)]>=_0x1c29ee&&_0x1697ca[_0xdadc50(0x114)]<_0x5c6c54?null:_0x1697ca[_0xdadc50(0x114)]>=_0x5c6c54?{..._0x1697ca,'startIndex':_0x1697ca[_0xdadc50(0x114)]-_0x214899}:_0x1697ca)[_0xdadc50(0xfa)](_0x4e75fd=>_0x4e75fd!=null);}function de(_0x3cbba7,_0x4b455c,_0x1038d7){const _0x5f2d12=_0x33f584;return _0x3cbba7==null?void 0x0:_0x3cbba7[_0x5f2d12(0x13b)](_0x4c0069=>_0x4c0069['st']>=_0x4b455c?{..._0x4c0069,'st':_0x4c0069['st']+_0x1038d7,'ed':_0x4c0069['ed']+_0x1038d7}:_0x4c0069['ed']>_0x4b455c?{..._0x4c0069,'ed':_0x4c0069['ed']+_0x1038d7}:_0x4c0069);}function M(_0x4f210b,_0x2755de,_0x4806cf){const _0x295228=_0x33f584;return _0x4f210b==null?void 0x0:_0x4f210b[_0x295228(0x13b)](_0x452189=>_0x452189[_0x295228(0x114)]>=_0x2755de?{..._0x452189,'startIndex':_0x452189[_0x295228(0x114)]+_0x4806cf,'endIndex':_0x452189[_0x295228(0x118)]+_0x4806cf}:_0x452189[_0x295228(0x118)]>=_0x2755de?{..._0x452189,'endIndex':_0x452189[_0x295228(0x118)]+_0x4806cf}:_0x452189);}function N(_0x34843c,_0x28f097,_0x3fb3e0){const _0x6e21e0=_0x33f584;let _0x5f21d4=_0x28f097+_0x3fb3e0;return _0x34843c==null?void 0x0:_0x34843c[_0x6e21e0(0x13b)](_0x2028cc=>_0x2028cc[_0x6e21e0(0x114)]>=_0x28f097&&_0x2028cc[_0x6e21e0(0x118)]<_0x5f21d4?null:_0x2028cc[_0x6e21e0(0x114)]>=_0x5f21d4?{..._0x2028cc,'startIndex':_0x2028cc[_0x6e21e0(0x114)]-_0x3fb3e0,'endIndex':_0x2028cc['endIndex']-_0x3fb3e0}:_0x2028cc[_0x6e21e0(0x118)]>=_0x28f097?{..._0x2028cc,'startIndex':_0x2028cc['startIndex']<_0x28f097?_0x2028cc[_0x6e21e0(0x114)]:_0x28f097,'endIndex':Math[_0x6e21e0(0x13d)](_0x28f097,_0x2028cc[_0x6e21e0(0x118)]-_0x3fb3e0)}:_0x2028cc)['filter'](_0x6355cf=>_0x6355cf!=null);}function P(_0x3bf1cd,_0x2598c1,_0x25cd53,_0x5696bf){const _0x312246=_0x33f584;_0x3bf1cd==null||_0x3bf1cd[_0x312246(0x124)](_0x35d2c=>{const _0x47832b=_0x312246;_0x35d2c[_0x47832b(0x114)]>=_0x2598c1&&_0x35d2c[_0x47832b(0x114)]<_0x25cd53&&(_0x35d2c['startIndex']+=_0x5696bf);});}function fe(_0x567dcd,_0x4bdc16,_0x5aa967,_0x4df331){const _0xa2ef8a=_0x33f584;_0x567dcd==null||_0x567dcd[_0xa2ef8a(0x124)](_0xf4f92=>{_0xf4f92['st']>=_0x4bdc16&&_0xf4f92['st']<_0x5aa967?(_0xf4f92['st']+=_0x4df331,_0xf4f92['ed']+=_0x4df331):_0xf4f92['ed']>_0x4bdc16&&_0xf4f92['ed']<_0x5aa967&&(_0xf4f92['ed']+=_0x4df331);});}function F(_0x19e222,_0x1da83f,_0x467777,_0x39e09f){const _0xcddebb=_0x33f584;_0x19e222==null||_0x19e222[_0xcddebb(0x124)](_0x599146=>{const _0x2be2bd=_0xcddebb;_0x599146[_0x2be2bd(0x114)]>=_0x1da83f&&_0x599146[_0x2be2bd(0x114)]<_0x467777?(_0x599146[_0x2be2bd(0x114)]+=_0x39e09f,_0x599146['endIndex']+=_0x39e09f):_0x599146[_0x2be2bd(0x118)]>_0x1da83f&&_0x599146['endIndex']<_0x467777&&(_0x599146[_0x2be2bd(0x118)]+=_0x39e09f);});}function I(_0xb26b96){'@babel/helpers - typeof';const _0xb782e5=_0x33f584;return I=typeof Symbol==_0xb782e5(0xe4)&&typeof Symbol[_0xb782e5(0xac)]==_0xb782e5(0x98)?function(_0x422976){return typeof _0x422976;}:function(_0x1242f0){const _0x343d3b=_0xb782e5;return _0x1242f0&&typeof Symbol==_0x343d3b(0xe4)&&_0x1242f0['constructor']===Symbol&&_0x1242f0!==Symbol[_0x343d3b(0xc5)]?'symbol':typeof _0x1242f0;},I(_0xb26b96);}function pe(_0x5be917,_0x21cf1a){const _0x468028=_0x33f584;if(I(_0x5be917)!=_0x468028(0xc6)||!_0x5be917)return _0x5be917;var _0x32d9b3=_0x5be917[Symbol[_0x468028(0xf6)]];if(_0x32d9b3!==void 0x0){var _0x50bdb0=_0x32d9b3[_0x468028(0xa2)](_0x5be917,_0x21cf1a||_0x468028(0xd7));if(I(_0x50bdb0)!=_0x468028(0xc6))return _0x50bdb0;throw TypeError(_0x468028(0x127));}return(_0x21cf1a===_0x468028(0xfc)?String:Number)(_0x5be917);}function me(_0xf49ea7){const _0x227f20=_0x33f584;var _0x1482be=pe(_0xf49ea7,_0x227f20(0xfc));return I(_0x1482be)==_0x227f20(0x98)?_0x1482be:_0x1482be+'';}function L(_0x5c4d22,_0x24d40c,_0x4c8e98){const _0x39082d=_0x33f584;return(_0x24d40c=me(_0x24d40c))in _0x5c4d22?Object[_0x39082d(0xdc)](_0x5c4d22,_0x24d40c,{'value':_0x4c8e98,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5c4d22[_0x24d40c]=_0x4c8e98,_0x5c4d22;}var R=class extends e[_0x33f584(0xfd)]{constructor(..._0x382ee3){const _0x35c9f7=_0x33f584;super(..._0x382ee3),L(this,_0x35c9f7(0xe1),new Map()),L(this,_0x35c9f7(0xcd),new n['Subject']()),L(this,'change$',this[_0x35c9f7(0xcd)]['asObservable']());}[_0x33f584(0xd2)](_0x5aea29,_0x3a38cf){const _0x43b9b5=_0x33f584;return o(this[_0x43b9b5(0xe1)][_0x43b9b5(0xf1)](_0x5aea29))[_0x43b9b5(0x9d)][_0x3a38cf];}[_0x33f584(0xcc)](_0x36e6b6,_0x376913,_0x1401f6){const _0x18f5d8=_0x33f584;this[_0x18f5d8(0xbb)](_0x36e6b6,_0x376913,s(this[_0x18f5d8(0xe1)][_0x18f5d8(0xf1)](_0x36e6b6),_0x376913,_0x1401f6));}[_0x33f584(0xc0)](_0x32541f,_0x3b6026){const _0x311758=_0x33f584;this['_setResource'](_0x32541f,_0x3b6026,c(this['_resources'][_0x311758(0xf1)](_0x32541f),_0x3b6026));}['serialize'](_0x3ec5d2){const _0x11cfe5=_0x33f584;return o(this[_0x11cfe5(0xe1)]['get'](_0x3ec5d2));}['deserialize'](_0x5b216d,_0x523710){const _0x133df9=_0x33f584;this[_0x133df9(0xe1)][_0x133df9(0x116)](_0x5b216d,o(_0x523710)),this[_0x133df9(0xcd)][_0x133df9(0xa9)]({'unitId':_0x5b216d});}['removeUnit'](_0x5ab49b){const _0x3bfa06=_0x33f584;this[_0x3bfa06(0xe1)][_0x3bfa06(0xb5)](_0x5ab49b),this['_change$'][_0x3bfa06(0xa9)]({'unitId':_0x5ab49b});}[_0x33f584(0xb9)](){const _0xb7c36a=_0x33f584;super[_0xb7c36a(0xb9)](),this[_0xb7c36a(0xe1)][_0xb7c36a(0xff)](),this[_0xb7c36a(0xcd)][_0xb7c36a(0xa6)]();}['_setResource'](_0x115004,_0x5723c1,_0x5ba888){const _0x406fa5=_0x33f584;this[_0x406fa5(0xe1)][_0x406fa5(0x116)](_0x115004,_0x5ba888),this[_0x406fa5(0xcd)][_0x406fa5(0xa9)]({'unitId':_0x115004,'blockId':_0x5723c1});}};const z={'id':_0x33f584(0xa8),'type':e[_0x33f584(0x128)][_0x33f584(0xec)],'handler':_0x3104d3=>{const _0x39b142=_0x33f584;let _0x439171=he(_0x3104d3);if(_0x439171)return _0x3104d3[_0x39b142(0xf1)](e[_0x39b142(0xe8)])['syncExecuteCommand'](V['id'],{'startOffset':_0x439171[_0x39b142(0xb0)],'endOffset':_0x439171[_0x39b142(0xe0)],'unitId':_0x439171[_0x39b142(0xf5)]});let _0x5cd5dd=ge(_0x3104d3);if(!_0x5cd5dd)return!0x1;let _0x208438=_0x5cd5dd['startIndex']+0x1;return _0x3104d3[_0x39b142(0xf1)](e[_0x39b142(0xe8)])[_0x39b142(0xb3)](V['id'],{'startOffset':_0x208438,'endOffset':_0x208438});}},B={'id':_0x33f584(0xe9),'type':e[_0x33f584(0x128)][_0x33f584(0xec)],'handler':()=>!0x0},V={'id':'docs-code.command.insert','type':e[_0x33f584(0x128)][_0x33f584(0xec)],'handler':(_0xd513c8,_0x2c0171)=>{const _0xbd0f25=_0x33f584;var _0x3a2df7,_0x574934,_0x271a73;let _0x7c6788=G(_0xd513c8,_0x2c0171==null?void 0x0:_0x2c0171[_0xbd0f25(0xf5)]);if(!_0x7c6788)return!0x1;let _0x4eff02=K(_0xd513c8),_0x393d7f=u({'blockId':(_0x3a2df7=_0x2c0171==null?void 0x0:_0x2c0171[_0xbd0f25(0xa1)])==null?(0x0,e[_0xbd0f25(0xef)])(0x6):_0x3a2df7,'config':_0x2c0171==null?void 0x0:_0x2c0171[_0xbd0f25(0xad)],'documentData':_0x7c6788[_0xbd0f25(0x11c)],'endOffset':(_0x574934=_0x2c0171==null?void 0x0:_0x2c0171[_0xbd0f25(0xe0)])==null?_0x4eff02==null?void 0x0:_0x4eff02[_0xbd0f25(0xe0)]:_0x574934,'metadata':_0x7c6788[_0xbd0f25(0xbe)][_0xbd0f25(0x10d)](_0x7c6788[_0xbd0f25(0xf5)]),'startOffset':(_0x271a73=_0x2c0171==null?void 0x0:_0x2c0171['startOffset'])==null?_0x4eff02==null?void 0x0:_0x4eff02['startOffset']:_0x271a73}),_0x3dec06=J(_0x7c6788[_0xbd0f25(0xc3)],_0x7c6788['unitId'],_0x7c6788[_0xbd0f25(0x11c)],_0x393d7f[_0xbd0f25(0xfe)],_0x393d7f['cursorOffset']);return _0x3dec06&&_0x393d7f['nextMetadata']&&_0x7c6788['model'][_0xbd0f25(0xda)](_0x7c6788[_0xbd0f25(0xf5)],_0x393d7f['nextMetadata']),_0x3dec06;}},H={'id':'docs-code.command.update','type':e[_0x33f584(0x128)][_0x33f584(0xec)],'handler':(_0x4e4c14,_0x2a9e8a)=>{const _0xe088e3=_0x33f584;if(!_0x2a9e8a)return!0x1;let _0x4bde65=G(_0x4e4c14,_0x2a9e8a[_0xe088e3(0xf5)]);if(!_0x4bde65)return!0x1;let _0x5c9e32=p({'blockId':_0x2a9e8a[_0xe088e3(0xa1)],'config':_0x2a9e8a[_0xe088e3(0xad)],'documentData':_0x4bde65[_0xe088e3(0x11c)],'metadata':_0x4bde65[_0xe088e3(0xbe)][_0xe088e3(0x10d)](_0x4bde65[_0xe088e3(0xf5)])});return _0x5c9e32[_0xe088e3(0xc8)]&&_0x4bde65[_0xe088e3(0xbe)][_0xe088e3(0xda)](_0x4bde65[_0xe088e3(0xf5)],_0x5c9e32['nextMetadata']),!0x0;}},U={'id':_0x33f584(0x11a),'type':e[_0x33f584(0x128)][_0x33f584(0xec)],'handler':(_0x482fd6,_0x7067bd)=>{const _0x4c591f=_0x33f584;var _0x37b1a4,_0x8b1145;let _0x184403=G(_0x482fd6,_0x7067bd==null?void 0x0:_0x7067bd['unitId']);if(!_0x184403)return!0x1;let _0x28b0f8=(_0x37b1a4=_0x7067bd==null?void 0x0:_0x7067bd[_0x4c591f(0x13a)])==null?(_0x8b1145=K(_0x482fd6))==null?void 0x0:_0x8b1145[_0x4c591f(0xb0)]:_0x37b1a4;if(_0x28b0f8==null)return!0x1;let _0xf43195=m({'cursorOffset':_0x28b0f8,'documentData':_0x184403[_0x4c591f(0x11c)]});return _0xf43195?J(_0x184403[_0x4c591f(0xc3)],_0x184403[_0x4c591f(0xf5)],_0x184403['previousDocumentData'],_0xf43195[_0x4c591f(0xfe)],_0xf43195['cursorOffset']):!0x1;}},W={'id':'docs-code.command.cancel-empty-paragraph','type':e[_0x33f584(0x128)][_0x33f584(0xec)],'handler':(_0x4220b1,_0x1c35fe)=>{const _0x1fc230=_0x33f584;var _0x53295b,_0x5e9fc8;let _0x356924=G(_0x4220b1,_0x1c35fe==null?void 0x0:_0x1c35fe[_0x1fc230(0xf5)]);if(!_0x356924)return!0x1;let _0x1ece3d=(_0x53295b=_0x1c35fe==null?void 0x0:_0x1c35fe[_0x1fc230(0x13a)])==null?(_0x5e9fc8=K(_0x4220b1))==null?void 0x0:_0x5e9fc8[_0x1fc230(0xb0)]:_0x53295b;if(_0x1ece3d==null)return!0x1;let _0x159d3a=h({'cursorOffset':_0x1ece3d,'documentData':_0x356924[_0x1fc230(0x11c)],'paragraphStartIndex':_0x1c35fe==null?void 0x0:_0x1c35fe[_0x1fc230(0x13c)]});return _0x159d3a?J(_0x356924[_0x1fc230(0xc3)],_0x356924[_0x1fc230(0xf5)],_0x356924[_0x1fc230(0x11c)],_0x159d3a[_0x1fc230(0xfe)],_0x159d3a['cursorOffset']):!0x1;}};function G(_0x2ccf90,_0xc07cbd){const _0x2c26b8=_0x33f584;let _0x5df5a7=_0x2ccf90[_0x2c26b8(0xf1)](e[_0x2c26b8(0xfb)]),_0xff5274=_0xc07cbd?_0x5df5a7[_0x2c26b8(0x92)](_0xc07cbd):_0x5df5a7[_0x2c26b8(0xcf)](e[_0x2c26b8(0x12d)][_0x2c26b8(0xf8)]);return _0xff5274?{'commandService':_0x2ccf90['get'](e['ICommandService']),'model':_0x2ccf90[_0x2c26b8(0xf1)](R),'previousDocumentData':_0xff5274[_0x2c26b8(0x11e)](),'unitId':_0xff5274[_0x2c26b8(0xd3)]()}:null;}function K(_0x26af64){const _0x4ad9f7=_0x33f584;var _0x26e820;return(_0x26e820=_0x26af64[_0x4ad9f7(0xf1)](t[_0x4ad9f7(0xd4)])[_0x4ad9f7(0x115)]())==null?void 0x0:_0x26e820[0x0];}function he(_0x59758a){const _0x4fbcfc=_0x33f584;var _0x14a2b5;let _0x3186ba=(_0x14a2b5=_0x59758a[_0x4fbcfc(0xf1)](e[_0x4fbcfc(0xfb)])[_0x4fbcfc(0xcf)](e[_0x4fbcfc(0x12d)]['UNIVER_DOC']))==null?void 0x0:_0x14a2b5['getUnitId']();try{return _0x59758a[_0x4fbcfc(0xf1)](t[_0x4fbcfc(0xa3)])[_0x4fbcfc(0x9e)](_0x3186ba);}catch{return null;}}function ge(_0x17529e){const _0x37a16c=_0x33f584;var _0x5280a4,_0x3780bd,_0x227906;let _0x348378=K(_0x17529e);if(!_0x348378)return null;let _0x575cb1=_0x17529e[_0x37a16c(0xf1)](e[_0x37a16c(0xfb)])[_0x37a16c(0xcf)](e[_0x37a16c(0x12d)]['UNIVER_DOC']),_0x5d33bf=_0x575cb1==null?void 0x0:_0x575cb1[_0x37a16c(0x11f)]();return _0x5d33bf?(_0x5280a4=e[_0x37a16c(0x134)][_0x37a16c(0xd8)]['getParagraphsInRange'](_0x348378,(_0x3780bd=_0x5d33bf[_0x37a16c(0xdb)])==null?[]:_0x3780bd,(_0x227906=_0x5d33bf['dataStream'])==null?'':_0x227906)[0x0])==null?null:_0x5280a4:null;}function _e(_0x26e5cf,_0x51cea5){const _0x42b44d=_0x33f584;var _0x3fffaa,_0x117c11,_0x3d5e3a,_0x456b52,_0x3c7638,_0x3c24da,_0x2574e8,_0x5c82c1,_0x130a3e,_0x1404fc,_0x4082d5,_0x3c9cdc,_0x3443be,_0xd2f08c,_0x46a4a6,_0x1bd0a5,_0x9285fa,_0x7a4a1f;let _0x3a5086=e[_0x42b44d(0xb7)]['getInstance']();return[q(_0x3a5086,['body',_0x42b44d(0x94)],(_0x3fffaa=_0x26e5cf[_0x42b44d(0xca)])==null?void 0x0:_0x3fffaa[_0x42b44d(0x94)],(_0x117c11=_0x51cea5[_0x42b44d(0xca)])==null?void 0x0:_0x117c11[_0x42b44d(0x94)]),q(_0x3a5086,[_0x42b44d(0xca),_0x42b44d(0xdb)],(_0x3d5e3a=_0x26e5cf[_0x42b44d(0xca)])==null?void 0x0:_0x3d5e3a[_0x42b44d(0xdb)],(_0x456b52=_0x51cea5['body'])==null?void 0x0:_0x456b52[_0x42b44d(0xdb)]),q(_0x3a5086,[_0x42b44d(0xca),_0x42b44d(0x122)],(_0x3c7638=_0x26e5cf[_0x42b44d(0xca)])==null?void 0x0:_0x3c7638['sectionBreaks'],(_0x3c24da=_0x51cea5[_0x42b44d(0xca)])==null?void 0x0:_0x3c24da[_0x42b44d(0x122)]),q(_0x3a5086,[_0x42b44d(0xca),'textRuns'],(_0x2574e8=_0x26e5cf[_0x42b44d(0xca)])==null?void 0x0:_0x2574e8[_0x42b44d(0x13e)],(_0x5c82c1=_0x51cea5[_0x42b44d(0xca)])==null?void 0x0:_0x5c82c1[_0x42b44d(0x13e)]),q(_0x3a5086,[_0x42b44d(0xca),_0x42b44d(0x137)],(_0x130a3e=_0x26e5cf[_0x42b44d(0xca)])==null?void 0x0:_0x130a3e[_0x42b44d(0x137)],(_0x1404fc=_0x51cea5['body'])==null?void 0x0:_0x1404fc[_0x42b44d(0x137)]),q(_0x3a5086,[_0x42b44d(0xca),_0x42b44d(0xaa)],(_0x4082d5=_0x26e5cf['body'])==null?void 0x0:_0x4082d5[_0x42b44d(0xaa)],(_0x3c9cdc=_0x51cea5[_0x42b44d(0xca)])==null?void 0x0:_0x3c9cdc[_0x42b44d(0xaa)]),q(_0x3a5086,['body',_0x42b44d(0x101)],(_0x3443be=_0x26e5cf[_0x42b44d(0xca)])==null?void 0x0:_0x3443be['customDecorations'],(_0xd2f08c=_0x51cea5[_0x42b44d(0xca)])==null?void 0x0:_0xd2f08c[_0x42b44d(0x101)]),q(_0x3a5086,[_0x42b44d(0xca),_0x42b44d(0x107)],(_0x46a4a6=_0x26e5cf['body'])==null?void 0x0:_0x46a4a6[_0x42b44d(0x107)],(_0x1bd0a5=_0x51cea5[_0x42b44d(0xca)])==null?void 0x0:_0x1bd0a5[_0x42b44d(0x107)]),q(_0x3a5086,[_0x42b44d(0xca),_0x42b44d(0xab)],(_0x9285fa=_0x26e5cf[_0x42b44d(0xca)])==null?void 0x0:_0x9285fa[_0x42b44d(0xab)],(_0x7a4a1f=_0x51cea5[_0x42b44d(0xca)])==null?void 0x0:_0x7a4a1f[_0x42b44d(0xab)])][_0x42b44d(0xfa)](Boolean)[_0x42b44d(0x10e)]((_0x3b4127,_0x4db8aa)=>e[_0x42b44d(0xb7)][_0x42b44d(0x100)](_0x3b4127,_0x4db8aa),null);}function q(_0x1296d3,_0x45f2e0,_0x54b2a3,_0x2b83e9){const _0x30162d=_0x33f584;return e[_0x30162d(0x123)][_0x30162d(0xa4)](_0x54b2a3,_0x2b83e9)?null:_0x1296d3['replaceOp'](_0x45f2e0,_0x54b2a3,_0x2b83e9);}function J(_0x21aa3d,_0x63173f,_0x2ddbf4,_0xb2c772,_0x4e1f9c){const _0x2eca87=_0x33f584;let _0x1fde6e=_e(_0x2ddbf4,_0xb2c772);return _0x1fde6e?!!_0x21aa3d[_0x2eca87(0xb3)](t[_0x2eca87(0x95)]['id'],{'unitId':_0x63173f,'actions':_0x1fde6e,'textRanges':[{'startOffset':_0x4e1f9c,'endOffset':_0x4e1f9c,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const Y=_0x33f584(0xa5);var ve=_0x33f584(0x102),ye=_0x33f584(0x12c);const X={};function Z(_0x2d1e5e,_0x31668e){return function(_0x3523a6,_0x2fb32d){_0x31668e(_0x3523a6,_0x2fb32d,_0x2d1e5e);};}function be(_0x52e8a8,_0x4d162b,_0x165b77,_0x5889a5){const _0x5c8bfc=_0x33f584;var _0x400aeb=arguments[_0x5c8bfc(0x104)],_0x4f0975=_0x400aeb<0x3?_0x4d162b:_0x5889a5===null?_0x5889a5=Object[_0x5c8bfc(0xcb)](_0x4d162b,_0x165b77):_0x5889a5,_0x1ce28e;if(typeof Reflect=='object'&&typeof Reflect['decorate']=='function')_0x4f0975=Reflect[_0x5c8bfc(0x11b)](_0x52e8a8,_0x4d162b,_0x165b77,_0x5889a5);else{for(var _0x13f2eb=_0x52e8a8[_0x5c8bfc(0x104)]-0x1;_0x13f2eb>=0x0;_0x13f2eb--)(_0x1ce28e=_0x52e8a8[_0x13f2eb])&&(_0x4f0975=(_0x400aeb<0x3?_0x1ce28e(_0x4f0975):_0x400aeb>0x3?_0x1ce28e(_0x4d162b,_0x165b77,_0x4f0975):_0x1ce28e(_0x4d162b,_0x165b77))||_0x4f0975);}return _0x400aeb>0x3&&_0x4f0975&&Object[_0x5c8bfc(0xdc)](_0x4d162b,_0x165b77,_0x4f0975),_0x4f0975;}let Q=class extends e['Disposable']{constructor(_0x49a699,_0x444f9d){const _0x4244a3=_0x33f584;super(),this[_0x4244a3(0xb2)]=_0x49a699,this['_docsCodeModel']=_0x444f9d,this[_0x4244a3(0x113)]();}[_0x33f584(0x113)](){const _0x2831cf=_0x33f584;this['disposeWithMe'](this[_0x2831cf(0xb2)][_0x2831cf(0x109)]({'pluginName':Y,'businesses':[e['UniverInstanceType'][_0x2831cf(0xf8)]],'toJson':_0x38754a=>JSON[_0x2831cf(0x11d)](this['_docsCodeModel'][_0x2831cf(0x10d)](_0x38754a)),'parseJson':_0x54dd7d=>o(JSON['parse'](_0x54dd7d)),'onLoad':(_0x1f2872,_0x3d72bb)=>this[_0x2831cf(0xdf)][_0x2831cf(0xda)](_0x1f2872,_0x3d72bb),'onUnLoad':_0x21d324=>this[_0x2831cf(0xdf)][_0x2831cf(0x125)](_0x21d324)}));}};Q=be([Z(0x0,e[_0x33f584(0x97)]),Z(0x1,(0x0,e['Inject'])(R))],Q);let $=class extends e[_0x33f584(0xa7)]{constructor(_0x2883d3=X,_0xa03d8d,_0x19dd0,_0x49b169){const _0xd7fe79=_0x33f584;super(),this[_0xd7fe79(0x111)]=_0x2883d3,this[_0xd7fe79(0xf3)]=_0xa03d8d,this[_0xd7fe79(0x8f)]=_0x19dd0,this['_configService']=_0x49b169;let {..._0x4a503e}=(0x0,e['merge'])({},X,this[_0xd7fe79(0x111)]);this[_0xd7fe79(0xf0)][_0xd7fe79(0xf4)](_0xd7fe79(0x126),_0x4a503e);}[_0x33f584(0xba)](){const _0x2c4322=_0x33f584;this[_0x2c4322(0xf3)][_0x2c4322(0xc4)]([R]),this[_0x2c4322(0xf3)]['add']([Q]),this[_0x2c4322(0xf3)]['get'](R),this[_0x2c4322(0xf3)][_0x2c4322(0xf1)](Q),[V,z,H,U,W,B][_0x2c4322(0x124)](_0x33318d=>this['disposeWithMe'](this[_0x2c4322(0x8f)]['registerCommand'](_0x33318d)));}};L($,'pluginName',Y),L($,_0x33f584(0x9b),ve),L($,_0x33f584(0xd5),ye),L($,_0x33f584(0x12f),e['UniverInstanceType'][_0x33f584(0xf8)]),$=be([(0x0,e[_0x33f584(0x108)])(r[_0x33f584(0x103)],t[_0x33f584(0x139)]),Z(0x1,(0x0,e['Inject'])(e[_0x33f584(0x10a)])),Z(0x2,e['ICommandService']),Z(0x3,e[_0x33f584(0x110)])],$),exports[_0x33f584(0x106)]=i,exports[_0x33f584(0x90)]=Y,exports[_0x33f584(0x93)]=W,exports[_0x33f584(0xc9)]=B,exports[_0x33f584(0x133)]=U,exports[_0x33f584(0xbd)]=z,exports['DocsCodeInsertCommand']=V,exports[_0x33f584(0xeb)]=R,exports['DocsCodeUpdateCommand']=H,Object[_0x33f584(0xdc)](exports,'UniverDocsCodePlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x33f584(0x9a)]=h,exports[_0x33f584(0x9f)]=m,exports['buildInsertCodeActions']=u,exports[_0x33f584(0x117)]=p,exports[_0x33f584(0x12e)]=_,exports[_0x33f584(0xb6)]=v,exports[_0x33f584(0xb4)]=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
|
+
var _0x2ac71c=_0x1b17;(function(_0x309a95,_0x41f3c8){var _0x23d617=_0x1b17,_0x2d0f2f=_0x309a95();while(!![]){try{var _0x571358=-parseInt(_0x23d617(0x114))/0x1*(-parseInt(_0x23d617(0xfb))/0x2)+parseInt(_0x23d617(0x137))/0x3+parseInt(_0x23d617(0x10f))/0x4*(parseInt(_0x23d617(0x112))/0x5)+parseInt(_0x23d617(0x142))/0x6+parseInt(_0x23d617(0x11d))/0x7*(-parseInt(_0x23d617(0x107))/0x8)+parseInt(_0x23d617(0x135))/0x9+-parseInt(_0x23d617(0x124))/0xa;if(_0x571358===_0x41f3c8)break;else _0x2d0f2f['push'](_0x2d0f2f['shift']());}catch(_0x500a60){_0x2d0f2f['push'](_0x2d0f2f['shift']());}}}(_0x16d6,0x6b57a));function _0x16d6(){var _0xca8d9a=['body','paragraph','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','7lIIRNy','prototype','includes','SECTION_BREAK','replace','cancelEmptyCodeParagraph','updateConfig','13447070IlvOnZ','dataStream','text','findCodes','_injector','CODE','PARAGRAPH','map','getCodes','getRange','length','defineProperty','_document','get','from','call','endIndex','4343670LkQAoZ','getOwnPropertyDescriptor','2097948boUHwt','function','getId','save','getCode','syncExecuteCommand','_getDocumentData','_blockId','_createFDocumentCode','constructor','getText','1244286RZQjze','getCodeConfig','12soFEMd','insertCode','createInstance','blockId','blockRanges','blockType','symbol','iterator','extend','getCodeAt','startIndex','exitCode','3238904XtBdqV','decorate','join','_getBlockRange','_getBlockRanges','cancelEmptyParagraph','describe','object','4HqvVno','filter','default','2846115qMrxHh','exit','38449KVWgQp','string','BLOCK_START','toPrimitive','getType','_unitId'];_0x16d6=function(){return _0xca8d9a;};return _0x16d6();}import{DocsCodeCancelEmptyParagraphCommand as _0x3477fe,DocsCodeExitCommand as _0x1c4dd8,DocsCodeInsertCommand as _0x3169be,DocsCodeModel as _0x405607,DocsCodeUpdateCommand as _0x35ac85,normalizeDocsCodeConfig as _0x35990e}from'@univerjs-pro/docs-code';function _0x1b17(_0x428e51,_0x284195){_0x428e51=_0x428e51-0xfa;var _0x16d65c=_0x16d6();var _0x1b173b=_0x16d65c[_0x428e51];return _0x1b173b;}import{DataStreamTreeTokenType as _0x56ebe4,DocumentBlockRangeType as _0x277a0c,ICommandService as _0x2ba4e3,Inject as _0x54c3a2,Injector as _0x19dec3,generateRandomId as _0x23e48a}from'@univerjs/core';import{FDocument as _0x29f6f5}from'@univerjs/docs/facade';function p(_0x3655cb){'@babel/helpers - typeof';var _0x1a6471=_0x1b17;return p=typeof Symbol==_0x1a6471(0x138)&&typeof Symbol[_0x1a6471(0x102)]==_0x1a6471(0x101)?function(_0x5933da){return typeof _0x5933da;}:function(_0x46fbdb){var _0x5bd470=_0x1a6471;return _0x46fbdb&&typeof Symbol==_0x5bd470(0x138)&&_0x46fbdb[_0x5bd470(0x140)]===Symbol&&_0x46fbdb!==Symbol[_0x5bd470(0x11e)]?_0x5bd470(0x101):typeof _0x46fbdb;},p(_0x3655cb);}function m(_0x1b5c75,_0x1279ea){var _0x37c289=_0x1b17;if(p(_0x1b5c75)!='object'||!_0x1b5c75)return _0x1b5c75;var _0x190b8c=_0x1b5c75[Symbol[_0x37c289(0x117)]];if(_0x190b8c!==void 0x0){var _0x202d40=_0x190b8c[_0x37c289(0x133)](_0x1b5c75,_0x1279ea||_0x37c289(0x111));if(p(_0x202d40)!='object')return _0x202d40;throw TypeError(_0x37c289(0x11c));}return(_0x1279ea===_0x37c289(0x115)?String:Number)(_0x1b5c75);}function h(_0x40d8cb){var _0x12bbd7=_0x1b17,_0x95754c=m(_0x40d8cb,'string');return p(_0x95754c)==_0x12bbd7(0x101)?_0x95754c:_0x95754c+'';}function g(_0x5b3859,_0x5531e7,_0x2b6309){var _0x4f3516=_0x1b17;return(_0x5531e7=h(_0x5531e7))in _0x5b3859?Object[_0x4f3516(0x12f)](_0x5b3859,_0x5531e7,{'value':_0x2b6309,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5b3859[_0x5531e7]=_0x2b6309,_0x5b3859;}function _(_0xa0525b,_0x39f536){return function(_0x25bda3,_0x57bd66){_0x39f536(_0x25bda3,_0x57bd66,_0xa0525b);};}function v(_0x4fa7d4,_0x33724e,_0x1a94c9,_0x33350b){var _0x338352=_0x1b17,_0x3b5450=arguments[_0x338352(0x12e)],_0x5e355a=_0x3b5450<0x3?_0x33724e:_0x33350b===null?_0x33350b=Object[_0x338352(0x136)](_0x33724e,_0x1a94c9):_0x33350b,_0x16dc81;if(typeof Reflect==_0x338352(0x10e)&&typeof Reflect[_0x338352(0x108)]==_0x338352(0x138))_0x5e355a=Reflect[_0x338352(0x108)](_0x4fa7d4,_0x33724e,_0x1a94c9,_0x33350b);else{for(var _0x4e2290=_0x4fa7d4['length']-0x1;_0x4e2290>=0x0;_0x4e2290--)(_0x16dc81=_0x4fa7d4[_0x4e2290])&&(_0x5e355a=(_0x3b5450<0x3?_0x16dc81(_0x5e355a):_0x3b5450>0x3?_0x16dc81(_0x33724e,_0x1a94c9,_0x5e355a):_0x16dc81(_0x33724e,_0x1a94c9))||_0x5e355a);}return _0x3b5450>0x3&&_0x5e355a&&Object[_0x338352(0x12f)](_0x33724e,_0x1a94c9,_0x5e355a),_0x5e355a;}let y=class{constructor(_0x10dd86,_0x334780,_0x20028a){var _0x333f52=_0x1b17;this['_document']=_0x10dd86,this['_blockId']=_0x334780,this[_0x333f52(0x128)]=_0x20028a,g(this,_0x333f52(0x119),void 0x0),this['_unitId']=this[_0x333f52(0x130)]['getId']();}[_0x2ac71c(0x139)](){var _0x37aaa6=_0x2ac71c;return this[_0x37aaa6(0x13e)];}[_0x2ac71c(0x12d)](){var _0x129e97=_0x2ac71c;let _0x2e59d8=this[_0x129e97(0x10a)]();return _0x2e59d8?{'blockId':_0x2e59d8['blockId'],'endIndex':_0x2e59d8[_0x129e97(0x134)],'startIndex':_0x2e59d8[_0x129e97(0x105)]}:null;}['getText'](){var _0x339227=_0x2ac71c,_0x49b4a2;let _0x3f551f=this[_0x339227(0x10a)](),_0x21bc0a=(_0x49b4a2=this[_0x339227(0x13d)]()['body'])==null?void 0x0:_0x49b4a2[_0x339227(0x125)];return!_0x3f551f||!_0x21bc0a?'':b(_0x21bc0a['slice'](_0x3f551f[_0x339227(0x105)]+0x1,_0x3f551f[_0x339227(0x134)]));}[_0x2ac71c(0x10d)](){var _0x32a62e=_0x2ac71c;let _0x35ec85=this['getRange']();return _0x35ec85?{..._0x35ec85,'config':this['getConfig'](),'text':this['getText'](),'type':_0x277a0c[_0x32a62e(0x129)]}:null;}['getConfig'](){var _0x3cae16=_0x2ac71c;return _0x35990e(this[_0x3cae16(0x128)][_0x3cae16(0x131)](_0x405607)[_0x3cae16(0xfa)](this[_0x3cae16(0x119)],this[_0x3cae16(0x13e)]));}[_0x2ac71c(0x123)](_0x3e8423){var _0x270caf=_0x2ac71c;return this[_0x270caf(0x128)][_0x270caf(0x131)](_0x2ba4e3)[_0x270caf(0x13c)](_0x35ac85['id'],{'blockId':this['_blockId'],'config':_0x3e8423['config'],'unitId':this[_0x270caf(0x119)]});}[_0x2ac71c(0x113)](_0x4ecbd7){var _0x5d5063=_0x2ac71c;return this['_injector']['get'](_0x2ba4e3)['syncExecuteCommand'](_0x1c4dd8['id'],{'cursorOffset':_0x4ecbd7,'unitId':this[_0x5d5063(0x119)]});}[_0x2ac71c(0x10c)](_0x1f9ed3={}){var _0x5c15e6=_0x2ac71c;return this[_0x5c15e6(0x128)][_0x5c15e6(0x131)](_0x2ba4e3)['syncExecuteCommand'](_0x3477fe['id'],{..._0x1f9ed3,'unitId':this[_0x5c15e6(0x119)]});}[_0x2ac71c(0x13d)](){var _0x4419a1=_0x2ac71c;return this[_0x4419a1(0x130)][_0x4419a1(0x13a)]();}[_0x2ac71c(0x10a)](){var _0x4740f1=_0x2ac71c,_0x80ed9d;let _0x24e38b=(_0x80ed9d=this['_getDocumentData']()[_0x4740f1(0x11a)])==null||(_0x80ed9d=_0x80ed9d[_0x4740f1(0xff)])==null?void 0x0:_0x80ed9d['find'](_0x5b173a=>_0x5b173a['blockId']===this[_0x4740f1(0x13e)]&&_0x5b173a[_0x4740f1(0x100)]===_0x277a0c[_0x4740f1(0x129)]);return _0x24e38b==null?null:_0x24e38b;}};y=v([_(0x2,_0x54c3a2(_0x19dec3))],y);function b(_0x96280f){var _0xa3afea=_0x2ac71c;return Array[_0xa3afea(0x132)](_0x96280f)[_0xa3afea(0x12b)](_0x52d5f9=>_0x52d5f9===_0x56ebe4[_0xa3afea(0x12a)]?'\x0a':_0x52d5f9)[_0xa3afea(0x110)](_0x8758ed=>_0x8758ed!==_0x56ebe4[_0xa3afea(0x116)]&&_0x8758ed!==_0x56ebe4['BLOCK_END']&&_0x8758ed!==_0x56ebe4[_0xa3afea(0x120)])[_0xa3afea(0x109)]('')[_0xa3afea(0x121)](/\n$/,'');}var x=class extends _0x29f6f5{[_0x2ac71c(0x12c)](){var _0x4166ed=_0x2ac71c;return this['_getBlockRanges']()[_0x4166ed(0x110)](_0x2188ff=>_0x2188ff['blockType']===_0x277a0c['CODE'])[_0x4166ed(0x12b)](_0xa4398d=>this['_createFDocumentCode'](_0xa4398d[_0x4166ed(0xfe)]));}[_0x2ac71c(0x13b)](_0x43cd34){var _0x26255f=_0x2ac71c;return this['_getBlockRanges']()['some'](_0x612eed=>_0x612eed[_0x26255f(0xfe)]===_0x43cd34&&_0x612eed[_0x26255f(0x100)]===_0x277a0c[_0x26255f(0x129)])?this[_0x26255f(0x13f)](_0x43cd34):null;}[_0x2ac71c(0x104)](_0x4a4a1e){var _0x4dfe2b=_0x2ac71c;let _0x124e35=this['_getBlockRanges']()['find'](_0x2d1636=>_0x2d1636[_0x4dfe2b(0x100)]===_0x277a0c[_0x4dfe2b(0x129)]&&_0x2d1636[_0x4dfe2b(0x105)]<=_0x4a4a1e&&_0x4a4a1e<=_0x2d1636['endIndex']);return _0x124e35?this[_0x4dfe2b(0x13f)](_0x124e35[_0x4dfe2b(0xfe)]):null;}['findCodeByText'](_0x3a4c76){var _0x48e4a=_0x2ac71c,_0x3cb75d;return(_0x3cb75d=this[_0x48e4a(0x127)](_0x3a4c76)[0x0])==null?null:_0x3cb75d;}[_0x2ac71c(0x127)](_0x1df746){var _0x298d1a=_0x2ac71c;let _0x3b5160=typeof _0x1df746==_0x298d1a(0x115)?{'text':_0x1df746}:_0x1df746;return this[_0x298d1a(0x12c)]()[_0x298d1a(0x110)](_0xcc7dfa=>!(_0x3b5160[_0x298d1a(0xfe)]&&_0xcc7dfa[_0x298d1a(0x139)]()!==_0x3b5160['blockId']||_0x3b5160[_0x298d1a(0x126)]&&!_0xcc7dfa[_0x298d1a(0x141)]()[_0x298d1a(0x11f)](_0x3b5160[_0x298d1a(0x126)])));}[_0x2ac71c(0xfc)](_0x1b8343={},_0x586f93={}){var _0x314d26=_0x2ac71c,_0xbc9e2;let _0xc40e6f=this[_0x314d26(0x128)][_0x314d26(0x131)](_0x2ba4e3),_0x544610=S(_0x1b8343)?{..._0x586f93,...C(_0x1b8343)}:_0x1b8343,_0xe099e1=(_0xbc9e2=_0x544610[_0x314d26(0xfe)])==null?_0x23e48a(0x6):_0xbc9e2;return _0xc40e6f[_0x314d26(0x13c)](_0x3169be['id'],{..._0x544610,'blockId':_0xe099e1,'unitId':this['getId']()})?this[_0x314d26(0x13f)](_0xe099e1):null;}[_0x2ac71c(0x106)](_0x53df59){var _0xf2e87d=_0x2ac71c;return this[_0xf2e87d(0x128)][_0xf2e87d(0x131)](_0x2ba4e3)[_0xf2e87d(0x13c)](_0x1c4dd8['id'],{'cursorOffset':_0x53df59,'unitId':this[_0xf2e87d(0x139)]()});}[_0x2ac71c(0x122)](_0x31008d={}){var _0x3bd192=_0x2ac71c;return this[_0x3bd192(0x128)][_0x3bd192(0x131)](_0x2ba4e3)['syncExecuteCommand'](_0x3477fe['id'],{..._0x31008d,'unitId':this[_0x3bd192(0x139)]()});}[_0x2ac71c(0x10b)](){var _0x1c3f10=_0x2ac71c,_0x5660a2,_0x1defdc;return(_0x5660a2=(_0x1defdc=this[_0x1c3f10(0x13a)]()[_0x1c3f10(0x11a)])==null?void 0x0:_0x1defdc[_0x1c3f10(0xff)])==null?[]:_0x5660a2;}[_0x2ac71c(0x13f)](_0x3a8d5f){var _0x1330c6=_0x2ac71c;return this['_injector'][_0x1330c6(0xfd)](y,this,_0x3a8d5f);}};function S(_0x5bc56a){var _0x54dd87=_0x2ac71c;return typeof _0x5bc56a==_0x54dd87(0x10e)&&!!_0x5bc56a&&typeof _0x5bc56a['getKey']==_0x54dd87(0x138)&&typeof _0x5bc56a[_0x54dd87(0x12d)]==_0x54dd87(0x138)&&typeof _0x5bc56a[_0x54dd87(0x118)]=='function'&&_0x5bc56a[_0x54dd87(0x118)]()===_0x54dd87(0x11b);}function C(_0xc8fb1f){var _0x2bbc12=_0x2ac71c;return _0xc8fb1f[_0x2bbc12(0x12d)]();}_0x29f6f5[_0x2ac71c(0x103)](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 _0x3ac352=_0x13c3;(function(_0x57329b,_0x41dbac){const _0x5abf66=_0x13c3,_0x4bd5a0=_0x57329b();while(!![]){try{const _0x226940=-parseInt(_0x5abf66(0x17c))/0x1*(parseInt(_0x5abf66(0x167))/0x2)+-parseInt(_0x5abf66(0x17d))/0x3+parseInt(_0x5abf66(0x1a2))/0x4*(parseInt(_0x5abf66(0x1a3))/0x5)+-parseInt(_0x5abf66(0x169))/0x6+-parseInt(_0x5abf66(0x152))/0x7*(parseInt(_0x5abf66(0x1a4))/0x8)+-parseInt(_0x5abf66(0x17e))/0x9*(parseInt(_0x5abf66(0x157))/0xa)+parseInt(_0x5abf66(0x1bf))/0xb;if(_0x226940===_0x41dbac)break;else _0x4bd5a0['push'](_0x4bd5a0['shift']());}catch(_0x200cbe){_0x4bd5a0['push'](_0x4bd5a0['shift']());}}}(_0x3e25,0xdc760));import{BuildTextUtils as _0x5010d2,CommandType as _0x3d5940,DataStreamTreeTokenType as _0x1a5d93,DependentOn as _0x55cbf0,Disposable as _0x17af83,DocumentBlockRangeType as _0x551e20,ICommandService as _0x293a14,IConfigService as _0x317be4,IResourceManagerService as _0x2eca2,IUniverInstanceService as _0x496553,Inject as _0x59a8b9,Injector as _0x5e28cb,JSONX as _0x490e0f,Plugin as _0x2f2fe4,Tools as _0x37bcba,UniverInstanceType as _0x5edc9c,createParagraphId as _0x45f844,generateRandomId as _0x1a6517,merge as _0xdd2d82}from'@univerjs/core';import{DocContentInsertService as _0x4a65e7,DocSelectionManagerService as _0x1dfcf7,RichTextEditingMutation as _0x4b6c31,UniverDocsPlugin as _0x23fd2b}from'@univerjs/docs';import{Subject as _0x43de51}from'rxjs';import{UniverLicensePlugin as _0x59b58d}from'@univerjs-pro/license';const S={'language':_0x3ac352(0x196),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function C(_0x14730f){return{...S,..._0x14730f};}function w(_0x2185e0){const _0xffb998=_0x3ac352;var _0xa4d427;let _0x30a453=(_0xa4d427=_0x2185e0==null?void 0x0:_0x2185e0[_0xffb998(0x176)])==null?{}:_0xa4d427;return{'codes':Object[_0xffb998(0x14f)](Object[_0xffb998(0x166)](_0x30a453)['map'](([_0x2a5dd7,_0x284bbd])=>[_0x2a5dd7,C(_0x284bbd)]))};}function T(_0x4f3ecf,_0x58d7e6,_0x22b072){const _0x1563ae=_0x3ac352;let _0x15dcb5=w(_0x4f3ecf);return _0x15dcb5[_0x1563ae(0x176)][_0x58d7e6]=C({..._0x15dcb5[_0x1563ae(0x176)][_0x58d7e6],..._0x22b072}),_0x15dcb5;}function re(_0x378e66,_0x40af70){const _0x144587=_0x3ac352;let _0x5290da=w(_0x378e66);return delete _0x5290da[_0x144587(0x176)][_0x40af70],_0x5290da;}const ie=_0x3ac352(0x151);function ae(_0x427ce0){const _0x154c42=_0x3ac352;var _0x344435,_0x1c09ca,_0x47ef39;let _0x41bf6f=D(_0x427ce0[_0x154c42(0x17a)]),_0x1229e1=O(_0x41bf6f),_0x33b333=se(_0x427ce0[_0x154c42(0x17f)],_0x427ce0['endOffset']),_0x577198=_0x33b333?(_0x344435=_0x1229e1[_0x154c42(0x16c)])==null?void 0x0:_0x344435[_0x154c42(0x189)](_0x53318f=>_0x53318f['startIndex']===_0x33b333[_0x154c42(0x17f)]&&_0x53318f['endIndex']+0x1===_0x33b333['endOffset']):void 0x0,{startOffset:_0x45b5c7,endOffset:_0x4b9c63}=_0x577198?_0x33b333:ye(_0x1229e1,_0x427ce0[_0x154c42(0x17f)],_0x427ce0[_0x154c42(0x197)]),_0x28a8c5=Se(_0x1229e1,_0x45b5c7,_0x4b9c63),_0x255003=(_0x1c09ca=_0x577198==null?void 0x0:_0x577198[_0x154c42(0x1bb)])==null?_0x427ce0[_0x154c42(0x1bb)]:_0x1c09ca,_0x488e14=T(_0x427ce0[_0x154c42(0x19a)],_0x255003,{...S,..._0x427ce0[_0x154c42(0x160)]});if(_0x577198)return _0x577198['blockType']=_0x551e20[_0x154c42(0x1c3)],oe(_0x1229e1,_0x45b5c7,_0x4b9c63),he(_0x1229e1,_0x45b5c7,_0x4b9c63,_0x28a8c5),M(_0x1229e1,_0x577198),{'nextDocumentData':_0x41bf6f,'nextMetadata':_0x488e14,'cursorOffset':_0x45b5c7+0x1};if(_0x45b5c7===_0x4b9c63){var _0x1a88b0,_0x534fb6;let _0x28a35e=''+_0x1a5d93['BLOCK_START']+_0x1a5d93[_0x154c42(0x15c)]+_0x1a5d93[_0x154c42(0x192)];N(_0x1229e1,_0x45b5c7,_0x28a35e,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x45f844(new Set((_0x1a88b0=_0x1229e1['paragraphs'])==null?void 0x0:_0x1a88b0[_0x154c42(0x1ac)](_0x2cd807=>_0x2cd807[_0x154c42(0x14e)]))),'paragraphStyle':E(!0x0,!0x0,_0x28a8c5)}],'blockRanges':[{'blockId':_0x255003,'blockType':_0x551e20[_0x154c42(0x1c3)],'startIndex':0x0,'endIndex':_0x28a35e[_0x154c42(0x145)]-0x1}]});let _0x2e2a14=(_0x534fb6=_0x1229e1[_0x154c42(0x16c)])==null?void 0x0:_0x534fb6[_0x154c42(0x189)](_0x333fa1=>_0x333fa1[_0x154c42(0x1bb)]===_0x255003);return _0x2e2a14&&M(_0x1229e1,_0x2e2a14),{'nextDocumentData':_0x41bf6f,'nextMetadata':_0x488e14,'cursorOffset':_0x45b5c7+0x1};}N(_0x1229e1,_0x4b9c63,_0x1a5d93[_0x154c42(0x192)]),N(_0x1229e1,_0x45b5c7,_0x1a5d93[_0x154c42(0x162)]),he(_0x1229e1,_0x45b5c7,_0x4b9c63+0x1,_0x28a8c5);let _0x3212a2={'blockId':_0x255003,'blockType':_0x551e20['CODE'],'startIndex':_0x45b5c7,'endIndex':_0x4b9c63+0x1};return _0x1229e1[_0x154c42(0x16c)]=[...(_0x47ef39=_0x1229e1[_0x154c42(0x16c)])==null?[]:_0x47ef39,_0x3212a2]['sort']((_0xa7e87d,_0x46cff9)=>_0xa7e87d[_0x154c42(0x185)]-_0x46cff9['startIndex']),M(_0x1229e1,_0x3212a2),{'nextDocumentData':_0x41bf6f,'nextMetadata':_0x488e14,'cursorOffset':_0x45b5c7+0x1};}function oe(_0x3fc3d8,_0x293c22,_0x550a63){const _0x1ad537=_0x3ac352;var _0x48deb6;((_0x48deb6=_0x3fc3d8[_0x1ad537(0x1aa)])==null?[]:_0x48deb6)[_0x1ad537(0x193)](_0x5d27e1=>_0x5d27e1[_0x1ad537(0x185)]>_0x293c22&&_0x5d27e1[_0x1ad537(0x185)]<_0x550a63)[_0x1ad537(0x1a8)](_0x4d0ff9=>{const _0x108b48=_0x1ad537;var _0x2770d2;let _0x3145bd={...(_0x2770d2=_0x4d0ff9['paragraphStyle'])==null?{}:_0x2770d2};delete _0x3145bd['spaceAbove'],delete _0x3145bd[_0x108b48(0x1b7)],_0x4d0ff9[_0x108b48(0x18f)]=_0x3145bd;});}function se(_0x593f2e,_0x42d40b){const _0x158ec9=_0x3ac352;return _0x593f2e==null||_0x42d40b==null||_0x593f2e===_0x42d40b?null:{'startOffset':Math[_0x158ec9(0x1c1)](_0x593f2e,_0x42d40b),'endOffset':Math[_0x158ec9(0x14d)](_0x593f2e,_0x42d40b)};}function ce(_0xd4784b){const _0x27dd02=_0x3ac352;return{'nextDocumentData':D(_0xd4784b[_0x27dd02(0x17a)]),'nextMetadata':T(_0xd4784b['metadata'],_0xd4784b[_0x27dd02(0x1bb)],_0xd4784b[_0x27dd02(0x160)]),'cursorOffset':0x0};}function le(_0x27a678){const _0x5be932=_0x3ac352;var _0x11c7b0,_0xab1dd1;let _0x3bd507=D(_0x27a678[_0x5be932(0x17a)]),_0xc12786=O(_0x3bd507),_0x5667cc=me(_0xc12786,_0x27a678[_0x5be932(0x14c)]);if(!_0x5667cc)return null;let _0x123186=_e(_0xc12786,_0x5667cc),_0x38903a=_0x123186[_0x123186[_0x5be932(0x145)]-0x1];if(!_0x38903a||!ve(_0xc12786,_0x5667cc,_0x38903a)||_0x27a678[_0x5be932(0x14c)]<_0x38903a[_0x5be932(0x185)])return null;let _0x445a60=A(_0xc12786,_0x5667cc,_0x38903a);if(_0x445a60>=_0x5667cc[_0x5be932(0x19c)])return null;_0xc12786[_0x5be932(0x165)]=[_0xc12786['dataStream'][_0x5be932(0x1b6)](0x0,_0x445a60),_0x1a5d93[_0x5be932(0x192)],_0xc12786[_0x5be932(0x165)][_0x5be932(0x1b6)](_0x445a60,_0x5667cc[_0x5be932(0x19c)]),_0xc12786['dataStream'][_0x5be932(0x1b6)](_0x5667cc['endIndex']+0x1)]['join'](''),R(_0xc12786[_0x5be932(0x1aa)],_0x445a60,_0x5667cc[_0x5be932(0x19c)],0x1),R(_0xc12786['sectionBreaks'],_0x445a60,_0x5667cc['endIndex'],0x1),R(_0xc12786[_0x5be932(0x141)],_0x445a60,_0x5667cc['endIndex'],0x1),ke(_0xc12786[_0x5be932(0x16d)],_0x445a60,_0x5667cc[_0x5be932(0x19c)],0x1),z(_0xc12786[_0x5be932(0x1b2)],_0x445a60,_0x5667cc['endIndex'],0x1),z(_0xc12786[_0x5be932(0x150)],_0x445a60,_0x5667cc[_0x5be932(0x19c)],0x1),z(_0xc12786['customDecorations'],_0x445a60,_0x5667cc[_0x5be932(0x19c)],0x1),(_0x11c7b0=_0xc12786['blockRanges'])==null||_0x11c7b0['forEach'](_0x518351=>{const _0x18b0d7=_0x5be932;_0x518351===_0x5667cc||_0x518351[_0x18b0d7(0x1bb)]===_0x5667cc[_0x18b0d7(0x1bb)]?_0x518351['endIndex']=_0x445a60:_0x518351[_0x18b0d7(0x185)]>=_0x445a60&&_0x518351['startIndex']<_0x5667cc[_0x18b0d7(0x19c)]&&(_0x518351[_0x18b0d7(0x185)]+=0x1,_0x518351[_0x18b0d7(0x19c)]+=0x1);});let _0x5bc08a=_e(_0xc12786,{..._0x5667cc,'endIndex':_0x445a60});_0x5bc08a[_0x5be932(0x1a8)]((_0x328a17,_0x4c643d)=>{const _0x128988=_0x5be932;var _0x2b06d4;_0x328a17[_0x128988(0x18f)]={...(_0x2b06d4=_0x328a17[_0x128988(0x18f)])==null?{}:_0x2b06d4,...E(_0x4c643d===0x0,_0x4c643d===_0x5bc08a[_0x128988(0x145)]-0x1)};});let _0x58211c=(_0xab1dd1=_0xc12786[_0x5be932(0x1aa)])==null?void 0x0:_0xab1dd1[_0x5be932(0x189)](_0x3a8994=>_0x3a8994[_0x5be932(0x185)]===_0x445a60+0x1);return _0x58211c&&(_0x58211c['paragraphStyle']=ge(_0x58211c['paragraphStyle'])),{'nextDocumentData':_0x3bd507,'cursorOffset':_0x445a60+0x1};}function ue(_0xde21db){const _0x406b71=_0x3ac352;let _0x335435=D(_0xde21db[_0x406b71(0x17a)]),_0x345c40=O(_0x335435),_0x27b257=me(_0x345c40,_0xde21db['cursorOffset']);return _0x27b257&&de(_0x335435,_0x345c40,_0x27b257,_0xde21db[_0x406b71(0x14c)],_0xde21db[_0x406b71(0x163)])||null;}function de(_0x1c95fa,_0xcf7b2a,_0x2418d6,_0x305894,_0x58b364){const _0xfb10e7=_0x3ac352;let _0x1e3077=we(_0xcf7b2a,_0x2418d6,_0x305894,_0x58b364);if(!_0x1e3077)return null;let _0x32d2cb=_0x1e3077[_0xfb10e7(0x168)]-0x1;return Te(_0xcf7b2a,_0x1e3077[_0xfb10e7(0x175)]['startIndex'],_0x1e3077[_0xfb10e7(0x175)][_0xfb10e7(0x185)]+0x1),{'nextDocumentData':_0x1c95fa,'cursorOffset':_0x32d2cb};}function fe(_0x5aa7b9,_0x462683){const _0x124180=_0x3ac352;var _0x21dc3e;return _0x5aa7b9==null||(_0x21dc3e=_0x5aa7b9[_0x124180(0x16c)])==null?void 0x0:_0x21dc3e[_0x124180(0x189)](_0xfc4a4c=>_0xfc4a4c[_0x124180(0x15a)]===_0x551e20[_0x124180(0x1c3)]&&_0xfc4a4c['startIndex']<=_0x462683&&_0x462683<=_0xfc4a4c[_0x124180(0x19c)]);}function pe(_0xe01713){const _0x58c530=_0x3ac352;var _0x5551c6;let _0x1034f4=_0xe01713[_0x58c530(0x17a)][_0x58c530(0x1ba)];if(!_0x1034f4)return!0x1;let _0x3e00a9=_0xe01713[_0x58c530(0x1c0)]==='left'?_0xe01713[_0x58c530(0x14c)]-0x1:_0xe01713[_0x58c530(0x14c)],_0xe9f3eb=_0xe01713['direction']===_0x58c530(0x14a)?_0xe01713['cursorOffset']+0x1:_0x3e00a9;return((_0x5551c6=_0x1034f4[_0x58c530(0x16c)])==null?[]:_0x5551c6)[_0x58c530(0x178)](_0x4fd55a=>_0x4fd55a[_0x58c530(0x15a)]===_0x551e20['CODE']?_0x3e00a9===_0x4fd55a[_0x58c530(0x185)]||_0x3e00a9===_0x4fd55a[_0x58c530(0x19c)]||_0xe9f3eb===_0x4fd55a['startIndex']||_0xe9f3eb===_0x4fd55a[_0x58c530(0x19c)]:!0x1);}function me(_0x24de60,_0x30b607){const _0x38fa61=_0x3ac352;var _0x3803cd;return(_0x3803cd=_0x24de60[_0x38fa61(0x16c)])==null?void 0x0:_0x3803cd[_0x38fa61(0x189)](_0x113160=>{const _0x1ca423=_0x38fa61;let _0x289767=j(_0x24de60,_0x113160);return _0x113160[_0x1ca423(0x15a)]===_0x551e20['CODE']&&_0x113160['startIndex']<=_0x30b607&&_0x30b607<=_0x289767+0x2;});}function E(_0x27bb4e,_0x3046b4,_0x57e5ec=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x27bb4e&&_0x57e5ec?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ie,'fs':0xc}};}function he(_0x3925c8,_0x3ae598,_0x495412,_0x11329f=!0x1){const _0x5f2ccb=_0x3ac352;var _0x4f1ed8;let _0x71f771=((_0x4f1ed8=_0x3925c8[_0x5f2ccb(0x1aa)])==null?[]:_0x4f1ed8)[_0x5f2ccb(0x193)](_0x807b4e=>_0x807b4e[_0x5f2ccb(0x185)]>_0x3ae598&&_0x807b4e['startIndex']<_0x495412);_0x71f771[_0x5f2ccb(0x1a8)]((_0x5f3004,_0x2935ea)=>{const _0x163018=_0x5f2ccb;var _0x350562;_0x5f3004[_0x163018(0x18f)]={...(_0x350562=_0x5f3004[_0x163018(0x18f)])==null?{}:_0x350562,...E(_0x2935ea===0x0,_0x2935ea===_0x71f771[_0x163018(0x145)]-0x1,_0x11329f)};});}function ge(_0x301d92){const _0x4cfd9e=_0x3ac352;var _0x57f48f,_0x1ea57f;let _0x33a42f={..._0x301d92==null?{}:_0x301d92};return delete _0x33a42f[_0x4cfd9e(0x161)],delete _0x33a42f[_0x4cfd9e(0x18d)],delete _0x33a42f['spaceAbove'],delete _0x33a42f['spaceBelow'],((_0x57f48f=_0x33a42f[_0x4cfd9e(0x1a7)])==null?void 0x0:_0x57f48f['ff'])===ie&&((_0x1ea57f=_0x33a42f[_0x4cfd9e(0x1a7)])==null?void 0x0:_0x1ea57f['fs'])===0xc&&delete _0x33a42f[_0x4cfd9e(0x1a7)],_0x33a42f;}function _e(_0x27322d,_0x1bb9bc){const _0x4163dc=_0x3ac352;var _0x102fd6;let _0x3ae480=j(_0x27322d,_0x1bb9bc);return((_0x102fd6=_0x27322d['paragraphs'])==null?[]:_0x102fd6)['filter'](_0x528ff8=>_0x528ff8[_0x4163dc(0x185)]>_0x1bb9bc['startIndex']&&_0x528ff8[_0x4163dc(0x185)]<_0x3ae480);}function ve(_0x4844c6,_0x395b9b,_0x3de151){const _0x294df0=_0x3ac352;let _0x383798=A(_0x4844c6,_0x395b9b,_0x3de151),_0x3da265=_0x4844c6[_0x294df0(0x165)][_0x294df0(0x1b6)](_0x383798,_0x3de151['startIndex']);return Array[_0x294df0(0x1bc)](_0x3da265)['every'](_0xec22a5=>_0xec22a5===_0x1a5d93[_0x294df0(0x162)]||_0xec22a5===_0x1a5d93[_0x294df0(0x192)]);}function D(_0x25ff87){const _0x159e55=_0x3ac352;return _0x37bcba[_0x159e55(0x18b)](_0x25ff87);}function O(_0x28b206){const _0x2e3b9a=_0x3ac352;if(!_0x28b206[_0x2e3b9a(0x1ba)])throw Error(_0x2e3b9a(0x158));return _0x28b206[_0x2e3b9a(0x1ba)];}function ye(_0x46454a,_0xabcbb6,_0x2312df){const _0x35570f=_0x3ac352;if(_0xabcbb6==null||_0x2312df==null){let _0x26b8c6=xe(_0x46454a);return{'startOffset':_0x26b8c6,'endOffset':_0x26b8c6};}let _0x134547=Math[_0x35570f(0x1c1)](_0xabcbb6,_0x2312df),_0x34b196=Math[_0x35570f(0x14d)](_0xabcbb6,_0x2312df);if(_0x134547===_0x34b196){let _0x345f89=be(_0x46454a,_0x134547);return{'startOffset':_0x345f89,'endOffset':_0x345f89};}return Ce(_0x46454a,_0x134547,_0x34b196);}function be(_0x11b9c0,_0x23775c){const _0x30842b=_0x3ac352;return _0x23775c===0x0&&_0x11b9c0[_0x30842b(0x165)][0x0]===_0x1a5d93['PARAGRAPH']?0x1:_0x23775c;}function xe(_0x1b4274){const _0x4095d8=_0x3ac352;return _0x1b4274['dataStream'][_0x4095d8(0x17b)](_0x1a5d93[_0x4095d8(0x194)])?Math[_0x4095d8(0x14d)](0x0,_0x1b4274[_0x4095d8(0x165)][_0x4095d8(0x145)]-0x1):_0x1b4274['dataStream'][_0x4095d8(0x145)];}function Se(_0x50c9fa,_0x3a3da3,_0x39e559){const _0xb86f1f=_0x3ac352;var _0x44989e;let _0x5a50da=Math[_0xb86f1f(0x1c1)](_0x3a3da3,_0x39e559),_0x56102b=Math[_0xb86f1f(0x14d)](_0x3a3da3,_0x39e559);return!!((_0x44989e=_0x50c9fa[_0xb86f1f(0x1b2)])!=null&&_0x44989e[_0xb86f1f(0x178)](_0x3e73d0=>_0x5a50da>_0x3e73d0[_0xb86f1f(0x185)]&&_0x5a50da<_0x3e73d0[_0xb86f1f(0x19c)]||_0x56102b>_0x3e73d0['startIndex']&&_0x56102b<_0x3e73d0[_0xb86f1f(0x19c)]||_0x5a50da<=_0x3e73d0[_0xb86f1f(0x185)]&&_0x56102b>=_0x3e73d0[_0xb86f1f(0x19c)]));}function Ce(_0x3dbf16,_0x5d8613,_0x335a51){const _0x2745ec=_0x3ac352;var _0x46eca0,_0x5274ed;let _0x48e0c5=[...(_0x46eca0=_0x3dbf16[_0x2745ec(0x1aa)])==null?[]:_0x46eca0]['sort']((_0x2cbcfc,_0x1add98)=>_0x2cbcfc['startIndex']-_0x1add98[_0x2745ec(0x185)]),_0x5ed461=_0x48e0c5[_0x2745ec(0x189)]((_0x2028fa,_0x1fe15c)=>(_0x1fe15c===0x0?0x0:_0x48e0c5[_0x1fe15c-0x1][_0x2745ec(0x185)]+0x1)<=_0x5d8613&&_0x5d8613<=_0x2028fa[_0x2745ec(0x185)]),_0x2b8e43=(_0x5274ed=_0x48e0c5[_0x2745ec(0x189)](_0x5b8197=>_0x5b8197[_0x2745ec(0x185)]>=_0x335a51-0x1))==null?_0x48e0c5[_0x48e0c5[_0x2745ec(0x145)]-0x1]:_0x5274ed;return{'startOffset':_0x5ed461?k(_0x48e0c5,_0x5ed461):_0x5d8613,'endOffset':_0x2b8e43?_0x2b8e43[_0x2745ec(0x185)]+0x1:_0x335a51};}function k(_0xffd5f2,_0x75e9b3){const _0x36b785=_0x3ac352;let _0x140c81=_0xffd5f2[_0x36b785(0x14b)](_0x75e9b3);return _0x140c81>0x0?_0xffd5f2[_0x140c81-0x1][_0x36b785(0x185)]+0x1:0x0;}function A(_0x59e394,_0x13b8da,_0x43f4cc){const _0x3bb123=_0x3ac352;var _0xc2a70;return Math[_0x3bb123(0x14d)](k((_0xc2a70=_0x59e394[_0x3bb123(0x1aa)])==null?[]:_0xc2a70,_0x43f4cc),_0x13b8da[_0x3bb123(0x185)]+0x1);}function j(_0x3f9978,_0x4f4663){const _0x3ebd97=_0x3ac352;return _0x3f9978[_0x3ebd97(0x165)][_0x4f4663['endIndex']]===_0x1a5d93[_0x3ebd97(0x192)]?_0x4f4663[_0x3ebd97(0x19c)]:_0x3f9978[_0x3ebd97(0x165)][_0x4f4663[_0x3ebd97(0x19c)]+0x1]===_0x1a5d93['BLOCK_END']?_0x4f4663[_0x3ebd97(0x19c)]+0x1:_0x4f4663[_0x3ebd97(0x19c)];}function we(_0x27cac8,_0x3eb591,_0x44d1ae,_0x11e6f9){const _0x3378ff=_0x3ac352;var _0x33d44b,_0x18e99d;let _0x3b492d=j(_0x27cac8,_0x3eb591),_0x271b28=((_0x33d44b=_0x27cac8[_0x3378ff(0x1aa)])==null?[]:_0x33d44b)[_0x3378ff(0x189)](_0x55fb8a=>_0x55fb8a[_0x3378ff(0x185)]===_0x3b492d+0x1);if(!_0x271b28||_0x11e6f9!=null&&_0x271b28[_0x3378ff(0x185)]!==_0x11e6f9||_0x44d1ae<_0x3b492d||_0x44d1ae>_0x271b28['startIndex']+0x1||_0x27cac8[_0x3378ff(0x165)][_0x271b28['startIndex']]!==_0x1a5d93[_0x3378ff(0x15c)])return null;let _0x301329=k((_0x18e99d=_0x27cac8[_0x3378ff(0x1aa)])==null?[]:_0x18e99d,_0x271b28),_0x263691=_0x27cac8[_0x3378ff(0x165)][_0x3378ff(0x1b6)](_0x301329,_0x271b28['startIndex']);return Array[_0x3378ff(0x1bc)](_0x263691)['every'](_0x59a16b=>_0x59a16b===_0x1a5d93['BLOCK_END'])?{'paragraph':_0x271b28,'endTokenOffset':_0x3b492d}:null;}function M(_0x4eff9d,_0x56ba4c){const _0x1997d7=_0x3ac352;var _0x861f51;let _0x411c8e=j(_0x4eff9d,_0x56ba4c),_0x3ef51e=_0x4eff9d[_0x1997d7(0x165)][_0x411c8e+0x1];_0x3ef51e!==_0x1a5d93[_0x1997d7(0x194)]&&_0x3ef51e!==void 0x0||N(_0x4eff9d,_0x411c8e+0x1,_0x1a5d93[_0x1997d7(0x15c)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x45f844(new Set((_0x861f51=_0x4eff9d[_0x1997d7(0x1aa)])==null?void 0x0:_0x861f51[_0x1997d7(0x1ac)](_0x45ddc7=>_0x45ddc7['paragraphId'])))}]});}function N(_0x4a2d76,_0x20e055,_0x3dbcb6,_0x17d2bf={}){const _0x3d90fd=_0x3ac352;var _0x17e8b3,_0x13c105;if(_0x3dbcb6){if(_0x4a2d76[_0x3d90fd(0x165)]=''+_0x4a2d76[_0x3d90fd(0x165)]['slice'](0x0,_0x20e055)+_0x3dbcb6+_0x4a2d76[_0x3d90fd(0x165)][_0x3d90fd(0x1b6)](_0x20e055),Ee(_0x4a2d76,_0x20e055,_0x3dbcb6['length']),(_0x17e8b3=_0x17d2bf[_0x3d90fd(0x1aa)])!=null&&_0x17e8b3[_0x3d90fd(0x145)]){var _0x272c40;_0x4a2d76[_0x3d90fd(0x1aa)]=[...(_0x272c40=_0x4a2d76[_0x3d90fd(0x1aa)])==null?[]:_0x272c40,..._0x17d2bf[_0x3d90fd(0x1aa)][_0x3d90fd(0x1ac)](_0x428cdc=>({..._0x428cdc,'startIndex':_0x428cdc[_0x3d90fd(0x185)]+_0x20e055}))][_0x3d90fd(0x1a6)]((_0x17537d,_0xa4d9d3)=>_0x17537d['startIndex']-_0xa4d9d3['startIndex']);}if((_0x13c105=_0x17d2bf[_0x3d90fd(0x16c)])!=null&&_0x13c105[_0x3d90fd(0x145)]){var _0x54d54a;_0x4a2d76['blockRanges']=[...(_0x54d54a=_0x4a2d76[_0x3d90fd(0x16c)])==null?[]:_0x54d54a,..._0x17d2bf[_0x3d90fd(0x16c)][_0x3d90fd(0x1ac)](_0x31d198=>({..._0x31d198,'startIndex':_0x31d198['startIndex']+_0x20e055,'endIndex':_0x31d198['endIndex']+_0x20e055}))]['sort']((_0x3b08c6,_0x2660b8)=>_0x3b08c6[_0x3d90fd(0x185)]-_0x2660b8[_0x3d90fd(0x185)]);}}}function _0x13c3(_0x8948fa,_0x5a2af3){_0x8948fa=_0x8948fa-0x141;const _0x3e258b=_0x3e25();let _0x13c3f8=_0x3e258b[_0x8948fa];return _0x13c3f8;}function Te(_0x54b552,_0x38bd80,_0x3a7c87){const _0x244414=_0x3ac352;let _0x324f1b=_0x3a7c87-_0x38bd80;_0x54b552[_0x244414(0x165)]=''+_0x54b552[_0x244414(0x165)][_0x244414(0x1b6)](0x0,_0x38bd80)+_0x54b552[_0x244414(0x165)][_0x244414(0x1b6)](_0x3a7c87),De(_0x54b552,_0x38bd80,_0x324f1b);}function Ee(_0x55e5af,_0x7331b0,_0x1aa801){const _0x534254=_0x3ac352;_0x55e5af['paragraphs']=P(_0x55e5af[_0x534254(0x1aa)],_0x7331b0,_0x1aa801),_0x55e5af['sectionBreaks']=P(_0x55e5af[_0x534254(0x1ae)],_0x7331b0,_0x1aa801),_0x55e5af[_0x534254(0x141)]=P(_0x55e5af[_0x534254(0x141)],_0x7331b0,_0x1aa801),_0x55e5af['textRuns']=Oe(_0x55e5af[_0x534254(0x16d)],_0x7331b0,_0x1aa801),_0x55e5af[_0x534254(0x1b2)]=I(_0x55e5af[_0x534254(0x1b2)],_0x7331b0,_0x1aa801),_0x55e5af[_0x534254(0x150)]=I(_0x55e5af['customRanges'],_0x7331b0,_0x1aa801),_0x55e5af[_0x534254(0x146)]=I(_0x55e5af['customDecorations'],_0x7331b0,_0x1aa801),_0x55e5af[_0x534254(0x16c)]=I(_0x55e5af[_0x534254(0x16c)],_0x7331b0,_0x1aa801);}function De(_0x4ba812,_0x4e7456,_0x25b895){const _0x3a422d=_0x3ac352;var _0x4aa353,_0x1b7534;_0x4ba812[_0x3a422d(0x1aa)]=F(_0x4ba812[_0x3a422d(0x1aa)],_0x4e7456,_0x25b895),_0x4ba812[_0x3a422d(0x1ae)]=F(_0x4ba812[_0x3a422d(0x1ae)],_0x4e7456,_0x25b895),_0x4ba812[_0x3a422d(0x141)]=F(_0x4ba812[_0x3a422d(0x141)],_0x4e7456,_0x25b895),_0x4ba812[_0x3a422d(0x16d)]=(_0x4aa353=L((_0x1b7534=_0x4ba812[_0x3a422d(0x16d)])==null?void 0x0:_0x1b7534[_0x3a422d(0x1ac)](_0x581e9a=>({..._0x581e9a,'startIndex':_0x581e9a['st'],'endIndex':_0x581e9a['ed']})),_0x4e7456,_0x25b895))==null?void 0x0:_0x4aa353['map'](_0x416956=>{let {startIndex:_0x541c0e,endIndex:_0x5571b8,..._0x149db2}=_0x416956;return{..._0x149db2,'st':_0x541c0e,'ed':_0x5571b8};}),_0x4ba812[_0x3a422d(0x1b2)]=L(_0x4ba812['tables'],_0x4e7456,_0x25b895),_0x4ba812[_0x3a422d(0x150)]=L(_0x4ba812[_0x3a422d(0x150)],_0x4e7456,_0x25b895),_0x4ba812[_0x3a422d(0x146)]=L(_0x4ba812[_0x3a422d(0x146)],_0x4e7456,_0x25b895),_0x4ba812[_0x3a422d(0x16c)]=L(_0x4ba812[_0x3a422d(0x16c)],_0x4e7456,_0x25b895);}function P(_0x157af9,_0x3a4e85,_0x517163){const _0x5f10e7=_0x3ac352;return _0x157af9==null?void 0x0:_0x157af9[_0x5f10e7(0x1ac)](_0x55e7d1=>_0x55e7d1['startIndex']>=_0x3a4e85?{..._0x55e7d1,'startIndex':_0x55e7d1[_0x5f10e7(0x185)]+_0x517163}:_0x55e7d1);}function F(_0x203501,_0x24e435,_0x13dc06){const _0x5cd69c=_0x3ac352;let _0x2caecb=_0x24e435+_0x13dc06;return _0x203501==null?void 0x0:_0x203501[_0x5cd69c(0x1ac)](_0x5d5149=>_0x5d5149[_0x5cd69c(0x185)]>=_0x24e435&&_0x5d5149['startIndex']<_0x2caecb?null:_0x5d5149['startIndex']>=_0x2caecb?{..._0x5d5149,'startIndex':_0x5d5149['startIndex']-_0x13dc06}:_0x5d5149)['filter'](_0x107d32=>_0x107d32!=null);}function Oe(_0x232e1a,_0x5147b1,_0x5d31e6){const _0x214300=_0x3ac352;return _0x232e1a==null?void 0x0:_0x232e1a[_0x214300(0x1ac)](_0x5357af=>_0x5357af['st']>=_0x5147b1?{..._0x5357af,'st':_0x5357af['st']+_0x5d31e6,'ed':_0x5357af['ed']+_0x5d31e6}:_0x5357af['ed']>_0x5147b1?{..._0x5357af,'ed':_0x5357af['ed']+_0x5d31e6}:_0x5357af);}function I(_0x564077,_0x25bd57,_0x23c9de){const _0x1acd5d=_0x3ac352;return _0x564077==null?void 0x0:_0x564077[_0x1acd5d(0x1ac)](_0x49aab0=>_0x49aab0[_0x1acd5d(0x185)]>=_0x25bd57?{..._0x49aab0,'startIndex':_0x49aab0[_0x1acd5d(0x185)]+_0x23c9de,'endIndex':_0x49aab0[_0x1acd5d(0x19c)]+_0x23c9de}:_0x49aab0[_0x1acd5d(0x19c)]>=_0x25bd57?{..._0x49aab0,'endIndex':_0x49aab0[_0x1acd5d(0x19c)]+_0x23c9de}:_0x49aab0);}function L(_0x27ce0e,_0x108759,_0x562959){const _0x2bb38b=_0x3ac352;let _0x272320=_0x108759+_0x562959;return _0x27ce0e==null?void 0x0:_0x27ce0e[_0x2bb38b(0x1ac)](_0x19210f=>_0x19210f[_0x2bb38b(0x185)]>=_0x108759&&_0x19210f[_0x2bb38b(0x19c)]<_0x272320?null:_0x19210f[_0x2bb38b(0x185)]>=_0x272320?{..._0x19210f,'startIndex':_0x19210f[_0x2bb38b(0x185)]-_0x562959,'endIndex':_0x19210f['endIndex']-_0x562959}:_0x19210f[_0x2bb38b(0x19c)]>=_0x108759?{..._0x19210f,'startIndex':_0x19210f['startIndex']<_0x108759?_0x19210f[_0x2bb38b(0x185)]:_0x108759,'endIndex':Math[_0x2bb38b(0x14d)](_0x108759,_0x19210f['endIndex']-_0x562959)}:_0x19210f)[_0x2bb38b(0x193)](_0x10d905=>_0x10d905!=null);}function R(_0x158a77,_0x32fea2,_0x4bf318,_0x1d5375){const _0x57128e=_0x3ac352;_0x158a77==null||_0x158a77[_0x57128e(0x1a8)](_0x327a29=>{const _0x5c0e4b=_0x57128e;_0x327a29[_0x5c0e4b(0x185)]>=_0x32fea2&&_0x327a29[_0x5c0e4b(0x185)]<_0x4bf318&&(_0x327a29[_0x5c0e4b(0x185)]+=_0x1d5375);});}function ke(_0x137591,_0x143ff5,_0x4b6693,_0x26ae7e){const _0x2eee16=_0x3ac352;_0x137591==null||_0x137591[_0x2eee16(0x1a8)](_0x3c24ab=>{_0x3c24ab['st']>=_0x143ff5&&_0x3c24ab['st']<_0x4b6693?(_0x3c24ab['st']+=_0x26ae7e,_0x3c24ab['ed']+=_0x26ae7e):_0x3c24ab['ed']>_0x143ff5&&_0x3c24ab['ed']<_0x4b6693&&(_0x3c24ab['ed']+=_0x26ae7e);});}function z(_0x36a3c1,_0x446bc3,_0x4293cb,_0x551a6d){const _0x113fd4=_0x3ac352;_0x36a3c1==null||_0x36a3c1[_0x113fd4(0x1a8)](_0x31f495=>{const _0x240f76=_0x113fd4;_0x31f495['startIndex']>=_0x446bc3&&_0x31f495[_0x240f76(0x185)]<_0x4293cb?(_0x31f495[_0x240f76(0x185)]+=_0x551a6d,_0x31f495[_0x240f76(0x19c)]+=_0x551a6d):_0x31f495[_0x240f76(0x19c)]>_0x446bc3&&_0x31f495[_0x240f76(0x19c)]<_0x4293cb&&(_0x31f495['endIndex']+=_0x551a6d);});}function B(_0x331ce7){'@babel/helpers - typeof';const _0x4fdd6e=_0x3ac352;return B=typeof Symbol==_0x4fdd6e(0x191)&&typeof Symbol[_0x4fdd6e(0x147)]==_0x4fdd6e(0x16b)?function(_0x1a49cc){return typeof _0x1a49cc;}:function(_0xc1d66f){const _0x540585=_0x4fdd6e;return _0xc1d66f&&typeof Symbol==_0x540585(0x191)&&_0xc1d66f[_0x540585(0x199)]===Symbol&&_0xc1d66f!==Symbol['prototype']?_0x540585(0x16b):typeof _0xc1d66f;},B(_0x331ce7);}function Ae(_0x2207ea,_0x1f7274){const _0xf12adb=_0x3ac352;if(B(_0x2207ea)!='object'||!_0x2207ea)return _0x2207ea;var _0x4dff3c=_0x2207ea[Symbol[_0xf12adb(0x1b8)]];if(_0x4dff3c!==void 0x0){var _0x121f14=_0x4dff3c[_0xf12adb(0x1b5)](_0x2207ea,_0x1f7274||_0xf12adb(0x16e));if(B(_0x121f14)!=_0xf12adb(0x18e))return _0x121f14;throw TypeError(_0xf12adb(0x159));}return(_0x1f7274===_0xf12adb(0x171)?String:Number)(_0x2207ea);}function je(_0x57ca06){const _0x35e018=_0x3ac352;var _0x54a164=Ae(_0x57ca06,_0x35e018(0x171));return B(_0x54a164)=='symbol'?_0x54a164:_0x54a164+'';}function _0x3e25(){const _0x4638e0=['SECTION_BREAK','onStarting','javascript','endOffset','_injector','constructor','metadata','docs-code.command.cancel-empty-paragraph','endIndex','next','_change$','syncExecuteCommand','_setResource','nextDocumentData','2416HlmlVv','6455aTbgWa','4940792gBQlJY','compose','sort','textStyle','forEach','unitId','paragraphs','model','map','@univerjs-pro/docs-code','sectionBreaks','asObservable','_config','dispose','tables','decorate','get','call','slice','spaceBelow','toPrimitive','consumeInsertRange','body','blockId','from','disposeWithMe','0.25.0-insiders.20260618-d756bd0','39672479LjqxhT','direction','min','getSnapshot','CODE','complete','getTextRanges','deserialize','customBlocks','_commandService','removeUnit','reduce','length','customDecorations','iterator','add','_docsCodeModel','right','indexOf','cursorOffset','max','paragraphId','fromEntries','customRanges','monospace','7ZGPSJB','docs-code.command.insert-below','setCodeConfig','serialize','_resourceManagerService','4130950wCWTkv','Document\x20body\x20is\x20required','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','blockType','_initResource','PARAGRAPH','UNIVER_DOC','previousDocumentData','docs-code.config','config','indentEnd','BLOCK_START','paragraphStartIndex','registerCommand','dataStream','entries','60158LBhrCr','endTokenOffset','448344QJDJUo','docs-code.command.insert','symbol','blockRanges','textRuns','default','COMMAND','getUniverDocInstance','string','DOC_CODE_PLUGIN','parse','set','paragraph','codes','getInstance','some','getOwnPropertyDescriptor','documentData','endsWith','41OAqbve','955494csjmMS','27JPqQGI','startOffset','getCurrentUnitOfType','diffValue','_resources','range','delete','startIndex','docs-code.command.update','defineProperty','getUnitId','find','nextMetadata','deepClone','commandService','indentStart','object','paragraphStyle','clear','function','BLOCK_END','filter'];_0x3e25=function(){return _0x4638e0;};return _0x3e25();}function V(_0x2dfea7,_0x3a2ec0,_0x39abdb){const _0x3e7066=_0x3ac352;return(_0x3a2ec0=je(_0x3a2ec0))in _0x2dfea7?Object[_0x3e7066(0x187)](_0x2dfea7,_0x3a2ec0,{'value':_0x39abdb,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2dfea7[_0x3a2ec0]=_0x39abdb,_0x2dfea7;}var H=class extends _0x17af83{constructor(..._0x3f3a1d){const _0x3a5850=_0x3ac352;super(..._0x3f3a1d),V(this,'_resources',new Map()),V(this,_0x3a5850(0x19e),new _0x43de51()),V(this,'change$',this[_0x3a5850(0x19e)][_0x3a5850(0x1af)]());}['getCodeConfig'](_0x346a8b,_0xa46d98){const _0x3019df=_0x3ac352;return w(this[_0x3019df(0x182)]['get'](_0x346a8b))[_0x3019df(0x176)][_0xa46d98];}[_0x3ac352(0x154)](_0xe62832,_0x4cf88d,_0x16af60){const _0x138236=_0x3ac352;this[_0x138236(0x1a0)](_0xe62832,_0x4cf88d,T(this[_0x138236(0x182)][_0x138236(0x1b4)](_0xe62832),_0x4cf88d,_0x16af60));}['removeCode'](_0x58f94a,_0x152230){const _0x522a06=_0x3ac352;this[_0x522a06(0x1a0)](_0x58f94a,_0x152230,re(this[_0x522a06(0x182)]['get'](_0x58f94a),_0x152230));}[_0x3ac352(0x155)](_0x3e6944){const _0x522b6f=_0x3ac352;return w(this[_0x522b6f(0x182)][_0x522b6f(0x1b4)](_0x3e6944));}[_0x3ac352(0x1c6)](_0x56cff5,_0x50666a){const _0x1b0116=_0x3ac352;this[_0x1b0116(0x182)][_0x1b0116(0x174)](_0x56cff5,w(_0x50666a)),this[_0x1b0116(0x19e)][_0x1b0116(0x19d)]({'unitId':_0x56cff5});}[_0x3ac352(0x143)](_0x5dfe57){const _0x22b373=_0x3ac352;this[_0x22b373(0x182)][_0x22b373(0x184)](_0x5dfe57),this[_0x22b373(0x19e)]['next']({'unitId':_0x5dfe57});}[_0x3ac352(0x1b1)](){const _0x238e62=_0x3ac352;super['dispose'](),this[_0x238e62(0x182)][_0x238e62(0x190)](),this['_change$'][_0x238e62(0x1c4)]();}[_0x3ac352(0x1a0)](_0x5b0115,_0x5dcfca,_0x2a63a5){const _0x3b5808=_0x3ac352;this[_0x3b5808(0x182)][_0x3b5808(0x174)](_0x5b0115,_0x2a63a5),this[_0x3b5808(0x19e)][_0x3b5808(0x19d)]({'unitId':_0x5b0115,'blockId':_0x5dcfca});}};const Me={'id':_0x3ac352(0x153),'type':_0x3d5940['COMMAND'],'handler':_0x23cad4=>{const _0x5a0675=_0x3ac352;let _0x386007=Le(_0x23cad4);if(_0x386007)return _0x23cad4[_0x5a0675(0x1b4)](_0x293a14)['syncExecuteCommand'](U['id'],{'startOffset':_0x386007[_0x5a0675(0x17f)],'endOffset':_0x386007[_0x5a0675(0x197)],'unitId':_0x386007[_0x5a0675(0x1a9)]});let _0x1ec025=Re(_0x23cad4);if(!_0x1ec025)return!0x1;let _0x143dce=_0x1ec025[_0x5a0675(0x185)]+0x1;return _0x23cad4[_0x5a0675(0x1b4)](_0x293a14)[_0x5a0675(0x19f)](U['id'],{'startOffset':_0x143dce,'endOffset':_0x143dce});}},Ne={'id':'docs-code.command.consume-boundary-delete','type':_0x3d5940[_0x3ac352(0x16f)],'handler':()=>!0x0},U={'id':_0x3ac352(0x16a),'type':_0x3d5940[_0x3ac352(0x16f)],'handler':(_0x3cf63a,_0x3c661c)=>{const _0x4a6db6=_0x3ac352;var _0x49265b,_0x30c3e0,_0x23f10b;let _0x28c23b=W(_0x3cf63a,_0x3c661c==null?void 0x0:_0x3c661c[_0x4a6db6(0x1a9)]);if(!_0x28c23b)return!0x1;let _0x701557=G(_0x3cf63a),_0x1f8088=ae({'blockId':(_0x49265b=_0x3c661c==null?void 0x0:_0x3c661c[_0x4a6db6(0x1bb)])==null?_0x1a6517(0x6):_0x49265b,'config':_0x3c661c==null?void 0x0:_0x3c661c['config'],'documentData':_0x28c23b[_0x4a6db6(0x15e)],'endOffset':(_0x30c3e0=_0x3c661c==null?void 0x0:_0x3c661c[_0x4a6db6(0x197)])==null?_0x701557==null?void 0x0:_0x701557['endOffset']:_0x30c3e0,'metadata':_0x28c23b[_0x4a6db6(0x1ab)][_0x4a6db6(0x155)](_0x28c23b[_0x4a6db6(0x1a9)]),'startOffset':(_0x23f10b=_0x3c661c==null?void 0x0:_0x3c661c[_0x4a6db6(0x17f)])==null?_0x701557==null?void 0x0:_0x701557[_0x4a6db6(0x17f)]:_0x23f10b}),_0x4827d6=q(_0x28c23b[_0x4a6db6(0x18c)],_0x28c23b['unitId'],_0x28c23b[_0x4a6db6(0x15e)],_0x1f8088[_0x4a6db6(0x1a1)],_0x1f8088[_0x4a6db6(0x14c)]);return _0x4827d6&&_0x1f8088[_0x4a6db6(0x18a)]&&_0x28c23b['model'][_0x4a6db6(0x1c6)](_0x28c23b['unitId'],_0x1f8088['nextMetadata']),_0x4827d6;}},Pe={'id':_0x3ac352(0x186),'type':_0x3d5940[_0x3ac352(0x16f)],'handler':(_0x5ceec3,_0x7a9d3d)=>{const _0x20fe2e=_0x3ac352;if(!_0x7a9d3d)return!0x1;let _0x42fd8b=W(_0x5ceec3,_0x7a9d3d[_0x20fe2e(0x1a9)]);if(!_0x42fd8b)return!0x1;let _0x224c20=ce({'blockId':_0x7a9d3d[_0x20fe2e(0x1bb)],'config':_0x7a9d3d[_0x20fe2e(0x160)],'documentData':_0x42fd8b[_0x20fe2e(0x15e)],'metadata':_0x42fd8b['model'][_0x20fe2e(0x155)](_0x42fd8b[_0x20fe2e(0x1a9)])});return _0x224c20[_0x20fe2e(0x18a)]&&_0x42fd8b['model']['deserialize'](_0x42fd8b[_0x20fe2e(0x1a9)],_0x224c20[_0x20fe2e(0x18a)]),!0x0;}},Fe={'id':'docs-code.command.exit','type':_0x3d5940['COMMAND'],'handler':(_0x3b56d7,_0x1f1326)=>{const _0x241bc6=_0x3ac352;var _0x2176be,_0x168d0e;let _0x11f150=W(_0x3b56d7,_0x1f1326==null?void 0x0:_0x1f1326['unitId']);if(!_0x11f150)return!0x1;let _0x853617=(_0x2176be=_0x1f1326==null?void 0x0:_0x1f1326[_0x241bc6(0x14c)])==null?(_0x168d0e=G(_0x3b56d7))==null?void 0x0:_0x168d0e[_0x241bc6(0x17f)]:_0x2176be;if(_0x853617==null)return!0x1;let _0x2afd5c=le({'cursorOffset':_0x853617,'documentData':_0x11f150[_0x241bc6(0x15e)]});return _0x2afd5c?q(_0x11f150[_0x241bc6(0x18c)],_0x11f150[_0x241bc6(0x1a9)],_0x11f150[_0x241bc6(0x15e)],_0x2afd5c[_0x241bc6(0x1a1)],_0x2afd5c['cursorOffset']):!0x1;}},Ie={'id':_0x3ac352(0x19b),'type':_0x3d5940['COMMAND'],'handler':(_0x4c96ea,_0x3328dc)=>{const _0x14806e=_0x3ac352;var _0x4f72ec,_0x1ffec;let _0x57e69e=W(_0x4c96ea,_0x3328dc==null?void 0x0:_0x3328dc[_0x14806e(0x1a9)]);if(!_0x57e69e)return!0x1;let _0x13fae7=(_0x4f72ec=_0x3328dc==null?void 0x0:_0x3328dc[_0x14806e(0x14c)])==null?(_0x1ffec=G(_0x4c96ea))==null?void 0x0:_0x1ffec['startOffset']:_0x4f72ec;if(_0x13fae7==null)return!0x1;let _0x17367e=ue({'cursorOffset':_0x13fae7,'documentData':_0x57e69e[_0x14806e(0x15e)],'paragraphStartIndex':_0x3328dc==null?void 0x0:_0x3328dc[_0x14806e(0x163)]});return _0x17367e?q(_0x57e69e[_0x14806e(0x18c)],_0x57e69e[_0x14806e(0x1a9)],_0x57e69e[_0x14806e(0x15e)],_0x17367e[_0x14806e(0x1a1)],_0x17367e[_0x14806e(0x14c)]):!0x1;}};function W(_0x18514d,_0x15355d){const _0x2d20ac=_0x3ac352;let _0x1de046=_0x18514d[_0x2d20ac(0x1b4)](_0x496553),_0x3c111d=_0x15355d?_0x1de046[_0x2d20ac(0x170)](_0x15355d):_0x1de046[_0x2d20ac(0x180)](_0x5edc9c['UNIVER_DOC']);return _0x3c111d?{'commandService':_0x18514d[_0x2d20ac(0x1b4)](_0x293a14),'model':_0x18514d['get'](H),'previousDocumentData':_0x3c111d[_0x2d20ac(0x1c2)](),'unitId':_0x3c111d[_0x2d20ac(0x188)]()}:null;}function G(_0x2b5b41){const _0x34aeb0=_0x3ac352;var _0x365e55;return(_0x365e55=_0x2b5b41[_0x34aeb0(0x1b4)](_0x1dfcf7)[_0x34aeb0(0x1c5)]())==null?void 0x0:_0x365e55[0x0];}function Le(_0x2c7416){const _0x248ada=_0x3ac352;var _0x219251;let _0xd9ab10=(_0x219251=_0x2c7416[_0x248ada(0x1b4)](_0x496553)[_0x248ada(0x180)](_0x5edc9c[_0x248ada(0x15d)]))==null?void 0x0:_0x219251[_0x248ada(0x188)]();try{return _0x2c7416[_0x248ada(0x1b4)](_0x4a65e7)[_0x248ada(0x1b9)](_0xd9ab10);}catch{return null;}}function Re(_0x5eda21){const _0x4a2dbc=_0x3ac352;var _0x34cbf0,_0x165b36,_0x5c767c;let _0x14a801=G(_0x5eda21);if(!_0x14a801)return null;let _0x25b879=_0x5eda21[_0x4a2dbc(0x1b4)](_0x496553)[_0x4a2dbc(0x180)](_0x5edc9c[_0x4a2dbc(0x15d)]),_0x4f5613=_0x25b879==null?void 0x0:_0x25b879['getBody']();return _0x4f5613?(_0x34cbf0=_0x5010d2[_0x4a2dbc(0x183)]['getParagraphsInRange'](_0x14a801,(_0x165b36=_0x4f5613[_0x4a2dbc(0x1aa)])==null?[]:_0x165b36,(_0x5c767c=_0x4f5613[_0x4a2dbc(0x165)])==null?'':_0x5c767c)[0x0])==null?null:_0x34cbf0:null;}function ze(_0x4eb7ce,_0x26fd14){const _0x1bc1f0=_0x3ac352;var _0x3fe09f,_0x1fc248,_0x19b2a2,_0x40569b,_0x5d32be,_0x2cebaa,_0x53acec,_0x38d9df,_0x593835,_0x309619,_0x185f1d,_0x199a22,_0x2bea36,_0x4c0643,_0x549587,_0x525fee,_0x1e7c22,_0x247d62;let _0x5f5ee=_0x490e0f[_0x1bc1f0(0x177)]();return[K(_0x5f5ee,['body',_0x1bc1f0(0x165)],(_0x3fe09f=_0x4eb7ce[_0x1bc1f0(0x1ba)])==null?void 0x0:_0x3fe09f[_0x1bc1f0(0x165)],(_0x1fc248=_0x26fd14[_0x1bc1f0(0x1ba)])==null?void 0x0:_0x1fc248[_0x1bc1f0(0x165)]),K(_0x5f5ee,[_0x1bc1f0(0x1ba),_0x1bc1f0(0x1aa)],(_0x19b2a2=_0x4eb7ce[_0x1bc1f0(0x1ba)])==null?void 0x0:_0x19b2a2[_0x1bc1f0(0x1aa)],(_0x40569b=_0x26fd14['body'])==null?void 0x0:_0x40569b[_0x1bc1f0(0x1aa)]),K(_0x5f5ee,[_0x1bc1f0(0x1ba),'sectionBreaks'],(_0x5d32be=_0x4eb7ce['body'])==null?void 0x0:_0x5d32be[_0x1bc1f0(0x1ae)],(_0x2cebaa=_0x26fd14['body'])==null?void 0x0:_0x2cebaa['sectionBreaks']),K(_0x5f5ee,[_0x1bc1f0(0x1ba),'textRuns'],(_0x53acec=_0x4eb7ce[_0x1bc1f0(0x1ba)])==null?void 0x0:_0x53acec[_0x1bc1f0(0x16d)],(_0x38d9df=_0x26fd14[_0x1bc1f0(0x1ba)])==null?void 0x0:_0x38d9df[_0x1bc1f0(0x16d)]),K(_0x5f5ee,['body',_0x1bc1f0(0x141)],(_0x593835=_0x4eb7ce['body'])==null?void 0x0:_0x593835[_0x1bc1f0(0x141)],(_0x309619=_0x26fd14['body'])==null?void 0x0:_0x309619[_0x1bc1f0(0x141)]),K(_0x5f5ee,[_0x1bc1f0(0x1ba),_0x1bc1f0(0x150)],(_0x185f1d=_0x4eb7ce[_0x1bc1f0(0x1ba)])==null?void 0x0:_0x185f1d[_0x1bc1f0(0x150)],(_0x199a22=_0x26fd14[_0x1bc1f0(0x1ba)])==null?void 0x0:_0x199a22[_0x1bc1f0(0x150)]),K(_0x5f5ee,[_0x1bc1f0(0x1ba),_0x1bc1f0(0x146)],(_0x2bea36=_0x4eb7ce[_0x1bc1f0(0x1ba)])==null?void 0x0:_0x2bea36['customDecorations'],(_0x4c0643=_0x26fd14[_0x1bc1f0(0x1ba)])==null?void 0x0:_0x4c0643[_0x1bc1f0(0x146)]),K(_0x5f5ee,[_0x1bc1f0(0x1ba),_0x1bc1f0(0x1b2)],(_0x549587=_0x4eb7ce[_0x1bc1f0(0x1ba)])==null?void 0x0:_0x549587[_0x1bc1f0(0x1b2)],(_0x525fee=_0x26fd14[_0x1bc1f0(0x1ba)])==null?void 0x0:_0x525fee[_0x1bc1f0(0x1b2)]),K(_0x5f5ee,['body','blockRanges'],(_0x1e7c22=_0x4eb7ce[_0x1bc1f0(0x1ba)])==null?void 0x0:_0x1e7c22[_0x1bc1f0(0x16c)],(_0x247d62=_0x26fd14['body'])==null?void 0x0:_0x247d62[_0x1bc1f0(0x16c)])][_0x1bc1f0(0x193)](Boolean)[_0x1bc1f0(0x144)]((_0x49d1e3,_0x19cd90)=>_0x490e0f[_0x1bc1f0(0x1a5)](_0x49d1e3,_0x19cd90),null);}function K(_0x97d15a,_0x409a02,_0x2899f3,_0x46ecba){const _0x274639=_0x3ac352;return _0x37bcba[_0x274639(0x181)](_0x2899f3,_0x46ecba)?null:_0x97d15a['replaceOp'](_0x409a02,_0x2899f3,_0x46ecba);}function q(_0x798c3b,_0x8aab4e,_0x19543a,_0xd0be15,_0x529da3){const _0x2d3106=_0x3ac352;let _0x1a220a=ze(_0x19543a,_0xd0be15);return _0x1a220a?!!_0x798c3b[_0x2d3106(0x19f)](_0x4b6c31['id'],{'unitId':_0x8aab4e,'actions':_0x1a220a,'textRanges':[{'startOffset':_0x529da3,'endOffset':_0x529da3,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const J=_0x3ac352(0x172);var Be=_0x3ac352(0x1ad),Ve=_0x3ac352(0x1be);const Y={};function X(_0x3d19d9,_0x404be8){return function(_0x15e8cf,_0x4aa07a){_0x404be8(_0x15e8cf,_0x4aa07a,_0x3d19d9);};}function Z(_0x1ac39c,_0x80db0d,_0x425b30,_0x45d879){const _0x15fb2d=_0x3ac352;var _0x1547e1=arguments[_0x15fb2d(0x145)],_0x4de8b5=_0x1547e1<0x3?_0x80db0d:_0x45d879===null?_0x45d879=Object[_0x15fb2d(0x179)](_0x80db0d,_0x425b30):_0x45d879,_0x5b725b;if(typeof Reflect=='object'&&typeof Reflect[_0x15fb2d(0x1b3)]==_0x15fb2d(0x191))_0x4de8b5=Reflect['decorate'](_0x1ac39c,_0x80db0d,_0x425b30,_0x45d879);else{for(var _0xbe7b5d=_0x1ac39c[_0x15fb2d(0x145)]-0x1;_0xbe7b5d>=0x0;_0xbe7b5d--)(_0x5b725b=_0x1ac39c[_0xbe7b5d])&&(_0x4de8b5=(_0x1547e1<0x3?_0x5b725b(_0x4de8b5):_0x1547e1>0x3?_0x5b725b(_0x80db0d,_0x425b30,_0x4de8b5):_0x5b725b(_0x80db0d,_0x425b30))||_0x4de8b5);}return _0x1547e1>0x3&&_0x4de8b5&&Object['defineProperty'](_0x80db0d,_0x425b30,_0x4de8b5),_0x4de8b5;}let Q=class extends _0x17af83{constructor(_0x66484e,_0x77cf0a){const _0x986a19=_0x3ac352;super(),this[_0x986a19(0x156)]=_0x66484e,this[_0x986a19(0x149)]=_0x77cf0a,this[_0x986a19(0x15b)]();}[_0x3ac352(0x15b)](){const _0xf492c7=_0x3ac352;this[_0xf492c7(0x1bd)](this[_0xf492c7(0x156)]['registerPluginResource']({'pluginName':J,'businesses':[_0x5edc9c[_0xf492c7(0x15d)]],'toJson':_0x3bbb16=>JSON['stringify'](this[_0xf492c7(0x149)][_0xf492c7(0x155)](_0x3bbb16)),'parseJson':_0x5c2293=>w(JSON[_0xf492c7(0x173)](_0x5c2293)),'onLoad':(_0xf673ae,_0x487884)=>this[_0xf492c7(0x149)][_0xf492c7(0x1c6)](_0xf673ae,_0x487884),'onUnLoad':_0x5d101f=>this[_0xf492c7(0x149)]['removeUnit'](_0x5d101f)}));}};Q=Z([X(0x0,_0x2eca2),X(0x1,_0x59a8b9(H))],Q);let $=class extends _0x2f2fe4{constructor(_0x2ad31f=Y,_0x4dff91,_0x444c0e,_0x132cba){const _0x58ef97=_0x3ac352;super(),this[_0x58ef97(0x1b0)]=_0x2ad31f,this[_0x58ef97(0x198)]=_0x4dff91,this[_0x58ef97(0x142)]=_0x444c0e,this['_configService']=_0x132cba;let {..._0x422d6f}=_0xdd2d82({},Y,this[_0x58ef97(0x1b0)]);this['_configService']['setConfig'](_0x58ef97(0x15f),_0x422d6f);}[_0x3ac352(0x195)](){const _0x1afb20=_0x3ac352;this[_0x1afb20(0x198)][_0x1afb20(0x148)]([H]),this[_0x1afb20(0x198)]['add']([Q]),this[_0x1afb20(0x198)][_0x1afb20(0x1b4)](H),this[_0x1afb20(0x198)]['get'](Q),[U,Me,Pe,Fe,Ie,Ne][_0x1afb20(0x1a8)](_0x3e2339=>this['disposeWithMe'](this[_0x1afb20(0x142)][_0x1afb20(0x164)](_0x3e2339)));}};V($,'pluginName',J),V($,'packageName',Be),V($,'version',Ve),V($,'type',_0x5edc9c[_0x3ac352(0x15d)]),$=Z([_0x55cbf0(_0x59b58d,_0x23fd2b),X(0x1,_0x59a8b9(_0x5e28cb)),X(0x2,_0x293a14),X(0x3,_0x317be4)],$);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
|
+
var _0x2ac71c=_0x1b17;(function(_0x309a95,_0x41f3c8){var _0x23d617=_0x1b17,_0x2d0f2f=_0x309a95();while(!![]){try{var _0x571358=-parseInt(_0x23d617(0x114))/0x1*(-parseInt(_0x23d617(0xfb))/0x2)+parseInt(_0x23d617(0x137))/0x3+parseInt(_0x23d617(0x10f))/0x4*(parseInt(_0x23d617(0x112))/0x5)+parseInt(_0x23d617(0x142))/0x6+parseInt(_0x23d617(0x11d))/0x7*(-parseInt(_0x23d617(0x107))/0x8)+parseInt(_0x23d617(0x135))/0x9+-parseInt(_0x23d617(0x124))/0xa;if(_0x571358===_0x41f3c8)break;else _0x2d0f2f['push'](_0x2d0f2f['shift']());}catch(_0x500a60){_0x2d0f2f['push'](_0x2d0f2f['shift']());}}}(_0x16d6,0x6b57a));function _0x16d6(){var _0xca8d9a=['body','paragraph','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','7lIIRNy','prototype','includes','SECTION_BREAK','replace','cancelEmptyCodeParagraph','updateConfig','13447070IlvOnZ','dataStream','text','findCodes','_injector','CODE','PARAGRAPH','map','getCodes','getRange','length','defineProperty','_document','get','from','call','endIndex','4343670LkQAoZ','getOwnPropertyDescriptor','2097948boUHwt','function','getId','save','getCode','syncExecuteCommand','_getDocumentData','_blockId','_createFDocumentCode','constructor','getText','1244286RZQjze','getCodeConfig','12soFEMd','insertCode','createInstance','blockId','blockRanges','blockType','symbol','iterator','extend','getCodeAt','startIndex','exitCode','3238904XtBdqV','decorate','join','_getBlockRange','_getBlockRanges','cancelEmptyParagraph','describe','object','4HqvVno','filter','default','2846115qMrxHh','exit','38449KVWgQp','string','BLOCK_START','toPrimitive','getType','_unitId'];_0x16d6=function(){return _0xca8d9a;};return _0x16d6();}import{DocsCodeCancelEmptyParagraphCommand as _0x3477fe,DocsCodeExitCommand as _0x1c4dd8,DocsCodeInsertCommand as _0x3169be,DocsCodeModel as _0x405607,DocsCodeUpdateCommand as _0x35ac85,normalizeDocsCodeConfig as _0x35990e}from'@univerjs-pro/docs-code';function _0x1b17(_0x428e51,_0x284195){_0x428e51=_0x428e51-0xfa;var _0x16d65c=_0x16d6();var _0x1b173b=_0x16d65c[_0x428e51];return _0x1b173b;}import{DataStreamTreeTokenType as _0x56ebe4,DocumentBlockRangeType as _0x277a0c,ICommandService as _0x2ba4e3,Inject as _0x54c3a2,Injector as _0x19dec3,generateRandomId as _0x23e48a}from'@univerjs/core';import{FDocument as _0x29f6f5}from'@univerjs/docs/facade';function p(_0x3655cb){'@babel/helpers - typeof';var _0x1a6471=_0x1b17;return p=typeof Symbol==_0x1a6471(0x138)&&typeof Symbol[_0x1a6471(0x102)]==_0x1a6471(0x101)?function(_0x5933da){return typeof _0x5933da;}:function(_0x46fbdb){var _0x5bd470=_0x1a6471;return _0x46fbdb&&typeof Symbol==_0x5bd470(0x138)&&_0x46fbdb[_0x5bd470(0x140)]===Symbol&&_0x46fbdb!==Symbol[_0x5bd470(0x11e)]?_0x5bd470(0x101):typeof _0x46fbdb;},p(_0x3655cb);}function m(_0x1b5c75,_0x1279ea){var _0x37c289=_0x1b17;if(p(_0x1b5c75)!='object'||!_0x1b5c75)return _0x1b5c75;var _0x190b8c=_0x1b5c75[Symbol[_0x37c289(0x117)]];if(_0x190b8c!==void 0x0){var _0x202d40=_0x190b8c[_0x37c289(0x133)](_0x1b5c75,_0x1279ea||_0x37c289(0x111));if(p(_0x202d40)!='object')return _0x202d40;throw TypeError(_0x37c289(0x11c));}return(_0x1279ea===_0x37c289(0x115)?String:Number)(_0x1b5c75);}function h(_0x40d8cb){var _0x12bbd7=_0x1b17,_0x95754c=m(_0x40d8cb,'string');return p(_0x95754c)==_0x12bbd7(0x101)?_0x95754c:_0x95754c+'';}function g(_0x5b3859,_0x5531e7,_0x2b6309){var _0x4f3516=_0x1b17;return(_0x5531e7=h(_0x5531e7))in _0x5b3859?Object[_0x4f3516(0x12f)](_0x5b3859,_0x5531e7,{'value':_0x2b6309,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5b3859[_0x5531e7]=_0x2b6309,_0x5b3859;}function _(_0xa0525b,_0x39f536){return function(_0x25bda3,_0x57bd66){_0x39f536(_0x25bda3,_0x57bd66,_0xa0525b);};}function v(_0x4fa7d4,_0x33724e,_0x1a94c9,_0x33350b){var _0x338352=_0x1b17,_0x3b5450=arguments[_0x338352(0x12e)],_0x5e355a=_0x3b5450<0x3?_0x33724e:_0x33350b===null?_0x33350b=Object[_0x338352(0x136)](_0x33724e,_0x1a94c9):_0x33350b,_0x16dc81;if(typeof Reflect==_0x338352(0x10e)&&typeof Reflect[_0x338352(0x108)]==_0x338352(0x138))_0x5e355a=Reflect[_0x338352(0x108)](_0x4fa7d4,_0x33724e,_0x1a94c9,_0x33350b);else{for(var _0x4e2290=_0x4fa7d4['length']-0x1;_0x4e2290>=0x0;_0x4e2290--)(_0x16dc81=_0x4fa7d4[_0x4e2290])&&(_0x5e355a=(_0x3b5450<0x3?_0x16dc81(_0x5e355a):_0x3b5450>0x3?_0x16dc81(_0x33724e,_0x1a94c9,_0x5e355a):_0x16dc81(_0x33724e,_0x1a94c9))||_0x5e355a);}return _0x3b5450>0x3&&_0x5e355a&&Object[_0x338352(0x12f)](_0x33724e,_0x1a94c9,_0x5e355a),_0x5e355a;}let y=class{constructor(_0x10dd86,_0x334780,_0x20028a){var _0x333f52=_0x1b17;this['_document']=_0x10dd86,this['_blockId']=_0x334780,this[_0x333f52(0x128)]=_0x20028a,g(this,_0x333f52(0x119),void 0x0),this['_unitId']=this[_0x333f52(0x130)]['getId']();}[_0x2ac71c(0x139)](){var _0x37aaa6=_0x2ac71c;return this[_0x37aaa6(0x13e)];}[_0x2ac71c(0x12d)](){var _0x129e97=_0x2ac71c;let _0x2e59d8=this[_0x129e97(0x10a)]();return _0x2e59d8?{'blockId':_0x2e59d8['blockId'],'endIndex':_0x2e59d8[_0x129e97(0x134)],'startIndex':_0x2e59d8[_0x129e97(0x105)]}:null;}['getText'](){var _0x339227=_0x2ac71c,_0x49b4a2;let _0x3f551f=this[_0x339227(0x10a)](),_0x21bc0a=(_0x49b4a2=this[_0x339227(0x13d)]()['body'])==null?void 0x0:_0x49b4a2[_0x339227(0x125)];return!_0x3f551f||!_0x21bc0a?'':b(_0x21bc0a['slice'](_0x3f551f[_0x339227(0x105)]+0x1,_0x3f551f[_0x339227(0x134)]));}[_0x2ac71c(0x10d)](){var _0x32a62e=_0x2ac71c;let _0x35ec85=this['getRange']();return _0x35ec85?{..._0x35ec85,'config':this['getConfig'](),'text':this['getText'](),'type':_0x277a0c[_0x32a62e(0x129)]}:null;}['getConfig'](){var _0x3cae16=_0x2ac71c;return _0x35990e(this[_0x3cae16(0x128)][_0x3cae16(0x131)](_0x405607)[_0x3cae16(0xfa)](this[_0x3cae16(0x119)],this[_0x3cae16(0x13e)]));}[_0x2ac71c(0x123)](_0x3e8423){var _0x270caf=_0x2ac71c;return this[_0x270caf(0x128)][_0x270caf(0x131)](_0x2ba4e3)[_0x270caf(0x13c)](_0x35ac85['id'],{'blockId':this['_blockId'],'config':_0x3e8423['config'],'unitId':this[_0x270caf(0x119)]});}[_0x2ac71c(0x113)](_0x4ecbd7){var _0x5d5063=_0x2ac71c;return this['_injector']['get'](_0x2ba4e3)['syncExecuteCommand'](_0x1c4dd8['id'],{'cursorOffset':_0x4ecbd7,'unitId':this[_0x5d5063(0x119)]});}[_0x2ac71c(0x10c)](_0x1f9ed3={}){var _0x5c15e6=_0x2ac71c;return this[_0x5c15e6(0x128)][_0x5c15e6(0x131)](_0x2ba4e3)['syncExecuteCommand'](_0x3477fe['id'],{..._0x1f9ed3,'unitId':this[_0x5c15e6(0x119)]});}[_0x2ac71c(0x13d)](){var _0x4419a1=_0x2ac71c;return this[_0x4419a1(0x130)][_0x4419a1(0x13a)]();}[_0x2ac71c(0x10a)](){var _0x4740f1=_0x2ac71c,_0x80ed9d;let _0x24e38b=(_0x80ed9d=this['_getDocumentData']()[_0x4740f1(0x11a)])==null||(_0x80ed9d=_0x80ed9d[_0x4740f1(0xff)])==null?void 0x0:_0x80ed9d['find'](_0x5b173a=>_0x5b173a['blockId']===this[_0x4740f1(0x13e)]&&_0x5b173a[_0x4740f1(0x100)]===_0x277a0c[_0x4740f1(0x129)]);return _0x24e38b==null?null:_0x24e38b;}};y=v([_(0x2,_0x54c3a2(_0x19dec3))],y);function b(_0x96280f){var _0xa3afea=_0x2ac71c;return Array[_0xa3afea(0x132)](_0x96280f)[_0xa3afea(0x12b)](_0x52d5f9=>_0x52d5f9===_0x56ebe4[_0xa3afea(0x12a)]?'\x0a':_0x52d5f9)[_0xa3afea(0x110)](_0x8758ed=>_0x8758ed!==_0x56ebe4[_0xa3afea(0x116)]&&_0x8758ed!==_0x56ebe4['BLOCK_END']&&_0x8758ed!==_0x56ebe4[_0xa3afea(0x120)])[_0xa3afea(0x109)]('')[_0xa3afea(0x121)](/\n$/,'');}var x=class extends _0x29f6f5{[_0x2ac71c(0x12c)](){var _0x4166ed=_0x2ac71c;return this['_getBlockRanges']()[_0x4166ed(0x110)](_0x2188ff=>_0x2188ff['blockType']===_0x277a0c['CODE'])[_0x4166ed(0x12b)](_0xa4398d=>this['_createFDocumentCode'](_0xa4398d[_0x4166ed(0xfe)]));}[_0x2ac71c(0x13b)](_0x43cd34){var _0x26255f=_0x2ac71c;return this['_getBlockRanges']()['some'](_0x612eed=>_0x612eed[_0x26255f(0xfe)]===_0x43cd34&&_0x612eed[_0x26255f(0x100)]===_0x277a0c[_0x26255f(0x129)])?this[_0x26255f(0x13f)](_0x43cd34):null;}[_0x2ac71c(0x104)](_0x4a4a1e){var _0x4dfe2b=_0x2ac71c;let _0x124e35=this['_getBlockRanges']()['find'](_0x2d1636=>_0x2d1636[_0x4dfe2b(0x100)]===_0x277a0c[_0x4dfe2b(0x129)]&&_0x2d1636[_0x4dfe2b(0x105)]<=_0x4a4a1e&&_0x4a4a1e<=_0x2d1636['endIndex']);return _0x124e35?this[_0x4dfe2b(0x13f)](_0x124e35[_0x4dfe2b(0xfe)]):null;}['findCodeByText'](_0x3a4c76){var _0x48e4a=_0x2ac71c,_0x3cb75d;return(_0x3cb75d=this[_0x48e4a(0x127)](_0x3a4c76)[0x0])==null?null:_0x3cb75d;}[_0x2ac71c(0x127)](_0x1df746){var _0x298d1a=_0x2ac71c;let _0x3b5160=typeof _0x1df746==_0x298d1a(0x115)?{'text':_0x1df746}:_0x1df746;return this[_0x298d1a(0x12c)]()[_0x298d1a(0x110)](_0xcc7dfa=>!(_0x3b5160[_0x298d1a(0xfe)]&&_0xcc7dfa[_0x298d1a(0x139)]()!==_0x3b5160['blockId']||_0x3b5160[_0x298d1a(0x126)]&&!_0xcc7dfa[_0x298d1a(0x141)]()[_0x298d1a(0x11f)](_0x3b5160[_0x298d1a(0x126)])));}[_0x2ac71c(0xfc)](_0x1b8343={},_0x586f93={}){var _0x314d26=_0x2ac71c,_0xbc9e2;let _0xc40e6f=this[_0x314d26(0x128)][_0x314d26(0x131)](_0x2ba4e3),_0x544610=S(_0x1b8343)?{..._0x586f93,...C(_0x1b8343)}:_0x1b8343,_0xe099e1=(_0xbc9e2=_0x544610[_0x314d26(0xfe)])==null?_0x23e48a(0x6):_0xbc9e2;return _0xc40e6f[_0x314d26(0x13c)](_0x3169be['id'],{..._0x544610,'blockId':_0xe099e1,'unitId':this['getId']()})?this[_0x314d26(0x13f)](_0xe099e1):null;}[_0x2ac71c(0x106)](_0x53df59){var _0xf2e87d=_0x2ac71c;return this[_0xf2e87d(0x128)][_0xf2e87d(0x131)](_0x2ba4e3)[_0xf2e87d(0x13c)](_0x1c4dd8['id'],{'cursorOffset':_0x53df59,'unitId':this[_0xf2e87d(0x139)]()});}[_0x2ac71c(0x122)](_0x31008d={}){var _0x3bd192=_0x2ac71c;return this[_0x3bd192(0x128)][_0x3bd192(0x131)](_0x2ba4e3)['syncExecuteCommand'](_0x3477fe['id'],{..._0x31008d,'unitId':this[_0x3bd192(0x139)]()});}[_0x2ac71c(0x10b)](){var _0x1c3f10=_0x2ac71c,_0x5660a2,_0x1defdc;return(_0x5660a2=(_0x1defdc=this[_0x1c3f10(0x13a)]()[_0x1c3f10(0x11a)])==null?void 0x0:_0x1defdc[_0x1c3f10(0xff)])==null?[]:_0x5660a2;}[_0x2ac71c(0x13f)](_0x3a8d5f){var _0x1330c6=_0x2ac71c;return this['_injector'][_0x1330c6(0xfd)](y,this,_0x3a8d5f);}};function S(_0x5bc56a){var _0x54dd87=_0x2ac71c;return typeof _0x5bc56a==_0x54dd87(0x10e)&&!!_0x5bc56a&&typeof _0x5bc56a['getKey']==_0x54dd87(0x138)&&typeof _0x5bc56a[_0x54dd87(0x12d)]==_0x54dd87(0x138)&&typeof _0x5bc56a[_0x54dd87(0x118)]=='function'&&_0x5bc56a[_0x54dd87(0x118)]()===_0x54dd87(0x11b);}function C(_0xc8fb1f){var _0x2bbc12=_0x2ac71c;return _0xc8fb1f[_0x2bbc12(0x12d)]();}_0x29f6f5[_0x2ac71c(0x103)](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 _0x3ac352=_0x13c3;(function(_0x57329b,_0x41dbac){const _0x5abf66=_0x13c3,_0x4bd5a0=_0x57329b();while(!![]){try{const _0x226940=-parseInt(_0x5abf66(0x17c))/0x1*(parseInt(_0x5abf66(0x167))/0x2)+-parseInt(_0x5abf66(0x17d))/0x3+parseInt(_0x5abf66(0x1a2))/0x4*(parseInt(_0x5abf66(0x1a3))/0x5)+-parseInt(_0x5abf66(0x169))/0x6+-parseInt(_0x5abf66(0x152))/0x7*(parseInt(_0x5abf66(0x1a4))/0x8)+-parseInt(_0x5abf66(0x17e))/0x9*(parseInt(_0x5abf66(0x157))/0xa)+parseInt(_0x5abf66(0x1bf))/0xb;if(_0x226940===_0x41dbac)break;else _0x4bd5a0['push'](_0x4bd5a0['shift']());}catch(_0x200cbe){_0x4bd5a0['push'](_0x4bd5a0['shift']());}}}(_0x3e25,0xdc760));import{BuildTextUtils as _0x5010d2,CommandType as _0x3d5940,DataStreamTreeTokenType as _0x1a5d93,DependentOn as _0x55cbf0,Disposable as _0x17af83,DocumentBlockRangeType as _0x551e20,ICommandService as _0x293a14,IConfigService as _0x317be4,IResourceManagerService as _0x2eca2,IUniverInstanceService as _0x496553,Inject as _0x59a8b9,Injector as _0x5e28cb,JSONX as _0x490e0f,Plugin as _0x2f2fe4,Tools as _0x37bcba,UniverInstanceType as _0x5edc9c,createParagraphId as _0x45f844,generateRandomId as _0x1a6517,merge as _0xdd2d82}from'@univerjs/core';import{DocContentInsertService as _0x4a65e7,DocSelectionManagerService as _0x1dfcf7,RichTextEditingMutation as _0x4b6c31,UniverDocsPlugin as _0x23fd2b}from'@univerjs/docs';import{Subject as _0x43de51}from'rxjs';import{UniverLicensePlugin as _0x59b58d}from'@univerjs-pro/license';const S={'language':_0x3ac352(0x196),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function C(_0x14730f){return{...S,..._0x14730f};}function w(_0x2185e0){const _0xffb998=_0x3ac352;var _0xa4d427;let _0x30a453=(_0xa4d427=_0x2185e0==null?void 0x0:_0x2185e0[_0xffb998(0x176)])==null?{}:_0xa4d427;return{'codes':Object[_0xffb998(0x14f)](Object[_0xffb998(0x166)](_0x30a453)['map'](([_0x2a5dd7,_0x284bbd])=>[_0x2a5dd7,C(_0x284bbd)]))};}function T(_0x4f3ecf,_0x58d7e6,_0x22b072){const _0x1563ae=_0x3ac352;let _0x15dcb5=w(_0x4f3ecf);return _0x15dcb5[_0x1563ae(0x176)][_0x58d7e6]=C({..._0x15dcb5[_0x1563ae(0x176)][_0x58d7e6],..._0x22b072}),_0x15dcb5;}function re(_0x378e66,_0x40af70){const _0x144587=_0x3ac352;let _0x5290da=w(_0x378e66);return delete _0x5290da[_0x144587(0x176)][_0x40af70],_0x5290da;}const ie=_0x3ac352(0x151);function ae(_0x427ce0){const _0x154c42=_0x3ac352;var _0x344435,_0x1c09ca,_0x47ef39;let _0x41bf6f=D(_0x427ce0[_0x154c42(0x17a)]),_0x1229e1=O(_0x41bf6f),_0x33b333=se(_0x427ce0[_0x154c42(0x17f)],_0x427ce0['endOffset']),_0x577198=_0x33b333?(_0x344435=_0x1229e1[_0x154c42(0x16c)])==null?void 0x0:_0x344435[_0x154c42(0x189)](_0x53318f=>_0x53318f['startIndex']===_0x33b333[_0x154c42(0x17f)]&&_0x53318f['endIndex']+0x1===_0x33b333['endOffset']):void 0x0,{startOffset:_0x45b5c7,endOffset:_0x4b9c63}=_0x577198?_0x33b333:ye(_0x1229e1,_0x427ce0[_0x154c42(0x17f)],_0x427ce0[_0x154c42(0x197)]),_0x28a8c5=Se(_0x1229e1,_0x45b5c7,_0x4b9c63),_0x255003=(_0x1c09ca=_0x577198==null?void 0x0:_0x577198[_0x154c42(0x1bb)])==null?_0x427ce0[_0x154c42(0x1bb)]:_0x1c09ca,_0x488e14=T(_0x427ce0[_0x154c42(0x19a)],_0x255003,{...S,..._0x427ce0[_0x154c42(0x160)]});if(_0x577198)return _0x577198['blockType']=_0x551e20[_0x154c42(0x1c3)],oe(_0x1229e1,_0x45b5c7,_0x4b9c63),he(_0x1229e1,_0x45b5c7,_0x4b9c63,_0x28a8c5),M(_0x1229e1,_0x577198),{'nextDocumentData':_0x41bf6f,'nextMetadata':_0x488e14,'cursorOffset':_0x45b5c7+0x1};if(_0x45b5c7===_0x4b9c63){var _0x1a88b0,_0x534fb6;let _0x28a35e=''+_0x1a5d93['BLOCK_START']+_0x1a5d93[_0x154c42(0x15c)]+_0x1a5d93[_0x154c42(0x192)];N(_0x1229e1,_0x45b5c7,_0x28a35e,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x45f844(new Set((_0x1a88b0=_0x1229e1['paragraphs'])==null?void 0x0:_0x1a88b0[_0x154c42(0x1ac)](_0x2cd807=>_0x2cd807[_0x154c42(0x14e)]))),'paragraphStyle':E(!0x0,!0x0,_0x28a8c5)}],'blockRanges':[{'blockId':_0x255003,'blockType':_0x551e20[_0x154c42(0x1c3)],'startIndex':0x0,'endIndex':_0x28a35e[_0x154c42(0x145)]-0x1}]});let _0x2e2a14=(_0x534fb6=_0x1229e1[_0x154c42(0x16c)])==null?void 0x0:_0x534fb6[_0x154c42(0x189)](_0x333fa1=>_0x333fa1[_0x154c42(0x1bb)]===_0x255003);return _0x2e2a14&&M(_0x1229e1,_0x2e2a14),{'nextDocumentData':_0x41bf6f,'nextMetadata':_0x488e14,'cursorOffset':_0x45b5c7+0x1};}N(_0x1229e1,_0x4b9c63,_0x1a5d93[_0x154c42(0x192)]),N(_0x1229e1,_0x45b5c7,_0x1a5d93[_0x154c42(0x162)]),he(_0x1229e1,_0x45b5c7,_0x4b9c63+0x1,_0x28a8c5);let _0x3212a2={'blockId':_0x255003,'blockType':_0x551e20['CODE'],'startIndex':_0x45b5c7,'endIndex':_0x4b9c63+0x1};return _0x1229e1[_0x154c42(0x16c)]=[...(_0x47ef39=_0x1229e1[_0x154c42(0x16c)])==null?[]:_0x47ef39,_0x3212a2]['sort']((_0xa7e87d,_0x46cff9)=>_0xa7e87d[_0x154c42(0x185)]-_0x46cff9['startIndex']),M(_0x1229e1,_0x3212a2),{'nextDocumentData':_0x41bf6f,'nextMetadata':_0x488e14,'cursorOffset':_0x45b5c7+0x1};}function oe(_0x3fc3d8,_0x293c22,_0x550a63){const _0x1ad537=_0x3ac352;var _0x48deb6;((_0x48deb6=_0x3fc3d8[_0x1ad537(0x1aa)])==null?[]:_0x48deb6)[_0x1ad537(0x193)](_0x5d27e1=>_0x5d27e1[_0x1ad537(0x185)]>_0x293c22&&_0x5d27e1[_0x1ad537(0x185)]<_0x550a63)[_0x1ad537(0x1a8)](_0x4d0ff9=>{const _0x108b48=_0x1ad537;var _0x2770d2;let _0x3145bd={...(_0x2770d2=_0x4d0ff9['paragraphStyle'])==null?{}:_0x2770d2};delete _0x3145bd['spaceAbove'],delete _0x3145bd[_0x108b48(0x1b7)],_0x4d0ff9[_0x108b48(0x18f)]=_0x3145bd;});}function se(_0x593f2e,_0x42d40b){const _0x158ec9=_0x3ac352;return _0x593f2e==null||_0x42d40b==null||_0x593f2e===_0x42d40b?null:{'startOffset':Math[_0x158ec9(0x1c1)](_0x593f2e,_0x42d40b),'endOffset':Math[_0x158ec9(0x14d)](_0x593f2e,_0x42d40b)};}function ce(_0xd4784b){const _0x27dd02=_0x3ac352;return{'nextDocumentData':D(_0xd4784b[_0x27dd02(0x17a)]),'nextMetadata':T(_0xd4784b['metadata'],_0xd4784b[_0x27dd02(0x1bb)],_0xd4784b[_0x27dd02(0x160)]),'cursorOffset':0x0};}function le(_0x27a678){const _0x5be932=_0x3ac352;var _0x11c7b0,_0xab1dd1;let _0x3bd507=D(_0x27a678[_0x5be932(0x17a)]),_0xc12786=O(_0x3bd507),_0x5667cc=me(_0xc12786,_0x27a678[_0x5be932(0x14c)]);if(!_0x5667cc)return null;let _0x123186=_e(_0xc12786,_0x5667cc),_0x38903a=_0x123186[_0x123186[_0x5be932(0x145)]-0x1];if(!_0x38903a||!ve(_0xc12786,_0x5667cc,_0x38903a)||_0x27a678[_0x5be932(0x14c)]<_0x38903a[_0x5be932(0x185)])return null;let _0x445a60=A(_0xc12786,_0x5667cc,_0x38903a);if(_0x445a60>=_0x5667cc[_0x5be932(0x19c)])return null;_0xc12786[_0x5be932(0x165)]=[_0xc12786['dataStream'][_0x5be932(0x1b6)](0x0,_0x445a60),_0x1a5d93[_0x5be932(0x192)],_0xc12786[_0x5be932(0x165)][_0x5be932(0x1b6)](_0x445a60,_0x5667cc[_0x5be932(0x19c)]),_0xc12786['dataStream'][_0x5be932(0x1b6)](_0x5667cc['endIndex']+0x1)]['join'](''),R(_0xc12786[_0x5be932(0x1aa)],_0x445a60,_0x5667cc[_0x5be932(0x19c)],0x1),R(_0xc12786['sectionBreaks'],_0x445a60,_0x5667cc['endIndex'],0x1),R(_0xc12786[_0x5be932(0x141)],_0x445a60,_0x5667cc['endIndex'],0x1),ke(_0xc12786[_0x5be932(0x16d)],_0x445a60,_0x5667cc[_0x5be932(0x19c)],0x1),z(_0xc12786[_0x5be932(0x1b2)],_0x445a60,_0x5667cc['endIndex'],0x1),z(_0xc12786[_0x5be932(0x150)],_0x445a60,_0x5667cc[_0x5be932(0x19c)],0x1),z(_0xc12786['customDecorations'],_0x445a60,_0x5667cc[_0x5be932(0x19c)],0x1),(_0x11c7b0=_0xc12786['blockRanges'])==null||_0x11c7b0['forEach'](_0x518351=>{const _0x18b0d7=_0x5be932;_0x518351===_0x5667cc||_0x518351[_0x18b0d7(0x1bb)]===_0x5667cc[_0x18b0d7(0x1bb)]?_0x518351['endIndex']=_0x445a60:_0x518351[_0x18b0d7(0x185)]>=_0x445a60&&_0x518351['startIndex']<_0x5667cc[_0x18b0d7(0x19c)]&&(_0x518351[_0x18b0d7(0x185)]+=0x1,_0x518351[_0x18b0d7(0x19c)]+=0x1);});let _0x5bc08a=_e(_0xc12786,{..._0x5667cc,'endIndex':_0x445a60});_0x5bc08a[_0x5be932(0x1a8)]((_0x328a17,_0x4c643d)=>{const _0x128988=_0x5be932;var _0x2b06d4;_0x328a17[_0x128988(0x18f)]={...(_0x2b06d4=_0x328a17[_0x128988(0x18f)])==null?{}:_0x2b06d4,...E(_0x4c643d===0x0,_0x4c643d===_0x5bc08a[_0x128988(0x145)]-0x1)};});let _0x58211c=(_0xab1dd1=_0xc12786[_0x5be932(0x1aa)])==null?void 0x0:_0xab1dd1[_0x5be932(0x189)](_0x3a8994=>_0x3a8994[_0x5be932(0x185)]===_0x445a60+0x1);return _0x58211c&&(_0x58211c['paragraphStyle']=ge(_0x58211c['paragraphStyle'])),{'nextDocumentData':_0x3bd507,'cursorOffset':_0x445a60+0x1};}function ue(_0xde21db){const _0x406b71=_0x3ac352;let _0x335435=D(_0xde21db[_0x406b71(0x17a)]),_0x345c40=O(_0x335435),_0x27b257=me(_0x345c40,_0xde21db['cursorOffset']);return _0x27b257&&de(_0x335435,_0x345c40,_0x27b257,_0xde21db[_0x406b71(0x14c)],_0xde21db[_0x406b71(0x163)])||null;}function de(_0x1c95fa,_0xcf7b2a,_0x2418d6,_0x305894,_0x58b364){const _0xfb10e7=_0x3ac352;let _0x1e3077=we(_0xcf7b2a,_0x2418d6,_0x305894,_0x58b364);if(!_0x1e3077)return null;let _0x32d2cb=_0x1e3077[_0xfb10e7(0x168)]-0x1;return Te(_0xcf7b2a,_0x1e3077[_0xfb10e7(0x175)]['startIndex'],_0x1e3077[_0xfb10e7(0x175)][_0xfb10e7(0x185)]+0x1),{'nextDocumentData':_0x1c95fa,'cursorOffset':_0x32d2cb};}function fe(_0x5aa7b9,_0x462683){const _0x124180=_0x3ac352;var _0x21dc3e;return _0x5aa7b9==null||(_0x21dc3e=_0x5aa7b9[_0x124180(0x16c)])==null?void 0x0:_0x21dc3e[_0x124180(0x189)](_0xfc4a4c=>_0xfc4a4c[_0x124180(0x15a)]===_0x551e20[_0x124180(0x1c3)]&&_0xfc4a4c['startIndex']<=_0x462683&&_0x462683<=_0xfc4a4c[_0x124180(0x19c)]);}function pe(_0xe01713){const _0x58c530=_0x3ac352;var _0x5551c6;let _0x1034f4=_0xe01713[_0x58c530(0x17a)][_0x58c530(0x1ba)];if(!_0x1034f4)return!0x1;let _0x3e00a9=_0xe01713[_0x58c530(0x1c0)]==='left'?_0xe01713[_0x58c530(0x14c)]-0x1:_0xe01713[_0x58c530(0x14c)],_0xe9f3eb=_0xe01713['direction']===_0x58c530(0x14a)?_0xe01713['cursorOffset']+0x1:_0x3e00a9;return((_0x5551c6=_0x1034f4[_0x58c530(0x16c)])==null?[]:_0x5551c6)[_0x58c530(0x178)](_0x4fd55a=>_0x4fd55a[_0x58c530(0x15a)]===_0x551e20['CODE']?_0x3e00a9===_0x4fd55a[_0x58c530(0x185)]||_0x3e00a9===_0x4fd55a[_0x58c530(0x19c)]||_0xe9f3eb===_0x4fd55a['startIndex']||_0xe9f3eb===_0x4fd55a[_0x58c530(0x19c)]:!0x1);}function me(_0x24de60,_0x30b607){const _0x38fa61=_0x3ac352;var _0x3803cd;return(_0x3803cd=_0x24de60[_0x38fa61(0x16c)])==null?void 0x0:_0x3803cd[_0x38fa61(0x189)](_0x113160=>{const _0x1ca423=_0x38fa61;let _0x289767=j(_0x24de60,_0x113160);return _0x113160[_0x1ca423(0x15a)]===_0x551e20['CODE']&&_0x113160['startIndex']<=_0x30b607&&_0x30b607<=_0x289767+0x2;});}function E(_0x27bb4e,_0x3046b4,_0x57e5ec=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x27bb4e&&_0x57e5ec?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ie,'fs':0xc}};}function he(_0x3925c8,_0x3ae598,_0x495412,_0x11329f=!0x1){const _0x5f2ccb=_0x3ac352;var _0x4f1ed8;let _0x71f771=((_0x4f1ed8=_0x3925c8[_0x5f2ccb(0x1aa)])==null?[]:_0x4f1ed8)[_0x5f2ccb(0x193)](_0x807b4e=>_0x807b4e[_0x5f2ccb(0x185)]>_0x3ae598&&_0x807b4e['startIndex']<_0x495412);_0x71f771[_0x5f2ccb(0x1a8)]((_0x5f3004,_0x2935ea)=>{const _0x163018=_0x5f2ccb;var _0x350562;_0x5f3004[_0x163018(0x18f)]={...(_0x350562=_0x5f3004[_0x163018(0x18f)])==null?{}:_0x350562,...E(_0x2935ea===0x0,_0x2935ea===_0x71f771[_0x163018(0x145)]-0x1,_0x11329f)};});}function ge(_0x301d92){const _0x4cfd9e=_0x3ac352;var _0x57f48f,_0x1ea57f;let _0x33a42f={..._0x301d92==null?{}:_0x301d92};return delete _0x33a42f[_0x4cfd9e(0x161)],delete _0x33a42f[_0x4cfd9e(0x18d)],delete _0x33a42f['spaceAbove'],delete _0x33a42f['spaceBelow'],((_0x57f48f=_0x33a42f[_0x4cfd9e(0x1a7)])==null?void 0x0:_0x57f48f['ff'])===ie&&((_0x1ea57f=_0x33a42f[_0x4cfd9e(0x1a7)])==null?void 0x0:_0x1ea57f['fs'])===0xc&&delete _0x33a42f[_0x4cfd9e(0x1a7)],_0x33a42f;}function _e(_0x27322d,_0x1bb9bc){const _0x4163dc=_0x3ac352;var _0x102fd6;let _0x3ae480=j(_0x27322d,_0x1bb9bc);return((_0x102fd6=_0x27322d['paragraphs'])==null?[]:_0x102fd6)['filter'](_0x528ff8=>_0x528ff8[_0x4163dc(0x185)]>_0x1bb9bc['startIndex']&&_0x528ff8[_0x4163dc(0x185)]<_0x3ae480);}function ve(_0x4844c6,_0x395b9b,_0x3de151){const _0x294df0=_0x3ac352;let _0x383798=A(_0x4844c6,_0x395b9b,_0x3de151),_0x3da265=_0x4844c6[_0x294df0(0x165)][_0x294df0(0x1b6)](_0x383798,_0x3de151['startIndex']);return Array[_0x294df0(0x1bc)](_0x3da265)['every'](_0xec22a5=>_0xec22a5===_0x1a5d93[_0x294df0(0x162)]||_0xec22a5===_0x1a5d93[_0x294df0(0x192)]);}function D(_0x25ff87){const _0x159e55=_0x3ac352;return _0x37bcba[_0x159e55(0x18b)](_0x25ff87);}function O(_0x28b206){const _0x2e3b9a=_0x3ac352;if(!_0x28b206[_0x2e3b9a(0x1ba)])throw Error(_0x2e3b9a(0x158));return _0x28b206[_0x2e3b9a(0x1ba)];}function ye(_0x46454a,_0xabcbb6,_0x2312df){const _0x35570f=_0x3ac352;if(_0xabcbb6==null||_0x2312df==null){let _0x26b8c6=xe(_0x46454a);return{'startOffset':_0x26b8c6,'endOffset':_0x26b8c6};}let _0x134547=Math[_0x35570f(0x1c1)](_0xabcbb6,_0x2312df),_0x34b196=Math[_0x35570f(0x14d)](_0xabcbb6,_0x2312df);if(_0x134547===_0x34b196){let _0x345f89=be(_0x46454a,_0x134547);return{'startOffset':_0x345f89,'endOffset':_0x345f89};}return Ce(_0x46454a,_0x134547,_0x34b196);}function be(_0x11b9c0,_0x23775c){const _0x30842b=_0x3ac352;return _0x23775c===0x0&&_0x11b9c0[_0x30842b(0x165)][0x0]===_0x1a5d93['PARAGRAPH']?0x1:_0x23775c;}function xe(_0x1b4274){const _0x4095d8=_0x3ac352;return _0x1b4274['dataStream'][_0x4095d8(0x17b)](_0x1a5d93[_0x4095d8(0x194)])?Math[_0x4095d8(0x14d)](0x0,_0x1b4274[_0x4095d8(0x165)][_0x4095d8(0x145)]-0x1):_0x1b4274['dataStream'][_0x4095d8(0x145)];}function Se(_0x50c9fa,_0x3a3da3,_0x39e559){const _0xb86f1f=_0x3ac352;var _0x44989e;let _0x5a50da=Math[_0xb86f1f(0x1c1)](_0x3a3da3,_0x39e559),_0x56102b=Math[_0xb86f1f(0x14d)](_0x3a3da3,_0x39e559);return!!((_0x44989e=_0x50c9fa[_0xb86f1f(0x1b2)])!=null&&_0x44989e[_0xb86f1f(0x178)](_0x3e73d0=>_0x5a50da>_0x3e73d0[_0xb86f1f(0x185)]&&_0x5a50da<_0x3e73d0[_0xb86f1f(0x19c)]||_0x56102b>_0x3e73d0['startIndex']&&_0x56102b<_0x3e73d0[_0xb86f1f(0x19c)]||_0x5a50da<=_0x3e73d0[_0xb86f1f(0x185)]&&_0x56102b>=_0x3e73d0[_0xb86f1f(0x19c)]));}function Ce(_0x3dbf16,_0x5d8613,_0x335a51){const _0x2745ec=_0x3ac352;var _0x46eca0,_0x5274ed;let _0x48e0c5=[...(_0x46eca0=_0x3dbf16[_0x2745ec(0x1aa)])==null?[]:_0x46eca0]['sort']((_0x2cbcfc,_0x1add98)=>_0x2cbcfc['startIndex']-_0x1add98[_0x2745ec(0x185)]),_0x5ed461=_0x48e0c5[_0x2745ec(0x189)]((_0x2028fa,_0x1fe15c)=>(_0x1fe15c===0x0?0x0:_0x48e0c5[_0x1fe15c-0x1][_0x2745ec(0x185)]+0x1)<=_0x5d8613&&_0x5d8613<=_0x2028fa[_0x2745ec(0x185)]),_0x2b8e43=(_0x5274ed=_0x48e0c5[_0x2745ec(0x189)](_0x5b8197=>_0x5b8197[_0x2745ec(0x185)]>=_0x335a51-0x1))==null?_0x48e0c5[_0x48e0c5[_0x2745ec(0x145)]-0x1]:_0x5274ed;return{'startOffset':_0x5ed461?k(_0x48e0c5,_0x5ed461):_0x5d8613,'endOffset':_0x2b8e43?_0x2b8e43[_0x2745ec(0x185)]+0x1:_0x335a51};}function k(_0xffd5f2,_0x75e9b3){const _0x36b785=_0x3ac352;let _0x140c81=_0xffd5f2[_0x36b785(0x14b)](_0x75e9b3);return _0x140c81>0x0?_0xffd5f2[_0x140c81-0x1][_0x36b785(0x185)]+0x1:0x0;}function A(_0x59e394,_0x13b8da,_0x43f4cc){const _0x3bb123=_0x3ac352;var _0xc2a70;return Math[_0x3bb123(0x14d)](k((_0xc2a70=_0x59e394[_0x3bb123(0x1aa)])==null?[]:_0xc2a70,_0x43f4cc),_0x13b8da[_0x3bb123(0x185)]+0x1);}function j(_0x3f9978,_0x4f4663){const _0x3ebd97=_0x3ac352;return _0x3f9978[_0x3ebd97(0x165)][_0x4f4663['endIndex']]===_0x1a5d93[_0x3ebd97(0x192)]?_0x4f4663[_0x3ebd97(0x19c)]:_0x3f9978[_0x3ebd97(0x165)][_0x4f4663[_0x3ebd97(0x19c)]+0x1]===_0x1a5d93['BLOCK_END']?_0x4f4663[_0x3ebd97(0x19c)]+0x1:_0x4f4663[_0x3ebd97(0x19c)];}function we(_0x27cac8,_0x3eb591,_0x44d1ae,_0x11e6f9){const _0x3378ff=_0x3ac352;var _0x33d44b,_0x18e99d;let _0x3b492d=j(_0x27cac8,_0x3eb591),_0x271b28=((_0x33d44b=_0x27cac8[_0x3378ff(0x1aa)])==null?[]:_0x33d44b)[_0x3378ff(0x189)](_0x55fb8a=>_0x55fb8a[_0x3378ff(0x185)]===_0x3b492d+0x1);if(!_0x271b28||_0x11e6f9!=null&&_0x271b28[_0x3378ff(0x185)]!==_0x11e6f9||_0x44d1ae<_0x3b492d||_0x44d1ae>_0x271b28['startIndex']+0x1||_0x27cac8[_0x3378ff(0x165)][_0x271b28['startIndex']]!==_0x1a5d93[_0x3378ff(0x15c)])return null;let _0x301329=k((_0x18e99d=_0x27cac8[_0x3378ff(0x1aa)])==null?[]:_0x18e99d,_0x271b28),_0x263691=_0x27cac8[_0x3378ff(0x165)][_0x3378ff(0x1b6)](_0x301329,_0x271b28['startIndex']);return Array[_0x3378ff(0x1bc)](_0x263691)['every'](_0x59a16b=>_0x59a16b===_0x1a5d93['BLOCK_END'])?{'paragraph':_0x271b28,'endTokenOffset':_0x3b492d}:null;}function M(_0x4eff9d,_0x56ba4c){const _0x1997d7=_0x3ac352;var _0x861f51;let _0x411c8e=j(_0x4eff9d,_0x56ba4c),_0x3ef51e=_0x4eff9d[_0x1997d7(0x165)][_0x411c8e+0x1];_0x3ef51e!==_0x1a5d93[_0x1997d7(0x194)]&&_0x3ef51e!==void 0x0||N(_0x4eff9d,_0x411c8e+0x1,_0x1a5d93[_0x1997d7(0x15c)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x45f844(new Set((_0x861f51=_0x4eff9d[_0x1997d7(0x1aa)])==null?void 0x0:_0x861f51[_0x1997d7(0x1ac)](_0x45ddc7=>_0x45ddc7['paragraphId'])))}]});}function N(_0x4a2d76,_0x20e055,_0x3dbcb6,_0x17d2bf={}){const _0x3d90fd=_0x3ac352;var _0x17e8b3,_0x13c105;if(_0x3dbcb6){if(_0x4a2d76[_0x3d90fd(0x165)]=''+_0x4a2d76[_0x3d90fd(0x165)]['slice'](0x0,_0x20e055)+_0x3dbcb6+_0x4a2d76[_0x3d90fd(0x165)][_0x3d90fd(0x1b6)](_0x20e055),Ee(_0x4a2d76,_0x20e055,_0x3dbcb6['length']),(_0x17e8b3=_0x17d2bf[_0x3d90fd(0x1aa)])!=null&&_0x17e8b3[_0x3d90fd(0x145)]){var _0x272c40;_0x4a2d76[_0x3d90fd(0x1aa)]=[...(_0x272c40=_0x4a2d76[_0x3d90fd(0x1aa)])==null?[]:_0x272c40,..._0x17d2bf[_0x3d90fd(0x1aa)][_0x3d90fd(0x1ac)](_0x428cdc=>({..._0x428cdc,'startIndex':_0x428cdc[_0x3d90fd(0x185)]+_0x20e055}))][_0x3d90fd(0x1a6)]((_0x17537d,_0xa4d9d3)=>_0x17537d['startIndex']-_0xa4d9d3['startIndex']);}if((_0x13c105=_0x17d2bf[_0x3d90fd(0x16c)])!=null&&_0x13c105[_0x3d90fd(0x145)]){var _0x54d54a;_0x4a2d76['blockRanges']=[...(_0x54d54a=_0x4a2d76[_0x3d90fd(0x16c)])==null?[]:_0x54d54a,..._0x17d2bf[_0x3d90fd(0x16c)][_0x3d90fd(0x1ac)](_0x31d198=>({..._0x31d198,'startIndex':_0x31d198['startIndex']+_0x20e055,'endIndex':_0x31d198['endIndex']+_0x20e055}))]['sort']((_0x3b08c6,_0x2660b8)=>_0x3b08c6[_0x3d90fd(0x185)]-_0x2660b8[_0x3d90fd(0x185)]);}}}function _0x13c3(_0x8948fa,_0x5a2af3){_0x8948fa=_0x8948fa-0x141;const _0x3e258b=_0x3e25();let _0x13c3f8=_0x3e258b[_0x8948fa];return _0x13c3f8;}function Te(_0x54b552,_0x38bd80,_0x3a7c87){const _0x244414=_0x3ac352;let _0x324f1b=_0x3a7c87-_0x38bd80;_0x54b552[_0x244414(0x165)]=''+_0x54b552[_0x244414(0x165)][_0x244414(0x1b6)](0x0,_0x38bd80)+_0x54b552[_0x244414(0x165)][_0x244414(0x1b6)](_0x3a7c87),De(_0x54b552,_0x38bd80,_0x324f1b);}function Ee(_0x55e5af,_0x7331b0,_0x1aa801){const _0x534254=_0x3ac352;_0x55e5af['paragraphs']=P(_0x55e5af[_0x534254(0x1aa)],_0x7331b0,_0x1aa801),_0x55e5af['sectionBreaks']=P(_0x55e5af[_0x534254(0x1ae)],_0x7331b0,_0x1aa801),_0x55e5af[_0x534254(0x141)]=P(_0x55e5af[_0x534254(0x141)],_0x7331b0,_0x1aa801),_0x55e5af['textRuns']=Oe(_0x55e5af[_0x534254(0x16d)],_0x7331b0,_0x1aa801),_0x55e5af[_0x534254(0x1b2)]=I(_0x55e5af[_0x534254(0x1b2)],_0x7331b0,_0x1aa801),_0x55e5af[_0x534254(0x150)]=I(_0x55e5af['customRanges'],_0x7331b0,_0x1aa801),_0x55e5af[_0x534254(0x146)]=I(_0x55e5af['customDecorations'],_0x7331b0,_0x1aa801),_0x55e5af[_0x534254(0x16c)]=I(_0x55e5af[_0x534254(0x16c)],_0x7331b0,_0x1aa801);}function De(_0x4ba812,_0x4e7456,_0x25b895){const _0x3a422d=_0x3ac352;var _0x4aa353,_0x1b7534;_0x4ba812[_0x3a422d(0x1aa)]=F(_0x4ba812[_0x3a422d(0x1aa)],_0x4e7456,_0x25b895),_0x4ba812[_0x3a422d(0x1ae)]=F(_0x4ba812[_0x3a422d(0x1ae)],_0x4e7456,_0x25b895),_0x4ba812[_0x3a422d(0x141)]=F(_0x4ba812[_0x3a422d(0x141)],_0x4e7456,_0x25b895),_0x4ba812[_0x3a422d(0x16d)]=(_0x4aa353=L((_0x1b7534=_0x4ba812[_0x3a422d(0x16d)])==null?void 0x0:_0x1b7534[_0x3a422d(0x1ac)](_0x581e9a=>({..._0x581e9a,'startIndex':_0x581e9a['st'],'endIndex':_0x581e9a['ed']})),_0x4e7456,_0x25b895))==null?void 0x0:_0x4aa353['map'](_0x416956=>{let {startIndex:_0x541c0e,endIndex:_0x5571b8,..._0x149db2}=_0x416956;return{..._0x149db2,'st':_0x541c0e,'ed':_0x5571b8};}),_0x4ba812[_0x3a422d(0x1b2)]=L(_0x4ba812['tables'],_0x4e7456,_0x25b895),_0x4ba812[_0x3a422d(0x150)]=L(_0x4ba812[_0x3a422d(0x150)],_0x4e7456,_0x25b895),_0x4ba812[_0x3a422d(0x146)]=L(_0x4ba812[_0x3a422d(0x146)],_0x4e7456,_0x25b895),_0x4ba812[_0x3a422d(0x16c)]=L(_0x4ba812[_0x3a422d(0x16c)],_0x4e7456,_0x25b895);}function P(_0x157af9,_0x3a4e85,_0x517163){const _0x5f10e7=_0x3ac352;return _0x157af9==null?void 0x0:_0x157af9[_0x5f10e7(0x1ac)](_0x55e7d1=>_0x55e7d1['startIndex']>=_0x3a4e85?{..._0x55e7d1,'startIndex':_0x55e7d1[_0x5f10e7(0x185)]+_0x517163}:_0x55e7d1);}function F(_0x203501,_0x24e435,_0x13dc06){const _0x5cd69c=_0x3ac352;let _0x2caecb=_0x24e435+_0x13dc06;return _0x203501==null?void 0x0:_0x203501[_0x5cd69c(0x1ac)](_0x5d5149=>_0x5d5149[_0x5cd69c(0x185)]>=_0x24e435&&_0x5d5149['startIndex']<_0x2caecb?null:_0x5d5149['startIndex']>=_0x2caecb?{..._0x5d5149,'startIndex':_0x5d5149['startIndex']-_0x13dc06}:_0x5d5149)['filter'](_0x107d32=>_0x107d32!=null);}function Oe(_0x232e1a,_0x5147b1,_0x5d31e6){const _0x214300=_0x3ac352;return _0x232e1a==null?void 0x0:_0x232e1a[_0x214300(0x1ac)](_0x5357af=>_0x5357af['st']>=_0x5147b1?{..._0x5357af,'st':_0x5357af['st']+_0x5d31e6,'ed':_0x5357af['ed']+_0x5d31e6}:_0x5357af['ed']>_0x5147b1?{..._0x5357af,'ed':_0x5357af['ed']+_0x5d31e6}:_0x5357af);}function I(_0x564077,_0x25bd57,_0x23c9de){const _0x1acd5d=_0x3ac352;return _0x564077==null?void 0x0:_0x564077[_0x1acd5d(0x1ac)](_0x49aab0=>_0x49aab0[_0x1acd5d(0x185)]>=_0x25bd57?{..._0x49aab0,'startIndex':_0x49aab0[_0x1acd5d(0x185)]+_0x23c9de,'endIndex':_0x49aab0[_0x1acd5d(0x19c)]+_0x23c9de}:_0x49aab0[_0x1acd5d(0x19c)]>=_0x25bd57?{..._0x49aab0,'endIndex':_0x49aab0[_0x1acd5d(0x19c)]+_0x23c9de}:_0x49aab0);}function L(_0x27ce0e,_0x108759,_0x562959){const _0x2bb38b=_0x3ac352;let _0x272320=_0x108759+_0x562959;return _0x27ce0e==null?void 0x0:_0x27ce0e[_0x2bb38b(0x1ac)](_0x19210f=>_0x19210f[_0x2bb38b(0x185)]>=_0x108759&&_0x19210f[_0x2bb38b(0x19c)]<_0x272320?null:_0x19210f[_0x2bb38b(0x185)]>=_0x272320?{..._0x19210f,'startIndex':_0x19210f[_0x2bb38b(0x185)]-_0x562959,'endIndex':_0x19210f['endIndex']-_0x562959}:_0x19210f[_0x2bb38b(0x19c)]>=_0x108759?{..._0x19210f,'startIndex':_0x19210f['startIndex']<_0x108759?_0x19210f[_0x2bb38b(0x185)]:_0x108759,'endIndex':Math[_0x2bb38b(0x14d)](_0x108759,_0x19210f['endIndex']-_0x562959)}:_0x19210f)[_0x2bb38b(0x193)](_0x10d905=>_0x10d905!=null);}function R(_0x158a77,_0x32fea2,_0x4bf318,_0x1d5375){const _0x57128e=_0x3ac352;_0x158a77==null||_0x158a77[_0x57128e(0x1a8)](_0x327a29=>{const _0x5c0e4b=_0x57128e;_0x327a29[_0x5c0e4b(0x185)]>=_0x32fea2&&_0x327a29[_0x5c0e4b(0x185)]<_0x4bf318&&(_0x327a29[_0x5c0e4b(0x185)]+=_0x1d5375);});}function ke(_0x137591,_0x143ff5,_0x4b6693,_0x26ae7e){const _0x2eee16=_0x3ac352;_0x137591==null||_0x137591[_0x2eee16(0x1a8)](_0x3c24ab=>{_0x3c24ab['st']>=_0x143ff5&&_0x3c24ab['st']<_0x4b6693?(_0x3c24ab['st']+=_0x26ae7e,_0x3c24ab['ed']+=_0x26ae7e):_0x3c24ab['ed']>_0x143ff5&&_0x3c24ab['ed']<_0x4b6693&&(_0x3c24ab['ed']+=_0x26ae7e);});}function z(_0x36a3c1,_0x446bc3,_0x4293cb,_0x551a6d){const _0x113fd4=_0x3ac352;_0x36a3c1==null||_0x36a3c1[_0x113fd4(0x1a8)](_0x31f495=>{const _0x240f76=_0x113fd4;_0x31f495['startIndex']>=_0x446bc3&&_0x31f495[_0x240f76(0x185)]<_0x4293cb?(_0x31f495[_0x240f76(0x185)]+=_0x551a6d,_0x31f495[_0x240f76(0x19c)]+=_0x551a6d):_0x31f495[_0x240f76(0x19c)]>_0x446bc3&&_0x31f495[_0x240f76(0x19c)]<_0x4293cb&&(_0x31f495['endIndex']+=_0x551a6d);});}function B(_0x331ce7){'@babel/helpers - typeof';const _0x4fdd6e=_0x3ac352;return B=typeof Symbol==_0x4fdd6e(0x191)&&typeof Symbol[_0x4fdd6e(0x147)]==_0x4fdd6e(0x16b)?function(_0x1a49cc){return typeof _0x1a49cc;}:function(_0xc1d66f){const _0x540585=_0x4fdd6e;return _0xc1d66f&&typeof Symbol==_0x540585(0x191)&&_0xc1d66f[_0x540585(0x199)]===Symbol&&_0xc1d66f!==Symbol['prototype']?_0x540585(0x16b):typeof _0xc1d66f;},B(_0x331ce7);}function Ae(_0x2207ea,_0x1f7274){const _0xf12adb=_0x3ac352;if(B(_0x2207ea)!='object'||!_0x2207ea)return _0x2207ea;var _0x4dff3c=_0x2207ea[Symbol[_0xf12adb(0x1b8)]];if(_0x4dff3c!==void 0x0){var _0x121f14=_0x4dff3c[_0xf12adb(0x1b5)](_0x2207ea,_0x1f7274||_0xf12adb(0x16e));if(B(_0x121f14)!=_0xf12adb(0x18e))return _0x121f14;throw TypeError(_0xf12adb(0x159));}return(_0x1f7274===_0xf12adb(0x171)?String:Number)(_0x2207ea);}function je(_0x57ca06){const _0x35e018=_0x3ac352;var _0x54a164=Ae(_0x57ca06,_0x35e018(0x171));return B(_0x54a164)=='symbol'?_0x54a164:_0x54a164+'';}function _0x3e25(){const _0x4638e0=['SECTION_BREAK','onStarting','javascript','endOffset','_injector','constructor','metadata','docs-code.command.cancel-empty-paragraph','endIndex','next','_change$','syncExecuteCommand','_setResource','nextDocumentData','2416HlmlVv','6455aTbgWa','4940792gBQlJY','compose','sort','textStyle','forEach','unitId','paragraphs','model','map','@univerjs-pro/docs-code','sectionBreaks','asObservable','_config','dispose','tables','decorate','get','call','slice','spaceBelow','toPrimitive','consumeInsertRange','body','blockId','from','disposeWithMe','0.25.0-insiders.20260618-d756bd0','39672479LjqxhT','direction','min','getSnapshot','CODE','complete','getTextRanges','deserialize','customBlocks','_commandService','removeUnit','reduce','length','customDecorations','iterator','add','_docsCodeModel','right','indexOf','cursorOffset','max','paragraphId','fromEntries','customRanges','monospace','7ZGPSJB','docs-code.command.insert-below','setCodeConfig','serialize','_resourceManagerService','4130950wCWTkv','Document\x20body\x20is\x20required','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','blockType','_initResource','PARAGRAPH','UNIVER_DOC','previousDocumentData','docs-code.config','config','indentEnd','BLOCK_START','paragraphStartIndex','registerCommand','dataStream','entries','60158LBhrCr','endTokenOffset','448344QJDJUo','docs-code.command.insert','symbol','blockRanges','textRuns','default','COMMAND','getUniverDocInstance','string','DOC_CODE_PLUGIN','parse','set','paragraph','codes','getInstance','some','getOwnPropertyDescriptor','documentData','endsWith','41OAqbve','955494csjmMS','27JPqQGI','startOffset','getCurrentUnitOfType','diffValue','_resources','range','delete','startIndex','docs-code.command.update','defineProperty','getUnitId','find','nextMetadata','deepClone','commandService','indentStart','object','paragraphStyle','clear','function','BLOCK_END','filter'];_0x3e25=function(){return _0x4638e0;};return _0x3e25();}function V(_0x2dfea7,_0x3a2ec0,_0x39abdb){const _0x3e7066=_0x3ac352;return(_0x3a2ec0=je(_0x3a2ec0))in _0x2dfea7?Object[_0x3e7066(0x187)](_0x2dfea7,_0x3a2ec0,{'value':_0x39abdb,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2dfea7[_0x3a2ec0]=_0x39abdb,_0x2dfea7;}var H=class extends _0x17af83{constructor(..._0x3f3a1d){const _0x3a5850=_0x3ac352;super(..._0x3f3a1d),V(this,'_resources',new Map()),V(this,_0x3a5850(0x19e),new _0x43de51()),V(this,'change$',this[_0x3a5850(0x19e)][_0x3a5850(0x1af)]());}['getCodeConfig'](_0x346a8b,_0xa46d98){const _0x3019df=_0x3ac352;return w(this[_0x3019df(0x182)]['get'](_0x346a8b))[_0x3019df(0x176)][_0xa46d98];}[_0x3ac352(0x154)](_0xe62832,_0x4cf88d,_0x16af60){const _0x138236=_0x3ac352;this[_0x138236(0x1a0)](_0xe62832,_0x4cf88d,T(this[_0x138236(0x182)][_0x138236(0x1b4)](_0xe62832),_0x4cf88d,_0x16af60));}['removeCode'](_0x58f94a,_0x152230){const _0x522a06=_0x3ac352;this[_0x522a06(0x1a0)](_0x58f94a,_0x152230,re(this[_0x522a06(0x182)]['get'](_0x58f94a),_0x152230));}[_0x3ac352(0x155)](_0x3e6944){const _0x522b6f=_0x3ac352;return w(this[_0x522b6f(0x182)][_0x522b6f(0x1b4)](_0x3e6944));}[_0x3ac352(0x1c6)](_0x56cff5,_0x50666a){const _0x1b0116=_0x3ac352;this[_0x1b0116(0x182)][_0x1b0116(0x174)](_0x56cff5,w(_0x50666a)),this[_0x1b0116(0x19e)][_0x1b0116(0x19d)]({'unitId':_0x56cff5});}[_0x3ac352(0x143)](_0x5dfe57){const _0x22b373=_0x3ac352;this[_0x22b373(0x182)][_0x22b373(0x184)](_0x5dfe57),this[_0x22b373(0x19e)]['next']({'unitId':_0x5dfe57});}[_0x3ac352(0x1b1)](){const _0x238e62=_0x3ac352;super['dispose'](),this[_0x238e62(0x182)][_0x238e62(0x190)](),this['_change$'][_0x238e62(0x1c4)]();}[_0x3ac352(0x1a0)](_0x5b0115,_0x5dcfca,_0x2a63a5){const _0x3b5808=_0x3ac352;this[_0x3b5808(0x182)][_0x3b5808(0x174)](_0x5b0115,_0x2a63a5),this[_0x3b5808(0x19e)][_0x3b5808(0x19d)]({'unitId':_0x5b0115,'blockId':_0x5dcfca});}};const Me={'id':_0x3ac352(0x153),'type':_0x3d5940['COMMAND'],'handler':_0x23cad4=>{const _0x5a0675=_0x3ac352;let _0x386007=Le(_0x23cad4);if(_0x386007)return _0x23cad4[_0x5a0675(0x1b4)](_0x293a14)['syncExecuteCommand'](U['id'],{'startOffset':_0x386007[_0x5a0675(0x17f)],'endOffset':_0x386007[_0x5a0675(0x197)],'unitId':_0x386007[_0x5a0675(0x1a9)]});let _0x1ec025=Re(_0x23cad4);if(!_0x1ec025)return!0x1;let _0x143dce=_0x1ec025[_0x5a0675(0x185)]+0x1;return _0x23cad4[_0x5a0675(0x1b4)](_0x293a14)[_0x5a0675(0x19f)](U['id'],{'startOffset':_0x143dce,'endOffset':_0x143dce});}},Ne={'id':'docs-code.command.consume-boundary-delete','type':_0x3d5940[_0x3ac352(0x16f)],'handler':()=>!0x0},U={'id':_0x3ac352(0x16a),'type':_0x3d5940[_0x3ac352(0x16f)],'handler':(_0x3cf63a,_0x3c661c)=>{const _0x4a6db6=_0x3ac352;var _0x49265b,_0x30c3e0,_0x23f10b;let _0x28c23b=W(_0x3cf63a,_0x3c661c==null?void 0x0:_0x3c661c[_0x4a6db6(0x1a9)]);if(!_0x28c23b)return!0x1;let _0x701557=G(_0x3cf63a),_0x1f8088=ae({'blockId':(_0x49265b=_0x3c661c==null?void 0x0:_0x3c661c[_0x4a6db6(0x1bb)])==null?_0x1a6517(0x6):_0x49265b,'config':_0x3c661c==null?void 0x0:_0x3c661c['config'],'documentData':_0x28c23b[_0x4a6db6(0x15e)],'endOffset':(_0x30c3e0=_0x3c661c==null?void 0x0:_0x3c661c[_0x4a6db6(0x197)])==null?_0x701557==null?void 0x0:_0x701557['endOffset']:_0x30c3e0,'metadata':_0x28c23b[_0x4a6db6(0x1ab)][_0x4a6db6(0x155)](_0x28c23b[_0x4a6db6(0x1a9)]),'startOffset':(_0x23f10b=_0x3c661c==null?void 0x0:_0x3c661c[_0x4a6db6(0x17f)])==null?_0x701557==null?void 0x0:_0x701557[_0x4a6db6(0x17f)]:_0x23f10b}),_0x4827d6=q(_0x28c23b[_0x4a6db6(0x18c)],_0x28c23b['unitId'],_0x28c23b[_0x4a6db6(0x15e)],_0x1f8088[_0x4a6db6(0x1a1)],_0x1f8088[_0x4a6db6(0x14c)]);return _0x4827d6&&_0x1f8088[_0x4a6db6(0x18a)]&&_0x28c23b['model'][_0x4a6db6(0x1c6)](_0x28c23b['unitId'],_0x1f8088['nextMetadata']),_0x4827d6;}},Pe={'id':_0x3ac352(0x186),'type':_0x3d5940[_0x3ac352(0x16f)],'handler':(_0x5ceec3,_0x7a9d3d)=>{const _0x20fe2e=_0x3ac352;if(!_0x7a9d3d)return!0x1;let _0x42fd8b=W(_0x5ceec3,_0x7a9d3d[_0x20fe2e(0x1a9)]);if(!_0x42fd8b)return!0x1;let _0x224c20=ce({'blockId':_0x7a9d3d[_0x20fe2e(0x1bb)],'config':_0x7a9d3d[_0x20fe2e(0x160)],'documentData':_0x42fd8b[_0x20fe2e(0x15e)],'metadata':_0x42fd8b['model'][_0x20fe2e(0x155)](_0x42fd8b[_0x20fe2e(0x1a9)])});return _0x224c20[_0x20fe2e(0x18a)]&&_0x42fd8b['model']['deserialize'](_0x42fd8b[_0x20fe2e(0x1a9)],_0x224c20[_0x20fe2e(0x18a)]),!0x0;}},Fe={'id':'docs-code.command.exit','type':_0x3d5940['COMMAND'],'handler':(_0x3b56d7,_0x1f1326)=>{const _0x241bc6=_0x3ac352;var _0x2176be,_0x168d0e;let _0x11f150=W(_0x3b56d7,_0x1f1326==null?void 0x0:_0x1f1326['unitId']);if(!_0x11f150)return!0x1;let _0x853617=(_0x2176be=_0x1f1326==null?void 0x0:_0x1f1326[_0x241bc6(0x14c)])==null?(_0x168d0e=G(_0x3b56d7))==null?void 0x0:_0x168d0e[_0x241bc6(0x17f)]:_0x2176be;if(_0x853617==null)return!0x1;let _0x2afd5c=le({'cursorOffset':_0x853617,'documentData':_0x11f150[_0x241bc6(0x15e)]});return _0x2afd5c?q(_0x11f150[_0x241bc6(0x18c)],_0x11f150[_0x241bc6(0x1a9)],_0x11f150[_0x241bc6(0x15e)],_0x2afd5c[_0x241bc6(0x1a1)],_0x2afd5c['cursorOffset']):!0x1;}},Ie={'id':_0x3ac352(0x19b),'type':_0x3d5940['COMMAND'],'handler':(_0x4c96ea,_0x3328dc)=>{const _0x14806e=_0x3ac352;var _0x4f72ec,_0x1ffec;let _0x57e69e=W(_0x4c96ea,_0x3328dc==null?void 0x0:_0x3328dc[_0x14806e(0x1a9)]);if(!_0x57e69e)return!0x1;let _0x13fae7=(_0x4f72ec=_0x3328dc==null?void 0x0:_0x3328dc[_0x14806e(0x14c)])==null?(_0x1ffec=G(_0x4c96ea))==null?void 0x0:_0x1ffec['startOffset']:_0x4f72ec;if(_0x13fae7==null)return!0x1;let _0x17367e=ue({'cursorOffset':_0x13fae7,'documentData':_0x57e69e[_0x14806e(0x15e)],'paragraphStartIndex':_0x3328dc==null?void 0x0:_0x3328dc[_0x14806e(0x163)]});return _0x17367e?q(_0x57e69e[_0x14806e(0x18c)],_0x57e69e[_0x14806e(0x1a9)],_0x57e69e[_0x14806e(0x15e)],_0x17367e[_0x14806e(0x1a1)],_0x17367e[_0x14806e(0x14c)]):!0x1;}};function W(_0x18514d,_0x15355d){const _0x2d20ac=_0x3ac352;let _0x1de046=_0x18514d[_0x2d20ac(0x1b4)](_0x496553),_0x3c111d=_0x15355d?_0x1de046[_0x2d20ac(0x170)](_0x15355d):_0x1de046[_0x2d20ac(0x180)](_0x5edc9c['UNIVER_DOC']);return _0x3c111d?{'commandService':_0x18514d[_0x2d20ac(0x1b4)](_0x293a14),'model':_0x18514d['get'](H),'previousDocumentData':_0x3c111d[_0x2d20ac(0x1c2)](),'unitId':_0x3c111d[_0x2d20ac(0x188)]()}:null;}function G(_0x2b5b41){const _0x34aeb0=_0x3ac352;var _0x365e55;return(_0x365e55=_0x2b5b41[_0x34aeb0(0x1b4)](_0x1dfcf7)[_0x34aeb0(0x1c5)]())==null?void 0x0:_0x365e55[0x0];}function Le(_0x2c7416){const _0x248ada=_0x3ac352;var _0x219251;let _0xd9ab10=(_0x219251=_0x2c7416[_0x248ada(0x1b4)](_0x496553)[_0x248ada(0x180)](_0x5edc9c[_0x248ada(0x15d)]))==null?void 0x0:_0x219251[_0x248ada(0x188)]();try{return _0x2c7416[_0x248ada(0x1b4)](_0x4a65e7)[_0x248ada(0x1b9)](_0xd9ab10);}catch{return null;}}function Re(_0x5eda21){const _0x4a2dbc=_0x3ac352;var _0x34cbf0,_0x165b36,_0x5c767c;let _0x14a801=G(_0x5eda21);if(!_0x14a801)return null;let _0x25b879=_0x5eda21[_0x4a2dbc(0x1b4)](_0x496553)[_0x4a2dbc(0x180)](_0x5edc9c[_0x4a2dbc(0x15d)]),_0x4f5613=_0x25b879==null?void 0x0:_0x25b879['getBody']();return _0x4f5613?(_0x34cbf0=_0x5010d2[_0x4a2dbc(0x183)]['getParagraphsInRange'](_0x14a801,(_0x165b36=_0x4f5613[_0x4a2dbc(0x1aa)])==null?[]:_0x165b36,(_0x5c767c=_0x4f5613[_0x4a2dbc(0x165)])==null?'':_0x5c767c)[0x0])==null?null:_0x34cbf0:null;}function ze(_0x4eb7ce,_0x26fd14){const _0x1bc1f0=_0x3ac352;var _0x3fe09f,_0x1fc248,_0x19b2a2,_0x40569b,_0x5d32be,_0x2cebaa,_0x53acec,_0x38d9df,_0x593835,_0x309619,_0x185f1d,_0x199a22,_0x2bea36,_0x4c0643,_0x549587,_0x525fee,_0x1e7c22,_0x247d62;let _0x5f5ee=_0x490e0f[_0x1bc1f0(0x177)]();return[K(_0x5f5ee,['body',_0x1bc1f0(0x165)],(_0x3fe09f=_0x4eb7ce[_0x1bc1f0(0x1ba)])==null?void 0x0:_0x3fe09f[_0x1bc1f0(0x165)],(_0x1fc248=_0x26fd14[_0x1bc1f0(0x1ba)])==null?void 0x0:_0x1fc248[_0x1bc1f0(0x165)]),K(_0x5f5ee,[_0x1bc1f0(0x1ba),_0x1bc1f0(0x1aa)],(_0x19b2a2=_0x4eb7ce[_0x1bc1f0(0x1ba)])==null?void 0x0:_0x19b2a2[_0x1bc1f0(0x1aa)],(_0x40569b=_0x26fd14['body'])==null?void 0x0:_0x40569b[_0x1bc1f0(0x1aa)]),K(_0x5f5ee,[_0x1bc1f0(0x1ba),'sectionBreaks'],(_0x5d32be=_0x4eb7ce['body'])==null?void 0x0:_0x5d32be[_0x1bc1f0(0x1ae)],(_0x2cebaa=_0x26fd14['body'])==null?void 0x0:_0x2cebaa['sectionBreaks']),K(_0x5f5ee,[_0x1bc1f0(0x1ba),'textRuns'],(_0x53acec=_0x4eb7ce[_0x1bc1f0(0x1ba)])==null?void 0x0:_0x53acec[_0x1bc1f0(0x16d)],(_0x38d9df=_0x26fd14[_0x1bc1f0(0x1ba)])==null?void 0x0:_0x38d9df[_0x1bc1f0(0x16d)]),K(_0x5f5ee,['body',_0x1bc1f0(0x141)],(_0x593835=_0x4eb7ce['body'])==null?void 0x0:_0x593835[_0x1bc1f0(0x141)],(_0x309619=_0x26fd14['body'])==null?void 0x0:_0x309619[_0x1bc1f0(0x141)]),K(_0x5f5ee,[_0x1bc1f0(0x1ba),_0x1bc1f0(0x150)],(_0x185f1d=_0x4eb7ce[_0x1bc1f0(0x1ba)])==null?void 0x0:_0x185f1d[_0x1bc1f0(0x150)],(_0x199a22=_0x26fd14[_0x1bc1f0(0x1ba)])==null?void 0x0:_0x199a22[_0x1bc1f0(0x150)]),K(_0x5f5ee,[_0x1bc1f0(0x1ba),_0x1bc1f0(0x146)],(_0x2bea36=_0x4eb7ce[_0x1bc1f0(0x1ba)])==null?void 0x0:_0x2bea36['customDecorations'],(_0x4c0643=_0x26fd14[_0x1bc1f0(0x1ba)])==null?void 0x0:_0x4c0643[_0x1bc1f0(0x146)]),K(_0x5f5ee,[_0x1bc1f0(0x1ba),_0x1bc1f0(0x1b2)],(_0x549587=_0x4eb7ce[_0x1bc1f0(0x1ba)])==null?void 0x0:_0x549587[_0x1bc1f0(0x1b2)],(_0x525fee=_0x26fd14[_0x1bc1f0(0x1ba)])==null?void 0x0:_0x525fee[_0x1bc1f0(0x1b2)]),K(_0x5f5ee,['body','blockRanges'],(_0x1e7c22=_0x4eb7ce[_0x1bc1f0(0x1ba)])==null?void 0x0:_0x1e7c22[_0x1bc1f0(0x16c)],(_0x247d62=_0x26fd14['body'])==null?void 0x0:_0x247d62[_0x1bc1f0(0x16c)])][_0x1bc1f0(0x193)](Boolean)[_0x1bc1f0(0x144)]((_0x49d1e3,_0x19cd90)=>_0x490e0f[_0x1bc1f0(0x1a5)](_0x49d1e3,_0x19cd90),null);}function K(_0x97d15a,_0x409a02,_0x2899f3,_0x46ecba){const _0x274639=_0x3ac352;return _0x37bcba[_0x274639(0x181)](_0x2899f3,_0x46ecba)?null:_0x97d15a['replaceOp'](_0x409a02,_0x2899f3,_0x46ecba);}function q(_0x798c3b,_0x8aab4e,_0x19543a,_0xd0be15,_0x529da3){const _0x2d3106=_0x3ac352;let _0x1a220a=ze(_0x19543a,_0xd0be15);return _0x1a220a?!!_0x798c3b[_0x2d3106(0x19f)](_0x4b6c31['id'],{'unitId':_0x8aab4e,'actions':_0x1a220a,'textRanges':[{'startOffset':_0x529da3,'endOffset':_0x529da3,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const J=_0x3ac352(0x172);var Be=_0x3ac352(0x1ad),Ve=_0x3ac352(0x1be);const Y={};function X(_0x3d19d9,_0x404be8){return function(_0x15e8cf,_0x4aa07a){_0x404be8(_0x15e8cf,_0x4aa07a,_0x3d19d9);};}function Z(_0x1ac39c,_0x80db0d,_0x425b30,_0x45d879){const _0x15fb2d=_0x3ac352;var _0x1547e1=arguments[_0x15fb2d(0x145)],_0x4de8b5=_0x1547e1<0x3?_0x80db0d:_0x45d879===null?_0x45d879=Object[_0x15fb2d(0x179)](_0x80db0d,_0x425b30):_0x45d879,_0x5b725b;if(typeof Reflect=='object'&&typeof Reflect[_0x15fb2d(0x1b3)]==_0x15fb2d(0x191))_0x4de8b5=Reflect['decorate'](_0x1ac39c,_0x80db0d,_0x425b30,_0x45d879);else{for(var _0xbe7b5d=_0x1ac39c[_0x15fb2d(0x145)]-0x1;_0xbe7b5d>=0x0;_0xbe7b5d--)(_0x5b725b=_0x1ac39c[_0xbe7b5d])&&(_0x4de8b5=(_0x1547e1<0x3?_0x5b725b(_0x4de8b5):_0x1547e1>0x3?_0x5b725b(_0x80db0d,_0x425b30,_0x4de8b5):_0x5b725b(_0x80db0d,_0x425b30))||_0x4de8b5);}return _0x1547e1>0x3&&_0x4de8b5&&Object['defineProperty'](_0x80db0d,_0x425b30,_0x4de8b5),_0x4de8b5;}let Q=class extends _0x17af83{constructor(_0x66484e,_0x77cf0a){const _0x986a19=_0x3ac352;super(),this[_0x986a19(0x156)]=_0x66484e,this[_0x986a19(0x149)]=_0x77cf0a,this[_0x986a19(0x15b)]();}[_0x3ac352(0x15b)](){const _0xf492c7=_0x3ac352;this[_0xf492c7(0x1bd)](this[_0xf492c7(0x156)]['registerPluginResource']({'pluginName':J,'businesses':[_0x5edc9c[_0xf492c7(0x15d)]],'toJson':_0x3bbb16=>JSON['stringify'](this[_0xf492c7(0x149)][_0xf492c7(0x155)](_0x3bbb16)),'parseJson':_0x5c2293=>w(JSON[_0xf492c7(0x173)](_0x5c2293)),'onLoad':(_0xf673ae,_0x487884)=>this[_0xf492c7(0x149)][_0xf492c7(0x1c6)](_0xf673ae,_0x487884),'onUnLoad':_0x5d101f=>this[_0xf492c7(0x149)]['removeUnit'](_0x5d101f)}));}};Q=Z([X(0x0,_0x2eca2),X(0x1,_0x59a8b9(H))],Q);let $=class extends _0x2f2fe4{constructor(_0x2ad31f=Y,_0x4dff91,_0x444c0e,_0x132cba){const _0x58ef97=_0x3ac352;super(),this[_0x58ef97(0x1b0)]=_0x2ad31f,this[_0x58ef97(0x198)]=_0x4dff91,this[_0x58ef97(0x142)]=_0x444c0e,this['_configService']=_0x132cba;let {..._0x422d6f}=_0xdd2d82({},Y,this[_0x58ef97(0x1b0)]);this['_configService']['setConfig'](_0x58ef97(0x15f),_0x422d6f);}[_0x3ac352(0x195)](){const _0x1afb20=_0x3ac352;this[_0x1afb20(0x198)][_0x1afb20(0x148)]([H]),this[_0x1afb20(0x198)]['add']([Q]),this[_0x1afb20(0x198)][_0x1afb20(0x1b4)](H),this[_0x1afb20(0x198)]['get'](Q),[U,Me,Pe,Fe,Ie,Ne][_0x1afb20(0x1a8)](_0x3e2339=>this['disposeWithMe'](this[_0x1afb20(0x142)][_0x1afb20(0x164)](_0x3e2339)));}};V($,'pluginName',J),V($,'packageName',Be),V($,'version',Ve),V($,'type',_0x5edc9c[_0x3ac352(0x15d)]),$=Z([_0x55cbf0(_0x59b58d,_0x23fd2b),X(0x1,_0x59a8b9(_0x5e28cb)),X(0x2,_0x293a14),X(0x3,_0x317be4)],$);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 _0x3c48(){var _0x52bbc3=['symbol','object','string','Inject','findCodeByText','6XHLmJX','608019EPKYCn','getConfig','_createFDocumentCode','ICommandService','_document','UniverDocsFacade','toPrimitive','Module','prototype','getCode','filter','map','startIndex','find','DocsCodeCancelEmptyParagraphCommand','call','getKey','UniverProDocsCode','getCodeAt','UniverCore','createInstance','UniverProDocsCodeFacade','BLOCK_START','defineProperty','getId','7476155jzERxr','length','endIndex','default','from','775544wVidkF','CODE','toStringTag','@univerjs/core','getType','DocsCodeModel','findCodes','_getBlockRanges','insertCode','save','some','blockRanges','getText','_blockId','join','SECTION_BREAK','2874957fSZZnS','@univerjs-pro/docs-code','DocsCodeExitCommand','getCodeConfig','DocumentBlockRangeType','DocsCodeInsertCommand','Injector','_getDocumentData','_unitId','get','DataStreamTreeTokenType','BLOCK_END','decorate','getCodes','260505NHkLGr','cancelEmptyParagraph','_injector','updateConfig','exit','function','getRange','body','getOwnPropertyDescriptor','PARAGRAPH','constructor','1465330kzWCIT','syncExecuteCommand','text','656payeAR','includes','_getBlockRange','DocsCodeUpdateCommand','blockType','describe','2956688tIgtnr','slice','blockId','amd'];_0x3c48=function(){return _0x52bbc3;};return _0x3c48();}function _0x4557(_0x499993,_0xff2496){_0x499993=_0x499993-0xcf;var _0x3c48ca=_0x3c48();var _0x4557c1=_0x3c48ca[_0x499993];return _0x4557c1;}(function(_0x14f266,_0x490eb1){var _0x5556a5=_0x4557,_0x1e4e8b=_0x14f266();while(!![]){try{var _0x27ad18=parseInt(_0x5556a5(0x118))/0x1+-parseInt(_0x5556a5(0x105))/0x2+parseInt(_0x5556a5(0xec))/0x3+-parseInt(_0x5556a5(0x10e))/0x4+parseInt(_0x5556a5(0xd7))/0x5*(-parseInt(_0x5556a5(0x117))/0x6)+-parseInt(_0x5556a5(0xdc))/0x7+-parseInt(_0x5556a5(0x108))/0x8*(-parseInt(_0x5556a5(0xfa))/0x9);if(_0x27ad18===_0x490eb1)break;else _0x1e4e8b['push'](_0x1e4e8b['shift']());}catch(_0x46ff38){_0x1e4e8b['push'](_0x1e4e8b['shift']());}}}(_0x3c48,0xd2710),function(_0x17f5cb,_0x44b848){var _0x4f7e7a=_0x4557;typeof exports==_0x4f7e7a(0x113)&&typeof module<'u'?_0x44b848(exports,require('@univerjs-pro/docs-code'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define==_0x4f7e7a(0xff)&&define[_0x4f7e7a(0x111)]?define(['exports',_0x4f7e7a(0xed),_0x4f7e7a(0xdf),'@univerjs/docs/facade'],_0x44b848):(_0x17f5cb=typeof globalThis<'u'?globalThis:_0x17f5cb||self,_0x44b848(_0x17f5cb[_0x4f7e7a(0xd3)]={},_0x17f5cb[_0x4f7e7a(0xcf)],_0x17f5cb[_0x4f7e7a(0xd1)],_0x17f5cb[_0x4f7e7a(0x11d)]));}(this,function(_0x1680b3,_0xca1e67,_0x10200e,_0x17b188){var _0x293a8f=_0x4557;Object[_0x293a8f(0xd5)](_0x1680b3,Symbol[_0x293a8f(0xde)],{'value':_0x293a8f(0x11f)});function _0x32b475(_0x4743e1){'@babel/helpers - typeof';var _0x2d5c56=_0x293a8f;return _0x32b475=typeof Symbol==_0x2d5c56(0xff)&&typeof Symbol['iterator']==_0x2d5c56(0x112)?function(_0x46581c){return typeof _0x46581c;}:function(_0x192604){var _0x3d900d=_0x2d5c56;return _0x192604&&typeof Symbol==_0x3d900d(0xff)&&_0x192604[_0x3d900d(0x104)]===Symbol&&_0x192604!==Symbol[_0x3d900d(0x120)]?_0x3d900d(0x112):typeof _0x192604;},_0x32b475(_0x4743e1);}function _0x4c0023(_0xef4828,_0x1243d2){var _0x3f3925=_0x293a8f;if(_0x32b475(_0xef4828)!=_0x3f3925(0x113)||!_0xef4828)return _0xef4828;var _0x58da8a=_0xef4828[Symbol[_0x3f3925(0x11e)]];if(_0x58da8a!==void 0x0){var _0x45fb7e=_0x58da8a[_0x3f3925(0x127)](_0xef4828,_0x1243d2||_0x3f3925(0xda));if(_0x32b475(_0x45fb7e)!='object')return _0x45fb7e;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1243d2===_0x3f3925(0x114)?String:Number)(_0xef4828);}function _0x56fed1(_0x484e58){var _0x18083f=_0x293a8f,_0x541d4f=_0x4c0023(_0x484e58,_0x18083f(0x114));return _0x32b475(_0x541d4f)==_0x18083f(0x112)?_0x541d4f:_0x541d4f+'';}function _0x3395f5(_0x4f0cb6,_0x57be66,_0xdc7e2a){var _0x58cc3b=_0x293a8f;return(_0x57be66=_0x56fed1(_0x57be66))in _0x4f0cb6?Object[_0x58cc3b(0xd5)](_0x4f0cb6,_0x57be66,{'value':_0xdc7e2a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4f0cb6[_0x57be66]=_0xdc7e2a,_0x4f0cb6;}function _0x4c6c95(_0x3c594c,_0x45ffda){return function(_0xc33ae3,_0x120059){_0x45ffda(_0xc33ae3,_0x120059,_0x3c594c);};}function _0x23a5ff(_0x151d5e,_0x3b33d1,_0x6dfe47,_0x4e74d0){var _0x3e28d1=_0x293a8f,_0x3f7bc4=arguments[_0x3e28d1(0xd8)],_0x25dffc=_0x3f7bc4<0x3?_0x3b33d1:_0x4e74d0===null?_0x4e74d0=Object[_0x3e28d1(0x102)](_0x3b33d1,_0x6dfe47):_0x4e74d0,_0x32197a;if(typeof Reflect==_0x3e28d1(0x113)&&typeof Reflect[_0x3e28d1(0xf8)]==_0x3e28d1(0xff))_0x25dffc=Reflect[_0x3e28d1(0xf8)](_0x151d5e,_0x3b33d1,_0x6dfe47,_0x4e74d0);else{for(var _0x8664d0=_0x151d5e['length']-0x1;_0x8664d0>=0x0;_0x8664d0--)(_0x32197a=_0x151d5e[_0x8664d0])&&(_0x25dffc=(_0x3f7bc4<0x3?_0x32197a(_0x25dffc):_0x3f7bc4>0x3?_0x32197a(_0x3b33d1,_0x6dfe47,_0x25dffc):_0x32197a(_0x3b33d1,_0x6dfe47))||_0x25dffc);}return _0x3f7bc4>0x3&&_0x25dffc&&Object['defineProperty'](_0x3b33d1,_0x6dfe47,_0x25dffc),_0x25dffc;}let _0x300f74=class{constructor(_0x364555,_0x1eec32,_0x3b870c){var _0x482e00=_0x293a8f;this['_document']=_0x364555,this['_blockId']=_0x1eec32,this[_0x482e00(0xfc)]=_0x3b870c,_0x3395f5(this,_0x482e00(0xf4),void 0x0),this[_0x482e00(0xf4)]=this['_document'][_0x482e00(0xd6)]();}[_0x293a8f(0xd6)](){var _0x2ee471=_0x293a8f;return this[_0x2ee471(0xe9)];}[_0x293a8f(0x100)](){var _0x20b5f0=_0x293a8f;let _0x2e6128=this['_getBlockRange']();return _0x2e6128?{'blockId':_0x2e6128[_0x20b5f0(0x110)],'endIndex':_0x2e6128[_0x20b5f0(0xd9)],'startIndex':_0x2e6128[_0x20b5f0(0x124)]}:null;}[_0x293a8f(0xe8)](){var _0x357e22=_0x293a8f,_0x2d32c9;let _0x54face=this[_0x357e22(0x10a)](),_0x4c2632=(_0x2d32c9=this[_0x357e22(0xf3)]()[_0x357e22(0x101)])==null?void 0x0:_0x2d32c9['dataStream'];return!_0x54face||!_0x4c2632?'':_0x39e74b(_0x4c2632[_0x357e22(0x10f)](_0x54face['startIndex']+0x1,_0x54face[_0x357e22(0xd9)]));}[_0x293a8f(0x10d)](){var _0x57da06=_0x293a8f;let _0x46ece1=this[_0x57da06(0x100)]();return _0x46ece1?{..._0x46ece1,'config':this[_0x57da06(0x119)](),'text':this['getText'](),'type':_0x10200e[_0x57da06(0xf0)][_0x57da06(0xdd)]}:null;}[_0x293a8f(0x119)](){var _0x1ffee7=_0x293a8f;return(0x0,_0xca1e67['normalizeDocsCodeConfig'])(this['_injector']['get'](_0xca1e67[_0x1ffee7(0xe1)])[_0x1ffee7(0xef)](this[_0x1ffee7(0xf4)],this[_0x1ffee7(0xe9)]));}[_0x293a8f(0xfd)](_0x2fd6c4){var _0x19276c=_0x293a8f;return this['_injector'][_0x19276c(0xf5)](_0x10200e[_0x19276c(0x11b)])[_0x19276c(0x106)](_0xca1e67[_0x19276c(0x10b)]['id'],{'blockId':this[_0x19276c(0xe9)],'config':_0x2fd6c4['config'],'unitId':this[_0x19276c(0xf4)]});}[_0x293a8f(0xfe)](_0x340c1a){var _0x35faf7=_0x293a8f;return this[_0x35faf7(0xfc)]['get'](_0x10200e['ICommandService'])[_0x35faf7(0x106)](_0xca1e67[_0x35faf7(0xee)]['id'],{'cursorOffset':_0x340c1a,'unitId':this[_0x35faf7(0xf4)]});}[_0x293a8f(0xfb)](_0x5c4f27={}){var _0x3118a1=_0x293a8f;return this[_0x3118a1(0xfc)][_0x3118a1(0xf5)](_0x10200e[_0x3118a1(0x11b)])['syncExecuteCommand'](_0xca1e67[_0x3118a1(0x126)]['id'],{..._0x5c4f27,'unitId':this['_unitId']});}[_0x293a8f(0xf3)](){var _0x52197e=_0x293a8f;return this[_0x52197e(0x11c)][_0x52197e(0xe5)]();}[_0x293a8f(0x10a)](){var _0x40d44a=_0x293a8f,_0x243a7f;let _0x28a9e9=(_0x243a7f=this[_0x40d44a(0xf3)]()[_0x40d44a(0x101)])==null||(_0x243a7f=_0x243a7f[_0x40d44a(0xe7)])==null?void 0x0:_0x243a7f[_0x40d44a(0x125)](_0x4a8aa7=>_0x4a8aa7[_0x40d44a(0x110)]===this[_0x40d44a(0xe9)]&&_0x4a8aa7[_0x40d44a(0x10c)]===_0x10200e[_0x40d44a(0xf0)]['CODE']);return _0x28a9e9==null?null:_0x28a9e9;}};_0x300f74=_0x23a5ff([_0x4c6c95(0x2,(0x0,_0x10200e[_0x293a8f(0x115)])(_0x10200e[_0x293a8f(0xf2)]))],_0x300f74);function _0x39e74b(_0x52dd7f){var _0x52ba21=_0x293a8f;return Array[_0x52ba21(0xdb)](_0x52dd7f)['map'](_0x59430f=>_0x59430f===_0x10200e[_0x52ba21(0xf6)][_0x52ba21(0x103)]?'\x0a':_0x59430f)['filter'](_0x4d4d23=>_0x4d4d23!==_0x10200e[_0x52ba21(0xf6)][_0x52ba21(0xd4)]&&_0x4d4d23!==_0x10200e[_0x52ba21(0xf6)][_0x52ba21(0xf7)]&&_0x4d4d23!==_0x10200e[_0x52ba21(0xf6)][_0x52ba21(0xeb)])[_0x52ba21(0xea)]('')['replace'](/\n$/,'');}var _0x59670a=class extends _0x17b188['FDocument']{[_0x293a8f(0xf9)](){var _0x1f8530=_0x293a8f;return this[_0x1f8530(0xe3)]()[_0x1f8530(0x122)](_0x47a94c=>_0x47a94c[_0x1f8530(0x10c)]===_0x10200e['DocumentBlockRangeType'][_0x1f8530(0xdd)])[_0x1f8530(0x123)](_0x1ff6b1=>this['_createFDocumentCode'](_0x1ff6b1['blockId']));}[_0x293a8f(0x121)](_0x2ab95a){var _0x547ef8=_0x293a8f;return this['_getBlockRanges']()[_0x547ef8(0xe6)](_0x26136e=>_0x26136e[_0x547ef8(0x110)]===_0x2ab95a&&_0x26136e[_0x547ef8(0x10c)]===_0x10200e[_0x547ef8(0xf0)][_0x547ef8(0xdd)])?this[_0x547ef8(0x11a)](_0x2ab95a):null;}[_0x293a8f(0xd0)](_0x47f32b){var _0x13b72c=_0x293a8f;let _0x26f397=this[_0x13b72c(0xe3)]()[_0x13b72c(0x125)](_0x28e832=>_0x28e832['blockType']===_0x10200e['DocumentBlockRangeType']['CODE']&&_0x28e832[_0x13b72c(0x124)]<=_0x47f32b&&_0x47f32b<=_0x28e832[_0x13b72c(0xd9)]);return _0x26f397?this['_createFDocumentCode'](_0x26f397['blockId']):null;}[_0x293a8f(0x116)](_0x1c1228){var _0x297b7f=_0x293a8f,_0x1e0fe0;return(_0x1e0fe0=this[_0x297b7f(0xe2)](_0x1c1228)[0x0])==null?null:_0x1e0fe0;}[_0x293a8f(0xe2)](_0x419899){var _0x52618b=_0x293a8f;let _0x39111e=typeof _0x419899==_0x52618b(0x114)?{'text':_0x419899}:_0x419899;return this[_0x52618b(0xf9)]()[_0x52618b(0x122)](_0x4b823d=>!(_0x39111e['blockId']&&_0x4b823d[_0x52618b(0xd6)]()!==_0x39111e[_0x52618b(0x110)]||_0x39111e[_0x52618b(0x107)]&&!_0x4b823d[_0x52618b(0xe8)]()[_0x52618b(0x109)](_0x39111e[_0x52618b(0x107)])));}[_0x293a8f(0xe4)](_0x2a608b={},_0x4c7724={}){var _0x18db74=_0x293a8f,_0x2b26ce;let _0x5aef25=this[_0x18db74(0xfc)][_0x18db74(0xf5)](_0x10200e[_0x18db74(0x11b)]),_0x5eaf8b=_0x25e7a1(_0x2a608b)?{..._0x4c7724,..._0x4f643a(_0x2a608b)}:_0x2a608b,_0xb11e2b=(_0x2b26ce=_0x5eaf8b[_0x18db74(0x110)])==null?(0x0,_0x10200e['generateRandomId'])(0x6):_0x2b26ce;return _0x5aef25[_0x18db74(0x106)](_0xca1e67[_0x18db74(0xf1)]['id'],{..._0x5eaf8b,'blockId':_0xb11e2b,'unitId':this['getId']()})?this['_createFDocumentCode'](_0xb11e2b):null;}['exitCode'](_0x352c3c){var _0x183e5a=_0x293a8f;return this[_0x183e5a(0xfc)]['get'](_0x10200e[_0x183e5a(0x11b)])[_0x183e5a(0x106)](_0xca1e67[_0x183e5a(0xee)]['id'],{'cursorOffset':_0x352c3c,'unitId':this[_0x183e5a(0xd6)]()});}['cancelEmptyCodeParagraph'](_0x55ea2c={}){var _0x2a59cd=_0x293a8f;return this[_0x2a59cd(0xfc)]['get'](_0x10200e[_0x2a59cd(0x11b)])[_0x2a59cd(0x106)](_0xca1e67['DocsCodeCancelEmptyParagraphCommand']['id'],{..._0x55ea2c,'unitId':this['getId']()});}[_0x293a8f(0xe3)](){var _0x12bcf6=_0x293a8f,_0x119752,_0x35d36d;return(_0x119752=(_0x35d36d=this[_0x12bcf6(0xe5)]()[_0x12bcf6(0x101)])==null?void 0x0:_0x35d36d[_0x12bcf6(0xe7)])==null?[]:_0x119752;}[_0x293a8f(0x11a)](_0x417159){var _0x53765f=_0x293a8f;return this[_0x53765f(0xfc)][_0x53765f(0xd2)](_0x300f74,this,_0x417159);}};function _0x25e7a1(_0xc8cba3){var _0x4c495f=_0x293a8f;return typeof _0xc8cba3==_0x4c495f(0x113)&&!!_0xc8cba3&&typeof _0xc8cba3[_0x4c495f(0x128)]==_0x4c495f(0xff)&&typeof _0xc8cba3[_0x4c495f(0x100)]==_0x4c495f(0xff)&&typeof _0xc8cba3[_0x4c495f(0xe0)]==_0x4c495f(0xff)&&_0xc8cba3['getType']()==='paragraph';}function _0x4f643a(_0x4997bc){return _0x4997bc['getRange']();}_0x17b188['FDocument']['extend'](_0x59670a),Object['defineProperty'](_0x1680b3,'FDocumentCode',{'enumerable':!0x0,'get':function(){return _0x300f74;}});}));
|
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(_0x362dd4,_0x5bdd85){const _0xeacc2d=_0x3e27,_0x50325c=_0x362dd4();while(!![]){try{const _0x3b68fe=-parseInt(_0xeacc2d(0x171))/0x1+-parseInt(_0xeacc2d(0x156))/0x2*(-parseInt(_0xeacc2d(0x127))/0x3)+-parseInt(_0xeacc2d(0xf7))/0x4*(parseInt(_0xeacc2d(0x16a))/0x5)+parseInt(_0xeacc2d(0x17e))/0x6*(parseInt(_0xeacc2d(0x104))/0x7)+parseInt(_0xeacc2d(0x172))/0x8+parseInt(_0xeacc2d(0xfd))/0x9*(-parseInt(_0xeacc2d(0x1a0))/0xa)+parseInt(_0xeacc2d(0x12e))/0xb*(-parseInt(_0xeacc2d(0x17b))/0xc);if(_0x3b68fe===_0x5bdd85)break;else _0x50325c['push'](_0x50325c['shift']());}catch(_0x522884){_0x50325c['push'](_0x50325c['shift']());}}}(_0x58ab,0x8935d),function(_0x47889d,_0x3ac331){const _0x578ab7=_0x3e27;typeof exports==_0x578ab7(0x106)&&typeof module<'u'?_0x3ac331(exports,require('@univerjs/core'),require('@univerjs/docs'),require('rxjs'),require('@univerjs-pro/license')):typeof define=='function'&&define[_0x578ab7(0x17c)]?define([_0x578ab7(0x13a),'@univerjs/core',_0x578ab7(0x19c),_0x578ab7(0x194),_0x578ab7(0x144)],_0x3ac331):(_0x47889d=typeof globalThis<'u'?globalThis:_0x47889d||self,_0x3ac331(_0x47889d[_0x578ab7(0x114)]={},_0x47889d[_0x578ab7(0xf6)],_0x47889d[_0x578ab7(0x16e)],_0x47889d['rxjs'],_0x47889d[_0x578ab7(0xf9)]));}(this,function(_0x8d280a,_0x556a08,_0x3e4b0f,_0x542fca,_0x149cae){const _0x4d88a2=_0x3e27;Object[_0x4d88a2(0x173)](_0x8d280a,Symbol[_0x4d88a2(0xf0)],{'value':_0x4d88a2(0x101)});let _0x420f34={'language':_0x4d88a2(0x149),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function _0x5cff9e(_0x8542e8){return{..._0x420f34,..._0x8542e8};}function _0x22f432(_0x259c5a){const _0x4018ed=_0x4d88a2;var _0x1aa24c;let _0x4956ca=(_0x1aa24c=_0x259c5a==null?void 0x0:_0x259c5a[_0x4018ed(0xfb)])==null?{}:_0x1aa24c;return{'codes':Object[_0x4018ed(0x151)](Object['entries'](_0x4956ca)['map'](([_0x25a1f6,_0x5d0905])=>[_0x25a1f6,_0x5cff9e(_0x5d0905)]))};}function _0x7eceeb(_0x35ab6f,_0x365d2f,_0x46a920){const _0xe9074e=_0x4d88a2;let _0x16744f=_0x22f432(_0x35ab6f);return _0x16744f[_0xe9074e(0xfb)][_0x365d2f]=_0x5cff9e({..._0x16744f[_0xe9074e(0xfb)][_0x365d2f],..._0x46a920}),_0x16744f;}function _0x2d2e53(_0x19e255,_0xf95f64){const _0x150ec1=_0x4d88a2;let _0x16b19a=_0x22f432(_0x19e255);return delete _0x16b19a[_0x150ec1(0xfb)][_0xf95f64],_0x16b19a;}let _0x29ad60=_0x4d88a2(0x11e);function _0xc221ca(_0x1ee72a){const _0x40e847=_0x4d88a2;var _0xeee905,_0x4b4a82,_0x4af42f;let _0x329fc8=_0x283410(_0x1ee72a[_0x40e847(0x15c)]),_0x11994c=_0x320ab5(_0x329fc8),_0x5ca37e=_0x56328f(_0x1ee72a[_0x40e847(0x13b)],_0x1ee72a[_0x40e847(0x189)]),_0x27df07=_0x5ca37e?(_0xeee905=_0x11994c[_0x40e847(0x118)])==null?void 0x0:_0xeee905[_0x40e847(0xf4)](_0xac364e=>_0xac364e[_0x40e847(0x15f)]===_0x5ca37e[_0x40e847(0x13b)]&&_0xac364e[_0x40e847(0x11f)]+0x1===_0x5ca37e['endOffset']):void 0x0,{startOffset:_0x5ae04e,endOffset:_0x4fea46}=_0x27df07?_0x5ca37e:_0x101cc7(_0x11994c,_0x1ee72a['startOffset'],_0x1ee72a['endOffset']),_0x587023=_0x25460d(_0x11994c,_0x5ae04e,_0x4fea46),_0x3c625b=(_0x4b4a82=_0x27df07==null?void 0x0:_0x27df07[_0x40e847(0x10d)])==null?_0x1ee72a[_0x40e847(0x10d)]:_0x4b4a82,_0x534563=_0x7eceeb(_0x1ee72a[_0x40e847(0x145)],_0x3c625b,{..._0x420f34,..._0x1ee72a[_0x40e847(0x18d)]});if(_0x27df07)return _0x27df07[_0x40e847(0x112)]=_0x556a08[_0x40e847(0x195)][_0x40e847(0x14d)],_0x3cf32b(_0x11994c,_0x5ae04e,_0x4fea46),_0x23cfd8(_0x11994c,_0x5ae04e,_0x4fea46,_0x587023),_0x48edda(_0x11994c,_0x27df07),{'nextDocumentData':_0x329fc8,'nextMetadata':_0x534563,'cursorOffset':_0x5ae04e+0x1};if(_0x5ae04e===_0x4fea46){var _0xb2070e,_0x3d138c;let _0x482e17=''+_0x556a08['DataStreamTreeTokenType'][_0x40e847(0x19f)]+_0x556a08[_0x40e847(0x13d)][_0x40e847(0x184)]+_0x556a08[_0x40e847(0x13d)][_0x40e847(0x17a)];_0x498e31(_0x11994c,_0x5ae04e,_0x482e17,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,_0x556a08[_0x40e847(0x160)])(new Set((_0xb2070e=_0x11994c[_0x40e847(0x100)])==null?void 0x0:_0xb2070e[_0x40e847(0x18b)](_0x47558f=>_0x47558f[_0x40e847(0x168)]))),'paragraphStyle':_0x263b7b(!0x0,!0x0,_0x587023)}],'blockRanges':[{'blockId':_0x3c625b,'blockType':_0x556a08['DocumentBlockRangeType'][_0x40e847(0x14d)],'startIndex':0x0,'endIndex':_0x482e17[_0x40e847(0x167)]-0x1}]});let _0x113a75=(_0x3d138c=_0x11994c['blockRanges'])==null?void 0x0:_0x3d138c['find'](_0x4cf223=>_0x4cf223[_0x40e847(0x10d)]===_0x3c625b);return _0x113a75&&_0x48edda(_0x11994c,_0x113a75),{'nextDocumentData':_0x329fc8,'nextMetadata':_0x534563,'cursorOffset':_0x5ae04e+0x1};}_0x498e31(_0x11994c,_0x4fea46,_0x556a08['DataStreamTreeTokenType'][_0x40e847(0x17a)]),_0x498e31(_0x11994c,_0x5ae04e,_0x556a08[_0x40e847(0x13d)][_0x40e847(0x19f)]),_0x23cfd8(_0x11994c,_0x5ae04e,_0x4fea46+0x1,_0x587023);let _0x17e9d7={'blockId':_0x3c625b,'blockType':_0x556a08[_0x40e847(0x195)][_0x40e847(0x14d)],'startIndex':_0x5ae04e,'endIndex':_0x4fea46+0x1};return _0x11994c[_0x40e847(0x118)]=[...(_0x4af42f=_0x11994c['blockRanges'])==null?[]:_0x4af42f,_0x17e9d7]['sort']((_0xebc179,_0xa2a815)=>_0xebc179[_0x40e847(0x15f)]-_0xa2a815['startIndex']),_0x48edda(_0x11994c,_0x17e9d7),{'nextDocumentData':_0x329fc8,'nextMetadata':_0x534563,'cursorOffset':_0x5ae04e+0x1};}function _0x3cf32b(_0x51ee3d,_0x374c1b,_0x1b51a3){const _0x503816=_0x4d88a2;var _0x1ce225;((_0x1ce225=_0x51ee3d[_0x503816(0x100)])==null?[]:_0x1ce225)['filter'](_0x345a4b=>_0x345a4b[_0x503816(0x15f)]>_0x374c1b&&_0x345a4b[_0x503816(0x15f)]<_0x1b51a3)['forEach'](_0xc448f8=>{const _0x4a169a=_0x503816;var _0x2a9e54;let _0x312dce={...(_0x2a9e54=_0xc448f8[_0x4a169a(0xfa)])==null?{}:_0x2a9e54};delete _0x312dce[_0x4a169a(0x159)],delete _0x312dce[_0x4a169a(0x12b)],_0xc448f8['paragraphStyle']=_0x312dce;});}function _0x56328f(_0x1272ca,_0x28ede1){const _0x2efdd8=_0x4d88a2;return _0x1272ca==null||_0x28ede1==null||_0x1272ca===_0x28ede1?null:{'startOffset':Math['min'](_0x1272ca,_0x28ede1),'endOffset':Math[_0x2efdd8(0x121)](_0x1272ca,_0x28ede1)};}function _0x101ada(_0x2317d5){const _0x4322dd=_0x4d88a2;return{'nextDocumentData':_0x283410(_0x2317d5[_0x4322dd(0x15c)]),'nextMetadata':_0x7eceeb(_0x2317d5[_0x4322dd(0x145)],_0x2317d5['blockId'],_0x2317d5[_0x4322dd(0x18d)]),'cursorOffset':0x0};}function _0x4e45f9(_0x53ed11){const _0x1531da=_0x4d88a2;var _0x5e1068,_0x358517;let _0x1d9a60=_0x283410(_0x53ed11[_0x1531da(0x15c)]),_0x229f51=_0x320ab5(_0x1d9a60),_0x2fbd90=_0x3767e9(_0x229f51,_0x53ed11[_0x1531da(0x105)]);if(!_0x2fbd90)return null;let _0x1ffa25=_0x5301c4(_0x229f51,_0x2fbd90),_0x514357=_0x1ffa25[_0x1ffa25[_0x1531da(0x167)]-0x1];if(!_0x514357||!_0x179c45(_0x229f51,_0x2fbd90,_0x514357)||_0x53ed11[_0x1531da(0x105)]<_0x514357[_0x1531da(0x15f)])return null;let _0x404f43=_0x3634c2(_0x229f51,_0x2fbd90,_0x514357);if(_0x404f43>=_0x2fbd90[_0x1531da(0x11f)])return null;_0x229f51[_0x1531da(0x18c)]=[_0x229f51[_0x1531da(0x18c)][_0x1531da(0x142)](0x0,_0x404f43),_0x556a08['DataStreamTreeTokenType'][_0x1531da(0x17a)],_0x229f51[_0x1531da(0x18c)]['slice'](_0x404f43,_0x2fbd90[_0x1531da(0x11f)]),_0x229f51['dataStream'][_0x1531da(0x142)](_0x2fbd90[_0x1531da(0x11f)]+0x1)][_0x1531da(0x10f)](''),_0x4a69f7(_0x229f51[_0x1531da(0x100)],_0x404f43,_0x2fbd90[_0x1531da(0x11f)],0x1),_0x4a69f7(_0x229f51[_0x1531da(0x187)],_0x404f43,_0x2fbd90[_0x1531da(0x11f)],0x1),_0x4a69f7(_0x229f51[_0x1531da(0x164)],_0x404f43,_0x2fbd90[_0x1531da(0x11f)],0x1),_0x2c3da9(_0x229f51[_0x1531da(0x1a3)],_0x404f43,_0x2fbd90['endIndex'],0x1),_0x1f54cf(_0x229f51[_0x1531da(0x137)],_0x404f43,_0x2fbd90['endIndex'],0x1),_0x1f54cf(_0x229f51['customRanges'],_0x404f43,_0x2fbd90[_0x1531da(0x11f)],0x1),_0x1f54cf(_0x229f51[_0x1531da(0x102)],_0x404f43,_0x2fbd90[_0x1531da(0x11f)],0x1),(_0x5e1068=_0x229f51[_0x1531da(0x118)])==null||_0x5e1068[_0x1531da(0x162)](_0x137f79=>{const _0x30e0b1=_0x1531da;_0x137f79===_0x2fbd90||_0x137f79[_0x30e0b1(0x10d)]===_0x2fbd90['blockId']?_0x137f79['endIndex']=_0x404f43:_0x137f79[_0x30e0b1(0x15f)]>=_0x404f43&&_0x137f79[_0x30e0b1(0x15f)]<_0x2fbd90[_0x30e0b1(0x11f)]&&(_0x137f79[_0x30e0b1(0x15f)]+=0x1,_0x137f79['endIndex']+=0x1);});let _0x6f7e35=_0x5301c4(_0x229f51,{..._0x2fbd90,'endIndex':_0x404f43});_0x6f7e35[_0x1531da(0x162)]((_0xdf7aa9,_0x196663)=>{const _0x41be7=_0x1531da;var _0x1f5a8a;_0xdf7aa9[_0x41be7(0xfa)]={...(_0x1f5a8a=_0xdf7aa9[_0x41be7(0xfa)])==null?{}:_0x1f5a8a,..._0x263b7b(_0x196663===0x0,_0x196663===_0x6f7e35['length']-0x1)};});let _0x5aba55=(_0x358517=_0x229f51[_0x1531da(0x100)])==null?void 0x0:_0x358517[_0x1531da(0xf4)](_0x82b929=>_0x82b929['startIndex']===_0x404f43+0x1);return _0x5aba55&&(_0x5aba55['paragraphStyle']=_0x5661e3(_0x5aba55[_0x1531da(0xfa)])),{'nextDocumentData':_0x1d9a60,'cursorOffset':_0x404f43+0x1};}function _0x46da40(_0x177e93){const _0x346bf4=_0x4d88a2;let _0x414e67=_0x283410(_0x177e93[_0x346bf4(0x15c)]),_0x4d1661=_0x320ab5(_0x414e67),_0x523a38=_0x3767e9(_0x4d1661,_0x177e93['cursorOffset']);return _0x523a38&&_0x443a48(_0x414e67,_0x4d1661,_0x523a38,_0x177e93[_0x346bf4(0x105)],_0x177e93[_0x346bf4(0x147)])||null;}function _0x443a48(_0x2a22e9,_0x486ed4,_0x196931,_0x2bd958,_0x4bf5f7){const _0x467fb9=_0x4d88a2;let _0xa3d3f4=_0x2a5687(_0x486ed4,_0x196931,_0x2bd958,_0x4bf5f7);if(!_0xa3d3f4)return null;let _0x505c39=_0xa3d3f4[_0x467fb9(0x129)]-0x1;return _0x23121b(_0x486ed4,_0xa3d3f4['paragraph'][_0x467fb9(0x15f)],_0xa3d3f4[_0x467fb9(0x128)][_0x467fb9(0x15f)]+0x1),{'nextDocumentData':_0x2a22e9,'cursorOffset':_0x505c39};}function _0xe7815e(_0x4f10c6,_0x71fabc){const _0xd2d783=_0x4d88a2;var _0x3c6eb9;return _0x4f10c6==null||(_0x3c6eb9=_0x4f10c6[_0xd2d783(0x118)])==null?void 0x0:_0x3c6eb9['find'](_0x160d25=>_0x160d25['blockType']===_0x556a08[_0xd2d783(0x195)][_0xd2d783(0x14d)]&&_0x160d25[_0xd2d783(0x15f)]<=_0x71fabc&&_0x71fabc<=_0x160d25[_0xd2d783(0x11f)]);}function _0x439e8f(_0x57fd42){const _0x2db433=_0x4d88a2;var _0x174d30;let _0x37b20e=_0x57fd42[_0x2db433(0x15c)]['body'];if(!_0x37b20e)return!0x1;let _0x150946=_0x57fd42[_0x2db433(0x124)]==='left'?_0x57fd42['cursorOffset']-0x1:_0x57fd42[_0x2db433(0x105)],_0x1e0184=_0x57fd42[_0x2db433(0x124)]===_0x2db433(0x179)?_0x57fd42[_0x2db433(0x105)]+0x1:_0x150946;return((_0x174d30=_0x37b20e[_0x2db433(0x118)])==null?[]:_0x174d30)[_0x2db433(0x14b)](_0x10842f=>_0x10842f[_0x2db433(0x112)]===_0x556a08[_0x2db433(0x195)][_0x2db433(0x14d)]?_0x150946===_0x10842f['startIndex']||_0x150946===_0x10842f[_0x2db433(0x11f)]||_0x1e0184===_0x10842f[_0x2db433(0x15f)]||_0x1e0184===_0x10842f[_0x2db433(0x11f)]:!0x1);}function _0x3767e9(_0x4568f1,_0xe16969){const _0x5ab688=_0x4d88a2;var _0x1b155d;return(_0x1b155d=_0x4568f1[_0x5ab688(0x118)])==null?void 0x0:_0x1b155d['find'](_0x5d9391=>{const _0x16edd8=_0x5ab688;let _0x9c5a18=_0x59793a(_0x4568f1,_0x5d9391);return _0x5d9391[_0x16edd8(0x112)]===_0x556a08[_0x16edd8(0x195)]['CODE']&&_0x5d9391[_0x16edd8(0x15f)]<=_0xe16969&&_0xe16969<=_0x9c5a18+0x2;});}function _0x263b7b(_0x51d49c,_0x12fd85,_0x2566e1=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x51d49c&&_0x2566e1?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':_0x29ad60,'fs':0xc}};}function _0x23cfd8(_0x5485e6,_0x55871b,_0xc93a46,_0x4bf0b3=!0x1){const _0x5dd7b4=_0x4d88a2;var _0x1f647f;let _0xb1743c=((_0x1f647f=_0x5485e6['paragraphs'])==null?[]:_0x1f647f)['filter'](_0x3074ab=>_0x3074ab[_0x5dd7b4(0x15f)]>_0x55871b&&_0x3074ab[_0x5dd7b4(0x15f)]<_0xc93a46);_0xb1743c[_0x5dd7b4(0x162)]((_0x5d97a2,_0x5cc0f3)=>{const _0x56d2a3=_0x5dd7b4;var _0x3bc6d3;_0x5d97a2[_0x56d2a3(0xfa)]={...(_0x3bc6d3=_0x5d97a2[_0x56d2a3(0xfa)])==null?{}:_0x3bc6d3,..._0x263b7b(_0x5cc0f3===0x0,_0x5cc0f3===_0xb1743c[_0x56d2a3(0x167)]-0x1,_0x4bf0b3)};});}function _0x5661e3(_0x2bec2f){const _0x44b3f2=_0x4d88a2;var _0x5da17d,_0x30682f;let _0x33f3f2={..._0x2bec2f==null?{}:_0x2bec2f};return delete _0x33f3f2['indentEnd'],delete _0x33f3f2[_0x44b3f2(0x169)],delete _0x33f3f2[_0x44b3f2(0x159)],delete _0x33f3f2[_0x44b3f2(0x12b)],((_0x5da17d=_0x33f3f2[_0x44b3f2(0x10c)])==null?void 0x0:_0x5da17d['ff'])===_0x29ad60&&((_0x30682f=_0x33f3f2['textStyle'])==null?void 0x0:_0x30682f['fs'])===0xc&&delete _0x33f3f2['textStyle'],_0x33f3f2;}function _0x5301c4(_0x73f0f6,_0x124dd6){const _0x26beb9=_0x4d88a2;var _0x2d8874;let _0x520478=_0x59793a(_0x73f0f6,_0x124dd6);return((_0x2d8874=_0x73f0f6['paragraphs'])==null?[]:_0x2d8874)[_0x26beb9(0xf3)](_0x2145a4=>_0x2145a4[_0x26beb9(0x15f)]>_0x124dd6['startIndex']&&_0x2145a4[_0x26beb9(0x15f)]<_0x520478);}function _0x179c45(_0x19510d,_0x380f90,_0x326834){const _0x6452a1=_0x4d88a2;let _0x1dcdb7=_0x3634c2(_0x19510d,_0x380f90,_0x326834),_0x479334=_0x19510d['dataStream'][_0x6452a1(0x142)](_0x1dcdb7,_0x326834[_0x6452a1(0x15f)]);return Array[_0x6452a1(0x155)](_0x479334)[_0x6452a1(0x18a)](_0x419c36=>_0x419c36===_0x556a08['DataStreamTreeTokenType']['BLOCK_START']||_0x419c36===_0x556a08['DataStreamTreeTokenType'][_0x6452a1(0x17a)]);}function _0x283410(_0x335cd4){const _0x4e3163=_0x4d88a2;return _0x556a08['Tools'][_0x4e3163(0xf2)](_0x335cd4);}function _0x320ab5(_0x1dea23){const _0x17d4a=_0x4d88a2;if(!_0x1dea23['body'])throw Error('Document\x20body\x20is\x20required');return _0x1dea23[_0x17d4a(0x193)];}function _0x101cc7(_0x22df72,_0x5ad9a6,_0x56f55a){const _0x4d441f=_0x4d88a2;if(_0x5ad9a6==null||_0x56f55a==null){let _0x4bfe7d=_0x3273e2(_0x22df72);return{'startOffset':_0x4bfe7d,'endOffset':_0x4bfe7d};}let _0xdf3deb=Math['min'](_0x5ad9a6,_0x56f55a),_0x3ee647=Math[_0x4d441f(0x121)](_0x5ad9a6,_0x56f55a);if(_0xdf3deb===_0x3ee647){let _0x36a255=_0x2949fa(_0x22df72,_0xdf3deb);return{'startOffset':_0x36a255,'endOffset':_0x36a255};}return _0x4cf395(_0x22df72,_0xdf3deb,_0x3ee647);}function _0x2949fa(_0x53a214,_0x1cbbba){const _0x226d4d=_0x4d88a2;return _0x1cbbba===0x0&&_0x53a214[_0x226d4d(0x18c)][0x0]===_0x556a08[_0x226d4d(0x13d)][_0x226d4d(0x184)]?0x1:_0x1cbbba;}function _0x3273e2(_0x3b1587){const _0x39dc48=_0x4d88a2;return _0x3b1587[_0x39dc48(0x18c)][_0x39dc48(0x139)](_0x556a08[_0x39dc48(0x13d)][_0x39dc48(0x152)])?Math['max'](0x0,_0x3b1587['dataStream']['length']-0x1):_0x3b1587[_0x39dc48(0x18c)]['length'];}function _0x25460d(_0x3e91e6,_0x4343b1,_0x550ae9){const _0xbb3d42=_0x4d88a2;var _0x351126;let _0x4fb64c=Math['min'](_0x4343b1,_0x550ae9),_0x4db230=Math[_0xbb3d42(0x121)](_0x4343b1,_0x550ae9);return!!((_0x351126=_0x3e91e6[_0xbb3d42(0x137)])!=null&&_0x351126['some'](_0x203bc6=>_0x4fb64c>_0x203bc6['startIndex']&&_0x4fb64c<_0x203bc6['endIndex']||_0x4db230>_0x203bc6[_0xbb3d42(0x15f)]&&_0x4db230<_0x203bc6[_0xbb3d42(0x11f)]||_0x4fb64c<=_0x203bc6[_0xbb3d42(0x15f)]&&_0x4db230>=_0x203bc6[_0xbb3d42(0x11f)]));}function _0x4cf395(_0x1098ea,_0x20c716,_0x1e5e1c){const _0x4d6adb=_0x4d88a2;var _0x3e3161,_0x732f0e;let _0x2ac5d5=[...(_0x3e3161=_0x1098ea[_0x4d6adb(0x100)])==null?[]:_0x3e3161][_0x4d6adb(0x157)]((_0x5e9718,_0x483d01)=>_0x5e9718[_0x4d6adb(0x15f)]-_0x483d01['startIndex']),_0xed0a61=_0x2ac5d5[_0x4d6adb(0xf4)]((_0x2b737a,_0x44bf34)=>(_0x44bf34===0x0?0x0:_0x2ac5d5[_0x44bf34-0x1]['startIndex']+0x1)<=_0x20c716&&_0x20c716<=_0x2b737a['startIndex']),_0x38fe6f=(_0x732f0e=_0x2ac5d5[_0x4d6adb(0xf4)](_0x3e5e0f=>_0x3e5e0f[_0x4d6adb(0x15f)]>=_0x1e5e1c-0x1))==null?_0x2ac5d5[_0x2ac5d5['length']-0x1]:_0x732f0e;return{'startOffset':_0xed0a61?_0x4237ce(_0x2ac5d5,_0xed0a61):_0x20c716,'endOffset':_0x38fe6f?_0x38fe6f['startIndex']+0x1:_0x1e5e1c};}function _0x4237ce(_0x5de868,_0x1aef47){const _0x5322c7=_0x4d88a2;let _0x3a1afa=_0x5de868[_0x5322c7(0x17f)](_0x1aef47);return _0x3a1afa>0x0?_0x5de868[_0x3a1afa-0x1][_0x5322c7(0x15f)]+0x1:0x0;}function _0x3634c2(_0x3543bd,_0x2d77be,_0x1f84df){const _0x573c88=_0x4d88a2;var _0x31423d;return Math['max'](_0x4237ce((_0x31423d=_0x3543bd[_0x573c88(0x100)])==null?[]:_0x31423d,_0x1f84df),_0x2d77be[_0x573c88(0x15f)]+0x1);}function _0x59793a(_0x35cf5c,_0x372102){const _0x4bcd38=_0x4d88a2;return _0x35cf5c['dataStream'][_0x372102['endIndex']]===_0x556a08[_0x4bcd38(0x13d)][_0x4bcd38(0x17a)]?_0x372102[_0x4bcd38(0x11f)]:_0x35cf5c['dataStream'][_0x372102['endIndex']+0x1]===_0x556a08[_0x4bcd38(0x13d)][_0x4bcd38(0x17a)]?_0x372102['endIndex']+0x1:_0x372102[_0x4bcd38(0x11f)];}function _0x2a5687(_0x517268,_0x52bc82,_0x3f821a,_0x236d18){const _0x13feb2=_0x4d88a2;var _0x36359a,_0x571d8f;let _0x11f349=_0x59793a(_0x517268,_0x52bc82),_0x3ede4c=((_0x36359a=_0x517268[_0x13feb2(0x100)])==null?[]:_0x36359a)[_0x13feb2(0xf4)](_0x869fd0=>_0x869fd0[_0x13feb2(0x15f)]===_0x11f349+0x1);if(!_0x3ede4c||_0x236d18!=null&&_0x3ede4c[_0x13feb2(0x15f)]!==_0x236d18||_0x3f821a<_0x11f349||_0x3f821a>_0x3ede4c[_0x13feb2(0x15f)]+0x1||_0x517268[_0x13feb2(0x18c)][_0x3ede4c[_0x13feb2(0x15f)]]!==_0x556a08[_0x13feb2(0x13d)][_0x13feb2(0x184)])return null;let _0x5c5886=_0x4237ce((_0x571d8f=_0x517268[_0x13feb2(0x100)])==null?[]:_0x571d8f,_0x3ede4c),_0x364223=_0x517268[_0x13feb2(0x18c)][_0x13feb2(0x142)](_0x5c5886,_0x3ede4c[_0x13feb2(0x15f)]);return Array[_0x13feb2(0x155)](_0x364223)[_0x13feb2(0x18a)](_0x434de5=>_0x434de5===_0x556a08[_0x13feb2(0x13d)][_0x13feb2(0x17a)])?{'paragraph':_0x3ede4c,'endTokenOffset':_0x11f349}:null;}function _0x48edda(_0x20621c,_0x3899d0){const _0x15d9f5=_0x4d88a2;var _0xd6dd8a;let _0x1820e5=_0x59793a(_0x20621c,_0x3899d0),_0xcbcd02=_0x20621c[_0x15d9f5(0x18c)][_0x1820e5+0x1];_0xcbcd02!==_0x556a08[_0x15d9f5(0x13d)]['SECTION_BREAK']&&_0xcbcd02!==void 0x0||_0x498e31(_0x20621c,_0x1820e5+0x1,_0x556a08[_0x15d9f5(0x13d)][_0x15d9f5(0x184)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,_0x556a08[_0x15d9f5(0x160)])(new Set((_0xd6dd8a=_0x20621c[_0x15d9f5(0x100)])==null?void 0x0:_0xd6dd8a[_0x15d9f5(0x18b)](_0x25992e=>_0x25992e[_0x15d9f5(0x168)])))}]});}function _0x498e31(_0x39e648,_0x5d029f,_0xec3ee2,_0x4a3f38={}){const _0x197910=_0x4d88a2;var _0x30bb08,_0x1ec191;if(_0xec3ee2){if(_0x39e648[_0x197910(0x18c)]=''+_0x39e648['dataStream'][_0x197910(0x142)](0x0,_0x5d029f)+_0xec3ee2+_0x39e648[_0x197910(0x18c)][_0x197910(0x142)](_0x5d029f),_0x290b09(_0x39e648,_0x5d029f,_0xec3ee2[_0x197910(0x167)]),(_0x30bb08=_0x4a3f38['paragraphs'])!=null&&_0x30bb08[_0x197910(0x167)]){var _0x2bbfda;_0x39e648[_0x197910(0x100)]=[...(_0x2bbfda=_0x39e648[_0x197910(0x100)])==null?[]:_0x2bbfda,..._0x4a3f38[_0x197910(0x100)]['map'](_0x5dbf9f=>({..._0x5dbf9f,'startIndex':_0x5dbf9f[_0x197910(0x15f)]+_0x5d029f}))][_0x197910(0x157)]((_0x32722f,_0x4850f1)=>_0x32722f[_0x197910(0x15f)]-_0x4850f1[_0x197910(0x15f)]);}if((_0x1ec191=_0x4a3f38[_0x197910(0x118)])!=null&&_0x1ec191['length']){var _0x2e14e3;_0x39e648[_0x197910(0x118)]=[...(_0x2e14e3=_0x39e648['blockRanges'])==null?[]:_0x2e14e3,..._0x4a3f38[_0x197910(0x118)][_0x197910(0x18b)](_0x394783=>({..._0x394783,'startIndex':_0x394783['startIndex']+_0x5d029f,'endIndex':_0x394783[_0x197910(0x11f)]+_0x5d029f}))][_0x197910(0x157)]((_0x14cb27,_0x32e4a2)=>_0x14cb27['startIndex']-_0x32e4a2[_0x197910(0x15f)]);}}}function _0x23121b(_0x4c66b0,_0x1767ff,_0x41aa33){const _0x5857af=_0x4d88a2;let _0x4d008a=_0x41aa33-_0x1767ff;_0x4c66b0[_0x5857af(0x18c)]=''+_0x4c66b0[_0x5857af(0x18c)][_0x5857af(0x142)](0x0,_0x1767ff)+_0x4c66b0[_0x5857af(0x18c)]['slice'](_0x41aa33),_0x485603(_0x4c66b0,_0x1767ff,_0x4d008a);}function _0x290b09(_0x3f211d,_0x52d245,_0x67da33){const _0x2a772a=_0x4d88a2;_0x3f211d[_0x2a772a(0x100)]=_0x35aa77(_0x3f211d[_0x2a772a(0x100)],_0x52d245,_0x67da33),_0x3f211d[_0x2a772a(0x187)]=_0x35aa77(_0x3f211d[_0x2a772a(0x187)],_0x52d245,_0x67da33),_0x3f211d['customBlocks']=_0x35aa77(_0x3f211d[_0x2a772a(0x164)],_0x52d245,_0x67da33),_0x3f211d['textRuns']=_0x4d1a2f(_0x3f211d[_0x2a772a(0x1a3)],_0x52d245,_0x67da33),_0x3f211d['tables']=_0xa73bb5(_0x3f211d['tables'],_0x52d245,_0x67da33),_0x3f211d[_0x2a772a(0x16c)]=_0xa73bb5(_0x3f211d[_0x2a772a(0x16c)],_0x52d245,_0x67da33),_0x3f211d['customDecorations']=_0xa73bb5(_0x3f211d[_0x2a772a(0x102)],_0x52d245,_0x67da33),_0x3f211d['blockRanges']=_0xa73bb5(_0x3f211d[_0x2a772a(0x118)],_0x52d245,_0x67da33);}function _0x485603(_0x2220c2,_0x2a5063,_0x592cd3){const _0xf07036=_0x4d88a2;var _0x3d1d71,_0x365154;_0x2220c2['paragraphs']=_0x331e84(_0x2220c2[_0xf07036(0x100)],_0x2a5063,_0x592cd3),_0x2220c2['sectionBreaks']=_0x331e84(_0x2220c2[_0xf07036(0x187)],_0x2a5063,_0x592cd3),_0x2220c2['customBlocks']=_0x331e84(_0x2220c2[_0xf07036(0x164)],_0x2a5063,_0x592cd3),_0x2220c2[_0xf07036(0x1a3)]=(_0x3d1d71=_0x1765fe((_0x365154=_0x2220c2[_0xf07036(0x1a3)])==null?void 0x0:_0x365154[_0xf07036(0x18b)](_0x1f74e1=>({..._0x1f74e1,'startIndex':_0x1f74e1['st'],'endIndex':_0x1f74e1['ed']})),_0x2a5063,_0x592cd3))==null?void 0x0:_0x3d1d71[_0xf07036(0x18b)](_0x235a1f=>{let {startIndex:_0xd30bd1,endIndex:_0x3671fa,..._0x3146db}=_0x235a1f;return{..._0x3146db,'st':_0xd30bd1,'ed':_0x3671fa};}),_0x2220c2[_0xf07036(0x137)]=_0x1765fe(_0x2220c2['tables'],_0x2a5063,_0x592cd3),_0x2220c2['customRanges']=_0x1765fe(_0x2220c2[_0xf07036(0x16c)],_0x2a5063,_0x592cd3),_0x2220c2[_0xf07036(0x102)]=_0x1765fe(_0x2220c2[_0xf07036(0x102)],_0x2a5063,_0x592cd3),_0x2220c2['blockRanges']=_0x1765fe(_0x2220c2[_0xf07036(0x118)],_0x2a5063,_0x592cd3);}function _0x35aa77(_0x4f2048,_0x360690,_0x14fb9f){const _0x2ae404=_0x4d88a2;return _0x4f2048==null?void 0x0:_0x4f2048[_0x2ae404(0x18b)](_0x2753b1=>_0x2753b1[_0x2ae404(0x15f)]>=_0x360690?{..._0x2753b1,'startIndex':_0x2753b1['startIndex']+_0x14fb9f}:_0x2753b1);}function _0x331e84(_0x429442,_0x500931,_0x398098){const _0x3bb408=_0x4d88a2;let _0x5b226b=_0x500931+_0x398098;return _0x429442==null?void 0x0:_0x429442[_0x3bb408(0x18b)](_0x88a76d=>_0x88a76d[_0x3bb408(0x15f)]>=_0x500931&&_0x88a76d[_0x3bb408(0x15f)]<_0x5b226b?null:_0x88a76d['startIndex']>=_0x5b226b?{..._0x88a76d,'startIndex':_0x88a76d[_0x3bb408(0x15f)]-_0x398098}:_0x88a76d)[_0x3bb408(0xf3)](_0x4429a3=>_0x4429a3!=null);}function _0x4d1a2f(_0x3d7964,_0x306370,_0x5ca1b5){const _0x492ba1=_0x4d88a2;return _0x3d7964==null?void 0x0:_0x3d7964[_0x492ba1(0x18b)](_0x2a9018=>_0x2a9018['st']>=_0x306370?{..._0x2a9018,'st':_0x2a9018['st']+_0x5ca1b5,'ed':_0x2a9018['ed']+_0x5ca1b5}:_0x2a9018['ed']>_0x306370?{..._0x2a9018,'ed':_0x2a9018['ed']+_0x5ca1b5}:_0x2a9018);}function _0xa73bb5(_0x33cf8a,_0x2e1cac,_0x19cfbd){const _0x3be297=_0x4d88a2;return _0x33cf8a==null?void 0x0:_0x33cf8a[_0x3be297(0x18b)](_0x424e13=>_0x424e13[_0x3be297(0x15f)]>=_0x2e1cac?{..._0x424e13,'startIndex':_0x424e13[_0x3be297(0x15f)]+_0x19cfbd,'endIndex':_0x424e13[_0x3be297(0x11f)]+_0x19cfbd}:_0x424e13[_0x3be297(0x11f)]>=_0x2e1cac?{..._0x424e13,'endIndex':_0x424e13['endIndex']+_0x19cfbd}:_0x424e13);}function _0x1765fe(_0x4cf84a,_0x14c374,_0x173993){const _0x364d7c=_0x4d88a2;let _0x237861=_0x14c374+_0x173993;return _0x4cf84a==null?void 0x0:_0x4cf84a[_0x364d7c(0x18b)](_0x7aa096=>_0x7aa096[_0x364d7c(0x15f)]>=_0x14c374&&_0x7aa096[_0x364d7c(0x11f)]<_0x237861?null:_0x7aa096[_0x364d7c(0x15f)]>=_0x237861?{..._0x7aa096,'startIndex':_0x7aa096[_0x364d7c(0x15f)]-_0x173993,'endIndex':_0x7aa096[_0x364d7c(0x11f)]-_0x173993}:_0x7aa096[_0x364d7c(0x11f)]>=_0x14c374?{..._0x7aa096,'startIndex':_0x7aa096[_0x364d7c(0x15f)]<_0x14c374?_0x7aa096['startIndex']:_0x14c374,'endIndex':Math[_0x364d7c(0x121)](_0x14c374,_0x7aa096[_0x364d7c(0x11f)]-_0x173993)}:_0x7aa096)['filter'](_0x3297dc=>_0x3297dc!=null);}function _0x4a69f7(_0x2ec5e5,_0x2438b2,_0x5d5f12,_0x48cda1){const _0x68a4c9=_0x4d88a2;_0x2ec5e5==null||_0x2ec5e5[_0x68a4c9(0x162)](_0x2f7017=>{const _0x5a61cd=_0x68a4c9;_0x2f7017[_0x5a61cd(0x15f)]>=_0x2438b2&&_0x2f7017[_0x5a61cd(0x15f)]<_0x5d5f12&&(_0x2f7017[_0x5a61cd(0x15f)]+=_0x48cda1);});}function _0x2c3da9(_0x1c319a,_0x2fdb3a,_0x44e7cc,_0x576b1e){_0x1c319a==null||_0x1c319a['forEach'](_0x2ccb2f=>{_0x2ccb2f['st']>=_0x2fdb3a&&_0x2ccb2f['st']<_0x44e7cc?(_0x2ccb2f['st']+=_0x576b1e,_0x2ccb2f['ed']+=_0x576b1e):_0x2ccb2f['ed']>_0x2fdb3a&&_0x2ccb2f['ed']<_0x44e7cc&&(_0x2ccb2f['ed']+=_0x576b1e);});}function _0x1f54cf(_0x39f803,_0x1f383,_0x1b41df,_0x196dab){_0x39f803==null||_0x39f803['forEach'](_0x23f851=>{const _0xcdb140=_0x3e27;_0x23f851['startIndex']>=_0x1f383&&_0x23f851[_0xcdb140(0x15f)]<_0x1b41df?(_0x23f851[_0xcdb140(0x15f)]+=_0x196dab,_0x23f851[_0xcdb140(0x11f)]+=_0x196dab):_0x23f851[_0xcdb140(0x11f)]>_0x1f383&&_0x23f851[_0xcdb140(0x11f)]<_0x1b41df&&(_0x23f851['endIndex']+=_0x196dab);});}function _0x10d288(_0x5efa25){'@babel/helpers - typeof';const _0x544b42=_0x4d88a2;return _0x10d288=typeof Symbol=='function'&&typeof Symbol[_0x544b42(0x143)]==_0x544b42(0x140)?function(_0x41a81e){return typeof _0x41a81e;}:function(_0x41bf9e){const _0x49a8b3=_0x544b42;return _0x41bf9e&&typeof Symbol==_0x49a8b3(0x113)&&_0x41bf9e[_0x49a8b3(0x16b)]===Symbol&&_0x41bf9e!==Symbol['prototype']?_0x49a8b3(0x140):typeof _0x41bf9e;},_0x10d288(_0x5efa25);}function _0x1178b0(_0x1eef80,_0x5c953f){const _0x3b736b=_0x4d88a2;if(_0x10d288(_0x1eef80)!=_0x3b736b(0x106)||!_0x1eef80)return _0x1eef80;var _0x3704f3=_0x1eef80[Symbol['toPrimitive']];if(_0x3704f3!==void 0x0){var _0x4ddd63=_0x3704f3[_0x3b736b(0x11d)](_0x1eef80,_0x5c953f||_0x3b736b(0x1a1));if(_0x10d288(_0x4ddd63)!=_0x3b736b(0x106))return _0x4ddd63;throw TypeError(_0x3b736b(0x14a));}return(_0x5c953f===_0x3b736b(0x196)?String:Number)(_0x1eef80);}function _0x41a31a(_0x558fc1){const _0x36a009=_0x4d88a2;var _0x16f173=_0x1178b0(_0x558fc1,'string');return _0x10d288(_0x16f173)==_0x36a009(0x140)?_0x16f173:_0x16f173+'';}function _0x3d50f9(_0x3b45ff,_0x33daf3,_0x15f36b){const _0x129cd0=_0x4d88a2;return(_0x33daf3=_0x41a31a(_0x33daf3))in _0x3b45ff?Object[_0x129cd0(0x173)](_0x3b45ff,_0x33daf3,{'value':_0x15f36b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3b45ff[_0x33daf3]=_0x15f36b,_0x3b45ff;}var _0x20a737=class extends _0x556a08[_0x4d88a2(0x108)]{constructor(..._0x36b719){const _0x26a221=_0x4d88a2;super(..._0x36b719),_0x3d50f9(this,_0x26a221(0x1a4),new Map()),_0x3d50f9(this,'_change$',new _0x542fca[(_0x26a221(0x197))]()),_0x3d50f9(this,_0x26a221(0x185),this[_0x26a221(0x182)][_0x26a221(0x165)]());}['getCodeConfig'](_0x31f741,_0x6f23b0){const _0x3cfb63=_0x4d88a2;return _0x22f432(this['_resources'][_0x3cfb63(0x135)](_0x31f741))[_0x3cfb63(0xfb)][_0x6f23b0];}[_0x4d88a2(0x115)](_0x56efb3,_0x16034e,_0x3dc3bc){const _0x532d88=_0x4d88a2;this[_0x532d88(0x119)](_0x56efb3,_0x16034e,_0x7eceeb(this['_resources'][_0x532d88(0x135)](_0x56efb3),_0x16034e,_0x3dc3bc));}[_0x4d88a2(0x18e)](_0x493a7e,_0x458168){const _0x5848=_0x4d88a2;this[_0x5848(0x119)](_0x493a7e,_0x458168,_0x2d2e53(this[_0x5848(0x1a4)][_0x5848(0x135)](_0x493a7e),_0x458168));}[_0x4d88a2(0x190)](_0x9eec14){const _0x3c5479=_0x4d88a2;return _0x22f432(this['_resources'][_0x3c5479(0x135)](_0x9eec14));}[_0x4d88a2(0x126)](_0x153f86,_0x3110a5){const _0x4013ed=_0x4d88a2;this[_0x4013ed(0x1a4)][_0x4013ed(0x186)](_0x153f86,_0x22f432(_0x3110a5)),this['_change$'][_0x4013ed(0x13e)]({'unitId':_0x153f86});}[_0x4d88a2(0x150)](_0x5837ce){const _0x4d292d=_0x4d88a2;this[_0x4d292d(0x1a4)]['delete'](_0x5837ce),this['_change$']['next']({'unitId':_0x5837ce});}[_0x4d88a2(0x12c)](){const _0xf0c0d=_0x4d88a2;super['dispose'](),this[_0xf0c0d(0x1a4)]['clear'](),this['_change$'][_0xf0c0d(0x16f)]();}[_0x4d88a2(0x119)](_0x1e060b,_0x3641b0,_0x55bb5d){const _0x3779fb=_0x4d88a2;this[_0x3779fb(0x1a4)]['set'](_0x1e060b,_0x55bb5d),this[_0x3779fb(0x182)]['next']({'unitId':_0x1e060b,'blockId':_0x3641b0});}};let _0x5b8922={'id':_0x4d88a2(0x180),'type':_0x556a08[_0x4d88a2(0x14e)]['COMMAND'],'handler':_0x495403=>{const _0xe73d30=_0x4d88a2;let _0x32c765=_0x2100ac(_0x495403);if(_0x32c765)return _0x495403['get'](_0x556a08[_0xe73d30(0x116)])['syncExecuteCommand'](_0x155ecb['id'],{'startOffset':_0x32c765[_0xe73d30(0x13b)],'endOffset':_0x32c765[_0xe73d30(0x189)],'unitId':_0x32c765[_0xe73d30(0x18f)]});let _0x1cff5e=_0x558faa(_0x495403);if(!_0x1cff5e)return!0x1;let _0x25a993=_0x1cff5e[_0xe73d30(0x15f)]+0x1;return _0x495403[_0xe73d30(0x135)](_0x556a08[_0xe73d30(0x116)])[_0xe73d30(0xfc)](_0x155ecb['id'],{'startOffset':_0x25a993,'endOffset':_0x25a993});}},_0x88fd27={'id':'docs-code.command.consume-boundary-delete','type':_0x556a08[_0x4d88a2(0x14e)][_0x4d88a2(0x198)],'handler':()=>!0x0},_0x155ecb={'id':_0x4d88a2(0x131),'type':_0x556a08[_0x4d88a2(0x14e)][_0x4d88a2(0x198)],'handler':(_0x314ca1,_0x5c652a)=>{const _0x3e23d5=_0x4d88a2;var _0x159792,_0x5815f1,_0x36d234;let _0x28300e=_0x458715(_0x314ca1,_0x5c652a==null?void 0x0:_0x5c652a['unitId']);if(!_0x28300e)return!0x1;let _0x4fc595=_0xe6eff6(_0x314ca1),_0x13292c=_0xc221ca({'blockId':(_0x159792=_0x5c652a==null?void 0x0:_0x5c652a[_0x3e23d5(0x10d)])==null?(0x0,_0x556a08[_0x3e23d5(0x158)])(0x6):_0x159792,'config':_0x5c652a==null?void 0x0:_0x5c652a[_0x3e23d5(0x18d)],'documentData':_0x28300e[_0x3e23d5(0x141)],'endOffset':(_0x5815f1=_0x5c652a==null?void 0x0:_0x5c652a[_0x3e23d5(0x189)])==null?_0x4fc595==null?void 0x0:_0x4fc595[_0x3e23d5(0x189)]:_0x5815f1,'metadata':_0x28300e['model'][_0x3e23d5(0x190)](_0x28300e[_0x3e23d5(0x18f)]),'startOffset':(_0x36d234=_0x5c652a==null?void 0x0:_0x5c652a['startOffset'])==null?_0x4fc595==null?void 0x0:_0x4fc595['startOffset']:_0x36d234}),_0x5a5f7a=_0x9c5d0d(_0x28300e['commandService'],_0x28300e['unitId'],_0x28300e[_0x3e23d5(0x141)],_0x13292c[_0x3e23d5(0x16d)],_0x13292c[_0x3e23d5(0x105)]);return _0x5a5f7a&&_0x13292c[_0x3e23d5(0x19b)]&&_0x28300e['model']['deserialize'](_0x28300e[_0x3e23d5(0x18f)],_0x13292c['nextMetadata']),_0x5a5f7a;}},_0x53b800={'id':'docs-code.command.update','type':_0x556a08['CommandType']['COMMAND'],'handler':(_0x2dba81,_0x5e466e)=>{const _0x13a4aa=_0x4d88a2;if(!_0x5e466e)return!0x1;let _0x4a5a97=_0x458715(_0x2dba81,_0x5e466e[_0x13a4aa(0x18f)]);if(!_0x4a5a97)return!0x1;let _0x2950bf=_0x101ada({'blockId':_0x5e466e[_0x13a4aa(0x10d)],'config':_0x5e466e[_0x13a4aa(0x18d)],'documentData':_0x4a5a97[_0x13a4aa(0x141)],'metadata':_0x4a5a97[_0x13a4aa(0x107)][_0x13a4aa(0x190)](_0x4a5a97[_0x13a4aa(0x18f)])});return _0x2950bf[_0x13a4aa(0x19b)]&&_0x4a5a97[_0x13a4aa(0x107)][_0x13a4aa(0x126)](_0x4a5a97[_0x13a4aa(0x18f)],_0x2950bf[_0x13a4aa(0x19b)]),!0x0;}},_0x485c5a={'id':_0x4d88a2(0x19e),'type':_0x556a08[_0x4d88a2(0x14e)]['COMMAND'],'handler':(_0x383852,_0x3e648b)=>{const _0x5ec219=_0x4d88a2;var _0xd6e48d,_0x589322;let _0x493335=_0x458715(_0x383852,_0x3e648b==null?void 0x0:_0x3e648b['unitId']);if(!_0x493335)return!0x1;let _0x2c51f4=(_0xd6e48d=_0x3e648b==null?void 0x0:_0x3e648b[_0x5ec219(0x105)])==null?(_0x589322=_0xe6eff6(_0x383852))==null?void 0x0:_0x589322[_0x5ec219(0x13b)]:_0xd6e48d;if(_0x2c51f4==null)return!0x1;let _0x176e1c=_0x4e45f9({'cursorOffset':_0x2c51f4,'documentData':_0x493335[_0x5ec219(0x141)]});return _0x176e1c?_0x9c5d0d(_0x493335[_0x5ec219(0xf5)],_0x493335['unitId'],_0x493335[_0x5ec219(0x141)],_0x176e1c[_0x5ec219(0x16d)],_0x176e1c[_0x5ec219(0x105)]):!0x1;}},_0xbe0682={'id':_0x4d88a2(0x10e),'type':_0x556a08[_0x4d88a2(0x14e)]['COMMAND'],'handler':(_0x53ef6e,_0x2691c1)=>{const _0x557e4d=_0x4d88a2;var _0x46a3e7,_0xe8ec2b;let _0xa5602e=_0x458715(_0x53ef6e,_0x2691c1==null?void 0x0:_0x2691c1['unitId']);if(!_0xa5602e)return!0x1;let _0x24069a=(_0x46a3e7=_0x2691c1==null?void 0x0:_0x2691c1[_0x557e4d(0x105)])==null?(_0xe8ec2b=_0xe6eff6(_0x53ef6e))==null?void 0x0:_0xe8ec2b[_0x557e4d(0x13b)]:_0x46a3e7;if(_0x24069a==null)return!0x1;let _0x47015f=_0x46da40({'cursorOffset':_0x24069a,'documentData':_0xa5602e[_0x557e4d(0x141)],'paragraphStartIndex':_0x2691c1==null?void 0x0:_0x2691c1[_0x557e4d(0x147)]});return _0x47015f?_0x9c5d0d(_0xa5602e[_0x557e4d(0xf5)],_0xa5602e[_0x557e4d(0x18f)],_0xa5602e[_0x557e4d(0x141)],_0x47015f[_0x557e4d(0x16d)],_0x47015f['cursorOffset']):!0x1;}};function _0x458715(_0x3ef3b1,_0x19acb0){const _0x1c8260=_0x4d88a2;let _0x5e6592=_0x3ef3b1['get'](_0x556a08['IUniverInstanceService']),_0x3b49a7=_0x19acb0?_0x5e6592[_0x1c8260(0x130)](_0x19acb0):_0x5e6592['getCurrentUnitOfType'](_0x556a08[_0x1c8260(0x123)][_0x1c8260(0x133)]);return _0x3b49a7?{'commandService':_0x3ef3b1[_0x1c8260(0x135)](_0x556a08[_0x1c8260(0x116)]),'model':_0x3ef3b1[_0x1c8260(0x135)](_0x20a737),'previousDocumentData':_0x3b49a7[_0x1c8260(0x15d)](),'unitId':_0x3b49a7[_0x1c8260(0x12a)]()}:null;}function _0xe6eff6(_0x4063c6){const _0x2d5e5c=_0x4d88a2;var _0x5ac016;return(_0x5ac016=_0x4063c6[_0x2d5e5c(0x135)](_0x3e4b0f['DocSelectionManagerService'])[_0x2d5e5c(0x181)]())==null?void 0x0:_0x5ac016[0x0];}function _0x2100ac(_0x79d84a){const _0x432e52=_0x4d88a2;var _0x385939;let _0xf9913b=(_0x385939=_0x79d84a[_0x432e52(0x135)](_0x556a08['IUniverInstanceService'])[_0x432e52(0x10b)](_0x556a08[_0x432e52(0x123)][_0x432e52(0x133)]))==null?void 0x0:_0x385939[_0x432e52(0x12a)]();try{return _0x79d84a['get'](_0x3e4b0f[_0x432e52(0x138)])[_0x432e52(0x120)](_0xf9913b);}catch{return null;}}function _0x558faa(_0x1abe0b){const _0x272d00=_0x4d88a2;var _0x48417c,_0x2e8396,_0x4d4a9d;let _0x15ec90=_0xe6eff6(_0x1abe0b);if(!_0x15ec90)return null;let _0x47583f=_0x1abe0b['get'](_0x556a08[_0x272d00(0x19d)])['getCurrentUnitOfType'](_0x556a08[_0x272d00(0x123)]['UNIVER_DOC']),_0x311edb=_0x47583f==null?void 0x0:_0x47583f[_0x272d00(0x199)]();return _0x311edb?(_0x48417c=_0x556a08[_0x272d00(0x14c)][_0x272d00(0x122)]['getParagraphsInRange'](_0x15ec90,(_0x2e8396=_0x311edb['paragraphs'])==null?[]:_0x2e8396,(_0x4d4a9d=_0x311edb[_0x272d00(0x18c)])==null?'':_0x4d4a9d)[0x0])==null?null:_0x48417c:null;}function _0x36d85e(_0x31f42f,_0x5b1b19){const _0x170fa0=_0x4d88a2;var _0x35651b,_0x202f8e,_0x2d2500,_0x79910a,_0x4ae6ec,_0x43cd68,_0x4e4787,_0x2760a2,_0x3d9743,_0x2c6b2d,_0xb33762,_0x47adf2,_0x28021d,_0x20ac07,_0x5d5eda,_0x577332,_0x56f136,_0x33d01e;let _0x28ccfc=_0x556a08[_0x170fa0(0x176)][_0x170fa0(0x178)]();return[_0xdbbe02(_0x28ccfc,[_0x170fa0(0x193),_0x170fa0(0x18c)],(_0x35651b=_0x31f42f[_0x170fa0(0x193)])==null?void 0x0:_0x35651b[_0x170fa0(0x18c)],(_0x202f8e=_0x5b1b19[_0x170fa0(0x193)])==null?void 0x0:_0x202f8e[_0x170fa0(0x18c)]),_0xdbbe02(_0x28ccfc,['body',_0x170fa0(0x100)],(_0x2d2500=_0x31f42f[_0x170fa0(0x193)])==null?void 0x0:_0x2d2500['paragraphs'],(_0x79910a=_0x5b1b19[_0x170fa0(0x193)])==null?void 0x0:_0x79910a['paragraphs']),_0xdbbe02(_0x28ccfc,['body',_0x170fa0(0x187)],(_0x4ae6ec=_0x31f42f[_0x170fa0(0x193)])==null?void 0x0:_0x4ae6ec[_0x170fa0(0x187)],(_0x43cd68=_0x5b1b19[_0x170fa0(0x193)])==null?void 0x0:_0x43cd68[_0x170fa0(0x187)]),_0xdbbe02(_0x28ccfc,[_0x170fa0(0x193),_0x170fa0(0x1a3)],(_0x4e4787=_0x31f42f[_0x170fa0(0x193)])==null?void 0x0:_0x4e4787[_0x170fa0(0x1a3)],(_0x2760a2=_0x5b1b19[_0x170fa0(0x193)])==null?void 0x0:_0x2760a2[_0x170fa0(0x1a3)]),_0xdbbe02(_0x28ccfc,['body',_0x170fa0(0x164)],(_0x3d9743=_0x31f42f[_0x170fa0(0x193)])==null?void 0x0:_0x3d9743[_0x170fa0(0x164)],(_0x2c6b2d=_0x5b1b19[_0x170fa0(0x193)])==null?void 0x0:_0x2c6b2d[_0x170fa0(0x164)]),_0xdbbe02(_0x28ccfc,[_0x170fa0(0x193),_0x170fa0(0x16c)],(_0xb33762=_0x31f42f['body'])==null?void 0x0:_0xb33762['customRanges'],(_0x47adf2=_0x5b1b19[_0x170fa0(0x193)])==null?void 0x0:_0x47adf2['customRanges']),_0xdbbe02(_0x28ccfc,[_0x170fa0(0x193),'customDecorations'],(_0x28021d=_0x31f42f['body'])==null?void 0x0:_0x28021d[_0x170fa0(0x102)],(_0x20ac07=_0x5b1b19['body'])==null?void 0x0:_0x20ac07[_0x170fa0(0x102)]),_0xdbbe02(_0x28ccfc,[_0x170fa0(0x193),'tables'],(_0x5d5eda=_0x31f42f[_0x170fa0(0x193)])==null?void 0x0:_0x5d5eda[_0x170fa0(0x137)],(_0x577332=_0x5b1b19['body'])==null?void 0x0:_0x577332[_0x170fa0(0x137)]),_0xdbbe02(_0x28ccfc,[_0x170fa0(0x193),'blockRanges'],(_0x56f136=_0x31f42f[_0x170fa0(0x193)])==null?void 0x0:_0x56f136[_0x170fa0(0x118)],(_0x33d01e=_0x5b1b19['body'])==null?void 0x0:_0x33d01e[_0x170fa0(0x118)])][_0x170fa0(0xf3)](Boolean)['reduce']((_0x5a7063,_0x41db4d)=>_0x556a08[_0x170fa0(0x176)][_0x170fa0(0x125)](_0x5a7063,_0x41db4d),null);}function _0xdbbe02(_0x5b5c67,_0x531a3f,_0x3df614,_0xcd29a9){const _0x39bd8f=_0x4d88a2;return _0x556a08[_0x39bd8f(0x103)][_0x39bd8f(0x1a5)](_0x3df614,_0xcd29a9)?null:_0x5b5c67['replaceOp'](_0x531a3f,_0x3df614,_0xcd29a9);}function _0x9c5d0d(_0x5a64b5,_0x30d6f4,_0x496b85,_0x49b552,_0x12a780){const _0x4d7a66=_0x4d88a2;let _0x3fae62=_0x36d85e(_0x496b85,_0x49b552);return _0x3fae62?!!_0x5a64b5['syncExecuteCommand'](_0x3e4b0f[_0x4d7a66(0x134)]['id'],{'unitId':_0x30d6f4,'actions':_0x3fae62,'textRanges':[{'startOffset':_0x12a780,'endOffset':_0x12a780,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}let _0x2262c1=_0x4d88a2(0x136);var _0x377cc2='@univerjs-pro/docs-code',_0x4c65f5=_0x4d88a2(0x175);let _0x410248={};function _0x588509(_0xef1633,_0xbbc25c){return function(_0x4b28db,_0x576511){_0xbbc25c(_0x4b28db,_0x576511,_0xef1633);};}function _0x558870(_0x192e35,_0xc3d603,_0x5dd617,_0x38df36){const _0x2c4064=_0x4d88a2;var _0x52a51e=arguments['length'],_0x272a30=_0x52a51e<0x3?_0xc3d603:_0x38df36===null?_0x38df36=Object[_0x2c4064(0x17d)](_0xc3d603,_0x5dd617):_0x38df36,_0x19520e;if(typeof Reflect=='object'&&typeof Reflect[_0x2c4064(0x12d)]==_0x2c4064(0x113))_0x272a30=Reflect[_0x2c4064(0x12d)](_0x192e35,_0xc3d603,_0x5dd617,_0x38df36);else{for(var _0x38c3cd=_0x192e35['length']-0x1;_0x38c3cd>=0x0;_0x38c3cd--)(_0x19520e=_0x192e35[_0x38c3cd])&&(_0x272a30=(_0x52a51e<0x3?_0x19520e(_0x272a30):_0x52a51e>0x3?_0x19520e(_0xc3d603,_0x5dd617,_0x272a30):_0x19520e(_0xc3d603,_0x5dd617))||_0x272a30);}return _0x52a51e>0x3&&_0x272a30&&Object['defineProperty'](_0xc3d603,_0x5dd617,_0x272a30),_0x272a30;}let _0x3f3334=class extends _0x556a08[_0x4d88a2(0x108)]{constructor(_0x3eb58f,_0x3b13d0){const _0x1f8426=_0x4d88a2;super(),this[_0x1f8426(0x166)]=_0x3eb58f,this[_0x1f8426(0x109)]=_0x3b13d0,this[_0x1f8426(0x111)]();}[_0x4d88a2(0x111)](){const _0x570db=_0x4d88a2;this['disposeWithMe'](this[_0x570db(0x166)][_0x570db(0xf1)]({'pluginName':_0x2262c1,'businesses':[_0x556a08[_0x570db(0x123)][_0x570db(0x133)]],'toJson':_0x5d0d41=>JSON[_0x570db(0x192)](this[_0x570db(0x109)][_0x570db(0x190)](_0x5d0d41)),'parseJson':_0x1258d6=>_0x22f432(JSON[_0x570db(0x14f)](_0x1258d6)),'onLoad':(_0x4a42f5,_0x4ce6b0)=>this['_docsCodeModel']['deserialize'](_0x4a42f5,_0x4ce6b0),'onUnLoad':_0x302ac9=>this[_0x570db(0x109)][_0x570db(0x150)](_0x302ac9)}));}};_0x3f3334=_0x558870([_0x588509(0x0,_0x556a08[_0x4d88a2(0xfe)]),_0x588509(0x1,(0x0,_0x556a08[_0x4d88a2(0x11a)])(_0x20a737))],_0x3f3334);let _0xf25280=class extends _0x556a08['Plugin']{constructor(_0x1cc9ac=_0x410248,_0x111519,_0x3db979,_0x2259e4){const _0x2cd009=_0x4d88a2;super(),this['_config']=_0x1cc9ac,this['_injector']=_0x111519,this[_0x2cd009(0x15e)]=_0x3db979,this[_0x2cd009(0x154)]=_0x2259e4;let {..._0x1f8708}=(0x0,_0x556a08[_0x2cd009(0x10a)])({},_0x410248,this[_0x2cd009(0x188)]);this['_configService']['setConfig'](_0x2cd009(0x117),_0x1f8708);}[_0x4d88a2(0x11b)](){const _0x446cb2=_0x4d88a2;this['_injector'][_0x446cb2(0x15b)]([_0x20a737]),this[_0x446cb2(0x191)][_0x446cb2(0x15b)]([_0x3f3334]),this[_0x446cb2(0x191)][_0x446cb2(0x135)](_0x20a737),this['_injector'][_0x446cb2(0x135)](_0x3f3334),[_0x155ecb,_0x5b8922,_0x53b800,_0x485c5a,_0xbe0682,_0x88fd27][_0x446cb2(0x162)](_0x3299e3=>this[_0x446cb2(0x183)](this[_0x446cb2(0x15e)]['registerCommand'](_0x3299e3)));}};_0x3d50f9(_0xf25280,_0x4d88a2(0x19a),_0x2262c1),_0x3d50f9(_0xf25280,'packageName',_0x377cc2),_0x3d50f9(_0xf25280,_0x4d88a2(0x1a2),_0x4c65f5),_0x3d50f9(_0xf25280,_0x4d88a2(0x170),_0x556a08['UniverInstanceType'][_0x4d88a2(0x133)]),_0xf25280=_0x558870([(0x0,_0x556a08[_0x4d88a2(0x110)])(_0x149cae[_0x4d88a2(0x13c)],_0x3e4b0f[_0x4d88a2(0xff)]),_0x588509(0x1,(0x0,_0x556a08[_0x4d88a2(0x11a)])(_0x556a08[_0x4d88a2(0x15a)])),_0x588509(0x2,_0x556a08[_0x4d88a2(0x116)]),_0x588509(0x3,_0x556a08[_0x4d88a2(0x161)])],_0xf25280),_0x8d280a[_0x4d88a2(0x177)]=_0x420f34,_0x8d280a['DOCS_CODE_PLUGIN']=_0x2262c1,_0x8d280a['DocsCodeCancelEmptyParagraphCommand']=_0xbe0682,_0x8d280a[_0x4d88a2(0x148)]=_0x88fd27,_0x8d280a[_0x4d88a2(0x163)]=_0x485c5a,_0x8d280a[_0x4d88a2(0x13f)]=_0x5b8922,_0x8d280a['DocsCodeInsertCommand']=_0x155ecb,_0x8d280a['DocsCodeModel']=_0x20a737,_0x8d280a[_0x4d88a2(0x132)]=_0x53b800,Object['defineProperty'](_0x8d280a,_0x4d88a2(0x146),{'enumerable':!0x0,'get':function(){return _0xf25280;}}),_0x8d280a[_0x4d88a2(0x174)]=_0x46da40,_0x8d280a['buildExitCodeActions']=_0x4e45f9,_0x8d280a[_0x4d88a2(0x12f)]=_0xc221ca,_0x8d280a['buildUpdateCodeActions']=_0x101ada,_0x8d280a[_0x4d88a2(0xf8)]=_0xe7815e,_0x8d280a[_0x4d88a2(0x11c)]=_0x439e8f,_0x8d280a[_0x4d88a2(0x153)]=_0x5cff9e;}));function _0x3e27(_0x1aec0d,_0x550f2e){_0x1aec0d=_0x1aec0d-0xf0;const _0x58ab7b=_0x58ab();let _0x3e275a=_0x58ab7b[_0x1aec0d];return _0x3e275a;}function _0x58ab(){const _0x551924=['_docsCodeModel','merge','getCurrentUnitOfType','textStyle','blockId','docs-code.command.cancel-empty-paragraph','join','DependentOn','_initResource','blockType','function','UniverProDocsCode','setCodeConfig','ICommandService','docs-code.config','blockRanges','_setResource','Inject','onStarting','isCodeBoundaryDelete','call','monospace','endIndex','consumeInsertRange','max','range','UniverInstanceType','direction','compose','deserialize','3dinEeO','paragraph','endTokenOffset','getUnitId','spaceBelow','dispose','decorate','5328829dsaGcx','buildInsertCodeActions','getUniverDocInstance','docs-code.command.insert','DocsCodeUpdateCommand','UNIVER_DOC','RichTextEditingMutation','get','DOC_CODE_PLUGIN','tables','DocContentInsertService','endsWith','exports','startOffset','UniverLicensePlugin','DataStreamTreeTokenType','next','DocsCodeInsertBelowCommand','symbol','previousDocumentData','slice','iterator','@univerjs-pro/license','metadata','UniverDocsCodePlugin','paragraphStartIndex','DocsCodeConsumeBoundaryDeleteCommand','javascript','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','some','BuildTextUtils','CODE','CommandType','parse','removeUnit','fromEntries','SECTION_BREAK','normalizeDocsCodeConfig','_configService','from','1942378VNjFei','sort','generateRandomId','spaceAbove','Injector','add','documentData','getSnapshot','_commandService','startIndex','createParagraphId','IConfigService','forEach','DocsCodeExitCommand','customBlocks','asObservable','_resourceManagerService','length','paragraphId','indentStart','770715pRYgVt','constructor','customRanges','nextDocumentData','UniverDocs','complete','type','946762RjLrkK','5389096QCgEBe','defineProperty','buildCancelEmptyCodeParagraphActions','0.25.0-insiders.20260618-d756bd0','JSONX','DEFAULT_CODE_CONFIG','getInstance','right','BLOCK_END','12rPSvxv','amd','getOwnPropertyDescriptor','1668YwSYqj','indexOf','docs-code.command.insert-below','getTextRanges','_change$','disposeWithMe','PARAGRAPH','change$','set','sectionBreaks','_config','endOffset','every','map','dataStream','config','removeCode','unitId','serialize','_injector','stringify','body','rxjs','DocumentBlockRangeType','string','Subject','COMMAND','getBody','pluginName','nextMetadata','@univerjs/docs','IUniverInstanceService','docs-code.command.exit','BLOCK_START','10dRdBzC','default','version','textRuns','_resources','diffValue','toStringTag','registerPluginResource','deepClone','filter','find','commandService','UniverCore','12rPvsfX','findCodeRangeAtOffset','UniverProLicense','paragraphStyle','codes','syncExecuteCommand','2222757WgzlQc','IResourceManagerService','UniverDocsPlugin','paragraphs','Module','customDecorations','Tools','26635Zpoqvj','cursorOffset','object','model','Disposable'];_0x58ab=function(){return _0x551924;};return _0x58ab();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-code",
|
|
3
|
-
"version": "0.25.0-insiders.20260618-
|
|
3
|
+
"version": "0.25.0-insiders.20260618-d756bd0",
|
|
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
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/
|
|
64
|
+
"@univerjs/core": "0.25.0-insiders.20260618-d756bd0",
|
|
65
|
+
"@univerjs/docs": "0.25.0-insiders.20260618-d756bd0",
|
|
66
|
+
"@univerjs-pro/license": "0.25.0-insiders.20260618-d756bd0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"rxjs": "7.8.2",
|