@univerjs-pro/docs-formula 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0xb83c(){const _0x3d3b20=['data','previousDocumentData','SetDocFormulaResourceMutation','registerFormulaWithRange','_cacheEligibilityService','COLUMN_GROUP_END','_queueSync','next','docs-formula.command.remove','blockRanges','params','DataStreamTreeTokenType','MUTATION','updates','status','syncUnit','UniverLicensePlugin','getTextRanges','editOp','resourceUndo','includes','_updateFormulaResult','_commandService','COLUMN_END','string','setFormula','isDocFormulaConfig','getInstance','constructor','type','PARAGRAPH','getUnitId','CustomRangeType','numberFormat','trim','getResource','OtherFormulaBizType','forEach','DocFormulaService','docs-formula.command.insert','body','docs-formula.command.convert-to-text','target','nextDocumentData','externalMutations','getFormulas','UniverInstanceType','COLUMN_GROUP_START','trigger','4WSHfBo','success','slice','_isDisposed','unsupported-version','customRanges','boolean','unitDisposed$','buildUpdateDocFormulaActions','RemoveDocFormulaMutation','shiftExclusiveRangeOnInsert','docs-formula.mutation.set-last-values','onCommandExecuted','register','cell','segmentId','UniverProLicense','1747555lnWluH','properties','degradeDocumentData','function','getFormulaValueSync','pluginName','redoMutation','min','getFormula','resources','_resourceManagerService','resolveBinding','DOC_FORMULA_OBJECT_REPLACEMENT','docs-formula.command.set-number-format','Disposable','tables','FormulaResultStatus','_syncUnit','getOwnPropertyDescriptor','registerProvider','disposeWithMe','SetDocFormulaLastValuesMutation','DOC_FORMULA_PLUGIN','unregisterUnit','1.3.0','_syncScheduled','error','range','LexerTreeBuilder','EMPTY','@univerjs/docs','SetDocFormulaNumberFormatCommand','push','formulas','TABLE_END','4907231DhklOP','@univerjs/core','DocTextResolverService','_hostExternalReferenceModel','18987100MTOthF','referenceRevision','resolveHostFormulaExternalReferences','merge','deepClone','eligible','stringify','selection','clear','empty','FormulaCacheEligibilityService','docs-formula.command.update','8udEEGy','5481900FHhIKY','UniverCore','every','schemaVersion','HostExternalReferenceModel','nextResource','UpdateDocFormulaCommand','DocFormulaResultStatus','get','IUndoRedoService','load','fromEntries','getCurrentUnitOfType','resolved','4Jnttub','assess','getResult','exports','map','_instanceService','TABLE_CELL_END','Inject','name','157629qJFfUD','degradeBody','entries','documentRedo','expectedFormula','CommandType','rangeId','identity','replaceDocRanges','removeFormula','_rawResources','insertLength','COMMAND','docs-formula.mutation.remove-formula','keys','retain','stale','_configService','pending','end','registerCommand','rangeType','RegisterOtherFormulaService','shiftExclusiveRangeOnDelete','deleteFormula','getRichTextEditPath','startOffset','UniverDocsFormulaPlugin','columnGroups','notifyTextChanged','paragraph','2670777KvUtom','_univerInstanceService','_loadErrors','version','color','paragraphs','cursorOffset','presentationChanged$','_presentationChanged$','liveResult','_service','setResource','onStarting','univer-docs-formula','filter','decorate','getScalarFormulaResultCell','expectedReferenceRevision','TABLE_ROW_START','_setPresentation','generateRandomId','customDecorations','change$','docs-formula.config','start','Injector','insert','find','COLUMN_START','_pendingUnitIds','customBlocks','SUCCESS','number','symbol','config','_config','_deleteRegistration','isDocFormulaResource','UniverProFormulaEnginePlugin','TABLE_START','Subject','_change$','values','presentation','prototype','call','has','endOffset','rxjs','textRuns','unitId','_docFormulaModel','shiftInclusiveRangeOnDelete','pattern','7484049BWamGa','endIndex','set','kind','model','getPresentation','IUniverInstanceService','references','TABLE_ROW_END','TABLE_CELL_START','from','serialize','toPrimitive','getCustomRangeInterval','pushUndoRedo','shiftInclusiveRangeOnInsert','sequenceNodesBuilder','getBody','dataStream','sort','Plugin','unitAdded$','Tools','ERROR','isDocFormulaRange','SetDocFormulaMutation','startIndex','isArray','resolveFormula','externalReferences','RemoveDocFormulaCommand','_formulaService','DOC','DOC_SELECTION_OPTION_PRESERVE_CARET','sectionBreaks','_registrationService','Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries','max','registerPluginResource','@univerjs/engine-formula','buildInsertDocFormulaActions','getLoadError','getRegisteredFormulas','RichTextEditingMutation','InsertDocFormulaCommand','text','subscribe','SECTION_BREAK','buildUpsertHostExternalReferenceMutations','resource','complete','undoMutation','ReplaceDocFormulaWithTextCommand','DependentOn','documentData','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','collectFormulaExternalReferenceQualifiers','UniverDocs','source','DocFormulaDisplayTextService','formulaId','BLOCK_END','findDocFormulaRange','parse','_preserveInvalid','defineProperty','@univerjs-pro/docs-formula','resourceRedo','add','startsWith','_injector','UNIVER_DOC','document','6MZruPk','position','DOC_FORMULA_CUSTOM_RANGE_KIND','formula','BLOCK_START','getUnit','length','_model','paragraphId','setFormulas','_registrations','lastValue','TextX','IConfigService','amd','UniverDocsPlugin','isInteger','object','_formulaKeys','dispose','toFormulaLastValue','syncExecuteCommand','getRevision','accessor','_resources','DocFormulaModel','setConfig','isFormulaLastValue','removeUnit','assertSafeDocFormulaInsertRange','expectedNumberFormat','deleteLength','packageName','delete','ICommandService'];_0xb83c=function(){return _0x3d3b20;};return _0xb83c();}function _0xa7a7(_0xc7d5fb,_0x59c44b){_0xc7d5fb=_0xc7d5fb-0x163;const _0xb83c9b=_0xb83c();let _0xa7a774=_0xb83c9b[_0xc7d5fb];return _0xa7a774;}(function(_0x2160c9,_0x3f03b1){const _0x28eb62=_0xa7a7,_0x3ee2b1=_0x2160c9();while(!![]){try{const _0x43fd34=-parseInt(_0x28eb62(0x264))/0x1*(parseInt(_0x28eb62(0x208))/0x2)+parseInt(_0x28eb62(0x283))/0x3+parseInt(_0x28eb62(0x25b))/0x4*(parseInt(_0x28eb62(0x219))/0x5)+parseInt(_0x28eb62(0x1b4))/0x6*(-parseInt(_0x28eb62(0x23c))/0x7)+parseInt(_0x28eb62(0x24c))/0x8*(-parseInt(_0x28eb62(0x16b))/0x9)+-parseInt(_0x28eb62(0x24d))/0xa+parseInt(_0x28eb62(0x240))/0xb;if(_0x43fd34===_0x3f03b1)break;else _0x3ee2b1['push'](_0x3ee2b1['shift']());}catch(_0xaf994b){_0x3ee2b1['push'](_0x3ee2b1['shift']());}}}(_0xb83c,0x8b1e4),function(_0x11e38b,_0x400934){const _0x21cf98=_0xa7a7;typeof exports==_0x21cf98(0x1c5)&&typeof module<'u'?_0x400934(exports,require('@univerjs-pro/engine-formula'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/engine-formula'),require('rxjs'),require('@univerjs-pro/license')):typeof define==_0x21cf98(0x21c)&&define[_0x21cf98(0x1c2)]?define([_0x21cf98(0x25e),'@univerjs-pro/engine-formula',_0x21cf98(0x23d),_0x21cf98(0x237),_0x21cf98(0x192),_0x21cf98(0x165),'@univerjs-pro/license'],_0x400934):(_0x11e38b=typeof globalThis<'u'?globalThis:_0x11e38b||self,_0x400934(_0x11e38b['UniverProDocsFormula']={},_0x11e38b['UniverProEngineFormula'],_0x11e38b[_0x21cf98(0x24e)],_0x11e38b[_0x21cf98(0x1a4)],_0x11e38b['UniverEngineFormula'],_0x11e38b['rxjs'],_0x11e38b[_0x21cf98(0x218)]));}(this,function(_0x502800,_0x138dd0,_0x42b9d4,_0x554914,_0xf5658,_0x58159d,_0x43fe23){const _0x264e36=_0xa7a7;Object['defineProperty'](_0x502800,Symbol['toStringTag'],{'value':'Module'});let _0x3d28a0=_0x264e36(0x22f),_0x48c9c7=_0x264e36(0x290);function _0x5c7567(){return{'schemaVersion':0x1,'formulas':{}};}function _0x4d9d4b(_0x4dd13f){const _0x3d9de6=_0x264e36;return!_0x4dd13f||typeof _0x4dd13f!=_0x3d9de6(0x1c5)||!_0x134452(_0x4dd13f,['schemaVersion',_0x3d9de6(0x23a)])||!(_0x3d9de6(0x250)in _0x4dd13f)||_0x4dd13f[_0x3d9de6(0x250)]!==0x1||!('formulas'in _0x4dd13f)||!_0x4dd13f[_0x3d9de6(0x23a)]||typeof _0x4dd13f[_0x3d9de6(0x23a)]!='object'||Array[_0x3d9de6(0x186)](_0x4dd13f[_0x3d9de6(0x23a)])?!0x1:Object[_0x3d9de6(0x266)](_0x4dd13f[_0x3d9de6(0x23a)])[_0x3d9de6(0x24f)](([_0x5714d2,_0x39a8b8])=>_0x5714d2['length']>0x0&&_0x3a626b(_0x39a8b8));}function _0x3a626b(_0x11879c){const _0x4ec8e9=_0x264e36;return!_0x11879c||typeof _0x11879c!=_0x4ec8e9(0x1c5)||!_0x134452(_0x11879c,[_0x4ec8e9(0x1b7),_0x4ec8e9(0x1f8),'lastValue'])||!(_0x4ec8e9(0x1b7)in _0x11879c)||typeof _0x11879c['formula']!=_0x4ec8e9(0x1ef)||!_0x11879c[_0x4ec8e9(0x1b7)][_0x4ec8e9(0x1f9)]()||'numberFormat'in _0x11879c&&_0x11879c[_0x4ec8e9(0x1f8)]!=null&&(typeof _0x11879c['numberFormat']!=_0x4ec8e9(0x1c5)||!_0x134452(_0x11879c[_0x4ec8e9(0x1f8)],['pattern'])||!('pattern'in _0x11879c['numberFormat'])||typeof _0x11879c[_0x4ec8e9(0x1f8)][_0x4ec8e9(0x16a)]!=_0x4ec8e9(0x1ef))?!0x1:!(_0x4ec8e9(0x1bf)in _0x11879c)||_0x11879c[_0x4ec8e9(0x1bf)]==null||_0x12f29b(_0x11879c['lastValue']);}function _0x12f29b(_0x36abea){const _0x267504=_0x264e36;return!_0x36abea||typeof _0x36abea!=_0x267504(0x1c5)||!_0x134452(_0x36abea,['v','t','pattern'])||!('v'in _0x36abea)||_0x36abea['v']!==null&&typeof _0x36abea['v']!='string'&&typeof _0x36abea['v']!=_0x267504(0x2a3)&&typeof _0x36abea['v']!=_0x267504(0x20e)||'t'in _0x36abea&&_0x36abea['t']!=null&&!_0x51ad1e(_0x36abea['t'])?!0x1:!(_0x267504(0x16a)in _0x36abea)||_0x36abea[_0x267504(0x16a)]==null||typeof _0x36abea[_0x267504(0x16a)]=='string';}function _0x134452(_0x4deaeb,_0x16b64d){const _0x4e37d5=_0x264e36;let _0x164c64=new Set(_0x16b64d);return Object[_0x4e37d5(0x272)](_0x4deaeb)['every'](_0x34ddb0=>_0x164c64[_0x4e37d5(0x163)](_0x34ddb0));}function _0x51ad1e(_0x4008be){const _0x5b58da=_0x264e36;return typeof _0x4008be==_0x5b58da(0x2a3)&&Object[_0x5b58da(0x2ad)](_0x42b9d4['CellValueType'])[_0x5b58da(0x1eb)](_0x4008be);}let _0x4c2344=new Set([_0x42b9d4['DataStreamTreeTokenType'][_0x264e36(0x19a)],_0x42b9d4['DataStreamTreeTokenType'][_0x264e36(0x2aa)],_0x42b9d4[_0x264e36(0x1e2)][_0x264e36(0x295)],_0x42b9d4[_0x264e36(0x1e2)][_0x264e36(0x174)],_0x42b9d4[_0x264e36(0x1e2)][_0x264e36(0x261)],_0x42b9d4[_0x264e36(0x1e2)][_0x264e36(0x173)],_0x42b9d4['DataStreamTreeTokenType'][_0x264e36(0x23b)],_0x42b9d4[_0x264e36(0x1e2)][_0x264e36(0x206)],_0x42b9d4[_0x264e36(0x1e2)][_0x264e36(0x29f)],_0x42b9d4[_0x264e36(0x1e2)][_0x264e36(0x1ee)],_0x42b9d4[_0x264e36(0x1e2)][_0x264e36(0x1dc)],_0x42b9d4['DataStreamTreeTokenType'][_0x264e36(0x1b8)],_0x42b9d4[_0x264e36(0x1e2)][_0x264e36(0x1a8)],_0x42b9d4['DataStreamTreeTokenType']['CUSTOM_BLOCK']]);var _0x2d09c5=class extends Error{constructor(){const _0x132f5a=_0x264e36;super(_0x132f5a(0x18f));}};function _0x59ec7a(_0x30d308){const _0x45ee9c=_0x264e36;var _0x149017,_0xf00b8f;let _0x274e91=_0x42b9d4['Tools'][_0x45ee9c(0x244)](_0x30d308['documentData']),_0x3cca0e=_0x36ce15(_0x274e91),{startOffset:_0x11df9f,endOffset:_0xa383c}=_0x1dfba6(_0x3cca0e,_0x30d308['startOffset'],_0x30d308[_0x45ee9c(0x164)]);_0x350f35(_0x3cca0e,_0x11df9f,_0xa383c);let _0x2b9a5f=((_0x149017=_0x3cca0e[_0x45ee9c(0x20d)])==null?void 0x0:_0x149017['filter'](_0x242b21=>{const _0x5bf3fb=_0x45ee9c;if(!_0x5b5048(_0x242b21))return!0x1;let _0x58bc27=(0x0,_0x42b9d4[_0x5bf3fb(0x178)])(_0x242b21);return _0x58bc27[_0x5bf3fb(0x164)]>_0x11df9f&&_0x58bc27[_0x5bf3fb(0x27e)]<_0xa383c;})['map'](_0x53c25f=>_0x53c25f[_0x45ee9c(0x26a)]))??[];_0x53f91f(_0x3cca0e,_0x11df9f,_0xa383c,''),_0x3cca0e[_0x45ee9c(0x20d)]=[...((_0xf00b8f=_0x3cca0e[_0x45ee9c(0x20d)])==null?void 0x0:_0xf00b8f['filter'](_0x2a7d10=>!_0x2b9a5f['includes'](_0x2a7d10['rangeId'])&&_0x2a7d10[_0x45ee9c(0x26a)]!==_0x30d308[_0x45ee9c(0x26a)]))??[],_0x342733(_0x30d308['rangeId'],_0x11df9f)][_0x45ee9c(0x17e)]((_0x175264,_0x1c85d3)=>_0x175264[_0x45ee9c(0x185)]-_0x1c85d3[_0x45ee9c(0x185)]);let _0x469bb9=_0xebc05c(_0x30d308[_0x45ee9c(0x19c)]);return _0x2b9a5f['forEach'](_0x245136=>{const _0x49e950=_0x45ee9c;delete _0x469bb9[_0x49e950(0x23a)][_0x245136];}),_0x469bb9[_0x45ee9c(0x23a)][_0x30d308[_0x45ee9c(0x26a)]]=_0x42b9d4[_0x45ee9c(0x181)]['deepClone'](_0x30d308['config']),{'nextDocumentData':_0x274e91,'nextResource':_0x469bb9,'cursorOffset':_0x11df9f+0x1};}function _0x266b43(_0x2f5ae1){const _0x6125a1=_0x264e36;var _0x1e5188,_0x3b6065;let _0x5008ae=_0x42b9d4[_0x6125a1(0x181)]['deepClone'](_0x2f5ae1[_0x6125a1(0x1a1)]),_0x123b9e=(_0x1e5188=_0x36ce15(_0x5008ae)[_0x6125a1(0x20d)])==null?void 0x0:_0x1e5188[_0x6125a1(0x29e)](_0x5271a0=>_0x5271a0['rangeId']===_0x2f5ae1[_0x6125a1(0x26a)]&&_0x5b5048(_0x5271a0));if(!_0x123b9e||!((_0x3b6065=_0x2f5ae1['resource'])!=null&&_0x3b6065['formulas'][_0x2f5ae1[_0x6125a1(0x26a)]]))return null;let _0x2db3ae=_0xebc05c(_0x2f5ae1['resource']);return _0x2db3ae[_0x6125a1(0x23a)][_0x2f5ae1[_0x6125a1(0x26a)]]=_0x42b9d4['Tools'][_0x6125a1(0x244)](_0x2f5ae1[_0x6125a1(0x2a5)]),{'nextDocumentData':_0x5008ae,'nextResource':_0x2db3ae,'cursorOffset':_0x123b9e[_0x6125a1(0x16c)]+0x1};}function _0x3e159c(_0x1760bc){const _0x3baa9c=_0x264e36;let _0x4c0638=_0x42b9d4[_0x3baa9c(0x181)][_0x3baa9c(0x244)](_0x1760bc['documentData']),_0xe6d6c9=_0xd57e4d(_0x4c0638,_0x1760bc['rangeId'],_0x1760bc[_0x3baa9c(0x198)]??'');if(_0xe6d6c9==null)return null;let _0x11f412=_0xebc05c(_0x1760bc[_0x3baa9c(0x19c)]);return delete _0x11f412[_0x3baa9c(0x23a)][_0x1760bc['rangeId']],{'nextDocumentData':_0x4c0638,'nextResource':_0x11f412,'cursorOffset':_0xe6d6c9};}function _0x5088dd(_0x4e7bad,_0x10bb8d){const _0x29cd=_0x264e36;var _0x3a6bd6;let _0x3b40ed=_0x42b9d4['Tools'][_0x29cd(0x244)](_0x4e7bad),_0x349368=_0x3b40ed['body'];if(!_0x349368)return _0x3b40ed;let _0x534836=new Map(_0x10bb8d[_0x29cd(0x25f)](_0xcafd03=>[_0xcafd03['rangeId'],_0xcafd03[_0x29cd(0x198)]])),_0x49fe09=((_0x3a6bd6=_0x349368[_0x29cd(0x20d)])==null?void 0x0:_0x3a6bd6[_0x29cd(0x291)](_0x54be6f=>_0x5b5048(_0x54be6f)&&_0x534836['has'](_0x54be6f[_0x29cd(0x26a)]))[_0x29cd(0x17e)]((_0x29ca44,_0x381e2e)=>_0x381e2e[_0x29cd(0x185)]-_0x29ca44[_0x29cd(0x185)]))??[];for(let _0x22fb2b of _0x49fe09)_0xd57e4d(_0x3b40ed,_0x22fb2b[_0x29cd(0x26a)],_0x534836[_0x29cd(0x255)](_0x22fb2b[_0x29cd(0x26a)])??'');return _0x3b40ed;}function _0x5b5048(_0x1e4edd){const _0x2db75f=_0x264e36;var _0x3b65cb;return(_0x1e4edd==null?void 0x0:_0x1e4edd[_0x2db75f(0x279)])===_0x42b9d4[_0x2db75f(0x1f7)]['CUSTOM']&&_0x1e4edd['wholeEntity']===!0x0&&((_0x3b65cb=_0x1e4edd[_0x2db75f(0x21a)])==null?void 0x0:_0x3b65cb[_0x2db75f(0x16e)])===_0x2db75f(0x290);}function _0xe4a3ff(_0x3c7505,_0xac680b){const _0x1d37d0=_0x264e36;var _0x3f3ee0;return _0x3c7505==null||(_0x3f3ee0=_0x3c7505['customRanges'])==null?void 0x0:_0x3f3ee0[_0x1d37d0(0x29e)](_0x45e923=>_0x45e923[_0x1d37d0(0x26a)]===_0xac680b&&_0x5b5048(_0x45e923));}function _0x350f35(_0x20b2e3,_0x22de97,_0x58d981){const _0x31a74b=_0x264e36;if(_0x22de97===_0x58d981){if(_0x4c2344[_0x31a74b(0x163)](_0x20b2e3['dataStream'][_0x22de97]))throw new _0x2d09c5();}else{for(let _0x40de21=_0x22de97;_0x40de21<_0x58d981;_0x40de21++)if(_0x20b2e3['dataStream'][_0x40de21]===_0x42b9d4[_0x31a74b(0x1e2)][_0x31a74b(0x1f5)]||_0x4c2344[_0x31a74b(0x163)](_0x20b2e3[_0x31a74b(0x17d)][_0x40de21]))throw new _0x2d09c5();}}function _0x342733(_0x238f25,_0x1d3a92){const _0x2acfef=_0x264e36;return{'startIndex':_0x1d3a92,'endIndex':_0x1d3a92,'rangeId':_0x238f25,'rangeType':_0x42b9d4[_0x2acfef(0x1f7)]['CUSTOM'],'wholeEntity':!0x0,'properties':{'kind':_0x48c9c7}};}function _0xebc05c(_0x2f14ff){const _0x333051=_0x264e36;return _0x2f14ff?_0x42b9d4[_0x333051(0x181)][_0x333051(0x244)](_0x2f14ff):_0x5c7567();}function _0x1dfba6(_0x47dbea,_0x3b3fac,_0x4743c9){const _0x147c25=_0x264e36;let _0x117dd0=_0x245434(_0x47dbea),_0x133f7e=_0x3b3fac??_0x117dd0,_0x13f614=_0x4743c9??_0x133f7e;return{'startOffset':_0x11780e(Math[_0x147c25(0x220)](_0x133f7e,_0x13f614),_0x117dd0),'endOffset':_0x11780e(Math['max'](_0x133f7e,_0x13f614),_0x117dd0)};}function _0x11780e(_0x25ee53,_0x1a6681){const _0xdcd0c8=_0x264e36;return Math[_0xdcd0c8(0x190)](0x0,Math['min'](_0x25ee53,_0x1a6681));}function _0x245434(_0x3dd22f){const _0x3ab037=_0x264e36;return _0x3dd22f[_0x3ab037(0x17d)]['endsWith'](''+_0x42b9d4[_0x3ab037(0x1e2)][_0x3ab037(0x1f5)]+_0x42b9d4['DataStreamTreeTokenType'][_0x3ab037(0x19a)])?Math['max'](0x0,_0x3dd22f[_0x3ab037(0x17d)][_0x3ab037(0x1ba)]-0x2):_0x3dd22f[_0x3ab037(0x17d)]['endsWith'](_0x42b9d4['DataStreamTreeTokenType']['SECTION_BREAK'])?Math[_0x3ab037(0x190)](0x0,_0x3dd22f[_0x3ab037(0x17d)][_0x3ab037(0x1ba)]-0x1):_0x3dd22f[_0x3ab037(0x17d)]['length'];}function _0x53f91f(_0x577963,_0x13a3e3,_0x310282,_0x9c9f1e){_0x310282>_0x13a3e3&&_0x1c2b38(_0x577963,_0x13a3e3,_0x310282),_0xdaca2b(_0x577963,_0x13a3e3,_0x9c9f1e);}function _0xd57e4d(_0x4f4516,_0x2baa0a,_0x25ec14){const _0x1248c4=_0x264e36;var _0x2abd78,_0x5b6a6f;let _0x4fbf42=_0x36ce15(_0x4f4516),_0x37e093=(_0x2abd78=_0x4fbf42[_0x1248c4(0x20d)])==null?void 0x0:_0x2abd78['find'](_0x5bad49=>_0x5bad49[_0x1248c4(0x26a)]===_0x2baa0a&&_0x5b5048(_0x5bad49));if(!_0x37e093)return null;let _0x29e765=(0x0,_0x42b9d4[_0x1248c4(0x178)])(_0x37e093);return _0x53f91f(_0x4fbf42,_0x29e765[_0x1248c4(0x27e)],_0x29e765[_0x1248c4(0x164)],_0x25ec14),_0x4fbf42[_0x1248c4(0x20d)]=(_0x5b6a6f=_0x4fbf42[_0x1248c4(0x20d)])==null?void 0x0:_0x5b6a6f[_0x1248c4(0x291)](_0x2057f9=>_0x2057f9['rangeId']!==_0x2baa0a),_0x29e765[_0x1248c4(0x27e)]+_0x25ec14[_0x1248c4(0x1ba)];}function _0xdaca2b(_0x525941,_0x171034,_0xe9dc52){const _0x78c146=_0x264e36;_0xe9dc52&&(_0x525941[_0x78c146(0x17d)]=''+_0x525941[_0x78c146(0x17d)][_0x78c146(0x20a)](0x0,_0x171034)+_0xe9dc52+_0x525941[_0x78c146(0x17d)][_0x78c146(0x20a)](_0x171034),_0x1dceaf(_0x525941,_0x171034,_0xe9dc52['length']));}function _0x1c2b38(_0x4de99f,_0x1882d7,_0x5e25f0){const _0x6eba11=_0x264e36;let _0x57383b=_0x5e25f0-_0x1882d7;_0x4de99f[_0x6eba11(0x17d)]=''+_0x4de99f['dataStream'][_0x6eba11(0x20a)](0x0,_0x1882d7)+_0x4de99f[_0x6eba11(0x17d)]['slice'](_0x5e25f0),_0x4e1288(_0x4de99f,_0x1882d7,_0x57383b);}function _0x1dceaf(_0xcc96e3,_0x488132,_0x278a97){const _0x23df17=_0x264e36;_0xcc96e3['paragraphs']=_0x3e9aec(_0xcc96e3[_0x23df17(0x288)],_0x488132,_0x278a97),_0xcc96e3[_0x23df17(0x18d)]=_0x3e9aec(_0xcc96e3[_0x23df17(0x18d)],_0x488132,_0x278a97),_0xcc96e3[_0x23df17(0x2a1)]=_0x3e9aec(_0xcc96e3['customBlocks'],_0x488132,_0x278a97),_0xcc96e3[_0x23df17(0x166)]=_0x545910(_0xcc96e3[_0x23df17(0x166)],_0x488132,_0x278a97),_0xcc96e3['tables']=_0x21c4cd(_0xcc96e3[_0x23df17(0x228)],_0x488132,_0x278a97),_0xcc96e3[_0x23df17(0x280)]=_0x5216b3(_0xcc96e3[_0x23df17(0x280)],_0x488132,_0x278a97),_0xcc96e3[_0x23df17(0x20d)]=_0x5216b3(_0xcc96e3[_0x23df17(0x20d)],_0x488132,_0x278a97),_0xcc96e3[_0x23df17(0x298)]=_0x5216b3(_0xcc96e3[_0x23df17(0x298)],_0x488132,_0x278a97),_0xcc96e3['blockRanges']=_0x5216b3(_0xcc96e3[_0x23df17(0x1e0)],_0x488132,_0x278a97);}function _0x4e1288(_0x274d1e,_0xd5c0bc,_0x4c2271){const _0xea2d3c=_0x264e36;var _0xb231a1,_0x2be857;_0x274d1e[_0xea2d3c(0x288)]=_0x55aa02(_0x274d1e[_0xea2d3c(0x288)],_0xd5c0bc,_0x4c2271),_0x274d1e[_0xea2d3c(0x18d)]=_0x55aa02(_0x274d1e[_0xea2d3c(0x18d)],_0xd5c0bc,_0x4c2271),_0x274d1e[_0xea2d3c(0x2a1)]=_0x55aa02(_0x274d1e[_0xea2d3c(0x2a1)],_0xd5c0bc,_0x4c2271),_0x274d1e[_0xea2d3c(0x166)]=(_0xb231a1=_0x42a975((_0x2be857=_0x274d1e[_0xea2d3c(0x166)])==null?void 0x0:_0x2be857[_0xea2d3c(0x25f)](_0x3139de=>({..._0x3139de,'startIndex':_0x3139de['st'],'endIndex':_0x3139de['ed']})),_0xd5c0bc,_0x4c2271))==null?void 0x0:_0xb231a1[_0xea2d3c(0x25f)](_0x311b50=>{let {startIndex:_0x14f699,endIndex:_0x568f6a,..._0x193ff1}=_0x311b50;return{..._0x193ff1,'st':_0x14f699,'ed':_0x568f6a};}),_0x274d1e[_0xea2d3c(0x228)]=_0x42a975(_0x274d1e[_0xea2d3c(0x228)],_0xd5c0bc,_0x4c2271),_0x274d1e[_0xea2d3c(0x280)]=_0xb397df(_0x274d1e[_0xea2d3c(0x280)],_0xd5c0bc,_0x4c2271),_0x274d1e[_0xea2d3c(0x20d)]=_0xb397df(_0x274d1e['customRanges'],_0xd5c0bc,_0x4c2271),_0x274d1e['customDecorations']=_0xb397df(_0x274d1e[_0xea2d3c(0x298)],_0xd5c0bc,_0x4c2271),_0x274d1e['blockRanges']=_0xb397df(_0x274d1e['blockRanges'],_0xd5c0bc,_0x4c2271);}function _0x3e9aec(_0x2dd38b,_0x226d15,_0x2df4c4){const _0x434383=_0x264e36;return _0x2dd38b==null?void 0x0:_0x2dd38b[_0x434383(0x25f)](_0x5b17df=>_0x5b17df[_0x434383(0x185)]>=_0x226d15?{..._0x5b17df,'startIndex':_0x5b17df['startIndex']+_0x2df4c4}:_0x5b17df);}function _0x55aa02(_0xe10e86,_0x1433b1,_0x26e401){const _0x1e76e9=_0x264e36;let _0x205536=_0x1433b1+_0x26e401;return _0xe10e86==null?void 0x0:_0xe10e86[_0x1e76e9(0x25f)](_0x4b0ed8=>_0x4b0ed8[_0x1e76e9(0x185)]>=_0x1433b1&&_0x4b0ed8[_0x1e76e9(0x185)]<_0x205536?null:_0x4b0ed8[_0x1e76e9(0x185)]>=_0x205536?{..._0x4b0ed8,'startIndex':_0x4b0ed8['startIndex']-_0x26e401}:_0x4b0ed8)[_0x1e76e9(0x291)](_0x3753aa=>_0x3753aa!=null);}function _0x545910(_0x4d9cf5,_0x2dc2ce,_0x5a5017){const _0x28c666=_0x264e36;return _0x4d9cf5==null?void 0x0:_0x4d9cf5[_0x28c666(0x25f)](_0x503cb7=>_0x503cb7['st']>=_0x2dc2ce?{..._0x503cb7,'st':_0x503cb7['st']+_0x5a5017,'ed':_0x503cb7['ed']+_0x5a5017}:_0x503cb7['ed']>_0x2dc2ce?{..._0x503cb7,'ed':_0x503cb7['ed']+_0x5a5017}:_0x503cb7);}function _0x5216b3(_0x5f1e49,_0x2f2e12,_0xb106ff){const _0x349e9e=_0x264e36;return _0x5f1e49==null?void 0x0:_0x5f1e49[_0x349e9e(0x25f)](_0x5111b4=>(0x0,_0x42b9d4[_0x349e9e(0x17a)])(_0x5111b4,_0x2f2e12,_0xb106ff));}function _0x21c4cd(_0x396340,_0x46d265,_0x4da9a7){const _0x5450ff=_0x264e36;return _0x396340==null?void 0x0:_0x396340['map'](_0x29513a=>(0x0,_0x42b9d4[_0x5450ff(0x212)])(_0x29513a,_0x46d265,_0x4da9a7));}function _0xb397df(_0x486b42,_0x3297a2,_0x24b950){const _0x4ccfa4=_0x264e36;return _0x486b42==null?void 0x0:_0x486b42['map'](_0x17b59c=>(0x0,_0x42b9d4[_0x4ccfa4(0x169)])(_0x17b59c,_0x3297a2,_0x24b950))[_0x4ccfa4(0x291)](_0x34878b=>_0x34878b!=null);}function _0x42a975(_0x56b78c,_0x47d923,_0x21092c){const _0x3241f4=_0x264e36;return _0x56b78c==null?void 0x0:_0x56b78c[_0x3241f4(0x25f)](_0x444337=>(0x0,_0x42b9d4[_0x3241f4(0x27b)])(_0x444337,_0x47d923,_0x21092c))['filter'](_0x721109=>_0x721109!=null);}function _0x36ce15(_0x310fa6){const _0x34ddab=_0x264e36;if(!_0x310fa6[_0x34ddab(0x1ff)])throw Error('Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.');return _0x310fa6[_0x34ddab(0x1ff)];}function _0x284c45(_0x20fa55){'@babel/helpers - typeof';const _0x21bee6=_0x264e36;return _0x284c45=typeof Symbol==_0x21bee6(0x21c)&&typeof Symbol['iterator']==_0x21bee6(0x2a4)?function(_0x1370c6){return typeof _0x1370c6;}:function(_0x481efe){const _0x4bddaf=_0x21bee6;return _0x481efe&&typeof Symbol=='function'&&_0x481efe[_0x4bddaf(0x1f3)]===Symbol&&_0x481efe!==Symbol[_0x4bddaf(0x2af)]?'symbol':typeof _0x481efe;},_0x284c45(_0x20fa55);}function _0x4c4f06(_0x21da3a,_0x2e36d3){const _0x1f06a6=_0x264e36;if(_0x284c45(_0x21da3a)!=_0x1f06a6(0x1c5)||!_0x21da3a)return _0x21da3a;var _0x348b79=_0x21da3a[Symbol[_0x1f06a6(0x177)]];if(_0x348b79!==void 0x0){var _0xbca7f5=_0x348b79[_0x1f06a6(0x2b0)](_0x21da3a,_0x2e36d3||'default');if(_0x284c45(_0xbca7f5)!=_0x1f06a6(0x1c5))return _0xbca7f5;throw TypeError(_0x1f06a6(0x1a2));}return(_0x2e36d3==='string'?String:Number)(_0x21da3a);}function _0x305794(_0xc58b22){const _0x4a0eb5=_0x264e36;var _0x286b6d=_0x4c4f06(_0xc58b22,_0x4a0eb5(0x1ef));return _0x284c45(_0x286b6d)==_0x4a0eb5(0x2a4)?_0x286b6d:_0x286b6d+'';}function _0x4b071f(_0x27b6d8,_0x238fe3,_0x4c66ac){const _0x4367f8=_0x264e36;return(_0x238fe3=_0x305794(_0x238fe3))in _0x27b6d8?Object[_0x4367f8(0x1ac)](_0x27b6d8,_0x238fe3,{'value':_0x4c66ac,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x27b6d8[_0x238fe3]=_0x4c66ac,_0x27b6d8;}var _0x136dfa=class extends _0x42b9d4[_0x264e36(0x227)]{constructor(..._0x3006fb){const _0x2b991f=_0x264e36;super(..._0x3006fb),_0x4b071f(this,_0x2b991f(0x1cc),new Map()),_0x4b071f(this,'_rawResources',new Map()),_0x4b071f(this,'_loadErrors',new Map()),_0x4b071f(this,_0x2b991f(0x2ac),new _0x58159d[(_0x2b991f(0x2ab))]()),_0x4b071f(this,_0x2b991f(0x299),this[_0x2b991f(0x2ac)]['asObservable']());}[_0x264e36(0x221)](_0x4d0ac0,_0x1e2dc3){const _0x172f83=_0x264e36;var _0x2a2176;let _0x1b5c6d=(_0x2a2176=this[_0x172f83(0x1cc)][_0x172f83(0x255)](_0x4d0ac0))==null?void 0x0:_0x2a2176['formulas'][_0x1e2dc3];return _0x1b5c6d?_0x42b9d4[_0x172f83(0x181)][_0x172f83(0x244)](_0x1b5c6d):void 0x0;}[_0x264e36(0x204)](_0x534f9a){const _0x47e4c1=_0x264e36;var _0x59a62c;return _0x42b9d4['Tools'][_0x47e4c1(0x244)](((_0x59a62c=this[_0x47e4c1(0x1cc)]['get'](_0x534f9a))==null?void 0x0:_0x59a62c[_0x47e4c1(0x23a)])??{});}[_0x264e36(0x1fa)](_0x5a2513){const _0x52749b=_0x264e36;let _0x3d50f9=this[_0x52749b(0x1cc)]['get'](_0x5a2513);return _0x3d50f9?_0x42b9d4[_0x52749b(0x181)][_0x52749b(0x244)](_0x3d50f9):void 0x0;}[_0x264e36(0x1f0)](_0x52e84c,_0x375464,_0x400781){const _0x5912de=_0x264e36;return this[_0x5912de(0x1bd)](_0x52e84c,{[_0x375464]:_0x400781});}[_0x264e36(0x28e)](_0x2f0315,_0x129c6c){const _0x3510bd=_0x264e36;return this[_0x3510bd(0x285)][_0x3510bd(0x163)](_0x2f0315)||!_0x4d9d4b(_0x129c6c)?!0x1:(this[_0x3510bd(0x1cc)][_0x3510bd(0x16d)](_0x2f0315,_0x42b9d4[_0x3510bd(0x181)]['deepClone'](_0x129c6c)),this[_0x3510bd(0x2ac)][_0x3510bd(0x1de)]({'unitId':_0x2f0315}),!0x0);}[_0x264e36(0x1bd)](_0x257868,_0x1ddf80){const _0x250a07=_0x264e36;if(this['_loadErrors'][_0x250a07(0x163)](_0x257868)||!Object[_0x250a07(0x272)](_0x1ddf80)[_0x250a07(0x1ba)]||!_0x4d9d4b({'schemaVersion':0x1,'formulas':_0x1ddf80}))return!0x1;let _0x15c280=this[_0x250a07(0x1cc)]['get'](_0x257868)??_0x5c7567(),_0x58e28a=_0x42b9d4['Tools'][_0x250a07(0x244)](_0x15c280);return Object['assign'](_0x58e28a[_0x250a07(0x23a)],_0x42b9d4[_0x250a07(0x181)]['deepClone'](_0x1ddf80)),this['_resources'][_0x250a07(0x16d)](_0x257868,_0x58e28a),this['_change$'][_0x250a07(0x1de)]({'unitId':_0x257868,'rangeIds':Object[_0x250a07(0x272)](_0x1ddf80)}),!0x0;}['removeFormula'](_0x5129a4,_0x2fed17){const _0x2f4188=_0x264e36;if(this[_0x2f4188(0x285)][_0x2f4188(0x163)](_0x5129a4))return!0x1;let _0x188adf=this[_0x2f4188(0x1cc)]['get'](_0x5129a4);if(!(_0x188adf!=null&&_0x188adf[_0x2f4188(0x23a)][_0x2fed17]))return!0x1;let _0x9587c4=_0x42b9d4[_0x2f4188(0x181)]['deepClone'](_0x188adf);return delete _0x9587c4[_0x2f4188(0x23a)][_0x2fed17],this[_0x2f4188(0x1cc)][_0x2f4188(0x16d)](_0x5129a4,_0x9587c4),this[_0x2f4188(0x2ac)]['next']({'unitId':_0x5129a4,'rangeIds':[_0x2fed17]}),!0x0;}['load'](_0x11035e,_0x2c1f57){const _0x55c31b=_0x264e36;return _0x2c1f57&&typeof _0x2c1f57==_0x55c31b(0x1c5)&&_0x55c31b(0x250)in _0x2c1f57&&_0x2c1f57['schemaVersion']!==0x1?(this['_preserveInvalid'](_0x11035e,_0x2c1f57,_0x55c31b(0x20c)),!0x1):_0x4d9d4b(_0x2c1f57)?(this[_0x55c31b(0x1cc)][_0x55c31b(0x16d)](_0x11035e,_0x42b9d4[_0x55c31b(0x181)]['deepClone'](_0x2c1f57)),this[_0x55c31b(0x26e)][_0x55c31b(0x1d5)](_0x11035e),this[_0x55c31b(0x285)][_0x55c31b(0x1d5)](_0x11035e),this['_change$'][_0x55c31b(0x1de)]({'unitId':_0x11035e}),!0x0):(this[_0x55c31b(0x1ab)](_0x11035e,_0x2c1f57,'invalid-resource'),!0x1);}['serialize'](_0x5ede79){const _0x5e8bf8=_0x264e36;let _0x4c7a5a=this['_resources'][_0x5e8bf8(0x255)](_0x5ede79);return _0x4c7a5a?_0x42b9d4[_0x5e8bf8(0x181)][_0x5e8bf8(0x244)](_0x4c7a5a):this['_rawResources'][_0x5e8bf8(0x163)](_0x5ede79)?_0x42b9d4['Tools'][_0x5e8bf8(0x244)](this[_0x5e8bf8(0x26e)][_0x5e8bf8(0x255)](_0x5ede79)):_0x5c7567();}[_0x264e36(0x194)](_0x34c174){return this['_loadErrors']['get'](_0x34c174);}['removeUnit'](_0x40433c){const _0xf0a461=_0x264e36;this[_0xf0a461(0x1cc)][_0xf0a461(0x1d5)](_0x40433c),this['_rawResources'][_0xf0a461(0x1d5)](_0x40433c),this[_0xf0a461(0x285)][_0xf0a461(0x1d5)](_0x40433c),this[_0xf0a461(0x2ac)]['next']({'unitId':_0x40433c});}['dispose'](){const _0x2df966=_0x264e36;this['_resources'][_0x2df966(0x248)](),this[_0x2df966(0x26e)][_0x2df966(0x248)](),this[_0x2df966(0x285)][_0x2df966(0x248)](),this[_0x2df966(0x2ac)][_0x2df966(0x19d)](),super['dispose']();}[_0x264e36(0x1ab)](_0x310e31,_0x5b58dc,_0x14b48e){const _0x2763aa=_0x264e36;this[_0x2763aa(0x1cc)][_0x2763aa(0x1d5)](_0x310e31),this['_rawResources'][_0x2763aa(0x16d)](_0x310e31,_0x42b9d4[_0x2763aa(0x181)]['deepClone'](_0x5b58dc)),this[_0x2763aa(0x285)][_0x2763aa(0x16d)](_0x310e31,_0x14b48e),this['_change$'][_0x2763aa(0x1de)]({'unitId':_0x310e31});}};let _0x17a4fa=function(_0x17c50b){const _0x37a70f=_0x264e36;return _0x17c50b[_0x37a70f(0x236)]=_0x37a70f(0x249),_0x17c50b['PENDING']=_0x37a70f(0x276),_0x17c50b[_0x37a70f(0x2a2)]=_0x37a70f(0x209),_0x17c50b[_0x37a70f(0x182)]='error',_0x17c50b;}({});function _0x5eb961(_0xfdb8dd,_0x2e7d13){return function(_0x5b2aef,_0xe5823d){_0x2e7d13(_0x5b2aef,_0xe5823d,_0xfdb8dd);};}function _0x41e1df(_0x480f67,_0x1ac099,_0x2c33dd,_0x480c2e){const _0x12d4dc=_0x264e36;var _0x221c9e=arguments[_0x12d4dc(0x1ba)],_0x1a5fda=_0x221c9e<0x3?_0x1ac099:_0x480c2e===null?_0x480c2e=Object[_0x12d4dc(0x22b)](_0x1ac099,_0x2c33dd):_0x480c2e,_0x1f72bc;if(typeof Reflect==_0x12d4dc(0x1c5)&&typeof Reflect['decorate']==_0x12d4dc(0x21c))_0x1a5fda=Reflect[_0x12d4dc(0x292)](_0x480f67,_0x1ac099,_0x2c33dd,_0x480c2e);else{for(var _0x40ba07=_0x480f67[_0x12d4dc(0x1ba)]-0x1;_0x40ba07>=0x0;_0x40ba07--)(_0x1f72bc=_0x480f67[_0x40ba07])&&(_0x1a5fda=(_0x221c9e<0x3?_0x1f72bc(_0x1a5fda):_0x221c9e>0x3?_0x1f72bc(_0x1ac099,_0x2c33dd,_0x1a5fda):_0x1f72bc(_0x1ac099,_0x2c33dd))||_0x1a5fda);}return _0x221c9e>0x3&&_0x1a5fda&&Object[_0x12d4dc(0x1ac)](_0x1ac099,_0x2c33dd,_0x1a5fda),_0x1a5fda;}let _0x567cc8=class extends _0x42b9d4[_0x264e36(0x227)]{constructor(_0x3f9330,_0xfbab3d,_0x126b97){const _0x294a3d=_0x264e36;super(),this[_0x294a3d(0x1bb)]=_0x3f9330,this[_0x294a3d(0x18e)]=_0xfbab3d,this['_hostExternalReferenceModel']=_0x126b97,_0x4b071f(this,_0x294a3d(0x1be),new Map()),_0x4b071f(this,_0x294a3d(0x1c6),new Map()),_0x4b071f(this,'_presentationChanged$',new _0x58159d['Subject']()),_0x4b071f(this,_0x294a3d(0x28a),this[_0x294a3d(0x28b)]['asObservable']()),this[_0x294a3d(0x22d)](this[_0x294a3d(0x18e)]['formulaResult$'][_0x294a3d(0x199)](_0x2cea6a=>{const _0x595005=_0x294a3d;for(let _0x989cb2 of Object['values'](_0x2cea6a))for(let _0x24e66b of Object[_0x595005(0x2ad)](_0x989cb2))_0x24e66b['forEach'](_0xdb0694=>this[_0x595005(0x1ec)](_0xdb0694));}));}['syncUnit'](_0x46f7e2){const _0x40b755=_0x264e36;var _0xce4064;let _0xf7ab64=_0x46f7e2[_0x40b755(0x1f6)](),_0x45f40c=((_0xce4064=_0x46f7e2['getSnapshot']()['body'])==null||(_0xce4064=_0xce4064[_0x40b755(0x20d)])==null?void 0x0:_0xce4064[_0x40b755(0x291)](_0x5b5048))??[],_0x4e32ea=this['_model']['getFormulas'](_0xf7ab64),_0x4657c2=new Set();for(let _0x1d072a of _0x45f40c){let _0x292ecb=_0x4e32ea[_0x1d072a[_0x40b755(0x26a)]];_0x292ecb&&(_0x4657c2[_0x40b755(0x1af)](_0x1b519a(_0xf7ab64,_0x1d072a[_0x40b755(0x26a)])),this['register']({'unitId':_0xf7ab64,'rangeId':_0x1d072a[_0x40b755(0x26a)]},_0x292ecb));}for(let _0x23031b of Array[_0x40b755(0x175)](this['_registrations'][_0x40b755(0x2ad)]()))_0x23031b[_0x40b755(0x167)]===_0xf7ab64&&!_0x4657c2[_0x40b755(0x163)](_0x1b519a(_0x23031b[_0x40b755(0x167)],_0x23031b[_0x40b755(0x26a)]))&&this['unregister'](_0x23031b);}[_0x264e36(0x215)](_0x38922b,_0x15428a){const _0x29547e=_0x264e36;let _0x209066=_0x1b519a(_0x38922b[_0x29547e(0x167)],_0x38922b[_0x29547e(0x26a)]),_0x7e5fdf=this['_registrations'][_0x29547e(0x255)](_0x209066),_0x53c958=this[_0x29547e(0x23f)]['getRevision'](_0x38922b[_0x29547e(0x167)]);if(_0x7e5fdf&&_0x7e5fdf['config']['formula']===_0x15428a[_0x29547e(0x1b7)]&&_0x7e5fdf[_0x29547e(0x241)]===_0x53c958){_0x7e5fdf['config']=_0x15428a;let _0x16060d=_0x7e5fdf[_0x29547e(0x1a7)]?this[_0x29547e(0x18e)][_0x29547e(0x21d)](_0x7e5fdf[_0x29547e(0x167)],_0x7e5fdf[_0x29547e(0x167)],_0x7e5fdf[_0x29547e(0x1a7)])??void 0x0:void 0x0;_0x7e5fdf[_0x29547e(0x28c)]=_0x16060d,this[_0x29547e(0x296)](_0x209066,_0x24def7(_0x15428a,_0x16060d));return;}_0x7e5fdf!=null&&_0x7e5fdf[_0x29547e(0x1a7)]&&this[_0x29547e(0x2a7)](_0x7e5fdf);let _0x1cf98d={..._0x38922b,'config':_0x15428a,'referenceRevision':_0x53c958,'presentation':_0x24def7(_0x15428a,void 0x0)};if(this[_0x29547e(0x1be)][_0x29547e(0x16d)](_0x209066,_0x1cf98d),!_0x15428a[_0x29547e(0x1b7)][_0x29547e(0x1f9)]())return;let _0x138eae=this[_0x29547e(0x18e)][_0x29547e(0x1da)](_0x38922b[_0x29547e(0x167)],_0x38922b['unitId'],_0x15428a[_0x29547e(0x1b7)],void 0x0,{'rangeId':_0x38922b[_0x29547e(0x26a)]},_0xf5658[_0x29547e(0x1fb)][_0x29547e(0x18b)],_0x38922b[_0x29547e(0x26a)]);_0x1cf98d[_0x29547e(0x1a7)]=_0x138eae,this[_0x29547e(0x1c6)][_0x29547e(0x16d)](_0x138eae,_0x209066);}['unregister'](_0x37e1ca){const _0x33efe5=_0x264e36;let _0x1b1724=_0x1b519a(_0x37e1ca[_0x33efe5(0x167)],_0x37e1ca[_0x33efe5(0x26a)]),_0x3df89f=this[_0x33efe5(0x1be)][_0x33efe5(0x255)](_0x1b1724);_0x3df89f&&(this[_0x33efe5(0x2a7)](_0x3df89f),this[_0x33efe5(0x1be)][_0x33efe5(0x1d5)](_0x1b1724));}[_0x264e36(0x230)](_0x34fcc2){const _0x42f60b=_0x264e36;for(let _0x248da6 of Array['from'](this[_0x42f60b(0x1be)][_0x42f60b(0x2ad)]()))_0x248da6[_0x42f60b(0x167)]===_0x34fcc2&&this['unregister'](_0x248da6);}[_0x264e36(0x170)](_0x2950b6){const _0x126660=_0x264e36;var _0x1666c2;return(_0x1666c2=this[_0x126660(0x1be)][_0x126660(0x255)](_0x1b519a(_0x2950b6[_0x126660(0x167)],_0x2950b6[_0x126660(0x26a)])))==null?void 0x0:_0x1666c2[_0x126660(0x2ae)];}[_0x264e36(0x25d)](_0x3d9e2d){const _0x399e05=_0x264e36;let _0x33ddbe=this[_0x399e05(0x1be)][_0x399e05(0x255)](_0x1b519a(_0x3d9e2d[_0x399e05(0x167)],_0x3d9e2d[_0x399e05(0x26a)]));return _0x33ddbe?_0x358e13(_0x33ddbe):void 0x0;}[_0x264e36(0x195)](){const _0x470c8a=_0x264e36;return Array[_0x470c8a(0x175)](this[_0x470c8a(0x1be)][_0x470c8a(0x2ad)](),_0x3e77c5=>({'identity':{'unitId':_0x3e77c5[_0x470c8a(0x167)],'rangeId':_0x3e77c5[_0x470c8a(0x26a)]},'config':_0x3e77c5['config'],'referenceRevision':_0x3e77c5[_0x470c8a(0x241)],..._0x3e77c5[_0x470c8a(0x28c)]?{'liveResult':_0x3e77c5[_0x470c8a(0x28c)]}:null}));}[_0x264e36(0x1c7)](){const _0x79e3e8=_0x264e36;for(let _0x3e2d76 of this[_0x79e3e8(0x1be)][_0x79e3e8(0x2ad)]())this[_0x79e3e8(0x2a7)](_0x3e2d76);this[_0x79e3e8(0x1be)][_0x79e3e8(0x248)](),this[_0x79e3e8(0x1c6)]['clear'](),this[_0x79e3e8(0x28b)][_0x79e3e8(0x19d)](),super[_0x79e3e8(0x1c7)]();}[_0x264e36(0x1ec)](_0x2fcfce){const _0x1e44c3=_0x264e36;let _0x155b60=this[_0x1e44c3(0x1c6)][_0x1e44c3(0x255)](_0x2fcfce[_0x1e44c3(0x1a7)]),_0x2bdfc6=_0x155b60?this['_registrations'][_0x1e44c3(0x255)](_0x155b60):void 0x0;_0x155b60&&_0x2bdfc6&&(_0x2bdfc6[_0x1e44c3(0x28c)]=_0x2fcfce,this[_0x1e44c3(0x296)](_0x155b60,_0x24def7(_0x2bdfc6[_0x1e44c3(0x2a5)],_0x2fcfce)));}[_0x264e36(0x296)](_0x551bea,_0xb7e8e0){const _0x11bde2=_0x264e36;var _0x1d7534,_0x7ef66f;let _0x3cfe19=this['_registrations'][_0x11bde2(0x255)](_0x551bea);if(!_0x3cfe19||_0xec306a(_0x3cfe19[_0x11bde2(0x2ae)],_0xb7e8e0))return;let _0x37ea81=_0x3cfe19[_0x11bde2(0x2ae)],_0x58d106=_0x358e13(_0x3cfe19);_0x3cfe19['presentation']=_0xb7e8e0,this[_0x11bde2(0x28b)][_0x11bde2(0x1de)]({'unitId':_0x3cfe19['unitId'],'rangeId':_0x3cfe19[_0x11bde2(0x26a)],'presentation':_0xb7e8e0,'previousPresentation':_0x37ea81,'result':_0x358e13(_0x3cfe19),'previousResult':{..._0x58d106,..._0x37ea81,'value':(_0x1d7534=_0x37ea81[_0x11bde2(0x216)])==null?void 0x0:_0x1d7534['v'],'valueType':((_0x7ef66f=_0x37ea81[_0x11bde2(0x216)])==null?void 0x0:_0x7ef66f['t'])??void 0x0}});}[_0x264e36(0x2a7)](_0x1bc23c){const _0x410fe8=_0x264e36;_0x1bc23c[_0x410fe8(0x1a7)]&&(this[_0x410fe8(0x18e)][_0x410fe8(0x27c)](_0x1bc23c[_0x410fe8(0x167)],_0x1bc23c[_0x410fe8(0x167)],[_0x1bc23c['formulaId']]),this[_0x410fe8(0x1c6)][_0x410fe8(0x1d5)](_0x1bc23c[_0x410fe8(0x1a7)]));}};_0x567cc8=_0x41e1df([_0x5eb961(0x0,(0x0,_0x42b9d4[_0x264e36(0x262)])(_0x136dfa)),_0x5eb961(0x1,(0x0,_0x42b9d4['Inject'])(_0xf5658[_0x264e36(0x27a)])),_0x5eb961(0x2,(0x0,_0x42b9d4[_0x264e36(0x262)])(_0x138dd0[_0x264e36(0x251)]))],_0x567cc8);function _0x1b519a(_0x2bafda,_0xe1e043){return _0x2bafda+'\x00'+_0xe1e043;}function _0x24def7(_0x3f98bd,_0x2f5cc1){const _0x1b0704=_0x264e36;return(0x0,_0x138dd0['resolveFormulaResultPresentation'])({'numberFormat':_0x3f98bd[_0x1b0704(0x1f8)],'lastValue':_0x3f98bd[_0x1b0704(0x1bf)],'result':_0x2f5cc1});}function _0x358e13(_0x2890c7){const _0x3a9174=_0x264e36;var _0x524349,_0x3d1e84,_0xcf4db5;let _0x10c71f=_0x2890c7[_0x3a9174(0x2ae)],_0x42e9f2=_0x2890c7[_0x3a9174(0x2a5)]['formula'][_0x3a9174(0x1f9)]()?_0x10c71f[_0x3a9174(0x274)]||_0x10c71f[_0x3a9174(0x216)]==null?_0x3a9174(0x276):((_0x524349=_0x2890c7[_0x3a9174(0x28c)])==null?void 0x0:_0x524349[_0x3a9174(0x1e5)])===_0xf5658[_0x3a9174(0x229)][_0x3a9174(0x182)]?_0x3a9174(0x233):_0x3a9174(0x209):_0x3a9174(0x249);return{..._0x10c71f,'status':_0x42e9f2,'value':(_0x3d1e84=_0x10c71f['cell'])==null?void 0x0:_0x3d1e84['v'],'valueType':((_0xcf4db5=_0x10c71f[_0x3a9174(0x216)])==null?void 0x0:_0xcf4db5['t'])??void 0x0};}function _0xec306a(_0x164e46,_0x18c7e4){const _0x13760f=_0x264e36;var _0x5c6eec,_0x20a784,_0x5d4b53,_0x188a22;return _0x164e46[_0x13760f(0x198)]===_0x18c7e4[_0x13760f(0x198)]&&_0x164e46[_0x13760f(0x287)]===_0x18c7e4[_0x13760f(0x287)]&&_0x164e46[_0x13760f(0x16a)]===_0x18c7e4[_0x13760f(0x16a)]&&_0x164e46['source']===_0x18c7e4[_0x13760f(0x1a5)]&&_0x164e46[_0x13760f(0x274)]===_0x18c7e4[_0x13760f(0x274)]&&((_0x5c6eec=_0x164e46['cell'])==null?void 0x0:_0x5c6eec['t'])===((_0x20a784=_0x18c7e4[_0x13760f(0x216)])==null?void 0x0:_0x20a784['t'])&&Object['is']((_0x5d4b53=_0x164e46[_0x13760f(0x216)])==null?void 0x0:_0x5d4b53['v'],(_0x188a22=_0x18c7e4[_0x13760f(0x216)])==null?void 0x0:_0x188a22['v']);}let _0x5e5b67={'id':'docs-formula.mutation.set-formula','type':_0x42b9d4[_0x264e36(0x269)][_0x264e36(0x1e3)],'handler':(_0x4045f5,_0x467e48)=>!(_0x467e48!=null&&_0x467e48['unitId'])||!_0x467e48[_0x264e36(0x26a)]||!_0x467e48[_0x264e36(0x2a5)]?!0x1:_0x4045f5['get'](_0x136dfa)[_0x264e36(0x1f0)](_0x467e48[_0x264e36(0x167)],_0x467e48[_0x264e36(0x26a)],_0x467e48[_0x264e36(0x2a5)])},_0x2be4a6={'id':_0x264e36(0x271),'type':_0x42b9d4[_0x264e36(0x269)]['MUTATION'],'handler':(_0x2ddcb1,_0x2170e1)=>!(_0x2170e1!=null&&_0x2170e1['unitId'])||!_0x2170e1[_0x264e36(0x26a)]?!0x1:_0x2ddcb1[_0x264e36(0x255)](_0x136dfa)[_0x264e36(0x26d)](_0x2170e1['unitId'],_0x2170e1[_0x264e36(0x26a)])},_0x5679e0={'id':'docs-formula.mutation.set-resource','type':_0x42b9d4[_0x264e36(0x269)][_0x264e36(0x1e3)],'handler':(_0x3df503,_0x3606fe)=>!(_0x3606fe!=null&&_0x3606fe[_0x264e36(0x167)])||!_0x3606fe[_0x264e36(0x19c)]?!0x1:_0x3df503[_0x264e36(0x255)](_0x136dfa)[_0x264e36(0x28e)](_0x3606fe[_0x264e36(0x167)],_0x3606fe[_0x264e36(0x19c)])},_0x567c0f={'id':_0x264e36(0x213),'type':_0x42b9d4[_0x264e36(0x269)][_0x264e36(0x1e3)],'handler':(_0x44c2fd,_0x1eb407)=>{const _0x2d11a3=_0x264e36;if(!(_0x1eb407!=null&&_0x1eb407[_0x2d11a3(0x167)])||!_0x1eb407[_0x2d11a3(0x1e4)]['length'])return!0x1;let _0x6e9599=_0x44c2fd['get'](_0x136dfa),_0x206253=_0x44c2fd[_0x2d11a3(0x255)](_0x138dd0[_0x2d11a3(0x251)]),_0x50cf4d=_0x6e9599[_0x2d11a3(0x1fa)](_0x1eb407['unitId']);if(!_0x50cf4d)return!0x1;let _0x4a813c=_0x42b9d4[_0x2d11a3(0x181)]['deepClone'](_0x50cf4d),_0x5e24f5=!0x1;for(let _0x16f549 of _0x1eb407[_0x2d11a3(0x1e4)]){var _0x50db15,_0x5548f2,_0x3b05db,_0x3c80c6;let _0x256e8c=_0x4a813c[_0x2d11a3(0x23a)][_0x16f549['rangeId']];_0x256e8c&&_0x256e8c[_0x2d11a3(0x1b7)]===_0x16f549[_0x2d11a3(0x268)]&&((_0x50db15=_0x256e8c['numberFormat'])==null?void 0x0:_0x50db15[_0x2d11a3(0x16a)])===_0x16f549[_0x2d11a3(0x1d2)]&&_0x206253[_0x2d11a3(0x1ca)](_0x1eb407[_0x2d11a3(0x167)])===_0x16f549[_0x2d11a3(0x294)]&&(((_0x5548f2=_0x256e8c[_0x2d11a3(0x1bf)])==null?void 0x0:_0x5548f2['v'])!==_0x16f549[_0x2d11a3(0x1bf)]['v']||((_0x3b05db=_0x256e8c['lastValue'])==null?void 0x0:_0x3b05db['t'])!==_0x16f549['lastValue']['t']||((_0x3c80c6=_0x256e8c[_0x2d11a3(0x1bf)])==null?void 0x0:_0x3c80c6['pattern'])!==_0x16f549['lastValue'][_0x2d11a3(0x16a)])&&(_0x256e8c[_0x2d11a3(0x1bf)]=_0x42b9d4[_0x2d11a3(0x181)][_0x2d11a3(0x244)](_0x16f549[_0x2d11a3(0x1bf)]),_0x5e24f5=!0x0);}return!_0x5e24f5||_0x6e9599[_0x2d11a3(0x28e)](_0x1eb407[_0x2d11a3(0x167)],_0x4a813c);}},_0x2b011d={'id':_0x264e36(0x1fe),'type':_0x42b9d4[_0x264e36(0x269)][_0x264e36(0x270)],'handler':(_0x5cf474,_0xf43145)=>{const _0x23067b=_0x264e36;if(!(_0xf43145!=null&&_0xf43145[_0x23067b(0x1b7)][_0x23067b(0x1f9)]()))return!0x1;let _0x3f8f0a=_0x12ccf3(_0x5cf474,_0xf43145['unitId'],'');if(!_0x3f8f0a)return!0x1;let _0xff3c8d=_0xf4e5e3(_0xf43145[_0x23067b(0x201)],_0x3f8f0a[_0x23067b(0x1ff)],_0x213401(_0x5cf474,_0x3f8f0a['unitId']));if(!_0xff3c8d)return!0x1;let _0x542c15=_0x99c336(_0x5cf474,_0x3f8f0a['unitId'],_0xf43145[_0x23067b(0x1b7)],_0xf43145[_0x23067b(0x188)]??[]);if(!_0x542c15)return!0x1;let _0x2fe28e=_0x960360(_0x3f8f0a['body'],_0x3f8f0a[_0x23067b(0x16f)],_0x3f8f0a['unitId']),_0x500e93=_0xc6a83d({'documentData':_0x3f8f0a[_0x23067b(0x1a1)],'resource':_0x3f8f0a['resource'],'rangeId':_0x2fe28e,'config':{'formula':_0xf43145[_0x23067b(0x1b7)],..._0xf43145['numberFormat']?{'numberFormat':_0xf43145[_0x23067b(0x1f8)]}:null},'startOffset':_0xff3c8d[_0x23067b(0x27e)],'endOffset':_0xff3c8d[_0x23067b(0x164)]});if(!_0x500e93)return!0x1;let _0x49df81=(0x0,_0x138dd0[_0x23067b(0x19b)])(_0x5cf474,_0x3f8f0a['unitId'],_0x542c15);return!_0x49df81||!_0x450e35({'accessor':_0x5cf474,'document':_0x3f8f0a[_0x23067b(0x1b3)],'unitId':_0x3f8f0a[_0x23067b(0x167)],'trigger':_0x2b011d['id'],'rangeId':_0x2fe28e,'previousResource':_0x3f8f0a[_0x23067b(0x19c)],'nextResource':_0x500e93[_0x23067b(0x252)],'previousDocumentData':_0x3f8f0a[_0x23067b(0x1a1)],'nextDocumentData':_0x500e93[_0x23067b(0x202)],'cursorOffset':_0x500e93[_0x23067b(0x289)],'externalMutations':_0x49df81})?!0x1:{'rangeId':_0x2fe28e,'startOffset':_0x500e93[_0x23067b(0x289)]-0x1,'endOffset':_0x500e93[_0x23067b(0x289)]};}},_0x45e8cd={'id':_0x264e36(0x24b),'type':_0x42b9d4['CommandType'][_0x264e36(0x270)],'handler':(_0x543a46,_0x1a5973)=>{const _0x49f1cb=_0x264e36;if(!(_0x1a5973!=null&&_0x1a5973['rangeId'])||!_0x1a5973[_0x49f1cb(0x1b7)]['trim']())return!0x1;let _0x3060eb=_0x12ccf3(_0x543a46,_0x1a5973[_0x49f1cb(0x167)],''),_0x3dc5c5=_0x3060eb==null?void 0x0:_0x3060eb['model']['getFormula'](_0x3060eb[_0x49f1cb(0x167)],_0x1a5973['rangeId']),_0x5e926e=_0x3060eb?_0xe4a3ff(_0x3060eb[_0x49f1cb(0x1a1)][_0x49f1cb(0x1ff)],_0x1a5973[_0x49f1cb(0x26a)]):void 0x0;if(!_0x3060eb||!_0x3dc5c5||!_0x5e926e)return!0x1;let _0x5cbdd8=_0x99c336(_0x543a46,_0x3060eb['unitId'],_0x1a5973[_0x49f1cb(0x1b7)],_0x1a5973[_0x49f1cb(0x188)]??[]);if(!_0x5cbdd8)return!0x1;let _0x135f50=(0x0,_0x138dd0[_0x49f1cb(0x19b)])(_0x543a46,_0x3060eb['unitId'],_0x5cbdd8);if(!_0x135f50)return!0x1;let _0xc228de=_0x5e35b0(_0x3060eb[_0x49f1cb(0x19c)]);return _0xc228de[_0x49f1cb(0x23a)][_0x1a5973['rangeId']]={'formula':_0x1a5973['formula'],..._0x1a5973[_0x49f1cb(0x1f8)]?{'numberFormat':_0x1a5973[_0x49f1cb(0x1f8)]}:_0x3dc5c5[_0x49f1cb(0x1f8)]?{'numberFormat':_0x3dc5c5[_0x49f1cb(0x1f8)]}:null},_0x450e35({'accessor':_0x543a46,'document':_0x3060eb['document'],'unitId':_0x3060eb[_0x49f1cb(0x167)],'trigger':_0x45e8cd['id'],'rangeId':_0x1a5973[_0x49f1cb(0x26a)],'previousResource':_0x3060eb[_0x49f1cb(0x19c)],'nextResource':_0xc228de,'cursorOffset':_0x5e926e[_0x49f1cb(0x16c)]+0x1,'externalMutations':_0x135f50});}},_0x3be6e3={'id':_0x264e36(0x226),'type':_0x42b9d4[_0x264e36(0x269)][_0x264e36(0x270)],'handler':(_0x20b156,_0xe6591f)=>{const _0x239854=_0x264e36;if(!(_0xe6591f!=null&&_0xe6591f[_0x239854(0x26a)]))return!0x1;let _0x2b4bbb=_0x12ccf3(_0x20b156,_0xe6591f['unitId'],''),_0x16badc=_0x2b4bbb==null?void 0x0:_0x2b4bbb[_0x239854(0x16f)][_0x239854(0x221)](_0x2b4bbb[_0x239854(0x167)],_0xe6591f[_0x239854(0x26a)]),_0x22acb8=_0x2b4bbb?_0xe4a3ff(_0x2b4bbb[_0x239854(0x1a1)][_0x239854(0x1ff)],_0xe6591f[_0x239854(0x26a)]):void 0x0;if(!_0x2b4bbb||!_0x16badc||!_0x22acb8)return!0x1;let _0x2b29b5=_0x5e35b0(_0x2b4bbb[_0x239854(0x19c)]);return _0x2b29b5[_0x239854(0x23a)][_0xe6591f[_0x239854(0x26a)]]={..._0x16badc,..._0xe6591f[_0x239854(0x1f8)]?{'numberFormat':_0xe6591f['numberFormat']}:null},_0xe6591f['numberFormat']||delete _0x2b29b5['formulas'][_0xe6591f['rangeId']]['numberFormat'],_0x450e35({'accessor':_0x20b156,'document':_0x2b4bbb['document'],'unitId':_0x2b4bbb[_0x239854(0x167)],'trigger':_0x3be6e3['id'],'rangeId':_0xe6591f['rangeId'],'previousResource':_0x2b4bbb[_0x239854(0x19c)],'nextResource':_0x2b29b5,'cursorOffset':_0x22acb8['endIndex']+0x1,'externalMutations':{}});}},_0x5e7d40={'id':_0x264e36(0x1df),'type':_0x42b9d4['CommandType'][_0x264e36(0x270)],'handler':(_0x142db7,_0x463a3e)=>_0x30e85a(_0x142db7,_0x463a3e,'',_0x5e7d40['id'])},_0x3eab2d={'id':'docs-formula.command.replace-with-text','type':_0x42b9d4[_0x264e36(0x269)][_0x264e36(0x270)],'handler':(_0x4311bf,_0x2dddac)=>_0x30e85a(_0x4311bf,_0x2dddac,(_0x2dddac==null?void 0x0:_0x2dddac[_0x264e36(0x198)])??'',_0x3eab2d['id'])},_0xbd03ae={'id':_0x264e36(0x200),'type':_0x42b9d4['CommandType']['COMMAND'],'handler':(_0x1c0833,_0x174159)=>{const _0x3088a0=_0x264e36;if(!(_0x174159!=null&&_0x174159['rangeId']))return!0x1;let _0x28074b=_0x12ccf3(_0x1c0833,_0x174159['unitId'],'');if(!_0x28074b)return!0x1;let _0x4ce9d0=_0x1c0833[_0x3088a0(0x255)](_0x567cc8)[_0x3088a0(0x25d)]({'unitId':_0x28074b[_0x3088a0(0x167)],'rangeId':_0x174159[_0x3088a0(0x26a)]});return _0x4ce9d0?_0x30e85a(_0x1c0833,_0x174159,_0x4ce9d0[_0x3088a0(0x198)],_0xbd03ae['id']):!0x1;}};function _0x30e85a(_0x16d3a3,_0x2af40b,_0x3ddf0c,_0x3707dc){const _0x4e6445=_0x264e36;if(!(_0x2af40b!=null&&_0x2af40b[_0x4e6445(0x26a)]))return!0x1;let _0x5ecd40=_0x12ccf3(_0x16d3a3,_0x2af40b[_0x4e6445(0x167)],'');if(!_0x5ecd40)return!0x1;let _0x130458=_0x3e159c({'documentData':_0x5ecd40[_0x4e6445(0x1a1)],'resource':_0x5ecd40[_0x4e6445(0x19c)],'rangeId':_0x2af40b[_0x4e6445(0x26a)],'text':_0x3ddf0c});return _0x130458?_0x450e35({'accessor':_0x16d3a3,'document':_0x5ecd40[_0x4e6445(0x1b3)],'unitId':_0x5ecd40[_0x4e6445(0x167)],'trigger':_0x3707dc,'rangeId':_0x2af40b[_0x4e6445(0x26a)],'previousResource':_0x5ecd40[_0x4e6445(0x19c)],'nextResource':_0x130458[_0x4e6445(0x252)],'previousDocumentData':_0x5ecd40[_0x4e6445(0x1a1)],'nextDocumentData':_0x130458[_0x4e6445(0x202)],'cursorOffset':_0x130458[_0x4e6445(0x289)],'externalMutations':{}}):!0x1;}function _0x12ccf3(_0x39a70c,_0x3a5f6f,_0x27a09c){const _0x4835d2=_0x264e36;if(_0x27a09c)return null;let _0x1be8a2=_0x39a70c[_0x4835d2(0x255)](_0x42b9d4[_0x4835d2(0x171)]),_0xd0c102=(_0x3a5f6f?_0x1be8a2[_0x4835d2(0x1b9)](_0x3a5f6f,_0x42b9d4['UniverInstanceType']['UNIVER_DOC']):_0x1be8a2[_0x4835d2(0x259)](_0x42b9d4['UniverInstanceType']['UNIVER_DOC']))??null;if(!_0xd0c102)return null;let _0x3ad364=_0xd0c102['getSnapshot'](),_0xcabb28=_0x3ad364['body'];if(_0x3ad364['disabled']||!_0xcabb28)return null;let _0xe8f9fb=_0x39a70c[_0x4835d2(0x255)](_0x136dfa);return _0xe8f9fb[_0x4835d2(0x194)](_0xd0c102[_0x4835d2(0x1f6)]())?null:{'document':_0xd0c102,'body':_0xcabb28,'documentData':_0x3ad364,'model':_0xe8f9fb,'resource':_0xe8f9fb[_0x4835d2(0x1fa)](_0xd0c102[_0x4835d2(0x1f6)]())??_0x5c7567(),'unitId':_0xd0c102[_0x4835d2(0x1f6)]()};}function _0x213401(_0x43bfc1,_0x556eac){const _0x395c3d=_0x264e36;var _0x124e63;return(_0x124e63=_0x43bfc1[_0x395c3d(0x255)](_0x554914['DocSelectionManagerService'])[_0x395c3d(0x1e8)]({'subUnitId':_0x556eac,'unitId':_0x556eac}))==null?void 0x0:_0x124e63[0x0];}function _0xf4e5e3(_0x39a7d4,_0x2941d6,_0x1960fd){const _0x4a1f28=_0x264e36;if((_0x39a7d4==null?void 0x0:_0x39a7d4[_0x4a1f28(0x1f4)])===_0x4a1f28(0x282)){var _0x50b5ce;let _0x523ea9=((_0x50b5ce=_0x2941d6['paragraphs'])==null?void 0x0:_0x50b5ce[_0x4a1f28(0x291)](_0x3b12ec=>_0x3b12ec[_0x4a1f28(0x1bc)]===_0x39a7d4[_0x4a1f28(0x1bc)]))??[];if(_0x523ea9[_0x4a1f28(0x1ba)]!==0x1)return null;let _0x3a7ba6=_0x523ea9[0x0],_0x18fd34=(0x0,_0x42b9d4['getParagraphContentStartOffset'])(_0x2941d6,_0x3a7ba6),_0x5ce757=_0x3a7ba6[_0x4a1f28(0x185)]-_0x18fd34,_0x1115ff=_0x39a7d4[_0x4a1f28(0x1b5)]===_0x4a1f28(0x277)?_0x5ce757:_0x39a7d4[_0x4a1f28(0x1b5)];if(!Number['isInteger'](_0x1115ff)||_0x1115ff<0x0||_0x1115ff>_0x5ce757)return null;let _0x47fccf=_0x18fd34+_0x1115ff;return{'startOffset':_0x47fccf,'endOffset':_0x47fccf};}if((_0x39a7d4==null?void 0x0:_0x39a7d4[_0x4a1f28(0x1f4)])===_0x4a1f28(0x234))return!Number[_0x4a1f28(0x1c4)](_0x39a7d4['startOffset'])||!Number['isInteger'](_0x39a7d4[_0x4a1f28(0x164)])?null:{'startOffset':Math[_0x4a1f28(0x220)](_0x39a7d4[_0x4a1f28(0x27e)],_0x39a7d4[_0x4a1f28(0x164)]),'endOffset':Math['max'](_0x39a7d4[_0x4a1f28(0x27e)],_0x39a7d4[_0x4a1f28(0x164)])};let _0x55b6e5=(_0x39a7d4==null?void 0x0:_0x39a7d4[_0x4a1f28(0x1f4)])===_0x4a1f28(0x247)?_0x39a7d4['selection']:_0x1960fd;return!_0x55b6e5||_0x55b6e5[_0x4a1f28(0x217)]?null:{'startOffset':Math[_0x4a1f28(0x220)](_0x55b6e5['startOffset'],_0x55b6e5['endOffset']),'endOffset':Math[_0x4a1f28(0x190)](_0x55b6e5[_0x4a1f28(0x27e)],_0x55b6e5[_0x4a1f28(0x164)])};}function _0x99c336(_0x295e0b,_0xab0c60,_0x45b9c0,_0x11e816){const _0x4ff79b=_0x264e36;let _0x41385e=_0x295e0b['get'](_0xf5658[_0x4ff79b(0x235)]),_0x158a9c=_0x45b9c0[_0x4ff79b(0x1b0)]('=')?_0x45b9c0[_0x4ff79b(0x20a)](0x1):_0x45b9c0,_0x1ebcd3=_0x41385e[_0x4ff79b(0x17b)](_0x158a9c);if(!_0x1ebcd3)return null;let _0x3bcc37=_0x295e0b[_0x4ff79b(0x255)](_0x138dd0[_0x4ff79b(0x251)]),_0x4cc8e1=(0x0,_0x138dd0[_0x4ff79b(0x242)])({'qualifiers':(0x0,_0x138dd0[_0x4ff79b(0x1a3)])(_0x1ebcd3),'explicitReferences':_0x11e816??[],'resolveBinding':_0x34a815=>_0x3bcc37[_0x4ff79b(0x224)](_0xab0c60,_0x34a815)});return _0x4cc8e1[_0x4ff79b(0x1e5)]===_0x4ff79b(0x25a)?_0x4cc8e1[_0x4ff79b(0x172)]:null;}function _0x960360(_0x5dbbba,_0x2cea21,_0x3aa57e){const _0x13bc14=_0x264e36;var _0x22b884;let _0x257926=(0x0,_0x42b9d4[_0x13bc14(0x297)])(0x6);for(;_0x5dbbba!=null&&(_0x22b884=_0x5dbbba[_0x13bc14(0x20d)])!=null&&_0x22b884['some'](_0x3e62d0=>_0x3e62d0[_0x13bc14(0x26a)]===_0x257926)||_0x2cea21['getFormula'](_0x3aa57e,_0x257926);)_0x257926=(0x0,_0x42b9d4[_0x13bc14(0x297)])(0x6);return _0x257926;}function _0xc6a83d(_0x34c64e){try{return _0x59ec7a(_0x34c64e);}catch(_0x490a10){if(_0x490a10 instanceof _0x2d09c5)return null;throw _0x490a10;}}function _0x5ba6f3(_0x138954){const _0x889fad=_0x264e36;let _0x6be9ea=_0x138954[_0x889fad(0x1d8)]&&_0x138954[_0x889fad(0x202)]?_0x137527(_0x138954[_0x889fad(0x1b3)],_0x138954[_0x889fad(0x167)],_0x138954[_0x889fad(0x1d8)],_0x138954[_0x889fad(0x202)],_0x138954[_0x889fad(0x289)],_0x138954[_0x889fad(0x207)]):null;return _0x138954['previousDocumentData']&&_0x138954[_0x889fad(0x202)]&&!_0x6be9ea?null:{'documentRedo':_0x6be9ea,'resourceRedo':{'id':_0x5679e0['id'],'params':{'unitId':_0x138954[_0x889fad(0x167)],'resource':_0x138954[_0x889fad(0x252)]}},'resourceUndo':{'id':_0x5679e0['id'],'params':{'unitId':_0x138954['unitId'],'resource':_0x138954['previousResource']}}};}function _0x4620ce(_0x419200,_0x264d48,_0x281c28,_0x5956f5){const _0x1b8678=_0x264e36;_0x5956f5[_0x1b8678(0x179)]({'id':_0x419200['trigger']+':'+_0x419200[_0x1b8678(0x26a)],'unitID':_0x419200[_0x1b8678(0x167)],'redoMutations':[..._0x419200['externalMutations'][_0x1b8678(0x21f)]?[_0x419200['externalMutations']['redoMutation']]:[],..._0x264d48[_0x1b8678(0x267)]?[_0x264d48[_0x1b8678(0x267)]]:[],_0x264d48[_0x1b8678(0x1ae)]],'undoMutations':[_0x264d48[_0x1b8678(0x1ea)],..._0x281c28?[_0x281c28]:[],..._0x419200[_0x1b8678(0x203)][_0x1b8678(0x19e)]?[_0x419200[_0x1b8678(0x203)]['undoMutation']]:[]]});}function _0x450e35(_0x5cd0cc){const _0x3bd2a8=_0x264e36;let _0x2f682f=_0x5cd0cc['accessor']['get'](_0x42b9d4[_0x3bd2a8(0x1d6)]),_0x3290c2=_0x5cd0cc['accessor'][_0x3bd2a8(0x255)](_0x42b9d4[_0x3bd2a8(0x256)]),_0x450af4=_0x5cd0cc[_0x3bd2a8(0x1cb)][_0x3bd2a8(0x255)](_0x554914['DocSelectionManagerService']),_0x31c56e=_0x5ba6f3(_0x5cd0cc);if(!_0x31c56e)return!0x1;let _0x42286d=!0x1,_0x5a6d66=null,_0x8f45d9=!0x1;try{if(_0x5cd0cc['externalMutations'][_0x3bd2a8(0x21f)]){if(!_0x2f682f[_0x3bd2a8(0x1c9)](_0x5cd0cc[_0x3bd2a8(0x203)][_0x3bd2a8(0x21f)]['id'],_0x5cd0cc[_0x3bd2a8(0x203)][_0x3bd2a8(0x21f)][_0x3bd2a8(0x1e1)]))return!0x1;_0x42286d=!0x0;}if(_0x31c56e[_0x3bd2a8(0x267)]){let _0x20bb30=_0x2f682f[_0x3bd2a8(0x1c9)](_0x31c56e[_0x3bd2a8(0x267)]['id'],_0x31c56e[_0x3bd2a8(0x267)][_0x3bd2a8(0x1e1)]);if(!_0x20bb30)return _0x158e9d(_0x2f682f,_0x5cd0cc[_0x3bd2a8(0x203)],_0x42286d),!0x1;_0x5a6d66={'id':_0x554914['RichTextEditingMutation']['id'],'params':{..._0x20bb30,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x2f682f[_0x3bd2a8(0x1c9)](_0x31c56e[_0x3bd2a8(0x1ae)]['id'],_0x31c56e['resourceRedo'][_0x3bd2a8(0x1e1)]))return _0x2ef745(_0x2f682f,_0x5a6d66),_0x158e9d(_0x2f682f,_0x5cd0cc[_0x3bd2a8(0x203)],_0x42286d),!0x1;_0x8f45d9=!0x0,_0x4620ce(_0x5cd0cc,_0x31c56e,_0x5a6d66,_0x3290c2);}catch(_0x31eff8){throw _0x8f45d9&&_0x2f682f[_0x3bd2a8(0x1c9)](_0x31c56e['resourceUndo']['id'],_0x31c56e[_0x3bd2a8(0x1ea)][_0x3bd2a8(0x1e1)]),_0x2ef745(_0x2f682f,_0x5a6d66),_0x158e9d(_0x2f682f,_0x5cd0cc[_0x3bd2a8(0x203)],_0x42286d),_0x31eff8;}return _0x450af4[_0x3bd2a8(0x26c)]([{'startOffset':_0x5cd0cc['cursorOffset'],'endOffset':_0x5cd0cc[_0x3bd2a8(0x289)],'segmentId':''}],{'unitId':_0x5cd0cc[_0x3bd2a8(0x167)],'subUnitId':_0x5cd0cc[_0x3bd2a8(0x167)]},!0x1,{[_0x554914[_0x3bd2a8(0x18c)]]:!0x0}),!0x0;}function _0x137527(_0x30bce7,_0x3cf75e,_0x466242,_0x11a1c4,_0x870b3d,_0x526b5e){const _0x161f9a=_0x264e36;let _0x2198d4=_0x11ea03(_0x466242,_0x11a1c4,(0x0,_0x42b9d4[_0x161f9a(0x27d)])(_0x30bce7,''));return _0x2198d4?{'id':_0x554914[_0x161f9a(0x196)]['id'],'params':{'unitId':_0x3cf75e,'actions':_0x2198d4,'segmentId':'','textRanges':[{'startOffset':_0x870b3d,'endOffset':_0x870b3d,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x526b5e}}:null;}function _0x2ef745(_0x501858,_0x34bb37){const _0x160397=_0x264e36;_0x34bb37&&_0x501858[_0x160397(0x1c9)](_0x34bb37['id'],_0x34bb37[_0x160397(0x1e1)]);}function _0x158e9d(_0x4d0bde,_0x292dcd,_0x219170){const _0x5ebe10=_0x264e36;_0x219170&&_0x292dcd[_0x5ebe10(0x19e)]&&_0x4d0bde[_0x5ebe10(0x1c9)](_0x292dcd[_0x5ebe10(0x19e)]['id'],_0x292dcd[_0x5ebe10(0x19e)][_0x5ebe10(0x1e1)]);}function _0x11ea03(_0x1ee3ab,_0x3c88f9,_0xb585eb){const _0x502a5d=_0x264e36;let _0x23c6c7=_0x1ee3ab[_0x502a5d(0x1ff)],_0x243479=_0x3c88f9[_0x502a5d(0x1ff)],_0x51bb64=_0x2474ce(_0x23c6c7==null?void 0x0:_0x23c6c7[_0x502a5d(0x17d)],_0x243479==null?void 0x0:_0x243479[_0x502a5d(0x17d)]);if(!_0x51bb64||!_0x243479)return null;let _0x421a5b=new _0x42b9d4[(_0x502a5d(0x1c0))]();return _0x421a5b[_0x502a5d(0x273)](_0x51bb64[_0x502a5d(0x29b)]),_0x51bb64[_0x502a5d(0x26f)]>0x0&&_0x421a5b[_0x502a5d(0x29d)](_0x51bb64[_0x502a5d(0x26f)],(0x0,_0x42b9d4['getBodySliceForTextXAction'])(_0x243479,_0x51bb64['start'],_0x51bb64[_0x502a5d(0x29b)]+_0x51bb64['insertLength'],!0x1)),_0x51bb64[_0x502a5d(0x1d3)]>0x0&&_0x421a5b[_0x502a5d(0x1d5)](_0x51bb64[_0x502a5d(0x1d3)]),_0x42b9d4['JSONX'][_0x502a5d(0x1f2)]()[_0x502a5d(0x1e9)](_0x421a5b['serialize'](),_0xb585eb);}function _0x2474ce(_0x264e43,_0x14e747){const _0x24315b=_0x264e36;if(_0x264e43==null||_0x14e747==null||_0x264e43===_0x14e747)return null;let _0x548a93=0x0;for(;_0x548a93<_0x264e43[_0x24315b(0x1ba)]&&_0x548a93<_0x14e747[_0x24315b(0x1ba)]&&_0x264e43[_0x548a93]===_0x14e747[_0x548a93];)_0x548a93+=0x1;let _0x3b4791=_0x264e43[_0x24315b(0x1ba)],_0x5732d3=_0x14e747[_0x24315b(0x1ba)];for(;_0x3b4791>_0x548a93&&_0x5732d3>_0x548a93&&_0x264e43[_0x3b4791-0x1]===_0x14e747[_0x5732d3-0x1];)--_0x3b4791,--_0x5732d3;return{'start':_0x548a93,'deleteLength':_0x3b4791-_0x548a93,'insertLength':_0x5732d3-_0x548a93};}function _0x5e35b0(_0x144367){const _0x10bb17=_0x264e36;return{'schemaVersion':0x1,'formulas':Object[_0x10bb17(0x258)](Object[_0x10bb17(0x266)](_0x144367[_0x10bb17(0x23a)])[_0x10bb17(0x25f)](([_0x361f49,_0x231f5f])=>[_0x361f49,{..._0x231f5f,..._0x231f5f[_0x10bb17(0x1f8)]?{'numberFormat':{..._0x231f5f[_0x10bb17(0x1f8)]}}:null,..._0x231f5f[_0x10bb17(0x1bf)]?{'lastValue':{..._0x231f5f[_0x10bb17(0x1bf)]}}:null}]))};}let _0x98202=class extends _0x42b9d4[_0x264e36(0x227)]{constructor(_0x579b63,_0x192c54,_0xf96bee,_0x2e3320){const _0x477380=_0x264e36;super(),this[_0x477380(0x260)]=_0x579b63,this[_0x477380(0x1ed)]=_0x192c54,this[_0x477380(0x1bb)]=_0xf96bee,this[_0x477380(0x28d)]=_0x2e3320,_0x4b071f(this,_0x477380(0x2a0),new Set()),_0x4b071f(this,'_syncScheduled',!0x1),_0x4b071f(this,_0x477380(0x20b),!0x1),this['_instanceService']['getAllUnitsForType'](_0x42b9d4[_0x477380(0x205)][_0x477380(0x1b2)])['forEach'](_0x2e6599=>this[_0x477380(0x28d)][_0x477380(0x1e6)](_0x2e6599)),this[_0x477380(0x22d)](this[_0x477380(0x1bb)][_0x477380(0x299)][_0x477380(0x199)](({unitId:_0xc365d5})=>this['_syncUnit'](_0xc365d5))),this[_0x477380(0x22d)](this[_0x477380(0x260)][_0x477380(0x180)][_0x477380(0x199)](({unit:_0x4fe2e1})=>{const _0x3a305f=_0x477380;_0x4fe2e1[_0x3a305f(0x1f4)]===_0x42b9d4[_0x3a305f(0x205)][_0x3a305f(0x1b2)]&&this['_queueSync'](_0x4fe2e1[_0x3a305f(0x1f6)]());})),this[_0x477380(0x22d)](this[_0x477380(0x260)][_0x477380(0x20f)]['subscribe'](_0x44e98b=>{const _0x273351=_0x477380;this[_0x273351(0x28d)]['unregisterUnit'](_0x44e98b[_0x273351(0x1f6)]());})),this[_0x477380(0x22d)](this['_commandService'][_0x477380(0x214)](_0x13b6fe=>{const _0x39da51=_0x477380;if(_0x13b6fe['id']===_0x554914[_0x39da51(0x196)]['id']&&_0x386ba9(_0x13b6fe[_0x39da51(0x1e1)])){let _0x272ade=_0x13b6fe[_0x39da51(0x1e1)];_0x272ade[_0x39da51(0x217)]||this[_0x39da51(0x22a)](_0x272ade['unitId']);}}));}[_0x264e36(0x1c7)](){this['_isDisposed']=!0x0,super['dispose']();}[_0x264e36(0x1dd)](_0x306df4){const _0x1ac90f=_0x264e36;this[_0x1ac90f(0x2a0)][_0x1ac90f(0x1af)](_0x306df4),!this[_0x1ac90f(0x232)]&&(this[_0x1ac90f(0x232)]=!0x0,queueMicrotask(()=>{const _0x2e0585=_0x1ac90f;if(this['_syncScheduled']=!0x1,this[_0x2e0585(0x20b)])return;let _0x5bbc8b=Array[_0x2e0585(0x175)](this[_0x2e0585(0x2a0)]);this[_0x2e0585(0x2a0)]['clear'](),_0x5bbc8b[_0x2e0585(0x1fc)](_0x31870c=>this[_0x2e0585(0x22a)](_0x31870c));}));}[_0x264e36(0x22a)](_0x2abc19){const _0x56de88=_0x264e36;let _0x1a41cf=this['_instanceService'][_0x56de88(0x1b9)](_0x2abc19,_0x42b9d4[_0x56de88(0x205)][_0x56de88(0x1b2)]);_0x1a41cf&&this[_0x56de88(0x28d)]['syncUnit'](_0x1a41cf);}};_0x98202=_0x41e1df([_0x5eb961(0x0,_0x42b9d4[_0x264e36(0x171)]),_0x5eb961(0x1,_0x42b9d4[_0x264e36(0x1d6)]),_0x5eb961(0x2,(0x0,_0x42b9d4[_0x264e36(0x262)])(_0x136dfa)),_0x5eb961(0x3,(0x0,_0x42b9d4[_0x264e36(0x262)])(_0x567cc8))],_0x98202);function _0x386ba9(_0x19f8ce){const _0x252157=_0x264e36;return typeof _0x19f8ce=='object'&&!!_0x19f8ce&&_0x252157(0x167)in _0x19f8ce&&typeof _0x19f8ce[_0x252157(0x167)]==_0x252157(0x1ef)&&(!('segmentId'in _0x19f8ce)||_0x19f8ce[_0x252157(0x217)]===void 0x0||typeof _0x19f8ce[_0x252157(0x217)]==_0x252157(0x1ef));}let _0x496a6f=class extends _0x42b9d4['Disposable']{constructor(_0x22450f,_0x2ef911){const _0x20dfef=_0x264e36;super(),this[_0x20dfef(0x223)]=_0x22450f,this[_0x20dfef(0x168)]=_0x2ef911,this[_0x20dfef(0x22d)](this[_0x20dfef(0x223)][_0x20dfef(0x191)]({'pluginName':_0x3d28a0,'businesses':[_0x42b9d4['UniverInstanceType'][_0x20dfef(0x1b2)]],'toJson':_0x214f07=>JSON[_0x20dfef(0x246)](this[_0x20dfef(0x168)][_0x20dfef(0x176)](_0x214f07)),'parseJson':_0x5029a7=>JSON[_0x20dfef(0x1aa)](_0x5029a7),'onLoad':(_0x5fdc45,_0x4e8f19)=>{const _0x4d8305=_0x20dfef;this[_0x4d8305(0x168)][_0x4d8305(0x257)](_0x5fdc45,_0x4e8f19);},'onUnLoad':_0x2d39e9=>this[_0x20dfef(0x168)][_0x20dfef(0x1d0)](_0x2d39e9)}));}};_0x496a6f=_0x41e1df([_0x5eb961(0x0,_0x42b9d4['IResourceManagerService']),_0x5eb961(0x1,(0x0,_0x42b9d4[_0x264e36(0x262)])(_0x136dfa))],_0x496a6f);var _0x5bb004=_0x264e36(0x1ad),_0x197afa=_0x264e36(0x231);let _0x3042d2={},_0x3c2e9d=class extends _0x42b9d4[_0x264e36(0x227)]{constructor(_0x2f91b1,_0x3eff12,_0x43c443){const _0x2b5f51=_0x264e36;super(),this['_univerInstanceService']=_0x2f91b1,this[_0x2b5f51(0x18a)]=_0x3eff12,this[_0x2b5f51(0x22d)](_0x43c443['register']({'resolve':(_0x9f54dc,_0x220137)=>{const _0x218159=_0x2b5f51;var _0x1377ec;return((_0x1377ec=_0x220137[_0x218159(0x20d)])==null?void 0x0:_0x1377ec[_0x218159(0x291)](_0x5b5048)[_0x218159(0x25f)](_0x987787=>({'startOffset':_0x987787[_0x218159(0x185)],'endOffset':_0x987787[_0x218159(0x16c)]+0x1,'text':this[_0x218159(0x187)](_0x9f54dc,_0x987787['rangeId'])})))??[];}})),this['disposeWithMe'](this[_0x2b5f51(0x18a)]['presentationChanged$']['subscribe'](({unitId:_0x215064})=>{const _0x28ce8b=_0x2b5f51;_0x43c443[_0x28ce8b(0x281)](_0x215064);}));}[_0x264e36(0x187)](_0x19c377,_0x504d42){const _0xdb3e83=_0x264e36;var _0x92ab38;return((_0x92ab38=this['_formulaService'][_0xdb3e83(0x25d)]({'unitId':_0x19c377,'rangeId':_0x504d42}))==null?void 0x0:_0x92ab38[_0xdb3e83(0x198)])??'';}['resolveText'](_0x4ef104,_0x1d0667,_0x2f0a93){const _0x3d7599=_0x264e36;var _0x391bd0;let _0x30636a=this[_0x3d7599(0x284)][_0x3d7599(0x1b9)](_0x4ef104,_0x42b9d4[_0x3d7599(0x205)][_0x3d7599(0x1b2)]),_0x1ce34b=_0x30636a==null?void 0x0:_0x30636a[_0x3d7599(0x17c)]();if(!_0x1ce34b)return'';let _0x44ed5d=_0x1ce34b[_0x3d7599(0x17d)][_0x3d7599(0x20a)](_0x1d0667,_0x2f0a93),_0x1c3d9f=((_0x391bd0=_0x1ce34b[_0x3d7599(0x20d)])==null?void 0x0:_0x391bd0[_0x3d7599(0x291)](_0x2e1556=>_0x5b5048(_0x2e1556)&&_0x2e1556[_0x3d7599(0x185)]>=_0x1d0667&&_0x2e1556[_0x3d7599(0x16c)]<_0x2f0a93)['sort']((_0x3dbd05,_0x54ab63)=>_0x54ab63[_0x3d7599(0x185)]-_0x3dbd05['startIndex']))??[];for(let _0x497421 of _0x1c3d9f){let _0x536635=_0x497421[_0x3d7599(0x185)]-_0x1d0667,_0x23672d=_0x497421['endIndex']-_0x1d0667+0x1;_0x44ed5d=''+_0x44ed5d[_0x3d7599(0x20a)](0x0,_0x536635)+this[_0x3d7599(0x187)](_0x4ef104,_0x497421[_0x3d7599(0x26a)])+_0x44ed5d[_0x3d7599(0x20a)](_0x23672d);}return _0x44ed5d;}[_0x264e36(0x21b)](_0x58c5c4){return _0x272101(_0x58c5c4);}[_0x264e36(0x265)](_0x5dcd24,_0x3274d8,_0x39220a={}){const _0x366c21=_0x264e36;var _0x1e6983;return _0x5088dd({'id':_0x5dcd24,'body':_0x3274d8,'documentStyle':{}},(((_0x1e6983=_0x3274d8['customRanges'])==null?void 0x0:_0x1e6983[_0x366c21(0x291)](_0x5b5048))??[])[_0x366c21(0x25f)](_0x52f0d0=>({'rangeId':_0x52f0d0[_0x366c21(0x26a)],'text':_0x39220a[_0x52f0d0['rangeId']]??this['resolveFormula'](_0x5dcd24,_0x52f0d0[_0x366c21(0x26a)])})))[_0x366c21(0x1ff)]??{'dataStream':''};}};_0x3c2e9d=_0x41e1df([_0x5eb961(0x0,_0x42b9d4[_0x264e36(0x171)]),_0x5eb961(0x1,(0x0,_0x42b9d4['Inject'])(_0x567cc8)),_0x5eb961(0x2,(0x0,_0x42b9d4[_0x264e36(0x262)])(_0x554914[_0x264e36(0x23e)]))],_0x3c2e9d);function _0x272101(_0x502835){const _0x597101=_0x264e36;var _0x3fc68c,_0x4477f0;let _0x543f2a=_0x1d33cc(_0x502835),_0x3c71da=_0x5088dd(_0x502835,(((_0x3fc68c=_0x502835[_0x597101(0x1ff)])==null||(_0x3fc68c=_0x3fc68c['customRanges'])==null?void 0x0:_0x3fc68c[_0x597101(0x291)](_0x5b5048))??[])[_0x597101(0x25f)](_0x4e6e35=>({'rangeId':_0x4e6e35['rangeId'],'text':_0x572543(_0x543f2a==null?void 0x0:_0x543f2a[_0x597101(0x23a)][_0x4e6e35['rangeId']])})));return _0x3c71da[_0x597101(0x222)]=(_0x4477f0=_0x3c71da[_0x597101(0x222)])==null?void 0x0:_0x4477f0['filter'](_0x30fe55=>_0x30fe55['name']!==_0x3d28a0),_0x3c71da;}function _0x1d33cc(_0x1daf9e){const _0x160475=_0x264e36;var _0x53a767;let _0x1b2620=(_0x53a767=_0x1daf9e[_0x160475(0x222)])==null||(_0x53a767=_0x53a767[_0x160475(0x29e)](_0x58c6c3=>_0x58c6c3[_0x160475(0x263)]===_0x160475(0x22f)))==null?void 0x0:_0x53a767[_0x160475(0x1d7)];if(_0x1b2620)try{let _0x56a6de=JSON[_0x160475(0x1aa)](_0x1b2620);return _0x4d9d4b(_0x56a6de)?_0x56a6de:void 0x0;}catch{return;}}function _0x572543(_0x2bbd67){const _0x1c841f=_0x264e36;return _0x2bbd67?(0x0,_0x138dd0['resolveFormulaResultPresentation'])({'lastValue':_0x2bbd67[_0x1c841f(0x1bf)],'numberFormat':_0x2bbd67[_0x1c841f(0x1f8)]})[_0x1c841f(0x198)]:'';}let _0x29f095=class extends _0x42b9d4[_0x264e36(0x227)]{constructor(_0x3e0206,_0x53ceae,_0x37ceea){const _0x23ffdd=_0x264e36;super(),this['_formulaService']=_0x3e0206,this[_0x23ffdd(0x1db)]=_0x53ceae,this['disposeWithMe'](_0x37ceea[_0x23ffdd(0x22c)](this));}['collectMutations'](_0x539878){const _0x483557=_0x264e36;let _0x760c53=new Map();for(let _0x4f4d09 of this[_0x483557(0x18a)][_0x483557(0x195)]()){var _0x384029;if(!this[_0x483557(0x1db)][_0x483557(0x25c)](_0x4f4d09[_0x483557(0x2a5)][_0x483557(0x1b7)],_0x4f4d09[_0x483557(0x28c)])[_0x483557(0x245)])continue;let _0x2061d1=(0x0,_0x138dd0[_0x483557(0x293)])(_0x4f4d09[_0x483557(0x28c)]),_0x5779e4=_0x2061d1?(0x0,_0x138dd0[_0x483557(0x1c8)])(_0x2061d1):null;if(!_0x5779e4||_0x586f46(_0x4f4d09[_0x483557(0x2a5)][_0x483557(0x1bf)],_0x5779e4))continue;let _0x4a335a=_0x760c53[_0x483557(0x255)](_0x4f4d09[_0x483557(0x26b)]['unitId'])??[];_0x4a335a[_0x483557(0x239)]({'rangeId':_0x4f4d09[_0x483557(0x26b)][_0x483557(0x26a)],'expectedFormula':_0x4f4d09['config'][_0x483557(0x1b7)],'expectedNumberFormat':(_0x384029=_0x4f4d09['config']['numberFormat'])==null?void 0x0:_0x384029[_0x483557(0x16a)],'expectedReferenceRevision':_0x4f4d09[_0x483557(0x241)],'lastValue':_0x5779e4}),_0x760c53['set'](_0x4f4d09[_0x483557(0x26b)][_0x483557(0x167)],_0x4a335a);}return Array['from'](_0x760c53,([_0x2444dc,_0x20103e])=>({'id':_0x567c0f['id'],'params':{'unitId':_0x2444dc,'updates':_0x20103e}}));}};_0x29f095=_0x41e1df([_0x5eb961(0x0,(0x0,_0x42b9d4[_0x264e36(0x262)])(_0x567cc8)),_0x5eb961(0x1,(0x0,_0x42b9d4[_0x264e36(0x262)])(_0x138dd0[_0x264e36(0x24a)])),_0x5eb961(0x2,(0x0,_0x42b9d4[_0x264e36(0x262)])(_0x138dd0['FormulaLastValuePersistenceService']))],_0x29f095);function _0x586f46(_0x31b4ef,_0x52a41e){const _0x249318=_0x264e36;return(_0x31b4ef==null?void 0x0:_0x31b4ef['v'])===_0x52a41e['v']&&(_0x31b4ef==null?void 0x0:_0x31b4ef['t'])===_0x52a41e['t']&&(_0x31b4ef==null?void 0x0:_0x31b4ef[_0x249318(0x16a)])===_0x52a41e[_0x249318(0x16a)];}let _0x15d8e7=class extends _0x42b9d4[_0x264e36(0x17f)]{constructor(_0x52daac=_0x3042d2,_0x659d75,_0x47e5fb,_0x2254b9){const _0x8afcaf=_0x264e36;super(),this['_config']=_0x52daac,this[_0x8afcaf(0x1b1)]=_0x659d75,this[_0x8afcaf(0x1ed)]=_0x47e5fb,this[_0x8afcaf(0x275)]=_0x2254b9;let {..._0x2c0149}=(0x0,_0x42b9d4[_0x8afcaf(0x243)])({},_0x3042d2,this[_0x8afcaf(0x2a6)]);this[_0x8afcaf(0x275)][_0x8afcaf(0x1ce)](_0x8afcaf(0x29a),_0x2c0149);}[_0x264e36(0x28f)](){const _0xdbc508=_0x264e36;this[_0xdbc508(0x1b1)][_0xdbc508(0x1af)]([_0x136dfa]),this[_0xdbc508(0x1b1)][_0xdbc508(0x1af)]([_0x567cc8]),this[_0xdbc508(0x1b1)][_0xdbc508(0x1af)]([_0x496a6f]),this['_injector'][_0xdbc508(0x1af)]([_0x98202]),this['_injector']['add']([_0x29f095]),this[_0xdbc508(0x1b1)][_0xdbc508(0x1af)]([_0x3c2e9d]),(0x0,_0x42b9d4['touchDependencies'])(this[_0xdbc508(0x1b1)],[[_0x136dfa],[_0x496a6f],[_0x98202],[_0x29f095],[_0x3c2e9d]]),[_0x5e5b67,_0x2be4a6,_0x5679e0,_0x567c0f,_0x2b011d,_0x45e8cd,_0x3be6e3,_0x5e7d40,_0x3eab2d,_0xbd03ae][_0xdbc508(0x1fc)](_0x1695d4=>this['disposeWithMe'](this[_0xdbc508(0x1ed)][_0xdbc508(0x278)](_0x1695d4)));}};_0x4b071f(_0x15d8e7,_0x264e36(0x21e),_0x3d28a0),_0x4b071f(_0x15d8e7,_0x264e36(0x1d4),_0x5bb004),_0x4b071f(_0x15d8e7,_0x264e36(0x286),_0x197afa),_0x4b071f(_0x15d8e7,_0x264e36(0x1f4),_0x42b9d4[_0x264e36(0x205)][_0x264e36(0x1b2)]),_0x15d8e7=_0x41e1df([(0x0,_0x42b9d4[_0x264e36(0x1a0)])(_0x43fe23[_0x264e36(0x1e7)],_0x138dd0[_0x264e36(0x2a9)],_0x554914[_0x264e36(0x1c3)]),_0x5eb961(0x1,(0x0,_0x42b9d4[_0x264e36(0x262)])(_0x42b9d4[_0x264e36(0x29c)])),_0x5eb961(0x2,_0x42b9d4[_0x264e36(0x1d6)]),_0x5eb961(0x3,_0x42b9d4[_0x264e36(0x1c1)])],_0x15d8e7),_0x502800['ConvertDocFormulaToTextCommand']=_0xbd03ae,_0x502800[_0x264e36(0x1b6)]=_0x48c9c7,_0x502800[_0x264e36(0x225)]='',_0x502800[_0x264e36(0x22f)]=_0x3d28a0,_0x502800['DOC_FORMULA_SCHEMA_VERSION']=0x1,Object[_0x264e36(0x1ac)](_0x502800,_0x264e36(0x1a6),{'enumerable':!0x0,'get':function(){return _0x3c2e9d;}}),Object[_0x264e36(0x1ac)](_0x502800,'DocFormulaLifecycleController',{'enumerable':!0x0,'get':function(){return _0x98202;}}),_0x502800[_0x264e36(0x1cd)]=_0x136dfa,Object[_0x264e36(0x1ac)](_0x502800,'DocFormulaResourceController',{'enumerable':!0x0,'get':function(){return _0x496a6f;}}),_0x502800[_0x264e36(0x254)]=_0x17a4fa,Object[_0x264e36(0x1ac)](_0x502800,_0x264e36(0x1fd),{'enumerable':!0x0,'get':function(){return _0x567cc8;}}),_0x502800[_0x264e36(0x197)]=_0x2b011d,_0x502800['InvalidDocFormulaInsertRangeError']=_0x2d09c5,_0x502800[_0x264e36(0x189)]=_0x5e7d40,_0x502800[_0x264e36(0x211)]=_0x2be4a6,_0x502800[_0x264e36(0x19f)]=_0x3eab2d,_0x502800[_0x264e36(0x22e)]=_0x567c0f,_0x502800[_0x264e36(0x184)]=_0x5e5b67,_0x502800[_0x264e36(0x238)]=_0x3be6e3,_0x502800[_0x264e36(0x1d9)]=_0x5679e0,Object[_0x264e36(0x1ac)](_0x502800,_0x264e36(0x27f),{'enumerable':!0x0,'get':function(){return _0x15d8e7;}}),_0x502800[_0x264e36(0x253)]=_0x45e8cd,_0x502800[_0x264e36(0x1d1)]=_0x350f35,_0x502800[_0x264e36(0x193)]=_0x59ec7a,_0x502800['buildRemoveDocFormulaActions']=_0x3e159c,_0x502800[_0x264e36(0x210)]=_0x266b43,_0x502800['createEmptyDocFormulaResource']=_0x5c7567,_0x502800['degradeDocFormulaDocumentData']=_0x272101,_0x502800[_0x264e36(0x1a9)]=_0xe4a3ff,_0x502800[_0x264e36(0x1f1)]=_0x3a626b,_0x502800[_0x264e36(0x183)]=_0x5b5048,_0x502800[_0x264e36(0x2a8)]=_0x4d9d4b,_0x502800[_0x264e36(0x1cf)]=_0x12f29b;}));
1
+ function _0x3533(_0x5a245a,_0x3f49ef){_0x5a245a=_0x5a245a-0x1cc;const _0x51dcab=_0x51dc();let _0x3533c7=_0x51dcab[_0x5a245a];return _0x3533c7;}(function(_0x1dcc37,_0x4ae6fe){const _0x21377a=_0x3533,_0x3474ef=_0x1dcc37();while(!![]){try{const _0x3c648b=parseInt(_0x21377a(0x1f2))/0x1*(parseInt(_0x21377a(0x1fd))/0x2)+parseInt(_0x21377a(0x299))/0x3+parseInt(_0x21377a(0x2d6))/0x4*(-parseInt(_0x21377a(0x2fb))/0x5)+parseInt(_0x21377a(0x232))/0x6*(parseInt(_0x21377a(0x2cd))/0x7)+-parseInt(_0x21377a(0x208))/0x8*(parseInt(_0x21377a(0x1d6))/0x9)+-parseInt(_0x21377a(0x2b4))/0xa*(parseInt(_0x21377a(0x1f9))/0xb)+parseInt(_0x21377a(0x231))/0xc;if(_0x3c648b===_0x4ae6fe)break;else _0x3474ef['push'](_0x3474ef['shift']());}catch(_0x28ad31){_0x3474ef['push'](_0x3474ef['shift']());}}}(_0x51dc,0xb62f7),function(_0x348c9a,_0x4cce82){const _0x22de76=_0x3533;typeof exports==_0x22de76(0x2f0)&&typeof module<'u'?_0x4cce82(exports,require('@univerjs-pro/engine-formula'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/engine-formula'),require('rxjs'),require('@univerjs-pro/license')):typeof define==_0x22de76(0x2cb)&&define[_0x22de76(0x2f7)]?define([_0x22de76(0x27a),'@univerjs-pro/engine-formula',_0x22de76(0x2e7),_0x22de76(0x25c),_0x22de76(0x2cc),'rxjs',_0x22de76(0x242)],_0x4cce82):(_0x348c9a=typeof globalThis<'u'?globalThis:_0x348c9a||self,_0x4cce82(_0x348c9a['UniverProDocsFormula']={},_0x348c9a[_0x22de76(0x206)],_0x348c9a[_0x22de76(0x20f)],_0x348c9a[_0x22de76(0x26b)],_0x348c9a[_0x22de76(0x316)],_0x348c9a['rxjs'],_0x348c9a[_0x22de76(0x1e4)]));}(this,function(_0x54a0ee,_0x35cdb4,_0x268d47,_0x13b587,_0x144841,_0x22c49e,_0x3ae0fa){const _0x2dd6cc=_0x3533;Object[_0x2dd6cc(0x1cd)](_0x54a0ee,Symbol[_0x2dd6cc(0x317)],{'value':'Module'});let _0x422f2b=_0x2dd6cc(0x2a0),_0x4f2d27='univer-docs-formula';function _0x2e7c75(){return{'formulas':{}};}function _0x277cf0(_0x5255db){const _0x10114b=_0x2dd6cc;return!_0x5255db||typeof _0x5255db!=_0x10114b(0x2f0)||!('formulas'in _0x5255db)||!_0x5255db[_0x10114b(0x2a3)]||typeof _0x5255db[_0x10114b(0x2a3)]!=_0x10114b(0x2f0)||Array[_0x10114b(0x277)](_0x5255db[_0x10114b(0x2a3)])?!0x1:Object['entries'](_0x5255db[_0x10114b(0x2a3)])[_0x10114b(0x236)](([_0x122e56,_0x4849ca])=>_0x122e56[_0x10114b(0x28f)]>0x0&&_0x4a8011(_0x4849ca));}function _0x4a8011(_0x513434){const _0x3d88ba=_0x2dd6cc;return!_0x513434||typeof _0x513434!=_0x3d88ba(0x2f0)||!_0x529d17(_0x513434,[_0x3d88ba(0x245),'numberFormat',_0x3d88ba(0x2c2)])||!('formula'in _0x513434)||typeof _0x513434['formula']!='string'||!_0x513434[_0x3d88ba(0x245)]['trim']()||'numberFormat'in _0x513434&&_0x513434[_0x3d88ba(0x23f)]!=null&&(typeof _0x513434[_0x3d88ba(0x23f)]!=_0x3d88ba(0x2f0)||!_0x529d17(_0x513434[_0x3d88ba(0x23f)],[_0x3d88ba(0x2b5)])||!(_0x3d88ba(0x2b5)in _0x513434['numberFormat'])||typeof _0x513434[_0x3d88ba(0x23f)][_0x3d88ba(0x2b5)]!=_0x3d88ba(0x1de))?!0x1:!('lastValue'in _0x513434)||_0x513434[_0x3d88ba(0x2c2)]==null||_0x1f5739(_0x513434['lastValue']);}function _0x1f5739(_0x1979a4){const _0x4f4902=_0x2dd6cc;return!_0x1979a4||typeof _0x1979a4!=_0x4f4902(0x2f0)||!_0x529d17(_0x1979a4,['v','t','pattern'])||!('v'in _0x1979a4)||_0x1979a4['v']!==null&&typeof _0x1979a4['v']!='string'&&typeof _0x1979a4['v']!=_0x4f4902(0x252)&&typeof _0x1979a4['v']!=_0x4f4902(0x21d)||'t'in _0x1979a4&&_0x1979a4['t']!=null&&!_0x505e6d(_0x1979a4['t'])?!0x1:!(_0x4f4902(0x2b5)in _0x1979a4)||_0x1979a4['pattern']==null||typeof _0x1979a4[_0x4f4902(0x2b5)]==_0x4f4902(0x1de);}function _0x529d17(_0x1aa55e,_0xa833cb){const _0x14ae0f=_0x2dd6cc;let _0xd610ec=new Set(_0xa833cb);return Object[_0x14ae0f(0x283)](_0x1aa55e)[_0x14ae0f(0x236)](_0x4bd2af=>_0xd610ec[_0x14ae0f(0x223)](_0x4bd2af));}function _0x505e6d(_0x1e7fc3){const _0x1be80f=_0x2dd6cc;return typeof _0x1e7fc3==_0x1be80f(0x252)&&Object[_0x1be80f(0x302)](_0x268d47[_0x1be80f(0x318)])[_0x1be80f(0x2b9)](_0x1e7fc3);}let _0x2275c4=new Set([_0x268d47['DataStreamTreeTokenType'][_0x2dd6cc(0x211)],_0x268d47[_0x2dd6cc(0x1dd)][_0x2dd6cc(0x25a)],_0x268d47['DataStreamTreeTokenType']['TABLE_ROW_START'],_0x268d47[_0x2dd6cc(0x1dd)][_0x2dd6cc(0x287)],_0x268d47[_0x2dd6cc(0x1dd)][_0x2dd6cc(0x2c7)],_0x268d47['DataStreamTreeTokenType'][_0x2dd6cc(0x2ab)],_0x268d47[_0x2dd6cc(0x1dd)][_0x2dd6cc(0x2ef)],_0x268d47[_0x2dd6cc(0x1dd)]['COLUMN_GROUP_START'],_0x268d47[_0x2dd6cc(0x1dd)][_0x2dd6cc(0x1dc)],_0x268d47[_0x2dd6cc(0x1dd)][_0x2dd6cc(0x289)],_0x268d47[_0x2dd6cc(0x1dd)][_0x2dd6cc(0x2d1)],_0x268d47[_0x2dd6cc(0x1dd)][_0x2dd6cc(0x200)],_0x268d47['DataStreamTreeTokenType']['BLOCK_END'],_0x268d47[_0x2dd6cc(0x1dd)][_0x2dd6cc(0x2e6)]]);var _0x4d259a=class extends Error{constructor(){const _0x4adf5a=_0x2dd6cc;super(_0x4adf5a(0x28d));}};function _0x40b110(_0x33f98e){const _0x37bac5=_0x2dd6cc;var _0x41b4a7,_0x1c6116;let _0x1ab79f=_0x268d47[_0x37bac5(0x2da)][_0x37bac5(0x297)](_0x33f98e['documentData']),_0x423a28=_0x1ed592(_0x1ab79f),{startOffset:_0x2d9296,endOffset:_0x4d5fd8}=_0x338206(_0x423a28,_0x33f98e['startOffset'],_0x33f98e[_0x37bac5(0x1e9)]);_0x23ad2d(_0x423a28,_0x2d9296,_0x4d5fd8);let _0x5a298d=((_0x41b4a7=_0x423a28[_0x37bac5(0x31a)])==null?void 0x0:_0x41b4a7[_0x37bac5(0x2d9)](_0x4cf63b=>{const _0x3b2b86=_0x37bac5;if(!_0x10ebc7(_0x4cf63b))return!0x1;let _0x25784e=(0x0,_0x268d47[_0x3b2b86(0x21a)])(_0x4cf63b);return _0x25784e[_0x3b2b86(0x1e9)]>_0x2d9296&&_0x25784e['startOffset']<_0x4d5fd8;})[_0x37bac5(0x1cf)](_0x58b348=>_0x58b348['rangeId']))??[];_0x4e17a1(_0x423a28,_0x2d9296,_0x4d5fd8,''),_0x423a28[_0x37bac5(0x31a)]=[...((_0x1c6116=_0x423a28[_0x37bac5(0x31a)])==null?void 0x0:_0x1c6116[_0x37bac5(0x2d9)](_0x4c0087=>!_0x5a298d[_0x37bac5(0x2b9)](_0x4c0087[_0x37bac5(0x2e1)])&&_0x4c0087['rangeId']!==_0x33f98e['rangeId']))??[],_0x1f8a0c(_0x33f98e[_0x37bac5(0x2e1)],_0x2d9296)][_0x37bac5(0x203)]((_0xa124e5,_0x4c6d1c)=>_0xa124e5[_0x37bac5(0x210)]-_0x4c6d1c[_0x37bac5(0x210)]);let _0x40851f=_0x2c48de(_0x33f98e[_0x37bac5(0x22f)]);return _0x5a298d[_0x37bac5(0x2e9)](_0x38277a=>{delete _0x40851f['formulas'][_0x38277a];}),_0x40851f['formulas'][_0x33f98e['rangeId']]=_0x268d47[_0x37bac5(0x2da)][_0x37bac5(0x297)](_0x33f98e[_0x37bac5(0x2b6)]),{'nextDocumentData':_0x1ab79f,'nextResource':_0x40851f,'cursorOffset':_0x2d9296+0x1};}function _0x433876(_0x5e0db6){const _0x29ffd5=_0x2dd6cc;var _0x2f03e0,_0x5a5029;let _0x4a76c9=_0x268d47['Tools'][_0x29ffd5(0x297)](_0x5e0db6[_0x29ffd5(0x313)]),_0x5d31cf=(_0x2f03e0=_0x1ed592(_0x4a76c9)['customRanges'])==null?void 0x0:_0x2f03e0[_0x29ffd5(0x2e8)](_0x531685=>_0x531685[_0x29ffd5(0x2e1)]===_0x5e0db6[_0x29ffd5(0x2e1)]&&_0x10ebc7(_0x531685));if(!_0x5d31cf||!((_0x5a5029=_0x5e0db6[_0x29ffd5(0x22f)])!=null&&_0x5a5029[_0x29ffd5(0x2a3)][_0x5e0db6[_0x29ffd5(0x2e1)]]))return null;let _0x4ab27e=_0x2c48de(_0x5e0db6['resource']);return _0x4ab27e[_0x29ffd5(0x2a3)][_0x5e0db6[_0x29ffd5(0x2e1)]]=_0x268d47[_0x29ffd5(0x2da)]['deepClone'](_0x5e0db6[_0x29ffd5(0x2b6)]),{'nextDocumentData':_0x4a76c9,'nextResource':_0x4ab27e,'cursorOffset':_0x5d31cf[_0x29ffd5(0x31b)]+0x1};}function _0x366cd0(_0x403661){const _0x62d6cb=_0x2dd6cc;let _0x18325d=_0x268d47[_0x62d6cb(0x2da)][_0x62d6cb(0x297)](_0x403661['documentData']),_0x10e9cf=_0x234024(_0x18325d,_0x403661[_0x62d6cb(0x2e1)],_0x403661[_0x62d6cb(0x2fe)]??'');if(_0x10e9cf==null)return null;let _0x2ce88a=_0x2c48de(_0x403661['resource']);return delete _0x2ce88a[_0x62d6cb(0x2a3)][_0x403661[_0x62d6cb(0x2e1)]],{'nextDocumentData':_0x18325d,'nextResource':_0x2ce88a,'cursorOffset':_0x10e9cf};}function _0xff40f2(_0xf40445,_0x5c62e1){const _0x4f96ed=_0x2dd6cc;var _0x56c47a;let _0x4c119a=_0x268d47[_0x4f96ed(0x2da)]['deepClone'](_0xf40445),_0xfbc766=_0x4c119a[_0x4f96ed(0x31e)];if(!_0xfbc766)return _0x4c119a;let _0x2ff976=new Map(_0x5c62e1[_0x4f96ed(0x1cf)](_0x31807e=>[_0x31807e[_0x4f96ed(0x2e1)],_0x31807e[_0x4f96ed(0x2fe)]])),_0x2f5d3c=((_0x56c47a=_0xfbc766[_0x4f96ed(0x31a)])==null?void 0x0:_0x56c47a[_0x4f96ed(0x2d9)](_0x1141b1=>_0x10ebc7(_0x1141b1)&&_0x2ff976['has'](_0x1141b1[_0x4f96ed(0x2e1)]))[_0x4f96ed(0x203)]((_0x56734a,_0x43b273)=>_0x43b273[_0x4f96ed(0x210)]-_0x56734a[_0x4f96ed(0x210)]))??[];for(let _0x5a94c4 of _0x2f5d3c)_0x234024(_0x4c119a,_0x5a94c4['rangeId'],_0x2ff976[_0x4f96ed(0x249)](_0x5a94c4[_0x4f96ed(0x2e1)])??'');return _0x4c119a;}function _0x10ebc7(_0x1710a9){const _0x488f42=_0x2dd6cc;var _0x50b1c2;return(_0x1710a9==null?void 0x0:_0x1710a9[_0x488f42(0x27d)])===_0x268d47[_0x488f42(0x2cf)][_0x488f42(0x257)]&&_0x1710a9[_0x488f42(0x275)]===!0x0&&((_0x50b1c2=_0x1710a9['properties'])==null?void 0x0:_0x50b1c2[_0x488f42(0x1ec)])===_0x488f42(0x2ee);}function _0x5bfb7e(_0x3039ca,_0x4b5681){const _0x50c47d=_0x2dd6cc;var _0x3a1d17;return _0x3039ca==null||(_0x3a1d17=_0x3039ca[_0x50c47d(0x31a)])==null?void 0x0:_0x3a1d17[_0x50c47d(0x2e8)](_0xf91824=>_0xf91824[_0x50c47d(0x2e1)]===_0x4b5681&&_0x10ebc7(_0xf91824));}function _0x23ad2d(_0xfc9ca4,_0x5c80fb,_0x188774){const _0x1e3db3=_0x2dd6cc;if(_0x5c80fb===_0x188774){if(_0x2275c4[_0x1e3db3(0x223)](_0xfc9ca4['dataStream'][_0x5c80fb]))throw new _0x4d259a();}else{for(let _0x2eba74=_0x5c80fb;_0x2eba74<_0x188774;_0x2eba74++)if(_0xfc9ca4['dataStream'][_0x2eba74]===_0x268d47['DataStreamTreeTokenType'][_0x1e3db3(0x2af)]||_0x2275c4['has'](_0xfc9ca4[_0x1e3db3(0x2ea)][_0x2eba74]))throw new _0x4d259a();}}function _0x1f8a0c(_0x5a5446,_0x366f7b){const _0x1a5c9f=_0x2dd6cc;return{'startIndex':_0x366f7b,'endIndex':_0x366f7b,'rangeId':_0x5a5446,'rangeType':_0x268d47[_0x1a5c9f(0x2cf)][_0x1a5c9f(0x257)],'wholeEntity':!0x0,'properties':{'kind':_0x4f2d27}};}function _0x2c48de(_0x51becf){const _0x1a629c=_0x2dd6cc;return _0x51becf?_0x268d47['Tools'][_0x1a629c(0x297)](_0x51becf):_0x2e7c75();}function _0x338206(_0x39d24c,_0x23423a,_0x3de4b5){const _0x5c3579=_0x2dd6cc;let _0x5ea809=_0x5b6fc7(_0x39d24c),_0x58312a=_0x23423a??_0x5ea809,_0x5b072b=_0x3de4b5??_0x58312a;return{'startOffset':_0x297fd6(Math[_0x5c3579(0x1df)](_0x58312a,_0x5b072b),_0x5ea809),'endOffset':_0x297fd6(Math[_0x5c3579(0x1ea)](_0x58312a,_0x5b072b),_0x5ea809)};}function _0x297fd6(_0xf1a958,_0x5b66aa){const _0x1ad718=_0x2dd6cc;return Math[_0x1ad718(0x1ea)](0x0,Math[_0x1ad718(0x1df)](_0xf1a958,_0x5b66aa));}function _0x5b6fc7(_0x25dd8d){const _0x23d264=_0x2dd6cc;return _0x25dd8d['dataStream'][_0x23d264(0x2e3)](''+_0x268d47[_0x23d264(0x1dd)][_0x23d264(0x2af)]+_0x268d47[_0x23d264(0x1dd)][_0x23d264(0x211)])?Math[_0x23d264(0x1ea)](0x0,_0x25dd8d[_0x23d264(0x2ea)][_0x23d264(0x28f)]-0x2):_0x25dd8d['dataStream'][_0x23d264(0x2e3)](_0x268d47[_0x23d264(0x1dd)][_0x23d264(0x211)])?Math['max'](0x0,_0x25dd8d[_0x23d264(0x2ea)]['length']-0x1):_0x25dd8d['dataStream'][_0x23d264(0x28f)];}function _0x4e17a1(_0x4fab0c,_0x428072,_0x491e01,_0x4906aa){_0x491e01>_0x428072&&_0x279193(_0x4fab0c,_0x428072,_0x491e01),_0xd75f40(_0x4fab0c,_0x428072,_0x4906aa);}function _0x234024(_0x2291c0,_0xe86ab6,_0x552e88){const _0x20ebcf=_0x2dd6cc;var _0x549d1f,_0x72f189;let _0x49ae8f=_0x1ed592(_0x2291c0),_0x113965=(_0x549d1f=_0x49ae8f[_0x20ebcf(0x31a)])==null?void 0x0:_0x549d1f['find'](_0x404f15=>_0x404f15[_0x20ebcf(0x2e1)]===_0xe86ab6&&_0x10ebc7(_0x404f15));if(!_0x113965)return null;let _0x4a0e2d=(0x0,_0x268d47[_0x20ebcf(0x21a)])(_0x113965);return _0x4e17a1(_0x49ae8f,_0x4a0e2d['startOffset'],_0x4a0e2d[_0x20ebcf(0x1e9)],_0x552e88),_0x49ae8f['customRanges']=(_0x72f189=_0x49ae8f[_0x20ebcf(0x31a)])==null?void 0x0:_0x72f189['filter'](_0x3df66d=>_0x3df66d[_0x20ebcf(0x2e1)]!==_0xe86ab6),_0x4a0e2d[_0x20ebcf(0x30e)]+_0x552e88['length'];}function _0xd75f40(_0x2ffec4,_0x55540c,_0x12056e){const _0x4e6649=_0x2dd6cc;_0x12056e&&(_0x2ffec4[_0x4e6649(0x2ea)]=''+_0x2ffec4[_0x4e6649(0x2ea)][_0x4e6649(0x24c)](0x0,_0x55540c)+_0x12056e+_0x2ffec4['dataStream']['slice'](_0x55540c),_0x4b4995(_0x2ffec4,_0x55540c,_0x12056e[_0x4e6649(0x28f)]));}function _0x279193(_0x56d8b8,_0x1a7aa7,_0x378c6a){const _0x718355=_0x2dd6cc;let _0xeab786=_0x378c6a-_0x1a7aa7;_0x56d8b8['dataStream']=''+_0x56d8b8[_0x718355(0x2ea)]['slice'](0x0,_0x1a7aa7)+_0x56d8b8['dataStream'][_0x718355(0x24c)](_0x378c6a),_0x41a4d0(_0x56d8b8,_0x1a7aa7,_0xeab786);}function _0x4b4995(_0x4f8e9d,_0x628562,_0x43648a){const _0x439800=_0x2dd6cc;_0x4f8e9d[_0x439800(0x1cc)]=_0x28a97b(_0x4f8e9d[_0x439800(0x1cc)],_0x628562,_0x43648a),_0x4f8e9d['sectionBreaks']=_0x28a97b(_0x4f8e9d[_0x439800(0x264)],_0x628562,_0x43648a),_0x4f8e9d[_0x439800(0x22d)]=_0x28a97b(_0x4f8e9d['customBlocks'],_0x628562,_0x43648a),_0x4f8e9d[_0x439800(0x26c)]=_0x1b3f8d(_0x4f8e9d[_0x439800(0x26c)],_0x628562,_0x43648a),_0x4f8e9d[_0x439800(0x2ca)]=_0x334085(_0x4f8e9d[_0x439800(0x2ca)],_0x628562,_0x43648a),_0x4f8e9d[_0x439800(0x2ae)]=_0x4c5561(_0x4f8e9d[_0x439800(0x2ae)],_0x628562,_0x43648a),_0x4f8e9d[_0x439800(0x31a)]=_0x4c5561(_0x4f8e9d[_0x439800(0x31a)],_0x628562,_0x43648a),_0x4f8e9d['customDecorations']=_0x4c5561(_0x4f8e9d['customDecorations'],_0x628562,_0x43648a),_0x4f8e9d[_0x439800(0x248)]=_0x4c5561(_0x4f8e9d['blockRanges'],_0x628562,_0x43648a);}function _0x41a4d0(_0x24c515,_0x3c9400,_0x5c966e){const _0x3c995f=_0x2dd6cc;var _0xc15cdf,_0x1eef74;_0x24c515[_0x3c995f(0x1cc)]=_0x1d30be(_0x24c515[_0x3c995f(0x1cc)],_0x3c9400,_0x5c966e),_0x24c515[_0x3c995f(0x264)]=_0x1d30be(_0x24c515[_0x3c995f(0x264)],_0x3c9400,_0x5c966e),_0x24c515[_0x3c995f(0x22d)]=_0x1d30be(_0x24c515['customBlocks'],_0x3c9400,_0x5c966e),_0x24c515[_0x3c995f(0x26c)]=(_0xc15cdf=_0x3a5d60((_0x1eef74=_0x24c515[_0x3c995f(0x26c)])==null?void 0x0:_0x1eef74[_0x3c995f(0x1cf)](_0x5ddc55=>({..._0x5ddc55,'startIndex':_0x5ddc55['st'],'endIndex':_0x5ddc55['ed']})),_0x3c9400,_0x5c966e))==null?void 0x0:_0xc15cdf[_0x3c995f(0x1cf)](_0x5d855c=>{let {startIndex:_0x1ad7f6,endIndex:_0x309844,..._0x9da194}=_0x5d855c;return{..._0x9da194,'st':_0x1ad7f6,'ed':_0x309844};}),_0x24c515[_0x3c995f(0x2ca)]=_0x3a5d60(_0x24c515[_0x3c995f(0x2ca)],_0x3c9400,_0x5c966e),_0x24c515[_0x3c995f(0x2ae)]=_0x453935(_0x24c515[_0x3c995f(0x2ae)],_0x3c9400,_0x5c966e),_0x24c515['customRanges']=_0x453935(_0x24c515['customRanges'],_0x3c9400,_0x5c966e),_0x24c515['customDecorations']=_0x453935(_0x24c515[_0x3c995f(0x207)],_0x3c9400,_0x5c966e),_0x24c515[_0x3c995f(0x248)]=_0x453935(_0x24c515[_0x3c995f(0x248)],_0x3c9400,_0x5c966e);}function _0x28a97b(_0x3b69aa,_0x99d3f5,_0x4d8540){const _0x9707fd=_0x2dd6cc;return _0x3b69aa==null?void 0x0:_0x3b69aa[_0x9707fd(0x1cf)](_0x32644a=>_0x32644a[_0x9707fd(0x210)]>=_0x99d3f5?{..._0x32644a,'startIndex':_0x32644a['startIndex']+_0x4d8540}:_0x32644a);}function _0x1d30be(_0x4575c2,_0x361e47,_0x242a7b){const _0xc61799=_0x2dd6cc;let _0x1e29ff=_0x361e47+_0x242a7b;return _0x4575c2==null?void 0x0:_0x4575c2[_0xc61799(0x1cf)](_0x95e5ba=>_0x95e5ba[_0xc61799(0x210)]>=_0x361e47&&_0x95e5ba['startIndex']<_0x1e29ff?null:_0x95e5ba[_0xc61799(0x210)]>=_0x1e29ff?{..._0x95e5ba,'startIndex':_0x95e5ba[_0xc61799(0x210)]-_0x242a7b}:_0x95e5ba)[_0xc61799(0x2d9)](_0x3c42e1=>_0x3c42e1!=null);}function _0x1b3f8d(_0x552013,_0xc95c5e,_0x525e29){const _0xc6fe05=_0x2dd6cc;return _0x552013==null?void 0x0:_0x552013[_0xc6fe05(0x1cf)](_0x3bbd5e=>_0x3bbd5e['st']>=_0xc95c5e?{..._0x3bbd5e,'st':_0x3bbd5e['st']+_0x525e29,'ed':_0x3bbd5e['ed']+_0x525e29}:_0x3bbd5e['ed']>_0xc95c5e?{..._0x3bbd5e,'ed':_0x3bbd5e['ed']+_0x525e29}:_0x3bbd5e);}function _0x4c5561(_0x274361,_0x531db6,_0x4b6fac){const _0x5eecdd=_0x2dd6cc;return _0x274361==null?void 0x0:_0x274361[_0x5eecdd(0x1cf)](_0x2ab0e0=>(0x0,_0x268d47[_0x5eecdd(0x2f9)])(_0x2ab0e0,_0x531db6,_0x4b6fac));}function _0x334085(_0x494d3b,_0x24a2f7,_0x8c462c){const _0x4c9081=_0x2dd6cc;return _0x494d3b==null?void 0x0:_0x494d3b[_0x4c9081(0x1cf)](_0x3d9dec=>(0x0,_0x268d47['shiftExclusiveRangeOnInsert'])(_0x3d9dec,_0x24a2f7,_0x8c462c));}function _0x453935(_0x2877f5,_0x500360,_0x344815){const _0x4eedb1=_0x2dd6cc;return _0x2877f5==null?void 0x0:_0x2877f5['map'](_0x56b16d=>(0x0,_0x268d47[_0x4eedb1(0x1fe)])(_0x56b16d,_0x500360,_0x344815))[_0x4eedb1(0x2d9)](_0x1fe2d2=>_0x1fe2d2!=null);}function _0x3a5d60(_0x3f55ec,_0x1da359,_0x5368a8){const _0x153953=_0x2dd6cc;return _0x3f55ec==null?void 0x0:_0x3f55ec[_0x153953(0x1cf)](_0x223c37=>(0x0,_0x268d47[_0x153953(0x2f5)])(_0x223c37,_0x1da359,_0x5368a8))['filter'](_0x46ca61=>_0x46ca61!=null);}function _0x1ed592(_0xb013d4){const _0x3de716=_0x2dd6cc;if(!_0xb013d4[_0x3de716(0x31e)])throw Error(_0x3de716(0x301));return _0xb013d4[_0x3de716(0x31e)];}function _0xf7d2ca(_0x781f83){'@babel/helpers - typeof';const _0x5db298=_0x2dd6cc;return _0xf7d2ca=typeof Symbol==_0x5db298(0x2cb)&&typeof Symbol[_0x5db298(0x319)]==_0x5db298(0x1d5)?function(_0x57218c){return typeof _0x57218c;}:function(_0x525f42){const _0x1cfdd1=_0x5db298;return _0x525f42&&typeof Symbol=='function'&&_0x525f42['constructor']===Symbol&&_0x525f42!==Symbol[_0x1cfdd1(0x26a)]?_0x1cfdd1(0x1d5):typeof _0x525f42;},_0xf7d2ca(_0x781f83);}function _0x2f3f6c(_0x1ba17d,_0x5a86db){const _0xede545=_0x2dd6cc;if(_0xf7d2ca(_0x1ba17d)!=_0xede545(0x2f0)||!_0x1ba17d)return _0x1ba17d;var _0x50b754=_0x1ba17d[Symbol['toPrimitive']];if(_0x50b754!==void 0x0){var _0x1d3dee=_0x50b754['call'](_0x1ba17d,_0x5a86db||_0xede545(0x1d9));if(_0xf7d2ca(_0x1d3dee)!=_0xede545(0x2f0))return _0x1d3dee;throw TypeError(_0xede545(0x29c));}return(_0x5a86db===_0xede545(0x1de)?String:Number)(_0x1ba17d);}function _0x300607(_0x432d55){const _0x2b9d92=_0x2dd6cc;var _0x324351=_0x2f3f6c(_0x432d55,_0x2b9d92(0x1de));return _0xf7d2ca(_0x324351)==_0x2b9d92(0x1d5)?_0x324351:_0x324351+'';}function _0x2997b9(_0x21bada,_0x3d043b,_0x1e2175){const _0x1caa9e=_0x2dd6cc;return(_0x3d043b=_0x300607(_0x3d043b))in _0x21bada?Object[_0x1caa9e(0x1cd)](_0x21bada,_0x3d043b,{'value':_0x1e2175,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x21bada[_0x3d043b]=_0x1e2175,_0x21bada;}var _0x400aa0=class extends _0x268d47[_0x2dd6cc(0x298)]{constructor(..._0x6de162){const _0x1b23b1=_0x2dd6cc;super(..._0x6de162),_0x2997b9(this,'_resources',new Map()),_0x2997b9(this,_0x1b23b1(0x260),new Map()),_0x2997b9(this,_0x1b23b1(0x20d),new Map()),_0x2997b9(this,'_change$',new _0x22c49e['Subject']()),_0x2997b9(this,_0x1b23b1(0x2bc),this[_0x1b23b1(0x27b)]['asObservable']());}['getFormula'](_0x493b8a,_0x89bbb4){const _0x346b1d=_0x2dd6cc;var _0xcdbeac;let _0x349fad=(_0xcdbeac=this[_0x346b1d(0x239)]['get'](_0x493b8a))==null?void 0x0:_0xcdbeac[_0x346b1d(0x2a3)][_0x89bbb4];return _0x349fad?_0x268d47[_0x346b1d(0x2da)][_0x346b1d(0x297)](_0x349fad):void 0x0;}[_0x2dd6cc(0x205)](_0x2f1a30){const _0x28395d=_0x2dd6cc;var _0xd77836;return _0x268d47[_0x28395d(0x2da)][_0x28395d(0x297)](((_0xd77836=this[_0x28395d(0x239)]['get'](_0x2f1a30))==null?void 0x0:_0xd77836[_0x28395d(0x2a3)])??{});}['getResource'](_0x2383b4){const _0x17ee14=_0x2dd6cc;let _0x5290c5=this[_0x17ee14(0x239)]['get'](_0x2383b4);return _0x5290c5?_0x268d47[_0x17ee14(0x2da)][_0x17ee14(0x297)](_0x5290c5):void 0x0;}[_0x2dd6cc(0x24f)](_0x5bdf6d,_0x43e02d,_0x4c3083){const _0x30c029=_0x2dd6cc;return this[_0x30c029(0x265)](_0x5bdf6d,{[_0x43e02d]:_0x4c3083});}[_0x2dd6cc(0x26f)](_0x4f8f91,_0x5958a0){const _0x5d1e93=_0x2dd6cc;return this['_loadErrors'][_0x5d1e93(0x223)](_0x4f8f91)||!_0x277cf0(_0x5958a0)?!0x1:(this[_0x5d1e93(0x239)][_0x5d1e93(0x234)](_0x4f8f91,{'formulas':_0x268d47[_0x5d1e93(0x2da)][_0x5d1e93(0x297)](_0x5958a0['formulas'])}),this[_0x5d1e93(0x27b)][_0x5d1e93(0x1e3)]({'unitId':_0x4f8f91}),!0x0);}[_0x2dd6cc(0x265)](_0x44d420,_0x6fdc1c){const _0x38ae48=_0x2dd6cc;if(this['_loadErrors'][_0x38ae48(0x223)](_0x44d420)||!Object[_0x38ae48(0x283)](_0x6fdc1c)['length']||!_0x277cf0({'formulas':_0x6fdc1c}))return!0x1;let _0x4c4b50=this[_0x38ae48(0x239)][_0x38ae48(0x249)](_0x44d420)??_0x2e7c75(),_0x12577c=_0x268d47[_0x38ae48(0x2da)][_0x38ae48(0x297)](_0x4c4b50);return Object[_0x38ae48(0x2bf)](_0x12577c[_0x38ae48(0x2a3)],_0x268d47[_0x38ae48(0x2da)][_0x38ae48(0x297)](_0x6fdc1c)),this['_resources'][_0x38ae48(0x234)](_0x44d420,_0x12577c),this[_0x38ae48(0x27b)][_0x38ae48(0x1e3)]({'unitId':_0x44d420,'rangeIds':Object['keys'](_0x6fdc1c)}),!0x0;}['removeFormula'](_0x568163,_0x3b2e4c){const _0x29771c=_0x2dd6cc;if(this[_0x29771c(0x20d)][_0x29771c(0x223)](_0x568163))return!0x1;let _0x2a8249=this[_0x29771c(0x239)][_0x29771c(0x249)](_0x568163);if(!(_0x2a8249!=null&&_0x2a8249['formulas'][_0x3b2e4c]))return!0x1;let _0x462279=_0x268d47[_0x29771c(0x2da)][_0x29771c(0x297)](_0x2a8249);return delete _0x462279[_0x29771c(0x2a3)][_0x3b2e4c],this[_0x29771c(0x239)][_0x29771c(0x234)](_0x568163,_0x462279),this['_change$'][_0x29771c(0x1e3)]({'unitId':_0x568163,'rangeIds':[_0x3b2e4c]}),!0x0;}[_0x2dd6cc(0x1d8)](_0x350d9d,_0x37a75a){const _0x3a41c8=_0x2dd6cc;return _0x277cf0(_0x37a75a)?(this[_0x3a41c8(0x239)][_0x3a41c8(0x234)](_0x350d9d,{'formulas':_0x268d47[_0x3a41c8(0x2da)]['deepClone'](_0x37a75a[_0x3a41c8(0x2a3)])}),this[_0x3a41c8(0x260)][_0x3a41c8(0x2aa)](_0x350d9d),this[_0x3a41c8(0x20d)][_0x3a41c8(0x2aa)](_0x350d9d),this['_change$'][_0x3a41c8(0x1e3)]({'unitId':_0x350d9d}),!0x0):(this[_0x3a41c8(0x1ed)](_0x350d9d,_0x37a75a,_0x3a41c8(0x2e2)),!0x1);}[_0x2dd6cc(0x251)](_0x9d1f8){const _0x424981=_0x2dd6cc;let _0x41bffa=this[_0x424981(0x239)][_0x424981(0x249)](_0x9d1f8);return _0x41bffa?_0x268d47[_0x424981(0x2da)][_0x424981(0x297)](_0x41bffa):this['_rawResources']['has'](_0x9d1f8)?_0x268d47[_0x424981(0x2da)]['deepClone'](this[_0x424981(0x260)][_0x424981(0x249)](_0x9d1f8)):_0x2e7c75();}[_0x2dd6cc(0x1db)](_0x336b0e){const _0x572f19=_0x2dd6cc;return this[_0x572f19(0x20d)][_0x572f19(0x249)](_0x336b0e);}[_0x2dd6cc(0x1e1)](_0x3e658d){const _0x58d312=_0x2dd6cc;this[_0x58d312(0x239)][_0x58d312(0x2aa)](_0x3e658d),this[_0x58d312(0x260)][_0x58d312(0x2aa)](_0x3e658d),this['_loadErrors']['delete'](_0x3e658d),this[_0x58d312(0x27b)][_0x58d312(0x1e3)]({'unitId':_0x3e658d});}['dispose'](){const _0x1c0487=_0x2dd6cc;this[_0x1c0487(0x239)][_0x1c0487(0x25b)](),this[_0x1c0487(0x260)][_0x1c0487(0x25b)](),this[_0x1c0487(0x20d)][_0x1c0487(0x25b)](),this[_0x1c0487(0x27b)][_0x1c0487(0x308)](),super[_0x1c0487(0x259)]();}[_0x2dd6cc(0x1ed)](_0x52dab0,_0x2eae2b,_0x306412){const _0x17c4a1=_0x2dd6cc;this[_0x17c4a1(0x239)][_0x17c4a1(0x2aa)](_0x52dab0),this[_0x17c4a1(0x260)][_0x17c4a1(0x234)](_0x52dab0,_0x268d47[_0x17c4a1(0x2da)]['deepClone'](_0x2eae2b)),this['_loadErrors'][_0x17c4a1(0x234)](_0x52dab0,_0x306412),this[_0x17c4a1(0x27b)][_0x17c4a1(0x1e3)]({'unitId':_0x52dab0});}};let _0x4057d2=function(_0x4b3e5b){const _0x2ac7a3=_0x2dd6cc;return _0x4b3e5b[_0x2ac7a3(0x2be)]=_0x2ac7a3(0x2fc),_0x4b3e5b[_0x2ac7a3(0x237)]='pending',_0x4b3e5b[_0x2ac7a3(0x23a)]=_0x2ac7a3(0x278),_0x4b3e5b['ERROR']=_0x2ac7a3(0x2e5),_0x4b3e5b;}({});function _0x26635b(_0x7c0f1c,_0x7f39e4){return function(_0x33a996,_0xf49257){_0x7f39e4(_0x33a996,_0xf49257,_0x7c0f1c);};}function _0x1047e5(_0x3cbc49,_0x20413a,_0x597516,_0x4c5c9a){const _0x5369dd=_0x2dd6cc;var _0xab1e4b=arguments[_0x5369dd(0x28f)],_0x137f4a=_0xab1e4b<0x3?_0x20413a:_0x4c5c9a===null?_0x4c5c9a=Object[_0x5369dd(0x293)](_0x20413a,_0x597516):_0x4c5c9a,_0x33d1d3;if(typeof Reflect==_0x5369dd(0x2f0)&&typeof Reflect[_0x5369dd(0x306)]==_0x5369dd(0x2cb))_0x137f4a=Reflect[_0x5369dd(0x306)](_0x3cbc49,_0x20413a,_0x597516,_0x4c5c9a);else{for(var _0x27f8db=_0x3cbc49[_0x5369dd(0x28f)]-0x1;_0x27f8db>=0x0;_0x27f8db--)(_0x33d1d3=_0x3cbc49[_0x27f8db])&&(_0x137f4a=(_0xab1e4b<0x3?_0x33d1d3(_0x137f4a):_0xab1e4b>0x3?_0x33d1d3(_0x20413a,_0x597516,_0x137f4a):_0x33d1d3(_0x20413a,_0x597516))||_0x137f4a);}return _0xab1e4b>0x3&&_0x137f4a&&Object[_0x5369dd(0x1cd)](_0x20413a,_0x597516,_0x137f4a),_0x137f4a;}let _0xd0fdb1=class extends _0x268d47[_0x2dd6cc(0x298)]{constructor(_0x5920d3,_0x3c526d,_0x38928b){const _0x5caae9=_0x2dd6cc;super(),this[_0x5caae9(0x2bb)]=_0x5920d3,this['_registrationService']=_0x3c526d,this[_0x5caae9(0x2b2)]=_0x38928b,_0x2997b9(this,_0x5caae9(0x2c5),new Map()),_0x2997b9(this,_0x5caae9(0x311),new Map()),_0x2997b9(this,_0x5caae9(0x244),new _0x22c49e[(_0x5caae9(0x23b))]()),_0x2997b9(this,_0x5caae9(0x267),this['_presentationChanged$'][_0x5caae9(0x273)]()),this[_0x5caae9(0x2d2)](this['_registrationService'][_0x5caae9(0x216)][_0x5caae9(0x28a)](_0x329234=>{const _0x5e5f8c=_0x5caae9;for(let _0x3afef0 of Object['values'](_0x329234))for(let _0x30dcbe of Object[_0x5e5f8c(0x302)](_0x3afef0))_0x30dcbe['forEach'](_0xa51315=>this[_0x5e5f8c(0x1ce)](_0xa51315));}));}[_0x2dd6cc(0x2c9)](_0x57115d){const _0x5d5c88=_0x2dd6cc;var _0x4a5159;let _0x17d4fc=_0x57115d[_0x5d5c88(0x204)](),_0x24b739=((_0x4a5159=_0x57115d[_0x5d5c88(0x291)]()[_0x5d5c88(0x31e)])==null||(_0x4a5159=_0x4a5159[_0x5d5c88(0x31a)])==null?void 0x0:_0x4a5159[_0x5d5c88(0x2d9)](_0x10ebc7))??[],_0xf1e420=this[_0x5d5c88(0x2bb)][_0x5d5c88(0x205)](_0x17d4fc),_0x3cfcf5=new Set();for(let _0xd28c6a of _0x24b739){let _0x5d31ff=_0xf1e420[_0xd28c6a[_0x5d5c88(0x2e1)]];_0x5d31ff&&(_0x3cfcf5[_0x5d5c88(0x2db)](_0x17fbe8(_0x17d4fc,_0xd28c6a[_0x5d5c88(0x2e1)])),this[_0x5d5c88(0x1e8)]({'unitId':_0x17d4fc,'rangeId':_0xd28c6a[_0x5d5c88(0x2e1)]},_0x5d31ff));}for(let _0x5ec6e8 of Array[_0x5d5c88(0x295)](this[_0x5d5c88(0x2c5)][_0x5d5c88(0x302)]()))_0x5ec6e8[_0x5d5c88(0x30f)]===_0x17d4fc&&!_0x3cfcf5['has'](_0x17fbe8(_0x5ec6e8[_0x5d5c88(0x30f)],_0x5ec6e8[_0x5d5c88(0x2e1)]))&&this[_0x5d5c88(0x238)](_0x5ec6e8);}[_0x2dd6cc(0x1e8)](_0x871ec5,_0x31a10a){const _0x48b313=_0x2dd6cc;let _0x222f05=_0x17fbe8(_0x871ec5[_0x48b313(0x30f)],_0x871ec5[_0x48b313(0x2e1)]),_0x4034d7=this['_registrations'][_0x48b313(0x249)](_0x222f05),_0x7c9410=this['_hostExternalReferenceModel'][_0x48b313(0x202)](_0x871ec5['unitId']);if(_0x4034d7&&_0x4034d7['config'][_0x48b313(0x245)]===_0x31a10a[_0x48b313(0x245)]&&_0x4034d7[_0x48b313(0x2ce)]===_0x7c9410){_0x4034d7[_0x48b313(0x2b6)]=_0x31a10a;let _0x34cdcc=_0x4034d7['formulaId']?this['_registrationService'][_0x48b313(0x2d8)](_0x4034d7[_0x48b313(0x30f)],_0x4034d7[_0x48b313(0x30f)],_0x4034d7[_0x48b313(0x25d)])??void 0x0:void 0x0;_0x4034d7[_0x48b313(0x2ed)]=_0x34cdcc,this['_setPresentation'](_0x222f05,_0x13a530(_0x31a10a,_0x34cdcc));return;}_0x4034d7!=null&&_0x4034d7['formulaId']&&this[_0x48b313(0x2df)](_0x4034d7);let _0x5b9b38={..._0x871ec5,'config':_0x31a10a,'referenceRevision':_0x7c9410,'presentation':_0x13a530(_0x31a10a,void 0x0)};if(this['_registrations'][_0x48b313(0x234)](_0x222f05,_0x5b9b38),!_0x31a10a[_0x48b313(0x245)]['trim']())return;let _0x4cdfc8=this[_0x48b313(0x1f0)][_0x48b313(0x25e)](_0x871ec5[_0x48b313(0x30f)],_0x871ec5[_0x48b313(0x30f)],_0x31a10a[_0x48b313(0x245)],void 0x0,{'rangeId':_0x871ec5[_0x48b313(0x2e1)]},_0x144841[_0x48b313(0x2a9)][_0x48b313(0x227)],_0x871ec5[_0x48b313(0x2e1)]);_0x5b9b38[_0x48b313(0x25d)]=_0x4cdfc8,this[_0x48b313(0x311)]['set'](_0x4cdfc8,_0x222f05);}['unregister'](_0xd98cbb){const _0x4629b4=_0x2dd6cc;let _0xab9753=_0x17fbe8(_0xd98cbb[_0x4629b4(0x30f)],_0xd98cbb[_0x4629b4(0x2e1)]),_0x2e7461=this[_0x4629b4(0x2c5)]['get'](_0xab9753);_0x2e7461&&(this['_deleteRegistration'](_0x2e7461),this[_0x4629b4(0x2c5)][_0x4629b4(0x2aa)](_0xab9753));}[_0x2dd6cc(0x1fb)](_0x5015de){const _0x8ddb69=_0x2dd6cc;for(let _0x2a31f6 of Array[_0x8ddb69(0x295)](this[_0x8ddb69(0x2c5)][_0x8ddb69(0x302)]()))_0x2a31f6[_0x8ddb69(0x30f)]===_0x5015de&&this[_0x8ddb69(0x238)](_0x2a31f6);}[_0x2dd6cc(0x1d0)](_0x97b292){const _0x5e8a13=_0x2dd6cc;var _0x1d4be6;return(_0x1d4be6=this[_0x5e8a13(0x2c5)][_0x5e8a13(0x249)](_0x17fbe8(_0x97b292[_0x5e8a13(0x30f)],_0x97b292[_0x5e8a13(0x2e1)])))==null?void 0x0:_0x1d4be6[_0x5e8a13(0x31d)];}[_0x2dd6cc(0x241)](_0xc71369){const _0x102ab0=_0x2dd6cc;let _0xb33e21=this['_registrations']['get'](_0x17fbe8(_0xc71369['unitId'],_0xc71369[_0x102ab0(0x2e1)]));return _0xb33e21?_0x48bec3(_0xb33e21):void 0x0;}[_0x2dd6cc(0x247)](){const _0x4fbaaa=_0x2dd6cc;return Array[_0x4fbaaa(0x295)](this[_0x4fbaaa(0x2c5)]['values'](),_0x3faddc=>({'identity':{'unitId':_0x3faddc[_0x4fbaaa(0x30f)],'rangeId':_0x3faddc['rangeId']},'config':_0x3faddc[_0x4fbaaa(0x2b6)],'referenceRevision':_0x3faddc[_0x4fbaaa(0x2ce)],..._0x3faddc[_0x4fbaaa(0x2ed)]?{'liveResult':_0x3faddc[_0x4fbaaa(0x2ed)]}:null}));}[_0x2dd6cc(0x259)](){const _0x346f54=_0x2dd6cc;for(let _0x364d4e of this[_0x346f54(0x2c5)][_0x346f54(0x302)]())this[_0x346f54(0x2df)](_0x364d4e);this[_0x346f54(0x2c5)][_0x346f54(0x25b)](),this[_0x346f54(0x311)][_0x346f54(0x25b)](),this[_0x346f54(0x244)][_0x346f54(0x308)](),super[_0x346f54(0x259)]();}[_0x2dd6cc(0x1ce)](_0x3d5ca6){const _0x4210f8=_0x2dd6cc;let _0x53649f=this[_0x4210f8(0x311)][_0x4210f8(0x249)](_0x3d5ca6[_0x4210f8(0x25d)]),_0x340013=_0x53649f?this['_registrations'][_0x4210f8(0x249)](_0x53649f):void 0x0;_0x53649f&&_0x340013&&(_0x340013[_0x4210f8(0x2ed)]=_0x3d5ca6,this[_0x4210f8(0x1d7)](_0x53649f,_0x13a530(_0x340013[_0x4210f8(0x2b6)],_0x3d5ca6)));}['_setPresentation'](_0x1db7f9,_0x46fbb9){const _0x4dec9e=_0x2dd6cc;var _0x2d54cf,_0x399997;let _0x279bbc=this['_registrations'][_0x4dec9e(0x249)](_0x1db7f9);if(!_0x279bbc||_0xa30ea7(_0x279bbc['presentation'],_0x46fbb9))return;let _0x4463ba=_0x279bbc['presentation'],_0x1c0a88=_0x48bec3(_0x279bbc);_0x279bbc[_0x4dec9e(0x31d)]=_0x46fbb9,this[_0x4dec9e(0x244)][_0x4dec9e(0x1e3)]({'unitId':_0x279bbc['unitId'],'rangeId':_0x279bbc[_0x4dec9e(0x2e1)],'presentation':_0x46fbb9,'previousPresentation':_0x4463ba,'result':_0x48bec3(_0x279bbc),'previousResult':{..._0x1c0a88,..._0x4463ba,'value':(_0x2d54cf=_0x4463ba[_0x4dec9e(0x22b)])==null?void 0x0:_0x2d54cf['v'],'valueType':((_0x399997=_0x4463ba['cell'])==null?void 0x0:_0x399997['t'])??void 0x0}});}['_deleteRegistration'](_0x4bc8fb){const _0x284115=_0x2dd6cc;_0x4bc8fb[_0x284115(0x25d)]&&(this['_registrationService']['deleteFormula'](_0x4bc8fb[_0x284115(0x30f)],_0x4bc8fb[_0x284115(0x30f)],[_0x4bc8fb['formulaId']]),this['_formulaKeys'][_0x284115(0x2aa)](_0x4bc8fb[_0x284115(0x25d)]));}};_0xd0fdb1=_0x1047e5([_0x26635b(0x0,(0x0,_0x268d47[_0x2dd6cc(0x266)])(_0x400aa0)),_0x26635b(0x1,(0x0,_0x268d47[_0x2dd6cc(0x266)])(_0x144841[_0x2dd6cc(0x285)])),_0x26635b(0x2,(0x0,_0x268d47['Inject'])(_0x35cdb4[_0x2dd6cc(0x243)]))],_0xd0fdb1);function _0x17fbe8(_0x52c9c0,_0x437483){return _0x52c9c0+'\x00'+_0x437483;}function _0x13a530(_0x38ae37,_0x275014){const _0x14f19b=_0x2dd6cc;return(0x0,_0x35cdb4['resolveFormulaResultPresentation'])({'numberFormat':_0x38ae37[_0x14f19b(0x23f)],'lastValue':_0x38ae37['lastValue'],'result':_0x275014});}function _0x48bec3(_0x29a339){const _0xa3e2bc=_0x2dd6cc;var _0x3a9d55,_0x265ee2,_0xcd2af9;let _0x108e57=_0x29a339[_0xa3e2bc(0x31d)],_0x28ff92=_0x29a339[_0xa3e2bc(0x2b6)][_0xa3e2bc(0x245)]['trim']()?_0x108e57['stale']||_0x108e57[_0xa3e2bc(0x22b)]==null?_0xa3e2bc(0x29e):((_0x3a9d55=_0x29a339['liveResult'])==null?void 0x0:_0x3a9d55['status'])===_0x144841[_0xa3e2bc(0x30c)][_0xa3e2bc(0x22a)]?_0xa3e2bc(0x2e5):'success':_0xa3e2bc(0x2fc);return{..._0x108e57,'status':_0x28ff92,'value':(_0x265ee2=_0x108e57[_0xa3e2bc(0x22b)])==null?void 0x0:_0x265ee2['v'],'valueType':((_0xcd2af9=_0x108e57[_0xa3e2bc(0x22b)])==null?void 0x0:_0xcd2af9['t'])??void 0x0};}function _0xa30ea7(_0x42b65d,_0x4d163a){const _0x1372b8=_0x2dd6cc;var _0x1e0e3b,_0x2f18a5,_0x55bb4b,_0x1ad9b6;return _0x42b65d[_0x1372b8(0x2fe)]===_0x4d163a[_0x1372b8(0x2fe)]&&_0x42b65d[_0x1372b8(0x209)]===_0x4d163a[_0x1372b8(0x209)]&&_0x42b65d[_0x1372b8(0x2b5)]===_0x4d163a[_0x1372b8(0x2b5)]&&_0x42b65d[_0x1372b8(0x2a4)]===_0x4d163a[_0x1372b8(0x2a4)]&&_0x42b65d[_0x1372b8(0x240)]===_0x4d163a[_0x1372b8(0x240)]&&((_0x1e0e3b=_0x42b65d[_0x1372b8(0x22b)])==null?void 0x0:_0x1e0e3b['t'])===((_0x2f18a5=_0x4d163a['cell'])==null?void 0x0:_0x2f18a5['t'])&&Object['is']((_0x55bb4b=_0x42b65d[_0x1372b8(0x22b)])==null?void 0x0:_0x55bb4b['v'],(_0x1ad9b6=_0x4d163a[_0x1372b8(0x22b)])==null?void 0x0:_0x1ad9b6['v']);}let _0x2a530f={'id':_0x2dd6cc(0x26e),'type':_0x268d47[_0x2dd6cc(0x2fa)][_0x2dd6cc(0x271)],'handler':(_0x5e96d3,_0x53dc0f)=>!(_0x53dc0f!=null&&_0x53dc0f[_0x2dd6cc(0x30f)])||!_0x53dc0f[_0x2dd6cc(0x2e1)]||!_0x53dc0f[_0x2dd6cc(0x2b6)]?!0x1:_0x5e96d3['get'](_0x400aa0)[_0x2dd6cc(0x24f)](_0x53dc0f[_0x2dd6cc(0x30f)],_0x53dc0f[_0x2dd6cc(0x2e1)],_0x53dc0f['config'])},_0x36f934={'id':_0x2dd6cc(0x2ac),'type':_0x268d47['CommandType'][_0x2dd6cc(0x271)],'handler':(_0x1e2f5b,_0x6265eb)=>!(_0x6265eb!=null&&_0x6265eb[_0x2dd6cc(0x30f)])||!_0x6265eb[_0x2dd6cc(0x2e1)]?!0x1:_0x1e2f5b[_0x2dd6cc(0x249)](_0x400aa0)['removeFormula'](_0x6265eb[_0x2dd6cc(0x30f)],_0x6265eb[_0x2dd6cc(0x2e1)])},_0x1245e8={'id':_0x2dd6cc(0x1ff),'type':_0x268d47[_0x2dd6cc(0x2fa)][_0x2dd6cc(0x271)],'handler':(_0x1f750f,_0x20e152)=>!(_0x20e152!=null&&_0x20e152[_0x2dd6cc(0x30f)])||!_0x20e152[_0x2dd6cc(0x22f)]?!0x1:_0x1f750f[_0x2dd6cc(0x249)](_0x400aa0)['setResource'](_0x20e152['unitId'],_0x20e152['resource'])},_0x5b0b65={'id':_0x2dd6cc(0x1e5),'type':_0x268d47[_0x2dd6cc(0x2fa)]['MUTATION'],'handler':(_0x55f801,_0x3a0936)=>{const _0x3bb7a9=_0x2dd6cc;if(!(_0x3a0936!=null&&_0x3a0936[_0x3bb7a9(0x30f)])||!_0x3a0936[_0x3bb7a9(0x279)][_0x3bb7a9(0x28f)])return!0x1;let _0x5e4208=_0x55f801[_0x3bb7a9(0x249)](_0x400aa0),_0x50353d=_0x55f801[_0x3bb7a9(0x249)](_0x35cdb4['HostExternalReferenceModel']),_0x2d3053=_0x5e4208['getResource'](_0x3a0936[_0x3bb7a9(0x30f)]);if(!_0x2d3053)return!0x1;let _0x2bb0f9=_0x268d47[_0x3bb7a9(0x2da)]['deepClone'](_0x2d3053),_0x14b35d=!0x1;for(let _0x823061 of _0x3a0936[_0x3bb7a9(0x279)]){var _0x391b86,_0x5165a4,_0x1921fc,_0x95b8ee;let _0xd4c3f7=_0x2bb0f9['formulas'][_0x823061['rangeId']];_0xd4c3f7&&_0xd4c3f7[_0x3bb7a9(0x245)]===_0x823061['expectedFormula']&&((_0x391b86=_0xd4c3f7[_0x3bb7a9(0x23f)])==null?void 0x0:_0x391b86[_0x3bb7a9(0x2b5)])===_0x823061[_0x3bb7a9(0x310)]&&_0x50353d[_0x3bb7a9(0x202)](_0x3a0936[_0x3bb7a9(0x30f)])===_0x823061['expectedReferenceRevision']&&(((_0x5165a4=_0xd4c3f7[_0x3bb7a9(0x2c2)])==null?void 0x0:_0x5165a4['v'])!==_0x823061[_0x3bb7a9(0x2c2)]['v']||((_0x1921fc=_0xd4c3f7[_0x3bb7a9(0x2c2)])==null?void 0x0:_0x1921fc['t'])!==_0x823061[_0x3bb7a9(0x2c2)]['t']||((_0x95b8ee=_0xd4c3f7[_0x3bb7a9(0x2c2)])==null?void 0x0:_0x95b8ee[_0x3bb7a9(0x2b5)])!==_0x823061['lastValue'][_0x3bb7a9(0x2b5)])&&(_0xd4c3f7[_0x3bb7a9(0x2c2)]=_0x268d47[_0x3bb7a9(0x2da)][_0x3bb7a9(0x297)](_0x823061[_0x3bb7a9(0x2c2)]),_0x14b35d=!0x0);}return!_0x14b35d||_0x5e4208[_0x3bb7a9(0x26f)](_0x3a0936['unitId'],_0x2bb0f9);}},_0x2e61bb={'id':_0x2dd6cc(0x2c4),'type':_0x268d47[_0x2dd6cc(0x2fa)]['COMMAND'],'handler':(_0xb4ba4d,_0x4cf34c)=>{const _0x27e135=_0x2dd6cc;if(!(_0x4cf34c!=null&&_0x4cf34c['formula'][_0x27e135(0x2a8)]()))return!0x1;let _0x3205a1=_0x2a4cda(_0xb4ba4d,_0x4cf34c[_0x27e135(0x30f)],'');if(!_0x3205a1)return!0x1;let _0x4c77f4=_0x5e7b80(_0x4cf34c[_0x27e135(0x23e)],_0x3205a1[_0x27e135(0x31e)],_0x2ebd77(_0xb4ba4d,_0x3205a1['unitId']));if(!_0x4c77f4)return!0x1;let _0x347017=_0x4eaf68(_0xb4ba4d,_0x3205a1[_0x27e135(0x30f)],_0x4cf34c[_0x27e135(0x245)],_0x4cf34c[_0x27e135(0x28b)]??[]);if(!_0x347017)return!0x1;let _0x456956=_0x5c65a8(_0x3205a1['body'],_0x3205a1[_0x27e135(0x20c)],_0x3205a1[_0x27e135(0x30f)]),_0x5a0efe=_0x4ca3c2({'documentData':_0x3205a1[_0x27e135(0x313)],'resource':_0x3205a1['resource'],'rangeId':_0x456956,'config':{'formula':_0x4cf34c[_0x27e135(0x245)],..._0x4cf34c[_0x27e135(0x23f)]?{'numberFormat':_0x4cf34c[_0x27e135(0x23f)]}:null},'startOffset':_0x4c77f4[_0x27e135(0x30e)],'endOffset':_0x4c77f4[_0x27e135(0x1e9)]});if(!_0x5a0efe)return!0x1;let _0x4650aa=(0x0,_0x35cdb4['buildUpsertHostExternalReferenceMutations'])(_0xb4ba4d,_0x3205a1[_0x27e135(0x30f)],_0x347017);return!_0x4650aa||!_0x287b85({'accessor':_0xb4ba4d,'document':_0x3205a1['document'],'unitId':_0x3205a1[_0x27e135(0x30f)],'trigger':_0x2e61bb['id'],'rangeId':_0x456956,'previousResource':_0x3205a1[_0x27e135(0x22f)],'nextResource':_0x5a0efe[_0x27e135(0x290)],'previousDocumentData':_0x3205a1[_0x27e135(0x313)],'nextDocumentData':_0x5a0efe[_0x27e135(0x31c)],'cursorOffset':_0x5a0efe['cursorOffset'],'externalMutations':_0x4650aa})?!0x1:{'rangeId':_0x456956,'startOffset':_0x5a0efe[_0x27e135(0x23d)]-0x1,'endOffset':_0x5a0efe[_0x27e135(0x23d)]};}},_0x19bd2b={'id':_0x2dd6cc(0x2dc),'type':_0x268d47['CommandType'][_0x2dd6cc(0x1da)],'handler':(_0x49c613,_0x51795c)=>{const _0x5bd1e4=_0x2dd6cc;if(!(_0x51795c!=null&&_0x51795c['rangeId'])||!_0x51795c[_0x5bd1e4(0x245)][_0x5bd1e4(0x2a8)]())return!0x1;let _0x461fbc=_0x2a4cda(_0x49c613,_0x51795c[_0x5bd1e4(0x30f)],''),_0x1945a0=_0x461fbc==null?void 0x0:_0x461fbc[_0x5bd1e4(0x20c)][_0x5bd1e4(0x2a5)](_0x461fbc[_0x5bd1e4(0x30f)],_0x51795c[_0x5bd1e4(0x2e1)]),_0x1f03b3=_0x461fbc?_0x5bfb7e(_0x461fbc[_0x5bd1e4(0x313)][_0x5bd1e4(0x31e)],_0x51795c[_0x5bd1e4(0x2e1)]):void 0x0;if(!_0x461fbc||!_0x1945a0||!_0x1f03b3)return!0x1;let _0x93031e=_0x4eaf68(_0x49c613,_0x461fbc[_0x5bd1e4(0x30f)],_0x51795c['formula'],_0x51795c['externalReferences']??[]);if(!_0x93031e)return!0x1;let _0x31ae5b=(0x0,_0x35cdb4[_0x5bd1e4(0x276)])(_0x49c613,_0x461fbc['unitId'],_0x93031e);if(!_0x31ae5b)return!0x1;let _0x10ccfa=_0x28db7b(_0x461fbc[_0x5bd1e4(0x22f)]);return _0x10ccfa['formulas'][_0x51795c['rangeId']]={'formula':_0x51795c[_0x5bd1e4(0x245)],..._0x51795c[_0x5bd1e4(0x23f)]?{'numberFormat':_0x51795c[_0x5bd1e4(0x23f)]}:_0x1945a0[_0x5bd1e4(0x23f)]?{'numberFormat':_0x1945a0[_0x5bd1e4(0x23f)]}:null},_0x287b85({'accessor':_0x49c613,'document':_0x461fbc['document'],'unitId':_0x461fbc['unitId'],'trigger':_0x19bd2b['id'],'rangeId':_0x51795c[_0x5bd1e4(0x2e1)],'previousResource':_0x461fbc[_0x5bd1e4(0x22f)],'nextResource':_0x10ccfa,'cursorOffset':_0x1f03b3[_0x5bd1e4(0x31b)]+0x1,'externalMutations':_0x31ae5b});}},_0x450b4f={'id':_0x2dd6cc(0x23c),'type':_0x268d47[_0x2dd6cc(0x2fa)][_0x2dd6cc(0x1da)],'handler':(_0x24136e,_0x4fc9f6)=>{const _0x480963=_0x2dd6cc;if(!(_0x4fc9f6!=null&&_0x4fc9f6[_0x480963(0x2e1)]))return!0x1;let _0x2869f2=_0x2a4cda(_0x24136e,_0x4fc9f6[_0x480963(0x30f)],''),_0x1d85fe=_0x2869f2==null?void 0x0:_0x2869f2[_0x480963(0x20c)]['getFormula'](_0x2869f2[_0x480963(0x30f)],_0x4fc9f6[_0x480963(0x2e1)]),_0x256b68=_0x2869f2?_0x5bfb7e(_0x2869f2[_0x480963(0x313)][_0x480963(0x31e)],_0x4fc9f6[_0x480963(0x2e1)]):void 0x0;if(!_0x2869f2||!_0x1d85fe||!_0x256b68)return!0x1;let _0x4bf076=_0x28db7b(_0x2869f2[_0x480963(0x22f)]);return _0x4bf076[_0x480963(0x2a3)][_0x4fc9f6['rangeId']]={..._0x1d85fe,..._0x4fc9f6[_0x480963(0x23f)]?{'numberFormat':_0x4fc9f6['numberFormat']}:null},_0x4fc9f6[_0x480963(0x23f)]||delete _0x4bf076[_0x480963(0x2a3)][_0x4fc9f6[_0x480963(0x2e1)]][_0x480963(0x23f)],_0x287b85({'accessor':_0x24136e,'document':_0x2869f2['document'],'unitId':_0x2869f2[_0x480963(0x30f)],'trigger':_0x450b4f['id'],'rangeId':_0x4fc9f6['rangeId'],'previousResource':_0x2869f2['resource'],'nextResource':_0x4bf076,'cursorOffset':_0x256b68[_0x480963(0x31b)]+0x1,'externalMutations':{}});}},_0x36cdb0={'id':'docs-formula.command.remove','type':_0x268d47[_0x2dd6cc(0x2fa)][_0x2dd6cc(0x1da)],'handler':(_0x35fb26,_0x3c4ddc)=>_0x3f1faf(_0x35fb26,_0x3c4ddc,'',_0x36cdb0['id'])},_0x360b38={'id':_0x2dd6cc(0x1f5),'type':_0x268d47[_0x2dd6cc(0x2fa)][_0x2dd6cc(0x1da)],'handler':(_0x4d6ee8,_0x307bf6)=>_0x3f1faf(_0x4d6ee8,_0x307bf6,(_0x307bf6==null?void 0x0:_0x307bf6['text'])??'',_0x360b38['id'])},_0x4196d1={'id':_0x2dd6cc(0x282),'type':_0x268d47['CommandType'][_0x2dd6cc(0x1da)],'handler':(_0xbf27cb,_0x2c9688)=>{const _0x814be5=_0x2dd6cc;if(!(_0x2c9688!=null&&_0x2c9688[_0x814be5(0x2e1)]))return!0x1;let _0x322760=_0x2a4cda(_0xbf27cb,_0x2c9688[_0x814be5(0x30f)],'');if(!_0x322760)return!0x1;let _0x15983c=_0xbf27cb['get'](_0xd0fdb1)[_0x814be5(0x241)]({'unitId':_0x322760[_0x814be5(0x30f)],'rangeId':_0x2c9688[_0x814be5(0x2e1)]});return _0x15983c?_0x3f1faf(_0xbf27cb,_0x2c9688,_0x15983c[_0x814be5(0x2fe)],_0x4196d1['id']):!0x1;}};function _0x3f1faf(_0x1502e0,_0x25580d,_0x27c686,_0x3d4ec5){const _0x2d9240=_0x2dd6cc;if(!(_0x25580d!=null&&_0x25580d['rangeId']))return!0x1;let _0x151fe1=_0x2a4cda(_0x1502e0,_0x25580d[_0x2d9240(0x30f)],'');if(!_0x151fe1)return!0x1;let _0x3eba76=_0x366cd0({'documentData':_0x151fe1[_0x2d9240(0x313)],'resource':_0x151fe1[_0x2d9240(0x22f)],'rangeId':_0x25580d['rangeId'],'text':_0x27c686});return _0x3eba76?_0x287b85({'accessor':_0x1502e0,'document':_0x151fe1[_0x2d9240(0x2a1)],'unitId':_0x151fe1[_0x2d9240(0x30f)],'trigger':_0x3d4ec5,'rangeId':_0x25580d[_0x2d9240(0x2e1)],'previousResource':_0x151fe1[_0x2d9240(0x22f)],'nextResource':_0x3eba76['nextResource'],'previousDocumentData':_0x151fe1[_0x2d9240(0x313)],'nextDocumentData':_0x3eba76[_0x2d9240(0x31c)],'cursorOffset':_0x3eba76[_0x2d9240(0x23d)],'externalMutations':{}}):!0x1;}function _0x2a4cda(_0x845b88,_0xc47cde,_0xe88d04){const _0x5114b4=_0x2dd6cc;if(_0xe88d04)return null;let _0x4ca932=_0x845b88['get'](_0x268d47['IUniverInstanceService']),_0x4aaf0f=(_0xc47cde?_0x4ca932[_0x5114b4(0x2a2)](_0xc47cde,_0x268d47[_0x5114b4(0x212)][_0x5114b4(0x254)]):_0x4ca932['getCurrentUnitOfType'](_0x268d47['UniverInstanceType'][_0x5114b4(0x254)]))??null;if(!_0x4aaf0f)return null;let _0x498a35=_0x4aaf0f['getSnapshot'](),_0xb3eb8e=_0x498a35[_0x5114b4(0x31e)];if(_0x498a35[_0x5114b4(0x250)]||!_0xb3eb8e)return null;let _0x2bae34=_0x845b88['get'](_0x400aa0);return _0x2bae34['getLoadError'](_0x4aaf0f[_0x5114b4(0x204)]())?null:{'document':_0x4aaf0f,'body':_0xb3eb8e,'documentData':_0x498a35,'model':_0x2bae34,'resource':_0x2bae34[_0x5114b4(0x30b)](_0x4aaf0f['getUnitId']())??_0x2e7c75(),'unitId':_0x4aaf0f[_0x5114b4(0x204)]()};}function _0x2ebd77(_0x25f21f,_0x47916d){const _0xc3af5e=_0x2dd6cc;var _0xfdf299;return(_0xfdf299=_0x25f21f[_0xc3af5e(0x249)](_0x13b587[_0xc3af5e(0x2d7)])['getTextRanges']({'subUnitId':_0x47916d,'unitId':_0x47916d}))==null?void 0x0:_0xfdf299[0x0];}function _0x5e7b80(_0x5e136f,_0x4d270b,_0x5adde4){const _0x1533c9=_0x2dd6cc;if((_0x5e136f==null?void 0x0:_0x5e136f[_0x1533c9(0x253)])===_0x1533c9(0x2dd)){var _0x3e3484;let _0x536916=((_0x3e3484=_0x4d270b[_0x1533c9(0x1cc)])==null?void 0x0:_0x3e3484[_0x1533c9(0x2d9)](_0x1bea6e=>_0x1bea6e['paragraphId']===_0x5e136f[_0x1533c9(0x220)]))??[];if(_0x536916['length']!==0x1)return null;let _0x57932c=_0x536916[0x0],_0x1b6d1f=(0x0,_0x268d47[_0x1533c9(0x222)])(_0x4d270b,_0x57932c),_0x5ed7cc=_0x57932c[_0x1533c9(0x210)]-_0x1b6d1f,_0x271a49=_0x5e136f['position']===_0x1533c9(0x2eb)?_0x5ed7cc:_0x5e136f[_0x1533c9(0x27e)];if(!Number['isInteger'](_0x271a49)||_0x271a49<0x0||_0x271a49>_0x5ed7cc)return null;let _0x2d81e5=_0x1b6d1f+_0x271a49;return{'startOffset':_0x2d81e5,'endOffset':_0x2d81e5};}if((_0x5e136f==null?void 0x0:_0x5e136f[_0x1533c9(0x253)])===_0x1533c9(0x305))return!Number[_0x1533c9(0x307)](_0x5e136f[_0x1533c9(0x30e)])||!Number[_0x1533c9(0x307)](_0x5e136f['endOffset'])?null:{'startOffset':Math[_0x1533c9(0x1df)](_0x5e136f[_0x1533c9(0x30e)],_0x5e136f[_0x1533c9(0x1e9)]),'endOffset':Math[_0x1533c9(0x1ea)](_0x5e136f[_0x1533c9(0x30e)],_0x5e136f[_0x1533c9(0x1e9)])};let _0x4362c2=(_0x5e136f==null?void 0x0:_0x5e136f[_0x1533c9(0x253)])===_0x1533c9(0x2d4)?_0x5e136f[_0x1533c9(0x2d4)]:_0x5adde4;return!_0x4362c2||_0x4362c2[_0x1533c9(0x233)]?null:{'startOffset':Math[_0x1533c9(0x1df)](_0x4362c2['startOffset'],_0x4362c2['endOffset']),'endOffset':Math[_0x1533c9(0x1ea)](_0x4362c2['startOffset'],_0x4362c2[_0x1533c9(0x1e9)])};}function _0x4eaf68(_0x74cb9b,_0xf8b55d,_0x232643,_0x5ad803){const _0x479e85=_0x2dd6cc;let _0xf057d=_0x74cb9b[_0x479e85(0x249)](_0x144841[_0x479e85(0x256)]),_0x18714f=_0x232643['startsWith']('=')?_0x232643[_0x479e85(0x24c)](0x1):_0x232643,_0x1f1e04=_0xf057d[_0x479e85(0x280)](_0x18714f);if(!_0x1f1e04)return null;let _0x263955=_0x74cb9b[_0x479e85(0x249)](_0x35cdb4[_0x479e85(0x243)]),_0x1ebfd2=(0x0,_0x35cdb4[_0x479e85(0x255)])({'qualifiers':(0x0,_0x35cdb4[_0x479e85(0x270)])(_0x1f1e04),'explicitReferences':_0x5ad803??[],'resolveBinding':_0x12b8b3=>_0x263955[_0x479e85(0x1e2)](_0xf8b55d,_0x12b8b3)});return _0x1ebfd2[_0x479e85(0x1e7)]===_0x479e85(0x2b3)?_0x1ebfd2[_0x479e85(0x281)]:null;}function _0x5c65a8(_0x3622af,_0x1bdc4c,_0x12b388){const _0x50b430=_0x2dd6cc;var _0x4015a3;let _0x1efa2b=(0x0,_0x268d47[_0x50b430(0x269)])(0x6);for(;_0x3622af!=null&&(_0x4015a3=_0x3622af[_0x50b430(0x31a)])!=null&&_0x4015a3[_0x50b430(0x218)](_0xfee56c=>_0xfee56c[_0x50b430(0x2e1)]===_0x1efa2b)||_0x1bdc4c[_0x50b430(0x2a5)](_0x12b388,_0x1efa2b);)_0x1efa2b=(0x0,_0x268d47[_0x50b430(0x269)])(0x6);return _0x1efa2b;}function _0x4ca3c2(_0x1aaedf){try{return _0x40b110(_0x1aaedf);}catch(_0xeb8ea0){if(_0xeb8ea0 instanceof _0x4d259a)return null;throw _0xeb8ea0;}}function _0x476677(_0x3b9222){const _0x7f4748=_0x2dd6cc;let _0x46672e=_0x3b9222['previousDocumentData']&&_0x3b9222[_0x7f4748(0x31c)]?_0x2a0ac5(_0x3b9222[_0x7f4748(0x2a1)],_0x3b9222[_0x7f4748(0x30f)],_0x3b9222[_0x7f4748(0x1d3)],_0x3b9222['nextDocumentData'],_0x3b9222[_0x7f4748(0x23d)],_0x3b9222[_0x7f4748(0x2d3)]):null;return _0x3b9222[_0x7f4748(0x1d3)]&&_0x3b9222[_0x7f4748(0x31c)]&&!_0x46672e?null:{'documentRedo':_0x46672e,'resourceRedo':{'id':_0x1245e8['id'],'params':{'unitId':_0x3b9222[_0x7f4748(0x30f)],'resource':_0x3b9222[_0x7f4748(0x290)]}},'resourceUndo':{'id':_0x1245e8['id'],'params':{'unitId':_0x3b9222['unitId'],'resource':_0x3b9222[_0x7f4748(0x21e)]}}};}function _0x8660bc(_0x3a9d5a,_0x2e620a,_0x1cbde6,_0x49311e){const _0x2ff6cf=_0x2dd6cc;_0x49311e[_0x2ff6cf(0x288)]({'id':_0x3a9d5a[_0x2ff6cf(0x2d3)]+':'+_0x3a9d5a[_0x2ff6cf(0x2e1)],'unitID':_0x3a9d5a[_0x2ff6cf(0x30f)],'redoMutations':[..._0x3a9d5a[_0x2ff6cf(0x29d)][_0x2ff6cf(0x2de)]?[_0x3a9d5a[_0x2ff6cf(0x29d)]['redoMutation']]:[],..._0x2e620a['documentRedo']?[_0x2e620a['documentRedo']]:[],_0x2e620a['resourceRedo']],'undoMutations':[_0x2e620a['resourceUndo'],..._0x1cbde6?[_0x1cbde6]:[],..._0x3a9d5a[_0x2ff6cf(0x29d)]['undoMutation']?[_0x3a9d5a[_0x2ff6cf(0x29d)]['undoMutation']]:[]]});}function _0x287b85(_0x3f6cdb){const _0x2762c4=_0x2dd6cc;let _0x530fd1=_0x3f6cdb[_0x2762c4(0x221)][_0x2762c4(0x249)](_0x268d47[_0x2762c4(0x1ef)]),_0x30f62f=_0x3f6cdb[_0x2762c4(0x221)][_0x2762c4(0x249)](_0x268d47[_0x2762c4(0x2ff)]),_0x551318=_0x3f6cdb[_0x2762c4(0x221)][_0x2762c4(0x249)](_0x13b587[_0x2762c4(0x2d7)]),_0x43e76b=_0x476677(_0x3f6cdb);if(!_0x43e76b)return!0x1;let _0x6dfb78=!0x1,_0x3cbb44=null,_0x112753=!0x1;try{if(_0x3f6cdb[_0x2762c4(0x29d)][_0x2762c4(0x2de)]){if(!_0x530fd1[_0x2762c4(0x1f8)](_0x3f6cdb[_0x2762c4(0x29d)]['redoMutation']['id'],_0x3f6cdb[_0x2762c4(0x29d)][_0x2762c4(0x2de)]['params']))return!0x1;_0x6dfb78=!0x0;}if(_0x43e76b[_0x2762c4(0x30a)]){let _0x39366a=_0x530fd1[_0x2762c4(0x1f8)](_0x43e76b[_0x2762c4(0x30a)]['id'],_0x43e76b['documentRedo'][_0x2762c4(0x2d5)]);if(!_0x39366a)return _0xb9b145(_0x530fd1,_0x3f6cdb[_0x2762c4(0x29d)],_0x6dfb78),!0x1;_0x3cbb44={'id':_0x13b587[_0x2762c4(0x1eb)]['id'],'params':{..._0x39366a,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x530fd1[_0x2762c4(0x1f8)](_0x43e76b[_0x2762c4(0x24a)]['id'],_0x43e76b[_0x2762c4(0x24a)][_0x2762c4(0x2d5)]))return _0x25a2c0(_0x530fd1,_0x3cbb44),_0xb9b145(_0x530fd1,_0x3f6cdb[_0x2762c4(0x29d)],_0x6dfb78),!0x1;_0x112753=!0x0,_0x8660bc(_0x3f6cdb,_0x43e76b,_0x3cbb44,_0x30f62f);}catch(_0x588ff9){throw _0x112753&&_0x530fd1[_0x2762c4(0x1f8)](_0x43e76b[_0x2762c4(0x224)]['id'],_0x43e76b[_0x2762c4(0x224)][_0x2762c4(0x2d5)]),_0x25a2c0(_0x530fd1,_0x3cbb44),_0xb9b145(_0x530fd1,_0x3f6cdb['externalMutations'],_0x6dfb78),_0x588ff9;}return _0x551318[_0x2762c4(0x2f8)]([{'startOffset':_0x3f6cdb[_0x2762c4(0x23d)],'endOffset':_0x3f6cdb[_0x2762c4(0x23d)],'segmentId':''}],{'unitId':_0x3f6cdb['unitId'],'subUnitId':_0x3f6cdb[_0x2762c4(0x30f)]},!0x1,{[_0x13b587[_0x2762c4(0x304)]]:!0x0}),!0x0;}function _0x2a0ac5(_0x259087,_0x210302,_0x1dbc52,_0xa033ab,_0x35b562,_0x4369bd){const _0x1a2d2e=_0x2dd6cc;let _0x35f1db=_0x383ae5(_0x1dbc52,_0xa033ab,(0x0,_0x268d47[_0x1a2d2e(0x2c8)])(_0x259087,''));return _0x35f1db?{'id':_0x13b587[_0x1a2d2e(0x1eb)]['id'],'params':{'unitId':_0x210302,'actions':_0x35f1db,'segmentId':'','textRanges':[{'startOffset':_0x35b562,'endOffset':_0x35b562,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x4369bd}}:null;}function _0x25a2c0(_0x29319f,_0x14ba57){const _0x1b4a4e=_0x2dd6cc;_0x14ba57&&_0x29319f[_0x1b4a4e(0x1f8)](_0x14ba57['id'],_0x14ba57[_0x1b4a4e(0x2d5)]);}function _0xb9b145(_0x2b6bad,_0x1d5d62,_0x20c652){const _0x1e6f1c=_0x2dd6cc;_0x20c652&&_0x1d5d62[_0x1e6f1c(0x1d4)]&&_0x2b6bad[_0x1e6f1c(0x1f8)](_0x1d5d62[_0x1e6f1c(0x1d4)]['id'],_0x1d5d62[_0x1e6f1c(0x1d4)][_0x1e6f1c(0x2d5)]);}function _0x383ae5(_0x348555,_0x52dfc5,_0x28a1b6){const _0x35fb24=_0x2dd6cc;let _0x2b1627=_0x348555[_0x35fb24(0x31e)],_0x5b763a=_0x52dfc5[_0x35fb24(0x31e)],_0x10c9d7=_0x497697(_0x2b1627==null?void 0x0:_0x2b1627['dataStream'],_0x5b763a==null?void 0x0:_0x5b763a[_0x35fb24(0x2ea)]);if(!_0x10c9d7||!_0x5b763a)return null;let _0x260304=new _0x268d47[(_0x35fb24(0x1f7))]();return _0x260304[_0x35fb24(0x25f)](_0x10c9d7[_0x35fb24(0x2f3)]),_0x10c9d7[_0x35fb24(0x28c)]>0x0&&_0x260304[_0x35fb24(0x294)](_0x10c9d7[_0x35fb24(0x28c)],(0x0,_0x268d47[_0x35fb24(0x268)])(_0x5b763a,_0x10c9d7[_0x35fb24(0x2f3)],_0x10c9d7['start']+_0x10c9d7[_0x35fb24(0x28c)],!0x1)),_0x10c9d7[_0x35fb24(0x201)]>0x0&&_0x260304[_0x35fb24(0x2aa)](_0x10c9d7[_0x35fb24(0x201)]),_0x268d47[_0x35fb24(0x258)]['getInstance']()['editOp'](_0x260304[_0x35fb24(0x251)](),_0x28a1b6);}function _0x497697(_0x3879b0,_0x418d77){const _0x8f301d=_0x2dd6cc;if(_0x3879b0==null||_0x418d77==null||_0x3879b0===_0x418d77)return null;let _0x30d6bc=0x0;for(;_0x30d6bc<_0x3879b0[_0x8f301d(0x28f)]&&_0x30d6bc<_0x418d77[_0x8f301d(0x28f)]&&_0x3879b0[_0x30d6bc]===_0x418d77[_0x30d6bc];)_0x30d6bc+=0x1;let _0x11a9a1=_0x3879b0['length'],_0x39ae8e=_0x418d77[_0x8f301d(0x28f)];for(;_0x11a9a1>_0x30d6bc&&_0x39ae8e>_0x30d6bc&&_0x3879b0[_0x11a9a1-0x1]===_0x418d77[_0x39ae8e-0x1];)--_0x11a9a1,--_0x39ae8e;return{'start':_0x30d6bc,'deleteLength':_0x11a9a1-_0x30d6bc,'insertLength':_0x39ae8e-_0x30d6bc};}function _0x28db7b(_0x31b277){const _0x16e26d=_0x2dd6cc;return{'formulas':Object[_0x16e26d(0x2b7)](Object['entries'](_0x31b277[_0x16e26d(0x2a3)])[_0x16e26d(0x1cf)](([_0x2f25b0,_0x2e1829])=>[_0x2f25b0,{..._0x2e1829,..._0x2e1829[_0x16e26d(0x23f)]?{'numberFormat':{..._0x2e1829[_0x16e26d(0x23f)]}}:null,..._0x2e1829[_0x16e26d(0x2c2)]?{'lastValue':{..._0x2e1829[_0x16e26d(0x2c2)]}}:null}]))};}let _0x4a4ef0=class extends _0x268d47[_0x2dd6cc(0x298)]{constructor(_0x1f6f12,_0x1332d5,_0x169c11,_0x39e933){const _0x2b06f0=_0x2dd6cc;super(),this[_0x2b06f0(0x30d)]=_0x1f6f12,this[_0x2b06f0(0x261)]=_0x1332d5,this['_model']=_0x169c11,this[_0x2b06f0(0x2c0)]=_0x39e933,_0x2997b9(this,'_pendingUnitIds',new Set()),_0x2997b9(this,'_syncScheduled',!0x1),_0x2997b9(this,_0x2b06f0(0x1e0),!0x1),this[_0x2b06f0(0x30d)]['getAllUnitsForType'](_0x268d47[_0x2b06f0(0x212)][_0x2b06f0(0x254)])[_0x2b06f0(0x2e9)](_0x469ca8=>this[_0x2b06f0(0x2c0)][_0x2b06f0(0x2c9)](_0x469ca8)),this[_0x2b06f0(0x2d2)](this[_0x2b06f0(0x2bb)][_0x2b06f0(0x2bc)][_0x2b06f0(0x28a)](({unitId:_0x43d3e7})=>this[_0x2b06f0(0x229)](_0x43d3e7))),this[_0x2b06f0(0x2d2)](this[_0x2b06f0(0x30d)][_0x2b06f0(0x1f6)][_0x2b06f0(0x28a)](({unit:_0x2b0b68})=>{const _0xd12d=_0x2b06f0;_0x2b0b68[_0xd12d(0x253)]===_0x268d47[_0xd12d(0x212)][_0xd12d(0x254)]&&this[_0xd12d(0x1d2)](_0x2b0b68[_0xd12d(0x204)]());})),this[_0x2b06f0(0x2d2)](this[_0x2b06f0(0x30d)][_0x2b06f0(0x284)][_0x2b06f0(0x28a)](_0x38bf09=>{const _0x53d48f=_0x2b06f0;this[_0x53d48f(0x2c0)][_0x53d48f(0x1fb)](_0x38bf09[_0x53d48f(0x204)]());})),this[_0x2b06f0(0x2d2)](this[_0x2b06f0(0x261)][_0x2b06f0(0x29b)](_0x707ef7=>{const _0x4d80b2=_0x2b06f0;if(_0x707ef7['id']===_0x13b587[_0x4d80b2(0x1eb)]['id']&&_0x543fff(_0x707ef7[_0x4d80b2(0x2d5)])){let _0x290750=_0x707ef7[_0x4d80b2(0x2d5)];_0x290750[_0x4d80b2(0x233)]||this[_0x4d80b2(0x229)](_0x290750[_0x4d80b2(0x30f)]);}}));}[_0x2dd6cc(0x259)](){const _0x1fb1fd=_0x2dd6cc;this['_isDisposed']=!0x0,super[_0x1fb1fd(0x259)]();}[_0x2dd6cc(0x1d2)](_0x2e2968){const _0x56c577=_0x2dd6cc;this['_pendingUnitIds']['add'](_0x2e2968),this[_0x56c577(0x20b)]||(this[_0x56c577(0x20b)]=!0x0,queueMicrotask(()=>{const _0x4479c9=_0x56c577;if(this['_syncScheduled']=!0x1,this[_0x4479c9(0x1e0)])return;let _0x2a3458=Array[_0x4479c9(0x295)](this[_0x4479c9(0x246)]);this[_0x4479c9(0x246)]['clear'](),_0x2a3458[_0x4479c9(0x2e9)](_0x32805f=>this[_0x4479c9(0x229)](_0x32805f));}));}[_0x2dd6cc(0x229)](_0x7e6b0a){const _0x3d296d=_0x2dd6cc;let _0x2f5a45=this['_instanceService'][_0x3d296d(0x2a2)](_0x7e6b0a,_0x268d47[_0x3d296d(0x212)][_0x3d296d(0x254)]);_0x2f5a45&&this[_0x3d296d(0x2c0)][_0x3d296d(0x2c9)](_0x2f5a45);}};_0x4a4ef0=_0x1047e5([_0x26635b(0x0,_0x268d47[_0x2dd6cc(0x292)]),_0x26635b(0x1,_0x268d47[_0x2dd6cc(0x1ef)]),_0x26635b(0x2,(0x0,_0x268d47[_0x2dd6cc(0x266)])(_0x400aa0)),_0x26635b(0x3,(0x0,_0x268d47[_0x2dd6cc(0x266)])(_0xd0fdb1))],_0x4a4ef0);function _0x543fff(_0x37c442){const _0x335b0d=_0x2dd6cc;return typeof _0x37c442==_0x335b0d(0x2f0)&&!!_0x37c442&&_0x335b0d(0x30f)in _0x37c442&&typeof _0x37c442[_0x335b0d(0x30f)]==_0x335b0d(0x1de)&&(!(_0x335b0d(0x233)in _0x37c442)||_0x37c442[_0x335b0d(0x233)]===void 0x0||typeof _0x37c442[_0x335b0d(0x233)]==_0x335b0d(0x1de));}let _0x13cea0=class extends _0x268d47[_0x2dd6cc(0x298)]{constructor(_0x1cdc9a,_0x14feec){const _0x414364=_0x2dd6cc;super(),this[_0x414364(0x215)]=_0x1cdc9a,this[_0x414364(0x217)]=_0x14feec,this[_0x414364(0x2d2)](this[_0x414364(0x215)]['registerPluginResource']({'pluginName':_0x422f2b,'businesses':[_0x268d47[_0x414364(0x212)][_0x414364(0x254)]],'toJson':_0x2195b4=>JSON[_0x414364(0x1f1)](this[_0x414364(0x217)][_0x414364(0x251)](_0x2195b4)),'parseJson':_0x2ca72c=>JSON[_0x414364(0x22c)](_0x2ca72c),'onLoad':(_0x3aa044,_0x26022a)=>{const _0xba6e89=_0x414364;this[_0xba6e89(0x217)][_0xba6e89(0x1d8)](_0x3aa044,_0x26022a);},'onUnLoad':_0x32a460=>this['_docFormulaModel'][_0x414364(0x1e1)](_0x32a460)}));}};_0x13cea0=_0x1047e5([_0x26635b(0x0,_0x268d47[_0x2dd6cc(0x29f)]),_0x26635b(0x1,(0x0,_0x268d47[_0x2dd6cc(0x266)])(_0x400aa0))],_0x13cea0);var _0x4a78a4=_0x2dd6cc(0x2ec),_0x6c6a1a='1.4.0';let _0x3b21dd={},_0x222882=class extends _0x268d47[_0x2dd6cc(0x298)]{constructor(_0x3b1b3b,_0x339d2e,_0x1f57c4){const _0x536a93=_0x2dd6cc;super(),this[_0x536a93(0x2c1)]=_0x3b1b3b,this[_0x536a93(0x2e0)]=_0x339d2e,this['disposeWithMe'](_0x1f57c4[_0x536a93(0x1e8)]({'resolve':(_0x5f0b7f,_0x1356f3)=>{const _0x4d3d7e=_0x536a93;var _0x26dec7;return((_0x26dec7=_0x1356f3['customRanges'])==null?void 0x0:_0x26dec7[_0x4d3d7e(0x2d9)](_0x10ebc7)[_0x4d3d7e(0x1cf)](_0x2ba9aa=>({'startOffset':_0x2ba9aa['startIndex'],'endOffset':_0x2ba9aa[_0x4d3d7e(0x31b)]+0x1,'text':this['resolveFormula'](_0x5f0b7f,_0x2ba9aa[_0x4d3d7e(0x2e1)])})))??[];}})),this[_0x536a93(0x2d2)](this['_formulaService'][_0x536a93(0x267)][_0x536a93(0x28a)](({unitId:_0x44ed63})=>{_0x1f57c4['notifyTextChanged'](_0x44ed63);}));}[_0x2dd6cc(0x214)](_0x572d87,_0x8df16d){const _0x5849a3=_0x2dd6cc;var _0x5089fa;return((_0x5089fa=this['_formulaService'][_0x5849a3(0x241)]({'unitId':_0x572d87,'rangeId':_0x8df16d}))==null?void 0x0:_0x5089fa['text'])??'';}['resolveText'](_0x20bcf1,_0x5e4e4d,_0x1e293b){const _0x5c955a=_0x2dd6cc;var _0x306f5f;let _0x928583=this[_0x5c955a(0x2c1)][_0x5c955a(0x2a2)](_0x20bcf1,_0x268d47['UniverInstanceType'][_0x5c955a(0x254)]),_0x50f65e=_0x928583==null?void 0x0:_0x928583[_0x5c955a(0x27f)]();if(!_0x50f65e)return'';let _0x51259a=_0x50f65e[_0x5c955a(0x2ea)]['slice'](_0x5e4e4d,_0x1e293b),_0x50f127=((_0x306f5f=_0x50f65e[_0x5c955a(0x31a)])==null?void 0x0:_0x306f5f['filter'](_0x2c2aac=>_0x10ebc7(_0x2c2aac)&&_0x2c2aac['startIndex']>=_0x5e4e4d&&_0x2c2aac[_0x5c955a(0x31b)]<_0x1e293b)[_0x5c955a(0x203)]((_0x552d82,_0x34380a)=>_0x34380a[_0x5c955a(0x210)]-_0x552d82['startIndex']))??[];for(let _0x543010 of _0x50f127){let _0x2a270c=_0x543010[_0x5c955a(0x210)]-_0x5e4e4d,_0x2c3cab=_0x543010[_0x5c955a(0x31b)]-_0x5e4e4d+0x1;_0x51259a=''+_0x51259a[_0x5c955a(0x24c)](0x0,_0x2a270c)+this[_0x5c955a(0x214)](_0x20bcf1,_0x543010[_0x5c955a(0x2e1)])+_0x51259a['slice'](_0x2c3cab);}return _0x51259a;}[_0x2dd6cc(0x2f1)](_0x180c99){return _0x25d135(_0x180c99);}[_0x2dd6cc(0x24d)](_0x319dc2,_0xd856d8,_0x49cbb1={}){const _0x39df64=_0x2dd6cc;var _0x430ff5;return _0xff40f2({'id':_0x319dc2,'body':_0xd856d8,'documentStyle':{}},(((_0x430ff5=_0xd856d8[_0x39df64(0x31a)])==null?void 0x0:_0x430ff5[_0x39df64(0x2d9)](_0x10ebc7))??[])['map'](_0x4b175c=>({'rangeId':_0x4b175c['rangeId'],'text':_0x49cbb1[_0x4b175c[_0x39df64(0x2e1)]]??this[_0x39df64(0x214)](_0x319dc2,_0x4b175c[_0x39df64(0x2e1)])})))['body']??{'dataStream':''};}};_0x222882=_0x1047e5([_0x26635b(0x0,_0x268d47['IUniverInstanceService']),_0x26635b(0x1,(0x0,_0x268d47[_0x2dd6cc(0x266)])(_0xd0fdb1)),_0x26635b(0x2,(0x0,_0x268d47['Inject'])(_0x13b587['DocTextResolverService']))],_0x222882);function _0x25d135(_0x4275d1){const _0x5155f2=_0x2dd6cc;var _0x2ee3f7,_0x40a4d0;let _0x23654a=_0x37118b(_0x4275d1),_0x2cb4b0=_0xff40f2(_0x4275d1,(((_0x2ee3f7=_0x4275d1[_0x5155f2(0x31e)])==null||(_0x2ee3f7=_0x2ee3f7[_0x5155f2(0x31a)])==null?void 0x0:_0x2ee3f7[_0x5155f2(0x2d9)](_0x10ebc7))??[])[_0x5155f2(0x1cf)](_0x56976e=>({'rangeId':_0x56976e[_0x5155f2(0x2e1)],'text':_0x55f822(_0x23654a==null?void 0x0:_0x23654a[_0x5155f2(0x2a3)][_0x56976e['rangeId']])})));return _0x2cb4b0[_0x5155f2(0x2a6)]=(_0x40a4d0=_0x2cb4b0[_0x5155f2(0x2a6)])==null?void 0x0:_0x40a4d0['filter'](_0x30e854=>_0x30e854[_0x5155f2(0x315)]!==_0x422f2b),_0x2cb4b0;}function _0x37118b(_0x201d14){const _0x828753=_0x2dd6cc;var _0x395c19;let _0xf530b3=(_0x395c19=_0x201d14[_0x828753(0x2a6)])==null||(_0x395c19=_0x395c19['find'](_0xbfa8ba=>_0xbfa8ba['name']===_0x828753(0x2a0)))==null?void 0x0:_0x395c19[_0x828753(0x312)];if(_0xf530b3)try{let _0x39e5bb=JSON[_0x828753(0x22c)](_0xf530b3);return _0x277cf0(_0x39e5bb)?_0x39e5bb:void 0x0;}catch{return;}}function _0x55f822(_0x1ebda3){const _0x1c027c=_0x2dd6cc;return _0x1ebda3?(0x0,_0x35cdb4[_0x1c027c(0x24e)])({'lastValue':_0x1ebda3[_0x1c027c(0x2c2)],'numberFormat':_0x1ebda3[_0x1c027c(0x23f)]})['text']:'';}let _0x25da14=class extends _0x268d47[_0x2dd6cc(0x298)]{constructor(_0x11c9ee,_0x2a974a,_0x333b7e){const _0x1831b5=_0x2dd6cc;super(),this[_0x1831b5(0x2e0)]=_0x11c9ee,this[_0x1831b5(0x1ee)]=_0x2a974a,this[_0x1831b5(0x2d2)](_0x333b7e[_0x1831b5(0x1f3)](this));}[_0x2dd6cc(0x20a)](_0x22f37c){const _0x8f6843=_0x2dd6cc;let _0x28363d=new Map();for(let _0x5dd32a of this[_0x8f6843(0x2e0)][_0x8f6843(0x247)]()){var _0x25476e;if(!this['_cacheEligibilityService'][_0x8f6843(0x28e)](_0x5dd32a['config'][_0x8f6843(0x245)],_0x5dd32a[_0x8f6843(0x2ed)])['eligible'])continue;let _0x1a66de=(0x0,_0x35cdb4[_0x8f6843(0x24b)])(_0x5dd32a['liveResult']),_0x17a4e8=_0x1a66de?(0x0,_0x35cdb4['toFormulaLastValue'])(_0x1a66de):null;if(!_0x17a4e8||_0x5e6240(_0x5dd32a[_0x8f6843(0x2b6)][_0x8f6843(0x2c2)],_0x17a4e8))continue;let _0x151ccf=_0x28363d[_0x8f6843(0x249)](_0x5dd32a[_0x8f6843(0x263)][_0x8f6843(0x30f)])??[];_0x151ccf[_0x8f6843(0x2c3)]({'rangeId':_0x5dd32a[_0x8f6843(0x263)][_0x8f6843(0x2e1)],'expectedFormula':_0x5dd32a[_0x8f6843(0x2b6)]['formula'],'expectedNumberFormat':(_0x25476e=_0x5dd32a[_0x8f6843(0x2b6)][_0x8f6843(0x23f)])==null?void 0x0:_0x25476e[_0x8f6843(0x2b5)],'expectedReferenceRevision':_0x5dd32a[_0x8f6843(0x2ce)],'lastValue':_0x17a4e8}),_0x28363d[_0x8f6843(0x234)](_0x5dd32a['identity'][_0x8f6843(0x30f)],_0x151ccf);}return Array[_0x8f6843(0x295)](_0x28363d,([_0x22ef38,_0x5a8f40])=>({'id':_0x5b0b65['id'],'params':{'unitId':_0x22ef38,'updates':_0x5a8f40}}));}};_0x25da14=_0x1047e5([_0x26635b(0x0,(0x0,_0x268d47[_0x2dd6cc(0x266)])(_0xd0fdb1)),_0x26635b(0x1,(0x0,_0x268d47['Inject'])(_0x35cdb4[_0x2dd6cc(0x21f)])),_0x26635b(0x2,(0x0,_0x268d47[_0x2dd6cc(0x266)])(_0x35cdb4[_0x2dd6cc(0x29a)]))],_0x25da14);function _0x5e6240(_0x4ed543,_0x18b7d5){const _0x3af7bc=_0x2dd6cc;return(_0x4ed543==null?void 0x0:_0x4ed543['v'])===_0x18b7d5['v']&&(_0x4ed543==null?void 0x0:_0x4ed543['t'])===_0x18b7d5['t']&&(_0x4ed543==null?void 0x0:_0x4ed543[_0x3af7bc(0x2b5)])===_0x18b7d5[_0x3af7bc(0x2b5)];}let _0x4204df=class extends _0x268d47[_0x2dd6cc(0x230)]{constructor(_0x221bf1=_0x3b21dd,_0x47bb91,_0x3b4fb5,_0x29cb8b){const _0x2be84b=_0x2dd6cc;super(),this[_0x2be84b(0x21b)]=_0x221bf1,this[_0x2be84b(0x262)]=_0x47bb91,this[_0x2be84b(0x261)]=_0x3b4fb5,this[_0x2be84b(0x225)]=_0x29cb8b;let {..._0x501299}=(0x0,_0x268d47[_0x2be84b(0x1d1)])({},_0x3b21dd,this[_0x2be84b(0x21b)]);this['_configService'][_0x2be84b(0x272)](_0x2be84b(0x27c),_0x501299);}[_0x2dd6cc(0x213)](){const _0x2d1a6f=_0x2dd6cc;this['_injector']['add']([_0x400aa0]),this[_0x2d1a6f(0x262)][_0x2d1a6f(0x2db)]([_0xd0fdb1]),this['_injector'][_0x2d1a6f(0x2db)]([_0x13cea0]),this[_0x2d1a6f(0x262)]['add']([_0x4a4ef0]),this['_injector'][_0x2d1a6f(0x2db)]([_0x25da14]),this[_0x2d1a6f(0x262)][_0x2d1a6f(0x2db)]([_0x222882]),(0x0,_0x268d47[_0x2d1a6f(0x2b8)])(this['_injector'],[[_0x400aa0],[_0x13cea0],[_0x4a4ef0],[_0x25da14],[_0x222882]]),[_0x2a530f,_0x36f934,_0x1245e8,_0x5b0b65,_0x2e61bb,_0x19bd2b,_0x450b4f,_0x36cdb0,_0x360b38,_0x4196d1][_0x2d1a6f(0x2e9)](_0x4de43d=>this['disposeWithMe'](this[_0x2d1a6f(0x261)][_0x2d1a6f(0x2c6)](_0x4de43d)));}};_0x2997b9(_0x4204df,_0x2dd6cc(0x2f6),_0x422f2b),_0x2997b9(_0x4204df,'packageName',_0x4a78a4),_0x2997b9(_0x4204df,_0x2dd6cc(0x235),_0x6c6a1a),_0x2997b9(_0x4204df,'type',_0x268d47['UniverInstanceType'][_0x2dd6cc(0x254)]),_0x4204df=_0x1047e5([(0x0,_0x268d47[_0x2dd6cc(0x2bd)])(_0x3ae0fa[_0x2dd6cc(0x2e4)],_0x35cdb4[_0x2dd6cc(0x1e6)],_0x13b587[_0x2dd6cc(0x2b0)]),_0x26635b(0x1,(0x0,_0x268d47['Inject'])(_0x268d47[_0x2dd6cc(0x303)])),_0x26635b(0x2,_0x268d47[_0x2dd6cc(0x1ef)]),_0x26635b(0x3,_0x268d47['IConfigService'])],_0x4204df),_0x54a0ee[_0x2dd6cc(0x2f4)]=_0x4196d1,_0x54a0ee[_0x2dd6cc(0x226)]=_0x4f2d27,_0x54a0ee[_0x2dd6cc(0x286)]='',_0x54a0ee[_0x2dd6cc(0x2a0)]=_0x422f2b,Object[_0x2dd6cc(0x1cd)](_0x54a0ee,_0x2dd6cc(0x300),{'enumerable':!0x0,'get':function(){return _0x222882;}}),Object[_0x2dd6cc(0x1cd)](_0x54a0ee,'DocFormulaLifecycleController',{'enumerable':!0x0,'get':function(){return _0x4a4ef0;}}),_0x54a0ee[_0x2dd6cc(0x1f4)]=_0x400aa0,Object[_0x2dd6cc(0x1cd)](_0x54a0ee,_0x2dd6cc(0x2ad),{'enumerable':!0x0,'get':function(){return _0x13cea0;}}),_0x54a0ee[_0x2dd6cc(0x20e)]=_0x4057d2,Object[_0x2dd6cc(0x1cd)](_0x54a0ee,_0x2dd6cc(0x2b1),{'enumerable':!0x0,'get':function(){return _0xd0fdb1;}}),_0x54a0ee[_0x2dd6cc(0x1fa)]=_0x2e61bb,_0x54a0ee[_0x2dd6cc(0x2ba)]=_0x4d259a,_0x54a0ee['RemoveDocFormulaCommand']=_0x36cdb0,_0x54a0ee[_0x2dd6cc(0x309)]=_0x36f934,_0x54a0ee[_0x2dd6cc(0x1fc)]=_0x360b38,_0x54a0ee['SetDocFormulaLastValuesMutation']=_0x5b0b65,_0x54a0ee['SetDocFormulaMutation']=_0x2a530f,_0x54a0ee[_0x2dd6cc(0x219)]=_0x450b4f,_0x54a0ee[_0x2dd6cc(0x228)]=_0x1245e8,Object[_0x2dd6cc(0x1cd)](_0x54a0ee,'UniverDocsFormulaPlugin',{'enumerable':!0x0,'get':function(){return _0x4204df;}}),_0x54a0ee[_0x2dd6cc(0x274)]=_0x19bd2b,_0x54a0ee[_0x2dd6cc(0x2a7)]=_0x23ad2d,_0x54a0ee[_0x2dd6cc(0x296)]=_0x40b110,_0x54a0ee[_0x2dd6cc(0x26d)]=_0x366cd0,_0x54a0ee[_0x2dd6cc(0x21c)]=_0x433876,_0x54a0ee[_0x2dd6cc(0x2fd)]=_0x2e7c75,_0x54a0ee['degradeDocFormulaDocumentData']=_0x25d135,_0x54a0ee[_0x2dd6cc(0x22e)]=_0x5bfb7e,_0x54a0ee[_0x2dd6cc(0x314)]=_0x4a8011,_0x54a0ee[_0x2dd6cc(0x2d0)]=_0x10ebc7,_0x54a0ee[_0x2dd6cc(0x2f2)]=_0x277cf0,_0x54a0ee['isFormulaLastValue']=_0x1f5739;}));function _0x51dc(){const _0x1cf4e1=['asObservable','UpdateDocFormulaCommand','wholeEntity','buildUpsertHostExternalReferenceMutations','isArray','success','updates','exports','_change$','docs-formula.config','rangeType','position','getBody','sequenceNodesBuilder','references','docs-formula.command.convert-to-text','keys','unitDisposed$','RegisterOtherFormulaService','DOC_FORMULA_OBJECT_REPLACEMENT','TABLE_CELL_START','pushUndoRedo','COLUMN_END','subscribe','externalReferences','insertLength','Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries','assess','length','nextResource','getSnapshot','IUniverInstanceService','getOwnPropertyDescriptor','insert','from','buildInsertDocFormulaActions','deepClone','Disposable','3411744QvuGWz','FormulaLastValuePersistenceService','onCommandExecuted','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','externalMutations','pending','IResourceManagerService','DOC_FORMULA_PLUGIN','document','getUnit','formulas','source','getFormula','resources','assertSafeDocFormulaInsertRange','trim','OtherFormulaBizType','delete','TABLE_ROW_END','docs-formula.mutation.remove-formula','DocFormulaResourceController','columnGroups','PARAGRAPH','UniverDocsPlugin','DocFormulaService','_hostExternalReferenceModel','resolved','10iVQckX','pattern','config','fromEntries','touchDependencies','includes','InvalidDocFormulaInsertRangeError','_model','change$','DependentOn','EMPTY','assign','_service','_univerInstanceService','lastValue','push','docs-formula.command.insert','_registrations','registerCommand','TABLE_CELL_END','getRichTextEditPath','syncUnit','tables','function','@univerjs/engine-formula','1722EuQPDF','referenceRevision','CustomRangeType','isDocFormulaRange','COLUMN_GROUP_END','disposeWithMe','trigger','selection','params','32332AnWYzb','DocSelectionManagerService','getFormulaValueSync','filter','Tools','add','docs-formula.command.update','paragraph','redoMutation','_deleteRegistration','_formulaService','rangeId','invalid-resource','endsWith','UniverLicensePlugin','error','CUSTOM_BLOCK','@univerjs/core','find','forEach','dataStream','end','@univerjs-pro/docs-formula','liveResult','univer-docs-formula','TABLE_END','object','degradeDocumentData','isDocFormulaResource','start','ConvertDocFormulaToTextCommand','shiftExclusiveRangeOnDelete','pluginName','amd','replaceDocRanges','shiftInclusiveRangeOnInsert','CommandType','410vjDmAg','empty','createEmptyDocFormulaResource','text','IUndoRedoService','DocFormulaDisplayTextService','Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.','values','Injector','DOC_SELECTION_OPTION_PRESERVE_CARET','range','decorate','isInteger','complete','RemoveDocFormulaMutation','documentRedo','getResource','FormulaResultStatus','_instanceService','startOffset','unitId','expectedNumberFormat','_formulaKeys','data','documentData','isDocFormulaConfig','name','UniverEngineFormula','toStringTag','CellValueType','iterator','customRanges','endIndex','nextDocumentData','presentation','body','paragraphs','defineProperty','_updateFormulaResult','map','getPresentation','merge','_queueSync','previousDocumentData','undoMutation','symbol','1575nwsgvH','_setPresentation','load','default','COMMAND','getLoadError','COLUMN_START','DataStreamTreeTokenType','string','min','_isDisposed','removeUnit','resolveBinding','next','UniverProLicense','docs-formula.mutation.set-last-values','UniverProFormulaEnginePlugin','status','register','endOffset','max','RichTextEditingMutation','kind','_preserveInvalid','_cacheEligibilityService','ICommandService','_registrationService','stringify','443433hgGIxB','registerProvider','DocFormulaModel','docs-formula.command.replace-with-text','unitAdded$','TextX','syncExecuteCommand','12210473YbMdoP','InsertDocFormulaCommand','unregisterUnit','ReplaceDocFormulaWithTextCommand','2gOrbEZ','shiftInclusiveRangeOnDelete','docs-formula.mutation.set-resource','BLOCK_START','deleteLength','getRevision','sort','getUnitId','getFormulas','UniverProEngineFormula','customDecorations','51592FDZRyh','color','collectMutations','_syncScheduled','model','_loadErrors','DocFormulaResultStatus','UniverCore','startIndex','SECTION_BREAK','UniverInstanceType','onStarting','resolveFormula','_resourceManagerService','formulaResult$','_docFormulaModel','some','SetDocFormulaNumberFormatCommand','getCustomRangeInterval','_config','buildUpdateDocFormulaActions','boolean','previousResource','FormulaCacheEligibilityService','paragraphId','accessor','getParagraphContentStartOffset','has','resourceUndo','_configService','DOC_FORMULA_CUSTOM_RANGE_KIND','DOC','SetDocFormulaResourceMutation','_syncUnit','ERROR','cell','parse','customBlocks','findDocFormulaRange','resource','Plugin','19593408tgwwvn','10590CdHsiL','segmentId','set','version','every','PENDING','unregister','_resources','SUCCESS','Subject','docs-formula.command.set-number-format','cursorOffset','target','numberFormat','stale','getResult','@univerjs-pro/license','HostExternalReferenceModel','_presentationChanged$','formula','_pendingUnitIds','getRegisteredFormulas','blockRanges','get','resourceRedo','getScalarFormulaResultCell','slice','degradeBody','resolveFormulaResultPresentation','setFormula','disabled','serialize','number','type','UNIVER_DOC','resolveHostFormulaExternalReferences','LexerTreeBuilder','CUSTOM','JSONX','dispose','TABLE_START','clear','@univerjs/docs','formulaId','registerFormulaWithRange','retain','_rawResources','_commandService','_injector','identity','sectionBreaks','setFormulas','Inject','presentationChanged$','getBodySliceForTextXAction','generateRandomId','prototype','UniverDocs','textRuns','buildRemoveDocFormulaActions','docs-formula.mutation.set-formula','setResource','collectFormulaExternalReferenceQualifiers','MUTATION','setConfig'];_0x51dc=function(){return _0x1cf4e1;};return _0x51dc();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/docs-formula",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "private": false,
5
5
  "description": "Inline data formula model integration for Univer Docs.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -61,26 +61,26 @@
61
61
  "rxjs": ">=7.0.0"
62
62
  },
63
63
  "dependencies": {
64
- "@univerjs-pro/engine-formula": "1.3.0",
65
- "@univerjs-pro/license": "1.3.0",
66
- "@univerjs/core": "1.3.0",
67
- "@univerjs/docs": "1.3.0",
68
- "@univerjs/engine-formula": "1.3.0"
64
+ "@univerjs-pro/engine-formula": "1.4.0",
65
+ "@univerjs-pro/license": "1.4.0",
66
+ "@univerjs/core": "1.4.0",
67
+ "@univerjs/docs": "1.4.0",
68
+ "@univerjs/engine-formula": "1.4.0"
69
69
  },
70
70
  "devDependencies": {
71
- "@univerjs-infra/shared": "1.3.0",
72
- "@univerjs/engine-render": "1.3.0",
71
+ "@univerjs-infra/shared": "1.4.0",
72
+ "@univerjs/engine-render": "1.4.0",
73
73
  "rxjs": "7.8.2",
74
- "typescript": "^6.0.3",
75
- "vitest": "^5.0.4"
74
+ "tsrs": "0.20.1-ts7.1.0-beta",
75
+ "vitest": "^5.0.5"
76
76
  },
77
77
  "scripts": {
78
78
  "test": "vitest run",
79
79
  "test:watch": "vitest",
80
80
  "coverage": "vitest run --coverage",
81
- "typecheck": "tsc --noEmit",
81
+ "typecheck": "tsrs --noEmit",
82
82
  "build:bundle": "univer-cli build",
83
- "build:types": "tsc -p tsconfig.node.json",
83
+ "build:types": "tsrs -p tsconfig.node.json",
84
84
  "build": "pnpm run build:bundle && pnpm run build:types"
85
85
  },
86
86
  "module": "./lib/es/index.js"