@univerjs-pro/docs-code 1.0.0-insiders.20260629-12f2e44 → 1.0.0-insiders.20260701-0ef51b0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x3ef329=_0xbb48;(function(_0x3ddedd,_0x351540){var _0x1f32d3=_0xbb48,_0x2ec39b=_0x3ddedd();while(!![]){try{var _0x4784d9=-parseInt(_0x1f32d3(0x1cd))/0x1+-parseInt(_0x1f32d3(0x1bf))/0x2*(parseInt(_0x1f32d3(0x1c9))/0x3)+parseInt(_0x1f32d3(0x1bc))/0x4+parseInt(_0x1f32d3(0x1db))/0x5*(parseInt(_0x1f32d3(0x1d3))/0x6)+parseInt(_0x1f32d3(0x1d8))/0x7*(parseInt(_0x1f32d3(0x19e))/0x8)+parseInt(_0x1f32d3(0x1c2))/0x9*(-parseInt(_0x1f32d3(0x19b))/0xa)+-parseInt(_0x1f32d3(0x1b9))/0xb;if(_0x4784d9===_0x351540)break;else _0x2ec39b['push'](_0x2ec39b['shift']());}catch(_0x95a7e1){_0x2ec39b['push'](_0x2ec39b['shift']());}}}(_0x11f8,0x2c940),Object[_0x3ef329(0x1ed)](exports,Symbol[_0x3ef329(0x1aa)],{'value':_0x3ef329(0x1a3)}));let e=require('@univerjs-pro/docs-code'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x35919f){'@babel/helpers - typeof';var _0x24a24a=_0x3ef329;return r=typeof Symbol==_0x24a24a(0x1ad)&&typeof Symbol['iterator']==_0x24a24a(0x1d0)?function(_0x51b908){return typeof _0x51b908;}:function(_0xacb712){var _0x3088a5=_0x24a24a;return _0xacb712&&typeof Symbol==_0x3088a5(0x1ad)&&_0xacb712[_0x3088a5(0x1b2)]===Symbol&&_0xacb712!==Symbol['prototype']?'symbol':typeof _0xacb712;},r(_0x35919f);}function _0x11f8(){var _0xeba7e5=['_getBlockRanges','symbol','getKey','DataStreamTreeTokenType','89004ZOQnsR','getCodeAt','endIndex','findCodeByText','syncExecuteCommand','77EhXKip','Injector','findCodes','55NAjoyc','DocsCodeExitCommand','PARAGRAPH','_getBlockRange','blockType','getCodeConfig','call','DocumentBlockRangeType','replace','_unitId','exitCode','BLOCK_START','CODE','createInstance','FDocument','blockRanges','length','getId','defineProperty','exit','describe','10ySADKm','body','save','155616jmBmED','string','_blockId','FDocumentCode','map','Module','DocsCodeUpdateCommand','object','DocsCodeModel','_injector','paragraph','_getDocumentData','toStringTag','getType','cancelEmptyParagraph','function','_createFDocumentCode','find','getCodes','includes','constructor','get','config','text','slice','DocsCodeInsertCommand','startIndex','611974InZGLn','_document','getText','855412SQWbcR','DocsCodeCancelEmptyParagraphCommand','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','2246ToWvqa','blockId','updateConfig','128853cGJkcT','SECTION_BREAK','from','ICommandService','extend','filter','decorate','723UMVbKz','getConfig','normalizeDocsCodeConfig','some','67813DnWgsn','getRange'];_0x11f8=function(){return _0xeba7e5;};return _0x11f8();}function i(_0x4eac0d,_0x2ac70a){var _0x47f1c2=_0x3ef329;if(r(_0x4eac0d)!=_0x47f1c2(0x1a5)||!_0x4eac0d)return _0x4eac0d;var _0x3558d8=_0x4eac0d[Symbol['toPrimitive']];if(_0x3558d8!==void 0x0){var _0x1049eb=_0x3558d8[_0x47f1c2(0x1e1)](_0x4eac0d,_0x2ac70a||'default');if(r(_0x1049eb)!=_0x47f1c2(0x1a5))return _0x1049eb;throw TypeError(_0x47f1c2(0x1be));}return(_0x2ac70a===_0x47f1c2(0x19f)?String:Number)(_0x4eac0d);}function a(_0x2cbc29){var _0x37f827=_0x3ef329,_0x1416a4=i(_0x2cbc29,_0x37f827(0x19f));return r(_0x1416a4)==_0x37f827(0x1d0)?_0x1416a4:_0x1416a4+'';}function o(_0x385537,_0x1ac65a,_0x4408cc){return(_0x1ac65a=a(_0x1ac65a))in _0x385537?Object['defineProperty'](_0x385537,_0x1ac65a,{'value':_0x4408cc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x385537[_0x1ac65a]=_0x4408cc,_0x385537;}function s(_0x556289,_0x996aaa){return function(_0xa0cac3,_0x280030){_0x996aaa(_0xa0cac3,_0x280030,_0x556289);};}function c(_0x5d0557,_0x50a2c1,_0x12630e,_0x4861a4){var _0x422179=_0x3ef329,_0x4a9938=arguments[_0x422179(0x1eb)],_0x5c2eb5=_0x4a9938<0x3?_0x50a2c1:_0x4861a4===null?_0x4861a4=Object['getOwnPropertyDescriptor'](_0x50a2c1,_0x12630e):_0x4861a4,_0x327baf;if(typeof Reflect==_0x422179(0x1a5)&&typeof Reflect[_0x422179(0x1c8)]==_0x422179(0x1ad))_0x5c2eb5=Reflect[_0x422179(0x1c8)](_0x5d0557,_0x50a2c1,_0x12630e,_0x4861a4);else{for(var _0x2294a0=_0x5d0557[_0x422179(0x1eb)]-0x1;_0x2294a0>=0x0;_0x2294a0--)(_0x327baf=_0x5d0557[_0x2294a0])&&(_0x5c2eb5=(_0x4a9938<0x3?_0x327baf(_0x5c2eb5):_0x4a9938>0x3?_0x327baf(_0x50a2c1,_0x12630e,_0x5c2eb5):_0x327baf(_0x50a2c1,_0x12630e))||_0x5c2eb5);}return _0x4a9938>0x3&&_0x5c2eb5&&Object[_0x422179(0x1ed)](_0x50a2c1,_0x12630e,_0x5c2eb5),_0x5c2eb5;}let l=class{constructor(_0x4b46bb,_0x4a8d3f,_0x6f156b){var _0x64051c=_0x3ef329;this[_0x64051c(0x1ba)]=_0x4b46bb,this[_0x64051c(0x1a0)]=_0x4a8d3f,this[_0x64051c(0x1a7)]=_0x6f156b,o(this,_0x64051c(0x1e4),void 0x0),this[_0x64051c(0x1e4)]=this['_document']['getId']();}[_0x3ef329(0x1ec)](){return this['_blockId'];}[_0x3ef329(0x1ce)](){var _0x3ece40=_0x3ef329;let _0x246a1f=this[_0x3ece40(0x1de)]();return _0x246a1f?{'blockId':_0x246a1f[_0x3ece40(0x1c0)],'endIndex':_0x246a1f[_0x3ece40(0x1d5)],'startIndex':_0x246a1f[_0x3ece40(0x1b8)]}:null;}[_0x3ef329(0x1bb)](){var _0x39fad0=_0x3ef329,_0xb6a7a2;let _0x2f16e1=this[_0x39fad0(0x1de)](),_0x55cabb=(_0xb6a7a2=this[_0x39fad0(0x1a9)]()[_0x39fad0(0x19c)])==null?void 0x0:_0xb6a7a2['dataStream'];return!_0x2f16e1||!_0x55cabb?'':u(_0x55cabb[_0x39fad0(0x1b6)](_0x2f16e1['startIndex']+0x1,_0x2f16e1['endIndex']));}[_0x3ef329(0x19a)](){var _0x8b48e0=_0x3ef329;let _0x126d75=this[_0x8b48e0(0x1ce)]();return _0x126d75?{..._0x126d75,'config':this[_0x8b48e0(0x1ca)](),'text':this[_0x8b48e0(0x1bb)](),'type':t[_0x8b48e0(0x1e2)][_0x8b48e0(0x1e7)]}:null;}[_0x3ef329(0x1ca)](){var _0x431ae6=_0x3ef329;return(0x0,e[_0x431ae6(0x1cb)])(this[_0x431ae6(0x1a7)][_0x431ae6(0x1b3)](e[_0x431ae6(0x1a6)])[_0x431ae6(0x1e0)](this[_0x431ae6(0x1e4)],this[_0x431ae6(0x1a0)]));}[_0x3ef329(0x1c1)](_0x335fd0){var _0x59d876=_0x3ef329;return this[_0x59d876(0x1a7)][_0x59d876(0x1b3)](t[_0x59d876(0x1c5)])[_0x59d876(0x1d7)](e[_0x59d876(0x1a4)]['id'],{'blockId':this[_0x59d876(0x1a0)],'config':_0x335fd0[_0x59d876(0x1b4)],'unitId':this[_0x59d876(0x1e4)]});}[_0x3ef329(0x199)](_0x14ea6b){var _0x4b6b19=_0x3ef329;return this[_0x4b6b19(0x1a7)][_0x4b6b19(0x1b3)](t[_0x4b6b19(0x1c5)])[_0x4b6b19(0x1d7)](e[_0x4b6b19(0x1dc)]['id'],{'cursorOffset':_0x14ea6b,'unitId':this[_0x4b6b19(0x1e4)]});}[_0x3ef329(0x1ac)](_0x3846ab={}){var _0x128204=_0x3ef329;return this[_0x128204(0x1a7)]['get'](t[_0x128204(0x1c5)])[_0x128204(0x1d7)](e[_0x128204(0x1bd)]['id'],{..._0x3846ab,'unitId':this['_unitId']});}[_0x3ef329(0x1a9)](){var _0xee038c=_0x3ef329;return this['_document'][_0xee038c(0x19d)]();}['_getBlockRange'](){var _0xf3e0ab=_0x3ef329,_0x313d12;let _0x2c7f37=(_0x313d12=this[_0xf3e0ab(0x1a9)]()[_0xf3e0ab(0x19c)])==null||(_0x313d12=_0x313d12[_0xf3e0ab(0x1ea)])==null?void 0x0:_0x313d12[_0xf3e0ab(0x1af)](_0x32150d=>_0x32150d[_0xf3e0ab(0x1c0)]===this[_0xf3e0ab(0x1a0)]&&_0x32150d[_0xf3e0ab(0x1df)]===t[_0xf3e0ab(0x1e2)][_0xf3e0ab(0x1e7)]);return _0x2c7f37==null?null:_0x2c7f37;}};l=c([s(0x2,(0x0,t['Inject'])(t[_0x3ef329(0x1d9)]))],l);function u(_0x93e1a1){var _0x408447=_0x3ef329;return Array[_0x408447(0x1c4)](_0x93e1a1)[_0x408447(0x1a2)](_0x34b68c=>_0x34b68c===t[_0x408447(0x1d2)][_0x408447(0x1dd)]?'\x0a':_0x34b68c)[_0x408447(0x1c7)](_0x4bdd9f=>_0x4bdd9f!==t[_0x408447(0x1d2)][_0x408447(0x1e6)]&&_0x4bdd9f!==t[_0x408447(0x1d2)]['BLOCK_END']&&_0x4bdd9f!==t[_0x408447(0x1d2)][_0x408447(0x1c3)])['join']('')[_0x408447(0x1e3)](/\n$/,'');}var d=class extends n[_0x3ef329(0x1e9)]{[_0x3ef329(0x1b0)](){var _0x132e74=_0x3ef329;return this[_0x132e74(0x1cf)]()[_0x132e74(0x1c7)](_0x329402=>_0x329402[_0x132e74(0x1df)]===t[_0x132e74(0x1e2)][_0x132e74(0x1e7)])[_0x132e74(0x1a2)](_0x78ecd0=>this['_createFDocumentCode'](_0x78ecd0[_0x132e74(0x1c0)]));}['getCode'](_0x4c7b1b){var _0x14b939=_0x3ef329;return this[_0x14b939(0x1cf)]()[_0x14b939(0x1cc)](_0x5934d9=>_0x5934d9[_0x14b939(0x1c0)]===_0x4c7b1b&&_0x5934d9[_0x14b939(0x1df)]===t[_0x14b939(0x1e2)][_0x14b939(0x1e7)])?this['_createFDocumentCode'](_0x4c7b1b):null;}[_0x3ef329(0x1d4)](_0x4f5410){var _0x3c5e40=_0x3ef329;let _0x5eac68=this[_0x3c5e40(0x1cf)]()['find'](_0x43a3e0=>_0x43a3e0[_0x3c5e40(0x1df)]===t[_0x3c5e40(0x1e2)][_0x3c5e40(0x1e7)]&&_0x43a3e0['startIndex']<=_0x4f5410&&_0x4f5410<=_0x43a3e0[_0x3c5e40(0x1d5)]);return _0x5eac68?this[_0x3c5e40(0x1ae)](_0x5eac68[_0x3c5e40(0x1c0)]):null;}[_0x3ef329(0x1d6)](_0x16f6ac){var _0xeca904=_0x3ef329,_0x474b25;return(_0x474b25=this[_0xeca904(0x1da)](_0x16f6ac)[0x0])==null?null:_0x474b25;}[_0x3ef329(0x1da)](_0x2ced0e){var _0x3a5aea=_0x3ef329;let _0x317299=typeof _0x2ced0e==_0x3a5aea(0x19f)?{'text':_0x2ced0e}:_0x2ced0e;return this[_0x3a5aea(0x1b0)]()[_0x3a5aea(0x1c7)](_0x20eb19=>!(_0x317299[_0x3a5aea(0x1c0)]&&_0x20eb19[_0x3a5aea(0x1ec)]()!==_0x317299['blockId']||_0x317299[_0x3a5aea(0x1b5)]&&!_0x20eb19[_0x3a5aea(0x1bb)]()[_0x3a5aea(0x1b1)](_0x317299[_0x3a5aea(0x1b5)])));}['insertCode'](_0x1a8337={},_0xa111b8={}){var _0x5d4183=_0x3ef329,_0x403ccb;let _0x3eaad4=this[_0x5d4183(0x1a7)][_0x5d4183(0x1b3)](t[_0x5d4183(0x1c5)]),_0x39552c=f(_0x1a8337)?{..._0xa111b8,...p(_0x1a8337)}:_0x1a8337,_0x5d5ceb=(_0x403ccb=_0x39552c[_0x5d4183(0x1c0)])==null?(0x0,t['generateRandomId'])(0x6):_0x403ccb;return _0x3eaad4[_0x5d4183(0x1d7)](e[_0x5d4183(0x1b7)]['id'],{..._0x39552c,'blockId':_0x5d5ceb,'unitId':this[_0x5d4183(0x1ec)]()})?this[_0x5d4183(0x1ae)](_0x5d5ceb):null;}[_0x3ef329(0x1e5)](_0x4c9755){var _0x47de34=_0x3ef329;return this[_0x47de34(0x1a7)][_0x47de34(0x1b3)](t['ICommandService'])[_0x47de34(0x1d7)](e[_0x47de34(0x1dc)]['id'],{'cursorOffset':_0x4c9755,'unitId':this[_0x47de34(0x1ec)]()});}['cancelEmptyCodeParagraph'](_0x63d052={}){var _0x2f1f9f=_0x3ef329;return this[_0x2f1f9f(0x1a7)][_0x2f1f9f(0x1b3)](t[_0x2f1f9f(0x1c5)])[_0x2f1f9f(0x1d7)](e[_0x2f1f9f(0x1bd)]['id'],{..._0x63d052,'unitId':this[_0x2f1f9f(0x1ec)]()});}[_0x3ef329(0x1cf)](){var _0x48cdde=_0x3ef329,_0x216405,_0x568834;return(_0x216405=(_0x568834=this[_0x48cdde(0x19d)]()[_0x48cdde(0x19c)])==null?void 0x0:_0x568834[_0x48cdde(0x1ea)])==null?[]:_0x216405;}['_createFDocumentCode'](_0x49e8af){var _0x476704=_0x3ef329;return this['_injector'][_0x476704(0x1e8)](l,this,_0x49e8af);}};function f(_0x2a46bc){var _0x3f5f5=_0x3ef329;return typeof _0x2a46bc==_0x3f5f5(0x1a5)&&!!_0x2a46bc&&typeof _0x2a46bc[_0x3f5f5(0x1d1)]==_0x3f5f5(0x1ad)&&typeof _0x2a46bc[_0x3f5f5(0x1ce)]==_0x3f5f5(0x1ad)&&typeof _0x2a46bc[_0x3f5f5(0x1ab)]=='function'&&_0x2a46bc[_0x3f5f5(0x1ab)]()===_0x3f5f5(0x1a8);}function p(_0x390539){var _0x4be260=_0x3ef329;return _0x390539[_0x4be260(0x1ce)]();}function _0xbb48(_0x2dc286,_0x2fe105){_0x2dc286=_0x2dc286-0x199;var _0x11f88b=_0x11f8();var _0xbb48c0=_0x11f88b[_0x2dc286];return _0xbb48c0;}n[_0x3ef329(0x1e9)][_0x3ef329(0x1c6)](d),Object['defineProperty'](exports,_0x3ef329(0x1a1),{'enumerable':!0x0,'get':function(){return l;}});
1
+ var _0x23ece7=_0x1331;(function(_0x57c423,_0xee1091){var _0xa685ca=_0x1331,_0x25c73a=_0x57c423();while(!![]){try{var _0x544428=-parseInt(_0xa685ca(0x167))/0x1+-parseInt(_0xa685ca(0x163))/0x2+parseInt(_0xa685ca(0x16c))/0x3+parseInt(_0xa685ca(0x156))/0x4+-parseInt(_0xa685ca(0x148))/0x5*(parseInt(_0xa685ca(0x182))/0x6)+parseInt(_0xa685ca(0x15a))/0x7+parseInt(_0xa685ca(0x14a))/0x8*(parseInt(_0xa685ca(0x13b))/0x9);if(_0x544428===_0xee1091)break;else _0x25c73a['push'](_0x25c73a['shift']());}catch(_0xe65fc3){_0x25c73a['push'](_0x25c73a['shift']());}}}(_0xe6a8,0xe2067),Object[_0x23ece7(0x16f)](exports,Symbol[_0x23ece7(0x15c)],{'value':_0x23ece7(0x180)}));let e=require('@univerjs-pro/docs-code'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x921b94){'@babel/helpers - typeof';var _0x5ef04c=_0x23ece7;return r=typeof Symbol==_0x5ef04c(0x166)&&typeof Symbol[_0x5ef04c(0x168)]==_0x5ef04c(0x136)?function(_0x1fed84){return typeof _0x1fed84;}:function(_0x40c661){var _0x1263a2=_0x5ef04c;return _0x40c661&&typeof Symbol==_0x1263a2(0x166)&&_0x40c661[_0x1263a2(0x16e)]===Symbol&&_0x40c661!==Symbol['prototype']?_0x1263a2(0x136):typeof _0x40c661;},r(_0x921b94);}function i(_0x3bffc1,_0x2f1de0){var _0x3cfcaf=_0x23ece7;if(r(_0x3bffc1)!='object'||!_0x3bffc1)return _0x3bffc1;var _0x5b4649=_0x3bffc1[Symbol[_0x3cfcaf(0x13e)]];if(_0x5b4649!==void 0x0){var _0x478e2e=_0x5b4649[_0x3cfcaf(0x174)](_0x3bffc1,_0x2f1de0||_0x3cfcaf(0x149));if(r(_0x478e2e)!=_0x3cfcaf(0x135))return _0x478e2e;throw TypeError(_0x3cfcaf(0x152));}return(_0x2f1de0==='string'?String:Number)(_0x3bffc1);}function a(_0x549fa2){var _0x19f7c7=_0x23ece7,_0x68cabf=i(_0x549fa2,_0x19f7c7(0x173));return r(_0x68cabf)==_0x19f7c7(0x136)?_0x68cabf:_0x68cabf+'';}function o(_0x24d50b,_0x30d7ac,_0x4af003){var _0x19d5c5=_0x23ece7;return(_0x30d7ac=a(_0x30d7ac))in _0x24d50b?Object[_0x19d5c5(0x16f)](_0x24d50b,_0x30d7ac,{'value':_0x4af003,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x24d50b[_0x30d7ac]=_0x4af003,_0x24d50b;}function s(_0x488df6,_0x533163){return function(_0x2e3f49,_0x42efc7){_0x533163(_0x2e3f49,_0x42efc7,_0x488df6);};}function c(_0x17144e,_0x2d4dbc,_0x54cb3f,_0x462007){var _0x155f4a=_0x23ece7,_0xffe4d5=arguments[_0x155f4a(0x15b)],_0x5d5b92=_0xffe4d5<0x3?_0x2d4dbc:_0x462007===null?_0x462007=Object[_0x155f4a(0x15d)](_0x2d4dbc,_0x54cb3f):_0x462007,_0x477229;if(typeof Reflect==_0x155f4a(0x135)&&typeof Reflect[_0x155f4a(0x14e)]==_0x155f4a(0x166))_0x5d5b92=Reflect['decorate'](_0x17144e,_0x2d4dbc,_0x54cb3f,_0x462007);else{for(var _0x41b45d=_0x17144e['length']-0x1;_0x41b45d>=0x0;_0x41b45d--)(_0x477229=_0x17144e[_0x41b45d])&&(_0x5d5b92=(_0xffe4d5<0x3?_0x477229(_0x5d5b92):_0xffe4d5>0x3?_0x477229(_0x2d4dbc,_0x54cb3f,_0x5d5b92):_0x477229(_0x2d4dbc,_0x54cb3f))||_0x5d5b92);}return _0xffe4d5>0x3&&_0x5d5b92&&Object[_0x155f4a(0x16f)](_0x2d4dbc,_0x54cb3f,_0x5d5b92),_0x5d5b92;}let l=class{constructor(_0x323b76,_0x3983cf,_0x1ebd5e){var _0x404591=_0x23ece7;this[_0x404591(0x177)]=_0x323b76,this[_0x404591(0x16a)]=_0x3983cf,this[_0x404591(0x144)]=_0x1ebd5e,o(this,_0x404591(0x17b),void 0x0),this[_0x404591(0x17b)]=this[_0x404591(0x177)]['getId']();}[_0x23ece7(0x142)](){return this['_blockId'];}[_0x23ece7(0x16d)](){var _0x5cbc28=_0x23ece7;let _0x183515=this['_getBlockRange']();return _0x183515?{'blockId':_0x183515['blockId'],'endIndex':_0x183515[_0x5cbc28(0x138)],'startIndex':_0x183515['startIndex']}:null;}['getText'](){var _0x12272f=_0x23ece7,_0x362ef4;let _0x652392=this[_0x12272f(0x140)](),_0x30a996=(_0x362ef4=this[_0x12272f(0x155)]()[_0x12272f(0x17f)])==null?void 0x0:_0x362ef4[_0x12272f(0x145)];return!_0x652392||!_0x30a996?'':u(_0x30a996[_0x12272f(0x146)](_0x652392[_0x12272f(0x14c)]+0x1,_0x652392[_0x12272f(0x138)]));}['describe'](){var _0x403448=_0x23ece7;let _0x23cfa8=this[_0x403448(0x16d)]();return _0x23cfa8?{..._0x23cfa8,'config':this[_0x403448(0x13c)](),'text':this['getText'](),'type':t['DocumentBlockRangeType'][_0x403448(0x17c)]}:null;}['getConfig'](){var _0x2549b5=_0x23ece7;return(0x0,e['normalizeDocsCodeConfig'])(this[_0x2549b5(0x144)][_0x2549b5(0x164)](e[_0x2549b5(0x13a)])[_0x2549b5(0x12e)](this[_0x2549b5(0x17b)],this[_0x2549b5(0x16a)]));}[_0x23ece7(0x12f)](_0x4437d2){var _0x1a1f36=_0x23ece7;return this[_0x1a1f36(0x144)]['get'](t[_0x1a1f36(0x134)])[_0x1a1f36(0x179)](e[_0x1a1f36(0x157)]['id'],{'blockId':this[_0x1a1f36(0x16a)],'config':_0x4437d2[_0x1a1f36(0x17a)],'unitId':this[_0x1a1f36(0x17b)]});}[_0x23ece7(0x15f)](_0x49e8d0){var _0x5572c6=_0x23ece7;return this[_0x5572c6(0x144)][_0x5572c6(0x164)](t['ICommandService'])['syncExecuteCommand'](e[_0x5572c6(0x143)]['id'],{'cursorOffset':_0x49e8d0,'unitId':this[_0x5572c6(0x17b)]});}[_0x23ece7(0x137)](_0x141ec3={}){var _0x3a9392=_0x23ece7;return this[_0x3a9392(0x144)][_0x3a9392(0x164)](t[_0x3a9392(0x134)])['syncExecuteCommand'](e['DocsCodeCancelEmptyParagraphCommand']['id'],{..._0x141ec3,'unitId':this['_unitId']});}[_0x23ece7(0x155)](){var _0x377832=_0x23ece7;return this[_0x377832(0x177)][_0x377832(0x131)]();}[_0x23ece7(0x140)](){var _0x2388ba=_0x23ece7,_0x4c85b2;let _0x2c46a9=(_0x4c85b2=this[_0x2388ba(0x155)]()['body'])==null||(_0x4c85b2=_0x4c85b2[_0x2388ba(0x159)])==null?void 0x0:_0x4c85b2['find'](_0x1575a2=>_0x1575a2['blockId']===this['_blockId']&&_0x1575a2[_0x2388ba(0x158)]===t[_0x2388ba(0x14b)][_0x2388ba(0x17c)]);return _0x2c46a9==null?null:_0x2c46a9;}};l=c([s(0x2,(0x0,t[_0x23ece7(0x171)])(t[_0x23ece7(0x141)]))],l);function u(_0x3343f5){var _0x39e95c=_0x23ece7;return Array[_0x39e95c(0x154)](_0x3343f5)['map'](_0x434df5=>_0x434df5===t[_0x39e95c(0x176)][_0x39e95c(0x170)]?'\x0a':_0x434df5)[_0x39e95c(0x162)](_0x3b90db=>_0x3b90db!==t[_0x39e95c(0x176)][_0x39e95c(0x181)]&&_0x3b90db!==t[_0x39e95c(0x176)][_0x39e95c(0x16b)]&&_0x3b90db!==t[_0x39e95c(0x176)][_0x39e95c(0x169)])['join']('')['replace'](/\n$/,'');}function _0xe6a8(){var _0xd16f59=['blockId','DocsCodeModel','22203yIOBrJ','getConfig','insertCode','toPrimitive','DocsCodeCancelEmptyParagraphCommand','_getBlockRange','Injector','getId','DocsCodeExitCommand','_injector','dataStream','slice','find','67805EYHMRs','default','12200TfgyNI','DocumentBlockRangeType','startIndex','createInstance','decorate','text','_getBlockRanges','some','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getType','from','_getDocumentData','1626380MAnUAn','DocsCodeUpdateCommand','blockType','blockRanges','1769453Vvrfzh','length','toStringTag','getOwnPropertyDescriptor','DocsCodeInsertCommand','exit','cancelEmptyCodeParagraph','findCodeByText','filter','2555654OMbINX','get','getCode','function','1339327aUoCNR','iterator','SECTION_BREAK','_blockId','BLOCK_END','1513878wWoFNE','getRange','constructor','defineProperty','PARAGRAPH','Inject','getCodeAt','string','call','getText','DataStreamTreeTokenType','_document','exitCode','syncExecuteCommand','config','_unitId','CODE','_createFDocumentCode','findCodes','body','Module','BLOCK_START','612yhWmCo','getCodeConfig','updateConfig','extend','save','getKey','FDocument','ICommandService','object','symbol','cancelEmptyParagraph','endIndex'];_0xe6a8=function(){return _0xd16f59;};return _0xe6a8();}function _0x1331(_0x1c2f0b,_0x19ed0){_0x1c2f0b=_0x1c2f0b-0x12e;var _0xe6a813=_0xe6a8();var _0x133137=_0xe6a813[_0x1c2f0b];return _0x133137;}var d=class extends n[_0x23ece7(0x133)]{['getCodes'](){var _0xcea642=_0x23ece7;return this[_0xcea642(0x150)]()[_0xcea642(0x162)](_0x5391a7=>_0x5391a7[_0xcea642(0x158)]===t[_0xcea642(0x14b)]['CODE'])['map'](_0x168849=>this[_0xcea642(0x17d)](_0x168849[_0xcea642(0x139)]));}[_0x23ece7(0x165)](_0x179361){var _0x5da276=_0x23ece7;return this['_getBlockRanges']()[_0x5da276(0x151)](_0x1ff9e0=>_0x1ff9e0[_0x5da276(0x139)]===_0x179361&&_0x1ff9e0[_0x5da276(0x158)]===t[_0x5da276(0x14b)][_0x5da276(0x17c)])?this[_0x5da276(0x17d)](_0x179361):null;}[_0x23ece7(0x172)](_0x439e2f){var _0x481c10=_0x23ece7;let _0x26cfc6=this['_getBlockRanges']()[_0x481c10(0x147)](_0x58053d=>_0x58053d['blockType']===t[_0x481c10(0x14b)][_0x481c10(0x17c)]&&_0x58053d[_0x481c10(0x14c)]<=_0x439e2f&&_0x439e2f<=_0x58053d[_0x481c10(0x138)]);return _0x26cfc6?this['_createFDocumentCode'](_0x26cfc6[_0x481c10(0x139)]):null;}[_0x23ece7(0x161)](_0x522485){var _0x156f9f=_0x23ece7,_0x420c02;return(_0x420c02=this[_0x156f9f(0x17e)](_0x522485)[0x0])==null?null:_0x420c02;}[_0x23ece7(0x17e)](_0x5df1c3){var _0x4cc4d9=_0x23ece7;let _0x4d2c38=typeof _0x5df1c3=='string'?{'text':_0x5df1c3}:_0x5df1c3;return this['getCodes']()[_0x4cc4d9(0x162)](_0x2fefa3=>!(_0x4d2c38['blockId']&&_0x2fefa3[_0x4cc4d9(0x142)]()!==_0x4d2c38[_0x4cc4d9(0x139)]||_0x4d2c38[_0x4cc4d9(0x14f)]&&!_0x2fefa3[_0x4cc4d9(0x175)]()['includes'](_0x4d2c38[_0x4cc4d9(0x14f)])));}[_0x23ece7(0x13d)](_0x33b75d={},_0x1d705a={}){var _0x2436bf=_0x23ece7,_0x298d83;let _0x313560=this[_0x2436bf(0x144)][_0x2436bf(0x164)](t[_0x2436bf(0x134)]),_0xa2efa0=f(_0x33b75d)?{..._0x1d705a,...p(_0x33b75d)}:_0x33b75d,_0xb176bc=(_0x298d83=_0xa2efa0['blockId'])==null?(0x0,t['generateRandomId'])(0x6):_0x298d83;return _0x313560[_0x2436bf(0x179)](e[_0x2436bf(0x15e)]['id'],{..._0xa2efa0,'blockId':_0xb176bc,'unitId':this[_0x2436bf(0x142)]()})?this[_0x2436bf(0x17d)](_0xb176bc):null;}[_0x23ece7(0x178)](_0x1a5bc7){var _0x5ab32d=_0x23ece7;return this[_0x5ab32d(0x144)]['get'](t[_0x5ab32d(0x134)])[_0x5ab32d(0x179)](e[_0x5ab32d(0x143)]['id'],{'cursorOffset':_0x1a5bc7,'unitId':this[_0x5ab32d(0x142)]()});}[_0x23ece7(0x160)](_0x55f74a={}){var _0x4cefec=_0x23ece7;return this[_0x4cefec(0x144)][_0x4cefec(0x164)](t['ICommandService'])[_0x4cefec(0x179)](e[_0x4cefec(0x13f)]['id'],{..._0x55f74a,'unitId':this['getId']()});}['_getBlockRanges'](){var _0x404033=_0x23ece7,_0x577ac0,_0x4cdb5f;return(_0x577ac0=(_0x4cdb5f=this[_0x404033(0x131)]()[_0x404033(0x17f)])==null?void 0x0:_0x4cdb5f[_0x404033(0x159)])==null?[]:_0x577ac0;}['_createFDocumentCode'](_0x3094a2){var _0x1737f5=_0x23ece7;return this[_0x1737f5(0x144)][_0x1737f5(0x14d)](l,this,_0x3094a2);}};function f(_0x23bb3c){var _0x59ede1=_0x23ece7;return typeof _0x23bb3c==_0x59ede1(0x135)&&!!_0x23bb3c&&typeof _0x23bb3c[_0x59ede1(0x132)]=='function'&&typeof _0x23bb3c[_0x59ede1(0x16d)]==_0x59ede1(0x166)&&typeof _0x23bb3c[_0x59ede1(0x153)]==_0x59ede1(0x166)&&_0x23bb3c['getType']()==='paragraph';}function p(_0x55708e){var _0x507954=_0x23ece7;return _0x55708e[_0x507954(0x16d)]();}n[_0x23ece7(0x133)][_0x23ece7(0x130)](d),Object['defineProperty'](exports,'FDocumentCode',{'enumerable':!0x0,'get':function(){return l;}});
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4b6d09=_0x1328;(function(_0x509cbd,_0x173a32){const _0x1621f6=_0x1328,_0x1dff96=_0x509cbd();while(!![]){try{const _0x134b44=-parseInt(_0x1621f6(0xf8))/0x1*(parseInt(_0x1621f6(0x124))/0x2)+-parseInt(_0x1621f6(0xbb))/0x3*(parseInt(_0x1621f6(0xcc))/0x4)+-parseInt(_0x1621f6(0xc4))/0x5+parseInt(_0x1621f6(0x129))/0x6+-parseInt(_0x1621f6(0xc8))/0x7*(-parseInt(_0x1621f6(0xd0))/0x8)+parseInt(_0x1621f6(0x130))/0x9*(-parseInt(_0x1621f6(0xe7))/0xa)+parseInt(_0x1621f6(0xe9))/0xb;if(_0x134b44===_0x173a32)break;else _0x1dff96['push'](_0x1dff96['shift']());}catch(_0x5765ef){_0x1dff96['push'](_0x1dff96['shift']());}}}(_0xc18d,0xe85c5),Object['defineProperty'](exports,Symbol[_0x4b6d09(0x12a)],{'value':_0x4b6d09(0xc3)}));let e=require('@univerjs/core'),t=require('@univerjs/docs'),n=require('rxjs'),r=require('@univerjs-pro/license');const i={'language':_0x4b6d09(0xb0),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function a(_0x40055d){return{...i,..._0x40055d};}function o(_0x3b2227){const _0x1b7f66=_0x4b6d09;var _0x4f9c19;let _0x1f1ca0=(_0x4f9c19=_0x3b2227==null?void 0x0:_0x3b2227[_0x1b7f66(0x131)])==null?{}:_0x4f9c19;return{'codes':Object['fromEntries'](Object['entries'](_0x1f1ca0)[_0x1b7f66(0xee)](([_0x284585,_0xca193e])=>[_0x284585,a(_0xca193e)]))};}function s(_0x17710c,_0x447191,_0x59e24a){const _0x44b6c7=_0x4b6d09;let _0x291dc4=o(_0x17710c);return _0x291dc4['codes'][_0x447191]=a({..._0x291dc4[_0x44b6c7(0x131)][_0x447191],..._0x59e24a}),_0x291dc4;}function c(_0x33aada,_0x191668){const _0x50fb66=_0x4b6d09;let _0x21f0d1=o(_0x33aada);return delete _0x21f0d1[_0x50fb66(0x131)][_0x191668],_0x21f0d1;}const l=_0x4b6d09(0xe3);function u(_0x504b51){const _0x45eefb=_0x4b6d09;var _0xd175f4,_0x55f4c8,_0x403ff9;let _0x139945=w(_0x504b51[_0x45eefb(0x123)]),_0x15bee1=T(_0x139945),_0x4b74f2=f(_0x504b51[_0x45eefb(0x141)],_0x504b51[_0x45eefb(0xea)]),_0x329f0b=_0x4b74f2?(_0xd175f4=_0x15bee1['blockRanges'])==null?void 0x0:_0xd175f4['find'](_0x1eb755=>_0x1eb755[_0x45eefb(0xb8)]===_0x4b74f2[_0x45eefb(0x141)]&&_0x1eb755[_0x45eefb(0xe6)]+0x1===_0x4b74f2[_0x45eefb(0xea)]):void 0x0,{startOffset:_0x220f52,endOffset:_0x3cf739}=_0x329f0b?_0x4b74f2:te(_0x15bee1,_0x504b51[_0x45eefb(0x141)],_0x504b51[_0x45eefb(0xea)]),_0x4c9e2e=ie(_0x15bee1,_0x220f52,_0x3cf739),_0x76d3fc=(_0x55f4c8=_0x329f0b==null?void 0x0:_0x329f0b[_0x45eefb(0x10b)])==null?_0x504b51[_0x45eefb(0x10b)]:_0x55f4c8,_0x5a3bf3=s(_0x504b51[_0x45eefb(0xbe)],_0x76d3fc,{...i,..._0x504b51[_0x45eefb(0x13a)]});if(_0x329f0b)return _0x329f0b['blockType']=e[_0x45eefb(0x147)][_0x45eefb(0xc7)],d(_0x15bee1,_0x220f52,_0x3cf739),x(_0x15bee1,_0x220f52,_0x3cf739,_0x4c9e2e),O(_0x15bee1,_0x329f0b),{'nextDocumentData':_0x139945,'nextMetadata':_0x5a3bf3,'cursorOffset':_0x220f52+0x1};if(_0x220f52===_0x3cf739){var _0x4fb768,_0x274cb2;let _0x4e0c91=''+e[_0x45eefb(0xc1)]['BLOCK_START']+e['DataStreamTreeTokenType'][_0x45eefb(0xe1)]+e[_0x45eefb(0xc1)][_0x45eefb(0xdc)];k(_0x15bee1,_0x220f52,_0x4e0c91,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e[_0x45eefb(0xe4)])(new Set((_0x4fb768=_0x15bee1[_0x45eefb(0x148)])==null?void 0x0:_0x4fb768[_0x45eefb(0xee)](_0x39d285=>_0x39d285['paragraphId']))),'paragraphStyle':b(!0x0,!0x0,_0x4c9e2e)}],'blockRanges':[{'blockId':_0x76d3fc,'blockType':e['DocumentBlockRangeType'][_0x45eefb(0xc7)],'startIndex':0x0,'endIndex':_0x4e0c91[_0x45eefb(0xef)]-0x1}]});let _0x2b7629=(_0x274cb2=_0x15bee1[_0x45eefb(0xfc)])==null?void 0x0:_0x274cb2['find'](_0x1f1a5a=>_0x1f1a5a[_0x45eefb(0x10b)]===_0x76d3fc);return _0x2b7629&&O(_0x15bee1,_0x2b7629),{'nextDocumentData':_0x139945,'nextMetadata':_0x5a3bf3,'cursorOffset':_0x220f52+0x1};}k(_0x15bee1,_0x3cf739,e[_0x45eefb(0xc1)][_0x45eefb(0xdc)]),k(_0x15bee1,_0x220f52,e[_0x45eefb(0xc1)][_0x45eefb(0x11a)]),x(_0x15bee1,_0x220f52,_0x3cf739+0x1,_0x4c9e2e);let _0x47abb6={'blockId':_0x76d3fc,'blockType':e[_0x45eefb(0x147)][_0x45eefb(0xc7)],'startIndex':_0x220f52,'endIndex':_0x3cf739+0x1};return _0x15bee1[_0x45eefb(0xfc)]=[...(_0x403ff9=_0x15bee1[_0x45eefb(0xfc)])==null?[]:_0x403ff9,_0x47abb6][_0x45eefb(0x12c)]((_0x37b394,_0x40b6c8)=>_0x37b394[_0x45eefb(0xb8)]-_0x40b6c8['startIndex']),O(_0x15bee1,_0x47abb6),{'nextDocumentData':_0x139945,'nextMetadata':_0x5a3bf3,'cursorOffset':_0x220f52+0x1};}function d(_0x587216,_0x266dce,_0x311160){const _0x3fd01b=_0x4b6d09;var _0x52e464;((_0x52e464=_0x587216[_0x3fd01b(0x148)])==null?[]:_0x52e464)[_0x3fd01b(0x154)](_0x4042bc=>_0x4042bc[_0x3fd01b(0xb8)]>_0x266dce&&_0x4042bc['startIndex']<_0x311160)[_0x3fd01b(0x117)](_0x5ca40b=>{const _0x2bc8a6=_0x3fd01b;var _0x3a2f5f;let _0x2f6a93={...(_0x3a2f5f=_0x5ca40b[_0x2bc8a6(0x125)])==null?{}:_0x3a2f5f};delete _0x2f6a93[_0x2bc8a6(0x151)],delete _0x2f6a93[_0x2bc8a6(0x14d)],_0x5ca40b[_0x2bc8a6(0x125)]=_0x2f6a93;});}function f(_0x4deef4,_0x3c93f5){const _0x282413=_0x4b6d09;return _0x4deef4==null||_0x3c93f5==null||_0x4deef4===_0x3c93f5?null:{'startOffset':Math[_0x282413(0x120)](_0x4deef4,_0x3c93f5),'endOffset':Math[_0x282413(0xbc)](_0x4deef4,_0x3c93f5)};}function p(_0x3051a4){const _0x98292c=_0x4b6d09;return{'nextDocumentData':w(_0x3051a4[_0x98292c(0x123)]),'nextMetadata':s(_0x3051a4['metadata'],_0x3051a4[_0x98292c(0x10b)],_0x3051a4[_0x98292c(0x13a)]),'cursorOffset':0x0};}function m(_0x437eb2){const _0x54e95e=_0x4b6d09;var _0x4a48ac,_0x80f207;let _0x32ea10=w(_0x437eb2['documentData']),_0x570324=T(_0x32ea10),_0x572caf=y(_0x570324,_0x437eb2[_0x54e95e(0x139)]);if(!_0x572caf)return null;let _0x5c309f=C(_0x570324,_0x572caf),_0x161785=_0x5c309f[_0x5c309f[_0x54e95e(0xef)]-0x1];if(!_0x161785||!ee(_0x570324,_0x572caf,_0x161785)||_0x437eb2['cursorOffset']<_0x161785[_0x54e95e(0xb8)])return null;let _0x9712fe=oe(_0x570324,_0x572caf,_0x161785);if(_0x9712fe>=_0x572caf[_0x54e95e(0xe6)])return null;_0x570324[_0x54e95e(0x13d)]=[_0x570324[_0x54e95e(0x13d)]['slice'](0x0,_0x9712fe),e[_0x54e95e(0xc1)]['BLOCK_END'],_0x570324[_0x54e95e(0x13d)]['slice'](_0x9712fe,_0x572caf['endIndex']),_0x570324[_0x54e95e(0x13d)][_0x54e95e(0xad)](_0x572caf[_0x54e95e(0xe6)]+0x1)]['join'](''),P(_0x570324[_0x54e95e(0x148)],_0x9712fe,_0x572caf[_0x54e95e(0xe6)],0x1),P(_0x570324[_0x54e95e(0x11e)],_0x9712fe,_0x572caf[_0x54e95e(0xe6)],0x1),P(_0x570324[_0x54e95e(0x10a)],_0x9712fe,_0x572caf[_0x54e95e(0xe6)],0x1),fe(_0x570324[_0x54e95e(0x104)],_0x9712fe,_0x572caf[_0x54e95e(0xe6)],0x1),F(_0x570324[_0x54e95e(0xc9)],_0x9712fe,_0x572caf['endIndex'],0x1),F(_0x570324[_0x54e95e(0x138)],_0x9712fe,_0x572caf[_0x54e95e(0xe6)],0x1),F(_0x570324[_0x54e95e(0x13e)],_0x9712fe,_0x572caf[_0x54e95e(0xe6)],0x1),(_0x4a48ac=_0x570324[_0x54e95e(0xfc)])==null||_0x4a48ac[_0x54e95e(0x117)](_0x32533e=>{const _0x4e25cd=_0x54e95e;_0x32533e===_0x572caf||_0x32533e[_0x4e25cd(0x10b)]===_0x572caf['blockId']?_0x32533e[_0x4e25cd(0xe6)]=_0x9712fe:_0x32533e[_0x4e25cd(0xb8)]>=_0x9712fe&&_0x32533e[_0x4e25cd(0xb8)]<_0x572caf[_0x4e25cd(0xe6)]&&(_0x32533e[_0x4e25cd(0xb8)]+=0x1,_0x32533e[_0x4e25cd(0xe6)]+=0x1);});let _0x270b82=C(_0x570324,{..._0x572caf,'endIndex':_0x9712fe});_0x270b82[_0x54e95e(0x117)]((_0x50d5df,_0x11f623)=>{const _0x1d2069=_0x54e95e;var _0x8e5013;_0x50d5df[_0x1d2069(0x125)]={...(_0x8e5013=_0x50d5df['paragraphStyle'])==null?{}:_0x8e5013,...b(_0x11f623===0x0,_0x11f623===_0x270b82['length']-0x1)};});let _0x1c6ec3=(_0x80f207=_0x570324[_0x54e95e(0x148)])==null?void 0x0:_0x80f207[_0x54e95e(0x128)](_0x232c1b=>_0x232c1b[_0x54e95e(0xb8)]===_0x9712fe+0x1);return _0x1c6ec3&&(_0x1c6ec3[_0x54e95e(0x125)]=S(_0x1c6ec3[_0x54e95e(0x125)])),{'nextDocumentData':_0x32ea10,'cursorOffset':_0x9712fe+0x1};}function h(_0x1f60bd){const _0xbece11=_0x4b6d09;let _0x43bbf1=w(_0x1f60bd[_0xbece11(0x123)]),_0x22f020=T(_0x43bbf1),_0x2b4657=y(_0x22f020,_0x1f60bd[_0xbece11(0x139)]);return _0x2b4657&&g(_0x43bbf1,_0x22f020,_0x2b4657,_0x1f60bd[_0xbece11(0x139)],_0x1f60bd[_0xbece11(0xaf)])||null;}function g(_0x4a6db8,_0x245010,_0x4d89bf,_0x48ed7a,_0x21d390){const _0x42bd29=_0x4b6d09;let _0x4dfc94=se(_0x245010,_0x4d89bf,_0x48ed7a,_0x21d390);if(!_0x4dfc94)return null;let _0x54f977=_0x4dfc94['endTokenOffset']-0x1;return ce(_0x245010,_0x4dfc94[_0x42bd29(0x10d)][_0x42bd29(0xb8)],_0x4dfc94[_0x42bd29(0x10d)]['startIndex']+0x1),{'nextDocumentData':_0x4a6db8,'cursorOffset':_0x54f977};}function _(_0x5c81bd,_0x563aa1){const _0x44d6a7=_0x4b6d09;var _0x20636c;return _0x5c81bd==null||(_0x20636c=_0x5c81bd[_0x44d6a7(0xfc)])==null?void 0x0:_0x20636c['find'](_0x4df83b=>_0x4df83b[_0x44d6a7(0xdb)]===e[_0x44d6a7(0x147)][_0x44d6a7(0xc7)]&&_0x4df83b[_0x44d6a7(0xb8)]<=_0x563aa1&&_0x563aa1<=_0x4df83b['endIndex']);}function v(_0x8a5816){const _0x4d25d7=_0x4b6d09;var _0x42f051;let _0x34ff11=_0x8a5816[_0x4d25d7(0x123)][_0x4d25d7(0xfe)];if(!_0x34ff11)return!0x1;let _0xf8eb3d=_0x8a5816[_0x4d25d7(0xbf)]===_0x4d25d7(0xec)?_0x8a5816[_0x4d25d7(0x139)]-0x1:_0x8a5816['cursorOffset'],_0x20429d=_0x8a5816[_0x4d25d7(0xbf)]===_0x4d25d7(0xe2)?_0x8a5816['cursorOffset']+0x1:_0xf8eb3d;return((_0x42f051=_0x34ff11['blockRanges'])==null?[]:_0x42f051)[_0x4d25d7(0x10f)](_0x208ad9=>_0x208ad9[_0x4d25d7(0xdb)]===e[_0x4d25d7(0x147)][_0x4d25d7(0xc7)]?_0xf8eb3d===_0x208ad9[_0x4d25d7(0xb8)]||_0xf8eb3d===_0x208ad9[_0x4d25d7(0xe6)]||_0x20429d===_0x208ad9[_0x4d25d7(0xb8)]||_0x20429d===_0x208ad9[_0x4d25d7(0xe6)]:!0x1);}function y(_0x592f83,_0x4be135){const _0x1924b9=_0x4b6d09;var _0x5245b8;return(_0x5245b8=_0x592f83[_0x1924b9(0xfc)])==null?void 0x0:_0x5245b8['find'](_0x41f95e=>{const _0x224770=_0x1924b9;let _0x3304bb=D(_0x592f83,_0x41f95e);return _0x41f95e[_0x224770(0xdb)]===e[_0x224770(0x147)]['CODE']&&_0x41f95e[_0x224770(0xb8)]<=_0x4be135&&_0x4be135<=_0x3304bb+0x2;});}function b(_0x1abe91,_0x34f9ab,_0x47498a=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x1abe91&&_0x47498a?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':l,'fs':0xc}};}function x(_0x4aafd6,_0x6cd1fd,_0x44f270,_0x5dc56f=!0x1){const _0x6ad7ba=_0x4b6d09;var _0x40b686;let _0x4ef4d0=((_0x40b686=_0x4aafd6[_0x6ad7ba(0x148)])==null?[]:_0x40b686)[_0x6ad7ba(0x154)](_0x44fc3a=>_0x44fc3a[_0x6ad7ba(0xb8)]>_0x6cd1fd&&_0x44fc3a['startIndex']<_0x44f270);_0x4ef4d0[_0x6ad7ba(0x117)]((_0x5a23a3,_0x39767b)=>{const _0xedcb94=_0x6ad7ba;var _0x56ea65;_0x5a23a3[_0xedcb94(0x125)]={...(_0x56ea65=_0x5a23a3['paragraphStyle'])==null?{}:_0x56ea65,...b(_0x39767b===0x0,_0x39767b===_0x4ef4d0[_0xedcb94(0xef)]-0x1,_0x5dc56f)};});}function S(_0x23e5e3){const _0x1e9862=_0x4b6d09;var _0x1370d2,_0x4039f9;let _0x3ff190={..._0x23e5e3==null?{}:_0x23e5e3};return delete _0x3ff190[_0x1e9862(0x12b)],delete _0x3ff190['indentStart'],delete _0x3ff190[_0x1e9862(0x151)],delete _0x3ff190[_0x1e9862(0x14d)],((_0x1370d2=_0x3ff190[_0x1e9862(0xb1)])==null?void 0x0:_0x1370d2['ff'])===l&&((_0x4039f9=_0x3ff190[_0x1e9862(0xb1)])==null?void 0x0:_0x4039f9['fs'])===0xc&&delete _0x3ff190[_0x1e9862(0xb1)],_0x3ff190;}function C(_0x5a7581,_0x4dd384){const _0x2ec211=_0x4b6d09;var _0x3eeafd;let _0x12a8ac=D(_0x5a7581,_0x4dd384);return((_0x3eeafd=_0x5a7581[_0x2ec211(0x148)])==null?[]:_0x3eeafd)[_0x2ec211(0x154)](_0x1b2eee=>_0x1b2eee[_0x2ec211(0xb8)]>_0x4dd384[_0x2ec211(0xb8)]&&_0x1b2eee[_0x2ec211(0xb8)]<_0x12a8ac);}function ee(_0x5b59ab,_0x25fa9a,_0x48b337){const _0x18f2a5=_0x4b6d09;let _0x549ccd=oe(_0x5b59ab,_0x25fa9a,_0x48b337),_0x3730eb=_0x5b59ab[_0x18f2a5(0x13d)][_0x18f2a5(0xad)](_0x549ccd,_0x48b337[_0x18f2a5(0xb8)]);return Array[_0x18f2a5(0xce)](_0x3730eb)['every'](_0x686a39=>_0x686a39===e[_0x18f2a5(0xc1)]['BLOCK_START']||_0x686a39===e[_0x18f2a5(0xc1)][_0x18f2a5(0xdc)]);}function w(_0x210066){const _0x5ddf55=_0x4b6d09;return e['Tools'][_0x5ddf55(0x14f)](_0x210066);}function T(_0x548ac9){const _0x3b831b=_0x4b6d09;if(!_0x548ac9['body'])throw Error('Document\x20body\x20is\x20required');return _0x548ac9[_0x3b831b(0xfe)];}function te(_0x512183,_0x100395,_0x48e7b9){if(_0x100395==null||_0x48e7b9==null){let _0x421936=re(_0x512183);return{'startOffset':_0x421936,'endOffset':_0x421936};}let _0x247728=Math['min'](_0x100395,_0x48e7b9),_0x95ac9=Math['max'](_0x100395,_0x48e7b9);if(_0x247728===_0x95ac9){let _0x56a8f3=ne(_0x512183,_0x247728);return{'startOffset':_0x56a8f3,'endOffset':_0x56a8f3};}return ae(_0x512183,_0x247728,_0x95ac9);}function ne(_0x1f9c15,_0xafa0e9){const _0x5a13b0=_0x4b6d09;return _0xafa0e9===0x0&&_0x1f9c15[_0x5a13b0(0x13d)][0x0]===e['DataStreamTreeTokenType'][_0x5a13b0(0xe1)]?0x1:_0xafa0e9;}function re(_0x1a5050){const _0x12629b=_0x4b6d09;return _0x1a5050['dataStream'][_0x12629b(0x100)](e[_0x12629b(0xc1)][_0x12629b(0xf2)])?Math[_0x12629b(0xbc)](0x0,_0x1a5050['dataStream'][_0x12629b(0xef)]-0x1):_0x1a5050[_0x12629b(0x13d)][_0x12629b(0xef)];}function ie(_0x346ec3,_0x4e0cfc,_0x2a6faa){const _0x23c474=_0x4b6d09;var _0x3a321e;let _0x489e06=Math[_0x23c474(0x120)](_0x4e0cfc,_0x2a6faa),_0x390b25=Math[_0x23c474(0xbc)](_0x4e0cfc,_0x2a6faa);return!!((_0x3a321e=_0x346ec3[_0x23c474(0xc9)])!=null&&_0x3a321e['some'](_0x1b0464=>_0x489e06>_0x1b0464[_0x23c474(0xb8)]&&_0x489e06<_0x1b0464[_0x23c474(0xe6)]||_0x390b25>_0x1b0464[_0x23c474(0xb8)]&&_0x390b25<_0x1b0464[_0x23c474(0xe6)]||_0x489e06<=_0x1b0464['startIndex']&&_0x390b25>=_0x1b0464[_0x23c474(0xe6)]));}function ae(_0x2bea01,_0x5524a3,_0x186d80){const _0x1ef9d9=_0x4b6d09;var _0xffdae4,_0x3135f5;let _0x34ab3b=[...(_0xffdae4=_0x2bea01[_0x1ef9d9(0x148)])==null?[]:_0xffdae4][_0x1ef9d9(0x12c)]((_0x12d6b8,_0x22ad0e)=>_0x12d6b8[_0x1ef9d9(0xb8)]-_0x22ad0e['startIndex']),_0x4cdf84=_0x34ab3b[_0x1ef9d9(0x128)]((_0x9f92da,_0x2e0cba)=>(_0x2e0cba===0x0?0x0:_0x34ab3b[_0x2e0cba-0x1][_0x1ef9d9(0xb8)]+0x1)<=_0x5524a3&&_0x5524a3<=_0x9f92da[_0x1ef9d9(0xb8)]),_0x58478b=(_0x3135f5=_0x34ab3b[_0x1ef9d9(0x128)](_0x54be77=>_0x54be77['startIndex']>=_0x186d80-0x1))==null?_0x34ab3b[_0x34ab3b['length']-0x1]:_0x3135f5;return{'startOffset':_0x4cdf84?E(_0x34ab3b,_0x4cdf84):_0x5524a3,'endOffset':_0x58478b?_0x58478b[_0x1ef9d9(0xb8)]+0x1:_0x186d80};}function E(_0x318764,_0x5c15b6){const _0x4e37f8=_0x4b6d09;let _0x34edab=_0x318764[_0x4e37f8(0x137)](_0x5c15b6);return _0x34edab>0x0?_0x318764[_0x34edab-0x1]['startIndex']+0x1:0x0;}function _0xc18d(){const _0x32ab97=['8111545jwXcLS','dispose','DocsCodeInsertCommand','CODE','206990aKmOWf','tables','IConfigService','IResourceManagerService','64FVnOZp','JSONX','from','_initResource','408jkIjfO','ICommandService','version','Tools','every','registerPluginResource','delete','docs-code.command.consume-boundary-delete','_commandService','_injector','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','blockType','BLOCK_END','change$','commandService','getSnapshot','next','PARAGRAPH','right','monospace','createParagraphId','setConfig','endIndex','2570jvlsIW','docs-code.command.insert','37556959vKGXJR','endOffset','unitId','left','deserialize','map','length','DocsCodeConsumeBoundaryDeleteCommand','DocContentInsertService','SECTION_BREAK','string','object','DEFAULT_CODE_CONFIG','Subject','default','877063jjNCCu','type','UniverDocsCodePlugin','_change$','blockRanges','function','body','UniverInstanceType','endsWith','iterator','_docsCodeModel','Inject','textRuns','getBody','DOCS_CODE_PLUGIN','disposeWithMe','DependentOn','_configService','customBlocks','blockId','consumeInsertRange','paragraph','asObservable','some','IUniverInstanceService','nextMetadata','previousDocumentData','compose','DocsCodeModel','UNIVER_DOC','parse','forEach','isCodeBoundaryDelete','normalizeDocsCodeConfig','BLOCK_START','getParagraphsInRange','syncExecuteCommand','toPrimitive','sectionBreaks','getUniverDocInstance','min','_resourceManagerService','onStarting','documentData','4UnjdFa','paragraphStyle','1.0.0-insiders.20260629-12f2e44','getOwnPropertyDescriptor','find','9022278mDXDVQ','toStringTag','indentEnd','sort','docs-code.command.insert-below','packageName','constructor','29196RWRnls','codes','buildUpdateCodeActions','set','pluginName','call','removeUnit','indexOf','customRanges','cursorOffset','config','getCodeConfig','docs-code.config','dataStream','customDecorations','DocsCodeInsertBelowCommand','BuildTextUtils','startOffset','DocsCodeExitCommand','DocSelectionManagerService','decorate','serialize','add','DocumentBlockRangeType','paragraphs','stringify','Plugin','get','diffValue','spaceBelow','buildExitCodeActions','deepClone','merge','spaceAbove','docs-code.command.cancel-empty-paragraph','replaceOp','filter','prototype','setCodeConfig','getUnitId','defineProperty','buildInsertCodeActions','CommandType','slice','complete','paragraphStartIndex','javascript','textStyle','symbol','model','getCurrentUnitOfType','COMMAND','nextDocumentData','DOC_CODE_PLUGIN','startIndex','docs-code.command.update','_resources','237030YNxETY','max','removeCode','metadata','direction','Injector','DataStreamTreeTokenType','Disposable','Module'];_0xc18d=function(){return _0x32ab97;};return _0xc18d();}function oe(_0x597a4c,_0x21e95b,_0x30f9d5){const _0x2b5173=_0x4b6d09;var _0x1eb512;return Math['max'](E((_0x1eb512=_0x597a4c['paragraphs'])==null?[]:_0x1eb512,_0x30f9d5),_0x21e95b[_0x2b5173(0xb8)]+0x1);}function D(_0x92bf6f,_0x2966f6){const _0x437be7=_0x4b6d09;return _0x92bf6f['dataStream'][_0x2966f6['endIndex']]===e[_0x437be7(0xc1)][_0x437be7(0xdc)]?_0x2966f6[_0x437be7(0xe6)]:_0x92bf6f[_0x437be7(0x13d)][_0x2966f6[_0x437be7(0xe6)]+0x1]===e[_0x437be7(0xc1)][_0x437be7(0xdc)]?_0x2966f6['endIndex']+0x1:_0x2966f6[_0x437be7(0xe6)];}function se(_0x3f0e68,_0xaf0eeb,_0x5906e9,_0x4b1854){const _0x67b65f=_0x4b6d09;var _0x2ea7db,_0x14e00c;let _0x200f96=D(_0x3f0e68,_0xaf0eeb),_0x2c00ca=((_0x2ea7db=_0x3f0e68[_0x67b65f(0x148)])==null?[]:_0x2ea7db)[_0x67b65f(0x128)](_0x1f10a2=>_0x1f10a2[_0x67b65f(0xb8)]===_0x200f96+0x1);if(!_0x2c00ca||_0x4b1854!=null&&_0x2c00ca[_0x67b65f(0xb8)]!==_0x4b1854||_0x5906e9<_0x200f96||_0x5906e9>_0x2c00ca[_0x67b65f(0xb8)]+0x1||_0x3f0e68[_0x67b65f(0x13d)][_0x2c00ca[_0x67b65f(0xb8)]]!==e[_0x67b65f(0xc1)][_0x67b65f(0xe1)])return null;let _0x3f4f75=E((_0x14e00c=_0x3f0e68[_0x67b65f(0x148)])==null?[]:_0x14e00c,_0x2c00ca),_0x2a3579=_0x3f0e68[_0x67b65f(0x13d)]['slice'](_0x3f4f75,_0x2c00ca[_0x67b65f(0xb8)]);return Array[_0x67b65f(0xce)](_0x2a3579)[_0x67b65f(0xd4)](_0x22044d=>_0x22044d===e[_0x67b65f(0xc1)][_0x67b65f(0xdc)])?{'paragraph':_0x2c00ca,'endTokenOffset':_0x200f96}:null;}function O(_0x17ca82,_0xff37b6){const _0x24053a=_0x4b6d09;var _0x2d205a;let _0x46fe9a=D(_0x17ca82,_0xff37b6),_0x5153ed=_0x17ca82['dataStream'][_0x46fe9a+0x1];_0x5153ed!==e[_0x24053a(0xc1)][_0x24053a(0xf2)]&&_0x5153ed!==void 0x0||k(_0x17ca82,_0x46fe9a+0x1,e[_0x24053a(0xc1)][_0x24053a(0xe1)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,e[_0x24053a(0xe4)])(new Set((_0x2d205a=_0x17ca82[_0x24053a(0x148)])==null?void 0x0:_0x2d205a['map'](_0x3f4b26=>_0x3f4b26['paragraphId'])))}]});}function k(_0x1bbc57,_0x105c04,_0x4fafb9,_0x8e725d={}){const _0x436c5b=_0x4b6d09;var _0x4dd743,_0x300dbd;if(_0x4fafb9){if(_0x1bbc57[_0x436c5b(0x13d)]=''+_0x1bbc57[_0x436c5b(0x13d)][_0x436c5b(0xad)](0x0,_0x105c04)+_0x4fafb9+_0x1bbc57[_0x436c5b(0x13d)][_0x436c5b(0xad)](_0x105c04),le(_0x1bbc57,_0x105c04,_0x4fafb9[_0x436c5b(0xef)]),(_0x4dd743=_0x8e725d['paragraphs'])!=null&&_0x4dd743[_0x436c5b(0xef)]){var _0x172ece;_0x1bbc57['paragraphs']=[...(_0x172ece=_0x1bbc57[_0x436c5b(0x148)])==null?[]:_0x172ece,..._0x8e725d[_0x436c5b(0x148)][_0x436c5b(0xee)](_0x33c8c7=>({..._0x33c8c7,'startIndex':_0x33c8c7[_0x436c5b(0xb8)]+_0x105c04}))][_0x436c5b(0x12c)]((_0x3edf91,_0x2252b6)=>_0x3edf91[_0x436c5b(0xb8)]-_0x2252b6[_0x436c5b(0xb8)]);}if((_0x300dbd=_0x8e725d[_0x436c5b(0xfc)])!=null&&_0x300dbd['length']){var _0x5624e9;_0x1bbc57[_0x436c5b(0xfc)]=[...(_0x5624e9=_0x1bbc57[_0x436c5b(0xfc)])==null?[]:_0x5624e9,..._0x8e725d['blockRanges'][_0x436c5b(0xee)](_0xd7e51d=>({..._0xd7e51d,'startIndex':_0xd7e51d[_0x436c5b(0xb8)]+_0x105c04,'endIndex':_0xd7e51d[_0x436c5b(0xe6)]+_0x105c04}))][_0x436c5b(0x12c)]((_0x1cef8f,_0x28aabb)=>_0x1cef8f['startIndex']-_0x28aabb[_0x436c5b(0xb8)]);}}}function ce(_0xc4efbd,_0x15b310,_0x4f8f74){const _0x330b8c=_0x4b6d09;let _0xaaacbd=_0x4f8f74-_0x15b310;_0xc4efbd[_0x330b8c(0x13d)]=''+_0xc4efbd[_0x330b8c(0x13d)]['slice'](0x0,_0x15b310)+_0xc4efbd[_0x330b8c(0x13d)][_0x330b8c(0xad)](_0x4f8f74),ue(_0xc4efbd,_0x15b310,_0xaaacbd);}function le(_0x53179a,_0xf406f7,_0x55b381){const _0x211308=_0x4b6d09;_0x53179a[_0x211308(0x148)]=A(_0x53179a['paragraphs'],_0xf406f7,_0x55b381),_0x53179a[_0x211308(0x11e)]=A(_0x53179a[_0x211308(0x11e)],_0xf406f7,_0x55b381),_0x53179a[_0x211308(0x10a)]=A(_0x53179a['customBlocks'],_0xf406f7,_0x55b381),_0x53179a[_0x211308(0x104)]=de(_0x53179a['textRuns'],_0xf406f7,_0x55b381),_0x53179a['tables']=M(_0x53179a[_0x211308(0xc9)],_0xf406f7,_0x55b381),_0x53179a[_0x211308(0x138)]=M(_0x53179a[_0x211308(0x138)],_0xf406f7,_0x55b381),_0x53179a[_0x211308(0x13e)]=M(_0x53179a[_0x211308(0x13e)],_0xf406f7,_0x55b381),_0x53179a[_0x211308(0xfc)]=M(_0x53179a[_0x211308(0xfc)],_0xf406f7,_0x55b381);}function ue(_0x216a32,_0x252625,_0x113f25){const _0x23694d=_0x4b6d09;var _0x3f1e87,_0x102406;_0x216a32[_0x23694d(0x148)]=j(_0x216a32[_0x23694d(0x148)],_0x252625,_0x113f25),_0x216a32['sectionBreaks']=j(_0x216a32[_0x23694d(0x11e)],_0x252625,_0x113f25),_0x216a32[_0x23694d(0x10a)]=j(_0x216a32[_0x23694d(0x10a)],_0x252625,_0x113f25),_0x216a32['textRuns']=(_0x3f1e87=N((_0x102406=_0x216a32[_0x23694d(0x104)])==null?void 0x0:_0x102406[_0x23694d(0xee)](_0x20d05b=>({..._0x20d05b,'startIndex':_0x20d05b['st'],'endIndex':_0x20d05b['ed']})),_0x252625,_0x113f25))==null?void 0x0:_0x3f1e87[_0x23694d(0xee)](_0x382313=>{let {startIndex:_0x1253a1,endIndex:_0x32c5bf,..._0x4c7599}=_0x382313;return{..._0x4c7599,'st':_0x1253a1,'ed':_0x32c5bf};}),_0x216a32[_0x23694d(0xc9)]=N(_0x216a32[_0x23694d(0xc9)],_0x252625,_0x113f25),_0x216a32[_0x23694d(0x138)]=N(_0x216a32[_0x23694d(0x138)],_0x252625,_0x113f25),_0x216a32['customDecorations']=N(_0x216a32[_0x23694d(0x13e)],_0x252625,_0x113f25),_0x216a32[_0x23694d(0xfc)]=N(_0x216a32[_0x23694d(0xfc)],_0x252625,_0x113f25);}function A(_0x7352d4,_0x172a76,_0x460a47){const _0x428677=_0x4b6d09;return _0x7352d4==null?void 0x0:_0x7352d4[_0x428677(0xee)](_0x4869f6=>_0x4869f6[_0x428677(0xb8)]>=_0x172a76?{..._0x4869f6,'startIndex':_0x4869f6[_0x428677(0xb8)]+_0x460a47}:_0x4869f6);}function j(_0x1c4d62,_0x4699cd,_0x431e59){const _0x46e2db=_0x4b6d09;let _0x3453b1=_0x4699cd+_0x431e59;return _0x1c4d62==null?void 0x0:_0x1c4d62[_0x46e2db(0xee)](_0x1d662c=>_0x1d662c['startIndex']>=_0x4699cd&&_0x1d662c[_0x46e2db(0xb8)]<_0x3453b1?null:_0x1d662c[_0x46e2db(0xb8)]>=_0x3453b1?{..._0x1d662c,'startIndex':_0x1d662c[_0x46e2db(0xb8)]-_0x431e59}:_0x1d662c)['filter'](_0x5688ee=>_0x5688ee!=null);}function _0x1328(_0x5a2ff1,_0x4d089f){_0x5a2ff1=_0x5a2ff1-0xa8;const _0xc18d67=_0xc18d();let _0x132849=_0xc18d67[_0x5a2ff1];return _0x132849;}function de(_0x3553a5,_0x3097a0,_0x8eb6e8){return _0x3553a5==null?void 0x0:_0x3553a5['map'](_0x3b6f2f=>_0x3b6f2f['st']>=_0x3097a0?{..._0x3b6f2f,'st':_0x3b6f2f['st']+_0x8eb6e8,'ed':_0x3b6f2f['ed']+_0x8eb6e8}:_0x3b6f2f['ed']>_0x3097a0?{..._0x3b6f2f,'ed':_0x3b6f2f['ed']+_0x8eb6e8}:_0x3b6f2f);}function M(_0x5b38f8,_0x5ef560,_0xface8a){const _0x49b659=_0x4b6d09;return _0x5b38f8==null?void 0x0:_0x5b38f8[_0x49b659(0xee)](_0x17e6fa=>_0x17e6fa[_0x49b659(0xb8)]>=_0x5ef560?{..._0x17e6fa,'startIndex':_0x17e6fa[_0x49b659(0xb8)]+_0xface8a,'endIndex':_0x17e6fa[_0x49b659(0xe6)]+_0xface8a}:_0x17e6fa[_0x49b659(0xe6)]>=_0x5ef560?{..._0x17e6fa,'endIndex':_0x17e6fa[_0x49b659(0xe6)]+_0xface8a}:_0x17e6fa);}function N(_0x351276,_0x48c21b,_0x48d38c){const _0x3d56a1=_0x4b6d09;let _0x53fd0c=_0x48c21b+_0x48d38c;return _0x351276==null?void 0x0:_0x351276[_0x3d56a1(0xee)](_0x7471c8=>_0x7471c8[_0x3d56a1(0xb8)]>=_0x48c21b&&_0x7471c8[_0x3d56a1(0xe6)]<_0x53fd0c?null:_0x7471c8[_0x3d56a1(0xb8)]>=_0x53fd0c?{..._0x7471c8,'startIndex':_0x7471c8['startIndex']-_0x48d38c,'endIndex':_0x7471c8[_0x3d56a1(0xe6)]-_0x48d38c}:_0x7471c8['endIndex']>=_0x48c21b?{..._0x7471c8,'startIndex':_0x7471c8[_0x3d56a1(0xb8)]<_0x48c21b?_0x7471c8[_0x3d56a1(0xb8)]:_0x48c21b,'endIndex':Math[_0x3d56a1(0xbc)](_0x48c21b,_0x7471c8[_0x3d56a1(0xe6)]-_0x48d38c)}:_0x7471c8)[_0x3d56a1(0x154)](_0x1d5ca7=>_0x1d5ca7!=null);}function P(_0x336e81,_0x3067f5,_0xa6f0c0,_0x44a200){const _0x61da97=_0x4b6d09;_0x336e81==null||_0x336e81[_0x61da97(0x117)](_0x2c94f1=>{const _0x229a72=_0x61da97;_0x2c94f1['startIndex']>=_0x3067f5&&_0x2c94f1[_0x229a72(0xb8)]<_0xa6f0c0&&(_0x2c94f1[_0x229a72(0xb8)]+=_0x44a200);});}function fe(_0x5395b3,_0x210dd1,_0x4d21be,_0x270d17){const _0x52903f=_0x4b6d09;_0x5395b3==null||_0x5395b3[_0x52903f(0x117)](_0x5c4e61=>{_0x5c4e61['st']>=_0x210dd1&&_0x5c4e61['st']<_0x4d21be?(_0x5c4e61['st']+=_0x270d17,_0x5c4e61['ed']+=_0x270d17):_0x5c4e61['ed']>_0x210dd1&&_0x5c4e61['ed']<_0x4d21be&&(_0x5c4e61['ed']+=_0x270d17);});}function F(_0x3c7be6,_0x58c5c0,_0x272fd5,_0x571b75){const _0x3427c6=_0x4b6d09;_0x3c7be6==null||_0x3c7be6[_0x3427c6(0x117)](_0x5905d1=>{const _0x4d61e0=_0x3427c6;_0x5905d1['startIndex']>=_0x58c5c0&&_0x5905d1[_0x4d61e0(0xb8)]<_0x272fd5?(_0x5905d1['startIndex']+=_0x571b75,_0x5905d1[_0x4d61e0(0xe6)]+=_0x571b75):_0x5905d1['endIndex']>_0x58c5c0&&_0x5905d1['endIndex']<_0x272fd5&&(_0x5905d1['endIndex']+=_0x571b75);});}function I(_0x2fcf87){'@babel/helpers - typeof';const _0x3e326e=_0x4b6d09;return I=typeof Symbol=='function'&&typeof Symbol[_0x3e326e(0x101)]==_0x3e326e(0xb2)?function(_0x30bf89){return typeof _0x30bf89;}:function(_0x3633d1){const _0xca254f=_0x3e326e;return _0x3633d1&&typeof Symbol=='function'&&_0x3633d1[_0xca254f(0x12f)]===Symbol&&_0x3633d1!==Symbol[_0xca254f(0x155)]?'symbol':typeof _0x3633d1;},I(_0x2fcf87);}function pe(_0x5b6394,_0x2f6793){const _0xf5af6f=_0x4b6d09;if(I(_0x5b6394)!='object'||!_0x5b6394)return _0x5b6394;var _0x1f0dd6=_0x5b6394[Symbol[_0xf5af6f(0x11d)]];if(_0x1f0dd6!==void 0x0){var _0x5c5c4c=_0x1f0dd6[_0xf5af6f(0x135)](_0x5b6394,_0x2f6793||_0xf5af6f(0xf7));if(I(_0x5c5c4c)!=_0xf5af6f(0xf4))return _0x5c5c4c;throw TypeError(_0xf5af6f(0xda));}return(_0x2f6793==='string'?String:Number)(_0x5b6394);}function me(_0x18e97f){const _0x4ad613=_0x4b6d09;var _0x49743c=pe(_0x18e97f,_0x4ad613(0xf3));return I(_0x49743c)==_0x4ad613(0xb2)?_0x49743c:_0x49743c+'';}function L(_0x293615,_0x320263,_0x27e203){const _0x5d7526=_0x4b6d09;return(_0x320263=me(_0x320263))in _0x293615?Object[_0x5d7526(0xaa)](_0x293615,_0x320263,{'value':_0x27e203,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x293615[_0x320263]=_0x27e203,_0x293615;}var R=class extends e['Disposable']{constructor(..._0x11bb27){const _0x3dbbe0=_0x4b6d09;super(..._0x11bb27),L(this,_0x3dbbe0(0xba),new Map()),L(this,_0x3dbbe0(0xfb),new n[(_0x3dbbe0(0xf6))]()),L(this,_0x3dbbe0(0xdd),this[_0x3dbbe0(0xfb)][_0x3dbbe0(0x10e)]());}[_0x4b6d09(0x13b)](_0x313555,_0x4d9f9b){const _0x196570=_0x4b6d09;return o(this[_0x196570(0xba)][_0x196570(0x14b)](_0x313555))[_0x196570(0x131)][_0x4d9f9b];}[_0x4b6d09(0xa8)](_0x55c5c2,_0x2e772e,_0x4cefc2){const _0x141bca=_0x4b6d09;this['_setResource'](_0x55c5c2,_0x2e772e,s(this[_0x141bca(0xba)][_0x141bca(0x14b)](_0x55c5c2),_0x2e772e,_0x4cefc2));}[_0x4b6d09(0xbd)](_0x3acd24,_0x4150b8){const _0x2f1ea4=_0x4b6d09;this['_setResource'](_0x3acd24,_0x4150b8,c(this[_0x2f1ea4(0xba)][_0x2f1ea4(0x14b)](_0x3acd24),_0x4150b8));}['serialize'](_0x25a400){const _0x886aac=_0x4b6d09;return o(this['_resources'][_0x886aac(0x14b)](_0x25a400));}[_0x4b6d09(0xed)](_0x56729b,_0x3875be){const _0x2720c8=_0x4b6d09;this[_0x2720c8(0xba)][_0x2720c8(0x133)](_0x56729b,o(_0x3875be)),this[_0x2720c8(0xfb)]['next']({'unitId':_0x56729b});}['removeUnit'](_0x452e54){const _0x3f7944=_0x4b6d09;this['_resources'][_0x3f7944(0xd6)](_0x452e54),this[_0x3f7944(0xfb)][_0x3f7944(0xe0)]({'unitId':_0x452e54});}[_0x4b6d09(0xc5)](){const _0x5a2a93=_0x4b6d09;super[_0x5a2a93(0xc5)](),this['_resources']['clear'](),this[_0x5a2a93(0xfb)][_0x5a2a93(0xae)]();}['_setResource'](_0x42bcc3,_0x372144,_0x4015e8){const _0x39ff77=_0x4b6d09;this[_0x39ff77(0xba)][_0x39ff77(0x133)](_0x42bcc3,_0x4015e8),this[_0x39ff77(0xfb)][_0x39ff77(0xe0)]({'unitId':_0x42bcc3,'blockId':_0x372144});}};const z={'id':_0x4b6d09(0x12d),'type':e[_0x4b6d09(0xac)][_0x4b6d09(0xb5)],'handler':_0x37e861=>{const _0x435d52=_0x4b6d09;let _0x5cf6db=he(_0x37e861);if(_0x5cf6db)return _0x37e861[_0x435d52(0x14b)](e[_0x435d52(0xd1)])[_0x435d52(0x11c)](V['id'],{'startOffset':_0x5cf6db['startOffset'],'endOffset':_0x5cf6db[_0x435d52(0xea)],'unitId':_0x5cf6db['unitId']});let _0xdafb10=ge(_0x37e861);if(!_0xdafb10)return!0x1;let _0x4799b5=_0xdafb10[_0x435d52(0xb8)]+0x1;return _0x37e861[_0x435d52(0x14b)](e['ICommandService'])[_0x435d52(0x11c)](V['id'],{'startOffset':_0x4799b5,'endOffset':_0x4799b5});}},B={'id':_0x4b6d09(0xd7),'type':e[_0x4b6d09(0xac)][_0x4b6d09(0xb5)],'handler':()=>!0x0},V={'id':_0x4b6d09(0xe8),'type':e[_0x4b6d09(0xac)][_0x4b6d09(0xb5)],'handler':(_0x4f3492,_0x1f94b4)=>{const _0x1f46ff=_0x4b6d09;var _0x36807d,_0x2525b3,_0xcf30a1;let _0xf49d90=G(_0x4f3492,_0x1f94b4==null?void 0x0:_0x1f94b4['unitId']);if(!_0xf49d90)return!0x1;let _0x25cce2=K(_0x4f3492),_0x37e003=u({'blockId':(_0x36807d=_0x1f94b4==null?void 0x0:_0x1f94b4[_0x1f46ff(0x10b)])==null?(0x0,e['generateRandomId'])(0x6):_0x36807d,'config':_0x1f94b4==null?void 0x0:_0x1f94b4[_0x1f46ff(0x13a)],'documentData':_0xf49d90[_0x1f46ff(0x112)],'endOffset':(_0x2525b3=_0x1f94b4==null?void 0x0:_0x1f94b4[_0x1f46ff(0xea)])==null?_0x25cce2==null?void 0x0:_0x25cce2[_0x1f46ff(0xea)]:_0x2525b3,'metadata':_0xf49d90['model'][_0x1f46ff(0x145)](_0xf49d90[_0x1f46ff(0xeb)]),'startOffset':(_0xcf30a1=_0x1f94b4==null?void 0x0:_0x1f94b4[_0x1f46ff(0x141)])==null?_0x25cce2==null?void 0x0:_0x25cce2['startOffset']:_0xcf30a1}),_0x4bb2a7=J(_0xf49d90['commandService'],_0xf49d90[_0x1f46ff(0xeb)],_0xf49d90['previousDocumentData'],_0x37e003[_0x1f46ff(0xb6)],_0x37e003[_0x1f46ff(0x139)]);return _0x4bb2a7&&_0x37e003[_0x1f46ff(0x111)]&&_0xf49d90[_0x1f46ff(0xb3)][_0x1f46ff(0xed)](_0xf49d90[_0x1f46ff(0xeb)],_0x37e003[_0x1f46ff(0x111)]),_0x4bb2a7;}},H={'id':_0x4b6d09(0xb9),'type':e[_0x4b6d09(0xac)][_0x4b6d09(0xb5)],'handler':(_0x30ad98,_0x1bbc3f)=>{const _0x48e633=_0x4b6d09;if(!_0x1bbc3f)return!0x1;let _0x427957=G(_0x30ad98,_0x1bbc3f[_0x48e633(0xeb)]);if(!_0x427957)return!0x1;let _0x2d7863=p({'blockId':_0x1bbc3f[_0x48e633(0x10b)],'config':_0x1bbc3f[_0x48e633(0x13a)],'documentData':_0x427957[_0x48e633(0x112)],'metadata':_0x427957[_0x48e633(0xb3)][_0x48e633(0x145)](_0x427957[_0x48e633(0xeb)])});return _0x2d7863[_0x48e633(0x111)]&&_0x427957[_0x48e633(0xb3)][_0x48e633(0xed)](_0x427957['unitId'],_0x2d7863[_0x48e633(0x111)]),!0x0;}},U={'id':'docs-code.command.exit','type':e[_0x4b6d09(0xac)]['COMMAND'],'handler':(_0x51f81e,_0x49b2b7)=>{const _0x585af3=_0x4b6d09;var _0x4c4629,_0x4d9778;let _0x494bf1=G(_0x51f81e,_0x49b2b7==null?void 0x0:_0x49b2b7['unitId']);if(!_0x494bf1)return!0x1;let _0x21dbdd=(_0x4c4629=_0x49b2b7==null?void 0x0:_0x49b2b7['cursorOffset'])==null?(_0x4d9778=K(_0x51f81e))==null?void 0x0:_0x4d9778[_0x585af3(0x141)]:_0x4c4629;if(_0x21dbdd==null)return!0x1;let _0x280420=m({'cursorOffset':_0x21dbdd,'documentData':_0x494bf1[_0x585af3(0x112)]});return _0x280420?J(_0x494bf1[_0x585af3(0xde)],_0x494bf1[_0x585af3(0xeb)],_0x494bf1['previousDocumentData'],_0x280420[_0x585af3(0xb6)],_0x280420[_0x585af3(0x139)]):!0x1;}},W={'id':_0x4b6d09(0x152),'type':e['CommandType'][_0x4b6d09(0xb5)],'handler':(_0x143edf,_0x2fbf82)=>{const _0x59cc45=_0x4b6d09;var _0x37718f,_0x209621;let _0x103dca=G(_0x143edf,_0x2fbf82==null?void 0x0:_0x2fbf82[_0x59cc45(0xeb)]);if(!_0x103dca)return!0x1;let _0x6af495=(_0x37718f=_0x2fbf82==null?void 0x0:_0x2fbf82[_0x59cc45(0x139)])==null?(_0x209621=K(_0x143edf))==null?void 0x0:_0x209621[_0x59cc45(0x141)]:_0x37718f;if(_0x6af495==null)return!0x1;let _0xd24150=h({'cursorOffset':_0x6af495,'documentData':_0x103dca['previousDocumentData'],'paragraphStartIndex':_0x2fbf82==null?void 0x0:_0x2fbf82['paragraphStartIndex']});return _0xd24150?J(_0x103dca[_0x59cc45(0xde)],_0x103dca[_0x59cc45(0xeb)],_0x103dca[_0x59cc45(0x112)],_0xd24150['nextDocumentData'],_0xd24150[_0x59cc45(0x139)]):!0x1;}};function G(_0xf76a41,_0x227790){const _0x3b97c5=_0x4b6d09;let _0x58da39=_0xf76a41['get'](e['IUniverInstanceService']),_0x2d87f7=_0x227790?_0x58da39[_0x3b97c5(0x11f)](_0x227790):_0x58da39[_0x3b97c5(0xb4)](e['UniverInstanceType'][_0x3b97c5(0x115)]);return _0x2d87f7?{'commandService':_0xf76a41[_0x3b97c5(0x14b)](e[_0x3b97c5(0xd1)]),'model':_0xf76a41['get'](R),'previousDocumentData':_0x2d87f7[_0x3b97c5(0xdf)](),'unitId':_0x2d87f7[_0x3b97c5(0xa9)]()}:null;}function K(_0x2dffc4){const _0x3c973b=_0x4b6d09;var _0x3649bb;return(_0x3649bb=_0x2dffc4[_0x3c973b(0x14b)](t[_0x3c973b(0x143)])['getTextRanges']())==null?void 0x0:_0x3649bb[0x0];}function he(_0x1bffbe){const _0x488dde=_0x4b6d09;var _0x5ce935;let _0x3b7683=(_0x5ce935=_0x1bffbe[_0x488dde(0x14b)](e[_0x488dde(0x110)])[_0x488dde(0xb4)](e[_0x488dde(0xff)][_0x488dde(0x115)]))==null?void 0x0:_0x5ce935[_0x488dde(0xa9)]();try{return _0x1bffbe[_0x488dde(0x14b)](t[_0x488dde(0xf1)])[_0x488dde(0x10c)](_0x3b7683);}catch{return null;}}function ge(_0x293850){const _0x1c97c5=_0x4b6d09;var _0xc8ebc7,_0x3fcb5c,_0x446864;let _0x451bcc=K(_0x293850);if(!_0x451bcc)return null;let _0x13e549=_0x293850[_0x1c97c5(0x14b)](e[_0x1c97c5(0x110)])['getCurrentUnitOfType'](e[_0x1c97c5(0xff)][_0x1c97c5(0x115)]),_0x3f183b=_0x13e549==null?void 0x0:_0x13e549[_0x1c97c5(0x105)]();return _0x3f183b?(_0xc8ebc7=e[_0x1c97c5(0x140)]['range'][_0x1c97c5(0x11b)](_0x451bcc,(_0x3fcb5c=_0x3f183b[_0x1c97c5(0x148)])==null?[]:_0x3fcb5c,(_0x446864=_0x3f183b[_0x1c97c5(0x13d)])==null?'':_0x446864)[0x0])==null?null:_0xc8ebc7:null;}function _e(_0x5716f6,_0x5de8d7){const _0x529c31=_0x4b6d09;var _0x1861aa,_0x504ff9,_0x569ba2,_0x56fd1a,_0xf405a3,_0x29b6ea,_0x5a8e2c,_0x10b391,_0x270e1d,_0x24bfcd,_0x195bb2,_0x372ee4,_0x2709b6,_0x429d47,_0x3bb04e,_0x33033c,_0x1a476e,_0x57e732;let _0x204de3=e[_0x529c31(0xcd)]['getInstance']();return[q(_0x204de3,[_0x529c31(0xfe),_0x529c31(0x13d)],(_0x1861aa=_0x5716f6[_0x529c31(0xfe)])==null?void 0x0:_0x1861aa[_0x529c31(0x13d)],(_0x504ff9=_0x5de8d7[_0x529c31(0xfe)])==null?void 0x0:_0x504ff9[_0x529c31(0x13d)]),q(_0x204de3,['body',_0x529c31(0x148)],(_0x569ba2=_0x5716f6[_0x529c31(0xfe)])==null?void 0x0:_0x569ba2[_0x529c31(0x148)],(_0x56fd1a=_0x5de8d7[_0x529c31(0xfe)])==null?void 0x0:_0x56fd1a['paragraphs']),q(_0x204de3,[_0x529c31(0xfe),_0x529c31(0x11e)],(_0xf405a3=_0x5716f6[_0x529c31(0xfe)])==null?void 0x0:_0xf405a3[_0x529c31(0x11e)],(_0x29b6ea=_0x5de8d7[_0x529c31(0xfe)])==null?void 0x0:_0x29b6ea[_0x529c31(0x11e)]),q(_0x204de3,[_0x529c31(0xfe),_0x529c31(0x104)],(_0x5a8e2c=_0x5716f6[_0x529c31(0xfe)])==null?void 0x0:_0x5a8e2c[_0x529c31(0x104)],(_0x10b391=_0x5de8d7['body'])==null?void 0x0:_0x10b391['textRuns']),q(_0x204de3,[_0x529c31(0xfe),_0x529c31(0x10a)],(_0x270e1d=_0x5716f6[_0x529c31(0xfe)])==null?void 0x0:_0x270e1d[_0x529c31(0x10a)],(_0x24bfcd=_0x5de8d7[_0x529c31(0xfe)])==null?void 0x0:_0x24bfcd[_0x529c31(0x10a)]),q(_0x204de3,[_0x529c31(0xfe),_0x529c31(0x138)],(_0x195bb2=_0x5716f6['body'])==null?void 0x0:_0x195bb2[_0x529c31(0x138)],(_0x372ee4=_0x5de8d7[_0x529c31(0xfe)])==null?void 0x0:_0x372ee4[_0x529c31(0x138)]),q(_0x204de3,[_0x529c31(0xfe),_0x529c31(0x13e)],(_0x2709b6=_0x5716f6[_0x529c31(0xfe)])==null?void 0x0:_0x2709b6[_0x529c31(0x13e)],(_0x429d47=_0x5de8d7[_0x529c31(0xfe)])==null?void 0x0:_0x429d47['customDecorations']),q(_0x204de3,[_0x529c31(0xfe),_0x529c31(0xc9)],(_0x3bb04e=_0x5716f6[_0x529c31(0xfe)])==null?void 0x0:_0x3bb04e[_0x529c31(0xc9)],(_0x33033c=_0x5de8d7[_0x529c31(0xfe)])==null?void 0x0:_0x33033c[_0x529c31(0xc9)]),q(_0x204de3,['body',_0x529c31(0xfc)],(_0x1a476e=_0x5716f6[_0x529c31(0xfe)])==null?void 0x0:_0x1a476e[_0x529c31(0xfc)],(_0x57e732=_0x5de8d7['body'])==null?void 0x0:_0x57e732['blockRanges'])][_0x529c31(0x154)](Boolean)['reduce']((_0x56d458,_0x558aef)=>e[_0x529c31(0xcd)][_0x529c31(0x113)](_0x56d458,_0x558aef),null);}function q(_0x4304b5,_0x5d9455,_0x5c6f09,_0x1f1090){const _0x2484f7=_0x4b6d09;return e[_0x2484f7(0xd3)][_0x2484f7(0x14c)](_0x5c6f09,_0x1f1090)?null:_0x4304b5[_0x2484f7(0x153)](_0x5d9455,_0x5c6f09,_0x1f1090);}function J(_0x3f9bfc,_0x210edd,_0x5b6f1a,_0x43941c,_0x5f44f4){const _0x384747=_0x4b6d09;let _0x2ab51d=_e(_0x5b6f1a,_0x43941c);return _0x2ab51d?!!_0x3f9bfc[_0x384747(0x11c)](t['RichTextEditingMutation']['id'],{'unitId':_0x210edd,'actions':_0x2ab51d,'textRanges':[{'startOffset':_0x5f44f4,'endOffset':_0x5f44f4,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const Y=_0x4b6d09(0xb7);var ve='@univerjs-pro/docs-code',ye=_0x4b6d09(0x126);const X={};function Z(_0x111057,_0x54fbd6){return function(_0x3c1c85,_0x55bd43){_0x54fbd6(_0x3c1c85,_0x55bd43,_0x111057);};}function be(_0x49fc85,_0x47a051,_0x3a0088,_0x40bf1a){const _0x5f33ed=_0x4b6d09;var _0x26f8ac=arguments[_0x5f33ed(0xef)],_0x399428=_0x26f8ac<0x3?_0x47a051:_0x40bf1a===null?_0x40bf1a=Object[_0x5f33ed(0x127)](_0x47a051,_0x3a0088):_0x40bf1a,_0x4dfc5f;if(typeof Reflect==_0x5f33ed(0xf4)&&typeof Reflect['decorate']==_0x5f33ed(0xfd))_0x399428=Reflect[_0x5f33ed(0x144)](_0x49fc85,_0x47a051,_0x3a0088,_0x40bf1a);else{for(var _0x3ccaa1=_0x49fc85[_0x5f33ed(0xef)]-0x1;_0x3ccaa1>=0x0;_0x3ccaa1--)(_0x4dfc5f=_0x49fc85[_0x3ccaa1])&&(_0x399428=(_0x26f8ac<0x3?_0x4dfc5f(_0x399428):_0x26f8ac>0x3?_0x4dfc5f(_0x47a051,_0x3a0088,_0x399428):_0x4dfc5f(_0x47a051,_0x3a0088))||_0x399428);}return _0x26f8ac>0x3&&_0x399428&&Object['defineProperty'](_0x47a051,_0x3a0088,_0x399428),_0x399428;}let Q=class extends e[_0x4b6d09(0xc2)]{constructor(_0x366968,_0x504d53){const _0x4df47c=_0x4b6d09;super(),this[_0x4df47c(0x121)]=_0x366968,this[_0x4df47c(0x102)]=_0x504d53,this[_0x4df47c(0xcf)]();}[_0x4b6d09(0xcf)](){const _0x209999=_0x4b6d09;this[_0x209999(0x107)](this['_resourceManagerService'][_0x209999(0xd5)]({'pluginName':Y,'businesses':[e[_0x209999(0xff)][_0x209999(0x115)]],'toJson':_0x16a5ae=>JSON[_0x209999(0x149)](this[_0x209999(0x102)][_0x209999(0x145)](_0x16a5ae)),'parseJson':_0x5e0400=>o(JSON[_0x209999(0x116)](_0x5e0400)),'onLoad':(_0x309318,_0xd3a32e)=>this[_0x209999(0x102)][_0x209999(0xed)](_0x309318,_0xd3a32e),'onUnLoad':_0x1ccc13=>this[_0x209999(0x102)][_0x209999(0x136)](_0x1ccc13)}));}};Q=be([Z(0x0,e[_0x4b6d09(0xcb)]),Z(0x1,(0x0,e[_0x4b6d09(0x103)])(R))],Q);let $=class extends e[_0x4b6d09(0x14a)]{constructor(_0x306fb7=X,_0x4e3418,_0x19b65a,_0x49d368){const _0x3d0b4b=_0x4b6d09;super(),this['_config']=_0x306fb7,this[_0x3d0b4b(0xd9)]=_0x4e3418,this[_0x3d0b4b(0xd8)]=_0x19b65a,this[_0x3d0b4b(0x109)]=_0x49d368;let {..._0x49f2d1}=(0x0,e[_0x3d0b4b(0x150)])({},X,this['_config']);this['_configService'][_0x3d0b4b(0xe5)](_0x3d0b4b(0x13c),_0x49f2d1);}[_0x4b6d09(0x122)](){const _0x365634=_0x4b6d09;this[_0x365634(0xd9)]['add']([R]),this['_injector'][_0x365634(0x146)]([Q]),this[_0x365634(0xd9)][_0x365634(0x14b)](R),this['_injector']['get'](Q),[V,z,H,U,W,B][_0x365634(0x117)](_0x23b4f7=>this[_0x365634(0x107)](this['_commandService']['registerCommand'](_0x23b4f7)));}};L($,_0x4b6d09(0x134),Y),L($,_0x4b6d09(0x12e),ve),L($,_0x4b6d09(0xd2),ye),L($,_0x4b6d09(0xf9),e[_0x4b6d09(0xff)][_0x4b6d09(0x115)]),$=be([(0x0,e[_0x4b6d09(0x108)])(r['UniverLicensePlugin'],t['UniverDocsPlugin']),Z(0x1,(0x0,e[_0x4b6d09(0x103)])(e[_0x4b6d09(0xc0)])),Z(0x2,e[_0x4b6d09(0xd1)]),Z(0x3,e[_0x4b6d09(0xca)])],$),exports[_0x4b6d09(0xf5)]=i,exports[_0x4b6d09(0x106)]=Y,exports['DocsCodeCancelEmptyParagraphCommand']=W,exports[_0x4b6d09(0xf0)]=B,exports[_0x4b6d09(0x142)]=U,exports[_0x4b6d09(0x13f)]=z,exports[_0x4b6d09(0xc6)]=V,exports[_0x4b6d09(0x114)]=R,exports['DocsCodeUpdateCommand']=H,Object[_0x4b6d09(0xaa)](exports,_0x4b6d09(0xfa),{'enumerable':!0x0,'get':function(){return $;}}),exports['buildCancelEmptyCodeParagraphActions']=h,exports[_0x4b6d09(0x14e)]=m,exports[_0x4b6d09(0xab)]=u,exports[_0x4b6d09(0x132)]=p,exports['findCodeRangeAtOffset']=_,exports[_0x4b6d09(0x118)]=v,exports[_0x4b6d09(0x119)]=a;
1
+ const _0x50a514=_0x3235;(function(_0x38cdf4,_0x22e367){const _0x38dacb=_0x3235,_0x2dac39=_0x38cdf4();while(!![]){try{const _0x3e1468=-parseInt(_0x38dacb(0xf1))/0x1+-parseInt(_0x38dacb(0x144))/0x2*(parseInt(_0x38dacb(0xf9))/0x3)+-parseInt(_0x38dacb(0x10b))/0x4*(parseInt(_0x38dacb(0x13c))/0x5)+parseInt(_0x38dacb(0xe6))/0x6*(parseInt(_0x38dacb(0x105))/0x7)+-parseInt(_0x38dacb(0x11b))/0x8+parseInt(_0x38dacb(0x146))/0x9+parseInt(_0x38dacb(0xdf))/0xa;if(_0x3e1468===_0x22e367)break;else _0x2dac39['push'](_0x2dac39['shift']());}catch(_0x4de124){_0x2dac39['push'](_0x2dac39['shift']());}}}(_0x246b,0xdb285),Object[_0x50a514(0x14b)](exports,Symbol[_0x50a514(0x11e)],{'value':_0x50a514(0xd0)}));let e=require('@univerjs/core'),t=require('@univerjs/docs'),n=require('rxjs'),r=require('@univerjs-pro/license');const i={'language':_0x50a514(0x107),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function a(_0x3cd1c9){return{...i,..._0x3cd1c9};}function o(_0x32e88e){const _0x518d8b=_0x50a514;var _0x37a413;let _0x560304=(_0x37a413=_0x32e88e==null?void 0x0:_0x32e88e[_0x518d8b(0xcd)])==null?{}:_0x37a413;return{'codes':Object['fromEntries'](Object[_0x518d8b(0xaf)](_0x560304)['map'](([_0x5243b6,_0x22a097])=>[_0x5243b6,a(_0x22a097)]))};}function s(_0x164407,_0x5f4519,_0x237957){const _0x789ffe=_0x50a514;let _0x37f31d=o(_0x164407);return _0x37f31d['codes'][_0x5f4519]=a({..._0x37f31d[_0x789ffe(0xcd)][_0x5f4519],..._0x237957}),_0x37f31d;}function c(_0x21fbe7,_0x562ef0){const _0x35c32c=_0x50a514;let _0x442ffe=o(_0x21fbe7);return delete _0x442ffe[_0x35c32c(0xcd)][_0x562ef0],_0x442ffe;}const l='monospace';function u(_0x447d0b){const _0x332bd2=_0x50a514;var _0x30e1ee,_0x3d457,_0x5a7111;let _0x23c06d=w(_0x447d0b[_0x332bd2(0x112)]),_0x124030=T(_0x23c06d),_0x2f437a=f(_0x447d0b[_0x332bd2(0x124)],_0x447d0b[_0x332bd2(0xe5)]),_0x496949=_0x2f437a?(_0x30e1ee=_0x124030[_0x332bd2(0xeb)])==null?void 0x0:_0x30e1ee['find'](_0x2d3f8c=>_0x2d3f8c[_0x332bd2(0xc7)]===_0x2f437a['startOffset']&&_0x2d3f8c[_0x332bd2(0x119)]+0x1===_0x2f437a[_0x332bd2(0xe5)]):void 0x0,{startOffset:_0x44cbed,endOffset:_0x55e154}=_0x496949?_0x2f437a:te(_0x124030,_0x447d0b[_0x332bd2(0x124)],_0x447d0b[_0x332bd2(0xe5)]),_0xe2f399=ie(_0x124030,_0x44cbed,_0x55e154),_0x46754a=(_0x3d457=_0x496949==null?void 0x0:_0x496949['blockId'])==null?_0x447d0b[_0x332bd2(0xab)]:_0x3d457,_0x22e6c0=s(_0x447d0b[_0x332bd2(0xfd)],_0x46754a,{...i,..._0x447d0b[_0x332bd2(0xb9)]});if(_0x496949)return _0x496949[_0x332bd2(0xc0)]=e[_0x332bd2(0x131)]['CODE'],d(_0x124030,_0x44cbed,_0x55e154),x(_0x124030,_0x44cbed,_0x55e154,_0xe2f399),O(_0x124030,_0x496949),{'nextDocumentData':_0x23c06d,'nextMetadata':_0x22e6c0,'cursorOffset':_0x44cbed+0x1};if(_0x44cbed===_0x55e154){var _0x466d3c,_0x404cc8;let _0x329501=''+e[_0x332bd2(0x11f)][_0x332bd2(0x129)]+e[_0x332bd2(0x11f)][_0x332bd2(0x108)]+e['DataStreamTreeTokenType'][_0x332bd2(0xac)];k(_0x124030,_0x44cbed,_0x329501,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e[_0x332bd2(0xcc)])(new Set((_0x466d3c=_0x124030['paragraphs'])==null?void 0x0:_0x466d3c['map'](_0x27b650=>_0x27b650['paragraphId']))),'paragraphStyle':b(!0x0,!0x0,_0xe2f399)}],'blockRanges':[{'blockId':_0x46754a,'blockType':e[_0x332bd2(0x131)][_0x332bd2(0xec)],'startIndex':0x0,'endIndex':_0x329501['length']-0x1}]});let _0xb870da=(_0x404cc8=_0x124030[_0x332bd2(0xeb)])==null?void 0x0:_0x404cc8[_0x332bd2(0x136)](_0x21b2e7=>_0x21b2e7[_0x332bd2(0xab)]===_0x46754a);return _0xb870da&&O(_0x124030,_0xb870da),{'nextDocumentData':_0x23c06d,'nextMetadata':_0x22e6c0,'cursorOffset':_0x44cbed+0x1};}k(_0x124030,_0x55e154,e[_0x332bd2(0x11f)]['BLOCK_END']),k(_0x124030,_0x44cbed,e[_0x332bd2(0x11f)][_0x332bd2(0x129)]),x(_0x124030,_0x44cbed,_0x55e154+0x1,_0xe2f399);let _0x333004={'blockId':_0x46754a,'blockType':e['DocumentBlockRangeType']['CODE'],'startIndex':_0x44cbed,'endIndex':_0x55e154+0x1};return _0x124030[_0x332bd2(0xeb)]=[...(_0x5a7111=_0x124030[_0x332bd2(0xeb)])==null?[]:_0x5a7111,_0x333004][_0x332bd2(0x14e)]((_0x4a1dce,_0xf2b468)=>_0x4a1dce[_0x332bd2(0xc7)]-_0xf2b468[_0x332bd2(0xc7)]),O(_0x124030,_0x333004),{'nextDocumentData':_0x23c06d,'nextMetadata':_0x22e6c0,'cursorOffset':_0x44cbed+0x1};}function d(_0x24b61c,_0x4c8bd5,_0x3eb170){const _0x104d0b=_0x50a514;var _0x463fa5;((_0x463fa5=_0x24b61c[_0x104d0b(0xff)])==null?[]:_0x463fa5)['filter'](_0x2e2d79=>_0x2e2d79['startIndex']>_0x4c8bd5&&_0x2e2d79[_0x104d0b(0xc7)]<_0x3eb170)[_0x104d0b(0x115)](_0x18dd8b=>{const _0x2cd873=_0x104d0b;var _0x237cd8;let _0x4de9b0={...(_0x237cd8=_0x18dd8b[_0x2cd873(0x13f)])==null?{}:_0x237cd8};delete _0x4de9b0[_0x2cd873(0x122)],delete _0x4de9b0[_0x2cd873(0xc5)],_0x18dd8b[_0x2cd873(0x13f)]=_0x4de9b0;});}function f(_0x441189,_0x5cfc7f){const _0x523830=_0x50a514;return _0x441189==null||_0x5cfc7f==null||_0x441189===_0x5cfc7f?null:{'startOffset':Math[_0x523830(0x10a)](_0x441189,_0x5cfc7f),'endOffset':Math['max'](_0x441189,_0x5cfc7f)};}function p(_0x4ea81f){const _0x2c8bf5=_0x50a514;return{'nextDocumentData':w(_0x4ea81f[_0x2c8bf5(0x112)]),'nextMetadata':s(_0x4ea81f[_0x2c8bf5(0xfd)],_0x4ea81f['blockId'],_0x4ea81f[_0x2c8bf5(0xb9)]),'cursorOffset':0x0};}function m(_0xcfceae){const _0x2579e5=_0x50a514;var _0x47cee9,_0x1dc152;let _0xad5d7a=w(_0xcfceae['documentData']),_0x3dd696=T(_0xad5d7a),_0x1f25a7=y(_0x3dd696,_0xcfceae[_0x2579e5(0x126)]);if(!_0x1f25a7)return null;let _0x1e27e4=C(_0x3dd696,_0x1f25a7),_0x322a63=_0x1e27e4[_0x1e27e4[_0x2579e5(0xd4)]-0x1];if(!_0x322a63||!ee(_0x3dd696,_0x1f25a7,_0x322a63)||_0xcfceae[_0x2579e5(0x126)]<_0x322a63[_0x2579e5(0xc7)])return null;let _0x26b1c2=oe(_0x3dd696,_0x1f25a7,_0x322a63);if(_0x26b1c2>=_0x1f25a7[_0x2579e5(0x119)])return null;_0x3dd696['dataStream']=[_0x3dd696[_0x2579e5(0xf2)][_0x2579e5(0xbf)](0x0,_0x26b1c2),e[_0x2579e5(0x11f)][_0x2579e5(0xac)],_0x3dd696['dataStream'][_0x2579e5(0xbf)](_0x26b1c2,_0x1f25a7[_0x2579e5(0x119)]),_0x3dd696[_0x2579e5(0xf2)][_0x2579e5(0xbf)](_0x1f25a7['endIndex']+0x1)][_0x2579e5(0xb7)](''),P(_0x3dd696[_0x2579e5(0xff)],_0x26b1c2,_0x1f25a7[_0x2579e5(0x119)],0x1),P(_0x3dd696['sectionBreaks'],_0x26b1c2,_0x1f25a7['endIndex'],0x1),P(_0x3dd696[_0x2579e5(0xcb)],_0x26b1c2,_0x1f25a7[_0x2579e5(0x119)],0x1),fe(_0x3dd696[_0x2579e5(0xc6)],_0x26b1c2,_0x1f25a7[_0x2579e5(0x119)],0x1),F(_0x3dd696[_0x2579e5(0x10e)],_0x26b1c2,_0x1f25a7[_0x2579e5(0x119)],0x1),F(_0x3dd696[_0x2579e5(0xca)],_0x26b1c2,_0x1f25a7[_0x2579e5(0x119)],0x1),F(_0x3dd696[_0x2579e5(0xd3)],_0x26b1c2,_0x1f25a7[_0x2579e5(0x119)],0x1),(_0x47cee9=_0x3dd696['blockRanges'])==null||_0x47cee9['forEach'](_0x396ce8=>{const _0x126d2b=_0x2579e5;_0x396ce8===_0x1f25a7||_0x396ce8[_0x126d2b(0xab)]===_0x1f25a7[_0x126d2b(0xab)]?_0x396ce8['endIndex']=_0x26b1c2:_0x396ce8[_0x126d2b(0xc7)]>=_0x26b1c2&&_0x396ce8[_0x126d2b(0xc7)]<_0x1f25a7['endIndex']&&(_0x396ce8[_0x126d2b(0xc7)]+=0x1,_0x396ce8[_0x126d2b(0x119)]+=0x1);});let _0x538282=C(_0x3dd696,{..._0x1f25a7,'endIndex':_0x26b1c2});_0x538282[_0x2579e5(0x115)]((_0x1c3274,_0x1bd6b9)=>{var _0x39a0f4;_0x1c3274['paragraphStyle']={...(_0x39a0f4=_0x1c3274['paragraphStyle'])==null?{}:_0x39a0f4,...b(_0x1bd6b9===0x0,_0x1bd6b9===_0x538282['length']-0x1)};});let _0x402f21=(_0x1dc152=_0x3dd696['paragraphs'])==null?void 0x0:_0x1dc152[_0x2579e5(0x136)](_0x3091a9=>_0x3091a9[_0x2579e5(0xc7)]===_0x26b1c2+0x1);return _0x402f21&&(_0x402f21[_0x2579e5(0x13f)]=S(_0x402f21[_0x2579e5(0x13f)])),{'nextDocumentData':_0xad5d7a,'cursorOffset':_0x26b1c2+0x1};}function h(_0x2eebc7){const _0x4dd8b7=_0x50a514;let _0x42d534=w(_0x2eebc7['documentData']),_0x14af12=T(_0x42d534),_0x5a428e=y(_0x14af12,_0x2eebc7[_0x4dd8b7(0x126)]);return _0x5a428e&&g(_0x42d534,_0x14af12,_0x5a428e,_0x2eebc7[_0x4dd8b7(0x126)],_0x2eebc7[_0x4dd8b7(0xde)])||null;}function g(_0x89a0f1,_0x5e5528,_0x2e1176,_0x530fba,_0x38c941){const _0x53f229=_0x50a514;let _0x4dc28b=se(_0x5e5528,_0x2e1176,_0x530fba,_0x38c941);if(!_0x4dc28b)return null;let _0x480d0d=_0x4dc28b[_0x53f229(0xbd)]-0x1;return ce(_0x5e5528,_0x4dc28b[_0x53f229(0xe1)]['startIndex'],_0x4dc28b[_0x53f229(0xe1)][_0x53f229(0xc7)]+0x1),{'nextDocumentData':_0x89a0f1,'cursorOffset':_0x480d0d};}function _(_0x1efe5e,_0x5676cf){const _0x2f0be5=_0x50a514;var _0x3bb9f8;return _0x1efe5e==null||(_0x3bb9f8=_0x1efe5e['blockRanges'])==null?void 0x0:_0x3bb9f8[_0x2f0be5(0x136)](_0x58dbe3=>_0x58dbe3[_0x2f0be5(0xc0)]===e[_0x2f0be5(0x131)]['CODE']&&_0x58dbe3[_0x2f0be5(0xc7)]<=_0x5676cf&&_0x5676cf<=_0x58dbe3[_0x2f0be5(0x119)]);}function v(_0x49087f){const _0x23fe10=_0x50a514;var _0x918f03;let _0xd9b3d0=_0x49087f['documentData'][_0x23fe10(0xae)];if(!_0xd9b3d0)return!0x1;let _0x7cae75=_0x49087f[_0x23fe10(0xc1)]===_0x23fe10(0xd9)?_0x49087f['cursorOffset']-0x1:_0x49087f[_0x23fe10(0x126)],_0x285fe1=_0x49087f[_0x23fe10(0xc1)]===_0x23fe10(0xda)?_0x49087f['cursorOffset']+0x1:_0x7cae75;return((_0x918f03=_0xd9b3d0[_0x23fe10(0xeb)])==null?[]:_0x918f03)[_0x23fe10(0xd7)](_0x369a8c=>_0x369a8c['blockType']===e['DocumentBlockRangeType']['CODE']?_0x7cae75===_0x369a8c['startIndex']||_0x7cae75===_0x369a8c[_0x23fe10(0x119)]||_0x285fe1===_0x369a8c[_0x23fe10(0xc7)]||_0x285fe1===_0x369a8c[_0x23fe10(0x119)]:!0x1);}function y(_0x103b77,_0x50ac37){const _0x2c4444=_0x50a514;var _0x394936;return(_0x394936=_0x103b77['blockRanges'])==null?void 0x0:_0x394936[_0x2c4444(0x136)](_0x3e6332=>{const _0x34e9a8=_0x2c4444;let _0xd1b0ef=D(_0x103b77,_0x3e6332);return _0x3e6332[_0x34e9a8(0xc0)]===e[_0x34e9a8(0x131)][_0x34e9a8(0xec)]&&_0x3e6332['startIndex']<=_0x50ac37&&_0x50ac37<=_0xd1b0ef+0x2;});}function b(_0xca99eb,_0x211d39,_0x293f98=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0xca99eb&&_0x293f98?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':l,'fs':0xc}};}function x(_0xfc07eb,_0x1986e3,_0x5c37c0,_0x474329=!0x1){const _0x48ef13=_0x50a514;var _0x2d726a;let _0x4f09c1=((_0x2d726a=_0xfc07eb['paragraphs'])==null?[]:_0x2d726a)[_0x48ef13(0xba)](_0x10e2aa=>_0x10e2aa[_0x48ef13(0xc7)]>_0x1986e3&&_0x10e2aa['startIndex']<_0x5c37c0);_0x4f09c1['forEach']((_0x45fc7f,_0x2abec1)=>{const _0x2d894f=_0x48ef13;var _0x48d744;_0x45fc7f[_0x2d894f(0x13f)]={...(_0x48d744=_0x45fc7f[_0x2d894f(0x13f)])==null?{}:_0x48d744,...b(_0x2abec1===0x0,_0x2abec1===_0x4f09c1[_0x2d894f(0xd4)]-0x1,_0x474329)};});}function S(_0x359f20){const _0x5a405c=_0x50a514;var _0x66e683,_0x22f784;let _0x50969e={..._0x359f20==null?{}:_0x359f20};return delete _0x50969e['indentEnd'],delete _0x50969e['indentStart'],delete _0x50969e['spaceAbove'],delete _0x50969e[_0x5a405c(0xc5)],((_0x66e683=_0x50969e[_0x5a405c(0xf0)])==null?void 0x0:_0x66e683['ff'])===l&&((_0x22f784=_0x50969e['textStyle'])==null?void 0x0:_0x22f784['fs'])===0xc&&delete _0x50969e['textStyle'],_0x50969e;}function C(_0x127e4f,_0x5d4620){const _0x5bff49=_0x50a514;var _0x36a2d7;let _0x2eefbb=D(_0x127e4f,_0x5d4620);return((_0x36a2d7=_0x127e4f[_0x5bff49(0xff)])==null?[]:_0x36a2d7)[_0x5bff49(0xba)](_0x1959f9=>_0x1959f9[_0x5bff49(0xc7)]>_0x5d4620['startIndex']&&_0x1959f9[_0x5bff49(0xc7)]<_0x2eefbb);}function ee(_0x33099e,_0x59f909,_0x8bf124){const _0xbbe300=_0x50a514;let _0x2d5a2e=oe(_0x33099e,_0x59f909,_0x8bf124),_0xe1cd50=_0x33099e[_0xbbe300(0xf2)]['slice'](_0x2d5a2e,_0x8bf124[_0xbbe300(0xc7)]);return Array['from'](_0xe1cd50)[_0xbbe300(0xb3)](_0x59ce42=>_0x59ce42===e[_0xbbe300(0x11f)][_0xbbe300(0x129)]||_0x59ce42===e[_0xbbe300(0x11f)][_0xbbe300(0xac)]);}function w(_0x148bd7){const _0x2b724f=_0x50a514;return e[_0x2b724f(0xdc)][_0x2b724f(0x11c)](_0x148bd7);}function T(_0x401c63){const _0x2afdc8=_0x50a514;if(!_0x401c63['body'])throw Error('Document\x20body\x20is\x20required');return _0x401c63[_0x2afdc8(0xae)];}function te(_0x2d7ae7,_0x375501,_0x168160){const _0x474579=_0x50a514;if(_0x375501==null||_0x168160==null){let _0x3de864=re(_0x2d7ae7);return{'startOffset':_0x3de864,'endOffset':_0x3de864};}let _0x372f29=Math[_0x474579(0x10a)](_0x375501,_0x168160),_0x54e9ad=Math[_0x474579(0x114)](_0x375501,_0x168160);if(_0x372f29===_0x54e9ad){let _0x1ef7e5=ne(_0x2d7ae7,_0x372f29);return{'startOffset':_0x1ef7e5,'endOffset':_0x1ef7e5};}return ae(_0x2d7ae7,_0x372f29,_0x54e9ad);}function ne(_0x410835,_0x306282){const _0x10ae3d=_0x50a514;return _0x306282===0x0&&_0x410835[_0x10ae3d(0xf2)][0x0]===e[_0x10ae3d(0x11f)]['PARAGRAPH']?0x1:_0x306282;}function re(_0x39ddf1){const _0x4d84cf=_0x50a514;return _0x39ddf1[_0x4d84cf(0xf2)][_0x4d84cf(0x140)](e[_0x4d84cf(0x11f)][_0x4d84cf(0xe8)])?Math[_0x4d84cf(0x114)](0x0,_0x39ddf1[_0x4d84cf(0xf2)]['length']-0x1):_0x39ddf1[_0x4d84cf(0xf2)][_0x4d84cf(0xd4)];}function ie(_0x1847bf,_0x4867a3,_0x5e0284){const _0x50b2b0=_0x50a514;var _0xba112d;let _0x3ef11a=Math[_0x50b2b0(0x10a)](_0x4867a3,_0x5e0284),_0x12c4a6=Math[_0x50b2b0(0x114)](_0x4867a3,_0x5e0284);return!!((_0xba112d=_0x1847bf[_0x50b2b0(0x10e)])!=null&&_0xba112d['some'](_0xee3161=>_0x3ef11a>_0xee3161[_0x50b2b0(0xc7)]&&_0x3ef11a<_0xee3161[_0x50b2b0(0x119)]||_0x12c4a6>_0xee3161[_0x50b2b0(0xc7)]&&_0x12c4a6<_0xee3161[_0x50b2b0(0x119)]||_0x3ef11a<=_0xee3161[_0x50b2b0(0xc7)]&&_0x12c4a6>=_0xee3161['endIndex']));}function ae(_0x2dd492,_0x2a4650,_0x343d77){const _0x22aafa=_0x50a514;var _0x571f88,_0x448e58;let _0x156b4=[...(_0x571f88=_0x2dd492['paragraphs'])==null?[]:_0x571f88]['sort']((_0x40b0f8,_0x23a5dd)=>_0x40b0f8[_0x22aafa(0xc7)]-_0x23a5dd[_0x22aafa(0xc7)]),_0x5d25a4=_0x156b4[_0x22aafa(0x136)]((_0x321b79,_0x488e69)=>(_0x488e69===0x0?0x0:_0x156b4[_0x488e69-0x1]['startIndex']+0x1)<=_0x2a4650&&_0x2a4650<=_0x321b79[_0x22aafa(0xc7)]),_0x2ad2fa=(_0x448e58=_0x156b4[_0x22aafa(0x136)](_0x1618e1=>_0x1618e1['startIndex']>=_0x343d77-0x1))==null?_0x156b4[_0x156b4['length']-0x1]:_0x448e58;return{'startOffset':_0x5d25a4?E(_0x156b4,_0x5d25a4):_0x2a4650,'endOffset':_0x2ad2fa?_0x2ad2fa[_0x22aafa(0xc7)]+0x1:_0x343d77};}function E(_0x184ed5,_0x164356){const _0x150a30=_0x50a514;let _0x2c22b1=_0x184ed5[_0x150a30(0x133)](_0x164356);return _0x2c22b1>0x0?_0x184ed5[_0x2c22b1-0x1][_0x150a30(0xc7)]+0x1:0x0;}function oe(_0x3ac95f,_0x36e312,_0x1b0278){const _0x56d527=_0x50a514;var _0x1128ad;return Math[_0x56d527(0x114)](E((_0x1128ad=_0x3ac95f[_0x56d527(0xff)])==null?[]:_0x1128ad,_0x1b0278),_0x36e312[_0x56d527(0xc7)]+0x1);}function D(_0x1773c2,_0x5769c3){const _0x1b64fe=_0x50a514;return _0x1773c2['dataStream'][_0x5769c3[_0x1b64fe(0x119)]]===e[_0x1b64fe(0x11f)][_0x1b64fe(0xac)]?_0x5769c3['endIndex']:_0x1773c2[_0x1b64fe(0xf2)][_0x5769c3['endIndex']+0x1]===e['DataStreamTreeTokenType'][_0x1b64fe(0xac)]?_0x5769c3['endIndex']+0x1:_0x5769c3[_0x1b64fe(0x119)];}function se(_0x466a6e,_0x202c3a,_0x33488c,_0x57deb6){const _0x33dc5d=_0x50a514;var _0x3cf7a5,_0x5249ed;let _0x316d87=D(_0x466a6e,_0x202c3a),_0x3aa9cd=((_0x3cf7a5=_0x466a6e[_0x33dc5d(0xff)])==null?[]:_0x3cf7a5)[_0x33dc5d(0x136)](_0x21825f=>_0x21825f[_0x33dc5d(0xc7)]===_0x316d87+0x1);if(!_0x3aa9cd||_0x57deb6!=null&&_0x3aa9cd[_0x33dc5d(0xc7)]!==_0x57deb6||_0x33488c<_0x316d87||_0x33488c>_0x3aa9cd[_0x33dc5d(0xc7)]+0x1||_0x466a6e[_0x33dc5d(0xf2)][_0x3aa9cd[_0x33dc5d(0xc7)]]!==e[_0x33dc5d(0x11f)][_0x33dc5d(0x108)])return null;let _0x57e03b=E((_0x5249ed=_0x466a6e[_0x33dc5d(0xff)])==null?[]:_0x5249ed,_0x3aa9cd),_0x37853b=_0x466a6e[_0x33dc5d(0xf2)][_0x33dc5d(0xbf)](_0x57e03b,_0x3aa9cd['startIndex']);return Array['from'](_0x37853b)[_0x33dc5d(0xb3)](_0x272ecd=>_0x272ecd===e['DataStreamTreeTokenType'][_0x33dc5d(0xac)])?{'paragraph':_0x3aa9cd,'endTokenOffset':_0x316d87}:null;}function O(_0x32fb71,_0x9eeb83){const _0x4363b5=_0x50a514;var _0x43ca8c;let _0x1bbd89=D(_0x32fb71,_0x9eeb83),_0x29ab08=_0x32fb71['dataStream'][_0x1bbd89+0x1];_0x29ab08!==e[_0x4363b5(0x11f)][_0x4363b5(0xe8)]&&_0x29ab08!==void 0x0||k(_0x32fb71,_0x1bbd89+0x1,e[_0x4363b5(0x11f)][_0x4363b5(0x108)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,e[_0x4363b5(0xcc)])(new Set((_0x43ca8c=_0x32fb71[_0x4363b5(0xff)])==null?void 0x0:_0x43ca8c[_0x4363b5(0x134)](_0x366aaa=>_0x366aaa['paragraphId'])))}]});}function k(_0x1444af,_0x40f84d,_0x1d1052,_0x128f58={}){const _0xaafdcf=_0x50a514;var _0x3c0cb0,_0x186e86;if(_0x1d1052){if(_0x1444af['dataStream']=''+_0x1444af['dataStream'][_0xaafdcf(0xbf)](0x0,_0x40f84d)+_0x1d1052+_0x1444af[_0xaafdcf(0xf2)]['slice'](_0x40f84d),le(_0x1444af,_0x40f84d,_0x1d1052[_0xaafdcf(0xd4)]),(_0x3c0cb0=_0x128f58[_0xaafdcf(0xff)])!=null&&_0x3c0cb0['length']){var _0x19f213;_0x1444af[_0xaafdcf(0xff)]=[...(_0x19f213=_0x1444af[_0xaafdcf(0xff)])==null?[]:_0x19f213,..._0x128f58[_0xaafdcf(0xff)][_0xaafdcf(0x134)](_0x211c25=>({..._0x211c25,'startIndex':_0x211c25[_0xaafdcf(0xc7)]+_0x40f84d}))][_0xaafdcf(0x14e)]((_0x46d184,_0x3e1a1d)=>_0x46d184[_0xaafdcf(0xc7)]-_0x3e1a1d[_0xaafdcf(0xc7)]);}if((_0x186e86=_0x128f58[_0xaafdcf(0xeb)])!=null&&_0x186e86['length']){var _0x25df0e;_0x1444af[_0xaafdcf(0xeb)]=[...(_0x25df0e=_0x1444af['blockRanges'])==null?[]:_0x25df0e,..._0x128f58[_0xaafdcf(0xeb)][_0xaafdcf(0x134)](_0x376eb7=>({..._0x376eb7,'startIndex':_0x376eb7[_0xaafdcf(0xc7)]+_0x40f84d,'endIndex':_0x376eb7[_0xaafdcf(0x119)]+_0x40f84d}))][_0xaafdcf(0x14e)]((_0x2a7c9e,_0x58da1d)=>_0x2a7c9e['startIndex']-_0x58da1d[_0xaafdcf(0xc7)]);}}}function ce(_0x2176bf,_0x3e34a5,_0x2f907c){const _0x4f8069=_0x50a514;let _0x189a54=_0x2f907c-_0x3e34a5;_0x2176bf[_0x4f8069(0xf2)]=''+_0x2176bf[_0x4f8069(0xf2)][_0x4f8069(0xbf)](0x0,_0x3e34a5)+_0x2176bf[_0x4f8069(0xf2)][_0x4f8069(0xbf)](_0x2f907c),ue(_0x2176bf,_0x3e34a5,_0x189a54);}function le(_0x16228c,_0x316acc,_0x36c3cb){const _0x3bb871=_0x50a514;_0x16228c[_0x3bb871(0xff)]=A(_0x16228c['paragraphs'],_0x316acc,_0x36c3cb),_0x16228c[_0x3bb871(0x135)]=A(_0x16228c[_0x3bb871(0x135)],_0x316acc,_0x36c3cb),_0x16228c[_0x3bb871(0xcb)]=A(_0x16228c[_0x3bb871(0xcb)],_0x316acc,_0x36c3cb),_0x16228c[_0x3bb871(0xc6)]=de(_0x16228c[_0x3bb871(0xc6)],_0x316acc,_0x36c3cb),_0x16228c[_0x3bb871(0x10e)]=M(_0x16228c['tables'],_0x316acc,_0x36c3cb),_0x16228c[_0x3bb871(0xca)]=M(_0x16228c['customRanges'],_0x316acc,_0x36c3cb),_0x16228c[_0x3bb871(0xd3)]=M(_0x16228c[_0x3bb871(0xd3)],_0x316acc,_0x36c3cb),_0x16228c[_0x3bb871(0xeb)]=M(_0x16228c[_0x3bb871(0xeb)],_0x316acc,_0x36c3cb);}function ue(_0x49522c,_0x4d3ce4,_0xb89123){const _0x255406=_0x50a514;var _0x3512b4,_0x18a820;_0x49522c['paragraphs']=j(_0x49522c[_0x255406(0xff)],_0x4d3ce4,_0xb89123),_0x49522c[_0x255406(0x135)]=j(_0x49522c[_0x255406(0x135)],_0x4d3ce4,_0xb89123),_0x49522c['customBlocks']=j(_0x49522c[_0x255406(0xcb)],_0x4d3ce4,_0xb89123),_0x49522c[_0x255406(0xc6)]=(_0x3512b4=N((_0x18a820=_0x49522c[_0x255406(0xc6)])==null?void 0x0:_0x18a820[_0x255406(0x134)](_0x5c23b3=>({..._0x5c23b3,'startIndex':_0x5c23b3['st'],'endIndex':_0x5c23b3['ed']})),_0x4d3ce4,_0xb89123))==null?void 0x0:_0x3512b4[_0x255406(0x134)](_0x49ddb2=>{let {startIndex:_0x38db42,endIndex:_0x43c11b,..._0x2e0f3b}=_0x49ddb2;return{..._0x2e0f3b,'st':_0x38db42,'ed':_0x43c11b};}),_0x49522c[_0x255406(0x10e)]=N(_0x49522c[_0x255406(0x10e)],_0x4d3ce4,_0xb89123),_0x49522c[_0x255406(0xca)]=N(_0x49522c['customRanges'],_0x4d3ce4,_0xb89123),_0x49522c[_0x255406(0xd3)]=N(_0x49522c[_0x255406(0xd3)],_0x4d3ce4,_0xb89123),_0x49522c['blockRanges']=N(_0x49522c[_0x255406(0xeb)],_0x4d3ce4,_0xb89123);}function A(_0x3cddf9,_0x219cdc,_0x97771b){const _0x32dc11=_0x50a514;return _0x3cddf9==null?void 0x0:_0x3cddf9[_0x32dc11(0x134)](_0x426829=>_0x426829[_0x32dc11(0xc7)]>=_0x219cdc?{..._0x426829,'startIndex':_0x426829[_0x32dc11(0xc7)]+_0x97771b}:_0x426829);}function j(_0x5e3967,_0x574d41,_0x23d422){const _0x5b04ef=_0x50a514;let _0x4bd119=_0x574d41+_0x23d422;return _0x5e3967==null?void 0x0:_0x5e3967[_0x5b04ef(0x134)](_0x3bd7af=>_0x3bd7af['startIndex']>=_0x574d41&&_0x3bd7af[_0x5b04ef(0xc7)]<_0x4bd119?null:_0x3bd7af[_0x5b04ef(0xc7)]>=_0x4bd119?{..._0x3bd7af,'startIndex':_0x3bd7af[_0x5b04ef(0xc7)]-_0x23d422}:_0x3bd7af)[_0x5b04ef(0xba)](_0x15526c=>_0x15526c!=null);}function de(_0x8ab33a,_0x5bbcab,_0xf9b251){return _0x8ab33a==null?void 0x0:_0x8ab33a['map'](_0x25cc8e=>_0x25cc8e['st']>=_0x5bbcab?{..._0x25cc8e,'st':_0x25cc8e['st']+_0xf9b251,'ed':_0x25cc8e['ed']+_0xf9b251}:_0x25cc8e['ed']>_0x5bbcab?{..._0x25cc8e,'ed':_0x25cc8e['ed']+_0xf9b251}:_0x25cc8e);}function M(_0x1c5ca1,_0x3d3af8,_0x372114){const _0x18b35d=_0x50a514;return _0x1c5ca1==null?void 0x0:_0x1c5ca1[_0x18b35d(0x134)](_0x57c2f3=>_0x57c2f3[_0x18b35d(0xc7)]>=_0x3d3af8?{..._0x57c2f3,'startIndex':_0x57c2f3['startIndex']+_0x372114,'endIndex':_0x57c2f3[_0x18b35d(0x119)]+_0x372114}:_0x57c2f3[_0x18b35d(0x119)]>=_0x3d3af8?{..._0x57c2f3,'endIndex':_0x57c2f3[_0x18b35d(0x119)]+_0x372114}:_0x57c2f3);}function N(_0x3de0b6,_0x5920a6,_0x199284){const _0x43a409=_0x50a514;let _0x347a15=_0x5920a6+_0x199284;return _0x3de0b6==null?void 0x0:_0x3de0b6['map'](_0x3dbb9b=>_0x3dbb9b[_0x43a409(0xc7)]>=_0x5920a6&&_0x3dbb9b[_0x43a409(0x119)]<_0x347a15?null:_0x3dbb9b[_0x43a409(0xc7)]>=_0x347a15?{..._0x3dbb9b,'startIndex':_0x3dbb9b[_0x43a409(0xc7)]-_0x199284,'endIndex':_0x3dbb9b[_0x43a409(0x119)]-_0x199284}:_0x3dbb9b['endIndex']>=_0x5920a6?{..._0x3dbb9b,'startIndex':_0x3dbb9b['startIndex']<_0x5920a6?_0x3dbb9b['startIndex']:_0x5920a6,'endIndex':Math[_0x43a409(0x114)](_0x5920a6,_0x3dbb9b[_0x43a409(0x119)]-_0x199284)}:_0x3dbb9b)[_0x43a409(0xba)](_0x293fa7=>_0x293fa7!=null);}function P(_0x29c9d6,_0x1a75ee,_0x4c20c5,_0x3ab24c){_0x29c9d6==null||_0x29c9d6['forEach'](_0x2d9707=>{const _0x29e92e=_0x3235;_0x2d9707[_0x29e92e(0xc7)]>=_0x1a75ee&&_0x2d9707[_0x29e92e(0xc7)]<_0x4c20c5&&(_0x2d9707[_0x29e92e(0xc7)]+=_0x3ab24c);});}function fe(_0x49bc56,_0x390610,_0x2d2f6b,_0x12079a){const _0x255abc=_0x50a514;_0x49bc56==null||_0x49bc56[_0x255abc(0x115)](_0x316e18=>{_0x316e18['st']>=_0x390610&&_0x316e18['st']<_0x2d2f6b?(_0x316e18['st']+=_0x12079a,_0x316e18['ed']+=_0x12079a):_0x316e18['ed']>_0x390610&&_0x316e18['ed']<_0x2d2f6b&&(_0x316e18['ed']+=_0x12079a);});}function F(_0x2a8c1a,_0x1777ca,_0x2c8fed,_0x51ceab){_0x2a8c1a==null||_0x2a8c1a['forEach'](_0x39ee36=>{const _0x11a8ef=_0x3235;_0x39ee36[_0x11a8ef(0xc7)]>=_0x1777ca&&_0x39ee36[_0x11a8ef(0xc7)]<_0x2c8fed?(_0x39ee36[_0x11a8ef(0xc7)]+=_0x51ceab,_0x39ee36[_0x11a8ef(0x119)]+=_0x51ceab):_0x39ee36[_0x11a8ef(0x119)]>_0x1777ca&&_0x39ee36['endIndex']<_0x2c8fed&&(_0x39ee36[_0x11a8ef(0x119)]+=_0x51ceab);});}function I(_0x547d8b){'@babel/helpers - typeof';const _0x2b34bd=_0x50a514;return I=typeof Symbol==_0x2b34bd(0xee)&&typeof Symbol[_0x2b34bd(0x147)]==_0x2b34bd(0x12d)?function(_0x3b7cdf){return typeof _0x3b7cdf;}:function(_0x55ea34){const _0x4e978f=_0x2b34bd;return _0x55ea34&&typeof Symbol==_0x4e978f(0xee)&&_0x55ea34['constructor']===Symbol&&_0x55ea34!==Symbol['prototype']?_0x4e978f(0x12d):typeof _0x55ea34;},I(_0x547d8b);}function pe(_0x2dad53,_0x37a7fa){const _0x51c7f4=_0x50a514;if(I(_0x2dad53)!=_0x51c7f4(0x138)||!_0x2dad53)return _0x2dad53;var _0x3fb61f=_0x2dad53[Symbol[_0x51c7f4(0xcf)]];if(_0x3fb61f!==void 0x0){var _0x463a6e=_0x3fb61f['call'](_0x2dad53,_0x37a7fa||'default');if(I(_0x463a6e)!=_0x51c7f4(0x138))return _0x463a6e;throw TypeError(_0x51c7f4(0xe7));}return(_0x37a7fa===_0x51c7f4(0x113)?String:Number)(_0x2dad53);}function me(_0x3413aa){const _0x128f00=_0x50a514;var _0x3c44c6=pe(_0x3413aa,'string');return I(_0x3c44c6)==_0x128f00(0x12d)?_0x3c44c6:_0x3c44c6+'';}function L(_0x1bba21,_0x429beb,_0x9391c5){const _0x1628ee=_0x50a514;return(_0x429beb=me(_0x429beb))in _0x1bba21?Object[_0x1628ee(0x14b)](_0x1bba21,_0x429beb,{'value':_0x9391c5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1bba21[_0x429beb]=_0x9391c5,_0x1bba21;}function _0x3235(_0x29813a,_0x2aafc9){_0x29813a=_0x29813a-0xab;const _0x246b5e=_0x246b();let _0x32354a=_0x246b5e[_0x29813a];return _0x32354a;}var R=class extends e[_0x50a514(0x12c)]{constructor(..._0x55b72b){const _0x2a78d3=_0x50a514;super(..._0x55b72b),L(this,'_resources',new Map()),L(this,'_change$',new n['Subject']()),L(this,_0x2a78d3(0x104),this[_0x2a78d3(0x121)][_0x2a78d3(0x125)]());}[_0x50a514(0x148)](_0x361a4b,_0x5429db){const _0x3c9273=_0x50a514;return o(this['_resources']['get'](_0x361a4b))[_0x3c9273(0xcd)][_0x5429db];}[_0x50a514(0x116)](_0x16bf57,_0x5c738e,_0x242221){const _0x2be44f=_0x50a514;this[_0x2be44f(0xc4)](_0x16bf57,_0x5c738e,s(this[_0x2be44f(0xf6)][_0x2be44f(0xf8)](_0x16bf57),_0x5c738e,_0x242221));}[_0x50a514(0xc2)](_0x3829d4,_0x114a02){const _0x36cce2=_0x50a514;this[_0x36cce2(0xc4)](_0x3829d4,_0x114a02,c(this[_0x36cce2(0xf6)][_0x36cce2(0xf8)](_0x3829d4),_0x114a02));}['serialize'](_0x447657){const _0xac3fef=_0x50a514;return o(this[_0xac3fef(0xf6)][_0xac3fef(0xf8)](_0x447657));}[_0x50a514(0xb0)](_0x3f7fe2,_0x3a62a2){const _0x28a5c5=_0x50a514;this['_resources'][_0x28a5c5(0xe0)](_0x3f7fe2,o(_0x3a62a2)),this['_change$']['next']({'unitId':_0x3f7fe2});}['removeUnit'](_0x825a6e){const _0x4d24da=_0x50a514;this[_0x4d24da(0xf6)][_0x4d24da(0x12f)](_0x825a6e),this[_0x4d24da(0x121)][_0x4d24da(0xd5)]({'unitId':_0x825a6e});}['dispose'](){const _0x586736=_0x50a514;super[_0x586736(0x132)](),this[_0x586736(0xf6)]['clear'](),this[_0x586736(0x121)][_0x586736(0x130)]();}[_0x50a514(0xc4)](_0x242594,_0x2d474e,_0x49a5b7){const _0x1d30dd=_0x50a514;this[_0x1d30dd(0xf6)]['set'](_0x242594,_0x49a5b7),this['_change$'][_0x1d30dd(0xd5)]({'unitId':_0x242594,'blockId':_0x2d474e});}};const z={'id':_0x50a514(0x118),'type':e[_0x50a514(0xdb)][_0x50a514(0x14c)],'handler':_0xd817b6=>{const _0x32f6fc=_0x50a514;let _0x35fe52=he(_0xd817b6);if(_0x35fe52)return _0xd817b6[_0x32f6fc(0xf8)](e[_0x32f6fc(0x106)])['syncExecuteCommand'](V['id'],{'startOffset':_0x35fe52[_0x32f6fc(0x124)],'endOffset':_0x35fe52['endOffset'],'unitId':_0x35fe52[_0x32f6fc(0xfb)]});let _0x141fc8=ge(_0xd817b6);if(!_0x141fc8)return!0x1;let _0x172a0a=_0x141fc8[_0x32f6fc(0xc7)]+0x1;return _0xd817b6[_0x32f6fc(0xf8)](e[_0x32f6fc(0x106)])['syncExecuteCommand'](V['id'],{'startOffset':_0x172a0a,'endOffset':_0x172a0a});}},B={'id':_0x50a514(0xf3),'type':e[_0x50a514(0xdb)]['COMMAND'],'handler':()=>!0x0},V={'id':_0x50a514(0x139),'type':e[_0x50a514(0xdb)][_0x50a514(0x14c)],'handler':(_0x1d37a3,_0x111aa1)=>{const _0x56b5d3=_0x50a514;var _0x19e04e,_0x18ef53,_0x2a9d09;let _0x4910bf=G(_0x1d37a3,_0x111aa1==null?void 0x0:_0x111aa1[_0x56b5d3(0xfb)]);if(!_0x4910bf)return!0x1;let _0x330270=K(_0x1d37a3),_0x590dfb=u({'blockId':(_0x19e04e=_0x111aa1==null?void 0x0:_0x111aa1[_0x56b5d3(0xab)])==null?(0x0,e[_0x56b5d3(0xfe)])(0x6):_0x19e04e,'config':_0x111aa1==null?void 0x0:_0x111aa1['config'],'documentData':_0x4910bf[_0x56b5d3(0xed)],'endOffset':(_0x18ef53=_0x111aa1==null?void 0x0:_0x111aa1[_0x56b5d3(0xe5)])==null?_0x330270==null?void 0x0:_0x330270[_0x56b5d3(0xe5)]:_0x18ef53,'metadata':_0x4910bf[_0x56b5d3(0x145)][_0x56b5d3(0x13a)](_0x4910bf['unitId']),'startOffset':(_0x2a9d09=_0x111aa1==null?void 0x0:_0x111aa1[_0x56b5d3(0x124)])==null?_0x330270==null?void 0x0:_0x330270[_0x56b5d3(0x124)]:_0x2a9d09}),_0x4ad93b=J(_0x4910bf[_0x56b5d3(0x110)],_0x4910bf['unitId'],_0x4910bf[_0x56b5d3(0xed)],_0x590dfb[_0x56b5d3(0xd2)],_0x590dfb['cursorOffset']);return _0x4ad93b&&_0x590dfb[_0x56b5d3(0x141)]&&_0x4910bf['model'][_0x56b5d3(0xb0)](_0x4910bf[_0x56b5d3(0xfb)],_0x590dfb[_0x56b5d3(0x141)]),_0x4ad93b;}},H={'id':_0x50a514(0x143),'type':e[_0x50a514(0xdb)][_0x50a514(0x14c)],'handler':(_0x28ac0e,_0x2d9294)=>{const _0x3c9459=_0x50a514;if(!_0x2d9294)return!0x1;let _0x54ce1e=G(_0x28ac0e,_0x2d9294[_0x3c9459(0xfb)]);if(!_0x54ce1e)return!0x1;let _0x2caddb=p({'blockId':_0x2d9294[_0x3c9459(0xab)],'config':_0x2d9294[_0x3c9459(0xb9)],'documentData':_0x54ce1e[_0x3c9459(0xed)],'metadata':_0x54ce1e['model'][_0x3c9459(0x13a)](_0x54ce1e[_0x3c9459(0xfb)])});return _0x2caddb['nextMetadata']&&_0x54ce1e[_0x3c9459(0x145)][_0x3c9459(0xb0)](_0x54ce1e['unitId'],_0x2caddb[_0x3c9459(0x141)]),!0x0;}},U={'id':'docs-code.command.exit','type':e[_0x50a514(0xdb)]['COMMAND'],'handler':(_0x2ad56f,_0xdf3011)=>{const _0x1f1943=_0x50a514;var _0x2a1905,_0x5ae1b9;let _0x2b1b01=G(_0x2ad56f,_0xdf3011==null?void 0x0:_0xdf3011[_0x1f1943(0xfb)]);if(!_0x2b1b01)return!0x1;let _0x3a4ffd=(_0x2a1905=_0xdf3011==null?void 0x0:_0xdf3011['cursorOffset'])==null?(_0x5ae1b9=K(_0x2ad56f))==null?void 0x0:_0x5ae1b9[_0x1f1943(0x124)]:_0x2a1905;if(_0x3a4ffd==null)return!0x1;let _0x2febaf=m({'cursorOffset':_0x3a4ffd,'documentData':_0x2b1b01[_0x1f1943(0xed)]});return _0x2febaf?J(_0x2b1b01[_0x1f1943(0x110)],_0x2b1b01['unitId'],_0x2b1b01[_0x1f1943(0xed)],_0x2febaf['nextDocumentData'],_0x2febaf['cursorOffset']):!0x1;}},W={'id':_0x50a514(0x142),'type':e[_0x50a514(0xdb)][_0x50a514(0x14c)],'handler':(_0x196a77,_0x5656e2)=>{const _0x1dda7d=_0x50a514;var _0x5eae0f,_0x140243;let _0x5dee93=G(_0x196a77,_0x5656e2==null?void 0x0:_0x5656e2[_0x1dda7d(0xfb)]);if(!_0x5dee93)return!0x1;let _0x5c46e4=(_0x5eae0f=_0x5656e2==null?void 0x0:_0x5656e2[_0x1dda7d(0x126)])==null?(_0x140243=K(_0x196a77))==null?void 0x0:_0x140243['startOffset']:_0x5eae0f;if(_0x5c46e4==null)return!0x1;let _0x338d80=h({'cursorOffset':_0x5c46e4,'documentData':_0x5dee93['previousDocumentData'],'paragraphStartIndex':_0x5656e2==null?void 0x0:_0x5656e2[_0x1dda7d(0xde)]});return _0x338d80?J(_0x5dee93[_0x1dda7d(0x110)],_0x5dee93[_0x1dda7d(0xfb)],_0x5dee93[_0x1dda7d(0xed)],_0x338d80[_0x1dda7d(0xd2)],_0x338d80[_0x1dda7d(0x126)]):!0x1;}};function G(_0x47dbd6,_0x5af48f){const _0x4f2490=_0x50a514;let _0x553546=_0x47dbd6['get'](e['IUniverInstanceService']),_0x963415=_0x5af48f?_0x553546[_0x4f2490(0x11a)](_0x5af48f):_0x553546['getCurrentUnitOfType'](e['UniverInstanceType']['UNIVER_DOC']);return _0x963415?{'commandService':_0x47dbd6[_0x4f2490(0xf8)](e['ICommandService']),'model':_0x47dbd6[_0x4f2490(0xf8)](R),'previousDocumentData':_0x963415[_0x4f2490(0xd1)](),'unitId':_0x963415[_0x4f2490(0xe9)]()}:null;}function K(_0x27d5f7){const _0x31e3ea=_0x50a514;var _0x3d864f;return(_0x3d864f=_0x27d5f7['get'](t[_0x31e3ea(0x111)])['getTextRanges']())==null?void 0x0:_0x3d864f[0x0];}function _0x246b(){const _0x35056f=['CODE','previousDocumentData','function','stringify','textStyle','247945FnAmDR','dataStream','docs-code.command.consume-boundary-delete','decorate','_initResource','_resources','buildUpdateCodeActions','get','4851CEPKoB','UniverInstanceType','unitId','IConfigService','metadata','generateRandomId','paragraphs','packageName','DEFAULT_CODE_CONFIG','_injector','getBody','change$','7aFHJCs','ICommandService','javascript','PARAGRAPH','removeUnit','min','32mRPhuL','BuildTextUtils','DOCS_CODE_PLUGIN','tables','registerPluginResource','commandService','DocSelectionManagerService','documentData','string','max','forEach','setCodeConfig','getCurrentUnitOfType','docs-code.command.insert-below','endIndex','getUniverDocInstance','12198952kUOAAv','deepClone','JSONX','toStringTag','DataStreamTreeTokenType','DocsCodeModel','_change$','spaceAbove','_docsCodeModel','startOffset','asObservable','cursorOffset','type','reduce','BLOCK_START','merge','UNIVER_DOC','Disposable','symbol','DocsCodeConsumeBoundaryDeleteCommand','delete','complete','DocumentBlockRangeType','dispose','indexOf','map','sectionBreaks','find','setConfig','object','docs-code.command.insert','serialize','consumeInsertRange','763190OwPMhI','_configService','IUniverInstanceService','paragraphStyle','endsWith','nextMetadata','docs-code.command.cancel-empty-paragraph','docs-code.command.update','2154QtNKaG','model','6298578iuYwBZ','iterator','getCodeConfig','DocsCodeExitCommand','DependentOn','defineProperty','COMMAND','findCodeRangeAtOffset','sort','blockId','BLOCK_END','_commandService','body','entries','deserialize','DocsCodeUpdateCommand','getOwnPropertyDescriptor','every','_config','parse','UniverLicensePlugin','join','docs-code.config','config','filter','add','compose','endTokenOffset','DocsCodeCancelEmptyParagraphCommand','slice','blockType','direction','removeCode','normalizeDocsCodeConfig','_setResource','spaceBelow','textRuns','startIndex','UniverDocsCodePlugin','DocsCodeInsertBelowCommand','customRanges','customBlocks','createParagraphId','codes','registerCommand','toPrimitive','Module','getSnapshot','nextDocumentData','customDecorations','length','next','replaceOp','some','@univerjs-pro/docs-code','left','right','CommandType','Tools','_resourceManagerService','paragraphStartIndex','46801450lpfmgV','set','paragraph','getParagraphsInRange','disposeWithMe','syncExecuteCommand','endOffset','1518654epUfAA','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','SECTION_BREAK','getUnitId','diffValue','blockRanges'];_0x246b=function(){return _0x35056f;};return _0x246b();}function he(_0x1f8775){const _0x56f258=_0x50a514;var _0x4cca50;let _0x53580d=(_0x4cca50=_0x1f8775[_0x56f258(0xf8)](e[_0x56f258(0x13e)])[_0x56f258(0x117)](e[_0x56f258(0xfa)][_0x56f258(0x12b)]))==null?void 0x0:_0x4cca50[_0x56f258(0xe9)]();try{return _0x1f8775[_0x56f258(0xf8)](t['DocContentInsertService'])[_0x56f258(0x13b)](_0x53580d);}catch{return null;}}function ge(_0x3cdb0a){const _0xa98a45=_0x50a514;var _0x2e22a8,_0x560af6,_0x48cb96;let _0x3c3023=K(_0x3cdb0a);if(!_0x3c3023)return null;let _0x571452=_0x3cdb0a[_0xa98a45(0xf8)](e['IUniverInstanceService'])[_0xa98a45(0x117)](e[_0xa98a45(0xfa)][_0xa98a45(0x12b)]),_0x1aa001=_0x571452==null?void 0x0:_0x571452[_0xa98a45(0x103)]();return _0x1aa001?(_0x2e22a8=e[_0xa98a45(0x10c)]['range'][_0xa98a45(0xe2)](_0x3c3023,(_0x560af6=_0x1aa001[_0xa98a45(0xff)])==null?[]:_0x560af6,(_0x48cb96=_0x1aa001[_0xa98a45(0xf2)])==null?'':_0x48cb96)[0x0])==null?null:_0x2e22a8:null;}function _e(_0x32df3d,_0x1aaa80){const _0xe73663=_0x50a514;var _0xc22cd9,_0x7624b0,_0x53c63e,_0x5a7f86,_0x2106b7,_0x2a30a0,_0x38684b,_0x10af74,_0x50c912,_0x385a9e,_0x3c2968,_0x1a75b8,_0x514f04,_0xf26b24,_0x238e00,_0x524997,_0xed5cf7,_0x389915;let _0x29f89e=e[_0xe73663(0x11d)]['getInstance']();return[q(_0x29f89e,[_0xe73663(0xae),_0xe73663(0xf2)],(_0xc22cd9=_0x32df3d[_0xe73663(0xae)])==null?void 0x0:_0xc22cd9[_0xe73663(0xf2)],(_0x7624b0=_0x1aaa80[_0xe73663(0xae)])==null?void 0x0:_0x7624b0['dataStream']),q(_0x29f89e,[_0xe73663(0xae),_0xe73663(0xff)],(_0x53c63e=_0x32df3d[_0xe73663(0xae)])==null?void 0x0:_0x53c63e[_0xe73663(0xff)],(_0x5a7f86=_0x1aaa80[_0xe73663(0xae)])==null?void 0x0:_0x5a7f86[_0xe73663(0xff)]),q(_0x29f89e,[_0xe73663(0xae),_0xe73663(0x135)],(_0x2106b7=_0x32df3d[_0xe73663(0xae)])==null?void 0x0:_0x2106b7[_0xe73663(0x135)],(_0x2a30a0=_0x1aaa80['body'])==null?void 0x0:_0x2a30a0[_0xe73663(0x135)]),q(_0x29f89e,[_0xe73663(0xae),_0xe73663(0xc6)],(_0x38684b=_0x32df3d[_0xe73663(0xae)])==null?void 0x0:_0x38684b[_0xe73663(0xc6)],(_0x10af74=_0x1aaa80[_0xe73663(0xae)])==null?void 0x0:_0x10af74[_0xe73663(0xc6)]),q(_0x29f89e,[_0xe73663(0xae),'customBlocks'],(_0x50c912=_0x32df3d['body'])==null?void 0x0:_0x50c912['customBlocks'],(_0x385a9e=_0x1aaa80[_0xe73663(0xae)])==null?void 0x0:_0x385a9e[_0xe73663(0xcb)]),q(_0x29f89e,[_0xe73663(0xae),_0xe73663(0xca)],(_0x3c2968=_0x32df3d[_0xe73663(0xae)])==null?void 0x0:_0x3c2968[_0xe73663(0xca)],(_0x1a75b8=_0x1aaa80[_0xe73663(0xae)])==null?void 0x0:_0x1a75b8[_0xe73663(0xca)]),q(_0x29f89e,['body',_0xe73663(0xd3)],(_0x514f04=_0x32df3d[_0xe73663(0xae)])==null?void 0x0:_0x514f04[_0xe73663(0xd3)],(_0xf26b24=_0x1aaa80[_0xe73663(0xae)])==null?void 0x0:_0xf26b24['customDecorations']),q(_0x29f89e,[_0xe73663(0xae),'tables'],(_0x238e00=_0x32df3d[_0xe73663(0xae)])==null?void 0x0:_0x238e00['tables'],(_0x524997=_0x1aaa80['body'])==null?void 0x0:_0x524997['tables']),q(_0x29f89e,['body',_0xe73663(0xeb)],(_0xed5cf7=_0x32df3d['body'])==null?void 0x0:_0xed5cf7['blockRanges'],(_0x389915=_0x1aaa80[_0xe73663(0xae)])==null?void 0x0:_0x389915[_0xe73663(0xeb)])][_0xe73663(0xba)](Boolean)[_0xe73663(0x128)]((_0x24c184,_0x1b4861)=>e['JSONX'][_0xe73663(0xbc)](_0x24c184,_0x1b4861),null);}function q(_0x489f77,_0x49c7ee,_0x109732,_0x2f81b6){const _0x1fc75d=_0x50a514;return e[_0x1fc75d(0xdc)][_0x1fc75d(0xea)](_0x109732,_0x2f81b6)?null:_0x489f77[_0x1fc75d(0xd6)](_0x49c7ee,_0x109732,_0x2f81b6);}function J(_0x2ed597,_0x239f06,_0x41814d,_0x48a032,_0x1cc144){const _0x5034e6=_0x50a514;let _0x12a4e5=_e(_0x41814d,_0x48a032);return _0x12a4e5?!!_0x2ed597[_0x5034e6(0xe4)](t['RichTextEditingMutation']['id'],{'unitId':_0x239f06,'actions':_0x12a4e5,'textRanges':[{'startOffset':_0x1cc144,'endOffset':_0x1cc144,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const Y='DOC_CODE_PLUGIN';var ve=_0x50a514(0xd8),ye='1.0.0-insiders.20260701-0ef51b0';const X={};function Z(_0x443e6e,_0x2be482){return function(_0x4375f6,_0x384130){_0x2be482(_0x4375f6,_0x384130,_0x443e6e);};}function be(_0x497bc5,_0x341909,_0x352e4d,_0x4dced9){const _0x3cf81b=_0x50a514;var _0x5b89c3=arguments[_0x3cf81b(0xd4)],_0x4184b7=_0x5b89c3<0x3?_0x341909:_0x4dced9===null?_0x4dced9=Object[_0x3cf81b(0xb2)](_0x341909,_0x352e4d):_0x4dced9,_0x44f15e;if(typeof Reflect=='object'&&typeof Reflect[_0x3cf81b(0xf4)]==_0x3cf81b(0xee))_0x4184b7=Reflect['decorate'](_0x497bc5,_0x341909,_0x352e4d,_0x4dced9);else{for(var _0xdb5bd8=_0x497bc5[_0x3cf81b(0xd4)]-0x1;_0xdb5bd8>=0x0;_0xdb5bd8--)(_0x44f15e=_0x497bc5[_0xdb5bd8])&&(_0x4184b7=(_0x5b89c3<0x3?_0x44f15e(_0x4184b7):_0x5b89c3>0x3?_0x44f15e(_0x341909,_0x352e4d,_0x4184b7):_0x44f15e(_0x341909,_0x352e4d))||_0x4184b7);}return _0x5b89c3>0x3&&_0x4184b7&&Object[_0x3cf81b(0x14b)](_0x341909,_0x352e4d,_0x4184b7),_0x4184b7;}let Q=class extends e[_0x50a514(0x12c)]{constructor(_0x568a32,_0x1561ff){const _0x16c07a=_0x50a514;super(),this[_0x16c07a(0xdd)]=_0x568a32,this[_0x16c07a(0x123)]=_0x1561ff,this['_initResource']();}[_0x50a514(0xf5)](){const _0x19ee50=_0x50a514;this[_0x19ee50(0xe3)](this['_resourceManagerService'][_0x19ee50(0x10f)]({'pluginName':Y,'businesses':[e['UniverInstanceType']['UNIVER_DOC']],'toJson':_0x369680=>JSON[_0x19ee50(0xef)](this[_0x19ee50(0x123)][_0x19ee50(0x13a)](_0x369680)),'parseJson':_0x10976f=>o(JSON[_0x19ee50(0xb5)](_0x10976f)),'onLoad':(_0x4b118a,_0x368e43)=>this[_0x19ee50(0x123)][_0x19ee50(0xb0)](_0x4b118a,_0x368e43),'onUnLoad':_0x5508ae=>this[_0x19ee50(0x123)][_0x19ee50(0x109)](_0x5508ae)}));}};Q=be([Z(0x0,e['IResourceManagerService']),Z(0x1,(0x0,e['Inject'])(R))],Q);let $=class extends e['Plugin']{constructor(_0x2ddd84=X,_0x5d5732,_0x54228f,_0x365756){const _0x1789f4=_0x50a514;super(),this[_0x1789f4(0xb4)]=_0x2ddd84,this[_0x1789f4(0x102)]=_0x5d5732,this[_0x1789f4(0xad)]=_0x54228f,this['_configService']=_0x365756;let {..._0x45aacc}=(0x0,e[_0x1789f4(0x12a)])({},X,this[_0x1789f4(0xb4)]);this[_0x1789f4(0x13d)][_0x1789f4(0x137)](_0x1789f4(0xb8),_0x45aacc);}['onStarting'](){const _0x29f4d1=_0x50a514;this['_injector'][_0x29f4d1(0xbb)]([R]),this[_0x29f4d1(0x102)]['add']([Q]),this[_0x29f4d1(0x102)][_0x29f4d1(0xf8)](R),this['_injector']['get'](Q),[V,z,H,U,W,B][_0x29f4d1(0x115)](_0x3aed29=>this[_0x29f4d1(0xe3)](this[_0x29f4d1(0xad)][_0x29f4d1(0xce)](_0x3aed29)));}};L($,'pluginName',Y),L($,_0x50a514(0x100),ve),L($,'version',ye),L($,_0x50a514(0x127),e[_0x50a514(0xfa)][_0x50a514(0x12b)]),$=be([(0x0,e[_0x50a514(0x14a)])(r[_0x50a514(0xb6)],t['UniverDocsPlugin']),Z(0x1,(0x0,e['Inject'])(e['Injector'])),Z(0x2,e[_0x50a514(0x106)]),Z(0x3,e[_0x50a514(0xfc)])],$),exports[_0x50a514(0x101)]=i,exports[_0x50a514(0x10d)]=Y,exports[_0x50a514(0xbe)]=W,exports[_0x50a514(0x12e)]=B,exports[_0x50a514(0x149)]=U,exports[_0x50a514(0xc9)]=z,exports['DocsCodeInsertCommand']=V,exports[_0x50a514(0x120)]=R,exports[_0x50a514(0xb1)]=H,Object[_0x50a514(0x14b)](exports,_0x50a514(0xc8),{'enumerable':!0x0,'get':function(){return $;}}),exports['buildCancelEmptyCodeParagraphActions']=h,exports['buildExitCodeActions']=m,exports['buildInsertCodeActions']=u,exports[_0x50a514(0xf7)]=p,exports[_0x50a514(0x14d)]=_,exports['isCodeBoundaryDelete']=v,exports[_0x50a514(0xc3)]=a;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x2a3e37=_0x40ef;function _0x4986(){var _0x4269a1=['replace','blockType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','createInstance','iterator','220782ZGAGax','getCodeConfig','text','defineProperty','findCodes','getType','getCodeAt','blockId','endIndex','some','_blockId','1686050gPBLnQ','dataStream','findCodeByText','config','decorate','12huLucc','join','exit','save','map','28HChzLj','7143983enHiCu','includes','getRange','getId','blockRanges','find','PARAGRAPH','_injector','CODE','updateConfig','get','22688AswxZE','getCodes','paragraph','_unitId','object','99EYaFQX','extend','describe','_getDocumentData','_getBlockRanges','3588816McDJLj','body','insertCode','BLOCK_END','function','_document','1318aXNoEF','string','from','syncExecuteCommand','getConfig','_createFDocumentCode','836110PcpUOH','startIndex','symbol','724YUgitR','_getBlockRange','call','getText','toPrimitive','length','exitCode','filter'];_0x4986=function(){return _0x4269a1;};return _0x4986();}(function(_0x33682e,_0x3af135){var _0x99c594=_0x40ef,_0xe289fa=_0x33682e();while(!![]){try{var _0x1bc629=-parseInt(_0x99c594(0x1f4))/0x1*(parseInt(_0x99c594(0x1b6))/0x2)+-parseInt(_0x99c594(0x1c3))/0x3*(-parseInt(_0x99c594(0x1d8))/0x4)+parseInt(_0x99c594(0x1b3))/0x5*(parseInt(_0x99c594(0x1d3))/0x6)+-parseInt(_0x99c594(0x1ee))/0x7+parseInt(_0x99c594(0x1e4))/0x8*(-parseInt(_0x99c594(0x1e9))/0x9)+-parseInt(_0x99c594(0x1ce))/0xa+parseInt(_0x99c594(0x1d9))/0xb;if(_0x1bc629===_0x3af135)break;else _0xe289fa['push'](_0xe289fa['shift']());}catch(_0x36361d){_0xe289fa['push'](_0xe289fa['shift']());}}}(_0x4986,0x4b8ca));import{DocsCodeCancelEmptyParagraphCommand as _0x2b2a05,DocsCodeExitCommand as _0x2fb0d3,DocsCodeInsertCommand as _0xd979f7,DocsCodeModel as _0x1d1c72,DocsCodeUpdateCommand as _0x2aaa6a,normalizeDocsCodeConfig as _0x1741bb}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x282b86,DocumentBlockRangeType as _0x46c20e,ICommandService as _0x31c5e7,Inject as _0x2bc39d,Injector as _0xf2643,generateRandomId as _0x8f6a75}from'@univerjs/core';import{FDocument as _0x226821}from'@univerjs/docs/facade';function p(_0x27a3f0){'@babel/helpers - typeof';var _0x781b30=_0x40ef;return p=typeof Symbol=='function'&&typeof Symbol[_0x781b30(0x1c2)]=='symbol'?function(_0x51645b){return typeof _0x51645b;}:function(_0x49f6ec){var _0x581bd6=_0x781b30;return _0x49f6ec&&typeof Symbol==_0x581bd6(0x1f2)&&_0x49f6ec['constructor']===Symbol&&_0x49f6ec!==Symbol['prototype']?_0x581bd6(0x1b5):typeof _0x49f6ec;},p(_0x27a3f0);}function m(_0x3ebd9e,_0xb27e98){var _0x276a91=_0x40ef;if(p(_0x3ebd9e)!=_0x276a91(0x1e8)||!_0x3ebd9e)return _0x3ebd9e;var _0x58139f=_0x3ebd9e[Symbol[_0x276a91(0x1ba)]];if(_0x58139f!==void 0x0){var _0x50ed38=_0x58139f[_0x276a91(0x1b8)](_0x3ebd9e,_0xb27e98||'default');if(p(_0x50ed38)!=_0x276a91(0x1e8))return _0x50ed38;throw TypeError(_0x276a91(0x1c0));}return(_0xb27e98===_0x276a91(0x1ae)?String:Number)(_0x3ebd9e);}function _0x40ef(_0x19f70c,_0x536f65){_0x19f70c=_0x19f70c-0x1ae;var _0x498668=_0x4986();var _0x40ef54=_0x498668[_0x19f70c];return _0x40ef54;}function h(_0x488a7b){var _0x4babb8=_0x40ef,_0x189800=m(_0x488a7b,_0x4babb8(0x1ae));return p(_0x189800)=='symbol'?_0x189800:_0x189800+'';}function g(_0x3982ed,_0x47c043,_0x1d4f17){return(_0x47c043=h(_0x47c043))in _0x3982ed?Object['defineProperty'](_0x3982ed,_0x47c043,{'value':_0x1d4f17,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3982ed[_0x47c043]=_0x1d4f17,_0x3982ed;}function _(_0x3456c2,_0x5884cc){return function(_0x549cb8,_0x3aeee4){_0x5884cc(_0x549cb8,_0x3aeee4,_0x3456c2);};}function v(_0x4d7c19,_0x3c0d54,_0x5d68ad,_0x4a41ae){var _0x1d8472=_0x40ef,_0x587628=arguments[_0x1d8472(0x1bb)],_0x30890b=_0x587628<0x3?_0x3c0d54:_0x4a41ae===null?_0x4a41ae=Object['getOwnPropertyDescriptor'](_0x3c0d54,_0x5d68ad):_0x4a41ae,_0x1fadc2;if(typeof Reflect==_0x1d8472(0x1e8)&&typeof Reflect['decorate']=='function')_0x30890b=Reflect[_0x1d8472(0x1d2)](_0x4d7c19,_0x3c0d54,_0x5d68ad,_0x4a41ae);else{for(var _0x366775=_0x4d7c19[_0x1d8472(0x1bb)]-0x1;_0x366775>=0x0;_0x366775--)(_0x1fadc2=_0x4d7c19[_0x366775])&&(_0x30890b=(_0x587628<0x3?_0x1fadc2(_0x30890b):_0x587628>0x3?_0x1fadc2(_0x3c0d54,_0x5d68ad,_0x30890b):_0x1fadc2(_0x3c0d54,_0x5d68ad))||_0x30890b);}return _0x587628>0x3&&_0x30890b&&Object[_0x1d8472(0x1c6)](_0x3c0d54,_0x5d68ad,_0x30890b),_0x30890b;}let y=class{constructor(_0x1a17cb,_0x47219c,_0x4e4316){var _0x4d5f9b=_0x40ef;this[_0x4d5f9b(0x1f3)]=_0x1a17cb,this[_0x4d5f9b(0x1cd)]=_0x47219c,this[_0x4d5f9b(0x1e0)]=_0x4e4316,g(this,_0x4d5f9b(0x1e7),void 0x0),this[_0x4d5f9b(0x1e7)]=this[_0x4d5f9b(0x1f3)][_0x4d5f9b(0x1dc)]();}['getId'](){var _0x24c567=_0x40ef;return this[_0x24c567(0x1cd)];}[_0x2a3e37(0x1db)](){var _0x564173=_0x2a3e37;let _0x9e1e80=this['_getBlockRange']();return _0x9e1e80?{'blockId':_0x9e1e80['blockId'],'endIndex':_0x9e1e80[_0x564173(0x1cb)],'startIndex':_0x9e1e80[_0x564173(0x1b4)]}:null;}[_0x2a3e37(0x1b9)](){var _0x568309=_0x2a3e37,_0x4149fc;let _0x4f2d1c=this[_0x568309(0x1b7)](),_0x1308fa=(_0x4149fc=this[_0x568309(0x1ec)]()[_0x568309(0x1ef)])==null?void 0x0:_0x4149fc[_0x568309(0x1cf)];return!_0x4f2d1c||!_0x1308fa?'':b(_0x1308fa['slice'](_0x4f2d1c['startIndex']+0x1,_0x4f2d1c['endIndex']));}[_0x2a3e37(0x1eb)](){var _0x388bdf=_0x2a3e37;let _0x413bf2=this['getRange']();return _0x413bf2?{..._0x413bf2,'config':this['getConfig'](),'text':this[_0x388bdf(0x1b9)](),'type':_0x46c20e['CODE']}:null;}[_0x2a3e37(0x1b1)](){var _0x24cdde=_0x2a3e37;return _0x1741bb(this[_0x24cdde(0x1e0)][_0x24cdde(0x1e3)](_0x1d1c72)[_0x24cdde(0x1c4)](this[_0x24cdde(0x1e7)],this[_0x24cdde(0x1cd)]));}[_0x2a3e37(0x1e2)](_0x14689d){var _0x502ff5=_0x2a3e37;return this['_injector'][_0x502ff5(0x1e3)](_0x31c5e7)[_0x502ff5(0x1b0)](_0x2aaa6a['id'],{'blockId':this['_blockId'],'config':_0x14689d[_0x502ff5(0x1d1)],'unitId':this[_0x502ff5(0x1e7)]});}[_0x2a3e37(0x1d5)](_0x97dace){var _0xf89bd0=_0x2a3e37;return this[_0xf89bd0(0x1e0)][_0xf89bd0(0x1e3)](_0x31c5e7)['syncExecuteCommand'](_0x2fb0d3['id'],{'cursorOffset':_0x97dace,'unitId':this[_0xf89bd0(0x1e7)]});}['cancelEmptyParagraph'](_0x5945e2={}){var _0x34d6ee=_0x2a3e37;return this['_injector']['get'](_0x31c5e7)[_0x34d6ee(0x1b0)](_0x2b2a05['id'],{..._0x5945e2,'unitId':this[_0x34d6ee(0x1e7)]});}[_0x2a3e37(0x1ec)](){var _0x13b7d3=_0x2a3e37;return this['_document'][_0x13b7d3(0x1d6)]();}[_0x2a3e37(0x1b7)](){var _0x536a13=_0x2a3e37,_0x5aaf80;let _0x4025cf=(_0x5aaf80=this[_0x536a13(0x1ec)]()[_0x536a13(0x1ef)])==null||(_0x5aaf80=_0x5aaf80[_0x536a13(0x1dd)])==null?void 0x0:_0x5aaf80[_0x536a13(0x1de)](_0x3d05d4=>_0x3d05d4[_0x536a13(0x1ca)]===this[_0x536a13(0x1cd)]&&_0x3d05d4['blockType']===_0x46c20e[_0x536a13(0x1e1)]);return _0x4025cf==null?null:_0x4025cf;}};y=v([_(0x2,_0x2bc39d(_0xf2643))],y);function b(_0x2d856c){var _0x40d7e9=_0x2a3e37;return Array[_0x40d7e9(0x1af)](_0x2d856c)[_0x40d7e9(0x1d7)](_0x76dbc1=>_0x76dbc1===_0x282b86[_0x40d7e9(0x1df)]?'\x0a':_0x76dbc1)[_0x40d7e9(0x1bd)](_0x1ceebb=>_0x1ceebb!==_0x282b86['BLOCK_START']&&_0x1ceebb!==_0x282b86[_0x40d7e9(0x1f1)]&&_0x1ceebb!==_0x282b86['SECTION_BREAK'])[_0x40d7e9(0x1d4)]('')[_0x40d7e9(0x1be)](/\n$/,'');}var x=class extends _0x226821{[_0x2a3e37(0x1e5)](){var _0x13d6e2=_0x2a3e37;return this[_0x13d6e2(0x1ed)]()[_0x13d6e2(0x1bd)](_0x3c1c11=>_0x3c1c11[_0x13d6e2(0x1bf)]===_0x46c20e[_0x13d6e2(0x1e1)])['map'](_0x133c12=>this[_0x13d6e2(0x1b2)](_0x133c12['blockId']));}['getCode'](_0x459f67){var _0x2bebc4=_0x2a3e37;return this[_0x2bebc4(0x1ed)]()[_0x2bebc4(0x1cc)](_0x360065=>_0x360065[_0x2bebc4(0x1ca)]===_0x459f67&&_0x360065[_0x2bebc4(0x1bf)]===_0x46c20e[_0x2bebc4(0x1e1)])?this[_0x2bebc4(0x1b2)](_0x459f67):null;}[_0x2a3e37(0x1c9)](_0x303e3f){var _0x2f6859=_0x2a3e37;let _0x564465=this[_0x2f6859(0x1ed)]()[_0x2f6859(0x1de)](_0x197642=>_0x197642[_0x2f6859(0x1bf)]===_0x46c20e[_0x2f6859(0x1e1)]&&_0x197642[_0x2f6859(0x1b4)]<=_0x303e3f&&_0x303e3f<=_0x197642[_0x2f6859(0x1cb)]);return _0x564465?this[_0x2f6859(0x1b2)](_0x564465[_0x2f6859(0x1ca)]):null;}[_0x2a3e37(0x1d0)](_0x357149){var _0x523e91=_0x2a3e37,_0x5b2809;return(_0x5b2809=this[_0x523e91(0x1c7)](_0x357149)[0x0])==null?null:_0x5b2809;}[_0x2a3e37(0x1c7)](_0x549cc3){var _0x177df3=_0x2a3e37;let _0x5cf560=typeof _0x549cc3=='string'?{'text':_0x549cc3}:_0x549cc3;return this[_0x177df3(0x1e5)]()[_0x177df3(0x1bd)](_0x3cfbd4=>!(_0x5cf560['blockId']&&_0x3cfbd4[_0x177df3(0x1dc)]()!==_0x5cf560[_0x177df3(0x1ca)]||_0x5cf560['text']&&!_0x3cfbd4[_0x177df3(0x1b9)]()[_0x177df3(0x1da)](_0x5cf560[_0x177df3(0x1c5)])));}[_0x2a3e37(0x1f0)](_0x53f888={},_0x14996e={}){var _0x319908=_0x2a3e37,_0x3aa714;let _0x293988=this['_injector'][_0x319908(0x1e3)](_0x31c5e7),_0x29fa05=S(_0x53f888)?{..._0x14996e,...C(_0x53f888)}:_0x53f888,_0x4d8400=(_0x3aa714=_0x29fa05[_0x319908(0x1ca)])==null?_0x8f6a75(0x6):_0x3aa714;return _0x293988[_0x319908(0x1b0)](_0xd979f7['id'],{..._0x29fa05,'blockId':_0x4d8400,'unitId':this[_0x319908(0x1dc)]()})?this[_0x319908(0x1b2)](_0x4d8400):null;}[_0x2a3e37(0x1bc)](_0x1c4f05){var _0x36a7c6=_0x2a3e37;return this['_injector'][_0x36a7c6(0x1e3)](_0x31c5e7)[_0x36a7c6(0x1b0)](_0x2fb0d3['id'],{'cursorOffset':_0x1c4f05,'unitId':this['getId']()});}['cancelEmptyCodeParagraph'](_0x1c6775={}){var _0x57e09a=_0x2a3e37;return this['_injector'][_0x57e09a(0x1e3)](_0x31c5e7)[_0x57e09a(0x1b0)](_0x2b2a05['id'],{..._0x1c6775,'unitId':this[_0x57e09a(0x1dc)]()});}['_getBlockRanges'](){var _0x270c52=_0x2a3e37,_0xa7a39c,_0x49e420;return(_0xa7a39c=(_0x49e420=this[_0x270c52(0x1d6)]()[_0x270c52(0x1ef)])==null?void 0x0:_0x49e420[_0x270c52(0x1dd)])==null?[]:_0xa7a39c;}['_createFDocumentCode'](_0x33c9af){var _0x3c25c2=_0x2a3e37;return this[_0x3c25c2(0x1e0)][_0x3c25c2(0x1c1)](y,this,_0x33c9af);}};function S(_0x4cd42){var _0x5c9d6c=_0x2a3e37;return typeof _0x4cd42==_0x5c9d6c(0x1e8)&&!!_0x4cd42&&typeof _0x4cd42['getKey']==_0x5c9d6c(0x1f2)&&typeof _0x4cd42[_0x5c9d6c(0x1db)]==_0x5c9d6c(0x1f2)&&typeof _0x4cd42[_0x5c9d6c(0x1c8)]==_0x5c9d6c(0x1f2)&&_0x4cd42[_0x5c9d6c(0x1c8)]()===_0x5c9d6c(0x1e6);}function C(_0x3ea013){return _0x3ea013['getRange']();}_0x226821[_0x2a3e37(0x1ea)](x);export{y as FDocumentCode};
1
+ var _0x265ff2=_0x1b87;(function(_0x287cc4,_0x433309){var _0x2fbc11=_0x1b87,_0x4ec689=_0x287cc4();while(!![]){try{var _0x44823c=-parseInt(_0x2fbc11(0xd9))/0x1*(-parseInt(_0x2fbc11(0xf0))/0x2)+-parseInt(_0x2fbc11(0xf8))/0x3+-parseInt(_0x2fbc11(0xe4))/0x4+parseInt(_0x2fbc11(0xcf))/0x5+-parseInt(_0x2fbc11(0x103))/0x6*(parseInt(_0x2fbc11(0xfa))/0x7)+parseInt(_0x2fbc11(0xfc))/0x8*(parseInt(_0x2fbc11(0xd1))/0x9)+parseInt(_0x2fbc11(0xe6))/0xa*(-parseInt(_0x2fbc11(0xde))/0xb);if(_0x44823c===_0x433309)break;else _0x4ec689['push'](_0x4ec689['shift']());}catch(_0x1008fc){_0x4ec689['push'](_0x4ec689['shift']());}}}(_0x1864,0xa1eaa));import{DocsCodeCancelEmptyParagraphCommand as _0x345880,DocsCodeExitCommand as _0x1aea34,DocsCodeInsertCommand as _0x5c1c8b,DocsCodeModel as _0x4c99b3,DocsCodeUpdateCommand as _0x4c43bf,normalizeDocsCodeConfig as _0x49f66d}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x4d6957,DocumentBlockRangeType as _0x53badc,ICommandService as _0x4437cc,Inject as _0x560d9f,Injector as _0x2c366a,generateRandomId as _0x2730ac}from'@univerjs/core';import{FDocument as _0x2080cf}from'@univerjs/docs/facade';function p(_0x433ffb){'@babel/helpers - typeof';var _0x3aa06c=_0x1b87;return p=typeof Symbol==_0x3aa06c(0xec)&&typeof Symbol['iterator']==_0x3aa06c(0xdd)?function(_0x588fc7){return typeof _0x588fc7;}:function(_0x3c3385){var _0x345ce3=_0x3aa06c;return _0x3c3385&&typeof Symbol==_0x345ce3(0xec)&&_0x3c3385[_0x345ce3(0xe3)]===Symbol&&_0x3c3385!==Symbol[_0x345ce3(0x10d)]?_0x345ce3(0xdd):typeof _0x3c3385;},p(_0x433ffb);}function m(_0x19ef80,_0x235fa1){var _0x25b068=_0x1b87;if(p(_0x19ef80)!=_0x25b068(0xf4)||!_0x19ef80)return _0x19ef80;var _0x27a395=_0x19ef80[Symbol[_0x25b068(0xfe)]];if(_0x27a395!==void 0x0){var _0x276cb8=_0x27a395['call'](_0x19ef80,_0x235fa1||_0x25b068(0xeb));if(p(_0x276cb8)!='object')return _0x276cb8;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x235fa1===_0x25b068(0xf1)?String:Number)(_0x19ef80);}function h(_0x5863bc){var _0x213622=_0x1b87,_0x5f0162=m(_0x5863bc,_0x213622(0xf1));return p(_0x5f0162)=='symbol'?_0x5f0162:_0x5f0162+'';}function g(_0x3259cd,_0x4b14ea,_0x19edc3){var _0x24cbef=_0x1b87;return(_0x4b14ea=h(_0x4b14ea))in _0x3259cd?Object[_0x24cbef(0xc9)](_0x3259cd,_0x4b14ea,{'value':_0x19edc3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3259cd[_0x4b14ea]=_0x19edc3,_0x3259cd;}function _(_0x3e0ae8,_0x5e09ce){return function(_0x1b7516,_0x299fce){_0x5e09ce(_0x1b7516,_0x299fce,_0x3e0ae8);};}function v(_0xb05074,_0x2d36dd,_0x10cb41,_0xf9150f){var _0x8d1af=_0x1b87,_0x6318ab=arguments[_0x8d1af(0xfb)],_0x1e568c=_0x6318ab<0x3?_0x2d36dd:_0xf9150f===null?_0xf9150f=Object[_0x8d1af(0xf3)](_0x2d36dd,_0x10cb41):_0xf9150f,_0x56c4d0;if(typeof Reflect==_0x8d1af(0xf4)&&typeof Reflect[_0x8d1af(0x10b)]==_0x8d1af(0xec))_0x1e568c=Reflect['decorate'](_0xb05074,_0x2d36dd,_0x10cb41,_0xf9150f);else{for(var _0x21f442=_0xb05074[_0x8d1af(0xfb)]-0x1;_0x21f442>=0x0;_0x21f442--)(_0x56c4d0=_0xb05074[_0x21f442])&&(_0x1e568c=(_0x6318ab<0x3?_0x56c4d0(_0x1e568c):_0x6318ab>0x3?_0x56c4d0(_0x2d36dd,_0x10cb41,_0x1e568c):_0x56c4d0(_0x2d36dd,_0x10cb41))||_0x1e568c);}return _0x6318ab>0x3&&_0x1e568c&&Object[_0x8d1af(0xc9)](_0x2d36dd,_0x10cb41,_0x1e568c),_0x1e568c;}function _0x1864(){var _0x2194a7=['string','getCodeConfig','getOwnPropertyDescriptor','object','getId','includes','config','2656935ytidhf','blockType','7dxSRpd','length','161576xGzxpa','blockRanges','toPrimitive','find','paragraph','get','_injector','908706ViPOgX','slice','map','save','getConfig','cancelEmptyCodeParagraph','getCode','dataStream','decorate','text','prototype','getRange','defineProperty','cancelEmptyParagraph','from','describe','_getDocumentData','findCodes','5035945TzTvRG','_getBlockRanges','576LDOgiS','_createFDocumentCode','syncExecuteCommand','body','insertCode','getText','BLOCK_END','getKey','1jSeFaA','_unitId','filter','createInstance','symbol','11lnPepN','_getBlockRange','join','startIndex','BLOCK_START','constructor','3655572ASirWO','_document','7926110wDufUp','exitCode','endIndex','getCodes','blockId','default','function','_blockId','replace','CODE','2214026ZVvfbc'];_0x1864=function(){return _0x2194a7;};return _0x1864();}function _0x1b87(_0x429a25,_0x199353){_0x429a25=_0x429a25-0xc8;var _0x18648d=_0x1864();var _0x1b87f5=_0x18648d[_0x429a25];return _0x1b87f5;}let y=class{constructor(_0x386029,_0x1ef2c2,_0x3b4144){var _0x37cb6b=_0x1b87;this['_document']=_0x386029,this[_0x37cb6b(0xed)]=_0x1ef2c2,this[_0x37cb6b(0x102)]=_0x3b4144,g(this,_0x37cb6b(0xda),void 0x0),this['_unitId']=this['_document'][_0x37cb6b(0xf5)]();}[_0x265ff2(0xf5)](){var _0x2e3626=_0x265ff2;return this[_0x2e3626(0xed)];}['getRange'](){var _0x370c8e=_0x265ff2;let _0x5ec735=this['_getBlockRange']();return _0x5ec735?{'blockId':_0x5ec735[_0x370c8e(0xea)],'endIndex':_0x5ec735[_0x370c8e(0xe8)],'startIndex':_0x5ec735[_0x370c8e(0xe1)]}:null;}['getText'](){var _0x31f900=_0x265ff2,_0x2a8703;let _0x305c5b=this[_0x31f900(0xdf)](),_0xe3ff5b=(_0x2a8703=this[_0x31f900(0xcd)]()[_0x31f900(0xd4)])==null?void 0x0:_0x2a8703[_0x31f900(0x10a)];return!_0x305c5b||!_0xe3ff5b?'':b(_0xe3ff5b[_0x31f900(0x104)](_0x305c5b[_0x31f900(0xe1)]+0x1,_0x305c5b[_0x31f900(0xe8)]));}[_0x265ff2(0xcc)](){var _0x4b6034=_0x265ff2;let _0x5971cf=this[_0x4b6034(0xc8)]();return _0x5971cf?{..._0x5971cf,'config':this['getConfig'](),'text':this[_0x4b6034(0xd6)](),'type':_0x53badc[_0x4b6034(0xef)]}:null;}[_0x265ff2(0x107)](){var _0xf81e1f=_0x265ff2;return _0x49f66d(this[_0xf81e1f(0x102)]['get'](_0x4c99b3)[_0xf81e1f(0xf2)](this[_0xf81e1f(0xda)],this[_0xf81e1f(0xed)]));}['updateConfig'](_0x42b96f){var _0x332006=_0x265ff2;return this[_0x332006(0x102)][_0x332006(0x101)](_0x4437cc)[_0x332006(0xd3)](_0x4c43bf['id'],{'blockId':this['_blockId'],'config':_0x42b96f[_0x332006(0xf7)],'unitId':this[_0x332006(0xda)]});}['exit'](_0x2c1316){var _0x4579a0=_0x265ff2;return this[_0x4579a0(0x102)]['get'](_0x4437cc)[_0x4579a0(0xd3)](_0x1aea34['id'],{'cursorOffset':_0x2c1316,'unitId':this['_unitId']});}[_0x265ff2(0xca)](_0x253991={}){var _0x4f21ad=_0x265ff2;return this[_0x4f21ad(0x102)][_0x4f21ad(0x101)](_0x4437cc)[_0x4f21ad(0xd3)](_0x345880['id'],{..._0x253991,'unitId':this[_0x4f21ad(0xda)]});}[_0x265ff2(0xcd)](){var _0xfcaa6f=_0x265ff2;return this[_0xfcaa6f(0xe5)][_0xfcaa6f(0x106)]();}[_0x265ff2(0xdf)](){var _0x1fea15=_0x265ff2,_0x237ffd;let _0x5f50b5=(_0x237ffd=this[_0x1fea15(0xcd)]()['body'])==null||(_0x237ffd=_0x237ffd[_0x1fea15(0xfd)])==null?void 0x0:_0x237ffd[_0x1fea15(0xff)](_0xcdfa3d=>_0xcdfa3d[_0x1fea15(0xea)]===this[_0x1fea15(0xed)]&&_0xcdfa3d[_0x1fea15(0xf9)]===_0x53badc['CODE']);return _0x5f50b5==null?null:_0x5f50b5;}};y=v([_(0x2,_0x560d9f(_0x2c366a))],y);function b(_0x1dbb77){var _0x117116=_0x265ff2;return Array[_0x117116(0xcb)](_0x1dbb77)['map'](_0xadabd7=>_0xadabd7===_0x4d6957['PARAGRAPH']?'\x0a':_0xadabd7)['filter'](_0x37efcf=>_0x37efcf!==_0x4d6957[_0x117116(0xe2)]&&_0x37efcf!==_0x4d6957[_0x117116(0xd7)]&&_0x37efcf!==_0x4d6957['SECTION_BREAK'])[_0x117116(0xe0)]('')[_0x117116(0xee)](/\n$/,'');}var x=class extends _0x2080cf{[_0x265ff2(0xe9)](){var _0x2c7a01=_0x265ff2;return this[_0x2c7a01(0xd0)]()[_0x2c7a01(0xdb)](_0xf1f00=>_0xf1f00['blockType']===_0x53badc[_0x2c7a01(0xef)])[_0x2c7a01(0x105)](_0x547bed=>this[_0x2c7a01(0xd2)](_0x547bed['blockId']));}[_0x265ff2(0x109)](_0x21fa7a){var _0x4006f8=_0x265ff2;return this[_0x4006f8(0xd0)]()['some'](_0x2abc0a=>_0x2abc0a[_0x4006f8(0xea)]===_0x21fa7a&&_0x2abc0a['blockType']===_0x53badc[_0x4006f8(0xef)])?this[_0x4006f8(0xd2)](_0x21fa7a):null;}['getCodeAt'](_0x4b4680){var _0x4e6916=_0x265ff2;let _0x4ff399=this['_getBlockRanges']()[_0x4e6916(0xff)](_0x1a3ddb=>_0x1a3ddb[_0x4e6916(0xf9)]===_0x53badc[_0x4e6916(0xef)]&&_0x1a3ddb[_0x4e6916(0xe1)]<=_0x4b4680&&_0x4b4680<=_0x1a3ddb[_0x4e6916(0xe8)]);return _0x4ff399?this[_0x4e6916(0xd2)](_0x4ff399[_0x4e6916(0xea)]):null;}['findCodeByText'](_0x4e7b2b){var _0x364464=_0x265ff2,_0x5323cf;return(_0x5323cf=this[_0x364464(0xce)](_0x4e7b2b)[0x0])==null?null:_0x5323cf;}[_0x265ff2(0xce)](_0x5269d4){var _0x41309b=_0x265ff2;let _0x411fa7=typeof _0x5269d4==_0x41309b(0xf1)?{'text':_0x5269d4}:_0x5269d4;return this['getCodes']()[_0x41309b(0xdb)](_0x34fed8=>!(_0x411fa7[_0x41309b(0xea)]&&_0x34fed8[_0x41309b(0xf5)]()!==_0x411fa7[_0x41309b(0xea)]||_0x411fa7[_0x41309b(0x10c)]&&!_0x34fed8[_0x41309b(0xd6)]()[_0x41309b(0xf6)](_0x411fa7[_0x41309b(0x10c)])));}[_0x265ff2(0xd5)](_0x44f98d={},_0x38333a={}){var _0x33c287=_0x265ff2,_0x5a7c12;let _0x1640a7=this['_injector']['get'](_0x4437cc),_0x2025d7=S(_0x44f98d)?{..._0x38333a,...C(_0x44f98d)}:_0x44f98d,_0x15253d=(_0x5a7c12=_0x2025d7[_0x33c287(0xea)])==null?_0x2730ac(0x6):_0x5a7c12;return _0x1640a7[_0x33c287(0xd3)](_0x5c1c8b['id'],{..._0x2025d7,'blockId':_0x15253d,'unitId':this[_0x33c287(0xf5)]()})?this[_0x33c287(0xd2)](_0x15253d):null;}[_0x265ff2(0xe7)](_0x4b4966){var _0xf20096=_0x265ff2;return this[_0xf20096(0x102)][_0xf20096(0x101)](_0x4437cc)[_0xf20096(0xd3)](_0x1aea34['id'],{'cursorOffset':_0x4b4966,'unitId':this[_0xf20096(0xf5)]()});}[_0x265ff2(0x108)](_0x136f26={}){var _0x16667a=_0x265ff2;return this[_0x16667a(0x102)][_0x16667a(0x101)](_0x4437cc)[_0x16667a(0xd3)](_0x345880['id'],{..._0x136f26,'unitId':this[_0x16667a(0xf5)]()});}[_0x265ff2(0xd0)](){var _0x2ad0e3=_0x265ff2,_0x2b2ce5,_0xf7546;return(_0x2b2ce5=(_0xf7546=this[_0x2ad0e3(0x106)]()[_0x2ad0e3(0xd4)])==null?void 0x0:_0xf7546['blockRanges'])==null?[]:_0x2b2ce5;}[_0x265ff2(0xd2)](_0x5dc5bd){var _0x40b803=_0x265ff2;return this['_injector'][_0x40b803(0xdc)](y,this,_0x5dc5bd);}};function S(_0x423d5b){var _0x2b5231=_0x265ff2;return typeof _0x423d5b==_0x2b5231(0xf4)&&!!_0x423d5b&&typeof _0x423d5b[_0x2b5231(0xd8)]==_0x2b5231(0xec)&&typeof _0x423d5b[_0x2b5231(0xc8)]==_0x2b5231(0xec)&&typeof _0x423d5b['getType']==_0x2b5231(0xec)&&_0x423d5b['getType']()===_0x2b5231(0x100);}function C(_0x4aa7b2){var _0x315966=_0x265ff2;return _0x4aa7b2[_0x315966(0xc8)]();}_0x2080cf['extend'](x);export{y as FDocumentCode};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2918aa=_0x4721;(function(_0x4d63c7,_0x47d261){const _0x205705=_0x4721,_0x1783cf=_0x4d63c7();while(!![]){try{const _0x3a5255=-parseInt(_0x205705(0x9d))/0x1*(-parseInt(_0x205705(0x81))/0x2)+parseInt(_0x205705(0x8b))/0x3*(-parseInt(_0x205705(0xe6))/0x4)+-parseInt(_0x205705(0xe3))/0x5+-parseInt(_0x205705(0xc4))/0x6+parseInt(_0x205705(0xc6))/0x7+-parseInt(_0x205705(0x84))/0x8+-parseInt(_0x205705(0xe5))/0x9*(-parseInt(_0x205705(0xaa))/0xa);if(_0x3a5255===_0x47d261)break;else _0x1783cf['push'](_0x1783cf['shift']());}catch(_0x5eec4c){_0x1783cf['push'](_0x1783cf['shift']());}}}(_0x303f,0xdd1f2));import{BuildTextUtils as _0x1dfe3e,CommandType as _0x4448b1,DataStreamTreeTokenType as _0x152f45,DependentOn as _0x5e7fa3,Disposable as _0x7ff31,DocumentBlockRangeType as _0x238249,ICommandService as _0x3581cd,IConfigService as _0x1024e7,IResourceManagerService as _0x517cbe,IUniverInstanceService as _0x20984d,Inject as _0x1a3b9a,Injector as _0x50021e,JSONX as _0xaa2b42,Plugin as _0x15253c,Tools as _0x3348f8,UniverInstanceType as _0x50ff8e,createParagraphId as _0x309a82,generateRandomId as _0x50f53a,merge as _0x384233}from'@univerjs/core';import{DocContentInsertService as _0x26ecbc,DocSelectionManagerService as _0x308de8,RichTextEditingMutation as _0x3446f8,UniverDocsPlugin as _0x14757f}from'@univerjs/docs';import{Subject as _0x504168}from'rxjs';import{UniverLicensePlugin as _0x47fcc9}from'@univerjs-pro/license';const S={'language':_0x2918aa(0x9a),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function C(_0x3b9410){return{...S,..._0x3b9410};}function w(_0x160606){const _0x113a48=_0x2918aa;var _0x14ee17;let _0x416a2b=(_0x14ee17=_0x160606==null?void 0x0:_0x160606[_0x113a48(0x98)])==null?{}:_0x14ee17;return{'codes':Object['fromEntries'](Object[_0x113a48(0xe4)](_0x416a2b)[_0x113a48(0xe8)](([_0x37ffab,_0x588dd4])=>[_0x37ffab,C(_0x588dd4)]))};}function T(_0x29f59e,_0x18e8fe,_0x19dce0){const _0x17acde=_0x2918aa;let _0x38b024=w(_0x29f59e);return _0x38b024[_0x17acde(0x98)][_0x18e8fe]=C({..._0x38b024[_0x17acde(0x98)][_0x18e8fe],..._0x19dce0}),_0x38b024;}function re(_0x2fe067,_0x123b0b){const _0x239c18=_0x2918aa;let _0x56cd7e=w(_0x2fe067);return delete _0x56cd7e[_0x239c18(0x98)][_0x123b0b],_0x56cd7e;}const ie=_0x2918aa(0xdc);function ae(_0x36fde3){const _0x3e75d1=_0x2918aa;var _0x2f9c97,_0x5dbc1f,_0x51c2eb;let _0x157373=D(_0x36fde3[_0x3e75d1(0xae)]),_0x16eb62=O(_0x157373),_0x3ce9ac=se(_0x36fde3[_0x3e75d1(0x74)],_0x36fde3['endOffset']),_0x20b24b=_0x3ce9ac?(_0x2f9c97=_0x16eb62['blockRanges'])==null?void 0x0:_0x2f9c97['find'](_0x2166d8=>_0x2166d8['startIndex']===_0x3ce9ac[_0x3e75d1(0x74)]&&_0x2166d8[_0x3e75d1(0x9b)]+0x1===_0x3ce9ac[_0x3e75d1(0xd7)]):void 0x0,{startOffset:_0x4a45c5,endOffset:_0x48bf78}=_0x20b24b?_0x3ce9ac:ye(_0x16eb62,_0x36fde3[_0x3e75d1(0x74)],_0x36fde3[_0x3e75d1(0xd7)]),_0x52e1c9=Se(_0x16eb62,_0x4a45c5,_0x48bf78),_0xfc99f0=(_0x5dbc1f=_0x20b24b==null?void 0x0:_0x20b24b[_0x3e75d1(0xaf)])==null?_0x36fde3[_0x3e75d1(0xaf)]:_0x5dbc1f,_0x28a21e=T(_0x36fde3[_0x3e75d1(0x9c)],_0xfc99f0,{...S,..._0x36fde3[_0x3e75d1(0x9e)]});if(_0x20b24b)return _0x20b24b[_0x3e75d1(0xe2)]=_0x238249[_0x3e75d1(0x96)],oe(_0x16eb62,_0x4a45c5,_0x48bf78),he(_0x16eb62,_0x4a45c5,_0x48bf78,_0x52e1c9),M(_0x16eb62,_0x20b24b),{'nextDocumentData':_0x157373,'nextMetadata':_0x28a21e,'cursorOffset':_0x4a45c5+0x1};if(_0x4a45c5===_0x48bf78){var _0x1fa4c4,_0x4cb64c;let _0x56e33c=''+_0x152f45[_0x3e75d1(0xc8)]+_0x152f45[_0x3e75d1(0xad)]+_0x152f45[_0x3e75d1(0xc3)];N(_0x16eb62,_0x4a45c5,_0x56e33c,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x309a82(new Set((_0x1fa4c4=_0x16eb62[_0x3e75d1(0xcf)])==null?void 0x0:_0x1fa4c4[_0x3e75d1(0xe8)](_0x1f64f9=>_0x1f64f9[_0x3e75d1(0x6c)]))),'paragraphStyle':E(!0x0,!0x0,_0x52e1c9)}],'blockRanges':[{'blockId':_0xfc99f0,'blockType':_0x238249['CODE'],'startIndex':0x0,'endIndex':_0x56e33c[_0x3e75d1(0xd4)]-0x1}]});let _0x326a8d=(_0x4cb64c=_0x16eb62[_0x3e75d1(0xeb)])==null?void 0x0:_0x4cb64c['find'](_0x24cbe0=>_0x24cbe0[_0x3e75d1(0xaf)]===_0xfc99f0);return _0x326a8d&&M(_0x16eb62,_0x326a8d),{'nextDocumentData':_0x157373,'nextMetadata':_0x28a21e,'cursorOffset':_0x4a45c5+0x1};}N(_0x16eb62,_0x48bf78,_0x152f45[_0x3e75d1(0xc3)]),N(_0x16eb62,_0x4a45c5,_0x152f45['BLOCK_START']),he(_0x16eb62,_0x4a45c5,_0x48bf78+0x1,_0x52e1c9);let _0x810e87={'blockId':_0xfc99f0,'blockType':_0x238249[_0x3e75d1(0x96)],'startIndex':_0x4a45c5,'endIndex':_0x48bf78+0x1};return _0x16eb62[_0x3e75d1(0xeb)]=[...(_0x51c2eb=_0x16eb62['blockRanges'])==null?[]:_0x51c2eb,_0x810e87][_0x3e75d1(0xda)]((_0x30fc14,_0x4b5b8c)=>_0x30fc14[_0x3e75d1(0xce)]-_0x4b5b8c[_0x3e75d1(0xce)]),M(_0x16eb62,_0x810e87),{'nextDocumentData':_0x157373,'nextMetadata':_0x28a21e,'cursorOffset':_0x4a45c5+0x1};}function oe(_0x2ebcd5,_0x2c6481,_0x5f2b8d){const _0x2b01b5=_0x2918aa;var _0x2dcc83;((_0x2dcc83=_0x2ebcd5[_0x2b01b5(0xcf)])==null?[]:_0x2dcc83)[_0x2b01b5(0x85)](_0x181475=>_0x181475[_0x2b01b5(0xce)]>_0x2c6481&&_0x181475[_0x2b01b5(0xce)]<_0x5f2b8d)[_0x2b01b5(0x8e)](_0x28a0ed=>{const _0x5d4007=_0x2b01b5;var _0x29a3e7;let _0x864348={...(_0x29a3e7=_0x28a0ed[_0x5d4007(0x80)])==null?{}:_0x29a3e7};delete _0x864348['spaceAbove'],delete _0x864348[_0x5d4007(0x6d)],_0x28a0ed['paragraphStyle']=_0x864348;});}function se(_0x47a1c4,_0x659fab){const _0x147310=_0x2918aa;return _0x47a1c4==null||_0x659fab==null||_0x47a1c4===_0x659fab?null:{'startOffset':Math[_0x147310(0x75)](_0x47a1c4,_0x659fab),'endOffset':Math['max'](_0x47a1c4,_0x659fab)};}function ce(_0x37b8f8){const _0x5aef68=_0x2918aa;return{'nextDocumentData':D(_0x37b8f8[_0x5aef68(0xae)]),'nextMetadata':T(_0x37b8f8[_0x5aef68(0x9c)],_0x37b8f8['blockId'],_0x37b8f8['config']),'cursorOffset':0x0};}function le(_0x23113b){const _0xb691e9=_0x2918aa;var _0x5bf049,_0x2892ed;let _0x19cea4=D(_0x23113b[_0xb691e9(0xae)]),_0x3eefff=O(_0x19cea4),_0x465e5f=me(_0x3eefff,_0x23113b['cursorOffset']);if(!_0x465e5f)return null;let _0x16f86c=_e(_0x3eefff,_0x465e5f),_0x613499=_0x16f86c[_0x16f86c[_0xb691e9(0xd4)]-0x1];if(!_0x613499||!ve(_0x3eefff,_0x465e5f,_0x613499)||_0x23113b[_0xb691e9(0x76)]<_0x613499[_0xb691e9(0xce)])return null;let _0x1ab0fa=A(_0x3eefff,_0x465e5f,_0x613499);if(_0x1ab0fa>=_0x465e5f[_0xb691e9(0x9b)])return null;_0x3eefff['dataStream']=[_0x3eefff[_0xb691e9(0x72)][_0xb691e9(0xb3)](0x0,_0x1ab0fa),_0x152f45[_0xb691e9(0xc3)],_0x3eefff[_0xb691e9(0x72)][_0xb691e9(0xb3)](_0x1ab0fa,_0x465e5f[_0xb691e9(0x9b)]),_0x3eefff[_0xb691e9(0x72)]['slice'](_0x465e5f[_0xb691e9(0x9b)]+0x1)][_0xb691e9(0xcb)](''),R(_0x3eefff[_0xb691e9(0xcf)],_0x1ab0fa,_0x465e5f[_0xb691e9(0x9b)],0x1),R(_0x3eefff[_0xb691e9(0x97)],_0x1ab0fa,_0x465e5f[_0xb691e9(0x9b)],0x1),R(_0x3eefff['customBlocks'],_0x1ab0fa,_0x465e5f['endIndex'],0x1),ke(_0x3eefff['textRuns'],_0x1ab0fa,_0x465e5f['endIndex'],0x1),z(_0x3eefff[_0xb691e9(0x7a)],_0x1ab0fa,_0x465e5f[_0xb691e9(0x9b)],0x1),z(_0x3eefff[_0xb691e9(0xa4)],_0x1ab0fa,_0x465e5f['endIndex'],0x1),z(_0x3eefff[_0xb691e9(0x77)],_0x1ab0fa,_0x465e5f[_0xb691e9(0x9b)],0x1),(_0x5bf049=_0x3eefff[_0xb691e9(0xeb)])==null||_0x5bf049[_0xb691e9(0x8e)](_0x181001=>{const _0x588926=_0xb691e9;_0x181001===_0x465e5f||_0x181001['blockId']===_0x465e5f[_0x588926(0xaf)]?_0x181001[_0x588926(0x9b)]=_0x1ab0fa:_0x181001[_0x588926(0xce)]>=_0x1ab0fa&&_0x181001[_0x588926(0xce)]<_0x465e5f['endIndex']&&(_0x181001[_0x588926(0xce)]+=0x1,_0x181001['endIndex']+=0x1);});let _0x27c9dc=_e(_0x3eefff,{..._0x465e5f,'endIndex':_0x1ab0fa});_0x27c9dc[_0xb691e9(0x8e)]((_0x4c0052,_0x5044c5)=>{const _0x45d97c=_0xb691e9;var _0x27d2f7;_0x4c0052[_0x45d97c(0x80)]={...(_0x27d2f7=_0x4c0052[_0x45d97c(0x80)])==null?{}:_0x27d2f7,...E(_0x5044c5===0x0,_0x5044c5===_0x27c9dc[_0x45d97c(0xd4)]-0x1)};});let _0x253c49=(_0x2892ed=_0x3eefff[_0xb691e9(0xcf)])==null?void 0x0:_0x2892ed[_0xb691e9(0x79)](_0x1dc1cd=>_0x1dc1cd[_0xb691e9(0xce)]===_0x1ab0fa+0x1);return _0x253c49&&(_0x253c49[_0xb691e9(0x80)]=ge(_0x253c49[_0xb691e9(0x80)])),{'nextDocumentData':_0x19cea4,'cursorOffset':_0x1ab0fa+0x1};}function ue(_0x335531){const _0x3fc2af=_0x2918aa;let _0x33fa86=D(_0x335531['documentData']),_0xa159=O(_0x33fa86),_0xe364be=me(_0xa159,_0x335531[_0x3fc2af(0x76)]);return _0xe364be&&de(_0x33fa86,_0xa159,_0xe364be,_0x335531[_0x3fc2af(0x76)],_0x335531[_0x3fc2af(0xb1)])||null;}function de(_0x10d651,_0x252766,_0x134d35,_0x2d6c8d,_0x32e2d7){const _0x636019=_0x2918aa;let _0xc9ae05=we(_0x252766,_0x134d35,_0x2d6c8d,_0x32e2d7);if(!_0xc9ae05)return null;let _0x41e1e4=_0xc9ae05['endTokenOffset']-0x1;return Te(_0x252766,_0xc9ae05[_0x636019(0xe7)][_0x636019(0xce)],_0xc9ae05[_0x636019(0xe7)]['startIndex']+0x1),{'nextDocumentData':_0x10d651,'cursorOffset':_0x41e1e4};}function fe(_0x577520,_0x3e2954){const _0x56bb28=_0x2918aa;var _0x2dff0d;return _0x577520==null||(_0x2dff0d=_0x577520['blockRanges'])==null?void 0x0:_0x2dff0d[_0x56bb28(0x79)](_0x147f34=>_0x147f34[_0x56bb28(0xe2)]===_0x238249[_0x56bb28(0x96)]&&_0x147f34[_0x56bb28(0xce)]<=_0x3e2954&&_0x3e2954<=_0x147f34[_0x56bb28(0x9b)]);}function pe(_0x376569){const _0x3ab2c4=_0x2918aa;var _0x209c35;let _0x4a10dd=_0x376569['documentData'][_0x3ab2c4(0x91)];if(!_0x4a10dd)return!0x1;let _0x582b36=_0x376569[_0x3ab2c4(0x88)]===_0x3ab2c4(0xd9)?_0x376569[_0x3ab2c4(0x76)]-0x1:_0x376569['cursorOffset'],_0xa213f4=_0x376569[_0x3ab2c4(0x88)]==='right'?_0x376569[_0x3ab2c4(0x76)]+0x1:_0x582b36;return((_0x209c35=_0x4a10dd[_0x3ab2c4(0xeb)])==null?[]:_0x209c35)[_0x3ab2c4(0xde)](_0x2e9a4d=>_0x2e9a4d[_0x3ab2c4(0xe2)]===_0x238249[_0x3ab2c4(0x96)]?_0x582b36===_0x2e9a4d[_0x3ab2c4(0xce)]||_0x582b36===_0x2e9a4d[_0x3ab2c4(0x9b)]||_0xa213f4===_0x2e9a4d[_0x3ab2c4(0xce)]||_0xa213f4===_0x2e9a4d['endIndex']:!0x1);}function me(_0x5e10a7,_0x4e2e4d){const _0x43589b=_0x2918aa;var _0x58f92e;return(_0x58f92e=_0x5e10a7[_0x43589b(0xeb)])==null?void 0x0:_0x58f92e['find'](_0x58e4c1=>{const _0x47503c=_0x43589b;let _0x19e3d2=j(_0x5e10a7,_0x58e4c1);return _0x58e4c1[_0x47503c(0xe2)]===_0x238249[_0x47503c(0x96)]&&_0x58e4c1[_0x47503c(0xce)]<=_0x4e2e4d&&_0x4e2e4d<=_0x19e3d2+0x2;});}function E(_0xd18003,_0x1ebbed,_0x282f39=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0xd18003&&_0x282f39?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ie,'fs':0xc}};}function he(_0x1be9d9,_0x170891,_0x2e5a05,_0x56064e=!0x1){const _0x56fa91=_0x2918aa;var _0x2c41ea;let _0x58ef9e=((_0x2c41ea=_0x1be9d9[_0x56fa91(0xcf)])==null?[]:_0x2c41ea)[_0x56fa91(0x85)](_0x4afcfd=>_0x4afcfd[_0x56fa91(0xce)]>_0x170891&&_0x4afcfd[_0x56fa91(0xce)]<_0x2e5a05);_0x58ef9e[_0x56fa91(0x8e)]((_0x40a64b,_0x7af9ff)=>{const _0x1f8984=_0x56fa91;var _0x2a656b;_0x40a64b['paragraphStyle']={...(_0x2a656b=_0x40a64b[_0x1f8984(0x80)])==null?{}:_0x2a656b,...E(_0x7af9ff===0x0,_0x7af9ff===_0x58ef9e[_0x1f8984(0xd4)]-0x1,_0x56064e)};});}function ge(_0x2ca310){const _0x1eefaa=_0x2918aa;var _0x5ed3a8,_0x513246;let _0x2179c5={..._0x2ca310==null?{}:_0x2ca310};return delete _0x2179c5['indentEnd'],delete _0x2179c5[_0x1eefaa(0xd6)],delete _0x2179c5[_0x1eefaa(0xcd)],delete _0x2179c5[_0x1eefaa(0x6d)],((_0x5ed3a8=_0x2179c5['textStyle'])==null?void 0x0:_0x5ed3a8['ff'])===ie&&((_0x513246=_0x2179c5['textStyle'])==null?void 0x0:_0x513246['fs'])===0xc&&delete _0x2179c5['textStyle'],_0x2179c5;}function _e(_0x1248c0,_0x23533e){const _0x538d10=_0x2918aa;var _0x5e6743;let _0x4d3238=j(_0x1248c0,_0x23533e);return((_0x5e6743=_0x1248c0[_0x538d10(0xcf)])==null?[]:_0x5e6743)['filter'](_0x17211a=>_0x17211a['startIndex']>_0x23533e[_0x538d10(0xce)]&&_0x17211a[_0x538d10(0xce)]<_0x4d3238);}function ve(_0x34acf5,_0x34eabb,_0x45fadc){const _0x19ca87=_0x2918aa;let _0xcce147=A(_0x34acf5,_0x34eabb,_0x45fadc),_0x110b8e=_0x34acf5['dataStream'][_0x19ca87(0xb3)](_0xcce147,_0x45fadc[_0x19ca87(0xce)]);return Array['from'](_0x110b8e)[_0x19ca87(0xc1)](_0x553924=>_0x553924===_0x152f45[_0x19ca87(0xc8)]||_0x553924===_0x152f45[_0x19ca87(0xc3)]);}function D(_0x318c15){const _0x421b20=_0x2918aa;return _0x3348f8[_0x421b20(0xec)](_0x318c15);}function O(_0xa1a162){const _0x59080e=_0x2918aa;if(!_0xa1a162[_0x59080e(0x91)])throw Error(_0x59080e(0x7b));return _0xa1a162['body'];}function ye(_0x5b7859,_0x624d88,_0x10f05e){const _0x2803a6=_0x2918aa;if(_0x624d88==null||_0x10f05e==null){let _0x201ca2=xe(_0x5b7859);return{'startOffset':_0x201ca2,'endOffset':_0x201ca2};}let _0x475993=Math[_0x2803a6(0x75)](_0x624d88,_0x10f05e),_0x4283e5=Math[_0x2803a6(0xb6)](_0x624d88,_0x10f05e);if(_0x475993===_0x4283e5){let _0x53d1f1=be(_0x5b7859,_0x475993);return{'startOffset':_0x53d1f1,'endOffset':_0x53d1f1};}return Ce(_0x5b7859,_0x475993,_0x4283e5);}function be(_0xfc0731,_0x117d50){const _0x449f30=_0x2918aa;return _0x117d50===0x0&&_0xfc0731[_0x449f30(0x72)][0x0]===_0x152f45[_0x449f30(0xad)]?0x1:_0x117d50;}function xe(_0x464d48){const _0x52640f=_0x2918aa;return _0x464d48[_0x52640f(0x72)][_0x52640f(0xb8)](_0x152f45[_0x52640f(0xbe)])?Math[_0x52640f(0xb6)](0x0,_0x464d48[_0x52640f(0x72)]['length']-0x1):_0x464d48[_0x52640f(0x72)][_0x52640f(0xd4)];}function Se(_0x5664c7,_0x4cb54a,_0x261e67){const _0x351232=_0x2918aa;var _0x31849a;let _0xb3c3b5=Math['min'](_0x4cb54a,_0x261e67),_0x585e2d=Math[_0x351232(0xb6)](_0x4cb54a,_0x261e67);return!!((_0x31849a=_0x5664c7['tables'])!=null&&_0x31849a['some'](_0x431cc2=>_0xb3c3b5>_0x431cc2[_0x351232(0xce)]&&_0xb3c3b5<_0x431cc2[_0x351232(0x9b)]||_0x585e2d>_0x431cc2[_0x351232(0xce)]&&_0x585e2d<_0x431cc2[_0x351232(0x9b)]||_0xb3c3b5<=_0x431cc2[_0x351232(0xce)]&&_0x585e2d>=_0x431cc2[_0x351232(0x9b)]));}function Ce(_0x640615,_0x1c6104,_0x2c7589){const _0x36c0e7=_0x2918aa;var _0x23ecac,_0x539a4b;let _0x2fbc0d=[...(_0x23ecac=_0x640615[_0x36c0e7(0xcf)])==null?[]:_0x23ecac]['sort']((_0x50f174,_0x5001cd)=>_0x50f174['startIndex']-_0x5001cd[_0x36c0e7(0xce)]),_0x500630=_0x2fbc0d[_0x36c0e7(0x79)]((_0x175629,_0x22eb0c)=>(_0x22eb0c===0x0?0x0:_0x2fbc0d[_0x22eb0c-0x1][_0x36c0e7(0xce)]+0x1)<=_0x1c6104&&_0x1c6104<=_0x175629[_0x36c0e7(0xce)]),_0x3006c3=(_0x539a4b=_0x2fbc0d[_0x36c0e7(0x79)](_0x13ff68=>_0x13ff68[_0x36c0e7(0xce)]>=_0x2c7589-0x1))==null?_0x2fbc0d[_0x2fbc0d[_0x36c0e7(0xd4)]-0x1]:_0x539a4b;return{'startOffset':_0x500630?k(_0x2fbc0d,_0x500630):_0x1c6104,'endOffset':_0x3006c3?_0x3006c3[_0x36c0e7(0xce)]+0x1:_0x2c7589};}function k(_0x5b023b,_0x580fd4){const _0x413fe9=_0x2918aa;let _0x3986f9=_0x5b023b[_0x413fe9(0x93)](_0x580fd4);return _0x3986f9>0x0?_0x5b023b[_0x3986f9-0x1][_0x413fe9(0xce)]+0x1:0x0;}function A(_0x326398,_0x11e8a8,_0x2d096f){const _0x220c5d=_0x2918aa;var _0x22a71b;return Math[_0x220c5d(0xb6)](k((_0x22a71b=_0x326398[_0x220c5d(0xcf)])==null?[]:_0x22a71b,_0x2d096f),_0x11e8a8['startIndex']+0x1);}function j(_0x3c61e6,_0xa26af){const _0xd5de22=_0x2918aa;return _0x3c61e6[_0xd5de22(0x72)][_0xa26af[_0xd5de22(0x9b)]]===_0x152f45[_0xd5de22(0xc3)]?_0xa26af['endIndex']:_0x3c61e6[_0xd5de22(0x72)][_0xa26af[_0xd5de22(0x9b)]+0x1]===_0x152f45['BLOCK_END']?_0xa26af[_0xd5de22(0x9b)]+0x1:_0xa26af[_0xd5de22(0x9b)];}function we(_0x734abe,_0x1e8be6,_0x1334b7,_0x265963){const _0x349c76=_0x2918aa;var _0x49153a,_0x374ca2;let _0x31c73d=j(_0x734abe,_0x1e8be6),_0x119949=((_0x49153a=_0x734abe[_0x349c76(0xcf)])==null?[]:_0x49153a)[_0x349c76(0x79)](_0x54f123=>_0x54f123[_0x349c76(0xce)]===_0x31c73d+0x1);if(!_0x119949||_0x265963!=null&&_0x119949['startIndex']!==_0x265963||_0x1334b7<_0x31c73d||_0x1334b7>_0x119949[_0x349c76(0xce)]+0x1||_0x734abe[_0x349c76(0x72)][_0x119949['startIndex']]!==_0x152f45['PARAGRAPH'])return null;let _0x1ff822=k((_0x374ca2=_0x734abe[_0x349c76(0xcf)])==null?[]:_0x374ca2,_0x119949),_0xc3c972=_0x734abe[_0x349c76(0x72)]['slice'](_0x1ff822,_0x119949['startIndex']);return Array['from'](_0xc3c972)[_0x349c76(0xc1)](_0x271f9a=>_0x271f9a===_0x152f45[_0x349c76(0xc3)])?{'paragraph':_0x119949,'endTokenOffset':_0x31c73d}:null;}function M(_0x4431f6,_0x1a5d7e){const _0x3ac63b=_0x2918aa;var _0x423386;let _0x1e1b00=j(_0x4431f6,_0x1a5d7e),_0x5d9d6f=_0x4431f6[_0x3ac63b(0x72)][_0x1e1b00+0x1];_0x5d9d6f!==_0x152f45[_0x3ac63b(0xbe)]&&_0x5d9d6f!==void 0x0||N(_0x4431f6,_0x1e1b00+0x1,_0x152f45[_0x3ac63b(0xad)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x309a82(new Set((_0x423386=_0x4431f6[_0x3ac63b(0xcf)])==null?void 0x0:_0x423386[_0x3ac63b(0xe8)](_0x46a918=>_0x46a918[_0x3ac63b(0x6c)])))}]});}function N(_0x419890,_0x27971c,_0x277582,_0x6fd2b={}){const _0x433981=_0x2918aa;var _0x121f0f,_0x5a8b12;if(_0x277582){if(_0x419890[_0x433981(0x72)]=''+_0x419890[_0x433981(0x72)][_0x433981(0xb3)](0x0,_0x27971c)+_0x277582+_0x419890[_0x433981(0x72)]['slice'](_0x27971c),Ee(_0x419890,_0x27971c,_0x277582[_0x433981(0xd4)]),(_0x121f0f=_0x6fd2b[_0x433981(0xcf)])!=null&&_0x121f0f[_0x433981(0xd4)]){var _0x5b83aa;_0x419890['paragraphs']=[...(_0x5b83aa=_0x419890[_0x433981(0xcf)])==null?[]:_0x5b83aa,..._0x6fd2b['paragraphs'][_0x433981(0xe8)](_0x48c26c=>({..._0x48c26c,'startIndex':_0x48c26c[_0x433981(0xce)]+_0x27971c}))][_0x433981(0xda)]((_0x425b60,_0x109d7a)=>_0x425b60[_0x433981(0xce)]-_0x109d7a[_0x433981(0xce)]);}if((_0x5a8b12=_0x6fd2b['blockRanges'])!=null&&_0x5a8b12[_0x433981(0xd4)]){var _0x43e4df;_0x419890[_0x433981(0xeb)]=[...(_0x43e4df=_0x419890['blockRanges'])==null?[]:_0x43e4df,..._0x6fd2b[_0x433981(0xeb)][_0x433981(0xe8)](_0x16b002=>({..._0x16b002,'startIndex':_0x16b002['startIndex']+_0x27971c,'endIndex':_0x16b002[_0x433981(0x9b)]+_0x27971c}))][_0x433981(0xda)]((_0x4261d0,_0x54bc3e)=>_0x4261d0[_0x433981(0xce)]-_0x54bc3e['startIndex']);}}}function Te(_0x57fad7,_0x4b55f7,_0x3cfa3f){const _0x23406d=_0x2918aa;let _0x5d7d82=_0x3cfa3f-_0x4b55f7;_0x57fad7[_0x23406d(0x72)]=''+_0x57fad7[_0x23406d(0x72)][_0x23406d(0xb3)](0x0,_0x4b55f7)+_0x57fad7[_0x23406d(0x72)][_0x23406d(0xb3)](_0x3cfa3f),De(_0x57fad7,_0x4b55f7,_0x5d7d82);}function Ee(_0x2584d4,_0x3725d9,_0x251d73){const _0x47f663=_0x2918aa;_0x2584d4[_0x47f663(0xcf)]=P(_0x2584d4[_0x47f663(0xcf)],_0x3725d9,_0x251d73),_0x2584d4[_0x47f663(0x97)]=P(_0x2584d4['sectionBreaks'],_0x3725d9,_0x251d73),_0x2584d4[_0x47f663(0x95)]=P(_0x2584d4[_0x47f663(0x95)],_0x3725d9,_0x251d73),_0x2584d4['textRuns']=Oe(_0x2584d4[_0x47f663(0xbf)],_0x3725d9,_0x251d73),_0x2584d4[_0x47f663(0x7a)]=I(_0x2584d4[_0x47f663(0x7a)],_0x3725d9,_0x251d73),_0x2584d4['customRanges']=I(_0x2584d4['customRanges'],_0x3725d9,_0x251d73),_0x2584d4[_0x47f663(0x77)]=I(_0x2584d4['customDecorations'],_0x3725d9,_0x251d73),_0x2584d4[_0x47f663(0xeb)]=I(_0x2584d4[_0x47f663(0xeb)],_0x3725d9,_0x251d73);}function De(_0x2facf1,_0x57ce8f,_0x24d458){const _0x58ada5=_0x2918aa;var _0x28f482,_0x3e3c07;_0x2facf1[_0x58ada5(0xcf)]=F(_0x2facf1[_0x58ada5(0xcf)],_0x57ce8f,_0x24d458),_0x2facf1[_0x58ada5(0x97)]=F(_0x2facf1[_0x58ada5(0x97)],_0x57ce8f,_0x24d458),_0x2facf1[_0x58ada5(0x95)]=F(_0x2facf1[_0x58ada5(0x95)],_0x57ce8f,_0x24d458),_0x2facf1[_0x58ada5(0xbf)]=(_0x28f482=L((_0x3e3c07=_0x2facf1['textRuns'])==null?void 0x0:_0x3e3c07[_0x58ada5(0xe8)](_0x1e0848=>({..._0x1e0848,'startIndex':_0x1e0848['st'],'endIndex':_0x1e0848['ed']})),_0x57ce8f,_0x24d458))==null?void 0x0:_0x28f482[_0x58ada5(0xe8)](_0xf6bead=>{let {startIndex:_0x1f29f3,endIndex:_0xf7b4f4,..._0x4883ba}=_0xf6bead;return{..._0x4883ba,'st':_0x1f29f3,'ed':_0xf7b4f4};}),_0x2facf1[_0x58ada5(0x7a)]=L(_0x2facf1[_0x58ada5(0x7a)],_0x57ce8f,_0x24d458),_0x2facf1[_0x58ada5(0xa4)]=L(_0x2facf1[_0x58ada5(0xa4)],_0x57ce8f,_0x24d458),_0x2facf1[_0x58ada5(0x77)]=L(_0x2facf1['customDecorations'],_0x57ce8f,_0x24d458),_0x2facf1[_0x58ada5(0xeb)]=L(_0x2facf1['blockRanges'],_0x57ce8f,_0x24d458);}function P(_0x118b1,_0x22fd6e,_0x233c18){const _0x4b2f88=_0x2918aa;return _0x118b1==null?void 0x0:_0x118b1[_0x4b2f88(0xe8)](_0x175eac=>_0x175eac[_0x4b2f88(0xce)]>=_0x22fd6e?{..._0x175eac,'startIndex':_0x175eac[_0x4b2f88(0xce)]+_0x233c18}:_0x175eac);}function F(_0x197b5a,_0x243881,_0x41a251){const _0x1c4319=_0x2918aa;let _0x3d0922=_0x243881+_0x41a251;return _0x197b5a==null?void 0x0:_0x197b5a[_0x1c4319(0xe8)](_0x3465c9=>_0x3465c9[_0x1c4319(0xce)]>=_0x243881&&_0x3465c9['startIndex']<_0x3d0922?null:_0x3465c9['startIndex']>=_0x3d0922?{..._0x3465c9,'startIndex':_0x3465c9[_0x1c4319(0xce)]-_0x41a251}:_0x3465c9)['filter'](_0x2a5c66=>_0x2a5c66!=null);}function Oe(_0x359839,_0x463568,_0x12e18c){const _0x30d1b4=_0x2918aa;return _0x359839==null?void 0x0:_0x359839[_0x30d1b4(0xe8)](_0x5c8cd9=>_0x5c8cd9['st']>=_0x463568?{..._0x5c8cd9,'st':_0x5c8cd9['st']+_0x12e18c,'ed':_0x5c8cd9['ed']+_0x12e18c}:_0x5c8cd9['ed']>_0x463568?{..._0x5c8cd9,'ed':_0x5c8cd9['ed']+_0x12e18c}:_0x5c8cd9);}function I(_0x3e3561,_0x128dce,_0x4158d5){const _0xc08bc5=_0x2918aa;return _0x3e3561==null?void 0x0:_0x3e3561[_0xc08bc5(0xe8)](_0x458552=>_0x458552[_0xc08bc5(0xce)]>=_0x128dce?{..._0x458552,'startIndex':_0x458552[_0xc08bc5(0xce)]+_0x4158d5,'endIndex':_0x458552['endIndex']+_0x4158d5}:_0x458552[_0xc08bc5(0x9b)]>=_0x128dce?{..._0x458552,'endIndex':_0x458552['endIndex']+_0x4158d5}:_0x458552);}function L(_0x62c002,_0x23f233,_0x3261ec){const _0x45784f=_0x2918aa;let _0x5bfbb8=_0x23f233+_0x3261ec;return _0x62c002==null?void 0x0:_0x62c002[_0x45784f(0xe8)](_0x27d5e5=>_0x27d5e5['startIndex']>=_0x23f233&&_0x27d5e5[_0x45784f(0x9b)]<_0x5bfbb8?null:_0x27d5e5[_0x45784f(0xce)]>=_0x5bfbb8?{..._0x27d5e5,'startIndex':_0x27d5e5[_0x45784f(0xce)]-_0x3261ec,'endIndex':_0x27d5e5[_0x45784f(0x9b)]-_0x3261ec}:_0x27d5e5[_0x45784f(0x9b)]>=_0x23f233?{..._0x27d5e5,'startIndex':_0x27d5e5['startIndex']<_0x23f233?_0x27d5e5[_0x45784f(0xce)]:_0x23f233,'endIndex':Math[_0x45784f(0xb6)](_0x23f233,_0x27d5e5['endIndex']-_0x3261ec)}:_0x27d5e5)[_0x45784f(0x85)](_0x9de83f=>_0x9de83f!=null);}function R(_0x5dad18,_0x7d9a07,_0x14ef3f,_0x1b328b){_0x5dad18==null||_0x5dad18['forEach'](_0x25e9ff=>{const _0x36b71b=_0x4721;_0x25e9ff[_0x36b71b(0xce)]>=_0x7d9a07&&_0x25e9ff[_0x36b71b(0xce)]<_0x14ef3f&&(_0x25e9ff[_0x36b71b(0xce)]+=_0x1b328b);});}function ke(_0x41a464,_0x3fd505,_0x3f78e1,_0x40cc77){const _0x1951b7=_0x2918aa;_0x41a464==null||_0x41a464[_0x1951b7(0x8e)](_0x556779=>{_0x556779['st']>=_0x3fd505&&_0x556779['st']<_0x3f78e1?(_0x556779['st']+=_0x40cc77,_0x556779['ed']+=_0x40cc77):_0x556779['ed']>_0x3fd505&&_0x556779['ed']<_0x3f78e1&&(_0x556779['ed']+=_0x40cc77);});}function z(_0x118308,_0x2a8b77,_0x5a216a,_0x567763){const _0x6c1af4=_0x2918aa;_0x118308==null||_0x118308[_0x6c1af4(0x8e)](_0x386e83=>{const _0x357bce=_0x6c1af4;_0x386e83['startIndex']>=_0x2a8b77&&_0x386e83[_0x357bce(0xce)]<_0x5a216a?(_0x386e83[_0x357bce(0xce)]+=_0x567763,_0x386e83['endIndex']+=_0x567763):_0x386e83['endIndex']>_0x2a8b77&&_0x386e83[_0x357bce(0x9b)]<_0x5a216a&&(_0x386e83[_0x357bce(0x9b)]+=_0x567763);});}function B(_0x2ed103){'@babel/helpers - typeof';const _0x1b43c0=_0x2918aa;return B=typeof Symbol==_0x1b43c0(0x94)&&typeof Symbol['iterator']==_0x1b43c0(0xd3)?function(_0x5c0b41){return typeof _0x5c0b41;}:function(_0x4d2d4b){const _0x16f37f=_0x1b43c0;return _0x4d2d4b&&typeof Symbol==_0x16f37f(0x94)&&_0x4d2d4b[_0x16f37f(0xb5)]===Symbol&&_0x4d2d4b!==Symbol[_0x16f37f(0x92)]?_0x16f37f(0xd3):typeof _0x4d2d4b;},B(_0x2ed103);}function Ae(_0x33c44e,_0x409d3c){const _0x489959=_0x2918aa;if(B(_0x33c44e)!=_0x489959(0xba)||!_0x33c44e)return _0x33c44e;var _0x5ed8b6=_0x33c44e[Symbol['toPrimitive']];if(_0x5ed8b6!==void 0x0){var _0x412fc0=_0x5ed8b6[_0x489959(0xc9)](_0x33c44e,_0x409d3c||'default');if(B(_0x412fc0)!=_0x489959(0xba))return _0x412fc0;throw TypeError(_0x489959(0x90));}return(_0x409d3c==='string'?String:Number)(_0x33c44e);}function je(_0x5c6c40){const _0x13d917=_0x2918aa;var _0x3318b6=Ae(_0x5c6c40,_0x13d917(0xa3));return B(_0x3318b6)==_0x13d917(0xd3)?_0x3318b6:_0x3318b6+'';}function _0x303f(){const _0x1a71e5=['endOffset','getCurrentUnitOfType','left','sort','registerCommand','monospace','replaceOp','some','commandService','serialize','nextMetadata','blockType','8921605bDEPWG','entries','14940mtFcOU','276948XbnRBM','paragraph','map','_change$','nextDocumentData','blockRanges','deepClone','paragraphId','spaceBelow','setConfig','removeCode','previousDocumentData','DOC_CODE_PLUGIN','dataStream','clear','startOffset','min','cursorOffset','customDecorations','docs-code.command.exit','find','tables','Document\x20body\x20is\x20required','docs-code.command.update','getParagraphsInRange','asObservable','1.0.0-insiders.20260629-12f2e44','paragraphStyle','620OqbBch','get','stringify','14280896FapObr','filter','version','syncExecuteCommand','direction','unitId','_commandService','63lffGxh','getUniverDocInstance','delete','forEach','_resources','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','body','prototype','indexOf','function','customBlocks','CODE','sectionBreaks','codes','_docsCodeModel','javascript','endIndex','metadata','3701CkyQvk','config','docs-code.command.insert','compose','removeUnit','getSnapshot','string','customRanges','next','_initResource','getInstance','model','consumeInsertRange','32080tywtHo','_configService','set','PARAGRAPH','documentData','blockId','@univerjs-pro/docs-code','paragraphStartIndex','decorate','slice','_injector','constructor','max','_config','endsWith','disposeWithMe','object','parse','_setResource','_resourceManagerService','SECTION_BREAK','textRuns','packageName','every','pluginName','BLOCK_END','4968270eFDkWE','COMMAND','1992053IFkuJr','getOwnPropertyDescriptor','BLOCK_START','call','add','join','UNIVER_DOC','spaceAbove','startIndex','paragraphs','getUnitId','deserialize','range','symbol','length','setCodeConfig','indentStart'];_0x303f=function(){return _0x1a71e5;};return _0x303f();}function V(_0x778c79,_0x293364,_0x104fd8){return(_0x293364=je(_0x293364))in _0x778c79?Object['defineProperty'](_0x778c79,_0x293364,{'value':_0x104fd8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x778c79[_0x293364]=_0x104fd8,_0x778c79;}var H=class extends _0x7ff31{constructor(..._0x141bce){const _0x1eda1c=_0x2918aa;super(..._0x141bce),V(this,_0x1eda1c(0x8f),new Map()),V(this,_0x1eda1c(0xe9),new _0x504168()),V(this,'change$',this[_0x1eda1c(0xe9)][_0x1eda1c(0x7e)]());}['getCodeConfig'](_0xe4228a,_0x5b2e61){const _0x32ff83=_0x2918aa;return w(this[_0x32ff83(0x8f)]['get'](_0xe4228a))['codes'][_0x5b2e61];}[_0x2918aa(0xd5)](_0x4b59a8,_0x2b4c52,_0x24ba9a){const _0x490754=_0x2918aa;this[_0x490754(0xbc)](_0x4b59a8,_0x2b4c52,T(this[_0x490754(0x8f)][_0x490754(0x82)](_0x4b59a8),_0x2b4c52,_0x24ba9a));}[_0x2918aa(0x6f)](_0x5cdecb,_0x54f6ab){const _0x40983e=_0x2918aa;this[_0x40983e(0xbc)](_0x5cdecb,_0x54f6ab,re(this[_0x40983e(0x8f)][_0x40983e(0x82)](_0x5cdecb),_0x54f6ab));}['serialize'](_0x136f95){return w(this['_resources']['get'](_0x136f95));}[_0x2918aa(0xd1)](_0xd0e29a,_0x17c415){const _0x86bdf4=_0x2918aa;this[_0x86bdf4(0x8f)]['set'](_0xd0e29a,w(_0x17c415)),this[_0x86bdf4(0xe9)][_0x86bdf4(0xa5)]({'unitId':_0xd0e29a});}[_0x2918aa(0xa1)](_0x54298d){const _0x2a5acb=_0x2918aa;this[_0x2a5acb(0x8f)][_0x2a5acb(0x8d)](_0x54298d),this[_0x2a5acb(0xe9)][_0x2a5acb(0xa5)]({'unitId':_0x54298d});}['dispose'](){const _0x449426=_0x2918aa;super['dispose'](),this[_0x449426(0x8f)][_0x449426(0x73)](),this[_0x449426(0xe9)]['complete']();}[_0x2918aa(0xbc)](_0x3028f0,_0x7a353a,_0x410da6){const _0x4e8844=_0x2918aa;this[_0x4e8844(0x8f)][_0x4e8844(0xac)](_0x3028f0,_0x410da6),this[_0x4e8844(0xe9)][_0x4e8844(0xa5)]({'unitId':_0x3028f0,'blockId':_0x7a353a});}};const Me={'id':'docs-code.command.insert-below','type':_0x4448b1[_0x2918aa(0xc5)],'handler':_0xf2866=>{const _0xfcceec=_0x2918aa;let _0x8a0b65=Le(_0xf2866);if(_0x8a0b65)return _0xf2866[_0xfcceec(0x82)](_0x3581cd)[_0xfcceec(0x87)](U['id'],{'startOffset':_0x8a0b65[_0xfcceec(0x74)],'endOffset':_0x8a0b65[_0xfcceec(0xd7)],'unitId':_0x8a0b65['unitId']});let _0x25f29f=Re(_0xf2866);if(!_0x25f29f)return!0x1;let _0x912e15=_0x25f29f[_0xfcceec(0xce)]+0x1;return _0xf2866[_0xfcceec(0x82)](_0x3581cd)[_0xfcceec(0x87)](U['id'],{'startOffset':_0x912e15,'endOffset':_0x912e15});}},Ne={'id':'docs-code.command.consume-boundary-delete','type':_0x4448b1[_0x2918aa(0xc5)],'handler':()=>!0x0},U={'id':_0x2918aa(0x9f),'type':_0x4448b1['COMMAND'],'handler':(_0x45cd9a,_0x1b1dce)=>{const _0x418fe2=_0x2918aa;var _0x2a7cc2,_0x67fbe8,_0x17f529;let _0x1aceea=W(_0x45cd9a,_0x1b1dce==null?void 0x0:_0x1b1dce[_0x418fe2(0x89)]);if(!_0x1aceea)return!0x1;let _0x64b0cd=G(_0x45cd9a),_0x4ca150=ae({'blockId':(_0x2a7cc2=_0x1b1dce==null?void 0x0:_0x1b1dce['blockId'])==null?_0x50f53a(0x6):_0x2a7cc2,'config':_0x1b1dce==null?void 0x0:_0x1b1dce['config'],'documentData':_0x1aceea[_0x418fe2(0x70)],'endOffset':(_0x67fbe8=_0x1b1dce==null?void 0x0:_0x1b1dce['endOffset'])==null?_0x64b0cd==null?void 0x0:_0x64b0cd[_0x418fe2(0xd7)]:_0x67fbe8,'metadata':_0x1aceea['model']['serialize'](_0x1aceea['unitId']),'startOffset':(_0x17f529=_0x1b1dce==null?void 0x0:_0x1b1dce[_0x418fe2(0x74)])==null?_0x64b0cd==null?void 0x0:_0x64b0cd[_0x418fe2(0x74)]:_0x17f529}),_0x3621c9=q(_0x1aceea['commandService'],_0x1aceea['unitId'],_0x1aceea['previousDocumentData'],_0x4ca150[_0x418fe2(0xea)],_0x4ca150['cursorOffset']);return _0x3621c9&&_0x4ca150[_0x418fe2(0xe1)]&&_0x1aceea[_0x418fe2(0xa8)][_0x418fe2(0xd1)](_0x1aceea[_0x418fe2(0x89)],_0x4ca150[_0x418fe2(0xe1)]),_0x3621c9;}},Pe={'id':_0x2918aa(0x7c),'type':_0x4448b1[_0x2918aa(0xc5)],'handler':(_0x398fbb,_0x22604c)=>{const _0xcaad2e=_0x2918aa;if(!_0x22604c)return!0x1;let _0x8f07bf=W(_0x398fbb,_0x22604c[_0xcaad2e(0x89)]);if(!_0x8f07bf)return!0x1;let _0x40040f=ce({'blockId':_0x22604c[_0xcaad2e(0xaf)],'config':_0x22604c['config'],'documentData':_0x8f07bf[_0xcaad2e(0x70)],'metadata':_0x8f07bf[_0xcaad2e(0xa8)][_0xcaad2e(0xe0)](_0x8f07bf[_0xcaad2e(0x89)])});return _0x40040f[_0xcaad2e(0xe1)]&&_0x8f07bf[_0xcaad2e(0xa8)][_0xcaad2e(0xd1)](_0x8f07bf['unitId'],_0x40040f[_0xcaad2e(0xe1)]),!0x0;}},Fe={'id':_0x2918aa(0x78),'type':_0x4448b1[_0x2918aa(0xc5)],'handler':(_0x117e35,_0x2e7ca9)=>{const _0x31f4c8=_0x2918aa;var _0x27a37a,_0x1b845d;let _0x243856=W(_0x117e35,_0x2e7ca9==null?void 0x0:_0x2e7ca9[_0x31f4c8(0x89)]);if(!_0x243856)return!0x1;let _0x26d390=(_0x27a37a=_0x2e7ca9==null?void 0x0:_0x2e7ca9[_0x31f4c8(0x76)])==null?(_0x1b845d=G(_0x117e35))==null?void 0x0:_0x1b845d[_0x31f4c8(0x74)]:_0x27a37a;if(_0x26d390==null)return!0x1;let _0x414f80=le({'cursorOffset':_0x26d390,'documentData':_0x243856[_0x31f4c8(0x70)]});return _0x414f80?q(_0x243856[_0x31f4c8(0xdf)],_0x243856[_0x31f4c8(0x89)],_0x243856[_0x31f4c8(0x70)],_0x414f80[_0x31f4c8(0xea)],_0x414f80[_0x31f4c8(0x76)]):!0x1;}},Ie={'id':'docs-code.command.cancel-empty-paragraph','type':_0x4448b1[_0x2918aa(0xc5)],'handler':(_0x82f01,_0x18ce13)=>{const _0x33f0c8=_0x2918aa;var _0x5733ab,_0x11a412;let _0x4bc559=W(_0x82f01,_0x18ce13==null?void 0x0:_0x18ce13[_0x33f0c8(0x89)]);if(!_0x4bc559)return!0x1;let _0x5a02a2=(_0x5733ab=_0x18ce13==null?void 0x0:_0x18ce13[_0x33f0c8(0x76)])==null?(_0x11a412=G(_0x82f01))==null?void 0x0:_0x11a412[_0x33f0c8(0x74)]:_0x5733ab;if(_0x5a02a2==null)return!0x1;let _0x4c0be4=ue({'cursorOffset':_0x5a02a2,'documentData':_0x4bc559[_0x33f0c8(0x70)],'paragraphStartIndex':_0x18ce13==null?void 0x0:_0x18ce13[_0x33f0c8(0xb1)]});return _0x4c0be4?q(_0x4bc559[_0x33f0c8(0xdf)],_0x4bc559[_0x33f0c8(0x89)],_0x4bc559['previousDocumentData'],_0x4c0be4[_0x33f0c8(0xea)],_0x4c0be4[_0x33f0c8(0x76)]):!0x1;}};function W(_0x596e12,_0x2abdb8){const _0x4f3a14=_0x2918aa;let _0x2a1c1d=_0x596e12[_0x4f3a14(0x82)](_0x20984d),_0x196684=_0x2abdb8?_0x2a1c1d[_0x4f3a14(0x8c)](_0x2abdb8):_0x2a1c1d[_0x4f3a14(0xd8)](_0x50ff8e[_0x4f3a14(0xcc)]);return _0x196684?{'commandService':_0x596e12[_0x4f3a14(0x82)](_0x3581cd),'model':_0x596e12[_0x4f3a14(0x82)](H),'previousDocumentData':_0x196684[_0x4f3a14(0xa2)](),'unitId':_0x196684[_0x4f3a14(0xd0)]()}:null;}function _0x4721(_0x44e784,_0xd5c8c5){_0x44e784=_0x44e784-0x6c;const _0x303fc1=_0x303f();let _0x4721ae=_0x303fc1[_0x44e784];return _0x4721ae;}function G(_0x43edd2){const _0x5243fa=_0x2918aa;var _0x17c90c;return(_0x17c90c=_0x43edd2[_0x5243fa(0x82)](_0x308de8)['getTextRanges']())==null?void 0x0:_0x17c90c[0x0];}function Le(_0x5e29d4){const _0x55a3c0=_0x2918aa;var _0x5e1458;let _0x32f272=(_0x5e1458=_0x5e29d4[_0x55a3c0(0x82)](_0x20984d)[_0x55a3c0(0xd8)](_0x50ff8e['UNIVER_DOC']))==null?void 0x0:_0x5e1458[_0x55a3c0(0xd0)]();try{return _0x5e29d4[_0x55a3c0(0x82)](_0x26ecbc)[_0x55a3c0(0xa9)](_0x32f272);}catch{return null;}}function Re(_0x50ee3f){const _0x2efba8=_0x2918aa;var _0x53cbb6,_0x1e5f0c,_0x2c9786;let _0x1fc85e=G(_0x50ee3f);if(!_0x1fc85e)return null;let _0x2a134e=_0x50ee3f[_0x2efba8(0x82)](_0x20984d)[_0x2efba8(0xd8)](_0x50ff8e[_0x2efba8(0xcc)]),_0x242478=_0x2a134e==null?void 0x0:_0x2a134e['getBody']();return _0x242478?(_0x53cbb6=_0x1dfe3e[_0x2efba8(0xd2)][_0x2efba8(0x7d)](_0x1fc85e,(_0x1e5f0c=_0x242478[_0x2efba8(0xcf)])==null?[]:_0x1e5f0c,(_0x2c9786=_0x242478[_0x2efba8(0x72)])==null?'':_0x2c9786)[0x0])==null?null:_0x53cbb6:null;}function ze(_0x1aad27,_0x3305e8){const _0x33ff01=_0x2918aa;var _0xaab6f7,_0x19f0ad,_0x4722af,_0x3ae5f6,_0x1f24cf,_0x38acf6,_0x1bc7c0,_0x5189c8,_0x22249c,_0xc3f3d4,_0x43351e,_0x329fb9,_0x493cf4,_0x3575e5,_0x75f9c3,_0x6ab05f,_0x3f785f,_0x4520ce;let _0x38e031=_0xaa2b42[_0x33ff01(0xa7)]();return[K(_0x38e031,[_0x33ff01(0x91),_0x33ff01(0x72)],(_0xaab6f7=_0x1aad27[_0x33ff01(0x91)])==null?void 0x0:_0xaab6f7[_0x33ff01(0x72)],(_0x19f0ad=_0x3305e8[_0x33ff01(0x91)])==null?void 0x0:_0x19f0ad[_0x33ff01(0x72)]),K(_0x38e031,[_0x33ff01(0x91),_0x33ff01(0xcf)],(_0x4722af=_0x1aad27[_0x33ff01(0x91)])==null?void 0x0:_0x4722af['paragraphs'],(_0x3ae5f6=_0x3305e8[_0x33ff01(0x91)])==null?void 0x0:_0x3ae5f6[_0x33ff01(0xcf)]),K(_0x38e031,['body',_0x33ff01(0x97)],(_0x1f24cf=_0x1aad27[_0x33ff01(0x91)])==null?void 0x0:_0x1f24cf[_0x33ff01(0x97)],(_0x38acf6=_0x3305e8['body'])==null?void 0x0:_0x38acf6[_0x33ff01(0x97)]),K(_0x38e031,['body',_0x33ff01(0xbf)],(_0x1bc7c0=_0x1aad27[_0x33ff01(0x91)])==null?void 0x0:_0x1bc7c0[_0x33ff01(0xbf)],(_0x5189c8=_0x3305e8[_0x33ff01(0x91)])==null?void 0x0:_0x5189c8['textRuns']),K(_0x38e031,['body','customBlocks'],(_0x22249c=_0x1aad27[_0x33ff01(0x91)])==null?void 0x0:_0x22249c[_0x33ff01(0x95)],(_0xc3f3d4=_0x3305e8[_0x33ff01(0x91)])==null?void 0x0:_0xc3f3d4[_0x33ff01(0x95)]),K(_0x38e031,[_0x33ff01(0x91),_0x33ff01(0xa4)],(_0x43351e=_0x1aad27['body'])==null?void 0x0:_0x43351e['customRanges'],(_0x329fb9=_0x3305e8['body'])==null?void 0x0:_0x329fb9['customRanges']),K(_0x38e031,[_0x33ff01(0x91),_0x33ff01(0x77)],(_0x493cf4=_0x1aad27[_0x33ff01(0x91)])==null?void 0x0:_0x493cf4[_0x33ff01(0x77)],(_0x3575e5=_0x3305e8[_0x33ff01(0x91)])==null?void 0x0:_0x3575e5['customDecorations']),K(_0x38e031,[_0x33ff01(0x91),_0x33ff01(0x7a)],(_0x75f9c3=_0x1aad27[_0x33ff01(0x91)])==null?void 0x0:_0x75f9c3[_0x33ff01(0x7a)],(_0x6ab05f=_0x3305e8[_0x33ff01(0x91)])==null?void 0x0:_0x6ab05f[_0x33ff01(0x7a)]),K(_0x38e031,[_0x33ff01(0x91),_0x33ff01(0xeb)],(_0x3f785f=_0x1aad27['body'])==null?void 0x0:_0x3f785f[_0x33ff01(0xeb)],(_0x4520ce=_0x3305e8[_0x33ff01(0x91)])==null?void 0x0:_0x4520ce[_0x33ff01(0xeb)])][_0x33ff01(0x85)](Boolean)['reduce']((_0x368df2,_0x24243c)=>_0xaa2b42[_0x33ff01(0xa0)](_0x368df2,_0x24243c),null);}function K(_0x5ccd71,_0x4afff3,_0x116aa0,_0x1eccca){const _0xc8feae=_0x2918aa;return _0x3348f8['diffValue'](_0x116aa0,_0x1eccca)?null:_0x5ccd71[_0xc8feae(0xdd)](_0x4afff3,_0x116aa0,_0x1eccca);}function q(_0x4dcc4,_0xbc1192,_0x43f9f6,_0x526a2c,_0x366cfb){const _0x5c5a6c=_0x2918aa;let _0x422364=ze(_0x43f9f6,_0x526a2c);return _0x422364?!!_0x4dcc4[_0x5c5a6c(0x87)](_0x3446f8['id'],{'unitId':_0xbc1192,'actions':_0x422364,'textRanges':[{'startOffset':_0x366cfb,'endOffset':_0x366cfb,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const J=_0x2918aa(0x71);var Be=_0x2918aa(0xb0),Ve=_0x2918aa(0x7f);const Y={};function X(_0x1f5aca,_0x2e53a2){return function(_0xead05a,_0x54cc4c){_0x2e53a2(_0xead05a,_0x54cc4c,_0x1f5aca);};}function Z(_0x4417a5,_0xa74c47,_0x2ba633,_0x5a6fc1){const _0x4c6800=_0x2918aa;var _0x7c3426=arguments[_0x4c6800(0xd4)],_0x5506aa=_0x7c3426<0x3?_0xa74c47:_0x5a6fc1===null?_0x5a6fc1=Object[_0x4c6800(0xc7)](_0xa74c47,_0x2ba633):_0x5a6fc1,_0x38a89f;if(typeof Reflect==_0x4c6800(0xba)&&typeof Reflect[_0x4c6800(0xb2)]==_0x4c6800(0x94))_0x5506aa=Reflect['decorate'](_0x4417a5,_0xa74c47,_0x2ba633,_0x5a6fc1);else{for(var _0x126f80=_0x4417a5[_0x4c6800(0xd4)]-0x1;_0x126f80>=0x0;_0x126f80--)(_0x38a89f=_0x4417a5[_0x126f80])&&(_0x5506aa=(_0x7c3426<0x3?_0x38a89f(_0x5506aa):_0x7c3426>0x3?_0x38a89f(_0xa74c47,_0x2ba633,_0x5506aa):_0x38a89f(_0xa74c47,_0x2ba633))||_0x5506aa);}return _0x7c3426>0x3&&_0x5506aa&&Object['defineProperty'](_0xa74c47,_0x2ba633,_0x5506aa),_0x5506aa;}let Q=class extends _0x7ff31{constructor(_0x5d8007,_0x3a8aed){const _0x220a40=_0x2918aa;super(),this[_0x220a40(0xbd)]=_0x5d8007,this[_0x220a40(0x99)]=_0x3a8aed,this[_0x220a40(0xa6)]();}[_0x2918aa(0xa6)](){const _0x1ee066=_0x2918aa;this[_0x1ee066(0xb9)](this['_resourceManagerService']['registerPluginResource']({'pluginName':J,'businesses':[_0x50ff8e[_0x1ee066(0xcc)]],'toJson':_0x120133=>JSON[_0x1ee066(0x83)](this[_0x1ee066(0x99)][_0x1ee066(0xe0)](_0x120133)),'parseJson':_0x230eaf=>w(JSON[_0x1ee066(0xbb)](_0x230eaf)),'onLoad':(_0x2d4669,_0x47a0f3)=>this[_0x1ee066(0x99)][_0x1ee066(0xd1)](_0x2d4669,_0x47a0f3),'onUnLoad':_0x504211=>this[_0x1ee066(0x99)][_0x1ee066(0xa1)](_0x504211)}));}};Q=Z([X(0x0,_0x517cbe),X(0x1,_0x1a3b9a(H))],Q);let $=class extends _0x15253c{constructor(_0x56ff03=Y,_0x1fe645,_0x5d1fca,_0x43761b){const _0x4de30f=_0x2918aa;super(),this[_0x4de30f(0xb7)]=_0x56ff03,this['_injector']=_0x1fe645,this[_0x4de30f(0x8a)]=_0x5d1fca,this[_0x4de30f(0xab)]=_0x43761b;let {..._0x5d29c5}=_0x384233({},Y,this[_0x4de30f(0xb7)]);this[_0x4de30f(0xab)][_0x4de30f(0x6e)]('docs-code.config',_0x5d29c5);}['onStarting'](){const _0x51fcbf=_0x2918aa;this[_0x51fcbf(0xb4)][_0x51fcbf(0xca)]([H]),this[_0x51fcbf(0xb4)][_0x51fcbf(0xca)]([Q]),this[_0x51fcbf(0xb4)][_0x51fcbf(0x82)](H),this[_0x51fcbf(0xb4)][_0x51fcbf(0x82)](Q),[U,Me,Pe,Fe,Ie,Ne]['forEach'](_0x160938=>this[_0x51fcbf(0xb9)](this[_0x51fcbf(0x8a)][_0x51fcbf(0xdb)](_0x160938)));}};V($,_0x2918aa(0xc2),J),V($,_0x2918aa(0xc0),Be),V($,_0x2918aa(0x86),Ve),V($,'type',_0x50ff8e[_0x2918aa(0xcc)]),$=Z([_0x5e7fa3(_0x47fcc9,_0x14757f),X(0x1,_0x1a3b9a(_0x50021e)),X(0x2,_0x3581cd),X(0x3,_0x1024e7)],$);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 _0x219c77=_0x4994;(function(_0x2b65b0,_0x126e1c){const _0x29566a=_0x4994,_0x238b3b=_0x2b65b0();while(!![]){try{const _0x32241e=parseInt(_0x29566a(0xa8))/0x1+-parseInt(_0x29566a(0x7e))/0x2+parseInt(_0x29566a(0x88))/0x3*(parseInt(_0x29566a(0xb7))/0x4)+parseInt(_0x29566a(0xc9))/0x5*(-parseInt(_0x29566a(0xc6))/0x6)+-parseInt(_0x29566a(0xec))/0x7*(parseInt(_0x29566a(0xaf))/0x8)+-parseInt(_0x29566a(0x6b))/0x9+parseInt(_0x29566a(0xa5))/0xa*(parseInt(_0x29566a(0xe8))/0xb);if(_0x32241e===_0x126e1c)break;else _0x238b3b['push'](_0x238b3b['shift']());}catch(_0x39bfe2){_0x238b3b['push'](_0x238b3b['shift']());}}}(_0x2a2a,0x5f27a));import{BuildTextUtils as _0x52d7f9,CommandType as _0x4ff736,DataStreamTreeTokenType as _0x4ed1bf,DependentOn as _0x268121,Disposable as _0x5107f0,DocumentBlockRangeType as _0x34d60f,ICommandService as _0x37df2c,IConfigService as _0x431f58,IResourceManagerService as _0x440e2f,IUniverInstanceService as _0x595ab8,Inject as _0x422fcc,Injector as _0x3af657,JSONX as _0x54cd09,Plugin as _0x4de551,Tools as _0x3fd2f4,UniverInstanceType as _0x47101f,createParagraphId as _0x44a586,generateRandomId as _0x12ff78,merge as _0xa8f50a}from'@univerjs/core';import{DocContentInsertService as _0x5727fa,DocSelectionManagerService as _0x41c563,RichTextEditingMutation as _0x40cd82,UniverDocsPlugin as _0x2ecad0}from'@univerjs/docs';import{Subject as _0x2f75e2}from'rxjs';import{UniverLicensePlugin as _0x48da71}from'@univerjs-pro/license';const S={'language':_0x219c77(0x75),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function C(_0x4a384b){return{...S,..._0x4a384b};}function w(_0x2631d6){const _0x14649e=_0x219c77;var _0x510d84;let _0x443897=(_0x510d84=_0x2631d6==null?void 0x0:_0x2631d6['codes'])==null?{}:_0x510d84;return{'codes':Object['fromEntries'](Object[_0x14649e(0xf1)](_0x443897)[_0x14649e(0xf0)](([_0x5673b3,_0xe55472])=>[_0x5673b3,C(_0xe55472)]))};}function T(_0xe86fec,_0x5292b0,_0x532988){const _0x512371=_0x219c77;let _0x10873f=w(_0xe86fec);return _0x10873f[_0x512371(0xe7)][_0x5292b0]=C({..._0x10873f['codes'][_0x5292b0],..._0x532988}),_0x10873f;}function re(_0x35fb01,_0x1f3ade){const _0x38de12=_0x219c77;let _0x48d536=w(_0x35fb01);return delete _0x48d536[_0x38de12(0xe7)][_0x1f3ade],_0x48d536;}const ie=_0x219c77(0x8d);function ae(_0x136ac3){const _0xe777e=_0x219c77;var _0x184156,_0x2b99ef,_0x5bcaf2;let _0x440a91=D(_0x136ac3[_0xe777e(0x76)]),_0x5bedb4=O(_0x440a91),_0x1e4399=se(_0x136ac3[_0xe777e(0x7f)],_0x136ac3['endOffset']),_0x2a22f5=_0x1e4399?(_0x184156=_0x5bedb4[_0xe777e(0xab)])==null?void 0x0:_0x184156[_0xe777e(0x71)](_0x1bf890=>_0x1bf890['startIndex']===_0x1e4399[_0xe777e(0x7f)]&&_0x1bf890[_0xe777e(0x90)]+0x1===_0x1e4399[_0xe777e(0xd8)]):void 0x0,{startOffset:_0xff7c45,endOffset:_0x4b9eed}=_0x2a22f5?_0x1e4399:ye(_0x5bedb4,_0x136ac3['startOffset'],_0x136ac3['endOffset']),_0x5d3e5c=Se(_0x5bedb4,_0xff7c45,_0x4b9eed),_0x29732a=(_0x2b99ef=_0x2a22f5==null?void 0x0:_0x2a22f5[_0xe777e(0x92)])==null?_0x136ac3['blockId']:_0x2b99ef,_0x1d91e7=T(_0x136ac3[_0xe777e(0x93)],_0x29732a,{...S,..._0x136ac3['config']});if(_0x2a22f5)return _0x2a22f5[_0xe777e(0xea)]=_0x34d60f[_0xe777e(0x80)],oe(_0x5bedb4,_0xff7c45,_0x4b9eed),he(_0x5bedb4,_0xff7c45,_0x4b9eed,_0x5d3e5c),M(_0x5bedb4,_0x2a22f5),{'nextDocumentData':_0x440a91,'nextMetadata':_0x1d91e7,'cursorOffset':_0xff7c45+0x1};if(_0xff7c45===_0x4b9eed){var _0x218fc1,_0x1083a8;let _0x2d96a5=''+_0x4ed1bf[_0xe777e(0xdb)]+_0x4ed1bf[_0xe777e(0x83)]+_0x4ed1bf[_0xe777e(0xa3)];N(_0x5bedb4,_0xff7c45,_0x2d96a5,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x44a586(new Set((_0x218fc1=_0x5bedb4[_0xe777e(0x6e)])==null?void 0x0:_0x218fc1[_0xe777e(0xf0)](_0x163468=>_0x163468[_0xe777e(0xb4)]))),'paragraphStyle':E(!0x0,!0x0,_0x5d3e5c)}],'blockRanges':[{'blockId':_0x29732a,'blockType':_0x34d60f[_0xe777e(0x80)],'startIndex':0x0,'endIndex':_0x2d96a5[_0xe777e(0xa6)]-0x1}]});let _0x2125c7=(_0x1083a8=_0x5bedb4['blockRanges'])==null?void 0x0:_0x1083a8[_0xe777e(0x71)](_0x93f428=>_0x93f428['blockId']===_0x29732a);return _0x2125c7&&M(_0x5bedb4,_0x2125c7),{'nextDocumentData':_0x440a91,'nextMetadata':_0x1d91e7,'cursorOffset':_0xff7c45+0x1};}N(_0x5bedb4,_0x4b9eed,_0x4ed1bf[_0xe777e(0xa3)]),N(_0x5bedb4,_0xff7c45,_0x4ed1bf['BLOCK_START']),he(_0x5bedb4,_0xff7c45,_0x4b9eed+0x1,_0x5d3e5c);let _0x15d7cc={'blockId':_0x29732a,'blockType':_0x34d60f[_0xe777e(0x80)],'startIndex':_0xff7c45,'endIndex':_0x4b9eed+0x1};return _0x5bedb4[_0xe777e(0xab)]=[...(_0x5bcaf2=_0x5bedb4[_0xe777e(0xab)])==null?[]:_0x5bcaf2,_0x15d7cc][_0xe777e(0x81)]((_0x20f0b1,_0x54cbaa)=>_0x20f0b1['startIndex']-_0x54cbaa[_0xe777e(0xe0)]),M(_0x5bedb4,_0x15d7cc),{'nextDocumentData':_0x440a91,'nextMetadata':_0x1d91e7,'cursorOffset':_0xff7c45+0x1};}function oe(_0x33bc82,_0xbac811,_0x564e66){const _0x3f841d=_0x219c77;var _0x5c82e5;((_0x5c82e5=_0x33bc82[_0x3f841d(0x6e)])==null?[]:_0x5c82e5)[_0x3f841d(0x74)](_0x340cbc=>_0x340cbc[_0x3f841d(0xe0)]>_0xbac811&&_0x340cbc['startIndex']<_0x564e66)[_0x3f841d(0xd3)](_0x30153a=>{const _0x33930c=_0x3f841d;var _0x390252;let _0x45cdf8={...(_0x390252=_0x30153a[_0x33930c(0x87)])==null?{}:_0x390252};delete _0x45cdf8[_0x33930c(0xca)],delete _0x45cdf8[_0x33930c(0xcd)],_0x30153a[_0x33930c(0x87)]=_0x45cdf8;});}function se(_0x5c4237,_0x349c8e){const _0x1b5890=_0x219c77;return _0x5c4237==null||_0x349c8e==null||_0x5c4237===_0x349c8e?null:{'startOffset':Math[_0x1b5890(0xdc)](_0x5c4237,_0x349c8e),'endOffset':Math[_0x1b5890(0x66)](_0x5c4237,_0x349c8e)};}function ce(_0x1337e9){const _0x5ab5c9=_0x219c77;return{'nextDocumentData':D(_0x1337e9['documentData']),'nextMetadata':T(_0x1337e9[_0x5ab5c9(0x93)],_0x1337e9[_0x5ab5c9(0x92)],_0x1337e9[_0x5ab5c9(0x84)]),'cursorOffset':0x0};}function le(_0x30a987){const _0x25f580=_0x219c77;var _0x2de818,_0x173fb3;let _0x3f2101=D(_0x30a987[_0x25f580(0x76)]),_0x282caf=O(_0x3f2101),_0x5c0e80=me(_0x282caf,_0x30a987['cursorOffset']);if(!_0x5c0e80)return null;let _0x436bc5=_e(_0x282caf,_0x5c0e80),_0x103bf9=_0x436bc5[_0x436bc5[_0x25f580(0xa6)]-0x1];if(!_0x103bf9||!ve(_0x282caf,_0x5c0e80,_0x103bf9)||_0x30a987[_0x25f580(0xc2)]<_0x103bf9[_0x25f580(0xe0)])return null;let _0x561186=A(_0x282caf,_0x5c0e80,_0x103bf9);if(_0x561186>=_0x5c0e80[_0x25f580(0x90)])return null;_0x282caf[_0x25f580(0x73)]=[_0x282caf[_0x25f580(0x73)][_0x25f580(0x70)](0x0,_0x561186),_0x4ed1bf[_0x25f580(0xa3)],_0x282caf[_0x25f580(0x73)]['slice'](_0x561186,_0x5c0e80['endIndex']),_0x282caf[_0x25f580(0x73)][_0x25f580(0x70)](_0x5c0e80['endIndex']+0x1)][_0x25f580(0x77)](''),R(_0x282caf[_0x25f580(0x6e)],_0x561186,_0x5c0e80['endIndex'],0x1),R(_0x282caf[_0x25f580(0xac)],_0x561186,_0x5c0e80[_0x25f580(0x90)],0x1),R(_0x282caf[_0x25f580(0x8a)],_0x561186,_0x5c0e80[_0x25f580(0x90)],0x1),ke(_0x282caf['textRuns'],_0x561186,_0x5c0e80[_0x25f580(0x90)],0x1),z(_0x282caf[_0x25f580(0xd7)],_0x561186,_0x5c0e80[_0x25f580(0x90)],0x1),z(_0x282caf[_0x25f580(0xef)],_0x561186,_0x5c0e80[_0x25f580(0x90)],0x1),z(_0x282caf['customDecorations'],_0x561186,_0x5c0e80['endIndex'],0x1),(_0x2de818=_0x282caf[_0x25f580(0xab)])==null||_0x2de818[_0x25f580(0xd3)](_0x51041d=>{const _0x29132e=_0x25f580;_0x51041d===_0x5c0e80||_0x51041d[_0x29132e(0x92)]===_0x5c0e80['blockId']?_0x51041d['endIndex']=_0x561186:_0x51041d[_0x29132e(0xe0)]>=_0x561186&&_0x51041d[_0x29132e(0xe0)]<_0x5c0e80[_0x29132e(0x90)]&&(_0x51041d['startIndex']+=0x1,_0x51041d[_0x29132e(0x90)]+=0x1);});let _0x5d9b5a=_e(_0x282caf,{..._0x5c0e80,'endIndex':_0x561186});_0x5d9b5a[_0x25f580(0xd3)]((_0x1da80f,_0x325f78)=>{const _0x5decce=_0x25f580;var _0x3bdf85;_0x1da80f[_0x5decce(0x87)]={...(_0x3bdf85=_0x1da80f[_0x5decce(0x87)])==null?{}:_0x3bdf85,...E(_0x325f78===0x0,_0x325f78===_0x5d9b5a[_0x5decce(0xa6)]-0x1)};});let _0x470b8f=(_0x173fb3=_0x282caf[_0x25f580(0x6e)])==null?void 0x0:_0x173fb3['find'](_0x249618=>_0x249618[_0x25f580(0xe0)]===_0x561186+0x1);return _0x470b8f&&(_0x470b8f['paragraphStyle']=ge(_0x470b8f['paragraphStyle'])),{'nextDocumentData':_0x3f2101,'cursorOffset':_0x561186+0x1};}function ue(_0x1c47ca){const _0x3592f1=_0x219c77;let _0x17129f=D(_0x1c47ca['documentData']),_0x50d17a=O(_0x17129f),_0x1b683b=me(_0x50d17a,_0x1c47ca[_0x3592f1(0xc2)]);return _0x1b683b&&de(_0x17129f,_0x50d17a,_0x1b683b,_0x1c47ca['cursorOffset'],_0x1c47ca[_0x3592f1(0xbd)])||null;}function de(_0x5c175b,_0x2bdb9c,_0x39bc6d,_0x45b4c4,_0x14c65e){const _0x416d7b=_0x219c77;let _0x37897f=we(_0x2bdb9c,_0x39bc6d,_0x45b4c4,_0x14c65e);if(!_0x37897f)return null;let _0x2804f4=_0x37897f[_0x416d7b(0x85)]-0x1;return Te(_0x2bdb9c,_0x37897f[_0x416d7b(0xa0)][_0x416d7b(0xe0)],_0x37897f[_0x416d7b(0xa0)]['startIndex']+0x1),{'nextDocumentData':_0x5c175b,'cursorOffset':_0x2804f4};}function fe(_0x45f2dc,_0x20d235){const _0x55be44=_0x219c77;var _0x44961e;return _0x45f2dc==null||(_0x44961e=_0x45f2dc['blockRanges'])==null?void 0x0:_0x44961e[_0x55be44(0x71)](_0x51bbc5=>_0x51bbc5['blockType']===_0x34d60f[_0x55be44(0x80)]&&_0x51bbc5[_0x55be44(0xe0)]<=_0x20d235&&_0x20d235<=_0x51bbc5['endIndex']);}function pe(_0x449ac6){const _0x1921bb=_0x219c77;var _0x4c0498;let _0x146aa8=_0x449ac6[_0x1921bb(0x76)][_0x1921bb(0x6f)];if(!_0x146aa8)return!0x1;let _0x8ff63a=_0x449ac6[_0x1921bb(0xed)]==='left'?_0x449ac6['cursorOffset']-0x1:_0x449ac6[_0x1921bb(0xc2)],_0x1bc5d0=_0x449ac6[_0x1921bb(0xed)]==='right'?_0x449ac6[_0x1921bb(0xc2)]+0x1:_0x8ff63a;return((_0x4c0498=_0x146aa8[_0x1921bb(0xab)])==null?[]:_0x4c0498)['some'](_0x1be12a=>_0x1be12a[_0x1921bb(0xea)]===_0x34d60f[_0x1921bb(0x80)]?_0x8ff63a===_0x1be12a[_0x1921bb(0xe0)]||_0x8ff63a===_0x1be12a[_0x1921bb(0x90)]||_0x1bc5d0===_0x1be12a[_0x1921bb(0xe0)]||_0x1bc5d0===_0x1be12a['endIndex']:!0x1);}function me(_0x570a7c,_0x10ab54){const _0x38c766=_0x219c77;var _0x2f80d9;return(_0x2f80d9=_0x570a7c['blockRanges'])==null?void 0x0:_0x2f80d9[_0x38c766(0x71)](_0x3818ba=>{const _0x4731cd=_0x38c766;let _0x28e843=j(_0x570a7c,_0x3818ba);return _0x3818ba[_0x4731cd(0xea)]===_0x34d60f['CODE']&&_0x3818ba[_0x4731cd(0xe0)]<=_0x10ab54&&_0x10ab54<=_0x28e843+0x2;});}function E(_0x513e92,_0x779d43,_0x2f84ad=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x513e92&&_0x2f84ad?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ie,'fs':0xc}};}function he(_0x56fc75,_0x1ae61e,_0xdbcfc2,_0x33517d=!0x1){const _0x506ffc=_0x219c77;var _0x1d2c0a;let _0x3da2e8=((_0x1d2c0a=_0x56fc75['paragraphs'])==null?[]:_0x1d2c0a)[_0x506ffc(0x74)](_0x2ac8f2=>_0x2ac8f2['startIndex']>_0x1ae61e&&_0x2ac8f2[_0x506ffc(0xe0)]<_0xdbcfc2);_0x3da2e8[_0x506ffc(0xd3)]((_0x26cf19,_0x1db83e)=>{const _0x34ed56=_0x506ffc;var _0x151f54;_0x26cf19['paragraphStyle']={...(_0x151f54=_0x26cf19['paragraphStyle'])==null?{}:_0x151f54,...E(_0x1db83e===0x0,_0x1db83e===_0x3da2e8[_0x34ed56(0xa6)]-0x1,_0x33517d)};});}function ge(_0x532bb9){const _0x5d60f3=_0x219c77;var _0x28a1a3,_0x4097a4;let _0x575a29={..._0x532bb9==null?{}:_0x532bb9};return delete _0x575a29['indentEnd'],delete _0x575a29[_0x5d60f3(0xb3)],delete _0x575a29['spaceAbove'],delete _0x575a29[_0x5d60f3(0xcd)],((_0x28a1a3=_0x575a29[_0x5d60f3(0xb0)])==null?void 0x0:_0x28a1a3['ff'])===ie&&((_0x4097a4=_0x575a29[_0x5d60f3(0xb0)])==null?void 0x0:_0x4097a4['fs'])===0xc&&delete _0x575a29[_0x5d60f3(0xb0)],_0x575a29;}function _e(_0x52ec27,_0x306a7f){const _0x3692fe=_0x219c77;var _0x293e8c;let _0x20470d=j(_0x52ec27,_0x306a7f);return((_0x293e8c=_0x52ec27[_0x3692fe(0x6e)])==null?[]:_0x293e8c)[_0x3692fe(0x74)](_0x56adf2=>_0x56adf2[_0x3692fe(0xe0)]>_0x306a7f[_0x3692fe(0xe0)]&&_0x56adf2[_0x3692fe(0xe0)]<_0x20470d);}function ve(_0x1c8d06,_0x5ce5ba,_0x2f4f41){const _0x2cb2ee=_0x219c77;let _0x938490=A(_0x1c8d06,_0x5ce5ba,_0x2f4f41),_0x4b9463=_0x1c8d06[_0x2cb2ee(0x73)]['slice'](_0x938490,_0x2f4f41['startIndex']);return Array['from'](_0x4b9463)[_0x2cb2ee(0x96)](_0xf71d78=>_0xf71d78===_0x4ed1bf['BLOCK_START']||_0xf71d78===_0x4ed1bf[_0x2cb2ee(0xa3)]);}function D(_0x34caaa){const _0x391afa=_0x219c77;return _0x3fd2f4[_0x391afa(0xc0)](_0x34caaa);}function O(_0x5c8e62){const _0x2f9148=_0x219c77;if(!_0x5c8e62['body'])throw Error(_0x2f9148(0x97));return _0x5c8e62[_0x2f9148(0x6f)];}function ye(_0x47551e,_0x2418a3,_0x4ea7f0){const _0x182576=_0x219c77;if(_0x2418a3==null||_0x4ea7f0==null){let _0x97b7f=xe(_0x47551e);return{'startOffset':_0x97b7f,'endOffset':_0x97b7f};}let _0x1acdfc=Math[_0x182576(0xdc)](_0x2418a3,_0x4ea7f0),_0x29672b=Math[_0x182576(0x66)](_0x2418a3,_0x4ea7f0);if(_0x1acdfc===_0x29672b){let _0x3c7bb9=be(_0x47551e,_0x1acdfc);return{'startOffset':_0x3c7bb9,'endOffset':_0x3c7bb9};}return Ce(_0x47551e,_0x1acdfc,_0x29672b);}function be(_0x39b05d,_0x39f0b9){const _0x1afea7=_0x219c77;return _0x39f0b9===0x0&&_0x39b05d[_0x1afea7(0x73)][0x0]===_0x4ed1bf[_0x1afea7(0x83)]?0x1:_0x39f0b9;}function xe(_0x2b06e4){const _0x423f45=_0x219c77;return _0x2b06e4[_0x423f45(0x73)][_0x423f45(0xe6)](_0x4ed1bf[_0x423f45(0x7d)])?Math[_0x423f45(0x66)](0x0,_0x2b06e4[_0x423f45(0x73)][_0x423f45(0xa6)]-0x1):_0x2b06e4[_0x423f45(0x73)][_0x423f45(0xa6)];}function Se(_0x1e19f9,_0x15a9e8,_0x3c2e7){const _0x562d17=_0x219c77;var _0xe463c4;let _0x1eaf81=Math['min'](_0x15a9e8,_0x3c2e7),_0x1241c7=Math[_0x562d17(0x66)](_0x15a9e8,_0x3c2e7);return!!((_0xe463c4=_0x1e19f9[_0x562d17(0xd7)])!=null&&_0xe463c4[_0x562d17(0xee)](_0x4265f2=>_0x1eaf81>_0x4265f2[_0x562d17(0xe0)]&&_0x1eaf81<_0x4265f2['endIndex']||_0x1241c7>_0x4265f2['startIndex']&&_0x1241c7<_0x4265f2[_0x562d17(0x90)]||_0x1eaf81<=_0x4265f2[_0x562d17(0xe0)]&&_0x1241c7>=_0x4265f2[_0x562d17(0x90)]));}function Ce(_0x497674,_0x579e0b,_0x536a20){const _0x3b5500=_0x219c77;var _0x46d3b9,_0x4ea261;let _0x139342=[...(_0x46d3b9=_0x497674[_0x3b5500(0x6e)])==null?[]:_0x46d3b9][_0x3b5500(0x81)]((_0x202d21,_0x1c81ba)=>_0x202d21[_0x3b5500(0xe0)]-_0x1c81ba[_0x3b5500(0xe0)]),_0x1de355=_0x139342['find']((_0x3bed3f,_0x37761d)=>(_0x37761d===0x0?0x0:_0x139342[_0x37761d-0x1]['startIndex']+0x1)<=_0x579e0b&&_0x579e0b<=_0x3bed3f['startIndex']),_0x2d5dbc=(_0x4ea261=_0x139342[_0x3b5500(0x71)](_0x8fbe47=>_0x8fbe47['startIndex']>=_0x536a20-0x1))==null?_0x139342[_0x139342['length']-0x1]:_0x4ea261;return{'startOffset':_0x1de355?k(_0x139342,_0x1de355):_0x579e0b,'endOffset':_0x2d5dbc?_0x2d5dbc[_0x3b5500(0xe0)]+0x1:_0x536a20};}function k(_0x365f70,_0x263f92){const _0x392b69=_0x219c77;let _0x42ec70=_0x365f70[_0x392b69(0xaa)](_0x263f92);return _0x42ec70>0x0?_0x365f70[_0x42ec70-0x1][_0x392b69(0xe0)]+0x1:0x0;}function _0x4994(_0x41117,_0x1705cf){_0x41117=_0x41117-0x66;const _0x2a2aa3=_0x2a2a();let _0x499423=_0x2a2aa3[_0x41117];return _0x499423;}function A(_0x38cbf5,_0x977bdb,_0x2318b5){const _0x29c4b3=_0x219c77;var _0x48757e;return Math['max'](k((_0x48757e=_0x38cbf5[_0x29c4b3(0x6e)])==null?[]:_0x48757e,_0x2318b5),_0x977bdb['startIndex']+0x1);}function j(_0x1344e5,_0x35d585){const _0x3106ad=_0x219c77;return _0x1344e5[_0x3106ad(0x73)][_0x35d585['endIndex']]===_0x4ed1bf[_0x3106ad(0xa3)]?_0x35d585[_0x3106ad(0x90)]:_0x1344e5[_0x3106ad(0x73)][_0x35d585['endIndex']+0x1]===_0x4ed1bf[_0x3106ad(0xa3)]?_0x35d585['endIndex']+0x1:_0x35d585[_0x3106ad(0x90)];}function we(_0x2bb676,_0xb3f65f,_0x560070,_0xf10bb7){const _0x282d5a=_0x219c77;var _0x11f297,_0x210a8;let _0x5c6aea=j(_0x2bb676,_0xb3f65f),_0x472ee9=((_0x11f297=_0x2bb676[_0x282d5a(0x6e)])==null?[]:_0x11f297)[_0x282d5a(0x71)](_0x42c98a=>_0x42c98a[_0x282d5a(0xe0)]===_0x5c6aea+0x1);if(!_0x472ee9||_0xf10bb7!=null&&_0x472ee9[_0x282d5a(0xe0)]!==_0xf10bb7||_0x560070<_0x5c6aea||_0x560070>_0x472ee9[_0x282d5a(0xe0)]+0x1||_0x2bb676[_0x282d5a(0x73)][_0x472ee9[_0x282d5a(0xe0)]]!==_0x4ed1bf['PARAGRAPH'])return null;let _0x45fe27=k((_0x210a8=_0x2bb676[_0x282d5a(0x6e)])==null?[]:_0x210a8,_0x472ee9),_0x3b2da9=_0x2bb676[_0x282d5a(0x73)]['slice'](_0x45fe27,_0x472ee9['startIndex']);return Array[_0x282d5a(0x79)](_0x3b2da9)[_0x282d5a(0x96)](_0x1839fd=>_0x1839fd===_0x4ed1bf[_0x282d5a(0xa3)])?{'paragraph':_0x472ee9,'endTokenOffset':_0x5c6aea}:null;}function M(_0x3a8f6a,_0x4d174d){const _0x2acff5=_0x219c77;var _0x402166;let _0x2717c3=j(_0x3a8f6a,_0x4d174d),_0x5a564c=_0x3a8f6a['dataStream'][_0x2717c3+0x1];_0x5a564c!==_0x4ed1bf[_0x2acff5(0x7d)]&&_0x5a564c!==void 0x0||N(_0x3a8f6a,_0x2717c3+0x1,_0x4ed1bf[_0x2acff5(0x83)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x44a586(new Set((_0x402166=_0x3a8f6a[_0x2acff5(0x6e)])==null?void 0x0:_0x402166[_0x2acff5(0xf0)](_0x1d4065=>_0x1d4065[_0x2acff5(0xb4)])))}]});}function N(_0x51cb5b,_0x57986c,_0x691d48,_0x3cd4e8={}){const _0x54c9f2=_0x219c77;var _0x526095,_0x39e5e5;if(_0x691d48){if(_0x51cb5b[_0x54c9f2(0x73)]=''+_0x51cb5b[_0x54c9f2(0x73)][_0x54c9f2(0x70)](0x0,_0x57986c)+_0x691d48+_0x51cb5b[_0x54c9f2(0x73)][_0x54c9f2(0x70)](_0x57986c),Ee(_0x51cb5b,_0x57986c,_0x691d48[_0x54c9f2(0xa6)]),(_0x526095=_0x3cd4e8['paragraphs'])!=null&&_0x526095[_0x54c9f2(0xa6)]){var _0x1b2f68;_0x51cb5b[_0x54c9f2(0x6e)]=[...(_0x1b2f68=_0x51cb5b[_0x54c9f2(0x6e)])==null?[]:_0x1b2f68,..._0x3cd4e8[_0x54c9f2(0x6e)]['map'](_0x4d878d=>({..._0x4d878d,'startIndex':_0x4d878d['startIndex']+_0x57986c}))]['sort']((_0x561467,_0x3f41c4)=>_0x561467[_0x54c9f2(0xe0)]-_0x3f41c4[_0x54c9f2(0xe0)]);}if((_0x39e5e5=_0x3cd4e8[_0x54c9f2(0xab)])!=null&&_0x39e5e5[_0x54c9f2(0xa6)]){var _0x2c7365;_0x51cb5b[_0x54c9f2(0xab)]=[...(_0x2c7365=_0x51cb5b[_0x54c9f2(0xab)])==null?[]:_0x2c7365,..._0x3cd4e8[_0x54c9f2(0xab)][_0x54c9f2(0xf0)](_0x51bc73=>({..._0x51bc73,'startIndex':_0x51bc73[_0x54c9f2(0xe0)]+_0x57986c,'endIndex':_0x51bc73[_0x54c9f2(0x90)]+_0x57986c}))][_0x54c9f2(0x81)]((_0xc71e03,_0x4b95c2)=>_0xc71e03[_0x54c9f2(0xe0)]-_0x4b95c2['startIndex']);}}}function Te(_0x27f232,_0x395520,_0x57abec){const _0x4c6368=_0x219c77;let _0x69e7b5=_0x57abec-_0x395520;_0x27f232[_0x4c6368(0x73)]=''+_0x27f232[_0x4c6368(0x73)][_0x4c6368(0x70)](0x0,_0x395520)+_0x27f232[_0x4c6368(0x73)][_0x4c6368(0x70)](_0x57abec),De(_0x27f232,_0x395520,_0x69e7b5);}function Ee(_0x1e90b2,_0x2a10a2,_0x4ec7ea){const _0x22ca78=_0x219c77;_0x1e90b2[_0x22ca78(0x6e)]=P(_0x1e90b2[_0x22ca78(0x6e)],_0x2a10a2,_0x4ec7ea),_0x1e90b2['sectionBreaks']=P(_0x1e90b2[_0x22ca78(0xac)],_0x2a10a2,_0x4ec7ea),_0x1e90b2[_0x22ca78(0x8a)]=P(_0x1e90b2[_0x22ca78(0x8a)],_0x2a10a2,_0x4ec7ea),_0x1e90b2[_0x22ca78(0x8b)]=Oe(_0x1e90b2[_0x22ca78(0x8b)],_0x2a10a2,_0x4ec7ea),_0x1e90b2[_0x22ca78(0xd7)]=I(_0x1e90b2['tables'],_0x2a10a2,_0x4ec7ea),_0x1e90b2[_0x22ca78(0xef)]=I(_0x1e90b2[_0x22ca78(0xef)],_0x2a10a2,_0x4ec7ea),_0x1e90b2[_0x22ca78(0x9b)]=I(_0x1e90b2[_0x22ca78(0x9b)],_0x2a10a2,_0x4ec7ea),_0x1e90b2[_0x22ca78(0xab)]=I(_0x1e90b2['blockRanges'],_0x2a10a2,_0x4ec7ea);}function De(_0x3ea248,_0x2504bc,_0x1e4aa2){const _0x10da64=_0x219c77;var _0x4dd940,_0x1c4218;_0x3ea248[_0x10da64(0x6e)]=F(_0x3ea248[_0x10da64(0x6e)],_0x2504bc,_0x1e4aa2),_0x3ea248[_0x10da64(0xac)]=F(_0x3ea248[_0x10da64(0xac)],_0x2504bc,_0x1e4aa2),_0x3ea248['customBlocks']=F(_0x3ea248['customBlocks'],_0x2504bc,_0x1e4aa2),_0x3ea248['textRuns']=(_0x4dd940=L((_0x1c4218=_0x3ea248[_0x10da64(0x8b)])==null?void 0x0:_0x1c4218[_0x10da64(0xf0)](_0x3f40db=>({..._0x3f40db,'startIndex':_0x3f40db['st'],'endIndex':_0x3f40db['ed']})),_0x2504bc,_0x1e4aa2))==null?void 0x0:_0x4dd940['map'](_0x5d7506=>{let {startIndex:_0x188698,endIndex:_0x4e6a15,..._0x42e0e6}=_0x5d7506;return{..._0x42e0e6,'st':_0x188698,'ed':_0x4e6a15};}),_0x3ea248[_0x10da64(0xd7)]=L(_0x3ea248[_0x10da64(0xd7)],_0x2504bc,_0x1e4aa2),_0x3ea248[_0x10da64(0xef)]=L(_0x3ea248['customRanges'],_0x2504bc,_0x1e4aa2),_0x3ea248[_0x10da64(0x9b)]=L(_0x3ea248['customDecorations'],_0x2504bc,_0x1e4aa2),_0x3ea248[_0x10da64(0xab)]=L(_0x3ea248[_0x10da64(0xab)],_0x2504bc,_0x1e4aa2);}function P(_0x338bf3,_0x50f22b,_0x7499bf){const _0x42ec9b=_0x219c77;return _0x338bf3==null?void 0x0:_0x338bf3['map'](_0x3378ac=>_0x3378ac[_0x42ec9b(0xe0)]>=_0x50f22b?{..._0x3378ac,'startIndex':_0x3378ac[_0x42ec9b(0xe0)]+_0x7499bf}:_0x3378ac);}function F(_0x3a82e0,_0x4eff07,_0x3c1141){const _0x2321a8=_0x219c77;let _0x323985=_0x4eff07+_0x3c1141;return _0x3a82e0==null?void 0x0:_0x3a82e0[_0x2321a8(0xf0)](_0x469624=>_0x469624[_0x2321a8(0xe0)]>=_0x4eff07&&_0x469624[_0x2321a8(0xe0)]<_0x323985?null:_0x469624[_0x2321a8(0xe0)]>=_0x323985?{..._0x469624,'startIndex':_0x469624[_0x2321a8(0xe0)]-_0x3c1141}:_0x469624)['filter'](_0x5eb63e=>_0x5eb63e!=null);}function Oe(_0x218590,_0x5e802e,_0x3f8eaf){const _0x4b07df=_0x219c77;return _0x218590==null?void 0x0:_0x218590[_0x4b07df(0xf0)](_0x34ac49=>_0x34ac49['st']>=_0x5e802e?{..._0x34ac49,'st':_0x34ac49['st']+_0x3f8eaf,'ed':_0x34ac49['ed']+_0x3f8eaf}:_0x34ac49['ed']>_0x5e802e?{..._0x34ac49,'ed':_0x34ac49['ed']+_0x3f8eaf}:_0x34ac49);}function I(_0x206fa4,_0x68a98c,_0x1ecd5b){const _0x447f13=_0x219c77;return _0x206fa4==null?void 0x0:_0x206fa4[_0x447f13(0xf0)](_0x117e80=>_0x117e80[_0x447f13(0xe0)]>=_0x68a98c?{..._0x117e80,'startIndex':_0x117e80[_0x447f13(0xe0)]+_0x1ecd5b,'endIndex':_0x117e80['endIndex']+_0x1ecd5b}:_0x117e80[_0x447f13(0x90)]>=_0x68a98c?{..._0x117e80,'endIndex':_0x117e80[_0x447f13(0x90)]+_0x1ecd5b}:_0x117e80);}function L(_0x54af54,_0x4fcfb5,_0x20535f){const _0x4c119c=_0x219c77;let _0x13fde0=_0x4fcfb5+_0x20535f;return _0x54af54==null?void 0x0:_0x54af54[_0x4c119c(0xf0)](_0x1975ab=>_0x1975ab[_0x4c119c(0xe0)]>=_0x4fcfb5&&_0x1975ab[_0x4c119c(0x90)]<_0x13fde0?null:_0x1975ab[_0x4c119c(0xe0)]>=_0x13fde0?{..._0x1975ab,'startIndex':_0x1975ab[_0x4c119c(0xe0)]-_0x20535f,'endIndex':_0x1975ab['endIndex']-_0x20535f}:_0x1975ab[_0x4c119c(0x90)]>=_0x4fcfb5?{..._0x1975ab,'startIndex':_0x1975ab['startIndex']<_0x4fcfb5?_0x1975ab['startIndex']:_0x4fcfb5,'endIndex':Math[_0x4c119c(0x66)](_0x4fcfb5,_0x1975ab[_0x4c119c(0x90)]-_0x20535f)}:_0x1975ab)[_0x4c119c(0x74)](_0xf87e17=>_0xf87e17!=null);}function R(_0x1b5513,_0x4daeb8,_0x5c8380,_0x78296a){const _0x25fd4c=_0x219c77;_0x1b5513==null||_0x1b5513[_0x25fd4c(0xd3)](_0x5376b9=>{const _0x2e9748=_0x25fd4c;_0x5376b9[_0x2e9748(0xe0)]>=_0x4daeb8&&_0x5376b9[_0x2e9748(0xe0)]<_0x5c8380&&(_0x5376b9[_0x2e9748(0xe0)]+=_0x78296a);});}function ke(_0x43b170,_0x4c2c6c,_0x4f7b8c,_0x22f436){const _0x2bb4bc=_0x219c77;_0x43b170==null||_0x43b170[_0x2bb4bc(0xd3)](_0x5e4910=>{_0x5e4910['st']>=_0x4c2c6c&&_0x5e4910['st']<_0x4f7b8c?(_0x5e4910['st']+=_0x22f436,_0x5e4910['ed']+=_0x22f436):_0x5e4910['ed']>_0x4c2c6c&&_0x5e4910['ed']<_0x4f7b8c&&(_0x5e4910['ed']+=_0x22f436);});}function z(_0x589596,_0x16d280,_0x17c3b6,_0x3cb343){const _0x525d7b=_0x219c77;_0x589596==null||_0x589596[_0x525d7b(0xd3)](_0xe1fe85=>{const _0x49def8=_0x525d7b;_0xe1fe85[_0x49def8(0xe0)]>=_0x16d280&&_0xe1fe85['startIndex']<_0x17c3b6?(_0xe1fe85['startIndex']+=_0x3cb343,_0xe1fe85[_0x49def8(0x90)]+=_0x3cb343):_0xe1fe85[_0x49def8(0x90)]>_0x16d280&&_0xe1fe85[_0x49def8(0x90)]<_0x17c3b6&&(_0xe1fe85[_0x49def8(0x90)]+=_0x3cb343);});}function B(_0x32eabd){'@babel/helpers - typeof';const _0x5a5f96=_0x219c77;return B=typeof Symbol==_0x5a5f96(0xd5)&&typeof Symbol[_0x5a5f96(0xc7)]=='symbol'?function(_0x500139){return typeof _0x500139;}:function(_0x4076d8){const _0x1ddac3=_0x5a5f96;return _0x4076d8&&typeof Symbol==_0x1ddac3(0xd5)&&_0x4076d8['constructor']===Symbol&&_0x4076d8!==Symbol[_0x1ddac3(0x86)]?_0x1ddac3(0xdd):typeof _0x4076d8;},B(_0x32eabd);}function Ae(_0x29d9cf,_0x564c9c){const _0x24890f=_0x219c77;if(B(_0x29d9cf)!='object'||!_0x29d9cf)return _0x29d9cf;var _0x2b67e4=_0x29d9cf[Symbol['toPrimitive']];if(_0x2b67e4!==void 0x0){var _0x46bc0a=_0x2b67e4[_0x24890f(0x94)](_0x29d9cf,_0x564c9c||_0x24890f(0xb6));if(B(_0x46bc0a)!=_0x24890f(0xe2))return _0x46bc0a;throw TypeError(_0x24890f(0xc5));}return(_0x564c9c===_0x24890f(0xbf)?String:Number)(_0x29d9cf);}function je(_0x1c91a3){const _0x407eb3=_0x219c77;var _0x5a7c8c=Ae(_0x1c91a3,_0x407eb3(0xbf));return B(_0x5a7c8c)==_0x407eb3(0xdd)?_0x5a7c8c:_0x5a7c8c+'';}function V(_0x564431,_0x9799a2,_0x95558b){return(_0x9799a2=je(_0x9799a2))in _0x564431?Object['defineProperty'](_0x564431,_0x9799a2,{'value':_0x95558b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x564431[_0x9799a2]=_0x95558b,_0x564431;}var H=class extends _0x5107f0{constructor(..._0x2f4e4d){const _0x1d47d8=_0x219c77;super(..._0x2f4e4d),V(this,_0x1d47d8(0xcf),new Map()),V(this,_0x1d47d8(0x9a),new _0x2f75e2()),V(this,'change$',this[_0x1d47d8(0x9a)]['asObservable']());}[_0x219c77(0xc3)](_0x4eaf86,_0x1f972d){const _0x554f74=_0x219c77;return w(this[_0x554f74(0xcf)][_0x554f74(0xda)](_0x4eaf86))[_0x554f74(0xe7)][_0x1f972d];}[_0x219c77(0xd4)](_0x216631,_0x350b30,_0x4892a9){const _0x2bb5d6=_0x219c77;this[_0x2bb5d6(0xd1)](_0x216631,_0x350b30,T(this[_0x2bb5d6(0xcf)][_0x2bb5d6(0xda)](_0x216631),_0x350b30,_0x4892a9));}[_0x219c77(0x9d)](_0xcf21d8,_0x56effb){const _0x457e1c=_0x219c77;this[_0x457e1c(0xd1)](_0xcf21d8,_0x56effb,re(this[_0x457e1c(0xcf)][_0x457e1c(0xda)](_0xcf21d8),_0x56effb));}[_0x219c77(0xbb)](_0x395d66){const _0xa4bc47=_0x219c77;return w(this[_0xa4bc47(0xcf)][_0xa4bc47(0xda)](_0x395d66));}[_0x219c77(0x6a)](_0x1677b0,_0x3dd10e){const _0x182c15=_0x219c77;this[_0x182c15(0xcf)]['set'](_0x1677b0,w(_0x3dd10e)),this[_0x182c15(0x9a)]['next']({'unitId':_0x1677b0});}[_0x219c77(0xa7)](_0x570e80){const _0x1b5f22=_0x219c77;this[_0x1b5f22(0xcf)][_0x1b5f22(0xe4)](_0x570e80),this[_0x1b5f22(0x9a)][_0x1b5f22(0x99)]({'unitId':_0x570e80});}['dispose'](){const _0xacb6e1=_0x219c77;super[_0xacb6e1(0xcc)](),this['_resources'][_0xacb6e1(0xce)](),this[_0xacb6e1(0x9a)][_0xacb6e1(0x78)]();}['_setResource'](_0x5822c5,_0x415a38,_0x568370){const _0x224a8f=_0x219c77;this[_0x224a8f(0xcf)][_0x224a8f(0x9f)](_0x5822c5,_0x568370),this['_change$'][_0x224a8f(0x99)]({'unitId':_0x5822c5,'blockId':_0x415a38});}};const Me={'id':_0x219c77(0xa1),'type':_0x4ff736[_0x219c77(0x91)],'handler':_0x2738d7=>{const _0x366320=_0x219c77;let _0x48509b=Le(_0x2738d7);if(_0x48509b)return _0x2738d7[_0x366320(0xda)](_0x37df2c)[_0x366320(0xd9)](U['id'],{'startOffset':_0x48509b[_0x366320(0x7f)],'endOffset':_0x48509b[_0x366320(0xd8)],'unitId':_0x48509b[_0x366320(0xcb)]});let _0x36886d=Re(_0x2738d7);if(!_0x36886d)return!0x1;let _0x280c96=_0x36886d[_0x366320(0xe0)]+0x1;return _0x2738d7['get'](_0x37df2c)[_0x366320(0xd9)](U['id'],{'startOffset':_0x280c96,'endOffset':_0x280c96});}},Ne={'id':_0x219c77(0x98),'type':_0x4ff736[_0x219c77(0x91)],'handler':()=>!0x0},U={'id':_0x219c77(0xa9),'type':_0x4ff736['COMMAND'],'handler':(_0x58d320,_0x30fb75)=>{const _0x102ff0=_0x219c77;var _0x23ac4c,_0x3edff8,_0x22d189;let _0x4db182=W(_0x58d320,_0x30fb75==null?void 0x0:_0x30fb75['unitId']);if(!_0x4db182)return!0x1;let _0x287d2c=G(_0x58d320),_0x34365b=ae({'blockId':(_0x23ac4c=_0x30fb75==null?void 0x0:_0x30fb75[_0x102ff0(0x92)])==null?_0x12ff78(0x6):_0x23ac4c,'config':_0x30fb75==null?void 0x0:_0x30fb75[_0x102ff0(0x84)],'documentData':_0x4db182[_0x102ff0(0x8e)],'endOffset':(_0x3edff8=_0x30fb75==null?void 0x0:_0x30fb75[_0x102ff0(0xd8)])==null?_0x287d2c==null?void 0x0:_0x287d2c[_0x102ff0(0xd8)]:_0x3edff8,'metadata':_0x4db182[_0x102ff0(0x7b)][_0x102ff0(0xbb)](_0x4db182[_0x102ff0(0xcb)]),'startOffset':(_0x22d189=_0x30fb75==null?void 0x0:_0x30fb75[_0x102ff0(0x7f)])==null?_0x287d2c==null?void 0x0:_0x287d2c[_0x102ff0(0x7f)]:_0x22d189}),_0x599ff5=q(_0x4db182['commandService'],_0x4db182[_0x102ff0(0xcb)],_0x4db182[_0x102ff0(0x8e)],_0x34365b['nextDocumentData'],_0x34365b[_0x102ff0(0xc2)]);return _0x599ff5&&_0x34365b['nextMetadata']&&_0x4db182[_0x102ff0(0x7b)][_0x102ff0(0x6a)](_0x4db182[_0x102ff0(0xcb)],_0x34365b[_0x102ff0(0x8c)]),_0x599ff5;}},Pe={'id':_0x219c77(0xb5),'type':_0x4ff736[_0x219c77(0x91)],'handler':(_0x10877a,_0x37d9c8)=>{const _0x3f2e87=_0x219c77;if(!_0x37d9c8)return!0x1;let _0x5f2e44=W(_0x10877a,_0x37d9c8[_0x3f2e87(0xcb)]);if(!_0x5f2e44)return!0x1;let _0xb73a31=ce({'blockId':_0x37d9c8['blockId'],'config':_0x37d9c8[_0x3f2e87(0x84)],'documentData':_0x5f2e44[_0x3f2e87(0x8e)],'metadata':_0x5f2e44[_0x3f2e87(0x7b)]['serialize'](_0x5f2e44[_0x3f2e87(0xcb)])});return _0xb73a31[_0x3f2e87(0x8c)]&&_0x5f2e44[_0x3f2e87(0x7b)]['deserialize'](_0x5f2e44[_0x3f2e87(0xcb)],_0xb73a31[_0x3f2e87(0x8c)]),!0x0;}},Fe={'id':_0x219c77(0xe5),'type':_0x4ff736[_0x219c77(0x91)],'handler':(_0x4a82fa,_0x284006)=>{const _0x328b80=_0x219c77;var _0xefa2ec,_0x8090f3;let _0x40dd71=W(_0x4a82fa,_0x284006==null?void 0x0:_0x284006[_0x328b80(0xcb)]);if(!_0x40dd71)return!0x1;let _0x162e1e=(_0xefa2ec=_0x284006==null?void 0x0:_0x284006[_0x328b80(0xc2)])==null?(_0x8090f3=G(_0x4a82fa))==null?void 0x0:_0x8090f3[_0x328b80(0x7f)]:_0xefa2ec;if(_0x162e1e==null)return!0x1;let _0x5897b6=le({'cursorOffset':_0x162e1e,'documentData':_0x40dd71[_0x328b80(0x8e)]});return _0x5897b6?q(_0x40dd71[_0x328b80(0xc1)],_0x40dd71[_0x328b80(0xcb)],_0x40dd71['previousDocumentData'],_0x5897b6[_0x328b80(0x8f)],_0x5897b6[_0x328b80(0xc2)]):!0x1;}},Ie={'id':'docs-code.command.cancel-empty-paragraph','type':_0x4ff736[_0x219c77(0x91)],'handler':(_0x131f09,_0xed3cd6)=>{const _0xb17efa=_0x219c77;var _0xaa5934,_0x5543bb;let _0x5907dd=W(_0x131f09,_0xed3cd6==null?void 0x0:_0xed3cd6[_0xb17efa(0xcb)]);if(!_0x5907dd)return!0x1;let _0x7aee23=(_0xaa5934=_0xed3cd6==null?void 0x0:_0xed3cd6[_0xb17efa(0xc2)])==null?(_0x5543bb=G(_0x131f09))==null?void 0x0:_0x5543bb['startOffset']:_0xaa5934;if(_0x7aee23==null)return!0x1;let _0x24a917=ue({'cursorOffset':_0x7aee23,'documentData':_0x5907dd['previousDocumentData'],'paragraphStartIndex':_0xed3cd6==null?void 0x0:_0xed3cd6[_0xb17efa(0xbd)]});return _0x24a917?q(_0x5907dd[_0xb17efa(0xc1)],_0x5907dd[_0xb17efa(0xcb)],_0x5907dd[_0xb17efa(0x8e)],_0x24a917['nextDocumentData'],_0x24a917[_0xb17efa(0xc2)]):!0x1;}};function W(_0x1831e0,_0x2665ed){const _0x2c5ef1=_0x219c77;let _0x3ede72=_0x1831e0[_0x2c5ef1(0xda)](_0x595ab8),_0xfe163b=_0x2665ed?_0x3ede72[_0x2c5ef1(0x82)](_0x2665ed):_0x3ede72[_0x2c5ef1(0x89)](_0x47101f[_0x2c5ef1(0xe3)]);return _0xfe163b?{'commandService':_0x1831e0[_0x2c5ef1(0xda)](_0x37df2c),'model':_0x1831e0[_0x2c5ef1(0xda)](H),'previousDocumentData':_0xfe163b['getSnapshot'](),'unitId':_0xfe163b[_0x2c5ef1(0xbc)]()}:null;}function G(_0x562e10){const _0x473226=_0x219c77;var _0x5ba7cd;return(_0x5ba7cd=_0x562e10[_0x473226(0xda)](_0x41c563)[_0x473226(0x7c)]())==null?void 0x0:_0x5ba7cd[0x0];}function Le(_0x3bdd49){const _0x1e3ccb=_0x219c77;var _0x56d65c;let _0x2fc5e5=(_0x56d65c=_0x3bdd49[_0x1e3ccb(0xda)](_0x595ab8)[_0x1e3ccb(0x89)](_0x47101f[_0x1e3ccb(0xe3)]))==null?void 0x0:_0x56d65c[_0x1e3ccb(0xbc)]();try{return _0x3bdd49[_0x1e3ccb(0xda)](_0x5727fa)[_0x1e3ccb(0xbe)](_0x2fc5e5);}catch{return null;}}function Re(_0xf840f){const _0x37a7aa=_0x219c77;var _0x30193b,_0xecbf3f,_0xf7d6de;let _0x51d53a=G(_0xf840f);if(!_0x51d53a)return null;let _0x421317=_0xf840f[_0x37a7aa(0xda)](_0x595ab8)[_0x37a7aa(0x89)](_0x47101f[_0x37a7aa(0xe3)]),_0x3d3494=_0x421317==null?void 0x0:_0x421317[_0x37a7aa(0x9c)]();return _0x3d3494?(_0x30193b=_0x52d7f9['range']['getParagraphsInRange'](_0x51d53a,(_0xecbf3f=_0x3d3494[_0x37a7aa(0x6e)])==null?[]:_0xecbf3f,(_0xf7d6de=_0x3d3494['dataStream'])==null?'':_0xf7d6de)[0x0])==null?null:_0x30193b:null;}function ze(_0x593c2c,_0xc541c){const _0x4a7b70=_0x219c77;var _0x1fed2e,_0xf4faf7,_0x46af51,_0x5352d7,_0x4b78a7,_0x57f04e,_0x9d5867,_0x7079be,_0x16d43e,_0x36a153,_0x1efdf8,_0x21e3d7,_0x153f4f,_0x2899e7,_0x2dfbb0,_0x2a4832,_0x3a6007,_0x1894b7;let _0x5a903f=_0x54cd09[_0x4a7b70(0xae)]();return[K(_0x5a903f,[_0x4a7b70(0x6f),_0x4a7b70(0x73)],(_0x1fed2e=_0x593c2c['body'])==null?void 0x0:_0x1fed2e[_0x4a7b70(0x73)],(_0xf4faf7=_0xc541c['body'])==null?void 0x0:_0xf4faf7[_0x4a7b70(0x73)]),K(_0x5a903f,[_0x4a7b70(0x6f),'paragraphs'],(_0x46af51=_0x593c2c[_0x4a7b70(0x6f)])==null?void 0x0:_0x46af51[_0x4a7b70(0x6e)],(_0x5352d7=_0xc541c[_0x4a7b70(0x6f)])==null?void 0x0:_0x5352d7[_0x4a7b70(0x6e)]),K(_0x5a903f,[_0x4a7b70(0x6f),_0x4a7b70(0xac)],(_0x4b78a7=_0x593c2c[_0x4a7b70(0x6f)])==null?void 0x0:_0x4b78a7[_0x4a7b70(0xac)],(_0x57f04e=_0xc541c['body'])==null?void 0x0:_0x57f04e[_0x4a7b70(0xac)]),K(_0x5a903f,[_0x4a7b70(0x6f),'textRuns'],(_0x9d5867=_0x593c2c['body'])==null?void 0x0:_0x9d5867[_0x4a7b70(0x8b)],(_0x7079be=_0xc541c[_0x4a7b70(0x6f)])==null?void 0x0:_0x7079be[_0x4a7b70(0x8b)]),K(_0x5a903f,[_0x4a7b70(0x6f),_0x4a7b70(0x8a)],(_0x16d43e=_0x593c2c[_0x4a7b70(0x6f)])==null?void 0x0:_0x16d43e[_0x4a7b70(0x8a)],(_0x36a153=_0xc541c[_0x4a7b70(0x6f)])==null?void 0x0:_0x36a153[_0x4a7b70(0x8a)]),K(_0x5a903f,[_0x4a7b70(0x6f),_0x4a7b70(0xef)],(_0x1efdf8=_0x593c2c[_0x4a7b70(0x6f)])==null?void 0x0:_0x1efdf8['customRanges'],(_0x21e3d7=_0xc541c[_0x4a7b70(0x6f)])==null?void 0x0:_0x21e3d7[_0x4a7b70(0xef)]),K(_0x5a903f,[_0x4a7b70(0x6f),_0x4a7b70(0x9b)],(_0x153f4f=_0x593c2c[_0x4a7b70(0x6f)])==null?void 0x0:_0x153f4f['customDecorations'],(_0x2899e7=_0xc541c[_0x4a7b70(0x6f)])==null?void 0x0:_0x2899e7[_0x4a7b70(0x9b)]),K(_0x5a903f,[_0x4a7b70(0x6f),_0x4a7b70(0xd7)],(_0x2dfbb0=_0x593c2c[_0x4a7b70(0x6f)])==null?void 0x0:_0x2dfbb0[_0x4a7b70(0xd7)],(_0x2a4832=_0xc541c[_0x4a7b70(0x6f)])==null?void 0x0:_0x2a4832[_0x4a7b70(0xd7)]),K(_0x5a903f,[_0x4a7b70(0x6f),_0x4a7b70(0xab)],(_0x3a6007=_0x593c2c['body'])==null?void 0x0:_0x3a6007[_0x4a7b70(0xab)],(_0x1894b7=_0xc541c[_0x4a7b70(0x6f)])==null?void 0x0:_0x1894b7[_0x4a7b70(0xab)])][_0x4a7b70(0x74)](Boolean)[_0x4a7b70(0xb1)]((_0x5731e6,_0x135d22)=>_0x54cd09['compose'](_0x5731e6,_0x135d22),null);}function K(_0x426755,_0x34c781,_0x4c4095,_0x3c9bc0){const _0x3f92f2=_0x219c77;return _0x3fd2f4[_0x3f92f2(0xd2)](_0x4c4095,_0x3c9bc0)?null:_0x426755[_0x3f92f2(0xad)](_0x34c781,_0x4c4095,_0x3c9bc0);}function q(_0x442045,_0x1e1805,_0x24eba0,_0x26f75f,_0x124e86){const _0x3f22d6=_0x219c77;let _0x4772c5=ze(_0x24eba0,_0x26f75f);return _0x4772c5?!!_0x442045[_0x3f22d6(0xd9)](_0x40cd82['id'],{'unitId':_0x1e1805,'actions':_0x4772c5,'textRanges':[{'startOffset':_0x124e86,'endOffset':_0x124e86,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const J=_0x219c77(0xb9);var Be=_0x219c77(0xd0),Ve=_0x219c77(0xb8);const Y={};function X(_0x285c62,_0x5c8745){return function(_0x5227f6,_0xcc5c68){_0x5c8745(_0x5227f6,_0xcc5c68,_0x285c62);};}function Z(_0x73c503,_0x1d7686,_0xdda2bb,_0x407e81){const _0x1a02ce=_0x219c77;var _0x17aa97=arguments['length'],_0x27b880=_0x17aa97<0x3?_0x1d7686:_0x407e81===null?_0x407e81=Object['getOwnPropertyDescriptor'](_0x1d7686,_0xdda2bb):_0x407e81,_0x3cf8e6;if(typeof Reflect=='object'&&typeof Reflect[_0x1a02ce(0x9e)]==_0x1a02ce(0xd5))_0x27b880=Reflect['decorate'](_0x73c503,_0x1d7686,_0xdda2bb,_0x407e81);else{for(var _0x468cee=_0x73c503['length']-0x1;_0x468cee>=0x0;_0x468cee--)(_0x3cf8e6=_0x73c503[_0x468cee])&&(_0x27b880=(_0x17aa97<0x3?_0x3cf8e6(_0x27b880):_0x17aa97>0x3?_0x3cf8e6(_0x1d7686,_0xdda2bb,_0x27b880):_0x3cf8e6(_0x1d7686,_0xdda2bb))||_0x27b880);}return _0x17aa97>0x3&&_0x27b880&&Object[_0x1a02ce(0xe1)](_0x1d7686,_0xdda2bb,_0x27b880),_0x27b880;}let Q=class extends _0x5107f0{constructor(_0x433373,_0x309058){const _0x4da57c=_0x219c77;super(),this['_resourceManagerService']=_0x433373,this[_0x4da57c(0xc8)]=_0x309058,this[_0x4da57c(0xa4)]();}[_0x219c77(0xa4)](){const _0x1c6174=_0x219c77;this[_0x1c6174(0x72)](this['_resourceManagerService'][_0x1c6174(0x69)]({'pluginName':J,'businesses':[_0x47101f['UNIVER_DOC']],'toJson':_0x4df0ca=>JSON[_0x1c6174(0xb2)](this['_docsCodeModel']['serialize'](_0x4df0ca)),'parseJson':_0x46ebd5=>w(JSON[_0x1c6174(0x6c)](_0x46ebd5)),'onLoad':(_0x36f431,_0x1c12b2)=>this[_0x1c6174(0xc8)][_0x1c6174(0x6a)](_0x36f431,_0x1c12b2),'onUnLoad':_0x21da33=>this[_0x1c6174(0xc8)]['removeUnit'](_0x21da33)}));}};Q=Z([X(0x0,_0x440e2f),X(0x1,_0x422fcc(H))],Q);function _0x2a2a(){const _0x382717=['symbol','_injector','registerCommand','startIndex','defineProperty','object','UNIVER_DOC','delete','docs-code.command.exit','endsWith','codes','187nfWdBo','_commandService','blockType','setConfig','6937itKUSD','direction','some','customRanges','map','entries','max','onStarting','type','registerPluginResource','deserialize','3702258wmLZyj','parse','add','paragraphs','body','slice','find','disposeWithMe','dataStream','filter','javascript','documentData','join','complete','from','version','model','getTextRanges','SECTION_BREAK','1110032lkUmMy','startOffset','CODE','sort','getUniverDocInstance','PARAGRAPH','config','endTokenOffset','prototype','paragraphStyle','363JaCEmg','getCurrentUnitOfType','customBlocks','textRuns','nextMetadata','monospace','previousDocumentData','nextDocumentData','endIndex','COMMAND','blockId','metadata','call','packageName','every','Document\x20body\x20is\x20required','docs-code.command.consume-boundary-delete','next','_change$','customDecorations','getBody','removeCode','decorate','set','paragraph','docs-code.command.insert-below','_configService','BLOCK_END','_initResource','934130DRFSrj','length','removeUnit','88541QXqGix','docs-code.command.insert','indexOf','blockRanges','sectionBreaks','replaceOp','getInstance','3896qgISxu','textStyle','reduce','stringify','indentStart','paragraphId','docs-code.command.update','default','6012dqyHmE','1.0.0-insiders.20260701-0ef51b0','DOC_CODE_PLUGIN','pluginName','serialize','getUnitId','paragraphStartIndex','consumeInsertRange','string','deepClone','commandService','cursorOffset','getCodeConfig','_config','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','118056aWZQDH','iterator','_docsCodeModel','5ScxZsl','spaceAbove','unitId','dispose','spaceBelow','clear','_resources','@univerjs-pro/docs-code','_setResource','diffValue','forEach','setCodeConfig','function','docs-code.config','tables','endOffset','syncExecuteCommand','get','BLOCK_START','min'];_0x2a2a=function(){return _0x382717;};return _0x2a2a();}let $=class extends _0x4de551{constructor(_0x6b7fbe=Y,_0x76ea31,_0x14e177,_0x288b4c){const _0xcb864e=_0x219c77;super(),this[_0xcb864e(0xc4)]=_0x6b7fbe,this[_0xcb864e(0xde)]=_0x76ea31,this[_0xcb864e(0xe9)]=_0x14e177,this['_configService']=_0x288b4c;let {..._0x46a0c8}=_0xa8f50a({},Y,this[_0xcb864e(0xc4)]);this[_0xcb864e(0xa2)][_0xcb864e(0xeb)](_0xcb864e(0xd6),_0x46a0c8);}[_0x219c77(0x67)](){const _0xc80b6a=_0x219c77;this[_0xc80b6a(0xde)][_0xc80b6a(0x6d)]([H]),this['_injector'][_0xc80b6a(0x6d)]([Q]),this[_0xc80b6a(0xde)]['get'](H),this[_0xc80b6a(0xde)][_0xc80b6a(0xda)](Q),[U,Me,Pe,Fe,Ie,Ne][_0xc80b6a(0xd3)](_0xfa5925=>this[_0xc80b6a(0x72)](this[_0xc80b6a(0xe9)][_0xc80b6a(0xdf)](_0xfa5925)));}};V($,_0x219c77(0xba),J),V($,_0x219c77(0x95),Be),V($,_0x219c77(0x7a),Ve),V($,_0x219c77(0x68),_0x47101f['UNIVER_DOC']),$=Z([_0x268121(_0x48da71,_0x2ecad0),X(0x1,_0x422fcc(_0x3af657)),X(0x2,_0x37df2c),X(0x3,_0x431f58)],$);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 _0x2a3e37=_0x40ef;function _0x4986(){var _0x4269a1=['replace','blockType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','createInstance','iterator','220782ZGAGax','getCodeConfig','text','defineProperty','findCodes','getType','getCodeAt','blockId','endIndex','some','_blockId','1686050gPBLnQ','dataStream','findCodeByText','config','decorate','12huLucc','join','exit','save','map','28HChzLj','7143983enHiCu','includes','getRange','getId','blockRanges','find','PARAGRAPH','_injector','CODE','updateConfig','get','22688AswxZE','getCodes','paragraph','_unitId','object','99EYaFQX','extend','describe','_getDocumentData','_getBlockRanges','3588816McDJLj','body','insertCode','BLOCK_END','function','_document','1318aXNoEF','string','from','syncExecuteCommand','getConfig','_createFDocumentCode','836110PcpUOH','startIndex','symbol','724YUgitR','_getBlockRange','call','getText','toPrimitive','length','exitCode','filter'];_0x4986=function(){return _0x4269a1;};return _0x4986();}(function(_0x33682e,_0x3af135){var _0x99c594=_0x40ef,_0xe289fa=_0x33682e();while(!![]){try{var _0x1bc629=-parseInt(_0x99c594(0x1f4))/0x1*(parseInt(_0x99c594(0x1b6))/0x2)+-parseInt(_0x99c594(0x1c3))/0x3*(-parseInt(_0x99c594(0x1d8))/0x4)+parseInt(_0x99c594(0x1b3))/0x5*(parseInt(_0x99c594(0x1d3))/0x6)+-parseInt(_0x99c594(0x1ee))/0x7+parseInt(_0x99c594(0x1e4))/0x8*(-parseInt(_0x99c594(0x1e9))/0x9)+-parseInt(_0x99c594(0x1ce))/0xa+parseInt(_0x99c594(0x1d9))/0xb;if(_0x1bc629===_0x3af135)break;else _0xe289fa['push'](_0xe289fa['shift']());}catch(_0x36361d){_0xe289fa['push'](_0xe289fa['shift']());}}}(_0x4986,0x4b8ca));import{DocsCodeCancelEmptyParagraphCommand as _0x2b2a05,DocsCodeExitCommand as _0x2fb0d3,DocsCodeInsertCommand as _0xd979f7,DocsCodeModel as _0x1d1c72,DocsCodeUpdateCommand as _0x2aaa6a,normalizeDocsCodeConfig as _0x1741bb}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x282b86,DocumentBlockRangeType as _0x46c20e,ICommandService as _0x31c5e7,Inject as _0x2bc39d,Injector as _0xf2643,generateRandomId as _0x8f6a75}from'@univerjs/core';import{FDocument as _0x226821}from'@univerjs/docs/facade';function p(_0x27a3f0){'@babel/helpers - typeof';var _0x781b30=_0x40ef;return p=typeof Symbol=='function'&&typeof Symbol[_0x781b30(0x1c2)]=='symbol'?function(_0x51645b){return typeof _0x51645b;}:function(_0x49f6ec){var _0x581bd6=_0x781b30;return _0x49f6ec&&typeof Symbol==_0x581bd6(0x1f2)&&_0x49f6ec['constructor']===Symbol&&_0x49f6ec!==Symbol['prototype']?_0x581bd6(0x1b5):typeof _0x49f6ec;},p(_0x27a3f0);}function m(_0x3ebd9e,_0xb27e98){var _0x276a91=_0x40ef;if(p(_0x3ebd9e)!=_0x276a91(0x1e8)||!_0x3ebd9e)return _0x3ebd9e;var _0x58139f=_0x3ebd9e[Symbol[_0x276a91(0x1ba)]];if(_0x58139f!==void 0x0){var _0x50ed38=_0x58139f[_0x276a91(0x1b8)](_0x3ebd9e,_0xb27e98||'default');if(p(_0x50ed38)!=_0x276a91(0x1e8))return _0x50ed38;throw TypeError(_0x276a91(0x1c0));}return(_0xb27e98===_0x276a91(0x1ae)?String:Number)(_0x3ebd9e);}function _0x40ef(_0x19f70c,_0x536f65){_0x19f70c=_0x19f70c-0x1ae;var _0x498668=_0x4986();var _0x40ef54=_0x498668[_0x19f70c];return _0x40ef54;}function h(_0x488a7b){var _0x4babb8=_0x40ef,_0x189800=m(_0x488a7b,_0x4babb8(0x1ae));return p(_0x189800)=='symbol'?_0x189800:_0x189800+'';}function g(_0x3982ed,_0x47c043,_0x1d4f17){return(_0x47c043=h(_0x47c043))in _0x3982ed?Object['defineProperty'](_0x3982ed,_0x47c043,{'value':_0x1d4f17,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3982ed[_0x47c043]=_0x1d4f17,_0x3982ed;}function _(_0x3456c2,_0x5884cc){return function(_0x549cb8,_0x3aeee4){_0x5884cc(_0x549cb8,_0x3aeee4,_0x3456c2);};}function v(_0x4d7c19,_0x3c0d54,_0x5d68ad,_0x4a41ae){var _0x1d8472=_0x40ef,_0x587628=arguments[_0x1d8472(0x1bb)],_0x30890b=_0x587628<0x3?_0x3c0d54:_0x4a41ae===null?_0x4a41ae=Object['getOwnPropertyDescriptor'](_0x3c0d54,_0x5d68ad):_0x4a41ae,_0x1fadc2;if(typeof Reflect==_0x1d8472(0x1e8)&&typeof Reflect['decorate']=='function')_0x30890b=Reflect[_0x1d8472(0x1d2)](_0x4d7c19,_0x3c0d54,_0x5d68ad,_0x4a41ae);else{for(var _0x366775=_0x4d7c19[_0x1d8472(0x1bb)]-0x1;_0x366775>=0x0;_0x366775--)(_0x1fadc2=_0x4d7c19[_0x366775])&&(_0x30890b=(_0x587628<0x3?_0x1fadc2(_0x30890b):_0x587628>0x3?_0x1fadc2(_0x3c0d54,_0x5d68ad,_0x30890b):_0x1fadc2(_0x3c0d54,_0x5d68ad))||_0x30890b);}return _0x587628>0x3&&_0x30890b&&Object[_0x1d8472(0x1c6)](_0x3c0d54,_0x5d68ad,_0x30890b),_0x30890b;}let y=class{constructor(_0x1a17cb,_0x47219c,_0x4e4316){var _0x4d5f9b=_0x40ef;this[_0x4d5f9b(0x1f3)]=_0x1a17cb,this[_0x4d5f9b(0x1cd)]=_0x47219c,this[_0x4d5f9b(0x1e0)]=_0x4e4316,g(this,_0x4d5f9b(0x1e7),void 0x0),this[_0x4d5f9b(0x1e7)]=this[_0x4d5f9b(0x1f3)][_0x4d5f9b(0x1dc)]();}['getId'](){var _0x24c567=_0x40ef;return this[_0x24c567(0x1cd)];}[_0x2a3e37(0x1db)](){var _0x564173=_0x2a3e37;let _0x9e1e80=this['_getBlockRange']();return _0x9e1e80?{'blockId':_0x9e1e80['blockId'],'endIndex':_0x9e1e80[_0x564173(0x1cb)],'startIndex':_0x9e1e80[_0x564173(0x1b4)]}:null;}[_0x2a3e37(0x1b9)](){var _0x568309=_0x2a3e37,_0x4149fc;let _0x4f2d1c=this[_0x568309(0x1b7)](),_0x1308fa=(_0x4149fc=this[_0x568309(0x1ec)]()[_0x568309(0x1ef)])==null?void 0x0:_0x4149fc[_0x568309(0x1cf)];return!_0x4f2d1c||!_0x1308fa?'':b(_0x1308fa['slice'](_0x4f2d1c['startIndex']+0x1,_0x4f2d1c['endIndex']));}[_0x2a3e37(0x1eb)](){var _0x388bdf=_0x2a3e37;let _0x413bf2=this['getRange']();return _0x413bf2?{..._0x413bf2,'config':this['getConfig'](),'text':this[_0x388bdf(0x1b9)](),'type':_0x46c20e['CODE']}:null;}[_0x2a3e37(0x1b1)](){var _0x24cdde=_0x2a3e37;return _0x1741bb(this[_0x24cdde(0x1e0)][_0x24cdde(0x1e3)](_0x1d1c72)[_0x24cdde(0x1c4)](this[_0x24cdde(0x1e7)],this[_0x24cdde(0x1cd)]));}[_0x2a3e37(0x1e2)](_0x14689d){var _0x502ff5=_0x2a3e37;return this['_injector'][_0x502ff5(0x1e3)](_0x31c5e7)[_0x502ff5(0x1b0)](_0x2aaa6a['id'],{'blockId':this['_blockId'],'config':_0x14689d[_0x502ff5(0x1d1)],'unitId':this[_0x502ff5(0x1e7)]});}[_0x2a3e37(0x1d5)](_0x97dace){var _0xf89bd0=_0x2a3e37;return this[_0xf89bd0(0x1e0)][_0xf89bd0(0x1e3)](_0x31c5e7)['syncExecuteCommand'](_0x2fb0d3['id'],{'cursorOffset':_0x97dace,'unitId':this[_0xf89bd0(0x1e7)]});}['cancelEmptyParagraph'](_0x5945e2={}){var _0x34d6ee=_0x2a3e37;return this['_injector']['get'](_0x31c5e7)[_0x34d6ee(0x1b0)](_0x2b2a05['id'],{..._0x5945e2,'unitId':this[_0x34d6ee(0x1e7)]});}[_0x2a3e37(0x1ec)](){var _0x13b7d3=_0x2a3e37;return this['_document'][_0x13b7d3(0x1d6)]();}[_0x2a3e37(0x1b7)](){var _0x536a13=_0x2a3e37,_0x5aaf80;let _0x4025cf=(_0x5aaf80=this[_0x536a13(0x1ec)]()[_0x536a13(0x1ef)])==null||(_0x5aaf80=_0x5aaf80[_0x536a13(0x1dd)])==null?void 0x0:_0x5aaf80[_0x536a13(0x1de)](_0x3d05d4=>_0x3d05d4[_0x536a13(0x1ca)]===this[_0x536a13(0x1cd)]&&_0x3d05d4['blockType']===_0x46c20e[_0x536a13(0x1e1)]);return _0x4025cf==null?null:_0x4025cf;}};y=v([_(0x2,_0x2bc39d(_0xf2643))],y);function b(_0x2d856c){var _0x40d7e9=_0x2a3e37;return Array[_0x40d7e9(0x1af)](_0x2d856c)[_0x40d7e9(0x1d7)](_0x76dbc1=>_0x76dbc1===_0x282b86[_0x40d7e9(0x1df)]?'\x0a':_0x76dbc1)[_0x40d7e9(0x1bd)](_0x1ceebb=>_0x1ceebb!==_0x282b86['BLOCK_START']&&_0x1ceebb!==_0x282b86[_0x40d7e9(0x1f1)]&&_0x1ceebb!==_0x282b86['SECTION_BREAK'])[_0x40d7e9(0x1d4)]('')[_0x40d7e9(0x1be)](/\n$/,'');}var x=class extends _0x226821{[_0x2a3e37(0x1e5)](){var _0x13d6e2=_0x2a3e37;return this[_0x13d6e2(0x1ed)]()[_0x13d6e2(0x1bd)](_0x3c1c11=>_0x3c1c11[_0x13d6e2(0x1bf)]===_0x46c20e[_0x13d6e2(0x1e1)])['map'](_0x133c12=>this[_0x13d6e2(0x1b2)](_0x133c12['blockId']));}['getCode'](_0x459f67){var _0x2bebc4=_0x2a3e37;return this[_0x2bebc4(0x1ed)]()[_0x2bebc4(0x1cc)](_0x360065=>_0x360065[_0x2bebc4(0x1ca)]===_0x459f67&&_0x360065[_0x2bebc4(0x1bf)]===_0x46c20e[_0x2bebc4(0x1e1)])?this[_0x2bebc4(0x1b2)](_0x459f67):null;}[_0x2a3e37(0x1c9)](_0x303e3f){var _0x2f6859=_0x2a3e37;let _0x564465=this[_0x2f6859(0x1ed)]()[_0x2f6859(0x1de)](_0x197642=>_0x197642[_0x2f6859(0x1bf)]===_0x46c20e[_0x2f6859(0x1e1)]&&_0x197642[_0x2f6859(0x1b4)]<=_0x303e3f&&_0x303e3f<=_0x197642[_0x2f6859(0x1cb)]);return _0x564465?this[_0x2f6859(0x1b2)](_0x564465[_0x2f6859(0x1ca)]):null;}[_0x2a3e37(0x1d0)](_0x357149){var _0x523e91=_0x2a3e37,_0x5b2809;return(_0x5b2809=this[_0x523e91(0x1c7)](_0x357149)[0x0])==null?null:_0x5b2809;}[_0x2a3e37(0x1c7)](_0x549cc3){var _0x177df3=_0x2a3e37;let _0x5cf560=typeof _0x549cc3=='string'?{'text':_0x549cc3}:_0x549cc3;return this[_0x177df3(0x1e5)]()[_0x177df3(0x1bd)](_0x3cfbd4=>!(_0x5cf560['blockId']&&_0x3cfbd4[_0x177df3(0x1dc)]()!==_0x5cf560[_0x177df3(0x1ca)]||_0x5cf560['text']&&!_0x3cfbd4[_0x177df3(0x1b9)]()[_0x177df3(0x1da)](_0x5cf560[_0x177df3(0x1c5)])));}[_0x2a3e37(0x1f0)](_0x53f888={},_0x14996e={}){var _0x319908=_0x2a3e37,_0x3aa714;let _0x293988=this['_injector'][_0x319908(0x1e3)](_0x31c5e7),_0x29fa05=S(_0x53f888)?{..._0x14996e,...C(_0x53f888)}:_0x53f888,_0x4d8400=(_0x3aa714=_0x29fa05[_0x319908(0x1ca)])==null?_0x8f6a75(0x6):_0x3aa714;return _0x293988[_0x319908(0x1b0)](_0xd979f7['id'],{..._0x29fa05,'blockId':_0x4d8400,'unitId':this[_0x319908(0x1dc)]()})?this[_0x319908(0x1b2)](_0x4d8400):null;}[_0x2a3e37(0x1bc)](_0x1c4f05){var _0x36a7c6=_0x2a3e37;return this['_injector'][_0x36a7c6(0x1e3)](_0x31c5e7)[_0x36a7c6(0x1b0)](_0x2fb0d3['id'],{'cursorOffset':_0x1c4f05,'unitId':this['getId']()});}['cancelEmptyCodeParagraph'](_0x1c6775={}){var _0x57e09a=_0x2a3e37;return this['_injector'][_0x57e09a(0x1e3)](_0x31c5e7)[_0x57e09a(0x1b0)](_0x2b2a05['id'],{..._0x1c6775,'unitId':this[_0x57e09a(0x1dc)]()});}['_getBlockRanges'](){var _0x270c52=_0x2a3e37,_0xa7a39c,_0x49e420;return(_0xa7a39c=(_0x49e420=this[_0x270c52(0x1d6)]()[_0x270c52(0x1ef)])==null?void 0x0:_0x49e420[_0x270c52(0x1dd)])==null?[]:_0xa7a39c;}['_createFDocumentCode'](_0x33c9af){var _0x3c25c2=_0x2a3e37;return this[_0x3c25c2(0x1e0)][_0x3c25c2(0x1c1)](y,this,_0x33c9af);}};function S(_0x4cd42){var _0x5c9d6c=_0x2a3e37;return typeof _0x4cd42==_0x5c9d6c(0x1e8)&&!!_0x4cd42&&typeof _0x4cd42['getKey']==_0x5c9d6c(0x1f2)&&typeof _0x4cd42[_0x5c9d6c(0x1db)]==_0x5c9d6c(0x1f2)&&typeof _0x4cd42[_0x5c9d6c(0x1c8)]==_0x5c9d6c(0x1f2)&&_0x4cd42[_0x5c9d6c(0x1c8)]()===_0x5c9d6c(0x1e6);}function C(_0x3ea013){return _0x3ea013['getRange']();}_0x226821[_0x2a3e37(0x1ea)](x);export{y as FDocumentCode};
1
+ var _0x265ff2=_0x1b87;(function(_0x287cc4,_0x433309){var _0x2fbc11=_0x1b87,_0x4ec689=_0x287cc4();while(!![]){try{var _0x44823c=-parseInt(_0x2fbc11(0xd9))/0x1*(-parseInt(_0x2fbc11(0xf0))/0x2)+-parseInt(_0x2fbc11(0xf8))/0x3+-parseInt(_0x2fbc11(0xe4))/0x4+parseInt(_0x2fbc11(0xcf))/0x5+-parseInt(_0x2fbc11(0x103))/0x6*(parseInt(_0x2fbc11(0xfa))/0x7)+parseInt(_0x2fbc11(0xfc))/0x8*(parseInt(_0x2fbc11(0xd1))/0x9)+parseInt(_0x2fbc11(0xe6))/0xa*(-parseInt(_0x2fbc11(0xde))/0xb);if(_0x44823c===_0x433309)break;else _0x4ec689['push'](_0x4ec689['shift']());}catch(_0x1008fc){_0x4ec689['push'](_0x4ec689['shift']());}}}(_0x1864,0xa1eaa));import{DocsCodeCancelEmptyParagraphCommand as _0x345880,DocsCodeExitCommand as _0x1aea34,DocsCodeInsertCommand as _0x5c1c8b,DocsCodeModel as _0x4c99b3,DocsCodeUpdateCommand as _0x4c43bf,normalizeDocsCodeConfig as _0x49f66d}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x4d6957,DocumentBlockRangeType as _0x53badc,ICommandService as _0x4437cc,Inject as _0x560d9f,Injector as _0x2c366a,generateRandomId as _0x2730ac}from'@univerjs/core';import{FDocument as _0x2080cf}from'@univerjs/docs/facade';function p(_0x433ffb){'@babel/helpers - typeof';var _0x3aa06c=_0x1b87;return p=typeof Symbol==_0x3aa06c(0xec)&&typeof Symbol['iterator']==_0x3aa06c(0xdd)?function(_0x588fc7){return typeof _0x588fc7;}:function(_0x3c3385){var _0x345ce3=_0x3aa06c;return _0x3c3385&&typeof Symbol==_0x345ce3(0xec)&&_0x3c3385[_0x345ce3(0xe3)]===Symbol&&_0x3c3385!==Symbol[_0x345ce3(0x10d)]?_0x345ce3(0xdd):typeof _0x3c3385;},p(_0x433ffb);}function m(_0x19ef80,_0x235fa1){var _0x25b068=_0x1b87;if(p(_0x19ef80)!=_0x25b068(0xf4)||!_0x19ef80)return _0x19ef80;var _0x27a395=_0x19ef80[Symbol[_0x25b068(0xfe)]];if(_0x27a395!==void 0x0){var _0x276cb8=_0x27a395['call'](_0x19ef80,_0x235fa1||_0x25b068(0xeb));if(p(_0x276cb8)!='object')return _0x276cb8;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x235fa1===_0x25b068(0xf1)?String:Number)(_0x19ef80);}function h(_0x5863bc){var _0x213622=_0x1b87,_0x5f0162=m(_0x5863bc,_0x213622(0xf1));return p(_0x5f0162)=='symbol'?_0x5f0162:_0x5f0162+'';}function g(_0x3259cd,_0x4b14ea,_0x19edc3){var _0x24cbef=_0x1b87;return(_0x4b14ea=h(_0x4b14ea))in _0x3259cd?Object[_0x24cbef(0xc9)](_0x3259cd,_0x4b14ea,{'value':_0x19edc3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3259cd[_0x4b14ea]=_0x19edc3,_0x3259cd;}function _(_0x3e0ae8,_0x5e09ce){return function(_0x1b7516,_0x299fce){_0x5e09ce(_0x1b7516,_0x299fce,_0x3e0ae8);};}function v(_0xb05074,_0x2d36dd,_0x10cb41,_0xf9150f){var _0x8d1af=_0x1b87,_0x6318ab=arguments[_0x8d1af(0xfb)],_0x1e568c=_0x6318ab<0x3?_0x2d36dd:_0xf9150f===null?_0xf9150f=Object[_0x8d1af(0xf3)](_0x2d36dd,_0x10cb41):_0xf9150f,_0x56c4d0;if(typeof Reflect==_0x8d1af(0xf4)&&typeof Reflect[_0x8d1af(0x10b)]==_0x8d1af(0xec))_0x1e568c=Reflect['decorate'](_0xb05074,_0x2d36dd,_0x10cb41,_0xf9150f);else{for(var _0x21f442=_0xb05074[_0x8d1af(0xfb)]-0x1;_0x21f442>=0x0;_0x21f442--)(_0x56c4d0=_0xb05074[_0x21f442])&&(_0x1e568c=(_0x6318ab<0x3?_0x56c4d0(_0x1e568c):_0x6318ab>0x3?_0x56c4d0(_0x2d36dd,_0x10cb41,_0x1e568c):_0x56c4d0(_0x2d36dd,_0x10cb41))||_0x1e568c);}return _0x6318ab>0x3&&_0x1e568c&&Object[_0x8d1af(0xc9)](_0x2d36dd,_0x10cb41,_0x1e568c),_0x1e568c;}function _0x1864(){var _0x2194a7=['string','getCodeConfig','getOwnPropertyDescriptor','object','getId','includes','config','2656935ytidhf','blockType','7dxSRpd','length','161576xGzxpa','blockRanges','toPrimitive','find','paragraph','get','_injector','908706ViPOgX','slice','map','save','getConfig','cancelEmptyCodeParagraph','getCode','dataStream','decorate','text','prototype','getRange','defineProperty','cancelEmptyParagraph','from','describe','_getDocumentData','findCodes','5035945TzTvRG','_getBlockRanges','576LDOgiS','_createFDocumentCode','syncExecuteCommand','body','insertCode','getText','BLOCK_END','getKey','1jSeFaA','_unitId','filter','createInstance','symbol','11lnPepN','_getBlockRange','join','startIndex','BLOCK_START','constructor','3655572ASirWO','_document','7926110wDufUp','exitCode','endIndex','getCodes','blockId','default','function','_blockId','replace','CODE','2214026ZVvfbc'];_0x1864=function(){return _0x2194a7;};return _0x1864();}function _0x1b87(_0x429a25,_0x199353){_0x429a25=_0x429a25-0xc8;var _0x18648d=_0x1864();var _0x1b87f5=_0x18648d[_0x429a25];return _0x1b87f5;}let y=class{constructor(_0x386029,_0x1ef2c2,_0x3b4144){var _0x37cb6b=_0x1b87;this['_document']=_0x386029,this[_0x37cb6b(0xed)]=_0x1ef2c2,this[_0x37cb6b(0x102)]=_0x3b4144,g(this,_0x37cb6b(0xda),void 0x0),this['_unitId']=this['_document'][_0x37cb6b(0xf5)]();}[_0x265ff2(0xf5)](){var _0x2e3626=_0x265ff2;return this[_0x2e3626(0xed)];}['getRange'](){var _0x370c8e=_0x265ff2;let _0x5ec735=this['_getBlockRange']();return _0x5ec735?{'blockId':_0x5ec735[_0x370c8e(0xea)],'endIndex':_0x5ec735[_0x370c8e(0xe8)],'startIndex':_0x5ec735[_0x370c8e(0xe1)]}:null;}['getText'](){var _0x31f900=_0x265ff2,_0x2a8703;let _0x305c5b=this[_0x31f900(0xdf)](),_0xe3ff5b=(_0x2a8703=this[_0x31f900(0xcd)]()[_0x31f900(0xd4)])==null?void 0x0:_0x2a8703[_0x31f900(0x10a)];return!_0x305c5b||!_0xe3ff5b?'':b(_0xe3ff5b[_0x31f900(0x104)](_0x305c5b[_0x31f900(0xe1)]+0x1,_0x305c5b[_0x31f900(0xe8)]));}[_0x265ff2(0xcc)](){var _0x4b6034=_0x265ff2;let _0x5971cf=this[_0x4b6034(0xc8)]();return _0x5971cf?{..._0x5971cf,'config':this['getConfig'](),'text':this[_0x4b6034(0xd6)](),'type':_0x53badc[_0x4b6034(0xef)]}:null;}[_0x265ff2(0x107)](){var _0xf81e1f=_0x265ff2;return _0x49f66d(this[_0xf81e1f(0x102)]['get'](_0x4c99b3)[_0xf81e1f(0xf2)](this[_0xf81e1f(0xda)],this[_0xf81e1f(0xed)]));}['updateConfig'](_0x42b96f){var _0x332006=_0x265ff2;return this[_0x332006(0x102)][_0x332006(0x101)](_0x4437cc)[_0x332006(0xd3)](_0x4c43bf['id'],{'blockId':this['_blockId'],'config':_0x42b96f[_0x332006(0xf7)],'unitId':this[_0x332006(0xda)]});}['exit'](_0x2c1316){var _0x4579a0=_0x265ff2;return this[_0x4579a0(0x102)]['get'](_0x4437cc)[_0x4579a0(0xd3)](_0x1aea34['id'],{'cursorOffset':_0x2c1316,'unitId':this['_unitId']});}[_0x265ff2(0xca)](_0x253991={}){var _0x4f21ad=_0x265ff2;return this[_0x4f21ad(0x102)][_0x4f21ad(0x101)](_0x4437cc)[_0x4f21ad(0xd3)](_0x345880['id'],{..._0x253991,'unitId':this[_0x4f21ad(0xda)]});}[_0x265ff2(0xcd)](){var _0xfcaa6f=_0x265ff2;return this[_0xfcaa6f(0xe5)][_0xfcaa6f(0x106)]();}[_0x265ff2(0xdf)](){var _0x1fea15=_0x265ff2,_0x237ffd;let _0x5f50b5=(_0x237ffd=this[_0x1fea15(0xcd)]()['body'])==null||(_0x237ffd=_0x237ffd[_0x1fea15(0xfd)])==null?void 0x0:_0x237ffd[_0x1fea15(0xff)](_0xcdfa3d=>_0xcdfa3d[_0x1fea15(0xea)]===this[_0x1fea15(0xed)]&&_0xcdfa3d[_0x1fea15(0xf9)]===_0x53badc['CODE']);return _0x5f50b5==null?null:_0x5f50b5;}};y=v([_(0x2,_0x560d9f(_0x2c366a))],y);function b(_0x1dbb77){var _0x117116=_0x265ff2;return Array[_0x117116(0xcb)](_0x1dbb77)['map'](_0xadabd7=>_0xadabd7===_0x4d6957['PARAGRAPH']?'\x0a':_0xadabd7)['filter'](_0x37efcf=>_0x37efcf!==_0x4d6957[_0x117116(0xe2)]&&_0x37efcf!==_0x4d6957[_0x117116(0xd7)]&&_0x37efcf!==_0x4d6957['SECTION_BREAK'])[_0x117116(0xe0)]('')[_0x117116(0xee)](/\n$/,'');}var x=class extends _0x2080cf{[_0x265ff2(0xe9)](){var _0x2c7a01=_0x265ff2;return this[_0x2c7a01(0xd0)]()[_0x2c7a01(0xdb)](_0xf1f00=>_0xf1f00['blockType']===_0x53badc[_0x2c7a01(0xef)])[_0x2c7a01(0x105)](_0x547bed=>this[_0x2c7a01(0xd2)](_0x547bed['blockId']));}[_0x265ff2(0x109)](_0x21fa7a){var _0x4006f8=_0x265ff2;return this[_0x4006f8(0xd0)]()['some'](_0x2abc0a=>_0x2abc0a[_0x4006f8(0xea)]===_0x21fa7a&&_0x2abc0a['blockType']===_0x53badc[_0x4006f8(0xef)])?this[_0x4006f8(0xd2)](_0x21fa7a):null;}['getCodeAt'](_0x4b4680){var _0x4e6916=_0x265ff2;let _0x4ff399=this['_getBlockRanges']()[_0x4e6916(0xff)](_0x1a3ddb=>_0x1a3ddb[_0x4e6916(0xf9)]===_0x53badc[_0x4e6916(0xef)]&&_0x1a3ddb[_0x4e6916(0xe1)]<=_0x4b4680&&_0x4b4680<=_0x1a3ddb[_0x4e6916(0xe8)]);return _0x4ff399?this[_0x4e6916(0xd2)](_0x4ff399[_0x4e6916(0xea)]):null;}['findCodeByText'](_0x4e7b2b){var _0x364464=_0x265ff2,_0x5323cf;return(_0x5323cf=this[_0x364464(0xce)](_0x4e7b2b)[0x0])==null?null:_0x5323cf;}[_0x265ff2(0xce)](_0x5269d4){var _0x41309b=_0x265ff2;let _0x411fa7=typeof _0x5269d4==_0x41309b(0xf1)?{'text':_0x5269d4}:_0x5269d4;return this['getCodes']()[_0x41309b(0xdb)](_0x34fed8=>!(_0x411fa7[_0x41309b(0xea)]&&_0x34fed8[_0x41309b(0xf5)]()!==_0x411fa7[_0x41309b(0xea)]||_0x411fa7[_0x41309b(0x10c)]&&!_0x34fed8[_0x41309b(0xd6)]()[_0x41309b(0xf6)](_0x411fa7[_0x41309b(0x10c)])));}[_0x265ff2(0xd5)](_0x44f98d={},_0x38333a={}){var _0x33c287=_0x265ff2,_0x5a7c12;let _0x1640a7=this['_injector']['get'](_0x4437cc),_0x2025d7=S(_0x44f98d)?{..._0x38333a,...C(_0x44f98d)}:_0x44f98d,_0x15253d=(_0x5a7c12=_0x2025d7[_0x33c287(0xea)])==null?_0x2730ac(0x6):_0x5a7c12;return _0x1640a7[_0x33c287(0xd3)](_0x5c1c8b['id'],{..._0x2025d7,'blockId':_0x15253d,'unitId':this[_0x33c287(0xf5)]()})?this[_0x33c287(0xd2)](_0x15253d):null;}[_0x265ff2(0xe7)](_0x4b4966){var _0xf20096=_0x265ff2;return this[_0xf20096(0x102)][_0xf20096(0x101)](_0x4437cc)[_0xf20096(0xd3)](_0x1aea34['id'],{'cursorOffset':_0x4b4966,'unitId':this[_0xf20096(0xf5)]()});}[_0x265ff2(0x108)](_0x136f26={}){var _0x16667a=_0x265ff2;return this[_0x16667a(0x102)][_0x16667a(0x101)](_0x4437cc)[_0x16667a(0xd3)](_0x345880['id'],{..._0x136f26,'unitId':this[_0x16667a(0xf5)]()});}[_0x265ff2(0xd0)](){var _0x2ad0e3=_0x265ff2,_0x2b2ce5,_0xf7546;return(_0x2b2ce5=(_0xf7546=this[_0x2ad0e3(0x106)]()[_0x2ad0e3(0xd4)])==null?void 0x0:_0xf7546['blockRanges'])==null?[]:_0x2b2ce5;}[_0x265ff2(0xd2)](_0x5dc5bd){var _0x40b803=_0x265ff2;return this['_injector'][_0x40b803(0xdc)](y,this,_0x5dc5bd);}};function S(_0x423d5b){var _0x2b5231=_0x265ff2;return typeof _0x423d5b==_0x2b5231(0xf4)&&!!_0x423d5b&&typeof _0x423d5b[_0x2b5231(0xd8)]==_0x2b5231(0xec)&&typeof _0x423d5b[_0x2b5231(0xc8)]==_0x2b5231(0xec)&&typeof _0x423d5b['getType']==_0x2b5231(0xec)&&_0x423d5b['getType']()===_0x2b5231(0x100);}function C(_0x4aa7b2){var _0x315966=_0x265ff2;return _0x4aa7b2[_0x315966(0xc8)]();}_0x2080cf['extend'](x);export{y as FDocumentCode};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2918aa=_0x4721;(function(_0x4d63c7,_0x47d261){const _0x205705=_0x4721,_0x1783cf=_0x4d63c7();while(!![]){try{const _0x3a5255=-parseInt(_0x205705(0x9d))/0x1*(-parseInt(_0x205705(0x81))/0x2)+parseInt(_0x205705(0x8b))/0x3*(-parseInt(_0x205705(0xe6))/0x4)+-parseInt(_0x205705(0xe3))/0x5+-parseInt(_0x205705(0xc4))/0x6+parseInt(_0x205705(0xc6))/0x7+-parseInt(_0x205705(0x84))/0x8+-parseInt(_0x205705(0xe5))/0x9*(-parseInt(_0x205705(0xaa))/0xa);if(_0x3a5255===_0x47d261)break;else _0x1783cf['push'](_0x1783cf['shift']());}catch(_0x5eec4c){_0x1783cf['push'](_0x1783cf['shift']());}}}(_0x303f,0xdd1f2));import{BuildTextUtils as _0x1dfe3e,CommandType as _0x4448b1,DataStreamTreeTokenType as _0x152f45,DependentOn as _0x5e7fa3,Disposable as _0x7ff31,DocumentBlockRangeType as _0x238249,ICommandService as _0x3581cd,IConfigService as _0x1024e7,IResourceManagerService as _0x517cbe,IUniverInstanceService as _0x20984d,Inject as _0x1a3b9a,Injector as _0x50021e,JSONX as _0xaa2b42,Plugin as _0x15253c,Tools as _0x3348f8,UniverInstanceType as _0x50ff8e,createParagraphId as _0x309a82,generateRandomId as _0x50f53a,merge as _0x384233}from'@univerjs/core';import{DocContentInsertService as _0x26ecbc,DocSelectionManagerService as _0x308de8,RichTextEditingMutation as _0x3446f8,UniverDocsPlugin as _0x14757f}from'@univerjs/docs';import{Subject as _0x504168}from'rxjs';import{UniverLicensePlugin as _0x47fcc9}from'@univerjs-pro/license';const S={'language':_0x2918aa(0x9a),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function C(_0x3b9410){return{...S,..._0x3b9410};}function w(_0x160606){const _0x113a48=_0x2918aa;var _0x14ee17;let _0x416a2b=(_0x14ee17=_0x160606==null?void 0x0:_0x160606[_0x113a48(0x98)])==null?{}:_0x14ee17;return{'codes':Object['fromEntries'](Object[_0x113a48(0xe4)](_0x416a2b)[_0x113a48(0xe8)](([_0x37ffab,_0x588dd4])=>[_0x37ffab,C(_0x588dd4)]))};}function T(_0x29f59e,_0x18e8fe,_0x19dce0){const _0x17acde=_0x2918aa;let _0x38b024=w(_0x29f59e);return _0x38b024[_0x17acde(0x98)][_0x18e8fe]=C({..._0x38b024[_0x17acde(0x98)][_0x18e8fe],..._0x19dce0}),_0x38b024;}function re(_0x2fe067,_0x123b0b){const _0x239c18=_0x2918aa;let _0x56cd7e=w(_0x2fe067);return delete _0x56cd7e[_0x239c18(0x98)][_0x123b0b],_0x56cd7e;}const ie=_0x2918aa(0xdc);function ae(_0x36fde3){const _0x3e75d1=_0x2918aa;var _0x2f9c97,_0x5dbc1f,_0x51c2eb;let _0x157373=D(_0x36fde3[_0x3e75d1(0xae)]),_0x16eb62=O(_0x157373),_0x3ce9ac=se(_0x36fde3[_0x3e75d1(0x74)],_0x36fde3['endOffset']),_0x20b24b=_0x3ce9ac?(_0x2f9c97=_0x16eb62['blockRanges'])==null?void 0x0:_0x2f9c97['find'](_0x2166d8=>_0x2166d8['startIndex']===_0x3ce9ac[_0x3e75d1(0x74)]&&_0x2166d8[_0x3e75d1(0x9b)]+0x1===_0x3ce9ac[_0x3e75d1(0xd7)]):void 0x0,{startOffset:_0x4a45c5,endOffset:_0x48bf78}=_0x20b24b?_0x3ce9ac:ye(_0x16eb62,_0x36fde3[_0x3e75d1(0x74)],_0x36fde3[_0x3e75d1(0xd7)]),_0x52e1c9=Se(_0x16eb62,_0x4a45c5,_0x48bf78),_0xfc99f0=(_0x5dbc1f=_0x20b24b==null?void 0x0:_0x20b24b[_0x3e75d1(0xaf)])==null?_0x36fde3[_0x3e75d1(0xaf)]:_0x5dbc1f,_0x28a21e=T(_0x36fde3[_0x3e75d1(0x9c)],_0xfc99f0,{...S,..._0x36fde3[_0x3e75d1(0x9e)]});if(_0x20b24b)return _0x20b24b[_0x3e75d1(0xe2)]=_0x238249[_0x3e75d1(0x96)],oe(_0x16eb62,_0x4a45c5,_0x48bf78),he(_0x16eb62,_0x4a45c5,_0x48bf78,_0x52e1c9),M(_0x16eb62,_0x20b24b),{'nextDocumentData':_0x157373,'nextMetadata':_0x28a21e,'cursorOffset':_0x4a45c5+0x1};if(_0x4a45c5===_0x48bf78){var _0x1fa4c4,_0x4cb64c;let _0x56e33c=''+_0x152f45[_0x3e75d1(0xc8)]+_0x152f45[_0x3e75d1(0xad)]+_0x152f45[_0x3e75d1(0xc3)];N(_0x16eb62,_0x4a45c5,_0x56e33c,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x309a82(new Set((_0x1fa4c4=_0x16eb62[_0x3e75d1(0xcf)])==null?void 0x0:_0x1fa4c4[_0x3e75d1(0xe8)](_0x1f64f9=>_0x1f64f9[_0x3e75d1(0x6c)]))),'paragraphStyle':E(!0x0,!0x0,_0x52e1c9)}],'blockRanges':[{'blockId':_0xfc99f0,'blockType':_0x238249['CODE'],'startIndex':0x0,'endIndex':_0x56e33c[_0x3e75d1(0xd4)]-0x1}]});let _0x326a8d=(_0x4cb64c=_0x16eb62[_0x3e75d1(0xeb)])==null?void 0x0:_0x4cb64c['find'](_0x24cbe0=>_0x24cbe0[_0x3e75d1(0xaf)]===_0xfc99f0);return _0x326a8d&&M(_0x16eb62,_0x326a8d),{'nextDocumentData':_0x157373,'nextMetadata':_0x28a21e,'cursorOffset':_0x4a45c5+0x1};}N(_0x16eb62,_0x48bf78,_0x152f45[_0x3e75d1(0xc3)]),N(_0x16eb62,_0x4a45c5,_0x152f45['BLOCK_START']),he(_0x16eb62,_0x4a45c5,_0x48bf78+0x1,_0x52e1c9);let _0x810e87={'blockId':_0xfc99f0,'blockType':_0x238249[_0x3e75d1(0x96)],'startIndex':_0x4a45c5,'endIndex':_0x48bf78+0x1};return _0x16eb62[_0x3e75d1(0xeb)]=[...(_0x51c2eb=_0x16eb62['blockRanges'])==null?[]:_0x51c2eb,_0x810e87][_0x3e75d1(0xda)]((_0x30fc14,_0x4b5b8c)=>_0x30fc14[_0x3e75d1(0xce)]-_0x4b5b8c[_0x3e75d1(0xce)]),M(_0x16eb62,_0x810e87),{'nextDocumentData':_0x157373,'nextMetadata':_0x28a21e,'cursorOffset':_0x4a45c5+0x1};}function oe(_0x2ebcd5,_0x2c6481,_0x5f2b8d){const _0x2b01b5=_0x2918aa;var _0x2dcc83;((_0x2dcc83=_0x2ebcd5[_0x2b01b5(0xcf)])==null?[]:_0x2dcc83)[_0x2b01b5(0x85)](_0x181475=>_0x181475[_0x2b01b5(0xce)]>_0x2c6481&&_0x181475[_0x2b01b5(0xce)]<_0x5f2b8d)[_0x2b01b5(0x8e)](_0x28a0ed=>{const _0x5d4007=_0x2b01b5;var _0x29a3e7;let _0x864348={...(_0x29a3e7=_0x28a0ed[_0x5d4007(0x80)])==null?{}:_0x29a3e7};delete _0x864348['spaceAbove'],delete _0x864348[_0x5d4007(0x6d)],_0x28a0ed['paragraphStyle']=_0x864348;});}function se(_0x47a1c4,_0x659fab){const _0x147310=_0x2918aa;return _0x47a1c4==null||_0x659fab==null||_0x47a1c4===_0x659fab?null:{'startOffset':Math[_0x147310(0x75)](_0x47a1c4,_0x659fab),'endOffset':Math['max'](_0x47a1c4,_0x659fab)};}function ce(_0x37b8f8){const _0x5aef68=_0x2918aa;return{'nextDocumentData':D(_0x37b8f8[_0x5aef68(0xae)]),'nextMetadata':T(_0x37b8f8[_0x5aef68(0x9c)],_0x37b8f8['blockId'],_0x37b8f8['config']),'cursorOffset':0x0};}function le(_0x23113b){const _0xb691e9=_0x2918aa;var _0x5bf049,_0x2892ed;let _0x19cea4=D(_0x23113b[_0xb691e9(0xae)]),_0x3eefff=O(_0x19cea4),_0x465e5f=me(_0x3eefff,_0x23113b['cursorOffset']);if(!_0x465e5f)return null;let _0x16f86c=_e(_0x3eefff,_0x465e5f),_0x613499=_0x16f86c[_0x16f86c[_0xb691e9(0xd4)]-0x1];if(!_0x613499||!ve(_0x3eefff,_0x465e5f,_0x613499)||_0x23113b[_0xb691e9(0x76)]<_0x613499[_0xb691e9(0xce)])return null;let _0x1ab0fa=A(_0x3eefff,_0x465e5f,_0x613499);if(_0x1ab0fa>=_0x465e5f[_0xb691e9(0x9b)])return null;_0x3eefff['dataStream']=[_0x3eefff[_0xb691e9(0x72)][_0xb691e9(0xb3)](0x0,_0x1ab0fa),_0x152f45[_0xb691e9(0xc3)],_0x3eefff[_0xb691e9(0x72)][_0xb691e9(0xb3)](_0x1ab0fa,_0x465e5f[_0xb691e9(0x9b)]),_0x3eefff[_0xb691e9(0x72)]['slice'](_0x465e5f[_0xb691e9(0x9b)]+0x1)][_0xb691e9(0xcb)](''),R(_0x3eefff[_0xb691e9(0xcf)],_0x1ab0fa,_0x465e5f[_0xb691e9(0x9b)],0x1),R(_0x3eefff[_0xb691e9(0x97)],_0x1ab0fa,_0x465e5f[_0xb691e9(0x9b)],0x1),R(_0x3eefff['customBlocks'],_0x1ab0fa,_0x465e5f['endIndex'],0x1),ke(_0x3eefff['textRuns'],_0x1ab0fa,_0x465e5f['endIndex'],0x1),z(_0x3eefff[_0xb691e9(0x7a)],_0x1ab0fa,_0x465e5f[_0xb691e9(0x9b)],0x1),z(_0x3eefff[_0xb691e9(0xa4)],_0x1ab0fa,_0x465e5f['endIndex'],0x1),z(_0x3eefff[_0xb691e9(0x77)],_0x1ab0fa,_0x465e5f[_0xb691e9(0x9b)],0x1),(_0x5bf049=_0x3eefff[_0xb691e9(0xeb)])==null||_0x5bf049[_0xb691e9(0x8e)](_0x181001=>{const _0x588926=_0xb691e9;_0x181001===_0x465e5f||_0x181001['blockId']===_0x465e5f[_0x588926(0xaf)]?_0x181001[_0x588926(0x9b)]=_0x1ab0fa:_0x181001[_0x588926(0xce)]>=_0x1ab0fa&&_0x181001[_0x588926(0xce)]<_0x465e5f['endIndex']&&(_0x181001[_0x588926(0xce)]+=0x1,_0x181001['endIndex']+=0x1);});let _0x27c9dc=_e(_0x3eefff,{..._0x465e5f,'endIndex':_0x1ab0fa});_0x27c9dc[_0xb691e9(0x8e)]((_0x4c0052,_0x5044c5)=>{const _0x45d97c=_0xb691e9;var _0x27d2f7;_0x4c0052[_0x45d97c(0x80)]={...(_0x27d2f7=_0x4c0052[_0x45d97c(0x80)])==null?{}:_0x27d2f7,...E(_0x5044c5===0x0,_0x5044c5===_0x27c9dc[_0x45d97c(0xd4)]-0x1)};});let _0x253c49=(_0x2892ed=_0x3eefff[_0xb691e9(0xcf)])==null?void 0x0:_0x2892ed[_0xb691e9(0x79)](_0x1dc1cd=>_0x1dc1cd[_0xb691e9(0xce)]===_0x1ab0fa+0x1);return _0x253c49&&(_0x253c49[_0xb691e9(0x80)]=ge(_0x253c49[_0xb691e9(0x80)])),{'nextDocumentData':_0x19cea4,'cursorOffset':_0x1ab0fa+0x1};}function ue(_0x335531){const _0x3fc2af=_0x2918aa;let _0x33fa86=D(_0x335531['documentData']),_0xa159=O(_0x33fa86),_0xe364be=me(_0xa159,_0x335531[_0x3fc2af(0x76)]);return _0xe364be&&de(_0x33fa86,_0xa159,_0xe364be,_0x335531[_0x3fc2af(0x76)],_0x335531[_0x3fc2af(0xb1)])||null;}function de(_0x10d651,_0x252766,_0x134d35,_0x2d6c8d,_0x32e2d7){const _0x636019=_0x2918aa;let _0xc9ae05=we(_0x252766,_0x134d35,_0x2d6c8d,_0x32e2d7);if(!_0xc9ae05)return null;let _0x41e1e4=_0xc9ae05['endTokenOffset']-0x1;return Te(_0x252766,_0xc9ae05[_0x636019(0xe7)][_0x636019(0xce)],_0xc9ae05[_0x636019(0xe7)]['startIndex']+0x1),{'nextDocumentData':_0x10d651,'cursorOffset':_0x41e1e4};}function fe(_0x577520,_0x3e2954){const _0x56bb28=_0x2918aa;var _0x2dff0d;return _0x577520==null||(_0x2dff0d=_0x577520['blockRanges'])==null?void 0x0:_0x2dff0d[_0x56bb28(0x79)](_0x147f34=>_0x147f34[_0x56bb28(0xe2)]===_0x238249[_0x56bb28(0x96)]&&_0x147f34[_0x56bb28(0xce)]<=_0x3e2954&&_0x3e2954<=_0x147f34[_0x56bb28(0x9b)]);}function pe(_0x376569){const _0x3ab2c4=_0x2918aa;var _0x209c35;let _0x4a10dd=_0x376569['documentData'][_0x3ab2c4(0x91)];if(!_0x4a10dd)return!0x1;let _0x582b36=_0x376569[_0x3ab2c4(0x88)]===_0x3ab2c4(0xd9)?_0x376569[_0x3ab2c4(0x76)]-0x1:_0x376569['cursorOffset'],_0xa213f4=_0x376569[_0x3ab2c4(0x88)]==='right'?_0x376569[_0x3ab2c4(0x76)]+0x1:_0x582b36;return((_0x209c35=_0x4a10dd[_0x3ab2c4(0xeb)])==null?[]:_0x209c35)[_0x3ab2c4(0xde)](_0x2e9a4d=>_0x2e9a4d[_0x3ab2c4(0xe2)]===_0x238249[_0x3ab2c4(0x96)]?_0x582b36===_0x2e9a4d[_0x3ab2c4(0xce)]||_0x582b36===_0x2e9a4d[_0x3ab2c4(0x9b)]||_0xa213f4===_0x2e9a4d[_0x3ab2c4(0xce)]||_0xa213f4===_0x2e9a4d['endIndex']:!0x1);}function me(_0x5e10a7,_0x4e2e4d){const _0x43589b=_0x2918aa;var _0x58f92e;return(_0x58f92e=_0x5e10a7[_0x43589b(0xeb)])==null?void 0x0:_0x58f92e['find'](_0x58e4c1=>{const _0x47503c=_0x43589b;let _0x19e3d2=j(_0x5e10a7,_0x58e4c1);return _0x58e4c1[_0x47503c(0xe2)]===_0x238249[_0x47503c(0x96)]&&_0x58e4c1[_0x47503c(0xce)]<=_0x4e2e4d&&_0x4e2e4d<=_0x19e3d2+0x2;});}function E(_0xd18003,_0x1ebbed,_0x282f39=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0xd18003&&_0x282f39?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ie,'fs':0xc}};}function he(_0x1be9d9,_0x170891,_0x2e5a05,_0x56064e=!0x1){const _0x56fa91=_0x2918aa;var _0x2c41ea;let _0x58ef9e=((_0x2c41ea=_0x1be9d9[_0x56fa91(0xcf)])==null?[]:_0x2c41ea)[_0x56fa91(0x85)](_0x4afcfd=>_0x4afcfd[_0x56fa91(0xce)]>_0x170891&&_0x4afcfd[_0x56fa91(0xce)]<_0x2e5a05);_0x58ef9e[_0x56fa91(0x8e)]((_0x40a64b,_0x7af9ff)=>{const _0x1f8984=_0x56fa91;var _0x2a656b;_0x40a64b['paragraphStyle']={...(_0x2a656b=_0x40a64b[_0x1f8984(0x80)])==null?{}:_0x2a656b,...E(_0x7af9ff===0x0,_0x7af9ff===_0x58ef9e[_0x1f8984(0xd4)]-0x1,_0x56064e)};});}function ge(_0x2ca310){const _0x1eefaa=_0x2918aa;var _0x5ed3a8,_0x513246;let _0x2179c5={..._0x2ca310==null?{}:_0x2ca310};return delete _0x2179c5['indentEnd'],delete _0x2179c5[_0x1eefaa(0xd6)],delete _0x2179c5[_0x1eefaa(0xcd)],delete _0x2179c5[_0x1eefaa(0x6d)],((_0x5ed3a8=_0x2179c5['textStyle'])==null?void 0x0:_0x5ed3a8['ff'])===ie&&((_0x513246=_0x2179c5['textStyle'])==null?void 0x0:_0x513246['fs'])===0xc&&delete _0x2179c5['textStyle'],_0x2179c5;}function _e(_0x1248c0,_0x23533e){const _0x538d10=_0x2918aa;var _0x5e6743;let _0x4d3238=j(_0x1248c0,_0x23533e);return((_0x5e6743=_0x1248c0[_0x538d10(0xcf)])==null?[]:_0x5e6743)['filter'](_0x17211a=>_0x17211a['startIndex']>_0x23533e[_0x538d10(0xce)]&&_0x17211a[_0x538d10(0xce)]<_0x4d3238);}function ve(_0x34acf5,_0x34eabb,_0x45fadc){const _0x19ca87=_0x2918aa;let _0xcce147=A(_0x34acf5,_0x34eabb,_0x45fadc),_0x110b8e=_0x34acf5['dataStream'][_0x19ca87(0xb3)](_0xcce147,_0x45fadc[_0x19ca87(0xce)]);return Array['from'](_0x110b8e)[_0x19ca87(0xc1)](_0x553924=>_0x553924===_0x152f45[_0x19ca87(0xc8)]||_0x553924===_0x152f45[_0x19ca87(0xc3)]);}function D(_0x318c15){const _0x421b20=_0x2918aa;return _0x3348f8[_0x421b20(0xec)](_0x318c15);}function O(_0xa1a162){const _0x59080e=_0x2918aa;if(!_0xa1a162[_0x59080e(0x91)])throw Error(_0x59080e(0x7b));return _0xa1a162['body'];}function ye(_0x5b7859,_0x624d88,_0x10f05e){const _0x2803a6=_0x2918aa;if(_0x624d88==null||_0x10f05e==null){let _0x201ca2=xe(_0x5b7859);return{'startOffset':_0x201ca2,'endOffset':_0x201ca2};}let _0x475993=Math[_0x2803a6(0x75)](_0x624d88,_0x10f05e),_0x4283e5=Math[_0x2803a6(0xb6)](_0x624d88,_0x10f05e);if(_0x475993===_0x4283e5){let _0x53d1f1=be(_0x5b7859,_0x475993);return{'startOffset':_0x53d1f1,'endOffset':_0x53d1f1};}return Ce(_0x5b7859,_0x475993,_0x4283e5);}function be(_0xfc0731,_0x117d50){const _0x449f30=_0x2918aa;return _0x117d50===0x0&&_0xfc0731[_0x449f30(0x72)][0x0]===_0x152f45[_0x449f30(0xad)]?0x1:_0x117d50;}function xe(_0x464d48){const _0x52640f=_0x2918aa;return _0x464d48[_0x52640f(0x72)][_0x52640f(0xb8)](_0x152f45[_0x52640f(0xbe)])?Math[_0x52640f(0xb6)](0x0,_0x464d48[_0x52640f(0x72)]['length']-0x1):_0x464d48[_0x52640f(0x72)][_0x52640f(0xd4)];}function Se(_0x5664c7,_0x4cb54a,_0x261e67){const _0x351232=_0x2918aa;var _0x31849a;let _0xb3c3b5=Math['min'](_0x4cb54a,_0x261e67),_0x585e2d=Math[_0x351232(0xb6)](_0x4cb54a,_0x261e67);return!!((_0x31849a=_0x5664c7['tables'])!=null&&_0x31849a['some'](_0x431cc2=>_0xb3c3b5>_0x431cc2[_0x351232(0xce)]&&_0xb3c3b5<_0x431cc2[_0x351232(0x9b)]||_0x585e2d>_0x431cc2[_0x351232(0xce)]&&_0x585e2d<_0x431cc2[_0x351232(0x9b)]||_0xb3c3b5<=_0x431cc2[_0x351232(0xce)]&&_0x585e2d>=_0x431cc2[_0x351232(0x9b)]));}function Ce(_0x640615,_0x1c6104,_0x2c7589){const _0x36c0e7=_0x2918aa;var _0x23ecac,_0x539a4b;let _0x2fbc0d=[...(_0x23ecac=_0x640615[_0x36c0e7(0xcf)])==null?[]:_0x23ecac]['sort']((_0x50f174,_0x5001cd)=>_0x50f174['startIndex']-_0x5001cd[_0x36c0e7(0xce)]),_0x500630=_0x2fbc0d[_0x36c0e7(0x79)]((_0x175629,_0x22eb0c)=>(_0x22eb0c===0x0?0x0:_0x2fbc0d[_0x22eb0c-0x1][_0x36c0e7(0xce)]+0x1)<=_0x1c6104&&_0x1c6104<=_0x175629[_0x36c0e7(0xce)]),_0x3006c3=(_0x539a4b=_0x2fbc0d[_0x36c0e7(0x79)](_0x13ff68=>_0x13ff68[_0x36c0e7(0xce)]>=_0x2c7589-0x1))==null?_0x2fbc0d[_0x2fbc0d[_0x36c0e7(0xd4)]-0x1]:_0x539a4b;return{'startOffset':_0x500630?k(_0x2fbc0d,_0x500630):_0x1c6104,'endOffset':_0x3006c3?_0x3006c3[_0x36c0e7(0xce)]+0x1:_0x2c7589};}function k(_0x5b023b,_0x580fd4){const _0x413fe9=_0x2918aa;let _0x3986f9=_0x5b023b[_0x413fe9(0x93)](_0x580fd4);return _0x3986f9>0x0?_0x5b023b[_0x3986f9-0x1][_0x413fe9(0xce)]+0x1:0x0;}function A(_0x326398,_0x11e8a8,_0x2d096f){const _0x220c5d=_0x2918aa;var _0x22a71b;return Math[_0x220c5d(0xb6)](k((_0x22a71b=_0x326398[_0x220c5d(0xcf)])==null?[]:_0x22a71b,_0x2d096f),_0x11e8a8['startIndex']+0x1);}function j(_0x3c61e6,_0xa26af){const _0xd5de22=_0x2918aa;return _0x3c61e6[_0xd5de22(0x72)][_0xa26af[_0xd5de22(0x9b)]]===_0x152f45[_0xd5de22(0xc3)]?_0xa26af['endIndex']:_0x3c61e6[_0xd5de22(0x72)][_0xa26af[_0xd5de22(0x9b)]+0x1]===_0x152f45['BLOCK_END']?_0xa26af[_0xd5de22(0x9b)]+0x1:_0xa26af[_0xd5de22(0x9b)];}function we(_0x734abe,_0x1e8be6,_0x1334b7,_0x265963){const _0x349c76=_0x2918aa;var _0x49153a,_0x374ca2;let _0x31c73d=j(_0x734abe,_0x1e8be6),_0x119949=((_0x49153a=_0x734abe[_0x349c76(0xcf)])==null?[]:_0x49153a)[_0x349c76(0x79)](_0x54f123=>_0x54f123[_0x349c76(0xce)]===_0x31c73d+0x1);if(!_0x119949||_0x265963!=null&&_0x119949['startIndex']!==_0x265963||_0x1334b7<_0x31c73d||_0x1334b7>_0x119949[_0x349c76(0xce)]+0x1||_0x734abe[_0x349c76(0x72)][_0x119949['startIndex']]!==_0x152f45['PARAGRAPH'])return null;let _0x1ff822=k((_0x374ca2=_0x734abe[_0x349c76(0xcf)])==null?[]:_0x374ca2,_0x119949),_0xc3c972=_0x734abe[_0x349c76(0x72)]['slice'](_0x1ff822,_0x119949['startIndex']);return Array['from'](_0xc3c972)[_0x349c76(0xc1)](_0x271f9a=>_0x271f9a===_0x152f45[_0x349c76(0xc3)])?{'paragraph':_0x119949,'endTokenOffset':_0x31c73d}:null;}function M(_0x4431f6,_0x1a5d7e){const _0x3ac63b=_0x2918aa;var _0x423386;let _0x1e1b00=j(_0x4431f6,_0x1a5d7e),_0x5d9d6f=_0x4431f6[_0x3ac63b(0x72)][_0x1e1b00+0x1];_0x5d9d6f!==_0x152f45[_0x3ac63b(0xbe)]&&_0x5d9d6f!==void 0x0||N(_0x4431f6,_0x1e1b00+0x1,_0x152f45[_0x3ac63b(0xad)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x309a82(new Set((_0x423386=_0x4431f6[_0x3ac63b(0xcf)])==null?void 0x0:_0x423386[_0x3ac63b(0xe8)](_0x46a918=>_0x46a918[_0x3ac63b(0x6c)])))}]});}function N(_0x419890,_0x27971c,_0x277582,_0x6fd2b={}){const _0x433981=_0x2918aa;var _0x121f0f,_0x5a8b12;if(_0x277582){if(_0x419890[_0x433981(0x72)]=''+_0x419890[_0x433981(0x72)][_0x433981(0xb3)](0x0,_0x27971c)+_0x277582+_0x419890[_0x433981(0x72)]['slice'](_0x27971c),Ee(_0x419890,_0x27971c,_0x277582[_0x433981(0xd4)]),(_0x121f0f=_0x6fd2b[_0x433981(0xcf)])!=null&&_0x121f0f[_0x433981(0xd4)]){var _0x5b83aa;_0x419890['paragraphs']=[...(_0x5b83aa=_0x419890[_0x433981(0xcf)])==null?[]:_0x5b83aa,..._0x6fd2b['paragraphs'][_0x433981(0xe8)](_0x48c26c=>({..._0x48c26c,'startIndex':_0x48c26c[_0x433981(0xce)]+_0x27971c}))][_0x433981(0xda)]((_0x425b60,_0x109d7a)=>_0x425b60[_0x433981(0xce)]-_0x109d7a[_0x433981(0xce)]);}if((_0x5a8b12=_0x6fd2b['blockRanges'])!=null&&_0x5a8b12[_0x433981(0xd4)]){var _0x43e4df;_0x419890[_0x433981(0xeb)]=[...(_0x43e4df=_0x419890['blockRanges'])==null?[]:_0x43e4df,..._0x6fd2b[_0x433981(0xeb)][_0x433981(0xe8)](_0x16b002=>({..._0x16b002,'startIndex':_0x16b002['startIndex']+_0x27971c,'endIndex':_0x16b002[_0x433981(0x9b)]+_0x27971c}))][_0x433981(0xda)]((_0x4261d0,_0x54bc3e)=>_0x4261d0[_0x433981(0xce)]-_0x54bc3e['startIndex']);}}}function Te(_0x57fad7,_0x4b55f7,_0x3cfa3f){const _0x23406d=_0x2918aa;let _0x5d7d82=_0x3cfa3f-_0x4b55f7;_0x57fad7[_0x23406d(0x72)]=''+_0x57fad7[_0x23406d(0x72)][_0x23406d(0xb3)](0x0,_0x4b55f7)+_0x57fad7[_0x23406d(0x72)][_0x23406d(0xb3)](_0x3cfa3f),De(_0x57fad7,_0x4b55f7,_0x5d7d82);}function Ee(_0x2584d4,_0x3725d9,_0x251d73){const _0x47f663=_0x2918aa;_0x2584d4[_0x47f663(0xcf)]=P(_0x2584d4[_0x47f663(0xcf)],_0x3725d9,_0x251d73),_0x2584d4[_0x47f663(0x97)]=P(_0x2584d4['sectionBreaks'],_0x3725d9,_0x251d73),_0x2584d4[_0x47f663(0x95)]=P(_0x2584d4[_0x47f663(0x95)],_0x3725d9,_0x251d73),_0x2584d4['textRuns']=Oe(_0x2584d4[_0x47f663(0xbf)],_0x3725d9,_0x251d73),_0x2584d4[_0x47f663(0x7a)]=I(_0x2584d4[_0x47f663(0x7a)],_0x3725d9,_0x251d73),_0x2584d4['customRanges']=I(_0x2584d4['customRanges'],_0x3725d9,_0x251d73),_0x2584d4[_0x47f663(0x77)]=I(_0x2584d4['customDecorations'],_0x3725d9,_0x251d73),_0x2584d4[_0x47f663(0xeb)]=I(_0x2584d4[_0x47f663(0xeb)],_0x3725d9,_0x251d73);}function De(_0x2facf1,_0x57ce8f,_0x24d458){const _0x58ada5=_0x2918aa;var _0x28f482,_0x3e3c07;_0x2facf1[_0x58ada5(0xcf)]=F(_0x2facf1[_0x58ada5(0xcf)],_0x57ce8f,_0x24d458),_0x2facf1[_0x58ada5(0x97)]=F(_0x2facf1[_0x58ada5(0x97)],_0x57ce8f,_0x24d458),_0x2facf1[_0x58ada5(0x95)]=F(_0x2facf1[_0x58ada5(0x95)],_0x57ce8f,_0x24d458),_0x2facf1[_0x58ada5(0xbf)]=(_0x28f482=L((_0x3e3c07=_0x2facf1['textRuns'])==null?void 0x0:_0x3e3c07[_0x58ada5(0xe8)](_0x1e0848=>({..._0x1e0848,'startIndex':_0x1e0848['st'],'endIndex':_0x1e0848['ed']})),_0x57ce8f,_0x24d458))==null?void 0x0:_0x28f482[_0x58ada5(0xe8)](_0xf6bead=>{let {startIndex:_0x1f29f3,endIndex:_0xf7b4f4,..._0x4883ba}=_0xf6bead;return{..._0x4883ba,'st':_0x1f29f3,'ed':_0xf7b4f4};}),_0x2facf1[_0x58ada5(0x7a)]=L(_0x2facf1[_0x58ada5(0x7a)],_0x57ce8f,_0x24d458),_0x2facf1[_0x58ada5(0xa4)]=L(_0x2facf1[_0x58ada5(0xa4)],_0x57ce8f,_0x24d458),_0x2facf1[_0x58ada5(0x77)]=L(_0x2facf1['customDecorations'],_0x57ce8f,_0x24d458),_0x2facf1[_0x58ada5(0xeb)]=L(_0x2facf1['blockRanges'],_0x57ce8f,_0x24d458);}function P(_0x118b1,_0x22fd6e,_0x233c18){const _0x4b2f88=_0x2918aa;return _0x118b1==null?void 0x0:_0x118b1[_0x4b2f88(0xe8)](_0x175eac=>_0x175eac[_0x4b2f88(0xce)]>=_0x22fd6e?{..._0x175eac,'startIndex':_0x175eac[_0x4b2f88(0xce)]+_0x233c18}:_0x175eac);}function F(_0x197b5a,_0x243881,_0x41a251){const _0x1c4319=_0x2918aa;let _0x3d0922=_0x243881+_0x41a251;return _0x197b5a==null?void 0x0:_0x197b5a[_0x1c4319(0xe8)](_0x3465c9=>_0x3465c9[_0x1c4319(0xce)]>=_0x243881&&_0x3465c9['startIndex']<_0x3d0922?null:_0x3465c9['startIndex']>=_0x3d0922?{..._0x3465c9,'startIndex':_0x3465c9[_0x1c4319(0xce)]-_0x41a251}:_0x3465c9)['filter'](_0x2a5c66=>_0x2a5c66!=null);}function Oe(_0x359839,_0x463568,_0x12e18c){const _0x30d1b4=_0x2918aa;return _0x359839==null?void 0x0:_0x359839[_0x30d1b4(0xe8)](_0x5c8cd9=>_0x5c8cd9['st']>=_0x463568?{..._0x5c8cd9,'st':_0x5c8cd9['st']+_0x12e18c,'ed':_0x5c8cd9['ed']+_0x12e18c}:_0x5c8cd9['ed']>_0x463568?{..._0x5c8cd9,'ed':_0x5c8cd9['ed']+_0x12e18c}:_0x5c8cd9);}function I(_0x3e3561,_0x128dce,_0x4158d5){const _0xc08bc5=_0x2918aa;return _0x3e3561==null?void 0x0:_0x3e3561[_0xc08bc5(0xe8)](_0x458552=>_0x458552[_0xc08bc5(0xce)]>=_0x128dce?{..._0x458552,'startIndex':_0x458552[_0xc08bc5(0xce)]+_0x4158d5,'endIndex':_0x458552['endIndex']+_0x4158d5}:_0x458552[_0xc08bc5(0x9b)]>=_0x128dce?{..._0x458552,'endIndex':_0x458552['endIndex']+_0x4158d5}:_0x458552);}function L(_0x62c002,_0x23f233,_0x3261ec){const _0x45784f=_0x2918aa;let _0x5bfbb8=_0x23f233+_0x3261ec;return _0x62c002==null?void 0x0:_0x62c002[_0x45784f(0xe8)](_0x27d5e5=>_0x27d5e5['startIndex']>=_0x23f233&&_0x27d5e5[_0x45784f(0x9b)]<_0x5bfbb8?null:_0x27d5e5[_0x45784f(0xce)]>=_0x5bfbb8?{..._0x27d5e5,'startIndex':_0x27d5e5[_0x45784f(0xce)]-_0x3261ec,'endIndex':_0x27d5e5[_0x45784f(0x9b)]-_0x3261ec}:_0x27d5e5[_0x45784f(0x9b)]>=_0x23f233?{..._0x27d5e5,'startIndex':_0x27d5e5['startIndex']<_0x23f233?_0x27d5e5[_0x45784f(0xce)]:_0x23f233,'endIndex':Math[_0x45784f(0xb6)](_0x23f233,_0x27d5e5['endIndex']-_0x3261ec)}:_0x27d5e5)[_0x45784f(0x85)](_0x9de83f=>_0x9de83f!=null);}function R(_0x5dad18,_0x7d9a07,_0x14ef3f,_0x1b328b){_0x5dad18==null||_0x5dad18['forEach'](_0x25e9ff=>{const _0x36b71b=_0x4721;_0x25e9ff[_0x36b71b(0xce)]>=_0x7d9a07&&_0x25e9ff[_0x36b71b(0xce)]<_0x14ef3f&&(_0x25e9ff[_0x36b71b(0xce)]+=_0x1b328b);});}function ke(_0x41a464,_0x3fd505,_0x3f78e1,_0x40cc77){const _0x1951b7=_0x2918aa;_0x41a464==null||_0x41a464[_0x1951b7(0x8e)](_0x556779=>{_0x556779['st']>=_0x3fd505&&_0x556779['st']<_0x3f78e1?(_0x556779['st']+=_0x40cc77,_0x556779['ed']+=_0x40cc77):_0x556779['ed']>_0x3fd505&&_0x556779['ed']<_0x3f78e1&&(_0x556779['ed']+=_0x40cc77);});}function z(_0x118308,_0x2a8b77,_0x5a216a,_0x567763){const _0x6c1af4=_0x2918aa;_0x118308==null||_0x118308[_0x6c1af4(0x8e)](_0x386e83=>{const _0x357bce=_0x6c1af4;_0x386e83['startIndex']>=_0x2a8b77&&_0x386e83[_0x357bce(0xce)]<_0x5a216a?(_0x386e83[_0x357bce(0xce)]+=_0x567763,_0x386e83['endIndex']+=_0x567763):_0x386e83['endIndex']>_0x2a8b77&&_0x386e83[_0x357bce(0x9b)]<_0x5a216a&&(_0x386e83[_0x357bce(0x9b)]+=_0x567763);});}function B(_0x2ed103){'@babel/helpers - typeof';const _0x1b43c0=_0x2918aa;return B=typeof Symbol==_0x1b43c0(0x94)&&typeof Symbol['iterator']==_0x1b43c0(0xd3)?function(_0x5c0b41){return typeof _0x5c0b41;}:function(_0x4d2d4b){const _0x16f37f=_0x1b43c0;return _0x4d2d4b&&typeof Symbol==_0x16f37f(0x94)&&_0x4d2d4b[_0x16f37f(0xb5)]===Symbol&&_0x4d2d4b!==Symbol[_0x16f37f(0x92)]?_0x16f37f(0xd3):typeof _0x4d2d4b;},B(_0x2ed103);}function Ae(_0x33c44e,_0x409d3c){const _0x489959=_0x2918aa;if(B(_0x33c44e)!=_0x489959(0xba)||!_0x33c44e)return _0x33c44e;var _0x5ed8b6=_0x33c44e[Symbol['toPrimitive']];if(_0x5ed8b6!==void 0x0){var _0x412fc0=_0x5ed8b6[_0x489959(0xc9)](_0x33c44e,_0x409d3c||'default');if(B(_0x412fc0)!=_0x489959(0xba))return _0x412fc0;throw TypeError(_0x489959(0x90));}return(_0x409d3c==='string'?String:Number)(_0x33c44e);}function je(_0x5c6c40){const _0x13d917=_0x2918aa;var _0x3318b6=Ae(_0x5c6c40,_0x13d917(0xa3));return B(_0x3318b6)==_0x13d917(0xd3)?_0x3318b6:_0x3318b6+'';}function _0x303f(){const _0x1a71e5=['endOffset','getCurrentUnitOfType','left','sort','registerCommand','monospace','replaceOp','some','commandService','serialize','nextMetadata','blockType','8921605bDEPWG','entries','14940mtFcOU','276948XbnRBM','paragraph','map','_change$','nextDocumentData','blockRanges','deepClone','paragraphId','spaceBelow','setConfig','removeCode','previousDocumentData','DOC_CODE_PLUGIN','dataStream','clear','startOffset','min','cursorOffset','customDecorations','docs-code.command.exit','find','tables','Document\x20body\x20is\x20required','docs-code.command.update','getParagraphsInRange','asObservable','1.0.0-insiders.20260629-12f2e44','paragraphStyle','620OqbBch','get','stringify','14280896FapObr','filter','version','syncExecuteCommand','direction','unitId','_commandService','63lffGxh','getUniverDocInstance','delete','forEach','_resources','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','body','prototype','indexOf','function','customBlocks','CODE','sectionBreaks','codes','_docsCodeModel','javascript','endIndex','metadata','3701CkyQvk','config','docs-code.command.insert','compose','removeUnit','getSnapshot','string','customRanges','next','_initResource','getInstance','model','consumeInsertRange','32080tywtHo','_configService','set','PARAGRAPH','documentData','blockId','@univerjs-pro/docs-code','paragraphStartIndex','decorate','slice','_injector','constructor','max','_config','endsWith','disposeWithMe','object','parse','_setResource','_resourceManagerService','SECTION_BREAK','textRuns','packageName','every','pluginName','BLOCK_END','4968270eFDkWE','COMMAND','1992053IFkuJr','getOwnPropertyDescriptor','BLOCK_START','call','add','join','UNIVER_DOC','spaceAbove','startIndex','paragraphs','getUnitId','deserialize','range','symbol','length','setCodeConfig','indentStart'];_0x303f=function(){return _0x1a71e5;};return _0x303f();}function V(_0x778c79,_0x293364,_0x104fd8){return(_0x293364=je(_0x293364))in _0x778c79?Object['defineProperty'](_0x778c79,_0x293364,{'value':_0x104fd8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x778c79[_0x293364]=_0x104fd8,_0x778c79;}var H=class extends _0x7ff31{constructor(..._0x141bce){const _0x1eda1c=_0x2918aa;super(..._0x141bce),V(this,_0x1eda1c(0x8f),new Map()),V(this,_0x1eda1c(0xe9),new _0x504168()),V(this,'change$',this[_0x1eda1c(0xe9)][_0x1eda1c(0x7e)]());}['getCodeConfig'](_0xe4228a,_0x5b2e61){const _0x32ff83=_0x2918aa;return w(this[_0x32ff83(0x8f)]['get'](_0xe4228a))['codes'][_0x5b2e61];}[_0x2918aa(0xd5)](_0x4b59a8,_0x2b4c52,_0x24ba9a){const _0x490754=_0x2918aa;this[_0x490754(0xbc)](_0x4b59a8,_0x2b4c52,T(this[_0x490754(0x8f)][_0x490754(0x82)](_0x4b59a8),_0x2b4c52,_0x24ba9a));}[_0x2918aa(0x6f)](_0x5cdecb,_0x54f6ab){const _0x40983e=_0x2918aa;this[_0x40983e(0xbc)](_0x5cdecb,_0x54f6ab,re(this[_0x40983e(0x8f)][_0x40983e(0x82)](_0x5cdecb),_0x54f6ab));}['serialize'](_0x136f95){return w(this['_resources']['get'](_0x136f95));}[_0x2918aa(0xd1)](_0xd0e29a,_0x17c415){const _0x86bdf4=_0x2918aa;this[_0x86bdf4(0x8f)]['set'](_0xd0e29a,w(_0x17c415)),this[_0x86bdf4(0xe9)][_0x86bdf4(0xa5)]({'unitId':_0xd0e29a});}[_0x2918aa(0xa1)](_0x54298d){const _0x2a5acb=_0x2918aa;this[_0x2a5acb(0x8f)][_0x2a5acb(0x8d)](_0x54298d),this[_0x2a5acb(0xe9)][_0x2a5acb(0xa5)]({'unitId':_0x54298d});}['dispose'](){const _0x449426=_0x2918aa;super['dispose'](),this[_0x449426(0x8f)][_0x449426(0x73)](),this[_0x449426(0xe9)]['complete']();}[_0x2918aa(0xbc)](_0x3028f0,_0x7a353a,_0x410da6){const _0x4e8844=_0x2918aa;this[_0x4e8844(0x8f)][_0x4e8844(0xac)](_0x3028f0,_0x410da6),this[_0x4e8844(0xe9)][_0x4e8844(0xa5)]({'unitId':_0x3028f0,'blockId':_0x7a353a});}};const Me={'id':'docs-code.command.insert-below','type':_0x4448b1[_0x2918aa(0xc5)],'handler':_0xf2866=>{const _0xfcceec=_0x2918aa;let _0x8a0b65=Le(_0xf2866);if(_0x8a0b65)return _0xf2866[_0xfcceec(0x82)](_0x3581cd)[_0xfcceec(0x87)](U['id'],{'startOffset':_0x8a0b65[_0xfcceec(0x74)],'endOffset':_0x8a0b65[_0xfcceec(0xd7)],'unitId':_0x8a0b65['unitId']});let _0x25f29f=Re(_0xf2866);if(!_0x25f29f)return!0x1;let _0x912e15=_0x25f29f[_0xfcceec(0xce)]+0x1;return _0xf2866[_0xfcceec(0x82)](_0x3581cd)[_0xfcceec(0x87)](U['id'],{'startOffset':_0x912e15,'endOffset':_0x912e15});}},Ne={'id':'docs-code.command.consume-boundary-delete','type':_0x4448b1[_0x2918aa(0xc5)],'handler':()=>!0x0},U={'id':_0x2918aa(0x9f),'type':_0x4448b1['COMMAND'],'handler':(_0x45cd9a,_0x1b1dce)=>{const _0x418fe2=_0x2918aa;var _0x2a7cc2,_0x67fbe8,_0x17f529;let _0x1aceea=W(_0x45cd9a,_0x1b1dce==null?void 0x0:_0x1b1dce[_0x418fe2(0x89)]);if(!_0x1aceea)return!0x1;let _0x64b0cd=G(_0x45cd9a),_0x4ca150=ae({'blockId':(_0x2a7cc2=_0x1b1dce==null?void 0x0:_0x1b1dce['blockId'])==null?_0x50f53a(0x6):_0x2a7cc2,'config':_0x1b1dce==null?void 0x0:_0x1b1dce['config'],'documentData':_0x1aceea[_0x418fe2(0x70)],'endOffset':(_0x67fbe8=_0x1b1dce==null?void 0x0:_0x1b1dce['endOffset'])==null?_0x64b0cd==null?void 0x0:_0x64b0cd[_0x418fe2(0xd7)]:_0x67fbe8,'metadata':_0x1aceea['model']['serialize'](_0x1aceea['unitId']),'startOffset':(_0x17f529=_0x1b1dce==null?void 0x0:_0x1b1dce[_0x418fe2(0x74)])==null?_0x64b0cd==null?void 0x0:_0x64b0cd[_0x418fe2(0x74)]:_0x17f529}),_0x3621c9=q(_0x1aceea['commandService'],_0x1aceea['unitId'],_0x1aceea['previousDocumentData'],_0x4ca150[_0x418fe2(0xea)],_0x4ca150['cursorOffset']);return _0x3621c9&&_0x4ca150[_0x418fe2(0xe1)]&&_0x1aceea[_0x418fe2(0xa8)][_0x418fe2(0xd1)](_0x1aceea[_0x418fe2(0x89)],_0x4ca150[_0x418fe2(0xe1)]),_0x3621c9;}},Pe={'id':_0x2918aa(0x7c),'type':_0x4448b1[_0x2918aa(0xc5)],'handler':(_0x398fbb,_0x22604c)=>{const _0xcaad2e=_0x2918aa;if(!_0x22604c)return!0x1;let _0x8f07bf=W(_0x398fbb,_0x22604c[_0xcaad2e(0x89)]);if(!_0x8f07bf)return!0x1;let _0x40040f=ce({'blockId':_0x22604c[_0xcaad2e(0xaf)],'config':_0x22604c['config'],'documentData':_0x8f07bf[_0xcaad2e(0x70)],'metadata':_0x8f07bf[_0xcaad2e(0xa8)][_0xcaad2e(0xe0)](_0x8f07bf[_0xcaad2e(0x89)])});return _0x40040f[_0xcaad2e(0xe1)]&&_0x8f07bf[_0xcaad2e(0xa8)][_0xcaad2e(0xd1)](_0x8f07bf['unitId'],_0x40040f[_0xcaad2e(0xe1)]),!0x0;}},Fe={'id':_0x2918aa(0x78),'type':_0x4448b1[_0x2918aa(0xc5)],'handler':(_0x117e35,_0x2e7ca9)=>{const _0x31f4c8=_0x2918aa;var _0x27a37a,_0x1b845d;let _0x243856=W(_0x117e35,_0x2e7ca9==null?void 0x0:_0x2e7ca9[_0x31f4c8(0x89)]);if(!_0x243856)return!0x1;let _0x26d390=(_0x27a37a=_0x2e7ca9==null?void 0x0:_0x2e7ca9[_0x31f4c8(0x76)])==null?(_0x1b845d=G(_0x117e35))==null?void 0x0:_0x1b845d[_0x31f4c8(0x74)]:_0x27a37a;if(_0x26d390==null)return!0x1;let _0x414f80=le({'cursorOffset':_0x26d390,'documentData':_0x243856[_0x31f4c8(0x70)]});return _0x414f80?q(_0x243856[_0x31f4c8(0xdf)],_0x243856[_0x31f4c8(0x89)],_0x243856[_0x31f4c8(0x70)],_0x414f80[_0x31f4c8(0xea)],_0x414f80[_0x31f4c8(0x76)]):!0x1;}},Ie={'id':'docs-code.command.cancel-empty-paragraph','type':_0x4448b1[_0x2918aa(0xc5)],'handler':(_0x82f01,_0x18ce13)=>{const _0x33f0c8=_0x2918aa;var _0x5733ab,_0x11a412;let _0x4bc559=W(_0x82f01,_0x18ce13==null?void 0x0:_0x18ce13[_0x33f0c8(0x89)]);if(!_0x4bc559)return!0x1;let _0x5a02a2=(_0x5733ab=_0x18ce13==null?void 0x0:_0x18ce13[_0x33f0c8(0x76)])==null?(_0x11a412=G(_0x82f01))==null?void 0x0:_0x11a412[_0x33f0c8(0x74)]:_0x5733ab;if(_0x5a02a2==null)return!0x1;let _0x4c0be4=ue({'cursorOffset':_0x5a02a2,'documentData':_0x4bc559[_0x33f0c8(0x70)],'paragraphStartIndex':_0x18ce13==null?void 0x0:_0x18ce13[_0x33f0c8(0xb1)]});return _0x4c0be4?q(_0x4bc559[_0x33f0c8(0xdf)],_0x4bc559[_0x33f0c8(0x89)],_0x4bc559['previousDocumentData'],_0x4c0be4[_0x33f0c8(0xea)],_0x4c0be4[_0x33f0c8(0x76)]):!0x1;}};function W(_0x596e12,_0x2abdb8){const _0x4f3a14=_0x2918aa;let _0x2a1c1d=_0x596e12[_0x4f3a14(0x82)](_0x20984d),_0x196684=_0x2abdb8?_0x2a1c1d[_0x4f3a14(0x8c)](_0x2abdb8):_0x2a1c1d[_0x4f3a14(0xd8)](_0x50ff8e[_0x4f3a14(0xcc)]);return _0x196684?{'commandService':_0x596e12[_0x4f3a14(0x82)](_0x3581cd),'model':_0x596e12[_0x4f3a14(0x82)](H),'previousDocumentData':_0x196684[_0x4f3a14(0xa2)](),'unitId':_0x196684[_0x4f3a14(0xd0)]()}:null;}function _0x4721(_0x44e784,_0xd5c8c5){_0x44e784=_0x44e784-0x6c;const _0x303fc1=_0x303f();let _0x4721ae=_0x303fc1[_0x44e784];return _0x4721ae;}function G(_0x43edd2){const _0x5243fa=_0x2918aa;var _0x17c90c;return(_0x17c90c=_0x43edd2[_0x5243fa(0x82)](_0x308de8)['getTextRanges']())==null?void 0x0:_0x17c90c[0x0];}function Le(_0x5e29d4){const _0x55a3c0=_0x2918aa;var _0x5e1458;let _0x32f272=(_0x5e1458=_0x5e29d4[_0x55a3c0(0x82)](_0x20984d)[_0x55a3c0(0xd8)](_0x50ff8e['UNIVER_DOC']))==null?void 0x0:_0x5e1458[_0x55a3c0(0xd0)]();try{return _0x5e29d4[_0x55a3c0(0x82)](_0x26ecbc)[_0x55a3c0(0xa9)](_0x32f272);}catch{return null;}}function Re(_0x50ee3f){const _0x2efba8=_0x2918aa;var _0x53cbb6,_0x1e5f0c,_0x2c9786;let _0x1fc85e=G(_0x50ee3f);if(!_0x1fc85e)return null;let _0x2a134e=_0x50ee3f[_0x2efba8(0x82)](_0x20984d)[_0x2efba8(0xd8)](_0x50ff8e[_0x2efba8(0xcc)]),_0x242478=_0x2a134e==null?void 0x0:_0x2a134e['getBody']();return _0x242478?(_0x53cbb6=_0x1dfe3e[_0x2efba8(0xd2)][_0x2efba8(0x7d)](_0x1fc85e,(_0x1e5f0c=_0x242478[_0x2efba8(0xcf)])==null?[]:_0x1e5f0c,(_0x2c9786=_0x242478[_0x2efba8(0x72)])==null?'':_0x2c9786)[0x0])==null?null:_0x53cbb6:null;}function ze(_0x1aad27,_0x3305e8){const _0x33ff01=_0x2918aa;var _0xaab6f7,_0x19f0ad,_0x4722af,_0x3ae5f6,_0x1f24cf,_0x38acf6,_0x1bc7c0,_0x5189c8,_0x22249c,_0xc3f3d4,_0x43351e,_0x329fb9,_0x493cf4,_0x3575e5,_0x75f9c3,_0x6ab05f,_0x3f785f,_0x4520ce;let _0x38e031=_0xaa2b42[_0x33ff01(0xa7)]();return[K(_0x38e031,[_0x33ff01(0x91),_0x33ff01(0x72)],(_0xaab6f7=_0x1aad27[_0x33ff01(0x91)])==null?void 0x0:_0xaab6f7[_0x33ff01(0x72)],(_0x19f0ad=_0x3305e8[_0x33ff01(0x91)])==null?void 0x0:_0x19f0ad[_0x33ff01(0x72)]),K(_0x38e031,[_0x33ff01(0x91),_0x33ff01(0xcf)],(_0x4722af=_0x1aad27[_0x33ff01(0x91)])==null?void 0x0:_0x4722af['paragraphs'],(_0x3ae5f6=_0x3305e8[_0x33ff01(0x91)])==null?void 0x0:_0x3ae5f6[_0x33ff01(0xcf)]),K(_0x38e031,['body',_0x33ff01(0x97)],(_0x1f24cf=_0x1aad27[_0x33ff01(0x91)])==null?void 0x0:_0x1f24cf[_0x33ff01(0x97)],(_0x38acf6=_0x3305e8['body'])==null?void 0x0:_0x38acf6[_0x33ff01(0x97)]),K(_0x38e031,['body',_0x33ff01(0xbf)],(_0x1bc7c0=_0x1aad27[_0x33ff01(0x91)])==null?void 0x0:_0x1bc7c0[_0x33ff01(0xbf)],(_0x5189c8=_0x3305e8[_0x33ff01(0x91)])==null?void 0x0:_0x5189c8['textRuns']),K(_0x38e031,['body','customBlocks'],(_0x22249c=_0x1aad27[_0x33ff01(0x91)])==null?void 0x0:_0x22249c[_0x33ff01(0x95)],(_0xc3f3d4=_0x3305e8[_0x33ff01(0x91)])==null?void 0x0:_0xc3f3d4[_0x33ff01(0x95)]),K(_0x38e031,[_0x33ff01(0x91),_0x33ff01(0xa4)],(_0x43351e=_0x1aad27['body'])==null?void 0x0:_0x43351e['customRanges'],(_0x329fb9=_0x3305e8['body'])==null?void 0x0:_0x329fb9['customRanges']),K(_0x38e031,[_0x33ff01(0x91),_0x33ff01(0x77)],(_0x493cf4=_0x1aad27[_0x33ff01(0x91)])==null?void 0x0:_0x493cf4[_0x33ff01(0x77)],(_0x3575e5=_0x3305e8[_0x33ff01(0x91)])==null?void 0x0:_0x3575e5['customDecorations']),K(_0x38e031,[_0x33ff01(0x91),_0x33ff01(0x7a)],(_0x75f9c3=_0x1aad27[_0x33ff01(0x91)])==null?void 0x0:_0x75f9c3[_0x33ff01(0x7a)],(_0x6ab05f=_0x3305e8[_0x33ff01(0x91)])==null?void 0x0:_0x6ab05f[_0x33ff01(0x7a)]),K(_0x38e031,[_0x33ff01(0x91),_0x33ff01(0xeb)],(_0x3f785f=_0x1aad27['body'])==null?void 0x0:_0x3f785f[_0x33ff01(0xeb)],(_0x4520ce=_0x3305e8[_0x33ff01(0x91)])==null?void 0x0:_0x4520ce[_0x33ff01(0xeb)])][_0x33ff01(0x85)](Boolean)['reduce']((_0x368df2,_0x24243c)=>_0xaa2b42[_0x33ff01(0xa0)](_0x368df2,_0x24243c),null);}function K(_0x5ccd71,_0x4afff3,_0x116aa0,_0x1eccca){const _0xc8feae=_0x2918aa;return _0x3348f8['diffValue'](_0x116aa0,_0x1eccca)?null:_0x5ccd71[_0xc8feae(0xdd)](_0x4afff3,_0x116aa0,_0x1eccca);}function q(_0x4dcc4,_0xbc1192,_0x43f9f6,_0x526a2c,_0x366cfb){const _0x5c5a6c=_0x2918aa;let _0x422364=ze(_0x43f9f6,_0x526a2c);return _0x422364?!!_0x4dcc4[_0x5c5a6c(0x87)](_0x3446f8['id'],{'unitId':_0xbc1192,'actions':_0x422364,'textRanges':[{'startOffset':_0x366cfb,'endOffset':_0x366cfb,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const J=_0x2918aa(0x71);var Be=_0x2918aa(0xb0),Ve=_0x2918aa(0x7f);const Y={};function X(_0x1f5aca,_0x2e53a2){return function(_0xead05a,_0x54cc4c){_0x2e53a2(_0xead05a,_0x54cc4c,_0x1f5aca);};}function Z(_0x4417a5,_0xa74c47,_0x2ba633,_0x5a6fc1){const _0x4c6800=_0x2918aa;var _0x7c3426=arguments[_0x4c6800(0xd4)],_0x5506aa=_0x7c3426<0x3?_0xa74c47:_0x5a6fc1===null?_0x5a6fc1=Object[_0x4c6800(0xc7)](_0xa74c47,_0x2ba633):_0x5a6fc1,_0x38a89f;if(typeof Reflect==_0x4c6800(0xba)&&typeof Reflect[_0x4c6800(0xb2)]==_0x4c6800(0x94))_0x5506aa=Reflect['decorate'](_0x4417a5,_0xa74c47,_0x2ba633,_0x5a6fc1);else{for(var _0x126f80=_0x4417a5[_0x4c6800(0xd4)]-0x1;_0x126f80>=0x0;_0x126f80--)(_0x38a89f=_0x4417a5[_0x126f80])&&(_0x5506aa=(_0x7c3426<0x3?_0x38a89f(_0x5506aa):_0x7c3426>0x3?_0x38a89f(_0xa74c47,_0x2ba633,_0x5506aa):_0x38a89f(_0xa74c47,_0x2ba633))||_0x5506aa);}return _0x7c3426>0x3&&_0x5506aa&&Object['defineProperty'](_0xa74c47,_0x2ba633,_0x5506aa),_0x5506aa;}let Q=class extends _0x7ff31{constructor(_0x5d8007,_0x3a8aed){const _0x220a40=_0x2918aa;super(),this[_0x220a40(0xbd)]=_0x5d8007,this[_0x220a40(0x99)]=_0x3a8aed,this[_0x220a40(0xa6)]();}[_0x2918aa(0xa6)](){const _0x1ee066=_0x2918aa;this[_0x1ee066(0xb9)](this['_resourceManagerService']['registerPluginResource']({'pluginName':J,'businesses':[_0x50ff8e[_0x1ee066(0xcc)]],'toJson':_0x120133=>JSON[_0x1ee066(0x83)](this[_0x1ee066(0x99)][_0x1ee066(0xe0)](_0x120133)),'parseJson':_0x230eaf=>w(JSON[_0x1ee066(0xbb)](_0x230eaf)),'onLoad':(_0x2d4669,_0x47a0f3)=>this[_0x1ee066(0x99)][_0x1ee066(0xd1)](_0x2d4669,_0x47a0f3),'onUnLoad':_0x504211=>this[_0x1ee066(0x99)][_0x1ee066(0xa1)](_0x504211)}));}};Q=Z([X(0x0,_0x517cbe),X(0x1,_0x1a3b9a(H))],Q);let $=class extends _0x15253c{constructor(_0x56ff03=Y,_0x1fe645,_0x5d1fca,_0x43761b){const _0x4de30f=_0x2918aa;super(),this[_0x4de30f(0xb7)]=_0x56ff03,this['_injector']=_0x1fe645,this[_0x4de30f(0x8a)]=_0x5d1fca,this[_0x4de30f(0xab)]=_0x43761b;let {..._0x5d29c5}=_0x384233({},Y,this[_0x4de30f(0xb7)]);this[_0x4de30f(0xab)][_0x4de30f(0x6e)]('docs-code.config',_0x5d29c5);}['onStarting'](){const _0x51fcbf=_0x2918aa;this[_0x51fcbf(0xb4)][_0x51fcbf(0xca)]([H]),this[_0x51fcbf(0xb4)][_0x51fcbf(0xca)]([Q]),this[_0x51fcbf(0xb4)][_0x51fcbf(0x82)](H),this[_0x51fcbf(0xb4)][_0x51fcbf(0x82)](Q),[U,Me,Pe,Fe,Ie,Ne]['forEach'](_0x160938=>this[_0x51fcbf(0xb9)](this[_0x51fcbf(0x8a)][_0x51fcbf(0xdb)](_0x160938)));}};V($,_0x2918aa(0xc2),J),V($,_0x2918aa(0xc0),Be),V($,_0x2918aa(0x86),Ve),V($,'type',_0x50ff8e[_0x2918aa(0xcc)]),$=Z([_0x5e7fa3(_0x47fcc9,_0x14757f),X(0x1,_0x1a3b9a(_0x50021e)),X(0x2,_0x3581cd),X(0x3,_0x1024e7)],$);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 _0x219c77=_0x4994;(function(_0x2b65b0,_0x126e1c){const _0x29566a=_0x4994,_0x238b3b=_0x2b65b0();while(!![]){try{const _0x32241e=parseInt(_0x29566a(0xa8))/0x1+-parseInt(_0x29566a(0x7e))/0x2+parseInt(_0x29566a(0x88))/0x3*(parseInt(_0x29566a(0xb7))/0x4)+parseInt(_0x29566a(0xc9))/0x5*(-parseInt(_0x29566a(0xc6))/0x6)+-parseInt(_0x29566a(0xec))/0x7*(parseInt(_0x29566a(0xaf))/0x8)+-parseInt(_0x29566a(0x6b))/0x9+parseInt(_0x29566a(0xa5))/0xa*(parseInt(_0x29566a(0xe8))/0xb);if(_0x32241e===_0x126e1c)break;else _0x238b3b['push'](_0x238b3b['shift']());}catch(_0x39bfe2){_0x238b3b['push'](_0x238b3b['shift']());}}}(_0x2a2a,0x5f27a));import{BuildTextUtils as _0x52d7f9,CommandType as _0x4ff736,DataStreamTreeTokenType as _0x4ed1bf,DependentOn as _0x268121,Disposable as _0x5107f0,DocumentBlockRangeType as _0x34d60f,ICommandService as _0x37df2c,IConfigService as _0x431f58,IResourceManagerService as _0x440e2f,IUniverInstanceService as _0x595ab8,Inject as _0x422fcc,Injector as _0x3af657,JSONX as _0x54cd09,Plugin as _0x4de551,Tools as _0x3fd2f4,UniverInstanceType as _0x47101f,createParagraphId as _0x44a586,generateRandomId as _0x12ff78,merge as _0xa8f50a}from'@univerjs/core';import{DocContentInsertService as _0x5727fa,DocSelectionManagerService as _0x41c563,RichTextEditingMutation as _0x40cd82,UniverDocsPlugin as _0x2ecad0}from'@univerjs/docs';import{Subject as _0x2f75e2}from'rxjs';import{UniverLicensePlugin as _0x48da71}from'@univerjs-pro/license';const S={'language':_0x219c77(0x75),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function C(_0x4a384b){return{...S,..._0x4a384b};}function w(_0x2631d6){const _0x14649e=_0x219c77;var _0x510d84;let _0x443897=(_0x510d84=_0x2631d6==null?void 0x0:_0x2631d6['codes'])==null?{}:_0x510d84;return{'codes':Object['fromEntries'](Object[_0x14649e(0xf1)](_0x443897)[_0x14649e(0xf0)](([_0x5673b3,_0xe55472])=>[_0x5673b3,C(_0xe55472)]))};}function T(_0xe86fec,_0x5292b0,_0x532988){const _0x512371=_0x219c77;let _0x10873f=w(_0xe86fec);return _0x10873f[_0x512371(0xe7)][_0x5292b0]=C({..._0x10873f['codes'][_0x5292b0],..._0x532988}),_0x10873f;}function re(_0x35fb01,_0x1f3ade){const _0x38de12=_0x219c77;let _0x48d536=w(_0x35fb01);return delete _0x48d536[_0x38de12(0xe7)][_0x1f3ade],_0x48d536;}const ie=_0x219c77(0x8d);function ae(_0x136ac3){const _0xe777e=_0x219c77;var _0x184156,_0x2b99ef,_0x5bcaf2;let _0x440a91=D(_0x136ac3[_0xe777e(0x76)]),_0x5bedb4=O(_0x440a91),_0x1e4399=se(_0x136ac3[_0xe777e(0x7f)],_0x136ac3['endOffset']),_0x2a22f5=_0x1e4399?(_0x184156=_0x5bedb4[_0xe777e(0xab)])==null?void 0x0:_0x184156[_0xe777e(0x71)](_0x1bf890=>_0x1bf890['startIndex']===_0x1e4399[_0xe777e(0x7f)]&&_0x1bf890[_0xe777e(0x90)]+0x1===_0x1e4399[_0xe777e(0xd8)]):void 0x0,{startOffset:_0xff7c45,endOffset:_0x4b9eed}=_0x2a22f5?_0x1e4399:ye(_0x5bedb4,_0x136ac3['startOffset'],_0x136ac3['endOffset']),_0x5d3e5c=Se(_0x5bedb4,_0xff7c45,_0x4b9eed),_0x29732a=(_0x2b99ef=_0x2a22f5==null?void 0x0:_0x2a22f5[_0xe777e(0x92)])==null?_0x136ac3['blockId']:_0x2b99ef,_0x1d91e7=T(_0x136ac3[_0xe777e(0x93)],_0x29732a,{...S,..._0x136ac3['config']});if(_0x2a22f5)return _0x2a22f5[_0xe777e(0xea)]=_0x34d60f[_0xe777e(0x80)],oe(_0x5bedb4,_0xff7c45,_0x4b9eed),he(_0x5bedb4,_0xff7c45,_0x4b9eed,_0x5d3e5c),M(_0x5bedb4,_0x2a22f5),{'nextDocumentData':_0x440a91,'nextMetadata':_0x1d91e7,'cursorOffset':_0xff7c45+0x1};if(_0xff7c45===_0x4b9eed){var _0x218fc1,_0x1083a8;let _0x2d96a5=''+_0x4ed1bf[_0xe777e(0xdb)]+_0x4ed1bf[_0xe777e(0x83)]+_0x4ed1bf[_0xe777e(0xa3)];N(_0x5bedb4,_0xff7c45,_0x2d96a5,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x44a586(new Set((_0x218fc1=_0x5bedb4[_0xe777e(0x6e)])==null?void 0x0:_0x218fc1[_0xe777e(0xf0)](_0x163468=>_0x163468[_0xe777e(0xb4)]))),'paragraphStyle':E(!0x0,!0x0,_0x5d3e5c)}],'blockRanges':[{'blockId':_0x29732a,'blockType':_0x34d60f[_0xe777e(0x80)],'startIndex':0x0,'endIndex':_0x2d96a5[_0xe777e(0xa6)]-0x1}]});let _0x2125c7=(_0x1083a8=_0x5bedb4['blockRanges'])==null?void 0x0:_0x1083a8[_0xe777e(0x71)](_0x93f428=>_0x93f428['blockId']===_0x29732a);return _0x2125c7&&M(_0x5bedb4,_0x2125c7),{'nextDocumentData':_0x440a91,'nextMetadata':_0x1d91e7,'cursorOffset':_0xff7c45+0x1};}N(_0x5bedb4,_0x4b9eed,_0x4ed1bf[_0xe777e(0xa3)]),N(_0x5bedb4,_0xff7c45,_0x4ed1bf['BLOCK_START']),he(_0x5bedb4,_0xff7c45,_0x4b9eed+0x1,_0x5d3e5c);let _0x15d7cc={'blockId':_0x29732a,'blockType':_0x34d60f[_0xe777e(0x80)],'startIndex':_0xff7c45,'endIndex':_0x4b9eed+0x1};return _0x5bedb4[_0xe777e(0xab)]=[...(_0x5bcaf2=_0x5bedb4[_0xe777e(0xab)])==null?[]:_0x5bcaf2,_0x15d7cc][_0xe777e(0x81)]((_0x20f0b1,_0x54cbaa)=>_0x20f0b1['startIndex']-_0x54cbaa[_0xe777e(0xe0)]),M(_0x5bedb4,_0x15d7cc),{'nextDocumentData':_0x440a91,'nextMetadata':_0x1d91e7,'cursorOffset':_0xff7c45+0x1};}function oe(_0x33bc82,_0xbac811,_0x564e66){const _0x3f841d=_0x219c77;var _0x5c82e5;((_0x5c82e5=_0x33bc82[_0x3f841d(0x6e)])==null?[]:_0x5c82e5)[_0x3f841d(0x74)](_0x340cbc=>_0x340cbc[_0x3f841d(0xe0)]>_0xbac811&&_0x340cbc['startIndex']<_0x564e66)[_0x3f841d(0xd3)](_0x30153a=>{const _0x33930c=_0x3f841d;var _0x390252;let _0x45cdf8={...(_0x390252=_0x30153a[_0x33930c(0x87)])==null?{}:_0x390252};delete _0x45cdf8[_0x33930c(0xca)],delete _0x45cdf8[_0x33930c(0xcd)],_0x30153a[_0x33930c(0x87)]=_0x45cdf8;});}function se(_0x5c4237,_0x349c8e){const _0x1b5890=_0x219c77;return _0x5c4237==null||_0x349c8e==null||_0x5c4237===_0x349c8e?null:{'startOffset':Math[_0x1b5890(0xdc)](_0x5c4237,_0x349c8e),'endOffset':Math[_0x1b5890(0x66)](_0x5c4237,_0x349c8e)};}function ce(_0x1337e9){const _0x5ab5c9=_0x219c77;return{'nextDocumentData':D(_0x1337e9['documentData']),'nextMetadata':T(_0x1337e9[_0x5ab5c9(0x93)],_0x1337e9[_0x5ab5c9(0x92)],_0x1337e9[_0x5ab5c9(0x84)]),'cursorOffset':0x0};}function le(_0x30a987){const _0x25f580=_0x219c77;var _0x2de818,_0x173fb3;let _0x3f2101=D(_0x30a987[_0x25f580(0x76)]),_0x282caf=O(_0x3f2101),_0x5c0e80=me(_0x282caf,_0x30a987['cursorOffset']);if(!_0x5c0e80)return null;let _0x436bc5=_e(_0x282caf,_0x5c0e80),_0x103bf9=_0x436bc5[_0x436bc5[_0x25f580(0xa6)]-0x1];if(!_0x103bf9||!ve(_0x282caf,_0x5c0e80,_0x103bf9)||_0x30a987[_0x25f580(0xc2)]<_0x103bf9[_0x25f580(0xe0)])return null;let _0x561186=A(_0x282caf,_0x5c0e80,_0x103bf9);if(_0x561186>=_0x5c0e80[_0x25f580(0x90)])return null;_0x282caf[_0x25f580(0x73)]=[_0x282caf[_0x25f580(0x73)][_0x25f580(0x70)](0x0,_0x561186),_0x4ed1bf[_0x25f580(0xa3)],_0x282caf[_0x25f580(0x73)]['slice'](_0x561186,_0x5c0e80['endIndex']),_0x282caf[_0x25f580(0x73)][_0x25f580(0x70)](_0x5c0e80['endIndex']+0x1)][_0x25f580(0x77)](''),R(_0x282caf[_0x25f580(0x6e)],_0x561186,_0x5c0e80['endIndex'],0x1),R(_0x282caf[_0x25f580(0xac)],_0x561186,_0x5c0e80[_0x25f580(0x90)],0x1),R(_0x282caf[_0x25f580(0x8a)],_0x561186,_0x5c0e80[_0x25f580(0x90)],0x1),ke(_0x282caf['textRuns'],_0x561186,_0x5c0e80[_0x25f580(0x90)],0x1),z(_0x282caf[_0x25f580(0xd7)],_0x561186,_0x5c0e80[_0x25f580(0x90)],0x1),z(_0x282caf[_0x25f580(0xef)],_0x561186,_0x5c0e80[_0x25f580(0x90)],0x1),z(_0x282caf['customDecorations'],_0x561186,_0x5c0e80['endIndex'],0x1),(_0x2de818=_0x282caf[_0x25f580(0xab)])==null||_0x2de818[_0x25f580(0xd3)](_0x51041d=>{const _0x29132e=_0x25f580;_0x51041d===_0x5c0e80||_0x51041d[_0x29132e(0x92)]===_0x5c0e80['blockId']?_0x51041d['endIndex']=_0x561186:_0x51041d[_0x29132e(0xe0)]>=_0x561186&&_0x51041d[_0x29132e(0xe0)]<_0x5c0e80[_0x29132e(0x90)]&&(_0x51041d['startIndex']+=0x1,_0x51041d[_0x29132e(0x90)]+=0x1);});let _0x5d9b5a=_e(_0x282caf,{..._0x5c0e80,'endIndex':_0x561186});_0x5d9b5a[_0x25f580(0xd3)]((_0x1da80f,_0x325f78)=>{const _0x5decce=_0x25f580;var _0x3bdf85;_0x1da80f[_0x5decce(0x87)]={...(_0x3bdf85=_0x1da80f[_0x5decce(0x87)])==null?{}:_0x3bdf85,...E(_0x325f78===0x0,_0x325f78===_0x5d9b5a[_0x5decce(0xa6)]-0x1)};});let _0x470b8f=(_0x173fb3=_0x282caf[_0x25f580(0x6e)])==null?void 0x0:_0x173fb3['find'](_0x249618=>_0x249618[_0x25f580(0xe0)]===_0x561186+0x1);return _0x470b8f&&(_0x470b8f['paragraphStyle']=ge(_0x470b8f['paragraphStyle'])),{'nextDocumentData':_0x3f2101,'cursorOffset':_0x561186+0x1};}function ue(_0x1c47ca){const _0x3592f1=_0x219c77;let _0x17129f=D(_0x1c47ca['documentData']),_0x50d17a=O(_0x17129f),_0x1b683b=me(_0x50d17a,_0x1c47ca[_0x3592f1(0xc2)]);return _0x1b683b&&de(_0x17129f,_0x50d17a,_0x1b683b,_0x1c47ca['cursorOffset'],_0x1c47ca[_0x3592f1(0xbd)])||null;}function de(_0x5c175b,_0x2bdb9c,_0x39bc6d,_0x45b4c4,_0x14c65e){const _0x416d7b=_0x219c77;let _0x37897f=we(_0x2bdb9c,_0x39bc6d,_0x45b4c4,_0x14c65e);if(!_0x37897f)return null;let _0x2804f4=_0x37897f[_0x416d7b(0x85)]-0x1;return Te(_0x2bdb9c,_0x37897f[_0x416d7b(0xa0)][_0x416d7b(0xe0)],_0x37897f[_0x416d7b(0xa0)]['startIndex']+0x1),{'nextDocumentData':_0x5c175b,'cursorOffset':_0x2804f4};}function fe(_0x45f2dc,_0x20d235){const _0x55be44=_0x219c77;var _0x44961e;return _0x45f2dc==null||(_0x44961e=_0x45f2dc['blockRanges'])==null?void 0x0:_0x44961e[_0x55be44(0x71)](_0x51bbc5=>_0x51bbc5['blockType']===_0x34d60f[_0x55be44(0x80)]&&_0x51bbc5[_0x55be44(0xe0)]<=_0x20d235&&_0x20d235<=_0x51bbc5['endIndex']);}function pe(_0x449ac6){const _0x1921bb=_0x219c77;var _0x4c0498;let _0x146aa8=_0x449ac6[_0x1921bb(0x76)][_0x1921bb(0x6f)];if(!_0x146aa8)return!0x1;let _0x8ff63a=_0x449ac6[_0x1921bb(0xed)]==='left'?_0x449ac6['cursorOffset']-0x1:_0x449ac6[_0x1921bb(0xc2)],_0x1bc5d0=_0x449ac6[_0x1921bb(0xed)]==='right'?_0x449ac6[_0x1921bb(0xc2)]+0x1:_0x8ff63a;return((_0x4c0498=_0x146aa8[_0x1921bb(0xab)])==null?[]:_0x4c0498)['some'](_0x1be12a=>_0x1be12a[_0x1921bb(0xea)]===_0x34d60f[_0x1921bb(0x80)]?_0x8ff63a===_0x1be12a[_0x1921bb(0xe0)]||_0x8ff63a===_0x1be12a[_0x1921bb(0x90)]||_0x1bc5d0===_0x1be12a[_0x1921bb(0xe0)]||_0x1bc5d0===_0x1be12a['endIndex']:!0x1);}function me(_0x570a7c,_0x10ab54){const _0x38c766=_0x219c77;var _0x2f80d9;return(_0x2f80d9=_0x570a7c['blockRanges'])==null?void 0x0:_0x2f80d9[_0x38c766(0x71)](_0x3818ba=>{const _0x4731cd=_0x38c766;let _0x28e843=j(_0x570a7c,_0x3818ba);return _0x3818ba[_0x4731cd(0xea)]===_0x34d60f['CODE']&&_0x3818ba[_0x4731cd(0xe0)]<=_0x10ab54&&_0x10ab54<=_0x28e843+0x2;});}function E(_0x513e92,_0x779d43,_0x2f84ad=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x513e92&&_0x2f84ad?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ie,'fs':0xc}};}function he(_0x56fc75,_0x1ae61e,_0xdbcfc2,_0x33517d=!0x1){const _0x506ffc=_0x219c77;var _0x1d2c0a;let _0x3da2e8=((_0x1d2c0a=_0x56fc75['paragraphs'])==null?[]:_0x1d2c0a)[_0x506ffc(0x74)](_0x2ac8f2=>_0x2ac8f2['startIndex']>_0x1ae61e&&_0x2ac8f2[_0x506ffc(0xe0)]<_0xdbcfc2);_0x3da2e8[_0x506ffc(0xd3)]((_0x26cf19,_0x1db83e)=>{const _0x34ed56=_0x506ffc;var _0x151f54;_0x26cf19['paragraphStyle']={...(_0x151f54=_0x26cf19['paragraphStyle'])==null?{}:_0x151f54,...E(_0x1db83e===0x0,_0x1db83e===_0x3da2e8[_0x34ed56(0xa6)]-0x1,_0x33517d)};});}function ge(_0x532bb9){const _0x5d60f3=_0x219c77;var _0x28a1a3,_0x4097a4;let _0x575a29={..._0x532bb9==null?{}:_0x532bb9};return delete _0x575a29['indentEnd'],delete _0x575a29[_0x5d60f3(0xb3)],delete _0x575a29['spaceAbove'],delete _0x575a29[_0x5d60f3(0xcd)],((_0x28a1a3=_0x575a29[_0x5d60f3(0xb0)])==null?void 0x0:_0x28a1a3['ff'])===ie&&((_0x4097a4=_0x575a29[_0x5d60f3(0xb0)])==null?void 0x0:_0x4097a4['fs'])===0xc&&delete _0x575a29[_0x5d60f3(0xb0)],_0x575a29;}function _e(_0x52ec27,_0x306a7f){const _0x3692fe=_0x219c77;var _0x293e8c;let _0x20470d=j(_0x52ec27,_0x306a7f);return((_0x293e8c=_0x52ec27[_0x3692fe(0x6e)])==null?[]:_0x293e8c)[_0x3692fe(0x74)](_0x56adf2=>_0x56adf2[_0x3692fe(0xe0)]>_0x306a7f[_0x3692fe(0xe0)]&&_0x56adf2[_0x3692fe(0xe0)]<_0x20470d);}function ve(_0x1c8d06,_0x5ce5ba,_0x2f4f41){const _0x2cb2ee=_0x219c77;let _0x938490=A(_0x1c8d06,_0x5ce5ba,_0x2f4f41),_0x4b9463=_0x1c8d06[_0x2cb2ee(0x73)]['slice'](_0x938490,_0x2f4f41['startIndex']);return Array['from'](_0x4b9463)[_0x2cb2ee(0x96)](_0xf71d78=>_0xf71d78===_0x4ed1bf['BLOCK_START']||_0xf71d78===_0x4ed1bf[_0x2cb2ee(0xa3)]);}function D(_0x34caaa){const _0x391afa=_0x219c77;return _0x3fd2f4[_0x391afa(0xc0)](_0x34caaa);}function O(_0x5c8e62){const _0x2f9148=_0x219c77;if(!_0x5c8e62['body'])throw Error(_0x2f9148(0x97));return _0x5c8e62[_0x2f9148(0x6f)];}function ye(_0x47551e,_0x2418a3,_0x4ea7f0){const _0x182576=_0x219c77;if(_0x2418a3==null||_0x4ea7f0==null){let _0x97b7f=xe(_0x47551e);return{'startOffset':_0x97b7f,'endOffset':_0x97b7f};}let _0x1acdfc=Math[_0x182576(0xdc)](_0x2418a3,_0x4ea7f0),_0x29672b=Math[_0x182576(0x66)](_0x2418a3,_0x4ea7f0);if(_0x1acdfc===_0x29672b){let _0x3c7bb9=be(_0x47551e,_0x1acdfc);return{'startOffset':_0x3c7bb9,'endOffset':_0x3c7bb9};}return Ce(_0x47551e,_0x1acdfc,_0x29672b);}function be(_0x39b05d,_0x39f0b9){const _0x1afea7=_0x219c77;return _0x39f0b9===0x0&&_0x39b05d[_0x1afea7(0x73)][0x0]===_0x4ed1bf[_0x1afea7(0x83)]?0x1:_0x39f0b9;}function xe(_0x2b06e4){const _0x423f45=_0x219c77;return _0x2b06e4[_0x423f45(0x73)][_0x423f45(0xe6)](_0x4ed1bf[_0x423f45(0x7d)])?Math[_0x423f45(0x66)](0x0,_0x2b06e4[_0x423f45(0x73)][_0x423f45(0xa6)]-0x1):_0x2b06e4[_0x423f45(0x73)][_0x423f45(0xa6)];}function Se(_0x1e19f9,_0x15a9e8,_0x3c2e7){const _0x562d17=_0x219c77;var _0xe463c4;let _0x1eaf81=Math['min'](_0x15a9e8,_0x3c2e7),_0x1241c7=Math[_0x562d17(0x66)](_0x15a9e8,_0x3c2e7);return!!((_0xe463c4=_0x1e19f9[_0x562d17(0xd7)])!=null&&_0xe463c4[_0x562d17(0xee)](_0x4265f2=>_0x1eaf81>_0x4265f2[_0x562d17(0xe0)]&&_0x1eaf81<_0x4265f2['endIndex']||_0x1241c7>_0x4265f2['startIndex']&&_0x1241c7<_0x4265f2[_0x562d17(0x90)]||_0x1eaf81<=_0x4265f2[_0x562d17(0xe0)]&&_0x1241c7>=_0x4265f2[_0x562d17(0x90)]));}function Ce(_0x497674,_0x579e0b,_0x536a20){const _0x3b5500=_0x219c77;var _0x46d3b9,_0x4ea261;let _0x139342=[...(_0x46d3b9=_0x497674[_0x3b5500(0x6e)])==null?[]:_0x46d3b9][_0x3b5500(0x81)]((_0x202d21,_0x1c81ba)=>_0x202d21[_0x3b5500(0xe0)]-_0x1c81ba[_0x3b5500(0xe0)]),_0x1de355=_0x139342['find']((_0x3bed3f,_0x37761d)=>(_0x37761d===0x0?0x0:_0x139342[_0x37761d-0x1]['startIndex']+0x1)<=_0x579e0b&&_0x579e0b<=_0x3bed3f['startIndex']),_0x2d5dbc=(_0x4ea261=_0x139342[_0x3b5500(0x71)](_0x8fbe47=>_0x8fbe47['startIndex']>=_0x536a20-0x1))==null?_0x139342[_0x139342['length']-0x1]:_0x4ea261;return{'startOffset':_0x1de355?k(_0x139342,_0x1de355):_0x579e0b,'endOffset':_0x2d5dbc?_0x2d5dbc[_0x3b5500(0xe0)]+0x1:_0x536a20};}function k(_0x365f70,_0x263f92){const _0x392b69=_0x219c77;let _0x42ec70=_0x365f70[_0x392b69(0xaa)](_0x263f92);return _0x42ec70>0x0?_0x365f70[_0x42ec70-0x1][_0x392b69(0xe0)]+0x1:0x0;}function _0x4994(_0x41117,_0x1705cf){_0x41117=_0x41117-0x66;const _0x2a2aa3=_0x2a2a();let _0x499423=_0x2a2aa3[_0x41117];return _0x499423;}function A(_0x38cbf5,_0x977bdb,_0x2318b5){const _0x29c4b3=_0x219c77;var _0x48757e;return Math['max'](k((_0x48757e=_0x38cbf5[_0x29c4b3(0x6e)])==null?[]:_0x48757e,_0x2318b5),_0x977bdb['startIndex']+0x1);}function j(_0x1344e5,_0x35d585){const _0x3106ad=_0x219c77;return _0x1344e5[_0x3106ad(0x73)][_0x35d585['endIndex']]===_0x4ed1bf[_0x3106ad(0xa3)]?_0x35d585[_0x3106ad(0x90)]:_0x1344e5[_0x3106ad(0x73)][_0x35d585['endIndex']+0x1]===_0x4ed1bf[_0x3106ad(0xa3)]?_0x35d585['endIndex']+0x1:_0x35d585[_0x3106ad(0x90)];}function we(_0x2bb676,_0xb3f65f,_0x560070,_0xf10bb7){const _0x282d5a=_0x219c77;var _0x11f297,_0x210a8;let _0x5c6aea=j(_0x2bb676,_0xb3f65f),_0x472ee9=((_0x11f297=_0x2bb676[_0x282d5a(0x6e)])==null?[]:_0x11f297)[_0x282d5a(0x71)](_0x42c98a=>_0x42c98a[_0x282d5a(0xe0)]===_0x5c6aea+0x1);if(!_0x472ee9||_0xf10bb7!=null&&_0x472ee9[_0x282d5a(0xe0)]!==_0xf10bb7||_0x560070<_0x5c6aea||_0x560070>_0x472ee9[_0x282d5a(0xe0)]+0x1||_0x2bb676[_0x282d5a(0x73)][_0x472ee9[_0x282d5a(0xe0)]]!==_0x4ed1bf['PARAGRAPH'])return null;let _0x45fe27=k((_0x210a8=_0x2bb676[_0x282d5a(0x6e)])==null?[]:_0x210a8,_0x472ee9),_0x3b2da9=_0x2bb676[_0x282d5a(0x73)]['slice'](_0x45fe27,_0x472ee9['startIndex']);return Array[_0x282d5a(0x79)](_0x3b2da9)[_0x282d5a(0x96)](_0x1839fd=>_0x1839fd===_0x4ed1bf[_0x282d5a(0xa3)])?{'paragraph':_0x472ee9,'endTokenOffset':_0x5c6aea}:null;}function M(_0x3a8f6a,_0x4d174d){const _0x2acff5=_0x219c77;var _0x402166;let _0x2717c3=j(_0x3a8f6a,_0x4d174d),_0x5a564c=_0x3a8f6a['dataStream'][_0x2717c3+0x1];_0x5a564c!==_0x4ed1bf[_0x2acff5(0x7d)]&&_0x5a564c!==void 0x0||N(_0x3a8f6a,_0x2717c3+0x1,_0x4ed1bf[_0x2acff5(0x83)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x44a586(new Set((_0x402166=_0x3a8f6a[_0x2acff5(0x6e)])==null?void 0x0:_0x402166[_0x2acff5(0xf0)](_0x1d4065=>_0x1d4065[_0x2acff5(0xb4)])))}]});}function N(_0x51cb5b,_0x57986c,_0x691d48,_0x3cd4e8={}){const _0x54c9f2=_0x219c77;var _0x526095,_0x39e5e5;if(_0x691d48){if(_0x51cb5b[_0x54c9f2(0x73)]=''+_0x51cb5b[_0x54c9f2(0x73)][_0x54c9f2(0x70)](0x0,_0x57986c)+_0x691d48+_0x51cb5b[_0x54c9f2(0x73)][_0x54c9f2(0x70)](_0x57986c),Ee(_0x51cb5b,_0x57986c,_0x691d48[_0x54c9f2(0xa6)]),(_0x526095=_0x3cd4e8['paragraphs'])!=null&&_0x526095[_0x54c9f2(0xa6)]){var _0x1b2f68;_0x51cb5b[_0x54c9f2(0x6e)]=[...(_0x1b2f68=_0x51cb5b[_0x54c9f2(0x6e)])==null?[]:_0x1b2f68,..._0x3cd4e8[_0x54c9f2(0x6e)]['map'](_0x4d878d=>({..._0x4d878d,'startIndex':_0x4d878d['startIndex']+_0x57986c}))]['sort']((_0x561467,_0x3f41c4)=>_0x561467[_0x54c9f2(0xe0)]-_0x3f41c4[_0x54c9f2(0xe0)]);}if((_0x39e5e5=_0x3cd4e8[_0x54c9f2(0xab)])!=null&&_0x39e5e5[_0x54c9f2(0xa6)]){var _0x2c7365;_0x51cb5b[_0x54c9f2(0xab)]=[...(_0x2c7365=_0x51cb5b[_0x54c9f2(0xab)])==null?[]:_0x2c7365,..._0x3cd4e8[_0x54c9f2(0xab)][_0x54c9f2(0xf0)](_0x51bc73=>({..._0x51bc73,'startIndex':_0x51bc73[_0x54c9f2(0xe0)]+_0x57986c,'endIndex':_0x51bc73[_0x54c9f2(0x90)]+_0x57986c}))][_0x54c9f2(0x81)]((_0xc71e03,_0x4b95c2)=>_0xc71e03[_0x54c9f2(0xe0)]-_0x4b95c2['startIndex']);}}}function Te(_0x27f232,_0x395520,_0x57abec){const _0x4c6368=_0x219c77;let _0x69e7b5=_0x57abec-_0x395520;_0x27f232[_0x4c6368(0x73)]=''+_0x27f232[_0x4c6368(0x73)][_0x4c6368(0x70)](0x0,_0x395520)+_0x27f232[_0x4c6368(0x73)][_0x4c6368(0x70)](_0x57abec),De(_0x27f232,_0x395520,_0x69e7b5);}function Ee(_0x1e90b2,_0x2a10a2,_0x4ec7ea){const _0x22ca78=_0x219c77;_0x1e90b2[_0x22ca78(0x6e)]=P(_0x1e90b2[_0x22ca78(0x6e)],_0x2a10a2,_0x4ec7ea),_0x1e90b2['sectionBreaks']=P(_0x1e90b2[_0x22ca78(0xac)],_0x2a10a2,_0x4ec7ea),_0x1e90b2[_0x22ca78(0x8a)]=P(_0x1e90b2[_0x22ca78(0x8a)],_0x2a10a2,_0x4ec7ea),_0x1e90b2[_0x22ca78(0x8b)]=Oe(_0x1e90b2[_0x22ca78(0x8b)],_0x2a10a2,_0x4ec7ea),_0x1e90b2[_0x22ca78(0xd7)]=I(_0x1e90b2['tables'],_0x2a10a2,_0x4ec7ea),_0x1e90b2[_0x22ca78(0xef)]=I(_0x1e90b2[_0x22ca78(0xef)],_0x2a10a2,_0x4ec7ea),_0x1e90b2[_0x22ca78(0x9b)]=I(_0x1e90b2[_0x22ca78(0x9b)],_0x2a10a2,_0x4ec7ea),_0x1e90b2[_0x22ca78(0xab)]=I(_0x1e90b2['blockRanges'],_0x2a10a2,_0x4ec7ea);}function De(_0x3ea248,_0x2504bc,_0x1e4aa2){const _0x10da64=_0x219c77;var _0x4dd940,_0x1c4218;_0x3ea248[_0x10da64(0x6e)]=F(_0x3ea248[_0x10da64(0x6e)],_0x2504bc,_0x1e4aa2),_0x3ea248[_0x10da64(0xac)]=F(_0x3ea248[_0x10da64(0xac)],_0x2504bc,_0x1e4aa2),_0x3ea248['customBlocks']=F(_0x3ea248['customBlocks'],_0x2504bc,_0x1e4aa2),_0x3ea248['textRuns']=(_0x4dd940=L((_0x1c4218=_0x3ea248[_0x10da64(0x8b)])==null?void 0x0:_0x1c4218[_0x10da64(0xf0)](_0x3f40db=>({..._0x3f40db,'startIndex':_0x3f40db['st'],'endIndex':_0x3f40db['ed']})),_0x2504bc,_0x1e4aa2))==null?void 0x0:_0x4dd940['map'](_0x5d7506=>{let {startIndex:_0x188698,endIndex:_0x4e6a15,..._0x42e0e6}=_0x5d7506;return{..._0x42e0e6,'st':_0x188698,'ed':_0x4e6a15};}),_0x3ea248[_0x10da64(0xd7)]=L(_0x3ea248[_0x10da64(0xd7)],_0x2504bc,_0x1e4aa2),_0x3ea248[_0x10da64(0xef)]=L(_0x3ea248['customRanges'],_0x2504bc,_0x1e4aa2),_0x3ea248[_0x10da64(0x9b)]=L(_0x3ea248['customDecorations'],_0x2504bc,_0x1e4aa2),_0x3ea248[_0x10da64(0xab)]=L(_0x3ea248[_0x10da64(0xab)],_0x2504bc,_0x1e4aa2);}function P(_0x338bf3,_0x50f22b,_0x7499bf){const _0x42ec9b=_0x219c77;return _0x338bf3==null?void 0x0:_0x338bf3['map'](_0x3378ac=>_0x3378ac[_0x42ec9b(0xe0)]>=_0x50f22b?{..._0x3378ac,'startIndex':_0x3378ac[_0x42ec9b(0xe0)]+_0x7499bf}:_0x3378ac);}function F(_0x3a82e0,_0x4eff07,_0x3c1141){const _0x2321a8=_0x219c77;let _0x323985=_0x4eff07+_0x3c1141;return _0x3a82e0==null?void 0x0:_0x3a82e0[_0x2321a8(0xf0)](_0x469624=>_0x469624[_0x2321a8(0xe0)]>=_0x4eff07&&_0x469624[_0x2321a8(0xe0)]<_0x323985?null:_0x469624[_0x2321a8(0xe0)]>=_0x323985?{..._0x469624,'startIndex':_0x469624[_0x2321a8(0xe0)]-_0x3c1141}:_0x469624)['filter'](_0x5eb63e=>_0x5eb63e!=null);}function Oe(_0x218590,_0x5e802e,_0x3f8eaf){const _0x4b07df=_0x219c77;return _0x218590==null?void 0x0:_0x218590[_0x4b07df(0xf0)](_0x34ac49=>_0x34ac49['st']>=_0x5e802e?{..._0x34ac49,'st':_0x34ac49['st']+_0x3f8eaf,'ed':_0x34ac49['ed']+_0x3f8eaf}:_0x34ac49['ed']>_0x5e802e?{..._0x34ac49,'ed':_0x34ac49['ed']+_0x3f8eaf}:_0x34ac49);}function I(_0x206fa4,_0x68a98c,_0x1ecd5b){const _0x447f13=_0x219c77;return _0x206fa4==null?void 0x0:_0x206fa4[_0x447f13(0xf0)](_0x117e80=>_0x117e80[_0x447f13(0xe0)]>=_0x68a98c?{..._0x117e80,'startIndex':_0x117e80[_0x447f13(0xe0)]+_0x1ecd5b,'endIndex':_0x117e80['endIndex']+_0x1ecd5b}:_0x117e80[_0x447f13(0x90)]>=_0x68a98c?{..._0x117e80,'endIndex':_0x117e80[_0x447f13(0x90)]+_0x1ecd5b}:_0x117e80);}function L(_0x54af54,_0x4fcfb5,_0x20535f){const _0x4c119c=_0x219c77;let _0x13fde0=_0x4fcfb5+_0x20535f;return _0x54af54==null?void 0x0:_0x54af54[_0x4c119c(0xf0)](_0x1975ab=>_0x1975ab[_0x4c119c(0xe0)]>=_0x4fcfb5&&_0x1975ab[_0x4c119c(0x90)]<_0x13fde0?null:_0x1975ab[_0x4c119c(0xe0)]>=_0x13fde0?{..._0x1975ab,'startIndex':_0x1975ab[_0x4c119c(0xe0)]-_0x20535f,'endIndex':_0x1975ab['endIndex']-_0x20535f}:_0x1975ab[_0x4c119c(0x90)]>=_0x4fcfb5?{..._0x1975ab,'startIndex':_0x1975ab['startIndex']<_0x4fcfb5?_0x1975ab['startIndex']:_0x4fcfb5,'endIndex':Math[_0x4c119c(0x66)](_0x4fcfb5,_0x1975ab[_0x4c119c(0x90)]-_0x20535f)}:_0x1975ab)[_0x4c119c(0x74)](_0xf87e17=>_0xf87e17!=null);}function R(_0x1b5513,_0x4daeb8,_0x5c8380,_0x78296a){const _0x25fd4c=_0x219c77;_0x1b5513==null||_0x1b5513[_0x25fd4c(0xd3)](_0x5376b9=>{const _0x2e9748=_0x25fd4c;_0x5376b9[_0x2e9748(0xe0)]>=_0x4daeb8&&_0x5376b9[_0x2e9748(0xe0)]<_0x5c8380&&(_0x5376b9[_0x2e9748(0xe0)]+=_0x78296a);});}function ke(_0x43b170,_0x4c2c6c,_0x4f7b8c,_0x22f436){const _0x2bb4bc=_0x219c77;_0x43b170==null||_0x43b170[_0x2bb4bc(0xd3)](_0x5e4910=>{_0x5e4910['st']>=_0x4c2c6c&&_0x5e4910['st']<_0x4f7b8c?(_0x5e4910['st']+=_0x22f436,_0x5e4910['ed']+=_0x22f436):_0x5e4910['ed']>_0x4c2c6c&&_0x5e4910['ed']<_0x4f7b8c&&(_0x5e4910['ed']+=_0x22f436);});}function z(_0x589596,_0x16d280,_0x17c3b6,_0x3cb343){const _0x525d7b=_0x219c77;_0x589596==null||_0x589596[_0x525d7b(0xd3)](_0xe1fe85=>{const _0x49def8=_0x525d7b;_0xe1fe85[_0x49def8(0xe0)]>=_0x16d280&&_0xe1fe85['startIndex']<_0x17c3b6?(_0xe1fe85['startIndex']+=_0x3cb343,_0xe1fe85[_0x49def8(0x90)]+=_0x3cb343):_0xe1fe85[_0x49def8(0x90)]>_0x16d280&&_0xe1fe85[_0x49def8(0x90)]<_0x17c3b6&&(_0xe1fe85[_0x49def8(0x90)]+=_0x3cb343);});}function B(_0x32eabd){'@babel/helpers - typeof';const _0x5a5f96=_0x219c77;return B=typeof Symbol==_0x5a5f96(0xd5)&&typeof Symbol[_0x5a5f96(0xc7)]=='symbol'?function(_0x500139){return typeof _0x500139;}:function(_0x4076d8){const _0x1ddac3=_0x5a5f96;return _0x4076d8&&typeof Symbol==_0x1ddac3(0xd5)&&_0x4076d8['constructor']===Symbol&&_0x4076d8!==Symbol[_0x1ddac3(0x86)]?_0x1ddac3(0xdd):typeof _0x4076d8;},B(_0x32eabd);}function Ae(_0x29d9cf,_0x564c9c){const _0x24890f=_0x219c77;if(B(_0x29d9cf)!='object'||!_0x29d9cf)return _0x29d9cf;var _0x2b67e4=_0x29d9cf[Symbol['toPrimitive']];if(_0x2b67e4!==void 0x0){var _0x46bc0a=_0x2b67e4[_0x24890f(0x94)](_0x29d9cf,_0x564c9c||_0x24890f(0xb6));if(B(_0x46bc0a)!=_0x24890f(0xe2))return _0x46bc0a;throw TypeError(_0x24890f(0xc5));}return(_0x564c9c===_0x24890f(0xbf)?String:Number)(_0x29d9cf);}function je(_0x1c91a3){const _0x407eb3=_0x219c77;var _0x5a7c8c=Ae(_0x1c91a3,_0x407eb3(0xbf));return B(_0x5a7c8c)==_0x407eb3(0xdd)?_0x5a7c8c:_0x5a7c8c+'';}function V(_0x564431,_0x9799a2,_0x95558b){return(_0x9799a2=je(_0x9799a2))in _0x564431?Object['defineProperty'](_0x564431,_0x9799a2,{'value':_0x95558b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x564431[_0x9799a2]=_0x95558b,_0x564431;}var H=class extends _0x5107f0{constructor(..._0x2f4e4d){const _0x1d47d8=_0x219c77;super(..._0x2f4e4d),V(this,_0x1d47d8(0xcf),new Map()),V(this,_0x1d47d8(0x9a),new _0x2f75e2()),V(this,'change$',this[_0x1d47d8(0x9a)]['asObservable']());}[_0x219c77(0xc3)](_0x4eaf86,_0x1f972d){const _0x554f74=_0x219c77;return w(this[_0x554f74(0xcf)][_0x554f74(0xda)](_0x4eaf86))[_0x554f74(0xe7)][_0x1f972d];}[_0x219c77(0xd4)](_0x216631,_0x350b30,_0x4892a9){const _0x2bb5d6=_0x219c77;this[_0x2bb5d6(0xd1)](_0x216631,_0x350b30,T(this[_0x2bb5d6(0xcf)][_0x2bb5d6(0xda)](_0x216631),_0x350b30,_0x4892a9));}[_0x219c77(0x9d)](_0xcf21d8,_0x56effb){const _0x457e1c=_0x219c77;this[_0x457e1c(0xd1)](_0xcf21d8,_0x56effb,re(this[_0x457e1c(0xcf)][_0x457e1c(0xda)](_0xcf21d8),_0x56effb));}[_0x219c77(0xbb)](_0x395d66){const _0xa4bc47=_0x219c77;return w(this[_0xa4bc47(0xcf)][_0xa4bc47(0xda)](_0x395d66));}[_0x219c77(0x6a)](_0x1677b0,_0x3dd10e){const _0x182c15=_0x219c77;this[_0x182c15(0xcf)]['set'](_0x1677b0,w(_0x3dd10e)),this[_0x182c15(0x9a)]['next']({'unitId':_0x1677b0});}[_0x219c77(0xa7)](_0x570e80){const _0x1b5f22=_0x219c77;this[_0x1b5f22(0xcf)][_0x1b5f22(0xe4)](_0x570e80),this[_0x1b5f22(0x9a)][_0x1b5f22(0x99)]({'unitId':_0x570e80});}['dispose'](){const _0xacb6e1=_0x219c77;super[_0xacb6e1(0xcc)](),this['_resources'][_0xacb6e1(0xce)](),this[_0xacb6e1(0x9a)][_0xacb6e1(0x78)]();}['_setResource'](_0x5822c5,_0x415a38,_0x568370){const _0x224a8f=_0x219c77;this[_0x224a8f(0xcf)][_0x224a8f(0x9f)](_0x5822c5,_0x568370),this['_change$'][_0x224a8f(0x99)]({'unitId':_0x5822c5,'blockId':_0x415a38});}};const Me={'id':_0x219c77(0xa1),'type':_0x4ff736[_0x219c77(0x91)],'handler':_0x2738d7=>{const _0x366320=_0x219c77;let _0x48509b=Le(_0x2738d7);if(_0x48509b)return _0x2738d7[_0x366320(0xda)](_0x37df2c)[_0x366320(0xd9)](U['id'],{'startOffset':_0x48509b[_0x366320(0x7f)],'endOffset':_0x48509b[_0x366320(0xd8)],'unitId':_0x48509b[_0x366320(0xcb)]});let _0x36886d=Re(_0x2738d7);if(!_0x36886d)return!0x1;let _0x280c96=_0x36886d[_0x366320(0xe0)]+0x1;return _0x2738d7['get'](_0x37df2c)[_0x366320(0xd9)](U['id'],{'startOffset':_0x280c96,'endOffset':_0x280c96});}},Ne={'id':_0x219c77(0x98),'type':_0x4ff736[_0x219c77(0x91)],'handler':()=>!0x0},U={'id':_0x219c77(0xa9),'type':_0x4ff736['COMMAND'],'handler':(_0x58d320,_0x30fb75)=>{const _0x102ff0=_0x219c77;var _0x23ac4c,_0x3edff8,_0x22d189;let _0x4db182=W(_0x58d320,_0x30fb75==null?void 0x0:_0x30fb75['unitId']);if(!_0x4db182)return!0x1;let _0x287d2c=G(_0x58d320),_0x34365b=ae({'blockId':(_0x23ac4c=_0x30fb75==null?void 0x0:_0x30fb75[_0x102ff0(0x92)])==null?_0x12ff78(0x6):_0x23ac4c,'config':_0x30fb75==null?void 0x0:_0x30fb75[_0x102ff0(0x84)],'documentData':_0x4db182[_0x102ff0(0x8e)],'endOffset':(_0x3edff8=_0x30fb75==null?void 0x0:_0x30fb75[_0x102ff0(0xd8)])==null?_0x287d2c==null?void 0x0:_0x287d2c[_0x102ff0(0xd8)]:_0x3edff8,'metadata':_0x4db182[_0x102ff0(0x7b)][_0x102ff0(0xbb)](_0x4db182[_0x102ff0(0xcb)]),'startOffset':(_0x22d189=_0x30fb75==null?void 0x0:_0x30fb75[_0x102ff0(0x7f)])==null?_0x287d2c==null?void 0x0:_0x287d2c[_0x102ff0(0x7f)]:_0x22d189}),_0x599ff5=q(_0x4db182['commandService'],_0x4db182[_0x102ff0(0xcb)],_0x4db182[_0x102ff0(0x8e)],_0x34365b['nextDocumentData'],_0x34365b[_0x102ff0(0xc2)]);return _0x599ff5&&_0x34365b['nextMetadata']&&_0x4db182[_0x102ff0(0x7b)][_0x102ff0(0x6a)](_0x4db182[_0x102ff0(0xcb)],_0x34365b[_0x102ff0(0x8c)]),_0x599ff5;}},Pe={'id':_0x219c77(0xb5),'type':_0x4ff736[_0x219c77(0x91)],'handler':(_0x10877a,_0x37d9c8)=>{const _0x3f2e87=_0x219c77;if(!_0x37d9c8)return!0x1;let _0x5f2e44=W(_0x10877a,_0x37d9c8[_0x3f2e87(0xcb)]);if(!_0x5f2e44)return!0x1;let _0xb73a31=ce({'blockId':_0x37d9c8['blockId'],'config':_0x37d9c8[_0x3f2e87(0x84)],'documentData':_0x5f2e44[_0x3f2e87(0x8e)],'metadata':_0x5f2e44[_0x3f2e87(0x7b)]['serialize'](_0x5f2e44[_0x3f2e87(0xcb)])});return _0xb73a31[_0x3f2e87(0x8c)]&&_0x5f2e44[_0x3f2e87(0x7b)]['deserialize'](_0x5f2e44[_0x3f2e87(0xcb)],_0xb73a31[_0x3f2e87(0x8c)]),!0x0;}},Fe={'id':_0x219c77(0xe5),'type':_0x4ff736[_0x219c77(0x91)],'handler':(_0x4a82fa,_0x284006)=>{const _0x328b80=_0x219c77;var _0xefa2ec,_0x8090f3;let _0x40dd71=W(_0x4a82fa,_0x284006==null?void 0x0:_0x284006[_0x328b80(0xcb)]);if(!_0x40dd71)return!0x1;let _0x162e1e=(_0xefa2ec=_0x284006==null?void 0x0:_0x284006[_0x328b80(0xc2)])==null?(_0x8090f3=G(_0x4a82fa))==null?void 0x0:_0x8090f3[_0x328b80(0x7f)]:_0xefa2ec;if(_0x162e1e==null)return!0x1;let _0x5897b6=le({'cursorOffset':_0x162e1e,'documentData':_0x40dd71[_0x328b80(0x8e)]});return _0x5897b6?q(_0x40dd71[_0x328b80(0xc1)],_0x40dd71[_0x328b80(0xcb)],_0x40dd71['previousDocumentData'],_0x5897b6[_0x328b80(0x8f)],_0x5897b6[_0x328b80(0xc2)]):!0x1;}},Ie={'id':'docs-code.command.cancel-empty-paragraph','type':_0x4ff736[_0x219c77(0x91)],'handler':(_0x131f09,_0xed3cd6)=>{const _0xb17efa=_0x219c77;var _0xaa5934,_0x5543bb;let _0x5907dd=W(_0x131f09,_0xed3cd6==null?void 0x0:_0xed3cd6[_0xb17efa(0xcb)]);if(!_0x5907dd)return!0x1;let _0x7aee23=(_0xaa5934=_0xed3cd6==null?void 0x0:_0xed3cd6[_0xb17efa(0xc2)])==null?(_0x5543bb=G(_0x131f09))==null?void 0x0:_0x5543bb['startOffset']:_0xaa5934;if(_0x7aee23==null)return!0x1;let _0x24a917=ue({'cursorOffset':_0x7aee23,'documentData':_0x5907dd['previousDocumentData'],'paragraphStartIndex':_0xed3cd6==null?void 0x0:_0xed3cd6[_0xb17efa(0xbd)]});return _0x24a917?q(_0x5907dd[_0xb17efa(0xc1)],_0x5907dd[_0xb17efa(0xcb)],_0x5907dd[_0xb17efa(0x8e)],_0x24a917['nextDocumentData'],_0x24a917[_0xb17efa(0xc2)]):!0x1;}};function W(_0x1831e0,_0x2665ed){const _0x2c5ef1=_0x219c77;let _0x3ede72=_0x1831e0[_0x2c5ef1(0xda)](_0x595ab8),_0xfe163b=_0x2665ed?_0x3ede72[_0x2c5ef1(0x82)](_0x2665ed):_0x3ede72[_0x2c5ef1(0x89)](_0x47101f[_0x2c5ef1(0xe3)]);return _0xfe163b?{'commandService':_0x1831e0[_0x2c5ef1(0xda)](_0x37df2c),'model':_0x1831e0[_0x2c5ef1(0xda)](H),'previousDocumentData':_0xfe163b['getSnapshot'](),'unitId':_0xfe163b[_0x2c5ef1(0xbc)]()}:null;}function G(_0x562e10){const _0x473226=_0x219c77;var _0x5ba7cd;return(_0x5ba7cd=_0x562e10[_0x473226(0xda)](_0x41c563)[_0x473226(0x7c)]())==null?void 0x0:_0x5ba7cd[0x0];}function Le(_0x3bdd49){const _0x1e3ccb=_0x219c77;var _0x56d65c;let _0x2fc5e5=(_0x56d65c=_0x3bdd49[_0x1e3ccb(0xda)](_0x595ab8)[_0x1e3ccb(0x89)](_0x47101f[_0x1e3ccb(0xe3)]))==null?void 0x0:_0x56d65c[_0x1e3ccb(0xbc)]();try{return _0x3bdd49[_0x1e3ccb(0xda)](_0x5727fa)[_0x1e3ccb(0xbe)](_0x2fc5e5);}catch{return null;}}function Re(_0xf840f){const _0x37a7aa=_0x219c77;var _0x30193b,_0xecbf3f,_0xf7d6de;let _0x51d53a=G(_0xf840f);if(!_0x51d53a)return null;let _0x421317=_0xf840f[_0x37a7aa(0xda)](_0x595ab8)[_0x37a7aa(0x89)](_0x47101f[_0x37a7aa(0xe3)]),_0x3d3494=_0x421317==null?void 0x0:_0x421317[_0x37a7aa(0x9c)]();return _0x3d3494?(_0x30193b=_0x52d7f9['range']['getParagraphsInRange'](_0x51d53a,(_0xecbf3f=_0x3d3494[_0x37a7aa(0x6e)])==null?[]:_0xecbf3f,(_0xf7d6de=_0x3d3494['dataStream'])==null?'':_0xf7d6de)[0x0])==null?null:_0x30193b:null;}function ze(_0x593c2c,_0xc541c){const _0x4a7b70=_0x219c77;var _0x1fed2e,_0xf4faf7,_0x46af51,_0x5352d7,_0x4b78a7,_0x57f04e,_0x9d5867,_0x7079be,_0x16d43e,_0x36a153,_0x1efdf8,_0x21e3d7,_0x153f4f,_0x2899e7,_0x2dfbb0,_0x2a4832,_0x3a6007,_0x1894b7;let _0x5a903f=_0x54cd09[_0x4a7b70(0xae)]();return[K(_0x5a903f,[_0x4a7b70(0x6f),_0x4a7b70(0x73)],(_0x1fed2e=_0x593c2c['body'])==null?void 0x0:_0x1fed2e[_0x4a7b70(0x73)],(_0xf4faf7=_0xc541c['body'])==null?void 0x0:_0xf4faf7[_0x4a7b70(0x73)]),K(_0x5a903f,[_0x4a7b70(0x6f),'paragraphs'],(_0x46af51=_0x593c2c[_0x4a7b70(0x6f)])==null?void 0x0:_0x46af51[_0x4a7b70(0x6e)],(_0x5352d7=_0xc541c[_0x4a7b70(0x6f)])==null?void 0x0:_0x5352d7[_0x4a7b70(0x6e)]),K(_0x5a903f,[_0x4a7b70(0x6f),_0x4a7b70(0xac)],(_0x4b78a7=_0x593c2c[_0x4a7b70(0x6f)])==null?void 0x0:_0x4b78a7[_0x4a7b70(0xac)],(_0x57f04e=_0xc541c['body'])==null?void 0x0:_0x57f04e[_0x4a7b70(0xac)]),K(_0x5a903f,[_0x4a7b70(0x6f),'textRuns'],(_0x9d5867=_0x593c2c['body'])==null?void 0x0:_0x9d5867[_0x4a7b70(0x8b)],(_0x7079be=_0xc541c[_0x4a7b70(0x6f)])==null?void 0x0:_0x7079be[_0x4a7b70(0x8b)]),K(_0x5a903f,[_0x4a7b70(0x6f),_0x4a7b70(0x8a)],(_0x16d43e=_0x593c2c[_0x4a7b70(0x6f)])==null?void 0x0:_0x16d43e[_0x4a7b70(0x8a)],(_0x36a153=_0xc541c[_0x4a7b70(0x6f)])==null?void 0x0:_0x36a153[_0x4a7b70(0x8a)]),K(_0x5a903f,[_0x4a7b70(0x6f),_0x4a7b70(0xef)],(_0x1efdf8=_0x593c2c[_0x4a7b70(0x6f)])==null?void 0x0:_0x1efdf8['customRanges'],(_0x21e3d7=_0xc541c[_0x4a7b70(0x6f)])==null?void 0x0:_0x21e3d7[_0x4a7b70(0xef)]),K(_0x5a903f,[_0x4a7b70(0x6f),_0x4a7b70(0x9b)],(_0x153f4f=_0x593c2c[_0x4a7b70(0x6f)])==null?void 0x0:_0x153f4f['customDecorations'],(_0x2899e7=_0xc541c[_0x4a7b70(0x6f)])==null?void 0x0:_0x2899e7[_0x4a7b70(0x9b)]),K(_0x5a903f,[_0x4a7b70(0x6f),_0x4a7b70(0xd7)],(_0x2dfbb0=_0x593c2c[_0x4a7b70(0x6f)])==null?void 0x0:_0x2dfbb0[_0x4a7b70(0xd7)],(_0x2a4832=_0xc541c[_0x4a7b70(0x6f)])==null?void 0x0:_0x2a4832[_0x4a7b70(0xd7)]),K(_0x5a903f,[_0x4a7b70(0x6f),_0x4a7b70(0xab)],(_0x3a6007=_0x593c2c['body'])==null?void 0x0:_0x3a6007[_0x4a7b70(0xab)],(_0x1894b7=_0xc541c[_0x4a7b70(0x6f)])==null?void 0x0:_0x1894b7[_0x4a7b70(0xab)])][_0x4a7b70(0x74)](Boolean)[_0x4a7b70(0xb1)]((_0x5731e6,_0x135d22)=>_0x54cd09['compose'](_0x5731e6,_0x135d22),null);}function K(_0x426755,_0x34c781,_0x4c4095,_0x3c9bc0){const _0x3f92f2=_0x219c77;return _0x3fd2f4[_0x3f92f2(0xd2)](_0x4c4095,_0x3c9bc0)?null:_0x426755[_0x3f92f2(0xad)](_0x34c781,_0x4c4095,_0x3c9bc0);}function q(_0x442045,_0x1e1805,_0x24eba0,_0x26f75f,_0x124e86){const _0x3f22d6=_0x219c77;let _0x4772c5=ze(_0x24eba0,_0x26f75f);return _0x4772c5?!!_0x442045[_0x3f22d6(0xd9)](_0x40cd82['id'],{'unitId':_0x1e1805,'actions':_0x4772c5,'textRanges':[{'startOffset':_0x124e86,'endOffset':_0x124e86,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const J=_0x219c77(0xb9);var Be=_0x219c77(0xd0),Ve=_0x219c77(0xb8);const Y={};function X(_0x285c62,_0x5c8745){return function(_0x5227f6,_0xcc5c68){_0x5c8745(_0x5227f6,_0xcc5c68,_0x285c62);};}function Z(_0x73c503,_0x1d7686,_0xdda2bb,_0x407e81){const _0x1a02ce=_0x219c77;var _0x17aa97=arguments['length'],_0x27b880=_0x17aa97<0x3?_0x1d7686:_0x407e81===null?_0x407e81=Object['getOwnPropertyDescriptor'](_0x1d7686,_0xdda2bb):_0x407e81,_0x3cf8e6;if(typeof Reflect=='object'&&typeof Reflect[_0x1a02ce(0x9e)]==_0x1a02ce(0xd5))_0x27b880=Reflect['decorate'](_0x73c503,_0x1d7686,_0xdda2bb,_0x407e81);else{for(var _0x468cee=_0x73c503['length']-0x1;_0x468cee>=0x0;_0x468cee--)(_0x3cf8e6=_0x73c503[_0x468cee])&&(_0x27b880=(_0x17aa97<0x3?_0x3cf8e6(_0x27b880):_0x17aa97>0x3?_0x3cf8e6(_0x1d7686,_0xdda2bb,_0x27b880):_0x3cf8e6(_0x1d7686,_0xdda2bb))||_0x27b880);}return _0x17aa97>0x3&&_0x27b880&&Object[_0x1a02ce(0xe1)](_0x1d7686,_0xdda2bb,_0x27b880),_0x27b880;}let Q=class extends _0x5107f0{constructor(_0x433373,_0x309058){const _0x4da57c=_0x219c77;super(),this['_resourceManagerService']=_0x433373,this[_0x4da57c(0xc8)]=_0x309058,this[_0x4da57c(0xa4)]();}[_0x219c77(0xa4)](){const _0x1c6174=_0x219c77;this[_0x1c6174(0x72)](this['_resourceManagerService'][_0x1c6174(0x69)]({'pluginName':J,'businesses':[_0x47101f['UNIVER_DOC']],'toJson':_0x4df0ca=>JSON[_0x1c6174(0xb2)](this['_docsCodeModel']['serialize'](_0x4df0ca)),'parseJson':_0x46ebd5=>w(JSON[_0x1c6174(0x6c)](_0x46ebd5)),'onLoad':(_0x36f431,_0x1c12b2)=>this[_0x1c6174(0xc8)][_0x1c6174(0x6a)](_0x36f431,_0x1c12b2),'onUnLoad':_0x21da33=>this[_0x1c6174(0xc8)]['removeUnit'](_0x21da33)}));}};Q=Z([X(0x0,_0x440e2f),X(0x1,_0x422fcc(H))],Q);function _0x2a2a(){const _0x382717=['symbol','_injector','registerCommand','startIndex','defineProperty','object','UNIVER_DOC','delete','docs-code.command.exit','endsWith','codes','187nfWdBo','_commandService','blockType','setConfig','6937itKUSD','direction','some','customRanges','map','entries','max','onStarting','type','registerPluginResource','deserialize','3702258wmLZyj','parse','add','paragraphs','body','slice','find','disposeWithMe','dataStream','filter','javascript','documentData','join','complete','from','version','model','getTextRanges','SECTION_BREAK','1110032lkUmMy','startOffset','CODE','sort','getUniverDocInstance','PARAGRAPH','config','endTokenOffset','prototype','paragraphStyle','363JaCEmg','getCurrentUnitOfType','customBlocks','textRuns','nextMetadata','monospace','previousDocumentData','nextDocumentData','endIndex','COMMAND','blockId','metadata','call','packageName','every','Document\x20body\x20is\x20required','docs-code.command.consume-boundary-delete','next','_change$','customDecorations','getBody','removeCode','decorate','set','paragraph','docs-code.command.insert-below','_configService','BLOCK_END','_initResource','934130DRFSrj','length','removeUnit','88541QXqGix','docs-code.command.insert','indexOf','blockRanges','sectionBreaks','replaceOp','getInstance','3896qgISxu','textStyle','reduce','stringify','indentStart','paragraphId','docs-code.command.update','default','6012dqyHmE','1.0.0-insiders.20260701-0ef51b0','DOC_CODE_PLUGIN','pluginName','serialize','getUnitId','paragraphStartIndex','consumeInsertRange','string','deepClone','commandService','cursorOffset','getCodeConfig','_config','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','118056aWZQDH','iterator','_docsCodeModel','5ScxZsl','spaceAbove','unitId','dispose','spaceBelow','clear','_resources','@univerjs-pro/docs-code','_setResource','diffValue','forEach','setCodeConfig','function','docs-code.config','tables','endOffset','syncExecuteCommand','get','BLOCK_START','min'];_0x2a2a=function(){return _0x382717;};return _0x2a2a();}let $=class extends _0x4de551{constructor(_0x6b7fbe=Y,_0x76ea31,_0x14e177,_0x288b4c){const _0xcb864e=_0x219c77;super(),this[_0xcb864e(0xc4)]=_0x6b7fbe,this[_0xcb864e(0xde)]=_0x76ea31,this[_0xcb864e(0xe9)]=_0x14e177,this['_configService']=_0x288b4c;let {..._0x46a0c8}=_0xa8f50a({},Y,this[_0xcb864e(0xc4)]);this[_0xcb864e(0xa2)][_0xcb864e(0xeb)](_0xcb864e(0xd6),_0x46a0c8);}[_0x219c77(0x67)](){const _0xc80b6a=_0x219c77;this[_0xc80b6a(0xde)][_0xc80b6a(0x6d)]([H]),this['_injector'][_0xc80b6a(0x6d)]([Q]),this[_0xc80b6a(0xde)]['get'](H),this[_0xc80b6a(0xde)][_0xc80b6a(0xda)](Q),[U,Me,Pe,Fe,Ie,Ne][_0xc80b6a(0xd3)](_0xfa5925=>this[_0xc80b6a(0x72)](this[_0xc80b6a(0xe9)][_0xc80b6a(0xdf)](_0xfa5925)));}};V($,_0x219c77(0xba),J),V($,_0x219c77(0x95),Be),V($,_0x219c77(0x7a),Ve),V($,_0x219c77(0x68),_0x47101f['UNIVER_DOC']),$=Z([_0x268121(_0x48da71,_0x2ecad0),X(0x1,_0x422fcc(_0x3af657)),X(0x2,_0x37df2c),X(0x3,_0x431f58)],$);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 _0x21ea(){var _0x26f772=['exports','FDocumentCode','3530073wJIUDD','object','getId','_injector','BLOCK_START','Injector','getCode','get','updateConfig','function','constructor','SECTION_BREAK','DocumentBlockRangeType','UniverProDocsCodeFacade','CODE','describe','DocsCodeModel','exit','65176BLsagS','DataStreamTreeTokenType','getRange','Inject','toStringTag','normalizeDocsCodeConfig','join','PARAGRAPH','820746UIOKkG','symbol','226984XuIDhK','924WGBiRH','UniverDocsFacade','1980278oXQoKA','Module','4VWaTkS','DocsCodeCancelEmptyParagraphCommand','syncExecuteCommand','from','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','startIndex','filter','@univerjs/docs/facade','DocsCodeExitCommand','_createFDocumentCode','text','ICommandService','getType','default','_getBlockRange','find','includes','getConfig','decorate','getCodeAt','map','string','UniverCore','length','cancelEmptyParagraph','exitCode','DocsCodeUpdateCommand','replace','_getBlockRanges','blockId','findCodeByText','blockRanges','extend','defineProperty','_unitId','DocsCodeInsertCommand','body','generateRandomId','insertCode','35dcAtEs','_document','17566210hXAXLU','FDocument','save','14468931mIdufM','toPrimitive','dataStream','_blockId','some','endIndex','blockType','findCodes','slice','getText','getOwnPropertyDescriptor','getCodes','getCodeConfig','config','_getDocumentData','UniverProDocsCode'];_0x21ea=function(){return _0x26f772;};return _0x21ea();}function _0x4901(_0x267686,_0x52caf1){_0x267686=_0x267686-0x1f4;var _0x21ea9d=_0x21ea();var _0x4901e2=_0x21ea9d[_0x267686];return _0x4901e2;}(function(_0x1e4f2d,_0x54fef1){var _0x8e0665=_0x4901,_0xf19b59=_0x1e4f2d();while(!![]){try{var _0x7ef484=-parseInt(_0x8e0665(0x234))/0x1+-parseInt(_0x8e0665(0x237))/0x2+-parseInt(_0x8e0665(0x218))/0x3*(parseInt(_0x8e0665(0x239))/0x4)+-parseInt(_0x8e0665(0x201))/0x5*(-parseInt(_0x8e0665(0x232))/0x6)+parseInt(_0x8e0665(0x235))/0x7*(-parseInt(_0x8e0665(0x22a))/0x8)+parseInt(_0x8e0665(0x206))/0x9+parseInt(_0x8e0665(0x203))/0xa;if(_0x7ef484===_0x54fef1)break;else _0xf19b59['push'](_0xf19b59['shift']());}catch(_0x445d0f){_0xf19b59['push'](_0xf19b59['shift']());}}}(_0x21ea,0xd0277),function(_0x1b107d,_0x4ffcb4){var _0x10962a=_0x4901;typeof exports==_0x10962a(0x219)&&typeof module<'u'?_0x4ffcb4(exports,require('@univerjs-pro/docs-code'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define==_0x10962a(0x221)&&define['amd']?define([_0x10962a(0x216),'@univerjs-pro/docs-code','@univerjs/core',_0x10962a(0x240)],_0x4ffcb4):(_0x1b107d=typeof globalThis<'u'?globalThis:_0x1b107d||self,_0x4ffcb4(_0x1b107d[_0x10962a(0x225)]={},_0x1b107d[_0x10962a(0x215)],_0x1b107d[_0x10962a(0x24f)],_0x1b107d[_0x10962a(0x236)]));}(this,function(_0x3cec7d,_0x30293a,_0x1307b0,_0x2d81cf){var _0x47ffa0=_0x4901;Object[_0x47ffa0(0x1fb)](_0x3cec7d,Symbol[_0x47ffa0(0x22e)],{'value':_0x47ffa0(0x238)});function _0x2de703(_0x53b468){'@babel/helpers - typeof';var _0xaca9bd=_0x47ffa0;return _0x2de703=typeof Symbol==_0xaca9bd(0x221)&&typeof Symbol['iterator']=='symbol'?function(_0x4b9872){return typeof _0x4b9872;}:function(_0x53c0e1){var _0x5c0b7a=_0xaca9bd;return _0x53c0e1&&typeof Symbol=='function'&&_0x53c0e1[_0x5c0b7a(0x222)]===Symbol&&_0x53c0e1!==Symbol['prototype']?_0x5c0b7a(0x233):typeof _0x53c0e1;},_0x2de703(_0x53b468);}function _0x4970ac(_0xc25396,_0x5194fd){var _0x203bb0=_0x47ffa0;if(_0x2de703(_0xc25396)!=_0x203bb0(0x219)||!_0xc25396)return _0xc25396;var _0xd8eb22=_0xc25396[Symbol[_0x203bb0(0x207)]];if(_0xd8eb22!==void 0x0){var _0x1875e2=_0xd8eb22['call'](_0xc25396,_0x5194fd||_0x203bb0(0x246));if(_0x2de703(_0x1875e2)!=_0x203bb0(0x219))return _0x1875e2;throw TypeError(_0x203bb0(0x23d));}return(_0x5194fd===_0x203bb0(0x24e)?String:Number)(_0xc25396);}function _0x313bab(_0x2ecf01){var _0x1ea0aa=_0x47ffa0,_0x5757ee=_0x4970ac(_0x2ecf01,_0x1ea0aa(0x24e));return _0x2de703(_0x5757ee)==_0x1ea0aa(0x233)?_0x5757ee:_0x5757ee+'';}function _0x28fbf1(_0x4ac4c6,_0x778b29,_0x46c27c){var _0x42661c=_0x47ffa0;return(_0x778b29=_0x313bab(_0x778b29))in _0x4ac4c6?Object[_0x42661c(0x1fb)](_0x4ac4c6,_0x778b29,{'value':_0x46c27c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4ac4c6[_0x778b29]=_0x46c27c,_0x4ac4c6;}function _0x3d2a94(_0x21cf72,_0x4b772e){return function(_0x2a0601,_0x416c0c){_0x4b772e(_0x2a0601,_0x416c0c,_0x21cf72);};}function _0xad210e(_0x513997,_0x43515a,_0x3a24f9,_0x2d14eb){var _0x222e90=_0x47ffa0,_0x2c7b1c=arguments[_0x222e90(0x250)],_0x4f8120=_0x2c7b1c<0x3?_0x43515a:_0x2d14eb===null?_0x2d14eb=Object[_0x222e90(0x210)](_0x43515a,_0x3a24f9):_0x2d14eb,_0x31e250;if(typeof Reflect==_0x222e90(0x219)&&typeof Reflect['decorate']=='function')_0x4f8120=Reflect[_0x222e90(0x24b)](_0x513997,_0x43515a,_0x3a24f9,_0x2d14eb);else{for(var _0x3c9100=_0x513997[_0x222e90(0x250)]-0x1;_0x3c9100>=0x0;_0x3c9100--)(_0x31e250=_0x513997[_0x3c9100])&&(_0x4f8120=(_0x2c7b1c<0x3?_0x31e250(_0x4f8120):_0x2c7b1c>0x3?_0x31e250(_0x43515a,_0x3a24f9,_0x4f8120):_0x31e250(_0x43515a,_0x3a24f9))||_0x4f8120);}return _0x2c7b1c>0x3&&_0x4f8120&&Object[_0x222e90(0x1fb)](_0x43515a,_0x3a24f9,_0x4f8120),_0x4f8120;}let _0x2cda65=class{constructor(_0x12b650,_0x4fe77b,_0x12e435){var _0x2e69d2=_0x47ffa0;this[_0x2e69d2(0x202)]=_0x12b650,this['_blockId']=_0x4fe77b,this[_0x2e69d2(0x21b)]=_0x12e435,_0x28fbf1(this,_0x2e69d2(0x1fc),void 0x0),this['_unitId']=this[_0x2e69d2(0x202)][_0x2e69d2(0x21a)]();}['getId'](){var _0x3adf5e=_0x47ffa0;return this[_0x3adf5e(0x209)];}[_0x47ffa0(0x22c)](){var _0x58b126=_0x47ffa0;let _0x3525a4=this['_getBlockRange']();return _0x3525a4?{'blockId':_0x3525a4[_0x58b126(0x1f7)],'endIndex':_0x3525a4['endIndex'],'startIndex':_0x3525a4[_0x58b126(0x23e)]}:null;}[_0x47ffa0(0x20f)](){var _0x214886=_0x47ffa0,_0x1f9c7e;let _0x1cb0fa=this[_0x214886(0x247)](),_0x27d11d=(_0x1f9c7e=this[_0x214886(0x214)]()['body'])==null?void 0x0:_0x1f9c7e[_0x214886(0x208)];return!_0x1cb0fa||!_0x27d11d?'':_0x48de87(_0x27d11d[_0x214886(0x20e)](_0x1cb0fa['startIndex']+0x1,_0x1cb0fa[_0x214886(0x20b)]));}[_0x47ffa0(0x227)](){var _0x2e0968=_0x47ffa0;let _0x5eddd5=this['getRange']();return _0x5eddd5?{..._0x5eddd5,'config':this['getConfig'](),'text':this[_0x2e0968(0x20f)](),'type':_0x1307b0[_0x2e0968(0x224)]['CODE']}:null;}[_0x47ffa0(0x24a)](){var _0x5de7a3=_0x47ffa0;return(0x0,_0x30293a[_0x5de7a3(0x22f)])(this[_0x5de7a3(0x21b)][_0x5de7a3(0x21f)](_0x30293a[_0x5de7a3(0x228)])[_0x5de7a3(0x212)](this['_unitId'],this[_0x5de7a3(0x209)]));}[_0x47ffa0(0x220)](_0x237cb8){var _0x358223=_0x47ffa0;return this[_0x358223(0x21b)][_0x358223(0x21f)](_0x1307b0[_0x358223(0x244)])[_0x358223(0x23b)](_0x30293a[_0x358223(0x1f4)]['id'],{'blockId':this[_0x358223(0x209)],'config':_0x237cb8[_0x358223(0x213)],'unitId':this[_0x358223(0x1fc)]});}[_0x47ffa0(0x229)](_0x51496f){var _0x5f9c32=_0x47ffa0;return this['_injector'][_0x5f9c32(0x21f)](_0x1307b0[_0x5f9c32(0x244)])[_0x5f9c32(0x23b)](_0x30293a[_0x5f9c32(0x241)]['id'],{'cursorOffset':_0x51496f,'unitId':this[_0x5f9c32(0x1fc)]});}[_0x47ffa0(0x251)](_0x195de3={}){var _0x24ca1e=_0x47ffa0;return this['_injector']['get'](_0x1307b0[_0x24ca1e(0x244)])['syncExecuteCommand'](_0x30293a[_0x24ca1e(0x23a)]['id'],{..._0x195de3,'unitId':this[_0x24ca1e(0x1fc)]});}[_0x47ffa0(0x214)](){var _0x235e24=_0x47ffa0;return this[_0x235e24(0x202)][_0x235e24(0x205)]();}[_0x47ffa0(0x247)](){var _0x5d2f75=_0x47ffa0,_0x18e7b5;let _0x393116=(_0x18e7b5=this[_0x5d2f75(0x214)]()[_0x5d2f75(0x1fe)])==null||(_0x18e7b5=_0x18e7b5['blockRanges'])==null?void 0x0:_0x18e7b5[_0x5d2f75(0x248)](_0x34a30a=>_0x34a30a['blockId']===this[_0x5d2f75(0x209)]&&_0x34a30a[_0x5d2f75(0x20c)]===_0x1307b0[_0x5d2f75(0x224)][_0x5d2f75(0x226)]);return _0x393116==null?null:_0x393116;}};_0x2cda65=_0xad210e([_0x3d2a94(0x2,(0x0,_0x1307b0[_0x47ffa0(0x22d)])(_0x1307b0[_0x47ffa0(0x21d)]))],_0x2cda65);function _0x48de87(_0x524440){var _0x41f6b1=_0x47ffa0;return Array[_0x41f6b1(0x23c)](_0x524440)[_0x41f6b1(0x24d)](_0x23eaf8=>_0x23eaf8===_0x1307b0['DataStreamTreeTokenType'][_0x41f6b1(0x231)]?'\x0a':_0x23eaf8)['filter'](_0x411bb4=>_0x411bb4!==_0x1307b0[_0x41f6b1(0x22b)][_0x41f6b1(0x21c)]&&_0x411bb4!==_0x1307b0[_0x41f6b1(0x22b)]['BLOCK_END']&&_0x411bb4!==_0x1307b0[_0x41f6b1(0x22b)][_0x41f6b1(0x223)])[_0x41f6b1(0x230)]('')[_0x41f6b1(0x1f5)](/\n$/,'');}var _0x3b9b05=class extends _0x2d81cf['FDocument']{[_0x47ffa0(0x211)](){var _0x36a4ed=_0x47ffa0;return this[_0x36a4ed(0x1f6)]()['filter'](_0x43d6c3=>_0x43d6c3[_0x36a4ed(0x20c)]===_0x1307b0[_0x36a4ed(0x224)][_0x36a4ed(0x226)])[_0x36a4ed(0x24d)](_0x23e346=>this[_0x36a4ed(0x242)](_0x23e346[_0x36a4ed(0x1f7)]));}[_0x47ffa0(0x21e)](_0x12ef25){var _0x36d64d=_0x47ffa0;return this[_0x36d64d(0x1f6)]()[_0x36d64d(0x20a)](_0x1cd9c7=>_0x1cd9c7[_0x36d64d(0x1f7)]===_0x12ef25&&_0x1cd9c7[_0x36d64d(0x20c)]===_0x1307b0['DocumentBlockRangeType']['CODE'])?this[_0x36d64d(0x242)](_0x12ef25):null;}[_0x47ffa0(0x24c)](_0x4ecebc){var _0x5199a3=_0x47ffa0;let _0x303d5a=this['_getBlockRanges']()[_0x5199a3(0x248)](_0x493d01=>_0x493d01[_0x5199a3(0x20c)]===_0x1307b0[_0x5199a3(0x224)][_0x5199a3(0x226)]&&_0x493d01['startIndex']<=_0x4ecebc&&_0x4ecebc<=_0x493d01[_0x5199a3(0x20b)]);return _0x303d5a?this[_0x5199a3(0x242)](_0x303d5a[_0x5199a3(0x1f7)]):null;}[_0x47ffa0(0x1f8)](_0x1b3755){var _0x16bf16=_0x47ffa0,_0x1a2e4b;return(_0x1a2e4b=this[_0x16bf16(0x20d)](_0x1b3755)[0x0])==null?null:_0x1a2e4b;}['findCodes'](_0x531b79){var _0xaa4f32=_0x47ffa0;let _0x1bc1c6=typeof _0x531b79=='string'?{'text':_0x531b79}:_0x531b79;return this['getCodes']()[_0xaa4f32(0x23f)](_0x2b7b42=>!(_0x1bc1c6[_0xaa4f32(0x1f7)]&&_0x2b7b42['getId']()!==_0x1bc1c6[_0xaa4f32(0x1f7)]||_0x1bc1c6[_0xaa4f32(0x243)]&&!_0x2b7b42[_0xaa4f32(0x20f)]()[_0xaa4f32(0x249)](_0x1bc1c6[_0xaa4f32(0x243)])));}[_0x47ffa0(0x200)](_0x5904c6={},_0x51d6c9={}){var _0x2ebd7b=_0x47ffa0,_0x5e98d6;let _0x4cbc27=this[_0x2ebd7b(0x21b)]['get'](_0x1307b0[_0x2ebd7b(0x244)]),_0x254414=_0x784a75(_0x5904c6)?{..._0x51d6c9,..._0x9432f8(_0x5904c6)}:_0x5904c6,_0x79f5f9=(_0x5e98d6=_0x254414[_0x2ebd7b(0x1f7)])==null?(0x0,_0x1307b0[_0x2ebd7b(0x1ff)])(0x6):_0x5e98d6;return _0x4cbc27[_0x2ebd7b(0x23b)](_0x30293a[_0x2ebd7b(0x1fd)]['id'],{..._0x254414,'blockId':_0x79f5f9,'unitId':this[_0x2ebd7b(0x21a)]()})?this['_createFDocumentCode'](_0x79f5f9):null;}[_0x47ffa0(0x252)](_0x6b3c9d){var _0xb71522=_0x47ffa0;return this[_0xb71522(0x21b)]['get'](_0x1307b0['ICommandService'])['syncExecuteCommand'](_0x30293a[_0xb71522(0x241)]['id'],{'cursorOffset':_0x6b3c9d,'unitId':this[_0xb71522(0x21a)]()});}['cancelEmptyCodeParagraph'](_0x57a344={}){var _0x576d06=_0x47ffa0;return this[_0x576d06(0x21b)][_0x576d06(0x21f)](_0x1307b0[_0x576d06(0x244)])[_0x576d06(0x23b)](_0x30293a['DocsCodeCancelEmptyParagraphCommand']['id'],{..._0x57a344,'unitId':this['getId']()});}[_0x47ffa0(0x1f6)](){var _0x2be4b3=_0x47ffa0,_0x2f9380,_0xe7d340;return(_0x2f9380=(_0xe7d340=this[_0x2be4b3(0x205)]()[_0x2be4b3(0x1fe)])==null?void 0x0:_0xe7d340[_0x2be4b3(0x1f9)])==null?[]:_0x2f9380;}[_0x47ffa0(0x242)](_0x515109){var _0x1e18ad=_0x47ffa0;return this[_0x1e18ad(0x21b)]['createInstance'](_0x2cda65,this,_0x515109);}};function _0x784a75(_0x97c441){var _0x3b3c27=_0x47ffa0;return typeof _0x97c441==_0x3b3c27(0x219)&&!!_0x97c441&&typeof _0x97c441['getKey']==_0x3b3c27(0x221)&&typeof _0x97c441['getRange']==_0x3b3c27(0x221)&&typeof _0x97c441['getType']==_0x3b3c27(0x221)&&_0x97c441[_0x3b3c27(0x245)]()==='paragraph';}function _0x9432f8(_0x83e467){var _0x25f1ae=_0x47ffa0;return _0x83e467[_0x25f1ae(0x22c)]();}_0x2d81cf[_0x47ffa0(0x204)][_0x47ffa0(0x1fa)](_0x3b9b05),Object[_0x47ffa0(0x1fb)](_0x3cec7d,_0x47ffa0(0x217),{'enumerable':!0x0,'get':function(){return _0x2cda65;}});}));
1
+ function _0x462a(_0x116405,_0x3b88b8){_0x116405=_0x116405-0x1c4;var _0x29b115=_0x29b1();var _0x462a89=_0x29b115[_0x116405];return _0x462a89;}function _0x29b1(){var _0x90e604=['FDocument','24110MnaEot','DocumentBlockRangeType','PARAGRAPH','blockId','object','1565FpCdUR','UniverProDocsCode','1028313zjdVZh','@univerjs/core','describe','DocsCodeInsertCommand','filter','cancelEmptyParagraph','DataStreamTreeTokenType','6YVlxbC','getKey','Module','symbol','defineProperty','getCodes','blockRanges','Injector','slice','getOwnPropertyDescriptor','Inject','body','some','amd','length','3234308FVvySV','getCodeAt','getRange','_document','blockType','UniverCore','exitCode','prototype','4268tuclVF','paragraph','string','getCodeConfig','startIndex','778502faDUwx','updateConfig','FDocumentCode','save','_getDocumentData','getType','_unitId','DocsCodeExitCommand','ICommandService','function','75759dYBxJb','findCodes','_getBlockRanges','BLOCK_END','_injector','getText','_getBlockRange','getId','includes','constructor','getCode','getConfig','createInstance','extend','syncExecuteCommand','find','text','join','@univerjs/docs/facade','24WUSNlG','iterator','dataStream','CODE','insertCode','DocsCodeModel','endIndex','_createFDocumentCode','342HIAfCu','_blockId','map','DocsCodeCancelEmptyParagraphCommand','UniverDocsFacade','get','446184FrOTEe','decorate','call'];_0x29b1=function(){return _0x90e604;};return _0x29b1();}(function(_0x31e1ea,_0x33ef4b){var _0x21c3dd=_0x462a,_0xe27b5=_0x31e1ea();while(!![]){try{var _0x2b577c=parseInt(_0x21c3dd(0x1ee))/0x1+parseInt(_0x21c3dd(0x20b))/0x2*(-parseInt(_0x21c3dd(0x1f8))/0x3)+-parseInt(_0x21c3dd(0x1e9))/0x4*(-parseInt(_0x21c3dd(0x1c9))/0x5)+parseInt(_0x21c3dd(0x1d2))/0x6*(-parseInt(_0x21c3dd(0x1e1))/0x7)+parseInt(_0x21c3dd(0x219))/0x8+-parseInt(_0x21c3dd(0x213))/0x9*(-parseInt(_0x21c3dd(0x1c4))/0xa)+-parseInt(_0x21c3dd(0x1cb))/0xb;if(_0x2b577c===_0x33ef4b)break;else _0xe27b5['push'](_0xe27b5['shift']());}catch(_0x2fe11d){_0xe27b5['push'](_0xe27b5['shift']());}}}(_0x29b1,0x61f95),function(_0x990be8,_0x431b32){var _0x191163=_0x462a;typeof exports==_0x191163(0x1c8)&&typeof module<'u'?_0x431b32(exports,require('@univerjs-pro/docs-code'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define==_0x191163(0x1f7)&&define[_0x191163(0x1df)]?define(['exports','@univerjs-pro/docs-code',_0x191163(0x1cc),_0x191163(0x20a)],_0x431b32):(_0x990be8=typeof globalThis<'u'?globalThis:_0x990be8||self,_0x431b32(_0x990be8['UniverProDocsCodeFacade']={},_0x990be8[_0x191163(0x1ca)],_0x990be8[_0x191163(0x1e6)],_0x990be8[_0x191163(0x217)]));}(this,function(_0x5a0a15,_0x18bd6a,_0x444d15,_0x2d8433){var _0x4c8475=_0x462a;Object[_0x4c8475(0x1d6)](_0x5a0a15,Symbol['toStringTag'],{'value':_0x4c8475(0x1d4)});function _0x1047ec(_0x3b7781){'@babel/helpers - typeof';var _0x32d412=_0x4c8475;return _0x1047ec=typeof Symbol=='function'&&typeof Symbol[_0x32d412(0x20c)]==_0x32d412(0x1d5)?function(_0x1b7321){return typeof _0x1b7321;}:function(_0x20d797){var _0x3b8c54=_0x32d412;return _0x20d797&&typeof Symbol==_0x3b8c54(0x1f7)&&_0x20d797[_0x3b8c54(0x201)]===Symbol&&_0x20d797!==Symbol[_0x3b8c54(0x1e8)]?_0x3b8c54(0x1d5):typeof _0x20d797;},_0x1047ec(_0x3b7781);}function _0x2f3b3b(_0x4e7fb7,_0x5190d4){var _0x2b5d91=_0x4c8475;if(_0x1047ec(_0x4e7fb7)!=_0x2b5d91(0x1c8)||!_0x4e7fb7)return _0x4e7fb7;var _0x3e26dd=_0x4e7fb7[Symbol['toPrimitive']];if(_0x3e26dd!==void 0x0){var _0x5e7c50=_0x3e26dd[_0x2b5d91(0x21b)](_0x4e7fb7,_0x5190d4||'default');if(_0x1047ec(_0x5e7c50)!=_0x2b5d91(0x1c8))return _0x5e7c50;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5190d4===_0x2b5d91(0x1eb)?String:Number)(_0x4e7fb7);}function _0xb8e6eb(_0x1a2fab){var _0x5c7f02=_0x4c8475,_0x1238fc=_0x2f3b3b(_0x1a2fab,'string');return _0x1047ec(_0x1238fc)==_0x5c7f02(0x1d5)?_0x1238fc:_0x1238fc+'';}function _0x49a6b6(_0x48f511,_0x773c8e,_0x51ac74){var _0x1ef4a2=_0x4c8475;return(_0x773c8e=_0xb8e6eb(_0x773c8e))in _0x48f511?Object[_0x1ef4a2(0x1d6)](_0x48f511,_0x773c8e,{'value':_0x51ac74,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x48f511[_0x773c8e]=_0x51ac74,_0x48f511;}function _0x3df8ad(_0x1ed505,_0x3df6ca){return function(_0x2475f8,_0x3706d5){_0x3df6ca(_0x2475f8,_0x3706d5,_0x1ed505);};}function _0x4d6428(_0x30f162,_0x6ccef9,_0x435921,_0xbbd315){var _0x267236=_0x4c8475,_0x2aca36=arguments[_0x267236(0x1e0)],_0x2449cd=_0x2aca36<0x3?_0x6ccef9:_0xbbd315===null?_0xbbd315=Object[_0x267236(0x1db)](_0x6ccef9,_0x435921):_0xbbd315,_0x4b0582;if(typeof Reflect==_0x267236(0x1c8)&&typeof Reflect['decorate']==_0x267236(0x1f7))_0x2449cd=Reflect[_0x267236(0x21a)](_0x30f162,_0x6ccef9,_0x435921,_0xbbd315);else{for(var _0x56cab1=_0x30f162['length']-0x1;_0x56cab1>=0x0;_0x56cab1--)(_0x4b0582=_0x30f162[_0x56cab1])&&(_0x2449cd=(_0x2aca36<0x3?_0x4b0582(_0x2449cd):_0x2aca36>0x3?_0x4b0582(_0x6ccef9,_0x435921,_0x2449cd):_0x4b0582(_0x6ccef9,_0x435921))||_0x2449cd);}return _0x2aca36>0x3&&_0x2449cd&&Object['defineProperty'](_0x6ccef9,_0x435921,_0x2449cd),_0x2449cd;}let _0x19443b=class{constructor(_0xd279ba,_0x4ce13b,_0x2e806c){var _0x54e4e2=_0x4c8475;this[_0x54e4e2(0x1e4)]=_0xd279ba,this[_0x54e4e2(0x214)]=_0x4ce13b,this['_injector']=_0x2e806c,_0x49a6b6(this,'_unitId',void 0x0),this[_0x54e4e2(0x1f4)]=this['_document'][_0x54e4e2(0x1ff)]();}[_0x4c8475(0x1ff)](){var _0x1e5f9b=_0x4c8475;return this[_0x1e5f9b(0x214)];}['getRange'](){var _0x28600f=_0x4c8475;let _0x30868c=this[_0x28600f(0x1fe)]();return _0x30868c?{'blockId':_0x30868c[_0x28600f(0x1c7)],'endIndex':_0x30868c[_0x28600f(0x211)],'startIndex':_0x30868c[_0x28600f(0x1ed)]}:null;}['getText'](){var _0x3878f5=_0x4c8475,_0x1458ee;let _0x10f5c8=this[_0x3878f5(0x1fe)](),_0x8758f2=(_0x1458ee=this[_0x3878f5(0x1f2)]()['body'])==null?void 0x0:_0x1458ee[_0x3878f5(0x20d)];return!_0x10f5c8||!_0x8758f2?'':_0x3383ff(_0x8758f2[_0x3878f5(0x1da)](_0x10f5c8[_0x3878f5(0x1ed)]+0x1,_0x10f5c8[_0x3878f5(0x211)]));}[_0x4c8475(0x1cd)](){var _0x128938=_0x4c8475;let _0x70f86c=this['getRange']();return _0x70f86c?{..._0x70f86c,'config':this['getConfig'](),'text':this[_0x128938(0x1fd)](),'type':_0x444d15[_0x128938(0x1c5)][_0x128938(0x20e)]}:null;}[_0x4c8475(0x203)](){var _0x1d3f34=_0x4c8475;return(0x0,_0x18bd6a['normalizeDocsCodeConfig'])(this['_injector'][_0x1d3f34(0x218)](_0x18bd6a[_0x1d3f34(0x210)])[_0x1d3f34(0x1ec)](this[_0x1d3f34(0x1f4)],this[_0x1d3f34(0x214)]));}[_0x4c8475(0x1ef)](_0x14a340){var _0x48665e=_0x4c8475;return this[_0x48665e(0x1fc)][_0x48665e(0x218)](_0x444d15[_0x48665e(0x1f6)])['syncExecuteCommand'](_0x18bd6a['DocsCodeUpdateCommand']['id'],{'blockId':this['_blockId'],'config':_0x14a340['config'],'unitId':this[_0x48665e(0x1f4)]});}['exit'](_0x4da3fe){var _0xf66a94=_0x4c8475;return this[_0xf66a94(0x1fc)][_0xf66a94(0x218)](_0x444d15['ICommandService'])['syncExecuteCommand'](_0x18bd6a['DocsCodeExitCommand']['id'],{'cursorOffset':_0x4da3fe,'unitId':this[_0xf66a94(0x1f4)]});}[_0x4c8475(0x1d0)](_0xe8f77f={}){var _0x354eaa=_0x4c8475;return this[_0x354eaa(0x1fc)][_0x354eaa(0x218)](_0x444d15['ICommandService'])[_0x354eaa(0x206)](_0x18bd6a[_0x354eaa(0x216)]['id'],{..._0xe8f77f,'unitId':this['_unitId']});}[_0x4c8475(0x1f2)](){var _0x4f54af=_0x4c8475;return this['_document'][_0x4f54af(0x1f1)]();}['_getBlockRange'](){var _0x4dd7cd=_0x4c8475,_0x482be7;let _0x12ec86=(_0x482be7=this[_0x4dd7cd(0x1f2)]()['body'])==null||(_0x482be7=_0x482be7[_0x4dd7cd(0x1d8)])==null?void 0x0:_0x482be7[_0x4dd7cd(0x207)](_0x41161e=>_0x41161e[_0x4dd7cd(0x1c7)]===this[_0x4dd7cd(0x214)]&&_0x41161e[_0x4dd7cd(0x1e5)]===_0x444d15[_0x4dd7cd(0x1c5)]['CODE']);return _0x12ec86==null?null:_0x12ec86;}};_0x19443b=_0x4d6428([_0x3df8ad(0x2,(0x0,_0x444d15[_0x4c8475(0x1dc)])(_0x444d15[_0x4c8475(0x1d9)]))],_0x19443b);function _0x3383ff(_0x436136){var _0x1b3d9f=_0x4c8475;return Array['from'](_0x436136)[_0x1b3d9f(0x215)](_0x4331c8=>_0x4331c8===_0x444d15['DataStreamTreeTokenType'][_0x1b3d9f(0x1c6)]?'\x0a':_0x4331c8)['filter'](_0x4eeb6d=>_0x4eeb6d!==_0x444d15[_0x1b3d9f(0x1d1)]['BLOCK_START']&&_0x4eeb6d!==_0x444d15[_0x1b3d9f(0x1d1)][_0x1b3d9f(0x1fb)]&&_0x4eeb6d!==_0x444d15[_0x1b3d9f(0x1d1)]['SECTION_BREAK'])[_0x1b3d9f(0x209)]('')['replace'](/\n$/,'');}var _0x1c2806=class extends _0x2d8433[_0x4c8475(0x21c)]{[_0x4c8475(0x1d7)](){var _0x5e6186=_0x4c8475;return this[_0x5e6186(0x1fa)]()[_0x5e6186(0x1cf)](_0x3b4cb3=>_0x3b4cb3['blockType']===_0x444d15[_0x5e6186(0x1c5)][_0x5e6186(0x20e)])[_0x5e6186(0x215)](_0x49d462=>this[_0x5e6186(0x212)](_0x49d462[_0x5e6186(0x1c7)]));}[_0x4c8475(0x202)](_0x32dd2d){var _0x401078=_0x4c8475;return this[_0x401078(0x1fa)]()[_0x401078(0x1de)](_0x4723b1=>_0x4723b1[_0x401078(0x1c7)]===_0x32dd2d&&_0x4723b1[_0x401078(0x1e5)]===_0x444d15[_0x401078(0x1c5)][_0x401078(0x20e)])?this[_0x401078(0x212)](_0x32dd2d):null;}[_0x4c8475(0x1e2)](_0x20c951){var _0xfbcd2=_0x4c8475;let _0x451aba=this[_0xfbcd2(0x1fa)]()[_0xfbcd2(0x207)](_0x28a77c=>_0x28a77c[_0xfbcd2(0x1e5)]===_0x444d15[_0xfbcd2(0x1c5)]['CODE']&&_0x28a77c[_0xfbcd2(0x1ed)]<=_0x20c951&&_0x20c951<=_0x28a77c[_0xfbcd2(0x211)]);return _0x451aba?this[_0xfbcd2(0x212)](_0x451aba['blockId']):null;}['findCodeByText'](_0x1c52dd){var _0x1f7a7f;return(_0x1f7a7f=this['findCodes'](_0x1c52dd)[0x0])==null?null:_0x1f7a7f;}[_0x4c8475(0x1f9)](_0x2c1048){var _0x7d4324=_0x4c8475;let _0x5a2a9b=typeof _0x2c1048==_0x7d4324(0x1eb)?{'text':_0x2c1048}:_0x2c1048;return this['getCodes']()[_0x7d4324(0x1cf)](_0x5ba3d4=>!(_0x5a2a9b[_0x7d4324(0x1c7)]&&_0x5ba3d4['getId']()!==_0x5a2a9b['blockId']||_0x5a2a9b['text']&&!_0x5ba3d4[_0x7d4324(0x1fd)]()[_0x7d4324(0x200)](_0x5a2a9b[_0x7d4324(0x208)])));}[_0x4c8475(0x20f)](_0x246ff3={},_0x1a03ba={}){var _0x5aa2a6=_0x4c8475,_0x1733bc;let _0x1e5820=this[_0x5aa2a6(0x1fc)][_0x5aa2a6(0x218)](_0x444d15[_0x5aa2a6(0x1f6)]),_0x35f97d=_0x363c77(_0x246ff3)?{..._0x1a03ba,..._0xfce10d(_0x246ff3)}:_0x246ff3,_0x185322=(_0x1733bc=_0x35f97d[_0x5aa2a6(0x1c7)])==null?(0x0,_0x444d15['generateRandomId'])(0x6):_0x1733bc;return _0x1e5820['syncExecuteCommand'](_0x18bd6a[_0x5aa2a6(0x1ce)]['id'],{..._0x35f97d,'blockId':_0x185322,'unitId':this[_0x5aa2a6(0x1ff)]()})?this[_0x5aa2a6(0x212)](_0x185322):null;}[_0x4c8475(0x1e7)](_0x2b8aa2){var _0x5d4b0b=_0x4c8475;return this['_injector'][_0x5d4b0b(0x218)](_0x444d15[_0x5d4b0b(0x1f6)])[_0x5d4b0b(0x206)](_0x18bd6a[_0x5d4b0b(0x1f5)]['id'],{'cursorOffset':_0x2b8aa2,'unitId':this[_0x5d4b0b(0x1ff)]()});}['cancelEmptyCodeParagraph'](_0x14e58a={}){var _0xb487a9=_0x4c8475;return this[_0xb487a9(0x1fc)][_0xb487a9(0x218)](_0x444d15[_0xb487a9(0x1f6)])[_0xb487a9(0x206)](_0x18bd6a[_0xb487a9(0x216)]['id'],{..._0x14e58a,'unitId':this[_0xb487a9(0x1ff)]()});}[_0x4c8475(0x1fa)](){var _0xba3ee7=_0x4c8475,_0x226cc0,_0x57c270;return(_0x226cc0=(_0x57c270=this['save']()[_0xba3ee7(0x1dd)])==null?void 0x0:_0x57c270[_0xba3ee7(0x1d8)])==null?[]:_0x226cc0;}['_createFDocumentCode'](_0x5a279f){var _0x1e9a5e=_0x4c8475;return this[_0x1e9a5e(0x1fc)][_0x1e9a5e(0x204)](_0x19443b,this,_0x5a279f);}};function _0x363c77(_0x28a4c5){var _0x505c3b=_0x4c8475;return typeof _0x28a4c5=='object'&&!!_0x28a4c5&&typeof _0x28a4c5[_0x505c3b(0x1d3)]==_0x505c3b(0x1f7)&&typeof _0x28a4c5[_0x505c3b(0x1e3)]==_0x505c3b(0x1f7)&&typeof _0x28a4c5[_0x505c3b(0x1f3)]==_0x505c3b(0x1f7)&&_0x28a4c5[_0x505c3b(0x1f3)]()===_0x505c3b(0x1ea);}function _0xfce10d(_0x121590){var _0x436471=_0x4c8475;return _0x121590[_0x436471(0x1e3)]();}_0x2d8433[_0x4c8475(0x21c)][_0x4c8475(0x205)](_0x1c2806),Object[_0x4c8475(0x1d6)](_0x5a0a15,_0x4c8475(0x1f0),{'enumerable':!0x0,'get':function(){return _0x19443b;}});}));
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x209f(_0x2741f9,_0x169e74){_0x2741f9=_0x2741f9-0xbe;const _0x1d60c9=_0x1d60();let _0x209f64=_0x1d60c9[_0x2741f9];return _0x209f64;}(function(_0x3f20f7,_0x17be26){const _0x593987=_0x209f,_0xd58875=_0x3f20f7();while(!![]){try{const _0x6c10c2=parseInt(_0x593987(0xf1))/0x1*(-parseInt(_0x593987(0xd7))/0x2)+parseInt(_0x593987(0x16a))/0x3*(parseInt(_0x593987(0x150))/0x4)+-parseInt(_0x593987(0x114))/0x5+-parseInt(_0x593987(0x132))/0x6*(parseInt(_0x593987(0xf3))/0x7)+-parseInt(_0x593987(0x12b))/0x8+parseInt(_0x593987(0xc0))/0x9+-parseInt(_0x593987(0x159))/0xa*(-parseInt(_0x593987(0x117))/0xb);if(_0x6c10c2===_0x17be26)break;else _0xd58875['push'](_0xd58875['shift']());}catch(_0x542f69){_0xd58875['push'](_0xd58875['shift']());}}}(_0x1d60,0x8e609),function(_0x23302d,_0x17f236){const _0x395677=_0x209f;typeof exports=='object'&&typeof module<'u'?_0x17f236(exports,require('@univerjs/core'),require('@univerjs/docs'),require('rxjs'),require('@univerjs-pro/license')):typeof define=='function'&&define['amd']?define([_0x395677(0xca),'@univerjs/core',_0x395677(0xe2),'rxjs',_0x395677(0xc6)],_0x17f236):(_0x23302d=typeof globalThis<'u'?globalThis:_0x23302d||self,_0x17f236(_0x23302d[_0x395677(0xee)]={},_0x23302d[_0x395677(0x15a)],_0x23302d[_0x395677(0x12e)],_0x23302d[_0x395677(0xf2)],_0x23302d['UniverProLicense']));}(this,function(_0x27132c,_0x3b229d,_0x371266,_0x22a75c,_0x3158ca){const _0x29da26=_0x209f;Object[_0x29da26(0x116)](_0x27132c,Symbol[_0x29da26(0xf5)],{'value':'Module'});let _0xa35c8d={'language':'javascript','showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function _0x5da954(_0x13c15b){return{..._0xa35c8d,..._0x13c15b};}function _0x2619bd(_0x3fcf2e){const _0x3a842d=_0x29da26;var _0x25d16;let _0x2943e4=(_0x25d16=_0x3fcf2e==null?void 0x0:_0x3fcf2e['codes'])==null?{}:_0x25d16;return{'codes':Object[_0x3a842d(0x10a)](Object[_0x3a842d(0xbf)](_0x2943e4)['map'](([_0x50aa5c,_0x40f5ba])=>[_0x50aa5c,_0x5da954(_0x40f5ba)]))};}function _0x53a088(_0x262cb8,_0x58f4c3,_0x41aa97){const _0x2559f6=_0x29da26;let _0x21bf7f=_0x2619bd(_0x262cb8);return _0x21bf7f[_0x2559f6(0x146)][_0x58f4c3]=_0x5da954({..._0x21bf7f[_0x2559f6(0x146)][_0x58f4c3],..._0x41aa97}),_0x21bf7f;}function _0x355325(_0x23cc8d,_0x25f11c){const _0xb34f24=_0x29da26;let _0x5a741e=_0x2619bd(_0x23cc8d);return delete _0x5a741e[_0xb34f24(0x146)][_0x25f11c],_0x5a741e;}let _0x131f09=_0x29da26(0xf0);function _0x4b493e(_0x56da2f){const _0x5b3e6a=_0x29da26;var _0x269942,_0x1eeb1e,_0x24012a;let _0x4f800b=_0x427451(_0x56da2f[_0x5b3e6a(0x15f)]),_0x23a46e=_0x2fb5d4(_0x4f800b),_0x2dd723=_0x5daccf(_0x56da2f[_0x5b3e6a(0x13e)],_0x56da2f[_0x5b3e6a(0xd3)]),_0x26fad3=_0x2dd723?(_0x269942=_0x23a46e[_0x5b3e6a(0x140)])==null?void 0x0:_0x269942[_0x5b3e6a(0x124)](_0x3852fd=>_0x3852fd['startIndex']===_0x2dd723[_0x5b3e6a(0x13e)]&&_0x3852fd['endIndex']+0x1===_0x2dd723[_0x5b3e6a(0xd3)]):void 0x0,{startOffset:_0x29ba3a,endOffset:_0x3520eb}=_0x26fad3?_0x2dd723:_0x2daaf0(_0x23a46e,_0x56da2f[_0x5b3e6a(0x13e)],_0x56da2f[_0x5b3e6a(0xd3)]),_0x4b21e7=_0x14093d(_0x23a46e,_0x29ba3a,_0x3520eb),_0x8f3fcf=(_0x1eeb1e=_0x26fad3==null?void 0x0:_0x26fad3[_0x5b3e6a(0xfd)])==null?_0x56da2f[_0x5b3e6a(0xfd)]:_0x1eeb1e,_0x5a13f1=_0x53a088(_0x56da2f['metadata'],_0x8f3fcf,{..._0xa35c8d,..._0x56da2f[_0x5b3e6a(0x130)]});if(_0x26fad3)return _0x26fad3[_0x5b3e6a(0x144)]=_0x3b229d[_0x5b3e6a(0x106)]['CODE'],_0x37b222(_0x23a46e,_0x29ba3a,_0x3520eb),_0x5c8e00(_0x23a46e,_0x29ba3a,_0x3520eb,_0x4b21e7),_0x3e24d6(_0x23a46e,_0x26fad3),{'nextDocumentData':_0x4f800b,'nextMetadata':_0x5a13f1,'cursorOffset':_0x29ba3a+0x1};if(_0x29ba3a===_0x3520eb){var _0x2ddcb1,_0x2fa5c8;let _0x49578d=''+_0x3b229d[_0x5b3e6a(0x15e)][_0x5b3e6a(0x101)]+_0x3b229d[_0x5b3e6a(0x15e)][_0x5b3e6a(0x169)]+_0x3b229d['DataStreamTreeTokenType'][_0x5b3e6a(0xc1)];_0x9dc434(_0x23a46e,_0x29ba3a,_0x49578d,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,_0x3b229d[_0x5b3e6a(0x13f)])(new Set((_0x2ddcb1=_0x23a46e['paragraphs'])==null?void 0x0:_0x2ddcb1[_0x5b3e6a(0x161)](_0x1969a8=>_0x1969a8['paragraphId']))),'paragraphStyle':_0x1fec09(!0x0,!0x0,_0x4b21e7)}],'blockRanges':[{'blockId':_0x8f3fcf,'blockType':_0x3b229d['DocumentBlockRangeType']['CODE'],'startIndex':0x0,'endIndex':_0x49578d[_0x5b3e6a(0x162)]-0x1}]});let _0x10d28e=(_0x2fa5c8=_0x23a46e['blockRanges'])==null?void 0x0:_0x2fa5c8[_0x5b3e6a(0x124)](_0x2c9aad=>_0x2c9aad[_0x5b3e6a(0xfd)]===_0x8f3fcf);return _0x10d28e&&_0x3e24d6(_0x23a46e,_0x10d28e),{'nextDocumentData':_0x4f800b,'nextMetadata':_0x5a13f1,'cursorOffset':_0x29ba3a+0x1};}_0x9dc434(_0x23a46e,_0x3520eb,_0x3b229d['DataStreamTreeTokenType'][_0x5b3e6a(0xc1)]),_0x9dc434(_0x23a46e,_0x29ba3a,_0x3b229d[_0x5b3e6a(0x15e)]['BLOCK_START']),_0x5c8e00(_0x23a46e,_0x29ba3a,_0x3520eb+0x1,_0x4b21e7);let _0x3b4359={'blockId':_0x8f3fcf,'blockType':_0x3b229d[_0x5b3e6a(0x106)][_0x5b3e6a(0xf4)],'startIndex':_0x29ba3a,'endIndex':_0x3520eb+0x1};return _0x23a46e[_0x5b3e6a(0x140)]=[...(_0x24012a=_0x23a46e[_0x5b3e6a(0x140)])==null?[]:_0x24012a,_0x3b4359][_0x5b3e6a(0xf9)]((_0x1e2a76,_0x15625c)=>_0x1e2a76[_0x5b3e6a(0xec)]-_0x15625c[_0x5b3e6a(0xec)]),_0x3e24d6(_0x23a46e,_0x3b4359),{'nextDocumentData':_0x4f800b,'nextMetadata':_0x5a13f1,'cursorOffset':_0x29ba3a+0x1};}function _0x37b222(_0x220735,_0x420611,_0x291ae5){const _0x844a6e=_0x29da26;var _0x499af9;((_0x499af9=_0x220735[_0x844a6e(0xce)])==null?[]:_0x499af9)[_0x844a6e(0x15d)](_0x3370ae=>_0x3370ae['startIndex']>_0x420611&&_0x3370ae[_0x844a6e(0xec)]<_0x291ae5)[_0x844a6e(0xc3)](_0x3d67f6=>{const _0x4d1f25=_0x844a6e;var _0x29cd85;let _0x419dbe={...(_0x29cd85=_0x3d67f6['paragraphStyle'])==null?{}:_0x29cd85};delete _0x419dbe[_0x4d1f25(0x168)],delete _0x419dbe[_0x4d1f25(0x13b)],_0x3d67f6['paragraphStyle']=_0x419dbe;});}function _0x5daccf(_0x4c7d02,_0x1e3a3){const _0x54837e=_0x29da26;return _0x4c7d02==null||_0x1e3a3==null||_0x4c7d02===_0x1e3a3?null:{'startOffset':Math[_0x54837e(0xc5)](_0x4c7d02,_0x1e3a3),'endOffset':Math[_0x54837e(0xdf)](_0x4c7d02,_0x1e3a3)};}function _0x21379e(_0x8ad03c){const _0x42f63f=_0x29da26;return{'nextDocumentData':_0x427451(_0x8ad03c[_0x42f63f(0x15f)]),'nextMetadata':_0x53a088(_0x8ad03c[_0x42f63f(0x165)],_0x8ad03c['blockId'],_0x8ad03c[_0x42f63f(0x130)]),'cursorOffset':0x0};}function _0x4c43e0(_0x2a9ca1){const _0x303c51=_0x29da26;var _0x38de78,_0x31d7cd;let _0x35ffba=_0x427451(_0x2a9ca1[_0x303c51(0x15f)]),_0x119027=_0x2fb5d4(_0x35ffba),_0x148601=_0x9a0237(_0x119027,_0x2a9ca1['cursorOffset']);if(!_0x148601)return null;let _0x38c72d=_0x35bf4e(_0x119027,_0x148601),_0x3ed850=_0x38c72d[_0x38c72d[_0x303c51(0x162)]-0x1];if(!_0x3ed850||!_0x15f8d5(_0x119027,_0x148601,_0x3ed850)||_0x2a9ca1[_0x303c51(0xc9)]<_0x3ed850[_0x303c51(0xec)])return null;let _0x14ae94=_0xb4b9d6(_0x119027,_0x148601,_0x3ed850);if(_0x14ae94>=_0x148601[_0x303c51(0x14c)])return null;_0x119027[_0x303c51(0x14e)]=[_0x119027['dataStream'][_0x303c51(0x11a)](0x0,_0x14ae94),_0x3b229d[_0x303c51(0x15e)][_0x303c51(0xc1)],_0x119027[_0x303c51(0x14e)][_0x303c51(0x11a)](_0x14ae94,_0x148601[_0x303c51(0x14c)]),_0x119027[_0x303c51(0x14e)]['slice'](_0x148601[_0x303c51(0x14c)]+0x1)]['join'](''),_0x3767de(_0x119027[_0x303c51(0xce)],_0x14ae94,_0x148601[_0x303c51(0x14c)],0x1),_0x3767de(_0x119027[_0x303c51(0x16c)],_0x14ae94,_0x148601[_0x303c51(0x14c)],0x1),_0x3767de(_0x119027[_0x303c51(0x112)],_0x14ae94,_0x148601['endIndex'],0x1),_0x51759b(_0x119027[_0x303c51(0xc8)],_0x14ae94,_0x148601[_0x303c51(0x14c)],0x1),_0xd409bd(_0x119027[_0x303c51(0x131)],_0x14ae94,_0x148601['endIndex'],0x1),_0xd409bd(_0x119027[_0x303c51(0xe5)],_0x14ae94,_0x148601[_0x303c51(0x14c)],0x1),_0xd409bd(_0x119027[_0x303c51(0x15b)],_0x14ae94,_0x148601[_0x303c51(0x14c)],0x1),(_0x38de78=_0x119027[_0x303c51(0x140)])==null||_0x38de78[_0x303c51(0xc3)](_0x19fd1e=>{const _0x102587=_0x303c51;_0x19fd1e===_0x148601||_0x19fd1e[_0x102587(0xfd)]===_0x148601['blockId']?_0x19fd1e[_0x102587(0x14c)]=_0x14ae94:_0x19fd1e[_0x102587(0xec)]>=_0x14ae94&&_0x19fd1e[_0x102587(0xec)]<_0x148601['endIndex']&&(_0x19fd1e['startIndex']+=0x1,_0x19fd1e[_0x102587(0x14c)]+=0x1);});let _0x12019a=_0x35bf4e(_0x119027,{..._0x148601,'endIndex':_0x14ae94});_0x12019a[_0x303c51(0xc3)]((_0x124e92,_0x469429)=>{const _0x2ca5b2=_0x303c51;var _0x4cf2a2;_0x124e92[_0x2ca5b2(0x103)]={...(_0x4cf2a2=_0x124e92['paragraphStyle'])==null?{}:_0x4cf2a2,..._0x1fec09(_0x469429===0x0,_0x469429===_0x12019a[_0x2ca5b2(0x162)]-0x1)};});let _0x1fd547=(_0x31d7cd=_0x119027[_0x303c51(0xce)])==null?void 0x0:_0x31d7cd[_0x303c51(0x124)](_0x14a0ce=>_0x14a0ce[_0x303c51(0xec)]===_0x14ae94+0x1);return _0x1fd547&&(_0x1fd547[_0x303c51(0x103)]=_0x3c8347(_0x1fd547[_0x303c51(0x103)])),{'nextDocumentData':_0x35ffba,'cursorOffset':_0x14ae94+0x1};}function _0x5ece81(_0x19aa6e){const _0x109199=_0x29da26;let _0x54dbbc=_0x427451(_0x19aa6e[_0x109199(0x15f)]),_0x573702=_0x2fb5d4(_0x54dbbc),_0x5d4117=_0x9a0237(_0x573702,_0x19aa6e[_0x109199(0xc9)]);return _0x5d4117&&_0x11a8bf(_0x54dbbc,_0x573702,_0x5d4117,_0x19aa6e['cursorOffset'],_0x19aa6e[_0x109199(0xdd)])||null;}function _0x11a8bf(_0x311e95,_0x487764,_0x4359ab,_0x3f9799,_0x3dfb1c){const _0x148f14=_0x29da26;let _0x5474fe=_0x35171c(_0x487764,_0x4359ab,_0x3f9799,_0x3dfb1c);if(!_0x5474fe)return null;let _0x5c856f=_0x5474fe[_0x148f14(0xcc)]-0x1;return _0x26f879(_0x487764,_0x5474fe[_0x148f14(0x11f)][_0x148f14(0xec)],_0x5474fe[_0x148f14(0x11f)][_0x148f14(0xec)]+0x1),{'nextDocumentData':_0x311e95,'cursorOffset':_0x5c856f};}function _0x569073(_0x57e9ba,_0x27d76a){const _0x474a9f=_0x29da26;var _0x4b87c3;return _0x57e9ba==null||(_0x4b87c3=_0x57e9ba['blockRanges'])==null?void 0x0:_0x4b87c3[_0x474a9f(0x124)](_0x3f0be3=>_0x3f0be3[_0x474a9f(0x144)]===_0x3b229d[_0x474a9f(0x106)][_0x474a9f(0xf4)]&&_0x3f0be3['startIndex']<=_0x27d76a&&_0x27d76a<=_0x3f0be3['endIndex']);}function _0x401d12(_0x4929ce){const _0x466558=_0x29da26;var _0x1d43b7;let _0x1fa1b5=_0x4929ce[_0x466558(0x15f)]['body'];if(!_0x1fa1b5)return!0x1;let _0x5ea1d=_0x4929ce['direction']===_0x466558(0x12d)?_0x4929ce[_0x466558(0xc9)]-0x1:_0x4929ce[_0x466558(0xc9)],_0x17e3a9=_0x4929ce[_0x466558(0xd5)]===_0x466558(0xd9)?_0x4929ce[_0x466558(0xc9)]+0x1:_0x5ea1d;return((_0x1d43b7=_0x1fa1b5[_0x466558(0x140)])==null?[]:_0x1d43b7)[_0x466558(0x147)](_0x3fda05=>_0x3fda05['blockType']===_0x3b229d['DocumentBlockRangeType']['CODE']?_0x5ea1d===_0x3fda05[_0x466558(0xec)]||_0x5ea1d===_0x3fda05['endIndex']||_0x17e3a9===_0x3fda05[_0x466558(0xec)]||_0x17e3a9===_0x3fda05[_0x466558(0x14c)]:!0x1);}function _0x9a0237(_0x23abf3,_0x2fe2e0){const _0x4e237d=_0x29da26;var _0x247a8;return(_0x247a8=_0x23abf3[_0x4e237d(0x140)])==null?void 0x0:_0x247a8[_0x4e237d(0x124)](_0x58d052=>{const _0x4d8b41=_0x4e237d;let _0x5cd81b=_0x327fa5(_0x23abf3,_0x58d052);return _0x58d052['blockType']===_0x3b229d['DocumentBlockRangeType'][_0x4d8b41(0xf4)]&&_0x58d052[_0x4d8b41(0xec)]<=_0x2fe2e0&&_0x2fe2e0<=_0x5cd81b+0x2;});}function _0x1fec09(_0x441708,_0x288e47,_0x40f955=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x441708&&_0x40f955?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':_0x131f09,'fs':0xc}};}function _0x5c8e00(_0x5d1c3c,_0x30995d,_0x1c8194,_0x3965a2=!0x1){const _0x499d3c=_0x29da26;var _0x3e3c8c;let _0x4568dd=((_0x3e3c8c=_0x5d1c3c[_0x499d3c(0xce)])==null?[]:_0x3e3c8c)[_0x499d3c(0x15d)](_0x17eb32=>_0x17eb32[_0x499d3c(0xec)]>_0x30995d&&_0x17eb32[_0x499d3c(0xec)]<_0x1c8194);_0x4568dd[_0x499d3c(0xc3)]((_0x5e4193,_0x3fa91c)=>{const _0x2f3400=_0x499d3c;var _0x2b8ce1;_0x5e4193[_0x2f3400(0x103)]={...(_0x2b8ce1=_0x5e4193[_0x2f3400(0x103)])==null?{}:_0x2b8ce1,..._0x1fec09(_0x3fa91c===0x0,_0x3fa91c===_0x4568dd['length']-0x1,_0x3965a2)};});}function _0x3c8347(_0x456264){const _0x2fe976=_0x29da26;var _0x5042ab,_0x48a5ea;let _0x37a1b0={..._0x456264==null?{}:_0x456264};return delete _0x37a1b0['indentEnd'],delete _0x37a1b0[_0x2fe976(0x123)],delete _0x37a1b0['spaceAbove'],delete _0x37a1b0[_0x2fe976(0x13b)],((_0x5042ab=_0x37a1b0['textStyle'])==null?void 0x0:_0x5042ab['ff'])===_0x131f09&&((_0x48a5ea=_0x37a1b0['textStyle'])==null?void 0x0:_0x48a5ea['fs'])===0xc&&delete _0x37a1b0[_0x2fe976(0x167)],_0x37a1b0;}function _0x35bf4e(_0x4cb181,_0x122ec8){const _0x176dee=_0x29da26;var _0x54c5a8;let _0x2f10f1=_0x327fa5(_0x4cb181,_0x122ec8);return((_0x54c5a8=_0x4cb181[_0x176dee(0xce)])==null?[]:_0x54c5a8)['filter'](_0x32c00f=>_0x32c00f[_0x176dee(0xec)]>_0x122ec8['startIndex']&&_0x32c00f['startIndex']<_0x2f10f1);}function _0x15f8d5(_0x15f011,_0x25f9f5,_0x39b33d){const _0x5ea916=_0x29da26;let _0x3116e1=_0xb4b9d6(_0x15f011,_0x25f9f5,_0x39b33d),_0xe94be9=_0x15f011[_0x5ea916(0x14e)][_0x5ea916(0x11a)](_0x3116e1,_0x39b33d[_0x5ea916(0xec)]);return Array[_0x5ea916(0xef)](_0xe94be9)['every'](_0x1a8c47=>_0x1a8c47===_0x3b229d[_0x5ea916(0x15e)][_0x5ea916(0x101)]||_0x1a8c47===_0x3b229d[_0x5ea916(0x15e)][_0x5ea916(0xc1)]);}function _0x427451(_0x549cf6){const _0x5da85e=_0x29da26;return _0x3b229d[_0x5da85e(0xc2)][_0x5da85e(0x129)](_0x549cf6);}function _0x2fb5d4(_0x451080){const _0x54ec02=_0x29da26;if(!_0x451080[_0x54ec02(0xeb)])throw Error(_0x54ec02(0x118));return _0x451080[_0x54ec02(0xeb)];}function _0x2daaf0(_0x203bd3,_0x343a42,_0xcdd034){const _0x368809=_0x29da26;if(_0x343a42==null||_0xcdd034==null){let _0x50bbf7=_0xb2693a(_0x203bd3);return{'startOffset':_0x50bbf7,'endOffset':_0x50bbf7};}let _0x2c84f1=Math[_0x368809(0xc5)](_0x343a42,_0xcdd034),_0x52e4d5=Math[_0x368809(0xdf)](_0x343a42,_0xcdd034);if(_0x2c84f1===_0x52e4d5){let _0x35c996=_0x337684(_0x203bd3,_0x2c84f1);return{'startOffset':_0x35c996,'endOffset':_0x35c996};}return _0x2b3d1c(_0x203bd3,_0x2c84f1,_0x52e4d5);}function _0x337684(_0x5e56fa,_0x120b91){const _0x5e6491=_0x29da26;return _0x120b91===0x0&&_0x5e56fa['dataStream'][0x0]===_0x3b229d['DataStreamTreeTokenType'][_0x5e6491(0x169)]?0x1:_0x120b91;}function _0xb2693a(_0x13e8f1){const _0x3e1458=_0x29da26;return _0x13e8f1[_0x3e1458(0x14e)][_0x3e1458(0x10c)](_0x3b229d['DataStreamTreeTokenType'][_0x3e1458(0x12a)])?Math[_0x3e1458(0xdf)](0x0,_0x13e8f1[_0x3e1458(0x14e)][_0x3e1458(0x162)]-0x1):_0x13e8f1[_0x3e1458(0x14e)][_0x3e1458(0x162)];}function _0x14093d(_0x477218,_0x37289a,_0xc69e20){const _0x40f766=_0x29da26;var _0x292007;let _0x36bd45=Math[_0x40f766(0xc5)](_0x37289a,_0xc69e20),_0x9c44b8=Math[_0x40f766(0xdf)](_0x37289a,_0xc69e20);return!!((_0x292007=_0x477218['tables'])!=null&&_0x292007[_0x40f766(0x147)](_0x568dfb=>_0x36bd45>_0x568dfb[_0x40f766(0xec)]&&_0x36bd45<_0x568dfb['endIndex']||_0x9c44b8>_0x568dfb[_0x40f766(0xec)]&&_0x9c44b8<_0x568dfb['endIndex']||_0x36bd45<=_0x568dfb['startIndex']&&_0x9c44b8>=_0x568dfb[_0x40f766(0x14c)]));}function _0x2b3d1c(_0x30e2da,_0x599682,_0x2b8771){const _0x1ea48c=_0x29da26;var _0x154f5e,_0x1bf63c;let _0xeef608=[...(_0x154f5e=_0x30e2da[_0x1ea48c(0xce)])==null?[]:_0x154f5e]['sort']((_0x36539d,_0x15c383)=>_0x36539d[_0x1ea48c(0xec)]-_0x15c383[_0x1ea48c(0xec)]),_0x5ac8ca=_0xeef608[_0x1ea48c(0x124)]((_0x3a5b13,_0x378190)=>(_0x378190===0x0?0x0:_0xeef608[_0x378190-0x1][_0x1ea48c(0xec)]+0x1)<=_0x599682&&_0x599682<=_0x3a5b13[_0x1ea48c(0xec)]),_0x492bfe=(_0x1bf63c=_0xeef608[_0x1ea48c(0x124)](_0x2e8a21=>_0x2e8a21[_0x1ea48c(0xec)]>=_0x2b8771-0x1))==null?_0xeef608[_0xeef608[_0x1ea48c(0x162)]-0x1]:_0x1bf63c;return{'startOffset':_0x5ac8ca?_0x3a2418(_0xeef608,_0x5ac8ca):_0x599682,'endOffset':_0x492bfe?_0x492bfe['startIndex']+0x1:_0x2b8771};}function _0x3a2418(_0x5a0fba,_0x25234a){let _0x36f9ea=_0x5a0fba['indexOf'](_0x25234a);return _0x36f9ea>0x0?_0x5a0fba[_0x36f9ea-0x1]['startIndex']+0x1:0x0;}function _0xb4b9d6(_0x4fe020,_0x1bf260,_0x44e975){const _0x4dd165=_0x29da26;var _0x3a64d7;return Math[_0x4dd165(0xdf)](_0x3a2418((_0x3a64d7=_0x4fe020[_0x4dd165(0xce)])==null?[]:_0x3a64d7,_0x44e975),_0x1bf260[_0x4dd165(0xec)]+0x1);}function _0x327fa5(_0x4db808,_0xce96d9){const _0x4cbf4c=_0x29da26;return _0x4db808[_0x4cbf4c(0x14e)][_0xce96d9[_0x4cbf4c(0x14c)]]===_0x3b229d[_0x4cbf4c(0x15e)][_0x4cbf4c(0xc1)]?_0xce96d9[_0x4cbf4c(0x14c)]:_0x4db808[_0x4cbf4c(0x14e)][_0xce96d9['endIndex']+0x1]===_0x3b229d[_0x4cbf4c(0x15e)]['BLOCK_END']?_0xce96d9[_0x4cbf4c(0x14c)]+0x1:_0xce96d9[_0x4cbf4c(0x14c)];}function _0x35171c(_0x3e5302,_0x1dbc63,_0x5ecc3d,_0x40a838){const _0xce86e8=_0x29da26;var _0x14f745,_0xf026ed;let _0x3ffd42=_0x327fa5(_0x3e5302,_0x1dbc63),_0x267dc4=((_0x14f745=_0x3e5302[_0xce86e8(0xce)])==null?[]:_0x14f745)['find'](_0x917e2a=>_0x917e2a['startIndex']===_0x3ffd42+0x1);if(!_0x267dc4||_0x40a838!=null&&_0x267dc4[_0xce86e8(0xec)]!==_0x40a838||_0x5ecc3d<_0x3ffd42||_0x5ecc3d>_0x267dc4['startIndex']+0x1||_0x3e5302[_0xce86e8(0x14e)][_0x267dc4[_0xce86e8(0xec)]]!==_0x3b229d[_0xce86e8(0x15e)]['PARAGRAPH'])return null;let _0x12be43=_0x3a2418((_0xf026ed=_0x3e5302[_0xce86e8(0xce)])==null?[]:_0xf026ed,_0x267dc4),_0x1e1815=_0x3e5302[_0xce86e8(0x14e)][_0xce86e8(0x11a)](_0x12be43,_0x267dc4[_0xce86e8(0xec)]);return Array[_0xce86e8(0xef)](_0x1e1815)[_0xce86e8(0x11e)](_0x21a76d=>_0x21a76d===_0x3b229d[_0xce86e8(0x15e)][_0xce86e8(0xc1)])?{'paragraph':_0x267dc4,'endTokenOffset':_0x3ffd42}:null;}function _0x3e24d6(_0x40dd3b,_0x3c644c){const _0xd4079b=_0x29da26;var _0x426b31;let _0x5e1a4d=_0x327fa5(_0x40dd3b,_0x3c644c),_0xec8b31=_0x40dd3b[_0xd4079b(0x14e)][_0x5e1a4d+0x1];_0xec8b31!==_0x3b229d['DataStreamTreeTokenType'][_0xd4079b(0x12a)]&&_0xec8b31!==void 0x0||_0x9dc434(_0x40dd3b,_0x5e1a4d+0x1,_0x3b229d['DataStreamTreeTokenType'][_0xd4079b(0x169)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,_0x3b229d[_0xd4079b(0x13f)])(new Set((_0x426b31=_0x40dd3b[_0xd4079b(0xce)])==null?void 0x0:_0x426b31[_0xd4079b(0x161)](_0x156e81=>_0x156e81['paragraphId'])))}]});}function _0x9dc434(_0x4f68cc,_0x27f4d7,_0x1b9d9e,_0x1f7bf4={}){const _0x5ec76e=_0x29da26;var _0x340050,_0x31f4e6;if(_0x1b9d9e){if(_0x4f68cc[_0x5ec76e(0x14e)]=''+_0x4f68cc[_0x5ec76e(0x14e)][_0x5ec76e(0x11a)](0x0,_0x27f4d7)+_0x1b9d9e+_0x4f68cc['dataStream']['slice'](_0x27f4d7),_0x268af3(_0x4f68cc,_0x27f4d7,_0x1b9d9e[_0x5ec76e(0x162)]),(_0x340050=_0x1f7bf4[_0x5ec76e(0xce)])!=null&&_0x340050[_0x5ec76e(0x162)]){var _0x31d66d;_0x4f68cc['paragraphs']=[...(_0x31d66d=_0x4f68cc[_0x5ec76e(0xce)])==null?[]:_0x31d66d,..._0x1f7bf4[_0x5ec76e(0xce)][_0x5ec76e(0x161)](_0x8e4568=>({..._0x8e4568,'startIndex':_0x8e4568[_0x5ec76e(0xec)]+_0x27f4d7}))][_0x5ec76e(0xf9)]((_0x4d6654,_0x38c06e)=>_0x4d6654[_0x5ec76e(0xec)]-_0x38c06e[_0x5ec76e(0xec)]);}if((_0x31f4e6=_0x1f7bf4[_0x5ec76e(0x140)])!=null&&_0x31f4e6[_0x5ec76e(0x162)]){var _0x307177;_0x4f68cc['blockRanges']=[...(_0x307177=_0x4f68cc['blockRanges'])==null?[]:_0x307177,..._0x1f7bf4[_0x5ec76e(0x140)][_0x5ec76e(0x161)](_0x58daf9=>({..._0x58daf9,'startIndex':_0x58daf9[_0x5ec76e(0xec)]+_0x27f4d7,'endIndex':_0x58daf9[_0x5ec76e(0x14c)]+_0x27f4d7}))]['sort']((_0x29eabb,_0x53726a)=>_0x29eabb[_0x5ec76e(0xec)]-_0x53726a['startIndex']);}}}function _0x26f879(_0x55b255,_0x1511d9,_0x181319){const _0x9a53a9=_0x29da26;let _0x123c3b=_0x181319-_0x1511d9;_0x55b255[_0x9a53a9(0x14e)]=''+_0x55b255[_0x9a53a9(0x14e)][_0x9a53a9(0x11a)](0x0,_0x1511d9)+_0x55b255['dataStream'][_0x9a53a9(0x11a)](_0x181319),_0x23e1c8(_0x55b255,_0x1511d9,_0x123c3b);}function _0x268af3(_0x1f9385,_0x1eb8e9,_0x1cd14c){const _0x3c8021=_0x29da26;_0x1f9385[_0x3c8021(0xce)]=_0x5d571e(_0x1f9385[_0x3c8021(0xce)],_0x1eb8e9,_0x1cd14c),_0x1f9385[_0x3c8021(0x16c)]=_0x5d571e(_0x1f9385[_0x3c8021(0x16c)],_0x1eb8e9,_0x1cd14c),_0x1f9385['customBlocks']=_0x5d571e(_0x1f9385[_0x3c8021(0x112)],_0x1eb8e9,_0x1cd14c),_0x1f9385[_0x3c8021(0xc8)]=_0x4975b6(_0x1f9385[_0x3c8021(0xc8)],_0x1eb8e9,_0x1cd14c),_0x1f9385[_0x3c8021(0x131)]=_0x3c972d(_0x1f9385[_0x3c8021(0x131)],_0x1eb8e9,_0x1cd14c),_0x1f9385[_0x3c8021(0xe5)]=_0x3c972d(_0x1f9385[_0x3c8021(0xe5)],_0x1eb8e9,_0x1cd14c),_0x1f9385[_0x3c8021(0x15b)]=_0x3c972d(_0x1f9385['customDecorations'],_0x1eb8e9,_0x1cd14c),_0x1f9385[_0x3c8021(0x140)]=_0x3c972d(_0x1f9385[_0x3c8021(0x140)],_0x1eb8e9,_0x1cd14c);}function _0x23e1c8(_0x5242c6,_0x53077d,_0x3efe96){const _0x6f34b8=_0x29da26;var _0x138cdf,_0x565511;_0x5242c6[_0x6f34b8(0xce)]=_0xbbfc28(_0x5242c6[_0x6f34b8(0xce)],_0x53077d,_0x3efe96),_0x5242c6[_0x6f34b8(0x16c)]=_0xbbfc28(_0x5242c6[_0x6f34b8(0x16c)],_0x53077d,_0x3efe96),_0x5242c6['customBlocks']=_0xbbfc28(_0x5242c6['customBlocks'],_0x53077d,_0x3efe96),_0x5242c6['textRuns']=(_0x138cdf=_0x34d2d1((_0x565511=_0x5242c6[_0x6f34b8(0xc8)])==null?void 0x0:_0x565511['map'](_0x2478cc=>({..._0x2478cc,'startIndex':_0x2478cc['st'],'endIndex':_0x2478cc['ed']})),_0x53077d,_0x3efe96))==null?void 0x0:_0x138cdf[_0x6f34b8(0x161)](_0x471517=>{let {startIndex:_0x299a0d,endIndex:_0x42c5b5,..._0x216cca}=_0x471517;return{..._0x216cca,'st':_0x299a0d,'ed':_0x42c5b5};}),_0x5242c6[_0x6f34b8(0x131)]=_0x34d2d1(_0x5242c6['tables'],_0x53077d,_0x3efe96),_0x5242c6[_0x6f34b8(0xe5)]=_0x34d2d1(_0x5242c6[_0x6f34b8(0xe5)],_0x53077d,_0x3efe96),_0x5242c6[_0x6f34b8(0x15b)]=_0x34d2d1(_0x5242c6[_0x6f34b8(0x15b)],_0x53077d,_0x3efe96),_0x5242c6[_0x6f34b8(0x140)]=_0x34d2d1(_0x5242c6[_0x6f34b8(0x140)],_0x53077d,_0x3efe96);}function _0x5d571e(_0x34b091,_0x4e5274,_0x4ee04e){const _0x4af728=_0x29da26;return _0x34b091==null?void 0x0:_0x34b091['map'](_0x40c682=>_0x40c682[_0x4af728(0xec)]>=_0x4e5274?{..._0x40c682,'startIndex':_0x40c682['startIndex']+_0x4ee04e}:_0x40c682);}function _0xbbfc28(_0x177fc4,_0xe7f2fe,_0x4e0d23){const _0x3f9043=_0x29da26;let _0x5cb791=_0xe7f2fe+_0x4e0d23;return _0x177fc4==null?void 0x0:_0x177fc4[_0x3f9043(0x161)](_0x2fc6b4=>_0x2fc6b4['startIndex']>=_0xe7f2fe&&_0x2fc6b4[_0x3f9043(0xec)]<_0x5cb791?null:_0x2fc6b4[_0x3f9043(0xec)]>=_0x5cb791?{..._0x2fc6b4,'startIndex':_0x2fc6b4[_0x3f9043(0xec)]-_0x4e0d23}:_0x2fc6b4)[_0x3f9043(0x15d)](_0x4adf24=>_0x4adf24!=null);}function _0x4975b6(_0x1f192f,_0x5c1376,_0x2f383c){return _0x1f192f==null?void 0x0:_0x1f192f['map'](_0x3defc2=>_0x3defc2['st']>=_0x5c1376?{..._0x3defc2,'st':_0x3defc2['st']+_0x2f383c,'ed':_0x3defc2['ed']+_0x2f383c}:_0x3defc2['ed']>_0x5c1376?{..._0x3defc2,'ed':_0x3defc2['ed']+_0x2f383c}:_0x3defc2);}function _0x3c972d(_0x9f02ea,_0x1d50bb,_0x49cd35){const _0x4bb303=_0x29da26;return _0x9f02ea==null?void 0x0:_0x9f02ea[_0x4bb303(0x161)](_0x44291a=>_0x44291a[_0x4bb303(0xec)]>=_0x1d50bb?{..._0x44291a,'startIndex':_0x44291a['startIndex']+_0x49cd35,'endIndex':_0x44291a[_0x4bb303(0x14c)]+_0x49cd35}:_0x44291a[_0x4bb303(0x14c)]>=_0x1d50bb?{..._0x44291a,'endIndex':_0x44291a[_0x4bb303(0x14c)]+_0x49cd35}:_0x44291a);}function _0x34d2d1(_0x46897e,_0x55d580,_0x406f89){const _0x147582=_0x29da26;let _0x2eb92f=_0x55d580+_0x406f89;return _0x46897e==null?void 0x0:_0x46897e['map'](_0x5f2ef1=>_0x5f2ef1[_0x147582(0xec)]>=_0x55d580&&_0x5f2ef1[_0x147582(0x14c)]<_0x2eb92f?null:_0x5f2ef1['startIndex']>=_0x2eb92f?{..._0x5f2ef1,'startIndex':_0x5f2ef1[_0x147582(0xec)]-_0x406f89,'endIndex':_0x5f2ef1[_0x147582(0x14c)]-_0x406f89}:_0x5f2ef1['endIndex']>=_0x55d580?{..._0x5f2ef1,'startIndex':_0x5f2ef1[_0x147582(0xec)]<_0x55d580?_0x5f2ef1[_0x147582(0xec)]:_0x55d580,'endIndex':Math[_0x147582(0xdf)](_0x55d580,_0x5f2ef1[_0x147582(0x14c)]-_0x406f89)}:_0x5f2ef1)[_0x147582(0x15d)](_0x99f081=>_0x99f081!=null);}function _0x3767de(_0x55e8e0,_0x46d188,_0x9e8e67,_0x47e918){const _0x2d0e29=_0x29da26;_0x55e8e0==null||_0x55e8e0[_0x2d0e29(0xc3)](_0x4c2c2c=>{const _0x3c027d=_0x2d0e29;_0x4c2c2c[_0x3c027d(0xec)]>=_0x46d188&&_0x4c2c2c['startIndex']<_0x9e8e67&&(_0x4c2c2c[_0x3c027d(0xec)]+=_0x47e918);});}function _0x51759b(_0x581fe1,_0x41ce88,_0x111d4d,_0x2fa1a0){const _0x315715=_0x29da26;_0x581fe1==null||_0x581fe1[_0x315715(0xc3)](_0x468826=>{_0x468826['st']>=_0x41ce88&&_0x468826['st']<_0x111d4d?(_0x468826['st']+=_0x2fa1a0,_0x468826['ed']+=_0x2fa1a0):_0x468826['ed']>_0x41ce88&&_0x468826['ed']<_0x111d4d&&(_0x468826['ed']+=_0x2fa1a0);});}function _0xd409bd(_0x27e9aa,_0xfe8eaa,_0xb02dae,_0x4ca9be){const _0x167382=_0x29da26;_0x27e9aa==null||_0x27e9aa[_0x167382(0xc3)](_0x28eaaa=>{const _0x4fa1bb=_0x167382;_0x28eaaa[_0x4fa1bb(0xec)]>=_0xfe8eaa&&_0x28eaaa[_0x4fa1bb(0xec)]<_0xb02dae?(_0x28eaaa[_0x4fa1bb(0xec)]+=_0x4ca9be,_0x28eaaa[_0x4fa1bb(0x14c)]+=_0x4ca9be):_0x28eaaa['endIndex']>_0xfe8eaa&&_0x28eaaa[_0x4fa1bb(0x14c)]<_0xb02dae&&(_0x28eaaa['endIndex']+=_0x4ca9be);});}function _0x4d1e75(_0x2309b9){'@babel/helpers - typeof';const _0x2090c3=_0x29da26;return _0x4d1e75=typeof Symbol==_0x2090c3(0xc7)&&typeof Symbol[_0x2090c3(0x126)]==_0x2090c3(0x155)?function(_0x307eeb){return typeof _0x307eeb;}:function(_0x19c643){const _0x27414a=_0x2090c3;return _0x19c643&&typeof Symbol=='function'&&_0x19c643[_0x27414a(0x111)]===Symbol&&_0x19c643!==Symbol[_0x27414a(0x12f)]?_0x27414a(0x155):typeof _0x19c643;},_0x4d1e75(_0x2309b9);}function _0x648000(_0x540535,_0x24f349){const _0x144183=_0x29da26;if(_0x4d1e75(_0x540535)!=_0x144183(0x157)||!_0x540535)return _0x540535;var _0x2805ea=_0x540535[Symbol[_0x144183(0xf7)]];if(_0x2805ea!==void 0x0){var _0x26713c=_0x2805ea[_0x144183(0x134)](_0x540535,_0x24f349||'default');if(_0x4d1e75(_0x26713c)!='object')return _0x26713c;throw TypeError(_0x144183(0x11d));}return(_0x24f349===_0x144183(0xe3)?String:Number)(_0x540535);}function _0x4ea6ea(_0x5bfabe){const _0x34e287=_0x29da26;var _0xc87248=_0x648000(_0x5bfabe,'string');return _0x4d1e75(_0xc87248)==_0x34e287(0x155)?_0xc87248:_0xc87248+'';}function _0x18a8ac(_0xeedf2c,_0x3ae2c0,_0x2783ae){const _0x469804=_0x29da26;return(_0x3ae2c0=_0x4ea6ea(_0x3ae2c0))in _0xeedf2c?Object[_0x469804(0x116)](_0xeedf2c,_0x3ae2c0,{'value':_0x2783ae,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xeedf2c[_0x3ae2c0]=_0x2783ae,_0xeedf2c;}var _0x22b977=class extends _0x3b229d[_0x29da26(0x108)]{constructor(..._0x41831a){const _0x2e0b74=_0x29da26;super(..._0x41831a),_0x18a8ac(this,_0x2e0b74(0x164),new Map()),_0x18a8ac(this,'_change$',new _0x22a75c[(_0x2e0b74(0xe7))]()),_0x18a8ac(this,'change$',this[_0x2e0b74(0xe4)][_0x2e0b74(0x152)]());}['getCodeConfig'](_0x137c2f,_0x4bb8a6){const _0x2c0e1b=_0x29da26;return _0x2619bd(this['_resources'][_0x2c0e1b(0x120)](_0x137c2f))[_0x2c0e1b(0x146)][_0x4bb8a6];}[_0x29da26(0x138)](_0x46db9a,_0x481957,_0x3a163d){const _0x273ceb=_0x29da26;this['_setResource'](_0x46db9a,_0x481957,_0x53a088(this[_0x273ceb(0x164)][_0x273ceb(0x120)](_0x46db9a),_0x481957,_0x3a163d));}[_0x29da26(0x135)](_0x32fbf1,_0x1b6442){const _0x5c9ed0=_0x29da26;this[_0x5c9ed0(0xde)](_0x32fbf1,_0x1b6442,_0x355325(this[_0x5c9ed0(0x164)]['get'](_0x32fbf1),_0x1b6442));}[_0x29da26(0xcf)](_0x3464db){const _0xc392d1=_0x29da26;return _0x2619bd(this[_0xc392d1(0x164)]['get'](_0x3464db));}[_0x29da26(0x160)](_0x448a10,_0x14ecf1){const _0x3718a2=_0x29da26;this[_0x3718a2(0x164)][_0x3718a2(0x11b)](_0x448a10,_0x2619bd(_0x14ecf1)),this[_0x3718a2(0xe4)][_0x3718a2(0xf8)]({'unitId':_0x448a10});}['removeUnit'](_0x5a20bb){const _0xe1b74c=_0x29da26;this['_resources'][_0xe1b74c(0xe9)](_0x5a20bb),this[_0xe1b74c(0xe4)][_0xe1b74c(0xf8)]({'unitId':_0x5a20bb});}[_0x29da26(0xd2)](){const _0x95f786=_0x29da26;super[_0x95f786(0xd2)](),this[_0x95f786(0x164)][_0x95f786(0x113)](),this[_0x95f786(0xe4)][_0x95f786(0xfe)]();}[_0x29da26(0xde)](_0x3ca880,_0xe43cf7,_0x20ef0c){const _0x2524ec=_0x29da26;this['_resources']['set'](_0x3ca880,_0x20ef0c),this[_0x2524ec(0xe4)][_0x2524ec(0xf8)]({'unitId':_0x3ca880,'blockId':_0xe43cf7});}};let _0x4e8126={'id':_0x29da26(0x14b),'type':_0x3b229d[_0x29da26(0x16b)]['COMMAND'],'handler':_0x5dbb2a=>{const _0x1219c6=_0x29da26;let _0x412d67=_0x5beb8d(_0x5dbb2a);if(_0x412d67)return _0x5dbb2a[_0x1219c6(0x120)](_0x3b229d[_0x1219c6(0x100)])[_0x1219c6(0x16d)](_0x2e4acb['id'],{'startOffset':_0x412d67[_0x1219c6(0x13e)],'endOffset':_0x412d67[_0x1219c6(0xd3)],'unitId':_0x412d67[_0x1219c6(0xcd)]});let _0x4f84bf=_0x10494d(_0x5dbb2a);if(!_0x4f84bf)return!0x1;let _0x20d826=_0x4f84bf[_0x1219c6(0xec)]+0x1;return _0x5dbb2a['get'](_0x3b229d[_0x1219c6(0x100)])[_0x1219c6(0x16d)](_0x2e4acb['id'],{'startOffset':_0x20d826,'endOffset':_0x20d826});}},_0x4a3281={'id':_0x29da26(0xd4),'type':_0x3b229d[_0x29da26(0x16b)][_0x29da26(0x121)],'handler':()=>!0x0},_0x2e4acb={'id':_0x29da26(0x13c),'type':_0x3b229d[_0x29da26(0x16b)][_0x29da26(0x121)],'handler':(_0x5eee36,_0x1824b8)=>{const _0x2a7230=_0x29da26;var _0x68c409,_0x34bec1,_0xf35885;let _0x553f9e=_0x353b74(_0x5eee36,_0x1824b8==null?void 0x0:_0x1824b8[_0x2a7230(0xcd)]);if(!_0x553f9e)return!0x1;let _0x4ad21f=_0xec355c(_0x5eee36),_0x4b92fc=_0x4b493e({'blockId':(_0x68c409=_0x1824b8==null?void 0x0:_0x1824b8[_0x2a7230(0xfd)])==null?(0x0,_0x3b229d[_0x2a7230(0xfb)])(0x6):_0x68c409,'config':_0x1824b8==null?void 0x0:_0x1824b8[_0x2a7230(0x130)],'documentData':_0x553f9e[_0x2a7230(0x10b)],'endOffset':(_0x34bec1=_0x1824b8==null?void 0x0:_0x1824b8['endOffset'])==null?_0x4ad21f==null?void 0x0:_0x4ad21f[_0x2a7230(0xd3)]:_0x34bec1,'metadata':_0x553f9e['model'][_0x2a7230(0xcf)](_0x553f9e[_0x2a7230(0xcd)]),'startOffset':(_0xf35885=_0x1824b8==null?void 0x0:_0x1824b8[_0x2a7230(0x13e)])==null?_0x4ad21f==null?void 0x0:_0x4ad21f[_0x2a7230(0x13e)]:_0xf35885}),_0x1872fe=_0x1c1d1e(_0x553f9e[_0x2a7230(0x148)],_0x553f9e[_0x2a7230(0xcd)],_0x553f9e[_0x2a7230(0x10b)],_0x4b92fc['nextDocumentData'],_0x4b92fc[_0x2a7230(0xc9)]);return _0x1872fe&&_0x4b92fc[_0x2a7230(0x107)]&&_0x553f9e['model'][_0x2a7230(0x160)](_0x553f9e['unitId'],_0x4b92fc['nextMetadata']),_0x1872fe;}},_0x4754eb={'id':'docs-code.command.update','type':_0x3b229d[_0x29da26(0x16b)]['COMMAND'],'handler':(_0x5343dc,_0x2f1ff3)=>{const _0xeddb35=_0x29da26;if(!_0x2f1ff3)return!0x1;let _0x4ebd7f=_0x353b74(_0x5343dc,_0x2f1ff3['unitId']);if(!_0x4ebd7f)return!0x1;let _0x396f55=_0x21379e({'blockId':_0x2f1ff3[_0xeddb35(0xfd)],'config':_0x2f1ff3['config'],'documentData':_0x4ebd7f['previousDocumentData'],'metadata':_0x4ebd7f[_0xeddb35(0x142)][_0xeddb35(0xcf)](_0x4ebd7f['unitId'])});return _0x396f55[_0xeddb35(0x107)]&&_0x4ebd7f['model'][_0xeddb35(0x160)](_0x4ebd7f[_0xeddb35(0xcd)],_0x396f55['nextMetadata']),!0x0;}},_0x21758f={'id':_0x29da26(0xc4),'type':_0x3b229d[_0x29da26(0x16b)][_0x29da26(0x121)],'handler':(_0x37e233,_0x1f9a3c)=>{const _0x854193=_0x29da26;var _0x2268ec,_0x276858;let _0x5e7b84=_0x353b74(_0x37e233,_0x1f9a3c==null?void 0x0:_0x1f9a3c['unitId']);if(!_0x5e7b84)return!0x1;let _0x16957f=(_0x2268ec=_0x1f9a3c==null?void 0x0:_0x1f9a3c[_0x854193(0xc9)])==null?(_0x276858=_0xec355c(_0x37e233))==null?void 0x0:_0x276858['startOffset']:_0x2268ec;if(_0x16957f==null)return!0x1;let _0x44e25a=_0x4c43e0({'cursorOffset':_0x16957f,'documentData':_0x5e7b84[_0x854193(0x10b)]});return _0x44e25a?_0x1c1d1e(_0x5e7b84[_0x854193(0x148)],_0x5e7b84[_0x854193(0xcd)],_0x5e7b84[_0x854193(0x10b)],_0x44e25a[_0x854193(0x163)],_0x44e25a[_0x854193(0xc9)]):!0x1;}},_0x48871c={'id':_0x29da26(0x158),'type':_0x3b229d[_0x29da26(0x16b)]['COMMAND'],'handler':(_0x2f4581,_0x219596)=>{const _0x553304=_0x29da26;var _0x1e1066,_0x44d05a;let _0xc2fb=_0x353b74(_0x2f4581,_0x219596==null?void 0x0:_0x219596[_0x553304(0xcd)]);if(!_0xc2fb)return!0x1;let _0x23508b=(_0x1e1066=_0x219596==null?void 0x0:_0x219596[_0x553304(0xc9)])==null?(_0x44d05a=_0xec355c(_0x2f4581))==null?void 0x0:_0x44d05a[_0x553304(0x13e)]:_0x1e1066;if(_0x23508b==null)return!0x1;let _0x28c495=_0x5ece81({'cursorOffset':_0x23508b,'documentData':_0xc2fb[_0x553304(0x10b)],'paragraphStartIndex':_0x219596==null?void 0x0:_0x219596['paragraphStartIndex']});return _0x28c495?_0x1c1d1e(_0xc2fb[_0x553304(0x148)],_0xc2fb[_0x553304(0xcd)],_0xc2fb['previousDocumentData'],_0x28c495[_0x553304(0x163)],_0x28c495[_0x553304(0xc9)]):!0x1;}};function _0x353b74(_0x19fa84,_0xd6f2be){const _0x2659ef=_0x29da26;let _0x4deb5c=_0x19fa84[_0x2659ef(0x120)](_0x3b229d[_0x2659ef(0x166)]),_0x2f99e4=_0xd6f2be?_0x4deb5c['getUniverDocInstance'](_0xd6f2be):_0x4deb5c[_0x2659ef(0x156)](_0x3b229d[_0x2659ef(0x14a)]['UNIVER_DOC']);return _0x2f99e4?{'commandService':_0x19fa84[_0x2659ef(0x120)](_0x3b229d[_0x2659ef(0x100)]),'model':_0x19fa84[_0x2659ef(0x120)](_0x22b977),'previousDocumentData':_0x2f99e4[_0x2659ef(0x137)](),'unitId':_0x2f99e4[_0x2659ef(0xe6)]()}:null;}function _0xec355c(_0x294981){const _0x139a80=_0x29da26;var _0x3eab90;return(_0x3eab90=_0x294981[_0x139a80(0x120)](_0x371266[_0x139a80(0x10f)])['getTextRanges']())==null?void 0x0:_0x3eab90[0x0];}function _0x5beb8d(_0x426020){const _0x441662=_0x29da26;var _0xa89472;let _0x2c8601=(_0xa89472=_0x426020[_0x441662(0x120)](_0x3b229d[_0x441662(0x166)])[_0x441662(0x156)](_0x3b229d[_0x441662(0x14a)][_0x441662(0xff)]))==null?void 0x0:_0xa89472['getUnitId']();try{return _0x426020[_0x441662(0x120)](_0x371266[_0x441662(0x10e)])[_0x441662(0x13a)](_0x2c8601);}catch{return null;}}function _0x10494d(_0x369cb2){const _0x309170=_0x29da26;var _0x4a2a36,_0x766090,_0x342f94;let _0x449ddf=_0xec355c(_0x369cb2);if(!_0x449ddf)return null;let _0x3a4318=_0x369cb2[_0x309170(0x120)](_0x3b229d[_0x309170(0x166)])[_0x309170(0x156)](_0x3b229d['UniverInstanceType'][_0x309170(0xff)]),_0x500fd6=_0x3a4318==null?void 0x0:_0x3a4318[_0x309170(0x102)]();return _0x500fd6?(_0x4a2a36=_0x3b229d[_0x309170(0x154)]['range']['getParagraphsInRange'](_0x449ddf,(_0x766090=_0x500fd6[_0x309170(0xce)])==null?[]:_0x766090,(_0x342f94=_0x500fd6['dataStream'])==null?'':_0x342f94)[0x0])==null?null:_0x4a2a36:null;}function _0x8164d6(_0x156992,_0x2ce93c){const _0x2e39b7=_0x29da26;var _0x1bff95,_0x2782a0,_0x58eb57,_0x40c93d,_0x3e0f4f,_0x56cb35,_0x91c1e4,_0x5a2a85,_0x2e72e4,_0xe04282,_0x43d4b5,_0x4b0362,_0x582ca0,_0x3e85d8,_0x1fd714,_0x3d8eac,_0x1dc0c1,_0x221f3e;let _0x5d8655=_0x3b229d['JSONX']['getInstance']();return[_0x7988cd(_0x5d8655,[_0x2e39b7(0xeb),'dataStream'],(_0x1bff95=_0x156992[_0x2e39b7(0xeb)])==null?void 0x0:_0x1bff95[_0x2e39b7(0x14e)],(_0x2782a0=_0x2ce93c['body'])==null?void 0x0:_0x2782a0[_0x2e39b7(0x14e)]),_0x7988cd(_0x5d8655,['body',_0x2e39b7(0xce)],(_0x58eb57=_0x156992[_0x2e39b7(0xeb)])==null?void 0x0:_0x58eb57[_0x2e39b7(0xce)],(_0x40c93d=_0x2ce93c[_0x2e39b7(0xeb)])==null?void 0x0:_0x40c93d['paragraphs']),_0x7988cd(_0x5d8655,[_0x2e39b7(0xeb),_0x2e39b7(0x16c)],(_0x3e0f4f=_0x156992[_0x2e39b7(0xeb)])==null?void 0x0:_0x3e0f4f[_0x2e39b7(0x16c)],(_0x56cb35=_0x2ce93c['body'])==null?void 0x0:_0x56cb35['sectionBreaks']),_0x7988cd(_0x5d8655,[_0x2e39b7(0xeb),_0x2e39b7(0xc8)],(_0x91c1e4=_0x156992[_0x2e39b7(0xeb)])==null?void 0x0:_0x91c1e4[_0x2e39b7(0xc8)],(_0x5a2a85=_0x2ce93c['body'])==null?void 0x0:_0x5a2a85[_0x2e39b7(0xc8)]),_0x7988cd(_0x5d8655,[_0x2e39b7(0xeb),_0x2e39b7(0x112)],(_0x2e72e4=_0x156992[_0x2e39b7(0xeb)])==null?void 0x0:_0x2e72e4[_0x2e39b7(0x112)],(_0xe04282=_0x2ce93c['body'])==null?void 0x0:_0xe04282[_0x2e39b7(0x112)]),_0x7988cd(_0x5d8655,[_0x2e39b7(0xeb),'customRanges'],(_0x43d4b5=_0x156992[_0x2e39b7(0xeb)])==null?void 0x0:_0x43d4b5[_0x2e39b7(0xe5)],(_0x4b0362=_0x2ce93c['body'])==null?void 0x0:_0x4b0362[_0x2e39b7(0xe5)]),_0x7988cd(_0x5d8655,[_0x2e39b7(0xeb),_0x2e39b7(0x15b)],(_0x582ca0=_0x156992['body'])==null?void 0x0:_0x582ca0['customDecorations'],(_0x3e85d8=_0x2ce93c[_0x2e39b7(0xeb)])==null?void 0x0:_0x3e85d8[_0x2e39b7(0x15b)]),_0x7988cd(_0x5d8655,[_0x2e39b7(0xeb),_0x2e39b7(0x131)],(_0x1fd714=_0x156992[_0x2e39b7(0xeb)])==null?void 0x0:_0x1fd714[_0x2e39b7(0x131)],(_0x3d8eac=_0x2ce93c[_0x2e39b7(0xeb)])==null?void 0x0:_0x3d8eac[_0x2e39b7(0x131)]),_0x7988cd(_0x5d8655,['body',_0x2e39b7(0x140)],(_0x1dc0c1=_0x156992['body'])==null?void 0x0:_0x1dc0c1[_0x2e39b7(0x140)],(_0x221f3e=_0x2ce93c[_0x2e39b7(0xeb)])==null?void 0x0:_0x221f3e[_0x2e39b7(0x140)])][_0x2e39b7(0x15d)](Boolean)[_0x2e39b7(0xd6)]((_0x55416c,_0x2bf1e1)=>_0x3b229d['JSONX'][_0x2e39b7(0x153)](_0x55416c,_0x2bf1e1),null);}function _0x7988cd(_0x5cfceb,_0x309e03,_0x3056e0,_0xa057dc){const _0x317769=_0x29da26;return _0x3b229d[_0x317769(0xc2)]['diffValue'](_0x3056e0,_0xa057dc)?null:_0x5cfceb[_0x317769(0x115)](_0x309e03,_0x3056e0,_0xa057dc);}function _0x1c1d1e(_0x38bef4,_0x438b68,_0x461c89,_0x78e3ba,_0x3baa30){const _0x532a6b=_0x29da26;let _0xe5225d=_0x8164d6(_0x461c89,_0x78e3ba);return _0xe5225d?!!_0x38bef4[_0x532a6b(0x16d)](_0x371266['RichTextEditingMutation']['id'],{'unitId':_0x438b68,'actions':_0xe5225d,'textRanges':[{'startOffset':_0x3baa30,'endOffset':_0x3baa30,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}let _0x25eb2b=_0x29da26(0xe1);var _0x5d0d7e='@univerjs-pro/docs-code',_0x584ea4='1.0.0-insiders.20260629-12f2e44';let _0x4fc7d6={};function _0x82d6b9(_0x2ed79e,_0x3b3b45){return function(_0x575a4f,_0x496ef1){_0x3b3b45(_0x575a4f,_0x496ef1,_0x2ed79e);};}function _0x5e75c3(_0x591eaa,_0x2c25d3,_0x32075b,_0x332e1b){const _0x4097a9=_0x29da26;var _0x4ff4e6=arguments[_0x4097a9(0x162)],_0x38bbf1=_0x4ff4e6<0x3?_0x2c25d3:_0x332e1b===null?_0x332e1b=Object[_0x4097a9(0x13d)](_0x2c25d3,_0x32075b):_0x332e1b,_0x2c0b8c;if(typeof Reflect==_0x4097a9(0x157)&&typeof Reflect[_0x4097a9(0x11c)]==_0x4097a9(0xc7))_0x38bbf1=Reflect[_0x4097a9(0x11c)](_0x591eaa,_0x2c25d3,_0x32075b,_0x332e1b);else{for(var _0x30ab4a=_0x591eaa[_0x4097a9(0x162)]-0x1;_0x30ab4a>=0x0;_0x30ab4a--)(_0x2c0b8c=_0x591eaa[_0x30ab4a])&&(_0x38bbf1=(_0x4ff4e6<0x3?_0x2c0b8c(_0x38bbf1):_0x4ff4e6>0x3?_0x2c0b8c(_0x2c25d3,_0x32075b,_0x38bbf1):_0x2c0b8c(_0x2c25d3,_0x32075b))||_0x38bbf1);}return _0x4ff4e6>0x3&&_0x38bbf1&&Object[_0x4097a9(0x116)](_0x2c25d3,_0x32075b,_0x38bbf1),_0x38bbf1;}let _0x1578d1=class extends _0x3b229d['Disposable']{constructor(_0x1f6e35,_0xd5c84){const _0x66c23d=_0x29da26;super(),this[_0x66c23d(0x151)]=_0x1f6e35,this['_docsCodeModel']=_0xd5c84,this[_0x66c23d(0x104)]();}[_0x29da26(0x104)](){const _0x41083f=_0x29da26;this[_0x41083f(0x119)](this[_0x41083f(0x151)][_0x41083f(0x136)]({'pluginName':_0x25eb2b,'businesses':[_0x3b229d[_0x41083f(0x14a)][_0x41083f(0xff)]],'toJson':_0x586780=>JSON[_0x41083f(0xea)](this['_docsCodeModel'][_0x41083f(0xcf)](_0x586780)),'parseJson':_0xd4512a=>_0x2619bd(JSON[_0x41083f(0xf6)](_0xd4512a)),'onLoad':(_0x53b343,_0x4647bc)=>this[_0x41083f(0x15c)][_0x41083f(0x160)](_0x53b343,_0x4647bc),'onUnLoad':_0x4acfb2=>this['_docsCodeModel'][_0x41083f(0xfa)](_0x4acfb2)}));}};_0x1578d1=_0x5e75c3([_0x82d6b9(0x0,_0x3b229d[_0x29da26(0x133)]),_0x82d6b9(0x1,(0x0,_0x3b229d[_0x29da26(0xd1)])(_0x22b977))],_0x1578d1);let _0x56e5ca=class extends _0x3b229d[_0x29da26(0x125)]{constructor(_0x1748ec=_0x4fc7d6,_0xc65558,_0xd54c81,_0x589338){const _0x2e5212=_0x29da26;super(),this[_0x2e5212(0x14d)]=_0x1748ec,this[_0x2e5212(0xfc)]=_0xc65558,this[_0x2e5212(0x12c)]=_0xd54c81,this[_0x2e5212(0xdc)]=_0x589338;let {..._0x2a6b17}=(0x0,_0x3b229d['merge'])({},_0x4fc7d6,this['_config']);this['_configService'][_0x2e5212(0xd0)](_0x2e5212(0xe0),_0x2a6b17);}[_0x29da26(0xdb)](){const _0x3eaa64=_0x29da26;this[_0x3eaa64(0xfc)]['add']([_0x22b977]),this[_0x3eaa64(0xfc)][_0x3eaa64(0x10d)]([_0x1578d1]),this['_injector'][_0x3eaa64(0x120)](_0x22b977),this[_0x3eaa64(0xfc)][_0x3eaa64(0x120)](_0x1578d1),[_0x2e4acb,_0x4e8126,_0x4754eb,_0x21758f,_0x48871c,_0x4a3281][_0x3eaa64(0xc3)](_0x5d1c29=>this[_0x3eaa64(0x119)](this['_commandService'][_0x3eaa64(0x109)](_0x5d1c29)));}};_0x18a8ac(_0x56e5ca,_0x29da26(0x149),_0x25eb2b),_0x18a8ac(_0x56e5ca,'packageName',_0x5d0d7e),_0x18a8ac(_0x56e5ca,_0x29da26(0xd8),_0x584ea4),_0x18a8ac(_0x56e5ca,_0x29da26(0x105),_0x3b229d['UniverInstanceType'][_0x29da26(0xff)]),_0x56e5ca=_0x5e75c3([(0x0,_0x3b229d['DependentOn'])(_0x3158ca[_0x29da26(0xbe)],_0x371266['UniverDocsPlugin']),_0x82d6b9(0x1,(0x0,_0x3b229d[_0x29da26(0xd1)])(_0x3b229d[_0x29da26(0x141)])),_0x82d6b9(0x2,_0x3b229d['ICommandService']),_0x82d6b9(0x3,_0x3b229d[_0x29da26(0x145)])],_0x56e5ca),_0x27132c[_0x29da26(0x110)]=_0xa35c8d,_0x27132c['DOCS_CODE_PLUGIN']=_0x25eb2b,_0x27132c['DocsCodeCancelEmptyParagraphCommand']=_0x48871c,_0x27132c['DocsCodeConsumeBoundaryDeleteCommand']=_0x4a3281,_0x27132c[_0x29da26(0x128)]=_0x21758f,_0x27132c[_0x29da26(0x127)]=_0x4e8126,_0x27132c[_0x29da26(0x122)]=_0x2e4acb,_0x27132c['DocsCodeModel']=_0x22b977,_0x27132c[_0x29da26(0x139)]=_0x4754eb,Object[_0x29da26(0x116)](_0x27132c,_0x29da26(0x143),{'enumerable':!0x0,'get':function(){return _0x56e5ca;}}),_0x27132c[_0x29da26(0xe8)]=_0x5ece81,_0x27132c[_0x29da26(0x14f)]=_0x4c43e0,_0x27132c[_0x29da26(0xed)]=_0x4b493e,_0x27132c['buildUpdateCodeActions']=_0x21379e,_0x27132c[_0x29da26(0xcb)]=_0x569073,_0x27132c[_0x29da26(0xda)]=_0x401d12,_0x27132c['normalizeDocsCodeConfig']=_0x5da954;}));function _0x1d60(){const _0x552f45=['DocsCodeInsertCommand','indentStart','find','Plugin','iterator','DocsCodeInsertBelowCommand','DocsCodeExitCommand','deepClone','SECTION_BREAK','4224680mJKQDo','_commandService','left','UniverDocs','prototype','config','tables','6XxWnSu','IResourceManagerService','call','removeCode','registerPluginResource','getSnapshot','setCodeConfig','DocsCodeUpdateCommand','consumeInsertRange','spaceBelow','docs-code.command.insert','getOwnPropertyDescriptor','startOffset','createParagraphId','blockRanges','Injector','model','UniverDocsCodePlugin','blockType','IConfigService','codes','some','commandService','pluginName','UniverInstanceType','docs-code.command.insert-below','endIndex','_config','dataStream','buildExitCodeActions','12256JiDtEK','_resourceManagerService','asObservable','compose','BuildTextUtils','symbol','getCurrentUnitOfType','object','docs-code.command.cancel-empty-paragraph','290NsCjqc','UniverCore','customDecorations','_docsCodeModel','filter','DataStreamTreeTokenType','documentData','deserialize','map','length','nextDocumentData','_resources','metadata','IUniverInstanceService','textStyle','spaceAbove','PARAGRAPH','1032TCosvL','CommandType','sectionBreaks','syncExecuteCommand','UniverLicensePlugin','entries','2445273DVAMJf','BLOCK_END','Tools','forEach','docs-code.command.exit','min','@univerjs-pro/license','function','textRuns','cursorOffset','exports','findCodeRangeAtOffset','endTokenOffset','unitId','paragraphs','serialize','setConfig','Inject','dispose','endOffset','docs-code.command.consume-boundary-delete','direction','reduce','14ClcbjX','version','right','isCodeBoundaryDelete','onStarting','_configService','paragraphStartIndex','_setResource','max','docs-code.config','DOC_CODE_PLUGIN','@univerjs/docs','string','_change$','customRanges','getUnitId','Subject','buildCancelEmptyCodeParagraphActions','delete','stringify','body','startIndex','buildInsertCodeActions','UniverProDocsCode','from','monospace','96471dRzetw','rxjs','6119141TfjXUa','CODE','toStringTag','parse','toPrimitive','next','sort','removeUnit','generateRandomId','_injector','blockId','complete','UNIVER_DOC','ICommandService','BLOCK_START','getBody','paragraphStyle','_initResource','type','DocumentBlockRangeType','nextMetadata','Disposable','registerCommand','fromEntries','previousDocumentData','endsWith','add','DocContentInsertService','DocSelectionManagerService','DEFAULT_CODE_CONFIG','constructor','customBlocks','clear','1212085dxqlQn','replaceOp','defineProperty','598334JzEWRB','Document\x20body\x20is\x20required','disposeWithMe','slice','set','decorate','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','every','paragraph','get','COMMAND'];_0x1d60=function(){return _0x552f45;};return _0x1d60();}
1
+ function _0x5a7f(){const _0x584fa1=['DocsCodeCancelEmptyParagraphCommand','unitId','getOwnPropertyDescriptor','getBody','range','_docsCodeModel','spaceBelow','RichTextEditingMutation','getParagraphsInRange','@univerjs/docs','customBlocks','docs-code.command.consume-boundary-delete','IResourceManagerService','Subject','default','removeCode','left','_resources','startOffset','blockRanges','min','slice','BuildTextUtils','textStyle','model','_injector','forEach','createParagraphId','UniverCore','map','isCodeBoundaryDelete','compose','consumeInsertRange','pluginName','paragraph','Module','startIndex','_configService','UniverLicensePlugin','length','onStarting','DEFAULT_CODE_CONFIG','_config','disposeWithMe','generateRandomId','getUnitId','reduce','string','direction','buildUpdateCodeActions','prototype','UniverDocsCodePlugin','defineProperty','DocsCodeExitCommand','CODE','DocContentInsertService','DataStreamTreeTokenType','Inject','915214dgNbui','symbol','asObservable','DependentOn','entries','PARAGRAPH','680hIEbHj','customRanges','stringify','1682471mWAMqN','_commandService','buildInsertCodeActions','tables','COMMAND','UniverInstanceType','28523GKtdiV','max','serialize','_setResource','get','_change$','dataStream','diffValue','1029174KJrJGg','549896TnULIZ','_initResource','version','4dszSIO','every','CommandType','1ZqFkKb','clear','docs-code.command.insert-below','UniverProDocsCode','change$','DocsCodeModel','type','docs-code.command.cancel-empty-paragraph','add','indentStart','getInstance','metadata','@univerjs-pro/docs-code','Tools','spaceAbove','_resourceManagerService','Plugin','indentEnd','removeUnit','paragraphStyle','syncExecuteCommand','DocumentBlockRangeType','2091770tHOtkD','config','registerPluginResource','from','getCurrentUnitOfType','decorate','36QNzQZE','body','complete','customDecorations','703554mqfoxH','SECTION_BREAK','codes','1.0.0-insiders.20260701-0ef51b0','nextMetadata','endIndex','monospace','dispose','BLOCK_END','previousDocumentData','find','some','documentData','docs-code.config','indexOf','registerCommand','BLOCK_START','nextDocumentData','deepClone','sectionBreaks','UniverDocs','object','paragraphStartIndex','set','toStringTag','DocsCodeInsertBelowCommand','paragraphs','textRuns','IConfigService','@univerjs/core','UniverProLicense','IUniverInstanceService','fromEntries','blockId','commandService','exports','merge','ICommandService','endOffset','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','docs-code.command.insert','constructor','call','right','cursorOffset','blockType','filter','deserialize','DOC_CODE_PLUGIN','DOCS_CODE_PLUGIN','function','sort','DocsCodeConsumeBoundaryDeleteCommand','UNIVER_DOC','rxjs','Disposable','paragraphId','next'];_0x5a7f=function(){return _0x584fa1;};return _0x5a7f();}function _0x4e30(_0x5870c2,_0x4fd37a){_0x5870c2=_0x5870c2-0x16c;const _0x5a7f34=_0x5a7f();let _0x4e301b=_0x5a7f34[_0x5870c2];return _0x4e301b;}(function(_0x349b5a,_0x164b6d){const _0x444c68=_0x4e30,_0xc3f6e2=_0x349b5a();while(!![]){try{const _0xff7f9e=-parseInt(_0x444c68(0x188))/0x1*(parseInt(_0x444c68(0x21c))/0x2)+-parseInt(_0x444c68(0x1a8))/0x3*(-parseInt(_0x444c68(0x185))/0x4)+parseInt(_0x444c68(0x19e))/0x5+-parseInt(_0x444c68(0x181))/0x6+-parseInt(_0x444c68(0x173))/0x7+parseInt(_0x444c68(0x182))/0x8*(parseInt(_0x444c68(0x1a4))/0x9)+-parseInt(_0x444c68(0x170))/0xa*(-parseInt(_0x444c68(0x179))/0xb);if(_0xff7f9e===_0x164b6d)break;else _0xc3f6e2['push'](_0xc3f6e2['shift']());}catch(_0x347ba5){_0xc3f6e2['push'](_0xc3f6e2['shift']());}}}(_0x5a7f,0x3949f),function(_0x3870c1,_0x5e0bc9){const _0x243d0d=_0x4e30;typeof exports==_0x243d0d(0x1bd)&&typeof module<'u'?_0x5e0bc9(exports,require('@univerjs/core'),require('@univerjs/docs'),require('rxjs'),require('@univerjs-pro/license')):typeof define==_0x243d0d(0x1da)&&define['amd']?define([_0x243d0d(0x1cb),_0x243d0d(0x1c5),_0x243d0d(0x1eb),_0x243d0d(0x1de),'@univerjs-pro/license'],_0x5e0bc9):(_0x3870c1=typeof globalThis<'u'?globalThis:_0x3870c1||self,_0x5e0bc9(_0x3870c1[_0x243d0d(0x18b)]={},_0x3870c1[_0x243d0d(0x1fe)],_0x3870c1[_0x243d0d(0x1bc)],_0x3870c1[_0x243d0d(0x1de)],_0x3870c1[_0x243d0d(0x1c6)]));}(this,function(_0x28133a,_0x3e9b19,_0x17f9fb,_0x56a0f1,_0x4f1e27){const _0x260969=_0x4e30;Object[_0x260969(0x216)](_0x28133a,Symbol[_0x260969(0x1c0)],{'value':_0x260969(0x205)});let _0x370d70={'language':'javascript','showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function _0x59e9a5(_0x12f342){return{..._0x370d70,..._0x12f342};}function _0x5d2e42(_0x456b1a){const _0x39c975=_0x260969;var _0x1e05c8;let _0x1033b4=(_0x1e05c8=_0x456b1a==null?void 0x0:_0x456b1a[_0x39c975(0x1aa)])==null?{}:_0x1e05c8;return{'codes':Object[_0x39c975(0x1c8)](Object[_0x39c975(0x16e)](_0x1033b4)[_0x39c975(0x1ff)](([_0x24214b,_0x4ae869])=>[_0x24214b,_0x59e9a5(_0x4ae869)]))};}function _0x3e535c(_0x59a3a3,_0x2108bf,_0x3b024d){const _0x1c8e0a=_0x260969;let _0x2f9cfe=_0x5d2e42(_0x59a3a3);return _0x2f9cfe[_0x1c8e0a(0x1aa)][_0x2108bf]=_0x59e9a5({..._0x2f9cfe['codes'][_0x2108bf],..._0x3b024d}),_0x2f9cfe;}function _0x2867f5(_0x20300c,_0xa70929){let _0x1d0d8e=_0x5d2e42(_0x20300c);return delete _0x1d0d8e['codes'][_0xa70929],_0x1d0d8e;}let _0x450e31=_0x260969(0x1ae);function _0x29635b(_0x51c796){const _0x2045c8=_0x260969;var _0x7720d2,_0x254a6d,_0x72038;let _0xbfe99d=_0x4eada5(_0x51c796[_0x2045c8(0x1b4)]),_0x4d00f1=_0x50740c(_0xbfe99d),_0x8edd7d=_0x20c4c0(_0x51c796[_0x2045c8(0x1f4)],_0x51c796[_0x2045c8(0x1ce)]),_0x385e78=_0x8edd7d?(_0x7720d2=_0x4d00f1[_0x2045c8(0x1f5)])==null?void 0x0:_0x7720d2[_0x2045c8(0x1b2)](_0x47e34f=>_0x47e34f[_0x2045c8(0x206)]===_0x8edd7d[_0x2045c8(0x1f4)]&&_0x47e34f[_0x2045c8(0x1ad)]+0x1===_0x8edd7d['endOffset']):void 0x0,{startOffset:_0x39654f,endOffset:_0x747366}=_0x385e78?_0x8edd7d:_0x52dba1(_0x4d00f1,_0x51c796[_0x2045c8(0x1f4)],_0x51c796['endOffset']),_0x897599=_0x545dd2(_0x4d00f1,_0x39654f,_0x747366),_0xcf9ee5=(_0x254a6d=_0x385e78==null?void 0x0:_0x385e78['blockId'])==null?_0x51c796[_0x2045c8(0x1c9)]:_0x254a6d,_0x1cd560=_0x3e535c(_0x51c796[_0x2045c8(0x193)],_0xcf9ee5,{..._0x370d70,..._0x51c796['config']});if(_0x385e78)return _0x385e78['blockType']=_0x3e9b19['DocumentBlockRangeType'][_0x2045c8(0x218)],_0x28a836(_0x4d00f1,_0x39654f,_0x747366),_0x1956a7(_0x4d00f1,_0x39654f,_0x747366,_0x897599),_0x502423(_0x4d00f1,_0x385e78),{'nextDocumentData':_0xbfe99d,'nextMetadata':_0x1cd560,'cursorOffset':_0x39654f+0x1};if(_0x39654f===_0x747366){var _0x440c92,_0x4ea71e;let _0x323819=''+_0x3e9b19[_0x2045c8(0x21a)][_0x2045c8(0x1b8)]+_0x3e9b19[_0x2045c8(0x21a)][_0x2045c8(0x16f)]+_0x3e9b19['DataStreamTreeTokenType'][_0x2045c8(0x1b0)];_0x5ab5d0(_0x4d00f1,_0x39654f,_0x323819,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,_0x3e9b19[_0x2045c8(0x1fd)])(new Set((_0x440c92=_0x4d00f1[_0x2045c8(0x1c2)])==null?void 0x0:_0x440c92[_0x2045c8(0x1ff)](_0x312699=>_0x312699[_0x2045c8(0x1e0)]))),'paragraphStyle':_0x200b11(!0x0,!0x0,_0x897599)}],'blockRanges':[{'blockId':_0xcf9ee5,'blockType':_0x3e9b19[_0x2045c8(0x19d)]['CODE'],'startIndex':0x0,'endIndex':_0x323819[_0x2045c8(0x209)]-0x1}]});let _0x52cf06=(_0x4ea71e=_0x4d00f1['blockRanges'])==null?void 0x0:_0x4ea71e[_0x2045c8(0x1b2)](_0x2bcc86=>_0x2bcc86[_0x2045c8(0x1c9)]===_0xcf9ee5);return _0x52cf06&&_0x502423(_0x4d00f1,_0x52cf06),{'nextDocumentData':_0xbfe99d,'nextMetadata':_0x1cd560,'cursorOffset':_0x39654f+0x1};}_0x5ab5d0(_0x4d00f1,_0x747366,_0x3e9b19[_0x2045c8(0x21a)][_0x2045c8(0x1b0)]),_0x5ab5d0(_0x4d00f1,_0x39654f,_0x3e9b19['DataStreamTreeTokenType'][_0x2045c8(0x1b8)]),_0x1956a7(_0x4d00f1,_0x39654f,_0x747366+0x1,_0x897599);let _0x499578={'blockId':_0xcf9ee5,'blockType':_0x3e9b19['DocumentBlockRangeType']['CODE'],'startIndex':_0x39654f,'endIndex':_0x747366+0x1};return _0x4d00f1[_0x2045c8(0x1f5)]=[...(_0x72038=_0x4d00f1[_0x2045c8(0x1f5)])==null?[]:_0x72038,_0x499578][_0x2045c8(0x1db)]((_0x52eead,_0x4c7e33)=>_0x52eead[_0x2045c8(0x206)]-_0x4c7e33[_0x2045c8(0x206)]),_0x502423(_0x4d00f1,_0x499578),{'nextDocumentData':_0xbfe99d,'nextMetadata':_0x1cd560,'cursorOffset':_0x39654f+0x1};}function _0x28a836(_0x3e21dc,_0x513bf2,_0x482136){const _0x196b9a=_0x260969;var _0x583471;((_0x583471=_0x3e21dc[_0x196b9a(0x1c2)])==null?[]:_0x583471)[_0x196b9a(0x1d6)](_0x1216cf=>_0x1216cf[_0x196b9a(0x206)]>_0x513bf2&&_0x1216cf[_0x196b9a(0x206)]<_0x482136)[_0x196b9a(0x1fc)](_0x5ed9bf=>{const _0x21a083=_0x196b9a;var _0x4108b4;let _0x15d1f4={...(_0x4108b4=_0x5ed9bf[_0x21a083(0x19b)])==null?{}:_0x4108b4};delete _0x15d1f4[_0x21a083(0x196)],delete _0x15d1f4[_0x21a083(0x1e8)],_0x5ed9bf[_0x21a083(0x19b)]=_0x15d1f4;});}function _0x20c4c0(_0x215aac,_0x289fee){const _0x1d411b=_0x260969;return _0x215aac==null||_0x289fee==null||_0x215aac===_0x289fee?null:{'startOffset':Math[_0x1d411b(0x1f6)](_0x215aac,_0x289fee),'endOffset':Math[_0x1d411b(0x17a)](_0x215aac,_0x289fee)};}function _0x583b8c(_0x12cd81){const _0x5244cb=_0x260969;return{'nextDocumentData':_0x4eada5(_0x12cd81[_0x5244cb(0x1b4)]),'nextMetadata':_0x3e535c(_0x12cd81[_0x5244cb(0x193)],_0x12cd81[_0x5244cb(0x1c9)],_0x12cd81['config']),'cursorOffset':0x0};}function _0x44e576(_0x33496b){const _0x57abf6=_0x260969;var _0x3c7578,_0x41f252;let _0xef273f=_0x4eada5(_0x33496b['documentData']),_0x43557c=_0x50740c(_0xef273f),_0x29fc48=_0x21b7ee(_0x43557c,_0x33496b[_0x57abf6(0x1d4)]);if(!_0x29fc48)return null;let _0x26ad55=_0x4c6776(_0x43557c,_0x29fc48),_0x1170f7=_0x26ad55[_0x26ad55[_0x57abf6(0x209)]-0x1];if(!_0x1170f7||!_0xcea17a(_0x43557c,_0x29fc48,_0x1170f7)||_0x33496b['cursorOffset']<_0x1170f7[_0x57abf6(0x206)])return null;let _0x1a0f21=_0x3f0207(_0x43557c,_0x29fc48,_0x1170f7);if(_0x1a0f21>=_0x29fc48['endIndex'])return null;_0x43557c[_0x57abf6(0x17f)]=[_0x43557c['dataStream'][_0x57abf6(0x1f7)](0x0,_0x1a0f21),_0x3e9b19['DataStreamTreeTokenType'][_0x57abf6(0x1b0)],_0x43557c[_0x57abf6(0x17f)][_0x57abf6(0x1f7)](_0x1a0f21,_0x29fc48[_0x57abf6(0x1ad)]),_0x43557c[_0x57abf6(0x17f)][_0x57abf6(0x1f7)](_0x29fc48['endIndex']+0x1)]['join'](''),_0x1801cc(_0x43557c[_0x57abf6(0x1c2)],_0x1a0f21,_0x29fc48[_0x57abf6(0x1ad)],0x1),_0x1801cc(_0x43557c[_0x57abf6(0x1bb)],_0x1a0f21,_0x29fc48[_0x57abf6(0x1ad)],0x1),_0x1801cc(_0x43557c['customBlocks'],_0x1a0f21,_0x29fc48[_0x57abf6(0x1ad)],0x1),_0x34d74a(_0x43557c['textRuns'],_0x1a0f21,_0x29fc48[_0x57abf6(0x1ad)],0x1),_0x508106(_0x43557c[_0x57abf6(0x176)],_0x1a0f21,_0x29fc48['endIndex'],0x1),_0x508106(_0x43557c[_0x57abf6(0x171)],_0x1a0f21,_0x29fc48[_0x57abf6(0x1ad)],0x1),_0x508106(_0x43557c[_0x57abf6(0x1a7)],_0x1a0f21,_0x29fc48['endIndex'],0x1),(_0x3c7578=_0x43557c[_0x57abf6(0x1f5)])==null||_0x3c7578['forEach'](_0x8094f3=>{const _0x577592=_0x57abf6;_0x8094f3===_0x29fc48||_0x8094f3[_0x577592(0x1c9)]===_0x29fc48['blockId']?_0x8094f3[_0x577592(0x1ad)]=_0x1a0f21:_0x8094f3[_0x577592(0x206)]>=_0x1a0f21&&_0x8094f3[_0x577592(0x206)]<_0x29fc48[_0x577592(0x1ad)]&&(_0x8094f3['startIndex']+=0x1,_0x8094f3['endIndex']+=0x1);});let _0x2d0715=_0x4c6776(_0x43557c,{..._0x29fc48,'endIndex':_0x1a0f21});_0x2d0715['forEach']((_0x5f064b,_0x261cfd)=>{const _0x59d88d=_0x57abf6;var _0x5a5a07;_0x5f064b[_0x59d88d(0x19b)]={...(_0x5a5a07=_0x5f064b[_0x59d88d(0x19b)])==null?{}:_0x5a5a07,..._0x200b11(_0x261cfd===0x0,_0x261cfd===_0x2d0715[_0x59d88d(0x209)]-0x1)};});let _0x12784d=(_0x41f252=_0x43557c['paragraphs'])==null?void 0x0:_0x41f252[_0x57abf6(0x1b2)](_0x19c110=>_0x19c110[_0x57abf6(0x206)]===_0x1a0f21+0x1);return _0x12784d&&(_0x12784d[_0x57abf6(0x19b)]=_0x447f02(_0x12784d[_0x57abf6(0x19b)])),{'nextDocumentData':_0xef273f,'cursorOffset':_0x1a0f21+0x1};}function _0x429fde(_0x17cf33){const _0x44d484=_0x260969;let _0x3a7e75=_0x4eada5(_0x17cf33[_0x44d484(0x1b4)]),_0x5ded8=_0x50740c(_0x3a7e75),_0x4da982=_0x21b7ee(_0x5ded8,_0x17cf33[_0x44d484(0x1d4)]);return _0x4da982&&_0xd27512(_0x3a7e75,_0x5ded8,_0x4da982,_0x17cf33[_0x44d484(0x1d4)],_0x17cf33[_0x44d484(0x1be)])||null;}function _0xd27512(_0x5b48e0,_0x44e9b9,_0x1988c9,_0x1d2dc0,_0x506ae3){const _0x2a634f=_0x260969;let _0x37fd92=_0x5df1a2(_0x44e9b9,_0x1988c9,_0x1d2dc0,_0x506ae3);if(!_0x37fd92)return null;let _0xcdcb5c=_0x37fd92['endTokenOffset']-0x1;return _0xae846(_0x44e9b9,_0x37fd92[_0x2a634f(0x204)]['startIndex'],_0x37fd92[_0x2a634f(0x204)][_0x2a634f(0x206)]+0x1),{'nextDocumentData':_0x5b48e0,'cursorOffset':_0xcdcb5c};}function _0x19dc47(_0x2de648,_0x23d5f4){const _0x326df3=_0x260969;var _0x4868ac;return _0x2de648==null||(_0x4868ac=_0x2de648[_0x326df3(0x1f5)])==null?void 0x0:_0x4868ac[_0x326df3(0x1b2)](_0x1b93e0=>_0x1b93e0[_0x326df3(0x1d5)]===_0x3e9b19[_0x326df3(0x19d)][_0x326df3(0x218)]&&_0x1b93e0[_0x326df3(0x206)]<=_0x23d5f4&&_0x23d5f4<=_0x1b93e0[_0x326df3(0x1ad)]);}function _0xdc47cf(_0x15a92a){const _0xf2578b=_0x260969;var _0x196053;let _0x58cb8=_0x15a92a[_0xf2578b(0x1b4)]['body'];if(!_0x58cb8)return!0x1;let _0x18a1bd=_0x15a92a[_0xf2578b(0x212)]===_0xf2578b(0x1f2)?_0x15a92a[_0xf2578b(0x1d4)]-0x1:_0x15a92a[_0xf2578b(0x1d4)],_0x1dbaef=_0x15a92a['direction']===_0xf2578b(0x1d3)?_0x15a92a[_0xf2578b(0x1d4)]+0x1:_0x18a1bd;return((_0x196053=_0x58cb8[_0xf2578b(0x1f5)])==null?[]:_0x196053)['some'](_0x2fb02f=>_0x2fb02f[_0xf2578b(0x1d5)]===_0x3e9b19[_0xf2578b(0x19d)]['CODE']?_0x18a1bd===_0x2fb02f['startIndex']||_0x18a1bd===_0x2fb02f['endIndex']||_0x1dbaef===_0x2fb02f[_0xf2578b(0x206)]||_0x1dbaef===_0x2fb02f[_0xf2578b(0x1ad)]:!0x1);}function _0x21b7ee(_0x56b15,_0x260388){const _0x11e0f8=_0x260969;var _0x50c70d;return(_0x50c70d=_0x56b15[_0x11e0f8(0x1f5)])==null?void 0x0:_0x50c70d[_0x11e0f8(0x1b2)](_0x1add37=>{const _0x1f9121=_0x11e0f8;let _0x265102=_0x62d87d(_0x56b15,_0x1add37);return _0x1add37['blockType']===_0x3e9b19[_0x1f9121(0x19d)][_0x1f9121(0x218)]&&_0x1add37[_0x1f9121(0x206)]<=_0x260388&&_0x260388<=_0x265102+0x2;});}function _0x200b11(_0x5bfa09,_0x3eeefc,_0x57516d=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x5bfa09&&_0x57516d?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':_0x450e31,'fs':0xc}};}function _0x1956a7(_0x2a43ab,_0x100779,_0x200895,_0x3604cd=!0x1){const _0x1fb31b=_0x260969;var _0x93c872;let _0x50d843=((_0x93c872=_0x2a43ab['paragraphs'])==null?[]:_0x93c872)[_0x1fb31b(0x1d6)](_0x263fc2=>_0x263fc2['startIndex']>_0x100779&&_0x263fc2['startIndex']<_0x200895);_0x50d843[_0x1fb31b(0x1fc)]((_0x3c4180,_0x47ed11)=>{const _0x4ffdc6=_0x1fb31b;var _0x3acc07;_0x3c4180[_0x4ffdc6(0x19b)]={...(_0x3acc07=_0x3c4180['paragraphStyle'])==null?{}:_0x3acc07,..._0x200b11(_0x47ed11===0x0,_0x47ed11===_0x50d843[_0x4ffdc6(0x209)]-0x1,_0x3604cd)};});}function _0x447f02(_0x4b9cfd){const _0x278ce7=_0x260969;var _0x581515,_0x52faa2;let _0x221ab1={..._0x4b9cfd==null?{}:_0x4b9cfd};return delete _0x221ab1[_0x278ce7(0x199)],delete _0x221ab1[_0x278ce7(0x191)],delete _0x221ab1[_0x278ce7(0x196)],delete _0x221ab1[_0x278ce7(0x1e8)],((_0x581515=_0x221ab1[_0x278ce7(0x1f9)])==null?void 0x0:_0x581515['ff'])===_0x450e31&&((_0x52faa2=_0x221ab1[_0x278ce7(0x1f9)])==null?void 0x0:_0x52faa2['fs'])===0xc&&delete _0x221ab1[_0x278ce7(0x1f9)],_0x221ab1;}function _0x4c6776(_0x36341c,_0x24cbb2){const _0x5da224=_0x260969;var _0x13c0e4;let _0x22ad38=_0x62d87d(_0x36341c,_0x24cbb2);return((_0x13c0e4=_0x36341c[_0x5da224(0x1c2)])==null?[]:_0x13c0e4)[_0x5da224(0x1d6)](_0xabd5c0=>_0xabd5c0['startIndex']>_0x24cbb2[_0x5da224(0x206)]&&_0xabd5c0[_0x5da224(0x206)]<_0x22ad38);}function _0xcea17a(_0x1a6580,_0x190635,_0x3ad7e9){const _0x14b642=_0x260969;let _0x5da435=_0x3f0207(_0x1a6580,_0x190635,_0x3ad7e9),_0x3bc9fa=_0x1a6580[_0x14b642(0x17f)]['slice'](_0x5da435,_0x3ad7e9[_0x14b642(0x206)]);return Array[_0x14b642(0x1a1)](_0x3bc9fa)['every'](_0x1fa7cb=>_0x1fa7cb===_0x3e9b19[_0x14b642(0x21a)][_0x14b642(0x1b8)]||_0x1fa7cb===_0x3e9b19[_0x14b642(0x21a)][_0x14b642(0x1b0)]);}function _0x4eada5(_0x427c36){const _0x271205=_0x260969;return _0x3e9b19[_0x271205(0x195)][_0x271205(0x1ba)](_0x427c36);}function _0x50740c(_0x156318){if(!_0x156318['body'])throw Error('Document\x20body\x20is\x20required');return _0x156318['body'];}function _0x52dba1(_0x2b504a,_0x14f029,_0x118c01){const _0x168193=_0x260969;if(_0x14f029==null||_0x118c01==null){let _0xe0e85f=_0x3d27fe(_0x2b504a);return{'startOffset':_0xe0e85f,'endOffset':_0xe0e85f};}let _0x4199d0=Math[_0x168193(0x1f6)](_0x14f029,_0x118c01),_0x49f4a6=Math[_0x168193(0x17a)](_0x14f029,_0x118c01);if(_0x4199d0===_0x49f4a6){let _0x3d5623=_0x54cf5e(_0x2b504a,_0x4199d0);return{'startOffset':_0x3d5623,'endOffset':_0x3d5623};}return _0x1380b8(_0x2b504a,_0x4199d0,_0x49f4a6);}function _0x54cf5e(_0x1fd25b,_0x5bafa7){const _0x30f396=_0x260969;return _0x5bafa7===0x0&&_0x1fd25b['dataStream'][0x0]===_0x3e9b19['DataStreamTreeTokenType'][_0x30f396(0x16f)]?0x1:_0x5bafa7;}function _0x3d27fe(_0x216819){const _0x4dc973=_0x260969;return _0x216819['dataStream']['endsWith'](_0x3e9b19['DataStreamTreeTokenType'][_0x4dc973(0x1a9)])?Math[_0x4dc973(0x17a)](0x0,_0x216819[_0x4dc973(0x17f)]['length']-0x1):_0x216819['dataStream']['length'];}function _0x545dd2(_0x4eef03,_0x32bbed,_0x59d1f0){const _0x17d122=_0x260969;var _0x4f784f;let _0x3836d0=Math[_0x17d122(0x1f6)](_0x32bbed,_0x59d1f0),_0x2e286d=Math[_0x17d122(0x17a)](_0x32bbed,_0x59d1f0);return!!((_0x4f784f=_0x4eef03[_0x17d122(0x176)])!=null&&_0x4f784f[_0x17d122(0x1b3)](_0x424f5d=>_0x3836d0>_0x424f5d[_0x17d122(0x206)]&&_0x3836d0<_0x424f5d[_0x17d122(0x1ad)]||_0x2e286d>_0x424f5d[_0x17d122(0x206)]&&_0x2e286d<_0x424f5d['endIndex']||_0x3836d0<=_0x424f5d['startIndex']&&_0x2e286d>=_0x424f5d[_0x17d122(0x1ad)]));}function _0x1380b8(_0x1cc4bb,_0x5eaf44,_0x34e6ba){const _0x22c80a=_0x260969;var _0x187256,_0x11820a;let _0x4eb334=[...(_0x187256=_0x1cc4bb[_0x22c80a(0x1c2)])==null?[]:_0x187256][_0x22c80a(0x1db)]((_0x61a0ac,_0x90b34e)=>_0x61a0ac[_0x22c80a(0x206)]-_0x90b34e[_0x22c80a(0x206)]),_0x41156d=_0x4eb334[_0x22c80a(0x1b2)]((_0x35d59c,_0x212e3d)=>(_0x212e3d===0x0?0x0:_0x4eb334[_0x212e3d-0x1][_0x22c80a(0x206)]+0x1)<=_0x5eaf44&&_0x5eaf44<=_0x35d59c['startIndex']),_0x3dcbe9=(_0x11820a=_0x4eb334[_0x22c80a(0x1b2)](_0x565a0a=>_0x565a0a[_0x22c80a(0x206)]>=_0x34e6ba-0x1))==null?_0x4eb334[_0x4eb334[_0x22c80a(0x209)]-0x1]:_0x11820a;return{'startOffset':_0x41156d?_0x38effe(_0x4eb334,_0x41156d):_0x5eaf44,'endOffset':_0x3dcbe9?_0x3dcbe9[_0x22c80a(0x206)]+0x1:_0x34e6ba};}function _0x38effe(_0x57971d,_0x4d519b){const _0x114a3c=_0x260969;let _0x422e9f=_0x57971d[_0x114a3c(0x1b6)](_0x4d519b);return _0x422e9f>0x0?_0x57971d[_0x422e9f-0x1][_0x114a3c(0x206)]+0x1:0x0;}function _0x3f0207(_0x44d355,_0xfd4f32,_0x49f233){const _0x3f826c=_0x260969;var _0x34d5c9;return Math['max'](_0x38effe((_0x34d5c9=_0x44d355[_0x3f826c(0x1c2)])==null?[]:_0x34d5c9,_0x49f233),_0xfd4f32[_0x3f826c(0x206)]+0x1);}function _0x62d87d(_0x390f7a,_0x4328ad){const _0x451216=_0x260969;return _0x390f7a['dataStream'][_0x4328ad['endIndex']]===_0x3e9b19['DataStreamTreeTokenType'][_0x451216(0x1b0)]?_0x4328ad['endIndex']:_0x390f7a['dataStream'][_0x4328ad[_0x451216(0x1ad)]+0x1]===_0x3e9b19[_0x451216(0x21a)][_0x451216(0x1b0)]?_0x4328ad[_0x451216(0x1ad)]+0x1:_0x4328ad['endIndex'];}function _0x5df1a2(_0x31a3cb,_0x1b7cd1,_0x254f8f,_0x128722){const _0xd7d0e4=_0x260969;var _0x17c1ac,_0x26119d;let _0xd2363d=_0x62d87d(_0x31a3cb,_0x1b7cd1),_0x4e3f13=((_0x17c1ac=_0x31a3cb['paragraphs'])==null?[]:_0x17c1ac)['find'](_0x238d21=>_0x238d21[_0xd7d0e4(0x206)]===_0xd2363d+0x1);if(!_0x4e3f13||_0x128722!=null&&_0x4e3f13[_0xd7d0e4(0x206)]!==_0x128722||_0x254f8f<_0xd2363d||_0x254f8f>_0x4e3f13['startIndex']+0x1||_0x31a3cb[_0xd7d0e4(0x17f)][_0x4e3f13[_0xd7d0e4(0x206)]]!==_0x3e9b19[_0xd7d0e4(0x21a)][_0xd7d0e4(0x16f)])return null;let _0xdafab7=_0x38effe((_0x26119d=_0x31a3cb[_0xd7d0e4(0x1c2)])==null?[]:_0x26119d,_0x4e3f13),_0x343e32=_0x31a3cb[_0xd7d0e4(0x17f)][_0xd7d0e4(0x1f7)](_0xdafab7,_0x4e3f13[_0xd7d0e4(0x206)]);return Array[_0xd7d0e4(0x1a1)](_0x343e32)[_0xd7d0e4(0x186)](_0x5a6b79=>_0x5a6b79===_0x3e9b19[_0xd7d0e4(0x21a)][_0xd7d0e4(0x1b0)])?{'paragraph':_0x4e3f13,'endTokenOffset':_0xd2363d}:null;}function _0x502423(_0x29de7f,_0xee641f){const _0x2bfa2b=_0x260969;var _0x4b5158;let _0x2c0450=_0x62d87d(_0x29de7f,_0xee641f),_0x4ac482=_0x29de7f[_0x2bfa2b(0x17f)][_0x2c0450+0x1];_0x4ac482!==_0x3e9b19[_0x2bfa2b(0x21a)][_0x2bfa2b(0x1a9)]&&_0x4ac482!==void 0x0||_0x5ab5d0(_0x29de7f,_0x2c0450+0x1,_0x3e9b19[_0x2bfa2b(0x21a)][_0x2bfa2b(0x16f)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,_0x3e9b19[_0x2bfa2b(0x1fd)])(new Set((_0x4b5158=_0x29de7f[_0x2bfa2b(0x1c2)])==null?void 0x0:_0x4b5158[_0x2bfa2b(0x1ff)](_0xf3e6a6=>_0xf3e6a6[_0x2bfa2b(0x1e0)])))}]});}function _0x5ab5d0(_0x53463d,_0x128e3e,_0x3046c4,_0x2db8c9={}){const _0x4a5054=_0x260969;var _0x529f78,_0x45c326;if(_0x3046c4){if(_0x53463d['dataStream']=''+_0x53463d[_0x4a5054(0x17f)][_0x4a5054(0x1f7)](0x0,_0x128e3e)+_0x3046c4+_0x53463d[_0x4a5054(0x17f)]['slice'](_0x128e3e),_0x3a0b58(_0x53463d,_0x128e3e,_0x3046c4[_0x4a5054(0x209)]),(_0x529f78=_0x2db8c9['paragraphs'])!=null&&_0x529f78[_0x4a5054(0x209)]){var _0x11d211;_0x53463d[_0x4a5054(0x1c2)]=[...(_0x11d211=_0x53463d['paragraphs'])==null?[]:_0x11d211,..._0x2db8c9[_0x4a5054(0x1c2)]['map'](_0x301b59=>({..._0x301b59,'startIndex':_0x301b59[_0x4a5054(0x206)]+_0x128e3e}))]['sort']((_0x309f16,_0x15f0c3)=>_0x309f16[_0x4a5054(0x206)]-_0x15f0c3[_0x4a5054(0x206)]);}if((_0x45c326=_0x2db8c9[_0x4a5054(0x1f5)])!=null&&_0x45c326['length']){var _0x377345;_0x53463d['blockRanges']=[...(_0x377345=_0x53463d[_0x4a5054(0x1f5)])==null?[]:_0x377345,..._0x2db8c9[_0x4a5054(0x1f5)][_0x4a5054(0x1ff)](_0x376128=>({..._0x376128,'startIndex':_0x376128[_0x4a5054(0x206)]+_0x128e3e,'endIndex':_0x376128['endIndex']+_0x128e3e}))][_0x4a5054(0x1db)]((_0xec438,_0x1b1e32)=>_0xec438[_0x4a5054(0x206)]-_0x1b1e32[_0x4a5054(0x206)]);}}}function _0xae846(_0x3a4377,_0x5e6c8d,_0x546ad6){const _0x5c2cf9=_0x260969;let _0x277136=_0x546ad6-_0x5e6c8d;_0x3a4377[_0x5c2cf9(0x17f)]=''+_0x3a4377[_0x5c2cf9(0x17f)][_0x5c2cf9(0x1f7)](0x0,_0x5e6c8d)+_0x3a4377[_0x5c2cf9(0x17f)]['slice'](_0x546ad6),_0x478ee2(_0x3a4377,_0x5e6c8d,_0x277136);}function _0x3a0b58(_0x321c9c,_0x209701,_0x28fb2d){const _0x286dab=_0x260969;_0x321c9c['paragraphs']=_0x446c59(_0x321c9c['paragraphs'],_0x209701,_0x28fb2d),_0x321c9c['sectionBreaks']=_0x446c59(_0x321c9c[_0x286dab(0x1bb)],_0x209701,_0x28fb2d),_0x321c9c['customBlocks']=_0x446c59(_0x321c9c[_0x286dab(0x1ec)],_0x209701,_0x28fb2d),_0x321c9c[_0x286dab(0x1c3)]=_0x48fbff(_0x321c9c[_0x286dab(0x1c3)],_0x209701,_0x28fb2d),_0x321c9c[_0x286dab(0x176)]=_0x56e9e6(_0x321c9c['tables'],_0x209701,_0x28fb2d),_0x321c9c['customRanges']=_0x56e9e6(_0x321c9c[_0x286dab(0x171)],_0x209701,_0x28fb2d),_0x321c9c[_0x286dab(0x1a7)]=_0x56e9e6(_0x321c9c['customDecorations'],_0x209701,_0x28fb2d),_0x321c9c[_0x286dab(0x1f5)]=_0x56e9e6(_0x321c9c['blockRanges'],_0x209701,_0x28fb2d);}function _0x478ee2(_0x47cc60,_0xdd9d9a,_0x4da57a){const _0x9eba6c=_0x260969;var _0x39ae57,_0x3cd111;_0x47cc60['paragraphs']=_0x15f5ca(_0x47cc60[_0x9eba6c(0x1c2)],_0xdd9d9a,_0x4da57a),_0x47cc60[_0x9eba6c(0x1bb)]=_0x15f5ca(_0x47cc60[_0x9eba6c(0x1bb)],_0xdd9d9a,_0x4da57a),_0x47cc60[_0x9eba6c(0x1ec)]=_0x15f5ca(_0x47cc60[_0x9eba6c(0x1ec)],_0xdd9d9a,_0x4da57a),_0x47cc60[_0x9eba6c(0x1c3)]=(_0x39ae57=_0x232157((_0x3cd111=_0x47cc60['textRuns'])==null?void 0x0:_0x3cd111[_0x9eba6c(0x1ff)](_0x5109ee=>({..._0x5109ee,'startIndex':_0x5109ee['st'],'endIndex':_0x5109ee['ed']})),_0xdd9d9a,_0x4da57a))==null?void 0x0:_0x39ae57[_0x9eba6c(0x1ff)](_0xfb9312=>{let {startIndex:_0x7f67,endIndex:_0x4feac6,..._0xe4354e}=_0xfb9312;return{..._0xe4354e,'st':_0x7f67,'ed':_0x4feac6};}),_0x47cc60[_0x9eba6c(0x176)]=_0x232157(_0x47cc60[_0x9eba6c(0x176)],_0xdd9d9a,_0x4da57a),_0x47cc60[_0x9eba6c(0x171)]=_0x232157(_0x47cc60[_0x9eba6c(0x171)],_0xdd9d9a,_0x4da57a),_0x47cc60[_0x9eba6c(0x1a7)]=_0x232157(_0x47cc60[_0x9eba6c(0x1a7)],_0xdd9d9a,_0x4da57a),_0x47cc60[_0x9eba6c(0x1f5)]=_0x232157(_0x47cc60['blockRanges'],_0xdd9d9a,_0x4da57a);}function _0x446c59(_0x1e71ae,_0x513553,_0x1493b2){const _0x15f321=_0x260969;return _0x1e71ae==null?void 0x0:_0x1e71ae[_0x15f321(0x1ff)](_0x58e447=>_0x58e447['startIndex']>=_0x513553?{..._0x58e447,'startIndex':_0x58e447[_0x15f321(0x206)]+_0x1493b2}:_0x58e447);}function _0x15f5ca(_0x3f0757,_0x391b1f,_0x4caf05){const _0x119890=_0x260969;let _0x147bbf=_0x391b1f+_0x4caf05;return _0x3f0757==null?void 0x0:_0x3f0757[_0x119890(0x1ff)](_0x51ca4c=>_0x51ca4c[_0x119890(0x206)]>=_0x391b1f&&_0x51ca4c['startIndex']<_0x147bbf?null:_0x51ca4c[_0x119890(0x206)]>=_0x147bbf?{..._0x51ca4c,'startIndex':_0x51ca4c[_0x119890(0x206)]-_0x4caf05}:_0x51ca4c)[_0x119890(0x1d6)](_0xbb4d0=>_0xbb4d0!=null);}function _0x48fbff(_0x43cad2,_0xb1fdc1,_0x15e3a5){const _0x315050=_0x260969;return _0x43cad2==null?void 0x0:_0x43cad2[_0x315050(0x1ff)](_0x9f3304=>_0x9f3304['st']>=_0xb1fdc1?{..._0x9f3304,'st':_0x9f3304['st']+_0x15e3a5,'ed':_0x9f3304['ed']+_0x15e3a5}:_0x9f3304['ed']>_0xb1fdc1?{..._0x9f3304,'ed':_0x9f3304['ed']+_0x15e3a5}:_0x9f3304);}function _0x56e9e6(_0x21c552,_0x116ac7,_0x406d3a){const _0x187961=_0x260969;return _0x21c552==null?void 0x0:_0x21c552[_0x187961(0x1ff)](_0x62d4f2=>_0x62d4f2['startIndex']>=_0x116ac7?{..._0x62d4f2,'startIndex':_0x62d4f2['startIndex']+_0x406d3a,'endIndex':_0x62d4f2[_0x187961(0x1ad)]+_0x406d3a}:_0x62d4f2[_0x187961(0x1ad)]>=_0x116ac7?{..._0x62d4f2,'endIndex':_0x62d4f2[_0x187961(0x1ad)]+_0x406d3a}:_0x62d4f2);}function _0x232157(_0x546d4a,_0x4e92d6,_0x216a6b){const _0x4c7eb0=_0x260969;let _0x298446=_0x4e92d6+_0x216a6b;return _0x546d4a==null?void 0x0:_0x546d4a[_0x4c7eb0(0x1ff)](_0x99c56=>_0x99c56[_0x4c7eb0(0x206)]>=_0x4e92d6&&_0x99c56[_0x4c7eb0(0x1ad)]<_0x298446?null:_0x99c56['startIndex']>=_0x298446?{..._0x99c56,'startIndex':_0x99c56['startIndex']-_0x216a6b,'endIndex':_0x99c56[_0x4c7eb0(0x1ad)]-_0x216a6b}:_0x99c56[_0x4c7eb0(0x1ad)]>=_0x4e92d6?{..._0x99c56,'startIndex':_0x99c56[_0x4c7eb0(0x206)]<_0x4e92d6?_0x99c56['startIndex']:_0x4e92d6,'endIndex':Math[_0x4c7eb0(0x17a)](_0x4e92d6,_0x99c56[_0x4c7eb0(0x1ad)]-_0x216a6b)}:_0x99c56)[_0x4c7eb0(0x1d6)](_0x5921ba=>_0x5921ba!=null);}function _0x1801cc(_0x1811ef,_0x434942,_0x3f0d9d,_0x449a89){const _0x58403b=_0x260969;_0x1811ef==null||_0x1811ef[_0x58403b(0x1fc)](_0x41fee0=>{const _0x41b811=_0x58403b;_0x41fee0[_0x41b811(0x206)]>=_0x434942&&_0x41fee0[_0x41b811(0x206)]<_0x3f0d9d&&(_0x41fee0[_0x41b811(0x206)]+=_0x449a89);});}function _0x34d74a(_0x11cf36,_0x5adbb1,_0x290133,_0x4621d0){const _0x38bc2f=_0x260969;_0x11cf36==null||_0x11cf36[_0x38bc2f(0x1fc)](_0x378cbf=>{_0x378cbf['st']>=_0x5adbb1&&_0x378cbf['st']<_0x290133?(_0x378cbf['st']+=_0x4621d0,_0x378cbf['ed']+=_0x4621d0):_0x378cbf['ed']>_0x5adbb1&&_0x378cbf['ed']<_0x290133&&(_0x378cbf['ed']+=_0x4621d0);});}function _0x508106(_0x5db8de,_0xb02993,_0x470fab,_0x5dbbc9){const _0x43f646=_0x260969;_0x5db8de==null||_0x5db8de[_0x43f646(0x1fc)](_0xb55ad7=>{const _0x3edc95=_0x43f646;_0xb55ad7[_0x3edc95(0x206)]>=_0xb02993&&_0xb55ad7['startIndex']<_0x470fab?(_0xb55ad7[_0x3edc95(0x206)]+=_0x5dbbc9,_0xb55ad7['endIndex']+=_0x5dbbc9):_0xb55ad7[_0x3edc95(0x1ad)]>_0xb02993&&_0xb55ad7[_0x3edc95(0x1ad)]<_0x470fab&&(_0xb55ad7[_0x3edc95(0x1ad)]+=_0x5dbbc9);});}function _0x1e5389(_0x281ea5){'@babel/helpers - typeof';const _0x1fc62c=_0x260969;return _0x1e5389=typeof Symbol==_0x1fc62c(0x1da)&&typeof Symbol['iterator']=='symbol'?function(_0x19c46a){return typeof _0x19c46a;}:function(_0x585e50){const _0xbfcd4=_0x1fc62c;return _0x585e50&&typeof Symbol=='function'&&_0x585e50[_0xbfcd4(0x1d1)]===Symbol&&_0x585e50!==Symbol[_0xbfcd4(0x214)]?'symbol':typeof _0x585e50;},_0x1e5389(_0x281ea5);}function _0x50223e(_0x78574e,_0x29157e){const _0x10ceac=_0x260969;if(_0x1e5389(_0x78574e)!=_0x10ceac(0x1bd)||!_0x78574e)return _0x78574e;var _0x355f6f=_0x78574e[Symbol['toPrimitive']];if(_0x355f6f!==void 0x0){var _0x2f5ac2=_0x355f6f[_0x10ceac(0x1d2)](_0x78574e,_0x29157e||_0x10ceac(0x1f0));if(_0x1e5389(_0x2f5ac2)!=_0x10ceac(0x1bd))return _0x2f5ac2;throw TypeError(_0x10ceac(0x1cf));}return(_0x29157e===_0x10ceac(0x211)?String:Number)(_0x78574e);}function _0x30ec75(_0x54ceff){const _0x199d97=_0x260969;var _0xa7eca9=_0x50223e(_0x54ceff,_0x199d97(0x211));return _0x1e5389(_0xa7eca9)==_0x199d97(0x21d)?_0xa7eca9:_0xa7eca9+'';}function _0x414d1d(_0x280145,_0x4de262,_0x511cd5){const _0x22ff3c=_0x260969;return(_0x4de262=_0x30ec75(_0x4de262))in _0x280145?Object[_0x22ff3c(0x216)](_0x280145,_0x4de262,{'value':_0x511cd5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x280145[_0x4de262]=_0x511cd5,_0x280145;}var _0x3c3d32=class extends _0x3e9b19[_0x260969(0x1df)]{constructor(..._0x36c1aa){const _0x1780ff=_0x260969;super(..._0x36c1aa),_0x414d1d(this,'_resources',new Map()),_0x414d1d(this,_0x1780ff(0x17e),new _0x56a0f1[(_0x1780ff(0x1ef))]()),_0x414d1d(this,_0x1780ff(0x18c),this['_change$'][_0x1780ff(0x16c)]());}['getCodeConfig'](_0x316930,_0x56c34d){return _0x5d2e42(this['_resources']['get'](_0x316930))['codes'][_0x56c34d];}['setCodeConfig'](_0x384d,_0x57ce55,_0x5387f7){const _0x4e4e04=_0x260969;this[_0x4e4e04(0x17c)](_0x384d,_0x57ce55,_0x3e535c(this[_0x4e4e04(0x1f3)]['get'](_0x384d),_0x57ce55,_0x5387f7));}[_0x260969(0x1f1)](_0x29ec83,_0x1d7ba2){const _0x285f43=_0x260969;this[_0x285f43(0x17c)](_0x29ec83,_0x1d7ba2,_0x2867f5(this['_resources'][_0x285f43(0x17d)](_0x29ec83),_0x1d7ba2));}[_0x260969(0x17b)](_0x41f4d7){const _0x3e4640=_0x260969;return _0x5d2e42(this[_0x3e4640(0x1f3)][_0x3e4640(0x17d)](_0x41f4d7));}[_0x260969(0x1d7)](_0x531541,_0x52a262){const _0x40d6a9=_0x260969;this[_0x40d6a9(0x1f3)][_0x40d6a9(0x1bf)](_0x531541,_0x5d2e42(_0x52a262)),this['_change$']['next']({'unitId':_0x531541});}[_0x260969(0x19a)](_0x5eab9b){const _0x7e8de7=_0x260969;this[_0x7e8de7(0x1f3)]['delete'](_0x5eab9b),this['_change$'][_0x7e8de7(0x1e1)]({'unitId':_0x5eab9b});}[_0x260969(0x1af)](){const _0x79350e=_0x260969;super[_0x79350e(0x1af)](),this[_0x79350e(0x1f3)][_0x79350e(0x189)](),this['_change$'][_0x79350e(0x1a6)]();}['_setResource'](_0x236829,_0x43591a,_0x46941e){const _0x4b5bcd=_0x260969;this[_0x4b5bcd(0x1f3)][_0x4b5bcd(0x1bf)](_0x236829,_0x46941e),this[_0x4b5bcd(0x17e)][_0x4b5bcd(0x1e1)]({'unitId':_0x236829,'blockId':_0x43591a});}};let _0x3743fc={'id':_0x260969(0x18a),'type':_0x3e9b19[_0x260969(0x187)][_0x260969(0x177)],'handler':_0x42db78=>{const _0x245db2=_0x260969;let _0x2a4c83=_0x12443b(_0x42db78);if(_0x2a4c83)return _0x42db78[_0x245db2(0x17d)](_0x3e9b19['ICommandService'])[_0x245db2(0x19c)](_0x5de34b['id'],{'startOffset':_0x2a4c83['startOffset'],'endOffset':_0x2a4c83['endOffset'],'unitId':_0x2a4c83[_0x245db2(0x1e3)]});let _0x5322d8=_0x472208(_0x42db78);if(!_0x5322d8)return!0x1;let _0x2d1402=_0x5322d8[_0x245db2(0x206)]+0x1;return _0x42db78[_0x245db2(0x17d)](_0x3e9b19[_0x245db2(0x1cd)])[_0x245db2(0x19c)](_0x5de34b['id'],{'startOffset':_0x2d1402,'endOffset':_0x2d1402});}},_0x327607={'id':_0x260969(0x1ed),'type':_0x3e9b19['CommandType'][_0x260969(0x177)],'handler':()=>!0x0},_0x5de34b={'id':_0x260969(0x1d0),'type':_0x3e9b19[_0x260969(0x187)][_0x260969(0x177)],'handler':(_0x5aaeab,_0x2e43a3)=>{const _0x16bb5e=_0x260969;var _0x62b84b,_0x517560,_0x492a32;let _0x2afbeb=_0x4cf6eb(_0x5aaeab,_0x2e43a3==null?void 0x0:_0x2e43a3[_0x16bb5e(0x1e3)]);if(!_0x2afbeb)return!0x1;let _0x5b7f04=_0x950d0c(_0x5aaeab),_0x6fb817=_0x29635b({'blockId':(_0x62b84b=_0x2e43a3==null?void 0x0:_0x2e43a3[_0x16bb5e(0x1c9)])==null?(0x0,_0x3e9b19[_0x16bb5e(0x20e)])(0x6):_0x62b84b,'config':_0x2e43a3==null?void 0x0:_0x2e43a3[_0x16bb5e(0x19f)],'documentData':_0x2afbeb['previousDocumentData'],'endOffset':(_0x517560=_0x2e43a3==null?void 0x0:_0x2e43a3[_0x16bb5e(0x1ce)])==null?_0x5b7f04==null?void 0x0:_0x5b7f04[_0x16bb5e(0x1ce)]:_0x517560,'metadata':_0x2afbeb[_0x16bb5e(0x1fa)][_0x16bb5e(0x17b)](_0x2afbeb[_0x16bb5e(0x1e3)]),'startOffset':(_0x492a32=_0x2e43a3==null?void 0x0:_0x2e43a3[_0x16bb5e(0x1f4)])==null?_0x5b7f04==null?void 0x0:_0x5b7f04['startOffset']:_0x492a32}),_0x3b2035=_0x40c175(_0x2afbeb[_0x16bb5e(0x1ca)],_0x2afbeb[_0x16bb5e(0x1e3)],_0x2afbeb[_0x16bb5e(0x1b1)],_0x6fb817[_0x16bb5e(0x1b9)],_0x6fb817[_0x16bb5e(0x1d4)]);return _0x3b2035&&_0x6fb817[_0x16bb5e(0x1ac)]&&_0x2afbeb[_0x16bb5e(0x1fa)][_0x16bb5e(0x1d7)](_0x2afbeb[_0x16bb5e(0x1e3)],_0x6fb817[_0x16bb5e(0x1ac)]),_0x3b2035;}},_0x5502c3={'id':'docs-code.command.update','type':_0x3e9b19[_0x260969(0x187)][_0x260969(0x177)],'handler':(_0x561702,_0x2e0634)=>{const _0x3ec5d6=_0x260969;if(!_0x2e0634)return!0x1;let _0x307ebb=_0x4cf6eb(_0x561702,_0x2e0634[_0x3ec5d6(0x1e3)]);if(!_0x307ebb)return!0x1;let _0x3c2078=_0x583b8c({'blockId':_0x2e0634[_0x3ec5d6(0x1c9)],'config':_0x2e0634[_0x3ec5d6(0x19f)],'documentData':_0x307ebb[_0x3ec5d6(0x1b1)],'metadata':_0x307ebb[_0x3ec5d6(0x1fa)]['serialize'](_0x307ebb[_0x3ec5d6(0x1e3)])});return _0x3c2078[_0x3ec5d6(0x1ac)]&&_0x307ebb[_0x3ec5d6(0x1fa)][_0x3ec5d6(0x1d7)](_0x307ebb[_0x3ec5d6(0x1e3)],_0x3c2078['nextMetadata']),!0x0;}},_0x3dd6ba={'id':'docs-code.command.exit','type':_0x3e9b19['CommandType'][_0x260969(0x177)],'handler':(_0x4b076a,_0xbf928e)=>{const _0x3ee8ca=_0x260969;var _0x99f6c8,_0x381c47;let _0x384946=_0x4cf6eb(_0x4b076a,_0xbf928e==null?void 0x0:_0xbf928e[_0x3ee8ca(0x1e3)]);if(!_0x384946)return!0x1;let _0x48973e=(_0x99f6c8=_0xbf928e==null?void 0x0:_0xbf928e[_0x3ee8ca(0x1d4)])==null?(_0x381c47=_0x950d0c(_0x4b076a))==null?void 0x0:_0x381c47['startOffset']:_0x99f6c8;if(_0x48973e==null)return!0x1;let _0x152dad=_0x44e576({'cursorOffset':_0x48973e,'documentData':_0x384946[_0x3ee8ca(0x1b1)]});return _0x152dad?_0x40c175(_0x384946['commandService'],_0x384946[_0x3ee8ca(0x1e3)],_0x384946['previousDocumentData'],_0x152dad[_0x3ee8ca(0x1b9)],_0x152dad['cursorOffset']):!0x1;}},_0x4efc80={'id':_0x260969(0x18f),'type':_0x3e9b19[_0x260969(0x187)][_0x260969(0x177)],'handler':(_0x48b6d4,_0x424b6e)=>{const _0x59768b=_0x260969;var _0x5523c0,_0x184932;let _0x5ded4a=_0x4cf6eb(_0x48b6d4,_0x424b6e==null?void 0x0:_0x424b6e['unitId']);if(!_0x5ded4a)return!0x1;let _0x1cca04=(_0x5523c0=_0x424b6e==null?void 0x0:_0x424b6e[_0x59768b(0x1d4)])==null?(_0x184932=_0x950d0c(_0x48b6d4))==null?void 0x0:_0x184932[_0x59768b(0x1f4)]:_0x5523c0;if(_0x1cca04==null)return!0x1;let _0x16736f=_0x429fde({'cursorOffset':_0x1cca04,'documentData':_0x5ded4a[_0x59768b(0x1b1)],'paragraphStartIndex':_0x424b6e==null?void 0x0:_0x424b6e[_0x59768b(0x1be)]});return _0x16736f?_0x40c175(_0x5ded4a['commandService'],_0x5ded4a[_0x59768b(0x1e3)],_0x5ded4a[_0x59768b(0x1b1)],_0x16736f[_0x59768b(0x1b9)],_0x16736f[_0x59768b(0x1d4)]):!0x1;}};function _0x4cf6eb(_0x2b1d21,_0x489e5e){const _0xc49fdf=_0x260969;let _0x361643=_0x2b1d21[_0xc49fdf(0x17d)](_0x3e9b19[_0xc49fdf(0x1c7)]),_0x10836d=_0x489e5e?_0x361643['getUniverDocInstance'](_0x489e5e):_0x361643[_0xc49fdf(0x1a2)](_0x3e9b19[_0xc49fdf(0x178)][_0xc49fdf(0x1dd)]);return _0x10836d?{'commandService':_0x2b1d21['get'](_0x3e9b19[_0xc49fdf(0x1cd)]),'model':_0x2b1d21[_0xc49fdf(0x17d)](_0x3c3d32),'previousDocumentData':_0x10836d['getSnapshot'](),'unitId':_0x10836d[_0xc49fdf(0x20f)]()}:null;}function _0x950d0c(_0x35e7ae){var _0x4e17f6;return(_0x4e17f6=_0x35e7ae['get'](_0x17f9fb['DocSelectionManagerService'])['getTextRanges']())==null?void 0x0:_0x4e17f6[0x0];}function _0x12443b(_0x114367){const _0x359c2a=_0x260969;var _0x1d598b;let _0x186fe3=(_0x1d598b=_0x114367[_0x359c2a(0x17d)](_0x3e9b19[_0x359c2a(0x1c7)])['getCurrentUnitOfType'](_0x3e9b19[_0x359c2a(0x178)]['UNIVER_DOC']))==null?void 0x0:_0x1d598b[_0x359c2a(0x20f)]();try{return _0x114367[_0x359c2a(0x17d)](_0x17f9fb[_0x359c2a(0x219)])[_0x359c2a(0x202)](_0x186fe3);}catch{return null;}}function _0x472208(_0x58eb8c){const _0x194395=_0x260969;var _0x14b514,_0x5e24b7,_0xdb569;let _0x3ee20e=_0x950d0c(_0x58eb8c);if(!_0x3ee20e)return null;let _0x87a968=_0x58eb8c[_0x194395(0x17d)](_0x3e9b19[_0x194395(0x1c7)])[_0x194395(0x1a2)](_0x3e9b19[_0x194395(0x178)][_0x194395(0x1dd)]),_0x20ee7c=_0x87a968==null?void 0x0:_0x87a968[_0x194395(0x1e5)]();return _0x20ee7c?(_0x14b514=_0x3e9b19[_0x194395(0x1f8)][_0x194395(0x1e6)][_0x194395(0x1ea)](_0x3ee20e,(_0x5e24b7=_0x20ee7c['paragraphs'])==null?[]:_0x5e24b7,(_0xdb569=_0x20ee7c[_0x194395(0x17f)])==null?'':_0xdb569)[0x0])==null?null:_0x14b514:null;}function _0xbd645(_0x4c0fc2,_0x2141d2){const _0x3f826f=_0x260969;var _0x1bbb67,_0x129b1a,_0x47b1c0,_0x2723c7,_0x38aac7,_0x20a40e,_0x4b1736,_0x2e10cb,_0x32fc25,_0x4c32f0,_0x133e0a,_0x4d71d5,_0x55c127,_0x4ffd21,_0x561762,_0xf53228,_0x3c0986,_0x291214;let _0x8ac602=_0x3e9b19['JSONX'][_0x3f826f(0x192)]();return[_0x2b7800(_0x8ac602,[_0x3f826f(0x1a5),_0x3f826f(0x17f)],(_0x1bbb67=_0x4c0fc2[_0x3f826f(0x1a5)])==null?void 0x0:_0x1bbb67['dataStream'],(_0x129b1a=_0x2141d2[_0x3f826f(0x1a5)])==null?void 0x0:_0x129b1a[_0x3f826f(0x17f)]),_0x2b7800(_0x8ac602,[_0x3f826f(0x1a5),_0x3f826f(0x1c2)],(_0x47b1c0=_0x4c0fc2[_0x3f826f(0x1a5)])==null?void 0x0:_0x47b1c0[_0x3f826f(0x1c2)],(_0x2723c7=_0x2141d2[_0x3f826f(0x1a5)])==null?void 0x0:_0x2723c7[_0x3f826f(0x1c2)]),_0x2b7800(_0x8ac602,[_0x3f826f(0x1a5),_0x3f826f(0x1bb)],(_0x38aac7=_0x4c0fc2[_0x3f826f(0x1a5)])==null?void 0x0:_0x38aac7['sectionBreaks'],(_0x20a40e=_0x2141d2[_0x3f826f(0x1a5)])==null?void 0x0:_0x20a40e['sectionBreaks']),_0x2b7800(_0x8ac602,['body',_0x3f826f(0x1c3)],(_0x4b1736=_0x4c0fc2['body'])==null?void 0x0:_0x4b1736[_0x3f826f(0x1c3)],(_0x2e10cb=_0x2141d2[_0x3f826f(0x1a5)])==null?void 0x0:_0x2e10cb[_0x3f826f(0x1c3)]),_0x2b7800(_0x8ac602,[_0x3f826f(0x1a5),'customBlocks'],(_0x32fc25=_0x4c0fc2['body'])==null?void 0x0:_0x32fc25[_0x3f826f(0x1ec)],(_0x4c32f0=_0x2141d2[_0x3f826f(0x1a5)])==null?void 0x0:_0x4c32f0['customBlocks']),_0x2b7800(_0x8ac602,['body','customRanges'],(_0x133e0a=_0x4c0fc2[_0x3f826f(0x1a5)])==null?void 0x0:_0x133e0a['customRanges'],(_0x4d71d5=_0x2141d2[_0x3f826f(0x1a5)])==null?void 0x0:_0x4d71d5[_0x3f826f(0x171)]),_0x2b7800(_0x8ac602,[_0x3f826f(0x1a5),_0x3f826f(0x1a7)],(_0x55c127=_0x4c0fc2[_0x3f826f(0x1a5)])==null?void 0x0:_0x55c127[_0x3f826f(0x1a7)],(_0x4ffd21=_0x2141d2[_0x3f826f(0x1a5)])==null?void 0x0:_0x4ffd21[_0x3f826f(0x1a7)]),_0x2b7800(_0x8ac602,[_0x3f826f(0x1a5),'tables'],(_0x561762=_0x4c0fc2[_0x3f826f(0x1a5)])==null?void 0x0:_0x561762[_0x3f826f(0x176)],(_0xf53228=_0x2141d2[_0x3f826f(0x1a5)])==null?void 0x0:_0xf53228[_0x3f826f(0x176)]),_0x2b7800(_0x8ac602,[_0x3f826f(0x1a5),_0x3f826f(0x1f5)],(_0x3c0986=_0x4c0fc2[_0x3f826f(0x1a5)])==null?void 0x0:_0x3c0986[_0x3f826f(0x1f5)],(_0x291214=_0x2141d2[_0x3f826f(0x1a5)])==null?void 0x0:_0x291214[_0x3f826f(0x1f5)])][_0x3f826f(0x1d6)](Boolean)[_0x3f826f(0x210)]((_0x3f2ef1,_0x137b71)=>_0x3e9b19['JSONX'][_0x3f826f(0x201)](_0x3f2ef1,_0x137b71),null);}function _0x2b7800(_0x5b801a,_0x4a05da,_0x1bb385,_0x23e0ce){const _0x43d7e1=_0x260969;return _0x3e9b19[_0x43d7e1(0x195)][_0x43d7e1(0x180)](_0x1bb385,_0x23e0ce)?null:_0x5b801a['replaceOp'](_0x4a05da,_0x1bb385,_0x23e0ce);}function _0x40c175(_0x15a916,_0x17a590,_0x5f22eb,_0x2cb73c,_0xfcc773){const _0x19a492=_0x260969;let _0x2aec81=_0xbd645(_0x5f22eb,_0x2cb73c);return _0x2aec81?!!_0x15a916[_0x19a492(0x19c)](_0x17f9fb[_0x19a492(0x1e9)]['id'],{'unitId':_0x17a590,'actions':_0x2aec81,'textRanges':[{'startOffset':_0xfcc773,'endOffset':_0xfcc773,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}let _0x3fafc5=_0x260969(0x1d8);var _0x34cc94=_0x260969(0x194),_0x2d9f5f=_0x260969(0x1ab);let _0x5ea167={};function _0x8fc1ff(_0x45ec45,_0x182493){return function(_0x11345d,_0x3354d4){_0x182493(_0x11345d,_0x3354d4,_0x45ec45);};}function _0x325699(_0x35d52e,_0xcf35d8,_0x16ba90,_0x3cf64e){const _0x5c617c=_0x260969;var _0x2fdeb6=arguments[_0x5c617c(0x209)],_0x3ede2d=_0x2fdeb6<0x3?_0xcf35d8:_0x3cf64e===null?_0x3cf64e=Object[_0x5c617c(0x1e4)](_0xcf35d8,_0x16ba90):_0x3cf64e,_0x1db00f;if(typeof Reflect==_0x5c617c(0x1bd)&&typeof Reflect[_0x5c617c(0x1a3)]==_0x5c617c(0x1da))_0x3ede2d=Reflect[_0x5c617c(0x1a3)](_0x35d52e,_0xcf35d8,_0x16ba90,_0x3cf64e);else{for(var _0x546f24=_0x35d52e[_0x5c617c(0x209)]-0x1;_0x546f24>=0x0;_0x546f24--)(_0x1db00f=_0x35d52e[_0x546f24])&&(_0x3ede2d=(_0x2fdeb6<0x3?_0x1db00f(_0x3ede2d):_0x2fdeb6>0x3?_0x1db00f(_0xcf35d8,_0x16ba90,_0x3ede2d):_0x1db00f(_0xcf35d8,_0x16ba90))||_0x3ede2d);}return _0x2fdeb6>0x3&&_0x3ede2d&&Object[_0x5c617c(0x216)](_0xcf35d8,_0x16ba90,_0x3ede2d),_0x3ede2d;}let _0xd0eed5=class extends _0x3e9b19[_0x260969(0x1df)]{constructor(_0x1890e2,_0x4c2df0){const _0x53eb28=_0x260969;super(),this['_resourceManagerService']=_0x1890e2,this[_0x53eb28(0x1e7)]=_0x4c2df0,this[_0x53eb28(0x183)]();}[_0x260969(0x183)](){const _0x57f1eb=_0x260969;this[_0x57f1eb(0x20d)](this[_0x57f1eb(0x197)][_0x57f1eb(0x1a0)]({'pluginName':_0x3fafc5,'businesses':[_0x3e9b19[_0x57f1eb(0x178)][_0x57f1eb(0x1dd)]],'toJson':_0x269f99=>JSON[_0x57f1eb(0x172)](this[_0x57f1eb(0x1e7)]['serialize'](_0x269f99)),'parseJson':_0x527ff5=>_0x5d2e42(JSON['parse'](_0x527ff5)),'onLoad':(_0x2dfd3e,_0x8c4d35)=>this[_0x57f1eb(0x1e7)][_0x57f1eb(0x1d7)](_0x2dfd3e,_0x8c4d35),'onUnLoad':_0x499f08=>this['_docsCodeModel'][_0x57f1eb(0x19a)](_0x499f08)}));}};_0xd0eed5=_0x325699([_0x8fc1ff(0x0,_0x3e9b19[_0x260969(0x1ee)]),_0x8fc1ff(0x1,(0x0,_0x3e9b19[_0x260969(0x21b)])(_0x3c3d32))],_0xd0eed5);let _0x3aa5f3=class extends _0x3e9b19[_0x260969(0x198)]{constructor(_0x352f37=_0x5ea167,_0x2ec276,_0x3c140d,_0x4baf34){const _0x226de4=_0x260969;super(),this[_0x226de4(0x20c)]=_0x352f37,this[_0x226de4(0x1fb)]=_0x2ec276,this[_0x226de4(0x174)]=_0x3c140d,this[_0x226de4(0x207)]=_0x4baf34;let {..._0x4b2ab5}=(0x0,_0x3e9b19[_0x226de4(0x1cc)])({},_0x5ea167,this[_0x226de4(0x20c)]);this[_0x226de4(0x207)]['setConfig'](_0x226de4(0x1b5),_0x4b2ab5);}[_0x260969(0x20a)](){const _0x578636=_0x260969;this['_injector'][_0x578636(0x190)]([_0x3c3d32]),this['_injector'][_0x578636(0x190)]([_0xd0eed5]),this['_injector'][_0x578636(0x17d)](_0x3c3d32),this['_injector'][_0x578636(0x17d)](_0xd0eed5),[_0x5de34b,_0x3743fc,_0x5502c3,_0x3dd6ba,_0x4efc80,_0x327607][_0x578636(0x1fc)](_0x56f994=>this[_0x578636(0x20d)](this[_0x578636(0x174)][_0x578636(0x1b7)](_0x56f994)));}};_0x414d1d(_0x3aa5f3,_0x260969(0x203),_0x3fafc5),_0x414d1d(_0x3aa5f3,'packageName',_0x34cc94),_0x414d1d(_0x3aa5f3,_0x260969(0x184),_0x2d9f5f),_0x414d1d(_0x3aa5f3,_0x260969(0x18e),_0x3e9b19['UniverInstanceType'][_0x260969(0x1dd)]),_0x3aa5f3=_0x325699([(0x0,_0x3e9b19[_0x260969(0x16d)])(_0x4f1e27[_0x260969(0x208)],_0x17f9fb['UniverDocsPlugin']),_0x8fc1ff(0x1,(0x0,_0x3e9b19[_0x260969(0x21b)])(_0x3e9b19['Injector'])),_0x8fc1ff(0x2,_0x3e9b19['ICommandService']),_0x8fc1ff(0x3,_0x3e9b19[_0x260969(0x1c4)])],_0x3aa5f3),_0x28133a[_0x260969(0x20b)]=_0x370d70,_0x28133a[_0x260969(0x1d9)]=_0x3fafc5,_0x28133a[_0x260969(0x1e2)]=_0x4efc80,_0x28133a[_0x260969(0x1dc)]=_0x327607,_0x28133a[_0x260969(0x217)]=_0x3dd6ba,_0x28133a[_0x260969(0x1c1)]=_0x3743fc,_0x28133a['DocsCodeInsertCommand']=_0x5de34b,_0x28133a[_0x260969(0x18d)]=_0x3c3d32,_0x28133a['DocsCodeUpdateCommand']=_0x5502c3,Object[_0x260969(0x216)](_0x28133a,_0x260969(0x215),{'enumerable':!0x0,'get':function(){return _0x3aa5f3;}}),_0x28133a['buildCancelEmptyCodeParagraphActions']=_0x429fde,_0x28133a['buildExitCodeActions']=_0x44e576,_0x28133a[_0x260969(0x175)]=_0x29635b,_0x28133a[_0x260969(0x213)]=_0x583b8c,_0x28133a['findCodeRangeAtOffset']=_0x19dc47,_0x28133a[_0x260969(0x200)]=_0xdc47cf,_0x28133a['normalizeDocsCodeConfig']=_0x59e9a5;}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/docs-code",
3
- "version": "1.0.0-insiders.20260629-12f2e44",
3
+ "version": "1.0.0-insiders.20260701-0ef51b0",
4
4
  "private": false,
5
5
  "description": "Code block model integration for Univer Docs.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -61,9 +61,9 @@
61
61
  "rxjs": ">=7.0.0"
62
62
  },
63
63
  "dependencies": {
64
- "@univerjs-pro/license": "1.0.0-insiders.20260629-12f2e44",
65
- "@univerjs/core": "1.0.0-insiders.20260629-12f2e44",
66
- "@univerjs/docs": "1.0.0-insiders.20260629-12f2e44"
64
+ "@univerjs-pro/license": "1.0.0-insiders.20260701-0ef51b0",
65
+ "@univerjs/core": "1.0.0-insiders.20260701-0ef51b0",
66
+ "@univerjs/docs": "1.0.0-insiders.20260701-0ef51b0"
67
67
  },
68
68
  "devDependencies": {
69
69
  "rxjs": "7.8.2",