@univerjs-pro/docs-formula 1.0.0-rc.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x57d9cc=_0x47e0;(function(_0x1e2447,_0x4981ed){const _0xcc12e4=_0x47e0,_0x236cf4=_0x1e2447();while(!![]){try{const _0x49eec9=parseInt(_0xcc12e4(0x1ca))/0x1+-parseInt(_0xcc12e4(0x10a))/0x2*(parseInt(_0xcc12e4(0x176))/0x3)+-parseInt(_0xcc12e4(0x1cc))/0x4+parseInt(_0xcc12e4(0x12f))/0x5+-parseInt(_0xcc12e4(0x189))/0x6*(-parseInt(_0xcc12e4(0x1bc))/0x7)+parseInt(_0xcc12e4(0xe6))/0x8*(-parseInt(_0xcc12e4(0x154))/0x9)+parseInt(_0xcc12e4(0xea))/0xa;if(_0x49eec9===_0x4981ed)break;else _0x236cf4['push'](_0x236cf4['shift']());}catch(_0x10b469){_0x236cf4['push'](_0x236cf4['shift']());}}}(_0x525a,0x277f5));import{FormulaCacheEligibilityService as _0x589545,FormulaLastValuePersistenceService as _0x4d102c,HostExternalReferenceModel as _0xd24d44,UniverProFormulaEnginePlugin as _0x3cd3d5,buildUpsertHostExternalReferenceMutations as _0x5eee2b,collectFormulaExternalReferenceQualifiers as _0x2db29b,getScalarFormulaResultCell as _0x1bae38,resolveFormulaResultPresentation as _0x819468,resolveHostFormulaExternalReferences as _0x1b4c96,toFormulaLastValue as _0x47e086}from'@univerjs-pro/engine-formula';import{CellValueType as _0x460570,CommandType as _0x50d8aa,CustomRangeType as _0x4f0308,DataStreamTreeTokenType as _0x2213a9,DependentOn as _0x2afdc3,Disposable as _0x6c759e,ICommandService as _0x29cd00,IConfigService as _0x476834,IResourceManagerService as _0x491b6a,IUndoRedoService as _0x3a8e54,IUniverInstanceService as _0x2ec209,Inject as _0x562b77,Injector as _0x14f00e,JSONX as _0x3ed648,Plugin as _0x36ab54,TextX as _0x5899e6,Tools as _0x1cca7e,UniverInstanceType as _0x485006,generateRandomId as _0x317234,getBodySliceForTextXAction as _0x3580b2,getCustomRangeInterval as _0x6f7ad7,getParagraphContentStartOffset as _0x5d3170,getRichTextEditPath as _0x19915,merge as _0x50ef0e,shiftExclusiveRangeOnDelete as _0x5eefc2,shiftExclusiveRangeOnInsert as _0x330ba7,shiftInclusiveRangeOnDelete as _0x93287,shiftInclusiveRangeOnInsert as _0x55cf79,touchDependencies as _0x79798a}from'@univerjs/core';import{DOC_SELECTION_OPTION_PRESERVE_CARET as _0x4ce9e7,DocSelectionManagerService as _0x53d90b,DocTextResolverService as _0x3bca36,RichTextEditingMutation as _0x3fc66a,UniverDocsPlugin as _0x5052e5}from'@univerjs/docs';import{FormulaResultStatus as _0xb8ac26,LexerTreeBuilder as _0x9066cf,OtherFormulaBizType as _0x5ce098,RegisterOtherFormulaService as _0x75c62f}from'@univerjs/engine-formula';import{Subject as _0x5e8940}from'rxjs';import{UniverLicensePlugin as _0x59ff3a}from'@univerjs-pro/license';const y='DOC_FORMULA_PLUGIN',je=0x1,Me=_0x57d9cc(0x118),Ne='';function b(){return{'schemaVersion':0x1,'formulas':{}};}function x(_0x3b3ebe){const _0x2e5626=_0x57d9cc;return!_0x3b3ebe||typeof _0x3b3ebe!='object'||!S(_0x3b3ebe,[_0x2e5626(0x172),'formulas'])||!(_0x2e5626(0x172)in _0x3b3ebe)||_0x3b3ebe[_0x2e5626(0x172)]!==0x1||!('formulas'in _0x3b3ebe)||!_0x3b3ebe['formulas']||typeof _0x3b3ebe[_0x2e5626(0xf6)]!='object'||Array['isArray'](_0x3b3ebe['formulas'])?!0x1:Object['entries'](_0x3b3ebe['formulas'])[_0x2e5626(0x162)](([_0x1c0e49,_0x84dad4])=>_0x1c0e49['length']>0x0&&Pe(_0x84dad4));}function _0x525a(){const _0x1220d9=['tables','call','resourceRedo','ERROR','_loadErrors','646056NleKTh','load','endOffset','object','TABLE_START','rangeId','resolved','_registrationService','next','columnGroups','_resourceManagerService','packageName','numberFormat','slice','DOC','externalMutations','startsWith','referenceRevision','add','previousResource','unsupported-version','TABLE_END','type','Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries','complete','model','customRanges','lastValue','getBody','_change$','clear','syncExecuteCommand','unitId','getFormulaValueSync','unregister','docs-formula.command.update','docs-formula.command.replace-with-text','cell','formula','COLUMN_GROUP_START','getSnapshot','retain','_updateFormulaResult','set','min','replaceDocRanges','getRegisteredFormulas','previousDocumentData','UNIVER_DOC','unregisterUnit','stale','7nujdFw','insert','setResource','resourceUndo','@univerjs-pro/docs-formula','_queueSync','_syncScheduled','empty','_configService','PARAGRAPH','assign','_registrations','_setPresentation','_hostExternalReferenceModel','87660pWseOA','TABLE_CELL_START','734440kacuxL','defineProperty','find','_instanceService','string','getInstance','values','documentData','nextResource','docs-formula.mutation.set-last-values','delete','params','textRuns','sectionBreaks','identity','setFormula','degradeBody','registerPluginResource','_formulaKeys','some','iterator','COLUMN_GROUP_END','1066040LrRfQj','get','isInteger','accessor','2489660sHPaWg','endsWith','trigger','range','presentationChanged$','endIndex','_isDisposed','CUSTOM','data','map','startIndex','onStarting','formulas','docs-formula.command.set-number-format','kind','trim','paragraph','insertLength','setFormulas','length','start','rangeType','startOffset','registerFormulaWithRange','paragraphs','decorate','undoMutation','_formulaService','document','source','serialize','disposeWithMe','25020dwhufz','liveResult','selection','number','presentation','deepClone','version','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_deleteRegistration','text','_preserveInvalid','getRevision','getAllUnitsForType','docs-formula.mutation.set-formula','univer-docs-formula','_config','getTextRanges','body','docs-formula.command.convert-to-text','deleteLength','symbol','getCurrentUnitOfType','redoMutation','pattern','Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.','unitDisposed$','_rawResources','_commandService','_model','max','constructor','COLUMN_START','collectMutations','_resources','from','_pendingUnitIds','TABLE_CELL_END','1235070dWrrgn','getOwnPropertyDescriptor','resource','end','COMMAND','_docFormulaModel','1.0.0-rc.0','MUTATION','properties','updates','forEach','config','TABLE_ROW_START','EMPTY','dataStream','documentRedo','includes','BLOCK_START','getUnit','nextDocumentData','name','push','removeFormula','_service','editOp','registerCommand','dispose','docs-formula.command.remove','blockRanges','default','getFormulas','CUSTOM_BLOCK','sequenceNodesBuilder','SUCCESS','customDecorations','function','degradeDocumentData','9SobsTd','success','has','stringify','COLUMN_END','getResult','resolveBinding','_injector','sort','docs-formula.mutation.set-resource','status','pushUndoRedo','customBlocks','position','every','_univerInstanceService','resolveFormula','segmentId','getResource','formulaId','cursorOffset','register','getLoadError','expectedReferenceRevision','subscribe','parse','keys','resources','color','_syncUnit','schemaVersion','PENDING','disabled','resolveText','51uwxoZK','eligible','pending','SECTION_BREAK','syncUnit','filter','docs-formula.mutation.remove-formula','boolean','toPrimitive','asObservable','getFormula','getUnitId','expectedFormula','_presentationChanged$'];_0x525a=function(){return _0x1220d9;};return _0x525a();}function Pe(_0x2bce2d){const _0x21be3=_0x57d9cc;return!_0x2bce2d||typeof _0x2bce2d!=_0x21be3(0x18c)||!S(_0x2bce2d,[_0x21be3(0x1af),'numberFormat',_0x21be3(0x1a4)])||!('formula'in _0x2bce2d)||typeof _0x2bce2d[_0x21be3(0x1af)]!='string'||!_0x2bce2d['formula'][_0x21be3(0xf9)]()||_0x21be3(0x195)in _0x2bce2d&&_0x2bce2d[_0x21be3(0x195)]!=null&&(typeof _0x2bce2d[_0x21be3(0x195)]!='object'||!S(_0x2bce2d[_0x21be3(0x195)],[_0x21be3(0x121)])||!(_0x21be3(0x121)in _0x2bce2d['numberFormat'])||typeof _0x2bce2d[_0x21be3(0x195)][_0x21be3(0x121)]!='string')?!0x1:!(_0x21be3(0x1a4)in _0x2bce2d)||_0x2bce2d[_0x21be3(0x1a4)]==null||Fe(_0x2bce2d[_0x21be3(0x1a4)]);}function Fe(_0x395e25){const _0x5a2077=_0x57d9cc;return!_0x395e25||typeof _0x395e25!='object'||!S(_0x395e25,['v','t',_0x5a2077(0x121)])||!('v'in _0x395e25)||_0x395e25['v']!==null&&typeof _0x395e25['v']!=_0x5a2077(0x1d0)&&typeof _0x395e25['v']!=_0x5a2077(0x10d)&&typeof _0x395e25['v']!=_0x5a2077(0x17d)||'t'in _0x395e25&&_0x395e25['t']!=null&&!Ie(_0x395e25['t'])?!0x1:!(_0x5a2077(0x121)in _0x395e25)||_0x395e25['pattern']==null||typeof _0x395e25[_0x5a2077(0x121)]==_0x5a2077(0x1d0);}function S(_0xb65c73,_0x5a1463){const _0x57165f=_0x57d9cc;let _0x5b59ab=new Set(_0x5a1463);return Object['keys'](_0xb65c73)[_0x57165f(0x162)](_0x4192c0=>_0x5b59ab['has'](_0x4192c0));}function Ie(_0x107019){const _0x49c4e9=_0x57d9cc;return typeof _0x107019==_0x49c4e9(0x10d)&&Object[_0x49c4e9(0x1d2)](_0x460570)[_0x49c4e9(0x13f)](_0x107019);}const Le=new Set([_0x2213a9[_0x57d9cc(0x179)],_0x2213a9[_0x57d9cc(0x18d)],_0x2213a9[_0x57d9cc(0x13b)],_0x2213a9[_0x57d9cc(0x1cb)],_0x2213a9[_0x57d9cc(0x12e)],_0x2213a9['TABLE_ROW_END'],_0x2213a9[_0x57d9cc(0x19e)],_0x2213a9[_0x57d9cc(0x1b0)],_0x2213a9[_0x57d9cc(0x129)],_0x2213a9[_0x57d9cc(0x158)],_0x2213a9[_0x57d9cc(0xe5)],_0x2213a9[_0x57d9cc(0x140)],_0x2213a9['BLOCK_END'],_0x2213a9[_0x57d9cc(0x14e)]]);var C=class extends Error{constructor(){const _0x342474=_0x57d9cc;super(_0x342474(0x1a0));}};function Re(_0x2c4a84){const _0x10638a=_0x57d9cc;var _0x192651,_0x1ddb97;let _0x5637cc=_0x1cca7e[_0x10638a(0x10f)](_0x2c4a84[_0x10638a(0x1d3)]),_0x8dcc36=j(_0x5637cc),{startOffset:_0x359b1b,endOffset:_0x1ad629}=We(_0x8dcc36,_0x2c4a84[_0x10638a(0x100)],_0x2c4a84[_0x10638a(0x18b)]);He(_0x8dcc36,_0x359b1b,_0x1ad629);let _0x487fcb=((_0x192651=_0x8dcc36[_0x10638a(0x1a3)])==null?void 0x0:_0x192651[_0x10638a(0x17b)](_0x2b6c0d=>{const _0xe9bff3=_0x10638a;if(!w(_0x2b6c0d))return!0x1;let _0x25a1aa=_0x6f7ad7(_0x2b6c0d);return _0x25a1aa[_0xe9bff3(0x18b)]>_0x359b1b&&_0x25a1aa['startOffset']<_0x1ad629;})[_0x10638a(0xf3)](_0x258a26=>_0x258a26[_0x10638a(0x18e)]))??[];qe(_0x8dcc36,_0x359b1b,_0x1ad629,''),_0x8dcc36[_0x10638a(0x1a3)]=[...((_0x1ddb97=_0x8dcc36[_0x10638a(0x1a3)])==null?void 0x0:_0x1ddb97[_0x10638a(0x17b)](_0x1280bf=>!_0x487fcb[_0x10638a(0x13f)](_0x1280bf[_0x10638a(0x18e)])&&_0x1280bf['rangeId']!==_0x2c4a84[_0x10638a(0x18e)]))??[],Ue(_0x2c4a84[_0x10638a(0x18e)],_0x359b1b)][_0x10638a(0x15c)]((_0x1e8e6b,_0x23980c)=>_0x1e8e6b[_0x10638a(0xf4)]-_0x23980c[_0x10638a(0xf4)]);let _0x112ce3=E(_0x2c4a84[_0x10638a(0x131)]);return _0x487fcb['forEach'](_0x2fbfb0=>{delete _0x112ce3['formulas'][_0x2fbfb0];}),_0x112ce3[_0x10638a(0xf6)][_0x2c4a84[_0x10638a(0x18e)]]=_0x1cca7e[_0x10638a(0x10f)](_0x2c4a84['config']),{'nextDocumentData':_0x5637cc,'nextResource':_0x112ce3,'cursorOffset':_0x359b1b+0x1};}function ze(_0x239863){const _0x31f40a=_0x57d9cc;var _0x2c6bd6,_0x2dfc0f;let _0x5ba6cc=_0x1cca7e[_0x31f40a(0x10f)](_0x239863[_0x31f40a(0x1d3)]),_0x5a330c=(_0x2c6bd6=j(_0x5ba6cc)[_0x31f40a(0x1a3)])==null?void 0x0:_0x2c6bd6[_0x31f40a(0x1ce)](_0x289514=>_0x289514[_0x31f40a(0x18e)]===_0x239863[_0x31f40a(0x18e)]&&w(_0x289514));if(!_0x5a330c||!((_0x2dfc0f=_0x239863[_0x31f40a(0x131)])!=null&&_0x2dfc0f[_0x31f40a(0xf6)][_0x239863[_0x31f40a(0x18e)]]))return null;let _0x5364df=E(_0x239863[_0x31f40a(0x131)]);return _0x5364df[_0x31f40a(0xf6)][_0x239863[_0x31f40a(0x18e)]]=_0x1cca7e[_0x31f40a(0x10f)](_0x239863[_0x31f40a(0x13a)]),{'nextDocumentData':_0x5ba6cc,'nextResource':_0x5364df,'cursorOffset':_0x5a330c['endIndex']+0x1};}function Be(_0x150cff){const _0x100a61=_0x57d9cc;let _0x5b8c36=_0x1cca7e[_0x100a61(0x10f)](_0x150cff['documentData']),_0x3e29c9=Je(_0x5b8c36,_0x150cff[_0x100a61(0x18e)],_0x150cff['text']??'');if(_0x3e29c9==null)return null;let _0x3a17ac=E(_0x150cff[_0x100a61(0x131)]);return delete _0x3a17ac['formulas'][_0x150cff['rangeId']],{'nextDocumentData':_0x5b8c36,'nextResource':_0x3a17ac,'cursorOffset':_0x3e29c9};}function Ve(_0x5e97ca,_0x1bd7de){const _0x2998c2=_0x57d9cc;var _0x5840a1;let _0x4d9561=_0x1cca7e['deepClone'](_0x5e97ca),_0x2a34a7=_0x4d9561[_0x2998c2(0x11b)];if(!_0x2a34a7)return _0x4d9561;let _0x34c7b5=new Map(_0x1bd7de[_0x2998c2(0xf3)](_0x55ddd8=>[_0x55ddd8[_0x2998c2(0x18e)],_0x55ddd8[_0x2998c2(0x113)]])),_0x5da69b=((_0x5840a1=_0x2a34a7[_0x2998c2(0x1a3)])==null?void 0x0:_0x5840a1['filter'](_0x5825e0=>w(_0x5825e0)&&_0x34c7b5[_0x2998c2(0x156)](_0x5825e0['rangeId']))['sort']((_0x2024b9,_0x3b5776)=>_0x3b5776[_0x2998c2(0xf4)]-_0x2024b9[_0x2998c2(0xf4)]))??[];for(let _0x2e39ba of _0x5da69b)Je(_0x4d9561,_0x2e39ba[_0x2998c2(0x18e)],_0x34c7b5['get'](_0x2e39ba[_0x2998c2(0x18e)])??'');return _0x4d9561;}function w(_0x59c94c){const _0x311d5b=_0x57d9cc;var _0x169577;return(_0x59c94c==null?void 0x0:_0x59c94c[_0x311d5b(0xff)])===_0x4f0308[_0x311d5b(0xf1)]&&_0x59c94c['wholeEntity']===!0x0&&((_0x169577=_0x59c94c[_0x311d5b(0x137)])==null?void 0x0:_0x169577[_0x311d5b(0xf8)])==='univer-docs-formula';}function T(_0x437a75,_0x290452){const _0x1ac4de=_0x57d9cc;var _0x1531e5;return _0x437a75==null||(_0x1531e5=_0x437a75[_0x1ac4de(0x1a3)])==null?void 0x0:_0x1531e5[_0x1ac4de(0x1ce)](_0x434344=>_0x434344[_0x1ac4de(0x18e)]===_0x290452&&w(_0x434344));}function He(_0x3ea42f,_0x3cd67b,_0x113c8c){const _0x46abf1=_0x57d9cc;if(_0x3cd67b===_0x113c8c){if(Le['has'](_0x3ea42f[_0x46abf1(0x13d)][_0x3cd67b]))throw new C();return;}for(let _0x45a7d5=_0x3cd67b;_0x45a7d5<_0x113c8c;_0x45a7d5++)if(_0x3ea42f['dataStream'][_0x45a7d5]===_0x2213a9['PARAGRAPH']||Le[_0x46abf1(0x156)](_0x3ea42f['dataStream'][_0x45a7d5]))throw new C();}function Ue(_0x328a0f,_0x35d9a3){const _0x4b933a=_0x57d9cc;return{'startIndex':_0x35d9a3,'endIndex':_0x35d9a3,'rangeId':_0x328a0f,'rangeType':_0x4f0308[_0x4b933a(0xf1)],'wholeEntity':!0x0,'properties':{'kind':Me}};}function E(_0x60535e){const _0x200d70=_0x57d9cc;return _0x60535e?_0x1cca7e[_0x200d70(0x10f)](_0x60535e):b();}function We(_0x25e3ff,_0x8782e2,_0x220b0a){const _0x31c882=_0x57d9cc;let _0x2131dc=Ke(_0x25e3ff),_0x15fa0b=_0x8782e2??_0x2131dc,_0x30b4cc=_0x220b0a??_0x15fa0b;return{'startOffset':Ge(Math[_0x31c882(0x1b5)](_0x15fa0b,_0x30b4cc),_0x2131dc),'endOffset':Ge(Math[_0x31c882(0x127)](_0x15fa0b,_0x30b4cc),_0x2131dc)};}function Ge(_0x4926d6,_0x19e3c9){const _0x5e0951=_0x57d9cc;return Math[_0x5e0951(0x127)](0x0,Math[_0x5e0951(0x1b5)](_0x4926d6,_0x19e3c9));}function Ke(_0x3efc3d){const _0x311d23=_0x57d9cc;return _0x3efc3d[_0x311d23(0x13d)][_0x311d23(0xeb)](''+_0x2213a9[_0x311d23(0x1c5)]+_0x2213a9[_0x311d23(0x179)])?Math[_0x311d23(0x127)](0x0,_0x3efc3d[_0x311d23(0x13d)][_0x311d23(0xfd)]-0x2):_0x3efc3d[_0x311d23(0x13d)][_0x311d23(0xeb)](_0x2213a9[_0x311d23(0x179)])?Math['max'](0x0,_0x3efc3d[_0x311d23(0x13d)][_0x311d23(0xfd)]-0x1):_0x3efc3d[_0x311d23(0x13d)]['length'];}function qe(_0x3f656a,_0x32691b,_0x328b59,_0x82675a){_0x328b59>_0x32691b&&Xe(_0x3f656a,_0x32691b,_0x328b59),Ye(_0x3f656a,_0x32691b,_0x82675a);}function Je(_0x1a5ee0,_0x2bbfbf,_0x246432){const _0x1ebf03=_0x57d9cc;var _0x17d967,_0x24a318;let _0x395f6e=j(_0x1a5ee0),_0x30aa0d=(_0x17d967=_0x395f6e[_0x1ebf03(0x1a3)])==null?void 0x0:_0x17d967['find'](_0x3d00ed=>_0x3d00ed[_0x1ebf03(0x18e)]===_0x2bbfbf&&w(_0x3d00ed));if(!_0x30aa0d)return null;let _0x2f295c=_0x6f7ad7(_0x30aa0d);return qe(_0x395f6e,_0x2f295c[_0x1ebf03(0x100)],_0x2f295c[_0x1ebf03(0x18b)],_0x246432),_0x395f6e['customRanges']=(_0x24a318=_0x395f6e[_0x1ebf03(0x1a3)])==null?void 0x0:_0x24a318[_0x1ebf03(0x17b)](_0x44ce1b=>_0x44ce1b[_0x1ebf03(0x18e)]!==_0x2bbfbf),_0x2f295c['startOffset']+_0x246432[_0x1ebf03(0xfd)];}function Ye(_0x559506,_0x59def7,_0x4b4fe1){const _0x4d3112=_0x57d9cc;_0x4b4fe1&&(_0x559506[_0x4d3112(0x13d)]=''+_0x559506[_0x4d3112(0x13d)][_0x4d3112(0x196)](0x0,_0x59def7)+_0x4b4fe1+_0x559506[_0x4d3112(0x13d)][_0x4d3112(0x196)](_0x59def7),Ze(_0x559506,_0x59def7,_0x4b4fe1[_0x4d3112(0xfd)]));}function Xe(_0x3c25e8,_0x5373f2,_0x5b53eb){const _0x4690d6=_0x57d9cc;let _0x3d77d8=_0x5b53eb-_0x5373f2;_0x3c25e8['dataStream']=''+_0x3c25e8[_0x4690d6(0x13d)][_0x4690d6(0x196)](0x0,_0x5373f2)+_0x3c25e8['dataStream'][_0x4690d6(0x196)](_0x5b53eb),Qe(_0x3c25e8,_0x5373f2,_0x3d77d8);}function Ze(_0x82d2c1,_0x8f5cd8,_0x3c5e44){const _0xbd063a=_0x57d9cc;_0x82d2c1['paragraphs']=D(_0x82d2c1[_0xbd063a(0x102)],_0x8f5cd8,_0x3c5e44),_0x82d2c1[_0xbd063a(0x1d9)]=D(_0x82d2c1[_0xbd063a(0x1d9)],_0x8f5cd8,_0x3c5e44),_0x82d2c1[_0xbd063a(0x160)]=D(_0x82d2c1[_0xbd063a(0x160)],_0x8f5cd8,_0x3c5e44),_0x82d2c1[_0xbd063a(0x1d8)]=$e(_0x82d2c1[_0xbd063a(0x1d8)],_0x8f5cd8,_0x3c5e44),_0x82d2c1[_0xbd063a(0x184)]=et(_0x82d2c1[_0xbd063a(0x184)],_0x8f5cd8,_0x3c5e44),_0x82d2c1[_0xbd063a(0x192)]=k(_0x82d2c1[_0xbd063a(0x192)],_0x8f5cd8,_0x3c5e44),_0x82d2c1[_0xbd063a(0x1a3)]=k(_0x82d2c1['customRanges'],_0x8f5cd8,_0x3c5e44),_0x82d2c1[_0xbd063a(0x151)]=k(_0x82d2c1['customDecorations'],_0x8f5cd8,_0x3c5e44),_0x82d2c1['blockRanges']=k(_0x82d2c1['blockRanges'],_0x8f5cd8,_0x3c5e44);}function Qe(_0x359a66,_0x5b06a9,_0x1b34c1){const _0x355fcc=_0x57d9cc;var _0x4c1703,_0x8de51d;_0x359a66[_0x355fcc(0x102)]=O(_0x359a66[_0x355fcc(0x102)],_0x5b06a9,_0x1b34c1),_0x359a66[_0x355fcc(0x1d9)]=O(_0x359a66[_0x355fcc(0x1d9)],_0x5b06a9,_0x1b34c1),_0x359a66[_0x355fcc(0x160)]=O(_0x359a66[_0x355fcc(0x160)],_0x5b06a9,_0x1b34c1),_0x359a66[_0x355fcc(0x1d8)]=(_0x4c1703=tt((_0x8de51d=_0x359a66[_0x355fcc(0x1d8)])==null?void 0x0:_0x8de51d['map'](_0x4ddab4=>({..._0x4ddab4,'startIndex':_0x4ddab4['st'],'endIndex':_0x4ddab4['ed']})),_0x5b06a9,_0x1b34c1))==null?void 0x0:_0x4c1703['map'](_0xab1bf4=>{let {startIndex:_0x30a35f,endIndex:_0x1158cd,..._0x2243e0}=_0xab1bf4;return{..._0x2243e0,'st':_0x30a35f,'ed':_0x1158cd};}),_0x359a66[_0x355fcc(0x184)]=tt(_0x359a66[_0x355fcc(0x184)],_0x5b06a9,_0x1b34c1),_0x359a66[_0x355fcc(0x192)]=A(_0x359a66[_0x355fcc(0x192)],_0x5b06a9,_0x1b34c1),_0x359a66['customRanges']=A(_0x359a66[_0x355fcc(0x1a3)],_0x5b06a9,_0x1b34c1),_0x359a66[_0x355fcc(0x151)]=A(_0x359a66['customDecorations'],_0x5b06a9,_0x1b34c1),_0x359a66[_0x355fcc(0x14b)]=A(_0x359a66['blockRanges'],_0x5b06a9,_0x1b34c1);}function D(_0x48ac61,_0x37dad4,_0xa62862){const _0x1c8818=_0x57d9cc;return _0x48ac61==null?void 0x0:_0x48ac61[_0x1c8818(0xf3)](_0x156292=>_0x156292[_0x1c8818(0xf4)]>=_0x37dad4?{..._0x156292,'startIndex':_0x156292[_0x1c8818(0xf4)]+_0xa62862}:_0x156292);}function O(_0x5e6f36,_0x32c1ac,_0x273496){const _0x37d7f5=_0x57d9cc;let _0x43640a=_0x32c1ac+_0x273496;return _0x5e6f36==null?void 0x0:_0x5e6f36[_0x37d7f5(0xf3)](_0x2876c9=>_0x2876c9[_0x37d7f5(0xf4)]>=_0x32c1ac&&_0x2876c9[_0x37d7f5(0xf4)]<_0x43640a?null:_0x2876c9[_0x37d7f5(0xf4)]>=_0x43640a?{..._0x2876c9,'startIndex':_0x2876c9[_0x37d7f5(0xf4)]-_0x273496}:_0x2876c9)[_0x37d7f5(0x17b)](_0x17ed4d=>_0x17ed4d!=null);}function $e(_0x643b27,_0x1c66c9,_0x1e8be5){const _0x296862=_0x57d9cc;return _0x643b27==null?void 0x0:_0x643b27[_0x296862(0xf3)](_0x20c51a=>_0x20c51a['st']>=_0x1c66c9?{..._0x20c51a,'st':_0x20c51a['st']+_0x1e8be5,'ed':_0x20c51a['ed']+_0x1e8be5}:_0x20c51a['ed']>_0x1c66c9?{..._0x20c51a,'ed':_0x20c51a['ed']+_0x1e8be5}:_0x20c51a);}function k(_0x1fd640,_0x3cb801,_0x3a7bee){const _0x1992fb=_0x57d9cc;return _0x1fd640==null?void 0x0:_0x1fd640[_0x1992fb(0xf3)](_0x178ad1=>_0x55cf79(_0x178ad1,_0x3cb801,_0x3a7bee));}function et(_0x348d9b,_0x12cffd,_0x42199a){const _0x43ed33=_0x57d9cc;return _0x348d9b==null?void 0x0:_0x348d9b[_0x43ed33(0xf3)](_0x535e91=>_0x330ba7(_0x535e91,_0x12cffd,_0x42199a));}function A(_0x4fa834,_0x521380,_0x2b79b0){const _0x5568eb=_0x57d9cc;return _0x4fa834==null?void 0x0:_0x4fa834[_0x5568eb(0xf3)](_0x3f40a4=>_0x93287(_0x3f40a4,_0x521380,_0x2b79b0))['filter'](_0x2b8491=>_0x2b8491!=null);}function tt(_0x21ae0b,_0x1471f0,_0x5597a4){const _0x1dcaed=_0x57d9cc;return _0x21ae0b==null?void 0x0:_0x21ae0b['map'](_0x2a0a86=>_0x5eefc2(_0x2a0a86,_0x1471f0,_0x5597a4))[_0x1dcaed(0x17b)](_0x251a3b=>_0x251a3b!=null);}function j(_0x498b5d){const _0x54a670=_0x57d9cc;if(!_0x498b5d[_0x54a670(0x11b)])throw Error(_0x54a670(0x122));return _0x498b5d[_0x54a670(0x11b)];}function M(_0x372ddc){'@babel/helpers - typeof';const _0x4ef4d8=_0x57d9cc;return M=typeof Symbol==_0x4ef4d8(0x152)&&typeof Symbol[_0x4ef4d8(0xe4)]=='symbol'?function(_0x24f753){return typeof _0x24f753;}:function(_0x11671a){const _0x5c1831=_0x4ef4d8;return _0x11671a&&typeof Symbol==_0x5c1831(0x152)&&_0x11671a[_0x5c1831(0x128)]===Symbol&&_0x11671a!==Symbol['prototype']?_0x5c1831(0x11e):typeof _0x11671a;},M(_0x372ddc);}function nt(_0x6c9f02,_0x47ea1d){const _0x4f6c84=_0x57d9cc;if(M(_0x6c9f02)!=_0x4f6c84(0x18c)||!_0x6c9f02)return _0x6c9f02;var _0x42482b=_0x6c9f02[Symbol[_0x4f6c84(0x17e)]];if(_0x42482b!==void 0x0){var _0x362aae=_0x42482b[_0x4f6c84(0x185)](_0x6c9f02,_0x47ea1d||_0x4f6c84(0x14c));if(M(_0x362aae)!=_0x4f6c84(0x18c))return _0x362aae;throw TypeError(_0x4f6c84(0x111));}return(_0x47ea1d===_0x4f6c84(0x1d0)?String:Number)(_0x6c9f02);}function rt(_0x2d6783){const _0x30bade=_0x57d9cc;var _0x5e489b=nt(_0x2d6783,_0x30bade(0x1d0));return M(_0x5e489b)==_0x30bade(0x11e)?_0x5e489b:_0x5e489b+'';}function N(_0x819d0c,_0x5c963a,_0x324b04){return(_0x5c963a=rt(_0x5c963a))in _0x819d0c?Object['defineProperty'](_0x819d0c,_0x5c963a,{'value':_0x324b04,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x819d0c[_0x5c963a]=_0x324b04,_0x819d0c;}var P=class extends _0x6c759e{constructor(..._0x238957){const _0x4beedb=_0x57d9cc;super(..._0x238957),N(this,_0x4beedb(0x12b),new Map()),N(this,'_rawResources',new Map()),N(this,_0x4beedb(0x188),new Map()),N(this,_0x4beedb(0x1a6),new _0x5e8940()),N(this,'change$',this[_0x4beedb(0x1a6)]['asObservable']());}[_0x57d9cc(0x180)](_0x268182,_0x344179){const _0x4d9029=_0x57d9cc;var _0x1609ef;let _0x4e3999=(_0x1609ef=this[_0x4d9029(0x12b)][_0x4d9029(0xe7)](_0x268182))==null?void 0x0:_0x1609ef[_0x4d9029(0xf6)][_0x344179];return _0x4e3999?_0x1cca7e['deepClone'](_0x4e3999):void 0x0;}[_0x57d9cc(0x14d)](_0xa8fa6a){const _0xe7c339=_0x57d9cc;var _0x1ca03;return _0x1cca7e[_0xe7c339(0x10f)](((_0x1ca03=this['_resources'][_0xe7c339(0xe7)](_0xa8fa6a))==null?void 0x0:_0x1ca03['formulas'])??{});}[_0x57d9cc(0x166)](_0x12bdd8){const _0x20075f=_0x57d9cc;let _0x5bb722=this[_0x20075f(0x12b)]['get'](_0x12bdd8);return _0x5bb722?_0x1cca7e['deepClone'](_0x5bb722):void 0x0;}[_0x57d9cc(0x1db)](_0x1f01ad,_0x42452f,_0x9bfd5f){const _0x32112d=_0x57d9cc;return this[_0x32112d(0xfc)](_0x1f01ad,{[_0x42452f]:_0x9bfd5f});}[_0x57d9cc(0x1be)](_0x29d9e1,_0x118312){const _0x4c978d=_0x57d9cc;return this[_0x4c978d(0x188)][_0x4c978d(0x156)](_0x29d9e1)||!x(_0x118312)?!0x1:(this['_resources'][_0x4c978d(0x1b4)](_0x29d9e1,_0x1cca7e[_0x4c978d(0x10f)](_0x118312)),this[_0x4c978d(0x1a6)]['next']({'unitId':_0x29d9e1}),!0x0);}[_0x57d9cc(0xfc)](_0x163ea0,_0x4ede77){const _0x5cd148=_0x57d9cc;if(this['_loadErrors'][_0x5cd148(0x156)](_0x163ea0)||!Object[_0x5cd148(0x16e)](_0x4ede77)[_0x5cd148(0xfd)]||!x({'schemaVersion':0x1,'formulas':_0x4ede77}))return!0x1;let _0x1abf5c=this['_resources'][_0x5cd148(0xe7)](_0x163ea0)??b(),_0xff111=_0x1cca7e[_0x5cd148(0x10f)](_0x1abf5c);return Object[_0x5cd148(0x1c6)](_0xff111[_0x5cd148(0xf6)],_0x1cca7e[_0x5cd148(0x10f)](_0x4ede77)),this[_0x5cd148(0x12b)][_0x5cd148(0x1b4)](_0x163ea0,_0xff111),this[_0x5cd148(0x1a6)][_0x5cd148(0x191)]({'unitId':_0x163ea0,'rangeIds':Object[_0x5cd148(0x16e)](_0x4ede77)}),!0x0;}[_0x57d9cc(0x145)](_0x10b342,_0x477f3c){const _0x4befcf=_0x57d9cc;if(this[_0x4befcf(0x188)][_0x4befcf(0x156)](_0x10b342))return!0x1;let _0x93325=this[_0x4befcf(0x12b)][_0x4befcf(0xe7)](_0x10b342);if(!(_0x93325!=null&&_0x93325[_0x4befcf(0xf6)][_0x477f3c]))return!0x1;let _0x67db13=_0x1cca7e[_0x4befcf(0x10f)](_0x93325);return delete _0x67db13[_0x4befcf(0xf6)][_0x477f3c],this[_0x4befcf(0x12b)][_0x4befcf(0x1b4)](_0x10b342,_0x67db13),this['_change$']['next']({'unitId':_0x10b342,'rangeIds':[_0x477f3c]}),!0x0;}[_0x57d9cc(0x18a)](_0x10ac17,_0x5f17ed){const _0x1209f5=_0x57d9cc;return _0x5f17ed&&typeof _0x5f17ed==_0x1209f5(0x18c)&&_0x1209f5(0x172)in _0x5f17ed&&_0x5f17ed['schemaVersion']!==0x1?(this[_0x1209f5(0x114)](_0x10ac17,_0x5f17ed,_0x1209f5(0x19d)),!0x1):x(_0x5f17ed)?(this[_0x1209f5(0x12b)][_0x1209f5(0x1b4)](_0x10ac17,_0x1cca7e[_0x1209f5(0x10f)](_0x5f17ed)),this[_0x1209f5(0x124)][_0x1209f5(0x1d6)](_0x10ac17),this[_0x1209f5(0x188)]['delete'](_0x10ac17),this[_0x1209f5(0x1a6)][_0x1209f5(0x191)]({'unitId':_0x10ac17}),!0x0):(this[_0x1209f5(0x114)](_0x10ac17,_0x5f17ed,'invalid-resource'),!0x1);}['serialize'](_0x976c96){const _0x5c9f8d=_0x57d9cc;let _0x52ed71=this[_0x5c9f8d(0x12b)][_0x5c9f8d(0xe7)](_0x976c96);return _0x52ed71?_0x1cca7e[_0x5c9f8d(0x10f)](_0x52ed71):this[_0x5c9f8d(0x124)]['has'](_0x976c96)?_0x1cca7e['deepClone'](this[_0x5c9f8d(0x124)][_0x5c9f8d(0xe7)](_0x976c96)):b();}[_0x57d9cc(0x16a)](_0x522188){const _0x4788ed=_0x57d9cc;return this['_loadErrors'][_0x4788ed(0xe7)](_0x522188);}['removeUnit'](_0x21d71a){const _0x3806b9=_0x57d9cc;this[_0x3806b9(0x12b)][_0x3806b9(0x1d6)](_0x21d71a),this[_0x3806b9(0x124)][_0x3806b9(0x1d6)](_0x21d71a),this[_0x3806b9(0x188)][_0x3806b9(0x1d6)](_0x21d71a),this[_0x3806b9(0x1a6)][_0x3806b9(0x191)]({'unitId':_0x21d71a});}[_0x57d9cc(0x149)](){const _0x34781f=_0x57d9cc;this[_0x34781f(0x12b)][_0x34781f(0x1a7)](),this[_0x34781f(0x124)][_0x34781f(0x1a7)](),this[_0x34781f(0x188)][_0x34781f(0x1a7)](),this[_0x34781f(0x1a6)][_0x34781f(0x1a1)](),super[_0x34781f(0x149)]();}['_preserveInvalid'](_0x2097ee,_0x5c0fb2,_0x24c82a){const _0x218165=_0x57d9cc;this[_0x218165(0x12b)][_0x218165(0x1d6)](_0x2097ee),this[_0x218165(0x124)]['set'](_0x2097ee,_0x1cca7e[_0x218165(0x10f)](_0x5c0fb2)),this[_0x218165(0x188)]['set'](_0x2097ee,_0x24c82a),this['_change$']['next']({'unitId':_0x2097ee});}};let it=function(_0x5a3c9d){const _0x11277d=_0x57d9cc;return _0x5a3c9d[_0x11277d(0x13c)]=_0x11277d(0x1c3),_0x5a3c9d[_0x11277d(0x173)]=_0x11277d(0x178),_0x5a3c9d[_0x11277d(0x150)]='success',_0x5a3c9d[_0x11277d(0x187)]='error',_0x5a3c9d;}({});function F(_0x41be58,_0x3789a0){return function(_0xabbd41,_0x4d87c8){_0x3789a0(_0xabbd41,_0x4d87c8,_0x41be58);};}function I(_0x401da0,_0x357c4e,_0x112456,_0x4edff9){const _0xfc6755=_0x57d9cc;var _0x46077a=arguments[_0xfc6755(0xfd)],_0x59241a=_0x46077a<0x3?_0x357c4e:_0x4edff9===null?_0x4edff9=Object[_0xfc6755(0x130)](_0x357c4e,_0x112456):_0x4edff9,_0x52c5e2;if(typeof Reflect==_0xfc6755(0x18c)&&typeof Reflect[_0xfc6755(0x103)]==_0xfc6755(0x152))_0x59241a=Reflect[_0xfc6755(0x103)](_0x401da0,_0x357c4e,_0x112456,_0x4edff9);else{for(var _0x1c0187=_0x401da0[_0xfc6755(0xfd)]-0x1;_0x1c0187>=0x0;_0x1c0187--)(_0x52c5e2=_0x401da0[_0x1c0187])&&(_0x59241a=(_0x46077a<0x3?_0x52c5e2(_0x59241a):_0x46077a>0x3?_0x52c5e2(_0x357c4e,_0x112456,_0x59241a):_0x52c5e2(_0x357c4e,_0x112456))||_0x59241a);}return _0x46077a>0x3&&_0x59241a&&Object[_0xfc6755(0x1cd)](_0x357c4e,_0x112456,_0x59241a),_0x59241a;}let L=class extends _0x6c759e{constructor(_0x453052,_0x478503,_0x35f3a0){const _0x1de1a7=_0x57d9cc;super(),this[_0x1de1a7(0x126)]=_0x453052,this[_0x1de1a7(0x190)]=_0x478503,this[_0x1de1a7(0x1c9)]=_0x35f3a0,N(this,_0x1de1a7(0x1c7),new Map()),N(this,_0x1de1a7(0xe2),new Map()),N(this,_0x1de1a7(0x183),new _0x5e8940()),N(this,_0x1de1a7(0xee),this['_presentationChanged$'][_0x1de1a7(0x17f)]()),this[_0x1de1a7(0x109)](this[_0x1de1a7(0x190)]['formulaResult$'][_0x1de1a7(0x16c)](_0x25681f=>{const _0x997266=_0x1de1a7;for(let _0x729def of Object['values'](_0x25681f))for(let _0x11959f of Object[_0x997266(0x1d2)](_0x729def))_0x11959f['forEach'](_0x5df794=>this[_0x997266(0x1b3)](_0x5df794));}));}[_0x57d9cc(0x17a)](_0x136f47){const _0x2c30d5=_0x57d9cc;var _0x47714a;let _0x5e0eac=_0x136f47[_0x2c30d5(0x181)](),_0x32a8d0=((_0x47714a=_0x136f47[_0x2c30d5(0x1b1)]()[_0x2c30d5(0x11b)])==null||(_0x47714a=_0x47714a['customRanges'])==null?void 0x0:_0x47714a[_0x2c30d5(0x17b)](w))??[],_0x44671c=this[_0x2c30d5(0x126)][_0x2c30d5(0x14d)](_0x5e0eac),_0xd030bf=new Set();for(let _0x166d99 of _0x32a8d0){let _0x4a840e=_0x44671c[_0x166d99['rangeId']];_0x4a840e&&(_0xd030bf[_0x2c30d5(0x19b)](R(_0x5e0eac,_0x166d99[_0x2c30d5(0x18e)])),this[_0x2c30d5(0x169)]({'unitId':_0x5e0eac,'rangeId':_0x166d99['rangeId']},_0x4a840e));}for(let _0x2b6593 of Array[_0x2c30d5(0x12c)](this[_0x2c30d5(0x1c7)][_0x2c30d5(0x1d2)]()))_0x2b6593[_0x2c30d5(0x1a9)]===_0x5e0eac&&!_0xd030bf[_0x2c30d5(0x156)](R(_0x2b6593['unitId'],_0x2b6593[_0x2c30d5(0x18e)]))&&this['unregister'](_0x2b6593);}['register'](_0x1c313b,_0x369ce8){const _0x56ad80=_0x57d9cc;let _0xea24ba=R(_0x1c313b[_0x56ad80(0x1a9)],_0x1c313b[_0x56ad80(0x18e)]),_0x5405b0=this[_0x56ad80(0x1c7)][_0x56ad80(0xe7)](_0xea24ba),_0x1e4b22=this[_0x56ad80(0x1c9)][_0x56ad80(0x115)](_0x1c313b[_0x56ad80(0x1a9)]);if(_0x5405b0&&_0x5405b0['config'][_0x56ad80(0x1af)]===_0x369ce8[_0x56ad80(0x1af)]&&_0x5405b0[_0x56ad80(0x19a)]===_0x1e4b22){_0x5405b0['config']=_0x369ce8;let _0x1f32fd=_0x5405b0[_0x56ad80(0x167)]?this[_0x56ad80(0x190)][_0x56ad80(0x1aa)](_0x5405b0[_0x56ad80(0x1a9)],_0x5405b0['unitId'],_0x5405b0[_0x56ad80(0x167)])??void 0x0:void 0x0;_0x5405b0[_0x56ad80(0x10b)]=_0x1f32fd,this[_0x56ad80(0x1c8)](_0xea24ba,z(_0x369ce8,_0x1f32fd));return;}_0x5405b0!=null&&_0x5405b0['formulaId']&&this[_0x56ad80(0x112)](_0x5405b0);let _0x1a8b08={..._0x1c313b,'config':_0x369ce8,'referenceRevision':_0x1e4b22,'presentation':z(_0x369ce8,void 0x0)};if(this[_0x56ad80(0x1c7)][_0x56ad80(0x1b4)](_0xea24ba,_0x1a8b08),!_0x369ce8[_0x56ad80(0x1af)][_0x56ad80(0xf9)]())return;let _0xd42d92=this[_0x56ad80(0x190)][_0x56ad80(0x101)](_0x1c313b[_0x56ad80(0x1a9)],_0x1c313b[_0x56ad80(0x1a9)],_0x369ce8[_0x56ad80(0x1af)],void 0x0,{'rangeId':_0x1c313b[_0x56ad80(0x18e)]},_0x5ce098[_0x56ad80(0x197)],_0x1c313b['rangeId']);_0x1a8b08[_0x56ad80(0x167)]=_0xd42d92,this[_0x56ad80(0xe2)]['set'](_0xd42d92,_0xea24ba);}[_0x57d9cc(0x1ab)](_0x84bd9d){const _0x4cc5b1=_0x57d9cc;let _0x132a0e=R(_0x84bd9d[_0x4cc5b1(0x1a9)],_0x84bd9d[_0x4cc5b1(0x18e)]),_0x821973=this[_0x4cc5b1(0x1c7)][_0x4cc5b1(0xe7)](_0x132a0e);_0x821973&&(this[_0x4cc5b1(0x112)](_0x821973),this[_0x4cc5b1(0x1c7)][_0x4cc5b1(0x1d6)](_0x132a0e));}[_0x57d9cc(0x1ba)](_0x4bfa17){const _0x59b750=_0x57d9cc;for(let _0x4522a6 of Array[_0x59b750(0x12c)](this[_0x59b750(0x1c7)]['values']()))_0x4522a6['unitId']===_0x4bfa17&&this[_0x59b750(0x1ab)](_0x4522a6);}['getPresentation'](_0x3f14e1){const _0x554e8f=_0x57d9cc;var _0x55c790;return(_0x55c790=this[_0x554e8f(0x1c7)]['get'](R(_0x3f14e1['unitId'],_0x3f14e1[_0x554e8f(0x18e)])))==null?void 0x0:_0x55c790[_0x554e8f(0x10e)];}[_0x57d9cc(0x159)](_0x3f6e94){const _0x204557=_0x57d9cc;let _0x53d1de=this[_0x204557(0x1c7)][_0x204557(0xe7)](R(_0x3f6e94['unitId'],_0x3f6e94[_0x204557(0x18e)]));return _0x53d1de?B(_0x53d1de):void 0x0;}['getRegisteredFormulas'](){const _0x11e84d=_0x57d9cc;return Array[_0x11e84d(0x12c)](this[_0x11e84d(0x1c7)][_0x11e84d(0x1d2)](),_0x2d4b99=>({'identity':{'unitId':_0x2d4b99[_0x11e84d(0x1a9)],'rangeId':_0x2d4b99[_0x11e84d(0x18e)]},'config':_0x2d4b99[_0x11e84d(0x13a)],'referenceRevision':_0x2d4b99[_0x11e84d(0x19a)],..._0x2d4b99[_0x11e84d(0x10b)]?{'liveResult':_0x2d4b99[_0x11e84d(0x10b)]}:null}));}[_0x57d9cc(0x149)](){const _0x89fcc6=_0x57d9cc;for(let _0x134af0 of this[_0x89fcc6(0x1c7)][_0x89fcc6(0x1d2)]())this['_deleteRegistration'](_0x134af0);this[_0x89fcc6(0x1c7)]['clear'](),this[_0x89fcc6(0xe2)][_0x89fcc6(0x1a7)](),this[_0x89fcc6(0x183)][_0x89fcc6(0x1a1)](),super[_0x89fcc6(0x149)]();}[_0x57d9cc(0x1b3)](_0x1664a4){const _0x54b42b=_0x57d9cc;let _0x506970=this['_formulaKeys'][_0x54b42b(0xe7)](_0x1664a4[_0x54b42b(0x167)]),_0x2040cb=_0x506970?this['_registrations'][_0x54b42b(0xe7)](_0x506970):void 0x0;!_0x506970||!_0x2040cb||(_0x2040cb['liveResult']=_0x1664a4,this[_0x54b42b(0x1c8)](_0x506970,z(_0x2040cb[_0x54b42b(0x13a)],_0x1664a4)));}[_0x57d9cc(0x1c8)](_0x1ed5ea,_0x12308c){const _0x2dac29=_0x57d9cc;var _0x15e117,_0x1b41aa;let _0x38a829=this[_0x2dac29(0x1c7)][_0x2dac29(0xe7)](_0x1ed5ea);if(!_0x38a829||at(_0x38a829[_0x2dac29(0x10e)],_0x12308c))return;let _0x558496=_0x38a829[_0x2dac29(0x10e)],_0x5a1c7c=B(_0x38a829);_0x38a829[_0x2dac29(0x10e)]=_0x12308c,this[_0x2dac29(0x183)]['next']({'unitId':_0x38a829[_0x2dac29(0x1a9)],'rangeId':_0x38a829[_0x2dac29(0x18e)],'presentation':_0x12308c,'previousPresentation':_0x558496,'result':B(_0x38a829),'previousResult':{..._0x5a1c7c,..._0x558496,'value':(_0x15e117=_0x558496[_0x2dac29(0x1ae)])==null?void 0x0:_0x15e117['v'],'valueType':((_0x1b41aa=_0x558496['cell'])==null?void 0x0:_0x1b41aa['t'])??void 0x0}});}[_0x57d9cc(0x112)](_0x422a00){const _0x1f1a9c=_0x57d9cc;_0x422a00[_0x1f1a9c(0x167)]&&(this[_0x1f1a9c(0x190)]['deleteFormula'](_0x422a00[_0x1f1a9c(0x1a9)],_0x422a00[_0x1f1a9c(0x1a9)],[_0x422a00[_0x1f1a9c(0x167)]]),this[_0x1f1a9c(0xe2)]['delete'](_0x422a00[_0x1f1a9c(0x167)]));}};L=I([F(0x0,_0x562b77(P)),F(0x1,_0x562b77(_0x75c62f)),F(0x2,_0x562b77(_0xd24d44))],L);function R(_0x322e82,_0x18fa53){return _0x322e82+'\x00'+_0x18fa53;}function z(_0x380922,_0x4b40c5){const _0x27eaf0=_0x57d9cc;return _0x819468({'numberFormat':_0x380922[_0x27eaf0(0x195)],'lastValue':_0x380922['lastValue'],'result':_0x4b40c5});}function B(_0x124e95){const _0x1261dc=_0x57d9cc;var _0xf50c6b,_0x4757d1,_0x413e0a;let _0x19e4a4=_0x124e95[_0x1261dc(0x10e)],_0x7ffd57=_0x124e95[_0x1261dc(0x13a)][_0x1261dc(0x1af)][_0x1261dc(0xf9)]()?_0x19e4a4[_0x1261dc(0x1bb)]||_0x19e4a4['cell']==null?_0x1261dc(0x178):((_0xf50c6b=_0x124e95['liveResult'])==null?void 0x0:_0xf50c6b[_0x1261dc(0x15e)])===_0xb8ac26[_0x1261dc(0x187)]?'error':_0x1261dc(0x155):_0x1261dc(0x1c3);return{..._0x19e4a4,'status':_0x7ffd57,'value':(_0x4757d1=_0x19e4a4['cell'])==null?void 0x0:_0x4757d1['v'],'valueType':((_0x413e0a=_0x19e4a4['cell'])==null?void 0x0:_0x413e0a['t'])??void 0x0};}function at(_0x3c50ba,_0x5c98ce){const _0x149904=_0x57d9cc;var _0x39bfef,_0x196964,_0x27ebe0,_0xf76c56;return _0x3c50ba[_0x149904(0x113)]===_0x5c98ce[_0x149904(0x113)]&&_0x3c50ba[_0x149904(0x170)]===_0x5c98ce[_0x149904(0x170)]&&_0x3c50ba[_0x149904(0x121)]===_0x5c98ce[_0x149904(0x121)]&&_0x3c50ba[_0x149904(0x107)]===_0x5c98ce[_0x149904(0x107)]&&_0x3c50ba[_0x149904(0x1bb)]===_0x5c98ce[_0x149904(0x1bb)]&&((_0x39bfef=_0x3c50ba[_0x149904(0x1ae)])==null?void 0x0:_0x39bfef['t'])===((_0x196964=_0x5c98ce[_0x149904(0x1ae)])==null?void 0x0:_0x196964['t'])&&Object['is']((_0x27ebe0=_0x3c50ba['cell'])==null?void 0x0:_0x27ebe0['v'],(_0xf76c56=_0x5c98ce[_0x149904(0x1ae)])==null?void 0x0:_0xf76c56['v']);}const ot={'id':_0x57d9cc(0x117),'type':_0x50d8aa[_0x57d9cc(0x136)],'handler':(_0x266af7,_0x8af5e)=>!(_0x8af5e!=null&&_0x8af5e[_0x57d9cc(0x1a9)])||!_0x8af5e[_0x57d9cc(0x18e)]||!_0x8af5e['config']?!0x1:_0x266af7['get'](P)[_0x57d9cc(0x1db)](_0x8af5e[_0x57d9cc(0x1a9)],_0x8af5e[_0x57d9cc(0x18e)],_0x8af5e[_0x57d9cc(0x13a)])},st={'id':_0x57d9cc(0x17c),'type':_0x50d8aa['MUTATION'],'handler':(_0x2e291f,_0x51f6c6)=>!(_0x51f6c6!=null&&_0x51f6c6[_0x57d9cc(0x1a9)])||!_0x51f6c6[_0x57d9cc(0x18e)]?!0x1:_0x2e291f[_0x57d9cc(0xe7)](P)[_0x57d9cc(0x145)](_0x51f6c6[_0x57d9cc(0x1a9)],_0x51f6c6[_0x57d9cc(0x18e)])},V={'id':_0x57d9cc(0x15d),'type':_0x50d8aa[_0x57d9cc(0x136)],'handler':(_0x2e0187,_0x5c11d0)=>!(_0x5c11d0!=null&&_0x5c11d0['unitId'])||!_0x5c11d0[_0x57d9cc(0x131)]?!0x1:_0x2e0187['get'](P)[_0x57d9cc(0x1be)](_0x5c11d0[_0x57d9cc(0x1a9)],_0x5c11d0[_0x57d9cc(0x131)])},H={'id':_0x57d9cc(0x1d5),'type':_0x50d8aa[_0x57d9cc(0x136)],'handler':(_0x1ee90a,_0x5831ef)=>{const _0x5a409f=_0x57d9cc;if(!(_0x5831ef!=null&&_0x5831ef[_0x5a409f(0x1a9)])||!_0x5831ef['updates'][_0x5a409f(0xfd)])return!0x1;let _0x55fb68=_0x1ee90a[_0x5a409f(0xe7)](P),_0x4feb4e=_0x1ee90a[_0x5a409f(0xe7)](_0xd24d44),_0x5d683e=_0x55fb68[_0x5a409f(0x166)](_0x5831ef[_0x5a409f(0x1a9)]);if(!_0x5d683e)return!0x1;let _0x55ce5c=_0x1cca7e['deepClone'](_0x5d683e),_0x3c193a=!0x1;for(let _0x50571c of _0x5831ef[_0x5a409f(0x138)]){var _0x1bf819,_0x37b2ea,_0x2cfcd8,_0x2f25c4;let _0x752619=_0x55ce5c[_0x5a409f(0xf6)][_0x50571c[_0x5a409f(0x18e)]];!_0x752619||_0x752619['formula']!==_0x50571c[_0x5a409f(0x182)]||((_0x1bf819=_0x752619[_0x5a409f(0x195)])==null?void 0x0:_0x1bf819['pattern'])!==_0x50571c['expectedNumberFormat']||_0x4feb4e['getRevision'](_0x5831ef[_0x5a409f(0x1a9)])!==_0x50571c[_0x5a409f(0x16b)]||(((_0x37b2ea=_0x752619['lastValue'])==null?void 0x0:_0x37b2ea['v'])!==_0x50571c[_0x5a409f(0x1a4)]['v']||((_0x2cfcd8=_0x752619[_0x5a409f(0x1a4)])==null?void 0x0:_0x2cfcd8['t'])!==_0x50571c[_0x5a409f(0x1a4)]['t']||((_0x2f25c4=_0x752619[_0x5a409f(0x1a4)])==null?void 0x0:_0x2f25c4[_0x5a409f(0x121)])!==_0x50571c[_0x5a409f(0x1a4)][_0x5a409f(0x121)])&&(_0x752619[_0x5a409f(0x1a4)]=_0x1cca7e[_0x5a409f(0x10f)](_0x50571c[_0x5a409f(0x1a4)]),_0x3c193a=!0x0);}return!_0x3c193a||_0x55fb68[_0x5a409f(0x1be)](_0x5831ef['unitId'],_0x55ce5c);}},U={'id':'docs-formula.command.insert','type':_0x50d8aa['COMMAND'],'handler':(_0x579fcb,_0x5913eb)=>{const _0x5b1682=_0x57d9cc;if(!(_0x5913eb!=null&&_0x5913eb[_0x5b1682(0x1af)][_0x5b1682(0xf9)]()))return!0x1;let _0x3d135d=q(_0x579fcb,_0x5913eb[_0x5b1682(0x1a9)],'');if(!_0x3d135d)return!0x1;let _0xbd68b2=ft(_0x5913eb['target'],_0x3d135d[_0x5b1682(0x11b)],dt(_0x579fcb,_0x3d135d[_0x5b1682(0x1a9)]));if(!_0xbd68b2)return!0x1;let _0x3846b0=pt(_0x579fcb,_0x3d135d[_0x5b1682(0x1a9)],_0x5913eb[_0x5b1682(0x1af)],_0x5913eb['externalReferences']??[]);if(!_0x3846b0)return!0x1;let _0x5a1e5a=mt(_0x3d135d[_0x5b1682(0x11b)],_0x3d135d[_0x5b1682(0x1a2)],_0x3d135d[_0x5b1682(0x1a9)]),_0x5cbeb1=ht({'documentData':_0x3d135d[_0x5b1682(0x1d3)],'resource':_0x3d135d[_0x5b1682(0x131)],'rangeId':_0x5a1e5a,'config':{'formula':_0x5913eb['formula'],..._0x5913eb[_0x5b1682(0x195)]?{'numberFormat':_0x5913eb[_0x5b1682(0x195)]}:null},'startOffset':_0xbd68b2[_0x5b1682(0x100)],'endOffset':_0xbd68b2['endOffset']});if(!_0x5cbeb1)return!0x1;let _0x4b6aaf=_0x5eee2b(_0x579fcb,_0x3d135d[_0x5b1682(0x1a9)],_0x3846b0);return!_0x4b6aaf||!J({'accessor':_0x579fcb,'document':_0x3d135d[_0x5b1682(0x106)],'unitId':_0x3d135d['unitId'],'trigger':U['id'],'rangeId':_0x5a1e5a,'previousResource':_0x3d135d[_0x5b1682(0x131)],'nextResource':_0x5cbeb1[_0x5b1682(0x1d4)],'previousDocumentData':_0x3d135d['documentData'],'nextDocumentData':_0x5cbeb1[_0x5b1682(0x142)],'cursorOffset':_0x5cbeb1[_0x5b1682(0x168)],'externalMutations':_0x4b6aaf})?!0x1:{'rangeId':_0x5a1e5a,'startOffset':_0x5cbeb1['cursorOffset']-0x1,'endOffset':_0x5cbeb1[_0x5b1682(0x168)]};}},W={'id':_0x57d9cc(0x1ac),'type':_0x50d8aa[_0x57d9cc(0x133)],'handler':(_0x32df27,_0x10f432)=>{const _0xf2ed9c=_0x57d9cc;if(!(_0x10f432!=null&&_0x10f432[_0xf2ed9c(0x18e)])||!_0x10f432['formula']['trim']())return!0x1;let _0x314744=q(_0x32df27,_0x10f432['unitId'],''),_0x24efe5=_0x314744==null?void 0x0:_0x314744[_0xf2ed9c(0x1a2)]['getFormula'](_0x314744[_0xf2ed9c(0x1a9)],_0x10f432['rangeId']),_0x27c78c=_0x314744?T(_0x314744[_0xf2ed9c(0x1d3)]['body'],_0x10f432[_0xf2ed9c(0x18e)]):void 0x0;if(!_0x314744||!_0x24efe5||!_0x27c78c)return!0x1;let _0x235887=pt(_0x32df27,_0x314744[_0xf2ed9c(0x1a9)],_0x10f432[_0xf2ed9c(0x1af)],_0x10f432['externalReferences']??[]);if(!_0x235887)return!0x1;let _0x4a9cd9=_0x5eee2b(_0x32df27,_0x314744[_0xf2ed9c(0x1a9)],_0x235887);if(!_0x4a9cd9)return!0x1;let _0x4db041=Ct(_0x314744[_0xf2ed9c(0x131)]);return _0x4db041[_0xf2ed9c(0xf6)][_0x10f432[_0xf2ed9c(0x18e)]]={'formula':_0x10f432[_0xf2ed9c(0x1af)],..._0x10f432[_0xf2ed9c(0x195)]?{'numberFormat':_0x10f432[_0xf2ed9c(0x195)]}:_0x24efe5[_0xf2ed9c(0x195)]?{'numberFormat':_0x24efe5[_0xf2ed9c(0x195)]}:null},J({'accessor':_0x32df27,'document':_0x314744[_0xf2ed9c(0x106)],'unitId':_0x314744[_0xf2ed9c(0x1a9)],'trigger':W['id'],'rangeId':_0x10f432['rangeId'],'previousResource':_0x314744[_0xf2ed9c(0x131)],'nextResource':_0x4db041,'cursorOffset':_0x27c78c[_0xf2ed9c(0xef)]+0x1,'externalMutations':_0x4a9cd9});}},G={'id':_0x57d9cc(0xf7),'type':_0x50d8aa[_0x57d9cc(0x133)],'handler':(_0x296496,_0x1728fe)=>{const _0x3a20cc=_0x57d9cc;if(!(_0x1728fe!=null&&_0x1728fe[_0x3a20cc(0x18e)]))return!0x1;let _0x6397cf=q(_0x296496,_0x1728fe[_0x3a20cc(0x1a9)],''),_0x304a83=_0x6397cf==null?void 0x0:_0x6397cf['model']['getFormula'](_0x6397cf[_0x3a20cc(0x1a9)],_0x1728fe[_0x3a20cc(0x18e)]),_0x1551d0=_0x6397cf?T(_0x6397cf[_0x3a20cc(0x1d3)][_0x3a20cc(0x11b)],_0x1728fe['rangeId']):void 0x0;if(!_0x6397cf||!_0x304a83||!_0x1551d0)return!0x1;let _0x22c0b7=Ct(_0x6397cf[_0x3a20cc(0x131)]);return _0x22c0b7[_0x3a20cc(0xf6)][_0x1728fe[_0x3a20cc(0x18e)]]={..._0x304a83,..._0x1728fe['numberFormat']?{'numberFormat':_0x1728fe['numberFormat']}:null},_0x1728fe[_0x3a20cc(0x195)]||delete _0x22c0b7[_0x3a20cc(0xf6)][_0x1728fe['rangeId']][_0x3a20cc(0x195)],J({'accessor':_0x296496,'document':_0x6397cf[_0x3a20cc(0x106)],'unitId':_0x6397cf[_0x3a20cc(0x1a9)],'trigger':G['id'],'rangeId':_0x1728fe[_0x3a20cc(0x18e)],'previousResource':_0x6397cf[_0x3a20cc(0x131)],'nextResource':_0x22c0b7,'cursorOffset':_0x1551d0[_0x3a20cc(0xef)]+0x1,'externalMutations':{}});}},K={'id':_0x57d9cc(0x14a),'type':_0x50d8aa[_0x57d9cc(0x133)],'handler':(_0x2a70dd,_0x56b59f)=>ut(_0x2a70dd,_0x56b59f,'',K['id'])},ct={'id':_0x57d9cc(0x1ad),'type':_0x50d8aa['COMMAND'],'handler':(_0x3c2a3e,_0x1662e9)=>ut(_0x3c2a3e,_0x1662e9,(_0x1662e9==null?void 0x0:_0x1662e9[_0x57d9cc(0x113)])??'',ct['id'])},lt={'id':_0x57d9cc(0x11c),'type':_0x50d8aa[_0x57d9cc(0x133)],'handler':(_0x507f41,_0x2df32c)=>{const _0x526010=_0x57d9cc;if(!(_0x2df32c!=null&&_0x2df32c[_0x526010(0x18e)]))return!0x1;let _0x4b3939=q(_0x507f41,_0x2df32c[_0x526010(0x1a9)],'');if(!_0x4b3939)return!0x1;let _0x4f9ed7=_0x507f41[_0x526010(0xe7)](L)['getResult']({'unitId':_0x4b3939[_0x526010(0x1a9)],'rangeId':_0x2df32c[_0x526010(0x18e)]});return _0x4f9ed7?ut(_0x507f41,_0x2df32c,_0x4f9ed7[_0x526010(0x113)],lt['id']):!0x1;}};function ut(_0xb452eb,_0x1a17ee,_0x46ec61,_0x2e6b48){const _0x5cd283=_0x57d9cc;if(!(_0x1a17ee!=null&&_0x1a17ee[_0x5cd283(0x18e)]))return!0x1;let _0x53a78b=q(_0xb452eb,_0x1a17ee['unitId'],'');if(!_0x53a78b)return!0x1;let _0x37687b=Be({'documentData':_0x53a78b[_0x5cd283(0x1d3)],'resource':_0x53a78b[_0x5cd283(0x131)],'rangeId':_0x1a17ee[_0x5cd283(0x18e)],'text':_0x46ec61});return _0x37687b?J({'accessor':_0xb452eb,'document':_0x53a78b[_0x5cd283(0x106)],'unitId':_0x53a78b[_0x5cd283(0x1a9)],'trigger':_0x2e6b48,'rangeId':_0x1a17ee[_0x5cd283(0x18e)],'previousResource':_0x53a78b['resource'],'nextResource':_0x37687b[_0x5cd283(0x1d4)],'previousDocumentData':_0x53a78b[_0x5cd283(0x1d3)],'nextDocumentData':_0x37687b[_0x5cd283(0x142)],'cursorOffset':_0x37687b[_0x5cd283(0x168)],'externalMutations':{}}):!0x1;}function q(_0x4f22c0,_0x3c8d96,_0x5e92de){const _0x25946a=_0x57d9cc;if(_0x5e92de)return null;let _0x31db59=_0x4f22c0[_0x25946a(0xe7)](_0x2ec209),_0x113872=(_0x3c8d96?_0x31db59[_0x25946a(0x141)](_0x3c8d96,_0x485006[_0x25946a(0x1b9)]):_0x31db59[_0x25946a(0x11f)](_0x485006['UNIVER_DOC']))??null;if(!_0x113872)return null;let _0x4a5592=_0x113872[_0x25946a(0x1b1)](),_0x23d1fe=_0x4a5592['body'];if(_0x4a5592[_0x25946a(0x174)]||!_0x23d1fe)return null;let _0x4448e8=_0x4f22c0[_0x25946a(0xe7)](P);return _0x4448e8[_0x25946a(0x16a)](_0x113872[_0x25946a(0x181)]())?null:{'document':_0x113872,'body':_0x23d1fe,'documentData':_0x4a5592,'model':_0x4448e8,'resource':_0x4448e8['getResource'](_0x113872[_0x25946a(0x181)]())??b(),'unitId':_0x113872['getUnitId']()};}function dt(_0x3116cc,_0x4672e3){const _0x3e6d96=_0x57d9cc;var _0x18d196;return(_0x18d196=_0x3116cc[_0x3e6d96(0xe7)](_0x53d90b)[_0x3e6d96(0x11a)]({'subUnitId':_0x4672e3,'unitId':_0x4672e3}))==null?void 0x0:_0x18d196[0x0];}function ft(_0x14a71c,_0x35f1a8,_0x5e2eea){const _0x509835=_0x57d9cc;if((_0x14a71c==null?void 0x0:_0x14a71c[_0x509835(0x19f)])===_0x509835(0xfa)){var _0x4bcf7c;let _0x14f861=((_0x4bcf7c=_0x35f1a8[_0x509835(0x102)])==null?void 0x0:_0x4bcf7c[_0x509835(0x17b)](_0x30e7aa=>_0x30e7aa['paragraphId']===_0x14a71c['paragraphId']))??[];if(_0x14f861[_0x509835(0xfd)]!==0x1)return null;let _0x5821da=_0x14f861[0x0],_0x4a3e52=_0x5d3170(_0x35f1a8,_0x5821da),_0x866500=_0x5821da[_0x509835(0xf4)]-_0x4a3e52,_0x3df705=_0x14a71c[_0x509835(0x161)]===_0x509835(0x132)?_0x866500:_0x14a71c['position'];if(!Number[_0x509835(0xe8)](_0x3df705)||_0x3df705<0x0||_0x3df705>_0x866500)return null;let _0x704b9=_0x4a3e52+_0x3df705;return{'startOffset':_0x704b9,'endOffset':_0x704b9};}if((_0x14a71c==null?void 0x0:_0x14a71c[_0x509835(0x19f)])===_0x509835(0xed))return!Number[_0x509835(0xe8)](_0x14a71c[_0x509835(0x100)])||!Number[_0x509835(0xe8)](_0x14a71c[_0x509835(0x18b)])?null:{'startOffset':Math[_0x509835(0x1b5)](_0x14a71c[_0x509835(0x100)],_0x14a71c['endOffset']),'endOffset':Math['max'](_0x14a71c[_0x509835(0x100)],_0x14a71c[_0x509835(0x18b)])};let _0x4a59e6=(_0x14a71c==null?void 0x0:_0x14a71c['type'])===_0x509835(0x10c)?_0x14a71c['selection']:_0x5e2eea;return!_0x4a59e6||_0x4a59e6[_0x509835(0x165)]?null:{'startOffset':Math[_0x509835(0x1b5)](_0x4a59e6[_0x509835(0x100)],_0x4a59e6[_0x509835(0x18b)]),'endOffset':Math[_0x509835(0x127)](_0x4a59e6['startOffset'],_0x4a59e6[_0x509835(0x18b)])};}function pt(_0x3b7825,_0x14c7f5,_0xf5205c,_0x520cba){const _0x15dc96=_0x57d9cc;let _0x29e75c=_0x3b7825[_0x15dc96(0xe7)](_0x9066cf),_0x1dabdd=_0xf5205c[_0x15dc96(0x199)]('=')?_0xf5205c[_0x15dc96(0x196)](0x1):_0xf5205c,_0x5eb28a=_0x29e75c[_0x15dc96(0x14f)](_0x1dabdd);if(!_0x5eb28a)return null;let _0x48a910=_0x3b7825[_0x15dc96(0xe7)](_0xd24d44),_0xce3f81=_0x1b4c96({'qualifiers':_0x2db29b(_0x5eb28a),'explicitReferences':_0x520cba??[],'resolveBinding':_0x5d9d97=>_0x48a910[_0x15dc96(0x15a)](_0x14c7f5,_0x5d9d97)});return _0xce3f81[_0x15dc96(0x15e)]===_0x15dc96(0x18f)?_0xce3f81['references']:null;}function mt(_0x1ad8b3,_0x5070dd,_0x316cfd){const _0x5cbe2b=_0x57d9cc;var _0x352d3d;let _0x3db99c=_0x317234(0x6);for(;_0x1ad8b3!=null&&(_0x352d3d=_0x1ad8b3[_0x5cbe2b(0x1a3)])!=null&&_0x352d3d[_0x5cbe2b(0xe3)](_0x21ddc5=>_0x21ddc5[_0x5cbe2b(0x18e)]===_0x3db99c)||_0x5070dd[_0x5cbe2b(0x180)](_0x316cfd,_0x3db99c);)_0x3db99c=_0x317234(0x6);return _0x3db99c;}function ht(_0x42ac3a){try{return Re(_0x42ac3a);}catch(_0x400875){if(_0x400875 instanceof C)return null;throw _0x400875;}}function gt(_0x107387){const _0x14a3ea=_0x57d9cc;let _0x1522fc=_0x107387[_0x14a3ea(0x1b8)]&&_0x107387[_0x14a3ea(0x142)]?vt(_0x107387['document'],_0x107387['unitId'],_0x107387[_0x14a3ea(0x1b8)],_0x107387[_0x14a3ea(0x142)],_0x107387[_0x14a3ea(0x168)],_0x107387[_0x14a3ea(0xec)]):null;return _0x107387[_0x14a3ea(0x1b8)]&&_0x107387[_0x14a3ea(0x142)]&&!_0x1522fc?null:{'documentRedo':_0x1522fc,'resourceRedo':{'id':V['id'],'params':{'unitId':_0x107387[_0x14a3ea(0x1a9)],'resource':_0x107387['nextResource']}},'resourceUndo':{'id':V['id'],'params':{'unitId':_0x107387[_0x14a3ea(0x1a9)],'resource':_0x107387[_0x14a3ea(0x19c)]}}};}function _t(_0x38a6ff,_0x2aa6ac,_0x125650,_0x297217){const _0x13d8da=_0x57d9cc;_0x297217[_0x13d8da(0x15f)]({'id':_0x38a6ff[_0x13d8da(0xec)]+':'+_0x38a6ff[_0x13d8da(0x18e)],'unitID':_0x38a6ff[_0x13d8da(0x1a9)],'redoMutations':[..._0x38a6ff[_0x13d8da(0x198)][_0x13d8da(0x120)]?[_0x38a6ff[_0x13d8da(0x198)]['redoMutation']]:[],..._0x2aa6ac[_0x13d8da(0x13e)]?[_0x2aa6ac[_0x13d8da(0x13e)]]:[],_0x2aa6ac['resourceRedo']],'undoMutations':[_0x2aa6ac[_0x13d8da(0x1bf)],..._0x125650?[_0x125650]:[],..._0x38a6ff[_0x13d8da(0x198)][_0x13d8da(0x104)]?[_0x38a6ff[_0x13d8da(0x198)][_0x13d8da(0x104)]]:[]]});}function J(_0x5eefcf){const _0x212b6f=_0x57d9cc;let _0x32cc71=_0x5eefcf[_0x212b6f(0xe9)]['get'](_0x29cd00),_0x4ce480=_0x5eefcf[_0x212b6f(0xe9)]['get'](_0x3a8e54),_0x5581ce=_0x5eefcf[_0x212b6f(0xe9)][_0x212b6f(0xe7)](_0x53d90b),_0x1d43dc=gt(_0x5eefcf);if(!_0x1d43dc)return!0x1;let _0x39eac6=!0x1,_0x4b7be7=null,_0x58950b=!0x1;try{if(_0x5eefcf['externalMutations'][_0x212b6f(0x120)]){if(!_0x32cc71[_0x212b6f(0x1a8)](_0x5eefcf[_0x212b6f(0x198)]['redoMutation']['id'],_0x5eefcf[_0x212b6f(0x198)][_0x212b6f(0x120)][_0x212b6f(0x1d7)]))return!0x1;_0x39eac6=!0x0;}if(_0x1d43dc[_0x212b6f(0x13e)]){let _0x280753=_0x32cc71[_0x212b6f(0x1a8)](_0x1d43dc[_0x212b6f(0x13e)]['id'],_0x1d43dc['documentRedo'][_0x212b6f(0x1d7)]);if(!_0x280753)return bt(_0x32cc71,_0x5eefcf['externalMutations'],_0x39eac6),!0x1;_0x4b7be7={'id':_0x3fc66a['id'],'params':{..._0x280753,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x32cc71['syncExecuteCommand'](_0x1d43dc['resourceRedo']['id'],_0x1d43dc[_0x212b6f(0x186)]['params']))return yt(_0x32cc71,_0x4b7be7),bt(_0x32cc71,_0x5eefcf[_0x212b6f(0x198)],_0x39eac6),!0x1;_0x58950b=!0x0,_t(_0x5eefcf,_0x1d43dc,_0x4b7be7,_0x4ce480);}catch(_0x4a1f44){throw _0x58950b&&_0x32cc71['syncExecuteCommand'](_0x1d43dc[_0x212b6f(0x1bf)]['id'],_0x1d43dc[_0x212b6f(0x1bf)][_0x212b6f(0x1d7)]),yt(_0x32cc71,_0x4b7be7),bt(_0x32cc71,_0x5eefcf['externalMutations'],_0x39eac6),_0x4a1f44;}return _0x5581ce[_0x212b6f(0x1b6)]([{'startOffset':_0x5eefcf[_0x212b6f(0x168)],'endOffset':_0x5eefcf[_0x212b6f(0x168)],'segmentId':''}],{'unitId':_0x5eefcf[_0x212b6f(0x1a9)],'subUnitId':_0x5eefcf[_0x212b6f(0x1a9)]},!0x1,{[_0x4ce9e7]:!0x0}),!0x0;}function vt(_0x41b704,_0x3e29ad,_0x2300ca,_0x124392,_0xadd7fc,_0x43cb17){let _0x2fb29a=xt(_0x2300ca,_0x124392,_0x19915(_0x41b704,''));return _0x2fb29a?{'id':_0x3fc66a['id'],'params':{'unitId':_0x3e29ad,'actions':_0x2fb29a,'segmentId':'','textRanges':[{'startOffset':_0xadd7fc,'endOffset':_0xadd7fc,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x43cb17}}:null;}function yt(_0x43f887,_0x2d57fc){const _0x5dd256=_0x57d9cc;_0x2d57fc&&_0x43f887['syncExecuteCommand'](_0x2d57fc['id'],_0x2d57fc[_0x5dd256(0x1d7)]);}function bt(_0x5107ee,_0x2ce8cd,_0x4de5db){const _0x592281=_0x57d9cc;_0x4de5db&&_0x2ce8cd[_0x592281(0x104)]&&_0x5107ee[_0x592281(0x1a8)](_0x2ce8cd[_0x592281(0x104)]['id'],_0x2ce8cd[_0x592281(0x104)]['params']);}function xt(_0x4f5261,_0x425af0,_0x2913cf){const _0x3eb6a8=_0x57d9cc;let _0x113827=_0x4f5261['body'],_0x47a2cd=_0x425af0[_0x3eb6a8(0x11b)],_0x83c76f=St(_0x113827==null?void 0x0:_0x113827['dataStream'],_0x47a2cd==null?void 0x0:_0x47a2cd['dataStream']);if(!_0x83c76f||!_0x47a2cd)return null;let _0x5b642d=new _0x5899e6();return _0x5b642d[_0x3eb6a8(0x1b2)](_0x83c76f[_0x3eb6a8(0xfe)]),_0x83c76f['insertLength']>0x0&&_0x5b642d[_0x3eb6a8(0x1bd)](_0x83c76f[_0x3eb6a8(0xfb)],_0x3580b2(_0x47a2cd,_0x83c76f['start'],_0x83c76f[_0x3eb6a8(0xfe)]+_0x83c76f['insertLength'],!0x1)),_0x83c76f[_0x3eb6a8(0x11d)]>0x0&&_0x5b642d[_0x3eb6a8(0x1d6)](_0x83c76f[_0x3eb6a8(0x11d)]),_0x3ed648[_0x3eb6a8(0x1d1)]()[_0x3eb6a8(0x147)](_0x5b642d[_0x3eb6a8(0x108)](),_0x2913cf);}function St(_0xbeeedd,_0x2e381e){const _0x1b584b=_0x57d9cc;if(_0xbeeedd==null||_0x2e381e==null||_0xbeeedd===_0x2e381e)return null;let _0x208083=0x0;for(;_0x208083<_0xbeeedd['length']&&_0x208083<_0x2e381e[_0x1b584b(0xfd)]&&_0xbeeedd[_0x208083]===_0x2e381e[_0x208083];)_0x208083+=0x1;let _0x283b35=_0xbeeedd[_0x1b584b(0xfd)],_0x171207=_0x2e381e[_0x1b584b(0xfd)];for(;_0x283b35>_0x208083&&_0x171207>_0x208083&&_0xbeeedd[_0x283b35-0x1]===_0x2e381e[_0x171207-0x1];)--_0x283b35,--_0x171207;return{'start':_0x208083,'deleteLength':_0x283b35-_0x208083,'insertLength':_0x171207-_0x208083};}function Ct(_0x5993df){const _0x4a7061=_0x57d9cc;return{'schemaVersion':0x1,'formulas':Object['fromEntries'](Object['entries'](_0x5993df['formulas'])[_0x4a7061(0xf3)](([_0x859309,_0xa6b3c3])=>[_0x859309,{..._0xa6b3c3,..._0xa6b3c3[_0x4a7061(0x195)]?{'numberFormat':{..._0xa6b3c3['numberFormat']}}:null,..._0xa6b3c3['lastValue']?{'lastValue':{..._0xa6b3c3[_0x4a7061(0x1a4)]}}:null}]))};}let Y=class extends _0x6c759e{constructor(_0x1c3430,_0x12c525,_0x4e6c45,_0x42cbfd){const _0x2a5a1a=_0x57d9cc;super(),this[_0x2a5a1a(0x1cf)]=_0x1c3430,this[_0x2a5a1a(0x125)]=_0x12c525,this['_model']=_0x4e6c45,this['_service']=_0x42cbfd,N(this,_0x2a5a1a(0x12d),new Set()),N(this,_0x2a5a1a(0x1c2),!0x1),N(this,'_isDisposed',!0x1),this[_0x2a5a1a(0x1cf)][_0x2a5a1a(0x116)](_0x485006['UNIVER_DOC'])['forEach'](_0x5a5dfc=>this[_0x2a5a1a(0x146)]['syncUnit'](_0x5a5dfc)),this[_0x2a5a1a(0x109)](this[_0x2a5a1a(0x126)]['change$'][_0x2a5a1a(0x16c)](({unitId:_0x3c3a72})=>this['_syncUnit'](_0x3c3a72))),this['disposeWithMe'](this[_0x2a5a1a(0x1cf)]['unitAdded$']['subscribe'](({unit:_0x506ff3})=>{const _0x514be3=_0x2a5a1a;_0x506ff3['type']===_0x485006[_0x514be3(0x1b9)]&&this[_0x514be3(0x1c1)](_0x506ff3[_0x514be3(0x181)]());})),this[_0x2a5a1a(0x109)](this[_0x2a5a1a(0x1cf)][_0x2a5a1a(0x123)][_0x2a5a1a(0x16c)](_0x4e6ecc=>{const _0x45723f=_0x2a5a1a;this[_0x45723f(0x146)]['unregisterUnit'](_0x4e6ecc[_0x45723f(0x181)]());})),this[_0x2a5a1a(0x109)](this['_commandService']['onCommandExecuted'](_0x28bee7=>{const _0x3e3e8a=_0x2a5a1a;if(_0x28bee7['id']===_0x3fc66a['id']&&wt(_0x28bee7['params'])){let _0x31803e=_0x28bee7[_0x3e3e8a(0x1d7)];_0x31803e[_0x3e3e8a(0x165)]||this[_0x3e3e8a(0x171)](_0x31803e[_0x3e3e8a(0x1a9)]);}}));}['dispose'](){const _0x4b4283=_0x57d9cc;this[_0x4b4283(0xf0)]=!0x0,super[_0x4b4283(0x149)]();}[_0x57d9cc(0x1c1)](_0x4ca6c1){const _0x158f71=_0x57d9cc;this[_0x158f71(0x12d)][_0x158f71(0x19b)](_0x4ca6c1),!this[_0x158f71(0x1c2)]&&(this[_0x158f71(0x1c2)]=!0x0,queueMicrotask(()=>{const _0xd1275d=_0x158f71;if(this[_0xd1275d(0x1c2)]=!0x1,this['_isDisposed'])return;let _0x4075e5=Array[_0xd1275d(0x12c)](this[_0xd1275d(0x12d)]);this[_0xd1275d(0x12d)][_0xd1275d(0x1a7)](),_0x4075e5['forEach'](_0xcaa62b=>this[_0xd1275d(0x171)](_0xcaa62b));}));}['_syncUnit'](_0x30812e){const _0x3e7dca=_0x57d9cc;let _0x43d902=this['_instanceService']['getUnit'](_0x30812e,_0x485006['UNIVER_DOC']);_0x43d902&&this[_0x3e7dca(0x146)][_0x3e7dca(0x17a)](_0x43d902);}};Y=I([F(0x0,_0x2ec209),F(0x1,_0x29cd00),F(0x2,_0x562b77(P)),F(0x3,_0x562b77(L))],Y);function wt(_0x58d244){const _0x699a99=_0x57d9cc;return typeof _0x58d244==_0x699a99(0x18c)&&!!_0x58d244&&_0x699a99(0x1a9)in _0x58d244&&typeof _0x58d244['unitId']==_0x699a99(0x1d0)&&(!(_0x699a99(0x165)in _0x58d244)||_0x58d244[_0x699a99(0x165)]===void 0x0||typeof _0x58d244[_0x699a99(0x165)]==_0x699a99(0x1d0));}let X=class extends _0x6c759e{constructor(_0x43529d,_0xb7cbfc){const _0x1ccb66=_0x57d9cc;super(),this[_0x1ccb66(0x193)]=_0x43529d,this[_0x1ccb66(0x134)]=_0xb7cbfc,this[_0x1ccb66(0x109)](this[_0x1ccb66(0x193)][_0x1ccb66(0xe1)]({'pluginName':y,'businesses':[_0x485006[_0x1ccb66(0x1b9)]],'toJson':_0x415c87=>JSON[_0x1ccb66(0x157)](this[_0x1ccb66(0x134)][_0x1ccb66(0x108)](_0x415c87)),'parseJson':_0x20ce81=>JSON[_0x1ccb66(0x16d)](_0x20ce81),'onLoad':(_0x3c4f43,_0x42716b)=>{const _0x3c35d4=_0x1ccb66;this[_0x3c35d4(0x134)][_0x3c35d4(0x18a)](_0x3c4f43,_0x42716b);},'onUnLoad':_0x3a924b=>this[_0x1ccb66(0x134)]['removeUnit'](_0x3a924b)}));}};X=I([F(0x0,_0x491b6a),F(0x1,_0x562b77(P))],X);var Tt=_0x57d9cc(0x1c0),Et=_0x57d9cc(0x135);function _0x47e0(_0x2e507d,_0x28698d){_0x2e507d=_0x2e507d-0xe0;const _0x525a17=_0x525a();let _0x47e087=_0x525a17[_0x2e507d];return _0x47e087;}const Dt={};let Z=class extends _0x6c759e{constructor(_0x11f0a7,_0x25edb3,_0x59fdd0){const _0x11b834=_0x57d9cc;super(),this[_0x11b834(0x163)]=_0x11f0a7,this[_0x11b834(0x105)]=_0x25edb3,this[_0x11b834(0x109)](_0x59fdd0['register']({'resolve':(_0x45f325,_0x590f90)=>{const _0x25265c=_0x11b834;var _0x3c30cf;return((_0x3c30cf=_0x590f90['customRanges'])==null?void 0x0:_0x3c30cf[_0x25265c(0x17b)](w)[_0x25265c(0xf3)](_0x426ad9=>({'startOffset':_0x426ad9[_0x25265c(0xf4)],'endOffset':_0x426ad9[_0x25265c(0xef)]+0x1,'text':this[_0x25265c(0x164)](_0x45f325,_0x426ad9[_0x25265c(0x18e)])})))??[];}})),this[_0x11b834(0x109)](this['_formulaService'][_0x11b834(0xee)][_0x11b834(0x16c)](({unitId:_0x451280})=>{_0x59fdd0['notifyTextChanged'](_0x451280);}));}[_0x57d9cc(0x164)](_0x1f4305,_0x3e7333){const _0x255c96=_0x57d9cc;var _0x5e636c;return((_0x5e636c=this['_formulaService'][_0x255c96(0x159)]({'unitId':_0x1f4305,'rangeId':_0x3e7333}))==null?void 0x0:_0x5e636c[_0x255c96(0x113)])??'';}[_0x57d9cc(0x175)](_0x18309f,_0x2e7f1b,_0x3eac27){const _0x234e4b=_0x57d9cc;var _0x308482;let _0x1f3bb9=this['_univerInstanceService']['getUnit'](_0x18309f,_0x485006[_0x234e4b(0x1b9)]),_0x40e93f=_0x1f3bb9==null?void 0x0:_0x1f3bb9[_0x234e4b(0x1a5)]();if(!_0x40e93f)return'';let _0x2d2672=_0x40e93f[_0x234e4b(0x13d)]['slice'](_0x2e7f1b,_0x3eac27),_0x579685=((_0x308482=_0x40e93f[_0x234e4b(0x1a3)])==null?void 0x0:_0x308482[_0x234e4b(0x17b)](_0x4ba2ce=>w(_0x4ba2ce)&&_0x4ba2ce[_0x234e4b(0xf4)]>=_0x2e7f1b&&_0x4ba2ce['endIndex']<_0x3eac27)['sort']((_0x564589,_0x79dd08)=>_0x79dd08[_0x234e4b(0xf4)]-_0x564589[_0x234e4b(0xf4)]))??[];for(let _0x136cfd of _0x579685){let _0xd07120=_0x136cfd[_0x234e4b(0xf4)]-_0x2e7f1b,_0x1a30f7=_0x136cfd[_0x234e4b(0xef)]-_0x2e7f1b+0x1;_0x2d2672=''+_0x2d2672[_0x234e4b(0x196)](0x0,_0xd07120)+this['resolveFormula'](_0x18309f,_0x136cfd[_0x234e4b(0x18e)])+_0x2d2672[_0x234e4b(0x196)](_0x1a30f7);}return _0x2d2672;}[_0x57d9cc(0x153)](_0x5134c0){return Ot(_0x5134c0);}[_0x57d9cc(0xe0)](_0x241642,_0x4d246c,_0x5d2c60={}){const _0xcddbcf=_0x57d9cc;var _0x39f78d;return Ve({'id':_0x241642,'body':_0x4d246c,'documentStyle':{}},(((_0x39f78d=_0x4d246c[_0xcddbcf(0x1a3)])==null?void 0x0:_0x39f78d['filter'](w))??[])[_0xcddbcf(0xf3)](_0x17b383=>({'rangeId':_0x17b383[_0xcddbcf(0x18e)],'text':_0x5d2c60[_0x17b383['rangeId']]??this['resolveFormula'](_0x241642,_0x17b383[_0xcddbcf(0x18e)])})))[_0xcddbcf(0x11b)]??{'dataStream':''};}};Z=I([F(0x0,_0x2ec209),F(0x1,_0x562b77(L)),F(0x2,_0x562b77(_0x3bca36))],Z);function Ot(_0xabb8ac){const _0x2697c0=_0x57d9cc;var _0x32fc3d,_0x424f2e;let _0x84acd7=kt(_0xabb8ac),_0x702b8c=Ve(_0xabb8ac,(((_0x32fc3d=_0xabb8ac[_0x2697c0(0x11b)])==null||(_0x32fc3d=_0x32fc3d[_0x2697c0(0x1a3)])==null?void 0x0:_0x32fc3d[_0x2697c0(0x17b)](w))??[])[_0x2697c0(0xf3)](_0x4d9fe3=>({'rangeId':_0x4d9fe3['rangeId'],'text':At(_0x84acd7==null?void 0x0:_0x84acd7[_0x2697c0(0xf6)][_0x4d9fe3[_0x2697c0(0x18e)]])})));return _0x702b8c[_0x2697c0(0x16f)]=(_0x424f2e=_0x702b8c[_0x2697c0(0x16f)])==null?void 0x0:_0x424f2e[_0x2697c0(0x17b)](_0x1694e6=>_0x1694e6[_0x2697c0(0x143)]!==y),_0x702b8c;}function kt(_0x4f1523){const _0x2176fc=_0x57d9cc;var _0x1da458;let _0x4888b7=(_0x1da458=_0x4f1523['resources'])==null||(_0x1da458=_0x1da458[_0x2176fc(0x1ce)](_0x2cc38e=>_0x2cc38e[_0x2176fc(0x143)]==='DOC_FORMULA_PLUGIN'))==null?void 0x0:_0x1da458[_0x2176fc(0xf2)];if(_0x4888b7)try{let _0x44985d=JSON[_0x2176fc(0x16d)](_0x4888b7);return x(_0x44985d)?_0x44985d:void 0x0;}catch{return;}}function At(_0x5591a6){const _0x3bd865=_0x57d9cc;return _0x5591a6?_0x819468({'lastValue':_0x5591a6[_0x3bd865(0x1a4)],'numberFormat':_0x5591a6['numberFormat']})['text']:'';}let Q=class extends _0x6c759e{constructor(_0x309b5b,_0x53f39f,_0x48214c){const _0x244073=_0x57d9cc;super(),this[_0x244073(0x105)]=_0x309b5b,this['_cacheEligibilityService']=_0x53f39f,this[_0x244073(0x109)](_0x48214c['registerProvider'](this));}[_0x57d9cc(0x12a)](_0x4047b4){const _0x49841d=_0x57d9cc;let _0x3a03c7=new Map();for(let _0x4f0935 of this[_0x49841d(0x105)][_0x49841d(0x1b7)]()){var _0x1e8ae3;if(!this['_cacheEligibilityService']['assess'](_0x4f0935[_0x49841d(0x13a)][_0x49841d(0x1af)],_0x4f0935[_0x49841d(0x10b)])[_0x49841d(0x177)])continue;let _0x101cfb=_0x1bae38(_0x4f0935['liveResult']),_0x5a6c9b=_0x101cfb?_0x47e086(_0x101cfb):null;if(!_0x5a6c9b||jt(_0x4f0935[_0x49841d(0x13a)][_0x49841d(0x1a4)],_0x5a6c9b))continue;let _0x275b87=_0x3a03c7[_0x49841d(0xe7)](_0x4f0935[_0x49841d(0x1da)][_0x49841d(0x1a9)])??[];_0x275b87[_0x49841d(0x144)]({'rangeId':_0x4f0935[_0x49841d(0x1da)][_0x49841d(0x18e)],'expectedFormula':_0x4f0935['config']['formula'],'expectedNumberFormat':(_0x1e8ae3=_0x4f0935[_0x49841d(0x13a)]['numberFormat'])==null?void 0x0:_0x1e8ae3['pattern'],'expectedReferenceRevision':_0x4f0935['referenceRevision'],'lastValue':_0x5a6c9b}),_0x3a03c7[_0x49841d(0x1b4)](_0x4f0935['identity']['unitId'],_0x275b87);}return Array[_0x49841d(0x12c)](_0x3a03c7,([_0x1cc259,_0x1a7ce7])=>({'id':H['id'],'params':{'unitId':_0x1cc259,'updates':_0x1a7ce7}}));}};Q=I([F(0x0,_0x562b77(L)),F(0x1,_0x562b77(_0x589545)),F(0x2,_0x562b77(_0x4d102c))],Q);function jt(_0x3fe974,_0x17d866){const _0x15ba40=_0x57d9cc;return(_0x3fe974==null?void 0x0:_0x3fe974['v'])===_0x17d866['v']&&(_0x3fe974==null?void 0x0:_0x3fe974['t'])===_0x17d866['t']&&(_0x3fe974==null?void 0x0:_0x3fe974['pattern'])===_0x17d866[_0x15ba40(0x121)];}let $=class extends _0x36ab54{constructor(_0x360537=Dt,_0x42fd68,_0x16d8a1,_0x4bc75e){const _0x88bb63=_0x57d9cc;super(),this[_0x88bb63(0x119)]=_0x360537,this[_0x88bb63(0x15b)]=_0x42fd68,this[_0x88bb63(0x125)]=_0x16d8a1,this[_0x88bb63(0x1c4)]=_0x4bc75e;let {..._0xb62eb2}=_0x50ef0e({},Dt,this[_0x88bb63(0x119)]);this[_0x88bb63(0x1c4)]['setConfig']('docs-formula.config',_0xb62eb2);}[_0x57d9cc(0xf5)](){const _0x5a68f7=_0x57d9cc;this['_injector'][_0x5a68f7(0x19b)]([P]),this[_0x5a68f7(0x15b)][_0x5a68f7(0x19b)]([L]),this[_0x5a68f7(0x15b)]['add']([X]),this['_injector'][_0x5a68f7(0x19b)]([Y]),this['_injector']['add']([Q]),this[_0x5a68f7(0x15b)][_0x5a68f7(0x19b)]([Z]),_0x79798a(this['_injector'],[[P],[X],[Y],[Q],[Z]]),[ot,st,V,H,U,W,G,K,ct,lt][_0x5a68f7(0x139)](_0x1623e2=>this[_0x5a68f7(0x109)](this[_0x5a68f7(0x125)][_0x5a68f7(0x148)](_0x1623e2)));}};N($,'pluginName',y),N($,_0x57d9cc(0x194),Tt),N($,_0x57d9cc(0x110),Et),N($,_0x57d9cc(0x19f),_0x485006[_0x57d9cc(0x1b9)]),$=I([_0x2afdc3(_0x59ff3a,_0x3cd3d5,_0x5052e5),F(0x1,_0x562b77(_0x14f00e)),F(0x2,_0x29cd00),F(0x3,_0x476834)],$);export{lt as ConvertDocFormulaToTextCommand,Me as DOC_FORMULA_CUSTOM_RANGE_KIND,Ne as DOC_FORMULA_OBJECT_REPLACEMENT,y as DOC_FORMULA_PLUGIN,je as DOC_FORMULA_SCHEMA_VERSION,Z as DocFormulaDisplayTextService,Y as DocFormulaLifecycleController,P as DocFormulaModel,X as DocFormulaResourceController,it as DocFormulaResultStatus,L as DocFormulaService,U as InsertDocFormulaCommand,C as InvalidDocFormulaInsertRangeError,K as RemoveDocFormulaCommand,st as RemoveDocFormulaMutation,ct as ReplaceDocFormulaWithTextCommand,H as SetDocFormulaLastValuesMutation,ot as SetDocFormulaMutation,G as SetDocFormulaNumberFormatCommand,V as SetDocFormulaResourceMutation,$ as UniverDocsFormulaPlugin,W as UpdateDocFormulaCommand,He as assertSafeDocFormulaInsertRange,Re as buildInsertDocFormulaActions,Be as buildRemoveDocFormulaActions,ze as buildUpdateDocFormulaActions,b as createEmptyDocFormulaResource,Ot as degradeDocFormulaDocumentData,T as findDocFormulaRange,Pe as isDocFormulaConfig,w as isDocFormulaRange,x as isDocFormulaResource,Fe as isFormulaLastValue};
|
|
1
|
+
const _0x18cc3=_0x5c97;(function(_0x32f822,_0x31bad3){const _0x38e259=_0x5c97,_0x2cb3e6=_0x32f822();while(!![]){try{const _0xe234=parseInt(_0x38e259(0x178))/0x1+parseInt(_0x38e259(0x199))/0x2+parseInt(_0x38e259(0x19f))/0x3*(-parseInt(_0x38e259(0x16c))/0x4)+parseInt(_0x38e259(0x122))/0x5*(parseInt(_0x38e259(0x104))/0x6)+-parseInt(_0x38e259(0x11d))/0x7+-parseInt(_0x38e259(0x17a))/0x8+parseInt(_0x38e259(0x19c))/0x9*(-parseInt(_0x38e259(0x129))/0xa);if(_0xe234===_0x31bad3)break;else _0x2cb3e6['push'](_0x2cb3e6['shift']());}catch(_0xfcd1ab){_0x2cb3e6['push'](_0x2cb3e6['shift']());}}}(_0x1745,0x21a91));import{FormulaCacheEligibilityService as _0x3b4337,FormulaLastValuePersistenceService as _0x10b137,HostExternalReferenceModel as _0x4c2fec,UniverProFormulaEnginePlugin as _0xb2e160,buildUpsertHostExternalReferenceMutations as _0x1e344d,collectFormulaExternalReferenceQualifiers as _0x51c5b2,getScalarFormulaResultCell as _0x1ff720,resolveFormulaResultPresentation as _0x3ddcc7,resolveHostFormulaExternalReferences as _0x1b3797,toFormulaLastValue as _0x4977e2}from'@univerjs-pro/engine-formula';import{CellValueType as _0x4caaef,CommandType as _0x180a99,CustomRangeType as _0x16c72a,DataStreamTreeTokenType as _0x20e742,DependentOn as _0x423cf2,Disposable as _0x4ff05d,ICommandService as _0x23d207,IConfigService as _0x3a9ecf,IResourceManagerService as _0x27e934,IUndoRedoService as _0x1cf111,IUniverInstanceService as _0x2f20c7,Inject as _0x3f1c8b,Injector as _0x57b2b9,JSONX as _0x71110d,Plugin as _0x253e10,TextX as _0x3bd205,Tools as _0x381d68,UniverInstanceType as _0x106590,generateRandomId as _0x51cbf3,getBodySliceForTextXAction as _0x307e5c,getCustomRangeInterval as _0xd34d7e,getParagraphContentStartOffset as _0x3b94db,getRichTextEditPath as _0x47e386,merge as _0x5aceac,shiftExclusiveRangeOnDelete as _0x1cbe27,shiftExclusiveRangeOnInsert as _0x5c965b,shiftInclusiveRangeOnDelete as _0x1ab29b,shiftInclusiveRangeOnInsert as _0x499da7,touchDependencies as _0xbb7c0c}from'@univerjs/core';import{DOC_SELECTION_OPTION_PRESERVE_CARET as _0x4063e0,DocSelectionManagerService as _0x268941,DocTextResolverService as _0x23a854,RichTextEditingMutation as _0x5c51e6,UniverDocsPlugin as _0x5d4396}from'@univerjs/docs';import{FormulaResultStatus as _0x1a30ad,LexerTreeBuilder as _0x2a6039,OtherFormulaBizType as _0xc230f8,RegisterOtherFormulaService as _0x209f95}from'@univerjs/engine-formula';import{Subject as _0x3a4da6}from'rxjs';import{UniverLicensePlugin as _0x2a4fe0}from'@univerjs-pro/license';const y=_0x18cc3(0x174),je=0x1,Me=_0x18cc3(0x1f1),Ne='';function b(){return{'schemaVersion':0x1,'formulas':{}};}function x(_0x39f2f2){const _0x174a2e=_0x18cc3;return!_0x39f2f2||typeof _0x39f2f2!=_0x174a2e(0x167)||!S(_0x39f2f2,[_0x174a2e(0x11a),'formulas'])||!(_0x174a2e(0x11a)in _0x39f2f2)||_0x39f2f2[_0x174a2e(0x11a)]!==0x1||!('formulas'in _0x39f2f2)||!_0x39f2f2[_0x174a2e(0x15b)]||typeof _0x39f2f2[_0x174a2e(0x15b)]!=_0x174a2e(0x167)||Array[_0x174a2e(0x1bc)](_0x39f2f2['formulas'])?!0x1:Object[_0x174a2e(0x1ce)](_0x39f2f2[_0x174a2e(0x15b)])[_0x174a2e(0x19b)](([_0x41bcea,_0xa5ba3a])=>_0x41bcea[_0x174a2e(0x1cf)]>0x0&&Pe(_0xa5ba3a));}function Pe(_0x5efb5d){const _0x507ad5=_0x18cc3;return!_0x5efb5d||typeof _0x5efb5d!=_0x507ad5(0x167)||!S(_0x5efb5d,[_0x507ad5(0x1df),_0x507ad5(0xfd),'lastValue'])||!('formula'in _0x5efb5d)||typeof _0x5efb5d['formula']!=_0x507ad5(0x1d6)||!_0x5efb5d[_0x507ad5(0x1df)][_0x507ad5(0x106)]()||_0x507ad5(0xfd)in _0x5efb5d&&_0x5efb5d[_0x507ad5(0xfd)]!=null&&(typeof _0x5efb5d[_0x507ad5(0xfd)]!='object'||!S(_0x5efb5d[_0x507ad5(0xfd)],[_0x507ad5(0x1c2)])||!(_0x507ad5(0x1c2)in _0x5efb5d[_0x507ad5(0xfd)])||typeof _0x5efb5d[_0x507ad5(0xfd)]['pattern']!=_0x507ad5(0x1d6))?!0x1:!(_0x507ad5(0x16d)in _0x5efb5d)||_0x5efb5d['lastValue']==null||Fe(_0x5efb5d[_0x507ad5(0x16d)]);}function Fe(_0x2a8f0e){const _0x2dd1e9=_0x18cc3;return!_0x2a8f0e||typeof _0x2a8f0e!='object'||!S(_0x2a8f0e,['v','t','pattern'])||!('v'in _0x2a8f0e)||_0x2a8f0e['v']!==null&&typeof _0x2a8f0e['v']!=_0x2dd1e9(0x1d6)&&typeof _0x2a8f0e['v']!=_0x2dd1e9(0x1b0)&&typeof _0x2a8f0e['v']!=_0x2dd1e9(0x16a)||'t'in _0x2a8f0e&&_0x2a8f0e['t']!=null&&!Ie(_0x2a8f0e['t'])?!0x1:!('pattern'in _0x2a8f0e)||_0x2a8f0e[_0x2dd1e9(0x1c2)]==null||typeof _0x2a8f0e[_0x2dd1e9(0x1c2)]=='string';}function S(_0x14c0b5,_0x292461){const _0x5a135a=_0x18cc3;let _0x2dda19=new Set(_0x292461);return Object[_0x5a135a(0x102)](_0x14c0b5)[_0x5a135a(0x19b)](_0x399ebc=>_0x2dda19[_0x5a135a(0x139)](_0x399ebc));}function Ie(_0x3551c7){const _0x3bc82a=_0x18cc3;return typeof _0x3551c7==_0x3bc82a(0x1b0)&&Object[_0x3bc82a(0x172)](_0x4caaef)['includes'](_0x3551c7);}const Le=new Set([_0x20e742[_0x18cc3(0x133)],_0x20e742['TABLE_START'],_0x20e742[_0x18cc3(0x142)],_0x20e742[_0x18cc3(0x147)],_0x20e742[_0x18cc3(0x145)],_0x20e742[_0x18cc3(0x155)],_0x20e742[_0x18cc3(0x11f)],_0x20e742[_0x18cc3(0x19a)],_0x20e742[_0x18cc3(0x10f)],_0x20e742['COLUMN_END'],_0x20e742[_0x18cc3(0x121)],_0x20e742[_0x18cc3(0x1cb)],_0x20e742[_0x18cc3(0x1aa)],_0x20e742[_0x18cc3(0x17d)]]);var C=class extends Error{constructor(){const _0x40c431=_0x18cc3;super(_0x40c431(0x1db));}};function Re(_0x2f4a3d){const _0x34381=_0x18cc3;var _0xefdd1b,_0x382599;let _0x277a7f=_0x381d68[_0x34381(0x18c)](_0x2f4a3d[_0x34381(0x15a)]),_0x3d5d19=j(_0x277a7f),{startOffset:_0x3bddac,endOffset:_0xa80df6}=We(_0x3d5d19,_0x2f4a3d[_0x34381(0x118)],_0x2f4a3d['endOffset']);He(_0x3d5d19,_0x3bddac,_0xa80df6);let _0x4ba0eb=((_0xefdd1b=_0x3d5d19[_0x34381(0x179)])==null?void 0x0:_0xefdd1b['filter'](_0xc4da7=>{const _0x1d693c=_0x34381;if(!w(_0xc4da7))return!0x1;let _0x2cc8be=_0xd34d7e(_0xc4da7);return _0x2cc8be[_0x1d693c(0x1ec)]>_0x3bddac&&_0x2cc8be[_0x1d693c(0x118)]<_0xa80df6;})[_0x34381(0x109)](_0x4a891f=>_0x4a891f[_0x34381(0xff)]))??[];qe(_0x3d5d19,_0x3bddac,_0xa80df6,''),_0x3d5d19[_0x34381(0x179)]=[...((_0x382599=_0x3d5d19['customRanges'])==null?void 0x0:_0x382599['filter'](_0x326b42=>!_0x4ba0eb['includes'](_0x326b42[_0x34381(0xff)])&&_0x326b42[_0x34381(0xff)]!==_0x2f4a3d[_0x34381(0xff)]))??[],Ue(_0x2f4a3d[_0x34381(0xff)],_0x3bddac)][_0x34381(0x1ba)]((_0x39c2bb,_0x5dc90b)=>_0x39c2bb[_0x34381(0x124)]-_0x5dc90b[_0x34381(0x124)]);let _0x42ca00=E(_0x2f4a3d[_0x34381(0x12b)]);return _0x4ba0eb['forEach'](_0x1a7f23=>{delete _0x42ca00['formulas'][_0x1a7f23];}),_0x42ca00[_0x34381(0x15b)][_0x2f4a3d[_0x34381(0xff)]]=_0x381d68[_0x34381(0x18c)](_0x2f4a3d['config']),{'nextDocumentData':_0x277a7f,'nextResource':_0x42ca00,'cursorOffset':_0x3bddac+0x1};}function ze(_0x24ef89){const _0x1b98bf=_0x18cc3;var _0x270355,_0x1e370b;let _0xf6140b=_0x381d68[_0x1b98bf(0x18c)](_0x24ef89[_0x1b98bf(0x15a)]),_0x332efa=(_0x270355=j(_0xf6140b)['customRanges'])==null?void 0x0:_0x270355[_0x1b98bf(0x1c4)](_0x2f8c9c=>_0x2f8c9c[_0x1b98bf(0xff)]===_0x24ef89[_0x1b98bf(0xff)]&&w(_0x2f8c9c));if(!_0x332efa||!((_0x1e370b=_0x24ef89['resource'])!=null&&_0x1e370b[_0x1b98bf(0x15b)][_0x24ef89[_0x1b98bf(0xff)]]))return null;let _0x597f86=E(_0x24ef89[_0x1b98bf(0x12b)]);return _0x597f86[_0x1b98bf(0x15b)][_0x24ef89[_0x1b98bf(0xff)]]=_0x381d68[_0x1b98bf(0x18c)](_0x24ef89[_0x1b98bf(0x119)]),{'nextDocumentData':_0xf6140b,'nextResource':_0x597f86,'cursorOffset':_0x332efa[_0x1b98bf(0x1a8)]+0x1};}function Be(_0x4a033e){const _0x1dd78a=_0x18cc3;let _0x536e51=_0x381d68[_0x1dd78a(0x18c)](_0x4a033e[_0x1dd78a(0x15a)]),_0x25f89b=Je(_0x536e51,_0x4a033e[_0x1dd78a(0xff)],_0x4a033e[_0x1dd78a(0x19e)]??'');if(_0x25f89b==null)return null;let _0x4932f4=E(_0x4a033e[_0x1dd78a(0x12b)]);return delete _0x4932f4[_0x1dd78a(0x15b)][_0x4a033e['rangeId']],{'nextDocumentData':_0x536e51,'nextResource':_0x4932f4,'cursorOffset':_0x25f89b};}function Ve(_0x18f02b,_0x24b291){const _0x74060e=_0x18cc3;var _0x4bbfb3;let _0x25c74e=_0x381d68[_0x74060e(0x18c)](_0x18f02b),_0x121b36=_0x25c74e[_0x74060e(0x1f3)];if(!_0x121b36)return _0x25c74e;let _0x4a076a=new Map(_0x24b291[_0x74060e(0x109)](_0x5604e6=>[_0x5604e6[_0x74060e(0xff)],_0x5604e6[_0x74060e(0x19e)]])),_0x554ffb=((_0x4bbfb3=_0x121b36[_0x74060e(0x179)])==null?void 0x0:_0x4bbfb3[_0x74060e(0x17e)](_0x2a325b=>w(_0x2a325b)&&_0x4a076a[_0x74060e(0x139)](_0x2a325b[_0x74060e(0xff)]))[_0x74060e(0x1ba)]((_0x7bb821,_0x1ab19e)=>_0x1ab19e['startIndex']-_0x7bb821[_0x74060e(0x124)]))??[];for(let _0x510c4b of _0x554ffb)Je(_0x25c74e,_0x510c4b[_0x74060e(0xff)],_0x4a076a['get'](_0x510c4b['rangeId'])??'');return _0x25c74e;}function w(_0x1f8484){const _0x22db73=_0x18cc3;var _0x305edb;return(_0x1f8484==null?void 0x0:_0x1f8484['rangeType'])===_0x16c72a['CUSTOM']&&_0x1f8484[_0x22db73(0x111)]===!0x0&&((_0x305edb=_0x1f8484[_0x22db73(0x14e)])==null?void 0x0:_0x305edb[_0x22db73(0x18e)])===_0x22db73(0x1f1);}function T(_0x4b8c9d,_0x92c01c){const _0x148526=_0x18cc3;var _0x17a8c9;return _0x4b8c9d==null||(_0x17a8c9=_0x4b8c9d['customRanges'])==null?void 0x0:_0x17a8c9[_0x148526(0x1c4)](_0x3d2f15=>_0x3d2f15[_0x148526(0xff)]===_0x92c01c&&w(_0x3d2f15));}function He(_0x3eecee,_0x463309,_0x4decfa){const _0x2f557f=_0x18cc3;if(_0x463309===_0x4decfa){if(Le[_0x2f557f(0x139)](_0x3eecee[_0x2f557f(0x13a)][_0x463309]))throw new C();return;}for(let _0x582ece=_0x463309;_0x582ece<_0x4decfa;_0x582ece++)if(_0x3eecee[_0x2f557f(0x13a)][_0x582ece]===_0x20e742[_0x2f557f(0x18d)]||Le[_0x2f557f(0x139)](_0x3eecee['dataStream'][_0x582ece]))throw new C();}function Ue(_0x4e9cc1,_0x59ac81){const _0x162f0f=_0x18cc3;return{'startIndex':_0x59ac81,'endIndex':_0x59ac81,'rangeId':_0x4e9cc1,'rangeType':_0x16c72a[_0x162f0f(0x193)],'wholeEntity':!0x0,'properties':{'kind':Me}};}function E(_0x59f28e){const _0x5c221e=_0x18cc3;return _0x59f28e?_0x381d68[_0x5c221e(0x18c)](_0x59f28e):b();}function We(_0x3b3575,_0x27a214,_0x53094f){const _0x887919=_0x18cc3;let _0x37f24b=Ke(_0x3b3575),_0x3ab1f8=_0x27a214??_0x37f24b,_0x51a549=_0x53094f??_0x3ab1f8;return{'startOffset':Ge(Math[_0x887919(0x196)](_0x3ab1f8,_0x51a549),_0x37f24b),'endOffset':Ge(Math[_0x887919(0x140)](_0x3ab1f8,_0x51a549),_0x37f24b)};}function Ge(_0x3cfeaa,_0x5042c2){const _0x18c5b8=_0x18cc3;return Math[_0x18c5b8(0x140)](0x0,Math[_0x18c5b8(0x196)](_0x3cfeaa,_0x5042c2));}function Ke(_0xecc012){const _0x2018a9=_0x18cc3;return _0xecc012[_0x2018a9(0x13a)][_0x2018a9(0x1e7)](''+_0x20e742['PARAGRAPH']+_0x20e742[_0x2018a9(0x133)])?Math[_0x2018a9(0x140)](0x0,_0xecc012[_0x2018a9(0x13a)][_0x2018a9(0x1cf)]-0x2):_0xecc012[_0x2018a9(0x13a)][_0x2018a9(0x1e7)](_0x20e742[_0x2018a9(0x133)])?Math[_0x2018a9(0x140)](0x0,_0xecc012[_0x2018a9(0x13a)][_0x2018a9(0x1cf)]-0x1):_0xecc012[_0x2018a9(0x13a)][_0x2018a9(0x1cf)];}function qe(_0x366e33,_0xe37fcd,_0x55dfb2,_0x489c49){_0x55dfb2>_0xe37fcd&&Xe(_0x366e33,_0xe37fcd,_0x55dfb2),Ye(_0x366e33,_0xe37fcd,_0x489c49);}function Je(_0xd749db,_0x36c4a2,_0x5c88c3){const _0x185353=_0x18cc3;var _0x18a5ba,_0x3c75cc;let _0x4580ac=j(_0xd749db),_0x2852da=(_0x18a5ba=_0x4580ac[_0x185353(0x179)])==null?void 0x0:_0x18a5ba[_0x185353(0x1c4)](_0x396b37=>_0x396b37[_0x185353(0xff)]===_0x36c4a2&&w(_0x396b37));if(!_0x2852da)return null;let _0x210f14=_0xd34d7e(_0x2852da);return qe(_0x4580ac,_0x210f14[_0x185353(0x118)],_0x210f14[_0x185353(0x1ec)],_0x5c88c3),_0x4580ac['customRanges']=(_0x3c75cc=_0x4580ac['customRanges'])==null?void 0x0:_0x3c75cc[_0x185353(0x17e)](_0x1d7663=>_0x1d7663[_0x185353(0xff)]!==_0x36c4a2),_0x210f14[_0x185353(0x118)]+_0x5c88c3[_0x185353(0x1cf)];}function Ye(_0x47ae36,_0xc13eef,_0x3002ea){const _0x831d2a=_0x18cc3;_0x3002ea&&(_0x47ae36[_0x831d2a(0x13a)]=''+_0x47ae36['dataStream'][_0x831d2a(0x116)](0x0,_0xc13eef)+_0x3002ea+_0x47ae36[_0x831d2a(0x13a)][_0x831d2a(0x116)](_0xc13eef),Ze(_0x47ae36,_0xc13eef,_0x3002ea['length']));}function Xe(_0x235efe,_0x3a7e31,_0x2bbb70){const _0x229ba6=_0x18cc3;let _0x28b958=_0x2bbb70-_0x3a7e31;_0x235efe[_0x229ba6(0x13a)]=''+_0x235efe[_0x229ba6(0x13a)][_0x229ba6(0x116)](0x0,_0x3a7e31)+_0x235efe['dataStream'][_0x229ba6(0x116)](_0x2bbb70),Qe(_0x235efe,_0x3a7e31,_0x28b958);}function Ze(_0x20d789,_0x4dca34,_0x36ad3b){const _0x4df099=_0x18cc3;_0x20d789[_0x4df099(0x112)]=D(_0x20d789[_0x4df099(0x112)],_0x4dca34,_0x36ad3b),_0x20d789[_0x4df099(0x10c)]=D(_0x20d789[_0x4df099(0x10c)],_0x4dca34,_0x36ad3b),_0x20d789['customBlocks']=D(_0x20d789[_0x4df099(0x127)],_0x4dca34,_0x36ad3b),_0x20d789[_0x4df099(0x173)]=$e(_0x20d789[_0x4df099(0x173)],_0x4dca34,_0x36ad3b),_0x20d789[_0x4df099(0x188)]=et(_0x20d789[_0x4df099(0x188)],_0x4dca34,_0x36ad3b),_0x20d789[_0x4df099(0x161)]=k(_0x20d789[_0x4df099(0x161)],_0x4dca34,_0x36ad3b),_0x20d789[_0x4df099(0x179)]=k(_0x20d789[_0x4df099(0x179)],_0x4dca34,_0x36ad3b),_0x20d789[_0x4df099(0x170)]=k(_0x20d789['customDecorations'],_0x4dca34,_0x36ad3b),_0x20d789[_0x4df099(0x1c3)]=k(_0x20d789[_0x4df099(0x1c3)],_0x4dca34,_0x36ad3b);}function Qe(_0x376ffb,_0x47e509,_0x239af0){const _0x5ecf92=_0x18cc3;var _0x42eb43,_0xae561c;_0x376ffb[_0x5ecf92(0x112)]=O(_0x376ffb[_0x5ecf92(0x112)],_0x47e509,_0x239af0),_0x376ffb[_0x5ecf92(0x10c)]=O(_0x376ffb[_0x5ecf92(0x10c)],_0x47e509,_0x239af0),_0x376ffb['customBlocks']=O(_0x376ffb[_0x5ecf92(0x127)],_0x47e509,_0x239af0),_0x376ffb['textRuns']=(_0x42eb43=tt((_0xae561c=_0x376ffb[_0x5ecf92(0x173)])==null?void 0x0:_0xae561c[_0x5ecf92(0x109)](_0x275478=>({..._0x275478,'startIndex':_0x275478['st'],'endIndex':_0x275478['ed']})),_0x47e509,_0x239af0))==null?void 0x0:_0x42eb43[_0x5ecf92(0x109)](_0x34ef37=>{let {startIndex:_0x2a0e0c,endIndex:_0x258143,..._0x41ebb3}=_0x34ef37;return{..._0x41ebb3,'st':_0x2a0e0c,'ed':_0x258143};}),_0x376ffb['tables']=tt(_0x376ffb['tables'],_0x47e509,_0x239af0),_0x376ffb[_0x5ecf92(0x161)]=A(_0x376ffb[_0x5ecf92(0x161)],_0x47e509,_0x239af0),_0x376ffb[_0x5ecf92(0x179)]=A(_0x376ffb[_0x5ecf92(0x179)],_0x47e509,_0x239af0),_0x376ffb[_0x5ecf92(0x170)]=A(_0x376ffb[_0x5ecf92(0x170)],_0x47e509,_0x239af0),_0x376ffb[_0x5ecf92(0x1c3)]=A(_0x376ffb['blockRanges'],_0x47e509,_0x239af0);}function D(_0x58775e,_0x349616,_0x51951a){const _0x4bd41a=_0x18cc3;return _0x58775e==null?void 0x0:_0x58775e[_0x4bd41a(0x109)](_0x216b53=>_0x216b53[_0x4bd41a(0x124)]>=_0x349616?{..._0x216b53,'startIndex':_0x216b53[_0x4bd41a(0x124)]+_0x51951a}:_0x216b53);}function O(_0x495305,_0x38be02,_0x5b9d4a){const _0x43361d=_0x18cc3;let _0x39e17a=_0x38be02+_0x5b9d4a;return _0x495305==null?void 0x0:_0x495305[_0x43361d(0x109)](_0x2ada07=>_0x2ada07[_0x43361d(0x124)]>=_0x38be02&&_0x2ada07[_0x43361d(0x124)]<_0x39e17a?null:_0x2ada07['startIndex']>=_0x39e17a?{..._0x2ada07,'startIndex':_0x2ada07[_0x43361d(0x124)]-_0x5b9d4a}:_0x2ada07)[_0x43361d(0x17e)](_0x566af7=>_0x566af7!=null);}function $e(_0x53247b,_0x502164,_0x25e2b8){const _0x192381=_0x18cc3;return _0x53247b==null?void 0x0:_0x53247b[_0x192381(0x109)](_0x10ca9c=>_0x10ca9c['st']>=_0x502164?{..._0x10ca9c,'st':_0x10ca9c['st']+_0x25e2b8,'ed':_0x10ca9c['ed']+_0x25e2b8}:_0x10ca9c['ed']>_0x502164?{..._0x10ca9c,'ed':_0x10ca9c['ed']+_0x25e2b8}:_0x10ca9c);}function k(_0x4cb657,_0x5c1766,_0x16590a){const _0x478174=_0x18cc3;return _0x4cb657==null?void 0x0:_0x4cb657[_0x478174(0x109)](_0x329553=>_0x499da7(_0x329553,_0x5c1766,_0x16590a));}function et(_0x38b5be,_0x26aa12,_0x478600){const _0x4e99d7=_0x18cc3;return _0x38b5be==null?void 0x0:_0x38b5be[_0x4e99d7(0x109)](_0x503302=>_0x5c965b(_0x503302,_0x26aa12,_0x478600));}function A(_0x29d1e8,_0x64a424,_0x3ba36f){const _0x1c328b=_0x18cc3;return _0x29d1e8==null?void 0x0:_0x29d1e8[_0x1c328b(0x109)](_0x2fe446=>_0x1ab29b(_0x2fe446,_0x64a424,_0x3ba36f))[_0x1c328b(0x17e)](_0xf36619=>_0xf36619!=null);}function tt(_0x45f6ea,_0x1e7b26,_0x1b6011){const _0x4d5195=_0x18cc3;return _0x45f6ea==null?void 0x0:_0x45f6ea['map'](_0x68209e=>_0x1cbe27(_0x68209e,_0x1e7b26,_0x1b6011))[_0x4d5195(0x17e)](_0x2eb854=>_0x2eb854!=null);}function j(_0x237e27){const _0x10fcc5=_0x18cc3;if(!_0x237e27[_0x10fcc5(0x1f3)])throw Error(_0x10fcc5(0x150));return _0x237e27[_0x10fcc5(0x1f3)];}function _0x5c97(_0x431c91,_0x5001fe){_0x431c91=_0x431c91-0xfd;const _0x1745ad=_0x1745();let _0x5c977f=_0x1745ad[_0x431c91];return _0x5c977f;}function M(_0x443edb){'@babel/helpers - typeof';const _0x5995af=_0x18cc3;return M=typeof Symbol==_0x5995af(0x107)&&typeof Symbol['iterator']==_0x5995af(0x13e)?function(_0x6af839){return typeof _0x6af839;}:function(_0x2bb55a){const _0x1152ba=_0x5995af;return _0x2bb55a&&typeof Symbol==_0x1152ba(0x107)&&_0x2bb55a[_0x1152ba(0x1f5)]===Symbol&&_0x2bb55a!==Symbol[_0x1152ba(0x1b6)]?'symbol':typeof _0x2bb55a;},M(_0x443edb);}function nt(_0x3ec633,_0x4340c6){const _0x4a4715=_0x18cc3;if(M(_0x3ec633)!=_0x4a4715(0x167)||!_0x3ec633)return _0x3ec633;var _0x35adfc=_0x3ec633[Symbol[_0x4a4715(0x132)]];if(_0x35adfc!==void 0x0){var _0x3ffd13=_0x35adfc[_0x4a4715(0x115)](_0x3ec633,_0x4340c6||_0x4a4715(0x1b4));if(M(_0x3ffd13)!=_0x4a4715(0x167))return _0x3ffd13;throw TypeError(_0x4a4715(0x10a));}return(_0x4340c6==='string'?String:Number)(_0x3ec633);}function rt(_0x1386e4){const _0x59ad12=_0x18cc3;var _0x4fd926=nt(_0x1386e4,_0x59ad12(0x1d6));return M(_0x4fd926)==_0x59ad12(0x13e)?_0x4fd926:_0x4fd926+'';}function N(_0x12cce4,_0x4152f4,_0x4f9ec9){return(_0x4152f4=rt(_0x4152f4))in _0x12cce4?Object['defineProperty'](_0x12cce4,_0x4152f4,{'value':_0x4f9ec9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x12cce4[_0x4152f4]=_0x4f9ec9,_0x12cce4;}var P=class extends _0x4ff05d{constructor(..._0x1dc888){const _0x59cca0=_0x18cc3;super(..._0x1dc888),N(this,_0x59cca0(0x154),new Map()),N(this,_0x59cca0(0x11e),new Map()),N(this,_0x59cca0(0x1dc),new Map()),N(this,_0x59cca0(0x1e1),new _0x3a4da6()),N(this,_0x59cca0(0x1ca),this[_0x59cca0(0x1e1)][_0x59cca0(0x1a1)]());}['getFormula'](_0x172f36,_0x3fc41d){const _0x57a50b=_0x18cc3;var _0x2a14dc;let _0x37a1b5=(_0x2a14dc=this['_resources'][_0x57a50b(0x151)](_0x172f36))==null?void 0x0:_0x2a14dc['formulas'][_0x3fc41d];return _0x37a1b5?_0x381d68['deepClone'](_0x37a1b5):void 0x0;}[_0x18cc3(0x187)](_0x171cd3){const _0x85ed8=_0x18cc3;var _0x476f83;return _0x381d68[_0x85ed8(0x18c)](((_0x476f83=this[_0x85ed8(0x154)][_0x85ed8(0x151)](_0x171cd3))==null?void 0x0:_0x476f83[_0x85ed8(0x15b)])??{});}['getResource'](_0x4e8906){const _0x2fe0ec=_0x18cc3;let _0x2eb1c0=this['_resources'][_0x2fe0ec(0x151)](_0x4e8906);return _0x2eb1c0?_0x381d68['deepClone'](_0x2eb1c0):void 0x0;}[_0x18cc3(0x181)](_0x17fb02,_0x2a9104,_0x3d45be){return this['setFormulas'](_0x17fb02,{[_0x2a9104]:_0x3d45be});}[_0x18cc3(0x14a)](_0x104203,_0x4abe4a){const _0x57fb81=_0x18cc3;return this[_0x57fb81(0x1dc)]['has'](_0x104203)||!x(_0x4abe4a)?!0x1:(this[_0x57fb81(0x154)][_0x57fb81(0x1e2)](_0x104203,_0x381d68[_0x57fb81(0x18c)](_0x4abe4a)),this[_0x57fb81(0x1e1)][_0x57fb81(0x123)]({'unitId':_0x104203}),!0x0);}['setFormulas'](_0x1856a7,_0x1e7a27){const _0x13e7d1=_0x18cc3;if(this[_0x13e7d1(0x1dc)]['has'](_0x1856a7)||!Object['keys'](_0x1e7a27)['length']||!x({'schemaVersion':0x1,'formulas':_0x1e7a27}))return!0x1;let _0x4299a3=this[_0x13e7d1(0x154)]['get'](_0x1856a7)??b(),_0x195719=_0x381d68['deepClone'](_0x4299a3);return Object[_0x13e7d1(0x108)](_0x195719[_0x13e7d1(0x15b)],_0x381d68['deepClone'](_0x1e7a27)),this['_resources']['set'](_0x1856a7,_0x195719),this[_0x13e7d1(0x1e1)]['next']({'unitId':_0x1856a7,'rangeIds':Object[_0x13e7d1(0x102)](_0x1e7a27)}),!0x0;}[_0x18cc3(0x1c0)](_0x164156,_0x11350f){const _0x3862d9=_0x18cc3;if(this[_0x3862d9(0x1dc)][_0x3862d9(0x139)](_0x164156))return!0x1;let _0x4b74f6=this['_resources']['get'](_0x164156);if(!(_0x4b74f6!=null&&_0x4b74f6[_0x3862d9(0x15b)][_0x11350f]))return!0x1;let _0x129ba7=_0x381d68[_0x3862d9(0x18c)](_0x4b74f6);return delete _0x129ba7['formulas'][_0x11350f],this['_resources'][_0x3862d9(0x1e2)](_0x164156,_0x129ba7),this['_change$']['next']({'unitId':_0x164156,'rangeIds':[_0x11350f]}),!0x0;}[_0x18cc3(0x1cc)](_0x3c6e5d,_0x29de52){const _0x11bd15=_0x18cc3;return _0x29de52&&typeof _0x29de52=='object'&&'schemaVersion'in _0x29de52&&_0x29de52[_0x11bd15(0x11a)]!==0x1?(this['_preserveInvalid'](_0x3c6e5d,_0x29de52,'unsupported-version'),!0x1):x(_0x29de52)?(this[_0x11bd15(0x154)][_0x11bd15(0x1e2)](_0x3c6e5d,_0x381d68['deepClone'](_0x29de52)),this[_0x11bd15(0x11e)]['delete'](_0x3c6e5d),this[_0x11bd15(0x1dc)][_0x11bd15(0x1ad)](_0x3c6e5d),this[_0x11bd15(0x1e1)]['next']({'unitId':_0x3c6e5d}),!0x0):(this[_0x11bd15(0x166)](_0x3c6e5d,_0x29de52,_0x11bd15(0x110)),!0x1);}[_0x18cc3(0x126)](_0x10c838){const _0x5df81a=_0x18cc3;let _0x42b510=this[_0x5df81a(0x154)][_0x5df81a(0x151)](_0x10c838);return _0x42b510?_0x381d68[_0x5df81a(0x18c)](_0x42b510):this[_0x5df81a(0x11e)][_0x5df81a(0x139)](_0x10c838)?_0x381d68[_0x5df81a(0x18c)](this[_0x5df81a(0x11e)][_0x5df81a(0x151)](_0x10c838)):b();}[_0x18cc3(0x131)](_0x5ec62c){const _0x43cc8f=_0x18cc3;return this['_loadErrors'][_0x43cc8f(0x151)](_0x5ec62c);}[_0x18cc3(0x103)](_0x46df03){const _0x477900=_0x18cc3;this[_0x477900(0x154)][_0x477900(0x1ad)](_0x46df03),this[_0x477900(0x11e)][_0x477900(0x1ad)](_0x46df03),this[_0x477900(0x1dc)][_0x477900(0x1ad)](_0x46df03),this[_0x477900(0x1e1)]['next']({'unitId':_0x46df03});}['dispose'](){const _0x427553=_0x18cc3;this['_resources']['clear'](),this[_0x427553(0x11e)]['clear'](),this[_0x427553(0x1dc)][_0x427553(0x11b)](),this[_0x427553(0x1e1)][_0x427553(0x1be)](),super[_0x427553(0x175)]();}['_preserveInvalid'](_0x1dc390,_0x160bf7,_0x28a4bd){const _0x2d2ed0=_0x18cc3;this[_0x2d2ed0(0x154)]['delete'](_0x1dc390),this['_rawResources'][_0x2d2ed0(0x1e2)](_0x1dc390,_0x381d68[_0x2d2ed0(0x18c)](_0x160bf7)),this[_0x2d2ed0(0x1dc)][_0x2d2ed0(0x1e2)](_0x1dc390,_0x28a4bd),this[_0x2d2ed0(0x1e1)][_0x2d2ed0(0x123)]({'unitId':_0x1dc390});}};let it=function(_0x15e551){const _0x30dbcd=_0x18cc3;return _0x15e551['EMPTY']='empty',_0x15e551['PENDING']=_0x30dbcd(0x197),_0x15e551[_0x30dbcd(0x117)]=_0x30dbcd(0x1a6),_0x15e551[_0x30dbcd(0x1c7)]=_0x30dbcd(0x1a3),_0x15e551;}({});function F(_0x5b4953,_0x3b21d3){return function(_0x1d6ed7,_0x5196b7){_0x3b21d3(_0x1d6ed7,_0x5196b7,_0x5b4953);};}function I(_0x2c8f5f,_0x108be1,_0x3f31a4,_0x4dbeab){const _0x55a543=_0x18cc3;var _0x23eb51=arguments['length'],_0x15369c=_0x23eb51<0x3?_0x108be1:_0x4dbeab===null?_0x4dbeab=Object[_0x55a543(0x1f0)](_0x108be1,_0x3f31a4):_0x4dbeab,_0x422046;if(typeof Reflect==_0x55a543(0x167)&&typeof Reflect[_0x55a543(0x113)]=='function')_0x15369c=Reflect[_0x55a543(0x113)](_0x2c8f5f,_0x108be1,_0x3f31a4,_0x4dbeab);else{for(var _0x4556ab=_0x2c8f5f[_0x55a543(0x1cf)]-0x1;_0x4556ab>=0x0;_0x4556ab--)(_0x422046=_0x2c8f5f[_0x4556ab])&&(_0x15369c=(_0x23eb51<0x3?_0x422046(_0x15369c):_0x23eb51>0x3?_0x422046(_0x108be1,_0x3f31a4,_0x15369c):_0x422046(_0x108be1,_0x3f31a4))||_0x15369c);}return _0x23eb51>0x3&&_0x15369c&&Object[_0x55a543(0x1bd)](_0x108be1,_0x3f31a4,_0x15369c),_0x15369c;}let L=class extends _0x4ff05d{constructor(_0xcd139d,_0x28cee8,_0x54202c){const _0x3c31f0=_0x18cc3;super(),this[_0x3c31f0(0x1d7)]=_0xcd139d,this['_registrationService']=_0x28cee8,this[_0x3c31f0(0x1da)]=_0x54202c,N(this,_0x3c31f0(0x15d),new Map()),N(this,_0x3c31f0(0x1e6),new Map()),N(this,_0x3c31f0(0x194),new _0x3a4da6()),N(this,_0x3c31f0(0x1cd),this['_presentationChanged$']['asObservable']()),this[_0x3c31f0(0x160)](this[_0x3c31f0(0x1bb)]['formulaResult$'][_0x3c31f0(0x13b)](_0x5b5299=>{const _0x29f373=_0x3c31f0;for(let _0x4090f9 of Object[_0x29f373(0x172)](_0x5b5299))for(let _0x169432 of Object[_0x29f373(0x172)](_0x4090f9))_0x169432[_0x29f373(0x14f)](_0x15f2f1=>this[_0x29f373(0x1a7)](_0x15f2f1));}));}[_0x18cc3(0x135)](_0x2bacb0){const _0x830fca=_0x18cc3;var _0x135e73;let _0x5d6e5a=_0x2bacb0['getUnitId'](),_0x293681=((_0x135e73=_0x2bacb0['getSnapshot']()[_0x830fca(0x1f3)])==null||(_0x135e73=_0x135e73[_0x830fca(0x179)])==null?void 0x0:_0x135e73[_0x830fca(0x17e)](w))??[],_0x48df68=this[_0x830fca(0x1d7)][_0x830fca(0x187)](_0x5d6e5a),_0x3e048f=new Set();for(let _0x5184d1 of _0x293681){let _0x3fb1fe=_0x48df68[_0x5184d1[_0x830fca(0xff)]];_0x3fb1fe&&(_0x3e048f['add'](R(_0x5d6e5a,_0x5184d1['rangeId'])),this[_0x830fca(0x198)]({'unitId':_0x5d6e5a,'rangeId':_0x5184d1[_0x830fca(0xff)]},_0x3fb1fe));}for(let _0x1ff298 of Array[_0x830fca(0x1d5)](this['_registrations']['values']()))_0x1ff298['unitId']===_0x5d6e5a&&!_0x3e048f[_0x830fca(0x139)](R(_0x1ff298[_0x830fca(0x1e9)],_0x1ff298[_0x830fca(0xff)]))&&this[_0x830fca(0x10d)](_0x1ff298);}[_0x18cc3(0x198)](_0x10bd77,_0x295018){const _0x86ff9b=_0x18cc3;let _0x116e5f=R(_0x10bd77[_0x86ff9b(0x1e9)],_0x10bd77[_0x86ff9b(0xff)]),_0xa62644=this[_0x86ff9b(0x15d)][_0x86ff9b(0x151)](_0x116e5f),_0x5d0da4=this['_hostExternalReferenceModel'][_0x86ff9b(0x13f)](_0x10bd77[_0x86ff9b(0x1e9)]);if(_0xa62644&&_0xa62644['config'][_0x86ff9b(0x1df)]===_0x295018['formula']&&_0xa62644[_0x86ff9b(0x195)]===_0x5d0da4){_0xa62644[_0x86ff9b(0x119)]=_0x295018;let _0x9a4acb=_0xa62644[_0x86ff9b(0x153)]?this[_0x86ff9b(0x1bb)][_0x86ff9b(0x192)](_0xa62644[_0x86ff9b(0x1e9)],_0xa62644['unitId'],_0xa62644['formulaId'])??void 0x0:void 0x0;_0xa62644['liveResult']=_0x9a4acb,this[_0x86ff9b(0x14c)](_0x116e5f,z(_0x295018,_0x9a4acb));return;}_0xa62644!=null&&_0xa62644[_0x86ff9b(0x153)]&&this[_0x86ff9b(0x164)](_0xa62644);let _0x2a4951={..._0x10bd77,'config':_0x295018,'referenceRevision':_0x5d0da4,'presentation':z(_0x295018,void 0x0)};if(this['_registrations'][_0x86ff9b(0x1e2)](_0x116e5f,_0x2a4951),!_0x295018[_0x86ff9b(0x1df)][_0x86ff9b(0x106)]())return;let _0x52ce0c=this[_0x86ff9b(0x1bb)][_0x86ff9b(0x1e3)](_0x10bd77[_0x86ff9b(0x1e9)],_0x10bd77['unitId'],_0x295018['formula'],void 0x0,{'rangeId':_0x10bd77[_0x86ff9b(0xff)]},_0xc230f8[_0x86ff9b(0x19d)],_0x10bd77[_0x86ff9b(0xff)]);_0x2a4951[_0x86ff9b(0x153)]=_0x52ce0c,this[_0x86ff9b(0x1e6)][_0x86ff9b(0x1e2)](_0x52ce0c,_0x116e5f);}[_0x18cc3(0x10d)](_0x3dcaaf){const _0x1fdf99=_0x18cc3;let _0x2c8762=R(_0x3dcaaf[_0x1fdf99(0x1e9)],_0x3dcaaf[_0x1fdf99(0xff)]),_0x4dfca9=this[_0x1fdf99(0x15d)][_0x1fdf99(0x151)](_0x2c8762);_0x4dfca9&&(this['_deleteRegistration'](_0x4dfca9),this['_registrations'][_0x1fdf99(0x1ad)](_0x2c8762));}[_0x18cc3(0x148)](_0x227030){const _0x47c693=_0x18cc3;for(let _0x471d20 of Array[_0x47c693(0x1d5)](this[_0x47c693(0x15d)][_0x47c693(0x172)]()))_0x471d20[_0x47c693(0x1e9)]===_0x227030&&this[_0x47c693(0x10d)](_0x471d20);}[_0x18cc3(0x177)](_0x2f2a24){const _0x94788c=_0x18cc3;var _0x482879;return(_0x482879=this[_0x94788c(0x15d)][_0x94788c(0x151)](R(_0x2f2a24[_0x94788c(0x1e9)],_0x2f2a24['rangeId'])))==null?void 0x0:_0x482879[_0x94788c(0x1b8)];}[_0x18cc3(0x1d2)](_0x3c0b03){const _0x4273b7=_0x18cc3;let _0x5153d1=this[_0x4273b7(0x15d)][_0x4273b7(0x151)](R(_0x3c0b03[_0x4273b7(0x1e9)],_0x3c0b03[_0x4273b7(0xff)]));return _0x5153d1?B(_0x5153d1):void 0x0;}['getRegisteredFormulas'](){const _0x196075=_0x18cc3;return Array[_0x196075(0x1d5)](this[_0x196075(0x15d)]['values'](),_0x25cb93=>({'identity':{'unitId':_0x25cb93['unitId'],'rangeId':_0x25cb93['rangeId']},'config':_0x25cb93[_0x196075(0x119)],'referenceRevision':_0x25cb93[_0x196075(0x195)],..._0x25cb93[_0x196075(0x1d0)]?{'liveResult':_0x25cb93[_0x196075(0x1d0)]}:null}));}[_0x18cc3(0x175)](){const _0x5c2fea=_0x18cc3;for(let _0x444c9d of this[_0x5c2fea(0x15d)][_0x5c2fea(0x172)]())this[_0x5c2fea(0x164)](_0x444c9d);this['_registrations'][_0x5c2fea(0x11b)](),this[_0x5c2fea(0x1e6)][_0x5c2fea(0x11b)](),this['_presentationChanged$'][_0x5c2fea(0x1be)](),super[_0x5c2fea(0x175)]();}['_updateFormulaResult'](_0x36dc36){const _0x5a6278=_0x18cc3;let _0x38901f=this[_0x5a6278(0x1e6)][_0x5a6278(0x151)](_0x36dc36[_0x5a6278(0x153)]),_0x254307=_0x38901f?this['_registrations']['get'](_0x38901f):void 0x0;_0x38901f&&_0x254307&&(_0x254307['liveResult']=_0x36dc36,this['_setPresentation'](_0x38901f,z(_0x254307[_0x5a6278(0x119)],_0x36dc36)));}['_setPresentation'](_0x356b49,_0x577a79){const _0xfa5e2f=_0x18cc3;var _0x3b7cfc,_0x1f2d42;let _0x211513=this[_0xfa5e2f(0x15d)][_0xfa5e2f(0x151)](_0x356b49);if(!_0x211513||at(_0x211513['presentation'],_0x577a79))return;let _0x5a242a=_0x211513[_0xfa5e2f(0x1b8)],_0x3ff261=B(_0x211513);_0x211513[_0xfa5e2f(0x1b8)]=_0x577a79,this['_presentationChanged$'][_0xfa5e2f(0x123)]({'unitId':_0x211513[_0xfa5e2f(0x1e9)],'rangeId':_0x211513['rangeId'],'presentation':_0x577a79,'previousPresentation':_0x5a242a,'result':B(_0x211513),'previousResult':{..._0x3ff261,..._0x5a242a,'value':(_0x3b7cfc=_0x5a242a[_0xfa5e2f(0x11c)])==null?void 0x0:_0x3b7cfc['v'],'valueType':((_0x1f2d42=_0x5a242a[_0xfa5e2f(0x11c)])==null?void 0x0:_0x1f2d42['t'])??void 0x0}});}[_0x18cc3(0x164)](_0xdb17f9){const _0xbd78af=_0x18cc3;_0xdb17f9[_0xbd78af(0x153)]&&(this[_0xbd78af(0x1bb)][_0xbd78af(0x156)](_0xdb17f9[_0xbd78af(0x1e9)],_0xdb17f9[_0xbd78af(0x1e9)],[_0xdb17f9['formulaId']]),this['_formulaKeys'][_0xbd78af(0x1ad)](_0xdb17f9[_0xbd78af(0x153)]));}};L=I([F(0x0,_0x3f1c8b(P)),F(0x1,_0x3f1c8b(_0x209f95)),F(0x2,_0x3f1c8b(_0x4c2fec))],L);function R(_0x46ef40,_0x4d9fcd){return _0x46ef40+'\x00'+_0x4d9fcd;}function z(_0x282dd7,_0x3b87ee){const _0x160790=_0x18cc3;return _0x3ddcc7({'numberFormat':_0x282dd7[_0x160790(0xfd)],'lastValue':_0x282dd7['lastValue'],'result':_0x3b87ee});}function B(_0x4ef6fa){const _0x31d4c4=_0x18cc3;var _0x20ee9b,_0x4a5097,_0x43eb9c;let _0x23d580=_0x4ef6fa[_0x31d4c4(0x1b8)],_0x193a05=_0x4ef6fa[_0x31d4c4(0x119)][_0x31d4c4(0x1df)]['trim']()?_0x23d580[_0x31d4c4(0x18b)]||_0x23d580['cell']==null?'pending':((_0x20ee9b=_0x4ef6fa[_0x31d4c4(0x1d0)])==null?void 0x0:_0x20ee9b[_0x31d4c4(0x169)])===_0x1a30ad[_0x31d4c4(0x1c7)]?_0x31d4c4(0x1a3):_0x31d4c4(0x1a6):_0x31d4c4(0x10b);return{..._0x23d580,'status':_0x193a05,'value':(_0x4a5097=_0x23d580[_0x31d4c4(0x11c)])==null?void 0x0:_0x4a5097['v'],'valueType':((_0x43eb9c=_0x23d580[_0x31d4c4(0x11c)])==null?void 0x0:_0x43eb9c['t'])??void 0x0};}function at(_0x4b0c19,_0x4d64c2){const _0x567e53=_0x18cc3;var _0x1082fa,_0xa3b5ec,_0x1f329e,_0xe9eefe;return _0x4b0c19[_0x567e53(0x19e)]===_0x4d64c2['text']&&_0x4b0c19[_0x567e53(0x15f)]===_0x4d64c2[_0x567e53(0x15f)]&&_0x4b0c19[_0x567e53(0x1c2)]===_0x4d64c2[_0x567e53(0x1c2)]&&_0x4b0c19[_0x567e53(0x1b5)]===_0x4d64c2['source']&&_0x4b0c19[_0x567e53(0x18b)]===_0x4d64c2['stale']&&((_0x1082fa=_0x4b0c19[_0x567e53(0x11c)])==null?void 0x0:_0x1082fa['t'])===((_0xa3b5ec=_0x4d64c2['cell'])==null?void 0x0:_0xa3b5ec['t'])&&Object['is']((_0x1f329e=_0x4b0c19['cell'])==null?void 0x0:_0x1f329e['v'],(_0xe9eefe=_0x4d64c2[_0x567e53(0x11c)])==null?void 0x0:_0xe9eefe['v']);}const ot={'id':_0x18cc3(0x183),'type':_0x180a99[_0x18cc3(0x143)],'handler':(_0x4c6c14,_0x3ab5e2)=>!(_0x3ab5e2!=null&&_0x3ab5e2[_0x18cc3(0x1e9)])||!_0x3ab5e2[_0x18cc3(0xff)]||!_0x3ab5e2[_0x18cc3(0x119)]?!0x1:_0x4c6c14[_0x18cc3(0x151)](P)[_0x18cc3(0x181)](_0x3ab5e2[_0x18cc3(0x1e9)],_0x3ab5e2[_0x18cc3(0xff)],_0x3ab5e2[_0x18cc3(0x119)])},st={'id':'docs-formula.mutation.remove-formula','type':_0x180a99[_0x18cc3(0x143)],'handler':(_0x204ccf,_0xb5a314)=>!(_0xb5a314!=null&&_0xb5a314['unitId'])||!_0xb5a314[_0x18cc3(0xff)]?!0x1:_0x204ccf['get'](P)[_0x18cc3(0x1c0)](_0xb5a314[_0x18cc3(0x1e9)],_0xb5a314[_0x18cc3(0xff)])},V={'id':_0x18cc3(0x1f2),'type':_0x180a99['MUTATION'],'handler':(_0xd6f73f,_0x19dbea)=>!(_0x19dbea!=null&&_0x19dbea['unitId'])||!_0x19dbea[_0x18cc3(0x12b)]?!0x1:_0xd6f73f[_0x18cc3(0x151)](P)[_0x18cc3(0x14a)](_0x19dbea[_0x18cc3(0x1e9)],_0x19dbea[_0x18cc3(0x12b)])},H={'id':_0x18cc3(0x1e8),'type':_0x180a99[_0x18cc3(0x143)],'handler':(_0x1683ad,_0x394349)=>{const _0x324590=_0x18cc3;if(!(_0x394349!=null&&_0x394349[_0x324590(0x1e9)])||!_0x394349[_0x324590(0x1b2)][_0x324590(0x1cf)])return!0x1;let _0x135082=_0x1683ad[_0x324590(0x151)](P),_0x627a9f=_0x1683ad['get'](_0x4c2fec),_0x4cd5bd=_0x135082[_0x324590(0x1ee)](_0x394349[_0x324590(0x1e9)]);if(!_0x4cd5bd)return!0x1;let _0x324318=_0x381d68[_0x324590(0x18c)](_0x4cd5bd),_0x268f4c=!0x1;for(let _0x4a04ef of _0x394349[_0x324590(0x1b2)]){var _0x1228ad,_0x45e6fa,_0x4a065d,_0x432455;let _0x26152c=_0x324318[_0x324590(0x15b)][_0x4a04ef['rangeId']];_0x26152c&&_0x26152c[_0x324590(0x1df)]===_0x4a04ef[_0x324590(0x18a)]&&((_0x1228ad=_0x26152c['numberFormat'])==null?void 0x0:_0x1228ad[_0x324590(0x1c2)])===_0x4a04ef['expectedNumberFormat']&&_0x627a9f[_0x324590(0x13f)](_0x394349[_0x324590(0x1e9)])===_0x4a04ef[_0x324590(0x134)]&&(((_0x45e6fa=_0x26152c[_0x324590(0x16d)])==null?void 0x0:_0x45e6fa['v'])!==_0x4a04ef[_0x324590(0x16d)]['v']||((_0x4a065d=_0x26152c[_0x324590(0x16d)])==null?void 0x0:_0x4a065d['t'])!==_0x4a04ef[_0x324590(0x16d)]['t']||((_0x432455=_0x26152c[_0x324590(0x16d)])==null?void 0x0:_0x432455['pattern'])!==_0x4a04ef[_0x324590(0x16d)][_0x324590(0x1c2)])&&(_0x26152c[_0x324590(0x16d)]=_0x381d68[_0x324590(0x18c)](_0x4a04ef[_0x324590(0x16d)]),_0x268f4c=!0x0);}return!_0x268f4c||_0x135082['setResource'](_0x394349[_0x324590(0x1e9)],_0x324318);}},U={'id':_0x18cc3(0x144),'type':_0x180a99[_0x18cc3(0x10e)],'handler':(_0x1f96e8,_0x3b46b4)=>{const _0x5a25bb=_0x18cc3;if(!(_0x3b46b4!=null&&_0x3b46b4['formula'][_0x5a25bb(0x106)]()))return!0x1;let _0x507df0=q(_0x1f96e8,_0x3b46b4['unitId'],'');if(!_0x507df0)return!0x1;let _0x30c0ca=ft(_0x3b46b4[_0x5a25bb(0x1c1)],_0x507df0[_0x5a25bb(0x1f3)],dt(_0x1f96e8,_0x507df0[_0x5a25bb(0x1e9)]));if(!_0x30c0ca)return!0x1;let _0x4afb7d=pt(_0x1f96e8,_0x507df0['unitId'],_0x3b46b4['formula'],_0x3b46b4['externalReferences']??[]);if(!_0x4afb7d)return!0x1;let _0x591757=mt(_0x507df0['body'],_0x507df0[_0x5a25bb(0x163)],_0x507df0[_0x5a25bb(0x1e9)]),_0x3a432f=ht({'documentData':_0x507df0[_0x5a25bb(0x15a)],'resource':_0x507df0[_0x5a25bb(0x12b)],'rangeId':_0x591757,'config':{'formula':_0x3b46b4[_0x5a25bb(0x1df)],..._0x3b46b4['numberFormat']?{'numberFormat':_0x3b46b4['numberFormat']}:null},'startOffset':_0x30c0ca[_0x5a25bb(0x118)],'endOffset':_0x30c0ca[_0x5a25bb(0x1ec)]});if(!_0x3a432f)return!0x1;let _0x472a5e=_0x1e344d(_0x1f96e8,_0x507df0[_0x5a25bb(0x1e9)],_0x4afb7d);return!_0x472a5e||!J({'accessor':_0x1f96e8,'document':_0x507df0[_0x5a25bb(0x162)],'unitId':_0x507df0[_0x5a25bb(0x1e9)],'trigger':U['id'],'rangeId':_0x591757,'previousResource':_0x507df0[_0x5a25bb(0x12b)],'nextResource':_0x3a432f['nextResource'],'previousDocumentData':_0x507df0[_0x5a25bb(0x15a)],'nextDocumentData':_0x3a432f[_0x5a25bb(0x1b7)],'cursorOffset':_0x3a432f[_0x5a25bb(0x17f)],'externalMutations':_0x472a5e})?!0x1:{'rangeId':_0x591757,'startOffset':_0x3a432f[_0x5a25bb(0x17f)]-0x1,'endOffset':_0x3a432f[_0x5a25bb(0x17f)]};}},W={'id':_0x18cc3(0xfe),'type':_0x180a99[_0x18cc3(0x10e)],'handler':(_0x513753,_0x477b04)=>{const _0x50500c=_0x18cc3;if(!(_0x477b04!=null&&_0x477b04[_0x50500c(0xff)])||!_0x477b04['formula'][_0x50500c(0x106)]())return!0x1;let _0x59cf99=q(_0x513753,_0x477b04[_0x50500c(0x1e9)],''),_0x5a59ea=_0x59cf99==null?void 0x0:_0x59cf99['model'][_0x50500c(0x1ab)](_0x59cf99[_0x50500c(0x1e9)],_0x477b04['rangeId']),_0x45a70c=_0x59cf99?T(_0x59cf99['documentData'][_0x50500c(0x1f3)],_0x477b04[_0x50500c(0xff)]):void 0x0;if(!_0x59cf99||!_0x5a59ea||!_0x45a70c)return!0x1;let _0x27af7f=pt(_0x513753,_0x59cf99[_0x50500c(0x1e9)],_0x477b04[_0x50500c(0x1df)],_0x477b04[_0x50500c(0x1c8)]??[]);if(!_0x27af7f)return!0x1;let _0x21c315=_0x1e344d(_0x513753,_0x59cf99[_0x50500c(0x1e9)],_0x27af7f);if(!_0x21c315)return!0x1;let _0x1f6571=Ct(_0x59cf99[_0x50500c(0x12b)]);return _0x1f6571[_0x50500c(0x15b)][_0x477b04[_0x50500c(0xff)]]={'formula':_0x477b04[_0x50500c(0x1df)],..._0x477b04[_0x50500c(0xfd)]?{'numberFormat':_0x477b04[_0x50500c(0xfd)]}:_0x5a59ea[_0x50500c(0xfd)]?{'numberFormat':_0x5a59ea[_0x50500c(0xfd)]}:null},J({'accessor':_0x513753,'document':_0x59cf99[_0x50500c(0x162)],'unitId':_0x59cf99[_0x50500c(0x1e9)],'trigger':W['id'],'rangeId':_0x477b04[_0x50500c(0xff)],'previousResource':_0x59cf99['resource'],'nextResource':_0x1f6571,'cursorOffset':_0x45a70c[_0x50500c(0x1a8)]+0x1,'externalMutations':_0x21c315});}},G={'id':'docs-formula.command.set-number-format','type':_0x180a99['COMMAND'],'handler':(_0x59d64d,_0x54edbf)=>{const _0xb42082=_0x18cc3;if(!(_0x54edbf!=null&&_0x54edbf[_0xb42082(0xff)]))return!0x1;let _0x3a4305=q(_0x59d64d,_0x54edbf[_0xb42082(0x1e9)],''),_0x383a57=_0x3a4305==null?void 0x0:_0x3a4305[_0xb42082(0x163)]['getFormula'](_0x3a4305['unitId'],_0x54edbf[_0xb42082(0xff)]),_0x1169fb=_0x3a4305?T(_0x3a4305[_0xb42082(0x15a)]['body'],_0x54edbf[_0xb42082(0xff)]):void 0x0;if(!_0x3a4305||!_0x383a57||!_0x1169fb)return!0x1;let _0x21ba36=Ct(_0x3a4305[_0xb42082(0x12b)]);return _0x21ba36[_0xb42082(0x15b)][_0x54edbf['rangeId']]={..._0x383a57,..._0x54edbf['numberFormat']?{'numberFormat':_0x54edbf[_0xb42082(0xfd)]}:null},_0x54edbf['numberFormat']||delete _0x21ba36[_0xb42082(0x15b)][_0x54edbf[_0xb42082(0xff)]][_0xb42082(0xfd)],J({'accessor':_0x59d64d,'document':_0x3a4305['document'],'unitId':_0x3a4305[_0xb42082(0x1e9)],'trigger':G['id'],'rangeId':_0x54edbf[_0xb42082(0xff)],'previousResource':_0x3a4305['resource'],'nextResource':_0x21ba36,'cursorOffset':_0x1169fb[_0xb42082(0x1a8)]+0x1,'externalMutations':{}});}},K={'id':'docs-formula.command.remove','type':_0x180a99[_0x18cc3(0x10e)],'handler':(_0x57b88b,_0x28ba07)=>ut(_0x57b88b,_0x28ba07,'',K['id'])},ct={'id':_0x18cc3(0x1d4),'type':_0x180a99[_0x18cc3(0x10e)],'handler':(_0x34b4ef,_0x3bf4eb)=>ut(_0x34b4ef,_0x3bf4eb,(_0x3bf4eb==null?void 0x0:_0x3bf4eb['text'])??'',ct['id'])},lt={'id':'docs-formula.command.convert-to-text','type':_0x180a99[_0x18cc3(0x10e)],'handler':(_0x515a5c,_0x5d0532)=>{const _0x476058=_0x18cc3;if(!(_0x5d0532!=null&&_0x5d0532['rangeId']))return!0x1;let _0x3e04c2=q(_0x515a5c,_0x5d0532[_0x476058(0x1e9)],'');if(!_0x3e04c2)return!0x1;let _0x3bb988=_0x515a5c[_0x476058(0x151)](L)[_0x476058(0x1d2)]({'unitId':_0x3e04c2[_0x476058(0x1e9)],'rangeId':_0x5d0532[_0x476058(0xff)]});return _0x3bb988?ut(_0x515a5c,_0x5d0532,_0x3bb988[_0x476058(0x19e)],lt['id']):!0x1;}};function ut(_0xfce24e,_0x839ee4,_0x47cad5,_0x4e9965){const _0xe883ed=_0x18cc3;if(!(_0x839ee4!=null&&_0x839ee4[_0xe883ed(0xff)]))return!0x1;let _0x24343d=q(_0xfce24e,_0x839ee4[_0xe883ed(0x1e9)],'');if(!_0x24343d)return!0x1;let _0x4e473f=Be({'documentData':_0x24343d[_0xe883ed(0x15a)],'resource':_0x24343d[_0xe883ed(0x12b)],'rangeId':_0x839ee4[_0xe883ed(0xff)],'text':_0x47cad5});return _0x4e473f?J({'accessor':_0xfce24e,'document':_0x24343d[_0xe883ed(0x162)],'unitId':_0x24343d['unitId'],'trigger':_0x4e9965,'rangeId':_0x839ee4[_0xe883ed(0xff)],'previousResource':_0x24343d[_0xe883ed(0x12b)],'nextResource':_0x4e473f['nextResource'],'previousDocumentData':_0x24343d[_0xe883ed(0x15a)],'nextDocumentData':_0x4e473f[_0xe883ed(0x1b7)],'cursorOffset':_0x4e473f['cursorOffset'],'externalMutations':{}}):!0x1;}function q(_0x1a8c97,_0x498383,_0x48098b){const _0x4c5fe5=_0x18cc3;if(_0x48098b)return null;let _0x5181a7=_0x1a8c97[_0x4c5fe5(0x151)](_0x2f20c7),_0x97e5c9=(_0x498383?_0x5181a7[_0x4c5fe5(0x15e)](_0x498383,_0x106590[_0x4c5fe5(0x1d8)]):_0x5181a7['getCurrentUnitOfType'](_0x106590['UNIVER_DOC']))??null;if(!_0x97e5c9)return null;let _0x3825c2=_0x97e5c9['getSnapshot'](),_0x20e3bd=_0x3825c2[_0x4c5fe5(0x1f3)];if(_0x3825c2[_0x4c5fe5(0x1eb)]||!_0x20e3bd)return null;let _0x542d65=_0x1a8c97['get'](P);return _0x542d65[_0x4c5fe5(0x131)](_0x97e5c9[_0x4c5fe5(0x137)]())?null:{'document':_0x97e5c9,'body':_0x20e3bd,'documentData':_0x3825c2,'model':_0x542d65,'resource':_0x542d65[_0x4c5fe5(0x1ee)](_0x97e5c9[_0x4c5fe5(0x137)]())??b(),'unitId':_0x97e5c9[_0x4c5fe5(0x137)]()};}function dt(_0x2b54ed,_0xbf4b93){const _0x48e617=_0x18cc3;var _0x135793;return(_0x135793=_0x2b54ed[_0x48e617(0x151)](_0x268941)[_0x48e617(0x120)]({'subUnitId':_0xbf4b93,'unitId':_0xbf4b93}))==null?void 0x0:_0x135793[0x0];}function ft(_0x3166c0,_0xe9e040,_0x439361){const _0x43d5d9=_0x18cc3;if((_0x3166c0==null?void 0x0:_0x3166c0['type'])===_0x43d5d9(0x190)){var _0x548d68;let _0x1a566e=((_0x548d68=_0xe9e040[_0x43d5d9(0x112)])==null?void 0x0:_0x548d68[_0x43d5d9(0x17e)](_0x2de238=>_0x2de238[_0x43d5d9(0x1e0)]===_0x3166c0[_0x43d5d9(0x1e0)]))??[];if(_0x1a566e[_0x43d5d9(0x1cf)]!==0x1)return null;let _0xc10e51=_0x1a566e[0x0],_0x44243f=_0x3b94db(_0xe9e040,_0xc10e51),_0x4d7865=_0xc10e51['startIndex']-_0x44243f,_0x546d39=_0x3166c0[_0x43d5d9(0x1a0)]===_0x43d5d9(0x1a5)?_0x4d7865:_0x3166c0['position'];if(!Number[_0x43d5d9(0x130)](_0x546d39)||_0x546d39<0x0||_0x546d39>_0x4d7865)return null;let _0x296a70=_0x44243f+_0x546d39;return{'startOffset':_0x296a70,'endOffset':_0x296a70};}if((_0x3166c0==null?void 0x0:_0x3166c0[_0x43d5d9(0x1d1)])==='range')return!Number[_0x43d5d9(0x130)](_0x3166c0[_0x43d5d9(0x118)])||!Number['isInteger'](_0x3166c0[_0x43d5d9(0x1ec)])?null:{'startOffset':Math[_0x43d5d9(0x196)](_0x3166c0[_0x43d5d9(0x118)],_0x3166c0['endOffset']),'endOffset':Math['max'](_0x3166c0[_0x43d5d9(0x118)],_0x3166c0[_0x43d5d9(0x1ec)])};let _0x3ebaef=(_0x3166c0==null?void 0x0:_0x3166c0[_0x43d5d9(0x1d1)])==='selection'?_0x3166c0['selection']:_0x439361;return!_0x3ebaef||_0x3ebaef[_0x43d5d9(0x1ea)]?null:{'startOffset':Math[_0x43d5d9(0x196)](_0x3ebaef[_0x43d5d9(0x118)],_0x3ebaef[_0x43d5d9(0x1ec)]),'endOffset':Math['max'](_0x3ebaef[_0x43d5d9(0x118)],_0x3ebaef[_0x43d5d9(0x1ec)])};}function pt(_0x24d08b,_0x4c67cd,_0x302caf,_0x48f5dc){const _0x510efe=_0x18cc3;let _0x209216=_0x24d08b[_0x510efe(0x151)](_0x2a6039),_0x28d078=_0x302caf[_0x510efe(0x1af)]('=')?_0x302caf[_0x510efe(0x116)](0x1):_0x302caf,_0x16e774=_0x209216[_0x510efe(0x1e4)](_0x28d078);if(!_0x16e774)return null;let _0x557d8c=_0x24d08b[_0x510efe(0x151)](_0x4c2fec),_0x111a92=_0x1b3797({'qualifiers':_0x51c5b2(_0x16e774),'explicitReferences':_0x48f5dc??[],'resolveBinding':_0x2822a0=>_0x557d8c['resolveBinding'](_0x4c67cd,_0x2822a0)});return _0x111a92[_0x510efe(0x169)]===_0x510efe(0x158)?_0x111a92['references']:null;}function mt(_0x25822d,_0x50158e,_0x27189b){const _0x341798=_0x18cc3;var _0x1a68a2;let _0x136f4a=_0x51cbf3(0x6);for(;_0x25822d!=null&&(_0x1a68a2=_0x25822d[_0x341798(0x179)])!=null&&_0x1a68a2['some'](_0x18715f=>_0x18715f[_0x341798(0xff)]===_0x136f4a)||_0x50158e['getFormula'](_0x27189b,_0x136f4a);)_0x136f4a=_0x51cbf3(0x6);return _0x136f4a;}function ht(_0x2f053d){try{return Re(_0x2f053d);}catch(_0x3f0dc1){if(_0x3f0dc1 instanceof C)return null;throw _0x3f0dc1;}}function gt(_0xcb8e6a){const _0x17d2bd=_0x18cc3;let _0x482d00=_0xcb8e6a['previousDocumentData']&&_0xcb8e6a['nextDocumentData']?vt(_0xcb8e6a[_0x17d2bd(0x162)],_0xcb8e6a[_0x17d2bd(0x1e9)],_0xcb8e6a[_0x17d2bd(0x138)],_0xcb8e6a[_0x17d2bd(0x1b7)],_0xcb8e6a['cursorOffset'],_0xcb8e6a[_0x17d2bd(0x101)]):null;return _0xcb8e6a['previousDocumentData']&&_0xcb8e6a[_0x17d2bd(0x1b7)]&&!_0x482d00?null:{'documentRedo':_0x482d00,'resourceRedo':{'id':V['id'],'params':{'unitId':_0xcb8e6a[_0x17d2bd(0x1e9)],'resource':_0xcb8e6a[_0x17d2bd(0x182)]}},'resourceUndo':{'id':V['id'],'params':{'unitId':_0xcb8e6a[_0x17d2bd(0x1e9)],'resource':_0xcb8e6a['previousResource']}}};}function _t(_0x25d4e7,_0x3cfbc0,_0xa4e727,_0x5eff9e){const _0x255a8b=_0x18cc3;_0x5eff9e[_0x255a8b(0x1a4)]({'id':_0x25d4e7[_0x255a8b(0x101)]+':'+_0x25d4e7[_0x255a8b(0xff)],'unitID':_0x25d4e7[_0x255a8b(0x1e9)],'redoMutations':[..._0x25d4e7[_0x255a8b(0x12d)][_0x255a8b(0x165)]?[_0x25d4e7['externalMutations'][_0x255a8b(0x165)]]:[],..._0x3cfbc0[_0x255a8b(0x149)]?[_0x3cfbc0['documentRedo']]:[],_0x3cfbc0['resourceRedo']],'undoMutations':[_0x3cfbc0[_0x255a8b(0x1c5)],..._0xa4e727?[_0xa4e727]:[],..._0x25d4e7[_0x255a8b(0x12d)][_0x255a8b(0x1c9)]?[_0x25d4e7[_0x255a8b(0x12d)][_0x255a8b(0x1c9)]]:[]]});}function _0x1745(){const _0xb4f5f2=['1302635LUSJLl','next','startIndex','accessor','serialize','customBlocks','@univerjs-pro/docs-formula','847010GsUgtE','_configService','resource','start','externalMutations','_cacheEligibilityService','onCommandExecuted','isInteger','getLoadError','toPrimitive','SECTION_BREAK','expectedReferenceRevision','syncUnit','name','getUnitId','previousDocumentData','has','dataStream','subscribe','_queueSync','resourceRedo','symbol','getRevision','max','add','TABLE_ROW_START','MUTATION','docs-formula.command.insert','TABLE_CELL_END','parse','TABLE_CELL_START','unregisterUnit','documentRedo','setResource','replaceDocRanges','_setPresentation','_formulaService','properties','forEach','Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.','get','packageName','formulaId','_resources','TABLE_ROW_END','deleteFormula','_instanceService','resolved','_syncScheduled','documentData','formulas','degradeBody','_registrations','getUnit','color','disposeWithMe','columnGroups','document','model','_deleteRegistration','redoMutation','_preserveInvalid','object','fromEntries','status','boolean','retain','4sUAvYI','lastValue','_docFormulaModel','identity','customDecorations','resolveText','values','textRuns','DOC_FORMULA_PLUGIN','dispose','editOp','getPresentation','85132FoAtex','customRanges','1555648dNWzMH','getInstance','push','CUSTOM_BLOCK','filter','cursorOffset','unitDisposed$','setFormula','nextResource','docs-formula.mutation.set-formula','notifyTextChanged','_service','resources','getFormulas','tables','_isDisposed','expectedFormula','stale','deepClone','PARAGRAPH','kind','_univerInstanceService','paragraph','_syncUnit','getFormulaValueSync','CUSTOM','_presentationChanged$','referenceRevision','min','pending','register','461914PfqbwE','COLUMN_GROUP_START','every','9UBDhnL','DOC','text','228357FtUpXu','position','asObservable','degradeDocumentData','error','pushUndoRedo','end','success','_updateFormulaResult','endIndex','getAllUnitsForType','BLOCK_END','getFormula','params','delete','unitAdded$','startsWith','number','resolveFormula','updates','insertLength','default','source','prototype','nextDocumentData','presentation','collectMutations','sort','_registrationService','isArray','defineProperty','complete','_commandService','removeFormula','target','pattern','blockRanges','find','resourceUndo','onStarting','ERROR','externalReferences','undoMutation','change$','BLOCK_START','load','presentationChanged$','entries','length','liveResult','type','getResult','registerPluginResource','docs-formula.command.replace-with-text','from','string','_model','UNIVER_DOC','setConfig','_hostExternalReferenceModel','Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries','_loadErrors','_injector','_config','formula','paragraphId','_change$','set','registerFormulaWithRange','sequenceNodesBuilder','docs-formula.config','_formulaKeys','endsWith','docs-formula.mutation.set-last-values','unitId','segmentId','disabled','endOffset','eligible','getResource','_pendingUnitIds','getOwnPropertyDescriptor','univer-docs-formula','docs-formula.mutation.set-resource','body','pluginName','constructor','numberFormat','docs-formula.command.update','rangeId','getBody','trigger','keys','removeUnit','6YSEPRC','version','trim','function','assign','map','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','empty','sectionBreaks','unregister','COMMAND','COLUMN_START','invalid-resource','wholeEntity','paragraphs','decorate','syncExecuteCommand','call','slice','SUCCESS','startOffset','config','schemaVersion','clear','cell','584269focvgr','_rawResources','TABLE_END','getTextRanges','COLUMN_GROUP_END'];_0x1745=function(){return _0xb4f5f2;};return _0x1745();}function J(_0x12258f){const _0x57de2d=_0x18cc3;let _0xaa7195=_0x12258f[_0x57de2d(0x125)][_0x57de2d(0x151)](_0x23d207),_0x442b8e=_0x12258f[_0x57de2d(0x125)][_0x57de2d(0x151)](_0x1cf111),_0x5f0456=_0x12258f[_0x57de2d(0x125)][_0x57de2d(0x151)](_0x268941),_0x1b40d6=gt(_0x12258f);if(!_0x1b40d6)return!0x1;let _0x4dba60=!0x1,_0x5b46e6=null,_0x52110f=!0x1;try{if(_0x12258f[_0x57de2d(0x12d)][_0x57de2d(0x165)]){if(!_0xaa7195[_0x57de2d(0x114)](_0x12258f['externalMutations'][_0x57de2d(0x165)]['id'],_0x12258f[_0x57de2d(0x12d)]['redoMutation'][_0x57de2d(0x1ac)]))return!0x1;_0x4dba60=!0x0;}if(_0x1b40d6[_0x57de2d(0x149)]){let _0x38a031=_0xaa7195[_0x57de2d(0x114)](_0x1b40d6[_0x57de2d(0x149)]['id'],_0x1b40d6[_0x57de2d(0x149)][_0x57de2d(0x1ac)]);if(!_0x38a031)return bt(_0xaa7195,_0x12258f[_0x57de2d(0x12d)],_0x4dba60),!0x1;_0x5b46e6={'id':_0x5c51e6['id'],'params':{..._0x38a031,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0xaa7195['syncExecuteCommand'](_0x1b40d6[_0x57de2d(0x13d)]['id'],_0x1b40d6['resourceRedo'][_0x57de2d(0x1ac)]))return yt(_0xaa7195,_0x5b46e6),bt(_0xaa7195,_0x12258f[_0x57de2d(0x12d)],_0x4dba60),!0x1;_0x52110f=!0x0,_t(_0x12258f,_0x1b40d6,_0x5b46e6,_0x442b8e);}catch(_0x2cb5b8){throw _0x52110f&&_0xaa7195[_0x57de2d(0x114)](_0x1b40d6[_0x57de2d(0x1c5)]['id'],_0x1b40d6['resourceUndo']['params']),yt(_0xaa7195,_0x5b46e6),bt(_0xaa7195,_0x12258f['externalMutations'],_0x4dba60),_0x2cb5b8;}return _0x5f0456[_0x57de2d(0x14b)]([{'startOffset':_0x12258f[_0x57de2d(0x17f)],'endOffset':_0x12258f[_0x57de2d(0x17f)],'segmentId':''}],{'unitId':_0x12258f[_0x57de2d(0x1e9)],'subUnitId':_0x12258f['unitId']},!0x1,{[_0x4063e0]:!0x0}),!0x0;}function vt(_0x2cf09d,_0x560b42,_0x12d9fe,_0x2f578f,_0x58d3b1,_0x47c8fb){let _0x5a4ce2=xt(_0x12d9fe,_0x2f578f,_0x47e386(_0x2cf09d,''));return _0x5a4ce2?{'id':_0x5c51e6['id'],'params':{'unitId':_0x560b42,'actions':_0x5a4ce2,'segmentId':'','textRanges':[{'startOffset':_0x58d3b1,'endOffset':_0x58d3b1,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x47c8fb}}:null;}function yt(_0x19f0ca,_0x9ec429){const _0x31702f=_0x18cc3;_0x9ec429&&_0x19f0ca[_0x31702f(0x114)](_0x9ec429['id'],_0x9ec429[_0x31702f(0x1ac)]);}function bt(_0x4bec52,_0x4ccac1,_0x1a135d){const _0x38edaf=_0x18cc3;_0x1a135d&&_0x4ccac1['undoMutation']&&_0x4bec52[_0x38edaf(0x114)](_0x4ccac1[_0x38edaf(0x1c9)]['id'],_0x4ccac1['undoMutation'][_0x38edaf(0x1ac)]);}function xt(_0x5b63f3,_0x52cd31,_0x105e4c){const _0x203dca=_0x18cc3;let _0x5352a8=_0x5b63f3[_0x203dca(0x1f3)],_0x584e36=_0x52cd31[_0x203dca(0x1f3)],_0x44a6c2=St(_0x5352a8==null?void 0x0:_0x5352a8[_0x203dca(0x13a)],_0x584e36==null?void 0x0:_0x584e36[_0x203dca(0x13a)]);if(!_0x44a6c2||!_0x584e36)return null;let _0x8888c5=new _0x3bd205();return _0x8888c5[_0x203dca(0x16b)](_0x44a6c2[_0x203dca(0x12c)]),_0x44a6c2[_0x203dca(0x1b3)]>0x0&&_0x8888c5['insert'](_0x44a6c2[_0x203dca(0x1b3)],_0x307e5c(_0x584e36,_0x44a6c2['start'],_0x44a6c2[_0x203dca(0x12c)]+_0x44a6c2[_0x203dca(0x1b3)],!0x1)),_0x44a6c2['deleteLength']>0x0&&_0x8888c5['delete'](_0x44a6c2['deleteLength']),_0x71110d[_0x203dca(0x17b)]()[_0x203dca(0x176)](_0x8888c5[_0x203dca(0x126)](),_0x105e4c);}function St(_0x2c398d,_0x52410b){const _0x2066af=_0x18cc3;if(_0x2c398d==null||_0x52410b==null||_0x2c398d===_0x52410b)return null;let _0x31f21d=0x0;for(;_0x31f21d<_0x2c398d[_0x2066af(0x1cf)]&&_0x31f21d<_0x52410b[_0x2066af(0x1cf)]&&_0x2c398d[_0x31f21d]===_0x52410b[_0x31f21d];)_0x31f21d+=0x1;let _0x14bd29=_0x2c398d[_0x2066af(0x1cf)],_0x107ad3=_0x52410b[_0x2066af(0x1cf)];for(;_0x14bd29>_0x31f21d&&_0x107ad3>_0x31f21d&&_0x2c398d[_0x14bd29-0x1]===_0x52410b[_0x107ad3-0x1];)--_0x14bd29,--_0x107ad3;return{'start':_0x31f21d,'deleteLength':_0x14bd29-_0x31f21d,'insertLength':_0x107ad3-_0x31f21d};}function Ct(_0x13d011){const _0x2395df=_0x18cc3;return{'schemaVersion':0x1,'formulas':Object[_0x2395df(0x168)](Object['entries'](_0x13d011[_0x2395df(0x15b)])[_0x2395df(0x109)](([_0x5b077b,_0x4fe1b4])=>[_0x5b077b,{..._0x4fe1b4,..._0x4fe1b4['numberFormat']?{'numberFormat':{..._0x4fe1b4[_0x2395df(0xfd)]}}:null,..._0x4fe1b4[_0x2395df(0x16d)]?{'lastValue':{..._0x4fe1b4[_0x2395df(0x16d)]}}:null}]))};}let Y=class extends _0x4ff05d{constructor(_0x15a891,_0x463243,_0x514ec8,_0x32bdf7){const _0x527fb1=_0x18cc3;super(),this[_0x527fb1(0x157)]=_0x15a891,this['_commandService']=_0x463243,this[_0x527fb1(0x1d7)]=_0x514ec8,this[_0x527fb1(0x185)]=_0x32bdf7,N(this,'_pendingUnitIds',new Set()),N(this,_0x527fb1(0x159),!0x1),N(this,_0x527fb1(0x189),!0x1),this['_instanceService'][_0x527fb1(0x1a9)](_0x106590['UNIVER_DOC'])['forEach'](_0x1c845a=>this[_0x527fb1(0x185)]['syncUnit'](_0x1c845a)),this[_0x527fb1(0x160)](this[_0x527fb1(0x1d7)]['change$'][_0x527fb1(0x13b)](({unitId:_0x4cf800})=>this[_0x527fb1(0x191)](_0x4cf800))),this['disposeWithMe'](this['_instanceService'][_0x527fb1(0x1ae)][_0x527fb1(0x13b)](({unit:_0x418ca6})=>{const _0x4492ad=_0x527fb1;_0x418ca6[_0x4492ad(0x1d1)]===_0x106590[_0x4492ad(0x1d8)]&&this[_0x4492ad(0x13c)](_0x418ca6[_0x4492ad(0x137)]());})),this[_0x527fb1(0x160)](this[_0x527fb1(0x157)][_0x527fb1(0x180)][_0x527fb1(0x13b)](_0x34c991=>{const _0x3d5345=_0x527fb1;this[_0x3d5345(0x185)][_0x3d5345(0x148)](_0x34c991[_0x3d5345(0x137)]());})),this['disposeWithMe'](this[_0x527fb1(0x1bf)][_0x527fb1(0x12f)](_0x2a90c7=>{const _0x23d4c8=_0x527fb1;if(_0x2a90c7['id']===_0x5c51e6['id']&&wt(_0x2a90c7[_0x23d4c8(0x1ac)])){let _0x4ae87f=_0x2a90c7['params'];_0x4ae87f['segmentId']||this['_syncUnit'](_0x4ae87f[_0x23d4c8(0x1e9)]);}}));}['dispose'](){const _0x1f9e28=_0x18cc3;this['_isDisposed']=!0x0,super[_0x1f9e28(0x175)]();}[_0x18cc3(0x13c)](_0x4ae106){const _0xb5f6b=_0x18cc3;this[_0xb5f6b(0x1ef)][_0xb5f6b(0x141)](_0x4ae106),!this[_0xb5f6b(0x159)]&&(this[_0xb5f6b(0x159)]=!0x0,queueMicrotask(()=>{const _0x5e3ce9=_0xb5f6b;if(this[_0x5e3ce9(0x159)]=!0x1,this[_0x5e3ce9(0x189)])return;let _0x1549de=Array[_0x5e3ce9(0x1d5)](this['_pendingUnitIds']);this[_0x5e3ce9(0x1ef)][_0x5e3ce9(0x11b)](),_0x1549de['forEach'](_0x753fed=>this['_syncUnit'](_0x753fed));}));}[_0x18cc3(0x191)](_0x164d2){const _0x32fdba=_0x18cc3;let _0x49cc32=this[_0x32fdba(0x157)]['getUnit'](_0x164d2,_0x106590['UNIVER_DOC']);_0x49cc32&&this[_0x32fdba(0x185)][_0x32fdba(0x135)](_0x49cc32);}};Y=I([F(0x0,_0x2f20c7),F(0x1,_0x23d207),F(0x2,_0x3f1c8b(P)),F(0x3,_0x3f1c8b(L))],Y);function wt(_0x23c49a){const _0x476411=_0x18cc3;return typeof _0x23c49a==_0x476411(0x167)&&!!_0x23c49a&&_0x476411(0x1e9)in _0x23c49a&&typeof _0x23c49a[_0x476411(0x1e9)]==_0x476411(0x1d6)&&(!('segmentId'in _0x23c49a)||_0x23c49a[_0x476411(0x1ea)]===void 0x0||typeof _0x23c49a[_0x476411(0x1ea)]==_0x476411(0x1d6));}let X=class extends _0x4ff05d{constructor(_0x3d394f,_0x2aaf0d){const _0x267ed3=_0x18cc3;super(),this['_resourceManagerService']=_0x3d394f,this[_0x267ed3(0x16e)]=_0x2aaf0d,this[_0x267ed3(0x160)](this['_resourceManagerService'][_0x267ed3(0x1d3)]({'pluginName':y,'businesses':[_0x106590[_0x267ed3(0x1d8)]],'toJson':_0x3525d8=>JSON['stringify'](this[_0x267ed3(0x16e)]['serialize'](_0x3525d8)),'parseJson':_0x12b898=>JSON[_0x267ed3(0x146)](_0x12b898),'onLoad':(_0x2b4302,_0x3e5007)=>{const _0x2df788=_0x267ed3;this[_0x2df788(0x16e)]['load'](_0x2b4302,_0x3e5007);},'onUnLoad':_0x50364b=>this[_0x267ed3(0x16e)]['removeUnit'](_0x50364b)}));}};X=I([F(0x0,_0x27e934),F(0x1,_0x3f1c8b(P))],X);var Tt=_0x18cc3(0x128),Et='1.0.1';const Dt={};let Z=class extends _0x4ff05d{constructor(_0x385ff3,_0x1d2acf,_0x1603ed){const _0x18bf75=_0x18cc3;super(),this[_0x18bf75(0x18f)]=_0x385ff3,this[_0x18bf75(0x14d)]=_0x1d2acf,this[_0x18bf75(0x160)](_0x1603ed[_0x18bf75(0x198)]({'resolve':(_0x2f59e0,_0x481d11)=>{const _0x24d7eb=_0x18bf75;var _0x31719f;return((_0x31719f=_0x481d11['customRanges'])==null?void 0x0:_0x31719f['filter'](w)[_0x24d7eb(0x109)](_0x5d8480=>({'startOffset':_0x5d8480['startIndex'],'endOffset':_0x5d8480[_0x24d7eb(0x1a8)]+0x1,'text':this[_0x24d7eb(0x1b1)](_0x2f59e0,_0x5d8480[_0x24d7eb(0xff)])})))??[];}})),this[_0x18bf75(0x160)](this[_0x18bf75(0x14d)]['presentationChanged$'][_0x18bf75(0x13b)](({unitId:_0x248908})=>{const _0x5ea812=_0x18bf75;_0x1603ed[_0x5ea812(0x184)](_0x248908);}));}['resolveFormula'](_0x5f1bee,_0x1fc87c){const _0x316188=_0x18cc3;var _0x4d38ba;return((_0x4d38ba=this[_0x316188(0x14d)][_0x316188(0x1d2)]({'unitId':_0x5f1bee,'rangeId':_0x1fc87c}))==null?void 0x0:_0x4d38ba['text'])??'';}[_0x18cc3(0x171)](_0x31ca75,_0x53dff8,_0x5f09e0){const _0x29b126=_0x18cc3;var _0x437feb;let _0xd51973=this[_0x29b126(0x18f)][_0x29b126(0x15e)](_0x31ca75,_0x106590['UNIVER_DOC']),_0x596843=_0xd51973==null?void 0x0:_0xd51973[_0x29b126(0x100)]();if(!_0x596843)return'';let _0x16c0a3=_0x596843[_0x29b126(0x13a)][_0x29b126(0x116)](_0x53dff8,_0x5f09e0),_0x840f6a=((_0x437feb=_0x596843[_0x29b126(0x179)])==null?void 0x0:_0x437feb[_0x29b126(0x17e)](_0x16e94a=>w(_0x16e94a)&&_0x16e94a[_0x29b126(0x124)]>=_0x53dff8&&_0x16e94a[_0x29b126(0x1a8)]<_0x5f09e0)['sort']((_0x8c4cfd,_0x5d152f)=>_0x5d152f[_0x29b126(0x124)]-_0x8c4cfd[_0x29b126(0x124)]))??[];for(let _0x2d016c of _0x840f6a){let _0x328e86=_0x2d016c[_0x29b126(0x124)]-_0x53dff8,_0x318bd4=_0x2d016c[_0x29b126(0x1a8)]-_0x53dff8+0x1;_0x16c0a3=''+_0x16c0a3['slice'](0x0,_0x328e86)+this['resolveFormula'](_0x31ca75,_0x2d016c[_0x29b126(0xff)])+_0x16c0a3[_0x29b126(0x116)](_0x318bd4);}return _0x16c0a3;}[_0x18cc3(0x1a2)](_0x473a73){return Ot(_0x473a73);}[_0x18cc3(0x15c)](_0x299428,_0x3831c8,_0x2ccc2f={}){const _0x31a549=_0x18cc3;var _0x573240;return Ve({'id':_0x299428,'body':_0x3831c8,'documentStyle':{}},(((_0x573240=_0x3831c8[_0x31a549(0x179)])==null?void 0x0:_0x573240['filter'](w))??[])[_0x31a549(0x109)](_0x15e735=>({'rangeId':_0x15e735[_0x31a549(0xff)],'text':_0x2ccc2f[_0x15e735['rangeId']]??this[_0x31a549(0x1b1)](_0x299428,_0x15e735[_0x31a549(0xff)])})))[_0x31a549(0x1f3)]??{'dataStream':''};}};Z=I([F(0x0,_0x2f20c7),F(0x1,_0x3f1c8b(L)),F(0x2,_0x3f1c8b(_0x23a854))],Z);function Ot(_0x551308){const _0x65c0f8=_0x18cc3;var _0x3df80b,_0x4015d5;let _0x238131=kt(_0x551308),_0x501864=Ve(_0x551308,(((_0x3df80b=_0x551308[_0x65c0f8(0x1f3)])==null||(_0x3df80b=_0x3df80b[_0x65c0f8(0x179)])==null?void 0x0:_0x3df80b[_0x65c0f8(0x17e)](w))??[])[_0x65c0f8(0x109)](_0xf77d06=>({'rangeId':_0xf77d06[_0x65c0f8(0xff)],'text':At(_0x238131==null?void 0x0:_0x238131[_0x65c0f8(0x15b)][_0xf77d06[_0x65c0f8(0xff)]])})));return _0x501864[_0x65c0f8(0x186)]=(_0x4015d5=_0x501864[_0x65c0f8(0x186)])==null?void 0x0:_0x4015d5['filter'](_0x46a6d6=>_0x46a6d6[_0x65c0f8(0x136)]!==y),_0x501864;}function kt(_0x36ed2b){const _0x5a1ea4=_0x18cc3;var _0x1a61a8;let _0x1b10d8=(_0x1a61a8=_0x36ed2b['resources'])==null||(_0x1a61a8=_0x1a61a8[_0x5a1ea4(0x1c4)](_0x848cd=>_0x848cd[_0x5a1ea4(0x136)]===_0x5a1ea4(0x174)))==null?void 0x0:_0x1a61a8['data'];if(_0x1b10d8)try{let _0x2660d9=JSON[_0x5a1ea4(0x146)](_0x1b10d8);return x(_0x2660d9)?_0x2660d9:void 0x0;}catch{return;}}function At(_0x5985aa){const _0x4d90f6=_0x18cc3;return _0x5985aa?_0x3ddcc7({'lastValue':_0x5985aa['lastValue'],'numberFormat':_0x5985aa[_0x4d90f6(0xfd)]})[_0x4d90f6(0x19e)]:'';}let Q=class extends _0x4ff05d{constructor(_0x576985,_0x2a2bf9,_0x552102){const _0x57f208=_0x18cc3;super(),this[_0x57f208(0x14d)]=_0x576985,this[_0x57f208(0x12e)]=_0x2a2bf9,this[_0x57f208(0x160)](_0x552102['registerProvider'](this));}[_0x18cc3(0x1b9)](_0x253b83){const _0x323e67=_0x18cc3;let _0x1a176c=new Map();for(let _0x51c709 of this[_0x323e67(0x14d)]['getRegisteredFormulas']()){var _0x5c3dfc;if(!this['_cacheEligibilityService']['assess'](_0x51c709[_0x323e67(0x119)][_0x323e67(0x1df)],_0x51c709[_0x323e67(0x1d0)])[_0x323e67(0x1ed)])continue;let _0x5b75a4=_0x1ff720(_0x51c709[_0x323e67(0x1d0)]),_0x2d050b=_0x5b75a4?_0x4977e2(_0x5b75a4):null;if(!_0x2d050b||jt(_0x51c709[_0x323e67(0x119)][_0x323e67(0x16d)],_0x2d050b))continue;let _0x98d83f=_0x1a176c[_0x323e67(0x151)](_0x51c709[_0x323e67(0x16f)]['unitId'])??[];_0x98d83f[_0x323e67(0x17c)]({'rangeId':_0x51c709[_0x323e67(0x16f)][_0x323e67(0xff)],'expectedFormula':_0x51c709[_0x323e67(0x119)]['formula'],'expectedNumberFormat':(_0x5c3dfc=_0x51c709[_0x323e67(0x119)]['numberFormat'])==null?void 0x0:_0x5c3dfc[_0x323e67(0x1c2)],'expectedReferenceRevision':_0x51c709['referenceRevision'],'lastValue':_0x2d050b}),_0x1a176c[_0x323e67(0x1e2)](_0x51c709[_0x323e67(0x16f)][_0x323e67(0x1e9)],_0x98d83f);}return Array[_0x323e67(0x1d5)](_0x1a176c,([_0x56a178,_0x902f33])=>({'id':H['id'],'params':{'unitId':_0x56a178,'updates':_0x902f33}}));}};Q=I([F(0x0,_0x3f1c8b(L)),F(0x1,_0x3f1c8b(_0x3b4337)),F(0x2,_0x3f1c8b(_0x10b137))],Q);function jt(_0x55d393,_0x4177ec){const _0x560d91=_0x18cc3;return(_0x55d393==null?void 0x0:_0x55d393['v'])===_0x4177ec['v']&&(_0x55d393==null?void 0x0:_0x55d393['t'])===_0x4177ec['t']&&(_0x55d393==null?void 0x0:_0x55d393['pattern'])===_0x4177ec[_0x560d91(0x1c2)];}let $=class extends _0x253e10{constructor(_0x1e39ea=Dt,_0x59e74d,_0x4d18f6,_0x1b9566){const _0x7b38b9=_0x18cc3;super(),this[_0x7b38b9(0x1de)]=_0x1e39ea,this[_0x7b38b9(0x1dd)]=_0x59e74d,this[_0x7b38b9(0x1bf)]=_0x4d18f6,this[_0x7b38b9(0x12a)]=_0x1b9566;let {..._0x46fc60}=_0x5aceac({},Dt,this[_0x7b38b9(0x1de)]);this['_configService'][_0x7b38b9(0x1d9)](_0x7b38b9(0x1e5),_0x46fc60);}[_0x18cc3(0x1c6)](){const _0x49fcf6=_0x18cc3;this[_0x49fcf6(0x1dd)][_0x49fcf6(0x141)]([P]),this['_injector'][_0x49fcf6(0x141)]([L]),this[_0x49fcf6(0x1dd)][_0x49fcf6(0x141)]([X]),this[_0x49fcf6(0x1dd)][_0x49fcf6(0x141)]([Y]),this['_injector'][_0x49fcf6(0x141)]([Q]),this['_injector'][_0x49fcf6(0x141)]([Z]),_0xbb7c0c(this[_0x49fcf6(0x1dd)],[[P],[X],[Y],[Q],[Z]]),[ot,st,V,H,U,W,G,K,ct,lt][_0x49fcf6(0x14f)](_0x1ad708=>this['disposeWithMe'](this[_0x49fcf6(0x1bf)]['registerCommand'](_0x1ad708)));}};N($,_0x18cc3(0x1f4),y),N($,_0x18cc3(0x152),Tt),N($,_0x18cc3(0x105),Et),N($,_0x18cc3(0x1d1),_0x106590[_0x18cc3(0x1d8)]),$=I([_0x423cf2(_0x2a4fe0,_0xb2e160,_0x5d4396),F(0x1,_0x3f1c8b(_0x57b2b9)),F(0x2,_0x23d207),F(0x3,_0x3a9ecf)],$);export{lt as ConvertDocFormulaToTextCommand,Me as DOC_FORMULA_CUSTOM_RANGE_KIND,Ne as DOC_FORMULA_OBJECT_REPLACEMENT,y as DOC_FORMULA_PLUGIN,je as DOC_FORMULA_SCHEMA_VERSION,Z as DocFormulaDisplayTextService,Y as DocFormulaLifecycleController,P as DocFormulaModel,X as DocFormulaResourceController,it as DocFormulaResultStatus,L as DocFormulaService,U as InsertDocFormulaCommand,C as InvalidDocFormulaInsertRangeError,K as RemoveDocFormulaCommand,st as RemoveDocFormulaMutation,ct as ReplaceDocFormulaWithTextCommand,H as SetDocFormulaLastValuesMutation,ot as SetDocFormulaMutation,G as SetDocFormulaNumberFormatCommand,V as SetDocFormulaResourceMutation,$ as UniverDocsFormulaPlugin,W as UpdateDocFormulaCommand,He as assertSafeDocFormulaInsertRange,Re as buildInsertDocFormulaActions,Be as buildRemoveDocFormulaActions,ze as buildUpdateDocFormulaActions,b as createEmptyDocFormulaResource,Ot as degradeDocFormulaDocumentData,T as findDocFormulaRange,Pe as isDocFormulaConfig,w as isDocFormulaRange,x as isDocFormulaResource,Fe as isFormulaLastValue};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x38962f=_0x1e42;(function(_0x2c8896,_0x2c7a38){var _0x16d654=_0x1e42,_0x1421e9=_0x2c8896();while(!![]){try{var _0x479c61=parseInt(_0x16d654(0x13e))/0x1*(-parseInt(_0x16d654(0x179))/0x2)+-parseInt(_0x16d654(0x162))/0x3+-parseInt(_0x16d654(0x17f))/0x4+-parseInt(_0x16d654(0x149))/0x5+-parseInt(_0x16d654(0x174))/0x6+-parseInt(_0x16d654(0x157))/0x7+parseInt(_0x16d654(0x170))/0x8;if(_0x479c61===_0x2c7a38)break;else _0x1421e9['push'](_0x1421e9['shift']());}catch(_0x1616e1){_0x1421e9['push'](_0x1421e9['shift']());}}}(_0x26ea,0x60474));import{ConvertDocFormulaToTextCommand as _0x5630ac,DocFormulaDisplayTextService as _0x503b3d,DocFormulaModel as _0x430368,DocFormulaService as _0x5e35b9,InsertDocFormulaCommand as _0x3db5b8,RemoveDocFormulaCommand as _0x5c8158,ReplaceDocFormulaWithTextCommand as _0x169f0a,SetDocFormulaNumberFormatCommand as _0x5d2be8,UpdateDocFormulaCommand as _0x9c564d,isDocFormulaRange as _0x2ec456}from'@univerjs-pro/docs-formula';import{ICommandService as _0x15d819,IResourceLoaderService as _0x5aabfe,IUniverInstanceService as _0x232552,Inject as _0x1a7be6,UniverInstanceType as _0x42414d}from'@univerjs/core';import{FDocument as _0x55da0f,FDocumentParagraph as _0x589793,FDocumentTextRange as _0x2362be}from'@univerjs/docs/facade';function v(_0x51931b,_0x390995){return function(_0x3c3122,_0x784975){_0x390995(_0x3c3122,_0x784975,_0x51931b);};}function y(_0x5d8d87,_0x84954,_0x233c77,_0x171d26){var _0x1ab2c5=_0x1e42,_0x2da630=arguments[_0x1ab2c5(0x151)],_0x145800=_0x2da630<0x3?_0x84954:_0x171d26===null?_0x171d26=Object[_0x1ab2c5(0x17e)](_0x84954,_0x233c77):_0x171d26,_0x28b326;if(typeof Reflect==_0x1ab2c5(0x13f)&&typeof Reflect['decorate']==_0x1ab2c5(0x154))_0x145800=Reflect['decorate'](_0x5d8d87,_0x84954,_0x233c77,_0x171d26);else{for(var _0x521019=_0x5d8d87[_0x1ab2c5(0x151)]-0x1;_0x521019>=0x0;_0x521019--)(_0x28b326=_0x5d8d87[_0x521019])&&(_0x145800=(_0x2da630<0x3?_0x28b326(_0x145800):_0x2da630>0x3?_0x28b326(_0x84954,_0x233c77,_0x145800):_0x28b326(_0x84954,_0x233c77))||_0x145800);}return _0x2da630>0x3&&_0x145800&&Object[_0x1ab2c5(0x15c)](_0x84954,_0x233c77,_0x145800),_0x145800;}let b=class{constructor(_0x2e699f,_0x54f53d,_0x37184e,_0x10db18,_0x29dd3a,_0x2275b8){var _0x375ff4=_0x1e42;this[_0x375ff4(0x140)]=_0x2e699f,this[_0x375ff4(0x148)]=_0x54f53d,this['_commandService']=_0x37184e,this[_0x375ff4(0x177)]=_0x10db18,this[_0x375ff4(0x141)]=_0x29dd3a,this[_0x375ff4(0x14a)]=_0x2275b8;}['getId'](){var _0x443ee3=_0x1e42;return this[_0x443ee3(0x148)];}[_0x38962f(0x13c)](){var _0x54b65a=_0x38962f;let _0x2a72bf=this[_0x54b65a(0x17c)]();return _0x2a72bf?{'endOffset':_0x2a72bf[_0x54b65a(0x180)]+0x1,'rangeId':_0x2a72bf[_0x54b65a(0x13b)],'startOffset':_0x2a72bf['startIndex']}:null;}[_0x38962f(0x14e)](){var _0xe44337=_0x38962f,_0xaea5db;return((_0xaea5db=this['_model']['getFormula'](this[_0xe44337(0x140)],this[_0xe44337(0x148)]))==null?void 0x0:_0xaea5db[_0xe44337(0x15e)])??'';}[_0x38962f(0x181)](){var _0x152406=_0x38962f;return this['_model'][_0x152406(0x14e)](this[_0x152406(0x140)],this[_0x152406(0x148)])??null;}[_0x38962f(0x144)](){var _0x7d072f=_0x38962f;return this[_0x7d072f(0x141)][_0x7d072f(0x144)]({'unitId':this[_0x7d072f(0x140)],'rangeId':this[_0x7d072f(0x148)]})??null;}[_0x38962f(0x178)](){var _0x3cdcbb=_0x38962f;let _0x592a75=this['getRange'](),_0x4c04d2=this[_0x3cdcbb(0x181)](),_0x55fc9c=this[_0x3cdcbb(0x144)]();return!_0x592a75||!_0x4c04d2||!_0x55fc9c?null:{..._0x592a75,'config':_0x4c04d2,'formula':_0x4c04d2[_0x3cdcbb(0x15e)],'result':_0x55fc9c,'type':_0x3cdcbb(0x15e)};}['update'](_0x42774d){var _0x46f641=_0x38962f;return this[_0x46f641(0x188)][_0x46f641(0x187)](_0x9c564d['id'],{'externalReferences':_0x42774d[_0x46f641(0x182)],'formula':_0x42774d[_0x46f641(0x15e)],'numberFormat':_0x42774d[_0x46f641(0x155)],'rangeId':this[_0x46f641(0x148)],'unitId':this[_0x46f641(0x140)]});}[_0x38962f(0x163)](_0xc855d2){var _0xab8155=_0x38962f;return this['_commandService'][_0xab8155(0x187)](_0x5d2be8['id'],{'numberFormat':_0xc855d2,'rangeId':this[_0xab8155(0x148)],'unitId':this[_0xab8155(0x140)]});}[_0x38962f(0x16c)](){var _0x38f81d=_0x38962f;return this[_0x38f81d(0x188)][_0x38f81d(0x187)](_0x5c8158['id'],{'rangeId':this[_0x38f81d(0x148)],'unitId':this[_0x38f81d(0x140)]});}[_0x38962f(0x16f)](_0x4258ae){var _0x160483=_0x38962f;return this['_commandService'][_0x160483(0x187)](_0x169f0a['id'],{'rangeId':this[_0x160483(0x148)],'text':_0x4258ae,'unitId':this[_0x160483(0x140)]});}['convertToText'](){var _0x38891b=_0x38962f;return this['_commandService'][_0x38891b(0x187)](_0x5630ac['id'],{'rangeId':this[_0x38891b(0x148)],'unitId':this[_0x38891b(0x140)]});}[_0x38962f(0x17c)](){var _0x2c6d3b=_0x38962f,_0xdfa00f;let _0x4bd2cb=this[_0x2c6d3b(0x14a)][_0x2c6d3b(0x183)](this[_0x2c6d3b(0x140)],_0x42414d[_0x2c6d3b(0x15b)]);return _0x4bd2cb==null||(_0xdfa00f=_0x4bd2cb[_0x2c6d3b(0x185)]()[_0x2c6d3b(0x143)])==null||(_0xdfa00f=_0xdfa00f[_0x2c6d3b(0x147)])==null?void 0x0:_0xdfa00f['find'](_0x1f3d17=>_0x1f3d17[_0x2c6d3b(0x13b)]===this[_0x2c6d3b(0x148)]&&_0x2ec456(_0x1f3d17));}};b=y([v(0x2,_0x15d819),v(0x3,_0x1a7be6(_0x430368)),v(0x4,_0x1a7be6(_0x5e35b9)),v(0x5,_0x232552)],b);function x(_0x25b11f){'@babel/helpers - typeof';var _0x1284ca=_0x38962f;return x=typeof Symbol==_0x1284ca(0x154)&&typeof Symbol['iterator']==_0x1284ca(0x145)?function(_0x383255){return typeof _0x383255;}:function(_0x5777b2){var _0x36c2c7=_0x1284ca;return _0x5777b2&&typeof Symbol==_0x36c2c7(0x154)&&_0x5777b2[_0x36c2c7(0x14c)]===Symbol&&_0x5777b2!==Symbol['prototype']?_0x36c2c7(0x145):typeof _0x5777b2;},x(_0x25b11f);}function S(_0x5d6807,_0x337bc5){var _0x5aa34c=_0x38962f;if(x(_0x5d6807)!=_0x5aa34c(0x13f)||!_0x5d6807)return _0x5d6807;var _0x4554dc=_0x5d6807[Symbol[_0x5aa34c(0x16d)]];if(_0x4554dc!==void 0x0){var _0x7dfebe=_0x4554dc[_0x5aa34c(0x176)](_0x5d6807,_0x337bc5||_0x5aa34c(0x13d));if(x(_0x7dfebe)!=_0x5aa34c(0x13f))return _0x7dfebe;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x337bc5===_0x5aa34c(0x165)?String:Number)(_0x5d6807);}function C(_0x1bb409){var _0x536077=_0x38962f,_0x3e5984=S(_0x1bb409,_0x536077(0x165));return x(_0x3e5984)==_0x536077(0x145)?_0x3e5984:_0x3e5984+'';}function _0x26ea(){var _0x59e4f6=['getRange','default','1uBRExi','object','_unitId','_service','filter','body','getResult','symbol','_docsFormulaDisplayTextService','customRanges','_rangeId','2202725UfrVqz','_univerInstanceService','get','constructor','insertFormula','getFormula','getSegmentId','startOffset','length','_createFormula','replaceWithFormula','function','numberFormat','_docsFormulaModel','2823555ubevcQ','end','degradeDocumentData','saveUnit','UNIVER_DOC','defineProperty','saveFormulaDisplayTextSnapshot','formula','_initialize','_document','getFormulaAt','714615dAmohY','setNumberFormat','getBody','string','extend','some','_docsFormulaCommandService','Document\x20','map','_injector','remove','toPrimitive','_insert','replaceWithText','15752392YZNJmf','range','getId','_docsFormulaResourceLoaderService','2610960HkWkxC','find','call','_model','describe','29158CnCvee','appendFormula','createInstance','_getCustomRange','paragraph','getOwnPropertyDescriptor','171356SanboD','endIndex','getConfig','externalReferences','getUnit','_getCompleteRanges','getSnapshot','\x20could\x20not\x20be\x20serialized.','syncExecuteCommand','_commandService','rangeId'];_0x26ea=function(){return _0x59e4f6;};return _0x26ea();}function w(_0x5458d5,_0x4d8686,_0x5880d0){var _0x3f95ca=_0x38962f;return(_0x4d8686=C(_0x4d8686))in _0x5458d5?Object[_0x3f95ca(0x15c)](_0x5458d5,_0x4d8686,{'value':_0x5880d0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5458d5[_0x4d8686]=_0x5880d0,_0x5458d5;}function _0x1e42(_0x16a32e,_0x524e8f){_0x16a32e=_0x16a32e-0x13b;var _0x26eac0=_0x26ea();var _0x1e4254=_0x26eac0[_0x16a32e];return _0x1e4254;}var T=class extends _0x55da0f{constructor(..._0x42340d){var _0x1ad76f=_0x38962f;super(..._0x42340d),w(this,_0x1ad76f(0x168),void 0x0),w(this,_0x1ad76f(0x146),void 0x0),w(this,_0x1ad76f(0x156),void 0x0),w(this,_0x1ad76f(0x173),void 0x0);}[_0x38962f(0x15f)](_0x1b2c89){var _0x53a655=_0x38962f;this[_0x53a655(0x168)]=_0x1b2c89[_0x53a655(0x14b)](_0x15d819),this[_0x53a655(0x146)]=_0x1b2c89[_0x53a655(0x14b)](_0x503b3d),this[_0x53a655(0x156)]=_0x1b2c89['get'](_0x430368),this[_0x53a655(0x173)]=_0x1b2c89['get'](_0x5aabfe);}['getFormulas'](){var _0x1cb4aa=_0x38962f;return this['_getCompleteRanges']()[_0x1cb4aa(0x16a)](_0x930586=>this[_0x1cb4aa(0x152)](_0x930586['rangeId']));}[_0x38962f(0x14e)](_0x2bd645){var _0x59d242=_0x38962f;return this[_0x59d242(0x184)]()[_0x59d242(0x167)](_0x5a297a=>_0x5a297a[_0x59d242(0x13b)]===_0x2bd645)?this['_createFormula'](_0x2bd645):null;}[_0x38962f(0x161)](_0x4fe1b7){var _0x4d38c3=_0x38962f;let _0x124282=this['_getCompleteRanges']()[_0x4d38c3(0x175)](_0x2850b9=>_0x2850b9['startIndex']<=_0x4fe1b7&&_0x4fe1b7<=_0x2850b9[_0x4d38c3(0x180)]);return _0x124282?this['_createFormula'](_0x124282[_0x4d38c3(0x13b)]):null;}[_0x38962f(0x15d)](){var _0x2d7c7a=_0x38962f;let _0x4c2f44=this[_0x2d7c7a(0x173)][_0x2d7c7a(0x15a)](this['id']);if(!_0x4c2f44)throw Error(_0x2d7c7a(0x169)+this['id']+_0x2d7c7a(0x186));return this[_0x2d7c7a(0x146)][_0x2d7c7a(0x159)](_0x4c2f44);}[_0x38962f(0x14d)](_0x19d9e3){var _0x5bb829=_0x38962f;return this['_insert']({'externalReferences':_0x19d9e3[_0x5bb829(0x182)],'formula':_0x19d9e3[_0x5bb829(0x15e)],'numberFormat':_0x19d9e3['numberFormat'],'target':{'type':_0x5bb829(0x171),'startOffset':_0x19d9e3[_0x5bb829(0x150)],'endOffset':_0x19d9e3['endOffset']},'unitId':this[_0x5bb829(0x172)]()});}[_0x38962f(0x16e)](_0x467f44){var _0x1a93a2=_0x38962f;let _0x4a5fee=this[_0x1a93a2(0x168)]['syncExecuteCommand'](_0x3db5b8['id'],_0x467f44);return _0x4a5fee?this['_createFormula'](_0x4a5fee[_0x1a93a2(0x13b)]):null;}[_0x38962f(0x184)](){var _0x374308=_0x38962f,_0x5b9374;let _0x1a0f54=this['_docsFormulaModel']['getFormulas'](this[_0x374308(0x172)]());return((_0x5b9374=this[_0x374308(0x164)]('')['customRanges'])==null?void 0x0:_0x5b9374[_0x374308(0x142)](_0xef2a09=>_0x2ec456(_0xef2a09)&&_0x1a0f54[_0xef2a09[_0x374308(0x13b)]]!=null))??[];}[_0x38962f(0x152)](_0x4c4c03){var _0xe9b90c=_0x38962f;return this[_0xe9b90c(0x16b)]['createInstance'](b,this[_0xe9b90c(0x172)](),_0x4c4c03);}};_0x55da0f[_0x38962f(0x166)](T);var E=class extends _0x589793{constructor(..._0x4ab080){var _0x378f2e=_0x38962f;super(..._0x4ab080),w(this,_0x378f2e(0x168),void 0x0);}[_0x38962f(0x15f)](_0x5dedec){var _0x4d2e8d=_0x38962f;this[_0x4d2e8d(0x168)]=_0x5dedec['get'](_0x15d819);}[_0x38962f(0x14d)](_0xc7a121,_0x1ba6a5,_0x39db6e={}){return this['_insert'](_0xc7a121,_0x1ba6a5,_0x39db6e);}[_0x38962f(0x17a)](_0x1a7892,_0xeb9c7f={}){var _0x592027=_0x38962f;return this[_0x592027(0x16e)](_0x592027(0x158),_0x1a7892,_0xeb9c7f);}[_0x38962f(0x16e)](_0x58b7ff,_0x3fbe01,_0x1316dc){var _0x4c5ac8=_0x38962f;if(this[_0x4c5ac8(0x14f)]())return null;let _0x44eaaf={'externalReferences':_0x1316dc[_0x4c5ac8(0x182)],'formula':_0x3fbe01,'numberFormat':_0x1316dc[_0x4c5ac8(0x155)],'target':{'type':_0x4c5ac8(0x17d),'paragraphId':this[_0x4c5ac8(0x172)](),'position':_0x58b7ff},'unitId':this[_0x4c5ac8(0x160)][_0x4c5ac8(0x172)]()},_0x45c04f=this['_docsFormulaCommandService'][_0x4c5ac8(0x187)](_0x3db5b8['id'],_0x44eaaf);return _0x45c04f?this[_0x4c5ac8(0x16b)][_0x4c5ac8(0x17b)](b,this[_0x4c5ac8(0x160)]['getId'](),_0x45c04f[_0x4c5ac8(0x13b)]):null;}};_0x589793[_0x38962f(0x166)](E);var D=class extends _0x2362be{constructor(..._0x47fcd8){super(..._0x47fcd8),w(this,'_docsFormulaCommandService',void 0x0);}[_0x38962f(0x15f)](_0x5d02d0){var _0x21d43c=_0x38962f;this[_0x21d43c(0x168)]=_0x5d02d0[_0x21d43c(0x14b)](_0x15d819);}[_0x38962f(0x153)](_0x26a1a8,_0x1385d4={}){var _0x40dba9=_0x38962f;let {endOffset:_0x2ea00b,segmentId:_0x106598,startOffset:_0x6d55a9}=this[_0x40dba9(0x13c)]();return _0x106598?null:this[_0x40dba9(0x16e)](_0x6d55a9,_0x2ea00b,_0x26a1a8,_0x1385d4);}[_0x38962f(0x16e)](_0x1f1c0c,_0x34293c,_0x49ce71,_0x5d9d1f){var _0x181709=_0x38962f;let _0xa89452={'externalReferences':_0x5d9d1f[_0x181709(0x182)],'formula':_0x49ce71,'numberFormat':_0x5d9d1f[_0x181709(0x155)],'target':{'type':_0x181709(0x171),'startOffset':_0x1f1c0c,'endOffset':_0x34293c},'unitId':this[_0x181709(0x160)][_0x181709(0x172)]()},_0x4ddd00=this['_docsFormulaCommandService'][_0x181709(0x187)](_0x3db5b8['id'],_0xa89452);return _0x4ddd00?this[_0x181709(0x16b)][_0x181709(0x17b)](b,this[_0x181709(0x160)]['getId'](),_0x4ddd00[_0x181709(0x13b)]):null;}};_0x2362be[_0x38962f(0x166)](D);export{b as FDocumentFormula};
|
|
1
|
+
var _0x3492e3=_0x3590;(function(_0x2b7966,_0x487a3b){var _0x10a53c=_0x3590,_0x209153=_0x2b7966();while(!![]){try{var _0x22c77f=-parseInt(_0x10a53c(0xe5))/0x1+parseInt(_0x10a53c(0x11f))/0x2*(parseInt(_0x10a53c(0xf7))/0x3)+-parseInt(_0x10a53c(0x11e))/0x4+parseInt(_0x10a53c(0xf3))/0x5*(-parseInt(_0x10a53c(0x126))/0x6)+-parseInt(_0x10a53c(0xf0))/0x7+parseInt(_0x10a53c(0x131))/0x8*(parseInt(_0x10a53c(0x11a))/0x9)+parseInt(_0x10a53c(0x121))/0xa;if(_0x22c77f===_0x487a3b)break;else _0x209153['push'](_0x209153['shift']());}catch(_0x58b967){_0x209153['push'](_0x209153['shift']());}}}(_0x4959,0xeb344));import{ConvertDocFormulaToTextCommand as _0x339487,DocFormulaDisplayTextService as _0x2b41fa,DocFormulaModel as _0x77e54a,DocFormulaService as _0x55c459,InsertDocFormulaCommand as _0x7c7e8,RemoveDocFormulaCommand as _0x4fa0cb,ReplaceDocFormulaWithTextCommand as _0x2886b8,SetDocFormulaNumberFormatCommand as _0x14812a,UpdateDocFormulaCommand as _0x21ddbb,isDocFormulaRange as _0x1792e8}from'@univerjs-pro/docs-formula';import{ICommandService as _0x19a590,IResourceLoaderService as _0x2722b5,IUniverInstanceService as _0x209cdd,Inject as _0x1b4738,UniverInstanceType as _0x482900}from'@univerjs/core';import{FDocument as _0xf7b689,FDocumentParagraph as _0x2d8bee,FDocumentTextRange as _0x56adcb}from'@univerjs/docs/facade';function v(_0x413c62,_0x301625){return function(_0x1387fd,_0xf7ecc6){_0x301625(_0x1387fd,_0xf7ecc6,_0x413c62);};}function y(_0xfee433,_0x4f8cd2,_0x249295,_0xb367b0){var _0x74ae1e=_0x3590,_0x24833b=arguments[_0x74ae1e(0x11d)],_0x5c0235=_0x24833b<0x3?_0x4f8cd2:_0xb367b0===null?_0xb367b0=Object[_0x74ae1e(0xf4)](_0x4f8cd2,_0x249295):_0xb367b0,_0x2fd10b;if(typeof Reflect==_0x74ae1e(0xed)&&typeof Reflect[_0x74ae1e(0x106)]==_0x74ae1e(0xff))_0x5c0235=Reflect['decorate'](_0xfee433,_0x4f8cd2,_0x249295,_0xb367b0);else{for(var _0x2f2a95=_0xfee433[_0x74ae1e(0x11d)]-0x1;_0x2f2a95>=0x0;_0x2f2a95--)(_0x2fd10b=_0xfee433[_0x2f2a95])&&(_0x5c0235=(_0x24833b<0x3?_0x2fd10b(_0x5c0235):_0x24833b>0x3?_0x2fd10b(_0x4f8cd2,_0x249295,_0x5c0235):_0x2fd10b(_0x4f8cd2,_0x249295))||_0x5c0235);}return _0x24833b>0x3&&_0x5c0235&&Object[_0x74ae1e(0x10a)](_0x4f8cd2,_0x249295,_0x5c0235),_0x5c0235;}let b=class{constructor(_0x3bfa3b,_0x17c0cf,_0x3943db,_0x37e287,_0x3208a4,_0x54d466){var _0xa16208=_0x3590;this[_0xa16208(0x12a)]=_0x3bfa3b,this[_0xa16208(0xfc)]=_0x17c0cf,this['_commandService']=_0x3943db,this['_model']=_0x37e287,this[_0xa16208(0x120)]=_0x3208a4,this[_0xa16208(0x100)]=_0x54d466;}[_0x3492e3(0x123)](){return this['_rangeId'];}[_0x3492e3(0x104)](){var _0x1934d9=_0x3492e3;let _0x13acf2=this['_getCustomRange']();return _0x13acf2?{'endOffset':_0x13acf2[_0x1934d9(0x111)]+0x1,'rangeId':_0x13acf2['rangeId'],'startOffset':_0x13acf2[_0x1934d9(0x12d)]}:null;}[_0x3492e3(0xe8)](){var _0x305516=_0x3492e3,_0x1969a6;return((_0x1969a6=this[_0x305516(0xf1)][_0x305516(0xe8)](this['_unitId'],this[_0x305516(0xfc)]))==null?void 0x0:_0x1969a6[_0x305516(0xe6)])??'';}[_0x3492e3(0x110)](){var _0x2c8702=_0x3492e3;return this[_0x2c8702(0xf1)][_0x2c8702(0xe8)](this[_0x2c8702(0x12a)],this[_0x2c8702(0xfc)])??null;}[_0x3492e3(0x122)](){var _0x44a804=_0x3492e3;return this['_service']['getResult']({'unitId':this[_0x44a804(0x12a)],'rangeId':this[_0x44a804(0xfc)]})??null;}[_0x3492e3(0x107)](){var _0x43107d=_0x3492e3;let _0x5b6d5b=this[_0x43107d(0x104)](),_0x4376a9=this['getConfig'](),_0x4c06ff=this[_0x43107d(0x122)]();return!_0x5b6d5b||!_0x4376a9||!_0x4c06ff?null:{..._0x5b6d5b,'config':_0x4376a9,'formula':_0x4376a9[_0x43107d(0xe6)],'result':_0x4c06ff,'type':_0x43107d(0xe6)};}[_0x3492e3(0x134)](_0x424aff){var _0x32b2fa=_0x3492e3;return this[_0x32b2fa(0xfa)]['syncExecuteCommand'](_0x21ddbb['id'],{'externalReferences':_0x424aff['externalReferences'],'formula':_0x424aff[_0x32b2fa(0xe6)],'numberFormat':_0x424aff[_0x32b2fa(0x12e)],'rangeId':this[_0x32b2fa(0xfc)],'unitId':this[_0x32b2fa(0x12a)]});}['setNumberFormat'](_0x3b2a3b){var _0x7e90ac=_0x3492e3;return this[_0x7e90ac(0xfa)][_0x7e90ac(0x10e)](_0x14812a['id'],{'numberFormat':_0x3b2a3b,'rangeId':this[_0x7e90ac(0xfc)],'unitId':this['_unitId']});}[_0x3492e3(0x118)](){return this['_commandService']['syncExecuteCommand'](_0x4fa0cb['id'],{'rangeId':this['_rangeId'],'unitId':this['_unitId']});}[_0x3492e3(0xec)](_0x2b0646){var _0xc22827=_0x3492e3;return this[_0xc22827(0xfa)][_0xc22827(0x10e)](_0x2886b8['id'],{'rangeId':this[_0xc22827(0xfc)],'text':_0x2b0646,'unitId':this['_unitId']});}[_0x3492e3(0x10f)](){var _0x950ff6=_0x3492e3;return this[_0x950ff6(0xfa)][_0x950ff6(0x10e)](_0x339487['id'],{'rangeId':this[_0x950ff6(0xfc)],'unitId':this[_0x950ff6(0x12a)]});}[_0x3492e3(0x10b)](){var _0x23a512=_0x3492e3,_0x5cbb2b;let _0x48ca18=this['_univerInstanceService'][_0x23a512(0x108)](this['_unitId'],_0x482900[_0x23a512(0x129)]);return _0x48ca18==null||(_0x5cbb2b=_0x48ca18['getSnapshot']()[_0x23a512(0x117)])==null||(_0x5cbb2b=_0x5cbb2b[_0x23a512(0xf9)])==null?void 0x0:_0x5cbb2b[_0x23a512(0x112)](_0x55ed6e=>_0x55ed6e[_0x23a512(0xea)]===this[_0x23a512(0xfc)]&&_0x1792e8(_0x55ed6e));}};b=y([v(0x2,_0x19a590),v(0x3,_0x1b4738(_0x77e54a)),v(0x4,_0x1b4738(_0x55c459)),v(0x5,_0x209cdd)],b);function x(_0x3f2c55){'@babel/helpers - typeof';var _0x5c577c=_0x3492e3;return x=typeof Symbol==_0x5c577c(0xff)&&typeof Symbol[_0x5c577c(0x102)]=='symbol'?function(_0x5ce47c){return typeof _0x5ce47c;}:function(_0x152fe4){var _0x17c4c9=_0x5c577c;return _0x152fe4&&typeof Symbol==_0x17c4c9(0xff)&&_0x152fe4[_0x17c4c9(0xfd)]===Symbol&&_0x152fe4!==Symbol[_0x17c4c9(0x115)]?'symbol':typeof _0x152fe4;},x(_0x3f2c55);}function _0x4959(){var _0x463b8d=['277670mWXKPz','getOwnPropertyDescriptor','getBody','extend','2043033PAgojJ','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','customRanges','_commandService','saveUnit','_rangeId','constructor','string','function','_univerInstanceService','_createFormula','iterator','_getCompleteRanges','getRange','_insert','decorate','describe','getUnit','insertFormula','defineProperty','_getCustomRange','range','_docsFormulaDisplayTextService','syncExecuteCommand','convertToText','getConfig','endIndex','find','saveFormulaDisplayTextSnapshot','paragraph','prototype','startOffset','body','remove','_injector','126lTOuJh','_docsFormulaCommandService','Document\x20','length','2028888XOhLSe','4lKOnNX','_service','5706320QNmJZO','getResult','getId','toPrimitive','symbol','48ygwOor','some','default','UNIVER_DOC','_unitId','_docsFormulaModel','_initialize','startIndex','numberFormat','getSegmentId','createInstance','869664eMmzZx','get','map','update','634978UUCvvd','formula','getFormulaAt','getFormula','_document','rangeId','externalReferences','replaceWithText','object','getFormulas','_docsFormulaResourceLoaderService','6332886FugVSl','_model','call'];_0x4959=function(){return _0x463b8d;};return _0x4959();}function S(_0x4a257a,_0x3299e7){var _0x38630e=_0x3492e3;if(x(_0x4a257a)!=_0x38630e(0xed)||!_0x4a257a)return _0x4a257a;var _0x537ab0=_0x4a257a[Symbol[_0x38630e(0x124)]];if(_0x537ab0!==void 0x0){var _0xeffd31=_0x537ab0[_0x38630e(0xf2)](_0x4a257a,_0x3299e7||_0x38630e(0x128));if(x(_0xeffd31)!='object')return _0xeffd31;throw TypeError(_0x38630e(0xf8));}return(_0x3299e7===_0x38630e(0xfe)?String:Number)(_0x4a257a);}function C(_0x12a192){var _0x40e709=_0x3492e3,_0xa39196=S(_0x12a192,_0x40e709(0xfe));return x(_0xa39196)==_0x40e709(0x125)?_0xa39196:_0xa39196+'';}function w(_0x2779c1,_0x2a81dd,_0x16c3ad){var _0x38a02d=_0x3492e3;return(_0x2a81dd=C(_0x2a81dd))in _0x2779c1?Object[_0x38a02d(0x10a)](_0x2779c1,_0x2a81dd,{'value':_0x16c3ad,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2779c1[_0x2a81dd]=_0x16c3ad,_0x2779c1;}var T=class extends _0xf7b689{constructor(..._0x43bb30){var _0x4dce8a=_0x3492e3;super(..._0x43bb30),w(this,_0x4dce8a(0x11b),void 0x0),w(this,_0x4dce8a(0x10d),void 0x0),w(this,_0x4dce8a(0x12b),void 0x0),w(this,_0x4dce8a(0xef),void 0x0);}[_0x3492e3(0x12c)](_0x2de1e1){var _0x361857=_0x3492e3;this[_0x361857(0x11b)]=_0x2de1e1[_0x361857(0x132)](_0x19a590),this[_0x361857(0x10d)]=_0x2de1e1[_0x361857(0x132)](_0x2b41fa),this[_0x361857(0x12b)]=_0x2de1e1[_0x361857(0x132)](_0x77e54a),this[_0x361857(0xef)]=_0x2de1e1[_0x361857(0x132)](_0x2722b5);}[_0x3492e3(0xee)](){var _0x5e7054=_0x3492e3;return this[_0x5e7054(0x103)]()[_0x5e7054(0x133)](_0x3a9563=>this[_0x5e7054(0x101)](_0x3a9563[_0x5e7054(0xea)]));}[_0x3492e3(0xe8)](_0x4cdc89){var _0x3adadf=_0x3492e3;return this['_getCompleteRanges']()[_0x3adadf(0x127)](_0x4ea8bb=>_0x4ea8bb[_0x3adadf(0xea)]===_0x4cdc89)?this[_0x3adadf(0x101)](_0x4cdc89):null;}[_0x3492e3(0xe7)](_0x3cd1ee){var _0x59df4c=_0x3492e3;let _0x2846aa=this[_0x59df4c(0x103)]()[_0x59df4c(0x112)](_0x3d1a2e=>_0x3d1a2e[_0x59df4c(0x12d)]<=_0x3cd1ee&&_0x3cd1ee<=_0x3d1a2e[_0x59df4c(0x111)]);return _0x2846aa?this[_0x59df4c(0x101)](_0x2846aa['rangeId']):null;}[_0x3492e3(0x113)](){var _0x5ba2f3=_0x3492e3;let _0x3d87e2=this[_0x5ba2f3(0xef)][_0x5ba2f3(0xfb)](this['id']);if(!_0x3d87e2)throw Error(_0x5ba2f3(0x11c)+this['id']+'\x20could\x20not\x20be\x20serialized.');return this[_0x5ba2f3(0x10d)]['degradeDocumentData'](_0x3d87e2);}[_0x3492e3(0x109)](_0xe7d332){var _0x5c14dd=_0x3492e3;return this[_0x5c14dd(0x105)]({'externalReferences':_0xe7d332['externalReferences'],'formula':_0xe7d332[_0x5c14dd(0xe6)],'numberFormat':_0xe7d332['numberFormat'],'target':{'type':_0x5c14dd(0x10c),'startOffset':_0xe7d332[_0x5c14dd(0x116)],'endOffset':_0xe7d332['endOffset']},'unitId':this['getId']()});}['_insert'](_0x18c488){var _0xf996b2=_0x3492e3;let _0x59511d=this[_0xf996b2(0x11b)][_0xf996b2(0x10e)](_0x7c7e8['id'],_0x18c488);return _0x59511d?this[_0xf996b2(0x101)](_0x59511d['rangeId']):null;}[_0x3492e3(0x103)](){var _0x51e83e=_0x3492e3,_0x22e9c2;let _0x243858=this[_0x51e83e(0x12b)][_0x51e83e(0xee)](this['getId']());return((_0x22e9c2=this[_0x51e83e(0xf5)]('')[_0x51e83e(0xf9)])==null?void 0x0:_0x22e9c2['filter'](_0x533981=>_0x1792e8(_0x533981)&&_0x243858[_0x533981[_0x51e83e(0xea)]]!=null))??[];}['_createFormula'](_0x510953){var _0x57cc1e=_0x3492e3;return this[_0x57cc1e(0x119)]['createInstance'](b,this['getId'](),_0x510953);}};_0xf7b689['extend'](T);var E=class extends _0x2d8bee{constructor(..._0x3d6cee){super(..._0x3d6cee),w(this,'_docsFormulaCommandService',void 0x0);}[_0x3492e3(0x12c)](_0x4bcd6f){var _0x1fc635=_0x3492e3;this[_0x1fc635(0x11b)]=_0x4bcd6f[_0x1fc635(0x132)](_0x19a590);}[_0x3492e3(0x109)](_0x28ab97,_0x131e34,_0x52c844={}){var _0x546035=_0x3492e3;return this[_0x546035(0x105)](_0x28ab97,_0x131e34,_0x52c844);}['appendFormula'](_0x54dcc0,_0x2a72a6={}){var _0x20ff4f=_0x3492e3;return this[_0x20ff4f(0x105)]('end',_0x54dcc0,_0x2a72a6);}[_0x3492e3(0x105)](_0x487cec,_0x3fd6d2,_0x37c160){var _0x56bf59=_0x3492e3;if(this[_0x56bf59(0x12f)]())return null;let _0x2a32cf={'externalReferences':_0x37c160[_0x56bf59(0xeb)],'formula':_0x3fd6d2,'numberFormat':_0x37c160[_0x56bf59(0x12e)],'target':{'type':_0x56bf59(0x114),'paragraphId':this['getId'](),'position':_0x487cec},'unitId':this[_0x56bf59(0xe9)][_0x56bf59(0x123)]()},_0x1127a7=this[_0x56bf59(0x11b)][_0x56bf59(0x10e)](_0x7c7e8['id'],_0x2a32cf);return _0x1127a7?this[_0x56bf59(0x119)][_0x56bf59(0x130)](b,this[_0x56bf59(0xe9)]['getId'](),_0x1127a7[_0x56bf59(0xea)]):null;}};_0x2d8bee[_0x3492e3(0xf6)](E);var D=class extends _0x56adcb{constructor(..._0x1006e0){var _0xa644a=_0x3492e3;super(..._0x1006e0),w(this,_0xa644a(0x11b),void 0x0);}['_initialize'](_0x239515){var _0x521f98=_0x3492e3;this[_0x521f98(0x11b)]=_0x239515[_0x521f98(0x132)](_0x19a590);}['replaceWithFormula'](_0xc3b4d4,_0x194ad8={}){var _0x485e36=_0x3492e3;let {endOffset:_0x311464,segmentId:_0x5034f8,startOffset:_0x5df12b}=this[_0x485e36(0x104)]();return _0x5034f8?null:this[_0x485e36(0x105)](_0x5df12b,_0x311464,_0xc3b4d4,_0x194ad8);}['_insert'](_0xfe8929,_0x1f25b4,_0x515eda,_0x503092){var _0x22b393=_0x3492e3;let _0x4fc73d={'externalReferences':_0x503092[_0x22b393(0xeb)],'formula':_0x515eda,'numberFormat':_0x503092[_0x22b393(0x12e)],'target':{'type':'range','startOffset':_0xfe8929,'endOffset':_0x1f25b4},'unitId':this[_0x22b393(0xe9)][_0x22b393(0x123)]()},_0xffa735=this['_docsFormulaCommandService'][_0x22b393(0x10e)](_0x7c7e8['id'],_0x4fc73d);return _0xffa735?this[_0x22b393(0x119)][_0x22b393(0x130)](b,this[_0x22b393(0xe9)][_0x22b393(0x123)](),_0xffa735['rangeId']):null;}};function _0x3590(_0x17e39c,_0xeeaaf4){_0x17e39c=_0x17e39c-0xe5;var _0x4959d7=_0x4959();var _0x35906f=_0x4959d7[_0x17e39c];return _0x35906f;}_0x56adcb[_0x3492e3(0xf6)](D);export{b as FDocumentFormula};
|