@univerjs-pro/docs-code 1.0.0-insiders.20260805-b15e7f3 → 1.0.0-insiders.20260808-70eefdd

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 _0x4e3b89=_0x252c;(function(_0x19f7fd,_0x2dcbfe){var _0x570642=_0x252c,_0x3a3a68=_0x19f7fd();while(!![]){try{var _0x5f179b=parseInt(_0x570642(0x8b))/0x1*(parseInt(_0x570642(0x96))/0x2)+-parseInt(_0x570642(0x85))/0x3+parseInt(_0x570642(0x80))/0x4*(-parseInt(_0x570642(0x73))/0x5)+parseInt(_0x570642(0x9b))/0x6*(-parseInt(_0x570642(0x6e))/0x7)+parseInt(_0x570642(0xab))/0x8+-parseInt(_0x570642(0xaa))/0x9*(-parseInt(_0x570642(0x83))/0xa)+parseInt(_0x570642(0x79))/0xb;if(_0x5f179b===_0x2dcbfe)break;else _0x3a3a68['push'](_0x3a3a68['shift']());}catch(_0x43fe74){_0x3a3a68['push'](_0x3a3a68['shift']());}}}(_0x2fff,0xd3080),Object[_0x4e3b89(0xa0)](exports,Symbol[_0x4e3b89(0x8d)],{'value':_0x4e3b89(0x6d)}));let e=require('@univerjs-pro/docs-code'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0xbdb675){'@babel/helpers - typeof';var _0x540dfa=_0x4e3b89;return r=typeof Symbol==_0x540dfa(0x87)&&typeof Symbol[_0x540dfa(0xbe)]==_0x540dfa(0x92)?function(_0x168268){return typeof _0x168268;}:function(_0x12f125){var _0x2400b6=_0x540dfa;return _0x12f125&&typeof Symbol==_0x2400b6(0x87)&&_0x12f125[_0x2400b6(0x82)]===Symbol&&_0x12f125!==Symbol[_0x2400b6(0x7d)]?'symbol':typeof _0x12f125;},r(_0xbdb675);}function i(_0x1d313c,_0x26d236){var _0x192164=_0x4e3b89;if(r(_0x1d313c)!=_0x192164(0x72)||!_0x1d313c)return _0x1d313c;var _0x4b4576=_0x1d313c[Symbol[_0x192164(0x9f)]];if(_0x4b4576!==void 0x0){var _0x5626ba=_0x4b4576['call'](_0x1d313c,_0x26d236||_0x192164(0x8a));if(r(_0x5626ba)!=_0x192164(0x72))return _0x5626ba;throw TypeError(_0x192164(0xb6));}return(_0x26d236===_0x192164(0x9a)?String:Number)(_0x1d313c);}function _0x2fff(){var _0x40caf8=['body','9OAMDzY','6540720SotenY','findCodeByText','Inject','_document','ICommandService','blockId','replace','getText','DocsCodeUpdateCommand','dataStream','BLOCK_START','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_injector','getId','_unitId','CODE','normalizeDocsCodeConfig','FDocument','blockType','iterator','syncExecuteCommand','DataStreamTreeTokenType','startIndex','getCodeConfig','find','Module','7KFSINZ','decorate','_blockId','generateRandomId','object','6831655HcxMiY','get','DocsCodeUnwrapCommand','DocsCodeRemoveCommand','DocsCodeModel','findCodes','22972334JKFSjG','includes','isParagraphFacade','FDocumentCode','prototype','Injector','insertCode','4dsYscp','describe','constructor','4001050yWkwqg','_getBlockRange','175797MHLLbG','some','function','endIndex','blockRanges','default','4441SxCMdP','getCodes','toStringTag','_getDocumentData','getCodeAt','DocumentBlockRangeType','PARAGRAPH','symbol','getRange','map','createInstance','42UZtfIa','updateConfig','from','SECTION_BREAK','string','6660216ePdAoT','config','text','BLOCK_END','toPrimitive','defineProperty','_getBlockRanges','extend','filter','getOwnPropertyDescriptor','save','_createFDocumentCode','DocsCodeInsertCommand','length'];_0x2fff=function(){return _0x40caf8;};return _0x2fff();}function a(_0xd16279){var _0x4cf1ec=_0x4e3b89,_0x2b31c1=i(_0xd16279,_0x4cf1ec(0x9a));return r(_0x2b31c1)=='symbol'?_0x2b31c1:_0x2b31c1+'';}function o(_0x4dfab8,_0x19ec6d,_0x581078){var _0x3e9555=_0x4e3b89;return(_0x19ec6d=a(_0x19ec6d))in _0x4dfab8?Object[_0x3e9555(0xa0)](_0x4dfab8,_0x19ec6d,{'value':_0x581078,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4dfab8[_0x19ec6d]=_0x581078,_0x4dfab8;}function s(_0x13b463,_0x38dc7c){return function(_0x2241b8,_0x43017e){_0x38dc7c(_0x2241b8,_0x43017e,_0x13b463);};}function c(_0xe6eef1,_0xc91ce2,_0x707c3c,_0x483097){var _0xb0ce76=_0x4e3b89,_0xe64e13=arguments[_0xb0ce76(0xa8)],_0x576ac1=_0xe64e13<0x3?_0xc91ce2:_0x483097===null?_0x483097=Object[_0xb0ce76(0xa4)](_0xc91ce2,_0x707c3c):_0x483097,_0x44651d;if(typeof Reflect==_0xb0ce76(0x72)&&typeof Reflect['decorate']==_0xb0ce76(0x87))_0x576ac1=Reflect[_0xb0ce76(0x6f)](_0xe6eef1,_0xc91ce2,_0x707c3c,_0x483097);else{for(var _0x5f444a=_0xe6eef1[_0xb0ce76(0xa8)]-0x1;_0x5f444a>=0x0;_0x5f444a--)(_0x44651d=_0xe6eef1[_0x5f444a])&&(_0x576ac1=(_0xe64e13<0x3?_0x44651d(_0x576ac1):_0xe64e13>0x3?_0x44651d(_0xc91ce2,_0x707c3c,_0x576ac1):_0x44651d(_0xc91ce2,_0x707c3c))||_0x576ac1);}return _0xe64e13>0x3&&_0x576ac1&&Object[_0xb0ce76(0xa0)](_0xc91ce2,_0x707c3c,_0x576ac1),_0x576ac1;}let l=class{constructor(_0x54acbb,_0x1da7c3,_0x457dca){var _0x41478e=_0x4e3b89;this['_document']=_0x54acbb,this[_0x41478e(0x70)]=_0x1da7c3,this[_0x41478e(0xb7)]=_0x457dca,o(this,'_unitId',void 0x0),this[_0x41478e(0xb9)]=this[_0x41478e(0xae)][_0x41478e(0xb8)]();}[_0x4e3b89(0xb8)](){var _0x3f08c8=_0x4e3b89;return this[_0x3f08c8(0x70)];}['getRange'](){var _0x422646=_0x4e3b89;let _0x469e33=this[_0x422646(0x84)]();return _0x469e33?{'blockId':_0x469e33[_0x422646(0xb0)],'endIndex':_0x469e33['endIndex'],'startIndex':_0x469e33[_0x422646(0xc1)]}:null;}[_0x4e3b89(0xb2)](){var _0x24790e=_0x4e3b89,_0x19743f;let _0x234b31=this[_0x24790e(0x84)](),_0x2f8a59=(_0x19743f=this[_0x24790e(0x8e)]()[_0x24790e(0xa9)])==null?void 0x0:_0x19743f[_0x24790e(0xb4)];return!_0x234b31||!_0x2f8a59?'':u(_0x2f8a59['slice'](_0x234b31[_0x24790e(0xc1)]+0x1,_0x234b31[_0x24790e(0x88)]));}[_0x4e3b89(0x81)](){var _0xd2f694=_0x4e3b89;let _0x426a03=this[_0xd2f694(0x93)]();return _0x426a03?{..._0x426a03,'config':this['getConfig'](),'text':this[_0xd2f694(0xb2)](),'type':t[_0xd2f694(0x90)]['CODE']}:null;}['getConfig'](){var _0x320906=_0x4e3b89;return(0x0,e[_0x320906(0xbb)])(this[_0x320906(0xb7)][_0x320906(0x74)](e[_0x320906(0x77)])[_0x320906(0x6b)](this['_unitId'],this[_0x320906(0x70)]));}[_0x4e3b89(0x97)](_0x2389fc){var _0x2292bf=_0x4e3b89;return this['_injector'][_0x2292bf(0x74)](t[_0x2292bf(0xaf)])[_0x2292bf(0xbf)](e[_0x2292bf(0xb3)]['id'],{'blockId':this[_0x2292bf(0x70)],'config':_0x2389fc[_0x2292bf(0x9c)],'unitId':this[_0x2292bf(0xb9)]});}['unwrap'](){var _0x50d4f1=_0x4e3b89;return this[_0x50d4f1(0xb7)][_0x50d4f1(0x74)](t[_0x50d4f1(0xaf)])[_0x50d4f1(0xbf)](e[_0x50d4f1(0x75)]['id'],{'blockId':this[_0x50d4f1(0x70)],'unitId':this[_0x50d4f1(0xb9)]});}['remove'](){var _0x4a548d=_0x4e3b89;return this[_0x4a548d(0xb7)][_0x4a548d(0x74)](t[_0x4a548d(0xaf)])[_0x4a548d(0xbf)](e[_0x4a548d(0x76)]['id'],{'blockId':this[_0x4a548d(0x70)],'unitId':this[_0x4a548d(0xb9)]});}[_0x4e3b89(0x84)](){var _0x183b63=_0x4e3b89,_0x3cb1b9;return((_0x3cb1b9=this[_0x183b63(0x8e)]()[_0x183b63(0xa9)])==null||(_0x3cb1b9=_0x3cb1b9[_0x183b63(0x89)])==null?void 0x0:_0x3cb1b9[_0x183b63(0x6c)](_0x1901e1=>_0x1901e1['blockId']===this[_0x183b63(0x70)]&&_0x1901e1['blockType']===t['DocumentBlockRangeType'][_0x183b63(0xba)]))??null;}[_0x4e3b89(0x8e)](){var _0x44fa4f=_0x4e3b89;return this[_0x44fa4f(0xae)]['save']();}};l=c([s(0x2,(0x0,t[_0x4e3b89(0xad)])(t[_0x4e3b89(0x7e)]))],l);function _0x252c(_0x399c39,_0x294c3e){_0x399c39=_0x399c39-0x6b;var _0x2fff10=_0x2fff();var _0x252c0b=_0x2fff10[_0x399c39];return _0x252c0b;}function u(_0x12f9b0){var _0x508edf=_0x4e3b89;return Array[_0x508edf(0x98)](_0x12f9b0)['map'](_0x36a137=>_0x36a137===t['DataStreamTreeTokenType'][_0x508edf(0x91)]?'\x0a':_0x36a137)[_0x508edf(0xa3)](_0x11b302=>_0x11b302!==t[_0x508edf(0xc0)][_0x508edf(0xb5)]&&_0x11b302!==t['DataStreamTreeTokenType'][_0x508edf(0x9e)]&&_0x11b302!==t[_0x508edf(0xc0)][_0x508edf(0x99)])['join']('')[_0x508edf(0xb1)](/\n$/,'');}var d=class extends n['FDocument']{[_0x4e3b89(0x8c)](){var _0x5af3b7=_0x4e3b89;return this[_0x5af3b7(0xa1)]()[_0x5af3b7(0xa3)](_0x46ca49=>_0x46ca49[_0x5af3b7(0xbd)]===t['DocumentBlockRangeType']['CODE'])[_0x5af3b7(0x94)](_0x3e3794=>this[_0x5af3b7(0xa6)](_0x3e3794[_0x5af3b7(0xb0)]));}['getCode'](_0x5a64f7){var _0x4e1cef=_0x4e3b89;return this[_0x4e1cef(0xa1)]()[_0x4e1cef(0x86)](_0x8c4ede=>_0x8c4ede[_0x4e1cef(0xb0)]===_0x5a64f7&&_0x8c4ede[_0x4e1cef(0xbd)]===t[_0x4e1cef(0x90)]['CODE'])?this[_0x4e1cef(0xa6)](_0x5a64f7):null;}[_0x4e3b89(0x8f)](_0x5cec2e){var _0x4359c9=_0x4e3b89;let _0x1e6ab3=this['_getBlockRanges']()[_0x4359c9(0x6c)](_0x4d4c39=>_0x4d4c39[_0x4359c9(0xbd)]===t['DocumentBlockRangeType'][_0x4359c9(0xba)]&&_0x4d4c39[_0x4359c9(0xc1)]<=_0x5cec2e&&_0x5cec2e<=_0x4d4c39['endIndex']);return _0x1e6ab3?this[_0x4359c9(0xa6)](_0x1e6ab3[_0x4359c9(0xb0)]):null;}[_0x4e3b89(0xac)](_0x27a33e){var _0x3beea8=_0x4e3b89;return this[_0x3beea8(0x78)](_0x27a33e)[0x0]??null;}['findCodes'](_0x564c4b){var _0x10c994=_0x4e3b89;let _0x355842=typeof _0x564c4b=='string'?{'text':_0x564c4b}:_0x564c4b;return this[_0x10c994(0x8c)]()[_0x10c994(0xa3)](_0x2b103e=>!(_0x355842[_0x10c994(0xb0)]&&_0x2b103e[_0x10c994(0xb8)]()!==_0x355842[_0x10c994(0xb0)]||_0x355842[_0x10c994(0x9d)]&&!_0x2b103e[_0x10c994(0xb2)]()[_0x10c994(0x7a)](_0x355842[_0x10c994(0x9d)])));}[_0x4e3b89(0x7f)](_0x13b9fb={},_0x522c5b={}){var _0x460377=_0x4e3b89;let _0x45ef3c=this[_0x460377(0xb7)][_0x460377(0x74)](t[_0x460377(0xaf)]),_0xfbeeef=(0x0,n[_0x460377(0x7b)])(_0x13b9fb)?{..._0x522c5b,..._0x13b9fb[_0x460377(0x93)]()}:_0x13b9fb,_0x3cb613=_0xfbeeef[_0x460377(0xb0)]??(0x0,t[_0x460377(0x71)])(0x6);return _0x45ef3c[_0x460377(0xbf)](e[_0x460377(0xa7)]['id'],{..._0xfbeeef,'blockId':_0x3cb613,'unitId':this[_0x460377(0xb8)]()})?this['getCode'](_0x3cb613):null;}[_0x4e3b89(0xa1)](){var _0x428d34=_0x4e3b89,_0x290bc5;return((_0x290bc5=this[_0x428d34(0xa5)]()[_0x428d34(0xa9)])==null?void 0x0:_0x290bc5[_0x428d34(0x89)])??[];}[_0x4e3b89(0xa6)](_0x47f912){var _0x4ae656=_0x4e3b89;return this[_0x4ae656(0xb7)][_0x4ae656(0x95)](l,this,_0x47f912);}};n[_0x4e3b89(0xbc)][_0x4e3b89(0xa2)](d),Object['defineProperty'](exports,_0x4e3b89(0x7c),{'enumerable':!0x0,'get':function(){return l;}});
1
+ var _0x4ee163=_0x556f;(function(_0x4446fb,_0x4380c0){var _0x1a26e6=_0x556f,_0x31b70=_0x4446fb();while(!![]){try{var _0x298e22=-parseInt(_0x1a26e6(0x151))/0x1+-parseInt(_0x1a26e6(0x146))/0x2+parseInt(_0x1a26e6(0x12a))/0x3*(parseInt(_0x1a26e6(0x110))/0x4)+-parseInt(_0x1a26e6(0x11a))/0x5+-parseInt(_0x1a26e6(0x137))/0x6*(-parseInt(_0x1a26e6(0x140))/0x7)+parseInt(_0x1a26e6(0x15b))/0x8+-parseInt(_0x1a26e6(0x119))/0x9*(-parseInt(_0x1a26e6(0x144))/0xa);if(_0x298e22===_0x4380c0)break;else _0x31b70['push'](_0x31b70['shift']());}catch(_0x57e857){_0x31b70['push'](_0x31b70['shift']());}}}(_0x4f26,0x47e5d),Object[_0x4ee163(0x153)](exports,Symbol[_0x4ee163(0x149)],{'value':_0x4ee163(0x147)}));function _0x4f26(){var _0x23c02f=['_blockId','DocsCodeUnwrapCommand','blockType','some','join','save','filter','4yVmysc','getCodeConfig','createInstance','endIndex','ICommandService','includes','_injector','get','CODE','1041741buVrWT','2652095eSyDHv','_createFDocumentCode','string','normalizeDocsCodeConfig','Inject','dataStream','getId','blockRanges','default','_getBlockRange','symbol','findCodeByText','function','BLOCK_END','constructor','FDocument','1005126cMkZHA','map','object','DocsCodeUpdateCommand','iterator','_document','getCode','slice','describe','BLOCK_START','toPrimitive','getText','length','174462SsWCdr','isParagraphFacade','insertCode','getConfig','SECTION_BREAK','FDocumentCode','decorate','getCodes','prototype','91pHJJus','call','PARAGRAPH','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','40ijyEQX','_unitId','579808FMrKmZ','Module','DocsCodeInsertCommand','toStringTag','DocumentBlockRangeType','findCodes','getRange','extend','Injector','startIndex','getCodeAt','522803FWAxnb','body','defineProperty','text','blockId','unwrap','DataStreamTreeTokenType','_getBlockRanges','getOwnPropertyDescriptor','find','3692640tHkEBd','syncExecuteCommand','_getDocumentData'];_0x4f26=function(){return _0x23c02f;};return _0x4f26();}let e=require('@univerjs-pro/docs-code'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x4ba8d8){'@babel/helpers - typeof';var _0x4ad3b0=_0x4ee163;return r=typeof Symbol=='function'&&typeof Symbol[_0x4ad3b0(0x12e)]==_0x4ad3b0(0x124)?function(_0x698635){return typeof _0x698635;}:function(_0x5786bc){var _0x48df3c=_0x4ad3b0;return _0x5786bc&&typeof Symbol==_0x48df3c(0x126)&&_0x5786bc[_0x48df3c(0x128)]===Symbol&&_0x5786bc!==Symbol[_0x48df3c(0x13f)]?_0x48df3c(0x124):typeof _0x5786bc;},r(_0x4ba8d8);}function i(_0xc418a8,_0x29de75){var _0xd45cc7=_0x4ee163;if(r(_0xc418a8)!=_0xd45cc7(0x12c)||!_0xc418a8)return _0xc418a8;var _0x16ee08=_0xc418a8[Symbol[_0xd45cc7(0x134)]];if(_0x16ee08!==void 0x0){var _0x45a1b6=_0x16ee08[_0xd45cc7(0x141)](_0xc418a8,_0x29de75||_0xd45cc7(0x122));if(r(_0x45a1b6)!=_0xd45cc7(0x12c))return _0x45a1b6;throw TypeError(_0xd45cc7(0x143));}return(_0x29de75==='string'?String:Number)(_0xc418a8);}function a(_0x3493f0){var _0x4260ef=_0x4ee163,_0x3c3ce3=i(_0x3493f0,_0x4260ef(0x11c));return r(_0x3c3ce3)==_0x4260ef(0x124)?_0x3c3ce3:_0x3c3ce3+'';}function o(_0x39b832,_0x411b1c,_0x4e3be7){var _0x5cb98c=_0x4ee163;return(_0x411b1c=a(_0x411b1c))in _0x39b832?Object[_0x5cb98c(0x153)](_0x39b832,_0x411b1c,{'value':_0x4e3be7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x39b832[_0x411b1c]=_0x4e3be7,_0x39b832;}function _0x556f(_0x4a3290,_0x1e49d9){_0x4a3290=_0x4a3290-0x110;var _0x4f269b=_0x4f26();var _0x556fe9=_0x4f269b[_0x4a3290];return _0x556fe9;}function s(_0x407de4,_0x562928){return function(_0x136591,_0x5b22fa){_0x562928(_0x136591,_0x5b22fa,_0x407de4);};}function c(_0x2a4f6b,_0x522f7a,_0x1e49b0,_0x5702df){var _0x1da19f=_0x4ee163,_0x2bd499=arguments[_0x1da19f(0x136)],_0x5fb4e1=_0x2bd499<0x3?_0x522f7a:_0x5702df===null?_0x5702df=Object[_0x1da19f(0x159)](_0x522f7a,_0x1e49b0):_0x5702df,_0x1b8937;if(typeof Reflect=='object'&&typeof Reflect[_0x1da19f(0x13d)]==_0x1da19f(0x126))_0x5fb4e1=Reflect[_0x1da19f(0x13d)](_0x2a4f6b,_0x522f7a,_0x1e49b0,_0x5702df);else{for(var _0x1fbe3d=_0x2a4f6b[_0x1da19f(0x136)]-0x1;_0x1fbe3d>=0x0;_0x1fbe3d--)(_0x1b8937=_0x2a4f6b[_0x1fbe3d])&&(_0x5fb4e1=(_0x2bd499<0x3?_0x1b8937(_0x5fb4e1):_0x2bd499>0x3?_0x1b8937(_0x522f7a,_0x1e49b0,_0x5fb4e1):_0x1b8937(_0x522f7a,_0x1e49b0))||_0x5fb4e1);}return _0x2bd499>0x3&&_0x5fb4e1&&Object[_0x1da19f(0x153)](_0x522f7a,_0x1e49b0,_0x5fb4e1),_0x5fb4e1;}let l=class{constructor(_0x137d36,_0x3e4462,_0x219305){var _0x38c1da=_0x4ee163;this[_0x38c1da(0x12f)]=_0x137d36,this[_0x38c1da(0x15e)]=_0x3e4462,this['_injector']=_0x219305,o(this,'_unitId',void 0x0),this[_0x38c1da(0x145)]=this[_0x38c1da(0x12f)][_0x38c1da(0x120)]();}['getId'](){var _0x4cc414=_0x4ee163;return this[_0x4cc414(0x15e)];}['getRange'](){var _0x46b208=_0x4ee163;let _0x4df231=this[_0x46b208(0x123)]();return _0x4df231?{'blockId':_0x4df231['blockId'],'endIndex':_0x4df231[_0x46b208(0x113)],'startIndex':_0x4df231['startIndex']}:null;}[_0x4ee163(0x135)](){var _0x162118=_0x4ee163,_0x42c858;let _0x3327ca=this[_0x162118(0x123)](),_0x3ab200=(_0x42c858=this[_0x162118(0x15d)]()[_0x162118(0x152)])==null?void 0x0:_0x42c858[_0x162118(0x11f)];return!_0x3327ca||!_0x3ab200?'':u(_0x3ab200[_0x162118(0x131)](_0x3327ca[_0x162118(0x14f)]+0x1,_0x3327ca[_0x162118(0x113)]));}[_0x4ee163(0x132)](){var _0x9e3f4b=_0x4ee163;let _0x256655=this[_0x9e3f4b(0x14c)]();return _0x256655?{..._0x256655,'config':this[_0x9e3f4b(0x13a)](),'text':this[_0x9e3f4b(0x135)](),'type':t[_0x9e3f4b(0x14a)][_0x9e3f4b(0x118)]}:null;}[_0x4ee163(0x13a)](){var _0x394a2a=_0x4ee163;return(0x0,e[_0x394a2a(0x11d)])(this['_injector']['get'](e['DocsCodeModel'])[_0x394a2a(0x111)](this[_0x394a2a(0x145)],this[_0x394a2a(0x15e)]));}['updateConfig'](_0x4926b8){var _0x146fa2=_0x4ee163;return this[_0x146fa2(0x116)][_0x146fa2(0x117)](t[_0x146fa2(0x114)])[_0x146fa2(0x15c)](e[_0x146fa2(0x12d)]['id'],{'blockId':this[_0x146fa2(0x15e)],'config':_0x4926b8['config'],'unitId':this['_unitId']});}[_0x4ee163(0x156)](){var _0x411c67=_0x4ee163;return this[_0x411c67(0x116)][_0x411c67(0x117)](t['ICommandService'])[_0x411c67(0x15c)](e[_0x411c67(0x15f)]['id'],{'blockId':this[_0x411c67(0x15e)],'unitId':this[_0x411c67(0x145)]});}['remove'](){var _0x34c5f8=_0x4ee163;return this[_0x34c5f8(0x116)][_0x34c5f8(0x117)](t[_0x34c5f8(0x114)])[_0x34c5f8(0x15c)](e['DocsCodeRemoveCommand']['id'],{'blockId':this[_0x34c5f8(0x15e)],'unitId':this[_0x34c5f8(0x145)]});}[_0x4ee163(0x123)](){var _0x199975=_0x4ee163,_0x4b11c8;return((_0x4b11c8=this['_getDocumentData']()[_0x199975(0x152)])==null||(_0x4b11c8=_0x4b11c8[_0x199975(0x121)])==null?void 0x0:_0x4b11c8[_0x199975(0x15a)](_0xb9fac8=>_0xb9fac8['blockId']===this[_0x199975(0x15e)]&&_0xb9fac8['blockType']===t[_0x199975(0x14a)]['CODE']))??null;}[_0x4ee163(0x15d)](){var _0x2f4512=_0x4ee163;return this[_0x2f4512(0x12f)]['save']();}};l=c([s(0x2,(0x0,t[_0x4ee163(0x11e)])(t[_0x4ee163(0x14e)]))],l);function u(_0x1ce6a7){var _0x2c1af1=_0x4ee163;return Array['from'](_0x1ce6a7)[_0x2c1af1(0x12b)](_0x303dfb=>_0x303dfb===t[_0x2c1af1(0x157)][_0x2c1af1(0x142)]?'\x0a':_0x303dfb)[_0x2c1af1(0x164)](_0x11de0f=>_0x11de0f!==t['DataStreamTreeTokenType'][_0x2c1af1(0x133)]&&_0x11de0f!==t[_0x2c1af1(0x157)][_0x2c1af1(0x127)]&&_0x11de0f!==t[_0x2c1af1(0x157)][_0x2c1af1(0x13b)])[_0x2c1af1(0x162)]('')['replace'](/\n$/,'');}var d=class extends n[_0x4ee163(0x129)]{[_0x4ee163(0x13e)](){var _0x20bd72=_0x4ee163;return this[_0x20bd72(0x158)]()[_0x20bd72(0x164)](_0x13e3ec=>_0x13e3ec[_0x20bd72(0x160)]===t['DocumentBlockRangeType'][_0x20bd72(0x118)])['map'](_0xbf64=>this['_createFDocumentCode'](_0xbf64['blockId']));}[_0x4ee163(0x130)](_0x9fa105){var _0x50453d=_0x4ee163;return this[_0x50453d(0x158)]()[_0x50453d(0x161)](_0x4f1f75=>_0x4f1f75['blockId']===_0x9fa105&&_0x4f1f75[_0x50453d(0x160)]===t['DocumentBlockRangeType'][_0x50453d(0x118)])?this[_0x50453d(0x11b)](_0x9fa105):null;}[_0x4ee163(0x150)](_0x258290){var _0x37ed34=_0x4ee163;let _0x11a1f3=this['_getBlockRanges']()[_0x37ed34(0x15a)](_0x530753=>_0x530753[_0x37ed34(0x160)]===t['DocumentBlockRangeType'][_0x37ed34(0x118)]&&_0x530753[_0x37ed34(0x14f)]<=_0x258290&&_0x258290<=_0x530753[_0x37ed34(0x113)]);return _0x11a1f3?this[_0x37ed34(0x11b)](_0x11a1f3[_0x37ed34(0x155)]):null;}[_0x4ee163(0x125)](_0x1d2107){var _0x31d4bc=_0x4ee163;return this[_0x31d4bc(0x14b)](_0x1d2107)[0x0]??null;}[_0x4ee163(0x14b)](_0x134c98){var _0x5c38f7=_0x4ee163;let _0x4986a6=typeof _0x134c98=='string'?{'text':_0x134c98}:_0x134c98;return this[_0x5c38f7(0x13e)]()[_0x5c38f7(0x164)](_0x5bbd9b=>!(_0x4986a6['blockId']&&_0x5bbd9b['getId']()!==_0x4986a6['blockId']||_0x4986a6[_0x5c38f7(0x154)]&&!_0x5bbd9b['getText']()[_0x5c38f7(0x115)](_0x4986a6['text'])));}[_0x4ee163(0x139)](_0x2a15c3={},_0x486ff3={}){var _0x5d923e=_0x4ee163;let _0x35bacc=this[_0x5d923e(0x116)][_0x5d923e(0x117)](t[_0x5d923e(0x114)]),_0x4032e9=(0x0,n[_0x5d923e(0x138)])(_0x2a15c3)?{..._0x486ff3,..._0x2a15c3['getRange']()}:_0x2a15c3,_0xeebd72=_0x4032e9['blockId']??(0x0,t['generateRandomId'])(0x6);return _0x35bacc[_0x5d923e(0x15c)](e[_0x5d923e(0x148)]['id'],{..._0x4032e9,'blockId':_0xeebd72,'unitId':this[_0x5d923e(0x120)]()})?this[_0x5d923e(0x130)](_0xeebd72):null;}['_getBlockRanges'](){var _0x115801=_0x4ee163,_0x2d65fb;return((_0x2d65fb=this[_0x115801(0x163)]()[_0x115801(0x152)])==null?void 0x0:_0x2d65fb[_0x115801(0x121)])??[];}[_0x4ee163(0x11b)](_0x7de1b6){var _0x4304fa=_0x4ee163;return this[_0x4304fa(0x116)][_0x4304fa(0x112)](l,this,_0x7de1b6);}};n[_0x4ee163(0x129)][_0x4ee163(0x14d)](d),Object[_0x4ee163(0x153)](exports,_0x4ee163(0x13c),{'enumerable':!0x0,'get':function(){return l;}});
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x277a96=_0x5b20;(function(_0x25ed0f,_0x17cf65){const _0x3a73e0=_0x5b20,_0x182ddc=_0x25ed0f();while(!![]){try{const _0x3c7565=parseInt(_0x3a73e0(0x163))/0x1*(-parseInt(_0x3a73e0(0x1a7))/0x2)+-parseInt(_0x3a73e0(0x126))/0x3*(-parseInt(_0x3a73e0(0x148))/0x4)+parseInt(_0x3a73e0(0x1d5))/0x5*(-parseInt(_0x3a73e0(0x1b9))/0x6)+parseInt(_0x3a73e0(0x1b6))/0x7+-parseInt(_0x3a73e0(0x16b))/0x8+parseInt(_0x3a73e0(0x192))/0x9*(parseInt(_0x3a73e0(0x18f))/0xa)+parseInt(_0x3a73e0(0x190))/0xb*(parseInt(_0x3a73e0(0x1ca))/0xc);if(_0x3c7565===_0x17cf65)break;else _0x182ddc['push'](_0x182ddc['shift']());}catch(_0x33a92f){_0x182ddc['push'](_0x182ddc['shift']());}}}(_0x3e09,0x61a1f),Object[_0x277a96(0x1af)](exports,Symbol[_0x277a96(0x151)],{'value':'Module'}));let e=require('@univerjs/core'),t=require('rxjs'),n=require('@univerjs/docs'),r=require('@univerjs-pro/license');const i={'language':_0x277a96(0x1e3),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function a(_0x1d834c){return{...i,..._0x1d834c};}function o(_0x19e52f){const _0x6118ba=_0x277a96;let _0x162a40=(_0x19e52f==null?void 0x0:_0x19e52f['codes'])??{};return{'codes':Object['fromEntries'](Object[_0x6118ba(0x135)](_0x162a40)['map'](([_0x47eac3,_0x1558b3])=>[_0x47eac3,a(_0x1558b3)]))};}function s(_0x1092dc,_0x44115d,_0x5a937f){const _0x3aad17=_0x277a96;let _0x1a9c52=o(_0x1092dc);return _0x1a9c52['codes'][_0x44115d]=a({..._0x1a9c52[_0x3aad17(0x19e)][_0x44115d],..._0x5a937f}),_0x1a9c52;}function c(_0x33c48d,_0x17258a){let _0x48a6e9=o(_0x33c48d);return delete _0x48a6e9['codes'][_0x17258a],_0x48a6e9;}function l(_0x4053c7){'@babel/helpers - typeof';const _0x143ecf=_0x277a96;return l=typeof Symbol==_0x143ecf(0x195)&&typeof Symbol[_0x143ecf(0x13b)]==_0x143ecf(0x1c5)?function(_0x20d653){return typeof _0x20d653;}:function(_0x34e051){const _0x33c6ea=_0x143ecf;return _0x34e051&&typeof Symbol=='function'&&_0x34e051[_0x33c6ea(0x114)]===Symbol&&_0x34e051!==Symbol[_0x33c6ea(0x1a9)]?_0x33c6ea(0x1c5):typeof _0x34e051;},l(_0x4053c7);}function u(_0x332dcf,_0x5afd83){const _0x53d9e5=_0x277a96;if(l(_0x332dcf)!=_0x53d9e5(0x168)||!_0x332dcf)return _0x332dcf;var _0x2d6c9c=_0x332dcf[Symbol['toPrimitive']];if(_0x2d6c9c!==void 0x0){var _0x1a4f7f=_0x2d6c9c[_0x53d9e5(0x123)](_0x332dcf,_0x5afd83||_0x53d9e5(0x12a));if(l(_0x1a4f7f)!=_0x53d9e5(0x168))return _0x1a4f7f;throw TypeError(_0x53d9e5(0x1d4));}return(_0x5afd83===_0x53d9e5(0x17c)?String:Number)(_0x332dcf);}function d(_0x21b0d3){const _0x4abba4=_0x277a96;var _0x418fb0=u(_0x21b0d3,_0x4abba4(0x17c));return l(_0x418fb0)=='symbol'?_0x418fb0:_0x418fb0+'';}function f(_0x424dc9,_0x1c0974,_0xe0319e){const _0x5dc4e2=_0x277a96;return(_0x1c0974=d(_0x1c0974))in _0x424dc9?Object[_0x5dc4e2(0x1af)](_0x424dc9,_0x1c0974,{'value':_0xe0319e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x424dc9[_0x1c0974]=_0xe0319e,_0x424dc9;}var p=class extends e[_0x277a96(0x13d)]{constructor(..._0x30b4df){const _0x3521ab=_0x277a96;super(..._0x30b4df),f(this,_0x3521ab(0x160),new Map()),f(this,_0x3521ab(0x1d3),new t[(_0x3521ab(0x1bc))]()),f(this,_0x3521ab(0x196),this[_0x3521ab(0x1d3)][_0x3521ab(0x10d)]());}[_0x277a96(0x180)](_0x51afd2,_0x19ccc6){const _0x44662e=_0x277a96;return o(this[_0x44662e(0x160)][_0x44662e(0x19c)](_0x51afd2))[_0x44662e(0x19e)][_0x19ccc6];}[_0x277a96(0x167)](_0x4e6989,_0x44ee86,_0x4771af){const _0x5ad7b0=_0x277a96;this[_0x5ad7b0(0x111)](_0x4e6989,_0x44ee86,s(this[_0x5ad7b0(0x160)][_0x5ad7b0(0x19c)](_0x4e6989),_0x44ee86,_0x4771af));}[_0x277a96(0x11f)](_0x3fc3fb,_0x392245){const _0x16d644=_0x277a96;this[_0x16d644(0x111)](_0x3fc3fb,_0x392245,c(this[_0x16d644(0x160)][_0x16d644(0x19c)](_0x3fc3fb),_0x392245));}[_0x277a96(0x1cc)](_0x3ae512){const _0x522c20=_0x277a96;return o(this[_0x522c20(0x160)]['get'](_0x3ae512));}['deserialize'](_0x556406,_0x544f3d){const _0x800b77=_0x277a96;this[_0x800b77(0x160)][_0x800b77(0x197)](_0x556406,o(_0x544f3d)),this[_0x800b77(0x1d3)]['next']({'unitId':_0x556406});}[_0x277a96(0x1c1)](_0x1fd057){const _0x288ab3=_0x277a96;this[_0x288ab3(0x160)][_0x288ab3(0x1d1)](_0x1fd057),this[_0x288ab3(0x1d3)]['next']({'unitId':_0x1fd057});}[_0x277a96(0x15e)](){const _0x1a82f9=_0x277a96;super[_0x1a82f9(0x15e)](),this[_0x1a82f9(0x160)][_0x1a82f9(0x198)](),this[_0x1a82f9(0x1d3)][_0x1a82f9(0x14a)]();}['_setResource'](_0x4ec1d0,_0x59ffff,_0x52dfb1){const _0x4c7181=_0x277a96;this[_0x4c7181(0x160)][_0x4c7181(0x197)](_0x4ec1d0,_0x52dfb1),this[_0x4c7181(0x1d3)][_0x4c7181(0x131)]({'unitId':_0x4ec1d0,'blockId':_0x59ffff});}};const m={'id':_0x277a96(0x159),'type':e['CommandType'][_0x277a96(0x12d)],'handler':(_0x1ae61c,_0xf51197)=>!(_0xf51197!=null&&_0xf51197[_0x277a96(0x18b)])||!_0xf51197[_0x277a96(0x19d)]?!0x1:(_0x1ae61c[_0x277a96(0x19c)](p)[_0x277a96(0x167)](_0xf51197[_0x277a96(0x18b)],_0xf51197[_0x277a96(0x19d)],_0xf51197['config']),!0x0)},h={'id':_0x277a96(0x15c),'type':e[_0x277a96(0x1dd)][_0x277a96(0x12d)],'handler':(_0x3f4cca,_0x398e07)=>!(_0x398e07!=null&&_0x398e07['unitId'])||!_0x398e07[_0x277a96(0x19d)]?!0x1:(_0x3f4cca[_0x277a96(0x19c)](p)[_0x277a96(0x11f)](_0x398e07[_0x277a96(0x18b)],_0x398e07[_0x277a96(0x19d)]),!0x0)},g=_0x277a96(0x158);var _=class extends Error{constructor(_0xec3bbe=_0x277a96(0x150)){super(_0xec3bbe);}};function _0x5b20(_0x245ae5,_0x1a6126){_0x245ae5=_0x245ae5-0x10d;const _0x3e09e6=_0x3e09();let _0x5b209c=_0x3e09e6[_0x245ae5];return _0x5b209c;}function ee(_0x5e1a7b){const _0x4ca9e3=_0x277a96;var _0x1b7729;let _0xc6b089=S(_0x5e1a7b['documentData']),_0x43ce07=w(_0xc6b089),_0x1f0f1e=ne(_0x5e1a7b[_0x4ca9e3(0x117)],_0x5e1a7b[_0x4ca9e3(0x1b8)]),_0x4482b7=_0x1f0f1e?(_0x1b7729=_0x43ce07[_0x4ca9e3(0x1b0)])==null?void 0x0:_0x1b7729[_0x4ca9e3(0x1e0)](_0x1d7a7b=>{const _0x18e5b0=_0x4ca9e3;let _0xa9ab2b=(0x0,e[_0x18e5b0(0x132)])(_0x1d7a7b);return _0xa9ab2b[_0x18e5b0(0x117)]===_0x1f0f1e[_0x18e5b0(0x117)]&&_0xa9ab2b['endOffset']===_0x1f0f1e[_0x18e5b0(0x1b8)];}):void 0x0,{startOffset:_0x52d3f5,endOffset:_0x33ee24}=_0x4482b7?_0x1f0f1e:me(_0x43ce07,_0x5e1a7b['startOffset'],_0x5e1a7b[_0x4ca9e3(0x1b8)],_0x5e1a7b[_0x4ca9e3(0x1c4)]);if(!_0x4482b7&&re(_0x43ce07,_0x52d3f5,_0x33ee24))throw new _(_0x4ca9e3(0x183));let _0x51ca22=_e(_0x43ce07,_0x52d3f5,_0x33ee24),_0x47647e=(_0x4482b7==null?void 0x0:_0x4482b7[_0x4ca9e3(0x19d)])??_0x5e1a7b[_0x4ca9e3(0x19d)],_0x25c9c6=s(_0x5e1a7b[_0x4ca9e3(0x13e)],_0x47647e,{...i,..._0x5e1a7b[_0x4ca9e3(0x18c)]});if(_0x4482b7)return _0x4482b7[_0x4ca9e3(0x181)]=e['DocumentBlockRangeType']['CODE'],te(_0x43ce07,_0x52d3f5,_0x33ee24),le(_0x43ce07,_0x52d3f5,_0x33ee24,_0x51ca22),O(_0x43ce07,_0x4482b7),{'nextDocumentData':_0xc6b089,'nextMetadata':_0x25c9c6,'cursorOffset':_0x52d3f5+0x1};if(_0x52d3f5===_0x33ee24){var _0x12787e,_0x28ef03;let _0xebbd8b=''+e[_0x4ca9e3(0x1a4)][_0x4ca9e3(0x1a0)]+e[_0x4ca9e3(0x1a4)]['PARAGRAPH']+e[_0x4ca9e3(0x1a4)][_0x4ca9e3(0x14c)];k(_0x43ce07,_0x52d3f5,_0xebbd8b,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e[_0x4ca9e3(0x1b7)])(new Set((_0x12787e=_0x43ce07['paragraphs'])==null?void 0x0:_0x12787e[_0x4ca9e3(0x138)](_0x3a48f5=>_0x3a48f5[_0x4ca9e3(0x1d8)]))),'paragraphStyle':x(!0x0,!0x0,_0x51ca22)}],'blockRanges':[{'blockId':_0x47647e,'blockType':e['DocumentBlockRangeType'][_0x4ca9e3(0x1a1)],'startIndex':0x0,'endIndex':_0xebbd8b[_0x4ca9e3(0x153)]-0x1}]});let _0x414cda=(_0x28ef03=_0x43ce07[_0x4ca9e3(0x1b0)])==null?void 0x0:_0x28ef03[_0x4ca9e3(0x1e0)](_0x3fe184=>_0x3fe184[_0x4ca9e3(0x19d)]===_0x47647e);return _0x414cda&&O(_0x43ce07,_0x414cda),{'nextDocumentData':_0xc6b089,'nextMetadata':_0x25c9c6,'cursorOffset':_0x52d3f5+0x1};}k(_0x43ce07,_0x33ee24,e[_0x4ca9e3(0x1a4)][_0x4ca9e3(0x14c)]),k(_0x43ce07,_0x52d3f5,e['DataStreamTreeTokenType'][_0x4ca9e3(0x1a0)]),le(_0x43ce07,_0x52d3f5,_0x33ee24+0x1,_0x51ca22);let _0x37a0b6={'blockId':_0x47647e,'blockType':e[_0x4ca9e3(0x1c8)][_0x4ca9e3(0x1a1)],'startIndex':_0x52d3f5,'endIndex':_0x33ee24+0x1};return _0x43ce07[_0x4ca9e3(0x1b0)]=[..._0x43ce07['blockRanges']??[],_0x37a0b6][_0x4ca9e3(0x1e1)]((_0x1a4717,_0x44f941)=>_0x1a4717[_0x4ca9e3(0x18d)]-_0x44f941['startIndex']),O(_0x43ce07,_0x37a0b6),{'nextDocumentData':_0xc6b089,'nextMetadata':_0x25c9c6,'cursorOffset':_0x52d3f5+0x1};}function te(_0x4544dc,_0x56888a,_0xdf8bdc){const _0x4c862e=_0x277a96;(_0x4544dc[_0x4c862e(0x110)]??[])[_0x4c862e(0x149)](_0x29f382=>_0x29f382[_0x4c862e(0x18d)]>_0x56888a&&_0x29f382[_0x4c862e(0x18d)]<_0xdf8bdc)[_0x4c862e(0x1be)](_0x41e668=>{const _0x271fe9=_0x4c862e;let _0x4c194a={..._0x41e668[_0x271fe9(0x182)]??{}};delete _0x4c194a[_0x271fe9(0x15f)],delete _0x4c194a[_0x271fe9(0x11d)],_0x41e668[_0x271fe9(0x182)]=_0x4c194a;});}function ne(_0x46f206,_0x15bc76){const _0x1dd49e=_0x277a96;return _0x46f206==null||_0x15bc76==null||_0x46f206===_0x15bc76?null:{'startOffset':Math[_0x1dd49e(0x10e)](_0x46f206,_0x15bc76),'endOffset':Math[_0x1dd49e(0x161)](_0x46f206,_0x15bc76)};}function re(_0x33e12a,_0x7c0682,_0x4512fe){const _0x103d80=_0x277a96;return(_0x33e12a[_0x103d80(0x1b0)]??[])[_0x103d80(0x1de)](_0x1d7f67=>{const _0x39ed04=_0x103d80;let _0xfeb235=(0x0,e[_0x39ed04(0x132)])(_0x1d7f67);return _0x7c0682===_0x4512fe?(0x0,e[_0x39ed04(0x1ab)])(_0xfeb235,_0x7c0682):(0x0,e[_0x39ed04(0x15d)])(_0xfeb235,{'startOffset':_0x7c0682,'endOffset':_0x4512fe});});}function ie(_0x433565){const _0x382b26=_0x277a96;return{'nextDocumentData':S(_0x433565[_0x382b26(0x1da)]),'nextMetadata':s(_0x433565['metadata'],_0x433565['blockId'],_0x433565[_0x382b26(0x18c)]),'cursorOffset':0x0};}function v(_0x43a431){const _0x3fd221=_0x277a96;let _0x367a57=S(_0x43a431[_0x3fd221(0x1da)]),_0x6976e2=w(_0x367a57),_0x2a2374=b(_0x6976e2,_0x43a431[_0x3fd221(0x19d)]);if(!_0x2a2374)return null;let _0x2e1bf9=fe(_0x6976e2,_0x2a2374);return{'nextDocumentData':_0x367a57,'nextMetadata':c(_0x43a431['metadata'],_0x43a431['blockId']),'cursorOffset':_0x2e1bf9};}function ae(_0x2dc51d){const _0x406eed=_0x277a96;var _0x77ceed;let _0x8b14cc=S(_0x2dc51d[_0x406eed(0x1da)]),_0x45afbb=w(_0x8b14cc),_0xafa32d=b(_0x45afbb,_0x2dc51d[_0x406eed(0x19d)]);if(!_0xafa32d)return null;let _0xfaed95=(0x0,e[_0x406eed(0x132)])(_0xafa32d);return A(_0x45afbb,_0xfaed95['startOffset'],_0xfaed95[_0x406eed(0x1b8)]),_0x45afbb[_0x406eed(0x1b0)]=(_0x77ceed=_0x45afbb[_0x406eed(0x1b0)])==null?void 0x0:_0x77ceed[_0x406eed(0x149)](_0x4acde2=>_0x4acde2[_0x406eed(0x19d)]!==_0x2dc51d[_0x406eed(0x19d)]),{'nextDocumentData':_0x8b14cc,'nextMetadata':c(_0x2dc51d[_0x406eed(0x13e)],_0x2dc51d['blockId']),'cursorOffset':_0xafa32d[_0x406eed(0x18d)]};}function y(_0x2ddd95){const _0x714dce=_0x277a96;let _0x4c13f7=S(_0x2ddd95[_0x714dce(0x1da)]),_0x2183ef=w(_0x4c13f7),_0x42dd0e=ce(_0x2183ef,_0x2ddd95[_0x714dce(0x141)]);return _0x42dd0e&&oe(_0x4c13f7,_0x2183ef,_0x42dd0e,_0x2ddd95[_0x714dce(0x141)],_0x2ddd95[_0x714dce(0x191)])||null;}function oe(_0x3cf50a,_0x12cae1,_0x47c340,_0x3731fd,_0x534f60){const _0x40491f=_0x277a96;let _0x36fc72=Se(_0x12cae1,_0x47c340,_0x3731fd,_0x534f60);if(!_0x36fc72)return null;let _0x5ee92e=_0x36fc72[_0x40491f(0x166)]-0x1;return A(_0x12cae1,_0x36fc72[_0x40491f(0x136)][_0x40491f(0x18d)],_0x36fc72[_0x40491f(0x136)][_0x40491f(0x18d)]+0x1),{'nextDocumentData':_0x3cf50a,'cursorOffset':_0x5ee92e};}function b(_0xa12029,_0x37ac20){const _0x1eb500=_0x277a96;var _0x16c383;return _0xa12029==null||(_0x16c383=_0xa12029[_0x1eb500(0x1b0)])==null?void 0x0:_0x16c383['find'](_0x59d756=>_0x59d756[_0x1eb500(0x181)]===e['DocumentBlockRangeType'][_0x1eb500(0x1a1)]&&_0x59d756[_0x1eb500(0x19d)]===_0x37ac20);}function se(_0x1ebf37){const _0x58dbf3=_0x277a96;let _0x1e71ed=_0x1ebf37[_0x58dbf3(0x1da)][_0x58dbf3(0x1db)];if(!_0x1e71ed)return!0x1;let _0x2fb308=_0x1ebf37[_0x58dbf3(0x147)]===_0x58dbf3(0x1b1)?_0x1ebf37[_0x58dbf3(0x141)]-0x1:_0x1ebf37[_0x58dbf3(0x141)],_0x5a72c7=_0x1ebf37['direction']===_0x58dbf3(0x1c6)?_0x1ebf37[_0x58dbf3(0x141)]+0x1:_0x2fb308;return(_0x1e71ed[_0x58dbf3(0x1b0)]??[])[_0x58dbf3(0x1de)](_0x3ffbc6=>_0x3ffbc6[_0x58dbf3(0x181)]===e['DocumentBlockRangeType']['CODE']?_0x2fb308===_0x3ffbc6['startIndex']||_0x2fb308===_0x3ffbc6['endIndex']||_0x5a72c7===_0x3ffbc6['startIndex']||_0x5a72c7===_0x3ffbc6[_0x58dbf3(0x1d6)]:!0x1);}function ce(_0x54b216,_0xb8af06){const _0x248bfb=_0x277a96;var _0x30fd21;return(_0x30fd21=_0x54b216[_0x248bfb(0x1b0)])==null?void 0x0:_0x30fd21[_0x248bfb(0x1e0)](_0x59bf52=>{const _0x49b16a=_0x248bfb;let _0x59687f=D(_0x59bf52);return _0x59bf52[_0x49b16a(0x181)]===e['DocumentBlockRangeType'][_0x49b16a(0x1a1)]&&_0x59bf52[_0x49b16a(0x18d)]<=_0xb8af06&&_0xb8af06<=_0x59687f+0x2;});}function x(_0x3f251f,_0x56bd36,_0x51fdad=!0x1){const _0x41e769=_0x277a96;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':e['BooleanNumber'][_0x41e769(0x16f)],'keepNext':_0x56bd36?e[_0x41e769(0x1b2)][_0x41e769(0x129)]:e['BooleanNumber'][_0x41e769(0x16f)],'widowControl':e[_0x41e769(0x1b2)][_0x41e769(0x16f)],..._0x3f251f&&_0x51fdad?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':g,'fs':0xc}};}function le(_0xfd0ab5,_0x2ca490,_0x1b55ad,_0x5b8463=!0x1){const _0x282113=_0x277a96;let _0xf640c4=(_0xfd0ab5[_0x282113(0x110)]??[])[_0x282113(0x149)](_0x2384be=>_0x2384be[_0x282113(0x18d)]>_0x2ca490&&_0x2384be['startIndex']<_0x1b55ad);_0xf640c4[_0x282113(0x1be)]((_0x2d96a8,_0x4f5a83)=>{const _0x2ee842=_0x282113;_0x2d96a8[_0x2ee842(0x182)]={..._0x2d96a8['paragraphStyle']??{},...x(_0x4f5a83===0x0,_0x4f5a83===_0xf640c4[_0x2ee842(0x153)]-0x1,_0x5b8463)};});}function ue(_0x141132){const _0x5bea26=_0x277a96;var _0xd9791d,_0x3e8873;let _0x577dee={..._0x141132??{}};return delete _0x577dee[_0x5bea26(0x140)],delete _0x577dee['indentStart'],delete _0x577dee[_0x5bea26(0x15f)],delete _0x577dee[_0x5bea26(0x11d)],delete _0x577dee['keepLines'],delete _0x577dee[_0x5bea26(0x11b)],delete _0x577dee['widowControl'],((_0xd9791d=_0x577dee['textStyle'])==null?void 0x0:_0xd9791d['ff'])===g&&((_0x3e8873=_0x577dee[_0x5bea26(0x18a)])==null?void 0x0:_0x3e8873['fs'])===0xc&&delete _0x577dee['textStyle'],_0x577dee;}function de(_0x209323,_0xf439eb){const _0x5068e5=_0x277a96;let _0xfaa69f=D(_0xf439eb);return(_0x209323[_0x5068e5(0x110)]??[])['filter'](_0x3d2c5f=>_0x3d2c5f[_0x5068e5(0x18d)]>_0xf439eb[_0x5068e5(0x18d)]&&_0x3d2c5f['startIndex']<_0xfaa69f);}function fe(_0x1b27d0,_0x1c6d51){const _0x37c0af=_0x277a96;var _0x1391d5;let _0x23e06f=D(_0x1c6d51);return de(_0x1b27d0,_0x1c6d51)['forEach'](_0x1ec257=>{_0x1ec257['paragraphStyle']=ue(_0x1ec257['paragraphStyle']);}),A(_0x1b27d0,_0x23e06f,_0x23e06f+0x1),A(_0x1b27d0,_0x1c6d51[_0x37c0af(0x18d)],_0x1c6d51['startIndex']+0x1),_0x1b27d0[_0x37c0af(0x1b0)]=(_0x1391d5=_0x1b27d0[_0x37c0af(0x1b0)])==null?void 0x0:_0x1391d5['filter'](_0x42bc29=>_0x42bc29['blockId']!==_0x1c6d51[_0x37c0af(0x19d)]),_0x1c6d51[_0x37c0af(0x18d)];}function S(_0xb1478b){const _0x1c8c13=_0x277a96;return{..._0xb1478b,'body':_0xb1478b[_0x1c8c13(0x1db)]?pe(_0xb1478b['body']):_0xb1478b[_0x1c8c13(0x1db)]};}function pe(_0x20f5e9){const _0x3bd7b0=_0x277a96;var _0x484780,_0x31568c,_0x3ce955,_0x4c4194,_0x5db038,_0x2a4c74,_0x1ecd79,_0x1b5108,_0x5f0e1d;return{..._0x20f5e9,'paragraphs':(_0x484780=_0x20f5e9['paragraphs'])==null?void 0x0:_0x484780[_0x3bd7b0(0x138)](_0x1f06ab=>({..._0x1f06ab,'bullet':C(_0x1f06ab['bullet']),'paragraphStyle':C(_0x1f06ab['paragraphStyle'])})),'sectionBreaks':(_0x31568c=_0x20f5e9[_0x3bd7b0(0x178)])==null?void 0x0:_0x31568c['map'](_0x110c78=>({..._0x110c78})),'textRuns':(_0x3ce955=_0x20f5e9[_0x3bd7b0(0x1e2)])==null?void 0x0:_0x3ce955[_0x3bd7b0(0x138)](_0x52ef8b=>({..._0x52ef8b})),'tables':(_0x4c4194=_0x20f5e9['tables'])==null?void 0x0:_0x4c4194[_0x3bd7b0(0x138)](_0x3a5eed=>({..._0x3a5eed})),'columnGroups':(_0x5db038=_0x20f5e9[_0x3bd7b0(0x170)])==null?void 0x0:_0x5db038[_0x3bd7b0(0x138)](_0x3f8fe8=>{const _0x30d98d=_0x3bd7b0;var _0xfe99e;return{..._0x3f8fe8,'columns':(_0xfe99e=_0x3f8fe8[_0x30d98d(0x164)])==null?void 0x0:_0xfe99e[_0x30d98d(0x138)](_0x76a6fa=>C(_0x76a6fa))};}),'blockRanges':(_0x2a4c74=_0x20f5e9[_0x3bd7b0(0x1b0)])==null?void 0x0:_0x2a4c74[_0x3bd7b0(0x138)](_0x30b5dd=>({..._0x30b5dd})),'customRanges':(_0x1ecd79=_0x20f5e9[_0x3bd7b0(0x145)])==null?void 0x0:_0x1ecd79[_0x3bd7b0(0x138)](_0x4e313a=>({..._0x4e313a})),'customDecorations':(_0x1b5108=_0x20f5e9[_0x3bd7b0(0x120)])==null?void 0x0:_0x1b5108[_0x3bd7b0(0x138)](_0x500e9a=>({..._0x500e9a})),'customBlocks':(_0x5f0e1d=_0x20f5e9[_0x3bd7b0(0x1df)])==null?void 0x0:_0x5f0e1d['map'](_0x1459d3=>({..._0x1459d3}))};}function C(_0x594c37){const _0x2d7c6a=_0x277a96;return Array['isArray'](_0x594c37)?_0x594c37[_0x2d7c6a(0x138)](_0x16a08c=>C(_0x16a08c)):!_0x594c37||typeof _0x594c37!='object'?_0x594c37:Object[_0x2d7c6a(0x128)](Object[_0x2d7c6a(0x135)](_0x594c37)['map'](([_0x13f9d4,_0x3736ff])=>[_0x13f9d4,C(_0x3736ff)]));}function w(_0x17293a){const _0x275033=_0x277a96;if(!_0x17293a[_0x275033(0x1db)])throw Error('Document\x20body\x20is\x20required');return _0x17293a[_0x275033(0x1db)];}function me(_0x3d7eaf,_0x50bdca,_0x9063c,_0x4230f8=_0x277a96(0x11a)){const _0x402ef8=_0x277a96;if(_0x50bdca==null||_0x9063c==null){let _0x1b5a0f=ge(_0x3d7eaf);return{'startOffset':_0x1b5a0f,'endOffset':_0x1b5a0f};}let _0x4e3453=Math['min'](_0x50bdca,_0x9063c),_0x36b275=Math[_0x402ef8(0x161)](_0x50bdca,_0x9063c),_0x1aa4cd=xe(_0x3d7eaf,_0x4e3453,_0x36b275);return _0x4e3453===_0x36b275?_0x4230f8===_0x402ef8(0x116)?{'startOffset':_0x4e3453,'endOffset':_0x36b275}:he(_0x3d7eaf,_0x4e3453,_0x1aa4cd):ve(_0x3d7eaf,_0x4e3453,_0x36b275,_0x1aa4cd);}function he(_0x27db02,_0x279005,_0x3c35a2){const _0x4d62f0=_0x277a96;let _0x75e6b=ye(_0x27db02,_0x279005);if(_0x75e6b){let _0x5b5b4a=T(_0x27db02,_0x75e6b,_0x3c35a2);if(_0x5b5b4a<_0x75e6b[_0x4d62f0(0x18d)])return{'startOffset':_0x5b5b4a,'endOffset':_0x3c35a2?Math[_0x4d62f0(0x10e)](_0x75e6b[_0x4d62f0(0x18d)]+0x1,_0x3c35a2['endOffset']):_0x75e6b[_0x4d62f0(0x18d)]+0x1};}let _0x13ab33=_0x279005===0x0&&_0x27db02[_0x4d62f0(0x16e)][0x0]===e[_0x4d62f0(0x1a4)][_0x4d62f0(0x1c9)]?0x1:_0x279005;return{'startOffset':_0x13ab33,'endOffset':_0x13ab33};}function ge(_0x398e32){const _0x1fe56b=_0x277a96;return _0x398e32[_0x1fe56b(0x16e)][_0x1fe56b(0x1a2)](e['DataStreamTreeTokenType'][_0x1fe56b(0x1d9)])?Math[_0x1fe56b(0x161)](0x0,_0x398e32[_0x1fe56b(0x16e)][_0x1fe56b(0x153)]-0x1):_0x398e32[_0x1fe56b(0x16e)][_0x1fe56b(0x153)];}function _e(_0x59dfd3,_0x54b286,_0x215c26){const _0x206e42=_0x277a96;var _0x13041b;let _0x4a4784=Math['min'](_0x54b286,_0x215c26),_0x1af3a5=Math[_0x206e42(0x161)](_0x54b286,_0x215c26);return!!((_0x13041b=_0x59dfd3[_0x206e42(0x1cb)])!=null&&_0x13041b[_0x206e42(0x1de)](_0x57c488=>_0x4a4784>_0x57c488[_0x206e42(0x18d)]&&_0x4a4784<_0x57c488[_0x206e42(0x1d6)]||_0x1af3a5>_0x57c488[_0x206e42(0x18d)]&&_0x1af3a5<_0x57c488['endIndex']||_0x4a4784<=_0x57c488['startIndex']&&_0x1af3a5>=_0x57c488[_0x206e42(0x1d6)]));}function ve(_0x4ae870,_0x41bb0c,_0x529f12,_0x3bafad){const _0x58dfd9=_0x277a96;let _0x2afc91=[..._0x4ae870[_0x58dfd9(0x110)]??[]][_0x58dfd9(0x1e1)]((_0x268e24,_0x21f54b)=>_0x268e24[_0x58dfd9(0x18d)]-_0x21f54b['startIndex']),_0x4288ed=(0x0,e['getParagraphContentStartOffsets'])(_0x4ae870),_0xc356ba=_0x2afc91['find'](_0xdb772a=>T(_0x4ae870,_0xdb772a,_0x3bafad,_0x4288ed)<=_0x41bb0c&&_0x41bb0c<=_0xdb772a[_0x58dfd9(0x18d)]),_0xf9b9c8=_0x2afc91[_0x58dfd9(0x1e0)](_0x569b2e=>_0x569b2e[_0x58dfd9(0x18d)]>=_0x529f12-0x1)??_0x2afc91[_0x2afc91[_0x58dfd9(0x153)]-0x1];return{'startOffset':_0xc356ba?T(_0x4ae870,_0xc356ba,_0x3bafad,_0x4288ed):_0x41bb0c,'endOffset':_0xf9b9c8?be(_0xf9b9c8,_0x3bafad):_0x529f12};}function ye(_0x21cf5e,_0x2c47da){const _0x13db73=_0x277a96;let _0x4549f6=[..._0x21cf5e[_0x13db73(0x110)]??[]][_0x13db73(0x1e1)]((_0x468d2e,_0x21545f)=>_0x468d2e[_0x13db73(0x18d)]-_0x21545f['startIndex']),_0x529066=(0x0,e['getParagraphContentStartOffsets'])(_0x21cf5e);return _0x4549f6[_0x13db73(0x1e0)](_0x387b2b=>(_0x529066[_0x13db73(0x19c)](_0x387b2b['startIndex'])??0x0)<=_0x2c47da&&_0x2c47da<=_0x387b2b['startIndex']);}function T(_0x41eaa4,_0x3ddb7a,_0x98b311,_0x2646e7){const _0x108f93=_0x277a96;let _0x1424e5=(_0x2646e7==null?void 0x0:_0x2646e7['get'](_0x3ddb7a[_0x108f93(0x18d)]))??(0x0,e[_0x108f93(0x157)])(_0x41eaa4,_0x3ddb7a);return _0x98b311?Math[_0x108f93(0x161)](_0x1424e5,_0x98b311['startOffset']):_0x1424e5;}function be(_0x1d2134,_0x3afc73){const _0x2199e2=_0x277a96;let _0x5ce6f8=_0x1d2134['startIndex']+0x1;return _0x3afc73?Math[_0x2199e2(0x10e)](_0x5ce6f8,_0x3afc73['endOffset']):_0x5ce6f8;}function xe(_0x3aa4ce,_0x23328a,_0x4284f0){const _0x326a08=_0x277a96;let _0x39fd57=E(_0x3aa4ce,_0x23328a),_0x35fcb9=E(_0x3aa4ce,_0x23328a===_0x4284f0?_0x4284f0:Math[_0x326a08(0x161)](_0x23328a,_0x4284f0-0x1));if(!(!_0x39fd57&&!_0x35fcb9)){if(!_0x39fd57||!_0x35fcb9||_0x39fd57[_0x326a08(0x187)]!==_0x35fcb9[_0x326a08(0x187)]||_0x39fd57[_0x326a08(0x166)]!==_0x35fcb9[_0x326a08(0x166)])throw new _();return _0x39fd57;}}function E(_0x510f38,_0x42f693){const _0x590769=_0x277a96;let _0xbd9ef1=_0x510f38[_0x590769(0x16e)],_0x554f00=-0x1;for(let _0x31b66f=Math['min'](_0x42f693,_0xbd9ef1[_0x590769(0x153)]-0x1);_0x31b66f>=0x0;_0x31b66f--){let _0xfad9e=_0xbd9ef1[_0x31b66f];if(_0xfad9e===e[_0x590769(0x1a4)]['TABLE_CELL_END'])return;if(_0xfad9e===e['DataStreamTreeTokenType'][_0x590769(0x152)]){_0x554f00=_0x31b66f;break;}}if(_0x554f00<0x0)return;let _0x3e4694=_0xbd9ef1[_0x590769(0x173)](e[_0x590769(0x1a4)][_0x590769(0x174)],_0x554f00+0x1);if(!(_0x3e4694<0x0||_0x42f693<_0x554f00+0x1||_0x42f693>_0x3e4694-0x1))return{'startOffset':_0x554f00+0x1,'endOffset':Math[_0x590769(0x161)](_0x554f00+0x1,_0x3e4694-0x1),'startTokenOffset':_0x554f00,'endTokenOffset':_0x3e4694};}function D(_0x5503a0){const _0x3d6d9b=_0x277a96;return(0x0,e[_0x3d6d9b(0x132)])(_0x5503a0)[_0x3d6d9b(0x1b8)]-0x1;}function Se(_0x48dbee,_0x119664,_0x8e6c2e,_0x3aa792){const _0xff3e2c=_0x277a96;let _0x3b977d=D(_0x119664),_0x2da0da=(_0x48dbee['paragraphs']??[])[_0xff3e2c(0x1e0)](_0x4af40b=>_0x4af40b[_0xff3e2c(0x18d)]===_0x3b977d+0x1);if(!_0x2da0da||_0x3aa792!=null&&_0x2da0da['startIndex']!==_0x3aa792||_0x8e6c2e!=null&&(_0x8e6c2e<_0x3b977d||_0x8e6c2e>_0x2da0da[_0xff3e2c(0x18d)]+0x1)||_0x48dbee[_0xff3e2c(0x16e)][_0x2da0da[_0xff3e2c(0x18d)]]!==e[_0xff3e2c(0x1a4)][_0xff3e2c(0x1c9)])return null;let _0x49f20d=(0x0,e[_0xff3e2c(0x157)])(_0x48dbee,_0x2da0da),_0x35c61b=_0x48dbee[_0xff3e2c(0x16e)][_0xff3e2c(0x1b4)](_0x49f20d,_0x2da0da[_0xff3e2c(0x18d)]);return Array[_0xff3e2c(0x1ac)](_0x35c61b)[_0xff3e2c(0x177)](_0x12774a=>_0x12774a===e[_0xff3e2c(0x1a4)][_0xff3e2c(0x14c)])?{'paragraph':_0x2da0da,'endTokenOffset':_0x3b977d}:null;}function O(_0x1c1a1c,_0x5e18b2){const _0x48e2a8=_0x277a96;var _0x2861e3;let _0x5353e5=D(_0x5e18b2),_0x2ac24c=_0x1c1a1c[_0x48e2a8(0x16e)][_0x5353e5+0x1];(_0x2ac24c===e[_0x48e2a8(0x1a4)][_0x48e2a8(0x1d9)]||_0x2ac24c===void 0x0)&&k(_0x1c1a1c,_0x5353e5+0x1,e[_0x48e2a8(0x1a4)][_0x48e2a8(0x1c9)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,e[_0x48e2a8(0x1b7)])(new Set((_0x2861e3=_0x1c1a1c[_0x48e2a8(0x110)])==null?void 0x0:_0x2861e3['map'](_0x1191a5=>_0x1191a5['paragraphId'])))}]});}function k(_0x2e48b9,_0x55374f,_0x1e5b50,_0x2aa451={}){const _0x9be53f=_0x277a96;var _0xa520b,_0x257338;_0x1e5b50&&(_0x2e48b9[_0x9be53f(0x16e)]=''+_0x2e48b9[_0x9be53f(0x16e)]['slice'](0x0,_0x55374f)+_0x1e5b50+_0x2e48b9['dataStream']['slice'](_0x55374f),Ce(_0x2e48b9,_0x55374f,_0x1e5b50[_0x9be53f(0x153)]),(_0xa520b=_0x2aa451[_0x9be53f(0x110)])!=null&&_0xa520b['length']&&(_0x2e48b9[_0x9be53f(0x110)]=[..._0x2e48b9[_0x9be53f(0x110)]??[],..._0x2aa451[_0x9be53f(0x110)][_0x9be53f(0x138)](_0x40c086=>({..._0x40c086,'startIndex':_0x40c086[_0x9be53f(0x18d)]+_0x55374f}))][_0x9be53f(0x1e1)]((_0x32c063,_0x1d6f41)=>_0x32c063[_0x9be53f(0x18d)]-_0x1d6f41[_0x9be53f(0x18d)])),(_0x257338=_0x2aa451[_0x9be53f(0x1b0)])!=null&&_0x257338['length']&&(_0x2e48b9['blockRanges']=[..._0x2e48b9['blockRanges']??[],..._0x2aa451[_0x9be53f(0x1b0)][_0x9be53f(0x138)](_0x43eb6b=>({..._0x43eb6b,'startIndex':_0x43eb6b[_0x9be53f(0x18d)]+_0x55374f,'endIndex':_0x43eb6b[_0x9be53f(0x1d6)]+_0x55374f}))]['sort']((_0x5d7c66,_0x50d2e9)=>_0x5d7c66[_0x9be53f(0x18d)]-_0x50d2e9[_0x9be53f(0x18d)])));}function A(_0x221826,_0x4555ed,_0x351965){const _0x12e04d=_0x277a96;let _0x29e4db=_0x351965-_0x4555ed;_0x221826[_0x12e04d(0x16e)]=''+_0x221826[_0x12e04d(0x16e)]['slice'](0x0,_0x4555ed)+_0x221826[_0x12e04d(0x16e)]['slice'](_0x351965),we(_0x221826,_0x4555ed,_0x29e4db);}function Ce(_0x6ae59e,_0x50988b,_0x1de63f){const _0x29c11c=_0x277a96;_0x6ae59e[_0x29c11c(0x110)]=j(_0x6ae59e[_0x29c11c(0x110)],_0x50988b,_0x1de63f),_0x6ae59e[_0x29c11c(0x178)]=j(_0x6ae59e[_0x29c11c(0x178)],_0x50988b,_0x1de63f),_0x6ae59e[_0x29c11c(0x1df)]=j(_0x6ae59e['customBlocks'],_0x50988b,_0x1de63f),_0x6ae59e[_0x29c11c(0x1e2)]=Te(_0x6ae59e[_0x29c11c(0x1e2)],_0x50988b,_0x1de63f),_0x6ae59e[_0x29c11c(0x1cb)]=Ee(_0x6ae59e['tables'],_0x50988b,_0x1de63f),_0x6ae59e[_0x29c11c(0x170)]=N(_0x6ae59e[_0x29c11c(0x170)],_0x50988b,_0x1de63f),_0x6ae59e[_0x29c11c(0x145)]=N(_0x6ae59e[_0x29c11c(0x145)],_0x50988b,_0x1de63f),_0x6ae59e[_0x29c11c(0x120)]=N(_0x6ae59e[_0x29c11c(0x120)],_0x50988b,_0x1de63f),_0x6ae59e[_0x29c11c(0x1b0)]=N(_0x6ae59e[_0x29c11c(0x1b0)],_0x50988b,_0x1de63f);}function we(_0x2e80ae,_0x724efc,_0x4ec82d){const _0xf075e0=_0x277a96;var _0xffb20,_0x281478;_0x2e80ae[_0xf075e0(0x110)]=M(_0x2e80ae[_0xf075e0(0x110)],_0x724efc,_0x4ec82d),_0x2e80ae['sectionBreaks']=M(_0x2e80ae[_0xf075e0(0x178)],_0x724efc,_0x4ec82d),_0x2e80ae[_0xf075e0(0x1df)]=M(_0x2e80ae[_0xf075e0(0x1df)],_0x724efc,_0x4ec82d),_0x2e80ae[_0xf075e0(0x1e2)]=(_0xffb20=F((_0x281478=_0x2e80ae[_0xf075e0(0x1e2)])==null?void 0x0:_0x281478[_0xf075e0(0x138)](_0x23bb07=>({..._0x23bb07,'startIndex':_0x23bb07['st'],'endIndex':_0x23bb07['ed']})),_0x724efc,_0x4ec82d))==null?void 0x0:_0xffb20[_0xf075e0(0x138)](_0x3ff7c4=>{let {startIndex:_0xd81968,endIndex:_0xdaf237,..._0x56ed82}=_0x3ff7c4;return{..._0x56ed82,'st':_0xd81968,'ed':_0xdaf237};}),_0x2e80ae[_0xf075e0(0x1cb)]=F(_0x2e80ae[_0xf075e0(0x1cb)],_0x724efc,_0x4ec82d),_0x2e80ae[_0xf075e0(0x170)]=P(_0x2e80ae['columnGroups'],_0x724efc,_0x4ec82d),_0x2e80ae['customRanges']=P(_0x2e80ae[_0xf075e0(0x145)],_0x724efc,_0x4ec82d),_0x2e80ae['customDecorations']=P(_0x2e80ae[_0xf075e0(0x120)],_0x724efc,_0x4ec82d),_0x2e80ae[_0xf075e0(0x1b0)]=P(_0x2e80ae[_0xf075e0(0x1b0)],_0x724efc,_0x4ec82d);}function j(_0x19bb69,_0x14b950,_0x1aec8e){const _0x19d77c=_0x277a96;return _0x19bb69==null?void 0x0:_0x19bb69[_0x19d77c(0x138)](_0x2c9997=>_0x2c9997[_0x19d77c(0x18d)]>=_0x14b950?{..._0x2c9997,'startIndex':_0x2c9997[_0x19d77c(0x18d)]+_0x1aec8e}:_0x2c9997);}function M(_0x32cb36,_0x36f01c,_0x7cc617){const _0x550a81=_0x277a96;let _0xd4496c=_0x36f01c+_0x7cc617;return _0x32cb36==null?void 0x0:_0x32cb36[_0x550a81(0x138)](_0x54473f=>_0x54473f['startIndex']>=_0x36f01c&&_0x54473f['startIndex']<_0xd4496c?null:_0x54473f[_0x550a81(0x18d)]>=_0xd4496c?{..._0x54473f,'startIndex':_0x54473f[_0x550a81(0x18d)]-_0x7cc617}:_0x54473f)['filter'](_0x1fb611=>_0x1fb611!=null);}function Te(_0x4c202f,_0x839ad2,_0x333c06){const _0x46ddb6=_0x277a96;return _0x4c202f==null?void 0x0:_0x4c202f[_0x46ddb6(0x138)](_0x74d16e=>_0x74d16e['st']>=_0x839ad2?{..._0x74d16e,'st':_0x74d16e['st']+_0x333c06,'ed':_0x74d16e['ed']+_0x333c06}:_0x74d16e['ed']>_0x839ad2?{..._0x74d16e,'ed':_0x74d16e['ed']+_0x333c06}:_0x74d16e);}function N(_0x5ac6f6,_0xf5c421,_0x57d4e0){const _0x54826b=_0x277a96;return _0x5ac6f6==null?void 0x0:_0x5ac6f6[_0x54826b(0x138)](_0x472dff=>(0x0,e[_0x54826b(0x19f)])(_0x472dff,_0xf5c421,_0x57d4e0));}function Ee(_0x5f0f05,_0x14ccc2,_0x4a46d3){const _0x4b8b75=_0x277a96;return _0x5f0f05==null?void 0x0:_0x5f0f05[_0x4b8b75(0x138)](_0x26cdc5=>(0x0,e[_0x4b8b75(0x17e)])(_0x26cdc5,_0x14ccc2,_0x4a46d3));}function P(_0x33d46b,_0x134652,_0x28f7b1){const _0x375672=_0x277a96;return _0x33d46b==null?void 0x0:_0x33d46b[_0x375672(0x138)](_0x27b8d7=>(0x0,e[_0x375672(0x156)])(_0x27b8d7,_0x134652,_0x28f7b1))[_0x375672(0x149)](_0x20b223=>_0x20b223!=null);}function F(_0x3bbabd,_0x2c0c16,_0x3c2033){const _0x1ec919=_0x277a96;return _0x3bbabd==null?void 0x0:_0x3bbabd[_0x1ec919(0x138)](_0x485427=>(0x0,e[_0x1ec919(0x1a6)])(_0x485427,_0x2c0c16,_0x3c2033))[_0x1ec919(0x149)](_0x26f4d0=>_0x26f4d0!=null);}const I={'id':_0x277a96(0x12c),'type':e[_0x277a96(0x1dd)][_0x277a96(0x175)],'handler':_0x94f7eb=>{const _0x2cd185=_0x277a96;var _0x1b6c1d;if((0x0,n[_0x2cd185(0x15b)])(W(_0x94f7eb)))return!0x1;let _0x5c063e=(0x0,n['getContentInsertRange'])(_0x94f7eb);if(_0x5c063e)return _0x94f7eb['get'](e[_0x2cd185(0x179)])[_0x2cd185(0x1a5)](R['id'],{'startOffset':_0x5c063e[_0x2cd185(0x117)],'endOffset':_0x5c063e[_0x2cd185(0x1b8)],'insertionMode':_0x2cd185(0x116),'unitId':_0x5c063e['unitId']});let _0x466d4b=je(_0x94f7eb);if(!_0x466d4b)return!0x1;let _0x196ba7=(_0x1b6c1d=_0x94f7eb[_0x2cd185(0x19c)](e[_0x2cd185(0x134)])[_0x2cd185(0x188)](e[_0x2cd185(0x18e)][_0x2cd185(0x1c0)]))==null?void 0x0:_0x1b6c1d[_0x2cd185(0x16a)](),_0x5bc1c5=_0x196ba7?(0x0,e[_0x2cd185(0x17b)])(_0x196ba7,_0x466d4b):_0x466d4b[_0x2cd185(0x18d)]+0x1;return _0x94f7eb[_0x2cd185(0x19c)](e[_0x2cd185(0x179)])[_0x2cd185(0x1a5)](R['id'],{'startOffset':_0x5bc1c5,'endOffset':_0x5bc1c5});}},L={'id':_0x277a96(0x199),'type':e[_0x277a96(0x1dd)][_0x277a96(0x175)],'handler':()=>!0x0},R={'id':_0x277a96(0x169),'type':e[_0x277a96(0x1dd)]['COMMAND'],'handler':(_0x556b62,_0x4bdab5)=>{const _0x4b1f64=_0x277a96;let _0x5f2683=U(_0x556b62,_0x4bdab5==null?void 0x0:_0x4bdab5[_0x4b1f64(0x18b)]);if(!_0x5f2683)return!0x1;let _0x277aa1=W(_0x556b62);if((0x0,n[_0x4b1f64(0x15b)])(_0x277aa1))return!0x1;let _0x4a669b=_0x5f2683['model'][_0x4b1f64(0x1cc)](_0x5f2683['unitId']),_0x5ca9e1=Oe(_0x4bdab5,_0x277aa1),_0xb162e1=ke(_0x5f2683[_0x4b1f64(0x124)],_0x5ca9e1);if(_0xb162e1){if(_0xb162e1[_0x4b1f64(0x181)]!==e[_0x4b1f64(0x1c8)]['CODE'])return!0x1;let _0x58b630=v({'blockId':_0xb162e1[_0x4b1f64(0x19d)],'documentData':_0x5f2683[_0x4b1f64(0x124)],'metadata':_0x4a669b});if(!_0x58b630)return!0x1;let _0x43b208=J(_0x5f2683[_0x4b1f64(0x193)],_0x5f2683['selectionManager'],_0x5f2683[_0x4b1f64(0x18b)],_0x5f2683[_0x4b1f64(0x124)],_0x58b630[_0x4b1f64(0x185)],R['id'],_0x58b630[_0x4b1f64(0x141)]);return _0x43b208&&_0x58b630[_0x4b1f64(0x189)]&&_0x5f2683['model']['deserialize'](_0x5f2683[_0x4b1f64(0x18b)],_0x58b630[_0x4b1f64(0x189)]),_0x43b208;}let _0x9faf=(_0x4bdab5==null?void 0x0:_0x4bdab5[_0x4b1f64(0x19d)])??(0x0,e['generateRandomId'])(0x6),_0x1fc446;try{_0x1fc446=ee({'blockId':_0x9faf,'config':_0x4bdab5==null?void 0x0:_0x4bdab5[_0x4b1f64(0x18c)],'documentData':_0x5f2683[_0x4b1f64(0x124)],'endOffset':_0x5ca9e1==null?void 0x0:_0x5ca9e1[_0x4b1f64(0x1b8)],'insertionMode':_0x4bdab5==null?void 0x0:_0x4bdab5[_0x4b1f64(0x1c4)],'metadata':_0x4a669b,'startOffset':_0x5ca9e1==null?void 0x0:_0x5ca9e1[_0x4b1f64(0x117)]});}catch(_0x4c71d6){if(_0x4c71d6 instanceof _)return!0x1;throw _0x4c71d6;}let _0x112215=J(_0x5f2683['commandService'],_0x5f2683['selectionManager'],_0x5f2683[_0x4b1f64(0x18b)],_0x5f2683[_0x4b1f64(0x124)],_0x1fc446[_0x4b1f64(0x185)],R['id'],_0x1fc446[_0x4b1f64(0x141)]);return _0x112215&&_0x1fc446[_0x4b1f64(0x189)]&&_0x5f2683[_0x4b1f64(0x1ad)][_0x4b1f64(0x1bb)](_0x5f2683['unitId'],_0x1fc446[_0x4b1f64(0x189)]),_0x112215;}},z={'id':_0x277a96(0x12e),'type':e[_0x277a96(0x1dd)][_0x277a96(0x175)],'handler':(_0x804e4c,_0x5bd44a)=>{const _0x4214f8=_0x277a96;if(!_0x5bd44a)return!0x1;let _0x3acb19=U(_0x804e4c,_0x5bd44a[_0x4214f8(0x18b)]);if(!_0x3acb19)return!0x1;let _0x1c08c3=ie({'blockId':_0x5bd44a[_0x4214f8(0x19d)],'config':_0x5bd44a['config'],'documentData':_0x3acb19[_0x4214f8(0x124)],'metadata':_0x3acb19[_0x4214f8(0x1ad)][_0x4214f8(0x1cc)](_0x3acb19[_0x4214f8(0x18b)])});return _0x1c08c3[_0x4214f8(0x189)]&&_0x3acb19[_0x4214f8(0x1ad)]['deserialize'](_0x3acb19[_0x4214f8(0x18b)],_0x1c08c3[_0x4214f8(0x189)]),!0x0;}},De={'id':_0x277a96(0x17a),'type':e['CommandType'][_0x277a96(0x175)],'handler':(_0x2d9c48,_0x29f32a)=>B['handler'](_0x2d9c48,_0x29f32a)},B={'id':_0x277a96(0x184),'type':e[_0x277a96(0x1dd)][_0x277a96(0x175)],'handler':(_0x1b4679,_0x2b9778)=>{const _0x107982=_0x277a96;if(!_0x2b9778)return!0x1;let _0x3944ce=U(_0x1b4679,_0x2b9778==null?void 0x0:_0x2b9778['unitId']);if(!_0x3944ce)return!0x1;let _0x2f0e7a=v({'blockId':_0x2b9778['blockId'],'documentData':_0x3944ce[_0x107982(0x124)],'metadata':_0x3944ce[_0x107982(0x1ad)][_0x107982(0x1cc)](_0x3944ce[_0x107982(0x18b)])});if(!_0x2f0e7a)return!0x1;let _0x56eccd=J(_0x3944ce[_0x107982(0x193)],_0x3944ce[_0x107982(0x1cd)],_0x3944ce[_0x107982(0x18b)],_0x3944ce['previousDocumentData'],_0x2f0e7a[_0x107982(0x185)],B['id'],_0x2f0e7a[_0x107982(0x141)]);return _0x56eccd&&_0x2f0e7a[_0x107982(0x189)]&&_0x3944ce[_0x107982(0x1ad)][_0x107982(0x1bb)](_0x3944ce[_0x107982(0x18b)],_0x2f0e7a[_0x107982(0x189)]),_0x56eccd;}},V={'id':'docs-code.command.remove','type':e['CommandType'][_0x277a96(0x175)],'handler':(_0x4ec716,_0x3965e3)=>{const _0x2ec304=_0x277a96;if(!_0x3965e3)return!0x1;let _0x594405=U(_0x4ec716,_0x3965e3==null?void 0x0:_0x3965e3[_0x2ec304(0x18b)]);if(!_0x594405)return!0x1;let _0x4594f0=ae({'blockId':_0x3965e3[_0x2ec304(0x19d)],'documentData':_0x594405['previousDocumentData'],'metadata':_0x594405[_0x2ec304(0x1ad)][_0x2ec304(0x1cc)](_0x594405[_0x2ec304(0x18b)])});if(!_0x4594f0)return!0x1;let _0x3ce8ac=J(_0x594405[_0x2ec304(0x193)],_0x594405[_0x2ec304(0x1cd)],_0x594405[_0x2ec304(0x18b)],_0x594405[_0x2ec304(0x124)],_0x4594f0[_0x2ec304(0x185)],V['id'],_0x4594f0[_0x2ec304(0x141)]);return _0x3ce8ac&&_0x4594f0[_0x2ec304(0x189)]&&_0x594405[_0x2ec304(0x1ad)][_0x2ec304(0x1bb)](_0x594405[_0x2ec304(0x18b)],_0x4594f0[_0x2ec304(0x189)]),_0x3ce8ac;}},H={'id':_0x277a96(0x143),'type':e[_0x277a96(0x1dd)][_0x277a96(0x175)],'handler':(_0x2f810d,_0x5d6967)=>{const _0x2913dc=_0x277a96;var _0x58b526;let _0x15a3ca=U(_0x2f810d,_0x5d6967==null?void 0x0:_0x5d6967[_0x2913dc(0x18b)]);if(!_0x15a3ca)return!0x1;let _0x143452=(_0x5d6967==null?void 0x0:_0x5d6967[_0x2913dc(0x141)])??((_0x58b526=W(_0x2f810d))==null?void 0x0:_0x58b526[_0x2913dc(0x117)]);if(_0x143452==null)return!0x1;let _0x5d22ad=y({'cursorOffset':_0x143452,'documentData':_0x15a3ca['previousDocumentData'],'paragraphStartIndex':_0x5d6967==null?void 0x0:_0x5d6967[_0x2913dc(0x191)]});return _0x5d22ad?J(_0x15a3ca[_0x2913dc(0x193)],_0x15a3ca[_0x2913dc(0x1cd)],_0x15a3ca[_0x2913dc(0x18b)],_0x15a3ca[_0x2913dc(0x124)],_0x5d22ad[_0x2913dc(0x185)],H['id'],_0x5d22ad[_0x2913dc(0x141)]):!0x1;}};function U(_0x2f032c,_0xee8060){const _0x3db743=_0x277a96;let _0x154298=_0x2f032c[_0x3db743(0x19c)](e[_0x3db743(0x134)]),_0x36aad3=_0xee8060?_0x154298[_0x3db743(0x133)](_0xee8060,e[_0x3db743(0x18e)]['UNIVER_DOC']):_0x154298[_0x3db743(0x188)](e[_0x3db743(0x18e)]['UNIVER_DOC']);return _0x36aad3?{'commandService':_0x2f032c[_0x3db743(0x19c)](e[_0x3db743(0x179)]),'model':_0x2f032c[_0x3db743(0x19c)](p),'previousDocumentData':_0x36aad3[_0x3db743(0x19a)](),'selectionManager':_0x2f032c[_0x3db743(0x19c)](n[_0x3db743(0x14b)]),'unitId':_0x36aad3['getUnitId']()}:null;}function W(_0x20b6f8){const _0x211998=_0x277a96;var _0x5a1883;return(_0x5a1883=_0x20b6f8[_0x211998(0x19c)](n[_0x211998(0x14b)])[_0x211998(0x172)]())==null?void 0x0:_0x5a1883[0x0];}function Oe(_0x471cbc,_0xf6a312){const _0x47a179=_0x277a96;let _0x17cc12=(_0x471cbc==null?void 0x0:_0x471cbc[_0x47a179(0x117)])??(_0xf6a312==null?void 0x0:_0xf6a312['startOffset']),_0x45d03c=(_0x471cbc==null?void 0x0:_0x471cbc[_0x47a179(0x1b8)])??(_0xf6a312==null?void 0x0:_0xf6a312[_0x47a179(0x1b8)]);if(_0x17cc12!=null&&_0x45d03c!=null)return{'endOffset':Math[_0x47a179(0x161)](_0x17cc12,_0x45d03c),'startOffset':Math[_0x47a179(0x10e)](_0x17cc12,_0x45d03c)};}function ke(_0x190e61,_0x17581a){const _0x35c35e=_0x277a96;var _0x4f1187;if(!_0x17581a)return;let _0x32656d=Ae(_0x17581a);return(_0x4f1187=_0x190e61['body'])==null||(_0x4f1187=_0x4f1187[_0x35c35e(0x1b0)])==null?void 0x0:_0x4f1187[_0x35c35e(0x1e0)](_0x37082e=>{const _0xe615fc=_0x35c35e;let _0xc958be=(0x0,e[_0xe615fc(0x132)])(_0x37082e);return _0x17581a['startOffset']===_0x17581a[_0xe615fc(0x1b8)]?(0x0,e['containsInteriorInsertionOffset'])(_0xc958be,_0x32656d):(0x0,e['containsStreamIndex'])(_0xc958be,_0x32656d);});}function _0x3e09(){const _0x559cbc=['right','keys','DocumentBlockRangeType','PARAGRAPH','888ceHNrT','tables','serialize','selectionManager','IConfigService','_resourceManagerService','DocsCodeInsertCommand','delete','disposeWithMe','_change$','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','1209375AdLxBh','endIndex','buildCancelEmptyCodeParagraphActions','paragraphId','SECTION_BREAK','documentData','body','registerCommand','CommandType','some','customBlocks','find','sort','textRuns','javascript','asObservable','min','type','paragraphs','_setResource','DocsCodeUpdateCommand','JSONX','constructor','_configService','insert-new','startOffset','getBodySliceForTextXAction','RichTextEditingMutation','convert-paragraph','keepNext','reduce','spaceBelow','version','removeCode','customDecorations','DocsCodeCancelEmptyParagraphCommand','editOp','call','previousDocumentData','merge','3QdaJhx','_initResource','fromEntries','FALSE','default','@univerjs-pro/docs-code','docs-code.command.insert-below','MUTATION','docs-code.command.update','1.0.0-insiders.20260805-b15e7f3','_injector','next','getBlockRangeInterval','getUnit','IUniverInstanceService','entries','paragraph','packageName','map','normalizeDocsCodeConfig','_config','iterator','insertOp','Disposable','metadata','getInstance','indentEnd','cursorOffset','add','docs-code.command.cancel-empty-paragraph','range','customRanges','TextX','direction','1627232OMZApO','filter','complete','DocSelectionManagerService','BLOCK_END','removeOp','start','setConfig','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','toStringTag','TABLE_CELL_START','length','isArray','_commandService','shiftInclusiveRangeOnDelete','getParagraphContentStartOffset','monospace','docs-code.mutation.set-config','DOC_CODE_PLUGIN','isHeaderFooterSelection','docs-code.mutation.remove-config','intersectsOperationalIntervals','dispose','spaceAbove','_resources','max','insertLength','35enxmEw','columns','UniverDocsCodePlugin','endTokenOffset','setCodeConfig','object','docs-code.command.insert','getBody','6288672eyZsHQ','deleteLength','UniverDocsPlugin','dataStream','TRUE','columnGroups','DOCS_CODE_PLUGIN','getTextRanges','indexOf','TABLE_CELL_END','COMMAND','docs-code.config','every','sectionBreaks','ICommandService','docs-code.command.exit','getParagraphFollowingBlockOffset','string','replaceOp','shiftExclusiveRangeOnInsert','insert','getCodeConfig','blockType','paragraphStyle','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','docs-code.command.unwrap','nextDocumentData','RemoveDocsCodeConfigMutation','startTokenOffset','getCurrentUnitOfType','nextMetadata','textStyle','unitId','config','startIndex','UniverInstanceType','10BnFfnj','94589QLobhf','paragraphStartIndex','1963728KGwkpl','commandService','normalizeDocsCodeMetadataResource','function','change$','set','clear','docs-code.command.consume-boundary-delete','getSnapshot','compose','get','blockId','codes','shiftInclusiveRangeOnInsert','BLOCK_START','CODE','endsWith','stringify','DataStreamTreeTokenType','syncExecuteCommand','shiftExclusiveRangeOnDelete','13638xPsxoq','_docsCodeModel','prototype','push','containsInteriorInsertionOffset','from','model','replaceDocRanges','defineProperty','blockRanges','left','BooleanNumber','pluginName','slice','Plugin','4529532Fumyru','createParagraphId','endOffset','12JhxohR','DocsCodeInsertBelowCommand','deserialize','Subject','decorate','forEach','isCodeBoundaryDelete','UNIVER_DOC','removeUnit','DocsCodeConsumeBoundaryDeleteCommand','registerPluginResource','insertionMode','symbol'];_0x3e09=function(){return _0x559cbc;};return _0x3e09();}function Ae(_0x951db6){const _0x355f73=_0x277a96;return _0x951db6[_0x355f73(0x117)]===_0x951db6[_0x355f73(0x1b8)]?_0x951db6[_0x355f73(0x117)]:_0x951db6[_0x355f73(0x117)]+0x1;}function je(_0x26e88a){const _0x4f2f41=_0x277a96;let _0x498822=W(_0x26e88a);if(!_0x498822)return null;let _0x31527e=_0x26e88a[_0x4f2f41(0x19c)](e[_0x4f2f41(0x134)])[_0x4f2f41(0x188)](e[_0x4f2f41(0x18e)][_0x4f2f41(0x1c0)]),_0x83332b=_0x31527e==null?void 0x0:_0x31527e[_0x4f2f41(0x16a)]();return _0x83332b?e['BuildTextUtils'][_0x4f2f41(0x144)]['getParagraphsInRange'](_0x498822,_0x83332b['paragraphs']??[],_0x83332b[_0x4f2f41(0x16e)]??'')[0x0]??null:null;}function Me(_0x4d9293,_0x1f8ac7){const _0x5a881f=_0x277a96;let _0x33ac43=_0x4d9293['body'],_0x2e773f=_0x1f8ac7['body'],_0xee4854=(0x0,e['getSingleDataStreamChange'])(_0x33ac43,_0x2e773f);return[_0xee4854&&_0x2e773f?Ne(_0x2e773f,_0xee4854):null,_0xee4854?null:Pe(_0x33ac43,_0x2e773f)]['filter'](Boolean)[_0x5a881f(0x11c)]((_0x1159d0,_0x24324d)=>e[_0x5a881f(0x113)][_0x5a881f(0x19b)](_0x1159d0,_0x24324d),null);}function Ne(_0x5455c3,_0x86728b){const _0x1b4653=_0x277a96;let _0x127209=new e[(_0x1b4653(0x146))]();return _0x127209['retain'](_0x86728b[_0x1b4653(0x14e)]),_0x86728b[_0x1b4653(0x162)]>0x0&&_0x127209[_0x1b4653(0x17f)](_0x86728b['insertLength'],(0x0,e[_0x1b4653(0x118)])(_0x5455c3,_0x86728b[_0x1b4653(0x14e)],_0x86728b['start']+_0x86728b[_0x1b4653(0x162)],!0x1)),_0x86728b[_0x1b4653(0x16c)]>0x0&&_0x127209['delete'](_0x86728b[_0x1b4653(0x16c)]),e[_0x1b4653(0x113)]['getInstance']()[_0x1b4653(0x122)](_0x127209[_0x1b4653(0x1cc)](),[_0x1b4653(0x1db)]);}function Pe(_0x236c1f,_0x4ecbfa){const _0x58129b=_0x277a96;let _0x12db15=[],_0x2df57f=_0x236c1f?G(_0x236c1f):void 0x0,_0x38cac2=_0x4ecbfa?G(_0x4ecbfa):void 0x0;for(let _0x43c3cc of Fe)K(e[_0x58129b(0x113)][_0x58129b(0x13f)](),[_0x58129b(0x1db),_0x43c3cc],_0x2df57f==null?void 0x0:_0x2df57f[_0x43c3cc],_0x38cac2==null?void 0x0:_0x38cac2[_0x43c3cc],_0x12db15);return _0x12db15[_0x58129b(0x11c)]((_0x51c7cf,_0x3d7eee)=>e[_0x58129b(0x113)][_0x58129b(0x19b)](_0x51c7cf,_0x3d7eee),null);}const Fe=['paragraphs',_0x277a96(0x178),_0x277a96(0x1cb),_0x277a96(0x170),_0x277a96(0x1b0),'customBlocks','customRanges',_0x277a96(0x120),_0x277a96(0x1e2)];function G(_0xebbbea){return _0xebbbea;}function K(_0x21f3a3,_0x39151d,_0xd8ac3f,_0x3bb482,_0x5e9ab8){const _0x33572b=_0x277a96;if(!q(_0xd8ac3f,_0x3bb482)){if(_0xd8ac3f==null){_0x5e9ab8[_0x33572b(0x1aa)](_0x21f3a3[_0x33572b(0x13c)](_0x39151d,_0x3bb482));return;}if(_0x3bb482==null){_0x5e9ab8['push'](_0x21f3a3['removeOp'](_0x39151d,_0xd8ac3f));return;}if(Array['isArray'](_0xd8ac3f)&&Array[_0x33572b(0x154)](_0x3bb482)){Ie(_0x21f3a3,_0x39151d,_0xd8ac3f,_0x3bb482,_0x5e9ab8);return;}if(Le(_0xd8ac3f)&&Le(_0x3bb482)){new Set([...Object['keys'](_0xd8ac3f),...Object[_0x33572b(0x1c7)](_0x3bb482)])[_0x33572b(0x1be)](_0x6836c9=>{K(_0x21f3a3,[..._0x39151d,_0x6836c9],_0xd8ac3f[_0x6836c9],_0x3bb482[_0x6836c9],_0x5e9ab8);});return;}_0x5e9ab8['push'](_0x21f3a3[_0x33572b(0x17d)](_0x39151d,_0xd8ac3f,_0x3bb482));}}function Ie(_0x2f53dd,_0x5bbcf0,_0x1cb099,_0x37e3c9,_0x7d8f99){const _0x1c7dad=_0x277a96;if(_0x1cb099[_0x1c7dad(0x153)]===_0x37e3c9[_0x1c7dad(0x153)]){_0x1cb099[_0x1c7dad(0x1be)]((_0x4ead6a,_0xfa209f)=>K(_0x2f53dd,[..._0x5bbcf0,_0xfa209f],_0x4ead6a,_0x37e3c9[_0xfa209f],_0x7d8f99));return;}let _0x144d78=0x0;for(;_0x144d78<_0x1cb099['length']&&_0x144d78<_0x37e3c9[_0x1c7dad(0x153)]&&q(_0x1cb099[_0x144d78],_0x37e3c9[_0x144d78]);)_0x144d78++;let _0x39198b=_0x1cb099[_0x1c7dad(0x153)]-0x1,_0x8ea3fa=_0x37e3c9[_0x1c7dad(0x153)]-0x1;for(;_0x39198b>=_0x144d78&&_0x8ea3fa>=_0x144d78&&q(_0x1cb099[_0x39198b],_0x37e3c9[_0x8ea3fa]);)_0x39198b--,_0x8ea3fa--;for(let _0x552d99=_0x39198b;_0x552d99>=_0x144d78;_0x552d99--)_0x7d8f99['push'](_0x2f53dd[_0x1c7dad(0x14d)]([..._0x5bbcf0,_0x552d99],_0x1cb099[_0x552d99]));for(let _0x2d585f=_0x144d78;_0x2d585f<=_0x8ea3fa;_0x2d585f++)_0x7d8f99[_0x1c7dad(0x1aa)](_0x2f53dd['insertOp']([..._0x5bbcf0,_0x2d585f],_0x37e3c9[_0x2d585f]));}function Le(_0x5a0403){const _0x571f65=_0x277a96;return typeof _0x5a0403==_0x571f65(0x168)&&!!_0x5a0403&&!Array['isArray'](_0x5a0403);}function q(_0x59987d,_0x57708c){const _0x453d45=_0x277a96;return JSON[_0x453d45(0x1a3)](_0x59987d)===JSON[_0x453d45(0x1a3)](_0x57708c);}function J(_0x156c26,_0x2dd0d2,_0x358364,_0xaa8ff5,_0x598453,_0x4a6161,_0x5c12a0){const _0x488c53=_0x277a96;let _0x3a5529=Me(_0xaa8ff5,_0x598453);return _0x3a5529?!!_0x156c26['syncExecuteCommand'](n[_0x488c53(0x119)]['id'],{'unitId':_0x358364,'actions':_0x3a5529,'textRanges':[{'startOffset':_0x5c12a0,'endOffset':_0x5c12a0,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x4a6161}):(_0x2dd0d2[_0x488c53(0x1ae)]([{'startOffset':_0x5c12a0,'endOffset':_0x5c12a0}],{'unitId':_0x358364,'subUnitId':_0x358364},!0x1),!0x0);}const Y=_0x277a96(0x15a);var Re=_0x277a96(0x12b),ze=_0x277a96(0x12f);const Be={};function X(_0x46ef47,_0x346909){return function(_0x2290d8,_0x169e9c){_0x346909(_0x2290d8,_0x169e9c,_0x46ef47);};}function Z(_0x1af166,_0x37531b,_0x2b6c4f,_0x1c0c60){const _0x51a909=_0x277a96;var _0x4d18bc=arguments[_0x51a909(0x153)],_0x3a8daf=_0x4d18bc<0x3?_0x37531b:_0x1c0c60===null?_0x1c0c60=Object['getOwnPropertyDescriptor'](_0x37531b,_0x2b6c4f):_0x1c0c60,_0x4fd02e;if(typeof Reflect==_0x51a909(0x168)&&typeof Reflect[_0x51a909(0x1bd)]==_0x51a909(0x195))_0x3a8daf=Reflect['decorate'](_0x1af166,_0x37531b,_0x2b6c4f,_0x1c0c60);else{for(var _0xbb2124=_0x1af166['length']-0x1;_0xbb2124>=0x0;_0xbb2124--)(_0x4fd02e=_0x1af166[_0xbb2124])&&(_0x3a8daf=(_0x4d18bc<0x3?_0x4fd02e(_0x3a8daf):_0x4d18bc>0x3?_0x4fd02e(_0x37531b,_0x2b6c4f,_0x3a8daf):_0x4fd02e(_0x37531b,_0x2b6c4f))||_0x3a8daf);}return _0x4d18bc>0x3&&_0x3a8daf&&Object['defineProperty'](_0x37531b,_0x2b6c4f,_0x3a8daf),_0x3a8daf;}let Q=class extends e['Disposable']{constructor(_0x44c08f,_0x36c95b){const _0x24b842=_0x277a96;super(),this[_0x24b842(0x1cf)]=_0x44c08f,this[_0x24b842(0x1a8)]=_0x36c95b,this[_0x24b842(0x127)]();}[_0x277a96(0x127)](){const _0x5cdb97=_0x277a96;this[_0x5cdb97(0x1d2)](this[_0x5cdb97(0x1cf)][_0x5cdb97(0x1c3)]({'pluginName':Y,'businesses':[e[_0x5cdb97(0x18e)][_0x5cdb97(0x1c0)]],'toJson':_0x46039d=>JSON[_0x5cdb97(0x1a3)](this[_0x5cdb97(0x1a8)][_0x5cdb97(0x1cc)](_0x46039d)),'parseJson':_0x274327=>o(JSON['parse'](_0x274327)),'onLoad':(_0x2f7b77,_0x2b08d9)=>this['_docsCodeModel']['deserialize'](_0x2f7b77,_0x2b08d9),'onUnLoad':_0x1e4d3f=>this[_0x5cdb97(0x1a8)][_0x5cdb97(0x1c1)](_0x1e4d3f)}));}};Q=Z([X(0x0,e['IResourceManagerService']),X(0x1,(0x0,e['Inject'])(p))],Q);let $=class extends e[_0x277a96(0x1b5)]{constructor(_0xd54143=Be,_0x424f35,_0x11572b,_0x4cffde){const _0x43cad1=_0x277a96;super(),this[_0x43cad1(0x13a)]=_0xd54143,this['_injector']=_0x424f35,this[_0x43cad1(0x155)]=_0x11572b,this['_configService']=_0x4cffde;let {..._0x286f6c}=(0x0,e[_0x43cad1(0x125)])({},Be,this['_config']);this[_0x43cad1(0x115)][_0x43cad1(0x14f)](_0x43cad1(0x176),_0x286f6c);}['onStarting'](){const _0x39ea4d=_0x277a96;this[_0x39ea4d(0x130)][_0x39ea4d(0x142)]([p]),this[_0x39ea4d(0x130)][_0x39ea4d(0x142)]([Q]),this['_injector'][_0x39ea4d(0x19c)](p),this[_0x39ea4d(0x130)]['get'](Q),[R,I,z,B,V,De,H,L,m,h]['forEach'](_0x45113f=>this[_0x39ea4d(0x1d2)](this[_0x39ea4d(0x155)][_0x39ea4d(0x1dc)](_0x45113f)));}};f($,_0x277a96(0x1b3),Y),f($,_0x277a96(0x137),Re),f($,_0x277a96(0x11e),ze),f($,_0x277a96(0x10f),e[_0x277a96(0x18e)][_0x277a96(0x1c0)]),$=Z([(0x0,e['DependentOn'])(r['UniverLicensePlugin'],n[_0x277a96(0x16d)]),X(0x1,(0x0,e['Inject'])(e['Injector'])),X(0x2,e[_0x277a96(0x179)]),X(0x3,e[_0x277a96(0x1ce)])],$),exports[_0x277a96(0x171)]=Y,exports[_0x277a96(0x121)]=H,exports[_0x277a96(0x1c2)]=L,exports[_0x277a96(0x1ba)]=I,exports[_0x277a96(0x1d0)]=R,exports['DocsCodeModel']=p,exports['DocsCodeRemoveCommand']=V,exports['DocsCodeUnwrapCommand']=B,exports[_0x277a96(0x112)]=z,exports[_0x277a96(0x186)]=h,exports['SetDocsCodeConfigMutation']=m,Object['defineProperty'](exports,_0x277a96(0x165),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x277a96(0x1d7)]=y,exports[_0x277a96(0x1bf)]=se,exports[_0x277a96(0x139)]=a,exports[_0x277a96(0x194)]=o;
1
+ const _0x57f943=_0x5390;(function(_0x32a489,_0x35b4ec){const _0x2a00e4=_0x5390,_0xd9ee5b=_0x32a489();while(!![]){try{const _0x3de506=-parseInt(_0x2a00e4(0x18e))/0x1*(parseInt(_0x2a00e4(0x15d))/0x2)+-parseInt(_0x2a00e4(0x16c))/0x3*(parseInt(_0x2a00e4(0x14d))/0x4)+parseInt(_0x2a00e4(0x100))/0x5+parseInt(_0x2a00e4(0x141))/0x6+parseInt(_0x2a00e4(0x176))/0x7+parseInt(_0x2a00e4(0x138))/0x8+-parseInt(_0x2a00e4(0x166))/0x9;if(_0x3de506===_0x35b4ec)break;else _0xd9ee5b['push'](_0xd9ee5b['shift']());}catch(_0x3da0aa){_0xd9ee5b['push'](_0xd9ee5b['shift']());}}}(_0x323a,0xc8cc9),Object[_0x57f943(0x181)](exports,Symbol['toStringTag'],{'value':_0x57f943(0xdd)}));let e=require('@univerjs/core'),t=require('rxjs'),n=require('@univerjs/docs'),r=require('@univerjs-pro/license');const i={'language':_0x57f943(0xef),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function a(_0x4d2485){return{...i,..._0x4d2485};}function o(_0x98ed42){const _0x4b98de=_0x57f943;let _0x1d5b5e=(_0x98ed42==null?void 0x0:_0x98ed42[_0x4b98de(0x15e)])??{};return{'codes':Object[_0x4b98de(0x144)](Object[_0x4b98de(0xe5)](_0x1d5b5e)['map'](([_0x570b76,_0x23f8c8])=>[_0x570b76,a(_0x23f8c8)]))};}function s(_0x344639,_0x4e62ab,_0x367214){const _0x4b9e3e=_0x57f943;let _0x537a35=o(_0x344639);return _0x537a35['codes'][_0x4e62ab]=a({..._0x537a35[_0x4b9e3e(0x15e)][_0x4e62ab],..._0x367214}),_0x537a35;}function c(_0x567f64,_0x38dad3){const _0x5ebd2a=_0x57f943;let _0xa6a501=o(_0x567f64);return delete _0xa6a501[_0x5ebd2a(0x15e)][_0x38dad3],_0xa6a501;}function l(_0x3ef139){'@babel/helpers - typeof';const _0x25e1fd=_0x57f943;return l=typeof Symbol==_0x25e1fd(0x129)&&typeof Symbol[_0x25e1fd(0x13a)]==_0x25e1fd(0xde)?function(_0x59cc4b){return typeof _0x59cc4b;}:function(_0x13c59d){const _0x57b861=_0x25e1fd;return _0x13c59d&&typeof Symbol=='function'&&_0x13c59d[_0x57b861(0x17e)]===Symbol&&_0x13c59d!==Symbol[_0x57b861(0xfc)]?_0x57b861(0xde):typeof _0x13c59d;},l(_0x3ef139);}function u(_0x52b369,_0x2626eb){const _0x25990d=_0x57f943;if(l(_0x52b369)!=_0x25990d(0x186)||!_0x52b369)return _0x52b369;var _0x21b9ba=_0x52b369[Symbol[_0x25990d(0x170)]];if(_0x21b9ba!==void 0x0){var _0x50631f=_0x21b9ba[_0x25990d(0x10d)](_0x52b369,_0x2626eb||_0x25990d(0x151));if(l(_0x50631f)!=_0x25990d(0x186))return _0x50631f;throw TypeError(_0x25990d(0x10a));}return(_0x2626eb==='string'?String:Number)(_0x52b369);}function d(_0x2dec13){const _0xf1d4fb=_0x57f943;var _0x91519a=u(_0x2dec13,'string');return l(_0x91519a)==_0xf1d4fb(0xde)?_0x91519a:_0x91519a+'';}function f(_0x3a63f2,_0x82451e,_0x48fdca){const _0x48e4a6=_0x57f943;return(_0x82451e=d(_0x82451e))in _0x3a63f2?Object[_0x48e4a6(0x181)](_0x3a63f2,_0x82451e,{'value':_0x48fdca,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3a63f2[_0x82451e]=_0x48fdca,_0x3a63f2;}var p=class extends e[_0x57f943(0x103)]{constructor(..._0xa3d95e){const _0x5c7014=_0x57f943;super(..._0xa3d95e),f(this,_0x5c7014(0x15b),new Map()),f(this,_0x5c7014(0x10b),new t[(_0x5c7014(0x18f))]()),f(this,_0x5c7014(0xec),this[_0x5c7014(0x10b)][_0x5c7014(0x147)]());}['getCodeConfig'](_0x2fb92b,_0x3b7f22){const _0x775744=_0x57f943;return o(this[_0x775744(0x15b)][_0x775744(0x12a)](_0x2fb92b))[_0x775744(0x15e)][_0x3b7f22];}[_0x57f943(0x17b)](_0x58e4c7,_0x2a865e,_0x56f886){const _0x371a25=_0x57f943;this[_0x371a25(0x19e)](_0x58e4c7,_0x2a865e,s(this[_0x371a25(0x15b)][_0x371a25(0x12a)](_0x58e4c7),_0x2a865e,_0x56f886));}[_0x57f943(0x165)](_0x2b3a2e,_0x623c55){const _0x173fdc=_0x57f943;this['_setResource'](_0x2b3a2e,_0x623c55,c(this[_0x173fdc(0x15b)][_0x173fdc(0x12a)](_0x2b3a2e),_0x623c55));}['serialize'](_0x42d1eb){const _0x2e6c3d=_0x57f943;return o(this['_resources'][_0x2e6c3d(0x12a)](_0x42d1eb));}[_0x57f943(0x1a0)](_0x32c14d,_0x1e5783){const _0x16c6a4=_0x57f943;this['_resources'][_0x16c6a4(0xd6)](_0x32c14d,o(_0x1e5783)),this[_0x16c6a4(0x10b)]['next']({'unitId':_0x32c14d});}[_0x57f943(0xe1)](_0x5a0b71){const _0x1e55b1=_0x57f943;this[_0x1e55b1(0x15b)][_0x1e55b1(0x13d)](_0x5a0b71),this['_change$'][_0x1e55b1(0x120)]({'unitId':_0x5a0b71});}['dispose'](){const _0x579ba1=_0x57f943;super[_0x579ba1(0x19f)](),this['_resources']['clear'](),this[_0x579ba1(0x10b)]['complete']();}['_setResource'](_0x3293e9,_0x6e4d95,_0x1b541a){const _0x7f1e0d=_0x57f943;this[_0x7f1e0d(0x15b)][_0x7f1e0d(0xd6)](_0x3293e9,_0x1b541a),this[_0x7f1e0d(0x10b)][_0x7f1e0d(0x120)]({'unitId':_0x3293e9,'blockId':_0x6e4d95});}};const m={'id':_0x57f943(0x153),'type':e[_0x57f943(0x18b)]['MUTATION'],'handler':(_0x5e1ca4,_0x334bca)=>!(_0x334bca!=null&&_0x334bca[_0x57f943(0x125)])||!_0x334bca[_0x57f943(0x143)]?!0x1:(_0x5e1ca4[_0x57f943(0x12a)](p)[_0x57f943(0x17b)](_0x334bca[_0x57f943(0x125)],_0x334bca[_0x57f943(0x143)],_0x334bca[_0x57f943(0x13e)]),!0x0)},h={'id':'docs-code.mutation.remove-config','type':e[_0x57f943(0x18b)][_0x57f943(0xfe)],'handler':(_0x417245,_0x315446)=>!(_0x315446!=null&&_0x315446[_0x57f943(0x125)])||!_0x315446[_0x57f943(0x143)]?!0x1:(_0x417245[_0x57f943(0x12a)](p)[_0x57f943(0x165)](_0x315446[_0x57f943(0x125)],_0x315446[_0x57f943(0x143)]),!0x0)},g=_0x57f943(0x160);var _=class extends Error{constructor(_0x231815=_0x57f943(0xe7)){super(_0x231815);}};function ee(_0x43df35){const _0x5e4e8d=_0x57f943;var _0x590a79;let _0x21c486=S(_0x43df35[_0x5e4e8d(0xed)]),_0x4b2782=w(_0x21c486),_0x2e198d=ne(_0x43df35[_0x5e4e8d(0x150)],_0x43df35[_0x5e4e8d(0x187)]),_0x4c392e=_0x2e198d?(_0x590a79=_0x4b2782[_0x5e4e8d(0xd0)])==null?void 0x0:_0x590a79[_0x5e4e8d(0xda)](_0x746fe2=>{const _0x221fa0=_0x5e4e8d;let _0x582b21=(0x0,e['getBlockRangeInterval'])(_0x746fe2);return _0x582b21['startOffset']===_0x2e198d[_0x221fa0(0x150)]&&_0x582b21['endOffset']===_0x2e198d['endOffset'];}):void 0x0,{startOffset:_0x59c83b,endOffset:_0x363fd0}=_0x4c392e?_0x2e198d:me(_0x4b2782,_0x43df35[_0x5e4e8d(0x150)],_0x43df35[_0x5e4e8d(0x187)],_0x43df35[_0x5e4e8d(0xcf)]);if(!_0x4c392e&&re(_0x4b2782,_0x59c83b,_0x363fd0))throw new _(_0x5e4e8d(0x102));let _0x13ece2=_e(_0x4b2782,_0x59c83b,_0x363fd0),_0x5bc3ef=(_0x4c392e==null?void 0x0:_0x4c392e[_0x5e4e8d(0x143)])??_0x43df35[_0x5e4e8d(0x143)],_0x244f0f=s(_0x43df35['metadata'],_0x5bc3ef,{...i,..._0x43df35['config']});if(_0x4c392e)return _0x4c392e[_0x5e4e8d(0x162)]=e[_0x5e4e8d(0x111)][_0x5e4e8d(0x154)],te(_0x4b2782,_0x59c83b,_0x363fd0),le(_0x4b2782,_0x59c83b,_0x363fd0,_0x13ece2),O(_0x4b2782,_0x4c392e),{'nextDocumentData':_0x21c486,'nextMetadata':_0x244f0f,'cursorOffset':_0x59c83b+0x1};if(_0x59c83b===_0x363fd0){var _0x1c7290,_0xd83e8a;let _0x2a61ef=''+e[_0x5e4e8d(0x146)]['BLOCK_START']+e['DataStreamTreeTokenType'][_0x5e4e8d(0xf3)]+e[_0x5e4e8d(0x146)][_0x5e4e8d(0x136)];k(_0x4b2782,_0x59c83b,_0x2a61ef,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e['createParagraphId'])(new Set((_0x1c7290=_0x4b2782[_0x5e4e8d(0x157)])==null?void 0x0:_0x1c7290[_0x5e4e8d(0xeb)](_0x41939c=>_0x41939c[_0x5e4e8d(0x16d)]))),'paragraphStyle':x(!0x0,!0x0,_0x13ece2)}],'blockRanges':[{'blockId':_0x5bc3ef,'blockType':e['DocumentBlockRangeType'][_0x5e4e8d(0x154)],'startIndex':0x0,'endIndex':_0x2a61ef[_0x5e4e8d(0x14a)]-0x1}]});let _0x5e5ac6=(_0xd83e8a=_0x4b2782[_0x5e4e8d(0xd0)])==null?void 0x0:_0xd83e8a['find'](_0x32007f=>_0x32007f[_0x5e4e8d(0x143)]===_0x5bc3ef);return _0x5e5ac6&&O(_0x4b2782,_0x5e5ac6),{'nextDocumentData':_0x21c486,'nextMetadata':_0x244f0f,'cursorOffset':_0x59c83b+0x1};}k(_0x4b2782,_0x363fd0,e[_0x5e4e8d(0x146)][_0x5e4e8d(0x136)]),k(_0x4b2782,_0x59c83b,e[_0x5e4e8d(0x146)]['BLOCK_START']),le(_0x4b2782,_0x59c83b,_0x363fd0+0x1,_0x13ece2);let _0x3056e2={'blockId':_0x5bc3ef,'blockType':e['DocumentBlockRangeType']['CODE'],'startIndex':_0x59c83b,'endIndex':_0x363fd0+0x1};return _0x4b2782[_0x5e4e8d(0xd0)]=[..._0x4b2782['blockRanges']??[],_0x3056e2]['sort']((_0x23305,_0x3590a3)=>_0x23305[_0x5e4e8d(0x121)]-_0x3590a3['startIndex']),O(_0x4b2782,_0x3056e2),{'nextDocumentData':_0x21c486,'nextMetadata':_0x244f0f,'cursorOffset':_0x59c83b+0x1};}function te(_0x50b91b,_0x2b4d75,_0x50626b){const _0x46b25c=_0x57f943;(_0x50b91b[_0x46b25c(0x157)]??[])[_0x46b25c(0x190)](_0x15096c=>_0x15096c[_0x46b25c(0x121)]>_0x2b4d75&&_0x15096c[_0x46b25c(0x121)]<_0x50626b)[_0x46b25c(0x19d)](_0x161262=>{const _0x4328a1=_0x46b25c;let _0x553d3f={..._0x161262[_0x4328a1(0xd7)]??{}};delete _0x553d3f[_0x4328a1(0x18d)],delete _0x553d3f['spaceBelow'],_0x161262[_0x4328a1(0xd7)]=_0x553d3f;});}function ne(_0x28bac3,_0x134e0e){return _0x28bac3==null||_0x134e0e==null||_0x28bac3===_0x134e0e?null:{'startOffset':Math['min'](_0x28bac3,_0x134e0e),'endOffset':Math['max'](_0x28bac3,_0x134e0e)};}function re(_0x54464e,_0x5b4b8c,_0x43f745){const _0x3b6072=_0x57f943;return(_0x54464e[_0x3b6072(0xd0)]??[])[_0x3b6072(0xf9)](_0x231d58=>{const _0x462e53=_0x3b6072;let _0x35ba1f=(0x0,e[_0x462e53(0x161)])(_0x231d58);return _0x5b4b8c===_0x43f745?(0x0,e[_0x462e53(0x179)])(_0x35ba1f,_0x5b4b8c):(0x0,e[_0x462e53(0x115)])(_0x35ba1f,{'startOffset':_0x5b4b8c,'endOffset':_0x43f745});});}function ie(_0x3a244e){const _0x18a9f6=_0x57f943;return{'nextDocumentData':S(_0x3a244e[_0x18a9f6(0xed)]),'nextMetadata':s(_0x3a244e[_0x18a9f6(0xf1)],_0x3a244e[_0x18a9f6(0x143)],_0x3a244e[_0x18a9f6(0x13e)]),'cursorOffset':0x0};}function v(_0x952ac){const _0x143e32=_0x57f943;let _0x1d1709=S(_0x952ac[_0x143e32(0xed)]),_0x30dda6=w(_0x1d1709),_0xcde7dc=b(_0x30dda6,_0x952ac[_0x143e32(0x143)]);if(!_0xcde7dc)return null;let _0x214cff=fe(_0x30dda6,_0xcde7dc);return{'nextDocumentData':_0x1d1709,'nextMetadata':c(_0x952ac[_0x143e32(0xf1)],_0x952ac[_0x143e32(0x143)]),'cursorOffset':_0x214cff};}function ae(_0x4d9cb8){const _0x2a223c=_0x57f943;var _0x520041;let _0x5eb654=S(_0x4d9cb8[_0x2a223c(0xed)]),_0x1f0fdf=w(_0x5eb654),_0x4655b0=b(_0x1f0fdf,_0x4d9cb8[_0x2a223c(0x143)]);if(!_0x4655b0)return null;let _0x475aec=(0x0,e[_0x2a223c(0x161)])(_0x4655b0);return A(_0x1f0fdf,_0x475aec[_0x2a223c(0x150)],_0x475aec[_0x2a223c(0x187)]),_0x1f0fdf[_0x2a223c(0xd0)]=(_0x520041=_0x1f0fdf[_0x2a223c(0xd0)])==null?void 0x0:_0x520041[_0x2a223c(0x190)](_0x57f6d6=>_0x57f6d6[_0x2a223c(0x143)]!==_0x4d9cb8[_0x2a223c(0x143)]),{'nextDocumentData':_0x5eb654,'nextMetadata':c(_0x4d9cb8[_0x2a223c(0xf1)],_0x4d9cb8[_0x2a223c(0x143)]),'cursorOffset':_0x4655b0[_0x2a223c(0x121)]};}function y(_0x4caf32){const _0x515d70=_0x57f943;let _0x506b05=S(_0x4caf32[_0x515d70(0xed)]),_0x20bc98=w(_0x506b05),_0x1a54fe=ce(_0x20bc98,_0x4caf32[_0x515d70(0x14e)]);return _0x1a54fe&&oe(_0x506b05,_0x20bc98,_0x1a54fe,_0x4caf32['cursorOffset'],_0x4caf32['paragraphStartIndex'])||null;}function oe(_0x1c9c79,_0x309c77,_0x51e4b7,_0x1b40e7,_0x2ca2f6){const _0x206365=_0x57f943;let _0x5107e6=Se(_0x309c77,_0x51e4b7,_0x1b40e7,_0x2ca2f6);if(!_0x5107e6)return null;let _0x3a1bfb=_0x5107e6['endTokenOffset']-0x1;return A(_0x309c77,_0x5107e6[_0x206365(0x11c)][_0x206365(0x121)],_0x5107e6['paragraph']['startIndex']+0x1),{'nextDocumentData':_0x1c9c79,'cursorOffset':_0x3a1bfb};}function _0x5390(_0xea8510,_0xa859d0){_0xea8510=_0xea8510-0xcd;const _0x323ae6=_0x323a();let _0x539022=_0x323ae6[_0xea8510];return _0x539022;}function b(_0x4a8130,_0x89cd5b){const _0xf8892b=_0x57f943;var _0x15bca8;return _0x4a8130==null||(_0x15bca8=_0x4a8130[_0xf8892b(0xd0)])==null?void 0x0:_0x15bca8[_0xf8892b(0xda)](_0x53b75f=>_0x53b75f[_0xf8892b(0x162)]===e[_0xf8892b(0x111)][_0xf8892b(0x154)]&&_0x53b75f['blockId']===_0x89cd5b);}function se(_0x377afe){const _0x35c4b8=_0x57f943;let _0x56e50d=_0x377afe['documentData'][_0x35c4b8(0x148)];if(!_0x56e50d)return!0x1;let _0x2000c9=_0x377afe[_0x35c4b8(0x112)]===_0x35c4b8(0xd5)?_0x377afe[_0x35c4b8(0x14e)]-0x1:_0x377afe[_0x35c4b8(0x14e)],_0x18dab2=_0x377afe['direction']===_0x35c4b8(0x142)?_0x377afe[_0x35c4b8(0x14e)]+0x1:_0x2000c9;return(_0x56e50d[_0x35c4b8(0xd0)]??[])[_0x35c4b8(0xf9)](_0x347fb7=>_0x347fb7[_0x35c4b8(0x162)]===e['DocumentBlockRangeType'][_0x35c4b8(0x154)]?_0x2000c9===_0x347fb7[_0x35c4b8(0x121)]||_0x2000c9===_0x347fb7[_0x35c4b8(0xf4)]||_0x18dab2===_0x347fb7[_0x35c4b8(0x121)]||_0x18dab2===_0x347fb7[_0x35c4b8(0xf4)]:!0x1);}function ce(_0x888934,_0x38daa2){const _0x8fef19=_0x57f943;var _0x45c4ba;return(_0x45c4ba=_0x888934['blockRanges'])==null?void 0x0:_0x45c4ba[_0x8fef19(0xda)](_0x28887f=>{const _0x6e7dfe=_0x8fef19;let _0x488fd7=D(_0x28887f);return _0x28887f[_0x6e7dfe(0x162)]===e[_0x6e7dfe(0x111)]['CODE']&&_0x28887f[_0x6e7dfe(0x121)]<=_0x38daa2&&_0x38daa2<=_0x488fd7+0x2;});}function x(_0x1393ed,_0x5d4a99,_0x4e79f1=!0x1){const _0x467516=_0x57f943;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':e[_0x467516(0x16e)][_0x467516(0x10f)],'keepNext':_0x5d4a99?e[_0x467516(0x16e)][_0x467516(0x177)]:e['BooleanNumber'][_0x467516(0x10f)],'widowControl':e[_0x467516(0x16e)][_0x467516(0x10f)],..._0x1393ed&&_0x4e79f1?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':g,'fs':0xc}};}function le(_0x41ab0f,_0x5aae0a,_0x20ea36,_0x9138c1=!0x1){const _0x18febb=_0x57f943;let _0x316987=(_0x41ab0f[_0x18febb(0x157)]??[])[_0x18febb(0x190)](_0x230c9b=>_0x230c9b[_0x18febb(0x121)]>_0x5aae0a&&_0x230c9b['startIndex']<_0x20ea36);_0x316987[_0x18febb(0x19d)]((_0x2bc337,_0xf48b2c)=>{const _0x527a59=_0x18febb;_0x2bc337[_0x527a59(0xd7)]={..._0x2bc337['paragraphStyle']??{},...x(_0xf48b2c===0x0,_0xf48b2c===_0x316987[_0x527a59(0x14a)]-0x1,_0x9138c1)};});}function ue(_0x45d805){const _0x16fadc=_0x57f943;var _0x546159,_0x3e53fd;let _0x63a146={..._0x45d805??{}};return delete _0x63a146[_0x16fadc(0x16f)],delete _0x63a146['indentStart'],delete _0x63a146[_0x16fadc(0x18d)],delete _0x63a146['spaceBelow'],delete _0x63a146[_0x16fadc(0x194)],delete _0x63a146[_0x16fadc(0x11d)],delete _0x63a146[_0x16fadc(0xe6)],((_0x546159=_0x63a146[_0x16fadc(0xf8)])==null?void 0x0:_0x546159['ff'])===g&&((_0x3e53fd=_0x63a146[_0x16fadc(0xf8)])==null?void 0x0:_0x3e53fd['fs'])===0xc&&delete _0x63a146[_0x16fadc(0xf8)],_0x63a146;}function de(_0x24c312,_0x10a5e6){const _0x29a318=_0x57f943;let _0x33aab4=D(_0x10a5e6);return(_0x24c312['paragraphs']??[])[_0x29a318(0x190)](_0x4b60fa=>_0x4b60fa[_0x29a318(0x121)]>_0x10a5e6[_0x29a318(0x121)]&&_0x4b60fa['startIndex']<_0x33aab4);}function fe(_0x1eadf6,_0x57b153){const _0x292293=_0x57f943;var _0x5ed597;let _0x1fbb5b=D(_0x57b153);return de(_0x1eadf6,_0x57b153)[_0x292293(0x19d)](_0x1d54db=>{const _0x492ec5=_0x292293;_0x1d54db[_0x492ec5(0xd7)]=ue(_0x1d54db[_0x492ec5(0xd7)]);}),A(_0x1eadf6,_0x1fbb5b,_0x1fbb5b+0x1),A(_0x1eadf6,_0x57b153[_0x292293(0x121)],_0x57b153[_0x292293(0x121)]+0x1),_0x1eadf6[_0x292293(0xd0)]=(_0x5ed597=_0x1eadf6['blockRanges'])==null?void 0x0:_0x5ed597[_0x292293(0x190)](_0x1a1a92=>_0x1a1a92[_0x292293(0x143)]!==_0x57b153[_0x292293(0x143)]),_0x57b153[_0x292293(0x121)];}function S(_0x227ff8){const _0xfcc9e9=_0x57f943;return{..._0x227ff8,'body':_0x227ff8['body']?pe(_0x227ff8['body']):_0x227ff8[_0xfcc9e9(0x148)]};}function pe(_0xee4a1a){const _0x238f13=_0x57f943;var _0x3ed259,_0x40d4f4,_0x592356,_0x555ec,_0x15b50a,_0x21691e,_0x2c48c8,_0x38d27c,_0x1db078;return{..._0xee4a1a,'paragraphs':(_0x3ed259=_0xee4a1a[_0x238f13(0x157)])==null?void 0x0:_0x3ed259[_0x238f13(0xeb)](_0x3b4bec=>({..._0x3b4bec,'bullet':C(_0x3b4bec[_0x238f13(0x15f)]),'paragraphStyle':C(_0x3b4bec[_0x238f13(0xd7)])})),'sectionBreaks':(_0x40d4f4=_0xee4a1a[_0x238f13(0x12b)])==null?void 0x0:_0x40d4f4[_0x238f13(0xeb)](_0x301913=>({..._0x301913})),'textRuns':(_0x592356=_0xee4a1a[_0x238f13(0x195)])==null?void 0x0:_0x592356[_0x238f13(0xeb)](_0x36a104=>({..._0x36a104})),'tables':(_0x555ec=_0xee4a1a[_0x238f13(0x174)])==null?void 0x0:_0x555ec[_0x238f13(0xeb)](_0x3142e5=>({..._0x3142e5})),'columnGroups':(_0x15b50a=_0xee4a1a[_0x238f13(0x19c)])==null?void 0x0:_0x15b50a['map'](_0x133173=>{const _0x20a29b=_0x238f13;var _0x2ba8c6;return{..._0x133173,'columns':(_0x2ba8c6=_0x133173[_0x20a29b(0x110)])==null?void 0x0:_0x2ba8c6['map'](_0x2a14f8=>C(_0x2a14f8))};}),'blockRanges':(_0x21691e=_0xee4a1a[_0x238f13(0xd0)])==null?void 0x0:_0x21691e[_0x238f13(0xeb)](_0x1920b7=>({..._0x1920b7})),'customRanges':(_0x2c48c8=_0xee4a1a[_0x238f13(0x106)])==null?void 0x0:_0x2c48c8[_0x238f13(0xeb)](_0x34fbd3=>({..._0x34fbd3})),'customDecorations':(_0x38d27c=_0xee4a1a[_0x238f13(0x149)])==null?void 0x0:_0x38d27c[_0x238f13(0xeb)](_0x5a15c4=>({..._0x5a15c4})),'customBlocks':(_0x1db078=_0xee4a1a['customBlocks'])==null?void 0x0:_0x1db078[_0x238f13(0xeb)](_0x34563a=>({..._0x34563a}))};}function C(_0xa754b1){const _0x3bcacf=_0x57f943;return Array[_0x3bcacf(0x183)](_0xa754b1)?_0xa754b1['map'](_0x46afe8=>C(_0x46afe8)):!_0xa754b1||typeof _0xa754b1!='object'?_0xa754b1:Object[_0x3bcacf(0x144)](Object[_0x3bcacf(0xe5)](_0xa754b1)[_0x3bcacf(0xeb)](([_0x51ebba,_0x2eb1ba])=>[_0x51ebba,C(_0x2eb1ba)]));}function w(_0x2dce2f){const _0x3e01ba=_0x57f943;if(!_0x2dce2f['body'])throw Error(_0x3e01ba(0x19a));return _0x2dce2f['body'];}function me(_0x463935,_0x4ee36d,_0x390c0e,_0x5ec111=_0x57f943(0x173)){const _0x5e98d6=_0x57f943;if(_0x4ee36d==null||_0x390c0e==null){let _0x941ff6=ge(_0x463935);return{'startOffset':_0x941ff6,'endOffset':_0x941ff6};}let _0x344fe0=Math['min'](_0x4ee36d,_0x390c0e),_0x4f1b9b=Math[_0x5e98d6(0x191)](_0x4ee36d,_0x390c0e),_0x48f9cb=xe(_0x463935,_0x344fe0,_0x4f1b9b);return _0x344fe0===_0x4f1b9b?_0x5ec111===_0x5e98d6(0x11e)?{'startOffset':_0x344fe0,'endOffset':_0x4f1b9b}:he(_0x463935,_0x344fe0,_0x48f9cb):ve(_0x463935,_0x344fe0,_0x4f1b9b,_0x48f9cb);}function he(_0x1a0592,_0x31679b,_0x2b965f){const _0x4032a1=_0x57f943;let _0x5b7c30=ye(_0x1a0592,_0x31679b);if(_0x5b7c30){let _0x32d695=T(_0x1a0592,_0x5b7c30,_0x2b965f);if(_0x32d695<_0x5b7c30[_0x4032a1(0x121)])return{'startOffset':_0x32d695,'endOffset':_0x2b965f?Math[_0x4032a1(0x155)](_0x5b7c30[_0x4032a1(0x121)]+0x1,_0x2b965f[_0x4032a1(0x187)]):_0x5b7c30[_0x4032a1(0x121)]+0x1};}let _0x5d12f7=_0x31679b===0x0&&_0x1a0592[_0x4032a1(0x126)][0x0]===e[_0x4032a1(0x146)][_0x4032a1(0xf3)]?0x1:_0x31679b;return{'startOffset':_0x5d12f7,'endOffset':_0x5d12f7};}function ge(_0x565aa6){const _0xf07a06=_0x57f943;return _0x565aa6[_0xf07a06(0x126)][_0xf07a06(0x197)](e['DataStreamTreeTokenType'][_0xf07a06(0xe4)])?Math[_0xf07a06(0x191)](0x0,_0x565aa6[_0xf07a06(0x126)][_0xf07a06(0x14a)]-0x1):_0x565aa6[_0xf07a06(0x126)]['length'];}function _e(_0x2f1e42,_0x4e5d85,_0x24ba8b){const _0x34ea04=_0x57f943;var _0x29c3d5;let _0x41c291=Math[_0x34ea04(0x155)](_0x4e5d85,_0x24ba8b),_0x3ad817=Math[_0x34ea04(0x191)](_0x4e5d85,_0x24ba8b);return!!((_0x29c3d5=_0x2f1e42[_0x34ea04(0x174)])!=null&&_0x29c3d5[_0x34ea04(0xf9)](_0x2f9ddc=>_0x41c291>_0x2f9ddc[_0x34ea04(0x121)]&&_0x41c291<_0x2f9ddc[_0x34ea04(0xf4)]||_0x3ad817>_0x2f9ddc[_0x34ea04(0x121)]&&_0x3ad817<_0x2f9ddc['endIndex']||_0x41c291<=_0x2f9ddc[_0x34ea04(0x121)]&&_0x3ad817>=_0x2f9ddc['endIndex']));}function ve(_0x492ee5,_0x51d78a,_0x4744fc,_0xff5da7){const _0x233111=_0x57f943;let _0x41cf4f=[..._0x492ee5['paragraphs']??[]][_0x233111(0xe9)]((_0x498c53,_0x3643da)=>_0x498c53[_0x233111(0x121)]-_0x3643da[_0x233111(0x121)]),_0x2e85c2=(0x0,e[_0x233111(0xd4)])(_0x492ee5),_0x2bb22f=_0x41cf4f['find'](_0x129e63=>T(_0x492ee5,_0x129e63,_0xff5da7,_0x2e85c2)<=_0x51d78a&&_0x51d78a<=_0x129e63[_0x233111(0x121)]),_0x351751=_0x41cf4f['find'](_0x343f6a=>_0x343f6a[_0x233111(0x121)]>=_0x4744fc-0x1)??_0x41cf4f[_0x41cf4f[_0x233111(0x14a)]-0x1];return{'startOffset':_0x2bb22f?T(_0x492ee5,_0x2bb22f,_0xff5da7,_0x2e85c2):_0x51d78a,'endOffset':_0x351751?be(_0x351751,_0xff5da7):_0x4744fc};}function ye(_0x3a0dd4,_0x3fe4fb){const _0x7b4ce6=_0x57f943;let _0x157580=[..._0x3a0dd4[_0x7b4ce6(0x157)]??[]][_0x7b4ce6(0xe9)]((_0x25d434,_0x9e184)=>_0x25d434['startIndex']-_0x9e184[_0x7b4ce6(0x121)]),_0x21cdff=(0x0,e[_0x7b4ce6(0xd4)])(_0x3a0dd4);return _0x157580[_0x7b4ce6(0xda)](_0xf48d84=>(_0x21cdff[_0x7b4ce6(0x12a)](_0xf48d84[_0x7b4ce6(0x121)])??0x0)<=_0x3fe4fb&&_0x3fe4fb<=_0xf48d84[_0x7b4ce6(0x121)]);}function T(_0x4b800d,_0x633b3c,_0x49754f,_0x17ea7c){const _0x59e4d9=_0x57f943;let _0x23c6e7=(_0x17ea7c==null?void 0x0:_0x17ea7c[_0x59e4d9(0x12a)](_0x633b3c['startIndex']))??(0x0,e[_0x59e4d9(0xe8)])(_0x4b800d,_0x633b3c);return _0x49754f?Math[_0x59e4d9(0x191)](_0x23c6e7,_0x49754f[_0x59e4d9(0x150)]):_0x23c6e7;}function be(_0x5c494d,_0x5e7d5c){const _0x377a40=_0x57f943;let _0x46e77a=_0x5c494d['startIndex']+0x1;return _0x5e7d5c?Math[_0x377a40(0x155)](_0x46e77a,_0x5e7d5c['endOffset']):_0x46e77a;}function xe(_0x35c812,_0x560a8d,_0x429bc9){const _0x397ddc=_0x57f943;let _0x13b22d=E(_0x35c812,_0x560a8d),_0x456264=E(_0x35c812,_0x560a8d===_0x429bc9?_0x429bc9:Math[_0x397ddc(0x191)](_0x560a8d,_0x429bc9-0x1));if(!(!_0x13b22d&&!_0x456264)){if(!_0x13b22d||!_0x456264||_0x13b22d[_0x397ddc(0xf0)]!==_0x456264[_0x397ddc(0xf0)]||_0x13b22d[_0x397ddc(0x113)]!==_0x456264[_0x397ddc(0x113)])throw new _();return _0x13b22d;}}function E(_0x33eabe,_0x118115){const _0x4b3ae2=_0x57f943;let _0x3d6220=_0x33eabe['dataStream'],_0x122825=-0x1;for(let _0x4ccef9=Math[_0x4b3ae2(0x155)](_0x118115,_0x3d6220['length']-0x1);_0x4ccef9>=0x0;_0x4ccef9--){let _0x14359f=_0x3d6220[_0x4ccef9];if(_0x14359f===e['DataStreamTreeTokenType'][_0x4b3ae2(0x12c)])return;if(_0x14359f===e[_0x4b3ae2(0x146)][_0x4b3ae2(0x199)]){_0x122825=_0x4ccef9;break;}}if(_0x122825<0x0)return;let _0x2dbcab=_0x3d6220[_0x4b3ae2(0x15c)](e['DataStreamTreeTokenType']['TABLE_CELL_END'],_0x122825+0x1);if(!(_0x2dbcab<0x0||_0x118115<_0x122825+0x1||_0x118115>_0x2dbcab-0x1))return{'startOffset':_0x122825+0x1,'endOffset':Math[_0x4b3ae2(0x191)](_0x122825+0x1,_0x2dbcab-0x1),'startTokenOffset':_0x122825,'endTokenOffset':_0x2dbcab};}function D(_0x21cc16){const _0x458bbb=_0x57f943;return(0x0,e[_0x458bbb(0x161)])(_0x21cc16)[_0x458bbb(0x187)]-0x1;}function Se(_0x8a8a15,_0x3e7d4b,_0x382468,_0x31f57b){const _0x208116=_0x57f943;let _0xd0941b=D(_0x3e7d4b),_0x38b791=(_0x8a8a15[_0x208116(0x157)]??[])[_0x208116(0xda)](_0x179da2=>_0x179da2[_0x208116(0x121)]===_0xd0941b+0x1);if(!_0x38b791||_0x31f57b!=null&&_0x38b791['startIndex']!==_0x31f57b||_0x382468!=null&&(_0x382468<_0xd0941b||_0x382468>_0x38b791[_0x208116(0x121)]+0x1)||_0x8a8a15['dataStream'][_0x38b791[_0x208116(0x121)]]!==e['DataStreamTreeTokenType'][_0x208116(0xf3)])return null;let _0x435a79=(0x0,e[_0x208116(0xe8)])(_0x8a8a15,_0x38b791),_0x40394f=_0x8a8a15[_0x208116(0x126)][_0x208116(0x139)](_0x435a79,_0x38b791['startIndex']);return Array[_0x208116(0x13f)](_0x40394f)['every'](_0x44cce5=>_0x44cce5===e[_0x208116(0x146)][_0x208116(0x136)])?{'paragraph':_0x38b791,'endTokenOffset':_0xd0941b}:null;}function O(_0x484ff9,_0x44c936){const _0x130f02=_0x57f943;var _0x546627;let _0x51023c=D(_0x44c936),_0x4ff49b=_0x484ff9['dataStream'][_0x51023c+0x1];(_0x4ff49b===e['DataStreamTreeTokenType'][_0x130f02(0xe4)]||_0x4ff49b===void 0x0)&&k(_0x484ff9,_0x51023c+0x1,e['DataStreamTreeTokenType'][_0x130f02(0xf3)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,e[_0x130f02(0x117)])(new Set((_0x546627=_0x484ff9[_0x130f02(0x157)])==null?void 0x0:_0x546627['map'](_0x29bae1=>_0x29bae1['paragraphId'])))}]});}function k(_0xa78a96,_0x569586,_0xce0bb3,_0x390860={}){const _0x1f396e=_0x57f943;var _0x524be0,_0x2a1460;_0xce0bb3&&(_0xa78a96['dataStream']=''+_0xa78a96[_0x1f396e(0x126)][_0x1f396e(0x139)](0x0,_0x569586)+_0xce0bb3+_0xa78a96['dataStream'][_0x1f396e(0x139)](_0x569586),Ce(_0xa78a96,_0x569586,_0xce0bb3[_0x1f396e(0x14a)]),(_0x524be0=_0x390860[_0x1f396e(0x157)])!=null&&_0x524be0[_0x1f396e(0x14a)]&&(_0xa78a96[_0x1f396e(0x157)]=[..._0xa78a96['paragraphs']??[],..._0x390860['paragraphs']['map'](_0x585921=>({..._0x585921,'startIndex':_0x585921[_0x1f396e(0x121)]+_0x569586}))][_0x1f396e(0xe9)]((_0x3d1023,_0x248a45)=>_0x3d1023[_0x1f396e(0x121)]-_0x248a45[_0x1f396e(0x121)])),(_0x2a1460=_0x390860[_0x1f396e(0xd0)])!=null&&_0x2a1460[_0x1f396e(0x14a)]&&(_0xa78a96[_0x1f396e(0xd0)]=[..._0xa78a96[_0x1f396e(0xd0)]??[],..._0x390860['blockRanges'][_0x1f396e(0xeb)](_0x56ebfb=>({..._0x56ebfb,'startIndex':_0x56ebfb['startIndex']+_0x569586,'endIndex':_0x56ebfb[_0x1f396e(0xf4)]+_0x569586}))][_0x1f396e(0xe9)]((_0x35162c,_0x4e33d8)=>_0x35162c[_0x1f396e(0x121)]-_0x4e33d8[_0x1f396e(0x121)])));}function A(_0x91d600,_0x242be5,_0x4a9976){const _0x555202=_0x57f943;let _0x459600=_0x4a9976-_0x242be5;_0x91d600[_0x555202(0x126)]=''+_0x91d600[_0x555202(0x126)][_0x555202(0x139)](0x0,_0x242be5)+_0x91d600[_0x555202(0x126)][_0x555202(0x139)](_0x4a9976),we(_0x91d600,_0x242be5,_0x459600);}function Ce(_0x37b5b6,_0x56b7d3,_0x5df399){const _0x2c643c=_0x57f943;_0x37b5b6[_0x2c643c(0x157)]=j(_0x37b5b6[_0x2c643c(0x157)],_0x56b7d3,_0x5df399),_0x37b5b6[_0x2c643c(0x12b)]=j(_0x37b5b6[_0x2c643c(0x12b)],_0x56b7d3,_0x5df399),_0x37b5b6[_0x2c643c(0xfa)]=j(_0x37b5b6[_0x2c643c(0xfa)],_0x56b7d3,_0x5df399),_0x37b5b6[_0x2c643c(0x195)]=Te(_0x37b5b6['textRuns'],_0x56b7d3,_0x5df399),_0x37b5b6[_0x2c643c(0x174)]=Ee(_0x37b5b6[_0x2c643c(0x174)],_0x56b7d3,_0x5df399),_0x37b5b6[_0x2c643c(0x19c)]=N(_0x37b5b6['columnGroups'],_0x56b7d3,_0x5df399),_0x37b5b6[_0x2c643c(0x106)]=N(_0x37b5b6[_0x2c643c(0x106)],_0x56b7d3,_0x5df399),_0x37b5b6[_0x2c643c(0x149)]=N(_0x37b5b6[_0x2c643c(0x149)],_0x56b7d3,_0x5df399),_0x37b5b6[_0x2c643c(0xd0)]=N(_0x37b5b6[_0x2c643c(0xd0)],_0x56b7d3,_0x5df399);}function we(_0xce6f2a,_0x34b136,_0x505aa3){const _0x682699=_0x57f943;var _0x49d84c,_0x559cfb;_0xce6f2a['paragraphs']=M(_0xce6f2a[_0x682699(0x157)],_0x34b136,_0x505aa3),_0xce6f2a[_0x682699(0x12b)]=M(_0xce6f2a[_0x682699(0x12b)],_0x34b136,_0x505aa3),_0xce6f2a[_0x682699(0xfa)]=M(_0xce6f2a['customBlocks'],_0x34b136,_0x505aa3),_0xce6f2a[_0x682699(0x195)]=(_0x49d84c=F((_0x559cfb=_0xce6f2a['textRuns'])==null?void 0x0:_0x559cfb[_0x682699(0xeb)](_0x3180c1=>({..._0x3180c1,'startIndex':_0x3180c1['st'],'endIndex':_0x3180c1['ed']})),_0x34b136,_0x505aa3))==null?void 0x0:_0x49d84c[_0x682699(0xeb)](_0x33a599=>{let {startIndex:_0x1fa57e,endIndex:_0x52221a,..._0x497ac8}=_0x33a599;return{..._0x497ac8,'st':_0x1fa57e,'ed':_0x52221a};}),_0xce6f2a[_0x682699(0x174)]=F(_0xce6f2a[_0x682699(0x174)],_0x34b136,_0x505aa3),_0xce6f2a[_0x682699(0x19c)]=P(_0xce6f2a['columnGroups'],_0x34b136,_0x505aa3),_0xce6f2a[_0x682699(0x106)]=P(_0xce6f2a[_0x682699(0x106)],_0x34b136,_0x505aa3),_0xce6f2a[_0x682699(0x149)]=P(_0xce6f2a['customDecorations'],_0x34b136,_0x505aa3),_0xce6f2a[_0x682699(0xd0)]=P(_0xce6f2a[_0x682699(0xd0)],_0x34b136,_0x505aa3);}function j(_0x3a79f2,_0x50113a,_0x1fe890){const _0x2e7855=_0x57f943;return _0x3a79f2==null?void 0x0:_0x3a79f2[_0x2e7855(0xeb)](_0x3d18d4=>_0x3d18d4[_0x2e7855(0x121)]>=_0x50113a?{..._0x3d18d4,'startIndex':_0x3d18d4[_0x2e7855(0x121)]+_0x1fe890}:_0x3d18d4);}function M(_0x9eb11d,_0x2a0e20,_0x5f426e){const _0x919ca2=_0x57f943;let _0x1b470b=_0x2a0e20+_0x5f426e;return _0x9eb11d==null?void 0x0:_0x9eb11d['map'](_0x794d4=>_0x794d4[_0x919ca2(0x121)]>=_0x2a0e20&&_0x794d4[_0x919ca2(0x121)]<_0x1b470b?null:_0x794d4['startIndex']>=_0x1b470b?{..._0x794d4,'startIndex':_0x794d4[_0x919ca2(0x121)]-_0x5f426e}:_0x794d4)[_0x919ca2(0x190)](_0x482822=>_0x482822!=null);}function Te(_0x379c39,_0x50d113,_0x1f4648){return _0x379c39==null?void 0x0:_0x379c39['map'](_0x4e7f6d=>_0x4e7f6d['st']>=_0x50d113?{..._0x4e7f6d,'st':_0x4e7f6d['st']+_0x1f4648,'ed':_0x4e7f6d['ed']+_0x1f4648}:_0x4e7f6d['ed']>_0x50d113?{..._0x4e7f6d,'ed':_0x4e7f6d['ed']+_0x1f4648}:_0x4e7f6d);}function N(_0x14335b,_0x220ad7,_0x14617e){return _0x14335b==null?void 0x0:_0x14335b['map'](_0x21b4e2=>(0x0,e['shiftInclusiveRangeOnInsert'])(_0x21b4e2,_0x220ad7,_0x14617e));}function Ee(_0xd55a29,_0x3ade02,_0x4de3e7){const _0x1b105b=_0x57f943;return _0xd55a29==null?void 0x0:_0xd55a29[_0x1b105b(0xeb)](_0x43c741=>(0x0,e[_0x1b105b(0x184)])(_0x43c741,_0x3ade02,_0x4de3e7));}function P(_0x26ceaa,_0x3fc9fe,_0x247018){const _0x567dc3=_0x57f943;return _0x26ceaa==null?void 0x0:_0x26ceaa[_0x567dc3(0xeb)](_0x514316=>(0x0,e['shiftInclusiveRangeOnDelete'])(_0x514316,_0x3fc9fe,_0x247018))[_0x567dc3(0x190)](_0x2b1aa1=>_0x2b1aa1!=null);}function F(_0x18797d,_0x412bf4,_0x59de74){const _0x292571=_0x57f943;return _0x18797d==null?void 0x0:_0x18797d[_0x292571(0xeb)](_0x110448=>(0x0,e['shiftExclusiveRangeOnDelete'])(_0x110448,_0x412bf4,_0x59de74))['filter'](_0x4b7fe5=>_0x4b7fe5!=null);}const I={'id':_0x57f943(0xf5),'type':e['CommandType'][_0x57f943(0x19b)],'handler':_0x4e363c=>{const _0xea40c=_0x57f943;var _0x520674;if((0x0,n[_0xea40c(0xd3)])(W(_0x4e363c)))return!0x1;let _0x57507d=(0x0,n[_0xea40c(0x127)])(_0x4e363c);if(_0x57507d)return _0x4e363c[_0xea40c(0x12a)](e['ICommandService'])[_0xea40c(0x175)](R['id'],{'startOffset':_0x57507d[_0xea40c(0x150)],'endOffset':_0x57507d[_0xea40c(0x187)],'insertionMode':_0xea40c(0x11e),'unitId':_0x57507d[_0xea40c(0x125)]});let _0x121a54=je(_0x4e363c);if(!_0x121a54)return!0x1;let _0x152a49=(_0x520674=_0x4e363c['get'](e['IUniverInstanceService'])[_0xea40c(0xe0)](e[_0xea40c(0x158)][_0xea40c(0x189)]))==null?void 0x0:_0x520674[_0xea40c(0xce)](),_0x49a77d=_0x152a49?(0x0,e['getParagraphFollowingBlockOffset'])(_0x152a49,_0x121a54):_0x121a54[_0xea40c(0x121)]+0x1;return _0x4e363c['get'](e[_0xea40c(0x18c)])[_0xea40c(0x175)](R['id'],{'startOffset':_0x49a77d,'endOffset':_0x49a77d});}},L={'id':'docs-code.command.consume-boundary-delete','type':e[_0x57f943(0x18b)][_0x57f943(0x19b)],'handler':()=>!0x0},R={'id':_0x57f943(0x133),'type':e[_0x57f943(0x18b)]['COMMAND'],'handler':(_0x180c84,_0x3a2e9f)=>{const _0x274673=_0x57f943;let _0x155d93=U(_0x180c84,_0x3a2e9f==null?void 0x0:_0x3a2e9f['unitId']);if(!_0x155d93)return!0x1;let _0x32d70a=W(_0x180c84);if((0x0,n[_0x274673(0xd3)])(_0x32d70a))return!0x1;let _0x2e5d70=_0x155d93[_0x274673(0xf6)]['serialize'](_0x155d93[_0x274673(0x125)]),_0x1b4a0b=Oe(_0x3a2e9f,_0x32d70a),_0x550619=ke(_0x155d93[_0x274673(0x123)],_0x1b4a0b);if(_0x550619){if(_0x550619[_0x274673(0x162)]!==e[_0x274673(0x111)][_0x274673(0x154)])return!0x1;let _0x34c27f=v({'blockId':_0x550619[_0x274673(0x143)],'documentData':_0x155d93[_0x274673(0x123)],'metadata':_0x2e5d70});if(!_0x34c27f)return!0x1;let _0x2022f0=J(_0x155d93['commandService'],_0x155d93['selectionManager'],_0x155d93[_0x274673(0x125)],_0x155d93[_0x274673(0x123)],_0x34c27f[_0x274673(0x107)],R['id'],_0x34c27f[_0x274673(0x14e)]);return _0x2022f0&&_0x34c27f[_0x274673(0x122)]&&_0x155d93['model'][_0x274673(0x1a0)](_0x155d93[_0x274673(0x125)],_0x34c27f['nextMetadata']),_0x2022f0;}let _0x57c2fc=(_0x3a2e9f==null?void 0x0:_0x3a2e9f['blockId'])??(0x0,e[_0x274673(0xfd)])(0x6),_0x4a710d;try{_0x4a710d=ee({'blockId':_0x57c2fc,'config':_0x3a2e9f==null?void 0x0:_0x3a2e9f[_0x274673(0x13e)],'documentData':_0x155d93[_0x274673(0x123)],'endOffset':_0x1b4a0b==null?void 0x0:_0x1b4a0b[_0x274673(0x187)],'insertionMode':_0x3a2e9f==null?void 0x0:_0x3a2e9f['insertionMode'],'metadata':_0x2e5d70,'startOffset':_0x1b4a0b==null?void 0x0:_0x1b4a0b[_0x274673(0x150)]});}catch(_0x433241){if(_0x433241 instanceof _)return!0x1;throw _0x433241;}let _0x13321f=J(_0x155d93[_0x274673(0x16b)],_0x155d93[_0x274673(0x17f)],_0x155d93[_0x274673(0x125)],_0x155d93[_0x274673(0x123)],_0x4a710d['nextDocumentData'],R['id'],_0x4a710d[_0x274673(0x14e)]);return _0x13321f&&_0x4a710d[_0x274673(0x122)]&&_0x155d93[_0x274673(0xf6)]['deserialize'](_0x155d93[_0x274673(0x125)],_0x4a710d[_0x274673(0x122)]),_0x13321f;}},z={'id':_0x57f943(0x137),'type':e[_0x57f943(0x18b)]['COMMAND'],'handler':(_0xf4b163,_0x334210)=>{const _0x109783=_0x57f943;if(!_0x334210)return!0x1;let _0xa30f0c=U(_0xf4b163,_0x334210[_0x109783(0x125)]);if(!_0xa30f0c)return!0x1;let _0x5eb04e=ie({'blockId':_0x334210[_0x109783(0x143)],'config':_0x334210[_0x109783(0x13e)],'documentData':_0xa30f0c[_0x109783(0x123)],'metadata':_0xa30f0c[_0x109783(0xf6)][_0x109783(0x193)](_0xa30f0c[_0x109783(0x125)])});return _0x5eb04e[_0x109783(0x122)]&&_0xa30f0c['model'][_0x109783(0x1a0)](_0xa30f0c['unitId'],_0x5eb04e[_0x109783(0x122)]),!0x0;}},De={'id':_0x57f943(0x11f),'type':e[_0x57f943(0x18b)][_0x57f943(0x19b)],'handler':(_0x25e172,_0x39b5ef)=>B[_0x57f943(0x169)](_0x25e172,_0x39b5ef)},B={'id':_0x57f943(0x12e),'type':e[_0x57f943(0x18b)]['COMMAND'],'handler':(_0x29a213,_0x39b7b0)=>{const _0x19bb14=_0x57f943;if(!_0x39b7b0)return!0x1;let _0x5dcaee=U(_0x29a213,_0x39b7b0==null?void 0x0:_0x39b7b0[_0x19bb14(0x125)]);if(!_0x5dcaee)return!0x1;let _0x4dba73=v({'blockId':_0x39b7b0[_0x19bb14(0x143)],'documentData':_0x5dcaee[_0x19bb14(0x123)],'metadata':_0x5dcaee[_0x19bb14(0xf6)][_0x19bb14(0x193)](_0x5dcaee[_0x19bb14(0x125)])});if(!_0x4dba73)return!0x1;let _0x32540f=J(_0x5dcaee['commandService'],_0x5dcaee[_0x19bb14(0x17f)],_0x5dcaee['unitId'],_0x5dcaee['previousDocumentData'],_0x4dba73[_0x19bb14(0x107)],B['id'],_0x4dba73[_0x19bb14(0x14e)]);return _0x32540f&&_0x4dba73['nextMetadata']&&_0x5dcaee[_0x19bb14(0xf6)][_0x19bb14(0x1a0)](_0x5dcaee[_0x19bb14(0x125)],_0x4dba73[_0x19bb14(0x122)]),_0x32540f;}},V={'id':_0x57f943(0x159),'type':e['CommandType'][_0x57f943(0x19b)],'handler':(_0x50c72a,_0xbc17c1)=>{const _0x567ce1=_0x57f943;if(!_0xbc17c1)return!0x1;let _0x554d50=U(_0x50c72a,_0xbc17c1==null?void 0x0:_0xbc17c1[_0x567ce1(0x125)]);if(!_0x554d50)return!0x1;let _0x3286d6=ae({'blockId':_0xbc17c1[_0x567ce1(0x143)],'documentData':_0x554d50[_0x567ce1(0x123)],'metadata':_0x554d50[_0x567ce1(0xf6)]['serialize'](_0x554d50[_0x567ce1(0x125)])});if(!_0x3286d6)return!0x1;let _0x52dafe=J(_0x554d50[_0x567ce1(0x16b)],_0x554d50[_0x567ce1(0x17f)],_0x554d50[_0x567ce1(0x125)],_0x554d50['previousDocumentData'],_0x3286d6['nextDocumentData'],V['id'],_0x3286d6[_0x567ce1(0x14e)]);return _0x52dafe&&_0x3286d6['nextMetadata']&&_0x554d50[_0x567ce1(0xf6)][_0x567ce1(0x1a0)](_0x554d50['unitId'],_0x3286d6[_0x567ce1(0x122)]),_0x52dafe;}},H={'id':_0x57f943(0x196),'type':e[_0x57f943(0x18b)][_0x57f943(0x19b)],'handler':(_0x417553,_0x5e9b82)=>{const _0x16fe2d=_0x57f943;var _0x12f21e;let _0x33c593=U(_0x417553,_0x5e9b82==null?void 0x0:_0x5e9b82[_0x16fe2d(0x125)]);if(!_0x33c593)return!0x1;let _0x369b3b=(_0x5e9b82==null?void 0x0:_0x5e9b82[_0x16fe2d(0x14e)])??((_0x12f21e=W(_0x417553))==null?void 0x0:_0x12f21e[_0x16fe2d(0x150)]);if(_0x369b3b==null)return!0x1;let _0x261ba2=y({'cursorOffset':_0x369b3b,'documentData':_0x33c593[_0x16fe2d(0x123)],'paragraphStartIndex':_0x5e9b82==null?void 0x0:_0x5e9b82[_0x16fe2d(0x124)]});return _0x261ba2?J(_0x33c593[_0x16fe2d(0x16b)],_0x33c593[_0x16fe2d(0x17f)],_0x33c593[_0x16fe2d(0x125)],_0x33c593[_0x16fe2d(0x123)],_0x261ba2[_0x16fe2d(0x107)],H['id'],_0x261ba2[_0x16fe2d(0x14e)]):!0x1;}};function U(_0x2929b0,_0xc6ab1b){const _0x535a8a=_0x57f943;let _0x2d9aee=_0x2929b0['get'](e[_0x535a8a(0x109)]),_0x151a6d=_0xc6ab1b?_0x2d9aee['getUnit'](_0xc6ab1b,e['UniverInstanceType'][_0x535a8a(0x189)]):_0x2d9aee['getCurrentUnitOfType'](e['UniverInstanceType'][_0x535a8a(0x189)]);return _0x151a6d?{'commandService':_0x2929b0[_0x535a8a(0x12a)](e['ICommandService']),'model':_0x2929b0[_0x535a8a(0x12a)](p),'previousDocumentData':_0x151a6d[_0x535a8a(0x135)](),'selectionManager':_0x2929b0[_0x535a8a(0x12a)](n[_0x535a8a(0xf2)]),'unitId':_0x151a6d[_0x535a8a(0x11b)]()}:null;}function W(_0x70bad2){const _0x3c4d45=_0x57f943;var _0x4ebc1b;return(_0x4ebc1b=_0x70bad2[_0x3c4d45(0x12a)](n[_0x3c4d45(0xf2)])[_0x3c4d45(0x105)]())==null?void 0x0:_0x4ebc1b[0x0];}function Oe(_0x1f6d62,_0x5000a8){const _0x884d9e=_0x57f943;let _0x3da81c=(_0x1f6d62==null?void 0x0:_0x1f6d62[_0x884d9e(0x150)])??(_0x5000a8==null?void 0x0:_0x5000a8['startOffset']),_0x2539a7=(_0x1f6d62==null?void 0x0:_0x1f6d62['endOffset'])??(_0x5000a8==null?void 0x0:_0x5000a8['endOffset']);if(_0x3da81c!=null&&_0x2539a7!=null)return{'endOffset':Math[_0x884d9e(0x191)](_0x3da81c,_0x2539a7),'startOffset':Math[_0x884d9e(0x155)](_0x3da81c,_0x2539a7)};}function ke(_0x82755d,_0x34a46){const _0x4f427a=_0x57f943;var _0x1e2466;if(!_0x34a46)return;let _0x5a80a6=Ae(_0x34a46);return(_0x1e2466=_0x82755d[_0x4f427a(0x148)])==null||(_0x1e2466=_0x1e2466[_0x4f427a(0xd0)])==null?void 0x0:_0x1e2466[_0x4f427a(0xda)](_0x18af13=>{const _0x2460d2=_0x4f427a;let _0x3696ef=(0x0,e['getBlockRangeInterval'])(_0x18af13);return _0x34a46[_0x2460d2(0x150)]===_0x34a46[_0x2460d2(0x187)]?(0x0,e['containsInteriorInsertionOffset'])(_0x3696ef,_0x5a80a6):(0x0,e[_0x2460d2(0x10e)])(_0x3696ef,_0x5a80a6);});}function Ae(_0xda7cbb){const _0x36338e=_0x57f943;return _0xda7cbb[_0x36338e(0x150)]===_0xda7cbb['endOffset']?_0xda7cbb[_0x36338e(0x150)]:_0xda7cbb['startOffset']+0x1;}function je(_0x3d5b70){const _0x31f26a=_0x57f943;let _0x4ff77b=W(_0x3d5b70);if(!_0x4ff77b)return null;let _0x588104=_0x3d5b70[_0x31f26a(0x12a)](e[_0x31f26a(0x109)])['getCurrentUnitOfType'](e[_0x31f26a(0x158)][_0x31f26a(0x189)]),_0x2faf0=_0x588104==null?void 0x0:_0x588104[_0x31f26a(0xce)]();return _0x2faf0?e[_0x31f26a(0x182)][_0x31f26a(0x101)][_0x31f26a(0x12f)](_0x4ff77b,_0x2faf0[_0x31f26a(0x157)]??[],_0x2faf0[_0x31f26a(0x126)]??'')[0x0]??null:null;}function Me(_0x1c0870,_0x2bb6ad){const _0x4ed1b5=_0x57f943;let _0x45536c=_0x1c0870[_0x4ed1b5(0x148)],_0x24aa97=_0x2bb6ad[_0x4ed1b5(0x148)],_0x43e48e=(0x0,e[_0x4ed1b5(0x14c)])(_0x45536c,_0x24aa97);return[_0x43e48e&&_0x24aa97?Ne(_0x24aa97,_0x43e48e):null,_0x43e48e?null:Pe(_0x45536c,_0x24aa97)][_0x4ed1b5(0x190)](Boolean)['reduce']((_0x3d830d,_0x29503d)=>e[_0x4ed1b5(0x17a)]['compose'](_0x3d830d,_0x29503d),null);}function Ne(_0x226139,_0x50dfa0){const _0x2eebe2=_0x57f943;let _0x4407a2=new e['TextX']();return _0x4407a2['retain'](_0x50dfa0[_0x2eebe2(0xe2)]),_0x50dfa0[_0x2eebe2(0x118)]>0x0&&_0x4407a2[_0x2eebe2(0x163)](_0x50dfa0['insertLength'],(0x0,e['getBodySliceForTextXAction'])(_0x226139,_0x50dfa0[_0x2eebe2(0xe2)],_0x50dfa0[_0x2eebe2(0xe2)]+_0x50dfa0[_0x2eebe2(0x118)],!0x1)),_0x50dfa0[_0x2eebe2(0xea)]>0x0&&_0x4407a2[_0x2eebe2(0x13d)](_0x50dfa0[_0x2eebe2(0xea)]),e['JSONX'][_0x2eebe2(0x156)]()[_0x2eebe2(0x14b)](_0x4407a2['serialize'](),['body']);}function Pe(_0x49e6b9,_0xff317c){const _0x43fd6a=_0x57f943;let _0x45bd91=[],_0x77e577=_0x49e6b9?G(_0x49e6b9):void 0x0,_0x1b5a9a=_0xff317c?G(_0xff317c):void 0x0;for(let _0x160780 of Fe)K(e[_0x43fd6a(0x17a)][_0x43fd6a(0x156)](),[_0x43fd6a(0x148),_0x160780],_0x77e577==null?void 0x0:_0x77e577[_0x160780],_0x1b5a9a==null?void 0x0:_0x1b5a9a[_0x160780],_0x45bd91);return _0x45bd91[_0x43fd6a(0x17c)]((_0x552843,_0x49df96)=>e[_0x43fd6a(0x17a)][_0x43fd6a(0xdc)](_0x552843,_0x49df96),null);}const Fe=[_0x57f943(0x157),_0x57f943(0x12b),_0x57f943(0x174),_0x57f943(0x19c),_0x57f943(0xd0),_0x57f943(0xfa),_0x57f943(0x106),_0x57f943(0x149),_0x57f943(0x195)];function G(_0x3905ed){return _0x3905ed;}function K(_0xa9467,_0x5de03f,_0x44484c,_0x34fb53,_0xfd8a23){const _0x2676db=_0x57f943;if(!q(_0x44484c,_0x34fb53)){if(_0x44484c==null){_0xfd8a23['push'](_0xa9467[_0x2676db(0xd9)](_0x5de03f,_0x34fb53));return;}if(_0x34fb53==null){_0xfd8a23[_0x2676db(0x164)](_0xa9467[_0x2676db(0x108)](_0x5de03f,_0x44484c));return;}if(Array[_0x2676db(0x183)](_0x44484c)&&Array['isArray'](_0x34fb53)){Ie(_0xa9467,_0x5de03f,_0x44484c,_0x34fb53,_0xfd8a23);return;}if(Le(_0x44484c)&&Le(_0x34fb53)){new Set([...Object[_0x2676db(0x116)](_0x44484c),...Object['keys'](_0x34fb53)])['forEach'](_0x18b7fb=>{K(_0xa9467,[..._0x5de03f,_0x18b7fb],_0x44484c[_0x18b7fb],_0x34fb53[_0x18b7fb],_0xfd8a23);});return;}_0xfd8a23[_0x2676db(0x164)](_0xa9467[_0x2676db(0x1a1)](_0x5de03f,_0x44484c,_0x34fb53));}}function Ie(_0x19ba78,_0x3c8e90,_0xe2a86,_0xeb4624,_0x2ba318){const _0x4840c1=_0x57f943;if(_0xe2a86['length']===_0xeb4624[_0x4840c1(0x14a)]){_0xe2a86[_0x4840c1(0x19d)]((_0x16fd16,_0x4260b7)=>K(_0x19ba78,[..._0x3c8e90,_0x4260b7],_0x16fd16,_0xeb4624[_0x4260b7],_0x2ba318));return;}let _0x56729b=0x0;for(;_0x56729b<_0xe2a86['length']&&_0x56729b<_0xeb4624[_0x4840c1(0x14a)]&&q(_0xe2a86[_0x56729b],_0xeb4624[_0x56729b]);)_0x56729b++;let _0x4f0382=_0xe2a86['length']-0x1,_0x53ac05=_0xeb4624[_0x4840c1(0x14a)]-0x1;for(;_0x4f0382>=_0x56729b&&_0x53ac05>=_0x56729b&&q(_0xe2a86[_0x4f0382],_0xeb4624[_0x53ac05]);)_0x4f0382--,_0x53ac05--;for(let _0x6f7192=_0x4f0382;_0x6f7192>=_0x56729b;_0x6f7192--)_0x2ba318[_0x4840c1(0x164)](_0x19ba78['removeOp']([..._0x3c8e90,_0x6f7192],_0xe2a86[_0x6f7192]));for(let _0x550f50=_0x56729b;_0x550f50<=_0x53ac05;_0x550f50++)_0x2ba318[_0x4840c1(0x164)](_0x19ba78[_0x4840c1(0xd9)]([..._0x3c8e90,_0x550f50],_0xeb4624[_0x550f50]));}function Le(_0x21bd77){return typeof _0x21bd77=='object'&&!!_0x21bd77&&!Array['isArray'](_0x21bd77);}function q(_0x31aaa0,_0x3fd0c8){const _0x16dc59=_0x57f943;return JSON[_0x16dc59(0x15a)](_0x31aaa0)===JSON[_0x16dc59(0x15a)](_0x3fd0c8);}function J(_0x70349b,_0x27c2c7,_0x2c2ca4,_0x4ceb1b,_0x453d5c,_0x1b9374,_0x4ef08a){const _0x416529=_0x57f943;let _0x549e98=Me(_0x4ceb1b,_0x453d5c);return _0x549e98?!!_0x70349b[_0x416529(0x175)](n[_0x416529(0xdf)]['id'],{'unitId':_0x2c2ca4,'actions':_0x549e98,'textRanges':[{'startOffset':_0x4ef08a,'endOffset':_0x4ef08a,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x1b9374}):(_0x27c2c7[_0x416529(0x134)]([{'startOffset':_0x4ef08a,'endOffset':_0x4ef08a}],{'unitId':_0x2c2ca4,'subUnitId':_0x2c2ca4},!0x1),!0x0);}const Y='DOC_CODE_PLUGIN';var Re=_0x57f943(0xd8),ze=_0x57f943(0x192);function _0x323a(){const _0xeef336=['merge','call','containsStreamIndex','TRUE','columns','DocumentBlockRangeType','direction','endTokenOffset','normalizeDocsCodeMetadataResource','intersectsOperationalIntervals','keys','createParagraphId','insertLength','docs-code.config','isCodeBoundaryDelete','getUnitId','paragraph','keepNext','insert-new','docs-code.command.exit','next','startIndex','nextMetadata','previousDocumentData','paragraphStartIndex','unitId','dataStream','getContentInsertRange','UniverDocsPlugin','function','get','sectionBreaks','TABLE_CELL_END','UniverDocsCodePlugin','docs-code.command.unwrap','getParagraphsInRange','DocsCodeInsertBelowCommand','_config','SetDocsCodeConfigMutation','docs-code.command.insert','replaceDocRanges','getSnapshot','BLOCK_END','docs-code.command.update','3083792KFnUqj','slice','iterator','DocsCodeInsertCommand','RemoveDocsCodeConfigMutation','delete','config','from','DocsCodeCancelEmptyParagraphCommand','3363438qONloV','right','blockId','fromEntries','_resourceManagerService','DataStreamTreeTokenType','asObservable','body','customDecorations','length','editOp','getSingleDataStreamChange','992keyFef','cursorOffset','registerCommand','startOffset','default','Injector','docs-code.mutation.set-config','CODE','min','getInstance','paragraphs','UniverInstanceType','docs-code.command.remove','stringify','_resources','indexOf','1600574JSbVXh','codes','bullet','monospace','getBlockRangeInterval','blockType','insert','push','removeCode','6572412scfeRq','_configService','registerPluginResource','handler','DocsCodeModel','commandService','3468HbVFBs','paragraphId','BooleanNumber','indentEnd','toPrimitive','version','_injector','convert-paragraph','tables','syncExecuteCommand','9825907qhQjAz','FALSE','DocsCodeConsumeBoundaryDeleteCommand','containsInteriorInsertionOffset','JSONX','setCodeConfig','reduce','DocsCodeUpdateCommand','constructor','selectionManager','_docsCodeModel','defineProperty','BuildTextUtils','isArray','shiftExclusiveRangeOnInsert','UniverLicensePlugin','object','endOffset','DocsCodeRemoveCommand','UNIVER_DOC','Inject','CommandType','ICommandService','spaceAbove','1kRpXIC','Subject','filter','max','1.0.0-insiders.20260808-70eefdd','serialize','keepLines','textRuns','docs-code.command.cancel-empty-paragraph','endsWith','IResourceManagerService','TABLE_CELL_START','Document\x20body\x20is\x20required','COMMAND','columnGroups','forEach','_setResource','dispose','deserialize','replaceOp','DOCS_CODE_PLUGIN','getBody','insertionMode','blockRanges','IConfigService','getOwnPropertyDescriptor','isHeaderFooterSelection','getParagraphContentStartOffsets','left','set','paragraphStyle','@univerjs-pro/docs-code','insertOp','find','decorate','compose','Module','symbol','RichTextEditingMutation','getCurrentUnitOfType','removeUnit','start','_commandService','SECTION_BREAK','entries','widowControl','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','getParagraphContentStartOffset','sort','deleteLength','map','change$','documentData','Plugin','javascript','startTokenOffset','metadata','DocSelectionManagerService','PARAGRAPH','endIndex','docs-code.command.insert-below','model','packageName','textStyle','some','customBlocks','DependentOn','prototype','generateRandomId','MUTATION','_initResource','1449840qUqHsp','range','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','Disposable','setConfig','getTextRanges','customRanges','nextDocumentData','removeOp','IUniverInstanceService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_change$'];_0x323a=function(){return _0xeef336;};return _0x323a();}const Be={};function X(_0x1c303c,_0xebb197){return function(_0x2ef562,_0x3889b2){_0xebb197(_0x2ef562,_0x3889b2,_0x1c303c);};}function Z(_0x426378,_0x5240cb,_0x53ada7,_0x2a836a){const _0x275dc3=_0x57f943;var _0x3f5d09=arguments[_0x275dc3(0x14a)],_0xd79127=_0x3f5d09<0x3?_0x5240cb:_0x2a836a===null?_0x2a836a=Object[_0x275dc3(0xd2)](_0x5240cb,_0x53ada7):_0x2a836a,_0xa15df2;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x275dc3(0x129))_0xd79127=Reflect[_0x275dc3(0xdb)](_0x426378,_0x5240cb,_0x53ada7,_0x2a836a);else{for(var _0x2756f2=_0x426378[_0x275dc3(0x14a)]-0x1;_0x2756f2>=0x0;_0x2756f2--)(_0xa15df2=_0x426378[_0x2756f2])&&(_0xd79127=(_0x3f5d09<0x3?_0xa15df2(_0xd79127):_0x3f5d09>0x3?_0xa15df2(_0x5240cb,_0x53ada7,_0xd79127):_0xa15df2(_0x5240cb,_0x53ada7))||_0xd79127);}return _0x3f5d09>0x3&&_0xd79127&&Object[_0x275dc3(0x181)](_0x5240cb,_0x53ada7,_0xd79127),_0xd79127;}let Q=class extends e['Disposable']{constructor(_0x225a8a,_0x341b5c){const _0xd6f87=_0x57f943;super(),this[_0xd6f87(0x145)]=_0x225a8a,this['_docsCodeModel']=_0x341b5c,this[_0xd6f87(0xff)]();}[_0x57f943(0xff)](){const _0x57c62d=_0x57f943;this['disposeWithMe'](this['_resourceManagerService'][_0x57c62d(0x168)]({'pluginName':Y,'businesses':[e[_0x57c62d(0x158)][_0x57c62d(0x189)]],'toJson':_0x42914d=>JSON[_0x57c62d(0x15a)](this['_docsCodeModel'][_0x57c62d(0x193)](_0x42914d)),'parseJson':_0x33fa8b=>o(JSON['parse'](_0x33fa8b)),'onLoad':(_0x92181f,_0x276cc7)=>this[_0x57c62d(0x180)]['deserialize'](_0x92181f,_0x276cc7),'onUnLoad':_0x47562f=>this[_0x57c62d(0x180)][_0x57c62d(0xe1)](_0x47562f)}));}};Q=Z([X(0x0,e[_0x57f943(0x198)]),X(0x1,(0x0,e[_0x57f943(0x18a)])(p))],Q);let $=class extends e[_0x57f943(0xee)]{constructor(_0x21e475=Be,_0x4c461e,_0x12dfc8,_0x5ba3da){const _0x88a670=_0x57f943;super(),this[_0x88a670(0x131)]=_0x21e475,this[_0x88a670(0x172)]=_0x4c461e,this[_0x88a670(0xe3)]=_0x12dfc8,this[_0x88a670(0x167)]=_0x5ba3da;let {..._0xbe4825}=(0x0,e[_0x88a670(0x10c)])({},Be,this[_0x88a670(0x131)]);this[_0x88a670(0x167)][_0x88a670(0x104)](_0x88a670(0x119),_0xbe4825);}['onStarting'](){const _0x50c5cc=_0x57f943;this[_0x50c5cc(0x172)]['add']([p]),this[_0x50c5cc(0x172)]['add']([Q]),this[_0x50c5cc(0x172)]['get'](p),this['_injector'][_0x50c5cc(0x12a)](Q),[R,I,z,B,V,De,H,L,m,h][_0x50c5cc(0x19d)](_0x4636be=>this['disposeWithMe'](this[_0x50c5cc(0xe3)][_0x50c5cc(0x14f)](_0x4636be)));}};f($,'pluginName',Y),f($,_0x57f943(0xf7),Re),f($,_0x57f943(0x171),ze),f($,'type',e[_0x57f943(0x158)][_0x57f943(0x189)]),$=Z([(0x0,e[_0x57f943(0xfb)])(r[_0x57f943(0x185)],n[_0x57f943(0x128)]),X(0x1,(0x0,e[_0x57f943(0x18a)])(e[_0x57f943(0x152)])),X(0x2,e['ICommandService']),X(0x3,e[_0x57f943(0xd1)])],$),exports[_0x57f943(0xcd)]=Y,exports[_0x57f943(0x140)]=H,exports[_0x57f943(0x178)]=L,exports[_0x57f943(0x130)]=I,exports[_0x57f943(0x13b)]=R,exports[_0x57f943(0x16a)]=p,exports[_0x57f943(0x188)]=V,exports['DocsCodeUnwrapCommand']=B,exports[_0x57f943(0x17d)]=z,exports[_0x57f943(0x13c)]=h,exports[_0x57f943(0x132)]=m,Object[_0x57f943(0x181)](exports,_0x57f943(0x12d),{'enumerable':!0x0,'get':function(){return $;}}),exports['buildCancelEmptyCodeParagraphActions']=y,exports[_0x57f943(0x11a)]=se,exports['normalizeDocsCodeConfig']=a,exports[_0x57f943(0x114)]=o;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x5d34(){var _0x39bab6=['blockRanges','function','1108933ybdeRP','getCodeAt','get','_injector','from','getCodeConfig','default','toPrimitive','endIndex','config','remove','getText','_createFDocumentCode','describe','object','blockType','SECTION_BREAK','iterator','_blockId','CODE','getOwnPropertyDescriptor','map','insertCode','findCodeByText','prototype','syncExecuteCommand','getCode','join','BLOCK_START','_getBlockRange','save','708272Jklmgr','includes','string','createInstance','getId','blockId','decorate','dataStream','getConfig','17836587RKRMPX','body','call','defineProperty','5YsZACJ','slice','2233836LpPDnD','getRange','text','_getDocumentData','unwrap','constructor','length','6VTayGO','PARAGRAPH','find','findCodes','541432mdZrzJ','replace','filter','startIndex','_getBlockRanges','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_document','_unitId','454862PisSaA','2315108bpHnLi','some','updateConfig'];_0x5d34=function(){return _0x39bab6;};return _0x5d34();}var _0x6e8a43=_0x3a28;(function(_0x39988e,_0x42f7af){var _0x253d84=_0x3a28,_0x20f169=_0x39988e();while(!![]){try{var _0x2cccda=parseInt(_0x253d84(0x166))/0x1+-parseInt(_0x253d84(0x141))/0x2*(-parseInt(_0x253d84(0x135))/0x3)+parseInt(_0x253d84(0x142))/0x4+-parseInt(_0x253d84(0x173))/0x5*(-parseInt(_0x253d84(0x175))/0x6)+parseInt(_0x253d84(0x147))/0x7+parseInt(_0x253d84(0x139))/0x8+-parseInt(_0x253d84(0x16f))/0x9;if(_0x2cccda===_0x42f7af)break;else _0x20f169['push'](_0x20f169['shift']());}catch(_0x552719){_0x20f169['push'](_0x20f169['shift']());}}}(_0x5d34,0x57848));import{DocsCodeInsertCommand as _0x4c66f5,DocsCodeModel as _0xd54d04,DocsCodeRemoveCommand as _0x103dc4,DocsCodeUnwrapCommand as _0x7a05e2,DocsCodeUpdateCommand as _0x505c92,normalizeDocsCodeConfig as _0x20e5d0}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x40ad5c,DocumentBlockRangeType as _0x5c05c0,ICommandService as _0x142736,Inject as _0x4c7390,Injector as _0x3d0e3d,generateRandomId as _0x4afe0c}from'@univerjs/core';import{FDocument as _0x40f090,isParagraphFacade as _0x5672a4}from'@univerjs/docs/facade';function m(_0x1fcd5f){'@babel/helpers - typeof';var _0x1e5e6f=_0x3a28;return m=typeof Symbol==_0x1e5e6f(0x146)&&typeof Symbol[_0x1e5e6f(0x158)]=='symbol'?function(_0xe931c8){return typeof _0xe931c8;}:function(_0x557460){var _0x2d2798=_0x1e5e6f;return _0x557460&&typeof Symbol=='function'&&_0x557460[_0x2d2798(0x133)]===Symbol&&_0x557460!==Symbol[_0x2d2798(0x15f)]?'symbol':typeof _0x557460;},m(_0x1fcd5f);}function h(_0x68fde2,_0x4b0dad){var _0x2e279b=_0x3a28;if(m(_0x68fde2)!=_0x2e279b(0x155)||!_0x68fde2)return _0x68fde2;var _0x19886a=_0x68fde2[Symbol[_0x2e279b(0x14e)]];if(_0x19886a!==void 0x0){var _0x18a49b=_0x19886a[_0x2e279b(0x171)](_0x68fde2,_0x4b0dad||_0x2e279b(0x14d));if(m(_0x18a49b)!=_0x2e279b(0x155))return _0x18a49b;throw TypeError(_0x2e279b(0x13e));}return(_0x4b0dad==='string'?String:Number)(_0x68fde2);}function g(_0x5b592c){var _0x1ef421=_0x3a28,_0x3ff248=h(_0x5b592c,_0x1ef421(0x168));return m(_0x3ff248)=='symbol'?_0x3ff248:_0x3ff248+'';}function _0x3a28(_0x22f04e,_0x220b00){_0x22f04e=_0x22f04e-0x131;var _0x5d34d1=_0x5d34();var _0x3a2841=_0x5d34d1[_0x22f04e];return _0x3a2841;}function _(_0x479d33,_0x58cb6b,_0x4df176){var _0x56f286=_0x3a28;return(_0x58cb6b=g(_0x58cb6b))in _0x479d33?Object[_0x56f286(0x172)](_0x479d33,_0x58cb6b,{'value':_0x4df176,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x479d33[_0x58cb6b]=_0x4df176,_0x479d33;}function v(_0x566f24,_0x42df6f){return function(_0x49d549,_0x585c75){_0x42df6f(_0x49d549,_0x585c75,_0x566f24);};}function y(_0x49b41e,_0x35596e,_0x428492,_0x17926b){var _0x59ec2d=_0x3a28,_0x2ee889=arguments[_0x59ec2d(0x134)],_0x4d50d6=_0x2ee889<0x3?_0x35596e:_0x17926b===null?_0x17926b=Object[_0x59ec2d(0x15b)](_0x35596e,_0x428492):_0x17926b,_0x16bab0;if(typeof Reflect==_0x59ec2d(0x155)&&typeof Reflect[_0x59ec2d(0x16c)]=='function')_0x4d50d6=Reflect['decorate'](_0x49b41e,_0x35596e,_0x428492,_0x17926b);else{for(var _0x3664dd=_0x49b41e[_0x59ec2d(0x134)]-0x1;_0x3664dd>=0x0;_0x3664dd--)(_0x16bab0=_0x49b41e[_0x3664dd])&&(_0x4d50d6=(_0x2ee889<0x3?_0x16bab0(_0x4d50d6):_0x2ee889>0x3?_0x16bab0(_0x35596e,_0x428492,_0x4d50d6):_0x16bab0(_0x35596e,_0x428492))||_0x4d50d6);}return _0x2ee889>0x3&&_0x4d50d6&&Object['defineProperty'](_0x35596e,_0x428492,_0x4d50d6),_0x4d50d6;}let b=class{constructor(_0x1f5e69,_0x4833e4,_0x5b349d){var _0x50757e=_0x3a28;this[_0x50757e(0x13f)]=_0x1f5e69,this[_0x50757e(0x159)]=_0x4833e4,this[_0x50757e(0x14a)]=_0x5b349d,_(this,'_unitId',void 0x0),this[_0x50757e(0x140)]=this[_0x50757e(0x13f)][_0x50757e(0x16a)]();}[_0x6e8a43(0x16a)](){var _0xcd5709=_0x6e8a43;return this[_0xcd5709(0x159)];}[_0x6e8a43(0x176)](){var _0x41683a=_0x6e8a43;let _0x488c0c=this[_0x41683a(0x164)]();return _0x488c0c?{'blockId':_0x488c0c['blockId'],'endIndex':_0x488c0c['endIndex'],'startIndex':_0x488c0c[_0x41683a(0x13c)]}:null;}['getText'](){var _0x3040df=_0x6e8a43,_0x1dd0d3;let _0x3037a3=this[_0x3040df(0x164)](),_0x309da0=(_0x1dd0d3=this[_0x3040df(0x131)]()[_0x3040df(0x170)])==null?void 0x0:_0x1dd0d3[_0x3040df(0x16d)];return!_0x3037a3||!_0x309da0?'':x(_0x309da0[_0x3040df(0x174)](_0x3037a3[_0x3040df(0x13c)]+0x1,_0x3037a3[_0x3040df(0x14f)]));}[_0x6e8a43(0x154)](){var _0x2d91a0=_0x6e8a43;let _0x239fe5=this[_0x2d91a0(0x176)]();return _0x239fe5?{..._0x239fe5,'config':this['getConfig'](),'text':this['getText'](),'type':_0x5c05c0[_0x2d91a0(0x15a)]}:null;}[_0x6e8a43(0x16e)](){var _0x4a7720=_0x6e8a43;return _0x20e5d0(this[_0x4a7720(0x14a)][_0x4a7720(0x149)](_0xd54d04)[_0x4a7720(0x14c)](this[_0x4a7720(0x140)],this['_blockId']));}[_0x6e8a43(0x144)](_0x5fd273){var _0x6ff30a=_0x6e8a43;return this[_0x6ff30a(0x14a)][_0x6ff30a(0x149)](_0x142736)[_0x6ff30a(0x160)](_0x505c92['id'],{'blockId':this[_0x6ff30a(0x159)],'config':_0x5fd273[_0x6ff30a(0x150)],'unitId':this[_0x6ff30a(0x140)]});}[_0x6e8a43(0x132)](){var _0x1eebe7=_0x6e8a43;return this[_0x1eebe7(0x14a)][_0x1eebe7(0x149)](_0x142736)[_0x1eebe7(0x160)](_0x7a05e2['id'],{'blockId':this['_blockId'],'unitId':this[_0x1eebe7(0x140)]});}[_0x6e8a43(0x151)](){var _0x1aaeb1=_0x6e8a43;return this['_injector'][_0x1aaeb1(0x149)](_0x142736)[_0x1aaeb1(0x160)](_0x103dc4['id'],{'blockId':this[_0x1aaeb1(0x159)],'unitId':this[_0x1aaeb1(0x140)]});}[_0x6e8a43(0x164)](){var _0x21873e=_0x6e8a43,_0x1ba57f;return((_0x1ba57f=this[_0x21873e(0x131)]()[_0x21873e(0x170)])==null||(_0x1ba57f=_0x1ba57f[_0x21873e(0x145)])==null?void 0x0:_0x1ba57f['find'](_0x53f07b=>_0x53f07b[_0x21873e(0x16b)]===this[_0x21873e(0x159)]&&_0x53f07b['blockType']===_0x5c05c0['CODE']))??null;}[_0x6e8a43(0x131)](){var _0x540e4d=_0x6e8a43;return this[_0x540e4d(0x13f)][_0x540e4d(0x165)]();}};b=y([v(0x2,_0x4c7390(_0x3d0e3d))],b);function x(_0xbdbc9e){var _0x48d9bc=_0x6e8a43;return Array[_0x48d9bc(0x14b)](_0xbdbc9e)[_0x48d9bc(0x15c)](_0x3e5604=>_0x3e5604===_0x40ad5c[_0x48d9bc(0x136)]?'\x0a':_0x3e5604)['filter'](_0x17ae53=>_0x17ae53!==_0x40ad5c[_0x48d9bc(0x163)]&&_0x17ae53!==_0x40ad5c['BLOCK_END']&&_0x17ae53!==_0x40ad5c[_0x48d9bc(0x157)])[_0x48d9bc(0x162)]('')[_0x48d9bc(0x13a)](/\n$/,'');}var S=class extends _0x40f090{['getCodes'](){var _0x47bc13=_0x6e8a43;return this['_getBlockRanges']()[_0x47bc13(0x13b)](_0x5a3206=>_0x5a3206[_0x47bc13(0x156)]===_0x5c05c0['CODE'])[_0x47bc13(0x15c)](_0x55c935=>this[_0x47bc13(0x153)](_0x55c935['blockId']));}[_0x6e8a43(0x161)](_0x2b11e1){var _0x220208=_0x6e8a43;return this['_getBlockRanges']()[_0x220208(0x143)](_0x45aa10=>_0x45aa10[_0x220208(0x16b)]===_0x2b11e1&&_0x45aa10[_0x220208(0x156)]===_0x5c05c0[_0x220208(0x15a)])?this[_0x220208(0x153)](_0x2b11e1):null;}[_0x6e8a43(0x148)](_0x19f522){var _0x4908fa=_0x6e8a43;let _0x93ed8f=this['_getBlockRanges']()[_0x4908fa(0x137)](_0x317ec8=>_0x317ec8[_0x4908fa(0x156)]===_0x5c05c0[_0x4908fa(0x15a)]&&_0x317ec8[_0x4908fa(0x13c)]<=_0x19f522&&_0x19f522<=_0x317ec8['endIndex']);return _0x93ed8f?this[_0x4908fa(0x153)](_0x93ed8f['blockId']):null;}[_0x6e8a43(0x15e)](_0xd9c8fc){return this['findCodes'](_0xd9c8fc)[0x0]??null;}[_0x6e8a43(0x138)](_0x20e4c1){var _0x11ed1f=_0x6e8a43;let _0x4af133=typeof _0x20e4c1==_0x11ed1f(0x168)?{'text':_0x20e4c1}:_0x20e4c1;return this['getCodes']()[_0x11ed1f(0x13b)](_0xda9f6f=>!(_0x4af133[_0x11ed1f(0x16b)]&&_0xda9f6f[_0x11ed1f(0x16a)]()!==_0x4af133[_0x11ed1f(0x16b)]||_0x4af133[_0x11ed1f(0x177)]&&!_0xda9f6f[_0x11ed1f(0x152)]()[_0x11ed1f(0x167)](_0x4af133[_0x11ed1f(0x177)])));}[_0x6e8a43(0x15d)](_0x27fcea={},_0x4dfccb={}){var _0x2f805d=_0x6e8a43;let _0x41fb21=this[_0x2f805d(0x14a)][_0x2f805d(0x149)](_0x142736),_0x46298b=_0x5672a4(_0x27fcea)?{..._0x4dfccb,..._0x27fcea[_0x2f805d(0x176)]()}:_0x27fcea,_0x43f7d1=_0x46298b['blockId']??_0x4afe0c(0x6);return _0x41fb21[_0x2f805d(0x160)](_0x4c66f5['id'],{..._0x46298b,'blockId':_0x43f7d1,'unitId':this[_0x2f805d(0x16a)]()})?this[_0x2f805d(0x161)](_0x43f7d1):null;}[_0x6e8a43(0x13d)](){var _0x4a6ddd=_0x6e8a43,_0x7a6526;return((_0x7a6526=this[_0x4a6ddd(0x165)]()['body'])==null?void 0x0:_0x7a6526[_0x4a6ddd(0x145)])??[];}[_0x6e8a43(0x153)](_0x17e578){var _0x26155a=_0x6e8a43;return this['_injector'][_0x26155a(0x169)](b,this,_0x17e578);}};_0x40f090['extend'](S);export{b as FDocumentCode};
1
+ var _0x3e8e76=_0x5454;(function(_0x572d47,_0x1cad6a){var _0x47617d=_0x5454,_0xe1965b=_0x572d47();while(!![]){try{var _0x19c7a8=parseInt(_0x47617d(0x169))/0x1+-parseInt(_0x47617d(0x13d))/0x2+parseInt(_0x47617d(0x14b))/0x3*(-parseInt(_0x47617d(0x144))/0x4)+-parseInt(_0x47617d(0x156))/0x5*(parseInt(_0x47617d(0x152))/0x6)+parseInt(_0x47617d(0x166))/0x7*(parseInt(_0x47617d(0x140))/0x8)+parseInt(_0x47617d(0x153))/0x9*(parseInt(_0x47617d(0x134))/0xa)+-parseInt(_0x47617d(0x159))/0xb;if(_0x19c7a8===_0x1cad6a)break;else _0xe1965b['push'](_0xe1965b['shift']());}catch(_0x5f1107){_0xe1965b['push'](_0xe1965b['shift']());}}}(_0x3023,0x68956));import{DocsCodeInsertCommand as _0x5aeb8b,DocsCodeModel as _0x486b62,DocsCodeRemoveCommand as _0x538317,DocsCodeUnwrapCommand as _0x21283a,DocsCodeUpdateCommand as _0x39a9f8,normalizeDocsCodeConfig as _0xf999d0}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x4bec09,DocumentBlockRangeType as _0x16c9fd,ICommandService as _0x287e9d,Inject as _0x14ce65,Injector as _0x5d9620,generateRandomId as _0x497ecc}from'@univerjs/core';import{FDocument as _0x413d00,isParagraphFacade as _0x440641}from'@univerjs/docs/facade';function m(_0x1a716b){'@babel/helpers - typeof';var _0x57da8=_0x5454;return m=typeof Symbol==_0x57da8(0x164)&&typeof Symbol[_0x57da8(0x15e)]=='symbol'?function(_0x55d4c7){return typeof _0x55d4c7;}:function(_0x5b6da4){var _0x4c871f=_0x57da8;return _0x5b6da4&&typeof Symbol==_0x4c871f(0x164)&&_0x5b6da4['constructor']===Symbol&&_0x5b6da4!==Symbol[_0x4c871f(0x13a)]?_0x4c871f(0x16c):typeof _0x5b6da4;},m(_0x1a716b);}function h(_0x2fa868,_0x426beb){var _0x1e728=_0x5454;if(m(_0x2fa868)!=_0x1e728(0x148)||!_0x2fa868)return _0x2fa868;var _0x521ce5=_0x2fa868[Symbol[_0x1e728(0x14c)]];if(_0x521ce5!==void 0x0){var _0x558653=_0x521ce5['call'](_0x2fa868,_0x426beb||_0x1e728(0x163));if(m(_0x558653)!=_0x1e728(0x148))return _0x558653;throw TypeError(_0x1e728(0x15c));}return(_0x426beb===_0x1e728(0x147)?String:Number)(_0x2fa868);}function g(_0x390f7d){var _0x5e284c=_0x5454,_0x198dca=h(_0x390f7d,_0x5e284c(0x147));return m(_0x198dca)==_0x5e284c(0x16c)?_0x198dca:_0x198dca+'';}function _(_0x18f687,_0x2f2ebf,_0x292346){return(_0x2f2ebf=g(_0x2f2ebf))in _0x18f687?Object['defineProperty'](_0x18f687,_0x2f2ebf,{'value':_0x292346,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x18f687[_0x2f2ebf]=_0x292346,_0x18f687;}function v(_0x9d52bb,_0x13f5e7){return function(_0xf0442c,_0x3942ef){_0x13f5e7(_0xf0442c,_0x3942ef,_0x9d52bb);};}function _0x5454(_0x215473,_0x38a84f){_0x215473=_0x215473-0x134;var _0x3023eb=_0x3023();var _0x54541a=_0x3023eb[_0x215473];return _0x54541a;}function y(_0x1f9e86,_0x4e8b78,_0x5ebb51,_0x1be458){var _0x5d088a=_0x5454,_0xbabd3d=arguments['length'],_0x322ffa=_0xbabd3d<0x3?_0x4e8b78:_0x1be458===null?_0x1be458=Object[_0x5d088a(0x155)](_0x4e8b78,_0x5ebb51):_0x1be458,_0x31044b;if(typeof Reflect==_0x5d088a(0x148)&&typeof Reflect[_0x5d088a(0x171)]==_0x5d088a(0x164))_0x322ffa=Reflect[_0x5d088a(0x171)](_0x1f9e86,_0x4e8b78,_0x5ebb51,_0x1be458);else{for(var _0x5b846c=_0x1f9e86[_0x5d088a(0x14f)]-0x1;_0x5b846c>=0x0;_0x5b846c--)(_0x31044b=_0x1f9e86[_0x5b846c])&&(_0x322ffa=(_0xbabd3d<0x3?_0x31044b(_0x322ffa):_0xbabd3d>0x3?_0x31044b(_0x4e8b78,_0x5ebb51,_0x322ffa):_0x31044b(_0x4e8b78,_0x5ebb51))||_0x322ffa);}return _0xbabd3d>0x3&&_0x322ffa&&Object[_0x5d088a(0x136)](_0x4e8b78,_0x5ebb51,_0x322ffa),_0x322ffa;}function _0x3023(){var _0x411387=['getOwnPropertyDescriptor','15PBoFaq','dataStream','blockType','10991068vDNbDD','getCode','startIndex','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','findCodes','iterator','_createFDocumentCode','_blockId','getCodes','some','default','function','insertCode','689927oyqJrQ','getConfig','endIndex','633178mFkoip','remove','_getBlockRange','symbol','BLOCK_END','extend','_document','getCodeAt','decorate','body','SECTION_BREAK','save','text','getId','from','10uMwUta','syncExecuteCommand','defineProperty','get','_injector','_getBlockRanges','prototype','BLOCK_START','getRange','277464YdMxen','blockRanges','describe','56TrUDuh','_unitId','getCodeConfig','map','49124inGdtA','createInstance','blockId','string','object','getText','find','30lPbFkq','toPrimitive','CODE','unwrap','length','_getDocumentData','join','523104VFsrTy','5647959ImUBUv','filter'];_0x3023=function(){return _0x411387;};return _0x3023();}let b=class{constructor(_0x108149,_0x5758f5,_0x39c500){var _0x17ed45=_0x5454;this[_0x17ed45(0x16f)]=_0x108149,this[_0x17ed45(0x160)]=_0x5758f5,this[_0x17ed45(0x138)]=_0x39c500,_(this,_0x17ed45(0x141),void 0x0),this[_0x17ed45(0x141)]=this['_document'][_0x17ed45(0x176)]();}[_0x3e8e76(0x176)](){var _0x441721=_0x3e8e76;return this[_0x441721(0x160)];}[_0x3e8e76(0x13c)](){var _0x4d0696=_0x3e8e76;let _0x57f095=this['_getBlockRange']();return _0x57f095?{'blockId':_0x57f095[_0x4d0696(0x146)],'endIndex':_0x57f095[_0x4d0696(0x168)],'startIndex':_0x57f095[_0x4d0696(0x15b)]}:null;}['getText'](){var _0x2d6ff6=_0x3e8e76,_0x5453ff;let _0x189b6e=this[_0x2d6ff6(0x16b)](),_0x140243=(_0x5453ff=this[_0x2d6ff6(0x150)]()[_0x2d6ff6(0x172)])==null?void 0x0:_0x5453ff[_0x2d6ff6(0x157)];return!_0x189b6e||!_0x140243?'':x(_0x140243['slice'](_0x189b6e[_0x2d6ff6(0x15b)]+0x1,_0x189b6e[_0x2d6ff6(0x168)]));}[_0x3e8e76(0x13f)](){var _0x2465b4=_0x3e8e76;let _0x726b70=this[_0x2465b4(0x13c)]();return _0x726b70?{..._0x726b70,'config':this[_0x2465b4(0x167)](),'text':this['getText'](),'type':_0x16c9fd['CODE']}:null;}[_0x3e8e76(0x167)](){var _0x2922c0=_0x3e8e76;return _0xf999d0(this[_0x2922c0(0x138)][_0x2922c0(0x137)](_0x486b62)[_0x2922c0(0x142)](this[_0x2922c0(0x141)],this[_0x2922c0(0x160)]));}['updateConfig'](_0x17dbef){var _0x2ddbf5=_0x3e8e76;return this[_0x2ddbf5(0x138)]['get'](_0x287e9d)['syncExecuteCommand'](_0x39a9f8['id'],{'blockId':this[_0x2ddbf5(0x160)],'config':_0x17dbef['config'],'unitId':this[_0x2ddbf5(0x141)]});}[_0x3e8e76(0x14e)](){var _0x4f0614=_0x3e8e76;return this[_0x4f0614(0x138)]['get'](_0x287e9d)[_0x4f0614(0x135)](_0x21283a['id'],{'blockId':this[_0x4f0614(0x160)],'unitId':this['_unitId']});}[_0x3e8e76(0x16a)](){var _0x25b8bb=_0x3e8e76;return this[_0x25b8bb(0x138)]['get'](_0x287e9d)[_0x25b8bb(0x135)](_0x538317['id'],{'blockId':this['_blockId'],'unitId':this[_0x25b8bb(0x141)]});}[_0x3e8e76(0x16b)](){var _0x457054=_0x3e8e76,_0x440ca9;return((_0x440ca9=this['_getDocumentData']()['body'])==null||(_0x440ca9=_0x440ca9[_0x457054(0x13e)])==null?void 0x0:_0x440ca9[_0x457054(0x14a)](_0x82dda5=>_0x82dda5[_0x457054(0x146)]===this[_0x457054(0x160)]&&_0x82dda5[_0x457054(0x158)]===_0x16c9fd[_0x457054(0x14d)]))??null;}[_0x3e8e76(0x150)](){var _0x214d1d=_0x3e8e76;return this[_0x214d1d(0x16f)][_0x214d1d(0x174)]();}};b=y([v(0x2,_0x14ce65(_0x5d9620))],b);function x(_0x30b393){var _0x278534=_0x3e8e76;return Array[_0x278534(0x177)](_0x30b393)[_0x278534(0x143)](_0x35f34d=>_0x35f34d===_0x4bec09['PARAGRAPH']?'\x0a':_0x35f34d)[_0x278534(0x154)](_0x1056ab=>_0x1056ab!==_0x4bec09[_0x278534(0x13b)]&&_0x1056ab!==_0x4bec09[_0x278534(0x16d)]&&_0x1056ab!==_0x4bec09[_0x278534(0x173)])[_0x278534(0x151)]('')['replace'](/\n$/,'');}var S=class extends _0x413d00{[_0x3e8e76(0x161)](){var _0x15d5bc=_0x3e8e76;return this['_getBlockRanges']()[_0x15d5bc(0x154)](_0x2d33e2=>_0x2d33e2[_0x15d5bc(0x158)]===_0x16c9fd[_0x15d5bc(0x14d)])[_0x15d5bc(0x143)](_0x1deb39=>this[_0x15d5bc(0x15f)](_0x1deb39[_0x15d5bc(0x146)]));}[_0x3e8e76(0x15a)](_0x2ecb22){var _0x53b664=_0x3e8e76;return this[_0x53b664(0x139)]()[_0x53b664(0x162)](_0x1b8391=>_0x1b8391[_0x53b664(0x146)]===_0x2ecb22&&_0x1b8391['blockType']===_0x16c9fd[_0x53b664(0x14d)])?this[_0x53b664(0x15f)](_0x2ecb22):null;}[_0x3e8e76(0x170)](_0x499b3e){var _0x31bf1d=_0x3e8e76;let _0x206b08=this['_getBlockRanges']()[_0x31bf1d(0x14a)](_0x196a8a=>_0x196a8a[_0x31bf1d(0x158)]===_0x16c9fd['CODE']&&_0x196a8a[_0x31bf1d(0x15b)]<=_0x499b3e&&_0x499b3e<=_0x196a8a[_0x31bf1d(0x168)]);return _0x206b08?this['_createFDocumentCode'](_0x206b08['blockId']):null;}['findCodeByText'](_0x1e8404){var _0x17e367=_0x3e8e76;return this[_0x17e367(0x15d)](_0x1e8404)[0x0]??null;}[_0x3e8e76(0x15d)](_0x254d5f){var _0x119749=_0x3e8e76;let _0x3fc450=typeof _0x254d5f==_0x119749(0x147)?{'text':_0x254d5f}:_0x254d5f;return this[_0x119749(0x161)]()['filter'](_0x53d15f=>!(_0x3fc450['blockId']&&_0x53d15f[_0x119749(0x176)]()!==_0x3fc450['blockId']||_0x3fc450['text']&&!_0x53d15f[_0x119749(0x149)]()['includes'](_0x3fc450[_0x119749(0x175)])));}[_0x3e8e76(0x165)](_0x463e52={},_0x1ea1b8={}){var _0x15c896=_0x3e8e76;let _0x14c2e5=this[_0x15c896(0x138)]['get'](_0x287e9d),_0x2cd27c=_0x440641(_0x463e52)?{..._0x1ea1b8,..._0x463e52[_0x15c896(0x13c)]()}:_0x463e52,_0x3205ec=_0x2cd27c[_0x15c896(0x146)]??_0x497ecc(0x6);return _0x14c2e5[_0x15c896(0x135)](_0x5aeb8b['id'],{..._0x2cd27c,'blockId':_0x3205ec,'unitId':this[_0x15c896(0x176)]()})?this[_0x15c896(0x15a)](_0x3205ec):null;}[_0x3e8e76(0x139)](){var _0x2f6453=_0x3e8e76,_0x530564;return((_0x530564=this[_0x2f6453(0x174)]()[_0x2f6453(0x172)])==null?void 0x0:_0x530564[_0x2f6453(0x13e)])??[];}['_createFDocumentCode'](_0x1ba99b){var _0x2b1cbc=_0x3e8e76;return this['_injector'][_0x2b1cbc(0x145)](b,this,_0x1ba99b);}};_0x413d00[_0x3e8e76(0x16e)](S);export{b as FDocumentCode};