@univerjs-pro/docs-code 1.0.0-alpha.3 → 1.0.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +5 -5
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x44848c=_0x2b86;(function(_0x2e2ed8,_0x3155ce){const _0xb2ba41=_0x2b86,_0x461920=_0x2e2ed8();while(!![]){try{const _0x4e6558=-parseInt(_0xb2ba41(0xa6))/0x1+parseInt(_0xb2ba41(0xae))/0x2*(parseInt(_0xb2ba41(0xef))/0x3)+-parseInt(_0xb2ba41(0x100))/0x4+-parseInt(_0xb2ba41(0xbf))/0x5*(-parseInt(_0xb2ba41(0xc8))/0x6)+parseInt(_0xb2ba41(0xd8))/0x7*(parseInt(_0xb2ba41(0xee))/0x8)+parseInt(_0xb2ba41(0x7c))/0x9+parseInt(_0xb2ba41(0xc5))/0xa*(-parseInt(_0xb2ba41(0xd9))/0xb);if(_0x4e6558===_0x3155ce)break;else _0x461920['push'](_0x461920['shift']());}catch(_0x519da8){_0x461920['push'](_0x461920['shift']());}}}(_0x36fb,0x7d801));import{BuildTextUtils as _0x2aa63d,CommandType as _0x2f4978,DataStreamTreeTokenType as _0x272a0f,DependentOn as _0x1c14e5,Disposable as _0x7a2bfc,DocumentBlockRangeType as _0x45cc53,ICommandService as _0x10119a,IConfigService as _0x1d5c59,IResourceManagerService as _0x23d35f,IUniverInstanceService as _0x228d50,Inject as _0x163407,Injector as _0x445227,JSONX as _0x2d3193,Plugin as _0x495660,TextX as _0x11e4b5,UniverInstanceType as _0x108364,containsInteriorInsertionOffset as _0x50cd86,containsStreamIndex as _0x33e1b3,createParagraphId as _0x2aebf8,generateRandomId as _0x4842c7,getBlockRangeInterval as _0x3fa12e,getBodySliceForTextXAction as _0x50fffd,getParagraphContentStartOffset as _0x4fb420,getParagraphContentStartOffsets as _0x2a5ac0,getParagraphFollowingBlockOffset as _0x491f6d,getSingleDataStreamChange as _0x168f93,intersectsOperationalIntervals as _0x457fb0,merge as _0x55c09c,shiftExclusiveRangeOnDelete as _0x242fdb,shiftExclusiveRangeOnInsert as _0x4cf68,shiftInclusiveRangeOnDelete as _0x28b2df,shiftInclusiveRangeOnInsert as _0x30604c}from'@univerjs/core';import{DocContentInsertService as _0x22ba41,DocSelectionManagerService as _0x3a7722,RichTextEditingMutation as _0x28d3f9,UniverDocsPlugin as _0x4d0ee5,isHeaderFooterSelection as _0x452170}from'@univerjs/docs';import{Subject as _0x500c1a}from'rxjs';import{UniverLicensePlugin as _0x355b25}from'@univerjs-pro/license';const be={'language':'javascript','showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function y(_0x6ca718){return{...be,..._0x6ca718};}function b(_0x3a3c41){const _0x2ed787=_0x2b86;var _0x459190;let _0x2ea3e6=(_0x459190=_0x3a3c41==null?void 0x0:_0x3a3c41[_0x2ed787(0xb7)])==null?{}:_0x459190;return{'codes':Object[_0x2ed787(0xe9)](Object['entries'](_0x2ea3e6)[_0x2ed787(0x108)](([_0x489708,_0x18fbbb])=>[_0x489708,y(_0x18fbbb)]))};}function x(_0x192a4d,_0xf8f51c,_0x4ff642){const _0x161177=_0x2b86;let _0x29ca68=b(_0x192a4d);return _0x29ca68[_0x161177(0xb7)][_0xf8f51c]=y({..._0x29ca68[_0x161177(0xb7)][_0xf8f51c],..._0x4ff642}),_0x29ca68;}function S(_0x571bcc,_0x3505a5){const _0x19d81f=_0x2b86;let _0x33ad57=b(_0x571bcc);return delete _0x33ad57[_0x19d81f(0xb7)][_0x3505a5],_0x33ad57;}const xe=_0x44848c(0xa8);var C=class extends Error{constructor(_0x1e82a4=_0x44848c(0xc1)){super(_0x1e82a4);}};function Se(_0x40053f){const _0x568947=_0x44848c;var _0x3dc9cc,_0x487325,_0x23823e;let _0xa92936=T(_0x40053f[_0x568947(0x7d)]),_0x2a4971=D(_0xa92936),_0x56d492=we(_0x40053f['startOffset'],_0x40053f['endOffset']),_0x46c524=_0x56d492?(_0x3dc9cc=_0x2a4971[_0x568947(0x104)])==null?void 0x0:_0x3dc9cc[_0x568947(0xea)](_0x6aa186=>{const _0x568a57=_0x568947;let _0x42d121=_0x3fa12e(_0x6aa186);return _0x42d121[_0x568a57(0xd4)]===_0x56d492['startOffset']&&_0x42d121[_0x568a57(0x83)]===_0x56d492['endOffset'];}):void 0x0,{startOffset:_0x2f64fa,endOffset:_0x3a0da8}=_0x46c524?_0x56d492:ze(_0x2a4971,_0x40053f[_0x568947(0xd4)],_0x40053f[_0x568947(0x83)],_0x40053f[_0x568947(0xda)]);if(!_0x46c524&&Te(_0x2a4971,_0x2f64fa,_0x3a0da8))throw new C(_0x568947(0xf0));let _0x7019ca=He(_0x2a4971,_0x2f64fa,_0x3a0da8),_0x1483a8=(_0x487325=_0x46c524==null?void 0x0:_0x46c524[_0x568947(0xc9)])==null?_0x40053f[_0x568947(0xc9)]:_0x487325,_0x59b12f=x(_0x40053f['metadata'],_0x1483a8,{...be,..._0x40053f[_0x568947(0xb2)]});if(_0x46c524)return _0x46c524[_0x568947(0xc0)]=_0x45cc53[_0x568947(0x10f)],Ce(_0x2a4971,_0x2f64fa,_0x3a0da8),Pe(_0x2a4971,_0x2f64fa,_0x3a0da8,_0x7019ca),A(_0x2a4971,_0x46c524),{'nextDocumentData':_0xa92936,'nextMetadata':_0x59b12f,'cursorOffset':_0x2f64fa+0x1};if(_0x2f64fa===_0x3a0da8){var _0x534edd,_0x273867;let _0x36f723=''+_0x272a0f[_0x568947(0xcb)]+_0x272a0f['PARAGRAPH']+_0x272a0f[_0x568947(0xdd)];j(_0x2a4971,_0x2f64fa,_0x36f723,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x2aebf8(new Set((_0x534edd=_0x2a4971[_0x568947(0xd3)])==null?void 0x0:_0x534edd[_0x568947(0x108)](_0x36aeed=>_0x36aeed[_0x568947(0x10e)]))),'paragraphStyle':Ne(!0x0,!0x0,_0x7019ca)}],'blockRanges':[{'blockId':_0x1483a8,'blockType':_0x45cc53[_0x568947(0x10f)],'startIndex':0x0,'endIndex':_0x36f723[_0x568947(0x112)]-0x1}]});let _0x5f2a12=(_0x273867=_0x2a4971['blockRanges'])==null?void 0x0:_0x273867[_0x568947(0xea)](_0x27ff3d=>_0x27ff3d['blockId']===_0x1483a8);return _0x5f2a12&&A(_0x2a4971,_0x5f2a12),{'nextDocumentData':_0xa92936,'nextMetadata':_0x59b12f,'cursorOffset':_0x2f64fa+0x1};}j(_0x2a4971,_0x3a0da8,_0x272a0f[_0x568947(0xdd)]),j(_0x2a4971,_0x2f64fa,_0x272a0f['BLOCK_START']),Pe(_0x2a4971,_0x2f64fa,_0x3a0da8+0x1,_0x7019ca);let _0x4ecc09={'blockId':_0x1483a8,'blockType':_0x45cc53[_0x568947(0x10f)],'startIndex':_0x2f64fa,'endIndex':_0x3a0da8+0x1};return _0x2a4971[_0x568947(0x104)]=[...(_0x23823e=_0x2a4971[_0x568947(0x104)])==null?[]:_0x23823e,_0x4ecc09][_0x568947(0x87)]((_0x34a9c5,_0x2c48f3)=>_0x34a9c5[_0x568947(0xa2)]-_0x2c48f3[_0x568947(0xa2)]),A(_0x2a4971,_0x4ecc09),{'nextDocumentData':_0xa92936,'nextMetadata':_0x59b12f,'cursorOffset':_0x2f64fa+0x1};}function Ce(_0x14b509,_0x532915,_0x4ff522){const _0x2065fa=_0x44848c;var _0x43739a;((_0x43739a=_0x14b509[_0x2065fa(0xd3)])==null?[]:_0x43739a)[_0x2065fa(0x89)](_0x30b50a=>_0x30b50a[_0x2065fa(0xa2)]>_0x532915&&_0x30b50a[_0x2065fa(0xa2)]<_0x4ff522)[_0x2065fa(0x109)](_0xd465ab=>{const _0xbcc94b=_0x2065fa;var _0x5058f4;let _0x2030f9={...(_0x5058f4=_0xd465ab['paragraphStyle'])==null?{}:_0x5058f4};delete _0x2030f9['spaceAbove'],delete _0x2030f9[_0xbcc94b(0xe6)],_0xd465ab['paragraphStyle']=_0x2030f9;});}function we(_0xd46e92,_0x3f70ad){return _0xd46e92==null||_0x3f70ad==null||_0xd46e92===_0x3f70ad?null:{'startOffset':Math['min'](_0xd46e92,_0x3f70ad),'endOffset':Math['max'](_0xd46e92,_0x3f70ad)};}function Te(_0xede0bf,_0x448b00,_0x3728fb){const _0x431334=_0x44848c;var _0x20ba8d;return((_0x20ba8d=_0xede0bf[_0x431334(0x104)])==null?[]:_0x20ba8d)[_0x431334(0x8a)](_0x31f125=>{let _0x30ef4c=_0x3fa12e(_0x31f125);return _0x448b00===_0x3728fb?_0x50cd86(_0x30ef4c,_0x448b00):_0x457fb0(_0x30ef4c,{'startOffset':_0x448b00,'endOffset':_0x3728fb});});}function Ee(_0x549f41){const _0x3ee1f9=_0x44848c;return{'nextDocumentData':T(_0x549f41[_0x3ee1f9(0x7d)]),'nextMetadata':x(_0x549f41[_0x3ee1f9(0xcd)],_0x549f41['blockId'],_0x549f41['config']),'cursorOffset':0x0};}function w(_0xced359){const _0x3dbaa2=_0x44848c;let _0x54d3ed=T(_0xced359[_0x3dbaa2(0x7d)]),_0x1650b3=D(_0x54d3ed),_0x13f3f1=Ae(_0x1650b3,_0xced359[_0x3dbaa2(0xc9)]);if(!_0x13f3f1)return null;let _0x35aacd=Le(_0x1650b3,_0x13f3f1);return{'nextDocumentData':_0x54d3ed,'nextMetadata':S(_0xced359['metadata'],_0xced359[_0x3dbaa2(0xc9)]),'cursorOffset':_0x35aacd};}function De(_0x4bd561){const _0x4314d9=_0x44848c;var _0x45d425;let _0x528969=T(_0x4bd561[_0x4314d9(0x7d)]),_0x587218=D(_0x528969),_0x345e4b=Ae(_0x587218,_0x4bd561[_0x4314d9(0xc9)]);if(!_0x345e4b)return null;let _0x5dcd6f=_0x3fa12e(_0x345e4b);return M(_0x587218,_0x5dcd6f['startOffset'],_0x5dcd6f['endOffset']),_0x587218['blockRanges']=(_0x45d425=_0x587218[_0x4314d9(0x104)])==null?void 0x0:_0x45d425[_0x4314d9(0x89)](_0x440875=>_0x440875['blockId']!==_0x4bd561[_0x4314d9(0xc9)]),{'nextDocumentData':_0x528969,'nextMetadata':S(_0x4bd561['metadata'],_0x4bd561[_0x4314d9(0xc9)]),'cursorOffset':_0x345e4b[_0x4314d9(0xa2)]};}function Oe(_0x427c95){const _0x28967f=_0x44848c;let _0x29f7a1=T(_0x427c95[_0x28967f(0x7d)]),_0x6e6451=D(_0x29f7a1),_0x5227aa=Me(_0x6e6451,_0x427c95[_0x28967f(0xc2)]);return _0x5227aa&&ke(_0x29f7a1,_0x6e6451,_0x5227aa,_0x427c95['cursorOffset'],_0x427c95[_0x28967f(0xed)])||null;}function ke(_0x4b8865,_0x56d693,_0x2c9ec6,_0x519a86,_0x88b0db){const _0x51f3a0=_0x44848c;let _0x481f94=Je(_0x56d693,_0x2c9ec6,_0x519a86,_0x88b0db);if(!_0x481f94)return null;let _0x112b22=_0x481f94['endTokenOffset']-0x1;return M(_0x56d693,_0x481f94[_0x51f3a0(0xb8)][_0x51f3a0(0xa2)],_0x481f94['paragraph'][_0x51f3a0(0xa2)]+0x1),{'nextDocumentData':_0x4b8865,'cursorOffset':_0x112b22};}function Ae(_0x1f1ad6,_0x35c581){const _0x534150=_0x44848c;var _0x32fe89;return _0x1f1ad6==null||(_0x32fe89=_0x1f1ad6['blockRanges'])==null?void 0x0:_0x32fe89[_0x534150(0xea)](_0x24e8e0=>_0x24e8e0[_0x534150(0xc0)]===_0x45cc53['CODE']&&_0x24e8e0['blockId']===_0x35c581);}function je(_0x22a5af){const _0x36bbaa=_0x44848c;var _0x52ce38;let _0x289c0d=_0x22a5af[_0x36bbaa(0x7d)][_0x36bbaa(0xf3)];if(!_0x289c0d)return!0x1;let _0x14afd6=_0x22a5af['direction']===_0x36bbaa(0xde)?_0x22a5af['cursorOffset']-0x1:_0x22a5af[_0x36bbaa(0xc2)],_0x4f0501=_0x22a5af[_0x36bbaa(0xf1)]===_0x36bbaa(0xeb)?_0x22a5af['cursorOffset']+0x1:_0x14afd6;return((_0x52ce38=_0x289c0d[_0x36bbaa(0x104)])==null?[]:_0x52ce38)['some'](_0x2507a0=>_0x2507a0[_0x36bbaa(0xc0)]===_0x45cc53[_0x36bbaa(0x10f)]?_0x14afd6===_0x2507a0[_0x36bbaa(0xa2)]||_0x14afd6===_0x2507a0[_0x36bbaa(0xad)]||_0x4f0501===_0x2507a0[_0x36bbaa(0xa2)]||_0x4f0501===_0x2507a0[_0x36bbaa(0xad)]:!0x1);}function _0x2b86(_0x106b44,_0x3a6a88){_0x106b44=_0x106b44-0x7b;const _0x36fb94=_0x36fb();let _0x2b86a4=_0x36fb94[_0x106b44];return _0x2b86a4;}function Me(_0x8d24ee,_0x4d0341){const _0x3c5653=_0x44848c;var _0x3f80ef;return(_0x3f80ef=_0x8d24ee[_0x3c5653(0x104)])==null?void 0x0:_0x3f80ef[_0x3c5653(0xea)](_0xe7b08e=>{const _0x22e361=_0x3c5653;let _0x5910ad=k(_0xe7b08e);return _0xe7b08e['blockType']===_0x45cc53[_0x22e361(0x10f)]&&_0xe7b08e[_0x22e361(0xa2)]<=_0x4d0341&&_0x4d0341<=_0x5910ad+0x2;});}function Ne(_0x95d821,_0x3fe9ae,_0x3811c4=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x95d821&&_0x3811c4?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':xe,'fs':0xc}};}function Pe(_0x5a85ea,_0x3a8e76,_0x2e2914,_0x1542c2=!0x1){const _0x3b87f7=_0x44848c;var _0x14706b;let _0x17c524=((_0x14706b=_0x5a85ea[_0x3b87f7(0xd3)])==null?[]:_0x14706b)[_0x3b87f7(0x89)](_0x519e5d=>_0x519e5d[_0x3b87f7(0xa2)]>_0x3a8e76&&_0x519e5d['startIndex']<_0x2e2914);_0x17c524[_0x3b87f7(0x109)]((_0x53455f,_0x27aab8)=>{const _0x1a2176=_0x3b87f7;var _0x8873cc;_0x53455f[_0x1a2176(0x97)]={...(_0x8873cc=_0x53455f[_0x1a2176(0x97)])==null?{}:_0x8873cc,...Ne(_0x27aab8===0x0,_0x27aab8===_0x17c524[_0x1a2176(0x112)]-0x1,_0x1542c2)};});}function Fe(_0x3bb403){const _0x2df59d=_0x44848c;var _0x260162,_0x4788dd;let _0x373730={..._0x3bb403==null?{}:_0x3bb403};return delete _0x373730['indentEnd'],delete _0x373730['indentStart'],delete _0x373730[_0x2df59d(0x90)],delete _0x373730[_0x2df59d(0xe6)],((_0x260162=_0x373730[_0x2df59d(0xb5)])==null?void 0x0:_0x260162['ff'])===xe&&((_0x4788dd=_0x373730[_0x2df59d(0xb5)])==null?void 0x0:_0x4788dd['fs'])===0xc&&delete _0x373730[_0x2df59d(0xb5)],_0x373730;}function Ie(_0x3d8b6b,_0x1d1e9a){const _0x119781=_0x44848c;var _0xeed05c;let _0x628833=k(_0x1d1e9a);return((_0xeed05c=_0x3d8b6b['paragraphs'])==null?[]:_0xeed05c)[_0x119781(0x89)](_0x43cb5b=>_0x43cb5b[_0x119781(0xa2)]>_0x1d1e9a[_0x119781(0xa2)]&&_0x43cb5b[_0x119781(0xa2)]<_0x628833);}function Le(_0x35e377,_0x3270fa){const _0x5989ef=_0x44848c;var _0x2339ba;let _0x324a29=k(_0x3270fa);return Ie(_0x35e377,_0x3270fa)['forEach'](_0x301245=>{const _0x374b59=_0x2b86;_0x301245[_0x374b59(0x97)]=Fe(_0x301245[_0x374b59(0x97)]);}),M(_0x35e377,_0x324a29,_0x324a29+0x1),M(_0x35e377,_0x3270fa[_0x5989ef(0xa2)],_0x3270fa['startIndex']+0x1),_0x35e377[_0x5989ef(0x104)]=(_0x2339ba=_0x35e377['blockRanges'])==null?void 0x0:_0x2339ba[_0x5989ef(0x89)](_0x218680=>_0x218680[_0x5989ef(0xc9)]!==_0x3270fa['blockId']),_0x3270fa[_0x5989ef(0xa2)];}function T(_0x12bdc1){const _0x1a7628=_0x44848c;return{..._0x12bdc1,'body':_0x12bdc1[_0x1a7628(0xf3)]?Re(_0x12bdc1['body']):_0x12bdc1[_0x1a7628(0xf3)]};}function Re(_0x24a94f){const _0x5ed366=_0x44848c;var _0x41405d,_0x2dfcf1,_0x2b83ba,_0x3cbb9b,_0x2608aa,_0x38f4b,_0x18396f,_0x1ce3f3,_0xaddfa1;return{..._0x24a94f,'paragraphs':(_0x41405d=_0x24a94f[_0x5ed366(0xd3)])==null?void 0x0:_0x41405d[_0x5ed366(0x108)](_0x11ff2e=>({..._0x11ff2e,'bullet':E(_0x11ff2e[_0x5ed366(0xac)]),'paragraphStyle':E(_0x11ff2e['paragraphStyle'])})),'sectionBreaks':(_0x2dfcf1=_0x24a94f[_0x5ed366(0xf2)])==null?void 0x0:_0x2dfcf1[_0x5ed366(0x108)](_0x50241f=>({..._0x50241f})),'textRuns':(_0x2b83ba=_0x24a94f[_0x5ed366(0xb4)])==null?void 0x0:_0x2b83ba[_0x5ed366(0x108)](_0x5397ae=>({..._0x5397ae})),'tables':(_0x3cbb9b=_0x24a94f['tables'])==null?void 0x0:_0x3cbb9b[_0x5ed366(0x108)](_0x3487ef=>({..._0x3487ef})),'columnGroups':(_0x2608aa=_0x24a94f[_0x5ed366(0x106)])==null?void 0x0:_0x2608aa[_0x5ed366(0x108)](_0x1ecf1c=>{const _0x5bf908=_0x5ed366;var _0x1f9e3d;return{..._0x1ecf1c,'columns':(_0x1f9e3d=_0x1ecf1c[_0x5bf908(0xfc)])==null?void 0x0:_0x1f9e3d[_0x5bf908(0x108)](_0xd271b4=>E(_0xd271b4))};}),'blockRanges':(_0x38f4b=_0x24a94f[_0x5ed366(0x104)])==null?void 0x0:_0x38f4b[_0x5ed366(0x108)](_0x53cd0f=>({..._0x53cd0f})),'customRanges':(_0x18396f=_0x24a94f[_0x5ed366(0xe5)])==null?void 0x0:_0x18396f['map'](_0x370577=>({..._0x370577})),'customDecorations':(_0x1ce3f3=_0x24a94f[_0x5ed366(0xd7)])==null?void 0x0:_0x1ce3f3[_0x5ed366(0x108)](_0x5453c3=>({..._0x5453c3})),'customBlocks':(_0xaddfa1=_0x24a94f[_0x5ed366(0x99)])==null?void 0x0:_0xaddfa1[_0x5ed366(0x108)](_0x25cfd5=>({..._0x25cfd5}))};}function E(_0x5a7a19){const _0x13a983=_0x44848c;return Array[_0x13a983(0x101)](_0x5a7a19)?_0x5a7a19[_0x13a983(0x108)](_0x590cf2=>E(_0x590cf2)):!_0x5a7a19||typeof _0x5a7a19!=_0x13a983(0x9f)?_0x5a7a19:Object[_0x13a983(0xe9)](Object[_0x13a983(0xb1)](_0x5a7a19)[_0x13a983(0x108)](([_0x468a16,_0x2ac242])=>[_0x468a16,E(_0x2ac242)]));}function D(_0xfd151e){const _0x571c8e=_0x44848c;if(!_0xfd151e[_0x571c8e(0xf3)])throw Error(_0x571c8e(0x84));return _0xfd151e[_0x571c8e(0xf3)];}function ze(_0x180835,_0x1f4f4c,_0x2d1eec,_0x25989f='convert-paragraph'){const _0x2e9632=_0x44848c;if(_0x1f4f4c==null||_0x2d1eec==null){let _0xc2e7db=Ve(_0x180835);return{'startOffset':_0xc2e7db,'endOffset':_0xc2e7db};}let _0x34c5b4=Math[_0x2e9632(0x96)](_0x1f4f4c,_0x2d1eec),_0x5445c1=Math[_0x2e9632(0xfd)](_0x1f4f4c,_0x2d1eec),_0x8c7f3d=Ke(_0x180835,_0x34c5b4,_0x5445c1);return _0x34c5b4===_0x5445c1?_0x25989f===_0x2e9632(0x8e)?{'startOffset':_0x34c5b4,'endOffset':_0x5445c1}:Be(_0x180835,_0x34c5b4,_0x8c7f3d):Ue(_0x180835,_0x34c5b4,_0x5445c1,_0x8c7f3d);}function Be(_0x3366f7,_0x253cb2,_0x11e17){const _0x2055a8=_0x44848c;let _0x5640e8=We(_0x3366f7,_0x253cb2);if(_0x5640e8){let _0x37c2e2=O(_0x3366f7,_0x5640e8,_0x11e17);if(_0x37c2e2<_0x5640e8[_0x2055a8(0xa2)])return{'startOffset':_0x37c2e2,'endOffset':_0x11e17?Math[_0x2055a8(0x96)](_0x5640e8['startIndex']+0x1,_0x11e17['endOffset']):_0x5640e8['startIndex']+0x1};}let _0x1ad0bf=_0x253cb2===0x0&&_0x3366f7[_0x2055a8(0x114)][0x0]===_0x272a0f['PARAGRAPH']?0x1:_0x253cb2;return{'startOffset':_0x1ad0bf,'endOffset':_0x1ad0bf};}function Ve(_0x4937ab){const _0x18f8de=_0x44848c;return _0x4937ab[_0x18f8de(0x114)][_0x18f8de(0x119)](_0x272a0f[_0x18f8de(0x116)])?Math[_0x18f8de(0xfd)](0x0,_0x4937ab[_0x18f8de(0x114)]['length']-0x1):_0x4937ab[_0x18f8de(0x114)][_0x18f8de(0x112)];}function He(_0x3bd8dd,_0x12ef98,_0x48de42){const _0x4c41b0=_0x44848c;var _0xfdd18b;let _0x254835=Math['min'](_0x12ef98,_0x48de42),_0x4137bb=Math['max'](_0x12ef98,_0x48de42);return!!((_0xfdd18b=_0x3bd8dd[_0x4c41b0(0xfb)])!=null&&_0xfdd18b[_0x4c41b0(0x8a)](_0x3da091=>_0x254835>_0x3da091[_0x4c41b0(0xa2)]&&_0x254835<_0x3da091[_0x4c41b0(0xad)]||_0x4137bb>_0x3da091[_0x4c41b0(0xa2)]&&_0x4137bb<_0x3da091[_0x4c41b0(0xad)]||_0x254835<=_0x3da091[_0x4c41b0(0xa2)]&&_0x4137bb>=_0x3da091[_0x4c41b0(0xad)]));}function Ue(_0x4eaf9d,_0x3d64e1,_0x325673,_0x3340ef){const _0x4f59d5=_0x44848c;var _0x4b3e56,_0x31c271;let _0x5a6179=[...(_0x4b3e56=_0x4eaf9d[_0x4f59d5(0xd3)])==null?[]:_0x4b3e56][_0x4f59d5(0x87)]((_0x466e65,_0x3c5777)=>_0x466e65[_0x4f59d5(0xa2)]-_0x3c5777['startIndex']),_0x276f3d=_0x2a5ac0(_0x4eaf9d),_0x2e9f40=_0x5a6179['find'](_0x47c731=>O(_0x4eaf9d,_0x47c731,_0x3340ef,_0x276f3d)<=_0x3d64e1&&_0x3d64e1<=_0x47c731[_0x4f59d5(0xa2)]),_0x488598=(_0x31c271=_0x5a6179['find'](_0x62a9a=>_0x62a9a[_0x4f59d5(0xa2)]>=_0x325673-0x1))==null?_0x5a6179[_0x5a6179[_0x4f59d5(0x112)]-0x1]:_0x31c271;return{'startOffset':_0x2e9f40?O(_0x4eaf9d,_0x2e9f40,_0x3340ef,_0x276f3d):_0x3d64e1,'endOffset':_0x488598?Ge(_0x488598,_0x3340ef):_0x325673};}function We(_0x441c53,_0x1ac5ae){const _0x24814a=_0x44848c;var _0x246986;let _0x499ca0=[...(_0x246986=_0x441c53[_0x24814a(0xd3)])==null?[]:_0x246986][_0x24814a(0x87)]((_0x54eff0,_0x35885c)=>_0x54eff0[_0x24814a(0xa2)]-_0x35885c[_0x24814a(0xa2)]),_0x461df8=_0x2a5ac0(_0x441c53);return _0x499ca0[_0x24814a(0xea)](_0x5696d5=>{const _0x3b2ef2=_0x24814a;var _0xcd9d76;return((_0xcd9d76=_0x461df8[_0x3b2ef2(0x7b)](_0x5696d5[_0x3b2ef2(0xa2)]))==null?0x0:_0xcd9d76)<=_0x1ac5ae&&_0x1ac5ae<=_0x5696d5[_0x3b2ef2(0xa2)];});}function O(_0x1fcf5e,_0x5776db,_0x269139,_0x3f47a9){const _0xd48e81=_0x44848c;var _0x5731de;let _0x4ab08c=(_0x5731de=_0x3f47a9==null?void 0x0:_0x3f47a9[_0xd48e81(0x7b)](_0x5776db['startIndex']))==null?_0x4fb420(_0x1fcf5e,_0x5776db):_0x5731de;return _0x269139?Math['max'](_0x4ab08c,_0x269139[_0xd48e81(0xd4)]):_0x4ab08c;}function Ge(_0x2f66db,_0x519003){const _0x5081db=_0x44848c;let _0x4a180b=_0x2f66db[_0x5081db(0xa2)]+0x1;return _0x519003?Math[_0x5081db(0x96)](_0x4a180b,_0x519003['endOffset']):_0x4a180b;}function Ke(_0x50acb8,_0x32b592,_0x1f742e){const _0x2ceb62=_0x44848c;let _0x3b7999=qe(_0x50acb8,_0x32b592),_0x54ac6e=qe(_0x50acb8,_0x32b592===_0x1f742e?_0x1f742e:Math[_0x2ceb62(0xfd)](_0x32b592,_0x1f742e-0x1));if(!(!_0x3b7999&&!_0x54ac6e)){if(!_0x3b7999||!_0x54ac6e||_0x3b7999['startTokenOffset']!==_0x54ac6e[_0x2ceb62(0xd6)]||_0x3b7999[_0x2ceb62(0xa7)]!==_0x54ac6e[_0x2ceb62(0xa7)])throw new C();return _0x3b7999;}}function qe(_0x4728e1,_0x413bc5){const _0x3a4491=_0x44848c;let _0xfc23ed=_0x4728e1[_0x3a4491(0x114)],_0x4527f6=-0x1;for(let _0x5a2fe7=Math['min'](_0x413bc5,_0xfc23ed[_0x3a4491(0x112)]-0x1);_0x5a2fe7>=0x0;_0x5a2fe7--){let _0x6cbd00=_0xfc23ed[_0x5a2fe7];if(_0x6cbd00===_0x272a0f['TABLE_CELL_END'])return;if(_0x6cbd00===_0x272a0f['TABLE_CELL_START']){_0x4527f6=_0x5a2fe7;break;}}if(_0x4527f6<0x0)return;let _0x2e563e=_0xfc23ed[_0x3a4491(0xf5)](_0x272a0f[_0x3a4491(0x9d)],_0x4527f6+0x1);if(!(_0x2e563e<0x0||_0x413bc5<_0x4527f6+0x1||_0x413bc5>_0x2e563e-0x1))return{'startOffset':_0x4527f6+0x1,'endOffset':Math[_0x3a4491(0xfd)](_0x4527f6+0x1,_0x2e563e-0x1),'startTokenOffset':_0x4527f6,'endTokenOffset':_0x2e563e};}function k(_0x19df24){const _0x9df44b=_0x44848c;return _0x3fa12e(_0x19df24)[_0x9df44b(0x83)]-0x1;}function Je(_0x6c02bf,_0x2fcd37,_0x2918c3,_0x45ba6d){const _0x6d0d7e=_0x44848c;var _0x3521b0;let _0x435701=k(_0x2fcd37),_0x4d3cb9=((_0x3521b0=_0x6c02bf[_0x6d0d7e(0xd3)])==null?[]:_0x3521b0)[_0x6d0d7e(0xea)](_0x9881dd=>_0x9881dd[_0x6d0d7e(0xa2)]===_0x435701+0x1);if(!_0x4d3cb9||_0x45ba6d!=null&&_0x4d3cb9['startIndex']!==_0x45ba6d||_0x2918c3!=null&&(_0x2918c3<_0x435701||_0x2918c3>_0x4d3cb9[_0x6d0d7e(0xa2)]+0x1)||_0x6c02bf['dataStream'][_0x4d3cb9[_0x6d0d7e(0xa2)]]!==_0x272a0f['PARAGRAPH'])return null;let _0x14c6c0=_0x4fb420(_0x6c02bf,_0x4d3cb9),_0x12afa8=_0x6c02bf[_0x6d0d7e(0x114)][_0x6d0d7e(0x93)](_0x14c6c0,_0x4d3cb9[_0x6d0d7e(0xa2)]);return Array[_0x6d0d7e(0xbc)](_0x12afa8)[_0x6d0d7e(0xab)](_0x124f0f=>_0x124f0f===_0x272a0f[_0x6d0d7e(0xdd)])?{'paragraph':_0x4d3cb9,'endTokenOffset':_0x435701}:null;}function A(_0x12ee5d,_0x4a45c3){const _0x46e8f8=_0x44848c;var _0x30bf05;let _0x1317df=k(_0x4a45c3),_0x292972=_0x12ee5d['dataStream'][_0x1317df+0x1];_0x292972!==_0x272a0f[_0x46e8f8(0x116)]&&_0x292972!==void 0x0||j(_0x12ee5d,_0x1317df+0x1,_0x272a0f[_0x46e8f8(0xc6)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x2aebf8(new Set((_0x30bf05=_0x12ee5d[_0x46e8f8(0xd3)])==null?void 0x0:_0x30bf05[_0x46e8f8(0x108)](_0x572aa7=>_0x572aa7['paragraphId'])))}]});}function j(_0x1e2df0,_0xd517cc,_0x5301bc,_0x3fee64={}){const _0x5cc9a5=_0x44848c;var _0xd003f5,_0x7adca0;if(_0x5301bc){if(_0x1e2df0[_0x5cc9a5(0x114)]=''+_0x1e2df0[_0x5cc9a5(0x114)][_0x5cc9a5(0x93)](0x0,_0xd517cc)+_0x5301bc+_0x1e2df0[_0x5cc9a5(0x114)][_0x5cc9a5(0x93)](_0xd517cc),Ye(_0x1e2df0,_0xd517cc,_0x5301bc[_0x5cc9a5(0x112)]),(_0xd003f5=_0x3fee64[_0x5cc9a5(0xd3)])!=null&&_0xd003f5['length']){var _0x5e3df0;_0x1e2df0['paragraphs']=[...(_0x5e3df0=_0x1e2df0[_0x5cc9a5(0xd3)])==null?[]:_0x5e3df0,..._0x3fee64[_0x5cc9a5(0xd3)][_0x5cc9a5(0x108)](_0x1f982e=>({..._0x1f982e,'startIndex':_0x1f982e[_0x5cc9a5(0xa2)]+_0xd517cc}))][_0x5cc9a5(0x87)]((_0x5b4b93,_0x530ddf)=>_0x5b4b93[_0x5cc9a5(0xa2)]-_0x530ddf[_0x5cc9a5(0xa2)]);}if((_0x7adca0=_0x3fee64['blockRanges'])!=null&&_0x7adca0[_0x5cc9a5(0x112)]){var _0x399954;_0x1e2df0['blockRanges']=[...(_0x399954=_0x1e2df0['blockRanges'])==null?[]:_0x399954,..._0x3fee64[_0x5cc9a5(0x104)][_0x5cc9a5(0x108)](_0x4d240b=>({..._0x4d240b,'startIndex':_0x4d240b[_0x5cc9a5(0xa2)]+_0xd517cc,'endIndex':_0x4d240b[_0x5cc9a5(0xad)]+_0xd517cc}))][_0x5cc9a5(0x87)]((_0x2fc813,_0xca34e1)=>_0x2fc813[_0x5cc9a5(0xa2)]-_0xca34e1[_0x5cc9a5(0xa2)]);}}}function M(_0x350b50,_0x534630,_0x580f05){const _0x127859=_0x44848c;let _0x3a45b9=_0x580f05-_0x534630;_0x350b50[_0x127859(0x114)]=''+_0x350b50[_0x127859(0x114)]['slice'](0x0,_0x534630)+_0x350b50[_0x127859(0x114)][_0x127859(0x93)](_0x580f05),Xe(_0x350b50,_0x534630,_0x3a45b9);}function Ye(_0x179520,_0x9ae3fe,_0x3fdf78){const _0x442b5a=_0x44848c;_0x179520[_0x442b5a(0xd3)]=N(_0x179520[_0x442b5a(0xd3)],_0x9ae3fe,_0x3fdf78),_0x179520[_0x442b5a(0xf2)]=N(_0x179520[_0x442b5a(0xf2)],_0x9ae3fe,_0x3fdf78),_0x179520[_0x442b5a(0x99)]=N(_0x179520[_0x442b5a(0x99)],_0x9ae3fe,_0x3fdf78),_0x179520[_0x442b5a(0xb4)]=Ze(_0x179520[_0x442b5a(0xb4)],_0x9ae3fe,_0x3fdf78),_0x179520[_0x442b5a(0xfb)]=Qe(_0x179520[_0x442b5a(0xfb)],_0x9ae3fe,_0x3fdf78),_0x179520['columnGroups']=F(_0x179520[_0x442b5a(0x106)],_0x9ae3fe,_0x3fdf78),_0x179520[_0x442b5a(0xe5)]=F(_0x179520[_0x442b5a(0xe5)],_0x9ae3fe,_0x3fdf78),_0x179520[_0x442b5a(0xd7)]=F(_0x179520[_0x442b5a(0xd7)],_0x9ae3fe,_0x3fdf78),_0x179520['blockRanges']=F(_0x179520[_0x442b5a(0x104)],_0x9ae3fe,_0x3fdf78);}function Xe(_0x3e1122,_0x5c9cdc,_0x87823b){const _0x377159=_0x44848c;var _0x4ba97f,_0x444785;_0x3e1122['paragraphs']=P(_0x3e1122[_0x377159(0xd3)],_0x5c9cdc,_0x87823b),_0x3e1122['sectionBreaks']=P(_0x3e1122[_0x377159(0xf2)],_0x5c9cdc,_0x87823b),_0x3e1122[_0x377159(0x99)]=P(_0x3e1122[_0x377159(0x99)],_0x5c9cdc,_0x87823b),_0x3e1122[_0x377159(0xb4)]=(_0x4ba97f=$e((_0x444785=_0x3e1122[_0x377159(0xb4)])==null?void 0x0:_0x444785['map'](_0x389722=>({..._0x389722,'startIndex':_0x389722['st'],'endIndex':_0x389722['ed']})),_0x5c9cdc,_0x87823b))==null?void 0x0:_0x4ba97f[_0x377159(0x108)](_0x26f9a9=>{let {startIndex:_0x43a07b,endIndex:_0xaa1497,..._0x4f4a92}=_0x26f9a9;return{..._0x4f4a92,'st':_0x43a07b,'ed':_0xaa1497};}),_0x3e1122[_0x377159(0xfb)]=$e(_0x3e1122[_0x377159(0xfb)],_0x5c9cdc,_0x87823b),_0x3e1122[_0x377159(0x106)]=I(_0x3e1122[_0x377159(0x106)],_0x5c9cdc,_0x87823b),_0x3e1122[_0x377159(0xe5)]=I(_0x3e1122['customRanges'],_0x5c9cdc,_0x87823b),_0x3e1122['customDecorations']=I(_0x3e1122[_0x377159(0xd7)],_0x5c9cdc,_0x87823b),_0x3e1122[_0x377159(0x104)]=I(_0x3e1122['blockRanges'],_0x5c9cdc,_0x87823b);}function N(_0x8a9766,_0x1380ee,_0x55a8c9){const _0x576510=_0x44848c;return _0x8a9766==null?void 0x0:_0x8a9766[_0x576510(0x108)](_0x10affe=>_0x10affe['startIndex']>=_0x1380ee?{..._0x10affe,'startIndex':_0x10affe[_0x576510(0xa2)]+_0x55a8c9}:_0x10affe);}function P(_0x20938d,_0x5b671e,_0x1dbe2a){const _0x7c26d2=_0x44848c;let _0x2acc43=_0x5b671e+_0x1dbe2a;return _0x20938d==null?void 0x0:_0x20938d[_0x7c26d2(0x108)](_0x56ee6f=>_0x56ee6f[_0x7c26d2(0xa2)]>=_0x5b671e&&_0x56ee6f[_0x7c26d2(0xa2)]<_0x2acc43?null:_0x56ee6f['startIndex']>=_0x2acc43?{..._0x56ee6f,'startIndex':_0x56ee6f[_0x7c26d2(0xa2)]-_0x1dbe2a}:_0x56ee6f)[_0x7c26d2(0x89)](_0x429c14=>_0x429c14!=null);}function Ze(_0x4b5ad7,_0x566212,_0x1a9c0a){const _0xd77172=_0x44848c;return _0x4b5ad7==null?void 0x0:_0x4b5ad7[_0xd77172(0x108)](_0x3f0945=>_0x3f0945['st']>=_0x566212?{..._0x3f0945,'st':_0x3f0945['st']+_0x1a9c0a,'ed':_0x3f0945['ed']+_0x1a9c0a}:_0x3f0945['ed']>_0x566212?{..._0x3f0945,'ed':_0x3f0945['ed']+_0x1a9c0a}:_0x3f0945);}function F(_0x49f6ed,_0x13f033,_0x419612){const _0x4f3d2e=_0x44848c;return _0x49f6ed==null?void 0x0:_0x49f6ed[_0x4f3d2e(0x108)](_0x41e204=>_0x30604c(_0x41e204,_0x13f033,_0x419612));}function Qe(_0x31aa05,_0x1497b5,_0x129d41){return _0x31aa05==null?void 0x0:_0x31aa05['map'](_0x37e12d=>_0x4cf68(_0x37e12d,_0x1497b5,_0x129d41));}function I(_0x4a65f6,_0x4c1c18,_0x5962b6){const _0x288f0d=_0x44848c;return _0x4a65f6==null?void 0x0:_0x4a65f6[_0x288f0d(0x108)](_0x5da08c=>_0x28b2df(_0x5da08c,_0x4c1c18,_0x5962b6))[_0x288f0d(0x89)](_0xcb50fd=>_0xcb50fd!=null);}function $e(_0x5e1324,_0x158946,_0x656914){const _0x58d3b2=_0x44848c;return _0x5e1324==null?void 0x0:_0x5e1324[_0x58d3b2(0x108)](_0x55aec5=>_0x242fdb(_0x55aec5,_0x158946,_0x656914))['filter'](_0x2cc388=>_0x2cc388!=null);}function L(_0xd35733){'@babel/helpers - typeof';const _0x9bb945=_0x44848c;return L=typeof Symbol=='function'&&typeof Symbol[_0x9bb945(0xd1)]==_0x9bb945(0xdb)?function(_0x53aa59){return typeof _0x53aa59;}:function(_0x3c0d21){const _0xa06401=_0x9bb945;return _0x3c0d21&&typeof Symbol==_0xa06401(0xf8)&&_0x3c0d21[_0xa06401(0xb0)]===Symbol&&_0x3c0d21!==Symbol[_0xa06401(0x7e)]?_0xa06401(0xdb):typeof _0x3c0d21;},L(_0xd35733);}function et(_0x342dbc,_0x13e97c){const _0x4262bb=_0x44848c;if(L(_0x342dbc)!='object'||!_0x342dbc)return _0x342dbc;var _0x44fe32=_0x342dbc[Symbol[_0x4262bb(0xdc)]];if(_0x44fe32!==void 0x0){var _0x4a6b5=_0x44fe32[_0x4262bb(0xe0)](_0x342dbc,_0x13e97c||_0x4262bb(0xbd));if(L(_0x4a6b5)!=_0x4262bb(0x9f))return _0x4a6b5;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x13e97c===_0x4262bb(0x115)?String:Number)(_0x342dbc);}function tt(_0x3a6b60){const _0xd6c046=_0x44848c;var _0x5a7d9e=et(_0x3a6b60,'string');return L(_0x5a7d9e)==_0xd6c046(0xdb)?_0x5a7d9e:_0x5a7d9e+'';}function R(_0x2a2dd9,_0x31e1ab,_0xce998f){const _0x10b4ab=_0x44848c;return(_0x31e1ab=tt(_0x31e1ab))in _0x2a2dd9?Object[_0x10b4ab(0x107)](_0x2a2dd9,_0x31e1ab,{'value':_0xce998f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2a2dd9[_0x31e1ab]=_0xce998f,_0x2a2dd9;}var z=class extends _0x7a2bfc{constructor(..._0x4f55f3){const _0x43fc9b=_0x44848c;super(..._0x4f55f3),R(this,_0x43fc9b(0xa5),new Map()),R(this,'_change$',new _0x500c1a()),R(this,_0x43fc9b(0xba),this['_change$'][_0x43fc9b(0x8b)]());}[_0x44848c(0x95)](_0x1ab508,_0x22e61e){const _0xf2db1=_0x44848c;return b(this['_resources'][_0xf2db1(0x7b)](_0x1ab508))[_0xf2db1(0xb7)][_0x22e61e];}[_0x44848c(0x9e)](_0x3739fe,_0xd746d6,_0x53a110){const _0x3f7e06=_0x44848c;this['_setResource'](_0x3739fe,_0xd746d6,x(this[_0x3f7e06(0xa5)]['get'](_0x3739fe),_0xd746d6,_0x53a110));}[_0x44848c(0x98)](_0x256ad0,_0x5982de){const _0x1d684f=_0x44848c;this[_0x1d684f(0xa1)](_0x256ad0,_0x5982de,S(this[_0x1d684f(0xa5)][_0x1d684f(0x7b)](_0x256ad0),_0x5982de));}[_0x44848c(0x113)](_0x15f8fb){const _0x4de54b=_0x44848c;return b(this[_0x4de54b(0xa5)][_0x4de54b(0x7b)](_0x15f8fb));}[_0x44848c(0xa3)](_0x2d1bbf,_0x120133){const _0x1a1d37=_0x44848c;this['_resources'][_0x1a1d37(0x7f)](_0x2d1bbf,b(_0x120133)),this[_0x1a1d37(0xe8)][_0x1a1d37(0xe1)]({'unitId':_0x2d1bbf});}[_0x44848c(0xf6)](_0x1e1919){const _0x1cbb9e=_0x44848c;this[_0x1cbb9e(0xa5)][_0x1cbb9e(0xf4)](_0x1e1919),this[_0x1cbb9e(0xe8)][_0x1cbb9e(0xe1)]({'unitId':_0x1e1919});}[_0x44848c(0x117)](){const _0x29c4a0=_0x44848c;super[_0x29c4a0(0x117)](),this[_0x29c4a0(0xa5)][_0x29c4a0(0xbb)](),this[_0x29c4a0(0xe8)]['complete']();}['_setResource'](_0x384c1c,_0xf47477,_0x27582e){const _0x400377=_0x44848c;this[_0x400377(0xa5)][_0x400377(0x7f)](_0x384c1c,_0x27582e),this[_0x400377(0xe8)]['next']({'unitId':_0x384c1c,'blockId':_0xf47477});}};const nt={'id':'docs-code.command.insert-below','type':_0x2f4978[_0x44848c(0xb3)],'handler':_0x3eb485=>{const _0x1f355c=_0x44848c;var _0x5a0b7e;if(_0x452170(G(_0x3eb485)))return!0x1;let _0x1973f1=lt(_0x3eb485);if(_0x1973f1)return _0x3eb485[_0x1f355c(0x7b)](_0x10119a)['syncExecuteCommand'](B['id'],{'startOffset':_0x1973f1[_0x1f355c(0xd4)],'endOffset':_0x1973f1[_0x1f355c(0x83)],'insertionMode':_0x1f355c(0x8e),'unitId':_0x1973f1[_0x1f355c(0x102)]});let _0x196475=ut(_0x3eb485);if(!_0x196475)return!0x1;let _0x276688=(_0x5a0b7e=_0x3eb485[_0x1f355c(0x7b)](_0x228d50)[_0x1f355c(0xa4)](_0x108364[_0x1f355c(0xe3)]))==null?void 0x0:_0x5a0b7e[_0x1f355c(0xe2)](),_0x1f86da=_0x276688?_0x491f6d(_0x276688,_0x196475):_0x196475[_0x1f355c(0xa2)]+0x1;return _0x3eb485['get'](_0x10119a)[_0x1f355c(0xaa)](B['id'],{'startOffset':_0x1f86da,'endOffset':_0x1f86da});}},rt={'id':'docs-code.command.consume-boundary-delete','type':_0x2f4978[_0x44848c(0xb3)],'handler':()=>!0x0},B={'id':'docs-code.command.insert','type':_0x2f4978[_0x44848c(0xb3)],'handler':(_0x3e7c02,_0x5be642)=>{const _0x403f49=_0x44848c;var _0x93b122;let _0x168c4c=W(_0x3e7c02,_0x5be642==null?void 0x0:_0x5be642[_0x403f49(0x102)]);if(!_0x168c4c)return!0x1;let _0x1726dc=G(_0x3e7c02);if(_0x452170(_0x1726dc))return!0x1;let _0x5dcf25=_0x168c4c['model'][_0x403f49(0x113)](_0x168c4c['unitId']),_0x44a9a4=ot(_0x5be642,_0x1726dc),_0x368175=st(_0x168c4c[_0x403f49(0xd2)],_0x44a9a4);if(_0x368175){if(_0x368175[_0x403f49(0xc0)]!==_0x45cc53['CODE'])return!0x1;let _0x44d240=w({'blockId':_0x368175[_0x403f49(0xc9)],'documentData':_0x168c4c[_0x403f49(0xd2)],'metadata':_0x5dcf25});if(!_0x44d240)return!0x1;let _0xbb3047=J(_0x168c4c[_0x403f49(0xfe)],_0x168c4c['selectionManager'],_0x168c4c['unitId'],_0x168c4c[_0x403f49(0xd2)],_0x44d240[_0x403f49(0x9a)],B['id'],_0x44d240[_0x403f49(0xc2)]);return _0xbb3047&&_0x44d240[_0x403f49(0x8f)]&&_0x168c4c[_0x403f49(0x80)]['deserialize'](_0x168c4c['unitId'],_0x44d240[_0x403f49(0x8f)]),_0xbb3047;}let _0x1f6d34=(_0x93b122=_0x5be642==null?void 0x0:_0x5be642[_0x403f49(0xc9)])==null?_0x4842c7(0x6):_0x93b122,_0x4da029;try{_0x4da029=Se({'blockId':_0x1f6d34,'config':_0x5be642==null?void 0x0:_0x5be642['config'],'documentData':_0x168c4c[_0x403f49(0xd2)],'endOffset':_0x44a9a4==null?void 0x0:_0x44a9a4[_0x403f49(0x83)],'insertionMode':_0x5be642==null?void 0x0:_0x5be642[_0x403f49(0xda)],'metadata':_0x5dcf25,'startOffset':_0x44a9a4==null?void 0x0:_0x44a9a4[_0x403f49(0xd4)]});}catch(_0x423a47){if(_0x423a47 instanceof C)return!0x1;throw _0x423a47;}let _0x7aefee=J(_0x168c4c[_0x403f49(0xfe)],_0x168c4c[_0x403f49(0xc3)],_0x168c4c[_0x403f49(0x102)],_0x168c4c[_0x403f49(0xd2)],_0x4da029[_0x403f49(0x9a)],B['id'],_0x4da029['cursorOffset']);return _0x7aefee&&_0x4da029[_0x403f49(0x8f)]&&_0x168c4c[_0x403f49(0x80)][_0x403f49(0xa3)](_0x168c4c[_0x403f49(0x102)],_0x4da029[_0x403f49(0x8f)]),_0x7aefee;}},it={'id':_0x44848c(0xfa),'type':_0x2f4978[_0x44848c(0xb3)],'handler':(_0x49b092,_0x1d0cf6)=>{const _0x220f71=_0x44848c;if(!_0x1d0cf6)return!0x1;let _0x5871b4=W(_0x49b092,_0x1d0cf6['unitId']);if(!_0x5871b4)return!0x1;let _0x1aad8e=Ee({'blockId':_0x1d0cf6[_0x220f71(0xc9)],'config':_0x1d0cf6[_0x220f71(0xb2)],'documentData':_0x5871b4[_0x220f71(0xd2)],'metadata':_0x5871b4['model']['serialize'](_0x5871b4[_0x220f71(0x102)])});return _0x1aad8e[_0x220f71(0x8f)]&&_0x5871b4['model']['deserialize'](_0x5871b4[_0x220f71(0x102)],_0x1aad8e[_0x220f71(0x8f)]),!0x0;}},at={'id':_0x44848c(0xb6),'type':_0x2f4978['COMMAND'],'handler':(_0x338e1b,_0x261ad4)=>V['handler'](_0x338e1b,_0x261ad4)},V={'id':'docs-code.command.unwrap','type':_0x2f4978[_0x44848c(0xb3)],'handler':(_0x31339c,_0xb79927)=>{const _0x416bdc=_0x44848c;if(!_0xb79927)return!0x1;let _0x3f247f=W(_0x31339c,_0xb79927==null?void 0x0:_0xb79927[_0x416bdc(0x102)]);if(!_0x3f247f)return!0x1;let _0xf5a750=w({'blockId':_0xb79927['blockId'],'documentData':_0x3f247f['previousDocumentData'],'metadata':_0x3f247f[_0x416bdc(0x80)]['serialize'](_0x3f247f[_0x416bdc(0x102)])});if(!_0xf5a750)return!0x1;let _0x2d47b7=J(_0x3f247f[_0x416bdc(0xfe)],_0x3f247f[_0x416bdc(0xc3)],_0x3f247f['unitId'],_0x3f247f['previousDocumentData'],_0xf5a750[_0x416bdc(0x9a)],V['id'],_0xf5a750[_0x416bdc(0xc2)]);return _0x2d47b7&&_0xf5a750['nextMetadata']&&_0x3f247f['model'][_0x416bdc(0xa3)](_0x3f247f['unitId'],_0xf5a750[_0x416bdc(0x8f)]),_0x2d47b7;}},H={'id':'docs-code.command.remove','type':_0x2f4978['COMMAND'],'handler':(_0xf4e004,_0x4cc8f1)=>{const _0x4d996f=_0x44848c;if(!_0x4cc8f1)return!0x1;let _0x98b307=W(_0xf4e004,_0x4cc8f1==null?void 0x0:_0x4cc8f1[_0x4d996f(0x102)]);if(!_0x98b307)return!0x1;let _0x4504df=De({'blockId':_0x4cc8f1[_0x4d996f(0xc9)],'documentData':_0x98b307['previousDocumentData'],'metadata':_0x98b307[_0x4d996f(0x80)]['serialize'](_0x98b307[_0x4d996f(0x102)])});if(!_0x4504df)return!0x1;let _0x3c70e3=J(_0x98b307[_0x4d996f(0xfe)],_0x98b307['selectionManager'],_0x98b307['unitId'],_0x98b307['previousDocumentData'],_0x4504df[_0x4d996f(0x9a)],H['id'],_0x4504df[_0x4d996f(0xc2)]);return _0x3c70e3&&_0x4504df['nextMetadata']&&_0x98b307[_0x4d996f(0x80)]['deserialize'](_0x98b307[_0x4d996f(0x102)],_0x4504df[_0x4d996f(0x8f)]),_0x3c70e3;}},U={'id':_0x44848c(0xe4),'type':_0x2f4978['COMMAND'],'handler':(_0x236cc1,_0x13cd41)=>{const _0x3254d7=_0x44848c;var _0x47d12d,_0x448c14;let _0x1bd501=W(_0x236cc1,_0x13cd41==null?void 0x0:_0x13cd41[_0x3254d7(0x102)]);if(!_0x1bd501)return!0x1;let _0xb33155=(_0x47d12d=_0x13cd41==null?void 0x0:_0x13cd41[_0x3254d7(0xc2)])==null?(_0x448c14=G(_0x236cc1))==null?void 0x0:_0x448c14[_0x3254d7(0xd4)]:_0x47d12d;if(_0xb33155==null)return!0x1;let _0x55f5c9=Oe({'cursorOffset':_0xb33155,'documentData':_0x1bd501[_0x3254d7(0xd2)],'paragraphStartIndex':_0x13cd41==null?void 0x0:_0x13cd41[_0x3254d7(0xed)]});return _0x55f5c9?J(_0x1bd501[_0x3254d7(0xfe)],_0x1bd501[_0x3254d7(0xc3)],_0x1bd501[_0x3254d7(0x102)],_0x1bd501[_0x3254d7(0xd2)],_0x55f5c9[_0x3254d7(0x9a)],U['id'],_0x55f5c9[_0x3254d7(0xc2)]):!0x1;}};function W(_0x3defb9,_0x462a00){const _0x2f73c5=_0x44848c;let _0x288436=_0x3defb9[_0x2f73c5(0x7b)](_0x228d50),_0x1923c4=_0x462a00?_0x288436[_0x2f73c5(0x86)](_0x462a00,_0x108364['UNIVER_DOC']):_0x288436[_0x2f73c5(0xa4)](_0x108364[_0x2f73c5(0xe3)]);return _0x1923c4?{'commandService':_0x3defb9['get'](_0x10119a),'model':_0x3defb9[_0x2f73c5(0x7b)](z),'previousDocumentData':_0x1923c4[_0x2f73c5(0x94)](),'selectionManager':_0x3defb9[_0x2f73c5(0x7b)](_0x3a7722),'unitId':_0x1923c4['getUnitId']()}:null;}function G(_0x3af64a){const _0x1948e5=_0x44848c;var _0x2f45fa;return(_0x2f45fa=_0x3af64a[_0x1948e5(0x7b)](_0x3a7722)[_0x1948e5(0xc4)]())==null?void 0x0:_0x2f45fa[0x0];}function ot(_0x4f5d11,_0x2e6e43){const _0x29e93f=_0x44848c;var _0x37ea43,_0xdd683b;let _0x4fd650=(_0x37ea43=_0x4f5d11==null?void 0x0:_0x4f5d11[_0x29e93f(0xd4)])==null?_0x2e6e43==null?void 0x0:_0x2e6e43[_0x29e93f(0xd4)]:_0x37ea43,_0x2d41a5=(_0xdd683b=_0x4f5d11==null?void 0x0:_0x4f5d11[_0x29e93f(0x83)])==null?_0x2e6e43==null?void 0x0:_0x2e6e43[_0x29e93f(0x83)]:_0xdd683b;if(!(_0x4fd650==null||_0x2d41a5==null))return{'endOffset':Math[_0x29e93f(0xfd)](_0x4fd650,_0x2d41a5),'startOffset':Math[_0x29e93f(0x96)](_0x4fd650,_0x2d41a5)};}function st(_0x50f21a,_0xf4d36c){const _0x337d8b=_0x44848c;var _0x3cb228;if(!_0xf4d36c)return;let _0x42e934=ct(_0xf4d36c);return(_0x3cb228=_0x50f21a[_0x337d8b(0xf3)])==null||(_0x3cb228=_0x3cb228[_0x337d8b(0x104)])==null?void 0x0:_0x3cb228[_0x337d8b(0xea)](_0x257bd6=>{const _0x35395e=_0x337d8b;let _0x227c5d=_0x3fa12e(_0x257bd6);return _0xf4d36c[_0x35395e(0xd4)]===_0xf4d36c['endOffset']?_0x50cd86(_0x227c5d,_0x42e934):_0x33e1b3(_0x227c5d,_0x42e934);});}function ct(_0x4edd3c){const _0x3cb09b=_0x44848c;return _0x4edd3c[_0x3cb09b(0xd4)]===_0x4edd3c[_0x3cb09b(0x83)]?_0x4edd3c[_0x3cb09b(0xd4)]:_0x4edd3c[_0x3cb09b(0xd4)]+0x1;}function lt(_0x1a1667){const _0x4edc74=_0x44848c;var _0x43eb6e;let _0x5bd7a5=(_0x43eb6e=_0x1a1667[_0x4edc74(0x7b)](_0x228d50)[_0x4edc74(0xa4)](_0x108364[_0x4edc74(0xe3)]))==null?void 0x0:_0x43eb6e['getUnitId']();try{return _0x1a1667[_0x4edc74(0x7b)](_0x22ba41)['consumeInsertRange'](_0x5bd7a5);}catch{return null;}}function ut(_0x3fd692){const _0x24b04f=_0x44848c;var _0x3b0273,_0x45cbc1,_0x4a31e1;let _0x371f37=G(_0x3fd692);if(!_0x371f37)return null;let _0x2bc1fb=_0x3fd692[_0x24b04f(0x7b)](_0x228d50)[_0x24b04f(0xa4)](_0x108364[_0x24b04f(0xe3)]),_0x49d7d8=_0x2bc1fb==null?void 0x0:_0x2bc1fb[_0x24b04f(0xe2)]();return _0x49d7d8?(_0x3b0273=_0x2aa63d[_0x24b04f(0xf9)][_0x24b04f(0xd0)](_0x371f37,(_0x45cbc1=_0x49d7d8[_0x24b04f(0xd3)])==null?[]:_0x45cbc1,(_0x4a31e1=_0x49d7d8[_0x24b04f(0x114)])==null?'':_0x4a31e1)[0x0])==null?null:_0x3b0273:null;}function _0x36fb(){const _0x14eeb8=['every','bullet','endIndex','126128jkikke','start','constructor','entries','config','COMMAND','textRuns','textStyle','docs-code.command.exit','codes','paragraph','stringify','change$','clear','from','default','removeOp','50RpVggO','blockType','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','cursorOffset','selectionManager','getTextRanges','77570XMlPmt','PARAGRAPH','insertOp','270780fuDgeQ','blockId','version','BLOCK_START','_config','metadata','_initResource','push','getParagraphsInRange','iterator','previousDocumentData','paragraphs','startOffset','getOwnPropertyDescriptor','startTokenOffset','customDecorations','4935161FbcLeg','1177VcvZvv','insertionMode','symbol','toPrimitive','BLOCK_END','left','reduce','call','next','getBody','UNIVER_DOC','docs-code.command.cancel-empty-paragraph','customRanges','spaceBelow','_commandService','_change$','fromEntries','find','right','getInstance','paragraphStartIndex','8wUWfEm','39YMdXKt','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','direction','sectionBreaks','body','delete','indexOf','removeUnit','1.0.0-alpha.3','function','range','docs-code.command.update','tables','columns','max','commandService','add','2379732LHMqYT','isArray','unitId','pluginName','blockRanges','_injector','columnGroups','defineProperty','map','forEach','_configService','keys','retain','DOC_CODE_PLUGIN','paragraphId','CODE','registerCommand','insert','length','serialize','dataStream','string','SECTION_BREAK','dispose','onStarting','endsWith','get','4132017osOSvt','documentData','prototype','set','model','packageName','_docsCodeModel','endOffset','Document\x20body\x20is\x20required','deleteLength','getUnit','sort','insertLength','filter','some','asObservable','replaceOp','decorate','insert-new','nextMetadata','spaceAbove','disposeWithMe','editOp','slice','getSnapshot','getCodeConfig','min','paragraphStyle','removeCode','customBlocks','nextDocumentData','compose','_resourceManagerService','TABLE_CELL_END','setCodeConfig','object','replaceDocRanges','_setResource','startIndex','deserialize','getCurrentUnitOfType','_resources','496287JWqAHm','endTokenOffset','monospace','parse','syncExecuteCommand'];_0x36fb=function(){return _0x14eeb8;};return _0x36fb();}function dt(_0x3618c5,_0x33a169){const _0x3ca187=_0x44848c;let _0xf70c5a=_0x3618c5[_0x3ca187(0xf3)],_0x8b199c=_0x33a169[_0x3ca187(0xf3)],_0x4b7a2=_0x168f93(_0xf70c5a,_0x8b199c);return[_0x4b7a2&&_0x8b199c?ft(_0x8b199c,_0x4b7a2):null,_0x4b7a2?null:pt(_0xf70c5a,_0x8b199c)][_0x3ca187(0x89)](Boolean)[_0x3ca187(0xdf)]((_0x435e4d,_0x52e0e8)=>_0x2d3193[_0x3ca187(0x9b)](_0x435e4d,_0x52e0e8),null);}function ft(_0x310107,_0x45c654){const _0x47fcb9=_0x44848c;let _0x54ff3c=new _0x11e4b5();return _0x54ff3c[_0x47fcb9(0x10c)](_0x45c654[_0x47fcb9(0xaf)]),_0x45c654[_0x47fcb9(0x88)]>0x0&&_0x54ff3c[_0x47fcb9(0x111)](_0x45c654[_0x47fcb9(0x88)],_0x50fffd(_0x310107,_0x45c654[_0x47fcb9(0xaf)],_0x45c654[_0x47fcb9(0xaf)]+_0x45c654[_0x47fcb9(0x88)],!0x1)),_0x45c654[_0x47fcb9(0x85)]>0x0&&_0x54ff3c[_0x47fcb9(0xf4)](_0x45c654[_0x47fcb9(0x85)]),_0x2d3193[_0x47fcb9(0xec)]()[_0x47fcb9(0x92)](_0x54ff3c['serialize'](),['body']);}function pt(_0x15d238,_0x5d53f1){const _0x9a7238=_0x44848c;let _0x5dfc8e=[],_0xb68056=_0x15d238?ht(_0x15d238):void 0x0,_0x1c2e25=_0x5d53f1?ht(_0x5d53f1):void 0x0;for(let _0x14be7b of mt)K(_0x2d3193[_0x9a7238(0xec)](),[_0x9a7238(0xf3),_0x14be7b],_0xb68056==null?void 0x0:_0xb68056[_0x14be7b],_0x1c2e25==null?void 0x0:_0x1c2e25[_0x14be7b],_0x5dfc8e);return _0x5dfc8e[_0x9a7238(0xdf)]((_0x4a4fbb,_0x13290b)=>_0x2d3193[_0x9a7238(0x9b)](_0x4a4fbb,_0x13290b),null);}const mt=[_0x44848c(0xd3),_0x44848c(0xf2),_0x44848c(0xfb),_0x44848c(0x106),_0x44848c(0x104),'customBlocks','customRanges',_0x44848c(0xd7),'textRuns'];function ht(_0xf115e5){return _0xf115e5;}function K(_0x51dad3,_0x3f973,_0x3e5db0,_0x47a8d5,_0x8ca65d){const _0x83dcc1=_0x44848c;if(!q(_0x3e5db0,_0x47a8d5)){if(_0x3e5db0==null){_0x8ca65d['push'](_0x51dad3['insertOp'](_0x3f973,_0x47a8d5));return;}if(_0x47a8d5==null){_0x8ca65d[_0x83dcc1(0xcf)](_0x51dad3['removeOp'](_0x3f973,_0x3e5db0));return;}if(Array[_0x83dcc1(0x101)](_0x3e5db0)&&Array[_0x83dcc1(0x101)](_0x47a8d5)){gt(_0x51dad3,_0x3f973,_0x3e5db0,_0x47a8d5,_0x8ca65d);return;}if(_t(_0x3e5db0)&&_t(_0x47a8d5)){new Set([...Object['keys'](_0x3e5db0),...Object[_0x83dcc1(0x10b)](_0x47a8d5)])['forEach'](_0x296cfd=>{K(_0x51dad3,[..._0x3f973,_0x296cfd],_0x3e5db0[_0x296cfd],_0x47a8d5[_0x296cfd],_0x8ca65d);});return;}_0x8ca65d[_0x83dcc1(0xcf)](_0x51dad3[_0x83dcc1(0x8c)](_0x3f973,_0x3e5db0,_0x47a8d5));}}function gt(_0x580e9a,_0xda42a1,_0x6badaa,_0x25d4e7,_0x3e1658){const _0x1664b2=_0x44848c;if(_0x6badaa[_0x1664b2(0x112)]===_0x25d4e7['length']){_0x6badaa[_0x1664b2(0x109)]((_0x488ac9,_0x89a2e1)=>K(_0x580e9a,[..._0xda42a1,_0x89a2e1],_0x488ac9,_0x25d4e7[_0x89a2e1],_0x3e1658));return;}let _0x114790=0x0;for(;_0x114790<_0x6badaa[_0x1664b2(0x112)]&&_0x114790<_0x25d4e7[_0x1664b2(0x112)]&&q(_0x6badaa[_0x114790],_0x25d4e7[_0x114790]);)_0x114790++;let _0x5aaf6e=_0x6badaa[_0x1664b2(0x112)]-0x1,_0x2e9fbb=_0x25d4e7['length']-0x1;for(;_0x5aaf6e>=_0x114790&&_0x2e9fbb>=_0x114790&&q(_0x6badaa[_0x5aaf6e],_0x25d4e7[_0x2e9fbb]);)_0x5aaf6e--,_0x2e9fbb--;for(let _0x1b5573=_0x5aaf6e;_0x1b5573>=_0x114790;_0x1b5573--)_0x3e1658[_0x1664b2(0xcf)](_0x580e9a[_0x1664b2(0xbe)]([..._0xda42a1,_0x1b5573],_0x6badaa[_0x1b5573]));for(let _0x3ef64d=_0x114790;_0x3ef64d<=_0x2e9fbb;_0x3ef64d++)_0x3e1658['push'](_0x580e9a[_0x1664b2(0xc7)]([..._0xda42a1,_0x3ef64d],_0x25d4e7[_0x3ef64d]));}function _t(_0x405f48){const _0x45d71b=_0x44848c;return typeof _0x405f48==_0x45d71b(0x9f)&&!!_0x405f48&&!Array[_0x45d71b(0x101)](_0x405f48);}function q(_0x25f78b,_0x33b9f3){const _0x270655=_0x44848c;return JSON[_0x270655(0xb9)](_0x25f78b)===JSON[_0x270655(0xb9)](_0x33b9f3);}function J(_0x5b897c,_0x56063e,_0x558797,_0x4c24b0,_0x20937d,_0x348a60,_0x38b2d4){const _0x446093=_0x44848c;let _0x17b33a=dt(_0x4c24b0,_0x20937d);return _0x17b33a?!!_0x5b897c[_0x446093(0xaa)](_0x28d3f9['id'],{'unitId':_0x558797,'actions':_0x17b33a,'textRanges':[{'startOffset':_0x38b2d4,'endOffset':_0x38b2d4,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x348a60}):(_0x56063e[_0x446093(0xa0)]([{'startOffset':_0x38b2d4,'endOffset':_0x38b2d4}],{'unitId':_0x558797,'subUnitId':_0x558797},!0x1),!0x0);}const Y=_0x44848c(0x10d);var vt='@univerjs-pro/docs-code',yt=_0x44848c(0xf7);const bt={};function X(_0x35c651,_0xcce8a){return function(_0x20342a,_0x56166f){_0xcce8a(_0x20342a,_0x56166f,_0x35c651);};}function Z(_0x1c3fb2,_0x5246ad,_0x59c7f8,_0x521bdc){const _0x155b3c=_0x44848c;var _0x3bb2f0=arguments[_0x155b3c(0x112)],_0x26ec61=_0x3bb2f0<0x3?_0x5246ad:_0x521bdc===null?_0x521bdc=Object[_0x155b3c(0xd5)](_0x5246ad,_0x59c7f8):_0x521bdc,_0x3ee76b;if(typeof Reflect==_0x155b3c(0x9f)&&typeof Reflect[_0x155b3c(0x8d)]==_0x155b3c(0xf8))_0x26ec61=Reflect[_0x155b3c(0x8d)](_0x1c3fb2,_0x5246ad,_0x59c7f8,_0x521bdc);else{for(var _0x3d0e00=_0x1c3fb2[_0x155b3c(0x112)]-0x1;_0x3d0e00>=0x0;_0x3d0e00--)(_0x3ee76b=_0x1c3fb2[_0x3d0e00])&&(_0x26ec61=(_0x3bb2f0<0x3?_0x3ee76b(_0x26ec61):_0x3bb2f0>0x3?_0x3ee76b(_0x5246ad,_0x59c7f8,_0x26ec61):_0x3ee76b(_0x5246ad,_0x59c7f8))||_0x26ec61);}return _0x3bb2f0>0x3&&_0x26ec61&&Object['defineProperty'](_0x5246ad,_0x59c7f8,_0x26ec61),_0x26ec61;}let Q=class extends _0x7a2bfc{constructor(_0x5855ac,_0x407b10){const _0x4a0a76=_0x44848c;super(),this[_0x4a0a76(0x9c)]=_0x5855ac,this[_0x4a0a76(0x82)]=_0x407b10,this[_0x4a0a76(0xce)]();}[_0x44848c(0xce)](){const _0x37fd07=_0x44848c;this[_0x37fd07(0x91)](this[_0x37fd07(0x9c)]['registerPluginResource']({'pluginName':Y,'businesses':[_0x108364['UNIVER_DOC']],'toJson':_0x3628f8=>JSON['stringify'](this[_0x37fd07(0x82)]['serialize'](_0x3628f8)),'parseJson':_0x421dc3=>b(JSON[_0x37fd07(0xa9)](_0x421dc3)),'onLoad':(_0x736311,_0x5e7626)=>this[_0x37fd07(0x82)][_0x37fd07(0xa3)](_0x736311,_0x5e7626),'onUnLoad':_0x2b7cc6=>this['_docsCodeModel'][_0x37fd07(0xf6)](_0x2b7cc6)}));}};Q=Z([X(0x0,_0x23d35f),X(0x1,_0x163407(z))],Q);let $=class extends _0x495660{constructor(_0x3e7145=bt,_0x2f71be,_0x50a248,_0xb2d6f0){const _0x54fd2c=_0x44848c;super(),this[_0x54fd2c(0xcc)]=_0x3e7145,this[_0x54fd2c(0x105)]=_0x2f71be,this[_0x54fd2c(0xe7)]=_0x50a248,this[_0x54fd2c(0x10a)]=_0xb2d6f0;let {..._0x463c4c}=_0x55c09c({},bt,this[_0x54fd2c(0xcc)]);this['_configService']['setConfig']('docs-code.config',_0x463c4c);}[_0x44848c(0x118)](){const _0x4926e7=_0x44848c;this[_0x4926e7(0x105)][_0x4926e7(0xff)]([z]),this['_injector'][_0x4926e7(0xff)]([Q]),this[_0x4926e7(0x105)][_0x4926e7(0x7b)](z),this[_0x4926e7(0x105)][_0x4926e7(0x7b)](Q),[B,nt,it,V,H,at,U,rt][_0x4926e7(0x109)](_0x558a34=>this[_0x4926e7(0x91)](this[_0x4926e7(0xe7)][_0x4926e7(0x110)](_0x558a34)));}};R($,_0x44848c(0x103),Y),R($,_0x44848c(0x81),vt),R($,_0x44848c(0xca),yt),R($,'type',_0x108364[_0x44848c(0xe3)]),$=Z([_0x1c14e5(_0x355b25,_0x4d0ee5),X(0x1,_0x163407(_0x445227)),X(0x2,_0x10119a),X(0x3,_0x1d5c59)],$);export{Y as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,rt as DocsCodeConsumeBoundaryDeleteCommand,nt as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,z as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,it as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,Oe as buildCancelEmptyCodeParagraphActions,je as isCodeBoundaryDelete,y as normalizeDocsCodeConfig};
|
|
1
|
+
const _0x1edc1f=_0x23a6;function _0x23a6(_0x5563f6,_0x426ced){_0x5563f6=_0x5563f6-0x1b6;const _0x8e7208=_0x8e72();let _0x23a61a=_0x8e7208[_0x5563f6];return _0x23a61a;}(function(_0x1953ae,_0x259e0d){const _0xce95f5=_0x23a6,_0x43d89e=_0x1953ae();while(!![]){try{const _0x272354=parseInt(_0xce95f5(0x206))/0x1+-parseInt(_0xce95f5(0x254))/0x2*(parseInt(_0xce95f5(0x1ce))/0x3)+-parseInt(_0xce95f5(0x1de))/0x4*(parseInt(_0xce95f5(0x1ed))/0x5)+-parseInt(_0xce95f5(0x1e5))/0x6*(parseInt(_0xce95f5(0x23e))/0x7)+parseInt(_0xce95f5(0x1e1))/0x8*(parseInt(_0xce95f5(0x256))/0x9)+-parseInt(_0xce95f5(0x1bc))/0xa+parseInt(_0xce95f5(0x20b))/0xb*(parseInt(_0xce95f5(0x1dd))/0xc);if(_0x272354===_0x259e0d)break;else _0x43d89e['push'](_0x43d89e['shift']());}catch(_0x118d37){_0x43d89e['push'](_0x43d89e['shift']());}}}(_0x8e72,0xcf039));import{BuildTextUtils as _0xfcd91,CommandType as _0x3aa002,DataStreamTreeTokenType as _0x43b06f,DependentOn as _0x2f1165,Disposable as _0x11f1e7,DocumentBlockRangeType as _0x37a99f,ICommandService as _0x1d61d6,IConfigService as _0x4a9167,IResourceManagerService as _0x50ae34,IUniverInstanceService as _0x45d141,Inject as _0x5c4b8b,Injector as _0x193e69,JSONX as _0x3e4a71,Plugin as _0x19b9cc,TextX as _0x37143f,UniverInstanceType as _0x41a83a,containsInteriorInsertionOffset as _0x52963d,containsStreamIndex as _0xf103f,createParagraphId as _0x5cfb3a,generateRandomId as _0x35a556,getBlockRangeInterval as _0x4a1bb2,getBodySliceForTextXAction as _0x2fb9bb,getParagraphContentStartOffset as _0x120216,getParagraphContentStartOffsets as _0xfa281d,getParagraphFollowingBlockOffset as _0x2be263,getSingleDataStreamChange as _0x1817eb,intersectsOperationalIntervals as _0x2f8ce5,merge as _0x559340,shiftExclusiveRangeOnDelete as _0x1c7981,shiftExclusiveRangeOnInsert as _0x2dea21,shiftInclusiveRangeOnDelete as _0x3a6def,shiftInclusiveRangeOnInsert as _0x5bff0d}from'@univerjs/core';import{DocSelectionManagerService as _0x2ed20d,RichTextEditingMutation as _0xc563fa,UniverDocsPlugin as _0x3f1e99,getContentInsertRange as _0x517640,isHeaderFooterSelection as _0xaf3991}from'@univerjs/docs';import{Subject as _0x3b77df}from'rxjs';import{UniverLicensePlugin as _0x4c3c74}from'@univerjs-pro/license';const ye={'language':_0x1edc1f(0x252),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function b(_0x307f11){return{...ye,..._0x307f11};}function x(_0x28cbb9){const _0x1c8662=_0x1edc1f;var _0x4f48cb;let _0xb2010d=(_0x4f48cb=_0x28cbb9==null?void 0x0:_0x28cbb9[_0x1c8662(0x1ec)])==null?{}:_0x4f48cb;return{'codes':Object[_0x1c8662(0x1f6)](Object[_0x1c8662(0x1c9)](_0xb2010d)['map'](([_0x4db315,_0x9f0254])=>[_0x4db315,b(_0x9f0254)]))};}function S(_0x38e080,_0x200d32,_0xf00307){const _0x25d111=_0x1edc1f;let _0x3bedf1=x(_0x38e080);return _0x3bedf1['codes'][_0x200d32]=b({..._0x3bedf1[_0x25d111(0x1ec)][_0x200d32],..._0xf00307}),_0x3bedf1;}function C(_0x20a188,_0x56154a){let _0x51484b=x(_0x20a188);return delete _0x51484b['codes'][_0x56154a],_0x51484b;}const be=_0x1edc1f(0x253);var w=class extends Error{constructor(_0xfbf296='Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries'){super(_0xfbf296);}};function xe(_0x7f1a3f){const _0x5b9022=_0x1edc1f;var _0x284857,_0x2ae09d,_0x4a5043;let _0x7621eb=T(_0x7f1a3f[_0x5b9022(0x244)]),_0x56992c=D(_0x7621eb),_0x1987bb=Ce(_0x7f1a3f[_0x5b9022(0x232)],_0x7f1a3f[_0x5b9022(0x1e3)]),_0x4ce653=_0x1987bb?(_0x284857=_0x56992c['blockRanges'])==null?void 0x0:_0x284857[_0x5b9022(0x212)](_0xdfaf5e=>{const _0x3ec8ce=_0x5b9022;let _0x1ed206=_0x4a1bb2(_0xdfaf5e);return _0x1ed206[_0x3ec8ce(0x232)]===_0x1987bb['startOffset']&&_0x1ed206[_0x3ec8ce(0x1e3)]===_0x1987bb[_0x3ec8ce(0x1e3)];}):void 0x0,{startOffset:_0x508923,endOffset:_0x577321}=_0x4ce653?_0x1987bb:ze(_0x56992c,_0x7f1a3f[_0x5b9022(0x232)],_0x7f1a3f[_0x5b9022(0x1e3)],_0x7f1a3f[_0x5b9022(0x21b)]);if(!_0x4ce653&&we(_0x56992c,_0x508923,_0x577321))throw new w(_0x5b9022(0x1c6));let _0x3e20fa=He(_0x56992c,_0x508923,_0x577321),_0x2741d6=(_0x2ae09d=_0x4ce653==null?void 0x0:_0x4ce653[_0x5b9022(0x1e4)])==null?_0x7f1a3f[_0x5b9022(0x1e4)]:_0x2ae09d,_0x7585d5=S(_0x7f1a3f[_0x5b9022(0x247)],_0x2741d6,{...ye,..._0x7f1a3f[_0x5b9022(0x1c1)]});if(_0x4ce653)return _0x4ce653[_0x5b9022(0x210)]=_0x37a99f['CODE'],Se(_0x56992c,_0x508923,_0x577321),Pe(_0x56992c,_0x508923,_0x577321,_0x3e20fa),A(_0x56992c,_0x4ce653),{'nextDocumentData':_0x7621eb,'nextMetadata':_0x7585d5,'cursorOffset':_0x508923+0x1};if(_0x508923===_0x577321){var _0x38de6b,_0x167dc0;let _0xf03c04=''+_0x43b06f[_0x5b9022(0x251)]+_0x43b06f[_0x5b9022(0x202)]+_0x43b06f[_0x5b9022(0x241)];j(_0x56992c,_0x508923,_0xf03c04,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x5cfb3a(new Set((_0x38de6b=_0x56992c[_0x5b9022(0x1c7)])==null?void 0x0:_0x38de6b[_0x5b9022(0x200)](_0xc6777d=>_0xc6777d[_0x5b9022(0x214)]))),'paragraphStyle':Ne(!0x0,!0x0,_0x3e20fa)}],'blockRanges':[{'blockId':_0x2741d6,'blockType':_0x37a99f['CODE'],'startIndex':0x0,'endIndex':_0xf03c04[_0x5b9022(0x1d8)]-0x1}]});let _0x3d4e00=(_0x167dc0=_0x56992c['blockRanges'])==null?void 0x0:_0x167dc0[_0x5b9022(0x212)](_0x3fa19f=>_0x3fa19f['blockId']===_0x2741d6);return _0x3d4e00&&A(_0x56992c,_0x3d4e00),{'nextDocumentData':_0x7621eb,'nextMetadata':_0x7585d5,'cursorOffset':_0x508923+0x1};}j(_0x56992c,_0x577321,_0x43b06f['BLOCK_END']),j(_0x56992c,_0x508923,_0x43b06f[_0x5b9022(0x251)]),Pe(_0x56992c,_0x508923,_0x577321+0x1,_0x3e20fa);let _0x3f12a0={'blockId':_0x2741d6,'blockType':_0x37a99f[_0x5b9022(0x1ca)],'startIndex':_0x508923,'endIndex':_0x577321+0x1};return _0x56992c[_0x5b9022(0x1ba)]=[...(_0x4a5043=_0x56992c[_0x5b9022(0x1ba)])==null?[]:_0x4a5043,_0x3f12a0][_0x5b9022(0x1ef)]((_0x1d97d5,_0x5b26b6)=>_0x1d97d5[_0x5b9022(0x209)]-_0x5b26b6[_0x5b9022(0x209)]),A(_0x56992c,_0x3f12a0),{'nextDocumentData':_0x7621eb,'nextMetadata':_0x7585d5,'cursorOffset':_0x508923+0x1};}function Se(_0x4fbf36,_0x21ff01,_0x7e8aac){const _0x23846b=_0x1edc1f;var _0x129efd;((_0x129efd=_0x4fbf36[_0x23846b(0x1c7)])==null?[]:_0x129efd)[_0x23846b(0x1c3)](_0x50d51d=>_0x50d51d[_0x23846b(0x209)]>_0x21ff01&&_0x50d51d[_0x23846b(0x209)]<_0x7e8aac)['forEach'](_0x4f4536=>{const _0x47fbfe=_0x23846b;var _0x15221b;let _0x121bc1={...(_0x15221b=_0x4f4536['paragraphStyle'])==null?{}:_0x15221b};delete _0x121bc1[_0x47fbfe(0x250)],delete _0x121bc1[_0x47fbfe(0x1d5)],_0x4f4536[_0x47fbfe(0x1f3)]=_0x121bc1;});}function Ce(_0x27ef0e,_0x411f04){const _0x3fc7ed=_0x1edc1f;return _0x27ef0e==null||_0x411f04==null||_0x27ef0e===_0x411f04?null:{'startOffset':Math[_0x3fc7ed(0x21d)](_0x27ef0e,_0x411f04),'endOffset':Math['max'](_0x27ef0e,_0x411f04)};}function we(_0x306450,_0x260541,_0x3dfe98){const _0xfe562f=_0x1edc1f;var _0x1475f7;return((_0x1475f7=_0x306450[_0xfe562f(0x1ba)])==null?[]:_0x1475f7)[_0xfe562f(0x22d)](_0xe29a2f=>{let _0x23a889=_0x4a1bb2(_0xe29a2f);return _0x260541===_0x3dfe98?_0x52963d(_0x23a889,_0x260541):_0x2f8ce5(_0x23a889,{'startOffset':_0x260541,'endOffset':_0x3dfe98});});}function Te(_0x3025ad){const _0x245eb3=_0x1edc1f;return{'nextDocumentData':T(_0x3025ad[_0x245eb3(0x244)]),'nextMetadata':S(_0x3025ad['metadata'],_0x3025ad[_0x245eb3(0x1e4)],_0x3025ad['config']),'cursorOffset':0x0};}function Ee(_0x797abf){const _0x59be64=_0x1edc1f;let _0x1fcc1a=T(_0x797abf[_0x59be64(0x244)]),_0x2bc488=D(_0x1fcc1a),_0x199f43=Ae(_0x2bc488,_0x797abf[_0x59be64(0x1e4)]);if(!_0x199f43)return null;let _0x1c0045=Le(_0x2bc488,_0x199f43);return{'nextDocumentData':_0x1fcc1a,'nextMetadata':C(_0x797abf[_0x59be64(0x247)],_0x797abf[_0x59be64(0x1e4)]),'cursorOffset':_0x1c0045};}function De(_0x4a339d){const _0x3b9e48=_0x1edc1f;var _0x42a2dd;let _0x3596c1=T(_0x4a339d['documentData']),_0x48dbbc=D(_0x3596c1),_0x3479a6=Ae(_0x48dbbc,_0x4a339d[_0x3b9e48(0x1e4)]);if(!_0x3479a6)return null;let _0x237fea=_0x4a1bb2(_0x3479a6);return M(_0x48dbbc,_0x237fea[_0x3b9e48(0x232)],_0x237fea['endOffset']),_0x48dbbc[_0x3b9e48(0x1ba)]=(_0x42a2dd=_0x48dbbc[_0x3b9e48(0x1ba)])==null?void 0x0:_0x42a2dd[_0x3b9e48(0x1c3)](_0x1472a3=>_0x1472a3['blockId']!==_0x4a339d[_0x3b9e48(0x1e4)]),{'nextDocumentData':_0x3596c1,'nextMetadata':C(_0x4a339d[_0x3b9e48(0x247)],_0x4a339d['blockId']),'cursorOffset':_0x3479a6[_0x3b9e48(0x209)]};}function Oe(_0x1a9080){const _0x1d5a9c=_0x1edc1f;let _0x4527a6=T(_0x1a9080[_0x1d5a9c(0x244)]),_0x492847=D(_0x4527a6),_0xc17f9d=Me(_0x492847,_0x1a9080[_0x1d5a9c(0x23f)]);return _0xc17f9d&&ke(_0x4527a6,_0x492847,_0xc17f9d,_0x1a9080[_0x1d5a9c(0x23f)],_0x1a9080[_0x1d5a9c(0x1d4)])||null;}function ke(_0x2d2570,_0x52abab,_0x2cdcd0,_0xcd8894,_0x23bec9){const _0x3a120f=_0x1edc1f;let _0x40d752=Je(_0x52abab,_0x2cdcd0,_0xcd8894,_0x23bec9);if(!_0x40d752)return null;let _0x4bf4fe=_0x40d752[_0x3a120f(0x1e7)]-0x1;return M(_0x52abab,_0x40d752[_0x3a120f(0x20a)][_0x3a120f(0x209)],_0x40d752[_0x3a120f(0x20a)]['startIndex']+0x1),{'nextDocumentData':_0x2d2570,'cursorOffset':_0x4bf4fe};}function Ae(_0x489c95,_0x560fcd){const _0x3272a9=_0x1edc1f;var _0xb9996f;return _0x489c95==null||(_0xb9996f=_0x489c95[_0x3272a9(0x1ba)])==null?void 0x0:_0xb9996f[_0x3272a9(0x212)](_0xdc7ab5=>_0xdc7ab5['blockType']===_0x37a99f['CODE']&&_0xdc7ab5[_0x3272a9(0x1e4)]===_0x560fcd);}function je(_0x645ce5){const _0xaed9d0=_0x1edc1f;var _0x279075;let _0x304ce2=_0x645ce5[_0xaed9d0(0x244)][_0xaed9d0(0x1bf)];if(!_0x304ce2)return!0x1;let _0x60761b=_0x645ce5['direction']===_0xaed9d0(0x1b6)?_0x645ce5[_0xaed9d0(0x23f)]-0x1:_0x645ce5[_0xaed9d0(0x23f)],_0x14a22e=_0x645ce5[_0xaed9d0(0x1d9)]===_0xaed9d0(0x1fc)?_0x645ce5[_0xaed9d0(0x23f)]+0x1:_0x60761b;return((_0x279075=_0x304ce2[_0xaed9d0(0x1ba)])==null?[]:_0x279075)[_0xaed9d0(0x22d)](_0x3f72c6=>_0x3f72c6[_0xaed9d0(0x210)]===_0x37a99f[_0xaed9d0(0x1ca)]?_0x60761b===_0x3f72c6[_0xaed9d0(0x209)]||_0x60761b===_0x3f72c6['endIndex']||_0x14a22e===_0x3f72c6[_0xaed9d0(0x209)]||_0x14a22e===_0x3f72c6[_0xaed9d0(0x1c8)]:!0x1);}function Me(_0x28ca91,_0x2be5f1){var _0x187905;return(_0x187905=_0x28ca91['blockRanges'])==null?void 0x0:_0x187905['find'](_0x106f17=>{const _0x3f0a95=_0x23a6;let _0x441a14=k(_0x106f17);return _0x106f17[_0x3f0a95(0x210)]===_0x37a99f[_0x3f0a95(0x1ca)]&&_0x106f17[_0x3f0a95(0x209)]<=_0x2be5f1&&_0x2be5f1<=_0x441a14+0x2;});}function Ne(_0x5d3417,_0x240100,_0x1c7802=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x5d3417&&_0x1c7802?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':be,'fs':0xc}};}function Pe(_0xa421fb,_0x2b1935,_0x52fa33,_0x1a15a0=!0x1){const _0x22720c=_0x1edc1f;var _0x7abf3d;let _0x11249c=((_0x7abf3d=_0xa421fb[_0x22720c(0x1c7)])==null?[]:_0x7abf3d)[_0x22720c(0x1c3)](_0xae4d76=>_0xae4d76[_0x22720c(0x209)]>_0x2b1935&&_0xae4d76[_0x22720c(0x209)]<_0x52fa33);_0x11249c[_0x22720c(0x258)]((_0x2833cc,_0x57ad5e)=>{const _0x32f090=_0x22720c;var _0xe8f4dc;_0x2833cc[_0x32f090(0x1f3)]={...(_0xe8f4dc=_0x2833cc[_0x32f090(0x1f3)])==null?{}:_0xe8f4dc,...Ne(_0x57ad5e===0x0,_0x57ad5e===_0x11249c['length']-0x1,_0x1a15a0)};});}function Fe(_0x5ec983){const _0x177b4d=_0x1edc1f;var _0x53e81e,_0x372e46;let _0x4e3dab={..._0x5ec983==null?{}:_0x5ec983};return delete _0x4e3dab[_0x177b4d(0x1cb)],delete _0x4e3dab[_0x177b4d(0x1d2)],delete _0x4e3dab['spaceAbove'],delete _0x4e3dab[_0x177b4d(0x1d5)],((_0x53e81e=_0x4e3dab[_0x177b4d(0x1bd)])==null?void 0x0:_0x53e81e['ff'])===be&&((_0x372e46=_0x4e3dab[_0x177b4d(0x1bd)])==null?void 0x0:_0x372e46['fs'])===0xc&&delete _0x4e3dab[_0x177b4d(0x1bd)],_0x4e3dab;}function Ie(_0x2ba1fe,_0x4eb7c3){const _0x3ebb31=_0x1edc1f;var _0x1f5fe3;let _0x22b3e9=k(_0x4eb7c3);return((_0x1f5fe3=_0x2ba1fe[_0x3ebb31(0x1c7)])==null?[]:_0x1f5fe3)['filter'](_0x5762eb=>_0x5762eb['startIndex']>_0x4eb7c3[_0x3ebb31(0x209)]&&_0x5762eb[_0x3ebb31(0x209)]<_0x22b3e9);}function Le(_0x41c8bc,_0x2196a2){const _0x2dbf3c=_0x1edc1f;var _0x43cc62;let _0x73b7ab=k(_0x2196a2);return Ie(_0x41c8bc,_0x2196a2)[_0x2dbf3c(0x258)](_0x26a0c1=>{const _0x4f6127=_0x2dbf3c;_0x26a0c1[_0x4f6127(0x1f3)]=Fe(_0x26a0c1[_0x4f6127(0x1f3)]);}),M(_0x41c8bc,_0x73b7ab,_0x73b7ab+0x1),M(_0x41c8bc,_0x2196a2[_0x2dbf3c(0x209)],_0x2196a2[_0x2dbf3c(0x209)]+0x1),_0x41c8bc['blockRanges']=(_0x43cc62=_0x41c8bc['blockRanges'])==null?void 0x0:_0x43cc62['filter'](_0x46b16e=>_0x46b16e[_0x2dbf3c(0x1e4)]!==_0x2196a2['blockId']),_0x2196a2[_0x2dbf3c(0x209)];}function T(_0x4e21ea){const _0x21f041=_0x1edc1f;return{..._0x4e21ea,'body':_0x4e21ea['body']?Re(_0x4e21ea[_0x21f041(0x1bf)]):_0x4e21ea[_0x21f041(0x1bf)]};}function Re(_0x474c38){const _0x2f6a46=_0x1edc1f;var _0x2f7a38,_0xa190d0,_0x5a0484,_0x16f43f,_0x521dc4,_0x2e53b0,_0x33fcba,_0xfadd5b,_0x443b8c;return{..._0x474c38,'paragraphs':(_0x2f7a38=_0x474c38['paragraphs'])==null?void 0x0:_0x2f7a38[_0x2f6a46(0x200)](_0xfbfec4=>({..._0xfbfec4,'bullet':E(_0xfbfec4[_0x2f6a46(0x22c)]),'paragraphStyle':E(_0xfbfec4['paragraphStyle'])})),'sectionBreaks':(_0xa190d0=_0x474c38[_0x2f6a46(0x1f2)])==null?void 0x0:_0xa190d0[_0x2f6a46(0x200)](_0x547762=>({..._0x547762})),'textRuns':(_0x5a0484=_0x474c38[_0x2f6a46(0x235)])==null?void 0x0:_0x5a0484['map'](_0x21c40b=>({..._0x21c40b})),'tables':(_0x16f43f=_0x474c38[_0x2f6a46(0x1b7)])==null?void 0x0:_0x16f43f[_0x2f6a46(0x200)](_0x1ddc7d=>({..._0x1ddc7d})),'columnGroups':(_0x521dc4=_0x474c38[_0x2f6a46(0x24c)])==null?void 0x0:_0x521dc4['map'](_0x1ca51e=>{const _0x3ba0e2=_0x2f6a46;var _0x4ee516;return{..._0x1ca51e,'columns':(_0x4ee516=_0x1ca51e[_0x3ba0e2(0x22e)])==null?void 0x0:_0x4ee516['map'](_0x3a047a=>E(_0x3a047a))};}),'blockRanges':(_0x2e53b0=_0x474c38[_0x2f6a46(0x1ba)])==null?void 0x0:_0x2e53b0[_0x2f6a46(0x200)](_0xe60677=>({..._0xe60677})),'customRanges':(_0x33fcba=_0x474c38['customRanges'])==null?void 0x0:_0x33fcba[_0x2f6a46(0x200)](_0x49d08f=>({..._0x49d08f})),'customDecorations':(_0xfadd5b=_0x474c38[_0x2f6a46(0x24f)])==null?void 0x0:_0xfadd5b['map'](_0x5ad929=>({..._0x5ad929})),'customBlocks':(_0x443b8c=_0x474c38[_0x2f6a46(0x1c4)])==null?void 0x0:_0x443b8c['map'](_0x256944=>({..._0x256944}))};}function E(_0x594720){const _0x2bd9ac=_0x1edc1f;return Array[_0x2bd9ac(0x215)](_0x594720)?_0x594720[_0x2bd9ac(0x200)](_0x51cb5c=>E(_0x51cb5c)):!_0x594720||typeof _0x594720!=_0x2bd9ac(0x1d0)?_0x594720:Object[_0x2bd9ac(0x1f6)](Object[_0x2bd9ac(0x1c9)](_0x594720)['map'](([_0x1e7ee8,_0x2f217d])=>[_0x1e7ee8,E(_0x2f217d)]));}function D(_0x23da4c){const _0x33d802=_0x1edc1f;if(!_0x23da4c[_0x33d802(0x1bf)])throw Error(_0x33d802(0x1dc));return _0x23da4c[_0x33d802(0x1bf)];}function ze(_0x1e2bce,_0x3295fa,_0x5c7f26,_0x4a0e7f='convert-paragraph'){const _0x301df6=_0x1edc1f;if(_0x3295fa==null||_0x5c7f26==null){let _0x2b733a=Ve(_0x1e2bce);return{'startOffset':_0x2b733a,'endOffset':_0x2b733a};}let _0x4d1e9a=Math[_0x301df6(0x21d)](_0x3295fa,_0x5c7f26),_0x179487=Math['max'](_0x3295fa,_0x5c7f26),_0x27816b=Ke(_0x1e2bce,_0x4d1e9a,_0x179487);return _0x4d1e9a===_0x179487?_0x4a0e7f===_0x301df6(0x23b)?{'startOffset':_0x4d1e9a,'endOffset':_0x179487}:Be(_0x1e2bce,_0x4d1e9a,_0x27816b):Ue(_0x1e2bce,_0x4d1e9a,_0x179487,_0x27816b);}function Be(_0x313d01,_0x4ab787,_0x1fd7e8){const _0x1b5f80=_0x1edc1f;let _0x14071c=We(_0x313d01,_0x4ab787);if(_0x14071c){let _0x1c5a35=O(_0x313d01,_0x14071c,_0x1fd7e8);if(_0x1c5a35<_0x14071c['startIndex'])return{'startOffset':_0x1c5a35,'endOffset':_0x1fd7e8?Math[_0x1b5f80(0x21d)](_0x14071c['startIndex']+0x1,_0x1fd7e8['endOffset']):_0x14071c[_0x1b5f80(0x209)]+0x1};}let _0x5e3b24=_0x4ab787===0x0&&_0x313d01[_0x1b5f80(0x213)][0x0]===_0x43b06f[_0x1b5f80(0x202)]?0x1:_0x4ab787;return{'startOffset':_0x5e3b24,'endOffset':_0x5e3b24};}function Ve(_0x4bd124){const _0x30a261=_0x1edc1f;return _0x4bd124[_0x30a261(0x213)]['endsWith'](_0x43b06f[_0x30a261(0x221)])?Math['max'](0x0,_0x4bd124[_0x30a261(0x213)][_0x30a261(0x1d8)]-0x1):_0x4bd124[_0x30a261(0x213)][_0x30a261(0x1d8)];}function He(_0x2772cd,_0x55222c,_0x3fa04a){const _0x57f7cd=_0x1edc1f;var _0x25893e;let _0x58d03f=Math['min'](_0x55222c,_0x3fa04a),_0x1e2a6f=Math[_0x57f7cd(0x255)](_0x55222c,_0x3fa04a);return!!((_0x25893e=_0x2772cd[_0x57f7cd(0x1b7)])!=null&&_0x25893e['some'](_0x1c9ab3=>_0x58d03f>_0x1c9ab3['startIndex']&&_0x58d03f<_0x1c9ab3['endIndex']||_0x1e2a6f>_0x1c9ab3['startIndex']&&_0x1e2a6f<_0x1c9ab3['endIndex']||_0x58d03f<=_0x1c9ab3[_0x57f7cd(0x209)]&&_0x1e2a6f>=_0x1c9ab3['endIndex']));}function Ue(_0x5caaa6,_0x37be9d,_0x4197d9,_0x3d98f7){const _0x222982=_0x1edc1f;var _0x5c03ad,_0x48d39a;let _0x2f18d3=[...(_0x5c03ad=_0x5caaa6[_0x222982(0x1c7)])==null?[]:_0x5c03ad]['sort']((_0x39e6c7,_0x58f275)=>_0x39e6c7['startIndex']-_0x58f275[_0x222982(0x209)]),_0x6d6f7c=_0xfa281d(_0x5caaa6),_0x1b0422=_0x2f18d3[_0x222982(0x212)](_0x511870=>O(_0x5caaa6,_0x511870,_0x3d98f7,_0x6d6f7c)<=_0x37be9d&&_0x37be9d<=_0x511870[_0x222982(0x209)]),_0x10e20f=(_0x48d39a=_0x2f18d3[_0x222982(0x212)](_0x1dae8f=>_0x1dae8f[_0x222982(0x209)]>=_0x4197d9-0x1))==null?_0x2f18d3[_0x2f18d3[_0x222982(0x1d8)]-0x1]:_0x48d39a;return{'startOffset':_0x1b0422?O(_0x5caaa6,_0x1b0422,_0x3d98f7,_0x6d6f7c):_0x37be9d,'endOffset':_0x10e20f?Ge(_0x10e20f,_0x3d98f7):_0x4197d9};}function We(_0x2cfd43,_0x30ae6b){const _0x555386=_0x1edc1f;var _0x574a76;let _0x407150=[...(_0x574a76=_0x2cfd43[_0x555386(0x1c7)])==null?[]:_0x574a76][_0x555386(0x1ef)]((_0x4ad069,_0x2d67a5)=>_0x4ad069[_0x555386(0x209)]-_0x2d67a5['startIndex']),_0x3072bf=_0xfa281d(_0x2cfd43);return _0x407150[_0x555386(0x212)](_0x34f090=>{const _0x1f3156=_0x555386;var _0x3954c2;return((_0x3954c2=_0x3072bf['get'](_0x34f090[_0x1f3156(0x209)]))==null?0x0:_0x3954c2)<=_0x30ae6b&&_0x30ae6b<=_0x34f090[_0x1f3156(0x209)];});}function O(_0x195e3c,_0x8b32e6,_0x29a97c,_0x43aa1f){const _0x4422f6=_0x1edc1f;var _0x29cb00;let _0x5f1912=(_0x29cb00=_0x43aa1f==null?void 0x0:_0x43aa1f[_0x4422f6(0x1c5)](_0x8b32e6[_0x4422f6(0x209)]))==null?_0x120216(_0x195e3c,_0x8b32e6):_0x29cb00;return _0x29a97c?Math['max'](_0x5f1912,_0x29a97c[_0x4422f6(0x232)]):_0x5f1912;}function _0x8e72(){const _0x39c2a7=['constructor','config','range','filter','customBlocks','get','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','paragraphs','endIndex','entries','CODE','indentEnd','_resourceManagerService','reduce','33414zhlrmf','delete','object','getUnit','indentStart','asObservable','paragraphStartIndex','spaceBelow','customRanges','clear','length','direction','syncExecuteCommand','docs-code.command.insert','Document\x20body\x20is\x20required','36cpAREC','32PQMKrg','prototype','getCurrentUnitOfType','3169592BrLEop','registerCommand','endOffset','blockId','125796jcPnRf','parse','endTokenOffset','dispose','_setResource','_resources','next','codes','624555AgKcGI','deserialize','sort','setConfig','getSnapshot','sectionBreaks','paragraphStyle','_initResource','_docsCodeModel','fromEntries','replaceDocRanges','docs-code.command.insert-below','getCodeConfig','removeUnit','nextMetadata','right','version','previousDocumentData','toPrimitive','map','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','PARAGRAPH','insertOp','getParagraphsInRange','_configService','726450eooLjA','getUnitId','docs-code.command.cancel-empty-paragraph','startIndex','paragraph','8596379eAHdDC','insert','_change$','setCodeConfig','removeCode','blockType','set','find','dataStream','paragraphId','isArray','startTokenOffset','docs-code.command.remove','replaceOp','docs-code.command.update','slice','insertionMode','compose','min','symbol','insertLength','defineProperty','SECTION_BREAK','decorate','getTextRanges','_config','add','1.0.0-alpha.5','packageName','deleteLength','getInstance','pluginName','default','bullet','some','columns','TABLE_CELL_START','UNIVER_DOC','docs-code.command.consume-boundary-delete','startOffset','type','TABLE_CELL_END','textRuns','_injector','COMMAND','@univerjs-pro/docs-code','stringify','DOC_CODE_PLUGIN','insert-new','start','disposeWithMe','427rcytkD','cursorOffset','editOp','BLOCK_END','unitId','nextDocumentData','documentData','handler','function','metadata','retain','_commandService','keys','string','columnGroups','model','commandService','customDecorations','spaceAbove','BLOCK_START','javascript','monospace','102tsDXdL','max','18eXrUOc','push','forEach','left','tables','selectionManager','docs-code.config','blockRanges','getBody','1691340ekNFtK','textStyle','serialize','body'];_0x8e72=function(){return _0x39c2a7;};return _0x8e72();}function Ge(_0x293382,_0x4a7339){const _0x36c01d=_0x1edc1f;let _0x36086a=_0x293382['startIndex']+0x1;return _0x4a7339?Math[_0x36c01d(0x21d)](_0x36086a,_0x4a7339[_0x36c01d(0x1e3)]):_0x36086a;}function Ke(_0x51acc4,_0x4726ef,_0x122a9a){const _0x39e9be=_0x1edc1f;let _0x3451b8=qe(_0x51acc4,_0x4726ef),_0x282a9d=qe(_0x51acc4,_0x4726ef===_0x122a9a?_0x122a9a:Math[_0x39e9be(0x255)](_0x4726ef,_0x122a9a-0x1));if(!(!_0x3451b8&&!_0x282a9d)){if(!_0x3451b8||!_0x282a9d||_0x3451b8[_0x39e9be(0x216)]!==_0x282a9d[_0x39e9be(0x216)]||_0x3451b8[_0x39e9be(0x1e7)]!==_0x282a9d[_0x39e9be(0x1e7)])throw new w();return _0x3451b8;}}function qe(_0x327038,_0x244c8a){const _0x53ef0e=_0x1edc1f;let _0x1a9b4f=_0x327038[_0x53ef0e(0x213)],_0x44e4ca=-0x1;for(let _0x36c1b3=Math['min'](_0x244c8a,_0x1a9b4f['length']-0x1);_0x36c1b3>=0x0;_0x36c1b3--){let _0x565fd2=_0x1a9b4f[_0x36c1b3];if(_0x565fd2===_0x43b06f[_0x53ef0e(0x234)])return;if(_0x565fd2===_0x43b06f[_0x53ef0e(0x22f)]){_0x44e4ca=_0x36c1b3;break;}}if(_0x44e4ca<0x0)return;let _0x301ca3=_0x1a9b4f['indexOf'](_0x43b06f[_0x53ef0e(0x234)],_0x44e4ca+0x1);if(!(_0x301ca3<0x0||_0x244c8a<_0x44e4ca+0x1||_0x244c8a>_0x301ca3-0x1))return{'startOffset':_0x44e4ca+0x1,'endOffset':Math['max'](_0x44e4ca+0x1,_0x301ca3-0x1),'startTokenOffset':_0x44e4ca,'endTokenOffset':_0x301ca3};}function k(_0x1ceff5){const _0x3abe2e=_0x1edc1f;return _0x4a1bb2(_0x1ceff5)[_0x3abe2e(0x1e3)]-0x1;}function Je(_0x3cfc2b,_0x851298,_0x14102e,_0x44e5d1){const _0x591bfb=_0x1edc1f;var _0x3fc070;let _0x5dd03d=k(_0x851298),_0x334d6c=((_0x3fc070=_0x3cfc2b['paragraphs'])==null?[]:_0x3fc070)[_0x591bfb(0x212)](_0x1c9ad0=>_0x1c9ad0['startIndex']===_0x5dd03d+0x1);if(!_0x334d6c||_0x44e5d1!=null&&_0x334d6c[_0x591bfb(0x209)]!==_0x44e5d1||_0x14102e!=null&&(_0x14102e<_0x5dd03d||_0x14102e>_0x334d6c[_0x591bfb(0x209)]+0x1)||_0x3cfc2b[_0x591bfb(0x213)][_0x334d6c['startIndex']]!==_0x43b06f['PARAGRAPH'])return null;let _0x2edc6c=_0x120216(_0x3cfc2b,_0x334d6c),_0x386a2f=_0x3cfc2b[_0x591bfb(0x213)][_0x591bfb(0x21a)](_0x2edc6c,_0x334d6c[_0x591bfb(0x209)]);return Array['from'](_0x386a2f)['every'](_0x28c881=>_0x28c881===_0x43b06f['BLOCK_END'])?{'paragraph':_0x334d6c,'endTokenOffset':_0x5dd03d}:null;}function A(_0x8b786,_0x1277d4){const _0x482353=_0x1edc1f;var _0x521d0f;let _0x71585c=k(_0x1277d4),_0x5272ee=_0x8b786[_0x482353(0x213)][_0x71585c+0x1];_0x5272ee!==_0x43b06f[_0x482353(0x221)]&&_0x5272ee!==void 0x0||j(_0x8b786,_0x71585c+0x1,_0x43b06f[_0x482353(0x202)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x5cfb3a(new Set((_0x521d0f=_0x8b786[_0x482353(0x1c7)])==null?void 0x0:_0x521d0f[_0x482353(0x200)](_0x1f1ab3=>_0x1f1ab3[_0x482353(0x214)])))}]});}function j(_0x4e0ad8,_0x41ce78,_0x376913,_0x5a3652={}){const _0x923f57=_0x1edc1f;var _0x3dfb23,_0x156807;if(_0x376913){if(_0x4e0ad8[_0x923f57(0x213)]=''+_0x4e0ad8[_0x923f57(0x213)][_0x923f57(0x21a)](0x0,_0x41ce78)+_0x376913+_0x4e0ad8[_0x923f57(0x213)][_0x923f57(0x21a)](_0x41ce78),Ye(_0x4e0ad8,_0x41ce78,_0x376913[_0x923f57(0x1d8)]),(_0x3dfb23=_0x5a3652[_0x923f57(0x1c7)])!=null&&_0x3dfb23['length']){var _0x560979;_0x4e0ad8['paragraphs']=[...(_0x560979=_0x4e0ad8['paragraphs'])==null?[]:_0x560979,..._0x5a3652[_0x923f57(0x1c7)][_0x923f57(0x200)](_0x1e1138=>({..._0x1e1138,'startIndex':_0x1e1138[_0x923f57(0x209)]+_0x41ce78}))][_0x923f57(0x1ef)]((_0x581a7f,_0x493f48)=>_0x581a7f['startIndex']-_0x493f48[_0x923f57(0x209)]);}if((_0x156807=_0x5a3652['blockRanges'])!=null&&_0x156807['length']){var _0x5eb810;_0x4e0ad8[_0x923f57(0x1ba)]=[...(_0x5eb810=_0x4e0ad8[_0x923f57(0x1ba)])==null?[]:_0x5eb810,..._0x5a3652[_0x923f57(0x1ba)][_0x923f57(0x200)](_0x23af5b=>({..._0x23af5b,'startIndex':_0x23af5b[_0x923f57(0x209)]+_0x41ce78,'endIndex':_0x23af5b[_0x923f57(0x1c8)]+_0x41ce78}))][_0x923f57(0x1ef)]((_0x25efdc,_0x1aa5bc)=>_0x25efdc[_0x923f57(0x209)]-_0x1aa5bc[_0x923f57(0x209)]);}}}function M(_0x2107f2,_0x5a9d66,_0x605d1b){const _0xa9c126=_0x1edc1f;let _0x5efc7d=_0x605d1b-_0x5a9d66;_0x2107f2[_0xa9c126(0x213)]=''+_0x2107f2[_0xa9c126(0x213)][_0xa9c126(0x21a)](0x0,_0x5a9d66)+_0x2107f2[_0xa9c126(0x213)][_0xa9c126(0x21a)](_0x605d1b),Xe(_0x2107f2,_0x5a9d66,_0x5efc7d);}function Ye(_0x27522b,_0x31bdb3,_0xe28e98){const _0xa52bbd=_0x1edc1f;_0x27522b[_0xa52bbd(0x1c7)]=N(_0x27522b[_0xa52bbd(0x1c7)],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x1f2)]=N(_0x27522b[_0xa52bbd(0x1f2)],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x1c4)]=N(_0x27522b[_0xa52bbd(0x1c4)],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x235)]=Ze(_0x27522b[_0xa52bbd(0x235)],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x1b7)]=Qe(_0x27522b['tables'],_0x31bdb3,_0xe28e98),_0x27522b['columnGroups']=F(_0x27522b['columnGroups'],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x1d6)]=F(_0x27522b['customRanges'],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x24f)]=F(_0x27522b['customDecorations'],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x1ba)]=F(_0x27522b[_0xa52bbd(0x1ba)],_0x31bdb3,_0xe28e98);}function Xe(_0x585b0f,_0x413ff8,_0x1662bf){const _0x32b9b2=_0x1edc1f;var _0x4a2d3a,_0x3af86f;_0x585b0f[_0x32b9b2(0x1c7)]=P(_0x585b0f[_0x32b9b2(0x1c7)],_0x413ff8,_0x1662bf),_0x585b0f['sectionBreaks']=P(_0x585b0f[_0x32b9b2(0x1f2)],_0x413ff8,_0x1662bf),_0x585b0f[_0x32b9b2(0x1c4)]=P(_0x585b0f[_0x32b9b2(0x1c4)],_0x413ff8,_0x1662bf),_0x585b0f[_0x32b9b2(0x235)]=(_0x4a2d3a=$e((_0x3af86f=_0x585b0f[_0x32b9b2(0x235)])==null?void 0x0:_0x3af86f[_0x32b9b2(0x200)](_0x532b78=>({..._0x532b78,'startIndex':_0x532b78['st'],'endIndex':_0x532b78['ed']})),_0x413ff8,_0x1662bf))==null?void 0x0:_0x4a2d3a[_0x32b9b2(0x200)](_0x1304a0=>{let {startIndex:_0x4a4620,endIndex:_0x3eb96d,..._0x7b8602}=_0x1304a0;return{..._0x7b8602,'st':_0x4a4620,'ed':_0x3eb96d};}),_0x585b0f['tables']=$e(_0x585b0f[_0x32b9b2(0x1b7)],_0x413ff8,_0x1662bf),_0x585b0f['columnGroups']=I(_0x585b0f['columnGroups'],_0x413ff8,_0x1662bf),_0x585b0f[_0x32b9b2(0x1d6)]=I(_0x585b0f[_0x32b9b2(0x1d6)],_0x413ff8,_0x1662bf),_0x585b0f[_0x32b9b2(0x24f)]=I(_0x585b0f[_0x32b9b2(0x24f)],_0x413ff8,_0x1662bf),_0x585b0f[_0x32b9b2(0x1ba)]=I(_0x585b0f[_0x32b9b2(0x1ba)],_0x413ff8,_0x1662bf);}function N(_0x173330,_0x576081,_0x398334){const _0x11ab3e=_0x1edc1f;return _0x173330==null?void 0x0:_0x173330[_0x11ab3e(0x200)](_0x2b2737=>_0x2b2737[_0x11ab3e(0x209)]>=_0x576081?{..._0x2b2737,'startIndex':_0x2b2737[_0x11ab3e(0x209)]+_0x398334}:_0x2b2737);}function P(_0x4362bb,_0x2d3740,_0x42bbb5){const _0x231117=_0x1edc1f;let _0x5e213c=_0x2d3740+_0x42bbb5;return _0x4362bb==null?void 0x0:_0x4362bb[_0x231117(0x200)](_0x44647f=>_0x44647f[_0x231117(0x209)]>=_0x2d3740&&_0x44647f[_0x231117(0x209)]<_0x5e213c?null:_0x44647f['startIndex']>=_0x5e213c?{..._0x44647f,'startIndex':_0x44647f[_0x231117(0x209)]-_0x42bbb5}:_0x44647f)[_0x231117(0x1c3)](_0x38c18d=>_0x38c18d!=null);}function Ze(_0x28329,_0x135f68,_0x2921a6){const _0x266ff6=_0x1edc1f;return _0x28329==null?void 0x0:_0x28329[_0x266ff6(0x200)](_0x5ad48=>_0x5ad48['st']>=_0x135f68?{..._0x5ad48,'st':_0x5ad48['st']+_0x2921a6,'ed':_0x5ad48['ed']+_0x2921a6}:_0x5ad48['ed']>_0x135f68?{..._0x5ad48,'ed':_0x5ad48['ed']+_0x2921a6}:_0x5ad48);}function F(_0x9f8b7c,_0x49427f,_0x3614a6){const _0x5e982f=_0x1edc1f;return _0x9f8b7c==null?void 0x0:_0x9f8b7c[_0x5e982f(0x200)](_0x204faf=>_0x5bff0d(_0x204faf,_0x49427f,_0x3614a6));}function Qe(_0x41a0fc,_0x17fe16,_0x5c4771){const _0x1e168b=_0x1edc1f;return _0x41a0fc==null?void 0x0:_0x41a0fc[_0x1e168b(0x200)](_0x52cb67=>_0x2dea21(_0x52cb67,_0x17fe16,_0x5c4771));}function I(_0x5b7bca,_0x4e2c5b,_0x305bce){const _0x5a5875=_0x1edc1f;return _0x5b7bca==null?void 0x0:_0x5b7bca[_0x5a5875(0x200)](_0x54a1d4=>_0x3a6def(_0x54a1d4,_0x4e2c5b,_0x305bce))[_0x5a5875(0x1c3)](_0x5a48fc=>_0x5a48fc!=null);}function $e(_0x580c67,_0x3e38ae,_0x35be3f){const _0x9aad91=_0x1edc1f;return _0x580c67==null?void 0x0:_0x580c67[_0x9aad91(0x200)](_0x2ad4ad=>_0x1c7981(_0x2ad4ad,_0x3e38ae,_0x35be3f))['filter'](_0x17dfb4=>_0x17dfb4!=null);}function L(_0x3b899a){'@babel/helpers - typeof';return L=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x299715){return typeof _0x299715;}:function(_0x213cdf){const _0x4280e8=_0x23a6;return _0x213cdf&&typeof Symbol==_0x4280e8(0x246)&&_0x213cdf[_0x4280e8(0x1c0)]===Symbol&&_0x213cdf!==Symbol[_0x4280e8(0x1df)]?_0x4280e8(0x21e):typeof _0x213cdf;},L(_0x3b899a);}function et(_0x6d9f6e,_0x591df4){const _0x159597=_0x1edc1f;if(L(_0x6d9f6e)!=_0x159597(0x1d0)||!_0x6d9f6e)return _0x6d9f6e;var _0xe02695=_0x6d9f6e[Symbol[_0x159597(0x1ff)]];if(_0xe02695!==void 0x0){var _0x51aced=_0xe02695['call'](_0x6d9f6e,_0x591df4||_0x159597(0x22b));if(L(_0x51aced)!=_0x159597(0x1d0))return _0x51aced;throw TypeError(_0x159597(0x201));}return(_0x591df4===_0x159597(0x24b)?String:Number)(_0x6d9f6e);}function tt(_0x5131ee){const _0x6db2e1=_0x1edc1f;var _0x2762ca=et(_0x5131ee,_0x6db2e1(0x24b));return L(_0x2762ca)==_0x6db2e1(0x21e)?_0x2762ca:_0x2762ca+'';}function R(_0x52061a,_0x301eb9,_0x3666f7){const _0x5a7a91=_0x1edc1f;return(_0x301eb9=tt(_0x301eb9))in _0x52061a?Object[_0x5a7a91(0x220)](_0x52061a,_0x301eb9,{'value':_0x3666f7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x52061a[_0x301eb9]=_0x3666f7,_0x52061a;}var z=class extends _0x11f1e7{constructor(..._0x4293ae){const _0xa9b073=_0x1edc1f;super(..._0x4293ae),R(this,_0xa9b073(0x1ea),new Map()),R(this,'_change$',new _0x3b77df()),R(this,'change$',this['_change$'][_0xa9b073(0x1d3)]());}[_0x1edc1f(0x1f9)](_0x137ef2,_0x573a48){const _0x6ba313=_0x1edc1f;return x(this[_0x6ba313(0x1ea)][_0x6ba313(0x1c5)](_0x137ef2))[_0x6ba313(0x1ec)][_0x573a48];}[_0x1edc1f(0x20e)](_0x59afdc,_0x48b802,_0x138a2a){const _0x47e1de=_0x1edc1f;this[_0x47e1de(0x1e9)](_0x59afdc,_0x48b802,S(this[_0x47e1de(0x1ea)][_0x47e1de(0x1c5)](_0x59afdc),_0x48b802,_0x138a2a));}[_0x1edc1f(0x20f)](_0x2b8a47,_0x17bdfd){const _0x52486f=_0x1edc1f;this[_0x52486f(0x1e9)](_0x2b8a47,_0x17bdfd,C(this['_resources']['get'](_0x2b8a47),_0x17bdfd));}['serialize'](_0x1127c7){const _0x36b5c4=_0x1edc1f;return x(this[_0x36b5c4(0x1ea)][_0x36b5c4(0x1c5)](_0x1127c7));}[_0x1edc1f(0x1ee)](_0x167424,_0x3c0f94){const _0x2805ee=_0x1edc1f;this[_0x2805ee(0x1ea)]['set'](_0x167424,x(_0x3c0f94)),this[_0x2805ee(0x20d)][_0x2805ee(0x1eb)]({'unitId':_0x167424});}[_0x1edc1f(0x1fa)](_0x11ab7f){const _0xa509e2=_0x1edc1f;this['_resources'][_0xa509e2(0x1cf)](_0x11ab7f),this[_0xa509e2(0x20d)][_0xa509e2(0x1eb)]({'unitId':_0x11ab7f});}[_0x1edc1f(0x1e8)](){const _0x687d96=_0x1edc1f;super['dispose'](),this[_0x687d96(0x1ea)][_0x687d96(0x1d7)](),this[_0x687d96(0x20d)]['complete']();}['_setResource'](_0x3222d2,_0x3d5508,_0x30019d){const _0x4fe003=_0x1edc1f;this[_0x4fe003(0x1ea)][_0x4fe003(0x211)](_0x3222d2,_0x30019d),this[_0x4fe003(0x20d)]['next']({'unitId':_0x3222d2,'blockId':_0x3d5508});}};const nt={'id':_0x1edc1f(0x1f8),'type':_0x3aa002[_0x1edc1f(0x237)],'handler':_0x1299d4=>{const _0x6ca46c=_0x1edc1f;var _0x1cbe0f;if(_0xaf3991(G(_0x1299d4)))return!0x1;let _0x5de034=_0x517640(_0x1299d4);if(_0x5de034)return _0x1299d4[_0x6ca46c(0x1c5)](_0x1d61d6)[_0x6ca46c(0x1da)](B['id'],{'startOffset':_0x5de034['startOffset'],'endOffset':_0x5de034[_0x6ca46c(0x1e3)],'insertionMode':_0x6ca46c(0x23b),'unitId':_0x5de034['unitId']});let _0x5b8e57=lt(_0x1299d4);if(!_0x5b8e57)return!0x1;let _0xd7e1ed=(_0x1cbe0f=_0x1299d4[_0x6ca46c(0x1c5)](_0x45d141)[_0x6ca46c(0x1e0)](_0x41a83a[_0x6ca46c(0x230)]))==null?void 0x0:_0x1cbe0f[_0x6ca46c(0x1bb)](),_0x4dc5a3=_0xd7e1ed?_0x2be263(_0xd7e1ed,_0x5b8e57):_0x5b8e57[_0x6ca46c(0x209)]+0x1;return _0x1299d4[_0x6ca46c(0x1c5)](_0x1d61d6)['syncExecuteCommand'](B['id'],{'startOffset':_0x4dc5a3,'endOffset':_0x4dc5a3});}},rt={'id':_0x1edc1f(0x231),'type':_0x3aa002[_0x1edc1f(0x237)],'handler':()=>!0x0},B={'id':_0x1edc1f(0x1db),'type':_0x3aa002[_0x1edc1f(0x237)],'handler':(_0x51d502,_0x5cbfc6)=>{const _0x2c49b1=_0x1edc1f;var _0x314c02;let _0x1c88e1=W(_0x51d502,_0x5cbfc6==null?void 0x0:_0x5cbfc6[_0x2c49b1(0x242)]);if(!_0x1c88e1)return!0x1;let _0x50f317=G(_0x51d502);if(_0xaf3991(_0x50f317))return!0x1;let _0x11a8b9=_0x1c88e1['model'][_0x2c49b1(0x1be)](_0x1c88e1['unitId']),_0x1f840f=ot(_0x5cbfc6,_0x50f317),_0x58d62b=st(_0x1c88e1['previousDocumentData'],_0x1f840f);if(_0x58d62b){if(_0x58d62b[_0x2c49b1(0x210)]!==_0x37a99f[_0x2c49b1(0x1ca)])return!0x1;let _0x45126f=Ee({'blockId':_0x58d62b[_0x2c49b1(0x1e4)],'documentData':_0x1c88e1[_0x2c49b1(0x1fe)],'metadata':_0x11a8b9});if(!_0x45126f)return!0x1;let _0x337949=Y(_0x1c88e1[_0x2c49b1(0x24e)],_0x1c88e1[_0x2c49b1(0x1b8)],_0x1c88e1[_0x2c49b1(0x242)],_0x1c88e1[_0x2c49b1(0x1fe)],_0x45126f[_0x2c49b1(0x243)],B['id'],_0x45126f['cursorOffset']);return _0x337949&&_0x45126f[_0x2c49b1(0x1fb)]&&_0x1c88e1[_0x2c49b1(0x24d)][_0x2c49b1(0x1ee)](_0x1c88e1[_0x2c49b1(0x242)],_0x45126f['nextMetadata']),_0x337949;}let _0x52408c=(_0x314c02=_0x5cbfc6==null?void 0x0:_0x5cbfc6[_0x2c49b1(0x1e4)])==null?_0x35a556(0x6):_0x314c02,_0x22d24b;try{_0x22d24b=xe({'blockId':_0x52408c,'config':_0x5cbfc6==null?void 0x0:_0x5cbfc6[_0x2c49b1(0x1c1)],'documentData':_0x1c88e1['previousDocumentData'],'endOffset':_0x1f840f==null?void 0x0:_0x1f840f[_0x2c49b1(0x1e3)],'insertionMode':_0x5cbfc6==null?void 0x0:_0x5cbfc6[_0x2c49b1(0x21b)],'metadata':_0x11a8b9,'startOffset':_0x1f840f==null?void 0x0:_0x1f840f[_0x2c49b1(0x232)]});}catch(_0x1a8da2){if(_0x1a8da2 instanceof w)return!0x1;throw _0x1a8da2;}let _0x21e3eb=Y(_0x1c88e1[_0x2c49b1(0x24e)],_0x1c88e1['selectionManager'],_0x1c88e1[_0x2c49b1(0x242)],_0x1c88e1[_0x2c49b1(0x1fe)],_0x22d24b[_0x2c49b1(0x243)],B['id'],_0x22d24b['cursorOffset']);return _0x21e3eb&&_0x22d24b[_0x2c49b1(0x1fb)]&&_0x1c88e1[_0x2c49b1(0x24d)][_0x2c49b1(0x1ee)](_0x1c88e1[_0x2c49b1(0x242)],_0x22d24b[_0x2c49b1(0x1fb)]),_0x21e3eb;}},it={'id':_0x1edc1f(0x219),'type':_0x3aa002[_0x1edc1f(0x237)],'handler':(_0x2b4099,_0x62152c)=>{const _0x427aa2=_0x1edc1f;if(!_0x62152c)return!0x1;let _0x1c4820=W(_0x2b4099,_0x62152c[_0x427aa2(0x242)]);if(!_0x1c4820)return!0x1;let _0xd96c8=Te({'blockId':_0x62152c[_0x427aa2(0x1e4)],'config':_0x62152c[_0x427aa2(0x1c1)],'documentData':_0x1c4820[_0x427aa2(0x1fe)],'metadata':_0x1c4820[_0x427aa2(0x24d)][_0x427aa2(0x1be)](_0x1c4820[_0x427aa2(0x242)])});return _0xd96c8[_0x427aa2(0x1fb)]&&_0x1c4820[_0x427aa2(0x24d)][_0x427aa2(0x1ee)](_0x1c4820[_0x427aa2(0x242)],_0xd96c8[_0x427aa2(0x1fb)]),!0x0;}},at={'id':'docs-code.command.exit','type':_0x3aa002[_0x1edc1f(0x237)],'handler':(_0x456bcb,_0x29383d)=>V[_0x1edc1f(0x245)](_0x456bcb,_0x29383d)},V={'id':'docs-code.command.unwrap','type':_0x3aa002[_0x1edc1f(0x237)],'handler':(_0x133b58,_0x5a87dd)=>{const _0x476c71=_0x1edc1f;if(!_0x5a87dd)return!0x1;let _0x2c5dfe=W(_0x133b58,_0x5a87dd==null?void 0x0:_0x5a87dd[_0x476c71(0x242)]);if(!_0x2c5dfe)return!0x1;let _0x16d910=Ee({'blockId':_0x5a87dd[_0x476c71(0x1e4)],'documentData':_0x2c5dfe[_0x476c71(0x1fe)],'metadata':_0x2c5dfe[_0x476c71(0x24d)][_0x476c71(0x1be)](_0x2c5dfe[_0x476c71(0x242)])});if(!_0x16d910)return!0x1;let _0x5bd894=Y(_0x2c5dfe[_0x476c71(0x24e)],_0x2c5dfe[_0x476c71(0x1b8)],_0x2c5dfe[_0x476c71(0x242)],_0x2c5dfe[_0x476c71(0x1fe)],_0x16d910['nextDocumentData'],V['id'],_0x16d910['cursorOffset']);return _0x5bd894&&_0x16d910[_0x476c71(0x1fb)]&&_0x2c5dfe['model'][_0x476c71(0x1ee)](_0x2c5dfe[_0x476c71(0x242)],_0x16d910[_0x476c71(0x1fb)]),_0x5bd894;}},H={'id':_0x1edc1f(0x217),'type':_0x3aa002['COMMAND'],'handler':(_0x228bfb,_0x5b4858)=>{const _0x594854=_0x1edc1f;if(!_0x5b4858)return!0x1;let _0x365f56=W(_0x228bfb,_0x5b4858==null?void 0x0:_0x5b4858[_0x594854(0x242)]);if(!_0x365f56)return!0x1;let _0x116f05=De({'blockId':_0x5b4858['blockId'],'documentData':_0x365f56[_0x594854(0x1fe)],'metadata':_0x365f56[_0x594854(0x24d)][_0x594854(0x1be)](_0x365f56[_0x594854(0x242)])});if(!_0x116f05)return!0x1;let _0x4782bf=Y(_0x365f56[_0x594854(0x24e)],_0x365f56[_0x594854(0x1b8)],_0x365f56[_0x594854(0x242)],_0x365f56[_0x594854(0x1fe)],_0x116f05[_0x594854(0x243)],H['id'],_0x116f05[_0x594854(0x23f)]);return _0x4782bf&&_0x116f05[_0x594854(0x1fb)]&&_0x365f56['model']['deserialize'](_0x365f56['unitId'],_0x116f05[_0x594854(0x1fb)]),_0x4782bf;}},U={'id':_0x1edc1f(0x208),'type':_0x3aa002[_0x1edc1f(0x237)],'handler':(_0x2665c4,_0x492459)=>{const _0x1fb50d=_0x1edc1f;var _0x2358ee,_0x19c2dd;let _0x38ef90=W(_0x2665c4,_0x492459==null?void 0x0:_0x492459['unitId']);if(!_0x38ef90)return!0x1;let _0x4e4483=(_0x2358ee=_0x492459==null?void 0x0:_0x492459[_0x1fb50d(0x23f)])==null?(_0x19c2dd=G(_0x2665c4))==null?void 0x0:_0x19c2dd['startOffset']:_0x2358ee;if(_0x4e4483==null)return!0x1;let _0x1f1ebe=Oe({'cursorOffset':_0x4e4483,'documentData':_0x38ef90[_0x1fb50d(0x1fe)],'paragraphStartIndex':_0x492459==null?void 0x0:_0x492459['paragraphStartIndex']});return _0x1f1ebe?Y(_0x38ef90[_0x1fb50d(0x24e)],_0x38ef90[_0x1fb50d(0x1b8)],_0x38ef90[_0x1fb50d(0x242)],_0x38ef90['previousDocumentData'],_0x1f1ebe['nextDocumentData'],U['id'],_0x1f1ebe[_0x1fb50d(0x23f)]):!0x1;}};function W(_0x38bb69,_0x23551e){const _0x42c831=_0x1edc1f;let _0x7c4f2f=_0x38bb69[_0x42c831(0x1c5)](_0x45d141),_0x2c6831=_0x23551e?_0x7c4f2f[_0x42c831(0x1d1)](_0x23551e,_0x41a83a['UNIVER_DOC']):_0x7c4f2f[_0x42c831(0x1e0)](_0x41a83a[_0x42c831(0x230)]);return _0x2c6831?{'commandService':_0x38bb69[_0x42c831(0x1c5)](_0x1d61d6),'model':_0x38bb69[_0x42c831(0x1c5)](z),'previousDocumentData':_0x2c6831[_0x42c831(0x1f1)](),'selectionManager':_0x38bb69[_0x42c831(0x1c5)](_0x2ed20d),'unitId':_0x2c6831[_0x42c831(0x207)]()}:null;}function G(_0x3b88c5){const _0x5f526e=_0x1edc1f;var _0x59663d;return(_0x59663d=_0x3b88c5[_0x5f526e(0x1c5)](_0x2ed20d)[_0x5f526e(0x223)]())==null?void 0x0:_0x59663d[0x0];}function ot(_0x5434fd,_0x278b13){const _0x352e8a=_0x1edc1f;var _0x5ef020,_0xac05ce;let _0x134fcb=(_0x5ef020=_0x5434fd==null?void 0x0:_0x5434fd[_0x352e8a(0x232)])==null?_0x278b13==null?void 0x0:_0x278b13[_0x352e8a(0x232)]:_0x5ef020,_0xf21aba=(_0xac05ce=_0x5434fd==null?void 0x0:_0x5434fd[_0x352e8a(0x1e3)])==null?_0x278b13==null?void 0x0:_0x278b13['endOffset']:_0xac05ce;if(!(_0x134fcb==null||_0xf21aba==null))return{'endOffset':Math[_0x352e8a(0x255)](_0x134fcb,_0xf21aba),'startOffset':Math['min'](_0x134fcb,_0xf21aba)};}function st(_0x285f17,_0x425f11){const _0x1ccc35=_0x1edc1f;var _0xf9d1e9;if(!_0x425f11)return;let _0x42430f=ct(_0x425f11);return(_0xf9d1e9=_0x285f17[_0x1ccc35(0x1bf)])==null||(_0xf9d1e9=_0xf9d1e9[_0x1ccc35(0x1ba)])==null?void 0x0:_0xf9d1e9[_0x1ccc35(0x212)](_0x5a1c45=>{const _0x1622c0=_0x1ccc35;let _0x368919=_0x4a1bb2(_0x5a1c45);return _0x425f11[_0x1622c0(0x232)]===_0x425f11[_0x1622c0(0x1e3)]?_0x52963d(_0x368919,_0x42430f):_0xf103f(_0x368919,_0x42430f);});}function ct(_0x4469b9){const _0x1c95f9=_0x1edc1f;return _0x4469b9[_0x1c95f9(0x232)]===_0x4469b9['endOffset']?_0x4469b9[_0x1c95f9(0x232)]:_0x4469b9[_0x1c95f9(0x232)]+0x1;}function lt(_0x349823){const _0x49a036=_0x1edc1f;var _0x4132a8,_0x3ab5e5,_0x2a1833;let _0x169461=G(_0x349823);if(!_0x169461)return null;let _0x13c1c0=_0x349823['get'](_0x45d141)[_0x49a036(0x1e0)](_0x41a83a[_0x49a036(0x230)]),_0x3f5cc5=_0x13c1c0==null?void 0x0:_0x13c1c0['getBody']();return _0x3f5cc5?(_0x4132a8=_0xfcd91[_0x49a036(0x1c2)][_0x49a036(0x204)](_0x169461,(_0x3ab5e5=_0x3f5cc5['paragraphs'])==null?[]:_0x3ab5e5,(_0x2a1833=_0x3f5cc5['dataStream'])==null?'':_0x2a1833)[0x0])==null?null:_0x4132a8:null;}function ut(_0x4eedbd,_0x1617cd){const _0x58f9f3=_0x1edc1f;let _0x3aac93=_0x4eedbd[_0x58f9f3(0x1bf)],_0x1344ca=_0x1617cd[_0x58f9f3(0x1bf)],_0x7d55a5=_0x1817eb(_0x3aac93,_0x1344ca);return[_0x7d55a5&&_0x1344ca?dt(_0x1344ca,_0x7d55a5):null,_0x7d55a5?null:ft(_0x3aac93,_0x1344ca)][_0x58f9f3(0x1c3)](Boolean)[_0x58f9f3(0x1cd)]((_0x16d52a,_0x49e2fa)=>_0x3e4a71['compose'](_0x16d52a,_0x49e2fa),null);}function dt(_0x4433d9,_0x4f145c){const _0x233ddb=_0x1edc1f;let _0x2505dd=new _0x37143f();return _0x2505dd[_0x233ddb(0x248)](_0x4f145c[_0x233ddb(0x23c)]),_0x4f145c[_0x233ddb(0x21f)]>0x0&&_0x2505dd[_0x233ddb(0x20c)](_0x4f145c[_0x233ddb(0x21f)],_0x2fb9bb(_0x4433d9,_0x4f145c[_0x233ddb(0x23c)],_0x4f145c['start']+_0x4f145c[_0x233ddb(0x21f)],!0x1)),_0x4f145c[_0x233ddb(0x228)]>0x0&&_0x2505dd[_0x233ddb(0x1cf)](_0x4f145c[_0x233ddb(0x228)]),_0x3e4a71['getInstance']()[_0x233ddb(0x240)](_0x2505dd[_0x233ddb(0x1be)](),['body']);}function ft(_0x48fec7,_0x4c0831){const _0x4af238=_0x1edc1f;let _0x436df2=[],_0xb44f48=_0x48fec7?mt(_0x48fec7):void 0x0,_0x559897=_0x4c0831?mt(_0x4c0831):void 0x0;for(let _0xed924e of pt)K(_0x3e4a71[_0x4af238(0x229)](),['body',_0xed924e],_0xb44f48==null?void 0x0:_0xb44f48[_0xed924e],_0x559897==null?void 0x0:_0x559897[_0xed924e],_0x436df2);return _0x436df2['reduce']((_0x49ab30,_0x49244f)=>_0x3e4a71[_0x4af238(0x21c)](_0x49ab30,_0x49244f),null);}const pt=[_0x1edc1f(0x1c7),_0x1edc1f(0x1f2),_0x1edc1f(0x1b7),_0x1edc1f(0x24c),_0x1edc1f(0x1ba),_0x1edc1f(0x1c4),_0x1edc1f(0x1d6),_0x1edc1f(0x24f),_0x1edc1f(0x235)];function mt(_0x399380){return _0x399380;}function K(_0x2c2330,_0x87c84a,_0x2b97b6,_0x18a0c8,_0x33f94e){const _0x52f1a0=_0x1edc1f;if(!J(_0x2b97b6,_0x18a0c8)){if(_0x2b97b6==null){_0x33f94e['push'](_0x2c2330[_0x52f1a0(0x203)](_0x87c84a,_0x18a0c8));return;}if(_0x18a0c8==null){_0x33f94e[_0x52f1a0(0x257)](_0x2c2330['removeOp'](_0x87c84a,_0x2b97b6));return;}if(Array[_0x52f1a0(0x215)](_0x2b97b6)&&Array['isArray'](_0x18a0c8)){ht(_0x2c2330,_0x87c84a,_0x2b97b6,_0x18a0c8,_0x33f94e);return;}if(q(_0x2b97b6)&&q(_0x18a0c8)){new Set([...Object[_0x52f1a0(0x24a)](_0x2b97b6),...Object['keys'](_0x18a0c8)])[_0x52f1a0(0x258)](_0x1feff9=>{K(_0x2c2330,[..._0x87c84a,_0x1feff9],_0x2b97b6[_0x1feff9],_0x18a0c8[_0x1feff9],_0x33f94e);});return;}_0x33f94e[_0x52f1a0(0x257)](_0x2c2330[_0x52f1a0(0x218)](_0x87c84a,_0x2b97b6,_0x18a0c8));}}function ht(_0x38fa16,_0x33ccba,_0x2e174c,_0x1990d4,_0x3960df){const _0x24448a=_0x1edc1f;if(_0x2e174c[_0x24448a(0x1d8)]===_0x1990d4[_0x24448a(0x1d8)]){_0x2e174c[_0x24448a(0x258)]((_0x26c010,_0x4702c2)=>K(_0x38fa16,[..._0x33ccba,_0x4702c2],_0x26c010,_0x1990d4[_0x4702c2],_0x3960df));return;}let _0x498ee4=0x0;for(;_0x498ee4<_0x2e174c[_0x24448a(0x1d8)]&&_0x498ee4<_0x1990d4[_0x24448a(0x1d8)]&&J(_0x2e174c[_0x498ee4],_0x1990d4[_0x498ee4]);)_0x498ee4++;let _0x30a2a6=_0x2e174c[_0x24448a(0x1d8)]-0x1,_0x479fcc=_0x1990d4[_0x24448a(0x1d8)]-0x1;for(;_0x30a2a6>=_0x498ee4&&_0x479fcc>=_0x498ee4&&J(_0x2e174c[_0x30a2a6],_0x1990d4[_0x479fcc]);)_0x30a2a6--,_0x479fcc--;for(let _0x24c9eb=_0x30a2a6;_0x24c9eb>=_0x498ee4;_0x24c9eb--)_0x3960df[_0x24448a(0x257)](_0x38fa16['removeOp']([..._0x33ccba,_0x24c9eb],_0x2e174c[_0x24c9eb]));for(let _0x1beb4e=_0x498ee4;_0x1beb4e<=_0x479fcc;_0x1beb4e++)_0x3960df['push'](_0x38fa16[_0x24448a(0x203)]([..._0x33ccba,_0x1beb4e],_0x1990d4[_0x1beb4e]));}function q(_0x56dcc6){const _0x5310ad=_0x1edc1f;return typeof _0x56dcc6==_0x5310ad(0x1d0)&&!!_0x56dcc6&&!Array[_0x5310ad(0x215)](_0x56dcc6);}function J(_0x1e0222,_0x3f5ec5){const _0x595e24=_0x1edc1f;return JSON[_0x595e24(0x239)](_0x1e0222)===JSON[_0x595e24(0x239)](_0x3f5ec5);}function Y(_0x52af4b,_0x3c6e8a,_0x3aeeac,_0x4ae4dc,_0xea0621,_0x5c7f74,_0x2ba5d5){const _0x465c4c=_0x1edc1f;let _0x48908d=ut(_0x4ae4dc,_0xea0621);return _0x48908d?!!_0x52af4b[_0x465c4c(0x1da)](_0xc563fa['id'],{'unitId':_0x3aeeac,'actions':_0x48908d,'textRanges':[{'startOffset':_0x2ba5d5,'endOffset':_0x2ba5d5,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x5c7f74}):(_0x3c6e8a[_0x465c4c(0x1f7)]([{'startOffset':_0x2ba5d5,'endOffset':_0x2ba5d5}],{'unitId':_0x3aeeac,'subUnitId':_0x3aeeac},!0x1),!0x0);}const X=_0x1edc1f(0x23a);var gt=_0x1edc1f(0x238),_t=_0x1edc1f(0x226);const vt={};function Z(_0x12d672,_0x53d951){return function(_0x1286b1,_0xc98794){_0x53d951(_0x1286b1,_0xc98794,_0x12d672);};}function yt(_0x5d656f,_0x3f585c,_0x69d9a3,_0x1b8442){const _0x56e66a=_0x1edc1f;var _0x351313=arguments[_0x56e66a(0x1d8)],_0x28c126=_0x351313<0x3?_0x3f585c:_0x1b8442===null?_0x1b8442=Object['getOwnPropertyDescriptor'](_0x3f585c,_0x69d9a3):_0x1b8442,_0x524676;if(typeof Reflect==_0x56e66a(0x1d0)&&typeof Reflect[_0x56e66a(0x222)]==_0x56e66a(0x246))_0x28c126=Reflect[_0x56e66a(0x222)](_0x5d656f,_0x3f585c,_0x69d9a3,_0x1b8442);else{for(var _0x13ceb1=_0x5d656f[_0x56e66a(0x1d8)]-0x1;_0x13ceb1>=0x0;_0x13ceb1--)(_0x524676=_0x5d656f[_0x13ceb1])&&(_0x28c126=(_0x351313<0x3?_0x524676(_0x28c126):_0x351313>0x3?_0x524676(_0x3f585c,_0x69d9a3,_0x28c126):_0x524676(_0x3f585c,_0x69d9a3))||_0x28c126);}return _0x351313>0x3&&_0x28c126&&Object[_0x56e66a(0x220)](_0x3f585c,_0x69d9a3,_0x28c126),_0x28c126;}let Q=class extends _0x11f1e7{constructor(_0x38ac2b,_0x14d407){const _0x2f0bec=_0x1edc1f;super(),this[_0x2f0bec(0x1cc)]=_0x38ac2b,this[_0x2f0bec(0x1f5)]=_0x14d407,this[_0x2f0bec(0x1f4)]();}[_0x1edc1f(0x1f4)](){const _0x3222d1=_0x1edc1f;this[_0x3222d1(0x23d)](this['_resourceManagerService']['registerPluginResource']({'pluginName':X,'businesses':[_0x41a83a['UNIVER_DOC']],'toJson':_0x5e6d5d=>JSON[_0x3222d1(0x239)](this[_0x3222d1(0x1f5)][_0x3222d1(0x1be)](_0x5e6d5d)),'parseJson':_0x23f59e=>x(JSON[_0x3222d1(0x1e6)](_0x23f59e)),'onLoad':(_0x537f2c,_0x451d0b)=>this[_0x3222d1(0x1f5)][_0x3222d1(0x1ee)](_0x537f2c,_0x451d0b),'onUnLoad':_0xbdb392=>this['_docsCodeModel'][_0x3222d1(0x1fa)](_0xbdb392)}));}};Q=yt([Z(0x0,_0x50ae34),Z(0x1,_0x5c4b8b(z))],Q);let $=class extends _0x19b9cc{constructor(_0x3892b3=vt,_0x2e3095,_0x255e3e,_0x2b7c55){const _0x56b48e=_0x1edc1f;super(),this[_0x56b48e(0x224)]=_0x3892b3,this[_0x56b48e(0x236)]=_0x2e3095,this['_commandService']=_0x255e3e,this['_configService']=_0x2b7c55;let {..._0x27948e}=_0x559340({},vt,this[_0x56b48e(0x224)]);this[_0x56b48e(0x205)][_0x56b48e(0x1f0)](_0x56b48e(0x1b9),_0x27948e);}['onStarting'](){const _0x960035=_0x1edc1f;this[_0x960035(0x236)]['add']([z]),this[_0x960035(0x236)][_0x960035(0x225)]([Q]),this[_0x960035(0x236)][_0x960035(0x1c5)](z),this[_0x960035(0x236)]['get'](Q),[B,nt,it,V,H,at,U,rt][_0x960035(0x258)](_0x4247a0=>this[_0x960035(0x23d)](this[_0x960035(0x249)][_0x960035(0x1e2)](_0x4247a0)));}};R($,_0x1edc1f(0x22a),X),R($,_0x1edc1f(0x227),gt),R($,_0x1edc1f(0x1fd),_t),R($,_0x1edc1f(0x233),_0x41a83a['UNIVER_DOC']),$=yt([_0x2f1165(_0x4c3c74,_0x3f1e99),Z(0x1,_0x5c4b8b(_0x193e69)),Z(0x2,_0x1d61d6),Z(0x3,_0x4a9167)],$);export{X as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,rt as DocsCodeConsumeBoundaryDeleteCommand,nt as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,z as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,it as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,Oe as buildCancelEmptyCodeParagraphActions,je as isCodeBoundaryDelete,b as normalizeDocsCodeConfig};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x34987a=_0x5064;(function(_0x482e08,_0xeccf4d){var _0x5b01dd=_0x5064,_0x3f840b=_0x482e08();while(!![]){try{var _0x17fd6e=parseInt(_0x5b01dd(0x11b))/0x1*(parseInt(_0x5b01dd(0x13d))/0x2)+parseInt(_0x5b01dd(0x14f))/0x3*(parseInt(_0x5b01dd(0x148))/0x4)+-parseInt(_0x5b01dd(0x11c))/0x5+parseInt(_0x5b01dd(0x13c))/0x6+-parseInt(_0x5b01dd(0x147))/0x7+-parseInt(_0x5b01dd(0x129))/0x8+parseInt(_0x5b01dd(0x11f))/0x9;if(_0x17fd6e===_0xeccf4d)break;else _0x3f840b['push'](_0x3f840b['shift']());}catch(_0x3710a3){_0x3f840b['push'](_0x3f840b['shift']());}}}(_0x2c3b,0x82b40));import{DocsCodeInsertCommand as _0x283188,DocsCodeModel as _0x5c7c81,DocsCodeRemoveCommand as _0x4c29ee,DocsCodeUnwrapCommand as _0x59180b,DocsCodeUpdateCommand as _0x1c568f,normalizeDocsCodeConfig as _0x3c561f}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x574512,DocumentBlockRangeType as _0x1f97f5,ICommandService as _0x343936,Inject as _0x31d0f4,Injector as _0xaab248,generateRandomId as _0x526346}from'@univerjs/core';import{FDocument as _0x3f5d42,isParagraphFacade as _0x3435f0}from'@univerjs/docs/facade';function m(_0x15288e){'@babel/helpers - typeof';var _0x205ea8=_0x5064;return m=typeof Symbol==_0x205ea8(0x13b)&&typeof Symbol[_0x205ea8(0x122)]==_0x205ea8(0x144)?function(_0x4557e8){return typeof _0x4557e8;}:function(_0x58d4cf){var _0x40a0e8=_0x205ea8;return _0x58d4cf&&typeof Symbol==_0x40a0e8(0x13b)&&_0x58d4cf[_0x40a0e8(0x13e)]===Symbol&&_0x58d4cf!==Symbol[_0x40a0e8(0x131)]?'symbol':typeof _0x58d4cf;},m(_0x15288e);}function _0x5064(_0x5435fe,_0x17d738){_0x5435fe=_0x5435fe-0x110;var _0x2c3b23=_0x2c3b();var _0x506425=_0x2c3b23[_0x5435fe];return _0x506425;}function h(_0x4e2eee,_0x4b81ff){var _0x12dbd8=_0x5064;if(m(_0x4e2eee)!=_0x12dbd8(0x12c)||!_0x4e2eee)return _0x4e2eee;var _0x302da1=_0x4e2eee[Symbol[_0x12dbd8(0x139)]];if(_0x302da1!==void 0x0){var _0x3d7c0c=_0x302da1['call'](_0x4e2eee,_0x4b81ff||'default');if(m(_0x3d7c0c)!=_0x12dbd8(0x12c))return _0x3d7c0c;throw TypeError(_0x12dbd8(0x110));}return(_0x4b81ff===_0x12dbd8(0x128)?String:Number)(_0x4e2eee);}function g(_0x1cc58b){var _0x221d6a=_0x5064,_0x120fe1=h(_0x1cc58b,'string');return m(_0x120fe1)==_0x221d6a(0x144)?_0x120fe1:_0x120fe1+'';}function _(_0x248988,_0x565112,_0x3c1de7){var _0x12abe9=_0x5064;return(_0x565112=g(_0x565112))in _0x248988?Object[_0x12abe9(0x14a)](_0x248988,_0x565112,{'value':_0x3c1de7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x248988[_0x565112]=_0x3c1de7,_0x248988;}function v(_0x14192,_0x47cd7e){return function(_0x421050,_0x413323){_0x47cd7e(_0x421050,_0x413323,_0x14192);};}function _0x2c3b(){var _0x1d36da=['object','_getBlockRanges','_getDocumentData','_getBlockRange','blockType','prototype','blockId','_blockId','getOwnPropertyDescriptor','config','_document','getId','startIndex','toPrimitive','getRange','function','3739824zyFQTb','2LUzGmC','constructor','includes','blockRanges','getText','extend','text','symbol','getCodeConfig','body','6624562GONNJz','12iisekw','_unitId','defineProperty','slice','replace','some','find','338307rcspHt','filter','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','endIndex','BLOCK_START','map','_createFDocumentCode','CODE','getCodes','save','PARAGRAPH','insertCode','from','255082cxHsRG','4797915IfTNTT','getConfig','get','15972012yRhFgr','decorate','SECTION_BREAK','iterator','BLOCK_END','join','syncExecuteCommand','getCodeAt','unwrap','string','4400416lZgflm','_injector','length'];_0x2c3b=function(){return _0x1d36da;};return _0x2c3b();}function y(_0x5f15c1,_0x262083,_0x1c4ba5,_0x317c46){var _0x738448=_0x5064,_0x4ecf10=arguments[_0x738448(0x12b)],_0x46f0cc=_0x4ecf10<0x3?_0x262083:_0x317c46===null?_0x317c46=Object[_0x738448(0x134)](_0x262083,_0x1c4ba5):_0x317c46,_0x4bfe73;if(typeof Reflect==_0x738448(0x12c)&&typeof Reflect[_0x738448(0x120)]==_0x738448(0x13b))_0x46f0cc=Reflect[_0x738448(0x120)](_0x5f15c1,_0x262083,_0x1c4ba5,_0x317c46);else{for(var _0x1ea30=_0x5f15c1[_0x738448(0x12b)]-0x1;_0x1ea30>=0x0;_0x1ea30--)(_0x4bfe73=_0x5f15c1[_0x1ea30])&&(_0x46f0cc=(_0x4ecf10<0x3?_0x4bfe73(_0x46f0cc):_0x4ecf10>0x3?_0x4bfe73(_0x262083,_0x1c4ba5,_0x46f0cc):_0x4bfe73(_0x262083,_0x1c4ba5))||_0x46f0cc);}return _0x4ecf10>0x3&&_0x46f0cc&&Object[_0x738448(0x14a)](_0x262083,_0x1c4ba5,_0x46f0cc),_0x46f0cc;}let b=class{constructor(_0x4f5526,_0x43aa99,_0x4e1c93){var _0x339b2b=_0x5064;this[_0x339b2b(0x136)]=_0x4f5526,this[_0x339b2b(0x133)]=_0x43aa99,this[_0x339b2b(0x12a)]=_0x4e1c93,_(this,_0x339b2b(0x149),void 0x0),this[_0x339b2b(0x149)]=this['_document'][_0x339b2b(0x137)]();}[_0x34987a(0x137)](){var _0x1093f9=_0x34987a;return this[_0x1093f9(0x133)];}['getRange'](){var _0x211038=_0x34987a;let _0xe6e042=this[_0x211038(0x12f)]();return _0xe6e042?{'blockId':_0xe6e042[_0x211038(0x132)],'endIndex':_0xe6e042['endIndex'],'startIndex':_0xe6e042['startIndex']}:null;}['getText'](){var _0xf8af7d=_0x34987a,_0x545981;let _0x56fcff=this[_0xf8af7d(0x12f)](),_0x463421=(_0x545981=this[_0xf8af7d(0x12e)]()[_0xf8af7d(0x146)])==null?void 0x0:_0x545981['dataStream'];return!_0x56fcff||!_0x463421?'':x(_0x463421[_0xf8af7d(0x14b)](_0x56fcff[_0xf8af7d(0x138)]+0x1,_0x56fcff[_0xf8af7d(0x111)]));}['describe'](){var _0xe7a4a2=_0x34987a;let _0x41cf18=this[_0xe7a4a2(0x13a)]();return _0x41cf18?{..._0x41cf18,'config':this[_0xe7a4a2(0x11d)](),'text':this[_0xe7a4a2(0x141)](),'type':_0x1f97f5[_0xe7a4a2(0x115)]}:null;}[_0x34987a(0x11d)](){var _0x2a7f49=_0x34987a;return _0x3c561f(this[_0x2a7f49(0x12a)][_0x2a7f49(0x11e)](_0x5c7c81)[_0x2a7f49(0x145)](this[_0x2a7f49(0x149)],this['_blockId']));}['updateConfig'](_0x22e24b){var _0x19e3b0=_0x34987a;return this['_injector'][_0x19e3b0(0x11e)](_0x343936)[_0x19e3b0(0x125)](_0x1c568f['id'],{'blockId':this['_blockId'],'config':_0x22e24b[_0x19e3b0(0x135)],'unitId':this[_0x19e3b0(0x149)]});}[_0x34987a(0x127)](){var _0x1435c5=_0x34987a;return this[_0x1435c5(0x12a)]['get'](_0x343936)[_0x1435c5(0x125)](_0x59180b['id'],{'blockId':this[_0x1435c5(0x133)],'unitId':this['_unitId']});}['remove'](){var _0x5d9eda=_0x34987a;return this[_0x5d9eda(0x12a)][_0x5d9eda(0x11e)](_0x343936)[_0x5d9eda(0x125)](_0x4c29ee['id'],{'blockId':this['_blockId'],'unitId':this[_0x5d9eda(0x149)]});}['_getBlockRange'](){var _0x307291=_0x34987a,_0x5937b9;let _0x41650d=(_0x5937b9=this[_0x307291(0x12e)]()[_0x307291(0x146)])==null||(_0x5937b9=_0x5937b9['blockRanges'])==null?void 0x0:_0x5937b9[_0x307291(0x14e)](_0x8c4dad=>_0x8c4dad[_0x307291(0x132)]===this[_0x307291(0x133)]&&_0x8c4dad[_0x307291(0x130)]===_0x1f97f5[_0x307291(0x115)]);return _0x41650d==null?null:_0x41650d;}['_getDocumentData'](){var _0x4c0ec0=_0x34987a;return this[_0x4c0ec0(0x136)][_0x4c0ec0(0x117)]();}};b=y([v(0x2,_0x31d0f4(_0xaab248))],b);function x(_0x15f76f){var _0x362a0a=_0x34987a;return Array[_0x362a0a(0x11a)](_0x15f76f)[_0x362a0a(0x113)](_0x146b78=>_0x146b78===_0x574512[_0x362a0a(0x118)]?'\x0a':_0x146b78)[_0x362a0a(0x150)](_0x3f3bc0=>_0x3f3bc0!==_0x574512[_0x362a0a(0x112)]&&_0x3f3bc0!==_0x574512[_0x362a0a(0x123)]&&_0x3f3bc0!==_0x574512[_0x362a0a(0x121)])[_0x362a0a(0x124)]('')[_0x362a0a(0x14c)](/\n$/,'');}var S=class extends _0x3f5d42{[_0x34987a(0x116)](){var _0x2c8e07=_0x34987a;return this[_0x2c8e07(0x12d)]()['filter'](_0x520d17=>_0x520d17[_0x2c8e07(0x130)]===_0x1f97f5[_0x2c8e07(0x115)])['map'](_0x17e483=>this[_0x2c8e07(0x114)](_0x17e483[_0x2c8e07(0x132)]));}['getCode'](_0x3d2592){var _0x51c729=_0x34987a;return this['_getBlockRanges']()[_0x51c729(0x14d)](_0x553f12=>_0x553f12['blockId']===_0x3d2592&&_0x553f12[_0x51c729(0x130)]===_0x1f97f5[_0x51c729(0x115)])?this[_0x51c729(0x114)](_0x3d2592):null;}[_0x34987a(0x126)](_0x2e0b32){var _0x318066=_0x34987a;let _0x260742=this[_0x318066(0x12d)]()[_0x318066(0x14e)](_0xa8c62d=>_0xa8c62d['blockType']===_0x1f97f5[_0x318066(0x115)]&&_0xa8c62d[_0x318066(0x138)]<=_0x2e0b32&&_0x2e0b32<=_0xa8c62d[_0x318066(0x111)]);return _0x260742?this[_0x318066(0x114)](_0x260742[_0x318066(0x132)]):null;}['findCodeByText'](_0x54328a){var _0xe8450b;return(_0xe8450b=this['findCodes'](_0x54328a)[0x0])==null?null:_0xe8450b;}['findCodes'](_0x363729){var _0x2c5fb3=_0x34987a;let _0x4dc16e=typeof _0x363729==_0x2c5fb3(0x128)?{'text':_0x363729}:_0x363729;return this['getCodes']()['filter'](_0x10f78a=>!(_0x4dc16e[_0x2c5fb3(0x132)]&&_0x10f78a[_0x2c5fb3(0x137)]()!==_0x4dc16e[_0x2c5fb3(0x132)]||_0x4dc16e[_0x2c5fb3(0x143)]&&!_0x10f78a['getText']()[_0x2c5fb3(0x13f)](_0x4dc16e[_0x2c5fb3(0x143)])));}[_0x34987a(0x119)](_0x56c919={},_0x307ee8={}){var _0x4a12bb=_0x34987a,_0x4d212f;let _0x32382d=this[_0x4a12bb(0x12a)][_0x4a12bb(0x11e)](_0x343936),_0xcd72a0=_0x3435f0(_0x56c919)?{..._0x307ee8,..._0x56c919[_0x4a12bb(0x13a)]()}:_0x56c919,_0x559766=(_0x4d212f=_0xcd72a0[_0x4a12bb(0x132)])==null?_0x526346(0x6):_0x4d212f;return _0x32382d[_0x4a12bb(0x125)](_0x283188['id'],{..._0xcd72a0,'blockId':_0x559766,'unitId':this[_0x4a12bb(0x137)]()})?this['getCode'](_0x559766):null;}[_0x34987a(0x12d)](){var _0x114c8e=_0x34987a,_0x3657fc,_0x1a262c;return(_0x3657fc=(_0x1a262c=this[_0x114c8e(0x117)]()['body'])==null?void 0x0:_0x1a262c[_0x114c8e(0x140)])==null?[]:_0x3657fc;}['_createFDocumentCode'](_0xe115b){var _0x265d6f=_0x34987a;return this[_0x265d6f(0x12a)]['createInstance'](b,this,_0xe115b);}};_0x3f5d42[_0x34987a(0x142)](S);export{b as FDocumentCode};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x44848c=_0x2b86;(function(_0x2e2ed8,_0x3155ce){const _0xb2ba41=_0x2b86,_0x461920=_0x2e2ed8();while(!![]){try{const _0x4e6558=-parseInt(_0xb2ba41(0xa6))/0x1+parseInt(_0xb2ba41(0xae))/0x2*(parseInt(_0xb2ba41(0xef))/0x3)+-parseInt(_0xb2ba41(0x100))/0x4+-parseInt(_0xb2ba41(0xbf))/0x5*(-parseInt(_0xb2ba41(0xc8))/0x6)+parseInt(_0xb2ba41(0xd8))/0x7*(parseInt(_0xb2ba41(0xee))/0x8)+parseInt(_0xb2ba41(0x7c))/0x9+parseInt(_0xb2ba41(0xc5))/0xa*(-parseInt(_0xb2ba41(0xd9))/0xb);if(_0x4e6558===_0x3155ce)break;else _0x461920['push'](_0x461920['shift']());}catch(_0x519da8){_0x461920['push'](_0x461920['shift']());}}}(_0x36fb,0x7d801));import{BuildTextUtils as _0x2aa63d,CommandType as _0x2f4978,DataStreamTreeTokenType as _0x272a0f,DependentOn as _0x1c14e5,Disposable as _0x7a2bfc,DocumentBlockRangeType as _0x45cc53,ICommandService as _0x10119a,IConfigService as _0x1d5c59,IResourceManagerService as _0x23d35f,IUniverInstanceService as _0x228d50,Inject as _0x163407,Injector as _0x445227,JSONX as _0x2d3193,Plugin as _0x495660,TextX as _0x11e4b5,UniverInstanceType as _0x108364,containsInteriorInsertionOffset as _0x50cd86,containsStreamIndex as _0x33e1b3,createParagraphId as _0x2aebf8,generateRandomId as _0x4842c7,getBlockRangeInterval as _0x3fa12e,getBodySliceForTextXAction as _0x50fffd,getParagraphContentStartOffset as _0x4fb420,getParagraphContentStartOffsets as _0x2a5ac0,getParagraphFollowingBlockOffset as _0x491f6d,getSingleDataStreamChange as _0x168f93,intersectsOperationalIntervals as _0x457fb0,merge as _0x55c09c,shiftExclusiveRangeOnDelete as _0x242fdb,shiftExclusiveRangeOnInsert as _0x4cf68,shiftInclusiveRangeOnDelete as _0x28b2df,shiftInclusiveRangeOnInsert as _0x30604c}from'@univerjs/core';import{DocContentInsertService as _0x22ba41,DocSelectionManagerService as _0x3a7722,RichTextEditingMutation as _0x28d3f9,UniverDocsPlugin as _0x4d0ee5,isHeaderFooterSelection as _0x452170}from'@univerjs/docs';import{Subject as _0x500c1a}from'rxjs';import{UniverLicensePlugin as _0x355b25}from'@univerjs-pro/license';const be={'language':'javascript','showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function y(_0x6ca718){return{...be,..._0x6ca718};}function b(_0x3a3c41){const _0x2ed787=_0x2b86;var _0x459190;let _0x2ea3e6=(_0x459190=_0x3a3c41==null?void 0x0:_0x3a3c41[_0x2ed787(0xb7)])==null?{}:_0x459190;return{'codes':Object[_0x2ed787(0xe9)](Object['entries'](_0x2ea3e6)[_0x2ed787(0x108)](([_0x489708,_0x18fbbb])=>[_0x489708,y(_0x18fbbb)]))};}function x(_0x192a4d,_0xf8f51c,_0x4ff642){const _0x161177=_0x2b86;let _0x29ca68=b(_0x192a4d);return _0x29ca68[_0x161177(0xb7)][_0xf8f51c]=y({..._0x29ca68[_0x161177(0xb7)][_0xf8f51c],..._0x4ff642}),_0x29ca68;}function S(_0x571bcc,_0x3505a5){const _0x19d81f=_0x2b86;let _0x33ad57=b(_0x571bcc);return delete _0x33ad57[_0x19d81f(0xb7)][_0x3505a5],_0x33ad57;}const xe=_0x44848c(0xa8);var C=class extends Error{constructor(_0x1e82a4=_0x44848c(0xc1)){super(_0x1e82a4);}};function Se(_0x40053f){const _0x568947=_0x44848c;var _0x3dc9cc,_0x487325,_0x23823e;let _0xa92936=T(_0x40053f[_0x568947(0x7d)]),_0x2a4971=D(_0xa92936),_0x56d492=we(_0x40053f['startOffset'],_0x40053f['endOffset']),_0x46c524=_0x56d492?(_0x3dc9cc=_0x2a4971[_0x568947(0x104)])==null?void 0x0:_0x3dc9cc[_0x568947(0xea)](_0x6aa186=>{const _0x568a57=_0x568947;let _0x42d121=_0x3fa12e(_0x6aa186);return _0x42d121[_0x568a57(0xd4)]===_0x56d492['startOffset']&&_0x42d121[_0x568a57(0x83)]===_0x56d492['endOffset'];}):void 0x0,{startOffset:_0x2f64fa,endOffset:_0x3a0da8}=_0x46c524?_0x56d492:ze(_0x2a4971,_0x40053f[_0x568947(0xd4)],_0x40053f[_0x568947(0x83)],_0x40053f[_0x568947(0xda)]);if(!_0x46c524&&Te(_0x2a4971,_0x2f64fa,_0x3a0da8))throw new C(_0x568947(0xf0));let _0x7019ca=He(_0x2a4971,_0x2f64fa,_0x3a0da8),_0x1483a8=(_0x487325=_0x46c524==null?void 0x0:_0x46c524[_0x568947(0xc9)])==null?_0x40053f[_0x568947(0xc9)]:_0x487325,_0x59b12f=x(_0x40053f['metadata'],_0x1483a8,{...be,..._0x40053f[_0x568947(0xb2)]});if(_0x46c524)return _0x46c524[_0x568947(0xc0)]=_0x45cc53[_0x568947(0x10f)],Ce(_0x2a4971,_0x2f64fa,_0x3a0da8),Pe(_0x2a4971,_0x2f64fa,_0x3a0da8,_0x7019ca),A(_0x2a4971,_0x46c524),{'nextDocumentData':_0xa92936,'nextMetadata':_0x59b12f,'cursorOffset':_0x2f64fa+0x1};if(_0x2f64fa===_0x3a0da8){var _0x534edd,_0x273867;let _0x36f723=''+_0x272a0f[_0x568947(0xcb)]+_0x272a0f['PARAGRAPH']+_0x272a0f[_0x568947(0xdd)];j(_0x2a4971,_0x2f64fa,_0x36f723,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x2aebf8(new Set((_0x534edd=_0x2a4971[_0x568947(0xd3)])==null?void 0x0:_0x534edd[_0x568947(0x108)](_0x36aeed=>_0x36aeed[_0x568947(0x10e)]))),'paragraphStyle':Ne(!0x0,!0x0,_0x7019ca)}],'blockRanges':[{'blockId':_0x1483a8,'blockType':_0x45cc53[_0x568947(0x10f)],'startIndex':0x0,'endIndex':_0x36f723[_0x568947(0x112)]-0x1}]});let _0x5f2a12=(_0x273867=_0x2a4971['blockRanges'])==null?void 0x0:_0x273867[_0x568947(0xea)](_0x27ff3d=>_0x27ff3d['blockId']===_0x1483a8);return _0x5f2a12&&A(_0x2a4971,_0x5f2a12),{'nextDocumentData':_0xa92936,'nextMetadata':_0x59b12f,'cursorOffset':_0x2f64fa+0x1};}j(_0x2a4971,_0x3a0da8,_0x272a0f[_0x568947(0xdd)]),j(_0x2a4971,_0x2f64fa,_0x272a0f['BLOCK_START']),Pe(_0x2a4971,_0x2f64fa,_0x3a0da8+0x1,_0x7019ca);let _0x4ecc09={'blockId':_0x1483a8,'blockType':_0x45cc53[_0x568947(0x10f)],'startIndex':_0x2f64fa,'endIndex':_0x3a0da8+0x1};return _0x2a4971[_0x568947(0x104)]=[...(_0x23823e=_0x2a4971[_0x568947(0x104)])==null?[]:_0x23823e,_0x4ecc09][_0x568947(0x87)]((_0x34a9c5,_0x2c48f3)=>_0x34a9c5[_0x568947(0xa2)]-_0x2c48f3[_0x568947(0xa2)]),A(_0x2a4971,_0x4ecc09),{'nextDocumentData':_0xa92936,'nextMetadata':_0x59b12f,'cursorOffset':_0x2f64fa+0x1};}function Ce(_0x14b509,_0x532915,_0x4ff522){const _0x2065fa=_0x44848c;var _0x43739a;((_0x43739a=_0x14b509[_0x2065fa(0xd3)])==null?[]:_0x43739a)[_0x2065fa(0x89)](_0x30b50a=>_0x30b50a[_0x2065fa(0xa2)]>_0x532915&&_0x30b50a[_0x2065fa(0xa2)]<_0x4ff522)[_0x2065fa(0x109)](_0xd465ab=>{const _0xbcc94b=_0x2065fa;var _0x5058f4;let _0x2030f9={...(_0x5058f4=_0xd465ab['paragraphStyle'])==null?{}:_0x5058f4};delete _0x2030f9['spaceAbove'],delete _0x2030f9[_0xbcc94b(0xe6)],_0xd465ab['paragraphStyle']=_0x2030f9;});}function we(_0xd46e92,_0x3f70ad){return _0xd46e92==null||_0x3f70ad==null||_0xd46e92===_0x3f70ad?null:{'startOffset':Math['min'](_0xd46e92,_0x3f70ad),'endOffset':Math['max'](_0xd46e92,_0x3f70ad)};}function Te(_0xede0bf,_0x448b00,_0x3728fb){const _0x431334=_0x44848c;var _0x20ba8d;return((_0x20ba8d=_0xede0bf[_0x431334(0x104)])==null?[]:_0x20ba8d)[_0x431334(0x8a)](_0x31f125=>{let _0x30ef4c=_0x3fa12e(_0x31f125);return _0x448b00===_0x3728fb?_0x50cd86(_0x30ef4c,_0x448b00):_0x457fb0(_0x30ef4c,{'startOffset':_0x448b00,'endOffset':_0x3728fb});});}function Ee(_0x549f41){const _0x3ee1f9=_0x44848c;return{'nextDocumentData':T(_0x549f41[_0x3ee1f9(0x7d)]),'nextMetadata':x(_0x549f41[_0x3ee1f9(0xcd)],_0x549f41['blockId'],_0x549f41['config']),'cursorOffset':0x0};}function w(_0xced359){const _0x3dbaa2=_0x44848c;let _0x54d3ed=T(_0xced359[_0x3dbaa2(0x7d)]),_0x1650b3=D(_0x54d3ed),_0x13f3f1=Ae(_0x1650b3,_0xced359[_0x3dbaa2(0xc9)]);if(!_0x13f3f1)return null;let _0x35aacd=Le(_0x1650b3,_0x13f3f1);return{'nextDocumentData':_0x54d3ed,'nextMetadata':S(_0xced359['metadata'],_0xced359[_0x3dbaa2(0xc9)]),'cursorOffset':_0x35aacd};}function De(_0x4bd561){const _0x4314d9=_0x44848c;var _0x45d425;let _0x528969=T(_0x4bd561[_0x4314d9(0x7d)]),_0x587218=D(_0x528969),_0x345e4b=Ae(_0x587218,_0x4bd561[_0x4314d9(0xc9)]);if(!_0x345e4b)return null;let _0x5dcd6f=_0x3fa12e(_0x345e4b);return M(_0x587218,_0x5dcd6f['startOffset'],_0x5dcd6f['endOffset']),_0x587218['blockRanges']=(_0x45d425=_0x587218[_0x4314d9(0x104)])==null?void 0x0:_0x45d425[_0x4314d9(0x89)](_0x440875=>_0x440875['blockId']!==_0x4bd561[_0x4314d9(0xc9)]),{'nextDocumentData':_0x528969,'nextMetadata':S(_0x4bd561['metadata'],_0x4bd561[_0x4314d9(0xc9)]),'cursorOffset':_0x345e4b[_0x4314d9(0xa2)]};}function Oe(_0x427c95){const _0x28967f=_0x44848c;let _0x29f7a1=T(_0x427c95[_0x28967f(0x7d)]),_0x6e6451=D(_0x29f7a1),_0x5227aa=Me(_0x6e6451,_0x427c95[_0x28967f(0xc2)]);return _0x5227aa&&ke(_0x29f7a1,_0x6e6451,_0x5227aa,_0x427c95['cursorOffset'],_0x427c95[_0x28967f(0xed)])||null;}function ke(_0x4b8865,_0x56d693,_0x2c9ec6,_0x519a86,_0x88b0db){const _0x51f3a0=_0x44848c;let _0x481f94=Je(_0x56d693,_0x2c9ec6,_0x519a86,_0x88b0db);if(!_0x481f94)return null;let _0x112b22=_0x481f94['endTokenOffset']-0x1;return M(_0x56d693,_0x481f94[_0x51f3a0(0xb8)][_0x51f3a0(0xa2)],_0x481f94['paragraph'][_0x51f3a0(0xa2)]+0x1),{'nextDocumentData':_0x4b8865,'cursorOffset':_0x112b22};}function Ae(_0x1f1ad6,_0x35c581){const _0x534150=_0x44848c;var _0x32fe89;return _0x1f1ad6==null||(_0x32fe89=_0x1f1ad6['blockRanges'])==null?void 0x0:_0x32fe89[_0x534150(0xea)](_0x24e8e0=>_0x24e8e0[_0x534150(0xc0)]===_0x45cc53['CODE']&&_0x24e8e0['blockId']===_0x35c581);}function je(_0x22a5af){const _0x36bbaa=_0x44848c;var _0x52ce38;let _0x289c0d=_0x22a5af[_0x36bbaa(0x7d)][_0x36bbaa(0xf3)];if(!_0x289c0d)return!0x1;let _0x14afd6=_0x22a5af['direction']===_0x36bbaa(0xde)?_0x22a5af['cursorOffset']-0x1:_0x22a5af[_0x36bbaa(0xc2)],_0x4f0501=_0x22a5af[_0x36bbaa(0xf1)]===_0x36bbaa(0xeb)?_0x22a5af['cursorOffset']+0x1:_0x14afd6;return((_0x52ce38=_0x289c0d[_0x36bbaa(0x104)])==null?[]:_0x52ce38)['some'](_0x2507a0=>_0x2507a0[_0x36bbaa(0xc0)]===_0x45cc53[_0x36bbaa(0x10f)]?_0x14afd6===_0x2507a0[_0x36bbaa(0xa2)]||_0x14afd6===_0x2507a0[_0x36bbaa(0xad)]||_0x4f0501===_0x2507a0[_0x36bbaa(0xa2)]||_0x4f0501===_0x2507a0[_0x36bbaa(0xad)]:!0x1);}function _0x2b86(_0x106b44,_0x3a6a88){_0x106b44=_0x106b44-0x7b;const _0x36fb94=_0x36fb();let _0x2b86a4=_0x36fb94[_0x106b44];return _0x2b86a4;}function Me(_0x8d24ee,_0x4d0341){const _0x3c5653=_0x44848c;var _0x3f80ef;return(_0x3f80ef=_0x8d24ee[_0x3c5653(0x104)])==null?void 0x0:_0x3f80ef[_0x3c5653(0xea)](_0xe7b08e=>{const _0x22e361=_0x3c5653;let _0x5910ad=k(_0xe7b08e);return _0xe7b08e['blockType']===_0x45cc53[_0x22e361(0x10f)]&&_0xe7b08e[_0x22e361(0xa2)]<=_0x4d0341&&_0x4d0341<=_0x5910ad+0x2;});}function Ne(_0x95d821,_0x3fe9ae,_0x3811c4=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x95d821&&_0x3811c4?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':xe,'fs':0xc}};}function Pe(_0x5a85ea,_0x3a8e76,_0x2e2914,_0x1542c2=!0x1){const _0x3b87f7=_0x44848c;var _0x14706b;let _0x17c524=((_0x14706b=_0x5a85ea[_0x3b87f7(0xd3)])==null?[]:_0x14706b)[_0x3b87f7(0x89)](_0x519e5d=>_0x519e5d[_0x3b87f7(0xa2)]>_0x3a8e76&&_0x519e5d['startIndex']<_0x2e2914);_0x17c524[_0x3b87f7(0x109)]((_0x53455f,_0x27aab8)=>{const _0x1a2176=_0x3b87f7;var _0x8873cc;_0x53455f[_0x1a2176(0x97)]={...(_0x8873cc=_0x53455f[_0x1a2176(0x97)])==null?{}:_0x8873cc,...Ne(_0x27aab8===0x0,_0x27aab8===_0x17c524[_0x1a2176(0x112)]-0x1,_0x1542c2)};});}function Fe(_0x3bb403){const _0x2df59d=_0x44848c;var _0x260162,_0x4788dd;let _0x373730={..._0x3bb403==null?{}:_0x3bb403};return delete _0x373730['indentEnd'],delete _0x373730['indentStart'],delete _0x373730[_0x2df59d(0x90)],delete _0x373730[_0x2df59d(0xe6)],((_0x260162=_0x373730[_0x2df59d(0xb5)])==null?void 0x0:_0x260162['ff'])===xe&&((_0x4788dd=_0x373730[_0x2df59d(0xb5)])==null?void 0x0:_0x4788dd['fs'])===0xc&&delete _0x373730[_0x2df59d(0xb5)],_0x373730;}function Ie(_0x3d8b6b,_0x1d1e9a){const _0x119781=_0x44848c;var _0xeed05c;let _0x628833=k(_0x1d1e9a);return((_0xeed05c=_0x3d8b6b['paragraphs'])==null?[]:_0xeed05c)[_0x119781(0x89)](_0x43cb5b=>_0x43cb5b[_0x119781(0xa2)]>_0x1d1e9a[_0x119781(0xa2)]&&_0x43cb5b[_0x119781(0xa2)]<_0x628833);}function Le(_0x35e377,_0x3270fa){const _0x5989ef=_0x44848c;var _0x2339ba;let _0x324a29=k(_0x3270fa);return Ie(_0x35e377,_0x3270fa)['forEach'](_0x301245=>{const _0x374b59=_0x2b86;_0x301245[_0x374b59(0x97)]=Fe(_0x301245[_0x374b59(0x97)]);}),M(_0x35e377,_0x324a29,_0x324a29+0x1),M(_0x35e377,_0x3270fa[_0x5989ef(0xa2)],_0x3270fa['startIndex']+0x1),_0x35e377[_0x5989ef(0x104)]=(_0x2339ba=_0x35e377['blockRanges'])==null?void 0x0:_0x2339ba[_0x5989ef(0x89)](_0x218680=>_0x218680[_0x5989ef(0xc9)]!==_0x3270fa['blockId']),_0x3270fa[_0x5989ef(0xa2)];}function T(_0x12bdc1){const _0x1a7628=_0x44848c;return{..._0x12bdc1,'body':_0x12bdc1[_0x1a7628(0xf3)]?Re(_0x12bdc1['body']):_0x12bdc1[_0x1a7628(0xf3)]};}function Re(_0x24a94f){const _0x5ed366=_0x44848c;var _0x41405d,_0x2dfcf1,_0x2b83ba,_0x3cbb9b,_0x2608aa,_0x38f4b,_0x18396f,_0x1ce3f3,_0xaddfa1;return{..._0x24a94f,'paragraphs':(_0x41405d=_0x24a94f[_0x5ed366(0xd3)])==null?void 0x0:_0x41405d[_0x5ed366(0x108)](_0x11ff2e=>({..._0x11ff2e,'bullet':E(_0x11ff2e[_0x5ed366(0xac)]),'paragraphStyle':E(_0x11ff2e['paragraphStyle'])})),'sectionBreaks':(_0x2dfcf1=_0x24a94f[_0x5ed366(0xf2)])==null?void 0x0:_0x2dfcf1[_0x5ed366(0x108)](_0x50241f=>({..._0x50241f})),'textRuns':(_0x2b83ba=_0x24a94f[_0x5ed366(0xb4)])==null?void 0x0:_0x2b83ba[_0x5ed366(0x108)](_0x5397ae=>({..._0x5397ae})),'tables':(_0x3cbb9b=_0x24a94f['tables'])==null?void 0x0:_0x3cbb9b[_0x5ed366(0x108)](_0x3487ef=>({..._0x3487ef})),'columnGroups':(_0x2608aa=_0x24a94f[_0x5ed366(0x106)])==null?void 0x0:_0x2608aa[_0x5ed366(0x108)](_0x1ecf1c=>{const _0x5bf908=_0x5ed366;var _0x1f9e3d;return{..._0x1ecf1c,'columns':(_0x1f9e3d=_0x1ecf1c[_0x5bf908(0xfc)])==null?void 0x0:_0x1f9e3d[_0x5bf908(0x108)](_0xd271b4=>E(_0xd271b4))};}),'blockRanges':(_0x38f4b=_0x24a94f[_0x5ed366(0x104)])==null?void 0x0:_0x38f4b[_0x5ed366(0x108)](_0x53cd0f=>({..._0x53cd0f})),'customRanges':(_0x18396f=_0x24a94f[_0x5ed366(0xe5)])==null?void 0x0:_0x18396f['map'](_0x370577=>({..._0x370577})),'customDecorations':(_0x1ce3f3=_0x24a94f[_0x5ed366(0xd7)])==null?void 0x0:_0x1ce3f3[_0x5ed366(0x108)](_0x5453c3=>({..._0x5453c3})),'customBlocks':(_0xaddfa1=_0x24a94f[_0x5ed366(0x99)])==null?void 0x0:_0xaddfa1[_0x5ed366(0x108)](_0x25cfd5=>({..._0x25cfd5}))};}function E(_0x5a7a19){const _0x13a983=_0x44848c;return Array[_0x13a983(0x101)](_0x5a7a19)?_0x5a7a19[_0x13a983(0x108)](_0x590cf2=>E(_0x590cf2)):!_0x5a7a19||typeof _0x5a7a19!=_0x13a983(0x9f)?_0x5a7a19:Object[_0x13a983(0xe9)](Object[_0x13a983(0xb1)](_0x5a7a19)[_0x13a983(0x108)](([_0x468a16,_0x2ac242])=>[_0x468a16,E(_0x2ac242)]));}function D(_0xfd151e){const _0x571c8e=_0x44848c;if(!_0xfd151e[_0x571c8e(0xf3)])throw Error(_0x571c8e(0x84));return _0xfd151e[_0x571c8e(0xf3)];}function ze(_0x180835,_0x1f4f4c,_0x2d1eec,_0x25989f='convert-paragraph'){const _0x2e9632=_0x44848c;if(_0x1f4f4c==null||_0x2d1eec==null){let _0xc2e7db=Ve(_0x180835);return{'startOffset':_0xc2e7db,'endOffset':_0xc2e7db};}let _0x34c5b4=Math[_0x2e9632(0x96)](_0x1f4f4c,_0x2d1eec),_0x5445c1=Math[_0x2e9632(0xfd)](_0x1f4f4c,_0x2d1eec),_0x8c7f3d=Ke(_0x180835,_0x34c5b4,_0x5445c1);return _0x34c5b4===_0x5445c1?_0x25989f===_0x2e9632(0x8e)?{'startOffset':_0x34c5b4,'endOffset':_0x5445c1}:Be(_0x180835,_0x34c5b4,_0x8c7f3d):Ue(_0x180835,_0x34c5b4,_0x5445c1,_0x8c7f3d);}function Be(_0x3366f7,_0x253cb2,_0x11e17){const _0x2055a8=_0x44848c;let _0x5640e8=We(_0x3366f7,_0x253cb2);if(_0x5640e8){let _0x37c2e2=O(_0x3366f7,_0x5640e8,_0x11e17);if(_0x37c2e2<_0x5640e8[_0x2055a8(0xa2)])return{'startOffset':_0x37c2e2,'endOffset':_0x11e17?Math[_0x2055a8(0x96)](_0x5640e8['startIndex']+0x1,_0x11e17['endOffset']):_0x5640e8['startIndex']+0x1};}let _0x1ad0bf=_0x253cb2===0x0&&_0x3366f7[_0x2055a8(0x114)][0x0]===_0x272a0f['PARAGRAPH']?0x1:_0x253cb2;return{'startOffset':_0x1ad0bf,'endOffset':_0x1ad0bf};}function Ve(_0x4937ab){const _0x18f8de=_0x44848c;return _0x4937ab[_0x18f8de(0x114)][_0x18f8de(0x119)](_0x272a0f[_0x18f8de(0x116)])?Math[_0x18f8de(0xfd)](0x0,_0x4937ab[_0x18f8de(0x114)]['length']-0x1):_0x4937ab[_0x18f8de(0x114)][_0x18f8de(0x112)];}function He(_0x3bd8dd,_0x12ef98,_0x48de42){const _0x4c41b0=_0x44848c;var _0xfdd18b;let _0x254835=Math['min'](_0x12ef98,_0x48de42),_0x4137bb=Math['max'](_0x12ef98,_0x48de42);return!!((_0xfdd18b=_0x3bd8dd[_0x4c41b0(0xfb)])!=null&&_0xfdd18b[_0x4c41b0(0x8a)](_0x3da091=>_0x254835>_0x3da091[_0x4c41b0(0xa2)]&&_0x254835<_0x3da091[_0x4c41b0(0xad)]||_0x4137bb>_0x3da091[_0x4c41b0(0xa2)]&&_0x4137bb<_0x3da091[_0x4c41b0(0xad)]||_0x254835<=_0x3da091[_0x4c41b0(0xa2)]&&_0x4137bb>=_0x3da091[_0x4c41b0(0xad)]));}function Ue(_0x4eaf9d,_0x3d64e1,_0x325673,_0x3340ef){const _0x4f59d5=_0x44848c;var _0x4b3e56,_0x31c271;let _0x5a6179=[...(_0x4b3e56=_0x4eaf9d[_0x4f59d5(0xd3)])==null?[]:_0x4b3e56][_0x4f59d5(0x87)]((_0x466e65,_0x3c5777)=>_0x466e65[_0x4f59d5(0xa2)]-_0x3c5777['startIndex']),_0x276f3d=_0x2a5ac0(_0x4eaf9d),_0x2e9f40=_0x5a6179['find'](_0x47c731=>O(_0x4eaf9d,_0x47c731,_0x3340ef,_0x276f3d)<=_0x3d64e1&&_0x3d64e1<=_0x47c731[_0x4f59d5(0xa2)]),_0x488598=(_0x31c271=_0x5a6179['find'](_0x62a9a=>_0x62a9a[_0x4f59d5(0xa2)]>=_0x325673-0x1))==null?_0x5a6179[_0x5a6179[_0x4f59d5(0x112)]-0x1]:_0x31c271;return{'startOffset':_0x2e9f40?O(_0x4eaf9d,_0x2e9f40,_0x3340ef,_0x276f3d):_0x3d64e1,'endOffset':_0x488598?Ge(_0x488598,_0x3340ef):_0x325673};}function We(_0x441c53,_0x1ac5ae){const _0x24814a=_0x44848c;var _0x246986;let _0x499ca0=[...(_0x246986=_0x441c53[_0x24814a(0xd3)])==null?[]:_0x246986][_0x24814a(0x87)]((_0x54eff0,_0x35885c)=>_0x54eff0[_0x24814a(0xa2)]-_0x35885c[_0x24814a(0xa2)]),_0x461df8=_0x2a5ac0(_0x441c53);return _0x499ca0[_0x24814a(0xea)](_0x5696d5=>{const _0x3b2ef2=_0x24814a;var _0xcd9d76;return((_0xcd9d76=_0x461df8[_0x3b2ef2(0x7b)](_0x5696d5[_0x3b2ef2(0xa2)]))==null?0x0:_0xcd9d76)<=_0x1ac5ae&&_0x1ac5ae<=_0x5696d5[_0x3b2ef2(0xa2)];});}function O(_0x1fcf5e,_0x5776db,_0x269139,_0x3f47a9){const _0xd48e81=_0x44848c;var _0x5731de;let _0x4ab08c=(_0x5731de=_0x3f47a9==null?void 0x0:_0x3f47a9[_0xd48e81(0x7b)](_0x5776db['startIndex']))==null?_0x4fb420(_0x1fcf5e,_0x5776db):_0x5731de;return _0x269139?Math['max'](_0x4ab08c,_0x269139[_0xd48e81(0xd4)]):_0x4ab08c;}function Ge(_0x2f66db,_0x519003){const _0x5081db=_0x44848c;let _0x4a180b=_0x2f66db[_0x5081db(0xa2)]+0x1;return _0x519003?Math[_0x5081db(0x96)](_0x4a180b,_0x519003['endOffset']):_0x4a180b;}function Ke(_0x50acb8,_0x32b592,_0x1f742e){const _0x2ceb62=_0x44848c;let _0x3b7999=qe(_0x50acb8,_0x32b592),_0x54ac6e=qe(_0x50acb8,_0x32b592===_0x1f742e?_0x1f742e:Math[_0x2ceb62(0xfd)](_0x32b592,_0x1f742e-0x1));if(!(!_0x3b7999&&!_0x54ac6e)){if(!_0x3b7999||!_0x54ac6e||_0x3b7999['startTokenOffset']!==_0x54ac6e[_0x2ceb62(0xd6)]||_0x3b7999[_0x2ceb62(0xa7)]!==_0x54ac6e[_0x2ceb62(0xa7)])throw new C();return _0x3b7999;}}function qe(_0x4728e1,_0x413bc5){const _0x3a4491=_0x44848c;let _0xfc23ed=_0x4728e1[_0x3a4491(0x114)],_0x4527f6=-0x1;for(let _0x5a2fe7=Math['min'](_0x413bc5,_0xfc23ed[_0x3a4491(0x112)]-0x1);_0x5a2fe7>=0x0;_0x5a2fe7--){let _0x6cbd00=_0xfc23ed[_0x5a2fe7];if(_0x6cbd00===_0x272a0f['TABLE_CELL_END'])return;if(_0x6cbd00===_0x272a0f['TABLE_CELL_START']){_0x4527f6=_0x5a2fe7;break;}}if(_0x4527f6<0x0)return;let _0x2e563e=_0xfc23ed[_0x3a4491(0xf5)](_0x272a0f[_0x3a4491(0x9d)],_0x4527f6+0x1);if(!(_0x2e563e<0x0||_0x413bc5<_0x4527f6+0x1||_0x413bc5>_0x2e563e-0x1))return{'startOffset':_0x4527f6+0x1,'endOffset':Math[_0x3a4491(0xfd)](_0x4527f6+0x1,_0x2e563e-0x1),'startTokenOffset':_0x4527f6,'endTokenOffset':_0x2e563e};}function k(_0x19df24){const _0x9df44b=_0x44848c;return _0x3fa12e(_0x19df24)[_0x9df44b(0x83)]-0x1;}function Je(_0x6c02bf,_0x2fcd37,_0x2918c3,_0x45ba6d){const _0x6d0d7e=_0x44848c;var _0x3521b0;let _0x435701=k(_0x2fcd37),_0x4d3cb9=((_0x3521b0=_0x6c02bf[_0x6d0d7e(0xd3)])==null?[]:_0x3521b0)[_0x6d0d7e(0xea)](_0x9881dd=>_0x9881dd[_0x6d0d7e(0xa2)]===_0x435701+0x1);if(!_0x4d3cb9||_0x45ba6d!=null&&_0x4d3cb9['startIndex']!==_0x45ba6d||_0x2918c3!=null&&(_0x2918c3<_0x435701||_0x2918c3>_0x4d3cb9[_0x6d0d7e(0xa2)]+0x1)||_0x6c02bf['dataStream'][_0x4d3cb9[_0x6d0d7e(0xa2)]]!==_0x272a0f['PARAGRAPH'])return null;let _0x14c6c0=_0x4fb420(_0x6c02bf,_0x4d3cb9),_0x12afa8=_0x6c02bf[_0x6d0d7e(0x114)][_0x6d0d7e(0x93)](_0x14c6c0,_0x4d3cb9[_0x6d0d7e(0xa2)]);return Array[_0x6d0d7e(0xbc)](_0x12afa8)[_0x6d0d7e(0xab)](_0x124f0f=>_0x124f0f===_0x272a0f[_0x6d0d7e(0xdd)])?{'paragraph':_0x4d3cb9,'endTokenOffset':_0x435701}:null;}function A(_0x12ee5d,_0x4a45c3){const _0x46e8f8=_0x44848c;var _0x30bf05;let _0x1317df=k(_0x4a45c3),_0x292972=_0x12ee5d['dataStream'][_0x1317df+0x1];_0x292972!==_0x272a0f[_0x46e8f8(0x116)]&&_0x292972!==void 0x0||j(_0x12ee5d,_0x1317df+0x1,_0x272a0f[_0x46e8f8(0xc6)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x2aebf8(new Set((_0x30bf05=_0x12ee5d[_0x46e8f8(0xd3)])==null?void 0x0:_0x30bf05[_0x46e8f8(0x108)](_0x572aa7=>_0x572aa7['paragraphId'])))}]});}function j(_0x1e2df0,_0xd517cc,_0x5301bc,_0x3fee64={}){const _0x5cc9a5=_0x44848c;var _0xd003f5,_0x7adca0;if(_0x5301bc){if(_0x1e2df0[_0x5cc9a5(0x114)]=''+_0x1e2df0[_0x5cc9a5(0x114)][_0x5cc9a5(0x93)](0x0,_0xd517cc)+_0x5301bc+_0x1e2df0[_0x5cc9a5(0x114)][_0x5cc9a5(0x93)](_0xd517cc),Ye(_0x1e2df0,_0xd517cc,_0x5301bc[_0x5cc9a5(0x112)]),(_0xd003f5=_0x3fee64[_0x5cc9a5(0xd3)])!=null&&_0xd003f5['length']){var _0x5e3df0;_0x1e2df0['paragraphs']=[...(_0x5e3df0=_0x1e2df0[_0x5cc9a5(0xd3)])==null?[]:_0x5e3df0,..._0x3fee64[_0x5cc9a5(0xd3)][_0x5cc9a5(0x108)](_0x1f982e=>({..._0x1f982e,'startIndex':_0x1f982e[_0x5cc9a5(0xa2)]+_0xd517cc}))][_0x5cc9a5(0x87)]((_0x5b4b93,_0x530ddf)=>_0x5b4b93[_0x5cc9a5(0xa2)]-_0x530ddf[_0x5cc9a5(0xa2)]);}if((_0x7adca0=_0x3fee64['blockRanges'])!=null&&_0x7adca0[_0x5cc9a5(0x112)]){var _0x399954;_0x1e2df0['blockRanges']=[...(_0x399954=_0x1e2df0['blockRanges'])==null?[]:_0x399954,..._0x3fee64[_0x5cc9a5(0x104)][_0x5cc9a5(0x108)](_0x4d240b=>({..._0x4d240b,'startIndex':_0x4d240b[_0x5cc9a5(0xa2)]+_0xd517cc,'endIndex':_0x4d240b[_0x5cc9a5(0xad)]+_0xd517cc}))][_0x5cc9a5(0x87)]((_0x2fc813,_0xca34e1)=>_0x2fc813[_0x5cc9a5(0xa2)]-_0xca34e1[_0x5cc9a5(0xa2)]);}}}function M(_0x350b50,_0x534630,_0x580f05){const _0x127859=_0x44848c;let _0x3a45b9=_0x580f05-_0x534630;_0x350b50[_0x127859(0x114)]=''+_0x350b50[_0x127859(0x114)]['slice'](0x0,_0x534630)+_0x350b50[_0x127859(0x114)][_0x127859(0x93)](_0x580f05),Xe(_0x350b50,_0x534630,_0x3a45b9);}function Ye(_0x179520,_0x9ae3fe,_0x3fdf78){const _0x442b5a=_0x44848c;_0x179520[_0x442b5a(0xd3)]=N(_0x179520[_0x442b5a(0xd3)],_0x9ae3fe,_0x3fdf78),_0x179520[_0x442b5a(0xf2)]=N(_0x179520[_0x442b5a(0xf2)],_0x9ae3fe,_0x3fdf78),_0x179520[_0x442b5a(0x99)]=N(_0x179520[_0x442b5a(0x99)],_0x9ae3fe,_0x3fdf78),_0x179520[_0x442b5a(0xb4)]=Ze(_0x179520[_0x442b5a(0xb4)],_0x9ae3fe,_0x3fdf78),_0x179520[_0x442b5a(0xfb)]=Qe(_0x179520[_0x442b5a(0xfb)],_0x9ae3fe,_0x3fdf78),_0x179520['columnGroups']=F(_0x179520[_0x442b5a(0x106)],_0x9ae3fe,_0x3fdf78),_0x179520[_0x442b5a(0xe5)]=F(_0x179520[_0x442b5a(0xe5)],_0x9ae3fe,_0x3fdf78),_0x179520[_0x442b5a(0xd7)]=F(_0x179520[_0x442b5a(0xd7)],_0x9ae3fe,_0x3fdf78),_0x179520['blockRanges']=F(_0x179520[_0x442b5a(0x104)],_0x9ae3fe,_0x3fdf78);}function Xe(_0x3e1122,_0x5c9cdc,_0x87823b){const _0x377159=_0x44848c;var _0x4ba97f,_0x444785;_0x3e1122['paragraphs']=P(_0x3e1122[_0x377159(0xd3)],_0x5c9cdc,_0x87823b),_0x3e1122['sectionBreaks']=P(_0x3e1122[_0x377159(0xf2)],_0x5c9cdc,_0x87823b),_0x3e1122[_0x377159(0x99)]=P(_0x3e1122[_0x377159(0x99)],_0x5c9cdc,_0x87823b),_0x3e1122[_0x377159(0xb4)]=(_0x4ba97f=$e((_0x444785=_0x3e1122[_0x377159(0xb4)])==null?void 0x0:_0x444785['map'](_0x389722=>({..._0x389722,'startIndex':_0x389722['st'],'endIndex':_0x389722['ed']})),_0x5c9cdc,_0x87823b))==null?void 0x0:_0x4ba97f[_0x377159(0x108)](_0x26f9a9=>{let {startIndex:_0x43a07b,endIndex:_0xaa1497,..._0x4f4a92}=_0x26f9a9;return{..._0x4f4a92,'st':_0x43a07b,'ed':_0xaa1497};}),_0x3e1122[_0x377159(0xfb)]=$e(_0x3e1122[_0x377159(0xfb)],_0x5c9cdc,_0x87823b),_0x3e1122[_0x377159(0x106)]=I(_0x3e1122[_0x377159(0x106)],_0x5c9cdc,_0x87823b),_0x3e1122[_0x377159(0xe5)]=I(_0x3e1122['customRanges'],_0x5c9cdc,_0x87823b),_0x3e1122['customDecorations']=I(_0x3e1122[_0x377159(0xd7)],_0x5c9cdc,_0x87823b),_0x3e1122[_0x377159(0x104)]=I(_0x3e1122['blockRanges'],_0x5c9cdc,_0x87823b);}function N(_0x8a9766,_0x1380ee,_0x55a8c9){const _0x576510=_0x44848c;return _0x8a9766==null?void 0x0:_0x8a9766[_0x576510(0x108)](_0x10affe=>_0x10affe['startIndex']>=_0x1380ee?{..._0x10affe,'startIndex':_0x10affe[_0x576510(0xa2)]+_0x55a8c9}:_0x10affe);}function P(_0x20938d,_0x5b671e,_0x1dbe2a){const _0x7c26d2=_0x44848c;let _0x2acc43=_0x5b671e+_0x1dbe2a;return _0x20938d==null?void 0x0:_0x20938d[_0x7c26d2(0x108)](_0x56ee6f=>_0x56ee6f[_0x7c26d2(0xa2)]>=_0x5b671e&&_0x56ee6f[_0x7c26d2(0xa2)]<_0x2acc43?null:_0x56ee6f['startIndex']>=_0x2acc43?{..._0x56ee6f,'startIndex':_0x56ee6f[_0x7c26d2(0xa2)]-_0x1dbe2a}:_0x56ee6f)[_0x7c26d2(0x89)](_0x429c14=>_0x429c14!=null);}function Ze(_0x4b5ad7,_0x566212,_0x1a9c0a){const _0xd77172=_0x44848c;return _0x4b5ad7==null?void 0x0:_0x4b5ad7[_0xd77172(0x108)](_0x3f0945=>_0x3f0945['st']>=_0x566212?{..._0x3f0945,'st':_0x3f0945['st']+_0x1a9c0a,'ed':_0x3f0945['ed']+_0x1a9c0a}:_0x3f0945['ed']>_0x566212?{..._0x3f0945,'ed':_0x3f0945['ed']+_0x1a9c0a}:_0x3f0945);}function F(_0x49f6ed,_0x13f033,_0x419612){const _0x4f3d2e=_0x44848c;return _0x49f6ed==null?void 0x0:_0x49f6ed[_0x4f3d2e(0x108)](_0x41e204=>_0x30604c(_0x41e204,_0x13f033,_0x419612));}function Qe(_0x31aa05,_0x1497b5,_0x129d41){return _0x31aa05==null?void 0x0:_0x31aa05['map'](_0x37e12d=>_0x4cf68(_0x37e12d,_0x1497b5,_0x129d41));}function I(_0x4a65f6,_0x4c1c18,_0x5962b6){const _0x288f0d=_0x44848c;return _0x4a65f6==null?void 0x0:_0x4a65f6[_0x288f0d(0x108)](_0x5da08c=>_0x28b2df(_0x5da08c,_0x4c1c18,_0x5962b6))[_0x288f0d(0x89)](_0xcb50fd=>_0xcb50fd!=null);}function $e(_0x5e1324,_0x158946,_0x656914){const _0x58d3b2=_0x44848c;return _0x5e1324==null?void 0x0:_0x5e1324[_0x58d3b2(0x108)](_0x55aec5=>_0x242fdb(_0x55aec5,_0x158946,_0x656914))['filter'](_0x2cc388=>_0x2cc388!=null);}function L(_0xd35733){'@babel/helpers - typeof';const _0x9bb945=_0x44848c;return L=typeof Symbol=='function'&&typeof Symbol[_0x9bb945(0xd1)]==_0x9bb945(0xdb)?function(_0x53aa59){return typeof _0x53aa59;}:function(_0x3c0d21){const _0xa06401=_0x9bb945;return _0x3c0d21&&typeof Symbol==_0xa06401(0xf8)&&_0x3c0d21[_0xa06401(0xb0)]===Symbol&&_0x3c0d21!==Symbol[_0xa06401(0x7e)]?_0xa06401(0xdb):typeof _0x3c0d21;},L(_0xd35733);}function et(_0x342dbc,_0x13e97c){const _0x4262bb=_0x44848c;if(L(_0x342dbc)!='object'||!_0x342dbc)return _0x342dbc;var _0x44fe32=_0x342dbc[Symbol[_0x4262bb(0xdc)]];if(_0x44fe32!==void 0x0){var _0x4a6b5=_0x44fe32[_0x4262bb(0xe0)](_0x342dbc,_0x13e97c||_0x4262bb(0xbd));if(L(_0x4a6b5)!=_0x4262bb(0x9f))return _0x4a6b5;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x13e97c===_0x4262bb(0x115)?String:Number)(_0x342dbc);}function tt(_0x3a6b60){const _0xd6c046=_0x44848c;var _0x5a7d9e=et(_0x3a6b60,'string');return L(_0x5a7d9e)==_0xd6c046(0xdb)?_0x5a7d9e:_0x5a7d9e+'';}function R(_0x2a2dd9,_0x31e1ab,_0xce998f){const _0x10b4ab=_0x44848c;return(_0x31e1ab=tt(_0x31e1ab))in _0x2a2dd9?Object[_0x10b4ab(0x107)](_0x2a2dd9,_0x31e1ab,{'value':_0xce998f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2a2dd9[_0x31e1ab]=_0xce998f,_0x2a2dd9;}var z=class extends _0x7a2bfc{constructor(..._0x4f55f3){const _0x43fc9b=_0x44848c;super(..._0x4f55f3),R(this,_0x43fc9b(0xa5),new Map()),R(this,'_change$',new _0x500c1a()),R(this,_0x43fc9b(0xba),this['_change$'][_0x43fc9b(0x8b)]());}[_0x44848c(0x95)](_0x1ab508,_0x22e61e){const _0xf2db1=_0x44848c;return b(this['_resources'][_0xf2db1(0x7b)](_0x1ab508))[_0xf2db1(0xb7)][_0x22e61e];}[_0x44848c(0x9e)](_0x3739fe,_0xd746d6,_0x53a110){const _0x3f7e06=_0x44848c;this['_setResource'](_0x3739fe,_0xd746d6,x(this[_0x3f7e06(0xa5)]['get'](_0x3739fe),_0xd746d6,_0x53a110));}[_0x44848c(0x98)](_0x256ad0,_0x5982de){const _0x1d684f=_0x44848c;this[_0x1d684f(0xa1)](_0x256ad0,_0x5982de,S(this[_0x1d684f(0xa5)][_0x1d684f(0x7b)](_0x256ad0),_0x5982de));}[_0x44848c(0x113)](_0x15f8fb){const _0x4de54b=_0x44848c;return b(this[_0x4de54b(0xa5)][_0x4de54b(0x7b)](_0x15f8fb));}[_0x44848c(0xa3)](_0x2d1bbf,_0x120133){const _0x1a1d37=_0x44848c;this['_resources'][_0x1a1d37(0x7f)](_0x2d1bbf,b(_0x120133)),this[_0x1a1d37(0xe8)][_0x1a1d37(0xe1)]({'unitId':_0x2d1bbf});}[_0x44848c(0xf6)](_0x1e1919){const _0x1cbb9e=_0x44848c;this[_0x1cbb9e(0xa5)][_0x1cbb9e(0xf4)](_0x1e1919),this[_0x1cbb9e(0xe8)][_0x1cbb9e(0xe1)]({'unitId':_0x1e1919});}[_0x44848c(0x117)](){const _0x29c4a0=_0x44848c;super[_0x29c4a0(0x117)](),this[_0x29c4a0(0xa5)][_0x29c4a0(0xbb)](),this[_0x29c4a0(0xe8)]['complete']();}['_setResource'](_0x384c1c,_0xf47477,_0x27582e){const _0x400377=_0x44848c;this[_0x400377(0xa5)][_0x400377(0x7f)](_0x384c1c,_0x27582e),this[_0x400377(0xe8)]['next']({'unitId':_0x384c1c,'blockId':_0xf47477});}};const nt={'id':'docs-code.command.insert-below','type':_0x2f4978[_0x44848c(0xb3)],'handler':_0x3eb485=>{const _0x1f355c=_0x44848c;var _0x5a0b7e;if(_0x452170(G(_0x3eb485)))return!0x1;let _0x1973f1=lt(_0x3eb485);if(_0x1973f1)return _0x3eb485[_0x1f355c(0x7b)](_0x10119a)['syncExecuteCommand'](B['id'],{'startOffset':_0x1973f1[_0x1f355c(0xd4)],'endOffset':_0x1973f1[_0x1f355c(0x83)],'insertionMode':_0x1f355c(0x8e),'unitId':_0x1973f1[_0x1f355c(0x102)]});let _0x196475=ut(_0x3eb485);if(!_0x196475)return!0x1;let _0x276688=(_0x5a0b7e=_0x3eb485[_0x1f355c(0x7b)](_0x228d50)[_0x1f355c(0xa4)](_0x108364[_0x1f355c(0xe3)]))==null?void 0x0:_0x5a0b7e[_0x1f355c(0xe2)](),_0x1f86da=_0x276688?_0x491f6d(_0x276688,_0x196475):_0x196475[_0x1f355c(0xa2)]+0x1;return _0x3eb485['get'](_0x10119a)[_0x1f355c(0xaa)](B['id'],{'startOffset':_0x1f86da,'endOffset':_0x1f86da});}},rt={'id':'docs-code.command.consume-boundary-delete','type':_0x2f4978[_0x44848c(0xb3)],'handler':()=>!0x0},B={'id':'docs-code.command.insert','type':_0x2f4978[_0x44848c(0xb3)],'handler':(_0x3e7c02,_0x5be642)=>{const _0x403f49=_0x44848c;var _0x93b122;let _0x168c4c=W(_0x3e7c02,_0x5be642==null?void 0x0:_0x5be642[_0x403f49(0x102)]);if(!_0x168c4c)return!0x1;let _0x1726dc=G(_0x3e7c02);if(_0x452170(_0x1726dc))return!0x1;let _0x5dcf25=_0x168c4c['model'][_0x403f49(0x113)](_0x168c4c['unitId']),_0x44a9a4=ot(_0x5be642,_0x1726dc),_0x368175=st(_0x168c4c[_0x403f49(0xd2)],_0x44a9a4);if(_0x368175){if(_0x368175[_0x403f49(0xc0)]!==_0x45cc53['CODE'])return!0x1;let _0x44d240=w({'blockId':_0x368175[_0x403f49(0xc9)],'documentData':_0x168c4c[_0x403f49(0xd2)],'metadata':_0x5dcf25});if(!_0x44d240)return!0x1;let _0xbb3047=J(_0x168c4c[_0x403f49(0xfe)],_0x168c4c['selectionManager'],_0x168c4c['unitId'],_0x168c4c[_0x403f49(0xd2)],_0x44d240[_0x403f49(0x9a)],B['id'],_0x44d240[_0x403f49(0xc2)]);return _0xbb3047&&_0x44d240[_0x403f49(0x8f)]&&_0x168c4c[_0x403f49(0x80)]['deserialize'](_0x168c4c['unitId'],_0x44d240[_0x403f49(0x8f)]),_0xbb3047;}let _0x1f6d34=(_0x93b122=_0x5be642==null?void 0x0:_0x5be642[_0x403f49(0xc9)])==null?_0x4842c7(0x6):_0x93b122,_0x4da029;try{_0x4da029=Se({'blockId':_0x1f6d34,'config':_0x5be642==null?void 0x0:_0x5be642['config'],'documentData':_0x168c4c[_0x403f49(0xd2)],'endOffset':_0x44a9a4==null?void 0x0:_0x44a9a4[_0x403f49(0x83)],'insertionMode':_0x5be642==null?void 0x0:_0x5be642[_0x403f49(0xda)],'metadata':_0x5dcf25,'startOffset':_0x44a9a4==null?void 0x0:_0x44a9a4[_0x403f49(0xd4)]});}catch(_0x423a47){if(_0x423a47 instanceof C)return!0x1;throw _0x423a47;}let _0x7aefee=J(_0x168c4c[_0x403f49(0xfe)],_0x168c4c[_0x403f49(0xc3)],_0x168c4c[_0x403f49(0x102)],_0x168c4c[_0x403f49(0xd2)],_0x4da029[_0x403f49(0x9a)],B['id'],_0x4da029['cursorOffset']);return _0x7aefee&&_0x4da029[_0x403f49(0x8f)]&&_0x168c4c[_0x403f49(0x80)][_0x403f49(0xa3)](_0x168c4c[_0x403f49(0x102)],_0x4da029[_0x403f49(0x8f)]),_0x7aefee;}},it={'id':_0x44848c(0xfa),'type':_0x2f4978[_0x44848c(0xb3)],'handler':(_0x49b092,_0x1d0cf6)=>{const _0x220f71=_0x44848c;if(!_0x1d0cf6)return!0x1;let _0x5871b4=W(_0x49b092,_0x1d0cf6['unitId']);if(!_0x5871b4)return!0x1;let _0x1aad8e=Ee({'blockId':_0x1d0cf6[_0x220f71(0xc9)],'config':_0x1d0cf6[_0x220f71(0xb2)],'documentData':_0x5871b4[_0x220f71(0xd2)],'metadata':_0x5871b4['model']['serialize'](_0x5871b4[_0x220f71(0x102)])});return _0x1aad8e[_0x220f71(0x8f)]&&_0x5871b4['model']['deserialize'](_0x5871b4[_0x220f71(0x102)],_0x1aad8e[_0x220f71(0x8f)]),!0x0;}},at={'id':_0x44848c(0xb6),'type':_0x2f4978['COMMAND'],'handler':(_0x338e1b,_0x261ad4)=>V['handler'](_0x338e1b,_0x261ad4)},V={'id':'docs-code.command.unwrap','type':_0x2f4978[_0x44848c(0xb3)],'handler':(_0x31339c,_0xb79927)=>{const _0x416bdc=_0x44848c;if(!_0xb79927)return!0x1;let _0x3f247f=W(_0x31339c,_0xb79927==null?void 0x0:_0xb79927[_0x416bdc(0x102)]);if(!_0x3f247f)return!0x1;let _0xf5a750=w({'blockId':_0xb79927['blockId'],'documentData':_0x3f247f['previousDocumentData'],'metadata':_0x3f247f[_0x416bdc(0x80)]['serialize'](_0x3f247f[_0x416bdc(0x102)])});if(!_0xf5a750)return!0x1;let _0x2d47b7=J(_0x3f247f[_0x416bdc(0xfe)],_0x3f247f[_0x416bdc(0xc3)],_0x3f247f['unitId'],_0x3f247f['previousDocumentData'],_0xf5a750[_0x416bdc(0x9a)],V['id'],_0xf5a750[_0x416bdc(0xc2)]);return _0x2d47b7&&_0xf5a750['nextMetadata']&&_0x3f247f['model'][_0x416bdc(0xa3)](_0x3f247f['unitId'],_0xf5a750[_0x416bdc(0x8f)]),_0x2d47b7;}},H={'id':'docs-code.command.remove','type':_0x2f4978['COMMAND'],'handler':(_0xf4e004,_0x4cc8f1)=>{const _0x4d996f=_0x44848c;if(!_0x4cc8f1)return!0x1;let _0x98b307=W(_0xf4e004,_0x4cc8f1==null?void 0x0:_0x4cc8f1[_0x4d996f(0x102)]);if(!_0x98b307)return!0x1;let _0x4504df=De({'blockId':_0x4cc8f1[_0x4d996f(0xc9)],'documentData':_0x98b307['previousDocumentData'],'metadata':_0x98b307[_0x4d996f(0x80)]['serialize'](_0x98b307[_0x4d996f(0x102)])});if(!_0x4504df)return!0x1;let _0x3c70e3=J(_0x98b307[_0x4d996f(0xfe)],_0x98b307['selectionManager'],_0x98b307['unitId'],_0x98b307['previousDocumentData'],_0x4504df[_0x4d996f(0x9a)],H['id'],_0x4504df[_0x4d996f(0xc2)]);return _0x3c70e3&&_0x4504df['nextMetadata']&&_0x98b307[_0x4d996f(0x80)]['deserialize'](_0x98b307[_0x4d996f(0x102)],_0x4504df[_0x4d996f(0x8f)]),_0x3c70e3;}},U={'id':_0x44848c(0xe4),'type':_0x2f4978['COMMAND'],'handler':(_0x236cc1,_0x13cd41)=>{const _0x3254d7=_0x44848c;var _0x47d12d,_0x448c14;let _0x1bd501=W(_0x236cc1,_0x13cd41==null?void 0x0:_0x13cd41[_0x3254d7(0x102)]);if(!_0x1bd501)return!0x1;let _0xb33155=(_0x47d12d=_0x13cd41==null?void 0x0:_0x13cd41[_0x3254d7(0xc2)])==null?(_0x448c14=G(_0x236cc1))==null?void 0x0:_0x448c14[_0x3254d7(0xd4)]:_0x47d12d;if(_0xb33155==null)return!0x1;let _0x55f5c9=Oe({'cursorOffset':_0xb33155,'documentData':_0x1bd501[_0x3254d7(0xd2)],'paragraphStartIndex':_0x13cd41==null?void 0x0:_0x13cd41[_0x3254d7(0xed)]});return _0x55f5c9?J(_0x1bd501[_0x3254d7(0xfe)],_0x1bd501[_0x3254d7(0xc3)],_0x1bd501[_0x3254d7(0x102)],_0x1bd501[_0x3254d7(0xd2)],_0x55f5c9[_0x3254d7(0x9a)],U['id'],_0x55f5c9[_0x3254d7(0xc2)]):!0x1;}};function W(_0x3defb9,_0x462a00){const _0x2f73c5=_0x44848c;let _0x288436=_0x3defb9[_0x2f73c5(0x7b)](_0x228d50),_0x1923c4=_0x462a00?_0x288436[_0x2f73c5(0x86)](_0x462a00,_0x108364['UNIVER_DOC']):_0x288436[_0x2f73c5(0xa4)](_0x108364[_0x2f73c5(0xe3)]);return _0x1923c4?{'commandService':_0x3defb9['get'](_0x10119a),'model':_0x3defb9[_0x2f73c5(0x7b)](z),'previousDocumentData':_0x1923c4[_0x2f73c5(0x94)](),'selectionManager':_0x3defb9[_0x2f73c5(0x7b)](_0x3a7722),'unitId':_0x1923c4['getUnitId']()}:null;}function G(_0x3af64a){const _0x1948e5=_0x44848c;var _0x2f45fa;return(_0x2f45fa=_0x3af64a[_0x1948e5(0x7b)](_0x3a7722)[_0x1948e5(0xc4)]())==null?void 0x0:_0x2f45fa[0x0];}function ot(_0x4f5d11,_0x2e6e43){const _0x29e93f=_0x44848c;var _0x37ea43,_0xdd683b;let _0x4fd650=(_0x37ea43=_0x4f5d11==null?void 0x0:_0x4f5d11[_0x29e93f(0xd4)])==null?_0x2e6e43==null?void 0x0:_0x2e6e43[_0x29e93f(0xd4)]:_0x37ea43,_0x2d41a5=(_0xdd683b=_0x4f5d11==null?void 0x0:_0x4f5d11[_0x29e93f(0x83)])==null?_0x2e6e43==null?void 0x0:_0x2e6e43[_0x29e93f(0x83)]:_0xdd683b;if(!(_0x4fd650==null||_0x2d41a5==null))return{'endOffset':Math[_0x29e93f(0xfd)](_0x4fd650,_0x2d41a5),'startOffset':Math[_0x29e93f(0x96)](_0x4fd650,_0x2d41a5)};}function st(_0x50f21a,_0xf4d36c){const _0x337d8b=_0x44848c;var _0x3cb228;if(!_0xf4d36c)return;let _0x42e934=ct(_0xf4d36c);return(_0x3cb228=_0x50f21a[_0x337d8b(0xf3)])==null||(_0x3cb228=_0x3cb228[_0x337d8b(0x104)])==null?void 0x0:_0x3cb228[_0x337d8b(0xea)](_0x257bd6=>{const _0x35395e=_0x337d8b;let _0x227c5d=_0x3fa12e(_0x257bd6);return _0xf4d36c[_0x35395e(0xd4)]===_0xf4d36c['endOffset']?_0x50cd86(_0x227c5d,_0x42e934):_0x33e1b3(_0x227c5d,_0x42e934);});}function ct(_0x4edd3c){const _0x3cb09b=_0x44848c;return _0x4edd3c[_0x3cb09b(0xd4)]===_0x4edd3c[_0x3cb09b(0x83)]?_0x4edd3c[_0x3cb09b(0xd4)]:_0x4edd3c[_0x3cb09b(0xd4)]+0x1;}function lt(_0x1a1667){const _0x4edc74=_0x44848c;var _0x43eb6e;let _0x5bd7a5=(_0x43eb6e=_0x1a1667[_0x4edc74(0x7b)](_0x228d50)[_0x4edc74(0xa4)](_0x108364[_0x4edc74(0xe3)]))==null?void 0x0:_0x43eb6e['getUnitId']();try{return _0x1a1667[_0x4edc74(0x7b)](_0x22ba41)['consumeInsertRange'](_0x5bd7a5);}catch{return null;}}function ut(_0x3fd692){const _0x24b04f=_0x44848c;var _0x3b0273,_0x45cbc1,_0x4a31e1;let _0x371f37=G(_0x3fd692);if(!_0x371f37)return null;let _0x2bc1fb=_0x3fd692[_0x24b04f(0x7b)](_0x228d50)[_0x24b04f(0xa4)](_0x108364[_0x24b04f(0xe3)]),_0x49d7d8=_0x2bc1fb==null?void 0x0:_0x2bc1fb[_0x24b04f(0xe2)]();return _0x49d7d8?(_0x3b0273=_0x2aa63d[_0x24b04f(0xf9)][_0x24b04f(0xd0)](_0x371f37,(_0x45cbc1=_0x49d7d8[_0x24b04f(0xd3)])==null?[]:_0x45cbc1,(_0x4a31e1=_0x49d7d8[_0x24b04f(0x114)])==null?'':_0x4a31e1)[0x0])==null?null:_0x3b0273:null;}function _0x36fb(){const _0x14eeb8=['every','bullet','endIndex','126128jkikke','start','constructor','entries','config','COMMAND','textRuns','textStyle','docs-code.command.exit','codes','paragraph','stringify','change$','clear','from','default','removeOp','50RpVggO','blockType','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','cursorOffset','selectionManager','getTextRanges','77570XMlPmt','PARAGRAPH','insertOp','270780fuDgeQ','blockId','version','BLOCK_START','_config','metadata','_initResource','push','getParagraphsInRange','iterator','previousDocumentData','paragraphs','startOffset','getOwnPropertyDescriptor','startTokenOffset','customDecorations','4935161FbcLeg','1177VcvZvv','insertionMode','symbol','toPrimitive','BLOCK_END','left','reduce','call','next','getBody','UNIVER_DOC','docs-code.command.cancel-empty-paragraph','customRanges','spaceBelow','_commandService','_change$','fromEntries','find','right','getInstance','paragraphStartIndex','8wUWfEm','39YMdXKt','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','direction','sectionBreaks','body','delete','indexOf','removeUnit','1.0.0-alpha.3','function','range','docs-code.command.update','tables','columns','max','commandService','add','2379732LHMqYT','isArray','unitId','pluginName','blockRanges','_injector','columnGroups','defineProperty','map','forEach','_configService','keys','retain','DOC_CODE_PLUGIN','paragraphId','CODE','registerCommand','insert','length','serialize','dataStream','string','SECTION_BREAK','dispose','onStarting','endsWith','get','4132017osOSvt','documentData','prototype','set','model','packageName','_docsCodeModel','endOffset','Document\x20body\x20is\x20required','deleteLength','getUnit','sort','insertLength','filter','some','asObservable','replaceOp','decorate','insert-new','nextMetadata','spaceAbove','disposeWithMe','editOp','slice','getSnapshot','getCodeConfig','min','paragraphStyle','removeCode','customBlocks','nextDocumentData','compose','_resourceManagerService','TABLE_CELL_END','setCodeConfig','object','replaceDocRanges','_setResource','startIndex','deserialize','getCurrentUnitOfType','_resources','496287JWqAHm','endTokenOffset','monospace','parse','syncExecuteCommand'];_0x36fb=function(){return _0x14eeb8;};return _0x36fb();}function dt(_0x3618c5,_0x33a169){const _0x3ca187=_0x44848c;let _0xf70c5a=_0x3618c5[_0x3ca187(0xf3)],_0x8b199c=_0x33a169[_0x3ca187(0xf3)],_0x4b7a2=_0x168f93(_0xf70c5a,_0x8b199c);return[_0x4b7a2&&_0x8b199c?ft(_0x8b199c,_0x4b7a2):null,_0x4b7a2?null:pt(_0xf70c5a,_0x8b199c)][_0x3ca187(0x89)](Boolean)[_0x3ca187(0xdf)]((_0x435e4d,_0x52e0e8)=>_0x2d3193[_0x3ca187(0x9b)](_0x435e4d,_0x52e0e8),null);}function ft(_0x310107,_0x45c654){const _0x47fcb9=_0x44848c;let _0x54ff3c=new _0x11e4b5();return _0x54ff3c[_0x47fcb9(0x10c)](_0x45c654[_0x47fcb9(0xaf)]),_0x45c654[_0x47fcb9(0x88)]>0x0&&_0x54ff3c[_0x47fcb9(0x111)](_0x45c654[_0x47fcb9(0x88)],_0x50fffd(_0x310107,_0x45c654[_0x47fcb9(0xaf)],_0x45c654[_0x47fcb9(0xaf)]+_0x45c654[_0x47fcb9(0x88)],!0x1)),_0x45c654[_0x47fcb9(0x85)]>0x0&&_0x54ff3c[_0x47fcb9(0xf4)](_0x45c654[_0x47fcb9(0x85)]),_0x2d3193[_0x47fcb9(0xec)]()[_0x47fcb9(0x92)](_0x54ff3c['serialize'](),['body']);}function pt(_0x15d238,_0x5d53f1){const _0x9a7238=_0x44848c;let _0x5dfc8e=[],_0xb68056=_0x15d238?ht(_0x15d238):void 0x0,_0x1c2e25=_0x5d53f1?ht(_0x5d53f1):void 0x0;for(let _0x14be7b of mt)K(_0x2d3193[_0x9a7238(0xec)](),[_0x9a7238(0xf3),_0x14be7b],_0xb68056==null?void 0x0:_0xb68056[_0x14be7b],_0x1c2e25==null?void 0x0:_0x1c2e25[_0x14be7b],_0x5dfc8e);return _0x5dfc8e[_0x9a7238(0xdf)]((_0x4a4fbb,_0x13290b)=>_0x2d3193[_0x9a7238(0x9b)](_0x4a4fbb,_0x13290b),null);}const mt=[_0x44848c(0xd3),_0x44848c(0xf2),_0x44848c(0xfb),_0x44848c(0x106),_0x44848c(0x104),'customBlocks','customRanges',_0x44848c(0xd7),'textRuns'];function ht(_0xf115e5){return _0xf115e5;}function K(_0x51dad3,_0x3f973,_0x3e5db0,_0x47a8d5,_0x8ca65d){const _0x83dcc1=_0x44848c;if(!q(_0x3e5db0,_0x47a8d5)){if(_0x3e5db0==null){_0x8ca65d['push'](_0x51dad3['insertOp'](_0x3f973,_0x47a8d5));return;}if(_0x47a8d5==null){_0x8ca65d[_0x83dcc1(0xcf)](_0x51dad3['removeOp'](_0x3f973,_0x3e5db0));return;}if(Array[_0x83dcc1(0x101)](_0x3e5db0)&&Array[_0x83dcc1(0x101)](_0x47a8d5)){gt(_0x51dad3,_0x3f973,_0x3e5db0,_0x47a8d5,_0x8ca65d);return;}if(_t(_0x3e5db0)&&_t(_0x47a8d5)){new Set([...Object['keys'](_0x3e5db0),...Object[_0x83dcc1(0x10b)](_0x47a8d5)])['forEach'](_0x296cfd=>{K(_0x51dad3,[..._0x3f973,_0x296cfd],_0x3e5db0[_0x296cfd],_0x47a8d5[_0x296cfd],_0x8ca65d);});return;}_0x8ca65d[_0x83dcc1(0xcf)](_0x51dad3[_0x83dcc1(0x8c)](_0x3f973,_0x3e5db0,_0x47a8d5));}}function gt(_0x580e9a,_0xda42a1,_0x6badaa,_0x25d4e7,_0x3e1658){const _0x1664b2=_0x44848c;if(_0x6badaa[_0x1664b2(0x112)]===_0x25d4e7['length']){_0x6badaa[_0x1664b2(0x109)]((_0x488ac9,_0x89a2e1)=>K(_0x580e9a,[..._0xda42a1,_0x89a2e1],_0x488ac9,_0x25d4e7[_0x89a2e1],_0x3e1658));return;}let _0x114790=0x0;for(;_0x114790<_0x6badaa[_0x1664b2(0x112)]&&_0x114790<_0x25d4e7[_0x1664b2(0x112)]&&q(_0x6badaa[_0x114790],_0x25d4e7[_0x114790]);)_0x114790++;let _0x5aaf6e=_0x6badaa[_0x1664b2(0x112)]-0x1,_0x2e9fbb=_0x25d4e7['length']-0x1;for(;_0x5aaf6e>=_0x114790&&_0x2e9fbb>=_0x114790&&q(_0x6badaa[_0x5aaf6e],_0x25d4e7[_0x2e9fbb]);)_0x5aaf6e--,_0x2e9fbb--;for(let _0x1b5573=_0x5aaf6e;_0x1b5573>=_0x114790;_0x1b5573--)_0x3e1658[_0x1664b2(0xcf)](_0x580e9a[_0x1664b2(0xbe)]([..._0xda42a1,_0x1b5573],_0x6badaa[_0x1b5573]));for(let _0x3ef64d=_0x114790;_0x3ef64d<=_0x2e9fbb;_0x3ef64d++)_0x3e1658['push'](_0x580e9a[_0x1664b2(0xc7)]([..._0xda42a1,_0x3ef64d],_0x25d4e7[_0x3ef64d]));}function _t(_0x405f48){const _0x45d71b=_0x44848c;return typeof _0x405f48==_0x45d71b(0x9f)&&!!_0x405f48&&!Array[_0x45d71b(0x101)](_0x405f48);}function q(_0x25f78b,_0x33b9f3){const _0x270655=_0x44848c;return JSON[_0x270655(0xb9)](_0x25f78b)===JSON[_0x270655(0xb9)](_0x33b9f3);}function J(_0x5b897c,_0x56063e,_0x558797,_0x4c24b0,_0x20937d,_0x348a60,_0x38b2d4){const _0x446093=_0x44848c;let _0x17b33a=dt(_0x4c24b0,_0x20937d);return _0x17b33a?!!_0x5b897c[_0x446093(0xaa)](_0x28d3f9['id'],{'unitId':_0x558797,'actions':_0x17b33a,'textRanges':[{'startOffset':_0x38b2d4,'endOffset':_0x38b2d4,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x348a60}):(_0x56063e[_0x446093(0xa0)]([{'startOffset':_0x38b2d4,'endOffset':_0x38b2d4}],{'unitId':_0x558797,'subUnitId':_0x558797},!0x1),!0x0);}const Y=_0x44848c(0x10d);var vt='@univerjs-pro/docs-code',yt=_0x44848c(0xf7);const bt={};function X(_0x35c651,_0xcce8a){return function(_0x20342a,_0x56166f){_0xcce8a(_0x20342a,_0x56166f,_0x35c651);};}function Z(_0x1c3fb2,_0x5246ad,_0x59c7f8,_0x521bdc){const _0x155b3c=_0x44848c;var _0x3bb2f0=arguments[_0x155b3c(0x112)],_0x26ec61=_0x3bb2f0<0x3?_0x5246ad:_0x521bdc===null?_0x521bdc=Object[_0x155b3c(0xd5)](_0x5246ad,_0x59c7f8):_0x521bdc,_0x3ee76b;if(typeof Reflect==_0x155b3c(0x9f)&&typeof Reflect[_0x155b3c(0x8d)]==_0x155b3c(0xf8))_0x26ec61=Reflect[_0x155b3c(0x8d)](_0x1c3fb2,_0x5246ad,_0x59c7f8,_0x521bdc);else{for(var _0x3d0e00=_0x1c3fb2[_0x155b3c(0x112)]-0x1;_0x3d0e00>=0x0;_0x3d0e00--)(_0x3ee76b=_0x1c3fb2[_0x3d0e00])&&(_0x26ec61=(_0x3bb2f0<0x3?_0x3ee76b(_0x26ec61):_0x3bb2f0>0x3?_0x3ee76b(_0x5246ad,_0x59c7f8,_0x26ec61):_0x3ee76b(_0x5246ad,_0x59c7f8))||_0x26ec61);}return _0x3bb2f0>0x3&&_0x26ec61&&Object['defineProperty'](_0x5246ad,_0x59c7f8,_0x26ec61),_0x26ec61;}let Q=class extends _0x7a2bfc{constructor(_0x5855ac,_0x407b10){const _0x4a0a76=_0x44848c;super(),this[_0x4a0a76(0x9c)]=_0x5855ac,this[_0x4a0a76(0x82)]=_0x407b10,this[_0x4a0a76(0xce)]();}[_0x44848c(0xce)](){const _0x37fd07=_0x44848c;this[_0x37fd07(0x91)](this[_0x37fd07(0x9c)]['registerPluginResource']({'pluginName':Y,'businesses':[_0x108364['UNIVER_DOC']],'toJson':_0x3628f8=>JSON['stringify'](this[_0x37fd07(0x82)]['serialize'](_0x3628f8)),'parseJson':_0x421dc3=>b(JSON[_0x37fd07(0xa9)](_0x421dc3)),'onLoad':(_0x736311,_0x5e7626)=>this[_0x37fd07(0x82)][_0x37fd07(0xa3)](_0x736311,_0x5e7626),'onUnLoad':_0x2b7cc6=>this['_docsCodeModel'][_0x37fd07(0xf6)](_0x2b7cc6)}));}};Q=Z([X(0x0,_0x23d35f),X(0x1,_0x163407(z))],Q);let $=class extends _0x495660{constructor(_0x3e7145=bt,_0x2f71be,_0x50a248,_0xb2d6f0){const _0x54fd2c=_0x44848c;super(),this[_0x54fd2c(0xcc)]=_0x3e7145,this[_0x54fd2c(0x105)]=_0x2f71be,this[_0x54fd2c(0xe7)]=_0x50a248,this[_0x54fd2c(0x10a)]=_0xb2d6f0;let {..._0x463c4c}=_0x55c09c({},bt,this[_0x54fd2c(0xcc)]);this['_configService']['setConfig']('docs-code.config',_0x463c4c);}[_0x44848c(0x118)](){const _0x4926e7=_0x44848c;this[_0x4926e7(0x105)][_0x4926e7(0xff)]([z]),this['_injector'][_0x4926e7(0xff)]([Q]),this[_0x4926e7(0x105)][_0x4926e7(0x7b)](z),this[_0x4926e7(0x105)][_0x4926e7(0x7b)](Q),[B,nt,it,V,H,at,U,rt][_0x4926e7(0x109)](_0x558a34=>this[_0x4926e7(0x91)](this[_0x4926e7(0xe7)][_0x4926e7(0x110)](_0x558a34)));}};R($,_0x44848c(0x103),Y),R($,_0x44848c(0x81),vt),R($,_0x44848c(0xca),yt),R($,'type',_0x108364[_0x44848c(0xe3)]),$=Z([_0x1c14e5(_0x355b25,_0x4d0ee5),X(0x1,_0x163407(_0x445227)),X(0x2,_0x10119a),X(0x3,_0x1d5c59)],$);export{Y as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,rt as DocsCodeConsumeBoundaryDeleteCommand,nt as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,z as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,it as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,Oe as buildCancelEmptyCodeParagraphActions,je as isCodeBoundaryDelete,y as normalizeDocsCodeConfig};
|
|
1
|
+
const _0x1edc1f=_0x23a6;function _0x23a6(_0x5563f6,_0x426ced){_0x5563f6=_0x5563f6-0x1b6;const _0x8e7208=_0x8e72();let _0x23a61a=_0x8e7208[_0x5563f6];return _0x23a61a;}(function(_0x1953ae,_0x259e0d){const _0xce95f5=_0x23a6,_0x43d89e=_0x1953ae();while(!![]){try{const _0x272354=parseInt(_0xce95f5(0x206))/0x1+-parseInt(_0xce95f5(0x254))/0x2*(parseInt(_0xce95f5(0x1ce))/0x3)+-parseInt(_0xce95f5(0x1de))/0x4*(parseInt(_0xce95f5(0x1ed))/0x5)+-parseInt(_0xce95f5(0x1e5))/0x6*(parseInt(_0xce95f5(0x23e))/0x7)+parseInt(_0xce95f5(0x1e1))/0x8*(parseInt(_0xce95f5(0x256))/0x9)+-parseInt(_0xce95f5(0x1bc))/0xa+parseInt(_0xce95f5(0x20b))/0xb*(parseInt(_0xce95f5(0x1dd))/0xc);if(_0x272354===_0x259e0d)break;else _0x43d89e['push'](_0x43d89e['shift']());}catch(_0x118d37){_0x43d89e['push'](_0x43d89e['shift']());}}}(_0x8e72,0xcf039));import{BuildTextUtils as _0xfcd91,CommandType as _0x3aa002,DataStreamTreeTokenType as _0x43b06f,DependentOn as _0x2f1165,Disposable as _0x11f1e7,DocumentBlockRangeType as _0x37a99f,ICommandService as _0x1d61d6,IConfigService as _0x4a9167,IResourceManagerService as _0x50ae34,IUniverInstanceService as _0x45d141,Inject as _0x5c4b8b,Injector as _0x193e69,JSONX as _0x3e4a71,Plugin as _0x19b9cc,TextX as _0x37143f,UniverInstanceType as _0x41a83a,containsInteriorInsertionOffset as _0x52963d,containsStreamIndex as _0xf103f,createParagraphId as _0x5cfb3a,generateRandomId as _0x35a556,getBlockRangeInterval as _0x4a1bb2,getBodySliceForTextXAction as _0x2fb9bb,getParagraphContentStartOffset as _0x120216,getParagraphContentStartOffsets as _0xfa281d,getParagraphFollowingBlockOffset as _0x2be263,getSingleDataStreamChange as _0x1817eb,intersectsOperationalIntervals as _0x2f8ce5,merge as _0x559340,shiftExclusiveRangeOnDelete as _0x1c7981,shiftExclusiveRangeOnInsert as _0x2dea21,shiftInclusiveRangeOnDelete as _0x3a6def,shiftInclusiveRangeOnInsert as _0x5bff0d}from'@univerjs/core';import{DocSelectionManagerService as _0x2ed20d,RichTextEditingMutation as _0xc563fa,UniverDocsPlugin as _0x3f1e99,getContentInsertRange as _0x517640,isHeaderFooterSelection as _0xaf3991}from'@univerjs/docs';import{Subject as _0x3b77df}from'rxjs';import{UniverLicensePlugin as _0x4c3c74}from'@univerjs-pro/license';const ye={'language':_0x1edc1f(0x252),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function b(_0x307f11){return{...ye,..._0x307f11};}function x(_0x28cbb9){const _0x1c8662=_0x1edc1f;var _0x4f48cb;let _0xb2010d=(_0x4f48cb=_0x28cbb9==null?void 0x0:_0x28cbb9[_0x1c8662(0x1ec)])==null?{}:_0x4f48cb;return{'codes':Object[_0x1c8662(0x1f6)](Object[_0x1c8662(0x1c9)](_0xb2010d)['map'](([_0x4db315,_0x9f0254])=>[_0x4db315,b(_0x9f0254)]))};}function S(_0x38e080,_0x200d32,_0xf00307){const _0x25d111=_0x1edc1f;let _0x3bedf1=x(_0x38e080);return _0x3bedf1['codes'][_0x200d32]=b({..._0x3bedf1[_0x25d111(0x1ec)][_0x200d32],..._0xf00307}),_0x3bedf1;}function C(_0x20a188,_0x56154a){let _0x51484b=x(_0x20a188);return delete _0x51484b['codes'][_0x56154a],_0x51484b;}const be=_0x1edc1f(0x253);var w=class extends Error{constructor(_0xfbf296='Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries'){super(_0xfbf296);}};function xe(_0x7f1a3f){const _0x5b9022=_0x1edc1f;var _0x284857,_0x2ae09d,_0x4a5043;let _0x7621eb=T(_0x7f1a3f[_0x5b9022(0x244)]),_0x56992c=D(_0x7621eb),_0x1987bb=Ce(_0x7f1a3f[_0x5b9022(0x232)],_0x7f1a3f[_0x5b9022(0x1e3)]),_0x4ce653=_0x1987bb?(_0x284857=_0x56992c['blockRanges'])==null?void 0x0:_0x284857[_0x5b9022(0x212)](_0xdfaf5e=>{const _0x3ec8ce=_0x5b9022;let _0x1ed206=_0x4a1bb2(_0xdfaf5e);return _0x1ed206[_0x3ec8ce(0x232)]===_0x1987bb['startOffset']&&_0x1ed206[_0x3ec8ce(0x1e3)]===_0x1987bb[_0x3ec8ce(0x1e3)];}):void 0x0,{startOffset:_0x508923,endOffset:_0x577321}=_0x4ce653?_0x1987bb:ze(_0x56992c,_0x7f1a3f[_0x5b9022(0x232)],_0x7f1a3f[_0x5b9022(0x1e3)],_0x7f1a3f[_0x5b9022(0x21b)]);if(!_0x4ce653&&we(_0x56992c,_0x508923,_0x577321))throw new w(_0x5b9022(0x1c6));let _0x3e20fa=He(_0x56992c,_0x508923,_0x577321),_0x2741d6=(_0x2ae09d=_0x4ce653==null?void 0x0:_0x4ce653[_0x5b9022(0x1e4)])==null?_0x7f1a3f[_0x5b9022(0x1e4)]:_0x2ae09d,_0x7585d5=S(_0x7f1a3f[_0x5b9022(0x247)],_0x2741d6,{...ye,..._0x7f1a3f[_0x5b9022(0x1c1)]});if(_0x4ce653)return _0x4ce653[_0x5b9022(0x210)]=_0x37a99f['CODE'],Se(_0x56992c,_0x508923,_0x577321),Pe(_0x56992c,_0x508923,_0x577321,_0x3e20fa),A(_0x56992c,_0x4ce653),{'nextDocumentData':_0x7621eb,'nextMetadata':_0x7585d5,'cursorOffset':_0x508923+0x1};if(_0x508923===_0x577321){var _0x38de6b,_0x167dc0;let _0xf03c04=''+_0x43b06f[_0x5b9022(0x251)]+_0x43b06f[_0x5b9022(0x202)]+_0x43b06f[_0x5b9022(0x241)];j(_0x56992c,_0x508923,_0xf03c04,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x5cfb3a(new Set((_0x38de6b=_0x56992c[_0x5b9022(0x1c7)])==null?void 0x0:_0x38de6b[_0x5b9022(0x200)](_0xc6777d=>_0xc6777d[_0x5b9022(0x214)]))),'paragraphStyle':Ne(!0x0,!0x0,_0x3e20fa)}],'blockRanges':[{'blockId':_0x2741d6,'blockType':_0x37a99f['CODE'],'startIndex':0x0,'endIndex':_0xf03c04[_0x5b9022(0x1d8)]-0x1}]});let _0x3d4e00=(_0x167dc0=_0x56992c['blockRanges'])==null?void 0x0:_0x167dc0[_0x5b9022(0x212)](_0x3fa19f=>_0x3fa19f['blockId']===_0x2741d6);return _0x3d4e00&&A(_0x56992c,_0x3d4e00),{'nextDocumentData':_0x7621eb,'nextMetadata':_0x7585d5,'cursorOffset':_0x508923+0x1};}j(_0x56992c,_0x577321,_0x43b06f['BLOCK_END']),j(_0x56992c,_0x508923,_0x43b06f[_0x5b9022(0x251)]),Pe(_0x56992c,_0x508923,_0x577321+0x1,_0x3e20fa);let _0x3f12a0={'blockId':_0x2741d6,'blockType':_0x37a99f[_0x5b9022(0x1ca)],'startIndex':_0x508923,'endIndex':_0x577321+0x1};return _0x56992c[_0x5b9022(0x1ba)]=[...(_0x4a5043=_0x56992c[_0x5b9022(0x1ba)])==null?[]:_0x4a5043,_0x3f12a0][_0x5b9022(0x1ef)]((_0x1d97d5,_0x5b26b6)=>_0x1d97d5[_0x5b9022(0x209)]-_0x5b26b6[_0x5b9022(0x209)]),A(_0x56992c,_0x3f12a0),{'nextDocumentData':_0x7621eb,'nextMetadata':_0x7585d5,'cursorOffset':_0x508923+0x1};}function Se(_0x4fbf36,_0x21ff01,_0x7e8aac){const _0x23846b=_0x1edc1f;var _0x129efd;((_0x129efd=_0x4fbf36[_0x23846b(0x1c7)])==null?[]:_0x129efd)[_0x23846b(0x1c3)](_0x50d51d=>_0x50d51d[_0x23846b(0x209)]>_0x21ff01&&_0x50d51d[_0x23846b(0x209)]<_0x7e8aac)['forEach'](_0x4f4536=>{const _0x47fbfe=_0x23846b;var _0x15221b;let _0x121bc1={...(_0x15221b=_0x4f4536['paragraphStyle'])==null?{}:_0x15221b};delete _0x121bc1[_0x47fbfe(0x250)],delete _0x121bc1[_0x47fbfe(0x1d5)],_0x4f4536[_0x47fbfe(0x1f3)]=_0x121bc1;});}function Ce(_0x27ef0e,_0x411f04){const _0x3fc7ed=_0x1edc1f;return _0x27ef0e==null||_0x411f04==null||_0x27ef0e===_0x411f04?null:{'startOffset':Math[_0x3fc7ed(0x21d)](_0x27ef0e,_0x411f04),'endOffset':Math['max'](_0x27ef0e,_0x411f04)};}function we(_0x306450,_0x260541,_0x3dfe98){const _0xfe562f=_0x1edc1f;var _0x1475f7;return((_0x1475f7=_0x306450[_0xfe562f(0x1ba)])==null?[]:_0x1475f7)[_0xfe562f(0x22d)](_0xe29a2f=>{let _0x23a889=_0x4a1bb2(_0xe29a2f);return _0x260541===_0x3dfe98?_0x52963d(_0x23a889,_0x260541):_0x2f8ce5(_0x23a889,{'startOffset':_0x260541,'endOffset':_0x3dfe98});});}function Te(_0x3025ad){const _0x245eb3=_0x1edc1f;return{'nextDocumentData':T(_0x3025ad[_0x245eb3(0x244)]),'nextMetadata':S(_0x3025ad['metadata'],_0x3025ad[_0x245eb3(0x1e4)],_0x3025ad['config']),'cursorOffset':0x0};}function Ee(_0x797abf){const _0x59be64=_0x1edc1f;let _0x1fcc1a=T(_0x797abf[_0x59be64(0x244)]),_0x2bc488=D(_0x1fcc1a),_0x199f43=Ae(_0x2bc488,_0x797abf[_0x59be64(0x1e4)]);if(!_0x199f43)return null;let _0x1c0045=Le(_0x2bc488,_0x199f43);return{'nextDocumentData':_0x1fcc1a,'nextMetadata':C(_0x797abf[_0x59be64(0x247)],_0x797abf[_0x59be64(0x1e4)]),'cursorOffset':_0x1c0045};}function De(_0x4a339d){const _0x3b9e48=_0x1edc1f;var _0x42a2dd;let _0x3596c1=T(_0x4a339d['documentData']),_0x48dbbc=D(_0x3596c1),_0x3479a6=Ae(_0x48dbbc,_0x4a339d[_0x3b9e48(0x1e4)]);if(!_0x3479a6)return null;let _0x237fea=_0x4a1bb2(_0x3479a6);return M(_0x48dbbc,_0x237fea[_0x3b9e48(0x232)],_0x237fea['endOffset']),_0x48dbbc[_0x3b9e48(0x1ba)]=(_0x42a2dd=_0x48dbbc[_0x3b9e48(0x1ba)])==null?void 0x0:_0x42a2dd[_0x3b9e48(0x1c3)](_0x1472a3=>_0x1472a3['blockId']!==_0x4a339d[_0x3b9e48(0x1e4)]),{'nextDocumentData':_0x3596c1,'nextMetadata':C(_0x4a339d[_0x3b9e48(0x247)],_0x4a339d['blockId']),'cursorOffset':_0x3479a6[_0x3b9e48(0x209)]};}function Oe(_0x1a9080){const _0x1d5a9c=_0x1edc1f;let _0x4527a6=T(_0x1a9080[_0x1d5a9c(0x244)]),_0x492847=D(_0x4527a6),_0xc17f9d=Me(_0x492847,_0x1a9080[_0x1d5a9c(0x23f)]);return _0xc17f9d&&ke(_0x4527a6,_0x492847,_0xc17f9d,_0x1a9080[_0x1d5a9c(0x23f)],_0x1a9080[_0x1d5a9c(0x1d4)])||null;}function ke(_0x2d2570,_0x52abab,_0x2cdcd0,_0xcd8894,_0x23bec9){const _0x3a120f=_0x1edc1f;let _0x40d752=Je(_0x52abab,_0x2cdcd0,_0xcd8894,_0x23bec9);if(!_0x40d752)return null;let _0x4bf4fe=_0x40d752[_0x3a120f(0x1e7)]-0x1;return M(_0x52abab,_0x40d752[_0x3a120f(0x20a)][_0x3a120f(0x209)],_0x40d752[_0x3a120f(0x20a)]['startIndex']+0x1),{'nextDocumentData':_0x2d2570,'cursorOffset':_0x4bf4fe};}function Ae(_0x489c95,_0x560fcd){const _0x3272a9=_0x1edc1f;var _0xb9996f;return _0x489c95==null||(_0xb9996f=_0x489c95[_0x3272a9(0x1ba)])==null?void 0x0:_0xb9996f[_0x3272a9(0x212)](_0xdc7ab5=>_0xdc7ab5['blockType']===_0x37a99f['CODE']&&_0xdc7ab5[_0x3272a9(0x1e4)]===_0x560fcd);}function je(_0x645ce5){const _0xaed9d0=_0x1edc1f;var _0x279075;let _0x304ce2=_0x645ce5[_0xaed9d0(0x244)][_0xaed9d0(0x1bf)];if(!_0x304ce2)return!0x1;let _0x60761b=_0x645ce5['direction']===_0xaed9d0(0x1b6)?_0x645ce5[_0xaed9d0(0x23f)]-0x1:_0x645ce5[_0xaed9d0(0x23f)],_0x14a22e=_0x645ce5[_0xaed9d0(0x1d9)]===_0xaed9d0(0x1fc)?_0x645ce5[_0xaed9d0(0x23f)]+0x1:_0x60761b;return((_0x279075=_0x304ce2[_0xaed9d0(0x1ba)])==null?[]:_0x279075)[_0xaed9d0(0x22d)](_0x3f72c6=>_0x3f72c6[_0xaed9d0(0x210)]===_0x37a99f[_0xaed9d0(0x1ca)]?_0x60761b===_0x3f72c6[_0xaed9d0(0x209)]||_0x60761b===_0x3f72c6['endIndex']||_0x14a22e===_0x3f72c6[_0xaed9d0(0x209)]||_0x14a22e===_0x3f72c6[_0xaed9d0(0x1c8)]:!0x1);}function Me(_0x28ca91,_0x2be5f1){var _0x187905;return(_0x187905=_0x28ca91['blockRanges'])==null?void 0x0:_0x187905['find'](_0x106f17=>{const _0x3f0a95=_0x23a6;let _0x441a14=k(_0x106f17);return _0x106f17[_0x3f0a95(0x210)]===_0x37a99f[_0x3f0a95(0x1ca)]&&_0x106f17[_0x3f0a95(0x209)]<=_0x2be5f1&&_0x2be5f1<=_0x441a14+0x2;});}function Ne(_0x5d3417,_0x240100,_0x1c7802=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x5d3417&&_0x1c7802?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':be,'fs':0xc}};}function Pe(_0xa421fb,_0x2b1935,_0x52fa33,_0x1a15a0=!0x1){const _0x22720c=_0x1edc1f;var _0x7abf3d;let _0x11249c=((_0x7abf3d=_0xa421fb[_0x22720c(0x1c7)])==null?[]:_0x7abf3d)[_0x22720c(0x1c3)](_0xae4d76=>_0xae4d76[_0x22720c(0x209)]>_0x2b1935&&_0xae4d76[_0x22720c(0x209)]<_0x52fa33);_0x11249c[_0x22720c(0x258)]((_0x2833cc,_0x57ad5e)=>{const _0x32f090=_0x22720c;var _0xe8f4dc;_0x2833cc[_0x32f090(0x1f3)]={...(_0xe8f4dc=_0x2833cc[_0x32f090(0x1f3)])==null?{}:_0xe8f4dc,...Ne(_0x57ad5e===0x0,_0x57ad5e===_0x11249c['length']-0x1,_0x1a15a0)};});}function Fe(_0x5ec983){const _0x177b4d=_0x1edc1f;var _0x53e81e,_0x372e46;let _0x4e3dab={..._0x5ec983==null?{}:_0x5ec983};return delete _0x4e3dab[_0x177b4d(0x1cb)],delete _0x4e3dab[_0x177b4d(0x1d2)],delete _0x4e3dab['spaceAbove'],delete _0x4e3dab[_0x177b4d(0x1d5)],((_0x53e81e=_0x4e3dab[_0x177b4d(0x1bd)])==null?void 0x0:_0x53e81e['ff'])===be&&((_0x372e46=_0x4e3dab[_0x177b4d(0x1bd)])==null?void 0x0:_0x372e46['fs'])===0xc&&delete _0x4e3dab[_0x177b4d(0x1bd)],_0x4e3dab;}function Ie(_0x2ba1fe,_0x4eb7c3){const _0x3ebb31=_0x1edc1f;var _0x1f5fe3;let _0x22b3e9=k(_0x4eb7c3);return((_0x1f5fe3=_0x2ba1fe[_0x3ebb31(0x1c7)])==null?[]:_0x1f5fe3)['filter'](_0x5762eb=>_0x5762eb['startIndex']>_0x4eb7c3[_0x3ebb31(0x209)]&&_0x5762eb[_0x3ebb31(0x209)]<_0x22b3e9);}function Le(_0x41c8bc,_0x2196a2){const _0x2dbf3c=_0x1edc1f;var _0x43cc62;let _0x73b7ab=k(_0x2196a2);return Ie(_0x41c8bc,_0x2196a2)[_0x2dbf3c(0x258)](_0x26a0c1=>{const _0x4f6127=_0x2dbf3c;_0x26a0c1[_0x4f6127(0x1f3)]=Fe(_0x26a0c1[_0x4f6127(0x1f3)]);}),M(_0x41c8bc,_0x73b7ab,_0x73b7ab+0x1),M(_0x41c8bc,_0x2196a2[_0x2dbf3c(0x209)],_0x2196a2[_0x2dbf3c(0x209)]+0x1),_0x41c8bc['blockRanges']=(_0x43cc62=_0x41c8bc['blockRanges'])==null?void 0x0:_0x43cc62['filter'](_0x46b16e=>_0x46b16e[_0x2dbf3c(0x1e4)]!==_0x2196a2['blockId']),_0x2196a2[_0x2dbf3c(0x209)];}function T(_0x4e21ea){const _0x21f041=_0x1edc1f;return{..._0x4e21ea,'body':_0x4e21ea['body']?Re(_0x4e21ea[_0x21f041(0x1bf)]):_0x4e21ea[_0x21f041(0x1bf)]};}function Re(_0x474c38){const _0x2f6a46=_0x1edc1f;var _0x2f7a38,_0xa190d0,_0x5a0484,_0x16f43f,_0x521dc4,_0x2e53b0,_0x33fcba,_0xfadd5b,_0x443b8c;return{..._0x474c38,'paragraphs':(_0x2f7a38=_0x474c38['paragraphs'])==null?void 0x0:_0x2f7a38[_0x2f6a46(0x200)](_0xfbfec4=>({..._0xfbfec4,'bullet':E(_0xfbfec4[_0x2f6a46(0x22c)]),'paragraphStyle':E(_0xfbfec4['paragraphStyle'])})),'sectionBreaks':(_0xa190d0=_0x474c38[_0x2f6a46(0x1f2)])==null?void 0x0:_0xa190d0[_0x2f6a46(0x200)](_0x547762=>({..._0x547762})),'textRuns':(_0x5a0484=_0x474c38[_0x2f6a46(0x235)])==null?void 0x0:_0x5a0484['map'](_0x21c40b=>({..._0x21c40b})),'tables':(_0x16f43f=_0x474c38[_0x2f6a46(0x1b7)])==null?void 0x0:_0x16f43f[_0x2f6a46(0x200)](_0x1ddc7d=>({..._0x1ddc7d})),'columnGroups':(_0x521dc4=_0x474c38[_0x2f6a46(0x24c)])==null?void 0x0:_0x521dc4['map'](_0x1ca51e=>{const _0x3ba0e2=_0x2f6a46;var _0x4ee516;return{..._0x1ca51e,'columns':(_0x4ee516=_0x1ca51e[_0x3ba0e2(0x22e)])==null?void 0x0:_0x4ee516['map'](_0x3a047a=>E(_0x3a047a))};}),'blockRanges':(_0x2e53b0=_0x474c38[_0x2f6a46(0x1ba)])==null?void 0x0:_0x2e53b0[_0x2f6a46(0x200)](_0xe60677=>({..._0xe60677})),'customRanges':(_0x33fcba=_0x474c38['customRanges'])==null?void 0x0:_0x33fcba[_0x2f6a46(0x200)](_0x49d08f=>({..._0x49d08f})),'customDecorations':(_0xfadd5b=_0x474c38[_0x2f6a46(0x24f)])==null?void 0x0:_0xfadd5b['map'](_0x5ad929=>({..._0x5ad929})),'customBlocks':(_0x443b8c=_0x474c38[_0x2f6a46(0x1c4)])==null?void 0x0:_0x443b8c['map'](_0x256944=>({..._0x256944}))};}function E(_0x594720){const _0x2bd9ac=_0x1edc1f;return Array[_0x2bd9ac(0x215)](_0x594720)?_0x594720[_0x2bd9ac(0x200)](_0x51cb5c=>E(_0x51cb5c)):!_0x594720||typeof _0x594720!=_0x2bd9ac(0x1d0)?_0x594720:Object[_0x2bd9ac(0x1f6)](Object[_0x2bd9ac(0x1c9)](_0x594720)['map'](([_0x1e7ee8,_0x2f217d])=>[_0x1e7ee8,E(_0x2f217d)]));}function D(_0x23da4c){const _0x33d802=_0x1edc1f;if(!_0x23da4c[_0x33d802(0x1bf)])throw Error(_0x33d802(0x1dc));return _0x23da4c[_0x33d802(0x1bf)];}function ze(_0x1e2bce,_0x3295fa,_0x5c7f26,_0x4a0e7f='convert-paragraph'){const _0x301df6=_0x1edc1f;if(_0x3295fa==null||_0x5c7f26==null){let _0x2b733a=Ve(_0x1e2bce);return{'startOffset':_0x2b733a,'endOffset':_0x2b733a};}let _0x4d1e9a=Math[_0x301df6(0x21d)](_0x3295fa,_0x5c7f26),_0x179487=Math['max'](_0x3295fa,_0x5c7f26),_0x27816b=Ke(_0x1e2bce,_0x4d1e9a,_0x179487);return _0x4d1e9a===_0x179487?_0x4a0e7f===_0x301df6(0x23b)?{'startOffset':_0x4d1e9a,'endOffset':_0x179487}:Be(_0x1e2bce,_0x4d1e9a,_0x27816b):Ue(_0x1e2bce,_0x4d1e9a,_0x179487,_0x27816b);}function Be(_0x313d01,_0x4ab787,_0x1fd7e8){const _0x1b5f80=_0x1edc1f;let _0x14071c=We(_0x313d01,_0x4ab787);if(_0x14071c){let _0x1c5a35=O(_0x313d01,_0x14071c,_0x1fd7e8);if(_0x1c5a35<_0x14071c['startIndex'])return{'startOffset':_0x1c5a35,'endOffset':_0x1fd7e8?Math[_0x1b5f80(0x21d)](_0x14071c['startIndex']+0x1,_0x1fd7e8['endOffset']):_0x14071c[_0x1b5f80(0x209)]+0x1};}let _0x5e3b24=_0x4ab787===0x0&&_0x313d01[_0x1b5f80(0x213)][0x0]===_0x43b06f[_0x1b5f80(0x202)]?0x1:_0x4ab787;return{'startOffset':_0x5e3b24,'endOffset':_0x5e3b24};}function Ve(_0x4bd124){const _0x30a261=_0x1edc1f;return _0x4bd124[_0x30a261(0x213)]['endsWith'](_0x43b06f[_0x30a261(0x221)])?Math['max'](0x0,_0x4bd124[_0x30a261(0x213)][_0x30a261(0x1d8)]-0x1):_0x4bd124[_0x30a261(0x213)][_0x30a261(0x1d8)];}function He(_0x2772cd,_0x55222c,_0x3fa04a){const _0x57f7cd=_0x1edc1f;var _0x25893e;let _0x58d03f=Math['min'](_0x55222c,_0x3fa04a),_0x1e2a6f=Math[_0x57f7cd(0x255)](_0x55222c,_0x3fa04a);return!!((_0x25893e=_0x2772cd[_0x57f7cd(0x1b7)])!=null&&_0x25893e['some'](_0x1c9ab3=>_0x58d03f>_0x1c9ab3['startIndex']&&_0x58d03f<_0x1c9ab3['endIndex']||_0x1e2a6f>_0x1c9ab3['startIndex']&&_0x1e2a6f<_0x1c9ab3['endIndex']||_0x58d03f<=_0x1c9ab3[_0x57f7cd(0x209)]&&_0x1e2a6f>=_0x1c9ab3['endIndex']));}function Ue(_0x5caaa6,_0x37be9d,_0x4197d9,_0x3d98f7){const _0x222982=_0x1edc1f;var _0x5c03ad,_0x48d39a;let _0x2f18d3=[...(_0x5c03ad=_0x5caaa6[_0x222982(0x1c7)])==null?[]:_0x5c03ad]['sort']((_0x39e6c7,_0x58f275)=>_0x39e6c7['startIndex']-_0x58f275[_0x222982(0x209)]),_0x6d6f7c=_0xfa281d(_0x5caaa6),_0x1b0422=_0x2f18d3[_0x222982(0x212)](_0x511870=>O(_0x5caaa6,_0x511870,_0x3d98f7,_0x6d6f7c)<=_0x37be9d&&_0x37be9d<=_0x511870[_0x222982(0x209)]),_0x10e20f=(_0x48d39a=_0x2f18d3[_0x222982(0x212)](_0x1dae8f=>_0x1dae8f[_0x222982(0x209)]>=_0x4197d9-0x1))==null?_0x2f18d3[_0x2f18d3[_0x222982(0x1d8)]-0x1]:_0x48d39a;return{'startOffset':_0x1b0422?O(_0x5caaa6,_0x1b0422,_0x3d98f7,_0x6d6f7c):_0x37be9d,'endOffset':_0x10e20f?Ge(_0x10e20f,_0x3d98f7):_0x4197d9};}function We(_0x2cfd43,_0x30ae6b){const _0x555386=_0x1edc1f;var _0x574a76;let _0x407150=[...(_0x574a76=_0x2cfd43[_0x555386(0x1c7)])==null?[]:_0x574a76][_0x555386(0x1ef)]((_0x4ad069,_0x2d67a5)=>_0x4ad069[_0x555386(0x209)]-_0x2d67a5['startIndex']),_0x3072bf=_0xfa281d(_0x2cfd43);return _0x407150[_0x555386(0x212)](_0x34f090=>{const _0x1f3156=_0x555386;var _0x3954c2;return((_0x3954c2=_0x3072bf['get'](_0x34f090[_0x1f3156(0x209)]))==null?0x0:_0x3954c2)<=_0x30ae6b&&_0x30ae6b<=_0x34f090[_0x1f3156(0x209)];});}function O(_0x195e3c,_0x8b32e6,_0x29a97c,_0x43aa1f){const _0x4422f6=_0x1edc1f;var _0x29cb00;let _0x5f1912=(_0x29cb00=_0x43aa1f==null?void 0x0:_0x43aa1f[_0x4422f6(0x1c5)](_0x8b32e6[_0x4422f6(0x209)]))==null?_0x120216(_0x195e3c,_0x8b32e6):_0x29cb00;return _0x29a97c?Math['max'](_0x5f1912,_0x29a97c[_0x4422f6(0x232)]):_0x5f1912;}function _0x8e72(){const _0x39c2a7=['constructor','config','range','filter','customBlocks','get','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','paragraphs','endIndex','entries','CODE','indentEnd','_resourceManagerService','reduce','33414zhlrmf','delete','object','getUnit','indentStart','asObservable','paragraphStartIndex','spaceBelow','customRanges','clear','length','direction','syncExecuteCommand','docs-code.command.insert','Document\x20body\x20is\x20required','36cpAREC','32PQMKrg','prototype','getCurrentUnitOfType','3169592BrLEop','registerCommand','endOffset','blockId','125796jcPnRf','parse','endTokenOffset','dispose','_setResource','_resources','next','codes','624555AgKcGI','deserialize','sort','setConfig','getSnapshot','sectionBreaks','paragraphStyle','_initResource','_docsCodeModel','fromEntries','replaceDocRanges','docs-code.command.insert-below','getCodeConfig','removeUnit','nextMetadata','right','version','previousDocumentData','toPrimitive','map','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','PARAGRAPH','insertOp','getParagraphsInRange','_configService','726450eooLjA','getUnitId','docs-code.command.cancel-empty-paragraph','startIndex','paragraph','8596379eAHdDC','insert','_change$','setCodeConfig','removeCode','blockType','set','find','dataStream','paragraphId','isArray','startTokenOffset','docs-code.command.remove','replaceOp','docs-code.command.update','slice','insertionMode','compose','min','symbol','insertLength','defineProperty','SECTION_BREAK','decorate','getTextRanges','_config','add','1.0.0-alpha.5','packageName','deleteLength','getInstance','pluginName','default','bullet','some','columns','TABLE_CELL_START','UNIVER_DOC','docs-code.command.consume-boundary-delete','startOffset','type','TABLE_CELL_END','textRuns','_injector','COMMAND','@univerjs-pro/docs-code','stringify','DOC_CODE_PLUGIN','insert-new','start','disposeWithMe','427rcytkD','cursorOffset','editOp','BLOCK_END','unitId','nextDocumentData','documentData','handler','function','metadata','retain','_commandService','keys','string','columnGroups','model','commandService','customDecorations','spaceAbove','BLOCK_START','javascript','monospace','102tsDXdL','max','18eXrUOc','push','forEach','left','tables','selectionManager','docs-code.config','blockRanges','getBody','1691340ekNFtK','textStyle','serialize','body'];_0x8e72=function(){return _0x39c2a7;};return _0x8e72();}function Ge(_0x293382,_0x4a7339){const _0x36c01d=_0x1edc1f;let _0x36086a=_0x293382['startIndex']+0x1;return _0x4a7339?Math[_0x36c01d(0x21d)](_0x36086a,_0x4a7339[_0x36c01d(0x1e3)]):_0x36086a;}function Ke(_0x51acc4,_0x4726ef,_0x122a9a){const _0x39e9be=_0x1edc1f;let _0x3451b8=qe(_0x51acc4,_0x4726ef),_0x282a9d=qe(_0x51acc4,_0x4726ef===_0x122a9a?_0x122a9a:Math[_0x39e9be(0x255)](_0x4726ef,_0x122a9a-0x1));if(!(!_0x3451b8&&!_0x282a9d)){if(!_0x3451b8||!_0x282a9d||_0x3451b8[_0x39e9be(0x216)]!==_0x282a9d[_0x39e9be(0x216)]||_0x3451b8[_0x39e9be(0x1e7)]!==_0x282a9d[_0x39e9be(0x1e7)])throw new w();return _0x3451b8;}}function qe(_0x327038,_0x244c8a){const _0x53ef0e=_0x1edc1f;let _0x1a9b4f=_0x327038[_0x53ef0e(0x213)],_0x44e4ca=-0x1;for(let _0x36c1b3=Math['min'](_0x244c8a,_0x1a9b4f['length']-0x1);_0x36c1b3>=0x0;_0x36c1b3--){let _0x565fd2=_0x1a9b4f[_0x36c1b3];if(_0x565fd2===_0x43b06f[_0x53ef0e(0x234)])return;if(_0x565fd2===_0x43b06f[_0x53ef0e(0x22f)]){_0x44e4ca=_0x36c1b3;break;}}if(_0x44e4ca<0x0)return;let _0x301ca3=_0x1a9b4f['indexOf'](_0x43b06f[_0x53ef0e(0x234)],_0x44e4ca+0x1);if(!(_0x301ca3<0x0||_0x244c8a<_0x44e4ca+0x1||_0x244c8a>_0x301ca3-0x1))return{'startOffset':_0x44e4ca+0x1,'endOffset':Math['max'](_0x44e4ca+0x1,_0x301ca3-0x1),'startTokenOffset':_0x44e4ca,'endTokenOffset':_0x301ca3};}function k(_0x1ceff5){const _0x3abe2e=_0x1edc1f;return _0x4a1bb2(_0x1ceff5)[_0x3abe2e(0x1e3)]-0x1;}function Je(_0x3cfc2b,_0x851298,_0x14102e,_0x44e5d1){const _0x591bfb=_0x1edc1f;var _0x3fc070;let _0x5dd03d=k(_0x851298),_0x334d6c=((_0x3fc070=_0x3cfc2b['paragraphs'])==null?[]:_0x3fc070)[_0x591bfb(0x212)](_0x1c9ad0=>_0x1c9ad0['startIndex']===_0x5dd03d+0x1);if(!_0x334d6c||_0x44e5d1!=null&&_0x334d6c[_0x591bfb(0x209)]!==_0x44e5d1||_0x14102e!=null&&(_0x14102e<_0x5dd03d||_0x14102e>_0x334d6c[_0x591bfb(0x209)]+0x1)||_0x3cfc2b[_0x591bfb(0x213)][_0x334d6c['startIndex']]!==_0x43b06f['PARAGRAPH'])return null;let _0x2edc6c=_0x120216(_0x3cfc2b,_0x334d6c),_0x386a2f=_0x3cfc2b[_0x591bfb(0x213)][_0x591bfb(0x21a)](_0x2edc6c,_0x334d6c[_0x591bfb(0x209)]);return Array['from'](_0x386a2f)['every'](_0x28c881=>_0x28c881===_0x43b06f['BLOCK_END'])?{'paragraph':_0x334d6c,'endTokenOffset':_0x5dd03d}:null;}function A(_0x8b786,_0x1277d4){const _0x482353=_0x1edc1f;var _0x521d0f;let _0x71585c=k(_0x1277d4),_0x5272ee=_0x8b786[_0x482353(0x213)][_0x71585c+0x1];_0x5272ee!==_0x43b06f[_0x482353(0x221)]&&_0x5272ee!==void 0x0||j(_0x8b786,_0x71585c+0x1,_0x43b06f[_0x482353(0x202)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x5cfb3a(new Set((_0x521d0f=_0x8b786[_0x482353(0x1c7)])==null?void 0x0:_0x521d0f[_0x482353(0x200)](_0x1f1ab3=>_0x1f1ab3[_0x482353(0x214)])))}]});}function j(_0x4e0ad8,_0x41ce78,_0x376913,_0x5a3652={}){const _0x923f57=_0x1edc1f;var _0x3dfb23,_0x156807;if(_0x376913){if(_0x4e0ad8[_0x923f57(0x213)]=''+_0x4e0ad8[_0x923f57(0x213)][_0x923f57(0x21a)](0x0,_0x41ce78)+_0x376913+_0x4e0ad8[_0x923f57(0x213)][_0x923f57(0x21a)](_0x41ce78),Ye(_0x4e0ad8,_0x41ce78,_0x376913[_0x923f57(0x1d8)]),(_0x3dfb23=_0x5a3652[_0x923f57(0x1c7)])!=null&&_0x3dfb23['length']){var _0x560979;_0x4e0ad8['paragraphs']=[...(_0x560979=_0x4e0ad8['paragraphs'])==null?[]:_0x560979,..._0x5a3652[_0x923f57(0x1c7)][_0x923f57(0x200)](_0x1e1138=>({..._0x1e1138,'startIndex':_0x1e1138[_0x923f57(0x209)]+_0x41ce78}))][_0x923f57(0x1ef)]((_0x581a7f,_0x493f48)=>_0x581a7f['startIndex']-_0x493f48[_0x923f57(0x209)]);}if((_0x156807=_0x5a3652['blockRanges'])!=null&&_0x156807['length']){var _0x5eb810;_0x4e0ad8[_0x923f57(0x1ba)]=[...(_0x5eb810=_0x4e0ad8[_0x923f57(0x1ba)])==null?[]:_0x5eb810,..._0x5a3652[_0x923f57(0x1ba)][_0x923f57(0x200)](_0x23af5b=>({..._0x23af5b,'startIndex':_0x23af5b[_0x923f57(0x209)]+_0x41ce78,'endIndex':_0x23af5b[_0x923f57(0x1c8)]+_0x41ce78}))][_0x923f57(0x1ef)]((_0x25efdc,_0x1aa5bc)=>_0x25efdc[_0x923f57(0x209)]-_0x1aa5bc[_0x923f57(0x209)]);}}}function M(_0x2107f2,_0x5a9d66,_0x605d1b){const _0xa9c126=_0x1edc1f;let _0x5efc7d=_0x605d1b-_0x5a9d66;_0x2107f2[_0xa9c126(0x213)]=''+_0x2107f2[_0xa9c126(0x213)][_0xa9c126(0x21a)](0x0,_0x5a9d66)+_0x2107f2[_0xa9c126(0x213)][_0xa9c126(0x21a)](_0x605d1b),Xe(_0x2107f2,_0x5a9d66,_0x5efc7d);}function Ye(_0x27522b,_0x31bdb3,_0xe28e98){const _0xa52bbd=_0x1edc1f;_0x27522b[_0xa52bbd(0x1c7)]=N(_0x27522b[_0xa52bbd(0x1c7)],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x1f2)]=N(_0x27522b[_0xa52bbd(0x1f2)],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x1c4)]=N(_0x27522b[_0xa52bbd(0x1c4)],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x235)]=Ze(_0x27522b[_0xa52bbd(0x235)],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x1b7)]=Qe(_0x27522b['tables'],_0x31bdb3,_0xe28e98),_0x27522b['columnGroups']=F(_0x27522b['columnGroups'],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x1d6)]=F(_0x27522b['customRanges'],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x24f)]=F(_0x27522b['customDecorations'],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x1ba)]=F(_0x27522b[_0xa52bbd(0x1ba)],_0x31bdb3,_0xe28e98);}function Xe(_0x585b0f,_0x413ff8,_0x1662bf){const _0x32b9b2=_0x1edc1f;var _0x4a2d3a,_0x3af86f;_0x585b0f[_0x32b9b2(0x1c7)]=P(_0x585b0f[_0x32b9b2(0x1c7)],_0x413ff8,_0x1662bf),_0x585b0f['sectionBreaks']=P(_0x585b0f[_0x32b9b2(0x1f2)],_0x413ff8,_0x1662bf),_0x585b0f[_0x32b9b2(0x1c4)]=P(_0x585b0f[_0x32b9b2(0x1c4)],_0x413ff8,_0x1662bf),_0x585b0f[_0x32b9b2(0x235)]=(_0x4a2d3a=$e((_0x3af86f=_0x585b0f[_0x32b9b2(0x235)])==null?void 0x0:_0x3af86f[_0x32b9b2(0x200)](_0x532b78=>({..._0x532b78,'startIndex':_0x532b78['st'],'endIndex':_0x532b78['ed']})),_0x413ff8,_0x1662bf))==null?void 0x0:_0x4a2d3a[_0x32b9b2(0x200)](_0x1304a0=>{let {startIndex:_0x4a4620,endIndex:_0x3eb96d,..._0x7b8602}=_0x1304a0;return{..._0x7b8602,'st':_0x4a4620,'ed':_0x3eb96d};}),_0x585b0f['tables']=$e(_0x585b0f[_0x32b9b2(0x1b7)],_0x413ff8,_0x1662bf),_0x585b0f['columnGroups']=I(_0x585b0f['columnGroups'],_0x413ff8,_0x1662bf),_0x585b0f[_0x32b9b2(0x1d6)]=I(_0x585b0f[_0x32b9b2(0x1d6)],_0x413ff8,_0x1662bf),_0x585b0f[_0x32b9b2(0x24f)]=I(_0x585b0f[_0x32b9b2(0x24f)],_0x413ff8,_0x1662bf),_0x585b0f[_0x32b9b2(0x1ba)]=I(_0x585b0f[_0x32b9b2(0x1ba)],_0x413ff8,_0x1662bf);}function N(_0x173330,_0x576081,_0x398334){const _0x11ab3e=_0x1edc1f;return _0x173330==null?void 0x0:_0x173330[_0x11ab3e(0x200)](_0x2b2737=>_0x2b2737[_0x11ab3e(0x209)]>=_0x576081?{..._0x2b2737,'startIndex':_0x2b2737[_0x11ab3e(0x209)]+_0x398334}:_0x2b2737);}function P(_0x4362bb,_0x2d3740,_0x42bbb5){const _0x231117=_0x1edc1f;let _0x5e213c=_0x2d3740+_0x42bbb5;return _0x4362bb==null?void 0x0:_0x4362bb[_0x231117(0x200)](_0x44647f=>_0x44647f[_0x231117(0x209)]>=_0x2d3740&&_0x44647f[_0x231117(0x209)]<_0x5e213c?null:_0x44647f['startIndex']>=_0x5e213c?{..._0x44647f,'startIndex':_0x44647f[_0x231117(0x209)]-_0x42bbb5}:_0x44647f)[_0x231117(0x1c3)](_0x38c18d=>_0x38c18d!=null);}function Ze(_0x28329,_0x135f68,_0x2921a6){const _0x266ff6=_0x1edc1f;return _0x28329==null?void 0x0:_0x28329[_0x266ff6(0x200)](_0x5ad48=>_0x5ad48['st']>=_0x135f68?{..._0x5ad48,'st':_0x5ad48['st']+_0x2921a6,'ed':_0x5ad48['ed']+_0x2921a6}:_0x5ad48['ed']>_0x135f68?{..._0x5ad48,'ed':_0x5ad48['ed']+_0x2921a6}:_0x5ad48);}function F(_0x9f8b7c,_0x49427f,_0x3614a6){const _0x5e982f=_0x1edc1f;return _0x9f8b7c==null?void 0x0:_0x9f8b7c[_0x5e982f(0x200)](_0x204faf=>_0x5bff0d(_0x204faf,_0x49427f,_0x3614a6));}function Qe(_0x41a0fc,_0x17fe16,_0x5c4771){const _0x1e168b=_0x1edc1f;return _0x41a0fc==null?void 0x0:_0x41a0fc[_0x1e168b(0x200)](_0x52cb67=>_0x2dea21(_0x52cb67,_0x17fe16,_0x5c4771));}function I(_0x5b7bca,_0x4e2c5b,_0x305bce){const _0x5a5875=_0x1edc1f;return _0x5b7bca==null?void 0x0:_0x5b7bca[_0x5a5875(0x200)](_0x54a1d4=>_0x3a6def(_0x54a1d4,_0x4e2c5b,_0x305bce))[_0x5a5875(0x1c3)](_0x5a48fc=>_0x5a48fc!=null);}function $e(_0x580c67,_0x3e38ae,_0x35be3f){const _0x9aad91=_0x1edc1f;return _0x580c67==null?void 0x0:_0x580c67[_0x9aad91(0x200)](_0x2ad4ad=>_0x1c7981(_0x2ad4ad,_0x3e38ae,_0x35be3f))['filter'](_0x17dfb4=>_0x17dfb4!=null);}function L(_0x3b899a){'@babel/helpers - typeof';return L=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x299715){return typeof _0x299715;}:function(_0x213cdf){const _0x4280e8=_0x23a6;return _0x213cdf&&typeof Symbol==_0x4280e8(0x246)&&_0x213cdf[_0x4280e8(0x1c0)]===Symbol&&_0x213cdf!==Symbol[_0x4280e8(0x1df)]?_0x4280e8(0x21e):typeof _0x213cdf;},L(_0x3b899a);}function et(_0x6d9f6e,_0x591df4){const _0x159597=_0x1edc1f;if(L(_0x6d9f6e)!=_0x159597(0x1d0)||!_0x6d9f6e)return _0x6d9f6e;var _0xe02695=_0x6d9f6e[Symbol[_0x159597(0x1ff)]];if(_0xe02695!==void 0x0){var _0x51aced=_0xe02695['call'](_0x6d9f6e,_0x591df4||_0x159597(0x22b));if(L(_0x51aced)!=_0x159597(0x1d0))return _0x51aced;throw TypeError(_0x159597(0x201));}return(_0x591df4===_0x159597(0x24b)?String:Number)(_0x6d9f6e);}function tt(_0x5131ee){const _0x6db2e1=_0x1edc1f;var _0x2762ca=et(_0x5131ee,_0x6db2e1(0x24b));return L(_0x2762ca)==_0x6db2e1(0x21e)?_0x2762ca:_0x2762ca+'';}function R(_0x52061a,_0x301eb9,_0x3666f7){const _0x5a7a91=_0x1edc1f;return(_0x301eb9=tt(_0x301eb9))in _0x52061a?Object[_0x5a7a91(0x220)](_0x52061a,_0x301eb9,{'value':_0x3666f7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x52061a[_0x301eb9]=_0x3666f7,_0x52061a;}var z=class extends _0x11f1e7{constructor(..._0x4293ae){const _0xa9b073=_0x1edc1f;super(..._0x4293ae),R(this,_0xa9b073(0x1ea),new Map()),R(this,'_change$',new _0x3b77df()),R(this,'change$',this['_change$'][_0xa9b073(0x1d3)]());}[_0x1edc1f(0x1f9)](_0x137ef2,_0x573a48){const _0x6ba313=_0x1edc1f;return x(this[_0x6ba313(0x1ea)][_0x6ba313(0x1c5)](_0x137ef2))[_0x6ba313(0x1ec)][_0x573a48];}[_0x1edc1f(0x20e)](_0x59afdc,_0x48b802,_0x138a2a){const _0x47e1de=_0x1edc1f;this[_0x47e1de(0x1e9)](_0x59afdc,_0x48b802,S(this[_0x47e1de(0x1ea)][_0x47e1de(0x1c5)](_0x59afdc),_0x48b802,_0x138a2a));}[_0x1edc1f(0x20f)](_0x2b8a47,_0x17bdfd){const _0x52486f=_0x1edc1f;this[_0x52486f(0x1e9)](_0x2b8a47,_0x17bdfd,C(this['_resources']['get'](_0x2b8a47),_0x17bdfd));}['serialize'](_0x1127c7){const _0x36b5c4=_0x1edc1f;return x(this[_0x36b5c4(0x1ea)][_0x36b5c4(0x1c5)](_0x1127c7));}[_0x1edc1f(0x1ee)](_0x167424,_0x3c0f94){const _0x2805ee=_0x1edc1f;this[_0x2805ee(0x1ea)]['set'](_0x167424,x(_0x3c0f94)),this[_0x2805ee(0x20d)][_0x2805ee(0x1eb)]({'unitId':_0x167424});}[_0x1edc1f(0x1fa)](_0x11ab7f){const _0xa509e2=_0x1edc1f;this['_resources'][_0xa509e2(0x1cf)](_0x11ab7f),this[_0xa509e2(0x20d)][_0xa509e2(0x1eb)]({'unitId':_0x11ab7f});}[_0x1edc1f(0x1e8)](){const _0x687d96=_0x1edc1f;super['dispose'](),this[_0x687d96(0x1ea)][_0x687d96(0x1d7)](),this[_0x687d96(0x20d)]['complete']();}['_setResource'](_0x3222d2,_0x3d5508,_0x30019d){const _0x4fe003=_0x1edc1f;this[_0x4fe003(0x1ea)][_0x4fe003(0x211)](_0x3222d2,_0x30019d),this[_0x4fe003(0x20d)]['next']({'unitId':_0x3222d2,'blockId':_0x3d5508});}};const nt={'id':_0x1edc1f(0x1f8),'type':_0x3aa002[_0x1edc1f(0x237)],'handler':_0x1299d4=>{const _0x6ca46c=_0x1edc1f;var _0x1cbe0f;if(_0xaf3991(G(_0x1299d4)))return!0x1;let _0x5de034=_0x517640(_0x1299d4);if(_0x5de034)return _0x1299d4[_0x6ca46c(0x1c5)](_0x1d61d6)[_0x6ca46c(0x1da)](B['id'],{'startOffset':_0x5de034['startOffset'],'endOffset':_0x5de034[_0x6ca46c(0x1e3)],'insertionMode':_0x6ca46c(0x23b),'unitId':_0x5de034['unitId']});let _0x5b8e57=lt(_0x1299d4);if(!_0x5b8e57)return!0x1;let _0xd7e1ed=(_0x1cbe0f=_0x1299d4[_0x6ca46c(0x1c5)](_0x45d141)[_0x6ca46c(0x1e0)](_0x41a83a[_0x6ca46c(0x230)]))==null?void 0x0:_0x1cbe0f[_0x6ca46c(0x1bb)](),_0x4dc5a3=_0xd7e1ed?_0x2be263(_0xd7e1ed,_0x5b8e57):_0x5b8e57[_0x6ca46c(0x209)]+0x1;return _0x1299d4[_0x6ca46c(0x1c5)](_0x1d61d6)['syncExecuteCommand'](B['id'],{'startOffset':_0x4dc5a3,'endOffset':_0x4dc5a3});}},rt={'id':_0x1edc1f(0x231),'type':_0x3aa002[_0x1edc1f(0x237)],'handler':()=>!0x0},B={'id':_0x1edc1f(0x1db),'type':_0x3aa002[_0x1edc1f(0x237)],'handler':(_0x51d502,_0x5cbfc6)=>{const _0x2c49b1=_0x1edc1f;var _0x314c02;let _0x1c88e1=W(_0x51d502,_0x5cbfc6==null?void 0x0:_0x5cbfc6[_0x2c49b1(0x242)]);if(!_0x1c88e1)return!0x1;let _0x50f317=G(_0x51d502);if(_0xaf3991(_0x50f317))return!0x1;let _0x11a8b9=_0x1c88e1['model'][_0x2c49b1(0x1be)](_0x1c88e1['unitId']),_0x1f840f=ot(_0x5cbfc6,_0x50f317),_0x58d62b=st(_0x1c88e1['previousDocumentData'],_0x1f840f);if(_0x58d62b){if(_0x58d62b[_0x2c49b1(0x210)]!==_0x37a99f[_0x2c49b1(0x1ca)])return!0x1;let _0x45126f=Ee({'blockId':_0x58d62b[_0x2c49b1(0x1e4)],'documentData':_0x1c88e1[_0x2c49b1(0x1fe)],'metadata':_0x11a8b9});if(!_0x45126f)return!0x1;let _0x337949=Y(_0x1c88e1[_0x2c49b1(0x24e)],_0x1c88e1[_0x2c49b1(0x1b8)],_0x1c88e1[_0x2c49b1(0x242)],_0x1c88e1[_0x2c49b1(0x1fe)],_0x45126f[_0x2c49b1(0x243)],B['id'],_0x45126f['cursorOffset']);return _0x337949&&_0x45126f[_0x2c49b1(0x1fb)]&&_0x1c88e1[_0x2c49b1(0x24d)][_0x2c49b1(0x1ee)](_0x1c88e1[_0x2c49b1(0x242)],_0x45126f['nextMetadata']),_0x337949;}let _0x52408c=(_0x314c02=_0x5cbfc6==null?void 0x0:_0x5cbfc6[_0x2c49b1(0x1e4)])==null?_0x35a556(0x6):_0x314c02,_0x22d24b;try{_0x22d24b=xe({'blockId':_0x52408c,'config':_0x5cbfc6==null?void 0x0:_0x5cbfc6[_0x2c49b1(0x1c1)],'documentData':_0x1c88e1['previousDocumentData'],'endOffset':_0x1f840f==null?void 0x0:_0x1f840f[_0x2c49b1(0x1e3)],'insertionMode':_0x5cbfc6==null?void 0x0:_0x5cbfc6[_0x2c49b1(0x21b)],'metadata':_0x11a8b9,'startOffset':_0x1f840f==null?void 0x0:_0x1f840f[_0x2c49b1(0x232)]});}catch(_0x1a8da2){if(_0x1a8da2 instanceof w)return!0x1;throw _0x1a8da2;}let _0x21e3eb=Y(_0x1c88e1[_0x2c49b1(0x24e)],_0x1c88e1['selectionManager'],_0x1c88e1[_0x2c49b1(0x242)],_0x1c88e1[_0x2c49b1(0x1fe)],_0x22d24b[_0x2c49b1(0x243)],B['id'],_0x22d24b['cursorOffset']);return _0x21e3eb&&_0x22d24b[_0x2c49b1(0x1fb)]&&_0x1c88e1[_0x2c49b1(0x24d)][_0x2c49b1(0x1ee)](_0x1c88e1[_0x2c49b1(0x242)],_0x22d24b[_0x2c49b1(0x1fb)]),_0x21e3eb;}},it={'id':_0x1edc1f(0x219),'type':_0x3aa002[_0x1edc1f(0x237)],'handler':(_0x2b4099,_0x62152c)=>{const _0x427aa2=_0x1edc1f;if(!_0x62152c)return!0x1;let _0x1c4820=W(_0x2b4099,_0x62152c[_0x427aa2(0x242)]);if(!_0x1c4820)return!0x1;let _0xd96c8=Te({'blockId':_0x62152c[_0x427aa2(0x1e4)],'config':_0x62152c[_0x427aa2(0x1c1)],'documentData':_0x1c4820[_0x427aa2(0x1fe)],'metadata':_0x1c4820[_0x427aa2(0x24d)][_0x427aa2(0x1be)](_0x1c4820[_0x427aa2(0x242)])});return _0xd96c8[_0x427aa2(0x1fb)]&&_0x1c4820[_0x427aa2(0x24d)][_0x427aa2(0x1ee)](_0x1c4820[_0x427aa2(0x242)],_0xd96c8[_0x427aa2(0x1fb)]),!0x0;}},at={'id':'docs-code.command.exit','type':_0x3aa002[_0x1edc1f(0x237)],'handler':(_0x456bcb,_0x29383d)=>V[_0x1edc1f(0x245)](_0x456bcb,_0x29383d)},V={'id':'docs-code.command.unwrap','type':_0x3aa002[_0x1edc1f(0x237)],'handler':(_0x133b58,_0x5a87dd)=>{const _0x476c71=_0x1edc1f;if(!_0x5a87dd)return!0x1;let _0x2c5dfe=W(_0x133b58,_0x5a87dd==null?void 0x0:_0x5a87dd[_0x476c71(0x242)]);if(!_0x2c5dfe)return!0x1;let _0x16d910=Ee({'blockId':_0x5a87dd[_0x476c71(0x1e4)],'documentData':_0x2c5dfe[_0x476c71(0x1fe)],'metadata':_0x2c5dfe[_0x476c71(0x24d)][_0x476c71(0x1be)](_0x2c5dfe[_0x476c71(0x242)])});if(!_0x16d910)return!0x1;let _0x5bd894=Y(_0x2c5dfe[_0x476c71(0x24e)],_0x2c5dfe[_0x476c71(0x1b8)],_0x2c5dfe[_0x476c71(0x242)],_0x2c5dfe[_0x476c71(0x1fe)],_0x16d910['nextDocumentData'],V['id'],_0x16d910['cursorOffset']);return _0x5bd894&&_0x16d910[_0x476c71(0x1fb)]&&_0x2c5dfe['model'][_0x476c71(0x1ee)](_0x2c5dfe[_0x476c71(0x242)],_0x16d910[_0x476c71(0x1fb)]),_0x5bd894;}},H={'id':_0x1edc1f(0x217),'type':_0x3aa002['COMMAND'],'handler':(_0x228bfb,_0x5b4858)=>{const _0x594854=_0x1edc1f;if(!_0x5b4858)return!0x1;let _0x365f56=W(_0x228bfb,_0x5b4858==null?void 0x0:_0x5b4858[_0x594854(0x242)]);if(!_0x365f56)return!0x1;let _0x116f05=De({'blockId':_0x5b4858['blockId'],'documentData':_0x365f56[_0x594854(0x1fe)],'metadata':_0x365f56[_0x594854(0x24d)][_0x594854(0x1be)](_0x365f56[_0x594854(0x242)])});if(!_0x116f05)return!0x1;let _0x4782bf=Y(_0x365f56[_0x594854(0x24e)],_0x365f56[_0x594854(0x1b8)],_0x365f56[_0x594854(0x242)],_0x365f56[_0x594854(0x1fe)],_0x116f05[_0x594854(0x243)],H['id'],_0x116f05[_0x594854(0x23f)]);return _0x4782bf&&_0x116f05[_0x594854(0x1fb)]&&_0x365f56['model']['deserialize'](_0x365f56['unitId'],_0x116f05[_0x594854(0x1fb)]),_0x4782bf;}},U={'id':_0x1edc1f(0x208),'type':_0x3aa002[_0x1edc1f(0x237)],'handler':(_0x2665c4,_0x492459)=>{const _0x1fb50d=_0x1edc1f;var _0x2358ee,_0x19c2dd;let _0x38ef90=W(_0x2665c4,_0x492459==null?void 0x0:_0x492459['unitId']);if(!_0x38ef90)return!0x1;let _0x4e4483=(_0x2358ee=_0x492459==null?void 0x0:_0x492459[_0x1fb50d(0x23f)])==null?(_0x19c2dd=G(_0x2665c4))==null?void 0x0:_0x19c2dd['startOffset']:_0x2358ee;if(_0x4e4483==null)return!0x1;let _0x1f1ebe=Oe({'cursorOffset':_0x4e4483,'documentData':_0x38ef90[_0x1fb50d(0x1fe)],'paragraphStartIndex':_0x492459==null?void 0x0:_0x492459['paragraphStartIndex']});return _0x1f1ebe?Y(_0x38ef90[_0x1fb50d(0x24e)],_0x38ef90[_0x1fb50d(0x1b8)],_0x38ef90[_0x1fb50d(0x242)],_0x38ef90['previousDocumentData'],_0x1f1ebe['nextDocumentData'],U['id'],_0x1f1ebe[_0x1fb50d(0x23f)]):!0x1;}};function W(_0x38bb69,_0x23551e){const _0x42c831=_0x1edc1f;let _0x7c4f2f=_0x38bb69[_0x42c831(0x1c5)](_0x45d141),_0x2c6831=_0x23551e?_0x7c4f2f[_0x42c831(0x1d1)](_0x23551e,_0x41a83a['UNIVER_DOC']):_0x7c4f2f[_0x42c831(0x1e0)](_0x41a83a[_0x42c831(0x230)]);return _0x2c6831?{'commandService':_0x38bb69[_0x42c831(0x1c5)](_0x1d61d6),'model':_0x38bb69[_0x42c831(0x1c5)](z),'previousDocumentData':_0x2c6831[_0x42c831(0x1f1)](),'selectionManager':_0x38bb69[_0x42c831(0x1c5)](_0x2ed20d),'unitId':_0x2c6831[_0x42c831(0x207)]()}:null;}function G(_0x3b88c5){const _0x5f526e=_0x1edc1f;var _0x59663d;return(_0x59663d=_0x3b88c5[_0x5f526e(0x1c5)](_0x2ed20d)[_0x5f526e(0x223)]())==null?void 0x0:_0x59663d[0x0];}function ot(_0x5434fd,_0x278b13){const _0x352e8a=_0x1edc1f;var _0x5ef020,_0xac05ce;let _0x134fcb=(_0x5ef020=_0x5434fd==null?void 0x0:_0x5434fd[_0x352e8a(0x232)])==null?_0x278b13==null?void 0x0:_0x278b13[_0x352e8a(0x232)]:_0x5ef020,_0xf21aba=(_0xac05ce=_0x5434fd==null?void 0x0:_0x5434fd[_0x352e8a(0x1e3)])==null?_0x278b13==null?void 0x0:_0x278b13['endOffset']:_0xac05ce;if(!(_0x134fcb==null||_0xf21aba==null))return{'endOffset':Math[_0x352e8a(0x255)](_0x134fcb,_0xf21aba),'startOffset':Math['min'](_0x134fcb,_0xf21aba)};}function st(_0x285f17,_0x425f11){const _0x1ccc35=_0x1edc1f;var _0xf9d1e9;if(!_0x425f11)return;let _0x42430f=ct(_0x425f11);return(_0xf9d1e9=_0x285f17[_0x1ccc35(0x1bf)])==null||(_0xf9d1e9=_0xf9d1e9[_0x1ccc35(0x1ba)])==null?void 0x0:_0xf9d1e9[_0x1ccc35(0x212)](_0x5a1c45=>{const _0x1622c0=_0x1ccc35;let _0x368919=_0x4a1bb2(_0x5a1c45);return _0x425f11[_0x1622c0(0x232)]===_0x425f11[_0x1622c0(0x1e3)]?_0x52963d(_0x368919,_0x42430f):_0xf103f(_0x368919,_0x42430f);});}function ct(_0x4469b9){const _0x1c95f9=_0x1edc1f;return _0x4469b9[_0x1c95f9(0x232)]===_0x4469b9['endOffset']?_0x4469b9[_0x1c95f9(0x232)]:_0x4469b9[_0x1c95f9(0x232)]+0x1;}function lt(_0x349823){const _0x49a036=_0x1edc1f;var _0x4132a8,_0x3ab5e5,_0x2a1833;let _0x169461=G(_0x349823);if(!_0x169461)return null;let _0x13c1c0=_0x349823['get'](_0x45d141)[_0x49a036(0x1e0)](_0x41a83a[_0x49a036(0x230)]),_0x3f5cc5=_0x13c1c0==null?void 0x0:_0x13c1c0['getBody']();return _0x3f5cc5?(_0x4132a8=_0xfcd91[_0x49a036(0x1c2)][_0x49a036(0x204)](_0x169461,(_0x3ab5e5=_0x3f5cc5['paragraphs'])==null?[]:_0x3ab5e5,(_0x2a1833=_0x3f5cc5['dataStream'])==null?'':_0x2a1833)[0x0])==null?null:_0x4132a8:null;}function ut(_0x4eedbd,_0x1617cd){const _0x58f9f3=_0x1edc1f;let _0x3aac93=_0x4eedbd[_0x58f9f3(0x1bf)],_0x1344ca=_0x1617cd[_0x58f9f3(0x1bf)],_0x7d55a5=_0x1817eb(_0x3aac93,_0x1344ca);return[_0x7d55a5&&_0x1344ca?dt(_0x1344ca,_0x7d55a5):null,_0x7d55a5?null:ft(_0x3aac93,_0x1344ca)][_0x58f9f3(0x1c3)](Boolean)[_0x58f9f3(0x1cd)]((_0x16d52a,_0x49e2fa)=>_0x3e4a71['compose'](_0x16d52a,_0x49e2fa),null);}function dt(_0x4433d9,_0x4f145c){const _0x233ddb=_0x1edc1f;let _0x2505dd=new _0x37143f();return _0x2505dd[_0x233ddb(0x248)](_0x4f145c[_0x233ddb(0x23c)]),_0x4f145c[_0x233ddb(0x21f)]>0x0&&_0x2505dd[_0x233ddb(0x20c)](_0x4f145c[_0x233ddb(0x21f)],_0x2fb9bb(_0x4433d9,_0x4f145c[_0x233ddb(0x23c)],_0x4f145c['start']+_0x4f145c[_0x233ddb(0x21f)],!0x1)),_0x4f145c[_0x233ddb(0x228)]>0x0&&_0x2505dd[_0x233ddb(0x1cf)](_0x4f145c[_0x233ddb(0x228)]),_0x3e4a71['getInstance']()[_0x233ddb(0x240)](_0x2505dd[_0x233ddb(0x1be)](),['body']);}function ft(_0x48fec7,_0x4c0831){const _0x4af238=_0x1edc1f;let _0x436df2=[],_0xb44f48=_0x48fec7?mt(_0x48fec7):void 0x0,_0x559897=_0x4c0831?mt(_0x4c0831):void 0x0;for(let _0xed924e of pt)K(_0x3e4a71[_0x4af238(0x229)](),['body',_0xed924e],_0xb44f48==null?void 0x0:_0xb44f48[_0xed924e],_0x559897==null?void 0x0:_0x559897[_0xed924e],_0x436df2);return _0x436df2['reduce']((_0x49ab30,_0x49244f)=>_0x3e4a71[_0x4af238(0x21c)](_0x49ab30,_0x49244f),null);}const pt=[_0x1edc1f(0x1c7),_0x1edc1f(0x1f2),_0x1edc1f(0x1b7),_0x1edc1f(0x24c),_0x1edc1f(0x1ba),_0x1edc1f(0x1c4),_0x1edc1f(0x1d6),_0x1edc1f(0x24f),_0x1edc1f(0x235)];function mt(_0x399380){return _0x399380;}function K(_0x2c2330,_0x87c84a,_0x2b97b6,_0x18a0c8,_0x33f94e){const _0x52f1a0=_0x1edc1f;if(!J(_0x2b97b6,_0x18a0c8)){if(_0x2b97b6==null){_0x33f94e['push'](_0x2c2330[_0x52f1a0(0x203)](_0x87c84a,_0x18a0c8));return;}if(_0x18a0c8==null){_0x33f94e[_0x52f1a0(0x257)](_0x2c2330['removeOp'](_0x87c84a,_0x2b97b6));return;}if(Array[_0x52f1a0(0x215)](_0x2b97b6)&&Array['isArray'](_0x18a0c8)){ht(_0x2c2330,_0x87c84a,_0x2b97b6,_0x18a0c8,_0x33f94e);return;}if(q(_0x2b97b6)&&q(_0x18a0c8)){new Set([...Object[_0x52f1a0(0x24a)](_0x2b97b6),...Object['keys'](_0x18a0c8)])[_0x52f1a0(0x258)](_0x1feff9=>{K(_0x2c2330,[..._0x87c84a,_0x1feff9],_0x2b97b6[_0x1feff9],_0x18a0c8[_0x1feff9],_0x33f94e);});return;}_0x33f94e[_0x52f1a0(0x257)](_0x2c2330[_0x52f1a0(0x218)](_0x87c84a,_0x2b97b6,_0x18a0c8));}}function ht(_0x38fa16,_0x33ccba,_0x2e174c,_0x1990d4,_0x3960df){const _0x24448a=_0x1edc1f;if(_0x2e174c[_0x24448a(0x1d8)]===_0x1990d4[_0x24448a(0x1d8)]){_0x2e174c[_0x24448a(0x258)]((_0x26c010,_0x4702c2)=>K(_0x38fa16,[..._0x33ccba,_0x4702c2],_0x26c010,_0x1990d4[_0x4702c2],_0x3960df));return;}let _0x498ee4=0x0;for(;_0x498ee4<_0x2e174c[_0x24448a(0x1d8)]&&_0x498ee4<_0x1990d4[_0x24448a(0x1d8)]&&J(_0x2e174c[_0x498ee4],_0x1990d4[_0x498ee4]);)_0x498ee4++;let _0x30a2a6=_0x2e174c[_0x24448a(0x1d8)]-0x1,_0x479fcc=_0x1990d4[_0x24448a(0x1d8)]-0x1;for(;_0x30a2a6>=_0x498ee4&&_0x479fcc>=_0x498ee4&&J(_0x2e174c[_0x30a2a6],_0x1990d4[_0x479fcc]);)_0x30a2a6--,_0x479fcc--;for(let _0x24c9eb=_0x30a2a6;_0x24c9eb>=_0x498ee4;_0x24c9eb--)_0x3960df[_0x24448a(0x257)](_0x38fa16['removeOp']([..._0x33ccba,_0x24c9eb],_0x2e174c[_0x24c9eb]));for(let _0x1beb4e=_0x498ee4;_0x1beb4e<=_0x479fcc;_0x1beb4e++)_0x3960df['push'](_0x38fa16[_0x24448a(0x203)]([..._0x33ccba,_0x1beb4e],_0x1990d4[_0x1beb4e]));}function q(_0x56dcc6){const _0x5310ad=_0x1edc1f;return typeof _0x56dcc6==_0x5310ad(0x1d0)&&!!_0x56dcc6&&!Array[_0x5310ad(0x215)](_0x56dcc6);}function J(_0x1e0222,_0x3f5ec5){const _0x595e24=_0x1edc1f;return JSON[_0x595e24(0x239)](_0x1e0222)===JSON[_0x595e24(0x239)](_0x3f5ec5);}function Y(_0x52af4b,_0x3c6e8a,_0x3aeeac,_0x4ae4dc,_0xea0621,_0x5c7f74,_0x2ba5d5){const _0x465c4c=_0x1edc1f;let _0x48908d=ut(_0x4ae4dc,_0xea0621);return _0x48908d?!!_0x52af4b[_0x465c4c(0x1da)](_0xc563fa['id'],{'unitId':_0x3aeeac,'actions':_0x48908d,'textRanges':[{'startOffset':_0x2ba5d5,'endOffset':_0x2ba5d5,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x5c7f74}):(_0x3c6e8a[_0x465c4c(0x1f7)]([{'startOffset':_0x2ba5d5,'endOffset':_0x2ba5d5}],{'unitId':_0x3aeeac,'subUnitId':_0x3aeeac},!0x1),!0x0);}const X=_0x1edc1f(0x23a);var gt=_0x1edc1f(0x238),_t=_0x1edc1f(0x226);const vt={};function Z(_0x12d672,_0x53d951){return function(_0x1286b1,_0xc98794){_0x53d951(_0x1286b1,_0xc98794,_0x12d672);};}function yt(_0x5d656f,_0x3f585c,_0x69d9a3,_0x1b8442){const _0x56e66a=_0x1edc1f;var _0x351313=arguments[_0x56e66a(0x1d8)],_0x28c126=_0x351313<0x3?_0x3f585c:_0x1b8442===null?_0x1b8442=Object['getOwnPropertyDescriptor'](_0x3f585c,_0x69d9a3):_0x1b8442,_0x524676;if(typeof Reflect==_0x56e66a(0x1d0)&&typeof Reflect[_0x56e66a(0x222)]==_0x56e66a(0x246))_0x28c126=Reflect[_0x56e66a(0x222)](_0x5d656f,_0x3f585c,_0x69d9a3,_0x1b8442);else{for(var _0x13ceb1=_0x5d656f[_0x56e66a(0x1d8)]-0x1;_0x13ceb1>=0x0;_0x13ceb1--)(_0x524676=_0x5d656f[_0x13ceb1])&&(_0x28c126=(_0x351313<0x3?_0x524676(_0x28c126):_0x351313>0x3?_0x524676(_0x3f585c,_0x69d9a3,_0x28c126):_0x524676(_0x3f585c,_0x69d9a3))||_0x28c126);}return _0x351313>0x3&&_0x28c126&&Object[_0x56e66a(0x220)](_0x3f585c,_0x69d9a3,_0x28c126),_0x28c126;}let Q=class extends _0x11f1e7{constructor(_0x38ac2b,_0x14d407){const _0x2f0bec=_0x1edc1f;super(),this[_0x2f0bec(0x1cc)]=_0x38ac2b,this[_0x2f0bec(0x1f5)]=_0x14d407,this[_0x2f0bec(0x1f4)]();}[_0x1edc1f(0x1f4)](){const _0x3222d1=_0x1edc1f;this[_0x3222d1(0x23d)](this['_resourceManagerService']['registerPluginResource']({'pluginName':X,'businesses':[_0x41a83a['UNIVER_DOC']],'toJson':_0x5e6d5d=>JSON[_0x3222d1(0x239)](this[_0x3222d1(0x1f5)][_0x3222d1(0x1be)](_0x5e6d5d)),'parseJson':_0x23f59e=>x(JSON[_0x3222d1(0x1e6)](_0x23f59e)),'onLoad':(_0x537f2c,_0x451d0b)=>this[_0x3222d1(0x1f5)][_0x3222d1(0x1ee)](_0x537f2c,_0x451d0b),'onUnLoad':_0xbdb392=>this['_docsCodeModel'][_0x3222d1(0x1fa)](_0xbdb392)}));}};Q=yt([Z(0x0,_0x50ae34),Z(0x1,_0x5c4b8b(z))],Q);let $=class extends _0x19b9cc{constructor(_0x3892b3=vt,_0x2e3095,_0x255e3e,_0x2b7c55){const _0x56b48e=_0x1edc1f;super(),this[_0x56b48e(0x224)]=_0x3892b3,this[_0x56b48e(0x236)]=_0x2e3095,this['_commandService']=_0x255e3e,this['_configService']=_0x2b7c55;let {..._0x27948e}=_0x559340({},vt,this[_0x56b48e(0x224)]);this[_0x56b48e(0x205)][_0x56b48e(0x1f0)](_0x56b48e(0x1b9),_0x27948e);}['onStarting'](){const _0x960035=_0x1edc1f;this[_0x960035(0x236)]['add']([z]),this[_0x960035(0x236)][_0x960035(0x225)]([Q]),this[_0x960035(0x236)][_0x960035(0x1c5)](z),this[_0x960035(0x236)]['get'](Q),[B,nt,it,V,H,at,U,rt][_0x960035(0x258)](_0x4247a0=>this[_0x960035(0x23d)](this[_0x960035(0x249)][_0x960035(0x1e2)](_0x4247a0)));}};R($,_0x1edc1f(0x22a),X),R($,_0x1edc1f(0x227),gt),R($,_0x1edc1f(0x1fd),_t),R($,_0x1edc1f(0x233),_0x41a83a['UNIVER_DOC']),$=yt([_0x2f1165(_0x4c3c74,_0x3f1e99),Z(0x1,_0x5c4b8b(_0x193e69)),Z(0x2,_0x1d61d6),Z(0x3,_0x4a9167)],$);export{X as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,rt as DocsCodeConsumeBoundaryDeleteCommand,nt as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,z as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,it as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,Oe as buildCancelEmptyCodeParagraphActions,je as isCodeBoundaryDelete,b as normalizeDocsCodeConfig};
|