@univerjs-pro/docs-formula 1.0.4 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2549a9=_0x4396;(function(_0x2883dc,_0x5b758f){const _0x58fb75=_0x4396,_0xd581b2=_0x2883dc();while(!![]){try{const _0x535977=-parseInt(_0x58fb75(0xe3))/0x1*(-parseInt(_0x58fb75(0x10e))/0x2)+parseInt(_0x58fb75(0xde))/0x3*(parseInt(_0x58fb75(0x114))/0x4)+-parseInt(_0x58fb75(0xdc))/0x5*(parseInt(_0x58fb75(0xcf))/0x6)+parseInt(_0x58fb75(0x105))/0x7+-parseInt(_0x58fb75(0x117))/0x8*(-parseInt(_0x58fb75(0x106))/0x9)+-parseInt(_0x58fb75(0xf0))/0xa*(-parseInt(_0x58fb75(0x100))/0xb)+-parseInt(_0x58fb75(0xda))/0xc*(parseInt(_0x58fb75(0x112))/0xd);if(_0x535977===_0x5b758f)break;else _0xd581b2['push'](_0xd581b2['shift']());}catch(_0x586083){_0xd581b2['push'](_0xd581b2['shift']());}}}(_0x277d,0xa292e),Object[_0x2549a9(0x10f)](exports,Symbol[_0x2549a9(0xd2)],{'value':_0x2549a9(0xd9)}));let e=require('@univerjs-pro/docs-formula'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x4c3bb8,_0xd726de){return function(_0x221f32,_0x30e2f4){_0xd726de(_0x221f32,_0x30e2f4,_0x4c3bb8);};}function _0x4396(_0x4221e2,_0x56496a){_0x4221e2=_0x4221e2-0xce;const _0x277d6d=_0x277d();let _0x4396fb=_0x277d6d[_0x4221e2];return _0x4396fb;}function i(_0x2f99ed,_0xbc0caf,_0x5eeae4,_0x189556){const _0x4d6bfc=_0x2549a9;var _0x322943=arguments[_0x4d6bfc(0xdb)],_0x3d6ca6=_0x322943<0x3?_0xbc0caf:_0x189556===null?_0x189556=Object[_0x4d6bfc(0x101)](_0xbc0caf,_0x5eeae4):_0x189556,_0x3b26ae;if(typeof Reflect==_0x4d6bfc(0xf9)&&typeof Reflect[_0x4d6bfc(0xf8)]==_0x4d6bfc(0xe6))_0x3d6ca6=Reflect[_0x4d6bfc(0xf8)](_0x2f99ed,_0xbc0caf,_0x5eeae4,_0x189556);else{for(var _0x14b3cc=_0x2f99ed[_0x4d6bfc(0xdb)]-0x1;_0x14b3cc>=0x0;_0x14b3cc--)(_0x3b26ae=_0x2f99ed[_0x14b3cc])&&(_0x3d6ca6=(_0x322943<0x3?_0x3b26ae(_0x3d6ca6):_0x322943>0x3?_0x3b26ae(_0xbc0caf,_0x5eeae4,_0x3d6ca6):_0x3b26ae(_0xbc0caf,_0x5eeae4))||_0x3d6ca6);}return _0x322943>0x3&&_0x3d6ca6&&Object[_0x4d6bfc(0x10f)](_0xbc0caf,_0x5eeae4,_0x3d6ca6),_0x3d6ca6;}let a=class{constructor(_0x2912dd,_0x2c88de,_0x21c954,_0x3dcd6e,_0x158e34,_0x387f6c){const _0x5a1033=_0x2549a9;this[_0x5a1033(0x109)]=_0x2912dd,this[_0x5a1033(0x130)]=_0x2c88de,this[_0x5a1033(0x111)]=_0x21c954,this[_0x5a1033(0xf3)]=_0x3dcd6e,this[_0x5a1033(0x11b)]=_0x158e34,this[_0x5a1033(0x12a)]=_0x387f6c;}[_0x2549a9(0xf7)](){const _0x126e19=_0x2549a9;return this[_0x126e19(0x130)];}[_0x2549a9(0x12b)](){const _0x31a5d2=_0x2549a9;let _0x3930ae=this[_0x31a5d2(0xe2)]();return _0x3930ae?{'endOffset':_0x3930ae['endIndex']+0x1,'rangeId':_0x3930ae[_0x31a5d2(0xef)],'startOffset':_0x3930ae[_0x31a5d2(0xd6)]}:null;}[_0x2549a9(0xe4)](){const _0x18d6b7=_0x2549a9;var _0x540517;return((_0x540517=this[_0x18d6b7(0xf3)][_0x18d6b7(0xe4)](this[_0x18d6b7(0x109)],this[_0x18d6b7(0x130)]))==null?void 0x0:_0x540517['formula'])??'';}[_0x2549a9(0xf5)](){const _0x127649=_0x2549a9;return this['_model'][_0x127649(0xe4)](this[_0x127649(0x109)],this['_rangeId'])??null;}['getResult'](){const _0x2f845c=_0x2549a9;return this[_0x2f845c(0x11b)]['getResult']({'unitId':this[_0x2f845c(0x109)],'rangeId':this[_0x2f845c(0x130)]})??null;}['describe'](){const _0x571285=_0x2549a9;let _0x5404b2=this[_0x571285(0x12b)](),_0x2d5360=this[_0x571285(0xf5)](),_0x752601=this[_0x571285(0xf4)]();return!_0x5404b2||!_0x2d5360||!_0x752601?null:{..._0x5404b2,'config':_0x2d5360,'formula':_0x2d5360[_0x571285(0xd7)],'result':_0x752601,'type':'formula'};}[_0x2549a9(0xd8)](_0x737b44){const _0x1b1d88=_0x2549a9;return this['_commandService'][_0x1b1d88(0x127)](e[_0x1b1d88(0x123)]['id'],{'externalReferences':_0x737b44[_0x1b1d88(0x11e)],'formula':_0x737b44[_0x1b1d88(0xd7)],'numberFormat':_0x737b44[_0x1b1d88(0xf1)],'rangeId':this[_0x1b1d88(0x130)],'unitId':this[_0x1b1d88(0x109)]});}[_0x2549a9(0xd0)](_0x54d52d){const _0x3d9c8d=_0x2549a9;return this[_0x3d9c8d(0x111)][_0x3d9c8d(0x127)](e['SetDocFormulaNumberFormatCommand']['id'],{'numberFormat':_0x54d52d,'rangeId':this['_rangeId'],'unitId':this[_0x3d9c8d(0x109)]});}[_0x2549a9(0xf2)](){const _0x2c98ed=_0x2549a9;return this['_commandService'][_0x2c98ed(0x127)](e[_0x2c98ed(0x104)]['id'],{'rangeId':this[_0x2c98ed(0x130)],'unitId':this[_0x2c98ed(0x109)]});}[_0x2549a9(0x11a)](_0x1140bd){const _0x5205bd=_0x2549a9;return this[_0x5205bd(0x111)][_0x5205bd(0x127)](e[_0x5205bd(0x11d)]['id'],{'rangeId':this[_0x5205bd(0x130)],'text':_0x1140bd,'unitId':this['_unitId']});}['convertToText'](){const _0x4d8003=_0x2549a9;return this[_0x4d8003(0x111)][_0x4d8003(0x127)](e[_0x4d8003(0x11c)]['id'],{'rangeId':this[_0x4d8003(0x130)],'unitId':this[_0x4d8003(0x109)]});}[_0x2549a9(0xe2)](){const _0x3fa219=_0x2549a9;var _0x3ae86a;let _0x44746b=this['_univerInstanceService'][_0x3fa219(0x10d)](this['_unitId'],t[_0x3fa219(0xd4)][_0x3fa219(0x116)]);return _0x44746b==null||(_0x3ae86a=_0x44746b['getSnapshot']()[_0x3fa219(0x103)])==null||(_0x3ae86a=_0x3ae86a[_0x3fa219(0xec)])==null?void 0x0:_0x3ae86a[_0x3fa219(0xfa)](_0x1fb243=>_0x1fb243['rangeId']===this['_rangeId']&&(0x0,e[_0x3fa219(0xea)])(_0x1fb243));}};a=i([r(0x2,t[_0x2549a9(0x11f)]),r(0x3,(0x0,t['Inject'])(e['DocFormulaModel'])),r(0x4,(0x0,t[_0x2549a9(0xfd)])(e[_0x2549a9(0x113)])),r(0x5,t['IUniverInstanceService'])],a);function o(_0x312a41){'@babel/helpers - typeof';const _0x5e90d8=_0x2549a9;return o=typeof Symbol==_0x5e90d8(0xe6)&&typeof Symbol[_0x5e90d8(0xee)]==_0x5e90d8(0xe9)?function(_0x2aac3b){return typeof _0x2aac3b;}:function(_0x516499){const _0x2a0cfe=_0x5e90d8;return _0x516499&&typeof Symbol==_0x2a0cfe(0xe6)&&_0x516499['constructor']===Symbol&&_0x516499!==Symbol[_0x2a0cfe(0x108)]?_0x2a0cfe(0xe9):typeof _0x516499;},o(_0x312a41);}function s(_0x217c82,_0x17ab8e){const _0x2bcf6e=_0x2549a9;if(o(_0x217c82)!=_0x2bcf6e(0xf9)||!_0x217c82)return _0x217c82;var _0x3851ff=_0x217c82[Symbol[_0x2bcf6e(0x124)]];if(_0x3851ff!==void 0x0){var _0x3a1ae4=_0x3851ff['call'](_0x217c82,_0x17ab8e||_0x2bcf6e(0x12f));if(o(_0x3a1ae4)!='object')return _0x3a1ae4;throw TypeError(_0x2bcf6e(0x12c));}return(_0x17ab8e==='string'?String:Number)(_0x217c82);}function c(_0x5adfda){const _0x35d858=_0x2549a9;var _0x1305e4=s(_0x5adfda,_0x35d858(0x12d));return o(_0x1305e4)==_0x35d858(0xe9)?_0x1305e4:_0x1305e4+'';}function l(_0x3d1ce0,_0x2aadb9,_0x29b840){const _0x3812c7=_0x2549a9;return(_0x2aadb9=c(_0x2aadb9))in _0x3d1ce0?Object[_0x3812c7(0x10f)](_0x3d1ce0,_0x2aadb9,{'value':_0x29b840,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3d1ce0[_0x2aadb9]=_0x29b840,_0x3d1ce0;}var u=class extends n[_0x2549a9(0x122)]{constructor(..._0x8d41d8){const _0x5b90de=_0x2549a9;super(..._0x8d41d8),l(this,_0x5b90de(0x102),void 0x0),l(this,_0x5b90de(0x120),void 0x0),l(this,_0x5b90de(0xfc),void 0x0),l(this,'_docsFormulaResourceLoaderService',void 0x0);}[_0x2549a9(0xeb)](_0x28ca65){const _0xdbcf82=_0x2549a9;this[_0xdbcf82(0x102)]=_0x28ca65[_0xdbcf82(0xe7)](t[_0xdbcf82(0x11f)]),this[_0xdbcf82(0x120)]=_0x28ca65[_0xdbcf82(0xe7)](e[_0xdbcf82(0x10c)]),this['_docsFormulaModel']=_0x28ca65['get'](e['DocFormulaModel']),this[_0xdbcf82(0xe5)]=_0x28ca65[_0xdbcf82(0xe7)](t[_0xdbcf82(0x118)]);}[_0x2549a9(0x119)](){const _0x3f3ac5=_0x2549a9;return this[_0x3f3ac5(0xce)]()['map'](_0xfae865=>this[_0x3f3ac5(0xed)](_0xfae865[_0x3f3ac5(0xef)]));}[_0x2549a9(0xe4)](_0x16bc47){const _0x5ccc73=_0x2549a9;return this[_0x5ccc73(0xce)]()[_0x5ccc73(0x10a)](_0x37448e=>_0x37448e[_0x5ccc73(0xef)]===_0x16bc47)?this[_0x5ccc73(0xed)](_0x16bc47):null;}[_0x2549a9(0xff)](_0x5a624f){const _0x3d341d=_0x2549a9;let _0x1befc4=this[_0x3d341d(0xce)]()['find'](_0x1b0831=>_0x1b0831['startIndex']<=_0x5a624f&&_0x5a624f<=_0x1b0831[_0x3d341d(0x121)]);return _0x1befc4?this['_createFormula'](_0x1befc4['rangeId']):null;}[_0x2549a9(0x115)](){const _0x592b00=_0x2549a9;let _0x48d2fa=this['_docsFormulaResourceLoaderService'][_0x592b00(0x129)](this['id']);if(!_0x48d2fa)throw Error(_0x592b00(0xfb)+this['id']+_0x592b00(0x126));return this['_docsFormulaDisplayTextService'][_0x592b00(0xf6)](_0x48d2fa);}[_0x2549a9(0x125)](_0x426cb0){const _0xb3145e=_0x2549a9;return this['_insert']({'externalReferences':_0x426cb0[_0xb3145e(0x11e)],'formula':_0x426cb0[_0xb3145e(0xd7)],'numberFormat':_0x426cb0[_0xb3145e(0xf1)],'target':{'type':_0xb3145e(0x131),'startOffset':_0x426cb0['startOffset'],'endOffset':_0x426cb0[_0xb3145e(0xe1)]},'unitId':this[_0xb3145e(0xf7)]()});}[_0x2549a9(0x107)](_0x58d6a8){const _0x2a7c9a=_0x2549a9;let _0x39074d=this[_0x2a7c9a(0x102)][_0x2a7c9a(0x127)](e[_0x2a7c9a(0xfe)]['id'],_0x58d6a8);return _0x39074d?this['_createFormula'](_0x39074d[_0x2a7c9a(0xef)]):null;}[_0x2549a9(0xce)](){const _0x5ecf5e=_0x2549a9;var _0x13d6d1;let _0x3c951c=this[_0x5ecf5e(0xfc)]['getFormulas'](this[_0x5ecf5e(0xf7)]());return((_0x13d6d1=this['getBody']('')[_0x5ecf5e(0xec)])==null?void 0x0:_0x13d6d1['filter'](_0x22ddd5=>(0x0,e[_0x5ecf5e(0xea)])(_0x22ddd5)&&_0x3c951c[_0x22ddd5['rangeId']]!=null))??[];}[_0x2549a9(0xed)](_0x277888){const _0xd86fc8=_0x2549a9;return this[_0xd86fc8(0xd3)][_0xd86fc8(0xdd)](a,this['getId'](),_0x277888);}};function _0x277d(){const _0x27dc92=['_getCompleteRanges','2412hMgrPF','setNumberFormat','getSegmentId','toStringTag','_injector','UniverInstanceType','paragraph','startIndex','formula','update','Module','10428nsOrJE','length','15935huGcVu','createInstance','108000xbhpUU','FDocumentTextRange','replaceWithFormula','endOffset','_getCustomRange','3rAyFxr','getFormula','_docsFormulaResourceLoaderService','function','get','extend','symbol','isDocFormulaRange','_initialize','customRanges','_createFormula','iterator','rangeId','1310TXKLAj','numberFormat','remove','_model','getResult','getConfig','degradeDocumentData','getId','decorate','object','find','Document\x20','_docsFormulaModel','Inject','InsertDocFormulaCommand','getFormulaAt','66363wPsZmV','getOwnPropertyDescriptor','_docsFormulaCommandService','body','RemoveDocFormulaCommand','8656340twfFfI','9wSbcXO','_insert','prototype','_unitId','some','end','DocFormulaDisplayTextService','getUnit','728162LdNSly','defineProperty','_document','_commandService','35893OAMcEC','DocFormulaService','104CumEub','saveFormulaDisplayTextSnapshot','UNIVER_DOC','2329592avSCid','IResourceLoaderService','getFormulas','replaceWithText','_service','ConvertDocFormulaToTextCommand','ReplaceDocFormulaWithTextCommand','externalReferences','ICommandService','_docsFormulaDisplayTextService','endIndex','FDocument','UpdateDocFormulaCommand','toPrimitive','insertFormula','\x20could\x20not\x20be\x20serialized.','syncExecuteCommand','appendFormula','saveUnit','_univerInstanceService','getRange','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','string','FDocumentParagraph','default','_rangeId','range'];_0x277d=function(){return _0x27dc92;};return _0x277d();}n['FDocument'][_0x2549a9(0xe8)](u);var d=class extends n[_0x2549a9(0x12e)]{constructor(..._0x5bd75f){const _0xb79ea0=_0x2549a9;super(..._0x5bd75f),l(this,_0xb79ea0(0x102),void 0x0);}['_initialize'](_0x1d0c71){const _0x22b8cb=_0x2549a9;this[_0x22b8cb(0x102)]=_0x1d0c71[_0x22b8cb(0xe7)](t[_0x22b8cb(0x11f)]);}[_0x2549a9(0x125)](_0x49d9f1,_0x4e409d,_0xaf04df={}){const _0x11d787=_0x2549a9;return this[_0x11d787(0x107)](_0x49d9f1,_0x4e409d,_0xaf04df);}[_0x2549a9(0x128)](_0x3daf3b,_0x1f7e66={}){const _0x23be40=_0x2549a9;return this[_0x23be40(0x107)](_0x23be40(0x10b),_0x3daf3b,_0x1f7e66);}['_insert'](_0x3d30a7,_0x53abee,_0x36ae37){const _0x4b925a=_0x2549a9;if(this[_0x4b925a(0xd1)]())return null;let _0x5a4393={'externalReferences':_0x36ae37[_0x4b925a(0x11e)],'formula':_0x53abee,'numberFormat':_0x36ae37[_0x4b925a(0xf1)],'target':{'type':_0x4b925a(0xd5),'paragraphId':this['getId'](),'position':_0x3d30a7},'unitId':this[_0x4b925a(0x110)][_0x4b925a(0xf7)]()},_0x4885b3=this[_0x4b925a(0x102)]['syncExecuteCommand'](e[_0x4b925a(0xfe)]['id'],_0x5a4393);return _0x4885b3?this[_0x4b925a(0xd3)][_0x4b925a(0xdd)](a,this['_document'][_0x4b925a(0xf7)](),_0x4885b3[_0x4b925a(0xef)]):null;}};n[_0x2549a9(0x12e)]['extend'](d);var f=class extends n['FDocumentTextRange']{constructor(..._0x20bff9){const _0x3e5251=_0x2549a9;super(..._0x20bff9),l(this,_0x3e5251(0x102),void 0x0);}[_0x2549a9(0xeb)](_0x1f9e01){const _0x231f96=_0x2549a9;this[_0x231f96(0x102)]=_0x1f9e01['get'](t[_0x231f96(0x11f)]);}[_0x2549a9(0xe0)](_0x5a8936,_0x521dab={}){const _0x8c4ac5=_0x2549a9;let {endOffset:_0x36340c,segmentId:_0x3bb04f,startOffset:_0x11147d}=this['getRange']();return _0x3bb04f?null:this[_0x8c4ac5(0x107)](_0x11147d,_0x36340c,_0x5a8936,_0x521dab);}['_insert'](_0x50a2ab,_0x354d4c,_0x4f310e,_0x42e320){const _0x219ea3=_0x2549a9;let _0x51d84a={'externalReferences':_0x42e320['externalReferences'],'formula':_0x4f310e,'numberFormat':_0x42e320[_0x219ea3(0xf1)],'target':{'type':_0x219ea3(0x131),'startOffset':_0x50a2ab,'endOffset':_0x354d4c},'unitId':this[_0x219ea3(0x110)][_0x219ea3(0xf7)]()},_0x26b21e=this[_0x219ea3(0x102)][_0x219ea3(0x127)](e[_0x219ea3(0xfe)]['id'],_0x51d84a);return _0x26b21e?this[_0x219ea3(0xd3)][_0x219ea3(0xdd)](a,this[_0x219ea3(0x110)][_0x219ea3(0xf7)](),_0x26b21e[_0x219ea3(0xef)]):null;}};n[_0x2549a9(0xdf)][_0x2549a9(0xe8)](f),Object[_0x2549a9(0x10f)](exports,'FDocumentFormula',{'enumerable':!0x0,'get':function(){return a;}});
|
|
1
|
+
const _0x24903e=_0x54c1;(function(_0x415dbb,_0x2c6c4e){const _0x9ff481=_0x54c1,_0x3fd3bf=_0x415dbb();while(!![]){try{const _0x3919ff=parseInt(_0x9ff481(0x176))/0x1+-parseInt(_0x9ff481(0x191))/0x2+-parseInt(_0x9ff481(0x18c))/0x3+parseInt(_0x9ff481(0x168))/0x4+-parseInt(_0x9ff481(0x1a7))/0x5+-parseInt(_0x9ff481(0x1aa))/0x6*(-parseInt(_0x9ff481(0x1ab))/0x7)+parseInt(_0x9ff481(0x1ae))/0x8;if(_0x3919ff===_0x2c6c4e)break;else _0x3fd3bf['push'](_0x3fd3bf['shift']());}catch(_0x4369fc){_0x3fd3bf['push'](_0x3fd3bf['shift']());}}}(_0x4c32,0x866a5),Object[_0x24903e(0x1ad)](exports,Symbol[_0x24903e(0x180)],{'value':'Module'}));let e=require('@univerjs-pro/docs-formula'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function _0x4c32(){const _0x19362a=['_commandService','Document\x20','ReplaceDocFormulaWithTextCommand','getSegmentId','825660fgsETl','get','range','getSnapshot','isDocFormulaRange','IUniverInstanceService','some','_initialize','prototype','FDocumentFormula','toStringTag','syncExecuteCommand','_model','find','remove','formula','filter','getConfig','_docsFormulaCommandService','IResourceLoaderService','iterator','symbol','2470101gAwmFf','saveFormulaDisplayTextSnapshot','endIndex','getUnit','saveUnit','795458vhuBUC','string','object','convertToText','externalReferences','default','_injector','numberFormat','getOwnPropertyDescriptor','endOffset','getRange','_docsFormulaDisplayTextService','setNumberFormat','decorate','_docsFormulaResourceLoaderService','end','_univerInstanceService','paragraph','_createFormula','constructor','customRanges','_docsFormulaModel','2893305cpgxmN','RemoveDocFormulaCommand','extend','12wgFleL','420875nyPukR','getBody','defineProperty','2614072KvkVKI','getFormulas','_service','_getCompleteRanges','length','startOffset','_document','DocFormulaService','createInstance','ICommandService','getId','FDocumentParagraph','_insert','DocFormulaModel','replaceWithFormula','startIndex','replaceWithText','rangeId','FDocumentTextRange','InsertDocFormulaCommand','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Inject','map','4310612wAspHc','DocFormulaDisplayTextService','toPrimitive','_unitId','function','insertFormula','_rangeId','_getCustomRange','getResult','getFormula'];_0x4c32=function(){return _0x19362a;};return _0x4c32();}function r(_0x229734,_0x306ce4){return function(_0x33b85f,_0x586f7c){_0x306ce4(_0x33b85f,_0x586f7c,_0x229734);};}function i(_0x489dbb,_0x179388,_0x4ea6b8,_0x188528){const _0x5611f9=_0x24903e;var _0x155353=arguments['length'],_0x5bcfe9=_0x155353<0x3?_0x179388:_0x188528===null?_0x188528=Object[_0x5611f9(0x199)](_0x179388,_0x4ea6b8):_0x188528,_0x2bc02c;if(typeof Reflect==_0x5611f9(0x193)&&typeof Reflect[_0x5611f9(0x19e)]==_0x5611f9(0x16c))_0x5bcfe9=Reflect[_0x5611f9(0x19e)](_0x489dbb,_0x179388,_0x4ea6b8,_0x188528);else{for(var _0x2bd1e8=_0x489dbb[_0x5611f9(0x155)]-0x1;_0x2bd1e8>=0x0;_0x2bd1e8--)(_0x2bc02c=_0x489dbb[_0x2bd1e8])&&(_0x5bcfe9=(_0x155353<0x3?_0x2bc02c(_0x5bcfe9):_0x155353>0x3?_0x2bc02c(_0x179388,_0x4ea6b8,_0x5bcfe9):_0x2bc02c(_0x179388,_0x4ea6b8))||_0x5bcfe9);}return _0x155353>0x3&&_0x5bcfe9&&Object[_0x5611f9(0x1ad)](_0x179388,_0x4ea6b8,_0x5bcfe9),_0x5bcfe9;}let a=class{constructor(_0x587841,_0x1ad007,_0x903bda,_0x5c7e42,_0x547709,_0x1721ae){const _0x491408=_0x24903e;this[_0x491408(0x16b)]=_0x587841,this['_rangeId']=_0x1ad007,this['_commandService']=_0x903bda,this[_0x491408(0x182)]=_0x5c7e42,this[_0x491408(0x1b0)]=_0x547709,this[_0x491408(0x1a1)]=_0x1721ae;}[_0x24903e(0x15b)](){const _0x59bb2e=_0x24903e;return this[_0x59bb2e(0x16e)];}[_0x24903e(0x19b)](){const _0x90f017=_0x24903e;let _0x934e50=this[_0x90f017(0x16f)]();return _0x934e50?{'endOffset':_0x934e50[_0x90f017(0x18e)]+0x1,'rangeId':_0x934e50[_0x90f017(0x162)],'startOffset':_0x934e50['startIndex']}:null;}[_0x24903e(0x171)](){const _0x35e927=_0x24903e;var _0xa9d1e8;return((_0xa9d1e8=this[_0x35e927(0x182)][_0x35e927(0x171)](this[_0x35e927(0x16b)],this[_0x35e927(0x16e)]))==null?void 0x0:_0xa9d1e8['formula'])??'';}['getConfig'](){const _0x27b2e3=_0x24903e;return this[_0x27b2e3(0x182)][_0x27b2e3(0x171)](this['_unitId'],this[_0x27b2e3(0x16e)])??null;}[_0x24903e(0x170)](){const _0x3547af=_0x24903e;return this['_service'][_0x3547af(0x170)]({'unitId':this[_0x3547af(0x16b)],'rangeId':this[_0x3547af(0x16e)]})??null;}['describe'](){const _0x2209e3=_0x24903e;let _0x50d0a2=this['getRange'](),_0x2ff235=this[_0x2209e3(0x187)](),_0x5510c4=this[_0x2209e3(0x170)]();return!_0x50d0a2||!_0x2ff235||!_0x5510c4?null:{..._0x50d0a2,'config':_0x2ff235,'formula':_0x2ff235[_0x2209e3(0x185)],'result':_0x5510c4,'type':'formula'};}['update'](_0x42a70f){const _0x1548a0=_0x24903e;return this[_0x1548a0(0x172)][_0x1548a0(0x181)](e['UpdateDocFormulaCommand']['id'],{'externalReferences':_0x42a70f[_0x1548a0(0x195)],'formula':_0x42a70f[_0x1548a0(0x185)],'numberFormat':_0x42a70f['numberFormat'],'rangeId':this['_rangeId'],'unitId':this[_0x1548a0(0x16b)]});}[_0x24903e(0x19d)](_0x4f2156){const _0x6e1e17=_0x24903e;return this[_0x6e1e17(0x172)][_0x6e1e17(0x181)](e['SetDocFormulaNumberFormatCommand']['id'],{'numberFormat':_0x4f2156,'rangeId':this[_0x6e1e17(0x16e)],'unitId':this[_0x6e1e17(0x16b)]});}[_0x24903e(0x184)](){const _0x2bec5b=_0x24903e;return this[_0x2bec5b(0x172)][_0x2bec5b(0x181)](e[_0x2bec5b(0x1a8)]['id'],{'rangeId':this['_rangeId'],'unitId':this[_0x2bec5b(0x16b)]});}[_0x24903e(0x161)](_0x54d238){const _0x3c9b77=_0x24903e;return this[_0x3c9b77(0x172)][_0x3c9b77(0x181)](e[_0x3c9b77(0x174)]['id'],{'rangeId':this[_0x3c9b77(0x16e)],'text':_0x54d238,'unitId':this[_0x3c9b77(0x16b)]});}[_0x24903e(0x194)](){const _0x359c76=_0x24903e;return this[_0x359c76(0x172)][_0x359c76(0x181)](e['ConvertDocFormulaToTextCommand']['id'],{'rangeId':this[_0x359c76(0x16e)],'unitId':this[_0x359c76(0x16b)]});}[_0x24903e(0x16f)](){const _0x77d440=_0x24903e;var _0x4a2139;let _0x4165f9=this[_0x77d440(0x1a1)][_0x77d440(0x18f)](this[_0x77d440(0x16b)],t['UniverInstanceType']['UNIVER_DOC']);return _0x4165f9==null||(_0x4a2139=_0x4165f9[_0x77d440(0x179)]()['body'])==null||(_0x4a2139=_0x4a2139[_0x77d440(0x1a5)])==null?void 0x0:_0x4a2139[_0x77d440(0x183)](_0x56495f=>_0x56495f['rangeId']===this['_rangeId']&&(0x0,e[_0x77d440(0x17a)])(_0x56495f));}};a=i([r(0x2,t[_0x24903e(0x15a)]),r(0x3,(0x0,t[_0x24903e(0x166)])(e[_0x24903e(0x15e)])),r(0x4,(0x0,t[_0x24903e(0x166)])(e[_0x24903e(0x158)])),r(0x5,t[_0x24903e(0x17b)])],a);function o(_0x492787){'@babel/helpers - typeof';const _0x445a7b=_0x24903e;return o=typeof Symbol==_0x445a7b(0x16c)&&typeof Symbol[_0x445a7b(0x18a)]==_0x445a7b(0x18b)?function(_0x1d1600){return typeof _0x1d1600;}:function(_0x1dddf8){const _0x17f7f1=_0x445a7b;return _0x1dddf8&&typeof Symbol==_0x17f7f1(0x16c)&&_0x1dddf8[_0x17f7f1(0x1a4)]===Symbol&&_0x1dddf8!==Symbol[_0x17f7f1(0x17e)]?_0x17f7f1(0x18b):typeof _0x1dddf8;},o(_0x492787);}function s(_0x36a205,_0x4cf1c8){const _0x45f555=_0x24903e;if(o(_0x36a205)!='object'||!_0x36a205)return _0x36a205;var _0x5670bf=_0x36a205[Symbol[_0x45f555(0x16a)]];if(_0x5670bf!==void 0x0){var _0x4bba93=_0x5670bf['call'](_0x36a205,_0x4cf1c8||_0x45f555(0x196));if(o(_0x4bba93)!='object')return _0x4bba93;throw TypeError(_0x45f555(0x165));}return(_0x4cf1c8===_0x45f555(0x192)?String:Number)(_0x36a205);}function c(_0x4f62a9){var _0x1e7102=s(_0x4f62a9,'string');return o(_0x1e7102)=='symbol'?_0x1e7102:_0x1e7102+'';}function l(_0x54fb38,_0x1db326,_0x4d361b){const _0x5eb75a=_0x24903e;return(_0x1db326=c(_0x1db326))in _0x54fb38?Object[_0x5eb75a(0x1ad)](_0x54fb38,_0x1db326,{'value':_0x4d361b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x54fb38[_0x1db326]=_0x4d361b,_0x54fb38;}var u=class extends n['FDocument']{constructor(..._0x14dd42){const _0x1393f1=_0x24903e;super(..._0x14dd42),l(this,_0x1393f1(0x188),void 0x0),l(this,_0x1393f1(0x19c),void 0x0),l(this,'_docsFormulaModel',void 0x0),l(this,_0x1393f1(0x19f),void 0x0);}[_0x24903e(0x17d)](_0x4d09ae){const _0x38efdd=_0x24903e;this[_0x38efdd(0x188)]=_0x4d09ae['get'](t[_0x38efdd(0x15a)]),this[_0x38efdd(0x19c)]=_0x4d09ae[_0x38efdd(0x177)](e[_0x38efdd(0x169)]),this[_0x38efdd(0x1a6)]=_0x4d09ae['get'](e[_0x38efdd(0x15e)]),this['_docsFormulaResourceLoaderService']=_0x4d09ae[_0x38efdd(0x177)](t[_0x38efdd(0x189)]);}[_0x24903e(0x1af)](){const _0x4f1ee8=_0x24903e;return this['_getCompleteRanges']()[_0x4f1ee8(0x167)](_0x21151b=>this[_0x4f1ee8(0x1a3)](_0x21151b[_0x4f1ee8(0x162)]));}[_0x24903e(0x171)](_0x2917b4){const _0x274dcf=_0x24903e;return this[_0x274dcf(0x154)]()[_0x274dcf(0x17c)](_0x133212=>_0x133212['rangeId']===_0x2917b4)?this[_0x274dcf(0x1a3)](_0x2917b4):null;}['getFormulaAt'](_0x15120f){const _0xea02cb=_0x24903e;let _0x108659=this[_0xea02cb(0x154)]()[_0xea02cb(0x183)](_0x122cd9=>_0x122cd9[_0xea02cb(0x160)]<=_0x15120f&&_0x15120f<=_0x122cd9[_0xea02cb(0x18e)]);return _0x108659?this[_0xea02cb(0x1a3)](_0x108659['rangeId']):null;}[_0x24903e(0x18d)](){const _0x24f9a1=_0x24903e;let _0x36c77f=this[_0x24f9a1(0x19f)][_0x24f9a1(0x190)](this['id']);if(!_0x36c77f)throw Error(_0x24f9a1(0x173)+this['id']+'\x20could\x20not\x20be\x20serialized.');return this[_0x24f9a1(0x19c)]['degradeDocumentData'](_0x36c77f);}[_0x24903e(0x16d)](_0x58ca1a){const _0x2a328d=_0x24903e;return this[_0x2a328d(0x15d)]({'externalReferences':_0x58ca1a[_0x2a328d(0x195)],'formula':_0x58ca1a[_0x2a328d(0x185)],'numberFormat':_0x58ca1a[_0x2a328d(0x198)],'target':{'type':'range','startOffset':_0x58ca1a[_0x2a328d(0x156)],'endOffset':_0x58ca1a[_0x2a328d(0x19a)]},'unitId':this[_0x2a328d(0x15b)]()});}[_0x24903e(0x15d)](_0x37fa7b){const _0x46f3ef=_0x24903e;let _0x1bb3c0=this['_docsFormulaCommandService'][_0x46f3ef(0x181)](e[_0x46f3ef(0x164)]['id'],_0x37fa7b);return _0x1bb3c0?this[_0x46f3ef(0x1a3)](_0x1bb3c0[_0x46f3ef(0x162)]):null;}[_0x24903e(0x154)](){const _0xa878b2=_0x24903e;var _0x38100d;let _0x12e213=this[_0xa878b2(0x1a6)][_0xa878b2(0x1af)](this[_0xa878b2(0x15b)]());return((_0x38100d=this[_0xa878b2(0x1ac)]('')[_0xa878b2(0x1a5)])==null?void 0x0:_0x38100d[_0xa878b2(0x186)](_0x443298=>(0x0,e['isDocFormulaRange'])(_0x443298)&&_0x12e213[_0x443298['rangeId']]!=null))??[];}[_0x24903e(0x1a3)](_0x13b817){const _0x2bf08a=_0x24903e;return this[_0x2bf08a(0x197)]['createInstance'](a,this['getId'](),_0x13b817);}};n['FDocument'][_0x24903e(0x1a9)](u);var d=class extends n[_0x24903e(0x15c)]{constructor(..._0xd2b29f){super(..._0xd2b29f),l(this,'_docsFormulaCommandService',void 0x0);}['_initialize'](_0x782ded){const _0x1a7c3b=_0x24903e;this[_0x1a7c3b(0x188)]=_0x782ded[_0x1a7c3b(0x177)](t['ICommandService']);}[_0x24903e(0x16d)](_0x39a040,_0xf1d665,_0xc3d07f={}){return this['_insert'](_0x39a040,_0xf1d665,_0xc3d07f);}['appendFormula'](_0x1f6028,_0x14b553={}){const _0x585f19=_0x24903e;return this[_0x585f19(0x15d)](_0x585f19(0x1a0),_0x1f6028,_0x14b553);}[_0x24903e(0x15d)](_0xbc931b,_0x4639b6,_0x5efe3b){const _0x1621c0=_0x24903e;if(this[_0x1621c0(0x175)]())return null;let _0x488fc8={'externalReferences':_0x5efe3b['externalReferences'],'formula':_0x4639b6,'numberFormat':_0x5efe3b['numberFormat'],'target':{'type':_0x1621c0(0x1a2),'paragraphId':this[_0x1621c0(0x15b)](),'position':_0xbc931b},'unitId':this[_0x1621c0(0x157)]['getId']()},_0x27328b=this[_0x1621c0(0x188)][_0x1621c0(0x181)](e[_0x1621c0(0x164)]['id'],_0x488fc8);return _0x27328b?this['_injector']['createInstance'](a,this[_0x1621c0(0x157)]['getId'](),_0x27328b[_0x1621c0(0x162)]):null;}};n[_0x24903e(0x15c)][_0x24903e(0x1a9)](d);var f=class extends n[_0x24903e(0x163)]{constructor(..._0x34b9ac){const _0x21a311=_0x24903e;super(..._0x34b9ac),l(this,_0x21a311(0x188),void 0x0);}[_0x24903e(0x17d)](_0x2f8de4){this['_docsFormulaCommandService']=_0x2f8de4['get'](t['ICommandService']);}[_0x24903e(0x15f)](_0x1294ad,_0x2b6779={}){const _0x795b34=_0x24903e;let {endOffset:_0x1bd6e2,segmentId:_0x1d30cf,startOffset:_0x57a99b}=this[_0x795b34(0x19b)]();return _0x1d30cf?null:this[_0x795b34(0x15d)](_0x57a99b,_0x1bd6e2,_0x1294ad,_0x2b6779);}['_insert'](_0x2ed22c,_0x216498,_0x1e36bb,_0x45c8a4){const _0x2a4056=_0x24903e;let _0x20c008={'externalReferences':_0x45c8a4['externalReferences'],'formula':_0x1e36bb,'numberFormat':_0x45c8a4[_0x2a4056(0x198)],'target':{'type':_0x2a4056(0x178),'startOffset':_0x2ed22c,'endOffset':_0x216498},'unitId':this[_0x2a4056(0x157)][_0x2a4056(0x15b)]()},_0x43bbb4=this[_0x2a4056(0x188)][_0x2a4056(0x181)](e[_0x2a4056(0x164)]['id'],_0x20c008);return _0x43bbb4?this['_injector'][_0x2a4056(0x159)](a,this[_0x2a4056(0x157)][_0x2a4056(0x15b)](),_0x43bbb4[_0x2a4056(0x162)]):null;}};function _0x54c1(_0x554669,_0x589bf7){_0x554669=_0x554669-0x154;const _0x4c32b2=_0x4c32();let _0x54c160=_0x4c32b2[_0x554669];return _0x54c160;}n[_0x24903e(0x163)]['extend'](f),Object[_0x24903e(0x1ad)](exports,_0x24903e(0x17f),{'enumerable':!0x0,'get':function(){return a;}});
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2fb272=_0x2a9b;(function(_0xcf9709,_0x474a2f){const _0x40b041=_0x2a9b,_0x1a4340=_0xcf9709();while(!![]){try{const _0xf798eb=parseInt(_0x40b041(0x294))/0x1+-parseInt(_0x40b041(0x277))/0x2+-parseInt(_0x40b041(0x1c7))/0x3*(parseInt(_0x40b041(0x1e1))/0x4)+-parseInt(_0x40b041(0x2b1))/0x5*(parseInt(_0x40b041(0x1dc))/0x6)+parseInt(_0x40b041(0x1f3))/0x7+-parseInt(_0x40b041(0x199))/0x8+-parseInt(_0x40b041(0x19c))/0x9*(-parseInt(_0x40b041(0x267))/0xa);if(_0xf798eb===_0x474a2f)break;else _0x1a4340['push'](_0x1a4340['shift']());}catch(_0x4bc0d3){_0x1a4340['push'](_0x1a4340['shift']());}}}(_0x23b8,0x84408),Object[_0x2fb272(0x20b)](exports,Symbol['toStringTag'],{'value':_0x2fb272(0x2b4)}));let e=require('@univerjs-pro/engine-formula'),t=require('@univerjs/core'),n=require('@univerjs/docs'),r=require('@univerjs/engine-formula'),i=require('rxjs'),a=require('@univerjs-pro/license');const o='DOC_FORMULA_PLUGIN',s=_0x2fb272(0x19f);function c(){return{'schemaVersion':0x1,'formulas':{}};}function l(_0x1b3695){const _0x3dd9f7=_0x2fb272;return!_0x1b3695||typeof _0x1b3695!=_0x3dd9f7(0x225)||!f(_0x1b3695,['schemaVersion','formulas'])||!(_0x3dd9f7(0x1d8)in _0x1b3695)||_0x1b3695[_0x3dd9f7(0x1d8)]!==0x1||!(_0x3dd9f7(0x28c)in _0x1b3695)||!_0x1b3695[_0x3dd9f7(0x28c)]||typeof _0x1b3695[_0x3dd9f7(0x28c)]!=_0x3dd9f7(0x225)||Array[_0x3dd9f7(0x2bb)](_0x1b3695[_0x3dd9f7(0x28c)])?!0x1:Object[_0x3dd9f7(0x20a)](_0x1b3695[_0x3dd9f7(0x28c)])[_0x3dd9f7(0x1a9)](([_0x445b28,_0x16a144])=>_0x445b28[_0x3dd9f7(0x1ff)]>0x0&&u(_0x16a144));}function u(_0x2c5166){const _0x536fc4=_0x2fb272;return!_0x2c5166||typeof _0x2c5166!=_0x536fc4(0x225)||!f(_0x2c5166,[_0x536fc4(0x202),_0x536fc4(0x1da),_0x536fc4(0x22b)])||!(_0x536fc4(0x202)in _0x2c5166)||typeof _0x2c5166[_0x536fc4(0x202)]!=_0x536fc4(0x221)||!_0x2c5166[_0x536fc4(0x202)][_0x536fc4(0x249)]()||'numberFormat'in _0x2c5166&&_0x2c5166['numberFormat']!=null&&(typeof _0x2c5166['numberFormat']!=_0x536fc4(0x225)||!f(_0x2c5166['numberFormat'],[_0x536fc4(0x25a)])||!('pattern'in _0x2c5166['numberFormat'])||typeof _0x2c5166['numberFormat'][_0x536fc4(0x25a)]!=_0x536fc4(0x221))?!0x1:!(_0x536fc4(0x22b)in _0x2c5166)||_0x2c5166[_0x536fc4(0x22b)]==null||d(_0x2c5166[_0x536fc4(0x22b)]);}function d(_0x56ac41){const _0x48c283=_0x2fb272;return!_0x56ac41||typeof _0x56ac41!='object'||!f(_0x56ac41,['v','t',_0x48c283(0x25a)])||!('v'in _0x56ac41)||_0x56ac41['v']!==null&&typeof _0x56ac41['v']!=_0x48c283(0x221)&&typeof _0x56ac41['v']!=_0x48c283(0x1cd)&&typeof _0x56ac41['v']!=_0x48c283(0x218)||'t'in _0x56ac41&&_0x56ac41['t']!=null&&!ee(_0x56ac41['t'])?!0x1:!(_0x48c283(0x25a)in _0x56ac41)||_0x56ac41[_0x48c283(0x25a)]==null||typeof _0x56ac41[_0x48c283(0x25a)]==_0x48c283(0x221);}function f(_0xe610bc,_0x1fcc95){const _0x5e092f=_0x2fb272;let _0x11c31c=new Set(_0x1fcc95);return Object[_0x5e092f(0x18a)](_0xe610bc)[_0x5e092f(0x1a9)](_0xbdc1d0=>_0x11c31c[_0x5e092f(0x272)](_0xbdc1d0));}function ee(_0x12c6d0){const _0x52edc1=_0x2fb272;return typeof _0x12c6d0==_0x52edc1(0x1cd)&&Object['values'](t[_0x52edc1(0x2aa)])['includes'](_0x12c6d0);}const p=new Set([t[_0x2fb272(0x2c6)][_0x2fb272(0x258)],t['DataStreamTreeTokenType'][_0x2fb272(0x1f6)],t[_0x2fb272(0x2c6)][_0x2fb272(0x25f)],t['DataStreamTreeTokenType'][_0x2fb272(0x22e)],t[_0x2fb272(0x2c6)][_0x2fb272(0x209)],t[_0x2fb272(0x2c6)][_0x2fb272(0x296)],t[_0x2fb272(0x2c6)][_0x2fb272(0x2a8)],t[_0x2fb272(0x2c6)]['COLUMN_GROUP_START'],t['DataStreamTreeTokenType'][_0x2fb272(0x23e)],t[_0x2fb272(0x2c6)][_0x2fb272(0x254)],t[_0x2fb272(0x2c6)][_0x2fb272(0x18e)],t[_0x2fb272(0x2c6)]['BLOCK_START'],t['DataStreamTreeTokenType']['BLOCK_END'],t['DataStreamTreeTokenType']['CUSTOM_BLOCK']]);var m=class extends Error{constructor(){const _0xc940e6=_0x2fb272;super(_0xc940e6(0x290));}};function te(_0x35f1c0){const _0x2b2c05=_0x2fb272;var _0x1fb725,_0xa800fa;let _0x21ed62=t[_0x2b2c05(0x1e4)][_0x2b2c05(0x29c)](_0x35f1c0[_0x2b2c05(0x257)]),_0x1646fa=T(_0x21ed62),{startOffset:_0xe9f816,endOffset:_0x22ecd6}=oe(_0x1646fa,_0x35f1c0['startOffset'],_0x35f1c0['endOffset']);ie(_0x1646fa,_0xe9f816,_0x22ecd6);let _0x33cfa0=((_0x1fb725=_0x1646fa[_0x2b2c05(0x273)])==null?void 0x0:_0x1fb725['filter'](_0x379b62=>{const _0x485758=_0x2b2c05;if(!g(_0x379b62))return!0x1;let _0x28135b=(0x0,t[_0x485758(0x1aa)])(_0x379b62);return _0x28135b[_0x485758(0x1cc)]>_0xe9f816&&_0x28135b['startOffset']<_0x22ecd6;})['map'](_0xb5d280=>_0xb5d280[_0x2b2c05(0x2a3)]))??[];ce(_0x1646fa,_0xe9f816,_0x22ecd6,''),_0x1646fa[_0x2b2c05(0x273)]=[...((_0xa800fa=_0x1646fa[_0x2b2c05(0x273)])==null?void 0x0:_0xa800fa[_0x2b2c05(0x1f9)](_0x35f2ab=>!_0x33cfa0[_0x2b2c05(0x264)](_0x35f2ab[_0x2b2c05(0x2a3)])&&_0x35f2ab[_0x2b2c05(0x2a3)]!==_0x35f1c0[_0x2b2c05(0x2a3)]))??[],ae(_0x35f1c0['rangeId'],_0xe9f816)]['sort']((_0x4cc2f8,_0x14971f)=>_0x4cc2f8[_0x2b2c05(0x1a6)]-_0x14971f['startIndex']);let _0x1d81b8=v(_0x35f1c0[_0x2b2c05(0x24f)]);return _0x33cfa0[_0x2b2c05(0x1c1)](_0x2e236e=>{const _0x2c0021=_0x2b2c05;delete _0x1d81b8[_0x2c0021(0x28c)][_0x2e236e];}),_0x1d81b8[_0x2b2c05(0x28c)][_0x35f1c0[_0x2b2c05(0x2a3)]]=t[_0x2b2c05(0x1e4)][_0x2b2c05(0x29c)](_0x35f1c0['config']),{'nextDocumentData':_0x21ed62,'nextResource':_0x1d81b8,'cursorOffset':_0xe9f816+0x1};}function ne(_0x36b585){const _0x42056f=_0x2fb272;var _0x41d1aa,_0x59c0fa;let _0x322fb7=t['Tools'][_0x42056f(0x29c)](_0x36b585['documentData']),_0x8fe7e9=(_0x41d1aa=T(_0x322fb7)[_0x42056f(0x273)])==null?void 0x0:_0x41d1aa['find'](_0x2985bd=>_0x2985bd[_0x42056f(0x2a3)]===_0x36b585[_0x42056f(0x2a3)]&&g(_0x2985bd));if(!_0x8fe7e9||!((_0x59c0fa=_0x36b585[_0x42056f(0x24f)])!=null&&_0x59c0fa[_0x42056f(0x28c)][_0x36b585['rangeId']]))return null;let _0x4f7f95=v(_0x36b585[_0x42056f(0x24f)]);return _0x4f7f95[_0x42056f(0x28c)][_0x36b585[_0x42056f(0x2a3)]]=t[_0x42056f(0x1e4)][_0x42056f(0x29c)](_0x36b585[_0x42056f(0x18b)]),{'nextDocumentData':_0x322fb7,'nextResource':_0x4f7f95,'cursorOffset':_0x8fe7e9[_0x42056f(0x1f1)]+0x1};}function h(_0xd5891d){const _0x25af57=_0x2fb272;let _0x37b57d=t[_0x25af57(0x1e4)]['deepClone'](_0xd5891d[_0x25af57(0x257)]),_0x5d1ec9=le(_0x37b57d,_0xd5891d['rangeId'],_0xd5891d[_0x25af57(0x1af)]??'');if(_0x5d1ec9==null)return null;let _0x31c3e=v(_0xd5891d[_0x25af57(0x24f)]);return delete _0x31c3e['formulas'][_0xd5891d[_0x25af57(0x2a3)]],{'nextDocumentData':_0x37b57d,'nextResource':_0x31c3e,'cursorOffset':_0x5d1ec9};}function re(_0x49eae0,_0x16b333){const _0x3a8ee9=_0x2fb272;var _0xa786d4;let _0x43fdae=t['Tools']['deepClone'](_0x49eae0),_0x393c1c=_0x43fdae['body'];if(!_0x393c1c)return _0x43fdae;let _0x5c1864=new Map(_0x16b333[_0x3a8ee9(0x1e8)](_0x45d4fc=>[_0x45d4fc[_0x3a8ee9(0x2a3)],_0x45d4fc['text']])),_0x5f1e08=((_0xa786d4=_0x393c1c[_0x3a8ee9(0x273)])==null?void 0x0:_0xa786d4[_0x3a8ee9(0x1f9)](_0x5b2595=>g(_0x5b2595)&&_0x5c1864[_0x3a8ee9(0x272)](_0x5b2595[_0x3a8ee9(0x2a3)]))[_0x3a8ee9(0x1ad)]((_0x58f6d7,_0x4e8e25)=>_0x4e8e25[_0x3a8ee9(0x1a6)]-_0x58f6d7[_0x3a8ee9(0x1a6)]))??[];for(let _0x4b26bc of _0x5f1e08)le(_0x43fdae,_0x4b26bc[_0x3a8ee9(0x2a3)],_0x5c1864[_0x3a8ee9(0x1f2)](_0x4b26bc[_0x3a8ee9(0x2a3)])??'');return _0x43fdae;}function g(_0x2bf160){const _0xd7792f=_0x2fb272;var _0x1d6ccd;return(_0x2bf160==null?void 0x0:_0x2bf160[_0xd7792f(0x185)])===t[_0xd7792f(0x1fe)]['CUSTOM']&&_0x2bf160[_0xd7792f(0x1ba)]===!0x0&&((_0x1d6ccd=_0x2bf160[_0xd7792f(0x1ec)])==null?void 0x0:_0x1d6ccd[_0xd7792f(0x1cb)])===_0xd7792f(0x19f);}function _(_0x19120f,_0x13ca84){const _0x4c589b=_0x2fb272;var _0x486e6e;return _0x19120f==null||(_0x486e6e=_0x19120f[_0x4c589b(0x273)])==null?void 0x0:_0x486e6e[_0x4c589b(0x24b)](_0x1334e6=>_0x1334e6[_0x4c589b(0x2a3)]===_0x13ca84&&g(_0x1334e6));}function ie(_0x1e424f,_0x14def6,_0x310791){const _0x49a25e=_0x2fb272;if(_0x14def6===_0x310791){if(p[_0x49a25e(0x272)](_0x1e424f[_0x49a25e(0x26e)][_0x14def6]))throw new m();return;}for(let _0x3bff1a=_0x14def6;_0x3bff1a<_0x310791;_0x3bff1a++)if(_0x1e424f[_0x49a25e(0x26e)][_0x3bff1a]===t[_0x49a25e(0x2c6)]['PARAGRAPH']||p[_0x49a25e(0x272)](_0x1e424f[_0x49a25e(0x26e)][_0x3bff1a]))throw new m();}function ae(_0x28315d,_0x5ce2eb){const _0x3f5e21=_0x2fb272;return{'startIndex':_0x5ce2eb,'endIndex':_0x5ce2eb,'rangeId':_0x28315d,'rangeType':t[_0x3f5e21(0x1fe)][_0x3f5e21(0x242)],'wholeEntity':!0x0,'properties':{'kind':s}};}function v(_0x79740b){const _0x21b1bd=_0x2fb272;return _0x79740b?t[_0x21b1bd(0x1e4)][_0x21b1bd(0x29c)](_0x79740b):c();}function oe(_0x220b62,_0x5c3c02,_0x34d547){const _0x17dfd7=_0x2fb272;let _0x310aca=se(_0x220b62),_0xf663e9=_0x5c3c02??_0x310aca,_0x594ccc=_0x34d547??_0xf663e9;return{'startOffset':y(Math['min'](_0xf663e9,_0x594ccc),_0x310aca),'endOffset':y(Math[_0x17dfd7(0x19b)](_0xf663e9,_0x594ccc),_0x310aca)};}function y(_0x3e0eb0,_0x5a16be){const _0x3764e6=_0x2fb272;return Math[_0x3764e6(0x19b)](0x0,Math[_0x3764e6(0x23b)](_0x3e0eb0,_0x5a16be));}function se(_0x61c259){const _0x544993=_0x2fb272;return _0x61c259[_0x544993(0x26e)]['endsWith'](''+t['DataStreamTreeTokenType'][_0x544993(0x206)]+t[_0x544993(0x2c6)][_0x544993(0x258)])?Math[_0x544993(0x19b)](0x0,_0x61c259[_0x544993(0x26e)]['length']-0x2):_0x61c259[_0x544993(0x26e)][_0x544993(0x26d)](t[_0x544993(0x2c6)][_0x544993(0x258)])?Math[_0x544993(0x19b)](0x0,_0x61c259[_0x544993(0x26e)][_0x544993(0x1ff)]-0x1):_0x61c259[_0x544993(0x26e)]['length'];}function ce(_0x48c17a,_0xf79170,_0x14621c,_0x1a4f5e){_0x14621c>_0xf79170&&de(_0x48c17a,_0xf79170,_0x14621c),ue(_0x48c17a,_0xf79170,_0x1a4f5e);}function le(_0x4c9048,_0x4dbd26,_0x240557){const _0xdca670=_0x2fb272;var _0x1cbd2f,_0x46e6e7;let _0x45f03d=T(_0x4c9048),_0x453fa8=(_0x1cbd2f=_0x45f03d['customRanges'])==null?void 0x0:_0x1cbd2f[_0xdca670(0x24b)](_0x179078=>_0x179078[_0xdca670(0x2a3)]===_0x4dbd26&&g(_0x179078));if(!_0x453fa8)return null;let _0xe549f3=(0x0,t[_0xdca670(0x1aa)])(_0x453fa8);return ce(_0x45f03d,_0xe549f3[_0xdca670(0x233)],_0xe549f3[_0xdca670(0x1cc)],_0x240557),_0x45f03d[_0xdca670(0x273)]=(_0x46e6e7=_0x45f03d[_0xdca670(0x273)])==null?void 0x0:_0x46e6e7['filter'](_0x5a4180=>_0x5a4180[_0xdca670(0x2a3)]!==_0x4dbd26),_0xe549f3[_0xdca670(0x233)]+_0x240557['length'];}function ue(_0x556c0c,_0x300b7a,_0x4d3689){const _0x301fd8=_0x2fb272;_0x4d3689&&(_0x556c0c[_0x301fd8(0x26e)]=''+_0x556c0c['dataStream']['slice'](0x0,_0x300b7a)+_0x4d3689+_0x556c0c[_0x301fd8(0x26e)][_0x301fd8(0x261)](_0x300b7a),fe(_0x556c0c,_0x300b7a,_0x4d3689['length']));}function de(_0x517e7e,_0x48e560,_0x192790){const _0x39565d=_0x2fb272;let _0xe7026=_0x192790-_0x48e560;_0x517e7e[_0x39565d(0x26e)]=''+_0x517e7e[_0x39565d(0x26e)][_0x39565d(0x261)](0x0,_0x48e560)+_0x517e7e[_0x39565d(0x26e)]['slice'](_0x192790),pe(_0x517e7e,_0x48e560,_0xe7026);}function fe(_0x28e2ee,_0x2ee6ba,_0xa3d197){const _0x303d5a=_0x2fb272;_0x28e2ee['paragraphs']=b(_0x28e2ee[_0x303d5a(0x288)],_0x2ee6ba,_0xa3d197),_0x28e2ee[_0x303d5a(0x1c2)]=b(_0x28e2ee[_0x303d5a(0x1c2)],_0x2ee6ba,_0xa3d197),_0x28e2ee[_0x303d5a(0x1ac)]=b(_0x28e2ee['customBlocks'],_0x2ee6ba,_0xa3d197),_0x28e2ee['textRuns']=me(_0x28e2ee['textRuns'],_0x2ee6ba,_0xa3d197),_0x28e2ee[_0x303d5a(0x1e9)]=he(_0x28e2ee[_0x303d5a(0x1e9)],_0x2ee6ba,_0xa3d197),_0x28e2ee['columnGroups']=S(_0x28e2ee[_0x303d5a(0x196)],_0x2ee6ba,_0xa3d197),_0x28e2ee[_0x303d5a(0x273)]=S(_0x28e2ee[_0x303d5a(0x273)],_0x2ee6ba,_0xa3d197),_0x28e2ee[_0x303d5a(0x21e)]=S(_0x28e2ee[_0x303d5a(0x21e)],_0x2ee6ba,_0xa3d197),_0x28e2ee[_0x303d5a(0x1a3)]=S(_0x28e2ee[_0x303d5a(0x1a3)],_0x2ee6ba,_0xa3d197);}function pe(_0x59be5d,_0x212fb8,_0x2a7ebe){const _0x128b0c=_0x2fb272;var _0x325b4a,_0xa3ea39;_0x59be5d[_0x128b0c(0x288)]=x(_0x59be5d['paragraphs'],_0x212fb8,_0x2a7ebe),_0x59be5d[_0x128b0c(0x1c2)]=x(_0x59be5d[_0x128b0c(0x1c2)],_0x212fb8,_0x2a7ebe),_0x59be5d['customBlocks']=x(_0x59be5d[_0x128b0c(0x1ac)],_0x212fb8,_0x2a7ebe),_0x59be5d['textRuns']=(_0x325b4a=w((_0xa3ea39=_0x59be5d[_0x128b0c(0x1a7)])==null?void 0x0:_0xa3ea39[_0x128b0c(0x1e8)](_0x32d6aa=>({..._0x32d6aa,'startIndex':_0x32d6aa['st'],'endIndex':_0x32d6aa['ed']})),_0x212fb8,_0x2a7ebe))==null?void 0x0:_0x325b4a['map'](_0x44fe98=>{let {startIndex:_0x411e2f,endIndex:_0x4ad544,..._0x4107b0}=_0x44fe98;return{..._0x4107b0,'st':_0x411e2f,'ed':_0x4ad544};}),_0x59be5d[_0x128b0c(0x1e9)]=w(_0x59be5d['tables'],_0x212fb8,_0x2a7ebe),_0x59be5d['columnGroups']=C(_0x59be5d['columnGroups'],_0x212fb8,_0x2a7ebe),_0x59be5d[_0x128b0c(0x273)]=C(_0x59be5d['customRanges'],_0x212fb8,_0x2a7ebe),_0x59be5d[_0x128b0c(0x21e)]=C(_0x59be5d['customDecorations'],_0x212fb8,_0x2a7ebe),_0x59be5d[_0x128b0c(0x1a3)]=C(_0x59be5d[_0x128b0c(0x1a3)],_0x212fb8,_0x2a7ebe);}function b(_0x43a7ff,_0x5416ee,_0xf85edc){const _0x42438f=_0x2fb272;return _0x43a7ff==null?void 0x0:_0x43a7ff[_0x42438f(0x1e8)](_0x1154f7=>_0x1154f7[_0x42438f(0x1a6)]>=_0x5416ee?{..._0x1154f7,'startIndex':_0x1154f7[_0x42438f(0x1a6)]+_0xf85edc}:_0x1154f7);}function x(_0x369f5f,_0x54c761,_0x5094bd){const _0x3f624e=_0x2fb272;let _0x4b1055=_0x54c761+_0x5094bd;return _0x369f5f==null?void 0x0:_0x369f5f[_0x3f624e(0x1e8)](_0x109a33=>_0x109a33['startIndex']>=_0x54c761&&_0x109a33[_0x3f624e(0x1a6)]<_0x4b1055?null:_0x109a33[_0x3f624e(0x1a6)]>=_0x4b1055?{..._0x109a33,'startIndex':_0x109a33[_0x3f624e(0x1a6)]-_0x5094bd}:_0x109a33)['filter'](_0x3b698e=>_0x3b698e!=null);}function me(_0x49bb0c,_0x5f3af2,_0x38abd8){const _0x24b2b0=_0x2fb272;return _0x49bb0c==null?void 0x0:_0x49bb0c[_0x24b2b0(0x1e8)](_0x5609a3=>_0x5609a3['st']>=_0x5f3af2?{..._0x5609a3,'st':_0x5609a3['st']+_0x38abd8,'ed':_0x5609a3['ed']+_0x38abd8}:_0x5609a3['ed']>_0x5f3af2?{..._0x5609a3,'ed':_0x5609a3['ed']+_0x38abd8}:_0x5609a3);}function S(_0x295090,_0x144702,_0x3cb56c){const _0x2f505f=_0x2fb272;return _0x295090==null?void 0x0:_0x295090[_0x2f505f(0x1e8)](_0x46aeba=>(0x0,t[_0x2f505f(0x26b)])(_0x46aeba,_0x144702,_0x3cb56c));}function he(_0x254078,_0x360ac7,_0x5767b3){const _0x368506=_0x2fb272;return _0x254078==null?void 0x0:_0x254078[_0x368506(0x1e8)](_0x44c4d6=>(0x0,t[_0x368506(0x188)])(_0x44c4d6,_0x360ac7,_0x5767b3));}function C(_0x1d54e2,_0x353f5f,_0x5d8c53){const _0x34d763=_0x2fb272;return _0x1d54e2==null?void 0x0:_0x1d54e2[_0x34d763(0x1e8)](_0x3a2767=>(0x0,t[_0x34d763(0x293)])(_0x3a2767,_0x353f5f,_0x5d8c53))[_0x34d763(0x1f9)](_0x527b12=>_0x527b12!=null);}function w(_0x34c113,_0x220938,_0x4170f6){const _0x50524a=_0x2fb272;return _0x34c113==null?void 0x0:_0x34c113['map'](_0x1a2123=>(0x0,t[_0x50524a(0x2b3)])(_0x1a2123,_0x220938,_0x4170f6))['filter'](_0x59f9f2=>_0x59f9f2!=null);}function T(_0x31dca8){const _0x1e1df3=_0x2fb272;if(!_0x31dca8[_0x1e1df3(0x21f)])throw Error('Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.');return _0x31dca8['body'];}function E(_0x1dbac6){'@babel/helpers - typeof';const _0xdc4ffc=_0x2fb272;return E=typeof Symbol==_0xdc4ffc(0x24d)&&typeof Symbol[_0xdc4ffc(0x21d)]==_0xdc4ffc(0x295)?function(_0xcce90c){return typeof _0xcce90c;}:function(_0xba37ce){const _0x4367d9=_0xdc4ffc;return _0xba37ce&&typeof Symbol==_0x4367d9(0x24d)&&_0xba37ce['constructor']===Symbol&&_0xba37ce!==Symbol[_0x4367d9(0x27d)]?_0x4367d9(0x295):typeof _0xba37ce;},E(_0x1dbac6);}function ge(_0x386ce6,_0x1b2f1b){const _0x10897d=_0x2fb272;if(E(_0x386ce6)!=_0x10897d(0x225)||!_0x386ce6)return _0x386ce6;var _0x35216d=_0x386ce6[Symbol[_0x10897d(0x231)]];if(_0x35216d!==void 0x0){var _0x4f1f30=_0x35216d[_0x10897d(0x1d3)](_0x386ce6,_0x1b2f1b||_0x10897d(0x197));if(E(_0x4f1f30)!=_0x10897d(0x225))return _0x4f1f30;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1b2f1b===_0x10897d(0x221)?String:Number)(_0x386ce6);}function _e(_0x21c5ab){const _0x27ca84=_0x2fb272;var _0x5e7078=ge(_0x21c5ab,'string');return E(_0x5e7078)==_0x27ca84(0x295)?_0x5e7078:_0x5e7078+'';}function D(_0x27e0be,_0x29bc59,_0x48c4a7){const _0x5ba770=_0x2fb272;return(_0x29bc59=_e(_0x29bc59))in _0x27e0be?Object[_0x5ba770(0x20b)](_0x27e0be,_0x29bc59,{'value':_0x48c4a7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x27e0be[_0x29bc59]=_0x48c4a7,_0x27e0be;}var O=class extends t[_0x2fb272(0x1b7)]{constructor(..._0x13a7c9){const _0x1acfa3=_0x2fb272;super(..._0x13a7c9),D(this,_0x1acfa3(0x23d),new Map()),D(this,'_rawResources',new Map()),D(this,'_loadErrors',new Map()),D(this,_0x1acfa3(0x284),new i[(_0x1acfa3(0x1d2))]()),D(this,_0x1acfa3(0x1c4),this[_0x1acfa3(0x284)]['asObservable']());}['getFormula'](_0x598509,_0x18b5a7){const _0x109063=_0x2fb272;var _0x1f8e47;let _0x3b1b2a=(_0x1f8e47=this[_0x109063(0x23d)][_0x109063(0x1f2)](_0x598509))==null?void 0x0:_0x1f8e47[_0x109063(0x28c)][_0x18b5a7];return _0x3b1b2a?t[_0x109063(0x1e4)][_0x109063(0x29c)](_0x3b1b2a):void 0x0;}[_0x2fb272(0x27c)](_0x1c4af8){const _0x3c2c18=_0x2fb272;var _0x112f8b;return t[_0x3c2c18(0x1e4)]['deepClone'](((_0x112f8b=this[_0x3c2c18(0x23d)][_0x3c2c18(0x1f2)](_0x1c4af8))==null?void 0x0:_0x112f8b['formulas'])??{});}[_0x2fb272(0x1b4)](_0x42f47e){const _0x4899e4=_0x2fb272;let _0x3c25bb=this[_0x4899e4(0x23d)][_0x4899e4(0x1f2)](_0x42f47e);return _0x3c25bb?t[_0x4899e4(0x1e4)][_0x4899e4(0x29c)](_0x3c25bb):void 0x0;}[_0x2fb272(0x187)](_0x173c04,_0x5c4999,_0x4a5243){return this['setFormulas'](_0x173c04,{[_0x5c4999]:_0x4a5243});}['setResource'](_0x234f4b,_0x100a36){const _0x1e183c=_0x2fb272;return this[_0x1e183c(0x240)][_0x1e183c(0x272)](_0x234f4b)||!l(_0x100a36)?!0x1:(this[_0x1e183c(0x23d)][_0x1e183c(0x217)](_0x234f4b,t[_0x1e183c(0x1e4)][_0x1e183c(0x29c)](_0x100a36)),this[_0x1e183c(0x284)][_0x1e183c(0x205)]({'unitId':_0x234f4b}),!0x0);}[_0x2fb272(0x2ab)](_0x50c7f4,_0x27d988){const _0xe5b434=_0x2fb272;if(this[_0xe5b434(0x240)][_0xe5b434(0x272)](_0x50c7f4)||!Object['keys'](_0x27d988)[_0xe5b434(0x1ff)]||!l({'schemaVersion':0x1,'formulas':_0x27d988}))return!0x1;let _0x13a0c8=this[_0xe5b434(0x23d)]['get'](_0x50c7f4)??c(),_0x44cfab=t[_0xe5b434(0x1e4)][_0xe5b434(0x29c)](_0x13a0c8);return Object[_0xe5b434(0x256)](_0x44cfab[_0xe5b434(0x28c)],t[_0xe5b434(0x1e4)][_0xe5b434(0x29c)](_0x27d988)),this[_0xe5b434(0x23d)][_0xe5b434(0x217)](_0x50c7f4,_0x44cfab),this[_0xe5b434(0x284)]['next']({'unitId':_0x50c7f4,'rangeIds':Object[_0xe5b434(0x18a)](_0x27d988)}),!0x0;}[_0x2fb272(0x21b)](_0x4404f5,_0x4f495c){const _0x380c2c=_0x2fb272;if(this[_0x380c2c(0x240)][_0x380c2c(0x272)](_0x4404f5))return!0x1;let _0x4771ae=this[_0x380c2c(0x23d)][_0x380c2c(0x1f2)](_0x4404f5);if(!(_0x4771ae!=null&&_0x4771ae[_0x380c2c(0x28c)][_0x4f495c]))return!0x1;let _0x45e3d6=t[_0x380c2c(0x1e4)]['deepClone'](_0x4771ae);return delete _0x45e3d6[_0x380c2c(0x28c)][_0x4f495c],this['_resources'][_0x380c2c(0x217)](_0x4404f5,_0x45e3d6),this[_0x380c2c(0x284)][_0x380c2c(0x205)]({'unitId':_0x4404f5,'rangeIds':[_0x4f495c]}),!0x0;}[_0x2fb272(0x269)](_0x29de2d,_0x2b0b7e){const _0x4b618c=_0x2fb272;return _0x2b0b7e&&typeof _0x2b0b7e==_0x4b618c(0x225)&&_0x4b618c(0x1d8)in _0x2b0b7e&&_0x2b0b7e['schemaVersion']!==0x1?(this[_0x4b618c(0x29f)](_0x29de2d,_0x2b0b7e,_0x4b618c(0x1c0)),!0x1):l(_0x2b0b7e)?(this[_0x4b618c(0x23d)]['set'](_0x29de2d,t[_0x4b618c(0x1e4)]['deepClone'](_0x2b0b7e)),this['_rawResources']['delete'](_0x29de2d),this[_0x4b618c(0x240)]['delete'](_0x29de2d),this[_0x4b618c(0x284)][_0x4b618c(0x205)]({'unitId':_0x29de2d}),!0x0):(this[_0x4b618c(0x29f)](_0x29de2d,_0x2b0b7e,_0x4b618c(0x2a5)),!0x1);}['serialize'](_0x1ed007){const _0x2947cf=_0x2fb272;let _0x5d7210=this['_resources']['get'](_0x1ed007);return _0x5d7210?t[_0x2947cf(0x1e4)]['deepClone'](_0x5d7210):this[_0x2947cf(0x195)]['has'](_0x1ed007)?t['Tools'][_0x2947cf(0x29c)](this[_0x2947cf(0x195)][_0x2947cf(0x1f2)](_0x1ed007)):c();}[_0x2fb272(0x1ee)](_0x14a178){const _0x2ec1a1=_0x2fb272;return this[_0x2ec1a1(0x240)]['get'](_0x14a178);}[_0x2fb272(0x286)](_0x121669){const _0xd0defe=_0x2fb272;this['_resources'][_0xd0defe(0x1c5)](_0x121669),this['_rawResources'][_0xd0defe(0x1c5)](_0x121669),this[_0xd0defe(0x240)][_0xd0defe(0x1c5)](_0x121669),this[_0xd0defe(0x284)][_0xd0defe(0x205)]({'unitId':_0x121669});}['dispose'](){const _0x25da02=_0x2fb272;this[_0x25da02(0x23d)][_0x25da02(0x216)](),this['_rawResources'][_0x25da02(0x216)](),this['_loadErrors'][_0x25da02(0x216)](),this[_0x25da02(0x284)][_0x25da02(0x1d4)](),super['dispose']();}[_0x2fb272(0x29f)](_0x54a059,_0x4600df,_0x39c5be){const _0x4a2de6=_0x2fb272;this[_0x4a2de6(0x23d)]['delete'](_0x54a059),this[_0x4a2de6(0x195)][_0x4a2de6(0x217)](_0x54a059,t[_0x4a2de6(0x1e4)]['deepClone'](_0x4600df)),this[_0x4a2de6(0x240)][_0x4a2de6(0x217)](_0x54a059,_0x39c5be),this[_0x4a2de6(0x284)]['next']({'unitId':_0x54a059});}};let ve=function(_0x5a40e5){const _0x56b9f1=_0x2fb272;return _0x5a40e5['EMPTY']=_0x56b9f1(0x1f7),_0x5a40e5[_0x56b9f1(0x2c4)]=_0x56b9f1(0x1bf),_0x5a40e5['SUCCESS']=_0x56b9f1(0x186),_0x5a40e5[_0x56b9f1(0x210)]=_0x56b9f1(0x23a),_0x5a40e5;}({});function k(_0x4e2366,_0x31b752){return function(_0x486153,_0x133ac5){_0x31b752(_0x486153,_0x133ac5,_0x4e2366);};}function A(_0xb25de8,_0x21e17a,_0x5cf8f4,_0x1625a6){const _0xc3750a=_0x2fb272;var _0x2622bd=arguments['length'],_0x52c633=_0x2622bd<0x3?_0x21e17a:_0x1625a6===null?_0x1625a6=Object[_0xc3750a(0x26f)](_0x21e17a,_0x5cf8f4):_0x1625a6,_0x192cb9;if(typeof Reflect=='object'&&typeof Reflect[_0xc3750a(0x1a8)]==_0xc3750a(0x24d))_0x52c633=Reflect['decorate'](_0xb25de8,_0x21e17a,_0x5cf8f4,_0x1625a6);else{for(var _0x3f6379=_0xb25de8['length']-0x1;_0x3f6379>=0x0;_0x3f6379--)(_0x192cb9=_0xb25de8[_0x3f6379])&&(_0x52c633=(_0x2622bd<0x3?_0x192cb9(_0x52c633):_0x2622bd>0x3?_0x192cb9(_0x21e17a,_0x5cf8f4,_0x52c633):_0x192cb9(_0x21e17a,_0x5cf8f4))||_0x52c633);}return _0x2622bd>0x3&&_0x52c633&&Object[_0xc3750a(0x20b)](_0x21e17a,_0x5cf8f4,_0x52c633),_0x52c633;}let j=class extends t[_0x2fb272(0x1b7)]{constructor(_0x37950d,_0x10017b,_0x24bc83){const _0x29b733=_0x2fb272;super(),this[_0x29b733(0x265)]=_0x37950d,this[_0x29b733(0x1e3)]=_0x10017b,this[_0x29b733(0x1c3)]=_0x24bc83,D(this,'_registrations',new Map()),D(this,_0x29b733(0x29a),new Map()),D(this,'_presentationChanged$',new i['Subject']()),D(this,_0x29b733(0x20f),this[_0x29b733(0x27e)][_0x29b733(0x226)]()),this['disposeWithMe'](this[_0x29b733(0x1e3)]['formulaResult$'][_0x29b733(0x29e)](_0x977d49=>{const _0x58cf87=_0x29b733;for(let _0x590ae4 of Object['values'](_0x977d49))for(let _0x59e42b of Object[_0x58cf87(0x23f)](_0x590ae4))_0x59e42b[_0x58cf87(0x1c1)](_0x177cad=>this[_0x58cf87(0x285)](_0x177cad));}));}['syncUnit'](_0x29e016){const _0x4eb8e4=_0x2fb272;var _0x180548;let _0x418b2d=_0x29e016[_0x4eb8e4(0x198)](),_0x5a523d=((_0x180548=_0x29e016['getSnapshot']()[_0x4eb8e4(0x21f)])==null||(_0x180548=_0x180548['customRanges'])==null?void 0x0:_0x180548[_0x4eb8e4(0x1f9)](g))??[],_0x4c6203=this[_0x4eb8e4(0x265)][_0x4eb8e4(0x27c)](_0x418b2d),_0x344336=new Set();for(let _0x59f4e2 of _0x5a523d){let _0x17092d=_0x4c6203[_0x59f4e2[_0x4eb8e4(0x2a3)]];_0x17092d&&(_0x344336[_0x4eb8e4(0x246)](M(_0x418b2d,_0x59f4e2[_0x4eb8e4(0x2a3)])),this[_0x4eb8e4(0x237)]({'unitId':_0x418b2d,'rangeId':_0x59f4e2['rangeId']},_0x17092d));}for(let _0x1a8659 of Array['from'](this[_0x4eb8e4(0x228)][_0x4eb8e4(0x23f)]()))_0x1a8659[_0x4eb8e4(0x25c)]===_0x418b2d&&!_0x344336[_0x4eb8e4(0x272)](M(_0x1a8659[_0x4eb8e4(0x25c)],_0x1a8659[_0x4eb8e4(0x2a3)]))&&this[_0x4eb8e4(0x2a1)](_0x1a8659);}['register'](_0x516d2d,_0x36c7cf){const _0x5e6072=_0x2fb272;let _0x2cea08=M(_0x516d2d[_0x5e6072(0x25c)],_0x516d2d[_0x5e6072(0x2a3)]),_0xe9d3eb=this[_0x5e6072(0x228)][_0x5e6072(0x1f2)](_0x2cea08),_0x54038c=this['_hostExternalReferenceModel'][_0x5e6072(0x276)](_0x516d2d[_0x5e6072(0x25c)]);if(_0xe9d3eb&&_0xe9d3eb['config']['formula']===_0x36c7cf[_0x5e6072(0x202)]&&_0xe9d3eb['referenceRevision']===_0x54038c){_0xe9d3eb['config']=_0x36c7cf;let _0x8416e6=_0xe9d3eb[_0x5e6072(0x1ca)]?this[_0x5e6072(0x1e3)][_0x5e6072(0x24c)](_0xe9d3eb[_0x5e6072(0x25c)],_0xe9d3eb[_0x5e6072(0x25c)],_0xe9d3eb['formulaId'])??void 0x0:void 0x0;_0xe9d3eb[_0x5e6072(0x252)]=_0x8416e6,this[_0x5e6072(0x2a9)](_0x2cea08,N(_0x36c7cf,_0x8416e6));return;}_0xe9d3eb!=null&&_0xe9d3eb[_0x5e6072(0x1ca)]&&this['_deleteRegistration'](_0xe9d3eb);let _0x1dfb4f={..._0x516d2d,'config':_0x36c7cf,'referenceRevision':_0x54038c,'presentation':N(_0x36c7cf,void 0x0)};if(this[_0x5e6072(0x228)][_0x5e6072(0x217)](_0x2cea08,_0x1dfb4f),!_0x36c7cf[_0x5e6072(0x202)][_0x5e6072(0x249)]())return;let _0x32156a=this[_0x5e6072(0x1e3)]['registerFormulaWithRange'](_0x516d2d[_0x5e6072(0x25c)],_0x516d2d[_0x5e6072(0x25c)],_0x36c7cf[_0x5e6072(0x202)],void 0x0,{'rangeId':_0x516d2d['rangeId']},r['OtherFormulaBizType']['DOC'],_0x516d2d[_0x5e6072(0x2a3)]);_0x1dfb4f[_0x5e6072(0x1ca)]=_0x32156a,this[_0x5e6072(0x29a)][_0x5e6072(0x217)](_0x32156a,_0x2cea08);}[_0x2fb272(0x2a1)](_0x1dd256){const _0x52f3eb=_0x2fb272;let _0x5ce676=M(_0x1dd256[_0x52f3eb(0x25c)],_0x1dd256[_0x52f3eb(0x2a3)]),_0x4bd6b9=this[_0x52f3eb(0x228)][_0x52f3eb(0x1f2)](_0x5ce676);_0x4bd6b9&&(this['_deleteRegistration'](_0x4bd6b9),this[_0x52f3eb(0x228)][_0x52f3eb(0x1c5)](_0x5ce676));}[_0x2fb272(0x219)](_0x55b6f9){const _0x1d8502=_0x2fb272;for(let _0x4555ad of Array['from'](this['_registrations'][_0x1d8502(0x23f)]()))_0x4555ad[_0x1d8502(0x25c)]===_0x55b6f9&&this[_0x1d8502(0x2a1)](_0x4555ad);}[_0x2fb272(0x22c)](_0x9f041d){const _0x5108ac=_0x2fb272;var _0x1f0937;return(_0x1f0937=this[_0x5108ac(0x228)][_0x5108ac(0x1f2)](M(_0x9f041d[_0x5108ac(0x25c)],_0x9f041d[_0x5108ac(0x2a3)])))==null?void 0x0:_0x1f0937[_0x5108ac(0x298)];}[_0x2fb272(0x262)](_0x1e460b){const _0x1e45e4=_0x2fb272;let _0x3d499a=this[_0x1e45e4(0x228)][_0x1e45e4(0x1f2)](M(_0x1e460b[_0x1e45e4(0x25c)],_0x1e460b['rangeId']));return _0x3d499a?P(_0x3d499a):void 0x0;}[_0x2fb272(0x2b2)](){const _0x5e6bb4=_0x2fb272;return Array[_0x5e6bb4(0x280)](this[_0x5e6bb4(0x228)]['values'](),_0x38305a=>({'identity':{'unitId':_0x38305a[_0x5e6bb4(0x25c)],'rangeId':_0x38305a[_0x5e6bb4(0x2a3)]},'config':_0x38305a[_0x5e6bb4(0x18b)],'referenceRevision':_0x38305a[_0x5e6bb4(0x291)],..._0x38305a[_0x5e6bb4(0x252)]?{'liveResult':_0x38305a['liveResult']}:null}));}['dispose'](){const _0xe00e44=_0x2fb272;for(let _0xc1915e of this[_0xe00e44(0x228)][_0xe00e44(0x23f)]())this[_0xe00e44(0x2b8)](_0xc1915e);this[_0xe00e44(0x228)][_0xe00e44(0x216)](),this['_formulaKeys'][_0xe00e44(0x216)](),this[_0xe00e44(0x27e)][_0xe00e44(0x1d4)](),super[_0xe00e44(0x1f8)]();}[_0x2fb272(0x285)](_0x28bb38){const _0x1a6cad=_0x2fb272;let _0x443d9c=this['_formulaKeys'][_0x1a6cad(0x1f2)](_0x28bb38['formulaId']),_0x592964=_0x443d9c?this[_0x1a6cad(0x228)][_0x1a6cad(0x1f2)](_0x443d9c):void 0x0;_0x443d9c&&_0x592964&&(_0x592964['liveResult']=_0x28bb38,this[_0x1a6cad(0x2a9)](_0x443d9c,N(_0x592964[_0x1a6cad(0x18b)],_0x28bb38)));}[_0x2fb272(0x2a9)](_0x312f6c,_0x83635a){const _0x41672f=_0x2fb272;var _0x42d07e,_0x5eb029;let _0x33ebb1=this[_0x41672f(0x228)]['get'](_0x312f6c);if(!_0x33ebb1||ye(_0x33ebb1[_0x41672f(0x298)],_0x83635a))return;let _0x15768c=_0x33ebb1[_0x41672f(0x298)],_0x477a90=P(_0x33ebb1);_0x33ebb1[_0x41672f(0x298)]=_0x83635a,this[_0x41672f(0x27e)]['next']({'unitId':_0x33ebb1[_0x41672f(0x25c)],'rangeId':_0x33ebb1[_0x41672f(0x2a3)],'presentation':_0x83635a,'previousPresentation':_0x15768c,'result':P(_0x33ebb1),'previousResult':{..._0x477a90,..._0x15768c,'value':(_0x42d07e=_0x15768c[_0x41672f(0x270)])==null?void 0x0:_0x42d07e['v'],'valueType':((_0x5eb029=_0x15768c[_0x41672f(0x270)])==null?void 0x0:_0x5eb029['t'])??void 0x0}});}[_0x2fb272(0x2b8)](_0x43f1de){const _0x37fd9e=_0x2fb272;_0x43f1de['formulaId']&&(this['_registrationService'][_0x37fd9e(0x1c6)](_0x43f1de[_0x37fd9e(0x25c)],_0x43f1de[_0x37fd9e(0x25c)],[_0x43f1de['formulaId']]),this[_0x37fd9e(0x29a)][_0x37fd9e(0x1c5)](_0x43f1de[_0x37fd9e(0x1ca)]));}};j=A([k(0x0,(0x0,t[_0x2fb272(0x230)])(O)),k(0x1,(0x0,t['Inject'])(r[_0x2fb272(0x2a0)])),k(0x2,(0x0,t[_0x2fb272(0x230)])(e['HostExternalReferenceModel']))],j);function M(_0x175968,_0x3cec10){return _0x175968+'\x00'+_0x3cec10;}function N(_0x485ed9,_0x31f368){const _0x556d8a=_0x2fb272;return(0x0,e[_0x556d8a(0x1ef)])({'numberFormat':_0x485ed9['numberFormat'],'lastValue':_0x485ed9[_0x556d8a(0x22b)],'result':_0x31f368});}function P(_0x579823){const _0xd72be4=_0x2fb272;var _0x1b8533,_0x409bde,_0x4c5642;let _0xa28e02=_0x579823[_0xd72be4(0x298)],_0x11f054=_0x579823[_0xd72be4(0x18b)][_0xd72be4(0x202)][_0xd72be4(0x249)]()?_0xa28e02['stale']||_0xa28e02[_0xd72be4(0x270)]==null?'pending':((_0x1b8533=_0x579823[_0xd72be4(0x252)])==null?void 0x0:_0x1b8533[_0xd72be4(0x250)])===r[_0xd72be4(0x248)][_0xd72be4(0x210)]?_0xd72be4(0x23a):_0xd72be4(0x186):_0xd72be4(0x1f7);return{..._0xa28e02,'status':_0x11f054,'value':(_0x409bde=_0xa28e02['cell'])==null?void 0x0:_0x409bde['v'],'valueType':((_0x4c5642=_0xa28e02[_0xd72be4(0x270)])==null?void 0x0:_0x4c5642['t'])??void 0x0};}function ye(_0x2279c5,_0x642084){const _0x2fd436=_0x2fb272;var _0x19c0cf,_0x49e3f8,_0x3eaf14,_0x1ddb4a;return _0x2279c5[_0x2fd436(0x1af)]===_0x642084['text']&&_0x2279c5['color']===_0x642084['color']&&_0x2279c5[_0x2fd436(0x25a)]===_0x642084['pattern']&&_0x2279c5[_0x2fd436(0x236)]===_0x642084[_0x2fd436(0x236)]&&_0x2279c5[_0x2fd436(0x299)]===_0x642084[_0x2fd436(0x299)]&&((_0x19c0cf=_0x2279c5[_0x2fd436(0x270)])==null?void 0x0:_0x19c0cf['t'])===((_0x49e3f8=_0x642084[_0x2fd436(0x270)])==null?void 0x0:_0x49e3f8['t'])&&Object['is']((_0x3eaf14=_0x2279c5['cell'])==null?void 0x0:_0x3eaf14['v'],(_0x1ddb4a=_0x642084['cell'])==null?void 0x0:_0x1ddb4a['v']);}const F={'id':_0x2fb272(0x283),'type':t[_0x2fb272(0x2a2)][_0x2fb272(0x2bc)],'handler':(_0x2a2719,_0xff30a7)=>!(_0xff30a7!=null&&_0xff30a7[_0x2fb272(0x25c)])||!_0xff30a7[_0x2fb272(0x2a3)]||!_0xff30a7[_0x2fb272(0x18b)]?!0x1:_0x2a2719[_0x2fb272(0x1f2)](O)[_0x2fb272(0x187)](_0xff30a7[_0x2fb272(0x25c)],_0xff30a7[_0x2fb272(0x2a3)],_0xff30a7[_0x2fb272(0x18b)])},I={'id':_0x2fb272(0x1f0),'type':t[_0x2fb272(0x2a2)][_0x2fb272(0x2bc)],'handler':(_0x46cf68,_0xbb21a8)=>!(_0xbb21a8!=null&&_0xbb21a8[_0x2fb272(0x25c)])||!_0xbb21a8[_0x2fb272(0x2a3)]?!0x1:_0x46cf68['get'](O)[_0x2fb272(0x21b)](_0xbb21a8['unitId'],_0xbb21a8['rangeId'])},L={'id':_0x2fb272(0x1d7),'type':t[_0x2fb272(0x2a2)][_0x2fb272(0x2bc)],'handler':(_0xc577d5,_0x68010f)=>!(_0x68010f!=null&&_0x68010f[_0x2fb272(0x25c)])||!_0x68010f[_0x2fb272(0x24f)]?!0x1:_0xc577d5[_0x2fb272(0x1f2)](O)[_0x2fb272(0x1d0)](_0x68010f[_0x2fb272(0x25c)],_0x68010f[_0x2fb272(0x24f)])},R={'id':_0x2fb272(0x215),'type':t[_0x2fb272(0x2a2)]['MUTATION'],'handler':(_0x4a7384,_0x15429d)=>{const _0x22ffcc=_0x2fb272;if(!(_0x15429d!=null&&_0x15429d[_0x22ffcc(0x25c)])||!_0x15429d[_0x22ffcc(0x1bb)][_0x22ffcc(0x1ff)])return!0x1;let _0x1c5c88=_0x4a7384[_0x22ffcc(0x1f2)](O),_0x505634=_0x4a7384['get'](e[_0x22ffcc(0x203)]),_0x2886e3=_0x1c5c88[_0x22ffcc(0x1b4)](_0x15429d[_0x22ffcc(0x25c)]);if(!_0x2886e3)return!0x1;let _0x1c7755=t[_0x22ffcc(0x1e4)]['deepClone'](_0x2886e3),_0x29c729=!0x1;for(let _0x435be4 of _0x15429d[_0x22ffcc(0x1bb)]){var _0x12671b,_0x260dd7,_0x27621c,_0x153cc9;let _0x359d21=_0x1c7755[_0x22ffcc(0x28c)][_0x435be4['rangeId']];_0x359d21&&_0x359d21[_0x22ffcc(0x202)]===_0x435be4[_0x22ffcc(0x194)]&&((_0x12671b=_0x359d21[_0x22ffcc(0x1da)])==null?void 0x0:_0x12671b[_0x22ffcc(0x25a)])===_0x435be4[_0x22ffcc(0x251)]&&_0x505634['getRevision'](_0x15429d[_0x22ffcc(0x25c)])===_0x435be4[_0x22ffcc(0x1e2)]&&(((_0x260dd7=_0x359d21[_0x22ffcc(0x22b)])==null?void 0x0:_0x260dd7['v'])!==_0x435be4[_0x22ffcc(0x22b)]['v']||((_0x27621c=_0x359d21[_0x22ffcc(0x22b)])==null?void 0x0:_0x27621c['t'])!==_0x435be4[_0x22ffcc(0x22b)]['t']||((_0x153cc9=_0x359d21[_0x22ffcc(0x22b)])==null?void 0x0:_0x153cc9[_0x22ffcc(0x25a)])!==_0x435be4[_0x22ffcc(0x22b)][_0x22ffcc(0x25a)])&&(_0x359d21[_0x22ffcc(0x22b)]=t[_0x22ffcc(0x1e4)][_0x22ffcc(0x29c)](_0x435be4[_0x22ffcc(0x22b)]),_0x29c729=!0x0);}return!_0x29c729||_0x1c5c88[_0x22ffcc(0x1d0)](_0x15429d['unitId'],_0x1c7755);}},z={'id':_0x2fb272(0x2b6),'type':t[_0x2fb272(0x2a2)][_0x2fb272(0x212)],'handler':(_0x19be9d,_0x3f90c1)=>{const _0x177534=_0x2fb272;if(!(_0x3f90c1!=null&&_0x3f90c1[_0x177534(0x202)][_0x177534(0x249)]()))return!0x1;let _0x547c59=K(_0x19be9d,_0x3f90c1[_0x177534(0x25c)],'');if(!_0x547c59)return!0x1;let _0x69031c=xe(_0x3f90c1[_0x177534(0x2b7)],_0x547c59['body'],be(_0x19be9d,_0x547c59[_0x177534(0x25c)]));if(!_0x69031c)return!0x1;let _0x535c11=Se(_0x19be9d,_0x547c59[_0x177534(0x25c)],_0x3f90c1[_0x177534(0x202)],_0x3f90c1[_0x177534(0x238)]??[]);if(!_0x535c11)return!0x1;let _0x83cde4=Ce(_0x547c59['body'],_0x547c59[_0x177534(0x22a)],_0x547c59[_0x177534(0x25c)]),_0x16119c=we({'documentData':_0x547c59[_0x177534(0x257)],'resource':_0x547c59[_0x177534(0x24f)],'rangeId':_0x83cde4,'config':{'formula':_0x3f90c1[_0x177534(0x202)],..._0x3f90c1[_0x177534(0x1da)]?{'numberFormat':_0x3f90c1['numberFormat']}:null},'startOffset':_0x69031c[_0x177534(0x233)],'endOffset':_0x69031c[_0x177534(0x1cc)]});if(!_0x16119c)return!0x1;let _0x53d0d1=(0x0,e['buildUpsertHostExternalReferenceMutations'])(_0x19be9d,_0x547c59[_0x177534(0x25c)],_0x535c11);return!_0x53d0d1||!q({'accessor':_0x19be9d,'document':_0x547c59[_0x177534(0x207)],'unitId':_0x547c59[_0x177534(0x25c)],'trigger':z['id'],'rangeId':_0x83cde4,'previousResource':_0x547c59[_0x177534(0x24f)],'nextResource':_0x16119c[_0x177534(0x25b)],'previousDocumentData':_0x547c59[_0x177534(0x257)],'nextDocumentData':_0x16119c[_0x177534(0x289)],'cursorOffset':_0x16119c[_0x177534(0x1a5)],'externalMutations':_0x53d0d1})?!0x1:{'rangeId':_0x83cde4,'startOffset':_0x16119c['cursorOffset']-0x1,'endOffset':_0x16119c[_0x177534(0x1a5)]};}},B={'id':_0x2fb272(0x1de),'type':t[_0x2fb272(0x2a2)][_0x2fb272(0x212)],'handler':(_0x303a5a,_0x3d9d89)=>{const _0x290953=_0x2fb272;if(!(_0x3d9d89!=null&&_0x3d9d89['rangeId'])||!_0x3d9d89[_0x290953(0x202)][_0x290953(0x249)]())return!0x1;let _0x493597=K(_0x303a5a,_0x3d9d89[_0x290953(0x25c)],''),_0x5792a8=_0x493597==null?void 0x0:_0x493597[_0x290953(0x22a)][_0x290953(0x25e)](_0x493597[_0x290953(0x25c)],_0x3d9d89[_0x290953(0x2a3)]),_0x5e0f0e=_0x493597?_(_0x493597['documentData']['body'],_0x3d9d89['rangeId']):void 0x0;if(!_0x493597||!_0x5792a8||!_0x5e0f0e)return!0x1;let _0x5dd8fb=Se(_0x303a5a,_0x493597['unitId'],_0x3d9d89[_0x290953(0x202)],_0x3d9d89[_0x290953(0x238)]??[]);if(!_0x5dd8fb)return!0x1;let _0x5cb333=(0x0,e['buildUpsertHostExternalReferenceMutations'])(_0x303a5a,_0x493597[_0x290953(0x25c)],_0x5dd8fb);if(!_0x5cb333)return!0x1;let _0x3beea3=je(_0x493597[_0x290953(0x24f)]);return _0x3beea3[_0x290953(0x28c)][_0x3d9d89['rangeId']]={'formula':_0x3d9d89[_0x290953(0x202)],..._0x3d9d89['numberFormat']?{'numberFormat':_0x3d9d89[_0x290953(0x1da)]}:_0x5792a8[_0x290953(0x1da)]?{'numberFormat':_0x5792a8[_0x290953(0x1da)]}:null},q({'accessor':_0x303a5a,'document':_0x493597['document'],'unitId':_0x493597['unitId'],'trigger':B['id'],'rangeId':_0x3d9d89['rangeId'],'previousResource':_0x493597['resource'],'nextResource':_0x3beea3,'cursorOffset':_0x5e0f0e[_0x290953(0x1f1)]+0x1,'externalMutations':_0x5cb333});}},V={'id':_0x2fb272(0x200),'type':t['CommandType'][_0x2fb272(0x212)],'handler':(_0x4a6e06,_0x59078c)=>{const _0x1ad6c7=_0x2fb272;if(!(_0x59078c!=null&&_0x59078c[_0x1ad6c7(0x2a3)]))return!0x1;let _0x3d2125=K(_0x4a6e06,_0x59078c[_0x1ad6c7(0x25c)],''),_0x514105=_0x3d2125==null?void 0x0:_0x3d2125[_0x1ad6c7(0x22a)][_0x1ad6c7(0x25e)](_0x3d2125[_0x1ad6c7(0x25c)],_0x59078c[_0x1ad6c7(0x2a3)]),_0xcf6e50=_0x3d2125?_(_0x3d2125[_0x1ad6c7(0x257)][_0x1ad6c7(0x21f)],_0x59078c[_0x1ad6c7(0x2a3)]):void 0x0;if(!_0x3d2125||!_0x514105||!_0xcf6e50)return!0x1;let _0x24f960=je(_0x3d2125[_0x1ad6c7(0x24f)]);return _0x24f960[_0x1ad6c7(0x28c)][_0x59078c[_0x1ad6c7(0x2a3)]]={..._0x514105,..._0x59078c[_0x1ad6c7(0x1da)]?{'numberFormat':_0x59078c[_0x1ad6c7(0x1da)]}:null},_0x59078c[_0x1ad6c7(0x1da)]||delete _0x24f960[_0x1ad6c7(0x28c)][_0x59078c['rangeId']][_0x1ad6c7(0x1da)],q({'accessor':_0x4a6e06,'document':_0x3d2125['document'],'unitId':_0x3d2125['unitId'],'trigger':V['id'],'rangeId':_0x59078c[_0x1ad6c7(0x2a3)],'previousResource':_0x3d2125['resource'],'nextResource':_0x24f960,'cursorOffset':_0xcf6e50[_0x1ad6c7(0x1f1)]+0x1,'externalMutations':{}});}},H={'id':_0x2fb272(0x211),'type':t[_0x2fb272(0x2a2)][_0x2fb272(0x212)],'handler':(_0x52669f,_0x33f4bf)=>G(_0x52669f,_0x33f4bf,'',H['id'])},U={'id':'docs-formula.command.replace-with-text','type':t['CommandType'][_0x2fb272(0x212)],'handler':(_0xf55762,_0x5a6d02)=>G(_0xf55762,_0x5a6d02,(_0x5a6d02==null?void 0x0:_0x5a6d02['text'])??'',U['id'])},W={'id':_0x2fb272(0x23c),'type':t[_0x2fb272(0x2a2)]['COMMAND'],'handler':(_0x35f4ec,_0x459433)=>{const _0x465a2e=_0x2fb272;if(!(_0x459433!=null&&_0x459433[_0x465a2e(0x2a3)]))return!0x1;let _0x34da52=K(_0x35f4ec,_0x459433[_0x465a2e(0x25c)],'');if(!_0x34da52)return!0x1;let _0x4b8abd=_0x35f4ec[_0x465a2e(0x1f2)](j)[_0x465a2e(0x262)]({'unitId':_0x34da52[_0x465a2e(0x25c)],'rangeId':_0x459433['rangeId']});return _0x4b8abd?G(_0x35f4ec,_0x459433,_0x4b8abd['text'],W['id']):!0x1;}};function G(_0x1683a2,_0x59bcc4,_0x310aaa,_0x5ed2c5){const _0x24ee54=_0x2fb272;if(!(_0x59bcc4!=null&&_0x59bcc4[_0x24ee54(0x2a3)]))return!0x1;let _0x16bbc5=K(_0x1683a2,_0x59bcc4[_0x24ee54(0x25c)],'');if(!_0x16bbc5)return!0x1;let _0x3e2372=h({'documentData':_0x16bbc5[_0x24ee54(0x257)],'resource':_0x16bbc5[_0x24ee54(0x24f)],'rangeId':_0x59bcc4[_0x24ee54(0x2a3)],'text':_0x310aaa});return _0x3e2372?q({'accessor':_0x1683a2,'document':_0x16bbc5[_0x24ee54(0x207)],'unitId':_0x16bbc5['unitId'],'trigger':_0x5ed2c5,'rangeId':_0x59bcc4[_0x24ee54(0x2a3)],'previousResource':_0x16bbc5[_0x24ee54(0x24f)],'nextResource':_0x3e2372['nextResource'],'previousDocumentData':_0x16bbc5[_0x24ee54(0x257)],'nextDocumentData':_0x3e2372[_0x24ee54(0x289)],'cursorOffset':_0x3e2372[_0x24ee54(0x1a5)],'externalMutations':{}}):!0x1;}function K(_0x4fd2c8,_0x12f783,_0x3a4578){const _0x5c84e3=_0x2fb272;if(_0x3a4578)return null;let _0x28f795=_0x4fd2c8[_0x5c84e3(0x1f2)](t[_0x5c84e3(0x292)]),_0x51c8ec=(_0x12f783?_0x28f795['getUnit'](_0x12f783,t[_0x5c84e3(0x278)][_0x5c84e3(0x19a)]):_0x28f795[_0x5c84e3(0x1ab)](t['UniverInstanceType'][_0x5c84e3(0x19a)]))??null;if(!_0x51c8ec)return null;let _0x152422=_0x51c8ec[_0x5c84e3(0x245)](),_0x1cea7f=_0x152422['body'];if(_0x152422[_0x5c84e3(0x1e0)]||!_0x1cea7f)return null;let _0x2ebe67=_0x4fd2c8[_0x5c84e3(0x1f2)](O);return _0x2ebe67[_0x5c84e3(0x1ee)](_0x51c8ec[_0x5c84e3(0x198)]())?null:{'document':_0x51c8ec,'body':_0x1cea7f,'documentData':_0x152422,'model':_0x2ebe67,'resource':_0x2ebe67[_0x5c84e3(0x1b4)](_0x51c8ec[_0x5c84e3(0x198)]())??c(),'unitId':_0x51c8ec['getUnitId']()};}function be(_0x510d07,_0x45c487){const _0x203d8e=_0x2fb272;var _0x31a84b;return(_0x31a84b=_0x510d07['get'](n['DocSelectionManagerService'])[_0x203d8e(0x234)]({'subUnitId':_0x45c487,'unitId':_0x45c487}))==null?void 0x0:_0x31a84b[0x0];}function xe(_0x2793cf,_0x2f9d10,_0x362f0d){const _0x208b0b=_0x2fb272;if((_0x2793cf==null?void 0x0:_0x2793cf['type'])==='paragraph'){var _0xc14def;let _0x1f7b8f=((_0xc14def=_0x2f9d10[_0x208b0b(0x288)])==null?void 0x0:_0xc14def[_0x208b0b(0x1f9)](_0x3d407e=>_0x3d407e[_0x208b0b(0x2ad)]===_0x2793cf['paragraphId']))??[];if(_0x1f7b8f[_0x208b0b(0x1ff)]!==0x1)return null;let _0x2ef1f0=_0x1f7b8f[0x0],_0xc18e73=(0x0,t['getParagraphContentStartOffset'])(_0x2f9d10,_0x2ef1f0),_0xbd256=_0x2ef1f0['startIndex']-_0xc18e73,_0x37b9ec=_0x2793cf[_0x208b0b(0x19e)]==='end'?_0xbd256:_0x2793cf[_0x208b0b(0x19e)];if(!Number['isInteger'](_0x37b9ec)||_0x37b9ec<0x0||_0x37b9ec>_0xbd256)return null;let _0x5bda2d=_0xc18e73+_0x37b9ec;return{'startOffset':_0x5bda2d,'endOffset':_0x5bda2d};}if((_0x2793cf==null?void 0x0:_0x2793cf['type'])===_0x208b0b(0x259))return!Number[_0x208b0b(0x224)](_0x2793cf[_0x208b0b(0x233)])||!Number['isInteger'](_0x2793cf['endOffset'])?null:{'startOffset':Math['min'](_0x2793cf[_0x208b0b(0x233)],_0x2793cf[_0x208b0b(0x1cc)]),'endOffset':Math['max'](_0x2793cf['startOffset'],_0x2793cf[_0x208b0b(0x1cc)])};let _0x30f07b=(_0x2793cf==null?void 0x0:_0x2793cf[_0x208b0b(0x2a4)])===_0x208b0b(0x235)?_0x2793cf[_0x208b0b(0x235)]:_0x362f0d;return!_0x30f07b||_0x30f07b['segmentId']?null:{'startOffset':Math['min'](_0x30f07b[_0x208b0b(0x233)],_0x30f07b[_0x208b0b(0x1cc)]),'endOffset':Math['max'](_0x30f07b[_0x208b0b(0x233)],_0x30f07b['endOffset'])};}function Se(_0x4baaf1,_0xed8aad,_0x2ce442,_0x21dcff){const _0x2907b4=_0x2fb272;let _0x3883a5=_0x4baaf1['get'](r[_0x2907b4(0x2bf)]),_0x44ac5c=_0x2ce442['startsWith']('=')?_0x2ce442[_0x2907b4(0x261)](0x1):_0x2ce442,_0x506ff0=_0x3883a5['sequenceNodesBuilder'](_0x44ac5c);if(!_0x506ff0)return null;let _0x114e79=_0x4baaf1['get'](e['HostExternalReferenceModel']),_0x3c3707=(0x0,e['resolveHostFormulaExternalReferences'])({'qualifiers':(0x0,e[_0x2907b4(0x2be)])(_0x506ff0),'explicitReferences':_0x21dcff??[],'resolveBinding':_0x4a02b5=>_0x114e79[_0x2907b4(0x22d)](_0xed8aad,_0x4a02b5)});return _0x3c3707[_0x2907b4(0x250)]===_0x2907b4(0x201)?_0x3c3707[_0x2907b4(0x1e6)]:null;}function Ce(_0x531ff3,_0x14feab,_0x44944b){const _0x3e46f2=_0x2fb272;var _0x2e7b03;let _0x1bf7d0=(0x0,t[_0x3e46f2(0x22f)])(0x6);for(;_0x531ff3!=null&&(_0x2e7b03=_0x531ff3['customRanges'])!=null&&_0x2e7b03[_0x3e46f2(0x214)](_0x30219b=>_0x30219b[_0x3e46f2(0x2a3)]===_0x1bf7d0)||_0x14feab[_0x3e46f2(0x25e)](_0x44944b,_0x1bf7d0);)_0x1bf7d0=(0x0,t[_0x3e46f2(0x22f)])(0x6);return _0x1bf7d0;}function we(_0x13b3c8){try{return te(_0x13b3c8);}catch(_0x20442c){if(_0x20442c instanceof m)return null;throw _0x20442c;}}function Te(_0x5db24b){const _0x58def7=_0x2fb272;let _0x5ba16e=_0x5db24b[_0x58def7(0x1b9)]&&_0x5db24b[_0x58def7(0x289)]?De(_0x5db24b['document'],_0x5db24b[_0x58def7(0x25c)],_0x5db24b['previousDocumentData'],_0x5db24b['nextDocumentData'],_0x5db24b['cursorOffset'],_0x5db24b[_0x58def7(0x1a4)]):null;return _0x5db24b[_0x58def7(0x1b9)]&&_0x5db24b[_0x58def7(0x289)]&&!_0x5ba16e?null:{'documentRedo':_0x5ba16e,'resourceRedo':{'id':L['id'],'params':{'unitId':_0x5db24b[_0x58def7(0x25c)],'resource':_0x5db24b['nextResource']}},'resourceUndo':{'id':L['id'],'params':{'unitId':_0x5db24b[_0x58def7(0x25c)],'resource':_0x5db24b[_0x58def7(0x1f4)]}}};}function Ee(_0x2284ef,_0x1bb0f7,_0x5819f3,_0x1b8bda){const _0x11fe77=_0x2fb272;_0x1b8bda[_0x11fe77(0x28b)]({'id':_0x2284ef[_0x11fe77(0x1a4)]+':'+_0x2284ef[_0x11fe77(0x2a3)],'unitID':_0x2284ef[_0x11fe77(0x25c)],'redoMutations':[..._0x2284ef[_0x11fe77(0x1a2)]['redoMutation']?[_0x2284ef[_0x11fe77(0x1a2)]['redoMutation']]:[],..._0x1bb0f7[_0x11fe77(0x1fb)]?[_0x1bb0f7[_0x11fe77(0x1fb)]]:[],_0x1bb0f7[_0x11fe77(0x1bc)]],'undoMutations':[_0x1bb0f7['resourceUndo'],..._0x5819f3?[_0x5819f3]:[],..._0x2284ef[_0x11fe77(0x1a2)][_0x11fe77(0x20e)]?[_0x2284ef[_0x11fe77(0x1a2)]['undoMutation']]:[]]});}function q(_0x56f5d){const _0x2f5722=_0x2fb272;let _0x18c4be=_0x56f5d[_0x2f5722(0x1df)]['get'](t[_0x2f5722(0x29b)]),_0x33add2=_0x56f5d[_0x2f5722(0x1df)][_0x2f5722(0x1f2)](t[_0x2f5722(0x28f)]),_0x206186=_0x56f5d['accessor'][_0x2f5722(0x1f2)](n[_0x2f5722(0x2af)]),_0x5d572e=Te(_0x56f5d);if(!_0x5d572e)return!0x1;let _0x29bb48=!0x1,_0x58808c=null,_0x26eeb4=!0x1;try{if(_0x56f5d['externalMutations'][_0x2f5722(0x24e)]){if(!_0x18c4be[_0x2f5722(0x297)](_0x56f5d[_0x2f5722(0x1a2)][_0x2f5722(0x24e)]['id'],_0x56f5d[_0x2f5722(0x1a2)]['redoMutation'][_0x2f5722(0x28e)]))return!0x1;_0x29bb48=!0x0;}if(_0x5d572e[_0x2f5722(0x1fb)]){let _0x314854=_0x18c4be[_0x2f5722(0x297)](_0x5d572e[_0x2f5722(0x1fb)]['id'],_0x5d572e[_0x2f5722(0x1fb)][_0x2f5722(0x28e)]);if(!_0x314854)return J(_0x18c4be,_0x56f5d[_0x2f5722(0x1a2)],_0x29bb48),!0x1;_0x58808c={'id':n[_0x2f5722(0x1d5)]['id'],'params':{..._0x314854,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x18c4be[_0x2f5722(0x297)](_0x5d572e[_0x2f5722(0x1bc)]['id'],_0x5d572e[_0x2f5722(0x1bc)][_0x2f5722(0x28e)]))return Oe(_0x18c4be,_0x58808c),J(_0x18c4be,_0x56f5d[_0x2f5722(0x1a2)],_0x29bb48),!0x1;_0x26eeb4=!0x0,Ee(_0x56f5d,_0x5d572e,_0x58808c,_0x33add2);}catch(_0x41ebb5){throw _0x26eeb4&&_0x18c4be[_0x2f5722(0x297)](_0x5d572e['resourceUndo']['id'],_0x5d572e[_0x2f5722(0x21a)]['params']),Oe(_0x18c4be,_0x58808c),J(_0x18c4be,_0x56f5d['externalMutations'],_0x29bb48),_0x41ebb5;}return _0x206186[_0x2f5722(0x2bd)]([{'startOffset':_0x56f5d['cursorOffset'],'endOffset':_0x56f5d['cursorOffset'],'segmentId':''}],{'unitId':_0x56f5d[_0x2f5722(0x25c)],'subUnitId':_0x56f5d['unitId']},!0x1,{[n[_0x2f5722(0x27f)]]:!0x0}),!0x0;}function De(_0x419ecb,_0xb05793,_0x3fbe59,_0x2a1059,_0x40b80b,_0x36ad62){const _0x2cba25=_0x2fb272;let _0x4bc1c3=ke(_0x3fbe59,_0x2a1059,(0x0,t[_0x2cba25(0x1db)])(_0x419ecb,''));return _0x4bc1c3?{'id':n[_0x2cba25(0x1d5)]['id'],'params':{'unitId':_0xb05793,'actions':_0x4bc1c3,'segmentId':'','textRanges':[{'startOffset':_0x40b80b,'endOffset':_0x40b80b,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x36ad62}}:null;}function Oe(_0x239ddc,_0x2a7c43){const _0x985e6=_0x2fb272;_0x2a7c43&&_0x239ddc[_0x985e6(0x297)](_0x2a7c43['id'],_0x2a7c43[_0x985e6(0x28e)]);}function J(_0x272a93,_0x4b3fdb,_0x39cf08){const _0x37037e=_0x2fb272;_0x39cf08&&_0x4b3fdb[_0x37037e(0x20e)]&&_0x272a93[_0x37037e(0x297)](_0x4b3fdb[_0x37037e(0x20e)]['id'],_0x4b3fdb[_0x37037e(0x20e)][_0x37037e(0x28e)]);}function ke(_0x2af275,_0x1a9611,_0x4f19c5){const _0x7298b8=_0x2fb272;let _0x5a261a=_0x2af275[_0x7298b8(0x21f)],_0x500ff6=_0x1a9611[_0x7298b8(0x21f)],_0x55946b=Ae(_0x5a261a==null?void 0x0:_0x5a261a[_0x7298b8(0x26e)],_0x500ff6==null?void 0x0:_0x500ff6[_0x7298b8(0x26e)]);if(!_0x55946b||!_0x500ff6)return null;let _0x24fe6c=new t[(_0x7298b8(0x1fa))]();return _0x24fe6c['retain'](_0x55946b[_0x7298b8(0x271)]),_0x55946b[_0x7298b8(0x189)]>0x0&&_0x24fe6c[_0x7298b8(0x1b5)](_0x55946b['insertLength'],(0x0,t[_0x7298b8(0x27a)])(_0x500ff6,_0x55946b[_0x7298b8(0x271)],_0x55946b[_0x7298b8(0x271)]+_0x55946b[_0x7298b8(0x189)],!0x1)),_0x55946b[_0x7298b8(0x227)]>0x0&&_0x24fe6c[_0x7298b8(0x1c5)](_0x55946b[_0x7298b8(0x227)]),t['JSONX'][_0x7298b8(0x1b3)]()[_0x7298b8(0x20d)](_0x24fe6c['serialize'](),_0x4f19c5);}function Ae(_0x15f686,_0x1cade5){const _0x12cbed=_0x2fb272;if(_0x15f686==null||_0x1cade5==null||_0x15f686===_0x1cade5)return null;let _0x14fe80=0x0;for(;_0x14fe80<_0x15f686[_0x12cbed(0x1ff)]&&_0x14fe80<_0x1cade5[_0x12cbed(0x1ff)]&&_0x15f686[_0x14fe80]===_0x1cade5[_0x14fe80];)_0x14fe80+=0x1;let _0x1d1263=_0x15f686[_0x12cbed(0x1ff)],_0x28ae1f=_0x1cade5[_0x12cbed(0x1ff)];for(;_0x1d1263>_0x14fe80&&_0x28ae1f>_0x14fe80&&_0x15f686[_0x1d1263-0x1]===_0x1cade5[_0x28ae1f-0x1];)--_0x1d1263,--_0x28ae1f;return{'start':_0x14fe80,'deleteLength':_0x1d1263-_0x14fe80,'insertLength':_0x28ae1f-_0x14fe80};}function je(_0x37e579){const _0x19e599=_0x2fb272;return{'schemaVersion':0x1,'formulas':Object[_0x19e599(0x281)](Object['entries'](_0x37e579[_0x19e599(0x28c)])[_0x19e599(0x1e8)](([_0x54bd8a,_0x26ed4c])=>[_0x54bd8a,{..._0x26ed4c,..._0x26ed4c[_0x19e599(0x1da)]?{'numberFormat':{..._0x26ed4c['numberFormat']}}:null,..._0x26ed4c[_0x19e599(0x22b)]?{'lastValue':{..._0x26ed4c[_0x19e599(0x22b)]}}:null}]))};}let Y=class extends t['Disposable']{constructor(_0x266830,_0xa67fc3,_0x24f5fd,_0xc75dd){const _0x55372f=_0x2fb272;super(),this[_0x55372f(0x18f)]=_0x266830,this[_0x55372f(0x204)]=_0xa67fc3,this['_model']=_0x24f5fd,this[_0x55372f(0x222)]=_0xc75dd,D(this,_0x55372f(0x1c8),new Set()),D(this,'_syncScheduled',!0x1),D(this,_0x55372f(0x255),!0x1),this[_0x55372f(0x18f)]['getAllUnitsForType'](t[_0x55372f(0x278)][_0x55372f(0x19a)])[_0x55372f(0x1c1)](_0x42f728=>this[_0x55372f(0x222)][_0x55372f(0x1b0)](_0x42f728)),this[_0x55372f(0x2ba)](this[_0x55372f(0x265)][_0x55372f(0x1c4)][_0x55372f(0x29e)](({unitId:_0x82b7ea})=>this['_syncUnit'](_0x82b7ea))),this[_0x55372f(0x2ba)](this[_0x55372f(0x18f)][_0x55372f(0x2b0)]['subscribe'](({unit:_0x39ab5d})=>{const _0x15a240=_0x55372f;_0x39ab5d[_0x15a240(0x2a4)]===t[_0x15a240(0x278)]['UNIVER_DOC']&&this[_0x15a240(0x2c7)](_0x39ab5d[_0x15a240(0x198)]());})),this[_0x55372f(0x2ba)](this['_instanceService'][_0x55372f(0x213)][_0x55372f(0x29e)](_0x25a577=>{const _0x1a0604=_0x55372f;this['_service']['unregisterUnit'](_0x25a577[_0x1a0604(0x198)]());})),this[_0x55372f(0x2ba)](this[_0x55372f(0x204)][_0x55372f(0x193)](_0x465ac6=>{const _0x2a7e06=_0x55372f;if(_0x465ac6['id']===n[_0x2a7e06(0x1d5)]['id']&&Me(_0x465ac6[_0x2a7e06(0x28e)])){let _0x183c9d=_0x465ac6[_0x2a7e06(0x28e)];_0x183c9d['segmentId']||this[_0x2a7e06(0x25d)](_0x183c9d[_0x2a7e06(0x25c)]);}}));}[_0x2fb272(0x1f8)](){this['_isDisposed']=!0x0,super['dispose']();}[_0x2fb272(0x2c7)](_0x414b94){const _0x4e6afc=_0x2fb272;this[_0x4e6afc(0x1c8)][_0x4e6afc(0x246)](_0x414b94),!this['_syncScheduled']&&(this[_0x4e6afc(0x28d)]=!0x0,queueMicrotask(()=>{const _0x49236c=_0x4e6afc;if(this[_0x49236c(0x28d)]=!0x1,this[_0x49236c(0x255)])return;let _0x4a8ca8=Array[_0x49236c(0x280)](this['_pendingUnitIds']);this[_0x49236c(0x1c8)]['clear'](),_0x4a8ca8['forEach'](_0xe35a5e=>this[_0x49236c(0x25d)](_0xe35a5e));}));}[_0x2fb272(0x25d)](_0x1fece6){const _0x2c39e8=_0x2fb272;let _0x171b9c=this[_0x2c39e8(0x18f)][_0x2c39e8(0x29d)](_0x1fece6,t[_0x2c39e8(0x278)][_0x2c39e8(0x19a)]);_0x171b9c&&this[_0x2c39e8(0x222)][_0x2c39e8(0x1b0)](_0x171b9c);}};Y=A([k(0x0,t[_0x2fb272(0x292)]),k(0x1,t[_0x2fb272(0x29b)]),k(0x2,(0x0,t[_0x2fb272(0x230)])(O)),k(0x3,(0x0,t[_0x2fb272(0x230)])(j))],Y);function Me(_0x49913e){const _0x5afe34=_0x2fb272;return typeof _0x49913e==_0x5afe34(0x225)&&!!_0x49913e&&_0x5afe34(0x25c)in _0x49913e&&typeof _0x49913e['unitId']=='string'&&(!('segmentId'in _0x49913e)||_0x49913e['segmentId']===void 0x0||typeof _0x49913e[_0x5afe34(0x1ed)]==_0x5afe34(0x221));}let X=class extends t[_0x2fb272(0x1b7)]{constructor(_0x3d7d94,_0x1148a3){const _0x3d8154=_0x2fb272;super(),this[_0x3d8154(0x1fd)]=_0x3d7d94,this[_0x3d8154(0x275)]=_0x1148a3,this['disposeWithMe'](this[_0x3d8154(0x1fd)][_0x3d8154(0x232)]({'pluginName':o,'businesses':[t[_0x3d8154(0x278)]['UNIVER_DOC']],'toJson':_0x3dc228=>JSON['stringify'](this['_docFormulaModel']['serialize'](_0x3dc228)),'parseJson':_0x2a8eca=>JSON[_0x3d8154(0x2c5)](_0x2a8eca),'onLoad':(_0x4872c6,_0x2391ce)=>{const _0x2ef48a=_0x3d8154;this[_0x2ef48a(0x275)][_0x2ef48a(0x269)](_0x4872c6,_0x2391ce);},'onUnLoad':_0x2b6d64=>this[_0x3d8154(0x275)]['removeUnit'](_0x2b6d64)}));}};X=A([k(0x0,t[_0x2fb272(0x1b8)]),k(0x1,(0x0,t['Inject'])(O))],X);var Ne=_0x2fb272(0x191),Pe=_0x2fb272(0x263);function _0x2a9b(_0x11cfa0,_0x56cf07){_0x11cfa0=_0x11cfa0-0x185;const _0x23b857=_0x23b8();let _0x2a9b9b=_0x23b857[_0x11cfa0];return _0x2a9b9b;}const Fe={};let Z=class extends t[_0x2fb272(0x1b7)]{constructor(_0x28d654,_0x3fbec4,_0x5d0139){const _0x5b6281=_0x2fb272;super(),this[_0x5b6281(0x220)]=_0x28d654,this[_0x5b6281(0x241)]=_0x3fbec4,this[_0x5b6281(0x2ba)](_0x5d0139[_0x5b6281(0x237)]({'resolve':(_0x5c1dcf,_0x29a75c)=>{const _0x579419=_0x5b6281;var _0x17196c;return((_0x17196c=_0x29a75c[_0x579419(0x273)])==null?void 0x0:_0x17196c[_0x579419(0x1f9)](g)[_0x579419(0x1e8)](_0x5c7276=>({'startOffset':_0x5c7276[_0x579419(0x1a6)],'endOffset':_0x5c7276[_0x579419(0x1f1)]+0x1,'text':this['resolveFormula'](_0x5c1dcf,_0x5c7276[_0x579419(0x2a3)])})))??[];}})),this['disposeWithMe'](this[_0x5b6281(0x241)]['presentationChanged$'][_0x5b6281(0x29e)](({unitId:_0x40402f})=>{const _0x54396e=_0x5b6281;_0x5d0139[_0x54396e(0x253)](_0x40402f);}));}[_0x2fb272(0x1b2)](_0x1e75b8,_0x10c9a9){const _0x3764a0=_0x2fb272;var _0x4f6bec;return((_0x4f6bec=this[_0x3764a0(0x241)][_0x3764a0(0x262)]({'unitId':_0x1e75b8,'rangeId':_0x10c9a9}))==null?void 0x0:_0x4f6bec['text'])??'';}[_0x2fb272(0x1b1)](_0x4ad423,_0x589a8c,_0x3872f8){const _0x58b3c6=_0x2fb272;var _0x527c63;let _0xc1fe5d=this[_0x58b3c6(0x220)][_0x58b3c6(0x29d)](_0x4ad423,t[_0x58b3c6(0x278)]['UNIVER_DOC']),_0x49bd82=_0xc1fe5d==null?void 0x0:_0xc1fe5d[_0x58b3c6(0x223)]();if(!_0x49bd82)return'';let _0x4253f5=_0x49bd82[_0x58b3c6(0x26e)][_0x58b3c6(0x261)](_0x589a8c,_0x3872f8),_0x53f341=((_0x527c63=_0x49bd82[_0x58b3c6(0x273)])==null?void 0x0:_0x527c63[_0x58b3c6(0x1f9)](_0x4b9b52=>g(_0x4b9b52)&&_0x4b9b52[_0x58b3c6(0x1a6)]>=_0x589a8c&&_0x4b9b52['endIndex']<_0x3872f8)['sort']((_0x278307,_0x1fcfdd)=>_0x1fcfdd[_0x58b3c6(0x1a6)]-_0x278307[_0x58b3c6(0x1a6)]))??[];for(let _0x5f35aa of _0x53f341){let _0x1d8ff7=_0x5f35aa[_0x58b3c6(0x1a6)]-_0x589a8c,_0x285632=_0x5f35aa[_0x58b3c6(0x1f1)]-_0x589a8c+0x1;_0x4253f5=''+_0x4253f5[_0x58b3c6(0x261)](0x0,_0x1d8ff7)+this[_0x58b3c6(0x1b2)](_0x4ad423,_0x5f35aa[_0x58b3c6(0x2a3)])+_0x4253f5[_0x58b3c6(0x261)](_0x285632);}return _0x4253f5;}[_0x2fb272(0x24a)](_0x3a4da0){return Ie(_0x3a4da0);}[_0x2fb272(0x19d)](_0x3437f1,_0x4cafb3,_0x480de5={}){const _0x335eac=_0x2fb272;var _0x461768;return re({'id':_0x3437f1,'body':_0x4cafb3,'documentStyle':{}},(((_0x461768=_0x4cafb3[_0x335eac(0x273)])==null?void 0x0:_0x461768[_0x335eac(0x1f9)](g))??[])[_0x335eac(0x1e8)](_0x15cb3d=>({'rangeId':_0x15cb3d[_0x335eac(0x2a3)],'text':_0x480de5[_0x15cb3d[_0x335eac(0x2a3)]]??this[_0x335eac(0x1b2)](_0x3437f1,_0x15cb3d[_0x335eac(0x2a3)])})))[_0x335eac(0x21f)]??{'dataStream':''};}};Z=A([k(0x0,t[_0x2fb272(0x292)]),k(0x1,(0x0,t[_0x2fb272(0x230)])(j)),k(0x2,(0x0,t[_0x2fb272(0x230)])(n[_0x2fb272(0x2c1)]))],Z);function Ie(_0x893b8c){const _0x7ad77c=_0x2fb272;var _0x2c3c48,_0x5c8917;let _0x1a4f42=Le(_0x893b8c),_0xb30b50=re(_0x893b8c,(((_0x2c3c48=_0x893b8c[_0x7ad77c(0x21f)])==null||(_0x2c3c48=_0x2c3c48[_0x7ad77c(0x273)])==null?void 0x0:_0x2c3c48[_0x7ad77c(0x1f9)](g))??[])[_0x7ad77c(0x1e8)](_0x2607d4=>({'rangeId':_0x2607d4[_0x7ad77c(0x2a3)],'text':Re(_0x1a4f42==null?void 0x0:_0x1a4f42[_0x7ad77c(0x28c)][_0x2607d4[_0x7ad77c(0x2a3)]])})));return _0xb30b50['resources']=(_0x5c8917=_0xb30b50[_0x7ad77c(0x1ce)])==null?void 0x0:_0x5c8917['filter'](_0x4ca65f=>_0x4ca65f[_0x7ad77c(0x1d9)]!==o),_0xb30b50;}function Le(_0x33dfc8){const _0x141ead=_0x2fb272;var _0x51a288;let _0x5e4050=(_0x51a288=_0x33dfc8[_0x141ead(0x1ce)])==null||(_0x51a288=_0x51a288[_0x141ead(0x24b)](_0x44e356=>_0x44e356[_0x141ead(0x1d9)]===_0x141ead(0x18c)))==null?void 0x0:_0x51a288[_0x141ead(0x2b9)];if(_0x5e4050)try{let _0x3e341e=JSON[_0x141ead(0x2c5)](_0x5e4050);return l(_0x3e341e)?_0x3e341e:void 0x0;}catch{return;}}function Re(_0x37998b){const _0x58e391=_0x2fb272;return _0x37998b?(0x0,e[_0x58e391(0x1ef)])({'lastValue':_0x37998b['lastValue'],'numberFormat':_0x37998b[_0x58e391(0x1da)]})[_0x58e391(0x1af)]:'';}let Q=class extends t[_0x2fb272(0x1b7)]{constructor(_0x2ad4f9,_0x287200,_0x1a071d){const _0x11cb5c=_0x2fb272;super(),this[_0x11cb5c(0x241)]=_0x2ad4f9,this[_0x11cb5c(0x192)]=_0x287200,this[_0x11cb5c(0x2ba)](_0x1a071d['registerProvider'](this));}[_0x2fb272(0x266)](_0x23323f){const _0x11af84=_0x2fb272;let _0x34ab1b=new Map();for(let _0x190c95 of this['_formulaService'][_0x11af84(0x2b2)]()){var _0x3a2d13;if(!this[_0x11af84(0x192)][_0x11af84(0x1e5)](_0x190c95[_0x11af84(0x18b)][_0x11af84(0x202)],_0x190c95[_0x11af84(0x252)])[_0x11af84(0x1ae)])continue;let _0x198298=(0x0,e[_0x11af84(0x1cf)])(_0x190c95['liveResult']),_0x1c44d2=_0x198298?(0x0,e[_0x11af84(0x239)])(_0x198298):null;if(!_0x1c44d2||ze(_0x190c95[_0x11af84(0x18b)]['lastValue'],_0x1c44d2))continue;let _0x1ece5d=_0x34ab1b[_0x11af84(0x1f2)](_0x190c95[_0x11af84(0x2c3)][_0x11af84(0x25c)])??[];_0x1ece5d[_0x11af84(0x1dd)]({'rangeId':_0x190c95[_0x11af84(0x2c3)][_0x11af84(0x2a3)],'expectedFormula':_0x190c95[_0x11af84(0x18b)]['formula'],'expectedNumberFormat':(_0x3a2d13=_0x190c95[_0x11af84(0x18b)][_0x11af84(0x1da)])==null?void 0x0:_0x3a2d13[_0x11af84(0x25a)],'expectedReferenceRevision':_0x190c95['referenceRevision'],'lastValue':_0x1c44d2}),_0x34ab1b[_0x11af84(0x217)](_0x190c95[_0x11af84(0x2c3)][_0x11af84(0x25c)],_0x1ece5d);}return Array[_0x11af84(0x280)](_0x34ab1b,([_0x514865,_0x5c41c4])=>({'id':R['id'],'params':{'unitId':_0x514865,'updates':_0x5c41c4}}));}};function _0x23b8(){const _0x2a60dd=['change$','delete','deleteFormula','15pKXMJl','_pendingUnitIds','RemoveDocFormulaMutation','formulaId','kind','endOffset','number','resources','getScalarFormulaResultCell','setResource','merge','Subject','call','complete','RichTextEditingMutation','DependentOn','docs-formula.mutation.set-resource','schemaVersion','name','numberFormat','getRichTextEditPath','48YeCIAz','push','docs-formula.command.update','accessor','disabled','114256GFwkPy','expectedReferenceRevision','_registrationService','Tools','assess','references','FormulaLastValuePersistenceService','map','tables','ReplaceDocFormulaWithTextCommand','onStarting','properties','segmentId','getLoadError','resolveFormulaResultPresentation','docs-formula.mutation.remove-formula','endIndex','get','1428560qPidWM','previousResource','DocFormulaDisplayTextService','TABLE_START','empty','dispose','filter','TextX','documentRedo','IConfigService','_resourceManagerService','CustomRangeType','length','docs-formula.command.set-number-format','resolved','formula','HostExternalReferenceModel','_commandService','next','PARAGRAPH','document','buildRemoveDocFormulaActions','TABLE_CELL_END','entries','defineProperty','SetDocFormulaNumberFormatCommand','editOp','undoMutation','presentationChanged$','ERROR','docs-formula.command.remove','COMMAND','unitDisposed$','some','docs-formula.mutation.set-last-values','clear','set','boolean','unregisterUnit','resourceUndo','removeFormula','pluginName','iterator','customDecorations','body','_univerInstanceService','string','_service','getBody','isInteger','object','asObservable','deleteLength','_registrations','docs-formula.config','model','lastValue','getPresentation','resolveBinding','TABLE_CELL_START','generateRandomId','Inject','toPrimitive','registerPluginResource','startOffset','getTextRanges','selection','source','register','externalReferences','toFormulaLastValue','error','min','docs-formula.command.convert-to-text','_resources','COLUMN_START','values','_loadErrors','_formulaService','CUSTOM','_injector','RemoveDocFormulaCommand','getSnapshot','add','packageName','FormulaResultStatus','trim','degradeDocumentData','find','getFormulaValueSync','function','redoMutation','resource','status','expectedNumberFormat','liveResult','notifyTextChanged','COLUMN_END','_isDisposed','assign','documentData','SECTION_BREAK','range','pattern','nextResource','unitId','_syncUnit','getFormula','TABLE_ROW_START','DocFormulaLifecycleController','slice','getResult','1.0.4','includes','_model','collectMutations','28755110XHeipI','DOC_FORMULA_CUSTOM_RANGE_KIND','load','InvalidDocFormulaInsertRangeError','shiftInclusiveRangeOnInsert','UniverDocsFormulaPlugin','endsWith','dataStream','getOwnPropertyDescriptor','cell','start','has','customRanges','UniverLicensePlugin','_docFormulaModel','getRevision','1775914rECtgz','UniverInstanceType','buildInsertDocFormulaActions','getBodySliceForTextXAction','InsertDocFormulaCommand','getFormulas','prototype','_presentationChanged$','DOC_SELECTION_OPTION_PRESERVE_CARET','from','fromEntries','DOC_FORMULA_SCHEMA_VERSION','docs-formula.mutation.set-formula','_change$','_updateFormulaResult','removeUnit','DocFormulaResultStatus','paragraphs','nextDocumentData','UniverDocsPlugin','pushUndoRedo','formulas','_syncScheduled','params','IUndoRedoService','Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries','referenceRevision','IUniverInstanceService','shiftInclusiveRangeOnDelete','67826lkosqk','symbol','TABLE_ROW_END','syncExecuteCommand','presentation','stale','_formulaKeys','ICommandService','deepClone','getUnit','subscribe','_preserveInvalid','RegisterOtherFormulaService','unregister','CommandType','rangeId','type','invalid-resource','isDocFormulaResource','isDocFormulaConfig','TABLE_END','_setPresentation','CellValueType','setFormulas','assertSafeDocFormulaInsertRange','paragraphId','isDocFormulaRange','DocSelectionManagerService','unitAdded$','673990FiLyZE','getRegisteredFormulas','shiftExclusiveRangeOnDelete','Module','createEmptyDocFormulaResource','docs-formula.command.insert','target','_deleteRegistration','data','disposeWithMe','isArray','MUTATION','replaceDocRanges','collectFormulaExternalReferenceQualifiers','LexerTreeBuilder','SetDocFormulaResourceMutation','DocTextResolverService','isFormulaLastValue','identity','PENDING','parse','DataStreamTreeTokenType','_queueSync','rangeType','success','setFormula','shiftExclusiveRangeOnInsert','insertLength','keys','config','DOC_FORMULA_PLUGIN','SetDocFormulaLastValuesMutation','COLUMN_GROUP_END','_instanceService','FormulaCacheEligibilityService','@univerjs-pro/docs-formula','_cacheEligibilityService','onCommandExecuted','expectedFormula','_rawResources','columnGroups','default','getUnitId','3972416LVQBkQ','UNIVER_DOC','max','9lUBStW','degradeBody','position','univer-docs-formula','DocFormulaService','setConfig','externalMutations','blockRanges','trigger','cursorOffset','startIndex','textRuns','decorate','every','getCustomRangeInterval','getCurrentUnitOfType','customBlocks','sort','eligible','text','syncUnit','resolveText','resolveFormula','getInstance','getResource','insert','buildUpdateDocFormulaActions','Disposable','IResourceManagerService','previousDocumentData','wholeEntity','updates','resourceRedo','findDocFormulaRange','version','pending','unsupported-version','forEach','sectionBreaks','_hostExternalReferenceModel'];_0x23b8=function(){return _0x2a60dd;};return _0x23b8();}Q=A([k(0x0,(0x0,t['Inject'])(j)),k(0x1,(0x0,t[_0x2fb272(0x230)])(e[_0x2fb272(0x190)])),k(0x2,(0x0,t[_0x2fb272(0x230)])(e[_0x2fb272(0x1e7)]))],Q);function ze(_0x12e210,_0x167e53){const _0xc36343=_0x2fb272;return(_0x12e210==null?void 0x0:_0x12e210['v'])===_0x167e53['v']&&(_0x12e210==null?void 0x0:_0x12e210['t'])===_0x167e53['t']&&(_0x12e210==null?void 0x0:_0x12e210[_0xc36343(0x25a)])===_0x167e53[_0xc36343(0x25a)];}let $=class extends t['Plugin']{constructor(_0x66ef4=Fe,_0x1f2983,_0x1b8244,_0x20ba92){const _0x5715ba=_0x2fb272;super(),this['_config']=_0x66ef4,this[_0x5715ba(0x243)]=_0x1f2983,this[_0x5715ba(0x204)]=_0x1b8244,this['_configService']=_0x20ba92;let {..._0x5e3b55}=(0x0,t[_0x5715ba(0x1d1)])({},Fe,this['_config']);this['_configService'][_0x5715ba(0x1a1)](_0x5715ba(0x229),_0x5e3b55);}[_0x2fb272(0x1eb)](){const _0x451790=_0x2fb272;this[_0x451790(0x243)]['add']([O]),this[_0x451790(0x243)][_0x451790(0x246)]([j]),this['_injector'][_0x451790(0x246)]([X]),this[_0x451790(0x243)][_0x451790(0x246)]([Y]),this[_0x451790(0x243)][_0x451790(0x246)]([Q]),this[_0x451790(0x243)][_0x451790(0x246)]([Z]),(0x0,t['touchDependencies'])(this[_0x451790(0x243)],[[O],[X],[Y],[Q],[Z]]),[F,I,L,R,z,B,V,H,U,W][_0x451790(0x1c1)](_0x1f66d5=>this['disposeWithMe'](this[_0x451790(0x204)]['registerCommand'](_0x1f66d5)));}};D($,_0x2fb272(0x21c),o),D($,_0x2fb272(0x247),Ne),D($,_0x2fb272(0x1be),Pe),D($,_0x2fb272(0x2a4),t['UniverInstanceType'][_0x2fb272(0x19a)]),$=A([(0x0,t[_0x2fb272(0x1d6)])(a[_0x2fb272(0x274)],e['UniverProFormulaEnginePlugin'],n[_0x2fb272(0x28a)]),k(0x1,(0x0,t[_0x2fb272(0x230)])(t['Injector'])),k(0x2,t[_0x2fb272(0x29b)]),k(0x3,t[_0x2fb272(0x1fc)])],$),exports['ConvertDocFormulaToTextCommand']=W,exports[_0x2fb272(0x268)]=s,exports['DOC_FORMULA_OBJECT_REPLACEMENT']='',exports['DOC_FORMULA_PLUGIN']=o,exports[_0x2fb272(0x282)]=0x1,Object[_0x2fb272(0x20b)](exports,_0x2fb272(0x1f5),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x2fb272(0x20b)](exports,_0x2fb272(0x260),{'enumerable':!0x0,'get':function(){return Y;}}),exports['DocFormulaModel']=O,Object[_0x2fb272(0x20b)](exports,'DocFormulaResourceController',{'enumerable':!0x0,'get':function(){return X;}}),exports[_0x2fb272(0x287)]=ve,Object['defineProperty'](exports,_0x2fb272(0x1a0),{'enumerable':!0x0,'get':function(){return j;}}),exports[_0x2fb272(0x27b)]=z,exports[_0x2fb272(0x26a)]=m,exports[_0x2fb272(0x244)]=H,exports[_0x2fb272(0x1c9)]=I,exports[_0x2fb272(0x1ea)]=U,exports[_0x2fb272(0x18d)]=R,exports['SetDocFormulaMutation']=F,exports[_0x2fb272(0x20c)]=V,exports[_0x2fb272(0x2c0)]=L,Object[_0x2fb272(0x20b)](exports,_0x2fb272(0x26c),{'enumerable':!0x0,'get':function(){return $;}}),exports['UpdateDocFormulaCommand']=B,exports[_0x2fb272(0x2ac)]=ie,exports[_0x2fb272(0x279)]=te,exports[_0x2fb272(0x208)]=h,exports[_0x2fb272(0x1b6)]=ne,exports[_0x2fb272(0x2b5)]=c,exports['degradeDocFormulaDocumentData']=Ie,exports[_0x2fb272(0x1bd)]=_,exports[_0x2fb272(0x2a7)]=u,exports[_0x2fb272(0x2ae)]=g,exports[_0x2fb272(0x2a6)]=l,exports[_0x2fb272(0x2c2)]=d;
|
|
1
|
+
const _0x540782=_0x16e3;(function(_0x216fec,_0x5be140){const _0x32d33d=_0x16e3,_0x35fb6d=_0x216fec();while(!![]){try{const _0x3ec216=parseInt(_0x32d33d(0x30a))/0x1+-parseInt(_0x32d33d(0x2ef))/0x2+-parseInt(_0x32d33d(0x1ee))/0x3+-parseInt(_0x32d33d(0x25d))/0x4*(parseInt(_0x32d33d(0x2ce))/0x5)+parseInt(_0x32d33d(0x2ad))/0x6+-parseInt(_0x32d33d(0x1f4))/0x7+parseInt(_0x32d33d(0x265))/0x8;if(_0x3ec216===_0x5be140)break;else _0x35fb6d['push'](_0x35fb6d['shift']());}catch(_0x45d9e0){_0x35fb6d['push'](_0x35fb6d['shift']());}}}(_0x5127,0x73f4e),Object[_0x540782(0x2bc)](exports,Symbol['toStringTag'],{'value':'Module'}));let e=require('@univerjs-pro/engine-formula'),t=require('@univerjs/core'),n=require('@univerjs/docs'),r=require('@univerjs/engine-formula'),i=require('rxjs'),a=require('@univerjs-pro/license');const o=_0x540782(0x310),s=_0x540782(0x29a);function c(){return{'schemaVersion':0x1,'formulas':{}};}function l(_0x324917){const _0x1aaae7=_0x540782;return!_0x324917||typeof _0x324917!=_0x1aaae7(0x23f)||!f(_0x324917,[_0x1aaae7(0x328),_0x1aaae7(0x2c9)])||!(_0x1aaae7(0x328)in _0x324917)||_0x324917[_0x1aaae7(0x328)]!==0x1||!(_0x1aaae7(0x2c9)in _0x324917)||!_0x324917[_0x1aaae7(0x2c9)]||typeof _0x324917['formulas']!=_0x1aaae7(0x23f)||Array[_0x1aaae7(0x231)](_0x324917[_0x1aaae7(0x2c9)])?!0x1:Object['entries'](_0x324917[_0x1aaae7(0x2c9)])[_0x1aaae7(0x22b)](([_0x516697,_0x3f85ca])=>_0x516697[_0x1aaae7(0x1eb)]>0x0&&u(_0x3f85ca));}function u(_0x4fc1a1){const _0x8c88ad=_0x540782;return!_0x4fc1a1||typeof _0x4fc1a1!='object'||!f(_0x4fc1a1,[_0x8c88ad(0x315),_0x8c88ad(0x281),_0x8c88ad(0x28e)])||!(_0x8c88ad(0x315)in _0x4fc1a1)||typeof _0x4fc1a1['formula']!=_0x8c88ad(0x298)||!_0x4fc1a1['formula'][_0x8c88ad(0x271)]()||_0x8c88ad(0x281)in _0x4fc1a1&&_0x4fc1a1['numberFormat']!=null&&(typeof _0x4fc1a1[_0x8c88ad(0x281)]!=_0x8c88ad(0x23f)||!f(_0x4fc1a1[_0x8c88ad(0x281)],[_0x8c88ad(0x2a1)])||!(_0x8c88ad(0x2a1)in _0x4fc1a1[_0x8c88ad(0x281)])||typeof _0x4fc1a1['numberFormat']['pattern']!=_0x8c88ad(0x298))?!0x1:!(_0x8c88ad(0x28e)in _0x4fc1a1)||_0x4fc1a1[_0x8c88ad(0x28e)]==null||d(_0x4fc1a1[_0x8c88ad(0x28e)]);}function d(_0x10d67e){const _0x582902=_0x540782;return!_0x10d67e||typeof _0x10d67e!=_0x582902(0x23f)||!f(_0x10d67e,['v','t',_0x582902(0x2a1)])||!('v'in _0x10d67e)||_0x10d67e['v']!==null&&typeof _0x10d67e['v']!='string'&&typeof _0x10d67e['v']!=_0x582902(0x313)&&typeof _0x10d67e['v']!=_0x582902(0x2f1)||'t'in _0x10d67e&&_0x10d67e['t']!=null&&!ee(_0x10d67e['t'])?!0x1:!(_0x582902(0x2a1)in _0x10d67e)||_0x10d67e['pattern']==null||typeof _0x10d67e['pattern']=='string';}function f(_0x14d0f9,_0x1fb5f3){const _0x2de963=_0x540782;let _0x1c35c4=new Set(_0x1fb5f3);return Object['keys'](_0x14d0f9)[_0x2de963(0x22b)](_0x40c7ea=>_0x1c35c4[_0x2de963(0x2c2)](_0x40c7ea));}function ee(_0x552164){const _0x24267f=_0x540782;return typeof _0x552164==_0x24267f(0x313)&&Object[_0x24267f(0x317)](t[_0x24267f(0x2f8)])[_0x24267f(0x31d)](_0x552164);}const p=new Set([t['DataStreamTreeTokenType'][_0x540782(0x244)],t[_0x540782(0x32a)][_0x540782(0x227)],t[_0x540782(0x32a)]['TABLE_ROW_START'],t[_0x540782(0x32a)][_0x540782(0x20f)],t[_0x540782(0x32a)][_0x540782(0x26f)],t[_0x540782(0x32a)][_0x540782(0x285)],t[_0x540782(0x32a)]['TABLE_END'],t['DataStreamTreeTokenType'][_0x540782(0x278)],t[_0x540782(0x32a)][_0x540782(0x2af)],t[_0x540782(0x32a)][_0x540782(0x2ea)],t[_0x540782(0x32a)][_0x540782(0x329)],t[_0x540782(0x32a)][_0x540782(0x255)],t[_0x540782(0x32a)][_0x540782(0x252)],t[_0x540782(0x32a)][_0x540782(0x2fd)]]);var m=class extends Error{constructor(){const _0x3856bf=_0x540782;super(_0x3856bf(0x2b6));}};function te(_0x578374){const _0x3a7ad4=_0x540782;var _0x18ada5,_0x566bdf;let _0x567599=t[_0x3a7ad4(0x309)][_0x3a7ad4(0x259)](_0x578374['documentData']),_0x5b96d5=T(_0x567599),{startOffset:_0x30edfe,endOffset:_0x2cd19e}=oe(_0x5b96d5,_0x578374[_0x3a7ad4(0x23d)],_0x578374[_0x3a7ad4(0x275)]);ie(_0x5b96d5,_0x30edfe,_0x2cd19e);let _0x55ffee=((_0x18ada5=_0x5b96d5[_0x3a7ad4(0x21d)])==null?void 0x0:_0x18ada5[_0x3a7ad4(0x2a9)](_0x54947f=>{const _0x23736a=_0x3a7ad4;if(!g(_0x54947f))return!0x1;let _0x520e59=(0x0,t['getCustomRangeInterval'])(_0x54947f);return _0x520e59['endOffset']>_0x30edfe&&_0x520e59[_0x23736a(0x23d)]<_0x2cd19e;})[_0x3a7ad4(0x1f3)](_0x277c0f=>_0x277c0f[_0x3a7ad4(0x270)]))??[];ce(_0x5b96d5,_0x30edfe,_0x2cd19e,''),_0x5b96d5[_0x3a7ad4(0x21d)]=[...((_0x566bdf=_0x5b96d5[_0x3a7ad4(0x21d)])==null?void 0x0:_0x566bdf[_0x3a7ad4(0x2a9)](_0x51298b=>!_0x55ffee[_0x3a7ad4(0x31d)](_0x51298b['rangeId'])&&_0x51298b['rangeId']!==_0x578374[_0x3a7ad4(0x270)]))??[],ae(_0x578374[_0x3a7ad4(0x270)],_0x30edfe)][_0x3a7ad4(0x2f3)]((_0x4612a9,_0x4ca24c)=>_0x4612a9[_0x3a7ad4(0x312)]-_0x4ca24c['startIndex']);let _0x16008f=v(_0x578374[_0x3a7ad4(0x2cf)]);return _0x55ffee[_0x3a7ad4(0x32f)](_0x2eb714=>{const _0x2d0201=_0x3a7ad4;delete _0x16008f[_0x2d0201(0x2c9)][_0x2eb714];}),_0x16008f[_0x3a7ad4(0x2c9)][_0x578374[_0x3a7ad4(0x270)]]=t[_0x3a7ad4(0x309)][_0x3a7ad4(0x259)](_0x578374[_0x3a7ad4(0x273)]),{'nextDocumentData':_0x567599,'nextResource':_0x16008f,'cursorOffset':_0x30edfe+0x1};}function ne(_0x19a1cd){const _0x4466de=_0x540782;var _0x6d9f87,_0x583fe4;let _0x3a9577=t[_0x4466de(0x309)]['deepClone'](_0x19a1cd[_0x4466de(0x2cb)]),_0x2a552f=(_0x6d9f87=T(_0x3a9577)[_0x4466de(0x21d)])==null?void 0x0:_0x6d9f87[_0x4466de(0x217)](_0x195972=>_0x195972[_0x4466de(0x270)]===_0x19a1cd[_0x4466de(0x270)]&&g(_0x195972));if(!_0x2a552f||!((_0x583fe4=_0x19a1cd[_0x4466de(0x2cf)])!=null&&_0x583fe4[_0x4466de(0x2c9)][_0x19a1cd[_0x4466de(0x270)]]))return null;let _0x1e0522=v(_0x19a1cd[_0x4466de(0x2cf)]);return _0x1e0522[_0x4466de(0x2c9)][_0x19a1cd['rangeId']]=t[_0x4466de(0x309)][_0x4466de(0x259)](_0x19a1cd['config']),{'nextDocumentData':_0x3a9577,'nextResource':_0x1e0522,'cursorOffset':_0x2a552f[_0x4466de(0x29f)]+0x1};}function h(_0x33615b){const _0x30a851=_0x540782;let _0x579a10=t[_0x30a851(0x309)]['deepClone'](_0x33615b[_0x30a851(0x2cb)]),_0x5d6e65=le(_0x579a10,_0x33615b[_0x30a851(0x270)],_0x33615b['text']??'');if(_0x5d6e65==null)return null;let _0x431bd0=v(_0x33615b[_0x30a851(0x2cf)]);return delete _0x431bd0[_0x30a851(0x2c9)][_0x33615b[_0x30a851(0x270)]],{'nextDocumentData':_0x579a10,'nextResource':_0x431bd0,'cursorOffset':_0x5d6e65};}function re(_0x5c5889,_0x124ed5){const _0x2b96f3=_0x540782;var _0x30f751;let _0x229a12=t[_0x2b96f3(0x309)]['deepClone'](_0x5c5889),_0x169393=_0x229a12[_0x2b96f3(0x2b7)];if(!_0x169393)return _0x229a12;let _0x17053b=new Map(_0x124ed5[_0x2b96f3(0x1f3)](_0x4e4c1f=>[_0x4e4c1f[_0x2b96f3(0x270)],_0x4e4c1f[_0x2b96f3(0x24a)]])),_0x47ba2f=((_0x30f751=_0x169393[_0x2b96f3(0x21d)])==null?void 0x0:_0x30f751[_0x2b96f3(0x2a9)](_0x39f297=>g(_0x39f297)&&_0x17053b[_0x2b96f3(0x2c2)](_0x39f297[_0x2b96f3(0x270)]))[_0x2b96f3(0x2f3)]((_0x2749b8,_0x48279c)=>_0x48279c[_0x2b96f3(0x312)]-_0x2749b8['startIndex']))??[];for(let _0x10840d of _0x47ba2f)le(_0x229a12,_0x10840d[_0x2b96f3(0x270)],_0x17053b[_0x2b96f3(0x291)](_0x10840d['rangeId'])??'');return _0x229a12;}function g(_0x45bf5d){const _0x7b9a2d=_0x540782;var _0x410eb9;return(_0x45bf5d==null?void 0x0:_0x45bf5d[_0x7b9a2d(0x224)])===t[_0x7b9a2d(0x22d)]['CUSTOM']&&_0x45bf5d[_0x7b9a2d(0x2ba)]===!0x0&&((_0x410eb9=_0x45bf5d[_0x7b9a2d(0x27a)])==null?void 0x0:_0x410eb9[_0x7b9a2d(0x210)])===_0x7b9a2d(0x29a);}function _0x5127(){const _0x1cbe35=['clear','ERROR','docs-formula.command.insert','call','Disposable','FormulaLastValuePersistenceService','getResource','textRuns','insert','Tools','162348qxYjjs','status','degradeDocumentData','range','redoMutation','start','DOC_FORMULA_PLUGIN','registerFormulaWithRange','startIndex','number','createEmptyDocFormulaResource','formula','docs-formula.command.set-number-format','values','ConvertDocFormulaToTextCommand','getScalarFormulaResultCell','DocFormulaDisplayTextService','SetDocFormulaMutation','load','includes','syncUnit','_docFormulaModel','ReplaceDocFormulaWithTextCommand','SetDocFormulaResourceMutation','from','_rawResources','toPrimitive','getSnapshot','DependentOn','source','schemaVersion','COLUMN_GROUP_END','DataStreamTreeTokenType','MUTATION','type','isDocFormulaResource','_syncScheduled','forEach','max','length','Injector','externalMutations','1841517ZuDbSP','referenceRevision','symbol','RemoveDocFormulaCommand','CommandType','map','3947601pUbIOm','getPresentation','_config','startsWith','docs-formula.config','IConfigService','eligible','getCurrentUnitOfType','complete','_loadErrors','onStarting','expectedFormula','invalid-resource','getUnitId','name','DOC_FORMULA_CUSTOM_RANGE_KIND','dispose','stale','columnGroups','stringify','nextDocumentData','collectFormulaExternalReferenceQualifiers','docs-formula.command.update','function','serialize','DocFormulaModel','buildUpsertHostExternalReferenceMutations','TABLE_CELL_START','kind','DocFormulaResourceController','references','delete','shiftInclusiveRangeOnDelete','JSONX','isInteger','find','Inject','docs-formula.command.convert-to-text','subscribe','UniverLicensePlugin','_deleteRegistration','customRanges','nextResource','DOC','docs-formula.command.remove','isFormulaLastValue','target','shiftInclusiveRangeOnInsert','rangeType','InvalidDocFormulaInsertRangeError','updates','TABLE_START','IUniverInstanceService','cursorOffset','shiftExclusiveRangeOnInsert','every','getRevision','CustomRangeType','getParagraphContentStartOffset','deleteLength','_cacheEligibilityService','isArray','UniverInstanceType','empty','decorate','unregisterUnit','resolveFormula','_commandService','1.2.0','expectedNumberFormat','resolved','slice','_model','startOffset','setConfig','object','_resources','iterator','UniverDocsPlugin','_resourceManagerService','SECTION_BREAK','EMPTY','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','HostExternalReferenceModel','_hostExternalReferenceModel','unitId','text','endsWith','add','DocSelectionManagerService','documentRedo','_univerInstanceService','previousDocumentData','_setPresentation','BLOCK_END','assess','end','BLOCK_START','externalReferences','getAllUnitsForType','entries','deepClone','docs-formula.mutation.set-last-values','change$','generateRandomId','3194372mKCKvX','getResult','editOp','identity','presentationChanged$','RichTextEditingMutation','formulaId','_updateFormulaResult','20068744vtTuUH','some','Plugin','_instanceService','UpdateDocFormulaCommand','color','notifyTextChanged','insertLength','pushUndoRedo','ICommandService','TABLE_CELL_END','rangeId','trim','SetDocFormulaNumberFormatCommand','config','setResource','endOffset','parse','DOC_FORMULA_SCHEMA_VERSION','COLUMN_GROUP_START','_configService','properties','liveResult','previousResource','constructor','_change$','docs-formula.mutation.remove-formula','shiftExclusiveRangeOnDelete','numberFormat','docs-formula.mutation.set-formula','blockRanges','resources','TABLE_ROW_END','isDocFormulaRange','RemoveDocFormulaMutation','paragraphId','LexerTreeBuilder','CUSTOM','DOC_FORMULA_OBJECT_REPLACEMENT','replaceDocRanges','params','lastValue','model','undoMutation','get','version','FormulaCacheEligibilityService','cell','getInstance','paragraphs','COMMAND','string','_pendingUnitIds','univer-docs-formula','sectionBreaks','syncExecuteCommand','IUndoRedoService','deleteFormula','endIndex','unregister','pattern','getFormula','paragraph','set','accessor','error','toFormulaLastValue','dataStream','filter','DOC_SELECTION_OPTION_PRESERVE_CARET','_service','removeFormula','3143892erMVvF','pending','COLUMN_START','_formulaService','DocFormulaResultStatus','disposeWithMe','presentation','docs-formula.command.replace-with-text','collectMutations','Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries','body','setFormula','packageName','wholeEntity','register','defineProperty','customDecorations','DocFormulaLifecycleController','UNIVER_DOC','touchDependencies','selection','has','getFormulas','onCommandExecuted','resolveHostFormulaExternalReferences','resourceUndo','document','_injector','formulas','InsertDocFormulaCommand','documentData','getUnit','Subject','5lnygyT','resource','findDocFormulaRange','keys','position','segmentId','pluginName','push','assign','FormulaResultStatus','_preserveInvalid','unsupported-version','_queueSync','_isDisposed','IResourceManagerService','trigger','_syncUnit','resolveText','registerCommand','asObservable','customBlocks','setFormulas','success','min','buildInsertDocFormulaActions','data','next','_registrations','COLUMN_END','getTextRanges','getRegisteredFormulas','registerProvider','isDocFormulaConfig','1487180LqKXsM','_registrationService','boolean','_formulaKeys','sort','_presentationChanged$','tables','TextX','buildRemoveDocFormulaActions','CellValueType','DocTextResolverService','formulaResult$','removeUnit','UniverDocsFormulaPlugin','CUSTOM_BLOCK','prototype','resourceRedo'];_0x5127=function(){return _0x1cbe35;};return _0x5127();}function _(_0x5a3fef,_0x25908b){const _0x3fa406=_0x540782;var _0x3540ac;return _0x5a3fef==null||(_0x3540ac=_0x5a3fef['customRanges'])==null?void 0x0:_0x3540ac[_0x3fa406(0x217)](_0x125155=>_0x125155['rangeId']===_0x25908b&&g(_0x125155));}function ie(_0x28c712,_0x29cd75,_0x2530c5){const _0x2f2c8d=_0x540782;if(_0x29cd75===_0x2530c5){if(p['has'](_0x28c712['dataStream'][_0x29cd75]))throw new m();}else{for(let _0x51301b=_0x29cd75;_0x51301b<_0x2530c5;_0x51301b++)if(_0x28c712[_0x2f2c8d(0x2a8)][_0x51301b]===t[_0x2f2c8d(0x32a)]['PARAGRAPH']||p[_0x2f2c8d(0x2c2)](_0x28c712['dataStream'][_0x51301b]))throw new m();}}function ae(_0x1d9f46,_0x5e236c){const _0x19d32b=_0x540782;return{'startIndex':_0x5e236c,'endIndex':_0x5e236c,'rangeId':_0x1d9f46,'rangeType':t['CustomRangeType'][_0x19d32b(0x28a)],'wholeEntity':!0x0,'properties':{'kind':s}};}function v(_0x4042e9){const _0x1c113f=_0x540782;return _0x4042e9?t[_0x1c113f(0x309)][_0x1c113f(0x259)](_0x4042e9):c();}function oe(_0x201cd8,_0xab9cc2,_0xcde9bb){const _0x56de80=_0x540782;let _0x3aa149=se(_0x201cd8),_0x2c6843=_0xab9cc2??_0x3aa149,_0x25101e=_0xcde9bb??_0x2c6843;return{'startOffset':y(Math[_0x56de80(0x2e5)](_0x2c6843,_0x25101e),_0x3aa149),'endOffset':y(Math[_0x56de80(0x1ea)](_0x2c6843,_0x25101e),_0x3aa149)};}function y(_0x4a0210,_0xc9f764){const _0x357a32=_0x540782;return Math['max'](0x0,Math[_0x357a32(0x2e5)](_0x4a0210,_0xc9f764));}function se(_0x1f43b4){const _0x4809af=_0x540782;return _0x1f43b4[_0x4809af(0x2a8)][_0x4809af(0x24b)](''+t[_0x4809af(0x32a)]['PARAGRAPH']+t['DataStreamTreeTokenType'][_0x4809af(0x244)])?Math[_0x4809af(0x1ea)](0x0,_0x1f43b4[_0x4809af(0x2a8)][_0x4809af(0x1eb)]-0x2):_0x1f43b4[_0x4809af(0x2a8)]['endsWith'](t[_0x4809af(0x32a)][_0x4809af(0x244)])?Math['max'](0x0,_0x1f43b4[_0x4809af(0x2a8)][_0x4809af(0x1eb)]-0x1):_0x1f43b4[_0x4809af(0x2a8)][_0x4809af(0x1eb)];}function ce(_0x117821,_0x4b302b,_0x1f16ec,_0x3d337a){_0x1f16ec>_0x4b302b&&de(_0x117821,_0x4b302b,_0x1f16ec),ue(_0x117821,_0x4b302b,_0x3d337a);}function le(_0x42e32a,_0x257d24,_0x2d872b){const _0x250ed8=_0x540782;var _0x3d5c9f,_0x26a2f6;let _0x4672e3=T(_0x42e32a),_0x1e0997=(_0x3d5c9f=_0x4672e3[_0x250ed8(0x21d)])==null?void 0x0:_0x3d5c9f[_0x250ed8(0x217)](_0x2a9178=>_0x2a9178[_0x250ed8(0x270)]===_0x257d24&&g(_0x2a9178));if(!_0x1e0997)return null;let _0x3aca92=(0x0,t['getCustomRangeInterval'])(_0x1e0997);return ce(_0x4672e3,_0x3aca92[_0x250ed8(0x23d)],_0x3aca92['endOffset'],_0x2d872b),_0x4672e3[_0x250ed8(0x21d)]=(_0x26a2f6=_0x4672e3[_0x250ed8(0x21d)])==null?void 0x0:_0x26a2f6['filter'](_0x1152ff=>_0x1152ff[_0x250ed8(0x270)]!==_0x257d24),_0x3aca92[_0x250ed8(0x23d)]+_0x2d872b['length'];}function ue(_0x42825a,_0x5817c9,_0x1c7526){const _0x2a027a=_0x540782;_0x1c7526&&(_0x42825a[_0x2a027a(0x2a8)]=''+_0x42825a[_0x2a027a(0x2a8)][_0x2a027a(0x23b)](0x0,_0x5817c9)+_0x1c7526+_0x42825a[_0x2a027a(0x2a8)]['slice'](_0x5817c9),fe(_0x42825a,_0x5817c9,_0x1c7526['length']));}function de(_0x310c9a,_0x455d17,_0x2b7645){const _0x1fae72=_0x540782;let _0x131a53=_0x2b7645-_0x455d17;_0x310c9a[_0x1fae72(0x2a8)]=''+_0x310c9a[_0x1fae72(0x2a8)][_0x1fae72(0x23b)](0x0,_0x455d17)+_0x310c9a[_0x1fae72(0x2a8)][_0x1fae72(0x23b)](_0x2b7645),pe(_0x310c9a,_0x455d17,_0x131a53);}function fe(_0x2aa1e8,_0x23afa9,_0xecc93c){const _0xfd63aa=_0x540782;_0x2aa1e8[_0xfd63aa(0x296)]=b(_0x2aa1e8[_0xfd63aa(0x296)],_0x23afa9,_0xecc93c),_0x2aa1e8[_0xfd63aa(0x29b)]=b(_0x2aa1e8['sectionBreaks'],_0x23afa9,_0xecc93c),_0x2aa1e8[_0xfd63aa(0x2e2)]=b(_0x2aa1e8[_0xfd63aa(0x2e2)],_0x23afa9,_0xecc93c),_0x2aa1e8[_0xfd63aa(0x307)]=me(_0x2aa1e8['textRuns'],_0x23afa9,_0xecc93c),_0x2aa1e8[_0xfd63aa(0x2f5)]=he(_0x2aa1e8['tables'],_0x23afa9,_0xecc93c),_0x2aa1e8['columnGroups']=S(_0x2aa1e8[_0xfd63aa(0x206)],_0x23afa9,_0xecc93c),_0x2aa1e8['customRanges']=S(_0x2aa1e8[_0xfd63aa(0x21d)],_0x23afa9,_0xecc93c),_0x2aa1e8['customDecorations']=S(_0x2aa1e8[_0xfd63aa(0x2bd)],_0x23afa9,_0xecc93c),_0x2aa1e8[_0xfd63aa(0x283)]=S(_0x2aa1e8[_0xfd63aa(0x283)],_0x23afa9,_0xecc93c);}function pe(_0x24364a,_0x3dc94d,_0x270342){const _0x351950=_0x540782;var _0x3a8f0f,_0x365caa;_0x24364a[_0x351950(0x296)]=x(_0x24364a[_0x351950(0x296)],_0x3dc94d,_0x270342),_0x24364a['sectionBreaks']=x(_0x24364a[_0x351950(0x29b)],_0x3dc94d,_0x270342),_0x24364a[_0x351950(0x2e2)]=x(_0x24364a[_0x351950(0x2e2)],_0x3dc94d,_0x270342),_0x24364a['textRuns']=(_0x3a8f0f=w((_0x365caa=_0x24364a['textRuns'])==null?void 0x0:_0x365caa['map'](_0x1fc997=>({..._0x1fc997,'startIndex':_0x1fc997['st'],'endIndex':_0x1fc997['ed']})),_0x3dc94d,_0x270342))==null?void 0x0:_0x3a8f0f['map'](_0x4107d2=>{let {startIndex:_0x536535,endIndex:_0x227cca,..._0x18245f}=_0x4107d2;return{..._0x18245f,'st':_0x536535,'ed':_0x227cca};}),_0x24364a[_0x351950(0x2f5)]=w(_0x24364a[_0x351950(0x2f5)],_0x3dc94d,_0x270342),_0x24364a[_0x351950(0x206)]=C(_0x24364a['columnGroups'],_0x3dc94d,_0x270342),_0x24364a[_0x351950(0x21d)]=C(_0x24364a[_0x351950(0x21d)],_0x3dc94d,_0x270342),_0x24364a['customDecorations']=C(_0x24364a[_0x351950(0x2bd)],_0x3dc94d,_0x270342),_0x24364a[_0x351950(0x283)]=C(_0x24364a[_0x351950(0x283)],_0x3dc94d,_0x270342);}function b(_0x4bb274,_0x42e576,_0x1f7068){const _0x4d3ef1=_0x540782;return _0x4bb274==null?void 0x0:_0x4bb274[_0x4d3ef1(0x1f3)](_0x4577f3=>_0x4577f3[_0x4d3ef1(0x312)]>=_0x42e576?{..._0x4577f3,'startIndex':_0x4577f3[_0x4d3ef1(0x312)]+_0x1f7068}:_0x4577f3);}function x(_0x2869c0,_0x14d210,_0xd26f23){const _0x36717c=_0x540782;let _0x70ee0a=_0x14d210+_0xd26f23;return _0x2869c0==null?void 0x0:_0x2869c0[_0x36717c(0x1f3)](_0x3cbfe6=>_0x3cbfe6[_0x36717c(0x312)]>=_0x14d210&&_0x3cbfe6[_0x36717c(0x312)]<_0x70ee0a?null:_0x3cbfe6['startIndex']>=_0x70ee0a?{..._0x3cbfe6,'startIndex':_0x3cbfe6[_0x36717c(0x312)]-_0xd26f23}:_0x3cbfe6)[_0x36717c(0x2a9)](_0x555b9d=>_0x555b9d!=null);}function me(_0x4a6afe,_0x142abc,_0x26eba9){const _0x121e48=_0x540782;return _0x4a6afe==null?void 0x0:_0x4a6afe[_0x121e48(0x1f3)](_0x320734=>_0x320734['st']>=_0x142abc?{..._0x320734,'st':_0x320734['st']+_0x26eba9,'ed':_0x320734['ed']+_0x26eba9}:_0x320734['ed']>_0x142abc?{..._0x320734,'ed':_0x320734['ed']+_0x26eba9}:_0x320734);}function S(_0x4e83e9,_0x501b82,_0x1672fa){const _0x2f17b6=_0x540782;return _0x4e83e9==null?void 0x0:_0x4e83e9[_0x2f17b6(0x1f3)](_0x3d8bff=>(0x0,t[_0x2f17b6(0x223)])(_0x3d8bff,_0x501b82,_0x1672fa));}function he(_0x473b0e,_0x3db800,_0x370c76){const _0x15f745=_0x540782;return _0x473b0e==null?void 0x0:_0x473b0e['map'](_0x2163d2=>(0x0,t[_0x15f745(0x22a)])(_0x2163d2,_0x3db800,_0x370c76));}function C(_0x53ff92,_0x3b60ff,_0x2147a8){const _0x381c07=_0x540782;return _0x53ff92==null?void 0x0:_0x53ff92[_0x381c07(0x1f3)](_0x2b7e7e=>(0x0,t[_0x381c07(0x214)])(_0x2b7e7e,_0x3b60ff,_0x2147a8))['filter'](_0x3e10ee=>_0x3e10ee!=null);}function w(_0x4337f2,_0x2618e3,_0x34adea){const _0x55517a=_0x540782;return _0x4337f2==null?void 0x0:_0x4337f2['map'](_0x1d8725=>(0x0,t[_0x55517a(0x280)])(_0x1d8725,_0x2618e3,_0x34adea))[_0x55517a(0x2a9)](_0x86adad=>_0x86adad!=null);}function T(_0x3c332b){const _0x44fe17=_0x540782;if(!_0x3c332b['body'])throw Error('Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.');return _0x3c332b[_0x44fe17(0x2b7)];}function E(_0x364f14){'@babel/helpers - typeof';const _0x5c3e47=_0x540782;return E=typeof Symbol=='function'&&typeof Symbol[_0x5c3e47(0x241)]==_0x5c3e47(0x1f0)?function(_0x5bc892){return typeof _0x5bc892;}:function(_0x24933b){const _0x35799a=_0x5c3e47;return _0x24933b&&typeof Symbol==_0x35799a(0x20b)&&_0x24933b[_0x35799a(0x27d)]===Symbol&&_0x24933b!==Symbol[_0x35799a(0x2fe)]?'symbol':typeof _0x24933b;},E(_0x364f14);}function ge(_0x118362,_0x33b3c6){const _0x4bdffc=_0x540782;if(E(_0x118362)!=_0x4bdffc(0x23f)||!_0x118362)return _0x118362;var _0x3eaf46=_0x118362[Symbol[_0x4bdffc(0x324)]];if(_0x3eaf46!==void 0x0){var _0x1b50c8=_0x3eaf46[_0x4bdffc(0x303)](_0x118362,_0x33b3c6||'default');if(E(_0x1b50c8)!='object')return _0x1b50c8;throw TypeError(_0x4bdffc(0x246));}return(_0x33b3c6===_0x4bdffc(0x298)?String:Number)(_0x118362);}function _e(_0x165160){const _0x361b0b=_0x540782;var _0x183269=ge(_0x165160,_0x361b0b(0x298));return E(_0x183269)==_0x361b0b(0x1f0)?_0x183269:_0x183269+'';}function D(_0x3a2054,_0x2075a5,_0x45084e){const _0x5d4631=_0x540782;return(_0x2075a5=_e(_0x2075a5))in _0x3a2054?Object[_0x5d4631(0x2bc)](_0x3a2054,_0x2075a5,{'value':_0x45084e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3a2054[_0x2075a5]=_0x45084e,_0x3a2054;}var O=class extends t['Disposable']{constructor(..._0x12e871){const _0x2ce54c=_0x540782;super(..._0x12e871),D(this,_0x2ce54c(0x240),new Map()),D(this,_0x2ce54c(0x323),new Map()),D(this,'_loadErrors',new Map()),D(this,_0x2ce54c(0x27e),new i[(_0x2ce54c(0x2cd))]()),D(this,_0x2ce54c(0x25b),this[_0x2ce54c(0x27e)][_0x2ce54c(0x2e1)]());}['getFormula'](_0x580b10,_0x2359fe){const _0x5f5857=_0x540782;var _0x184a03;let _0x2e52fa=(_0x184a03=this['_resources'][_0x5f5857(0x291)](_0x580b10))==null?void 0x0:_0x184a03[_0x5f5857(0x2c9)][_0x2359fe];return _0x2e52fa?t[_0x5f5857(0x309)][_0x5f5857(0x259)](_0x2e52fa):void 0x0;}[_0x540782(0x2c3)](_0x5defd7){const _0x156cb0=_0x540782;var _0x494c3c;return t[_0x156cb0(0x309)][_0x156cb0(0x259)](((_0x494c3c=this[_0x156cb0(0x240)][_0x156cb0(0x291)](_0x5defd7))==null?void 0x0:_0x494c3c[_0x156cb0(0x2c9)])??{});}[_0x540782(0x306)](_0x3190ce){const _0x57da99=_0x540782;let _0x3fc761=this[_0x57da99(0x240)][_0x57da99(0x291)](_0x3190ce);return _0x3fc761?t[_0x57da99(0x309)][_0x57da99(0x259)](_0x3fc761):void 0x0;}[_0x540782(0x2b8)](_0x1e726d,_0x5f0aa0,_0x578994){const _0x5b4f61=_0x540782;return this[_0x5b4f61(0x2e3)](_0x1e726d,{[_0x5f0aa0]:_0x578994});}[_0x540782(0x274)](_0x1f6152,_0x234b4e){const _0x30ef58=_0x540782;return this['_loadErrors'][_0x30ef58(0x2c2)](_0x1f6152)||!l(_0x234b4e)?!0x1:(this[_0x30ef58(0x240)][_0x30ef58(0x2a4)](_0x1f6152,t['Tools'][_0x30ef58(0x259)](_0x234b4e)),this['_change$'][_0x30ef58(0x2e8)]({'unitId':_0x1f6152}),!0x0);}[_0x540782(0x2e3)](_0x1b407e,_0x203f4){const _0xbd7f3f=_0x540782;if(this[_0xbd7f3f(0x1fd)][_0xbd7f3f(0x2c2)](_0x1b407e)||!Object['keys'](_0x203f4)[_0xbd7f3f(0x1eb)]||!l({'schemaVersion':0x1,'formulas':_0x203f4}))return!0x1;let _0x367444=this[_0xbd7f3f(0x240)]['get'](_0x1b407e)??c(),_0x359aa0=t[_0xbd7f3f(0x309)]['deepClone'](_0x367444);return Object[_0xbd7f3f(0x2d6)](_0x359aa0[_0xbd7f3f(0x2c9)],t[_0xbd7f3f(0x309)]['deepClone'](_0x203f4)),this[_0xbd7f3f(0x240)][_0xbd7f3f(0x2a4)](_0x1b407e,_0x359aa0),this[_0xbd7f3f(0x27e)]['next']({'unitId':_0x1b407e,'rangeIds':Object[_0xbd7f3f(0x2d1)](_0x203f4)}),!0x0;}['removeFormula'](_0x27ca1b,_0xa4fb62){const _0x359dad=_0x540782;if(this[_0x359dad(0x1fd)][_0x359dad(0x2c2)](_0x27ca1b))return!0x1;let _0xffb8d5=this[_0x359dad(0x240)][_0x359dad(0x291)](_0x27ca1b);if(!(_0xffb8d5!=null&&_0xffb8d5[_0x359dad(0x2c9)][_0xa4fb62]))return!0x1;let _0x586c69=t[_0x359dad(0x309)][_0x359dad(0x259)](_0xffb8d5);return delete _0x586c69['formulas'][_0xa4fb62],this[_0x359dad(0x240)]['set'](_0x27ca1b,_0x586c69),this['_change$'][_0x359dad(0x2e8)]({'unitId':_0x27ca1b,'rangeIds':[_0xa4fb62]}),!0x0;}[_0x540782(0x31c)](_0x10f2b9,_0x5e5435){const _0x44f4a0=_0x540782;return _0x5e5435&&typeof _0x5e5435==_0x44f4a0(0x23f)&&_0x44f4a0(0x328)in _0x5e5435&&_0x5e5435[_0x44f4a0(0x328)]!==0x1?(this[_0x44f4a0(0x2d8)](_0x10f2b9,_0x5e5435,_0x44f4a0(0x2d9)),!0x1):l(_0x5e5435)?(this[_0x44f4a0(0x240)][_0x44f4a0(0x2a4)](_0x10f2b9,t[_0x44f4a0(0x309)]['deepClone'](_0x5e5435)),this[_0x44f4a0(0x323)][_0x44f4a0(0x213)](_0x10f2b9),this[_0x44f4a0(0x1fd)][_0x44f4a0(0x213)](_0x10f2b9),this[_0x44f4a0(0x27e)][_0x44f4a0(0x2e8)]({'unitId':_0x10f2b9}),!0x0):(this[_0x44f4a0(0x2d8)](_0x10f2b9,_0x5e5435,_0x44f4a0(0x200)),!0x1);}[_0x540782(0x20c)](_0x5c65a4){const _0x54c177=_0x540782;let _0x544f88=this[_0x54c177(0x240)][_0x54c177(0x291)](_0x5c65a4);return _0x544f88?t['Tools']['deepClone'](_0x544f88):this[_0x54c177(0x323)][_0x54c177(0x2c2)](_0x5c65a4)?t[_0x54c177(0x309)]['deepClone'](this[_0x54c177(0x323)][_0x54c177(0x291)](_0x5c65a4)):c();}['getLoadError'](_0x3b8be4){return this['_loadErrors']['get'](_0x3b8be4);}[_0x540782(0x2fb)](_0x1192aa){const _0x1c5146=_0x540782;this[_0x1c5146(0x240)][_0x1c5146(0x213)](_0x1192aa),this[_0x1c5146(0x323)]['delete'](_0x1192aa),this[_0x1c5146(0x1fd)][_0x1c5146(0x213)](_0x1192aa),this['_change$'][_0x1c5146(0x2e8)]({'unitId':_0x1192aa});}[_0x540782(0x204)](){const _0xa7dcbf=_0x540782;this['_resources']['clear'](),this[_0xa7dcbf(0x323)][_0xa7dcbf(0x300)](),this['_loadErrors'][_0xa7dcbf(0x300)](),this['_change$'][_0xa7dcbf(0x1fc)](),super[_0xa7dcbf(0x204)]();}[_0x540782(0x2d8)](_0x132dea,_0x1cbe18,_0x7dc762){const _0x3150b8=_0x540782;this[_0x3150b8(0x240)][_0x3150b8(0x213)](_0x132dea),this[_0x3150b8(0x323)][_0x3150b8(0x2a4)](_0x132dea,t['Tools'][_0x3150b8(0x259)](_0x1cbe18)),this[_0x3150b8(0x1fd)][_0x3150b8(0x2a4)](_0x132dea,_0x7dc762),this[_0x3150b8(0x27e)][_0x3150b8(0x2e8)]({'unitId':_0x132dea});}};let ve=function(_0x461fb4){const _0x2971fc=_0x540782;return _0x461fb4[_0x2971fc(0x245)]=_0x2971fc(0x233),_0x461fb4['PENDING']=_0x2971fc(0x2ae),_0x461fb4['SUCCESS']=_0x2971fc(0x2e4),_0x461fb4[_0x2971fc(0x301)]=_0x2971fc(0x2a6),_0x461fb4;}({});function k(_0x5b7953,_0x537480){return function(_0x2cd45d,_0x3860bc){_0x537480(_0x2cd45d,_0x3860bc,_0x5b7953);};}function A(_0x5df0a2,_0x4b0b7d,_0x571e03,_0x1619a9){const _0x4ff5b6=_0x540782;var _0x5c6394=arguments[_0x4ff5b6(0x1eb)],_0x47cddb=_0x5c6394<0x3?_0x4b0b7d:_0x1619a9===null?_0x1619a9=Object['getOwnPropertyDescriptor'](_0x4b0b7d,_0x571e03):_0x1619a9,_0x27e4ba;if(typeof Reflect==_0x4ff5b6(0x23f)&&typeof Reflect[_0x4ff5b6(0x234)]==_0x4ff5b6(0x20b))_0x47cddb=Reflect[_0x4ff5b6(0x234)](_0x5df0a2,_0x4b0b7d,_0x571e03,_0x1619a9);else{for(var _0x20bbd8=_0x5df0a2[_0x4ff5b6(0x1eb)]-0x1;_0x20bbd8>=0x0;_0x20bbd8--)(_0x27e4ba=_0x5df0a2[_0x20bbd8])&&(_0x47cddb=(_0x5c6394<0x3?_0x27e4ba(_0x47cddb):_0x5c6394>0x3?_0x27e4ba(_0x4b0b7d,_0x571e03,_0x47cddb):_0x27e4ba(_0x4b0b7d,_0x571e03))||_0x47cddb);}return _0x5c6394>0x3&&_0x47cddb&&Object[_0x4ff5b6(0x2bc)](_0x4b0b7d,_0x571e03,_0x47cddb),_0x47cddb;}let j=class extends t['Disposable']{constructor(_0x1d634e,_0x481181,_0x374cc5){const _0x4b133e=_0x540782;super(),this['_model']=_0x1d634e,this['_registrationService']=_0x481181,this['_hostExternalReferenceModel']=_0x374cc5,D(this,_0x4b133e(0x2e9),new Map()),D(this,_0x4b133e(0x2f2),new Map()),D(this,_0x4b133e(0x2f4),new i[(_0x4b133e(0x2cd))]()),D(this,_0x4b133e(0x261),this[_0x4b133e(0x2f4)][_0x4b133e(0x2e1)]()),this[_0x4b133e(0x2b2)](this[_0x4b133e(0x2f0)][_0x4b133e(0x2fa)][_0x4b133e(0x21a)](_0xa4952e=>{const _0x3bde39=_0x4b133e;for(let _0x2c2ee6 of Object[_0x3bde39(0x317)](_0xa4952e))for(let _0x3cf987 of Object[_0x3bde39(0x317)](_0x2c2ee6))_0x3cf987[_0x3bde39(0x32f)](_0x279a87=>this['_updateFormulaResult'](_0x279a87));}));}[_0x540782(0x31e)](_0x1bc78c){const _0x2ecb0a=_0x540782;var _0x1cc93c;let _0x3ea494=_0x1bc78c[_0x2ecb0a(0x201)](),_0x1af45c=((_0x1cc93c=_0x1bc78c['getSnapshot']()['body'])==null||(_0x1cc93c=_0x1cc93c[_0x2ecb0a(0x21d)])==null?void 0x0:_0x1cc93c['filter'](g))??[],_0x54b5d3=this['_model'][_0x2ecb0a(0x2c3)](_0x3ea494),_0x579697=new Set();for(let _0x33fb7b of _0x1af45c){let _0x1f6d13=_0x54b5d3[_0x33fb7b[_0x2ecb0a(0x270)]];_0x1f6d13&&(_0x579697[_0x2ecb0a(0x24c)](M(_0x3ea494,_0x33fb7b[_0x2ecb0a(0x270)])),this[_0x2ecb0a(0x2bb)]({'unitId':_0x3ea494,'rangeId':_0x33fb7b[_0x2ecb0a(0x270)]},_0x1f6d13));}for(let _0x365276 of Array[_0x2ecb0a(0x322)](this[_0x2ecb0a(0x2e9)][_0x2ecb0a(0x317)]()))_0x365276[_0x2ecb0a(0x249)]===_0x3ea494&&!_0x579697[_0x2ecb0a(0x2c2)](M(_0x365276[_0x2ecb0a(0x249)],_0x365276[_0x2ecb0a(0x270)]))&&this['unregister'](_0x365276);}['register'](_0x55518a,_0x504359){const _0x57e07a=_0x540782;let _0x25c2a7=M(_0x55518a[_0x57e07a(0x249)],_0x55518a[_0x57e07a(0x270)]),_0x2e3413=this['_registrations'][_0x57e07a(0x291)](_0x25c2a7),_0x265f47=this[_0x57e07a(0x248)][_0x57e07a(0x22c)](_0x55518a[_0x57e07a(0x249)]);if(_0x2e3413&&_0x2e3413[_0x57e07a(0x273)][_0x57e07a(0x315)]===_0x504359['formula']&&_0x2e3413['referenceRevision']===_0x265f47){_0x2e3413['config']=_0x504359;let _0xb98b28=_0x2e3413['formulaId']?this['_registrationService']['getFormulaValueSync'](_0x2e3413['unitId'],_0x2e3413[_0x57e07a(0x249)],_0x2e3413[_0x57e07a(0x263)])??void 0x0:void 0x0;_0x2e3413[_0x57e07a(0x27b)]=_0xb98b28,this[_0x57e07a(0x251)](_0x25c2a7,N(_0x504359,_0xb98b28));return;}_0x2e3413!=null&&_0x2e3413['formulaId']&&this['_deleteRegistration'](_0x2e3413);let _0x1b5062={..._0x55518a,'config':_0x504359,'referenceRevision':_0x265f47,'presentation':N(_0x504359,void 0x0)};if(this[_0x57e07a(0x2e9)][_0x57e07a(0x2a4)](_0x25c2a7,_0x1b5062),!_0x504359[_0x57e07a(0x315)][_0x57e07a(0x271)]())return;let _0xd7f271=this['_registrationService'][_0x57e07a(0x311)](_0x55518a[_0x57e07a(0x249)],_0x55518a[_0x57e07a(0x249)],_0x504359['formula'],void 0x0,{'rangeId':_0x55518a[_0x57e07a(0x270)]},r['OtherFormulaBizType'][_0x57e07a(0x21f)],_0x55518a[_0x57e07a(0x270)]);_0x1b5062[_0x57e07a(0x263)]=_0xd7f271,this[_0x57e07a(0x2f2)][_0x57e07a(0x2a4)](_0xd7f271,_0x25c2a7);}['unregister'](_0x27278b){const _0x3bf5fe=_0x540782;let _0x5156cd=M(_0x27278b[_0x3bf5fe(0x249)],_0x27278b[_0x3bf5fe(0x270)]),_0x285dee=this[_0x3bf5fe(0x2e9)][_0x3bf5fe(0x291)](_0x5156cd);_0x285dee&&(this['_deleteRegistration'](_0x285dee),this['_registrations'][_0x3bf5fe(0x213)](_0x5156cd));}[_0x540782(0x235)](_0x3a0cde){const _0x48312a=_0x540782;for(let _0x4ef5a6 of Array[_0x48312a(0x322)](this[_0x48312a(0x2e9)][_0x48312a(0x317)]()))_0x4ef5a6[_0x48312a(0x249)]===_0x3a0cde&&this[_0x48312a(0x2a0)](_0x4ef5a6);}[_0x540782(0x1f5)](_0x9eb779){const _0x2be1c1=_0x540782;var _0x2609f7;return(_0x2609f7=this['_registrations']['get'](M(_0x9eb779[_0x2be1c1(0x249)],_0x9eb779[_0x2be1c1(0x270)])))==null?void 0x0:_0x2609f7[_0x2be1c1(0x2b3)];}[_0x540782(0x25e)](_0x23b882){const _0xb74475=_0x540782;let _0x49cf59=this[_0xb74475(0x2e9)]['get'](M(_0x23b882[_0xb74475(0x249)],_0x23b882['rangeId']));return _0x49cf59?P(_0x49cf59):void 0x0;}['getRegisteredFormulas'](){const _0x36ea06=_0x540782;return Array['from'](this['_registrations'][_0x36ea06(0x317)](),_0x15e2b1=>({'identity':{'unitId':_0x15e2b1['unitId'],'rangeId':_0x15e2b1['rangeId']},'config':_0x15e2b1[_0x36ea06(0x273)],'referenceRevision':_0x15e2b1[_0x36ea06(0x1ef)],..._0x15e2b1['liveResult']?{'liveResult':_0x15e2b1['liveResult']}:null}));}[_0x540782(0x204)](){const _0x3707dc=_0x540782;for(let _0x5d67bc of this[_0x3707dc(0x2e9)][_0x3707dc(0x317)]())this['_deleteRegistration'](_0x5d67bc);this[_0x3707dc(0x2e9)][_0x3707dc(0x300)](),this[_0x3707dc(0x2f2)]['clear'](),this[_0x3707dc(0x2f4)][_0x3707dc(0x1fc)](),super[_0x3707dc(0x204)]();}[_0x540782(0x264)](_0x3ec40c){const _0x3fa5d3=_0x540782;let _0x584882=this[_0x3fa5d3(0x2f2)][_0x3fa5d3(0x291)](_0x3ec40c['formulaId']),_0x3ebf23=_0x584882?this[_0x3fa5d3(0x2e9)][_0x3fa5d3(0x291)](_0x584882):void 0x0;_0x584882&&_0x3ebf23&&(_0x3ebf23[_0x3fa5d3(0x27b)]=_0x3ec40c,this['_setPresentation'](_0x584882,N(_0x3ebf23[_0x3fa5d3(0x273)],_0x3ec40c)));}[_0x540782(0x251)](_0x2d8538,_0x79b4d1){const _0x3368d5=_0x540782;var _0x496c28,_0x35c92d;let _0x360b0e=this['_registrations'][_0x3368d5(0x291)](_0x2d8538);if(!_0x360b0e||ye(_0x360b0e[_0x3368d5(0x2b3)],_0x79b4d1))return;let _0x236524=_0x360b0e[_0x3368d5(0x2b3)],_0x57f07f=P(_0x360b0e);_0x360b0e[_0x3368d5(0x2b3)]=_0x79b4d1,this[_0x3368d5(0x2f4)]['next']({'unitId':_0x360b0e[_0x3368d5(0x249)],'rangeId':_0x360b0e[_0x3368d5(0x270)],'presentation':_0x79b4d1,'previousPresentation':_0x236524,'result':P(_0x360b0e),'previousResult':{..._0x57f07f,..._0x236524,'value':(_0x496c28=_0x236524['cell'])==null?void 0x0:_0x496c28['v'],'valueType':((_0x35c92d=_0x236524[_0x3368d5(0x294)])==null?void 0x0:_0x35c92d['t'])??void 0x0}});}[_0x540782(0x21c)](_0x3ee8c3){const _0x8a737c=_0x540782;_0x3ee8c3[_0x8a737c(0x263)]&&(this[_0x8a737c(0x2f0)][_0x8a737c(0x29e)](_0x3ee8c3[_0x8a737c(0x249)],_0x3ee8c3[_0x8a737c(0x249)],[_0x3ee8c3['formulaId']]),this[_0x8a737c(0x2f2)][_0x8a737c(0x213)](_0x3ee8c3[_0x8a737c(0x263)]));}};j=A([k(0x0,(0x0,t[_0x540782(0x218)])(O)),k(0x1,(0x0,t[_0x540782(0x218)])(r['RegisterOtherFormulaService'])),k(0x2,(0x0,t[_0x540782(0x218)])(e['HostExternalReferenceModel']))],j);function M(_0x1ad65a,_0x1a9256){return _0x1ad65a+'\x00'+_0x1a9256;}function N(_0xae2fc4,_0x5bfc92){const _0x185c63=_0x540782;return(0x0,e['resolveFormulaResultPresentation'])({'numberFormat':_0xae2fc4[_0x185c63(0x281)],'lastValue':_0xae2fc4[_0x185c63(0x28e)],'result':_0x5bfc92});}function P(_0x32516a){const _0x181203=_0x540782;var _0x18c4e4,_0x45c93e,_0x5e93c1;let _0x237863=_0x32516a['presentation'],_0x5216ba=_0x32516a[_0x181203(0x273)][_0x181203(0x315)]['trim']()?_0x237863[_0x181203(0x205)]||_0x237863[_0x181203(0x294)]==null?_0x181203(0x2ae):((_0x18c4e4=_0x32516a[_0x181203(0x27b)])==null?void 0x0:_0x18c4e4[_0x181203(0x30b)])===r[_0x181203(0x2d7)]['ERROR']?_0x181203(0x2a6):_0x181203(0x2e4):_0x181203(0x233);return{..._0x237863,'status':_0x5216ba,'value':(_0x45c93e=_0x237863[_0x181203(0x294)])==null?void 0x0:_0x45c93e['v'],'valueType':((_0x5e93c1=_0x237863['cell'])==null?void 0x0:_0x5e93c1['t'])??void 0x0};}function ye(_0x544ee5,_0x5b6a30){const _0x25917d=_0x540782;var _0x1f72c6,_0x44702a,_0x2da62d,_0x5dd14d;return _0x544ee5[_0x25917d(0x24a)]===_0x5b6a30['text']&&_0x544ee5[_0x25917d(0x26a)]===_0x5b6a30[_0x25917d(0x26a)]&&_0x544ee5['pattern']===_0x5b6a30[_0x25917d(0x2a1)]&&_0x544ee5[_0x25917d(0x327)]===_0x5b6a30[_0x25917d(0x327)]&&_0x544ee5[_0x25917d(0x205)]===_0x5b6a30['stale']&&((_0x1f72c6=_0x544ee5[_0x25917d(0x294)])==null?void 0x0:_0x1f72c6['t'])===((_0x44702a=_0x5b6a30[_0x25917d(0x294)])==null?void 0x0:_0x44702a['t'])&&Object['is']((_0x2da62d=_0x544ee5[_0x25917d(0x294)])==null?void 0x0:_0x2da62d['v'],(_0x5dd14d=_0x5b6a30[_0x25917d(0x294)])==null?void 0x0:_0x5dd14d['v']);}const F={'id':_0x540782(0x282),'type':t[_0x540782(0x1f2)]['MUTATION'],'handler':(_0x4ebacb,_0x5af727)=>!(_0x5af727!=null&&_0x5af727[_0x540782(0x249)])||!_0x5af727[_0x540782(0x270)]||!_0x5af727[_0x540782(0x273)]?!0x1:_0x4ebacb[_0x540782(0x291)](O)[_0x540782(0x2b8)](_0x5af727[_0x540782(0x249)],_0x5af727[_0x540782(0x270)],_0x5af727[_0x540782(0x273)])},I={'id':_0x540782(0x27f),'type':t['CommandType']['MUTATION'],'handler':(_0x36787e,_0x10c8c9)=>!(_0x10c8c9!=null&&_0x10c8c9['unitId'])||!_0x10c8c9['rangeId']?!0x1:_0x36787e['get'](O)[_0x540782(0x2ac)](_0x10c8c9[_0x540782(0x249)],_0x10c8c9[_0x540782(0x270)])},L={'id':'docs-formula.mutation.set-resource','type':t[_0x540782(0x1f2)][_0x540782(0x32b)],'handler':(_0x5240e9,_0x5c7bb6)=>!(_0x5c7bb6!=null&&_0x5c7bb6[_0x540782(0x249)])||!_0x5c7bb6['resource']?!0x1:_0x5240e9[_0x540782(0x291)](O)[_0x540782(0x274)](_0x5c7bb6['unitId'],_0x5c7bb6[_0x540782(0x2cf)])},R={'id':_0x540782(0x25a),'type':t[_0x540782(0x1f2)][_0x540782(0x32b)],'handler':(_0x118abc,_0x1175d7)=>{const _0xff469b=_0x540782;if(!(_0x1175d7!=null&&_0x1175d7['unitId'])||!_0x1175d7[_0xff469b(0x226)]['length'])return!0x1;let _0x7ef0bd=_0x118abc[_0xff469b(0x291)](O),_0x3fa88b=_0x118abc['get'](e[_0xff469b(0x247)]),_0x5afa04=_0x7ef0bd['getResource'](_0x1175d7[_0xff469b(0x249)]);if(!_0x5afa04)return!0x1;let _0x1ddff0=t['Tools'][_0xff469b(0x259)](_0x5afa04),_0x32d7fb=!0x1;for(let _0x4fc460 of _0x1175d7['updates']){var _0x413796,_0x22e9a9,_0x5dec23,_0x2bd546;let _0x58f72d=_0x1ddff0[_0xff469b(0x2c9)][_0x4fc460['rangeId']];_0x58f72d&&_0x58f72d[_0xff469b(0x315)]===_0x4fc460[_0xff469b(0x1ff)]&&((_0x413796=_0x58f72d[_0xff469b(0x281)])==null?void 0x0:_0x413796[_0xff469b(0x2a1)])===_0x4fc460[_0xff469b(0x239)]&&_0x3fa88b[_0xff469b(0x22c)](_0x1175d7['unitId'])===_0x4fc460['expectedReferenceRevision']&&(((_0x22e9a9=_0x58f72d[_0xff469b(0x28e)])==null?void 0x0:_0x22e9a9['v'])!==_0x4fc460[_0xff469b(0x28e)]['v']||((_0x5dec23=_0x58f72d[_0xff469b(0x28e)])==null?void 0x0:_0x5dec23['t'])!==_0x4fc460[_0xff469b(0x28e)]['t']||((_0x2bd546=_0x58f72d[_0xff469b(0x28e)])==null?void 0x0:_0x2bd546[_0xff469b(0x2a1)])!==_0x4fc460[_0xff469b(0x28e)][_0xff469b(0x2a1)])&&(_0x58f72d['lastValue']=t['Tools']['deepClone'](_0x4fc460[_0xff469b(0x28e)]),_0x32d7fb=!0x0);}return!_0x32d7fb||_0x7ef0bd[_0xff469b(0x274)](_0x1175d7['unitId'],_0x1ddff0);}},z={'id':_0x540782(0x302),'type':t['CommandType'][_0x540782(0x297)],'handler':(_0x370717,_0x148b3b)=>{const _0x423275=_0x540782;if(!(_0x148b3b!=null&&_0x148b3b['formula'][_0x423275(0x271)]()))return!0x1;let _0xd4b79e=K(_0x370717,_0x148b3b[_0x423275(0x249)],'');if(!_0xd4b79e)return!0x1;let _0x31379c=xe(_0x148b3b[_0x423275(0x222)],_0xd4b79e[_0x423275(0x2b7)],be(_0x370717,_0xd4b79e['unitId']));if(!_0x31379c)return!0x1;let _0x5e8bdb=Se(_0x370717,_0xd4b79e[_0x423275(0x249)],_0x148b3b[_0x423275(0x315)],_0x148b3b[_0x423275(0x256)]??[]);if(!_0x5e8bdb)return!0x1;let _0x4cd089=Ce(_0xd4b79e[_0x423275(0x2b7)],_0xd4b79e[_0x423275(0x28f)],_0xd4b79e[_0x423275(0x249)]),_0x1c092c=we({'documentData':_0xd4b79e[_0x423275(0x2cb)],'resource':_0xd4b79e['resource'],'rangeId':_0x4cd089,'config':{'formula':_0x148b3b[_0x423275(0x315)],..._0x148b3b[_0x423275(0x281)]?{'numberFormat':_0x148b3b[_0x423275(0x281)]}:null},'startOffset':_0x31379c[_0x423275(0x23d)],'endOffset':_0x31379c[_0x423275(0x275)]});if(!_0x1c092c)return!0x1;let _0x3031b7=(0x0,e[_0x423275(0x20e)])(_0x370717,_0xd4b79e[_0x423275(0x249)],_0x5e8bdb);return!_0x3031b7||!q({'accessor':_0x370717,'document':_0xd4b79e['document'],'unitId':_0xd4b79e[_0x423275(0x249)],'trigger':z['id'],'rangeId':_0x4cd089,'previousResource':_0xd4b79e[_0x423275(0x2cf)],'nextResource':_0x1c092c[_0x423275(0x21e)],'previousDocumentData':_0xd4b79e['documentData'],'nextDocumentData':_0x1c092c[_0x423275(0x208)],'cursorOffset':_0x1c092c['cursorOffset'],'externalMutations':_0x3031b7})?!0x1:{'rangeId':_0x4cd089,'startOffset':_0x1c092c[_0x423275(0x229)]-0x1,'endOffset':_0x1c092c[_0x423275(0x229)]};}},B={'id':_0x540782(0x20a),'type':t[_0x540782(0x1f2)]['COMMAND'],'handler':(_0x257d57,_0x449da8)=>{const _0x58ea07=_0x540782;if(!(_0x449da8!=null&&_0x449da8[_0x58ea07(0x270)])||!_0x449da8[_0x58ea07(0x315)][_0x58ea07(0x271)]())return!0x1;let _0x16cb12=K(_0x257d57,_0x449da8[_0x58ea07(0x249)],''),_0x1d3aca=_0x16cb12==null?void 0x0:_0x16cb12[_0x58ea07(0x28f)][_0x58ea07(0x2a2)](_0x16cb12[_0x58ea07(0x249)],_0x449da8[_0x58ea07(0x270)]),_0x501c8e=_0x16cb12?_(_0x16cb12[_0x58ea07(0x2cb)][_0x58ea07(0x2b7)],_0x449da8['rangeId']):void 0x0;if(!_0x16cb12||!_0x1d3aca||!_0x501c8e)return!0x1;let _0x3724d6=Se(_0x257d57,_0x16cb12[_0x58ea07(0x249)],_0x449da8[_0x58ea07(0x315)],_0x449da8[_0x58ea07(0x256)]??[]);if(!_0x3724d6)return!0x1;let _0x441073=(0x0,e['buildUpsertHostExternalReferenceMutations'])(_0x257d57,_0x16cb12[_0x58ea07(0x249)],_0x3724d6);if(!_0x441073)return!0x1;let _0x146a1c=je(_0x16cb12[_0x58ea07(0x2cf)]);return _0x146a1c[_0x58ea07(0x2c9)][_0x449da8[_0x58ea07(0x270)]]={'formula':_0x449da8[_0x58ea07(0x315)],..._0x449da8[_0x58ea07(0x281)]?{'numberFormat':_0x449da8[_0x58ea07(0x281)]}:_0x1d3aca[_0x58ea07(0x281)]?{'numberFormat':_0x1d3aca['numberFormat']}:null},q({'accessor':_0x257d57,'document':_0x16cb12[_0x58ea07(0x2c7)],'unitId':_0x16cb12[_0x58ea07(0x249)],'trigger':B['id'],'rangeId':_0x449da8[_0x58ea07(0x270)],'previousResource':_0x16cb12['resource'],'nextResource':_0x146a1c,'cursorOffset':_0x501c8e[_0x58ea07(0x29f)]+0x1,'externalMutations':_0x441073});}},V={'id':_0x540782(0x316),'type':t['CommandType'][_0x540782(0x297)],'handler':(_0x3f8b8f,_0x685240)=>{const _0x510995=_0x540782;if(!(_0x685240!=null&&_0x685240[_0x510995(0x270)]))return!0x1;let _0x205c56=K(_0x3f8b8f,_0x685240[_0x510995(0x249)],''),_0x51d68a=_0x205c56==null?void 0x0:_0x205c56[_0x510995(0x28f)][_0x510995(0x2a2)](_0x205c56[_0x510995(0x249)],_0x685240['rangeId']),_0x29a2f9=_0x205c56?_(_0x205c56[_0x510995(0x2cb)][_0x510995(0x2b7)],_0x685240[_0x510995(0x270)]):void 0x0;if(!_0x205c56||!_0x51d68a||!_0x29a2f9)return!0x1;let _0x13627c=je(_0x205c56[_0x510995(0x2cf)]);return _0x13627c[_0x510995(0x2c9)][_0x685240['rangeId']]={..._0x51d68a,..._0x685240[_0x510995(0x281)]?{'numberFormat':_0x685240[_0x510995(0x281)]}:null},_0x685240['numberFormat']||delete _0x13627c['formulas'][_0x685240['rangeId']]['numberFormat'],q({'accessor':_0x3f8b8f,'document':_0x205c56[_0x510995(0x2c7)],'unitId':_0x205c56[_0x510995(0x249)],'trigger':V['id'],'rangeId':_0x685240[_0x510995(0x270)],'previousResource':_0x205c56[_0x510995(0x2cf)],'nextResource':_0x13627c,'cursorOffset':_0x29a2f9[_0x510995(0x29f)]+0x1,'externalMutations':{}});}},H={'id':_0x540782(0x220),'type':t[_0x540782(0x1f2)][_0x540782(0x297)],'handler':(_0x284bc1,_0x13b352)=>G(_0x284bc1,_0x13b352,'',H['id'])},U={'id':_0x540782(0x2b4),'type':t[_0x540782(0x1f2)][_0x540782(0x297)],'handler':(_0x34c73d,_0x48151a)=>G(_0x34c73d,_0x48151a,(_0x48151a==null?void 0x0:_0x48151a[_0x540782(0x24a)])??'',U['id'])},W={'id':_0x540782(0x219),'type':t[_0x540782(0x1f2)][_0x540782(0x297)],'handler':(_0x1e9a3f,_0x46426e)=>{const _0x3ad12a=_0x540782;if(!(_0x46426e!=null&&_0x46426e[_0x3ad12a(0x270)]))return!0x1;let _0x18e21d=K(_0x1e9a3f,_0x46426e[_0x3ad12a(0x249)],'');if(!_0x18e21d)return!0x1;let _0x2f38cc=_0x1e9a3f[_0x3ad12a(0x291)](j)[_0x3ad12a(0x25e)]({'unitId':_0x18e21d[_0x3ad12a(0x249)],'rangeId':_0x46426e['rangeId']});return _0x2f38cc?G(_0x1e9a3f,_0x46426e,_0x2f38cc['text'],W['id']):!0x1;}};function G(_0x9b02c3,_0x30a0e0,_0x522990,_0x43c4ca){const _0x15ba91=_0x540782;if(!(_0x30a0e0!=null&&_0x30a0e0[_0x15ba91(0x270)]))return!0x1;let _0x47890f=K(_0x9b02c3,_0x30a0e0[_0x15ba91(0x249)],'');if(!_0x47890f)return!0x1;let _0x334dd7=h({'documentData':_0x47890f[_0x15ba91(0x2cb)],'resource':_0x47890f[_0x15ba91(0x2cf)],'rangeId':_0x30a0e0[_0x15ba91(0x270)],'text':_0x522990});return _0x334dd7?q({'accessor':_0x9b02c3,'document':_0x47890f[_0x15ba91(0x2c7)],'unitId':_0x47890f[_0x15ba91(0x249)],'trigger':_0x43c4ca,'rangeId':_0x30a0e0[_0x15ba91(0x270)],'previousResource':_0x47890f[_0x15ba91(0x2cf)],'nextResource':_0x334dd7[_0x15ba91(0x21e)],'previousDocumentData':_0x47890f[_0x15ba91(0x2cb)],'nextDocumentData':_0x334dd7['nextDocumentData'],'cursorOffset':_0x334dd7[_0x15ba91(0x229)],'externalMutations':{}}):!0x1;}function K(_0xb08e8b,_0x26babf,_0x33c199){const _0xd1118=_0x540782;if(_0x33c199)return null;let _0x3d4620=_0xb08e8b[_0xd1118(0x291)](t['IUniverInstanceService']),_0x3f6d44=(_0x26babf?_0x3d4620[_0xd1118(0x2cc)](_0x26babf,t['UniverInstanceType'][_0xd1118(0x2bf)]):_0x3d4620[_0xd1118(0x1fb)](t[_0xd1118(0x232)][_0xd1118(0x2bf)]))??null;if(!_0x3f6d44)return null;let _0x5f4bdd=_0x3f6d44[_0xd1118(0x325)](),_0x90477c=_0x5f4bdd[_0xd1118(0x2b7)];if(_0x5f4bdd['disabled']||!_0x90477c)return null;let _0x2fcd2b=_0xb08e8b[_0xd1118(0x291)](O);return _0x2fcd2b['getLoadError'](_0x3f6d44[_0xd1118(0x201)]())?null:{'document':_0x3f6d44,'body':_0x90477c,'documentData':_0x5f4bdd,'model':_0x2fcd2b,'resource':_0x2fcd2b['getResource'](_0x3f6d44[_0xd1118(0x201)]())??c(),'unitId':_0x3f6d44[_0xd1118(0x201)]()};}function be(_0x31852d,_0x306507){const _0x3471c4=_0x540782;var _0x6c431;return(_0x6c431=_0x31852d[_0x3471c4(0x291)](n['DocSelectionManagerService'])[_0x3471c4(0x2eb)]({'subUnitId':_0x306507,'unitId':_0x306507}))==null?void 0x0:_0x6c431[0x0];}function xe(_0x577610,_0xb42688,_0x2de726){const _0x28bfcc=_0x540782;if((_0x577610==null?void 0x0:_0x577610[_0x28bfcc(0x32c)])===_0x28bfcc(0x2a3)){var _0x18f6a1;let _0x55d509=((_0x18f6a1=_0xb42688['paragraphs'])==null?void 0x0:_0x18f6a1[_0x28bfcc(0x2a9)](_0x191d73=>_0x191d73[_0x28bfcc(0x288)]===_0x577610[_0x28bfcc(0x288)]))??[];if(_0x55d509[_0x28bfcc(0x1eb)]!==0x1)return null;let _0x138976=_0x55d509[0x0],_0x230899=(0x0,t[_0x28bfcc(0x22e)])(_0xb42688,_0x138976),_0x16f964=_0x138976[_0x28bfcc(0x312)]-_0x230899,_0x47ecfb=_0x577610[_0x28bfcc(0x2d2)]===_0x28bfcc(0x254)?_0x16f964:_0x577610[_0x28bfcc(0x2d2)];if(!Number[_0x28bfcc(0x216)](_0x47ecfb)||_0x47ecfb<0x0||_0x47ecfb>_0x16f964)return null;let _0xb9f925=_0x230899+_0x47ecfb;return{'startOffset':_0xb9f925,'endOffset':_0xb9f925};}if((_0x577610==null?void 0x0:_0x577610[_0x28bfcc(0x32c)])===_0x28bfcc(0x30d))return!Number[_0x28bfcc(0x216)](_0x577610[_0x28bfcc(0x23d)])||!Number['isInteger'](_0x577610[_0x28bfcc(0x275)])?null:{'startOffset':Math['min'](_0x577610[_0x28bfcc(0x23d)],_0x577610[_0x28bfcc(0x275)]),'endOffset':Math[_0x28bfcc(0x1ea)](_0x577610[_0x28bfcc(0x23d)],_0x577610[_0x28bfcc(0x275)])};let _0x29046a=(_0x577610==null?void 0x0:_0x577610['type'])==='selection'?_0x577610[_0x28bfcc(0x2c1)]:_0x2de726;return!_0x29046a||_0x29046a[_0x28bfcc(0x2d3)]?null:{'startOffset':Math[_0x28bfcc(0x2e5)](_0x29046a['startOffset'],_0x29046a[_0x28bfcc(0x275)]),'endOffset':Math[_0x28bfcc(0x1ea)](_0x29046a[_0x28bfcc(0x23d)],_0x29046a[_0x28bfcc(0x275)])};}function Se(_0x1a4137,_0x191d57,_0x322c11,_0x5ab56e){const _0x1b0c5c=_0x540782;let _0x32eb22=_0x1a4137['get'](r[_0x1b0c5c(0x289)]),_0x1c95a2=_0x322c11[_0x1b0c5c(0x1f7)]('=')?_0x322c11[_0x1b0c5c(0x23b)](0x1):_0x322c11,_0x26fec4=_0x32eb22['sequenceNodesBuilder'](_0x1c95a2);if(!_0x26fec4)return null;let _0x5d0fc5=_0x1a4137['get'](e[_0x1b0c5c(0x247)]),_0x4a9c68=(0x0,e[_0x1b0c5c(0x2c5)])({'qualifiers':(0x0,e[_0x1b0c5c(0x209)])(_0x26fec4),'explicitReferences':_0x5ab56e??[],'resolveBinding':_0x11eeaf=>_0x5d0fc5['resolveBinding'](_0x191d57,_0x11eeaf)});return _0x4a9c68[_0x1b0c5c(0x30b)]===_0x1b0c5c(0x23a)?_0x4a9c68[_0x1b0c5c(0x212)]:null;}function Ce(_0x3fb577,_0x40a6b4,_0x5dd1c2){const _0x4b13a3=_0x540782;var _0x5e2024;let _0x539229=(0x0,t[_0x4b13a3(0x25c)])(0x6);for(;_0x3fb577!=null&&(_0x5e2024=_0x3fb577[_0x4b13a3(0x21d)])!=null&&_0x5e2024[_0x4b13a3(0x266)](_0x43563c=>_0x43563c['rangeId']===_0x539229)||_0x40a6b4[_0x4b13a3(0x2a2)](_0x5dd1c2,_0x539229);)_0x539229=(0x0,t[_0x4b13a3(0x25c)])(0x6);return _0x539229;}function we(_0x4ae887){try{return te(_0x4ae887);}catch(_0x4fe070){if(_0x4fe070 instanceof m)return null;throw _0x4fe070;}}function Te(_0x7954de){const _0x24e617=_0x540782;let _0x3320d3=_0x7954de[_0x24e617(0x250)]&&_0x7954de[_0x24e617(0x208)]?De(_0x7954de[_0x24e617(0x2c7)],_0x7954de[_0x24e617(0x249)],_0x7954de[_0x24e617(0x250)],_0x7954de['nextDocumentData'],_0x7954de[_0x24e617(0x229)],_0x7954de[_0x24e617(0x2dd)]):null;return _0x7954de[_0x24e617(0x250)]&&_0x7954de[_0x24e617(0x208)]&&!_0x3320d3?null:{'documentRedo':_0x3320d3,'resourceRedo':{'id':L['id'],'params':{'unitId':_0x7954de[_0x24e617(0x249)],'resource':_0x7954de[_0x24e617(0x21e)]}},'resourceUndo':{'id':L['id'],'params':{'unitId':_0x7954de[_0x24e617(0x249)],'resource':_0x7954de[_0x24e617(0x27c)]}}};}function Ee(_0x33780e,_0x2c0927,_0x528379,_0x448cd2){const _0x3fc973=_0x540782;_0x448cd2[_0x3fc973(0x26d)]({'id':_0x33780e[_0x3fc973(0x2dd)]+':'+_0x33780e['rangeId'],'unitID':_0x33780e[_0x3fc973(0x249)],'redoMutations':[..._0x33780e['externalMutations'][_0x3fc973(0x30e)]?[_0x33780e[_0x3fc973(0x1ed)][_0x3fc973(0x30e)]]:[],..._0x2c0927['documentRedo']?[_0x2c0927['documentRedo']]:[],_0x2c0927['resourceRedo']],'undoMutations':[_0x2c0927[_0x3fc973(0x2c6)],..._0x528379?[_0x528379]:[],..._0x33780e[_0x3fc973(0x1ed)][_0x3fc973(0x290)]?[_0x33780e[_0x3fc973(0x1ed)]['undoMutation']]:[]]});}function q(_0x1982af){const _0x414caa=_0x540782;let _0x2e7bc4=_0x1982af[_0x414caa(0x2a5)]['get'](t[_0x414caa(0x26e)]),_0x590863=_0x1982af[_0x414caa(0x2a5)][_0x414caa(0x291)](t[_0x414caa(0x29d)]),_0x560b40=_0x1982af[_0x414caa(0x2a5)][_0x414caa(0x291)](n[_0x414caa(0x24d)]),_0x287dd5=Te(_0x1982af);if(!_0x287dd5)return!0x1;let _0x58f75a=!0x1,_0x391ba8=null,_0x6f7fc5=!0x1;try{if(_0x1982af[_0x414caa(0x1ed)]['redoMutation']){if(!_0x2e7bc4[_0x414caa(0x29c)](_0x1982af[_0x414caa(0x1ed)][_0x414caa(0x30e)]['id'],_0x1982af[_0x414caa(0x1ed)][_0x414caa(0x30e)][_0x414caa(0x28d)]))return!0x1;_0x58f75a=!0x0;}if(_0x287dd5[_0x414caa(0x24e)]){let _0x432fb7=_0x2e7bc4['syncExecuteCommand'](_0x287dd5['documentRedo']['id'],_0x287dd5[_0x414caa(0x24e)][_0x414caa(0x28d)]);if(!_0x432fb7)return J(_0x2e7bc4,_0x1982af['externalMutations'],_0x58f75a),!0x1;_0x391ba8={'id':n['RichTextEditingMutation']['id'],'params':{..._0x432fb7,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x2e7bc4['syncExecuteCommand'](_0x287dd5['resourceRedo']['id'],_0x287dd5[_0x414caa(0x2ff)][_0x414caa(0x28d)]))return Oe(_0x2e7bc4,_0x391ba8),J(_0x2e7bc4,_0x1982af['externalMutations'],_0x58f75a),!0x1;_0x6f7fc5=!0x0,Ee(_0x1982af,_0x287dd5,_0x391ba8,_0x590863);}catch(_0x18ed9a){throw _0x6f7fc5&&_0x2e7bc4[_0x414caa(0x29c)](_0x287dd5[_0x414caa(0x2c6)]['id'],_0x287dd5[_0x414caa(0x2c6)][_0x414caa(0x28d)]),Oe(_0x2e7bc4,_0x391ba8),J(_0x2e7bc4,_0x1982af[_0x414caa(0x1ed)],_0x58f75a),_0x18ed9a;}return _0x560b40[_0x414caa(0x28c)]([{'startOffset':_0x1982af['cursorOffset'],'endOffset':_0x1982af['cursorOffset'],'segmentId':''}],{'unitId':_0x1982af['unitId'],'subUnitId':_0x1982af[_0x414caa(0x249)]},!0x1,{[n[_0x414caa(0x2aa)]]:!0x0}),!0x0;}function De(_0x2616a6,_0x245386,_0x2fd015,_0x9dcf5d,_0x259359,_0x49d4eb){const _0x23dc67=_0x540782;let _0x40d719=ke(_0x2fd015,_0x9dcf5d,(0x0,t['getRichTextEditPath'])(_0x2616a6,''));return _0x40d719?{'id':n[_0x23dc67(0x262)]['id'],'params':{'unitId':_0x245386,'actions':_0x40d719,'segmentId':'','textRanges':[{'startOffset':_0x259359,'endOffset':_0x259359,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x49d4eb}}:null;}function Oe(_0x7217e7,_0x56fa51){const _0x4c64f2=_0x540782;_0x56fa51&&_0x7217e7[_0x4c64f2(0x29c)](_0x56fa51['id'],_0x56fa51['params']);}function J(_0x3d974c,_0x508b2b,_0xcf8670){const _0x4f9dd8=_0x540782;_0xcf8670&&_0x508b2b['undoMutation']&&_0x3d974c[_0x4f9dd8(0x29c)](_0x508b2b['undoMutation']['id'],_0x508b2b[_0x4f9dd8(0x290)][_0x4f9dd8(0x28d)]);}function ke(_0x43a39f,_0x264b45,_0xbfa0a5){const _0x1f0872=_0x540782;let _0x5c62a1=_0x43a39f[_0x1f0872(0x2b7)],_0x311913=_0x264b45['body'],_0x553f16=Ae(_0x5c62a1==null?void 0x0:_0x5c62a1[_0x1f0872(0x2a8)],_0x311913==null?void 0x0:_0x311913[_0x1f0872(0x2a8)]);if(!_0x553f16||!_0x311913)return null;let _0xcf9274=new t[(_0x1f0872(0x2f6))]();return _0xcf9274['retain'](_0x553f16[_0x1f0872(0x30f)]),_0x553f16['insertLength']>0x0&&_0xcf9274[_0x1f0872(0x308)](_0x553f16[_0x1f0872(0x26c)],(0x0,t['getBodySliceForTextXAction'])(_0x311913,_0x553f16[_0x1f0872(0x30f)],_0x553f16['start']+_0x553f16[_0x1f0872(0x26c)],!0x1)),_0x553f16[_0x1f0872(0x22f)]>0x0&&_0xcf9274['delete'](_0x553f16['deleteLength']),t[_0x1f0872(0x215)][_0x1f0872(0x295)]()[_0x1f0872(0x25f)](_0xcf9274[_0x1f0872(0x20c)](),_0xbfa0a5);}function Ae(_0x13f79b,_0x2fc63a){const _0x3bb5b6=_0x540782;if(_0x13f79b==null||_0x2fc63a==null||_0x13f79b===_0x2fc63a)return null;let _0x29d1ba=0x0;for(;_0x29d1ba<_0x13f79b[_0x3bb5b6(0x1eb)]&&_0x29d1ba<_0x2fc63a[_0x3bb5b6(0x1eb)]&&_0x13f79b[_0x29d1ba]===_0x2fc63a[_0x29d1ba];)_0x29d1ba+=0x1;let _0x449d9f=_0x13f79b[_0x3bb5b6(0x1eb)],_0x3a2a7a=_0x2fc63a[_0x3bb5b6(0x1eb)];for(;_0x449d9f>_0x29d1ba&&_0x3a2a7a>_0x29d1ba&&_0x13f79b[_0x449d9f-0x1]===_0x2fc63a[_0x3a2a7a-0x1];)--_0x449d9f,--_0x3a2a7a;return{'start':_0x29d1ba,'deleteLength':_0x449d9f-_0x29d1ba,'insertLength':_0x3a2a7a-_0x29d1ba};}function je(_0x150810){const _0x4cc08e=_0x540782;return{'schemaVersion':0x1,'formulas':Object['fromEntries'](Object[_0x4cc08e(0x258)](_0x150810[_0x4cc08e(0x2c9)])[_0x4cc08e(0x1f3)](([_0x2a8a63,_0x15000c])=>[_0x2a8a63,{..._0x15000c,..._0x15000c[_0x4cc08e(0x281)]?{'numberFormat':{..._0x15000c[_0x4cc08e(0x281)]}}:null,..._0x15000c['lastValue']?{'lastValue':{..._0x15000c[_0x4cc08e(0x28e)]}}:null}]))};}let Y=class extends t['Disposable']{constructor(_0x9474d2,_0x571a77,_0x4d56cd,_0x208b12){const _0x3b96de=_0x540782;super(),this[_0x3b96de(0x268)]=_0x9474d2,this['_commandService']=_0x571a77,this[_0x3b96de(0x23c)]=_0x4d56cd,this[_0x3b96de(0x2ab)]=_0x208b12,D(this,'_pendingUnitIds',new Set()),D(this,_0x3b96de(0x32e),!0x1),D(this,_0x3b96de(0x2db),!0x1),this[_0x3b96de(0x268)][_0x3b96de(0x257)](t[_0x3b96de(0x232)]['UNIVER_DOC'])[_0x3b96de(0x32f)](_0x5aba81=>this[_0x3b96de(0x2ab)][_0x3b96de(0x31e)](_0x5aba81)),this[_0x3b96de(0x2b2)](this['_model'][_0x3b96de(0x25b)]['subscribe'](({unitId:_0x5279e8})=>this[_0x3b96de(0x2de)](_0x5279e8))),this[_0x3b96de(0x2b2)](this[_0x3b96de(0x268)]['unitAdded$'][_0x3b96de(0x21a)](({unit:_0x500fec})=>{const _0x29fc7f=_0x3b96de;_0x500fec[_0x29fc7f(0x32c)]===t['UniverInstanceType'][_0x29fc7f(0x2bf)]&&this['_queueSync'](_0x500fec[_0x29fc7f(0x201)]());})),this[_0x3b96de(0x2b2)](this[_0x3b96de(0x268)]['unitDisposed$'][_0x3b96de(0x21a)](_0x57a681=>{const _0x36e616=_0x3b96de;this[_0x36e616(0x2ab)]['unregisterUnit'](_0x57a681[_0x36e616(0x201)]());})),this['disposeWithMe'](this[_0x3b96de(0x237)][_0x3b96de(0x2c4)](_0x285e4a=>{const _0x37c1c8=_0x3b96de;if(_0x285e4a['id']===n[_0x37c1c8(0x262)]['id']&&Me(_0x285e4a['params'])){let _0x4133e4=_0x285e4a[_0x37c1c8(0x28d)];_0x4133e4[_0x37c1c8(0x2d3)]||this['_syncUnit'](_0x4133e4[_0x37c1c8(0x249)]);}}));}[_0x540782(0x204)](){const _0x48450b=_0x540782;this['_isDisposed']=!0x0,super[_0x48450b(0x204)]();}[_0x540782(0x2da)](_0x456d83){const _0x35afa7=_0x540782;this[_0x35afa7(0x299)]['add'](_0x456d83),!this['_syncScheduled']&&(this[_0x35afa7(0x32e)]=!0x0,queueMicrotask(()=>{const _0x214cf4=_0x35afa7;if(this[_0x214cf4(0x32e)]=!0x1,this[_0x214cf4(0x2db)])return;let _0x3d3912=Array[_0x214cf4(0x322)](this[_0x214cf4(0x299)]);this[_0x214cf4(0x299)][_0x214cf4(0x300)](),_0x3d3912[_0x214cf4(0x32f)](_0xd87fcf=>this[_0x214cf4(0x2de)](_0xd87fcf));}));}[_0x540782(0x2de)](_0x1671bf){const _0x1f0585=_0x540782;let _0x5d8a8f=this['_instanceService'][_0x1f0585(0x2cc)](_0x1671bf,t[_0x1f0585(0x232)][_0x1f0585(0x2bf)]);_0x5d8a8f&&this[_0x1f0585(0x2ab)][_0x1f0585(0x31e)](_0x5d8a8f);}};Y=A([k(0x0,t[_0x540782(0x228)]),k(0x1,t[_0x540782(0x26e)]),k(0x2,(0x0,t[_0x540782(0x218)])(O)),k(0x3,(0x0,t['Inject'])(j))],Y);function Me(_0x2a0ad7){const _0x1a2569=_0x540782;return typeof _0x2a0ad7==_0x1a2569(0x23f)&&!!_0x2a0ad7&&_0x1a2569(0x249)in _0x2a0ad7&&typeof _0x2a0ad7[_0x1a2569(0x249)]=='string'&&(!(_0x1a2569(0x2d3)in _0x2a0ad7)||_0x2a0ad7['segmentId']===void 0x0||typeof _0x2a0ad7[_0x1a2569(0x2d3)]=='string');}let X=class extends t['Disposable']{constructor(_0x4a49f0,_0x23b8df){const _0x1f9bc5=_0x540782;super(),this[_0x1f9bc5(0x243)]=_0x4a49f0,this[_0x1f9bc5(0x31f)]=_0x23b8df,this[_0x1f9bc5(0x2b2)](this[_0x1f9bc5(0x243)]['registerPluginResource']({'pluginName':o,'businesses':[t['UniverInstanceType'][_0x1f9bc5(0x2bf)]],'toJson':_0x5d75b5=>JSON[_0x1f9bc5(0x207)](this[_0x1f9bc5(0x31f)][_0x1f9bc5(0x20c)](_0x5d75b5)),'parseJson':_0x2f9886=>JSON[_0x1f9bc5(0x276)](_0x2f9886),'onLoad':(_0xcb1673,_0x885266)=>{const _0x55f2ca=_0x1f9bc5;this[_0x55f2ca(0x31f)]['load'](_0xcb1673,_0x885266);},'onUnLoad':_0x1af2c9=>this['_docFormulaModel']['removeUnit'](_0x1af2c9)}));}};X=A([k(0x0,t[_0x540782(0x2dc)]),k(0x1,(0x0,t[_0x540782(0x218)])(O))],X);var Ne='@univerjs-pro/docs-formula',Pe=_0x540782(0x238);const Fe={};let Z=class extends t[_0x540782(0x304)]{constructor(_0x185d31,_0x1ab98e,_0x107e2d){const _0x1af00a=_0x540782;super(),this[_0x1af00a(0x24f)]=_0x185d31,this[_0x1af00a(0x2b0)]=_0x1ab98e,this[_0x1af00a(0x2b2)](_0x107e2d[_0x1af00a(0x2bb)]({'resolve':(_0x525007,_0x362ffa)=>{const _0x20d3a1=_0x1af00a;var _0x22f2ff;return((_0x22f2ff=_0x362ffa[_0x20d3a1(0x21d)])==null?void 0x0:_0x22f2ff[_0x20d3a1(0x2a9)](g)[_0x20d3a1(0x1f3)](_0x3bd099=>({'startOffset':_0x3bd099[_0x20d3a1(0x312)],'endOffset':_0x3bd099[_0x20d3a1(0x29f)]+0x1,'text':this['resolveFormula'](_0x525007,_0x3bd099[_0x20d3a1(0x270)])})))??[];}})),this[_0x1af00a(0x2b2)](this[_0x1af00a(0x2b0)]['presentationChanged$']['subscribe'](({unitId:_0x3b12d2})=>{const _0x135aa6=_0x1af00a;_0x107e2d[_0x135aa6(0x26b)](_0x3b12d2);}));}[_0x540782(0x236)](_0x4a9fd8,_0x56d37d){const _0x303c13=_0x540782;var _0x1022e6;return((_0x1022e6=this['_formulaService'][_0x303c13(0x25e)]({'unitId':_0x4a9fd8,'rangeId':_0x56d37d}))==null?void 0x0:_0x1022e6[_0x303c13(0x24a)])??'';}[_0x540782(0x2df)](_0x3c994c,_0x38021d,_0x20f468){const _0x478afe=_0x540782;var _0x52d779;let _0x392360=this[_0x478afe(0x24f)][_0x478afe(0x2cc)](_0x3c994c,t['UniverInstanceType'][_0x478afe(0x2bf)]),_0x2703f2=_0x392360==null?void 0x0:_0x392360['getBody']();if(!_0x2703f2)return'';let _0x12f919=_0x2703f2[_0x478afe(0x2a8)][_0x478afe(0x23b)](_0x38021d,_0x20f468),_0x6abca2=((_0x52d779=_0x2703f2[_0x478afe(0x21d)])==null?void 0x0:_0x52d779['filter'](_0x1093b2=>g(_0x1093b2)&&_0x1093b2[_0x478afe(0x312)]>=_0x38021d&&_0x1093b2['endIndex']<_0x20f468)[_0x478afe(0x2f3)]((_0x139c63,_0x275d72)=>_0x275d72[_0x478afe(0x312)]-_0x139c63[_0x478afe(0x312)]))??[];for(let _0x34b022 of _0x6abca2){let _0x59955d=_0x34b022['startIndex']-_0x38021d,_0x5e9256=_0x34b022[_0x478afe(0x29f)]-_0x38021d+0x1;_0x12f919=''+_0x12f919[_0x478afe(0x23b)](0x0,_0x59955d)+this[_0x478afe(0x236)](_0x3c994c,_0x34b022[_0x478afe(0x270)])+_0x12f919[_0x478afe(0x23b)](_0x5e9256);}return _0x12f919;}[_0x540782(0x30c)](_0x79188d){return Ie(_0x79188d);}['degradeBody'](_0x570da7,_0x5930db,_0x2623c8={}){const _0xe62e8b=_0x540782;var _0x2a2c0e;return re({'id':_0x570da7,'body':_0x5930db,'documentStyle':{}},(((_0x2a2c0e=_0x5930db[_0xe62e8b(0x21d)])==null?void 0x0:_0x2a2c0e[_0xe62e8b(0x2a9)](g))??[])['map'](_0x97cb08=>({'rangeId':_0x97cb08[_0xe62e8b(0x270)],'text':_0x2623c8[_0x97cb08['rangeId']]??this[_0xe62e8b(0x236)](_0x570da7,_0x97cb08['rangeId'])})))['body']??{'dataStream':''};}};Z=A([k(0x0,t[_0x540782(0x228)]),k(0x1,(0x0,t[_0x540782(0x218)])(j)),k(0x2,(0x0,t['Inject'])(n[_0x540782(0x2f9)]))],Z);function Ie(_0x3bebe0){const _0x334842=_0x540782;var _0x74a204,_0x51ca1b;let _0x4cac7e=Le(_0x3bebe0),_0x412321=re(_0x3bebe0,(((_0x74a204=_0x3bebe0[_0x334842(0x2b7)])==null||(_0x74a204=_0x74a204[_0x334842(0x21d)])==null?void 0x0:_0x74a204[_0x334842(0x2a9)](g))??[])[_0x334842(0x1f3)](_0x431dc0=>({'rangeId':_0x431dc0[_0x334842(0x270)],'text':Re(_0x4cac7e==null?void 0x0:_0x4cac7e[_0x334842(0x2c9)][_0x431dc0[_0x334842(0x270)]])})));return _0x412321[_0x334842(0x284)]=(_0x51ca1b=_0x412321['resources'])==null?void 0x0:_0x51ca1b[_0x334842(0x2a9)](_0x3970ec=>_0x3970ec[_0x334842(0x202)]!==o),_0x412321;}function _0x16e3(_0xad8e43,_0x398561){_0xad8e43=_0xad8e43-0x1ea;const _0x51278d=_0x5127();let _0x16e3da=_0x51278d[_0xad8e43];return _0x16e3da;}function Le(_0x3e3927){const _0x43c023=_0x540782;var _0x182f8f;let _0x7c935e=(_0x182f8f=_0x3e3927['resources'])==null||(_0x182f8f=_0x182f8f[_0x43c023(0x217)](_0x3af401=>_0x3af401['name']===_0x43c023(0x310)))==null?void 0x0:_0x182f8f[_0x43c023(0x2e7)];if(_0x7c935e)try{let _0x55ddee=JSON[_0x43c023(0x276)](_0x7c935e);return l(_0x55ddee)?_0x55ddee:void 0x0;}catch{return;}}function Re(_0x3bc2ab){const _0x32abc8=_0x540782;return _0x3bc2ab?(0x0,e['resolveFormulaResultPresentation'])({'lastValue':_0x3bc2ab[_0x32abc8(0x28e)],'numberFormat':_0x3bc2ab['numberFormat']})[_0x32abc8(0x24a)]:'';}let Q=class extends t['Disposable']{constructor(_0x18d423,_0x287226,_0x208c29){const _0x5d00db=_0x540782;super(),this[_0x5d00db(0x2b0)]=_0x18d423,this[_0x5d00db(0x230)]=_0x287226,this[_0x5d00db(0x2b2)](_0x208c29[_0x5d00db(0x2ed)](this));}[_0x540782(0x2b5)](_0x3fcc2c){const _0x67f18e=_0x540782;let _0x20c1bc=new Map();for(let _0x3d3666 of this[_0x67f18e(0x2b0)][_0x67f18e(0x2ec)]()){var _0xddf800;if(!this[_0x67f18e(0x230)][_0x67f18e(0x253)](_0x3d3666[_0x67f18e(0x273)][_0x67f18e(0x315)],_0x3d3666['liveResult'])[_0x67f18e(0x1fa)])continue;let _0x30abd0=(0x0,e[_0x67f18e(0x319)])(_0x3d3666[_0x67f18e(0x27b)]),_0x24c925=_0x30abd0?(0x0,e[_0x67f18e(0x2a7)])(_0x30abd0):null;if(!_0x24c925||ze(_0x3d3666[_0x67f18e(0x273)][_0x67f18e(0x28e)],_0x24c925))continue;let _0xcc532a=_0x20c1bc[_0x67f18e(0x291)](_0x3d3666['identity'][_0x67f18e(0x249)])??[];_0xcc532a[_0x67f18e(0x2d5)]({'rangeId':_0x3d3666['identity'][_0x67f18e(0x270)],'expectedFormula':_0x3d3666['config'][_0x67f18e(0x315)],'expectedNumberFormat':(_0xddf800=_0x3d3666[_0x67f18e(0x273)][_0x67f18e(0x281)])==null?void 0x0:_0xddf800[_0x67f18e(0x2a1)],'expectedReferenceRevision':_0x3d3666[_0x67f18e(0x1ef)],'lastValue':_0x24c925}),_0x20c1bc[_0x67f18e(0x2a4)](_0x3d3666[_0x67f18e(0x260)]['unitId'],_0xcc532a);}return Array[_0x67f18e(0x322)](_0x20c1bc,([_0x1a139c,_0x4c2a15])=>({'id':R['id'],'params':{'unitId':_0x1a139c,'updates':_0x4c2a15}}));}};Q=A([k(0x0,(0x0,t['Inject'])(j)),k(0x1,(0x0,t[_0x540782(0x218)])(e[_0x540782(0x293)])),k(0x2,(0x0,t[_0x540782(0x218)])(e[_0x540782(0x305)]))],Q);function ze(_0x129ff6,_0x1d5ca8){const _0x5eb414=_0x540782;return(_0x129ff6==null?void 0x0:_0x129ff6['v'])===_0x1d5ca8['v']&&(_0x129ff6==null?void 0x0:_0x129ff6['t'])===_0x1d5ca8['t']&&(_0x129ff6==null?void 0x0:_0x129ff6[_0x5eb414(0x2a1)])===_0x1d5ca8[_0x5eb414(0x2a1)];}let $=class extends t[_0x540782(0x267)]{constructor(_0x1b238b=Fe,_0x395709,_0x3ad13c,_0x3dba50){const _0x43470d=_0x540782;super(),this[_0x43470d(0x1f6)]=_0x1b238b,this[_0x43470d(0x2c8)]=_0x395709,this[_0x43470d(0x237)]=_0x3ad13c,this['_configService']=_0x3dba50;let {..._0x340070}=(0x0,t['merge'])({},Fe,this[_0x43470d(0x1f6)]);this[_0x43470d(0x279)][_0x43470d(0x23e)](_0x43470d(0x1f8),_0x340070);}[_0x540782(0x1fe)](){const _0x36a1da=_0x540782;this['_injector']['add']([O]),this[_0x36a1da(0x2c8)][_0x36a1da(0x24c)]([j]),this['_injector'][_0x36a1da(0x24c)]([X]),this['_injector']['add']([Y]),this['_injector']['add']([Q]),this[_0x36a1da(0x2c8)][_0x36a1da(0x24c)]([Z]),(0x0,t[_0x36a1da(0x2c0)])(this[_0x36a1da(0x2c8)],[[O],[X],[Y],[Q],[Z]]),[F,I,L,R,z,B,V,H,U,W][_0x36a1da(0x32f)](_0x36901b=>this['disposeWithMe'](this[_0x36a1da(0x237)][_0x36a1da(0x2e0)](_0x36901b)));}};D($,_0x540782(0x2d4),o),D($,_0x540782(0x2b9),Ne),D($,_0x540782(0x292),Pe),D($,_0x540782(0x32c),t[_0x540782(0x232)]['UNIVER_DOC']),$=A([(0x0,t[_0x540782(0x326)])(a[_0x540782(0x21b)],e['UniverProFormulaEnginePlugin'],n[_0x540782(0x242)]),k(0x1,(0x0,t[_0x540782(0x218)])(t[_0x540782(0x1ec)])),k(0x2,t[_0x540782(0x26e)]),k(0x3,t[_0x540782(0x1f9)])],$),exports[_0x540782(0x318)]=W,exports[_0x540782(0x203)]=s,exports[_0x540782(0x28b)]='',exports[_0x540782(0x310)]=o,exports[_0x540782(0x277)]=0x1,Object[_0x540782(0x2bc)](exports,_0x540782(0x31a),{'enumerable':!0x0,'get':function(){return Z;}}),Object['defineProperty'](exports,_0x540782(0x2be),{'enumerable':!0x0,'get':function(){return Y;}}),exports[_0x540782(0x20d)]=O,Object[_0x540782(0x2bc)](exports,_0x540782(0x211),{'enumerable':!0x0,'get':function(){return X;}}),exports[_0x540782(0x2b1)]=ve,Object[_0x540782(0x2bc)](exports,'DocFormulaService',{'enumerable':!0x0,'get':function(){return j;}}),exports[_0x540782(0x2ca)]=z,exports[_0x540782(0x225)]=m,exports[_0x540782(0x1f1)]=H,exports[_0x540782(0x287)]=I,exports[_0x540782(0x320)]=U,exports['SetDocFormulaLastValuesMutation']=R,exports[_0x540782(0x31b)]=F,exports[_0x540782(0x272)]=V,exports[_0x540782(0x321)]=L,Object[_0x540782(0x2bc)](exports,_0x540782(0x2fc),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x540782(0x269)]=B,exports['assertSafeDocFormulaInsertRange']=ie,exports[_0x540782(0x2e6)]=te,exports[_0x540782(0x2f7)]=h,exports['buildUpdateDocFormulaActions']=ne,exports[_0x540782(0x314)]=c,exports['degradeDocFormulaDocumentData']=Ie,exports[_0x540782(0x2d0)]=_,exports[_0x540782(0x2ee)]=u,exports[_0x540782(0x286)]=g,exports[_0x540782(0x32d)]=l,exports[_0x540782(0x221)]=d;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x5eab3b=_0x14c4;(function(_0x2344fa,_0x519f97){var _0x2cc35e=_0x14c4,_0x4eaffe=_0x2344fa();while(!![]){try{var _0x135cc6=parseInt(_0x2cc35e(0x12e))/0x1*(parseInt(_0x2cc35e(0x128))/0x2)+-parseInt(_0x2cc35e(0x14f))/0x3+parseInt(_0x2cc35e(0x13c))/0x4+-parseInt(_0x2cc35e(0x117))/0x5*(parseInt(_0x2cc35e(0x113))/0x6)+-parseInt(_0x2cc35e(0x155))/0x7*(parseInt(_0x2cc35e(0x134))/0x8)+-parseInt(_0x2cc35e(0x149))/0x9+parseInt(_0x2cc35e(0x12c))/0xa*(parseInt(_0x2cc35e(0x10e))/0xb);if(_0x135cc6===_0x519f97)break;else _0x4eaffe['push'](_0x4eaffe['shift']());}catch(_0x1ed5f7){_0x4eaffe['push'](_0x4eaffe['shift']());}}}(_0x4003,0xe5cea));import{ConvertDocFormulaToTextCommand as _0x3729b5,DocFormulaDisplayTextService as _0x5cb9d,DocFormulaModel as _0x50eb99,DocFormulaService as _0x4268ea,InsertDocFormulaCommand as _0xe5f011,RemoveDocFormulaCommand as _0x2db552,ReplaceDocFormulaWithTextCommand as _0x551dca,SetDocFormulaNumberFormatCommand as _0x4fb839,UpdateDocFormulaCommand as _0x1ca540,isDocFormulaRange as _0x3001cb}from'@univerjs-pro/docs-formula';import{ICommandService as _0x271a18,IResourceLoaderService as _0x33f5f6,IUniverInstanceService as _0x30e07a,Inject as _0x56df00,UniverInstanceType as _0x4f4b56}from'@univerjs/core';import{FDocument as _0x433c8c,FDocumentParagraph as _0x7791d5,FDocumentTextRange as _0x239d8a}from'@univerjs/docs/facade';function v(_0x29b9b2,_0x452a58){return function(_0xfaa003,_0xe2ab61){_0x452a58(_0xfaa003,_0xe2ab61,_0x29b9b2);};}function y(_0x44971a,_0x111c7e,_0x36ff77,_0x9b9dc0){var _0x5f1588=_0x14c4,_0x2c4c29=arguments['length'],_0x57fa97=_0x2c4c29<0x3?_0x111c7e:_0x9b9dc0===null?_0x9b9dc0=Object[_0x5f1588(0x147)](_0x111c7e,_0x36ff77):_0x9b9dc0,_0x211fb8;if(typeof Reflect==_0x5f1588(0x141)&&typeof Reflect[_0x5f1588(0x12b)]=='function')_0x57fa97=Reflect[_0x5f1588(0x12b)](_0x44971a,_0x111c7e,_0x36ff77,_0x9b9dc0);else{for(var _0x53ca9e=_0x44971a[_0x5f1588(0x10b)]-0x1;_0x53ca9e>=0x0;_0x53ca9e--)(_0x211fb8=_0x44971a[_0x53ca9e])&&(_0x57fa97=(_0x2c4c29<0x3?_0x211fb8(_0x57fa97):_0x2c4c29>0x3?_0x211fb8(_0x111c7e,_0x36ff77,_0x57fa97):_0x211fb8(_0x111c7e,_0x36ff77))||_0x57fa97);}return _0x2c4c29>0x3&&_0x57fa97&&Object[_0x5f1588(0x115)](_0x111c7e,_0x36ff77,_0x57fa97),_0x57fa97;}function _0x4003(){var _0x33e69b=['constructor','startOffset','length','map','_injector','1423774wCYvjs','startIndex','numberFormat','getResult','_model','12SWiAvI','_unitId','defineProperty','_insert','3664165MUUCWl','insertFormula','getFormula','body','_docsFormulaCommandService','filter','saveUnit','function','saveFormulaDisplayTextSnapshot','range','_docsFormulaModel','end','get','getSegmentId','update','_initialize','appendFormula','314qMuard','formula','default','decorate','330pVMxpT','_rangeId','2199RETkjD','_docsFormulaDisplayTextService','prototype','getFormulas','endOffset','getId','111256JCSaEI','_docsFormulaResourceLoaderService','externalReferences','customRanges','Document\x20','iterator','_getCompleteRanges','_document','3306488sVsCUZ','syncExecuteCommand','symbol','toPrimitive','extend','object','_service','_commandService','getConfig','replaceWithFormula','\x20could\x20not\x20be\x20serialized.','getOwnPropertyDescriptor','getBody','13322259RiwJpl','string','endIndex','convertToText','UNIVER_DOC','_createFormula','454119jBTFgJ','_univerInstanceService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','createInstance','describe','getSnapshot','707YAGDlF','_getCustomRange','rangeId','getRange','find','degradeDocumentData','remove'];_0x4003=function(){return _0x33e69b;};return _0x4003();}let b=class{constructor(_0x50536c,_0x59ee35,_0x6e16ee,_0x569703,_0x25d1c3,_0x524dc2){var _0x3699c3=_0x14c4;this['_unitId']=_0x50536c,this[_0x3699c3(0x12d)]=_0x59ee35,this[_0x3699c3(0x143)]=_0x6e16ee,this['_model']=_0x569703,this[_0x3699c3(0x142)]=_0x25d1c3,this[_0x3699c3(0x150)]=_0x524dc2;}['getId'](){var _0x25bc2d=_0x14c4;return this[_0x25bc2d(0x12d)];}[_0x5eab3b(0x105)](){var _0x16c618=_0x5eab3b;let _0x150ff6=this[_0x16c618(0x103)]();return _0x150ff6?{'endOffset':_0x150ff6[_0x16c618(0x14b)]+0x1,'rangeId':_0x150ff6['rangeId'],'startOffset':_0x150ff6[_0x16c618(0x10f)]}:null;}[_0x5eab3b(0x119)](){var _0x3f1d9c=_0x5eab3b,_0x10fd55;return((_0x10fd55=this[_0x3f1d9c(0x112)][_0x3f1d9c(0x119)](this[_0x3f1d9c(0x114)],this[_0x3f1d9c(0x12d)]))==null?void 0x0:_0x10fd55['formula'])??'';}['getConfig'](){var _0xb6b5fd=_0x5eab3b;return this['_model']['getFormula'](this[_0xb6b5fd(0x114)],this[_0xb6b5fd(0x12d)])??null;}[_0x5eab3b(0x111)](){var _0x3dc902=_0x5eab3b;return this[_0x3dc902(0x142)][_0x3dc902(0x111)]({'unitId':this['_unitId'],'rangeId':this[_0x3dc902(0x12d)]})??null;}[_0x5eab3b(0x153)](){var _0x1e4c8b=_0x5eab3b;let _0x18eaff=this[_0x1e4c8b(0x105)](),_0x25f61e=this[_0x1e4c8b(0x144)](),_0x230625=this[_0x1e4c8b(0x111)]();return!_0x18eaff||!_0x25f61e||!_0x230625?null:{..._0x18eaff,'config':_0x25f61e,'formula':_0x25f61e[_0x1e4c8b(0x129)],'result':_0x230625,'type':_0x1e4c8b(0x129)};}[_0x5eab3b(0x125)](_0x1480f4){var _0x25a761=_0x5eab3b;return this[_0x25a761(0x143)]['syncExecuteCommand'](_0x1ca540['id'],{'externalReferences':_0x1480f4[_0x25a761(0x136)],'formula':_0x1480f4[_0x25a761(0x129)],'numberFormat':_0x1480f4[_0x25a761(0x110)],'rangeId':this['_rangeId'],'unitId':this[_0x25a761(0x114)]});}['setNumberFormat'](_0x47134d){var _0x1583ad=_0x5eab3b;return this[_0x1583ad(0x143)]['syncExecuteCommand'](_0x4fb839['id'],{'numberFormat':_0x47134d,'rangeId':this[_0x1583ad(0x12d)],'unitId':this[_0x1583ad(0x114)]});}[_0x5eab3b(0x108)](){var _0x5446aa=_0x5eab3b;return this[_0x5446aa(0x143)][_0x5446aa(0x13d)](_0x2db552['id'],{'rangeId':this[_0x5446aa(0x12d)],'unitId':this[_0x5446aa(0x114)]});}['replaceWithText'](_0x365293){var _0x4ff429=_0x5eab3b;return this[_0x4ff429(0x143)][_0x4ff429(0x13d)](_0x551dca['id'],{'rangeId':this['_rangeId'],'text':_0x365293,'unitId':this[_0x4ff429(0x114)]});}[_0x5eab3b(0x14c)](){var _0x30611b=_0x5eab3b;return this[_0x30611b(0x143)][_0x30611b(0x13d)](_0x3729b5['id'],{'rangeId':this[_0x30611b(0x12d)],'unitId':this[_0x30611b(0x114)]});}[_0x5eab3b(0x103)](){var _0x449863=_0x5eab3b,_0x348329;let _0x4a0a26=this[_0x449863(0x150)]['getUnit'](this[_0x449863(0x114)],_0x4f4b56[_0x449863(0x14d)]);return _0x4a0a26==null||(_0x348329=_0x4a0a26[_0x449863(0x154)]()[_0x449863(0x11a)])==null||(_0x348329=_0x348329[_0x449863(0x137)])==null?void 0x0:_0x348329[_0x449863(0x106)](_0x2223b4=>_0x2223b4[_0x449863(0x104)]===this[_0x449863(0x12d)]&&_0x3001cb(_0x2223b4));}};b=y([v(0x2,_0x271a18),v(0x3,_0x56df00(_0x50eb99)),v(0x4,_0x56df00(_0x4268ea)),v(0x5,_0x30e07a)],b);function x(_0x5d5385){'@babel/helpers - typeof';var _0x1abaa9=_0x5eab3b;return x=typeof Symbol==_0x1abaa9(0x11e)&&typeof Symbol[_0x1abaa9(0x139)]==_0x1abaa9(0x13e)?function(_0x112426){return typeof _0x112426;}:function(_0x20804a){var _0x1a75ee=_0x1abaa9;return _0x20804a&&typeof Symbol==_0x1a75ee(0x11e)&&_0x20804a[_0x1a75ee(0x109)]===Symbol&&_0x20804a!==Symbol[_0x1a75ee(0x130)]?_0x1a75ee(0x13e):typeof _0x20804a;},x(_0x5d5385);}function S(_0x1cff83,_0x6db545){var _0x1a405a=_0x5eab3b;if(x(_0x1cff83)!=_0x1a405a(0x141)||!_0x1cff83)return _0x1cff83;var _0x51ef9c=_0x1cff83[Symbol[_0x1a405a(0x13f)]];if(_0x51ef9c!==void 0x0){var _0x5b95f1=_0x51ef9c['call'](_0x1cff83,_0x6db545||_0x1a405a(0x12a));if(x(_0x5b95f1)!=_0x1a405a(0x141))return _0x5b95f1;throw TypeError(_0x1a405a(0x151));}return(_0x6db545==='string'?String:Number)(_0x1cff83);}function C(_0x5bd62d){var _0xc564ee=_0x5eab3b,_0x2caec7=S(_0x5bd62d,_0xc564ee(0x14a));return x(_0x2caec7)==_0xc564ee(0x13e)?_0x2caec7:_0x2caec7+'';}function w(_0x32fb27,_0xec8368,_0x286dee){var _0x2145b8=_0x5eab3b;return(_0xec8368=C(_0xec8368))in _0x32fb27?Object[_0x2145b8(0x115)](_0x32fb27,_0xec8368,{'value':_0x286dee,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x32fb27[_0xec8368]=_0x286dee,_0x32fb27;}var T=class extends _0x433c8c{constructor(..._0x2f4ef7){var _0x326c88=_0x5eab3b;super(..._0x2f4ef7),w(this,_0x326c88(0x11b),void 0x0),w(this,_0x326c88(0x12f),void 0x0),w(this,_0x326c88(0x121),void 0x0),w(this,_0x326c88(0x135),void 0x0);}['_initialize'](_0x3d9784){var _0x5aa9b6=_0x5eab3b;this['_docsFormulaCommandService']=_0x3d9784[_0x5aa9b6(0x123)](_0x271a18),this[_0x5aa9b6(0x12f)]=_0x3d9784[_0x5aa9b6(0x123)](_0x5cb9d),this[_0x5aa9b6(0x121)]=_0x3d9784[_0x5aa9b6(0x123)](_0x50eb99),this['_docsFormulaResourceLoaderService']=_0x3d9784['get'](_0x33f5f6);}[_0x5eab3b(0x131)](){var _0xb4dd96=_0x5eab3b;return this['_getCompleteRanges']()[_0xb4dd96(0x10c)](_0x4ae9ef=>this[_0xb4dd96(0x14e)](_0x4ae9ef[_0xb4dd96(0x104)]));}[_0x5eab3b(0x119)](_0x23ed2c){var _0x46062a=_0x5eab3b;return this[_0x46062a(0x13a)]()['some'](_0x45a132=>_0x45a132[_0x46062a(0x104)]===_0x23ed2c)?this['_createFormula'](_0x23ed2c):null;}['getFormulaAt'](_0xc06cce){var _0x58e2e5=_0x5eab3b;let _0x6921df=this['_getCompleteRanges']()['find'](_0x1eb374=>_0x1eb374[_0x58e2e5(0x10f)]<=_0xc06cce&&_0xc06cce<=_0x1eb374[_0x58e2e5(0x14b)]);return _0x6921df?this[_0x58e2e5(0x14e)](_0x6921df[_0x58e2e5(0x104)]):null;}[_0x5eab3b(0x11f)](){var _0x2a0e20=_0x5eab3b;let _0x3b2837=this[_0x2a0e20(0x135)][_0x2a0e20(0x11d)](this['id']);if(!_0x3b2837)throw Error(_0x2a0e20(0x138)+this['id']+_0x2a0e20(0x146));return this['_docsFormulaDisplayTextService'][_0x2a0e20(0x107)](_0x3b2837);}[_0x5eab3b(0x118)](_0x28de0c){var _0x4c7425=_0x5eab3b;return this[_0x4c7425(0x116)]({'externalReferences':_0x28de0c['externalReferences'],'formula':_0x28de0c[_0x4c7425(0x129)],'numberFormat':_0x28de0c[_0x4c7425(0x110)],'target':{'type':_0x4c7425(0x120),'startOffset':_0x28de0c[_0x4c7425(0x10a)],'endOffset':_0x28de0c[_0x4c7425(0x132)]},'unitId':this[_0x4c7425(0x133)]()});}[_0x5eab3b(0x116)](_0x272008){var _0x47db9a=_0x5eab3b;let _0x46b158=this[_0x47db9a(0x11b)][_0x47db9a(0x13d)](_0xe5f011['id'],_0x272008);return _0x46b158?this[_0x47db9a(0x14e)](_0x46b158['rangeId']):null;}['_getCompleteRanges'](){var _0x59635c=_0x5eab3b,_0x1ec87f;let _0x10faef=this[_0x59635c(0x121)][_0x59635c(0x131)](this[_0x59635c(0x133)]());return((_0x1ec87f=this[_0x59635c(0x148)]('')[_0x59635c(0x137)])==null?void 0x0:_0x1ec87f[_0x59635c(0x11c)](_0x3ac858=>_0x3001cb(_0x3ac858)&&_0x10faef[_0x3ac858['rangeId']]!=null))??[];}[_0x5eab3b(0x14e)](_0x2bb0e7){var _0x4457d7=_0x5eab3b;return this[_0x4457d7(0x10d)][_0x4457d7(0x152)](b,this['getId'](),_0x2bb0e7);}};_0x433c8c[_0x5eab3b(0x140)](T);var E=class extends _0x7791d5{constructor(..._0x16eaae){var _0x247165=_0x5eab3b;super(..._0x16eaae),w(this,_0x247165(0x11b),void 0x0);}[_0x5eab3b(0x126)](_0x2a4c3d){var _0x1a6361=_0x5eab3b;this[_0x1a6361(0x11b)]=_0x2a4c3d[_0x1a6361(0x123)](_0x271a18);}['insertFormula'](_0x2e75ed,_0x57cb23,_0x566d8c={}){var _0x20e679=_0x5eab3b;return this[_0x20e679(0x116)](_0x2e75ed,_0x57cb23,_0x566d8c);}[_0x5eab3b(0x127)](_0x5373f9,_0x3b43d4={}){var _0x23d8d6=_0x5eab3b;return this[_0x23d8d6(0x116)](_0x23d8d6(0x122),_0x5373f9,_0x3b43d4);}['_insert'](_0x296283,_0x3bdf17,_0x5ae7ad){var _0x3bccc1=_0x5eab3b;if(this[_0x3bccc1(0x124)]())return null;let _0x3c8406={'externalReferences':_0x5ae7ad[_0x3bccc1(0x136)],'formula':_0x3bdf17,'numberFormat':_0x5ae7ad[_0x3bccc1(0x110)],'target':{'type':'paragraph','paragraphId':this['getId'](),'position':_0x296283},'unitId':this[_0x3bccc1(0x13b)][_0x3bccc1(0x133)]()},_0x5b3c1d=this[_0x3bccc1(0x11b)]['syncExecuteCommand'](_0xe5f011['id'],_0x3c8406);return _0x5b3c1d?this[_0x3bccc1(0x10d)][_0x3bccc1(0x152)](b,this['_document'][_0x3bccc1(0x133)](),_0x5b3c1d['rangeId']):null;}};function _0x14c4(_0x50e161,_0x114d83){_0x50e161=_0x50e161-0x103;var _0x40039a=_0x4003();var _0x14c446=_0x40039a[_0x50e161];return _0x14c446;}_0x7791d5[_0x5eab3b(0x140)](E);var D=class extends _0x239d8a{constructor(..._0x24fc59){var _0xc9bc5b=_0x5eab3b;super(..._0x24fc59),w(this,_0xc9bc5b(0x11b),void 0x0);}[_0x5eab3b(0x126)](_0x670c8a){var _0x2b9d32=_0x5eab3b;this[_0x2b9d32(0x11b)]=_0x670c8a[_0x2b9d32(0x123)](_0x271a18);}[_0x5eab3b(0x145)](_0x15a459,_0x29dcfd={}){var _0x25dab9=_0x5eab3b;let {endOffset:_0x5506cb,segmentId:_0x92d378,startOffset:_0x2c03c3}=this[_0x25dab9(0x105)]();return _0x92d378?null:this['_insert'](_0x2c03c3,_0x5506cb,_0x15a459,_0x29dcfd);}['_insert'](_0x2a2d58,_0x45d689,_0x1b36ec,_0x1a8975){var _0x42ea32=_0x5eab3b;let _0x2283d5={'externalReferences':_0x1a8975[_0x42ea32(0x136)],'formula':_0x1b36ec,'numberFormat':_0x1a8975[_0x42ea32(0x110)],'target':{'type':_0x42ea32(0x120),'startOffset':_0x2a2d58,'endOffset':_0x45d689},'unitId':this[_0x42ea32(0x13b)]['getId']()},_0x26d599=this[_0x42ea32(0x11b)][_0x42ea32(0x13d)](_0xe5f011['id'],_0x2283d5);return _0x26d599?this[_0x42ea32(0x10d)][_0x42ea32(0x152)](b,this['_document'][_0x42ea32(0x133)](),_0x26d599[_0x42ea32(0x104)]):null;}};_0x239d8a['extend'](D);export{b as FDocumentFormula};
|
|
1
|
+
var _0x3a3a0c=_0x5a9d;(function(_0x36e180,_0x4e5afb){var _0x2e221c=_0x5a9d,_0x406648=_0x36e180();while(!![]){try{var _0x56043d=parseInt(_0x2e221c(0xeb))/0x1+-parseInt(_0x2e221c(0xef))/0x2+parseInt(_0x2e221c(0x127))/0x3+-parseInt(_0x2e221c(0x130))/0x4+-parseInt(_0x2e221c(0x11b))/0x5*(-parseInt(_0x2e221c(0x101))/0x6)+parseInt(_0x2e221c(0xf1))/0x7*(parseInt(_0x2e221c(0x133))/0x8)+parseInt(_0x2e221c(0x10d))/0x9*(-parseInt(_0x2e221c(0x12d))/0xa);if(_0x56043d===_0x4e5afb)break;else _0x406648['push'](_0x406648['shift']());}catch(_0x1fef7f){_0x406648['push'](_0x406648['shift']());}}}(_0x5938,0xd995f));import{ConvertDocFormulaToTextCommand as _0x2322c8,DocFormulaDisplayTextService as _0x153131,DocFormulaModel as _0x3de5b9,DocFormulaService as _0x5853dc,InsertDocFormulaCommand as _0x1dca28,RemoveDocFormulaCommand as _0x218400,ReplaceDocFormulaWithTextCommand as _0x1ecc26,SetDocFormulaNumberFormatCommand as _0x5f0249,UpdateDocFormulaCommand as _0x449523,isDocFormulaRange as _0x386fc6}from'@univerjs-pro/docs-formula';import{ICommandService as _0x24b4b7,IResourceLoaderService as _0x35fc3b,IUniverInstanceService as _0x462ecd,Inject as _0x54ace0,UniverInstanceType as _0x4e1ebb}from'@univerjs/core';import{FDocument as _0x4e2d9c,FDocumentParagraph as _0x524dda,FDocumentTextRange as _0x5ab49e}from'@univerjs/docs/facade';function v(_0x30c4b5,_0x515b4f){return function(_0x3d7031,_0xd0de41){_0x515b4f(_0x3d7031,_0xd0de41,_0x30c4b5);};}function y(_0x200c5c,_0x3db804,_0x141a83,_0x2ea822){var _0x505e78=_0x5a9d,_0x1d383d=arguments[_0x505e78(0xfa)],_0x3c969f=_0x1d383d<0x3?_0x3db804:_0x2ea822===null?_0x2ea822=Object[_0x505e78(0x129)](_0x3db804,_0x141a83):_0x2ea822,_0x55c476;if(typeof Reflect==_0x505e78(0xf2)&&typeof Reflect[_0x505e78(0x107)]==_0x505e78(0xf4))_0x3c969f=Reflect['decorate'](_0x200c5c,_0x3db804,_0x141a83,_0x2ea822);else{for(var _0x1c27d6=_0x200c5c[_0x505e78(0xfa)]-0x1;_0x1c27d6>=0x0;_0x1c27d6--)(_0x55c476=_0x200c5c[_0x1c27d6])&&(_0x3c969f=(_0x1d383d<0x3?_0x55c476(_0x3c969f):_0x1d383d>0x3?_0x55c476(_0x3db804,_0x141a83,_0x3c969f):_0x55c476(_0x3db804,_0x141a83))||_0x3c969f);}return _0x1d383d>0x3&&_0x3c969f&&Object['defineProperty'](_0x3db804,_0x141a83,_0x3c969f),_0x3c969f;}let b=class{constructor(_0x5c2f94,_0xbd171,_0xa7dfef,_0x3bb6a8,_0x5e9939,_0x1f1dcd){var _0x9dd27d=_0x5a9d;this[_0x9dd27d(0x10f)]=_0x5c2f94,this['_rangeId']=_0xbd171,this[_0x9dd27d(0x110)]=_0xa7dfef,this[_0x9dd27d(0x132)]=_0x3bb6a8,this[_0x9dd27d(0x116)]=_0x5e9939,this[_0x9dd27d(0x123)]=_0x1f1dcd;}[_0x3a3a0c(0x12b)](){var _0x595cea=_0x3a3a0c;return this[_0x595cea(0x105)];}[_0x3a3a0c(0x134)](){var _0x35a2b6=_0x3a3a0c;let _0x4c41ab=this['_getCustomRange']();return _0x4c41ab?{'endOffset':_0x4c41ab[_0x35a2b6(0x119)]+0x1,'rangeId':_0x4c41ab[_0x35a2b6(0x135)],'startOffset':_0x4c41ab[_0x35a2b6(0xfe)]}:null;}[_0x3a3a0c(0xed)](){var _0x3a9f67=_0x3a3a0c,_0x12743e;return((_0x12743e=this[_0x3a9f67(0x132)][_0x3a9f67(0xed)](this['_unitId'],this[_0x3a9f67(0x105)]))==null?void 0x0:_0x12743e['formula'])??'';}[_0x3a3a0c(0x11f)](){var _0x35a435=_0x3a3a0c;return this[_0x35a435(0x132)][_0x35a435(0xed)](this[_0x35a435(0x10f)],this[_0x35a435(0x105)])??null;}['getResult'](){var _0xf5afc2=_0x3a3a0c;return this[_0xf5afc2(0x116)][_0xf5afc2(0x112)]({'unitId':this['_unitId'],'rangeId':this['_rangeId']})??null;}['describe'](){var _0x1708a8=_0x3a3a0c;let _0x25e384=this[_0x1708a8(0x134)](),_0x138f39=this[_0x1708a8(0x11f)](),_0x348359=this[_0x1708a8(0x112)]();return!_0x25e384||!_0x138f39||!_0x348359?null:{..._0x25e384,'config':_0x138f39,'formula':_0x138f39[_0x1708a8(0x118)],'result':_0x348359,'type':_0x1708a8(0x118)};}[_0x3a3a0c(0xf9)](_0x187582){var _0x580aaf=_0x3a3a0c;return this[_0x580aaf(0x110)][_0x580aaf(0xf6)](_0x449523['id'],{'externalReferences':_0x187582['externalReferences'],'formula':_0x187582['formula'],'numberFormat':_0x187582[_0x580aaf(0xfc)],'rangeId':this[_0x580aaf(0x105)],'unitId':this[_0x580aaf(0x10f)]});}[_0x3a3a0c(0x113)](_0x52457e){var _0x1da569=_0x3a3a0c;return this[_0x1da569(0x110)][_0x1da569(0xf6)](_0x5f0249['id'],{'numberFormat':_0x52457e,'rangeId':this[_0x1da569(0x105)],'unitId':this[_0x1da569(0x10f)]});}[_0x3a3a0c(0x128)](){var _0x476d4d=_0x3a3a0c;return this[_0x476d4d(0x110)][_0x476d4d(0xf6)](_0x218400['id'],{'rangeId':this[_0x476d4d(0x105)],'unitId':this[_0x476d4d(0x10f)]});}['replaceWithText'](_0x4b5eb1){var _0x3e03f3=_0x3a3a0c;return this[_0x3e03f3(0x110)][_0x3e03f3(0xf6)](_0x1ecc26['id'],{'rangeId':this[_0x3e03f3(0x105)],'text':_0x4b5eb1,'unitId':this[_0x3e03f3(0x10f)]});}[_0x3a3a0c(0x102)](){var _0xe685ff=_0x3a3a0c;return this['_commandService'][_0xe685ff(0xf6)](_0x2322c8['id'],{'rangeId':this[_0xe685ff(0x105)],'unitId':this[_0xe685ff(0x10f)]});}[_0x3a3a0c(0x136)](){var _0x1f6817=_0x3a3a0c,_0x4faa91;let _0x1c8157=this[_0x1f6817(0x123)]['getUnit'](this[_0x1f6817(0x10f)],_0x4e1ebb[_0x1f6817(0x12e)]);return _0x1c8157==null||(_0x4faa91=_0x1c8157[_0x1f6817(0x12c)]()[_0x1f6817(0xfd)])==null||(_0x4faa91=_0x4faa91[_0x1f6817(0x121)])==null?void 0x0:_0x4faa91[_0x1f6817(0x114)](_0xb1f0f7=>_0xb1f0f7[_0x1f6817(0x135)]===this[_0x1f6817(0x105)]&&_0x386fc6(_0xb1f0f7));}};b=y([v(0x2,_0x24b4b7),v(0x3,_0x54ace0(_0x3de5b9)),v(0x4,_0x54ace0(_0x5853dc)),v(0x5,_0x462ecd)],b);function x(_0x39507f){'@babel/helpers - typeof';var _0x59360d=_0x3a3a0c;return x=typeof Symbol==_0x59360d(0xf4)&&typeof Symbol['iterator']=='symbol'?function(_0x4bec02){return typeof _0x4bec02;}:function(_0x4a66dc){var _0xc0f842=_0x59360d;return _0x4a66dc&&typeof Symbol=='function'&&_0x4a66dc[_0xc0f842(0x11c)]===Symbol&&_0x4a66dc!==Symbol[_0xc0f842(0x10b)]?_0xc0f842(0x100):typeof _0x4a66dc;},x(_0x39507f);}function S(_0x42e7de,_0x498698){var _0x596524=_0x3a3a0c;if(x(_0x42e7de)!='object'||!_0x42e7de)return _0x42e7de;var _0x2bb725=_0x42e7de[Symbol[_0x596524(0x10a)]];if(_0x2bb725!==void 0x0){var _0x69ea43=_0x2bb725[_0x596524(0x138)](_0x42e7de,_0x498698||'default');if(x(_0x69ea43)!=_0x596524(0xf2))return _0x69ea43;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x498698===_0x596524(0x111)?String:Number)(_0x42e7de);}function C(_0x46b597){var _0x1339a9=_0x3a3a0c,_0x106307=S(_0x46b597,_0x1339a9(0x111));return x(_0x106307)==_0x1339a9(0x100)?_0x106307:_0x106307+'';}function w(_0x5351c6,_0x4ab59d,_0x58a9af){var _0x3750d5=_0x3a3a0c;return(_0x4ab59d=C(_0x4ab59d))in _0x5351c6?Object[_0x3750d5(0xff)](_0x5351c6,_0x4ab59d,{'value':_0x58a9af,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5351c6[_0x4ab59d]=_0x58a9af,_0x5351c6;}var T=class extends _0x4e2d9c{constructor(..._0x519d1d){var _0x381b60=_0x3a3a0c;super(..._0x519d1d),w(this,_0x381b60(0x10c),void 0x0),w(this,'_docsFormulaDisplayTextService',void 0x0),w(this,_0x381b60(0xea),void 0x0),w(this,_0x381b60(0x137),void 0x0);}[_0x3a3a0c(0xf3)](_0x14110c){var _0x161599=_0x3a3a0c;this[_0x161599(0x10c)]=_0x14110c[_0x161599(0x117)](_0x24b4b7),this[_0x161599(0x10e)]=_0x14110c[_0x161599(0x117)](_0x153131),this[_0x161599(0xea)]=_0x14110c['get'](_0x3de5b9),this['_docsFormulaResourceLoaderService']=_0x14110c[_0x161599(0x117)](_0x35fc3b);}[_0x3a3a0c(0x131)](){var _0x2de62f=_0x3a3a0c;return this['_getCompleteRanges']()[_0x2de62f(0x11e)](_0x2e09e4=>this[_0x2de62f(0x12f)](_0x2e09e4['rangeId']));}['getFormula'](_0x1e03e0){var _0x5b5fcc=_0x3a3a0c;return this[_0x5b5fcc(0x12a)]()[_0x5b5fcc(0xee)](_0x4fd12e=>_0x4fd12e[_0x5b5fcc(0x135)]===_0x1e03e0)?this[_0x5b5fcc(0x12f)](_0x1e03e0):null;}[_0x3a3a0c(0xf5)](_0x3efc31){var _0xed2d0a=_0x3a3a0c;let _0x3d58b0=this['_getCompleteRanges']()[_0xed2d0a(0x114)](_0x1dd3ca=>_0x1dd3ca[_0xed2d0a(0xfe)]<=_0x3efc31&&_0x3efc31<=_0x1dd3ca[_0xed2d0a(0x119)]);return _0x3d58b0?this[_0xed2d0a(0x12f)](_0x3d58b0[_0xed2d0a(0x135)]):null;}[_0x3a3a0c(0x122)](){var _0x598db9=_0x3a3a0c;let _0x3aac3f=this[_0x598db9(0x137)][_0x598db9(0x124)](this['id']);if(!_0x3aac3f)throw Error(_0x598db9(0xec)+this['id']+'\x20could\x20not\x20be\x20serialized.');return this[_0x598db9(0x10e)][_0x598db9(0x126)](_0x3aac3f);}['insertFormula'](_0xadf386){var _0x13cccc=_0x3a3a0c;return this[_0x13cccc(0x108)]({'externalReferences':_0xadf386[_0x13cccc(0xfb)],'formula':_0xadf386[_0x13cccc(0x118)],'numberFormat':_0xadf386[_0x13cccc(0xfc)],'target':{'type':_0x13cccc(0x109),'startOffset':_0xadf386[_0x13cccc(0xf8)],'endOffset':_0xadf386[_0x13cccc(0x125)]},'unitId':this['getId']()});}[_0x3a3a0c(0x108)](_0x2ada71){var _0x471c21=_0x3a3a0c;let _0x30a7bc=this[_0x471c21(0x10c)][_0x471c21(0xf6)](_0x1dca28['id'],_0x2ada71);return _0x30a7bc?this[_0x471c21(0x12f)](_0x30a7bc[_0x471c21(0x135)]):null;}[_0x3a3a0c(0x12a)](){var _0x12c68b=_0x3a3a0c,_0x2839cc;let _0x12db94=this[_0x12c68b(0xea)]['getFormulas'](this[_0x12c68b(0x12b)]());return((_0x2839cc=this['getBody']('')['customRanges'])==null?void 0x0:_0x2839cc['filter'](_0x5e4ed8=>_0x386fc6(_0x5e4ed8)&&_0x12db94[_0x5e4ed8[_0x12c68b(0x135)]]!=null))??[];}['_createFormula'](_0x55e4e7){var _0x4942b3=_0x3a3a0c;return this[_0x4942b3(0x106)][_0x4942b3(0x104)](b,this[_0x4942b3(0x12b)](),_0x55e4e7);}};_0x4e2d9c[_0x3a3a0c(0x11d)](T);var E=class extends _0x524dda{constructor(..._0x4da8dd){var _0x78e132=_0x3a3a0c;super(..._0x4da8dd),w(this,_0x78e132(0x10c),void 0x0);}[_0x3a3a0c(0xf3)](_0x1e136c){var _0x4a2492=_0x3a3a0c;this['_docsFormulaCommandService']=_0x1e136c[_0x4a2492(0x117)](_0x24b4b7);}['insertFormula'](_0x5d1465,_0xcee93e,_0x1ac3d2={}){var _0x4506d0=_0x3a3a0c;return this[_0x4506d0(0x108)](_0x5d1465,_0xcee93e,_0x1ac3d2);}[_0x3a3a0c(0x120)](_0x76880d,_0x3972d4={}){var _0x17b82f=_0x3a3a0c;return this['_insert'](_0x17b82f(0xf7),_0x76880d,_0x3972d4);}['_insert'](_0xa0174f,_0x2a0762,_0x4ac866){var _0x2425db=_0x3a3a0c;if(this[_0x2425db(0x103)]())return null;let _0xfaf39={'externalReferences':_0x4ac866[_0x2425db(0xfb)],'formula':_0x2a0762,'numberFormat':_0x4ac866[_0x2425db(0xfc)],'target':{'type':_0x2425db(0xf0),'paragraphId':this['getId'](),'position':_0xa0174f},'unitId':this['_document'][_0x2425db(0x12b)]()},_0x4dee5d=this[_0x2425db(0x10c)]['syncExecuteCommand'](_0x1dca28['id'],_0xfaf39);return _0x4dee5d?this[_0x2425db(0x106)][_0x2425db(0x104)](b,this[_0x2425db(0x115)]['getId'](),_0x4dee5d[_0x2425db(0x135)]):null;}};function _0x5a9d(_0x3d0754,_0xbcd0a1){_0x3d0754=_0x3d0754-0xea;var _0x59387b=_0x5938();var _0x5a9d30=_0x59387b[_0x3d0754];return _0x5a9d30;}_0x524dda['extend'](E);var D=class extends _0x5ab49e{constructor(..._0x509171){var _0x429823=_0x3a3a0c;super(..._0x509171),w(this,_0x429823(0x10c),void 0x0);}['_initialize'](_0x3b0f88){var _0x21cc68=_0x3a3a0c;this[_0x21cc68(0x10c)]=_0x3b0f88[_0x21cc68(0x117)](_0x24b4b7);}[_0x3a3a0c(0x11a)](_0x46f00f,_0x1c0f9d={}){var _0x2cde12=_0x3a3a0c;let {endOffset:_0x4114bc,segmentId:_0x24f099,startOffset:_0x18c376}=this[_0x2cde12(0x134)]();return _0x24f099?null:this[_0x2cde12(0x108)](_0x18c376,_0x4114bc,_0x46f00f,_0x1c0f9d);}['_insert'](_0x40ac33,_0x2e214a,_0x49c249,_0x48f604){var _0x28ee33=_0x3a3a0c;let _0x2b44c9={'externalReferences':_0x48f604['externalReferences'],'formula':_0x49c249,'numberFormat':_0x48f604['numberFormat'],'target':{'type':_0x28ee33(0x109),'startOffset':_0x40ac33,'endOffset':_0x2e214a},'unitId':this[_0x28ee33(0x115)][_0x28ee33(0x12b)]()},_0x2ac913=this[_0x28ee33(0x10c)][_0x28ee33(0xf6)](_0x1dca28['id'],_0x2b44c9);return _0x2ac913?this[_0x28ee33(0x106)]['createInstance'](b,this[_0x28ee33(0x115)][_0x28ee33(0x12b)](),_0x2ac913[_0x28ee33(0x135)]):null;}};_0x5ab49e[_0x3a3a0c(0x11d)](D);function _0x5938(){var _0x2b9a87=['appendFormula','customRanges','saveFormulaDisplayTextSnapshot','_univerInstanceService','saveUnit','endOffset','degradeDocumentData','2837700ssPvpG','remove','getOwnPropertyDescriptor','_getCompleteRanges','getId','getSnapshot','100QMwxIK','UNIVER_DOC','_createFormula','2074308ZmAWtD','getFormulas','_model','8mBaJdj','getRange','rangeId','_getCustomRange','_docsFormulaResourceLoaderService','call','_docsFormulaModel','956527KKRstw','Document\x20','getFormula','some','3115372zQRPhj','paragraph','4236372RLCIDe','object','_initialize','function','getFormulaAt','syncExecuteCommand','end','startOffset','update','length','externalReferences','numberFormat','body','startIndex','defineProperty','symbol','54942UOneVJ','convertToText','getSegmentId','createInstance','_rangeId','_injector','decorate','_insert','range','toPrimitive','prototype','_docsFormulaCommandService','1094274AgEvBx','_docsFormulaDisplayTextService','_unitId','_commandService','string','getResult','setNumberFormat','find','_document','_service','get','formula','endIndex','replaceWithFormula','915JlzEyY','constructor','extend','map','getConfig'];_0x5938=function(){return _0x2b9a87;};return _0x5938();}export{b as FDocumentFormula};
|