@univerjs-pro/engine-formula 0.4.2-nightly.202411091134 → 0.5.0-alpha.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/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x2f2c(){const _0x592200=['addOtherFormulaDependencyMainData','_config','getFormulaData','removeFormulaDependencyByDefinedName','markedAsNoFunctionsExecuted','clearFeatureFormulaDependency','length','getDirtyNameMap','FEATURE_FORMULA','IDependencyManagerService','DependencyManagerService','isForceCalculate','_addAllTreeMap','generateAstNode','column','_restDependencyTreeId','endRow','removeFormulaDependency','executeAsync','_getFeatureFormulaTree','591638ZCHwFQ','IFormulaDependencyGenerator','forValue','delete','ParentDependencyTree\x20object\x20is\x20null','isSkip','_removeDependencyRTreeCacheById','_otherFormulaData','pushRangeList','45SQnNLC','type','_allTreeMap','_executionInProgressListener$','getDirtyRanges','size','treeId','_removeDependencyRTreeCache','_createFDtree','clear','setRuntimeOtherData','rowCount','keys','_injector','_lexer','refOffsetY','valid','_astTreeBuilder','_featureFormulaData','_dependencyRTreeCache','addFeatureFormulaDependency','openKdTree','setTotalArrayFormulasToCalculate','row','_dependencyManagerService','_currentConfigService','isAdded','PLUGIN_CONFIG_KEY','CURRENTLY_CALCULATING','_initializeWithOverride','FormulaDependencyTreeType','_initTimeValid','1874ycbzBo','markedAsStopFunctionsExecuted','_dependencyTreeCache','rangeList','_removeAllTreeMap','@univerjs-pro/license','clearOtherFormulaDependency','49BOwLan','OTHER_FORMULA','startColumn','closeKdTree','columnCount','_registerFormulas','_formulaData','next','IDLE','FormulaExecuteStageType','_otherFormulaManagerService','has','markedAsSuccessfullyExecuted','isDirty','_getRangeListByNode','_checkIsCycleDependency','featureDirtyRanges','execute','getConfig','refOffsetX','removeFeatureFormulaDependency','addFormulaDependencyByDefinedName','enableCycleDependency','generate','getOwnPropertyDescriptor','_getUpdateTreeListAndMakeDependency','491814busPJx','addDependencyRTreeCache','getDirtyData','subUnitId','1566136vKomMA','FormulaDependencyGenerator','refTree','_isCyclicUtilMap','_generateTreeList','clearFormulaDependency','reset','START_CALCULATION','getUnitData','getFormulaDependency','setCompletedArrayFormulasCount','_traverse','setTotalFormulasToCalculate','searchDependency','70209gEWfSP','realDeleteValue','9210rPyEmB','featureId','notExecuteFormula','isVirtual','pop','isCache','Module','1467697BqMyuK','max','set','min','getValue','isExcludeRange','get','symbol','toStringTag','CalculateFormulaService','UniverProFormulaEnginePlugin','DependencyManagerBaseService','_configService','LS_CONFIG_KEY','unshiftString','setFormulaExecuteStage','1468ZNNZfE','@univerjs/engine-formula','dirtyRanges','setRuntimeData','START_DEPENDENCY_ARRAY_FORMULA','forEach','_registerOtherFormulas','getAllRuntimeData','addFormulaDependency','push','_executionCompleteListener$','_registerFeatureFormulas','toRTreeItem','requestImmediateMacroTask','_convertDirtyRangesToUnitRange','550LApjPG','_createVirtualFDtree','_otherFormulaDataMainData','hasOtherFormulaDataMainData','getRuntimeState','unitId','DEFAULT_INTERVAL_COUNT','defineProperty','formulaId','bulkRemove','FormulaDependencyTree','FormulaDependencyTreeVirtual','_apply','_calculateRunList','return\x20','_getFirstCellOfRange','addOtherFormulaDependency','dispose','setSkip','ObjectMatrix','setCurrent','setRuntimeFeatureCellData','CURRENTLY_CALCULATING_ARRAY_FORMULA','_runtimeService','formula','UniverLicensePlugin','endColumn','add','START_DEPENDENCY','setValue'];_0x2f2c=function(){return _0x592200;};return _0x2f2c();}const _0x3b8802=_0x4f2d;(function(_0x4c5078,_0x2d603b){const _0xe8417b=_0x4f2d,_0x4affd2=_0x4c5078();while(!![]){try{const _0xa14ae8=parseInt(_0xe8417b(0x135))/0x1+parseInt(_0xe8417b(0x15e))/0x2*(parseInt(_0xe8417b(0x13e))/0x3)+-parseInt(_0xe8417b(0xf4))/0x4*(-parseInt(_0xe8417b(0xdd))/0x5)+parseInt(_0xe8417b(0xc9))/0x6*(-parseInt(_0xe8417b(0x165))/0x7)+parseInt(_0xe8417b(0xcd))/0x8+parseInt(_0xe8417b(0xdb))/0x9*(-parseInt(_0xe8417b(0x103))/0xa)+-parseInt(_0xe8417b(0xe4))/0xb;if(_0xa14ae8===_0x2d603b)break;else _0x4affd2['push'](_0x4affd2['shift']());}catch(_0x500b52){_0x4affd2['push'](_0x4affd2['shift']());}}}(_0x2f2c,0x534d9));var U=Object[_0x3b8802(0x10a)],b=(_0x1474c3,_0x1a98a9,_0x279a4b)=>_0x1a98a9 in _0x1474c3?U(_0x1474c3,_0x1a98a9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x279a4b}):_0x1474c3[_0x1a98a9]=_0x279a4b,T=(_0x53ee1a,_0x1ec1ec,_0x464235)=>b(_0x53ee1a,typeof _0x1ec1ec!=_0x3b8802(0xeb)?_0x1ec1ec+'':_0x1ec1ec,_0x464235);Object[_0x3b8802(0x10a)](exports,Symbol[_0x3b8802(0xec)],{'value':_0x3b8802(0xe3)});const C=require('@univerjs/core'),u=require(_0x3b8802(0xf5)),L=require(_0x3b8802(0x163)),P={0x0:'F',0x1:'8',0x2:'Y',0x3:'1',0x4:'C',0x5:'p',0x6:'7',0x7:'a',0x8:'o',0x9:'e','J':'0','f':'2','D':'3','r':'4','c':'5','k':'6','y':'9','b':'b','d':'c','l':'d','N':'f','I':'g','L':'h','F':'i','o':'j','V':'k','e':'l','W':'m','x':'n','n':'q','j':'r','v':'s','q':'t','m':'u','U':'v','K':'w','G':'x','t':'y','w':'z','Y':'A','R':'B','Z':'D','S':'E','B':'G','P':'H','C':'I','p':'J','H':'K','O':'L','T':'M','X':'N','i':'O','M':'P','E':'Q','z':'R','a':'S','u':'T','A':'U','g':'V','h':'W','Q':'X','s':'Z'},W='NmxdqF8x\x20l9djt5qF8x(eFd9xv9,\x205mbeFdH9t)\x20{\x20\x20\x20\x20d8xvq\x20eFd9xv9CxN8M7jqYjj7t\x20=\x20eFd9xv9.v5eFq(\x27-\x27);\x20\x20\x20\x20d8xvq\x208jFIFxT9vv7I9\x20=\x20paiX.57jv9(7q8b(eFd9xv9CxN8M7jqYjj7t[f]));\x20\x20\x20\x20FN\x20(!8jFIFxT9vv7I9.ml)\x20{\x20\x20\x20\x20\x20\x20\x20\x208jFIFxT9vv7I9.ml\x20=\x20XmWb9j(eFd9xv9CxN8M7jqYjj7t[r]);\x20\x20\x20\x20}\x20\x20\x20\x20d8xvq\x20Fvh8jV9j\x20=\x20qt598N\x20h8jV9jBe8b7ead859\x20!==\x20\x27mxl9NFx9l\x27\x20&&\x20v9eN\x20Fxvq7xd98N\x20h8jV9jBe8b7ead859;\x20\x20\x20\x20d8xvq\x20d8xq9Gq\x20=\x20Fvh8jV9j\x20?\x20v9eN\x20:\x20KFxl8K;\x20\x20\x20\x20d8xvq\x20W9vv7I9h8jl\x20=\x20d8xq9Gq.__R7v9kr__.57jv9(eFd9xv9CxN8M7jqYjj7t[f]);\x20\x20\x20\x20d8xvq\x20W9vv7I9\x20=\x20d8xq9Gq.__P9G__.vqjFxIFNt(W9vv7I9h8jl);\x20\x20\x20\x20d8xvq\x20vFIx7qmj9h8jl\x20=\x20d8xq9Gq.__R7v9kr__.57jv9(eFd9xv9CxN8M7jqYjj7t[D]);\x20\x20\x20\x20d8xvq\x20vFIx7qmj9\x20=\x20d8xq9Gq.__P9G__.vqjFxIFNt(vFIx7qmj9h8jl);\x20\x20\x20\x20d8xvq\x20vFIxg7eFl\x20=\x20d8xq9Gq.__U9jFNt__(vFIx7qmj9,\x20W9vv7I9,\x205mbeFdH9t);\x20\x20\x20\x20d8xvq\x20l8W7Fx\x20=\x208jFIFxT9vv7I9.lW;\x20\x20\x20\x20NmxdqF8x\x20FvZ8W7FxT7qdLFxI(8M7qq9jx,\x208P8vq)\x20{\x20\x20\x20\x20\x20\x20\x20\x20d8xvq\x2057qq9jx\x20=\x208M7qq9jx.j95e7d9(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20d8xvq\x20L8vq\x20=\x208P8vq.j95e7d9(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20d8xvq\x2057qq9jxM7jqv\x20=\x2057qq9jx.v5eFq(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20d8xvq\x20L8vqM7jqv\x20=\x20L8vq.v5eFq(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20FN\x20(!57qq9jx.Fxdeml9v(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20j9qmjx\x2057qq9jx\x20===\x20L8vq;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20FN\x20(57qq9jxM7jqv.e9xIqL\x20<\x20f\x20||\x2057qq9jxM7jqv[J]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20j9qmjx\x20N7ev9;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20d8xvq\x2057qq9jxamNNFG\x20=\x2057qq9jxM7jqv.veFd9(3).o8Fx(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20d8xvq\x20L8vqamNNFG\x20=\x20L8vqM7jqv.veFd9(-57qq9jxM7jqv.e9xIqL\x20+\x203).o8Fx(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20j9qmjx\x2057qq9jxamNNFG\x20===\x20L8vqamNNFG;\x20\x20\x20\x20}\x20\x20\x20\x20e9q\x20l8W7Fxg7eFl\x20=\x20l8W7Fx?.e9xIqL\x20?\x20l8W7Fx.v8W9((lWCq9W)\x20=>\x20FvZ8W7FxT7qdLFxI(lWCq9W,\x20e8d7qF8x.L8vqx7W9))\x20:\x20qjm9;\x20\x20\x20\x20FN\x20(e8d7qF8x.L8vqx7W9\x20===\x20\x27e8d7eL8vq\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20l8W7Fxg7eFl\x20=\x20qjm9;\x20\x20\x20\x20}\x20\x20\x20\x20d8xvq\x20U7eFl\x20=\x20vFIxg7eFl\x20&&\x20l8W7Fxg7eFl;\x20\x20\x20\x20j9qmjx\x20{\x20\x20\x20\x20\x20\x20\x20\x20U7eFl,\x20W9vv7I9:\x208jFIFxT9vv7I9,\x20\x20\x20\x20};}';class k extends u[_0x3b8802(0xce)]{constructor(){const _0x394259=_0x3b8802;super(...arguments),T(this,_0x394259(0x160),new Map());}[_0x3b8802(0x114)](){const _0x2b8912=_0x3b8802;super[_0x2b8912(0x114)](),this[_0x2b8912(0x160)]['clear']();}async[_0x3b8802(0xc6)](){const _0x51dee0=_0x3b8802;this['_updateRangeFlatten']();const _0x374a05=this[_0x51dee0(0x157)][_0x51dee0(0x123)](),_0x1d8705=this[_0x51dee0(0x16f)]['getOtherFormulaData'](),_0x4e711b=this['_currentConfigService']['getClearDependencyTreeCache']();_0x4e711b!=null&&Object[_0x51dee0(0x14a)](_0x4e711b)[_0x51dee0(0xf9)](_0xff3d8c=>{const _0xda4c25=_0x51dee0;_0xff3d8c!=null&&Object['keys'](_0x4e711b[_0xff3d8c])[_0xda4c25(0xf9)](_0x2cc4af=>{const _0x587eec=_0xda4c25;_0x2cc4af!=null&&(this[_0x587eec(0x156)]['clearOtherFormulaDependency'](_0xff3d8c,_0x2cc4af),this[_0x587eec(0x156)][_0x587eec(0x126)](_0xff3d8c,_0x2cc4af),this[_0x587eec(0x156)][_0x587eec(0xd2)](_0xff3d8c,_0x2cc4af));});});const _0x55daee=this[_0x51dee0(0x157)][_0x51dee0(0xd5)]();await this['_generateTreeList'](_0x374a05,_0x1d8705,_0x55daee),this[_0x51dee0(0x156)][_0x51dee0(0x153)]();const _0x46613c=this[_0x51dee0(0xc8)](),_0x1f789b=this[_0x51dee0(0x110)](_0x46613c);return this[_0x51dee0(0xbe)](_0x1f789b)&&this[_0x51dee0(0x11a)][_0x51dee0(0xc5)](),this[_0x51dee0(0x160)]['clear'](),this[_0x51dee0(0x156)][_0x51dee0(0x168)](),Promise['resolve'](_0x1f789b);}[_0x3b8802(0xd0)](_0x5b749f,_0x1957b2){const _0x5c8918=_0x3b8802,_0x2c8be7=[_0x5b749f];for(;_0x2c8be7[_0x5c8918(0x127)]>0x0;){const _0x3ecfd2=_0x2c8be7[_0x2c8be7['length']-0x1];if((_0x1957b2[_0x5c8918(0xea)](_0x3ecfd2)||0x0)===0x0){_0x1957b2[_0x5c8918(0xe6)](_0x3ecfd2,0x1);const _0x4d3c86=this[_0x5c8918(0x160)][_0x5c8918(0xea)](_0x3ecfd2);if(_0x4d3c86==null){_0x1957b2[_0x5c8918(0xe6)](_0x3ecfd2,0x2),_0x2c8be7[_0x5c8918(0xe1)]();continue;}const _0x41366a=this[_0x5c8918(0x156)][_0x5c8918(0xda)](_0x4d3c86[_0x5c8918(0x100)]());for(const _0x568200 of _0x41366a){const _0x20f86c=_0x1957b2[_0x5c8918(0xea)](_0x568200)||0x0;if(_0x20f86c===0x1)return!0x0;_0x20f86c===0x0&&_0x2c8be7['push'](_0x568200);}}else _0x1957b2[_0x5c8918(0xe6)](_0x3ecfd2,0x2),_0x2c8be7[_0x5c8918(0xe1)]();}return!0x1;}[_0x3b8802(0xbe)](_0x3e4d21){const _0x31834a=_0x3b8802,_0x95aa1f=new Map();for(const _0x52d8b3 of _0x3e4d21)if(!_0x95aa1f[_0x31834a(0x170)](_0x52d8b3['treeId'])&&this[_0x31834a(0xd0)](_0x52d8b3[_0x31834a(0x144)],_0x95aa1f))return!0x0;return _0x95aa1f[_0x31834a(0x147)](),!0x1;}async[_0x3b8802(0xd1)](_0x59c078,_0x1eb5d5,_0x12b130){const _0x23b775=_0x3b8802,_0x49afa3=Object['keys'](_0x59c078),_0x5edb65=Object[_0x23b775(0x14a)](_0x1eb5d5),_0x2c694c=[];this[_0x23b775(0x157)][_0x23b775(0x12c)]()&&this[_0x23b775(0x156)][_0x23b775(0xd3)](),this[_0x23b775(0x16a)](_0x49afa3,_0x59c078,_0x12b130,_0x2c694c),this[_0x23b775(0xfa)](_0x1eb5d5,_0x5edb65,_0x2c694c),this[_0x23b775(0xff)](_0x2c694c);for(let _0x5d5030=0x0,_0x37591d=_0x2c694c['length'];_0x5d5030<_0x37591d;_0x5d5030++){const _0x437e3f=_0x2c694c[_0x5d5030],_0x52b8ff=u['generateAstNode'](_0x437e3f[_0x23b775(0x108)],_0x437e3f['formula'],this[_0x23b775(0x14c)],this[_0x23b775(0x14f)],this[_0x23b775(0x157)]);if(_0x437e3f[_0x23b775(0xbc)]=this['_includeTree'](_0x437e3f,_0x52b8ff),_0x437e3f[_0x23b775(0xe0)])continue;this['_runtimeService']['setCurrent'](_0x437e3f[_0x23b775(0x155)],_0x437e3f[_0x23b775(0x12f)],_0x437e3f[_0x23b775(0x149)],_0x437e3f[_0x23b775(0x169)],_0x437e3f[_0x23b775(0xcc)],_0x437e3f[_0x23b775(0x108)]);const _0x3a6c1f=await this[_0x23b775(0xbd)]({'node':_0x52b8ff,'refOffsetX':_0x437e3f[_0x23b775(0xc2)],'refOffsetY':_0x437e3f[_0x23b775(0x14d)]});_0x437e3f[_0x23b775(0x13d)](_0x3a6c1f);}for(let _0x2a6697=0x0,_0x525cee=_0x2c694c['length'];_0x2a6697<_0x525cee;_0x2a6697++){const _0x429eae=_0x2c694c[_0x2a6697];_0x429eae[_0x23b775(0xe2)]||this[_0x23b775(0x156)][_0x23b775(0xca)](_0x429eae);}return _0x2c694c;}[_0x3b8802(0x134)](_0x4595fc,_0x3488ab,_0x568420){const _0x38cdc3=_0x3b8802,{unitId:_0x40d5bd,subUnitId:_0x30f3e8,dependencyRanges:_0x3346c0,getDirtyData:_0x34b764}=_0x568420,_0x372f94=_0x3488ab||u['generateRandomDependencyTreeId'](this[_0x38cdc3(0x156)]),_0x5c413f=new u[(_0x38cdc3(0x10d))](_0x372f94);_0x5c413f[_0x38cdc3(0x108)]=_0x40d5bd,_0x5c413f[_0x38cdc3(0xcc)]=_0x30f3e8,_0x5c413f[_0x38cdc3(0x161)]=_0x3346c0,_0x5c413f[_0x38cdc3(0xcb)]=_0x34b764;const _0x29ca2f=_0x34b764(this[_0x38cdc3(0x157)][_0x38cdc3(0xcb)](),this[_0x38cdc3(0x11a)][_0x38cdc3(0xfb)]()),_0x73a004=this[_0x38cdc3(0x102)](_0x29ca2f[_0x38cdc3(0xf6)]);return _0x5c413f[_0x38cdc3(0xbf)]=_0x73a004,_0x5c413f[_0x38cdc3(0xde)]=_0x4595fc,_0x5c413f[_0x38cdc3(0x13f)]=u[_0x38cdc3(0x15c)][_0x38cdc3(0x129)],this['_dependencyManagerService'][_0x38cdc3(0x152)](_0x40d5bd,_0x30f3e8,_0x4595fc,_0x5c413f),this['_dependencyTreeCache'][_0x38cdc3(0xe6)](_0x5c413f['treeId'],_0x5c413f),this[_0x38cdc3(0x156)]['getFeatureFormulaDependency'](_0x568420['unitId'],_0x568420[_0x38cdc3(0xcc)],_0x4595fc)&&(_0x5c413f[_0x38cdc3(0xe2)]=!0x0),_0x5c413f;}[_0x3b8802(0xfa)](_0x5f3543,_0xdfe176,_0x3b0c6e){const _0x46e7df=_0x3b8802;for(const _0x3ac43d of _0xdfe176){const _0x487f54=_0x5f3543[_0x3ac43d];if(_0x487f54==null)continue;const _0x4163cb=Object[_0x46e7df(0x14a)](_0x487f54);for(const _0x288c9b of _0x4163cb){const _0x367c8d=_0x487f54[_0x288c9b];if(_0x367c8d==null)continue;const _0x16f0fc=Object[_0x46e7df(0x14a)](_0x367c8d);for(const _0x5291b3 of _0x16f0fc){const _0x166b9f=this[_0x46e7df(0x156)][_0x46e7df(0x106)](_0x5291b3),_0xb5cdef=_0x367c8d[_0x5291b3],{f:_0x1eebb8,ranges:_0x110ac3}=_0xb5cdef;let _0x1bf79d=!0x1;_0x166b9f&&(_0x1bf79d=!0x0);const {firstRow:_0x5f3f37,firstColumn:_0x3729ab}=this[_0x46e7df(0x112)](_0x110ac3),_0x1e2996=this[_0x46e7df(0x156)]['getOtherFormulaDependency'](_0x3ac43d,_0x288c9b,_0x5291b3),_0x2aafa1=(_0x1e2996==null?void 0x0:_0x1e2996[_0x46e7df(0xe8)](0x0,0x0))||u['generateRandomDependencyTreeId'](this[_0x46e7df(0x156)]),_0x485763=new u[(_0x46e7df(0x10d))](_0x2aafa1);for(let _0x1d47f6=0x0;_0x1d47f6<_0x110ac3[_0x46e7df(0x127)];_0x1d47f6++){const _0x136753=_0x110ac3[_0x1d47f6],{startRow:_0x1375ae,startColumn:_0x1e3ec5,endRow:_0x2974a3,endColumn:_0x34516d}=_0x136753;for(let _0x2ff052=_0x1375ae;_0x2ff052<=_0x2974a3;_0x2ff052++)for(let _0x4758cd=_0x1e3ec5;_0x4758cd<=_0x34516d;_0x4758cd++){const _0x2e7aee=_0x4758cd-_0x3729ab,_0x3d8b74=_0x2ff052-_0x5f3f37;if(_0x2e7aee===0x0&&_0x3d8b74===0x0){_0x485763[_0x46e7df(0x11b)]=_0x1eebb8,_0x485763['unitId']=_0x3ac43d,_0x485763['subUnitId']=_0x288c9b,_0x485763['formulaId']=_0x5291b3,_0x485763[_0x46e7df(0x13f)]=u[_0x46e7df(0x15c)][_0x46e7df(0x166)],_0x485763[_0x46e7df(0xe2)]=_0x1bf79d,_0x3b0c6e[_0x46e7df(0xfd)](_0x485763),this['_dependencyTreeCache']['set'](_0x485763[_0x46e7df(0x144)],_0x485763),this[_0x46e7df(0x156)]['addOtherFormulaDependency'](_0x3ac43d,_0x288c9b,_0x5291b3,_0x485763),this['_dependencyManagerService'][_0x46e7df(0xc4)](_0x485763);continue;}const _0x4a25a4=new u[(_0x46e7df(0x10e))]();_0x4a25a4[_0x46e7df(0x144)]=(_0x1e2996==null?void 0x0:_0x1e2996['getValue'](_0x2e7aee,_0x3d8b74))||u['generateRandomDependencyTreeId'](this[_0x46e7df(0x156)]),_0x4a25a4[_0x46e7df(0xcf)]=_0x485763,_0x4a25a4[_0x46e7df(0xc2)]=_0x2e7aee,_0x4a25a4[_0x46e7df(0x14d)]=_0x3d8b74,_0x4a25a4[_0x46e7df(0xe2)]=_0x1bf79d,this[_0x46e7df(0x156)]['addOtherFormulaDependency'](_0x3ac43d,_0x288c9b,_0x5291b3,_0x4a25a4),this[_0x46e7df(0x156)][_0x46e7df(0xc4)](_0x4a25a4),_0x3b0c6e[_0x46e7df(0xfd)](_0x4a25a4),this[_0x46e7df(0x160)][_0x46e7df(0xe6)](_0x4a25a4['treeId'],_0x4a25a4);}}this[_0x46e7df(0x156)][_0x46e7df(0x121)](_0x5291b3);}}}}['_registerFormulas'](_0x208ddb,_0x6788ce,_0x5a5364,_0x639920){const _0x3349e9=_0x3b8802;for(const _0x3cb5e3 of _0x208ddb){const _0x54e6f9=_0x6788ce[_0x3cb5e3];if(_0x54e6f9==null)continue;const _0x5e8ddc=Object[_0x3349e9(0x14a)](_0x54e6f9);for(const _0x1c898f of _0x5e8ddc){const _0x2cd991=new C[(_0x3349e9(0x116))](_0x54e6f9[_0x1c898f]||{}),_0x14194e=new Map();_0x2cd991[_0x3349e9(0x137)]((_0x4d07a4,_0x38163a,_0x59ddbf)=>{const _0x3168cb=_0x3349e9;if(_0x59ddbf==null)return!0x0;const {x:_0x79711=0x0,y:_0x39cf9c=0x0,si:_0x4ae1ec}=_0x59ddbf;if(!(_0x79711===0x0&&_0x39cf9c===0x0&&_0x4ae1ec!=null))return!0x0;const _0x2c046c=this[_0x3168cb(0x146)](_0x3cb5e3,_0x1c898f,_0x4d07a4,_0x38163a,_0x5a5364,_0x59ddbf),_0x289449=this[_0x3168cb(0x156)][_0x3168cb(0xd6)](_0x3cb5e3,_0x1c898f,_0x4d07a4,_0x38163a);_0x289449!=null?_0x2c046c[_0x3168cb(0x144)]=_0x289449:(this['_dependencyManagerService']['addFormulaDependency'](_0x3cb5e3,_0x1c898f,_0x4d07a4,_0x38163a,_0x2c046c),this[_0x3168cb(0x156)][_0x3168cb(0xc4)](_0x2c046c)),_0x14194e['set'](_0x4ae1ec,_0x2c046c),_0x639920[_0x3168cb(0xfd)](_0x2c046c),this[_0x3168cb(0x160)][_0x3168cb(0xe6)](_0x2c046c[_0x3168cb(0x144)],_0x2c046c);}),_0x2cd991[_0x3349e9(0x137)]((_0x58c7d1,_0x347673,_0x39a569)=>{const _0x4528c5=_0x3349e9;if(_0x39a569==null)return!0x0;const {x:_0x18db70=0x0,y:_0x265227=0x0,si:_0x2bf0c6}=_0x39a569;if(_0x18db70===0x0&&_0x265227===0x0&&_0x2bf0c6!=null)return!0x0;let _0x87574d;if(_0x2bf0c6&&_0x14194e[_0x4528c5(0x170)](_0x2bf0c6)){const _0x2e9e7f=_0x14194e[_0x4528c5(0xea)](_0x2bf0c6);_0x87574d=this[_0x4528c5(0x104)](_0x2e9e7f,_0x39a569);}else _0x87574d=this[_0x4528c5(0x146)](_0x3cb5e3,_0x1c898f,_0x58c7d1,_0x347673,_0x5a5364,_0x39a569);const _0x1186cf=this['_dependencyManagerService']['getFormulaDependency'](_0x3cb5e3,_0x1c898f,_0x58c7d1,_0x347673);_0x1186cf!=null?_0x87574d['treeId']=_0x1186cf:(this['_dependencyManagerService'][_0x4528c5(0xfc)](_0x3cb5e3,_0x1c898f,_0x58c7d1,_0x347673,_0x87574d),this[_0x4528c5(0x156)]['addFormulaDependencyByDefinedName'](_0x87574d)),_0x639920[_0x4528c5(0xfd)](_0x87574d),this[_0x4528c5(0x160)]['set'](_0x87574d['treeId'],_0x87574d);}),_0x14194e[_0x3349e9(0x147)]();}}}[_0x3b8802(0x146)](_0x1864b1,_0x49f264,_0x5887c3,_0x5da423,_0x3a4615,_0x10645e){const _0x2889cd=_0x3b8802,{f:_0x2a17c5,x:_0x3a2139=0x0,y:_0x4a32b0=0x0}=_0x10645e,_0x1fb9b2=new u[(_0x2889cd(0x10d))](u['generateRandomDependencyTreeId'](this['_dependencyManagerService'])),_0x438a47=_0x3a4615[_0x1864b1][_0x49f264];return _0x1fb9b2['formula']=_0x2a17c5,_0x1fb9b2[_0x2889cd(0x108)]=_0x1864b1,_0x1fb9b2[_0x2889cd(0xcc)]=_0x49f264,_0x1fb9b2['row']=_0x5887c3,_0x1fb9b2[_0x2889cd(0x12f)]=_0x5da423,_0x1fb9b2[_0x2889cd(0x149)]=_0x438a47['rowCount'],_0x1fb9b2['columnCount']=_0x438a47[_0x2889cd(0x169)],_0x1fb9b2;}['_getUpdateTreeListAndMakeDependency'](){const _0x151f50=_0x3b8802,_0x28f3f3=[],_0x2b1552=new Set(),_0x32133d=this['_currentConfigService'][_0x151f50(0x12c)](),_0x315cfd=this[_0x151f50(0x157)][_0x151f50(0x142)](),_0x49bc2d=this[_0x151f50(0x156)]['searchDependency'](_0x315cfd);for(const [_0x53dfad,_0x5c708d]of this[_0x151f50(0x160)])(_0x32133d||_0x5c708d[_0x151f50(0xbc)]||_0x5c708d['dependencySheetName'](this[_0x151f50(0x157)][_0x151f50(0x128)]())||_0x49bc2d['has'](_0x53dfad)&&!_0x5c708d[_0x151f50(0xe9)](this[_0x151f50(0x157)]['getExcludedRange']()))&&!_0x2b1552[_0x151f50(0x170)](_0x53dfad)&&(_0x28f3f3['push'](_0x5c708d),_0x2b1552[_0x151f50(0x11e)](_0x53dfad));for(const [_0x28779b,_0x2eadec]of this[_0x151f50(0x160)])_0x2eadec['isVirtual']||(_0x2eadec[_0x151f50(0x161)][_0x151f50(0x127)]=0x0);return _0x28f3f3;}*[_0x3b8802(0xd8)](_0x176767,_0x5e6146){const _0x2dbc2e=_0x3b8802,_0x5ead88=_0x176767,_0x560102=new Set();for(;_0x5ead88[_0x2dbc2e(0x127)]>0x0;){const _0x287e2f=_0x5ead88['pop']();if(_0x560102[_0x2dbc2e(0x147)](),_0x287e2f===void 0x0||_0x287e2f['isSkip']())continue;if(_0x287e2f[_0x2dbc2e(0x158)]()){yield _0x287e2f,_0x287e2f[_0x2dbc2e(0x115)](),_0x5e6146[_0x2dbc2e(0x11e)](_0x287e2f[_0x2dbc2e(0x144)]);continue;}const _0x2436db=this['_dependencyManagerService'][_0x2dbc2e(0xda)](_0x287e2f[_0x2dbc2e(0x100)](),_0x5e6146);for(const _0x4c6504 of _0x2436db){const _0x39e812=this[_0x2dbc2e(0x160)]['get'](_0x4c6504);if(!_0x39e812)throw new Error(_0x2dbc2e(0x139));_0x39e812['isAdded']()||_0x287e2f[_0x2dbc2e(0x13a)]()||_0x560102['add'](_0x39e812);}if(_0x2436db[_0x2dbc2e(0x147)](),_0x560102[_0x2dbc2e(0x143)]===0x0)yield _0x287e2f,_0x287e2f[_0x2dbc2e(0x115)](),_0x5e6146[_0x2dbc2e(0x11e)](_0x287e2f[_0x2dbc2e(0x144)]);else{_0x287e2f['setAdded'](),_0x5ead88[_0x2dbc2e(0xfd)](_0x287e2f);for(const _0x41f703 of _0x560102)_0x5ead88[_0x2dbc2e(0xfd)](_0x41f703);}}_0x5ead88['length']=0x0,_0x560102[_0x2dbc2e(0x147)]();}['_calculateRunList'](_0x18ee10){const _0x469927=_0x3b8802,_0x5c57f8=[],_0x323922=new Set();for(const _0x16f87c of this[_0x469927(0xd8)](_0x18ee10,_0x323922))_0x5c57f8['push'](_0x16f87c);return _0x5c57f8;}}class G extends u[_0x3b8802(0xed)]{async[_0x3b8802(0x10f)](_0x386c50=!0x1){const _0x1f926a=_0x3b8802;_0x386c50?this[_0x1f926a(0x11a)]['setFormulaExecuteStage'](u[_0x1f926a(0x16e)][_0x1f926a(0xf8)]):this[_0x1f926a(0x11a)]['setFormulaExecuteStage'](u[_0x1f926a(0x16e)][_0x1f926a(0x11f)]),this[_0x1f926a(0x141)][_0x1f926a(0x16c)](this[_0x1f926a(0x11a)]['getRuntimeState']());const _0x134945=await this['_formulaDependencyGenerator'][_0x1f926a(0xc6)](),_0x4bcbb6=this['_interpreter'];_0x386c50?(this['_runtimeService'][_0x1f926a(0xf3)](u['FormulaExecuteStageType']['START_CALCULATION_ARRAY_FORMULA']),this['_runtimeService'][_0x1f926a(0x154)](_0x134945[_0x1f926a(0x127)])):(this[_0x1f926a(0x11a)][_0x1f926a(0xf3)](u[_0x1f926a(0x16e)][_0x1f926a(0xd4)]),this[_0x1f926a(0x11a)][_0x1f926a(0xd9)](_0x134945[_0x1f926a(0x127)])),this[_0x1f926a(0x141)][_0x1f926a(0x16c)](this[_0x1f926a(0x11a)][_0x1f926a(0x107)]());let _0x1cb367=[];const _0x36e523=this['_configService'][_0x1f926a(0xc1)](u[_0x1f926a(0x159)]),_0x2dae31=(_0x36e523==null?void 0x0:_0x36e523['intervalCount'])||u[_0x1f926a(0x109)];let _0x1ef0fb=0x0;const _0x491174=_0x134945[_0x1f926a(0x127)];for(;_0x134945[_0x1f926a(0x127)]>0x0;){const _0x1eab19=_0x134945[_0x1f926a(0xe1)](),_0x35d855={'node':u[_0x1f926a(0x12e)](_0x1eab19[_0x1f926a(0x108)],_0x1eab19[_0x1f926a(0x11b)],this[_0x1f926a(0x14c)],this[_0x1f926a(0x14f)],this[_0x1f926a(0x157)]),'refOffsetX':_0x1eab19[_0x1f926a(0xc2)],'refOffsetY':_0x1eab19[_0x1f926a(0x14d)]},_0x29b13c=_0x1eab19[_0x1f926a(0xcb)];if(_0x1ef0fb%_0x2dae31===0x0&&(await new Promise(_0x3db9e4=>{const _0xb1f683=_0x1f926a,_0x27cf91=C[_0xb1f683(0x101)](_0x3db9e4);_0x1cb367[_0xb1f683(0xfd)](_0x27cf91);}),_0x386c50?(this[_0x1f926a(0x11a)][_0x1f926a(0xf3)](u[_0x1f926a(0x16e)][_0x1f926a(0x119)]),this[_0x1f926a(0x11a)][_0x1f926a(0xd7)](_0x1ef0fb+0x1)):(this['_runtimeService'][_0x1f926a(0xf3)](u[_0x1f926a(0x16e)][_0x1f926a(0x15a)]),this[_0x1f926a(0x11a)]['setCompletedFormulasCount'](_0x1ef0fb+0x1)),this['_executionInProgressListener$'][_0x1f926a(0x16c)](this['_runtimeService'][_0x1f926a(0x107)]()),this[_0x1f926a(0x11a)]['isStopExecution']()||_0x35d855==null&&_0x29b13c==null)){this[_0x1f926a(0x11a)][_0x1f926a(0xf3)](u[_0x1f926a(0x16e)][_0x1f926a(0x16d)]),this['_runtimeService'][_0x1f926a(0x15f)](),this[_0x1f926a(0xfe)]['next'](this[_0x1f926a(0x11a)][_0x1f926a(0xfb)]());return;}this[_0x1f926a(0x11a)][_0x1f926a(0x117)](_0x1eab19[_0x1f926a(0x155)],_0x1eab19[_0x1f926a(0x12f)],_0x1eab19[_0x1f926a(0x149)],_0x1eab19[_0x1f926a(0x169)],_0x1eab19[_0x1f926a(0xcc)],_0x1eab19['unitId']);let _0x56e830;if(_0x29b13c!=null&&_0x1eab19[_0x1f926a(0xde)]!=null){const {runtimeCellData:_0x25d0c6,dirtyRanges:_0x1ea339}=_0x29b13c(this[_0x1f926a(0x157)][_0x1f926a(0xcb)](),this['_runtimeService'][_0x1f926a(0xfb)]());this['_runtimeService'][_0x1f926a(0x118)](_0x1eab19[_0x1f926a(0xde)],_0x25d0c6),this[_0x1f926a(0x11a)]['setRuntimeFeatureRange'](_0x1eab19['featureId'],_0x1ea339);}else _0x35d855!=null&&(_0x4bcbb6['checkAsyncNode'](_0x35d855['node'])?_0x56e830=await _0x4bcbb6[_0x1f926a(0x133)](_0x35d855):_0x56e830=_0x4bcbb6[_0x1f926a(0xc0)](_0x35d855),_0x1eab19['formulaId']!=null?this[_0x1f926a(0x11a)][_0x1f926a(0x148)](_0x1eab19[_0x1f926a(0x10b)],_0x1eab19['refOffsetX'],_0x1eab19[_0x1f926a(0x14d)],_0x56e830):this[_0x1f926a(0x11a)][_0x1f926a(0xf7)](_0x56e830));_0x1ef0fb++;}return _0x1cb367[_0x1f926a(0xf9)](_0x318bc8=>_0x318bc8()),_0x1cb367=[],_0x491174>0x0?this[_0x1f926a(0x11a)][_0x1f926a(0xbb)]():_0x386c50||this['_runtimeService'][_0x1f926a(0x125)](),this[_0x1f926a(0x11a)][_0x1f926a(0xfb)]();}}class V extends u[_0x3b8802(0xef)]{constructor(){const _0xdb5ebb=_0x3b8802;super(...arguments),T(this,_0xdb5ebb(0x140),new Map()),T(this,'_dependencyRTreeCache',new C['RTree'](!0x0));}[_0x3b8802(0xd3)](){const _0x33e896=_0x3b8802;this[_0x33e896(0x13c)][_0x33e896(0x147)](),this[_0x33e896(0x150)]['clear'](),this[_0x33e896(0x16b)][_0x33e896(0x147)](),this[_0x33e896(0x151)][_0x33e896(0x147)](),this[_0x33e896(0x140)][_0x33e896(0x147)](),this[_0x33e896(0x130)](),this[_0x33e896(0x105)][_0x33e896(0x147)]();}[_0x3b8802(0x113)](_0x50eb47,_0x3bf61a,_0x1de4a5,_0x5d5815){const _0x36cf64=_0x3b8802;this[_0x36cf64(0x13c)]['has'](_0x50eb47)||this[_0x36cf64(0x13c)][_0x36cf64(0xe6)](_0x50eb47,new Map());const _0x4e7371=this['_otherFormulaData'][_0x36cf64(0xea)](_0x50eb47);_0x4e7371[_0x36cf64(0x170)](_0x3bf61a)||_0x4e7371[_0x36cf64(0xe6)](_0x3bf61a,new Map());const _0x506a5c=_0x4e7371[_0x36cf64(0xea)](_0x3bf61a);_0x506a5c['has'](_0x1de4a5)||_0x506a5c[_0x36cf64(0xe6)](_0x1de4a5,new C[(_0x36cf64(0x116))]()),_0x506a5c['get'](_0x1de4a5)[_0x36cf64(0x120)](_0x5d5815[_0x36cf64(0xc2)],_0x5d5815[_0x36cf64(0x14d)],_0x5d5815['treeId']);}['removeOtherFormulaDependency'](_0xdcfb1c,_0x5b32ad,_0x343170){const _0x1805ab=_0x3b8802,_0x613eb=this[_0x1805ab(0x13c)]['get'](_0xdcfb1c);if(_0x613eb&&_0x613eb['has'](_0x5b32ad)){const _0x4b86d6=_0x613eb[_0x1805ab(0xea)](_0x5b32ad);_0x343170[_0x1805ab(0xf9)](_0xbf99e4=>{const _0x3fe1bd=_0x1805ab,_0x3228e1=_0x4b86d6[_0x3fe1bd(0xea)](_0xbf99e4);_0x3228e1!=null&&(_0x3228e1[_0x3fe1bd(0x137)]((_0x3898e5,_0x3a889a,_0x60f4a)=>{const _0x3c7f4c=_0x3fe1bd;this['_removeDependencyRTreeCache'](_0x60f4a),this[_0x3c7f4c(0x162)](_0x60f4a);}),_0x4b86d6['delete'](_0xbf99e4),this[_0x3fe1bd(0x105)][_0x3fe1bd(0x138)](_0xbf99e4));}),_0x4b86d6['size']===0x0&&_0x613eb['delete'](_0x5b32ad),_0x613eb[_0x1805ab(0x143)]===0x0&&this['_otherFormulaData']['delete'](_0xdcfb1c);}}[_0x3b8802(0x164)](_0x1af7e3,_0x51e9b9){const _0x35b716=_0x3b8802,_0x366ada=this['_otherFormulaData']['get'](_0x1af7e3);if(_0x51e9b9&&_0x366ada&&_0x366ada[_0x35b716(0x170)](_0x51e9b9)){const _0x44bea5=_0x366ada[_0x35b716(0xea)](_0x51e9b9);this[_0x35b716(0x13b)](_0x1af7e3,_0x51e9b9);for(const _0x54e143 of _0x44bea5['keys']()){const _0x45920d=_0x44bea5[_0x35b716(0xea)](_0x54e143);_0x45920d!=null&&(_0x45920d['forValue']((_0xcc609c,_0x1bc180,_0x1f3985)=>{const _0xb6698c=_0x35b716;this[_0xb6698c(0x140)][_0xb6698c(0xea)](_0x1f3985)&&this[_0xb6698c(0x162)](_0x1f3985);}),this[_0x35b716(0x105)][_0x35b716(0x138)](_0x54e143));}_0x44bea5[_0x35b716(0x147)]();}else{if(_0x366ada){for(const _0x5c875b of _0x366ada[_0x35b716(0x14a)]()){const _0x2c8f67=_0x366ada[_0x35b716(0xea)](_0x5c875b);this['_removeDependencyRTreeCacheById'](_0x1af7e3,_0x5c875b);for(const _0x1c0e1a of _0x2c8f67[_0x35b716(0x14a)]()){const _0x22f745=_0x2c8f67[_0x35b716(0xea)](_0x1c0e1a);_0x22f745!=null&&(_0x22f745[_0x35b716(0x137)]((_0x767b25,_0xd7d5f5,_0x4210fc)=>{const _0x49b69d=_0x35b716;this[_0x49b69d(0x140)][_0x49b69d(0xea)](_0x4210fc)&&this[_0x49b69d(0x162)](_0x4210fc);}),this['_otherFormulaDataMainData'][_0x35b716(0x138)](_0x1c0e1a));}}this[_0x35b716(0x13c)][_0x35b716(0x138)](_0x1af7e3);}}}[_0x3b8802(0x152)](_0x98bfe1,_0x32a6e9,_0xf09bfd,_0x1d1a65){const _0x1db039=_0x3b8802;this['_featureFormulaData'][_0x1db039(0x170)](_0x98bfe1)||this[_0x1db039(0x150)][_0x1db039(0xe6)](_0x98bfe1,new Map());const _0x3d244d=this[_0x1db039(0x150)][_0x1db039(0xea)](_0x98bfe1);_0x3d244d[_0x1db039(0x170)](_0x32a6e9)||_0x3d244d['set'](_0x32a6e9,new Map()),_0x3d244d[_0x1db039(0xea)](_0x32a6e9)['set'](_0xf09bfd,_0x1d1a65[_0x1db039(0x144)]);}[_0x3b8802(0xc3)](_0x305621,_0xb78ae8,_0x1493ac){const _0x4be1a1=_0x3b8802,_0x2593f3=this['_featureFormulaData'][_0x4be1a1(0xea)](_0x305621);if(_0x2593f3&&_0x2593f3[_0x4be1a1(0x170)](_0xb78ae8)){const _0x16db71=_0x2593f3[_0x4be1a1(0xea)](_0xb78ae8);_0x1493ac[_0x4be1a1(0xf9)](_0x54082e=>{const _0x67bb5a=_0x4be1a1,_0x42b1ac=_0x16db71['get'](_0x54082e);_0x42b1ac!=null&&(this['_removeDependencyRTreeCache'](_0x42b1ac),_0x16db71[_0x67bb5a(0x138)](_0x54082e),this[_0x67bb5a(0x162)](_0x42b1ac));});}}['clearFeatureFormulaDependency'](_0x8e1f7,_0x25cb47){const _0xed1e21=_0x3b8802,_0x5d5081=this[_0xed1e21(0x150)]['get'](_0x8e1f7);if(_0x25cb47&&_0x5d5081&&_0x5d5081[_0xed1e21(0x170)](_0x25cb47)){const _0x4f8165=_0x5d5081[_0xed1e21(0xea)](_0x25cb47);this[_0xed1e21(0x13b)](_0x8e1f7,_0x25cb47),_0x4f8165['forEach'](_0x196110=>{const _0x25f283=_0xed1e21;_0x196110!=null&&this[_0x25f283(0x162)](_0x196110);}),_0x4f8165['clear']();}else _0x5d5081&&(_0x5d5081[_0xed1e21(0xf9)]((_0x2dea2b,_0x440a30)=>{const _0x30cc49=_0xed1e21;this[_0x30cc49(0x13b)](_0x8e1f7,_0x440a30),_0x2dea2b[_0x30cc49(0xf9)](_0x6ce5a9=>{const _0x5b1c70=_0x30cc49;_0x6ce5a9!=null&&this[_0x5b1c70(0x162)](_0x6ce5a9);});}),this['_featureFormulaData'][_0xed1e21(0x138)](_0x8e1f7));}[_0x3b8802(0xfc)](_0xecc2ee,_0x62069e,_0x50b240,_0x47ed0f,_0x1823de){const _0x14eb16=_0x3b8802;this[_0x14eb16(0x16b)][_0x14eb16(0x170)](_0xecc2ee)||this[_0x14eb16(0x16b)][_0x14eb16(0xe6)](_0xecc2ee,new Map());const _0x1d0287=this['_formulaData'][_0x14eb16(0xea)](_0xecc2ee);_0x1d0287[_0x14eb16(0x170)](_0x62069e)||_0x1d0287[_0x14eb16(0xe6)](_0x62069e,new C[(_0x14eb16(0x116))]()),_0x1d0287['get'](_0x62069e)[_0x14eb16(0x120)](_0x50b240,_0x47ed0f,_0x1823de[_0x14eb16(0x144)]);}[_0x3b8802(0x132)](_0x109b35,_0x3196c6,_0x4ec2da,_0x2a171e){const _0x5b4998=_0x3b8802,_0x6dd32a=this['_formulaData'][_0x5b4998(0xea)](_0x109b35);if(_0x6dd32a&&_0x6dd32a[_0x5b4998(0x170)](_0x3196c6)){const _0x215fb1=_0x6dd32a['get'](_0x3196c6),_0x4e433b=_0x215fb1[_0x5b4998(0xe8)](_0x4ec2da,_0x2a171e);if(_0x4e433b==null)return;this[_0x5b4998(0x145)](_0x4e433b),_0x215fb1[_0x5b4998(0xdc)](_0x4ec2da,_0x2a171e),this[_0x5b4998(0x162)](_0x4e433b);}}[_0x3b8802(0xd2)](_0x24c422,_0x1f8258){const _0x42f88c=_0x3b8802,_0x1ab941=this[_0x42f88c(0x16b)][_0x42f88c(0xea)](_0x24c422);if(_0x1f8258&&_0x1ab941&&_0x1ab941[_0x42f88c(0x170)](_0x1f8258)){const _0x288951=_0x1ab941[_0x42f88c(0xea)](_0x1f8258);this['_removeDependencyRTreeCacheById'](_0x24c422,_0x1f8258),_0x288951[_0x42f88c(0x137)]((_0x49be0d,_0x2e5581,_0x456248)=>{const _0x2e0307=_0x42f88c;if(_0x456248==null)return!0x0;this[_0x2e0307(0x162)](_0x456248);}),_0x288951[_0x42f88c(0xd3)]();}else _0x1ab941&&(_0x1ab941[_0x42f88c(0xf9)]((_0x1b2c7a,_0x5d6164)=>{const _0x46681e=_0x42f88c;this['_removeDependencyRTreeCacheById'](_0x24c422,_0x5d6164),_0x1b2c7a[_0x46681e(0x137)]((_0x2abec8,_0x3ba88e,_0x5f3093)=>{const _0x218ac1=_0x46681e;if(_0x5f3093==null)return!0x0;this[_0x218ac1(0x162)](_0x5f3093);});}),this[_0x42f88c(0x16b)][_0x42f88c(0x138)](_0x24c422));}[_0x3b8802(0x145)](_0x2eb772){const _0x365354=_0x3b8802;if(_0x2eb772==null)return;const _0x30c329=this['_allTreeMap'][_0x365354(0xea)](_0x2eb772);if(_0x30c329){const _0x553b7d=[];for(const [_0x3574fe,_0x59dad5]of _0x30c329)for(const [_0x5a633b,_0x3ad17a]of _0x59dad5)_0x553b7d['push']({'unitId':_0x3574fe,'sheetId':_0x5a633b,'range':_0x3ad17a,'id':_0x2eb772});this[_0x365354(0x151)][_0x365354(0x10c)](_0x553b7d);}}[_0x3b8802(0x124)](_0x147b26,_0x1c6575){const _0xeb8a19=_0x3b8802,_0x270aad=this['_definedNameMap'][_0xeb8a19(0xea)](_0x147b26);if(_0x270aad){const _0x17d831=_0x270aad[_0xeb8a19(0xea)](_0x1c6575);if(_0x17d831){for(const _0x4b96af of _0x17d831)this[_0xeb8a19(0x145)](_0x4b96af),this[_0xeb8a19(0x162)](_0x4b96af);_0x17d831[_0xeb8a19(0x147)]();}}}['openKdTree'](){this['_dependencyRTreeCache']['openKdTree']();}[_0x3b8802(0x168)](){const _0x41f75d=_0x3b8802;this[_0x41f75d(0x151)]['closeKdTree']();}['_removeAllTreeMap'](_0x2716f3){const _0x3b2952=_0x3b8802;_0x2716f3!=null&&this[_0x3b2952(0x140)]['delete'](_0x2716f3);}[_0x3b8802(0x12d)](_0x34fad3){const _0x1db6f8=_0x3b8802;var _0x3583d1,_0x45e62c;const _0x15c784=_0x34fad3[_0x1db6f8(0x161)];let _0x631ea7=this['_allTreeMap'][_0x1db6f8(0xea)](_0x34fad3['treeId']);for(let _0x5cb1f9=0x0;_0x5cb1f9<_0x15c784[_0x1db6f8(0x127)];_0x5cb1f9++){const _0x422d73=_0x15c784[_0x5cb1f9];let {unitId:_0x2604d4,sheetId:_0x2ca76d,range:_0x185b9b}=_0x422d73;_0x631ea7||(_0x631ea7=new Map(),this[_0x1db6f8(0x140)]['set'](_0x34fad3[_0x1db6f8(0x144)],_0x631ea7)),_0x631ea7[_0x1db6f8(0x170)](_0x2604d4)||_0x631ea7[_0x1db6f8(0xe6)](_0x2604d4,new Map());const _0x2580fe=(_0x3583d1=_0x631ea7==null?void 0x0:_0x631ea7[_0x1db6f8(0xea)](_0x2604d4))==null?void 0x0:_0x3583d1[_0x1db6f8(0xea)](_0x2ca76d);_0x2580fe&&(_0x185b9b={'startRow':Math[_0x1db6f8(0xe7)](_0x185b9b['startRow'],_0x2580fe['startRow']),'startColumn':Math[_0x1db6f8(0xe7)](_0x185b9b['startColumn'],_0x2580fe[_0x1db6f8(0x167)]),'endRow':Math[_0x1db6f8(0xe5)](_0x185b9b[_0x1db6f8(0x131)],_0x2580fe[_0x1db6f8(0x131)]),'endColumn':Math[_0x1db6f8(0xe5)](_0x185b9b['endColumn'],_0x2580fe[_0x1db6f8(0x11d)])}),(_0x45e62c=_0x631ea7[_0x1db6f8(0xea)](_0x2604d4))==null||_0x45e62c[_0x1db6f8(0xe6)](_0x2ca76d,_0x185b9b);}}}var Y=Object[_0x3b8802(0x10a)],B=Object[_0x3b8802(0xc7)],K=(_0x3f1729,_0x3c887a,_0x4574be,_0x27b996)=>{const _0x28cc87=_0x3b8802;for(var _0x258031=_0x27b996>0x1?void 0x0:_0x27b996?B(_0x3c887a,_0x4574be):_0x3c887a,_0x53ece6=_0x3f1729[_0x28cc87(0x127)]-0x1,_0x278504;_0x53ece6>=0x0;_0x53ece6--)(_0x278504=_0x3f1729[_0x53ece6])&&(_0x258031=(_0x27b996?_0x278504(_0x3c887a,_0x4574be,_0x258031):_0x278504(_0x258031))||_0x258031);return _0x27b996&&_0x258031&&Y(_0x3c887a,_0x4574be,_0x258031),_0x258031;};function _0x4f2d(_0x1f3a77,_0x2b7664){const _0x2f2c44=_0x2f2c();return _0x4f2d=function(_0x4f2d02,_0x35bbe3){_0x4f2d02=_0x4f2d02-0xbb;let _0x1b700a=_0x2f2c44[_0x4f2d02];return _0x1b700a;},_0x4f2d(_0x1f3a77,_0x2b7664);}exports[_0x3b8802(0xee)]=class extends u['UniverFormulaEnginePlugin']{[_0x3b8802(0x15b)](){const _0x46b5cb=_0x3b8802;var _0x353374,_0x139672;this[_0x46b5cb(0x15d)]()?(_0x353374=this[_0x46b5cb(0x122)])!=null&&_0x353374['notExecuteFormula']||[[u['ICalculateFormulaService'],{'useClass':G}],[u[_0x46b5cb(0x12a)],{'useClass':V}],[u[_0x46b5cb(0x136)],{'useClass':k}]][_0x46b5cb(0xf9)](_0x372632=>this[_0x46b5cb(0x14b)][_0x46b5cb(0x11e)](_0x372632)):(_0x139672=this['_config'])!=null&&_0x139672[_0x46b5cb(0xdf)]||[[u['ICalculateFormulaService'],{'useClass':u[_0x46b5cb(0xed)]}],[u['IDependencyManagerService'],{'useClass':u[_0x46b5cb(0x12b)]}],[u[_0x46b5cb(0x136)],{'useClass':u[_0x46b5cb(0xce)]}]][_0x46b5cb(0xf9)](_0x262422=>this[_0x46b5cb(0x14b)][_0x46b5cb(0x11e)](_0x262422));}[_0x3b8802(0x15d)](){const _0x27986c=_0x3b8802;var _0x411c91;const _0x2f3140=(_0x411c91=this[_0x27986c(0xf0)]['getConfig'](L[_0x27986c(0xf1)]))!=null?_0x411c91:{},{ls:_0x231cd2,pbk:_0x228f41,tvld:_0x8d78eb}=_0x2f3140;if(!_0x231cd2||!_0x228f41)return!0x1;const _0x26f4d7=L[_0x27986c(0xf2)](W,P);return new Function(_0x27986c(0x111)+_0x26f4d7)()(_0x231cd2,_0x228f41)[_0x27986c(0x14e)];}},exports[_0x3b8802(0xee)]=K([C['DependentOn'](L[_0x3b8802(0x11c)])],exports['UniverProFormulaEnginePlugin']);
1
+ 'use strict';const _0x25a69f=_0x4be3;(function(_0xe18ef3,_0x237422){const _0x663f8a=_0x4be3,_0x1caa75=_0xe18ef3();while(!![]){try{const _0x2bd4f3=parseInt(_0x663f8a(0x15a))/0x1+-parseInt(_0x663f8a(0xc6))/0x2*(-parseInt(_0x663f8a(0xda))/0x3)+parseInt(_0x663f8a(0x108))/0x4*(-parseInt(_0x663f8a(0xcf))/0x5)+parseInt(_0x663f8a(0x160))/0x6+parseInt(_0x663f8a(0xf7))/0x7+-parseInt(_0x663f8a(0xbc))/0x8+-parseInt(_0x663f8a(0xca))/0x9;if(_0x2bd4f3===_0x237422)break;else _0x1caa75['push'](_0x1caa75['shift']());}catch(_0x3e0d09){_0x1caa75['push'](_0x1caa75['shift']());}}}(_0x5311,0xdf060));function _0x5311(){const _0x58b0ab=['setTotalFormulasToCalculate','FormulaExecuteStageType','_configService','_calculateRunList','6294282BzCbeX','markedAsStopFunctionsExecuted','executeAsync','toRTreeItem','_lexer','getOtherFormulaDependency','setFormulaExecuteStage','RTree','resolve','getOtherFormulaData','checkAsyncNode','min','getDirtyData','realDeleteValue','UniverFormulaEnginePlugin','closeKdTree','notExecuteFormula','unitId','DEFAULT_INTERVAL_COUNT','generate','_getRangeListByNode','addFormulaDependency','START_CALCULATION','setRuntimeFeatureCellData','FormulaDependencyGenerator','generateAstNode','FormulaDependencyTree','11430888HuPIaG','addOtherFormulaDependency','getAllRuntimeData','isDirty','forValue','markedAsSuccessfullyExecuted','_initTimeValid','length','START_DEPENDENCY','row','2mcJTRs','keys','getDirtyNameMap','_createVirtualFDtree','7363701yBEOLl','column','size','_createFDtree','subUnitId','3839405YaMaEX','addFeatureFormulaDependency','OTHER_FORMULA','rangeList','get','isForceCalculate','isStopExecution','clearFormulaDependency','DependencyManagerService','setTotalArrayFormulasToCalculate','push','3946782lXTbTd','_removeDependencyRTreeCacheById','_injector','removeFormulaDependencyByDefinedName','_executionInProgressListener$','node','return\x20','clear','_otherFormulaDataMainData','valid','delete','_runtimeService','setCompletedArrayFormulasCount','pop','_getUpdateTreeListAndMakeDependency','_config','isCache','_formulaData','setValue','forEach','formula','UniverLicensePlugin','openKdTree','_featureFormulaData','columnCount','refOffsetY','_allTreeMap','FEATURE_FORMULA','setCurrent','10871154buXFft','symbol','refOffsetX','getFormulaDependency','_otherFormulaData','IDLE','searchDependency','toStringTag','@univerjs/core','clearOtherFormulaDependency','getUnitData','type','featureDirtyRanges','pushRangeList','has','IDependencyManagerService','@univerjs-pro/license','4btRRxP','requestImmediateMacroTask','_dependencyTreeCache','_getFirstCellOfRange','isSkip','setCompletedFormulasCount','ParentDependencyTree\x20object\x20is\x20null','removeOtherFormulaDependency','execute','clearFeatureFormulaDependency','CURRENTLY_CALCULATING','treeId','generateRandomDependencyTreeId','_executionCompleteListener$','@univerjs/engine-formula','_checkIsCycleDependency','formulaId','_traverse','_isCyclicUtilMap','addDependencyRTreeCache','IFormulaDependencyGenerator','addFormulaDependencyByDefinedName','_definedNameMap','dispose','ObjectMatrix','START_DEPENDENCY_ARRAY_FORMULA','FormulaDependencyTreeType','rowCount','endRow','_apply','add','reset','_registerFeatureFormulas','max','setRuntimeOtherData','startColumn','getFeatureFormulaDependency','getClearDependencyTreeCache','isVirtual','defineProperty','setSkip','markedAsNoFunctionsExecuted','setRuntimeData','addOtherFormulaDependencyMainData','isAdded','set','getConfig','_restDependencyTreeId','getValue','enableCycleDependency','unshiftString','_astTreeBuilder','CURRENTLY_CALCULATING_ARRAY_FORMULA','_registerOtherFormulas','_dependencyRTreeCache','getFormulaData','dirtyRanges','UniverProFormulaEnginePlugin','_initializeWithOverride','CalculateFormulaService','_generateTreeList','isExcludeRange','removeFeatureFormulaDependency','START_CALCULATION_ARRAY_FORMULA','getOwnPropertyDescriptor','PLUGIN_CONFIG_KEY','FormulaDependencyTreeVirtual','featureId','_updateRangeFlatten','_removeAllTreeMap','3Ur2ct6r\x20F42WqXct6r(Et24rh4,\x20XU7Et2S4q)\x20{\x20\x20\x20\x2026rhc\x20Et24rh4Rr36ICWcNWWCq\x20=\x20Et24rh4.hXEtc(\x27-\x27);\x20\x20\x20\x2026rhc\x206Wtdtrf4hhCd4\x20=\x208uV0.XCWh4(Cc67(Et24rh4Rr36ICWcNWWCq[a]));\x20\x20\x20\x20t3\x20(!6Wtdtrf4hhCd4.UF)\x20{\x20\x20\x20\x20\x20\x20\x20\x206Wtdtrf4hhCd4.UF\x20=\x200UT74W(Et24rh4Rr36ICWcNWWCq[p]);\x20\x20\x20\x20}\x20\x20\x20\x2026rhc\x20thZ6Wy4W\x20=\x20cqX463\x20Z6Wy4WwE67CEu26X4\x20!==\x20\x27UrF43tr4F\x27\x20&&\x20h4E3\x20trhcCr2463\x20Z6Wy4WwE67CEu26X4;\x20\x20\x20\x2026rhc\x2026rc4Ac\x20=\x20thZ6Wy4W\x20?\x20h4E3\x20:\x201trF61;\x20\x20\x20\x2026rhc\x20T4hhCd4Z6WF\x20=\x2026rc4Ac.__iCh4Jp__.XCWh4(Et24rh4Rr36ICWcNWWCq[a]);\x20\x20\x20\x2026rhc\x20T4hhCd4\x20=\x2026rc4Ac.__m4A__.hcWtrdt3q(T4hhCd4Z6WF);\x20\x20\x20\x2026rhc\x20htdrCcUW4Z6WF\x20=\x2026rc4Ac.__iCh4Jp__.XCWh4(Et24rh4Rr36ICWcNWWCq[n]);\x20\x20\x20\x2026rhc\x20htdrCcUW4\x20=\x2026rc4Ac.__m4A__.hcWtrdt3q(htdrCcUW4Z6WF);\x20\x20\x20\x2026rhc\x20htdrgCEtF\x20=\x2026rc4Ac.__54Wt3q__(htdrCcUW4,\x20T4hhCd4,\x20XU7Et2S4q);\x20\x20\x20\x2026rhc\x20F6TCtr\x20=\x206Wtdtrf4hhCd4.FT;\x20\x20\x20\x203Ur2ct6r\x20thl6TCtrfCc2otrd(6ICcc4Wr,\x206m6hc)\x20{\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20XCcc4Wr\x20=\x206ICcc4Wr.W4XEC24(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20o6hc\x20=\x206m6hc.W4XEC24(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20XCcc4WrICWch\x20=\x20XCcc4Wr.hXEtc(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20o6hcICWch\x20=\x20o6hc.hXEtc(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20t3\x20(!XCcc4Wr.tr2EUF4h(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20W4cUWr\x20XCcc4Wr\x20===\x20o6hc;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20t3\x20(XCcc4WrICWch.E4rdco\x20<\x20a\x20||\x20XCcc4WrICWch[G]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20W4cUWr\x203CEh4;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20XCcc4WruU33tA\x20=\x20XCcc4WrICWch.hEt24(Q).x6tr(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20o6hcuU33tA\x20=\x20o6hcICWch.hEt24(-XCcc4WrICWch.E4rdco\x20+\x20Q).x6tr(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20W4cUWr\x20XCcc4WruU33tA\x20===\x20o6hcuU33tA;\x20\x20\x20\x20}\x20\x20\x20\x20E4c\x20F6TCtrgCEtF\x20=\x20F6TCtr?.E4rdco\x20?\x20F6TCtr.h6T4((FTRc4T)\x20=>\x20thl6TCtrfCc2otrd(FTRc4T,\x20E62Cct6r.o6hcrCT4))\x20:\x20cWU4;\x20\x20\x20\x20t3\x20(E62Cct6r.o6hcrCT4\x20===\x20\x27E62CEo6hc\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20F6TCtrgCEtF\x20=\x20cWU4;\x20\x20\x20\x20}\x20\x20\x20\x2026rhc\x205CEtF\x20=\x20htdrgCEtF\x20&&\x20F6TCtrgCEtF;\x20\x20\x20\x20W4cUWr\x20{\x20\x20\x20\x20\x20\x20\x20\x205CEtF,\x20T4hhCd4:\x206Wtdtrf4hhCd4,\x20\x20\x20\x20};}','hasOtherFormulaDataMainData','getRuntimeState','next','_formulaDependencyGenerator','_currentConfigService','getDirtyRanges','_dependencyManagerService','_otherFormulaManagerService','_addAllTreeMap','_removeDependencyRTreeCache','_registerFormulas','10772zbMdAC','startRow'];_0x5311=function(){return _0x58b0ab;};return _0x5311();}var X=Object[_0x25a69f(0x12f)],P=(_0x4f3200,_0x58ba57,_0x125cdb)=>_0x58ba57 in _0x4f3200?X(_0x4f3200,_0x58ba57,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x125cdb}):_0x4f3200[_0x58ba57]=_0x125cdb,S=(_0xea6037,_0x1d108f,_0x4b6e15)=>P(_0xea6037,typeof _0x1d108f!=_0x25a69f(0xf8)?_0x1d108f+'':_0x1d108f,_0x4b6e15);function _0x4be3(_0x4ba726,_0x2ba8b8){const _0x5311f6=_0x5311();return _0x4be3=function(_0x4be3b7,_0x1c4653){_0x4be3b7=_0x4be3b7-0xa6;let _0xc61311=_0x5311f6[_0x4be3b7];return _0xc61311;},_0x4be3(_0x4ba726,_0x2ba8b8);}Object['defineProperty'](exports,Symbol[_0x25a69f(0xfe)],{'value':'Module'});const v=require(_0x25a69f(0xff)),u=require(_0x25a69f(0x116)),O=require(_0x25a69f(0x107)),b={0x0:'N',0x1:'w',0x2:'c',0x3:'f',0x4:'e',0x5:'v',0x6:'o',0x7:'b',0x8:'J',0x9:'L','G':'0','Q':'1','a':'2','n':'3','p':'4','L':'5','J':'6','s':'7','k':'8','M':'9','C':'a','F':'d','d':'g','o':'h','t':'i','x':'j','y':'k','E':'l','T':'m','r':'n','X':'p','K':'q','W':'r','h':'s','c':'t','U':'u','A':'x','q':'y','j':'z','N':'A','i':'B','D':'C','l':'D','e':'E','b':'F','w':'G','m':'H','R':'I','S':'K','f':'M','V':'O','I':'P','Y':'Q','v':'R','u':'S','B':'T','z':'U','g':'V','Z':'W','O':'X','H':'Y','P':'Z'},k=_0x25a69f(0x14e);class V extends u[_0x25a69f(0xb9)]{constructor(){const _0x5d8e58=_0x25a69f;super(...arguments),S(this,_0x5d8e58(0x10a),new Map());}[_0x25a69f(0x11f)](){const _0x389185=_0x25a69f;super[_0x389185(0x11f)](),this[_0x389185(0x10a)]['clear']();}async['generate'](){const _0x3ccb1d=_0x25a69f;this[_0x3ccb1d(0x14c)]();const _0x274cdb=this[_0x3ccb1d(0x153)][_0x3ccb1d(0x13f)](),_0x582dcd=this[_0x3ccb1d(0x156)][_0x3ccb1d(0xaa)](),_0x4b0d9c=this[_0x3ccb1d(0x153)][_0x3ccb1d(0x12d)]();_0x4b0d9c!=null&&Object[_0x3ccb1d(0xc7)](_0x4b0d9c)['forEach'](_0x541e63=>{const _0x2f00ff=_0x3ccb1d;_0x541e63!=null&&Object['keys'](_0x4b0d9c[_0x541e63])[_0x2f00ff(0xed)](_0xafbb6e=>{const _0x207100=_0x2f00ff;_0xafbb6e!=null&&(this[_0x207100(0x155)][_0x207100(0x100)](_0x541e63,_0xafbb6e),this[_0x207100(0x155)][_0x207100(0x111)](_0x541e63,_0xafbb6e),this[_0x207100(0x155)][_0x207100(0xd6)](_0x541e63,_0xafbb6e));});});const _0x3e6545=this[_0x3ccb1d(0x153)][_0x3ccb1d(0x101)]();await this[_0x3ccb1d(0x144)](_0x274cdb,_0x582dcd,_0x3e6545),this[_0x3ccb1d(0x155)][_0x3ccb1d(0xf0)]();const _0x5175ef=this[_0x3ccb1d(0xe8)](),_0x5e4bf3=this['_calculateRunList'](_0x5175ef);return this[_0x3ccb1d(0x117)](_0x5e4bf3)&&this[_0x3ccb1d(0xe5)][_0x3ccb1d(0x139)](),this['_dependencyTreeCache']['clear'](),this[_0x3ccb1d(0x155)][_0x3ccb1d(0xb0)](),Promise[_0x3ccb1d(0xa9)](_0x5e4bf3);}[_0x25a69f(0x11a)](_0x362ce2,_0x180ec0){const _0x3c67d1=_0x25a69f,_0x3d719d=[_0x362ce2];for(;_0x3d719d[_0x3c67d1(0xc3)]>0x0;){const _0x16f898=_0x3d719d[_0x3d719d[_0x3c67d1(0xc3)]-0x1];if((_0x180ec0[_0x3c67d1(0xd3)](_0x16f898)||0x0)===0x0){_0x180ec0[_0x3c67d1(0x135)](_0x16f898,0x1);const _0x5f5c81=this[_0x3c67d1(0x10a)][_0x3c67d1(0xd3)](_0x16f898);if(_0x5f5c81==null){_0x180ec0['set'](_0x16f898,0x2),_0x3d719d[_0x3c67d1(0xe7)]();continue;}const _0x1d2be8=this[_0x3c67d1(0x155)][_0x3c67d1(0xfd)](_0x5f5c81['toRTreeItem']());for(const _0x17b496 of _0x1d2be8){const _0x44984d=_0x180ec0['get'](_0x17b496)||0x0;if(_0x44984d===0x1)return!0x0;_0x44984d===0x0&&_0x3d719d[_0x3c67d1(0xd9)](_0x17b496);}}else _0x180ec0[_0x3c67d1(0x135)](_0x16f898,0x2),_0x3d719d[_0x3c67d1(0xe7)]();}return!0x1;}['_checkIsCycleDependency'](_0x10254c){const _0x53751d=_0x25a69f,_0x3e8ced=new Map();for(const _0x2ec049 of _0x10254c)if(!_0x3e8ced[_0x53751d(0x105)](_0x2ec049['treeId'])&&this[_0x53751d(0x11a)](_0x2ec049[_0x53751d(0x113)],_0x3e8ced))return!0x0;return _0x3e8ced['clear'](),!0x1;}async[_0x25a69f(0x144)](_0x1df882,_0x18c240,_0x2692c4){const _0x3cb381=_0x25a69f,_0x17551f=Object[_0x3cb381(0xc7)](_0x1df882),_0x374a58=Object[_0x3cb381(0xc7)](_0x18c240),_0x1da7cd=[];this[_0x3cb381(0x153)][_0x3cb381(0xd4)]()&&this[_0x3cb381(0x155)]['reset'](),this[_0x3cb381(0x159)](_0x17551f,_0x1df882,_0x2692c4,_0x1da7cd),this['_registerOtherFormulas'](_0x18c240,_0x374a58,_0x1da7cd),this[_0x3cb381(0x128)](_0x1da7cd);for(let _0x2d8830=0x0,_0x12f2c3=_0x1da7cd[_0x3cb381(0xc3)];_0x2d8830<_0x12f2c3;_0x2d8830++){const _0x197c7d=_0x1da7cd[_0x2d8830],_0x25167d=u[_0x3cb381(0xba)](_0x197c7d['unitId'],_0x197c7d[_0x3cb381(0xee)],this[_0x3cb381(0x164)],this[_0x3cb381(0x13b)],this['_currentConfigService']);if(_0x197c7d[_0x3cb381(0xbf)]=this['_includeTree'](_0x197c7d,_0x25167d),_0x197c7d[_0x3cb381(0x12e)])continue;this['_runtimeService'][_0x3cb381(0xf6)](_0x197c7d[_0x3cb381(0xc5)],_0x197c7d[_0x3cb381(0xcb)],_0x197c7d[_0x3cb381(0x123)],_0x197c7d[_0x3cb381(0xf2)],_0x197c7d[_0x3cb381(0xce)],_0x197c7d['unitId']);const _0x580ffe=await this[_0x3cb381(0xb5)]({'node':_0x25167d,'refOffsetX':_0x197c7d[_0x3cb381(0xf9)],'refOffsetY':_0x197c7d[_0x3cb381(0xf3)]});_0x197c7d[_0x3cb381(0x104)](_0x580ffe);}for(let _0x2d5b1f=0x0,_0x5ea659=_0x1da7cd[_0x3cb381(0xc3)];_0x2d5b1f<_0x5ea659;_0x2d5b1f++){const _0x46df2f=_0x1da7cd[_0x2d5b1f];_0x46df2f[_0x3cb381(0xea)]||this[_0x3cb381(0x155)][_0x3cb381(0x11b)](_0x46df2f);}return _0x1da7cd;}['_getFeatureFormulaTree'](_0x4548ec,_0x395fff,_0x3a7891){const _0x3f36bf=_0x25a69f,{unitId:_0x5ad520,subUnitId:_0x15cd4a,dependencyRanges:_0x5016c8,getDirtyData:_0x373b0b}=_0x3a7891,_0x26b009=_0x395fff||u[_0x3f36bf(0x114)](this[_0x3f36bf(0x155)]),_0x4fc0ba=new u[(_0x3f36bf(0xbb))](_0x26b009);_0x4fc0ba['unitId']=_0x5ad520,_0x4fc0ba[_0x3f36bf(0xce)]=_0x15cd4a,_0x4fc0ba[_0x3f36bf(0xd2)]=_0x5016c8,_0x4fc0ba[_0x3f36bf(0xad)]=_0x373b0b;const _0x2776cf=_0x373b0b(this[_0x3f36bf(0x153)][_0x3f36bf(0xad)](),this['_runtimeService'][_0x3f36bf(0xbe)]()),_0x33d27d=this['_convertDirtyRangesToUnitRange'](_0x2776cf[_0x3f36bf(0x140)]);return _0x4fc0ba[_0x3f36bf(0x103)]=_0x33d27d,_0x4fc0ba[_0x3f36bf(0x14b)]=_0x4548ec,_0x4fc0ba[_0x3f36bf(0x102)]=u[_0x3f36bf(0x122)][_0x3f36bf(0xf5)],this[_0x3f36bf(0x155)][_0x3f36bf(0xd0)](_0x5ad520,_0x15cd4a,_0x4548ec,_0x4fc0ba),this[_0x3f36bf(0x10a)][_0x3f36bf(0x135)](_0x4fc0ba[_0x3f36bf(0x113)],_0x4fc0ba),this[_0x3f36bf(0x155)][_0x3f36bf(0x12c)](_0x3a7891['unitId'],_0x3a7891[_0x3f36bf(0xce)],_0x4548ec)&&(_0x4fc0ba[_0x3f36bf(0xea)]=!0x0),_0x4fc0ba;}[_0x25a69f(0x13d)](_0xb034a6,_0xa2433f,_0x1a3db3){const _0x581bbb=_0x25a69f;for(const _0x2d544a of _0xa2433f){const _0x12b207=_0xb034a6[_0x2d544a];if(_0x12b207==null)continue;const _0x404a7a=Object['keys'](_0x12b207);for(const _0x23ef27 of _0x404a7a){const _0x91c13=_0x12b207[_0x23ef27];if(_0x91c13==null)continue;const _0x490a00=Object[_0x581bbb(0xc7)](_0x91c13);for(const _0x280b46 of _0x490a00){const _0x5cf538=this[_0x581bbb(0x155)][_0x581bbb(0x14f)](_0x280b46),_0x4b8300=_0x91c13[_0x280b46],{f:_0x16a0c5,ranges:_0x146acd}=_0x4b8300;let _0x7c7e85=!0x1;_0x5cf538&&(_0x7c7e85=!0x0);const {firstRow:_0x3af597,firstColumn:_0x27ea7}=this[_0x581bbb(0x10b)](_0x146acd),_0x7a6980=this['_dependencyManagerService'][_0x581bbb(0xa6)](_0x2d544a,_0x23ef27,_0x280b46),_0x25ed82=(_0x7a6980==null?void 0x0:_0x7a6980[_0x581bbb(0x138)](0x0,0x0))||u[_0x581bbb(0x114)](this[_0x581bbb(0x155)]),_0x59ceee=new u[(_0x581bbb(0xbb))](_0x25ed82);for(let _0x5ea1e9=0x0;_0x5ea1e9<_0x146acd[_0x581bbb(0xc3)];_0x5ea1e9++){const _0x33a3e4=_0x146acd[_0x5ea1e9],{startRow:_0xafe328,startColumn:_0x29d25a,endRow:_0x1b76c7,endColumn:_0x2361c1}=_0x33a3e4;for(let _0x4a05d6=_0xafe328;_0x4a05d6<=_0x1b76c7;_0x4a05d6++)for(let _0x465be5=_0x29d25a;_0x465be5<=_0x2361c1;_0x465be5++){const _0x18c9a8=_0x465be5-_0x27ea7,_0x31cf82=_0x4a05d6-_0x3af597;if(_0x18c9a8===0x0&&_0x31cf82===0x0){_0x59ceee[_0x581bbb(0xee)]=_0x16a0c5,_0x59ceee[_0x581bbb(0xb2)]=_0x2d544a,_0x59ceee[_0x581bbb(0xce)]=_0x23ef27,_0x59ceee[_0x581bbb(0x118)]=_0x280b46,_0x59ceee[_0x581bbb(0x102)]=u[_0x581bbb(0x122)][_0x581bbb(0xd1)],_0x59ceee[_0x581bbb(0xea)]=_0x7c7e85,_0x1a3db3[_0x581bbb(0xd9)](_0x59ceee),this[_0x581bbb(0x10a)][_0x581bbb(0x135)](_0x59ceee[_0x581bbb(0x113)],_0x59ceee),this[_0x581bbb(0x155)][_0x581bbb(0xbd)](_0x2d544a,_0x23ef27,_0x280b46,_0x59ceee),this[_0x581bbb(0x155)][_0x581bbb(0x11d)](_0x59ceee);continue;}const _0x3ed6f0=new u[(_0x581bbb(0x14a))]();_0x3ed6f0[_0x581bbb(0x113)]=(_0x7a6980==null?void 0x0:_0x7a6980[_0x581bbb(0x138)](_0x18c9a8,_0x31cf82))||u[_0x581bbb(0x114)](this[_0x581bbb(0x155)]),_0x3ed6f0['refTree']=_0x59ceee,_0x3ed6f0['refOffsetX']=_0x18c9a8,_0x3ed6f0[_0x581bbb(0xf3)]=_0x31cf82,_0x3ed6f0[_0x581bbb(0xea)]=_0x7c7e85,this[_0x581bbb(0x155)][_0x581bbb(0xbd)](_0x2d544a,_0x23ef27,_0x280b46,_0x3ed6f0),this[_0x581bbb(0x155)][_0x581bbb(0x11d)](_0x3ed6f0),_0x1a3db3[_0x581bbb(0xd9)](_0x3ed6f0),this[_0x581bbb(0x10a)][_0x581bbb(0x135)](_0x3ed6f0['treeId'],_0x3ed6f0);}}this[_0x581bbb(0x155)][_0x581bbb(0x133)](_0x280b46);}}}}[_0x25a69f(0x159)](_0x1ec93e,_0x2552df,_0x4adced,_0x443758){const _0x43f7e0=_0x25a69f;for(const _0x2ddd24 of _0x1ec93e){const _0x19a16f=_0x2552df[_0x2ddd24];if(_0x19a16f==null)continue;const _0x303095=Object['keys'](_0x19a16f);for(const _0x217441 of _0x303095){const _0x5be3fc=new v[(_0x43f7e0(0x120))](_0x19a16f[_0x217441]||{}),_0x1325e1=new Map();_0x5be3fc[_0x43f7e0(0xc0)]((_0x6c1480,_0x60ddfc,_0x438c02)=>{const _0x32efc9=_0x43f7e0;if(_0x438c02==null)return!0x0;const {x:_0x138dd5=0x0,y:_0x43a153=0x0,si:_0x28c0ac}=_0x438c02;if(!(_0x138dd5===0x0&&_0x43a153===0x0&&_0x28c0ac!=null))return!0x0;const _0x3792be=this['_createFDtree'](_0x2ddd24,_0x217441,_0x6c1480,_0x60ddfc,_0x4adced,_0x438c02),_0x390a5e=this[_0x32efc9(0x155)]['getFormulaDependency'](_0x2ddd24,_0x217441,_0x6c1480,_0x60ddfc);_0x390a5e!=null?_0x3792be[_0x32efc9(0x113)]=_0x390a5e:(this[_0x32efc9(0x155)][_0x32efc9(0xb6)](_0x2ddd24,_0x217441,_0x6c1480,_0x60ddfc,_0x3792be),this['_dependencyManagerService'][_0x32efc9(0x11d)](_0x3792be)),_0x1325e1[_0x32efc9(0x135)](_0x28c0ac,_0x3792be),_0x443758['push'](_0x3792be),this[_0x32efc9(0x10a)]['set'](_0x3792be[_0x32efc9(0x113)],_0x3792be);}),_0x5be3fc['forValue']((_0x50a9a9,_0x1c7845,_0x559291)=>{const _0x459178=_0x43f7e0;if(_0x559291==null)return!0x0;const {x:_0x151687=0x0,y:_0xa8334b=0x0,si:_0x21cc49}=_0x559291;if(_0x151687===0x0&&_0xa8334b===0x0&&_0x21cc49!=null)return!0x0;let _0x4736e6;if(_0x21cc49&&_0x1325e1['has'](_0x21cc49)){const _0x19731a=_0x1325e1[_0x459178(0xd3)](_0x21cc49);_0x4736e6=this[_0x459178(0xc9)](_0x19731a,_0x559291);}else _0x4736e6=this[_0x459178(0xcd)](_0x2ddd24,_0x217441,_0x50a9a9,_0x1c7845,_0x4adced,_0x559291);const _0x1cad6d=this[_0x459178(0x155)][_0x459178(0xfa)](_0x2ddd24,_0x217441,_0x50a9a9,_0x1c7845);_0x1cad6d!=null?_0x4736e6[_0x459178(0x113)]=_0x1cad6d:(this[_0x459178(0x155)]['addFormulaDependency'](_0x2ddd24,_0x217441,_0x50a9a9,_0x1c7845,_0x4736e6),this['_dependencyManagerService']['addFormulaDependencyByDefinedName'](_0x4736e6)),_0x443758[_0x459178(0xd9)](_0x4736e6),this[_0x459178(0x10a)][_0x459178(0x135)](_0x4736e6['treeId'],_0x4736e6);}),_0x1325e1[_0x43f7e0(0xe1)]();}}}[_0x25a69f(0xcd)](_0x48bbbb,_0x5c622d,_0x36ff7e,_0x56ea07,_0x5270ef,_0x16044b){const _0x5f049a=_0x25a69f,{f:_0x5b8cde,x:_0x55363b=0x0,y:_0x516a91=0x0}=_0x16044b,_0x48192b=new u[(_0x5f049a(0xbb))](u[_0x5f049a(0x114)](this[_0x5f049a(0x155)])),_0x1c646a=_0x5270ef[_0x48bbbb][_0x5c622d];return _0x48192b[_0x5f049a(0xee)]=_0x5b8cde,_0x48192b[_0x5f049a(0xb2)]=_0x48bbbb,_0x48192b[_0x5f049a(0xce)]=_0x5c622d,_0x48192b[_0x5f049a(0xc5)]=_0x36ff7e,_0x48192b[_0x5f049a(0xcb)]=_0x56ea07,_0x48192b[_0x5f049a(0x123)]=_0x1c646a[_0x5f049a(0x123)],_0x48192b[_0x5f049a(0xf2)]=_0x1c646a['columnCount'],_0x48192b;}[_0x25a69f(0xe8)](){const _0x1ebeaa=_0x25a69f,_0x3390f4=[],_0x16a487=new Set(),_0x574564=this[_0x1ebeaa(0x153)][_0x1ebeaa(0xd4)](),_0x579b9b=this[_0x1ebeaa(0x153)][_0x1ebeaa(0x154)](),_0xe979b8=this['_dependencyManagerService']['searchDependency'](_0x579b9b);for(const [_0x458575,_0x1e24ff]of this[_0x1ebeaa(0x10a)])(_0x574564||_0x1e24ff[_0x1ebeaa(0xbf)]||_0x1e24ff['dependencySheetName'](this[_0x1ebeaa(0x153)][_0x1ebeaa(0xc8)]())||_0xe979b8[_0x1ebeaa(0x105)](_0x458575)&&!_0x1e24ff[_0x1ebeaa(0x145)](this[_0x1ebeaa(0x153)]['getExcludedRange']()))&&!_0x16a487[_0x1ebeaa(0x105)](_0x458575)&&(_0x3390f4[_0x1ebeaa(0xd9)](_0x1e24ff),_0x16a487['add'](_0x458575));for(const [_0x4ef06d,_0x4cbf21]of this[_0x1ebeaa(0x10a)])_0x4cbf21[_0x1ebeaa(0x12e)]||(_0x4cbf21[_0x1ebeaa(0xd2)][_0x1ebeaa(0xc3)]=0x0);return _0x3390f4;}*[_0x25a69f(0x119)](_0x3bc156,_0x7f561e){const _0x2b498f=_0x25a69f,_0x461fae=_0x3bc156,_0x4a5249=new Set();for(;_0x461fae[_0x2b498f(0xc3)]>0x0;){const _0x23da8d=_0x461fae[_0x2b498f(0xe7)]();if(_0x4a5249[_0x2b498f(0xe1)](),_0x23da8d===void 0x0||_0x23da8d['isSkip']())continue;if(_0x23da8d[_0x2b498f(0x134)]()){yield _0x23da8d,_0x23da8d['setSkip'](),_0x7f561e[_0x2b498f(0x126)](_0x23da8d['treeId']);continue;}const _0x2f1df4=this['_dependencyManagerService']['searchDependency'](_0x23da8d[_0x2b498f(0x163)](),_0x7f561e);for(const _0x50e16f of _0x2f1df4){const _0x5ebe16=this[_0x2b498f(0x10a)][_0x2b498f(0xd3)](_0x50e16f);if(!_0x5ebe16)throw new Error(_0x2b498f(0x10e));_0x5ebe16[_0x2b498f(0x134)]()||_0x23da8d[_0x2b498f(0x10c)]()||_0x4a5249[_0x2b498f(0x126)](_0x5ebe16);}if(_0x2f1df4[_0x2b498f(0xe1)](),_0x4a5249[_0x2b498f(0xcc)]===0x0)yield _0x23da8d,_0x23da8d[_0x2b498f(0x130)](),_0x7f561e[_0x2b498f(0x126)](_0x23da8d['treeId']);else{_0x23da8d['setAdded'](),_0x461fae[_0x2b498f(0xd9)](_0x23da8d);for(const _0x115af2 of _0x4a5249)_0x461fae[_0x2b498f(0xd9)](_0x115af2);}}_0x461fae[_0x2b498f(0xc3)]=0x0,_0x4a5249[_0x2b498f(0xe1)]();}[_0x25a69f(0x15f)](_0x4da50d){const _0x1bbf67=[],_0x2f1a0f=new Set();for(const _0x2d1f45 of this['_traverse'](_0x4da50d,_0x2f1a0f))_0x1bbf67['push'](_0x2d1f45);return _0x1bbf67;}}class Y extends u[_0x25a69f(0x143)]{async[_0x25a69f(0x125)](_0x5a09e2=!0x1){const _0x452c02=_0x25a69f;_0x5a09e2?this[_0x452c02(0xe5)]['setFormulaExecuteStage'](u[_0x452c02(0x15d)][_0x452c02(0x121)]):this[_0x452c02(0xe5)][_0x452c02(0xa7)](u[_0x452c02(0x15d)][_0x452c02(0xc4)]),this[_0x452c02(0xde)][_0x452c02(0x151)](this['_runtimeService'][_0x452c02(0x150)]());const _0x126407=await this[_0x452c02(0x152)][_0x452c02(0xb4)](),_0x154403=this['_interpreter'];_0x5a09e2?(this[_0x452c02(0xe5)][_0x452c02(0xa7)](u[_0x452c02(0x15d)][_0x452c02(0x147)]),this[_0x452c02(0xe5)][_0x452c02(0xd8)](_0x126407[_0x452c02(0xc3)])):(this[_0x452c02(0xe5)][_0x452c02(0xa7)](u[_0x452c02(0x15d)][_0x452c02(0xb7)]),this[_0x452c02(0xe5)][_0x452c02(0x15c)](_0x126407[_0x452c02(0xc3)])),this[_0x452c02(0xde)][_0x452c02(0x151)](this[_0x452c02(0xe5)][_0x452c02(0x150)]());let _0x30cd86=[];const _0x14d20e=this['_configService'][_0x452c02(0x136)](u[_0x452c02(0x149)]),_0x50eac9=(_0x14d20e==null?void 0x0:_0x14d20e['intervalCount'])||u[_0x452c02(0xb3)];let _0x2c1f20=0x0;const _0x1ea78d=_0x126407[_0x452c02(0xc3)];for(;_0x126407[_0x452c02(0xc3)]>0x0;){const _0x459214=_0x126407[_0x452c02(0xe7)](),_0x407bfd={'node':u[_0x452c02(0xba)](_0x459214[_0x452c02(0xb2)],_0x459214[_0x452c02(0xee)],this[_0x452c02(0x164)],this[_0x452c02(0x13b)],this[_0x452c02(0x153)]),'refOffsetX':_0x459214['refOffsetX'],'refOffsetY':_0x459214[_0x452c02(0xf3)]},_0x53e514=_0x459214[_0x452c02(0xad)];if(_0x2c1f20%_0x50eac9===0x0&&(await new Promise(_0x4350fe=>{const _0x4e8a81=_0x452c02,_0xfb9ce8=v[_0x4e8a81(0x109)](_0x4350fe);_0x30cd86[_0x4e8a81(0xd9)](_0xfb9ce8);}),_0x5a09e2?(this['_runtimeService'][_0x452c02(0xa7)](u[_0x452c02(0x15d)][_0x452c02(0x13c)]),this['_runtimeService'][_0x452c02(0xe6)](_0x2c1f20+0x1)):(this[_0x452c02(0xe5)][_0x452c02(0xa7)](u[_0x452c02(0x15d)][_0x452c02(0x112)]),this['_runtimeService'][_0x452c02(0x10d)](_0x2c1f20+0x1)),this['_executionInProgressListener$'][_0x452c02(0x151)](this[_0x452c02(0xe5)][_0x452c02(0x150)]()),this[_0x452c02(0xe5)][_0x452c02(0xd5)]()||_0x407bfd==null&&_0x53e514==null)){this['_runtimeService'][_0x452c02(0xa7)](u[_0x452c02(0x15d)][_0x452c02(0xfc)]),this[_0x452c02(0xe5)][_0x452c02(0x161)](),this[_0x452c02(0x115)][_0x452c02(0x151)](this[_0x452c02(0xe5)][_0x452c02(0xbe)]());return;}this[_0x452c02(0xe5)][_0x452c02(0xf6)](_0x459214[_0x452c02(0xc5)],_0x459214['column'],_0x459214[_0x452c02(0x123)],_0x459214['columnCount'],_0x459214['subUnitId'],_0x459214[_0x452c02(0xb2)]);let _0x1114ee;if(_0x53e514!=null&&_0x459214[_0x452c02(0x14b)]!=null){const {runtimeCellData:_0x4b5ce8,dirtyRanges:_0x1ce649}=_0x53e514(this[_0x452c02(0x153)][_0x452c02(0xad)](),this[_0x452c02(0xe5)][_0x452c02(0xbe)]());this[_0x452c02(0xe5)][_0x452c02(0xb8)](_0x459214['featureId'],_0x4b5ce8),this[_0x452c02(0xe5)]['setRuntimeFeatureRange'](_0x459214[_0x452c02(0x14b)],_0x1ce649);}else _0x407bfd!=null&&(_0x154403[_0x452c02(0xab)](_0x407bfd[_0x452c02(0xdf)])?_0x1114ee=await _0x154403[_0x452c02(0x162)](_0x407bfd):_0x1114ee=_0x154403[_0x452c02(0x110)](_0x407bfd),_0x459214['formulaId']!=null?this['_runtimeService'][_0x452c02(0x12a)](_0x459214[_0x452c02(0x118)],_0x459214['refOffsetX'],_0x459214['refOffsetY'],_0x1114ee):this[_0x452c02(0xe5)][_0x452c02(0x132)](_0x1114ee));_0x2c1f20++;}return _0x30cd86[_0x452c02(0xed)](_0x4742a9=>_0x4742a9()),_0x30cd86=[],_0x1ea78d>0x0?this[_0x452c02(0xe5)][_0x452c02(0xc1)]():_0x5a09e2||this[_0x452c02(0xe5)][_0x452c02(0x131)](),this[_0x452c02(0xe5)][_0x452c02(0xbe)]();}}class B extends u['DependencyManagerBaseService']{constructor(){const _0x244ab3=_0x25a69f;super(...arguments),S(this,_0x244ab3(0xf4),new Map()),S(this,'_dependencyRTreeCache',new v[(_0x244ab3(0xa8))](!0x0));}[_0x25a69f(0x127)](){const _0x1fc09e=_0x25a69f;this[_0x1fc09e(0xfb)]['clear'](),this[_0x1fc09e(0xf1)][_0x1fc09e(0xe1)](),this[_0x1fc09e(0xeb)][_0x1fc09e(0xe1)](),this[_0x1fc09e(0x13e)]['clear'](),this[_0x1fc09e(0xf4)][_0x1fc09e(0xe1)](),this[_0x1fc09e(0x137)](),this[_0x1fc09e(0xe2)][_0x1fc09e(0xe1)]();}[_0x25a69f(0xbd)](_0x538154,_0x546951,_0x36afb7,_0x55f953){const _0x2e0b9e=_0x25a69f;this['_otherFormulaData'][_0x2e0b9e(0x105)](_0x538154)||this['_otherFormulaData'][_0x2e0b9e(0x135)](_0x538154,new Map());const _0x542abc=this['_otherFormulaData']['get'](_0x538154);_0x542abc[_0x2e0b9e(0x105)](_0x546951)||_0x542abc['set'](_0x546951,new Map());const _0x8c2075=_0x542abc['get'](_0x546951);_0x8c2075[_0x2e0b9e(0x105)](_0x36afb7)||_0x8c2075[_0x2e0b9e(0x135)](_0x36afb7,new v[(_0x2e0b9e(0x120))]()),_0x8c2075[_0x2e0b9e(0xd3)](_0x36afb7)[_0x2e0b9e(0xec)](_0x55f953[_0x2e0b9e(0xf9)],_0x55f953[_0x2e0b9e(0xf3)],_0x55f953[_0x2e0b9e(0x113)]);}[_0x25a69f(0x10f)](_0x47ce67,_0x7ba126,_0x39e49b){const _0x4deff5=_0x25a69f,_0x1a6a40=this[_0x4deff5(0xfb)][_0x4deff5(0xd3)](_0x47ce67);if(_0x1a6a40&&_0x1a6a40[_0x4deff5(0x105)](_0x7ba126)){const _0x419dcd=_0x1a6a40[_0x4deff5(0xd3)](_0x7ba126);_0x39e49b[_0x4deff5(0xed)](_0x4ef624=>{const _0x1fae06=_0x4deff5,_0x55e59f=_0x419dcd[_0x1fae06(0xd3)](_0x4ef624);_0x55e59f!=null&&(_0x55e59f[_0x1fae06(0xc0)]((_0x1eb559,_0x3773c6,_0x3e26e0)=>{const _0x22b337=_0x1fae06;this[_0x22b337(0x158)](_0x3e26e0),this['_removeAllTreeMap'](_0x3e26e0);}),_0x419dcd[_0x1fae06(0xe4)](_0x4ef624),this[_0x1fae06(0xe2)]['delete'](_0x4ef624));}),_0x419dcd['size']===0x0&&_0x1a6a40[_0x4deff5(0xe4)](_0x7ba126),_0x1a6a40[_0x4deff5(0xcc)]===0x0&&this[_0x4deff5(0xfb)][_0x4deff5(0xe4)](_0x47ce67);}}[_0x25a69f(0x100)](_0x534163,_0x58152f){const _0x1b24e4=_0x25a69f,_0xa070f5=this[_0x1b24e4(0xfb)]['get'](_0x534163);if(_0x58152f&&_0xa070f5&&_0xa070f5[_0x1b24e4(0x105)](_0x58152f)){const _0x3dfcc5=_0xa070f5['get'](_0x58152f);this['_removeDependencyRTreeCacheById'](_0x534163,_0x58152f);for(const _0x247b5a of _0x3dfcc5[_0x1b24e4(0xc7)]()){const _0x146467=_0x3dfcc5[_0x1b24e4(0xd3)](_0x247b5a);_0x146467!=null&&(_0x146467[_0x1b24e4(0xc0)]((_0x4cfd4d,_0x1b19af,_0x1ced88)=>{const _0x402e0c=_0x1b24e4;this[_0x402e0c(0xf4)][_0x402e0c(0xd3)](_0x1ced88)&&this[_0x402e0c(0x14d)](_0x1ced88);}),this[_0x1b24e4(0xe2)][_0x1b24e4(0xe4)](_0x247b5a));}_0x3dfcc5[_0x1b24e4(0xe1)]();}else{if(_0xa070f5){for(const _0x22a04c of _0xa070f5[_0x1b24e4(0xc7)]()){const _0xab7d75=_0xa070f5[_0x1b24e4(0xd3)](_0x22a04c);this[_0x1b24e4(0xdb)](_0x534163,_0x22a04c);for(const _0x3a2509 of _0xab7d75[_0x1b24e4(0xc7)]()){const _0x4c359f=_0xab7d75[_0x1b24e4(0xd3)](_0x3a2509);_0x4c359f!=null&&(_0x4c359f[_0x1b24e4(0xc0)]((_0x13f04d,_0x26b4a5,_0x25bcdb)=>{const _0xd68473=_0x1b24e4;this['_allTreeMap']['get'](_0x25bcdb)&&this[_0xd68473(0x14d)](_0x25bcdb);}),this[_0x1b24e4(0xe2)][_0x1b24e4(0xe4)](_0x3a2509));}}this[_0x1b24e4(0xfb)][_0x1b24e4(0xe4)](_0x534163);}}}[_0x25a69f(0xd0)](_0x4d041,_0x12fe0a,_0x36252b,_0x277f2e){const _0x1ec73a=_0x25a69f;this[_0x1ec73a(0xf1)][_0x1ec73a(0x105)](_0x4d041)||this[_0x1ec73a(0xf1)][_0x1ec73a(0x135)](_0x4d041,new Map());const _0x563296=this[_0x1ec73a(0xf1)]['get'](_0x4d041);_0x563296[_0x1ec73a(0x105)](_0x12fe0a)||_0x563296[_0x1ec73a(0x135)](_0x12fe0a,new Map()),_0x563296[_0x1ec73a(0xd3)](_0x12fe0a)['set'](_0x36252b,_0x277f2e['treeId']);}[_0x25a69f(0x146)](_0x3de185,_0x2428cf,_0x49773e){const _0x1350c5=_0x25a69f,_0x206b0f=this[_0x1350c5(0xf1)][_0x1350c5(0xd3)](_0x3de185);if(_0x206b0f&&_0x206b0f[_0x1350c5(0x105)](_0x2428cf)){const _0x1c0ce7=_0x206b0f[_0x1350c5(0xd3)](_0x2428cf);_0x49773e[_0x1350c5(0xed)](_0x1bf84a=>{const _0x135f1c=_0x1350c5,_0x427826=_0x1c0ce7[_0x135f1c(0xd3)](_0x1bf84a);_0x427826!=null&&(this[_0x135f1c(0x158)](_0x427826),_0x1c0ce7[_0x135f1c(0xe4)](_0x1bf84a),this[_0x135f1c(0x14d)](_0x427826));});}}['clearFeatureFormulaDependency'](_0x4349db,_0x177aee){const _0x1dbe64=_0x25a69f,_0x2b147e=this[_0x1dbe64(0xf1)][_0x1dbe64(0xd3)](_0x4349db);if(_0x177aee&&_0x2b147e&&_0x2b147e[_0x1dbe64(0x105)](_0x177aee)){const _0x446631=_0x2b147e[_0x1dbe64(0xd3)](_0x177aee);this[_0x1dbe64(0xdb)](_0x4349db,_0x177aee),_0x446631[_0x1dbe64(0xed)](_0x393862=>{const _0x3042d2=_0x1dbe64;_0x393862!=null&&this[_0x3042d2(0x14d)](_0x393862);}),_0x446631[_0x1dbe64(0xe1)]();}else _0x2b147e&&(_0x2b147e[_0x1dbe64(0xed)]((_0x32a304,_0x4565b6)=>{const _0x43eca1=_0x1dbe64;this[_0x43eca1(0xdb)](_0x4349db,_0x4565b6),_0x32a304[_0x43eca1(0xed)](_0x295f81=>{const _0x3e5323=_0x43eca1;_0x295f81!=null&&this[_0x3e5323(0x14d)](_0x295f81);});}),this['_featureFormulaData']['delete'](_0x4349db));}[_0x25a69f(0xb6)](_0xe635fc,_0x19ba42,_0x37df36,_0x1e1d21,_0x17c6bb){const _0x3450d9=_0x25a69f;this[_0x3450d9(0xeb)][_0x3450d9(0x105)](_0xe635fc)||this[_0x3450d9(0xeb)][_0x3450d9(0x135)](_0xe635fc,new Map());const _0x3ff0ac=this['_formulaData'][_0x3450d9(0xd3)](_0xe635fc);_0x3ff0ac[_0x3450d9(0x105)](_0x19ba42)||_0x3ff0ac[_0x3450d9(0x135)](_0x19ba42,new v['ObjectMatrix']()),_0x3ff0ac[_0x3450d9(0xd3)](_0x19ba42)[_0x3450d9(0xec)](_0x37df36,_0x1e1d21,_0x17c6bb['treeId']);}['removeFormulaDependency'](_0x113b29,_0x2c2afc,_0x5f5175,_0x345f13){const _0x5cc074=_0x25a69f,_0x1ae207=this[_0x5cc074(0xeb)][_0x5cc074(0xd3)](_0x113b29);if(_0x1ae207&&_0x1ae207['has'](_0x2c2afc)){const _0x47a862=_0x1ae207[_0x5cc074(0xd3)](_0x2c2afc),_0x209bf7=_0x47a862[_0x5cc074(0x138)](_0x5f5175,_0x345f13);if(_0x209bf7==null)return;this['_removeDependencyRTreeCache'](_0x209bf7),_0x47a862[_0x5cc074(0xae)](_0x5f5175,_0x345f13),this[_0x5cc074(0x14d)](_0x209bf7);}}[_0x25a69f(0xd6)](_0x399c79,_0x2730bd){const _0x38f923=_0x25a69f,_0x9420c7=this['_formulaData'][_0x38f923(0xd3)](_0x399c79);if(_0x2730bd&&_0x9420c7&&_0x9420c7[_0x38f923(0x105)](_0x2730bd)){const _0x2a948f=_0x9420c7[_0x38f923(0xd3)](_0x2730bd);this['_removeDependencyRTreeCacheById'](_0x399c79,_0x2730bd),_0x2a948f[_0x38f923(0xc0)]((_0x46857b,_0x106231,_0x35c70f)=>{if(_0x35c70f==null)return!0x0;this['_removeAllTreeMap'](_0x35c70f);}),_0x2a948f[_0x38f923(0x127)]();}else _0x9420c7&&(_0x9420c7['forEach']((_0x2479e7,_0x271c34)=>{const _0x5dd530=_0x38f923;this[_0x5dd530(0xdb)](_0x399c79,_0x271c34),_0x2479e7[_0x5dd530(0xc0)]((_0xd7a849,_0x492344,_0xf3fc8d)=>{if(_0xf3fc8d==null)return!0x0;this['_removeAllTreeMap'](_0xf3fc8d);});}),this[_0x38f923(0xeb)][_0x38f923(0xe4)](_0x399c79));}[_0x25a69f(0x158)](_0x380f5d){const _0x47cd02=_0x25a69f;if(_0x380f5d==null)return;const _0x132674=this[_0x47cd02(0xf4)][_0x47cd02(0xd3)](_0x380f5d);if(_0x132674){const _0x16f315=[];for(const [_0x5c4705,_0x418fcb]of _0x132674)for(const [_0x10c10a,_0x286cf4]of _0x418fcb)_0x16f315[_0x47cd02(0xd9)]({'unitId':_0x5c4705,'sheetId':_0x10c10a,'range':_0x286cf4,'id':_0x380f5d});this[_0x47cd02(0x13e)]['bulkRemove'](_0x16f315);}}[_0x25a69f(0xdd)](_0xb2a3e3,_0x395349){const _0x50fbc6=_0x25a69f,_0xe36b7=this[_0x50fbc6(0x11e)][_0x50fbc6(0xd3)](_0xb2a3e3);if(_0xe36b7){const _0x3b31af=_0xe36b7[_0x50fbc6(0xd3)](_0x395349);if(_0x3b31af){for(const _0x26b07d of _0x3b31af)this[_0x50fbc6(0x158)](_0x26b07d),this['_removeAllTreeMap'](_0x26b07d);_0x3b31af[_0x50fbc6(0xe1)]();}}}[_0x25a69f(0xf0)](){const _0x57724=_0x25a69f;this[_0x57724(0x13e)][_0x57724(0xf0)]();}[_0x25a69f(0xb0)](){const _0x3e44f0=_0x25a69f;this[_0x3e44f0(0x13e)]['closeKdTree']();}[_0x25a69f(0x14d)](_0x3e9e74){const _0x57c873=_0x25a69f;_0x3e9e74!=null&&this[_0x57c873(0xf4)][_0x57c873(0xe4)](_0x3e9e74);}[_0x25a69f(0x157)](_0x3c770b){const _0x571d40=_0x25a69f;var _0x2fee9f,_0x2f01e3;const _0x4291da=_0x3c770b['rangeList'];let _0x2e38b0=this[_0x571d40(0xf4)][_0x571d40(0xd3)](_0x3c770b[_0x571d40(0x113)]);for(let _0x408e9f=0x0;_0x408e9f<_0x4291da['length'];_0x408e9f++){const _0x4d401f=_0x4291da[_0x408e9f];let {unitId:_0x167b62,sheetId:_0x92bb50,range:_0x4871de}=_0x4d401f;_0x2e38b0||(_0x2e38b0=new Map(),this[_0x571d40(0xf4)][_0x571d40(0x135)](_0x3c770b['treeId'],_0x2e38b0)),_0x2e38b0[_0x571d40(0x105)](_0x167b62)||_0x2e38b0[_0x571d40(0x135)](_0x167b62,new Map());const _0x46b849=(_0x2fee9f=_0x2e38b0==null?void 0x0:_0x2e38b0[_0x571d40(0xd3)](_0x167b62))==null?void 0x0:_0x2fee9f[_0x571d40(0xd3)](_0x92bb50);_0x46b849&&(_0x4871de={'startRow':Math[_0x571d40(0xac)](_0x4871de[_0x571d40(0x15b)],_0x46b849[_0x571d40(0x15b)]),'startColumn':Math[_0x571d40(0xac)](_0x4871de[_0x571d40(0x12b)],_0x46b849[_0x571d40(0x12b)]),'endRow':Math['max'](_0x4871de[_0x571d40(0x124)],_0x46b849['endRow']),'endColumn':Math[_0x571d40(0x129)](_0x4871de['endColumn'],_0x46b849['endColumn'])}),(_0x2f01e3=_0x2e38b0['get'](_0x167b62))==null||_0x2f01e3['set'](_0x92bb50,_0x4871de);}}}var j=Object[_0x25a69f(0x12f)],q=Object[_0x25a69f(0x148)],K=(_0x462bcb,_0x2fd839,_0x2b0eea,_0x5afcde)=>{for(var _0x2cb297=_0x5afcde>0x1?void 0x0:_0x5afcde?q(_0x2fd839,_0x2b0eea):_0x2fd839,_0x479812=_0x462bcb['length']-0x1,_0x1749da;_0x479812>=0x0;_0x479812--)(_0x1749da=_0x462bcb[_0x479812])&&(_0x2cb297=(_0x5afcde?_0x1749da(_0x2fd839,_0x2b0eea,_0x2cb297):_0x1749da(_0x2cb297))||_0x2cb297);return _0x5afcde&&_0x2cb297&&j(_0x2fd839,_0x2b0eea,_0x2cb297),_0x2cb297;};exports['UniverProFormulaEnginePlugin']=class extends u[_0x25a69f(0xaf)]{[_0x25a69f(0x142)](){const _0x8c9c3=_0x25a69f;var _0xc167dd,_0xfcd784;this[_0x8c9c3(0xc2)]()?(_0xc167dd=this['_config'])!=null&&_0xc167dd[_0x8c9c3(0xb1)]||[[u['ICalculateFormulaService'],{'useClass':Y}],[u[_0x8c9c3(0x106)],{'useClass':B}],[u[_0x8c9c3(0x11c)],{'useClass':V}]]['forEach'](_0x15b6a3=>this[_0x8c9c3(0xdc)][_0x8c9c3(0x126)](_0x15b6a3)):(_0xfcd784=this[_0x8c9c3(0xe9)])!=null&&_0xfcd784[_0x8c9c3(0xb1)]||[[u['ICalculateFormulaService'],{'useClass':u['CalculateFormulaService']}],[u[_0x8c9c3(0x106)],{'useClass':u[_0x8c9c3(0xd7)]}],[u[_0x8c9c3(0x11c)],{'useClass':u['FormulaDependencyGenerator']}]]['forEach'](_0x5a24de=>this[_0x8c9c3(0xdc)][_0x8c9c3(0x126)](_0x5a24de));}['_initTimeValid'](){const _0x7fa7cd=_0x25a69f;var _0x23a092;const _0x521405=(_0x23a092=this[_0x7fa7cd(0x15e)][_0x7fa7cd(0x136)](O['LS_CONFIG_KEY']))!=null?_0x23a092:{},{ls:_0x105043,pbk:_0x5490b0,tvld:_0x39667c}=_0x521405;if(!_0x105043||!_0x5490b0)return!0x1;const _0x43f7cb=O[_0x7fa7cd(0x13a)](k,b);return new Function(_0x7fa7cd(0xe0)+_0x43f7cb)()(_0x105043,_0x5490b0)[_0x7fa7cd(0xe3)];}},exports[_0x25a69f(0x141)]=K([v['DependentOn'](O[_0x25a69f(0xef)])],exports[_0x25a69f(0x141)]);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1774f4=_0x3d8f;(function(_0x2242ba,_0xb10bee){const _0x31b470=_0x3d8f,_0x4f5468=_0x2242ba();while(!![]){try{const _0x41f1e7=-parseInt(_0x31b470(0xd5))/0x1*(-parseInt(_0x31b470(0x146))/0x2)+-parseInt(_0x31b470(0x117))/0x3+parseInt(_0x31b470(0xe3))/0x4*(parseInt(_0x31b470(0xdb))/0x5)+-parseInt(_0x31b470(0xab))/0x6*(parseInt(_0x31b470(0xf9))/0x7)+parseInt(_0x31b470(0xe0))/0x8+parseInt(_0x31b470(0x13e))/0x9*(parseInt(_0x31b470(0x12c))/0xa)+parseInt(_0x31b470(0x127))/0xb*(-parseInt(_0x31b470(0xcd))/0xc);if(_0x41f1e7===_0xb10bee)break;else _0x4f5468['push'](_0x4f5468['shift']());}catch(_0x19ddc6){_0x4f5468['push'](_0x4f5468['shift']());}}}(_0x34cd,0x8a9c8));var K=Object[_0x1774f4(0xc6)],X=(_0x436d4e,_0x56722f,_0x4ddd7e)=>_0x56722f in _0x436d4e?K(_0x436d4e,_0x56722f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ddd7e}):_0x436d4e[_0x56722f]=_0x4ddd7e,C=(_0x3b5b0a,_0x4e5819,_0xb6f97d)=>X(_0x3b5b0a,typeof _0x4e5819!=_0x1774f4(0xe7)?_0x4e5819+'':_0x4e5819,_0xb6f97d);import{ObjectMatrix as _0xcc95e1,requestImmediateMacroTask as _0x297f89,RTree as _0x563963,DependentOn as _0x38c882}from'@univerjs/core';import{FormulaDependencyGenerator as _0x46d9ea,generateAstNode as _0x43f9cd,generateRandomDependencyTreeId as _0x18bf49,FormulaDependencyTree as _0x1ef249,FormulaDependencyTreeType as _0x3129d1,FormulaDependencyTreeVirtual as _0x5e003e,CalculateFormulaService as _0x3f4cbd,FormulaExecuteStageType as _0x30bd9e,PLUGIN_CONFIG_KEY as _0x426584,DEFAULT_INTERVAL_COUNT as _0x39fe4e,DependencyManagerBaseService as _0x276b13,UniverFormulaEnginePlugin as _0x400a2f,ICalculateFormulaService as _0x193300,IDependencyManagerService as _0x1f8523,IFormulaDependencyGenerator as _0x414afd,DependencyManagerService as _0x1fbcbf}from'@univerjs/engine-formula';import{UniverLicensePlugin as _0x5e93c5,LS_CONFIG_KEY as _0x2da3c1,unshiftString as _0xa784fe}from'@univerjs-pro/license';const ie={0x0:'F',0x1:'8',0x2:'Y',0x3:'1',0x4:'C',0x5:'p',0x6:'7',0x7:'a',0x8:'o',0x9:'e','J':'0','f':'2','D':'3','r':'4','c':'5','k':'6','y':'9','b':'b','d':'c','l':'d','N':'f','I':'g','L':'h','F':'i','o':'j','V':'k','e':'l','W':'m','x':'n','n':'q','j':'r','v':'s','q':'t','m':'u','U':'v','K':'w','G':'x','t':'y','w':'z','Y':'A','R':'B','Z':'D','S':'E','B':'G','P':'H','C':'I','p':'J','H':'K','O':'L','T':'M','X':'N','i':'O','M':'P','E':'Q','z':'R','a':'S','u':'T','A':'U','g':'V','h':'W','Q':'X','s':'Z'},ce=_0x1774f4(0xca);class oe extends _0x46d9ea{constructor(){const _0x10fc02=_0x1774f4;super(...arguments),C(this,_0x10fc02(0x124),new Map());}[_0x1774f4(0xf2)](){const _0x29bca3=_0x1774f4;super[_0x29bca3(0xf2)](),this[_0x29bca3(0x124)][_0x29bca3(0xa5)]();}async[_0x1774f4(0xf4)](){const _0x1d1d7b=_0x1774f4;this[_0x1d1d7b(0xe8)]();const _0x35c55d=this[_0x1d1d7b(0xcf)][_0x1d1d7b(0xb3)](),_0x5e832d=this[_0x1d1d7b(0xfa)][_0x1d1d7b(0x114)](),_0x4f7b08=this[_0x1d1d7b(0xcf)][_0x1d1d7b(0xcc)]();_0x4f7b08!=null&&Object['keys'](_0x4f7b08)['forEach'](_0x2c24fe=>{const _0x3b4b23=_0x1d1d7b;_0x2c24fe!=null&&Object[_0x3b4b23(0x13b)](_0x4f7b08[_0x2c24fe])[_0x3b4b23(0x100)](_0x50d013=>{const _0x1bce18=_0x3b4b23;_0x50d013!=null&&(this[_0x1bce18(0xd6)][_0x1bce18(0xb1)](_0x2c24fe,_0x50d013),this[_0x1bce18(0xd6)][_0x1bce18(0xaa)](_0x2c24fe,_0x50d013),this['_dependencyManagerService'][_0x1bce18(0xd2)](_0x2c24fe,_0x50d013));});});const _0xf9d394=this[_0x1d1d7b(0xcf)][_0x1d1d7b(0xa3)]();await this['_generateTreeList'](_0x35c55d,_0x5e832d,_0xf9d394),this['_dependencyManagerService'][_0x1d1d7b(0x135)]();const _0x4d43f9=this[_0x1d1d7b(0xf0)](),_0x2c1377=this[_0x1d1d7b(0x115)](_0x4d43f9);return this[_0x1d1d7b(0x12d)](_0x2c1377)&&this[_0x1d1d7b(0xdc)][_0x1d1d7b(0xac)](),this[_0x1d1d7b(0x124)]['clear'](),this[_0x1d1d7b(0xd6)][_0x1d1d7b(0xcb)](),Promise[_0x1d1d7b(0x118)](_0x2c1377);}[_0x1774f4(0xc0)](_0x3a4430,_0x42e0cc){const _0x2c4872=_0x1774f4,_0x144f83=[_0x3a4430];for(;_0x144f83[_0x2c4872(0xb4)]>0x0;){const _0x323812=_0x144f83[_0x144f83[_0x2c4872(0xb4)]-0x1];if((_0x42e0cc[_0x2c4872(0xee)](_0x323812)||0x0)===0x0){_0x42e0cc['set'](_0x323812,0x1);const _0x5d8fcb=this[_0x2c4872(0x124)][_0x2c4872(0xee)](_0x323812);if(_0x5d8fcb==null){_0x42e0cc[_0x2c4872(0x136)](_0x323812,0x2),_0x144f83['pop']();continue;}const _0x17dc90=this[_0x2c4872(0xd6)][_0x2c4872(0x103)](_0x5d8fcb[_0x2c4872(0x13a)]());for(const _0x18b605 of _0x17dc90){const _0x46494f=_0x42e0cc[_0x2c4872(0xee)](_0x18b605)||0x0;if(_0x46494f===0x1)return!0x0;_0x46494f===0x0&&_0x144f83[_0x2c4872(0x13c)](_0x18b605);}}else _0x42e0cc[_0x2c4872(0x136)](_0x323812,0x2),_0x144f83[_0x2c4872(0xd7)]();}return!0x1;}[_0x1774f4(0x12d)](_0x45ad3b){const _0x2f55c4=_0x1774f4,_0xbf5c67=new Map();for(const _0xe38ca0 of _0x45ad3b)if(!_0xbf5c67[_0x2f55c4(0xba)](_0xe38ca0[_0x2f55c4(0xe6)])&&this['_isCyclicUtilMap'](_0xe38ca0[_0x2f55c4(0xe6)],_0xbf5c67))return!0x0;return _0xbf5c67[_0x2f55c4(0xa5)](),!0x1;}async[_0x1774f4(0x108)](_0x4f701b,_0x223f5c,_0x5c477f){const _0x3bc692=_0x1774f4,_0x4fde75=Object[_0x3bc692(0x13b)](_0x4f701b),_0x1f568d=Object[_0x3bc692(0x13b)](_0x223f5c),_0x36d83b=[];this['_currentConfigService'][_0x3bc692(0x11c)]()&&this['_dependencyManagerService'][_0x3bc692(0x144)](),this[_0x3bc692(0xe1)](_0x4fde75,_0x4f701b,_0x5c477f,_0x36d83b),this[_0x3bc692(0x11b)](_0x223f5c,_0x1f568d,_0x36d83b),this['_registerFeatureFormulas'](_0x36d83b);for(let _0x4252b3=0x0,_0x4771cd=_0x36d83b[_0x3bc692(0xb4)];_0x4252b3<_0x4771cd;_0x4252b3++){const _0x90de14=_0x36d83b[_0x4252b3],_0x42522f=_0x43f9cd(_0x90de14['unitId'],_0x90de14['formula'],this[_0x3bc692(0xbd)],this[_0x3bc692(0xd9)],this['_currentConfigService']);if(_0x90de14[_0x3bc692(0x111)]=this['_includeTree'](_0x90de14,_0x42522f),_0x90de14[_0x3bc692(0xb5)])continue;this['_runtimeService']['setCurrent'](_0x90de14[_0x3bc692(0x147)],_0x90de14['column'],_0x90de14[_0x3bc692(0x106)],_0x90de14[_0x3bc692(0x121)],_0x90de14[_0x3bc692(0xb2)],_0x90de14[_0x3bc692(0xd8)]);const _0xff0d7b=await this['_getRangeListByNode']({'node':_0x42522f,'refOffsetX':_0x90de14[_0x3bc692(0xb9)],'refOffsetY':_0x90de14[_0x3bc692(0xb8)]});_0x90de14[_0x3bc692(0xfd)](_0xff0d7b);}for(let _0x4a6db7=0x0,_0x397788=_0x36d83b['length'];_0x4a6db7<_0x397788;_0x4a6db7++){const _0xa880da=_0x36d83b[_0x4a6db7];_0xa880da[_0x3bc692(0x10c)]||this['_dependencyManagerService'][_0x3bc692(0x140)](_0xa880da);}return _0x36d83b;}['_getFeatureFormulaTree'](_0x3202e4,_0x4acf0d,_0x2da702){const _0x5ec2c9=_0x1774f4,{unitId:_0x41ff50,subUnitId:_0x11e2e0,dependencyRanges:_0x40941e,getDirtyData:_0x51563a}=_0x2da702,_0x217d38=_0x4acf0d||_0x18bf49(this[_0x5ec2c9(0xd6)]),_0x4791d6=new _0x1ef249(_0x217d38);_0x4791d6[_0x5ec2c9(0xd8)]=_0x41ff50,_0x4791d6[_0x5ec2c9(0xb2)]=_0x11e2e0,_0x4791d6['rangeList']=_0x40941e,_0x4791d6['getDirtyData']=_0x51563a;const _0x589368=_0x51563a(this[_0x5ec2c9(0xcf)][_0x5ec2c9(0xf7)](),this[_0x5ec2c9(0xdc)]['getAllRuntimeData']()),_0x32a92a=this[_0x5ec2c9(0x12a)](_0x589368[_0x5ec2c9(0xc8)]);return _0x4791d6['featureDirtyRanges']=_0x32a92a,_0x4791d6['featureId']=_0x3202e4,_0x4791d6[_0x5ec2c9(0x11f)]=_0x3129d1[_0x5ec2c9(0x13d)],this[_0x5ec2c9(0xd6)][_0x5ec2c9(0xfe)](_0x41ff50,_0x11e2e0,_0x3202e4,_0x4791d6),this[_0x5ec2c9(0x124)][_0x5ec2c9(0x136)](_0x4791d6[_0x5ec2c9(0xe6)],_0x4791d6),this[_0x5ec2c9(0xd6)][_0x5ec2c9(0xf3)](_0x2da702['unitId'],_0x2da702['subUnitId'],_0x3202e4)&&(_0x4791d6['isCache']=!0x0),_0x4791d6;}[_0x1774f4(0x11b)](_0x1f20d7,_0x39a5f2,_0xf1340){const _0xd3fc26=_0x1774f4;for(const _0xa222c8 of _0x39a5f2){const _0x27c16f=_0x1f20d7[_0xa222c8];if(_0x27c16f==null)continue;const _0x4f0346=Object['keys'](_0x27c16f);for(const _0x5f51dc of _0x4f0346){const _0x46c2a9=_0x27c16f[_0x5f51dc];if(_0x46c2a9==null)continue;const _0x5717c9=Object[_0xd3fc26(0x13b)](_0x46c2a9);for(const _0x4de565 of _0x5717c9){const _0x435df=this[_0xd3fc26(0xd6)]['hasOtherFormulaDataMainData'](_0x4de565),_0x37012e=_0x46c2a9[_0x4de565],{f:_0x2e9888,ranges:_0x256786}=_0x37012e;let _0xbb5488=!0x1;_0x435df&&(_0xbb5488=!0x0);const {firstRow:_0x182c7f,firstColumn:_0x2094b9}=this[_0xd3fc26(0x143)](_0x256786),_0x3cdc99=this[_0xd3fc26(0xd6)][_0xd3fc26(0x107)](_0xa222c8,_0x5f51dc,_0x4de565),_0x5b6930=(_0x3cdc99==null?void 0x0:_0x3cdc99[_0xd3fc26(0x141)](0x0,0x0))||_0x18bf49(this[_0xd3fc26(0xd6)]),_0x5d52f5=new _0x1ef249(_0x5b6930);for(let _0x2988de=0x0;_0x2988de<_0x256786[_0xd3fc26(0xb4)];_0x2988de++){const _0xc26f87=_0x256786[_0x2988de],{startRow:_0x4eb44c,startColumn:_0x3be984,endRow:_0x417aab,endColumn:_0x32f58b}=_0xc26f87;for(let _0x216f3e=_0x4eb44c;_0x216f3e<=_0x417aab;_0x216f3e++)for(let _0x4081fa=_0x3be984;_0x4081fa<=_0x32f58b;_0x4081fa++){const _0x3dd797=_0x4081fa-_0x2094b9,_0x4ae364=_0x216f3e-_0x182c7f;if(_0x3dd797===0x0&&_0x4ae364===0x0){_0x5d52f5[_0xd3fc26(0xf1)]=_0x2e9888,_0x5d52f5[_0xd3fc26(0xd8)]=_0xa222c8,_0x5d52f5['subUnitId']=_0x5f51dc,_0x5d52f5[_0xd3fc26(0xfb)]=_0x4de565,_0x5d52f5[_0xd3fc26(0x11f)]=_0x3129d1[_0xd3fc26(0x134)],_0x5d52f5['isCache']=_0xbb5488,_0xf1340['push'](_0x5d52f5),this[_0xd3fc26(0x124)]['set'](_0x5d52f5[_0xd3fc26(0xe6)],_0x5d52f5),this[_0xd3fc26(0xd6)][_0xd3fc26(0x122)](_0xa222c8,_0x5f51dc,_0x4de565,_0x5d52f5),this['_dependencyManagerService'][_0xd3fc26(0xa6)](_0x5d52f5);continue;}const _0x20b844=new _0x5e003e();_0x20b844['treeId']=(_0x3cdc99==null?void 0x0:_0x3cdc99['getValue'](_0x3dd797,_0x4ae364))||_0x18bf49(this[_0xd3fc26(0xd6)]),_0x20b844['refTree']=_0x5d52f5,_0x20b844[_0xd3fc26(0xb9)]=_0x3dd797,_0x20b844[_0xd3fc26(0xb8)]=_0x4ae364,_0x20b844[_0xd3fc26(0x10c)]=_0xbb5488,this['_dependencyManagerService'][_0xd3fc26(0x122)](_0xa222c8,_0x5f51dc,_0x4de565,_0x20b844),this[_0xd3fc26(0xd6)][_0xd3fc26(0xa6)](_0x20b844),_0xf1340['push'](_0x20b844),this[_0xd3fc26(0x124)][_0xd3fc26(0x136)](_0x20b844['treeId'],_0x20b844);}}this['_dependencyManagerService']['addOtherFormulaDependencyMainData'](_0x4de565);}}}}[_0x1774f4(0xe1)](_0x7f9e88,_0x5d6d04,_0x569156,_0x80977f){const _0x7c47dc=_0x1774f4;for(const _0x1df84f of _0x7f9e88){const _0x3b573e=_0x5d6d04[_0x1df84f];if(_0x3b573e==null)continue;const _0x166181=Object[_0x7c47dc(0x13b)](_0x3b573e);for(const _0x39b19e of _0x166181){const _0x16ed63=new _0xcc95e1(_0x3b573e[_0x39b19e]||{}),_0x2ee84d=new Map();_0x16ed63[_0x7c47dc(0xa4)]((_0x5f0627,_0x14319a,_0x349d1a)=>{const _0x465395=_0x7c47dc;if(_0x349d1a==null)return!0x0;const {x:_0x164904=0x0,y:_0x437840=0x0,si:_0x4491bf}=_0x349d1a;if(!(_0x164904===0x0&&_0x437840===0x0&&_0x4491bf!=null))return!0x0;const _0x5192cf=this[_0x465395(0x101)](_0x1df84f,_0x39b19e,_0x5f0627,_0x14319a,_0x569156,_0x349d1a),_0x4f6651=this[_0x465395(0xd6)][_0x465395(0x116)](_0x1df84f,_0x39b19e,_0x5f0627,_0x14319a);_0x4f6651!=null?_0x5192cf['treeId']=_0x4f6651:(this['_dependencyManagerService'][_0x465395(0x119)](_0x1df84f,_0x39b19e,_0x5f0627,_0x14319a,_0x5192cf),this[_0x465395(0xd6)][_0x465395(0xa6)](_0x5192cf)),_0x2ee84d['set'](_0x4491bf,_0x5192cf),_0x80977f[_0x465395(0x13c)](_0x5192cf),this[_0x465395(0x124)][_0x465395(0x136)](_0x5192cf['treeId'],_0x5192cf);}),_0x16ed63['forValue']((_0x1ee042,_0x2c8afa,_0x5be5c7)=>{const _0x3d26fd=_0x7c47dc;if(_0x5be5c7==null)return!0x0;const {x:_0x422af6=0x0,y:_0x3aba5a=0x0,si:_0x453cdc}=_0x5be5c7;if(_0x422af6===0x0&&_0x3aba5a===0x0&&_0x453cdc!=null)return!0x0;let _0x25012c;if(_0x453cdc&&_0x2ee84d['has'](_0x453cdc)){const _0x22f373=_0x2ee84d[_0x3d26fd(0xee)](_0x453cdc);_0x25012c=this['_createVirtualFDtree'](_0x22f373,_0x5be5c7);}else _0x25012c=this[_0x3d26fd(0x101)](_0x1df84f,_0x39b19e,_0x1ee042,_0x2c8afa,_0x569156,_0x5be5c7);const _0x18e145=this[_0x3d26fd(0xd6)][_0x3d26fd(0x116)](_0x1df84f,_0x39b19e,_0x1ee042,_0x2c8afa);_0x18e145!=null?_0x25012c['treeId']=_0x18e145:(this[_0x3d26fd(0xd6)][_0x3d26fd(0x119)](_0x1df84f,_0x39b19e,_0x1ee042,_0x2c8afa,_0x25012c),this[_0x3d26fd(0xd6)][_0x3d26fd(0xa6)](_0x25012c)),_0x80977f['push'](_0x25012c),this[_0x3d26fd(0x124)][_0x3d26fd(0x136)](_0x25012c[_0x3d26fd(0xe6)],_0x25012c);}),_0x2ee84d['clear']();}}}[_0x1774f4(0x101)](_0x1f22a0,_0x3280d4,_0xc2913b,_0x5b6830,_0x9cf8e,_0xc9f39c){const _0xa10712=_0x1774f4,{f:_0x2e6148,x:_0x420f48=0x0,y:_0x20da63=0x0}=_0xc9f39c,_0x9b6a95=new _0x1ef249(_0x18bf49(this['_dependencyManagerService'])),_0x4a6347=_0x9cf8e[_0x1f22a0][_0x3280d4];return _0x9b6a95[_0xa10712(0xf1)]=_0x2e6148,_0x9b6a95[_0xa10712(0xd8)]=_0x1f22a0,_0x9b6a95[_0xa10712(0xb2)]=_0x3280d4,_0x9b6a95[_0xa10712(0x147)]=_0xc2913b,_0x9b6a95[_0xa10712(0x126)]=_0x5b6830,_0x9b6a95[_0xa10712(0x106)]=_0x4a6347[_0xa10712(0x106)],_0x9b6a95[_0xa10712(0x121)]=_0x4a6347[_0xa10712(0x121)],_0x9b6a95;}['_getUpdateTreeListAndMakeDependency'](){const _0x5baffe=_0x1774f4,_0x24d54a=[],_0x2653fa=new Set(),_0x238ad9=this[_0x5baffe(0xcf)][_0x5baffe(0x11c)](),_0x26abf7=this[_0x5baffe(0xcf)][_0x5baffe(0x133)](),_0x5294e3=this[_0x5baffe(0xd6)]['searchDependency'](_0x26abf7);for(const [_0x438662,_0x5a198b]of this[_0x5baffe(0x124)])(_0x238ad9||_0x5a198b[_0x5baffe(0x111)]||_0x5a198b[_0x5baffe(0xc2)](this[_0x5baffe(0xcf)][_0x5baffe(0xc9)]())||_0x5294e3['has'](_0x438662)&&!_0x5a198b[_0x5baffe(0x12b)](this[_0x5baffe(0xcf)][_0x5baffe(0xec)]()))&&!_0x2653fa[_0x5baffe(0xba)](_0x438662)&&(_0x24d54a['push'](_0x5a198b),_0x2653fa[_0x5baffe(0x131)](_0x438662));for(const [_0x547192,_0x470a9f]of this[_0x5baffe(0x124)])_0x470a9f[_0x5baffe(0xb5)]||(_0x470a9f[_0x5baffe(0xc3)][_0x5baffe(0xb4)]=0x0);return _0x24d54a;}*[_0x1774f4(0x10e)](_0x12744e,_0x397058){const _0x487bf1=_0x1774f4,_0x279e78=_0x12744e,_0x4c96ca=new Set();for(;_0x279e78[_0x487bf1(0xb4)]>0x0;){const _0x19f461=_0x279e78[_0x487bf1(0xd7)]();if(_0x4c96ca['clear'](),_0x19f461===void 0x0||_0x19f461[_0x487bf1(0xad)]())continue;if(_0x19f461['isAdded']()){yield _0x19f461,_0x19f461[_0x487bf1(0x138)](),_0x397058[_0x487bf1(0x131)](_0x19f461[_0x487bf1(0xe6)]);continue;}const _0x5346c3=this[_0x487bf1(0xd6)][_0x487bf1(0x103)](_0x19f461[_0x487bf1(0x13a)](),_0x397058);for(const _0x316482 of _0x5346c3){const _0x8ae1d9=this['_dependencyTreeCache'][_0x487bf1(0xee)](_0x316482);if(!_0x8ae1d9)throw new Error('ParentDependencyTree\x20object\x20is\x20null');_0x8ae1d9[_0x487bf1(0xa7)]()||_0x19f461[_0x487bf1(0xad)]()||_0x4c96ca[_0x487bf1(0x131)](_0x8ae1d9);}if(_0x5346c3[_0x487bf1(0xa5)](),_0x4c96ca[_0x487bf1(0x112)]===0x0)yield _0x19f461,_0x19f461['setSkip'](),_0x397058[_0x487bf1(0x131)](_0x19f461[_0x487bf1(0xe6)]);else{_0x19f461[_0x487bf1(0x102)](),_0x279e78[_0x487bf1(0x13c)](_0x19f461);for(const _0x14f79c of _0x4c96ca)_0x279e78['push'](_0x14f79c);}}_0x279e78[_0x487bf1(0xb4)]=0x0,_0x4c96ca[_0x487bf1(0xa5)]();}['_calculateRunList'](_0x13c697){const _0xa77bda=_0x1774f4,_0x35f13c=[],_0x132b1f=new Set();for(const _0x1ef4e9 of this[_0xa77bda(0x10e)](_0x13c697,_0x132b1f))_0x35f13c['push'](_0x1ef4e9);return _0x35f13c;}}class le extends _0x3f4cbd{async['_apply'](_0x5ee346=!0x1){const _0x3d14b6=_0x1774f4;_0x5ee346?this[_0x3d14b6(0xdc)][_0x3d14b6(0xbe)](_0x30bd9e[_0x3d14b6(0xed)]):this[_0x3d14b6(0xdc)][_0x3d14b6(0xbe)](_0x30bd9e[_0x3d14b6(0xb0)]),this[_0x3d14b6(0x11a)][_0x3d14b6(0xd1)](this[_0x3d14b6(0xdc)][_0x3d14b6(0xe9)]());const _0x3c393b=await this[_0x3d14b6(0xd4)]['generate'](),_0x508200=this[_0x3d14b6(0x11e)];_0x5ee346?(this[_0x3d14b6(0xdc)][_0x3d14b6(0xbe)](_0x30bd9e[_0x3d14b6(0xa8)]),this[_0x3d14b6(0xdc)][_0x3d14b6(0xff)](_0x3c393b[_0x3d14b6(0xb4)])):(this[_0x3d14b6(0xdc)][_0x3d14b6(0xbe)](_0x30bd9e[_0x3d14b6(0x139)]),this['_runtimeService'][_0x3d14b6(0xdd)](_0x3c393b[_0x3d14b6(0xb4)])),this['_executionInProgressListener$'][_0x3d14b6(0xd1)](this[_0x3d14b6(0xdc)][_0x3d14b6(0xe9)]());let _0x4d7260=[];const _0xe77bea=this[_0x3d14b6(0xd3)][_0x3d14b6(0xdf)](_0x426584),_0x23828c=(_0xe77bea==null?void 0x0:_0xe77bea[_0x3d14b6(0x120)])||_0x39fe4e;let _0x26ba29=0x0;const _0x18889b=_0x3c393b[_0x3d14b6(0xb4)];for(;_0x3c393b[_0x3d14b6(0xb4)]>0x0;){const _0x1f880f=_0x3c393b[_0x3d14b6(0xd7)](),_0x4ad3df={'node':_0x43f9cd(_0x1f880f[_0x3d14b6(0xd8)],_0x1f880f['formula'],this[_0x3d14b6(0xbd)],this['_astTreeBuilder'],this[_0x3d14b6(0xcf)]),'refOffsetX':_0x1f880f[_0x3d14b6(0xb9)],'refOffsetY':_0x1f880f[_0x3d14b6(0xb8)]},_0x23f02a=_0x1f880f['getDirtyData'];if(_0x26ba29%_0x23828c===0x0&&(await new Promise(_0x335ce0=>{const _0x28ecdf=_0x297f89(_0x335ce0);_0x4d7260['push'](_0x28ecdf);}),_0x5ee346?(this[_0x3d14b6(0xdc)][_0x3d14b6(0xbe)](_0x30bd9e[_0x3d14b6(0xeb)]),this['_runtimeService'][_0x3d14b6(0x10b)](_0x26ba29+0x1)):(this[_0x3d14b6(0xdc)][_0x3d14b6(0xbe)](_0x30bd9e[_0x3d14b6(0xb7)]),this['_runtimeService']['setCompletedFormulasCount'](_0x26ba29+0x1)),this['_executionInProgressListener$'][_0x3d14b6(0xd1)](this['_runtimeService']['getRuntimeState']()),this['_runtimeService'][_0x3d14b6(0xc4)]()||_0x4ad3df==null&&_0x23f02a==null)){this[_0x3d14b6(0xdc)]['setFormulaExecuteStage'](_0x30bd9e[_0x3d14b6(0x10d)]),this[_0x3d14b6(0xdc)][_0x3d14b6(0x105)](),this[_0x3d14b6(0x13f)][_0x3d14b6(0xd1)](this['_runtimeService']['getAllRuntimeData']());return;}this[_0x3d14b6(0xdc)]['setCurrent'](_0x1f880f[_0x3d14b6(0x147)],_0x1f880f['column'],_0x1f880f[_0x3d14b6(0x106)],_0x1f880f['columnCount'],_0x1f880f['subUnitId'],_0x1f880f[_0x3d14b6(0xd8)]);let _0x97a4b3;if(_0x23f02a!=null&&_0x1f880f[_0x3d14b6(0xae)]!=null){const {runtimeCellData:_0x332017,dirtyRanges:_0x188c81}=_0x23f02a(this[_0x3d14b6(0xcf)][_0x3d14b6(0xf7)](),this['_runtimeService'][_0x3d14b6(0xef)]());this[_0x3d14b6(0xdc)][_0x3d14b6(0x145)](_0x1f880f[_0x3d14b6(0xae)],_0x332017),this[_0x3d14b6(0xdc)][_0x3d14b6(0x130)](_0x1f880f[_0x3d14b6(0xae)],_0x188c81);}else _0x4ad3df!=null&&(_0x508200[_0x3d14b6(0xe4)](_0x4ad3df[_0x3d14b6(0xf8)])?_0x97a4b3=await _0x508200['executeAsync'](_0x4ad3df):_0x97a4b3=_0x508200[_0x3d14b6(0xa2)](_0x4ad3df),_0x1f880f[_0x3d14b6(0xfb)]!=null?this[_0x3d14b6(0xdc)][_0x3d14b6(0xd0)](_0x1f880f['formulaId'],_0x1f880f[_0x3d14b6(0xb9)],_0x1f880f[_0x3d14b6(0xb8)],_0x97a4b3):this[_0x3d14b6(0xdc)][_0x3d14b6(0x125)](_0x97a4b3));_0x26ba29++;}return _0x4d7260[_0x3d14b6(0x100)](_0x13fb2f=>_0x13fb2f()),_0x4d7260=[],_0x18889b>0x0?this[_0x3d14b6(0xdc)][_0x3d14b6(0xbb)]():_0x5ee346||this['_runtimeService'][_0x3d14b6(0x129)](),this[_0x3d14b6(0xdc)][_0x3d14b6(0xef)]();}}class ue extends _0x276b13{constructor(){const _0x14100d=_0x1774f4;super(...arguments),C(this,'_allTreeMap',new Map()),C(this,_0x14100d(0xe2),new _0x563963(!0x0));}[_0x1774f4(0x144)](){const _0x2be5fe=_0x1774f4;this[_0x2be5fe(0x10a)][_0x2be5fe(0xa5)](),this[_0x2be5fe(0xf5)]['clear'](),this[_0x2be5fe(0xde)]['clear'](),this[_0x2be5fe(0xe2)][_0x2be5fe(0xa5)](),this[_0x2be5fe(0xc5)]['clear'](),this[_0x2be5fe(0x109)](),this[_0x2be5fe(0xe5)]['clear']();}[_0x1774f4(0x122)](_0x4c50a4,_0x2b5872,_0x131f32,_0x5180b4){const _0x3ca2a5=_0x1774f4;this[_0x3ca2a5(0x10a)]['has'](_0x4c50a4)||this[_0x3ca2a5(0x10a)][_0x3ca2a5(0x136)](_0x4c50a4,new Map());const _0x316d03=this[_0x3ca2a5(0x10a)]['get'](_0x4c50a4);_0x316d03[_0x3ca2a5(0xba)](_0x2b5872)||_0x316d03[_0x3ca2a5(0x136)](_0x2b5872,new Map());const _0x240dd0=_0x316d03[_0x3ca2a5(0xee)](_0x2b5872);_0x240dd0['has'](_0x131f32)||_0x240dd0[_0x3ca2a5(0x136)](_0x131f32,new _0xcc95e1()),_0x240dd0['get'](_0x131f32)[_0x3ca2a5(0x137)](_0x5180b4['refOffsetX'],_0x5180b4[_0x3ca2a5(0xb8)],_0x5180b4[_0x3ca2a5(0xe6)]);}[_0x1774f4(0xea)](_0x40a6ee,_0x5dfd58,_0x97ef6c){const _0x38e56c=_0x1774f4,_0x492bf0=this[_0x38e56c(0x10a)][_0x38e56c(0xee)](_0x40a6ee);if(_0x492bf0&&_0x492bf0[_0x38e56c(0xba)](_0x5dfd58)){const _0x9c0fa4=_0x492bf0[_0x38e56c(0xee)](_0x5dfd58);_0x97ef6c[_0x38e56c(0x100)](_0x1e09a3=>{const _0x1e6569=_0x38e56c,_0x250d4f=_0x9c0fa4[_0x1e6569(0xee)](_0x1e09a3);_0x250d4f!=null&&(_0x250d4f[_0x1e6569(0xa4)]((_0x40b702,_0x3f421a,_0x3eed39)=>{const _0x871e1b=_0x1e6569;this[_0x871e1b(0xf6)](_0x3eed39),this[_0x871e1b(0x123)](_0x3eed39);}),_0x9c0fa4[_0x1e6569(0xb6)](_0x1e09a3),this[_0x1e6569(0xe5)]['delete'](_0x1e09a3));}),_0x9c0fa4[_0x38e56c(0x112)]===0x0&&_0x492bf0[_0x38e56c(0xb6)](_0x5dfd58),_0x492bf0[_0x38e56c(0x112)]===0x0&&this['_otherFormulaData'][_0x38e56c(0xb6)](_0x40a6ee);}}[_0x1774f4(0xb1)](_0x8731c2,_0x8e6cb9){const _0x1aaba4=_0x1774f4,_0x5cde27=this['_otherFormulaData']['get'](_0x8731c2);if(_0x8e6cb9&&_0x5cde27&&_0x5cde27[_0x1aaba4(0xba)](_0x8e6cb9)){const _0x5bce6b=_0x5cde27[_0x1aaba4(0xee)](_0x8e6cb9);this[_0x1aaba4(0xc7)](_0x8731c2,_0x8e6cb9);for(const _0x383313 of _0x5bce6b['keys']()){const _0x2771a5=_0x5bce6b[_0x1aaba4(0xee)](_0x383313);_0x2771a5!=null&&(_0x2771a5[_0x1aaba4(0xa4)]((_0x177e64,_0x193596,_0x355e4a)=>{const _0xfe5114=_0x1aaba4;this[_0xfe5114(0xc5)][_0xfe5114(0xee)](_0x355e4a)&&this[_0xfe5114(0x123)](_0x355e4a);}),this[_0x1aaba4(0xe5)][_0x1aaba4(0xb6)](_0x383313));}_0x5bce6b[_0x1aaba4(0xa5)]();}else{if(_0x5cde27){for(const _0x2cd66c of _0x5cde27[_0x1aaba4(0x13b)]()){const _0xd0a663=_0x5cde27[_0x1aaba4(0xee)](_0x2cd66c);this[_0x1aaba4(0xc7)](_0x8731c2,_0x2cd66c);for(const _0xc6ab3d of _0xd0a663['keys']()){const _0x448ce2=_0xd0a663[_0x1aaba4(0xee)](_0xc6ab3d);_0x448ce2!=null&&(_0x448ce2[_0x1aaba4(0xa4)]((_0x4d1386,_0x335edd,_0x18e175)=>{const _0x593830=_0x1aaba4;this[_0x593830(0xc5)][_0x593830(0xee)](_0x18e175)&&this[_0x593830(0x123)](_0x18e175);}),this[_0x1aaba4(0xe5)][_0x1aaba4(0xb6)](_0xc6ab3d));}}this['_otherFormulaData']['delete'](_0x8731c2);}}}['addFeatureFormulaDependency'](_0x4ce180,_0x51de75,_0x3881d9,_0x1b8839){const _0x3c3a3d=_0x1774f4;this[_0x3c3a3d(0xf5)][_0x3c3a3d(0xba)](_0x4ce180)||this[_0x3c3a3d(0xf5)][_0x3c3a3d(0x136)](_0x4ce180,new Map());const _0x2dc7e6=this[_0x3c3a3d(0xf5)][_0x3c3a3d(0xee)](_0x4ce180);_0x2dc7e6[_0x3c3a3d(0xba)](_0x51de75)||_0x2dc7e6[_0x3c3a3d(0x136)](_0x51de75,new Map()),_0x2dc7e6['get'](_0x51de75)['set'](_0x3881d9,_0x1b8839[_0x3c3a3d(0xe6)]);}[_0x1774f4(0x132)](_0x5d6d23,_0x2e0501,_0x5a71c6){const _0x865016=_0x1774f4,_0x21411b=this['_featureFormulaData'][_0x865016(0xee)](_0x5d6d23);if(_0x21411b&&_0x21411b[_0x865016(0xba)](_0x2e0501)){const _0x2b527c=_0x21411b['get'](_0x2e0501);_0x5a71c6[_0x865016(0x100)](_0x29cdb6=>{const _0x51a07a=_0x865016,_0x3a0856=_0x2b527c[_0x51a07a(0xee)](_0x29cdb6);_0x3a0856!=null&&(this['_removeDependencyRTreeCache'](_0x3a0856),_0x2b527c[_0x51a07a(0xb6)](_0x29cdb6),this[_0x51a07a(0x123)](_0x3a0856));});}}[_0x1774f4(0xaa)](_0x14a1b0,_0x475a58){const _0x489db2=_0x1774f4,_0x28f43c=this[_0x489db2(0xf5)][_0x489db2(0xee)](_0x14a1b0);if(_0x475a58&&_0x28f43c&&_0x28f43c[_0x489db2(0xba)](_0x475a58)){const _0x803a4a=_0x28f43c[_0x489db2(0xee)](_0x475a58);this[_0x489db2(0xc7)](_0x14a1b0,_0x475a58),_0x803a4a[_0x489db2(0x100)](_0x191d2f=>{const _0x1fdcd0=_0x489db2;_0x191d2f!=null&&this[_0x1fdcd0(0x123)](_0x191d2f);}),_0x803a4a[_0x489db2(0xa5)]();}else _0x28f43c&&(_0x28f43c[_0x489db2(0x100)]((_0x71110b,_0x11d452)=>{const _0x58fc9d=_0x489db2;this[_0x58fc9d(0xc7)](_0x14a1b0,_0x11d452),_0x71110b[_0x58fc9d(0x100)](_0x1b8ee5=>{const _0x47c963=_0x58fc9d;_0x1b8ee5!=null&&this[_0x47c963(0x123)](_0x1b8ee5);});}),this[_0x489db2(0xf5)][_0x489db2(0xb6)](_0x14a1b0));}['addFormulaDependency'](_0x3c6b44,_0x2b75a8,_0x3a81e3,_0x34621e,_0x12d8b1){const _0x41555c=_0x1774f4;this[_0x41555c(0xde)]['has'](_0x3c6b44)||this[_0x41555c(0xde)][_0x41555c(0x136)](_0x3c6b44,new Map());const _0x1ebf01=this['_formulaData'][_0x41555c(0xee)](_0x3c6b44);_0x1ebf01['has'](_0x2b75a8)||_0x1ebf01['set'](_0x2b75a8,new _0xcc95e1()),_0x1ebf01[_0x41555c(0xee)](_0x2b75a8)[_0x41555c(0x137)](_0x3a81e3,_0x34621e,_0x12d8b1['treeId']);}['removeFormulaDependency'](_0x26c4ea,_0xb51adf,_0x1623be,_0x766df2){const _0x2e7625=_0x1774f4,_0x1212a8=this['_formulaData'][_0x2e7625(0xee)](_0x26c4ea);if(_0x1212a8&&_0x1212a8['has'](_0xb51adf)){const _0x144ebd=_0x1212a8[_0x2e7625(0xee)](_0xb51adf),_0x3f7dbb=_0x144ebd[_0x2e7625(0x141)](_0x1623be,_0x766df2);if(_0x3f7dbb==null)return;this[_0x2e7625(0xf6)](_0x3f7dbb),_0x144ebd[_0x2e7625(0xa9)](_0x1623be,_0x766df2),this[_0x2e7625(0x123)](_0x3f7dbb);}}[_0x1774f4(0xd2)](_0xb0b8ce,_0x198110){const _0x51df8a=_0x1774f4,_0x44c014=this[_0x51df8a(0xde)][_0x51df8a(0xee)](_0xb0b8ce);if(_0x198110&&_0x44c014&&_0x44c014[_0x51df8a(0xba)](_0x198110)){const _0x4ccce9=_0x44c014[_0x51df8a(0xee)](_0x198110);this['_removeDependencyRTreeCacheById'](_0xb0b8ce,_0x198110),_0x4ccce9[_0x51df8a(0xa4)]((_0x1ef14c,_0x5a613d,_0x4e890a)=>{const _0xa90c74=_0x51df8a;if(_0x4e890a==null)return!0x0;this[_0xa90c74(0x123)](_0x4e890a);}),_0x4ccce9[_0x51df8a(0x144)]();}else _0x44c014&&(_0x44c014['forEach']((_0x2ea75c,_0x1653de)=>{const _0x289e5f=_0x51df8a;this[_0x289e5f(0xc7)](_0xb0b8ce,_0x1653de),_0x2ea75c[_0x289e5f(0xa4)]((_0x2244b7,_0x433d26,_0x30198a)=>{if(_0x30198a==null)return!0x0;this['_removeAllTreeMap'](_0x30198a);});}),this[_0x51df8a(0xde)][_0x51df8a(0xb6)](_0xb0b8ce));}[_0x1774f4(0xf6)](_0x87cc9b){const _0x586196=_0x1774f4;if(_0x87cc9b==null)return;const _0x131e2a=this[_0x586196(0xc5)][_0x586196(0xee)](_0x87cc9b);if(_0x131e2a){const _0x5c7ba3=[];for(const [_0x8bccac,_0xa95d24]of _0x131e2a)for(const [_0x5a7663,_0x2ea893]of _0xa95d24)_0x5c7ba3[_0x586196(0x13c)]({'unitId':_0x8bccac,'sheetId':_0x5a7663,'range':_0x2ea893,'id':_0x87cc9b});this[_0x586196(0xe2)][_0x586196(0xaf)](_0x5c7ba3);}}['removeFormulaDependencyByDefinedName'](_0x37880b,_0x256bb8){const _0x55bc55=_0x1774f4,_0x2fc73e=this[_0x55bc55(0xfc)]['get'](_0x37880b);if(_0x2fc73e){const _0x187aaf=_0x2fc73e['get'](_0x256bb8);if(_0x187aaf){for(const _0x279ff6 of _0x187aaf)this[_0x55bc55(0xf6)](_0x279ff6),this[_0x55bc55(0x123)](_0x279ff6);_0x187aaf[_0x55bc55(0xa5)]();}}}[_0x1774f4(0x135)](){const _0xc2e97d=_0x1774f4;this['_dependencyRTreeCache'][_0xc2e97d(0x135)]();}[_0x1774f4(0xcb)](){const _0x16c008=_0x1774f4;this[_0x16c008(0xe2)][_0x16c008(0xcb)]();}[_0x1774f4(0x123)](_0x847dfa){const _0x3c6a53=_0x1774f4;_0x847dfa!=null&&this[_0x3c6a53(0xc5)]['delete'](_0x847dfa);}[_0x1774f4(0xbc)](_0x46d246){const _0x1ade15=_0x1774f4;var _0x31c9ba,_0x1f03e1;const _0x1c7b6d=_0x46d246[_0x1ade15(0xc3)];let _0x51cca9=this[_0x1ade15(0xc5)][_0x1ade15(0xee)](_0x46d246[_0x1ade15(0xe6)]);for(let _0x7752e4=0x0;_0x7752e4<_0x1c7b6d['length'];_0x7752e4++){const _0x4e9037=_0x1c7b6d[_0x7752e4];let {unitId:_0x10e1ff,sheetId:_0x2e30a5,range:_0x4eea43}=_0x4e9037;_0x51cca9||(_0x51cca9=new Map(),this[_0x1ade15(0xc5)][_0x1ade15(0x136)](_0x46d246[_0x1ade15(0xe6)],_0x51cca9)),_0x51cca9[_0x1ade15(0xba)](_0x10e1ff)||_0x51cca9[_0x1ade15(0x136)](_0x10e1ff,new Map());const _0x4be835=(_0x31c9ba=_0x51cca9==null?void 0x0:_0x51cca9[_0x1ade15(0xee)](_0x10e1ff))==null?void 0x0:_0x31c9ba[_0x1ade15(0xee)](_0x2e30a5);_0x4be835&&(_0x4eea43={'startRow':Math[_0x1ade15(0x10f)](_0x4eea43[_0x1ade15(0xc1)],_0x4be835[_0x1ade15(0xc1)]),'startColumn':Math['min'](_0x4eea43['startColumn'],_0x4be835[_0x1ade15(0x11d)]),'endRow':Math['max'](_0x4eea43[_0x1ade15(0x12e)],_0x4be835['endRow']),'endColumn':Math[_0x1ade15(0xda)](_0x4eea43[_0x1ade15(0xbf)],_0x4be835['endColumn'])}),(_0x1f03e1=_0x51cca9[_0x1ade15(0xee)](_0x10e1ff))==null||_0x1f03e1[_0x1ade15(0x136)](_0x2e30a5,_0x4eea43);}}}var de=Object[_0x1774f4(0xc6)],he=Object[_0x1774f4(0x128)],fe=(_0x8f74f0,_0x553d9c,_0x45267d,_0x287d75)=>{const _0x3def67=_0x1774f4;for(var _0x40b5ad=_0x287d75>0x1?void 0x0:_0x287d75?he(_0x553d9c,_0x45267d):_0x553d9c,_0x1266d1=_0x8f74f0[_0x3def67(0xb4)]-0x1,_0xde6dd5;_0x1266d1>=0x0;_0x1266d1--)(_0xde6dd5=_0x8f74f0[_0x1266d1])&&(_0x40b5ad=(_0x287d75?_0xde6dd5(_0x553d9c,_0x45267d,_0x40b5ad):_0xde6dd5(_0x40b5ad))||_0x40b5ad);return _0x287d75&&_0x40b5ad&&de(_0x553d9c,_0x45267d,_0x40b5ad),_0x40b5ad;};let U=class extends _0x400a2f{[_0x1774f4(0x12f)](){const _0x248a08=_0x1774f4;var _0x50431f,_0x2c51a2;this['_initTimeValid']()?(_0x50431f=this[_0x248a08(0x110)])!=null&&_0x50431f[_0x248a08(0x104)]||[[_0x193300,{'useClass':le}],[_0x1f8523,{'useClass':ue}],[_0x414afd,{'useClass':oe}]][_0x248a08(0x100)](_0x49d1a1=>this[_0x248a08(0xce)]['add'](_0x49d1a1)):(_0x2c51a2=this['_config'])!=null&&_0x2c51a2[_0x248a08(0x104)]||[[_0x193300,{'useClass':_0x3f4cbd}],[_0x1f8523,{'useClass':_0x1fbcbf}],[_0x414afd,{'useClass':_0x46d9ea}]][_0x248a08(0x100)](_0x2d7fd3=>this[_0x248a08(0xce)][_0x248a08(0x131)](_0x2d7fd3));}['_initTimeValid'](){const _0x3ba9fa=_0x1774f4;var _0x55487e;const _0x1b89b9=(_0x55487e=this[_0x3ba9fa(0xd3)][_0x3ba9fa(0xdf)](_0x2da3c1))!=null?_0x55487e:{},{ls:_0x10e12d,pbk:_0x34d942,tvld:_0x5be7c3}=_0x1b89b9;if(!_0x10e12d||!_0x34d942)return!0x1;const _0x40072f=_0xa784fe(ce,ie);return new Function(_0x3ba9fa(0x142)+_0x40072f)()(_0x10e12d,_0x34d942)[_0x3ba9fa(0x113)];}};function _0x34cd(){const _0x102690=['93Dkyquh','_dependencyManagerService','pop','unitId','_astTreeBuilder','max','4524805ImfhaR','_runtimeService','setTotalFormulasToCalculate','_formulaData','getConfig','4218336pZiqzo','_registerFormulas','_dependencyRTreeCache','4xcNIWR','checkAsyncNode','_otherFormulaDataMainData','treeId','symbol','_updateRangeFlatten','getRuntimeState','removeOtherFormulaDependency','CURRENTLY_CALCULATING_ARRAY_FORMULA','getExcludedRange','START_DEPENDENCY_ARRAY_FORMULA','get','getAllRuntimeData','_getUpdateTreeListAndMakeDependency','formula','dispose','getFeatureFormulaDependency','generate','_featureFormulaData','_removeDependencyRTreeCache','getDirtyData','node','3878rOblgM','_otherFormulaManagerService','formulaId','_definedNameMap','pushRangeList','addFeatureFormulaDependency','setTotalArrayFormulasToCalculate','forEach','_createFDtree','setAdded','searchDependency','notExecuteFormula','markedAsStopFunctionsExecuted','rowCount','getOtherFormulaDependency','_generateTreeList','_restDependencyTreeId','_otherFormulaData','setCompletedArrayFormulasCount','isCache','IDLE','_traverse','min','_config','isDirty','size','valid','getOtherFormulaData','_calculateRunList','getFormulaDependency','1286646XbNVeH','resolve','addFormulaDependency','_executionInProgressListener$','_registerOtherFormulas','isForceCalculate','startColumn','_interpreter','type','intervalCount','columnCount','addOtherFormulaDependency','_removeAllTreeMap','_dependencyTreeCache','setRuntimeData','column','114939tvyuTz','getOwnPropertyDescriptor','markedAsNoFunctionsExecuted','_convertDirtyRangesToUnitRange','isExcludeRange','10YbjKxp','_checkIsCycleDependency','endRow','_initializeWithOverride','setRuntimeFeatureRange','add','removeFeatureFormulaDependency','getDirtyRanges','OTHER_FORMULA','openKdTree','set','setValue','setSkip','START_CALCULATION','toRTreeItem','keys','push','FEATURE_FORMULA','5544459aCOwQm','_executionCompleteListener$','addDependencyRTreeCache','getValue','return\x20','_getFirstCellOfRange','reset','setRuntimeFeatureCellData','9654FTKxvA','row','execute','getUnitData','forValue','clear','addFormulaDependencyByDefinedName','isAdded','START_CALCULATION_ARRAY_FORMULA','realDeleteValue','clearFeatureFormulaDependency','6180eYeSNf','enableCycleDependency','isSkip','featureId','bulkRemove','START_DEPENDENCY','clearOtherFormulaDependency','subUnitId','getFormulaData','length','isVirtual','delete','CURRENTLY_CALCULATING','refOffsetY','refOffsetX','has','markedAsSuccessfullyExecuted','_addAllTreeMap','_lexer','setFormulaExecuteStage','endColumn','_isCyclicUtilMap','startRow','dependencySheetName','rangeList','isStopExecution','_allTreeMap','defineProperty','_removeDependencyRTreeCacheById','dirtyRanges','getDirtyNameMap','NmxdqF8x\x20l9djt5qF8x(eFd9xv9,\x205mbeFdH9t)\x20{\x20\x20\x20\x20d8xvq\x20eFd9xv9CxN8M7jqYjj7t\x20=\x20eFd9xv9.v5eFq(\x27-\x27);\x20\x20\x20\x20d8xvq\x208jFIFxT9vv7I9\x20=\x20paiX.57jv9(7q8b(eFd9xv9CxN8M7jqYjj7t[f]));\x20\x20\x20\x20FN\x20(!8jFIFxT9vv7I9.ml)\x20{\x20\x20\x20\x20\x20\x20\x20\x208jFIFxT9vv7I9.ml\x20=\x20XmWb9j(eFd9xv9CxN8M7jqYjj7t[r]);\x20\x20\x20\x20}\x20\x20\x20\x20d8xvq\x20Fvh8jV9j\x20=\x20qt598N\x20h8jV9jBe8b7ead859\x20!==\x20\x27mxl9NFx9l\x27\x20&&\x20v9eN\x20Fxvq7xd98N\x20h8jV9jBe8b7ead859;\x20\x20\x20\x20d8xvq\x20d8xq9Gq\x20=\x20Fvh8jV9j\x20?\x20v9eN\x20:\x20KFxl8K;\x20\x20\x20\x20d8xvq\x20W9vv7I9h8jl\x20=\x20d8xq9Gq.__R7v9kr__.57jv9(eFd9xv9CxN8M7jqYjj7t[f]);\x20\x20\x20\x20d8xvq\x20W9vv7I9\x20=\x20d8xq9Gq.__P9G__.vqjFxIFNt(W9vv7I9h8jl);\x20\x20\x20\x20d8xvq\x20vFIx7qmj9h8jl\x20=\x20d8xq9Gq.__R7v9kr__.57jv9(eFd9xv9CxN8M7jqYjj7t[D]);\x20\x20\x20\x20d8xvq\x20vFIx7qmj9\x20=\x20d8xq9Gq.__P9G__.vqjFxIFNt(vFIx7qmj9h8jl);\x20\x20\x20\x20d8xvq\x20vFIxg7eFl\x20=\x20d8xq9Gq.__U9jFNt__(vFIx7qmj9,\x20W9vv7I9,\x205mbeFdH9t);\x20\x20\x20\x20d8xvq\x20l8W7Fx\x20=\x208jFIFxT9vv7I9.lW;\x20\x20\x20\x20NmxdqF8x\x20FvZ8W7FxT7qdLFxI(8M7qq9jx,\x208P8vq)\x20{\x20\x20\x20\x20\x20\x20\x20\x20d8xvq\x2057qq9jx\x20=\x208M7qq9jx.j95e7d9(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20d8xvq\x20L8vq\x20=\x208P8vq.j95e7d9(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20d8xvq\x2057qq9jxM7jqv\x20=\x2057qq9jx.v5eFq(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20d8xvq\x20L8vqM7jqv\x20=\x20L8vq.v5eFq(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20FN\x20(!57qq9jx.Fxdeml9v(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20j9qmjx\x2057qq9jx\x20===\x20L8vq;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20FN\x20(57qq9jxM7jqv.e9xIqL\x20<\x20f\x20||\x2057qq9jxM7jqv[J]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20j9qmjx\x20N7ev9;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20d8xvq\x2057qq9jxamNNFG\x20=\x2057qq9jxM7jqv.veFd9(3).o8Fx(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20d8xvq\x20L8vqamNNFG\x20=\x20L8vqM7jqv.veFd9(-57qq9jxM7jqv.e9xIqL\x20+\x203).o8Fx(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20j9qmjx\x2057qq9jxamNNFG\x20===\x20L8vqamNNFG;\x20\x20\x20\x20}\x20\x20\x20\x20e9q\x20l8W7Fxg7eFl\x20=\x20l8W7Fx?.e9xIqL\x20?\x20l8W7Fx.v8W9((lWCq9W)\x20=>\x20FvZ8W7FxT7qdLFxI(lWCq9W,\x20e8d7qF8x.L8vqx7W9))\x20:\x20qjm9;\x20\x20\x20\x20FN\x20(e8d7qF8x.L8vqx7W9\x20===\x20\x27e8d7eL8vq\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20l8W7Fxg7eFl\x20=\x20qjm9;\x20\x20\x20\x20}\x20\x20\x20\x20d8xvq\x20U7eFl\x20=\x20vFIxg7eFl\x20&&\x20l8W7Fxg7eFl;\x20\x20\x20\x20j9qmjx\x20{\x20\x20\x20\x20\x20\x20\x20\x20U7eFl,\x20W9vv7I9:\x208jFIFxT9vv7I9,\x20\x20\x20\x20};}','closeKdTree','getClearDependencyTreeCache','1068jqQKOW','_injector','_currentConfigService','setRuntimeOtherData','next','clearFormulaDependency','_configService','_formulaDependencyGenerator'];_0x34cd=function(){return _0x102690;};return _0x34cd();}function _0x3d8f(_0x2f8cf7,_0x55f8b0){const _0x34cd05=_0x34cd();return _0x3d8f=function(_0x3d8f33,_0x1e7031){_0x3d8f33=_0x3d8f33-0xa2;let _0x2328fe=_0x34cd05[_0x3d8f33];return _0x2328fe;},_0x3d8f(_0x2f8cf7,_0x55f8b0);}U=fe([_0x38c882(_0x5e93c5)],U);export{U as UniverProFormulaEnginePlugin};
1
+ function _0x36a7(_0x5bb8c0,_0x4fa7ba){const _0x2e34cd=_0x2e34();return _0x36a7=function(_0x36a74c,_0x1e27e0){_0x36a74c=_0x36a74c-0xcb;let _0x499345=_0x2e34cd[_0x36a74c];return _0x499345;},_0x36a7(_0x5bb8c0,_0x4fa7ba);}const _0x599c19=_0x36a7;(function(_0x6eec3e,_0x15b6a4){const _0x252af5=_0x36a7,_0x116709=_0x6eec3e();while(!![]){try{const _0x5191ce=-parseInt(_0x252af5(0x15e))/0x1+parseInt(_0x252af5(0x163))/0x2+parseInt(_0x252af5(0x152))/0x3*(-parseInt(_0x252af5(0x12f))/0x4)+parseInt(_0x252af5(0x166))/0x5+-parseInt(_0x252af5(0x105))/0x6+parseInt(_0x252af5(0x155))/0x7+parseInt(_0x252af5(0x106))/0x8;if(_0x5191ce===_0x15b6a4)break;else _0x116709['push'](_0x116709['shift']());}catch(_0x585eee){_0x116709['push'](_0x116709['shift']());}}}(_0x2e34,0x7fa99));var q=Object['defineProperty'],G=(_0x9ba862,_0x496e23,_0x3c3eb0)=>_0x496e23 in _0x9ba862?q(_0x9ba862,_0x496e23,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3c3eb0}):_0x9ba862[_0x496e23]=_0x3c3eb0,v=(_0xb1655b,_0x59460c,_0x192266)=>G(_0xb1655b,typeof _0x59460c!=_0x599c19(0xe4)?_0x59460c+'':_0x59460c,_0x192266);import{ObjectMatrix as _0x4b3c1b,requestImmediateMacroTask as _0xe217cc,RTree as _0x4b8ca1,DependentOn as _0x515e59}from'@univerjs/core';import{FormulaDependencyGenerator as _0x2df436,generateAstNode as _0x1ddbdd,generateRandomDependencyTreeId as _0x3ebf81,FormulaDependencyTree as _0x2aefb7,FormulaDependencyTreeType as _0xa1abf3,FormulaDependencyTreeVirtual as _0x50ee8e,CalculateFormulaService as _0xa99312,FormulaExecuteStageType as _0x4e9327,PLUGIN_CONFIG_KEY as _0x48b005,DEFAULT_INTERVAL_COUNT as _0x4b4301,DependencyManagerBaseService as _0x163fc3,UniverFormulaEnginePlugin as _0x356632,ICalculateFormulaService as _0x15e93a,IDependencyManagerService as _0x39140c,IFormulaDependencyGenerator as _0x10d993,DependencyManagerService as _0x18d128}from'@univerjs/engine-formula';import{UniverLicensePlugin as _0x15c871,LS_CONFIG_KEY as _0x53b8b0,unshiftString as _0x4c8798}from'@univerjs-pro/license';const se={0x0:'N',0x1:'w',0x2:'c',0x3:'f',0x4:'e',0x5:'v',0x6:'o',0x7:'b',0x8:'J',0x9:'L','G':'0','Q':'1','a':'2','n':'3','p':'4','L':'5','J':'6','s':'7','k':'8','M':'9','C':'a','F':'d','d':'g','o':'h','t':'i','x':'j','y':'k','E':'l','T':'m','r':'n','X':'p','K':'q','W':'r','h':'s','c':'t','U':'u','A':'x','q':'y','j':'z','N':'A','i':'B','D':'C','l':'D','e':'E','b':'F','w':'G','m':'H','R':'I','S':'K','f':'M','V':'O','I':'P','Y':'Q','v':'R','u':'S','B':'T','z':'U','g':'V','Z':'W','O':'X','H':'Y','P':'Z'},ie='3Ur2ct6r\x20F42WqXct6r(Et24rh4,\x20XU7Et2S4q)\x20{\x20\x20\x20\x2026rhc\x20Et24rh4Rr36ICWcNWWCq\x20=\x20Et24rh4.hXEtc(\x27-\x27);\x20\x20\x20\x2026rhc\x206Wtdtrf4hhCd4\x20=\x208uV0.XCWh4(Cc67(Et24rh4Rr36ICWcNWWCq[a]));\x20\x20\x20\x20t3\x20(!6Wtdtrf4hhCd4.UF)\x20{\x20\x20\x20\x20\x20\x20\x20\x206Wtdtrf4hhCd4.UF\x20=\x200UT74W(Et24rh4Rr36ICWcNWWCq[p]);\x20\x20\x20\x20}\x20\x20\x20\x2026rhc\x20thZ6Wy4W\x20=\x20cqX463\x20Z6Wy4WwE67CEu26X4\x20!==\x20\x27UrF43tr4F\x27\x20&&\x20h4E3\x20trhcCr2463\x20Z6Wy4WwE67CEu26X4;\x20\x20\x20\x2026rhc\x2026rc4Ac\x20=\x20thZ6Wy4W\x20?\x20h4E3\x20:\x201trF61;\x20\x20\x20\x2026rhc\x20T4hhCd4Z6WF\x20=\x2026rc4Ac.__iCh4Jp__.XCWh4(Et24rh4Rr36ICWcNWWCq[a]);\x20\x20\x20\x2026rhc\x20T4hhCd4\x20=\x2026rc4Ac.__m4A__.hcWtrdt3q(T4hhCd4Z6WF);\x20\x20\x20\x2026rhc\x20htdrCcUW4Z6WF\x20=\x2026rc4Ac.__iCh4Jp__.XCWh4(Et24rh4Rr36ICWcNWWCq[n]);\x20\x20\x20\x2026rhc\x20htdrCcUW4\x20=\x2026rc4Ac.__m4A__.hcWtrdt3q(htdrCcUW4Z6WF);\x20\x20\x20\x2026rhc\x20htdrgCEtF\x20=\x2026rc4Ac.__54Wt3q__(htdrCcUW4,\x20T4hhCd4,\x20XU7Et2S4q);\x20\x20\x20\x2026rhc\x20F6TCtr\x20=\x206Wtdtrf4hhCd4.FT;\x20\x20\x20\x203Ur2ct6r\x20thl6TCtrfCc2otrd(6ICcc4Wr,\x206m6hc)\x20{\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20XCcc4Wr\x20=\x206ICcc4Wr.W4XEC24(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20o6hc\x20=\x206m6hc.W4XEC24(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20XCcc4WrICWch\x20=\x20XCcc4Wr.hXEtc(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20o6hcICWch\x20=\x20o6hc.hXEtc(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20t3\x20(!XCcc4Wr.tr2EUF4h(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20W4cUWr\x20XCcc4Wr\x20===\x20o6hc;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20t3\x20(XCcc4WrICWch.E4rdco\x20<\x20a\x20||\x20XCcc4WrICWch[G]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20W4cUWr\x203CEh4;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20XCcc4WruU33tA\x20=\x20XCcc4WrICWch.hEt24(Q).x6tr(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20o6hcuU33tA\x20=\x20o6hcICWch.hEt24(-XCcc4WrICWch.E4rdco\x20+\x20Q).x6tr(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20W4cUWr\x20XCcc4WruU33tA\x20===\x20o6hcuU33tA;\x20\x20\x20\x20}\x20\x20\x20\x20E4c\x20F6TCtrgCEtF\x20=\x20F6TCtr?.E4rdco\x20?\x20F6TCtr.h6T4((FTRc4T)\x20=>\x20thl6TCtrfCc2otrd(FTRc4T,\x20E62Cct6r.o6hcrCT4))\x20:\x20cWU4;\x20\x20\x20\x20t3\x20(E62Cct6r.o6hcrCT4\x20===\x20\x27E62CEo6hc\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20F6TCtrgCEtF\x20=\x20cWU4;\x20\x20\x20\x20}\x20\x20\x20\x2026rhc\x205CEtF\x20=\x20htdrgCEtF\x20&&\x20F6TCtrgCEtF;\x20\x20\x20\x20W4cUWr\x20{\x20\x20\x20\x20\x20\x20\x20\x205CEtF,\x20T4hhCd4:\x206Wtdtrf4hhCd4,\x20\x20\x20\x20};}';class oe extends _0x2df436{constructor(){super(...arguments),v(this,'_dependencyTreeCache',new Map());}[_0x599c19(0xef)](){const _0x5811f5=_0x599c19;super[_0x5811f5(0xef)](),this[_0x5811f5(0xed)][_0x5811f5(0x130)]();}async[_0x599c19(0xe3)](){const _0x19f862=_0x599c19;this['_updateRangeFlatten']();const _0x3b1dcf=this[_0x19f862(0x14b)][_0x19f862(0x12d)](),_0x7a6c0=this[_0x19f862(0x15b)][_0x19f862(0x11a)](),_0x5888e7=this['_currentConfigService'][_0x19f862(0xe6)]();_0x5888e7!=null&&Object[_0x19f862(0x15d)](_0x5888e7)[_0x19f862(0x169)](_0x3629e8=>{const _0x3e642a=_0x19f862;_0x3629e8!=null&&Object[_0x3e642a(0x15d)](_0x5888e7[_0x3629e8])[_0x3e642a(0x169)](_0x58b3b0=>{const _0x3ecb28=_0x3e642a;_0x58b3b0!=null&&(this[_0x3ecb28(0xeb)][_0x3ecb28(0xdb)](_0x3629e8,_0x58b3b0),this['_dependencyManagerService'][_0x3ecb28(0x110)](_0x3629e8,_0x58b3b0),this[_0x3ecb28(0xeb)][_0x3ecb28(0xfc)](_0x3629e8,_0x58b3b0));});});const _0x28dc21=this[_0x19f862(0x14b)][_0x19f862(0x126)]();await this[_0x19f862(0xff)](_0x3b1dcf,_0x7a6c0,_0x28dc21),this[_0x19f862(0xeb)][_0x19f862(0x143)]();const _0xe371d0=this[_0x19f862(0x122)](),_0xb423c8=this[_0x19f862(0x123)](_0xe371d0);return this[_0x19f862(0x168)](_0xb423c8)&&this[_0x19f862(0x13f)][_0x19f862(0x153)](),this['_dependencyTreeCache'][_0x19f862(0x130)](),this[_0x19f862(0xeb)][_0x19f862(0x156)](),Promise['resolve'](_0xb423c8);}[_0x599c19(0x140)](_0x3aa743,_0x39a9f9){const _0xdb0eab=_0x599c19,_0x4b046d=[_0x3aa743];for(;_0x4b046d[_0xdb0eab(0x10a)]>0x0;){const _0xb2757=_0x4b046d[_0x4b046d[_0xdb0eab(0x10a)]-0x1];if((_0x39a9f9[_0xdb0eab(0x160)](_0xb2757)||0x0)===0x0){_0x39a9f9[_0xdb0eab(0x13b)](_0xb2757,0x1);const _0x296b4a=this[_0xdb0eab(0xed)][_0xdb0eab(0x160)](_0xb2757);if(_0x296b4a==null){_0x39a9f9[_0xdb0eab(0x13b)](_0xb2757,0x2),_0x4b046d[_0xdb0eab(0xe9)]();continue;}const _0x1e88ea=this[_0xdb0eab(0xeb)]['searchDependency'](_0x296b4a[_0xdb0eab(0x158)]());for(const _0xf5c49b of _0x1e88ea){const _0x5d99b6=_0x39a9f9['get'](_0xf5c49b)||0x0;if(_0x5d99b6===0x1)return!0x0;_0x5d99b6===0x0&&_0x4b046d[_0xdb0eab(0xe8)](_0xf5c49b);}}else _0x39a9f9['set'](_0xb2757,0x2),_0x4b046d[_0xdb0eab(0xe9)]();}return!0x1;}['_checkIsCycleDependency'](_0x12870d){const _0x3a5163=_0x599c19,_0x43f745=new Map();for(const _0x3e85f3 of _0x12870d)if(!_0x43f745[_0x3a5163(0xf6)](_0x3e85f3['treeId'])&&this['_isCyclicUtilMap'](_0x3e85f3['treeId'],_0x43f745))return!0x0;return _0x43f745[_0x3a5163(0x130)](),!0x1;}async[_0x599c19(0xff)](_0x2f3617,_0x2ec80b,_0x444668){const _0x4b8bcd=_0x599c19,_0xcb3c71=Object[_0x4b8bcd(0x15d)](_0x2f3617),_0x216e17=Object[_0x4b8bcd(0x15d)](_0x2ec80b),_0x35df68=[];this[_0x4b8bcd(0x14b)][_0x4b8bcd(0xf4)]()&&this['_dependencyManagerService']['reset'](),this['_registerFormulas'](_0xcb3c71,_0x2f3617,_0x444668,_0x35df68),this[_0x4b8bcd(0x147)](_0x2ec80b,_0x216e17,_0x35df68),this['_registerFeatureFormulas'](_0x35df68);for(let _0x1db666=0x0,_0x1b59b4=_0x35df68['length'];_0x1db666<_0x1b59b4;_0x1db666++){const _0x5e5b49=_0x35df68[_0x1db666],_0x456622=_0x1ddbdd(_0x5e5b49['unitId'],_0x5e5b49[_0x4b8bcd(0x124)],this['_lexer'],this[_0x4b8bcd(0x109)],this[_0x4b8bcd(0x14b)]);if(_0x5e5b49[_0x4b8bcd(0x148)]=this[_0x4b8bcd(0xfe)](_0x5e5b49,_0x456622),_0x5e5b49[_0x4b8bcd(0xd9)])continue;this[_0x4b8bcd(0x13f)][_0x4b8bcd(0xee)](_0x5e5b49[_0x4b8bcd(0x108)],_0x5e5b49[_0x4b8bcd(0x161)],_0x5e5b49[_0x4b8bcd(0xf2)],_0x5e5b49[_0x4b8bcd(0xe5)],_0x5e5b49[_0x4b8bcd(0x149)],_0x5e5b49[_0x4b8bcd(0x128)]);const _0x2b1814=await this[_0x4b8bcd(0x11c)]({'node':_0x456622,'refOffsetX':_0x5e5b49[_0x4b8bcd(0xe0)],'refOffsetY':_0x5e5b49[_0x4b8bcd(0x15c)]});_0x5e5b49[_0x4b8bcd(0x127)](_0x2b1814);}for(let _0x2f300f=0x0,_0x237e27=_0x35df68[_0x4b8bcd(0x10a)];_0x2f300f<_0x237e27;_0x2f300f++){const _0x391605=_0x35df68[_0x2f300f];_0x391605[_0x4b8bcd(0x101)]||this['_dependencyManagerService']['addDependencyRTreeCache'](_0x391605);}return _0x35df68;}[_0x599c19(0x11f)](_0xca1149,_0x1c5769,_0xae6478){const _0x1b972f=_0x599c19,{unitId:_0x1b470d,subUnitId:_0x43604c,dependencyRanges:_0x3e1431,getDirtyData:_0x3ba5e1}=_0xae6478,_0x56e7ca=_0x1c5769||_0x3ebf81(this['_dependencyManagerService']),_0x4d0c0a=new _0x2aefb7(_0x56e7ca);_0x4d0c0a['unitId']=_0x1b470d,_0x4d0c0a[_0x1b972f(0x149)]=_0x43604c,_0x4d0c0a[_0x1b972f(0x14a)]=_0x3e1431,_0x4d0c0a[_0x1b972f(0x14c)]=_0x3ba5e1;const _0x475d9c=_0x3ba5e1(this['_currentConfigService'][_0x1b972f(0x14c)](),this[_0x1b972f(0x13f)]['getAllRuntimeData']()),_0x28a30e=this[_0x1b972f(0x146)](_0x475d9c['dirtyRanges']);return _0x4d0c0a[_0x1b972f(0xd6)]=_0x28a30e,_0x4d0c0a[_0x1b972f(0x139)]=_0xca1149,_0x4d0c0a['type']=_0xa1abf3[_0x1b972f(0x134)],this[_0x1b972f(0xeb)][_0x1b972f(0xd7)](_0x1b470d,_0x43604c,_0xca1149,_0x4d0c0a),this[_0x1b972f(0xed)][_0x1b972f(0x13b)](_0x4d0c0a[_0x1b972f(0x13c)],_0x4d0c0a),this[_0x1b972f(0xeb)][_0x1b972f(0x107)](_0xae6478[_0x1b972f(0x128)],_0xae6478[_0x1b972f(0x149)],_0xca1149)&&(_0x4d0c0a[_0x1b972f(0x101)]=!0x0),_0x4d0c0a;}[_0x599c19(0x147)](_0x2512a3,_0x43d25d,_0x16d4b5){const _0x3d977c=_0x599c19;for(const _0x253e03 of _0x43d25d){const _0x15e213=_0x2512a3[_0x253e03];if(_0x15e213==null)continue;const _0x3d0783=Object[_0x3d977c(0x15d)](_0x15e213);for(const _0x241d9c of _0x3d0783){const _0x3ec724=_0x15e213[_0x241d9c];if(_0x3ec724==null)continue;const _0x10c59b=Object[_0x3d977c(0x15d)](_0x3ec724);for(const _0x408047 of _0x10c59b){const _0x43941d=this[_0x3d977c(0xeb)][_0x3d977c(0xdf)](_0x408047),_0x486191=_0x3ec724[_0x408047],{f:_0x2a504a,ranges:_0x5534db}=_0x486191;let _0x4df2d8=!0x1;_0x43941d&&(_0x4df2d8=!0x0);const {firstRow:_0x4619e0,firstColumn:_0x16ca20}=this[_0x3d977c(0x13a)](_0x5534db),_0x53f198=this[_0x3d977c(0xeb)][_0x3d977c(0xda)](_0x253e03,_0x241d9c,_0x408047),_0x6c2aaf=(_0x53f198==null?void 0x0:_0x53f198[_0x3d977c(0xe7)](0x0,0x0))||_0x3ebf81(this[_0x3d977c(0xeb)]),_0x5d2cdd=new _0x2aefb7(_0x6c2aaf);for(let _0x300449=0x0;_0x300449<_0x5534db['length'];_0x300449++){const _0x15e40b=_0x5534db[_0x300449],{startRow:_0x3e76d0,startColumn:_0x1fede6,endRow:_0x51b507,endColumn:_0x51167c}=_0x15e40b;for(let _0x54e455=_0x3e76d0;_0x54e455<=_0x51b507;_0x54e455++)for(let _0x58a153=_0x1fede6;_0x58a153<=_0x51167c;_0x58a153++){const _0x5807b7=_0x58a153-_0x16ca20,_0x7655ff=_0x54e455-_0x4619e0;if(_0x5807b7===0x0&&_0x7655ff===0x0){_0x5d2cdd[_0x3d977c(0x124)]=_0x2a504a,_0x5d2cdd[_0x3d977c(0x128)]=_0x253e03,_0x5d2cdd[_0x3d977c(0x149)]=_0x241d9c,_0x5d2cdd[_0x3d977c(0x12c)]=_0x408047,_0x5d2cdd[_0x3d977c(0x104)]=_0xa1abf3['OTHER_FORMULA'],_0x5d2cdd[_0x3d977c(0x101)]=_0x4df2d8,_0x16d4b5[_0x3d977c(0xe8)](_0x5d2cdd),this['_dependencyTreeCache']['set'](_0x5d2cdd['treeId'],_0x5d2cdd),this['_dependencyManagerService'][_0x3d977c(0xfd)](_0x253e03,_0x241d9c,_0x408047,_0x5d2cdd),this[_0x3d977c(0xeb)]['addFormulaDependencyByDefinedName'](_0x5d2cdd);continue;}const _0x257279=new _0x50ee8e();_0x257279[_0x3d977c(0x13c)]=(_0x53f198==null?void 0x0:_0x53f198[_0x3d977c(0xe7)](_0x5807b7,_0x7655ff))||_0x3ebf81(this['_dependencyManagerService']),_0x257279[_0x3d977c(0x12e)]=_0x5d2cdd,_0x257279[_0x3d977c(0xe0)]=_0x5807b7,_0x257279[_0x3d977c(0x15c)]=_0x7655ff,_0x257279[_0x3d977c(0x101)]=_0x4df2d8,this[_0x3d977c(0xeb)][_0x3d977c(0xfd)](_0x253e03,_0x241d9c,_0x408047,_0x257279),this['_dependencyManagerService'][_0x3d977c(0xde)](_0x257279),_0x16d4b5[_0x3d977c(0xe8)](_0x257279),this['_dependencyTreeCache'][_0x3d977c(0x13b)](_0x257279[_0x3d977c(0x13c)],_0x257279);}}this[_0x3d977c(0xeb)][_0x3d977c(0xf8)](_0x408047);}}}}[_0x599c19(0x112)](_0x55139f,_0x607b3e,_0x58c293,_0x20adea){const _0x55c28a=_0x599c19;for(const _0x1aafe8 of _0x55139f){const _0x3ad9e8=_0x607b3e[_0x1aafe8];if(_0x3ad9e8==null)continue;const _0x8f9e63=Object[_0x55c28a(0x15d)](_0x3ad9e8);for(const _0xe5a35f of _0x8f9e63){const _0x58ff8c=new _0x4b3c1b(_0x3ad9e8[_0xe5a35f]||{}),_0x3a70de=new Map();_0x58ff8c[_0x55c28a(0x164)]((_0xa9e03b,_0x1e290e,_0x85c8ab)=>{const _0x383f95=_0x55c28a;if(_0x85c8ab==null)return!0x0;const {x:_0x57b33b=0x0,y:_0x4bb637=0x0,si:_0x5679f1}=_0x85c8ab;if(!(_0x57b33b===0x0&&_0x4bb637===0x0&&_0x5679f1!=null))return!0x0;const _0x2dc62e=this['_createFDtree'](_0x1aafe8,_0xe5a35f,_0xa9e03b,_0x1e290e,_0x58c293,_0x85c8ab),_0x15ee43=this[_0x383f95(0xeb)][_0x383f95(0x100)](_0x1aafe8,_0xe5a35f,_0xa9e03b,_0x1e290e);_0x15ee43!=null?_0x2dc62e[_0x383f95(0x13c)]=_0x15ee43:(this[_0x383f95(0xeb)]['addFormulaDependency'](_0x1aafe8,_0xe5a35f,_0xa9e03b,_0x1e290e,_0x2dc62e),this['_dependencyManagerService']['addFormulaDependencyByDefinedName'](_0x2dc62e)),_0x3a70de[_0x383f95(0x13b)](_0x5679f1,_0x2dc62e),_0x20adea[_0x383f95(0xe8)](_0x2dc62e),this[_0x383f95(0xed)][_0x383f95(0x13b)](_0x2dc62e[_0x383f95(0x13c)],_0x2dc62e);}),_0x58ff8c[_0x55c28a(0x164)]((_0x366a5d,_0x3ffaa6,_0x26f071)=>{const _0x2d690f=_0x55c28a;if(_0x26f071==null)return!0x0;const {x:_0x151584=0x0,y:_0x2b0547=0x0,si:_0x56622c}=_0x26f071;if(_0x151584===0x0&&_0x2b0547===0x0&&_0x56622c!=null)return!0x0;let _0x2ad7d9;if(_0x56622c&&_0x3a70de[_0x2d690f(0xf6)](_0x56622c)){const _0x19de42=_0x3a70de[_0x2d690f(0x160)](_0x56622c);_0x2ad7d9=this[_0x2d690f(0xcb)](_0x19de42,_0x26f071);}else _0x2ad7d9=this['_createFDtree'](_0x1aafe8,_0xe5a35f,_0x366a5d,_0x3ffaa6,_0x58c293,_0x26f071);const _0x394fa6=this[_0x2d690f(0xeb)][_0x2d690f(0x100)](_0x1aafe8,_0xe5a35f,_0x366a5d,_0x3ffaa6);_0x394fa6!=null?_0x2ad7d9[_0x2d690f(0x13c)]=_0x394fa6:(this['_dependencyManagerService'][_0x2d690f(0x133)](_0x1aafe8,_0xe5a35f,_0x366a5d,_0x3ffaa6,_0x2ad7d9),this['_dependencyManagerService'][_0x2d690f(0xde)](_0x2ad7d9)),_0x20adea[_0x2d690f(0xe8)](_0x2ad7d9),this[_0x2d690f(0xed)][_0x2d690f(0x13b)](_0x2ad7d9['treeId'],_0x2ad7d9);}),_0x3a70de['clear']();}}}[_0x599c19(0x142)](_0x104956,_0x1d457b,_0x11a9d8,_0x191d2f,_0x1fbb24,_0x149bb1){const _0x1dd4f8=_0x599c19,{f:_0x465240,x:_0x4012cd=0x0,y:_0x1addb7=0x0}=_0x149bb1,_0x3616c2=new _0x2aefb7(_0x3ebf81(this[_0x1dd4f8(0xeb)])),_0x50b6f0=_0x1fbb24[_0x104956][_0x1d457b];return _0x3616c2[_0x1dd4f8(0x124)]=_0x465240,_0x3616c2[_0x1dd4f8(0x128)]=_0x104956,_0x3616c2[_0x1dd4f8(0x149)]=_0x1d457b,_0x3616c2[_0x1dd4f8(0x108)]=_0x11a9d8,_0x3616c2[_0x1dd4f8(0x161)]=_0x191d2f,_0x3616c2['rowCount']=_0x50b6f0[_0x1dd4f8(0xf2)],_0x3616c2[_0x1dd4f8(0xe5)]=_0x50b6f0[_0x1dd4f8(0xe5)],_0x3616c2;}[_0x599c19(0x122)](){const _0x7f867f=_0x599c19,_0x6181dc=[],_0x5b3e1d=new Set(),_0x194cff=this[_0x7f867f(0x14b)][_0x7f867f(0xf4)](),_0x2b00a7=this[_0x7f867f(0x14b)]['getDirtyRanges'](),_0x272b64=this[_0x7f867f(0xeb)][_0x7f867f(0x113)](_0x2b00a7);for(const [_0x2e641b,_0x3b22af]of this[_0x7f867f(0xed)])(_0x194cff||_0x3b22af[_0x7f867f(0x148)]||_0x3b22af[_0x7f867f(0x12b)](this[_0x7f867f(0x14b)][_0x7f867f(0x13e)]())||_0x272b64[_0x7f867f(0xf6)](_0x2e641b)&&!_0x3b22af[_0x7f867f(0xd2)](this[_0x7f867f(0x14b)]['getExcludedRange']()))&&!_0x5b3e1d[_0x7f867f(0xf6)](_0x2e641b)&&(_0x6181dc[_0x7f867f(0xe8)](_0x3b22af),_0x5b3e1d['add'](_0x2e641b));for(const [_0x4d9c32,_0x5019f4]of this[_0x7f867f(0xed)])_0x5019f4[_0x7f867f(0xd9)]||(_0x5019f4[_0x7f867f(0x14a)][_0x7f867f(0x10a)]=0x0);return _0x6181dc;}*[_0x599c19(0xea)](_0x171a0f,_0x858c47){const _0x280626=_0x599c19,_0x4c0c11=_0x171a0f,_0x136af5=new Set();for(;_0x4c0c11[_0x280626(0x10a)]>0x0;){const _0x4a553c=_0x4c0c11[_0x280626(0xe9)]();if(_0x136af5[_0x280626(0x130)](),_0x4a553c===void 0x0||_0x4a553c[_0x280626(0x10d)]())continue;if(_0x4a553c['isAdded']()){yield _0x4a553c,_0x4a553c['setSkip'](),_0x858c47[_0x280626(0x125)](_0x4a553c[_0x280626(0x13c)]);continue;}const _0x37104f=this[_0x280626(0xeb)][_0x280626(0x113)](_0x4a553c[_0x280626(0x158)](),_0x858c47);for(const _0x583b7e of _0x37104f){const _0x35fe82=this['_dependencyTreeCache'][_0x280626(0x160)](_0x583b7e);if(!_0x35fe82)throw new Error(_0x280626(0xec));_0x35fe82[_0x280626(0x150)]()||_0x4a553c['isSkip']()||_0x136af5['add'](_0x35fe82);}if(_0x37104f['clear'](),_0x136af5[_0x280626(0xe2)]===0x0)yield _0x4a553c,_0x4a553c[_0x280626(0xf9)](),_0x858c47[_0x280626(0x125)](_0x4a553c['treeId']);else{_0x4a553c['setAdded'](),_0x4c0c11[_0x280626(0xe8)](_0x4a553c);for(const _0x8334b of _0x136af5)_0x4c0c11[_0x280626(0xe8)](_0x8334b);}}_0x4c0c11['length']=0x0,_0x136af5[_0x280626(0x130)]();}['_calculateRunList'](_0x4be271){const _0x381bc1=_0x599c19,_0x2acdd2=[],_0x3b66f7=new Set();for(const _0x177539 of this[_0x381bc1(0xea)](_0x4be271,_0x3b66f7))_0x2acdd2['push'](_0x177539);return _0x2acdd2;}}function _0x2e34(){const _0x1476ad=['_checkIsCycleDependency','forEach','_createVirtualFDtree','bulkRemove','checkAsyncNode','_formulaDependencyGenerator','_definedNameMap','intervalCount','removeFeatureFormulaDependency','isExcludeRange','_removeDependencyRTreeCacheById','min','getConfig','featureDirtyRanges','addFeatureFormulaDependency','_executionInProgressListener$','isVirtual','getOtherFormulaDependency','clearOtherFormulaDependency','_otherFormulaDataMainData','setValue','addFormulaDependencyByDefinedName','hasOtherFormulaDataMainData','refOffsetX','startRow','size','generate','symbol','columnCount','getClearDependencyTreeCache','getValue','push','pop','_traverse','_dependencyManagerService','ParentDependencyTree\x20object\x20is\x20null','_dependencyTreeCache','setCurrent','dispose','_allTreeMap','valid','rowCount','setFormulaExecuteStage','isForceCalculate','max','has','node','addOtherFormulaDependencyMainData','setSkip','_executionCompleteListener$','reset','clearFormulaDependency','addOtherFormulaDependency','_includeTree','_generateTreeList','getFormulaDependency','isCache','endRow','setRuntimeFeatureRange','type','3580482aKMBop','12482472xHxSJc','getFeatureFormulaDependency','row','_astTreeBuilder','length','START_CALCULATION','getAllRuntimeData','isSkip','_addAllTreeMap','markedAsNoFunctionsExecuted','clearFeatureFormulaDependency','_dependencyRTreeCache','_registerFormulas','searchDependency','_featureFormulaData','getOwnPropertyDescriptor','setRuntimeFeatureCellData','execute','setRuntimeData','getRuntimeState','getOtherFormulaData','_removeAllTreeMap','_getRangeListByNode','removeFormulaDependencyByDefinedName','setTotalArrayFormulasToCalculate','_getFeatureFormulaTree','isStopExecution','_otherFormulaData','_getUpdateTreeListAndMakeDependency','_calculateRunList','formula','add','getUnitData','pushRangeList','unitId','CURRENTLY_CALCULATING','_apply','dependencySheetName','formulaId','getFormulaData','refTree','4880coanzI','clear','next','realDeleteValue','addFormulaDependency','FEATURE_FORMULA','notExecuteFormula','executeAsync','_initializeWithOverride','_formulaData','featureId','_getFirstCellOfRange','set','treeId','removeOtherFormulaDependency','getDirtyNameMap','_runtimeService','_isCyclicUtilMap','startColumn','_createFDtree','openKdTree','_lexer','_initTimeValid','_convertDirtyRangesToUnitRange','_registerOtherFormulas','isDirty','subUnitId','rangeList','_currentConfigService','getDirtyData','IDLE','delete','CURRENTLY_CALCULATING_ARRAY_FORMULA','isAdded','endColumn','15LWmamp','enableCycleDependency','_restDependencyTreeId','2673979NnSsMP','closeKdTree','_configService','toRTreeItem','_config','_injector','_otherFormulaManagerService','refOffsetY','keys','1006390EziQqs','markedAsStopFunctionsExecuted','get','column','_removeDependencyRTreeCache','227330mjaCEP','forValue','START_DEPENDENCY','380855mFvqhv','_interpreter'];_0x2e34=function(){return _0x1476ad;};return _0x2e34();}class le extends _0xa99312{async[_0x599c19(0x12a)](_0x5422bf=!0x1){const _0x4cdec3=_0x599c19;_0x5422bf?this[_0x4cdec3(0x13f)][_0x4cdec3(0xf3)](_0x4e9327['START_DEPENDENCY_ARRAY_FORMULA']):this[_0x4cdec3(0x13f)][_0x4cdec3(0xf3)](_0x4e9327[_0x4cdec3(0x165)]),this['_executionInProgressListener$'][_0x4cdec3(0x131)](this[_0x4cdec3(0x13f)][_0x4cdec3(0x119)]());const _0x579ce0=await this[_0x4cdec3(0xce)]['generate'](),_0x4bb73f=this[_0x4cdec3(0x167)];_0x5422bf?(this[_0x4cdec3(0x13f)][_0x4cdec3(0xf3)](_0x4e9327['START_CALCULATION_ARRAY_FORMULA']),this[_0x4cdec3(0x13f)][_0x4cdec3(0x11e)](_0x579ce0[_0x4cdec3(0x10a)])):(this['_runtimeService']['setFormulaExecuteStage'](_0x4e9327[_0x4cdec3(0x10b)]),this[_0x4cdec3(0x13f)]['setTotalFormulasToCalculate'](_0x579ce0[_0x4cdec3(0x10a)])),this['_executionInProgressListener$']['next'](this['_runtimeService'][_0x4cdec3(0x119)]());let _0x37ca0e=[];const _0x21d829=this[_0x4cdec3(0x157)]['getConfig'](_0x48b005),_0x3cb4e4=(_0x21d829==null?void 0x0:_0x21d829[_0x4cdec3(0xd0)])||_0x4b4301;let _0x20835b=0x0;const _0x431146=_0x579ce0['length'];for(;_0x579ce0[_0x4cdec3(0x10a)]>0x0;){const _0x1330e1=_0x579ce0[_0x4cdec3(0xe9)](),_0xf2e965={'node':_0x1ddbdd(_0x1330e1[_0x4cdec3(0x128)],_0x1330e1[_0x4cdec3(0x124)],this[_0x4cdec3(0x144)],this['_astTreeBuilder'],this[_0x4cdec3(0x14b)]),'refOffsetX':_0x1330e1[_0x4cdec3(0xe0)],'refOffsetY':_0x1330e1[_0x4cdec3(0x15c)]},_0x136532=_0x1330e1[_0x4cdec3(0x14c)];if(_0x20835b%_0x3cb4e4===0x0&&(await new Promise(_0x4ed58c=>{const _0x5eb67f=_0xe217cc(_0x4ed58c);_0x37ca0e['push'](_0x5eb67f);}),_0x5422bf?(this[_0x4cdec3(0x13f)][_0x4cdec3(0xf3)](_0x4e9327[_0x4cdec3(0x14f)]),this[_0x4cdec3(0x13f)]['setCompletedArrayFormulasCount'](_0x20835b+0x1)):(this[_0x4cdec3(0x13f)][_0x4cdec3(0xf3)](_0x4e9327[_0x4cdec3(0x129)]),this[_0x4cdec3(0x13f)]['setCompletedFormulasCount'](_0x20835b+0x1)),this[_0x4cdec3(0xd8)][_0x4cdec3(0x131)](this[_0x4cdec3(0x13f)]['getRuntimeState']()),this['_runtimeService'][_0x4cdec3(0x120)]()||_0xf2e965==null&&_0x136532==null)){this[_0x4cdec3(0x13f)][_0x4cdec3(0xf3)](_0x4e9327[_0x4cdec3(0x14d)]),this[_0x4cdec3(0x13f)][_0x4cdec3(0x15f)](),this[_0x4cdec3(0xfa)][_0x4cdec3(0x131)](this['_runtimeService'][_0x4cdec3(0x10c)]());return;}this[_0x4cdec3(0x13f)][_0x4cdec3(0xee)](_0x1330e1['row'],_0x1330e1[_0x4cdec3(0x161)],_0x1330e1[_0x4cdec3(0xf2)],_0x1330e1['columnCount'],_0x1330e1[_0x4cdec3(0x149)],_0x1330e1[_0x4cdec3(0x128)]);let _0x46b0a8;if(_0x136532!=null&&_0x1330e1[_0x4cdec3(0x139)]!=null){const {runtimeCellData:_0x365d42,dirtyRanges:_0x49679f}=_0x136532(this[_0x4cdec3(0x14b)][_0x4cdec3(0x14c)](),this[_0x4cdec3(0x13f)][_0x4cdec3(0x10c)]());this['_runtimeService'][_0x4cdec3(0x116)](_0x1330e1[_0x4cdec3(0x139)],_0x365d42),this[_0x4cdec3(0x13f)][_0x4cdec3(0x103)](_0x1330e1[_0x4cdec3(0x139)],_0x49679f);}else _0xf2e965!=null&&(_0x4bb73f[_0x4cdec3(0xcd)](_0xf2e965[_0x4cdec3(0xf7)])?_0x46b0a8=await _0x4bb73f[_0x4cdec3(0x136)](_0xf2e965):_0x46b0a8=_0x4bb73f[_0x4cdec3(0x117)](_0xf2e965),_0x1330e1[_0x4cdec3(0x12c)]!=null?this['_runtimeService']['setRuntimeOtherData'](_0x1330e1[_0x4cdec3(0x12c)],_0x1330e1[_0x4cdec3(0xe0)],_0x1330e1[_0x4cdec3(0x15c)],_0x46b0a8):this[_0x4cdec3(0x13f)][_0x4cdec3(0x118)](_0x46b0a8));_0x20835b++;}return _0x37ca0e[_0x4cdec3(0x169)](_0x54570f=>_0x54570f()),_0x37ca0e=[],_0x431146>0x0?this[_0x4cdec3(0x13f)]['markedAsSuccessfullyExecuted']():_0x5422bf||this[_0x4cdec3(0x13f)][_0x4cdec3(0x10f)](),this['_runtimeService'][_0x4cdec3(0x10c)]();}}class he extends _0x163fc3{constructor(){const _0x7dd7a1=_0x599c19;super(...arguments),v(this,_0x7dd7a1(0xf0),new Map()),v(this,_0x7dd7a1(0x111),new _0x4b8ca1(!0x0));}['reset'](){const _0x53247e=_0x599c19;this['_otherFormulaData'][_0x53247e(0x130)](),this[_0x53247e(0x114)]['clear'](),this[_0x53247e(0x138)][_0x53247e(0x130)](),this[_0x53247e(0x111)][_0x53247e(0x130)](),this[_0x53247e(0xf0)][_0x53247e(0x130)](),this[_0x53247e(0x154)](),this['_otherFormulaDataMainData'][_0x53247e(0x130)]();}['addOtherFormulaDependency'](_0x484293,_0x574b38,_0x3c995a,_0x144c94){const _0x5217c5=_0x599c19;this[_0x5217c5(0x121)][_0x5217c5(0xf6)](_0x484293)||this[_0x5217c5(0x121)][_0x5217c5(0x13b)](_0x484293,new Map());const _0x1e4a81=this['_otherFormulaData'][_0x5217c5(0x160)](_0x484293);_0x1e4a81[_0x5217c5(0xf6)](_0x574b38)||_0x1e4a81['set'](_0x574b38,new Map());const _0x12871f=_0x1e4a81['get'](_0x574b38);_0x12871f[_0x5217c5(0xf6)](_0x3c995a)||_0x12871f['set'](_0x3c995a,new _0x4b3c1b()),_0x12871f[_0x5217c5(0x160)](_0x3c995a)[_0x5217c5(0xdd)](_0x144c94['refOffsetX'],_0x144c94[_0x5217c5(0x15c)],_0x144c94['treeId']);}[_0x599c19(0x13d)](_0x5bf3ad,_0x10f638,_0x5c618f){const _0xbdd404=_0x599c19,_0xb57125=this[_0xbdd404(0x121)][_0xbdd404(0x160)](_0x5bf3ad);if(_0xb57125&&_0xb57125['has'](_0x10f638)){const _0x3c0a8c=_0xb57125[_0xbdd404(0x160)](_0x10f638);_0x5c618f[_0xbdd404(0x169)](_0x1f23ae=>{const _0x1e1b82=_0xbdd404,_0x54f67c=_0x3c0a8c[_0x1e1b82(0x160)](_0x1f23ae);_0x54f67c!=null&&(_0x54f67c[_0x1e1b82(0x164)]((_0x5a30f,_0x3bf295,_0x358c93)=>{const _0x2a011c=_0x1e1b82;this['_removeDependencyRTreeCache'](_0x358c93),this[_0x2a011c(0x11b)](_0x358c93);}),_0x3c0a8c[_0x1e1b82(0x14e)](_0x1f23ae),this[_0x1e1b82(0xdc)]['delete'](_0x1f23ae));}),_0x3c0a8c[_0xbdd404(0xe2)]===0x0&&_0xb57125['delete'](_0x10f638),_0xb57125[_0xbdd404(0xe2)]===0x0&&this[_0xbdd404(0x121)][_0xbdd404(0x14e)](_0x5bf3ad);}}['clearOtherFormulaDependency'](_0x215b14,_0x1a5a63){const _0x3f65dd=_0x599c19,_0x42af16=this[_0x3f65dd(0x121)][_0x3f65dd(0x160)](_0x215b14);if(_0x1a5a63&&_0x42af16&&_0x42af16['has'](_0x1a5a63)){const _0x21be0e=_0x42af16['get'](_0x1a5a63);this[_0x3f65dd(0xd3)](_0x215b14,_0x1a5a63);for(const _0x20d433 of _0x21be0e[_0x3f65dd(0x15d)]()){const _0x57cc16=_0x21be0e[_0x3f65dd(0x160)](_0x20d433);_0x57cc16!=null&&(_0x57cc16[_0x3f65dd(0x164)]((_0x1c4906,_0x2f5261,_0x12533b)=>{const _0x2ee90c=_0x3f65dd;this[_0x2ee90c(0xf0)][_0x2ee90c(0x160)](_0x12533b)&&this['_removeAllTreeMap'](_0x12533b);}),this['_otherFormulaDataMainData'][_0x3f65dd(0x14e)](_0x20d433));}_0x21be0e[_0x3f65dd(0x130)]();}else{if(_0x42af16){for(const _0x5030fb of _0x42af16[_0x3f65dd(0x15d)]()){const _0x46d993=_0x42af16[_0x3f65dd(0x160)](_0x5030fb);this[_0x3f65dd(0xd3)](_0x215b14,_0x5030fb);for(const _0x1b3ec8 of _0x46d993['keys']()){const _0x3ba360=_0x46d993[_0x3f65dd(0x160)](_0x1b3ec8);_0x3ba360!=null&&(_0x3ba360[_0x3f65dd(0x164)]((_0x5d63ad,_0x28ca8b,_0x328c89)=>{const _0x3fef3d=_0x3f65dd;this[_0x3fef3d(0xf0)][_0x3fef3d(0x160)](_0x328c89)&&this['_removeAllTreeMap'](_0x328c89);}),this[_0x3f65dd(0xdc)][_0x3f65dd(0x14e)](_0x1b3ec8));}}this['_otherFormulaData'][_0x3f65dd(0x14e)](_0x215b14);}}}[_0x599c19(0xd7)](_0x24176c,_0x3f193d,_0x3e172f,_0x1b0d90){const _0x501a16=_0x599c19;this[_0x501a16(0x114)][_0x501a16(0xf6)](_0x24176c)||this['_featureFormulaData'][_0x501a16(0x13b)](_0x24176c,new Map());const _0x49250a=this[_0x501a16(0x114)][_0x501a16(0x160)](_0x24176c);_0x49250a[_0x501a16(0xf6)](_0x3f193d)||_0x49250a[_0x501a16(0x13b)](_0x3f193d,new Map()),_0x49250a['get'](_0x3f193d)[_0x501a16(0x13b)](_0x3e172f,_0x1b0d90[_0x501a16(0x13c)]);}[_0x599c19(0xd1)](_0x5d4872,_0x324810,_0x1eef4b){const _0x11cc1c=_0x599c19,_0x157b87=this[_0x11cc1c(0x114)]['get'](_0x5d4872);if(_0x157b87&&_0x157b87[_0x11cc1c(0xf6)](_0x324810)){const _0x6b6ca6=_0x157b87[_0x11cc1c(0x160)](_0x324810);_0x1eef4b['forEach'](_0x424f4b=>{const _0x19cb00=_0x11cc1c,_0x4730c8=_0x6b6ca6['get'](_0x424f4b);_0x4730c8!=null&&(this[_0x19cb00(0x162)](_0x4730c8),_0x6b6ca6[_0x19cb00(0x14e)](_0x424f4b),this[_0x19cb00(0x11b)](_0x4730c8));});}}[_0x599c19(0x110)](_0x5e80f0,_0x3c586c){const _0x366151=_0x599c19,_0x52385e=this[_0x366151(0x114)][_0x366151(0x160)](_0x5e80f0);if(_0x3c586c&&_0x52385e&&_0x52385e['has'](_0x3c586c)){const _0x3824bf=_0x52385e[_0x366151(0x160)](_0x3c586c);this[_0x366151(0xd3)](_0x5e80f0,_0x3c586c),_0x3824bf['forEach'](_0x599266=>{const _0x1c10ae=_0x366151;_0x599266!=null&&this[_0x1c10ae(0x11b)](_0x599266);}),_0x3824bf[_0x366151(0x130)]();}else _0x52385e&&(_0x52385e[_0x366151(0x169)]((_0x2756f1,_0x411505)=>{const _0x4e4dfe=_0x366151;this[_0x4e4dfe(0xd3)](_0x5e80f0,_0x411505),_0x2756f1[_0x4e4dfe(0x169)](_0x3a34ac=>{const _0x303859=_0x4e4dfe;_0x3a34ac!=null&&this[_0x303859(0x11b)](_0x3a34ac);});}),this[_0x366151(0x114)][_0x366151(0x14e)](_0x5e80f0));}[_0x599c19(0x133)](_0x5d0fd0,_0x3be783,_0x25669d,_0x43764c,_0x29b4bf){const _0x2228d3=_0x599c19;this[_0x2228d3(0x138)][_0x2228d3(0xf6)](_0x5d0fd0)||this['_formulaData'][_0x2228d3(0x13b)](_0x5d0fd0,new Map());const _0x30a2fc=this[_0x2228d3(0x138)][_0x2228d3(0x160)](_0x5d0fd0);_0x30a2fc[_0x2228d3(0xf6)](_0x3be783)||_0x30a2fc[_0x2228d3(0x13b)](_0x3be783,new _0x4b3c1b()),_0x30a2fc[_0x2228d3(0x160)](_0x3be783)[_0x2228d3(0xdd)](_0x25669d,_0x43764c,_0x29b4bf[_0x2228d3(0x13c)]);}['removeFormulaDependency'](_0x3e41fd,_0x58b5b9,_0xa32444,_0x24f2bb){const _0xcf5438=_0x599c19,_0x52025b=this['_formulaData']['get'](_0x3e41fd);if(_0x52025b&&_0x52025b[_0xcf5438(0xf6)](_0x58b5b9)){const _0x2cd86d=_0x52025b[_0xcf5438(0x160)](_0x58b5b9),_0x4f82d2=_0x2cd86d[_0xcf5438(0xe7)](_0xa32444,_0x24f2bb);if(_0x4f82d2==null)return;this[_0xcf5438(0x162)](_0x4f82d2),_0x2cd86d[_0xcf5438(0x132)](_0xa32444,_0x24f2bb),this[_0xcf5438(0x11b)](_0x4f82d2);}}[_0x599c19(0xfc)](_0x50d030,_0x421bca){const _0x587a4d=_0x599c19,_0x543e7f=this[_0x587a4d(0x138)][_0x587a4d(0x160)](_0x50d030);if(_0x421bca&&_0x543e7f&&_0x543e7f[_0x587a4d(0xf6)](_0x421bca)){const _0x5f00db=_0x543e7f['get'](_0x421bca);this['_removeDependencyRTreeCacheById'](_0x50d030,_0x421bca),_0x5f00db[_0x587a4d(0x164)]((_0x15f479,_0x382b58,_0x46cc99)=>{if(_0x46cc99==null)return!0x0;this['_removeAllTreeMap'](_0x46cc99);}),_0x5f00db[_0x587a4d(0xfb)]();}else _0x543e7f&&(_0x543e7f[_0x587a4d(0x169)]((_0xdae25d,_0x1a71e6)=>{const _0xeff30d=_0x587a4d;this[_0xeff30d(0xd3)](_0x50d030,_0x1a71e6),_0xdae25d[_0xeff30d(0x164)]((_0x45acb2,_0x446f67,_0x3259f3)=>{const _0x19189f=_0xeff30d;if(_0x3259f3==null)return!0x0;this[_0x19189f(0x11b)](_0x3259f3);});}),this[_0x587a4d(0x138)][_0x587a4d(0x14e)](_0x50d030));}[_0x599c19(0x162)](_0x39ecf5){const _0x385c08=_0x599c19;if(_0x39ecf5==null)return;const _0x430c00=this[_0x385c08(0xf0)][_0x385c08(0x160)](_0x39ecf5);if(_0x430c00){const _0x5583ed=[];for(const [_0x3cc5e8,_0x300096]of _0x430c00)for(const [_0x4025cb,_0x19ad09]of _0x300096)_0x5583ed[_0x385c08(0xe8)]({'unitId':_0x3cc5e8,'sheetId':_0x4025cb,'range':_0x19ad09,'id':_0x39ecf5});this[_0x385c08(0x111)][_0x385c08(0xcc)](_0x5583ed);}}[_0x599c19(0x11d)](_0x25143b,_0x1362bf){const _0x4be19e=_0x599c19,_0x15d577=this[_0x4be19e(0xcf)]['get'](_0x25143b);if(_0x15d577){const _0x3db308=_0x15d577[_0x4be19e(0x160)](_0x1362bf);if(_0x3db308){for(const _0x14c0ed of _0x3db308)this[_0x4be19e(0x162)](_0x14c0ed),this[_0x4be19e(0x11b)](_0x14c0ed);_0x3db308['clear']();}}}[_0x599c19(0x143)](){const _0x2271a0=_0x599c19;this[_0x2271a0(0x111)][_0x2271a0(0x143)]();}['closeKdTree'](){const _0x3299d7=_0x599c19;this[_0x3299d7(0x111)][_0x3299d7(0x156)]();}[_0x599c19(0x11b)](_0x36435d){const _0xafa65c=_0x599c19;_0x36435d!=null&&this[_0xafa65c(0xf0)]['delete'](_0x36435d);}[_0x599c19(0x10e)](_0x5804de){const _0x2eecdd=_0x599c19;var _0x150346,_0x1e0442;const _0x1f37a4=_0x5804de['rangeList'];let _0x286ed5=this['_allTreeMap']['get'](_0x5804de[_0x2eecdd(0x13c)]);for(let _0x4354d0=0x0;_0x4354d0<_0x1f37a4[_0x2eecdd(0x10a)];_0x4354d0++){const _0x283551=_0x1f37a4[_0x4354d0];let {unitId:_0x5b907a,sheetId:_0x392dd4,range:_0x232655}=_0x283551;_0x286ed5||(_0x286ed5=new Map(),this[_0x2eecdd(0xf0)][_0x2eecdd(0x13b)](_0x5804de[_0x2eecdd(0x13c)],_0x286ed5)),_0x286ed5[_0x2eecdd(0xf6)](_0x5b907a)||_0x286ed5[_0x2eecdd(0x13b)](_0x5b907a,new Map());const _0x2f6620=(_0x150346=_0x286ed5==null?void 0x0:_0x286ed5[_0x2eecdd(0x160)](_0x5b907a))==null?void 0x0:_0x150346[_0x2eecdd(0x160)](_0x392dd4);_0x2f6620&&(_0x232655={'startRow':Math[_0x2eecdd(0xd4)](_0x232655[_0x2eecdd(0xe1)],_0x2f6620[_0x2eecdd(0xe1)]),'startColumn':Math[_0x2eecdd(0xd4)](_0x232655[_0x2eecdd(0x141)],_0x2f6620['startColumn']),'endRow':Math['max'](_0x232655[_0x2eecdd(0x102)],_0x2f6620[_0x2eecdd(0x102)]),'endColumn':Math[_0x2eecdd(0xf5)](_0x232655[_0x2eecdd(0x151)],_0x2f6620['endColumn'])}),(_0x1e0442=_0x286ed5[_0x2eecdd(0x160)](_0x5b907a))==null||_0x1e0442[_0x2eecdd(0x13b)](_0x392dd4,_0x232655);}}}var ue=Object['defineProperty'],de=Object[_0x599c19(0x115)],fe=(_0x91867d,_0x2a0c08,_0x48a596,_0x256d25)=>{const _0x446325=_0x599c19;for(var _0x143eb6=_0x256d25>0x1?void 0x0:_0x256d25?de(_0x2a0c08,_0x48a596):_0x2a0c08,_0x2f6d34=_0x91867d[_0x446325(0x10a)]-0x1,_0x1e1b25;_0x2f6d34>=0x0;_0x2f6d34--)(_0x1e1b25=_0x91867d[_0x2f6d34])&&(_0x143eb6=(_0x256d25?_0x1e1b25(_0x2a0c08,_0x48a596,_0x143eb6):_0x1e1b25(_0x143eb6))||_0x143eb6);return _0x256d25&&_0x143eb6&&ue(_0x2a0c08,_0x48a596,_0x143eb6),_0x143eb6;};let X=class extends _0x356632{[_0x599c19(0x137)](){const _0x4ccc92=_0x599c19;var _0x37382e,_0x2c2de0;this[_0x4ccc92(0x145)]()?(_0x37382e=this[_0x4ccc92(0x159)])!=null&&_0x37382e['notExecuteFormula']||[[_0x15e93a,{'useClass':le}],[_0x39140c,{'useClass':he}],[_0x10d993,{'useClass':oe}]][_0x4ccc92(0x169)](_0x44c256=>this['_injector']['add'](_0x44c256)):(_0x2c2de0=this[_0x4ccc92(0x159)])!=null&&_0x2c2de0[_0x4ccc92(0x135)]||[[_0x15e93a,{'useClass':_0xa99312}],[_0x39140c,{'useClass':_0x18d128}],[_0x10d993,{'useClass':_0x2df436}]][_0x4ccc92(0x169)](_0x43d9dd=>this[_0x4ccc92(0x15a)][_0x4ccc92(0x125)](_0x43d9dd));}['_initTimeValid'](){const _0x5b30b0=_0x599c19;var _0x281aa1;const _0x1821ea=(_0x281aa1=this[_0x5b30b0(0x157)][_0x5b30b0(0xd5)](_0x53b8b0))!=null?_0x281aa1:{},{ls:_0x43715c,pbk:_0x4be40d,tvld:_0x1e532e}=_0x1821ea;if(!_0x43715c||!_0x4be40d)return!0x1;const _0x3ce2a8=_0x4c8798(ie,se);return new Function('return\x20'+_0x3ce2a8)()(_0x43715c,_0x4be40d)[_0x5b30b0(0xf1)];}};X=fe([_0x515e59(_0x15c871)],X);export{X as UniverProFormulaEnginePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x18b6(_0x46d34d,_0x4e0f6b){const _0x124ceb=_0x124c();return _0x18b6=function(_0x18b6b1,_0x14bc2b){_0x18b6b1=_0x18b6b1-0xa5;let _0x5f4465=_0x124ceb[_0x18b6b1];return _0x5f4465;},_0x18b6(_0x46d34d,_0x4e0f6b);}function _0x124c(){const _0x993c74=['_executionInProgressListener$','@univerjs/engine-formula','100147kExRCr','node','next','setCompletedFormulasCount','_registerOtherFormulas','FEATURE_FORMULA','_dependencyRTreeCache','isSkip','_formulaDependencyGenerator','@univerjs-pro/license','START_CALCULATION','getDirtyRanges','UniverProFormulaEnginePlugin','pop','DependentOn','_restDependencyTreeId','_config','requestImmediateMacroTask','UniverCore','unitId','setRuntimeData','_createVirtualFDtree','addFeatureFormulaDependency','dispose','_otherFormulaDataMainData','_injector','defineProperty','_otherFormulaData','refOffsetX','return\x20','size','getClearDependencyTreeCache','delete','startColumn','564QZgqMY','startRow','unshiftString','formulaId','getOtherFormulaDependency','_otherFormulaManagerService','enableCycleDependency','isStopExecution','getOtherFormulaData','clear','addOtherFormulaDependency','UniverEngineFormula','setTotalArrayFormulasToCalculate','IFormulaDependencyGenerator','resolve','setFormulaExecuteStage','dependencySheetName','getOwnPropertyDescriptor','_featureFormulaData','_currentConfigService','featureId','531592UoNggm','_allTreeMap','_dependencyTreeCache','keys','rangeList','_initializeWithOverride','symbol','setValue','forValue','_isCyclicUtilMap','RTree','searchDependency','ObjectMatrix','FormulaDependencyGenerator','75779MxBLaI','clearFormulaDependency','get','clearOtherFormulaDependency','_traverse','isCache','CalculateFormulaService','toStringTag','14wXvMEl','removeOtherFormulaDependency','UniverLicense','_getUpdateTreeListAndMakeDependency','executeAsync','notExecuteFormula','_removeAllTreeMap','_apply','7506TYDeNC','_generateTreeList','amd','IDependencyManagerService','LS_CONFIG_KEY','row','refOffsetY','Module','_definedNameMap','getUnitData','add','markedAsNoFunctionsExecuted','_formulaData','columnCount','_dependencyManagerService','pushRangeList','endRow','_updateRangeFlatten','OTHER_FORMULA','treeId','_checkIsCycleDependency','808584cjdYqr','generateAstNode','_calculateRunList','clearFeatureFormulaDependency','valid','removeFeatureFormulaDependency','407790FCRVuh','getFeatureFormulaDependency','getFormulaDependency','_convertDirtyRangesToUnitRange','addDependencyRTreeCache','push','_runtimeService','_initTimeValid','subUnitId','function','isAdded','_lexer','generate','271758hASpaM','CURRENTLY_CALCULATING','ICalculateFormulaService','isDirty','min','setCompletedArrayFormulasCount','getValue','_getFeatureFormulaTree','_addAllTreeMap','getFormulaData','formula','type','_registerFeatureFormulas','length','removeFormulaDependencyByDefinedName','_removeDependencyRTreeCacheById','openKdTree','getDirtyData','forEach','setAdded','max','isForceCalculate','closeKdTree','_astTreeBuilder','setCurrent','getAllRuntimeData','_removeDependencyRTreeCache','set','addOtherFormulaDependencyMainData','addFormulaDependency','getExcludedRange','exports','3vrQcGa','5KwlQdo','endColumn','has','_getRangeListByNode','isExcludeRange','_executionCompleteListener$','NmxdqF8x\x20l9djt5qF8x(eFd9xv9,\x205mbeFdH9t)\x20{\x20\x20\x20\x20d8xvq\x20eFd9xv9CxN8M7jqYjj7t\x20=\x20eFd9xv9.v5eFq(\x27-\x27);\x20\x20\x20\x20d8xvq\x208jFIFxT9vv7I9\x20=\x20paiX.57jv9(7q8b(eFd9xv9CxN8M7jqYjj7t[f]));\x20\x20\x20\x20FN\x20(!8jFIFxT9vv7I9.ml)\x20{\x20\x20\x20\x20\x20\x20\x20\x208jFIFxT9vv7I9.ml\x20=\x20XmWb9j(eFd9xv9CxN8M7jqYjj7t[r]);\x20\x20\x20\x20}\x20\x20\x20\x20d8xvq\x20Fvh8jV9j\x20=\x20qt598N\x20h8jV9jBe8b7ead859\x20!==\x20\x27mxl9NFx9l\x27\x20&&\x20v9eN\x20Fxvq7xd98N\x20h8jV9jBe8b7ead859;\x20\x20\x20\x20d8xvq\x20d8xq9Gq\x20=\x20Fvh8jV9j\x20?\x20v9eN\x20:\x20KFxl8K;\x20\x20\x20\x20d8xvq\x20W9vv7I9h8jl\x20=\x20d8xq9Gq.__R7v9kr__.57jv9(eFd9xv9CxN8M7jqYjj7t[f]);\x20\x20\x20\x20d8xvq\x20W9vv7I9\x20=\x20d8xq9Gq.__P9G__.vqjFxIFNt(W9vv7I9h8jl);\x20\x20\x20\x20d8xvq\x20vFIx7qmj9h8jl\x20=\x20d8xq9Gq.__R7v9kr__.57jv9(eFd9xv9CxN8M7jqYjj7t[D]);\x20\x20\x20\x20d8xvq\x20vFIx7qmj9\x20=\x20d8xq9Gq.__P9G__.vqjFxIFNt(vFIx7qmj9h8jl);\x20\x20\x20\x20d8xvq\x20vFIxg7eFl\x20=\x20d8xq9Gq.__U9jFNt__(vFIx7qmj9,\x20W9vv7I9,\x205mbeFdH9t);\x20\x20\x20\x20d8xvq\x20l8W7Fx\x20=\x208jFIFxT9vv7I9.lW;\x20\x20\x20\x20NmxdqF8x\x20FvZ8W7FxT7qdLFxI(8M7qq9jx,\x208P8vq)\x20{\x20\x20\x20\x20\x20\x20\x20\x20d8xvq\x2057qq9jx\x20=\x208M7qq9jx.j95e7d9(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20d8xvq\x20L8vq\x20=\x208P8vq.j95e7d9(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20d8xvq\x2057qq9jxM7jqv\x20=\x2057qq9jx.v5eFq(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20d8xvq\x20L8vqM7jqv\x20=\x20L8vq.v5eFq(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20FN\x20(!57qq9jx.Fxdeml9v(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20j9qmjx\x2057qq9jx\x20===\x20L8vq;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20FN\x20(57qq9jxM7jqv.e9xIqL\x20<\x20f\x20||\x2057qq9jxM7jqv[J]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20j9qmjx\x20N7ev9;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20d8xvq\x2057qq9jxamNNFG\x20=\x2057qq9jxM7jqv.veFd9(3).o8Fx(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20d8xvq\x20L8vqamNNFG\x20=\x20L8vqM7jqv.veFd9(-57qq9jxM7jqv.e9xIqL\x20+\x203).o8Fx(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20j9qmjx\x2057qq9jxamNNFG\x20===\x20L8vqamNNFG;\x20\x20\x20\x20}\x20\x20\x20\x20e9q\x20l8W7Fxg7eFl\x20=\x20l8W7Fx?.e9xIqL\x20?\x20l8W7Fx.v8W9((lWCq9W)\x20=>\x20FvZ8W7FxT7qdLFxI(lWCq9W,\x20e8d7qF8x.L8vqx7W9))\x20:\x20qjm9;\x20\x20\x20\x20FN\x20(e8d7qF8x.L8vqx7W9\x20===\x20\x27e8d7eL8vq\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20l8W7Fxg7eFl\x20=\x20qjm9;\x20\x20\x20\x20}\x20\x20\x20\x20d8xvq\x20U7eFl\x20=\x20vFIxg7eFl\x20&&\x20l8W7Fxg7eFl;\x20\x20\x20\x20j9qmjx\x20{\x20\x20\x20\x20\x20\x20\x20\x20U7eFl,\x20W9vv7I9:\x208jFIFxT9vv7I9,\x20\x20\x20\x20};}','_registerFormulas','FormulaExecuteStageType','getConfig','1210ulrWem','generateRandomDependencyTreeId','refTree','_configService','UniverLicensePlugin','column','ParentDependencyTree\x20object\x20is\x20null','DEFAULT_INTERVAL_COUNT','dirtyRanges','_includeTree','realDeleteValue','reset','setSkip','_createFDtree','addFormulaDependencyByDefinedName','FormulaDependencyTreeType','isVirtual','rowCount'];_0x124c=function(){return _0x993c74;};return _0x124c();}(function(_0x30bd1b,_0x25d71f){const _0x35fa69=_0x18b6,_0x137975=_0x30bd1b();while(!![]){try{const _0x12ad1b=parseInt(_0x35fa69(0x101))/0x1+parseInt(_0x35fa69(0xb5))/0x2+parseInt(_0x35fa69(0xe2))/0x3*(-parseInt(_0x35fa69(0x138))/0x4)+parseInt(_0x35fa69(0xe3))/0x5*(-parseInt(_0x35fa69(0xc2))/0x6)+-parseInt(_0x35fa69(0x14e))/0x7*(-parseInt(_0x35fa69(0xaf))/0x8)+-parseInt(_0x35fa69(0x156))/0x9*(-parseInt(_0x35fa69(0xed))/0xa)+-parseInt(_0x35fa69(0x146))/0xb*(parseInt(_0x35fa69(0x123))/0xc);if(_0x12ad1b===_0x25d71f)break;else _0x137975['push'](_0x137975['shift']());}catch(_0x1df9e5){_0x137975['push'](_0x137975['shift']());}}}(_0x124c,0x19aa8),function(_0x48fa66,_0xdf9fdd){const _0x140fdc=_0x18b6;typeof exports=='object'&&typeof module<'u'?_0xdf9fdd(exports,require('@univerjs/core'),require(_0x140fdc(0x100)),require(_0x140fdc(0x10a))):typeof define==_0x140fdc(0xbe)&&define[_0x140fdc(0x158)]?define([_0x140fdc(0xe1),'@univerjs/core',_0x140fdc(0x100),_0x140fdc(0x10a)],_0xdf9fdd):(_0x48fa66=typeof globalThis<'u'?globalThis:_0x48fa66||self,_0xdf9fdd(_0x48fa66[_0x140fdc(0x12e)]={},_0x48fa66[_0x140fdc(0x113)],_0x48fa66[_0x140fdc(0x12e)],_0x48fa66[_0x140fdc(0x150)]));}(this,function(_0x50d52d,_0x543ef3,_0x251d86,_0x313da4){'use strict';const _0x26fc63=_0x18b6;var _0x3f0bf1=Object[_0x26fc63(0x11b)],_0x1085b3=(_0x3a1c4a,_0x3fc645,_0x2a4192)=>_0x3fc645 in _0x3a1c4a?_0x3f0bf1(_0x3a1c4a,_0x3fc645,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a4192}):_0x3a1c4a[_0x3fc645]=_0x2a4192,_0x1dd232=(_0x7a4641,_0x541645,_0x1cdd97)=>_0x1085b3(_0x7a4641,typeof _0x541645!=_0x26fc63(0x13e)?_0x541645+'':_0x541645,_0x1cdd97);const _0x3b2f47={0x0:'F',0x1:'8',0x2:'Y',0x3:'1',0x4:'C',0x5:'p',0x6:'7',0x7:'a',0x8:'o',0x9:'e','J':'0','f':'2','D':'3','r':'4','c':'5','k':'6','y':'9','b':'b','d':'c','l':'d','N':'f','I':'g','L':'h','F':'i','o':'j','V':'k','e':'l','W':'m','x':'n','n':'q','j':'r','v':'s','q':'t','m':'u','U':'v','K':'w','G':'x','t':'y','w':'z','Y':'A','R':'B','Z':'D','S':'E','B':'G','P':'H','C':'I','p':'J','H':'K','O':'L','T':'M','X':'N','i':'O','M':'P','E':'Q','z':'R','a':'S','u':'T','A':'U','g':'V','h':'W','Q':'X','s':'Z'},_0x3355fa=_0x26fc63(0xe9);class _0x3148f7 extends _0x251d86[_0x26fc63(0x145)]{constructor(){const _0x36f614=_0x26fc63;super(...arguments),_0x1dd232(this,_0x36f614(0x13a),new Map());}[_0x26fc63(0x118)](){const _0xabe001=_0x26fc63;super[_0xabe001(0x118)](),this['_dependencyTreeCache'][_0xabe001(0x12c)]();}async[_0x26fc63(0xc1)](){const _0x29b084=_0x26fc63;this[_0x29b084(0xab)]();const _0x4d862f=this[_0x29b084(0x136)][_0x29b084(0xcb)](),_0x16251d=this[_0x29b084(0x128)][_0x29b084(0x12b)](),_0x22557e=this['_currentConfigService'][_0x29b084(0x120)]();_0x22557e!=null&&Object['keys'](_0x22557e)[_0x29b084(0xd4)](_0x23dc27=>{const _0xc2e567=_0x29b084;_0x23dc27!=null&&Object[_0xc2e567(0x13b)](_0x22557e[_0x23dc27])['forEach'](_0x3d5aac=>{const _0x102bba=_0xc2e567;_0x3d5aac!=null&&(this['_dependencyManagerService'][_0x102bba(0x149)](_0x23dc27,_0x3d5aac),this['_dependencyManagerService'][_0x102bba(0xb2)](_0x23dc27,_0x3d5aac),this[_0x102bba(0xa8)][_0x102bba(0x147)](_0x23dc27,_0x3d5aac));});});const _0x8fdadd=this[_0x29b084(0x136)][_0x29b084(0x15f)]();await this[_0x29b084(0x157)](_0x4d862f,_0x16251d,_0x8fdadd),this['_dependencyManagerService'][_0x29b084(0xd2)]();const _0x24ece4=this[_0x29b084(0x151)](),_0x220828=this[_0x29b084(0xb1)](_0x24ece4);return this['_checkIsCycleDependency'](_0x220828)&&this['_runtimeService'][_0x29b084(0x129)](),this['_dependencyTreeCache']['clear'](),this[_0x29b084(0xa8)][_0x29b084(0xd8)](),Promise[_0x29b084(0x131)](_0x220828);}[_0x26fc63(0x141)](_0x8a5f82,_0x3fcba9){const _0x4e4217=_0x26fc63,_0x13bf46=[_0x8a5f82];for(;_0x13bf46['length']>0x0;){const _0x145b0d=_0x13bf46[_0x13bf46[_0x4e4217(0xcf)]-0x1];if((_0x3fcba9['get'](_0x145b0d)||0x0)===0x0){_0x3fcba9['set'](_0x145b0d,0x1);const _0x30088f=this[_0x4e4217(0x13a)]['get'](_0x145b0d);if(_0x30088f==null){_0x3fcba9['set'](_0x145b0d,0x2),_0x13bf46[_0x4e4217(0x10e)]();continue;}const _0x55ba99=this[_0x4e4217(0xa8)]['searchDependency'](_0x30088f['toRTreeItem']());for(const _0x287107 of _0x55ba99){const _0x26c34d=_0x3fcba9[_0x4e4217(0x148)](_0x287107)||0x0;if(_0x26c34d===0x1)return!0x0;_0x26c34d===0x0&&_0x13bf46['push'](_0x287107);}}else _0x3fcba9[_0x4e4217(0xdd)](_0x145b0d,0x2),_0x13bf46['pop']();}return!0x1;}[_0x26fc63(0xae)](_0x4fddff){const _0x5a5390=_0x26fc63,_0xd6d387=new Map();for(const _0x26fc01 of _0x4fddff)if(!_0xd6d387['has'](_0x26fc01['treeId'])&&this[_0x5a5390(0x141)](_0x26fc01[_0x5a5390(0xad)],_0xd6d387))return!0x0;return _0xd6d387[_0x5a5390(0x12c)](),!0x1;}async['_generateTreeList'](_0x1dbeae,_0x44cb3a,_0x518028){const _0x364375=_0x26fc63,_0x4b9688=Object[_0x364375(0x13b)](_0x1dbeae),_0x21ae0e=Object['keys'](_0x44cb3a),_0x367862=[];this[_0x364375(0x136)][_0x364375(0xd7)]()&&this[_0x364375(0xa8)][_0x364375(0xf8)](),this[_0x364375(0xea)](_0x4b9688,_0x1dbeae,_0x518028,_0x367862),this['_registerOtherFormulas'](_0x44cb3a,_0x21ae0e,_0x367862),this[_0x364375(0xce)](_0x367862);for(let _0x12b4ae=0x0,_0x212e86=_0x367862[_0x364375(0xcf)];_0x12b4ae<_0x212e86;_0x12b4ae++){const _0x132363=_0x367862[_0x12b4ae],_0x5c2adb=_0x251d86[_0x364375(0xb0)](_0x132363[_0x364375(0x114)],_0x132363[_0x364375(0xcc)],this[_0x364375(0xc0)],this[_0x364375(0xd9)],this[_0x364375(0x136)]);if(_0x132363[_0x364375(0xc5)]=this[_0x364375(0xf6)](_0x132363,_0x5c2adb),_0x132363[_0x364375(0xfd)])continue;this['_runtimeService'][_0x364375(0xda)](_0x132363[_0x364375(0x15b)],_0x132363[_0x364375(0xf2)],_0x132363[_0x364375(0xfe)],_0x132363['columnCount'],_0x132363[_0x364375(0xbd)],_0x132363['unitId']);const _0x2d543e=await this[_0x364375(0xe6)]({'node':_0x5c2adb,'refOffsetX':_0x132363[_0x364375(0x11d)],'refOffsetY':_0x132363[_0x364375(0x15c)]});_0x132363[_0x364375(0xa9)](_0x2d543e);}for(let _0x2f5eaf=0x0,_0x572e55=_0x367862[_0x364375(0xcf)];_0x2f5eaf<_0x572e55;_0x2f5eaf++){const _0x5bc6dc=_0x367862[_0x2f5eaf];_0x5bc6dc[_0x364375(0x14b)]||this[_0x364375(0xa8)][_0x364375(0xb9)](_0x5bc6dc);}return _0x367862;}[_0x26fc63(0xc9)](_0x6148f8,_0x205b80,_0x10f898){const _0x1d3217=_0x26fc63,{unitId:_0x3764dd,subUnitId:_0x4d7978,dependencyRanges:_0x46c069,getDirtyData:_0x3a0f8c}=_0x10f898,_0x5f5418=_0x205b80||_0x251d86[_0x1d3217(0xee)](this[_0x1d3217(0xa8)]),_0x566c11=new _0x251d86['FormulaDependencyTree'](_0x5f5418);_0x566c11['unitId']=_0x3764dd,_0x566c11['subUnitId']=_0x4d7978,_0x566c11[_0x1d3217(0x13c)]=_0x46c069,_0x566c11[_0x1d3217(0xd3)]=_0x3a0f8c;const _0x564944=_0x3a0f8c(this[_0x1d3217(0x136)][_0x1d3217(0xd3)](),this[_0x1d3217(0xbb)][_0x1d3217(0xdb)]()),_0x404cfe=this[_0x1d3217(0xb8)](_0x564944[_0x1d3217(0xf5)]);return _0x566c11['featureDirtyRanges']=_0x404cfe,_0x566c11[_0x1d3217(0x137)]=_0x6148f8,_0x566c11['type']=_0x251d86[_0x1d3217(0xfc)][_0x1d3217(0x106)],this['_dependencyManagerService']['addFeatureFormulaDependency'](_0x3764dd,_0x4d7978,_0x6148f8,_0x566c11),this[_0x1d3217(0x13a)]['set'](_0x566c11[_0x1d3217(0xad)],_0x566c11),this[_0x1d3217(0xa8)][_0x1d3217(0xb6)](_0x10f898[_0x1d3217(0x114)],_0x10f898['subUnitId'],_0x6148f8)&&(_0x566c11[_0x1d3217(0x14b)]=!0x0),_0x566c11;}[_0x26fc63(0x105)](_0x16535b,_0x311382,_0xb1710f){const _0x388d81=_0x26fc63;for(const _0xb54237 of _0x311382){const _0x592d0a=_0x16535b[_0xb54237];if(_0x592d0a==null)continue;const _0x41c038=Object[_0x388d81(0x13b)](_0x592d0a);for(const _0x532f95 of _0x41c038){const _0x423666=_0x592d0a[_0x532f95];if(_0x423666==null)continue;const _0x4f0a9a=Object[_0x388d81(0x13b)](_0x423666);for(const _0x41f17e of _0x4f0a9a){const _0x4b3ff5=this[_0x388d81(0xa8)]['hasOtherFormulaDataMainData'](_0x41f17e),_0x48f15f=_0x423666[_0x41f17e],{f:_0x2aad94,ranges:_0x2c5ad4}=_0x48f15f;let _0x479fec=!0x1;_0x4b3ff5&&(_0x479fec=!0x0);const {firstRow:_0x33f5f7,firstColumn:_0x205791}=this['_getFirstCellOfRange'](_0x2c5ad4),_0x9f106d=this[_0x388d81(0xa8)][_0x388d81(0x127)](_0xb54237,_0x532f95,_0x41f17e),_0x5342c4=(_0x9f106d==null?void 0x0:_0x9f106d[_0x388d81(0xc8)](0x0,0x0))||_0x251d86[_0x388d81(0xee)](this[_0x388d81(0xa8)]),_0x21c063=new _0x251d86['FormulaDependencyTree'](_0x5342c4);for(let _0x5025c3=0x0;_0x5025c3<_0x2c5ad4['length'];_0x5025c3++){const _0x4de0f2=_0x2c5ad4[_0x5025c3],{startRow:_0x44777c,startColumn:_0x337cf9,endRow:_0x4c2a77,endColumn:_0x39019b}=_0x4de0f2;for(let _0x1000f3=_0x44777c;_0x1000f3<=_0x4c2a77;_0x1000f3++)for(let _0x4dee02=_0x337cf9;_0x4dee02<=_0x39019b;_0x4dee02++){const _0x3b4c6f=_0x4dee02-_0x205791,_0xb190f=_0x1000f3-_0x33f5f7;if(_0x3b4c6f===0x0&&_0xb190f===0x0){_0x21c063['formula']=_0x2aad94,_0x21c063[_0x388d81(0x114)]=_0xb54237,_0x21c063[_0x388d81(0xbd)]=_0x532f95,_0x21c063[_0x388d81(0x126)]=_0x41f17e,_0x21c063[_0x388d81(0xcd)]=_0x251d86['FormulaDependencyTreeType'][_0x388d81(0xac)],_0x21c063[_0x388d81(0x14b)]=_0x479fec,_0xb1710f['push'](_0x21c063),this[_0x388d81(0x13a)][_0x388d81(0xdd)](_0x21c063[_0x388d81(0xad)],_0x21c063),this[_0x388d81(0xa8)][_0x388d81(0x12d)](_0xb54237,_0x532f95,_0x41f17e,_0x21c063),this[_0x388d81(0xa8)][_0x388d81(0xfb)](_0x21c063);continue;}const _0x165043=new _0x251d86['FormulaDependencyTreeVirtual']();_0x165043[_0x388d81(0xad)]=(_0x9f106d==null?void 0x0:_0x9f106d[_0x388d81(0xc8)](_0x3b4c6f,_0xb190f))||_0x251d86['generateRandomDependencyTreeId'](this['_dependencyManagerService']),_0x165043[_0x388d81(0xef)]=_0x21c063,_0x165043[_0x388d81(0x11d)]=_0x3b4c6f,_0x165043[_0x388d81(0x15c)]=_0xb190f,_0x165043[_0x388d81(0x14b)]=_0x479fec,this[_0x388d81(0xa8)]['addOtherFormulaDependency'](_0xb54237,_0x532f95,_0x41f17e,_0x165043),this['_dependencyManagerService']['addFormulaDependencyByDefinedName'](_0x165043),_0xb1710f['push'](_0x165043),this[_0x388d81(0x13a)]['set'](_0x165043[_0x388d81(0xad)],_0x165043);}}this['_dependencyManagerService'][_0x388d81(0xde)](_0x41f17e);}}}}['_registerFormulas'](_0x562fa8,_0x402fbe,_0x191024,_0x59fab7){const _0x2e7cee=_0x26fc63;for(const _0x20c827 of _0x562fa8){const _0x2acfcd=_0x402fbe[_0x20c827];if(_0x2acfcd==null)continue;const _0x1dd6c9=Object['keys'](_0x2acfcd);for(const _0x1b9aef of _0x1dd6c9){const _0x40f884=new _0x543ef3[(_0x2e7cee(0x144))](_0x2acfcd[_0x1b9aef]||{}),_0x5bd850=new Map();_0x40f884[_0x2e7cee(0x140)]((_0x34cae2,_0x591794,_0x5a2b50)=>{const _0x1e0499=_0x2e7cee;if(_0x5a2b50==null)return!0x0;const {x:_0x280c09=0x0,y:_0x40c61b=0x0,si:_0x46e597}=_0x5a2b50;if(!(_0x280c09===0x0&&_0x40c61b===0x0&&_0x46e597!=null))return!0x0;const _0x88dece=this['_createFDtree'](_0x20c827,_0x1b9aef,_0x34cae2,_0x591794,_0x191024,_0x5a2b50),_0xc015de=this[_0x1e0499(0xa8)][_0x1e0499(0xb7)](_0x20c827,_0x1b9aef,_0x34cae2,_0x591794);_0xc015de!=null?_0x88dece['treeId']=_0xc015de:(this[_0x1e0499(0xa8)][_0x1e0499(0xdf)](_0x20c827,_0x1b9aef,_0x34cae2,_0x591794,_0x88dece),this[_0x1e0499(0xa8)][_0x1e0499(0xfb)](_0x88dece)),_0x5bd850[_0x1e0499(0xdd)](_0x46e597,_0x88dece),_0x59fab7[_0x1e0499(0xba)](_0x88dece),this[_0x1e0499(0x13a)][_0x1e0499(0xdd)](_0x88dece[_0x1e0499(0xad)],_0x88dece);}),_0x40f884[_0x2e7cee(0x140)]((_0x2c2663,_0x1c833b,_0x5d0ef9)=>{const _0x35d8c2=_0x2e7cee;if(_0x5d0ef9==null)return!0x0;const {x:_0x3c6118=0x0,y:_0x535626=0x0,si:_0x3428f2}=_0x5d0ef9;if(_0x3c6118===0x0&&_0x535626===0x0&&_0x3428f2!=null)return!0x0;let _0x1de8a1;if(_0x3428f2&&_0x5bd850[_0x35d8c2(0xe5)](_0x3428f2)){const _0x2fad4c=_0x5bd850['get'](_0x3428f2);_0x1de8a1=this[_0x35d8c2(0x116)](_0x2fad4c,_0x5d0ef9);}else _0x1de8a1=this[_0x35d8c2(0xfa)](_0x20c827,_0x1b9aef,_0x2c2663,_0x1c833b,_0x191024,_0x5d0ef9);const _0x119c5c=this[_0x35d8c2(0xa8)][_0x35d8c2(0xb7)](_0x20c827,_0x1b9aef,_0x2c2663,_0x1c833b);_0x119c5c!=null?_0x1de8a1[_0x35d8c2(0xad)]=_0x119c5c:(this[_0x35d8c2(0xa8)]['addFormulaDependency'](_0x20c827,_0x1b9aef,_0x2c2663,_0x1c833b,_0x1de8a1),this[_0x35d8c2(0xa8)][_0x35d8c2(0xfb)](_0x1de8a1)),_0x59fab7[_0x35d8c2(0xba)](_0x1de8a1),this[_0x35d8c2(0x13a)][_0x35d8c2(0xdd)](_0x1de8a1[_0x35d8c2(0xad)],_0x1de8a1);}),_0x5bd850['clear']();}}}['_createFDtree'](_0x200b56,_0x16576b,_0x354ec7,_0x4fe7b1,_0x5f5239,_0x298079){const _0x4eb0e4=_0x26fc63,{f:_0x57310b,x:_0x597d6c=0x0,y:_0xec68d4=0x0}=_0x298079,_0x5af331=new _0x251d86['FormulaDependencyTree'](_0x251d86[_0x4eb0e4(0xee)](this[_0x4eb0e4(0xa8)])),_0xbee8e8=_0x5f5239[_0x200b56][_0x16576b];return _0x5af331[_0x4eb0e4(0xcc)]=_0x57310b,_0x5af331[_0x4eb0e4(0x114)]=_0x200b56,_0x5af331[_0x4eb0e4(0xbd)]=_0x16576b,_0x5af331[_0x4eb0e4(0x15b)]=_0x354ec7,_0x5af331[_0x4eb0e4(0xf2)]=_0x4fe7b1,_0x5af331['rowCount']=_0xbee8e8[_0x4eb0e4(0xfe)],_0x5af331[_0x4eb0e4(0xa7)]=_0xbee8e8[_0x4eb0e4(0xa7)],_0x5af331;}[_0x26fc63(0x151)](){const _0xac84d2=_0x26fc63,_0x5aca16=[],_0x215e9c=new Set(),_0x2702a4=this[_0xac84d2(0x136)]['isForceCalculate'](),_0x151d8a=this[_0xac84d2(0x136)][_0xac84d2(0x10c)](),_0x9a20e=this[_0xac84d2(0xa8)][_0xac84d2(0x143)](_0x151d8a);for(const [_0x4a730a,_0x3ba09a]of this['_dependencyTreeCache'])(_0x2702a4||_0x3ba09a[_0xac84d2(0xc5)]||_0x3ba09a[_0xac84d2(0x133)](this[_0xac84d2(0x136)]['getDirtyNameMap']())||_0x9a20e['has'](_0x4a730a)&&!_0x3ba09a[_0xac84d2(0xe7)](this[_0xac84d2(0x136)][_0xac84d2(0xe0)]()))&&!_0x215e9c[_0xac84d2(0xe5)](_0x4a730a)&&(_0x5aca16[_0xac84d2(0xba)](_0x3ba09a),_0x215e9c[_0xac84d2(0x160)](_0x4a730a));for(const [_0x4004d5,_0x2c38ad]of this['_dependencyTreeCache'])_0x2c38ad[_0xac84d2(0xfd)]||(_0x2c38ad[_0xac84d2(0x13c)][_0xac84d2(0xcf)]=0x0);return _0x5aca16;}*[_0x26fc63(0x14a)](_0x36d3e3,_0x44a1f2){const _0x1f6710=_0x26fc63,_0x3f85a7=_0x36d3e3,_0x608f33=new Set();for(;_0x3f85a7[_0x1f6710(0xcf)]>0x0;){const _0x2f66ca=_0x3f85a7[_0x1f6710(0x10e)]();if(_0x608f33[_0x1f6710(0x12c)](),_0x2f66ca===void 0x0||_0x2f66ca[_0x1f6710(0x108)]())continue;if(_0x2f66ca['isAdded']()){yield _0x2f66ca,_0x2f66ca['setSkip'](),_0x44a1f2[_0x1f6710(0x160)](_0x2f66ca[_0x1f6710(0xad)]);continue;}const _0x4e1bb4=this[_0x1f6710(0xa8)]['searchDependency'](_0x2f66ca['toRTreeItem'](),_0x44a1f2);for(const _0x3f8966 of _0x4e1bb4){const _0x1b8db0=this[_0x1f6710(0x13a)][_0x1f6710(0x148)](_0x3f8966);if(!_0x1b8db0)throw new Error(_0x1f6710(0xf3));_0x1b8db0[_0x1f6710(0xbf)]()||_0x2f66ca[_0x1f6710(0x108)]()||_0x608f33['add'](_0x1b8db0);}if(_0x4e1bb4[_0x1f6710(0x12c)](),_0x608f33[_0x1f6710(0x11f)]===0x0)yield _0x2f66ca,_0x2f66ca[_0x1f6710(0xf9)](),_0x44a1f2[_0x1f6710(0x160)](_0x2f66ca['treeId']);else{_0x2f66ca[_0x1f6710(0xd5)](),_0x3f85a7[_0x1f6710(0xba)](_0x2f66ca);for(const _0x4d46ea of _0x608f33)_0x3f85a7[_0x1f6710(0xba)](_0x4d46ea);}}_0x3f85a7[_0x1f6710(0xcf)]=0x0,_0x608f33[_0x1f6710(0x12c)]();}['_calculateRunList'](_0x198540){const _0x3083e2=_0x26fc63,_0x2f7d6e=[],_0xbb3a67=new Set();for(const _0xaa979 of this[_0x3083e2(0x14a)](_0x198540,_0xbb3a67))_0x2f7d6e[_0x3083e2(0xba)](_0xaa979);return _0x2f7d6e;}}class _0x27c198 extends _0x251d86[_0x26fc63(0x14c)]{async[_0x26fc63(0x155)](_0x2ba48a=!0x1){const _0x1b50c8=_0x26fc63;_0x2ba48a?this[_0x1b50c8(0xbb)][_0x1b50c8(0x132)](_0x251d86['FormulaExecuteStageType']['START_DEPENDENCY_ARRAY_FORMULA']):this[_0x1b50c8(0xbb)]['setFormulaExecuteStage'](_0x251d86[_0x1b50c8(0xeb)]['START_DEPENDENCY']),this[_0x1b50c8(0xff)][_0x1b50c8(0x103)](this[_0x1b50c8(0xbb)]['getRuntimeState']());const _0xc96e90=await this[_0x1b50c8(0x109)]['generate'](),_0xdaf015=this['_interpreter'];_0x2ba48a?(this[_0x1b50c8(0xbb)][_0x1b50c8(0x132)](_0x251d86[_0x1b50c8(0xeb)]['START_CALCULATION_ARRAY_FORMULA']),this[_0x1b50c8(0xbb)][_0x1b50c8(0x12f)](_0xc96e90[_0x1b50c8(0xcf)])):(this['_runtimeService'][_0x1b50c8(0x132)](_0x251d86[_0x1b50c8(0xeb)][_0x1b50c8(0x10b)]),this[_0x1b50c8(0xbb)]['setTotalFormulasToCalculate'](_0xc96e90['length'])),this[_0x1b50c8(0xff)][_0x1b50c8(0x103)](this[_0x1b50c8(0xbb)]['getRuntimeState']());let _0x3803eb=[];const _0x2e7ceb=this[_0x1b50c8(0xf0)][_0x1b50c8(0xec)](_0x251d86['PLUGIN_CONFIG_KEY']),_0x3ddf5e=(_0x2e7ceb==null?void 0x0:_0x2e7ceb['intervalCount'])||_0x251d86[_0x1b50c8(0xf4)];let _0x2df306=0x0;const _0x4bd416=_0xc96e90['length'];for(;_0xc96e90['length']>0x0;){const _0x2f6790=_0xc96e90['pop'](),_0x5c61d0={'node':_0x251d86[_0x1b50c8(0xb0)](_0x2f6790[_0x1b50c8(0x114)],_0x2f6790['formula'],this['_lexer'],this[_0x1b50c8(0xd9)],this[_0x1b50c8(0x136)]),'refOffsetX':_0x2f6790[_0x1b50c8(0x11d)],'refOffsetY':_0x2f6790[_0x1b50c8(0x15c)]},_0x3bc182=_0x2f6790['getDirtyData'];if(_0x2df306%_0x3ddf5e===0x0&&(await new Promise(_0x195e27=>{const _0x871f0a=_0x1b50c8,_0x1375b8=_0x543ef3[_0x871f0a(0x112)](_0x195e27);_0x3803eb[_0x871f0a(0xba)](_0x1375b8);}),_0x2ba48a?(this[_0x1b50c8(0xbb)][_0x1b50c8(0x132)](_0x251d86[_0x1b50c8(0xeb)]['CURRENTLY_CALCULATING_ARRAY_FORMULA']),this[_0x1b50c8(0xbb)][_0x1b50c8(0xc7)](_0x2df306+0x1)):(this['_runtimeService'][_0x1b50c8(0x132)](_0x251d86[_0x1b50c8(0xeb)][_0x1b50c8(0xc3)]),this[_0x1b50c8(0xbb)][_0x1b50c8(0x104)](_0x2df306+0x1)),this[_0x1b50c8(0xff)]['next'](this[_0x1b50c8(0xbb)]['getRuntimeState']()),this[_0x1b50c8(0xbb)][_0x1b50c8(0x12a)]()||_0x5c61d0==null&&_0x3bc182==null)){this[_0x1b50c8(0xbb)][_0x1b50c8(0x132)](_0x251d86[_0x1b50c8(0xeb)]['IDLE']),this[_0x1b50c8(0xbb)]['markedAsStopFunctionsExecuted'](),this[_0x1b50c8(0xe8)][_0x1b50c8(0x103)](this[_0x1b50c8(0xbb)][_0x1b50c8(0xdb)]());return;}this[_0x1b50c8(0xbb)][_0x1b50c8(0xda)](_0x2f6790[_0x1b50c8(0x15b)],_0x2f6790[_0x1b50c8(0xf2)],_0x2f6790[_0x1b50c8(0xfe)],_0x2f6790[_0x1b50c8(0xa7)],_0x2f6790[_0x1b50c8(0xbd)],_0x2f6790[_0x1b50c8(0x114)]);let _0x3b3422;if(_0x3bc182!=null&&_0x2f6790['featureId']!=null){const {runtimeCellData:_0x4f374f,dirtyRanges:_0x35264a}=_0x3bc182(this['_currentConfigService'][_0x1b50c8(0xd3)](),this[_0x1b50c8(0xbb)]['getAllRuntimeData']());this[_0x1b50c8(0xbb)]['setRuntimeFeatureCellData'](_0x2f6790[_0x1b50c8(0x137)],_0x4f374f),this['_runtimeService']['setRuntimeFeatureRange'](_0x2f6790[_0x1b50c8(0x137)],_0x35264a);}else _0x5c61d0!=null&&(_0xdaf015['checkAsyncNode'](_0x5c61d0[_0x1b50c8(0x102)])?_0x3b3422=await _0xdaf015[_0x1b50c8(0x152)](_0x5c61d0):_0x3b3422=_0xdaf015['execute'](_0x5c61d0),_0x2f6790[_0x1b50c8(0x126)]!=null?this['_runtimeService']['setRuntimeOtherData'](_0x2f6790[_0x1b50c8(0x126)],_0x2f6790[_0x1b50c8(0x11d)],_0x2f6790[_0x1b50c8(0x15c)],_0x3b3422):this['_runtimeService'][_0x1b50c8(0x115)](_0x3b3422));_0x2df306++;}return _0x3803eb[_0x1b50c8(0xd4)](_0x49372f=>_0x49372f()),_0x3803eb=[],_0x4bd416>0x0?this[_0x1b50c8(0xbb)]['markedAsSuccessfullyExecuted']():_0x2ba48a||this[_0x1b50c8(0xbb)][_0x1b50c8(0xa5)](),this['_runtimeService']['getAllRuntimeData']();}}class _0xfe4d1a extends _0x251d86['DependencyManagerBaseService']{constructor(){const _0x8f2520=_0x26fc63;super(...arguments),_0x1dd232(this,_0x8f2520(0x139),new Map()),_0x1dd232(this,_0x8f2520(0x107),new _0x543ef3[(_0x8f2520(0x142))](!0x0));}[_0x26fc63(0xf8)](){const _0x436df0=_0x26fc63;this['_otherFormulaData'][_0x436df0(0x12c)](),this[_0x436df0(0x135)][_0x436df0(0x12c)](),this['_formulaData']['clear'](),this['_dependencyRTreeCache'][_0x436df0(0x12c)](),this['_allTreeMap'][_0x436df0(0x12c)](),this[_0x436df0(0x110)](),this[_0x436df0(0x119)]['clear']();}['addOtherFormulaDependency'](_0x51bf3c,_0x443f60,_0x50ff9e,_0x33874b){const _0x9fdbb1=_0x26fc63;this[_0x9fdbb1(0x11c)]['has'](_0x51bf3c)||this[_0x9fdbb1(0x11c)]['set'](_0x51bf3c,new Map());const _0x27416f=this[_0x9fdbb1(0x11c)]['get'](_0x51bf3c);_0x27416f['has'](_0x443f60)||_0x27416f['set'](_0x443f60,new Map());const _0xf33215=_0x27416f[_0x9fdbb1(0x148)](_0x443f60);_0xf33215[_0x9fdbb1(0xe5)](_0x50ff9e)||_0xf33215['set'](_0x50ff9e,new _0x543ef3[(_0x9fdbb1(0x144))]()),_0xf33215['get'](_0x50ff9e)[_0x9fdbb1(0x13f)](_0x33874b['refOffsetX'],_0x33874b[_0x9fdbb1(0x15c)],_0x33874b[_0x9fdbb1(0xad)]);}[_0x26fc63(0x14f)](_0x51a97d,_0x413485,_0x381119){const _0xdf149d=_0x26fc63,_0x44f435=this[_0xdf149d(0x11c)]['get'](_0x51a97d);if(_0x44f435&&_0x44f435[_0xdf149d(0xe5)](_0x413485)){const _0x2b4f8d=_0x44f435[_0xdf149d(0x148)](_0x413485);_0x381119[_0xdf149d(0xd4)](_0x2d29f7=>{const _0x26f21e=_0xdf149d,_0x15e7db=_0x2b4f8d[_0x26f21e(0x148)](_0x2d29f7);_0x15e7db!=null&&(_0x15e7db['forValue']((_0x34d910,_0x1c4f0c,_0xbde10c)=>{const _0x1c8359=_0x26f21e;this['_removeDependencyRTreeCache'](_0xbde10c),this[_0x1c8359(0x154)](_0xbde10c);}),_0x2b4f8d[_0x26f21e(0x121)](_0x2d29f7),this[_0x26f21e(0x119)][_0x26f21e(0x121)](_0x2d29f7));}),_0x2b4f8d[_0xdf149d(0x11f)]===0x0&&_0x44f435[_0xdf149d(0x121)](_0x413485),_0x44f435[_0xdf149d(0x11f)]===0x0&&this[_0xdf149d(0x11c)][_0xdf149d(0x121)](_0x51a97d);}}[_0x26fc63(0x149)](_0x394bf1,_0x297af8){const _0x4e12ad=_0x26fc63,_0x41a1af=this['_otherFormulaData'][_0x4e12ad(0x148)](_0x394bf1);if(_0x297af8&&_0x41a1af&&_0x41a1af[_0x4e12ad(0xe5)](_0x297af8)){const _0x8ea03d=_0x41a1af[_0x4e12ad(0x148)](_0x297af8);this[_0x4e12ad(0xd1)](_0x394bf1,_0x297af8);for(const _0x2c9e68 of _0x8ea03d[_0x4e12ad(0x13b)]()){const _0x1628a7=_0x8ea03d[_0x4e12ad(0x148)](_0x2c9e68);_0x1628a7!=null&&(_0x1628a7[_0x4e12ad(0x140)]((_0x18fa3c,_0x385215,_0x3d09f6)=>{const _0x37931=_0x4e12ad;this[_0x37931(0x139)][_0x37931(0x148)](_0x3d09f6)&&this[_0x37931(0x154)](_0x3d09f6);}),this['_otherFormulaDataMainData']['delete'](_0x2c9e68));}_0x8ea03d[_0x4e12ad(0x12c)]();}else{if(_0x41a1af){for(const _0x521d4d of _0x41a1af[_0x4e12ad(0x13b)]()){const _0x3e32bd=_0x41a1af[_0x4e12ad(0x148)](_0x521d4d);this[_0x4e12ad(0xd1)](_0x394bf1,_0x521d4d);for(const _0x58c7fc of _0x3e32bd[_0x4e12ad(0x13b)]()){const _0x5a2041=_0x3e32bd[_0x4e12ad(0x148)](_0x58c7fc);_0x5a2041!=null&&(_0x5a2041['forValue']((_0x563b78,_0x4f09eb,_0x4734a6)=>{const _0x2c1c92=_0x4e12ad;this[_0x2c1c92(0x139)]['get'](_0x4734a6)&&this[_0x2c1c92(0x154)](_0x4734a6);}),this[_0x4e12ad(0x119)]['delete'](_0x58c7fc));}}this[_0x4e12ad(0x11c)][_0x4e12ad(0x121)](_0x394bf1);}}}[_0x26fc63(0x117)](_0xf5b2f9,_0x3541e7,_0x3f5088,_0x435f8d){const _0x3857da=_0x26fc63;this[_0x3857da(0x135)][_0x3857da(0xe5)](_0xf5b2f9)||this['_featureFormulaData']['set'](_0xf5b2f9,new Map());const _0xb53b4f=this[_0x3857da(0x135)][_0x3857da(0x148)](_0xf5b2f9);_0xb53b4f['has'](_0x3541e7)||_0xb53b4f[_0x3857da(0xdd)](_0x3541e7,new Map()),_0xb53b4f[_0x3857da(0x148)](_0x3541e7)[_0x3857da(0xdd)](_0x3f5088,_0x435f8d[_0x3857da(0xad)]);}[_0x26fc63(0xb4)](_0x311c83,_0x3cd3aa,_0x510297){const _0x68a0d1=_0x26fc63,_0x261059=this[_0x68a0d1(0x135)][_0x68a0d1(0x148)](_0x311c83);if(_0x261059&&_0x261059[_0x68a0d1(0xe5)](_0x3cd3aa)){const _0x17a2b4=_0x261059[_0x68a0d1(0x148)](_0x3cd3aa);_0x510297[_0x68a0d1(0xd4)](_0x1e905f=>{const _0xd563d4=_0x68a0d1,_0x17ac5b=_0x17a2b4[_0xd563d4(0x148)](_0x1e905f);_0x17ac5b!=null&&(this[_0xd563d4(0xdc)](_0x17ac5b),_0x17a2b4[_0xd563d4(0x121)](_0x1e905f),this[_0xd563d4(0x154)](_0x17ac5b));});}}[_0x26fc63(0xb2)](_0x2a9c03,_0xc59131){const _0x5071e1=_0x26fc63,_0x11da37=this[_0x5071e1(0x135)]['get'](_0x2a9c03);if(_0xc59131&&_0x11da37&&_0x11da37[_0x5071e1(0xe5)](_0xc59131)){const _0x2871e1=_0x11da37[_0x5071e1(0x148)](_0xc59131);this[_0x5071e1(0xd1)](_0x2a9c03,_0xc59131),_0x2871e1[_0x5071e1(0xd4)](_0x1b0049=>{const _0x5b12b0=_0x5071e1;_0x1b0049!=null&&this[_0x5b12b0(0x154)](_0x1b0049);}),_0x2871e1['clear']();}else _0x11da37&&(_0x11da37[_0x5071e1(0xd4)]((_0x502908,_0x1a1a98)=>{const _0x46241a=_0x5071e1;this[_0x46241a(0xd1)](_0x2a9c03,_0x1a1a98),_0x502908[_0x46241a(0xd4)](_0x372540=>{const _0x1686b0=_0x46241a;_0x372540!=null&&this[_0x1686b0(0x154)](_0x372540);});}),this[_0x5071e1(0x135)][_0x5071e1(0x121)](_0x2a9c03));}[_0x26fc63(0xdf)](_0x3359e3,_0xa08d43,_0x16ddba,_0x1b790d,_0x2446c6){const _0x438b86=_0x26fc63;this[_0x438b86(0xa6)][_0x438b86(0xe5)](_0x3359e3)||this[_0x438b86(0xa6)][_0x438b86(0xdd)](_0x3359e3,new Map());const _0x55eea3=this[_0x438b86(0xa6)][_0x438b86(0x148)](_0x3359e3);_0x55eea3[_0x438b86(0xe5)](_0xa08d43)||_0x55eea3[_0x438b86(0xdd)](_0xa08d43,new _0x543ef3[(_0x438b86(0x144))]()),_0x55eea3[_0x438b86(0x148)](_0xa08d43)[_0x438b86(0x13f)](_0x16ddba,_0x1b790d,_0x2446c6[_0x438b86(0xad)]);}['removeFormulaDependency'](_0x1e739d,_0x390862,_0x2e79d6,_0x2aaf2a){const _0x39e813=_0x26fc63,_0x4956f4=this['_formulaData']['get'](_0x1e739d);if(_0x4956f4&&_0x4956f4['has'](_0x390862)){const _0x1a4514=_0x4956f4[_0x39e813(0x148)](_0x390862),_0x88fb80=_0x1a4514['getValue'](_0x2e79d6,_0x2aaf2a);if(_0x88fb80==null)return;this[_0x39e813(0xdc)](_0x88fb80),_0x1a4514[_0x39e813(0xf7)](_0x2e79d6,_0x2aaf2a),this[_0x39e813(0x154)](_0x88fb80);}}[_0x26fc63(0x147)](_0x318424,_0x3d6704){const _0x56a5c6=_0x26fc63,_0x3322df=this['_formulaData'][_0x56a5c6(0x148)](_0x318424);if(_0x3d6704&&_0x3322df&&_0x3322df[_0x56a5c6(0xe5)](_0x3d6704)){const _0x2d8b92=_0x3322df['get'](_0x3d6704);this[_0x56a5c6(0xd1)](_0x318424,_0x3d6704),_0x2d8b92[_0x56a5c6(0x140)]((_0x420b1d,_0x3b31ab,_0x3d14fb)=>{const _0x30a74c=_0x56a5c6;if(_0x3d14fb==null)return!0x0;this[_0x30a74c(0x154)](_0x3d14fb);}),_0x2d8b92[_0x56a5c6(0xf8)]();}else _0x3322df&&(_0x3322df[_0x56a5c6(0xd4)]((_0x26e28c,_0x30a6f4)=>{const _0x476ff2=_0x56a5c6;this[_0x476ff2(0xd1)](_0x318424,_0x30a6f4),_0x26e28c[_0x476ff2(0x140)]((_0x26eadf,_0x770579,_0x4e7fdd)=>{const _0x389502=_0x476ff2;if(_0x4e7fdd==null)return!0x0;this[_0x389502(0x154)](_0x4e7fdd);});}),this[_0x56a5c6(0xa6)][_0x56a5c6(0x121)](_0x318424));}[_0x26fc63(0xdc)](_0x48fb20){const _0xb813b3=_0x26fc63;if(_0x48fb20==null)return;const _0x4dfed5=this[_0xb813b3(0x139)][_0xb813b3(0x148)](_0x48fb20);if(_0x4dfed5){const _0x3375be=[];for(const [_0x43b539,_0x33d02f]of _0x4dfed5)for(const [_0x3fc069,_0x363fa4]of _0x33d02f)_0x3375be[_0xb813b3(0xba)]({'unitId':_0x43b539,'sheetId':_0x3fc069,'range':_0x363fa4,'id':_0x48fb20});this[_0xb813b3(0x107)]['bulkRemove'](_0x3375be);}}[_0x26fc63(0xd0)](_0x36f528,_0x205aa6){const _0x470cfb=_0x26fc63,_0x2b777c=this[_0x470cfb(0x15e)][_0x470cfb(0x148)](_0x36f528);if(_0x2b777c){const _0x234af0=_0x2b777c[_0x470cfb(0x148)](_0x205aa6);if(_0x234af0){for(const _0x5b2a4c of _0x234af0)this[_0x470cfb(0xdc)](_0x5b2a4c),this['_removeAllTreeMap'](_0x5b2a4c);_0x234af0[_0x470cfb(0x12c)]();}}}[_0x26fc63(0xd2)](){const _0x54c94f=_0x26fc63;this[_0x54c94f(0x107)]['openKdTree']();}[_0x26fc63(0xd8)](){const _0x2c33eb=_0x26fc63;this[_0x2c33eb(0x107)][_0x2c33eb(0xd8)]();}[_0x26fc63(0x154)](_0x1fd143){const _0x1a310f=_0x26fc63;_0x1fd143!=null&&this[_0x1a310f(0x139)][_0x1a310f(0x121)](_0x1fd143);}[_0x26fc63(0xca)](_0x599fa2){const _0x551070=_0x26fc63;var _0x22c6d5,_0x635941;const _0x201391=_0x599fa2['rangeList'];let _0xacb2e2=this[_0x551070(0x139)][_0x551070(0x148)](_0x599fa2[_0x551070(0xad)]);for(let _0x299a7a=0x0;_0x299a7a<_0x201391['length'];_0x299a7a++){const _0x42734d=_0x201391[_0x299a7a];let {unitId:_0x425979,sheetId:_0x1c1354,range:_0x2c78c5}=_0x42734d;_0xacb2e2||(_0xacb2e2=new Map(),this[_0x551070(0x139)][_0x551070(0xdd)](_0x599fa2[_0x551070(0xad)],_0xacb2e2)),_0xacb2e2[_0x551070(0xe5)](_0x425979)||_0xacb2e2[_0x551070(0xdd)](_0x425979,new Map());const _0x29ff2e=(_0x22c6d5=_0xacb2e2==null?void 0x0:_0xacb2e2['get'](_0x425979))==null?void 0x0:_0x22c6d5[_0x551070(0x148)](_0x1c1354);_0x29ff2e&&(_0x2c78c5={'startRow':Math[_0x551070(0xc6)](_0x2c78c5[_0x551070(0x124)],_0x29ff2e[_0x551070(0x124)]),'startColumn':Math[_0x551070(0xc6)](_0x2c78c5['startColumn'],_0x29ff2e[_0x551070(0x122)]),'endRow':Math[_0x551070(0xd6)](_0x2c78c5[_0x551070(0xaa)],_0x29ff2e[_0x551070(0xaa)]),'endColumn':Math[_0x551070(0xd6)](_0x2c78c5[_0x551070(0xe4)],_0x29ff2e[_0x551070(0xe4)])}),(_0x635941=_0xacb2e2[_0x551070(0x148)](_0x425979))==null||_0x635941['set'](_0x1c1354,_0x2c78c5);}}}var _0x169816=Object[_0x26fc63(0x11b)],_0x155696=Object[_0x26fc63(0x134)],_0x1d8a9d=(_0x439161,_0x2efa83,_0x6ec83a,_0x46c1b0)=>{for(var _0x40734f=_0x46c1b0>0x1?void 0x0:_0x46c1b0?_0x155696(_0x2efa83,_0x6ec83a):_0x2efa83,_0x38cbcb=_0x439161['length']-0x1,_0x216889;_0x38cbcb>=0x0;_0x38cbcb--)(_0x216889=_0x439161[_0x38cbcb])&&(_0x40734f=(_0x46c1b0?_0x216889(_0x2efa83,_0x6ec83a,_0x40734f):_0x216889(_0x40734f))||_0x40734f);return _0x46c1b0&&_0x40734f&&_0x169816(_0x2efa83,_0x6ec83a,_0x40734f),_0x40734f;};_0x50d52d[_0x26fc63(0x10d)]=class extends _0x251d86['UniverFormulaEnginePlugin']{[_0x26fc63(0x13d)](){const _0x4c3e26=_0x26fc63;var _0x477155,_0x2b8650;this['_initTimeValid']()?(_0x477155=this[_0x4c3e26(0x111)])!=null&&_0x477155[_0x4c3e26(0x153)]||[[_0x251d86[_0x4c3e26(0xc4)],{'useClass':_0x27c198}],[_0x251d86[_0x4c3e26(0x159)],{'useClass':_0xfe4d1a}],[_0x251d86[_0x4c3e26(0x130)],{'useClass':_0x3148f7}]][_0x4c3e26(0xd4)](_0x450cf2=>this[_0x4c3e26(0x11a)][_0x4c3e26(0x160)](_0x450cf2)):(_0x2b8650=this[_0x4c3e26(0x111)])!=null&&_0x2b8650['notExecuteFormula']||[[_0x251d86['ICalculateFormulaService'],{'useClass':_0x251d86[_0x4c3e26(0x14c)]}],[_0x251d86[_0x4c3e26(0x159)],{'useClass':_0x251d86['DependencyManagerService']}],[_0x251d86[_0x4c3e26(0x130)],{'useClass':_0x251d86['FormulaDependencyGenerator']}]][_0x4c3e26(0xd4)](_0x1be574=>this[_0x4c3e26(0x11a)][_0x4c3e26(0x160)](_0x1be574));}[_0x26fc63(0xbc)](){const _0x1cd565=_0x26fc63;var _0x4d9549;const _0x38c5f3=(_0x4d9549=this[_0x1cd565(0xf0)][_0x1cd565(0xec)](_0x313da4[_0x1cd565(0x15a)]))!=null?_0x4d9549:{},{ls:_0x397099,pbk:_0x3187a1,tvld:_0x203630}=_0x38c5f3;if(!_0x397099||!_0x3187a1)return!0x1;const _0x515649=_0x313da4[_0x1cd565(0x125)](_0x3355fa,_0x3b2f47);return new Function(_0x1cd565(0x11e)+_0x515649)()(_0x397099,_0x3187a1)[_0x1cd565(0xb3)];}},_0x50d52d[_0x26fc63(0x10d)]=_0x1d8a9d([_0x543ef3[_0x26fc63(0x10f)](_0x313da4[_0x26fc63(0xf1)])],_0x50d52d[_0x26fc63(0x10d)]),Object[_0x26fc63(0x11b)](_0x50d52d,Symbol[_0x26fc63(0x14d)],{'value':_0x26fc63(0x15d)});}));
1
+ function _0x3b36(){const _0x19f206=['FormulaDependencyTreeType','amd','3viKJfH','_runtimeService','realDeleteValue','featureId','removeOtherFormulaDependency','row','_injector','setRuntimeFeatureCellData','notExecuteFormula','_createVirtualFDtree','328516EwKoor','_executionInProgressListener$','3Ur2ct6r\x20F42WqXct6r(Et24rh4,\x20XU7Et2S4q)\x20{\x20\x20\x20\x2026rhc\x20Et24rh4Rr36ICWcNWWCq\x20=\x20Et24rh4.hXEtc(\x27-\x27);\x20\x20\x20\x2026rhc\x206Wtdtrf4hhCd4\x20=\x208uV0.XCWh4(Cc67(Et24rh4Rr36ICWcNWWCq[a]));\x20\x20\x20\x20t3\x20(!6Wtdtrf4hhCd4.UF)\x20{\x20\x20\x20\x20\x20\x20\x20\x206Wtdtrf4hhCd4.UF\x20=\x200UT74W(Et24rh4Rr36ICWcNWWCq[p]);\x20\x20\x20\x20}\x20\x20\x20\x2026rhc\x20thZ6Wy4W\x20=\x20cqX463\x20Z6Wy4WwE67CEu26X4\x20!==\x20\x27UrF43tr4F\x27\x20&&\x20h4E3\x20trhcCr2463\x20Z6Wy4WwE67CEu26X4;\x20\x20\x20\x2026rhc\x2026rc4Ac\x20=\x20thZ6Wy4W\x20?\x20h4E3\x20:\x201trF61;\x20\x20\x20\x2026rhc\x20T4hhCd4Z6WF\x20=\x2026rc4Ac.__iCh4Jp__.XCWh4(Et24rh4Rr36ICWcNWWCq[a]);\x20\x20\x20\x2026rhc\x20T4hhCd4\x20=\x2026rc4Ac.__m4A__.hcWtrdt3q(T4hhCd4Z6WF);\x20\x20\x20\x2026rhc\x20htdrCcUW4Z6WF\x20=\x2026rc4Ac.__iCh4Jp__.XCWh4(Et24rh4Rr36ICWcNWWCq[n]);\x20\x20\x20\x2026rhc\x20htdrCcUW4\x20=\x2026rc4Ac.__m4A__.hcWtrdt3q(htdrCcUW4Z6WF);\x20\x20\x20\x2026rhc\x20htdrgCEtF\x20=\x2026rc4Ac.__54Wt3q__(htdrCcUW4,\x20T4hhCd4,\x20XU7Et2S4q);\x20\x20\x20\x2026rhc\x20F6TCtr\x20=\x206Wtdtrf4hhCd4.FT;\x20\x20\x20\x203Ur2ct6r\x20thl6TCtrfCc2otrd(6ICcc4Wr,\x206m6hc)\x20{\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20XCcc4Wr\x20=\x206ICcc4Wr.W4XEC24(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20o6hc\x20=\x206m6hc.W4XEC24(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20XCcc4WrICWch\x20=\x20XCcc4Wr.hXEtc(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20o6hcICWch\x20=\x20o6hc.hXEtc(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20t3\x20(!XCcc4Wr.tr2EUF4h(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20W4cUWr\x20XCcc4Wr\x20===\x20o6hc;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20t3\x20(XCcc4WrICWch.E4rdco\x20<\x20a\x20||\x20XCcc4WrICWch[G]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20W4cUWr\x203CEh4;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20XCcc4WruU33tA\x20=\x20XCcc4WrICWch.hEt24(Q).x6tr(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x2026rhc\x20o6hcuU33tA\x20=\x20o6hcICWch.hEt24(-XCcc4WrICWch.E4rdco\x20+\x20Q).x6tr(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20W4cUWr\x20XCcc4WruU33tA\x20===\x20o6hcuU33tA;\x20\x20\x20\x20}\x20\x20\x20\x20E4c\x20F6TCtrgCEtF\x20=\x20F6TCtr?.E4rdco\x20?\x20F6TCtr.h6T4((FTRc4T)\x20=>\x20thl6TCtrfCc2otrd(FTRc4T,\x20E62Cct6r.o6hcrCT4))\x20:\x20cWU4;\x20\x20\x20\x20t3\x20(E62Cct6r.o6hcrCT4\x20===\x20\x27E62CEo6hc\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20F6TCtrgCEtF\x20=\x20cWU4;\x20\x20\x20\x20}\x20\x20\x20\x2026rhc\x205CEtF\x20=\x20htdrgCEtF\x20&&\x20F6TCtrgCEtF;\x20\x20\x20\x20W4cUWr\x20{\x20\x20\x20\x20\x20\x20\x20\x205CEtF,\x20T4hhCd4:\x206Wtdtrf4hhCd4,\x20\x20\x20\x20};}','refTree','endColumn','1053018cSHtmC','_registerFormulas','generate','_getFirstCellOfRange','_initializeWithOverride','UniverFormulaEnginePlugin','setValue','removeFormulaDependency','getDirtyData','_restDependencyTreeId','START_DEPENDENCY','UniverEngineFormula','isAdded','_apply','isForceCalculate','min','ICalculateFormulaService','_configService','addFormulaDependency','_removeAllTreeMap','requestImmediateMacroTask','_registerOtherFormulas','FormulaDependencyTreeVirtual','63369AWXOoh','rowCount','RTree','PLUGIN_CONFIG_KEY','endRow','setRuntimeFeatureRange','14ZNmeLl','clearFeatureFormulaDependency','isExcludeRange','addFeatureFormulaDependency','CalculateFormulaService','formulaId','valid','FormulaExecuteStageType','markedAsStopFunctionsExecuted','UniverLicense','toStringTag','FormulaDependencyGenerator','CURRENTLY_CALCULATING_ARRAY_FORMULA','type','_dependencyManagerService','removeFormulaDependencyByDefinedName','enableCycleDependency','dependencySheetName','execute','addOtherFormulaDependency','addDependencyRTreeCache','rangeList','setTotalArrayFormulasToCalculate','pop','CURRENTLY_CALCULATING','length','clear','9TDzuqM','getAllRuntimeData','185458FCENRQ','toRTreeItem','_getRangeListByNode','add','symbol','openKdTree','resolve','removeFeatureFormulaDependency','_astTreeBuilder','generateAstNode','function','isDirty','setCompletedArrayFormulasCount','bulkRemove','getUnitData','_lexer','startColumn','DependencyManagerService','_checkIsCycleDependency','_generateTreeList','object','pushRangeList','_featureFormulaData','return\x20','max','setRuntimeData','markedAsNoFunctionsExecuted','getOtherFormulaData','setCurrent','treeId','FEATURE_FORMULA','delete','startRow','getOwnPropertyDescriptor','_removeDependencyRTreeCache','_getFeatureFormulaTree','IDependencyManagerService','checkAsyncNode','_otherFormulaDataMainData','defineProperty','UniverProFormulaEnginePlugin','columnCount','_executionCompleteListener$','column','formula','searchDependency','isVirtual','forValue','has','setSkip','ParentDependencyTree\x20object\x20is\x20null','dirtyRanges','setFormulaExecuteStage','next','@univerjs/core','_interpreter','unshiftString','_formulaDependencyGenerator','_initTimeValid','_currentConfigService','addOtherFormulaDependencyMainData','addFormulaDependencyByDefinedName','set','_dependencyRTreeCache','push','_getUpdateTreeListAndMakeDependency','setCompletedFormulasCount','672176KsUjAF','keys','unitId','_formulaData','UniverCore','START_CALCULATION_ARRAY_FORMULA','subUnitId','getOtherFormulaDependency','START_DEPENDENCY_ARRAY_FORMULA','_removeDependencyRTreeCacheById','size','@univerjs-pro/license','refOffsetX','isSkip','getRuntimeState','_otherFormulaData','_includeTree','reset','getClearDependencyTreeCache','getValue','setRuntimeOtherData','intervalCount','DependentOn','dispose','UniverLicensePlugin','getFormulaDependency','get','getConfig','forEach','closeKdTree','setTotalFormulasToCalculate','clearFormulaDependency','_dependencyTreeCache','isCache','393570CftfAC','generateRandomDependencyTreeId','_allTreeMap','_traverse','getDirtyNameMap','refOffsetY','getFeatureFormulaDependency','_config','executeAsync','_otherFormulaManagerService','markedAsSuccessfullyExecuted','_createFDtree','2602590wWqwji','ObjectMatrix','_isCyclicUtilMap','IFormulaDependencyGenerator','FormulaDependencyTree','hasOtherFormulaDataMainData'];_0x3b36=function(){return _0x19f206;};return _0x3b36();}function _0x18a2(_0x1a3be8,_0x3c35d5){const _0x3b36cb=_0x3b36();return _0x18a2=function(_0x18a2ce,_0x4cfc83){_0x18a2ce=_0x18a2ce-0xa7;let _0x32b3a8=_0x3b36cb[_0x18a2ce];return _0x32b3a8;},_0x18a2(_0x1a3be8,_0x3c35d5);}(function(_0x7ae0c,_0xea035b){const _0x4ec029=_0x18a2,_0x1b479e=_0x7ae0c();while(!![]){try{const _0x22d7a2=-parseInt(_0x4ec029(0x168))/0x1+parseInt(_0x4ec029(0xc9))/0x2*(parseInt(_0x4ec029(0x142))/0x3)+-parseInt(_0x4ec029(0x14c))/0x4+parseInt(_0x4ec029(0x12e))/0x5+parseInt(_0x4ec029(0x151))/0x6+-parseInt(_0x4ec029(0xac))/0x7*(-parseInt(_0x4ec029(0x10c))/0x8)+parseInt(_0x4ec029(0xc7))/0x9*(-parseInt(_0x4ec029(0x13a))/0xa);if(_0x22d7a2===_0xea035b)break;else _0x1b479e['push'](_0x1b479e['shift']());}catch(_0x438174){_0x1b479e['push'](_0x1b479e['shift']());}}}(_0x3b36,0x1aab1),function(_0x2f8263,_0x144e19){const _0x164148=_0x18a2;typeof exports==_0x164148(0xdd)&&typeof module<'u'?_0x144e19(exports,require(_0x164148(0xff)),require('@univerjs/engine-formula'),require(_0x164148(0x117))):typeof define==_0x164148(0xd3)&&define[_0x164148(0x141)]?define(['exports','@univerjs/core','@univerjs/engine-formula',_0x164148(0x117)],_0x144e19):(_0x2f8263=typeof globalThis<'u'?globalThis:_0x2f8263||self,_0x144e19(_0x2f8263[_0x164148(0x15c)]={},_0x2f8263[_0x164148(0x110)],_0x2f8263[_0x164148(0x15c)],_0x2f8263[_0x164148(0xb5)]));}(this,function(_0x27c18d,_0x289ba7,_0xc28445,_0x130fbb){'use strict';const _0x35004a=_0x18a2;var _0x2105d9=Object[_0x35004a(0xf0)],_0x2b5851=(_0x17e70f,_0x1e1bd5,_0x1b0f46)=>_0x1e1bd5 in _0x17e70f?_0x2105d9(_0x17e70f,_0x1e1bd5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b0f46}):_0x17e70f[_0x1e1bd5]=_0x1b0f46,_0x55af5e=(_0x4d81bb,_0x11d4b1,_0xf96b62)=>_0x2b5851(_0x4d81bb,typeof _0x11d4b1!=_0x35004a(0xcd)?_0x11d4b1+'':_0x11d4b1,_0xf96b62);const _0x44bacf={0x0:'N',0x1:'w',0x2:'c',0x3:'f',0x4:'e',0x5:'v',0x6:'o',0x7:'b',0x8:'J',0x9:'L','G':'0','Q':'1','a':'2','n':'3','p':'4','L':'5','J':'6','s':'7','k':'8','M':'9','C':'a','F':'d','d':'g','o':'h','t':'i','x':'j','y':'k','E':'l','T':'m','r':'n','X':'p','K':'q','W':'r','h':'s','c':'t','U':'u','A':'x','q':'y','j':'z','N':'A','i':'B','D':'C','l':'D','e':'E','b':'F','w':'G','m':'H','R':'I','S':'K','f':'M','V':'O','I':'P','Y':'Q','v':'R','u':'S','B':'T','z':'U','g':'V','Z':'W','O':'X','H':'Y','P':'Z'},_0xe508b7=_0x35004a(0x14e);class _0x57502f extends _0xc28445[_0x35004a(0xb7)]{constructor(){const _0x227893=_0x35004a;super(...arguments),_0x55af5e(this,_0x227893(0x12c),new Map());}['dispose'](){const _0x1ea53a=_0x35004a;super[_0x1ea53a(0x123)](),this[_0x1ea53a(0x12c)][_0x1ea53a(0xc6)]();}async[_0x35004a(0x153)](){const _0x5455e8=_0x35004a;this['_updateRangeFlatten']();const _0x6b06f3=this[_0x5455e8(0x104)]['getFormulaData'](),_0xac18e9=this[_0x5455e8(0x137)][_0x5455e8(0xe4)](),_0x5a3f74=this[_0x5455e8(0x104)][_0x5455e8(0x11e)]();_0x5a3f74!=null&&Object['keys'](_0x5a3f74)['forEach'](_0x14360c=>{const _0x16629e=_0x5455e8;_0x14360c!=null&&Object[_0x16629e(0x10d)](_0x5a3f74[_0x14360c])[_0x16629e(0x128)](_0x4ec992=>{const _0x4ca3fe=_0x16629e;_0x4ec992!=null&&(this[_0x4ca3fe(0xba)]['clearOtherFormulaDependency'](_0x14360c,_0x4ec992),this['_dependencyManagerService'][_0x4ca3fe(0xad)](_0x14360c,_0x4ec992),this[_0x4ca3fe(0xba)][_0x4ca3fe(0x12b)](_0x14360c,_0x4ec992));});});const _0x5eef46=this[_0x5455e8(0x104)][_0x5455e8(0xd7)]();await this[_0x5455e8(0xdc)](_0x6b06f3,_0xac18e9,_0x5eef46),this[_0x5455e8(0xba)][_0x5455e8(0xce)]();const _0x164918=this[_0x5455e8(0x10a)](),_0x4dad73=this['_calculateRunList'](_0x164918);return this[_0x5455e8(0xdb)](_0x4dad73)&&this[_0x5455e8(0x143)][_0x5455e8(0xbc)](),this[_0x5455e8(0x12c)]['clear'](),this['_dependencyManagerService'][_0x5455e8(0x129)](),Promise[_0x5455e8(0xcf)](_0x4dad73);}[_0x35004a(0x13c)](_0x55bf6b,_0x1d811f){const _0x30e5f8=_0x35004a,_0x477a1a=[_0x55bf6b];for(;_0x477a1a[_0x30e5f8(0xc5)]>0x0;){const _0x36864f=_0x477a1a[_0x477a1a['length']-0x1];if((_0x1d811f[_0x30e5f8(0x126)](_0x36864f)||0x0)===0x0){_0x1d811f['set'](_0x36864f,0x1);const _0x482821=this[_0x30e5f8(0x12c)]['get'](_0x36864f);if(_0x482821==null){_0x1d811f['set'](_0x36864f,0x2),_0x477a1a[_0x30e5f8(0xc3)]();continue;}const _0x208a60=this[_0x30e5f8(0xba)][_0x30e5f8(0xf6)](_0x482821[_0x30e5f8(0xca)]());for(const _0x3483d2 of _0x208a60){const _0x4f160e=_0x1d811f[_0x30e5f8(0x126)](_0x3483d2)||0x0;if(_0x4f160e===0x1)return!0x0;_0x4f160e===0x0&&_0x477a1a[_0x30e5f8(0x109)](_0x3483d2);}}else _0x1d811f[_0x30e5f8(0x107)](_0x36864f,0x2),_0x477a1a[_0x30e5f8(0xc3)]();}return!0x1;}[_0x35004a(0xdb)](_0x399ab7){const _0x14d95b=_0x35004a,_0x260663=new Map();for(const _0xaa98e3 of _0x399ab7)if(!_0x260663[_0x14d95b(0xf9)](_0xaa98e3['treeId'])&&this[_0x14d95b(0x13c)](_0xaa98e3[_0x14d95b(0xe6)],_0x260663))return!0x0;return _0x260663[_0x14d95b(0xc6)](),!0x1;}async[_0x35004a(0xdc)](_0x161529,_0x44636a,_0x515573){const _0x2a8997=_0x35004a,_0xc9f9b5=Object[_0x2a8997(0x10d)](_0x161529),_0x4fb4f3=Object['keys'](_0x44636a),_0x304742=[];this[_0x2a8997(0x104)][_0x2a8997(0x15f)]()&&this['_dependencyManagerService'][_0x2a8997(0x11d)](),this[_0x2a8997(0x152)](_0xc9f9b5,_0x161529,_0x515573,_0x304742),this[_0x2a8997(0x166)](_0x44636a,_0x4fb4f3,_0x304742),this['_registerFeatureFormulas'](_0x304742);for(let _0x2da65d=0x0,_0x255892=_0x304742['length'];_0x2da65d<_0x255892;_0x2da65d++){const _0x2a762c=_0x304742[_0x2da65d],_0x3d94dd=_0xc28445[_0x2a8997(0xd2)](_0x2a762c['unitId'],_0x2a762c[_0x2a8997(0xf5)],this[_0x2a8997(0xd8)],this[_0x2a8997(0xd1)],this[_0x2a8997(0x104)]);if(_0x2a762c[_0x2a8997(0xd4)]=this[_0x2a8997(0x11c)](_0x2a762c,_0x3d94dd),_0x2a762c[_0x2a8997(0xf7)])continue;this['_runtimeService'][_0x2a8997(0xe5)](_0x2a762c[_0x2a8997(0x147)],_0x2a762c[_0x2a8997(0xf4)],_0x2a762c[_0x2a8997(0xa7)],_0x2a762c['columnCount'],_0x2a762c[_0x2a8997(0x112)],_0x2a762c[_0x2a8997(0x10e)]);const _0x3f2148=await this[_0x2a8997(0xcb)]({'node':_0x3d94dd,'refOffsetX':_0x2a762c['refOffsetX'],'refOffsetY':_0x2a762c[_0x2a8997(0x133)]});_0x2a762c[_0x2a8997(0xde)](_0x3f2148);}for(let _0x4c8928=0x0,_0x58417b=_0x304742[_0x2a8997(0xc5)];_0x4c8928<_0x58417b;_0x4c8928++){const _0x3d5be6=_0x304742[_0x4c8928];_0x3d5be6[_0x2a8997(0x12d)]||this[_0x2a8997(0xba)][_0x2a8997(0xc0)](_0x3d5be6);}return _0x304742;}[_0x35004a(0xec)](_0x28ba73,_0x2443cf,_0x2a9598){const _0x47d89d=_0x35004a,{unitId:_0x173830,subUnitId:_0x4aa24a,dependencyRanges:_0x214c68,getDirtyData:_0xab14ce}=_0x2a9598,_0x9520da=_0x2443cf||_0xc28445[_0x47d89d(0x12f)](this[_0x47d89d(0xba)]),_0x33e830=new _0xc28445['FormulaDependencyTree'](_0x9520da);_0x33e830[_0x47d89d(0x10e)]=_0x173830,_0x33e830[_0x47d89d(0x112)]=_0x4aa24a,_0x33e830[_0x47d89d(0xc1)]=_0x214c68,_0x33e830['getDirtyData']=_0xab14ce;const _0x1c2758=_0xab14ce(this[_0x47d89d(0x104)][_0x47d89d(0x159)](),this['_runtimeService'][_0x47d89d(0xc8)]()),_0x5951bd=this['_convertDirtyRangesToUnitRange'](_0x1c2758[_0x47d89d(0xfc)]);return _0x33e830['featureDirtyRanges']=_0x5951bd,_0x33e830[_0x47d89d(0x145)]=_0x28ba73,_0x33e830['type']=_0xc28445[_0x47d89d(0x140)][_0x47d89d(0xe7)],this[_0x47d89d(0xba)]['addFeatureFormulaDependency'](_0x173830,_0x4aa24a,_0x28ba73,_0x33e830),this[_0x47d89d(0x12c)]['set'](_0x33e830[_0x47d89d(0xe6)],_0x33e830),this[_0x47d89d(0xba)][_0x47d89d(0x134)](_0x2a9598[_0x47d89d(0x10e)],_0x2a9598[_0x47d89d(0x112)],_0x28ba73)&&(_0x33e830[_0x47d89d(0x12d)]=!0x0),_0x33e830;}[_0x35004a(0x166)](_0x39e060,_0x13bea1,_0x4db883){const _0x535cea=_0x35004a;for(const _0x1e4552 of _0x13bea1){const _0x27bd38=_0x39e060[_0x1e4552];if(_0x27bd38==null)continue;const _0x55fb0c=Object[_0x535cea(0x10d)](_0x27bd38);for(const _0x3990f7 of _0x55fb0c){const _0x1f8254=_0x27bd38[_0x3990f7];if(_0x1f8254==null)continue;const _0x3bff46=Object[_0x535cea(0x10d)](_0x1f8254);for(const _0x256f71 of _0x3bff46){const _0x96f4bd=this[_0x535cea(0xba)][_0x535cea(0x13f)](_0x256f71),_0x520f23=_0x1f8254[_0x256f71],{f:_0x4573fa,ranges:_0x2fadcf}=_0x520f23;let _0x583f92=!0x1;_0x96f4bd&&(_0x583f92=!0x0);const {firstRow:_0x120055,firstColumn:_0x4f4744}=this[_0x535cea(0x154)](_0x2fadcf),_0xba7fa8=this[_0x535cea(0xba)][_0x535cea(0x113)](_0x1e4552,_0x3990f7,_0x256f71),_0x3130fc=(_0xba7fa8==null?void 0x0:_0xba7fa8[_0x535cea(0x11f)](0x0,0x0))||_0xc28445[_0x535cea(0x12f)](this['_dependencyManagerService']),_0x2294a4=new _0xc28445[(_0x535cea(0x13e))](_0x3130fc);for(let _0x3d226f=0x0;_0x3d226f<_0x2fadcf[_0x535cea(0xc5)];_0x3d226f++){const _0x26e1af=_0x2fadcf[_0x3d226f],{startRow:_0x3a5ed6,startColumn:_0x4c10dc,endRow:_0x552dc7,endColumn:_0x442ebf}=_0x26e1af;for(let _0x550e8b=_0x3a5ed6;_0x550e8b<=_0x552dc7;_0x550e8b++)for(let _0x457533=_0x4c10dc;_0x457533<=_0x442ebf;_0x457533++){const _0x43e2af=_0x457533-_0x4f4744,_0x8f60bb=_0x550e8b-_0x120055;if(_0x43e2af===0x0&&_0x8f60bb===0x0){_0x2294a4[_0x535cea(0xf5)]=_0x4573fa,_0x2294a4[_0x535cea(0x10e)]=_0x1e4552,_0x2294a4[_0x535cea(0x112)]=_0x3990f7,_0x2294a4['formulaId']=_0x256f71,_0x2294a4[_0x535cea(0xb9)]=_0xc28445['FormulaDependencyTreeType']['OTHER_FORMULA'],_0x2294a4[_0x535cea(0x12d)]=_0x583f92,_0x4db883[_0x535cea(0x109)](_0x2294a4),this['_dependencyTreeCache'][_0x535cea(0x107)](_0x2294a4[_0x535cea(0xe6)],_0x2294a4),this[_0x535cea(0xba)]['addOtherFormulaDependency'](_0x1e4552,_0x3990f7,_0x256f71,_0x2294a4),this[_0x535cea(0xba)]['addFormulaDependencyByDefinedName'](_0x2294a4);continue;}const _0x1c2a1d=new _0xc28445[(_0x535cea(0x167))]();_0x1c2a1d['treeId']=(_0xba7fa8==null?void 0x0:_0xba7fa8[_0x535cea(0x11f)](_0x43e2af,_0x8f60bb))||_0xc28445[_0x535cea(0x12f)](this[_0x535cea(0xba)]),_0x1c2a1d[_0x535cea(0x14f)]=_0x2294a4,_0x1c2a1d[_0x535cea(0x118)]=_0x43e2af,_0x1c2a1d[_0x535cea(0x133)]=_0x8f60bb,_0x1c2a1d[_0x535cea(0x12d)]=_0x583f92,this[_0x535cea(0xba)]['addOtherFormulaDependency'](_0x1e4552,_0x3990f7,_0x256f71,_0x1c2a1d),this[_0x535cea(0xba)][_0x535cea(0x106)](_0x1c2a1d),_0x4db883[_0x535cea(0x109)](_0x1c2a1d),this['_dependencyTreeCache'][_0x535cea(0x107)](_0x1c2a1d[_0x535cea(0xe6)],_0x1c2a1d);}}this['_dependencyManagerService'][_0x535cea(0x105)](_0x256f71);}}}}[_0x35004a(0x152)](_0x5968e3,_0x395181,_0x41d0e8,_0x389714){const _0x525e87=_0x35004a;for(const _0x98c0b4 of _0x5968e3){const _0x3a2a85=_0x395181[_0x98c0b4];if(_0x3a2a85==null)continue;const _0x361956=Object[_0x525e87(0x10d)](_0x3a2a85);for(const _0x28205a of _0x361956){const _0x45da93=new _0x289ba7[(_0x525e87(0x13b))](_0x3a2a85[_0x28205a]||{}),_0x53c1c4=new Map();_0x45da93[_0x525e87(0xf8)]((_0x1afb69,_0x1678f1,_0x4d82d2)=>{const _0x1fe1ac=_0x525e87;if(_0x4d82d2==null)return!0x0;const {x:_0x2ed9a5=0x0,y:_0x449b85=0x0,si:_0x3d4b63}=_0x4d82d2;if(!(_0x2ed9a5===0x0&&_0x449b85===0x0&&_0x3d4b63!=null))return!0x0;const _0x1eb499=this[_0x1fe1ac(0x139)](_0x98c0b4,_0x28205a,_0x1afb69,_0x1678f1,_0x41d0e8,_0x4d82d2),_0x2e9dde=this[_0x1fe1ac(0xba)][_0x1fe1ac(0x125)](_0x98c0b4,_0x28205a,_0x1afb69,_0x1678f1);_0x2e9dde!=null?_0x1eb499[_0x1fe1ac(0xe6)]=_0x2e9dde:(this[_0x1fe1ac(0xba)][_0x1fe1ac(0x163)](_0x98c0b4,_0x28205a,_0x1afb69,_0x1678f1,_0x1eb499),this[_0x1fe1ac(0xba)][_0x1fe1ac(0x106)](_0x1eb499)),_0x53c1c4[_0x1fe1ac(0x107)](_0x3d4b63,_0x1eb499),_0x389714['push'](_0x1eb499),this[_0x1fe1ac(0x12c)][_0x1fe1ac(0x107)](_0x1eb499[_0x1fe1ac(0xe6)],_0x1eb499);}),_0x45da93[_0x525e87(0xf8)]((_0x13fdc1,_0x50a5bb,_0x469e9e)=>{const _0x184559=_0x525e87;if(_0x469e9e==null)return!0x0;const {x:_0xe8fc44=0x0,y:_0x563aed=0x0,si:_0x11af89}=_0x469e9e;if(_0xe8fc44===0x0&&_0x563aed===0x0&&_0x11af89!=null)return!0x0;let _0x30bab8;if(_0x11af89&&_0x53c1c4[_0x184559(0xf9)](_0x11af89)){const _0x28db7f=_0x53c1c4[_0x184559(0x126)](_0x11af89);_0x30bab8=this[_0x184559(0x14b)](_0x28db7f,_0x469e9e);}else _0x30bab8=this[_0x184559(0x139)](_0x98c0b4,_0x28205a,_0x13fdc1,_0x50a5bb,_0x41d0e8,_0x469e9e);const _0x5e2f00=this[_0x184559(0xba)][_0x184559(0x125)](_0x98c0b4,_0x28205a,_0x13fdc1,_0x50a5bb);_0x5e2f00!=null?_0x30bab8['treeId']=_0x5e2f00:(this[_0x184559(0xba)][_0x184559(0x163)](_0x98c0b4,_0x28205a,_0x13fdc1,_0x50a5bb,_0x30bab8),this[_0x184559(0xba)]['addFormulaDependencyByDefinedName'](_0x30bab8)),_0x389714[_0x184559(0x109)](_0x30bab8),this['_dependencyTreeCache'][_0x184559(0x107)](_0x30bab8['treeId'],_0x30bab8);}),_0x53c1c4['clear']();}}}[_0x35004a(0x139)](_0x404396,_0x56c25f,_0x1dede6,_0x2da43d,_0x40dd7,_0x12d6e4){const _0x513ad7=_0x35004a,{f:_0x2d366d,x:_0x33ef26=0x0,y:_0x16c1a3=0x0}=_0x12d6e4,_0x15e867=new _0xc28445['FormulaDependencyTree'](_0xc28445[_0x513ad7(0x12f)](this[_0x513ad7(0xba)])),_0x2d65aa=_0x40dd7[_0x404396][_0x56c25f];return _0x15e867[_0x513ad7(0xf5)]=_0x2d366d,_0x15e867[_0x513ad7(0x10e)]=_0x404396,_0x15e867['subUnitId']=_0x56c25f,_0x15e867['row']=_0x1dede6,_0x15e867[_0x513ad7(0xf4)]=_0x2da43d,_0x15e867[_0x513ad7(0xa7)]=_0x2d65aa[_0x513ad7(0xa7)],_0x15e867[_0x513ad7(0xf2)]=_0x2d65aa[_0x513ad7(0xf2)],_0x15e867;}['_getUpdateTreeListAndMakeDependency'](){const _0x5561ad=_0x35004a,_0x53e5f9=[],_0x39ad53=new Set(),_0x3f6486=this[_0x5561ad(0x104)][_0x5561ad(0x15f)](),_0x213b36=this[_0x5561ad(0x104)]['getDirtyRanges'](),_0x83b558=this[_0x5561ad(0xba)][_0x5561ad(0xf6)](_0x213b36);for(const [_0xe78a0c,_0x31d0f5]of this[_0x5561ad(0x12c)])(_0x3f6486||_0x31d0f5[_0x5561ad(0xd4)]||_0x31d0f5[_0x5561ad(0xbd)](this[_0x5561ad(0x104)][_0x5561ad(0x132)]())||_0x83b558[_0x5561ad(0xf9)](_0xe78a0c)&&!_0x31d0f5[_0x5561ad(0xae)](this[_0x5561ad(0x104)]['getExcludedRange']()))&&!_0x39ad53[_0x5561ad(0xf9)](_0xe78a0c)&&(_0x53e5f9[_0x5561ad(0x109)](_0x31d0f5),_0x39ad53['add'](_0xe78a0c));for(const [_0x340bfc,_0x25d7c4]of this[_0x5561ad(0x12c)])_0x25d7c4[_0x5561ad(0xf7)]||(_0x25d7c4[_0x5561ad(0xc1)][_0x5561ad(0xc5)]=0x0);return _0x53e5f9;}*[_0x35004a(0x131)](_0x3bc38b,_0x58f7b7){const _0x2aed0c=_0x35004a,_0x5d1d88=_0x3bc38b,_0x254557=new Set();for(;_0x5d1d88[_0x2aed0c(0xc5)]>0x0;){const _0x1c6c7f=_0x5d1d88[_0x2aed0c(0xc3)]();if(_0x254557[_0x2aed0c(0xc6)](),_0x1c6c7f===void 0x0||_0x1c6c7f[_0x2aed0c(0x119)]())continue;if(_0x1c6c7f[_0x2aed0c(0x15d)]()){yield _0x1c6c7f,_0x1c6c7f['setSkip'](),_0x58f7b7['add'](_0x1c6c7f[_0x2aed0c(0xe6)]);continue;}const _0x167ef6=this[_0x2aed0c(0xba)][_0x2aed0c(0xf6)](_0x1c6c7f[_0x2aed0c(0xca)](),_0x58f7b7);for(const _0x5032f9 of _0x167ef6){const _0x1ae297=this[_0x2aed0c(0x12c)]['get'](_0x5032f9);if(!_0x1ae297)throw new Error(_0x2aed0c(0xfb));_0x1ae297['isAdded']()||_0x1c6c7f[_0x2aed0c(0x119)]()||_0x254557[_0x2aed0c(0xcc)](_0x1ae297);}if(_0x167ef6[_0x2aed0c(0xc6)](),_0x254557[_0x2aed0c(0x116)]===0x0)yield _0x1c6c7f,_0x1c6c7f[_0x2aed0c(0xfa)](),_0x58f7b7['add'](_0x1c6c7f['treeId']);else{_0x1c6c7f['setAdded'](),_0x5d1d88[_0x2aed0c(0x109)](_0x1c6c7f);for(const _0x4b1688 of _0x254557)_0x5d1d88[_0x2aed0c(0x109)](_0x4b1688);}}_0x5d1d88[_0x2aed0c(0xc5)]=0x0,_0x254557[_0x2aed0c(0xc6)]();}['_calculateRunList'](_0x33f7ee){const _0x2c4fc9=_0x35004a,_0x3dbc6f=[],_0x37bf9e=new Set();for(const _0x38d037 of this[_0x2c4fc9(0x131)](_0x33f7ee,_0x37bf9e))_0x3dbc6f[_0x2c4fc9(0x109)](_0x38d037);return _0x3dbc6f;}}class _0x1e52cb extends _0xc28445[_0x35004a(0xb0)]{async[_0x35004a(0x15e)](_0x462efa=!0x1){const _0x47a65a=_0x35004a;_0x462efa?this[_0x47a65a(0x143)][_0x47a65a(0xfd)](_0xc28445[_0x47a65a(0xb3)][_0x47a65a(0x114)]):this[_0x47a65a(0x143)][_0x47a65a(0xfd)](_0xc28445[_0x47a65a(0xb3)][_0x47a65a(0x15b)]),this['_executionInProgressListener$']['next'](this[_0x47a65a(0x143)][_0x47a65a(0x11a)]());const _0x49d279=await this[_0x47a65a(0x102)]['generate'](),_0x1f0ebb=this[_0x47a65a(0x100)];_0x462efa?(this['_runtimeService'][_0x47a65a(0xfd)](_0xc28445['FormulaExecuteStageType'][_0x47a65a(0x111)]),this[_0x47a65a(0x143)][_0x47a65a(0xc2)](_0x49d279[_0x47a65a(0xc5)])):(this['_runtimeService'][_0x47a65a(0xfd)](_0xc28445['FormulaExecuteStageType']['START_CALCULATION']),this[_0x47a65a(0x143)][_0x47a65a(0x12a)](_0x49d279['length'])),this[_0x47a65a(0x14d)]['next'](this[_0x47a65a(0x143)][_0x47a65a(0x11a)]());let _0x2db393=[];const _0x34bff1=this[_0x47a65a(0x162)][_0x47a65a(0x127)](_0xc28445[_0x47a65a(0xa9)]),_0x1a63bb=(_0x34bff1==null?void 0x0:_0x34bff1[_0x47a65a(0x121)])||_0xc28445['DEFAULT_INTERVAL_COUNT'];let _0x5aa154=0x0;const _0x274fba=_0x49d279[_0x47a65a(0xc5)];for(;_0x49d279['length']>0x0;){const _0x1087c5=_0x49d279[_0x47a65a(0xc3)](),_0x3b6087={'node':_0xc28445[_0x47a65a(0xd2)](_0x1087c5[_0x47a65a(0x10e)],_0x1087c5['formula'],this['_lexer'],this['_astTreeBuilder'],this[_0x47a65a(0x104)]),'refOffsetX':_0x1087c5['refOffsetX'],'refOffsetY':_0x1087c5['refOffsetY']},_0x5d7c9e=_0x1087c5['getDirtyData'];if(_0x5aa154%_0x1a63bb===0x0&&(await new Promise(_0x4a36f8=>{const _0x3243b2=_0x47a65a,_0x5b0ae3=_0x289ba7[_0x3243b2(0x165)](_0x4a36f8);_0x2db393[_0x3243b2(0x109)](_0x5b0ae3);}),_0x462efa?(this[_0x47a65a(0x143)][_0x47a65a(0xfd)](_0xc28445[_0x47a65a(0xb3)][_0x47a65a(0xb8)]),this[_0x47a65a(0x143)][_0x47a65a(0xd5)](_0x5aa154+0x1)):(this[_0x47a65a(0x143)][_0x47a65a(0xfd)](_0xc28445[_0x47a65a(0xb3)][_0x47a65a(0xc4)]),this[_0x47a65a(0x143)][_0x47a65a(0x10b)](_0x5aa154+0x1)),this[_0x47a65a(0x14d)][_0x47a65a(0xfe)](this['_runtimeService']['getRuntimeState']()),this['_runtimeService']['isStopExecution']()||_0x3b6087==null&&_0x5d7c9e==null)){this[_0x47a65a(0x143)][_0x47a65a(0xfd)](_0xc28445['FormulaExecuteStageType']['IDLE']),this['_runtimeService'][_0x47a65a(0xb4)](),this[_0x47a65a(0xf3)][_0x47a65a(0xfe)](this[_0x47a65a(0x143)][_0x47a65a(0xc8)]());return;}this[_0x47a65a(0x143)][_0x47a65a(0xe5)](_0x1087c5[_0x47a65a(0x147)],_0x1087c5[_0x47a65a(0xf4)],_0x1087c5[_0x47a65a(0xa7)],_0x1087c5[_0x47a65a(0xf2)],_0x1087c5['subUnitId'],_0x1087c5['unitId']);let _0x10f650;if(_0x5d7c9e!=null&&_0x1087c5[_0x47a65a(0x145)]!=null){const {runtimeCellData:_0x8addda,dirtyRanges:_0x436459}=_0x5d7c9e(this[_0x47a65a(0x104)]['getDirtyData'](),this[_0x47a65a(0x143)][_0x47a65a(0xc8)]());this[_0x47a65a(0x143)][_0x47a65a(0x149)](_0x1087c5[_0x47a65a(0x145)],_0x8addda),this[_0x47a65a(0x143)][_0x47a65a(0xab)](_0x1087c5[_0x47a65a(0x145)],_0x436459);}else _0x3b6087!=null&&(_0x1f0ebb[_0x47a65a(0xee)](_0x3b6087['node'])?_0x10f650=await _0x1f0ebb[_0x47a65a(0x136)](_0x3b6087):_0x10f650=_0x1f0ebb[_0x47a65a(0xbe)](_0x3b6087),_0x1087c5[_0x47a65a(0xb1)]!=null?this['_runtimeService'][_0x47a65a(0x120)](_0x1087c5[_0x47a65a(0xb1)],_0x1087c5[_0x47a65a(0x118)],_0x1087c5[_0x47a65a(0x133)],_0x10f650):this[_0x47a65a(0x143)][_0x47a65a(0xe2)](_0x10f650));_0x5aa154++;}return _0x2db393[_0x47a65a(0x128)](_0xb16f77=>_0xb16f77()),_0x2db393=[],_0x274fba>0x0?this[_0x47a65a(0x143)][_0x47a65a(0x138)]():_0x462efa||this[_0x47a65a(0x143)][_0x47a65a(0xe3)](),this[_0x47a65a(0x143)][_0x47a65a(0xc8)]();}}class _0x14e488 extends _0xc28445['DependencyManagerBaseService']{constructor(){const _0x43d056=_0x35004a;super(...arguments),_0x55af5e(this,_0x43d056(0x130),new Map()),_0x55af5e(this,_0x43d056(0x108),new _0x289ba7[(_0x43d056(0xa8))](!0x0));}['reset'](){const _0xd9fecd=_0x35004a;this[_0xd9fecd(0x11b)][_0xd9fecd(0xc6)](),this['_featureFormulaData'][_0xd9fecd(0xc6)](),this[_0xd9fecd(0x10f)][_0xd9fecd(0xc6)](),this[_0xd9fecd(0x108)][_0xd9fecd(0xc6)](),this[_0xd9fecd(0x130)][_0xd9fecd(0xc6)](),this[_0xd9fecd(0x15a)](),this[_0xd9fecd(0xef)]['clear']();}[_0x35004a(0xbf)](_0x5b120a,_0x3789a2,_0x597ad6,_0x59b03c){const _0x54a6da=_0x35004a;this[_0x54a6da(0x11b)]['has'](_0x5b120a)||this[_0x54a6da(0x11b)][_0x54a6da(0x107)](_0x5b120a,new Map());const _0x20da66=this[_0x54a6da(0x11b)][_0x54a6da(0x126)](_0x5b120a);_0x20da66[_0x54a6da(0xf9)](_0x3789a2)||_0x20da66[_0x54a6da(0x107)](_0x3789a2,new Map());const _0x23e715=_0x20da66[_0x54a6da(0x126)](_0x3789a2);_0x23e715['has'](_0x597ad6)||_0x23e715[_0x54a6da(0x107)](_0x597ad6,new _0x289ba7[(_0x54a6da(0x13b))]()),_0x23e715[_0x54a6da(0x126)](_0x597ad6)[_0x54a6da(0x157)](_0x59b03c['refOffsetX'],_0x59b03c['refOffsetY'],_0x59b03c[_0x54a6da(0xe6)]);}[_0x35004a(0x146)](_0x254b8a,_0xa7dc,_0x17077b){const _0x4fb0fb=_0x35004a,_0x2a2822=this[_0x4fb0fb(0x11b)][_0x4fb0fb(0x126)](_0x254b8a);if(_0x2a2822&&_0x2a2822[_0x4fb0fb(0xf9)](_0xa7dc)){const _0x5987c6=_0x2a2822[_0x4fb0fb(0x126)](_0xa7dc);_0x17077b['forEach'](_0x2e49be=>{const _0x2c4da6=_0x4fb0fb,_0x4dd0b1=_0x5987c6[_0x2c4da6(0x126)](_0x2e49be);_0x4dd0b1!=null&&(_0x4dd0b1[_0x2c4da6(0xf8)]((_0x1b6fb8,_0x478a70,_0x19505c)=>{const _0x3b3899=_0x2c4da6;this[_0x3b3899(0xeb)](_0x19505c),this[_0x3b3899(0x164)](_0x19505c);}),_0x5987c6['delete'](_0x2e49be),this['_otherFormulaDataMainData'][_0x2c4da6(0xe8)](_0x2e49be));}),_0x5987c6[_0x4fb0fb(0x116)]===0x0&&_0x2a2822['delete'](_0xa7dc),_0x2a2822[_0x4fb0fb(0x116)]===0x0&&this[_0x4fb0fb(0x11b)]['delete'](_0x254b8a);}}['clearOtherFormulaDependency'](_0x1858cc,_0x16697a){const _0x1f689a=_0x35004a,_0x6dabb6=this[_0x1f689a(0x11b)][_0x1f689a(0x126)](_0x1858cc);if(_0x16697a&&_0x6dabb6&&_0x6dabb6[_0x1f689a(0xf9)](_0x16697a)){const _0x24da53=_0x6dabb6['get'](_0x16697a);this[_0x1f689a(0x115)](_0x1858cc,_0x16697a);for(const _0x1f83b2 of _0x24da53[_0x1f689a(0x10d)]()){const _0x1362b7=_0x24da53[_0x1f689a(0x126)](_0x1f83b2);_0x1362b7!=null&&(_0x1362b7[_0x1f689a(0xf8)]((_0x2f0c1c,_0x39e15f,_0x2f13e3)=>{const _0xf38adf=_0x1f689a;this[_0xf38adf(0x130)][_0xf38adf(0x126)](_0x2f13e3)&&this[_0xf38adf(0x164)](_0x2f13e3);}),this['_otherFormulaDataMainData'][_0x1f689a(0xe8)](_0x1f83b2));}_0x24da53['clear']();}else{if(_0x6dabb6){for(const _0x5bd5c6 of _0x6dabb6[_0x1f689a(0x10d)]()){const _0x46607b=_0x6dabb6[_0x1f689a(0x126)](_0x5bd5c6);this[_0x1f689a(0x115)](_0x1858cc,_0x5bd5c6);for(const _0xbb405d of _0x46607b[_0x1f689a(0x10d)]()){const _0x2f5e88=_0x46607b[_0x1f689a(0x126)](_0xbb405d);_0x2f5e88!=null&&(_0x2f5e88[_0x1f689a(0xf8)]((_0x5e1a8b,_0x3b0ee5,_0xabf38d)=>{const _0x1f806e=_0x1f689a;this[_0x1f806e(0x130)][_0x1f806e(0x126)](_0xabf38d)&&this['_removeAllTreeMap'](_0xabf38d);}),this[_0x1f689a(0xef)][_0x1f689a(0xe8)](_0xbb405d));}}this[_0x1f689a(0x11b)][_0x1f689a(0xe8)](_0x1858cc);}}}[_0x35004a(0xaf)](_0x562af0,_0x21481f,_0x146fff,_0x58404b){const _0x3e6a9e=_0x35004a;this[_0x3e6a9e(0xdf)]['has'](_0x562af0)||this[_0x3e6a9e(0xdf)]['set'](_0x562af0,new Map());const _0x3a295c=this[_0x3e6a9e(0xdf)][_0x3e6a9e(0x126)](_0x562af0);_0x3a295c['has'](_0x21481f)||_0x3a295c[_0x3e6a9e(0x107)](_0x21481f,new Map()),_0x3a295c[_0x3e6a9e(0x126)](_0x21481f)[_0x3e6a9e(0x107)](_0x146fff,_0x58404b[_0x3e6a9e(0xe6)]);}[_0x35004a(0xd0)](_0x1e2c33,_0xfeb95d,_0x311633){const _0x448501=_0x35004a,_0x49cbd2=this[_0x448501(0xdf)][_0x448501(0x126)](_0x1e2c33);if(_0x49cbd2&&_0x49cbd2[_0x448501(0xf9)](_0xfeb95d)){const _0x36113f=_0x49cbd2[_0x448501(0x126)](_0xfeb95d);_0x311633[_0x448501(0x128)](_0x50f955=>{const _0x368cb8=_0x448501,_0x1d11e4=_0x36113f[_0x368cb8(0x126)](_0x50f955);_0x1d11e4!=null&&(this[_0x368cb8(0xeb)](_0x1d11e4),_0x36113f[_0x368cb8(0xe8)](_0x50f955),this[_0x368cb8(0x164)](_0x1d11e4));});}}[_0x35004a(0xad)](_0x1b14f4,_0x3207a5){const _0x236202=_0x35004a,_0x5971ec=this[_0x236202(0xdf)]['get'](_0x1b14f4);if(_0x3207a5&&_0x5971ec&&_0x5971ec['has'](_0x3207a5)){const _0x89c3a6=_0x5971ec['get'](_0x3207a5);this[_0x236202(0x115)](_0x1b14f4,_0x3207a5),_0x89c3a6[_0x236202(0x128)](_0x8a62f5=>{_0x8a62f5!=null&&this['_removeAllTreeMap'](_0x8a62f5);}),_0x89c3a6[_0x236202(0xc6)]();}else _0x5971ec&&(_0x5971ec[_0x236202(0x128)]((_0x3c5a44,_0x18d645)=>{this['_removeDependencyRTreeCacheById'](_0x1b14f4,_0x18d645),_0x3c5a44['forEach'](_0x42fb0d=>{const _0x116b13=_0x18a2;_0x42fb0d!=null&&this[_0x116b13(0x164)](_0x42fb0d);});}),this['_featureFormulaData'][_0x236202(0xe8)](_0x1b14f4));}[_0x35004a(0x163)](_0x51dae5,_0x598308,_0x228ed7,_0x41015a,_0x1f7cc4){const _0x31e642=_0x35004a;this[_0x31e642(0x10f)][_0x31e642(0xf9)](_0x51dae5)||this['_formulaData'][_0x31e642(0x107)](_0x51dae5,new Map());const _0x58daf8=this[_0x31e642(0x10f)][_0x31e642(0x126)](_0x51dae5);_0x58daf8[_0x31e642(0xf9)](_0x598308)||_0x58daf8[_0x31e642(0x107)](_0x598308,new _0x289ba7[(_0x31e642(0x13b))]()),_0x58daf8[_0x31e642(0x126)](_0x598308)[_0x31e642(0x157)](_0x228ed7,_0x41015a,_0x1f7cc4[_0x31e642(0xe6)]);}[_0x35004a(0x158)](_0x4701cb,_0x5c4b0f,_0xc290ab,_0x5d339f){const _0x5cc498=_0x35004a,_0x3ef021=this[_0x5cc498(0x10f)][_0x5cc498(0x126)](_0x4701cb);if(_0x3ef021&&_0x3ef021[_0x5cc498(0xf9)](_0x5c4b0f)){const _0x1d6434=_0x3ef021[_0x5cc498(0x126)](_0x5c4b0f),_0x137733=_0x1d6434['getValue'](_0xc290ab,_0x5d339f);if(_0x137733==null)return;this[_0x5cc498(0xeb)](_0x137733),_0x1d6434[_0x5cc498(0x144)](_0xc290ab,_0x5d339f),this[_0x5cc498(0x164)](_0x137733);}}[_0x35004a(0x12b)](_0x2dec50,_0x5ca10e){const _0x3d6183=_0x35004a,_0x430e45=this['_formulaData']['get'](_0x2dec50);if(_0x5ca10e&&_0x430e45&&_0x430e45[_0x3d6183(0xf9)](_0x5ca10e)){const _0x3de7d1=_0x430e45[_0x3d6183(0x126)](_0x5ca10e);this[_0x3d6183(0x115)](_0x2dec50,_0x5ca10e),_0x3de7d1[_0x3d6183(0xf8)]((_0xbb5d1f,_0x2b0b5f,_0x3e30fd)=>{if(_0x3e30fd==null)return!0x0;this['_removeAllTreeMap'](_0x3e30fd);}),_0x3de7d1[_0x3d6183(0x11d)]();}else _0x430e45&&(_0x430e45[_0x3d6183(0x128)]((_0x431966,_0x1b7c8b)=>{const _0x4fea68=_0x3d6183;this[_0x4fea68(0x115)](_0x2dec50,_0x1b7c8b),_0x431966[_0x4fea68(0xf8)]((_0x228d5d,_0x538e68,_0x141452)=>{const _0x53284a=_0x4fea68;if(_0x141452==null)return!0x0;this[_0x53284a(0x164)](_0x141452);});}),this[_0x3d6183(0x10f)]['delete'](_0x2dec50));}[_0x35004a(0xeb)](_0x1091d5){const _0x5d0708=_0x35004a;if(_0x1091d5==null)return;const _0x3bc203=this['_allTreeMap'][_0x5d0708(0x126)](_0x1091d5);if(_0x3bc203){const _0x3d1a4a=[];for(const [_0x3bdb73,_0x2f46ea]of _0x3bc203)for(const [_0x18dca0,_0x4c60e1]of _0x2f46ea)_0x3d1a4a[_0x5d0708(0x109)]({'unitId':_0x3bdb73,'sheetId':_0x18dca0,'range':_0x4c60e1,'id':_0x1091d5});this[_0x5d0708(0x108)][_0x5d0708(0xd6)](_0x3d1a4a);}}[_0x35004a(0xbb)](_0x4f4bd5,_0xfa0f5e){const _0x237fe3=_0x35004a,_0x4f25d6=this['_definedNameMap'][_0x237fe3(0x126)](_0x4f4bd5);if(_0x4f25d6){const _0x5ce22a=_0x4f25d6[_0x237fe3(0x126)](_0xfa0f5e);if(_0x5ce22a){for(const _0x16ccf3 of _0x5ce22a)this[_0x237fe3(0xeb)](_0x16ccf3),this[_0x237fe3(0x164)](_0x16ccf3);_0x5ce22a[_0x237fe3(0xc6)]();}}}[_0x35004a(0xce)](){const _0x391c7b=_0x35004a;this[_0x391c7b(0x108)][_0x391c7b(0xce)]();}[_0x35004a(0x129)](){const _0x52900e=_0x35004a;this['_dependencyRTreeCache'][_0x52900e(0x129)]();}[_0x35004a(0x164)](_0x550555){const _0x4b988b=_0x35004a;_0x550555!=null&&this[_0x4b988b(0x130)][_0x4b988b(0xe8)](_0x550555);}['_addAllTreeMap'](_0x3f4520){const _0x48919c=_0x35004a;var _0x53cebc,_0x58959e;const _0x4349e4=_0x3f4520['rangeList'];let _0x240c72=this['_allTreeMap']['get'](_0x3f4520['treeId']);for(let _0x36b2d1=0x0;_0x36b2d1<_0x4349e4[_0x48919c(0xc5)];_0x36b2d1++){const _0x178f79=_0x4349e4[_0x36b2d1];let {unitId:_0x27a0b8,sheetId:_0x259a36,range:_0x397d41}=_0x178f79;_0x240c72||(_0x240c72=new Map(),this[_0x48919c(0x130)]['set'](_0x3f4520[_0x48919c(0xe6)],_0x240c72)),_0x240c72['has'](_0x27a0b8)||_0x240c72[_0x48919c(0x107)](_0x27a0b8,new Map());const _0x3e9732=(_0x53cebc=_0x240c72==null?void 0x0:_0x240c72[_0x48919c(0x126)](_0x27a0b8))==null?void 0x0:_0x53cebc[_0x48919c(0x126)](_0x259a36);_0x3e9732&&(_0x397d41={'startRow':Math[_0x48919c(0x160)](_0x397d41[_0x48919c(0xe9)],_0x3e9732[_0x48919c(0xe9)]),'startColumn':Math[_0x48919c(0x160)](_0x397d41[_0x48919c(0xd9)],_0x3e9732[_0x48919c(0xd9)]),'endRow':Math[_0x48919c(0xe1)](_0x397d41['endRow'],_0x3e9732[_0x48919c(0xaa)]),'endColumn':Math[_0x48919c(0xe1)](_0x397d41[_0x48919c(0x150)],_0x3e9732[_0x48919c(0x150)])}),(_0x58959e=_0x240c72[_0x48919c(0x126)](_0x27a0b8))==null||_0x58959e[_0x48919c(0x107)](_0x259a36,_0x397d41);}}}var _0x3d555b=Object[_0x35004a(0xf0)],_0x7a2500=Object[_0x35004a(0xea)],_0x10f64d=(_0x27b920,_0x763747,_0x5a5f4d,_0x15d5ac)=>{for(var _0x3123e3=_0x15d5ac>0x1?void 0x0:_0x15d5ac?_0x7a2500(_0x763747,_0x5a5f4d):_0x763747,_0x3d2fc1=_0x27b920['length']-0x1,_0x29b27d;_0x3d2fc1>=0x0;_0x3d2fc1--)(_0x29b27d=_0x27b920[_0x3d2fc1])&&(_0x3123e3=(_0x15d5ac?_0x29b27d(_0x763747,_0x5a5f4d,_0x3123e3):_0x29b27d(_0x3123e3))||_0x3123e3);return _0x15d5ac&&_0x3123e3&&_0x3d555b(_0x763747,_0x5a5f4d,_0x3123e3),_0x3123e3;};_0x27c18d[_0x35004a(0xf1)]=class extends _0xc28445[_0x35004a(0x156)]{[_0x35004a(0x155)](){const _0x4479fb=_0x35004a;var _0x57b172,_0x46cb42;this[_0x4479fb(0x103)]()?(_0x57b172=this[_0x4479fb(0x135)])!=null&&_0x57b172[_0x4479fb(0x14a)]||[[_0xc28445[_0x4479fb(0x161)],{'useClass':_0x1e52cb}],[_0xc28445['IDependencyManagerService'],{'useClass':_0x14e488}],[_0xc28445[_0x4479fb(0x13d)],{'useClass':_0x57502f}]][_0x4479fb(0x128)](_0xdd0504=>this[_0x4479fb(0x148)][_0x4479fb(0xcc)](_0xdd0504)):(_0x46cb42=this[_0x4479fb(0x135)])!=null&&_0x46cb42['notExecuteFormula']||[[_0xc28445['ICalculateFormulaService'],{'useClass':_0xc28445[_0x4479fb(0xb0)]}],[_0xc28445[_0x4479fb(0xed)],{'useClass':_0xc28445[_0x4479fb(0xda)]}],[_0xc28445['IFormulaDependencyGenerator'],{'useClass':_0xc28445[_0x4479fb(0xb7)]}]]['forEach'](_0x30bf97=>this[_0x4479fb(0x148)][_0x4479fb(0xcc)](_0x30bf97));}[_0x35004a(0x103)](){const _0xac4814=_0x35004a;var _0xee4812;const _0x586557=(_0xee4812=this[_0xac4814(0x162)][_0xac4814(0x127)](_0x130fbb['LS_CONFIG_KEY']))!=null?_0xee4812:{},{ls:_0x2a7127,pbk:_0x2a03b5,tvld:_0x3ca2e9}=_0x586557;if(!_0x2a7127||!_0x2a03b5)return!0x1;const _0x5f25c4=_0x130fbb[_0xac4814(0x101)](_0xe508b7,_0x44bacf);return new Function(_0xac4814(0xe0)+_0x5f25c4)()(_0x2a7127,_0x2a03b5)[_0xac4814(0xb2)];}},_0x27c18d[_0x35004a(0xf1)]=_0x10f64d([_0x289ba7[_0x35004a(0x122)](_0x130fbb[_0x35004a(0x124)])],_0x27c18d[_0x35004a(0xf1)]),Object['defineProperty'](_0x27c18d,Symbol[_0x35004a(0xb6)],{'value':'Module'});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/engine-formula",
3
- "version": "0.4.2-nightly.202411091134",
3
+ "version": "0.5.0-alpha.0",
4
4
  "private": false,
5
5
  "description": "UniverSheet pro base-formula-engine",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -47,16 +47,16 @@
47
47
  "rxjs": ">=7.0.0"
48
48
  },
49
49
  "dependencies": {
50
- "@univerjs-pro/license": "0.4.2-nightly.202411091134",
51
- "@univerjs/core": "0.4.2-nightly.202411091134",
52
- "@univerjs/engine-formula": "0.4.2-nightly.202411091134"
50
+ "@univerjs/core": "0.5.0-alpha.0",
51
+ "@univerjs-pro/license": "0.5.0-alpha.0",
52
+ "@univerjs/engine-formula": "0.5.0-alpha.0"
53
53
  },
54
54
  "devDependencies": {
55
55
  "rxjs": "^7.8.1",
56
56
  "typescript": "^5.6.3",
57
57
  "vite": "^5.4.10",
58
58
  "vitest": "^2.1.4",
59
- "@univerjs-infra/shared": "0.4.2"
59
+ "@univerjs-infra/shared": "0.5.0-alpha.0"
60
60
  },
61
61
  "space": {
62
62
  ".": {