@univerjs-pro/docs-formula 1.3.1 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/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/types/common/const.d.ts +0 -1
- package/lib/types/common/type.d.ts +1 -3
- package/lib/types/index.d.ts +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +12 -12
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x217dd1=_0x28ce;(function(_0x46f8fe,_0x367206){const _0x4b8495=_0x28ce,_0x539628=_0x46f8fe();while(!![]){try{const _0x49ee4b=parseInt(_0x4b8495(0x1a9))/0x1*(-parseInt(_0x4b8495(0x185))/0x2)+-parseInt(_0x4b8495(0x1d4))/0x3+-parseInt(_0x4b8495(0x1a3))/0x4+-parseInt(_0x4b8495(0x216))/0x5*(-parseInt(_0x4b8495(0x1f7))/0x6)+parseInt(_0x4b8495(0x15d))/0x7+parseInt(_0x4b8495(0x176))/0x8+parseInt(_0x4b8495(0x16f))/0x9;if(_0x49ee4b===_0x367206)break;else _0x539628['push'](_0x539628['shift']());}catch(_0x525b63){_0x539628['push'](_0x539628['shift']());}}}(_0x2a6f,0x27eb7));import{FormulaCacheEligibilityService as _0x4f9c1c,FormulaLastValuePersistenceService as _0x12a840,HostExternalReferenceModel as _0x506168,UniverProFormulaEnginePlugin as _0x5bf116,buildUpsertHostExternalReferenceMutations as _0x41a736,collectFormulaExternalReferenceQualifiers as _0x7f61b,getScalarFormulaResultCell as _0x2973cb,resolveFormulaResultPresentation as _0x27458f,resolveHostFormulaExternalReferences as _0x4805eb,toFormulaLastValue as _0x1b8769}from'@univerjs-pro/engine-formula';function _0x2a6f(){const _0x5001ba=['resourceUndo','decorate','_syncScheduled','function','registerFormulaWithRange','paragraphs','documentRedo','_docFormulaModel','getUnitId','BLOCK_START','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','resources','removeUnit','documentData','sectionBreaks','some','min','params','name','customDecorations','MUTATION','stale','_presentationChanged$','resolveBinding','resource','start','set','@univerjs-pro/docs-formula','1212504ZGGcLS','segmentId','filter','includes','registerCommand','undoMutation','1fWHpzb','docs-formula.command.replace-with-text','formula','ERROR','docs-formula.mutation.set-last-values','pending','getCurrentUnitOfType','getPresentation','COLUMN_GROUP_START','forEach','docs-formula.command.update','_loadErrors','startsWith','COLUMN_START','_registrations','CUSTOM_BLOCK','sort','config','delete','removeFormula','setResource','_registrationService','selection','packageName','disabled','TABLE_ROW_START','deepClone','prototype','_change$','startOffset','_deleteRegistration','identity','referenceRevision','subscribe','serialize','resourceRedo','textRuns','columnGroups','_commandService','replaceDocRanges','resolveText','cursorOffset','COLUMN_GROUP_END','401436FfHSeE','iterator','BLOCK_END','formulas','asObservable','rangeType','lastValue','setFormula','_configService','docs-formula.command.remove','trim','customBlocks','onStarting','keys','add','register','_formulaService','TABLE_CELL_START','resolveFormula','startIndex','_preserveInvalid','setConfig','object','properties','onCommandExecuted','_resourceManagerService','_pendingUnitIds','_setPresentation','expectedNumberFormat','syncUnit','TABLE_END','TABLE_START','PENDING','has','nextDocumentData','678WPGouz','load','insertLength','getResource','_service','endIndex','toPrimitive','type','_syncUnit','setFormulas','text','liveResult','range','externalReferences','getRegisteredFormulas','tables','formulaId','_config','registerProvider','source','values','pluginName','_hostExternalReferenceModel','kind','success','customRanges','document','SECTION_BREAK','getFormula','unregister','cell','10445LWiqKQ','SUCCESS','registerPluginResource','accessor','target','call','eligible','clear','parse','get','body','change$','empty','COMMAND','EMPTY','fromEntries','complete','wholeEntity','pattern','_isDisposed','presentationChanged$','degradeBody','getRevision','defineProperty','string','_formulaKeys','paragraphId','presentation','1.3.1','color','blockRanges','_model','_rawResources','univer-docs-formula','docs-formula.command.insert','insert','model','push','getResult','schemaVersion','endsWith','rangeId','previousResource','Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.','disposeWithMe','PARAGRAPH','COLUMN_END','getAllUnitsForType','default','notifyTextChanged','isInteger','trigger','max','symbol','_injector','assess','DOC','pushUndoRedo','previousDocumentData','dataStream','docs-formula.mutation.remove-formula','every','DOC_FORMULA_PLUGIN','_resources','updates','nextResource','from','externalMutations','dispose','934423hyRHut','paragraph','slice','getFormulaValueSync','position','_instanceService','unsupported-version','map','unitDisposed$','_updateFormulaResult','error','docs-formula.mutation.set-resource','getSnapshot','redoMutation','_cacheEligibilityService','getUnit','assign','Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries','4028418nDJBBX','syncExecuteCommand','length','endOffset','unitId','find','expectedFormula','188096Hblvxl','docs-formula.config','next','numberFormat','references','status','unregisterUnit','expectedReferenceRevision','getInstance','UNIVER_DOC','resolved','data','getFormulas','entries','_queueSync','480422kVEUoa','boolean'];_0x2a6f=function(){return _0x5001ba;};return _0x2a6f();}import{CellValueType as _0xddeba6,CommandType as _0x5f1099,CustomRangeType as _0xa7b507,DataStreamTreeTokenType as _0x303d23,DependentOn as _0x4eb3b4,Disposable as _0x18377d,ICommandService as _0x41c106,IConfigService as _0x35fc54,IResourceManagerService as _0x2d200b,IUndoRedoService as _0xe640ba,IUniverInstanceService as _0x147b46,Inject as _0x5e32df,Injector as _0x11059a,JSONX as _0x267617,Plugin as _0x2b73e4,TextX as _0x52174a,Tools as _0x4b0aab,UniverInstanceType as _0x138c8e,generateRandomId as _0x25429d,getBodySliceForTextXAction as _0x252b2a,getCustomRangeInterval as _0x1c91d3,getParagraphContentStartOffset as _0x480edf,getRichTextEditPath as _0x2ed637,merge as _0x59447c,shiftExclusiveRangeOnDelete as _0x24c8e7,shiftExclusiveRangeOnInsert as _0x7fd50e,shiftInclusiveRangeOnDelete as _0x23a1d4,shiftInclusiveRangeOnInsert as _0x4fc859,touchDependencies as _0x53385a}from'@univerjs/core';import{DOC_SELECTION_OPTION_PRESERVE_CARET as _0x173f0a,DocSelectionManagerService as _0x3e1e55,DocTextResolverService as _0xbd430a,RichTextEditingMutation as _0x2dc975,UniverDocsPlugin as _0x50ecdf}from'@univerjs/docs';import{FormulaResultStatus as _0x5815e0,LexerTreeBuilder as _0x3a97e6,OtherFormulaBizType as _0x3508be,RegisterOtherFormulaService as _0x51a6f6}from'@univerjs/engine-formula';import{Subject as _0x2b03f3}from'rxjs';import{UniverLicensePlugin as _0x3855ef}from'@univerjs-pro/license';const y=_0x217dd1(0x156),je=0x1,Me=_0x217dd1(0x237),Ne='';function b(){return{'schemaVersion':0x1,'formulas':{}};}function x(_0x33a8b7){const _0x36fccf=_0x217dd1;return!_0x33a8b7||typeof _0x33a8b7!=_0x36fccf(0x1ea)||!S(_0x33a8b7,['schemaVersion','formulas'])||!(_0x36fccf(0x23d)in _0x33a8b7)||_0x33a8b7[_0x36fccf(0x23d)]!==0x1||!(_0x36fccf(0x1d7)in _0x33a8b7)||!_0x33a8b7[_0x36fccf(0x1d7)]||typeof _0x33a8b7['formulas']!=_0x36fccf(0x1ea)||Array['isArray'](_0x33a8b7[_0x36fccf(0x1d7)])?!0x1:Object[_0x36fccf(0x183)](_0x33a8b7[_0x36fccf(0x1d7)])[_0x36fccf(0x155)](([_0x6631b6,_0x370f0d])=>_0x6631b6[_0x36fccf(0x171)]>0x0&&Pe(_0x370f0d));}function Pe(_0x3a0550){const _0xd093a5=_0x217dd1;return!_0x3a0550||typeof _0x3a0550!=_0xd093a5(0x1ea)||!S(_0x3a0550,['formula',_0xd093a5(0x179),_0xd093a5(0x1da)])||!('formula'in _0x3a0550)||typeof _0x3a0550[_0xd093a5(0x1ab)]!=_0xd093a5(0x22e)||!_0x3a0550[_0xd093a5(0x1ab)][_0xd093a5(0x1de)]()||_0xd093a5(0x179)in _0x3a0550&&_0x3a0550['numberFormat']!=null&&(typeof _0x3a0550[_0xd093a5(0x179)]!=_0xd093a5(0x1ea)||!S(_0x3a0550[_0xd093a5(0x179)],['pattern'])||!('pattern'in _0x3a0550[_0xd093a5(0x179)])||typeof _0x3a0550[_0xd093a5(0x179)]['pattern']!=_0xd093a5(0x22e))?!0x1:!(_0xd093a5(0x1da)in _0x3a0550)||_0x3a0550['lastValue']==null||Fe(_0x3a0550[_0xd093a5(0x1da)]);}function Fe(_0x3ebafb){const _0x41a85e=_0x217dd1;return!_0x3ebafb||typeof _0x3ebafb!=_0x41a85e(0x1ea)||!S(_0x3ebafb,['v','t','pattern'])||!('v'in _0x3ebafb)||_0x3ebafb['v']!==null&&typeof _0x3ebafb['v']!=_0x41a85e(0x22e)&&typeof _0x3ebafb['v']!='number'&&typeof _0x3ebafb['v']!=_0x41a85e(0x186)||'t'in _0x3ebafb&&_0x3ebafb['t']!=null&&!Ie(_0x3ebafb['t'])?!0x1:!(_0x41a85e(0x228)in _0x3ebafb)||_0x3ebafb[_0x41a85e(0x228)]==null||typeof _0x3ebafb[_0x41a85e(0x228)]=='string';}function S(_0x5b0a55,_0x8a7a09){const _0x468ad9=_0x217dd1;let _0x3d2801=new Set(_0x8a7a09);return Object[_0x468ad9(0x1e1)](_0x5b0a55)[_0x468ad9(0x155)](_0x27fb88=>_0x3d2801[_0x468ad9(0x1f5)](_0x27fb88));}function Ie(_0x11b8d7){const _0x409c5b=_0x217dd1;return typeof _0x11b8d7=='number'&&Object[_0x409c5b(0x20b)](_0xddeba6)['includes'](_0x11b8d7);}const Le=new Set([_0x303d23[_0x217dd1(0x212)],_0x303d23[_0x217dd1(0x1f3)],_0x303d23[_0x217dd1(0x1c2)],_0x303d23[_0x217dd1(0x1e5)],_0x303d23['TABLE_CELL_END'],_0x303d23['TABLE_ROW_END'],_0x303d23[_0x217dd1(0x1f2)],_0x303d23[_0x217dd1(0x1b1)],_0x303d23[_0x217dd1(0x1b6)],_0x303d23[_0x217dd1(0x146)],_0x303d23[_0x217dd1(0x1d3)],_0x303d23[_0x217dd1(0x190)],_0x303d23[_0x217dd1(0x1d6)],_0x303d23[_0x217dd1(0x1b8)]]);var C=class extends Error{constructor(){const _0x20acbb=_0x217dd1;super(_0x20acbb(0x16e));}};function Re(_0x4a6acb){const _0x4419c5=_0x217dd1;var _0x1ba3ff,_0x411f1a;let _0x49217f=_0x4b0aab[_0x4419c5(0x1c3)](_0x4a6acb[_0x4419c5(0x194)]),_0x5c4c05=j(_0x49217f),{startOffset:_0x1871ab,endOffset:_0x32eb06}=We(_0x5c4c05,_0x4a6acb[_0x4419c5(0x1c6)],_0x4a6acb[_0x4419c5(0x172)]);He(_0x5c4c05,_0x1871ab,_0x32eb06);let _0x327859=((_0x1ba3ff=_0x5c4c05[_0x4419c5(0x210)])==null?void 0x0:_0x1ba3ff[_0x4419c5(0x1a5)](_0x17b629=>{const _0x59dd0c=_0x4419c5;if(!w(_0x17b629))return!0x1;let _0x1b1cea=_0x1c91d3(_0x17b629);return _0x1b1cea[_0x59dd0c(0x172)]>_0x1871ab&&_0x1b1cea[_0x59dd0c(0x1c6)]<_0x32eb06;})[_0x4419c5(0x164)](_0x4e9a92=>_0x4e9a92[_0x4419c5(0x141)]))??[];qe(_0x5c4c05,_0x1871ab,_0x32eb06,''),_0x5c4c05[_0x4419c5(0x210)]=[...((_0x411f1a=_0x5c4c05['customRanges'])==null?void 0x0:_0x411f1a[_0x4419c5(0x1a5)](_0x2ffe1c=>!_0x327859[_0x4419c5(0x1a6)](_0x2ffe1c[_0x4419c5(0x141)])&&_0x2ffe1c[_0x4419c5(0x141)]!==_0x4a6acb['rangeId']))??[],Ue(_0x4a6acb['rangeId'],_0x1871ab)][_0x4419c5(0x1b9)]((_0x52181d,_0x4b8459)=>_0x52181d[_0x4419c5(0x1e7)]-_0x4b8459[_0x4419c5(0x1e7)]);let _0x5e8aba=E(_0x4a6acb[_0x4419c5(0x19f)]);return _0x327859[_0x4419c5(0x1b2)](_0x4d61e3=>{const _0x4c2845=_0x4419c5;delete _0x5e8aba[_0x4c2845(0x1d7)][_0x4d61e3];}),_0x5e8aba['formulas'][_0x4a6acb[_0x4419c5(0x141)]]=_0x4b0aab[_0x4419c5(0x1c3)](_0x4a6acb[_0x4419c5(0x1ba)]),{'nextDocumentData':_0x49217f,'nextResource':_0x5e8aba,'cursorOffset':_0x1871ab+0x1};}function ze(_0x2a5355){const _0x305353=_0x217dd1;var _0x52a14b,_0x8e6589;let _0x3155b6=_0x4b0aab[_0x305353(0x1c3)](_0x2a5355[_0x305353(0x194)]),_0x4e7961=(_0x52a14b=j(_0x3155b6)[_0x305353(0x210)])==null?void 0x0:_0x52a14b[_0x305353(0x174)](_0x2bf86a=>_0x2bf86a[_0x305353(0x141)]===_0x2a5355['rangeId']&&w(_0x2bf86a));if(!_0x4e7961||!((_0x8e6589=_0x2a5355[_0x305353(0x19f)])!=null&&_0x8e6589['formulas'][_0x2a5355[_0x305353(0x141)]]))return null;let _0x28ee8e=E(_0x2a5355[_0x305353(0x19f)]);return _0x28ee8e[_0x305353(0x1d7)][_0x2a5355['rangeId']]=_0x4b0aab[_0x305353(0x1c3)](_0x2a5355[_0x305353(0x1ba)]),{'nextDocumentData':_0x3155b6,'nextResource':_0x28ee8e,'cursorOffset':_0x4e7961[_0x305353(0x1fc)]+0x1};}function Be(_0x4a14ed){const _0x3cd6cd=_0x217dd1;let _0x31de7a=_0x4b0aab[_0x3cd6cd(0x1c3)](_0x4a14ed['documentData']),_0x869cfd=Je(_0x31de7a,_0x4a14ed[_0x3cd6cd(0x141)],_0x4a14ed['text']??'');if(_0x869cfd==null)return null;let _0x347600=E(_0x4a14ed[_0x3cd6cd(0x19f)]);return delete _0x347600['formulas'][_0x4a14ed[_0x3cd6cd(0x141)]],{'nextDocumentData':_0x31de7a,'nextResource':_0x347600,'cursorOffset':_0x869cfd};}function Ve(_0x29c320,_0xf9c3a3){const _0x50ccbe=_0x217dd1;var _0x1c1ec1;let _0x3bcd60=_0x4b0aab[_0x50ccbe(0x1c3)](_0x29c320),_0x73ac89=_0x3bcd60['body'];if(!_0x73ac89)return _0x3bcd60;let _0x106e29=new Map(_0xf9c3a3[_0x50ccbe(0x164)](_0x182596=>[_0x182596['rangeId'],_0x182596[_0x50ccbe(0x201)]])),_0x418691=((_0x1c1ec1=_0x73ac89[_0x50ccbe(0x210)])==null?void 0x0:_0x1c1ec1[_0x50ccbe(0x1a5)](_0x547723=>w(_0x547723)&&_0x106e29['has'](_0x547723['rangeId']))[_0x50ccbe(0x1b9)]((_0x342876,_0x44931a)=>_0x44931a[_0x50ccbe(0x1e7)]-_0x342876[_0x50ccbe(0x1e7)]))??[];for(let _0x5162cd of _0x418691)Je(_0x3bcd60,_0x5162cd[_0x50ccbe(0x141)],_0x106e29[_0x50ccbe(0x21f)](_0x5162cd[_0x50ccbe(0x141)])??'');return _0x3bcd60;}function w(_0xc40f0d){const _0x31a015=_0x217dd1;var _0x4a24ad;return(_0xc40f0d==null?void 0x0:_0xc40f0d[_0x31a015(0x1d9)])===_0xa7b507['CUSTOM']&&_0xc40f0d[_0x31a015(0x227)]===!0x0&&((_0x4a24ad=_0xc40f0d[_0x31a015(0x1eb)])==null?void 0x0:_0x4a24ad[_0x31a015(0x20e)])==='univer-docs-formula';}function T(_0x572dc0,_0x79dd3c){const _0x33104d=_0x217dd1;var _0x452856;return _0x572dc0==null||(_0x452856=_0x572dc0['customRanges'])==null?void 0x0:_0x452856[_0x33104d(0x174)](_0x6bd752=>_0x6bd752[_0x33104d(0x141)]===_0x79dd3c&&w(_0x6bd752));}function He(_0x4a2854,_0x564262,_0x424f1b){const _0x59d0cf=_0x217dd1;if(_0x564262===_0x424f1b){if(Le[_0x59d0cf(0x1f5)](_0x4a2854['dataStream'][_0x564262]))throw new C();}else{for(let _0x424c5f=_0x564262;_0x424c5f<_0x424f1b;_0x424c5f++)if(_0x4a2854['dataStream'][_0x424c5f]===_0x303d23[_0x59d0cf(0x145)]||Le[_0x59d0cf(0x1f5)](_0x4a2854[_0x59d0cf(0x153)][_0x424c5f]))throw new C();}}function Ue(_0x30aca8,_0x47649f){return{'startIndex':_0x47649f,'endIndex':_0x47649f,'rangeId':_0x30aca8,'rangeType':_0xa7b507['CUSTOM'],'wholeEntity':!0x0,'properties':{'kind':Me}};}function E(_0x3f848f){const _0x19fd63=_0x217dd1;return _0x3f848f?_0x4b0aab[_0x19fd63(0x1c3)](_0x3f848f):b();}function We(_0x2a0fc2,_0x3dc998,_0x53b50b){const _0x3cde51=_0x217dd1;let _0x215701=Ke(_0x2a0fc2),_0x242159=_0x3dc998??_0x215701,_0x188ab8=_0x53b50b??_0x242159;return{'startOffset':Ge(Math['min'](_0x242159,_0x188ab8),_0x215701),'endOffset':Ge(Math[_0x3cde51(0x14c)](_0x242159,_0x188ab8),_0x215701)};}function Ge(_0x277a78,_0x222d67){const _0x160741=_0x217dd1;return Math[_0x160741(0x14c)](0x0,Math['min'](_0x277a78,_0x222d67));}function Ke(_0x2270fa){const _0x2ae970=_0x217dd1;return _0x2270fa[_0x2ae970(0x153)][_0x2ae970(0x140)](''+_0x303d23[_0x2ae970(0x145)]+_0x303d23[_0x2ae970(0x212)])?Math['max'](0x0,_0x2270fa['dataStream']['length']-0x2):_0x2270fa[_0x2ae970(0x153)][_0x2ae970(0x140)](_0x303d23[_0x2ae970(0x212)])?Math[_0x2ae970(0x14c)](0x0,_0x2270fa[_0x2ae970(0x153)]['length']-0x1):_0x2270fa[_0x2ae970(0x153)]['length'];}function qe(_0x25059b,_0xe6d068,_0x4a96d8,_0x2017aa){_0x4a96d8>_0xe6d068&&Xe(_0x25059b,_0xe6d068,_0x4a96d8),Ye(_0x25059b,_0xe6d068,_0x2017aa);}function Je(_0x408d34,_0x69f0e5,_0xe2f4ab){const _0x523e11=_0x217dd1;var _0x247000,_0x158924;let _0x9857d=j(_0x408d34),_0x47d4b1=(_0x247000=_0x9857d[_0x523e11(0x210)])==null?void 0x0:_0x247000[_0x523e11(0x174)](_0x7e0de8=>_0x7e0de8[_0x523e11(0x141)]===_0x69f0e5&&w(_0x7e0de8));if(!_0x47d4b1)return null;let _0x1589a2=_0x1c91d3(_0x47d4b1);return qe(_0x9857d,_0x1589a2[_0x523e11(0x1c6)],_0x1589a2['endOffset'],_0xe2f4ab),_0x9857d[_0x523e11(0x210)]=(_0x158924=_0x9857d[_0x523e11(0x210)])==null?void 0x0:_0x158924['filter'](_0x423e53=>_0x423e53['rangeId']!==_0x69f0e5),_0x1589a2['startOffset']+_0xe2f4ab[_0x523e11(0x171)];}function Ye(_0x2dd341,_0x4333b2,_0x4bf980){const _0x392e9f=_0x217dd1;_0x4bf980&&(_0x2dd341['dataStream']=''+_0x2dd341[_0x392e9f(0x153)]['slice'](0x0,_0x4333b2)+_0x4bf980+_0x2dd341['dataStream'][_0x392e9f(0x15f)](_0x4333b2),Ze(_0x2dd341,_0x4333b2,_0x4bf980['length']));}function Xe(_0x705dfb,_0xeb8d48,_0x3da25b){const _0x2f6c5f=_0x217dd1;let _0x4bc73e=_0x3da25b-_0xeb8d48;_0x705dfb[_0x2f6c5f(0x153)]=''+_0x705dfb[_0x2f6c5f(0x153)]['slice'](0x0,_0xeb8d48)+_0x705dfb[_0x2f6c5f(0x153)][_0x2f6c5f(0x15f)](_0x3da25b),Qe(_0x705dfb,_0xeb8d48,_0x4bc73e);}function Ze(_0x2945ff,_0x48e4c4,_0x203f75){const _0x2f4d78=_0x217dd1;_0x2945ff[_0x2f4d78(0x18c)]=D(_0x2945ff[_0x2f4d78(0x18c)],_0x48e4c4,_0x203f75),_0x2945ff['sectionBreaks']=D(_0x2945ff['sectionBreaks'],_0x48e4c4,_0x203f75),_0x2945ff[_0x2f4d78(0x1df)]=D(_0x2945ff[_0x2f4d78(0x1df)],_0x48e4c4,_0x203f75),_0x2945ff[_0x2f4d78(0x1cd)]=$e(_0x2945ff[_0x2f4d78(0x1cd)],_0x48e4c4,_0x203f75),_0x2945ff['tables']=et(_0x2945ff[_0x2f4d78(0x206)],_0x48e4c4,_0x203f75),_0x2945ff[_0x2f4d78(0x1ce)]=k(_0x2945ff['columnGroups'],_0x48e4c4,_0x203f75),_0x2945ff[_0x2f4d78(0x210)]=k(_0x2945ff[_0x2f4d78(0x210)],_0x48e4c4,_0x203f75),_0x2945ff[_0x2f4d78(0x19a)]=k(_0x2945ff['customDecorations'],_0x48e4c4,_0x203f75),_0x2945ff[_0x2f4d78(0x234)]=k(_0x2945ff[_0x2f4d78(0x234)],_0x48e4c4,_0x203f75);}function Qe(_0x5efb5d,_0x175cda,_0x4e40d8){const _0xdd740e=_0x217dd1;var _0x2bd071,_0x4aa016;_0x5efb5d[_0xdd740e(0x18c)]=O(_0x5efb5d[_0xdd740e(0x18c)],_0x175cda,_0x4e40d8),_0x5efb5d[_0xdd740e(0x195)]=O(_0x5efb5d[_0xdd740e(0x195)],_0x175cda,_0x4e40d8),_0x5efb5d[_0xdd740e(0x1df)]=O(_0x5efb5d[_0xdd740e(0x1df)],_0x175cda,_0x4e40d8),_0x5efb5d['textRuns']=(_0x2bd071=tt((_0x4aa016=_0x5efb5d[_0xdd740e(0x1cd)])==null?void 0x0:_0x4aa016['map'](_0x45262d=>({..._0x45262d,'startIndex':_0x45262d['st'],'endIndex':_0x45262d['ed']})),_0x175cda,_0x4e40d8))==null?void 0x0:_0x2bd071['map'](_0x5bdea5=>{let {startIndex:_0x1a71e3,endIndex:_0x3654d4,..._0x1266b6}=_0x5bdea5;return{..._0x1266b6,'st':_0x1a71e3,'ed':_0x3654d4};}),_0x5efb5d['tables']=tt(_0x5efb5d[_0xdd740e(0x206)],_0x175cda,_0x4e40d8),_0x5efb5d[_0xdd740e(0x1ce)]=A(_0x5efb5d['columnGroups'],_0x175cda,_0x4e40d8),_0x5efb5d[_0xdd740e(0x210)]=A(_0x5efb5d[_0xdd740e(0x210)],_0x175cda,_0x4e40d8),_0x5efb5d[_0xdd740e(0x19a)]=A(_0x5efb5d[_0xdd740e(0x19a)],_0x175cda,_0x4e40d8),_0x5efb5d[_0xdd740e(0x234)]=A(_0x5efb5d[_0xdd740e(0x234)],_0x175cda,_0x4e40d8);}function D(_0x2a7771,_0x57b8f2,_0x4e8f76){const _0x62b9c9=_0x217dd1;return _0x2a7771==null?void 0x0:_0x2a7771[_0x62b9c9(0x164)](_0x21abe7=>_0x21abe7[_0x62b9c9(0x1e7)]>=_0x57b8f2?{..._0x21abe7,'startIndex':_0x21abe7[_0x62b9c9(0x1e7)]+_0x4e8f76}:_0x21abe7);}function O(_0xb0873d,_0x29695d,_0x564b71){const _0x3e1049=_0x217dd1;let _0x25a7c5=_0x29695d+_0x564b71;return _0xb0873d==null?void 0x0:_0xb0873d[_0x3e1049(0x164)](_0x1d39d7=>_0x1d39d7['startIndex']>=_0x29695d&&_0x1d39d7['startIndex']<_0x25a7c5?null:_0x1d39d7[_0x3e1049(0x1e7)]>=_0x25a7c5?{..._0x1d39d7,'startIndex':_0x1d39d7[_0x3e1049(0x1e7)]-_0x564b71}:_0x1d39d7)[_0x3e1049(0x1a5)](_0x293238=>_0x293238!=null);}function $e(_0x14d7af,_0xc89632,_0x2a4ba7){const _0x3199=_0x217dd1;return _0x14d7af==null?void 0x0:_0x14d7af[_0x3199(0x164)](_0x56b9a1=>_0x56b9a1['st']>=_0xc89632?{..._0x56b9a1,'st':_0x56b9a1['st']+_0x2a4ba7,'ed':_0x56b9a1['ed']+_0x2a4ba7}:_0x56b9a1['ed']>_0xc89632?{..._0x56b9a1,'ed':_0x56b9a1['ed']+_0x2a4ba7}:_0x56b9a1);}function k(_0x33928b,_0x17c339,_0x3cb90a){const _0x56d2c5=_0x217dd1;return _0x33928b==null?void 0x0:_0x33928b[_0x56d2c5(0x164)](_0x36d70a=>_0x4fc859(_0x36d70a,_0x17c339,_0x3cb90a));}function et(_0x9914ec,_0x4050ab,_0x39797e){const _0x4b75ec=_0x217dd1;return _0x9914ec==null?void 0x0:_0x9914ec[_0x4b75ec(0x164)](_0x26ad6d=>_0x7fd50e(_0x26ad6d,_0x4050ab,_0x39797e));}function A(_0x557e94,_0x329741,_0x528a87){const _0x484474=_0x217dd1;return _0x557e94==null?void 0x0:_0x557e94[_0x484474(0x164)](_0x2f7af6=>_0x23a1d4(_0x2f7af6,_0x329741,_0x528a87))['filter'](_0x30a571=>_0x30a571!=null);}function tt(_0x3f7787,_0xe830ec,_0x2fd680){const _0x1ce5c4=_0x217dd1;return _0x3f7787==null?void 0x0:_0x3f7787[_0x1ce5c4(0x164)](_0xef9991=>_0x24c8e7(_0xef9991,_0xe830ec,_0x2fd680))[_0x1ce5c4(0x1a5)](_0x4a4e72=>_0x4a4e72!=null);}function j(_0x1a8d5a){const _0x1666d3=_0x217dd1;if(!_0x1a8d5a['body'])throw Error(_0x1666d3(0x143));return _0x1a8d5a[_0x1666d3(0x220)];}function M(_0x4d0764){'@babel/helpers - typeof';const _0x2f78c2=_0x217dd1;return M=typeof Symbol=='function'&&typeof Symbol[_0x2f78c2(0x1d5)]==_0x2f78c2(0x14d)?function(_0x111b7b){return typeof _0x111b7b;}:function(_0x3516d2){const _0x488cba=_0x2f78c2;return _0x3516d2&&typeof Symbol==_0x488cba(0x18a)&&_0x3516d2['constructor']===Symbol&&_0x3516d2!==Symbol[_0x488cba(0x1c4)]?_0x488cba(0x14d):typeof _0x3516d2;},M(_0x4d0764);}function nt(_0x9e0cf1,_0x12a938){const _0x3542db=_0x217dd1;if(M(_0x9e0cf1)!='object'||!_0x9e0cf1)return _0x9e0cf1;var _0x147f44=_0x9e0cf1[Symbol[_0x3542db(0x1fd)]];if(_0x147f44!==void 0x0){var _0x23b12a=_0x147f44[_0x3542db(0x21b)](_0x9e0cf1,_0x12a938||_0x3542db(0x148));if(M(_0x23b12a)!=_0x3542db(0x1ea))return _0x23b12a;throw TypeError(_0x3542db(0x191));}return(_0x12a938==='string'?String:Number)(_0x9e0cf1);}function rt(_0x3a3027){const _0x383181=_0x217dd1;var _0x46653a=nt(_0x3a3027,'string');return M(_0x46653a)==_0x383181(0x14d)?_0x46653a:_0x46653a+'';}function N(_0x4a3b30,_0x4b4a21,_0x1cf49f){const _0x1f28da=_0x217dd1;return(_0x4b4a21=rt(_0x4b4a21))in _0x4a3b30?Object[_0x1f28da(0x22d)](_0x4a3b30,_0x4b4a21,{'value':_0x1cf49f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4a3b30[_0x4b4a21]=_0x1cf49f,_0x4a3b30;}var P=class extends _0x18377d{constructor(..._0x27b5c4){const _0x255527=_0x217dd1;super(..._0x27b5c4),N(this,'_resources',new Map()),N(this,'_rawResources',new Map()),N(this,_0x255527(0x1b4),new Map()),N(this,_0x255527(0x1c5),new _0x2b03f3()),N(this,_0x255527(0x221),this[_0x255527(0x1c5)][_0x255527(0x1d8)]());}['getFormula'](_0xb6f641,_0x131d50){const _0x3ca899=_0x217dd1;var _0x2a8957;let _0x4d36e4=(_0x2a8957=this[_0x3ca899(0x157)][_0x3ca899(0x21f)](_0xb6f641))==null?void 0x0:_0x2a8957[_0x3ca899(0x1d7)][_0x131d50];return _0x4d36e4?_0x4b0aab[_0x3ca899(0x1c3)](_0x4d36e4):void 0x0;}[_0x217dd1(0x182)](_0x5ca644){const _0x3ebeb7=_0x217dd1;var _0x16bdc2;return _0x4b0aab[_0x3ebeb7(0x1c3)](((_0x16bdc2=this[_0x3ebeb7(0x157)]['get'](_0x5ca644))==null?void 0x0:_0x16bdc2[_0x3ebeb7(0x1d7)])??{});}['getResource'](_0x53b692){const _0x143138=_0x217dd1;let _0x3316fb=this['_resources']['get'](_0x53b692);return _0x3316fb?_0x4b0aab[_0x143138(0x1c3)](_0x3316fb):void 0x0;}[_0x217dd1(0x1db)](_0x598e7c,_0x3de29e,_0x48358c){const _0x3c2ed3=_0x217dd1;return this[_0x3c2ed3(0x200)](_0x598e7c,{[_0x3de29e]:_0x48358c});}['setResource'](_0x1b064d,_0x45a2b3){const _0x1a333d=_0x217dd1;return this[_0x1a333d(0x1b4)][_0x1a333d(0x1f5)](_0x1b064d)||!x(_0x45a2b3)?!0x1:(this['_resources'][_0x1a333d(0x1a1)](_0x1b064d,_0x4b0aab['deepClone'](_0x45a2b3)),this[_0x1a333d(0x1c5)][_0x1a333d(0x178)]({'unitId':_0x1b064d}),!0x0);}[_0x217dd1(0x200)](_0x1417b2,_0x1c91a7){const _0x530eb4=_0x217dd1;if(this[_0x530eb4(0x1b4)][_0x530eb4(0x1f5)](_0x1417b2)||!Object[_0x530eb4(0x1e1)](_0x1c91a7)['length']||!x({'schemaVersion':0x1,'formulas':_0x1c91a7}))return!0x1;let _0x183edd=this[_0x530eb4(0x157)][_0x530eb4(0x21f)](_0x1417b2)??b(),_0x41dee8=_0x4b0aab[_0x530eb4(0x1c3)](_0x183edd);return Object[_0x530eb4(0x16d)](_0x41dee8['formulas'],_0x4b0aab[_0x530eb4(0x1c3)](_0x1c91a7)),this[_0x530eb4(0x157)]['set'](_0x1417b2,_0x41dee8),this[_0x530eb4(0x1c5)][_0x530eb4(0x178)]({'unitId':_0x1417b2,'rangeIds':Object[_0x530eb4(0x1e1)](_0x1c91a7)}),!0x0;}[_0x217dd1(0x1bc)](_0x55aa78,_0x3b19b9){const _0x3185fb=_0x217dd1;if(this[_0x3185fb(0x1b4)][_0x3185fb(0x1f5)](_0x55aa78))return!0x1;let _0x3a18b1=this['_resources'][_0x3185fb(0x21f)](_0x55aa78);if(!(_0x3a18b1!=null&&_0x3a18b1[_0x3185fb(0x1d7)][_0x3b19b9]))return!0x1;let _0x569c61=_0x4b0aab[_0x3185fb(0x1c3)](_0x3a18b1);return delete _0x569c61[_0x3185fb(0x1d7)][_0x3b19b9],this[_0x3185fb(0x157)][_0x3185fb(0x1a1)](_0x55aa78,_0x569c61),this['_change$'][_0x3185fb(0x178)]({'unitId':_0x55aa78,'rangeIds':[_0x3b19b9]}),!0x0;}[_0x217dd1(0x1f8)](_0x4ec42a,_0x141d52){const _0x1d04ed=_0x217dd1;return _0x141d52&&typeof _0x141d52=='object'&&_0x1d04ed(0x23d)in _0x141d52&&_0x141d52[_0x1d04ed(0x23d)]!==0x1?(this[_0x1d04ed(0x1e8)](_0x4ec42a,_0x141d52,_0x1d04ed(0x163)),!0x1):x(_0x141d52)?(this['_resources'][_0x1d04ed(0x1a1)](_0x4ec42a,_0x4b0aab['deepClone'](_0x141d52)),this[_0x1d04ed(0x236)][_0x1d04ed(0x1bb)](_0x4ec42a),this[_0x1d04ed(0x1b4)][_0x1d04ed(0x1bb)](_0x4ec42a),this['_change$']['next']({'unitId':_0x4ec42a}),!0x0):(this[_0x1d04ed(0x1e8)](_0x4ec42a,_0x141d52,'invalid-resource'),!0x1);}['serialize'](_0x55fedb){const _0x587b9f=_0x217dd1;let _0x4d868b=this[_0x587b9f(0x157)]['get'](_0x55fedb);return _0x4d868b?_0x4b0aab[_0x587b9f(0x1c3)](_0x4d868b):this[_0x587b9f(0x236)][_0x587b9f(0x1f5)](_0x55fedb)?_0x4b0aab[_0x587b9f(0x1c3)](this['_rawResources'][_0x587b9f(0x21f)](_0x55fedb)):b();}['getLoadError'](_0x5b3a65){const _0x83bce7=_0x217dd1;return this[_0x83bce7(0x1b4)][_0x83bce7(0x21f)](_0x5b3a65);}['removeUnit'](_0x567732){const _0x642dbe=_0x217dd1;this[_0x642dbe(0x157)][_0x642dbe(0x1bb)](_0x567732),this[_0x642dbe(0x236)][_0x642dbe(0x1bb)](_0x567732),this[_0x642dbe(0x1b4)][_0x642dbe(0x1bb)](_0x567732),this[_0x642dbe(0x1c5)][_0x642dbe(0x178)]({'unitId':_0x567732});}['dispose'](){const _0x380c06=_0x217dd1;this[_0x380c06(0x157)]['clear'](),this[_0x380c06(0x236)]['clear'](),this[_0x380c06(0x1b4)][_0x380c06(0x21d)](),this[_0x380c06(0x1c5)]['complete'](),super[_0x380c06(0x15c)]();}[_0x217dd1(0x1e8)](_0x170e7b,_0x4e9891,_0x5a573e){const _0x3965e5=_0x217dd1;this['_resources'][_0x3965e5(0x1bb)](_0x170e7b),this[_0x3965e5(0x236)][_0x3965e5(0x1a1)](_0x170e7b,_0x4b0aab[_0x3965e5(0x1c3)](_0x4e9891)),this[_0x3965e5(0x1b4)]['set'](_0x170e7b,_0x5a573e),this[_0x3965e5(0x1c5)]['next']({'unitId':_0x170e7b});}};let it=function(_0x10513e){const _0x524e98=_0x217dd1;return _0x10513e[_0x524e98(0x224)]=_0x524e98(0x222),_0x10513e[_0x524e98(0x1f4)]=_0x524e98(0x1ae),_0x10513e[_0x524e98(0x217)]=_0x524e98(0x20f),_0x10513e[_0x524e98(0x1ac)]='error',_0x10513e;}({});function F(_0xb14ad7,_0x452cec){return function(_0x668bf7,_0x5be808){_0x452cec(_0x668bf7,_0x5be808,_0xb14ad7);};}function I(_0xd4c6b7,_0x2d85ec,_0x551c16,_0x392d22){const _0xd23448=_0x217dd1;var _0x2feea9=arguments['length'],_0x2f2361=_0x2feea9<0x3?_0x2d85ec:_0x392d22===null?_0x392d22=Object['getOwnPropertyDescriptor'](_0x2d85ec,_0x551c16):_0x392d22,_0x377118;if(typeof Reflect==_0xd23448(0x1ea)&&typeof Reflect[_0xd23448(0x188)]==_0xd23448(0x18a))_0x2f2361=Reflect[_0xd23448(0x188)](_0xd4c6b7,_0x2d85ec,_0x551c16,_0x392d22);else{for(var _0x3922d5=_0xd4c6b7[_0xd23448(0x171)]-0x1;_0x3922d5>=0x0;_0x3922d5--)(_0x377118=_0xd4c6b7[_0x3922d5])&&(_0x2f2361=(_0x2feea9<0x3?_0x377118(_0x2f2361):_0x2feea9>0x3?_0x377118(_0x2d85ec,_0x551c16,_0x2f2361):_0x377118(_0x2d85ec,_0x551c16))||_0x2f2361);}return _0x2feea9>0x3&&_0x2f2361&&Object[_0xd23448(0x22d)](_0x2d85ec,_0x551c16,_0x2f2361),_0x2f2361;}let L=class extends _0x18377d{constructor(_0x251f6e,_0x3687ee,_0x511450){const _0x15bcaa=_0x217dd1;super(),this[_0x15bcaa(0x235)]=_0x251f6e,this[_0x15bcaa(0x1be)]=_0x3687ee,this[_0x15bcaa(0x20d)]=_0x511450,N(this,_0x15bcaa(0x1b7),new Map()),N(this,_0x15bcaa(0x22f),new Map()),N(this,'_presentationChanged$',new _0x2b03f3()),N(this,_0x15bcaa(0x22a),this[_0x15bcaa(0x19d)][_0x15bcaa(0x1d8)]()),this[_0x15bcaa(0x144)](this[_0x15bcaa(0x1be)]['formulaResult$']['subscribe'](_0x2408ff=>{const _0x16b8ef=_0x15bcaa;for(let _0x4c05f0 of Object[_0x16b8ef(0x20b)](_0x2408ff))for(let _0x5c296a of Object['values'](_0x4c05f0))_0x5c296a[_0x16b8ef(0x1b2)](_0x2bbe96=>this[_0x16b8ef(0x166)](_0x2bbe96));}));}[_0x217dd1(0x1f1)](_0x254804){const _0x5222c4=_0x217dd1;var _0x31fd4e;let _0x4f695e=_0x254804[_0x5222c4(0x18f)](),_0x502059=((_0x31fd4e=_0x254804[_0x5222c4(0x169)]()[_0x5222c4(0x220)])==null||(_0x31fd4e=_0x31fd4e[_0x5222c4(0x210)])==null?void 0x0:_0x31fd4e['filter'](w))??[],_0x46299d=this[_0x5222c4(0x235)][_0x5222c4(0x182)](_0x4f695e),_0x1547f9=new Set();for(let _0x261382 of _0x502059){let _0x1b6560=_0x46299d[_0x261382[_0x5222c4(0x141)]];_0x1b6560&&(_0x1547f9['add'](R(_0x4f695e,_0x261382[_0x5222c4(0x141)])),this['register']({'unitId':_0x4f695e,'rangeId':_0x261382[_0x5222c4(0x141)]},_0x1b6560));}for(let _0x225c99 of Array[_0x5222c4(0x15a)](this[_0x5222c4(0x1b7)]['values']()))_0x225c99[_0x5222c4(0x173)]===_0x4f695e&&!_0x1547f9[_0x5222c4(0x1f5)](R(_0x225c99[_0x5222c4(0x173)],_0x225c99[_0x5222c4(0x141)]))&&this[_0x5222c4(0x214)](_0x225c99);}['register'](_0x555dac,_0x269b98){const _0x417e42=_0x217dd1;let _0x3d0d84=R(_0x555dac[_0x417e42(0x173)],_0x555dac[_0x417e42(0x141)]),_0xa4f0aa=this[_0x417e42(0x1b7)]['get'](_0x3d0d84),_0x2dbd93=this[_0x417e42(0x20d)][_0x417e42(0x22c)](_0x555dac[_0x417e42(0x173)]);if(_0xa4f0aa&&_0xa4f0aa[_0x417e42(0x1ba)]['formula']===_0x269b98[_0x417e42(0x1ab)]&&_0xa4f0aa[_0x417e42(0x1c9)]===_0x2dbd93){_0xa4f0aa[_0x417e42(0x1ba)]=_0x269b98;let _0x1f58c3=_0xa4f0aa[_0x417e42(0x207)]?this[_0x417e42(0x1be)][_0x417e42(0x160)](_0xa4f0aa['unitId'],_0xa4f0aa[_0x417e42(0x173)],_0xa4f0aa[_0x417e42(0x207)])??void 0x0:void 0x0;_0xa4f0aa['liveResult']=_0x1f58c3,this[_0x417e42(0x1ef)](_0x3d0d84,z(_0x269b98,_0x1f58c3));return;}_0xa4f0aa!=null&&_0xa4f0aa[_0x417e42(0x207)]&&this[_0x417e42(0x1c7)](_0xa4f0aa);let _0x39fc2d={..._0x555dac,'config':_0x269b98,'referenceRevision':_0x2dbd93,'presentation':z(_0x269b98,void 0x0)};if(this[_0x417e42(0x1b7)][_0x417e42(0x1a1)](_0x3d0d84,_0x39fc2d),!_0x269b98[_0x417e42(0x1ab)][_0x417e42(0x1de)]())return;let _0x47d19f=this['_registrationService'][_0x417e42(0x18b)](_0x555dac[_0x417e42(0x173)],_0x555dac[_0x417e42(0x173)],_0x269b98[_0x417e42(0x1ab)],void 0x0,{'rangeId':_0x555dac[_0x417e42(0x141)]},_0x3508be[_0x417e42(0x150)],_0x555dac[_0x417e42(0x141)]);_0x39fc2d[_0x417e42(0x207)]=_0x47d19f,this[_0x417e42(0x22f)]['set'](_0x47d19f,_0x3d0d84);}[_0x217dd1(0x214)](_0x16c20f){const _0x1fe2ee=_0x217dd1;let _0x3b9b67=R(_0x16c20f[_0x1fe2ee(0x173)],_0x16c20f['rangeId']),_0x19dffb=this[_0x1fe2ee(0x1b7)][_0x1fe2ee(0x21f)](_0x3b9b67);_0x19dffb&&(this[_0x1fe2ee(0x1c7)](_0x19dffb),this[_0x1fe2ee(0x1b7)]['delete'](_0x3b9b67));}[_0x217dd1(0x17c)](_0x57ecdb){const _0x2a02e7=_0x217dd1;for(let _0x1815e0 of Array[_0x2a02e7(0x15a)](this['_registrations'][_0x2a02e7(0x20b)]()))_0x1815e0[_0x2a02e7(0x173)]===_0x57ecdb&&this[_0x2a02e7(0x214)](_0x1815e0);}[_0x217dd1(0x1b0)](_0x342cbf){const _0x5a5a83=_0x217dd1;var _0xf5ce38;return(_0xf5ce38=this['_registrations'][_0x5a5a83(0x21f)](R(_0x342cbf['unitId'],_0x342cbf[_0x5a5a83(0x141)])))==null?void 0x0:_0xf5ce38[_0x5a5a83(0x231)];}[_0x217dd1(0x23c)](_0x536b28){const _0x473d8a=_0x217dd1;let _0x5b1984=this['_registrations']['get'](R(_0x536b28[_0x473d8a(0x173)],_0x536b28['rangeId']));return _0x5b1984?B(_0x5b1984):void 0x0;}[_0x217dd1(0x205)](){const _0x208425=_0x217dd1;return Array[_0x208425(0x15a)](this[_0x208425(0x1b7)][_0x208425(0x20b)](),_0xb547ef=>({'identity':{'unitId':_0xb547ef[_0x208425(0x173)],'rangeId':_0xb547ef['rangeId']},'config':_0xb547ef[_0x208425(0x1ba)],'referenceRevision':_0xb547ef['referenceRevision'],..._0xb547ef[_0x208425(0x202)]?{'liveResult':_0xb547ef[_0x208425(0x202)]}:null}));}[_0x217dd1(0x15c)](){const _0x116a3b=_0x217dd1;for(let _0x38620a of this[_0x116a3b(0x1b7)][_0x116a3b(0x20b)]())this['_deleteRegistration'](_0x38620a);this[_0x116a3b(0x1b7)][_0x116a3b(0x21d)](),this[_0x116a3b(0x22f)][_0x116a3b(0x21d)](),this[_0x116a3b(0x19d)][_0x116a3b(0x226)](),super[_0x116a3b(0x15c)]();}['_updateFormulaResult'](_0x59dc5b){const _0xe14cf3=_0x217dd1;let _0x15e207=this['_formulaKeys']['get'](_0x59dc5b[_0xe14cf3(0x207)]),_0x34670a=_0x15e207?this[_0xe14cf3(0x1b7)]['get'](_0x15e207):void 0x0;_0x15e207&&_0x34670a&&(_0x34670a[_0xe14cf3(0x202)]=_0x59dc5b,this[_0xe14cf3(0x1ef)](_0x15e207,z(_0x34670a['config'],_0x59dc5b)));}[_0x217dd1(0x1ef)](_0x1448e4,_0x5ba641){const _0x2c47c1=_0x217dd1;var _0x1d4feb,_0x568f60;let _0x5e66d2=this[_0x2c47c1(0x1b7)][_0x2c47c1(0x21f)](_0x1448e4);if(!_0x5e66d2||at(_0x5e66d2['presentation'],_0x5ba641))return;let _0x2d8042=_0x5e66d2[_0x2c47c1(0x231)],_0x19b738=B(_0x5e66d2);_0x5e66d2[_0x2c47c1(0x231)]=_0x5ba641,this['_presentationChanged$']['next']({'unitId':_0x5e66d2['unitId'],'rangeId':_0x5e66d2['rangeId'],'presentation':_0x5ba641,'previousPresentation':_0x2d8042,'result':B(_0x5e66d2),'previousResult':{..._0x19b738,..._0x2d8042,'value':(_0x1d4feb=_0x2d8042[_0x2c47c1(0x215)])==null?void 0x0:_0x1d4feb['v'],'valueType':((_0x568f60=_0x2d8042[_0x2c47c1(0x215)])==null?void 0x0:_0x568f60['t'])??void 0x0}});}['_deleteRegistration'](_0x55fa65){const _0x476df7=_0x217dd1;_0x55fa65[_0x476df7(0x207)]&&(this[_0x476df7(0x1be)]['deleteFormula'](_0x55fa65[_0x476df7(0x173)],_0x55fa65[_0x476df7(0x173)],[_0x55fa65[_0x476df7(0x207)]]),this[_0x476df7(0x22f)]['delete'](_0x55fa65[_0x476df7(0x207)]));}};L=I([F(0x0,_0x5e32df(P)),F(0x1,_0x5e32df(_0x51a6f6)),F(0x2,_0x5e32df(_0x506168))],L);function R(_0x18772e,_0x28f0f2){return _0x18772e+'\x00'+_0x28f0f2;}function z(_0x459b85,_0x3b34d1){const _0x3b3a83=_0x217dd1;return _0x27458f({'numberFormat':_0x459b85[_0x3b3a83(0x179)],'lastValue':_0x459b85[_0x3b3a83(0x1da)],'result':_0x3b34d1});}function B(_0x141c86){const _0x43b9f2=_0x217dd1;var _0x33f299,_0x1a2f7c,_0x5c9900;let _0x1ed6e2=_0x141c86[_0x43b9f2(0x231)],_0xad2909=_0x141c86[_0x43b9f2(0x1ba)][_0x43b9f2(0x1ab)][_0x43b9f2(0x1de)]()?_0x1ed6e2[_0x43b9f2(0x19c)]||_0x1ed6e2[_0x43b9f2(0x215)]==null?'pending':((_0x33f299=_0x141c86[_0x43b9f2(0x202)])==null?void 0x0:_0x33f299[_0x43b9f2(0x17b)])===_0x5815e0['ERROR']?_0x43b9f2(0x167):_0x43b9f2(0x20f):'empty';return{..._0x1ed6e2,'status':_0xad2909,'value':(_0x1a2f7c=_0x1ed6e2[_0x43b9f2(0x215)])==null?void 0x0:_0x1a2f7c['v'],'valueType':((_0x5c9900=_0x1ed6e2[_0x43b9f2(0x215)])==null?void 0x0:_0x5c9900['t'])??void 0x0};}function at(_0xe820e3,_0x41b29d){const _0x3376d6=_0x217dd1;var _0x3ee1d9,_0x547706,_0x401ee5,_0x1f132d;return _0xe820e3[_0x3376d6(0x201)]===_0x41b29d['text']&&_0xe820e3['color']===_0x41b29d[_0x3376d6(0x233)]&&_0xe820e3[_0x3376d6(0x228)]===_0x41b29d[_0x3376d6(0x228)]&&_0xe820e3[_0x3376d6(0x20a)]===_0x41b29d[_0x3376d6(0x20a)]&&_0xe820e3[_0x3376d6(0x19c)]===_0x41b29d[_0x3376d6(0x19c)]&&((_0x3ee1d9=_0xe820e3[_0x3376d6(0x215)])==null?void 0x0:_0x3ee1d9['t'])===((_0x547706=_0x41b29d[_0x3376d6(0x215)])==null?void 0x0:_0x547706['t'])&&Object['is']((_0x401ee5=_0xe820e3['cell'])==null?void 0x0:_0x401ee5['v'],(_0x1f132d=_0x41b29d[_0x3376d6(0x215)])==null?void 0x0:_0x1f132d['v']);}const ot={'id':'docs-formula.mutation.set-formula','type':_0x5f1099[_0x217dd1(0x19b)],'handler':(_0x49cd6d,_0x18c1b7)=>!(_0x18c1b7!=null&&_0x18c1b7[_0x217dd1(0x173)])||!_0x18c1b7['rangeId']||!_0x18c1b7[_0x217dd1(0x1ba)]?!0x1:_0x49cd6d[_0x217dd1(0x21f)](P)[_0x217dd1(0x1db)](_0x18c1b7[_0x217dd1(0x173)],_0x18c1b7[_0x217dd1(0x141)],_0x18c1b7[_0x217dd1(0x1ba)])},st={'id':_0x217dd1(0x154),'type':_0x5f1099[_0x217dd1(0x19b)],'handler':(_0x348999,_0xf1e64d)=>!(_0xf1e64d!=null&&_0xf1e64d['unitId'])||!_0xf1e64d['rangeId']?!0x1:_0x348999[_0x217dd1(0x21f)](P)[_0x217dd1(0x1bc)](_0xf1e64d['unitId'],_0xf1e64d[_0x217dd1(0x141)])},V={'id':_0x217dd1(0x168),'type':_0x5f1099[_0x217dd1(0x19b)],'handler':(_0x478f0a,_0x431c74)=>!(_0x431c74!=null&&_0x431c74['unitId'])||!_0x431c74['resource']?!0x1:_0x478f0a['get'](P)[_0x217dd1(0x1bd)](_0x431c74[_0x217dd1(0x173)],_0x431c74[_0x217dd1(0x19f)])},H={'id':_0x217dd1(0x1ad),'type':_0x5f1099[_0x217dd1(0x19b)],'handler':(_0x4fadbf,_0x268f37)=>{const _0x5efcfd=_0x217dd1;if(!(_0x268f37!=null&&_0x268f37[_0x5efcfd(0x173)])||!_0x268f37[_0x5efcfd(0x158)]['length'])return!0x1;let _0x316e60=_0x4fadbf['get'](P),_0x5e4d34=_0x4fadbf[_0x5efcfd(0x21f)](_0x506168),_0x552fe2=_0x316e60[_0x5efcfd(0x1fa)](_0x268f37[_0x5efcfd(0x173)]);if(!_0x552fe2)return!0x1;let _0x4608ac=_0x4b0aab[_0x5efcfd(0x1c3)](_0x552fe2),_0x2d48ac=!0x1;for(let _0x30beaf of _0x268f37[_0x5efcfd(0x158)]){var _0x436b9c,_0x153ba7,_0x139e1c,_0x9e0788;let _0x2e9c01=_0x4608ac[_0x5efcfd(0x1d7)][_0x30beaf[_0x5efcfd(0x141)]];_0x2e9c01&&_0x2e9c01[_0x5efcfd(0x1ab)]===_0x30beaf[_0x5efcfd(0x175)]&&((_0x436b9c=_0x2e9c01[_0x5efcfd(0x179)])==null?void 0x0:_0x436b9c[_0x5efcfd(0x228)])===_0x30beaf[_0x5efcfd(0x1f0)]&&_0x5e4d34[_0x5efcfd(0x22c)](_0x268f37['unitId'])===_0x30beaf[_0x5efcfd(0x17d)]&&(((_0x153ba7=_0x2e9c01[_0x5efcfd(0x1da)])==null?void 0x0:_0x153ba7['v'])!==_0x30beaf[_0x5efcfd(0x1da)]['v']||((_0x139e1c=_0x2e9c01[_0x5efcfd(0x1da)])==null?void 0x0:_0x139e1c['t'])!==_0x30beaf[_0x5efcfd(0x1da)]['t']||((_0x9e0788=_0x2e9c01[_0x5efcfd(0x1da)])==null?void 0x0:_0x9e0788[_0x5efcfd(0x228)])!==_0x30beaf['lastValue']['pattern'])&&(_0x2e9c01[_0x5efcfd(0x1da)]=_0x4b0aab[_0x5efcfd(0x1c3)](_0x30beaf[_0x5efcfd(0x1da)]),_0x2d48ac=!0x0);}return!_0x2d48ac||_0x316e60[_0x5efcfd(0x1bd)](_0x268f37[_0x5efcfd(0x173)],_0x4608ac);}},U={'id':_0x217dd1(0x238),'type':_0x5f1099[_0x217dd1(0x223)],'handler':(_0x1fba9b,_0x464972)=>{const _0x469fcd=_0x217dd1;if(!(_0x464972!=null&&_0x464972['formula'][_0x469fcd(0x1de)]()))return!0x1;let _0x229c5d=q(_0x1fba9b,_0x464972[_0x469fcd(0x173)],'');if(!_0x229c5d)return!0x1;let _0x12cb1c=ft(_0x464972[_0x469fcd(0x21a)],_0x229c5d[_0x469fcd(0x220)],dt(_0x1fba9b,_0x229c5d[_0x469fcd(0x173)]));if(!_0x12cb1c)return!0x1;let _0x3a81a2=pt(_0x1fba9b,_0x229c5d[_0x469fcd(0x173)],_0x464972[_0x469fcd(0x1ab)],_0x464972[_0x469fcd(0x204)]??[]);if(!_0x3a81a2)return!0x1;let _0x8c713e=mt(_0x229c5d['body'],_0x229c5d[_0x469fcd(0x23a)],_0x229c5d[_0x469fcd(0x173)]),_0x29ca7f=ht({'documentData':_0x229c5d[_0x469fcd(0x194)],'resource':_0x229c5d[_0x469fcd(0x19f)],'rangeId':_0x8c713e,'config':{'formula':_0x464972[_0x469fcd(0x1ab)],..._0x464972['numberFormat']?{'numberFormat':_0x464972[_0x469fcd(0x179)]}:null},'startOffset':_0x12cb1c[_0x469fcd(0x1c6)],'endOffset':_0x12cb1c[_0x469fcd(0x172)]});if(!_0x29ca7f)return!0x1;let _0x39d7eb=_0x41a736(_0x1fba9b,_0x229c5d[_0x469fcd(0x173)],_0x3a81a2);return!_0x39d7eb||!J({'accessor':_0x1fba9b,'document':_0x229c5d['document'],'unitId':_0x229c5d['unitId'],'trigger':U['id'],'rangeId':_0x8c713e,'previousResource':_0x229c5d[_0x469fcd(0x19f)],'nextResource':_0x29ca7f[_0x469fcd(0x159)],'previousDocumentData':_0x229c5d['documentData'],'nextDocumentData':_0x29ca7f['nextDocumentData'],'cursorOffset':_0x29ca7f['cursorOffset'],'externalMutations':_0x39d7eb})?!0x1:{'rangeId':_0x8c713e,'startOffset':_0x29ca7f[_0x469fcd(0x1d2)]-0x1,'endOffset':_0x29ca7f[_0x469fcd(0x1d2)]};}},W={'id':_0x217dd1(0x1b3),'type':_0x5f1099[_0x217dd1(0x223)],'handler':(_0x4e6f81,_0x1f26cb)=>{const _0x36b63d=_0x217dd1;if(!(_0x1f26cb!=null&&_0x1f26cb['rangeId'])||!_0x1f26cb['formula'][_0x36b63d(0x1de)]())return!0x1;let _0x40727e=q(_0x4e6f81,_0x1f26cb[_0x36b63d(0x173)],''),_0x192b27=_0x40727e==null?void 0x0:_0x40727e['model'][_0x36b63d(0x213)](_0x40727e[_0x36b63d(0x173)],_0x1f26cb[_0x36b63d(0x141)]),_0x1952e7=_0x40727e?T(_0x40727e[_0x36b63d(0x194)][_0x36b63d(0x220)],_0x1f26cb['rangeId']):void 0x0;if(!_0x40727e||!_0x192b27||!_0x1952e7)return!0x1;let _0x32178c=pt(_0x4e6f81,_0x40727e['unitId'],_0x1f26cb[_0x36b63d(0x1ab)],_0x1f26cb['externalReferences']??[]);if(!_0x32178c)return!0x1;let _0x471594=_0x41a736(_0x4e6f81,_0x40727e[_0x36b63d(0x173)],_0x32178c);if(!_0x471594)return!0x1;let _0x14d5a1=Ct(_0x40727e[_0x36b63d(0x19f)]);return _0x14d5a1['formulas'][_0x1f26cb[_0x36b63d(0x141)]]={'formula':_0x1f26cb[_0x36b63d(0x1ab)],..._0x1f26cb[_0x36b63d(0x179)]?{'numberFormat':_0x1f26cb[_0x36b63d(0x179)]}:_0x192b27[_0x36b63d(0x179)]?{'numberFormat':_0x192b27[_0x36b63d(0x179)]}:null},J({'accessor':_0x4e6f81,'document':_0x40727e['document'],'unitId':_0x40727e[_0x36b63d(0x173)],'trigger':W['id'],'rangeId':_0x1f26cb[_0x36b63d(0x141)],'previousResource':_0x40727e[_0x36b63d(0x19f)],'nextResource':_0x14d5a1,'cursorOffset':_0x1952e7[_0x36b63d(0x1fc)]+0x1,'externalMutations':_0x471594});}},G={'id':'docs-formula.command.set-number-format','type':_0x5f1099[_0x217dd1(0x223)],'handler':(_0x3db119,_0xdc2de0)=>{const _0x2b584b=_0x217dd1;if(!(_0xdc2de0!=null&&_0xdc2de0[_0x2b584b(0x141)]))return!0x1;let _0x4f65f0=q(_0x3db119,_0xdc2de0[_0x2b584b(0x173)],''),_0x1d0900=_0x4f65f0==null?void 0x0:_0x4f65f0['model'][_0x2b584b(0x213)](_0x4f65f0['unitId'],_0xdc2de0[_0x2b584b(0x141)]),_0x44e61d=_0x4f65f0?T(_0x4f65f0[_0x2b584b(0x194)][_0x2b584b(0x220)],_0xdc2de0[_0x2b584b(0x141)]):void 0x0;if(!_0x4f65f0||!_0x1d0900||!_0x44e61d)return!0x1;let _0x1017d6=Ct(_0x4f65f0['resource']);return _0x1017d6[_0x2b584b(0x1d7)][_0xdc2de0[_0x2b584b(0x141)]]={..._0x1d0900,..._0xdc2de0['numberFormat']?{'numberFormat':_0xdc2de0[_0x2b584b(0x179)]}:null},_0xdc2de0[_0x2b584b(0x179)]||delete _0x1017d6['formulas'][_0xdc2de0[_0x2b584b(0x141)]][_0x2b584b(0x179)],J({'accessor':_0x3db119,'document':_0x4f65f0[_0x2b584b(0x211)],'unitId':_0x4f65f0[_0x2b584b(0x173)],'trigger':G['id'],'rangeId':_0xdc2de0[_0x2b584b(0x141)],'previousResource':_0x4f65f0[_0x2b584b(0x19f)],'nextResource':_0x1017d6,'cursorOffset':_0x44e61d['endIndex']+0x1,'externalMutations':{}});}},K={'id':_0x217dd1(0x1dd),'type':_0x5f1099['COMMAND'],'handler':(_0x22cdf3,_0xec8d54)=>ut(_0x22cdf3,_0xec8d54,'',K['id'])},ct={'id':_0x217dd1(0x1aa),'type':_0x5f1099[_0x217dd1(0x223)],'handler':(_0x48d800,_0x3d2569)=>ut(_0x48d800,_0x3d2569,(_0x3d2569==null?void 0x0:_0x3d2569[_0x217dd1(0x201)])??'',ct['id'])},lt={'id':'docs-formula.command.convert-to-text','type':_0x5f1099[_0x217dd1(0x223)],'handler':(_0x51c21b,_0x57372a)=>{const _0x227a9e=_0x217dd1;if(!(_0x57372a!=null&&_0x57372a[_0x227a9e(0x141)]))return!0x1;let _0x2271ea=q(_0x51c21b,_0x57372a[_0x227a9e(0x173)],'');if(!_0x2271ea)return!0x1;let _0x46213e=_0x51c21b['get'](L)[_0x227a9e(0x23c)]({'unitId':_0x2271ea[_0x227a9e(0x173)],'rangeId':_0x57372a[_0x227a9e(0x141)]});return _0x46213e?ut(_0x51c21b,_0x57372a,_0x46213e[_0x227a9e(0x201)],lt['id']):!0x1;}};function ut(_0xc3b228,_0xab10db,_0xd7d583,_0x3bc059){const _0x2e0167=_0x217dd1;if(!(_0xab10db!=null&&_0xab10db[_0x2e0167(0x141)]))return!0x1;let _0x5ccbaf=q(_0xc3b228,_0xab10db['unitId'],'');if(!_0x5ccbaf)return!0x1;let _0x182d1b=Be({'documentData':_0x5ccbaf[_0x2e0167(0x194)],'resource':_0x5ccbaf[_0x2e0167(0x19f)],'rangeId':_0xab10db[_0x2e0167(0x141)],'text':_0xd7d583});return _0x182d1b?J({'accessor':_0xc3b228,'document':_0x5ccbaf['document'],'unitId':_0x5ccbaf[_0x2e0167(0x173)],'trigger':_0x3bc059,'rangeId':_0xab10db[_0x2e0167(0x141)],'previousResource':_0x5ccbaf[_0x2e0167(0x19f)],'nextResource':_0x182d1b[_0x2e0167(0x159)],'previousDocumentData':_0x5ccbaf[_0x2e0167(0x194)],'nextDocumentData':_0x182d1b[_0x2e0167(0x1f6)],'cursorOffset':_0x182d1b[_0x2e0167(0x1d2)],'externalMutations':{}}):!0x1;}function q(_0x231c7d,_0x162016,_0x4f1995){const _0x2302a7=_0x217dd1;if(_0x4f1995)return null;let _0x465657=_0x231c7d['get'](_0x147b46),_0x288d4a=(_0x162016?_0x465657['getUnit'](_0x162016,_0x138c8e['UNIVER_DOC']):_0x465657[_0x2302a7(0x1af)](_0x138c8e[_0x2302a7(0x17f)]))??null;if(!_0x288d4a)return null;let _0x8bae47=_0x288d4a['getSnapshot'](),_0x354ddc=_0x8bae47[_0x2302a7(0x220)];if(_0x8bae47[_0x2302a7(0x1c1)]||!_0x354ddc)return null;let _0x1a5c62=_0x231c7d[_0x2302a7(0x21f)](P);return _0x1a5c62['getLoadError'](_0x288d4a[_0x2302a7(0x18f)]())?null:{'document':_0x288d4a,'body':_0x354ddc,'documentData':_0x8bae47,'model':_0x1a5c62,'resource':_0x1a5c62[_0x2302a7(0x1fa)](_0x288d4a[_0x2302a7(0x18f)]())??b(),'unitId':_0x288d4a['getUnitId']()};}function dt(_0x36ca56,_0x2c5267){const _0x5ad5db=_0x217dd1;var _0x2ac5ac;return(_0x2ac5ac=_0x36ca56[_0x5ad5db(0x21f)](_0x3e1e55)['getTextRanges']({'subUnitId':_0x2c5267,'unitId':_0x2c5267}))==null?void 0x0:_0x2ac5ac[0x0];}function ft(_0x162316,_0x4065b0,_0x417eb6){const _0x7ac5b7=_0x217dd1;if((_0x162316==null?void 0x0:_0x162316[_0x7ac5b7(0x1fe)])===_0x7ac5b7(0x15e)){var _0x59cf6d;let _0x37e37f=((_0x59cf6d=_0x4065b0[_0x7ac5b7(0x18c)])==null?void 0x0:_0x59cf6d[_0x7ac5b7(0x1a5)](_0x12e31c=>_0x12e31c[_0x7ac5b7(0x230)]===_0x162316[_0x7ac5b7(0x230)]))??[];if(_0x37e37f[_0x7ac5b7(0x171)]!==0x1)return null;let _0x28e1c5=_0x37e37f[0x0],_0x428d4d=_0x480edf(_0x4065b0,_0x28e1c5),_0x51ca3a=_0x28e1c5['startIndex']-_0x428d4d,_0x569bbc=_0x162316[_0x7ac5b7(0x161)]==='end'?_0x51ca3a:_0x162316[_0x7ac5b7(0x161)];if(!Number[_0x7ac5b7(0x14a)](_0x569bbc)||_0x569bbc<0x0||_0x569bbc>_0x51ca3a)return null;let _0x4dc413=_0x428d4d+_0x569bbc;return{'startOffset':_0x4dc413,'endOffset':_0x4dc413};}if((_0x162316==null?void 0x0:_0x162316[_0x7ac5b7(0x1fe)])===_0x7ac5b7(0x203))return!Number['isInteger'](_0x162316[_0x7ac5b7(0x1c6)])||!Number['isInteger'](_0x162316[_0x7ac5b7(0x172)])?null:{'startOffset':Math[_0x7ac5b7(0x197)](_0x162316[_0x7ac5b7(0x1c6)],_0x162316[_0x7ac5b7(0x172)]),'endOffset':Math[_0x7ac5b7(0x14c)](_0x162316[_0x7ac5b7(0x1c6)],_0x162316[_0x7ac5b7(0x172)])};let _0x4c53e7=(_0x162316==null?void 0x0:_0x162316[_0x7ac5b7(0x1fe)])===_0x7ac5b7(0x1bf)?_0x162316[_0x7ac5b7(0x1bf)]:_0x417eb6;return!_0x4c53e7||_0x4c53e7[_0x7ac5b7(0x1a4)]?null:{'startOffset':Math[_0x7ac5b7(0x197)](_0x4c53e7[_0x7ac5b7(0x1c6)],_0x4c53e7['endOffset']),'endOffset':Math[_0x7ac5b7(0x14c)](_0x4c53e7['startOffset'],_0x4c53e7[_0x7ac5b7(0x172)])};}function pt(_0x4abf9e,_0x3e2fb5,_0x360d04,_0x281269){const _0x529894=_0x217dd1;let _0x3d4ca6=_0x4abf9e[_0x529894(0x21f)](_0x3a97e6),_0x1d0b5d=_0x360d04[_0x529894(0x1b5)]('=')?_0x360d04[_0x529894(0x15f)](0x1):_0x360d04,_0x36a637=_0x3d4ca6['sequenceNodesBuilder'](_0x1d0b5d);if(!_0x36a637)return null;let _0x8fa8a6=_0x4abf9e[_0x529894(0x21f)](_0x506168),_0x3921f7=_0x4805eb({'qualifiers':_0x7f61b(_0x36a637),'explicitReferences':_0x281269??[],'resolveBinding':_0x366cb6=>_0x8fa8a6[_0x529894(0x19e)](_0x3e2fb5,_0x366cb6)});return _0x3921f7[_0x529894(0x17b)]===_0x529894(0x180)?_0x3921f7[_0x529894(0x17a)]:null;}function mt(_0x51fba5,_0x35c5fd,_0x38511f){const _0xf5248=_0x217dd1;var _0x28146e;let _0x4cc709=_0x25429d(0x6);for(;_0x51fba5!=null&&(_0x28146e=_0x51fba5[_0xf5248(0x210)])!=null&&_0x28146e[_0xf5248(0x196)](_0x1893ff=>_0x1893ff[_0xf5248(0x141)]===_0x4cc709)||_0x35c5fd[_0xf5248(0x213)](_0x38511f,_0x4cc709);)_0x4cc709=_0x25429d(0x6);return _0x4cc709;}function ht(_0x53242e){try{return Re(_0x53242e);}catch(_0x32047a){if(_0x32047a instanceof C)return null;throw _0x32047a;}}function gt(_0x5ecc5e){const _0x1a0c03=_0x217dd1;let _0x577fe7=_0x5ecc5e[_0x1a0c03(0x152)]&&_0x5ecc5e['nextDocumentData']?vt(_0x5ecc5e[_0x1a0c03(0x211)],_0x5ecc5e[_0x1a0c03(0x173)],_0x5ecc5e['previousDocumentData'],_0x5ecc5e[_0x1a0c03(0x1f6)],_0x5ecc5e[_0x1a0c03(0x1d2)],_0x5ecc5e[_0x1a0c03(0x14b)]):null;return _0x5ecc5e[_0x1a0c03(0x152)]&&_0x5ecc5e[_0x1a0c03(0x1f6)]&&!_0x577fe7?null:{'documentRedo':_0x577fe7,'resourceRedo':{'id':V['id'],'params':{'unitId':_0x5ecc5e[_0x1a0c03(0x173)],'resource':_0x5ecc5e[_0x1a0c03(0x159)]}},'resourceUndo':{'id':V['id'],'params':{'unitId':_0x5ecc5e[_0x1a0c03(0x173)],'resource':_0x5ecc5e[_0x1a0c03(0x142)]}}};}function _t(_0x9e71fd,_0x515445,_0x1d62d5,_0x4959d0){const _0x426dbf=_0x217dd1;_0x4959d0[_0x426dbf(0x151)]({'id':_0x9e71fd[_0x426dbf(0x14b)]+':'+_0x9e71fd[_0x426dbf(0x141)],'unitID':_0x9e71fd[_0x426dbf(0x173)],'redoMutations':[..._0x9e71fd['externalMutations'][_0x426dbf(0x16a)]?[_0x9e71fd['externalMutations'][_0x426dbf(0x16a)]]:[],..._0x515445[_0x426dbf(0x18d)]?[_0x515445[_0x426dbf(0x18d)]]:[],_0x515445['resourceRedo']],'undoMutations':[_0x515445['resourceUndo'],..._0x1d62d5?[_0x1d62d5]:[],..._0x9e71fd['externalMutations'][_0x426dbf(0x1a8)]?[_0x9e71fd[_0x426dbf(0x15b)][_0x426dbf(0x1a8)]]:[]]});}function J(_0x1f5cab){const _0x6ef4da=_0x217dd1;let _0x3d5518=_0x1f5cab[_0x6ef4da(0x219)][_0x6ef4da(0x21f)](_0x41c106),_0x47de34=_0x1f5cab[_0x6ef4da(0x219)][_0x6ef4da(0x21f)](_0xe640ba),_0x2e906d=_0x1f5cab['accessor'][_0x6ef4da(0x21f)](_0x3e1e55),_0x242dee=gt(_0x1f5cab);if(!_0x242dee)return!0x1;let _0x89a549=!0x1,_0x8193fd=null,_0x4a3ad3=!0x1;try{if(_0x1f5cab['externalMutations']['redoMutation']){if(!_0x3d5518[_0x6ef4da(0x170)](_0x1f5cab[_0x6ef4da(0x15b)][_0x6ef4da(0x16a)]['id'],_0x1f5cab[_0x6ef4da(0x15b)]['redoMutation']['params']))return!0x1;_0x89a549=!0x0;}if(_0x242dee['documentRedo']){let _0x3b918c=_0x3d5518[_0x6ef4da(0x170)](_0x242dee[_0x6ef4da(0x18d)]['id'],_0x242dee[_0x6ef4da(0x18d)]['params']);if(!_0x3b918c)return bt(_0x3d5518,_0x1f5cab[_0x6ef4da(0x15b)],_0x89a549),!0x1;_0x8193fd={'id':_0x2dc975['id'],'params':{..._0x3b918c,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x3d5518['syncExecuteCommand'](_0x242dee['resourceRedo']['id'],_0x242dee[_0x6ef4da(0x1cc)][_0x6ef4da(0x198)]))return yt(_0x3d5518,_0x8193fd),bt(_0x3d5518,_0x1f5cab[_0x6ef4da(0x15b)],_0x89a549),!0x1;_0x4a3ad3=!0x0,_t(_0x1f5cab,_0x242dee,_0x8193fd,_0x47de34);}catch(_0x2ae161){throw _0x4a3ad3&&_0x3d5518[_0x6ef4da(0x170)](_0x242dee[_0x6ef4da(0x187)]['id'],_0x242dee[_0x6ef4da(0x187)][_0x6ef4da(0x198)]),yt(_0x3d5518,_0x8193fd),bt(_0x3d5518,_0x1f5cab['externalMutations'],_0x89a549),_0x2ae161;}return _0x2e906d[_0x6ef4da(0x1d0)]([{'startOffset':_0x1f5cab[_0x6ef4da(0x1d2)],'endOffset':_0x1f5cab['cursorOffset'],'segmentId':''}],{'unitId':_0x1f5cab[_0x6ef4da(0x173)],'subUnitId':_0x1f5cab['unitId']},!0x1,{[_0x173f0a]:!0x0}),!0x0;}function vt(_0x2be42c,_0x38a912,_0x11c169,_0x26e643,_0x29eae8,_0x586681){let _0x4782ba=xt(_0x11c169,_0x26e643,_0x2ed637(_0x2be42c,''));return _0x4782ba?{'id':_0x2dc975['id'],'params':{'unitId':_0x38a912,'actions':_0x4782ba,'segmentId':'','textRanges':[{'startOffset':_0x29eae8,'endOffset':_0x29eae8,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x586681}}:null;}function yt(_0x51be1e,_0x2912cb){const _0x3de5b3=_0x217dd1;_0x2912cb&&_0x51be1e[_0x3de5b3(0x170)](_0x2912cb['id'],_0x2912cb[_0x3de5b3(0x198)]);}function bt(_0x1fe2ff,_0x14ec56,_0x1fba62){const _0xf63ce=_0x217dd1;_0x1fba62&&_0x14ec56[_0xf63ce(0x1a8)]&&_0x1fe2ff[_0xf63ce(0x170)](_0x14ec56['undoMutation']['id'],_0x14ec56['undoMutation']['params']);}function xt(_0x52e1aa,_0x1070a5,_0x58a1f4){const _0x22e9fe=_0x217dd1;let _0x4e106a=_0x52e1aa[_0x22e9fe(0x220)],_0x358ee7=_0x1070a5['body'],_0x43a1ae=St(_0x4e106a==null?void 0x0:_0x4e106a['dataStream'],_0x358ee7==null?void 0x0:_0x358ee7[_0x22e9fe(0x153)]);if(!_0x43a1ae||!_0x358ee7)return null;let _0x9c6f50=new _0x52174a();return _0x9c6f50['retain'](_0x43a1ae['start']),_0x43a1ae[_0x22e9fe(0x1f9)]>0x0&&_0x9c6f50[_0x22e9fe(0x239)](_0x43a1ae[_0x22e9fe(0x1f9)],_0x252b2a(_0x358ee7,_0x43a1ae[_0x22e9fe(0x1a0)],_0x43a1ae[_0x22e9fe(0x1a0)]+_0x43a1ae['insertLength'],!0x1)),_0x43a1ae['deleteLength']>0x0&&_0x9c6f50[_0x22e9fe(0x1bb)](_0x43a1ae['deleteLength']),_0x267617[_0x22e9fe(0x17e)]()['editOp'](_0x9c6f50['serialize'](),_0x58a1f4);}function St(_0x3bda0e,_0xea8adb){const _0x1ccf97=_0x217dd1;if(_0x3bda0e==null||_0xea8adb==null||_0x3bda0e===_0xea8adb)return null;let _0x459067=0x0;for(;_0x459067<_0x3bda0e[_0x1ccf97(0x171)]&&_0x459067<_0xea8adb[_0x1ccf97(0x171)]&&_0x3bda0e[_0x459067]===_0xea8adb[_0x459067];)_0x459067+=0x1;let _0x25635e=_0x3bda0e[_0x1ccf97(0x171)],_0x69166a=_0xea8adb[_0x1ccf97(0x171)];for(;_0x25635e>_0x459067&&_0x69166a>_0x459067&&_0x3bda0e[_0x25635e-0x1]===_0xea8adb[_0x69166a-0x1];)--_0x25635e,--_0x69166a;return{'start':_0x459067,'deleteLength':_0x25635e-_0x459067,'insertLength':_0x69166a-_0x459067};}function Ct(_0x13e995){const _0x4bfcc2=_0x217dd1;return{'schemaVersion':0x1,'formulas':Object[_0x4bfcc2(0x225)](Object[_0x4bfcc2(0x183)](_0x13e995['formulas'])[_0x4bfcc2(0x164)](([_0x3cc414,_0x56caf2])=>[_0x3cc414,{..._0x56caf2,..._0x56caf2[_0x4bfcc2(0x179)]?{'numberFormat':{..._0x56caf2[_0x4bfcc2(0x179)]}}:null,..._0x56caf2[_0x4bfcc2(0x1da)]?{'lastValue':{..._0x56caf2[_0x4bfcc2(0x1da)]}}:null}]))};}let Y=class extends _0x18377d{constructor(_0x34e44e,_0x1dd4ab,_0x4f58af,_0x48cbd1){const _0x2a5abf=_0x217dd1;super(),this['_instanceService']=_0x34e44e,this[_0x2a5abf(0x1cf)]=_0x1dd4ab,this[_0x2a5abf(0x235)]=_0x4f58af,this[_0x2a5abf(0x1fb)]=_0x48cbd1,N(this,_0x2a5abf(0x1ee),new Set()),N(this,_0x2a5abf(0x189),!0x1),N(this,_0x2a5abf(0x229),!0x1),this[_0x2a5abf(0x162)][_0x2a5abf(0x147)](_0x138c8e[_0x2a5abf(0x17f)])[_0x2a5abf(0x1b2)](_0x519d67=>this[_0x2a5abf(0x1fb)][_0x2a5abf(0x1f1)](_0x519d67)),this['disposeWithMe'](this[_0x2a5abf(0x235)][_0x2a5abf(0x221)][_0x2a5abf(0x1ca)](({unitId:_0x5e642e})=>this[_0x2a5abf(0x1ff)](_0x5e642e))),this[_0x2a5abf(0x144)](this['_instanceService']['unitAdded$'][_0x2a5abf(0x1ca)](({unit:_0x453977})=>{const _0x5adab8=_0x2a5abf;_0x453977[_0x5adab8(0x1fe)]===_0x138c8e[_0x5adab8(0x17f)]&&this[_0x5adab8(0x184)](_0x453977['getUnitId']());})),this[_0x2a5abf(0x144)](this[_0x2a5abf(0x162)][_0x2a5abf(0x165)][_0x2a5abf(0x1ca)](_0x473bc1=>{const _0x4c5b09=_0x2a5abf;this[_0x4c5b09(0x1fb)][_0x4c5b09(0x17c)](_0x473bc1[_0x4c5b09(0x18f)]());})),this[_0x2a5abf(0x144)](this[_0x2a5abf(0x1cf)][_0x2a5abf(0x1ec)](_0x3dc0fa=>{const _0x2b81db=_0x2a5abf;if(_0x3dc0fa['id']===_0x2dc975['id']&&wt(_0x3dc0fa[_0x2b81db(0x198)])){let _0x1112e9=_0x3dc0fa['params'];_0x1112e9[_0x2b81db(0x1a4)]||this[_0x2b81db(0x1ff)](_0x1112e9[_0x2b81db(0x173)]);}}));}[_0x217dd1(0x15c)](){const _0x233b29=_0x217dd1;this[_0x233b29(0x229)]=!0x0,super[_0x233b29(0x15c)]();}[_0x217dd1(0x184)](_0x3ccb93){const _0x6117f8=_0x217dd1;this[_0x6117f8(0x1ee)][_0x6117f8(0x1e2)](_0x3ccb93),!this[_0x6117f8(0x189)]&&(this[_0x6117f8(0x189)]=!0x0,queueMicrotask(()=>{const _0x374227=_0x6117f8;if(this[_0x374227(0x189)]=!0x1,this[_0x374227(0x229)])return;let _0x543600=Array[_0x374227(0x15a)](this['_pendingUnitIds']);this[_0x374227(0x1ee)][_0x374227(0x21d)](),_0x543600['forEach'](_0x4f0e70=>this[_0x374227(0x1ff)](_0x4f0e70));}));}['_syncUnit'](_0xf760cc){const _0x48a762=_0x217dd1;let _0x5950f7=this['_instanceService'][_0x48a762(0x16c)](_0xf760cc,_0x138c8e['UNIVER_DOC']);_0x5950f7&&this[_0x48a762(0x1fb)][_0x48a762(0x1f1)](_0x5950f7);}};Y=I([F(0x0,_0x147b46),F(0x1,_0x41c106),F(0x2,_0x5e32df(P)),F(0x3,_0x5e32df(L))],Y);function wt(_0x197089){const _0x5d4dd7=_0x217dd1;return typeof _0x197089==_0x5d4dd7(0x1ea)&&!!_0x197089&&_0x5d4dd7(0x173)in _0x197089&&typeof _0x197089[_0x5d4dd7(0x173)]==_0x5d4dd7(0x22e)&&(!(_0x5d4dd7(0x1a4)in _0x197089)||_0x197089['segmentId']===void 0x0||typeof _0x197089[_0x5d4dd7(0x1a4)]==_0x5d4dd7(0x22e));}let X=class extends _0x18377d{constructor(_0x3ffb79,_0x5e3616){const _0x39df9a=_0x217dd1;super(),this[_0x39df9a(0x1ed)]=_0x3ffb79,this[_0x39df9a(0x18e)]=_0x5e3616,this[_0x39df9a(0x144)](this['_resourceManagerService'][_0x39df9a(0x218)]({'pluginName':y,'businesses':[_0x138c8e[_0x39df9a(0x17f)]],'toJson':_0x307fe0=>JSON['stringify'](this[_0x39df9a(0x18e)][_0x39df9a(0x1cb)](_0x307fe0)),'parseJson':_0x3013ba=>JSON[_0x39df9a(0x21e)](_0x3013ba),'onLoad':(_0x25bd54,_0x1b7f1b)=>{const _0x513c58=_0x39df9a;this[_0x513c58(0x18e)][_0x513c58(0x1f8)](_0x25bd54,_0x1b7f1b);},'onUnLoad':_0x489680=>this['_docFormulaModel'][_0x39df9a(0x193)](_0x489680)}));}};X=I([F(0x0,_0x2d200b),F(0x1,_0x5e32df(P))],X);var Tt=_0x217dd1(0x1a2),Et=_0x217dd1(0x232);const Dt={};let Z=class extends _0x18377d{constructor(_0x354703,_0x896f11,_0x154eb8){const _0x5621fa=_0x217dd1;super(),this['_univerInstanceService']=_0x354703,this[_0x5621fa(0x1e4)]=_0x896f11,this[_0x5621fa(0x144)](_0x154eb8[_0x5621fa(0x1e3)]({'resolve':(_0x3579e5,_0x33487f)=>{const _0x4f3b91=_0x5621fa;var _0x146552;return((_0x146552=_0x33487f[_0x4f3b91(0x210)])==null?void 0x0:_0x146552['filter'](w)[_0x4f3b91(0x164)](_0x1f40f4=>({'startOffset':_0x1f40f4['startIndex'],'endOffset':_0x1f40f4[_0x4f3b91(0x1fc)]+0x1,'text':this[_0x4f3b91(0x1e6)](_0x3579e5,_0x1f40f4[_0x4f3b91(0x141)])})))??[];}})),this['disposeWithMe'](this[_0x5621fa(0x1e4)][_0x5621fa(0x22a)][_0x5621fa(0x1ca)](({unitId:_0x206576})=>{const _0x39b4af=_0x5621fa;_0x154eb8[_0x39b4af(0x149)](_0x206576);}));}[_0x217dd1(0x1e6)](_0x571e3b,_0x53fa09){const _0x18ff6e=_0x217dd1;var _0x7c7ee9;return((_0x7c7ee9=this[_0x18ff6e(0x1e4)]['getResult']({'unitId':_0x571e3b,'rangeId':_0x53fa09}))==null?void 0x0:_0x7c7ee9[_0x18ff6e(0x201)])??'';}[_0x217dd1(0x1d1)](_0xbbd049,_0xdd5fd3,_0x5f1a82){const _0x32e49d=_0x217dd1;var _0x371394;let _0x434ec2=this['_univerInstanceService'][_0x32e49d(0x16c)](_0xbbd049,_0x138c8e[_0x32e49d(0x17f)]),_0x89cec4=_0x434ec2==null?void 0x0:_0x434ec2['getBody']();if(!_0x89cec4)return'';let _0x570218=_0x89cec4[_0x32e49d(0x153)][_0x32e49d(0x15f)](_0xdd5fd3,_0x5f1a82),_0x1dce36=((_0x371394=_0x89cec4['customRanges'])==null?void 0x0:_0x371394[_0x32e49d(0x1a5)](_0x2d16e2=>w(_0x2d16e2)&&_0x2d16e2[_0x32e49d(0x1e7)]>=_0xdd5fd3&&_0x2d16e2['endIndex']<_0x5f1a82)[_0x32e49d(0x1b9)]((_0x3f2769,_0x315471)=>_0x315471[_0x32e49d(0x1e7)]-_0x3f2769[_0x32e49d(0x1e7)]))??[];for(let _0x1104f8 of _0x1dce36){let _0x7af921=_0x1104f8['startIndex']-_0xdd5fd3,_0x1d6b27=_0x1104f8[_0x32e49d(0x1fc)]-_0xdd5fd3+0x1;_0x570218=''+_0x570218[_0x32e49d(0x15f)](0x0,_0x7af921)+this[_0x32e49d(0x1e6)](_0xbbd049,_0x1104f8[_0x32e49d(0x141)])+_0x570218[_0x32e49d(0x15f)](_0x1d6b27);}return _0x570218;}['degradeDocumentData'](_0x25a2de){return Ot(_0x25a2de);}[_0x217dd1(0x22b)](_0x23bae8,_0x1180ff,_0x153998={}){const _0x4e79d5=_0x217dd1;var _0x32fe0a;return Ve({'id':_0x23bae8,'body':_0x1180ff,'documentStyle':{}},(((_0x32fe0a=_0x1180ff[_0x4e79d5(0x210)])==null?void 0x0:_0x32fe0a[_0x4e79d5(0x1a5)](w))??[])[_0x4e79d5(0x164)](_0x4c786e=>({'rangeId':_0x4c786e[_0x4e79d5(0x141)],'text':_0x153998[_0x4c786e['rangeId']]??this[_0x4e79d5(0x1e6)](_0x23bae8,_0x4c786e[_0x4e79d5(0x141)])})))[_0x4e79d5(0x220)]??{'dataStream':''};}};Z=I([F(0x0,_0x147b46),F(0x1,_0x5e32df(L)),F(0x2,_0x5e32df(_0xbd430a))],Z);function Ot(_0x350b18){const _0x18860e=_0x217dd1;var _0x38873c,_0x508833;let _0x46aaf6=kt(_0x350b18),_0x3997c7=Ve(_0x350b18,(((_0x38873c=_0x350b18[_0x18860e(0x220)])==null||(_0x38873c=_0x38873c['customRanges'])==null?void 0x0:_0x38873c[_0x18860e(0x1a5)](w))??[])[_0x18860e(0x164)](_0x43a8d3=>({'rangeId':_0x43a8d3['rangeId'],'text':At(_0x46aaf6==null?void 0x0:_0x46aaf6[_0x18860e(0x1d7)][_0x43a8d3[_0x18860e(0x141)]])})));return _0x3997c7[_0x18860e(0x192)]=(_0x508833=_0x3997c7['resources'])==null?void 0x0:_0x508833['filter'](_0x2d81ca=>_0x2d81ca[_0x18860e(0x199)]!==y),_0x3997c7;}function kt(_0x52951a){const _0x27c6bc=_0x217dd1;var _0x4d71d5;let _0x29ce75=(_0x4d71d5=_0x52951a[_0x27c6bc(0x192)])==null||(_0x4d71d5=_0x4d71d5[_0x27c6bc(0x174)](_0x3300bd=>_0x3300bd['name']===_0x27c6bc(0x156)))==null?void 0x0:_0x4d71d5[_0x27c6bc(0x181)];if(_0x29ce75)try{let _0x5dc692=JSON['parse'](_0x29ce75);return x(_0x5dc692)?_0x5dc692:void 0x0;}catch{return;}}function At(_0x4438fc){const _0xe8ed7b=_0x217dd1;return _0x4438fc?_0x27458f({'lastValue':_0x4438fc[_0xe8ed7b(0x1da)],'numberFormat':_0x4438fc[_0xe8ed7b(0x179)]})[_0xe8ed7b(0x201)]:'';}let Q=class extends _0x18377d{constructor(_0x512f01,_0x14f8b2,_0x45e783){const _0x28d510=_0x217dd1;super(),this[_0x28d510(0x1e4)]=_0x512f01,this['_cacheEligibilityService']=_0x14f8b2,this[_0x28d510(0x144)](_0x45e783[_0x28d510(0x209)](this));}['collectMutations'](_0x24e167){const _0x12c09f=_0x217dd1;let _0x1ce1cd=new Map();for(let _0xc024ef of this[_0x12c09f(0x1e4)][_0x12c09f(0x205)]()){var _0xcad0ea;if(!this[_0x12c09f(0x16b)][_0x12c09f(0x14f)](_0xc024ef['config'][_0x12c09f(0x1ab)],_0xc024ef[_0x12c09f(0x202)])[_0x12c09f(0x21c)])continue;let _0x53e971=_0x2973cb(_0xc024ef[_0x12c09f(0x202)]),_0x23d02e=_0x53e971?_0x1b8769(_0x53e971):null;if(!_0x23d02e||jt(_0xc024ef[_0x12c09f(0x1ba)][_0x12c09f(0x1da)],_0x23d02e))continue;let _0x4e97dc=_0x1ce1cd[_0x12c09f(0x21f)](_0xc024ef[_0x12c09f(0x1c8)][_0x12c09f(0x173)])??[];_0x4e97dc[_0x12c09f(0x23b)]({'rangeId':_0xc024ef[_0x12c09f(0x1c8)]['rangeId'],'expectedFormula':_0xc024ef[_0x12c09f(0x1ba)]['formula'],'expectedNumberFormat':(_0xcad0ea=_0xc024ef['config'][_0x12c09f(0x179)])==null?void 0x0:_0xcad0ea[_0x12c09f(0x228)],'expectedReferenceRevision':_0xc024ef[_0x12c09f(0x1c9)],'lastValue':_0x23d02e}),_0x1ce1cd[_0x12c09f(0x1a1)](_0xc024ef[_0x12c09f(0x1c8)][_0x12c09f(0x173)],_0x4e97dc);}return Array[_0x12c09f(0x15a)](_0x1ce1cd,([_0x4ce7fd,_0x511e9b])=>({'id':H['id'],'params':{'unitId':_0x4ce7fd,'updates':_0x511e9b}}));}};Q=I([F(0x0,_0x5e32df(L)),F(0x1,_0x5e32df(_0x4f9c1c)),F(0x2,_0x5e32df(_0x12a840))],Q);function _0x28ce(_0x19524e,_0x1a7892){_0x19524e=_0x19524e-0x140;const _0x2a6feb=_0x2a6f();let _0x28cee0=_0x2a6feb[_0x19524e];return _0x28cee0;}function jt(_0x18f5ca,_0x1ee31e){const _0x3acddf=_0x217dd1;return(_0x18f5ca==null?void 0x0:_0x18f5ca['v'])===_0x1ee31e['v']&&(_0x18f5ca==null?void 0x0:_0x18f5ca['t'])===_0x1ee31e['t']&&(_0x18f5ca==null?void 0x0:_0x18f5ca['pattern'])===_0x1ee31e[_0x3acddf(0x228)];}let $=class extends _0x2b73e4{constructor(_0x262881=Dt,_0x3acb9a,_0x3821a4,_0xca9cb2){const _0x69240f=_0x217dd1;super(),this[_0x69240f(0x208)]=_0x262881,this[_0x69240f(0x14e)]=_0x3acb9a,this[_0x69240f(0x1cf)]=_0x3821a4,this[_0x69240f(0x1dc)]=_0xca9cb2;let {..._0x2e27c2}=_0x59447c({},Dt,this[_0x69240f(0x208)]);this[_0x69240f(0x1dc)][_0x69240f(0x1e9)](_0x69240f(0x177),_0x2e27c2);}[_0x217dd1(0x1e0)](){const _0x492f94=_0x217dd1;this[_0x492f94(0x14e)][_0x492f94(0x1e2)]([P]),this[_0x492f94(0x14e)][_0x492f94(0x1e2)]([L]),this['_injector'][_0x492f94(0x1e2)]([X]),this[_0x492f94(0x14e)][_0x492f94(0x1e2)]([Y]),this['_injector']['add']([Q]),this['_injector'][_0x492f94(0x1e2)]([Z]),_0x53385a(this[_0x492f94(0x14e)],[[P],[X],[Y],[Q],[Z]]),[ot,st,V,H,U,W,G,K,ct,lt][_0x492f94(0x1b2)](_0x155fbf=>this[_0x492f94(0x144)](this['_commandService'][_0x492f94(0x1a7)](_0x155fbf)));}};N($,_0x217dd1(0x20c),y),N($,_0x217dd1(0x1c0),Tt),N($,'version',Et),N($,_0x217dd1(0x1fe),_0x138c8e[_0x217dd1(0x17f)]),$=I([_0x4eb3b4(_0x3855ef,_0x5bf116,_0x50ecdf),F(0x1,_0x5e32df(_0x11059a)),F(0x2,_0x41c106),F(0x3,_0x35fc54)],$);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 _0x15ff4a=_0x5a0e;(function(_0x400f34,_0x5dad15){const _0x4e4264=_0x5a0e,_0x2afa0f=_0x400f34();while(!![]){try{const _0x5a8278=parseInt(_0x4e4264(0xe2))/0x1+-parseInt(_0x4e4264(0xf2))/0x2*(-parseInt(_0x4e4264(0x15c))/0x3)+parseInt(_0x4e4264(0x140))/0x4+parseInt(_0x4e4264(0x18c))/0x5+parseInt(_0x4e4264(0x104))/0x6*(-parseInt(_0x4e4264(0x166))/0x7)+-parseInt(_0x4e4264(0xe1))/0x8*(-parseInt(_0x4e4264(0x125))/0x9)+-parseInt(_0x4e4264(0x11f))/0xa*(parseInt(_0x4e4264(0x103))/0xb);if(_0x5a8278===_0x5dad15)break;else _0x2afa0f['push'](_0x2afa0f['shift']());}catch(_0x194e96){_0x2afa0f['push'](_0x2afa0f['shift']());}}}(_0x4b4d,0xa0880));import{FormulaCacheEligibilityService as _0xf3ba79,FormulaLastValuePersistenceService as _0x3b1060,HostExternalReferenceModel as _0xc15eb3,UniverProFormulaEnginePlugin as _0x4ef49e,buildUpsertHostExternalReferenceMutations as _0x51ba85,collectFormulaExternalReferenceQualifiers as _0x184125,getScalarFormulaResultCell as _0x10bd2d,resolveFormulaResultPresentation as _0x4c2bd5,resolveHostFormulaExternalReferences as _0x197c79,toFormulaLastValue as _0x4190fe}from'@univerjs-pro/engine-formula';import{CellValueType as _0x5a7e9d,CommandType as _0x6c9543,CustomRangeType as _0x139ae4,DataStreamTreeTokenType as _0x246953,DependentOn as _0x3781b4,Disposable as _0x284207,ICommandService as _0x55728f,IConfigService as _0x102468,IResourceManagerService as _0x103c6c,IUndoRedoService as _0x51122a,IUniverInstanceService as _0x48b9a6,Inject as _0x36a610,Injector as _0xed0b2,JSONX as _0x1d02d7,Plugin as _0x2f618a,TextX as _0x54417a,Tools as _0x4fc8e1,UniverInstanceType as _0x1d8d65,generateRandomId as _0x52ed00,getBodySliceForTextXAction as _0x4f7aa5,getCustomRangeInterval as _0x48951d,getParagraphContentStartOffset as _0x3f5de0,getRichTextEditPath as _0x31e082,merge as _0x1725eb,shiftExclusiveRangeOnDelete as _0x563ad3,shiftExclusiveRangeOnInsert as _0x377b49,shiftInclusiveRangeOnDelete as _0x6038f1,shiftInclusiveRangeOnInsert as _0x10b131,touchDependencies as _0x426a27}from'@univerjs/core';import{DOC_SELECTION_OPTION_PRESERVE_CARET as _0x59dee6,DocSelectionManagerService as _0x1ba5ec,DocTextResolverService as _0xebc48d,RichTextEditingMutation as _0x3731df,UniverDocsPlugin as _0x296e31}from'@univerjs/docs';import{FormulaResultStatus as _0x462723,LexerTreeBuilder as _0x5707ab,OtherFormulaBizType as _0x13c14f,RegisterOtherFormulaService as _0x540fe4}from'@univerjs/engine-formula';import{Subject as _0xb8a1ef}from'rxjs';import{UniverLicensePlugin as _0x52fcce}from'@univerjs-pro/license';const y=_0x15ff4a(0x10d),je='univer-docs-formula',Me='';function b(){return{'formulas':{}};}function x(_0x5c5632){const _0x59097a=_0x15ff4a;return!_0x5c5632||typeof _0x5c5632!=_0x59097a(0x1b3)||!(_0x59097a(0x106)in _0x5c5632)||!_0x5c5632[_0x59097a(0x106)]||typeof _0x5c5632[_0x59097a(0x106)]!=_0x59097a(0x1b3)||Array[_0x59097a(0xcc)](_0x5c5632[_0x59097a(0x106)])?!0x1:Object[_0x59097a(0x16a)](_0x5c5632[_0x59097a(0x106)])[_0x59097a(0x15f)](([_0x2353bb,_0x41cc04])=>_0x2353bb['length']>0x0&&Ne(_0x41cc04));}function Ne(_0x112ab1){const _0x36a52a=_0x15ff4a;return!_0x112ab1||typeof _0x112ab1!='object'||!S(_0x112ab1,[_0x36a52a(0x1c2),_0x36a52a(0x17d),_0x36a52a(0xeb)])||!(_0x36a52a(0x1c2)in _0x112ab1)||typeof _0x112ab1[_0x36a52a(0x1c2)]!=_0x36a52a(0x1b9)||!_0x112ab1[_0x36a52a(0x1c2)][_0x36a52a(0x12d)]()||_0x36a52a(0x17d)in _0x112ab1&&_0x112ab1[_0x36a52a(0x17d)]!=null&&(typeof _0x112ab1['numberFormat']!='object'||!S(_0x112ab1[_0x36a52a(0x17d)],['pattern'])||!(_0x36a52a(0x167)in _0x112ab1[_0x36a52a(0x17d)])||typeof _0x112ab1[_0x36a52a(0x17d)][_0x36a52a(0x167)]!=_0x36a52a(0x1b9))?!0x1:!('lastValue'in _0x112ab1)||_0x112ab1[_0x36a52a(0xeb)]==null||Pe(_0x112ab1['lastValue']);}function Pe(_0x218627){const _0x56b695=_0x15ff4a;return!_0x218627||typeof _0x218627!='object'||!S(_0x218627,['v','t',_0x56b695(0x167)])||!('v'in _0x218627)||_0x218627['v']!==null&&typeof _0x218627['v']!=_0x56b695(0x1b9)&&typeof _0x218627['v']!=_0x56b695(0x1c3)&&typeof _0x218627['v']!='boolean'||'t'in _0x218627&&_0x218627['t']!=null&&!Fe(_0x218627['t'])?!0x1:!(_0x56b695(0x167)in _0x218627)||_0x218627[_0x56b695(0x167)]==null||typeof _0x218627[_0x56b695(0x167)]=='string';}function S(_0x1ec2cd,_0x45480c){const _0x2ef36c=_0x15ff4a;let _0x3aff8e=new Set(_0x45480c);return Object['keys'](_0x1ec2cd)[_0x2ef36c(0x15f)](_0x14eb6b=>_0x3aff8e[_0x2ef36c(0x184)](_0x14eb6b));}function Fe(_0x55457d){const _0x4b69cc=_0x15ff4a;return typeof _0x55457d==_0x4b69cc(0x1c3)&&Object['values'](_0x5a7e9d)[_0x4b69cc(0x155)](_0x55457d);}const Ie=new Set([_0x246953[_0x15ff4a(0xf5)],_0x246953[_0x15ff4a(0x12c)],_0x246953[_0x15ff4a(0x19f)],_0x246953['TABLE_CELL_START'],_0x246953[_0x15ff4a(0xda)],_0x246953[_0x15ff4a(0x14f)],_0x246953[_0x15ff4a(0xf6)],_0x246953[_0x15ff4a(0x1ae)],_0x246953['COLUMN_START'],_0x246953['COLUMN_END'],_0x246953[_0x15ff4a(0x157)],_0x246953[_0x15ff4a(0x18d)],_0x246953[_0x15ff4a(0x1bf)],_0x246953[_0x15ff4a(0x1b4)]]);var C=class extends Error{constructor(){const _0x4b2b12=_0x15ff4a;super(_0x4b2b12(0x18b));}};function Le(_0xbff3b3){const _0xa4e05e=_0x15ff4a;var _0x4dfeed,_0x207615;let _0x577911=_0x4fc8e1[_0xa4e05e(0x107)](_0xbff3b3[_0xa4e05e(0xe4)]),_0x44efc4=O(_0x577911),{startOffset:_0x414928,endOffset:_0x946c2d}=We(_0x44efc4,_0xbff3b3[_0xa4e05e(0x171)],_0xbff3b3[_0xa4e05e(0x11c)]);Ve(_0x44efc4,_0x414928,_0x946c2d);let _0x1fa84f=((_0x4dfeed=_0x44efc4[_0xa4e05e(0x101)])==null?void 0x0:_0x4dfeed[_0xa4e05e(0xfd)](_0x42740a=>{const _0x2d69db=_0xa4e05e;if(!w(_0x42740a))return!0x1;let _0x25a636=_0x48951d(_0x42740a);return _0x25a636[_0x2d69db(0x11c)]>_0x414928&&_0x25a636[_0x2d69db(0x171)]<_0x946c2d;})[_0xa4e05e(0x120)](_0x24a461=>_0x24a461[_0xa4e05e(0x142)]))??[];qe(_0x44efc4,_0x414928,_0x946c2d,''),_0x44efc4[_0xa4e05e(0x101)]=[...((_0x207615=_0x44efc4[_0xa4e05e(0x101)])==null?void 0x0:_0x207615[_0xa4e05e(0xfd)](_0x2ca330=>!_0x1fa84f[_0xa4e05e(0x155)](_0x2ca330[_0xa4e05e(0x142)])&&_0x2ca330[_0xa4e05e(0x142)]!==_0xbff3b3['rangeId']))??[],He(_0xbff3b3[_0xa4e05e(0x142)],_0x414928)][_0xa4e05e(0xfc)]((_0x14fc58,_0x145048)=>_0x14fc58[_0xa4e05e(0x14c)]-_0x145048['startIndex']);let _0x1f3f48=Ue(_0xbff3b3['resource']);return _0x1fa84f['forEach'](_0x5a6824=>{delete _0x1f3f48['formulas'][_0x5a6824];}),_0x1f3f48['formulas'][_0xbff3b3[_0xa4e05e(0x142)]]=_0x4fc8e1[_0xa4e05e(0x107)](_0xbff3b3[_0xa4e05e(0x1ab)]),{'nextDocumentData':_0x577911,'nextResource':_0x1f3f48,'cursorOffset':_0x414928+0x1};}function Re(_0x184790){const _0x1cc2aa=_0x15ff4a;var _0x3ff217,_0x5963fd;let _0xfcace5=_0x4fc8e1[_0x1cc2aa(0x107)](_0x184790[_0x1cc2aa(0xe4)]),_0x4f088d=(_0x3ff217=O(_0xfcace5)[_0x1cc2aa(0x101)])==null?void 0x0:_0x3ff217[_0x1cc2aa(0x1a8)](_0x5560dc=>_0x5560dc[_0x1cc2aa(0x142)]===_0x184790['rangeId']&&w(_0x5560dc));if(!_0x4f088d||!((_0x5963fd=_0x184790[_0x1cc2aa(0x115)])!=null&&_0x5963fd['formulas'][_0x184790[_0x1cc2aa(0x142)]]))return null;let _0x34e693=Ue(_0x184790['resource']);return _0x34e693[_0x1cc2aa(0x106)][_0x184790[_0x1cc2aa(0x142)]]=_0x4fc8e1[_0x1cc2aa(0x107)](_0x184790[_0x1cc2aa(0x1ab)]),{'nextDocumentData':_0xfcace5,'nextResource':_0x34e693,'cursorOffset':_0x4f088d[_0x1cc2aa(0xdc)]+0x1};}function ze(_0x5519e7){const _0x38992e=_0x15ff4a;let _0x28824a=_0x4fc8e1[_0x38992e(0x107)](_0x5519e7[_0x38992e(0xe4)]),_0x53d6e8=Je(_0x28824a,_0x5519e7[_0x38992e(0x142)],_0x5519e7[_0x38992e(0xe6)]??'');if(_0x53d6e8==null)return null;let _0x58a8c4=Ue(_0x5519e7['resource']);return delete _0x58a8c4['formulas'][_0x5519e7[_0x38992e(0x142)]],{'nextDocumentData':_0x28824a,'nextResource':_0x58a8c4,'cursorOffset':_0x53d6e8};}function Be(_0xd90224,_0x28bd17){const _0x21111c=_0x15ff4a;var _0x5d9bf8;let _0x654a2c=_0x4fc8e1[_0x21111c(0x107)](_0xd90224),_0x462485=_0x654a2c[_0x21111c(0x135)];if(!_0x462485)return _0x654a2c;let _0x2fed89=new Map(_0x28bd17[_0x21111c(0x120)](_0x55b1ea=>[_0x55b1ea[_0x21111c(0x142)],_0x55b1ea[_0x21111c(0xe6)]])),_0x840954=((_0x5d9bf8=_0x462485['customRanges'])==null?void 0x0:_0x5d9bf8[_0x21111c(0xfd)](_0x385d8f=>w(_0x385d8f)&&_0x2fed89[_0x21111c(0x184)](_0x385d8f[_0x21111c(0x142)]))[_0x21111c(0xfc)]((_0x2117c5,_0xa881a1)=>_0xa881a1[_0x21111c(0x14c)]-_0x2117c5[_0x21111c(0x14c)]))??[];for(let _0x4393be of _0x840954)Je(_0x654a2c,_0x4393be[_0x21111c(0x142)],_0x2fed89[_0x21111c(0x1ba)](_0x4393be['rangeId'])??'');return _0x654a2c;}function w(_0x13afca){const _0x509f41=_0x15ff4a;var _0x9b02ea;return(_0x13afca==null?void 0x0:_0x13afca[_0x509f41(0xf1)])===_0x139ae4[_0x509f41(0x177)]&&_0x13afca[_0x509f41(0xef)]===!0x0&&((_0x9b02ea=_0x13afca[_0x509f41(0x121)])==null?void 0x0:_0x9b02ea[_0x509f41(0x13c)])===_0x509f41(0x1c5);}function T(_0x561296,_0x5bb11a){const _0x414b8b=_0x15ff4a;var _0x2aaf97;return _0x561296==null||(_0x2aaf97=_0x561296[_0x414b8b(0x101)])==null?void 0x0:_0x2aaf97[_0x414b8b(0x1a8)](_0x560ece=>_0x560ece['rangeId']===_0x5bb11a&&w(_0x560ece));}function Ve(_0x176d97,_0x2017b9,_0x115691){const _0x20ccf5=_0x15ff4a;if(_0x2017b9===_0x115691){if(Ie['has'](_0x176d97[_0x20ccf5(0xcb)][_0x2017b9]))throw new C();}else{for(let _0xc71586=_0x2017b9;_0xc71586<_0x115691;_0xc71586++)if(_0x176d97[_0x20ccf5(0xcb)][_0xc71586]===_0x246953['PARAGRAPH']||Ie[_0x20ccf5(0x184)](_0x176d97[_0x20ccf5(0xcb)][_0xc71586]))throw new C();}}function He(_0x34fc9e,_0x42d4da){return{'startIndex':_0x42d4da,'endIndex':_0x42d4da,'rangeId':_0x34fc9e,'rangeType':_0x139ae4['CUSTOM'],'wholeEntity':!0x0,'properties':{'kind':je}};}function Ue(_0x40abdf){const _0x1fed86=_0x15ff4a;return _0x40abdf?_0x4fc8e1[_0x1fed86(0x107)](_0x40abdf):b();}function We(_0x43ed2d,_0x13ac1e,_0x1d77dd){const _0x296adc=_0x15ff4a;let _0x3fda00=Ke(_0x43ed2d),_0x4c9286=_0x13ac1e??_0x3fda00,_0x49e44d=_0x1d77dd??_0x4c9286;return{'startOffset':Ge(Math[_0x296adc(0xd4)](_0x4c9286,_0x49e44d),_0x3fda00),'endOffset':Ge(Math[_0x296adc(0x129)](_0x4c9286,_0x49e44d),_0x3fda00)};}function Ge(_0x1887e7,_0x37e47e){return Math['max'](0x0,Math['min'](_0x1887e7,_0x37e47e));}function Ke(_0x4b38b8){const _0x27d093=_0x15ff4a;return _0x4b38b8['dataStream'][_0x27d093(0x1c7)](''+_0x246953[_0x27d093(0x1a2)]+_0x246953[_0x27d093(0xf5)])?Math[_0x27d093(0x129)](0x0,_0x4b38b8['dataStream'][_0x27d093(0xcd)]-0x2):_0x4b38b8[_0x27d093(0xcb)][_0x27d093(0x1c7)](_0x246953[_0x27d093(0xf5)])?Math['max'](0x0,_0x4b38b8[_0x27d093(0xcb)]['length']-0x1):_0x4b38b8[_0x27d093(0xcb)]['length'];}function qe(_0x558ca6,_0x42b4c5,_0x48c453,_0x21d8a5){_0x48c453>_0x42b4c5&&Xe(_0x558ca6,_0x42b4c5,_0x48c453),Ye(_0x558ca6,_0x42b4c5,_0x21d8a5);}function Je(_0x25f9b4,_0x162791,_0x1951f8){const _0x22090c=_0x15ff4a;var _0x1a7790,_0x280f84;let _0x530cf1=O(_0x25f9b4),_0x2f0cba=(_0x1a7790=_0x530cf1[_0x22090c(0x101)])==null?void 0x0:_0x1a7790[_0x22090c(0x1a8)](_0x4a765e=>_0x4a765e[_0x22090c(0x142)]===_0x162791&&w(_0x4a765e));if(!_0x2f0cba)return null;let _0x1fd924=_0x48951d(_0x2f0cba);return qe(_0x530cf1,_0x1fd924['startOffset'],_0x1fd924[_0x22090c(0x11c)],_0x1951f8),_0x530cf1[_0x22090c(0x101)]=(_0x280f84=_0x530cf1[_0x22090c(0x101)])==null?void 0x0:_0x280f84[_0x22090c(0xfd)](_0x61e26f=>_0x61e26f[_0x22090c(0x142)]!==_0x162791),_0x1fd924[_0x22090c(0x171)]+_0x1951f8[_0x22090c(0xcd)];}function Ye(_0x20f165,_0x180d53,_0x32553b){const _0x2ad807=_0x15ff4a;_0x32553b&&(_0x20f165['dataStream']=''+_0x20f165[_0x2ad807(0xcb)][_0x2ad807(0x116)](0x0,_0x180d53)+_0x32553b+_0x20f165[_0x2ad807(0xcb)][_0x2ad807(0x116)](_0x180d53),Ze(_0x20f165,_0x180d53,_0x32553b[_0x2ad807(0xcd)]));}function Xe(_0x1a44a2,_0x3c1c21,_0x1fe154){const _0x68e79c=_0x15ff4a;let _0x1e155a=_0x1fe154-_0x3c1c21;_0x1a44a2[_0x68e79c(0xcb)]=''+_0x1a44a2[_0x68e79c(0xcb)]['slice'](0x0,_0x3c1c21)+_0x1a44a2['dataStream'][_0x68e79c(0x116)](_0x1fe154),Qe(_0x1a44a2,_0x3c1c21,_0x1e155a);}function Ze(_0x1d00aa,_0x9eb13c,_0x4aeb5e){const _0x42b072=_0x15ff4a;_0x1d00aa[_0x42b072(0x160)]=$e(_0x1d00aa[_0x42b072(0x160)],_0x9eb13c,_0x4aeb5e),_0x1d00aa[_0x42b072(0x1b1)]=$e(_0x1d00aa[_0x42b072(0x1b1)],_0x9eb13c,_0x4aeb5e),_0x1d00aa[_0x42b072(0x1bc)]=$e(_0x1d00aa[_0x42b072(0x1bc)],_0x9eb13c,_0x4aeb5e),_0x1d00aa[_0x42b072(0x156)]=tt(_0x1d00aa[_0x42b072(0x156)],_0x9eb13c,_0x4aeb5e),_0x1d00aa[_0x42b072(0xd0)]=nt(_0x1d00aa[_0x42b072(0xd0)],_0x9eb13c,_0x4aeb5e),_0x1d00aa[_0x42b072(0xe0)]=E(_0x1d00aa['columnGroups'],_0x9eb13c,_0x4aeb5e),_0x1d00aa[_0x42b072(0x101)]=E(_0x1d00aa[_0x42b072(0x101)],_0x9eb13c,_0x4aeb5e),_0x1d00aa['customDecorations']=E(_0x1d00aa['customDecorations'],_0x9eb13c,_0x4aeb5e),_0x1d00aa[_0x42b072(0x15a)]=E(_0x1d00aa[_0x42b072(0x15a)],_0x9eb13c,_0x4aeb5e);}function Qe(_0x3337c2,_0x46313b,_0x2c911f){const _0x51ce41=_0x15ff4a;var _0x43bff5,_0xcbb644;_0x3337c2[_0x51ce41(0x160)]=et(_0x3337c2['paragraphs'],_0x46313b,_0x2c911f),_0x3337c2[_0x51ce41(0x1b1)]=et(_0x3337c2['sectionBreaks'],_0x46313b,_0x2c911f),_0x3337c2[_0x51ce41(0x1bc)]=et(_0x3337c2[_0x51ce41(0x1bc)],_0x46313b,_0x2c911f),_0x3337c2[_0x51ce41(0x156)]=(_0x43bff5=rt((_0xcbb644=_0x3337c2[_0x51ce41(0x156)])==null?void 0x0:_0xcbb644[_0x51ce41(0x120)](_0x316185=>({..._0x316185,'startIndex':_0x316185['st'],'endIndex':_0x316185['ed']})),_0x46313b,_0x2c911f))==null?void 0x0:_0x43bff5['map'](_0x1d0338=>{let {startIndex:_0x4b6be0,endIndex:_0x5ca453,..._0x4e24d2}=_0x1d0338;return{..._0x4e24d2,'st':_0x4b6be0,'ed':_0x5ca453};}),_0x3337c2[_0x51ce41(0xd0)]=rt(_0x3337c2[_0x51ce41(0xd0)],_0x46313b,_0x2c911f),_0x3337c2['columnGroups']=D(_0x3337c2[_0x51ce41(0xe0)],_0x46313b,_0x2c911f),_0x3337c2['customRanges']=D(_0x3337c2[_0x51ce41(0x101)],_0x46313b,_0x2c911f),_0x3337c2[_0x51ce41(0x122)]=D(_0x3337c2['customDecorations'],_0x46313b,_0x2c911f),_0x3337c2[_0x51ce41(0x15a)]=D(_0x3337c2[_0x51ce41(0x15a)],_0x46313b,_0x2c911f);}function $e(_0x31d0c5,_0x32738e,_0xadab38){const _0x209189=_0x15ff4a;return _0x31d0c5==null?void 0x0:_0x31d0c5[_0x209189(0x120)](_0x25c060=>_0x25c060[_0x209189(0x14c)]>=_0x32738e?{..._0x25c060,'startIndex':_0x25c060[_0x209189(0x14c)]+_0xadab38}:_0x25c060);}function et(_0x667c40,_0x158fce,_0x50063d){const _0x31e211=_0x15ff4a;let _0x5848b3=_0x158fce+_0x50063d;return _0x667c40==null?void 0x0:_0x667c40[_0x31e211(0x120)](_0x1d960a=>_0x1d960a[_0x31e211(0x14c)]>=_0x158fce&&_0x1d960a[_0x31e211(0x14c)]<_0x5848b3?null:_0x1d960a[_0x31e211(0x14c)]>=_0x5848b3?{..._0x1d960a,'startIndex':_0x1d960a[_0x31e211(0x14c)]-_0x50063d}:_0x1d960a)[_0x31e211(0xfd)](_0x28c604=>_0x28c604!=null);}function tt(_0x1cc3d0,_0x36d696,_0x44014a){return _0x1cc3d0==null?void 0x0:_0x1cc3d0['map'](_0x184feb=>_0x184feb['st']>=_0x36d696?{..._0x184feb,'st':_0x184feb['st']+_0x44014a,'ed':_0x184feb['ed']+_0x44014a}:_0x184feb['ed']>_0x36d696?{..._0x184feb,'ed':_0x184feb['ed']+_0x44014a}:_0x184feb);}function E(_0xd4f9b9,_0x577638,_0x218e2f){const _0x22848e=_0x15ff4a;return _0xd4f9b9==null?void 0x0:_0xd4f9b9[_0x22848e(0x120)](_0x166453=>_0x10b131(_0x166453,_0x577638,_0x218e2f));}function _0x5a0e(_0xfaf3cf,_0x3f03ff){_0xfaf3cf=_0xfaf3cf-0xcb;const _0x4b4d41=_0x4b4d();let _0x5a0e18=_0x4b4d41[_0xfaf3cf];return _0x5a0e18;}function nt(_0xcd82e6,_0x52edb2,_0x55df08){const _0xb1b930=_0x15ff4a;return _0xcd82e6==null?void 0x0:_0xcd82e6[_0xb1b930(0x120)](_0x5ae9c2=>_0x377b49(_0x5ae9c2,_0x52edb2,_0x55df08));}function D(_0x24f58d,_0x578aef,_0x1a372c){const _0x2b586c=_0x15ff4a;return _0x24f58d==null?void 0x0:_0x24f58d[_0x2b586c(0x120)](_0x2dbc3c=>_0x6038f1(_0x2dbc3c,_0x578aef,_0x1a372c))[_0x2b586c(0xfd)](_0xc87e5f=>_0xc87e5f!=null);}function rt(_0xba4c9,_0x594555,_0x360bc5){const _0x5548aa=_0x15ff4a;return _0xba4c9==null?void 0x0:_0xba4c9[_0x5548aa(0x120)](_0x2553d4=>_0x563ad3(_0x2553d4,_0x594555,_0x360bc5))[_0x5548aa(0xfd)](_0x2180fd=>_0x2180fd!=null);}function O(_0x16ae9d){const _0x1f7f4e=_0x15ff4a;if(!_0x16ae9d[_0x1f7f4e(0x135)])throw Error('Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.');return _0x16ae9d[_0x1f7f4e(0x135)];}function k(_0x52ffb0){'@babel/helpers - typeof';const _0x327b31=_0x15ff4a;return k=typeof Symbol==_0x327b31(0xd5)&&typeof Symbol['iterator']==_0x327b31(0x100)?function(_0x294fae){return typeof _0x294fae;}:function(_0x20ab0e){const _0x3cb835=_0x327b31;return _0x20ab0e&&typeof Symbol==_0x3cb835(0xd5)&&_0x20ab0e[_0x3cb835(0x14a)]===Symbol&&_0x20ab0e!==Symbol['prototype']?_0x3cb835(0x100):typeof _0x20ab0e;},k(_0x52ffb0);}function it(_0x138bec,_0x3e79c5){const _0x2032fc=_0x15ff4a;if(k(_0x138bec)!=_0x2032fc(0x1b3)||!_0x138bec)return _0x138bec;var _0xb4859d=_0x138bec[Symbol[_0x2032fc(0xfb)]];if(_0xb4859d!==void 0x0){var _0x44766b=_0xb4859d['call'](_0x138bec,_0x3e79c5||_0x2032fc(0x179));if(k(_0x44766b)!=_0x2032fc(0x1b3))return _0x44766b;throw TypeError(_0x2032fc(0x15e));}return(_0x3e79c5===_0x2032fc(0x1b9)?String:Number)(_0x138bec);}function at(_0x12c4d5){const _0x44b9d8=_0x15ff4a;var _0x3dd3b0=it(_0x12c4d5,_0x44b9d8(0x1b9));return k(_0x3dd3b0)==_0x44b9d8(0x100)?_0x3dd3b0:_0x3dd3b0+'';}function A(_0xcb365d,_0x5920c5,_0x51bbe4){const _0x467e21=_0x15ff4a;return(_0x5920c5=at(_0x5920c5))in _0xcb365d?Object[_0x467e21(0xfe)](_0xcb365d,_0x5920c5,{'value':_0x51bbe4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xcb365d[_0x5920c5]=_0x51bbe4,_0xcb365d;}var j=class extends _0x284207{constructor(..._0x3f935b){const _0x1612df=_0x15ff4a;super(..._0x3f935b),A(this,'_resources',new Map()),A(this,'_rawResources',new Map()),A(this,'_loadErrors',new Map()),A(this,_0x1612df(0x11d),new _0xb8a1ef()),A(this,_0x1612df(0x148),this[_0x1612df(0x11d)]['asObservable']());}[_0x15ff4a(0xdd)](_0x541a25,_0xd92d5f){const _0x3b90b1=_0x15ff4a;var _0x428c28;let _0x2b4a36=(_0x428c28=this[_0x3b90b1(0x164)][_0x3b90b1(0x1ba)](_0x541a25))==null?void 0x0:_0x428c28['formulas'][_0xd92d5f];return _0x2b4a36?_0x4fc8e1[_0x3b90b1(0x107)](_0x2b4a36):void 0x0;}['getFormulas'](_0x536127){const _0x1a4b6a=_0x15ff4a;var _0x1b8d2e;return _0x4fc8e1[_0x1a4b6a(0x107)](((_0x1b8d2e=this[_0x1a4b6a(0x164)][_0x1a4b6a(0x1ba)](_0x536127))==null?void 0x0:_0x1b8d2e['formulas'])??{});}[_0x15ff4a(0x112)](_0x1206a7){const _0x227c32=_0x15ff4a;let _0x1df6e9=this[_0x227c32(0x164)][_0x227c32(0x1ba)](_0x1206a7);return _0x1df6e9?_0x4fc8e1[_0x227c32(0x107)](_0x1df6e9):void 0x0;}[_0x15ff4a(0x131)](_0x5b8047,_0x1ed76a,_0x553b32){const _0x456b10=_0x15ff4a;return this[_0x456b10(0x19a)](_0x5b8047,{[_0x1ed76a]:_0x553b32});}[_0x15ff4a(0x193)](_0x96a0e3,_0x24777e){const _0xbc0f9f=_0x15ff4a;return this[_0xbc0f9f(0x1a1)][_0xbc0f9f(0x184)](_0x96a0e3)||!x(_0x24777e)?!0x1:(this['_resources']['set'](_0x96a0e3,{'formulas':_0x4fc8e1[_0xbc0f9f(0x107)](_0x24777e['formulas'])}),this[_0xbc0f9f(0x11d)][_0xbc0f9f(0x1b0)]({'unitId':_0x96a0e3}),!0x0);}[_0x15ff4a(0x19a)](_0x4be48b,_0x49440d){const _0x39e371=_0x15ff4a;if(this[_0x39e371(0x1a1)][_0x39e371(0x184)](_0x4be48b)||!Object[_0x39e371(0x16c)](_0x49440d)['length']||!x({'formulas':_0x49440d}))return!0x1;let _0x304468=this['_resources']['get'](_0x4be48b)??b(),_0x729f20=_0x4fc8e1['deepClone'](_0x304468);return Object[_0x39e371(0xd7)](_0x729f20[_0x39e371(0x106)],_0x4fc8e1[_0x39e371(0x107)](_0x49440d)),this[_0x39e371(0x164)][_0x39e371(0x11a)](_0x4be48b,_0x729f20),this['_change$'][_0x39e371(0x1b0)]({'unitId':_0x4be48b,'rangeIds':Object['keys'](_0x49440d)}),!0x0;}[_0x15ff4a(0x141)](_0x357079,_0x1f8310){const _0x2503e0=_0x15ff4a;if(this['_loadErrors'][_0x2503e0(0x184)](_0x357079))return!0x1;let _0x51c508=this[_0x2503e0(0x164)][_0x2503e0(0x1ba)](_0x357079);if(!(_0x51c508!=null&&_0x51c508[_0x2503e0(0x106)][_0x1f8310]))return!0x1;let _0x3434d=_0x4fc8e1[_0x2503e0(0x107)](_0x51c508);return delete _0x3434d[_0x2503e0(0x106)][_0x1f8310],this[_0x2503e0(0x164)][_0x2503e0(0x11a)](_0x357079,_0x3434d),this['_change$'][_0x2503e0(0x1b0)]({'unitId':_0x357079,'rangeIds':[_0x1f8310]}),!0x0;}[_0x15ff4a(0x11e)](_0x5dfa3e,_0x4c474d){const _0x3f4903=_0x15ff4a;return x(_0x4c474d)?(this[_0x3f4903(0x164)]['set'](_0x5dfa3e,{'formulas':_0x4fc8e1['deepClone'](_0x4c474d[_0x3f4903(0x106)])}),this[_0x3f4903(0x175)]['delete'](_0x5dfa3e),this[_0x3f4903(0x1a1)][_0x3f4903(0x18a)](_0x5dfa3e),this[_0x3f4903(0x11d)][_0x3f4903(0x1b0)]({'unitId':_0x5dfa3e}),!0x0):(this['_preserveInvalid'](_0x5dfa3e,_0x4c474d,_0x3f4903(0x1ad)),!0x1);}['serialize'](_0x590939){const _0x4253f5=_0x15ff4a;let _0x33ec27=this[_0x4253f5(0x164)][_0x4253f5(0x1ba)](_0x590939);return _0x33ec27?_0x4fc8e1['deepClone'](_0x33ec27):this[_0x4253f5(0x175)][_0x4253f5(0x184)](_0x590939)?_0x4fc8e1['deepClone'](this[_0x4253f5(0x175)][_0x4253f5(0x1ba)](_0x590939)):b();}[_0x15ff4a(0x117)](_0xdf9640){const _0x59c70e=_0x15ff4a;return this['_loadErrors'][_0x59c70e(0x1ba)](_0xdf9640);}[_0x15ff4a(0x124)](_0x5287c3){const _0x3ab74a=_0x15ff4a;this[_0x3ab74a(0x164)][_0x3ab74a(0x18a)](_0x5287c3),this[_0x3ab74a(0x175)][_0x3ab74a(0x18a)](_0x5287c3),this['_loadErrors'][_0x3ab74a(0x18a)](_0x5287c3),this[_0x3ab74a(0x11d)][_0x3ab74a(0x1b0)]({'unitId':_0x5287c3});}[_0x15ff4a(0x19e)](){const _0x4eb8ea=_0x15ff4a;this['_resources'][_0x4eb8ea(0x147)](),this[_0x4eb8ea(0x175)][_0x4eb8ea(0x147)](),this[_0x4eb8ea(0x1a1)][_0x4eb8ea(0x147)](),this[_0x4eb8ea(0x11d)][_0x4eb8ea(0x11b)](),super['dispose']();}[_0x15ff4a(0x110)](_0x3e0dc1,_0x461fd8,_0x148fc2){const _0x3ec7f9=_0x15ff4a;this['_resources'][_0x3ec7f9(0x18a)](_0x3e0dc1),this[_0x3ec7f9(0x175)][_0x3ec7f9(0x11a)](_0x3e0dc1,_0x4fc8e1['deepClone'](_0x461fd8)),this[_0x3ec7f9(0x1a1)]['set'](_0x3e0dc1,_0x148fc2),this['_change$'][_0x3ec7f9(0x1b0)]({'unitId':_0x3e0dc1});}};let ot=function(_0x389712){const _0x17bedf=_0x15ff4a;return _0x389712['EMPTY']=_0x17bedf(0x190),_0x389712['PENDING']=_0x17bedf(0xec),_0x389712['SUCCESS']=_0x17bedf(0x13d),_0x389712[_0x17bedf(0x12b)]=_0x17bedf(0x178),_0x389712;}({});function M(_0x344246,_0x316996){return function(_0x4108ba,_0x4c3ec1){_0x316996(_0x4108ba,_0x4c3ec1,_0x344246);};}function N(_0x1eaf61,_0x43de90,_0x396c78,_0x3261f5){const _0x182fa5=_0x15ff4a;var _0x13df9b=arguments[_0x182fa5(0xcd)],_0x12e490=_0x13df9b<0x3?_0x43de90:_0x3261f5===null?_0x3261f5=Object[_0x182fa5(0xce)](_0x43de90,_0x396c78):_0x3261f5,_0x1422b7;if(typeof Reflect==_0x182fa5(0x1b3)&&typeof Reflect['decorate']=='function')_0x12e490=Reflect[_0x182fa5(0x119)](_0x1eaf61,_0x43de90,_0x396c78,_0x3261f5);else{for(var _0x19f765=_0x1eaf61[_0x182fa5(0xcd)]-0x1;_0x19f765>=0x0;_0x19f765--)(_0x1422b7=_0x1eaf61[_0x19f765])&&(_0x12e490=(_0x13df9b<0x3?_0x1422b7(_0x12e490):_0x13df9b>0x3?_0x1422b7(_0x43de90,_0x396c78,_0x12e490):_0x1422b7(_0x43de90,_0x396c78))||_0x12e490);}return _0x13df9b>0x3&&_0x12e490&&Object[_0x182fa5(0xfe)](_0x43de90,_0x396c78,_0x12e490),_0x12e490;}let P=class extends _0x284207{constructor(_0x4a0044,_0x48f98d,_0xc8bb3a){const _0x5f39d2=_0x15ff4a;super(),this['_model']=_0x4a0044,this['_registrationService']=_0x48f98d,this[_0x5f39d2(0x102)]=_0xc8bb3a,A(this,_0x5f39d2(0x118),new Map()),A(this,_0x5f39d2(0x19b),new Map()),A(this,_0x5f39d2(0x149),new _0xb8a1ef()),A(this,_0x5f39d2(0x16e),this[_0x5f39d2(0x149)][_0x5f39d2(0x1bb)]()),this[_0x5f39d2(0x1b5)](this[_0x5f39d2(0x143)][_0x5f39d2(0x174)][_0x5f39d2(0x132)](_0x168693=>{const _0x76d416=_0x5f39d2;for(let _0x133dab of Object[_0x76d416(0x114)](_0x168693))for(let _0x440e24 of Object[_0x76d416(0x114)](_0x133dab))_0x440e24['forEach'](_0x1dafd3=>this['_updateFormulaResult'](_0x1dafd3));}));}[_0x15ff4a(0x176)](_0x23247f){const _0x31ac9b=_0x15ff4a;var _0x36690c;let _0x35dfc1=_0x23247f[_0x31ac9b(0x14d)](),_0x23de99=((_0x36690c=_0x23247f[_0x31ac9b(0xf9)]()['body'])==null||(_0x36690c=_0x36690c[_0x31ac9b(0x101)])==null?void 0x0:_0x36690c[_0x31ac9b(0xfd)](w))??[],_0xbe8b5d=this[_0x31ac9b(0x194)][_0x31ac9b(0x183)](_0x35dfc1),_0x4489bc=new Set();for(let _0x26f29b of _0x23de99){let _0x32e902=_0xbe8b5d[_0x26f29b[_0x31ac9b(0x142)]];_0x32e902&&(_0x4489bc[_0x31ac9b(0x10a)](F(_0x35dfc1,_0x26f29b[_0x31ac9b(0x142)])),this[_0x31ac9b(0xd2)]({'unitId':_0x35dfc1,'rangeId':_0x26f29b['rangeId']},_0x32e902));}for(let _0x46acb1 of Array['from'](this[_0x31ac9b(0x118)][_0x31ac9b(0x114)]()))_0x46acb1[_0x31ac9b(0x12e)]===_0x35dfc1&&!_0x4489bc[_0x31ac9b(0x184)](F(_0x46acb1[_0x31ac9b(0x12e)],_0x46acb1[_0x31ac9b(0x142)]))&&this[_0x31ac9b(0x113)](_0x46acb1);}[_0x15ff4a(0xd2)](_0xbd96b9,_0x34e39b){const _0x24cdb=_0x15ff4a;let _0x54ca3b=F(_0xbd96b9[_0x24cdb(0x12e)],_0xbd96b9['rangeId']),_0x5948b5=this['_registrations'][_0x24cdb(0x1ba)](_0x54ca3b),_0x43c8d2=this[_0x24cdb(0x102)]['getRevision'](_0xbd96b9[_0x24cdb(0x12e)]);if(_0x5948b5&&_0x5948b5[_0x24cdb(0x1ab)]['formula']===_0x34e39b[_0x24cdb(0x1c2)]&&_0x5948b5[_0x24cdb(0xe7)]===_0x43c8d2){_0x5948b5[_0x24cdb(0x1ab)]=_0x34e39b;let _0x223895=_0x5948b5['formulaId']?this[_0x24cdb(0x143)]['getFormulaValueSync'](_0x5948b5['unitId'],_0x5948b5['unitId'],_0x5948b5[_0x24cdb(0x1c1)])??void 0x0:void 0x0;_0x5948b5[_0x24cdb(0x146)]=_0x223895,this[_0x24cdb(0x162)](_0x54ca3b,st(_0x34e39b,_0x223895));return;}_0x5948b5!=null&&_0x5948b5[_0x24cdb(0x1c1)]&&this['_deleteRegistration'](_0x5948b5);let _0x2d5051={..._0xbd96b9,'config':_0x34e39b,'referenceRevision':_0x43c8d2,'presentation':st(_0x34e39b,void 0x0)};if(this[_0x24cdb(0x118)][_0x24cdb(0x11a)](_0x54ca3b,_0x2d5051),!_0x34e39b[_0x24cdb(0x1c2)]['trim']())return;let _0x51629e=this[_0x24cdb(0x143)]['registerFormulaWithRange'](_0xbd96b9['unitId'],_0xbd96b9[_0x24cdb(0x12e)],_0x34e39b['formula'],void 0x0,{'rangeId':_0xbd96b9[_0x24cdb(0x142)]},_0x13c14f['DOC'],_0xbd96b9['rangeId']);_0x2d5051[_0x24cdb(0x1c1)]=_0x51629e,this[_0x24cdb(0x19b)]['set'](_0x51629e,_0x54ca3b);}[_0x15ff4a(0x113)](_0x16dd0b){const _0x494efb=_0x15ff4a;let _0x5329da=F(_0x16dd0b[_0x494efb(0x12e)],_0x16dd0b[_0x494efb(0x142)]),_0x5610b2=this['_registrations'][_0x494efb(0x1ba)](_0x5329da);_0x5610b2&&(this[_0x494efb(0x109)](_0x5610b2),this[_0x494efb(0x118)][_0x494efb(0x18a)](_0x5329da));}['unregisterUnit'](_0x31567b){const _0x25bbcb=_0x15ff4a;for(let _0x3d23b3 of Array[_0x25bbcb(0x161)](this[_0x25bbcb(0x118)][_0x25bbcb(0x114)]()))_0x3d23b3['unitId']===_0x31567b&&this['unregister'](_0x3d23b3);}[_0x15ff4a(0x137)](_0x4455a8){const _0x5258dd=_0x15ff4a;var _0x22c15a;return(_0x22c15a=this['_registrations'][_0x5258dd(0x1ba)](F(_0x4455a8[_0x5258dd(0x12e)],_0x4455a8[_0x5258dd(0x142)])))==null?void 0x0:_0x22c15a[_0x5258dd(0x195)];}['getResult'](_0x264039){const _0x2ce168=_0x15ff4a;let _0x282471=this['_registrations'][_0x2ce168(0x1ba)](F(_0x264039[_0x2ce168(0x12e)],_0x264039['rangeId']));return _0x282471?I(_0x282471):void 0x0;}[_0x15ff4a(0x15d)](){const _0x3d07d1=_0x15ff4a;return Array[_0x3d07d1(0x161)](this['_registrations']['values'](),_0x4e6745=>({'identity':{'unitId':_0x4e6745[_0x3d07d1(0x12e)],'rangeId':_0x4e6745[_0x3d07d1(0x142)]},'config':_0x4e6745[_0x3d07d1(0x1ab)],'referenceRevision':_0x4e6745[_0x3d07d1(0xe7)],..._0x4e6745[_0x3d07d1(0x146)]?{'liveResult':_0x4e6745[_0x3d07d1(0x146)]}:null}));}['dispose'](){const _0x2c0afd=_0x15ff4a;for(let _0x5b42b3 of this[_0x2c0afd(0x118)][_0x2c0afd(0x114)]())this[_0x2c0afd(0x109)](_0x5b42b3);this[_0x2c0afd(0x118)][_0x2c0afd(0x147)](),this['_formulaKeys']['clear'](),this[_0x2c0afd(0x149)][_0x2c0afd(0x11b)](),super[_0x2c0afd(0x19e)]();}[_0x15ff4a(0x181)](_0x511d43){const _0x137f0a=_0x15ff4a;let _0x3672da=this[_0x137f0a(0x19b)][_0x137f0a(0x1ba)](_0x511d43[_0x137f0a(0x1c1)]),_0x220ca8=_0x3672da?this['_registrations'][_0x137f0a(0x1ba)](_0x3672da):void 0x0;_0x3672da&&_0x220ca8&&(_0x220ca8[_0x137f0a(0x146)]=_0x511d43,this[_0x137f0a(0x162)](_0x3672da,st(_0x220ca8[_0x137f0a(0x1ab)],_0x511d43)));}[_0x15ff4a(0x162)](_0xdb45c8,_0x2df0d1){const _0x4ee555=_0x15ff4a;var _0xd97d0,_0x4a8174;let _0x12e0be=this[_0x4ee555(0x118)][_0x4ee555(0x1ba)](_0xdb45c8);if(!_0x12e0be||ct(_0x12e0be[_0x4ee555(0x195)],_0x2df0d1))return;let _0x4a8c1d=_0x12e0be['presentation'],_0x1d0642=I(_0x12e0be);_0x12e0be[_0x4ee555(0x195)]=_0x2df0d1,this[_0x4ee555(0x149)]['next']({'unitId':_0x12e0be[_0x4ee555(0x12e)],'rangeId':_0x12e0be['rangeId'],'presentation':_0x2df0d1,'previousPresentation':_0x4a8c1d,'result':I(_0x12e0be),'previousResult':{..._0x1d0642,..._0x4a8c1d,'value':(_0xd97d0=_0x4a8c1d['cell'])==null?void 0x0:_0xd97d0['v'],'valueType':((_0x4a8174=_0x4a8c1d[_0x4ee555(0x13b)])==null?void 0x0:_0x4a8174['t'])??void 0x0}});}['_deleteRegistration'](_0x5eda82){const _0x13e9e4=_0x15ff4a;_0x5eda82[_0x13e9e4(0x1c1)]&&(this[_0x13e9e4(0x143)][_0x13e9e4(0x197)](_0x5eda82[_0x13e9e4(0x12e)],_0x5eda82[_0x13e9e4(0x12e)],[_0x5eda82['formulaId']]),this['_formulaKeys'][_0x13e9e4(0x18a)](_0x5eda82[_0x13e9e4(0x1c1)]));}};P=N([M(0x0,_0x36a610(j)),M(0x1,_0x36a610(_0x540fe4)),M(0x2,_0x36a610(_0xc15eb3))],P);function F(_0x5d87bf,_0x26a51a){return _0x5d87bf+'\x00'+_0x26a51a;}function st(_0x31b5a2,_0x4831cf){const _0x237e5e=_0x15ff4a;return _0x4c2bd5({'numberFormat':_0x31b5a2[_0x237e5e(0x17d)],'lastValue':_0x31b5a2[_0x237e5e(0xeb)],'result':_0x4831cf});}function I(_0x764166){const _0x5b2a56=_0x15ff4a;var _0x2a6c92,_0x36d095,_0x52d7bd;let _0x5c1f88=_0x764166[_0x5b2a56(0x195)],_0x523ebc=_0x764166['config']['formula'][_0x5b2a56(0x12d)]()?_0x5c1f88[_0x5b2a56(0x1a4)]||_0x5c1f88[_0x5b2a56(0x13b)]==null?_0x5b2a56(0xec):((_0x2a6c92=_0x764166[_0x5b2a56(0x146)])==null?void 0x0:_0x2a6c92[_0x5b2a56(0xee)])===_0x462723[_0x5b2a56(0x12b)]?_0x5b2a56(0x178):'success':_0x5b2a56(0x190);return{..._0x5c1f88,'status':_0x523ebc,'value':(_0x36d095=_0x5c1f88[_0x5b2a56(0x13b)])==null?void 0x0:_0x36d095['v'],'valueType':((_0x52d7bd=_0x5c1f88[_0x5b2a56(0x13b)])==null?void 0x0:_0x52d7bd['t'])??void 0x0};}function ct(_0x59b94c,_0x33df5f){const _0x520ed6=_0x15ff4a;var _0x29bd85,_0x152734,_0x56ae02,_0x3c4f14;return _0x59b94c[_0x520ed6(0xe6)]===_0x33df5f[_0x520ed6(0xe6)]&&_0x59b94c[_0x520ed6(0x1bd)]===_0x33df5f[_0x520ed6(0x1bd)]&&_0x59b94c[_0x520ed6(0x167)]===_0x33df5f[_0x520ed6(0x167)]&&_0x59b94c[_0x520ed6(0x134)]===_0x33df5f[_0x520ed6(0x134)]&&_0x59b94c[_0x520ed6(0x1a4)]===_0x33df5f[_0x520ed6(0x1a4)]&&((_0x29bd85=_0x59b94c[_0x520ed6(0x13b)])==null?void 0x0:_0x29bd85['t'])===((_0x152734=_0x33df5f[_0x520ed6(0x13b)])==null?void 0x0:_0x152734['t'])&&Object['is']((_0x56ae02=_0x59b94c[_0x520ed6(0x13b)])==null?void 0x0:_0x56ae02['v'],(_0x3c4f14=_0x33df5f['cell'])==null?void 0x0:_0x3c4f14['v']);}const lt={'id':'docs-formula.mutation.set-formula','type':_0x6c9543[_0x15ff4a(0x185)],'handler':(_0x4499da,_0x267dbe)=>!(_0x267dbe!=null&&_0x267dbe['unitId'])||!_0x267dbe[_0x15ff4a(0x142)]||!_0x267dbe['config']?!0x1:_0x4499da[_0x15ff4a(0x1ba)](j)[_0x15ff4a(0x131)](_0x267dbe[_0x15ff4a(0x12e)],_0x267dbe[_0x15ff4a(0x142)],_0x267dbe[_0x15ff4a(0x1ab)])},ut={'id':'docs-formula.mutation.remove-formula','type':_0x6c9543[_0x15ff4a(0x185)],'handler':(_0x143344,_0x1ca35c)=>!(_0x1ca35c!=null&&_0x1ca35c[_0x15ff4a(0x12e)])||!_0x1ca35c[_0x15ff4a(0x142)]?!0x1:_0x143344[_0x15ff4a(0x1ba)](j)[_0x15ff4a(0x141)](_0x1ca35c[_0x15ff4a(0x12e)],_0x1ca35c[_0x15ff4a(0x142)])},L={'id':_0x15ff4a(0x180),'type':_0x6c9543[_0x15ff4a(0x185)],'handler':(_0x2b9f5d,_0x30f5ed)=>!(_0x30f5ed!=null&&_0x30f5ed['unitId'])||!_0x30f5ed[_0x15ff4a(0x115)]?!0x1:_0x2b9f5d[_0x15ff4a(0x1ba)](j)[_0x15ff4a(0x193)](_0x30f5ed['unitId'],_0x30f5ed[_0x15ff4a(0x115)])},R={'id':_0x15ff4a(0xf8),'type':_0x6c9543['MUTATION'],'handler':(_0x1a7877,_0x1cf0d1)=>{const _0x1d643c=_0x15ff4a;if(!(_0x1cf0d1!=null&&_0x1cf0d1[_0x1d643c(0x12e)])||!_0x1cf0d1[_0x1d643c(0x158)][_0x1d643c(0xcd)])return!0x1;let _0x25d06f=_0x1a7877['get'](j),_0x257a61=_0x1a7877[_0x1d643c(0x1ba)](_0xc15eb3),_0x1afa65=_0x25d06f[_0x1d643c(0x112)](_0x1cf0d1[_0x1d643c(0x12e)]);if(!_0x1afa65)return!0x1;let _0x452539=_0x4fc8e1['deepClone'](_0x1afa65),_0xff299f=!0x1;for(let _0x854e1e of _0x1cf0d1[_0x1d643c(0x158)]){var _0x50e84b,_0x1bebff,_0x10d833,_0x360c30;let _0x338679=_0x452539[_0x1d643c(0x106)][_0x854e1e[_0x1d643c(0x142)]];_0x338679&&_0x338679['formula']===_0x854e1e['expectedFormula']&&((_0x50e84b=_0x338679[_0x1d643c(0x17d)])==null?void 0x0:_0x50e84b[_0x1d643c(0x167)])===_0x854e1e[_0x1d643c(0x150)]&&_0x257a61[_0x1d643c(0x15b)](_0x1cf0d1['unitId'])===_0x854e1e[_0x1d643c(0x17e)]&&(((_0x1bebff=_0x338679[_0x1d643c(0xeb)])==null?void 0x0:_0x1bebff['v'])!==_0x854e1e[_0x1d643c(0xeb)]['v']||((_0x10d833=_0x338679[_0x1d643c(0xeb)])==null?void 0x0:_0x10d833['t'])!==_0x854e1e[_0x1d643c(0xeb)]['t']||((_0x360c30=_0x338679[_0x1d643c(0xeb)])==null?void 0x0:_0x360c30['pattern'])!==_0x854e1e['lastValue'][_0x1d643c(0x167)])&&(_0x338679[_0x1d643c(0xeb)]=_0x4fc8e1[_0x1d643c(0x107)](_0x854e1e[_0x1d643c(0xeb)]),_0xff299f=!0x0);}return!_0xff299f||_0x25d06f['setResource'](_0x1cf0d1[_0x1d643c(0x12e)],_0x452539);}},z={'id':_0x15ff4a(0xd3),'type':_0x6c9543[_0x15ff4a(0x13f)],'handler':(_0x57ccc3,_0x173b6e)=>{const _0x115b2c=_0x15ff4a;if(!(_0x173b6e!=null&&_0x173b6e['formula'][_0x115b2c(0x12d)]()))return!0x1;let _0x3fe1a7=K(_0x57ccc3,_0x173b6e[_0x115b2c(0x12e)],'');if(!_0x3fe1a7)return!0x1;let _0x5dcdc5=ft(_0x173b6e['target'],_0x3fe1a7[_0x115b2c(0x135)],dt(_0x57ccc3,_0x3fe1a7[_0x115b2c(0x12e)]));if(!_0x5dcdc5)return!0x1;let _0x4e4132=pt(_0x57ccc3,_0x3fe1a7[_0x115b2c(0x12e)],_0x173b6e[_0x115b2c(0x1c2)],_0x173b6e[_0x115b2c(0x1ac)]??[]);if(!_0x4e4132)return!0x1;let _0x5f8f74=mt(_0x3fe1a7[_0x115b2c(0x135)],_0x3fe1a7[_0x115b2c(0x126)],_0x3fe1a7[_0x115b2c(0x12e)]),_0x1e7a30=ht({'documentData':_0x3fe1a7['documentData'],'resource':_0x3fe1a7[_0x115b2c(0x115)],'rangeId':_0x5f8f74,'config':{'formula':_0x173b6e[_0x115b2c(0x1c2)],..._0x173b6e['numberFormat']?{'numberFormat':_0x173b6e[_0x115b2c(0x17d)]}:null},'startOffset':_0x5dcdc5['startOffset'],'endOffset':_0x5dcdc5[_0x115b2c(0x11c)]});if(!_0x1e7a30)return!0x1;let _0x5808d4=_0x51ba85(_0x57ccc3,_0x3fe1a7[_0x115b2c(0x12e)],_0x4e4132);return!_0x5808d4||!q({'accessor':_0x57ccc3,'document':_0x3fe1a7[_0x115b2c(0xdf)],'unitId':_0x3fe1a7[_0x115b2c(0x12e)],'trigger':z['id'],'rangeId':_0x5f8f74,'previousResource':_0x3fe1a7[_0x115b2c(0x115)],'nextResource':_0x1e7a30[_0x115b2c(0xe3)],'previousDocumentData':_0x3fe1a7[_0x115b2c(0xe4)],'nextDocumentData':_0x1e7a30[_0x115b2c(0xfa)],'cursorOffset':_0x1e7a30[_0x115b2c(0x154)],'externalMutations':_0x5808d4})?!0x1:{'rangeId':_0x5f8f74,'startOffset':_0x1e7a30[_0x115b2c(0x154)]-0x1,'endOffset':_0x1e7a30[_0x115b2c(0x154)]};}},B={'id':_0x15ff4a(0x1a6),'type':_0x6c9543[_0x15ff4a(0x13f)],'handler':(_0x254f2c,_0x3094fc)=>{const _0x38cdf9=_0x15ff4a;if(!(_0x3094fc!=null&&_0x3094fc[_0x38cdf9(0x142)])||!_0x3094fc['formula'][_0x38cdf9(0x12d)]())return!0x1;let _0x946f76=K(_0x254f2c,_0x3094fc['unitId'],''),_0x18d419=_0x946f76==null?void 0x0:_0x946f76['model'][_0x38cdf9(0xdd)](_0x946f76[_0x38cdf9(0x12e)],_0x3094fc[_0x38cdf9(0x142)]),_0x1e8dc1=_0x946f76?T(_0x946f76[_0x38cdf9(0xe4)][_0x38cdf9(0x135)],_0x3094fc[_0x38cdf9(0x142)]):void 0x0;if(!_0x946f76||!_0x18d419||!_0x1e8dc1)return!0x1;let _0x160756=pt(_0x254f2c,_0x946f76[_0x38cdf9(0x12e)],_0x3094fc['formula'],_0x3094fc['externalReferences']??[]);if(!_0x160756)return!0x1;let _0x3dd232=_0x51ba85(_0x254f2c,_0x946f76['unitId'],_0x160756);if(!_0x3dd232)return!0x1;let _0x2943d9=St(_0x946f76[_0x38cdf9(0x115)]);return _0x2943d9[_0x38cdf9(0x106)][_0x3094fc[_0x38cdf9(0x142)]]={'formula':_0x3094fc['formula'],..._0x3094fc[_0x38cdf9(0x17d)]?{'numberFormat':_0x3094fc[_0x38cdf9(0x17d)]}:_0x18d419[_0x38cdf9(0x17d)]?{'numberFormat':_0x18d419['numberFormat']}:null},q({'accessor':_0x254f2c,'document':_0x946f76[_0x38cdf9(0xdf)],'unitId':_0x946f76[_0x38cdf9(0x12e)],'trigger':B['id'],'rangeId':_0x3094fc[_0x38cdf9(0x142)],'previousResource':_0x946f76[_0x38cdf9(0x115)],'nextResource':_0x2943d9,'cursorOffset':_0x1e8dc1[_0x38cdf9(0xdc)]+0x1,'externalMutations':_0x3dd232});}},V={'id':_0x15ff4a(0x188),'type':_0x6c9543['COMMAND'],'handler':(_0x14d8c2,_0x2c9aae)=>{const _0x452f56=_0x15ff4a;if(!(_0x2c9aae!=null&&_0x2c9aae[_0x452f56(0x142)]))return!0x1;let _0xf8a69c=K(_0x14d8c2,_0x2c9aae[_0x452f56(0x12e)],''),_0x339da6=_0xf8a69c==null?void 0x0:_0xf8a69c['model'][_0x452f56(0xdd)](_0xf8a69c[_0x452f56(0x12e)],_0x2c9aae[_0x452f56(0x142)]),_0x18fe79=_0xf8a69c?T(_0xf8a69c[_0x452f56(0xe4)][_0x452f56(0x135)],_0x2c9aae[_0x452f56(0x142)]):void 0x0;if(!_0xf8a69c||!_0x339da6||!_0x18fe79)return!0x1;let _0x264e9e=St(_0xf8a69c['resource']);return _0x264e9e[_0x452f56(0x106)][_0x2c9aae[_0x452f56(0x142)]]={..._0x339da6,..._0x2c9aae[_0x452f56(0x17d)]?{'numberFormat':_0x2c9aae[_0x452f56(0x17d)]}:null},_0x2c9aae[_0x452f56(0x17d)]||delete _0x264e9e['formulas'][_0x2c9aae['rangeId']][_0x452f56(0x17d)],q({'accessor':_0x14d8c2,'document':_0xf8a69c[_0x452f56(0xdf)],'unitId':_0xf8a69c[_0x452f56(0x12e)],'trigger':V['id'],'rangeId':_0x2c9aae['rangeId'],'previousResource':_0xf8a69c[_0x452f56(0x115)],'nextResource':_0x264e9e,'cursorOffset':_0x18fe79[_0x452f56(0xdc)]+0x1,'externalMutations':{}});}},H={'id':_0x15ff4a(0x169),'type':_0x6c9543[_0x15ff4a(0x13f)],'handler':(_0xb41c57,_0x3335e3)=>G(_0xb41c57,_0x3335e3,'',H['id'])},U={'id':_0x15ff4a(0x105),'type':_0x6c9543[_0x15ff4a(0x13f)],'handler':(_0x53275d,_0x983e62)=>G(_0x53275d,_0x983e62,(_0x983e62==null?void 0x0:_0x983e62[_0x15ff4a(0xe6)])??'',U['id'])},W={'id':_0x15ff4a(0x12f),'type':_0x6c9543['COMMAND'],'handler':(_0x5b8df1,_0x14d70c)=>{const _0x3d7577=_0x15ff4a;if(!(_0x14d70c!=null&&_0x14d70c['rangeId']))return!0x1;let _0x476128=K(_0x5b8df1,_0x14d70c['unitId'],'');if(!_0x476128)return!0x1;let _0x5e6219=_0x5b8df1[_0x3d7577(0x1ba)](P)[_0x3d7577(0x199)]({'unitId':_0x476128['unitId'],'rangeId':_0x14d70c[_0x3d7577(0x142)]});return _0x5e6219?G(_0x5b8df1,_0x14d70c,_0x5e6219[_0x3d7577(0xe6)],W['id']):!0x1;}};function G(_0x58b13f,_0x24fee8,_0x431c50,_0x417425){const _0x23b948=_0x15ff4a;if(!(_0x24fee8!=null&&_0x24fee8[_0x23b948(0x142)]))return!0x1;let _0x57c51e=K(_0x58b13f,_0x24fee8[_0x23b948(0x12e)],'');if(!_0x57c51e)return!0x1;let _0x43c57f=ze({'documentData':_0x57c51e['documentData'],'resource':_0x57c51e[_0x23b948(0x115)],'rangeId':_0x24fee8[_0x23b948(0x142)],'text':_0x431c50});return _0x43c57f?q({'accessor':_0x58b13f,'document':_0x57c51e[_0x23b948(0xdf)],'unitId':_0x57c51e[_0x23b948(0x12e)],'trigger':_0x417425,'rangeId':_0x24fee8[_0x23b948(0x142)],'previousResource':_0x57c51e[_0x23b948(0x115)],'nextResource':_0x43c57f[_0x23b948(0xe3)],'previousDocumentData':_0x57c51e[_0x23b948(0xe4)],'nextDocumentData':_0x43c57f[_0x23b948(0xfa)],'cursorOffset':_0x43c57f['cursorOffset'],'externalMutations':{}}):!0x1;}function K(_0x5e5727,_0x41d431,_0x5140a5){const _0x571b07=_0x15ff4a;if(_0x5140a5)return null;let _0x4e5a59=_0x5e5727[_0x571b07(0x1ba)](_0x48b9a6),_0x1bec40=(_0x41d431?_0x4e5a59[_0x571b07(0x196)](_0x41d431,_0x1d8d65[_0x571b07(0x14b)]):_0x4e5a59[_0x571b07(0x130)](_0x1d8d65[_0x571b07(0x14b)]))??null;if(!_0x1bec40)return null;let _0x3a2ecb=_0x1bec40[_0x571b07(0xf9)](),_0x341634=_0x3a2ecb['body'];if(_0x3a2ecb[_0x571b07(0xed)]||!_0x341634)return null;let _0x5ac678=_0x5e5727[_0x571b07(0x1ba)](j);return _0x5ac678['getLoadError'](_0x1bec40[_0x571b07(0x14d)]())?null:{'document':_0x1bec40,'body':_0x341634,'documentData':_0x3a2ecb,'model':_0x5ac678,'resource':_0x5ac678[_0x571b07(0x112)](_0x1bec40[_0x571b07(0x14d)]())??b(),'unitId':_0x1bec40[_0x571b07(0x14d)]()};}function dt(_0x30119e,_0x4c58a6){var _0x1837e4;return(_0x1837e4=_0x30119e['get'](_0x1ba5ec)['getTextRanges']({'subUnitId':_0x4c58a6,'unitId':_0x4c58a6}))==null?void 0x0:_0x1837e4[0x0];}function ft(_0x5c4935,_0x4f4729,_0x2c5e24){const _0x466528=_0x15ff4a;if((_0x5c4935==null?void 0x0:_0x5c4935[_0x466528(0x123)])===_0x466528(0x165)){var _0x10b7eb;let _0x32ceb8=((_0x10b7eb=_0x4f4729[_0x466528(0x160)])==null?void 0x0:_0x10b7eb[_0x466528(0xfd)](_0x24b5b2=>_0x24b5b2['paragraphId']===_0x5c4935[_0x466528(0x1a3)]))??[];if(_0x32ceb8[_0x466528(0xcd)]!==0x1)return null;let _0x22cfc4=_0x32ceb8[0x0],_0x1bbbf8=_0x3f5de0(_0x4f4729,_0x22cfc4),_0x32492c=_0x22cfc4[_0x466528(0x14c)]-_0x1bbbf8,_0x4de687=_0x5c4935[_0x466528(0x16f)]==='end'?_0x32492c:_0x5c4935[_0x466528(0x16f)];if(!Number['isInteger'](_0x4de687)||_0x4de687<0x0||_0x4de687>_0x32492c)return null;let _0x3fca58=_0x1bbbf8+_0x4de687;return{'startOffset':_0x3fca58,'endOffset':_0x3fca58};}if((_0x5c4935==null?void 0x0:_0x5c4935[_0x466528(0x123)])===_0x466528(0x1b7))return!Number['isInteger'](_0x5c4935[_0x466528(0x171)])||!Number[_0x466528(0x1a9)](_0x5c4935[_0x466528(0x11c)])?null:{'startOffset':Math[_0x466528(0xd4)](_0x5c4935[_0x466528(0x171)],_0x5c4935[_0x466528(0x11c)]),'endOffset':Math[_0x466528(0x129)](_0x5c4935[_0x466528(0x171)],_0x5c4935['endOffset'])};let _0x408f9f=(_0x5c4935==null?void 0x0:_0x5c4935[_0x466528(0x123)])==='selection'?_0x5c4935[_0x466528(0x1aa)]:_0x2c5e24;return!_0x408f9f||_0x408f9f[_0x466528(0x189)]?null:{'startOffset':Math[_0x466528(0xd4)](_0x408f9f['startOffset'],_0x408f9f[_0x466528(0x11c)]),'endOffset':Math[_0x466528(0x129)](_0x408f9f['startOffset'],_0x408f9f[_0x466528(0x11c)])};}function pt(_0x47b19f,_0x269281,_0x2d62f6,_0x1ff615){const _0x2bb949=_0x15ff4a;let _0xab04b=_0x47b19f[_0x2bb949(0x1ba)](_0x5707ab),_0x5d4e39=_0x2d62f6['startsWith']('=')?_0x2d62f6[_0x2bb949(0x116)](0x1):_0x2d62f6,_0x255bdd=_0xab04b[_0x2bb949(0x1b6)](_0x5d4e39);if(!_0x255bdd)return null;let _0x2ccdcd=_0x47b19f[_0x2bb949(0x1ba)](_0xc15eb3),_0x2cc9f2=_0x197c79({'qualifiers':_0x184125(_0x255bdd),'explicitReferences':_0x1ff615??[],'resolveBinding':_0x5f230e=>_0x2ccdcd[_0x2bb949(0x1b8)](_0x269281,_0x5f230e)});return _0x2cc9f2[_0x2bb949(0xee)]===_0x2bb949(0x17c)?_0x2cc9f2['references']:null;}function mt(_0x150197,_0x569b5e,_0x1e1a12){const _0x59ced0=_0x15ff4a;var _0x4a7ab3;let _0x2b57d6=_0x52ed00(0x6);for(;_0x150197!=null&&(_0x4a7ab3=_0x150197[_0x59ced0(0x101)])!=null&&_0x4a7ab3[_0x59ced0(0x153)](_0x406927=>_0x406927[_0x59ced0(0x142)]===_0x2b57d6)||_0x569b5e[_0x59ced0(0xdd)](_0x1e1a12,_0x2b57d6);)_0x2b57d6=_0x52ed00(0x6);return _0x2b57d6;}function ht(_0x5abf35){try{return Le(_0x5abf35);}catch(_0x442a06){if(_0x442a06 instanceof C)return null;throw _0x442a06;}}function gt(_0xe9a5ef){const _0x53e3cd=_0x15ff4a;let _0x12a2ee=_0xe9a5ef['previousDocumentData']&&_0xe9a5ef[_0x53e3cd(0xfa)]?vt(_0xe9a5ef['document'],_0xe9a5ef[_0x53e3cd(0x12e)],_0xe9a5ef[_0x53e3cd(0xf7)],_0xe9a5ef[_0x53e3cd(0xfa)],_0xe9a5ef[_0x53e3cd(0x154)],_0xe9a5ef[_0x53e3cd(0x1c6)]):null;return _0xe9a5ef['previousDocumentData']&&_0xe9a5ef[_0x53e3cd(0xfa)]&&!_0x12a2ee?null:{'documentRedo':_0x12a2ee,'resourceRedo':{'id':L['id'],'params':{'unitId':_0xe9a5ef[_0x53e3cd(0x12e)],'resource':_0xe9a5ef[_0x53e3cd(0xe3)]}},'resourceUndo':{'id':L['id'],'params':{'unitId':_0xe9a5ef['unitId'],'resource':_0xe9a5ef[_0x53e3cd(0x16d)]}}};}function _t(_0x546f17,_0x1612e3,_0x3f7c61,_0x570fdd){const _0x1ebc1d=_0x15ff4a;_0x570fdd[_0x1ebc1d(0x159)]({'id':_0x546f17[_0x1ebc1d(0x1c6)]+':'+_0x546f17[_0x1ebc1d(0x142)],'unitID':_0x546f17['unitId'],'redoMutations':[..._0x546f17['externalMutations'][_0x1ebc1d(0x136)]?[_0x546f17[_0x1ebc1d(0x192)][_0x1ebc1d(0x136)]]:[],..._0x1612e3['documentRedo']?[_0x1612e3[_0x1ebc1d(0x12a)]]:[],_0x1612e3[_0x1ebc1d(0xd1)]],'undoMutations':[_0x1612e3[_0x1ebc1d(0xd9)],..._0x3f7c61?[_0x3f7c61]:[],..._0x546f17[_0x1ebc1d(0x192)][_0x1ebc1d(0x182)]?[_0x546f17[_0x1ebc1d(0x192)][_0x1ebc1d(0x182)]]:[]]});}function q(_0x2e7c83){const _0x260e95=_0x15ff4a;let _0x3ac47a=_0x2e7c83[_0x260e95(0x18f)]['get'](_0x55728f),_0x5171f7=_0x2e7c83['accessor'][_0x260e95(0x1ba)](_0x51122a),_0x5479e0=_0x2e7c83[_0x260e95(0x18f)][_0x260e95(0x1ba)](_0x1ba5ec),_0x54dc5f=gt(_0x2e7c83);if(!_0x54dc5f)return!0x1;let _0x1ff975=!0x1,_0x2a7b36=null,_0x4ee2d2=!0x1;try{if(_0x2e7c83['externalMutations']['redoMutation']){if(!_0x3ac47a[_0x260e95(0x1be)](_0x2e7c83['externalMutations']['redoMutation']['id'],_0x2e7c83[_0x260e95(0x192)]['redoMutation'][_0x260e95(0xd6)]))return!0x1;_0x1ff975=!0x0;}if(_0x54dc5f[_0x260e95(0x12a)]){let _0x36415b=_0x3ac47a[_0x260e95(0x1be)](_0x54dc5f[_0x260e95(0x12a)]['id'],_0x54dc5f['documentRedo'][_0x260e95(0xd6)]);if(!_0x36415b)return J(_0x3ac47a,_0x2e7c83[_0x260e95(0x192)],_0x1ff975),!0x1;_0x2a7b36={'id':_0x3731df['id'],'params':{..._0x36415b,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x3ac47a[_0x260e95(0x1be)](_0x54dc5f[_0x260e95(0xd1)]['id'],_0x54dc5f['resourceRedo'][_0x260e95(0xd6)]))return yt(_0x3ac47a,_0x2a7b36),J(_0x3ac47a,_0x2e7c83['externalMutations'],_0x1ff975),!0x1;_0x4ee2d2=!0x0,_t(_0x2e7c83,_0x54dc5f,_0x2a7b36,_0x5171f7);}catch(_0x5c4861){throw _0x4ee2d2&&_0x3ac47a[_0x260e95(0x1be)](_0x54dc5f[_0x260e95(0xd9)]['id'],_0x54dc5f[_0x260e95(0xd9)][_0x260e95(0xd6)]),yt(_0x3ac47a,_0x2a7b36),J(_0x3ac47a,_0x2e7c83['externalMutations'],_0x1ff975),_0x5c4861;}return _0x5479e0[_0x260e95(0x17b)]([{'startOffset':_0x2e7c83[_0x260e95(0x154)],'endOffset':_0x2e7c83[_0x260e95(0x154)],'segmentId':''}],{'unitId':_0x2e7c83[_0x260e95(0x12e)],'subUnitId':_0x2e7c83[_0x260e95(0x12e)]},!0x1,{[_0x59dee6]:!0x0}),!0x0;}function vt(_0x45b003,_0x2136b2,_0xa027d4,_0x2cab71,_0x52c569,_0x48098f){let _0x450d89=bt(_0xa027d4,_0x2cab71,_0x31e082(_0x45b003,''));return _0x450d89?{'id':_0x3731df['id'],'params':{'unitId':_0x2136b2,'actions':_0x450d89,'segmentId':'','textRanges':[{'startOffset':_0x52c569,'endOffset':_0x52c569,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x48098f}}:null;}function yt(_0x1ecb92,_0x50ff69){const _0x523d88=_0x15ff4a;_0x50ff69&&_0x1ecb92[_0x523d88(0x1be)](_0x50ff69['id'],_0x50ff69[_0x523d88(0xd6)]);}function J(_0x2b47bd,_0x386431,_0x3715a4){const _0x47d1df=_0x15ff4a;_0x3715a4&&_0x386431[_0x47d1df(0x182)]&&_0x2b47bd[_0x47d1df(0x1be)](_0x386431[_0x47d1df(0x182)]['id'],_0x386431[_0x47d1df(0x182)][_0x47d1df(0xd6)]);}function bt(_0x54457d,_0x30aeca,_0x5b3b2c){const _0x5c1f43=_0x15ff4a;let _0x13392d=_0x54457d['body'],_0x154d93=_0x30aeca[_0x5c1f43(0x135)],_0x336bda=xt(_0x13392d==null?void 0x0:_0x13392d[_0x5c1f43(0xcb)],_0x154d93==null?void 0x0:_0x154d93[_0x5c1f43(0xcb)]);if(!_0x336bda||!_0x154d93)return null;let _0x38e80d=new _0x54417a();return _0x38e80d[_0x5c1f43(0x139)](_0x336bda[_0x5c1f43(0x173)]),_0x336bda[_0x5c1f43(0xcf)]>0x0&&_0x38e80d[_0x5c1f43(0x19c)](_0x336bda[_0x5c1f43(0xcf)],_0x4f7aa5(_0x154d93,_0x336bda[_0x5c1f43(0x173)],_0x336bda['start']+_0x336bda[_0x5c1f43(0xcf)],!0x1)),_0x336bda[_0x5c1f43(0x111)]>0x0&&_0x38e80d[_0x5c1f43(0x18a)](_0x336bda[_0x5c1f43(0x111)]),_0x1d02d7['getInstance']()['editOp'](_0x38e80d[_0x5c1f43(0x172)](),_0x5b3b2c);}function xt(_0x4ec429,_0x443713){const _0x5a3aa3=_0x15ff4a;if(_0x4ec429==null||_0x443713==null||_0x4ec429===_0x443713)return null;let _0x3223a0=0x0;for(;_0x3223a0<_0x4ec429['length']&&_0x3223a0<_0x443713[_0x5a3aa3(0xcd)]&&_0x4ec429[_0x3223a0]===_0x443713[_0x3223a0];)_0x3223a0+=0x1;let _0x1fbe36=_0x4ec429[_0x5a3aa3(0xcd)],_0x1da1f5=_0x443713[_0x5a3aa3(0xcd)];for(;_0x1fbe36>_0x3223a0&&_0x1da1f5>_0x3223a0&&_0x4ec429[_0x1fbe36-0x1]===_0x443713[_0x1da1f5-0x1];)--_0x1fbe36,--_0x1da1f5;return{'start':_0x3223a0,'deleteLength':_0x1fbe36-_0x3223a0,'insertLength':_0x1da1f5-_0x3223a0};}function _0x4b4d(){const _0x52b18e=['2595030xHSikP','map','properties','customDecorations','type','removeUnit','11671596AtHcUI','model','_docFormulaModel','assess','max','documentRedo','ERROR','TABLE_START','trim','unitId','docs-formula.command.convert-to-text','getCurrentUnitOfType','setFormula','subscribe','onCommandExecuted','source','body','redoMutation','getPresentation','degradeBody','retain','pluginName','cell','kind','success','_instanceService','COMMAND','3546188NjZjUf','removeFormula','rangeId','_registrationService','collectMutations','_service','liveResult','clear','change$','_presentationChanged$','constructor','UNIVER_DOC','startIndex','getUnitId','resolveText','TABLE_ROW_END','expectedNumberFormat','identity','_commandService','some','cursorOffset','includes','textRuns','COLUMN_GROUP_END','updates','pushUndoRedo','blockRanges','getRevision','6dKAnch','getRegisteredFormulas','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','every','paragraphs','from','_setPresentation','getBody','_resources','paragraph','323645tjhiRG','pattern','parse','docs-formula.command.remove','entries','docs-formula.config','keys','previousResource','presentationChanged$','position','_cacheEligibilityService','startOffset','serialize','start','formulaResult$','_rawResources','syncUnit','CUSTOM','error','default','fromEntries','replaceDocRanges','resolved','numberFormat','expectedReferenceRevision','registerCommand','docs-formula.mutation.set-resource','_updateFormulaResult','undoMutation','getFormulas','has','MUTATION','degradeDocumentData','_formulaService','docs-formula.command.set-number-format','segmentId','delete','Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries','2430410kdcKAR','BLOCK_START','data','accessor','empty','_syncScheduled','externalMutations','setResource','_model','presentation','getUnit','deleteFormula','_pendingUnitIds','getResult','setFormulas','_formulaKeys','insert','push','dispose','TABLE_ROW_START','resources','_loadErrors','PARAGRAPH','paragraphId','stale','@univerjs-pro/docs-formula','docs-formula.command.update','_syncUnit','find','isInteger','selection','config','externalReferences','invalid-resource','COLUMN_GROUP_START','_resourceManagerService','next','sectionBreaks','unitAdded$','object','CUSTOM_BLOCK','disposeWithMe','sequenceNodesBuilder','range','resolveBinding','string','get','asObservable','customBlocks','color','syncExecuteCommand','BLOCK_END','unitDisposed$','formulaId','formula','number','setConfig','univer-docs-formula','trigger','endsWith','dataStream','isArray','length','getOwnPropertyDescriptor','insertLength','tables','resourceRedo','register','docs-formula.command.insert','min','function','params','assign','_configService','resourceUndo','TABLE_CELL_END','_queueSync','endIndex','getFormula','version','document','columnGroups','8yRClmW','310175IXycFu','nextResource','documentData','unregisterUnit','text','referenceRevision','_config','_univerInstanceService','packageName','lastValue','pending','disabled','status','wholeEntity','resolveFormula','rangeType','2994dtImGv','registerProvider','forEach','SECTION_BREAK','TABLE_END','previousDocumentData','docs-formula.mutation.set-last-values','getSnapshot','nextDocumentData','toPrimitive','sort','filter','defineProperty','name','symbol','customRanges','_hostExternalReferenceModel','77hCfNgV','66vTPHWr','docs-formula.command.replace-with-text','formulas','deepClone','stringify','_deleteRegistration','add','1.4.0','eligible','DOC_FORMULA_PLUGIN','_isDisposed','_injector','_preserveInvalid','deleteLength','getResource','unregister','values','resource','slice','getLoadError','_registrations','decorate','set','complete','endOffset','_change$','load'];_0x4b4d=function(){return _0x52b18e;};return _0x4b4d();}function St(_0xcc1ed7){const _0x68bd53=_0x15ff4a;return{'formulas':Object[_0x68bd53(0x17a)](Object[_0x68bd53(0x16a)](_0xcc1ed7[_0x68bd53(0x106)])[_0x68bd53(0x120)](([_0x588a9a,_0x4c214d])=>[_0x588a9a,{..._0x4c214d,..._0x4c214d[_0x68bd53(0x17d)]?{'numberFormat':{..._0x4c214d[_0x68bd53(0x17d)]}}:null,..._0x4c214d[_0x68bd53(0xeb)]?{'lastValue':{..._0x4c214d[_0x68bd53(0xeb)]}}:null}]))};}let Y=class extends _0x284207{constructor(_0x5e178e,_0x25224e,_0x37bd1f,_0x4384b3){const _0xc8b51b=_0x15ff4a;super(),this['_instanceService']=_0x5e178e,this[_0xc8b51b(0x152)]=_0x25224e,this[_0xc8b51b(0x194)]=_0x37bd1f,this['_service']=_0x4384b3,A(this,'_pendingUnitIds',new Set()),A(this,'_syncScheduled',!0x1),A(this,_0xc8b51b(0x10e),!0x1),this['_instanceService']['getAllUnitsForType'](_0x1d8d65['UNIVER_DOC'])[_0xc8b51b(0xf4)](_0x3d457e=>this[_0xc8b51b(0x145)][_0xc8b51b(0x176)](_0x3d457e)),this['disposeWithMe'](this['_model'][_0xc8b51b(0x148)][_0xc8b51b(0x132)](({unitId:_0x9df78c})=>this[_0xc8b51b(0x1a7)](_0x9df78c))),this[_0xc8b51b(0x1b5)](this[_0xc8b51b(0x13e)][_0xc8b51b(0x1b2)][_0xc8b51b(0x132)](({unit:_0x560d39})=>{const _0x13d24f=_0xc8b51b;_0x560d39[_0x13d24f(0x123)]===_0x1d8d65[_0x13d24f(0x14b)]&&this[_0x13d24f(0xdb)](_0x560d39[_0x13d24f(0x14d)]());})),this['disposeWithMe'](this[_0xc8b51b(0x13e)][_0xc8b51b(0x1c0)][_0xc8b51b(0x132)](_0x2ab276=>{const _0x4a7d3e=_0xc8b51b;this[_0x4a7d3e(0x145)][_0x4a7d3e(0xe5)](_0x2ab276[_0x4a7d3e(0x14d)]());})),this['disposeWithMe'](this[_0xc8b51b(0x152)][_0xc8b51b(0x133)](_0x4b8c6e=>{const _0x3f218f=_0xc8b51b;if(_0x4b8c6e['id']===_0x3731df['id']&&Ct(_0x4b8c6e[_0x3f218f(0xd6)])){let _0xf67220=_0x4b8c6e[_0x3f218f(0xd6)];_0xf67220[_0x3f218f(0x189)]||this[_0x3f218f(0x1a7)](_0xf67220[_0x3f218f(0x12e)]);}}));}[_0x15ff4a(0x19e)](){const _0x491277=_0x15ff4a;this[_0x491277(0x10e)]=!0x0,super['dispose']();}[_0x15ff4a(0xdb)](_0x8bcdb7){const _0x5d7b59=_0x15ff4a;this['_pendingUnitIds'][_0x5d7b59(0x10a)](_0x8bcdb7),this['_syncScheduled']||(this[_0x5d7b59(0x191)]=!0x0,queueMicrotask(()=>{const _0x57223e=_0x5d7b59;if(this[_0x57223e(0x191)]=!0x1,this[_0x57223e(0x10e)])return;let _0x28d64a=Array[_0x57223e(0x161)](this[_0x57223e(0x198)]);this[_0x57223e(0x198)][_0x57223e(0x147)](),_0x28d64a[_0x57223e(0xf4)](_0xeb456f=>this[_0x57223e(0x1a7)](_0xeb456f));}));}[_0x15ff4a(0x1a7)](_0x5c1969){const _0x3a9785=_0x15ff4a;let _0x553e5e=this[_0x3a9785(0x13e)]['getUnit'](_0x5c1969,_0x1d8d65[_0x3a9785(0x14b)]);_0x553e5e&&this[_0x3a9785(0x145)][_0x3a9785(0x176)](_0x553e5e);}};Y=N([M(0x0,_0x48b9a6),M(0x1,_0x55728f),M(0x2,_0x36a610(j)),M(0x3,_0x36a610(P))],Y);function Ct(_0x32acf5){const _0x508b9f=_0x15ff4a;return typeof _0x32acf5==_0x508b9f(0x1b3)&&!!_0x32acf5&&'unitId'in _0x32acf5&&typeof _0x32acf5['unitId']==_0x508b9f(0x1b9)&&(!(_0x508b9f(0x189)in _0x32acf5)||_0x32acf5[_0x508b9f(0x189)]===void 0x0||typeof _0x32acf5[_0x508b9f(0x189)]=='string');}let X=class extends _0x284207{constructor(_0x4691a1,_0x8dcc88){const _0x4bde81=_0x15ff4a;super(),this['_resourceManagerService']=_0x4691a1,this[_0x4bde81(0x127)]=_0x8dcc88,this[_0x4bde81(0x1b5)](this[_0x4bde81(0x1af)]['registerPluginResource']({'pluginName':y,'businesses':[_0x1d8d65[_0x4bde81(0x14b)]],'toJson':_0x2f8c67=>JSON[_0x4bde81(0x108)](this['_docFormulaModel']['serialize'](_0x2f8c67)),'parseJson':_0x2636d6=>JSON[_0x4bde81(0x168)](_0x2636d6),'onLoad':(_0x63e948,_0x5217aa)=>{const _0x2a75d4=_0x4bde81;this[_0x2a75d4(0x127)]['load'](_0x63e948,_0x5217aa);},'onUnLoad':_0x291d39=>this[_0x4bde81(0x127)][_0x4bde81(0x124)](_0x291d39)}));}};X=N([M(0x0,_0x103c6c),M(0x1,_0x36a610(j))],X);var wt=_0x15ff4a(0x1a5),Tt=_0x15ff4a(0x10b);const Et={};let Z=class extends _0x284207{constructor(_0x80c966,_0x473a27,_0x3b81a8){const _0x25901d=_0x15ff4a;super(),this[_0x25901d(0xe9)]=_0x80c966,this[_0x25901d(0x187)]=_0x473a27,this['disposeWithMe'](_0x3b81a8[_0x25901d(0xd2)]({'resolve':(_0x207f60,_0x233915)=>{const _0x2ff264=_0x25901d;var _0x50caad;return((_0x50caad=_0x233915[_0x2ff264(0x101)])==null?void 0x0:_0x50caad['filter'](w)[_0x2ff264(0x120)](_0x257e9f=>({'startOffset':_0x257e9f[_0x2ff264(0x14c)],'endOffset':_0x257e9f[_0x2ff264(0xdc)]+0x1,'text':this[_0x2ff264(0xf0)](_0x207f60,_0x257e9f['rangeId'])})))??[];}})),this[_0x25901d(0x1b5)](this[_0x25901d(0x187)][_0x25901d(0x16e)]['subscribe'](({unitId:_0x16423c})=>{_0x3b81a8['notifyTextChanged'](_0x16423c);}));}[_0x15ff4a(0xf0)](_0x4e94c5,_0x237b4b){const _0x31c14d=_0x15ff4a;var _0x2738e6;return((_0x2738e6=this[_0x31c14d(0x187)][_0x31c14d(0x199)]({'unitId':_0x4e94c5,'rangeId':_0x237b4b}))==null?void 0x0:_0x2738e6[_0x31c14d(0xe6)])??'';}[_0x15ff4a(0x14e)](_0x472cfb,_0x876de,_0x571016){const _0x125629=_0x15ff4a;var _0x5aa4ec;let _0x209033=this[_0x125629(0xe9)]['getUnit'](_0x472cfb,_0x1d8d65[_0x125629(0x14b)]),_0x5ea3aa=_0x209033==null?void 0x0:_0x209033[_0x125629(0x163)]();if(!_0x5ea3aa)return'';let _0x2815c8=_0x5ea3aa[_0x125629(0xcb)][_0x125629(0x116)](_0x876de,_0x571016),_0x169f40=((_0x5aa4ec=_0x5ea3aa[_0x125629(0x101)])==null?void 0x0:_0x5aa4ec[_0x125629(0xfd)](_0x3db055=>w(_0x3db055)&&_0x3db055['startIndex']>=_0x876de&&_0x3db055[_0x125629(0xdc)]<_0x571016)['sort']((_0x11e139,_0x4d6aa7)=>_0x4d6aa7['startIndex']-_0x11e139['startIndex']))??[];for(let _0x102b1a of _0x169f40){let _0x4595ff=_0x102b1a[_0x125629(0x14c)]-_0x876de,_0x5285a4=_0x102b1a[_0x125629(0xdc)]-_0x876de+0x1;_0x2815c8=''+_0x2815c8[_0x125629(0x116)](0x0,_0x4595ff)+this[_0x125629(0xf0)](_0x472cfb,_0x102b1a[_0x125629(0x142)])+_0x2815c8[_0x125629(0x116)](_0x5285a4);}return _0x2815c8;}[_0x15ff4a(0x186)](_0x37817c){return Dt(_0x37817c);}[_0x15ff4a(0x138)](_0x19c65c,_0x623b4f,_0xc029d4={}){const _0x4a6779=_0x15ff4a;var _0x53c702;return Be({'id':_0x19c65c,'body':_0x623b4f,'documentStyle':{}},(((_0x53c702=_0x623b4f['customRanges'])==null?void 0x0:_0x53c702[_0x4a6779(0xfd)](w))??[])['map'](_0x25d1f3=>({'rangeId':_0x25d1f3[_0x4a6779(0x142)],'text':_0xc029d4[_0x25d1f3['rangeId']]??this['resolveFormula'](_0x19c65c,_0x25d1f3[_0x4a6779(0x142)])})))[_0x4a6779(0x135)]??{'dataStream':''};}};Z=N([M(0x0,_0x48b9a6),M(0x1,_0x36a610(P)),M(0x2,_0x36a610(_0xebc48d))],Z);function Dt(_0x4519d9){const _0xd0f84f=_0x15ff4a;var _0x39fa38,_0x228214;let _0xc381c2=Ot(_0x4519d9),_0x48af00=Be(_0x4519d9,(((_0x39fa38=_0x4519d9[_0xd0f84f(0x135)])==null||(_0x39fa38=_0x39fa38['customRanges'])==null?void 0x0:_0x39fa38['filter'](w))??[])['map'](_0x3fe27f=>({'rangeId':_0x3fe27f[_0xd0f84f(0x142)],'text':kt(_0xc381c2==null?void 0x0:_0xc381c2[_0xd0f84f(0x106)][_0x3fe27f[_0xd0f84f(0x142)]])})));return _0x48af00[_0xd0f84f(0x1a0)]=(_0x228214=_0x48af00[_0xd0f84f(0x1a0)])==null?void 0x0:_0x228214[_0xd0f84f(0xfd)](_0xc12662=>_0xc12662['name']!==y),_0x48af00;}function Ot(_0x52043c){const _0x11bda2=_0x15ff4a;var _0x5de847;let _0x55c4e0=(_0x5de847=_0x52043c['resources'])==null||(_0x5de847=_0x5de847['find'](_0x31e4cf=>_0x31e4cf[_0x11bda2(0xff)]===_0x11bda2(0x10d)))==null?void 0x0:_0x5de847[_0x11bda2(0x18e)];if(_0x55c4e0)try{let _0x53eadc=JSON[_0x11bda2(0x168)](_0x55c4e0);return x(_0x53eadc)?_0x53eadc:void 0x0;}catch{return;}}function kt(_0x1fa64d){const _0x2b1b96=_0x15ff4a;return _0x1fa64d?_0x4c2bd5({'lastValue':_0x1fa64d['lastValue'],'numberFormat':_0x1fa64d[_0x2b1b96(0x17d)]})['text']:'';}let Q=class extends _0x284207{constructor(_0x1d45d9,_0x5379e5,_0x4cdb6f){const _0x1d778d=_0x15ff4a;super(),this[_0x1d778d(0x187)]=_0x1d45d9,this[_0x1d778d(0x170)]=_0x5379e5,this[_0x1d778d(0x1b5)](_0x4cdb6f[_0x1d778d(0xf3)](this));}[_0x15ff4a(0x144)](_0x14e11d){const _0xdd67af=_0x15ff4a;let _0x1d84af=new Map();for(let _0x1daf92 of this['_formulaService'][_0xdd67af(0x15d)]()){var _0x22d2df;if(!this[_0xdd67af(0x170)][_0xdd67af(0x128)](_0x1daf92[_0xdd67af(0x1ab)][_0xdd67af(0x1c2)],_0x1daf92[_0xdd67af(0x146)])[_0xdd67af(0x10c)])continue;let _0x516dc1=_0x10bd2d(_0x1daf92['liveResult']),_0x1cc1d1=_0x516dc1?_0x4190fe(_0x516dc1):null;if(!_0x1cc1d1||At(_0x1daf92[_0xdd67af(0x1ab)]['lastValue'],_0x1cc1d1))continue;let _0x2e0136=_0x1d84af[_0xdd67af(0x1ba)](_0x1daf92['identity'][_0xdd67af(0x12e)])??[];_0x2e0136[_0xdd67af(0x19d)]({'rangeId':_0x1daf92[_0xdd67af(0x151)]['rangeId'],'expectedFormula':_0x1daf92[_0xdd67af(0x1ab)]['formula'],'expectedNumberFormat':(_0x22d2df=_0x1daf92[_0xdd67af(0x1ab)][_0xdd67af(0x17d)])==null?void 0x0:_0x22d2df[_0xdd67af(0x167)],'expectedReferenceRevision':_0x1daf92[_0xdd67af(0xe7)],'lastValue':_0x1cc1d1}),_0x1d84af[_0xdd67af(0x11a)](_0x1daf92[_0xdd67af(0x151)][_0xdd67af(0x12e)],_0x2e0136);}return Array[_0xdd67af(0x161)](_0x1d84af,([_0x597f02,_0x5c81c3])=>({'id':R['id'],'params':{'unitId':_0x597f02,'updates':_0x5c81c3}}));}};Q=N([M(0x0,_0x36a610(P)),M(0x1,_0x36a610(_0xf3ba79)),M(0x2,_0x36a610(_0x3b1060))],Q);function At(_0x544fd9,_0x5e3d80){const _0x25470b=_0x15ff4a;return(_0x544fd9==null?void 0x0:_0x544fd9['v'])===_0x5e3d80['v']&&(_0x544fd9==null?void 0x0:_0x544fd9['t'])===_0x5e3d80['t']&&(_0x544fd9==null?void 0x0:_0x544fd9[_0x25470b(0x167)])===_0x5e3d80[_0x25470b(0x167)];}let $=class extends _0x2f618a{constructor(_0x26f481=Et,_0x2be03e,_0x3636ca,_0x4c0430){const _0x279e2e=_0x15ff4a;super(),this[_0x279e2e(0xe8)]=_0x26f481,this['_injector']=_0x2be03e,this['_commandService']=_0x3636ca,this['_configService']=_0x4c0430;let {..._0x4c307b}=_0x1725eb({},Et,this['_config']);this[_0x279e2e(0xd8)][_0x279e2e(0x1c4)](_0x279e2e(0x16b),_0x4c307b);}['onStarting'](){const _0x3a4969=_0x15ff4a;this[_0x3a4969(0x10f)]['add']([j]),this[_0x3a4969(0x10f)][_0x3a4969(0x10a)]([P]),this['_injector'][_0x3a4969(0x10a)]([X]),this[_0x3a4969(0x10f)][_0x3a4969(0x10a)]([Y]),this[_0x3a4969(0x10f)]['add']([Q]),this[_0x3a4969(0x10f)][_0x3a4969(0x10a)]([Z]),_0x426a27(this[_0x3a4969(0x10f)],[[j],[X],[Y],[Q],[Z]]),[lt,ut,L,R,z,B,V,H,U,W]['forEach'](_0x17afe2=>this[_0x3a4969(0x1b5)](this[_0x3a4969(0x152)][_0x3a4969(0x17f)](_0x17afe2)));}};A($,_0x15ff4a(0x13a),y),A($,_0x15ff4a(0xea),wt),A($,_0x15ff4a(0xde),Tt),A($,_0x15ff4a(0x123),_0x1d8d65[_0x15ff4a(0x14b)]),$=N([_0x3781b4(_0x52fcce,_0x4ef49e,_0x296e31),M(0x1,_0x36a610(_0xed0b2)),M(0x2,_0x55728f),M(0x3,_0x102468)],$);export{W as ConvertDocFormulaToTextCommand,je as DOC_FORMULA_CUSTOM_RANGE_KIND,Me as DOC_FORMULA_OBJECT_REPLACEMENT,y as DOC_FORMULA_PLUGIN,Z as DocFormulaDisplayTextService,Y as DocFormulaLifecycleController,j as DocFormulaModel,X as DocFormulaResourceController,ot as DocFormulaResultStatus,P as DocFormulaService,z as InsertDocFormulaCommand,C as InvalidDocFormulaInsertRangeError,H as RemoveDocFormulaCommand,ut as RemoveDocFormulaMutation,U as ReplaceDocFormulaWithTextCommand,R as SetDocFormulaLastValuesMutation,lt as SetDocFormulaMutation,V as SetDocFormulaNumberFormatCommand,L as SetDocFormulaResourceMutation,$ as UniverDocsFormulaPlugin,B as UpdateDocFormulaCommand,Ve as assertSafeDocFormulaInsertRange,Le as buildInsertDocFormulaActions,ze as buildRemoveDocFormulaActions,Re as buildUpdateDocFormulaActions,b as createEmptyDocFormulaResource,Dt as degradeDocFormulaDocumentData,T as findDocFormulaRange,Ne as isDocFormulaConfig,w as isDocFormulaRange,x as isDocFormulaResource,Pe as isFormulaLastValue};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { IFormulaLastValue, IFormulaResultPresentation, IHostExternalReference } from '@univerjs-pro/engine-formula';
|
|
2
2
|
import type { CellValueType, ITextRangeParam } from '@univerjs/core';
|
|
3
|
-
import type { DOC_FORMULA_SCHEMA_VERSION } from './const';
|
|
4
3
|
export interface IDocFormulaConfig {
|
|
5
4
|
formula: string;
|
|
6
5
|
numberFormat?: {
|
|
@@ -9,10 +8,9 @@ export interface IDocFormulaConfig {
|
|
|
9
8
|
lastValue?: IFormulaLastValue;
|
|
10
9
|
}
|
|
11
10
|
export interface IDocFormulaResource {
|
|
12
|
-
schemaVersion: typeof DOC_FORMULA_SCHEMA_VERSION;
|
|
13
11
|
formulas: Record<string, IDocFormulaConfig>;
|
|
14
12
|
}
|
|
15
|
-
export type DocFormulaResourceLoadError = 'invalid-resource'
|
|
13
|
+
export type DocFormulaResourceLoadError = 'invalid-resource';
|
|
16
14
|
export declare enum DocFormulaResultStatus {
|
|
17
15
|
EMPTY = "empty",
|
|
18
16
|
PENDING = "pending",
|
package/lib/types/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { RemoveDocFormulaMutation, SetDocFormulaLastValuesMutation, SetDocFormul
|
|
|
4
4
|
export type { IRemoveDocFormulaMutationParams, ISetDocFormulaLastValuesMutationParams, ISetDocFormulaMutationParams, ISetDocFormulaResourceMutationParams, } from './commands/doc-formula.mutation';
|
|
5
5
|
export { assertSafeDocFormulaInsertRange, buildInsertDocFormulaActions, buildRemoveDocFormulaActions, buildUpdateDocFormulaActions, findDocFormulaRange, InvalidDocFormulaInsertRangeError, isDocFormulaRange, } from './common/actions';
|
|
6
6
|
export type { IDocFormulaActionBuildResult, IInsertDocFormulaActionParams, IRemoveDocFormulaActionParams, IUpdateDocFormulaActionParams, } from './common/actions';
|
|
7
|
-
export { DOC_FORMULA_CUSTOM_RANGE_KIND, DOC_FORMULA_OBJECT_REPLACEMENT, DOC_FORMULA_PLUGIN,
|
|
7
|
+
export { DOC_FORMULA_CUSTOM_RANGE_KIND, DOC_FORMULA_OBJECT_REPLACEMENT, DOC_FORMULA_PLUGIN, } from './common/const';
|
|
8
8
|
export { createEmptyDocFormulaResource, isDocFormulaConfig, isDocFormulaResource, isFormulaLastValue, } from './common/resource';
|
|
9
9
|
export { DocFormulaResultStatus, } from './common/type';
|
|
10
10
|
export type { DocFormulaResourceLoadError, IDocFormulaConfig, IDocFormulaInsertCommandParams, IDocFormulaInsertCommandResult, IDocFormulaInsertTarget, IDocFormulaRemoveCommandParams, IDocFormulaResource, IDocFormulaResult, IDocFormulaSetNumberFormatCommandParams, IDocFormulaUpdateCommandParams, } from './common/type';
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0xb5a0(_0x47f063,_0x48eb3b){_0x47f063=_0x47f063-0x193;var _0x3c034e=_0x3c03();var _0xb5a08a=_0x3c034e[_0x47f063];return _0xb5a08a;}(function(_0x393466,_0x575e9f){var _0x539e57=_0xb5a0,_0x30fc7a=_0x393466();while(!![]){try{var _0x48caa1=parseInt(_0x539e57(0x1c8))/0x1+parseInt(_0x539e57(0x1b8))/0x2*(-parseInt(_0x539e57(0x1c6))/0x3)+-parseInt(_0x539e57(0x1a7))/0x4+-parseInt(_0x539e57(0x1be))/0x5+parseInt(_0x539e57(0x19b))/0x6+-parseInt(_0x539e57(0x1b0))/0x7*(-parseInt(_0x539e57(0x1e2))/0x8)+parseInt(_0x539e57(0x1ef))/0x9;if(_0x48caa1===_0x575e9f)break;else _0x30fc7a['push'](_0x30fc7a['shift']());}catch(_0x6c1b94){_0x30fc7a['push'](_0x30fc7a['shift']());}}}(_0x3c03,0x1a4ed),function(_0x1f46c6,_0x35533c){var _0x418243=_0xb5a0;typeof exports==_0x418243(0x19e)&&typeof module<'u'?_0x35533c(exports,require('@univerjs-pro/docs-formula'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define==_0x418243(0x1d3)&&define[_0x418243(0x1b1)]?define([_0x418243(0x1ae),'@univerjs-pro/docs-formula','@univerjs/core','@univerjs/docs/facade'],_0x35533c):(_0x1f46c6=typeof globalThis<'u'?globalThis:_0x1f46c6||self,_0x35533c(_0x1f46c6[_0x418243(0x1d0)]={},_0x1f46c6['UniverProDocsFormula'],_0x1f46c6[_0x418243(0x1e4)],_0x1f46c6[_0x418243(0x1e9)]));}(this,function(_0xeca2dc,_0x55dc41,_0x7d4685,_0x2527dc){var _0x5ba063=_0xb5a0;Object[_0x5ba063(0x1d7)](_0xeca2dc,Symbol['toStringTag'],{'value':_0x5ba063(0x193)});function _0x53eb39(_0x12d4e6,_0x416311){return function(_0x5c4b7f,_0x2dbe2f){_0x416311(_0x5c4b7f,_0x2dbe2f,_0x12d4e6);};}function _0x33b2b1(_0x188a02,_0x2d3eb9,_0x15150f,_0x3ced38){var _0xf66048=_0x5ba063,_0x2abdc5=arguments['length'],_0x10d0db=_0x2abdc5<0x3?_0x2d3eb9:_0x3ced38===null?_0x3ced38=Object['getOwnPropertyDescriptor'](_0x2d3eb9,_0x15150f):_0x3ced38,_0x89229c;if(typeof Reflect==_0xf66048(0x19e)&&typeof Reflect[_0xf66048(0x1d6)]==_0xf66048(0x1d3))_0x10d0db=Reflect[_0xf66048(0x1d6)](_0x188a02,_0x2d3eb9,_0x15150f,_0x3ced38);else{for(var _0x1d6e59=_0x188a02['length']-0x1;_0x1d6e59>=0x0;_0x1d6e59--)(_0x89229c=_0x188a02[_0x1d6e59])&&(_0x10d0db=(_0x2abdc5<0x3?_0x89229c(_0x10d0db):_0x2abdc5>0x3?_0x89229c(_0x2d3eb9,_0x15150f,_0x10d0db):_0x89229c(_0x2d3eb9,_0x15150f))||_0x10d0db);}return _0x2abdc5>0x3&&_0x10d0db&&Object['defineProperty'](_0x2d3eb9,_0x15150f,_0x10d0db),_0x10d0db;}let _0x35ed99=class{constructor(_0x3b9126,_0x453c16,_0x2ff5c5,_0x148591,_0x1ad659,_0x13f82c){var _0x40225e=_0x5ba063;this[_0x40225e(0x1c5)]=_0x3b9126,this[_0x40225e(0x1e8)]=_0x453c16,this['_commandService']=_0x2ff5c5,this[_0x40225e(0x1a2)]=_0x148591,this[_0x40225e(0x1cd)]=_0x1ad659,this['_univerInstanceService']=_0x13f82c;}[_0x5ba063(0x1c1)](){var _0x18e155=_0x5ba063;return this[_0x18e155(0x1e8)];}['getRange'](){var _0x5ea979=_0x5ba063;let _0x1de20d=this[_0x5ea979(0x1b2)]();return _0x1de20d?{'endOffset':_0x1de20d[_0x5ea979(0x19c)]+0x1,'rangeId':_0x1de20d[_0x5ea979(0x1a8)],'startOffset':_0x1de20d[_0x5ea979(0x1d9)]}:null;}[_0x5ba063(0x199)](){var _0x1aa878=_0x5ba063,_0x19e5cd;return((_0x19e5cd=this['_model'][_0x1aa878(0x199)](this[_0x1aa878(0x1c5)],this[_0x1aa878(0x1e8)]))==null?void 0x0:_0x19e5cd[_0x1aa878(0x1f1)])??'';}[_0x5ba063(0x1f4)](){var _0x1a41a3=_0x5ba063;return this[_0x1a41a3(0x1a2)][_0x1a41a3(0x199)](this[_0x1a41a3(0x1c5)],this[_0x1a41a3(0x1e8)])??null;}[_0x5ba063(0x19f)](){var _0x20cfe7=_0x5ba063;return this[_0x20cfe7(0x1cd)][_0x20cfe7(0x19f)]({'unitId':this[_0x20cfe7(0x1c5)],'rangeId':this[_0x20cfe7(0x1e8)]})??null;}[_0x5ba063(0x1c7)](){var _0x53d2b0=_0x5ba063;let _0x278ff9=this[_0x53d2b0(0x1b5)](),_0x3eafb7=this['getConfig'](),_0x559410=this[_0x53d2b0(0x19f)]();return!_0x278ff9||!_0x3eafb7||!_0x559410?null:{..._0x278ff9,'config':_0x3eafb7,'formula':_0x3eafb7[_0x53d2b0(0x1f1)],'result':_0x559410,'type':_0x53d2b0(0x1f1)};}[_0x5ba063(0x1a4)](_0x244c28){var _0x274d0d=_0x5ba063;return this[_0x274d0d(0x19d)][_0x274d0d(0x1ad)](_0x55dc41['UpdateDocFormulaCommand']['id'],{'externalReferences':_0x244c28['externalReferences'],'formula':_0x244c28[_0x274d0d(0x1f1)],'numberFormat':_0x244c28[_0x274d0d(0x1a5)],'rangeId':this[_0x274d0d(0x1e8)],'unitId':this['_unitId']});}[_0x5ba063(0x1e3)](_0x14159f){var _0x9c74be=_0x5ba063;return this[_0x9c74be(0x19d)][_0x9c74be(0x1ad)](_0x55dc41[_0x9c74be(0x1a3)]['id'],{'numberFormat':_0x14159f,'rangeId':this[_0x9c74be(0x1e8)],'unitId':this['_unitId']});}[_0x5ba063(0x196)](){var _0x52a2de=_0x5ba063;return this['_commandService'][_0x52a2de(0x1ad)](_0x55dc41[_0x52a2de(0x1ed)]['id'],{'rangeId':this['_rangeId'],'unitId':this['_unitId']});}[_0x5ba063(0x1dc)](_0x4b7f82){var _0x5c50ee=_0x5ba063;return this['_commandService'][_0x5c50ee(0x1ad)](_0x55dc41['ReplaceDocFormulaWithTextCommand']['id'],{'rangeId':this[_0x5c50ee(0x1e8)],'text':_0x4b7f82,'unitId':this['_unitId']});}['convertToText'](){var _0x49ce68=_0x5ba063;return this['_commandService'][_0x49ce68(0x1ad)](_0x55dc41[_0x49ce68(0x1dd)]['id'],{'rangeId':this[_0x49ce68(0x1e8)],'unitId':this[_0x49ce68(0x1c5)]});}[_0x5ba063(0x1b2)](){var _0x5de28a=_0x5ba063,_0x2fa65b;let _0xf52f71=this[_0x5de28a(0x1bb)][_0x5de28a(0x1ca)](this[_0x5de28a(0x1c5)],_0x7d4685['UniverInstanceType'][_0x5de28a(0x1e7)]);return _0xf52f71==null||(_0x2fa65b=_0xf52f71[_0x5de28a(0x1cf)]()[_0x5de28a(0x1d2)])==null||(_0x2fa65b=_0x2fa65b['customRanges'])==null?void 0x0:_0x2fa65b[_0x5de28a(0x1aa)](_0x485aec=>_0x485aec[_0x5de28a(0x1a8)]===this[_0x5de28a(0x1e8)]&&(0x0,_0x55dc41[_0x5de28a(0x1df)])(_0x485aec));}};_0x35ed99=_0x33b2b1([_0x53eb39(0x2,_0x7d4685[_0x5ba063(0x1cc)]),_0x53eb39(0x3,(0x0,_0x7d4685[_0x5ba063(0x1b7)])(_0x55dc41[_0x5ba063(0x1ec)])),_0x53eb39(0x4,(0x0,_0x7d4685['Inject'])(_0x55dc41[_0x5ba063(0x1b3)])),_0x53eb39(0x5,_0x7d4685[_0x5ba063(0x1c3)])],_0x35ed99);function _0x2fa143(_0x2c8b6e){'@babel/helpers - typeof';var _0xfe1d7f=_0x5ba063;return _0x2fa143=typeof Symbol==_0xfe1d7f(0x1d3)&&typeof Symbol[_0xfe1d7f(0x1c2)]==_0xfe1d7f(0x1f3)?function(_0x14c308){return typeof _0x14c308;}:function(_0xfc86a0){var _0xf44d30=_0xfe1d7f;return _0xfc86a0&&typeof Symbol==_0xf44d30(0x1d3)&&_0xfc86a0[_0xf44d30(0x197)]===Symbol&&_0xfc86a0!==Symbol[_0xf44d30(0x1e1)]?_0xf44d30(0x1f3):typeof _0xfc86a0;},_0x2fa143(_0x2c8b6e);}function _0x59e04c(_0x528edf,_0x15b398){var _0x45e655=_0x5ba063;if(_0x2fa143(_0x528edf)!=_0x45e655(0x19e)||!_0x528edf)return _0x528edf;var _0x354a45=_0x528edf[Symbol[_0x45e655(0x1f5)]];if(_0x354a45!==void 0x0){var _0x331932=_0x354a45[_0x45e655(0x195)](_0x528edf,_0x15b398||_0x45e655(0x1cb));if(_0x2fa143(_0x331932)!=_0x45e655(0x19e))return _0x331932;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x15b398===_0x45e655(0x1e6)?String:Number)(_0x528edf);}function _0x57a35b(_0x5afabb){var _0x25e551=_0x5ba063,_0x4b1280=_0x59e04c(_0x5afabb,_0x25e551(0x1e6));return _0x2fa143(_0x4b1280)==_0x25e551(0x1f3)?_0x4b1280:_0x4b1280+'';}function _0x116288(_0x179d23,_0x480444,_0x11495e){var _0x2fbb25=_0x5ba063;return(_0x480444=_0x57a35b(_0x480444))in _0x179d23?Object[_0x2fbb25(0x1d7)](_0x179d23,_0x480444,{'value':_0x11495e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x179d23[_0x480444]=_0x11495e,_0x179d23;}var _0x50c256=class extends _0x2527dc[_0x5ba063(0x1eb)]{constructor(..._0x50ab7e){var _0x56acb8=_0x5ba063;super(..._0x50ab7e),_0x116288(this,_0x56acb8(0x19a),void 0x0),_0x116288(this,_0x56acb8(0x1f0),void 0x0),_0x116288(this,'_docsFormulaModel',void 0x0),_0x116288(this,'_docsFormulaResourceLoaderService',void 0x0);}['_initialize'](_0x1b370c){var _0x38b1c8=_0x5ba063;this['_docsFormulaCommandService']=_0x1b370c[_0x38b1c8(0x1d8)](_0x7d4685['ICommandService']),this[_0x38b1c8(0x1f0)]=_0x1b370c[_0x38b1c8(0x1d8)](_0x55dc41[_0x38b1c8(0x1ce)]),this[_0x38b1c8(0x1e0)]=_0x1b370c[_0x38b1c8(0x1d8)](_0x55dc41['DocFormulaModel']),this['_docsFormulaResourceLoaderService']=_0x1b370c['get'](_0x7d4685[_0x38b1c8(0x1c0)]);}[_0x5ba063(0x1db)](){var _0x37ad71=_0x5ba063;return this[_0x37ad71(0x1bf)]()[_0x37ad71(0x1ba)](_0x1a244c=>this[_0x37ad71(0x1c9)](_0x1a244c['rangeId']));}['getFormula'](_0x395a1d){return this['_getCompleteRanges']()['some'](_0xcd1c97=>_0xcd1c97['rangeId']===_0x395a1d)?this['_createFormula'](_0x395a1d):null;}[_0x5ba063(0x1c4)](_0x59d6e8){var _0x3e2671=_0x5ba063;let _0x1ca88b=this[_0x3e2671(0x1bf)]()[_0x3e2671(0x1aa)](_0x459135=>_0x459135[_0x3e2671(0x1d9)]<=_0x59d6e8&&_0x59d6e8<=_0x459135[_0x3e2671(0x19c)]);return _0x1ca88b?this[_0x3e2671(0x1c9)](_0x1ca88b[_0x3e2671(0x1a8)]):null;}[_0x5ba063(0x1a6)](){var _0x56e5d4=_0x5ba063;let _0x210293=this['_docsFormulaResourceLoaderService']['saveUnit'](this['id']);if(!_0x210293)throw Error(_0x56e5d4(0x1de)+this['id']+'\x20could\x20not\x20be\x20serialized.');return this['_docsFormulaDisplayTextService'][_0x56e5d4(0x1ea)](_0x210293);}[_0x5ba063(0x1da)](_0x2083d2){var _0x46510d=_0x5ba063;return this[_0x46510d(0x1d1)]({'externalReferences':_0x2083d2[_0x46510d(0x1f2)],'formula':_0x2083d2['formula'],'numberFormat':_0x2083d2[_0x46510d(0x1a5)],'target':{'type':'range','startOffset':_0x2083d2[_0x46510d(0x1ee)],'endOffset':_0x2083d2['endOffset']},'unitId':this[_0x46510d(0x1c1)]()});}[_0x5ba063(0x1d1)](_0x1b500e){var _0x5f5d8c=_0x5ba063;let _0x143380=this[_0x5f5d8c(0x19a)]['syncExecuteCommand'](_0x55dc41[_0x5f5d8c(0x1a0)]['id'],_0x1b500e);return _0x143380?this[_0x5f5d8c(0x1c9)](_0x143380[_0x5f5d8c(0x1a8)]):null;}[_0x5ba063(0x1bf)](){var _0xaaa46f=_0x5ba063,_0x174280;let _0x46690b=this[_0xaaa46f(0x1e0)][_0xaaa46f(0x1db)](this[_0xaaa46f(0x1c1)]());return((_0x174280=this[_0xaaa46f(0x1b6)]('')[_0xaaa46f(0x1d4)])==null?void 0x0:_0x174280[_0xaaa46f(0x1e5)](_0x36bb1e=>(0x0,_0x55dc41[_0xaaa46f(0x1df)])(_0x36bb1e)&&_0x46690b[_0x36bb1e['rangeId']]!=null))??[];}[_0x5ba063(0x1c9)](_0x5c2e66){var _0x5d933a=_0x5ba063;return this[_0x5d933a(0x1bc)][_0x5d933a(0x194)](_0x35ed99,this[_0x5d933a(0x1c1)](),_0x5c2e66);}};_0x2527dc['FDocument'][_0x5ba063(0x1b9)](_0x50c256);var _0x50524a=class extends _0x2527dc[_0x5ba063(0x1a9)]{constructor(..._0x20dd38){var _0xca961e=_0x5ba063;super(..._0x20dd38),_0x116288(this,_0xca961e(0x19a),void 0x0);}['_initialize'](_0x111d33){var _0x3d2cc8=_0x5ba063;this[_0x3d2cc8(0x19a)]=_0x111d33[_0x3d2cc8(0x1d8)](_0x7d4685[_0x3d2cc8(0x1cc)]);}['insertFormula'](_0x3e771a,_0x258356,_0x283a92={}){var _0x31f138=_0x5ba063;return this[_0x31f138(0x1d1)](_0x3e771a,_0x258356,_0x283a92);}[_0x5ba063(0x1a1)](_0x522d97,_0x5d2a55={}){var _0x216731=_0x5ba063;return this['_insert'](_0x216731(0x1ab),_0x522d97,_0x5d2a55);}[_0x5ba063(0x1d1)](_0x12ad42,_0x2a237f,_0x5e2b86){var _0x55fa40=_0x5ba063;if(this[_0x55fa40(0x1ac)]())return null;let _0x12b43e={'externalReferences':_0x5e2b86[_0x55fa40(0x1f2)],'formula':_0x2a237f,'numberFormat':_0x5e2b86[_0x55fa40(0x1a5)],'target':{'type':_0x55fa40(0x1bd),'paragraphId':this['getId'](),'position':_0x12ad42},'unitId':this['_document'][_0x55fa40(0x1c1)]()},_0x5b5160=this[_0x55fa40(0x19a)][_0x55fa40(0x1ad)](_0x55dc41['InsertDocFormulaCommand']['id'],_0x12b43e);return _0x5b5160?this[_0x55fa40(0x1bc)][_0x55fa40(0x194)](_0x35ed99,this['_document'][_0x55fa40(0x1c1)](),_0x5b5160['rangeId']):null;}};_0x2527dc['FDocumentParagraph'][_0x5ba063(0x1b9)](_0x50524a);var _0x9d70b5=class extends _0x2527dc[_0x5ba063(0x1b4)]{constructor(..._0x5d17df){var _0x4fb4dd=_0x5ba063;super(..._0x5d17df),_0x116288(this,_0x4fb4dd(0x19a),void 0x0);}['_initialize'](_0x3e3820){var _0x66f35b=_0x5ba063;this[_0x66f35b(0x19a)]=_0x3e3820[_0x66f35b(0x1d8)](_0x7d4685[_0x66f35b(0x1cc)]);}[_0x5ba063(0x1d5)](_0x398e11,_0x1b7373={}){var _0x1bc618=_0x5ba063;let {endOffset:_0x490985,segmentId:_0x14d8ef,startOffset:_0x1e9930}=this[_0x1bc618(0x1b5)]();return _0x14d8ef?null:this[_0x1bc618(0x1d1)](_0x1e9930,_0x490985,_0x398e11,_0x1b7373);}[_0x5ba063(0x1d1)](_0x1f2b08,_0x151aa0,_0x130177,_0x5350ae){var _0x1a61b4=_0x5ba063;let _0x2b5043={'externalReferences':_0x5350ae[_0x1a61b4(0x1f2)],'formula':_0x130177,'numberFormat':_0x5350ae[_0x1a61b4(0x1a5)],'target':{'type':_0x1a61b4(0x198),'startOffset':_0x1f2b08,'endOffset':_0x151aa0},'unitId':this[_0x1a61b4(0x1af)][_0x1a61b4(0x1c1)]()},_0x3076b5=this['_docsFormulaCommandService'][_0x1a61b4(0x1ad)](_0x55dc41[_0x1a61b4(0x1a0)]['id'],_0x2b5043);return _0x3076b5?this[_0x1a61b4(0x1bc)][_0x1a61b4(0x194)](_0x35ed99,this['_document'][_0x1a61b4(0x1c1)](),_0x3076b5[_0x1a61b4(0x1a8)]):null;}};_0x2527dc[_0x5ba063(0x1b4)][_0x5ba063(0x1b9)](_0x9d70b5),Object[_0x5ba063(0x1d7)](_0xeca2dc,'FDocumentFormula',{'enumerable':!0x0,'get':function(){return _0x35ed99;}});}));function _0x3c03(){var _0x2de655=['_injector','paragraph','604915pEnvfw','_getCompleteRanges','IResourceLoaderService','getId','iterator','IUniverInstanceService','getFormulaAt','_unitId','211629oZZhXO','describe','179125pjrshG','_createFormula','getUnit','default','ICommandService','_service','DocFormulaDisplayTextService','getSnapshot','UniverProDocsFormulaFacade','_insert','body','function','customRanges','replaceWithFormula','decorate','defineProperty','get','startIndex','insertFormula','getFormulas','replaceWithText','ConvertDocFormulaToTextCommand','Document\x20','isDocFormulaRange','_docsFormulaModel','prototype','15800OQMaxx','setNumberFormat','UniverCore','filter','string','UNIVER_DOC','_rangeId','UniverDocsFacade','degradeDocumentData','FDocument','DocFormulaModel','RemoveDocFormulaCommand','startOffset','411615ZiSDyS','_docsFormulaDisplayTextService','formula','externalReferences','symbol','getConfig','toPrimitive','Module','createInstance','call','remove','constructor','range','getFormula','_docsFormulaCommandService','513198ROZRyv','endIndex','_commandService','object','getResult','InsertDocFormulaCommand','appendFormula','_model','SetDocFormulaNumberFormatCommand','update','numberFormat','saveFormulaDisplayTextSnapshot','270096mAqQxj','rangeId','FDocumentParagraph','find','end','getSegmentId','syncExecuteCommand','exports','_document','700aGJIEI','amd','_getCustomRange','DocFormulaService','FDocumentTextRange','getRange','getBody','Inject','6nYFQQS','extend','map','_univerInstanceService'];_0x3c03=function(){return _0x2de655;};return _0x3c03();}
|
|
1
|
+
function _0x56ee(_0xfc1433,_0xb38213){_0xfc1433=_0xfc1433-0xf9;var _0x26a440=_0x26a4();var _0x56eebe=_0x26a440[_0xfc1433];return _0x56eebe;}(function(_0x808e79,_0x1c2a8e){var _0x14d4e1=_0x56ee,_0x3a7717=_0x808e79();while(!![]){try{var _0x5576c6=-parseInt(_0x14d4e1(0x154))/0x1*(parseInt(_0x14d4e1(0xfa))/0x2)+parseInt(_0x14d4e1(0x119))/0x3*(parseInt(_0x14d4e1(0xfd))/0x4)+parseInt(_0x14d4e1(0x123))/0x5*(parseInt(_0x14d4e1(0x14c))/0x6)+parseInt(_0x14d4e1(0x12f))/0x7*(-parseInt(_0x14d4e1(0x145))/0x8)+parseInt(_0x14d4e1(0x105))/0x9*(-parseInt(_0x14d4e1(0x11b))/0xa)+-parseInt(_0x14d4e1(0x13c))/0xb+-parseInt(_0x14d4e1(0x141))/0xc*(-parseInt(_0x14d4e1(0x11a))/0xd);if(_0x5576c6===_0x1c2a8e)break;else _0x3a7717['push'](_0x3a7717['shift']());}catch(_0x4837ea){_0x3a7717['push'](_0x3a7717['shift']());}}}(_0x26a4,0x53043),function(_0x3bea65,_0x303dd8){var _0x32d848=_0x56ee;typeof exports=='object'&&typeof module<'u'?_0x303dd8(exports,require('@univerjs-pro/docs-formula'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define=='function'&&define[_0x32d848(0x115)]?define([_0x32d848(0x14b),_0x32d848(0x12b),_0x32d848(0x159),_0x32d848(0x10d)],_0x303dd8):(_0x3bea65=typeof globalThis<'u'?globalThis:_0x3bea65||self,_0x303dd8(_0x3bea65[_0x32d848(0x113)]={},_0x3bea65[_0x32d848(0x106)],_0x3bea65[_0x32d848(0x164)],_0x3bea65[_0x32d848(0x11e)]));}(this,function(_0x468e00,_0x11b651,_0x4b7a43,_0x136af6){var _0x774c45=_0x56ee;Object[_0x774c45(0x10e)](_0x468e00,Symbol[_0x774c45(0x10b)],{'value':_0x774c45(0xfb)});function _0x509c48(_0x26797a,_0x4a13e6){return function(_0x489d91,_0x581ff8){_0x4a13e6(_0x489d91,_0x581ff8,_0x26797a);};}function _0x7c7a44(_0x202c46,_0xe77528,_0x4aead7,_0x688a24){var _0x58e445=_0x774c45,_0x40639c=arguments[_0x58e445(0x107)],_0x1d9ea0=_0x40639c<0x3?_0xe77528:_0x688a24===null?_0x688a24=Object[_0x58e445(0x14a)](_0xe77528,_0x4aead7):_0x688a24,_0x267a2c;if(typeof Reflect=='object'&&typeof Reflect[_0x58e445(0x102)]==_0x58e445(0xf9))_0x1d9ea0=Reflect[_0x58e445(0x102)](_0x202c46,_0xe77528,_0x4aead7,_0x688a24);else{for(var _0x403c9c=_0x202c46[_0x58e445(0x107)]-0x1;_0x403c9c>=0x0;_0x403c9c--)(_0x267a2c=_0x202c46[_0x403c9c])&&(_0x1d9ea0=(_0x40639c<0x3?_0x267a2c(_0x1d9ea0):_0x40639c>0x3?_0x267a2c(_0xe77528,_0x4aead7,_0x1d9ea0):_0x267a2c(_0xe77528,_0x4aead7))||_0x1d9ea0);}return _0x40639c>0x3&&_0x1d9ea0&&Object[_0x58e445(0x10e)](_0xe77528,_0x4aead7,_0x1d9ea0),_0x1d9ea0;}let _0x48ed39=class{constructor(_0x7937c4,_0x32a44c,_0x534438,_0x26b114,_0x26c7bf,_0x57308f){var _0x4f7881=_0x774c45;this['_unitId']=_0x7937c4,this[_0x4f7881(0x14d)]=_0x32a44c,this[_0x4f7881(0x121)]=_0x534438,this[_0x4f7881(0x13f)]=_0x26b114,this[_0x4f7881(0x151)]=_0x26c7bf,this[_0x4f7881(0x10a)]=_0x57308f;}[_0x774c45(0x14f)](){return this['_rangeId'];}[_0x774c45(0x166)](){var _0x461c4b=_0x774c45;let _0x349ce5=this[_0x461c4b(0x150)]();return _0x349ce5?{'endOffset':_0x349ce5['endIndex']+0x1,'rangeId':_0x349ce5[_0x461c4b(0x109)],'startOffset':_0x349ce5[_0x461c4b(0x111)]}:null;}[_0x774c45(0x157)](){var _0x46056b=_0x774c45,_0x3af9dd;return((_0x3af9dd=this[_0x46056b(0x13f)]['getFormula'](this['_unitId'],this[_0x46056b(0x14d)]))==null?void 0x0:_0x3af9dd[_0x46056b(0x124)])??'';}[_0x774c45(0x122)](){var _0xc88dbd=_0x774c45;return this[_0xc88dbd(0x13f)]['getFormula'](this[_0xc88dbd(0x155)],this[_0xc88dbd(0x14d)])??null;}[_0x774c45(0x148)](){var _0x16216a=_0x774c45;return this['_service'][_0x16216a(0x148)]({'unitId':this['_unitId'],'rangeId':this[_0x16216a(0x14d)]})??null;}['describe'](){var _0x27b3e8=_0x774c45;let _0x47b85a=this[_0x27b3e8(0x166)](),_0x28906e=this[_0x27b3e8(0x122)](),_0x5d8e7b=this['getResult']();return!_0x47b85a||!_0x28906e||!_0x5d8e7b?null:{..._0x47b85a,'config':_0x28906e,'formula':_0x28906e['formula'],'result':_0x5d8e7b,'type':'formula'};}[_0x774c45(0x13d)](_0x3ab101){var _0x34a3a1=_0x774c45;return this[_0x34a3a1(0x121)][_0x34a3a1(0x12c)](_0x11b651[_0x34a3a1(0x120)]['id'],{'externalReferences':_0x3ab101[_0x34a3a1(0x160)],'formula':_0x3ab101['formula'],'numberFormat':_0x3ab101[_0x34a3a1(0x15e)],'rangeId':this['_rangeId'],'unitId':this[_0x34a3a1(0x155)]});}[_0x774c45(0x108)](_0x1b2bef){var _0xa542b6=_0x774c45;return this[_0xa542b6(0x121)]['syncExecuteCommand'](_0x11b651[_0xa542b6(0x12d)]['id'],{'numberFormat':_0x1b2bef,'rangeId':this[_0xa542b6(0x14d)],'unitId':this[_0xa542b6(0x155)]});}[_0x774c45(0x15a)](){var _0x5a9f15=_0x774c45;return this[_0x5a9f15(0x121)]['syncExecuteCommand'](_0x11b651[_0x5a9f15(0x10f)]['id'],{'rangeId':this[_0x5a9f15(0x14d)],'unitId':this['_unitId']});}[_0x774c45(0x11d)](_0x4c1095){var _0x2fdd27=_0x774c45;return this[_0x2fdd27(0x121)][_0x2fdd27(0x12c)](_0x11b651[_0x2fdd27(0x118)]['id'],{'rangeId':this[_0x2fdd27(0x14d)],'text':_0x4c1095,'unitId':this[_0x2fdd27(0x155)]});}[_0x774c45(0x139)](){var _0x10b068=_0x774c45;return this['_commandService']['syncExecuteCommand'](_0x11b651[_0x10b068(0x132)]['id'],{'rangeId':this[_0x10b068(0x14d)],'unitId':this[_0x10b068(0x155)]});}[_0x774c45(0x150)](){var _0x3cf7b9=_0x774c45,_0x427eb2;let _0x5cc528=this[_0x3cf7b9(0x10a)][_0x3cf7b9(0x15b)](this[_0x3cf7b9(0x155)],_0x4b7a43[_0x3cf7b9(0x156)][_0x3cf7b9(0x152)]);return _0x5cc528==null||(_0x427eb2=_0x5cc528[_0x3cf7b9(0x133)]()[_0x3cf7b9(0x135)])==null||(_0x427eb2=_0x427eb2[_0x3cf7b9(0x112)])==null?void 0x0:_0x427eb2[_0x3cf7b9(0x147)](_0x2a4e36=>_0x2a4e36[_0x3cf7b9(0x109)]===this[_0x3cf7b9(0x14d)]&&(0x0,_0x11b651[_0x3cf7b9(0x15f)])(_0x2a4e36));}};_0x48ed39=_0x7c7a44([_0x509c48(0x2,_0x4b7a43[_0x774c45(0x162)]),_0x509c48(0x3,(0x0,_0x4b7a43[_0x774c45(0x146)])(_0x11b651[_0x774c45(0x142)])),_0x509c48(0x4,(0x0,_0x4b7a43[_0x774c45(0x146)])(_0x11b651[_0x774c45(0x117)])),_0x509c48(0x5,_0x4b7a43[_0x774c45(0x114)])],_0x48ed39);function _0x5c30bb(_0x520fa7){'@babel/helpers - typeof';var _0x4704a2=_0x774c45;return _0x5c30bb=typeof Symbol==_0x4704a2(0xf9)&&typeof Symbol[_0x4704a2(0x144)]==_0x4704a2(0x140)?function(_0x3c8468){return typeof _0x3c8468;}:function(_0x398060){var _0x5da03a=_0x4704a2;return _0x398060&&typeof Symbol==_0x5da03a(0xf9)&&_0x398060[_0x5da03a(0x13a)]===Symbol&&_0x398060!==Symbol[_0x5da03a(0x13b)]?_0x5da03a(0x140):typeof _0x398060;},_0x5c30bb(_0x520fa7);}function _0x5bbabd(_0xaf2127,_0x43b841){var _0x515769=_0x774c45;if(_0x5c30bb(_0xaf2127)!=_0x515769(0xfc)||!_0xaf2127)return _0xaf2127;var _0x3c736b=_0xaf2127[Symbol[_0x515769(0x15d)]];if(_0x3c736b!==void 0x0){var _0x5eaea8=_0x3c736b[_0x515769(0x128)](_0xaf2127,_0x43b841||_0x515769(0x153));if(_0x5c30bb(_0x5eaea8)!=_0x515769(0xfc))return _0x5eaea8;throw TypeError(_0x515769(0x10c));}return(_0x43b841===_0x515769(0x110)?String:Number)(_0xaf2127);}function _0x50503b(_0x18263c){var _0xe7d41f=_0x774c45,_0x19effd=_0x5bbabd(_0x18263c,_0xe7d41f(0x110));return _0x5c30bb(_0x19effd)==_0xe7d41f(0x140)?_0x19effd:_0x19effd+'';}function _0x469ca1(_0x41bd04,_0x5c9fae,_0x1a4d78){var _0x525dbd=_0x774c45;return(_0x5c9fae=_0x50503b(_0x5c9fae))in _0x41bd04?Object[_0x525dbd(0x10e)](_0x41bd04,_0x5c9fae,{'value':_0x1a4d78,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x41bd04[_0x5c9fae]=_0x1a4d78,_0x41bd04;}var _0x5177a7=class extends _0x136af6['FDocument']{constructor(..._0x288814){var _0x1cf902=_0x774c45;super(..._0x288814),_0x469ca1(this,_0x1cf902(0x13e),void 0x0),_0x469ca1(this,_0x1cf902(0x134),void 0x0),_0x469ca1(this,_0x1cf902(0x11f),void 0x0),_0x469ca1(this,_0x1cf902(0x165),void 0x0);}['_initialize'](_0x6d10ad){var _0x495a01=_0x774c45;this[_0x495a01(0x13e)]=_0x6d10ad[_0x495a01(0x116)](_0x4b7a43[_0x495a01(0x162)]),this[_0x495a01(0x134)]=_0x6d10ad[_0x495a01(0x116)](_0x11b651['DocFormulaDisplayTextService']),this[_0x495a01(0x11f)]=_0x6d10ad[_0x495a01(0x116)](_0x11b651[_0x495a01(0x142)]),this[_0x495a01(0x165)]=_0x6d10ad['get'](_0x4b7a43['IResourceLoaderService']);}['getFormulas'](){var _0x13900e=_0x774c45;return this[_0x13900e(0x12e)]()['map'](_0x5255b1=>this['_createFormula'](_0x5255b1[_0x13900e(0x109)]));}[_0x774c45(0x157)](_0x3868e3){var _0x491f6c=_0x774c45;return this[_0x491f6c(0x12e)]()['some'](_0x4e1b12=>_0x4e1b12['rangeId']===_0x3868e3)?this[_0x491f6c(0x101)](_0x3868e3):null;}['getFormulaAt'](_0x4786d1){var _0x1b0f9b=_0x774c45;let _0x34289a=this['_getCompleteRanges']()[_0x1b0f9b(0x147)](_0x33fdc6=>_0x33fdc6[_0x1b0f9b(0x111)]<=_0x4786d1&&_0x4786d1<=_0x33fdc6[_0x1b0f9b(0x127)]);return _0x34289a?this[_0x1b0f9b(0x101)](_0x34289a[_0x1b0f9b(0x109)]):null;}[_0x774c45(0x136)](){var _0x4363a0=_0x774c45;let _0x5cad5f=this[_0x4363a0(0x165)]['saveUnit'](this['id']);if(!_0x5cad5f)throw Error('Document\x20'+this['id']+_0x4363a0(0x104));return this['_docsFormulaDisplayTextService'][_0x4363a0(0x137)](_0x5cad5f);}[_0x774c45(0x143)](_0x1450da){var _0x26826d=_0x774c45;return this[_0x26826d(0x11c)]({'externalReferences':_0x1450da['externalReferences'],'formula':_0x1450da['formula'],'numberFormat':_0x1450da['numberFormat'],'target':{'type':'range','startOffset':_0x1450da['startOffset'],'endOffset':_0x1450da['endOffset']},'unitId':this[_0x26826d(0x14f)]()});}[_0x774c45(0x11c)](_0x5808c9){var _0x13243c=_0x774c45;let _0x53a2a6=this[_0x13243c(0x13e)]['syncExecuteCommand'](_0x11b651[_0x13243c(0x12a)]['id'],_0x5808c9);return _0x53a2a6?this[_0x13243c(0x101)](_0x53a2a6[_0x13243c(0x109)]):null;}['_getCompleteRanges'](){var _0x25bdeb=_0x774c45,_0x81cd64;let _0x3be782=this[_0x25bdeb(0x11f)][_0x25bdeb(0x130)](this['getId']());return((_0x81cd64=this[_0x25bdeb(0xfe)]('')[_0x25bdeb(0x112)])==null?void 0x0:_0x81cd64[_0x25bdeb(0x149)](_0x39995c=>(0x0,_0x11b651[_0x25bdeb(0x15f)])(_0x39995c)&&_0x3be782[_0x39995c[_0x25bdeb(0x109)]]!=null))??[];}[_0x774c45(0x101)](_0x2e1a60){var _0x5dc60e=_0x774c45;return this[_0x5dc60e(0x125)][_0x5dc60e(0x158)](_0x48ed39,this['getId'](),_0x2e1a60);}};_0x136af6[_0x774c45(0x15c)][_0x774c45(0x138)](_0x5177a7);var _0x412d46=class extends _0x136af6[_0x774c45(0xff)]{constructor(..._0x4e550b){var _0x51cb34=_0x774c45;super(..._0x4e550b),_0x469ca1(this,_0x51cb34(0x13e),void 0x0);}['_initialize'](_0x29d284){var _0x35ee92=_0x774c45;this['_docsFormulaCommandService']=_0x29d284[_0x35ee92(0x116)](_0x4b7a43['ICommandService']);}[_0x774c45(0x143)](_0x2edfdf,_0x2cde56,_0x4bf05c={}){var _0x318590=_0x774c45;return this[_0x318590(0x11c)](_0x2edfdf,_0x2cde56,_0x4bf05c);}[_0x774c45(0x14e)](_0x1d9fd8,_0x4bced0={}){var _0x1a50b9=_0x774c45;return this[_0x1a50b9(0x11c)]('end',_0x1d9fd8,_0x4bced0);}[_0x774c45(0x11c)](_0x49c8bb,_0x23186e,_0x39b8f3){var _0x54bb0d=_0x774c45;if(this[_0x54bb0d(0x100)]())return null;let _0x5996dc={'externalReferences':_0x39b8f3['externalReferences'],'formula':_0x23186e,'numberFormat':_0x39b8f3[_0x54bb0d(0x15e)],'target':{'type':'paragraph','paragraphId':this[_0x54bb0d(0x14f)](),'position':_0x49c8bb},'unitId':this[_0x54bb0d(0x163)][_0x54bb0d(0x14f)]()},_0x479c36=this[_0x54bb0d(0x13e)]['syncExecuteCommand'](_0x11b651['InsertDocFormulaCommand']['id'],_0x5996dc);return _0x479c36?this[_0x54bb0d(0x125)][_0x54bb0d(0x158)](_0x48ed39,this[_0x54bb0d(0x163)]['getId'](),_0x479c36['rangeId']):null;}};_0x136af6[_0x774c45(0xff)][_0x774c45(0x138)](_0x412d46);var _0x1cfbe2=class extends _0x136af6['FDocumentTextRange']{constructor(..._0x4843d3){var _0x5155f8=_0x774c45;super(..._0x4843d3),_0x469ca1(this,_0x5155f8(0x13e),void 0x0);}[_0x774c45(0x126)](_0x28a091){var _0x2d413d=_0x774c45;this[_0x2d413d(0x13e)]=_0x28a091['get'](_0x4b7a43[_0x2d413d(0x162)]);}[_0x774c45(0x129)](_0x2618e5,_0x16db78={}){var _0xb281c1=_0x774c45;let {endOffset:_0x59adf5,segmentId:_0x2acae0,startOffset:_0x5ebe6f}=this[_0xb281c1(0x166)]();return _0x2acae0?null:this[_0xb281c1(0x11c)](_0x5ebe6f,_0x59adf5,_0x2618e5,_0x16db78);}[_0x774c45(0x11c)](_0x190e85,_0x18e361,_0x406b0f,_0x590844){var _0x3897d5=_0x774c45;let _0x4da95b={'externalReferences':_0x590844['externalReferences'],'formula':_0x406b0f,'numberFormat':_0x590844['numberFormat'],'target':{'type':_0x3897d5(0x131),'startOffset':_0x190e85,'endOffset':_0x18e361},'unitId':this[_0x3897d5(0x163)]['getId']()},_0x484923=this['_docsFormulaCommandService'][_0x3897d5(0x12c)](_0x11b651[_0x3897d5(0x12a)]['id'],_0x4da95b);return _0x484923?this[_0x3897d5(0x125)]['createInstance'](_0x48ed39,this['_document'][_0x3897d5(0x14f)](),_0x484923['rangeId']):null;}};_0x136af6[_0x774c45(0x161)]['extend'](_0x1cfbe2),Object[_0x774c45(0x10e)](_0x468e00,_0x774c45(0x103),{'enumerable':!0x0,'get':function(){return _0x48ed39;}});}));function _0x26a4(){var _0x59a306=['customRanges','UniverProDocsFormulaFacade','IUniverInstanceService','amd','get','DocFormulaService','ReplaceDocFormulaWithTextCommand','528975KNXgCr','13fRvDMY','110JSJbyq','_insert','replaceWithText','UniverDocsFacade','_docsFormulaModel','UpdateDocFormulaCommand','_commandService','getConfig','25115IxtrcI','formula','_injector','_initialize','endIndex','call','replaceWithFormula','InsertDocFormulaCommand','@univerjs-pro/docs-formula','syncExecuteCommand','SetDocFormulaNumberFormatCommand','_getCompleteRanges','7efjlri','getFormulas','range','ConvertDocFormulaToTextCommand','getSnapshot','_docsFormulaDisplayTextService','body','saveFormulaDisplayTextSnapshot','degradeDocumentData','extend','convertToText','constructor','prototype','4460148ksAQrJ','update','_docsFormulaCommandService','_model','symbol','14007804fDdjQh','DocFormulaModel','insertFormula','iterator','2485544TOOhlc','Inject','find','getResult','filter','getOwnPropertyDescriptor','exports','354Byghvr','_rangeId','appendFormula','getId','_getCustomRange','_service','UNIVER_DOC','default','1TJYoSP','_unitId','UniverInstanceType','getFormula','createInstance','@univerjs/core','remove','getUnit','FDocument','toPrimitive','numberFormat','isDocFormulaRange','externalReferences','FDocumentTextRange','ICommandService','_document','UniverCore','_docsFormulaResourceLoaderService','getRange','function','803034ffExWP','Module','object','8PrbHgk','getBody','FDocumentParagraph','getSegmentId','_createFormula','decorate','FDocumentFormula','\x20could\x20not\x20be\x20serialized.','293409XMUmDE','UniverProDocsFormula','length','setNumberFormat','rangeId','_univerInstanceService','toStringTag','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','@univerjs/docs/facade','defineProperty','RemoveDocFormulaCommand','string','startIndex'];_0x26a4=function(){return _0x59a306;};return _0x26a4();}
|