@univerjs-pro/docs-code 1.0.0-rc.0 → 1.0.0

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 _0x44b5c1=_0x26cb;(function(_0x158734,_0x234a49){var _0xc506ec=_0x26cb,_0x29cf88=_0x158734();while(!![]){try{var _0x34cfcb=parseInt(_0xc506ec(0xf4))/0x1*(-parseInt(_0xc506ec(0x103))/0x2)+-parseInt(_0xc506ec(0x108))/0x3*(-parseInt(_0xc506ec(0xc6))/0x4)+-parseInt(_0xc506ec(0xb9))/0x5*(-parseInt(_0xc506ec(0xf7))/0x6)+parseInt(_0xc506ec(0xfe))/0x7+-parseInt(_0xc506ec(0xf0))/0x8*(-parseInt(_0xc506ec(0xfb))/0x9)+-parseInt(_0xc506ec(0xf2))/0xa+-parseInt(_0xc506ec(0xf9))/0xb*(parseInt(_0xc506ec(0xef))/0xc);if(_0x34cfcb===_0x234a49)break;else _0x29cf88['push'](_0x29cf88['shift']());}catch(_0x108d9b){_0x29cf88['push'](_0x29cf88['shift']());}}}(_0x4f75,0x9b7cd),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x44b5c1(0xdc)}));let e=require('@univerjs-pro/docs-code'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x4cf1cb){'@babel/helpers - typeof';var _0x394873=_0x44b5c1;return r=typeof Symbol==_0x394873(0xf1)&&typeof Symbol[_0x394873(0xde)]==_0x394873(0xc0)?function(_0x4e40b5){return typeof _0x4e40b5;}:function(_0x42903e){var _0x208036=_0x394873;return _0x42903e&&typeof Symbol==_0x208036(0xf1)&&_0x42903e['constructor']===Symbol&&_0x42903e!==Symbol[_0x208036(0xfa)]?_0x208036(0xc0):typeof _0x42903e;},r(_0x4cf1cb);}function i(_0x2c616d,_0x5b07d8){var _0x3e1ce4=_0x44b5c1;if(r(_0x2c616d)!=_0x3e1ce4(0xbd)||!_0x2c616d)return _0x2c616d;var _0x1cec29=_0x2c616d[Symbol[_0x3e1ce4(0xc2)]];if(_0x1cec29!==void 0x0){var _0x119ebd=_0x1cec29[_0x3e1ce4(0xc4)](_0x2c616d,_0x5b07d8||'default');if(r(_0x119ebd)!='object')return _0x119ebd;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5b07d8==='string'?String:Number)(_0x2c616d);}function a(_0xa53d2e){var _0x12d742=_0x44b5c1,_0x3ce9ac=i(_0xa53d2e,_0x12d742(0xf8));return r(_0x3ce9ac)==_0x12d742(0xc0)?_0x3ce9ac:_0x3ce9ac+'';}function o(_0x297b80,_0x250772,_0x167ae6){var _0x13dbd9=_0x44b5c1;return(_0x250772=a(_0x250772))in _0x297b80?Object[_0x13dbd9(0xff)](_0x297b80,_0x250772,{'value':_0x167ae6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x297b80[_0x250772]=_0x167ae6,_0x297b80;}function s(_0x58f188,_0x6ee694){return function(_0x4e5f23,_0x1f45c4){_0x6ee694(_0x4e5f23,_0x1f45c4,_0x58f188);};}function _0x26cb(_0x353776,_0x2f5453){_0x353776=_0x353776-0xb8;var _0x4f75d4=_0x4f75();var _0x26cb72=_0x4f75d4[_0x353776];return _0x26cb72;}function c(_0x334e71,_0x186c62,_0x1ded0e,_0x2f82cb){var _0x2f2f3b=_0x44b5c1,_0x2ea00b=arguments[_0x2f2f3b(0x105)],_0x58adbd=_0x2ea00b<0x3?_0x186c62:_0x2f82cb===null?_0x2f82cb=Object[_0x2f2f3b(0xc7)](_0x186c62,_0x1ded0e):_0x2f82cb,_0x4797d7;if(typeof Reflect==_0x2f2f3b(0xbd)&&typeof Reflect['decorate']==_0x2f2f3b(0xf1))_0x58adbd=Reflect[_0x2f2f3b(0xe1)](_0x334e71,_0x186c62,_0x1ded0e,_0x2f82cb);else{for(var _0x16b776=_0x334e71[_0x2f2f3b(0x105)]-0x1;_0x16b776>=0x0;_0x16b776--)(_0x4797d7=_0x334e71[_0x16b776])&&(_0x58adbd=(_0x2ea00b<0x3?_0x4797d7(_0x58adbd):_0x2ea00b>0x3?_0x4797d7(_0x186c62,_0x1ded0e,_0x58adbd):_0x4797d7(_0x186c62,_0x1ded0e))||_0x58adbd);}return _0x2ea00b>0x3&&_0x58adbd&&Object[_0x2f2f3b(0xff)](_0x186c62,_0x1ded0e,_0x58adbd),_0x58adbd;}function _0x4f75(){var _0x3bb22b=['toPrimitive','findCodes','call','from','363988Kbdfim','getOwnPropertyDescriptor','getCodeConfig','_document','_blockId','body','_getDocumentData','_getBlockRange','BLOCK_START','SECTION_BREAK','dataStream','createInstance','getConfig','getText','isParagraphFacade','getCodeAt','normalizeDocsCodeConfig','Injector','filter','BLOCK_END','remove','includes','Module','endIndex','iterator','blockType','findCodeByText','decorate','map','slice','ICommandService','Inject','get','DocsCodeRemoveCommand','DocumentBlockRangeType','replace','extend','save','DocsCodeInsertCommand','unwrap','_getBlockRanges','12OVEQkF','21768IhxTCT','function','10391840rDYWDT','describe','1242PQSkDM','DocsCodeModel','PARAGRAPH','126HcMZvg','string','5881766AOzHou','prototype','2826vsSjyt','startIndex','find','3566003oteXNc','defineProperty','getCodes','getRange','text','846gTarOR','insertCode','length','updateConfig','generateRandomId','33mqGJuN','FDocument','blockId','syncExecuteCommand','88415qmzkky','_createFDocumentCode','DataStreamTreeTokenType','join','object','_unitId','CODE','symbol','_injector'];_0x4f75=function(){return _0x3bb22b;};return _0x4f75();}let l=class{constructor(_0x5a2935,_0x263c28,_0x4313b1){var _0x3dd19a=_0x44b5c1;this[_0x3dd19a(0xc9)]=_0x5a2935,this[_0x3dd19a(0xca)]=_0x263c28,this[_0x3dd19a(0xc1)]=_0x4313b1,o(this,'_unitId',void 0x0),this[_0x3dd19a(0xbe)]=this[_0x3dd19a(0xc9)]['getId']();}['getId'](){var _0x9e640e=_0x44b5c1;return this[_0x9e640e(0xca)];}[_0x44b5c1(0x101)](){var _0x33d9bc=_0x44b5c1;let _0x5517a8=this[_0x33d9bc(0xcd)]();return _0x5517a8?{'blockId':_0x5517a8[_0x33d9bc(0x10a)],'endIndex':_0x5517a8[_0x33d9bc(0xdd)],'startIndex':_0x5517a8[_0x33d9bc(0xfc)]}:null;}[_0x44b5c1(0xd3)](){var _0xb9acb5=_0x44b5c1,_0x3b25ef;let _0x51dae6=this[_0xb9acb5(0xcd)](),_0x3b699f=(_0x3b25ef=this[_0xb9acb5(0xcc)]()[_0xb9acb5(0xcb)])==null?void 0x0:_0x3b25ef[_0xb9acb5(0xd0)];return!_0x51dae6||!_0x3b699f?'':u(_0x3b699f[_0xb9acb5(0xe3)](_0x51dae6['startIndex']+0x1,_0x51dae6[_0xb9acb5(0xdd)]));}[_0x44b5c1(0xf3)](){var _0x4039ce=_0x44b5c1;let _0x3f4b84=this[_0x4039ce(0x101)]();return _0x3f4b84?{..._0x3f4b84,'config':this[_0x4039ce(0xd2)](),'text':this['getText'](),'type':t['DocumentBlockRangeType']['CODE']}:null;}[_0x44b5c1(0xd2)](){var _0x4bd938=_0x44b5c1;return(0x0,e[_0x4bd938(0xd6)])(this['_injector'][_0x4bd938(0xe6)](e[_0x4bd938(0xf5)])[_0x4bd938(0xc8)](this[_0x4bd938(0xbe)],this['_blockId']));}[_0x44b5c1(0x106)](_0x503533){var _0x306952=_0x44b5c1;return this['_injector'][_0x306952(0xe6)](t[_0x306952(0xe4)])['syncExecuteCommand'](e['DocsCodeUpdateCommand']['id'],{'blockId':this[_0x306952(0xca)],'config':_0x503533['config'],'unitId':this['_unitId']});}[_0x44b5c1(0xed)](){var _0x50279d=_0x44b5c1;return this[_0x50279d(0xc1)][_0x50279d(0xe6)](t[_0x50279d(0xe4)])[_0x50279d(0xb8)](e['DocsCodeUnwrapCommand']['id'],{'blockId':this[_0x50279d(0xca)],'unitId':this[_0x50279d(0xbe)]});}[_0x44b5c1(0xda)](){var _0x386617=_0x44b5c1;return this[_0x386617(0xc1)][_0x386617(0xe6)](t[_0x386617(0xe4)])['syncExecuteCommand'](e[_0x386617(0xe7)]['id'],{'blockId':this[_0x386617(0xca)],'unitId':this[_0x386617(0xbe)]});}[_0x44b5c1(0xcd)](){var _0x8d3c7e=_0x44b5c1,_0x5058a1;return((_0x5058a1=this[_0x8d3c7e(0xcc)]()['body'])==null||(_0x5058a1=_0x5058a1['blockRanges'])==null?void 0x0:_0x5058a1[_0x8d3c7e(0xfd)](_0x17bbd4=>_0x17bbd4['blockId']===this[_0x8d3c7e(0xca)]&&_0x17bbd4[_0x8d3c7e(0xdf)]===t[_0x8d3c7e(0xe8)][_0x8d3c7e(0xbf)]))??null;}['_getDocumentData'](){var _0x2da7ca=_0x44b5c1;return this[_0x2da7ca(0xc9)]['save']();}};l=c([s(0x2,(0x0,t[_0x44b5c1(0xe5)])(t[_0x44b5c1(0xd7)]))],l);function u(_0x262610){var _0xaa4ee7=_0x44b5c1;return Array[_0xaa4ee7(0xc5)](_0x262610)[_0xaa4ee7(0xe2)](_0x19c2eb=>_0x19c2eb===t[_0xaa4ee7(0xbb)][_0xaa4ee7(0xf6)]?'\x0a':_0x19c2eb)[_0xaa4ee7(0xd8)](_0x461f2f=>_0x461f2f!==t[_0xaa4ee7(0xbb)][_0xaa4ee7(0xce)]&&_0x461f2f!==t[_0xaa4ee7(0xbb)][_0xaa4ee7(0xd9)]&&_0x461f2f!==t['DataStreamTreeTokenType'][_0xaa4ee7(0xcf)])[_0xaa4ee7(0xbc)]('')[_0xaa4ee7(0xe9)](/\n$/,'');}var d=class extends n['FDocument']{['getCodes'](){var _0x1564f8=_0x44b5c1;return this[_0x1564f8(0xee)]()['filter'](_0x136aa9=>_0x136aa9[_0x1564f8(0xdf)]===t[_0x1564f8(0xe8)][_0x1564f8(0xbf)])['map'](_0x255c8e=>this['_createFDocumentCode'](_0x255c8e[_0x1564f8(0x10a)]));}['getCode'](_0x5ef67a){var _0x34751d=_0x44b5c1;return this['_getBlockRanges']()['some'](_0x3d7420=>_0x3d7420[_0x34751d(0x10a)]===_0x5ef67a&&_0x3d7420[_0x34751d(0xdf)]===t[_0x34751d(0xe8)][_0x34751d(0xbf)])?this[_0x34751d(0xba)](_0x5ef67a):null;}[_0x44b5c1(0xd5)](_0x995749){var _0x1bec99=_0x44b5c1;let _0x148eac=this[_0x1bec99(0xee)]()[_0x1bec99(0xfd)](_0x1511b9=>_0x1511b9[_0x1bec99(0xdf)]===t[_0x1bec99(0xe8)][_0x1bec99(0xbf)]&&_0x1511b9['startIndex']<=_0x995749&&_0x995749<=_0x1511b9[_0x1bec99(0xdd)]);return _0x148eac?this[_0x1bec99(0xba)](_0x148eac[_0x1bec99(0x10a)]):null;}[_0x44b5c1(0xe0)](_0x5279e1){var _0x56a006=_0x44b5c1;return this[_0x56a006(0xc3)](_0x5279e1)[0x0]??null;}[_0x44b5c1(0xc3)](_0x237913){var _0x27278=_0x44b5c1;let _0x19d6f3=typeof _0x237913==_0x27278(0xf8)?{'text':_0x237913}:_0x237913;return this[_0x27278(0x100)]()[_0x27278(0xd8)](_0x427706=>!(_0x19d6f3['blockId']&&_0x427706['getId']()!==_0x19d6f3[_0x27278(0x10a)]||_0x19d6f3[_0x27278(0x102)]&&!_0x427706['getText']()[_0x27278(0xdb)](_0x19d6f3[_0x27278(0x102)])));}[_0x44b5c1(0x104)](_0x37f686={},_0x213bad={}){var _0x532c89=_0x44b5c1;let _0x3963de=this[_0x532c89(0xc1)]['get'](t['ICommandService']),_0x30998d=(0x0,n[_0x532c89(0xd4)])(_0x37f686)?{..._0x213bad,..._0x37f686[_0x532c89(0x101)]()}:_0x37f686,_0x546afd=_0x30998d[_0x532c89(0x10a)]??(0x0,t[_0x532c89(0x107)])(0x6);return _0x3963de['syncExecuteCommand'](e[_0x532c89(0xec)]['id'],{..._0x30998d,'blockId':_0x546afd,'unitId':this['getId']()})?this['getCode'](_0x546afd):null;}[_0x44b5c1(0xee)](){var _0x5d11ad=_0x44b5c1,_0x5ee1f8;return((_0x5ee1f8=this[_0x5d11ad(0xeb)]()[_0x5d11ad(0xcb)])==null?void 0x0:_0x5ee1f8['blockRanges'])??[];}[_0x44b5c1(0xba)](_0x38ef52){var _0x4b76bc=_0x44b5c1;return this['_injector'][_0x4b76bc(0xd1)](l,this,_0x38ef52);}};n[_0x44b5c1(0x109)][_0x44b5c1(0xea)](d),Object[_0x44b5c1(0xff)](exports,'FDocumentCode',{'enumerable':!0x0,'get':function(){return l;}});
1
+ const _0x55d47d=_0x2ed2;(function(_0x191d1c,_0x4285dc){const _0xc1d4ab=_0x2ed2,_0x59fb09=_0x191d1c();while(!![]){try{const _0xfc31d7=-parseInt(_0xc1d4ab(0x21f))/0x1+parseInt(_0xc1d4ab(0x23f))/0x2*(parseInt(_0xc1d4ab(0x207))/0x3)+-parseInt(_0xc1d4ab(0x1f7))/0x4+parseInt(_0xc1d4ab(0x228))/0x5+parseInt(_0xc1d4ab(0x211))/0x6*(parseInt(_0xc1d4ab(0x221))/0x7)+-parseInt(_0xc1d4ab(0x234))/0x8+-parseInt(_0xc1d4ab(0x1fd))/0x9*(-parseInt(_0xc1d4ab(0x233))/0xa);if(_0xfc31d7===_0x4285dc)break;else _0x59fb09['push'](_0x59fb09['shift']());}catch(_0x3ee93c){_0x59fb09['push'](_0x59fb09['shift']());}}}(_0x431e,0x5adec),Object[_0x55d47d(0x201)](exports,Symbol['toStringTag'],{'value':_0x55d47d(0x20e)}));let e=require('@univerjs-pro/docs-code'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function _0x2ed2(_0x2a531b,_0x2039a5){_0x2a531b=_0x2a531b-0x1ee;const _0x431e22=_0x431e();let _0x2ed2d0=_0x431e22[_0x2a531b];return _0x2ed2d0;}function r(_0x1c9979){'@babel/helpers - typeof';const _0x32d5e1=_0x55d47d;return r=typeof Symbol=='function'&&typeof Symbol[_0x32d5e1(0x1ee)]=='symbol'?function(_0x15a711){return typeof _0x15a711;}:function(_0x364297){const _0x3d6244=_0x32d5e1;return _0x364297&&typeof Symbol==_0x3d6244(0x1ef)&&_0x364297[_0x3d6244(0x225)]===Symbol&&_0x364297!==Symbol['prototype']?_0x3d6244(0x23d):typeof _0x364297;},r(_0x1c9979);}function i(_0x3ae8b2,_0x76d271){const _0x17effa=_0x55d47d;if(r(_0x3ae8b2)!=_0x17effa(0x1f0)||!_0x3ae8b2)return _0x3ae8b2;var _0x451f11=_0x3ae8b2[Symbol['toPrimitive']];if(_0x451f11!==void 0x0){var _0x1cde8e=_0x451f11[_0x17effa(0x21c)](_0x3ae8b2,_0x76d271||'default');if(r(_0x1cde8e)!=_0x17effa(0x1f0))return _0x1cde8e;throw TypeError(_0x17effa(0x204));}return(_0x76d271===_0x17effa(0x23a)?String:Number)(_0x3ae8b2);}function a(_0x30a826){const _0x493fb3=_0x55d47d;var _0x324994=i(_0x30a826,_0x493fb3(0x23a));return r(_0x324994)==_0x493fb3(0x23d)?_0x324994:_0x324994+'';}function o(_0x100df5,_0x15eac8,_0x55e611){const _0x544909=_0x55d47d;return(_0x15eac8=a(_0x15eac8))in _0x100df5?Object[_0x544909(0x201)](_0x100df5,_0x15eac8,{'value':_0x55e611,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x100df5[_0x15eac8]=_0x55e611,_0x100df5;}function s(_0x45bac7,_0x54ea76){return function(_0x5c3246,_0xe9c8f1){_0x54ea76(_0x5c3246,_0xe9c8f1,_0x45bac7);};}function _0x431e(){const _0x38ebf6=['6EFHwdj','getConfig','describe','get','text','from','length','some','CODE','endIndex','_blockId','call','getRange','ICommandService','272800KcHTyP','insertCode','2653483sStLBn','blockId','_getBlockRanges','getId','constructor','PARAGRAPH','find','900450lJrAtO','Inject','getCodes','generateRandomId','remove','map','extend','_unitId','_injector','getText','decorate','1962010NwxZYP','3247472vIOJdv','save','FDocumentCode','body','getCode','_getBlockRange','string','Injector','SECTION_BREAK','symbol','findCodes','815582myokqq','iterator','function','object','getCodeConfig','_createFDocumentCode','slice','DataStreamTreeTokenType','_document','getCodeAt','1233656OZEPiB','unwrap','DocumentBlockRangeType','replace','DocsCodeModel','syncExecuteCommand','18ZWtqZB','BLOCK_START','DocsCodeUnwrapCommand','normalizeDocsCodeConfig','defineProperty','findCodeByText','_getDocumentData','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','DocsCodeUpdateCommand','getOwnPropertyDescriptor','3Daasax','FDocument','filter','createInstance','BLOCK_END','blockType','DocsCodeInsertCommand','Module','startIndex','blockRanges'];_0x431e=function(){return _0x38ebf6;};return _0x431e();}function c(_0x3a9258,_0x25fb26,_0xfaf221,_0x342e6a){const _0x5b1a0c=_0x55d47d;var _0x2f0e76=arguments['length'],_0x2519e1=_0x2f0e76<0x3?_0x25fb26:_0x342e6a===null?_0x342e6a=Object[_0x5b1a0c(0x206)](_0x25fb26,_0xfaf221):_0x342e6a,_0x27c845;if(typeof Reflect==_0x5b1a0c(0x1f0)&&typeof Reflect[_0x5b1a0c(0x232)]==_0x5b1a0c(0x1ef))_0x2519e1=Reflect['decorate'](_0x3a9258,_0x25fb26,_0xfaf221,_0x342e6a);else{for(var _0x48eae5=_0x3a9258[_0x5b1a0c(0x217)]-0x1;_0x48eae5>=0x0;_0x48eae5--)(_0x27c845=_0x3a9258[_0x48eae5])&&(_0x2519e1=(_0x2f0e76<0x3?_0x27c845(_0x2519e1):_0x2f0e76>0x3?_0x27c845(_0x25fb26,_0xfaf221,_0x2519e1):_0x27c845(_0x25fb26,_0xfaf221))||_0x2519e1);}return _0x2f0e76>0x3&&_0x2519e1&&Object[_0x5b1a0c(0x201)](_0x25fb26,_0xfaf221,_0x2519e1),_0x2519e1;}let l=class{constructor(_0xe8526,_0xcfa689,_0x573004){const _0x57e812=_0x55d47d;this[_0x57e812(0x1f5)]=_0xe8526,this[_0x57e812(0x21b)]=_0xcfa689,this[_0x57e812(0x230)]=_0x573004,o(this,_0x57e812(0x22f),void 0x0),this[_0x57e812(0x22f)]=this[_0x57e812(0x1f5)][_0x57e812(0x224)]();}[_0x55d47d(0x224)](){const _0x451d74=_0x55d47d;return this[_0x451d74(0x21b)];}[_0x55d47d(0x21d)](){const _0x4c13ac=_0x55d47d;let _0x3daf6e=this['_getBlockRange']();return _0x3daf6e?{'blockId':_0x3daf6e[_0x4c13ac(0x222)],'endIndex':_0x3daf6e['endIndex'],'startIndex':_0x3daf6e['startIndex']}:null;}[_0x55d47d(0x231)](){const _0x190902=_0x55d47d;var _0x54b06c;let _0x56b251=this[_0x190902(0x239)](),_0x289115=(_0x54b06c=this['_getDocumentData']()[_0x190902(0x237)])==null?void 0x0:_0x54b06c['dataStream'];return!_0x56b251||!_0x289115?'':u(_0x289115[_0x190902(0x1f3)](_0x56b251[_0x190902(0x20f)]+0x1,_0x56b251['endIndex']));}[_0x55d47d(0x213)](){const _0x5c3006=_0x55d47d;let _0x4549a1=this[_0x5c3006(0x21d)]();return _0x4549a1?{..._0x4549a1,'config':this[_0x5c3006(0x212)](),'text':this[_0x5c3006(0x231)](),'type':t[_0x5c3006(0x1f9)]['CODE']}:null;}[_0x55d47d(0x212)](){const _0x2d21c9=_0x55d47d;let _0x229f91=this[_0x2d21c9(0x230)][_0x2d21c9(0x214)](e[_0x2d21c9(0x1fb)]);return(0x0,e[_0x2d21c9(0x200)])(_0x229f91[_0x2d21c9(0x1f1)](this['_unitId'],this[_0x2d21c9(0x21b)]));}['updateConfig'](_0x25a98b){const _0x4951bc=_0x55d47d;return this[_0x4951bc(0x230)][_0x4951bc(0x214)](t[_0x4951bc(0x21e)])[_0x4951bc(0x1fc)](e[_0x4951bc(0x205)]['id'],{'blockId':this[_0x4951bc(0x21b)],'config':_0x25a98b['config'],'unitId':this[_0x4951bc(0x22f)]});}[_0x55d47d(0x1f8)](){const _0x88a899=_0x55d47d;return this[_0x88a899(0x230)][_0x88a899(0x214)](t['ICommandService'])[_0x88a899(0x1fc)](e[_0x88a899(0x1ff)]['id'],{'blockId':this[_0x88a899(0x21b)],'unitId':this[_0x88a899(0x22f)]});}[_0x55d47d(0x22c)](){const _0x3b151b=_0x55d47d;return this[_0x3b151b(0x230)]['get'](t['ICommandService'])[_0x3b151b(0x1fc)](e['DocsCodeRemoveCommand']['id'],{'blockId':this[_0x3b151b(0x21b)],'unitId':this[_0x3b151b(0x22f)]});}[_0x55d47d(0x239)](){const _0x3eb0d0=_0x55d47d;var _0x2b6899;return((_0x2b6899=this[_0x3eb0d0(0x203)]()[_0x3eb0d0(0x237)])==null||(_0x2b6899=_0x2b6899['blockRanges'])==null?void 0x0:_0x2b6899[_0x3eb0d0(0x227)](_0x171d95=>_0x171d95['blockId']===this[_0x3eb0d0(0x21b)]&&_0x171d95[_0x3eb0d0(0x20c)]===t[_0x3eb0d0(0x1f9)][_0x3eb0d0(0x219)]))??null;}[_0x55d47d(0x203)](){const _0x54e6c8=_0x55d47d;return this[_0x54e6c8(0x1f5)]['save']();}};l=c([s(0x2,(0x0,t[_0x55d47d(0x229)])(t[_0x55d47d(0x23b)]))],l);function u(_0x74ca05){const _0x54bc06=_0x55d47d;return Array[_0x54bc06(0x216)](_0x74ca05)[_0x54bc06(0x22d)](_0x4ced49=>_0x4ced49===t[_0x54bc06(0x1f4)][_0x54bc06(0x226)]?'\x0a':_0x4ced49)[_0x54bc06(0x209)](_0x28e258=>_0x28e258!==t['DataStreamTreeTokenType'][_0x54bc06(0x1fe)]&&_0x28e258!==t[_0x54bc06(0x1f4)][_0x54bc06(0x20b)]&&_0x28e258!==t[_0x54bc06(0x1f4)][_0x54bc06(0x23c)])['join']('')[_0x54bc06(0x1fa)](/\n$/,'');}var d=class extends n['FDocument']{[_0x55d47d(0x22a)](){const _0x179214=_0x55d47d;return this[_0x179214(0x223)]()[_0x179214(0x209)](_0x1ce765=>_0x1ce765[_0x179214(0x20c)]===t[_0x179214(0x1f9)][_0x179214(0x219)])['map'](_0x1c4e43=>this[_0x179214(0x1f2)](_0x1c4e43[_0x179214(0x222)]));}['getCode'](_0x33049c){const _0x2923e0=_0x55d47d;return this[_0x2923e0(0x223)]()[_0x2923e0(0x218)](_0x3a78e9=>_0x3a78e9[_0x2923e0(0x222)]===_0x33049c&&_0x3a78e9[_0x2923e0(0x20c)]===t['DocumentBlockRangeType']['CODE'])?this['_createFDocumentCode'](_0x33049c):null;}[_0x55d47d(0x1f6)](_0x2f4815){const _0x35646e=_0x55d47d;let _0x5ec8db=this[_0x35646e(0x223)]()[_0x35646e(0x227)](_0x58390e=>_0x58390e[_0x35646e(0x20c)]===t[_0x35646e(0x1f9)][_0x35646e(0x219)]&&_0x58390e[_0x35646e(0x20f)]<=_0x2f4815&&_0x2f4815<=_0x58390e[_0x35646e(0x21a)]);return _0x5ec8db?this['_createFDocumentCode'](_0x5ec8db['blockId']):null;}[_0x55d47d(0x202)](_0x3ca5c8){const _0x570ad4=_0x55d47d;return this[_0x570ad4(0x23e)](_0x3ca5c8)[0x0]??null;}[_0x55d47d(0x23e)](_0x1fe8ba){const _0x409ab0=_0x55d47d;let _0x2dd179=typeof _0x1fe8ba==_0x409ab0(0x23a)?{'text':_0x1fe8ba}:_0x1fe8ba;return this[_0x409ab0(0x22a)]()[_0x409ab0(0x209)](_0x4a6ab9=>!(_0x2dd179[_0x409ab0(0x222)]&&_0x4a6ab9[_0x409ab0(0x224)]()!==_0x2dd179[_0x409ab0(0x222)]||_0x2dd179['text']&&!_0x4a6ab9['getText']()['includes'](_0x2dd179[_0x409ab0(0x215)])));}[_0x55d47d(0x220)](_0x12edb7={},_0x29acac={}){const _0x5ae8ef=_0x55d47d;let _0x557d1c=this[_0x5ae8ef(0x230)][_0x5ae8ef(0x214)](t['ICommandService']),_0x2c023c=(0x0,n['isParagraphFacade'])(_0x12edb7)?{..._0x29acac,..._0x12edb7[_0x5ae8ef(0x21d)]()}:_0x12edb7,_0x2896b6=_0x2c023c[_0x5ae8ef(0x222)]??(0x0,t[_0x5ae8ef(0x22b)])(0x6);return _0x557d1c[_0x5ae8ef(0x1fc)](e[_0x5ae8ef(0x20d)]['id'],{..._0x2c023c,'blockId':_0x2896b6,'unitId':this[_0x5ae8ef(0x224)]()})?this[_0x5ae8ef(0x238)](_0x2896b6):null;}[_0x55d47d(0x223)](){const _0x14087b=_0x55d47d;var _0x45d9df;return((_0x45d9df=this[_0x14087b(0x235)]()['body'])==null?void 0x0:_0x45d9df[_0x14087b(0x210)])??[];}['_createFDocumentCode'](_0xe0cdf6){const _0x4a8f77=_0x55d47d;return this[_0x4a8f77(0x230)][_0x4a8f77(0x20a)](l,this,_0xe0cdf6);}};n[_0x55d47d(0x208)][_0x55d47d(0x22e)](d),Object['defineProperty'](exports,_0x55d47d(0x236),{'enumerable':!0x0,'get':function(){return l;}});
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x404e5d=_0x153d;(function(_0x441c33,_0x223198){const _0x57ce4f=_0x153d,_0x5ea8eb=_0x441c33();while(!![]){try{const _0x42dd8d=parseInt(_0x57ce4f(0x1ff))/0x1*(parseInt(_0x57ce4f(0x213))/0x2)+parseInt(_0x57ce4f(0x237))/0x3*(-parseInt(_0x57ce4f(0x240))/0x4)+-parseInt(_0x57ce4f(0x1af))/0x5+parseInt(_0x57ce4f(0x1e8))/0x6*(parseInt(_0x57ce4f(0x1d5))/0x7)+-parseInt(_0x57ce4f(0x1f5))/0x8*(-parseInt(_0x57ce4f(0x200))/0x9)+-parseInt(_0x57ce4f(0x253))/0xa+-parseInt(_0x57ce4f(0x223))/0xb*(-parseInt(_0x57ce4f(0x238))/0xc);if(_0x42dd8d===_0x223198)break;else _0x5ea8eb['push'](_0x5ea8eb['shift']());}catch(_0x16e05a){_0x5ea8eb['push'](_0x5ea8eb['shift']());}}}(_0x89c7,0x1a8cd),Object[_0x404e5d(0x201)](exports,Symbol['toStringTag'],{'value':_0x404e5d(0x207)}));let e=require('@univerjs/core'),t=require('rxjs'),n=require('@univerjs/docs'),r=require('@univerjs-pro/license');const i={'language':'javascript','showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function _0x89c7(){const _0x4d6bea=['selectionManager','keepNext','_initResource','metadata','DocsCodeUpdateCommand','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','3817IbeEAy','compose','_commandService','UniverDocsCodePlugin','docs-code.config','min','isCodeBoundaryDelete','cursorOffset','constructor','config','complete','insertionMode','body','packageName','CommandType','widowControl','sort','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','BuildTextUtils','push','3hKSCrp','9228vlrfho','syncExecuteCommand','normalizeDocsCodeConfig','commandService','UniverInstanceType','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','getTextRanges','max','454092BFJxOA','MUTATION','insert-new','version','serialize','intersectsOperationalIntervals','getInstance','endOffset','Document\x20body\x20is\x20required','bullet','DOCS_CODE_PLUGIN','delete','filter','sectionBreaks','deleteLength','UniverDocsPlugin','getUnit','startIndex','JSONX','1009640DRcRkl','docs-code.command.insert','stringify','SECTION_BREAK','endTokenOffset','onStarting','spaceAbove','textStyle','add','DocSelectionManagerService','Disposable','buildCancelEmptyCodeParagraphActions','CODE','DocsCodeCancelEmptyParagraphCommand','customRanges','indexOf','registerPluginResource','getBody','BLOCK_START','disposeWithMe','range','setConfig','DocsCodeModel','docs-code.mutation.remove-config','ICommandService','handler','some','string','deserialize','type','docs-code.command.remove','PARAGRAPH','setCodeConfig','codes','customBlocks','replaceOp','DependentOn','DataStreamTreeTokenType','_setResource','function','insert','docs-code.command.consume-boundary-delete','TABLE_CELL_END','UNIVER_DOC','FALSE','DOC_CODE_PLUGIN','_injector','length','removeCode','SetDocsCodeConfigMutation','isHeaderFooterSelection','getSnapshot','DocsCodeRemoveCommand','dataStream','706205idLUgi','textRuns','blockId','blockRanges','RemoveDocsCodeConfigMutation','merge','createParagraphId','documentData','spaceBelow','DocsCodeConsumeBoundaryDeleteCommand','docs-code.command.cancel-empty-paragraph','columns','docs-code.command.update','COMMAND','shiftInclusiveRangeOnDelete','forEach','Injector','every','clear','insertOp','DocsCodeInsertCommand','generateRandomId','monospace','DocsCodeInsertBelowCommand','BooleanNumber','startTokenOffset','decorate','slice','_docsCodeModel','registerCommand','previousDocumentData','DocumentBlockRangeType','endIndex','_config','map','keys','getBlockRangeInterval','containsInteriorInsertionOffset','28KEPaMw','getParagraphFollowingBlockOffset','paragraphId','IUniverInstanceService','paragraphStartIndex','editOp','parse','customDecorations','direction','shiftInclusiveRangeOnInsert','symbol','next','paragraphs','asObservable','fromEntries','call','@univerjs-pro/docs-code','nextDocumentData','unitId','11190UNXvnU','blockType','paragraphStyle','_resources','paragraph','default','set','indentStart','start','getParagraphContentStartOffsets','retain','reduce','BLOCK_END','608tTuCmy','removeOp','1.0.0-rc.0','getParagraphContentStartOffset','get','removeUnit','startOffset','toPrimitive','nextMetadata','isArray','2CNXgJY','9162pmQlKT','defineProperty','object','_configService','model','shiftExclusiveRangeOnDelete','getCurrentUnitOfType','Module','getOwnPropertyDescriptor','TRUE','from','right','find','Inject','_change$','getUnitId','entries','dispose','containsStreamIndex','112806njghec','columnGroups','tables','IConfigService','_resourceManagerService','TABLE_CELL_START','convert-paragraph','insertLength','endsWith','docs-code.mutation.set-config'];_0x89c7=function(){return _0x4d6bea;};return _0x89c7();}function a(_0x1c6c4f){return{...i,..._0x1c6c4f};}function o(_0x257a09){const _0x5de2e3=_0x404e5d;let _0x136e03=(_0x257a09==null?void 0x0:_0x257a09[_0x5de2e3(0x274)])??{};return{'codes':Object[_0x5de2e3(0x1e3)](Object[_0x5de2e3(0x210)](_0x136e03)['map'](([_0x5651f9,_0x9acd2a])=>[_0x5651f9,a(_0x9acd2a)]))};}function s(_0x3b50cd,_0xaa5402,_0x4f8396){const _0x5b569c=_0x404e5d;let _0x7337fa=o(_0x3b50cd);return _0x7337fa['codes'][_0xaa5402]=a({..._0x7337fa[_0x5b569c(0x274)][_0xaa5402],..._0x4f8396}),_0x7337fa;}function c(_0x12cc83,_0x201d75){const _0x247010=_0x404e5d;let _0x230245=o(_0x12cc83);return delete _0x230245[_0x247010(0x274)][_0x201d75],_0x230245;}function l(_0x4beaab){'@babel/helpers - typeof';const _0x3b4bbd=_0x404e5d;return l=typeof Symbol==_0x3b4bbd(0x1a0)&&typeof Symbol['iterator']==_0x3b4bbd(0x1df)?function(_0x303948){return typeof _0x303948;}:function(_0x2a9d54){const _0x1de0aa=_0x3b4bbd;return _0x2a9d54&&typeof Symbol=='function'&&_0x2a9d54[_0x1de0aa(0x22b)]===Symbol&&_0x2a9d54!==Symbol['prototype']?_0x1de0aa(0x1df):typeof _0x2a9d54;},l(_0x4beaab);}function u(_0x5d566f,_0x436cdf){const _0x585409=_0x404e5d;if(l(_0x5d566f)!='object'||!_0x5d566f)return _0x5d566f;var _0x5a5c85=_0x5d566f[Symbol[_0x585409(0x1fc)]];if(_0x5a5c85!==void 0x0){var _0x3fccc3=_0x5a5c85[_0x585409(0x1e4)](_0x5d566f,_0x436cdf||_0x585409(0x1ed));if(l(_0x3fccc3)!='object')return _0x3fccc3;throw TypeError(_0x585409(0x222));}return(_0x436cdf==='string'?String:Number)(_0x5d566f);}function d(_0x21c723){const _0x568a2=_0x404e5d;var _0xef1db3=u(_0x21c723,_0x568a2(0x26e));return l(_0xef1db3)==_0x568a2(0x1df)?_0xef1db3:_0xef1db3+'';}function f(_0x59e6e0,_0x4ce4bf,_0x1f49d9){const _0x57b305=_0x404e5d;return(_0x4ce4bf=d(_0x4ce4bf))in _0x59e6e0?Object[_0x57b305(0x201)](_0x59e6e0,_0x4ce4bf,{'value':_0x1f49d9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x59e6e0[_0x4ce4bf]=_0x1f49d9,_0x59e6e0;}var p=class extends e[_0x404e5d(0x25d)]{constructor(..._0x55ba8b){const _0x2e548e=_0x404e5d;super(..._0x55ba8b),f(this,_0x2e548e(0x1eb),new Map()),f(this,'_change$',new t['Subject']()),f(this,'change$',this[_0x2e548e(0x20e)][_0x2e548e(0x1e2)]());}['getCodeConfig'](_0x33fcb4,_0x88971a){const _0x5dd5be=_0x404e5d;return o(this[_0x5dd5be(0x1eb)]['get'](_0x33fcb4))[_0x5dd5be(0x274)][_0x88971a];}['setCodeConfig'](_0x5ac57d,_0x3a9e2c,_0x570f9f){const _0x4a37e0=_0x404e5d;this[_0x4a37e0(0x279)](_0x5ac57d,_0x3a9e2c,s(this[_0x4a37e0(0x1eb)][_0x4a37e0(0x1f9)](_0x5ac57d),_0x3a9e2c,_0x570f9f));}[_0x404e5d(0x1a9)](_0xd5b4c1,_0x515c57){const _0x351ff6=_0x404e5d;this[_0x351ff6(0x279)](_0xd5b4c1,_0x515c57,c(this[_0x351ff6(0x1eb)][_0x351ff6(0x1f9)](_0xd5b4c1),_0x515c57));}[_0x404e5d(0x244)](_0x3dfb2a){const _0x27af5c=_0x404e5d;return o(this[_0x27af5c(0x1eb)][_0x27af5c(0x1f9)](_0x3dfb2a));}[_0x404e5d(0x26f)](_0x575d6b,_0x3a27f5){const _0x2b6901=_0x404e5d;this[_0x2b6901(0x1eb)][_0x2b6901(0x1ee)](_0x575d6b,o(_0x3a27f5)),this[_0x2b6901(0x20e)][_0x2b6901(0x1e0)]({'unitId':_0x575d6b});}['removeUnit'](_0x2b2e29){const _0x20638f=_0x404e5d;this[_0x20638f(0x1eb)][_0x20638f(0x24b)](_0x2b2e29),this[_0x20638f(0x20e)][_0x20638f(0x1e0)]({'unitId':_0x2b2e29});}['dispose'](){const _0x2c85ae=_0x404e5d;super[_0x2c85ae(0x211)](),this[_0x2c85ae(0x1eb)][_0x2c85ae(0x1c1)](),this[_0x2c85ae(0x20e)][_0x2c85ae(0x22d)]();}[_0x404e5d(0x279)](_0x2d5a01,_0x5692f4,_0x415ebe){const _0x85f624=_0x404e5d;this['_resources'][_0x85f624(0x1ee)](_0x2d5a01,_0x415ebe),this[_0x85f624(0x20e)][_0x85f624(0x1e0)]({'unitId':_0x2d5a01,'blockId':_0x5692f4});}};const m={'id':_0x404e5d(0x21c),'type':e[_0x404e5d(0x231)]['MUTATION'],'handler':(_0x3b42f0,_0x1197ba)=>!(_0x1197ba!=null&&_0x1197ba[_0x404e5d(0x1e7)])||!_0x1197ba[_0x404e5d(0x1b1)]?!0x1:(_0x3b42f0['get'](p)[_0x404e5d(0x273)](_0x1197ba['unitId'],_0x1197ba[_0x404e5d(0x1b1)],_0x1197ba[_0x404e5d(0x22c)]),!0x0)},h={'id':_0x404e5d(0x26a),'type':e['CommandType'][_0x404e5d(0x241)],'handler':(_0x466ee3,_0x6dc32b)=>!(_0x6dc32b!=null&&_0x6dc32b[_0x404e5d(0x1e7)])||!_0x6dc32b['blockId']?!0x1:(_0x466ee3[_0x404e5d(0x1f9)](p)[_0x404e5d(0x1a9)](_0x6dc32b[_0x404e5d(0x1e7)],_0x6dc32b[_0x404e5d(0x1b1)]),!0x0)},g=_0x404e5d(0x1c5);var _=class extends Error{constructor(_0x245bc3=_0x404e5d(0x234)){super(_0x245bc3);}};function ee(_0x2ec4c0){const _0x15b77d=_0x404e5d;var _0x5a9655;let _0xd5702b=S(_0x2ec4c0[_0x15b77d(0x1b6)]),_0x15c790=w(_0xd5702b),_0x422571=ne(_0x2ec4c0[_0x15b77d(0x1fb)],_0x2ec4c0[_0x15b77d(0x247)]),_0x54ef61=_0x422571?(_0x5a9655=_0x15c790[_0x15b77d(0x1b2)])==null?void 0x0:_0x5a9655[_0x15b77d(0x20c)](_0xe3841a=>{const _0x26e171=_0x15b77d;let _0x43397b=(0x0,e['getBlockRangeInterval'])(_0xe3841a);return _0x43397b[_0x26e171(0x1fb)]===_0x422571[_0x26e171(0x1fb)]&&_0x43397b[_0x26e171(0x247)]===_0x422571['endOffset'];}):void 0x0,{startOffset:_0x3ebe5e,endOffset:_0x2234b4}=_0x54ef61?_0x422571:me(_0x15c790,_0x2ec4c0[_0x15b77d(0x1fb)],_0x2ec4c0[_0x15b77d(0x247)],_0x2ec4c0[_0x15b77d(0x22e)]);if(!_0x54ef61&&re(_0x15c790,_0x3ebe5e,_0x2234b4))throw new _(_0x15b77d(0x23d));let _0x343706=_e(_0x15c790,_0x3ebe5e,_0x2234b4),_0x41a07e=(_0x54ef61==null?void 0x0:_0x54ef61[_0x15b77d(0x1b1)])??_0x2ec4c0[_0x15b77d(0x1b1)],_0x13fa3a=s(_0x2ec4c0[_0x15b77d(0x220)],_0x41a07e,{...i,..._0x2ec4c0[_0x15b77d(0x22c)]});if(_0x54ef61)return _0x54ef61[_0x15b77d(0x1e9)]=e[_0x15b77d(0x1ce)][_0x15b77d(0x25f)],te(_0x15c790,_0x3ebe5e,_0x2234b4),le(_0x15c790,_0x3ebe5e,_0x2234b4,_0x343706),O(_0x15c790,_0x54ef61),{'nextDocumentData':_0xd5702b,'nextMetadata':_0x13fa3a,'cursorOffset':_0x3ebe5e+0x1};if(_0x3ebe5e===_0x2234b4){var _0x2027c0,_0x29d7a8;let _0x546c2c=''+e[_0x15b77d(0x278)]['BLOCK_START']+e[_0x15b77d(0x278)][_0x15b77d(0x272)]+e[_0x15b77d(0x278)][_0x15b77d(0x1f4)];k(_0x15c790,_0x3ebe5e,_0x546c2c,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e[_0x15b77d(0x1b5)])(new Set((_0x2027c0=_0x15c790['paragraphs'])==null?void 0x0:_0x2027c0['map'](_0x5616c1=>_0x5616c1['paragraphId']))),'paragraphStyle':x(!0x0,!0x0,_0x343706)}],'blockRanges':[{'blockId':_0x41a07e,'blockType':e[_0x15b77d(0x1ce)]['CODE'],'startIndex':0x0,'endIndex':_0x546c2c['length']-0x1}]});let _0x5bd0fe=(_0x29d7a8=_0x15c790['blockRanges'])==null?void 0x0:_0x29d7a8[_0x15b77d(0x20c)](_0x377665=>_0x377665['blockId']===_0x41a07e);return _0x5bd0fe&&O(_0x15c790,_0x5bd0fe),{'nextDocumentData':_0xd5702b,'nextMetadata':_0x13fa3a,'cursorOffset':_0x3ebe5e+0x1};}k(_0x15c790,_0x2234b4,e[_0x15b77d(0x278)][_0x15b77d(0x1f4)]),k(_0x15c790,_0x3ebe5e,e['DataStreamTreeTokenType'][_0x15b77d(0x265)]),le(_0x15c790,_0x3ebe5e,_0x2234b4+0x1,_0x343706);let _0xca8c3a={'blockId':_0x41a07e,'blockType':e['DocumentBlockRangeType'][_0x15b77d(0x25f)],'startIndex':_0x3ebe5e,'endIndex':_0x2234b4+0x1};return _0x15c790['blockRanges']=[..._0x15c790['blockRanges']??[],_0xca8c3a]['sort']((_0x595e90,_0x2ce3e1)=>_0x595e90[_0x15b77d(0x251)]-_0x2ce3e1[_0x15b77d(0x251)]),O(_0x15c790,_0xca8c3a),{'nextDocumentData':_0xd5702b,'nextMetadata':_0x13fa3a,'cursorOffset':_0x3ebe5e+0x1};}function te(_0x5064cd,_0x12c0e1,_0x19097f){const _0x335b5b=_0x404e5d;(_0x5064cd['paragraphs']??[])[_0x335b5b(0x24c)](_0x321ce8=>_0x321ce8[_0x335b5b(0x251)]>_0x12c0e1&&_0x321ce8[_0x335b5b(0x251)]<_0x19097f)[_0x335b5b(0x1be)](_0x258c56=>{const _0x27b7e1=_0x335b5b;let _0x1834f5={..._0x258c56['paragraphStyle']??{}};delete _0x1834f5[_0x27b7e1(0x259)],delete _0x1834f5[_0x27b7e1(0x1b7)],_0x258c56[_0x27b7e1(0x1ea)]=_0x1834f5;});}function ne(_0x41ee60,_0xbc001d){const _0x57c380=_0x404e5d;return _0x41ee60==null||_0xbc001d==null||_0x41ee60===_0xbc001d?null:{'startOffset':Math[_0x57c380(0x228)](_0x41ee60,_0xbc001d),'endOffset':Math[_0x57c380(0x23f)](_0x41ee60,_0xbc001d)};}function re(_0x517482,_0xe7a041,_0x4aff2b){const _0x4b90e3=_0x404e5d;return(_0x517482[_0x4b90e3(0x1b2)]??[])[_0x4b90e3(0x26d)](_0x51c429=>{const _0x54915=_0x4b90e3;let _0x3cb874=(0x0,e[_0x54915(0x1d3)])(_0x51c429);return _0xe7a041===_0x4aff2b?(0x0,e[_0x54915(0x1d4)])(_0x3cb874,_0xe7a041):(0x0,e[_0x54915(0x245)])(_0x3cb874,{'startOffset':_0xe7a041,'endOffset':_0x4aff2b});});}function ie(_0x4f9b8c){const _0x421074=_0x404e5d;return{'nextDocumentData':S(_0x4f9b8c[_0x421074(0x1b6)]),'nextMetadata':s(_0x4f9b8c[_0x421074(0x220)],_0x4f9b8c[_0x421074(0x1b1)],_0x4f9b8c[_0x421074(0x22c)]),'cursorOffset':0x0};}function v(_0x32301a){const _0x35d676=_0x404e5d;let _0x136cde=S(_0x32301a[_0x35d676(0x1b6)]),_0x284d27=w(_0x136cde),_0x1f72ea=b(_0x284d27,_0x32301a[_0x35d676(0x1b1)]);if(!_0x1f72ea)return null;let _0x5b60b6=fe(_0x284d27,_0x1f72ea);return{'nextDocumentData':_0x136cde,'nextMetadata':c(_0x32301a['metadata'],_0x32301a[_0x35d676(0x1b1)]),'cursorOffset':_0x5b60b6};}function ae(_0x16d3c4){const _0x1ee11e=_0x404e5d;var _0x130086;let _0x42de2f=S(_0x16d3c4[_0x1ee11e(0x1b6)]),_0x3a4c46=w(_0x42de2f),_0x616832=b(_0x3a4c46,_0x16d3c4[_0x1ee11e(0x1b1)]);if(!_0x616832)return null;let _0x49c35b=(0x0,e[_0x1ee11e(0x1d3)])(_0x616832);return A(_0x3a4c46,_0x49c35b[_0x1ee11e(0x1fb)],_0x49c35b['endOffset']),_0x3a4c46[_0x1ee11e(0x1b2)]=(_0x130086=_0x3a4c46['blockRanges'])==null?void 0x0:_0x130086[_0x1ee11e(0x24c)](_0x2aa9d1=>_0x2aa9d1[_0x1ee11e(0x1b1)]!==_0x16d3c4[_0x1ee11e(0x1b1)]),{'nextDocumentData':_0x42de2f,'nextMetadata':c(_0x16d3c4[_0x1ee11e(0x220)],_0x16d3c4['blockId']),'cursorOffset':_0x616832[_0x1ee11e(0x251)]};}function y(_0x2c7c5e){const _0x4c1616=_0x404e5d;let _0x20b5ee=S(_0x2c7c5e['documentData']),_0x2cf9c4=w(_0x20b5ee),_0x308f46=ce(_0x2cf9c4,_0x2c7c5e[_0x4c1616(0x22a)]);return _0x308f46&&oe(_0x20b5ee,_0x2cf9c4,_0x308f46,_0x2c7c5e[_0x4c1616(0x22a)],_0x2c7c5e[_0x4c1616(0x1d9)])||null;}function oe(_0x4230c1,_0x29cef6,_0x45afa1,_0xb73c13,_0x584606){const _0x1aca57=_0x404e5d;let _0x34f4b5=Se(_0x29cef6,_0x45afa1,_0xb73c13,_0x584606);if(!_0x34f4b5)return null;let _0x5c524e=_0x34f4b5[_0x1aca57(0x257)]-0x1;return A(_0x29cef6,_0x34f4b5[_0x1aca57(0x1ec)]['startIndex'],_0x34f4b5['paragraph'][_0x1aca57(0x251)]+0x1),{'nextDocumentData':_0x4230c1,'cursorOffset':_0x5c524e};}function b(_0xe860ec,_0x2cf1cc){const _0x144396=_0x404e5d;var _0x30e711;return _0xe860ec==null||(_0x30e711=_0xe860ec[_0x144396(0x1b2)])==null?void 0x0:_0x30e711['find'](_0x4fd82e=>_0x4fd82e[_0x144396(0x1e9)]===e[_0x144396(0x1ce)][_0x144396(0x25f)]&&_0x4fd82e['blockId']===_0x2cf1cc);}function se(_0x2394d5){const _0x193f6e=_0x404e5d;let _0x58abc8=_0x2394d5[_0x193f6e(0x1b6)][_0x193f6e(0x22f)];if(!_0x58abc8)return!0x1;let _0x832f0c=_0x2394d5['direction']==='left'?_0x2394d5[_0x193f6e(0x22a)]-0x1:_0x2394d5['cursorOffset'],_0x1f1b25=_0x2394d5[_0x193f6e(0x1dd)]===_0x193f6e(0x20b)?_0x2394d5[_0x193f6e(0x22a)]+0x1:_0x832f0c;return(_0x58abc8[_0x193f6e(0x1b2)]??[])[_0x193f6e(0x26d)](_0x44885e=>_0x44885e['blockType']===e[_0x193f6e(0x1ce)][_0x193f6e(0x25f)]?_0x832f0c===_0x44885e[_0x193f6e(0x251)]||_0x832f0c===_0x44885e[_0x193f6e(0x1cf)]||_0x1f1b25===_0x44885e[_0x193f6e(0x251)]||_0x1f1b25===_0x44885e[_0x193f6e(0x1cf)]:!0x1);}function ce(_0x1afe10,_0x45305b){const _0x34d920=_0x404e5d;var _0x5bf369;return(_0x5bf369=_0x1afe10[_0x34d920(0x1b2)])==null?void 0x0:_0x5bf369[_0x34d920(0x20c)](_0x574a43=>{const _0x2a6c98=_0x34d920;let _0x34d7fd=D(_0x574a43);return _0x574a43['blockType']===e[_0x2a6c98(0x1ce)][_0x2a6c98(0x25f)]&&_0x574a43['startIndex']<=_0x45305b&&_0x45305b<=_0x34d7fd+0x2;});}function x(_0x4a085e,_0x5998f9,_0x12503c=!0x1){const _0x5a5091=_0x404e5d;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':e[_0x5a5091(0x1c7)][_0x5a5091(0x209)],'keepNext':_0x5998f9?e[_0x5a5091(0x1c7)][_0x5a5091(0x1a5)]:e['BooleanNumber']['TRUE'],'widowControl':e[_0x5a5091(0x1c7)]['TRUE'],..._0x4a085e&&_0x12503c?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':g,'fs':0xc}};}function le(_0x12b2a6,_0x15814e,_0x2f0a73,_0x5913c2=!0x1){const _0x5928f6=_0x404e5d;let _0x5c2ee1=(_0x12b2a6[_0x5928f6(0x1e1)]??[])[_0x5928f6(0x24c)](_0x4f2217=>_0x4f2217[_0x5928f6(0x251)]>_0x15814e&&_0x4f2217[_0x5928f6(0x251)]<_0x2f0a73);_0x5c2ee1[_0x5928f6(0x1be)]((_0xa32ec2,_0x1be219)=>{const _0x2f28ec=_0x5928f6;_0xa32ec2['paragraphStyle']={..._0xa32ec2[_0x2f28ec(0x1ea)]??{},...x(_0x1be219===0x0,_0x1be219===_0x5c2ee1[_0x2f28ec(0x1a8)]-0x1,_0x5913c2)};});}function ue(_0x372440){const _0x540d9d=_0x404e5d;var _0x5a61e9,_0x33249e;let _0x474e55={..._0x372440??{}};return delete _0x474e55['indentEnd'],delete _0x474e55[_0x540d9d(0x1ef)],delete _0x474e55[_0x540d9d(0x259)],delete _0x474e55[_0x540d9d(0x1b7)],delete _0x474e55['keepLines'],delete _0x474e55[_0x540d9d(0x21e)],delete _0x474e55[_0x540d9d(0x232)],((_0x5a61e9=_0x474e55['textStyle'])==null?void 0x0:_0x5a61e9['ff'])===g&&((_0x33249e=_0x474e55[_0x540d9d(0x25a)])==null?void 0x0:_0x33249e['fs'])===0xc&&delete _0x474e55[_0x540d9d(0x25a)],_0x474e55;}function de(_0x4bd5c3,_0x26c797){const _0x597a86=_0x404e5d;let _0x1a2345=D(_0x26c797);return(_0x4bd5c3[_0x597a86(0x1e1)]??[])[_0x597a86(0x24c)](_0x1a1c37=>_0x1a1c37[_0x597a86(0x251)]>_0x26c797['startIndex']&&_0x1a1c37[_0x597a86(0x251)]<_0x1a2345);}function fe(_0x17323c,_0x15414d){const _0x572345=_0x404e5d;var _0x12ef8c;let _0x1c2672=D(_0x15414d);return de(_0x17323c,_0x15414d)[_0x572345(0x1be)](_0x321eb6=>{const _0x588e96=_0x572345;_0x321eb6[_0x588e96(0x1ea)]=ue(_0x321eb6['paragraphStyle']);}),A(_0x17323c,_0x1c2672,_0x1c2672+0x1),A(_0x17323c,_0x15414d['startIndex'],_0x15414d[_0x572345(0x251)]+0x1),_0x17323c[_0x572345(0x1b2)]=(_0x12ef8c=_0x17323c[_0x572345(0x1b2)])==null?void 0x0:_0x12ef8c[_0x572345(0x24c)](_0x2022ab=>_0x2022ab[_0x572345(0x1b1)]!==_0x15414d[_0x572345(0x1b1)]),_0x15414d[_0x572345(0x251)];}function S(_0x2d411f){const _0x54f5ff=_0x404e5d;return{..._0x2d411f,'body':_0x2d411f[_0x54f5ff(0x22f)]?pe(_0x2d411f[_0x54f5ff(0x22f)]):_0x2d411f[_0x54f5ff(0x22f)]};}function pe(_0x544010){const _0x45a615=_0x404e5d;var _0x1d1027,_0xb561a2,_0x33882f,_0x500e06,_0x355b61,_0x54d4f2,_0x4be941,_0x66206a,_0x203c03;return{..._0x544010,'paragraphs':(_0x1d1027=_0x544010[_0x45a615(0x1e1)])==null?void 0x0:_0x1d1027[_0x45a615(0x1d1)](_0x4a54ed=>({..._0x4a54ed,'bullet':C(_0x4a54ed[_0x45a615(0x249)]),'paragraphStyle':C(_0x4a54ed['paragraphStyle'])})),'sectionBreaks':(_0xb561a2=_0x544010[_0x45a615(0x24d)])==null?void 0x0:_0xb561a2[_0x45a615(0x1d1)](_0x2bc9b0=>({..._0x2bc9b0})),'textRuns':(_0x33882f=_0x544010[_0x45a615(0x1b0)])==null?void 0x0:_0x33882f[_0x45a615(0x1d1)](_0xebf109=>({..._0xebf109})),'tables':(_0x500e06=_0x544010[_0x45a615(0x215)])==null?void 0x0:_0x500e06['map'](_0x34a18e=>({..._0x34a18e})),'columnGroups':(_0x355b61=_0x544010[_0x45a615(0x214)])==null?void 0x0:_0x355b61[_0x45a615(0x1d1)](_0x38511f=>{const _0x4dfd58=_0x45a615;var _0xcd356;return{..._0x38511f,'columns':(_0xcd356=_0x38511f[_0x4dfd58(0x1ba)])==null?void 0x0:_0xcd356['map'](_0xc87ba7=>C(_0xc87ba7))};}),'blockRanges':(_0x54d4f2=_0x544010['blockRanges'])==null?void 0x0:_0x54d4f2[_0x45a615(0x1d1)](_0x1f3e94=>({..._0x1f3e94})),'customRanges':(_0x4be941=_0x544010[_0x45a615(0x261)])==null?void 0x0:_0x4be941[_0x45a615(0x1d1)](_0x4a8eef=>({..._0x4a8eef})),'customDecorations':(_0x66206a=_0x544010[_0x45a615(0x1dc)])==null?void 0x0:_0x66206a['map'](_0x1fd5d0=>({..._0x1fd5d0})),'customBlocks':(_0x203c03=_0x544010[_0x45a615(0x275)])==null?void 0x0:_0x203c03['map'](_0x3fc6e4=>({..._0x3fc6e4}))};}function C(_0x5f2a1b){const _0x84e316=_0x404e5d;return Array[_0x84e316(0x1fe)](_0x5f2a1b)?_0x5f2a1b['map'](_0xf1409f=>C(_0xf1409f)):!_0x5f2a1b||typeof _0x5f2a1b!=_0x84e316(0x202)?_0x5f2a1b:Object[_0x84e316(0x1e3)](Object['entries'](_0x5f2a1b)[_0x84e316(0x1d1)](([_0x2d68f6,_0x2c6bc2])=>[_0x2d68f6,C(_0x2c6bc2)]));}function w(_0x206f17){const _0x309a3b=_0x404e5d;if(!_0x206f17[_0x309a3b(0x22f)])throw Error(_0x309a3b(0x248));return _0x206f17['body'];}function me(_0x2928f8,_0x509a39,_0x3d0c19,_0x59ced4=_0x404e5d(0x219)){const _0x53cc49=_0x404e5d;if(_0x509a39==null||_0x3d0c19==null){let _0x4f37ef=ge(_0x2928f8);return{'startOffset':_0x4f37ef,'endOffset':_0x4f37ef};}let _0x4918fe=Math[_0x53cc49(0x228)](_0x509a39,_0x3d0c19),_0x272a25=Math[_0x53cc49(0x23f)](_0x509a39,_0x3d0c19),_0x1f94a5=xe(_0x2928f8,_0x4918fe,_0x272a25);return _0x4918fe===_0x272a25?_0x59ced4===_0x53cc49(0x242)?{'startOffset':_0x4918fe,'endOffset':_0x272a25}:he(_0x2928f8,_0x4918fe,_0x1f94a5):ve(_0x2928f8,_0x4918fe,_0x272a25,_0x1f94a5);}function he(_0xed370f,_0x1208b2,_0x4f9431){const _0x44b9c1=_0x404e5d;let _0x78bea6=ye(_0xed370f,_0x1208b2);if(_0x78bea6){let _0x1421fb=T(_0xed370f,_0x78bea6,_0x4f9431);if(_0x1421fb<_0x78bea6[_0x44b9c1(0x251)])return{'startOffset':_0x1421fb,'endOffset':_0x4f9431?Math['min'](_0x78bea6[_0x44b9c1(0x251)]+0x1,_0x4f9431[_0x44b9c1(0x247)]):_0x78bea6[_0x44b9c1(0x251)]+0x1};}let _0x5bc73d=_0x1208b2===0x0&&_0xed370f[_0x44b9c1(0x1ae)][0x0]===e[_0x44b9c1(0x278)][_0x44b9c1(0x272)]?0x1:_0x1208b2;return{'startOffset':_0x5bc73d,'endOffset':_0x5bc73d};}function ge(_0x254d95){const _0x424a13=_0x404e5d;return _0x254d95['dataStream'][_0x424a13(0x21b)](e[_0x424a13(0x278)][_0x424a13(0x256)])?Math['max'](0x0,_0x254d95['dataStream']['length']-0x1):_0x254d95['dataStream'][_0x424a13(0x1a8)];}function _e(_0x32589e,_0x5945fe,_0xb67f58){const _0x450d0a=_0x404e5d;var _0x475d94;let _0x125000=Math[_0x450d0a(0x228)](_0x5945fe,_0xb67f58),_0x32eed9=Math[_0x450d0a(0x23f)](_0x5945fe,_0xb67f58);return!!((_0x475d94=_0x32589e['tables'])!=null&&_0x475d94['some'](_0x401bba=>_0x125000>_0x401bba[_0x450d0a(0x251)]&&_0x125000<_0x401bba[_0x450d0a(0x1cf)]||_0x32eed9>_0x401bba['startIndex']&&_0x32eed9<_0x401bba[_0x450d0a(0x1cf)]||_0x125000<=_0x401bba[_0x450d0a(0x251)]&&_0x32eed9>=_0x401bba['endIndex']));}function ve(_0x50a38a,_0x7810e1,_0x38d0f6,_0x970f22){const _0x55dbf1=_0x404e5d;let _0x20d520=[..._0x50a38a[_0x55dbf1(0x1e1)]??[]][_0x55dbf1(0x233)]((_0x28fc9d,_0x24cf00)=>_0x28fc9d[_0x55dbf1(0x251)]-_0x24cf00[_0x55dbf1(0x251)]),_0x6df5f5=(0x0,e['getParagraphContentStartOffsets'])(_0x50a38a),_0x30f924=_0x20d520[_0x55dbf1(0x20c)](_0x3d14e3=>T(_0x50a38a,_0x3d14e3,_0x970f22,_0x6df5f5)<=_0x7810e1&&_0x7810e1<=_0x3d14e3[_0x55dbf1(0x251)]),_0x28cb95=_0x20d520['find'](_0x2cf7d9=>_0x2cf7d9[_0x55dbf1(0x251)]>=_0x38d0f6-0x1)??_0x20d520[_0x20d520[_0x55dbf1(0x1a8)]-0x1];return{'startOffset':_0x30f924?T(_0x50a38a,_0x30f924,_0x970f22,_0x6df5f5):_0x7810e1,'endOffset':_0x28cb95?be(_0x28cb95,_0x970f22):_0x38d0f6};}function ye(_0x351475,_0x48ff41){const _0x31d863=_0x404e5d;let _0x74a118=[..._0x351475[_0x31d863(0x1e1)]??[]][_0x31d863(0x233)]((_0x1325b2,_0x28b1b6)=>_0x1325b2['startIndex']-_0x28b1b6[_0x31d863(0x251)]),_0x59b65f=(0x0,e[_0x31d863(0x1f1)])(_0x351475);return _0x74a118['find'](_0x48c2d2=>(_0x59b65f[_0x31d863(0x1f9)](_0x48c2d2[_0x31d863(0x251)])??0x0)<=_0x48ff41&&_0x48ff41<=_0x48c2d2[_0x31d863(0x251)]);}function T(_0x3d8534,_0x4fea2d,_0x1ab4f3,_0x3a2eb0){const _0x122247=_0x404e5d;let _0x3544c3=(_0x3a2eb0==null?void 0x0:_0x3a2eb0[_0x122247(0x1f9)](_0x4fea2d[_0x122247(0x251)]))??(0x0,e['getParagraphContentStartOffset'])(_0x3d8534,_0x4fea2d);return _0x1ab4f3?Math[_0x122247(0x23f)](_0x3544c3,_0x1ab4f3[_0x122247(0x1fb)]):_0x3544c3;}function be(_0xc0ce21,_0x3ebdb9){const _0xb589e=_0x404e5d;let _0x363102=_0xc0ce21['startIndex']+0x1;return _0x3ebdb9?Math['min'](_0x363102,_0x3ebdb9[_0xb589e(0x247)]):_0x363102;}function xe(_0x519792,_0x426da2,_0x52ca5){const _0x5b57c4=_0x404e5d;let _0x413e28=E(_0x519792,_0x426da2),_0x3cf198=E(_0x519792,_0x426da2===_0x52ca5?_0x52ca5:Math[_0x5b57c4(0x23f)](_0x426da2,_0x52ca5-0x1));if(!(!_0x413e28&&!_0x3cf198)){if(!_0x413e28||!_0x3cf198||_0x413e28['startTokenOffset']!==_0x3cf198[_0x5b57c4(0x1c8)]||_0x413e28[_0x5b57c4(0x257)]!==_0x3cf198[_0x5b57c4(0x257)])throw new _();return _0x413e28;}}function E(_0x2ceb07,_0x149dc2){const _0x1a56ed=_0x404e5d;let _0x4b4cf0=_0x2ceb07[_0x1a56ed(0x1ae)],_0x1764f1=-0x1;for(let _0x2e9e1e=Math['min'](_0x149dc2,_0x4b4cf0[_0x1a56ed(0x1a8)]-0x1);_0x2e9e1e>=0x0;_0x2e9e1e--){let _0x165077=_0x4b4cf0[_0x2e9e1e];if(_0x165077===e[_0x1a56ed(0x278)]['TABLE_CELL_END'])return;if(_0x165077===e[_0x1a56ed(0x278)][_0x1a56ed(0x218)]){_0x1764f1=_0x2e9e1e;break;}}if(_0x1764f1<0x0)return;let _0x34551a=_0x4b4cf0[_0x1a56ed(0x262)](e['DataStreamTreeTokenType'][_0x1a56ed(0x1a3)],_0x1764f1+0x1);if(!(_0x34551a<0x0||_0x149dc2<_0x1764f1+0x1||_0x149dc2>_0x34551a-0x1))return{'startOffset':_0x1764f1+0x1,'endOffset':Math[_0x1a56ed(0x23f)](_0x1764f1+0x1,_0x34551a-0x1),'startTokenOffset':_0x1764f1,'endTokenOffset':_0x34551a};}function _0x153d(_0x210b88,_0x2ea996){_0x210b88=_0x210b88-0x1a0;const _0x89c786=_0x89c7();let _0x153d2f=_0x89c786[_0x210b88];return _0x153d2f;}function D(_0xe052f3){const _0x574266=_0x404e5d;return(0x0,e[_0x574266(0x1d3)])(_0xe052f3)[_0x574266(0x247)]-0x1;}function Se(_0x4e040c,_0x18fa46,_0x4dab4f,_0x5275ec){const _0x23dbd5=_0x404e5d;let _0x506571=D(_0x18fa46),_0x202f7f=(_0x4e040c[_0x23dbd5(0x1e1)]??[])[_0x23dbd5(0x20c)](_0xf12e4e=>_0xf12e4e['startIndex']===_0x506571+0x1);if(!_0x202f7f||_0x5275ec!=null&&_0x202f7f[_0x23dbd5(0x251)]!==_0x5275ec||_0x4dab4f!=null&&(_0x4dab4f<_0x506571||_0x4dab4f>_0x202f7f[_0x23dbd5(0x251)]+0x1)||_0x4e040c[_0x23dbd5(0x1ae)][_0x202f7f[_0x23dbd5(0x251)]]!==e['DataStreamTreeTokenType'][_0x23dbd5(0x272)])return null;let _0x3ff4bb=(0x0,e[_0x23dbd5(0x1f8)])(_0x4e040c,_0x202f7f),_0x558a80=_0x4e040c['dataStream'][_0x23dbd5(0x1ca)](_0x3ff4bb,_0x202f7f[_0x23dbd5(0x251)]);return Array[_0x23dbd5(0x20a)](_0x558a80)[_0x23dbd5(0x1c0)](_0x524def=>_0x524def===e[_0x23dbd5(0x278)][_0x23dbd5(0x1f4)])?{'paragraph':_0x202f7f,'endTokenOffset':_0x506571}:null;}function O(_0x298a00,_0x5a2f7c){const _0x2a464b=_0x404e5d;var _0x39b32a;let _0x3e6fe1=D(_0x5a2f7c),_0x56820a=_0x298a00['dataStream'][_0x3e6fe1+0x1];(_0x56820a===e[_0x2a464b(0x278)][_0x2a464b(0x256)]||_0x56820a===void 0x0)&&k(_0x298a00,_0x3e6fe1+0x1,e['DataStreamTreeTokenType'][_0x2a464b(0x272)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,e['createParagraphId'])(new Set((_0x39b32a=_0x298a00[_0x2a464b(0x1e1)])==null?void 0x0:_0x39b32a[_0x2a464b(0x1d1)](_0x5c18d4=>_0x5c18d4[_0x2a464b(0x1d7)])))}]});}function k(_0x593b43,_0x55649b,_0x521ce9,_0x1ce83e={}){const _0x5cbdbf=_0x404e5d;var _0x1549e7,_0x26a02f;_0x521ce9&&(_0x593b43['dataStream']=''+_0x593b43[_0x5cbdbf(0x1ae)][_0x5cbdbf(0x1ca)](0x0,_0x55649b)+_0x521ce9+_0x593b43[_0x5cbdbf(0x1ae)]['slice'](_0x55649b),Ce(_0x593b43,_0x55649b,_0x521ce9[_0x5cbdbf(0x1a8)]),(_0x1549e7=_0x1ce83e['paragraphs'])!=null&&_0x1549e7['length']&&(_0x593b43[_0x5cbdbf(0x1e1)]=[..._0x593b43[_0x5cbdbf(0x1e1)]??[],..._0x1ce83e[_0x5cbdbf(0x1e1)][_0x5cbdbf(0x1d1)](_0x33d442=>({..._0x33d442,'startIndex':_0x33d442[_0x5cbdbf(0x251)]+_0x55649b}))][_0x5cbdbf(0x233)]((_0x5dbfa0,_0x2152cd)=>_0x5dbfa0[_0x5cbdbf(0x251)]-_0x2152cd['startIndex'])),(_0x26a02f=_0x1ce83e[_0x5cbdbf(0x1b2)])!=null&&_0x26a02f[_0x5cbdbf(0x1a8)]&&(_0x593b43[_0x5cbdbf(0x1b2)]=[..._0x593b43[_0x5cbdbf(0x1b2)]??[],..._0x1ce83e[_0x5cbdbf(0x1b2)]['map'](_0xb1b162=>({..._0xb1b162,'startIndex':_0xb1b162['startIndex']+_0x55649b,'endIndex':_0xb1b162['endIndex']+_0x55649b}))]['sort']((_0x3472e7,_0xd2e960)=>_0x3472e7['startIndex']-_0xd2e960['startIndex'])));}function A(_0x143e12,_0x30e9b5,_0xd8f298){const _0x15227b=_0x404e5d;let _0x42ccd1=_0xd8f298-_0x30e9b5;_0x143e12[_0x15227b(0x1ae)]=''+_0x143e12['dataStream'][_0x15227b(0x1ca)](0x0,_0x30e9b5)+_0x143e12['dataStream']['slice'](_0xd8f298),we(_0x143e12,_0x30e9b5,_0x42ccd1);}function Ce(_0xde26f4,_0x20bc37,_0x4fbbdc){const _0x4ca3a6=_0x404e5d;_0xde26f4[_0x4ca3a6(0x1e1)]=j(_0xde26f4[_0x4ca3a6(0x1e1)],_0x20bc37,_0x4fbbdc),_0xde26f4[_0x4ca3a6(0x24d)]=j(_0xde26f4['sectionBreaks'],_0x20bc37,_0x4fbbdc),_0xde26f4[_0x4ca3a6(0x275)]=j(_0xde26f4[_0x4ca3a6(0x275)],_0x20bc37,_0x4fbbdc),_0xde26f4[_0x4ca3a6(0x1b0)]=Te(_0xde26f4[_0x4ca3a6(0x1b0)],_0x20bc37,_0x4fbbdc),_0xde26f4[_0x4ca3a6(0x215)]=Ee(_0xde26f4[_0x4ca3a6(0x215)],_0x20bc37,_0x4fbbdc),_0xde26f4[_0x4ca3a6(0x214)]=N(_0xde26f4[_0x4ca3a6(0x214)],_0x20bc37,_0x4fbbdc),_0xde26f4[_0x4ca3a6(0x261)]=N(_0xde26f4[_0x4ca3a6(0x261)],_0x20bc37,_0x4fbbdc),_0xde26f4[_0x4ca3a6(0x1dc)]=N(_0xde26f4['customDecorations'],_0x20bc37,_0x4fbbdc),_0xde26f4['blockRanges']=N(_0xde26f4[_0x4ca3a6(0x1b2)],_0x20bc37,_0x4fbbdc);}function we(_0x14584f,_0x588711,_0x20c4f8){const _0x357ce3=_0x404e5d;var _0x584852,_0x42482d;_0x14584f[_0x357ce3(0x1e1)]=M(_0x14584f[_0x357ce3(0x1e1)],_0x588711,_0x20c4f8),_0x14584f['sectionBreaks']=M(_0x14584f[_0x357ce3(0x24d)],_0x588711,_0x20c4f8),_0x14584f[_0x357ce3(0x275)]=M(_0x14584f[_0x357ce3(0x275)],_0x588711,_0x20c4f8),_0x14584f[_0x357ce3(0x1b0)]=(_0x584852=F((_0x42482d=_0x14584f[_0x357ce3(0x1b0)])==null?void 0x0:_0x42482d[_0x357ce3(0x1d1)](_0x3e395d=>({..._0x3e395d,'startIndex':_0x3e395d['st'],'endIndex':_0x3e395d['ed']})),_0x588711,_0x20c4f8))==null?void 0x0:_0x584852[_0x357ce3(0x1d1)](_0x489fe7=>{let {startIndex:_0x5aa921,endIndex:_0x28f90d,..._0x21752d}=_0x489fe7;return{..._0x21752d,'st':_0x5aa921,'ed':_0x28f90d};}),_0x14584f['tables']=F(_0x14584f['tables'],_0x588711,_0x20c4f8),_0x14584f[_0x357ce3(0x214)]=P(_0x14584f['columnGroups'],_0x588711,_0x20c4f8),_0x14584f[_0x357ce3(0x261)]=P(_0x14584f['customRanges'],_0x588711,_0x20c4f8),_0x14584f[_0x357ce3(0x1dc)]=P(_0x14584f[_0x357ce3(0x1dc)],_0x588711,_0x20c4f8),_0x14584f['blockRanges']=P(_0x14584f[_0x357ce3(0x1b2)],_0x588711,_0x20c4f8);}function j(_0x340f12,_0x15e41d,_0x38dec6){const _0x58210d=_0x404e5d;return _0x340f12==null?void 0x0:_0x340f12[_0x58210d(0x1d1)](_0x4a2766=>_0x4a2766[_0x58210d(0x251)]>=_0x15e41d?{..._0x4a2766,'startIndex':_0x4a2766[_0x58210d(0x251)]+_0x38dec6}:_0x4a2766);}function M(_0x1fae53,_0x1cccb6,_0x4209de){const _0x48a307=_0x404e5d;let _0x3262ea=_0x1cccb6+_0x4209de;return _0x1fae53==null?void 0x0:_0x1fae53[_0x48a307(0x1d1)](_0x3fb41a=>_0x3fb41a[_0x48a307(0x251)]>=_0x1cccb6&&_0x3fb41a[_0x48a307(0x251)]<_0x3262ea?null:_0x3fb41a['startIndex']>=_0x3262ea?{..._0x3fb41a,'startIndex':_0x3fb41a[_0x48a307(0x251)]-_0x4209de}:_0x3fb41a)[_0x48a307(0x24c)](_0xbeee4d=>_0xbeee4d!=null);}function Te(_0x17a70c,_0x45e8bd,_0x595762){const _0x36b090=_0x404e5d;return _0x17a70c==null?void 0x0:_0x17a70c[_0x36b090(0x1d1)](_0x3763e6=>_0x3763e6['st']>=_0x45e8bd?{..._0x3763e6,'st':_0x3763e6['st']+_0x595762,'ed':_0x3763e6['ed']+_0x595762}:_0x3763e6['ed']>_0x45e8bd?{..._0x3763e6,'ed':_0x3763e6['ed']+_0x595762}:_0x3763e6);}function N(_0xdfd64,_0x54c34e,_0x4d968a){const _0x20b197=_0x404e5d;return _0xdfd64==null?void 0x0:_0xdfd64[_0x20b197(0x1d1)](_0x2bb67b=>(0x0,e[_0x20b197(0x1de)])(_0x2bb67b,_0x54c34e,_0x4d968a));}function Ee(_0x3dba98,_0x498919,_0x3d2f46){const _0x63386c=_0x404e5d;return _0x3dba98==null?void 0x0:_0x3dba98[_0x63386c(0x1d1)](_0x398d45=>(0x0,e['shiftExclusiveRangeOnInsert'])(_0x398d45,_0x498919,_0x3d2f46));}function P(_0x589c04,_0x4e5dca,_0x484ba0){const _0x295f86=_0x404e5d;return _0x589c04==null?void 0x0:_0x589c04['map'](_0x425290=>(0x0,e[_0x295f86(0x1bd)])(_0x425290,_0x4e5dca,_0x484ba0))[_0x295f86(0x24c)](_0x193d92=>_0x193d92!=null);}function F(_0x20ce55,_0x48804f,_0x4156e3){const _0x3ff99d=_0x404e5d;return _0x20ce55==null?void 0x0:_0x20ce55[_0x3ff99d(0x1d1)](_0x58630e=>(0x0,e[_0x3ff99d(0x205)])(_0x58630e,_0x48804f,_0x4156e3))[_0x3ff99d(0x24c)](_0x3ec425=>_0x3ec425!=null);}const I={'id':'docs-code.command.insert-below','type':e[_0x404e5d(0x231)][_0x404e5d(0x1bc)],'handler':_0x45e618=>{const _0x3c20c4=_0x404e5d;var _0x5d4eb3;if((0x0,n[_0x3c20c4(0x1ab)])(W(_0x45e618)))return!0x1;let _0x2a14a6=(0x0,n['getContentInsertRange'])(_0x45e618);if(_0x2a14a6)return _0x45e618[_0x3c20c4(0x1f9)](e['ICommandService'])[_0x3c20c4(0x239)](R['id'],{'startOffset':_0x2a14a6[_0x3c20c4(0x1fb)],'endOffset':_0x2a14a6[_0x3c20c4(0x247)],'insertionMode':_0x3c20c4(0x242),'unitId':_0x2a14a6[_0x3c20c4(0x1e7)]});let _0x1675ed=je(_0x45e618);if(!_0x1675ed)return!0x1;let _0x48e797=(_0x5d4eb3=_0x45e618[_0x3c20c4(0x1f9)](e[_0x3c20c4(0x1d8)])[_0x3c20c4(0x206)](e[_0x3c20c4(0x23c)][_0x3c20c4(0x1a4)]))==null?void 0x0:_0x5d4eb3[_0x3c20c4(0x264)](),_0x3b9d41=_0x48e797?(0x0,e[_0x3c20c4(0x1d6)])(_0x48e797,_0x1675ed):_0x1675ed['startIndex']+0x1;return _0x45e618[_0x3c20c4(0x1f9)](e[_0x3c20c4(0x26b)])[_0x3c20c4(0x239)](R['id'],{'startOffset':_0x3b9d41,'endOffset':_0x3b9d41});}},L={'id':_0x404e5d(0x1a2),'type':e['CommandType'][_0x404e5d(0x1bc)],'handler':()=>!0x0},R={'id':_0x404e5d(0x254),'type':e[_0x404e5d(0x231)][_0x404e5d(0x1bc)],'handler':(_0x48ae45,_0x30a336)=>{const _0x578161=_0x404e5d;let _0x4ecd2b=U(_0x48ae45,_0x30a336==null?void 0x0:_0x30a336[_0x578161(0x1e7)]);if(!_0x4ecd2b)return!0x1;let _0x28dccd=W(_0x48ae45);if((0x0,n[_0x578161(0x1ab)])(_0x28dccd))return!0x1;let _0x58126b=_0x4ecd2b[_0x578161(0x204)][_0x578161(0x244)](_0x4ecd2b['unitId']),_0x36d815=Oe(_0x30a336,_0x28dccd),_0x9d9448=ke(_0x4ecd2b[_0x578161(0x1cd)],_0x36d815);if(_0x9d9448){if(_0x9d9448[_0x578161(0x1e9)]!==e[_0x578161(0x1ce)][_0x578161(0x25f)])return!0x1;let _0x41ef02=v({'blockId':_0x9d9448[_0x578161(0x1b1)],'documentData':_0x4ecd2b[_0x578161(0x1cd)],'metadata':_0x58126b});if(!_0x41ef02)return!0x1;let _0x3b4af0=J(_0x4ecd2b[_0x578161(0x23b)],_0x4ecd2b['selectionManager'],_0x4ecd2b[_0x578161(0x1e7)],_0x4ecd2b[_0x578161(0x1cd)],_0x41ef02[_0x578161(0x1e6)],R['id'],_0x41ef02['cursorOffset']);return _0x3b4af0&&_0x41ef02['nextMetadata']&&_0x4ecd2b[_0x578161(0x204)]['deserialize'](_0x4ecd2b[_0x578161(0x1e7)],_0x41ef02[_0x578161(0x1fd)]),_0x3b4af0;}let _0x12a3a5=(_0x30a336==null?void 0x0:_0x30a336[_0x578161(0x1b1)])??(0x0,e[_0x578161(0x1c4)])(0x6),_0x305812;try{_0x305812=ee({'blockId':_0x12a3a5,'config':_0x30a336==null?void 0x0:_0x30a336['config'],'documentData':_0x4ecd2b['previousDocumentData'],'endOffset':_0x36d815==null?void 0x0:_0x36d815[_0x578161(0x247)],'insertionMode':_0x30a336==null?void 0x0:_0x30a336[_0x578161(0x22e)],'metadata':_0x58126b,'startOffset':_0x36d815==null?void 0x0:_0x36d815[_0x578161(0x1fb)]});}catch(_0x2b95e7){if(_0x2b95e7 instanceof _)return!0x1;throw _0x2b95e7;}let _0x2f85ec=J(_0x4ecd2b['commandService'],_0x4ecd2b[_0x578161(0x21d)],_0x4ecd2b[_0x578161(0x1e7)],_0x4ecd2b[_0x578161(0x1cd)],_0x305812[_0x578161(0x1e6)],R['id'],_0x305812[_0x578161(0x22a)]);return _0x2f85ec&&_0x305812[_0x578161(0x1fd)]&&_0x4ecd2b['model']['deserialize'](_0x4ecd2b[_0x578161(0x1e7)],_0x305812[_0x578161(0x1fd)]),_0x2f85ec;}},z={'id':_0x404e5d(0x1bb),'type':e['CommandType'][_0x404e5d(0x1bc)],'handler':(_0x33c0d5,_0x244621)=>{const _0x4cc48e=_0x404e5d;if(!_0x244621)return!0x1;let _0x494af3=U(_0x33c0d5,_0x244621[_0x4cc48e(0x1e7)]);if(!_0x494af3)return!0x1;let _0x4d4df9=ie({'blockId':_0x244621['blockId'],'config':_0x244621['config'],'documentData':_0x494af3['previousDocumentData'],'metadata':_0x494af3[_0x4cc48e(0x204)][_0x4cc48e(0x244)](_0x494af3[_0x4cc48e(0x1e7)])});return _0x4d4df9['nextMetadata']&&_0x494af3[_0x4cc48e(0x204)][_0x4cc48e(0x26f)](_0x494af3[_0x4cc48e(0x1e7)],_0x4d4df9[_0x4cc48e(0x1fd)]),!0x0;}},De={'id':'docs-code.command.exit','type':e[_0x404e5d(0x231)][_0x404e5d(0x1bc)],'handler':(_0x34b6de,_0x2051b0)=>B[_0x404e5d(0x26c)](_0x34b6de,_0x2051b0)},B={'id':'docs-code.command.unwrap','type':e[_0x404e5d(0x231)][_0x404e5d(0x1bc)],'handler':(_0x4d3498,_0x11cf5c)=>{const _0x5e6a09=_0x404e5d;if(!_0x11cf5c)return!0x1;let _0x4231de=U(_0x4d3498,_0x11cf5c==null?void 0x0:_0x11cf5c[_0x5e6a09(0x1e7)]);if(!_0x4231de)return!0x1;let _0x45f147=v({'blockId':_0x11cf5c[_0x5e6a09(0x1b1)],'documentData':_0x4231de[_0x5e6a09(0x1cd)],'metadata':_0x4231de[_0x5e6a09(0x204)][_0x5e6a09(0x244)](_0x4231de[_0x5e6a09(0x1e7)])});if(!_0x45f147)return!0x1;let _0x27d60c=J(_0x4231de[_0x5e6a09(0x23b)],_0x4231de[_0x5e6a09(0x21d)],_0x4231de[_0x5e6a09(0x1e7)],_0x4231de[_0x5e6a09(0x1cd)],_0x45f147[_0x5e6a09(0x1e6)],B['id'],_0x45f147[_0x5e6a09(0x22a)]);return _0x27d60c&&_0x45f147[_0x5e6a09(0x1fd)]&&_0x4231de[_0x5e6a09(0x204)][_0x5e6a09(0x26f)](_0x4231de[_0x5e6a09(0x1e7)],_0x45f147[_0x5e6a09(0x1fd)]),_0x27d60c;}},V={'id':_0x404e5d(0x271),'type':e[_0x404e5d(0x231)]['COMMAND'],'handler':(_0x1e2cab,_0x53b547)=>{const _0x42bce2=_0x404e5d;if(!_0x53b547)return!0x1;let _0x3ba4a0=U(_0x1e2cab,_0x53b547==null?void 0x0:_0x53b547[_0x42bce2(0x1e7)]);if(!_0x3ba4a0)return!0x1;let _0x475602=ae({'blockId':_0x53b547[_0x42bce2(0x1b1)],'documentData':_0x3ba4a0[_0x42bce2(0x1cd)],'metadata':_0x3ba4a0[_0x42bce2(0x204)][_0x42bce2(0x244)](_0x3ba4a0[_0x42bce2(0x1e7)])});if(!_0x475602)return!0x1;let _0x3d60fb=J(_0x3ba4a0[_0x42bce2(0x23b)],_0x3ba4a0[_0x42bce2(0x21d)],_0x3ba4a0[_0x42bce2(0x1e7)],_0x3ba4a0[_0x42bce2(0x1cd)],_0x475602[_0x42bce2(0x1e6)],V['id'],_0x475602[_0x42bce2(0x22a)]);return _0x3d60fb&&_0x475602[_0x42bce2(0x1fd)]&&_0x3ba4a0['model'][_0x42bce2(0x26f)](_0x3ba4a0[_0x42bce2(0x1e7)],_0x475602['nextMetadata']),_0x3d60fb;}},H={'id':_0x404e5d(0x1b9),'type':e[_0x404e5d(0x231)][_0x404e5d(0x1bc)],'handler':(_0x23362f,_0x29810d)=>{const _0x5b829d=_0x404e5d;var _0x2cc2da;let _0x4c85a0=U(_0x23362f,_0x29810d==null?void 0x0:_0x29810d[_0x5b829d(0x1e7)]);if(!_0x4c85a0)return!0x1;let _0x3335bd=(_0x29810d==null?void 0x0:_0x29810d['cursorOffset'])??((_0x2cc2da=W(_0x23362f))==null?void 0x0:_0x2cc2da[_0x5b829d(0x1fb)]);if(_0x3335bd==null)return!0x1;let _0x1f0237=y({'cursorOffset':_0x3335bd,'documentData':_0x4c85a0[_0x5b829d(0x1cd)],'paragraphStartIndex':_0x29810d==null?void 0x0:_0x29810d[_0x5b829d(0x1d9)]});return _0x1f0237?J(_0x4c85a0[_0x5b829d(0x23b)],_0x4c85a0[_0x5b829d(0x21d)],_0x4c85a0['unitId'],_0x4c85a0[_0x5b829d(0x1cd)],_0x1f0237[_0x5b829d(0x1e6)],H['id'],_0x1f0237[_0x5b829d(0x22a)]):!0x1;}};function U(_0xcc73db,_0x271e76){const _0x3f89a0=_0x404e5d;let _0x2265d2=_0xcc73db[_0x3f89a0(0x1f9)](e[_0x3f89a0(0x1d8)]),_0x356d1c=_0x271e76?_0x2265d2[_0x3f89a0(0x250)](_0x271e76,e[_0x3f89a0(0x23c)][_0x3f89a0(0x1a4)]):_0x2265d2[_0x3f89a0(0x206)](e[_0x3f89a0(0x23c)][_0x3f89a0(0x1a4)]);return _0x356d1c?{'commandService':_0xcc73db[_0x3f89a0(0x1f9)](e[_0x3f89a0(0x26b)]),'model':_0xcc73db[_0x3f89a0(0x1f9)](p),'previousDocumentData':_0x356d1c[_0x3f89a0(0x1ac)](),'selectionManager':_0xcc73db[_0x3f89a0(0x1f9)](n[_0x3f89a0(0x25c)]),'unitId':_0x356d1c[_0x3f89a0(0x20f)]()}:null;}function W(_0x25aeb8){const _0xe11baa=_0x404e5d;var _0x11c1cb;return(_0x11c1cb=_0x25aeb8[_0xe11baa(0x1f9)](n['DocSelectionManagerService'])[_0xe11baa(0x23e)]())==null?void 0x0:_0x11c1cb[0x0];}function Oe(_0xf6e3d4,_0x166e72){const _0x4cbab1=_0x404e5d;let _0x11b0a4=(_0xf6e3d4==null?void 0x0:_0xf6e3d4[_0x4cbab1(0x1fb)])??(_0x166e72==null?void 0x0:_0x166e72['startOffset']),_0x3bc9d8=(_0xf6e3d4==null?void 0x0:_0xf6e3d4[_0x4cbab1(0x247)])??(_0x166e72==null?void 0x0:_0x166e72[_0x4cbab1(0x247)]);if(_0x11b0a4!=null&&_0x3bc9d8!=null)return{'endOffset':Math['max'](_0x11b0a4,_0x3bc9d8),'startOffset':Math[_0x4cbab1(0x228)](_0x11b0a4,_0x3bc9d8)};}function ke(_0x2fe018,_0x1c55e7){const _0x1a8ffa=_0x404e5d;var _0x45ac48;if(!_0x1c55e7)return;let _0x26c62d=Ae(_0x1c55e7);return(_0x45ac48=_0x2fe018[_0x1a8ffa(0x22f)])==null||(_0x45ac48=_0x45ac48[_0x1a8ffa(0x1b2)])==null?void 0x0:_0x45ac48[_0x1a8ffa(0x20c)](_0x27e4a6=>{const _0x5b6286=_0x1a8ffa;let _0x4eeec4=(0x0,e[_0x5b6286(0x1d3)])(_0x27e4a6);return _0x1c55e7['startOffset']===_0x1c55e7[_0x5b6286(0x247)]?(0x0,e[_0x5b6286(0x1d4)])(_0x4eeec4,_0x26c62d):(0x0,e[_0x5b6286(0x212)])(_0x4eeec4,_0x26c62d);});}function Ae(_0x2db690){const _0x2382da=_0x404e5d;return _0x2db690['startOffset']===_0x2db690[_0x2382da(0x247)]?_0x2db690['startOffset']:_0x2db690['startOffset']+0x1;}function je(_0x372cf1){const _0x2014c1=_0x404e5d;let _0x2fc496=W(_0x372cf1);if(!_0x2fc496)return null;let _0x5f30f2=_0x372cf1[_0x2014c1(0x1f9)](e[_0x2014c1(0x1d8)])[_0x2014c1(0x206)](e['UniverInstanceType'][_0x2014c1(0x1a4)]),_0x440f3d=_0x5f30f2==null?void 0x0:_0x5f30f2['getBody']();return _0x440f3d?e[_0x2014c1(0x235)][_0x2014c1(0x267)]['getParagraphsInRange'](_0x2fc496,_0x440f3d[_0x2014c1(0x1e1)]??[],_0x440f3d[_0x2014c1(0x1ae)]??'')[0x0]??null:null;}function Me(_0x42739c,_0x1e7700){const _0x1227fa=_0x404e5d;let _0x525e7e=_0x42739c['body'],_0xc27fd2=_0x1e7700[_0x1227fa(0x22f)],_0x48ebf7=(0x0,e['getSingleDataStreamChange'])(_0x525e7e,_0xc27fd2);return[_0x48ebf7&&_0xc27fd2?Ne(_0xc27fd2,_0x48ebf7):null,_0x48ebf7?null:Pe(_0x525e7e,_0xc27fd2)][_0x1227fa(0x24c)](Boolean)[_0x1227fa(0x1f3)]((_0x5f2821,_0x35530c)=>e[_0x1227fa(0x252)][_0x1227fa(0x224)](_0x5f2821,_0x35530c),null);}function Ne(_0x2c1075,_0x37e1b2){const _0x341998=_0x404e5d;let _0x2863c0=new e['TextX']();return _0x2863c0[_0x341998(0x1f2)](_0x37e1b2[_0x341998(0x1f0)]),_0x37e1b2[_0x341998(0x21a)]>0x0&&_0x2863c0[_0x341998(0x1a1)](_0x37e1b2[_0x341998(0x21a)],(0x0,e['getBodySliceForTextXAction'])(_0x2c1075,_0x37e1b2[_0x341998(0x1f0)],_0x37e1b2[_0x341998(0x1f0)]+_0x37e1b2['insertLength'],!0x1)),_0x37e1b2[_0x341998(0x24e)]>0x0&&_0x2863c0['delete'](_0x37e1b2['deleteLength']),e[_0x341998(0x252)][_0x341998(0x246)]()[_0x341998(0x1da)](_0x2863c0[_0x341998(0x244)](),[_0x341998(0x22f)]);}function Pe(_0x3939f1,_0x5a26fb){const _0x16aea0=_0x404e5d;let _0x3f53e0=[],_0x38d2b7=_0x3939f1?G(_0x3939f1):void 0x0,_0x453938=_0x5a26fb?G(_0x5a26fb):void 0x0;for(let _0x161fdd of Fe)K(e[_0x16aea0(0x252)][_0x16aea0(0x246)](),['body',_0x161fdd],_0x38d2b7==null?void 0x0:_0x38d2b7[_0x161fdd],_0x453938==null?void 0x0:_0x453938[_0x161fdd],_0x3f53e0);return _0x3f53e0[_0x16aea0(0x1f3)]((_0x3011c3,_0x2400ab)=>e['JSONX']['compose'](_0x3011c3,_0x2400ab),null);}const Fe=[_0x404e5d(0x1e1),_0x404e5d(0x24d),_0x404e5d(0x215),'columnGroups','blockRanges',_0x404e5d(0x275),_0x404e5d(0x261),_0x404e5d(0x1dc),_0x404e5d(0x1b0)];function G(_0x98f445){return _0x98f445;}function K(_0x4d41ea,_0x17a05e,_0x2a06d0,_0x2b47f4,_0x33f7fa){const _0x323eff=_0x404e5d;if(!q(_0x2a06d0,_0x2b47f4)){if(_0x2a06d0==null){_0x33f7fa[_0x323eff(0x236)](_0x4d41ea['insertOp'](_0x17a05e,_0x2b47f4));return;}if(_0x2b47f4==null){_0x33f7fa[_0x323eff(0x236)](_0x4d41ea['removeOp'](_0x17a05e,_0x2a06d0));return;}if(Array[_0x323eff(0x1fe)](_0x2a06d0)&&Array[_0x323eff(0x1fe)](_0x2b47f4)){Ie(_0x4d41ea,_0x17a05e,_0x2a06d0,_0x2b47f4,_0x33f7fa);return;}if(Le(_0x2a06d0)&&Le(_0x2b47f4)){new Set([...Object[_0x323eff(0x1d2)](_0x2a06d0),...Object[_0x323eff(0x1d2)](_0x2b47f4)])['forEach'](_0x5cb5f6=>{K(_0x4d41ea,[..._0x17a05e,_0x5cb5f6],_0x2a06d0[_0x5cb5f6],_0x2b47f4[_0x5cb5f6],_0x33f7fa);});return;}_0x33f7fa[_0x323eff(0x236)](_0x4d41ea[_0x323eff(0x276)](_0x17a05e,_0x2a06d0,_0x2b47f4));}}function Ie(_0x1154ca,_0x19151d,_0x44563c,_0x1bdb95,_0x4e4965){const _0x1f5b36=_0x404e5d;if(_0x44563c[_0x1f5b36(0x1a8)]===_0x1bdb95[_0x1f5b36(0x1a8)]){_0x44563c['forEach']((_0x489603,_0x281449)=>K(_0x1154ca,[..._0x19151d,_0x281449],_0x489603,_0x1bdb95[_0x281449],_0x4e4965));return;}let _0x108b29=0x0;for(;_0x108b29<_0x44563c[_0x1f5b36(0x1a8)]&&_0x108b29<_0x1bdb95[_0x1f5b36(0x1a8)]&&q(_0x44563c[_0x108b29],_0x1bdb95[_0x108b29]);)_0x108b29++;let _0x12bddc=_0x44563c[_0x1f5b36(0x1a8)]-0x1,_0x363e0c=_0x1bdb95[_0x1f5b36(0x1a8)]-0x1;for(;_0x12bddc>=_0x108b29&&_0x363e0c>=_0x108b29&&q(_0x44563c[_0x12bddc],_0x1bdb95[_0x363e0c]);)_0x12bddc--,_0x363e0c--;for(let _0x24be00=_0x12bddc;_0x24be00>=_0x108b29;_0x24be00--)_0x4e4965[_0x1f5b36(0x236)](_0x1154ca[_0x1f5b36(0x1f6)]([..._0x19151d,_0x24be00],_0x44563c[_0x24be00]));for(let _0x20d7e1=_0x108b29;_0x20d7e1<=_0x363e0c;_0x20d7e1++)_0x4e4965[_0x1f5b36(0x236)](_0x1154ca[_0x1f5b36(0x1c2)]([..._0x19151d,_0x20d7e1],_0x1bdb95[_0x20d7e1]));}function Le(_0x197651){const _0xb0f93f=_0x404e5d;return typeof _0x197651==_0xb0f93f(0x202)&&!!_0x197651&&!Array[_0xb0f93f(0x1fe)](_0x197651);}function q(_0x29f92b,_0x4908f7){const _0x356a0b=_0x404e5d;return JSON['stringify'](_0x29f92b)===JSON[_0x356a0b(0x255)](_0x4908f7);}function J(_0x4a1c66,_0x1024af,_0x45bfc3,_0x174a37,_0x32530c,_0xdc2f63,_0x1cacc5){const _0x3e3a2c=_0x404e5d;let _0x1f263c=Me(_0x174a37,_0x32530c);return _0x1f263c?!!_0x4a1c66[_0x3e3a2c(0x239)](n['RichTextEditingMutation']['id'],{'unitId':_0x45bfc3,'actions':_0x1f263c,'textRanges':[{'startOffset':_0x1cacc5,'endOffset':_0x1cacc5,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0xdc2f63}):(_0x1024af['replaceDocRanges']([{'startOffset':_0x1cacc5,'endOffset':_0x1cacc5}],{'unitId':_0x45bfc3,'subUnitId':_0x45bfc3},!0x1),!0x0);}const Y=_0x404e5d(0x1a6);var Re=_0x404e5d(0x1e5),ze=_0x404e5d(0x1f7);const Be={};function X(_0x5c2994,_0x1fd567){return function(_0x5f2ae2,_0xad0a6f){_0x1fd567(_0x5f2ae2,_0xad0a6f,_0x5c2994);};}function Z(_0x53da0a,_0x56bc00,_0x404289,_0x237b8a){const _0x41b9a2=_0x404e5d;var _0x2a9704=arguments[_0x41b9a2(0x1a8)],_0xfebb70=_0x2a9704<0x3?_0x56bc00:_0x237b8a===null?_0x237b8a=Object[_0x41b9a2(0x208)](_0x56bc00,_0x404289):_0x237b8a,_0x2c7d7b;if(typeof Reflect==_0x41b9a2(0x202)&&typeof Reflect['decorate']==_0x41b9a2(0x1a0))_0xfebb70=Reflect[_0x41b9a2(0x1c9)](_0x53da0a,_0x56bc00,_0x404289,_0x237b8a);else{for(var _0x10c038=_0x53da0a[_0x41b9a2(0x1a8)]-0x1;_0x10c038>=0x0;_0x10c038--)(_0x2c7d7b=_0x53da0a[_0x10c038])&&(_0xfebb70=(_0x2a9704<0x3?_0x2c7d7b(_0xfebb70):_0x2a9704>0x3?_0x2c7d7b(_0x56bc00,_0x404289,_0xfebb70):_0x2c7d7b(_0x56bc00,_0x404289))||_0xfebb70);}return _0x2a9704>0x3&&_0xfebb70&&Object[_0x41b9a2(0x201)](_0x56bc00,_0x404289,_0xfebb70),_0xfebb70;}let Q=class extends e[_0x404e5d(0x25d)]{constructor(_0x56fd9f,_0x27b4dd){const _0x354b1f=_0x404e5d;super(),this[_0x354b1f(0x217)]=_0x56fd9f,this['_docsCodeModel']=_0x27b4dd,this[_0x354b1f(0x21f)]();}[_0x404e5d(0x21f)](){const _0x41d7ad=_0x404e5d;this[_0x41d7ad(0x266)](this[_0x41d7ad(0x217)][_0x41d7ad(0x263)]({'pluginName':Y,'businesses':[e[_0x41d7ad(0x23c)][_0x41d7ad(0x1a4)]],'toJson':_0x598fef=>JSON['stringify'](this[_0x41d7ad(0x1cb)][_0x41d7ad(0x244)](_0x598fef)),'parseJson':_0xd87400=>o(JSON[_0x41d7ad(0x1db)](_0xd87400)),'onLoad':(_0x3f7a8a,_0x2333e9)=>this[_0x41d7ad(0x1cb)][_0x41d7ad(0x26f)](_0x3f7a8a,_0x2333e9),'onUnLoad':_0x291b94=>this['_docsCodeModel'][_0x41d7ad(0x1fa)](_0x291b94)}));}};Q=Z([X(0x0,e['IResourceManagerService']),X(0x1,(0x0,e[_0x404e5d(0x20d)])(p))],Q);let $=class extends e['Plugin']{constructor(_0x5020ac=Be,_0x220ac5,_0x12f858,_0x2718a8){const _0x3df78c=_0x404e5d;super(),this[_0x3df78c(0x1d0)]=_0x5020ac,this['_injector']=_0x220ac5,this[_0x3df78c(0x225)]=_0x12f858,this['_configService']=_0x2718a8;let {..._0x15570c}=(0x0,e[_0x3df78c(0x1b4)])({},Be,this['_config']);this[_0x3df78c(0x203)][_0x3df78c(0x268)](_0x3df78c(0x227),_0x15570c);}[_0x404e5d(0x258)](){const _0x29e286=_0x404e5d;this[_0x29e286(0x1a7)][_0x29e286(0x25b)]([p]),this[_0x29e286(0x1a7)]['add']([Q]),this['_injector'][_0x29e286(0x1f9)](p),this[_0x29e286(0x1a7)]['get'](Q),[R,I,z,B,V,De,H,L,m,h][_0x29e286(0x1be)](_0x4aabd6=>this['disposeWithMe'](this[_0x29e286(0x225)][_0x29e286(0x1cc)](_0x4aabd6)));}};f($,'pluginName',Y),f($,_0x404e5d(0x230),Re),f($,_0x404e5d(0x243),ze),f($,_0x404e5d(0x270),e[_0x404e5d(0x23c)][_0x404e5d(0x1a4)]),$=Z([(0x0,e[_0x404e5d(0x277)])(r['UniverLicensePlugin'],n[_0x404e5d(0x24f)]),X(0x1,(0x0,e[_0x404e5d(0x20d)])(e[_0x404e5d(0x1bf)])),X(0x2,e[_0x404e5d(0x26b)]),X(0x3,e[_0x404e5d(0x216)])],$),exports[_0x404e5d(0x24a)]=Y,exports[_0x404e5d(0x260)]=H,exports[_0x404e5d(0x1b8)]=L,exports[_0x404e5d(0x1c6)]=I,exports[_0x404e5d(0x1c3)]=R,exports[_0x404e5d(0x269)]=p,exports[_0x404e5d(0x1ad)]=V,exports['DocsCodeUnwrapCommand']=B,exports[_0x404e5d(0x221)]=z,exports[_0x404e5d(0x1b3)]=h,exports[_0x404e5d(0x1aa)]=m,Object[_0x404e5d(0x201)](exports,_0x404e5d(0x226),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x404e5d(0x25e)]=y,exports[_0x404e5d(0x229)]=se,exports[_0x404e5d(0x23a)]=a,exports['normalizeDocsCodeMetadataResource']=o;
1
+ const _0x922900=_0x3dd3;(function(_0x27bce3,_0x536929){const _0x2773af=_0x3dd3,_0x128d03=_0x27bce3();while(!![]){try{const _0x235948=parseInt(_0x2773af(0x142))/0x1*(parseInt(_0x2773af(0x11b))/0x2)+parseInt(_0x2773af(0x104))/0x3+-parseInt(_0x2773af(0xbc))/0x4+parseInt(_0x2773af(0xa1))/0x5*(-parseInt(_0x2773af(0x10f))/0x6)+parseInt(_0x2773af(0x11a))/0x7*(-parseInt(_0x2773af(0x155))/0x8)+parseInt(_0x2773af(0xe8))/0x9*(-parseInt(_0x2773af(0x156))/0xa)+-parseInt(_0x2773af(0x11c))/0xb*(-parseInt(_0x2773af(0xea))/0xc);if(_0x235948===_0x536929)break;else _0x128d03['push'](_0x128d03['shift']());}catch(_0x4fce2a){_0x128d03['push'](_0x128d03['shift']());}}}(_0x1be2,0xb55fa),Object[_0x922900(0x13f)](exports,Symbol[_0x922900(0x115)],{'value':_0x922900(0xc6)}));function _0x3dd3(_0x184784,_0x1b7b7f){_0x184784=_0x184784-0x94;const _0x1be260=_0x1be2();let _0x3dd35b=_0x1be260[_0x184784];return _0x3dd35b;}let e=require('@univerjs/core'),t=require('rxjs'),n=require('@univerjs/docs'),r=require('@univerjs-pro/license');const i={'language':'javascript','showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function a(_0xb778e9){return{...i,..._0xb778e9};}function o(_0x57ab6c){const _0x315a6b=_0x922900;let _0x140109=(_0x57ab6c==null?void 0x0:_0x57ab6c['codes'])??{};return{'codes':Object[_0x315a6b(0x130)](Object[_0x315a6b(0xe0)](_0x140109)['map'](([_0xa4a8a9,_0x84504a])=>[_0xa4a8a9,a(_0x84504a)]))};}function s(_0x1982eb,_0x9356e3,_0x36db07){const _0x37d03d=_0x922900;let _0x2d225a=o(_0x1982eb);return _0x2d225a[_0x37d03d(0xd6)][_0x9356e3]=a({..._0x2d225a['codes'][_0x9356e3],..._0x36db07}),_0x2d225a;}function c(_0x2e4ffa,_0x237029){let _0x3dbe5b=o(_0x2e4ffa);return delete _0x3dbe5b['codes'][_0x237029],_0x3dbe5b;}function l(_0x197408){'@babel/helpers - typeof';const _0x1787a2=_0x922900;return l=typeof Symbol==_0x1787a2(0xca)&&typeof Symbol[_0x1787a2(0x11f)]=='symbol'?function(_0x50323e){return typeof _0x50323e;}:function(_0x355847){const _0x387761=_0x1787a2;return _0x355847&&typeof Symbol==_0x387761(0xca)&&_0x355847[_0x387761(0xa3)]===Symbol&&_0x355847!==Symbol[_0x387761(0x10e)]?_0x387761(0xc3):typeof _0x355847;},l(_0x197408);}function u(_0x135f10,_0x1c47fa){const _0x297359=_0x922900;if(l(_0x135f10)!=_0x297359(0x107)||!_0x135f10)return _0x135f10;var _0xc59f6e=_0x135f10[Symbol['toPrimitive']];if(_0xc59f6e!==void 0x0){var _0x3c3686=_0xc59f6e['call'](_0x135f10,_0x1c47fa||_0x297359(0xe6));if(l(_0x3c3686)!='object')return _0x3c3686;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1c47fa==='string'?String:Number)(_0x135f10);}function d(_0x44724e){const _0xd71354=_0x922900;var _0x4b3374=u(_0x44724e,_0xd71354(0xd0));return l(_0x4b3374)=='symbol'?_0x4b3374:_0x4b3374+'';}function f(_0x47f2f6,_0x322ed1,_0x54aefc){const _0x5a54db=_0x922900;return(_0x322ed1=d(_0x322ed1))in _0x47f2f6?Object[_0x5a54db(0x13f)](_0x47f2f6,_0x322ed1,{'value':_0x54aefc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x47f2f6[_0x322ed1]=_0x54aefc,_0x47f2f6;}var p=class extends e['Disposable']{constructor(..._0x5a88c1){const _0x384522=_0x922900;super(..._0x5a88c1),f(this,_0x384522(0x117),new Map()),f(this,_0x384522(0xdd),new t[(_0x384522(0x137))]()),f(this,_0x384522(0x133),this[_0x384522(0xdd)][_0x384522(0xe7)]());}['getCodeConfig'](_0x22d095,_0x49aab8){const _0x5c528e=_0x922900;return o(this[_0x5c528e(0x117)][_0x5c528e(0xc7)](_0x22d095))[_0x5c528e(0xd6)][_0x49aab8];}[_0x922900(0x146)](_0x49e731,_0x3e271f,_0x1b059b){const _0x266fdf=_0x922900;this[_0x266fdf(0x12c)](_0x49e731,_0x3e271f,s(this[_0x266fdf(0x117)][_0x266fdf(0xc7)](_0x49e731),_0x3e271f,_0x1b059b));}[_0x922900(0x14e)](_0x4b63e7,_0x547006){const _0x3093ad=_0x922900;this[_0x3093ad(0x12c)](_0x4b63e7,_0x547006,c(this['_resources'][_0x3093ad(0xc7)](_0x4b63e7),_0x547006));}[_0x922900(0xb9)](_0x185a4d){const _0x216095=_0x922900;return o(this[_0x216095(0x117)]['get'](_0x185a4d));}['deserialize'](_0x1779e6,_0xe713cc){const _0x82fc39=_0x922900;this[_0x82fc39(0x117)]['set'](_0x1779e6,o(_0xe713cc)),this[_0x82fc39(0xdd)]['next']({'unitId':_0x1779e6});}[_0x922900(0x15a)](_0x30b15f){const _0xa99bfa=_0x922900;this['_resources'][_0xa99bfa(0xeb)](_0x30b15f),this[_0xa99bfa(0xdd)][_0xa99bfa(0x14b)]({'unitId':_0x30b15f});}[_0x922900(0x140)](){const _0xdf7a1c=_0x922900;super[_0xdf7a1c(0x140)](),this[_0xdf7a1c(0x117)][_0xdf7a1c(0xa7)](),this[_0xdf7a1c(0xdd)][_0xdf7a1c(0x13d)]();}[_0x922900(0x12c)](_0x544e47,_0x2d8a69,_0x366412){const _0x367ce2=_0x922900;this[_0x367ce2(0x117)][_0x367ce2(0x113)](_0x544e47,_0x366412),this[_0x367ce2(0xdd)][_0x367ce2(0x14b)]({'unitId':_0x544e47,'blockId':_0x2d8a69});}};const m={'id':_0x922900(0x9a),'type':e[_0x922900(0x135)][_0x922900(0x145)],'handler':(_0x14f414,_0x24c077)=>!(_0x24c077!=null&&_0x24c077[_0x922900(0xb8)])||!_0x24c077[_0x922900(0x129)]?!0x1:(_0x14f414[_0x922900(0xc7)](p)[_0x922900(0x146)](_0x24c077[_0x922900(0xb8)],_0x24c077[_0x922900(0x129)],_0x24c077[_0x922900(0xd1)]),!0x0)},h={'id':'docs-code.mutation.remove-config','type':e[_0x922900(0x135)][_0x922900(0x145)],'handler':(_0x25ae1f,_0x44f5ee)=>!(_0x44f5ee!=null&&_0x44f5ee[_0x922900(0xb8)])||!_0x44f5ee[_0x922900(0x129)]?!0x1:(_0x25ae1f[_0x922900(0xc7)](p)['removeCode'](_0x44f5ee[_0x922900(0xb8)],_0x44f5ee['blockId']),!0x0)},g=_0x922900(0x123);var _=class extends Error{constructor(_0x2c4428='Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries'){super(_0x2c4428);}};function ee(_0x398ffd){const _0xfc01b6=_0x922900;var _0x3674d7;let _0x108397=S(_0x398ffd[_0xfc01b6(0xd9)]),_0x1da86e=w(_0x108397),_0xf0036c=ne(_0x398ffd[_0xfc01b6(0x131)],_0x398ffd[_0xfc01b6(0xd3)]),_0x2bdc2f=_0xf0036c?(_0x3674d7=_0x1da86e[_0xfc01b6(0xb5)])==null?void 0x0:_0x3674d7['find'](_0x247158=>{const _0x44185d=_0xfc01b6;let _0x1d0877=(0x0,e['getBlockRangeInterval'])(_0x247158);return _0x1d0877[_0x44185d(0x131)]===_0xf0036c[_0x44185d(0x131)]&&_0x1d0877[_0x44185d(0xd3)]===_0xf0036c[_0x44185d(0xd3)];}):void 0x0,{startOffset:_0x5ac9b0,endOffset:_0x5ea470}=_0x2bdc2f?_0xf0036c:me(_0x1da86e,_0x398ffd['startOffset'],_0x398ffd[_0xfc01b6(0xd3)],_0x398ffd[_0xfc01b6(0x13a)]);if(!_0x2bdc2f&&re(_0x1da86e,_0x5ac9b0,_0x5ea470))throw new _(_0xfc01b6(0xac));let _0x214524=_e(_0x1da86e,_0x5ac9b0,_0x5ea470),_0xd7ff1=(_0x2bdc2f==null?void 0x0:_0x2bdc2f[_0xfc01b6(0x129)])??_0x398ffd[_0xfc01b6(0x129)],_0x14d795=s(_0x398ffd['metadata'],_0xd7ff1,{...i,..._0x398ffd[_0xfc01b6(0xd1)]});if(_0x2bdc2f)return _0x2bdc2f[_0xfc01b6(0xb3)]=e['DocumentBlockRangeType'][_0xfc01b6(0x150)],te(_0x1da86e,_0x5ac9b0,_0x5ea470),le(_0x1da86e,_0x5ac9b0,_0x5ea470,_0x214524),O(_0x1da86e,_0x2bdc2f),{'nextDocumentData':_0x108397,'nextMetadata':_0x14d795,'cursorOffset':_0x5ac9b0+0x1};if(_0x5ac9b0===_0x5ea470){var _0x1c3837,_0x28a776;let _0xe00021=''+e['DataStreamTreeTokenType'][_0xfc01b6(0x11d)]+e[_0xfc01b6(0x154)][_0xfc01b6(0xb2)]+e['DataStreamTreeTokenType'][_0xfc01b6(0x112)];k(_0x1da86e,_0x5ac9b0,_0xe00021,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e['createParagraphId'])(new Set((_0x1c3837=_0x1da86e[_0xfc01b6(0xf8)])==null?void 0x0:_0x1c3837['map'](_0x2d9202=>_0x2d9202['paragraphId']))),'paragraphStyle':x(!0x0,!0x0,_0x214524)}],'blockRanges':[{'blockId':_0xd7ff1,'blockType':e['DocumentBlockRangeType'][_0xfc01b6(0x150)],'startIndex':0x0,'endIndex':_0xe00021[_0xfc01b6(0x9b)]-0x1}]});let _0x56dd4f=(_0x28a776=_0x1da86e[_0xfc01b6(0xb5)])==null?void 0x0:_0x28a776['find'](_0x5e1490=>_0x5e1490[_0xfc01b6(0x129)]===_0xd7ff1);return _0x56dd4f&&O(_0x1da86e,_0x56dd4f),{'nextDocumentData':_0x108397,'nextMetadata':_0x14d795,'cursorOffset':_0x5ac9b0+0x1};}k(_0x1da86e,_0x5ea470,e[_0xfc01b6(0x154)][_0xfc01b6(0x112)]),k(_0x1da86e,_0x5ac9b0,e[_0xfc01b6(0x154)][_0xfc01b6(0x11d)]),le(_0x1da86e,_0x5ac9b0,_0x5ea470+0x1,_0x214524);let _0x4546ef={'blockId':_0xd7ff1,'blockType':e[_0xfc01b6(0xe2)]['CODE'],'startIndex':_0x5ac9b0,'endIndex':_0x5ea470+0x1};return _0x1da86e[_0xfc01b6(0xb5)]=[..._0x1da86e[_0xfc01b6(0xb5)]??[],_0x4546ef][_0xfc01b6(0xba)]((_0xcf2675,_0x225099)=>_0xcf2675[_0xfc01b6(0x143)]-_0x225099[_0xfc01b6(0x143)]),O(_0x1da86e,_0x4546ef),{'nextDocumentData':_0x108397,'nextMetadata':_0x14d795,'cursorOffset':_0x5ac9b0+0x1};}function te(_0x1b95ed,_0x563ee9,_0x153d55){const _0x49b05c=_0x922900;(_0x1b95ed[_0x49b05c(0xf8)]??[])[_0x49b05c(0xe1)](_0x500851=>_0x500851['startIndex']>_0x563ee9&&_0x500851[_0x49b05c(0x143)]<_0x153d55)[_0x49b05c(0xa5)](_0x217da5=>{const _0x41cec2=_0x49b05c;let _0x5373aa={..._0x217da5[_0x41cec2(0xa4)]??{}};delete _0x5373aa[_0x41cec2(0x14d)],delete _0x5373aa['spaceBelow'],_0x217da5[_0x41cec2(0xa4)]=_0x5373aa;});}function ne(_0x409ae7,_0x3ae154){const _0x1c8249=_0x922900;return _0x409ae7==null||_0x3ae154==null||_0x409ae7===_0x3ae154?null:{'startOffset':Math[_0x1c8249(0x12a)](_0x409ae7,_0x3ae154),'endOffset':Math[_0x1c8249(0xc1)](_0x409ae7,_0x3ae154)};}function re(_0x15913f,_0x2c1f15,_0x105f46){const _0x1265cf=_0x922900;return(_0x15913f[_0x1265cf(0xb5)]??[])[_0x1265cf(0xb0)](_0x12ea42=>{const _0x282862=_0x1265cf;let _0x37bb47=(0x0,e[_0x282862(0x109)])(_0x12ea42);return _0x2c1f15===_0x105f46?(0x0,e['containsInteriorInsertionOffset'])(_0x37bb47,_0x2c1f15):(0x0,e[_0x282862(0xcd)])(_0x37bb47,{'startOffset':_0x2c1f15,'endOffset':_0x105f46});});}function ie(_0x4f8441){const _0x737967=_0x922900;return{'nextDocumentData':S(_0x4f8441[_0x737967(0xd9)]),'nextMetadata':s(_0x4f8441[_0x737967(0xc9)],_0x4f8441['blockId'],_0x4f8441[_0x737967(0xd1)]),'cursorOffset':0x0};}function v(_0x2a8bad){const _0x51a05c=_0x922900;let _0x50ef32=S(_0x2a8bad[_0x51a05c(0xd9)]),_0x5a6d91=w(_0x50ef32),_0x474724=b(_0x5a6d91,_0x2a8bad[_0x51a05c(0x129)]);if(!_0x474724)return null;let _0x568efb=fe(_0x5a6d91,_0x474724);return{'nextDocumentData':_0x50ef32,'nextMetadata':c(_0x2a8bad['metadata'],_0x2a8bad[_0x51a05c(0x129)]),'cursorOffset':_0x568efb};}function ae(_0x24886a){const _0x4bb9ad=_0x922900;var _0x2f7c1d;let _0x157bea=S(_0x24886a['documentData']),_0x3a525f=w(_0x157bea),_0x2a0813=b(_0x3a525f,_0x24886a[_0x4bb9ad(0x129)]);if(!_0x2a0813)return null;let _0x3d8406=(0x0,e[_0x4bb9ad(0x109)])(_0x2a0813);return A(_0x3a525f,_0x3d8406[_0x4bb9ad(0x131)],_0x3d8406['endOffset']),_0x3a525f[_0x4bb9ad(0xb5)]=(_0x2f7c1d=_0x3a525f[_0x4bb9ad(0xb5)])==null?void 0x0:_0x2f7c1d[_0x4bb9ad(0xe1)](_0x427d85=>_0x427d85[_0x4bb9ad(0x129)]!==_0x24886a[_0x4bb9ad(0x129)]),{'nextDocumentData':_0x157bea,'nextMetadata':c(_0x24886a['metadata'],_0x24886a[_0x4bb9ad(0x129)]),'cursorOffset':_0x2a0813['startIndex']};}function y(_0x2124bd){const _0xfa5b80=_0x922900;let _0x220a95=S(_0x2124bd[_0xfa5b80(0xd9)]),_0xb923f3=w(_0x220a95),_0x272104=ce(_0xb923f3,_0x2124bd[_0xfa5b80(0x147)]);return _0x272104&&oe(_0x220a95,_0xb923f3,_0x272104,_0x2124bd[_0xfa5b80(0x147)],_0x2124bd[_0xfa5b80(0x15b)])||null;}function oe(_0x3b3ebd,_0x462e15,_0x183eab,_0x421d73,_0x2b4853){const _0x20f8b2=_0x922900;let _0x3ad7b9=Se(_0x462e15,_0x183eab,_0x421d73,_0x2b4853);if(!_0x3ad7b9)return null;let _0x25e45e=_0x3ad7b9[_0x20f8b2(0xaf)]-0x1;return A(_0x462e15,_0x3ad7b9[_0x20f8b2(0xee)][_0x20f8b2(0x143)],_0x3ad7b9[_0x20f8b2(0xee)]['startIndex']+0x1),{'nextDocumentData':_0x3b3ebd,'cursorOffset':_0x25e45e};}function b(_0x33c50b,_0x24a658){const _0x442d1f=_0x922900;var _0x3464da;return _0x33c50b==null||(_0x3464da=_0x33c50b[_0x442d1f(0xb5)])==null?void 0x0:_0x3464da['find'](_0x2f6cd7=>_0x2f6cd7[_0x442d1f(0xb3)]===e['DocumentBlockRangeType'][_0x442d1f(0x150)]&&_0x2f6cd7[_0x442d1f(0x129)]===_0x24a658);}function se(_0x3399cc){const _0x31a37b=_0x922900;let _0x148c02=_0x3399cc['documentData'][_0x31a37b(0x9f)];if(!_0x148c02)return!0x1;let _0x149d80=_0x3399cc[_0x31a37b(0x103)]==='left'?_0x3399cc[_0x31a37b(0x147)]-0x1:_0x3399cc[_0x31a37b(0x147)],_0x38dc87=_0x3399cc[_0x31a37b(0x103)]==='right'?_0x3399cc[_0x31a37b(0x147)]+0x1:_0x149d80;return(_0x148c02['blockRanges']??[])[_0x31a37b(0xb0)](_0x163093=>_0x163093[_0x31a37b(0xb3)]===e[_0x31a37b(0xe2)][_0x31a37b(0x150)]?_0x149d80===_0x163093[_0x31a37b(0x143)]||_0x149d80===_0x163093[_0x31a37b(0xfc)]||_0x38dc87===_0x163093['startIndex']||_0x38dc87===_0x163093[_0x31a37b(0xfc)]:!0x1);}function ce(_0x452d55,_0x42a749){const _0x2a4fa3=_0x922900;var _0x250433;return(_0x250433=_0x452d55[_0x2a4fa3(0xb5)])==null?void 0x0:_0x250433[_0x2a4fa3(0x9e)](_0x12ce83=>{const _0x23aeb7=_0x2a4fa3;let _0x367506=D(_0x12ce83);return _0x12ce83[_0x23aeb7(0xb3)]===e[_0x23aeb7(0xe2)][_0x23aeb7(0x150)]&&_0x12ce83['startIndex']<=_0x42a749&&_0x42a749<=_0x367506+0x2;});}function x(_0xbf45d6,_0x2c0fc5,_0x2598ee=!0x1){const _0x1c6a02=_0x922900;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':e[_0x1c6a02(0x10c)]['TRUE'],'keepNext':_0x2c0fc5?e[_0x1c6a02(0x10c)][_0x1c6a02(0xe5)]:e[_0x1c6a02(0x10c)]['TRUE'],'widowControl':e[_0x1c6a02(0x10c)]['TRUE'],..._0xbf45d6&&_0x2598ee?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':g,'fs':0xc}};}function le(_0x575b2a,_0x5bb7f3,_0xc06aac,_0x30d03b=!0x1){const _0x1487eb=_0x922900;let _0x295ab9=(_0x575b2a[_0x1487eb(0xf8)]??[])['filter'](_0x331edc=>_0x331edc[_0x1487eb(0x143)]>_0x5bb7f3&&_0x331edc['startIndex']<_0xc06aac);_0x295ab9['forEach']((_0x8ffcb3,_0x42c343)=>{const _0x4f8ca2=_0x1487eb;_0x8ffcb3[_0x4f8ca2(0xa4)]={..._0x8ffcb3[_0x4f8ca2(0xa4)]??{},...x(_0x42c343===0x0,_0x42c343===_0x295ab9[_0x4f8ca2(0x9b)]-0x1,_0x30d03b)};});}function ue(_0x35ff55){const _0x32f61f=_0x922900;var _0x422586,_0x56315e;let _0x43ebe7={..._0x35ff55??{}};return delete _0x43ebe7['indentEnd'],delete _0x43ebe7['indentStart'],delete _0x43ebe7[_0x32f61f(0x14d)],delete _0x43ebe7[_0x32f61f(0xe4)],delete _0x43ebe7[_0x32f61f(0x9c)],delete _0x43ebe7[_0x32f61f(0x153)],delete _0x43ebe7[_0x32f61f(0x94)],((_0x422586=_0x43ebe7['textStyle'])==null?void 0x0:_0x422586['ff'])===g&&((_0x56315e=_0x43ebe7[_0x32f61f(0xa9)])==null?void 0x0:_0x56315e['fs'])===0xc&&delete _0x43ebe7[_0x32f61f(0xa9)],_0x43ebe7;}function de(_0x360dac,_0x26b4ec){const _0x2db2c6=_0x922900;let _0x24a760=D(_0x26b4ec);return(_0x360dac[_0x2db2c6(0xf8)]??[])['filter'](_0x35cf13=>_0x35cf13[_0x2db2c6(0x143)]>_0x26b4ec[_0x2db2c6(0x143)]&&_0x35cf13[_0x2db2c6(0x143)]<_0x24a760);}function fe(_0x39035f,_0x52fd40){const _0x5eee67=_0x922900;var _0x2f77f8;let _0x21f850=D(_0x52fd40);return de(_0x39035f,_0x52fd40)[_0x5eee67(0xa5)](_0x424338=>{const _0x184700=_0x5eee67;_0x424338['paragraphStyle']=ue(_0x424338[_0x184700(0xa4)]);}),A(_0x39035f,_0x21f850,_0x21f850+0x1),A(_0x39035f,_0x52fd40[_0x5eee67(0x143)],_0x52fd40[_0x5eee67(0x143)]+0x1),_0x39035f[_0x5eee67(0xb5)]=(_0x2f77f8=_0x39035f[_0x5eee67(0xb5)])==null?void 0x0:_0x2f77f8[_0x5eee67(0xe1)](_0x11a153=>_0x11a153['blockId']!==_0x52fd40[_0x5eee67(0x129)]),_0x52fd40[_0x5eee67(0x143)];}function S(_0x5041e6){const _0x34ba03=_0x922900;return{..._0x5041e6,'body':_0x5041e6[_0x34ba03(0x9f)]?pe(_0x5041e6[_0x34ba03(0x9f)]):_0x5041e6[_0x34ba03(0x9f)]};}function pe(_0xeb6c17){const _0x11f0e6=_0x922900;var _0x46e66f,_0x31ef51,_0x14eda6,_0x8edff8,_0x23007e,_0xb0208e,_0x22f932,_0x2f8ce4,_0x52091f;return{..._0xeb6c17,'paragraphs':(_0x46e66f=_0xeb6c17[_0x11f0e6(0xf8)])==null?void 0x0:_0x46e66f[_0x11f0e6(0xfd)](_0x4d9cdf=>({..._0x4d9cdf,'bullet':C(_0x4d9cdf[_0x11f0e6(0xbe)]),'paragraphStyle':C(_0x4d9cdf[_0x11f0e6(0xa4)])})),'sectionBreaks':(_0x31ef51=_0xeb6c17[_0x11f0e6(0x12f)])==null?void 0x0:_0x31ef51[_0x11f0e6(0xfd)](_0x1854c5=>({..._0x1854c5})),'textRuns':(_0x14eda6=_0xeb6c17[_0x11f0e6(0x151)])==null?void 0x0:_0x14eda6[_0x11f0e6(0xfd)](_0x2af0f0=>({..._0x2af0f0})),'tables':(_0x8edff8=_0xeb6c17[_0x11f0e6(0x125)])==null?void 0x0:_0x8edff8['map'](_0x216c67=>({..._0x216c67})),'columnGroups':(_0x23007e=_0xeb6c17[_0x11f0e6(0xd2)])==null?void 0x0:_0x23007e['map'](_0xec3aa8=>{const _0x352fe2=_0x11f0e6;var _0x1f40a9;return{..._0xec3aa8,'columns':(_0x1f40a9=_0xec3aa8[_0x352fe2(0x11e)])==null?void 0x0:_0x1f40a9[_0x352fe2(0xfd)](_0x5e2bb7=>C(_0x5e2bb7))};}),'blockRanges':(_0xb0208e=_0xeb6c17[_0x11f0e6(0xb5)])==null?void 0x0:_0xb0208e[_0x11f0e6(0xfd)](_0x2f5303=>({..._0x2f5303})),'customRanges':(_0x22f932=_0xeb6c17[_0x11f0e6(0xdb)])==null?void 0x0:_0x22f932[_0x11f0e6(0xfd)](_0x269d49=>({..._0x269d49})),'customDecorations':(_0x2f8ce4=_0xeb6c17[_0x11f0e6(0xcb)])==null?void 0x0:_0x2f8ce4['map'](_0xe48ff5=>({..._0xe48ff5})),'customBlocks':(_0x52091f=_0xeb6c17['customBlocks'])==null?void 0x0:_0x52091f[_0x11f0e6(0xfd)](_0x14c674=>({..._0x14c674}))};}function C(_0x24b443){const _0x2b384d=_0x922900;return Array[_0x2b384d(0xab)](_0x24b443)?_0x24b443[_0x2b384d(0xfd)](_0x1796ca=>C(_0x1796ca)):!_0x24b443||typeof _0x24b443!='object'?_0x24b443:Object['fromEntries'](Object['entries'](_0x24b443)['map'](([_0x5eee75,_0x5ca122])=>[_0x5eee75,C(_0x5ca122)]));}function w(_0x213f2e){const _0x3f52ff=_0x922900;if(!_0x213f2e[_0x3f52ff(0x9f)])throw Error('Document\x20body\x20is\x20required');return _0x213f2e['body'];}function me(_0x81692,_0x431964,_0x3dde17,_0x37be9b=_0x922900(0x15c)){const _0x487358=_0x922900;if(_0x431964==null||_0x3dde17==null){let _0x4a7799=ge(_0x81692);return{'startOffset':_0x4a7799,'endOffset':_0x4a7799};}let _0x506284=Math['min'](_0x431964,_0x3dde17),_0x85693f=Math[_0x487358(0xc1)](_0x431964,_0x3dde17),_0x48f8e=xe(_0x81692,_0x506284,_0x85693f);return _0x506284===_0x85693f?_0x37be9b===_0x487358(0x13c)?{'startOffset':_0x506284,'endOffset':_0x85693f}:he(_0x81692,_0x506284,_0x48f8e):ve(_0x81692,_0x506284,_0x85693f,_0x48f8e);}function he(_0x4a0cb3,_0x4a5cf7,_0x20c79a){const _0x332d8f=_0x922900;let _0x1891cc=ye(_0x4a0cb3,_0x4a5cf7);if(_0x1891cc){let _0x4eb0cb=T(_0x4a0cb3,_0x1891cc,_0x20c79a);if(_0x4eb0cb<_0x1891cc[_0x332d8f(0x143)])return{'startOffset':_0x4eb0cb,'endOffset':_0x20c79a?Math[_0x332d8f(0x12a)](_0x1891cc['startIndex']+0x1,_0x20c79a[_0x332d8f(0xd3)]):_0x1891cc[_0x332d8f(0x143)]+0x1};}let _0x2e6df0=_0x4a5cf7===0x0&&_0x4a0cb3[_0x332d8f(0xa8)][0x0]===e[_0x332d8f(0x154)][_0x332d8f(0xb2)]?0x1:_0x4a5cf7;return{'startOffset':_0x2e6df0,'endOffset':_0x2e6df0};}function ge(_0x25774d){const _0x112597=_0x922900;return _0x25774d[_0x112597(0xa8)]['endsWith'](e['DataStreamTreeTokenType'][_0x112597(0x9d)])?Math[_0x112597(0xc1)](0x0,_0x25774d[_0x112597(0xa8)]['length']-0x1):_0x25774d[_0x112597(0xa8)][_0x112597(0x9b)];}function _e(_0x473392,_0xb5f28f,_0x5c0a1f){const _0x53704b=_0x922900;var _0x503b35;let _0x313d2e=Math[_0x53704b(0x12a)](_0xb5f28f,_0x5c0a1f),_0x5e7836=Math[_0x53704b(0xc1)](_0xb5f28f,_0x5c0a1f);return!!((_0x503b35=_0x473392[_0x53704b(0x125)])!=null&&_0x503b35[_0x53704b(0xb0)](_0x1b4852=>_0x313d2e>_0x1b4852[_0x53704b(0x143)]&&_0x313d2e<_0x1b4852['endIndex']||_0x5e7836>_0x1b4852[_0x53704b(0x143)]&&_0x5e7836<_0x1b4852[_0x53704b(0xfc)]||_0x313d2e<=_0x1b4852[_0x53704b(0x143)]&&_0x5e7836>=_0x1b4852['endIndex']));}function ve(_0x28726c,_0x41e8ef,_0x232424,_0x32ccf0){const _0x1cf921=_0x922900;let _0x2190fb=[..._0x28726c[_0x1cf921(0xf8)]??[]][_0x1cf921(0xba)]((_0xf075db,_0x575624)=>_0xf075db[_0x1cf921(0x143)]-_0x575624[_0x1cf921(0x143)]),_0x37e3c7=(0x0,e['getParagraphContentStartOffsets'])(_0x28726c),_0x4eb261=_0x2190fb[_0x1cf921(0x9e)](_0x399916=>T(_0x28726c,_0x399916,_0x32ccf0,_0x37e3c7)<=_0x41e8ef&&_0x41e8ef<=_0x399916[_0x1cf921(0x143)]),_0x233f65=_0x2190fb[_0x1cf921(0x9e)](_0x38c758=>_0x38c758['startIndex']>=_0x232424-0x1)??_0x2190fb[_0x2190fb[_0x1cf921(0x9b)]-0x1];return{'startOffset':_0x4eb261?T(_0x28726c,_0x4eb261,_0x32ccf0,_0x37e3c7):_0x41e8ef,'endOffset':_0x233f65?be(_0x233f65,_0x32ccf0):_0x232424};}function ye(_0x412e8d,_0x52e081){const _0x3adb8c=_0x922900;let _0x50d199=[..._0x412e8d[_0x3adb8c(0xf8)]??[]][_0x3adb8c(0xba)]((_0x752203,_0x1b9aa0)=>_0x752203[_0x3adb8c(0x143)]-_0x1b9aa0[_0x3adb8c(0x143)]),_0x1051d3=(0x0,e[_0x3adb8c(0x127)])(_0x412e8d);return _0x50d199[_0x3adb8c(0x9e)](_0x3ee454=>(_0x1051d3[_0x3adb8c(0xc7)](_0x3ee454[_0x3adb8c(0x143)])??0x0)<=_0x52e081&&_0x52e081<=_0x3ee454[_0x3adb8c(0x143)]);}function T(_0x2d8a08,_0x57d6c1,_0x475117,_0x11c723){const _0x1ccd37=_0x922900;let _0xf09711=(_0x11c723==null?void 0x0:_0x11c723[_0x1ccd37(0xc7)](_0x57d6c1[_0x1ccd37(0x143)]))??(0x0,e[_0x1ccd37(0x149)])(_0x2d8a08,_0x57d6c1);return _0x475117?Math[_0x1ccd37(0xc1)](_0xf09711,_0x475117[_0x1ccd37(0x131)]):_0xf09711;}function be(_0x4d7fe7,_0x46a258){const _0x24f58d=_0x922900;let _0x4784f3=_0x4d7fe7[_0x24f58d(0x143)]+0x1;return _0x46a258?Math['min'](_0x4784f3,_0x46a258[_0x24f58d(0xd3)]):_0x4784f3;}function xe(_0x11a682,_0x3d47d7,_0x137a06){const _0x1d7ebd=_0x922900;let _0x5dd85c=E(_0x11a682,_0x3d47d7),_0x28cd26=E(_0x11a682,_0x3d47d7===_0x137a06?_0x137a06:Math[_0x1d7ebd(0xc1)](_0x3d47d7,_0x137a06-0x1));if(_0x5dd85c||_0x28cd26){if(!_0x5dd85c||!_0x28cd26||_0x5dd85c[_0x1d7ebd(0xf9)]!==_0x28cd26[_0x1d7ebd(0xf9)]||_0x5dd85c['endTokenOffset']!==_0x28cd26[_0x1d7ebd(0xaf)])throw new _();return _0x5dd85c;}}function E(_0x2d37fb,_0x51fc48){const _0x3b9046=_0x922900;let _0x445b2d=_0x2d37fb['dataStream'],_0x2b0d32=-0x1;for(let _0x39aa5b=Math['min'](_0x51fc48,_0x445b2d[_0x3b9046(0x9b)]-0x1);_0x39aa5b>=0x0;_0x39aa5b--){let _0xf2e101=_0x445b2d[_0x39aa5b];if(_0xf2e101===e['DataStreamTreeTokenType']['TABLE_CELL_END'])return;if(_0xf2e101===e[_0x3b9046(0x154)][_0x3b9046(0x13b)]){_0x2b0d32=_0x39aa5b;break;}}if(_0x2b0d32<0x0)return;let _0x5685ae=_0x445b2d['indexOf'](e[_0x3b9046(0x154)][_0x3b9046(0x134)],_0x2b0d32+0x1);if(!(_0x5685ae<0x0||_0x51fc48<_0x2b0d32+0x1||_0x51fc48>_0x5685ae-0x1))return{'startOffset':_0x2b0d32+0x1,'endOffset':Math[_0x3b9046(0xc1)](_0x2b0d32+0x1,_0x5685ae-0x1),'startTokenOffset':_0x2b0d32,'endTokenOffset':_0x5685ae};}function D(_0x61715c){const _0x50835e=_0x922900;return(0x0,e['getBlockRangeInterval'])(_0x61715c)[_0x50835e(0xd3)]-0x1;}function Se(_0x5b4d1a,_0x572b3d,_0x1f5031,_0x230a1f){const _0x2869c3=_0x922900;let _0x1b691a=D(_0x572b3d),_0x5b3b5b=(_0x5b4d1a[_0x2869c3(0xf8)]??[])[_0x2869c3(0x9e)](_0x173202=>_0x173202['startIndex']===_0x1b691a+0x1);if(!_0x5b3b5b||_0x230a1f!=null&&_0x5b3b5b['startIndex']!==_0x230a1f||_0x1f5031!=null&&(_0x1f5031<_0x1b691a||_0x1f5031>_0x5b3b5b['startIndex']+0x1)||_0x5b4d1a[_0x2869c3(0xa8)][_0x5b3b5b['startIndex']]!==e[_0x2869c3(0x154)][_0x2869c3(0xb2)])return null;let _0x47a18c=(0x0,e[_0x2869c3(0x149)])(_0x5b4d1a,_0x5b3b5b),_0x215d41=_0x5b4d1a[_0x2869c3(0xa8)][_0x2869c3(0xec)](_0x47a18c,_0x5b3b5b[_0x2869c3(0x143)]);return Array[_0x2869c3(0x106)](_0x215d41)[_0x2869c3(0x10d)](_0x261f88=>_0x261f88===e[_0x2869c3(0x154)][_0x2869c3(0x112)])?{'paragraph':_0x5b3b5b,'endTokenOffset':_0x1b691a}:null;}function O(_0x1afe90,_0x3502de){const _0x45a671=_0x922900;var _0x308405;let _0x111333=D(_0x3502de),_0x255e04=_0x1afe90['dataStream'][_0x111333+0x1];(_0x255e04===e[_0x45a671(0x154)]['SECTION_BREAK']||_0x255e04===void 0x0)&&k(_0x1afe90,_0x111333+0x1,e[_0x45a671(0x154)][_0x45a671(0xb2)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,e[_0x45a671(0xf4)])(new Set((_0x308405=_0x1afe90[_0x45a671(0xf8)])==null?void 0x0:_0x308405['map'](_0x4c8ddb=>_0x4c8ddb[_0x45a671(0xfb)])))}]});}function k(_0x56d15c,_0x28bd1b,_0x1d1329,_0x253849={}){const _0x29558d=_0x922900;var _0x538004,_0x2629a7;_0x1d1329&&(_0x56d15c[_0x29558d(0xa8)]=''+_0x56d15c['dataStream'][_0x29558d(0xec)](0x0,_0x28bd1b)+_0x1d1329+_0x56d15c['dataStream'][_0x29558d(0xec)](_0x28bd1b),Ce(_0x56d15c,_0x28bd1b,_0x1d1329[_0x29558d(0x9b)]),(_0x538004=_0x253849[_0x29558d(0xf8)])!=null&&_0x538004[_0x29558d(0x9b)]&&(_0x56d15c['paragraphs']=[..._0x56d15c[_0x29558d(0xf8)]??[],..._0x253849[_0x29558d(0xf8)][_0x29558d(0xfd)](_0x59cfdb=>({..._0x59cfdb,'startIndex':_0x59cfdb[_0x29558d(0x143)]+_0x28bd1b}))]['sort']((_0x4216ba,_0x43dc23)=>_0x4216ba['startIndex']-_0x43dc23[_0x29558d(0x143)])),(_0x2629a7=_0x253849['blockRanges'])!=null&&_0x2629a7[_0x29558d(0x9b)]&&(_0x56d15c[_0x29558d(0xb5)]=[..._0x56d15c[_0x29558d(0xb5)]??[],..._0x253849[_0x29558d(0xb5)]['map'](_0x34caa2=>({..._0x34caa2,'startIndex':_0x34caa2[_0x29558d(0x143)]+_0x28bd1b,'endIndex':_0x34caa2[_0x29558d(0xfc)]+_0x28bd1b}))][_0x29558d(0xba)]((_0x5a418d,_0x1418f6)=>_0x5a418d[_0x29558d(0x143)]-_0x1418f6[_0x29558d(0x143)])));}function A(_0x1fbd66,_0x5983a1,_0x43f575){const _0x176b6b=_0x922900;let _0x97133c=_0x43f575-_0x5983a1;_0x1fbd66[_0x176b6b(0xa8)]=''+_0x1fbd66[_0x176b6b(0xa8)][_0x176b6b(0xec)](0x0,_0x5983a1)+_0x1fbd66[_0x176b6b(0xa8)][_0x176b6b(0xec)](_0x43f575),we(_0x1fbd66,_0x5983a1,_0x97133c);}function Ce(_0x53d36d,_0x233a8d,_0x461ed2){const _0x17d388=_0x922900;_0x53d36d[_0x17d388(0xf8)]=j(_0x53d36d[_0x17d388(0xf8)],_0x233a8d,_0x461ed2),_0x53d36d[_0x17d388(0x12f)]=j(_0x53d36d[_0x17d388(0x12f)],_0x233a8d,_0x461ed2),_0x53d36d[_0x17d388(0x124)]=j(_0x53d36d[_0x17d388(0x124)],_0x233a8d,_0x461ed2),_0x53d36d[_0x17d388(0x151)]=Te(_0x53d36d['textRuns'],_0x233a8d,_0x461ed2),_0x53d36d[_0x17d388(0x125)]=Ee(_0x53d36d[_0x17d388(0x125)],_0x233a8d,_0x461ed2),_0x53d36d[_0x17d388(0xd2)]=N(_0x53d36d[_0x17d388(0xd2)],_0x233a8d,_0x461ed2),_0x53d36d[_0x17d388(0xdb)]=N(_0x53d36d[_0x17d388(0xdb)],_0x233a8d,_0x461ed2),_0x53d36d['customDecorations']=N(_0x53d36d[_0x17d388(0xcb)],_0x233a8d,_0x461ed2),_0x53d36d[_0x17d388(0xb5)]=N(_0x53d36d[_0x17d388(0xb5)],_0x233a8d,_0x461ed2);}function we(_0x99891b,_0x4a64e9,_0xfbd00){const _0x3d68c7=_0x922900;var _0x478e69,_0x3571c5;_0x99891b[_0x3d68c7(0xf8)]=M(_0x99891b[_0x3d68c7(0xf8)],_0x4a64e9,_0xfbd00),_0x99891b[_0x3d68c7(0x12f)]=M(_0x99891b[_0x3d68c7(0x12f)],_0x4a64e9,_0xfbd00),_0x99891b[_0x3d68c7(0x124)]=M(_0x99891b[_0x3d68c7(0x124)],_0x4a64e9,_0xfbd00),_0x99891b[_0x3d68c7(0x151)]=(_0x478e69=F((_0x3571c5=_0x99891b['textRuns'])==null?void 0x0:_0x3571c5['map'](_0x38f11d=>({..._0x38f11d,'startIndex':_0x38f11d['st'],'endIndex':_0x38f11d['ed']})),_0x4a64e9,_0xfbd00))==null?void 0x0:_0x478e69['map'](_0x9b18b4=>{let {startIndex:_0x445aa0,endIndex:_0x52cc38,..._0x447b53}=_0x9b18b4;return{..._0x447b53,'st':_0x445aa0,'ed':_0x52cc38};}),_0x99891b[_0x3d68c7(0x125)]=F(_0x99891b[_0x3d68c7(0x125)],_0x4a64e9,_0xfbd00),_0x99891b['columnGroups']=P(_0x99891b[_0x3d68c7(0xd2)],_0x4a64e9,_0xfbd00),_0x99891b['customRanges']=P(_0x99891b[_0x3d68c7(0xdb)],_0x4a64e9,_0xfbd00),_0x99891b[_0x3d68c7(0xcb)]=P(_0x99891b[_0x3d68c7(0xcb)],_0x4a64e9,_0xfbd00),_0x99891b[_0x3d68c7(0xb5)]=P(_0x99891b['blockRanges'],_0x4a64e9,_0xfbd00);}function j(_0x3d522,_0x3cd8d1,_0x4524e7){const _0x3210c6=_0x922900;return _0x3d522==null?void 0x0:_0x3d522[_0x3210c6(0xfd)](_0x499684=>_0x499684[_0x3210c6(0x143)]>=_0x3cd8d1?{..._0x499684,'startIndex':_0x499684[_0x3210c6(0x143)]+_0x4524e7}:_0x499684);}function M(_0x4935e6,_0x4a8974,_0x35e8d2){const _0x5bc88b=_0x922900;let _0x197b5a=_0x4a8974+_0x35e8d2;return _0x4935e6==null?void 0x0:_0x4935e6[_0x5bc88b(0xfd)](_0x5c4934=>_0x5c4934[_0x5bc88b(0x143)]>=_0x4a8974&&_0x5c4934[_0x5bc88b(0x143)]<_0x197b5a?null:_0x5c4934[_0x5bc88b(0x143)]>=_0x197b5a?{..._0x5c4934,'startIndex':_0x5c4934['startIndex']-_0x35e8d2}:_0x5c4934)['filter'](_0x2fd0df=>_0x2fd0df!=null);}function Te(_0x4b23c8,_0x27cd25,_0x32a609){const _0x5cb801=_0x922900;return _0x4b23c8==null?void 0x0:_0x4b23c8[_0x5cb801(0xfd)](_0x1eaefe=>_0x1eaefe['st']>=_0x27cd25?{..._0x1eaefe,'st':_0x1eaefe['st']+_0x32a609,'ed':_0x1eaefe['ed']+_0x32a609}:_0x1eaefe['ed']>_0x27cd25?{..._0x1eaefe,'ed':_0x1eaefe['ed']+_0x32a609}:_0x1eaefe);}function N(_0x6ab198,_0x10d672,_0x439a10){return _0x6ab198==null?void 0x0:_0x6ab198['map'](_0x2bea67=>(0x0,e['shiftInclusiveRangeOnInsert'])(_0x2bea67,_0x10d672,_0x439a10));}function Ee(_0x445b32,_0x4887c5,_0x4d5723){const _0x314599=_0x922900;return _0x445b32==null?void 0x0:_0x445b32['map'](_0x5c11d1=>(0x0,e[_0x314599(0x97)])(_0x5c11d1,_0x4887c5,_0x4d5723));}function P(_0x4758e7,_0x12c935,_0x58aed6){const _0x45211a=_0x922900;return _0x4758e7==null?void 0x0:_0x4758e7['map'](_0x1dda42=>(0x0,e[_0x45211a(0x118)])(_0x1dda42,_0x12c935,_0x58aed6))[_0x45211a(0xe1)](_0x357599=>_0x357599!=null);}function F(_0xc84568,_0x279cfd,_0x2c6f0a){const _0x3b20d9=_0x922900;return _0xc84568==null?void 0x0:_0xc84568['map'](_0x26e3e8=>(0x0,e[_0x3b20d9(0xb1)])(_0x26e3e8,_0x279cfd,_0x2c6f0a))['filter'](_0x541654=>_0x541654!=null);}const I={'id':_0x922900(0x98),'type':e['CommandType']['COMMAND'],'handler':_0x461d13=>{const _0x2ce2dc=_0x922900;var _0x461bcc;if((0x0,n['isHeaderFooterSelection'])(W(_0x461d13)))return!0x1;let _0x23f916=(0x0,n[_0x2ce2dc(0xb7)])(_0x461d13);if(_0x23f916)return _0x461d13[_0x2ce2dc(0xc7)](e[_0x2ce2dc(0xf1)])['syncExecuteCommand'](R['id'],{'startOffset':_0x23f916['startOffset'],'endOffset':_0x23f916[_0x2ce2dc(0xd3)],'insertionMode':_0x2ce2dc(0x13c),'unitId':_0x23f916[_0x2ce2dc(0xb8)]});let _0x506abd=je(_0x461d13);if(!_0x506abd)return!0x1;let _0xe31424=(_0x461bcc=_0x461d13[_0x2ce2dc(0xc7)](e[_0x2ce2dc(0x12d)])[_0x2ce2dc(0x120)](e['UniverInstanceType'][_0x2ce2dc(0xce)]))==null?void 0x0:_0x461bcc['getBody'](),_0x3982aa=_0xe31424?(0x0,e[_0x2ce2dc(0x159)])(_0xe31424,_0x506abd):_0x506abd[_0x2ce2dc(0x143)]+0x1;return _0x461d13[_0x2ce2dc(0xc7)](e[_0x2ce2dc(0xf1)])[_0x2ce2dc(0xc0)](R['id'],{'startOffset':_0x3982aa,'endOffset':_0x3982aa});}},L={'id':'docs-code.command.consume-boundary-delete','type':e[_0x922900(0x135)]['COMMAND'],'handler':()=>!0x0},R={'id':_0x922900(0xf7),'type':e[_0x922900(0x135)][_0x922900(0xf3)],'handler':(_0x2d75de,_0x192892)=>{const _0x1f6211=_0x922900;let _0x214285=U(_0x2d75de,_0x192892==null?void 0x0:_0x192892['unitId']);if(!_0x214285)return!0x1;let _0x43ea25=W(_0x2d75de);if((0x0,n[_0x1f6211(0x15f)])(_0x43ea25))return!0x1;let _0x5ae02a=_0x214285[_0x1f6211(0x148)][_0x1f6211(0xb9)](_0x214285['unitId']),_0x4097a9=Oe(_0x192892,_0x43ea25),_0x64b932=ke(_0x214285[_0x1f6211(0x110)],_0x4097a9);if(_0x64b932){if(_0x64b932['blockType']!==e[_0x1f6211(0xe2)]['CODE'])return!0x1;let _0x324926=v({'blockId':_0x64b932[_0x1f6211(0x129)],'documentData':_0x214285[_0x1f6211(0x110)],'metadata':_0x5ae02a});if(!_0x324926)return!0x1;let _0x136696=J(_0x214285[_0x1f6211(0xda)],_0x214285[_0x1f6211(0x138)],_0x214285[_0x1f6211(0xb8)],_0x214285[_0x1f6211(0x110)],_0x324926['nextDocumentData'],R['id'],_0x324926[_0x1f6211(0x147)]);return _0x136696&&_0x324926[_0x1f6211(0x96)]&&_0x214285[_0x1f6211(0x148)][_0x1f6211(0xb6)](_0x214285['unitId'],_0x324926[_0x1f6211(0x96)]),_0x136696;}let _0x21bf5a=(_0x192892==null?void 0x0:_0x192892['blockId'])??(0x0,e[_0x1f6211(0x158)])(0x6),_0x319801;try{_0x319801=ee({'blockId':_0x21bf5a,'config':_0x192892==null?void 0x0:_0x192892['config'],'documentData':_0x214285[_0x1f6211(0x110)],'endOffset':_0x4097a9==null?void 0x0:_0x4097a9[_0x1f6211(0xd3)],'insertionMode':_0x192892==null?void 0x0:_0x192892[_0x1f6211(0x13a)],'metadata':_0x5ae02a,'startOffset':_0x4097a9==null?void 0x0:_0x4097a9[_0x1f6211(0x131)]});}catch(_0x5293ef){if(_0x5293ef instanceof _)return!0x1;throw _0x5293ef;}let _0x4d8cd7=J(_0x214285[_0x1f6211(0xda)],_0x214285[_0x1f6211(0x138)],_0x214285[_0x1f6211(0xb8)],_0x214285['previousDocumentData'],_0x319801[_0x1f6211(0x114)],R['id'],_0x319801['cursorOffset']);return _0x4d8cd7&&_0x319801[_0x1f6211(0x96)]&&_0x214285[_0x1f6211(0x148)][_0x1f6211(0xb6)](_0x214285['unitId'],_0x319801[_0x1f6211(0x96)]),_0x4d8cd7;}},z={'id':_0x922900(0x10b),'type':e[_0x922900(0x135)]['COMMAND'],'handler':(_0x313d37,_0x41e609)=>{const _0x1b21a3=_0x922900;if(!_0x41e609)return!0x1;let _0x5c1c49=U(_0x313d37,_0x41e609['unitId']);if(!_0x5c1c49)return!0x1;let _0x5c4f11=ie({'blockId':_0x41e609[_0x1b21a3(0x129)],'config':_0x41e609['config'],'documentData':_0x5c1c49['previousDocumentData'],'metadata':_0x5c1c49[_0x1b21a3(0x148)]['serialize'](_0x5c1c49[_0x1b21a3(0xb8)])});return _0x5c4f11['nextMetadata']&&_0x5c1c49['model']['deserialize'](_0x5c1c49[_0x1b21a3(0xb8)],_0x5c4f11[_0x1b21a3(0x96)]),!0x0;}},De={'id':_0x922900(0x157),'type':e[_0x922900(0x135)][_0x922900(0xf3)],'handler':(_0x42db86,_0x3e70ad)=>B['handler'](_0x42db86,_0x3e70ad)},B={'id':'docs-code.command.unwrap','type':e[_0x922900(0x135)][_0x922900(0xf3)],'handler':(_0x5c3edf,_0x7e99ab)=>{const _0x80b85b=_0x922900;if(!_0x7e99ab)return!0x1;let _0x116221=U(_0x5c3edf,_0x7e99ab==null?void 0x0:_0x7e99ab[_0x80b85b(0xb8)]);if(!_0x116221)return!0x1;let _0x5eb62f=v({'blockId':_0x7e99ab[_0x80b85b(0x129)],'documentData':_0x116221['previousDocumentData'],'metadata':_0x116221[_0x80b85b(0x148)][_0x80b85b(0xb9)](_0x116221[_0x80b85b(0xb8)])});if(!_0x5eb62f)return!0x1;let _0x32aa64=J(_0x116221[_0x80b85b(0xda)],_0x116221[_0x80b85b(0x138)],_0x116221['unitId'],_0x116221[_0x80b85b(0x110)],_0x5eb62f['nextDocumentData'],B['id'],_0x5eb62f[_0x80b85b(0x147)]);return _0x32aa64&&_0x5eb62f[_0x80b85b(0x96)]&&_0x116221[_0x80b85b(0x148)][_0x80b85b(0xb6)](_0x116221['unitId'],_0x5eb62f[_0x80b85b(0x96)]),_0x32aa64;}},V={'id':_0x922900(0x141),'type':e[_0x922900(0x135)][_0x922900(0xf3)],'handler':(_0x5d44ee,_0x5408b0)=>{const _0xcc83ff=_0x922900;if(!_0x5408b0)return!0x1;let _0x9fb619=U(_0x5d44ee,_0x5408b0==null?void 0x0:_0x5408b0[_0xcc83ff(0xb8)]);if(!_0x9fb619)return!0x1;let _0x5b503c=ae({'blockId':_0x5408b0[_0xcc83ff(0x129)],'documentData':_0x9fb619[_0xcc83ff(0x110)],'metadata':_0x9fb619[_0xcc83ff(0x148)][_0xcc83ff(0xb9)](_0x9fb619[_0xcc83ff(0xb8)])});if(!_0x5b503c)return!0x1;let _0x2a065f=J(_0x9fb619[_0xcc83ff(0xda)],_0x9fb619[_0xcc83ff(0x138)],_0x9fb619[_0xcc83ff(0xb8)],_0x9fb619[_0xcc83ff(0x110)],_0x5b503c[_0xcc83ff(0x114)],V['id'],_0x5b503c[_0xcc83ff(0x147)]);return _0x2a065f&&_0x5b503c[_0xcc83ff(0x96)]&&_0x9fb619[_0xcc83ff(0x148)][_0xcc83ff(0xb6)](_0x9fb619[_0xcc83ff(0xb8)],_0x5b503c[_0xcc83ff(0x96)]),_0x2a065f;}},H={'id':'docs-code.command.cancel-empty-paragraph','type':e[_0x922900(0x135)][_0x922900(0xf3)],'handler':(_0x2a0ea4,_0x26d390)=>{const _0x582c19=_0x922900;var _0x31884f;let _0x5a22d7=U(_0x2a0ea4,_0x26d390==null?void 0x0:_0x26d390[_0x582c19(0xb8)]);if(!_0x5a22d7)return!0x1;let _0x1c3e2c=(_0x26d390==null?void 0x0:_0x26d390[_0x582c19(0x147)])??((_0x31884f=W(_0x2a0ea4))==null?void 0x0:_0x31884f[_0x582c19(0x131)]);if(_0x1c3e2c==null)return!0x1;let _0x3bb46a=y({'cursorOffset':_0x1c3e2c,'documentData':_0x5a22d7[_0x582c19(0x110)],'paragraphStartIndex':_0x26d390==null?void 0x0:_0x26d390[_0x582c19(0x15b)]});return _0x3bb46a?J(_0x5a22d7[_0x582c19(0xda)],_0x5a22d7[_0x582c19(0x138)],_0x5a22d7['unitId'],_0x5a22d7['previousDocumentData'],_0x3bb46a[_0x582c19(0x114)],H['id'],_0x3bb46a[_0x582c19(0x147)]):!0x1;}};function U(_0x52909f,_0x113fa4){const _0x56aea3=_0x922900;let _0x48b65b=_0x52909f[_0x56aea3(0xc7)](e[_0x56aea3(0x12d)]),_0x3dc248=_0x113fa4?_0x48b65b[_0x56aea3(0xff)](_0x113fa4,e[_0x56aea3(0x10a)]['UNIVER_DOC']):_0x48b65b[_0x56aea3(0x120)](e[_0x56aea3(0x10a)][_0x56aea3(0xce)]);return _0x3dc248?{'commandService':_0x52909f['get'](e[_0x56aea3(0xf1)]),'model':_0x52909f[_0x56aea3(0xc7)](p),'previousDocumentData':_0x3dc248[_0x56aea3(0x14a)](),'selectionManager':_0x52909f[_0x56aea3(0xc7)](n['DocSelectionManagerService']),'unitId':_0x3dc248[_0x56aea3(0xc5)]()}:null;}function W(_0x1476c9){const _0x3d23f8=_0x922900;var _0x320c34;return(_0x320c34=_0x1476c9[_0x3d23f8(0xc7)](n[_0x3d23f8(0xa6)])['getTextRanges']())==null?void 0x0:_0x320c34[0x0];}function Oe(_0x3c0b5f,_0x2b3606){const _0x172d10=_0x922900;let _0x4bcec3=(_0x3c0b5f==null?void 0x0:_0x3c0b5f['startOffset'])??(_0x2b3606==null?void 0x0:_0x2b3606[_0x172d10(0x131)]),_0x52363f=(_0x3c0b5f==null?void 0x0:_0x3c0b5f[_0x172d10(0xd3)])??(_0x2b3606==null?void 0x0:_0x2b3606[_0x172d10(0xd3)]);if(_0x4bcec3!=null&&_0x52363f!=null)return{'endOffset':Math[_0x172d10(0xc1)](_0x4bcec3,_0x52363f),'startOffset':Math[_0x172d10(0x12a)](_0x4bcec3,_0x52363f)};}function _0x1be2(){const _0x115e83=['fromEntries','startOffset','_resourceManagerService','change$','TABLE_CELL_END','CommandType','DocsCodeConsumeBoundaryDeleteCommand','Subject','selectionManager','insert','insertionMode','TABLE_CELL_START','insert-new','complete','insertLength','defineProperty','dispose','docs-code.command.remove','2MwiNBv','startIndex','version','MUTATION','setCodeConfig','cursorOffset','model','getParagraphContentStartOffset','getSnapshot','next','setConfig','spaceAbove','removeCode','Disposable','CODE','textRuns','Plugin','keepNext','DataStreamTreeTokenType','9833288BZSprY','120LmiwfD','docs-code.command.exit','generateRandomId','getParagraphFollowingBlockOffset','removeUnit','paragraphStartIndex','convert-paragraph','push','getSingleDataStreamChange','isHeaderFooterSelection','stringify','widowControl','disposeWithMe','nextMetadata','shiftExclusiveRangeOnInsert','docs-code.command.insert-below','getInstance','docs-code.mutation.set-config','length','keepLines','SECTION_BREAK','find','body','reduce','35VuvuwD','@univerjs-pro/docs-code','constructor','paragraphStyle','forEach','DocSelectionManagerService','clear','dataStream','textStyle','Inject','isArray','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','isCodeBoundaryDelete','JSONX','endTokenOffset','some','shiftExclusiveRangeOnDelete','PARAGRAPH','blockType','DocsCodeRemoveCommand','blockRanges','deserialize','getContentInsertRange','unitId','serialize','sort','getOwnPropertyDescriptor','3850392bBrArs','DocsCodeUnwrapCommand','bullet','SetDocsCodeConfigMutation','syncExecuteCommand','max','IConfigService','symbol','range','getUnitId','Module','get','DOC_CODE_PLUGIN','metadata','function','customDecorations','removeOp','intersectsOperationalIntervals','UNIVER_DOC','registerCommand','string','config','columnGroups','endOffset','_commandService','deleteLength','codes','UniverDocsPlugin','RemoveDocsCodeConfigMutation','documentData','commandService','customRanges','TextX','_change$','registerPluginResource','decorate','entries','filter','DocumentBlockRangeType','_initResource','spaceBelow','FALSE','default','asObservable','256716hIQger','DocsCodeModel','780504kUvwhq','delete','slice','start','paragraph','UniverDocsCodePlugin','insertOp','ICommandService','add','COMMAND','createParagraphId','containsStreamIndex','_docsCodeModel','docs-code.command.insert','paragraphs','startTokenOffset','docs-code.config','paragraphId','endIndex','map','getParagraphsInRange','getUnit','packageName','1.0.0','_configService','direction','759180oTOVmW','merge','from','object','pluginName','getBlockRangeInterval','UniverInstanceType','docs-code.command.update','BooleanNumber','every','prototype','256362jumzTO','previousDocumentData','keys','BLOCK_END','set','nextDocumentData','toStringTag','replaceOp','_resources','shiftInclusiveRangeOnDelete','compose','7CXzijt','266008nmWIbe','517tBaWou','BLOCK_START','columns','iterator','getCurrentUnitOfType','onStarting','_injector','monospace','customBlocks','tables','DocsCodeUpdateCommand','getParagraphContentStartOffsets','_config','blockId','min','replaceDocRanges','_setResource','IUniverInstanceService','getBodySliceForTextXAction','sectionBreaks'];_0x1be2=function(){return _0x115e83;};return _0x1be2();}function ke(_0x23251b,_0x3bf192){const _0x56cd68=_0x922900;var _0x25d1c9;if(!_0x3bf192)return;let _0x330a23=Ae(_0x3bf192);return(_0x25d1c9=_0x23251b[_0x56cd68(0x9f)])==null||(_0x25d1c9=_0x25d1c9[_0x56cd68(0xb5)])==null?void 0x0:_0x25d1c9[_0x56cd68(0x9e)](_0x3d643e=>{const _0x4c1328=_0x56cd68;let _0x3e536e=(0x0,e['getBlockRangeInterval'])(_0x3d643e);return _0x3bf192['startOffset']===_0x3bf192[_0x4c1328(0xd3)]?(0x0,e['containsInteriorInsertionOffset'])(_0x3e536e,_0x330a23):(0x0,e[_0x4c1328(0xf5)])(_0x3e536e,_0x330a23);});}function Ae(_0x3eb5b8){const _0x3e78e8=_0x922900;return _0x3eb5b8[_0x3e78e8(0x131)]===_0x3eb5b8[_0x3e78e8(0xd3)]?_0x3eb5b8[_0x3e78e8(0x131)]:_0x3eb5b8['startOffset']+0x1;}function je(_0x2a3977){const _0x35410e=_0x922900;let _0x568a50=W(_0x2a3977);if(!_0x568a50)return null;let _0x261fbf=_0x2a3977['get'](e[_0x35410e(0x12d)])[_0x35410e(0x120)](e[_0x35410e(0x10a)][_0x35410e(0xce)]),_0x4dffeb=_0x261fbf==null?void 0x0:_0x261fbf['getBody']();return _0x4dffeb?e['BuildTextUtils'][_0x35410e(0xc4)][_0x35410e(0xfe)](_0x568a50,_0x4dffeb[_0x35410e(0xf8)]??[],_0x4dffeb[_0x35410e(0xa8)]??'')[0x0]??null:null;}function Me(_0x1fb01f,_0x3b2222){const _0x38c548=_0x922900;let _0x7d2698=_0x1fb01f[_0x38c548(0x9f)],_0x164344=_0x3b2222[_0x38c548(0x9f)],_0x5c0628=(0x0,e[_0x38c548(0x15e)])(_0x7d2698,_0x164344);return[_0x5c0628&&_0x164344?Ne(_0x164344,_0x5c0628):null,_0x5c0628?null:Pe(_0x7d2698,_0x164344)]['filter'](Boolean)[_0x38c548(0xa0)]((_0x29672c,_0x2bbfa5)=>e[_0x38c548(0xae)][_0x38c548(0x119)](_0x29672c,_0x2bbfa5),null);}function Ne(_0x45adb4,_0x51a79d){const _0x5c41ac=_0x922900;let _0x5a45ec=new e[(_0x5c41ac(0xdc))]();return _0x5a45ec['retain'](_0x51a79d[_0x5c41ac(0xed)]),_0x51a79d[_0x5c41ac(0x13e)]>0x0&&_0x5a45ec[_0x5c41ac(0x139)](_0x51a79d[_0x5c41ac(0x13e)],(0x0,e[_0x5c41ac(0x12e)])(_0x45adb4,_0x51a79d['start'],_0x51a79d[_0x5c41ac(0xed)]+_0x51a79d['insertLength'],!0x1)),_0x51a79d['deleteLength']>0x0&&_0x5a45ec[_0x5c41ac(0xeb)](_0x51a79d[_0x5c41ac(0xd5)]),e[_0x5c41ac(0xae)][_0x5c41ac(0x99)]()['editOp'](_0x5a45ec[_0x5c41ac(0xb9)](),[_0x5c41ac(0x9f)]);}function Pe(_0x577221,_0x5bd26e){const _0x565ce0=_0x922900;let _0x2a589d=[],_0x51ed42=_0x577221?G(_0x577221):void 0x0,_0x411409=_0x5bd26e?G(_0x5bd26e):void 0x0;for(let _0x5e1d49 of Fe)K(e[_0x565ce0(0xae)]['getInstance'](),['body',_0x5e1d49],_0x51ed42==null?void 0x0:_0x51ed42[_0x5e1d49],_0x411409==null?void 0x0:_0x411409[_0x5e1d49],_0x2a589d);return _0x2a589d[_0x565ce0(0xa0)]((_0x4b5959,_0x4a696b)=>e['JSONX'][_0x565ce0(0x119)](_0x4b5959,_0x4a696b),null);}const Fe=[_0x922900(0xf8),'sectionBreaks','tables',_0x922900(0xd2),_0x922900(0xb5),_0x922900(0x124),_0x922900(0xdb),_0x922900(0xcb),_0x922900(0x151)];function G(_0x1575f2){return _0x1575f2;}function K(_0x93c41f,_0x257c2f,_0x5ae965,_0xa2cd76,_0xefb256){const _0xb1d0e=_0x922900;if(!q(_0x5ae965,_0xa2cd76)){if(_0x5ae965==null){_0xefb256[_0xb1d0e(0x15d)](_0x93c41f[_0xb1d0e(0xf0)](_0x257c2f,_0xa2cd76));return;}if(_0xa2cd76==null){_0xefb256[_0xb1d0e(0x15d)](_0x93c41f['removeOp'](_0x257c2f,_0x5ae965));return;}if(Array['isArray'](_0x5ae965)&&Array[_0xb1d0e(0xab)](_0xa2cd76)){Ie(_0x93c41f,_0x257c2f,_0x5ae965,_0xa2cd76,_0xefb256);return;}if(Le(_0x5ae965)&&Le(_0xa2cd76)){new Set([...Object[_0xb1d0e(0x111)](_0x5ae965),...Object['keys'](_0xa2cd76)])[_0xb1d0e(0xa5)](_0x1eb980=>{K(_0x93c41f,[..._0x257c2f,_0x1eb980],_0x5ae965[_0x1eb980],_0xa2cd76[_0x1eb980],_0xefb256);});return;}_0xefb256[_0xb1d0e(0x15d)](_0x93c41f[_0xb1d0e(0x116)](_0x257c2f,_0x5ae965,_0xa2cd76));}}function Ie(_0x3dbd95,_0x3b3128,_0x44ac90,_0xe16a9b,_0x537893){const _0x4412eb=_0x922900;if(_0x44ac90['length']===_0xe16a9b[_0x4412eb(0x9b)]){_0x44ac90[_0x4412eb(0xa5)]((_0x357d71,_0x147ab8)=>K(_0x3dbd95,[..._0x3b3128,_0x147ab8],_0x357d71,_0xe16a9b[_0x147ab8],_0x537893));return;}let _0x3d62f5=0x0;for(;_0x3d62f5<_0x44ac90[_0x4412eb(0x9b)]&&_0x3d62f5<_0xe16a9b[_0x4412eb(0x9b)]&&q(_0x44ac90[_0x3d62f5],_0xe16a9b[_0x3d62f5]);)_0x3d62f5++;let _0x390482=_0x44ac90[_0x4412eb(0x9b)]-0x1,_0x563001=_0xe16a9b[_0x4412eb(0x9b)]-0x1;for(;_0x390482>=_0x3d62f5&&_0x563001>=_0x3d62f5&&q(_0x44ac90[_0x390482],_0xe16a9b[_0x563001]);)_0x390482--,_0x563001--;for(let _0x566bd4=_0x390482;_0x566bd4>=_0x3d62f5;_0x566bd4--)_0x537893[_0x4412eb(0x15d)](_0x3dbd95[_0x4412eb(0xcc)]([..._0x3b3128,_0x566bd4],_0x44ac90[_0x566bd4]));for(let _0x3b779e=_0x3d62f5;_0x3b779e<=_0x563001;_0x3b779e++)_0x537893[_0x4412eb(0x15d)](_0x3dbd95['insertOp']([..._0x3b3128,_0x3b779e],_0xe16a9b[_0x3b779e]));}function Le(_0x56d499){const _0x396dbc=_0x922900;return typeof _0x56d499==_0x396dbc(0x107)&&!!_0x56d499&&!Array[_0x396dbc(0xab)](_0x56d499);}function q(_0x110f9a,_0x83af28){const _0x3cf605=_0x922900;return JSON[_0x3cf605(0x160)](_0x110f9a)===JSON[_0x3cf605(0x160)](_0x83af28);}function J(_0x83ce9a,_0x5ace27,_0x4a198c,_0x305388,_0xa67e6c,_0x8b4189,_0x1e2827){const _0x264fb0=_0x922900;let _0x2ddcf2=Me(_0x305388,_0xa67e6c);return _0x2ddcf2?!!_0x83ce9a['syncExecuteCommand'](n['RichTextEditingMutation']['id'],{'unitId':_0x4a198c,'actions':_0x2ddcf2,'textRanges':[{'startOffset':_0x1e2827,'endOffset':_0x1e2827,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x8b4189}):(_0x5ace27[_0x264fb0(0x12b)]([{'startOffset':_0x1e2827,'endOffset':_0x1e2827}],{'unitId':_0x4a198c,'subUnitId':_0x4a198c},!0x1),!0x0);}const Y=_0x922900(0xc8);var Re=_0x922900(0xa2),ze=_0x922900(0x101);const Be={};function X(_0x852d39,_0x5d555b){return function(_0x425169,_0x497185){_0x5d555b(_0x425169,_0x497185,_0x852d39);};}function Z(_0x4255d6,_0x235c71,_0x55cd4b,_0x30afbe){const _0x158d9e=_0x922900;var _0x19c6ca=arguments[_0x158d9e(0x9b)],_0x5b60e5=_0x19c6ca<0x3?_0x235c71:_0x30afbe===null?_0x30afbe=Object[_0x158d9e(0xbb)](_0x235c71,_0x55cd4b):_0x30afbe,_0x2c5c01;if(typeof Reflect==_0x158d9e(0x107)&&typeof Reflect[_0x158d9e(0xdf)]==_0x158d9e(0xca))_0x5b60e5=Reflect[_0x158d9e(0xdf)](_0x4255d6,_0x235c71,_0x55cd4b,_0x30afbe);else{for(var _0xb552b0=_0x4255d6[_0x158d9e(0x9b)]-0x1;_0xb552b0>=0x0;_0xb552b0--)(_0x2c5c01=_0x4255d6[_0xb552b0])&&(_0x5b60e5=(_0x19c6ca<0x3?_0x2c5c01(_0x5b60e5):_0x19c6ca>0x3?_0x2c5c01(_0x235c71,_0x55cd4b,_0x5b60e5):_0x2c5c01(_0x235c71,_0x55cd4b))||_0x5b60e5);}return _0x19c6ca>0x3&&_0x5b60e5&&Object[_0x158d9e(0x13f)](_0x235c71,_0x55cd4b,_0x5b60e5),_0x5b60e5;}let Q=class extends e[_0x922900(0x14f)]{constructor(_0x65959d,_0x5c5d0f){super(),this['_resourceManagerService']=_0x65959d,this['_docsCodeModel']=_0x5c5d0f,this['_initResource']();}[_0x922900(0xe3)](){const _0x47f6e0=_0x922900;this[_0x47f6e0(0x95)](this[_0x47f6e0(0x132)][_0x47f6e0(0xde)]({'pluginName':Y,'businesses':[e[_0x47f6e0(0x10a)][_0x47f6e0(0xce)]],'toJson':_0x2536b9=>JSON['stringify'](this['_docsCodeModel'][_0x47f6e0(0xb9)](_0x2536b9)),'parseJson':_0x44a521=>o(JSON['parse'](_0x44a521)),'onLoad':(_0x1fe64e,_0x5d6b60)=>this[_0x47f6e0(0xf6)][_0x47f6e0(0xb6)](_0x1fe64e,_0x5d6b60),'onUnLoad':_0x2655e1=>this[_0x47f6e0(0xf6)]['removeUnit'](_0x2655e1)}));}};Q=Z([X(0x0,e['IResourceManagerService']),X(0x1,(0x0,e[_0x922900(0xaa)])(p))],Q);let $=class extends e[_0x922900(0x152)]{constructor(_0x3629ca=Be,_0x4a3da7,_0x4178dc,_0x390557){const _0x1a187b=_0x922900;super(),this[_0x1a187b(0x128)]=_0x3629ca,this[_0x1a187b(0x122)]=_0x4a3da7,this[_0x1a187b(0xd4)]=_0x4178dc,this['_configService']=_0x390557;let {..._0x2f7e54}=(0x0,e[_0x1a187b(0x105)])({},Be,this[_0x1a187b(0x128)]);this[_0x1a187b(0x102)][_0x1a187b(0x14c)](_0x1a187b(0xfa),_0x2f7e54);}[_0x922900(0x121)](){const _0x5bf4c4=_0x922900;this[_0x5bf4c4(0x122)][_0x5bf4c4(0xf2)]([p]),this[_0x5bf4c4(0x122)]['add']([Q]),this[_0x5bf4c4(0x122)][_0x5bf4c4(0xc7)](p),this['_injector'][_0x5bf4c4(0xc7)](Q),[R,I,z,B,V,De,H,L,m,h][_0x5bf4c4(0xa5)](_0x357714=>this[_0x5bf4c4(0x95)](this['_commandService'][_0x5bf4c4(0xcf)](_0x357714)));}};f($,_0x922900(0x108),Y),f($,_0x922900(0x100),Re),f($,_0x922900(0x144),ze),f($,'type',e[_0x922900(0x10a)][_0x922900(0xce)]),$=Z([(0x0,e['DependentOn'])(r['UniverLicensePlugin'],n[_0x922900(0xd7)]),X(0x1,(0x0,e['Inject'])(e['Injector'])),X(0x2,e[_0x922900(0xf1)]),X(0x3,e[_0x922900(0xc2)])],$),exports['DOCS_CODE_PLUGIN']=Y,exports['DocsCodeCancelEmptyParagraphCommand']=H,exports[_0x922900(0x136)]=L,exports['DocsCodeInsertBelowCommand']=I,exports['DocsCodeInsertCommand']=R,exports[_0x922900(0xe9)]=p,exports[_0x922900(0xb4)]=V,exports[_0x922900(0xbd)]=B,exports[_0x922900(0x126)]=z,exports[_0x922900(0xd8)]=h,exports[_0x922900(0xbf)]=m,Object[_0x922900(0x13f)](exports,_0x922900(0xef),{'enumerable':!0x0,'get':function(){return $;}}),exports['buildCancelEmptyCodeParagraphActions']=y,exports[_0x922900(0xad)]=se,exports['normalizeDocsCodeConfig']=a,exports['normalizeDocsCodeMetadataResource']=o;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x19e641=_0x17bd;(function(_0x16a7f9,_0x3c644){var _0x5eb7bb=_0x17bd,_0x430de6=_0x16a7f9();while(!![]){try{var _0x1271d8=-parseInt(_0x5eb7bb(0x1c2))/0x1*(-parseInt(_0x5eb7bb(0x1c9))/0x2)+-parseInt(_0x5eb7bb(0x1f0))/0x3+-parseInt(_0x5eb7bb(0x1ee))/0x4+parseInt(_0x5eb7bb(0x1fa))/0x5*(-parseInt(_0x5eb7bb(0x1da))/0x6)+-parseInt(_0x5eb7bb(0x1d6))/0x7*(parseInt(_0x5eb7bb(0x1db))/0x8)+parseInt(_0x5eb7bb(0x1cf))/0x9+parseInt(_0x5eb7bb(0x1cb))/0xa;if(_0x1271d8===_0x3c644)break;else _0x430de6['push'](_0x430de6['shift']());}catch(_0xb87f77){_0x430de6['push'](_0x430de6['shift']());}}}(_0x35d8,0xa53a9));import{DocsCodeInsertCommand as _0x4c8079,DocsCodeModel as _0x10073f,DocsCodeRemoveCommand as _0x53ffcd,DocsCodeUnwrapCommand as _0x532796,DocsCodeUpdateCommand as _0x2bedb9,normalizeDocsCodeConfig as _0x8df313}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x2d281b,DocumentBlockRangeType as _0x10dd44,ICommandService as _0x1c02c1,Inject as _0x4bd247,Injector as _0x120414,generateRandomId as _0xcd05a4}from'@univerjs/core';import{FDocument as _0x55b9e0,isParagraphFacade as _0x305763}from'@univerjs/docs/facade';function m(_0x265250){'@babel/helpers - typeof';var _0x20333f=_0x17bd;return m=typeof Symbol==_0x20333f(0x1d2)&&typeof Symbol[_0x20333f(0x1f3)]==_0x20333f(0x1cd)?function(_0x204358){return typeof _0x204358;}:function(_0x1d71a5){var _0x483d8e=_0x20333f;return _0x1d71a5&&typeof Symbol==_0x483d8e(0x1d2)&&_0x1d71a5[_0x483d8e(0x1e0)]===Symbol&&_0x1d71a5!==Symbol['prototype']?'symbol':typeof _0x1d71a5;},m(_0x265250);}function _0x35d8(){var _0x43bb62=['getConfig','findCodeByText','28trArmO','toPrimitive','blockId','join','441942vkTrFy','1312936ncwMzQ','_injector','text','getText','includes','constructor','slice','body','getId','_getBlockRange','call','filter','startIndex','endIndex','from','_createFDocumentCode','CODE','BLOCK_START','_unitId','807880cLJRSN','_document','3327261KwBSeF','getCodes','updateConfig','iterator','some','createInstance','syncExecuteCommand','findCodes','_blockId','insertCode','80NLFfDQ','get','PARAGRAPH','object','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','decorate','extend','find','getRange','_getBlockRanges','13EzmfHT','defineProperty','blockRanges','blockType','_getDocumentData','string','save','166302HwXLib','length','20116320zjlqWE','map','symbol','config','6571971bGOhhW','getOwnPropertyDescriptor','BLOCK_END','function','getCodeAt'];_0x35d8=function(){return _0x43bb62;};return _0x35d8();}function _0x17bd(_0x130c91,_0x5c5ca5){_0x130c91=_0x130c91-0x1bc;var _0x35d834=_0x35d8();var _0x17bdb8=_0x35d834[_0x130c91];return _0x17bdb8;}function h(_0x2acece,_0x230314){var _0x378d55=_0x17bd;if(m(_0x2acece)!='object'||!_0x2acece)return _0x2acece;var _0x4de814=_0x2acece[Symbol[_0x378d55(0x1d7)]];if(_0x4de814!==void 0x0){var _0x243465=_0x4de814[_0x378d55(0x1e5)](_0x2acece,_0x230314||'default');if(m(_0x243465)!=_0x378d55(0x1fd))return _0x243465;throw TypeError(_0x378d55(0x1bc));}return(_0x230314===_0x378d55(0x1c7)?String:Number)(_0x2acece);}function g(_0x2e148d){var _0x383a58=_0x17bd,_0x4a5e1f=h(_0x2e148d,_0x383a58(0x1c7));return m(_0x4a5e1f)==_0x383a58(0x1cd)?_0x4a5e1f:_0x4a5e1f+'';}function _(_0x5981f5,_0x4cb852,_0x3af217){var _0x5f40b0=_0x17bd;return(_0x4cb852=g(_0x4cb852))in _0x5981f5?Object[_0x5f40b0(0x1c3)](_0x5981f5,_0x4cb852,{'value':_0x3af217,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5981f5[_0x4cb852]=_0x3af217,_0x5981f5;}function v(_0x449cc1,_0x4d1a01){return function(_0x2a03ef,_0x5103c0){_0x4d1a01(_0x2a03ef,_0x5103c0,_0x449cc1);};}function y(_0x38b2fe,_0x556af6,_0x1124b2,_0x2790d3){var _0x4bfa50=_0x17bd,_0xfc796a=arguments[_0x4bfa50(0x1ca)],_0x4931ec=_0xfc796a<0x3?_0x556af6:_0x2790d3===null?_0x2790d3=Object[_0x4bfa50(0x1d0)](_0x556af6,_0x1124b2):_0x2790d3,_0x6f9d3;if(typeof Reflect==_0x4bfa50(0x1fd)&&typeof Reflect['decorate']==_0x4bfa50(0x1d2))_0x4931ec=Reflect[_0x4bfa50(0x1bd)](_0x38b2fe,_0x556af6,_0x1124b2,_0x2790d3);else{for(var _0xaba156=_0x38b2fe[_0x4bfa50(0x1ca)]-0x1;_0xaba156>=0x0;_0xaba156--)(_0x6f9d3=_0x38b2fe[_0xaba156])&&(_0x4931ec=(_0xfc796a<0x3?_0x6f9d3(_0x4931ec):_0xfc796a>0x3?_0x6f9d3(_0x556af6,_0x1124b2,_0x4931ec):_0x6f9d3(_0x556af6,_0x1124b2))||_0x4931ec);}return _0xfc796a>0x3&&_0x4931ec&&Object['defineProperty'](_0x556af6,_0x1124b2,_0x4931ec),_0x4931ec;}let b=class{constructor(_0x10f812,_0xd051d2,_0x1fa791){var _0x56b908=_0x17bd;this[_0x56b908(0x1ef)]=_0x10f812,this[_0x56b908(0x1f8)]=_0xd051d2,this['_injector']=_0x1fa791,_(this,_0x56b908(0x1ed),void 0x0),this[_0x56b908(0x1ed)]=this[_0x56b908(0x1ef)][_0x56b908(0x1e3)]();}[_0x19e641(0x1e3)](){return this['_blockId'];}[_0x19e641(0x1c0)](){var _0x4764cc=_0x19e641;let _0x16c6c4=this[_0x4764cc(0x1e4)]();return _0x16c6c4?{'blockId':_0x16c6c4[_0x4764cc(0x1d8)],'endIndex':_0x16c6c4[_0x4764cc(0x1e8)],'startIndex':_0x16c6c4[_0x4764cc(0x1e7)]}:null;}[_0x19e641(0x1de)](){var _0x334302=_0x19e641,_0x5cb78d;let _0x24c7ee=this[_0x334302(0x1e4)](),_0x3999f4=(_0x5cb78d=this[_0x334302(0x1c6)]()[_0x334302(0x1e2)])==null?void 0x0:_0x5cb78d['dataStream'];return!_0x24c7ee||!_0x3999f4?'':x(_0x3999f4[_0x334302(0x1e1)](_0x24c7ee[_0x334302(0x1e7)]+0x1,_0x24c7ee['endIndex']));}['describe'](){var _0x31b4fd=_0x19e641;let _0x4051e6=this[_0x31b4fd(0x1c0)]();return _0x4051e6?{..._0x4051e6,'config':this[_0x31b4fd(0x1d4)](),'text':this['getText'](),'type':_0x10dd44[_0x31b4fd(0x1eb)]}:null;}[_0x19e641(0x1d4)](){var _0x231889=_0x19e641;return _0x8df313(this[_0x231889(0x1dc)][_0x231889(0x1fb)](_0x10073f)['getCodeConfig'](this['_unitId'],this['_blockId']));}[_0x19e641(0x1f2)](_0x258a77){var _0x54004e=_0x19e641;return this['_injector']['get'](_0x1c02c1)[_0x54004e(0x1f6)](_0x2bedb9['id'],{'blockId':this[_0x54004e(0x1f8)],'config':_0x258a77[_0x54004e(0x1ce)],'unitId':this[_0x54004e(0x1ed)]});}['unwrap'](){var _0x12943c=_0x19e641;return this[_0x12943c(0x1dc)]['get'](_0x1c02c1)['syncExecuteCommand'](_0x532796['id'],{'blockId':this[_0x12943c(0x1f8)],'unitId':this['_unitId']});}['remove'](){var _0x17308c=_0x19e641;return this[_0x17308c(0x1dc)]['get'](_0x1c02c1)[_0x17308c(0x1f6)](_0x53ffcd['id'],{'blockId':this['_blockId'],'unitId':this['_unitId']});}['_getBlockRange'](){var _0x4bd173=_0x19e641,_0x487d59;return((_0x487d59=this[_0x4bd173(0x1c6)]()[_0x4bd173(0x1e2)])==null||(_0x487d59=_0x487d59[_0x4bd173(0x1c4)])==null?void 0x0:_0x487d59[_0x4bd173(0x1bf)](_0xd770c8=>_0xd770c8[_0x4bd173(0x1d8)]===this['_blockId']&&_0xd770c8[_0x4bd173(0x1c5)]===_0x10dd44[_0x4bd173(0x1eb)]))??null;}[_0x19e641(0x1c6)](){var _0x2b4e34=_0x19e641;return this[_0x2b4e34(0x1ef)][_0x2b4e34(0x1c8)]();}};b=y([v(0x2,_0x4bd247(_0x120414))],b);function x(_0x1fd0e9){var _0x421bb2=_0x19e641;return Array[_0x421bb2(0x1e9)](_0x1fd0e9)[_0x421bb2(0x1cc)](_0x50c45d=>_0x50c45d===_0x2d281b[_0x421bb2(0x1fc)]?'\x0a':_0x50c45d)[_0x421bb2(0x1e6)](_0x494458=>_0x494458!==_0x2d281b[_0x421bb2(0x1ec)]&&_0x494458!==_0x2d281b[_0x421bb2(0x1d1)]&&_0x494458!==_0x2d281b['SECTION_BREAK'])[_0x421bb2(0x1d9)]('')['replace'](/\n$/,'');}var S=class extends _0x55b9e0{[_0x19e641(0x1f1)](){var _0x1806a4=_0x19e641;return this[_0x1806a4(0x1c1)]()['filter'](_0x3cd688=>_0x3cd688['blockType']===_0x10dd44[_0x1806a4(0x1eb)])[_0x1806a4(0x1cc)](_0x124ff0=>this[_0x1806a4(0x1ea)](_0x124ff0['blockId']));}['getCode'](_0x2bdfba){var _0x6c845b=_0x19e641;return this[_0x6c845b(0x1c1)]()[_0x6c845b(0x1f4)](_0x2552de=>_0x2552de[_0x6c845b(0x1d8)]===_0x2bdfba&&_0x2552de[_0x6c845b(0x1c5)]===_0x10dd44[_0x6c845b(0x1eb)])?this[_0x6c845b(0x1ea)](_0x2bdfba):null;}[_0x19e641(0x1d3)](_0x1fd119){var _0x2eaa52=_0x19e641;let _0x66fc2e=this['_getBlockRanges']()['find'](_0x3b53ac=>_0x3b53ac[_0x2eaa52(0x1c5)]===_0x10dd44['CODE']&&_0x3b53ac[_0x2eaa52(0x1e7)]<=_0x1fd119&&_0x1fd119<=_0x3b53ac['endIndex']);return _0x66fc2e?this[_0x2eaa52(0x1ea)](_0x66fc2e[_0x2eaa52(0x1d8)]):null;}[_0x19e641(0x1d5)](_0x8ad04b){var _0x5109f0=_0x19e641;return this[_0x5109f0(0x1f7)](_0x8ad04b)[0x0]??null;}[_0x19e641(0x1f7)](_0x31919a){var _0x5844c7=_0x19e641;let _0x49140c=typeof _0x31919a=='string'?{'text':_0x31919a}:_0x31919a;return this[_0x5844c7(0x1f1)]()[_0x5844c7(0x1e6)](_0x2c4938=>!(_0x49140c[_0x5844c7(0x1d8)]&&_0x2c4938[_0x5844c7(0x1e3)]()!==_0x49140c[_0x5844c7(0x1d8)]||_0x49140c[_0x5844c7(0x1dd)]&&!_0x2c4938[_0x5844c7(0x1de)]()[_0x5844c7(0x1df)](_0x49140c[_0x5844c7(0x1dd)])));}[_0x19e641(0x1f9)](_0x69c151={},_0xcc06c9={}){var _0x5cbb2d=_0x19e641;let _0x3934b8=this[_0x5cbb2d(0x1dc)][_0x5cbb2d(0x1fb)](_0x1c02c1),_0x1b5e8a=_0x305763(_0x69c151)?{..._0xcc06c9,..._0x69c151['getRange']()}:_0x69c151,_0x4dbce5=_0x1b5e8a['blockId']??_0xcd05a4(0x6);return _0x3934b8[_0x5cbb2d(0x1f6)](_0x4c8079['id'],{..._0x1b5e8a,'blockId':_0x4dbce5,'unitId':this[_0x5cbb2d(0x1e3)]()})?this['getCode'](_0x4dbce5):null;}[_0x19e641(0x1c1)](){var _0x49a436=_0x19e641,_0x41d26d;return((_0x41d26d=this[_0x49a436(0x1c8)]()[_0x49a436(0x1e2)])==null?void 0x0:_0x41d26d['blockRanges'])??[];}[_0x19e641(0x1ea)](_0x5ce491){var _0x330449=_0x19e641;return this[_0x330449(0x1dc)][_0x330449(0x1f5)](b,this,_0x5ce491);}};_0x55b9e0[_0x19e641(0x1be)](S);export{b as FDocumentCode};
1
+ var _0x4209fb=_0x26f4;(function(_0x370cfc,_0x339c45){var _0x239660=_0x26f4,_0x12da95=_0x370cfc();while(!![]){try{var _0x5a87a1=parseInt(_0x239660(0xb9))/0x1+parseInt(_0x239660(0xb2))/0x2+parseInt(_0x239660(0x8c))/0x3*(parseInt(_0x239660(0x83))/0x4)+-parseInt(_0x239660(0x75))/0x5*(-parseInt(_0x239660(0x97))/0x6)+parseInt(_0x239660(0xb0))/0x7+-parseInt(_0x239660(0xa3))/0x8+-parseInt(_0x239660(0xad))/0x9;if(_0x5a87a1===_0x339c45)break;else _0x12da95['push'](_0x12da95['shift']());}catch(_0x4037f2){_0x12da95['push'](_0x12da95['shift']());}}}(_0x1590,0x66064));import{DocsCodeInsertCommand as _0x31a8af,DocsCodeModel as _0x42ea99,DocsCodeRemoveCommand as _0x55ebcc,DocsCodeUnwrapCommand as _0x3d0266,DocsCodeUpdateCommand as _0x2dbf0d,normalizeDocsCodeConfig as _0x30d455}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x5e04d0,DocumentBlockRangeType as _0x5c0ff0,ICommandService as _0x2e2f73,Inject as _0x5e7b99,Injector as _0x4fb7a2,generateRandomId as _0x267fa2}from'@univerjs/core';function _0x1590(){var _0x459bfc=['getCodeConfig','unwrap','replace','function','includes','_injector','find','body','_blockId','47892MyxFPp','toPrimitive','BLOCK_END','length','describe','defineProperty','join','SECTION_BREAK','default','69bcTZHX','getRange','_document','_getBlockRange','getConfig','_getBlockRanges','startIndex','getCodeAt','decorate','blockRanges','blockType','366EpDpyz','endIndex','getCodes','constructor','PARAGRAPH','some','map','extend','string','CODE','slice','filter','2203144RnfJsA','text','getId','findCodes','BLOCK_START','_createFDocumentCode','_unitId','getText','object','insertCode','15731136HtnTJN','getCode','blockId','251489eCvdsI','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','1551720sluIQN','syncExecuteCommand','call','symbol','getOwnPropertyDescriptor','_getDocumentData','get','635565LInfvC','58890GXrWVx','dataStream','createInstance','findCodeByText','save'];_0x1590=function(){return _0x459bfc;};return _0x1590();}import{FDocument as _0x4bdb7f,isParagraphFacade as _0x164a0a}from'@univerjs/docs/facade';function m(_0x3f3db2){'@babel/helpers - typeof';var _0x4e9a18=_0x26f4;return m=typeof Symbol==_0x4e9a18(0x7d)&&typeof Symbol['iterator']=='symbol'?function(_0x5380a1){return typeof _0x5380a1;}:function(_0x55da0a){var _0x14d669=_0x4e9a18;return _0x55da0a&&typeof Symbol==_0x14d669(0x7d)&&_0x55da0a[_0x14d669(0x9a)]===Symbol&&_0x55da0a!==Symbol['prototype']?_0x14d669(0xb5):typeof _0x55da0a;},m(_0x3f3db2);}function h(_0x25298e,_0x1f0d73){var _0x6a234a=_0x26f4;if(m(_0x25298e)!='object'||!_0x25298e)return _0x25298e;var _0x48f800=_0x25298e[Symbol[_0x6a234a(0x84)]];if(_0x48f800!==void 0x0){var _0x3fb906=_0x48f800[_0x6a234a(0xb4)](_0x25298e,_0x1f0d73||_0x6a234a(0x8b));if(m(_0x3fb906)!=_0x6a234a(0xab))return _0x3fb906;throw TypeError(_0x6a234a(0xb1));}return(_0x1f0d73==='string'?String:Number)(_0x25298e);}function g(_0xdd159e){var _0x4c20b9=_0x26f4,_0x937926=h(_0xdd159e,_0x4c20b9(0x9f));return m(_0x937926)=='symbol'?_0x937926:_0x937926+'';}function _(_0x1545bd,_0x540b8b,_0x1166f3){return(_0x540b8b=g(_0x540b8b))in _0x1545bd?Object['defineProperty'](_0x1545bd,_0x540b8b,{'value':_0x1166f3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1545bd[_0x540b8b]=_0x1166f3,_0x1545bd;}function _0x26f4(_0x2001d0,_0x28a707){_0x2001d0=_0x2001d0-0x75;var _0x159013=_0x1590();var _0x26f45e=_0x159013[_0x2001d0];return _0x26f45e;}function v(_0x41acb5,_0x287a48){return function(_0x13cc14,_0x43fc34){_0x287a48(_0x13cc14,_0x43fc34,_0x41acb5);};}function y(_0x2320e6,_0x18aae9,_0x297481,_0x45cfbd){var _0x47f511=_0x26f4,_0x47ad7b=arguments[_0x47f511(0x86)],_0xba18ec=_0x47ad7b<0x3?_0x18aae9:_0x45cfbd===null?_0x45cfbd=Object[_0x47f511(0xb6)](_0x18aae9,_0x297481):_0x45cfbd,_0x30eb0c;if(typeof Reflect==_0x47f511(0xab)&&typeof Reflect[_0x47f511(0x94)]==_0x47f511(0x7d))_0xba18ec=Reflect[_0x47f511(0x94)](_0x2320e6,_0x18aae9,_0x297481,_0x45cfbd);else{for(var _0xb1ec62=_0x2320e6['length']-0x1;_0xb1ec62>=0x0;_0xb1ec62--)(_0x30eb0c=_0x2320e6[_0xb1ec62])&&(_0xba18ec=(_0x47ad7b<0x3?_0x30eb0c(_0xba18ec):_0x47ad7b>0x3?_0x30eb0c(_0x18aae9,_0x297481,_0xba18ec):_0x30eb0c(_0x18aae9,_0x297481))||_0xba18ec);}return _0x47ad7b>0x3&&_0xba18ec&&Object[_0x47f511(0x88)](_0x18aae9,_0x297481,_0xba18ec),_0xba18ec;}let b=class{constructor(_0x2a83c3,_0x200b7f,_0x580838){var _0x21d2b8=_0x26f4;this['_document']=_0x2a83c3,this[_0x21d2b8(0x82)]=_0x200b7f,this[_0x21d2b8(0x7f)]=_0x580838,_(this,_0x21d2b8(0xa9),void 0x0),this[_0x21d2b8(0xa9)]=this[_0x21d2b8(0x8e)][_0x21d2b8(0xa5)]();}[_0x4209fb(0xa5)](){var _0x3c4aba=_0x4209fb;return this[_0x3c4aba(0x82)];}[_0x4209fb(0x8d)](){var _0x1c8320=_0x4209fb;let _0x20f45b=this['_getBlockRange']();return _0x20f45b?{'blockId':_0x20f45b['blockId'],'endIndex':_0x20f45b[_0x1c8320(0x98)],'startIndex':_0x20f45b['startIndex']}:null;}[_0x4209fb(0xaa)](){var _0x2b1146=_0x4209fb,_0x4958b6;let _0x1f6679=this[_0x2b1146(0x8f)](),_0x2c3269=(_0x4958b6=this[_0x2b1146(0xb7)]()['body'])==null?void 0x0:_0x4958b6[_0x2b1146(0x76)];return!_0x1f6679||!_0x2c3269?'':x(_0x2c3269[_0x2b1146(0xa1)](_0x1f6679[_0x2b1146(0x92)]+0x1,_0x1f6679[_0x2b1146(0x98)]));}[_0x4209fb(0x87)](){var _0x2215c9=_0x4209fb;let _0x5989ba=this[_0x2215c9(0x8d)]();return _0x5989ba?{..._0x5989ba,'config':this[_0x2215c9(0x90)](),'text':this[_0x2215c9(0xaa)](),'type':_0x5c0ff0[_0x2215c9(0xa0)]}:null;}[_0x4209fb(0x90)](){var _0x5094a1=_0x4209fb;let _0x4f0d02=this[_0x5094a1(0x7f)][_0x5094a1(0xb8)](_0x42ea99);return _0x30d455(_0x4f0d02[_0x5094a1(0x7a)](this[_0x5094a1(0xa9)],this[_0x5094a1(0x82)]));}['updateConfig'](_0x13a7cb){var _0x52c40c=_0x4209fb;return this['_injector']['get'](_0x2e2f73)[_0x52c40c(0xb3)](_0x2dbf0d['id'],{'blockId':this['_blockId'],'config':_0x13a7cb['config'],'unitId':this[_0x52c40c(0xa9)]});}[_0x4209fb(0x7b)](){var _0x17010d=_0x4209fb;return this[_0x17010d(0x7f)][_0x17010d(0xb8)](_0x2e2f73)[_0x17010d(0xb3)](_0x3d0266['id'],{'blockId':this[_0x17010d(0x82)],'unitId':this[_0x17010d(0xa9)]});}['remove'](){var _0x477e2b=_0x4209fb;return this[_0x477e2b(0x7f)]['get'](_0x2e2f73)[_0x477e2b(0xb3)](_0x55ebcc['id'],{'blockId':this['_blockId'],'unitId':this[_0x477e2b(0xa9)]});}[_0x4209fb(0x8f)](){var _0x3392dd=_0x4209fb,_0x132f40;return((_0x132f40=this[_0x3392dd(0xb7)]()['body'])==null||(_0x132f40=_0x132f40[_0x3392dd(0x95)])==null?void 0x0:_0x132f40['find'](_0x5f1638=>_0x5f1638[_0x3392dd(0xaf)]===this[_0x3392dd(0x82)]&&_0x5f1638[_0x3392dd(0x96)]===_0x5c0ff0['CODE']))??null;}[_0x4209fb(0xb7)](){var _0x432996=_0x4209fb;return this[_0x432996(0x8e)][_0x432996(0x79)]();}};b=y([v(0x2,_0x5e7b99(_0x4fb7a2))],b);function x(_0x42ddf0){var _0xe2e7fd=_0x4209fb;return Array['from'](_0x42ddf0)[_0xe2e7fd(0x9d)](_0x340a95=>_0x340a95===_0x5e04d0[_0xe2e7fd(0x9b)]?'\x0a':_0x340a95)[_0xe2e7fd(0xa2)](_0x4b1d62=>_0x4b1d62!==_0x5e04d0[_0xe2e7fd(0xa7)]&&_0x4b1d62!==_0x5e04d0[_0xe2e7fd(0x85)]&&_0x4b1d62!==_0x5e04d0[_0xe2e7fd(0x8a)])[_0xe2e7fd(0x89)]('')[_0xe2e7fd(0x7c)](/\n$/,'');}var S=class extends _0x4bdb7f{[_0x4209fb(0x99)](){var _0x2f52eb=_0x4209fb;return this[_0x2f52eb(0x91)]()[_0x2f52eb(0xa2)](_0x3718e3=>_0x3718e3[_0x2f52eb(0x96)]===_0x5c0ff0[_0x2f52eb(0xa0)])[_0x2f52eb(0x9d)](_0x30e86b=>this[_0x2f52eb(0xa8)](_0x30e86b[_0x2f52eb(0xaf)]));}[_0x4209fb(0xae)](_0x57e37e){var _0x4c4fab=_0x4209fb;return this[_0x4c4fab(0x91)]()[_0x4c4fab(0x9c)](_0x30b993=>_0x30b993[_0x4c4fab(0xaf)]===_0x57e37e&&_0x30b993['blockType']===_0x5c0ff0[_0x4c4fab(0xa0)])?this['_createFDocumentCode'](_0x57e37e):null;}[_0x4209fb(0x93)](_0x122e6f){var _0x593815=_0x4209fb;let _0x1ee4dc=this[_0x593815(0x91)]()[_0x593815(0x80)](_0x202437=>_0x202437[_0x593815(0x96)]===_0x5c0ff0[_0x593815(0xa0)]&&_0x202437[_0x593815(0x92)]<=_0x122e6f&&_0x122e6f<=_0x202437[_0x593815(0x98)]);return _0x1ee4dc?this[_0x593815(0xa8)](_0x1ee4dc[_0x593815(0xaf)]):null;}[_0x4209fb(0x78)](_0x1e04d3){var _0x1317a1=_0x4209fb;return this[_0x1317a1(0xa6)](_0x1e04d3)[0x0]??null;}['findCodes'](_0x3a66c6){var _0x659b51=_0x4209fb;let _0xecbc26=typeof _0x3a66c6==_0x659b51(0x9f)?{'text':_0x3a66c6}:_0x3a66c6;return this[_0x659b51(0x99)]()[_0x659b51(0xa2)](_0x1f02a6=>!(_0xecbc26[_0x659b51(0xaf)]&&_0x1f02a6['getId']()!==_0xecbc26[_0x659b51(0xaf)]||_0xecbc26[_0x659b51(0xa4)]&&!_0x1f02a6['getText']()[_0x659b51(0x7e)](_0xecbc26[_0x659b51(0xa4)])));}[_0x4209fb(0xac)](_0x4db6ae={},_0x332ad3={}){var _0x44825b=_0x4209fb;let _0x13e318=this[_0x44825b(0x7f)][_0x44825b(0xb8)](_0x2e2f73),_0x19b469=_0x164a0a(_0x4db6ae)?{..._0x332ad3,..._0x4db6ae['getRange']()}:_0x4db6ae,_0x4f72fd=_0x19b469[_0x44825b(0xaf)]??_0x267fa2(0x6);return _0x13e318['syncExecuteCommand'](_0x31a8af['id'],{..._0x19b469,'blockId':_0x4f72fd,'unitId':this[_0x44825b(0xa5)]()})?this[_0x44825b(0xae)](_0x4f72fd):null;}[_0x4209fb(0x91)](){var _0x4c6b5e=_0x4209fb,_0x2524f1;return((_0x2524f1=this['save']()[_0x4c6b5e(0x81)])==null?void 0x0:_0x2524f1[_0x4c6b5e(0x95)])??[];}[_0x4209fb(0xa8)](_0xf3d45a){var _0x9521f0=_0x4209fb;return this[_0x9521f0(0x7f)][_0x9521f0(0x77)](b,this,_0xf3d45a);}};_0x4bdb7f[_0x4209fb(0x9e)](S);export{b as FDocumentCode};