@univerjs-pro/docs-formula 1.0.2 → 1.0.4
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 +8 -8
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x241cd9=_0x321c;(function(_0xc42f50,_0x21ee3d){const _0xdc73ed=_0x321c,_0xf9eed9=_0xc42f50();while(!![]){try{const _0x5e627e=-parseInt(_0xdc73ed(0x22f))/0x1+-parseInt(_0xdc73ed(0x1eb))/0x2+parseInt(_0xdc73ed(0x2ce))/0x3*(parseInt(_0xdc73ed(0x23a))/0x4)+-parseInt(_0xdc73ed(0x227))/0x5+parseInt(_0xdc73ed(0x234))/0x6+parseInt(_0xdc73ed(0x2af))/0x7*(parseInt(_0xdc73ed(0x2d5))/0x8)+-parseInt(_0xdc73ed(0x2b6))/0x9*(-parseInt(_0xdc73ed(0x222))/0xa);if(_0x5e627e===_0x21ee3d)break;else _0xf9eed9['push'](_0xf9eed9['shift']());}catch(_0x591fd3){_0xf9eed9['push'](_0xf9eed9['shift']());}}}(_0xe02e,0xdfabd));import{FormulaCacheEligibilityService as _0x144415,FormulaLastValuePersistenceService as _0xa4a93b,HostExternalReferenceModel as _0x2a643f,UniverProFormulaEnginePlugin as _0x48082c,buildUpsertHostExternalReferenceMutations as _0x3c6f60,collectFormulaExternalReferenceQualifiers as _0x2fe8c6,getScalarFormulaResultCell as _0x7be344,resolveFormulaResultPresentation as _0x3cb7d0,resolveHostFormulaExternalReferences as _0x1eb386,toFormulaLastValue as _0x241cf2}from'@univerjs-pro/engine-formula';import{CellValueType as _0x2a3989,CommandType as _0x503dba,CustomRangeType as _0x562d5a,DataStreamTreeTokenType as _0x308616,DependentOn as _0x3a925b,Disposable as _0x2c5b49,ICommandService as _0x583930,IConfigService as _0x4d1d27,IResourceManagerService as _0x1802be,IUndoRedoService as _0x196b7c,IUniverInstanceService as _0x6870f1,Inject as _0x199f03,Injector as _0x9a266a,JSONX as _0x59e127,Plugin as _0x2b54c9,TextX as _0x32b2df,Tools as _0x264f7b,UniverInstanceType as _0x46296f,generateRandomId as _0xd42773,getBodySliceForTextXAction as _0x2e6873,getCustomRangeInterval as _0xf4a334,getParagraphContentStartOffset as _0x2b5919,getRichTextEditPath as _0x5f4bdc,merge as _0x312ea2,shiftExclusiveRangeOnDelete as _0x2b93f6,shiftExclusiveRangeOnInsert as _0x4d5964,shiftInclusiveRangeOnDelete as _0x7460cf,shiftInclusiveRangeOnInsert as _0x3c2670,touchDependencies as _0x14182c}from'@univerjs/core';import{DOC_SELECTION_OPTION_PRESERVE_CARET as _0x39973e,DocSelectionManagerService as _0x4acac4,DocTextResolverService as _0x4f4dae,RichTextEditingMutation as _0x2acc6a,UniverDocsPlugin as _0xdd033b}from'@univerjs/docs';import{FormulaResultStatus as _0x41ab96,LexerTreeBuilder as _0x322ca6,OtherFormulaBizType as _0x342fcf,RegisterOtherFormulaService as _0x2ae365}from'@univerjs/engine-formula';import{Subject as _0x7c5dac}from'rxjs';import{UniverLicensePlugin as _0x14e208}from'@univerjs-pro/license';const y=_0x241cd9(0x24a),je=0x1,Me='univer-docs-formula',Ne='';function b(){return{'schemaVersion':0x1,'formulas':{}};}function x(_0x13af5b){const _0x1b07be=_0x241cd9;return!_0x13af5b||typeof _0x13af5b!='object'||!S(_0x13af5b,[_0x1b07be(0x244),_0x1b07be(0x290)])||!(_0x1b07be(0x244)in _0x13af5b)||_0x13af5b[_0x1b07be(0x244)]!==0x1||!('formulas'in _0x13af5b)||!_0x13af5b[_0x1b07be(0x290)]||typeof _0x13af5b['formulas']!=_0x1b07be(0x258)||Array[_0x1b07be(0x225)](_0x13af5b['formulas'])?!0x1:Object['entries'](_0x13af5b['formulas'])[_0x1b07be(0x24c)](([_0x17e7f2,_0x2cc592])=>_0x17e7f2[_0x1b07be(0x24b)]>0x0&&Pe(_0x2cc592));}function Pe(_0x24b159){const _0x280083=_0x241cd9;return!_0x24b159||typeof _0x24b159!=_0x280083(0x258)||!S(_0x24b159,[_0x280083(0x2d8),_0x280083(0x226),'lastValue'])||!(_0x280083(0x2d8)in _0x24b159)||typeof _0x24b159[_0x280083(0x2d8)]!=_0x280083(0x203)||!_0x24b159[_0x280083(0x2d8)][_0x280083(0x1e6)]()||_0x280083(0x226)in _0x24b159&&_0x24b159[_0x280083(0x226)]!=null&&(typeof _0x24b159[_0x280083(0x226)]!=_0x280083(0x258)||!S(_0x24b159[_0x280083(0x226)],[_0x280083(0x2d6)])||!(_0x280083(0x2d6)in _0x24b159[_0x280083(0x226)])||typeof _0x24b159['numberFormat']['pattern']!=_0x280083(0x203))?!0x1:!(_0x280083(0x266)in _0x24b159)||_0x24b159[_0x280083(0x266)]==null||Fe(_0x24b159[_0x280083(0x266)]);}function Fe(_0x52e060){const _0x5efde3=_0x241cd9;return!_0x52e060||typeof _0x52e060!=_0x5efde3(0x258)||!S(_0x52e060,['v','t',_0x5efde3(0x2d6)])||!('v'in _0x52e060)||_0x52e060['v']!==null&&typeof _0x52e060['v']!=_0x5efde3(0x203)&&typeof _0x52e060['v']!=_0x5efde3(0x27e)&&typeof _0x52e060['v']!=_0x5efde3(0x25c)||'t'in _0x52e060&&_0x52e060['t']!=null&&!Ie(_0x52e060['t'])?!0x1:!(_0x5efde3(0x2d6)in _0x52e060)||_0x52e060[_0x5efde3(0x2d6)]==null||typeof _0x52e060[_0x5efde3(0x2d6)]==_0x5efde3(0x203);}function S(_0x3da30d,_0x5e8295){const _0x56cd6d=_0x241cd9;let _0xac594a=new Set(_0x5e8295);return Object[_0x56cd6d(0x25a)](_0x3da30d)[_0x56cd6d(0x24c)](_0x505be8=>_0xac594a[_0x56cd6d(0x2cf)](_0x505be8));}function Ie(_0xaff01e){const _0x53fd8c=_0x241cd9;return typeof _0xaff01e==_0x53fd8c(0x27e)&&Object[_0x53fd8c(0x296)](_0x2a3989)[_0x53fd8c(0x298)](_0xaff01e);}const Le=new Set([_0x308616[_0x241cd9(0x2cb)],_0x308616[_0x241cd9(0x249)],_0x308616[_0x241cd9(0x1e1)],_0x308616[_0x241cd9(0x241)],_0x308616[_0x241cd9(0x268)],_0x308616[_0x241cd9(0x200)],_0x308616['TABLE_END'],_0x308616[_0x241cd9(0x237)],_0x308616[_0x241cd9(0x261)],_0x308616[_0x241cd9(0x23d)],_0x308616[_0x241cd9(0x2d9)],_0x308616[_0x241cd9(0x218)],_0x308616['BLOCK_END'],_0x308616[_0x241cd9(0x2c8)]]);var C=class extends Error{constructor(){super('Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries');}};function Re(_0x3530ab){const _0xf7e740=_0x241cd9;var _0x1eb3f3,_0x2fdbe6;let _0x35e4b6=_0x264f7b[_0xf7e740(0x269)](_0x3530ab[_0xf7e740(0x1e0)]),_0x3fcf86=j(_0x35e4b6),{startOffset:_0x23ebc6,endOffset:_0x147e62}=We(_0x3fcf86,_0x3530ab[_0xf7e740(0x2b4)],_0x3530ab['endOffset']);He(_0x3fcf86,_0x23ebc6,_0x147e62);let _0x574204=((_0x1eb3f3=_0x3fcf86['customRanges'])==null?void 0x0:_0x1eb3f3['filter'](_0x301ba4=>{const _0x20bcb1=_0xf7e740;if(!w(_0x301ba4))return!0x1;let _0x524db7=_0xf4a334(_0x301ba4);return _0x524db7[_0x20bcb1(0x2c1)]>_0x23ebc6&&_0x524db7[_0x20bcb1(0x2b4)]<_0x147e62;})[_0xf7e740(0x289)](_0x5cbc32=>_0x5cbc32[_0xf7e740(0x2ba)]))??[];qe(_0x3fcf86,_0x23ebc6,_0x147e62,''),_0x3fcf86[_0xf7e740(0x2a3)]=[...((_0x2fdbe6=_0x3fcf86['customRanges'])==null?void 0x0:_0x2fdbe6[_0xf7e740(0x1fd)](_0x595a34=>!_0x574204['includes'](_0x595a34[_0xf7e740(0x2ba)])&&_0x595a34[_0xf7e740(0x2ba)]!==_0x3530ab[_0xf7e740(0x2ba)]))??[],Ue(_0x3530ab[_0xf7e740(0x2ba)],_0x23ebc6)][_0xf7e740(0x1e3)]((_0x19214b,_0x18d410)=>_0x19214b['startIndex']-_0x18d410[_0xf7e740(0x27a)]);let _0x39806b=E(_0x3530ab[_0xf7e740(0x2de)]);return _0x574204['forEach'](_0x406f48=>{const _0x10a72c=_0xf7e740;delete _0x39806b[_0x10a72c(0x290)][_0x406f48];}),_0x39806b[_0xf7e740(0x290)][_0x3530ab['rangeId']]=_0x264f7b[_0xf7e740(0x269)](_0x3530ab[_0xf7e740(0x24d)]),{'nextDocumentData':_0x35e4b6,'nextResource':_0x39806b,'cursorOffset':_0x23ebc6+0x1};}function ze(_0x53ffa6){const _0x5544f6=_0x241cd9;var _0x3dc1cb,_0x43b4d5;let _0x2db390=_0x264f7b[_0x5544f6(0x269)](_0x53ffa6[_0x5544f6(0x1e0)]),_0x3dc277=(_0x3dc1cb=j(_0x2db390)[_0x5544f6(0x2a3)])==null?void 0x0:_0x3dc1cb[_0x5544f6(0x2b5)](_0x4c07ac=>_0x4c07ac[_0x5544f6(0x2ba)]===_0x53ffa6[_0x5544f6(0x2ba)]&&w(_0x4c07ac));if(!_0x3dc277||!((_0x43b4d5=_0x53ffa6['resource'])!=null&&_0x43b4d5[_0x5544f6(0x290)][_0x53ffa6['rangeId']]))return null;let _0x575ebe=E(_0x53ffa6[_0x5544f6(0x2de)]);return _0x575ebe[_0x5544f6(0x290)][_0x53ffa6['rangeId']]=_0x264f7b[_0x5544f6(0x269)](_0x53ffa6[_0x5544f6(0x24d)]),{'nextDocumentData':_0x2db390,'nextResource':_0x575ebe,'cursorOffset':_0x3dc277[_0x5544f6(0x21a)]+0x1};}function Be(_0x39ed92){const _0x3abb55=_0x241cd9;let _0x1955af=_0x264f7b[_0x3abb55(0x269)](_0x39ed92['documentData']),_0x14c74b=Je(_0x1955af,_0x39ed92[_0x3abb55(0x2ba)],_0x39ed92[_0x3abb55(0x2a0)]??'');if(_0x14c74b==null)return null;let _0x39ef06=E(_0x39ed92[_0x3abb55(0x2de)]);return delete _0x39ef06['formulas'][_0x39ed92['rangeId']],{'nextDocumentData':_0x1955af,'nextResource':_0x39ef06,'cursorOffset':_0x14c74b};}function Ve(_0x30ce73,_0xae1a0a){const _0x3e1d6d=_0x241cd9;var _0x2aef18;let _0x2eaefd=_0x264f7b['deepClone'](_0x30ce73),_0x238236=_0x2eaefd[_0x3e1d6d(0x27f)];if(!_0x238236)return _0x2eaefd;let _0x442ea9=new Map(_0xae1a0a['map'](_0x1e1acf=>[_0x1e1acf['rangeId'],_0x1e1acf[_0x3e1d6d(0x2a0)]])),_0x21c5a0=((_0x2aef18=_0x238236[_0x3e1d6d(0x2a3)])==null?void 0x0:_0x2aef18[_0x3e1d6d(0x1fd)](_0x1d4864=>w(_0x1d4864)&&_0x442ea9[_0x3e1d6d(0x2cf)](_0x1d4864[_0x3e1d6d(0x2ba)]))[_0x3e1d6d(0x1e3)]((_0x440807,_0x4716de)=>_0x4716de['startIndex']-_0x440807[_0x3e1d6d(0x27a)]))??[];for(let _0x50d8e0 of _0x21c5a0)Je(_0x2eaefd,_0x50d8e0[_0x3e1d6d(0x2ba)],_0x442ea9['get'](_0x50d8e0[_0x3e1d6d(0x2ba)])??'');return _0x2eaefd;}function w(_0x7b965c){const _0x353555=_0x241cd9;var _0x3bffe2;return(_0x7b965c==null?void 0x0:_0x7b965c[_0x353555(0x25b)])===_0x562d5a[_0x353555(0x255)]&&_0x7b965c['wholeEntity']===!0x0&&((_0x3bffe2=_0x7b965c[_0x353555(0x1ef)])==null?void 0x0:_0x3bffe2[_0x353555(0x21f)])===_0x353555(0x28a);}function T(_0x287c98,_0x40fd8d){const _0x17721e=_0x241cd9;var _0x30833b;return _0x287c98==null||(_0x30833b=_0x287c98[_0x17721e(0x2a3)])==null?void 0x0:_0x30833b[_0x17721e(0x2b5)](_0x282180=>_0x282180[_0x17721e(0x2ba)]===_0x40fd8d&&w(_0x282180));}function He(_0x5792f4,_0x295295,_0x53fdd6){const _0x279793=_0x241cd9;if(_0x295295===_0x53fdd6){if(Le[_0x279793(0x2cf)](_0x5792f4[_0x279793(0x236)][_0x295295]))throw new C();return;}for(let _0x4899c4=_0x295295;_0x4899c4<_0x53fdd6;_0x4899c4++)if(_0x5792f4[_0x279793(0x236)][_0x4899c4]===_0x308616['PARAGRAPH']||Le[_0x279793(0x2cf)](_0x5792f4[_0x279793(0x236)][_0x4899c4]))throw new C();}function Ue(_0x52a1ec,_0xaf84a7){return{'startIndex':_0xaf84a7,'endIndex':_0xaf84a7,'rangeId':_0x52a1ec,'rangeType':_0x562d5a['CUSTOM'],'wholeEntity':!0x0,'properties':{'kind':Me}};}function E(_0x17c4e9){const _0x265848=_0x241cd9;return _0x17c4e9?_0x264f7b[_0x265848(0x269)](_0x17c4e9):b();}function We(_0x42ae55,_0x44e07a,_0x3b0077){const _0x302f3e=_0x241cd9;let _0x5c6bdf=Ke(_0x42ae55),_0x43dea8=_0x44e07a??_0x5c6bdf,_0x31edfe=_0x3b0077??_0x43dea8;return{'startOffset':Ge(Math[_0x302f3e(0x271)](_0x43dea8,_0x31edfe),_0x5c6bdf),'endOffset':Ge(Math[_0x302f3e(0x26a)](_0x43dea8,_0x31edfe),_0x5c6bdf)};}function Ge(_0x19afb9,_0x1e0118){const _0x4d42a8=_0x241cd9;return Math[_0x4d42a8(0x26a)](0x0,Math['min'](_0x19afb9,_0x1e0118));}function Ke(_0x3307f6){const _0xc7fe6e=_0x241cd9;return _0x3307f6[_0xc7fe6e(0x236)][_0xc7fe6e(0x2c0)](''+_0x308616[_0xc7fe6e(0x2ac)]+_0x308616['SECTION_BREAK'])?Math[_0xc7fe6e(0x26a)](0x0,_0x3307f6[_0xc7fe6e(0x236)]['length']-0x2):_0x3307f6[_0xc7fe6e(0x236)][_0xc7fe6e(0x2c0)](_0x308616[_0xc7fe6e(0x2cb)])?Math[_0xc7fe6e(0x26a)](0x0,_0x3307f6[_0xc7fe6e(0x236)][_0xc7fe6e(0x24b)]-0x1):_0x3307f6[_0xc7fe6e(0x236)]['length'];}function qe(_0x206f65,_0x33109c,_0x4bf276,_0x52cf55){_0x4bf276>_0x33109c&&Xe(_0x206f65,_0x33109c,_0x4bf276),Ye(_0x206f65,_0x33109c,_0x52cf55);}function Je(_0x11a254,_0x236f57,_0x325ac7){const _0x144819=_0x241cd9;var _0xff64c2,_0x184e0a;let _0x125f3f=j(_0x11a254),_0x5bfe97=(_0xff64c2=_0x125f3f[_0x144819(0x2a3)])==null?void 0x0:_0xff64c2[_0x144819(0x2b5)](_0x251939=>_0x251939[_0x144819(0x2ba)]===_0x236f57&&w(_0x251939));if(!_0x5bfe97)return null;let _0x28d678=_0xf4a334(_0x5bfe97);return qe(_0x125f3f,_0x28d678[_0x144819(0x2b4)],_0x28d678[_0x144819(0x2c1)],_0x325ac7),_0x125f3f[_0x144819(0x2a3)]=(_0x184e0a=_0x125f3f[_0x144819(0x2a3)])==null?void 0x0:_0x184e0a[_0x144819(0x1fd)](_0x3a5c70=>_0x3a5c70[_0x144819(0x2ba)]!==_0x236f57),_0x28d678[_0x144819(0x2b4)]+_0x325ac7[_0x144819(0x24b)];}function Ye(_0x410df2,_0x18fd0d,_0x1a1566){const _0x3c5ae6=_0x241cd9;_0x1a1566&&(_0x410df2[_0x3c5ae6(0x236)]=''+_0x410df2[_0x3c5ae6(0x236)][_0x3c5ae6(0x294)](0x0,_0x18fd0d)+_0x1a1566+_0x410df2[_0x3c5ae6(0x236)][_0x3c5ae6(0x294)](_0x18fd0d),Ze(_0x410df2,_0x18fd0d,_0x1a1566[_0x3c5ae6(0x24b)]));}function Xe(_0x1b19dc,_0x1a3ff3,_0x8d5556){const _0x53ac2d=_0x241cd9;let _0x401c8d=_0x8d5556-_0x1a3ff3;_0x1b19dc[_0x53ac2d(0x236)]=''+_0x1b19dc[_0x53ac2d(0x236)][_0x53ac2d(0x294)](0x0,_0x1a3ff3)+_0x1b19dc[_0x53ac2d(0x236)][_0x53ac2d(0x294)](_0x8d5556),Qe(_0x1b19dc,_0x1a3ff3,_0x401c8d);}function Ze(_0x7fa63b,_0x48da56,_0x4c1404){const _0x162bc0=_0x241cd9;_0x7fa63b['paragraphs']=D(_0x7fa63b['paragraphs'],_0x48da56,_0x4c1404),_0x7fa63b[_0x162bc0(0x1ec)]=D(_0x7fa63b[_0x162bc0(0x1ec)],_0x48da56,_0x4c1404),_0x7fa63b['customBlocks']=D(_0x7fa63b[_0x162bc0(0x2b9)],_0x48da56,_0x4c1404),_0x7fa63b['textRuns']=$e(_0x7fa63b[_0x162bc0(0x28c)],_0x48da56,_0x4c1404),_0x7fa63b[_0x162bc0(0x2c5)]=et(_0x7fa63b[_0x162bc0(0x2c5)],_0x48da56,_0x4c1404),_0x7fa63b['columnGroups']=k(_0x7fa63b[_0x162bc0(0x1f5)],_0x48da56,_0x4c1404),_0x7fa63b['customRanges']=k(_0x7fa63b[_0x162bc0(0x2a3)],_0x48da56,_0x4c1404),_0x7fa63b[_0x162bc0(0x25e)]=k(_0x7fa63b[_0x162bc0(0x25e)],_0x48da56,_0x4c1404),_0x7fa63b[_0x162bc0(0x1f7)]=k(_0x7fa63b[_0x162bc0(0x1f7)],_0x48da56,_0x4c1404);}function Qe(_0x582fd9,_0x2b366e,_0xa86abd){const _0xd5a6b3=_0x241cd9;var _0x44187e,_0x3354de;_0x582fd9[_0xd5a6b3(0x208)]=O(_0x582fd9['paragraphs'],_0x2b366e,_0xa86abd),_0x582fd9[_0xd5a6b3(0x1ec)]=O(_0x582fd9[_0xd5a6b3(0x1ec)],_0x2b366e,_0xa86abd),_0x582fd9['customBlocks']=O(_0x582fd9[_0xd5a6b3(0x2b9)],_0x2b366e,_0xa86abd),_0x582fd9['textRuns']=(_0x44187e=tt((_0x3354de=_0x582fd9[_0xd5a6b3(0x28c)])==null?void 0x0:_0x3354de[_0xd5a6b3(0x289)](_0x24a92a=>({..._0x24a92a,'startIndex':_0x24a92a['st'],'endIndex':_0x24a92a['ed']})),_0x2b366e,_0xa86abd))==null?void 0x0:_0x44187e[_0xd5a6b3(0x289)](_0x4cd86a=>{let {startIndex:_0x36bed2,endIndex:_0x394e88,..._0x22ae45}=_0x4cd86a;return{..._0x22ae45,'st':_0x36bed2,'ed':_0x394e88};}),_0x582fd9['tables']=tt(_0x582fd9[_0xd5a6b3(0x2c5)],_0x2b366e,_0xa86abd),_0x582fd9[_0xd5a6b3(0x1f5)]=A(_0x582fd9[_0xd5a6b3(0x1f5)],_0x2b366e,_0xa86abd),_0x582fd9[_0xd5a6b3(0x2a3)]=A(_0x582fd9['customRanges'],_0x2b366e,_0xa86abd),_0x582fd9['customDecorations']=A(_0x582fd9[_0xd5a6b3(0x25e)],_0x2b366e,_0xa86abd),_0x582fd9[_0xd5a6b3(0x1f7)]=A(_0x582fd9['blockRanges'],_0x2b366e,_0xa86abd);}function D(_0x162b96,_0x22d293,_0x11cfc2){const _0x2b6715=_0x241cd9;return _0x162b96==null?void 0x0:_0x162b96['map'](_0x3ebf27=>_0x3ebf27[_0x2b6715(0x27a)]>=_0x22d293?{..._0x3ebf27,'startIndex':_0x3ebf27[_0x2b6715(0x27a)]+_0x11cfc2}:_0x3ebf27);}function O(_0x315014,_0x52ed1f,_0x1c4ab2){const _0x3eb5b8=_0x241cd9;let _0x579056=_0x52ed1f+_0x1c4ab2;return _0x315014==null?void 0x0:_0x315014[_0x3eb5b8(0x289)](_0x138433=>_0x138433[_0x3eb5b8(0x27a)]>=_0x52ed1f&&_0x138433[_0x3eb5b8(0x27a)]<_0x579056?null:_0x138433[_0x3eb5b8(0x27a)]>=_0x579056?{..._0x138433,'startIndex':_0x138433[_0x3eb5b8(0x27a)]-_0x1c4ab2}:_0x138433)[_0x3eb5b8(0x1fd)](_0x5291e0=>_0x5291e0!=null);}function $e(_0x2ef4dd,_0x347e4d,_0x27927b){const _0x19610d=_0x241cd9;return _0x2ef4dd==null?void 0x0:_0x2ef4dd[_0x19610d(0x289)](_0x37cc18=>_0x37cc18['st']>=_0x347e4d?{..._0x37cc18,'st':_0x37cc18['st']+_0x27927b,'ed':_0x37cc18['ed']+_0x27927b}:_0x37cc18['ed']>_0x347e4d?{..._0x37cc18,'ed':_0x37cc18['ed']+_0x27927b}:_0x37cc18);}function k(_0x15eae7,_0x28dd81,_0x569524){const _0x4c521f=_0x241cd9;return _0x15eae7==null?void 0x0:_0x15eae7[_0x4c521f(0x289)](_0xdfd738=>_0x3c2670(_0xdfd738,_0x28dd81,_0x569524));}function et(_0x2d2da2,_0x4be51b,_0x2326fa){return _0x2d2da2==null?void 0x0:_0x2d2da2['map'](_0x5523f8=>_0x4d5964(_0x5523f8,_0x4be51b,_0x2326fa));}function A(_0x22fe80,_0x5a18c3,_0x4a112f){const _0x171c21=_0x241cd9;return _0x22fe80==null?void 0x0:_0x22fe80[_0x171c21(0x289)](_0x78ec4b=>_0x7460cf(_0x78ec4b,_0x5a18c3,_0x4a112f))[_0x171c21(0x1fd)](_0x4870a0=>_0x4870a0!=null);}function tt(_0xf50b37,_0x20d1cb,_0x3e82fc){const _0x3e4705=_0x241cd9;return _0xf50b37==null?void 0x0:_0xf50b37[_0x3e4705(0x289)](_0x3381af=>_0x2b93f6(_0x3381af,_0x20d1cb,_0x3e82fc))['filter'](_0x25dcc9=>_0x25dcc9!=null);}function j(_0x453d7f){const _0x4368a0=_0x241cd9;if(!_0x453d7f['body'])throw Error(_0x4368a0(0x29e));return _0x453d7f[_0x4368a0(0x27f)];}function M(_0x4ca6e0){'@babel/helpers - typeof';const _0x4406ce=_0x241cd9;return M=typeof Symbol==_0x4406ce(0x1f6)&&typeof Symbol[_0x4406ce(0x283)]=='symbol'?function(_0x47504f){return typeof _0x47504f;}:function(_0x3b145c){const _0x492a57=_0x4406ce;return _0x3b145c&&typeof Symbol=='function'&&_0x3b145c[_0x492a57(0x252)]===Symbol&&_0x3b145c!==Symbol[_0x492a57(0x280)]?'symbol':typeof _0x3b145c;},M(_0x4ca6e0);}function nt(_0x41d771,_0x524a26){const _0x1ce3c8=_0x241cd9;if(M(_0x41d771)!=_0x1ce3c8(0x258)||!_0x41d771)return _0x41d771;var _0x51d72f=_0x41d771[Symbol[_0x1ce3c8(0x250)]];if(_0x51d72f!==void 0x0){var _0x131fa3=_0x51d72f[_0x1ce3c8(0x211)](_0x41d771,_0x524a26||_0x1ce3c8(0x230));if(M(_0x131fa3)!=_0x1ce3c8(0x258))return _0x131fa3;throw TypeError(_0x1ce3c8(0x2aa));}return(_0x524a26===_0x1ce3c8(0x203)?String:Number)(_0x41d771);}function rt(_0x216246){const _0x4d7ade=_0x241cd9;var _0x442ffb=nt(_0x216246,_0x4d7ade(0x203));return M(_0x442ffb)==_0x4d7ade(0x22a)?_0x442ffb:_0x442ffb+'';}function N(_0x4f6618,_0x10bb95,_0x49bdbc){return(_0x10bb95=rt(_0x10bb95))in _0x4f6618?Object['defineProperty'](_0x4f6618,_0x10bb95,{'value':_0x49bdbc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4f6618[_0x10bb95]=_0x49bdbc,_0x4f6618;}var P=class extends _0x2c5b49{constructor(..._0x1d8de9){const _0x343a9b=_0x241cd9;super(..._0x1d8de9),N(this,_0x343a9b(0x2c9),new Map()),N(this,_0x343a9b(0x2b1),new Map()),N(this,_0x343a9b(0x270),new Map()),N(this,_0x343a9b(0x247),new _0x7c5dac()),N(this,_0x343a9b(0x1e4),this[_0x343a9b(0x247)][_0x343a9b(0x2c3)]());}[_0x241cd9(0x2e3)](_0x52bf6e,_0x176c19){const _0x14e94b=_0x241cd9;var _0x598cb6;let _0x59508d=(_0x598cb6=this[_0x14e94b(0x2c9)][_0x14e94b(0x217)](_0x52bf6e))==null?void 0x0:_0x598cb6[_0x14e94b(0x290)][_0x176c19];return _0x59508d?_0x264f7b[_0x14e94b(0x269)](_0x59508d):void 0x0;}[_0x241cd9(0x2e2)](_0x39b10c){const _0x1eda53=_0x241cd9;var _0x56cb5a;return _0x264f7b[_0x1eda53(0x269)](((_0x56cb5a=this[_0x1eda53(0x2c9)][_0x1eda53(0x217)](_0x39b10c))==null?void 0x0:_0x56cb5a['formulas'])??{});}[_0x241cd9(0x248)](_0x2e5179){const _0x45cf1c=_0x241cd9;let _0x31b99a=this[_0x45cf1c(0x2c9)][_0x45cf1c(0x217)](_0x2e5179);return _0x31b99a?_0x264f7b[_0x45cf1c(0x269)](_0x31b99a):void 0x0;}[_0x241cd9(0x2c7)](_0x5e355f,_0x2b5d6c,_0x17004d){const _0x2e8234=_0x241cd9;return this[_0x2e8234(0x213)](_0x5e355f,{[_0x2b5d6c]:_0x17004d});}[_0x241cd9(0x228)](_0x5666a9,_0x1ae509){const _0x51fed3=_0x241cd9;return this[_0x51fed3(0x270)]['has'](_0x5666a9)||!x(_0x1ae509)?!0x1:(this['_resources'][_0x51fed3(0x216)](_0x5666a9,_0x264f7b['deepClone'](_0x1ae509)),this[_0x51fed3(0x247)][_0x51fed3(0x1fc)]({'unitId':_0x5666a9}),!0x0);}[_0x241cd9(0x213)](_0x5b96ea,_0x585686){const _0xcb26c6=_0x241cd9;if(this['_loadErrors']['has'](_0x5b96ea)||!Object[_0xcb26c6(0x25a)](_0x585686)['length']||!x({'schemaVersion':0x1,'formulas':_0x585686}))return!0x1;let _0x53daf0=this[_0xcb26c6(0x2c9)][_0xcb26c6(0x217)](_0x5b96ea)??b(),_0x19a1d0=_0x264f7b[_0xcb26c6(0x269)](_0x53daf0);return Object[_0xcb26c6(0x21b)](_0x19a1d0[_0xcb26c6(0x290)],_0x264f7b[_0xcb26c6(0x269)](_0x585686)),this[_0xcb26c6(0x2c9)][_0xcb26c6(0x216)](_0x5b96ea,_0x19a1d0),this[_0xcb26c6(0x247)][_0xcb26c6(0x1fc)]({'unitId':_0x5b96ea,'rangeIds':Object[_0xcb26c6(0x25a)](_0x585686)}),!0x0;}[_0x241cd9(0x22c)](_0x4ef7ea,_0x330c57){const _0x4a5ab2=_0x241cd9;if(this['_loadErrors'][_0x4a5ab2(0x2cf)](_0x4ef7ea))return!0x1;let _0x1539bf=this[_0x4a5ab2(0x2c9)]['get'](_0x4ef7ea);if(!(_0x1539bf!=null&&_0x1539bf[_0x4a5ab2(0x290)][_0x330c57]))return!0x1;let _0x39bb57=_0x264f7b[_0x4a5ab2(0x269)](_0x1539bf);return delete _0x39bb57[_0x4a5ab2(0x290)][_0x330c57],this[_0x4a5ab2(0x2c9)][_0x4a5ab2(0x216)](_0x4ef7ea,_0x39bb57),this[_0x4a5ab2(0x247)][_0x4a5ab2(0x1fc)]({'unitId':_0x4ef7ea,'rangeIds':[_0x330c57]}),!0x0;}[_0x241cd9(0x2a2)](_0x5de2bf,_0x220ae2){const _0x504ae7=_0x241cd9;return _0x220ae2&&typeof _0x220ae2==_0x504ae7(0x258)&&'schemaVersion'in _0x220ae2&&_0x220ae2['schemaVersion']!==0x1?(this[_0x504ae7(0x219)](_0x5de2bf,_0x220ae2,_0x504ae7(0x29d)),!0x1):x(_0x220ae2)?(this[_0x504ae7(0x2c9)]['set'](_0x5de2bf,_0x264f7b[_0x504ae7(0x269)](_0x220ae2)),this['_rawResources'][_0x504ae7(0x1ff)](_0x5de2bf),this[_0x504ae7(0x270)][_0x504ae7(0x1ff)](_0x5de2bf),this['_change$']['next']({'unitId':_0x5de2bf}),!0x0):(this['_preserveInvalid'](_0x5de2bf,_0x220ae2,'invalid-resource'),!0x1);}[_0x241cd9(0x2cd)](_0x16215b){const _0x11b107=_0x241cd9;let _0x371d17=this[_0x11b107(0x2c9)][_0x11b107(0x217)](_0x16215b);return _0x371d17?_0x264f7b[_0x11b107(0x269)](_0x371d17):this[_0x11b107(0x2b1)][_0x11b107(0x2cf)](_0x16215b)?_0x264f7b[_0x11b107(0x269)](this[_0x11b107(0x2b1)][_0x11b107(0x217)](_0x16215b)):b();}['getLoadError'](_0x363af0){const _0x5889bb=_0x241cd9;return this[_0x5889bb(0x270)][_0x5889bb(0x217)](_0x363af0);}['removeUnit'](_0x3c806b){const _0x87790a=_0x241cd9;this[_0x87790a(0x2c9)][_0x87790a(0x1ff)](_0x3c806b),this[_0x87790a(0x2b1)]['delete'](_0x3c806b),this[_0x87790a(0x270)][_0x87790a(0x1ff)](_0x3c806b),this['_change$']['next']({'unitId':_0x3c806b});}[_0x241cd9(0x26f)](){const _0x39ed28=_0x241cd9;this['_resources']['clear'](),this['_rawResources'][_0x39ed28(0x299)](),this[_0x39ed28(0x270)]['clear'](),this[_0x39ed28(0x247)][_0x39ed28(0x1fa)](),super['dispose']();}[_0x241cd9(0x219)](_0xe1d2b8,_0x3376b6,_0x55e563){const _0x53b89a=_0x241cd9;this[_0x53b89a(0x2c9)]['delete'](_0xe1d2b8),this[_0x53b89a(0x2b1)][_0x53b89a(0x216)](_0xe1d2b8,_0x264f7b['deepClone'](_0x3376b6)),this[_0x53b89a(0x270)]['set'](_0xe1d2b8,_0x55e563),this[_0x53b89a(0x247)]['next']({'unitId':_0xe1d2b8});}};let it=function(_0xdeaca3){const _0x5ceaeb=_0x241cd9;return _0xdeaca3[_0x5ceaeb(0x256)]=_0x5ceaeb(0x231),_0xdeaca3['PENDING']=_0x5ceaeb(0x242),_0xdeaca3[_0x5ceaeb(0x1f4)]=_0x5ceaeb(0x21c),_0xdeaca3[_0x5ceaeb(0x1e7)]=_0x5ceaeb(0x2b3),_0xdeaca3;}({});function F(_0x1cf537,_0x5e11fd){return function(_0x52562b,_0x567103){_0x5e11fd(_0x52562b,_0x567103,_0x1cf537);};}function I(_0x29c8a5,_0x5a5f77,_0x32598e,_0x3fa215){const _0x1a47ba=_0x241cd9;var _0xd9bcd5=arguments[_0x1a47ba(0x24b)],_0x245da9=_0xd9bcd5<0x3?_0x5a5f77:_0x3fa215===null?_0x3fa215=Object[_0x1a47ba(0x2c6)](_0x5a5f77,_0x32598e):_0x3fa215,_0x1c3d7d;if(typeof Reflect==_0x1a47ba(0x258)&&typeof Reflect[_0x1a47ba(0x21e)]==_0x1a47ba(0x1f6))_0x245da9=Reflect[_0x1a47ba(0x21e)](_0x29c8a5,_0x5a5f77,_0x32598e,_0x3fa215);else{for(var _0x35fb4f=_0x29c8a5[_0x1a47ba(0x24b)]-0x1;_0x35fb4f>=0x0;_0x35fb4f--)(_0x1c3d7d=_0x29c8a5[_0x35fb4f])&&(_0x245da9=(_0xd9bcd5<0x3?_0x1c3d7d(_0x245da9):_0xd9bcd5>0x3?_0x1c3d7d(_0x5a5f77,_0x32598e,_0x245da9):_0x1c3d7d(_0x5a5f77,_0x32598e))||_0x245da9);}return _0xd9bcd5>0x3&&_0x245da9&&Object[_0x1a47ba(0x1f8)](_0x5a5f77,_0x32598e,_0x245da9),_0x245da9;}let L=class extends _0x2c5b49{constructor(_0x371df1,_0xdce38f,_0x110e04){const _0x2eae64=_0x241cd9;super(),this[_0x2eae64(0x2ca)]=_0x371df1,this[_0x2eae64(0x263)]=_0xdce38f,this[_0x2eae64(0x28f)]=_0x110e04,N(this,_0x2eae64(0x20e),new Map()),N(this,_0x2eae64(0x253),new Map()),N(this,_0x2eae64(0x27d),new _0x7c5dac()),N(this,_0x2eae64(0x1f3),this[_0x2eae64(0x27d)][_0x2eae64(0x2c3)]()),this['disposeWithMe'](this['_registrationService']['formulaResult$'][_0x2eae64(0x235)](_0x501b43=>{const _0x5045b2=_0x2eae64;for(let _0x1e6eb5 of Object[_0x5045b2(0x296)](_0x501b43))for(let _0x38ad9b of Object[_0x5045b2(0x296)](_0x1e6eb5))_0x38ad9b[_0x5045b2(0x25d)](_0xea2d08=>this[_0x5045b2(0x26c)](_0xea2d08));}));}[_0x241cd9(0x2a9)](_0x5ebe43){const _0x2ec63b=_0x241cd9;var _0x43ce6f;let _0x2a5285=_0x5ebe43[_0x2ec63b(0x1e2)](),_0x7257de=((_0x43ce6f=_0x5ebe43[_0x2ec63b(0x24f)]()[_0x2ec63b(0x27f)])==null||(_0x43ce6f=_0x43ce6f[_0x2ec63b(0x2a3)])==null?void 0x0:_0x43ce6f[_0x2ec63b(0x1fd)](w))??[],_0x27208d=this[_0x2ec63b(0x2ca)][_0x2ec63b(0x2e2)](_0x2a5285),_0x4ff790=new Set();for(let _0x13bb7f of _0x7257de){let _0x225025=_0x27208d[_0x13bb7f[_0x2ec63b(0x2ba)]];_0x225025&&(_0x4ff790[_0x2ec63b(0x26d)](R(_0x2a5285,_0x13bb7f['rangeId'])),this['register']({'unitId':_0x2a5285,'rangeId':_0x13bb7f['rangeId']},_0x225025));}for(let _0x21ecee of Array[_0x2ec63b(0x201)](this[_0x2ec63b(0x20e)][_0x2ec63b(0x296)]()))_0x21ecee['unitId']===_0x2a5285&&!_0x4ff790[_0x2ec63b(0x2cf)](R(_0x21ecee[_0x2ec63b(0x2bd)],_0x21ecee[_0x2ec63b(0x2ba)]))&&this['unregister'](_0x21ecee);}['register'](_0x40e62f,_0x4fa0b7){const _0x2a154e=_0x241cd9;let _0x5bcebf=R(_0x40e62f[_0x2a154e(0x2bd)],_0x40e62f[_0x2a154e(0x2ba)]),_0x47f477=this['_registrations'][_0x2a154e(0x217)](_0x5bcebf),_0x57fb91=this[_0x2a154e(0x28f)][_0x2a154e(0x20a)](_0x40e62f[_0x2a154e(0x2bd)]);if(_0x47f477&&_0x47f477[_0x2a154e(0x24d)][_0x2a154e(0x2d8)]===_0x4fa0b7[_0x2a154e(0x2d8)]&&_0x47f477[_0x2a154e(0x2d0)]===_0x57fb91){_0x47f477[_0x2a154e(0x24d)]=_0x4fa0b7;let _0x5aacb8=_0x47f477[_0x2a154e(0x1e8)]?this['_registrationService'][_0x2a154e(0x2be)](_0x47f477[_0x2a154e(0x2bd)],_0x47f477[_0x2a154e(0x2bd)],_0x47f477[_0x2a154e(0x1e8)])??void 0x0:void 0x0;_0x47f477[_0x2a154e(0x297)]=_0x5aacb8,this['_setPresentation'](_0x5bcebf,z(_0x4fa0b7,_0x5aacb8));return;}_0x47f477!=null&&_0x47f477['formulaId']&&this[_0x2a154e(0x2d1)](_0x47f477);let _0x2717de={..._0x40e62f,'config':_0x4fa0b7,'referenceRevision':_0x57fb91,'presentation':z(_0x4fa0b7,void 0x0)};if(this[_0x2a154e(0x20e)][_0x2a154e(0x216)](_0x5bcebf,_0x2717de),!_0x4fa0b7[_0x2a154e(0x2d8)]['trim']())return;let _0x266fb4=this[_0x2a154e(0x263)]['registerFormulaWithRange'](_0x40e62f['unitId'],_0x40e62f['unitId'],_0x4fa0b7[_0x2a154e(0x2d8)],void 0x0,{'rangeId':_0x40e62f[_0x2a154e(0x2ba)]},_0x342fcf[_0x2a154e(0x1e5)],_0x40e62f['rangeId']);_0x2717de[_0x2a154e(0x1e8)]=_0x266fb4,this[_0x2a154e(0x253)][_0x2a154e(0x216)](_0x266fb4,_0x5bcebf);}[_0x241cd9(0x2b2)](_0x40a869){const _0x2275d0=_0x241cd9;let _0x14caba=R(_0x40a869[_0x2275d0(0x2bd)],_0x40a869[_0x2275d0(0x2ba)]),_0x13e767=this[_0x2275d0(0x20e)][_0x2275d0(0x217)](_0x14caba);_0x13e767&&(this[_0x2275d0(0x2d1)](_0x13e767),this[_0x2275d0(0x20e)]['delete'](_0x14caba));}[_0x241cd9(0x202)](_0x152f49){const _0x1a0bcb=_0x241cd9;for(let _0x4a6fb3 of Array['from'](this[_0x1a0bcb(0x20e)][_0x1a0bcb(0x296)]()))_0x4a6fb3[_0x1a0bcb(0x2bd)]===_0x152f49&&this['unregister'](_0x4a6fb3);}[_0x241cd9(0x2a1)](_0x2d8f5b){const _0x126079=_0x241cd9;var _0x358746;return(_0x358746=this['_registrations'][_0x126079(0x217)](R(_0x2d8f5b[_0x126079(0x2bd)],_0x2d8f5b[_0x126079(0x2ba)])))==null?void 0x0:_0x358746['presentation'];}[_0x241cd9(0x27c)](_0x341605){const _0x2e4d8e=_0x241cd9;let _0x5842de=this[_0x2e4d8e(0x20e)][_0x2e4d8e(0x217)](R(_0x341605['unitId'],_0x341605[_0x2e4d8e(0x2ba)]));return _0x5842de?B(_0x5842de):void 0x0;}[_0x241cd9(0x29b)](){const _0x10b615=_0x241cd9;return Array[_0x10b615(0x201)](this[_0x10b615(0x20e)][_0x10b615(0x296)](),_0x555697=>({'identity':{'unitId':_0x555697['unitId'],'rangeId':_0x555697[_0x10b615(0x2ba)]},'config':_0x555697['config'],'referenceRevision':_0x555697[_0x10b615(0x2d0)],..._0x555697['liveResult']?{'liveResult':_0x555697[_0x10b615(0x297)]}:null}));}[_0x241cd9(0x26f)](){const _0x1b1748=_0x241cd9;for(let _0x317112 of this['_registrations'][_0x1b1748(0x296)]())this[_0x1b1748(0x2d1)](_0x317112);this['_registrations'][_0x1b1748(0x299)](),this[_0x1b1748(0x253)]['clear'](),this['_presentationChanged$'][_0x1b1748(0x1fa)](),super[_0x1b1748(0x26f)]();}[_0x241cd9(0x26c)](_0x3505dd){const _0x456f1e=_0x241cd9;let _0x2e5700=this['_formulaKeys'][_0x456f1e(0x217)](_0x3505dd[_0x456f1e(0x1e8)]),_0x3e0e3e=_0x2e5700?this[_0x456f1e(0x20e)][_0x456f1e(0x217)](_0x2e5700):void 0x0;_0x2e5700&&_0x3e0e3e&&(_0x3e0e3e[_0x456f1e(0x297)]=_0x3505dd,this[_0x456f1e(0x214)](_0x2e5700,z(_0x3e0e3e[_0x456f1e(0x24d)],_0x3505dd)));}[_0x241cd9(0x214)](_0x6bfc6e,_0x378661){const _0x12d972=_0x241cd9;var _0x19aa7e,_0x18a33c;let _0x46d81c=this['_registrations'][_0x12d972(0x217)](_0x6bfc6e);if(!_0x46d81c||at(_0x46d81c[_0x12d972(0x267)],_0x378661))return;let _0x422f41=_0x46d81c[_0x12d972(0x267)],_0x13196d=B(_0x46d81c);_0x46d81c[_0x12d972(0x267)]=_0x378661,this['_presentationChanged$'][_0x12d972(0x1fc)]({'unitId':_0x46d81c[_0x12d972(0x2bd)],'rangeId':_0x46d81c[_0x12d972(0x2ba)],'presentation':_0x378661,'previousPresentation':_0x422f41,'result':B(_0x46d81c),'previousResult':{..._0x13196d,..._0x422f41,'value':(_0x19aa7e=_0x422f41[_0x12d972(0x2a6)])==null?void 0x0:_0x19aa7e['v'],'valueType':((_0x18a33c=_0x422f41['cell'])==null?void 0x0:_0x18a33c['t'])??void 0x0}});}[_0x241cd9(0x2d1)](_0x1167dc){const _0x246087=_0x241cd9;_0x1167dc[_0x246087(0x1e8)]&&(this[_0x246087(0x263)]['deleteFormula'](_0x1167dc['unitId'],_0x1167dc['unitId'],[_0x1167dc[_0x246087(0x1e8)]]),this[_0x246087(0x253)][_0x246087(0x1ff)](_0x1167dc['formulaId']));}};L=I([F(0x0,_0x199f03(P)),F(0x1,_0x199f03(_0x2ae365)),F(0x2,_0x199f03(_0x2a643f))],L);function R(_0x4f0534,_0x264480){return _0x4f0534+'\x00'+_0x264480;}function z(_0x579ef1,_0x4f5611){const _0x1c38a8=_0x241cd9;return _0x3cb7d0({'numberFormat':_0x579ef1[_0x1c38a8(0x226)],'lastValue':_0x579ef1[_0x1c38a8(0x266)],'result':_0x4f5611});}function B(_0x4e4840){const _0x49603d=_0x241cd9;var _0x4f3d56,_0x42ea84,_0x2bafc1;let _0x438890=_0x4e4840[_0x49603d(0x267)],_0x1d04e4=_0x4e4840[_0x49603d(0x24d)][_0x49603d(0x2d8)][_0x49603d(0x1e6)]()?_0x438890[_0x49603d(0x274)]||_0x438890['cell']==null?_0x49603d(0x242):((_0x4f3d56=_0x4e4840[_0x49603d(0x297)])==null?void 0x0:_0x4f3d56[_0x49603d(0x292)])===_0x41ab96[_0x49603d(0x1e7)]?_0x49603d(0x2b3):_0x49603d(0x21c):_0x49603d(0x231);return{..._0x438890,'status':_0x1d04e4,'value':(_0x42ea84=_0x438890[_0x49603d(0x2a6)])==null?void 0x0:_0x42ea84['v'],'valueType':((_0x2bafc1=_0x438890[_0x49603d(0x2a6)])==null?void 0x0:_0x2bafc1['t'])??void 0x0};}function at(_0x2da642,_0xb6b50e){const _0x4ee45b=_0x241cd9;var _0x590741,_0x438a9e,_0x1b4f2a,_0x423a6e;return _0x2da642[_0x4ee45b(0x2a0)]===_0xb6b50e[_0x4ee45b(0x2a0)]&&_0x2da642[_0x4ee45b(0x206)]===_0xb6b50e[_0x4ee45b(0x206)]&&_0x2da642[_0x4ee45b(0x2d6)]===_0xb6b50e[_0x4ee45b(0x2d6)]&&_0x2da642[_0x4ee45b(0x278)]===_0xb6b50e[_0x4ee45b(0x278)]&&_0x2da642[_0x4ee45b(0x274)]===_0xb6b50e[_0x4ee45b(0x274)]&&((_0x590741=_0x2da642['cell'])==null?void 0x0:_0x590741['t'])===((_0x438a9e=_0xb6b50e['cell'])==null?void 0x0:_0x438a9e['t'])&&Object['is']((_0x1b4f2a=_0x2da642[_0x4ee45b(0x2a6)])==null?void 0x0:_0x1b4f2a['v'],(_0x423a6e=_0xb6b50e[_0x4ee45b(0x2a6)])==null?void 0x0:_0x423a6e['v']);}const ot={'id':_0x241cd9(0x1ed),'type':_0x503dba[_0x241cd9(0x2bc)],'handler':(_0x5a1f5f,_0x42ad4a)=>!(_0x42ad4a!=null&&_0x42ad4a[_0x241cd9(0x2bd)])||!_0x42ad4a['rangeId']||!_0x42ad4a['config']?!0x1:_0x5a1f5f[_0x241cd9(0x217)](P)[_0x241cd9(0x2c7)](_0x42ad4a[_0x241cd9(0x2bd)],_0x42ad4a[_0x241cd9(0x2ba)],_0x42ad4a[_0x241cd9(0x24d)])},st={'id':_0x241cd9(0x2ad),'type':_0x503dba['MUTATION'],'handler':(_0x3b6ef9,_0x1ec747)=>!(_0x1ec747!=null&&_0x1ec747[_0x241cd9(0x2bd)])||!_0x1ec747['rangeId']?!0x1:_0x3b6ef9['get'](P)['removeFormula'](_0x1ec747[_0x241cd9(0x2bd)],_0x1ec747[_0x241cd9(0x2ba)])},V={'id':_0x241cd9(0x27b),'type':_0x503dba[_0x241cd9(0x2bc)],'handler':(_0x6c6004,_0x38130a)=>!(_0x38130a!=null&&_0x38130a[_0x241cd9(0x2bd)])||!_0x38130a['resource']?!0x1:_0x6c6004[_0x241cd9(0x217)](P)['setResource'](_0x38130a[_0x241cd9(0x2bd)],_0x38130a[_0x241cd9(0x2de)])},H={'id':_0x241cd9(0x232),'type':_0x503dba[_0x241cd9(0x2bc)],'handler':(_0x349241,_0x23d64a)=>{const _0x23ac93=_0x241cd9;if(!(_0x23d64a!=null&&_0x23d64a[_0x23ac93(0x2bd)])||!_0x23d64a[_0x23ac93(0x26e)][_0x23ac93(0x24b)])return!0x1;let _0x51f713=_0x349241[_0x23ac93(0x217)](P),_0x1c1f07=_0x349241[_0x23ac93(0x217)](_0x2a643f),_0x1b90c7=_0x51f713[_0x23ac93(0x248)](_0x23d64a[_0x23ac93(0x2bd)]);if(!_0x1b90c7)return!0x1;let _0xe23166=_0x264f7b[_0x23ac93(0x269)](_0x1b90c7),_0x52f4e9=!0x1;for(let _0x6e07c1 of _0x23d64a[_0x23ac93(0x26e)]){var _0x35cc06,_0x3edab0,_0xdf22a9,_0x2855fe;let _0x1a8620=_0xe23166[_0x23ac93(0x290)][_0x6e07c1['rangeId']];_0x1a8620&&_0x1a8620['formula']===_0x6e07c1[_0x23ac93(0x28d)]&&((_0x35cc06=_0x1a8620[_0x23ac93(0x226)])==null?void 0x0:_0x35cc06[_0x23ac93(0x2d6)])===_0x6e07c1['expectedNumberFormat']&&_0x1c1f07['getRevision'](_0x23d64a[_0x23ac93(0x2bd)])===_0x6e07c1[_0x23ac93(0x264)]&&(((_0x3edab0=_0x1a8620['lastValue'])==null?void 0x0:_0x3edab0['v'])!==_0x6e07c1[_0x23ac93(0x266)]['v']||((_0xdf22a9=_0x1a8620['lastValue'])==null?void 0x0:_0xdf22a9['t'])!==_0x6e07c1['lastValue']['t']||((_0x2855fe=_0x1a8620[_0x23ac93(0x266)])==null?void 0x0:_0x2855fe[_0x23ac93(0x2d6)])!==_0x6e07c1[_0x23ac93(0x266)][_0x23ac93(0x2d6)])&&(_0x1a8620[_0x23ac93(0x266)]=_0x264f7b[_0x23ac93(0x269)](_0x6e07c1[_0x23ac93(0x266)]),_0x52f4e9=!0x0);}return!_0x52f4e9||_0x51f713['setResource'](_0x23d64a[_0x23ac93(0x2bd)],_0xe23166);}},U={'id':_0x241cd9(0x29a),'type':_0x503dba[_0x241cd9(0x221)],'handler':(_0x1ede6e,_0x4ce06b)=>{const _0x1c675d=_0x241cd9;if(!(_0x4ce06b!=null&&_0x4ce06b[_0x1c675d(0x2d8)][_0x1c675d(0x1e6)]()))return!0x1;let _0x3991fa=q(_0x1ede6e,_0x4ce06b[_0x1c675d(0x2bd)],'');if(!_0x3991fa)return!0x1;let _0x184187=ft(_0x4ce06b[_0x1c675d(0x2d2)],_0x3991fa['body'],dt(_0x1ede6e,_0x3991fa[_0x1c675d(0x2bd)]));if(!_0x184187)return!0x1;let _0x3da5cb=pt(_0x1ede6e,_0x3991fa[_0x1c675d(0x2bd)],_0x4ce06b[_0x1c675d(0x2d8)],_0x4ce06b[_0x1c675d(0x223)]??[]);if(!_0x3da5cb)return!0x1;let _0x4932ad=mt(_0x3991fa[_0x1c675d(0x27f)],_0x3991fa[_0x1c675d(0x277)],_0x3991fa[_0x1c675d(0x2bd)]),_0x211a67=ht({'documentData':_0x3991fa['documentData'],'resource':_0x3991fa[_0x1c675d(0x2de)],'rangeId':_0x4932ad,'config':{'formula':_0x4ce06b['formula'],..._0x4ce06b[_0x1c675d(0x226)]?{'numberFormat':_0x4ce06b[_0x1c675d(0x226)]}:null},'startOffset':_0x184187['startOffset'],'endOffset':_0x184187['endOffset']});if(!_0x211a67)return!0x1;let _0x55090b=_0x3c6f60(_0x1ede6e,_0x3991fa[_0x1c675d(0x2bd)],_0x3da5cb);return!_0x55090b||!J({'accessor':_0x1ede6e,'document':_0x3991fa['document'],'unitId':_0x3991fa[_0x1c675d(0x2bd)],'trigger':U['id'],'rangeId':_0x4932ad,'previousResource':_0x3991fa[_0x1c675d(0x2de)],'nextResource':_0x211a67[_0x1c675d(0x284)],'previousDocumentData':_0x3991fa[_0x1c675d(0x1e0)],'nextDocumentData':_0x211a67['nextDocumentData'],'cursorOffset':_0x211a67[_0x1c675d(0x28e)],'externalMutations':_0x55090b})?!0x1:{'rangeId':_0x4932ad,'startOffset':_0x211a67['cursorOffset']-0x1,'endOffset':_0x211a67['cursorOffset']};}},W={'id':_0x241cd9(0x207),'type':_0x503dba[_0x241cd9(0x221)],'handler':(_0x1c28b5,_0x1c1311)=>{const _0x5480d7=_0x241cd9;if(!(_0x1c1311!=null&&_0x1c1311['rangeId'])||!_0x1c1311[_0x5480d7(0x2d8)][_0x5480d7(0x1e6)]())return!0x1;let _0x12d612=q(_0x1c28b5,_0x1c1311['unitId'],''),_0x55676c=_0x12d612==null?void 0x0:_0x12d612[_0x5480d7(0x277)][_0x5480d7(0x2e3)](_0x12d612[_0x5480d7(0x2bd)],_0x1c1311[_0x5480d7(0x2ba)]),_0x2bdcb4=_0x12d612?T(_0x12d612[_0x5480d7(0x1e0)]['body'],_0x1c1311[_0x5480d7(0x2ba)]):void 0x0;if(!_0x12d612||!_0x55676c||!_0x2bdcb4)return!0x1;let _0x2c169e=pt(_0x1c28b5,_0x12d612[_0x5480d7(0x2bd)],_0x1c1311[_0x5480d7(0x2d8)],_0x1c1311['externalReferences']??[]);if(!_0x2c169e)return!0x1;let _0x5eba9b=_0x3c6f60(_0x1c28b5,_0x12d612['unitId'],_0x2c169e);if(!_0x5eba9b)return!0x1;let _0x230370=Ct(_0x12d612[_0x5480d7(0x2de)]);return _0x230370[_0x5480d7(0x290)][_0x1c1311[_0x5480d7(0x2ba)]]={'formula':_0x1c1311[_0x5480d7(0x2d8)],..._0x1c1311[_0x5480d7(0x226)]?{'numberFormat':_0x1c1311['numberFormat']}:_0x55676c[_0x5480d7(0x226)]?{'numberFormat':_0x55676c[_0x5480d7(0x226)]}:null},J({'accessor':_0x1c28b5,'document':_0x12d612[_0x5480d7(0x282)],'unitId':_0x12d612[_0x5480d7(0x2bd)],'trigger':W['id'],'rangeId':_0x1c1311['rangeId'],'previousResource':_0x12d612[_0x5480d7(0x2de)],'nextResource':_0x230370,'cursorOffset':_0x2bdcb4[_0x5480d7(0x21a)]+0x1,'externalMutations':_0x5eba9b});}},G={'id':_0x241cd9(0x260),'type':_0x503dba[_0x241cd9(0x221)],'handler':(_0x4778e9,_0x16c132)=>{const _0x1346eb=_0x241cd9;if(!(_0x16c132!=null&&_0x16c132[_0x1346eb(0x2ba)]))return!0x1;let _0x247fa9=q(_0x4778e9,_0x16c132['unitId'],''),_0x4e5736=_0x247fa9==null?void 0x0:_0x247fa9[_0x1346eb(0x277)][_0x1346eb(0x2e3)](_0x247fa9['unitId'],_0x16c132['rangeId']),_0x562f72=_0x247fa9?T(_0x247fa9[_0x1346eb(0x1e0)][_0x1346eb(0x27f)],_0x16c132[_0x1346eb(0x2ba)]):void 0x0;if(!_0x247fa9||!_0x4e5736||!_0x562f72)return!0x1;let _0x2c4058=Ct(_0x247fa9['resource']);return _0x2c4058[_0x1346eb(0x290)][_0x16c132['rangeId']]={..._0x4e5736,..._0x16c132['numberFormat']?{'numberFormat':_0x16c132[_0x1346eb(0x226)]}:null},_0x16c132[_0x1346eb(0x226)]||delete _0x2c4058['formulas'][_0x16c132[_0x1346eb(0x2ba)]]['numberFormat'],J({'accessor':_0x4778e9,'document':_0x247fa9[_0x1346eb(0x282)],'unitId':_0x247fa9[_0x1346eb(0x2bd)],'trigger':G['id'],'rangeId':_0x16c132[_0x1346eb(0x2ba)],'previousResource':_0x247fa9[_0x1346eb(0x2de)],'nextResource':_0x2c4058,'cursorOffset':_0x562f72['endIndex']+0x1,'externalMutations':{}});}},K={'id':_0x241cd9(0x2ab),'type':_0x503dba[_0x241cd9(0x221)],'handler':(_0x4545a4,_0x5458be)=>ut(_0x4545a4,_0x5458be,'',K['id'])},ct={'id':_0x241cd9(0x2c2),'type':_0x503dba[_0x241cd9(0x221)],'handler':(_0x332469,_0x2237c7)=>ut(_0x332469,_0x2237c7,(_0x2237c7==null?void 0x0:_0x2237c7['text'])??'',ct['id'])},lt={'id':_0x241cd9(0x204),'type':_0x503dba['COMMAND'],'handler':(_0x2084dc,_0x409c4a)=>{const _0x4bfc5f=_0x241cd9;if(!(_0x409c4a!=null&&_0x409c4a['rangeId']))return!0x1;let _0x42a04e=q(_0x2084dc,_0x409c4a['unitId'],'');if(!_0x42a04e)return!0x1;let _0x1b38eb=_0x2084dc[_0x4bfc5f(0x217)](L)['getResult']({'unitId':_0x42a04e[_0x4bfc5f(0x2bd)],'rangeId':_0x409c4a['rangeId']});return _0x1b38eb?ut(_0x2084dc,_0x409c4a,_0x1b38eb['text'],lt['id']):!0x1;}};function ut(_0x97df17,_0x1bab8c,_0x365f45,_0x1a5b9b){const _0x30d911=_0x241cd9;if(!(_0x1bab8c!=null&&_0x1bab8c['rangeId']))return!0x1;let _0x4b9e55=q(_0x97df17,_0x1bab8c[_0x30d911(0x2bd)],'');if(!_0x4b9e55)return!0x1;let _0x2bdddb=Be({'documentData':_0x4b9e55['documentData'],'resource':_0x4b9e55['resource'],'rangeId':_0x1bab8c[_0x30d911(0x2ba)],'text':_0x365f45});return _0x2bdddb?J({'accessor':_0x97df17,'document':_0x4b9e55[_0x30d911(0x282)],'unitId':_0x4b9e55[_0x30d911(0x2bd)],'trigger':_0x1a5b9b,'rangeId':_0x1bab8c[_0x30d911(0x2ba)],'previousResource':_0x4b9e55[_0x30d911(0x2de)],'nextResource':_0x2bdddb[_0x30d911(0x284)],'previousDocumentData':_0x4b9e55['documentData'],'nextDocumentData':_0x2bdddb[_0x30d911(0x2dc)],'cursorOffset':_0x2bdddb[_0x30d911(0x28e)],'externalMutations':{}}):!0x1;}function q(_0x46ae7c,_0x572cf1,_0x53b2ca){const _0x100c17=_0x241cd9;if(_0x53b2ca)return null;let _0x50bcb7=_0x46ae7c[_0x100c17(0x217)](_0x6870f1),_0x4700a3=(_0x572cf1?_0x50bcb7[_0x100c17(0x23b)](_0x572cf1,_0x46296f[_0x100c17(0x20c)]):_0x50bcb7[_0x100c17(0x262)](_0x46296f[_0x100c17(0x20c)]))??null;if(!_0x4700a3)return null;let _0x33f258=_0x4700a3[_0x100c17(0x24f)](),_0x21c5e3=_0x33f258[_0x100c17(0x27f)];if(_0x33f258[_0x100c17(0x1dc)]||!_0x21c5e3)return null;let _0x230347=_0x46ae7c['get'](P);return _0x230347['getLoadError'](_0x4700a3[_0x100c17(0x1e2)]())?null:{'document':_0x4700a3,'body':_0x21c5e3,'documentData':_0x33f258,'model':_0x230347,'resource':_0x230347[_0x100c17(0x248)](_0x4700a3['getUnitId']())??b(),'unitId':_0x4700a3[_0x100c17(0x1e2)]()};}function dt(_0x15d40c,_0x38a7ee){const _0x36d3d3=_0x241cd9;var _0x17af3e;return(_0x17af3e=_0x15d40c[_0x36d3d3(0x217)](_0x4acac4)[_0x36d3d3(0x210)]({'subUnitId':_0x38a7ee,'unitId':_0x38a7ee}))==null?void 0x0:_0x17af3e[0x0];}function ft(_0x3f9800,_0x40eaa4,_0x4e5ab5){const _0x429c4d=_0x241cd9;if((_0x3f9800==null?void 0x0:_0x3f9800[_0x429c4d(0x22b)])===_0x429c4d(0x288)){var _0x975837;let _0x2620a4=((_0x975837=_0x40eaa4['paragraphs'])==null?void 0x0:_0x975837[_0x429c4d(0x1fd)](_0x1a1d5f=>_0x1a1d5f['paragraphId']===_0x3f9800[_0x429c4d(0x20b)]))??[];if(_0x2620a4[_0x429c4d(0x24b)]!==0x1)return null;let _0xe349a=_0x2620a4[0x0],_0x4f6e91=_0x2b5919(_0x40eaa4,_0xe349a),_0x3cfca7=_0xe349a[_0x429c4d(0x27a)]-_0x4f6e91,_0x257b27=_0x3f9800[_0x429c4d(0x2a7)]===_0x429c4d(0x21d)?_0x3cfca7:_0x3f9800[_0x429c4d(0x2a7)];if(!Number[_0x429c4d(0x276)](_0x257b27)||_0x257b27<0x0||_0x257b27>_0x3cfca7)return null;let _0x5e86cd=_0x4f6e91+_0x257b27;return{'startOffset':_0x5e86cd,'endOffset':_0x5e86cd};}if((_0x3f9800==null?void 0x0:_0x3f9800[_0x429c4d(0x22b)])==='range')return!Number[_0x429c4d(0x276)](_0x3f9800[_0x429c4d(0x2b4)])||!Number[_0x429c4d(0x276)](_0x3f9800['endOffset'])?null:{'startOffset':Math[_0x429c4d(0x271)](_0x3f9800['startOffset'],_0x3f9800[_0x429c4d(0x2c1)]),'endOffset':Math[_0x429c4d(0x26a)](_0x3f9800[_0x429c4d(0x2b4)],_0x3f9800[_0x429c4d(0x2c1)])};let _0x200c08=(_0x3f9800==null?void 0x0:_0x3f9800[_0x429c4d(0x22b)])==='selection'?_0x3f9800[_0x429c4d(0x2cc)]:_0x4e5ab5;return!_0x200c08||_0x200c08[_0x429c4d(0x22d)]?null:{'startOffset':Math[_0x429c4d(0x271)](_0x200c08['startOffset'],_0x200c08[_0x429c4d(0x2c1)]),'endOffset':Math[_0x429c4d(0x26a)](_0x200c08[_0x429c4d(0x2b4)],_0x200c08[_0x429c4d(0x2c1)])};}function pt(_0x208d1e,_0x4eb5c5,_0x1743ea,_0x11792e){const _0x236cd3=_0x241cd9;let _0x4977cb=_0x208d1e['get'](_0x322ca6),_0x4c50f7=_0x1743ea[_0x236cd3(0x22e)]('=')?_0x1743ea[_0x236cd3(0x294)](0x1):_0x1743ea,_0x261fc7=_0x4977cb[_0x236cd3(0x2bb)](_0x4c50f7);if(!_0x261fc7)return null;let _0x2f6353=_0x208d1e[_0x236cd3(0x217)](_0x2a643f),_0x9c7ea=_0x1eb386({'qualifiers':_0x2fe8c6(_0x261fc7),'explicitReferences':_0x11792e??[],'resolveBinding':_0x32ba9f=>_0x2f6353[_0x236cd3(0x240)](_0x4eb5c5,_0x32ba9f)});return _0x9c7ea[_0x236cd3(0x292)]===_0x236cd3(0x254)?_0x9c7ea[_0x236cd3(0x291)]:null;}function _0x321c(_0x2ac760,_0x1d88f6){_0x2ac760=_0x2ac760-0x1dc;const _0xe02e4e=_0xe02e();let _0x321cdb=_0xe02e4e[_0x2ac760];return _0x321cdb;}function mt(_0x830e14,_0x525dab,_0x10f77f){const _0x2de45b=_0x241cd9;var _0xa622de;let _0x55c1fa=_0xd42773(0x6);for(;_0x830e14!=null&&(_0xa622de=_0x830e14['customRanges'])!=null&&_0xa622de[_0x2de45b(0x23f)](_0x2cbbf5=>_0x2cbbf5['rangeId']===_0x55c1fa)||_0x525dab['getFormula'](_0x10f77f,_0x55c1fa);)_0x55c1fa=_0xd42773(0x6);return _0x55c1fa;}function ht(_0x330b37){try{return Re(_0x330b37);}catch(_0x4e24b0){if(_0x4e24b0 instanceof C)return null;throw _0x4e24b0;}}function gt(_0x54cc7b){const _0x39633e=_0x241cd9;let _0xc93bdc=_0x54cc7b[_0x39633e(0x281)]&&_0x54cc7b['nextDocumentData']?vt(_0x54cc7b[_0x39633e(0x282)],_0x54cc7b['unitId'],_0x54cc7b['previousDocumentData'],_0x54cc7b[_0x39633e(0x2dc)],_0x54cc7b[_0x39633e(0x28e)],_0x54cc7b[_0x39633e(0x275)]):null;return _0x54cc7b[_0x39633e(0x281)]&&_0x54cc7b[_0x39633e(0x2dc)]&&!_0xc93bdc?null:{'documentRedo':_0xc93bdc,'resourceRedo':{'id':V['id'],'params':{'unitId':_0x54cc7b['unitId'],'resource':_0x54cc7b[_0x39633e(0x284)]}},'resourceUndo':{'id':V['id'],'params':{'unitId':_0x54cc7b[_0x39633e(0x2bd)],'resource':_0x54cc7b[_0x39633e(0x1ea)]}}};}function _t(_0x240770,_0xe27edc,_0x122d6a,_0x5b441b){const _0x44a304=_0x241cd9;_0x5b441b[_0x44a304(0x285)]({'id':_0x240770[_0x44a304(0x275)]+':'+_0x240770['rangeId'],'unitID':_0x240770[_0x44a304(0x2bd)],'redoMutations':[..._0x240770['externalMutations']['redoMutation']?[_0x240770['externalMutations'][_0x44a304(0x287)]]:[],..._0xe27edc[_0x44a304(0x1fb)]?[_0xe27edc[_0x44a304(0x1fb)]]:[],_0xe27edc[_0x44a304(0x2a5)]],'undoMutations':[_0xe27edc[_0x44a304(0x286)],..._0x122d6a?[_0x122d6a]:[],..._0x240770[_0x44a304(0x20f)]['undoMutation']?[_0x240770['externalMutations'][_0x44a304(0x1df)]]:[]]});}function J(_0x35f36f){const _0x1f78f9=_0x241cd9;let _0x460c30=_0x35f36f[_0x1f78f9(0x220)][_0x1f78f9(0x217)](_0x583930),_0x3feb29=_0x35f36f[_0x1f78f9(0x220)]['get'](_0x196b7c),_0x547363=_0x35f36f[_0x1f78f9(0x220)][_0x1f78f9(0x217)](_0x4acac4),_0x51ca81=gt(_0x35f36f);if(!_0x51ca81)return!0x1;let _0x37a1c0=!0x1,_0x10e87b=null,_0x16527c=!0x1;try{if(_0x35f36f['externalMutations'][_0x1f78f9(0x287)]){if(!_0x460c30['syncExecuteCommand'](_0x35f36f[_0x1f78f9(0x20f)]['redoMutation']['id'],_0x35f36f[_0x1f78f9(0x20f)][_0x1f78f9(0x287)][_0x1f78f9(0x293)]))return!0x1;_0x37a1c0=!0x0;}if(_0x51ca81[_0x1f78f9(0x1fb)]){let _0x2c3cba=_0x460c30[_0x1f78f9(0x2b0)](_0x51ca81[_0x1f78f9(0x1fb)]['id'],_0x51ca81[_0x1f78f9(0x1fb)]['params']);if(!_0x2c3cba)return bt(_0x460c30,_0x35f36f[_0x1f78f9(0x20f)],_0x37a1c0),!0x1;_0x10e87b={'id':_0x2acc6a['id'],'params':{..._0x2c3cba,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x460c30[_0x1f78f9(0x2b0)](_0x51ca81['resourceRedo']['id'],_0x51ca81['resourceRedo']['params']))return yt(_0x460c30,_0x10e87b),bt(_0x460c30,_0x35f36f[_0x1f78f9(0x20f)],_0x37a1c0),!0x1;_0x16527c=!0x0,_t(_0x35f36f,_0x51ca81,_0x10e87b,_0x3feb29);}catch(_0x5d3e90){throw _0x16527c&&_0x460c30[_0x1f78f9(0x2b0)](_0x51ca81[_0x1f78f9(0x286)]['id'],_0x51ca81[_0x1f78f9(0x286)]['params']),yt(_0x460c30,_0x10e87b),bt(_0x460c30,_0x35f36f['externalMutations'],_0x37a1c0),_0x5d3e90;}return _0x547363[_0x1f78f9(0x20d)]([{'startOffset':_0x35f36f[_0x1f78f9(0x28e)],'endOffset':_0x35f36f[_0x1f78f9(0x28e)],'segmentId':''}],{'unitId':_0x35f36f[_0x1f78f9(0x2bd)],'subUnitId':_0x35f36f[_0x1f78f9(0x2bd)]},!0x1,{[_0x39973e]:!0x0}),!0x0;}function vt(_0x3e50d1,_0x429497,_0x283926,_0x58eea4,_0x38d281,_0x27132a){let _0x3e3488=xt(_0x283926,_0x58eea4,_0x5f4bdc(_0x3e50d1,''));return _0x3e3488?{'id':_0x2acc6a['id'],'params':{'unitId':_0x429497,'actions':_0x3e3488,'segmentId':'','textRanges':[{'startOffset':_0x38d281,'endOffset':_0x38d281,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x27132a}}:null;}function yt(_0x28d03d,_0x28db29){const _0x2ec835=_0x241cd9;_0x28db29&&_0x28d03d[_0x2ec835(0x2b0)](_0x28db29['id'],_0x28db29[_0x2ec835(0x293)]);}function bt(_0x22ab82,_0x26902c,_0x56b29d){const _0x24bc6e=_0x241cd9;_0x56b29d&&_0x26902c[_0x24bc6e(0x1df)]&&_0x22ab82[_0x24bc6e(0x2b0)](_0x26902c['undoMutation']['id'],_0x26902c[_0x24bc6e(0x1df)][_0x24bc6e(0x293)]);}function xt(_0x56d472,_0x468f09,_0x22a118){const _0x54b72b=_0x241cd9;let _0x5cfa31=_0x56d472[_0x54b72b(0x27f)],_0x15c6c1=_0x468f09[_0x54b72b(0x27f)],_0x568eaf=St(_0x5cfa31==null?void 0x0:_0x5cfa31[_0x54b72b(0x236)],_0x15c6c1==null?void 0x0:_0x15c6c1[_0x54b72b(0x236)]);if(!_0x568eaf||!_0x15c6c1)return null;let _0x2bc087=new _0x32b2df();return _0x2bc087[_0x54b72b(0x243)](_0x568eaf['start']),_0x568eaf[_0x54b72b(0x2da)]>0x0&&_0x2bc087[_0x54b72b(0x2d3)](_0x568eaf['insertLength'],_0x2e6873(_0x15c6c1,_0x568eaf[_0x54b72b(0x2e0)],_0x568eaf['start']+_0x568eaf[_0x54b72b(0x2da)],!0x1)),_0x568eaf[_0x54b72b(0x279)]>0x0&&_0x2bc087[_0x54b72b(0x1ff)](_0x568eaf[_0x54b72b(0x279)]),_0x59e127[_0x54b72b(0x26b)]()[_0x54b72b(0x251)](_0x2bc087[_0x54b72b(0x2cd)](),_0x22a118);}function St(_0x7ec52a,_0x2fe3aa){const _0x7c65de=_0x241cd9;if(_0x7ec52a==null||_0x2fe3aa==null||_0x7ec52a===_0x2fe3aa)return null;let _0x20e751=0x0;for(;_0x20e751<_0x7ec52a[_0x7c65de(0x24b)]&&_0x20e751<_0x2fe3aa['length']&&_0x7ec52a[_0x20e751]===_0x2fe3aa[_0x20e751];)_0x20e751+=0x1;let _0x288b66=_0x7ec52a[_0x7c65de(0x24b)],_0x5da84f=_0x2fe3aa['length'];for(;_0x288b66>_0x20e751&&_0x5da84f>_0x20e751&&_0x7ec52a[_0x288b66-0x1]===_0x2fe3aa[_0x5da84f-0x1];)--_0x288b66,--_0x5da84f;return{'start':_0x20e751,'deleteLength':_0x288b66-_0x20e751,'insertLength':_0x5da84f-_0x20e751};}function Ct(_0x2b0af2){const _0x36e41a=_0x241cd9;return{'schemaVersion':0x1,'formulas':Object[_0x36e41a(0x2ae)](Object[_0x36e41a(0x205)](_0x2b0af2[_0x36e41a(0x290)])[_0x36e41a(0x289)](([_0x11a2df,_0x112915])=>[_0x11a2df,{..._0x112915,..._0x112915[_0x36e41a(0x226)]?{'numberFormat':{..._0x112915['numberFormat']}}:null,..._0x112915[_0x36e41a(0x266)]?{'lastValue':{..._0x112915[_0x36e41a(0x266)]}}:null}]))};}function _0xe02e(){const _0x1caff9=['UNIVER_DOC','replaceDocRanges','_registrations','externalMutations','getTextRanges','call','_syncScheduled','setFormulas','_setPresentation','_isDisposed','set','get','BLOCK_START','_preserveInvalid','endIndex','assign','success','end','decorate','kind','accessor','COMMAND','10QLsKIr','externalReferences','_instanceService','isArray','numberFormat','8160530aqRKbi','setResource','onStarting','symbol','type','removeFormula','segmentId','startsWith','719351JBysYJ','default','empty','docs-formula.mutation.set-last-values','assess','3957516wjzLCr','subscribe','dataStream','COLUMN_GROUP_START','unitAdded$','_service','3688gwfEOJ','getUnit','1.0.2','COLUMN_END','setConfig','some','resolveBinding','TABLE_CELL_START','pending','retain','schemaVersion','name','_configService','_change$','getResource','TABLE_START','DOC_FORMULA_PLUGIN','length','every','config','identity','getSnapshot','toPrimitive','editOp','constructor','_formulaKeys','resolved','CUSTOM','EMPTY','resolveFormula','object','registerCommand','keys','rangeType','boolean','forEach','customDecorations','_univerInstanceService','docs-formula.command.set-number-format','COLUMN_START','getCurrentUnitOfType','_registrationService','expectedReferenceRevision','_cacheEligibilityService','lastValue','presentation','TABLE_CELL_END','deepClone','max','getInstance','_updateFormulaResult','add','updates','dispose','_loadErrors','min','eligible','data','stale','trigger','isInteger','model','source','deleteLength','startIndex','docs-formula.mutation.set-resource','getResult','_presentationChanged$','number','body','prototype','previousDocumentData','document','iterator','nextResource','pushUndoRedo','resourceUndo','redoMutation','paragraph','map','univer-docs-formula','pluginName','textRuns','expectedFormula','cursorOffset','_hostExternalReferenceModel','formulas','references','status','params','slice','_formulaService','values','liveResult','includes','clear','docs-formula.command.insert','getRegisteredFormulas','version','unsupported-version','Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.','collectMutations','text','getPresentation','load','customRanges','unitDisposed$','resourceRedo','cell','position','registerPluginResource','syncUnit','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','docs-formula.command.remove','PARAGRAPH','docs-formula.mutation.remove-formula','fromEntries','7uSYgdw','syncExecuteCommand','_rawResources','unregister','error','startOffset','find','7307757pNHqga','degradeBody','parse','customBlocks','rangeId','sequenceNodesBuilder','MUTATION','unitId','getFormulaValueSync','disposeWithMe','endsWith','endOffset','docs-formula.command.replace-with-text','asObservable','degradeDocumentData','tables','getOwnPropertyDescriptor','setFormula','CUSTOM_BLOCK','_resources','_model','SECTION_BREAK','selection','serialize','3813YPNtOn','has','referenceRevision','_deleteRegistration','target','insert','_resourceManagerService','5082592WUXRvq','pattern','onCommandExecuted','formula','COLUMN_GROUP_END','insertLength','_config','nextDocumentData','packageName','resource','register','start','registerProvider','getFormulas','getFormula','disabled','_docFormulaModel','notifyTextChanged','undoMutation','documentData','TABLE_ROW_START','getUnitId','sort','change$','DOC','trim','ERROR','formulaId','_syncUnit','previousResource','22262dPZmpO','sectionBreaks','docs-formula.mutation.set-formula','docs-formula.config','properties','removeUnit','stringify','_pendingUnitIds','presentationChanged$','SUCCESS','columnGroups','function','blockRanges','defineProperty','_injector','complete','documentRedo','next','filter','_commandService','delete','TABLE_ROW_END','from','unregisterUnit','string','docs-formula.command.convert-to-text','entries','color','docs-formula.command.update','paragraphs','resolveText','getRevision','paragraphId'];_0xe02e=function(){return _0x1caff9;};return _0xe02e();}let Y=class extends _0x2c5b49{constructor(_0x1c026d,_0x2e5637,_0xa6db22,_0x3d0032){const _0xa6f052=_0x241cd9;super(),this[_0xa6f052(0x224)]=_0x1c026d,this[_0xa6f052(0x1fe)]=_0x2e5637,this[_0xa6f052(0x2ca)]=_0xa6db22,this[_0xa6f052(0x239)]=_0x3d0032,N(this,'_pendingUnitIds',new Set()),N(this,'_syncScheduled',!0x1),N(this,_0xa6f052(0x215),!0x1),this['_instanceService']['getAllUnitsForType'](_0x46296f['UNIVER_DOC'])[_0xa6f052(0x25d)](_0xc9e02e=>this[_0xa6f052(0x239)][_0xa6f052(0x2a9)](_0xc9e02e)),this[_0xa6f052(0x2bf)](this['_model'][_0xa6f052(0x1e4)][_0xa6f052(0x235)](({unitId:_0x430397})=>this[_0xa6f052(0x1e9)](_0x430397))),this[_0xa6f052(0x2bf)](this[_0xa6f052(0x224)][_0xa6f052(0x238)][_0xa6f052(0x235)](({unit:_0x2e8324})=>{const _0x1b9a9f=_0xa6f052;_0x2e8324[_0x1b9a9f(0x22b)]===_0x46296f['UNIVER_DOC']&&this['_queueSync'](_0x2e8324[_0x1b9a9f(0x1e2)]());})),this[_0xa6f052(0x2bf)](this[_0xa6f052(0x224)][_0xa6f052(0x2a4)][_0xa6f052(0x235)](_0x2bfdba=>{const _0x2881af=_0xa6f052;this[_0x2881af(0x239)][_0x2881af(0x202)](_0x2bfdba['getUnitId']());})),this[_0xa6f052(0x2bf)](this[_0xa6f052(0x1fe)][_0xa6f052(0x2d7)](_0x829424=>{const _0x1f93d5=_0xa6f052;if(_0x829424['id']===_0x2acc6a['id']&&wt(_0x829424[_0x1f93d5(0x293)])){let _0x5ad16a=_0x829424[_0x1f93d5(0x293)];_0x5ad16a[_0x1f93d5(0x22d)]||this[_0x1f93d5(0x1e9)](_0x5ad16a['unitId']);}}));}[_0x241cd9(0x26f)](){const _0x135fca=_0x241cd9;this['_isDisposed']=!0x0,super[_0x135fca(0x26f)]();}['_queueSync'](_0x511dd9){const _0x160cbc=_0x241cd9;this[_0x160cbc(0x1f2)][_0x160cbc(0x26d)](_0x511dd9),!this['_syncScheduled']&&(this[_0x160cbc(0x212)]=!0x0,queueMicrotask(()=>{const _0x46582a=_0x160cbc;if(this[_0x46582a(0x212)]=!0x1,this[_0x46582a(0x215)])return;let _0x61e701=Array[_0x46582a(0x201)](this[_0x46582a(0x1f2)]);this['_pendingUnitIds'][_0x46582a(0x299)](),_0x61e701[_0x46582a(0x25d)](_0x64cca8=>this[_0x46582a(0x1e9)](_0x64cca8));}));}[_0x241cd9(0x1e9)](_0xcb5ebb){const _0x1f8312=_0x241cd9;let _0x17fde4=this[_0x1f8312(0x224)][_0x1f8312(0x23b)](_0xcb5ebb,_0x46296f[_0x1f8312(0x20c)]);_0x17fde4&&this[_0x1f8312(0x239)][_0x1f8312(0x2a9)](_0x17fde4);}};Y=I([F(0x0,_0x6870f1),F(0x1,_0x583930),F(0x2,_0x199f03(P)),F(0x3,_0x199f03(L))],Y);function wt(_0x387e8b){const _0x4e505a=_0x241cd9;return typeof _0x387e8b=='object'&&!!_0x387e8b&&_0x4e505a(0x2bd)in _0x387e8b&&typeof _0x387e8b['unitId']=='string'&&(!(_0x4e505a(0x22d)in _0x387e8b)||_0x387e8b['segmentId']===void 0x0||typeof _0x387e8b['segmentId']==_0x4e505a(0x203));}let X=class extends _0x2c5b49{constructor(_0x48706f,_0x37c8ca){const _0x103da4=_0x241cd9;super(),this['_resourceManagerService']=_0x48706f,this[_0x103da4(0x1dd)]=_0x37c8ca,this['disposeWithMe'](this[_0x103da4(0x2d4)][_0x103da4(0x2a8)]({'pluginName':y,'businesses':[_0x46296f[_0x103da4(0x20c)]],'toJson':_0x3dce18=>JSON[_0x103da4(0x1f1)](this[_0x103da4(0x1dd)]['serialize'](_0x3dce18)),'parseJson':_0x3dc502=>JSON[_0x103da4(0x2b8)](_0x3dc502),'onLoad':(_0xa1392,_0x3e6945)=>{const _0x326ed4=_0x103da4;this[_0x326ed4(0x1dd)][_0x326ed4(0x2a2)](_0xa1392,_0x3e6945);},'onUnLoad':_0x1a29b1=>this[_0x103da4(0x1dd)][_0x103da4(0x1f0)](_0x1a29b1)}));}};X=I([F(0x0,_0x1802be),F(0x1,_0x199f03(P))],X);var Tt='@univerjs-pro/docs-formula',Et=_0x241cd9(0x23c);const Dt={};let Z=class extends _0x2c5b49{constructor(_0x4877c0,_0x377999,_0x4c260e){const _0x3eed28=_0x241cd9;super(),this[_0x3eed28(0x25f)]=_0x4877c0,this[_0x3eed28(0x295)]=_0x377999,this['disposeWithMe'](_0x4c260e[_0x3eed28(0x2df)]({'resolve':(_0xbb416c,_0x5e9042)=>{const _0x2fd9d7=_0x3eed28;var _0x229b6e;return((_0x229b6e=_0x5e9042[_0x2fd9d7(0x2a3)])==null?void 0x0:_0x229b6e[_0x2fd9d7(0x1fd)](w)['map'](_0x3930e7=>({'startOffset':_0x3930e7[_0x2fd9d7(0x27a)],'endOffset':_0x3930e7[_0x2fd9d7(0x21a)]+0x1,'text':this[_0x2fd9d7(0x257)](_0xbb416c,_0x3930e7[_0x2fd9d7(0x2ba)])})))??[];}})),this[_0x3eed28(0x2bf)](this[_0x3eed28(0x295)][_0x3eed28(0x1f3)][_0x3eed28(0x235)](({unitId:_0x537b6})=>{const _0x1de0b5=_0x3eed28;_0x4c260e[_0x1de0b5(0x1de)](_0x537b6);}));}[_0x241cd9(0x257)](_0x30c6a8,_0x1b4a63){const _0x1e3bd9=_0x241cd9;var _0xae0104;return((_0xae0104=this[_0x1e3bd9(0x295)][_0x1e3bd9(0x27c)]({'unitId':_0x30c6a8,'rangeId':_0x1b4a63}))==null?void 0x0:_0xae0104[_0x1e3bd9(0x2a0)])??'';}[_0x241cd9(0x209)](_0x4c8f44,_0xd026be,_0x63d114){const _0x34b390=_0x241cd9;var _0x3bf673;let _0x4ed9a0=this[_0x34b390(0x25f)][_0x34b390(0x23b)](_0x4c8f44,_0x46296f['UNIVER_DOC']),_0x18c672=_0x4ed9a0==null?void 0x0:_0x4ed9a0['getBody']();if(!_0x18c672)return'';let _0xe23689=_0x18c672[_0x34b390(0x236)][_0x34b390(0x294)](_0xd026be,_0x63d114),_0x4e3b32=((_0x3bf673=_0x18c672[_0x34b390(0x2a3)])==null?void 0x0:_0x3bf673[_0x34b390(0x1fd)](_0x266fcd=>w(_0x266fcd)&&_0x266fcd['startIndex']>=_0xd026be&&_0x266fcd[_0x34b390(0x21a)]<_0x63d114)['sort']((_0x223500,_0x3232df)=>_0x3232df[_0x34b390(0x27a)]-_0x223500[_0x34b390(0x27a)]))??[];for(let _0x5657c9 of _0x4e3b32){let _0x5b4372=_0x5657c9[_0x34b390(0x27a)]-_0xd026be,_0x760427=_0x5657c9['endIndex']-_0xd026be+0x1;_0xe23689=''+_0xe23689[_0x34b390(0x294)](0x0,_0x5b4372)+this[_0x34b390(0x257)](_0x4c8f44,_0x5657c9['rangeId'])+_0xe23689[_0x34b390(0x294)](_0x760427);}return _0xe23689;}[_0x241cd9(0x2c4)](_0x20af26){return Ot(_0x20af26);}[_0x241cd9(0x2b7)](_0x48dc1a,_0x186c3f,_0x943d95={}){const _0x387458=_0x241cd9;var _0x162f62;return Ve({'id':_0x48dc1a,'body':_0x186c3f,'documentStyle':{}},(((_0x162f62=_0x186c3f['customRanges'])==null?void 0x0:_0x162f62['filter'](w))??[])[_0x387458(0x289)](_0x1cdfd7=>({'rangeId':_0x1cdfd7[_0x387458(0x2ba)],'text':_0x943d95[_0x1cdfd7[_0x387458(0x2ba)]]??this['resolveFormula'](_0x48dc1a,_0x1cdfd7['rangeId'])})))['body']??{'dataStream':''};}};Z=I([F(0x0,_0x6870f1),F(0x1,_0x199f03(L)),F(0x2,_0x199f03(_0x4f4dae))],Z);function Ot(_0x3e8fef){const _0x126a2f=_0x241cd9;var _0x4e1656,_0x32ae5c;let _0x341213=kt(_0x3e8fef),_0x2feacc=Ve(_0x3e8fef,(((_0x4e1656=_0x3e8fef[_0x126a2f(0x27f)])==null||(_0x4e1656=_0x4e1656['customRanges'])==null?void 0x0:_0x4e1656[_0x126a2f(0x1fd)](w))??[])[_0x126a2f(0x289)](_0x377e45=>({'rangeId':_0x377e45[_0x126a2f(0x2ba)],'text':At(_0x341213==null?void 0x0:_0x341213['formulas'][_0x377e45[_0x126a2f(0x2ba)]])})));return _0x2feacc['resources']=(_0x32ae5c=_0x2feacc['resources'])==null?void 0x0:_0x32ae5c[_0x126a2f(0x1fd)](_0x5b7da4=>_0x5b7da4[_0x126a2f(0x245)]!==y),_0x2feacc;}function kt(_0x21943e){const _0x26b2b7=_0x241cd9;var _0x3a8c8a;let _0x5da591=(_0x3a8c8a=_0x21943e['resources'])==null||(_0x3a8c8a=_0x3a8c8a[_0x26b2b7(0x2b5)](_0xfe7a33=>_0xfe7a33[_0x26b2b7(0x245)]===_0x26b2b7(0x24a)))==null?void 0x0:_0x3a8c8a[_0x26b2b7(0x273)];if(_0x5da591)try{let _0x44e335=JSON[_0x26b2b7(0x2b8)](_0x5da591);return x(_0x44e335)?_0x44e335:void 0x0;}catch{return;}}function At(_0x377385){const _0x1a2c93=_0x241cd9;return _0x377385?_0x3cb7d0({'lastValue':_0x377385[_0x1a2c93(0x266)],'numberFormat':_0x377385[_0x1a2c93(0x226)]})['text']:'';}let Q=class extends _0x2c5b49{constructor(_0x192c30,_0x2c9f19,_0x512781){const _0xcc0fc4=_0x241cd9;super(),this[_0xcc0fc4(0x295)]=_0x192c30,this[_0xcc0fc4(0x265)]=_0x2c9f19,this[_0xcc0fc4(0x2bf)](_0x512781[_0xcc0fc4(0x2e1)](this));}[_0x241cd9(0x29f)](_0x45b994){const _0x3dee7d=_0x241cd9;let _0x4ffcc9=new Map();for(let _0x3f6ec3 of this['_formulaService'][_0x3dee7d(0x29b)]()){var _0x39c37f;if(!this[_0x3dee7d(0x265)][_0x3dee7d(0x233)](_0x3f6ec3[_0x3dee7d(0x24d)][_0x3dee7d(0x2d8)],_0x3f6ec3['liveResult'])[_0x3dee7d(0x272)])continue;let _0x4ea19d=_0x7be344(_0x3f6ec3[_0x3dee7d(0x297)]),_0x53c4fc=_0x4ea19d?_0x241cf2(_0x4ea19d):null;if(!_0x53c4fc||jt(_0x3f6ec3['config'][_0x3dee7d(0x266)],_0x53c4fc))continue;let _0xcd800e=_0x4ffcc9['get'](_0x3f6ec3[_0x3dee7d(0x24e)][_0x3dee7d(0x2bd)])??[];_0xcd800e['push']({'rangeId':_0x3f6ec3[_0x3dee7d(0x24e)][_0x3dee7d(0x2ba)],'expectedFormula':_0x3f6ec3[_0x3dee7d(0x24d)]['formula'],'expectedNumberFormat':(_0x39c37f=_0x3f6ec3[_0x3dee7d(0x24d)][_0x3dee7d(0x226)])==null?void 0x0:_0x39c37f[_0x3dee7d(0x2d6)],'expectedReferenceRevision':_0x3f6ec3[_0x3dee7d(0x2d0)],'lastValue':_0x53c4fc}),_0x4ffcc9[_0x3dee7d(0x216)](_0x3f6ec3[_0x3dee7d(0x24e)][_0x3dee7d(0x2bd)],_0xcd800e);}return Array['from'](_0x4ffcc9,([_0x439a5b,_0x3382ee])=>({'id':H['id'],'params':{'unitId':_0x439a5b,'updates':_0x3382ee}}));}};Q=I([F(0x0,_0x199f03(L)),F(0x1,_0x199f03(_0x144415)),F(0x2,_0x199f03(_0xa4a93b))],Q);function jt(_0x4b1c75,_0x72795e){const _0x5edf9b=_0x241cd9;return(_0x4b1c75==null?void 0x0:_0x4b1c75['v'])===_0x72795e['v']&&(_0x4b1c75==null?void 0x0:_0x4b1c75['t'])===_0x72795e['t']&&(_0x4b1c75==null?void 0x0:_0x4b1c75['pattern'])===_0x72795e[_0x5edf9b(0x2d6)];}let $=class extends _0x2b54c9{constructor(_0x59de14=Dt,_0x33f4f8,_0x342bbc,_0x4984d8){const _0x58ddff=_0x241cd9;super(),this[_0x58ddff(0x2db)]=_0x59de14,this['_injector']=_0x33f4f8,this[_0x58ddff(0x1fe)]=_0x342bbc,this[_0x58ddff(0x246)]=_0x4984d8;let {..._0x20770}=_0x312ea2({},Dt,this[_0x58ddff(0x2db)]);this[_0x58ddff(0x246)][_0x58ddff(0x23e)](_0x58ddff(0x1ee),_0x20770);}[_0x241cd9(0x229)](){const _0x2abee0=_0x241cd9;this['_injector']['add']([P]),this[_0x2abee0(0x1f9)][_0x2abee0(0x26d)]([L]),this[_0x2abee0(0x1f9)][_0x2abee0(0x26d)]([X]),this[_0x2abee0(0x1f9)][_0x2abee0(0x26d)]([Y]),this[_0x2abee0(0x1f9)]['add']([Q]),this[_0x2abee0(0x1f9)][_0x2abee0(0x26d)]([Z]),_0x14182c(this[_0x2abee0(0x1f9)],[[P],[X],[Y],[Q],[Z]]),[ot,st,V,H,U,W,G,K,ct,lt][_0x2abee0(0x25d)](_0x4dd0c3=>this[_0x2abee0(0x2bf)](this[_0x2abee0(0x1fe)][_0x2abee0(0x259)](_0x4dd0c3)));}};N($,_0x241cd9(0x28b),y),N($,_0x241cd9(0x2dd),Tt),N($,_0x241cd9(0x29c),Et),N($,_0x241cd9(0x22b),_0x46296f[_0x241cd9(0x20c)]),$=I([_0x3a925b(_0x14e208,_0x48082c,_0xdd033b),F(0x1,_0x199f03(_0x9a266a)),F(0x2,_0x583930),F(0x3,_0x4d1d27)],$);export{lt as ConvertDocFormulaToTextCommand,Me as DOC_FORMULA_CUSTOM_RANGE_KIND,Ne as DOC_FORMULA_OBJECT_REPLACEMENT,y as DOC_FORMULA_PLUGIN,je as DOC_FORMULA_SCHEMA_VERSION,Z as DocFormulaDisplayTextService,Y as DocFormulaLifecycleController,P as DocFormulaModel,X as DocFormulaResourceController,it as DocFormulaResultStatus,L as DocFormulaService,U as InsertDocFormulaCommand,C as InvalidDocFormulaInsertRangeError,K as RemoveDocFormulaCommand,st as RemoveDocFormulaMutation,ct as ReplaceDocFormulaWithTextCommand,H as SetDocFormulaLastValuesMutation,ot as SetDocFormulaMutation,G as SetDocFormulaNumberFormatCommand,V as SetDocFormulaResourceMutation,$ as UniverDocsFormulaPlugin,W as UpdateDocFormulaCommand,He as assertSafeDocFormulaInsertRange,Re as buildInsertDocFormulaActions,Be as buildRemoveDocFormulaActions,ze as buildUpdateDocFormulaActions,b as createEmptyDocFormulaResource,Ot as degradeDocFormulaDocumentData,T as findDocFormulaRange,Pe as isDocFormulaConfig,w as isDocFormulaRange,x as isDocFormulaResource,Fe as isFormulaLastValue};
|
|
1
|
+
const _0x3074bd=_0x1bc5;(function(_0x1bd644,_0x411508){const _0x49da13=_0x1bc5,_0x7c39f0=_0x1bd644();while(!![]){try{const _0x1d90b4=parseInt(_0x49da13(0xe9))/0x1+parseInt(_0x49da13(0x135))/0x2*(-parseInt(_0x49da13(0x119))/0x3)+parseInt(_0x49da13(0x174))/0x4+parseInt(_0x49da13(0x1c0))/0x5*(parseInt(_0x49da13(0x176))/0x6)+-parseInt(_0x49da13(0x197))/0x7+-parseInt(_0x49da13(0xf3))/0x8*(-parseInt(_0x49da13(0x167))/0x9)+parseInt(_0x49da13(0x110))/0xa*(-parseInt(_0x49da13(0x1d4))/0xb);if(_0x1d90b4===_0x411508)break;else _0x7c39f0['push'](_0x7c39f0['shift']());}catch(_0x949826){_0x7c39f0['push'](_0x7c39f0['shift']());}}}(_0x200b,0xca008));import{FormulaCacheEligibilityService as _0x142c68,FormulaLastValuePersistenceService as _0xdccf24,HostExternalReferenceModel as _0x51c26f,UniverProFormulaEnginePlugin as _0x1a7798,buildUpsertHostExternalReferenceMutations as _0x4bd97f,collectFormulaExternalReferenceQualifiers as _0x239d3f,getScalarFormulaResultCell as _0x329bd2,resolveFormulaResultPresentation as _0x43dcf8,resolveHostFormulaExternalReferences as _0x26b6bd,toFormulaLastValue as _0x2dfe02}from'@univerjs-pro/engine-formula';import{CellValueType as _0x235b15,CommandType as _0x49f619,CustomRangeType as _0x542b54,DataStreamTreeTokenType as _0x484270,DependentOn as _0x21eda0,Disposable as _0x5dc02b,ICommandService as _0x78f14b,IConfigService as _0x111e6a,IResourceManagerService as _0x3f723c,IUndoRedoService as _0x3e3a50,IUniverInstanceService as _0x5a1b75,Inject as _0x34e393,Injector as _0x37a854,JSONX as _0x4ed544,Plugin as _0x497bd3,TextX as _0x1b1246,Tools as _0x942fba,UniverInstanceType as _0x56d504,generateRandomId as _0x260a9d,getBodySliceForTextXAction as _0x27439c,getCustomRangeInterval as _0x528474,getParagraphContentStartOffset as _0x403d2a,getRichTextEditPath as _0x1d4096,merge as _0x5be025,shiftExclusiveRangeOnDelete as _0x2ee3d6,shiftExclusiveRangeOnInsert as _0x37b9bc,shiftInclusiveRangeOnDelete as _0x2bd672,shiftInclusiveRangeOnInsert as _0x528ea5,touchDependencies as _0x2d40f1}from'@univerjs/core';import{DOC_SELECTION_OPTION_PRESERVE_CARET as _0x169a9f,DocSelectionManagerService as _0x2711a1,DocTextResolverService as _0x572c95,RichTextEditingMutation as _0x40b755,UniverDocsPlugin as _0x515868}from'@univerjs/docs';import{FormulaResultStatus as _0x11c47e,LexerTreeBuilder as _0x3874f6,OtherFormulaBizType as _0x350834,RegisterOtherFormulaService as _0x3391af}from'@univerjs/engine-formula';import{Subject as _0x581576}from'rxjs';import{UniverLicensePlugin as _0x4342e7}from'@univerjs-pro/license';const y='DOC_FORMULA_PLUGIN',je=0x1,Me='univer-docs-formula',Ne='';function b(){return{'schemaVersion':0x1,'formulas':{}};}function x(_0x37ae32){const _0x4f5034=_0x1bc5;return!_0x37ae32||typeof _0x37ae32!=_0x4f5034(0x195)||!S(_0x37ae32,[_0x4f5034(0x102),_0x4f5034(0x151)])||!(_0x4f5034(0x102)in _0x37ae32)||_0x37ae32[_0x4f5034(0x102)]!==0x1||!(_0x4f5034(0x151)in _0x37ae32)||!_0x37ae32[_0x4f5034(0x151)]||typeof _0x37ae32[_0x4f5034(0x151)]!=_0x4f5034(0x195)||Array[_0x4f5034(0x11d)](_0x37ae32[_0x4f5034(0x151)])?!0x1:Object[_0x4f5034(0x1e1)](_0x37ae32[_0x4f5034(0x151)])['every'](([_0x1beef8,_0x3d04df])=>_0x1beef8[_0x4f5034(0x177)]>0x0&&Pe(_0x3d04df));}function Pe(_0x4c0c1e){const _0x2859c7=_0x1bc5;return!_0x4c0c1e||typeof _0x4c0c1e!=_0x2859c7(0x195)||!S(_0x4c0c1e,[_0x2859c7(0x1ce),_0x2859c7(0x1ba),'lastValue'])||!(_0x2859c7(0x1ce)in _0x4c0c1e)||typeof _0x4c0c1e[_0x2859c7(0x1ce)]!=_0x2859c7(0x165)||!_0x4c0c1e[_0x2859c7(0x1ce)]['trim']()||_0x2859c7(0x1ba)in _0x4c0c1e&&_0x4c0c1e[_0x2859c7(0x1ba)]!=null&&(typeof _0x4c0c1e[_0x2859c7(0x1ba)]!='object'||!S(_0x4c0c1e[_0x2859c7(0x1ba)],[_0x2859c7(0x128)])||!(_0x2859c7(0x128)in _0x4c0c1e[_0x2859c7(0x1ba)])||typeof _0x4c0c1e[_0x2859c7(0x1ba)][_0x2859c7(0x128)]!=_0x2859c7(0x165))?!0x1:!(_0x2859c7(0x13e)in _0x4c0c1e)||_0x4c0c1e[_0x2859c7(0x13e)]==null||Fe(_0x4c0c1e[_0x2859c7(0x13e)]);}function Fe(_0xa25a08){const _0x5d2dbb=_0x1bc5;return!_0xa25a08||typeof _0xa25a08!=_0x5d2dbb(0x195)||!S(_0xa25a08,['v','t',_0x5d2dbb(0x128)])||!('v'in _0xa25a08)||_0xa25a08['v']!==null&&typeof _0xa25a08['v']!=_0x5d2dbb(0x165)&&typeof _0xa25a08['v']!=_0x5d2dbb(0x193)&&typeof _0xa25a08['v']!=_0x5d2dbb(0x1bf)||'t'in _0xa25a08&&_0xa25a08['t']!=null&&!Ie(_0xa25a08['t'])?!0x1:!(_0x5d2dbb(0x128)in _0xa25a08)||_0xa25a08[_0x5d2dbb(0x128)]==null||typeof _0xa25a08[_0x5d2dbb(0x128)]=='string';}function S(_0x109870,_0x31cfb4){const _0x59f0f4=_0x1bc5;let _0x36eee1=new Set(_0x31cfb4);return Object[_0x59f0f4(0xf6)](_0x109870)['every'](_0x2b1b68=>_0x36eee1['has'](_0x2b1b68));}function Ie(_0x33c2e1){const _0x3573b3=_0x1bc5;return typeof _0x33c2e1=='number'&&Object[_0x3573b3(0x1d3)](_0x235b15)[_0x3573b3(0x1aa)](_0x33c2e1);}const Le=new Set([_0x484270[_0x3074bd(0x16c)],_0x484270[_0x3074bd(0xee)],_0x484270[_0x3074bd(0x13b)],_0x484270['TABLE_CELL_START'],_0x484270[_0x3074bd(0x186)],_0x484270[_0x3074bd(0x1d7)],_0x484270[_0x3074bd(0x1c2)],_0x484270[_0x3074bd(0x182)],_0x484270[_0x3074bd(0x14e)],_0x484270[_0x3074bd(0x188)],_0x484270[_0x3074bd(0xfa)],_0x484270['BLOCK_START'],_0x484270[_0x3074bd(0x1a5)],_0x484270[_0x3074bd(0x146)]]);var C=class extends Error{constructor(){const _0x132166=_0x3074bd;super(_0x132166(0x1a4));}};function Re(_0x1a3405){const _0x5f1a4d=_0x3074bd;var _0x1af2ac,_0x34409d;let _0x515d6e=_0x942fba['deepClone'](_0x1a3405['documentData']),_0xa2599c=j(_0x515d6e),{startOffset:_0x1df447,endOffset:_0x56e4bd}=We(_0xa2599c,_0x1a3405['startOffset'],_0x1a3405[_0x5f1a4d(0x172)]);He(_0xa2599c,_0x1df447,_0x56e4bd);let _0x3c937f=((_0x1af2ac=_0xa2599c[_0x5f1a4d(0x122)])==null?void 0x0:_0x1af2ac['filter'](_0x48a413=>{const _0x3c1478=_0x5f1a4d;if(!w(_0x48a413))return!0x1;let _0x4c11b7=_0x528474(_0x48a413);return _0x4c11b7[_0x3c1478(0x172)]>_0x1df447&&_0x4c11b7['startOffset']<_0x56e4bd;})[_0x5f1a4d(0xfd)](_0x3130df=>_0x3130df['rangeId']))??[];qe(_0xa2599c,_0x1df447,_0x56e4bd,''),_0xa2599c['customRanges']=[...((_0x34409d=_0xa2599c[_0x5f1a4d(0x122)])==null?void 0x0:_0x34409d[_0x5f1a4d(0x180)](_0x49f6a6=>!_0x3c937f[_0x5f1a4d(0x1aa)](_0x49f6a6[_0x5f1a4d(0x1b3)])&&_0x49f6a6['rangeId']!==_0x1a3405[_0x5f1a4d(0x1b3)]))??[],Ue(_0x1a3405['rangeId'],_0x1df447)][_0x5f1a4d(0x133)]((_0x4085d3,_0x2d7c2b)=>_0x4085d3['startIndex']-_0x2d7c2b[_0x5f1a4d(0x1ab)]);let _0xcf935b=E(_0x1a3405[_0x5f1a4d(0x19d)]);return _0x3c937f['forEach'](_0x56e737=>{delete _0xcf935b['formulas'][_0x56e737];}),_0xcf935b[_0x5f1a4d(0x151)][_0x1a3405['rangeId']]=_0x942fba['deepClone'](_0x1a3405[_0x5f1a4d(0x1b6)]),{'nextDocumentData':_0x515d6e,'nextResource':_0xcf935b,'cursorOffset':_0x1df447+0x1};}function ze(_0x20a608){const _0x40ce91=_0x3074bd;var _0x1de896,_0x2120f5;let _0x408198=_0x942fba[_0x40ce91(0x189)](_0x20a608[_0x40ce91(0x194)]),_0xd3695e=(_0x1de896=j(_0x408198)[_0x40ce91(0x122)])==null?void 0x0:_0x1de896[_0x40ce91(0x129)](_0x630d20=>_0x630d20['rangeId']===_0x20a608[_0x40ce91(0x1b3)]&&w(_0x630d20));if(!_0xd3695e||!((_0x2120f5=_0x20a608['resource'])!=null&&_0x2120f5['formulas'][_0x20a608[_0x40ce91(0x1b3)]]))return null;let _0x4ad25f=E(_0x20a608['resource']);return _0x4ad25f[_0x40ce91(0x151)][_0x20a608['rangeId']]=_0x942fba['deepClone'](_0x20a608[_0x40ce91(0x1b6)]),{'nextDocumentData':_0x408198,'nextResource':_0x4ad25f,'cursorOffset':_0xd3695e[_0x40ce91(0xf2)]+0x1};}function Be(_0xd12696){const _0x9d120=_0x3074bd;let _0x495b6d=_0x942fba[_0x9d120(0x189)](_0xd12696[_0x9d120(0x194)]),_0x493d3f=Je(_0x495b6d,_0xd12696[_0x9d120(0x1b3)],_0xd12696[_0x9d120(0x18c)]??'');if(_0x493d3f==null)return null;let _0x140ff3=E(_0xd12696[_0x9d120(0x19d)]);return delete _0x140ff3[_0x9d120(0x151)][_0xd12696[_0x9d120(0x1b3)]],{'nextDocumentData':_0x495b6d,'nextResource':_0x140ff3,'cursorOffset':_0x493d3f};}function Ve(_0x447fbf,_0x174fdc){const _0x3c6ab5=_0x3074bd;var _0x3333e9;let _0x4bc832=_0x942fba[_0x3c6ab5(0x189)](_0x447fbf),_0x46d734=_0x4bc832[_0x3c6ab5(0x11f)];if(!_0x46d734)return _0x4bc832;let _0x56d961=new Map(_0x174fdc[_0x3c6ab5(0xfd)](_0x23285d=>[_0x23285d[_0x3c6ab5(0x1b3)],_0x23285d['text']])),_0x4550ae=((_0x3333e9=_0x46d734[_0x3c6ab5(0x122)])==null?void 0x0:_0x3333e9[_0x3c6ab5(0x180)](_0x5c6625=>w(_0x5c6625)&&_0x56d961['has'](_0x5c6625[_0x3c6ab5(0x1b3)]))['sort']((_0xd95b96,_0x43270e)=>_0x43270e['startIndex']-_0xd95b96[_0x3c6ab5(0x1ab)]))??[];for(let _0x461dd8 of _0x4550ae)Je(_0x4bc832,_0x461dd8[_0x3c6ab5(0x1b3)],_0x56d961[_0x3c6ab5(0x104)](_0x461dd8[_0x3c6ab5(0x1b3)])??'');return _0x4bc832;}function w(_0x4f2681){const _0x29b6b1=_0x3074bd;var _0x3c314c;return(_0x4f2681==null?void 0x0:_0x4f2681[_0x29b6b1(0x1d6)])===_0x542b54[_0x29b6b1(0x154)]&&_0x4f2681[_0x29b6b1(0x155)]===!0x0&&((_0x3c314c=_0x4f2681[_0x29b6b1(0x10c)])==null?void 0x0:_0x3c314c[_0x29b6b1(0x11a)])===_0x29b6b1(0x1cc);}function T(_0x1e9d0b,_0x4a62b1){const _0x4f969e=_0x3074bd;var _0x47f5ad;return _0x1e9d0b==null||(_0x47f5ad=_0x1e9d0b[_0x4f969e(0x122)])==null?void 0x0:_0x47f5ad[_0x4f969e(0x129)](_0x2ef00c=>_0x2ef00c[_0x4f969e(0x1b3)]===_0x4a62b1&&w(_0x2ef00c));}function He(_0x3977b5,_0xe2e628,_0x286e40){const _0x50373d=_0x3074bd;if(_0xe2e628===_0x286e40){if(Le[_0x50373d(0x1b9)](_0x3977b5[_0x50373d(0x1d5)][_0xe2e628]))throw new C();return;}for(let _0x2d4c98=_0xe2e628;_0x2d4c98<_0x286e40;_0x2d4c98++)if(_0x3977b5['dataStream'][_0x2d4c98]===_0x484270[_0x50373d(0x138)]||Le[_0x50373d(0x1b9)](_0x3977b5[_0x50373d(0x1d5)][_0x2d4c98]))throw new C();}function Ue(_0x19b31b,_0x3ec4be){const _0x24d91d=_0x3074bd;return{'startIndex':_0x3ec4be,'endIndex':_0x3ec4be,'rangeId':_0x19b31b,'rangeType':_0x542b54[_0x24d91d(0x154)],'wholeEntity':!0x0,'properties':{'kind':Me}};}function E(_0x44c32b){const _0x1a8544=_0x3074bd;return _0x44c32b?_0x942fba[_0x1a8544(0x189)](_0x44c32b):b();}function We(_0xf1308f,_0x15b26f,_0x5d9e78){const _0x2b25f5=_0x3074bd;let _0x1ed63e=Ke(_0xf1308f),_0x45089b=_0x15b26f??_0x1ed63e,_0x4af214=_0x5d9e78??_0x45089b;return{'startOffset':Ge(Math[_0x2b25f5(0x15f)](_0x45089b,_0x4af214),_0x1ed63e),'endOffset':Ge(Math['max'](_0x45089b,_0x4af214),_0x1ed63e)};}function Ge(_0x4cea99,_0x564828){const _0x1f0b71=_0x3074bd;return Math[_0x1f0b71(0x1cb)](0x0,Math[_0x1f0b71(0x15f)](_0x4cea99,_0x564828));}function Ke(_0x558c1e){const _0x53b182=_0x3074bd;return _0x558c1e[_0x53b182(0x1d5)][_0x53b182(0x199)](''+_0x484270[_0x53b182(0x138)]+_0x484270[_0x53b182(0x16c)])?Math['max'](0x0,_0x558c1e[_0x53b182(0x1d5)][_0x53b182(0x177)]-0x2):_0x558c1e[_0x53b182(0x1d5)][_0x53b182(0x199)](_0x484270[_0x53b182(0x16c)])?Math['max'](0x0,_0x558c1e[_0x53b182(0x1d5)][_0x53b182(0x177)]-0x1):_0x558c1e['dataStream']['length'];}function qe(_0x5b88a8,_0x29a56b,_0x4f912c,_0x2598e0){_0x4f912c>_0x29a56b&&Xe(_0x5b88a8,_0x29a56b,_0x4f912c),Ye(_0x5b88a8,_0x29a56b,_0x2598e0);}function Je(_0x5d71e3,_0x38ae96,_0x279624){const _0x319d25=_0x3074bd;var _0x3338cf,_0x3446f7;let _0x49aac3=j(_0x5d71e3),_0x2a1a75=(_0x3338cf=_0x49aac3['customRanges'])==null?void 0x0:_0x3338cf[_0x319d25(0x129)](_0x37973f=>_0x37973f[_0x319d25(0x1b3)]===_0x38ae96&&w(_0x37973f));if(!_0x2a1a75)return null;let _0x420004=_0x528474(_0x2a1a75);return qe(_0x49aac3,_0x420004[_0x319d25(0x15d)],_0x420004[_0x319d25(0x172)],_0x279624),_0x49aac3[_0x319d25(0x122)]=(_0x3446f7=_0x49aac3['customRanges'])==null?void 0x0:_0x3446f7['filter'](_0x24ed6b=>_0x24ed6b['rangeId']!==_0x38ae96),_0x420004[_0x319d25(0x15d)]+_0x279624['length'];}function Ye(_0x4767dd,_0x26f628,_0x1d2eae){const _0x425f79=_0x3074bd;_0x1d2eae&&(_0x4767dd[_0x425f79(0x1d5)]=''+_0x4767dd[_0x425f79(0x1d5)][_0x425f79(0x178)](0x0,_0x26f628)+_0x1d2eae+_0x4767dd['dataStream'][_0x425f79(0x178)](_0x26f628),Ze(_0x4767dd,_0x26f628,_0x1d2eae[_0x425f79(0x177)]));}function Xe(_0x22cd9f,_0x3c632b,_0x771a80){const _0x210c43=_0x3074bd;let _0x2210e4=_0x771a80-_0x3c632b;_0x22cd9f['dataStream']=''+_0x22cd9f[_0x210c43(0x1d5)]['slice'](0x0,_0x3c632b)+_0x22cd9f[_0x210c43(0x1d5)][_0x210c43(0x178)](_0x771a80),Qe(_0x22cd9f,_0x3c632b,_0x2210e4);}function Ze(_0x56eaee,_0x19b552,_0x37be49){const _0x478eb3=_0x3074bd;_0x56eaee['paragraphs']=D(_0x56eaee[_0x478eb3(0x12b)],_0x19b552,_0x37be49),_0x56eaee['sectionBreaks']=D(_0x56eaee[_0x478eb3(0x1cf)],_0x19b552,_0x37be49),_0x56eaee[_0x478eb3(0x116)]=D(_0x56eaee[_0x478eb3(0x116)],_0x19b552,_0x37be49),_0x56eaee[_0x478eb3(0x1b7)]=$e(_0x56eaee['textRuns'],_0x19b552,_0x37be49),_0x56eaee[_0x478eb3(0xfc)]=et(_0x56eaee[_0x478eb3(0xfc)],_0x19b552,_0x37be49),_0x56eaee['columnGroups']=k(_0x56eaee[_0x478eb3(0xf4)],_0x19b552,_0x37be49),_0x56eaee[_0x478eb3(0x122)]=k(_0x56eaee[_0x478eb3(0x122)],_0x19b552,_0x37be49),_0x56eaee['customDecorations']=k(_0x56eaee['customDecorations'],_0x19b552,_0x37be49),_0x56eaee[_0x478eb3(0xf0)]=k(_0x56eaee[_0x478eb3(0xf0)],_0x19b552,_0x37be49);}function Qe(_0x5b7914,_0x150067,_0x5e1d6d){const _0x3e0b83=_0x3074bd;var _0x37bfff,_0x5ae0e4;_0x5b7914['paragraphs']=O(_0x5b7914[_0x3e0b83(0x12b)],_0x150067,_0x5e1d6d),_0x5b7914[_0x3e0b83(0x1cf)]=O(_0x5b7914[_0x3e0b83(0x1cf)],_0x150067,_0x5e1d6d),_0x5b7914[_0x3e0b83(0x116)]=O(_0x5b7914[_0x3e0b83(0x116)],_0x150067,_0x5e1d6d),_0x5b7914[_0x3e0b83(0x1b7)]=(_0x37bfff=tt((_0x5ae0e4=_0x5b7914[_0x3e0b83(0x1b7)])==null?void 0x0:_0x5ae0e4[_0x3e0b83(0xfd)](_0x436148=>({..._0x436148,'startIndex':_0x436148['st'],'endIndex':_0x436148['ed']})),_0x150067,_0x5e1d6d))==null?void 0x0:_0x37bfff[_0x3e0b83(0xfd)](_0x5020b4=>{let {startIndex:_0x51daa9,endIndex:_0x48e1af,..._0x56a490}=_0x5020b4;return{..._0x56a490,'st':_0x51daa9,'ed':_0x48e1af};}),_0x5b7914[_0x3e0b83(0xfc)]=tt(_0x5b7914[_0x3e0b83(0xfc)],_0x150067,_0x5e1d6d),_0x5b7914[_0x3e0b83(0xf4)]=A(_0x5b7914['columnGroups'],_0x150067,_0x5e1d6d),_0x5b7914[_0x3e0b83(0x122)]=A(_0x5b7914[_0x3e0b83(0x122)],_0x150067,_0x5e1d6d),_0x5b7914[_0x3e0b83(0x13a)]=A(_0x5b7914['customDecorations'],_0x150067,_0x5e1d6d),_0x5b7914['blockRanges']=A(_0x5b7914[_0x3e0b83(0xf0)],_0x150067,_0x5e1d6d);}function D(_0x5a728f,_0x11b6ec,_0x1f3109){const _0x3b8c6f=_0x3074bd;return _0x5a728f==null?void 0x0:_0x5a728f['map'](_0x3a7b18=>_0x3a7b18[_0x3b8c6f(0x1ab)]>=_0x11b6ec?{..._0x3a7b18,'startIndex':_0x3a7b18[_0x3b8c6f(0x1ab)]+_0x1f3109}:_0x3a7b18);}function O(_0x30470f,_0x444252,_0xcc48ae){const _0x465ed4=_0x3074bd;let _0x5cc75d=_0x444252+_0xcc48ae;return _0x30470f==null?void 0x0:_0x30470f[_0x465ed4(0xfd)](_0x4a1604=>_0x4a1604[_0x465ed4(0x1ab)]>=_0x444252&&_0x4a1604[_0x465ed4(0x1ab)]<_0x5cc75d?null:_0x4a1604[_0x465ed4(0x1ab)]>=_0x5cc75d?{..._0x4a1604,'startIndex':_0x4a1604['startIndex']-_0xcc48ae}:_0x4a1604)[_0x465ed4(0x180)](_0x3e22ad=>_0x3e22ad!=null);}function _0x200b(){const _0x5c633b=['_deleteRegistration','schemaVersion','registerProvider','get','insert','cell','call','docs-formula.mutation.set-resource','toPrimitive','getLoadError','presentationChanged$','properties','_change$','ERROR','getResult','170cEtTSh','docs-formula.mutation.set-last-values','_setPresentation','getUnitId','paragraphId','_syncScheduled','customBlocks','params','registerFormulaWithRange','705918QaVGnS','kind','resourceUndo','function','isArray','resolveFormula','body','complete','clear','customRanges','undoMutation','serialize','_injector','identity','_hostExternalReferenceModel','pattern','find','range','paragraphs','expectedNumberFormat','subscribe','eligible','externalMutations','default','docs-formula.command.convert-to-text','setFormula','sort','selection','8aPJrXC','@univerjs-pro/docs-formula','_updateFormulaResult','PARAGRAPH','accessor','customDecorations','TABLE_ROW_START','syncUnit','_instanceService','lastValue','from','disabled','pluginName','sequenceNodesBuilder','presentation','defineProperty','dispose','CUSTOM_BLOCK','externalReferences','_resourceManagerService','getUnit','unregister','getCurrentUnitOfType','onStarting','previousDocumentData','COLUMN_START','UNIVER_DOC','getInstance','formulas','change$','type','CUSTOM','wholeEntity','source','_pendingUnitIds','COMMAND','formulaResult$','trigger','deleteFormula','assign','startOffset','expectedReferenceRevision','min','DOC_FORMULA_PLUGIN','version','assess','resourceRedo','setFormulas','string','degradeBody','156969lACQYZ','retain','color','SUCCESS','symbol','SECTION_BREAK','_registrationService','_loadErrors','_commandService','references','setResource','endOffset','getFormulaValueSync','4683992DovckP','_rawResources','9185322JuawfS','length','slice','_isDisposed','forEach','some','_model','docs-formula.command.insert','parse','documentRedo','filter','_syncUnit','COLUMN_GROUP_START','add','registerPluginResource','getResource','TABLE_CELL_END','set','COLUMN_END','deepClone','segmentId','empty','text','isInteger','error','_docFormulaModel','_queueSync','Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.','_service','number','documentData','object','asObservable','2268763OxdpKs','_univerInstanceService','endsWith','position','unregisterUnit','getRevision','resource','invalid-resource','removeFormula','next','unitId','docs-formula.mutation.remove-formula','docs-formula.command.set-number-format','Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries','BLOCK_END','MUTATION','resources','formulaId','constructor','includes','startIndex','packageName','syncExecuteCommand','deleteLength','model','data','delete','trim','rangeId','stringify','name','config','textRuns','getFormula','has','numberFormat','target','getSnapshot','_presentationChanged$','prototype','boolean','5TwyUYd','redoMutation','TABLE_END','_registrations','stale','degradeDocumentData','_formulaKeys','_resources','getRegisteredFormulas','removeUnit','resolved','max','univer-docs-formula','unsupported-version','formula','sectionBreaks','nextDocumentData','1.0.4','collectMutations','values','1537261HzUEQw','dataStream','rangeType','TABLE_ROW_END','liveResult','nextResource','onCommandExecuted','disposeWithMe','unitAdded$','getTextRanges','replaceDocRanges','getFormulas','_configService','entries','_config','getOwnPropertyDescriptor','notifyTextChanged','598068okvLCx','referenceRevision','cursorOffset','fromEntries','load','TABLE_START','_preserveInvalid','blockRanges','document','endIndex','536xDvacr','columnGroups','decorate','keys','updates','success','insertLength','COLUMN_GROUP_END','register','tables','map','status','docs-formula.command.update','_formulaService'];_0x200b=function(){return _0x5c633b;};return _0x200b();}function $e(_0xbab213,_0x205a72,_0xce6be0){const _0x4c641e=_0x3074bd;return _0xbab213==null?void 0x0:_0xbab213[_0x4c641e(0xfd)](_0x58f37f=>_0x58f37f['st']>=_0x205a72?{..._0x58f37f,'st':_0x58f37f['st']+_0xce6be0,'ed':_0x58f37f['ed']+_0xce6be0}:_0x58f37f['ed']>_0x205a72?{..._0x58f37f,'ed':_0x58f37f['ed']+_0xce6be0}:_0x58f37f);}function k(_0xb56eae,_0x59869e,_0x156800){const _0x317341=_0x3074bd;return _0xb56eae==null?void 0x0:_0xb56eae[_0x317341(0xfd)](_0x43817d=>_0x528ea5(_0x43817d,_0x59869e,_0x156800));}function et(_0x3355b8,_0x5603ab,_0x7676ac){const _0x4cac9f=_0x3074bd;return _0x3355b8==null?void 0x0:_0x3355b8[_0x4cac9f(0xfd)](_0x1ad8e1=>_0x37b9bc(_0x1ad8e1,_0x5603ab,_0x7676ac));}function A(_0x508d46,_0x467425,_0x4e3ce3){const _0x51b844=_0x3074bd;return _0x508d46==null?void 0x0:_0x508d46['map'](_0x361ff5=>_0x2bd672(_0x361ff5,_0x467425,_0x4e3ce3))[_0x51b844(0x180)](_0x23ee1b=>_0x23ee1b!=null);}function tt(_0x5a6ecb,_0x142c79,_0x5b48ea){const _0x13b96b=_0x3074bd;return _0x5a6ecb==null?void 0x0:_0x5a6ecb[_0x13b96b(0xfd)](_0x152f19=>_0x2ee3d6(_0x152f19,_0x142c79,_0x5b48ea))[_0x13b96b(0x180)](_0x110575=>_0x110575!=null);}function _0x1bc5(_0x3613e1,_0x5cdc8d){_0x3613e1=_0x3613e1-0xe7;const _0x200b67=_0x200b();let _0x1bc588=_0x200b67[_0x3613e1];return _0x1bc588;}function j(_0x49a883){const _0x268836=_0x3074bd;if(!_0x49a883[_0x268836(0x11f)])throw Error(_0x268836(0x191));return _0x49a883[_0x268836(0x11f)];}function M(_0x523ce2){'@babel/helpers - typeof';const _0x1d5593=_0x3074bd;return M=typeof Symbol==_0x1d5593(0x11c)&&typeof Symbol['iterator']=='symbol'?function(_0x134558){return typeof _0x134558;}:function(_0x232539){const _0x2db687=_0x1d5593;return _0x232539&&typeof Symbol==_0x2db687(0x11c)&&_0x232539[_0x2db687(0x1a9)]===Symbol&&_0x232539!==Symbol[_0x2db687(0x1be)]?_0x2db687(0x16b):typeof _0x232539;},M(_0x523ce2);}function nt(_0x5c0dc4,_0x2fbcd1){const _0x44c758=_0x3074bd;if(M(_0x5c0dc4)!='object'||!_0x5c0dc4)return _0x5c0dc4;var _0x4ba59f=_0x5c0dc4[Symbol[_0x44c758(0x109)]];if(_0x4ba59f!==void 0x0){var _0x3dd079=_0x4ba59f[_0x44c758(0x107)](_0x5c0dc4,_0x2fbcd1||_0x44c758(0x130));if(M(_0x3dd079)!=_0x44c758(0x195))return _0x3dd079;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x2fbcd1==='string'?String:Number)(_0x5c0dc4);}function rt(_0x305c5d){const _0x5b8ffa=_0x3074bd;var _0x209066=nt(_0x305c5d,_0x5b8ffa(0x165));return M(_0x209066)==_0x5b8ffa(0x16b)?_0x209066:_0x209066+'';}function N(_0x85a486,_0x3ebbc8,_0x5b83fa){const _0x36c8b1=_0x3074bd;return(_0x3ebbc8=rt(_0x3ebbc8))in _0x85a486?Object[_0x36c8b1(0x144)](_0x85a486,_0x3ebbc8,{'value':_0x5b83fa,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x85a486[_0x3ebbc8]=_0x5b83fa,_0x85a486;}var P=class extends _0x5dc02b{constructor(..._0x1fd400){const _0x11b270=_0x3074bd;super(..._0x1fd400),N(this,'_resources',new Map()),N(this,'_rawResources',new Map()),N(this,'_loadErrors',new Map()),N(this,_0x11b270(0x10d),new _0x581576()),N(this,_0x11b270(0x152),this[_0x11b270(0x10d)][_0x11b270(0x196)]());}[_0x3074bd(0x1b8)](_0x884bf,_0xb898e2){const _0x24b38b=_0x3074bd;var _0x26322f;let _0x212788=(_0x26322f=this['_resources'][_0x24b38b(0x104)](_0x884bf))==null?void 0x0:_0x26322f[_0x24b38b(0x151)][_0xb898e2];return _0x212788?_0x942fba[_0x24b38b(0x189)](_0x212788):void 0x0;}['getFormulas'](_0x507dbb){const _0xdbd199=_0x3074bd;var _0x394d1b;return _0x942fba[_0xdbd199(0x189)](((_0x394d1b=this[_0xdbd199(0x1c7)]['get'](_0x507dbb))==null?void 0x0:_0x394d1b[_0xdbd199(0x151)])??{});}['getResource'](_0x423dc4){const _0x164cc4=_0x3074bd;let _0x496e2c=this[_0x164cc4(0x1c7)][_0x164cc4(0x104)](_0x423dc4);return _0x496e2c?_0x942fba[_0x164cc4(0x189)](_0x496e2c):void 0x0;}[_0x3074bd(0x132)](_0x2ee1b0,_0xa46798,_0x4b49bd){const _0x5a9524=_0x3074bd;return this[_0x5a9524(0x164)](_0x2ee1b0,{[_0xa46798]:_0x4b49bd});}['setResource'](_0x50545f,_0x5e26bc){const _0x4ffe48=_0x3074bd;return this[_0x4ffe48(0x16e)][_0x4ffe48(0x1b9)](_0x50545f)||!x(_0x5e26bc)?!0x1:(this[_0x4ffe48(0x1c7)][_0x4ffe48(0x187)](_0x50545f,_0x942fba['deepClone'](_0x5e26bc)),this[_0x4ffe48(0x10d)][_0x4ffe48(0x1a0)]({'unitId':_0x50545f}),!0x0);}[_0x3074bd(0x164)](_0x30bcac,_0x5515cd){const _0x4c7406=_0x3074bd;if(this[_0x4c7406(0x16e)][_0x4c7406(0x1b9)](_0x30bcac)||!Object[_0x4c7406(0xf6)](_0x5515cd)[_0x4c7406(0x177)]||!x({'schemaVersion':0x1,'formulas':_0x5515cd}))return!0x1;let _0x42dd08=this['_resources'][_0x4c7406(0x104)](_0x30bcac)??b(),_0x2b6d83=_0x942fba[_0x4c7406(0x189)](_0x42dd08);return Object[_0x4c7406(0x15c)](_0x2b6d83[_0x4c7406(0x151)],_0x942fba[_0x4c7406(0x189)](_0x5515cd)),this[_0x4c7406(0x1c7)][_0x4c7406(0x187)](_0x30bcac,_0x2b6d83),this[_0x4c7406(0x10d)][_0x4c7406(0x1a0)]({'unitId':_0x30bcac,'rangeIds':Object[_0x4c7406(0xf6)](_0x5515cd)}),!0x0;}[_0x3074bd(0x19f)](_0x377cae,_0x57fa8a){const _0xfb3ca4=_0x3074bd;if(this['_loadErrors'][_0xfb3ca4(0x1b9)](_0x377cae))return!0x1;let _0x334808=this[_0xfb3ca4(0x1c7)][_0xfb3ca4(0x104)](_0x377cae);if(!(_0x334808!=null&&_0x334808[_0xfb3ca4(0x151)][_0x57fa8a]))return!0x1;let _0xfb75f5=_0x942fba[_0xfb3ca4(0x189)](_0x334808);return delete _0xfb75f5[_0xfb3ca4(0x151)][_0x57fa8a],this[_0xfb3ca4(0x1c7)]['set'](_0x377cae,_0xfb75f5),this[_0xfb3ca4(0x10d)][_0xfb3ca4(0x1a0)]({'unitId':_0x377cae,'rangeIds':[_0x57fa8a]}),!0x0;}['load'](_0x492a87,_0x30478c){const _0x5d90bf=_0x3074bd;return _0x30478c&&typeof _0x30478c==_0x5d90bf(0x195)&&_0x5d90bf(0x102)in _0x30478c&&_0x30478c[_0x5d90bf(0x102)]!==0x1?(this[_0x5d90bf(0xef)](_0x492a87,_0x30478c,_0x5d90bf(0x1cd)),!0x1):x(_0x30478c)?(this[_0x5d90bf(0x1c7)][_0x5d90bf(0x187)](_0x492a87,_0x942fba[_0x5d90bf(0x189)](_0x30478c)),this[_0x5d90bf(0x175)]['delete'](_0x492a87),this[_0x5d90bf(0x16e)][_0x5d90bf(0x1b1)](_0x492a87),this[_0x5d90bf(0x10d)]['next']({'unitId':_0x492a87}),!0x0):(this[_0x5d90bf(0xef)](_0x492a87,_0x30478c,_0x5d90bf(0x19e)),!0x1);}[_0x3074bd(0x124)](_0x4ec572){const _0x1271ac=_0x3074bd;let _0x4758d7=this['_resources'][_0x1271ac(0x104)](_0x4ec572);return _0x4758d7?_0x942fba[_0x1271ac(0x189)](_0x4758d7):this['_rawResources'][_0x1271ac(0x1b9)](_0x4ec572)?_0x942fba[_0x1271ac(0x189)](this[_0x1271ac(0x175)][_0x1271ac(0x104)](_0x4ec572)):b();}[_0x3074bd(0x10a)](_0x105201){const _0x390791=_0x3074bd;return this['_loadErrors'][_0x390791(0x104)](_0x105201);}[_0x3074bd(0x1c9)](_0x353371){const _0x5e8048=_0x3074bd;this[_0x5e8048(0x1c7)][_0x5e8048(0x1b1)](_0x353371),this[_0x5e8048(0x175)][_0x5e8048(0x1b1)](_0x353371),this[_0x5e8048(0x16e)][_0x5e8048(0x1b1)](_0x353371),this[_0x5e8048(0x10d)][_0x5e8048(0x1a0)]({'unitId':_0x353371});}[_0x3074bd(0x145)](){const _0x3b0dd3=_0x3074bd;this['_resources']['clear'](),this['_rawResources'][_0x3b0dd3(0x121)](),this[_0x3b0dd3(0x16e)]['clear'](),this[_0x3b0dd3(0x10d)]['complete'](),super[_0x3b0dd3(0x145)]();}['_preserveInvalid'](_0x1bcbac,_0x595829,_0x3759fd){const _0x5aebf1=_0x3074bd;this[_0x5aebf1(0x1c7)]['delete'](_0x1bcbac),this[_0x5aebf1(0x175)][_0x5aebf1(0x187)](_0x1bcbac,_0x942fba[_0x5aebf1(0x189)](_0x595829)),this['_loadErrors']['set'](_0x1bcbac,_0x3759fd),this[_0x5aebf1(0x10d)][_0x5aebf1(0x1a0)]({'unitId':_0x1bcbac});}};let it=function(_0x37291c){const _0x3b5333=_0x3074bd;return _0x37291c['EMPTY']=_0x3b5333(0x18b),_0x37291c['PENDING']='pending',_0x37291c[_0x3b5333(0x16a)]='success',_0x37291c[_0x3b5333(0x10e)]=_0x3b5333(0x18e),_0x37291c;}({});function F(_0x495bf4,_0x4ce0ae){return function(_0x5bbffe,_0x4f3e7e){_0x4ce0ae(_0x5bbffe,_0x4f3e7e,_0x495bf4);};}function I(_0xf62371,_0x373098,_0x55e3c2,_0x39ae02){const _0x1ac38e=_0x3074bd;var _0x3c4f03=arguments[_0x1ac38e(0x177)],_0xa1db56=_0x3c4f03<0x3?_0x373098:_0x39ae02===null?_0x39ae02=Object[_0x1ac38e(0xe7)](_0x373098,_0x55e3c2):_0x39ae02,_0x18b8e8;if(typeof Reflect==_0x1ac38e(0x195)&&typeof Reflect[_0x1ac38e(0xf5)]==_0x1ac38e(0x11c))_0xa1db56=Reflect[_0x1ac38e(0xf5)](_0xf62371,_0x373098,_0x55e3c2,_0x39ae02);else{for(var _0x13b319=_0xf62371['length']-0x1;_0x13b319>=0x0;_0x13b319--)(_0x18b8e8=_0xf62371[_0x13b319])&&(_0xa1db56=(_0x3c4f03<0x3?_0x18b8e8(_0xa1db56):_0x3c4f03>0x3?_0x18b8e8(_0x373098,_0x55e3c2,_0xa1db56):_0x18b8e8(_0x373098,_0x55e3c2))||_0xa1db56);}return _0x3c4f03>0x3&&_0xa1db56&&Object[_0x1ac38e(0x144)](_0x373098,_0x55e3c2,_0xa1db56),_0xa1db56;}let L=class extends _0x5dc02b{constructor(_0x58126f,_0x55bea2,_0xe0c9c){const _0x1229bb=_0x3074bd;super(),this[_0x1229bb(0x17c)]=_0x58126f,this[_0x1229bb(0x16d)]=_0x55bea2,this[_0x1229bb(0x127)]=_0xe0c9c,N(this,_0x1229bb(0x1c3),new Map()),N(this,_0x1229bb(0x1c6),new Map()),N(this,_0x1229bb(0x1bd),new _0x581576()),N(this,_0x1229bb(0x10b),this[_0x1229bb(0x1bd)][_0x1229bb(0x196)]()),this['disposeWithMe'](this[_0x1229bb(0x16d)][_0x1229bb(0x159)][_0x1229bb(0x12d)](_0x109df7=>{const _0x1fe394=_0x1229bb;for(let _0x3fadf3 of Object[_0x1fe394(0x1d3)](_0x109df7))for(let _0x2bcba6 of Object['values'](_0x3fadf3))_0x2bcba6[_0x1fe394(0x17a)](_0x3d9fd7=>this['_updateFormulaResult'](_0x3d9fd7));}));}[_0x3074bd(0x13c)](_0x3394f7){const _0x5c5884=_0x3074bd;var _0x10a038;let _0xa4d8e1=_0x3394f7['getUnitId'](),_0x102c8e=((_0x10a038=_0x3394f7[_0x5c5884(0x1bc)]()['body'])==null||(_0x10a038=_0x10a038['customRanges'])==null?void 0x0:_0x10a038['filter'](w))??[],_0x1f8c42=this[_0x5c5884(0x17c)][_0x5c5884(0x1df)](_0xa4d8e1),_0x3ebcd1=new Set();for(let _0x2a64f2 of _0x102c8e){let _0x178e27=_0x1f8c42[_0x2a64f2[_0x5c5884(0x1b3)]];_0x178e27&&(_0x3ebcd1[_0x5c5884(0x183)](R(_0xa4d8e1,_0x2a64f2['rangeId'])),this['register']({'unitId':_0xa4d8e1,'rangeId':_0x2a64f2[_0x5c5884(0x1b3)]},_0x178e27));}for(let _0x3cf181 of Array['from'](this[_0x5c5884(0x1c3)][_0x5c5884(0x1d3)]()))_0x3cf181[_0x5c5884(0x1a1)]===_0xa4d8e1&&!_0x3ebcd1[_0x5c5884(0x1b9)](R(_0x3cf181[_0x5c5884(0x1a1)],_0x3cf181[_0x5c5884(0x1b3)]))&&this[_0x5c5884(0x14a)](_0x3cf181);}['register'](_0x2b2aee,_0x4820e4){const _0x3d0e7d=_0x3074bd;let _0x5a73f6=R(_0x2b2aee['unitId'],_0x2b2aee[_0x3d0e7d(0x1b3)]),_0x198639=this['_registrations']['get'](_0x5a73f6),_0x43baa4=this[_0x3d0e7d(0x127)]['getRevision'](_0x2b2aee[_0x3d0e7d(0x1a1)]);if(_0x198639&&_0x198639[_0x3d0e7d(0x1b6)][_0x3d0e7d(0x1ce)]===_0x4820e4[_0x3d0e7d(0x1ce)]&&_0x198639[_0x3d0e7d(0xea)]===_0x43baa4){_0x198639[_0x3d0e7d(0x1b6)]=_0x4820e4;let _0x44a556=_0x198639['formulaId']?this['_registrationService'][_0x3d0e7d(0x173)](_0x198639[_0x3d0e7d(0x1a1)],_0x198639[_0x3d0e7d(0x1a1)],_0x198639['formulaId'])??void 0x0:void 0x0;_0x198639['liveResult']=_0x44a556,this['_setPresentation'](_0x5a73f6,z(_0x4820e4,_0x44a556));return;}_0x198639!=null&&_0x198639[_0x3d0e7d(0x1a8)]&&this[_0x3d0e7d(0x101)](_0x198639);let _0x4e6e50={..._0x2b2aee,'config':_0x4820e4,'referenceRevision':_0x43baa4,'presentation':z(_0x4820e4,void 0x0)};if(this[_0x3d0e7d(0x1c3)][_0x3d0e7d(0x187)](_0x5a73f6,_0x4e6e50),!_0x4820e4[_0x3d0e7d(0x1ce)]['trim']())return;let _0x3eeaca=this[_0x3d0e7d(0x16d)][_0x3d0e7d(0x118)](_0x2b2aee[_0x3d0e7d(0x1a1)],_0x2b2aee[_0x3d0e7d(0x1a1)],_0x4820e4[_0x3d0e7d(0x1ce)],void 0x0,{'rangeId':_0x2b2aee[_0x3d0e7d(0x1b3)]},_0x350834['DOC'],_0x2b2aee[_0x3d0e7d(0x1b3)]);_0x4e6e50['formulaId']=_0x3eeaca,this[_0x3d0e7d(0x1c6)][_0x3d0e7d(0x187)](_0x3eeaca,_0x5a73f6);}[_0x3074bd(0x14a)](_0x4eca57){const _0x3aefc4=_0x3074bd;let _0x41ca30=R(_0x4eca57[_0x3aefc4(0x1a1)],_0x4eca57[_0x3aefc4(0x1b3)]),_0x2228c4=this['_registrations'][_0x3aefc4(0x104)](_0x41ca30);_0x2228c4&&(this[_0x3aefc4(0x101)](_0x2228c4),this['_registrations'][_0x3aefc4(0x1b1)](_0x41ca30));}[_0x3074bd(0x19b)](_0x45d1b5){const _0x2b02c7=_0x3074bd;for(let _0x389206 of Array[_0x2b02c7(0x13f)](this[_0x2b02c7(0x1c3)][_0x2b02c7(0x1d3)]()))_0x389206[_0x2b02c7(0x1a1)]===_0x45d1b5&&this[_0x2b02c7(0x14a)](_0x389206);}['getPresentation'](_0x191f9a){const _0x3295f8=_0x3074bd;var _0x48cbc7;return(_0x48cbc7=this[_0x3295f8(0x1c3)]['get'](R(_0x191f9a[_0x3295f8(0x1a1)],_0x191f9a[_0x3295f8(0x1b3)])))==null?void 0x0:_0x48cbc7[_0x3295f8(0x143)];}[_0x3074bd(0x10f)](_0x181c23){const _0x13c798=_0x3074bd;let _0x16b260=this[_0x13c798(0x1c3)]['get'](R(_0x181c23[_0x13c798(0x1a1)],_0x181c23['rangeId']));return _0x16b260?B(_0x16b260):void 0x0;}[_0x3074bd(0x1c8)](){const _0x20556f=_0x3074bd;return Array['from'](this[_0x20556f(0x1c3)][_0x20556f(0x1d3)](),_0x3abd24=>({'identity':{'unitId':_0x3abd24[_0x20556f(0x1a1)],'rangeId':_0x3abd24[_0x20556f(0x1b3)]},'config':_0x3abd24[_0x20556f(0x1b6)],'referenceRevision':_0x3abd24['referenceRevision'],..._0x3abd24['liveResult']?{'liveResult':_0x3abd24[_0x20556f(0x1d8)]}:null}));}['dispose'](){const _0x1e7ca0=_0x3074bd;for(let _0x30ba54 of this[_0x1e7ca0(0x1c3)][_0x1e7ca0(0x1d3)]())this[_0x1e7ca0(0x101)](_0x30ba54);this[_0x1e7ca0(0x1c3)][_0x1e7ca0(0x121)](),this[_0x1e7ca0(0x1c6)][_0x1e7ca0(0x121)](),this[_0x1e7ca0(0x1bd)][_0x1e7ca0(0x120)](),super[_0x1e7ca0(0x145)]();}[_0x3074bd(0x137)](_0x1dec87){const _0x63c0c0=_0x3074bd;let _0x1ce3b0=this[_0x63c0c0(0x1c6)][_0x63c0c0(0x104)](_0x1dec87[_0x63c0c0(0x1a8)]),_0x4a92ff=_0x1ce3b0?this[_0x63c0c0(0x1c3)]['get'](_0x1ce3b0):void 0x0;_0x1ce3b0&&_0x4a92ff&&(_0x4a92ff[_0x63c0c0(0x1d8)]=_0x1dec87,this[_0x63c0c0(0x112)](_0x1ce3b0,z(_0x4a92ff[_0x63c0c0(0x1b6)],_0x1dec87)));}[_0x3074bd(0x112)](_0x5df354,_0x3ea006){const _0x3c6296=_0x3074bd;var _0x53f4fa,_0x5bb6e9;let _0x4311d9=this[_0x3c6296(0x1c3)]['get'](_0x5df354);if(!_0x4311d9||at(_0x4311d9[_0x3c6296(0x143)],_0x3ea006))return;let _0x24d2a3=_0x4311d9['presentation'],_0x197c6a=B(_0x4311d9);_0x4311d9['presentation']=_0x3ea006,this['_presentationChanged$'][_0x3c6296(0x1a0)]({'unitId':_0x4311d9['unitId'],'rangeId':_0x4311d9[_0x3c6296(0x1b3)],'presentation':_0x3ea006,'previousPresentation':_0x24d2a3,'result':B(_0x4311d9),'previousResult':{..._0x197c6a,..._0x24d2a3,'value':(_0x53f4fa=_0x24d2a3[_0x3c6296(0x106)])==null?void 0x0:_0x53f4fa['v'],'valueType':((_0x5bb6e9=_0x24d2a3[_0x3c6296(0x106)])==null?void 0x0:_0x5bb6e9['t'])??void 0x0}});}[_0x3074bd(0x101)](_0xbb3d18){const _0x13bd5b=_0x3074bd;_0xbb3d18[_0x13bd5b(0x1a8)]&&(this[_0x13bd5b(0x16d)][_0x13bd5b(0x15b)](_0xbb3d18[_0x13bd5b(0x1a1)],_0xbb3d18[_0x13bd5b(0x1a1)],[_0xbb3d18[_0x13bd5b(0x1a8)]]),this[_0x13bd5b(0x1c6)][_0x13bd5b(0x1b1)](_0xbb3d18[_0x13bd5b(0x1a8)]));}};L=I([F(0x0,_0x34e393(P)),F(0x1,_0x34e393(_0x3391af)),F(0x2,_0x34e393(_0x51c26f))],L);function R(_0x391ef6,_0x2fee02){return _0x391ef6+'\x00'+_0x2fee02;}function z(_0x12c868,_0x418d32){const _0x1e5454=_0x3074bd;return _0x43dcf8({'numberFormat':_0x12c868[_0x1e5454(0x1ba)],'lastValue':_0x12c868['lastValue'],'result':_0x418d32});}function B(_0xd9619){const _0x4c9c04=_0x3074bd;var _0x2c4a0f,_0x3b4dee,_0x80a505;let _0x1b602b=_0xd9619[_0x4c9c04(0x143)],_0x212be7=_0xd9619[_0x4c9c04(0x1b6)][_0x4c9c04(0x1ce)][_0x4c9c04(0x1b2)]()?_0x1b602b[_0x4c9c04(0x1c4)]||_0x1b602b[_0x4c9c04(0x106)]==null?'pending':((_0x2c4a0f=_0xd9619['liveResult'])==null?void 0x0:_0x2c4a0f[_0x4c9c04(0xfe)])===_0x11c47e[_0x4c9c04(0x10e)]?_0x4c9c04(0x18e):_0x4c9c04(0xf8):_0x4c9c04(0x18b);return{..._0x1b602b,'status':_0x212be7,'value':(_0x3b4dee=_0x1b602b[_0x4c9c04(0x106)])==null?void 0x0:_0x3b4dee['v'],'valueType':((_0x80a505=_0x1b602b['cell'])==null?void 0x0:_0x80a505['t'])??void 0x0};}function at(_0x472185,_0xb33955){const _0x5d825e=_0x3074bd;var _0x5acd3b,_0x22566c,_0x54eada,_0x273188;return _0x472185[_0x5d825e(0x18c)]===_0xb33955[_0x5d825e(0x18c)]&&_0x472185[_0x5d825e(0x169)]===_0xb33955[_0x5d825e(0x169)]&&_0x472185['pattern']===_0xb33955[_0x5d825e(0x128)]&&_0x472185['source']===_0xb33955[_0x5d825e(0x156)]&&_0x472185[_0x5d825e(0x1c4)]===_0xb33955[_0x5d825e(0x1c4)]&&((_0x5acd3b=_0x472185[_0x5d825e(0x106)])==null?void 0x0:_0x5acd3b['t'])===((_0x22566c=_0xb33955[_0x5d825e(0x106)])==null?void 0x0:_0x22566c['t'])&&Object['is']((_0x54eada=_0x472185[_0x5d825e(0x106)])==null?void 0x0:_0x54eada['v'],(_0x273188=_0xb33955['cell'])==null?void 0x0:_0x273188['v']);}const ot={'id':'docs-formula.mutation.set-formula','type':_0x49f619[_0x3074bd(0x1a6)],'handler':(_0x126a4f,_0x18d94e)=>!(_0x18d94e!=null&&_0x18d94e['unitId'])||!_0x18d94e['rangeId']||!_0x18d94e['config']?!0x1:_0x126a4f['get'](P)[_0x3074bd(0x132)](_0x18d94e[_0x3074bd(0x1a1)],_0x18d94e['rangeId'],_0x18d94e['config'])},st={'id':_0x3074bd(0x1a2),'type':_0x49f619[_0x3074bd(0x1a6)],'handler':(_0x40f165,_0x228941)=>!(_0x228941!=null&&_0x228941['unitId'])||!_0x228941[_0x3074bd(0x1b3)]?!0x1:_0x40f165['get'](P)[_0x3074bd(0x19f)](_0x228941[_0x3074bd(0x1a1)],_0x228941[_0x3074bd(0x1b3)])},V={'id':_0x3074bd(0x108),'type':_0x49f619['MUTATION'],'handler':(_0x254588,_0x5d91b4)=>!(_0x5d91b4!=null&&_0x5d91b4[_0x3074bd(0x1a1)])||!_0x5d91b4[_0x3074bd(0x19d)]?!0x1:_0x254588[_0x3074bd(0x104)](P)[_0x3074bd(0x171)](_0x5d91b4['unitId'],_0x5d91b4[_0x3074bd(0x19d)])},H={'id':_0x3074bd(0x111),'type':_0x49f619[_0x3074bd(0x1a6)],'handler':(_0x1d3b74,_0x465571)=>{const _0x146a8a=_0x3074bd;if(!(_0x465571!=null&&_0x465571['unitId'])||!_0x465571['updates'][_0x146a8a(0x177)])return!0x1;let _0x1f1955=_0x1d3b74[_0x146a8a(0x104)](P),_0x3e564c=_0x1d3b74[_0x146a8a(0x104)](_0x51c26f),_0xd5841b=_0x1f1955[_0x146a8a(0x185)](_0x465571[_0x146a8a(0x1a1)]);if(!_0xd5841b)return!0x1;let _0x2c99ad=_0x942fba[_0x146a8a(0x189)](_0xd5841b),_0x2c3837=!0x1;for(let _0x2258cd of _0x465571[_0x146a8a(0xf7)]){var _0x13f328,_0x596f82,_0x2988db,_0x5eb532;let _0x254d24=_0x2c99ad['formulas'][_0x2258cd[_0x146a8a(0x1b3)]];_0x254d24&&_0x254d24[_0x146a8a(0x1ce)]===_0x2258cd['expectedFormula']&&((_0x13f328=_0x254d24[_0x146a8a(0x1ba)])==null?void 0x0:_0x13f328[_0x146a8a(0x128)])===_0x2258cd[_0x146a8a(0x12c)]&&_0x3e564c[_0x146a8a(0x19c)](_0x465571[_0x146a8a(0x1a1)])===_0x2258cd[_0x146a8a(0x15e)]&&(((_0x596f82=_0x254d24[_0x146a8a(0x13e)])==null?void 0x0:_0x596f82['v'])!==_0x2258cd['lastValue']['v']||((_0x2988db=_0x254d24[_0x146a8a(0x13e)])==null?void 0x0:_0x2988db['t'])!==_0x2258cd[_0x146a8a(0x13e)]['t']||((_0x5eb532=_0x254d24['lastValue'])==null?void 0x0:_0x5eb532['pattern'])!==_0x2258cd[_0x146a8a(0x13e)][_0x146a8a(0x128)])&&(_0x254d24['lastValue']=_0x942fba[_0x146a8a(0x189)](_0x2258cd['lastValue']),_0x2c3837=!0x0);}return!_0x2c3837||_0x1f1955['setResource'](_0x465571['unitId'],_0x2c99ad);}},U={'id':_0x3074bd(0x17d),'type':_0x49f619[_0x3074bd(0x158)],'handler':(_0x2099cb,_0x491dd7)=>{const _0x4d5241=_0x3074bd;if(!(_0x491dd7!=null&&_0x491dd7[_0x4d5241(0x1ce)][_0x4d5241(0x1b2)]()))return!0x1;let _0x34cf8b=q(_0x2099cb,_0x491dd7[_0x4d5241(0x1a1)],'');if(!_0x34cf8b)return!0x1;let _0x2b079b=ft(_0x491dd7[_0x4d5241(0x1bb)],_0x34cf8b[_0x4d5241(0x11f)],dt(_0x2099cb,_0x34cf8b[_0x4d5241(0x1a1)]));if(!_0x2b079b)return!0x1;let _0x53d61f=pt(_0x2099cb,_0x34cf8b[_0x4d5241(0x1a1)],_0x491dd7[_0x4d5241(0x1ce)],_0x491dd7[_0x4d5241(0x147)]??[]);if(!_0x53d61f)return!0x1;let _0xe9f69b=mt(_0x34cf8b[_0x4d5241(0x11f)],_0x34cf8b['model'],_0x34cf8b['unitId']),_0x1ff475=ht({'documentData':_0x34cf8b[_0x4d5241(0x194)],'resource':_0x34cf8b['resource'],'rangeId':_0xe9f69b,'config':{'formula':_0x491dd7['formula'],..._0x491dd7[_0x4d5241(0x1ba)]?{'numberFormat':_0x491dd7['numberFormat']}:null},'startOffset':_0x2b079b['startOffset'],'endOffset':_0x2b079b[_0x4d5241(0x172)]});if(!_0x1ff475)return!0x1;let _0x157f73=_0x4bd97f(_0x2099cb,_0x34cf8b['unitId'],_0x53d61f);return!_0x157f73||!J({'accessor':_0x2099cb,'document':_0x34cf8b[_0x4d5241(0xf1)],'unitId':_0x34cf8b[_0x4d5241(0x1a1)],'trigger':U['id'],'rangeId':_0xe9f69b,'previousResource':_0x34cf8b[_0x4d5241(0x19d)],'nextResource':_0x1ff475['nextResource'],'previousDocumentData':_0x34cf8b[_0x4d5241(0x194)],'nextDocumentData':_0x1ff475[_0x4d5241(0x1d0)],'cursorOffset':_0x1ff475['cursorOffset'],'externalMutations':_0x157f73})?!0x1:{'rangeId':_0xe9f69b,'startOffset':_0x1ff475['cursorOffset']-0x1,'endOffset':_0x1ff475['cursorOffset']};}},W={'id':_0x3074bd(0xff),'type':_0x49f619[_0x3074bd(0x158)],'handler':(_0x41d3ca,_0x1f074a)=>{const _0x108922=_0x3074bd;if(!(_0x1f074a!=null&&_0x1f074a['rangeId'])||!_0x1f074a[_0x108922(0x1ce)][_0x108922(0x1b2)]())return!0x1;let _0x4f6756=q(_0x41d3ca,_0x1f074a[_0x108922(0x1a1)],''),_0x428f0f=_0x4f6756==null?void 0x0:_0x4f6756[_0x108922(0x1af)]['getFormula'](_0x4f6756[_0x108922(0x1a1)],_0x1f074a['rangeId']),_0x464d76=_0x4f6756?T(_0x4f6756[_0x108922(0x194)][_0x108922(0x11f)],_0x1f074a[_0x108922(0x1b3)]):void 0x0;if(!_0x4f6756||!_0x428f0f||!_0x464d76)return!0x1;let _0x25d714=pt(_0x41d3ca,_0x4f6756[_0x108922(0x1a1)],_0x1f074a['formula'],_0x1f074a[_0x108922(0x147)]??[]);if(!_0x25d714)return!0x1;let _0x2ab4b4=_0x4bd97f(_0x41d3ca,_0x4f6756['unitId'],_0x25d714);if(!_0x2ab4b4)return!0x1;let _0x4c5f00=Ct(_0x4f6756[_0x108922(0x19d)]);return _0x4c5f00[_0x108922(0x151)][_0x1f074a['rangeId']]={'formula':_0x1f074a[_0x108922(0x1ce)],..._0x1f074a['numberFormat']?{'numberFormat':_0x1f074a[_0x108922(0x1ba)]}:_0x428f0f['numberFormat']?{'numberFormat':_0x428f0f[_0x108922(0x1ba)]}:null},J({'accessor':_0x41d3ca,'document':_0x4f6756[_0x108922(0xf1)],'unitId':_0x4f6756['unitId'],'trigger':W['id'],'rangeId':_0x1f074a[_0x108922(0x1b3)],'previousResource':_0x4f6756['resource'],'nextResource':_0x4c5f00,'cursorOffset':_0x464d76['endIndex']+0x1,'externalMutations':_0x2ab4b4});}},G={'id':_0x3074bd(0x1a3),'type':_0x49f619[_0x3074bd(0x158)],'handler':(_0x397733,_0x2e5413)=>{const _0x1f0046=_0x3074bd;if(!(_0x2e5413!=null&&_0x2e5413[_0x1f0046(0x1b3)]))return!0x1;let _0xed3c6d=q(_0x397733,_0x2e5413[_0x1f0046(0x1a1)],''),_0x3955b4=_0xed3c6d==null?void 0x0:_0xed3c6d[_0x1f0046(0x1af)][_0x1f0046(0x1b8)](_0xed3c6d[_0x1f0046(0x1a1)],_0x2e5413['rangeId']),_0x19a39e=_0xed3c6d?T(_0xed3c6d['documentData'][_0x1f0046(0x11f)],_0x2e5413[_0x1f0046(0x1b3)]):void 0x0;if(!_0xed3c6d||!_0x3955b4||!_0x19a39e)return!0x1;let _0x4006cd=Ct(_0xed3c6d[_0x1f0046(0x19d)]);return _0x4006cd[_0x1f0046(0x151)][_0x2e5413[_0x1f0046(0x1b3)]]={..._0x3955b4,..._0x2e5413[_0x1f0046(0x1ba)]?{'numberFormat':_0x2e5413[_0x1f0046(0x1ba)]}:null},_0x2e5413[_0x1f0046(0x1ba)]||delete _0x4006cd[_0x1f0046(0x151)][_0x2e5413[_0x1f0046(0x1b3)]]['numberFormat'],J({'accessor':_0x397733,'document':_0xed3c6d[_0x1f0046(0xf1)],'unitId':_0xed3c6d[_0x1f0046(0x1a1)],'trigger':G['id'],'rangeId':_0x2e5413['rangeId'],'previousResource':_0xed3c6d['resource'],'nextResource':_0x4006cd,'cursorOffset':_0x19a39e[_0x1f0046(0xf2)]+0x1,'externalMutations':{}});}},K={'id':'docs-formula.command.remove','type':_0x49f619[_0x3074bd(0x158)],'handler':(_0xd5e60c,_0x18ef04)=>ut(_0xd5e60c,_0x18ef04,'',K['id'])},ct={'id':'docs-formula.command.replace-with-text','type':_0x49f619[_0x3074bd(0x158)],'handler':(_0x533af6,_0x574a35)=>ut(_0x533af6,_0x574a35,(_0x574a35==null?void 0x0:_0x574a35[_0x3074bd(0x18c)])??'',ct['id'])},lt={'id':_0x3074bd(0x131),'type':_0x49f619[_0x3074bd(0x158)],'handler':(_0x2661fa,_0x1146fd)=>{const _0x408a17=_0x3074bd;if(!(_0x1146fd!=null&&_0x1146fd[_0x408a17(0x1b3)]))return!0x1;let _0x37fe51=q(_0x2661fa,_0x1146fd[_0x408a17(0x1a1)],'');if(!_0x37fe51)return!0x1;let _0x3bd7c8=_0x2661fa[_0x408a17(0x104)](L)[_0x408a17(0x10f)]({'unitId':_0x37fe51['unitId'],'rangeId':_0x1146fd[_0x408a17(0x1b3)]});return _0x3bd7c8?ut(_0x2661fa,_0x1146fd,_0x3bd7c8[_0x408a17(0x18c)],lt['id']):!0x1;}};function ut(_0x57669c,_0x426beb,_0x46c36e,_0x5b69e7){const _0x107cde=_0x3074bd;if(!(_0x426beb!=null&&_0x426beb[_0x107cde(0x1b3)]))return!0x1;let _0x451971=q(_0x57669c,_0x426beb['unitId'],'');if(!_0x451971)return!0x1;let _0x496c65=Be({'documentData':_0x451971[_0x107cde(0x194)],'resource':_0x451971[_0x107cde(0x19d)],'rangeId':_0x426beb['rangeId'],'text':_0x46c36e});return _0x496c65?J({'accessor':_0x57669c,'document':_0x451971[_0x107cde(0xf1)],'unitId':_0x451971[_0x107cde(0x1a1)],'trigger':_0x5b69e7,'rangeId':_0x426beb[_0x107cde(0x1b3)],'previousResource':_0x451971['resource'],'nextResource':_0x496c65[_0x107cde(0x1d9)],'previousDocumentData':_0x451971[_0x107cde(0x194)],'nextDocumentData':_0x496c65[_0x107cde(0x1d0)],'cursorOffset':_0x496c65[_0x107cde(0xeb)],'externalMutations':{}}):!0x1;}function q(_0x81bb81,_0xb336e3,_0x35c32f){const _0x4545cf=_0x3074bd;if(_0x35c32f)return null;let _0x31f8f3=_0x81bb81[_0x4545cf(0x104)](_0x5a1b75),_0x24fbd=(_0xb336e3?_0x31f8f3['getUnit'](_0xb336e3,_0x56d504[_0x4545cf(0x14f)]):_0x31f8f3[_0x4545cf(0x14b)](_0x56d504[_0x4545cf(0x14f)]))??null;if(!_0x24fbd)return null;let _0x5462dc=_0x24fbd['getSnapshot'](),_0x143f05=_0x5462dc[_0x4545cf(0x11f)];if(_0x5462dc[_0x4545cf(0x140)]||!_0x143f05)return null;let _0x5e2a42=_0x81bb81['get'](P);return _0x5e2a42[_0x4545cf(0x10a)](_0x24fbd['getUnitId']())?null:{'document':_0x24fbd,'body':_0x143f05,'documentData':_0x5462dc,'model':_0x5e2a42,'resource':_0x5e2a42[_0x4545cf(0x185)](_0x24fbd[_0x4545cf(0x113)]())??b(),'unitId':_0x24fbd[_0x4545cf(0x113)]()};}function dt(_0x46af4f,_0x326fd3){const _0x496760=_0x3074bd;var _0xbad62c;return(_0xbad62c=_0x46af4f[_0x496760(0x104)](_0x2711a1)[_0x496760(0x1dd)]({'subUnitId':_0x326fd3,'unitId':_0x326fd3}))==null?void 0x0:_0xbad62c[0x0];}function ft(_0x4f47a5,_0x1fc99e,_0x4d2a6c){const _0x2cea14=_0x3074bd;if((_0x4f47a5==null?void 0x0:_0x4f47a5['type'])==='paragraph'){var _0x1b82cd;let _0x3dffa4=((_0x1b82cd=_0x1fc99e[_0x2cea14(0x12b)])==null?void 0x0:_0x1b82cd[_0x2cea14(0x180)](_0x5ba3b2=>_0x5ba3b2[_0x2cea14(0x114)]===_0x4f47a5['paragraphId']))??[];if(_0x3dffa4[_0x2cea14(0x177)]!==0x1)return null;let _0x43a12f=_0x3dffa4[0x0],_0x24ce83=_0x403d2a(_0x1fc99e,_0x43a12f),_0x3c0f55=_0x43a12f[_0x2cea14(0x1ab)]-_0x24ce83,_0x570667=_0x4f47a5[_0x2cea14(0x19a)]==='end'?_0x3c0f55:_0x4f47a5[_0x2cea14(0x19a)];if(!Number['isInteger'](_0x570667)||_0x570667<0x0||_0x570667>_0x3c0f55)return null;let _0x39a125=_0x24ce83+_0x570667;return{'startOffset':_0x39a125,'endOffset':_0x39a125};}if((_0x4f47a5==null?void 0x0:_0x4f47a5[_0x2cea14(0x153)])===_0x2cea14(0x12a))return!Number['isInteger'](_0x4f47a5[_0x2cea14(0x15d)])||!Number[_0x2cea14(0x18d)](_0x4f47a5['endOffset'])?null:{'startOffset':Math[_0x2cea14(0x15f)](_0x4f47a5['startOffset'],_0x4f47a5[_0x2cea14(0x172)]),'endOffset':Math['max'](_0x4f47a5['startOffset'],_0x4f47a5[_0x2cea14(0x172)])};let _0x3ca6bf=(_0x4f47a5==null?void 0x0:_0x4f47a5['type'])===_0x2cea14(0x134)?_0x4f47a5['selection']:_0x4d2a6c;return!_0x3ca6bf||_0x3ca6bf[_0x2cea14(0x18a)]?null:{'startOffset':Math[_0x2cea14(0x15f)](_0x3ca6bf['startOffset'],_0x3ca6bf[_0x2cea14(0x172)]),'endOffset':Math[_0x2cea14(0x1cb)](_0x3ca6bf[_0x2cea14(0x15d)],_0x3ca6bf[_0x2cea14(0x172)])};}function pt(_0x10caae,_0x3935ad,_0x37674e,_0x419cce){const _0x5e4776=_0x3074bd;let _0x457b88=_0x10caae[_0x5e4776(0x104)](_0x3874f6),_0x38d283=_0x37674e['startsWith']('=')?_0x37674e[_0x5e4776(0x178)](0x1):_0x37674e,_0x476613=_0x457b88[_0x5e4776(0x142)](_0x38d283);if(!_0x476613)return null;let _0x3e0a6e=_0x10caae[_0x5e4776(0x104)](_0x51c26f),_0x22cd0c=_0x26b6bd({'qualifiers':_0x239d3f(_0x476613),'explicitReferences':_0x419cce??[],'resolveBinding':_0x844b7=>_0x3e0a6e['resolveBinding'](_0x3935ad,_0x844b7)});return _0x22cd0c[_0x5e4776(0xfe)]===_0x5e4776(0x1ca)?_0x22cd0c[_0x5e4776(0x170)]:null;}function mt(_0x83caec,_0x384e6c,_0x5b9ff5){const _0x566c39=_0x3074bd;var _0x9603d9;let _0x2e50bc=_0x260a9d(0x6);for(;_0x83caec!=null&&(_0x9603d9=_0x83caec[_0x566c39(0x122)])!=null&&_0x9603d9[_0x566c39(0x17b)](_0x3d0a4f=>_0x3d0a4f[_0x566c39(0x1b3)]===_0x2e50bc)||_0x384e6c[_0x566c39(0x1b8)](_0x5b9ff5,_0x2e50bc);)_0x2e50bc=_0x260a9d(0x6);return _0x2e50bc;}function ht(_0x4d03db){try{return Re(_0x4d03db);}catch(_0x58b084){if(_0x58b084 instanceof C)return null;throw _0x58b084;}}function gt(_0x4fb62f){const _0x30b63e=_0x3074bd;let _0x16e6b7=_0x4fb62f[_0x30b63e(0x14d)]&&_0x4fb62f['nextDocumentData']?vt(_0x4fb62f[_0x30b63e(0xf1)],_0x4fb62f['unitId'],_0x4fb62f['previousDocumentData'],_0x4fb62f['nextDocumentData'],_0x4fb62f[_0x30b63e(0xeb)],_0x4fb62f[_0x30b63e(0x15a)]):null;return _0x4fb62f[_0x30b63e(0x14d)]&&_0x4fb62f[_0x30b63e(0x1d0)]&&!_0x16e6b7?null:{'documentRedo':_0x16e6b7,'resourceRedo':{'id':V['id'],'params':{'unitId':_0x4fb62f[_0x30b63e(0x1a1)],'resource':_0x4fb62f[_0x30b63e(0x1d9)]}},'resourceUndo':{'id':V['id'],'params':{'unitId':_0x4fb62f[_0x30b63e(0x1a1)],'resource':_0x4fb62f['previousResource']}}};}function _t(_0xa67574,_0x2ce36d,_0x572fd1,_0x49766a){const _0x3871f8=_0x3074bd;_0x49766a['pushUndoRedo']({'id':_0xa67574['trigger']+':'+_0xa67574[_0x3871f8(0x1b3)],'unitID':_0xa67574[_0x3871f8(0x1a1)],'redoMutations':[..._0xa67574[_0x3871f8(0x12f)][_0x3871f8(0x1c1)]?[_0xa67574[_0x3871f8(0x12f)][_0x3871f8(0x1c1)]]:[],..._0x2ce36d['documentRedo']?[_0x2ce36d['documentRedo']]:[],_0x2ce36d['resourceRedo']],'undoMutations':[_0x2ce36d[_0x3871f8(0x11b)],..._0x572fd1?[_0x572fd1]:[],..._0xa67574[_0x3871f8(0x12f)][_0x3871f8(0x123)]?[_0xa67574[_0x3871f8(0x12f)]['undoMutation']]:[]]});}function J(_0x407de1){const _0x207627=_0x3074bd;let _0x2b1462=_0x407de1['accessor']['get'](_0x78f14b),_0x2203e3=_0x407de1['accessor'][_0x207627(0x104)](_0x3e3a50),_0x1fa48b=_0x407de1[_0x207627(0x139)]['get'](_0x2711a1),_0x1b7eb4=gt(_0x407de1);if(!_0x1b7eb4)return!0x1;let _0x32f231=!0x1,_0x15d24a=null,_0x1ad0c9=!0x1;try{if(_0x407de1['externalMutations'][_0x207627(0x1c1)]){if(!_0x2b1462[_0x207627(0x1ad)](_0x407de1[_0x207627(0x12f)][_0x207627(0x1c1)]['id'],_0x407de1[_0x207627(0x12f)][_0x207627(0x1c1)][_0x207627(0x117)]))return!0x1;_0x32f231=!0x0;}if(_0x1b7eb4[_0x207627(0x17f)]){let _0x563b0c=_0x2b1462['syncExecuteCommand'](_0x1b7eb4[_0x207627(0x17f)]['id'],_0x1b7eb4[_0x207627(0x17f)]['params']);if(!_0x563b0c)return bt(_0x2b1462,_0x407de1['externalMutations'],_0x32f231),!0x1;_0x15d24a={'id':_0x40b755['id'],'params':{..._0x563b0c,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x2b1462[_0x207627(0x1ad)](_0x1b7eb4[_0x207627(0x163)]['id'],_0x1b7eb4[_0x207627(0x163)][_0x207627(0x117)]))return yt(_0x2b1462,_0x15d24a),bt(_0x2b1462,_0x407de1[_0x207627(0x12f)],_0x32f231),!0x1;_0x1ad0c9=!0x0,_t(_0x407de1,_0x1b7eb4,_0x15d24a,_0x2203e3);}catch(_0x3d803b){throw _0x1ad0c9&&_0x2b1462[_0x207627(0x1ad)](_0x1b7eb4['resourceUndo']['id'],_0x1b7eb4['resourceUndo'][_0x207627(0x117)]),yt(_0x2b1462,_0x15d24a),bt(_0x2b1462,_0x407de1[_0x207627(0x12f)],_0x32f231),_0x3d803b;}return _0x1fa48b[_0x207627(0x1de)]([{'startOffset':_0x407de1['cursorOffset'],'endOffset':_0x407de1[_0x207627(0xeb)],'segmentId':''}],{'unitId':_0x407de1[_0x207627(0x1a1)],'subUnitId':_0x407de1[_0x207627(0x1a1)]},!0x1,{[_0x169a9f]:!0x0}),!0x0;}function vt(_0xdcaadd,_0x1db5fd,_0xc294ac,_0x4197aa,_0x253379,_0x71cfb0){let _0x602615=xt(_0xc294ac,_0x4197aa,_0x1d4096(_0xdcaadd,''));return _0x602615?{'id':_0x40b755['id'],'params':{'unitId':_0x1db5fd,'actions':_0x602615,'segmentId':'','textRanges':[{'startOffset':_0x253379,'endOffset':_0x253379,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x71cfb0}}:null;}function yt(_0x201721,_0x429785){const _0x1a19f5=_0x3074bd;_0x429785&&_0x201721[_0x1a19f5(0x1ad)](_0x429785['id'],_0x429785[_0x1a19f5(0x117)]);}function bt(_0x311c67,_0x1b9aca,_0x270378){const _0x1c3e39=_0x3074bd;_0x270378&&_0x1b9aca[_0x1c3e39(0x123)]&&_0x311c67['syncExecuteCommand'](_0x1b9aca[_0x1c3e39(0x123)]['id'],_0x1b9aca['undoMutation'][_0x1c3e39(0x117)]);}function xt(_0xe9087c,_0x4f094c,_0x44e2f4){const _0x54969c=_0x3074bd;let _0x328d2c=_0xe9087c[_0x54969c(0x11f)],_0x247632=_0x4f094c[_0x54969c(0x11f)],_0x4fb0a9=St(_0x328d2c==null?void 0x0:_0x328d2c[_0x54969c(0x1d5)],_0x247632==null?void 0x0:_0x247632[_0x54969c(0x1d5)]);if(!_0x4fb0a9||!_0x247632)return null;let _0x1097ce=new _0x1b1246();return _0x1097ce[_0x54969c(0x168)](_0x4fb0a9['start']),_0x4fb0a9[_0x54969c(0xf9)]>0x0&&_0x1097ce[_0x54969c(0x105)](_0x4fb0a9[_0x54969c(0xf9)],_0x27439c(_0x247632,_0x4fb0a9['start'],_0x4fb0a9['start']+_0x4fb0a9[_0x54969c(0xf9)],!0x1)),_0x4fb0a9[_0x54969c(0x1ae)]>0x0&&_0x1097ce[_0x54969c(0x1b1)](_0x4fb0a9[_0x54969c(0x1ae)]),_0x4ed544[_0x54969c(0x150)]()['editOp'](_0x1097ce[_0x54969c(0x124)](),_0x44e2f4);}function St(_0x407080,_0x48f6f5){const _0x2ba6e9=_0x3074bd;if(_0x407080==null||_0x48f6f5==null||_0x407080===_0x48f6f5)return null;let _0x55743a=0x0;for(;_0x55743a<_0x407080['length']&&_0x55743a<_0x48f6f5[_0x2ba6e9(0x177)]&&_0x407080[_0x55743a]===_0x48f6f5[_0x55743a];)_0x55743a+=0x1;let _0x4dde57=_0x407080[_0x2ba6e9(0x177)],_0x5356f7=_0x48f6f5[_0x2ba6e9(0x177)];for(;_0x4dde57>_0x55743a&&_0x5356f7>_0x55743a&&_0x407080[_0x4dde57-0x1]===_0x48f6f5[_0x5356f7-0x1];)--_0x4dde57,--_0x5356f7;return{'start':_0x55743a,'deleteLength':_0x4dde57-_0x55743a,'insertLength':_0x5356f7-_0x55743a};}function Ct(_0x266bea){const _0x2ca54b=_0x3074bd;return{'schemaVersion':0x1,'formulas':Object[_0x2ca54b(0xec)](Object[_0x2ca54b(0x1e1)](_0x266bea['formulas'])[_0x2ca54b(0xfd)](([_0x3c5300,_0x2f3f57])=>[_0x3c5300,{..._0x2f3f57,..._0x2f3f57['numberFormat']?{'numberFormat':{..._0x2f3f57[_0x2ca54b(0x1ba)]}}:null,..._0x2f3f57[_0x2ca54b(0x13e)]?{'lastValue':{..._0x2f3f57['lastValue']}}:null}]))};}let Y=class extends _0x5dc02b{constructor(_0x51c4c4,_0x4a6557,_0x137d5b,_0x3874a8){const _0x42b5fd=_0x3074bd;super(),this['_instanceService']=_0x51c4c4,this[_0x42b5fd(0x16f)]=_0x4a6557,this[_0x42b5fd(0x17c)]=_0x137d5b,this[_0x42b5fd(0x192)]=_0x3874a8,N(this,'_pendingUnitIds',new Set()),N(this,_0x42b5fd(0x115),!0x1),N(this,_0x42b5fd(0x179),!0x1),this[_0x42b5fd(0x13d)]['getAllUnitsForType'](_0x56d504[_0x42b5fd(0x14f)])[_0x42b5fd(0x17a)](_0x4898aa=>this[_0x42b5fd(0x192)][_0x42b5fd(0x13c)](_0x4898aa)),this['disposeWithMe'](this['_model'][_0x42b5fd(0x152)]['subscribe'](({unitId:_0x50752d})=>this[_0x42b5fd(0x181)](_0x50752d))),this[_0x42b5fd(0x1db)](this[_0x42b5fd(0x13d)][_0x42b5fd(0x1dc)][_0x42b5fd(0x12d)](({unit:_0x11a544})=>{const _0x4bea6d=_0x42b5fd;_0x11a544[_0x4bea6d(0x153)]===_0x56d504[_0x4bea6d(0x14f)]&&this[_0x4bea6d(0x190)](_0x11a544[_0x4bea6d(0x113)]());})),this[_0x42b5fd(0x1db)](this[_0x42b5fd(0x13d)]['unitDisposed$'][_0x42b5fd(0x12d)](_0x43c2f7=>{const _0x16fbf6=_0x42b5fd;this['_service'][_0x16fbf6(0x19b)](_0x43c2f7[_0x16fbf6(0x113)]());})),this['disposeWithMe'](this[_0x42b5fd(0x16f)][_0x42b5fd(0x1da)](_0x1299d7=>{const _0xb05ac0=_0x42b5fd;if(_0x1299d7['id']===_0x40b755['id']&&wt(_0x1299d7[_0xb05ac0(0x117)])){let _0x161e5c=_0x1299d7[_0xb05ac0(0x117)];_0x161e5c[_0xb05ac0(0x18a)]||this['_syncUnit'](_0x161e5c[_0xb05ac0(0x1a1)]);}}));}['dispose'](){const _0x2a7cd1=_0x3074bd;this[_0x2a7cd1(0x179)]=!0x0,super[_0x2a7cd1(0x145)]();}[_0x3074bd(0x190)](_0x5da4f2){const _0x200252=_0x3074bd;this['_pendingUnitIds'][_0x200252(0x183)](_0x5da4f2),!this[_0x200252(0x115)]&&(this[_0x200252(0x115)]=!0x0,queueMicrotask(()=>{const _0x2592aa=_0x200252;if(this[_0x2592aa(0x115)]=!0x1,this[_0x2592aa(0x179)])return;let _0x5082e5=Array[_0x2592aa(0x13f)](this[_0x2592aa(0x157)]);this[_0x2592aa(0x157)][_0x2592aa(0x121)](),_0x5082e5['forEach'](_0x577885=>this[_0x2592aa(0x181)](_0x577885));}));}[_0x3074bd(0x181)](_0x5a818a){const _0x43fc44=_0x3074bd;let _0x47f6ac=this[_0x43fc44(0x13d)]['getUnit'](_0x5a818a,_0x56d504[_0x43fc44(0x14f)]);_0x47f6ac&&this[_0x43fc44(0x192)]['syncUnit'](_0x47f6ac);}};Y=I([F(0x0,_0x5a1b75),F(0x1,_0x78f14b),F(0x2,_0x34e393(P)),F(0x3,_0x34e393(L))],Y);function wt(_0x3cb370){const _0x1167f3=_0x3074bd;return typeof _0x3cb370==_0x1167f3(0x195)&&!!_0x3cb370&&_0x1167f3(0x1a1)in _0x3cb370&&typeof _0x3cb370[_0x1167f3(0x1a1)]==_0x1167f3(0x165)&&(!(_0x1167f3(0x18a)in _0x3cb370)||_0x3cb370[_0x1167f3(0x18a)]===void 0x0||typeof _0x3cb370[_0x1167f3(0x18a)]=='string');}let X=class extends _0x5dc02b{constructor(_0x1924a1,_0xe959fd){const _0x43e54b=_0x3074bd;super(),this[_0x43e54b(0x148)]=_0x1924a1,this[_0x43e54b(0x18f)]=_0xe959fd,this[_0x43e54b(0x1db)](this[_0x43e54b(0x148)][_0x43e54b(0x184)]({'pluginName':y,'businesses':[_0x56d504[_0x43e54b(0x14f)]],'toJson':_0x430e2c=>JSON[_0x43e54b(0x1b4)](this[_0x43e54b(0x18f)]['serialize'](_0x430e2c)),'parseJson':_0x25af78=>JSON[_0x43e54b(0x17e)](_0x25af78),'onLoad':(_0x27bbe1,_0x2d1130)=>{const _0x5aa99f=_0x43e54b;this['_docFormulaModel'][_0x5aa99f(0xed)](_0x27bbe1,_0x2d1130);},'onUnLoad':_0x4de3d8=>this[_0x43e54b(0x18f)][_0x43e54b(0x1c9)](_0x4de3d8)}));}};X=I([F(0x0,_0x3f723c),F(0x1,_0x34e393(P))],X);var Tt=_0x3074bd(0x136),Et=_0x3074bd(0x1d1);const Dt={};let Z=class extends _0x5dc02b{constructor(_0x4a8847,_0x48037b,_0x2299f8){const _0x18c3e7=_0x3074bd;super(),this[_0x18c3e7(0x198)]=_0x4a8847,this[_0x18c3e7(0x100)]=_0x48037b,this[_0x18c3e7(0x1db)](_0x2299f8[_0x18c3e7(0xfb)]({'resolve':(_0x4e0ff5,_0x3cd840)=>{const _0xbefd60=_0x18c3e7;var _0x1a243d;return((_0x1a243d=_0x3cd840['customRanges'])==null?void 0x0:_0x1a243d[_0xbefd60(0x180)](w)['map'](_0x13885e=>({'startOffset':_0x13885e[_0xbefd60(0x1ab)],'endOffset':_0x13885e[_0xbefd60(0xf2)]+0x1,'text':this[_0xbefd60(0x11e)](_0x4e0ff5,_0x13885e[_0xbefd60(0x1b3)])})))??[];}})),this['disposeWithMe'](this[_0x18c3e7(0x100)][_0x18c3e7(0x10b)][_0x18c3e7(0x12d)](({unitId:_0xaa6ca})=>{const _0x167648=_0x18c3e7;_0x2299f8[_0x167648(0xe8)](_0xaa6ca);}));}[_0x3074bd(0x11e)](_0x2c5bf9,_0x225411){const _0x449518=_0x3074bd;var _0x3692bd;return((_0x3692bd=this['_formulaService'][_0x449518(0x10f)]({'unitId':_0x2c5bf9,'rangeId':_0x225411}))==null?void 0x0:_0x3692bd[_0x449518(0x18c)])??'';}['resolveText'](_0x40b513,_0xf1624,_0x329977){const _0x112194=_0x3074bd;var _0x5191cf;let _0x33ae39=this[_0x112194(0x198)][_0x112194(0x149)](_0x40b513,_0x56d504[_0x112194(0x14f)]),_0x179216=_0x33ae39==null?void 0x0:_0x33ae39['getBody']();if(!_0x179216)return'';let _0x2edad3=_0x179216[_0x112194(0x1d5)][_0x112194(0x178)](_0xf1624,_0x329977),_0x826430=((_0x5191cf=_0x179216[_0x112194(0x122)])==null?void 0x0:_0x5191cf[_0x112194(0x180)](_0x319bb7=>w(_0x319bb7)&&_0x319bb7['startIndex']>=_0xf1624&&_0x319bb7[_0x112194(0xf2)]<_0x329977)[_0x112194(0x133)]((_0x4bcc5e,_0xb827a8)=>_0xb827a8[_0x112194(0x1ab)]-_0x4bcc5e['startIndex']))??[];for(let _0x34ac62 of _0x826430){let _0x400e0b=_0x34ac62[_0x112194(0x1ab)]-_0xf1624,_0x44ac0b=_0x34ac62[_0x112194(0xf2)]-_0xf1624+0x1;_0x2edad3=''+_0x2edad3['slice'](0x0,_0x400e0b)+this['resolveFormula'](_0x40b513,_0x34ac62['rangeId'])+_0x2edad3[_0x112194(0x178)](_0x44ac0b);}return _0x2edad3;}[_0x3074bd(0x1c5)](_0x3c68cf){return Ot(_0x3c68cf);}[_0x3074bd(0x166)](_0x4b1b82,_0x1c578e,_0x2ed5c7={}){const _0x418e8f=_0x3074bd;var _0x5c302b;return Ve({'id':_0x4b1b82,'body':_0x1c578e,'documentStyle':{}},(((_0x5c302b=_0x1c578e[_0x418e8f(0x122)])==null?void 0x0:_0x5c302b[_0x418e8f(0x180)](w))??[])['map'](_0x8f9139=>({'rangeId':_0x8f9139['rangeId'],'text':_0x2ed5c7[_0x8f9139['rangeId']]??this[_0x418e8f(0x11e)](_0x4b1b82,_0x8f9139[_0x418e8f(0x1b3)])})))['body']??{'dataStream':''};}};Z=I([F(0x0,_0x5a1b75),F(0x1,_0x34e393(L)),F(0x2,_0x34e393(_0x572c95))],Z);function Ot(_0x21ac83){const _0x313bfd=_0x3074bd;var _0x2a4f7d,_0x50f110;let _0x2f7841=kt(_0x21ac83),_0x274901=Ve(_0x21ac83,(((_0x2a4f7d=_0x21ac83[_0x313bfd(0x11f)])==null||(_0x2a4f7d=_0x2a4f7d[_0x313bfd(0x122)])==null?void 0x0:_0x2a4f7d[_0x313bfd(0x180)](w))??[])[_0x313bfd(0xfd)](_0x26956b=>({'rangeId':_0x26956b[_0x313bfd(0x1b3)],'text':At(_0x2f7841==null?void 0x0:_0x2f7841['formulas'][_0x26956b[_0x313bfd(0x1b3)]])})));return _0x274901[_0x313bfd(0x1a7)]=(_0x50f110=_0x274901[_0x313bfd(0x1a7)])==null?void 0x0:_0x50f110[_0x313bfd(0x180)](_0x2cb911=>_0x2cb911['name']!==y),_0x274901;}function kt(_0x151c7d){const _0x34c06d=_0x3074bd;var _0x2caa98;let _0x3b5313=(_0x2caa98=_0x151c7d['resources'])==null||(_0x2caa98=_0x2caa98[_0x34c06d(0x129)](_0x411c73=>_0x411c73[_0x34c06d(0x1b5)]===_0x34c06d(0x160)))==null?void 0x0:_0x2caa98[_0x34c06d(0x1b0)];if(_0x3b5313)try{let _0x1b0173=JSON[_0x34c06d(0x17e)](_0x3b5313);return x(_0x1b0173)?_0x1b0173:void 0x0;}catch{return;}}function At(_0x330030){const _0x194572=_0x3074bd;return _0x330030?_0x43dcf8({'lastValue':_0x330030[_0x194572(0x13e)],'numberFormat':_0x330030[_0x194572(0x1ba)]})[_0x194572(0x18c)]:'';}let Q=class extends _0x5dc02b{constructor(_0xc14e92,_0x1b33af,_0x186623){const _0x2bd20d=_0x3074bd;super(),this[_0x2bd20d(0x100)]=_0xc14e92,this['_cacheEligibilityService']=_0x1b33af,this[_0x2bd20d(0x1db)](_0x186623[_0x2bd20d(0x103)](this));}[_0x3074bd(0x1d2)](_0x3e8ebd){const _0x39d0bb=_0x3074bd;let _0x166b29=new Map();for(let _0x350baf of this['_formulaService']['getRegisteredFormulas']()){var _0x28882c;if(!this['_cacheEligibilityService'][_0x39d0bb(0x162)](_0x350baf['config'][_0x39d0bb(0x1ce)],_0x350baf[_0x39d0bb(0x1d8)])[_0x39d0bb(0x12e)])continue;let _0x2746c9=_0x329bd2(_0x350baf[_0x39d0bb(0x1d8)]),_0x1cef38=_0x2746c9?_0x2dfe02(_0x2746c9):null;if(!_0x1cef38||jt(_0x350baf[_0x39d0bb(0x1b6)]['lastValue'],_0x1cef38))continue;let _0x2746e9=_0x166b29[_0x39d0bb(0x104)](_0x350baf[_0x39d0bb(0x126)][_0x39d0bb(0x1a1)])??[];_0x2746e9['push']({'rangeId':_0x350baf['identity'][_0x39d0bb(0x1b3)],'expectedFormula':_0x350baf['config'][_0x39d0bb(0x1ce)],'expectedNumberFormat':(_0x28882c=_0x350baf['config'][_0x39d0bb(0x1ba)])==null?void 0x0:_0x28882c['pattern'],'expectedReferenceRevision':_0x350baf['referenceRevision'],'lastValue':_0x1cef38}),_0x166b29[_0x39d0bb(0x187)](_0x350baf[_0x39d0bb(0x126)][_0x39d0bb(0x1a1)],_0x2746e9);}return Array[_0x39d0bb(0x13f)](_0x166b29,([_0x18166b,_0x286e3d])=>({'id':H['id'],'params':{'unitId':_0x18166b,'updates':_0x286e3d}}));}};Q=I([F(0x0,_0x34e393(L)),F(0x1,_0x34e393(_0x142c68)),F(0x2,_0x34e393(_0xdccf24))],Q);function jt(_0x28132f,_0x3e8a8b){const _0x15a7a2=_0x3074bd;return(_0x28132f==null?void 0x0:_0x28132f['v'])===_0x3e8a8b['v']&&(_0x28132f==null?void 0x0:_0x28132f['t'])===_0x3e8a8b['t']&&(_0x28132f==null?void 0x0:_0x28132f[_0x15a7a2(0x128)])===_0x3e8a8b[_0x15a7a2(0x128)];}let $=class extends _0x497bd3{constructor(_0x4b70ab=Dt,_0x49b31c,_0xe6831c,_0x11975c){const _0x1bda44=_0x3074bd;super(),this[_0x1bda44(0x1e2)]=_0x4b70ab,this['_injector']=_0x49b31c,this[_0x1bda44(0x16f)]=_0xe6831c,this[_0x1bda44(0x1e0)]=_0x11975c;let {..._0x2c11fa}=_0x5be025({},Dt,this[_0x1bda44(0x1e2)]);this['_configService']['setConfig']('docs-formula.config',_0x2c11fa);}[_0x3074bd(0x14c)](){const _0x3dd1f1=_0x3074bd;this[_0x3dd1f1(0x125)][_0x3dd1f1(0x183)]([P]),this[_0x3dd1f1(0x125)]['add']([L]),this[_0x3dd1f1(0x125)][_0x3dd1f1(0x183)]([X]),this['_injector'][_0x3dd1f1(0x183)]([Y]),this[_0x3dd1f1(0x125)][_0x3dd1f1(0x183)]([Q]),this['_injector'][_0x3dd1f1(0x183)]([Z]),_0x2d40f1(this[_0x3dd1f1(0x125)],[[P],[X],[Y],[Q],[Z]]),[ot,st,V,H,U,W,G,K,ct,lt][_0x3dd1f1(0x17a)](_0x1cb259=>this['disposeWithMe'](this[_0x3dd1f1(0x16f)]['registerCommand'](_0x1cb259)));}};N($,_0x3074bd(0x141),y),N($,_0x3074bd(0x1ac),Tt),N($,_0x3074bd(0x161),Et),N($,_0x3074bd(0x153),_0x56d504[_0x3074bd(0x14f)]),$=I([_0x21eda0(_0x4342e7,_0x1a7798,_0x515868),F(0x1,_0x34e393(_0x37a854)),F(0x2,_0x78f14b),F(0x3,_0x111e6a)],$);export{lt as ConvertDocFormulaToTextCommand,Me as DOC_FORMULA_CUSTOM_RANGE_KIND,Ne as DOC_FORMULA_OBJECT_REPLACEMENT,y as DOC_FORMULA_PLUGIN,je as DOC_FORMULA_SCHEMA_VERSION,Z as DocFormulaDisplayTextService,Y as DocFormulaLifecycleController,P as DocFormulaModel,X as DocFormulaResourceController,it as DocFormulaResultStatus,L as DocFormulaService,U as InsertDocFormulaCommand,C as InvalidDocFormulaInsertRangeError,K as RemoveDocFormulaCommand,st as RemoveDocFormulaMutation,ct as ReplaceDocFormulaWithTextCommand,H as SetDocFormulaLastValuesMutation,ot as SetDocFormulaMutation,G as SetDocFormulaNumberFormatCommand,V as SetDocFormulaResourceMutation,$ as UniverDocsFormulaPlugin,W as UpdateDocFormulaCommand,He as assertSafeDocFormulaInsertRange,Re as buildInsertDocFormulaActions,Be as buildRemoveDocFormulaActions,ze as buildUpdateDocFormulaActions,b as createEmptyDocFormulaResource,Ot as degradeDocFormulaDocumentData,T as findDocFormulaRange,Pe as isDocFormulaConfig,w as isDocFormulaRange,x as isDocFormulaResource,Fe as isFormulaLastValue};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x835b(_0x544b63,_0x185d88){_0x544b63=_0x544b63-0x138;var _0x522ad8=_0x522a();var _0x835b4=_0x522ad8[_0x544b63];return _0x835b4;}function _0x522a(){var _0x55fb53=['@univerjs-pro/docs-formula','3026335tACCzn','rangeId','_docsFormulaResourceLoaderService','extend','createInstance','length','ICommandService','string','defineProperty','IUniverInstanceService','48iuRlVS','getId','_document','body','FDocument','_model','get','_injector','call','getFormulaAt','_unitId','DocFormulaService','toStringTag','syncExecuteCommand','filter','numberFormat','getOwnPropertyDescriptor','update','_commandService','endOffset','getUnit','_rangeId','getFormulas','externalReferences','UniverDocsFacade','saveFormulaDisplayTextSnapshot','InsertDocFormulaCommand','object','166220XzLzDv','_docsFormulaDisplayTextService','ConvertDocFormulaToTextCommand','startOffset','_service','_createFormula','418306qkWYyG','degradeDocumentData','getRange','_docsFormulaCommandService','_getCompleteRanges','_initialize','end','map','getConfig','getResult','getBody','_getCustomRange','constructor','FDocumentTextRange','endIndex','UNIVER_DOC','UniverProDocsFormula','find','getSegmentId','6144fLWBfi','FDocumentFormula','isDocFormulaRange','insertFormula','2393KEsCbA','paragraph','getSnapshot','setNumberFormat','406PZjcFR','decorate','symbol','startIndex','SetDocFormulaNumberFormatCommand','iterator','getFormula','_docsFormulaModel','range','13530qYQWxY','DocFormulaModel','appendFormula','Inject','remove','saveUnit','customRanges','4265433KXRGcK','Module','UniverInstanceType','@univerjs/core','replaceWithFormula','function','exports','toPrimitive','2008260NXTGSv','convertToText','formula','IResourceLoaderService','UniverCore','6kLetHA','_univerInstanceService','3yULjGW','describe','UpdateDocFormulaCommand','_insert'];_0x522a=function(){return _0x55fb53;};return _0x522a();}(function(_0x1a319f,_0x138b7a){var _0x4cdb03=_0x835b,_0x3622e2=_0x1a319f();while(!![]){try{var _0x124398=-parseInt(_0x4cdb03(0x18c))/0x1*(-parseInt(_0x4cdb03(0x190))/0x2)+-parseInt(_0x4cdb03(0x144))/0x3*(parseInt(_0x4cdb03(0x16f))/0x4)+parseInt(_0x4cdb03(0x149))/0x5*(parseInt(_0x4cdb03(0x142))/0x6)+-parseInt(_0x4cdb03(0x175))/0x7*(parseInt(_0x4cdb03(0x153))/0x8)+parseInt(_0x4cdb03(0x1a0))/0x9+-parseInt(_0x4cdb03(0x13d))/0xa+-parseInt(_0x4cdb03(0x199))/0xb*(parseInt(_0x4cdb03(0x188))/0xc);if(_0x124398===_0x138b7a)break;else _0x3622e2['push'](_0x3622e2['shift']());}catch(_0x5e96fc){_0x3622e2['push'](_0x3622e2['shift']());}}}(_0x522a,0x519d6),function(_0xec9df5,_0x890dec){var _0x1efbd0=_0x835b;typeof exports==_0x1efbd0(0x16e)&&typeof module<'u'?_0x890dec(exports,require('@univerjs-pro/docs-formula'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define=='function'&&define['amd']?define([_0x1efbd0(0x13b),_0x1efbd0(0x148),_0x1efbd0(0x138),'@univerjs/docs/facade'],_0x890dec):(_0xec9df5=typeof globalThis<'u'?globalThis:_0xec9df5||self,_0x890dec(_0xec9df5['UniverProDocsFormulaFacade']={},_0xec9df5[_0x1efbd0(0x185)],_0xec9df5[_0x1efbd0(0x141)],_0xec9df5[_0x1efbd0(0x16b)]));}(this,function(_0x24d214,_0x4e9bb1,_0x2d50a6,_0x21c7c4){var _0xfafe69=_0x835b;Object[_0xfafe69(0x151)](_0x24d214,Symbol[_0xfafe69(0x15f)],{'value':_0xfafe69(0x1a1)});function _0x171a71(_0x1e496f,_0x3fc976){return function(_0x48dc0f,_0x39cfa4){_0x3fc976(_0x48dc0f,_0x39cfa4,_0x1e496f);};}function _0xe4c0ca(_0xf207c9,_0x2a8105,_0x143219,_0x5971bf){var _0x42a0a6=_0xfafe69,_0x2da23b=arguments[_0x42a0a6(0x14e)],_0x28c589=_0x2da23b<0x3?_0x2a8105:_0x5971bf===null?_0x5971bf=Object[_0x42a0a6(0x163)](_0x2a8105,_0x143219):_0x5971bf,_0x3724dd;if(typeof Reflect=='object'&&typeof Reflect[_0x42a0a6(0x191)]==_0x42a0a6(0x13a))_0x28c589=Reflect[_0x42a0a6(0x191)](_0xf207c9,_0x2a8105,_0x143219,_0x5971bf);else{for(var _0x172a07=_0xf207c9[_0x42a0a6(0x14e)]-0x1;_0x172a07>=0x0;_0x172a07--)(_0x3724dd=_0xf207c9[_0x172a07])&&(_0x28c589=(_0x2da23b<0x3?_0x3724dd(_0x28c589):_0x2da23b>0x3?_0x3724dd(_0x2a8105,_0x143219,_0x28c589):_0x3724dd(_0x2a8105,_0x143219))||_0x28c589);}return _0x2da23b>0x3&&_0x28c589&&Object['defineProperty'](_0x2a8105,_0x143219,_0x28c589),_0x28c589;}let _0x323e96=class{constructor(_0x249e3b,_0x3b6042,_0x68d74,_0x200eb1,_0x2877e4,_0x3134ba){var _0x209dfd=_0xfafe69;this['_unitId']=_0x249e3b,this['_rangeId']=_0x3b6042,this[_0x209dfd(0x165)]=_0x68d74,this[_0x209dfd(0x158)]=_0x200eb1,this[_0x209dfd(0x173)]=_0x2877e4,this[_0x209dfd(0x143)]=_0x3134ba;}[_0xfafe69(0x154)](){var _0x2d9873=_0xfafe69;return this[_0x2d9873(0x168)];}['getRange'](){var _0x15a067=_0xfafe69;let _0x5e1f3a=this[_0x15a067(0x180)]();return _0x5e1f3a?{'endOffset':_0x5e1f3a[_0x15a067(0x183)]+0x1,'rangeId':_0x5e1f3a[_0x15a067(0x14a)],'startOffset':_0x5e1f3a[_0x15a067(0x193)]}:null;}['getFormula'](){var _0x4a8876=_0xfafe69,_0x20d69d;return((_0x20d69d=this[_0x4a8876(0x158)][_0x4a8876(0x196)](this[_0x4a8876(0x15d)],this[_0x4a8876(0x168)]))==null?void 0x0:_0x20d69d[_0x4a8876(0x13f)])??'';}[_0xfafe69(0x17d)](){var _0x12ae76=_0xfafe69;return this[_0x12ae76(0x158)][_0x12ae76(0x196)](this[_0x12ae76(0x15d)],this[_0x12ae76(0x168)])??null;}['getResult'](){var _0x3d5cc2=_0xfafe69;return this[_0x3d5cc2(0x173)][_0x3d5cc2(0x17e)]({'unitId':this[_0x3d5cc2(0x15d)],'rangeId':this[_0x3d5cc2(0x168)]})??null;}[_0xfafe69(0x145)](){var _0x5390d9=_0xfafe69;let _0x7002ec=this[_0x5390d9(0x177)](),_0x2fbbde=this[_0x5390d9(0x17d)](),_0x105f06=this[_0x5390d9(0x17e)]();return!_0x7002ec||!_0x2fbbde||!_0x105f06?null:{..._0x7002ec,'config':_0x2fbbde,'formula':_0x2fbbde[_0x5390d9(0x13f)],'result':_0x105f06,'type':_0x5390d9(0x13f)};}[_0xfafe69(0x164)](_0x3107d3){var _0x533da0=_0xfafe69;return this[_0x533da0(0x165)][_0x533da0(0x160)](_0x4e9bb1[_0x533da0(0x146)]['id'],{'externalReferences':_0x3107d3[_0x533da0(0x16a)],'formula':_0x3107d3[_0x533da0(0x13f)],'numberFormat':_0x3107d3[_0x533da0(0x162)],'rangeId':this[_0x533da0(0x168)],'unitId':this[_0x533da0(0x15d)]});}[_0xfafe69(0x18f)](_0x299db9){var _0x42ee24=_0xfafe69;return this[_0x42ee24(0x165)][_0x42ee24(0x160)](_0x4e9bb1[_0x42ee24(0x194)]['id'],{'numberFormat':_0x299db9,'rangeId':this[_0x42ee24(0x168)],'unitId':this[_0x42ee24(0x15d)]});}[_0xfafe69(0x19d)](){var _0x5095db=_0xfafe69;return this[_0x5095db(0x165)][_0x5095db(0x160)](_0x4e9bb1['RemoveDocFormulaCommand']['id'],{'rangeId':this[_0x5095db(0x168)],'unitId':this[_0x5095db(0x15d)]});}['replaceWithText'](_0x51f907){var _0x4c8dde=_0xfafe69;return this[_0x4c8dde(0x165)][_0x4c8dde(0x160)](_0x4e9bb1['ReplaceDocFormulaWithTextCommand']['id'],{'rangeId':this[_0x4c8dde(0x168)],'text':_0x51f907,'unitId':this['_unitId']});}[_0xfafe69(0x13e)](){var _0x27ae0a=_0xfafe69;return this[_0x27ae0a(0x165)][_0x27ae0a(0x160)](_0x4e9bb1[_0x27ae0a(0x171)]['id'],{'rangeId':this[_0x27ae0a(0x168)],'unitId':this[_0x27ae0a(0x15d)]});}[_0xfafe69(0x180)](){var _0x101862=_0xfafe69,_0x234af3;let _0x5b597c=this[_0x101862(0x143)][_0x101862(0x167)](this[_0x101862(0x15d)],_0x2d50a6[_0x101862(0x1a2)][_0x101862(0x184)]);return _0x5b597c==null||(_0x234af3=_0x5b597c[_0x101862(0x18e)]()[_0x101862(0x156)])==null||(_0x234af3=_0x234af3[_0x101862(0x19f)])==null?void 0x0:_0x234af3[_0x101862(0x186)](_0x3771df=>_0x3771df[_0x101862(0x14a)]===this[_0x101862(0x168)]&&(0x0,_0x4e9bb1[_0x101862(0x18a)])(_0x3771df));}};_0x323e96=_0xe4c0ca([_0x171a71(0x2,_0x2d50a6[_0xfafe69(0x14f)]),_0x171a71(0x3,(0x0,_0x2d50a6[_0xfafe69(0x19c)])(_0x4e9bb1['DocFormulaModel'])),_0x171a71(0x4,(0x0,_0x2d50a6['Inject'])(_0x4e9bb1[_0xfafe69(0x15e)])),_0x171a71(0x5,_0x2d50a6[_0xfafe69(0x152)])],_0x323e96);function _0x261570(_0x1c69ec){'@babel/helpers - typeof';var _0x301130=_0xfafe69;return _0x261570=typeof Symbol==_0x301130(0x13a)&&typeof Symbol[_0x301130(0x195)]==_0x301130(0x192)?function(_0x2e3d4e){return typeof _0x2e3d4e;}:function(_0x5b487e){var _0x1aaef4=_0x301130;return _0x5b487e&&typeof Symbol==_0x1aaef4(0x13a)&&_0x5b487e[_0x1aaef4(0x181)]===Symbol&&_0x5b487e!==Symbol['prototype']?_0x1aaef4(0x192):typeof _0x5b487e;},_0x261570(_0x1c69ec);}function _0x3e48b9(_0x38cb28,_0x188415){var _0x366717=_0xfafe69;if(_0x261570(_0x38cb28)!=_0x366717(0x16e)||!_0x38cb28)return _0x38cb28;var _0x3c40e9=_0x38cb28[Symbol[_0x366717(0x13c)]];if(_0x3c40e9!==void 0x0){var _0xd36cab=_0x3c40e9[_0x366717(0x15b)](_0x38cb28,_0x188415||'default');if(_0x261570(_0xd36cab)!=_0x366717(0x16e))return _0xd36cab;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x188415===_0x366717(0x150)?String:Number)(_0x38cb28);}function _0x16efab(_0x46be26){var _0x3c0a49=_0xfafe69,_0x1ab4cc=_0x3e48b9(_0x46be26,_0x3c0a49(0x150));return _0x261570(_0x1ab4cc)==_0x3c0a49(0x192)?_0x1ab4cc:_0x1ab4cc+'';}function _0x3dd66a(_0x29db3d,_0xd0ff7e,_0xdb13d){return(_0xd0ff7e=_0x16efab(_0xd0ff7e))in _0x29db3d?Object['defineProperty'](_0x29db3d,_0xd0ff7e,{'value':_0xdb13d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x29db3d[_0xd0ff7e]=_0xdb13d,_0x29db3d;}var _0x559f69=class extends _0x21c7c4[_0xfafe69(0x157)]{constructor(..._0x1470e7){var _0x32f9ef=_0xfafe69;super(..._0x1470e7),_0x3dd66a(this,'_docsFormulaCommandService',void 0x0),_0x3dd66a(this,'_docsFormulaDisplayTextService',void 0x0),_0x3dd66a(this,_0x32f9ef(0x197),void 0x0),_0x3dd66a(this,_0x32f9ef(0x14b),void 0x0);}[_0xfafe69(0x17a)](_0x13f88b){var _0x1585fb=_0xfafe69;this[_0x1585fb(0x178)]=_0x13f88b[_0x1585fb(0x159)](_0x2d50a6[_0x1585fb(0x14f)]),this[_0x1585fb(0x170)]=_0x13f88b[_0x1585fb(0x159)](_0x4e9bb1['DocFormulaDisplayTextService']),this['_docsFormulaModel']=_0x13f88b[_0x1585fb(0x159)](_0x4e9bb1[_0x1585fb(0x19a)]),this[_0x1585fb(0x14b)]=_0x13f88b[_0x1585fb(0x159)](_0x2d50a6[_0x1585fb(0x140)]);}[_0xfafe69(0x169)](){var _0x507895=_0xfafe69;return this[_0x507895(0x179)]()[_0x507895(0x17c)](_0xafe7aa=>this['_createFormula'](_0xafe7aa[_0x507895(0x14a)]));}[_0xfafe69(0x196)](_0x36aa9f){var _0x2a77ed=_0xfafe69;return this[_0x2a77ed(0x179)]()['some'](_0x1f16eb=>_0x1f16eb[_0x2a77ed(0x14a)]===_0x36aa9f)?this[_0x2a77ed(0x174)](_0x36aa9f):null;}[_0xfafe69(0x15c)](_0x17ca22){var _0x4df485=_0xfafe69;let _0x5c2744=this[_0x4df485(0x179)]()[_0x4df485(0x186)](_0x4d7e3c=>_0x4d7e3c[_0x4df485(0x193)]<=_0x17ca22&&_0x17ca22<=_0x4d7e3c[_0x4df485(0x183)]);return _0x5c2744?this[_0x4df485(0x174)](_0x5c2744[_0x4df485(0x14a)]):null;}[_0xfafe69(0x16c)](){var _0x496f3b=_0xfafe69;let _0x15aefc=this[_0x496f3b(0x14b)][_0x496f3b(0x19e)](this['id']);if(!_0x15aefc)throw Error('Document\x20'+this['id']+'\x20could\x20not\x20be\x20serialized.');return this[_0x496f3b(0x170)][_0x496f3b(0x176)](_0x15aefc);}[_0xfafe69(0x18b)](_0x47b364){var _0x314ea0=_0xfafe69;return this[_0x314ea0(0x147)]({'externalReferences':_0x47b364[_0x314ea0(0x16a)],'formula':_0x47b364['formula'],'numberFormat':_0x47b364[_0x314ea0(0x162)],'target':{'type':_0x314ea0(0x198),'startOffset':_0x47b364[_0x314ea0(0x172)],'endOffset':_0x47b364[_0x314ea0(0x166)]},'unitId':this[_0x314ea0(0x154)]()});}[_0xfafe69(0x147)](_0x1b4372){var _0x40daf3=_0xfafe69;let _0xed3cd1=this[_0x40daf3(0x178)][_0x40daf3(0x160)](_0x4e9bb1[_0x40daf3(0x16d)]['id'],_0x1b4372);return _0xed3cd1?this['_createFormula'](_0xed3cd1[_0x40daf3(0x14a)]):null;}[_0xfafe69(0x179)](){var _0x3217c9=_0xfafe69,_0x59e78e;let _0x201166=this['_docsFormulaModel']['getFormulas'](this[_0x3217c9(0x154)]());return((_0x59e78e=this[_0x3217c9(0x17f)]('')[_0x3217c9(0x19f)])==null?void 0x0:_0x59e78e[_0x3217c9(0x161)](_0x21e0e6=>(0x0,_0x4e9bb1['isDocFormulaRange'])(_0x21e0e6)&&_0x201166[_0x21e0e6[_0x3217c9(0x14a)]]!=null))??[];}[_0xfafe69(0x174)](_0xc9e9df){var _0x248714=_0xfafe69;return this[_0x248714(0x15a)]['createInstance'](_0x323e96,this['getId'](),_0xc9e9df);}};_0x21c7c4['FDocument'][_0xfafe69(0x14c)](_0x559f69);var _0x456db2=class extends _0x21c7c4['FDocumentParagraph']{constructor(..._0x61f11d){super(..._0x61f11d),_0x3dd66a(this,'_docsFormulaCommandService',void 0x0);}[_0xfafe69(0x17a)](_0x3ff264){var _0x1a8afe=_0xfafe69;this[_0x1a8afe(0x178)]=_0x3ff264[_0x1a8afe(0x159)](_0x2d50a6[_0x1a8afe(0x14f)]);}['insertFormula'](_0x168a72,_0x3103fc,_0x246e47={}){var _0x5a6067=_0xfafe69;return this[_0x5a6067(0x147)](_0x168a72,_0x3103fc,_0x246e47);}[_0xfafe69(0x19b)](_0x544828,_0x3ac5c8={}){var _0x49bab2=_0xfafe69;return this[_0x49bab2(0x147)](_0x49bab2(0x17b),_0x544828,_0x3ac5c8);}[_0xfafe69(0x147)](_0x18f0d8,_0x44890c,_0x29f440){var _0xe812a5=_0xfafe69;if(this[_0xe812a5(0x187)]())return null;let _0x2ccc2d={'externalReferences':_0x29f440[_0xe812a5(0x16a)],'formula':_0x44890c,'numberFormat':_0x29f440[_0xe812a5(0x162)],'target':{'type':_0xe812a5(0x18d),'paragraphId':this[_0xe812a5(0x154)](),'position':_0x18f0d8},'unitId':this[_0xe812a5(0x155)]['getId']()},_0x24f179=this[_0xe812a5(0x178)][_0xe812a5(0x160)](_0x4e9bb1[_0xe812a5(0x16d)]['id'],_0x2ccc2d);return _0x24f179?this[_0xe812a5(0x15a)][_0xe812a5(0x14d)](_0x323e96,this[_0xe812a5(0x155)]['getId'](),_0x24f179['rangeId']):null;}};_0x21c7c4['FDocumentParagraph'][_0xfafe69(0x14c)](_0x456db2);var _0x16c1a9=class extends _0x21c7c4[_0xfafe69(0x182)]{constructor(..._0x5830d8){var _0x6ab9fd=_0xfafe69;super(..._0x5830d8),_0x3dd66a(this,_0x6ab9fd(0x178),void 0x0);}[_0xfafe69(0x17a)](_0x14e310){var _0xf99811=_0xfafe69;this[_0xf99811(0x178)]=_0x14e310['get'](_0x2d50a6[_0xf99811(0x14f)]);}[_0xfafe69(0x139)](_0x18cd20,_0x23a1e9={}){var _0x16c164=_0xfafe69;let {endOffset:_0x3c14b8,segmentId:_0xb07f74,startOffset:_0x3a9442}=this['getRange']();return _0xb07f74?null:this[_0x16c164(0x147)](_0x3a9442,_0x3c14b8,_0x18cd20,_0x23a1e9);}[_0xfafe69(0x147)](_0x5215fb,_0x5ae852,_0x30cfb1,_0x2c4130){var _0x147618=_0xfafe69;let _0x2f7a8d={'externalReferences':_0x2c4130[_0x147618(0x16a)],'formula':_0x30cfb1,'numberFormat':_0x2c4130[_0x147618(0x162)],'target':{'type':_0x147618(0x198),'startOffset':_0x5215fb,'endOffset':_0x5ae852},'unitId':this[_0x147618(0x155)][_0x147618(0x154)]()},_0x27e9d2=this[_0x147618(0x178)]['syncExecuteCommand'](_0x4e9bb1[_0x147618(0x16d)]['id'],_0x2f7a8d);return _0x27e9d2?this[_0x147618(0x15a)][_0x147618(0x14d)](_0x323e96,this[_0x147618(0x155)][_0x147618(0x154)](),_0x27e9d2[_0x147618(0x14a)]):null;}};_0x21c7c4[_0xfafe69(0x182)][_0xfafe69(0x14c)](_0x16c1a9),Object[_0xfafe69(0x151)](_0x24d214,_0xfafe69(0x189),{'enumerable':!0x0,'get':function(){return _0x323e96;}});}));
|
|
1
|
+
function _0x419c(_0x2a0b32,_0x512560){_0x2a0b32=_0x2a0b32-0x150;var _0xd3d84b=_0xd3d8();var _0x419cd0=_0xd3d84b[_0x2a0b32];return _0x419cd0;}(function(_0x2d307f,_0x549103){var _0x2ed234=_0x419c,_0x278d59=_0x2d307f();while(!![]){try{var _0x46282c=-parseInt(_0x2ed234(0x183))/0x1+-parseInt(_0x2ed234(0x154))/0x2*(-parseInt(_0x2ed234(0x1b3))/0x3)+parseInt(_0x2ed234(0x19c))/0x4*(parseInt(_0x2ed234(0x187))/0x5)+-parseInt(_0x2ed234(0x1b1))/0x6+parseInt(_0x2ed234(0x189))/0x7+-parseInt(_0x2ed234(0x18b))/0x8+parseInt(_0x2ed234(0x1a3))/0x9*(parseInt(_0x2ed234(0x16c))/0xa);if(_0x46282c===_0x549103)break;else _0x278d59['push'](_0x278d59['shift']());}catch(_0x14a08b){_0x278d59['push'](_0x278d59['shift']());}}}(_0xd3d8,0xb3775),function(_0x298e19,_0x1a7796){var _0x111c65=_0x419c;typeof exports=='object'&&typeof module<'u'?_0x1a7796(exports,require('@univerjs-pro/docs-formula'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define==_0x111c65(0x16b)&&define[_0x111c65(0x17d)]?define([_0x111c65(0x178),_0x111c65(0x17e),_0x111c65(0x188),_0x111c65(0x1b2)],_0x1a7796):(_0x298e19=typeof globalThis<'u'?globalThis:_0x298e19||self,_0x1a7796(_0x298e19[_0x111c65(0x1ad)]={},_0x298e19[_0x111c65(0x164)],_0x298e19[_0x111c65(0x170)],_0x298e19['UniverDocsFacade']));}(this,function(_0x5b7d60,_0x2fe1f7,_0x441308,_0x4108d7){var _0x3252f4=_0x419c;Object[_0x3252f4(0x175)](_0x5b7d60,Symbol[_0x3252f4(0x16a)],{'value':_0x3252f4(0x161)});function _0x1b212e(_0x5b7da8,_0x32908f){return function(_0x46b322,_0x22ebfd){_0x32908f(_0x46b322,_0x22ebfd,_0x5b7da8);};}function _0x2cd8c0(_0xd0bd6e,_0x2a443,_0x3bbcb9,_0x30fa3c){var _0x542cc3=_0x3252f4,_0x231160=arguments[_0x542cc3(0x1a4)],_0x76f38e=_0x231160<0x3?_0x2a443:_0x30fa3c===null?_0x30fa3c=Object[_0x542cc3(0x163)](_0x2a443,_0x3bbcb9):_0x30fa3c,_0x473495;if(typeof Reflect=='object'&&typeof Reflect[_0x542cc3(0x18f)]==_0x542cc3(0x16b))_0x76f38e=Reflect[_0x542cc3(0x18f)](_0xd0bd6e,_0x2a443,_0x3bbcb9,_0x30fa3c);else{for(var _0x346ca5=_0xd0bd6e[_0x542cc3(0x1a4)]-0x1;_0x346ca5>=0x0;_0x346ca5--)(_0x473495=_0xd0bd6e[_0x346ca5])&&(_0x76f38e=(_0x231160<0x3?_0x473495(_0x76f38e):_0x231160>0x3?_0x473495(_0x2a443,_0x3bbcb9,_0x76f38e):_0x473495(_0x2a443,_0x3bbcb9))||_0x76f38e);}return _0x231160>0x3&&_0x76f38e&&Object[_0x542cc3(0x175)](_0x2a443,_0x3bbcb9,_0x76f38e),_0x76f38e;}let _0x3e9ac5=class{constructor(_0x63b2bd,_0x140738,_0x364b99,_0x11d501,_0x3c40fe,_0x378522){var _0x15b137=_0x3252f4;this['_unitId']=_0x63b2bd,this['_rangeId']=_0x140738,this[_0x15b137(0x168)]=_0x364b99,this[_0x15b137(0x153)]=_0x11d501,this[_0x15b137(0x1a7)]=_0x3c40fe,this[_0x15b137(0x184)]=_0x378522;}['getId'](){var _0x52db65=_0x3252f4;return this[_0x52db65(0x1a6)];}[_0x3252f4(0x177)](){var _0x33c9b4=_0x3252f4;let _0x37bc41=this['_getCustomRange']();return _0x37bc41?{'endOffset':_0x37bc41[_0x33c9b4(0x198)]+0x1,'rangeId':_0x37bc41[_0x33c9b4(0x18e)],'startOffset':_0x37bc41[_0x33c9b4(0x18d)]}:null;}[_0x3252f4(0x1a5)](){var _0x2c4e76=_0x3252f4,_0x255e97;return((_0x255e97=this['_model'][_0x2c4e76(0x1a5)](this[_0x2c4e76(0x17b)],this[_0x2c4e76(0x1a6)]))==null?void 0x0:_0x255e97[_0x2c4e76(0x191)])??'';}[_0x3252f4(0x192)](){var _0x39116d=_0x3252f4;return this[_0x39116d(0x153)][_0x39116d(0x1a5)](this['_unitId'],this[_0x39116d(0x1a6)])??null;}[_0x3252f4(0x15f)](){var _0x476732=_0x3252f4;return this[_0x476732(0x1a7)][_0x476732(0x15f)]({'unitId':this['_unitId'],'rangeId':this[_0x476732(0x1a6)]})??null;}['describe'](){var _0x2722e2=_0x3252f4;let _0xe5f993=this[_0x2722e2(0x177)](),_0x4ca038=this['getConfig'](),_0x295526=this['getResult']();return!_0xe5f993||!_0x4ca038||!_0x295526?null:{..._0xe5f993,'config':_0x4ca038,'formula':_0x4ca038[_0x2722e2(0x191)],'result':_0x295526,'type':_0x2722e2(0x191)};}[_0x3252f4(0x190)](_0x2904a8){var _0x431f99=_0x3252f4;return this['_commandService'][_0x431f99(0x174)](_0x2fe1f7['UpdateDocFormulaCommand']['id'],{'externalReferences':_0x2904a8['externalReferences'],'formula':_0x2904a8['formula'],'numberFormat':_0x2904a8[_0x431f99(0x151)],'rangeId':this[_0x431f99(0x1a6)],'unitId':this[_0x431f99(0x17b)]});}[_0x3252f4(0x195)](_0x4f72da){var _0x12a04c=_0x3252f4;return this['_commandService'][_0x12a04c(0x174)](_0x2fe1f7['SetDocFormulaNumberFormatCommand']['id'],{'numberFormat':_0x4f72da,'rangeId':this['_rangeId'],'unitId':this[_0x12a04c(0x17b)]});}[_0x3252f4(0x15d)](){var _0x11fcc4=_0x3252f4;return this[_0x11fcc4(0x168)][_0x11fcc4(0x174)](_0x2fe1f7[_0x11fcc4(0x166)]['id'],{'rangeId':this[_0x11fcc4(0x1a6)],'unitId':this[_0x11fcc4(0x17b)]});}[_0x3252f4(0x16e)](_0x461c4b){var _0x3ba7a2=_0x3252f4;return this[_0x3ba7a2(0x168)][_0x3ba7a2(0x174)](_0x2fe1f7['ReplaceDocFormulaWithTextCommand']['id'],{'rangeId':this[_0x3ba7a2(0x1a6)],'text':_0x461c4b,'unitId':this[_0x3ba7a2(0x17b)]});}['convertToText'](){var _0x19131b=_0x3252f4;return this['_commandService']['syncExecuteCommand'](_0x2fe1f7[_0x19131b(0x173)]['id'],{'rangeId':this[_0x19131b(0x1a6)],'unitId':this[_0x19131b(0x17b)]});}[_0x3252f4(0x1ae)](){var _0x5503ff=_0x3252f4,_0x56d861;let _0xa1b5b=this['_univerInstanceService'][_0x5503ff(0x199)](this['_unitId'],_0x441308['UniverInstanceType'][_0x5503ff(0x159)]);return _0xa1b5b==null||(_0x56d861=_0xa1b5b['getSnapshot']()[_0x5503ff(0x1af)])==null||(_0x56d861=_0x56d861[_0x5503ff(0x18c)])==null?void 0x0:_0x56d861[_0x5503ff(0x1ac)](_0x2fdfa7=>_0x2fdfa7[_0x5503ff(0x18e)]===this[_0x5503ff(0x1a6)]&&(0x0,_0x2fe1f7[_0x5503ff(0x172)])(_0x2fdfa7));}};_0x3e9ac5=_0x2cd8c0([_0x1b212e(0x2,_0x441308['ICommandService']),_0x1b212e(0x3,(0x0,_0x441308[_0x3252f4(0x193)])(_0x2fe1f7['DocFormulaModel'])),_0x1b212e(0x4,(0x0,_0x441308['Inject'])(_0x2fe1f7[_0x3252f4(0x1aa)])),_0x1b212e(0x5,_0x441308['IUniverInstanceService'])],_0x3e9ac5);function _0x2cef9e(_0x4069ec){'@babel/helpers - typeof';var _0x4ddc0e=_0x3252f4;return _0x2cef9e=typeof Symbol==_0x4ddc0e(0x16b)&&typeof Symbol[_0x4ddc0e(0x179)]==_0x4ddc0e(0x15a)?function(_0x2070e3){return typeof _0x2070e3;}:function(_0x419956){var _0x3238a6=_0x4ddc0e;return _0x419956&&typeof Symbol==_0x3238a6(0x16b)&&_0x419956['constructor']===Symbol&&_0x419956!==Symbol['prototype']?_0x3238a6(0x15a):typeof _0x419956;},_0x2cef9e(_0x4069ec);}function _0x47c7ad(_0x44ba95,_0x56fa38){var _0x1d72ee=_0x3252f4;if(_0x2cef9e(_0x44ba95)!=_0x1d72ee(0x19d)||!_0x44ba95)return _0x44ba95;var _0x586a22=_0x44ba95[Symbol[_0x1d72ee(0x152)]];if(_0x586a22!==void 0x0){var _0x50f7cd=_0x586a22[_0x1d72ee(0x186)](_0x44ba95,_0x56fa38||'default');if(_0x2cef9e(_0x50f7cd)!=_0x1d72ee(0x19d))return _0x50f7cd;throw TypeError(_0x1d72ee(0x1a0));}return(_0x56fa38===_0x1d72ee(0x1ab)?String:Number)(_0x44ba95);}function _0x45c2dc(_0x124069){var _0x354079=_0x3252f4,_0x5661d1=_0x47c7ad(_0x124069,_0x354079(0x1ab));return _0x2cef9e(_0x5661d1)==_0x354079(0x15a)?_0x5661d1:_0x5661d1+'';}function _0x417c3c(_0x51894c,_0x308807,_0x7620a1){var _0x421cd9=_0x3252f4;return(_0x308807=_0x45c2dc(_0x308807))in _0x51894c?Object[_0x421cd9(0x175)](_0x51894c,_0x308807,{'value':_0x7620a1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x51894c[_0x308807]=_0x7620a1,_0x51894c;}var _0x4b28ea=class extends _0x4108d7[_0x3252f4(0x19f)]{constructor(..._0x2d8f53){var _0x4ef210=_0x3252f4;super(..._0x2d8f53),_0x417c3c(this,'_docsFormulaCommandService',void 0x0),_0x417c3c(this,_0x4ef210(0x155),void 0x0),_0x417c3c(this,_0x4ef210(0x1a1),void 0x0),_0x417c3c(this,_0x4ef210(0x162),void 0x0);}[_0x3252f4(0x15c)](_0x685f0){var _0x1ee3e0=_0x3252f4;this['_docsFormulaCommandService']=_0x685f0[_0x1ee3e0(0x182)](_0x441308['ICommandService']),this['_docsFormulaDisplayTextService']=_0x685f0[_0x1ee3e0(0x182)](_0x2fe1f7[_0x1ee3e0(0x157)]),this[_0x1ee3e0(0x1a1)]=_0x685f0['get'](_0x2fe1f7[_0x1ee3e0(0x196)]),this[_0x1ee3e0(0x162)]=_0x685f0['get'](_0x441308[_0x1ee3e0(0x185)]);}[_0x3252f4(0x194)](){var _0x5ba7e6=_0x3252f4;return this['_getCompleteRanges']()['map'](_0x4ccd43=>this[_0x5ba7e6(0x176)](_0x4ccd43[_0x5ba7e6(0x18e)]));}['getFormula'](_0x865a11){var _0x25272f=_0x3252f4;return this['_getCompleteRanges']()[_0x25272f(0x17a)](_0x1af4a0=>_0x1af4a0[_0x25272f(0x18e)]===_0x865a11)?this[_0x25272f(0x176)](_0x865a11):null;}[_0x3252f4(0x18a)](_0x11ee0e){var _0x1aba1e=_0x3252f4;let _0xaeb250=this[_0x1aba1e(0x165)]()[_0x1aba1e(0x1ac)](_0x14d7f1=>_0x14d7f1[_0x1aba1e(0x18d)]<=_0x11ee0e&&_0x11ee0e<=_0x14d7f1[_0x1aba1e(0x198)]);return _0xaeb250?this['_createFormula'](_0xaeb250[_0x1aba1e(0x18e)]):null;}[_0x3252f4(0x19e)](){var _0x1f7c4d=_0x3252f4;let _0x8039fd=this[_0x1f7c4d(0x162)][_0x1f7c4d(0x16d)](this['id']);if(!_0x8039fd)throw Error(_0x1f7c4d(0x15b)+this['id']+_0x1f7c4d(0x1a9));return this[_0x1f7c4d(0x155)][_0x1f7c4d(0x19a)](_0x8039fd);}[_0x3252f4(0x1b0)](_0x11eb4a){var _0x1cb9a3=_0x3252f4;return this['_insert']({'externalReferences':_0x11eb4a[_0x1cb9a3(0x160)],'formula':_0x11eb4a[_0x1cb9a3(0x191)],'numberFormat':_0x11eb4a[_0x1cb9a3(0x151)],'target':{'type':'range','startOffset':_0x11eb4a['startOffset'],'endOffset':_0x11eb4a[_0x1cb9a3(0x171)]},'unitId':this[_0x1cb9a3(0x17c)]()});}[_0x3252f4(0x167)](_0x3a57c5){var _0x4fdfaf=_0x3252f4;let _0x129bd2=this[_0x4fdfaf(0x1a8)]['syncExecuteCommand'](_0x2fe1f7[_0x4fdfaf(0x1a2)]['id'],_0x3a57c5);return _0x129bd2?this['_createFormula'](_0x129bd2[_0x4fdfaf(0x18e)]):null;}[_0x3252f4(0x165)](){var _0x25b50e=_0x3252f4,_0x189eae;let _0x43f32c=this['_docsFormulaModel']['getFormulas'](this['getId']());return((_0x189eae=this['getBody']('')[_0x25b50e(0x18c)])==null?void 0x0:_0x189eae[_0x25b50e(0x158)](_0x52677c=>(0x0,_0x2fe1f7[_0x25b50e(0x172)])(_0x52677c)&&_0x43f32c[_0x52677c[_0x25b50e(0x18e)]]!=null))??[];}['_createFormula'](_0x11a10d){var _0x4e89d7=_0x3252f4;return this[_0x4e89d7(0x16f)][_0x4e89d7(0x197)](_0x3e9ac5,this['getId'](),_0x11a10d);}};_0x4108d7[_0x3252f4(0x19f)]['extend'](_0x4b28ea);var _0x321beb=class extends _0x4108d7[_0x3252f4(0x15e)]{constructor(..._0x5b7525){var _0x1b6933=_0x3252f4;super(..._0x5b7525),_0x417c3c(this,_0x1b6933(0x1a8),void 0x0);}['_initialize'](_0x37a851){var _0x1655ae=_0x3252f4;this[_0x1655ae(0x1a8)]=_0x37a851[_0x1655ae(0x182)](_0x441308[_0x1655ae(0x17f)]);}[_0x3252f4(0x1b0)](_0x55f5f6,_0x42e2a1,_0x45941d={}){var _0x16af19=_0x3252f4;return this[_0x16af19(0x167)](_0x55f5f6,_0x42e2a1,_0x45941d);}['appendFormula'](_0x1d9d7f,_0x592152={}){var _0x2cad57=_0x3252f4;return this[_0x2cad57(0x167)]('end',_0x1d9d7f,_0x592152);}[_0x3252f4(0x167)](_0x328e69,_0xa10919,_0x539c7e){var _0x1cf530=_0x3252f4;if(this[_0x1cf530(0x19b)]())return null;let _0x439cde={'externalReferences':_0x539c7e['externalReferences'],'formula':_0xa10919,'numberFormat':_0x539c7e[_0x1cf530(0x151)],'target':{'type':_0x1cf530(0x181),'paragraphId':this['getId'](),'position':_0x328e69},'unitId':this[_0x1cf530(0x156)][_0x1cf530(0x17c)]()},_0x199354=this['_docsFormulaCommandService']['syncExecuteCommand'](_0x2fe1f7[_0x1cf530(0x1a2)]['id'],_0x439cde);return _0x199354?this[_0x1cf530(0x16f)][_0x1cf530(0x197)](_0x3e9ac5,this[_0x1cf530(0x156)]['getId'](),_0x199354['rangeId']):null;}};_0x4108d7['FDocumentParagraph'][_0x3252f4(0x180)](_0x321beb);var _0x56f618=class extends _0x4108d7[_0x3252f4(0x150)]{constructor(..._0x35cdf2){var _0x3227cc=_0x3252f4;super(..._0x35cdf2),_0x417c3c(this,_0x3227cc(0x1a8),void 0x0);}[_0x3252f4(0x15c)](_0x500b80){var _0x4cbe95=_0x3252f4;this[_0x4cbe95(0x1a8)]=_0x500b80[_0x4cbe95(0x182)](_0x441308[_0x4cbe95(0x17f)]);}[_0x3252f4(0x169)](_0x145e18,_0x5d54d3={}){var _0x3cfee5=_0x3252f4;let {endOffset:_0x1e8f2e,segmentId:_0x31902e,startOffset:_0x306ed4}=this[_0x3cfee5(0x177)]();return _0x31902e?null:this[_0x3cfee5(0x167)](_0x306ed4,_0x1e8f2e,_0x145e18,_0x5d54d3);}['_insert'](_0x2a9d44,_0xdfb0cf,_0x17418f,_0x1d0a4d){var _0x5d1c71=_0x3252f4;let _0x31ad38={'externalReferences':_0x1d0a4d[_0x5d1c71(0x160)],'formula':_0x17418f,'numberFormat':_0x1d0a4d[_0x5d1c71(0x151)],'target':{'type':'range','startOffset':_0x2a9d44,'endOffset':_0xdfb0cf},'unitId':this[_0x5d1c71(0x156)][_0x5d1c71(0x17c)]()},_0x2be412=this[_0x5d1c71(0x1a8)][_0x5d1c71(0x174)](_0x2fe1f7[_0x5d1c71(0x1a2)]['id'],_0x31ad38);return _0x2be412?this[_0x5d1c71(0x16f)]['createInstance'](_0x3e9ac5,this['_document'][_0x5d1c71(0x17c)](),_0x2be412[_0x5d1c71(0x18e)]):null;}};_0x4108d7[_0x3252f4(0x150)][_0x3252f4(0x180)](_0x56f618),Object[_0x3252f4(0x175)](_0x5b7d60,'FDocumentFormula',{'enumerable':!0x0,'get':function(){return _0x3e9ac5;}});}));function _0xd3d8(){var _0x14b1bd=['RemoveDocFormulaCommand','_insert','_commandService','replaceWithFormula','toStringTag','function','14510qMOifQ','saveUnit','replaceWithText','_injector','UniverCore','endOffset','isDocFormulaRange','ConvertDocFormulaToTextCommand','syncExecuteCommand','defineProperty','_createFormula','getRange','exports','iterator','some','_unitId','getId','amd','@univerjs-pro/docs-formula','ICommandService','extend','paragraph','get','1456146eVIieS','_univerInstanceService','IResourceLoaderService','call','10XuUWyb','@univerjs/core','3955112HGVPYJ','getFormulaAt','11163776ZsXjRS','customRanges','startIndex','rangeId','decorate','update','formula','getConfig','Inject','getFormulas','setNumberFormat','DocFormulaModel','createInstance','endIndex','getUnit','degradeDocumentData','getSegmentId','2927044nTuRvC','object','saveFormulaDisplayTextSnapshot','FDocument','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_docsFormulaModel','InsertDocFormulaCommand','16668fHMuhE','length','getFormula','_rangeId','_service','_docsFormulaCommandService','\x20could\x20not\x20be\x20serialized.','DocFormulaService','string','find','UniverProDocsFormulaFacade','_getCustomRange','body','insertFormula','7494816CTEUoi','@univerjs/docs/facade','360171wMfQTW','FDocumentTextRange','numberFormat','toPrimitive','_model','2YvDDNd','_docsFormulaDisplayTextService','_document','DocFormulaDisplayTextService','filter','UNIVER_DOC','symbol','Document\x20','_initialize','remove','FDocumentParagraph','getResult','externalReferences','Module','_docsFormulaResourceLoaderService','getOwnPropertyDescriptor','UniverProDocsFormula','_getCompleteRanges'];_0xd3d8=function(){return _0x14b1bd;};return _0xd3d8();}
|