@univerjs-pro/docs-code 1.5.0 → 1.5.1
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 _0x1d39a3=_0x272f;(function(_0x4a0440,_0x4e2655){const _0x292b7b=_0x272f,_0x433e71=_0x4a0440();while(!![]){try{const _0x29a5b4=-parseInt(_0x292b7b(0xca))/0x1+parseInt(_0x292b7b(0x10e))/0x2*(-parseInt(_0x292b7b(0xeb))/0x3)+parseInt(_0x292b7b(0xe9))/0x4+parseInt(_0x292b7b(0x106))/0x5+parseInt(_0x292b7b(0xe1))/0x6*(-parseInt(_0x292b7b(0xda))/0x7)+-parseInt(_0x292b7b(0xdb))/0x8*(parseInt(_0x292b7b(0xcc))/0x9)+parseInt(_0x292b7b(0x101))/0xa;if(_0x29a5b4===_0x4e2655)break;else _0x433e71['push'](_0x433e71['shift']());}catch(_0x2c8dc6){_0x433e71['push'](_0x433e71['shift']());}}}(_0x49ff,0x8c3bf));import{BooleanNumber as _0x5d0432,BuildTextUtils as _0x59526f,CommandType as _0x2dace9,DataStreamTreeTokenType as _0x2c3576,DependentOn as _0xc91b1c,Disposable as _0x4e5cf1,DocumentBlockRangeType as _0x5beae4,ICommandService as _0x2175d5,IConfigService as _0xd2a5aa,IResourceManagerService as _0x40da0c,IUniverInstanceService as _0x765ea0,Inject as _0x46134b,Injector as _0x10239e,JSONX as _0x7839c8,Plugin as _0x364415,TextX as _0x5aed02,UniverInstanceType as _0x2efd60,containsInteriorInsertionOffset as _0xd5ec9e,containsStreamIndex as _0x479b09,createParagraphId as _0x261bf9,generateRandomId as _0x395744,getBlockRangeInterval as _0x537bc1,getBodySliceForTextXAction as _0xe7c155,getParagraphContentStartOffset as _0x25a2c0,getParagraphContentStartOffsets as _0x31f66b,getParagraphFollowingBlockOffset as _0x5e906d,getSingleDataStreamChange as _0xe39f3e,intersectsOperationalIntervals as _0x544f57,merge as _0x4acedb,shiftExclusiveRangeOnDelete as _0x45258e,shiftExclusiveRangeOnInsert as _0x254835,shiftInclusiveRangeOnDelete as _0x321717,shiftInclusiveRangeOnInsert as _0x3ff03c}from'@univerjs/core';import{Subject as _0x168f18}from'rxjs';import{DocSelectionManagerService as _0x5cac0c,RichTextEditingMutation as _0x40ade1,UniverDocsPlugin as _0x5825c3,getContentInsertRange as _0x4d271c,isHeaderFooterSelection as _0x431f27}from'@univerjs/docs';import{UniverLicensePlugin as _0xf600d9}from'@univerjs-pro/license';const Se={'language':_0x1d39a3(0x9e),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x3ec68b){return{...Se,..._0x3ec68b};}function y(_0x1335b6){const _0x406cd4=_0x1d39a3;let _0x5588a8=(_0x1335b6==null?void 0x0:_0x1335b6['codes'])??{};return{'codes':Object[_0x406cd4(0xa8)](Object[_0x406cd4(0xc3)](_0x5588a8)[_0x406cd4(0xbb)](([_0x3081c6,_0x38d159])=>[_0x3081c6,v(_0x38d159)]))};}function b(_0x1b692e,_0x5147dc,_0x264e79){const _0x510750=_0x1d39a3;let _0x421bfe=y(_0x1b692e);return _0x421bfe[_0x510750(0xe7)][_0x5147dc]=v({..._0x421bfe['codes'][_0x5147dc],..._0x264e79}),_0x421bfe;}function x(_0x5202c6,_0x1a4540){const _0x2c6197=_0x1d39a3;let _0x494bfa=y(_0x5202c6);return delete _0x494bfa[_0x2c6197(0xe7)][_0x1a4540],_0x494bfa;}function S(_0x58f98a){'@babel/helpers - typeof';const _0x14b4b7=_0x1d39a3;return S=typeof Symbol==_0x14b4b7(0x111)&&typeof Symbol[_0x14b4b7(0xa7)]=='symbol'?function(_0x5c7153){return typeof _0x5c7153;}:function(_0x3eaf20){const _0x1a612d=_0x14b4b7;return _0x3eaf20&&typeof Symbol=='function'&&_0x3eaf20[_0x1a612d(0xc2)]===Symbol&&_0x3eaf20!==Symbol[_0x1a612d(0xf0)]?'symbol':typeof _0x3eaf20;},S(_0x58f98a);}function Ce(_0x41f4d1,_0x1f2706){const _0xb0b5ed=_0x1d39a3;if(S(_0x41f4d1)!=_0xb0b5ed(0xc8)||!_0x41f4d1)return _0x41f4d1;var _0x224e81;if(typeof Symbol<'u'&&(_0x224e81=_0x41f4d1[Symbol[_0xb0b5ed(0x126)]])!==void 0x0){var _0x548262=_0x224e81[_0xb0b5ed(0xb4)](_0x41f4d1,_0x1f2706||_0xb0b5ed(0x97));if(S(_0x548262)!='object')return _0x548262;throw TypeError(_0xb0b5ed(0x109));}return(_0x1f2706===_0xb0b5ed(0x10b)?String:Number)(_0x41f4d1);}function we(_0x1d0b3a){const _0x121f58=_0x1d39a3;var _0x4b4f66=Ce(_0x1d0b3a,_0x121f58(0x10b));return S(_0x4b4f66)==_0x121f58(0xaa)?_0x4b4f66:_0x4b4f66+'';}function C(_0x3574c1,_0xbfa2d2,_0x39a653){const _0x11e4c0=_0x1d39a3;return(_0xbfa2d2=we(_0xbfa2d2))in _0x3574c1?Object[_0x11e4c0(0xfe)](_0x3574c1,_0xbfa2d2,{'value':_0x39a653,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3574c1[_0xbfa2d2]=_0x39a653,_0x3574c1;}var w=class extends _0x4e5cf1{constructor(..._0x4218b0){const _0x4d07fe=_0x1d39a3;super(..._0x4218b0),C(this,'_resources',new Map()),C(this,_0x4d07fe(0xa9),new _0x168f18()),C(this,_0x4d07fe(0x96),this[_0x4d07fe(0xa9)][_0x4d07fe(0x125)]());}[_0x1d39a3(0xc1)](_0x3926b3,_0x16b2f0){const _0x1bafa0=_0x1d39a3;return y(this[_0x1bafa0(0xaf)]['get'](_0x3926b3))[_0x1bafa0(0xe7)][_0x16b2f0];}[_0x1d39a3(0x11e)](_0x3576e7,_0x39ee1d,_0x1cedd2){const _0x11627b=_0x1d39a3;this[_0x11627b(0xa6)](_0x3576e7,_0x39ee1d,b(this['_resources'][_0x11627b(0xff)](_0x3576e7),_0x39ee1d,_0x1cedd2));}[_0x1d39a3(0x12e)](_0x3b9b19,_0x5f142f){const _0x5f47d1=_0x1d39a3;this[_0x5f47d1(0xa6)](_0x3b9b19,_0x5f142f,x(this[_0x5f47d1(0xaf)][_0x5f47d1(0xff)](_0x3b9b19),_0x5f142f));}[_0x1d39a3(0xfa)](_0x2a1f6f){return y(this['_resources']['get'](_0x2a1f6f));}[_0x1d39a3(0xae)](_0x39b734,_0x192586){const _0x533640=_0x1d39a3;this[_0x533640(0xaf)][_0x533640(0x105)](_0x39b734,y(_0x192586)),this[_0x533640(0xa9)][_0x533640(0xe5)]({'unitId':_0x39b734});}[_0x1d39a3(0xbf)](_0x2ead56){const _0x3afc82=_0x1d39a3;this[_0x3afc82(0xaf)][_0x3afc82(0x9c)](_0x2ead56),this[_0x3afc82(0xa9)]['next']({'unitId':_0x2ead56});}[_0x1d39a3(0xc0)](){const _0x195f34=_0x1d39a3;super['dispose'](),this[_0x195f34(0xaf)]['clear'](),this[_0x195f34(0xa9)]['complete']();}[_0x1d39a3(0xa6)](_0x50e7e8,_0x13e64d,_0x2d4771){const _0x2c93af=_0x1d39a3;this[_0x2c93af(0xaf)][_0x2c93af(0x105)](_0x50e7e8,_0x2d4771),this[_0x2c93af(0xa9)][_0x2c93af(0xe5)]({'unitId':_0x50e7e8,'blockId':_0x13e64d});}};const Te={'id':_0x1d39a3(0x9b),'type':_0x2dace9['MUTATION'],'handler':(_0xdf70a3,_0x1f5795)=>!(_0x1f5795!=null&&_0x1f5795['unitId'])||!_0x1f5795[_0x1d39a3(0x108)]?!0x1:(_0xdf70a3[_0x1d39a3(0xff)](w)[_0x1d39a3(0x11e)](_0x1f5795[_0x1d39a3(0x110)],_0x1f5795[_0x1d39a3(0x108)],_0x1f5795[_0x1d39a3(0x104)]),!0x0)},T={'id':_0x1d39a3(0x134),'type':_0x2dace9['MUTATION'],'handler':(_0x30f6df,_0xfb2b02)=>!(_0xfb2b02!=null&&_0xfb2b02[_0x1d39a3(0x110)])||!_0xfb2b02[_0x1d39a3(0x108)]?!0x1:(_0x30f6df[_0x1d39a3(0xff)](w)['removeCode'](_0xfb2b02[_0x1d39a3(0x110)],_0xfb2b02['blockId']),!0x0)},Ee=_0x1d39a3(0x98);var E=class extends Error{constructor(_0x11b96f='Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries'){super(_0x11b96f);}};function De(_0x22d033){const _0x358229=_0x1d39a3;var _0x1eda76;let _0x35ff90=O(_0x22d033[_0x358229(0xce)]),_0x8ef8c8=A(_0x35ff90),_0x9513cd=ke(_0x22d033[_0x358229(0xd9)],_0x22d033[_0x358229(0xf3)]),_0x43ec2f=_0x9513cd?(_0x1eda76=_0x8ef8c8[_0x358229(0x11d)])==null?void 0x0:_0x1eda76[_0x358229(0x94)](_0x349004=>{const _0x10fb82=_0x358229;let _0x16ce5c=_0x537bc1(_0x349004);return _0x16ce5c[_0x10fb82(0xd9)]===_0x9513cd[_0x10fb82(0xd9)]&&_0x16ce5c[_0x10fb82(0xf3)]===_0x9513cd['endOffset'];}):void 0x0,{startOffset:_0x38297d,endOffset:_0x1218c8}=_0x43ec2f?_0x9513cd:We(_0x8ef8c8,_0x22d033[_0x358229(0xd9)],_0x22d033['endOffset'],_0x22d033['insertionMode']);if(!_0x43ec2f&&Ae(_0x8ef8c8,_0x38297d,_0x1218c8))throw new E(_0x358229(0x92));let _0x493004=qe(_0x8ef8c8,_0x38297d,_0x1218c8),_0x2289de=(_0x43ec2f==null?void 0x0:_0x43ec2f[_0x358229(0x108)])??_0x22d033[_0x358229(0x108)],_0x39706b=b(_0x22d033[_0x358229(0xd8)],_0x2289de,{...Se,..._0x22d033[_0x358229(0x104)]});if(_0x43ec2f)return _0x43ec2f[_0x358229(0x12b)]=_0x5beae4[_0x358229(0x9f)],Oe(_0x8ef8c8,_0x38297d,_0x1218c8),ze(_0x8ef8c8,_0x38297d,_0x1218c8,_0x493004),N(_0x8ef8c8,_0x43ec2f),{'nextDocumentData':_0x35ff90,'nextMetadata':_0x39706b,'cursorOffset':_0x38297d+0x1};if(_0x38297d===_0x1218c8){var _0x18b8ee,_0x2d5af7;let _0x4cc852=''+_0x2c3576[_0x358229(0xef)]+_0x2c3576[_0x358229(0x11f)]+_0x2c3576[_0x358229(0xf5)];P(_0x8ef8c8,_0x38297d,_0x4cc852,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x261bf9(new Set((_0x18b8ee=_0x8ef8c8[_0x358229(0x12f)])==null?void 0x0:_0x18b8ee[_0x358229(0xbb)](_0x2daa02=>_0x2daa02[_0x358229(0xd2)]))),'paragraphStyle':Re(!0x0,!0x0,_0x493004)}],'blockRanges':[{'blockId':_0x2289de,'blockType':_0x5beae4[_0x358229(0x9f)],'startIndex':0x0,'endIndex':_0x4cc852[_0x358229(0x123)]-0x1}]});let _0x30e2fb=(_0x2d5af7=_0x8ef8c8[_0x358229(0x11d)])==null?void 0x0:_0x2d5af7[_0x358229(0x94)](_0x433e69=>_0x433e69[_0x358229(0x108)]===_0x2289de);return _0x30e2fb&&N(_0x8ef8c8,_0x30e2fb),{'nextDocumentData':_0x35ff90,'nextMetadata':_0x39706b,'cursorOffset':_0x38297d+0x1};}P(_0x8ef8c8,_0x1218c8,_0x2c3576[_0x358229(0xf5)]),P(_0x8ef8c8,_0x38297d,_0x2c3576[_0x358229(0xef)]),ze(_0x8ef8c8,_0x38297d,_0x1218c8+0x1,_0x493004);let _0x304952={'blockId':_0x2289de,'blockType':_0x5beae4[_0x358229(0x9f)],'startIndex':_0x38297d,'endIndex':_0x1218c8+0x1};return _0x8ef8c8['blockRanges']=[..._0x8ef8c8[_0x358229(0x11d)]??[],_0x304952][_0x358229(0x129)]((_0x5d9715,_0xb01905)=>_0x5d9715[_0x358229(0xab)]-_0xb01905['startIndex']),N(_0x8ef8c8,_0x304952),{'nextDocumentData':_0x35ff90,'nextMetadata':_0x39706b,'cursorOffset':_0x38297d+0x1};}function _0x49ff(){const _0x3140ab=['1425627vJHgOr','some','documentData','filter','columnGroups','compose','paragraphId','indentStart','getCurrentUnitOfType','docs-code.command.cancel-empty-paragraph','keys','_initResource','metadata','startOffset','14YsIahR','48AzwFaR','decorate','direction','selectionManager','getInstance','max','758778AvtWNb','TABLE_CELL_END','TRUE','push','next','insertOp','codes','customBlocks','4070508IINkUK','docs-code.command.exit','51gDwEOU','forEach','spaceBelow','docs-code.command.unwrap','BLOCK_START','prototype','from','@univerjs-pro/docs-code','endOffset','getSnapshot','BLOCK_END','every','packageName','indentEnd','_resourceManagerService','serialize','pluginName','getUnit','customDecorations','defineProperty','get','endsWith','6828160iDYZTH','setConfig','dataStream','config','set','1873460VeJsiY','left','blockId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','customRanges','string','_configService','syncExecuteCommand','30080FPpFLD','reduce','unitId','function','add','deleteLength','commandService','endIndex','textRuns','UNIVER_DOC','min','handler','endTokenOffset','docs-code.command.remove','_commandService','blockRanges','setCodeConfig','PARAGRAPH','insert','nextMetadata','Document\x20body\x20is\x20required','length','isArray','asObservable','toPrimitive','docs-code.command.consume-boundary-delete','insertionMode','sort','tables','blockType','spaceAbove','startTokenOffset','removeCode','paragraphs','disposeWithMe','insertLength','docs-code.command.insert-below','retain','docs-code.mutation.remove-config','_injector','COMMAND','convert-paragraph','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','paragraphStartIndex','find','body','change$','default','monospace','getBody','removeOp','docs-code.mutation.set-config','delete','columns','javascript','CODE','slice','range','getUnitId','getParagraphsInRange','docs-code.config','indexOf','_setResource','iterator','fromEntries','_change$','symbol','startIndex','paragraphStyle','replaceDocRanges','deserialize','_resources','previousDocumentData','TABLE_CELL_START','SECTION_BREAK','docs-code.command.insert','call','1.5.0','stringify','insert-new','model','replaceOp','textStyle','map','_docsCodeModel','type','sectionBreaks','removeUnit','dispose','getCodeConfig','constructor','entries','nextDocumentData','start','bullet','onStarting','object','cursorOffset','41712JXxyxo','paragraph'];_0x49ff=function(){return _0x3140ab;};return _0x49ff();}function Oe(_0x53e0b4,_0x5da00a,_0x46ec35){const _0x4557eb=_0x1d39a3;(_0x53e0b4[_0x4557eb(0x12f)]??[])['filter'](_0xb9725=>_0xb9725[_0x4557eb(0xab)]>_0x5da00a&&_0xb9725[_0x4557eb(0xab)]<_0x46ec35)[_0x4557eb(0xec)](_0x5f59d6=>{const _0x51514c=_0x4557eb;let _0x12ea68={..._0x5f59d6[_0x51514c(0xac)]??{}};delete _0x12ea68[_0x51514c(0x12c)],delete _0x12ea68[_0x51514c(0xed)],_0x5f59d6[_0x51514c(0xac)]=_0x12ea68;});}function ke(_0xc39806,_0x29ba87){const _0x5626ab=_0x1d39a3;return _0xc39806==null||_0x29ba87==null||_0xc39806===_0x29ba87?null:{'startOffset':Math[_0x5626ab(0x118)](_0xc39806,_0x29ba87),'endOffset':Math[_0x5626ab(0xe0)](_0xc39806,_0x29ba87)};}function Ae(_0x42f907,_0x518633,_0x3a9402){const _0x495dc7=_0x1d39a3;return(_0x42f907[_0x495dc7(0x11d)]??[])[_0x495dc7(0xcd)](_0x3c35ee=>{let _0x246af4=_0x537bc1(_0x3c35ee);return _0x518633===_0x3a9402?_0xd5ec9e(_0x246af4,_0x518633):_0x544f57(_0x246af4,{'startOffset':_0x518633,'endOffset':_0x3a9402});});}function je(_0x13e02f){const _0x387f90=_0x1d39a3;return{'nextDocumentData':O(_0x13e02f[_0x387f90(0xce)]),'nextMetadata':b(_0x13e02f[_0x387f90(0xd8)],_0x13e02f[_0x387f90(0x108)],_0x13e02f[_0x387f90(0x104)]),'cursorOffset':0x0};}function D(_0xad6b45){const _0x1ae730=_0x1d39a3;let _0x5e8cfe=O(_0xad6b45[_0x1ae730(0xce)]),_0x4fb42a=A(_0x5e8cfe),_0x47a3f4=Fe(_0x4fb42a,_0xad6b45[_0x1ae730(0x108)]);if(!_0x47a3f4)return null;let _0x2c5d67=He(_0x4fb42a,_0x47a3f4);return{'nextDocumentData':_0x5e8cfe,'nextMetadata':x(_0xad6b45[_0x1ae730(0xd8)],_0xad6b45[_0x1ae730(0x108)]),'cursorOffset':_0x2c5d67};}function Me(_0x2c4c58){const _0x1e0176=_0x1d39a3;var _0x493d73;let _0x123e0c=O(_0x2c4c58[_0x1e0176(0xce)]),_0x107981=A(_0x123e0c),_0x4c1284=Fe(_0x107981,_0x2c4c58[_0x1e0176(0x108)]);if(!_0x4c1284)return null;let _0x36cc96=_0x537bc1(_0x4c1284);return F(_0x107981,_0x36cc96[_0x1e0176(0xd9)],_0x36cc96[_0x1e0176(0xf3)]),_0x107981['blockRanges']=(_0x493d73=_0x107981[_0x1e0176(0x11d)])==null?void 0x0:_0x493d73[_0x1e0176(0xcf)](_0x46c41b=>_0x46c41b[_0x1e0176(0x108)]!==_0x2c4c58[_0x1e0176(0x108)]),{'nextDocumentData':_0x123e0c,'nextMetadata':x(_0x2c4c58[_0x1e0176(0xd8)],_0x2c4c58[_0x1e0176(0x108)]),'cursorOffset':_0x4c1284[_0x1e0176(0xab)]};}function Ne(_0x1492a5){const _0x4fa321=_0x1d39a3;let _0x1dec79=O(_0x1492a5['documentData']),_0x8f58b9=A(_0x1dec79),_0x56c5cf=Le(_0x8f58b9,_0x1492a5[_0x4fa321(0xc9)]);return _0x56c5cf&&Pe(_0x1dec79,_0x8f58b9,_0x56c5cf,_0x1492a5[_0x4fa321(0xc9)],_0x1492a5[_0x4fa321(0x93)])||null;}function Pe(_0x2bcff1,_0x149635,_0x1525db,_0x5e6bb4,_0x1ed519){const _0x136976=_0x1d39a3;let _0x31a778=$e(_0x149635,_0x1525db,_0x5e6bb4,_0x1ed519);if(!_0x31a778)return null;let _0x176a1e=_0x31a778[_0x136976(0x11a)]-0x1;return F(_0x149635,_0x31a778[_0x136976(0xcb)]['startIndex'],_0x31a778['paragraph'][_0x136976(0xab)]+0x1),{'nextDocumentData':_0x2bcff1,'cursorOffset':_0x176a1e};}function Fe(_0x501120,_0x41a311){const _0x188e2f=_0x1d39a3;var _0x4094f6;return _0x501120==null||(_0x4094f6=_0x501120[_0x188e2f(0x11d)])==null?void 0x0:_0x4094f6[_0x188e2f(0x94)](_0x340263=>_0x340263['blockType']===_0x5beae4[_0x188e2f(0x9f)]&&_0x340263['blockId']===_0x41a311);}function Ie(_0x5701c5){const _0xae5a6c=_0x1d39a3;let _0x373ae2=_0x5701c5[_0xae5a6c(0xce)][_0xae5a6c(0x95)];if(!_0x373ae2)return!0x1;let _0x430a2c=_0x5701c5['direction']===_0xae5a6c(0x107)?_0x5701c5[_0xae5a6c(0xc9)]-0x1:_0x5701c5[_0xae5a6c(0xc9)],_0x33460e=_0x5701c5[_0xae5a6c(0xdd)]==='right'?_0x5701c5[_0xae5a6c(0xc9)]+0x1:_0x430a2c;return(_0x373ae2[_0xae5a6c(0x11d)]??[])[_0xae5a6c(0xcd)](_0x1e1e25=>_0x1e1e25[_0xae5a6c(0x12b)]===_0x5beae4[_0xae5a6c(0x9f)]?_0x430a2c===_0x1e1e25[_0xae5a6c(0xab)]||_0x430a2c===_0x1e1e25[_0xae5a6c(0x115)]||_0x33460e===_0x1e1e25[_0xae5a6c(0xab)]||_0x33460e===_0x1e1e25[_0xae5a6c(0x115)]:!0x1);}function Le(_0x474bfb,_0x1f3852){const _0x46a9a0=_0x1d39a3;var _0x42a033;return(_0x42a033=_0x474bfb[_0x46a9a0(0x11d)])==null?void 0x0:_0x42a033[_0x46a9a0(0x94)](_0x86af9=>{const _0x543491=_0x46a9a0;let _0x22ff32=M(_0x86af9);return _0x86af9['blockType']===_0x5beae4[_0x543491(0x9f)]&&_0x86af9[_0x543491(0xab)]<=_0x1f3852&&_0x1f3852<=_0x22ff32+0x2;});}function Re(_0x43c979,_0x20fcab,_0xd8d64d=!0x1){const _0x3572d8=_0x1d39a3;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x5d0432[_0x3572d8(0xe3)],'keepNext':_0x20fcab?_0x5d0432['FALSE']:_0x5d0432['TRUE'],'widowControl':_0x5d0432[_0x3572d8(0xe3)],..._0x43c979&&_0xd8d64d?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x54298b,_0x4814d3,_0xfc4f39,_0x5bb987=!0x1){const _0x3364ee=_0x1d39a3;let _0x5f220a=(_0x54298b[_0x3364ee(0x12f)]??[])[_0x3364ee(0xcf)](_0x5def2a=>_0x5def2a['startIndex']>_0x4814d3&&_0x5def2a[_0x3364ee(0xab)]<_0xfc4f39);_0x5f220a[_0x3364ee(0xec)]((_0x1730da,_0x38d210)=>{const _0x2dea4b=_0x3364ee;_0x1730da[_0x2dea4b(0xac)]={..._0x1730da[_0x2dea4b(0xac)]??{},...Re(_0x38d210===0x0,_0x38d210===_0x5f220a[_0x2dea4b(0x123)]-0x1,_0x5bb987)};});}function Be(_0x35d0c9){const _0xc4d9ab=_0x1d39a3;var _0xbc79ee,_0x12a63d;let _0x36701c={..._0x35d0c9??{}};return delete _0x36701c[_0xc4d9ab(0xf8)],delete _0x36701c[_0xc4d9ab(0xd3)],delete _0x36701c['spaceAbove'],delete _0x36701c[_0xc4d9ab(0xed)],delete _0x36701c['keepLines'],delete _0x36701c['keepNext'],delete _0x36701c['widowControl'],((_0xbc79ee=_0x36701c[_0xc4d9ab(0xba)])==null?void 0x0:_0xbc79ee['ff'])===Ee&&((_0x12a63d=_0x36701c['textStyle'])==null?void 0x0:_0x12a63d['fs'])===0xc&&delete _0x36701c[_0xc4d9ab(0xba)],_0x36701c;}function Ve(_0x35e87c,_0xd594a8){const _0x583537=_0x1d39a3;let _0x254a53=M(_0xd594a8);return(_0x35e87c[_0x583537(0x12f)]??[])[_0x583537(0xcf)](_0x45ad72=>_0x45ad72[_0x583537(0xab)]>_0xd594a8[_0x583537(0xab)]&&_0x45ad72[_0x583537(0xab)]<_0x254a53);}function He(_0x43db6e,_0xcd279a){const _0x47cce5=_0x1d39a3;var _0x4dd232;let _0x5d5477=M(_0xcd279a);return Ve(_0x43db6e,_0xcd279a)['forEach'](_0x14390f=>{_0x14390f['paragraphStyle']=Be(_0x14390f['paragraphStyle']);}),F(_0x43db6e,_0x5d5477,_0x5d5477+0x1),F(_0x43db6e,_0xcd279a['startIndex'],_0xcd279a[_0x47cce5(0xab)]+0x1),_0x43db6e[_0x47cce5(0x11d)]=(_0x4dd232=_0x43db6e['blockRanges'])==null?void 0x0:_0x4dd232[_0x47cce5(0xcf)](_0x1ab400=>_0x1ab400[_0x47cce5(0x108)]!==_0xcd279a['blockId']),_0xcd279a[_0x47cce5(0xab)];}function O(_0x8a57c3){const _0x8c2eb2=_0x1d39a3;return{..._0x8a57c3,'body':_0x8a57c3[_0x8c2eb2(0x95)]?Ue(_0x8a57c3['body']):_0x8a57c3[_0x8c2eb2(0x95)]};}function Ue(_0x4129ea){const _0x4dd3f3=_0x1d39a3;var _0x204948,_0x2d8741,_0x4b987f,_0x498e26,_0x570191,_0x2a04a1,_0x27b71a,_0x38b969,_0x3bb40f;return{..._0x4129ea,'paragraphs':(_0x204948=_0x4129ea[_0x4dd3f3(0x12f)])==null?void 0x0:_0x204948['map'](_0x2f1374=>({..._0x2f1374,'bullet':k(_0x2f1374[_0x4dd3f3(0xc6)]),'paragraphStyle':k(_0x2f1374['paragraphStyle'])})),'sectionBreaks':(_0x2d8741=_0x4129ea[_0x4dd3f3(0xbe)])==null?void 0x0:_0x2d8741[_0x4dd3f3(0xbb)](_0xd92171=>({..._0xd92171})),'textRuns':(_0x4b987f=_0x4129ea[_0x4dd3f3(0x116)])==null?void 0x0:_0x4b987f[_0x4dd3f3(0xbb)](_0x5d1f1e=>({..._0x5d1f1e})),'tables':(_0x498e26=_0x4129ea[_0x4dd3f3(0x12a)])==null?void 0x0:_0x498e26[_0x4dd3f3(0xbb)](_0x103483=>({..._0x103483})),'columnGroups':(_0x570191=_0x4129ea[_0x4dd3f3(0xd0)])==null?void 0x0:_0x570191[_0x4dd3f3(0xbb)](_0x25d2e8=>{const _0x5058eb=_0x4dd3f3;var _0x3c7e48;return{..._0x25d2e8,'columns':(_0x3c7e48=_0x25d2e8[_0x5058eb(0x9d)])==null?void 0x0:_0x3c7e48['map'](_0x5dc343=>k(_0x5dc343))};}),'blockRanges':(_0x2a04a1=_0x4129ea[_0x4dd3f3(0x11d)])==null?void 0x0:_0x2a04a1[_0x4dd3f3(0xbb)](_0x39d43f=>({..._0x39d43f})),'customRanges':(_0x27b71a=_0x4129ea['customRanges'])==null?void 0x0:_0x27b71a[_0x4dd3f3(0xbb)](_0xc653bb=>({..._0xc653bb})),'customDecorations':(_0x38b969=_0x4129ea['customDecorations'])==null?void 0x0:_0x38b969[_0x4dd3f3(0xbb)](_0x52dbeb=>({..._0x52dbeb})),'customBlocks':(_0x3bb40f=_0x4129ea[_0x4dd3f3(0xe8)])==null?void 0x0:_0x3bb40f['map'](_0x58ec8d=>({..._0x58ec8d}))};}function k(_0x1af6ca){const _0x4e1f1a=_0x1d39a3;return Array[_0x4e1f1a(0x124)](_0x1af6ca)?_0x1af6ca['map'](_0x46afaf=>k(_0x46afaf)):!_0x1af6ca||typeof _0x1af6ca!='object'?_0x1af6ca:Object[_0x4e1f1a(0xa8)](Object[_0x4e1f1a(0xc3)](_0x1af6ca)['map'](([_0x546bc7,_0x390673])=>[_0x546bc7,k(_0x390673)]));}function A(_0x4bd299){const _0x4498aa=_0x1d39a3;if(!_0x4bd299[_0x4498aa(0x95)])throw Error(_0x4498aa(0x122));return _0x4bd299[_0x4498aa(0x95)];}function We(_0x3daabd,_0x1aa1e2,_0x5f2221,_0x32c6ed=_0x1d39a3(0x91)){const _0x120731=_0x1d39a3;if(_0x1aa1e2==null||_0x5f2221==null){let _0x3cf160=Ke(_0x3daabd);return{'startOffset':_0x3cf160,'endOffset':_0x3cf160};}let _0x8e27ce=Math['min'](_0x1aa1e2,_0x5f2221),_0xa382df=Math[_0x120731(0xe0)](_0x1aa1e2,_0x5f2221),_0x745d80=Ze(_0x3daabd,_0x8e27ce,_0xa382df);return _0x8e27ce===_0xa382df?_0x32c6ed==='insert-new'?{'startOffset':_0x8e27ce,'endOffset':_0xa382df}:Ge(_0x3daabd,_0x8e27ce,_0x745d80):Je(_0x3daabd,_0x8e27ce,_0xa382df,_0x745d80);}function Ge(_0x277c73,_0x4e446b,_0x5d0f08){const _0x792a68=_0x1d39a3;let _0x5d244d=Ye(_0x277c73,_0x4e446b);if(_0x5d244d){let _0x352d89=j(_0x277c73,_0x5d244d,_0x5d0f08);if(_0x352d89<_0x5d244d[_0x792a68(0xab)])return{'startOffset':_0x352d89,'endOffset':_0x5d0f08?Math[_0x792a68(0x118)](_0x5d244d[_0x792a68(0xab)]+0x1,_0x5d0f08[_0x792a68(0xf3)]):_0x5d244d[_0x792a68(0xab)]+0x1};}let _0x276813=_0x4e446b===0x0&&_0x277c73[_0x792a68(0x103)][0x0]===_0x2c3576[_0x792a68(0x11f)]?0x1:_0x4e446b;return{'startOffset':_0x276813,'endOffset':_0x276813};}function Ke(_0x35f861){const _0x3cff3c=_0x1d39a3;return _0x35f861[_0x3cff3c(0x103)][_0x3cff3c(0x100)](_0x2c3576[_0x3cff3c(0xb2)])?Math[_0x3cff3c(0xe0)](0x0,_0x35f861[_0x3cff3c(0x103)]['length']-0x1):_0x35f861[_0x3cff3c(0x103)][_0x3cff3c(0x123)];}function _0x272f(_0x144573,_0x4fdb7a){_0x144573=_0x144573-0x90;const _0x49ff7a=_0x49ff();let _0x272ff6=_0x49ff7a[_0x144573];return _0x272ff6;}function qe(_0x21aa4b,_0xc7ecca,_0x7dfd2a){const _0x1510f5=_0x1d39a3;var _0x2ccf57;let _0x19bbeb=Math[_0x1510f5(0x118)](_0xc7ecca,_0x7dfd2a),_0x126fb5=Math[_0x1510f5(0xe0)](_0xc7ecca,_0x7dfd2a);return!!((_0x2ccf57=_0x21aa4b[_0x1510f5(0x12a)])!=null&&_0x2ccf57[_0x1510f5(0xcd)](_0x1a459a=>_0x19bbeb>_0x1a459a['startIndex']&&_0x19bbeb<_0x1a459a[_0x1510f5(0x115)]||_0x126fb5>_0x1a459a[_0x1510f5(0xab)]&&_0x126fb5<_0x1a459a[_0x1510f5(0x115)]||_0x19bbeb<=_0x1a459a[_0x1510f5(0xab)]&&_0x126fb5>=_0x1a459a['endIndex']));}function Je(_0x5f14ab,_0x41ea76,_0x2b1e4e,_0xfb6b8e){const _0x575d21=_0x1d39a3;let _0x163e4f=[..._0x5f14ab[_0x575d21(0x12f)]??[]][_0x575d21(0x129)]((_0x2a08e4,_0x4c0461)=>_0x2a08e4['startIndex']-_0x4c0461[_0x575d21(0xab)]),_0x1c625c=_0x31f66b(_0x5f14ab),_0x30089e=_0x163e4f[_0x575d21(0x94)](_0x3d3008=>j(_0x5f14ab,_0x3d3008,_0xfb6b8e,_0x1c625c)<=_0x41ea76&&_0x41ea76<=_0x3d3008[_0x575d21(0xab)]),_0x22546d=_0x163e4f[_0x575d21(0x94)](_0x445e2b=>_0x445e2b[_0x575d21(0xab)]>=_0x2b1e4e-0x1)??_0x163e4f[_0x163e4f[_0x575d21(0x123)]-0x1];return{'startOffset':_0x30089e?j(_0x5f14ab,_0x30089e,_0xfb6b8e,_0x1c625c):_0x41ea76,'endOffset':_0x22546d?Xe(_0x22546d,_0xfb6b8e):_0x2b1e4e};}function Ye(_0x1d3d6f,_0x503be9){const _0x454807=_0x1d39a3;let _0x50798a=[..._0x1d3d6f[_0x454807(0x12f)]??[]][_0x454807(0x129)]((_0xa2d187,_0x54754e)=>_0xa2d187[_0x454807(0xab)]-_0x54754e[_0x454807(0xab)]),_0x36b58b=_0x31f66b(_0x1d3d6f);return _0x50798a['find'](_0x1c8ce5=>(_0x36b58b[_0x454807(0xff)](_0x1c8ce5[_0x454807(0xab)])??0x0)<=_0x503be9&&_0x503be9<=_0x1c8ce5[_0x454807(0xab)]);}function j(_0x9e7ac2,_0x1d2816,_0x109890,_0x3f5631){const _0xd290a8=_0x1d39a3;let _0x478232=(_0x3f5631==null?void 0x0:_0x3f5631[_0xd290a8(0xff)](_0x1d2816[_0xd290a8(0xab)]))??_0x25a2c0(_0x9e7ac2,_0x1d2816);return _0x109890?Math[_0xd290a8(0xe0)](_0x478232,_0x109890[_0xd290a8(0xd9)]):_0x478232;}function Xe(_0x2d637e,_0x2093d7){const _0x48d575=_0x1d39a3;let _0x4b848b=_0x2d637e[_0x48d575(0xab)]+0x1;return _0x2093d7?Math[_0x48d575(0x118)](_0x4b848b,_0x2093d7[_0x48d575(0xf3)]):_0x4b848b;}function Ze(_0x5610f2,_0x90f61b,_0x192f6d){const _0x498ec4=_0x1d39a3;let _0x1fb4a3=Qe(_0x5610f2,_0x90f61b),_0xf1d8b3=Qe(_0x5610f2,_0x90f61b===_0x192f6d?_0x192f6d:Math[_0x498ec4(0xe0)](_0x90f61b,_0x192f6d-0x1));if(_0x1fb4a3||_0xf1d8b3){if(!_0x1fb4a3||!_0xf1d8b3||_0x1fb4a3[_0x498ec4(0x12d)]!==_0xf1d8b3['startTokenOffset']||_0x1fb4a3[_0x498ec4(0x11a)]!==_0xf1d8b3[_0x498ec4(0x11a)])throw new E();return _0x1fb4a3;}}function Qe(_0x44ad9f,_0x2a298a){const _0x255e53=_0x1d39a3;let _0x543154=_0x44ad9f[_0x255e53(0x103)],_0x1328a6=-0x1;for(let _0x1c5fe7=Math['min'](_0x2a298a,_0x543154['length']-0x1);_0x1c5fe7>=0x0;_0x1c5fe7--){let _0x53c1a3=_0x543154[_0x1c5fe7];if(_0x53c1a3===_0x2c3576[_0x255e53(0xe2)])return;if(_0x53c1a3===_0x2c3576[_0x255e53(0xb1)]){_0x1328a6=_0x1c5fe7;break;}}if(_0x1328a6<0x0)return;let _0x534a93=_0x543154[_0x255e53(0xa5)](_0x2c3576[_0x255e53(0xe2)],_0x1328a6+0x1);if(!(_0x534a93<0x0||_0x2a298a<_0x1328a6+0x1||_0x2a298a>_0x534a93-0x1))return{'startOffset':_0x1328a6+0x1,'endOffset':Math[_0x255e53(0xe0)](_0x1328a6+0x1,_0x534a93-0x1),'startTokenOffset':_0x1328a6,'endTokenOffset':_0x534a93};}function M(_0x2cf719){return _0x537bc1(_0x2cf719)['endOffset']-0x1;}function $e(_0x5d2135,_0x86e97a,_0x3c237f,_0x282aee){const _0x50f4f6=_0x1d39a3;let _0x2b3bf5=M(_0x86e97a),_0x3997e7=(_0x5d2135['paragraphs']??[])[_0x50f4f6(0x94)](_0x2d0029=>_0x2d0029[_0x50f4f6(0xab)]===_0x2b3bf5+0x1);if(!_0x3997e7||_0x282aee!=null&&_0x3997e7[_0x50f4f6(0xab)]!==_0x282aee||_0x3c237f!=null&&(_0x3c237f<_0x2b3bf5||_0x3c237f>_0x3997e7['startIndex']+0x1)||_0x5d2135[_0x50f4f6(0x103)][_0x3997e7[_0x50f4f6(0xab)]]!==_0x2c3576['PARAGRAPH'])return null;let _0x5db034=_0x25a2c0(_0x5d2135,_0x3997e7),_0x35e7ab=_0x5d2135[_0x50f4f6(0x103)][_0x50f4f6(0xa0)](_0x5db034,_0x3997e7[_0x50f4f6(0xab)]);return Array[_0x50f4f6(0xf1)](_0x35e7ab)[_0x50f4f6(0xf6)](_0x2f4d98=>_0x2f4d98===_0x2c3576[_0x50f4f6(0xf5)])?{'paragraph':_0x3997e7,'endTokenOffset':_0x2b3bf5}:null;}function N(_0x56a2fd,_0x1b5443){const _0xe6fe54=_0x1d39a3;var _0x59afbd;let _0x1fffcc=M(_0x1b5443),_0x46839f=_0x56a2fd[_0xe6fe54(0x103)][_0x1fffcc+0x1];(_0x46839f===_0x2c3576[_0xe6fe54(0xb2)]||_0x46839f===void 0x0)&&P(_0x56a2fd,_0x1fffcc+0x1,_0x2c3576[_0xe6fe54(0x11f)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x261bf9(new Set((_0x59afbd=_0x56a2fd['paragraphs'])==null?void 0x0:_0x59afbd[_0xe6fe54(0xbb)](_0x4b36f4=>_0x4b36f4[_0xe6fe54(0xd2)])))}]});}function P(_0x5de80a,_0x86fa1a,_0x13ea29,_0x4670f2={}){const _0x54726e=_0x1d39a3;var _0x4a0b46,_0x17a453;_0x13ea29&&(_0x5de80a['dataStream']=''+_0x5de80a['dataStream'][_0x54726e(0xa0)](0x0,_0x86fa1a)+_0x13ea29+_0x5de80a[_0x54726e(0x103)][_0x54726e(0xa0)](_0x86fa1a),et(_0x5de80a,_0x86fa1a,_0x13ea29[_0x54726e(0x123)]),(_0x4a0b46=_0x4670f2[_0x54726e(0x12f)])!=null&&_0x4a0b46[_0x54726e(0x123)]&&(_0x5de80a[_0x54726e(0x12f)]=[..._0x5de80a[_0x54726e(0x12f)]??[],..._0x4670f2[_0x54726e(0x12f)]['map'](_0x16e87a=>({..._0x16e87a,'startIndex':_0x16e87a[_0x54726e(0xab)]+_0x86fa1a}))][_0x54726e(0x129)]((_0x1b4e11,_0x4c2bc5)=>_0x1b4e11[_0x54726e(0xab)]-_0x4c2bc5[_0x54726e(0xab)])),(_0x17a453=_0x4670f2[_0x54726e(0x11d)])!=null&&_0x17a453[_0x54726e(0x123)]&&(_0x5de80a['blockRanges']=[..._0x5de80a[_0x54726e(0x11d)]??[],..._0x4670f2[_0x54726e(0x11d)]['map'](_0x4a8130=>({..._0x4a8130,'startIndex':_0x4a8130[_0x54726e(0xab)]+_0x86fa1a,'endIndex':_0x4a8130['endIndex']+_0x86fa1a}))]['sort']((_0x341ccf,_0x3a8732)=>_0x341ccf[_0x54726e(0xab)]-_0x3a8732['startIndex'])));}function F(_0x2e4b48,_0x2c9376,_0x5866db){const _0x11ce66=_0x1d39a3;let _0x34cc06=_0x5866db-_0x2c9376;_0x2e4b48[_0x11ce66(0x103)]=''+_0x2e4b48[_0x11ce66(0x103)][_0x11ce66(0xa0)](0x0,_0x2c9376)+_0x2e4b48['dataStream'][_0x11ce66(0xa0)](_0x5866db),tt(_0x2e4b48,_0x2c9376,_0x34cc06);}function et(_0x13ba3d,_0x5a26db,_0x139aaf){const _0x2c4f07=_0x1d39a3;_0x13ba3d[_0x2c4f07(0x12f)]=I(_0x13ba3d['paragraphs'],_0x5a26db,_0x139aaf),_0x13ba3d['sectionBreaks']=I(_0x13ba3d[_0x2c4f07(0xbe)],_0x5a26db,_0x139aaf),_0x13ba3d[_0x2c4f07(0xe8)]=I(_0x13ba3d[_0x2c4f07(0xe8)],_0x5a26db,_0x139aaf),_0x13ba3d[_0x2c4f07(0x116)]=nt(_0x13ba3d[_0x2c4f07(0x116)],_0x5a26db,_0x139aaf),_0x13ba3d[_0x2c4f07(0x12a)]=rt(_0x13ba3d[_0x2c4f07(0x12a)],_0x5a26db,_0x139aaf),_0x13ba3d[_0x2c4f07(0xd0)]=R(_0x13ba3d[_0x2c4f07(0xd0)],_0x5a26db,_0x139aaf),_0x13ba3d['customRanges']=R(_0x13ba3d[_0x2c4f07(0x10a)],_0x5a26db,_0x139aaf),_0x13ba3d[_0x2c4f07(0xfd)]=R(_0x13ba3d[_0x2c4f07(0xfd)],_0x5a26db,_0x139aaf),_0x13ba3d[_0x2c4f07(0x11d)]=R(_0x13ba3d[_0x2c4f07(0x11d)],_0x5a26db,_0x139aaf);}function tt(_0x4b7e87,_0x330233,_0x1298cc){const _0x13ef81=_0x1d39a3;var _0x4e21d3,_0x27cfb0;_0x4b7e87[_0x13ef81(0x12f)]=L(_0x4b7e87[_0x13ef81(0x12f)],_0x330233,_0x1298cc),_0x4b7e87[_0x13ef81(0xbe)]=L(_0x4b7e87[_0x13ef81(0xbe)],_0x330233,_0x1298cc),_0x4b7e87[_0x13ef81(0xe8)]=L(_0x4b7e87[_0x13ef81(0xe8)],_0x330233,_0x1298cc),_0x4b7e87[_0x13ef81(0x116)]=(_0x4e21d3=it((_0x27cfb0=_0x4b7e87[_0x13ef81(0x116)])==null?void 0x0:_0x27cfb0[_0x13ef81(0xbb)](_0x5ee604=>({..._0x5ee604,'startIndex':_0x5ee604['st'],'endIndex':_0x5ee604['ed']})),_0x330233,_0x1298cc))==null?void 0x0:_0x4e21d3[_0x13ef81(0xbb)](_0x51c6fd=>{let {startIndex:_0x162898,endIndex:_0x5d743a,..._0x3fc190}=_0x51c6fd;return{..._0x3fc190,'st':_0x162898,'ed':_0x5d743a};}),_0x4b7e87[_0x13ef81(0x12a)]=it(_0x4b7e87['tables'],_0x330233,_0x1298cc),_0x4b7e87[_0x13ef81(0xd0)]=z(_0x4b7e87[_0x13ef81(0xd0)],_0x330233,_0x1298cc),_0x4b7e87[_0x13ef81(0x10a)]=z(_0x4b7e87[_0x13ef81(0x10a)],_0x330233,_0x1298cc),_0x4b7e87[_0x13ef81(0xfd)]=z(_0x4b7e87[_0x13ef81(0xfd)],_0x330233,_0x1298cc),_0x4b7e87['blockRanges']=z(_0x4b7e87[_0x13ef81(0x11d)],_0x330233,_0x1298cc);}function I(_0x26de38,_0x2239e9,_0x3788ec){const _0x198868=_0x1d39a3;return _0x26de38==null?void 0x0:_0x26de38['map'](_0xc488c4=>_0xc488c4[_0x198868(0xab)]>=_0x2239e9?{..._0xc488c4,'startIndex':_0xc488c4['startIndex']+_0x3788ec}:_0xc488c4);}function L(_0x169da1,_0x2e5060,_0x251e4e){const _0x4ce519=_0x1d39a3;let _0x49ad4f=_0x2e5060+_0x251e4e;return _0x169da1==null?void 0x0:_0x169da1[_0x4ce519(0xbb)](_0x514ca2=>_0x514ca2[_0x4ce519(0xab)]>=_0x2e5060&&_0x514ca2[_0x4ce519(0xab)]<_0x49ad4f?null:_0x514ca2[_0x4ce519(0xab)]>=_0x49ad4f?{..._0x514ca2,'startIndex':_0x514ca2['startIndex']-_0x251e4e}:_0x514ca2)[_0x4ce519(0xcf)](_0x272232=>_0x272232!=null);}function nt(_0x4a6d5e,_0x1e9fda,_0x113388){const _0x1b680d=_0x1d39a3;return _0x4a6d5e==null?void 0x0:_0x4a6d5e[_0x1b680d(0xbb)](_0x2db297=>_0x2db297['st']>=_0x1e9fda?{..._0x2db297,'st':_0x2db297['st']+_0x113388,'ed':_0x2db297['ed']+_0x113388}:_0x2db297['ed']>_0x1e9fda?{..._0x2db297,'ed':_0x2db297['ed']+_0x113388}:_0x2db297);}function R(_0x59e75a,_0x117f9e,_0x36ef0f){const _0x82256b=_0x1d39a3;return _0x59e75a==null?void 0x0:_0x59e75a[_0x82256b(0xbb)](_0x33a08e=>_0x3ff03c(_0x33a08e,_0x117f9e,_0x36ef0f));}function rt(_0x5eed66,_0x2c8add,_0x455fcd){const _0x99766c=_0x1d39a3;return _0x5eed66==null?void 0x0:_0x5eed66[_0x99766c(0xbb)](_0x91f734=>_0x254835(_0x91f734,_0x2c8add,_0x455fcd));}function z(_0x514046,_0x3703d9,_0x158176){const _0x2c1e4d=_0x1d39a3;return _0x514046==null?void 0x0:_0x514046[_0x2c1e4d(0xbb)](_0x5465e6=>_0x321717(_0x5465e6,_0x3703d9,_0x158176))['filter'](_0x423fa9=>_0x423fa9!=null);}function it(_0x4af05a,_0x439a52,_0x3aba2a){const _0x2387a9=_0x1d39a3;return _0x4af05a==null?void 0x0:_0x4af05a[_0x2387a9(0xbb)](_0x235ae1=>_0x45258e(_0x235ae1,_0x439a52,_0x3aba2a))[_0x2387a9(0xcf)](_0xb49a45=>_0xb49a45!=null);}const at={'id':_0x1d39a3(0x132),'type':_0x2dace9['COMMAND'],'handler':_0x2f9443=>{const _0x4c641f=_0x1d39a3;var _0x6bd8bc;if(_0x431f27(G(_0x2f9443)))return!0x1;let _0x392dc0=_0x4d271c(_0x2f9443);if(_0x392dc0)return _0x2f9443[_0x4c641f(0xff)](_0x2175d5)['syncExecuteCommand'](B['id'],{'startOffset':_0x392dc0['startOffset'],'endOffset':_0x392dc0[_0x4c641f(0xf3)],'insertionMode':_0x4c641f(0xb7),'unitId':_0x392dc0[_0x4c641f(0x110)]});let _0x16d3cb=ft(_0x2f9443);if(!_0x16d3cb)return!0x1;let _0x281c4b=(_0x6bd8bc=_0x2f9443[_0x4c641f(0xff)](_0x765ea0)[_0x4c641f(0xd4)](_0x2efd60[_0x4c641f(0x117)]))==null?void 0x0:_0x6bd8bc[_0x4c641f(0x99)](),_0x343e8e=_0x281c4b?_0x5e906d(_0x281c4b,_0x16d3cb):_0x16d3cb[_0x4c641f(0xab)]+0x1;return _0x2f9443[_0x4c641f(0xff)](_0x2175d5)[_0x4c641f(0x10d)](B['id'],{'startOffset':_0x343e8e,'endOffset':_0x343e8e});}},ot={'id':_0x1d39a3(0x127),'type':_0x2dace9[_0x1d39a3(0x90)],'handler':()=>!0x0},B={'id':_0x1d39a3(0xb3),'type':_0x2dace9[_0x1d39a3(0x90)],'handler':(_0x1a6396,_0x198014)=>{const _0xc6938f=_0x1d39a3;let _0x339e62=W(_0x1a6396,_0x198014==null?void 0x0:_0x198014['unitId']);if(!_0x339e62)return!0x1;let _0x5f353b=G(_0x1a6396);if(_0x431f27(_0x5f353b))return!0x1;let _0x591b09=_0x339e62['model'][_0xc6938f(0xfa)](_0x339e62[_0xc6938f(0x110)]),_0x43f7ba=lt(_0x198014,_0x5f353b),_0x279d30=ut(_0x339e62[_0xc6938f(0xb0)],_0x43f7ba);if(_0x279d30){if(_0x279d30[_0xc6938f(0x12b)]!==_0x5beae4[_0xc6938f(0x9f)])return!0x1;let _0x4685f4=D({'blockId':_0x279d30[_0xc6938f(0x108)],'documentData':_0x339e62[_0xc6938f(0xb0)],'metadata':_0x591b09});if(!_0x4685f4)return!0x1;let _0x4b730d=Y(_0x339e62[_0xc6938f(0x114)],_0x339e62[_0xc6938f(0xde)],_0x339e62['unitId'],_0x339e62[_0xc6938f(0xb0)],_0x4685f4[_0xc6938f(0xc4)],B['id'],_0x4685f4[_0xc6938f(0xc9)]);return _0x4b730d&&_0x4685f4['nextMetadata']&&_0x339e62[_0xc6938f(0xb8)][_0xc6938f(0xae)](_0x339e62[_0xc6938f(0x110)],_0x4685f4[_0xc6938f(0x121)]),_0x4b730d;}let _0x1c0917=(_0x198014==null?void 0x0:_0x198014[_0xc6938f(0x108)])??_0x395744(0x6),_0x81399a;try{_0x81399a=De({'blockId':_0x1c0917,'config':_0x198014==null?void 0x0:_0x198014['config'],'documentData':_0x339e62[_0xc6938f(0xb0)],'endOffset':_0x43f7ba==null?void 0x0:_0x43f7ba[_0xc6938f(0xf3)],'insertionMode':_0x198014==null?void 0x0:_0x198014[_0xc6938f(0x128)],'metadata':_0x591b09,'startOffset':_0x43f7ba==null?void 0x0:_0x43f7ba[_0xc6938f(0xd9)]});}catch(_0x487558){if(_0x487558 instanceof E)return!0x1;throw _0x487558;}let _0x4944af=Y(_0x339e62['commandService'],_0x339e62[_0xc6938f(0xde)],_0x339e62[_0xc6938f(0x110)],_0x339e62['previousDocumentData'],_0x81399a[_0xc6938f(0xc4)],B['id'],_0x81399a[_0xc6938f(0xc9)]);return _0x4944af&&_0x81399a[_0xc6938f(0x121)]&&_0x339e62['model']['deserialize'](_0x339e62[_0xc6938f(0x110)],_0x81399a[_0xc6938f(0x121)]),_0x4944af;}},st={'id':'docs-code.command.update','type':_0x2dace9[_0x1d39a3(0x90)],'handler':(_0x2cdbeb,_0x38b820)=>{const _0x370bcd=_0x1d39a3;if(!_0x38b820)return!0x1;let _0x4140a2=W(_0x2cdbeb,_0x38b820[_0x370bcd(0x110)]);if(!_0x4140a2)return!0x1;let _0x5af458=je({'blockId':_0x38b820['blockId'],'config':_0x38b820[_0x370bcd(0x104)],'documentData':_0x4140a2[_0x370bcd(0xb0)],'metadata':_0x4140a2[_0x370bcd(0xb8)][_0x370bcd(0xfa)](_0x4140a2[_0x370bcd(0x110)])});return _0x5af458[_0x370bcd(0x121)]&&_0x4140a2[_0x370bcd(0xb8)][_0x370bcd(0xae)](_0x4140a2[_0x370bcd(0x110)],_0x5af458[_0x370bcd(0x121)]),!0x0;}},ct={'id':_0x1d39a3(0xea),'type':_0x2dace9['COMMAND'],'handler':(_0x1ef13f,_0xc7a15f)=>V[_0x1d39a3(0x119)](_0x1ef13f,_0xc7a15f)},V={'id':_0x1d39a3(0xee),'type':_0x2dace9[_0x1d39a3(0x90)],'handler':(_0x401f69,_0x3b0112)=>{const _0x148213=_0x1d39a3;if(!_0x3b0112)return!0x1;let _0x51903d=W(_0x401f69,_0x3b0112==null?void 0x0:_0x3b0112[_0x148213(0x110)]);if(!_0x51903d)return!0x1;let _0x1d8591=D({'blockId':_0x3b0112[_0x148213(0x108)],'documentData':_0x51903d[_0x148213(0xb0)],'metadata':_0x51903d[_0x148213(0xb8)][_0x148213(0xfa)](_0x51903d[_0x148213(0x110)])});if(!_0x1d8591)return!0x1;let _0x38b609=Y(_0x51903d[_0x148213(0x114)],_0x51903d['selectionManager'],_0x51903d[_0x148213(0x110)],_0x51903d[_0x148213(0xb0)],_0x1d8591[_0x148213(0xc4)],V['id'],_0x1d8591[_0x148213(0xc9)]);return _0x38b609&&_0x1d8591[_0x148213(0x121)]&&_0x51903d[_0x148213(0xb8)]['deserialize'](_0x51903d[_0x148213(0x110)],_0x1d8591[_0x148213(0x121)]),_0x38b609;}},H={'id':_0x1d39a3(0x11b),'type':_0x2dace9[_0x1d39a3(0x90)],'handler':(_0x10208d,_0x4b6ffa)=>{const _0x33cd7e=_0x1d39a3;if(!_0x4b6ffa)return!0x1;let _0x43a6a6=W(_0x10208d,_0x4b6ffa==null?void 0x0:_0x4b6ffa[_0x33cd7e(0x110)]);if(!_0x43a6a6)return!0x1;let _0x22f389=Me({'blockId':_0x4b6ffa[_0x33cd7e(0x108)],'documentData':_0x43a6a6[_0x33cd7e(0xb0)],'metadata':_0x43a6a6[_0x33cd7e(0xb8)]['serialize'](_0x43a6a6[_0x33cd7e(0x110)])});if(!_0x22f389)return!0x1;let _0x311ae6=Y(_0x43a6a6[_0x33cd7e(0x114)],_0x43a6a6['selectionManager'],_0x43a6a6['unitId'],_0x43a6a6[_0x33cd7e(0xb0)],_0x22f389[_0x33cd7e(0xc4)],H['id'],_0x22f389[_0x33cd7e(0xc9)]);return _0x311ae6&&_0x22f389[_0x33cd7e(0x121)]&&_0x43a6a6[_0x33cd7e(0xb8)][_0x33cd7e(0xae)](_0x43a6a6[_0x33cd7e(0x110)],_0x22f389[_0x33cd7e(0x121)]),_0x311ae6;}},U={'id':_0x1d39a3(0xd5),'type':_0x2dace9[_0x1d39a3(0x90)],'handler':(_0xbbdac7,_0x3c41f3)=>{const _0xb9a3f2=_0x1d39a3;var _0xbf4b12;let _0x13a1d9=W(_0xbbdac7,_0x3c41f3==null?void 0x0:_0x3c41f3[_0xb9a3f2(0x110)]);if(!_0x13a1d9)return!0x1;let _0x4b3946=(_0x3c41f3==null?void 0x0:_0x3c41f3[_0xb9a3f2(0xc9)])??((_0xbf4b12=G(_0xbbdac7))==null?void 0x0:_0xbf4b12['startOffset']);if(_0x4b3946==null)return!0x1;let _0x568263=Ne({'cursorOffset':_0x4b3946,'documentData':_0x13a1d9[_0xb9a3f2(0xb0)],'paragraphStartIndex':_0x3c41f3==null?void 0x0:_0x3c41f3[_0xb9a3f2(0x93)]});return _0x568263?Y(_0x13a1d9['commandService'],_0x13a1d9['selectionManager'],_0x13a1d9['unitId'],_0x13a1d9['previousDocumentData'],_0x568263['nextDocumentData'],U['id'],_0x568263[_0xb9a3f2(0xc9)]):!0x1;}};function W(_0x3e3d73,_0x3425b4){const _0xbc1999=_0x1d39a3;let _0x126b81=_0x3e3d73[_0xbc1999(0xff)](_0x765ea0),_0x249ecd=_0x3425b4?_0x126b81[_0xbc1999(0xfc)](_0x3425b4,_0x2efd60[_0xbc1999(0x117)]):_0x126b81[_0xbc1999(0xd4)](_0x2efd60[_0xbc1999(0x117)]);return _0x249ecd?{'commandService':_0x3e3d73[_0xbc1999(0xff)](_0x2175d5),'model':_0x3e3d73['get'](w),'previousDocumentData':_0x249ecd[_0xbc1999(0xf4)](),'selectionManager':_0x3e3d73[_0xbc1999(0xff)](_0x5cac0c),'unitId':_0x249ecd[_0xbc1999(0xa2)]()}:null;}function G(_0x94b7d6){const _0x147955=_0x1d39a3;var _0x279b3b;return(_0x279b3b=_0x94b7d6[_0x147955(0xff)](_0x5cac0c)['getTextRanges']())==null?void 0x0:_0x279b3b[0x0];}function lt(_0x2a5d5f,_0x56d694){const _0x3b447c=_0x1d39a3;let _0x17d60c=(_0x2a5d5f==null?void 0x0:_0x2a5d5f[_0x3b447c(0xd9)])??(_0x56d694==null?void 0x0:_0x56d694[_0x3b447c(0xd9)]),_0x313724=(_0x2a5d5f==null?void 0x0:_0x2a5d5f['endOffset'])??(_0x56d694==null?void 0x0:_0x56d694[_0x3b447c(0xf3)]);if(_0x17d60c!=null&&_0x313724!=null)return{'endOffset':Math[_0x3b447c(0xe0)](_0x17d60c,_0x313724),'startOffset':Math[_0x3b447c(0x118)](_0x17d60c,_0x313724)};}function ut(_0x59ed27,_0x34deee){const _0x49f10b=_0x1d39a3;var _0x3417f7;if(!_0x34deee)return;let _0x2624a2=dt(_0x34deee);return(_0x3417f7=_0x59ed27[_0x49f10b(0x95)])==null||(_0x3417f7=_0x3417f7[_0x49f10b(0x11d)])==null?void 0x0:_0x3417f7[_0x49f10b(0x94)](_0x1b881a=>{const _0x567b34=_0x49f10b;let _0x5898a7=_0x537bc1(_0x1b881a);return _0x34deee[_0x567b34(0xd9)]===_0x34deee[_0x567b34(0xf3)]?_0xd5ec9e(_0x5898a7,_0x2624a2):_0x479b09(_0x5898a7,_0x2624a2);});}function dt(_0x4c58a2){const _0x35b52f=_0x1d39a3;return _0x4c58a2[_0x35b52f(0xd9)]===_0x4c58a2[_0x35b52f(0xf3)]?_0x4c58a2[_0x35b52f(0xd9)]:_0x4c58a2[_0x35b52f(0xd9)]+0x1;}function ft(_0x300569){const _0x522762=_0x1d39a3;let _0x491c7e=G(_0x300569);if(!_0x491c7e)return null;let _0x14a6a5=_0x300569['get'](_0x765ea0)[_0x522762(0xd4)](_0x2efd60[_0x522762(0x117)]),_0x56a9ef=_0x14a6a5==null?void 0x0:_0x14a6a5[_0x522762(0x99)]();return _0x56a9ef?_0x59526f[_0x522762(0xa1)][_0x522762(0xa3)](_0x491c7e,_0x56a9ef[_0x522762(0x12f)]??[],_0x56a9ef[_0x522762(0x103)]??'')[0x0]??null:null;}function pt(_0x2e914b,_0x2700e8){const _0x5a6f3a=_0x1d39a3;let _0x478c5e=_0x2e914b[_0x5a6f3a(0x95)],_0x2e4391=_0x2700e8['body'],_0x20649d=_0xe39f3e(_0x478c5e,_0x2e4391);return[_0x20649d&&_0x2e4391?mt(_0x2e4391,_0x20649d):null,_0x20649d?null:ht(_0x478c5e,_0x2e4391)][_0x5a6f3a(0xcf)](Boolean)[_0x5a6f3a(0x10f)]((_0x2b9f95,_0xf0a4e5)=>_0x7839c8[_0x5a6f3a(0xd1)](_0x2b9f95,_0xf0a4e5),null);}function mt(_0x133133,_0x19722d){const _0x11e08e=_0x1d39a3;let _0x321c00=new _0x5aed02();return _0x321c00[_0x11e08e(0x133)](_0x19722d[_0x11e08e(0xc5)]),_0x19722d['insertLength']>0x0&&_0x321c00[_0x11e08e(0x120)](_0x19722d['insertLength'],_0xe7c155(_0x133133,_0x19722d[_0x11e08e(0xc5)],_0x19722d[_0x11e08e(0xc5)]+_0x19722d[_0x11e08e(0x131)],!0x1)),_0x19722d[_0x11e08e(0x113)]>0x0&&_0x321c00[_0x11e08e(0x9c)](_0x19722d[_0x11e08e(0x113)]),_0x7839c8[_0x11e08e(0xdf)]()['editOp'](_0x321c00[_0x11e08e(0xfa)](),[_0x11e08e(0x95)]);}function ht(_0x330350,_0x52192){const _0x45797c=_0x1d39a3;let _0x2daf9e=[],_0x517535=_0x330350?_t(_0x330350):void 0x0,_0xc3a143=_0x52192?_t(_0x52192):void 0x0;for(let _0x274b79 of gt)K(_0x7839c8[_0x45797c(0xdf)](),[_0x45797c(0x95),_0x274b79],_0x517535==null?void 0x0:_0x517535[_0x274b79],_0xc3a143==null?void 0x0:_0xc3a143[_0x274b79],_0x2daf9e);return _0x2daf9e[_0x45797c(0x10f)]((_0x1831a8,_0x3796f4)=>_0x7839c8[_0x45797c(0xd1)](_0x1831a8,_0x3796f4),null);}const gt=['paragraphs','sectionBreaks',_0x1d39a3(0x12a),'columnGroups',_0x1d39a3(0x11d),_0x1d39a3(0xe8),'customRanges',_0x1d39a3(0xfd),_0x1d39a3(0x116)];function _t(_0x59c0c8){return _0x59c0c8;}function K(_0x1a2b01,_0x2e6cf0,_0xd1d390,_0x23fca7,_0x1065cc){const _0x5831f1=_0x1d39a3;J(_0xd1d390,_0x23fca7)||(_0xd1d390==null?_0x1065cc[_0x5831f1(0xe4)](_0x1a2b01['insertOp'](_0x2e6cf0,_0x23fca7)):_0x23fca7==null?_0x1065cc[_0x5831f1(0xe4)](_0x1a2b01['removeOp'](_0x2e6cf0,_0xd1d390)):Array[_0x5831f1(0x124)](_0xd1d390)&&Array[_0x5831f1(0x124)](_0x23fca7)?vt(_0x1a2b01,_0x2e6cf0,_0xd1d390,_0x23fca7,_0x1065cc):q(_0xd1d390)&&q(_0x23fca7)?new Set([...Object[_0x5831f1(0xd6)](_0xd1d390),...Object[_0x5831f1(0xd6)](_0x23fca7)])[_0x5831f1(0xec)](_0x3b9ac8=>{K(_0x1a2b01,[..._0x2e6cf0,_0x3b9ac8],_0xd1d390[_0x3b9ac8],_0x23fca7[_0x3b9ac8],_0x1065cc);}):_0x1065cc[_0x5831f1(0xe4)](_0x1a2b01[_0x5831f1(0xb9)](_0x2e6cf0,_0xd1d390,_0x23fca7)));}function vt(_0x525ed3,_0x5c0c4a,_0x40b683,_0x2cdca9,_0x146932){const _0x579410=_0x1d39a3;if(_0x40b683[_0x579410(0x123)]===_0x2cdca9['length']){_0x40b683[_0x579410(0xec)]((_0x1bbba7,_0x4d91cd)=>K(_0x525ed3,[..._0x5c0c4a,_0x4d91cd],_0x1bbba7,_0x2cdca9[_0x4d91cd],_0x146932));return;}let _0x445c13=0x0;for(;_0x445c13<_0x40b683[_0x579410(0x123)]&&_0x445c13<_0x2cdca9[_0x579410(0x123)]&&J(_0x40b683[_0x445c13],_0x2cdca9[_0x445c13]);)_0x445c13++;let _0x4368a1=_0x40b683[_0x579410(0x123)]-0x1,_0x2a77af=_0x2cdca9[_0x579410(0x123)]-0x1;for(;_0x4368a1>=_0x445c13&&_0x2a77af>=_0x445c13&&J(_0x40b683[_0x4368a1],_0x2cdca9[_0x2a77af]);)_0x4368a1--,_0x2a77af--;for(let _0x1fe78f=_0x4368a1;_0x1fe78f>=_0x445c13;_0x1fe78f--)_0x146932[_0x579410(0xe4)](_0x525ed3[_0x579410(0x9a)]([..._0x5c0c4a,_0x1fe78f],_0x40b683[_0x1fe78f]));for(let _0x12db73=_0x445c13;_0x12db73<=_0x2a77af;_0x12db73++)_0x146932[_0x579410(0xe4)](_0x525ed3[_0x579410(0xe6)]([..._0x5c0c4a,_0x12db73],_0x2cdca9[_0x12db73]));}function q(_0x11f6f8){const _0x511962=_0x1d39a3;return typeof _0x11f6f8==_0x511962(0xc8)&&!!_0x11f6f8&&!Array[_0x511962(0x124)](_0x11f6f8);}function J(_0x1fcbad,_0x44a9e6){const _0x551ec1=_0x1d39a3;return JSON[_0x551ec1(0xb6)](_0x1fcbad)===JSON[_0x551ec1(0xb6)](_0x44a9e6);}function Y(_0x1094a6,_0x5a2384,_0x39770b,_0x3090c7,_0xe3d61f,_0xbf89a6,_0x3a0a83){const _0x5b47fa=_0x1d39a3;let _0x596238=pt(_0x3090c7,_0xe3d61f);return _0x596238?!!_0x1094a6[_0x5b47fa(0x10d)](_0x40ade1['id'],{'unitId':_0x39770b,'actions':_0x596238,'textRanges':[{'startOffset':_0x3a0a83,'endOffset':_0x3a0a83,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0xbf89a6}):(_0x5a2384[_0x5b47fa(0xad)]([{'startOffset':_0x3a0a83,'endOffset':_0x3a0a83}],{'unitId':_0x39770b,'subUnitId':_0x39770b},!0x1),!0x0);}const X='DOC_CODE_PLUGIN';var yt=_0x1d39a3(0xf2),bt=_0x1d39a3(0xb5);const xt={};function Z(_0x355171,_0x142ea6){return function(_0x51f935,_0x33b3e6){_0x142ea6(_0x51f935,_0x33b3e6,_0x355171);};}function St(_0x1135ae,_0x286772,_0x9d985e,_0x43121c){const _0x2efc51=_0x1d39a3;var _0x5b04b6=arguments['length'],_0x10f24d=_0x5b04b6<0x3?_0x286772:_0x43121c===null?_0x43121c=Object['getOwnPropertyDescriptor'](_0x286772,_0x9d985e):_0x43121c,_0x2aa894;if(typeof Reflect==_0x2efc51(0xc8)&&typeof Reflect[_0x2efc51(0xdc)]==_0x2efc51(0x111))_0x10f24d=Reflect['decorate'](_0x1135ae,_0x286772,_0x9d985e,_0x43121c);else{for(var _0x2b199e=_0x1135ae[_0x2efc51(0x123)]-0x1;_0x2b199e>=0x0;_0x2b199e--)(_0x2aa894=_0x1135ae[_0x2b199e])&&(_0x10f24d=(_0x5b04b6<0x3?_0x2aa894(_0x10f24d):_0x5b04b6>0x3?_0x2aa894(_0x286772,_0x9d985e,_0x10f24d):_0x2aa894(_0x286772,_0x9d985e))||_0x10f24d);}return _0x5b04b6>0x3&&_0x10f24d&&Object['defineProperty'](_0x286772,_0x9d985e,_0x10f24d),_0x10f24d;}let Q=class extends _0x4e5cf1{constructor(_0xaba631,_0x18df63){const _0x5e2edc=_0x1d39a3;super(),this[_0x5e2edc(0xf9)]=_0xaba631,this[_0x5e2edc(0xbc)]=_0x18df63,this[_0x5e2edc(0xd7)]();}['_initResource'](){const _0x19bd2e=_0x1d39a3;this['disposeWithMe'](this['_resourceManagerService']['registerPluginResource']({'pluginName':X,'businesses':[_0x2efd60[_0x19bd2e(0x117)]],'toJson':_0x5673fa=>JSON[_0x19bd2e(0xb6)](this[_0x19bd2e(0xbc)][_0x19bd2e(0xfa)](_0x5673fa)),'parseJson':_0x1398f2=>y(JSON['parse'](_0x1398f2)),'onLoad':(_0x405617,_0x4e955d)=>this[_0x19bd2e(0xbc)][_0x19bd2e(0xae)](_0x405617,_0x4e955d),'onUnLoad':_0x697385=>this[_0x19bd2e(0xbc)]['removeUnit'](_0x697385)}));}};Q=St([Z(0x0,_0x40da0c),Z(0x1,_0x46134b(w))],Q);let $=class extends _0x364415{constructor(_0x2ddecf=xt,_0x16ca0b,_0x26985c,_0x557886){const _0x46c53c=_0x1d39a3;super(),this['_config']=_0x2ddecf,this[_0x46c53c(0x135)]=_0x16ca0b,this[_0x46c53c(0x11c)]=_0x26985c,this[_0x46c53c(0x10c)]=_0x557886;let {..._0x3a7c88}=_0x4acedb({},xt,this['_config']);this[_0x46c53c(0x10c)][_0x46c53c(0x102)](_0x46c53c(0xa4),_0x3a7c88);}[_0x1d39a3(0xc7)](){const _0x17a0ef=_0x1d39a3;this[_0x17a0ef(0x135)]['add']([w]),this[_0x17a0ef(0x135)][_0x17a0ef(0x112)]([Q]),this['_injector'][_0x17a0ef(0xff)](w),this[_0x17a0ef(0x135)]['get'](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x17a0ef(0xec)](_0x3d53bf=>this[_0x17a0ef(0x130)](this[_0x17a0ef(0x11c)]['registerCommand'](_0x3d53bf)));}};C($,_0x1d39a3(0xfb),X),C($,_0x1d39a3(0xf7),yt),C($,'version',bt),C($,_0x1d39a3(0xbd),_0x2efd60[_0x1d39a3(0x117)]),$=St([_0xc91b1c(_0xf600d9,_0x5825c3),Z(0x1,_0x46134b(_0x10239e)),Z(0x2,_0x2175d5),Z(0x3,_0xd2a5aa)],$);export{X as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,ot as DocsCodeConsumeBoundaryDeleteCommand,at as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,w as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,st as DocsCodeUpdateCommand,T as RemoveDocsCodeConfigMutation,Te as SetDocsCodeConfigMutation,$ as UniverDocsCodePlugin,Ne as buildCancelEmptyCodeParagraphActions,Ie as isCodeBoundaryDelete,v as normalizeDocsCodeConfig,y as normalizeDocsCodeMetadataResource};
|
|
1
|
+
const _0x5132d8=_0x51c8;(function(_0x167633,_0x31cb03){const _0x16cdee=_0x51c8,_0x7bf240=_0x167633();while(!![]){try{const _0x2f9ae8=-parseInt(_0x16cdee(0x1e4))/0x1+-parseInt(_0x16cdee(0x1ad))/0x2*(parseInt(_0x16cdee(0x1f4))/0x3)+parseInt(_0x16cdee(0x1a6))/0x4+-parseInt(_0x16cdee(0x1dc))/0x5*(-parseInt(_0x16cdee(0x206))/0x6)+-parseInt(_0x16cdee(0x1aa))/0x7+-parseInt(_0x16cdee(0x18d))/0x8*(parseInt(_0x16cdee(0x1d7))/0x9)+parseInt(_0x16cdee(0x18f))/0xa;if(_0x2f9ae8===_0x31cb03)break;else _0x7bf240['push'](_0x7bf240['shift']());}catch(_0x26b8d5){_0x7bf240['push'](_0x7bf240['shift']());}}}(_0x2ccf,0x58844));import{BooleanNumber as _0x266faf,BuildTextUtils as _0x433516,CommandType as _0x1a72f7,DataStreamTreeTokenType as _0x206623,DependentOn as _0x17fb0a,Disposable as _0x1fa454,DocumentBlockRangeType as _0x2a89d4,ICommandService as _0x5b460c,IConfigService as _0x5ab5a7,IResourceManagerService as _0xb2d34,IUniverInstanceService as _0x5838d6,Inject as _0x44aea7,Injector as _0x3db901,JSONX as _0x126099,Plugin as _0x1f77c2,TextX as _0x3ed338,UniverInstanceType as _0x5872e5,containsInteriorInsertionOffset as _0x48e4df,containsStreamIndex as _0x25de02,createParagraphId as _0x4e118f,generateRandomId as _0x4a7f6a,getBlockRangeInterval as _0x4a229d,getBodySliceForTextXAction as _0x11d3a7,getParagraphContentStartOffset as _0x238f9f,getParagraphContentStartOffsets as _0x5c1188,getParagraphFollowingBlockOffset as _0x899368,getSingleDataStreamChange as _0x49ee49,intersectsOperationalIntervals as _0x7353c8,merge as _0x337304,shiftExclusiveRangeOnDelete as _0x1c6252,shiftExclusiveRangeOnInsert as _0x41443a,shiftInclusiveRangeOnDelete as _0x3b01e8,shiftInclusiveRangeOnInsert as _0x4d85c0}from'@univerjs/core';import{Subject as _0x580a75}from'rxjs';import{DocSelectionManagerService as _0x23046e,RichTextEditingMutation as _0x331b69,UniverDocsPlugin as _0x1908df,getContentInsertRange as _0x227e30,isHeaderFooterSelection as _0x42dbdb}from'@univerjs/docs';import{UniverLicensePlugin as _0x3b1fe5}from'@univerjs-pro/license';const Se={'language':_0x5132d8(0x196),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x5d4e43){return{...Se,..._0x5d4e43};}function y(_0x2a1dab){const _0x418e42=_0x5132d8;let _0x162dc3=(_0x2a1dab==null?void 0x0:_0x2a1dab[_0x418e42(0x1c6)])??{};return{'codes':Object['fromEntries'](Object[_0x418e42(0x226)](_0x162dc3)['map'](([_0x3e6779,_0x533ab9])=>[_0x3e6779,v(_0x533ab9)]))};}function b(_0x47ec64,_0x4b26c0,_0x2cc2aa){const _0x263b55=_0x5132d8;let _0xda210a=y(_0x47ec64);return _0xda210a[_0x263b55(0x1c6)][_0x4b26c0]=v({..._0xda210a[_0x263b55(0x1c6)][_0x4b26c0],..._0x2cc2aa}),_0xda210a;}function x(_0x55f0db,_0x56fa25){let _0x782dbd=y(_0x55f0db);return delete _0x782dbd['codes'][_0x56fa25],_0x782dbd;}function _0x51c8(_0x265115,_0x45ea88){_0x265115=_0x265115-0x18d;const _0x2ccfef=_0x2ccf();let _0x51c85b=_0x2ccfef[_0x265115];return _0x51c85b;}function S(_0x1db4ea){'@babel/helpers - typeof';const _0x532d8f=_0x5132d8;return S=typeof Symbol==_0x532d8f(0x210)&&typeof Symbol[_0x532d8f(0x1ec)]=='symbol'?function(_0x1befa7){return typeof _0x1befa7;}:function(_0x1c5bea){const _0x8c87bd=_0x532d8f;return _0x1c5bea&&typeof Symbol=='function'&&_0x1c5bea[_0x8c87bd(0x1ba)]===Symbol&&_0x1c5bea!==Symbol[_0x8c87bd(0x1db)]?_0x8c87bd(0x1c0):typeof _0x1c5bea;},S(_0x1db4ea);}function Ce(_0x47c3b2,_0xdebc67){const _0x2d0066=_0x5132d8;if(S(_0x47c3b2)!=_0x2d0066(0x1c9)||!_0x47c3b2)return _0x47c3b2;var _0x391a73;if(typeof Symbol<'u'&&(_0x391a73=_0x47c3b2[Symbol[_0x2d0066(0x1c2)]])!==void 0x0){var _0x36ef6c=_0x391a73[_0x2d0066(0x222)](_0x47c3b2,_0xdebc67||_0x2d0066(0x19c));if(S(_0x36ef6c)!=_0x2d0066(0x1c9))return _0x36ef6c;throw TypeError(_0x2d0066(0x1f5));}return(_0xdebc67==='string'?String:Number)(_0x47c3b2);}function we(_0x39b6fb){const _0x4bc65d=_0x5132d8;var _0x485d79=Ce(_0x39b6fb,_0x4bc65d(0x19f));return S(_0x485d79)==_0x4bc65d(0x1c0)?_0x485d79:_0x485d79+'';}function C(_0x1028bc,_0x41e42d,_0x13705a){const _0x414b7e=_0x5132d8;return(_0x41e42d=we(_0x41e42d))in _0x1028bc?Object[_0x414b7e(0x209)](_0x1028bc,_0x41e42d,{'value':_0x13705a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1028bc[_0x41e42d]=_0x13705a,_0x1028bc;}var w=class extends _0x1fa454{constructor(..._0x184a84){const _0x1cf024=_0x5132d8;super(..._0x184a84),C(this,'_resources',new Map()),C(this,'_change$',new _0x580a75()),C(this,'change$',this[_0x1cf024(0x205)]['asObservable']());}['getCodeConfig'](_0x39bff1,_0x885311){const _0x3d79d5=_0x5132d8;return y(this[_0x3d79d5(0x1c4)][_0x3d79d5(0x1ed)](_0x39bff1))[_0x3d79d5(0x1c6)][_0x885311];}[_0x5132d8(0x1dd)](_0x1dd491,_0x51e855,_0x243df0){const _0x1cf215=_0x5132d8;this[_0x1cf215(0x21f)](_0x1dd491,_0x51e855,b(this[_0x1cf215(0x1c4)][_0x1cf215(0x1ed)](_0x1dd491),_0x51e855,_0x243df0));}[_0x5132d8(0x22c)](_0x403420,_0x2c553b){this['_setResource'](_0x403420,_0x2c553b,x(this['_resources']['get'](_0x403420),_0x2c553b));}[_0x5132d8(0x1d5)](_0x51e177){return y(this['_resources']['get'](_0x51e177));}[_0x5132d8(0x1f9)](_0x8ed186,_0x92032d){const _0x5cfe5b=_0x5132d8;this[_0x5cfe5b(0x1c4)][_0x5cfe5b(0x231)](_0x8ed186,y(_0x92032d)),this[_0x5cfe5b(0x205)][_0x5cfe5b(0x1bc)]({'unitId':_0x8ed186});}[_0x5132d8(0x1e8)](_0x130e96){const _0x1caa84=_0x5132d8;this[_0x1caa84(0x1c4)][_0x1caa84(0x21a)](_0x130e96),this[_0x1caa84(0x205)][_0x1caa84(0x1bc)]({'unitId':_0x130e96});}['dispose'](){const _0x8171ee=_0x5132d8;super['dispose'](),this['_resources'][_0x8171ee(0x1fe)](),this[_0x8171ee(0x205)][_0x8171ee(0x1a2)]();}[_0x5132d8(0x21f)](_0x18fc0a,_0x560cc7,_0x85a08d){const _0x26bcb9=_0x5132d8;this['_resources'][_0x26bcb9(0x231)](_0x18fc0a,_0x85a08d),this[_0x26bcb9(0x205)][_0x26bcb9(0x1bc)]({'unitId':_0x18fc0a,'blockId':_0x560cc7});}};const Te={'id':_0x5132d8(0x208),'type':_0x1a72f7['MUTATION'],'handler':(_0x121ef3,_0x543fef)=>!(_0x543fef!=null&&_0x543fef['unitId'])||!_0x543fef[_0x5132d8(0x1cf)]?!0x1:(_0x121ef3[_0x5132d8(0x1ed)](w)[_0x5132d8(0x1dd)](_0x543fef[_0x5132d8(0x220)],_0x543fef[_0x5132d8(0x1cf)],_0x543fef[_0x5132d8(0x1b2)]),!0x0)},T={'id':_0x5132d8(0x211),'type':_0x1a72f7['MUTATION'],'handler':(_0x45bbda,_0x453aee)=>!(_0x453aee!=null&&_0x453aee[_0x5132d8(0x220)])||!_0x453aee[_0x5132d8(0x1cf)]?!0x1:(_0x45bbda[_0x5132d8(0x1ed)](w)[_0x5132d8(0x22c)](_0x453aee[_0x5132d8(0x220)],_0x453aee[_0x5132d8(0x1cf)]),!0x0)},Ee='monospace';var E=class extends Error{constructor(_0x37bdaf='Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries'){super(_0x37bdaf);}};function De(_0x343edf){const _0x302d55=_0x5132d8;var _0x4addc4;let _0x3f9045=O(_0x343edf[_0x302d55(0x1e5)]),_0x4bda6d=A(_0x3f9045),_0x234ffe=ke(_0x343edf[_0x302d55(0x1b7)],_0x343edf[_0x302d55(0x207)]),_0x3544c8=_0x234ffe?(_0x4addc4=_0x4bda6d[_0x302d55(0x1af)])==null?void 0x0:_0x4addc4[_0x302d55(0x1ff)](_0x18a6f0=>{const _0x55ed45=_0x302d55;let _0x586b9=_0x4a229d(_0x18a6f0);return _0x586b9[_0x55ed45(0x1b7)]===_0x234ffe[_0x55ed45(0x1b7)]&&_0x586b9[_0x55ed45(0x207)]===_0x234ffe['endOffset'];}):void 0x0,{startOffset:_0x8be075,endOffset:_0x2c5896}=_0x3544c8?_0x234ffe:We(_0x4bda6d,_0x343edf[_0x302d55(0x1b7)],_0x343edf[_0x302d55(0x207)],_0x343edf['insertionMode']);if(!_0x3544c8&&Ae(_0x4bda6d,_0x8be075,_0x2c5896))throw new E(_0x302d55(0x194));let _0x1ef123=qe(_0x4bda6d,_0x8be075,_0x2c5896),_0x1b3c4a=(_0x3544c8==null?void 0x0:_0x3544c8[_0x302d55(0x1cf)])??_0x343edf['blockId'],_0x1b0d71=b(_0x343edf['metadata'],_0x1b3c4a,{...Se,..._0x343edf[_0x302d55(0x1b2)]});if(_0x3544c8)return _0x3544c8[_0x302d55(0x1ab)]=_0x2a89d4[_0x302d55(0x22b)],Oe(_0x4bda6d,_0x8be075,_0x2c5896),ze(_0x4bda6d,_0x8be075,_0x2c5896,_0x1ef123),N(_0x4bda6d,_0x3544c8),{'nextDocumentData':_0x3f9045,'nextMetadata':_0x1b0d71,'cursorOffset':_0x8be075+0x1};if(_0x8be075===_0x2c5896){var _0x40477b,_0x34f8fd;let _0xe3eca=''+_0x206623[_0x302d55(0x1b3)]+_0x206623[_0x302d55(0x1a7)]+_0x206623[_0x302d55(0x1a5)];P(_0x4bda6d,_0x8be075,_0xe3eca,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x4e118f(new Set((_0x40477b=_0x4bda6d['paragraphs'])==null?void 0x0:_0x40477b[_0x302d55(0x20d)](_0x21c28c=>_0x21c28c['paragraphId']))),'paragraphStyle':Re(!0x0,!0x0,_0x1ef123)}],'blockRanges':[{'blockId':_0x1b3c4a,'blockType':_0x2a89d4[_0x302d55(0x22b)],'startIndex':0x0,'endIndex':_0xe3eca[_0x302d55(0x221)]-0x1}]});let _0x4a9e12=(_0x34f8fd=_0x4bda6d[_0x302d55(0x1af)])==null?void 0x0:_0x34f8fd[_0x302d55(0x1ff)](_0x545858=>_0x545858[_0x302d55(0x1cf)]===_0x1b3c4a);return _0x4a9e12&&N(_0x4bda6d,_0x4a9e12),{'nextDocumentData':_0x3f9045,'nextMetadata':_0x1b0d71,'cursorOffset':_0x8be075+0x1};}P(_0x4bda6d,_0x2c5896,_0x206623['BLOCK_END']),P(_0x4bda6d,_0x8be075,_0x206623[_0x302d55(0x1b3)]),ze(_0x4bda6d,_0x8be075,_0x2c5896+0x1,_0x1ef123);let _0x51d13a={'blockId':_0x1b3c4a,'blockType':_0x2a89d4['CODE'],'startIndex':_0x8be075,'endIndex':_0x2c5896+0x1};return _0x4bda6d[_0x302d55(0x1af)]=[..._0x4bda6d[_0x302d55(0x1af)]??[],_0x51d13a][_0x302d55(0x199)]((_0xc20075,_0x5863cd)=>_0xc20075['startIndex']-_0x5863cd['startIndex']),N(_0x4bda6d,_0x51d13a),{'nextDocumentData':_0x3f9045,'nextMetadata':_0x1b0d71,'cursorOffset':_0x8be075+0x1};}function Oe(_0x2534b9,_0x52f0fa,_0x2bad0f){const _0x12da7a=_0x5132d8;(_0x2534b9[_0x12da7a(0x19d)]??[])[_0x12da7a(0x1ae)](_0x12e9ba=>_0x12e9ba[_0x12da7a(0x1d9)]>_0x52f0fa&&_0x12e9ba[_0x12da7a(0x1d9)]<_0x2bad0f)['forEach'](_0x21d1b8=>{const _0x111248=_0x12da7a;let _0x3664a9={..._0x21d1b8[_0x111248(0x19b)]??{}};delete _0x3664a9[_0x111248(0x1e0)],delete _0x3664a9[_0x111248(0x1e9)],_0x21d1b8[_0x111248(0x19b)]=_0x3664a9;});}function ke(_0x112737,_0x9f17a7){const _0x3e6a0b=_0x5132d8;return _0x112737==null||_0x9f17a7==null||_0x112737===_0x9f17a7?null:{'startOffset':Math[_0x3e6a0b(0x1d6)](_0x112737,_0x9f17a7),'endOffset':Math[_0x3e6a0b(0x1cd)](_0x112737,_0x9f17a7)};}function Ae(_0x5b1a78,_0x3cf775,_0x37bb5d){const _0x4c548c=_0x5132d8;return(_0x5b1a78['blockRanges']??[])[_0x4c548c(0x1f8)](_0x249c85=>{let _0x320971=_0x4a229d(_0x249c85);return _0x3cf775===_0x37bb5d?_0x48e4df(_0x320971,_0x3cf775):_0x7353c8(_0x320971,{'startOffset':_0x3cf775,'endOffset':_0x37bb5d});});}function je(_0x318d11){const _0x3648cd=_0x5132d8;return{'nextDocumentData':O(_0x318d11[_0x3648cd(0x1e5)]),'nextMetadata':b(_0x318d11[_0x3648cd(0x1eb)],_0x318d11[_0x3648cd(0x1cf)],_0x318d11[_0x3648cd(0x1b2)]),'cursorOffset':0x0};}function D(_0x45ea1f){const _0x4a0a8f=_0x5132d8;let _0x49b324=O(_0x45ea1f[_0x4a0a8f(0x1e5)]),_0x13454d=A(_0x49b324),_0x48ead8=Fe(_0x13454d,_0x45ea1f['blockId']);if(!_0x48ead8)return null;let _0x4b5618=He(_0x13454d,_0x48ead8);return{'nextDocumentData':_0x49b324,'nextMetadata':x(_0x45ea1f[_0x4a0a8f(0x1eb)],_0x45ea1f[_0x4a0a8f(0x1cf)]),'cursorOffset':_0x4b5618};}function Me(_0x32ce85){const _0x41c08d=_0x5132d8;var _0x22f7b6;let _0x3b1fc5=O(_0x32ce85[_0x41c08d(0x1e5)]),_0x144a6f=A(_0x3b1fc5),_0x576d7b=Fe(_0x144a6f,_0x32ce85[_0x41c08d(0x1cf)]);if(!_0x576d7b)return null;let _0x171986=_0x4a229d(_0x576d7b);return F(_0x144a6f,_0x171986[_0x41c08d(0x1b7)],_0x171986[_0x41c08d(0x207)]),_0x144a6f[_0x41c08d(0x1af)]=(_0x22f7b6=_0x144a6f[_0x41c08d(0x1af)])==null?void 0x0:_0x22f7b6[_0x41c08d(0x1ae)](_0x27c09e=>_0x27c09e[_0x41c08d(0x1cf)]!==_0x32ce85[_0x41c08d(0x1cf)]),{'nextDocumentData':_0x3b1fc5,'nextMetadata':x(_0x32ce85[_0x41c08d(0x1eb)],_0x32ce85[_0x41c08d(0x1cf)]),'cursorOffset':_0x576d7b[_0x41c08d(0x1d9)]};}function Ne(_0x3e9464){const _0x283bb9=_0x5132d8;let _0x4085b1=O(_0x3e9464[_0x283bb9(0x1e5)]),_0x2f29dd=A(_0x4085b1),_0x2adbbf=Le(_0x2f29dd,_0x3e9464[_0x283bb9(0x1ea)]);return _0x2adbbf&&Pe(_0x4085b1,_0x2f29dd,_0x2adbbf,_0x3e9464[_0x283bb9(0x1ea)],_0x3e9464[_0x283bb9(0x1da)])||null;}function Pe(_0x502707,_0x123364,_0x5e5ad8,_0x22db64,_0x2b8eaf){const _0x5b40b9=_0x5132d8;let _0x31f7c5=$e(_0x123364,_0x5e5ad8,_0x22db64,_0x2b8eaf);if(!_0x31f7c5)return null;let _0x12b4f7=_0x31f7c5[_0x5b40b9(0x1a4)]-0x1;return F(_0x123364,_0x31f7c5[_0x5b40b9(0x1e7)][_0x5b40b9(0x1d9)],_0x31f7c5['paragraph'][_0x5b40b9(0x1d9)]+0x1),{'nextDocumentData':_0x502707,'cursorOffset':_0x12b4f7};}function Fe(_0x296f0e,_0x455945){const _0x5482b9=_0x5132d8;var _0x1c732e;return _0x296f0e==null||(_0x1c732e=_0x296f0e[_0x5482b9(0x1af)])==null?void 0x0:_0x1c732e[_0x5482b9(0x1ff)](_0xaf2153=>_0xaf2153[_0x5482b9(0x1ab)]===_0x2a89d4[_0x5482b9(0x22b)]&&_0xaf2153[_0x5482b9(0x1cf)]===_0x455945);}function _0x2ccf(){const _0x4c34da=['removeCode','indentEnd','COMMAND','disposeWithMe','nextMetadata','set','712WCbUNh','endsWith','21329640kZwOvK','getUnit','replaceDocRanges','_config','_docsCodeModel','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','docs-code.command.update','javascript','endIndex','from','sort','type','paragraphStyle','default','paragraphs','docs-code.command.remove','string','bullet','start','complete','tables','endTokenOffset','BLOCK_END','90252uRFGMJ','PARAGRAPH','deleteLength','paragraphId','3557400qUvWho','blockType','textStyle','2wpWEiQ','filter','blockRanges','insert-new','getTextRanges','config','BLOCK_START','isArray','keepLines','getBody','startOffset','handler','keys','constructor','direction','next','push','TRUE','getCurrentUnitOfType','symbol','_initResource','toPrimitive','docs-code.command.cancel-empty-paragraph','_resources','SECTION_BREAK','codes','_injector','startTokenOffset','object','retain','removeOp','body','max','insert','blockId','_commandService','fromEntries','docs-code.config','insertOp','compose','serialize','min','61758lbduoG','columnGroups','startIndex','paragraphStartIndex','prototype','10rUbmOw','setCodeConfig','1.5.1','insertLength','spaceAbove','forEach','commandService','indexOf','527598omgNGu','documentData','sectionBreaks','paragraph','removeUnit','spaceBelow','cursorOffset','metadata','iterator','get','range','packageName','slice','add','dataStream','previousDocumentData','1104969gHWfkC','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','customDecorations','docs-code.command.insert','some','deserialize','replaceOp','docs-code.command.unwrap','UNIVER_DOC','getInstance','clear','find','DOC_CODE_PLUGIN','_resourceManagerService','keepNext','widowControl','setConfig','_change$','665628oKfpCZ','endOffset','docs-code.mutation.set-config','defineProperty','_configService','decorate','selectionManager','map','columns','registerCommand','function','docs-code.mutation.remove-config','reduce','TABLE_CELL_START','customBlocks','nextDocumentData','model','docs-code.command.consume-boundary-delete','every','getParagraphsInRange','delete','editOp','getOwnPropertyDescriptor','docs-code.command.insert-below','TABLE_CELL_END','_setResource','unitId','length','call','pluginName','customRanges','insertionMode','entries','textRuns','getUnitId','indentStart','stringify','CODE'];_0x2ccf=function(){return _0x4c34da;};return _0x2ccf();}function Ie(_0x2356c9){const _0x3dad78=_0x5132d8;let _0x52bb2b=_0x2356c9['documentData'][_0x3dad78(0x1cc)];if(!_0x52bb2b)return!0x1;let _0xc2cf92=_0x2356c9[_0x3dad78(0x1bb)]==='left'?_0x2356c9[_0x3dad78(0x1ea)]-0x1:_0x2356c9[_0x3dad78(0x1ea)],_0x3fbc8f=_0x2356c9['direction']==='right'?_0x2356c9['cursorOffset']+0x1:_0xc2cf92;return(_0x52bb2b['blockRanges']??[])[_0x3dad78(0x1f8)](_0x559085=>_0x559085[_0x3dad78(0x1ab)]===_0x2a89d4[_0x3dad78(0x22b)]?_0xc2cf92===_0x559085[_0x3dad78(0x1d9)]||_0xc2cf92===_0x559085[_0x3dad78(0x197)]||_0x3fbc8f===_0x559085[_0x3dad78(0x1d9)]||_0x3fbc8f===_0x559085['endIndex']:!0x1);}function Le(_0x32338d,_0x23d114){const _0x269aa8=_0x5132d8;var _0x13d44c;return(_0x13d44c=_0x32338d[_0x269aa8(0x1af)])==null?void 0x0:_0x13d44c[_0x269aa8(0x1ff)](_0x1c90db=>{const _0x1e05b6=_0x269aa8;let _0x2db559=M(_0x1c90db);return _0x1c90db[_0x1e05b6(0x1ab)]===_0x2a89d4['CODE']&&_0x1c90db[_0x1e05b6(0x1d9)]<=_0x23d114&&_0x23d114<=_0x2db559+0x2;});}function Re(_0x106b3d,_0x211e0b,_0x1c653e=!0x1){const _0x5ee7c6=_0x5132d8;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x266faf[_0x5ee7c6(0x1be)],'keepNext':_0x211e0b?_0x266faf['FALSE']:_0x266faf[_0x5ee7c6(0x1be)],'widowControl':_0x266faf[_0x5ee7c6(0x1be)],..._0x106b3d&&_0x1c653e?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x480909,_0x3746d0,_0x1ad29a,_0x4b78f1=!0x1){const _0x1b56af=_0x5132d8;let _0x109bb5=(_0x480909[_0x1b56af(0x19d)]??[])[_0x1b56af(0x1ae)](_0x350bc8=>_0x350bc8[_0x1b56af(0x1d9)]>_0x3746d0&&_0x350bc8[_0x1b56af(0x1d9)]<_0x1ad29a);_0x109bb5[_0x1b56af(0x1e1)]((_0x10339b,_0x30082e)=>{const _0x2c1e0f=_0x1b56af;_0x10339b[_0x2c1e0f(0x19b)]={..._0x10339b[_0x2c1e0f(0x19b)]??{},...Re(_0x30082e===0x0,_0x30082e===_0x109bb5[_0x2c1e0f(0x221)]-0x1,_0x4b78f1)};});}function Be(_0x30f7ba){const _0x8d530=_0x5132d8;var _0xcbe111,_0x3ccb7f;let _0x3fe3b1={..._0x30f7ba??{}};return delete _0x3fe3b1[_0x8d530(0x22d)],delete _0x3fe3b1[_0x8d530(0x229)],delete _0x3fe3b1['spaceAbove'],delete _0x3fe3b1[_0x8d530(0x1e9)],delete _0x3fe3b1[_0x8d530(0x1b5)],delete _0x3fe3b1[_0x8d530(0x202)],delete _0x3fe3b1[_0x8d530(0x203)],((_0xcbe111=_0x3fe3b1[_0x8d530(0x1ac)])==null?void 0x0:_0xcbe111['ff'])===Ee&&((_0x3ccb7f=_0x3fe3b1[_0x8d530(0x1ac)])==null?void 0x0:_0x3ccb7f['fs'])===0xc&&delete _0x3fe3b1[_0x8d530(0x1ac)],_0x3fe3b1;}function Ve(_0x234218,_0x28d945){const _0x261dfc=_0x5132d8;let _0x5ea366=M(_0x28d945);return(_0x234218[_0x261dfc(0x19d)]??[])[_0x261dfc(0x1ae)](_0x5ce98d=>_0x5ce98d[_0x261dfc(0x1d9)]>_0x28d945['startIndex']&&_0x5ce98d[_0x261dfc(0x1d9)]<_0x5ea366);}function He(_0x34ee4a,_0x5ba2b6){const _0x54c8d3=_0x5132d8;var _0x3d1eb2;let _0x240fb8=M(_0x5ba2b6);return Ve(_0x34ee4a,_0x5ba2b6)[_0x54c8d3(0x1e1)](_0x8b2b7=>{const _0x1f0c56=_0x54c8d3;_0x8b2b7['paragraphStyle']=Be(_0x8b2b7[_0x1f0c56(0x19b)]);}),F(_0x34ee4a,_0x240fb8,_0x240fb8+0x1),F(_0x34ee4a,_0x5ba2b6['startIndex'],_0x5ba2b6['startIndex']+0x1),_0x34ee4a[_0x54c8d3(0x1af)]=(_0x3d1eb2=_0x34ee4a[_0x54c8d3(0x1af)])==null?void 0x0:_0x3d1eb2[_0x54c8d3(0x1ae)](_0x267493=>_0x267493['blockId']!==_0x5ba2b6['blockId']),_0x5ba2b6[_0x54c8d3(0x1d9)];}function O(_0xea187d){const _0x26f548=_0x5132d8;return{..._0xea187d,'body':_0xea187d[_0x26f548(0x1cc)]?Ue(_0xea187d[_0x26f548(0x1cc)]):_0xea187d[_0x26f548(0x1cc)]};}function Ue(_0xb0699){const _0x2664b5=_0x5132d8;var _0x5571d1,_0x20915f,_0xe52652,_0x1ba8ff,_0xcd650b,_0x5bc140,_0x5491b0,_0xd81d5c,_0x532442;return{..._0xb0699,'paragraphs':(_0x5571d1=_0xb0699[_0x2664b5(0x19d)])==null?void 0x0:_0x5571d1[_0x2664b5(0x20d)](_0x5a6f41=>({..._0x5a6f41,'bullet':k(_0x5a6f41[_0x2664b5(0x1a0)]),'paragraphStyle':k(_0x5a6f41[_0x2664b5(0x19b)])})),'sectionBreaks':(_0x20915f=_0xb0699['sectionBreaks'])==null?void 0x0:_0x20915f[_0x2664b5(0x20d)](_0x5e0961=>({..._0x5e0961})),'textRuns':(_0xe52652=_0xb0699[_0x2664b5(0x227)])==null?void 0x0:_0xe52652[_0x2664b5(0x20d)](_0xe437b2=>({..._0xe437b2})),'tables':(_0x1ba8ff=_0xb0699[_0x2664b5(0x1a3)])==null?void 0x0:_0x1ba8ff[_0x2664b5(0x20d)](_0x5f2496=>({..._0x5f2496})),'columnGroups':(_0xcd650b=_0xb0699['columnGroups'])==null?void 0x0:_0xcd650b['map'](_0x657c3=>{const _0x1d035e=_0x2664b5;var _0x50f9d0;return{..._0x657c3,'columns':(_0x50f9d0=_0x657c3[_0x1d035e(0x20e)])==null?void 0x0:_0x50f9d0[_0x1d035e(0x20d)](_0x226eda=>k(_0x226eda))};}),'blockRanges':(_0x5bc140=_0xb0699[_0x2664b5(0x1af)])==null?void 0x0:_0x5bc140['map'](_0x1962cb=>({..._0x1962cb})),'customRanges':(_0x5491b0=_0xb0699[_0x2664b5(0x224)])==null?void 0x0:_0x5491b0[_0x2664b5(0x20d)](_0x906f21=>({..._0x906f21})),'customDecorations':(_0xd81d5c=_0xb0699[_0x2664b5(0x1f6)])==null?void 0x0:_0xd81d5c[_0x2664b5(0x20d)](_0x1d8c02=>({..._0x1d8c02})),'customBlocks':(_0x532442=_0xb0699[_0x2664b5(0x214)])==null?void 0x0:_0x532442[_0x2664b5(0x20d)](_0x122bd3=>({..._0x122bd3}))};}function k(_0x3e5066){const _0x11b1a6=_0x5132d8;return Array[_0x11b1a6(0x1b4)](_0x3e5066)?_0x3e5066[_0x11b1a6(0x20d)](_0x43886c=>k(_0x43886c)):!_0x3e5066||typeof _0x3e5066!='object'?_0x3e5066:Object[_0x11b1a6(0x1d1)](Object[_0x11b1a6(0x226)](_0x3e5066)[_0x11b1a6(0x20d)](([_0x3a5239,_0x21f598])=>[_0x3a5239,k(_0x21f598)]));}function A(_0x389764){const _0x108e4a=_0x5132d8;if(!_0x389764[_0x108e4a(0x1cc)])throw Error('Document\x20body\x20is\x20required');return _0x389764[_0x108e4a(0x1cc)];}function We(_0x43cc93,_0x13aa9f,_0x2d16cd,_0x2d3f99='convert-paragraph'){const _0x1b6281=_0x5132d8;if(_0x13aa9f==null||_0x2d16cd==null){let _0x127093=Ke(_0x43cc93);return{'startOffset':_0x127093,'endOffset':_0x127093};}let _0x2d4c50=Math[_0x1b6281(0x1d6)](_0x13aa9f,_0x2d16cd),_0x30fbf6=Math[_0x1b6281(0x1cd)](_0x13aa9f,_0x2d16cd),_0x14d949=Ze(_0x43cc93,_0x2d4c50,_0x30fbf6);return _0x2d4c50===_0x30fbf6?_0x2d3f99===_0x1b6281(0x1b0)?{'startOffset':_0x2d4c50,'endOffset':_0x30fbf6}:Ge(_0x43cc93,_0x2d4c50,_0x14d949):Je(_0x43cc93,_0x2d4c50,_0x30fbf6,_0x14d949);}function Ge(_0x573eed,_0x59c407,_0xf1e823){const _0x4cfdd7=_0x5132d8;let _0x49148c=Ye(_0x573eed,_0x59c407);if(_0x49148c){let _0x5337ef=j(_0x573eed,_0x49148c,_0xf1e823);if(_0x5337ef<_0x49148c['startIndex'])return{'startOffset':_0x5337ef,'endOffset':_0xf1e823?Math[_0x4cfdd7(0x1d6)](_0x49148c[_0x4cfdd7(0x1d9)]+0x1,_0xf1e823[_0x4cfdd7(0x207)]):_0x49148c['startIndex']+0x1};}let _0x4900f9=_0x59c407===0x0&&_0x573eed[_0x4cfdd7(0x1f2)][0x0]===_0x206623[_0x4cfdd7(0x1a7)]?0x1:_0x59c407;return{'startOffset':_0x4900f9,'endOffset':_0x4900f9};}function Ke(_0x3c42f1){const _0x32ab76=_0x5132d8;return _0x3c42f1[_0x32ab76(0x1f2)][_0x32ab76(0x18e)](_0x206623[_0x32ab76(0x1c5)])?Math[_0x32ab76(0x1cd)](0x0,_0x3c42f1[_0x32ab76(0x1f2)]['length']-0x1):_0x3c42f1[_0x32ab76(0x1f2)]['length'];}function qe(_0x13b5f0,_0xc06ddc,_0x4929e4){const _0x3763b9=_0x5132d8;var _0x545787;let _0x2b2a7c=Math[_0x3763b9(0x1d6)](_0xc06ddc,_0x4929e4),_0x5dad0c=Math['max'](_0xc06ddc,_0x4929e4);return!!((_0x545787=_0x13b5f0[_0x3763b9(0x1a3)])!=null&&_0x545787['some'](_0x39d8f3=>_0x2b2a7c>_0x39d8f3[_0x3763b9(0x1d9)]&&_0x2b2a7c<_0x39d8f3[_0x3763b9(0x197)]||_0x5dad0c>_0x39d8f3[_0x3763b9(0x1d9)]&&_0x5dad0c<_0x39d8f3[_0x3763b9(0x197)]||_0x2b2a7c<=_0x39d8f3[_0x3763b9(0x1d9)]&&_0x5dad0c>=_0x39d8f3['endIndex']));}function Je(_0x291b9a,_0x2cf992,_0x590aba,_0x2520a0){const _0x8552c7=_0x5132d8;let _0xd13fcc=[..._0x291b9a['paragraphs']??[]][_0x8552c7(0x199)]((_0x46627c,_0x21d2e6)=>_0x46627c[_0x8552c7(0x1d9)]-_0x21d2e6[_0x8552c7(0x1d9)]),_0x1ea64d=_0x5c1188(_0x291b9a),_0x3a28bb=_0xd13fcc[_0x8552c7(0x1ff)](_0x34cda0=>j(_0x291b9a,_0x34cda0,_0x2520a0,_0x1ea64d)<=_0x2cf992&&_0x2cf992<=_0x34cda0[_0x8552c7(0x1d9)]),_0x2bbf46=_0xd13fcc[_0x8552c7(0x1ff)](_0x2f3660=>_0x2f3660[_0x8552c7(0x1d9)]>=_0x590aba-0x1)??_0xd13fcc[_0xd13fcc[_0x8552c7(0x221)]-0x1];return{'startOffset':_0x3a28bb?j(_0x291b9a,_0x3a28bb,_0x2520a0,_0x1ea64d):_0x2cf992,'endOffset':_0x2bbf46?Xe(_0x2bbf46,_0x2520a0):_0x590aba};}function Ye(_0x1d4054,_0x1c33c6){const _0xaed550=_0x5132d8;let _0x477f51=[..._0x1d4054[_0xaed550(0x19d)]??[]][_0xaed550(0x199)]((_0x330114,_0x506261)=>_0x330114['startIndex']-_0x506261[_0xaed550(0x1d9)]),_0x236912=_0x5c1188(_0x1d4054);return _0x477f51['find'](_0x47ff32=>(_0x236912[_0xaed550(0x1ed)](_0x47ff32[_0xaed550(0x1d9)])??0x0)<=_0x1c33c6&&_0x1c33c6<=_0x47ff32[_0xaed550(0x1d9)]);}function j(_0x4623bc,_0x578162,_0x5c3e8b,_0x105d90){const _0x3c1709=_0x5132d8;let _0xaf7d1b=(_0x105d90==null?void 0x0:_0x105d90['get'](_0x578162['startIndex']))??_0x238f9f(_0x4623bc,_0x578162);return _0x5c3e8b?Math[_0x3c1709(0x1cd)](_0xaf7d1b,_0x5c3e8b['startOffset']):_0xaf7d1b;}function Xe(_0x342a06,_0x3327a9){const _0xa6b705=_0x5132d8;let _0x38defa=_0x342a06['startIndex']+0x1;return _0x3327a9?Math[_0xa6b705(0x1d6)](_0x38defa,_0x3327a9[_0xa6b705(0x207)]):_0x38defa;}function Ze(_0x4c9e36,_0x3906d3,_0xfce9ee){const _0x29c804=_0x5132d8;let _0x454d69=Qe(_0x4c9e36,_0x3906d3),_0x58df61=Qe(_0x4c9e36,_0x3906d3===_0xfce9ee?_0xfce9ee:Math[_0x29c804(0x1cd)](_0x3906d3,_0xfce9ee-0x1));if(_0x454d69||_0x58df61){if(!_0x454d69||!_0x58df61||_0x454d69[_0x29c804(0x1c8)]!==_0x58df61[_0x29c804(0x1c8)]||_0x454d69[_0x29c804(0x1a4)]!==_0x58df61[_0x29c804(0x1a4)])throw new E();return _0x454d69;}}function Qe(_0x1dc492,_0x55b3b8){const _0x4d0cb2=_0x5132d8;let _0x4b96a7=_0x1dc492['dataStream'],_0x2dc943=-0x1;for(let _0x4559dd=Math['min'](_0x55b3b8,_0x4b96a7[_0x4d0cb2(0x221)]-0x1);_0x4559dd>=0x0;_0x4559dd--){let _0x24c0bd=_0x4b96a7[_0x4559dd];if(_0x24c0bd===_0x206623[_0x4d0cb2(0x21e)])return;if(_0x24c0bd===_0x206623[_0x4d0cb2(0x213)]){_0x2dc943=_0x4559dd;break;}}if(_0x2dc943<0x0)return;let _0x30ebfb=_0x4b96a7[_0x4d0cb2(0x1e3)](_0x206623[_0x4d0cb2(0x21e)],_0x2dc943+0x1);if(!(_0x30ebfb<0x0||_0x55b3b8<_0x2dc943+0x1||_0x55b3b8>_0x30ebfb-0x1))return{'startOffset':_0x2dc943+0x1,'endOffset':Math[_0x4d0cb2(0x1cd)](_0x2dc943+0x1,_0x30ebfb-0x1),'startTokenOffset':_0x2dc943,'endTokenOffset':_0x30ebfb};}function M(_0x334df1){const _0x6bbf22=_0x5132d8;return _0x4a229d(_0x334df1)[_0x6bbf22(0x207)]-0x1;}function $e(_0x4d7774,_0x354a36,_0x410c03,_0x2301da){const _0x535982=_0x5132d8;let _0x1b5802=M(_0x354a36),_0x47a3a7=(_0x4d7774['paragraphs']??[])['find'](_0x470a45=>_0x470a45[_0x535982(0x1d9)]===_0x1b5802+0x1);if(!_0x47a3a7||_0x2301da!=null&&_0x47a3a7['startIndex']!==_0x2301da||_0x410c03!=null&&(_0x410c03<_0x1b5802||_0x410c03>_0x47a3a7['startIndex']+0x1)||_0x4d7774[_0x535982(0x1f2)][_0x47a3a7[_0x535982(0x1d9)]]!==_0x206623[_0x535982(0x1a7)])return null;let _0x3e456d=_0x238f9f(_0x4d7774,_0x47a3a7),_0x1f0358=_0x4d7774[_0x535982(0x1f2)][_0x535982(0x1f0)](_0x3e456d,_0x47a3a7['startIndex']);return Array[_0x535982(0x198)](_0x1f0358)[_0x535982(0x218)](_0x2f006b=>_0x2f006b===_0x206623[_0x535982(0x1a5)])?{'paragraph':_0x47a3a7,'endTokenOffset':_0x1b5802}:null;}function N(_0x577a45,_0x131b33){const _0x6e8416=_0x5132d8;var _0x4dd6ef;let _0x469f53=M(_0x131b33),_0x1c0b35=_0x577a45[_0x6e8416(0x1f2)][_0x469f53+0x1];(_0x1c0b35===_0x206623[_0x6e8416(0x1c5)]||_0x1c0b35===void 0x0)&&P(_0x577a45,_0x469f53+0x1,_0x206623[_0x6e8416(0x1a7)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x4e118f(new Set((_0x4dd6ef=_0x577a45[_0x6e8416(0x19d)])==null?void 0x0:_0x4dd6ef['map'](_0x40336e=>_0x40336e[_0x6e8416(0x1a9)])))}]});}function P(_0x505aca,_0x4fec72,_0x52aa6e,_0x3f28fb={}){const _0xac118f=_0x5132d8;var _0x41ef60,_0x2e39c5;_0x52aa6e&&(_0x505aca[_0xac118f(0x1f2)]=''+_0x505aca[_0xac118f(0x1f2)][_0xac118f(0x1f0)](0x0,_0x4fec72)+_0x52aa6e+_0x505aca[_0xac118f(0x1f2)]['slice'](_0x4fec72),et(_0x505aca,_0x4fec72,_0x52aa6e[_0xac118f(0x221)]),(_0x41ef60=_0x3f28fb['paragraphs'])!=null&&_0x41ef60[_0xac118f(0x221)]&&(_0x505aca['paragraphs']=[..._0x505aca[_0xac118f(0x19d)]??[],..._0x3f28fb[_0xac118f(0x19d)][_0xac118f(0x20d)](_0x3032fd=>({..._0x3032fd,'startIndex':_0x3032fd['startIndex']+_0x4fec72}))][_0xac118f(0x199)]((_0x2da8a9,_0xdfa339)=>_0x2da8a9[_0xac118f(0x1d9)]-_0xdfa339[_0xac118f(0x1d9)])),(_0x2e39c5=_0x3f28fb['blockRanges'])!=null&&_0x2e39c5[_0xac118f(0x221)]&&(_0x505aca['blockRanges']=[..._0x505aca['blockRanges']??[],..._0x3f28fb[_0xac118f(0x1af)][_0xac118f(0x20d)](_0x7735db=>({..._0x7735db,'startIndex':_0x7735db[_0xac118f(0x1d9)]+_0x4fec72,'endIndex':_0x7735db['endIndex']+_0x4fec72}))][_0xac118f(0x199)]((_0x5bf126,_0x357ef5)=>_0x5bf126['startIndex']-_0x357ef5[_0xac118f(0x1d9)])));}function F(_0x567d38,_0x3846cb,_0x2e3225){const _0x3fa41f=_0x5132d8;let _0x2f2163=_0x2e3225-_0x3846cb;_0x567d38[_0x3fa41f(0x1f2)]=''+_0x567d38[_0x3fa41f(0x1f2)][_0x3fa41f(0x1f0)](0x0,_0x3846cb)+_0x567d38[_0x3fa41f(0x1f2)][_0x3fa41f(0x1f0)](_0x2e3225),tt(_0x567d38,_0x3846cb,_0x2f2163);}function et(_0x2dc533,_0x392dfd,_0x18e3f0){const _0x38b27e=_0x5132d8;_0x2dc533[_0x38b27e(0x19d)]=I(_0x2dc533[_0x38b27e(0x19d)],_0x392dfd,_0x18e3f0),_0x2dc533[_0x38b27e(0x1e6)]=I(_0x2dc533['sectionBreaks'],_0x392dfd,_0x18e3f0),_0x2dc533[_0x38b27e(0x214)]=I(_0x2dc533[_0x38b27e(0x214)],_0x392dfd,_0x18e3f0),_0x2dc533[_0x38b27e(0x227)]=nt(_0x2dc533[_0x38b27e(0x227)],_0x392dfd,_0x18e3f0),_0x2dc533[_0x38b27e(0x1a3)]=rt(_0x2dc533['tables'],_0x392dfd,_0x18e3f0),_0x2dc533[_0x38b27e(0x1d8)]=R(_0x2dc533[_0x38b27e(0x1d8)],_0x392dfd,_0x18e3f0),_0x2dc533['customRanges']=R(_0x2dc533[_0x38b27e(0x224)],_0x392dfd,_0x18e3f0),_0x2dc533[_0x38b27e(0x1f6)]=R(_0x2dc533[_0x38b27e(0x1f6)],_0x392dfd,_0x18e3f0),_0x2dc533['blockRanges']=R(_0x2dc533['blockRanges'],_0x392dfd,_0x18e3f0);}function tt(_0x198c50,_0x26ce51,_0x3aecc3){const _0x49d06a=_0x5132d8;var _0x7af626,_0x4274af;_0x198c50['paragraphs']=L(_0x198c50[_0x49d06a(0x19d)],_0x26ce51,_0x3aecc3),_0x198c50['sectionBreaks']=L(_0x198c50[_0x49d06a(0x1e6)],_0x26ce51,_0x3aecc3),_0x198c50['customBlocks']=L(_0x198c50['customBlocks'],_0x26ce51,_0x3aecc3),_0x198c50[_0x49d06a(0x227)]=(_0x7af626=it((_0x4274af=_0x198c50[_0x49d06a(0x227)])==null?void 0x0:_0x4274af['map'](_0x1a2182=>({..._0x1a2182,'startIndex':_0x1a2182['st'],'endIndex':_0x1a2182['ed']})),_0x26ce51,_0x3aecc3))==null?void 0x0:_0x7af626[_0x49d06a(0x20d)](_0x49e89b=>{let {startIndex:_0x335e20,endIndex:_0x1109a3,..._0x1ffdca}=_0x49e89b;return{..._0x1ffdca,'st':_0x335e20,'ed':_0x1109a3};}),_0x198c50['tables']=it(_0x198c50[_0x49d06a(0x1a3)],_0x26ce51,_0x3aecc3),_0x198c50[_0x49d06a(0x1d8)]=z(_0x198c50['columnGroups'],_0x26ce51,_0x3aecc3),_0x198c50['customRanges']=z(_0x198c50[_0x49d06a(0x224)],_0x26ce51,_0x3aecc3),_0x198c50['customDecorations']=z(_0x198c50[_0x49d06a(0x1f6)],_0x26ce51,_0x3aecc3),_0x198c50['blockRanges']=z(_0x198c50[_0x49d06a(0x1af)],_0x26ce51,_0x3aecc3);}function I(_0x3cffe0,_0x581d94,_0x3279e0){const _0xcf125f=_0x5132d8;return _0x3cffe0==null?void 0x0:_0x3cffe0[_0xcf125f(0x20d)](_0xb5d36b=>_0xb5d36b[_0xcf125f(0x1d9)]>=_0x581d94?{..._0xb5d36b,'startIndex':_0xb5d36b[_0xcf125f(0x1d9)]+_0x3279e0}:_0xb5d36b);}function L(_0x2fb43f,_0x20d3da,_0x2b3878){const _0x395ea8=_0x5132d8;let _0x23941f=_0x20d3da+_0x2b3878;return _0x2fb43f==null?void 0x0:_0x2fb43f[_0x395ea8(0x20d)](_0x18e646=>_0x18e646[_0x395ea8(0x1d9)]>=_0x20d3da&&_0x18e646[_0x395ea8(0x1d9)]<_0x23941f?null:_0x18e646[_0x395ea8(0x1d9)]>=_0x23941f?{..._0x18e646,'startIndex':_0x18e646[_0x395ea8(0x1d9)]-_0x2b3878}:_0x18e646)[_0x395ea8(0x1ae)](_0x24554c=>_0x24554c!=null);}function nt(_0x21fd6f,_0x1b7316,_0x166d44){const _0x2d9f90=_0x5132d8;return _0x21fd6f==null?void 0x0:_0x21fd6f[_0x2d9f90(0x20d)](_0x5caae7=>_0x5caae7['st']>=_0x1b7316?{..._0x5caae7,'st':_0x5caae7['st']+_0x166d44,'ed':_0x5caae7['ed']+_0x166d44}:_0x5caae7['ed']>_0x1b7316?{..._0x5caae7,'ed':_0x5caae7['ed']+_0x166d44}:_0x5caae7);}function R(_0x517e59,_0x2b0f13,_0x42b62e){const _0x1e87df=_0x5132d8;return _0x517e59==null?void 0x0:_0x517e59[_0x1e87df(0x20d)](_0xdd9ad4=>_0x4d85c0(_0xdd9ad4,_0x2b0f13,_0x42b62e));}function rt(_0x2d54ec,_0x87313d,_0x5f3bfb){return _0x2d54ec==null?void 0x0:_0x2d54ec['map'](_0x131093=>_0x41443a(_0x131093,_0x87313d,_0x5f3bfb));}function z(_0x59f7b4,_0x3cc67d,_0x5c18e6){const _0x4df9a3=_0x5132d8;return _0x59f7b4==null?void 0x0:_0x59f7b4[_0x4df9a3(0x20d)](_0x5dd9db=>_0x3b01e8(_0x5dd9db,_0x3cc67d,_0x5c18e6))[_0x4df9a3(0x1ae)](_0x5e972e=>_0x5e972e!=null);}function it(_0x4cbab6,_0x52171e,_0x3b84e2){const _0x2650e6=_0x5132d8;return _0x4cbab6==null?void 0x0:_0x4cbab6[_0x2650e6(0x20d)](_0x5b7cb1=>_0x1c6252(_0x5b7cb1,_0x52171e,_0x3b84e2))[_0x2650e6(0x1ae)](_0x19196d=>_0x19196d!=null);}const at={'id':_0x5132d8(0x21d),'type':_0x1a72f7['COMMAND'],'handler':_0x21e8fc=>{const _0x542faf=_0x5132d8;var _0x5e0e5f;if(_0x42dbdb(G(_0x21e8fc)))return!0x1;let _0x3ac273=_0x227e30(_0x21e8fc);if(_0x3ac273)return _0x21e8fc[_0x542faf(0x1ed)](_0x5b460c)['syncExecuteCommand'](B['id'],{'startOffset':_0x3ac273[_0x542faf(0x1b7)],'endOffset':_0x3ac273[_0x542faf(0x207)],'insertionMode':'insert-new','unitId':_0x3ac273[_0x542faf(0x220)]});let _0xec9b0=ft(_0x21e8fc);if(!_0xec9b0)return!0x1;let _0x30b9ca=(_0x5e0e5f=_0x21e8fc['get'](_0x5838d6)['getCurrentUnitOfType'](_0x5872e5[_0x542faf(0x1fc)]))==null?void 0x0:_0x5e0e5f[_0x542faf(0x1b6)](),_0x18b9d2=_0x30b9ca?_0x899368(_0x30b9ca,_0xec9b0):_0xec9b0[_0x542faf(0x1d9)]+0x1;return _0x21e8fc[_0x542faf(0x1ed)](_0x5b460c)['syncExecuteCommand'](B['id'],{'startOffset':_0x18b9d2,'endOffset':_0x18b9d2});}},ot={'id':_0x5132d8(0x217),'type':_0x1a72f7[_0x5132d8(0x22e)],'handler':()=>!0x0},B={'id':_0x5132d8(0x1f7),'type':_0x1a72f7[_0x5132d8(0x22e)],'handler':(_0x1b5547,_0x1e6c2a)=>{const _0x5db062=_0x5132d8;let _0x27fa04=W(_0x1b5547,_0x1e6c2a==null?void 0x0:_0x1e6c2a[_0x5db062(0x220)]);if(!_0x27fa04)return!0x1;let _0x59c39d=G(_0x1b5547);if(_0x42dbdb(_0x59c39d))return!0x1;let _0x4d53d4=_0x27fa04[_0x5db062(0x216)]['serialize'](_0x27fa04[_0x5db062(0x220)]),_0x4443d8=lt(_0x1e6c2a,_0x59c39d),_0x354b37=ut(_0x27fa04[_0x5db062(0x1f3)],_0x4443d8);if(_0x354b37){if(_0x354b37[_0x5db062(0x1ab)]!==_0x2a89d4[_0x5db062(0x22b)])return!0x1;let _0x2d221b=D({'blockId':_0x354b37[_0x5db062(0x1cf)],'documentData':_0x27fa04[_0x5db062(0x1f3)],'metadata':_0x4d53d4});if(!_0x2d221b)return!0x1;let _0x2af3c2=Y(_0x27fa04[_0x5db062(0x1e2)],_0x27fa04[_0x5db062(0x20c)],_0x27fa04[_0x5db062(0x220)],_0x27fa04[_0x5db062(0x1f3)],_0x2d221b[_0x5db062(0x215)],B['id'],_0x2d221b[_0x5db062(0x1ea)]);return _0x2af3c2&&_0x2d221b[_0x5db062(0x230)]&&_0x27fa04[_0x5db062(0x216)][_0x5db062(0x1f9)](_0x27fa04['unitId'],_0x2d221b[_0x5db062(0x230)]),_0x2af3c2;}let _0x25a83d=(_0x1e6c2a==null?void 0x0:_0x1e6c2a[_0x5db062(0x1cf)])??_0x4a7f6a(0x6),_0x573388;try{_0x573388=De({'blockId':_0x25a83d,'config':_0x1e6c2a==null?void 0x0:_0x1e6c2a[_0x5db062(0x1b2)],'documentData':_0x27fa04[_0x5db062(0x1f3)],'endOffset':_0x4443d8==null?void 0x0:_0x4443d8[_0x5db062(0x207)],'insertionMode':_0x1e6c2a==null?void 0x0:_0x1e6c2a[_0x5db062(0x225)],'metadata':_0x4d53d4,'startOffset':_0x4443d8==null?void 0x0:_0x4443d8[_0x5db062(0x1b7)]});}catch(_0x36ff7e){if(_0x36ff7e instanceof E)return!0x1;throw _0x36ff7e;}let _0x35492f=Y(_0x27fa04[_0x5db062(0x1e2)],_0x27fa04[_0x5db062(0x20c)],_0x27fa04[_0x5db062(0x220)],_0x27fa04[_0x5db062(0x1f3)],_0x573388[_0x5db062(0x215)],B['id'],_0x573388[_0x5db062(0x1ea)]);return _0x35492f&&_0x573388[_0x5db062(0x230)]&&_0x27fa04[_0x5db062(0x216)][_0x5db062(0x1f9)](_0x27fa04[_0x5db062(0x220)],_0x573388[_0x5db062(0x230)]),_0x35492f;}},st={'id':_0x5132d8(0x195),'type':_0x1a72f7[_0x5132d8(0x22e)],'handler':(_0x468836,_0x12b0ef)=>{const _0x17a4f2=_0x5132d8;if(!_0x12b0ef)return!0x1;let _0x5b387b=W(_0x468836,_0x12b0ef['unitId']);if(!_0x5b387b)return!0x1;let _0x294ec9=je({'blockId':_0x12b0ef['blockId'],'config':_0x12b0ef['config'],'documentData':_0x5b387b[_0x17a4f2(0x1f3)],'metadata':_0x5b387b[_0x17a4f2(0x216)][_0x17a4f2(0x1d5)](_0x5b387b[_0x17a4f2(0x220)])});return _0x294ec9[_0x17a4f2(0x230)]&&_0x5b387b['model'][_0x17a4f2(0x1f9)](_0x5b387b[_0x17a4f2(0x220)],_0x294ec9[_0x17a4f2(0x230)]),!0x0;}},ct={'id':'docs-code.command.exit','type':_0x1a72f7[_0x5132d8(0x22e)],'handler':(_0x4f1b72,_0x4c40bf)=>V[_0x5132d8(0x1b8)](_0x4f1b72,_0x4c40bf)},V={'id':_0x5132d8(0x1fb),'type':_0x1a72f7[_0x5132d8(0x22e)],'handler':(_0x162f83,_0x54d978)=>{const _0x5ef94f=_0x5132d8;if(!_0x54d978)return!0x1;let _0x519901=W(_0x162f83,_0x54d978==null?void 0x0:_0x54d978[_0x5ef94f(0x220)]);if(!_0x519901)return!0x1;let _0x39e369=D({'blockId':_0x54d978[_0x5ef94f(0x1cf)],'documentData':_0x519901[_0x5ef94f(0x1f3)],'metadata':_0x519901['model'][_0x5ef94f(0x1d5)](_0x519901[_0x5ef94f(0x220)])});if(!_0x39e369)return!0x1;let _0x5265ae=Y(_0x519901['commandService'],_0x519901['selectionManager'],_0x519901['unitId'],_0x519901['previousDocumentData'],_0x39e369['nextDocumentData'],V['id'],_0x39e369[_0x5ef94f(0x1ea)]);return _0x5265ae&&_0x39e369[_0x5ef94f(0x230)]&&_0x519901[_0x5ef94f(0x216)][_0x5ef94f(0x1f9)](_0x519901[_0x5ef94f(0x220)],_0x39e369[_0x5ef94f(0x230)]),_0x5265ae;}},H={'id':_0x5132d8(0x19e),'type':_0x1a72f7['COMMAND'],'handler':(_0x2b7b88,_0x57be06)=>{const _0x40947a=_0x5132d8;if(!_0x57be06)return!0x1;let _0xb81c77=W(_0x2b7b88,_0x57be06==null?void 0x0:_0x57be06[_0x40947a(0x220)]);if(!_0xb81c77)return!0x1;let _0x1f8af0=Me({'blockId':_0x57be06[_0x40947a(0x1cf)],'documentData':_0xb81c77[_0x40947a(0x1f3)],'metadata':_0xb81c77[_0x40947a(0x216)]['serialize'](_0xb81c77[_0x40947a(0x220)])});if(!_0x1f8af0)return!0x1;let _0x58b74d=Y(_0xb81c77[_0x40947a(0x1e2)],_0xb81c77[_0x40947a(0x20c)],_0xb81c77[_0x40947a(0x220)],_0xb81c77[_0x40947a(0x1f3)],_0x1f8af0[_0x40947a(0x215)],H['id'],_0x1f8af0['cursorOffset']);return _0x58b74d&&_0x1f8af0[_0x40947a(0x230)]&&_0xb81c77[_0x40947a(0x216)][_0x40947a(0x1f9)](_0xb81c77[_0x40947a(0x220)],_0x1f8af0[_0x40947a(0x230)]),_0x58b74d;}},U={'id':_0x5132d8(0x1c3),'type':_0x1a72f7['COMMAND'],'handler':(_0xc6360e,_0x41da9d)=>{const _0x779e2a=_0x5132d8;var _0x52feca;let _0x153313=W(_0xc6360e,_0x41da9d==null?void 0x0:_0x41da9d[_0x779e2a(0x220)]);if(!_0x153313)return!0x1;let _0x32e836=(_0x41da9d==null?void 0x0:_0x41da9d[_0x779e2a(0x1ea)])??((_0x52feca=G(_0xc6360e))==null?void 0x0:_0x52feca[_0x779e2a(0x1b7)]);if(_0x32e836==null)return!0x1;let _0x592de1=Ne({'cursorOffset':_0x32e836,'documentData':_0x153313[_0x779e2a(0x1f3)],'paragraphStartIndex':_0x41da9d==null?void 0x0:_0x41da9d[_0x779e2a(0x1da)]});return _0x592de1?Y(_0x153313[_0x779e2a(0x1e2)],_0x153313[_0x779e2a(0x20c)],_0x153313['unitId'],_0x153313['previousDocumentData'],_0x592de1['nextDocumentData'],U['id'],_0x592de1[_0x779e2a(0x1ea)]):!0x1;}};function W(_0x33b508,_0x33a911){const _0x15821d=_0x5132d8;let _0x2f7f1d=_0x33b508['get'](_0x5838d6),_0x433431=_0x33a911?_0x2f7f1d[_0x15821d(0x190)](_0x33a911,_0x5872e5[_0x15821d(0x1fc)]):_0x2f7f1d[_0x15821d(0x1bf)](_0x5872e5['UNIVER_DOC']);return _0x433431?{'commandService':_0x33b508[_0x15821d(0x1ed)](_0x5b460c),'model':_0x33b508[_0x15821d(0x1ed)](w),'previousDocumentData':_0x433431['getSnapshot'](),'selectionManager':_0x33b508[_0x15821d(0x1ed)](_0x23046e),'unitId':_0x433431[_0x15821d(0x228)]()}:null;}function G(_0x24ab11){const _0x288b5c=_0x5132d8;var _0x45a908;return(_0x45a908=_0x24ab11[_0x288b5c(0x1ed)](_0x23046e)[_0x288b5c(0x1b1)]())==null?void 0x0:_0x45a908[0x0];}function lt(_0x2727ff,_0x2defa3){const _0x3c29b2=_0x5132d8;let _0x200cde=(_0x2727ff==null?void 0x0:_0x2727ff[_0x3c29b2(0x1b7)])??(_0x2defa3==null?void 0x0:_0x2defa3[_0x3c29b2(0x1b7)]),_0x295cac=(_0x2727ff==null?void 0x0:_0x2727ff[_0x3c29b2(0x207)])??(_0x2defa3==null?void 0x0:_0x2defa3[_0x3c29b2(0x207)]);if(_0x200cde!=null&&_0x295cac!=null)return{'endOffset':Math[_0x3c29b2(0x1cd)](_0x200cde,_0x295cac),'startOffset':Math['min'](_0x200cde,_0x295cac)};}function ut(_0x346b41,_0x245928){const _0x5d4066=_0x5132d8;var _0x4baebb;if(!_0x245928)return;let _0x4c0f61=dt(_0x245928);return(_0x4baebb=_0x346b41[_0x5d4066(0x1cc)])==null||(_0x4baebb=_0x4baebb[_0x5d4066(0x1af)])==null?void 0x0:_0x4baebb[_0x5d4066(0x1ff)](_0x3d9b7e=>{const _0x236cbf=_0x5d4066;let _0x17c609=_0x4a229d(_0x3d9b7e);return _0x245928[_0x236cbf(0x1b7)]===_0x245928[_0x236cbf(0x207)]?_0x48e4df(_0x17c609,_0x4c0f61):_0x25de02(_0x17c609,_0x4c0f61);});}function dt(_0x595b3f){const _0x3ec310=_0x5132d8;return _0x595b3f[_0x3ec310(0x1b7)]===_0x595b3f[_0x3ec310(0x207)]?_0x595b3f['startOffset']:_0x595b3f['startOffset']+0x1;}function ft(_0x13dba3){const _0x36898b=_0x5132d8;let _0x4226ab=G(_0x13dba3);if(!_0x4226ab)return null;let _0x3dbb10=_0x13dba3['get'](_0x5838d6)[_0x36898b(0x1bf)](_0x5872e5[_0x36898b(0x1fc)]),_0x1868b8=_0x3dbb10==null?void 0x0:_0x3dbb10[_0x36898b(0x1b6)]();return _0x1868b8?_0x433516[_0x36898b(0x1ee)][_0x36898b(0x219)](_0x4226ab,_0x1868b8[_0x36898b(0x19d)]??[],_0x1868b8[_0x36898b(0x1f2)]??'')[0x0]??null:null;}function pt(_0x17a6bd,_0x103437){const _0x4cc0d5=_0x5132d8;let _0x17e241=_0x17a6bd['body'],_0x59c299=_0x103437[_0x4cc0d5(0x1cc)],_0x15a9f3=_0x49ee49(_0x17e241,_0x59c299);return[_0x15a9f3&&_0x59c299?mt(_0x59c299,_0x15a9f3):null,_0x15a9f3?null:ht(_0x17e241,_0x59c299)][_0x4cc0d5(0x1ae)](Boolean)[_0x4cc0d5(0x212)]((_0x4e9a69,_0xa4cf15)=>_0x126099['compose'](_0x4e9a69,_0xa4cf15),null);}function mt(_0x253007,_0x1d52e5){const _0x5246e1=_0x5132d8;let _0x53e239=new _0x3ed338();return _0x53e239[_0x5246e1(0x1ca)](_0x1d52e5[_0x5246e1(0x1a1)]),_0x1d52e5[_0x5246e1(0x1df)]>0x0&&_0x53e239[_0x5246e1(0x1ce)](_0x1d52e5[_0x5246e1(0x1df)],_0x11d3a7(_0x253007,_0x1d52e5['start'],_0x1d52e5['start']+_0x1d52e5['insertLength'],!0x1)),_0x1d52e5[_0x5246e1(0x1a8)]>0x0&&_0x53e239[_0x5246e1(0x21a)](_0x1d52e5[_0x5246e1(0x1a8)]),_0x126099[_0x5246e1(0x1fd)]()[_0x5246e1(0x21b)](_0x53e239[_0x5246e1(0x1d5)](),[_0x5246e1(0x1cc)]);}function ht(_0x208616,_0x4f04b6){const _0x295d16=_0x5132d8;let _0x3b9829=[],_0x15a0ea=_0x208616?_t(_0x208616):void 0x0,_0x48cc22=_0x4f04b6?_t(_0x4f04b6):void 0x0;for(let _0x3b504b of gt)K(_0x126099[_0x295d16(0x1fd)](),['body',_0x3b504b],_0x15a0ea==null?void 0x0:_0x15a0ea[_0x3b504b],_0x48cc22==null?void 0x0:_0x48cc22[_0x3b504b],_0x3b9829);return _0x3b9829[_0x295d16(0x212)]((_0xf6bce5,_0x52bc46)=>_0x126099[_0x295d16(0x1d4)](_0xf6bce5,_0x52bc46),null);}const gt=['paragraphs',_0x5132d8(0x1e6),_0x5132d8(0x1a3),'columnGroups',_0x5132d8(0x1af),_0x5132d8(0x214),_0x5132d8(0x224),_0x5132d8(0x1f6),_0x5132d8(0x227)];function _t(_0x282f7f){return _0x282f7f;}function K(_0x4643a0,_0x4a118b,_0x3971b2,_0xbe8834,_0x31dbeb){const _0x4575a3=_0x5132d8;J(_0x3971b2,_0xbe8834)||(_0x3971b2==null?_0x31dbeb[_0x4575a3(0x1bd)](_0x4643a0[_0x4575a3(0x1d3)](_0x4a118b,_0xbe8834)):_0xbe8834==null?_0x31dbeb['push'](_0x4643a0[_0x4575a3(0x1cb)](_0x4a118b,_0x3971b2)):Array['isArray'](_0x3971b2)&&Array[_0x4575a3(0x1b4)](_0xbe8834)?vt(_0x4643a0,_0x4a118b,_0x3971b2,_0xbe8834,_0x31dbeb):q(_0x3971b2)&&q(_0xbe8834)?new Set([...Object[_0x4575a3(0x1b9)](_0x3971b2),...Object[_0x4575a3(0x1b9)](_0xbe8834)])['forEach'](_0x4a61fc=>{K(_0x4643a0,[..._0x4a118b,_0x4a61fc],_0x3971b2[_0x4a61fc],_0xbe8834[_0x4a61fc],_0x31dbeb);}):_0x31dbeb['push'](_0x4643a0[_0x4575a3(0x1fa)](_0x4a118b,_0x3971b2,_0xbe8834)));}function vt(_0x17b88f,_0x2f94dc,_0x1acea5,_0x322ba8,_0xba8953){const _0x2801ca=_0x5132d8;if(_0x1acea5[_0x2801ca(0x221)]===_0x322ba8[_0x2801ca(0x221)]){_0x1acea5[_0x2801ca(0x1e1)]((_0x4c1654,_0x23a222)=>K(_0x17b88f,[..._0x2f94dc,_0x23a222],_0x4c1654,_0x322ba8[_0x23a222],_0xba8953));return;}let _0x1ab7b0=0x0;for(;_0x1ab7b0<_0x1acea5[_0x2801ca(0x221)]&&_0x1ab7b0<_0x322ba8[_0x2801ca(0x221)]&&J(_0x1acea5[_0x1ab7b0],_0x322ba8[_0x1ab7b0]);)_0x1ab7b0++;let _0x522f12=_0x1acea5[_0x2801ca(0x221)]-0x1,_0x17010c=_0x322ba8['length']-0x1;for(;_0x522f12>=_0x1ab7b0&&_0x17010c>=_0x1ab7b0&&J(_0x1acea5[_0x522f12],_0x322ba8[_0x17010c]);)_0x522f12--,_0x17010c--;for(let _0x41f191=_0x522f12;_0x41f191>=_0x1ab7b0;_0x41f191--)_0xba8953[_0x2801ca(0x1bd)](_0x17b88f[_0x2801ca(0x1cb)]([..._0x2f94dc,_0x41f191],_0x1acea5[_0x41f191]));for(let _0x4c47ee=_0x1ab7b0;_0x4c47ee<=_0x17010c;_0x4c47ee++)_0xba8953[_0x2801ca(0x1bd)](_0x17b88f[_0x2801ca(0x1d3)]([..._0x2f94dc,_0x4c47ee],_0x322ba8[_0x4c47ee]));}function q(_0x4b00d8){const _0x39ef00=_0x5132d8;return typeof _0x4b00d8=='object'&&!!_0x4b00d8&&!Array[_0x39ef00(0x1b4)](_0x4b00d8);}function J(_0x3c4736,_0xb4c689){const _0x438e73=_0x5132d8;return JSON[_0x438e73(0x22a)](_0x3c4736)===JSON[_0x438e73(0x22a)](_0xb4c689);}function Y(_0x455fd2,_0x3c39c3,_0x3ad932,_0x77bb8e,_0x164305,_0x5cbdb7,_0x55de1f){const _0x531864=_0x5132d8;let _0x5b4483=pt(_0x77bb8e,_0x164305);return _0x5b4483?!!_0x455fd2['syncExecuteCommand'](_0x331b69['id'],{'unitId':_0x3ad932,'actions':_0x5b4483,'textRanges':[{'startOffset':_0x55de1f,'endOffset':_0x55de1f,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x5cbdb7}):(_0x3c39c3[_0x531864(0x191)]([{'startOffset':_0x55de1f,'endOffset':_0x55de1f}],{'unitId':_0x3ad932,'subUnitId':_0x3ad932},!0x1),!0x0);}const X=_0x5132d8(0x200);var yt='@univerjs-pro/docs-code',bt=_0x5132d8(0x1de);const xt={};function Z(_0x1d16fd,_0x501611){return function(_0xcd2ad8,_0xaad4ae){_0x501611(_0xcd2ad8,_0xaad4ae,_0x1d16fd);};}function St(_0xc5050f,_0x39b330,_0x28d4cd,_0x301cc0){const _0x5ba393=_0x5132d8;var _0x153af3=arguments[_0x5ba393(0x221)],_0x29c066=_0x153af3<0x3?_0x39b330:_0x301cc0===null?_0x301cc0=Object[_0x5ba393(0x21c)](_0x39b330,_0x28d4cd):_0x301cc0,_0x20a4ed;if(typeof Reflect==_0x5ba393(0x1c9)&&typeof Reflect[_0x5ba393(0x20b)]==_0x5ba393(0x210))_0x29c066=Reflect[_0x5ba393(0x20b)](_0xc5050f,_0x39b330,_0x28d4cd,_0x301cc0);else{for(var _0x1043e6=_0xc5050f[_0x5ba393(0x221)]-0x1;_0x1043e6>=0x0;_0x1043e6--)(_0x20a4ed=_0xc5050f[_0x1043e6])&&(_0x29c066=(_0x153af3<0x3?_0x20a4ed(_0x29c066):_0x153af3>0x3?_0x20a4ed(_0x39b330,_0x28d4cd,_0x29c066):_0x20a4ed(_0x39b330,_0x28d4cd))||_0x29c066);}return _0x153af3>0x3&&_0x29c066&&Object['defineProperty'](_0x39b330,_0x28d4cd,_0x29c066),_0x29c066;}let Q=class extends _0x1fa454{constructor(_0x117c60,_0x29be36){const _0x2d46bc=_0x5132d8;super(),this[_0x2d46bc(0x201)]=_0x117c60,this[_0x2d46bc(0x193)]=_0x29be36,this[_0x2d46bc(0x1c1)]();}['_initResource'](){const _0x30ebe0=_0x5132d8;this[_0x30ebe0(0x22f)](this[_0x30ebe0(0x201)]['registerPluginResource']({'pluginName':X,'businesses':[_0x5872e5[_0x30ebe0(0x1fc)]],'toJson':_0x449c54=>JSON[_0x30ebe0(0x22a)](this[_0x30ebe0(0x193)][_0x30ebe0(0x1d5)](_0x449c54)),'parseJson':_0x5a2425=>y(JSON['parse'](_0x5a2425)),'onLoad':(_0x525547,_0xdec80b)=>this[_0x30ebe0(0x193)][_0x30ebe0(0x1f9)](_0x525547,_0xdec80b),'onUnLoad':_0x16f0d3=>this[_0x30ebe0(0x193)][_0x30ebe0(0x1e8)](_0x16f0d3)}));}};Q=St([Z(0x0,_0xb2d34),Z(0x1,_0x44aea7(w))],Q);let $=class extends _0x1f77c2{constructor(_0xa87efc=xt,_0x576b2d,_0x527714,_0x24cdf6){const _0x871ad8=_0x5132d8;super(),this['_config']=_0xa87efc,this[_0x871ad8(0x1c7)]=_0x576b2d,this['_commandService']=_0x527714,this[_0x871ad8(0x20a)]=_0x24cdf6;let {..._0x58cdbb}=_0x337304({},xt,this[_0x871ad8(0x192)]);this[_0x871ad8(0x20a)][_0x871ad8(0x204)](_0x871ad8(0x1d2),_0x58cdbb);}['onStarting'](){const _0x866ab=_0x5132d8;this[_0x866ab(0x1c7)]['add']([w]),this[_0x866ab(0x1c7)][_0x866ab(0x1f1)]([Q]),this[_0x866ab(0x1c7)][_0x866ab(0x1ed)](w),this['_injector'][_0x866ab(0x1ed)](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x866ab(0x1e1)](_0x26533a=>this['disposeWithMe'](this[_0x866ab(0x1d0)][_0x866ab(0x20f)](_0x26533a)));}};C($,_0x5132d8(0x223),X),C($,_0x5132d8(0x1ef),yt),C($,'version',bt),C($,_0x5132d8(0x19a),_0x5872e5[_0x5132d8(0x1fc)]),$=St([_0x17fb0a(_0x3b1fe5,_0x1908df),Z(0x1,_0x44aea7(_0x3db901)),Z(0x2,_0x5b460c),Z(0x3,_0x5ab5a7)],$);export{X as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,ot as DocsCodeConsumeBoundaryDeleteCommand,at as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,w as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,st as DocsCodeUpdateCommand,T as RemoveDocsCodeConfigMutation,Te as SetDocsCodeConfigMutation,$ as UniverDocsCodePlugin,Ne as buildCancelEmptyCodeParagraphActions,Ie as isCodeBoundaryDelete,v as normalizeDocsCodeConfig,y as normalizeDocsCodeMetadataResource};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x454cda=_0xf65b;(function(_0x18da58,_0x5814b4){var _0x5ba29f=_0xf65b,_0x2fedaa=_0x18da58();while(!![]){try{var _0xe23b49=-parseInt(_0x5ba29f(0x133))/0x1*(parseInt(_0x5ba29f(0xff))/0x2)+parseInt(_0x5ba29f(0x138))/0x3*(parseInt(_0x5ba29f(0x129))/0x4)+parseInt(_0x5ba29f(0x117))/0x5*(-parseInt(_0x5ba29f(0x11a))/0x6)+parseInt(_0x5ba29f(0x134))/0x7+-parseInt(_0x5ba29f(0x11b))/0x8+parseInt(_0x5ba29f(0x10b))/0x9+-parseInt(_0x5ba29f(0x127))/0xa*(-parseInt(_0x5ba29f(0x116))/0xb);if(_0xe23b49===_0x5814b4)break;else _0x2fedaa['push'](_0x2fedaa['shift']());}catch(_0x35e30b){_0x2fedaa['push'](_0x2fedaa['shift']());}}}(_0x10a6,0x4470f));import{DocsCodeInsertCommand as _0x16c891,DocsCodeModel as _0x805eb5,DocsCodeRemoveCommand as _0x294e96,DocsCodeUnwrapCommand as _0x979ca5,DocsCodeUpdateCommand as _0x1140a7,normalizeDocsCodeConfig as _0x55cc5a}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x2f04cf,DocumentBlockRangeType as _0x5168ad,ICommandService as _0x159a60,Inject as _0x4576da,Injector as _0x578cc1,generateRandomId as _0x457348}from'@univerjs/core';function _0x10a6(){var _0x5a0e0f=['includes','getText','105605mTQvHw','1994405gfkYyn','_createFDocumentCode','_getBlockRanges','createInstance','193239LMYhQB','BLOCK_START','_blockId','config','save','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','map','prototype','startIndex','8iZMtvE','body','BLOCK_END','CODE','get','getCodes','slice','_document','_unitId','blockRanges','remove','getRange','3408093ZzTAsL','unwrap','updateConfig','default','getOwnPropertyDescriptor','defineProperty','PARAGRAPH','SECTION_BREAK','findCodes','text','length','110Qcgidv','45zWWaHx','_getBlockRange','dataStream','140358PbPnUC','2698712nUDNnQ','symbol','join','blockType','replace','endIndex','blockId','constructor','_getDocumentData','_injector','getId','syncExecuteCommand','393800kqUkuy','getConfig','12Htriic','filter','find','object','string','toPrimitive','function','getCode'];_0x10a6=function(){return _0x5a0e0f;};return _0x10a6();}import{FDocument as _0x1f649b,isParagraphFacade as _0x56c875}from'@univerjs/docs/facade';function m(_0x15e898){'@babel/helpers - typeof';var _0x38e9e8=_0xf65b;return m=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x38e9e8(0x11c)?function(_0x52052e){return typeof _0x52052e;}:function(_0x1bf1ac){var _0x12f812=_0x38e9e8;return _0x1bf1ac&&typeof Symbol==_0x12f812(0x12f)&&_0x1bf1ac[_0x12f812(0x122)]===Symbol&&_0x1bf1ac!==Symbol[_0x12f812(0xfd)]?_0x12f812(0x11c):typeof _0x1bf1ac;},m(_0x15e898);}function h(_0x298bb8,_0x30c975){var _0x379f3b=_0xf65b;if(m(_0x298bb8)!=_0x379f3b(0x12c)||!_0x298bb8)return _0x298bb8;var _0x4503d0;if(typeof Symbol<'u'&&(_0x4503d0=_0x298bb8[Symbol[_0x379f3b(0x12e)]])!==void 0x0){var _0x30f09b=_0x4503d0['call'](_0x298bb8,_0x30c975||_0x379f3b(0x10e));if(m(_0x30f09b)!=_0x379f3b(0x12c))return _0x30f09b;throw TypeError(_0x379f3b(0xfb));}return(_0x30c975==='string'?String:Number)(_0x298bb8);}function g(_0x2bb9ad){var _0x3657da=_0xf65b,_0x153e53=h(_0x2bb9ad,'string');return m(_0x153e53)==_0x3657da(0x11c)?_0x153e53:_0x153e53+'';}function _(_0x451246,_0x175405,_0x2c5c82){var _0x445122=_0xf65b;return(_0x175405=g(_0x175405))in _0x451246?Object[_0x445122(0x110)](_0x451246,_0x175405,{'value':_0x2c5c82,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x451246[_0x175405]=_0x2c5c82,_0x451246;}function _0xf65b(_0x56dda8,_0x64a3ea){_0x56dda8=_0x56dda8-0xf8;var _0x10a635=_0x10a6();var _0xf65b54=_0x10a635[_0x56dda8];return _0xf65b54;}function v(_0x22a5fa,_0x173e60){return function(_0x63f207,_0x1da19f){_0x173e60(_0x63f207,_0x1da19f,_0x22a5fa);};}function y(_0x234ba9,_0x53fab2,_0x415928,_0x1a5c18){var _0x171b09=_0xf65b,_0x29011a=arguments[_0x171b09(0x115)],_0x558c5c=_0x29011a<0x3?_0x53fab2:_0x1a5c18===null?_0x1a5c18=Object[_0x171b09(0x10f)](_0x53fab2,_0x415928):_0x1a5c18,_0x19ef70;if(typeof Reflect==_0x171b09(0x12c)&&typeof Reflect['decorate']==_0x171b09(0x12f))_0x558c5c=Reflect['decorate'](_0x234ba9,_0x53fab2,_0x415928,_0x1a5c18);else{for(var _0x1637d8=_0x234ba9[_0x171b09(0x115)]-0x1;_0x1637d8>=0x0;_0x1637d8--)(_0x19ef70=_0x234ba9[_0x1637d8])&&(_0x558c5c=(_0x29011a<0x3?_0x19ef70(_0x558c5c):_0x29011a>0x3?_0x19ef70(_0x53fab2,_0x415928,_0x558c5c):_0x19ef70(_0x53fab2,_0x415928))||_0x558c5c);}return _0x29011a>0x3&&_0x558c5c&&Object[_0x171b09(0x110)](_0x53fab2,_0x415928,_0x558c5c),_0x558c5c;}let b=class{constructor(_0x4b6aae,_0x3e4f0e,_0x5d8a07){var _0x5f01ef=_0xf65b;this[_0x5f01ef(0x106)]=_0x4b6aae,this[_0x5f01ef(0xf8)]=_0x3e4f0e,this[_0x5f01ef(0x124)]=_0x5d8a07,_(this,_0x5f01ef(0x107),void 0x0),this[_0x5f01ef(0x107)]=this[_0x5f01ef(0x106)]['getId']();}[_0x454cda(0x125)](){return this['_blockId'];}[_0x454cda(0x10a)](){var _0x496c19=_0x454cda;let _0x321ccb=this[_0x496c19(0x118)]();return _0x321ccb?{'blockId':_0x321ccb[_0x496c19(0x121)],'endIndex':_0x321ccb[_0x496c19(0x120)],'startIndex':_0x321ccb[_0x496c19(0xfe)]}:null;}['getText'](){var _0x5d1c27=_0x454cda,_0x237a5d;let _0x5cb00b=this[_0x5d1c27(0x118)](),_0x4a656a=(_0x237a5d=this[_0x5d1c27(0x123)]()[_0x5d1c27(0x100)])==null?void 0x0:_0x237a5d[_0x5d1c27(0x119)];return!_0x5cb00b||!_0x4a656a?'':x(_0x4a656a[_0x5d1c27(0x105)](_0x5cb00b[_0x5d1c27(0xfe)]+0x1,_0x5cb00b['endIndex']));}['describe'](){var _0x5d0315=_0x454cda;let _0x705b78=this[_0x5d0315(0x10a)]();return _0x705b78?{..._0x705b78,'config':this[_0x5d0315(0x128)](),'text':this['getText'](),'type':_0x5168ad[_0x5d0315(0x102)]}:null;}['getConfig'](){var _0x4d35a7=_0x454cda;let _0xefaa74=this[_0x4d35a7(0x124)][_0x4d35a7(0x103)](_0x805eb5);return _0x55cc5a(_0xefaa74['getCodeConfig'](this[_0x4d35a7(0x107)],this[_0x4d35a7(0xf8)]));}[_0x454cda(0x10d)](_0x58617d){var _0x390938=_0x454cda;return this['_injector'][_0x390938(0x103)](_0x159a60)[_0x390938(0x126)](_0x1140a7['id'],{'blockId':this[_0x390938(0xf8)],'config':_0x58617d[_0x390938(0xf9)],'unitId':this[_0x390938(0x107)]});}[_0x454cda(0x10c)](){var _0x5bd9ef=_0x454cda;return this[_0x5bd9ef(0x124)]['get'](_0x159a60)[_0x5bd9ef(0x126)](_0x979ca5['id'],{'blockId':this[_0x5bd9ef(0xf8)],'unitId':this[_0x5bd9ef(0x107)]});}[_0x454cda(0x109)](){var _0x9db0e2=_0x454cda;return this['_injector']['get'](_0x159a60)[_0x9db0e2(0x126)](_0x294e96['id'],{'blockId':this[_0x9db0e2(0xf8)],'unitId':this[_0x9db0e2(0x107)]});}[_0x454cda(0x118)](){var _0x2b2a84=_0x454cda,_0x115903;return((_0x115903=this[_0x2b2a84(0x123)]()['body'])==null||(_0x115903=_0x115903[_0x2b2a84(0x108)])==null?void 0x0:_0x115903['find'](_0xf277ee=>_0xf277ee[_0x2b2a84(0x121)]===this[_0x2b2a84(0xf8)]&&_0xf277ee[_0x2b2a84(0x11e)]===_0x5168ad[_0x2b2a84(0x102)]))??null;}[_0x454cda(0x123)](){var _0x51c125=_0x454cda;return this['_document'][_0x51c125(0xfa)]();}};b=y([v(0x2,_0x4576da(_0x578cc1))],b);function x(_0x95207){var _0x4620ef=_0x454cda;return Array['from'](_0x95207)[_0x4620ef(0xfc)](_0x594d17=>_0x594d17===_0x2f04cf[_0x4620ef(0x111)]?'\x0a':_0x594d17)['filter'](_0x4eea5b=>_0x4eea5b!==_0x2f04cf[_0x4620ef(0x139)]&&_0x4eea5b!==_0x2f04cf[_0x4620ef(0x101)]&&_0x4eea5b!==_0x2f04cf[_0x4620ef(0x112)])[_0x4620ef(0x11d)]('')[_0x4620ef(0x11f)](/\n$/,'');}var S=class extends _0x1f649b{['getCodes'](){var _0x54834c=_0x454cda;return this[_0x54834c(0x136)]()[_0x54834c(0x12a)](_0x40ea23=>_0x40ea23[_0x54834c(0x11e)]===_0x5168ad[_0x54834c(0x102)])[_0x54834c(0xfc)](_0x13b93c=>this[_0x54834c(0x135)](_0x13b93c['blockId']));}[_0x454cda(0x130)](_0x153ac3){var _0xe5ae0=_0x454cda;return this[_0xe5ae0(0x136)]()['some'](_0x4f951=>_0x4f951[_0xe5ae0(0x121)]===_0x153ac3&&_0x4f951['blockType']===_0x5168ad[_0xe5ae0(0x102)])?this[_0xe5ae0(0x135)](_0x153ac3):null;}['getCodeAt'](_0x55ef33){var _0x4b63c7=_0x454cda;let _0xc46ab5=this[_0x4b63c7(0x136)]()[_0x4b63c7(0x12b)](_0x5e6e2a=>_0x5e6e2a[_0x4b63c7(0x11e)]===_0x5168ad['CODE']&&_0x5e6e2a['startIndex']<=_0x55ef33&&_0x55ef33<=_0x5e6e2a[_0x4b63c7(0x120)]);return _0xc46ab5?this['_createFDocumentCode'](_0xc46ab5['blockId']):null;}['findCodeByText'](_0x474f25){var _0x2b2429=_0x454cda;return this[_0x2b2429(0x113)](_0x474f25)[0x0]??null;}[_0x454cda(0x113)](_0x1fb8a1){var _0x506d05=_0x454cda;let _0x281f4e=typeof _0x1fb8a1==_0x506d05(0x12d)?{'text':_0x1fb8a1}:_0x1fb8a1;return this[_0x506d05(0x104)]()[_0x506d05(0x12a)](_0x4e0770=>!(_0x281f4e['blockId']&&_0x4e0770[_0x506d05(0x125)]()!==_0x281f4e['blockId']||_0x281f4e[_0x506d05(0x114)]&&!_0x4e0770[_0x506d05(0x132)]()[_0x506d05(0x131)](_0x281f4e[_0x506d05(0x114)])));}['insertCode'](_0x4c8596={},_0x193d11={}){var _0x42ba1d=_0x454cda;let _0x3f4a68=this['_injector'][_0x42ba1d(0x103)](_0x159a60),_0x5da65a=_0x56c875(_0x4c8596)?{..._0x193d11,..._0x4c8596['getRange']()}:_0x4c8596,_0x307b3c=_0x5da65a[_0x42ba1d(0x121)]??_0x457348(0x6);return _0x3f4a68[_0x42ba1d(0x126)](_0x16c891['id'],{..._0x5da65a,'blockId':_0x307b3c,'unitId':this[_0x42ba1d(0x125)]()})?this[_0x42ba1d(0x130)](_0x307b3c):null;}['_getBlockRanges'](){var _0x1b12ee=_0x454cda,_0x27418d;return((_0x27418d=this[_0x1b12ee(0xfa)]()[_0x1b12ee(0x100)])==null?void 0x0:_0x27418d['blockRanges'])??[];}['_createFDocumentCode'](_0x4ca56e){var _0x868a99=_0x454cda;return this['_injector'][_0x868a99(0x137)](b,this,_0x4ca56e);}};_0x1f649b['extend'](S);export{b as FDocumentCode};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1d39a3=_0x272f;(function(_0x4a0440,_0x4e2655){const _0x292b7b=_0x272f,_0x433e71=_0x4a0440();while(!![]){try{const _0x29a5b4=-parseInt(_0x292b7b(0xca))/0x1+parseInt(_0x292b7b(0x10e))/0x2*(-parseInt(_0x292b7b(0xeb))/0x3)+parseInt(_0x292b7b(0xe9))/0x4+parseInt(_0x292b7b(0x106))/0x5+parseInt(_0x292b7b(0xe1))/0x6*(-parseInt(_0x292b7b(0xda))/0x7)+-parseInt(_0x292b7b(0xdb))/0x8*(parseInt(_0x292b7b(0xcc))/0x9)+parseInt(_0x292b7b(0x101))/0xa;if(_0x29a5b4===_0x4e2655)break;else _0x433e71['push'](_0x433e71['shift']());}catch(_0x2c8dc6){_0x433e71['push'](_0x433e71['shift']());}}}(_0x49ff,0x8c3bf));import{BooleanNumber as _0x5d0432,BuildTextUtils as _0x59526f,CommandType as _0x2dace9,DataStreamTreeTokenType as _0x2c3576,DependentOn as _0xc91b1c,Disposable as _0x4e5cf1,DocumentBlockRangeType as _0x5beae4,ICommandService as _0x2175d5,IConfigService as _0xd2a5aa,IResourceManagerService as _0x40da0c,IUniverInstanceService as _0x765ea0,Inject as _0x46134b,Injector as _0x10239e,JSONX as _0x7839c8,Plugin as _0x364415,TextX as _0x5aed02,UniverInstanceType as _0x2efd60,containsInteriorInsertionOffset as _0xd5ec9e,containsStreamIndex as _0x479b09,createParagraphId as _0x261bf9,generateRandomId as _0x395744,getBlockRangeInterval as _0x537bc1,getBodySliceForTextXAction as _0xe7c155,getParagraphContentStartOffset as _0x25a2c0,getParagraphContentStartOffsets as _0x31f66b,getParagraphFollowingBlockOffset as _0x5e906d,getSingleDataStreamChange as _0xe39f3e,intersectsOperationalIntervals as _0x544f57,merge as _0x4acedb,shiftExclusiveRangeOnDelete as _0x45258e,shiftExclusiveRangeOnInsert as _0x254835,shiftInclusiveRangeOnDelete as _0x321717,shiftInclusiveRangeOnInsert as _0x3ff03c}from'@univerjs/core';import{Subject as _0x168f18}from'rxjs';import{DocSelectionManagerService as _0x5cac0c,RichTextEditingMutation as _0x40ade1,UniverDocsPlugin as _0x5825c3,getContentInsertRange as _0x4d271c,isHeaderFooterSelection as _0x431f27}from'@univerjs/docs';import{UniverLicensePlugin as _0xf600d9}from'@univerjs-pro/license';const Se={'language':_0x1d39a3(0x9e),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x3ec68b){return{...Se,..._0x3ec68b};}function y(_0x1335b6){const _0x406cd4=_0x1d39a3;let _0x5588a8=(_0x1335b6==null?void 0x0:_0x1335b6['codes'])??{};return{'codes':Object[_0x406cd4(0xa8)](Object[_0x406cd4(0xc3)](_0x5588a8)[_0x406cd4(0xbb)](([_0x3081c6,_0x38d159])=>[_0x3081c6,v(_0x38d159)]))};}function b(_0x1b692e,_0x5147dc,_0x264e79){const _0x510750=_0x1d39a3;let _0x421bfe=y(_0x1b692e);return _0x421bfe[_0x510750(0xe7)][_0x5147dc]=v({..._0x421bfe['codes'][_0x5147dc],..._0x264e79}),_0x421bfe;}function x(_0x5202c6,_0x1a4540){const _0x2c6197=_0x1d39a3;let _0x494bfa=y(_0x5202c6);return delete _0x494bfa[_0x2c6197(0xe7)][_0x1a4540],_0x494bfa;}function S(_0x58f98a){'@babel/helpers - typeof';const _0x14b4b7=_0x1d39a3;return S=typeof Symbol==_0x14b4b7(0x111)&&typeof Symbol[_0x14b4b7(0xa7)]=='symbol'?function(_0x5c7153){return typeof _0x5c7153;}:function(_0x3eaf20){const _0x1a612d=_0x14b4b7;return _0x3eaf20&&typeof Symbol=='function'&&_0x3eaf20[_0x1a612d(0xc2)]===Symbol&&_0x3eaf20!==Symbol[_0x1a612d(0xf0)]?'symbol':typeof _0x3eaf20;},S(_0x58f98a);}function Ce(_0x41f4d1,_0x1f2706){const _0xb0b5ed=_0x1d39a3;if(S(_0x41f4d1)!=_0xb0b5ed(0xc8)||!_0x41f4d1)return _0x41f4d1;var _0x224e81;if(typeof Symbol<'u'&&(_0x224e81=_0x41f4d1[Symbol[_0xb0b5ed(0x126)]])!==void 0x0){var _0x548262=_0x224e81[_0xb0b5ed(0xb4)](_0x41f4d1,_0x1f2706||_0xb0b5ed(0x97));if(S(_0x548262)!='object')return _0x548262;throw TypeError(_0xb0b5ed(0x109));}return(_0x1f2706===_0xb0b5ed(0x10b)?String:Number)(_0x41f4d1);}function we(_0x1d0b3a){const _0x121f58=_0x1d39a3;var _0x4b4f66=Ce(_0x1d0b3a,_0x121f58(0x10b));return S(_0x4b4f66)==_0x121f58(0xaa)?_0x4b4f66:_0x4b4f66+'';}function C(_0x3574c1,_0xbfa2d2,_0x39a653){const _0x11e4c0=_0x1d39a3;return(_0xbfa2d2=we(_0xbfa2d2))in _0x3574c1?Object[_0x11e4c0(0xfe)](_0x3574c1,_0xbfa2d2,{'value':_0x39a653,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3574c1[_0xbfa2d2]=_0x39a653,_0x3574c1;}var w=class extends _0x4e5cf1{constructor(..._0x4218b0){const _0x4d07fe=_0x1d39a3;super(..._0x4218b0),C(this,'_resources',new Map()),C(this,_0x4d07fe(0xa9),new _0x168f18()),C(this,_0x4d07fe(0x96),this[_0x4d07fe(0xa9)][_0x4d07fe(0x125)]());}[_0x1d39a3(0xc1)](_0x3926b3,_0x16b2f0){const _0x1bafa0=_0x1d39a3;return y(this[_0x1bafa0(0xaf)]['get'](_0x3926b3))[_0x1bafa0(0xe7)][_0x16b2f0];}[_0x1d39a3(0x11e)](_0x3576e7,_0x39ee1d,_0x1cedd2){const _0x11627b=_0x1d39a3;this[_0x11627b(0xa6)](_0x3576e7,_0x39ee1d,b(this['_resources'][_0x11627b(0xff)](_0x3576e7),_0x39ee1d,_0x1cedd2));}[_0x1d39a3(0x12e)](_0x3b9b19,_0x5f142f){const _0x5f47d1=_0x1d39a3;this[_0x5f47d1(0xa6)](_0x3b9b19,_0x5f142f,x(this[_0x5f47d1(0xaf)][_0x5f47d1(0xff)](_0x3b9b19),_0x5f142f));}[_0x1d39a3(0xfa)](_0x2a1f6f){return y(this['_resources']['get'](_0x2a1f6f));}[_0x1d39a3(0xae)](_0x39b734,_0x192586){const _0x533640=_0x1d39a3;this[_0x533640(0xaf)][_0x533640(0x105)](_0x39b734,y(_0x192586)),this[_0x533640(0xa9)][_0x533640(0xe5)]({'unitId':_0x39b734});}[_0x1d39a3(0xbf)](_0x2ead56){const _0x3afc82=_0x1d39a3;this[_0x3afc82(0xaf)][_0x3afc82(0x9c)](_0x2ead56),this[_0x3afc82(0xa9)]['next']({'unitId':_0x2ead56});}[_0x1d39a3(0xc0)](){const _0x195f34=_0x1d39a3;super['dispose'](),this[_0x195f34(0xaf)]['clear'](),this[_0x195f34(0xa9)]['complete']();}[_0x1d39a3(0xa6)](_0x50e7e8,_0x13e64d,_0x2d4771){const _0x2c93af=_0x1d39a3;this[_0x2c93af(0xaf)][_0x2c93af(0x105)](_0x50e7e8,_0x2d4771),this[_0x2c93af(0xa9)][_0x2c93af(0xe5)]({'unitId':_0x50e7e8,'blockId':_0x13e64d});}};const Te={'id':_0x1d39a3(0x9b),'type':_0x2dace9['MUTATION'],'handler':(_0xdf70a3,_0x1f5795)=>!(_0x1f5795!=null&&_0x1f5795['unitId'])||!_0x1f5795[_0x1d39a3(0x108)]?!0x1:(_0xdf70a3[_0x1d39a3(0xff)](w)[_0x1d39a3(0x11e)](_0x1f5795[_0x1d39a3(0x110)],_0x1f5795[_0x1d39a3(0x108)],_0x1f5795[_0x1d39a3(0x104)]),!0x0)},T={'id':_0x1d39a3(0x134),'type':_0x2dace9['MUTATION'],'handler':(_0x30f6df,_0xfb2b02)=>!(_0xfb2b02!=null&&_0xfb2b02[_0x1d39a3(0x110)])||!_0xfb2b02[_0x1d39a3(0x108)]?!0x1:(_0x30f6df[_0x1d39a3(0xff)](w)['removeCode'](_0xfb2b02[_0x1d39a3(0x110)],_0xfb2b02['blockId']),!0x0)},Ee=_0x1d39a3(0x98);var E=class extends Error{constructor(_0x11b96f='Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries'){super(_0x11b96f);}};function De(_0x22d033){const _0x358229=_0x1d39a3;var _0x1eda76;let _0x35ff90=O(_0x22d033[_0x358229(0xce)]),_0x8ef8c8=A(_0x35ff90),_0x9513cd=ke(_0x22d033[_0x358229(0xd9)],_0x22d033[_0x358229(0xf3)]),_0x43ec2f=_0x9513cd?(_0x1eda76=_0x8ef8c8[_0x358229(0x11d)])==null?void 0x0:_0x1eda76[_0x358229(0x94)](_0x349004=>{const _0x10fb82=_0x358229;let _0x16ce5c=_0x537bc1(_0x349004);return _0x16ce5c[_0x10fb82(0xd9)]===_0x9513cd[_0x10fb82(0xd9)]&&_0x16ce5c[_0x10fb82(0xf3)]===_0x9513cd['endOffset'];}):void 0x0,{startOffset:_0x38297d,endOffset:_0x1218c8}=_0x43ec2f?_0x9513cd:We(_0x8ef8c8,_0x22d033[_0x358229(0xd9)],_0x22d033['endOffset'],_0x22d033['insertionMode']);if(!_0x43ec2f&&Ae(_0x8ef8c8,_0x38297d,_0x1218c8))throw new E(_0x358229(0x92));let _0x493004=qe(_0x8ef8c8,_0x38297d,_0x1218c8),_0x2289de=(_0x43ec2f==null?void 0x0:_0x43ec2f[_0x358229(0x108)])??_0x22d033[_0x358229(0x108)],_0x39706b=b(_0x22d033[_0x358229(0xd8)],_0x2289de,{...Se,..._0x22d033[_0x358229(0x104)]});if(_0x43ec2f)return _0x43ec2f[_0x358229(0x12b)]=_0x5beae4[_0x358229(0x9f)],Oe(_0x8ef8c8,_0x38297d,_0x1218c8),ze(_0x8ef8c8,_0x38297d,_0x1218c8,_0x493004),N(_0x8ef8c8,_0x43ec2f),{'nextDocumentData':_0x35ff90,'nextMetadata':_0x39706b,'cursorOffset':_0x38297d+0x1};if(_0x38297d===_0x1218c8){var _0x18b8ee,_0x2d5af7;let _0x4cc852=''+_0x2c3576[_0x358229(0xef)]+_0x2c3576[_0x358229(0x11f)]+_0x2c3576[_0x358229(0xf5)];P(_0x8ef8c8,_0x38297d,_0x4cc852,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x261bf9(new Set((_0x18b8ee=_0x8ef8c8[_0x358229(0x12f)])==null?void 0x0:_0x18b8ee[_0x358229(0xbb)](_0x2daa02=>_0x2daa02[_0x358229(0xd2)]))),'paragraphStyle':Re(!0x0,!0x0,_0x493004)}],'blockRanges':[{'blockId':_0x2289de,'blockType':_0x5beae4[_0x358229(0x9f)],'startIndex':0x0,'endIndex':_0x4cc852[_0x358229(0x123)]-0x1}]});let _0x30e2fb=(_0x2d5af7=_0x8ef8c8[_0x358229(0x11d)])==null?void 0x0:_0x2d5af7[_0x358229(0x94)](_0x433e69=>_0x433e69[_0x358229(0x108)]===_0x2289de);return _0x30e2fb&&N(_0x8ef8c8,_0x30e2fb),{'nextDocumentData':_0x35ff90,'nextMetadata':_0x39706b,'cursorOffset':_0x38297d+0x1};}P(_0x8ef8c8,_0x1218c8,_0x2c3576[_0x358229(0xf5)]),P(_0x8ef8c8,_0x38297d,_0x2c3576[_0x358229(0xef)]),ze(_0x8ef8c8,_0x38297d,_0x1218c8+0x1,_0x493004);let _0x304952={'blockId':_0x2289de,'blockType':_0x5beae4[_0x358229(0x9f)],'startIndex':_0x38297d,'endIndex':_0x1218c8+0x1};return _0x8ef8c8['blockRanges']=[..._0x8ef8c8[_0x358229(0x11d)]??[],_0x304952][_0x358229(0x129)]((_0x5d9715,_0xb01905)=>_0x5d9715[_0x358229(0xab)]-_0xb01905['startIndex']),N(_0x8ef8c8,_0x304952),{'nextDocumentData':_0x35ff90,'nextMetadata':_0x39706b,'cursorOffset':_0x38297d+0x1};}function _0x49ff(){const _0x3140ab=['1425627vJHgOr','some','documentData','filter','columnGroups','compose','paragraphId','indentStart','getCurrentUnitOfType','docs-code.command.cancel-empty-paragraph','keys','_initResource','metadata','startOffset','14YsIahR','48AzwFaR','decorate','direction','selectionManager','getInstance','max','758778AvtWNb','TABLE_CELL_END','TRUE','push','next','insertOp','codes','customBlocks','4070508IINkUK','docs-code.command.exit','51gDwEOU','forEach','spaceBelow','docs-code.command.unwrap','BLOCK_START','prototype','from','@univerjs-pro/docs-code','endOffset','getSnapshot','BLOCK_END','every','packageName','indentEnd','_resourceManagerService','serialize','pluginName','getUnit','customDecorations','defineProperty','get','endsWith','6828160iDYZTH','setConfig','dataStream','config','set','1873460VeJsiY','left','blockId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','customRanges','string','_configService','syncExecuteCommand','30080FPpFLD','reduce','unitId','function','add','deleteLength','commandService','endIndex','textRuns','UNIVER_DOC','min','handler','endTokenOffset','docs-code.command.remove','_commandService','blockRanges','setCodeConfig','PARAGRAPH','insert','nextMetadata','Document\x20body\x20is\x20required','length','isArray','asObservable','toPrimitive','docs-code.command.consume-boundary-delete','insertionMode','sort','tables','blockType','spaceAbove','startTokenOffset','removeCode','paragraphs','disposeWithMe','insertLength','docs-code.command.insert-below','retain','docs-code.mutation.remove-config','_injector','COMMAND','convert-paragraph','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','paragraphStartIndex','find','body','change$','default','monospace','getBody','removeOp','docs-code.mutation.set-config','delete','columns','javascript','CODE','slice','range','getUnitId','getParagraphsInRange','docs-code.config','indexOf','_setResource','iterator','fromEntries','_change$','symbol','startIndex','paragraphStyle','replaceDocRanges','deserialize','_resources','previousDocumentData','TABLE_CELL_START','SECTION_BREAK','docs-code.command.insert','call','1.5.0','stringify','insert-new','model','replaceOp','textStyle','map','_docsCodeModel','type','sectionBreaks','removeUnit','dispose','getCodeConfig','constructor','entries','nextDocumentData','start','bullet','onStarting','object','cursorOffset','41712JXxyxo','paragraph'];_0x49ff=function(){return _0x3140ab;};return _0x49ff();}function Oe(_0x53e0b4,_0x5da00a,_0x46ec35){const _0x4557eb=_0x1d39a3;(_0x53e0b4[_0x4557eb(0x12f)]??[])['filter'](_0xb9725=>_0xb9725[_0x4557eb(0xab)]>_0x5da00a&&_0xb9725[_0x4557eb(0xab)]<_0x46ec35)[_0x4557eb(0xec)](_0x5f59d6=>{const _0x51514c=_0x4557eb;let _0x12ea68={..._0x5f59d6[_0x51514c(0xac)]??{}};delete _0x12ea68[_0x51514c(0x12c)],delete _0x12ea68[_0x51514c(0xed)],_0x5f59d6[_0x51514c(0xac)]=_0x12ea68;});}function ke(_0xc39806,_0x29ba87){const _0x5626ab=_0x1d39a3;return _0xc39806==null||_0x29ba87==null||_0xc39806===_0x29ba87?null:{'startOffset':Math[_0x5626ab(0x118)](_0xc39806,_0x29ba87),'endOffset':Math[_0x5626ab(0xe0)](_0xc39806,_0x29ba87)};}function Ae(_0x42f907,_0x518633,_0x3a9402){const _0x495dc7=_0x1d39a3;return(_0x42f907[_0x495dc7(0x11d)]??[])[_0x495dc7(0xcd)](_0x3c35ee=>{let _0x246af4=_0x537bc1(_0x3c35ee);return _0x518633===_0x3a9402?_0xd5ec9e(_0x246af4,_0x518633):_0x544f57(_0x246af4,{'startOffset':_0x518633,'endOffset':_0x3a9402});});}function je(_0x13e02f){const _0x387f90=_0x1d39a3;return{'nextDocumentData':O(_0x13e02f[_0x387f90(0xce)]),'nextMetadata':b(_0x13e02f[_0x387f90(0xd8)],_0x13e02f[_0x387f90(0x108)],_0x13e02f[_0x387f90(0x104)]),'cursorOffset':0x0};}function D(_0xad6b45){const _0x1ae730=_0x1d39a3;let _0x5e8cfe=O(_0xad6b45[_0x1ae730(0xce)]),_0x4fb42a=A(_0x5e8cfe),_0x47a3f4=Fe(_0x4fb42a,_0xad6b45[_0x1ae730(0x108)]);if(!_0x47a3f4)return null;let _0x2c5d67=He(_0x4fb42a,_0x47a3f4);return{'nextDocumentData':_0x5e8cfe,'nextMetadata':x(_0xad6b45[_0x1ae730(0xd8)],_0xad6b45[_0x1ae730(0x108)]),'cursorOffset':_0x2c5d67};}function Me(_0x2c4c58){const _0x1e0176=_0x1d39a3;var _0x493d73;let _0x123e0c=O(_0x2c4c58[_0x1e0176(0xce)]),_0x107981=A(_0x123e0c),_0x4c1284=Fe(_0x107981,_0x2c4c58[_0x1e0176(0x108)]);if(!_0x4c1284)return null;let _0x36cc96=_0x537bc1(_0x4c1284);return F(_0x107981,_0x36cc96[_0x1e0176(0xd9)],_0x36cc96[_0x1e0176(0xf3)]),_0x107981['blockRanges']=(_0x493d73=_0x107981[_0x1e0176(0x11d)])==null?void 0x0:_0x493d73[_0x1e0176(0xcf)](_0x46c41b=>_0x46c41b[_0x1e0176(0x108)]!==_0x2c4c58[_0x1e0176(0x108)]),{'nextDocumentData':_0x123e0c,'nextMetadata':x(_0x2c4c58[_0x1e0176(0xd8)],_0x2c4c58[_0x1e0176(0x108)]),'cursorOffset':_0x4c1284[_0x1e0176(0xab)]};}function Ne(_0x1492a5){const _0x4fa321=_0x1d39a3;let _0x1dec79=O(_0x1492a5['documentData']),_0x8f58b9=A(_0x1dec79),_0x56c5cf=Le(_0x8f58b9,_0x1492a5[_0x4fa321(0xc9)]);return _0x56c5cf&&Pe(_0x1dec79,_0x8f58b9,_0x56c5cf,_0x1492a5[_0x4fa321(0xc9)],_0x1492a5[_0x4fa321(0x93)])||null;}function Pe(_0x2bcff1,_0x149635,_0x1525db,_0x5e6bb4,_0x1ed519){const _0x136976=_0x1d39a3;let _0x31a778=$e(_0x149635,_0x1525db,_0x5e6bb4,_0x1ed519);if(!_0x31a778)return null;let _0x176a1e=_0x31a778[_0x136976(0x11a)]-0x1;return F(_0x149635,_0x31a778[_0x136976(0xcb)]['startIndex'],_0x31a778['paragraph'][_0x136976(0xab)]+0x1),{'nextDocumentData':_0x2bcff1,'cursorOffset':_0x176a1e};}function Fe(_0x501120,_0x41a311){const _0x188e2f=_0x1d39a3;var _0x4094f6;return _0x501120==null||(_0x4094f6=_0x501120[_0x188e2f(0x11d)])==null?void 0x0:_0x4094f6[_0x188e2f(0x94)](_0x340263=>_0x340263['blockType']===_0x5beae4[_0x188e2f(0x9f)]&&_0x340263['blockId']===_0x41a311);}function Ie(_0x5701c5){const _0xae5a6c=_0x1d39a3;let _0x373ae2=_0x5701c5[_0xae5a6c(0xce)][_0xae5a6c(0x95)];if(!_0x373ae2)return!0x1;let _0x430a2c=_0x5701c5['direction']===_0xae5a6c(0x107)?_0x5701c5[_0xae5a6c(0xc9)]-0x1:_0x5701c5[_0xae5a6c(0xc9)],_0x33460e=_0x5701c5[_0xae5a6c(0xdd)]==='right'?_0x5701c5[_0xae5a6c(0xc9)]+0x1:_0x430a2c;return(_0x373ae2[_0xae5a6c(0x11d)]??[])[_0xae5a6c(0xcd)](_0x1e1e25=>_0x1e1e25[_0xae5a6c(0x12b)]===_0x5beae4[_0xae5a6c(0x9f)]?_0x430a2c===_0x1e1e25[_0xae5a6c(0xab)]||_0x430a2c===_0x1e1e25[_0xae5a6c(0x115)]||_0x33460e===_0x1e1e25[_0xae5a6c(0xab)]||_0x33460e===_0x1e1e25[_0xae5a6c(0x115)]:!0x1);}function Le(_0x474bfb,_0x1f3852){const _0x46a9a0=_0x1d39a3;var _0x42a033;return(_0x42a033=_0x474bfb[_0x46a9a0(0x11d)])==null?void 0x0:_0x42a033[_0x46a9a0(0x94)](_0x86af9=>{const _0x543491=_0x46a9a0;let _0x22ff32=M(_0x86af9);return _0x86af9['blockType']===_0x5beae4[_0x543491(0x9f)]&&_0x86af9[_0x543491(0xab)]<=_0x1f3852&&_0x1f3852<=_0x22ff32+0x2;});}function Re(_0x43c979,_0x20fcab,_0xd8d64d=!0x1){const _0x3572d8=_0x1d39a3;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x5d0432[_0x3572d8(0xe3)],'keepNext':_0x20fcab?_0x5d0432['FALSE']:_0x5d0432['TRUE'],'widowControl':_0x5d0432[_0x3572d8(0xe3)],..._0x43c979&&_0xd8d64d?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x54298b,_0x4814d3,_0xfc4f39,_0x5bb987=!0x1){const _0x3364ee=_0x1d39a3;let _0x5f220a=(_0x54298b[_0x3364ee(0x12f)]??[])[_0x3364ee(0xcf)](_0x5def2a=>_0x5def2a['startIndex']>_0x4814d3&&_0x5def2a[_0x3364ee(0xab)]<_0xfc4f39);_0x5f220a[_0x3364ee(0xec)]((_0x1730da,_0x38d210)=>{const _0x2dea4b=_0x3364ee;_0x1730da[_0x2dea4b(0xac)]={..._0x1730da[_0x2dea4b(0xac)]??{},...Re(_0x38d210===0x0,_0x38d210===_0x5f220a[_0x2dea4b(0x123)]-0x1,_0x5bb987)};});}function Be(_0x35d0c9){const _0xc4d9ab=_0x1d39a3;var _0xbc79ee,_0x12a63d;let _0x36701c={..._0x35d0c9??{}};return delete _0x36701c[_0xc4d9ab(0xf8)],delete _0x36701c[_0xc4d9ab(0xd3)],delete _0x36701c['spaceAbove'],delete _0x36701c[_0xc4d9ab(0xed)],delete _0x36701c['keepLines'],delete _0x36701c['keepNext'],delete _0x36701c['widowControl'],((_0xbc79ee=_0x36701c[_0xc4d9ab(0xba)])==null?void 0x0:_0xbc79ee['ff'])===Ee&&((_0x12a63d=_0x36701c['textStyle'])==null?void 0x0:_0x12a63d['fs'])===0xc&&delete _0x36701c[_0xc4d9ab(0xba)],_0x36701c;}function Ve(_0x35e87c,_0xd594a8){const _0x583537=_0x1d39a3;let _0x254a53=M(_0xd594a8);return(_0x35e87c[_0x583537(0x12f)]??[])[_0x583537(0xcf)](_0x45ad72=>_0x45ad72[_0x583537(0xab)]>_0xd594a8[_0x583537(0xab)]&&_0x45ad72[_0x583537(0xab)]<_0x254a53);}function He(_0x43db6e,_0xcd279a){const _0x47cce5=_0x1d39a3;var _0x4dd232;let _0x5d5477=M(_0xcd279a);return Ve(_0x43db6e,_0xcd279a)['forEach'](_0x14390f=>{_0x14390f['paragraphStyle']=Be(_0x14390f['paragraphStyle']);}),F(_0x43db6e,_0x5d5477,_0x5d5477+0x1),F(_0x43db6e,_0xcd279a['startIndex'],_0xcd279a[_0x47cce5(0xab)]+0x1),_0x43db6e[_0x47cce5(0x11d)]=(_0x4dd232=_0x43db6e['blockRanges'])==null?void 0x0:_0x4dd232[_0x47cce5(0xcf)](_0x1ab400=>_0x1ab400[_0x47cce5(0x108)]!==_0xcd279a['blockId']),_0xcd279a[_0x47cce5(0xab)];}function O(_0x8a57c3){const _0x8c2eb2=_0x1d39a3;return{..._0x8a57c3,'body':_0x8a57c3[_0x8c2eb2(0x95)]?Ue(_0x8a57c3['body']):_0x8a57c3[_0x8c2eb2(0x95)]};}function Ue(_0x4129ea){const _0x4dd3f3=_0x1d39a3;var _0x204948,_0x2d8741,_0x4b987f,_0x498e26,_0x570191,_0x2a04a1,_0x27b71a,_0x38b969,_0x3bb40f;return{..._0x4129ea,'paragraphs':(_0x204948=_0x4129ea[_0x4dd3f3(0x12f)])==null?void 0x0:_0x204948['map'](_0x2f1374=>({..._0x2f1374,'bullet':k(_0x2f1374[_0x4dd3f3(0xc6)]),'paragraphStyle':k(_0x2f1374['paragraphStyle'])})),'sectionBreaks':(_0x2d8741=_0x4129ea[_0x4dd3f3(0xbe)])==null?void 0x0:_0x2d8741[_0x4dd3f3(0xbb)](_0xd92171=>({..._0xd92171})),'textRuns':(_0x4b987f=_0x4129ea[_0x4dd3f3(0x116)])==null?void 0x0:_0x4b987f[_0x4dd3f3(0xbb)](_0x5d1f1e=>({..._0x5d1f1e})),'tables':(_0x498e26=_0x4129ea[_0x4dd3f3(0x12a)])==null?void 0x0:_0x498e26[_0x4dd3f3(0xbb)](_0x103483=>({..._0x103483})),'columnGroups':(_0x570191=_0x4129ea[_0x4dd3f3(0xd0)])==null?void 0x0:_0x570191[_0x4dd3f3(0xbb)](_0x25d2e8=>{const _0x5058eb=_0x4dd3f3;var _0x3c7e48;return{..._0x25d2e8,'columns':(_0x3c7e48=_0x25d2e8[_0x5058eb(0x9d)])==null?void 0x0:_0x3c7e48['map'](_0x5dc343=>k(_0x5dc343))};}),'blockRanges':(_0x2a04a1=_0x4129ea[_0x4dd3f3(0x11d)])==null?void 0x0:_0x2a04a1[_0x4dd3f3(0xbb)](_0x39d43f=>({..._0x39d43f})),'customRanges':(_0x27b71a=_0x4129ea['customRanges'])==null?void 0x0:_0x27b71a[_0x4dd3f3(0xbb)](_0xc653bb=>({..._0xc653bb})),'customDecorations':(_0x38b969=_0x4129ea['customDecorations'])==null?void 0x0:_0x38b969[_0x4dd3f3(0xbb)](_0x52dbeb=>({..._0x52dbeb})),'customBlocks':(_0x3bb40f=_0x4129ea[_0x4dd3f3(0xe8)])==null?void 0x0:_0x3bb40f['map'](_0x58ec8d=>({..._0x58ec8d}))};}function k(_0x1af6ca){const _0x4e1f1a=_0x1d39a3;return Array[_0x4e1f1a(0x124)](_0x1af6ca)?_0x1af6ca['map'](_0x46afaf=>k(_0x46afaf)):!_0x1af6ca||typeof _0x1af6ca!='object'?_0x1af6ca:Object[_0x4e1f1a(0xa8)](Object[_0x4e1f1a(0xc3)](_0x1af6ca)['map'](([_0x546bc7,_0x390673])=>[_0x546bc7,k(_0x390673)]));}function A(_0x4bd299){const _0x4498aa=_0x1d39a3;if(!_0x4bd299[_0x4498aa(0x95)])throw Error(_0x4498aa(0x122));return _0x4bd299[_0x4498aa(0x95)];}function We(_0x3daabd,_0x1aa1e2,_0x5f2221,_0x32c6ed=_0x1d39a3(0x91)){const _0x120731=_0x1d39a3;if(_0x1aa1e2==null||_0x5f2221==null){let _0x3cf160=Ke(_0x3daabd);return{'startOffset':_0x3cf160,'endOffset':_0x3cf160};}let _0x8e27ce=Math['min'](_0x1aa1e2,_0x5f2221),_0xa382df=Math[_0x120731(0xe0)](_0x1aa1e2,_0x5f2221),_0x745d80=Ze(_0x3daabd,_0x8e27ce,_0xa382df);return _0x8e27ce===_0xa382df?_0x32c6ed==='insert-new'?{'startOffset':_0x8e27ce,'endOffset':_0xa382df}:Ge(_0x3daabd,_0x8e27ce,_0x745d80):Je(_0x3daabd,_0x8e27ce,_0xa382df,_0x745d80);}function Ge(_0x277c73,_0x4e446b,_0x5d0f08){const _0x792a68=_0x1d39a3;let _0x5d244d=Ye(_0x277c73,_0x4e446b);if(_0x5d244d){let _0x352d89=j(_0x277c73,_0x5d244d,_0x5d0f08);if(_0x352d89<_0x5d244d[_0x792a68(0xab)])return{'startOffset':_0x352d89,'endOffset':_0x5d0f08?Math[_0x792a68(0x118)](_0x5d244d[_0x792a68(0xab)]+0x1,_0x5d0f08[_0x792a68(0xf3)]):_0x5d244d[_0x792a68(0xab)]+0x1};}let _0x276813=_0x4e446b===0x0&&_0x277c73[_0x792a68(0x103)][0x0]===_0x2c3576[_0x792a68(0x11f)]?0x1:_0x4e446b;return{'startOffset':_0x276813,'endOffset':_0x276813};}function Ke(_0x35f861){const _0x3cff3c=_0x1d39a3;return _0x35f861[_0x3cff3c(0x103)][_0x3cff3c(0x100)](_0x2c3576[_0x3cff3c(0xb2)])?Math[_0x3cff3c(0xe0)](0x0,_0x35f861[_0x3cff3c(0x103)]['length']-0x1):_0x35f861[_0x3cff3c(0x103)][_0x3cff3c(0x123)];}function _0x272f(_0x144573,_0x4fdb7a){_0x144573=_0x144573-0x90;const _0x49ff7a=_0x49ff();let _0x272ff6=_0x49ff7a[_0x144573];return _0x272ff6;}function qe(_0x21aa4b,_0xc7ecca,_0x7dfd2a){const _0x1510f5=_0x1d39a3;var _0x2ccf57;let _0x19bbeb=Math[_0x1510f5(0x118)](_0xc7ecca,_0x7dfd2a),_0x126fb5=Math[_0x1510f5(0xe0)](_0xc7ecca,_0x7dfd2a);return!!((_0x2ccf57=_0x21aa4b[_0x1510f5(0x12a)])!=null&&_0x2ccf57[_0x1510f5(0xcd)](_0x1a459a=>_0x19bbeb>_0x1a459a['startIndex']&&_0x19bbeb<_0x1a459a[_0x1510f5(0x115)]||_0x126fb5>_0x1a459a[_0x1510f5(0xab)]&&_0x126fb5<_0x1a459a[_0x1510f5(0x115)]||_0x19bbeb<=_0x1a459a[_0x1510f5(0xab)]&&_0x126fb5>=_0x1a459a['endIndex']));}function Je(_0x5f14ab,_0x41ea76,_0x2b1e4e,_0xfb6b8e){const _0x575d21=_0x1d39a3;let _0x163e4f=[..._0x5f14ab[_0x575d21(0x12f)]??[]][_0x575d21(0x129)]((_0x2a08e4,_0x4c0461)=>_0x2a08e4['startIndex']-_0x4c0461[_0x575d21(0xab)]),_0x1c625c=_0x31f66b(_0x5f14ab),_0x30089e=_0x163e4f[_0x575d21(0x94)](_0x3d3008=>j(_0x5f14ab,_0x3d3008,_0xfb6b8e,_0x1c625c)<=_0x41ea76&&_0x41ea76<=_0x3d3008[_0x575d21(0xab)]),_0x22546d=_0x163e4f[_0x575d21(0x94)](_0x445e2b=>_0x445e2b[_0x575d21(0xab)]>=_0x2b1e4e-0x1)??_0x163e4f[_0x163e4f[_0x575d21(0x123)]-0x1];return{'startOffset':_0x30089e?j(_0x5f14ab,_0x30089e,_0xfb6b8e,_0x1c625c):_0x41ea76,'endOffset':_0x22546d?Xe(_0x22546d,_0xfb6b8e):_0x2b1e4e};}function Ye(_0x1d3d6f,_0x503be9){const _0x454807=_0x1d39a3;let _0x50798a=[..._0x1d3d6f[_0x454807(0x12f)]??[]][_0x454807(0x129)]((_0xa2d187,_0x54754e)=>_0xa2d187[_0x454807(0xab)]-_0x54754e[_0x454807(0xab)]),_0x36b58b=_0x31f66b(_0x1d3d6f);return _0x50798a['find'](_0x1c8ce5=>(_0x36b58b[_0x454807(0xff)](_0x1c8ce5[_0x454807(0xab)])??0x0)<=_0x503be9&&_0x503be9<=_0x1c8ce5[_0x454807(0xab)]);}function j(_0x9e7ac2,_0x1d2816,_0x109890,_0x3f5631){const _0xd290a8=_0x1d39a3;let _0x478232=(_0x3f5631==null?void 0x0:_0x3f5631[_0xd290a8(0xff)](_0x1d2816[_0xd290a8(0xab)]))??_0x25a2c0(_0x9e7ac2,_0x1d2816);return _0x109890?Math[_0xd290a8(0xe0)](_0x478232,_0x109890[_0xd290a8(0xd9)]):_0x478232;}function Xe(_0x2d637e,_0x2093d7){const _0x48d575=_0x1d39a3;let _0x4b848b=_0x2d637e[_0x48d575(0xab)]+0x1;return _0x2093d7?Math[_0x48d575(0x118)](_0x4b848b,_0x2093d7[_0x48d575(0xf3)]):_0x4b848b;}function Ze(_0x5610f2,_0x90f61b,_0x192f6d){const _0x498ec4=_0x1d39a3;let _0x1fb4a3=Qe(_0x5610f2,_0x90f61b),_0xf1d8b3=Qe(_0x5610f2,_0x90f61b===_0x192f6d?_0x192f6d:Math[_0x498ec4(0xe0)](_0x90f61b,_0x192f6d-0x1));if(_0x1fb4a3||_0xf1d8b3){if(!_0x1fb4a3||!_0xf1d8b3||_0x1fb4a3[_0x498ec4(0x12d)]!==_0xf1d8b3['startTokenOffset']||_0x1fb4a3[_0x498ec4(0x11a)]!==_0xf1d8b3[_0x498ec4(0x11a)])throw new E();return _0x1fb4a3;}}function Qe(_0x44ad9f,_0x2a298a){const _0x255e53=_0x1d39a3;let _0x543154=_0x44ad9f[_0x255e53(0x103)],_0x1328a6=-0x1;for(let _0x1c5fe7=Math['min'](_0x2a298a,_0x543154['length']-0x1);_0x1c5fe7>=0x0;_0x1c5fe7--){let _0x53c1a3=_0x543154[_0x1c5fe7];if(_0x53c1a3===_0x2c3576[_0x255e53(0xe2)])return;if(_0x53c1a3===_0x2c3576[_0x255e53(0xb1)]){_0x1328a6=_0x1c5fe7;break;}}if(_0x1328a6<0x0)return;let _0x534a93=_0x543154[_0x255e53(0xa5)](_0x2c3576[_0x255e53(0xe2)],_0x1328a6+0x1);if(!(_0x534a93<0x0||_0x2a298a<_0x1328a6+0x1||_0x2a298a>_0x534a93-0x1))return{'startOffset':_0x1328a6+0x1,'endOffset':Math[_0x255e53(0xe0)](_0x1328a6+0x1,_0x534a93-0x1),'startTokenOffset':_0x1328a6,'endTokenOffset':_0x534a93};}function M(_0x2cf719){return _0x537bc1(_0x2cf719)['endOffset']-0x1;}function $e(_0x5d2135,_0x86e97a,_0x3c237f,_0x282aee){const _0x50f4f6=_0x1d39a3;let _0x2b3bf5=M(_0x86e97a),_0x3997e7=(_0x5d2135['paragraphs']??[])[_0x50f4f6(0x94)](_0x2d0029=>_0x2d0029[_0x50f4f6(0xab)]===_0x2b3bf5+0x1);if(!_0x3997e7||_0x282aee!=null&&_0x3997e7[_0x50f4f6(0xab)]!==_0x282aee||_0x3c237f!=null&&(_0x3c237f<_0x2b3bf5||_0x3c237f>_0x3997e7['startIndex']+0x1)||_0x5d2135[_0x50f4f6(0x103)][_0x3997e7[_0x50f4f6(0xab)]]!==_0x2c3576['PARAGRAPH'])return null;let _0x5db034=_0x25a2c0(_0x5d2135,_0x3997e7),_0x35e7ab=_0x5d2135[_0x50f4f6(0x103)][_0x50f4f6(0xa0)](_0x5db034,_0x3997e7[_0x50f4f6(0xab)]);return Array[_0x50f4f6(0xf1)](_0x35e7ab)[_0x50f4f6(0xf6)](_0x2f4d98=>_0x2f4d98===_0x2c3576[_0x50f4f6(0xf5)])?{'paragraph':_0x3997e7,'endTokenOffset':_0x2b3bf5}:null;}function N(_0x56a2fd,_0x1b5443){const _0xe6fe54=_0x1d39a3;var _0x59afbd;let _0x1fffcc=M(_0x1b5443),_0x46839f=_0x56a2fd[_0xe6fe54(0x103)][_0x1fffcc+0x1];(_0x46839f===_0x2c3576[_0xe6fe54(0xb2)]||_0x46839f===void 0x0)&&P(_0x56a2fd,_0x1fffcc+0x1,_0x2c3576[_0xe6fe54(0x11f)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x261bf9(new Set((_0x59afbd=_0x56a2fd['paragraphs'])==null?void 0x0:_0x59afbd[_0xe6fe54(0xbb)](_0x4b36f4=>_0x4b36f4[_0xe6fe54(0xd2)])))}]});}function P(_0x5de80a,_0x86fa1a,_0x13ea29,_0x4670f2={}){const _0x54726e=_0x1d39a3;var _0x4a0b46,_0x17a453;_0x13ea29&&(_0x5de80a['dataStream']=''+_0x5de80a['dataStream'][_0x54726e(0xa0)](0x0,_0x86fa1a)+_0x13ea29+_0x5de80a[_0x54726e(0x103)][_0x54726e(0xa0)](_0x86fa1a),et(_0x5de80a,_0x86fa1a,_0x13ea29[_0x54726e(0x123)]),(_0x4a0b46=_0x4670f2[_0x54726e(0x12f)])!=null&&_0x4a0b46[_0x54726e(0x123)]&&(_0x5de80a[_0x54726e(0x12f)]=[..._0x5de80a[_0x54726e(0x12f)]??[],..._0x4670f2[_0x54726e(0x12f)]['map'](_0x16e87a=>({..._0x16e87a,'startIndex':_0x16e87a[_0x54726e(0xab)]+_0x86fa1a}))][_0x54726e(0x129)]((_0x1b4e11,_0x4c2bc5)=>_0x1b4e11[_0x54726e(0xab)]-_0x4c2bc5[_0x54726e(0xab)])),(_0x17a453=_0x4670f2[_0x54726e(0x11d)])!=null&&_0x17a453[_0x54726e(0x123)]&&(_0x5de80a['blockRanges']=[..._0x5de80a[_0x54726e(0x11d)]??[],..._0x4670f2[_0x54726e(0x11d)]['map'](_0x4a8130=>({..._0x4a8130,'startIndex':_0x4a8130[_0x54726e(0xab)]+_0x86fa1a,'endIndex':_0x4a8130['endIndex']+_0x86fa1a}))]['sort']((_0x341ccf,_0x3a8732)=>_0x341ccf[_0x54726e(0xab)]-_0x3a8732['startIndex'])));}function F(_0x2e4b48,_0x2c9376,_0x5866db){const _0x11ce66=_0x1d39a3;let _0x34cc06=_0x5866db-_0x2c9376;_0x2e4b48[_0x11ce66(0x103)]=''+_0x2e4b48[_0x11ce66(0x103)][_0x11ce66(0xa0)](0x0,_0x2c9376)+_0x2e4b48['dataStream'][_0x11ce66(0xa0)](_0x5866db),tt(_0x2e4b48,_0x2c9376,_0x34cc06);}function et(_0x13ba3d,_0x5a26db,_0x139aaf){const _0x2c4f07=_0x1d39a3;_0x13ba3d[_0x2c4f07(0x12f)]=I(_0x13ba3d['paragraphs'],_0x5a26db,_0x139aaf),_0x13ba3d['sectionBreaks']=I(_0x13ba3d[_0x2c4f07(0xbe)],_0x5a26db,_0x139aaf),_0x13ba3d[_0x2c4f07(0xe8)]=I(_0x13ba3d[_0x2c4f07(0xe8)],_0x5a26db,_0x139aaf),_0x13ba3d[_0x2c4f07(0x116)]=nt(_0x13ba3d[_0x2c4f07(0x116)],_0x5a26db,_0x139aaf),_0x13ba3d[_0x2c4f07(0x12a)]=rt(_0x13ba3d[_0x2c4f07(0x12a)],_0x5a26db,_0x139aaf),_0x13ba3d[_0x2c4f07(0xd0)]=R(_0x13ba3d[_0x2c4f07(0xd0)],_0x5a26db,_0x139aaf),_0x13ba3d['customRanges']=R(_0x13ba3d[_0x2c4f07(0x10a)],_0x5a26db,_0x139aaf),_0x13ba3d[_0x2c4f07(0xfd)]=R(_0x13ba3d[_0x2c4f07(0xfd)],_0x5a26db,_0x139aaf),_0x13ba3d[_0x2c4f07(0x11d)]=R(_0x13ba3d[_0x2c4f07(0x11d)],_0x5a26db,_0x139aaf);}function tt(_0x4b7e87,_0x330233,_0x1298cc){const _0x13ef81=_0x1d39a3;var _0x4e21d3,_0x27cfb0;_0x4b7e87[_0x13ef81(0x12f)]=L(_0x4b7e87[_0x13ef81(0x12f)],_0x330233,_0x1298cc),_0x4b7e87[_0x13ef81(0xbe)]=L(_0x4b7e87[_0x13ef81(0xbe)],_0x330233,_0x1298cc),_0x4b7e87[_0x13ef81(0xe8)]=L(_0x4b7e87[_0x13ef81(0xe8)],_0x330233,_0x1298cc),_0x4b7e87[_0x13ef81(0x116)]=(_0x4e21d3=it((_0x27cfb0=_0x4b7e87[_0x13ef81(0x116)])==null?void 0x0:_0x27cfb0[_0x13ef81(0xbb)](_0x5ee604=>({..._0x5ee604,'startIndex':_0x5ee604['st'],'endIndex':_0x5ee604['ed']})),_0x330233,_0x1298cc))==null?void 0x0:_0x4e21d3[_0x13ef81(0xbb)](_0x51c6fd=>{let {startIndex:_0x162898,endIndex:_0x5d743a,..._0x3fc190}=_0x51c6fd;return{..._0x3fc190,'st':_0x162898,'ed':_0x5d743a};}),_0x4b7e87[_0x13ef81(0x12a)]=it(_0x4b7e87['tables'],_0x330233,_0x1298cc),_0x4b7e87[_0x13ef81(0xd0)]=z(_0x4b7e87[_0x13ef81(0xd0)],_0x330233,_0x1298cc),_0x4b7e87[_0x13ef81(0x10a)]=z(_0x4b7e87[_0x13ef81(0x10a)],_0x330233,_0x1298cc),_0x4b7e87[_0x13ef81(0xfd)]=z(_0x4b7e87[_0x13ef81(0xfd)],_0x330233,_0x1298cc),_0x4b7e87['blockRanges']=z(_0x4b7e87[_0x13ef81(0x11d)],_0x330233,_0x1298cc);}function I(_0x26de38,_0x2239e9,_0x3788ec){const _0x198868=_0x1d39a3;return _0x26de38==null?void 0x0:_0x26de38['map'](_0xc488c4=>_0xc488c4[_0x198868(0xab)]>=_0x2239e9?{..._0xc488c4,'startIndex':_0xc488c4['startIndex']+_0x3788ec}:_0xc488c4);}function L(_0x169da1,_0x2e5060,_0x251e4e){const _0x4ce519=_0x1d39a3;let _0x49ad4f=_0x2e5060+_0x251e4e;return _0x169da1==null?void 0x0:_0x169da1[_0x4ce519(0xbb)](_0x514ca2=>_0x514ca2[_0x4ce519(0xab)]>=_0x2e5060&&_0x514ca2[_0x4ce519(0xab)]<_0x49ad4f?null:_0x514ca2[_0x4ce519(0xab)]>=_0x49ad4f?{..._0x514ca2,'startIndex':_0x514ca2['startIndex']-_0x251e4e}:_0x514ca2)[_0x4ce519(0xcf)](_0x272232=>_0x272232!=null);}function nt(_0x4a6d5e,_0x1e9fda,_0x113388){const _0x1b680d=_0x1d39a3;return _0x4a6d5e==null?void 0x0:_0x4a6d5e[_0x1b680d(0xbb)](_0x2db297=>_0x2db297['st']>=_0x1e9fda?{..._0x2db297,'st':_0x2db297['st']+_0x113388,'ed':_0x2db297['ed']+_0x113388}:_0x2db297['ed']>_0x1e9fda?{..._0x2db297,'ed':_0x2db297['ed']+_0x113388}:_0x2db297);}function R(_0x59e75a,_0x117f9e,_0x36ef0f){const _0x82256b=_0x1d39a3;return _0x59e75a==null?void 0x0:_0x59e75a[_0x82256b(0xbb)](_0x33a08e=>_0x3ff03c(_0x33a08e,_0x117f9e,_0x36ef0f));}function rt(_0x5eed66,_0x2c8add,_0x455fcd){const _0x99766c=_0x1d39a3;return _0x5eed66==null?void 0x0:_0x5eed66[_0x99766c(0xbb)](_0x91f734=>_0x254835(_0x91f734,_0x2c8add,_0x455fcd));}function z(_0x514046,_0x3703d9,_0x158176){const _0x2c1e4d=_0x1d39a3;return _0x514046==null?void 0x0:_0x514046[_0x2c1e4d(0xbb)](_0x5465e6=>_0x321717(_0x5465e6,_0x3703d9,_0x158176))['filter'](_0x423fa9=>_0x423fa9!=null);}function it(_0x4af05a,_0x439a52,_0x3aba2a){const _0x2387a9=_0x1d39a3;return _0x4af05a==null?void 0x0:_0x4af05a[_0x2387a9(0xbb)](_0x235ae1=>_0x45258e(_0x235ae1,_0x439a52,_0x3aba2a))[_0x2387a9(0xcf)](_0xb49a45=>_0xb49a45!=null);}const at={'id':_0x1d39a3(0x132),'type':_0x2dace9['COMMAND'],'handler':_0x2f9443=>{const _0x4c641f=_0x1d39a3;var _0x6bd8bc;if(_0x431f27(G(_0x2f9443)))return!0x1;let _0x392dc0=_0x4d271c(_0x2f9443);if(_0x392dc0)return _0x2f9443[_0x4c641f(0xff)](_0x2175d5)['syncExecuteCommand'](B['id'],{'startOffset':_0x392dc0['startOffset'],'endOffset':_0x392dc0[_0x4c641f(0xf3)],'insertionMode':_0x4c641f(0xb7),'unitId':_0x392dc0[_0x4c641f(0x110)]});let _0x16d3cb=ft(_0x2f9443);if(!_0x16d3cb)return!0x1;let _0x281c4b=(_0x6bd8bc=_0x2f9443[_0x4c641f(0xff)](_0x765ea0)[_0x4c641f(0xd4)](_0x2efd60[_0x4c641f(0x117)]))==null?void 0x0:_0x6bd8bc[_0x4c641f(0x99)](),_0x343e8e=_0x281c4b?_0x5e906d(_0x281c4b,_0x16d3cb):_0x16d3cb[_0x4c641f(0xab)]+0x1;return _0x2f9443[_0x4c641f(0xff)](_0x2175d5)[_0x4c641f(0x10d)](B['id'],{'startOffset':_0x343e8e,'endOffset':_0x343e8e});}},ot={'id':_0x1d39a3(0x127),'type':_0x2dace9[_0x1d39a3(0x90)],'handler':()=>!0x0},B={'id':_0x1d39a3(0xb3),'type':_0x2dace9[_0x1d39a3(0x90)],'handler':(_0x1a6396,_0x198014)=>{const _0xc6938f=_0x1d39a3;let _0x339e62=W(_0x1a6396,_0x198014==null?void 0x0:_0x198014['unitId']);if(!_0x339e62)return!0x1;let _0x5f353b=G(_0x1a6396);if(_0x431f27(_0x5f353b))return!0x1;let _0x591b09=_0x339e62['model'][_0xc6938f(0xfa)](_0x339e62[_0xc6938f(0x110)]),_0x43f7ba=lt(_0x198014,_0x5f353b),_0x279d30=ut(_0x339e62[_0xc6938f(0xb0)],_0x43f7ba);if(_0x279d30){if(_0x279d30[_0xc6938f(0x12b)]!==_0x5beae4[_0xc6938f(0x9f)])return!0x1;let _0x4685f4=D({'blockId':_0x279d30[_0xc6938f(0x108)],'documentData':_0x339e62[_0xc6938f(0xb0)],'metadata':_0x591b09});if(!_0x4685f4)return!0x1;let _0x4b730d=Y(_0x339e62[_0xc6938f(0x114)],_0x339e62[_0xc6938f(0xde)],_0x339e62['unitId'],_0x339e62[_0xc6938f(0xb0)],_0x4685f4[_0xc6938f(0xc4)],B['id'],_0x4685f4[_0xc6938f(0xc9)]);return _0x4b730d&&_0x4685f4['nextMetadata']&&_0x339e62[_0xc6938f(0xb8)][_0xc6938f(0xae)](_0x339e62[_0xc6938f(0x110)],_0x4685f4[_0xc6938f(0x121)]),_0x4b730d;}let _0x1c0917=(_0x198014==null?void 0x0:_0x198014[_0xc6938f(0x108)])??_0x395744(0x6),_0x81399a;try{_0x81399a=De({'blockId':_0x1c0917,'config':_0x198014==null?void 0x0:_0x198014['config'],'documentData':_0x339e62[_0xc6938f(0xb0)],'endOffset':_0x43f7ba==null?void 0x0:_0x43f7ba[_0xc6938f(0xf3)],'insertionMode':_0x198014==null?void 0x0:_0x198014[_0xc6938f(0x128)],'metadata':_0x591b09,'startOffset':_0x43f7ba==null?void 0x0:_0x43f7ba[_0xc6938f(0xd9)]});}catch(_0x487558){if(_0x487558 instanceof E)return!0x1;throw _0x487558;}let _0x4944af=Y(_0x339e62['commandService'],_0x339e62[_0xc6938f(0xde)],_0x339e62[_0xc6938f(0x110)],_0x339e62['previousDocumentData'],_0x81399a[_0xc6938f(0xc4)],B['id'],_0x81399a[_0xc6938f(0xc9)]);return _0x4944af&&_0x81399a[_0xc6938f(0x121)]&&_0x339e62['model']['deserialize'](_0x339e62[_0xc6938f(0x110)],_0x81399a[_0xc6938f(0x121)]),_0x4944af;}},st={'id':'docs-code.command.update','type':_0x2dace9[_0x1d39a3(0x90)],'handler':(_0x2cdbeb,_0x38b820)=>{const _0x370bcd=_0x1d39a3;if(!_0x38b820)return!0x1;let _0x4140a2=W(_0x2cdbeb,_0x38b820[_0x370bcd(0x110)]);if(!_0x4140a2)return!0x1;let _0x5af458=je({'blockId':_0x38b820['blockId'],'config':_0x38b820[_0x370bcd(0x104)],'documentData':_0x4140a2[_0x370bcd(0xb0)],'metadata':_0x4140a2[_0x370bcd(0xb8)][_0x370bcd(0xfa)](_0x4140a2[_0x370bcd(0x110)])});return _0x5af458[_0x370bcd(0x121)]&&_0x4140a2[_0x370bcd(0xb8)][_0x370bcd(0xae)](_0x4140a2[_0x370bcd(0x110)],_0x5af458[_0x370bcd(0x121)]),!0x0;}},ct={'id':_0x1d39a3(0xea),'type':_0x2dace9['COMMAND'],'handler':(_0x1ef13f,_0xc7a15f)=>V[_0x1d39a3(0x119)](_0x1ef13f,_0xc7a15f)},V={'id':_0x1d39a3(0xee),'type':_0x2dace9[_0x1d39a3(0x90)],'handler':(_0x401f69,_0x3b0112)=>{const _0x148213=_0x1d39a3;if(!_0x3b0112)return!0x1;let _0x51903d=W(_0x401f69,_0x3b0112==null?void 0x0:_0x3b0112[_0x148213(0x110)]);if(!_0x51903d)return!0x1;let _0x1d8591=D({'blockId':_0x3b0112[_0x148213(0x108)],'documentData':_0x51903d[_0x148213(0xb0)],'metadata':_0x51903d[_0x148213(0xb8)][_0x148213(0xfa)](_0x51903d[_0x148213(0x110)])});if(!_0x1d8591)return!0x1;let _0x38b609=Y(_0x51903d[_0x148213(0x114)],_0x51903d['selectionManager'],_0x51903d[_0x148213(0x110)],_0x51903d[_0x148213(0xb0)],_0x1d8591[_0x148213(0xc4)],V['id'],_0x1d8591[_0x148213(0xc9)]);return _0x38b609&&_0x1d8591[_0x148213(0x121)]&&_0x51903d[_0x148213(0xb8)]['deserialize'](_0x51903d[_0x148213(0x110)],_0x1d8591[_0x148213(0x121)]),_0x38b609;}},H={'id':_0x1d39a3(0x11b),'type':_0x2dace9[_0x1d39a3(0x90)],'handler':(_0x10208d,_0x4b6ffa)=>{const _0x33cd7e=_0x1d39a3;if(!_0x4b6ffa)return!0x1;let _0x43a6a6=W(_0x10208d,_0x4b6ffa==null?void 0x0:_0x4b6ffa[_0x33cd7e(0x110)]);if(!_0x43a6a6)return!0x1;let _0x22f389=Me({'blockId':_0x4b6ffa[_0x33cd7e(0x108)],'documentData':_0x43a6a6[_0x33cd7e(0xb0)],'metadata':_0x43a6a6[_0x33cd7e(0xb8)]['serialize'](_0x43a6a6[_0x33cd7e(0x110)])});if(!_0x22f389)return!0x1;let _0x311ae6=Y(_0x43a6a6[_0x33cd7e(0x114)],_0x43a6a6['selectionManager'],_0x43a6a6['unitId'],_0x43a6a6[_0x33cd7e(0xb0)],_0x22f389[_0x33cd7e(0xc4)],H['id'],_0x22f389[_0x33cd7e(0xc9)]);return _0x311ae6&&_0x22f389[_0x33cd7e(0x121)]&&_0x43a6a6[_0x33cd7e(0xb8)][_0x33cd7e(0xae)](_0x43a6a6[_0x33cd7e(0x110)],_0x22f389[_0x33cd7e(0x121)]),_0x311ae6;}},U={'id':_0x1d39a3(0xd5),'type':_0x2dace9[_0x1d39a3(0x90)],'handler':(_0xbbdac7,_0x3c41f3)=>{const _0xb9a3f2=_0x1d39a3;var _0xbf4b12;let _0x13a1d9=W(_0xbbdac7,_0x3c41f3==null?void 0x0:_0x3c41f3[_0xb9a3f2(0x110)]);if(!_0x13a1d9)return!0x1;let _0x4b3946=(_0x3c41f3==null?void 0x0:_0x3c41f3[_0xb9a3f2(0xc9)])??((_0xbf4b12=G(_0xbbdac7))==null?void 0x0:_0xbf4b12['startOffset']);if(_0x4b3946==null)return!0x1;let _0x568263=Ne({'cursorOffset':_0x4b3946,'documentData':_0x13a1d9[_0xb9a3f2(0xb0)],'paragraphStartIndex':_0x3c41f3==null?void 0x0:_0x3c41f3[_0xb9a3f2(0x93)]});return _0x568263?Y(_0x13a1d9['commandService'],_0x13a1d9['selectionManager'],_0x13a1d9['unitId'],_0x13a1d9['previousDocumentData'],_0x568263['nextDocumentData'],U['id'],_0x568263[_0xb9a3f2(0xc9)]):!0x1;}};function W(_0x3e3d73,_0x3425b4){const _0xbc1999=_0x1d39a3;let _0x126b81=_0x3e3d73[_0xbc1999(0xff)](_0x765ea0),_0x249ecd=_0x3425b4?_0x126b81[_0xbc1999(0xfc)](_0x3425b4,_0x2efd60[_0xbc1999(0x117)]):_0x126b81[_0xbc1999(0xd4)](_0x2efd60[_0xbc1999(0x117)]);return _0x249ecd?{'commandService':_0x3e3d73[_0xbc1999(0xff)](_0x2175d5),'model':_0x3e3d73['get'](w),'previousDocumentData':_0x249ecd[_0xbc1999(0xf4)](),'selectionManager':_0x3e3d73[_0xbc1999(0xff)](_0x5cac0c),'unitId':_0x249ecd[_0xbc1999(0xa2)]()}:null;}function G(_0x94b7d6){const _0x147955=_0x1d39a3;var _0x279b3b;return(_0x279b3b=_0x94b7d6[_0x147955(0xff)](_0x5cac0c)['getTextRanges']())==null?void 0x0:_0x279b3b[0x0];}function lt(_0x2a5d5f,_0x56d694){const _0x3b447c=_0x1d39a3;let _0x17d60c=(_0x2a5d5f==null?void 0x0:_0x2a5d5f[_0x3b447c(0xd9)])??(_0x56d694==null?void 0x0:_0x56d694[_0x3b447c(0xd9)]),_0x313724=(_0x2a5d5f==null?void 0x0:_0x2a5d5f['endOffset'])??(_0x56d694==null?void 0x0:_0x56d694[_0x3b447c(0xf3)]);if(_0x17d60c!=null&&_0x313724!=null)return{'endOffset':Math[_0x3b447c(0xe0)](_0x17d60c,_0x313724),'startOffset':Math[_0x3b447c(0x118)](_0x17d60c,_0x313724)};}function ut(_0x59ed27,_0x34deee){const _0x49f10b=_0x1d39a3;var _0x3417f7;if(!_0x34deee)return;let _0x2624a2=dt(_0x34deee);return(_0x3417f7=_0x59ed27[_0x49f10b(0x95)])==null||(_0x3417f7=_0x3417f7[_0x49f10b(0x11d)])==null?void 0x0:_0x3417f7[_0x49f10b(0x94)](_0x1b881a=>{const _0x567b34=_0x49f10b;let _0x5898a7=_0x537bc1(_0x1b881a);return _0x34deee[_0x567b34(0xd9)]===_0x34deee[_0x567b34(0xf3)]?_0xd5ec9e(_0x5898a7,_0x2624a2):_0x479b09(_0x5898a7,_0x2624a2);});}function dt(_0x4c58a2){const _0x35b52f=_0x1d39a3;return _0x4c58a2[_0x35b52f(0xd9)]===_0x4c58a2[_0x35b52f(0xf3)]?_0x4c58a2[_0x35b52f(0xd9)]:_0x4c58a2[_0x35b52f(0xd9)]+0x1;}function ft(_0x300569){const _0x522762=_0x1d39a3;let _0x491c7e=G(_0x300569);if(!_0x491c7e)return null;let _0x14a6a5=_0x300569['get'](_0x765ea0)[_0x522762(0xd4)](_0x2efd60[_0x522762(0x117)]),_0x56a9ef=_0x14a6a5==null?void 0x0:_0x14a6a5[_0x522762(0x99)]();return _0x56a9ef?_0x59526f[_0x522762(0xa1)][_0x522762(0xa3)](_0x491c7e,_0x56a9ef[_0x522762(0x12f)]??[],_0x56a9ef[_0x522762(0x103)]??'')[0x0]??null:null;}function pt(_0x2e914b,_0x2700e8){const _0x5a6f3a=_0x1d39a3;let _0x478c5e=_0x2e914b[_0x5a6f3a(0x95)],_0x2e4391=_0x2700e8['body'],_0x20649d=_0xe39f3e(_0x478c5e,_0x2e4391);return[_0x20649d&&_0x2e4391?mt(_0x2e4391,_0x20649d):null,_0x20649d?null:ht(_0x478c5e,_0x2e4391)][_0x5a6f3a(0xcf)](Boolean)[_0x5a6f3a(0x10f)]((_0x2b9f95,_0xf0a4e5)=>_0x7839c8[_0x5a6f3a(0xd1)](_0x2b9f95,_0xf0a4e5),null);}function mt(_0x133133,_0x19722d){const _0x11e08e=_0x1d39a3;let _0x321c00=new _0x5aed02();return _0x321c00[_0x11e08e(0x133)](_0x19722d[_0x11e08e(0xc5)]),_0x19722d['insertLength']>0x0&&_0x321c00[_0x11e08e(0x120)](_0x19722d['insertLength'],_0xe7c155(_0x133133,_0x19722d[_0x11e08e(0xc5)],_0x19722d[_0x11e08e(0xc5)]+_0x19722d[_0x11e08e(0x131)],!0x1)),_0x19722d[_0x11e08e(0x113)]>0x0&&_0x321c00[_0x11e08e(0x9c)](_0x19722d[_0x11e08e(0x113)]),_0x7839c8[_0x11e08e(0xdf)]()['editOp'](_0x321c00[_0x11e08e(0xfa)](),[_0x11e08e(0x95)]);}function ht(_0x330350,_0x52192){const _0x45797c=_0x1d39a3;let _0x2daf9e=[],_0x517535=_0x330350?_t(_0x330350):void 0x0,_0xc3a143=_0x52192?_t(_0x52192):void 0x0;for(let _0x274b79 of gt)K(_0x7839c8[_0x45797c(0xdf)](),[_0x45797c(0x95),_0x274b79],_0x517535==null?void 0x0:_0x517535[_0x274b79],_0xc3a143==null?void 0x0:_0xc3a143[_0x274b79],_0x2daf9e);return _0x2daf9e[_0x45797c(0x10f)]((_0x1831a8,_0x3796f4)=>_0x7839c8[_0x45797c(0xd1)](_0x1831a8,_0x3796f4),null);}const gt=['paragraphs','sectionBreaks',_0x1d39a3(0x12a),'columnGroups',_0x1d39a3(0x11d),_0x1d39a3(0xe8),'customRanges',_0x1d39a3(0xfd),_0x1d39a3(0x116)];function _t(_0x59c0c8){return _0x59c0c8;}function K(_0x1a2b01,_0x2e6cf0,_0xd1d390,_0x23fca7,_0x1065cc){const _0x5831f1=_0x1d39a3;J(_0xd1d390,_0x23fca7)||(_0xd1d390==null?_0x1065cc[_0x5831f1(0xe4)](_0x1a2b01['insertOp'](_0x2e6cf0,_0x23fca7)):_0x23fca7==null?_0x1065cc[_0x5831f1(0xe4)](_0x1a2b01['removeOp'](_0x2e6cf0,_0xd1d390)):Array[_0x5831f1(0x124)](_0xd1d390)&&Array[_0x5831f1(0x124)](_0x23fca7)?vt(_0x1a2b01,_0x2e6cf0,_0xd1d390,_0x23fca7,_0x1065cc):q(_0xd1d390)&&q(_0x23fca7)?new Set([...Object[_0x5831f1(0xd6)](_0xd1d390),...Object[_0x5831f1(0xd6)](_0x23fca7)])[_0x5831f1(0xec)](_0x3b9ac8=>{K(_0x1a2b01,[..._0x2e6cf0,_0x3b9ac8],_0xd1d390[_0x3b9ac8],_0x23fca7[_0x3b9ac8],_0x1065cc);}):_0x1065cc[_0x5831f1(0xe4)](_0x1a2b01[_0x5831f1(0xb9)](_0x2e6cf0,_0xd1d390,_0x23fca7)));}function vt(_0x525ed3,_0x5c0c4a,_0x40b683,_0x2cdca9,_0x146932){const _0x579410=_0x1d39a3;if(_0x40b683[_0x579410(0x123)]===_0x2cdca9['length']){_0x40b683[_0x579410(0xec)]((_0x1bbba7,_0x4d91cd)=>K(_0x525ed3,[..._0x5c0c4a,_0x4d91cd],_0x1bbba7,_0x2cdca9[_0x4d91cd],_0x146932));return;}let _0x445c13=0x0;for(;_0x445c13<_0x40b683[_0x579410(0x123)]&&_0x445c13<_0x2cdca9[_0x579410(0x123)]&&J(_0x40b683[_0x445c13],_0x2cdca9[_0x445c13]);)_0x445c13++;let _0x4368a1=_0x40b683[_0x579410(0x123)]-0x1,_0x2a77af=_0x2cdca9[_0x579410(0x123)]-0x1;for(;_0x4368a1>=_0x445c13&&_0x2a77af>=_0x445c13&&J(_0x40b683[_0x4368a1],_0x2cdca9[_0x2a77af]);)_0x4368a1--,_0x2a77af--;for(let _0x1fe78f=_0x4368a1;_0x1fe78f>=_0x445c13;_0x1fe78f--)_0x146932[_0x579410(0xe4)](_0x525ed3[_0x579410(0x9a)]([..._0x5c0c4a,_0x1fe78f],_0x40b683[_0x1fe78f]));for(let _0x12db73=_0x445c13;_0x12db73<=_0x2a77af;_0x12db73++)_0x146932[_0x579410(0xe4)](_0x525ed3[_0x579410(0xe6)]([..._0x5c0c4a,_0x12db73],_0x2cdca9[_0x12db73]));}function q(_0x11f6f8){const _0x511962=_0x1d39a3;return typeof _0x11f6f8==_0x511962(0xc8)&&!!_0x11f6f8&&!Array[_0x511962(0x124)](_0x11f6f8);}function J(_0x1fcbad,_0x44a9e6){const _0x551ec1=_0x1d39a3;return JSON[_0x551ec1(0xb6)](_0x1fcbad)===JSON[_0x551ec1(0xb6)](_0x44a9e6);}function Y(_0x1094a6,_0x5a2384,_0x39770b,_0x3090c7,_0xe3d61f,_0xbf89a6,_0x3a0a83){const _0x5b47fa=_0x1d39a3;let _0x596238=pt(_0x3090c7,_0xe3d61f);return _0x596238?!!_0x1094a6[_0x5b47fa(0x10d)](_0x40ade1['id'],{'unitId':_0x39770b,'actions':_0x596238,'textRanges':[{'startOffset':_0x3a0a83,'endOffset':_0x3a0a83,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0xbf89a6}):(_0x5a2384[_0x5b47fa(0xad)]([{'startOffset':_0x3a0a83,'endOffset':_0x3a0a83}],{'unitId':_0x39770b,'subUnitId':_0x39770b},!0x1),!0x0);}const X='DOC_CODE_PLUGIN';var yt=_0x1d39a3(0xf2),bt=_0x1d39a3(0xb5);const xt={};function Z(_0x355171,_0x142ea6){return function(_0x51f935,_0x33b3e6){_0x142ea6(_0x51f935,_0x33b3e6,_0x355171);};}function St(_0x1135ae,_0x286772,_0x9d985e,_0x43121c){const _0x2efc51=_0x1d39a3;var _0x5b04b6=arguments['length'],_0x10f24d=_0x5b04b6<0x3?_0x286772:_0x43121c===null?_0x43121c=Object['getOwnPropertyDescriptor'](_0x286772,_0x9d985e):_0x43121c,_0x2aa894;if(typeof Reflect==_0x2efc51(0xc8)&&typeof Reflect[_0x2efc51(0xdc)]==_0x2efc51(0x111))_0x10f24d=Reflect['decorate'](_0x1135ae,_0x286772,_0x9d985e,_0x43121c);else{for(var _0x2b199e=_0x1135ae[_0x2efc51(0x123)]-0x1;_0x2b199e>=0x0;_0x2b199e--)(_0x2aa894=_0x1135ae[_0x2b199e])&&(_0x10f24d=(_0x5b04b6<0x3?_0x2aa894(_0x10f24d):_0x5b04b6>0x3?_0x2aa894(_0x286772,_0x9d985e,_0x10f24d):_0x2aa894(_0x286772,_0x9d985e))||_0x10f24d);}return _0x5b04b6>0x3&&_0x10f24d&&Object['defineProperty'](_0x286772,_0x9d985e,_0x10f24d),_0x10f24d;}let Q=class extends _0x4e5cf1{constructor(_0xaba631,_0x18df63){const _0x5e2edc=_0x1d39a3;super(),this[_0x5e2edc(0xf9)]=_0xaba631,this[_0x5e2edc(0xbc)]=_0x18df63,this[_0x5e2edc(0xd7)]();}['_initResource'](){const _0x19bd2e=_0x1d39a3;this['disposeWithMe'](this['_resourceManagerService']['registerPluginResource']({'pluginName':X,'businesses':[_0x2efd60[_0x19bd2e(0x117)]],'toJson':_0x5673fa=>JSON[_0x19bd2e(0xb6)](this[_0x19bd2e(0xbc)][_0x19bd2e(0xfa)](_0x5673fa)),'parseJson':_0x1398f2=>y(JSON['parse'](_0x1398f2)),'onLoad':(_0x405617,_0x4e955d)=>this[_0x19bd2e(0xbc)][_0x19bd2e(0xae)](_0x405617,_0x4e955d),'onUnLoad':_0x697385=>this[_0x19bd2e(0xbc)]['removeUnit'](_0x697385)}));}};Q=St([Z(0x0,_0x40da0c),Z(0x1,_0x46134b(w))],Q);let $=class extends _0x364415{constructor(_0x2ddecf=xt,_0x16ca0b,_0x26985c,_0x557886){const _0x46c53c=_0x1d39a3;super(),this['_config']=_0x2ddecf,this[_0x46c53c(0x135)]=_0x16ca0b,this[_0x46c53c(0x11c)]=_0x26985c,this[_0x46c53c(0x10c)]=_0x557886;let {..._0x3a7c88}=_0x4acedb({},xt,this['_config']);this[_0x46c53c(0x10c)][_0x46c53c(0x102)](_0x46c53c(0xa4),_0x3a7c88);}[_0x1d39a3(0xc7)](){const _0x17a0ef=_0x1d39a3;this[_0x17a0ef(0x135)]['add']([w]),this[_0x17a0ef(0x135)][_0x17a0ef(0x112)]([Q]),this['_injector'][_0x17a0ef(0xff)](w),this[_0x17a0ef(0x135)]['get'](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x17a0ef(0xec)](_0x3d53bf=>this[_0x17a0ef(0x130)](this[_0x17a0ef(0x11c)]['registerCommand'](_0x3d53bf)));}};C($,_0x1d39a3(0xfb),X),C($,_0x1d39a3(0xf7),yt),C($,'version',bt),C($,_0x1d39a3(0xbd),_0x2efd60[_0x1d39a3(0x117)]),$=St([_0xc91b1c(_0xf600d9,_0x5825c3),Z(0x1,_0x46134b(_0x10239e)),Z(0x2,_0x2175d5),Z(0x3,_0xd2a5aa)],$);export{X as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,ot as DocsCodeConsumeBoundaryDeleteCommand,at as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,w as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,st as DocsCodeUpdateCommand,T as RemoveDocsCodeConfigMutation,Te as SetDocsCodeConfigMutation,$ as UniverDocsCodePlugin,Ne as buildCancelEmptyCodeParagraphActions,Ie as isCodeBoundaryDelete,v as normalizeDocsCodeConfig,y as normalizeDocsCodeMetadataResource};
|
|
1
|
+
const _0x5132d8=_0x51c8;(function(_0x167633,_0x31cb03){const _0x16cdee=_0x51c8,_0x7bf240=_0x167633();while(!![]){try{const _0x2f9ae8=-parseInt(_0x16cdee(0x1e4))/0x1+-parseInt(_0x16cdee(0x1ad))/0x2*(parseInt(_0x16cdee(0x1f4))/0x3)+parseInt(_0x16cdee(0x1a6))/0x4+-parseInt(_0x16cdee(0x1dc))/0x5*(-parseInt(_0x16cdee(0x206))/0x6)+-parseInt(_0x16cdee(0x1aa))/0x7+-parseInt(_0x16cdee(0x18d))/0x8*(parseInt(_0x16cdee(0x1d7))/0x9)+parseInt(_0x16cdee(0x18f))/0xa;if(_0x2f9ae8===_0x31cb03)break;else _0x7bf240['push'](_0x7bf240['shift']());}catch(_0x26b8d5){_0x7bf240['push'](_0x7bf240['shift']());}}}(_0x2ccf,0x58844));import{BooleanNumber as _0x266faf,BuildTextUtils as _0x433516,CommandType as _0x1a72f7,DataStreamTreeTokenType as _0x206623,DependentOn as _0x17fb0a,Disposable as _0x1fa454,DocumentBlockRangeType as _0x2a89d4,ICommandService as _0x5b460c,IConfigService as _0x5ab5a7,IResourceManagerService as _0xb2d34,IUniverInstanceService as _0x5838d6,Inject as _0x44aea7,Injector as _0x3db901,JSONX as _0x126099,Plugin as _0x1f77c2,TextX as _0x3ed338,UniverInstanceType as _0x5872e5,containsInteriorInsertionOffset as _0x48e4df,containsStreamIndex as _0x25de02,createParagraphId as _0x4e118f,generateRandomId as _0x4a7f6a,getBlockRangeInterval as _0x4a229d,getBodySliceForTextXAction as _0x11d3a7,getParagraphContentStartOffset as _0x238f9f,getParagraphContentStartOffsets as _0x5c1188,getParagraphFollowingBlockOffset as _0x899368,getSingleDataStreamChange as _0x49ee49,intersectsOperationalIntervals as _0x7353c8,merge as _0x337304,shiftExclusiveRangeOnDelete as _0x1c6252,shiftExclusiveRangeOnInsert as _0x41443a,shiftInclusiveRangeOnDelete as _0x3b01e8,shiftInclusiveRangeOnInsert as _0x4d85c0}from'@univerjs/core';import{Subject as _0x580a75}from'rxjs';import{DocSelectionManagerService as _0x23046e,RichTextEditingMutation as _0x331b69,UniverDocsPlugin as _0x1908df,getContentInsertRange as _0x227e30,isHeaderFooterSelection as _0x42dbdb}from'@univerjs/docs';import{UniverLicensePlugin as _0x3b1fe5}from'@univerjs-pro/license';const Se={'language':_0x5132d8(0x196),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x5d4e43){return{...Se,..._0x5d4e43};}function y(_0x2a1dab){const _0x418e42=_0x5132d8;let _0x162dc3=(_0x2a1dab==null?void 0x0:_0x2a1dab[_0x418e42(0x1c6)])??{};return{'codes':Object['fromEntries'](Object[_0x418e42(0x226)](_0x162dc3)['map'](([_0x3e6779,_0x533ab9])=>[_0x3e6779,v(_0x533ab9)]))};}function b(_0x47ec64,_0x4b26c0,_0x2cc2aa){const _0x263b55=_0x5132d8;let _0xda210a=y(_0x47ec64);return _0xda210a[_0x263b55(0x1c6)][_0x4b26c0]=v({..._0xda210a[_0x263b55(0x1c6)][_0x4b26c0],..._0x2cc2aa}),_0xda210a;}function x(_0x55f0db,_0x56fa25){let _0x782dbd=y(_0x55f0db);return delete _0x782dbd['codes'][_0x56fa25],_0x782dbd;}function _0x51c8(_0x265115,_0x45ea88){_0x265115=_0x265115-0x18d;const _0x2ccfef=_0x2ccf();let _0x51c85b=_0x2ccfef[_0x265115];return _0x51c85b;}function S(_0x1db4ea){'@babel/helpers - typeof';const _0x532d8f=_0x5132d8;return S=typeof Symbol==_0x532d8f(0x210)&&typeof Symbol[_0x532d8f(0x1ec)]=='symbol'?function(_0x1befa7){return typeof _0x1befa7;}:function(_0x1c5bea){const _0x8c87bd=_0x532d8f;return _0x1c5bea&&typeof Symbol=='function'&&_0x1c5bea[_0x8c87bd(0x1ba)]===Symbol&&_0x1c5bea!==Symbol[_0x8c87bd(0x1db)]?_0x8c87bd(0x1c0):typeof _0x1c5bea;},S(_0x1db4ea);}function Ce(_0x47c3b2,_0xdebc67){const _0x2d0066=_0x5132d8;if(S(_0x47c3b2)!=_0x2d0066(0x1c9)||!_0x47c3b2)return _0x47c3b2;var _0x391a73;if(typeof Symbol<'u'&&(_0x391a73=_0x47c3b2[Symbol[_0x2d0066(0x1c2)]])!==void 0x0){var _0x36ef6c=_0x391a73[_0x2d0066(0x222)](_0x47c3b2,_0xdebc67||_0x2d0066(0x19c));if(S(_0x36ef6c)!=_0x2d0066(0x1c9))return _0x36ef6c;throw TypeError(_0x2d0066(0x1f5));}return(_0xdebc67==='string'?String:Number)(_0x47c3b2);}function we(_0x39b6fb){const _0x4bc65d=_0x5132d8;var _0x485d79=Ce(_0x39b6fb,_0x4bc65d(0x19f));return S(_0x485d79)==_0x4bc65d(0x1c0)?_0x485d79:_0x485d79+'';}function C(_0x1028bc,_0x41e42d,_0x13705a){const _0x414b7e=_0x5132d8;return(_0x41e42d=we(_0x41e42d))in _0x1028bc?Object[_0x414b7e(0x209)](_0x1028bc,_0x41e42d,{'value':_0x13705a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1028bc[_0x41e42d]=_0x13705a,_0x1028bc;}var w=class extends _0x1fa454{constructor(..._0x184a84){const _0x1cf024=_0x5132d8;super(..._0x184a84),C(this,'_resources',new Map()),C(this,'_change$',new _0x580a75()),C(this,'change$',this[_0x1cf024(0x205)]['asObservable']());}['getCodeConfig'](_0x39bff1,_0x885311){const _0x3d79d5=_0x5132d8;return y(this[_0x3d79d5(0x1c4)][_0x3d79d5(0x1ed)](_0x39bff1))[_0x3d79d5(0x1c6)][_0x885311];}[_0x5132d8(0x1dd)](_0x1dd491,_0x51e855,_0x243df0){const _0x1cf215=_0x5132d8;this[_0x1cf215(0x21f)](_0x1dd491,_0x51e855,b(this[_0x1cf215(0x1c4)][_0x1cf215(0x1ed)](_0x1dd491),_0x51e855,_0x243df0));}[_0x5132d8(0x22c)](_0x403420,_0x2c553b){this['_setResource'](_0x403420,_0x2c553b,x(this['_resources']['get'](_0x403420),_0x2c553b));}[_0x5132d8(0x1d5)](_0x51e177){return y(this['_resources']['get'](_0x51e177));}[_0x5132d8(0x1f9)](_0x8ed186,_0x92032d){const _0x5cfe5b=_0x5132d8;this[_0x5cfe5b(0x1c4)][_0x5cfe5b(0x231)](_0x8ed186,y(_0x92032d)),this[_0x5cfe5b(0x205)][_0x5cfe5b(0x1bc)]({'unitId':_0x8ed186});}[_0x5132d8(0x1e8)](_0x130e96){const _0x1caa84=_0x5132d8;this[_0x1caa84(0x1c4)][_0x1caa84(0x21a)](_0x130e96),this[_0x1caa84(0x205)][_0x1caa84(0x1bc)]({'unitId':_0x130e96});}['dispose'](){const _0x8171ee=_0x5132d8;super['dispose'](),this['_resources'][_0x8171ee(0x1fe)](),this[_0x8171ee(0x205)][_0x8171ee(0x1a2)]();}[_0x5132d8(0x21f)](_0x18fc0a,_0x560cc7,_0x85a08d){const _0x26bcb9=_0x5132d8;this['_resources'][_0x26bcb9(0x231)](_0x18fc0a,_0x85a08d),this[_0x26bcb9(0x205)][_0x26bcb9(0x1bc)]({'unitId':_0x18fc0a,'blockId':_0x560cc7});}};const Te={'id':_0x5132d8(0x208),'type':_0x1a72f7['MUTATION'],'handler':(_0x121ef3,_0x543fef)=>!(_0x543fef!=null&&_0x543fef['unitId'])||!_0x543fef[_0x5132d8(0x1cf)]?!0x1:(_0x121ef3[_0x5132d8(0x1ed)](w)[_0x5132d8(0x1dd)](_0x543fef[_0x5132d8(0x220)],_0x543fef[_0x5132d8(0x1cf)],_0x543fef[_0x5132d8(0x1b2)]),!0x0)},T={'id':_0x5132d8(0x211),'type':_0x1a72f7['MUTATION'],'handler':(_0x45bbda,_0x453aee)=>!(_0x453aee!=null&&_0x453aee[_0x5132d8(0x220)])||!_0x453aee[_0x5132d8(0x1cf)]?!0x1:(_0x45bbda[_0x5132d8(0x1ed)](w)[_0x5132d8(0x22c)](_0x453aee[_0x5132d8(0x220)],_0x453aee[_0x5132d8(0x1cf)]),!0x0)},Ee='monospace';var E=class extends Error{constructor(_0x37bdaf='Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries'){super(_0x37bdaf);}};function De(_0x343edf){const _0x302d55=_0x5132d8;var _0x4addc4;let _0x3f9045=O(_0x343edf[_0x302d55(0x1e5)]),_0x4bda6d=A(_0x3f9045),_0x234ffe=ke(_0x343edf[_0x302d55(0x1b7)],_0x343edf[_0x302d55(0x207)]),_0x3544c8=_0x234ffe?(_0x4addc4=_0x4bda6d[_0x302d55(0x1af)])==null?void 0x0:_0x4addc4[_0x302d55(0x1ff)](_0x18a6f0=>{const _0x55ed45=_0x302d55;let _0x586b9=_0x4a229d(_0x18a6f0);return _0x586b9[_0x55ed45(0x1b7)]===_0x234ffe[_0x55ed45(0x1b7)]&&_0x586b9[_0x55ed45(0x207)]===_0x234ffe['endOffset'];}):void 0x0,{startOffset:_0x8be075,endOffset:_0x2c5896}=_0x3544c8?_0x234ffe:We(_0x4bda6d,_0x343edf[_0x302d55(0x1b7)],_0x343edf[_0x302d55(0x207)],_0x343edf['insertionMode']);if(!_0x3544c8&&Ae(_0x4bda6d,_0x8be075,_0x2c5896))throw new E(_0x302d55(0x194));let _0x1ef123=qe(_0x4bda6d,_0x8be075,_0x2c5896),_0x1b3c4a=(_0x3544c8==null?void 0x0:_0x3544c8[_0x302d55(0x1cf)])??_0x343edf['blockId'],_0x1b0d71=b(_0x343edf['metadata'],_0x1b3c4a,{...Se,..._0x343edf[_0x302d55(0x1b2)]});if(_0x3544c8)return _0x3544c8[_0x302d55(0x1ab)]=_0x2a89d4[_0x302d55(0x22b)],Oe(_0x4bda6d,_0x8be075,_0x2c5896),ze(_0x4bda6d,_0x8be075,_0x2c5896,_0x1ef123),N(_0x4bda6d,_0x3544c8),{'nextDocumentData':_0x3f9045,'nextMetadata':_0x1b0d71,'cursorOffset':_0x8be075+0x1};if(_0x8be075===_0x2c5896){var _0x40477b,_0x34f8fd;let _0xe3eca=''+_0x206623[_0x302d55(0x1b3)]+_0x206623[_0x302d55(0x1a7)]+_0x206623[_0x302d55(0x1a5)];P(_0x4bda6d,_0x8be075,_0xe3eca,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x4e118f(new Set((_0x40477b=_0x4bda6d['paragraphs'])==null?void 0x0:_0x40477b[_0x302d55(0x20d)](_0x21c28c=>_0x21c28c['paragraphId']))),'paragraphStyle':Re(!0x0,!0x0,_0x1ef123)}],'blockRanges':[{'blockId':_0x1b3c4a,'blockType':_0x2a89d4[_0x302d55(0x22b)],'startIndex':0x0,'endIndex':_0xe3eca[_0x302d55(0x221)]-0x1}]});let _0x4a9e12=(_0x34f8fd=_0x4bda6d[_0x302d55(0x1af)])==null?void 0x0:_0x34f8fd[_0x302d55(0x1ff)](_0x545858=>_0x545858[_0x302d55(0x1cf)]===_0x1b3c4a);return _0x4a9e12&&N(_0x4bda6d,_0x4a9e12),{'nextDocumentData':_0x3f9045,'nextMetadata':_0x1b0d71,'cursorOffset':_0x8be075+0x1};}P(_0x4bda6d,_0x2c5896,_0x206623['BLOCK_END']),P(_0x4bda6d,_0x8be075,_0x206623[_0x302d55(0x1b3)]),ze(_0x4bda6d,_0x8be075,_0x2c5896+0x1,_0x1ef123);let _0x51d13a={'blockId':_0x1b3c4a,'blockType':_0x2a89d4['CODE'],'startIndex':_0x8be075,'endIndex':_0x2c5896+0x1};return _0x4bda6d[_0x302d55(0x1af)]=[..._0x4bda6d[_0x302d55(0x1af)]??[],_0x51d13a][_0x302d55(0x199)]((_0xc20075,_0x5863cd)=>_0xc20075['startIndex']-_0x5863cd['startIndex']),N(_0x4bda6d,_0x51d13a),{'nextDocumentData':_0x3f9045,'nextMetadata':_0x1b0d71,'cursorOffset':_0x8be075+0x1};}function Oe(_0x2534b9,_0x52f0fa,_0x2bad0f){const _0x12da7a=_0x5132d8;(_0x2534b9[_0x12da7a(0x19d)]??[])[_0x12da7a(0x1ae)](_0x12e9ba=>_0x12e9ba[_0x12da7a(0x1d9)]>_0x52f0fa&&_0x12e9ba[_0x12da7a(0x1d9)]<_0x2bad0f)['forEach'](_0x21d1b8=>{const _0x111248=_0x12da7a;let _0x3664a9={..._0x21d1b8[_0x111248(0x19b)]??{}};delete _0x3664a9[_0x111248(0x1e0)],delete _0x3664a9[_0x111248(0x1e9)],_0x21d1b8[_0x111248(0x19b)]=_0x3664a9;});}function ke(_0x112737,_0x9f17a7){const _0x3e6a0b=_0x5132d8;return _0x112737==null||_0x9f17a7==null||_0x112737===_0x9f17a7?null:{'startOffset':Math[_0x3e6a0b(0x1d6)](_0x112737,_0x9f17a7),'endOffset':Math[_0x3e6a0b(0x1cd)](_0x112737,_0x9f17a7)};}function Ae(_0x5b1a78,_0x3cf775,_0x37bb5d){const _0x4c548c=_0x5132d8;return(_0x5b1a78['blockRanges']??[])[_0x4c548c(0x1f8)](_0x249c85=>{let _0x320971=_0x4a229d(_0x249c85);return _0x3cf775===_0x37bb5d?_0x48e4df(_0x320971,_0x3cf775):_0x7353c8(_0x320971,{'startOffset':_0x3cf775,'endOffset':_0x37bb5d});});}function je(_0x318d11){const _0x3648cd=_0x5132d8;return{'nextDocumentData':O(_0x318d11[_0x3648cd(0x1e5)]),'nextMetadata':b(_0x318d11[_0x3648cd(0x1eb)],_0x318d11[_0x3648cd(0x1cf)],_0x318d11[_0x3648cd(0x1b2)]),'cursorOffset':0x0};}function D(_0x45ea1f){const _0x4a0a8f=_0x5132d8;let _0x49b324=O(_0x45ea1f[_0x4a0a8f(0x1e5)]),_0x13454d=A(_0x49b324),_0x48ead8=Fe(_0x13454d,_0x45ea1f['blockId']);if(!_0x48ead8)return null;let _0x4b5618=He(_0x13454d,_0x48ead8);return{'nextDocumentData':_0x49b324,'nextMetadata':x(_0x45ea1f[_0x4a0a8f(0x1eb)],_0x45ea1f[_0x4a0a8f(0x1cf)]),'cursorOffset':_0x4b5618};}function Me(_0x32ce85){const _0x41c08d=_0x5132d8;var _0x22f7b6;let _0x3b1fc5=O(_0x32ce85[_0x41c08d(0x1e5)]),_0x144a6f=A(_0x3b1fc5),_0x576d7b=Fe(_0x144a6f,_0x32ce85[_0x41c08d(0x1cf)]);if(!_0x576d7b)return null;let _0x171986=_0x4a229d(_0x576d7b);return F(_0x144a6f,_0x171986[_0x41c08d(0x1b7)],_0x171986[_0x41c08d(0x207)]),_0x144a6f[_0x41c08d(0x1af)]=(_0x22f7b6=_0x144a6f[_0x41c08d(0x1af)])==null?void 0x0:_0x22f7b6[_0x41c08d(0x1ae)](_0x27c09e=>_0x27c09e[_0x41c08d(0x1cf)]!==_0x32ce85[_0x41c08d(0x1cf)]),{'nextDocumentData':_0x3b1fc5,'nextMetadata':x(_0x32ce85[_0x41c08d(0x1eb)],_0x32ce85[_0x41c08d(0x1cf)]),'cursorOffset':_0x576d7b[_0x41c08d(0x1d9)]};}function Ne(_0x3e9464){const _0x283bb9=_0x5132d8;let _0x4085b1=O(_0x3e9464[_0x283bb9(0x1e5)]),_0x2f29dd=A(_0x4085b1),_0x2adbbf=Le(_0x2f29dd,_0x3e9464[_0x283bb9(0x1ea)]);return _0x2adbbf&&Pe(_0x4085b1,_0x2f29dd,_0x2adbbf,_0x3e9464[_0x283bb9(0x1ea)],_0x3e9464[_0x283bb9(0x1da)])||null;}function Pe(_0x502707,_0x123364,_0x5e5ad8,_0x22db64,_0x2b8eaf){const _0x5b40b9=_0x5132d8;let _0x31f7c5=$e(_0x123364,_0x5e5ad8,_0x22db64,_0x2b8eaf);if(!_0x31f7c5)return null;let _0x12b4f7=_0x31f7c5[_0x5b40b9(0x1a4)]-0x1;return F(_0x123364,_0x31f7c5[_0x5b40b9(0x1e7)][_0x5b40b9(0x1d9)],_0x31f7c5['paragraph'][_0x5b40b9(0x1d9)]+0x1),{'nextDocumentData':_0x502707,'cursorOffset':_0x12b4f7};}function Fe(_0x296f0e,_0x455945){const _0x5482b9=_0x5132d8;var _0x1c732e;return _0x296f0e==null||(_0x1c732e=_0x296f0e[_0x5482b9(0x1af)])==null?void 0x0:_0x1c732e[_0x5482b9(0x1ff)](_0xaf2153=>_0xaf2153[_0x5482b9(0x1ab)]===_0x2a89d4[_0x5482b9(0x22b)]&&_0xaf2153[_0x5482b9(0x1cf)]===_0x455945);}function _0x2ccf(){const _0x4c34da=['removeCode','indentEnd','COMMAND','disposeWithMe','nextMetadata','set','712WCbUNh','endsWith','21329640kZwOvK','getUnit','replaceDocRanges','_config','_docsCodeModel','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','docs-code.command.update','javascript','endIndex','from','sort','type','paragraphStyle','default','paragraphs','docs-code.command.remove','string','bullet','start','complete','tables','endTokenOffset','BLOCK_END','90252uRFGMJ','PARAGRAPH','deleteLength','paragraphId','3557400qUvWho','blockType','textStyle','2wpWEiQ','filter','blockRanges','insert-new','getTextRanges','config','BLOCK_START','isArray','keepLines','getBody','startOffset','handler','keys','constructor','direction','next','push','TRUE','getCurrentUnitOfType','symbol','_initResource','toPrimitive','docs-code.command.cancel-empty-paragraph','_resources','SECTION_BREAK','codes','_injector','startTokenOffset','object','retain','removeOp','body','max','insert','blockId','_commandService','fromEntries','docs-code.config','insertOp','compose','serialize','min','61758lbduoG','columnGroups','startIndex','paragraphStartIndex','prototype','10rUbmOw','setCodeConfig','1.5.1','insertLength','spaceAbove','forEach','commandService','indexOf','527598omgNGu','documentData','sectionBreaks','paragraph','removeUnit','spaceBelow','cursorOffset','metadata','iterator','get','range','packageName','slice','add','dataStream','previousDocumentData','1104969gHWfkC','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','customDecorations','docs-code.command.insert','some','deserialize','replaceOp','docs-code.command.unwrap','UNIVER_DOC','getInstance','clear','find','DOC_CODE_PLUGIN','_resourceManagerService','keepNext','widowControl','setConfig','_change$','665628oKfpCZ','endOffset','docs-code.mutation.set-config','defineProperty','_configService','decorate','selectionManager','map','columns','registerCommand','function','docs-code.mutation.remove-config','reduce','TABLE_CELL_START','customBlocks','nextDocumentData','model','docs-code.command.consume-boundary-delete','every','getParagraphsInRange','delete','editOp','getOwnPropertyDescriptor','docs-code.command.insert-below','TABLE_CELL_END','_setResource','unitId','length','call','pluginName','customRanges','insertionMode','entries','textRuns','getUnitId','indentStart','stringify','CODE'];_0x2ccf=function(){return _0x4c34da;};return _0x2ccf();}function Ie(_0x2356c9){const _0x3dad78=_0x5132d8;let _0x52bb2b=_0x2356c9['documentData'][_0x3dad78(0x1cc)];if(!_0x52bb2b)return!0x1;let _0xc2cf92=_0x2356c9[_0x3dad78(0x1bb)]==='left'?_0x2356c9[_0x3dad78(0x1ea)]-0x1:_0x2356c9[_0x3dad78(0x1ea)],_0x3fbc8f=_0x2356c9['direction']==='right'?_0x2356c9['cursorOffset']+0x1:_0xc2cf92;return(_0x52bb2b['blockRanges']??[])[_0x3dad78(0x1f8)](_0x559085=>_0x559085[_0x3dad78(0x1ab)]===_0x2a89d4[_0x3dad78(0x22b)]?_0xc2cf92===_0x559085[_0x3dad78(0x1d9)]||_0xc2cf92===_0x559085[_0x3dad78(0x197)]||_0x3fbc8f===_0x559085[_0x3dad78(0x1d9)]||_0x3fbc8f===_0x559085['endIndex']:!0x1);}function Le(_0x32338d,_0x23d114){const _0x269aa8=_0x5132d8;var _0x13d44c;return(_0x13d44c=_0x32338d[_0x269aa8(0x1af)])==null?void 0x0:_0x13d44c[_0x269aa8(0x1ff)](_0x1c90db=>{const _0x1e05b6=_0x269aa8;let _0x2db559=M(_0x1c90db);return _0x1c90db[_0x1e05b6(0x1ab)]===_0x2a89d4['CODE']&&_0x1c90db[_0x1e05b6(0x1d9)]<=_0x23d114&&_0x23d114<=_0x2db559+0x2;});}function Re(_0x106b3d,_0x211e0b,_0x1c653e=!0x1){const _0x5ee7c6=_0x5132d8;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x266faf[_0x5ee7c6(0x1be)],'keepNext':_0x211e0b?_0x266faf['FALSE']:_0x266faf[_0x5ee7c6(0x1be)],'widowControl':_0x266faf[_0x5ee7c6(0x1be)],..._0x106b3d&&_0x1c653e?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x480909,_0x3746d0,_0x1ad29a,_0x4b78f1=!0x1){const _0x1b56af=_0x5132d8;let _0x109bb5=(_0x480909[_0x1b56af(0x19d)]??[])[_0x1b56af(0x1ae)](_0x350bc8=>_0x350bc8[_0x1b56af(0x1d9)]>_0x3746d0&&_0x350bc8[_0x1b56af(0x1d9)]<_0x1ad29a);_0x109bb5[_0x1b56af(0x1e1)]((_0x10339b,_0x30082e)=>{const _0x2c1e0f=_0x1b56af;_0x10339b[_0x2c1e0f(0x19b)]={..._0x10339b[_0x2c1e0f(0x19b)]??{},...Re(_0x30082e===0x0,_0x30082e===_0x109bb5[_0x2c1e0f(0x221)]-0x1,_0x4b78f1)};});}function Be(_0x30f7ba){const _0x8d530=_0x5132d8;var _0xcbe111,_0x3ccb7f;let _0x3fe3b1={..._0x30f7ba??{}};return delete _0x3fe3b1[_0x8d530(0x22d)],delete _0x3fe3b1[_0x8d530(0x229)],delete _0x3fe3b1['spaceAbove'],delete _0x3fe3b1[_0x8d530(0x1e9)],delete _0x3fe3b1[_0x8d530(0x1b5)],delete _0x3fe3b1[_0x8d530(0x202)],delete _0x3fe3b1[_0x8d530(0x203)],((_0xcbe111=_0x3fe3b1[_0x8d530(0x1ac)])==null?void 0x0:_0xcbe111['ff'])===Ee&&((_0x3ccb7f=_0x3fe3b1[_0x8d530(0x1ac)])==null?void 0x0:_0x3ccb7f['fs'])===0xc&&delete _0x3fe3b1[_0x8d530(0x1ac)],_0x3fe3b1;}function Ve(_0x234218,_0x28d945){const _0x261dfc=_0x5132d8;let _0x5ea366=M(_0x28d945);return(_0x234218[_0x261dfc(0x19d)]??[])[_0x261dfc(0x1ae)](_0x5ce98d=>_0x5ce98d[_0x261dfc(0x1d9)]>_0x28d945['startIndex']&&_0x5ce98d[_0x261dfc(0x1d9)]<_0x5ea366);}function He(_0x34ee4a,_0x5ba2b6){const _0x54c8d3=_0x5132d8;var _0x3d1eb2;let _0x240fb8=M(_0x5ba2b6);return Ve(_0x34ee4a,_0x5ba2b6)[_0x54c8d3(0x1e1)](_0x8b2b7=>{const _0x1f0c56=_0x54c8d3;_0x8b2b7['paragraphStyle']=Be(_0x8b2b7[_0x1f0c56(0x19b)]);}),F(_0x34ee4a,_0x240fb8,_0x240fb8+0x1),F(_0x34ee4a,_0x5ba2b6['startIndex'],_0x5ba2b6['startIndex']+0x1),_0x34ee4a[_0x54c8d3(0x1af)]=(_0x3d1eb2=_0x34ee4a[_0x54c8d3(0x1af)])==null?void 0x0:_0x3d1eb2[_0x54c8d3(0x1ae)](_0x267493=>_0x267493['blockId']!==_0x5ba2b6['blockId']),_0x5ba2b6[_0x54c8d3(0x1d9)];}function O(_0xea187d){const _0x26f548=_0x5132d8;return{..._0xea187d,'body':_0xea187d[_0x26f548(0x1cc)]?Ue(_0xea187d[_0x26f548(0x1cc)]):_0xea187d[_0x26f548(0x1cc)]};}function Ue(_0xb0699){const _0x2664b5=_0x5132d8;var _0x5571d1,_0x20915f,_0xe52652,_0x1ba8ff,_0xcd650b,_0x5bc140,_0x5491b0,_0xd81d5c,_0x532442;return{..._0xb0699,'paragraphs':(_0x5571d1=_0xb0699[_0x2664b5(0x19d)])==null?void 0x0:_0x5571d1[_0x2664b5(0x20d)](_0x5a6f41=>({..._0x5a6f41,'bullet':k(_0x5a6f41[_0x2664b5(0x1a0)]),'paragraphStyle':k(_0x5a6f41[_0x2664b5(0x19b)])})),'sectionBreaks':(_0x20915f=_0xb0699['sectionBreaks'])==null?void 0x0:_0x20915f[_0x2664b5(0x20d)](_0x5e0961=>({..._0x5e0961})),'textRuns':(_0xe52652=_0xb0699[_0x2664b5(0x227)])==null?void 0x0:_0xe52652[_0x2664b5(0x20d)](_0xe437b2=>({..._0xe437b2})),'tables':(_0x1ba8ff=_0xb0699[_0x2664b5(0x1a3)])==null?void 0x0:_0x1ba8ff[_0x2664b5(0x20d)](_0x5f2496=>({..._0x5f2496})),'columnGroups':(_0xcd650b=_0xb0699['columnGroups'])==null?void 0x0:_0xcd650b['map'](_0x657c3=>{const _0x1d035e=_0x2664b5;var _0x50f9d0;return{..._0x657c3,'columns':(_0x50f9d0=_0x657c3[_0x1d035e(0x20e)])==null?void 0x0:_0x50f9d0[_0x1d035e(0x20d)](_0x226eda=>k(_0x226eda))};}),'blockRanges':(_0x5bc140=_0xb0699[_0x2664b5(0x1af)])==null?void 0x0:_0x5bc140['map'](_0x1962cb=>({..._0x1962cb})),'customRanges':(_0x5491b0=_0xb0699[_0x2664b5(0x224)])==null?void 0x0:_0x5491b0[_0x2664b5(0x20d)](_0x906f21=>({..._0x906f21})),'customDecorations':(_0xd81d5c=_0xb0699[_0x2664b5(0x1f6)])==null?void 0x0:_0xd81d5c[_0x2664b5(0x20d)](_0x1d8c02=>({..._0x1d8c02})),'customBlocks':(_0x532442=_0xb0699[_0x2664b5(0x214)])==null?void 0x0:_0x532442[_0x2664b5(0x20d)](_0x122bd3=>({..._0x122bd3}))};}function k(_0x3e5066){const _0x11b1a6=_0x5132d8;return Array[_0x11b1a6(0x1b4)](_0x3e5066)?_0x3e5066[_0x11b1a6(0x20d)](_0x43886c=>k(_0x43886c)):!_0x3e5066||typeof _0x3e5066!='object'?_0x3e5066:Object[_0x11b1a6(0x1d1)](Object[_0x11b1a6(0x226)](_0x3e5066)[_0x11b1a6(0x20d)](([_0x3a5239,_0x21f598])=>[_0x3a5239,k(_0x21f598)]));}function A(_0x389764){const _0x108e4a=_0x5132d8;if(!_0x389764[_0x108e4a(0x1cc)])throw Error('Document\x20body\x20is\x20required');return _0x389764[_0x108e4a(0x1cc)];}function We(_0x43cc93,_0x13aa9f,_0x2d16cd,_0x2d3f99='convert-paragraph'){const _0x1b6281=_0x5132d8;if(_0x13aa9f==null||_0x2d16cd==null){let _0x127093=Ke(_0x43cc93);return{'startOffset':_0x127093,'endOffset':_0x127093};}let _0x2d4c50=Math[_0x1b6281(0x1d6)](_0x13aa9f,_0x2d16cd),_0x30fbf6=Math[_0x1b6281(0x1cd)](_0x13aa9f,_0x2d16cd),_0x14d949=Ze(_0x43cc93,_0x2d4c50,_0x30fbf6);return _0x2d4c50===_0x30fbf6?_0x2d3f99===_0x1b6281(0x1b0)?{'startOffset':_0x2d4c50,'endOffset':_0x30fbf6}:Ge(_0x43cc93,_0x2d4c50,_0x14d949):Je(_0x43cc93,_0x2d4c50,_0x30fbf6,_0x14d949);}function Ge(_0x573eed,_0x59c407,_0xf1e823){const _0x4cfdd7=_0x5132d8;let _0x49148c=Ye(_0x573eed,_0x59c407);if(_0x49148c){let _0x5337ef=j(_0x573eed,_0x49148c,_0xf1e823);if(_0x5337ef<_0x49148c['startIndex'])return{'startOffset':_0x5337ef,'endOffset':_0xf1e823?Math[_0x4cfdd7(0x1d6)](_0x49148c[_0x4cfdd7(0x1d9)]+0x1,_0xf1e823[_0x4cfdd7(0x207)]):_0x49148c['startIndex']+0x1};}let _0x4900f9=_0x59c407===0x0&&_0x573eed[_0x4cfdd7(0x1f2)][0x0]===_0x206623[_0x4cfdd7(0x1a7)]?0x1:_0x59c407;return{'startOffset':_0x4900f9,'endOffset':_0x4900f9};}function Ke(_0x3c42f1){const _0x32ab76=_0x5132d8;return _0x3c42f1[_0x32ab76(0x1f2)][_0x32ab76(0x18e)](_0x206623[_0x32ab76(0x1c5)])?Math[_0x32ab76(0x1cd)](0x0,_0x3c42f1[_0x32ab76(0x1f2)]['length']-0x1):_0x3c42f1[_0x32ab76(0x1f2)]['length'];}function qe(_0x13b5f0,_0xc06ddc,_0x4929e4){const _0x3763b9=_0x5132d8;var _0x545787;let _0x2b2a7c=Math[_0x3763b9(0x1d6)](_0xc06ddc,_0x4929e4),_0x5dad0c=Math['max'](_0xc06ddc,_0x4929e4);return!!((_0x545787=_0x13b5f0[_0x3763b9(0x1a3)])!=null&&_0x545787['some'](_0x39d8f3=>_0x2b2a7c>_0x39d8f3[_0x3763b9(0x1d9)]&&_0x2b2a7c<_0x39d8f3[_0x3763b9(0x197)]||_0x5dad0c>_0x39d8f3[_0x3763b9(0x1d9)]&&_0x5dad0c<_0x39d8f3[_0x3763b9(0x197)]||_0x2b2a7c<=_0x39d8f3[_0x3763b9(0x1d9)]&&_0x5dad0c>=_0x39d8f3['endIndex']));}function Je(_0x291b9a,_0x2cf992,_0x590aba,_0x2520a0){const _0x8552c7=_0x5132d8;let _0xd13fcc=[..._0x291b9a['paragraphs']??[]][_0x8552c7(0x199)]((_0x46627c,_0x21d2e6)=>_0x46627c[_0x8552c7(0x1d9)]-_0x21d2e6[_0x8552c7(0x1d9)]),_0x1ea64d=_0x5c1188(_0x291b9a),_0x3a28bb=_0xd13fcc[_0x8552c7(0x1ff)](_0x34cda0=>j(_0x291b9a,_0x34cda0,_0x2520a0,_0x1ea64d)<=_0x2cf992&&_0x2cf992<=_0x34cda0[_0x8552c7(0x1d9)]),_0x2bbf46=_0xd13fcc[_0x8552c7(0x1ff)](_0x2f3660=>_0x2f3660[_0x8552c7(0x1d9)]>=_0x590aba-0x1)??_0xd13fcc[_0xd13fcc[_0x8552c7(0x221)]-0x1];return{'startOffset':_0x3a28bb?j(_0x291b9a,_0x3a28bb,_0x2520a0,_0x1ea64d):_0x2cf992,'endOffset':_0x2bbf46?Xe(_0x2bbf46,_0x2520a0):_0x590aba};}function Ye(_0x1d4054,_0x1c33c6){const _0xaed550=_0x5132d8;let _0x477f51=[..._0x1d4054[_0xaed550(0x19d)]??[]][_0xaed550(0x199)]((_0x330114,_0x506261)=>_0x330114['startIndex']-_0x506261[_0xaed550(0x1d9)]),_0x236912=_0x5c1188(_0x1d4054);return _0x477f51['find'](_0x47ff32=>(_0x236912[_0xaed550(0x1ed)](_0x47ff32[_0xaed550(0x1d9)])??0x0)<=_0x1c33c6&&_0x1c33c6<=_0x47ff32[_0xaed550(0x1d9)]);}function j(_0x4623bc,_0x578162,_0x5c3e8b,_0x105d90){const _0x3c1709=_0x5132d8;let _0xaf7d1b=(_0x105d90==null?void 0x0:_0x105d90['get'](_0x578162['startIndex']))??_0x238f9f(_0x4623bc,_0x578162);return _0x5c3e8b?Math[_0x3c1709(0x1cd)](_0xaf7d1b,_0x5c3e8b['startOffset']):_0xaf7d1b;}function Xe(_0x342a06,_0x3327a9){const _0xa6b705=_0x5132d8;let _0x38defa=_0x342a06['startIndex']+0x1;return _0x3327a9?Math[_0xa6b705(0x1d6)](_0x38defa,_0x3327a9[_0xa6b705(0x207)]):_0x38defa;}function Ze(_0x4c9e36,_0x3906d3,_0xfce9ee){const _0x29c804=_0x5132d8;let _0x454d69=Qe(_0x4c9e36,_0x3906d3),_0x58df61=Qe(_0x4c9e36,_0x3906d3===_0xfce9ee?_0xfce9ee:Math[_0x29c804(0x1cd)](_0x3906d3,_0xfce9ee-0x1));if(_0x454d69||_0x58df61){if(!_0x454d69||!_0x58df61||_0x454d69[_0x29c804(0x1c8)]!==_0x58df61[_0x29c804(0x1c8)]||_0x454d69[_0x29c804(0x1a4)]!==_0x58df61[_0x29c804(0x1a4)])throw new E();return _0x454d69;}}function Qe(_0x1dc492,_0x55b3b8){const _0x4d0cb2=_0x5132d8;let _0x4b96a7=_0x1dc492['dataStream'],_0x2dc943=-0x1;for(let _0x4559dd=Math['min'](_0x55b3b8,_0x4b96a7[_0x4d0cb2(0x221)]-0x1);_0x4559dd>=0x0;_0x4559dd--){let _0x24c0bd=_0x4b96a7[_0x4559dd];if(_0x24c0bd===_0x206623[_0x4d0cb2(0x21e)])return;if(_0x24c0bd===_0x206623[_0x4d0cb2(0x213)]){_0x2dc943=_0x4559dd;break;}}if(_0x2dc943<0x0)return;let _0x30ebfb=_0x4b96a7[_0x4d0cb2(0x1e3)](_0x206623[_0x4d0cb2(0x21e)],_0x2dc943+0x1);if(!(_0x30ebfb<0x0||_0x55b3b8<_0x2dc943+0x1||_0x55b3b8>_0x30ebfb-0x1))return{'startOffset':_0x2dc943+0x1,'endOffset':Math[_0x4d0cb2(0x1cd)](_0x2dc943+0x1,_0x30ebfb-0x1),'startTokenOffset':_0x2dc943,'endTokenOffset':_0x30ebfb};}function M(_0x334df1){const _0x6bbf22=_0x5132d8;return _0x4a229d(_0x334df1)[_0x6bbf22(0x207)]-0x1;}function $e(_0x4d7774,_0x354a36,_0x410c03,_0x2301da){const _0x535982=_0x5132d8;let _0x1b5802=M(_0x354a36),_0x47a3a7=(_0x4d7774['paragraphs']??[])['find'](_0x470a45=>_0x470a45[_0x535982(0x1d9)]===_0x1b5802+0x1);if(!_0x47a3a7||_0x2301da!=null&&_0x47a3a7['startIndex']!==_0x2301da||_0x410c03!=null&&(_0x410c03<_0x1b5802||_0x410c03>_0x47a3a7['startIndex']+0x1)||_0x4d7774[_0x535982(0x1f2)][_0x47a3a7[_0x535982(0x1d9)]]!==_0x206623[_0x535982(0x1a7)])return null;let _0x3e456d=_0x238f9f(_0x4d7774,_0x47a3a7),_0x1f0358=_0x4d7774[_0x535982(0x1f2)][_0x535982(0x1f0)](_0x3e456d,_0x47a3a7['startIndex']);return Array[_0x535982(0x198)](_0x1f0358)[_0x535982(0x218)](_0x2f006b=>_0x2f006b===_0x206623[_0x535982(0x1a5)])?{'paragraph':_0x47a3a7,'endTokenOffset':_0x1b5802}:null;}function N(_0x577a45,_0x131b33){const _0x6e8416=_0x5132d8;var _0x4dd6ef;let _0x469f53=M(_0x131b33),_0x1c0b35=_0x577a45[_0x6e8416(0x1f2)][_0x469f53+0x1];(_0x1c0b35===_0x206623[_0x6e8416(0x1c5)]||_0x1c0b35===void 0x0)&&P(_0x577a45,_0x469f53+0x1,_0x206623[_0x6e8416(0x1a7)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x4e118f(new Set((_0x4dd6ef=_0x577a45[_0x6e8416(0x19d)])==null?void 0x0:_0x4dd6ef['map'](_0x40336e=>_0x40336e[_0x6e8416(0x1a9)])))}]});}function P(_0x505aca,_0x4fec72,_0x52aa6e,_0x3f28fb={}){const _0xac118f=_0x5132d8;var _0x41ef60,_0x2e39c5;_0x52aa6e&&(_0x505aca[_0xac118f(0x1f2)]=''+_0x505aca[_0xac118f(0x1f2)][_0xac118f(0x1f0)](0x0,_0x4fec72)+_0x52aa6e+_0x505aca[_0xac118f(0x1f2)]['slice'](_0x4fec72),et(_0x505aca,_0x4fec72,_0x52aa6e[_0xac118f(0x221)]),(_0x41ef60=_0x3f28fb['paragraphs'])!=null&&_0x41ef60[_0xac118f(0x221)]&&(_0x505aca['paragraphs']=[..._0x505aca[_0xac118f(0x19d)]??[],..._0x3f28fb[_0xac118f(0x19d)][_0xac118f(0x20d)](_0x3032fd=>({..._0x3032fd,'startIndex':_0x3032fd['startIndex']+_0x4fec72}))][_0xac118f(0x199)]((_0x2da8a9,_0xdfa339)=>_0x2da8a9[_0xac118f(0x1d9)]-_0xdfa339[_0xac118f(0x1d9)])),(_0x2e39c5=_0x3f28fb['blockRanges'])!=null&&_0x2e39c5[_0xac118f(0x221)]&&(_0x505aca['blockRanges']=[..._0x505aca['blockRanges']??[],..._0x3f28fb[_0xac118f(0x1af)][_0xac118f(0x20d)](_0x7735db=>({..._0x7735db,'startIndex':_0x7735db[_0xac118f(0x1d9)]+_0x4fec72,'endIndex':_0x7735db['endIndex']+_0x4fec72}))][_0xac118f(0x199)]((_0x5bf126,_0x357ef5)=>_0x5bf126['startIndex']-_0x357ef5[_0xac118f(0x1d9)])));}function F(_0x567d38,_0x3846cb,_0x2e3225){const _0x3fa41f=_0x5132d8;let _0x2f2163=_0x2e3225-_0x3846cb;_0x567d38[_0x3fa41f(0x1f2)]=''+_0x567d38[_0x3fa41f(0x1f2)][_0x3fa41f(0x1f0)](0x0,_0x3846cb)+_0x567d38[_0x3fa41f(0x1f2)][_0x3fa41f(0x1f0)](_0x2e3225),tt(_0x567d38,_0x3846cb,_0x2f2163);}function et(_0x2dc533,_0x392dfd,_0x18e3f0){const _0x38b27e=_0x5132d8;_0x2dc533[_0x38b27e(0x19d)]=I(_0x2dc533[_0x38b27e(0x19d)],_0x392dfd,_0x18e3f0),_0x2dc533[_0x38b27e(0x1e6)]=I(_0x2dc533['sectionBreaks'],_0x392dfd,_0x18e3f0),_0x2dc533[_0x38b27e(0x214)]=I(_0x2dc533[_0x38b27e(0x214)],_0x392dfd,_0x18e3f0),_0x2dc533[_0x38b27e(0x227)]=nt(_0x2dc533[_0x38b27e(0x227)],_0x392dfd,_0x18e3f0),_0x2dc533[_0x38b27e(0x1a3)]=rt(_0x2dc533['tables'],_0x392dfd,_0x18e3f0),_0x2dc533[_0x38b27e(0x1d8)]=R(_0x2dc533[_0x38b27e(0x1d8)],_0x392dfd,_0x18e3f0),_0x2dc533['customRanges']=R(_0x2dc533[_0x38b27e(0x224)],_0x392dfd,_0x18e3f0),_0x2dc533[_0x38b27e(0x1f6)]=R(_0x2dc533[_0x38b27e(0x1f6)],_0x392dfd,_0x18e3f0),_0x2dc533['blockRanges']=R(_0x2dc533['blockRanges'],_0x392dfd,_0x18e3f0);}function tt(_0x198c50,_0x26ce51,_0x3aecc3){const _0x49d06a=_0x5132d8;var _0x7af626,_0x4274af;_0x198c50['paragraphs']=L(_0x198c50[_0x49d06a(0x19d)],_0x26ce51,_0x3aecc3),_0x198c50['sectionBreaks']=L(_0x198c50[_0x49d06a(0x1e6)],_0x26ce51,_0x3aecc3),_0x198c50['customBlocks']=L(_0x198c50['customBlocks'],_0x26ce51,_0x3aecc3),_0x198c50[_0x49d06a(0x227)]=(_0x7af626=it((_0x4274af=_0x198c50[_0x49d06a(0x227)])==null?void 0x0:_0x4274af['map'](_0x1a2182=>({..._0x1a2182,'startIndex':_0x1a2182['st'],'endIndex':_0x1a2182['ed']})),_0x26ce51,_0x3aecc3))==null?void 0x0:_0x7af626[_0x49d06a(0x20d)](_0x49e89b=>{let {startIndex:_0x335e20,endIndex:_0x1109a3,..._0x1ffdca}=_0x49e89b;return{..._0x1ffdca,'st':_0x335e20,'ed':_0x1109a3};}),_0x198c50['tables']=it(_0x198c50[_0x49d06a(0x1a3)],_0x26ce51,_0x3aecc3),_0x198c50[_0x49d06a(0x1d8)]=z(_0x198c50['columnGroups'],_0x26ce51,_0x3aecc3),_0x198c50['customRanges']=z(_0x198c50[_0x49d06a(0x224)],_0x26ce51,_0x3aecc3),_0x198c50['customDecorations']=z(_0x198c50[_0x49d06a(0x1f6)],_0x26ce51,_0x3aecc3),_0x198c50['blockRanges']=z(_0x198c50[_0x49d06a(0x1af)],_0x26ce51,_0x3aecc3);}function I(_0x3cffe0,_0x581d94,_0x3279e0){const _0xcf125f=_0x5132d8;return _0x3cffe0==null?void 0x0:_0x3cffe0[_0xcf125f(0x20d)](_0xb5d36b=>_0xb5d36b[_0xcf125f(0x1d9)]>=_0x581d94?{..._0xb5d36b,'startIndex':_0xb5d36b[_0xcf125f(0x1d9)]+_0x3279e0}:_0xb5d36b);}function L(_0x2fb43f,_0x20d3da,_0x2b3878){const _0x395ea8=_0x5132d8;let _0x23941f=_0x20d3da+_0x2b3878;return _0x2fb43f==null?void 0x0:_0x2fb43f[_0x395ea8(0x20d)](_0x18e646=>_0x18e646[_0x395ea8(0x1d9)]>=_0x20d3da&&_0x18e646[_0x395ea8(0x1d9)]<_0x23941f?null:_0x18e646[_0x395ea8(0x1d9)]>=_0x23941f?{..._0x18e646,'startIndex':_0x18e646[_0x395ea8(0x1d9)]-_0x2b3878}:_0x18e646)[_0x395ea8(0x1ae)](_0x24554c=>_0x24554c!=null);}function nt(_0x21fd6f,_0x1b7316,_0x166d44){const _0x2d9f90=_0x5132d8;return _0x21fd6f==null?void 0x0:_0x21fd6f[_0x2d9f90(0x20d)](_0x5caae7=>_0x5caae7['st']>=_0x1b7316?{..._0x5caae7,'st':_0x5caae7['st']+_0x166d44,'ed':_0x5caae7['ed']+_0x166d44}:_0x5caae7['ed']>_0x1b7316?{..._0x5caae7,'ed':_0x5caae7['ed']+_0x166d44}:_0x5caae7);}function R(_0x517e59,_0x2b0f13,_0x42b62e){const _0x1e87df=_0x5132d8;return _0x517e59==null?void 0x0:_0x517e59[_0x1e87df(0x20d)](_0xdd9ad4=>_0x4d85c0(_0xdd9ad4,_0x2b0f13,_0x42b62e));}function rt(_0x2d54ec,_0x87313d,_0x5f3bfb){return _0x2d54ec==null?void 0x0:_0x2d54ec['map'](_0x131093=>_0x41443a(_0x131093,_0x87313d,_0x5f3bfb));}function z(_0x59f7b4,_0x3cc67d,_0x5c18e6){const _0x4df9a3=_0x5132d8;return _0x59f7b4==null?void 0x0:_0x59f7b4[_0x4df9a3(0x20d)](_0x5dd9db=>_0x3b01e8(_0x5dd9db,_0x3cc67d,_0x5c18e6))[_0x4df9a3(0x1ae)](_0x5e972e=>_0x5e972e!=null);}function it(_0x4cbab6,_0x52171e,_0x3b84e2){const _0x2650e6=_0x5132d8;return _0x4cbab6==null?void 0x0:_0x4cbab6[_0x2650e6(0x20d)](_0x5b7cb1=>_0x1c6252(_0x5b7cb1,_0x52171e,_0x3b84e2))[_0x2650e6(0x1ae)](_0x19196d=>_0x19196d!=null);}const at={'id':_0x5132d8(0x21d),'type':_0x1a72f7['COMMAND'],'handler':_0x21e8fc=>{const _0x542faf=_0x5132d8;var _0x5e0e5f;if(_0x42dbdb(G(_0x21e8fc)))return!0x1;let _0x3ac273=_0x227e30(_0x21e8fc);if(_0x3ac273)return _0x21e8fc[_0x542faf(0x1ed)](_0x5b460c)['syncExecuteCommand'](B['id'],{'startOffset':_0x3ac273[_0x542faf(0x1b7)],'endOffset':_0x3ac273[_0x542faf(0x207)],'insertionMode':'insert-new','unitId':_0x3ac273[_0x542faf(0x220)]});let _0xec9b0=ft(_0x21e8fc);if(!_0xec9b0)return!0x1;let _0x30b9ca=(_0x5e0e5f=_0x21e8fc['get'](_0x5838d6)['getCurrentUnitOfType'](_0x5872e5[_0x542faf(0x1fc)]))==null?void 0x0:_0x5e0e5f[_0x542faf(0x1b6)](),_0x18b9d2=_0x30b9ca?_0x899368(_0x30b9ca,_0xec9b0):_0xec9b0[_0x542faf(0x1d9)]+0x1;return _0x21e8fc[_0x542faf(0x1ed)](_0x5b460c)['syncExecuteCommand'](B['id'],{'startOffset':_0x18b9d2,'endOffset':_0x18b9d2});}},ot={'id':_0x5132d8(0x217),'type':_0x1a72f7[_0x5132d8(0x22e)],'handler':()=>!0x0},B={'id':_0x5132d8(0x1f7),'type':_0x1a72f7[_0x5132d8(0x22e)],'handler':(_0x1b5547,_0x1e6c2a)=>{const _0x5db062=_0x5132d8;let _0x27fa04=W(_0x1b5547,_0x1e6c2a==null?void 0x0:_0x1e6c2a[_0x5db062(0x220)]);if(!_0x27fa04)return!0x1;let _0x59c39d=G(_0x1b5547);if(_0x42dbdb(_0x59c39d))return!0x1;let _0x4d53d4=_0x27fa04[_0x5db062(0x216)]['serialize'](_0x27fa04[_0x5db062(0x220)]),_0x4443d8=lt(_0x1e6c2a,_0x59c39d),_0x354b37=ut(_0x27fa04[_0x5db062(0x1f3)],_0x4443d8);if(_0x354b37){if(_0x354b37[_0x5db062(0x1ab)]!==_0x2a89d4[_0x5db062(0x22b)])return!0x1;let _0x2d221b=D({'blockId':_0x354b37[_0x5db062(0x1cf)],'documentData':_0x27fa04[_0x5db062(0x1f3)],'metadata':_0x4d53d4});if(!_0x2d221b)return!0x1;let _0x2af3c2=Y(_0x27fa04[_0x5db062(0x1e2)],_0x27fa04[_0x5db062(0x20c)],_0x27fa04[_0x5db062(0x220)],_0x27fa04[_0x5db062(0x1f3)],_0x2d221b[_0x5db062(0x215)],B['id'],_0x2d221b[_0x5db062(0x1ea)]);return _0x2af3c2&&_0x2d221b[_0x5db062(0x230)]&&_0x27fa04[_0x5db062(0x216)][_0x5db062(0x1f9)](_0x27fa04['unitId'],_0x2d221b[_0x5db062(0x230)]),_0x2af3c2;}let _0x25a83d=(_0x1e6c2a==null?void 0x0:_0x1e6c2a[_0x5db062(0x1cf)])??_0x4a7f6a(0x6),_0x573388;try{_0x573388=De({'blockId':_0x25a83d,'config':_0x1e6c2a==null?void 0x0:_0x1e6c2a[_0x5db062(0x1b2)],'documentData':_0x27fa04[_0x5db062(0x1f3)],'endOffset':_0x4443d8==null?void 0x0:_0x4443d8[_0x5db062(0x207)],'insertionMode':_0x1e6c2a==null?void 0x0:_0x1e6c2a[_0x5db062(0x225)],'metadata':_0x4d53d4,'startOffset':_0x4443d8==null?void 0x0:_0x4443d8[_0x5db062(0x1b7)]});}catch(_0x36ff7e){if(_0x36ff7e instanceof E)return!0x1;throw _0x36ff7e;}let _0x35492f=Y(_0x27fa04[_0x5db062(0x1e2)],_0x27fa04[_0x5db062(0x20c)],_0x27fa04[_0x5db062(0x220)],_0x27fa04[_0x5db062(0x1f3)],_0x573388[_0x5db062(0x215)],B['id'],_0x573388[_0x5db062(0x1ea)]);return _0x35492f&&_0x573388[_0x5db062(0x230)]&&_0x27fa04[_0x5db062(0x216)][_0x5db062(0x1f9)](_0x27fa04[_0x5db062(0x220)],_0x573388[_0x5db062(0x230)]),_0x35492f;}},st={'id':_0x5132d8(0x195),'type':_0x1a72f7[_0x5132d8(0x22e)],'handler':(_0x468836,_0x12b0ef)=>{const _0x17a4f2=_0x5132d8;if(!_0x12b0ef)return!0x1;let _0x5b387b=W(_0x468836,_0x12b0ef['unitId']);if(!_0x5b387b)return!0x1;let _0x294ec9=je({'blockId':_0x12b0ef['blockId'],'config':_0x12b0ef['config'],'documentData':_0x5b387b[_0x17a4f2(0x1f3)],'metadata':_0x5b387b[_0x17a4f2(0x216)][_0x17a4f2(0x1d5)](_0x5b387b[_0x17a4f2(0x220)])});return _0x294ec9[_0x17a4f2(0x230)]&&_0x5b387b['model'][_0x17a4f2(0x1f9)](_0x5b387b[_0x17a4f2(0x220)],_0x294ec9[_0x17a4f2(0x230)]),!0x0;}},ct={'id':'docs-code.command.exit','type':_0x1a72f7[_0x5132d8(0x22e)],'handler':(_0x4f1b72,_0x4c40bf)=>V[_0x5132d8(0x1b8)](_0x4f1b72,_0x4c40bf)},V={'id':_0x5132d8(0x1fb),'type':_0x1a72f7[_0x5132d8(0x22e)],'handler':(_0x162f83,_0x54d978)=>{const _0x5ef94f=_0x5132d8;if(!_0x54d978)return!0x1;let _0x519901=W(_0x162f83,_0x54d978==null?void 0x0:_0x54d978[_0x5ef94f(0x220)]);if(!_0x519901)return!0x1;let _0x39e369=D({'blockId':_0x54d978[_0x5ef94f(0x1cf)],'documentData':_0x519901[_0x5ef94f(0x1f3)],'metadata':_0x519901['model'][_0x5ef94f(0x1d5)](_0x519901[_0x5ef94f(0x220)])});if(!_0x39e369)return!0x1;let _0x5265ae=Y(_0x519901['commandService'],_0x519901['selectionManager'],_0x519901['unitId'],_0x519901['previousDocumentData'],_0x39e369['nextDocumentData'],V['id'],_0x39e369[_0x5ef94f(0x1ea)]);return _0x5265ae&&_0x39e369[_0x5ef94f(0x230)]&&_0x519901[_0x5ef94f(0x216)][_0x5ef94f(0x1f9)](_0x519901[_0x5ef94f(0x220)],_0x39e369[_0x5ef94f(0x230)]),_0x5265ae;}},H={'id':_0x5132d8(0x19e),'type':_0x1a72f7['COMMAND'],'handler':(_0x2b7b88,_0x57be06)=>{const _0x40947a=_0x5132d8;if(!_0x57be06)return!0x1;let _0xb81c77=W(_0x2b7b88,_0x57be06==null?void 0x0:_0x57be06[_0x40947a(0x220)]);if(!_0xb81c77)return!0x1;let _0x1f8af0=Me({'blockId':_0x57be06[_0x40947a(0x1cf)],'documentData':_0xb81c77[_0x40947a(0x1f3)],'metadata':_0xb81c77[_0x40947a(0x216)]['serialize'](_0xb81c77[_0x40947a(0x220)])});if(!_0x1f8af0)return!0x1;let _0x58b74d=Y(_0xb81c77[_0x40947a(0x1e2)],_0xb81c77[_0x40947a(0x20c)],_0xb81c77[_0x40947a(0x220)],_0xb81c77[_0x40947a(0x1f3)],_0x1f8af0[_0x40947a(0x215)],H['id'],_0x1f8af0['cursorOffset']);return _0x58b74d&&_0x1f8af0[_0x40947a(0x230)]&&_0xb81c77[_0x40947a(0x216)][_0x40947a(0x1f9)](_0xb81c77[_0x40947a(0x220)],_0x1f8af0[_0x40947a(0x230)]),_0x58b74d;}},U={'id':_0x5132d8(0x1c3),'type':_0x1a72f7['COMMAND'],'handler':(_0xc6360e,_0x41da9d)=>{const _0x779e2a=_0x5132d8;var _0x52feca;let _0x153313=W(_0xc6360e,_0x41da9d==null?void 0x0:_0x41da9d[_0x779e2a(0x220)]);if(!_0x153313)return!0x1;let _0x32e836=(_0x41da9d==null?void 0x0:_0x41da9d[_0x779e2a(0x1ea)])??((_0x52feca=G(_0xc6360e))==null?void 0x0:_0x52feca[_0x779e2a(0x1b7)]);if(_0x32e836==null)return!0x1;let _0x592de1=Ne({'cursorOffset':_0x32e836,'documentData':_0x153313[_0x779e2a(0x1f3)],'paragraphStartIndex':_0x41da9d==null?void 0x0:_0x41da9d[_0x779e2a(0x1da)]});return _0x592de1?Y(_0x153313[_0x779e2a(0x1e2)],_0x153313[_0x779e2a(0x20c)],_0x153313['unitId'],_0x153313['previousDocumentData'],_0x592de1['nextDocumentData'],U['id'],_0x592de1[_0x779e2a(0x1ea)]):!0x1;}};function W(_0x33b508,_0x33a911){const _0x15821d=_0x5132d8;let _0x2f7f1d=_0x33b508['get'](_0x5838d6),_0x433431=_0x33a911?_0x2f7f1d[_0x15821d(0x190)](_0x33a911,_0x5872e5[_0x15821d(0x1fc)]):_0x2f7f1d[_0x15821d(0x1bf)](_0x5872e5['UNIVER_DOC']);return _0x433431?{'commandService':_0x33b508[_0x15821d(0x1ed)](_0x5b460c),'model':_0x33b508[_0x15821d(0x1ed)](w),'previousDocumentData':_0x433431['getSnapshot'](),'selectionManager':_0x33b508[_0x15821d(0x1ed)](_0x23046e),'unitId':_0x433431[_0x15821d(0x228)]()}:null;}function G(_0x24ab11){const _0x288b5c=_0x5132d8;var _0x45a908;return(_0x45a908=_0x24ab11[_0x288b5c(0x1ed)](_0x23046e)[_0x288b5c(0x1b1)]())==null?void 0x0:_0x45a908[0x0];}function lt(_0x2727ff,_0x2defa3){const _0x3c29b2=_0x5132d8;let _0x200cde=(_0x2727ff==null?void 0x0:_0x2727ff[_0x3c29b2(0x1b7)])??(_0x2defa3==null?void 0x0:_0x2defa3[_0x3c29b2(0x1b7)]),_0x295cac=(_0x2727ff==null?void 0x0:_0x2727ff[_0x3c29b2(0x207)])??(_0x2defa3==null?void 0x0:_0x2defa3[_0x3c29b2(0x207)]);if(_0x200cde!=null&&_0x295cac!=null)return{'endOffset':Math[_0x3c29b2(0x1cd)](_0x200cde,_0x295cac),'startOffset':Math['min'](_0x200cde,_0x295cac)};}function ut(_0x346b41,_0x245928){const _0x5d4066=_0x5132d8;var _0x4baebb;if(!_0x245928)return;let _0x4c0f61=dt(_0x245928);return(_0x4baebb=_0x346b41[_0x5d4066(0x1cc)])==null||(_0x4baebb=_0x4baebb[_0x5d4066(0x1af)])==null?void 0x0:_0x4baebb[_0x5d4066(0x1ff)](_0x3d9b7e=>{const _0x236cbf=_0x5d4066;let _0x17c609=_0x4a229d(_0x3d9b7e);return _0x245928[_0x236cbf(0x1b7)]===_0x245928[_0x236cbf(0x207)]?_0x48e4df(_0x17c609,_0x4c0f61):_0x25de02(_0x17c609,_0x4c0f61);});}function dt(_0x595b3f){const _0x3ec310=_0x5132d8;return _0x595b3f[_0x3ec310(0x1b7)]===_0x595b3f[_0x3ec310(0x207)]?_0x595b3f['startOffset']:_0x595b3f['startOffset']+0x1;}function ft(_0x13dba3){const _0x36898b=_0x5132d8;let _0x4226ab=G(_0x13dba3);if(!_0x4226ab)return null;let _0x3dbb10=_0x13dba3['get'](_0x5838d6)[_0x36898b(0x1bf)](_0x5872e5[_0x36898b(0x1fc)]),_0x1868b8=_0x3dbb10==null?void 0x0:_0x3dbb10[_0x36898b(0x1b6)]();return _0x1868b8?_0x433516[_0x36898b(0x1ee)][_0x36898b(0x219)](_0x4226ab,_0x1868b8[_0x36898b(0x19d)]??[],_0x1868b8[_0x36898b(0x1f2)]??'')[0x0]??null:null;}function pt(_0x17a6bd,_0x103437){const _0x4cc0d5=_0x5132d8;let _0x17e241=_0x17a6bd['body'],_0x59c299=_0x103437[_0x4cc0d5(0x1cc)],_0x15a9f3=_0x49ee49(_0x17e241,_0x59c299);return[_0x15a9f3&&_0x59c299?mt(_0x59c299,_0x15a9f3):null,_0x15a9f3?null:ht(_0x17e241,_0x59c299)][_0x4cc0d5(0x1ae)](Boolean)[_0x4cc0d5(0x212)]((_0x4e9a69,_0xa4cf15)=>_0x126099['compose'](_0x4e9a69,_0xa4cf15),null);}function mt(_0x253007,_0x1d52e5){const _0x5246e1=_0x5132d8;let _0x53e239=new _0x3ed338();return _0x53e239[_0x5246e1(0x1ca)](_0x1d52e5[_0x5246e1(0x1a1)]),_0x1d52e5[_0x5246e1(0x1df)]>0x0&&_0x53e239[_0x5246e1(0x1ce)](_0x1d52e5[_0x5246e1(0x1df)],_0x11d3a7(_0x253007,_0x1d52e5['start'],_0x1d52e5['start']+_0x1d52e5['insertLength'],!0x1)),_0x1d52e5[_0x5246e1(0x1a8)]>0x0&&_0x53e239[_0x5246e1(0x21a)](_0x1d52e5[_0x5246e1(0x1a8)]),_0x126099[_0x5246e1(0x1fd)]()[_0x5246e1(0x21b)](_0x53e239[_0x5246e1(0x1d5)](),[_0x5246e1(0x1cc)]);}function ht(_0x208616,_0x4f04b6){const _0x295d16=_0x5132d8;let _0x3b9829=[],_0x15a0ea=_0x208616?_t(_0x208616):void 0x0,_0x48cc22=_0x4f04b6?_t(_0x4f04b6):void 0x0;for(let _0x3b504b of gt)K(_0x126099[_0x295d16(0x1fd)](),['body',_0x3b504b],_0x15a0ea==null?void 0x0:_0x15a0ea[_0x3b504b],_0x48cc22==null?void 0x0:_0x48cc22[_0x3b504b],_0x3b9829);return _0x3b9829[_0x295d16(0x212)]((_0xf6bce5,_0x52bc46)=>_0x126099[_0x295d16(0x1d4)](_0xf6bce5,_0x52bc46),null);}const gt=['paragraphs',_0x5132d8(0x1e6),_0x5132d8(0x1a3),'columnGroups',_0x5132d8(0x1af),_0x5132d8(0x214),_0x5132d8(0x224),_0x5132d8(0x1f6),_0x5132d8(0x227)];function _t(_0x282f7f){return _0x282f7f;}function K(_0x4643a0,_0x4a118b,_0x3971b2,_0xbe8834,_0x31dbeb){const _0x4575a3=_0x5132d8;J(_0x3971b2,_0xbe8834)||(_0x3971b2==null?_0x31dbeb[_0x4575a3(0x1bd)](_0x4643a0[_0x4575a3(0x1d3)](_0x4a118b,_0xbe8834)):_0xbe8834==null?_0x31dbeb['push'](_0x4643a0[_0x4575a3(0x1cb)](_0x4a118b,_0x3971b2)):Array['isArray'](_0x3971b2)&&Array[_0x4575a3(0x1b4)](_0xbe8834)?vt(_0x4643a0,_0x4a118b,_0x3971b2,_0xbe8834,_0x31dbeb):q(_0x3971b2)&&q(_0xbe8834)?new Set([...Object[_0x4575a3(0x1b9)](_0x3971b2),...Object[_0x4575a3(0x1b9)](_0xbe8834)])['forEach'](_0x4a61fc=>{K(_0x4643a0,[..._0x4a118b,_0x4a61fc],_0x3971b2[_0x4a61fc],_0xbe8834[_0x4a61fc],_0x31dbeb);}):_0x31dbeb['push'](_0x4643a0[_0x4575a3(0x1fa)](_0x4a118b,_0x3971b2,_0xbe8834)));}function vt(_0x17b88f,_0x2f94dc,_0x1acea5,_0x322ba8,_0xba8953){const _0x2801ca=_0x5132d8;if(_0x1acea5[_0x2801ca(0x221)]===_0x322ba8[_0x2801ca(0x221)]){_0x1acea5[_0x2801ca(0x1e1)]((_0x4c1654,_0x23a222)=>K(_0x17b88f,[..._0x2f94dc,_0x23a222],_0x4c1654,_0x322ba8[_0x23a222],_0xba8953));return;}let _0x1ab7b0=0x0;for(;_0x1ab7b0<_0x1acea5[_0x2801ca(0x221)]&&_0x1ab7b0<_0x322ba8[_0x2801ca(0x221)]&&J(_0x1acea5[_0x1ab7b0],_0x322ba8[_0x1ab7b0]);)_0x1ab7b0++;let _0x522f12=_0x1acea5[_0x2801ca(0x221)]-0x1,_0x17010c=_0x322ba8['length']-0x1;for(;_0x522f12>=_0x1ab7b0&&_0x17010c>=_0x1ab7b0&&J(_0x1acea5[_0x522f12],_0x322ba8[_0x17010c]);)_0x522f12--,_0x17010c--;for(let _0x41f191=_0x522f12;_0x41f191>=_0x1ab7b0;_0x41f191--)_0xba8953[_0x2801ca(0x1bd)](_0x17b88f[_0x2801ca(0x1cb)]([..._0x2f94dc,_0x41f191],_0x1acea5[_0x41f191]));for(let _0x4c47ee=_0x1ab7b0;_0x4c47ee<=_0x17010c;_0x4c47ee++)_0xba8953[_0x2801ca(0x1bd)](_0x17b88f[_0x2801ca(0x1d3)]([..._0x2f94dc,_0x4c47ee],_0x322ba8[_0x4c47ee]));}function q(_0x4b00d8){const _0x39ef00=_0x5132d8;return typeof _0x4b00d8=='object'&&!!_0x4b00d8&&!Array[_0x39ef00(0x1b4)](_0x4b00d8);}function J(_0x3c4736,_0xb4c689){const _0x438e73=_0x5132d8;return JSON[_0x438e73(0x22a)](_0x3c4736)===JSON[_0x438e73(0x22a)](_0xb4c689);}function Y(_0x455fd2,_0x3c39c3,_0x3ad932,_0x77bb8e,_0x164305,_0x5cbdb7,_0x55de1f){const _0x531864=_0x5132d8;let _0x5b4483=pt(_0x77bb8e,_0x164305);return _0x5b4483?!!_0x455fd2['syncExecuteCommand'](_0x331b69['id'],{'unitId':_0x3ad932,'actions':_0x5b4483,'textRanges':[{'startOffset':_0x55de1f,'endOffset':_0x55de1f,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x5cbdb7}):(_0x3c39c3[_0x531864(0x191)]([{'startOffset':_0x55de1f,'endOffset':_0x55de1f}],{'unitId':_0x3ad932,'subUnitId':_0x3ad932},!0x1),!0x0);}const X=_0x5132d8(0x200);var yt='@univerjs-pro/docs-code',bt=_0x5132d8(0x1de);const xt={};function Z(_0x1d16fd,_0x501611){return function(_0xcd2ad8,_0xaad4ae){_0x501611(_0xcd2ad8,_0xaad4ae,_0x1d16fd);};}function St(_0xc5050f,_0x39b330,_0x28d4cd,_0x301cc0){const _0x5ba393=_0x5132d8;var _0x153af3=arguments[_0x5ba393(0x221)],_0x29c066=_0x153af3<0x3?_0x39b330:_0x301cc0===null?_0x301cc0=Object[_0x5ba393(0x21c)](_0x39b330,_0x28d4cd):_0x301cc0,_0x20a4ed;if(typeof Reflect==_0x5ba393(0x1c9)&&typeof Reflect[_0x5ba393(0x20b)]==_0x5ba393(0x210))_0x29c066=Reflect[_0x5ba393(0x20b)](_0xc5050f,_0x39b330,_0x28d4cd,_0x301cc0);else{for(var _0x1043e6=_0xc5050f[_0x5ba393(0x221)]-0x1;_0x1043e6>=0x0;_0x1043e6--)(_0x20a4ed=_0xc5050f[_0x1043e6])&&(_0x29c066=(_0x153af3<0x3?_0x20a4ed(_0x29c066):_0x153af3>0x3?_0x20a4ed(_0x39b330,_0x28d4cd,_0x29c066):_0x20a4ed(_0x39b330,_0x28d4cd))||_0x29c066);}return _0x153af3>0x3&&_0x29c066&&Object['defineProperty'](_0x39b330,_0x28d4cd,_0x29c066),_0x29c066;}let Q=class extends _0x1fa454{constructor(_0x117c60,_0x29be36){const _0x2d46bc=_0x5132d8;super(),this[_0x2d46bc(0x201)]=_0x117c60,this[_0x2d46bc(0x193)]=_0x29be36,this[_0x2d46bc(0x1c1)]();}['_initResource'](){const _0x30ebe0=_0x5132d8;this[_0x30ebe0(0x22f)](this[_0x30ebe0(0x201)]['registerPluginResource']({'pluginName':X,'businesses':[_0x5872e5[_0x30ebe0(0x1fc)]],'toJson':_0x449c54=>JSON[_0x30ebe0(0x22a)](this[_0x30ebe0(0x193)][_0x30ebe0(0x1d5)](_0x449c54)),'parseJson':_0x5a2425=>y(JSON['parse'](_0x5a2425)),'onLoad':(_0x525547,_0xdec80b)=>this[_0x30ebe0(0x193)][_0x30ebe0(0x1f9)](_0x525547,_0xdec80b),'onUnLoad':_0x16f0d3=>this[_0x30ebe0(0x193)][_0x30ebe0(0x1e8)](_0x16f0d3)}));}};Q=St([Z(0x0,_0xb2d34),Z(0x1,_0x44aea7(w))],Q);let $=class extends _0x1f77c2{constructor(_0xa87efc=xt,_0x576b2d,_0x527714,_0x24cdf6){const _0x871ad8=_0x5132d8;super(),this['_config']=_0xa87efc,this[_0x871ad8(0x1c7)]=_0x576b2d,this['_commandService']=_0x527714,this[_0x871ad8(0x20a)]=_0x24cdf6;let {..._0x58cdbb}=_0x337304({},xt,this[_0x871ad8(0x192)]);this[_0x871ad8(0x20a)][_0x871ad8(0x204)](_0x871ad8(0x1d2),_0x58cdbb);}['onStarting'](){const _0x866ab=_0x5132d8;this[_0x866ab(0x1c7)]['add']([w]),this[_0x866ab(0x1c7)][_0x866ab(0x1f1)]([Q]),this[_0x866ab(0x1c7)][_0x866ab(0x1ed)](w),this['_injector'][_0x866ab(0x1ed)](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x866ab(0x1e1)](_0x26533a=>this['disposeWithMe'](this[_0x866ab(0x1d0)][_0x866ab(0x20f)](_0x26533a)));}};C($,_0x5132d8(0x223),X),C($,_0x5132d8(0x1ef),yt),C($,'version',bt),C($,_0x5132d8(0x19a),_0x5872e5[_0x5132d8(0x1fc)]),$=St([_0x17fb0a(_0x3b1fe5,_0x1908df),Z(0x1,_0x44aea7(_0x3db901)),Z(0x2,_0x5b460c),Z(0x3,_0x5ab5a7)],$);export{X as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,ot as DocsCodeConsumeBoundaryDeleteCommand,at as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,w as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,st as DocsCodeUpdateCommand,T as RemoveDocsCodeConfigMutation,Te as SetDocsCodeConfigMutation,$ as UniverDocsCodePlugin,Ne as buildCancelEmptyCodeParagraphActions,Ie as isCodeBoundaryDelete,v as normalizeDocsCodeConfig,y as normalizeDocsCodeMetadataResource};
|