@univerjs-pro/docs-formula 1.0.0-insiders.20260809-70eefdd → 1.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +10 -10
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x80e801=_0x1151;(function(_0x36b83b,_0x376a0e){const _0x528799=_0x1151,_0x1a1393=_0x36b83b();while(!![]){try{const _0x2398af=parseInt(_0x528799(0x1f3))/0x1+parseInt(_0x528799(0x1ee))/0x2+-parseInt(_0x528799(0x1c8))/0x3+parseInt(_0x528799(0x1ce))/0x4*(-parseInt(_0x528799(0x217))/0x5)+-parseInt(_0x528799(0x1d9))/0x6+-parseInt(_0x528799(0x218))/0x7*(parseInt(_0x528799(0x1f9))/0x8)+-parseInt(_0x528799(0x1e3))/0x9*(-parseInt(_0x528799(0x219))/0xa);if(_0x2398af===_0x376a0e)break;else _0x1a1393['push'](_0x1a1393['shift']());}catch(_0x419020){_0x1a1393['push'](_0x1a1393['shift']());}}}(_0x1025,0x56ff0),Object[_0x80e801(0x21e)](exports,Symbol['toStringTag'],{'value':_0x80e801(0x211)}));let e=require('@univerjs-pro/docs-formula'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x34a389,_0x5e5dc0){return function(_0x3c64b4,_0x312bf9){_0x5e5dc0(_0x3c64b4,_0x312bf9,_0x34a389);};}function _0x1025(){const _0x307daa=['decorate','UniverInstanceType','SetDocFormulaNumberFormatCommand','find','218160rSEBNg','_insert','replaceWithText','getBody','describe','421985gcJctQ','toPrimitive','FDocumentParagraph','_injector','InsertDocFormulaCommand','getId','12112oiETpP','_getCompleteRanges','constructor','object','_docsFormulaDisplayTextService','_createFormula','insertFormula','DocFormulaDisplayTextService','saveUnit','_rangeId','length','getConfig','getRange','numberFormat','function','_commandService','FDocumentTextRange','ReplaceDocFormulaWithTextCommand','createInstance','externalReferences','DocFormulaModel','ICommandService','Inject','getFormulas','Module','getFormula','getOwnPropertyDescriptor','UNIVER_DOC','endIndex','getSegmentId','715xBAuXF','651rjFhOX','1520qDgwOz','iterator','setNumberFormat','end','saveFormulaDisplayTextSnapshot','defineProperty','isDocFormulaRange','\x20could\x20not\x20be\x20serialized.','_document','_model','UpdateDocFormulaCommand','symbol','getFormulaAt','some','_univerInstanceService','265503LaMdQX','_unitId','string','_docsFormulaModel','startOffset','_docsFormulaResourceLoaderService','3884vjZwUZ','range','_docsFormulaCommandService','_initialize','paragraph','default','update','getResult','remove','_service','endOffset','2068830LQXXyC','_getCustomRange','rangeId','customRanges','getSnapshot','body','syncExecuteCommand','DocFormulaService','Document\x20','FDocument','31869ICbSAI','get','FDocumentFormula','extend','degradeDocumentData','formula','convertToText'];_0x1025=function(){return _0x307daa;};return _0x1025();}function i(_0x585a71,_0x202b26,_0x4f0094,_0x5d7bab){const _0x3c9af4=_0x80e801;var _0x19c3b4=arguments[_0x3c9af4(0x203)],_0x4ac84e=_0x19c3b4<0x3?_0x202b26:_0x5d7bab===null?_0x5d7bab=Object[_0x3c9af4(0x213)](_0x202b26,_0x4f0094):_0x5d7bab,_0x4b2dee;if(typeof Reflect==_0x3c9af4(0x1fc)&&typeof Reflect[_0x3c9af4(0x1ea)]==_0x3c9af4(0x207))_0x4ac84e=Reflect['decorate'](_0x585a71,_0x202b26,_0x4f0094,_0x5d7bab);else{for(var _0x40a17f=_0x585a71[_0x3c9af4(0x203)]-0x1;_0x40a17f>=0x0;_0x40a17f--)(_0x4b2dee=_0x585a71[_0x40a17f])&&(_0x4ac84e=(_0x19c3b4<0x3?_0x4b2dee(_0x4ac84e):_0x19c3b4>0x3?_0x4b2dee(_0x202b26,_0x4f0094,_0x4ac84e):_0x4b2dee(_0x202b26,_0x4f0094))||_0x4ac84e);}return _0x19c3b4>0x3&&_0x4ac84e&&Object['defineProperty'](_0x202b26,_0x4f0094,_0x4ac84e),_0x4ac84e;}let a=class{constructor(_0x5ada4e,_0xeb267b,_0xbce63d,_0x4da511,_0x441f0c,_0x1a2b31){const _0xd900a4=_0x80e801;this['_unitId']=_0x5ada4e,this[_0xd900a4(0x202)]=_0xeb267b,this['_commandService']=_0xbce63d,this[_0xd900a4(0x1c2)]=_0x4da511,this[_0xd900a4(0x1d7)]=_0x441f0c,this[_0xd900a4(0x1c7)]=_0x1a2b31;}[_0x80e801(0x1f8)](){const _0x59c58e=_0x80e801;return this[_0x59c58e(0x202)];}[_0x80e801(0x205)](){const _0x2a6dcf=_0x80e801;let _0xa7d70d=this[_0x2a6dcf(0x1da)]();return _0xa7d70d?{'endOffset':_0xa7d70d[_0x2a6dcf(0x215)]+0x1,'rangeId':_0xa7d70d[_0x2a6dcf(0x1db)],'startOffset':_0xa7d70d['startIndex']}:null;}[_0x80e801(0x212)](){const _0x4333b8=_0x80e801;var _0x259f98;return((_0x259f98=this[_0x4333b8(0x1c2)]['getFormula'](this[_0x4333b8(0x1c9)],this[_0x4333b8(0x202)]))==null?void 0x0:_0x259f98['formula'])??'';}[_0x80e801(0x204)](){const _0x5398e1=_0x80e801;return this[_0x5398e1(0x1c2)][_0x5398e1(0x212)](this[_0x5398e1(0x1c9)],this[_0x5398e1(0x202)])??null;}[_0x80e801(0x1d5)](){const _0x3fabb1=_0x80e801;return this[_0x3fabb1(0x1d7)][_0x3fabb1(0x1d5)]({'unitId':this['_unitId'],'rangeId':this[_0x3fabb1(0x202)]})??null;}[_0x80e801(0x1f2)](){const _0x50ec1c=_0x80e801;let _0x5b6bae=this[_0x50ec1c(0x205)](),_0x409a7c=this[_0x50ec1c(0x204)](),_0x121a2d=this[_0x50ec1c(0x1d5)]();return!_0x5b6bae||!_0x409a7c||!_0x121a2d?null:{..._0x5b6bae,'config':_0x409a7c,'formula':_0x409a7c['formula'],'result':_0x121a2d,'type':_0x50ec1c(0x1e8)};}[_0x80e801(0x1d4)](_0x45ae7a){const _0x35abaf=_0x80e801;return this[_0x35abaf(0x208)][_0x35abaf(0x1df)](e[_0x35abaf(0x1c3)]['id'],{'externalReferences':_0x45ae7a[_0x35abaf(0x20c)],'formula':_0x45ae7a[_0x35abaf(0x1e8)],'numberFormat':_0x45ae7a[_0x35abaf(0x206)],'rangeId':this[_0x35abaf(0x202)],'unitId':this[_0x35abaf(0x1c9)]});}[_0x80e801(0x21b)](_0x5afc33){const _0x2b0a44=_0x80e801;return this[_0x2b0a44(0x208)][_0x2b0a44(0x1df)](e[_0x2b0a44(0x1ec)]['id'],{'numberFormat':_0x5afc33,'rangeId':this[_0x2b0a44(0x202)],'unitId':this[_0x2b0a44(0x1c9)]});}[_0x80e801(0x1d6)](){const _0x414ace=_0x80e801;return this['_commandService'][_0x414ace(0x1df)](e['RemoveDocFormulaCommand']['id'],{'rangeId':this[_0x414ace(0x202)],'unitId':this[_0x414ace(0x1c9)]});}[_0x80e801(0x1f0)](_0x26c03a){const _0x1fe7d1=_0x80e801;return this['_commandService'][_0x1fe7d1(0x1df)](e[_0x1fe7d1(0x20a)]['id'],{'rangeId':this[_0x1fe7d1(0x202)],'text':_0x26c03a,'unitId':this[_0x1fe7d1(0x1c9)]});}[_0x80e801(0x1e9)](){const _0x527c9d=_0x80e801;return this[_0x527c9d(0x208)]['syncExecuteCommand'](e['ConvertDocFormulaToTextCommand']['id'],{'rangeId':this[_0x527c9d(0x202)],'unitId':this[_0x527c9d(0x1c9)]});}[_0x80e801(0x1da)](){const _0x2aaedb=_0x80e801;var _0x1dd926;let _0x1cc76e=this[_0x2aaedb(0x1c7)]['getUnit'](this[_0x2aaedb(0x1c9)],t[_0x2aaedb(0x1eb)][_0x2aaedb(0x214)]);return _0x1cc76e==null||(_0x1dd926=_0x1cc76e[_0x2aaedb(0x1dd)]()[_0x2aaedb(0x1de)])==null||(_0x1dd926=_0x1dd926['customRanges'])==null?void 0x0:_0x1dd926[_0x2aaedb(0x1ed)](_0x15a696=>_0x15a696[_0x2aaedb(0x1db)]===this[_0x2aaedb(0x202)]&&(0x0,e['isDocFormulaRange'])(_0x15a696));}};function _0x1151(_0x2ff296,_0x2f19d4){_0x2ff296=_0x2ff296-0x1bf;const _0x102576=_0x1025();let _0x11517b=_0x102576[_0x2ff296];return _0x11517b;}a=i([r(0x2,t[_0x80e801(0x20e)]),r(0x3,(0x0,t[_0x80e801(0x20f)])(e[_0x80e801(0x20d)])),r(0x4,(0x0,t[_0x80e801(0x20f)])(e[_0x80e801(0x1e0)])),r(0x5,t['IUniverInstanceService'])],a);function o(_0x5e8b10){'@babel/helpers - typeof';const _0x200d77=_0x80e801;return o=typeof Symbol==_0x200d77(0x207)&&typeof Symbol[_0x200d77(0x21a)]==_0x200d77(0x1c4)?function(_0x13c587){return typeof _0x13c587;}:function(_0x19a7aa){const _0x46c9b3=_0x200d77;return _0x19a7aa&&typeof Symbol==_0x46c9b3(0x207)&&_0x19a7aa[_0x46c9b3(0x1fb)]===Symbol&&_0x19a7aa!==Symbol['prototype']?_0x46c9b3(0x1c4):typeof _0x19a7aa;},o(_0x5e8b10);}function s(_0x13ec09,_0x1134db){const _0x2237b3=_0x80e801;if(o(_0x13ec09)!=_0x2237b3(0x1fc)||!_0x13ec09)return _0x13ec09;var _0x373784=_0x13ec09[Symbol[_0x2237b3(0x1f4)]];if(_0x373784!==void 0x0){var _0x3c18e7=_0x373784['call'](_0x13ec09,_0x1134db||_0x2237b3(0x1d3));if(o(_0x3c18e7)!=_0x2237b3(0x1fc))return _0x3c18e7;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1134db===_0x2237b3(0x1ca)?String:Number)(_0x13ec09);}function c(_0x57eab7){const _0x14cb93=_0x80e801;var _0x84834c=s(_0x57eab7,_0x14cb93(0x1ca));return o(_0x84834c)=='symbol'?_0x84834c:_0x84834c+'';}function l(_0x1a71cf,_0xef0b66,_0x206280){const _0x2eeb8c=_0x80e801;return(_0xef0b66=c(_0xef0b66))in _0x1a71cf?Object[_0x2eeb8c(0x21e)](_0x1a71cf,_0xef0b66,{'value':_0x206280,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1a71cf[_0xef0b66]=_0x206280,_0x1a71cf;}var u=class extends n[_0x80e801(0x1e2)]{constructor(..._0x225ca6){const _0x32c107=_0x80e801;super(..._0x225ca6),l(this,'_docsFormulaCommandService',void 0x0),l(this,'_docsFormulaDisplayTextService',void 0x0),l(this,_0x32c107(0x1cb),void 0x0),l(this,_0x32c107(0x1cd),void 0x0);}[_0x80e801(0x1d1)](_0x11718c){const _0x295fcb=_0x80e801;this[_0x295fcb(0x1d0)]=_0x11718c['get'](t[_0x295fcb(0x20e)]),this['_docsFormulaDisplayTextService']=_0x11718c[_0x295fcb(0x1e4)](e[_0x295fcb(0x200)]),this[_0x295fcb(0x1cb)]=_0x11718c[_0x295fcb(0x1e4)](e['DocFormulaModel']),this['_docsFormulaResourceLoaderService']=_0x11718c['get'](t['IResourceLoaderService']);}[_0x80e801(0x210)](){const _0x3424b3=_0x80e801;return this[_0x3424b3(0x1fa)]()['map'](_0x177dfa=>this[_0x3424b3(0x1fe)](_0x177dfa[_0x3424b3(0x1db)]));}[_0x80e801(0x212)](_0x34161a){const _0xdfec8c=_0x80e801;return this[_0xdfec8c(0x1fa)]()[_0xdfec8c(0x1c6)](_0x3ddf40=>_0x3ddf40[_0xdfec8c(0x1db)]===_0x34161a)?this[_0xdfec8c(0x1fe)](_0x34161a):null;}[_0x80e801(0x1c5)](_0x12ee41){const _0x26840d=_0x80e801;let _0x546cc0=this[_0x26840d(0x1fa)]()[_0x26840d(0x1ed)](_0xac6095=>_0xac6095['startIndex']<=_0x12ee41&&_0x12ee41<=_0xac6095[_0x26840d(0x215)]);return _0x546cc0?this['_createFormula'](_0x546cc0[_0x26840d(0x1db)]):null;}[_0x80e801(0x21d)](){const _0x1bd554=_0x80e801;let _0x3d660d=this[_0x1bd554(0x1cd)][_0x1bd554(0x201)](this['id']);if(!_0x3d660d)throw Error(_0x1bd554(0x1e1)+this['id']+_0x1bd554(0x1c0));return this[_0x1bd554(0x1fd)][_0x1bd554(0x1e7)](_0x3d660d);}[_0x80e801(0x1ff)](_0x27c4a6){const _0x43706f=_0x80e801;return this['_insert']({'externalReferences':_0x27c4a6['externalReferences'],'formula':_0x27c4a6[_0x43706f(0x1e8)],'numberFormat':_0x27c4a6['numberFormat'],'target':{'type':_0x43706f(0x1cf),'startOffset':_0x27c4a6[_0x43706f(0x1cc)],'endOffset':_0x27c4a6[_0x43706f(0x1d8)]},'unitId':this[_0x43706f(0x1f8)]()});}[_0x80e801(0x1ef)](_0x57e7c9){const _0x371419=_0x80e801;let _0x2ee940=this['_docsFormulaCommandService'][_0x371419(0x1df)](e[_0x371419(0x1f7)]['id'],_0x57e7c9);return _0x2ee940?this[_0x371419(0x1fe)](_0x2ee940[_0x371419(0x1db)]):null;}[_0x80e801(0x1fa)](){const _0x2c9fd9=_0x80e801;var _0xf8c69c;let _0x402dea=this['_docsFormulaModel'][_0x2c9fd9(0x210)](this[_0x2c9fd9(0x1f8)]());return((_0xf8c69c=this[_0x2c9fd9(0x1f1)]('')[_0x2c9fd9(0x1dc)])==null?void 0x0:_0xf8c69c['filter'](_0x1d84b1=>(0x0,e[_0x2c9fd9(0x1bf)])(_0x1d84b1)&&_0x402dea[_0x1d84b1[_0x2c9fd9(0x1db)]]!=null))??[];}[_0x80e801(0x1fe)](_0x5488ca){const _0x3491c7=_0x80e801;return this[_0x3491c7(0x1f6)][_0x3491c7(0x20b)](a,this[_0x3491c7(0x1f8)](),_0x5488ca);}};n[_0x80e801(0x1e2)][_0x80e801(0x1e6)](u);var d=class extends n[_0x80e801(0x1f5)]{constructor(..._0x3c27cb){const _0x2f9e88=_0x80e801;super(..._0x3c27cb),l(this,_0x2f9e88(0x1d0),void 0x0);}[_0x80e801(0x1d1)](_0x549c92){const _0x2a9946=_0x80e801;this[_0x2a9946(0x1d0)]=_0x549c92['get'](t[_0x2a9946(0x20e)]);}[_0x80e801(0x1ff)](_0x38cf9a,_0x396813,_0x5f051f={}){const _0x39023f=_0x80e801;return this[_0x39023f(0x1ef)](_0x38cf9a,_0x396813,_0x5f051f);}['appendFormula'](_0x12b5c5,_0x1b119b={}){const _0x1a2cc0=_0x80e801;return this[_0x1a2cc0(0x1ef)](_0x1a2cc0(0x21c),_0x12b5c5,_0x1b119b);}[_0x80e801(0x1ef)](_0x3d0ffc,_0x241a62,_0x3b77fc){const _0x3b3941=_0x80e801;if(this[_0x3b3941(0x216)]())return null;let _0x36c2ec={'externalReferences':_0x3b77fc[_0x3b3941(0x20c)],'formula':_0x241a62,'numberFormat':_0x3b77fc[_0x3b3941(0x206)],'target':{'type':_0x3b3941(0x1d2),'paragraphId':this['getId'](),'position':_0x3d0ffc},'unitId':this[_0x3b3941(0x1c1)][_0x3b3941(0x1f8)]()},_0x4cf42e=this[_0x3b3941(0x1d0)]['syncExecuteCommand'](e[_0x3b3941(0x1f7)]['id'],_0x36c2ec);return _0x4cf42e?this[_0x3b3941(0x1f6)][_0x3b3941(0x20b)](a,this[_0x3b3941(0x1c1)][_0x3b3941(0x1f8)](),_0x4cf42e[_0x3b3941(0x1db)]):null;}};n[_0x80e801(0x1f5)][_0x80e801(0x1e6)](d);var f=class extends n[_0x80e801(0x209)]{constructor(..._0x2c0ec9){const _0x88c0c0=_0x80e801;super(..._0x2c0ec9),l(this,_0x88c0c0(0x1d0),void 0x0);}[_0x80e801(0x1d1)](_0xcb5cb9){const _0x357f9d=_0x80e801;this[_0x357f9d(0x1d0)]=_0xcb5cb9[_0x357f9d(0x1e4)](t['ICommandService']);}['replaceWithFormula'](_0x323c77,_0x351ea0={}){const _0x55d3fd=_0x80e801;let {endOffset:_0x3ca332,segmentId:_0x27063a,startOffset:_0x485677}=this[_0x55d3fd(0x205)]();return _0x27063a?null:this[_0x55d3fd(0x1ef)](_0x485677,_0x3ca332,_0x323c77,_0x351ea0);}[_0x80e801(0x1ef)](_0x3fb72f,_0x19e010,_0xdebf0b,_0x13b84c){const _0x1130c6=_0x80e801;let _0x3e9cb3={'externalReferences':_0x13b84c[_0x1130c6(0x20c)],'formula':_0xdebf0b,'numberFormat':_0x13b84c[_0x1130c6(0x206)],'target':{'type':_0x1130c6(0x1cf),'startOffset':_0x3fb72f,'endOffset':_0x19e010},'unitId':this[_0x1130c6(0x1c1)][_0x1130c6(0x1f8)]()},_0x563e55=this['_docsFormulaCommandService'][_0x1130c6(0x1df)](e[_0x1130c6(0x1f7)]['id'],_0x3e9cb3);return _0x563e55?this[_0x1130c6(0x1f6)][_0x1130c6(0x20b)](a,this[_0x1130c6(0x1c1)][_0x1130c6(0x1f8)](),_0x563e55['rangeId']):null;}};n[_0x80e801(0x209)]['extend'](f),Object[_0x80e801(0x21e)](exports,_0x80e801(0x1e5),{'enumerable':!0x0,'get':function(){return a;}});
|
|
1
|
+
const _0x317af2=_0x1826;(function(_0x42956a,_0x58524c){const _0x551220=_0x1826,_0x491dfe=_0x42956a();while(!![]){try{const _0x18bdea=parseInt(_0x551220(0xd8))/0x1+parseInt(_0x551220(0xdb))/0x2+parseInt(_0x551220(0xa6))/0x3+parseInt(_0x551220(0xf6))/0x4*(parseInt(_0x551220(0xc6))/0x5)+-parseInt(_0x551220(0xc2))/0x6+parseInt(_0x551220(0xf8))/0x7*(-parseInt(_0x551220(0xf9))/0x8)+-parseInt(_0x551220(0xdf))/0x9;if(_0x18bdea===_0x58524c)break;else _0x491dfe['push'](_0x491dfe['shift']());}catch(_0x36638b){_0x491dfe['push'](_0x491dfe['shift']());}}}(_0x492e,0xdc08c),Object[_0x317af2(0xe4)](exports,Symbol['toStringTag'],{'value':'Module'}));let e=require('@univerjs-pro/docs-formula'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x4b8f79,_0x5db0f5){return function(_0x4d230b,_0x43131b){_0x5db0f5(_0x4d230b,_0x43131b,_0x4b8f79);};}function i(_0x3fafdc,_0x35c108,_0x470be8,_0x1db434){const _0x3130df=_0x317af2;var _0x4a6f61=arguments[_0x3130df(0xe6)],_0x2f2990=_0x4a6f61<0x3?_0x35c108:_0x1db434===null?_0x1db434=Object['getOwnPropertyDescriptor'](_0x35c108,_0x470be8):_0x1db434,_0x1a7deb;if(typeof Reflect==_0x3130df(0xa9)&&typeof Reflect['decorate']==_0x3130df(0xdc))_0x2f2990=Reflect[_0x3130df(0xe3)](_0x3fafdc,_0x35c108,_0x470be8,_0x1db434);else{for(var _0x154427=_0x3fafdc[_0x3130df(0xe6)]-0x1;_0x154427>=0x0;_0x154427--)(_0x1a7deb=_0x3fafdc[_0x154427])&&(_0x2f2990=(_0x4a6f61<0x3?_0x1a7deb(_0x2f2990):_0x4a6f61>0x3?_0x1a7deb(_0x35c108,_0x470be8,_0x2f2990):_0x1a7deb(_0x35c108,_0x470be8))||_0x2f2990);}return _0x4a6f61>0x3&&_0x2f2990&&Object['defineProperty'](_0x35c108,_0x470be8,_0x2f2990),_0x2f2990;}let a=class{constructor(_0x255c1e,_0x1f4748,_0x16b52a,_0x57c41d,_0x29219d,_0x331ba7){const _0x30b9d9=_0x317af2;this['_unitId']=_0x255c1e,this[_0x30b9d9(0xa3)]=_0x1f4748,this[_0x30b9d9(0xbd)]=_0x16b52a,this[_0x30b9d9(0xb1)]=_0x57c41d,this[_0x30b9d9(0xb3)]=_0x29219d,this[_0x30b9d9(0xab)]=_0x331ba7;}['getId'](){const _0x2be535=_0x317af2;return this[_0x2be535(0xa3)];}[_0x317af2(0xaf)](){const _0x3985b6=_0x317af2;let _0x12456c=this['_getCustomRange']();return _0x12456c?{'endOffset':_0x12456c[_0x3985b6(0xcb)]+0x1,'rangeId':_0x12456c[_0x3985b6(0xa4)],'startOffset':_0x12456c[_0x3985b6(0xf3)]}:null;}[_0x317af2(0xd4)](){const _0x2b852f=_0x317af2;var _0x12b51f;return((_0x12b51f=this[_0x2b852f(0xb1)][_0x2b852f(0xd4)](this[_0x2b852f(0xfc)],this[_0x2b852f(0xa3)]))==null?void 0x0:_0x12b51f[_0x2b852f(0xa5)])??'';}[_0x317af2(0xe0)](){const _0x5da9a2=_0x317af2;return this['_model'][_0x5da9a2(0xd4)](this[_0x5da9a2(0xfc)],this[_0x5da9a2(0xa3)])??null;}[_0x317af2(0xec)](){const _0x7e1100=_0x317af2;return this[_0x7e1100(0xb3)][_0x7e1100(0xec)]({'unitId':this['_unitId'],'rangeId':this['_rangeId']})??null;}[_0x317af2(0xeb)](){const _0x49ec29=_0x317af2;let _0x4f4eef=this['getRange'](),_0x11ddd4=this[_0x49ec29(0xe0)](),_0x1a20bf=this[_0x49ec29(0xec)]();return!_0x4f4eef||!_0x11ddd4||!_0x1a20bf?null:{..._0x4f4eef,'config':_0x11ddd4,'formula':_0x11ddd4[_0x49ec29(0xa5)],'result':_0x1a20bf,'type':_0x49ec29(0xa5)};}['update'](_0x447a9d){const _0x23adc3=_0x317af2;return this[_0x23adc3(0xbd)][_0x23adc3(0xca)](e['UpdateDocFormulaCommand']['id'],{'externalReferences':_0x447a9d[_0x23adc3(0xfa)],'formula':_0x447a9d['formula'],'numberFormat':_0x447a9d[_0x23adc3(0xf1)],'rangeId':this['_rangeId'],'unitId':this[_0x23adc3(0xfc)]});}['setNumberFormat'](_0x35517e){const _0xff5ec4=_0x317af2;return this[_0xff5ec4(0xbd)][_0xff5ec4(0xca)](e['SetDocFormulaNumberFormatCommand']['id'],{'numberFormat':_0x35517e,'rangeId':this[_0xff5ec4(0xa3)],'unitId':this[_0xff5ec4(0xfc)]});}[_0x317af2(0xda)](){const _0x20a965=_0x317af2;return this[_0x20a965(0xbd)]['syncExecuteCommand'](e[_0x20a965(0xae)]['id'],{'rangeId':this[_0x20a965(0xa3)],'unitId':this['_unitId']});}[_0x317af2(0xde)](_0x11b735){const _0x57be6c=_0x317af2;return this[_0x57be6c(0xbd)]['syncExecuteCommand'](e['ReplaceDocFormulaWithTextCommand']['id'],{'rangeId':this[_0x57be6c(0xa3)],'text':_0x11b735,'unitId':this[_0x57be6c(0xfc)]});}[_0x317af2(0xd7)](){const _0xb3bde4=_0x317af2;return this['_commandService'][_0xb3bde4(0xca)](e[_0xb3bde4(0xe2)]['id'],{'rangeId':this[_0xb3bde4(0xa3)],'unitId':this['_unitId']});}[_0x317af2(0xd9)](){const _0x5b336e=_0x317af2;var _0x368063;let _0x32686a=this[_0x5b336e(0xab)][_0x5b336e(0xd3)](this[_0x5b336e(0xfc)],t['UniverInstanceType']['UNIVER_DOC']);return _0x32686a==null||(_0x368063=_0x32686a[_0x5b336e(0xcf)]()[_0x5b336e(0xe9)])==null||(_0x368063=_0x368063[_0x5b336e(0xdd)])==null?void 0x0:_0x368063[_0x5b336e(0xe8)](_0x71301e=>_0x71301e[_0x5b336e(0xa4)]===this[_0x5b336e(0xa3)]&&(0x0,e['isDocFormulaRange'])(_0x71301e));}};a=i([r(0x2,t[_0x317af2(0xad)]),r(0x3,(0x0,t[_0x317af2(0xed)])(e[_0x317af2(0xfb)])),r(0x4,(0x0,t['Inject'])(e[_0x317af2(0xc1)])),r(0x5,t[_0x317af2(0xc8)])],a);function o(_0x49edb0){'@babel/helpers - typeof';const _0x4c4502=_0x317af2;return o=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x4c4502(0xa7)?function(_0x2f1822){return typeof _0x2f1822;}:function(_0x56e006){const _0x2fa9dd=_0x4c4502;return _0x56e006&&typeof Symbol==_0x2fa9dd(0xdc)&&_0x56e006[_0x2fa9dd(0xb7)]===Symbol&&_0x56e006!==Symbol['prototype']?_0x2fa9dd(0xa7):typeof _0x56e006;},o(_0x49edb0);}function s(_0x25eb9d,_0x4d7681){const _0x2da1f6=_0x317af2;if(o(_0x25eb9d)!=_0x2da1f6(0xa9)||!_0x25eb9d)return _0x25eb9d;var _0x111d3d=_0x25eb9d[Symbol[_0x2da1f6(0xd1)]];if(_0x111d3d!==void 0x0){var _0x40139b=_0x111d3d[_0x2da1f6(0xe1)](_0x25eb9d,_0x4d7681||_0x2da1f6(0xb6));if(o(_0x40139b)!=_0x2da1f6(0xa9))return _0x40139b;throw TypeError(_0x2da1f6(0xf2));}return(_0x4d7681===_0x2da1f6(0xba)?String:Number)(_0x25eb9d);}function _0x1826(_0x16c9c3,_0x240e9c){_0x16c9c3=_0x16c9c3-0xa3;const _0x492e51=_0x492e();let _0x1826f2=_0x492e51[_0x16c9c3];return _0x1826f2;}function c(_0x4f56bf){const _0x24bd96=_0x317af2;var _0x4af73e=s(_0x4f56bf,_0x24bd96(0xba));return o(_0x4af73e)=='symbol'?_0x4af73e:_0x4af73e+'';}function l(_0x52e72c,_0x2e855b,_0x606c3c){const _0xd354b7=_0x317af2;return(_0x2e855b=c(_0x2e855b))in _0x52e72c?Object[_0xd354b7(0xe4)](_0x52e72c,_0x2e855b,{'value':_0x606c3c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x52e72c[_0x2e855b]=_0x606c3c,_0x52e72c;}var u=class extends n[_0x317af2(0xe7)]{constructor(..._0x44b610){const _0x4806a1=_0x317af2;super(..._0x44b610),l(this,'_docsFormulaCommandService',void 0x0),l(this,_0x4806a1(0xc7),void 0x0),l(this,'_docsFormulaModel',void 0x0),l(this,'_docsFormulaResourceLoaderService',void 0x0);}[_0x317af2(0xcc)](_0x39d898){const _0x3026aa=_0x317af2;this[_0x3026aa(0xaa)]=_0x39d898['get'](t[_0x3026aa(0xad)]),this[_0x3026aa(0xc7)]=_0x39d898[_0x3026aa(0xcd)](e[_0x3026aa(0xac)]),this[_0x3026aa(0xbc)]=_0x39d898[_0x3026aa(0xcd)](e['DocFormulaModel']),this[_0x3026aa(0xbb)]=_0x39d898['get'](t['IResourceLoaderService']);}[_0x317af2(0xc0)](){const _0x106c7a=_0x317af2;return this[_0x106c7a(0xc4)]()[_0x106c7a(0xd0)](_0x3d754d=>this['_createFormula'](_0x3d754d[_0x106c7a(0xa4)]));}[_0x317af2(0xd4)](_0x14e8d2){const _0x2ded48=_0x317af2;return this[_0x2ded48(0xc4)]()[_0x2ded48(0xf7)](_0x3016e6=>_0x3016e6[_0x2ded48(0xa4)]===_0x14e8d2)?this[_0x2ded48(0xd6)](_0x14e8d2):null;}[_0x317af2(0xd5)](_0x165976){const _0x516fcc=_0x317af2;let _0x142f96=this['_getCompleteRanges']()[_0x516fcc(0xe8)](_0x3a3705=>_0x3a3705[_0x516fcc(0xf3)]<=_0x165976&&_0x165976<=_0x3a3705['endIndex']);return _0x142f96?this[_0x516fcc(0xd6)](_0x142f96[_0x516fcc(0xa4)]):null;}[_0x317af2(0xce)](){const _0x48676e=_0x317af2;let _0x50f392=this['_docsFormulaResourceLoaderService'][_0x48676e(0xc9)](this['id']);if(!_0x50f392)throw Error(_0x48676e(0xea)+this['id']+_0x48676e(0xb4));return this['_docsFormulaDisplayTextService']['degradeDocumentData'](_0x50f392);}['insertFormula'](_0x5f3384){const _0x3be99f=_0x317af2;return this['_insert']({'externalReferences':_0x5f3384[_0x3be99f(0xfa)],'formula':_0x5f3384[_0x3be99f(0xa5)],'numberFormat':_0x5f3384['numberFormat'],'target':{'type':'range','startOffset':_0x5f3384['startOffset'],'endOffset':_0x5f3384[_0x3be99f(0xa8)]},'unitId':this['getId']()});}['_insert'](_0x2af1f4){const _0x5c6ab0=_0x317af2;let _0x506e18=this[_0x5c6ab0(0xaa)][_0x5c6ab0(0xca)](e['InsertDocFormulaCommand']['id'],_0x2af1f4);return _0x506e18?this[_0x5c6ab0(0xd6)](_0x506e18[_0x5c6ab0(0xa4)]):null;}[_0x317af2(0xc4)](){const _0x26742b=_0x317af2;var _0x1c59de;let _0x18e1e7=this[_0x26742b(0xbc)]['getFormulas'](this[_0x26742b(0xf0)]());return((_0x1c59de=this[_0x26742b(0xbe)]('')[_0x26742b(0xdd)])==null?void 0x0:_0x1c59de[_0x26742b(0xef)](_0x3c37c6=>(0x0,e[_0x26742b(0xe5)])(_0x3c37c6)&&_0x18e1e7[_0x3c37c6[_0x26742b(0xa4)]]!=null))??[];}['_createFormula'](_0x40544b){const _0x48b241=_0x317af2;return this['_injector'][_0x48b241(0xb2)](a,this[_0x48b241(0xf0)](),_0x40544b);}};n['FDocument']['extend'](u);var d=class extends n[_0x317af2(0xc5)]{constructor(..._0xb75dac){const _0x5ba9c3=_0x317af2;super(..._0xb75dac),l(this,_0x5ba9c3(0xaa),void 0x0);}['_initialize'](_0x453300){const _0x2051e3=_0x317af2;this[_0x2051e3(0xaa)]=_0x453300[_0x2051e3(0xcd)](t[_0x2051e3(0xad)]);}[_0x317af2(0xf5)](_0x3affbb,_0x227b1a,_0x3a0bb7={}){const _0x301221=_0x317af2;return this[_0x301221(0xee)](_0x3affbb,_0x227b1a,_0x3a0bb7);}[_0x317af2(0xd2)](_0xa5e84a,_0x1ce03e={}){const _0x55d1b3=_0x317af2;return this[_0x55d1b3(0xee)](_0x55d1b3(0xbf),_0xa5e84a,_0x1ce03e);}[_0x317af2(0xee)](_0x5f1ee1,_0x4dd675,_0x5e7ba3){const _0x10042f=_0x317af2;if(this['getSegmentId']())return null;let _0xa9e6e1={'externalReferences':_0x5e7ba3[_0x10042f(0xfa)],'formula':_0x4dd675,'numberFormat':_0x5e7ba3['numberFormat'],'target':{'type':'paragraph','paragraphId':this[_0x10042f(0xf0)](),'position':_0x5f1ee1},'unitId':this['_document']['getId']()},_0x517d52=this['_docsFormulaCommandService'][_0x10042f(0xca)](e[_0x10042f(0xb0)]['id'],_0xa9e6e1);return _0x517d52?this['_injector']['createInstance'](a,this[_0x10042f(0xb5)][_0x10042f(0xf0)](),_0x517d52[_0x10042f(0xa4)]):null;}};function _0x492e(){const _0x346b69=['getId','numberFormat','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','startIndex','FDocumentTextRange','insertFormula','1324ZUecyT','some','25753gQDbbL','1312YfNBJv','externalReferences','DocFormulaModel','_unitId','_rangeId','rangeId','formula','3044628IYYuKp','symbol','endOffset','object','_docsFormulaCommandService','_univerInstanceService','DocFormulaDisplayTextService','ICommandService','RemoveDocFormulaCommand','getRange','InsertDocFormulaCommand','_model','createInstance','_service','\x20could\x20not\x20be\x20serialized.','_document','default','constructor','range','extend','string','_docsFormulaResourceLoaderService','_docsFormulaModel','_commandService','getBody','end','getFormulas','DocFormulaService','5926758LBdvOu','FDocumentFormula','_getCompleteRanges','FDocumentParagraph','13325rUxCie','_docsFormulaDisplayTextService','IUniverInstanceService','saveUnit','syncExecuteCommand','endIndex','_initialize','get','saveFormulaDisplayTextSnapshot','getSnapshot','map','toPrimitive','appendFormula','getUnit','getFormula','getFormulaAt','_createFormula','convertToText','1554533DccmUO','_getCustomRange','remove','2864894JkjXmt','function','customRanges','replaceWithText','21524058agxMAy','getConfig','call','ConvertDocFormulaToTextCommand','decorate','defineProperty','isDocFormulaRange','length','FDocument','find','body','Document\x20','describe','getResult','Inject','_insert','filter'];_0x492e=function(){return _0x346b69;};return _0x492e();}n[_0x317af2(0xc5)][_0x317af2(0xb9)](d);var f=class extends n['FDocumentTextRange']{constructor(..._0x42da0c){const _0x3c2232=_0x317af2;super(..._0x42da0c),l(this,_0x3c2232(0xaa),void 0x0);}[_0x317af2(0xcc)](_0x1b316b){const _0x468195=_0x317af2;this[_0x468195(0xaa)]=_0x1b316b[_0x468195(0xcd)](t[_0x468195(0xad)]);}['replaceWithFormula'](_0x9809a6,_0x9366a3={}){const _0x9e8193=_0x317af2;let {endOffset:_0x2b4903,segmentId:_0x4541d8,startOffset:_0x9dd144}=this['getRange']();return _0x4541d8?null:this[_0x9e8193(0xee)](_0x9dd144,_0x2b4903,_0x9809a6,_0x9366a3);}['_insert'](_0x12862c,_0x5d760c,_0x2f2ef9,_0xdd9cb5){const _0x71b4c2=_0x317af2;let _0x1da151={'externalReferences':_0xdd9cb5[_0x71b4c2(0xfa)],'formula':_0x2f2ef9,'numberFormat':_0xdd9cb5[_0x71b4c2(0xf1)],'target':{'type':_0x71b4c2(0xb8),'startOffset':_0x12862c,'endOffset':_0x5d760c},'unitId':this[_0x71b4c2(0xb5)][_0x71b4c2(0xf0)]()},_0x175dd4=this[_0x71b4c2(0xaa)][_0x71b4c2(0xca)](e[_0x71b4c2(0xb0)]['id'],_0x1da151);return _0x175dd4?this['_injector'][_0x71b4c2(0xb2)](a,this[_0x71b4c2(0xb5)][_0x71b4c2(0xf0)](),_0x175dd4[_0x71b4c2(0xa4)]):null;}};n[_0x317af2(0xf4)]['extend'](f),Object[_0x317af2(0xe4)](exports,_0x317af2(0xc3),{'enumerable':!0x0,'get':function(){return a;}});
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2b5a93=_0x3201;(function(_0x14d2d8,_0x43025d){const _0x1b0ae4=_0x3201,_0x426d55=_0x14d2d8();while(!![]){try{const _0x346f7a=parseInt(_0x1b0ae4(0x195))/0x1*(-parseInt(_0x1b0ae4(0x19a))/0x2)+-parseInt(_0x1b0ae4(0x1b8))/0x3*(-parseInt(_0x1b0ae4(0xa5))/0x4)+-parseInt(_0x1b0ae4(0x164))/0x5+-parseInt(_0x1b0ae4(0x111))/0x6*(parseInt(_0x1b0ae4(0x104))/0x7)+parseInt(_0x1b0ae4(0xa6))/0x8+parseInt(_0x1b0ae4(0xe1))/0x9+-parseInt(_0x1b0ae4(0x13d))/0xa*(parseInt(_0x1b0ae4(0xfd))/0xb);if(_0x346f7a===_0x43025d)break;else _0x426d55['push'](_0x426d55['shift']());}catch(_0x19f2d6){_0x426d55['push'](_0x426d55['shift']());}}}(_0x50fa,0xc3be9),Object[_0x2b5a93(0xd6)](exports,Symbol[_0x2b5a93(0xa3)],{'value':_0x2b5a93(0xf7)}));let e=require('@univerjs-pro/engine-formula'),t=require('@univerjs/core'),n=require('@univerjs/docs'),r=require('@univerjs/engine-formula'),i=require('rxjs'),a=require('@univerjs-pro/license');const o=_0x2b5a93(0x11e),s=_0x2b5a93(0xee);function c(){return{'schemaVersion':0x1,'formulas':{}};}function l(_0x33e318){const _0x39154c=_0x2b5a93;return!_0x33e318||typeof _0x33e318!=_0x39154c(0x155)||!f(_0x33e318,[_0x39154c(0x153),_0x39154c(0x9e)])||!(_0x39154c(0x153)in _0x33e318)||_0x33e318[_0x39154c(0x153)]!==0x1||!(_0x39154c(0x9e)in _0x33e318)||!_0x33e318['formulas']||typeof _0x33e318[_0x39154c(0x9e)]!=_0x39154c(0x155)||Array['isArray'](_0x33e318[_0x39154c(0x9e)])?!0x1:Object[_0x39154c(0xec)](_0x33e318[_0x39154c(0x9e)])[_0x39154c(0x1a6)](([_0x448141,_0x3bbdfe])=>_0x448141[_0x39154c(0x117)]>0x0&&u(_0x3bbdfe));}function u(_0x305ae3){const _0x26f442=_0x2b5a93;return!_0x305ae3||typeof _0x305ae3!=_0x26f442(0x155)||!f(_0x305ae3,[_0x26f442(0x16b),'numberFormat','lastValue'])||!(_0x26f442(0x16b)in _0x305ae3)||typeof _0x305ae3[_0x26f442(0x16b)]!='string'||!_0x305ae3[_0x26f442(0x16b)][_0x26f442(0x8e)]()||_0x26f442(0x17a)in _0x305ae3&&_0x305ae3[_0x26f442(0x17a)]!=null&&(typeof _0x305ae3['numberFormat']!=_0x26f442(0x155)||!f(_0x305ae3[_0x26f442(0x17a)],['pattern'])||!('pattern'in _0x305ae3[_0x26f442(0x17a)])||typeof _0x305ae3['numberFormat'][_0x26f442(0x178)]!=_0x26f442(0x12d))?!0x1:!('lastValue'in _0x305ae3)||_0x305ae3[_0x26f442(0xe9)]==null||d(_0x305ae3[_0x26f442(0xe9)]);}function d(_0x4192d7){const _0x5912c8=_0x2b5a93;return!_0x4192d7||typeof _0x4192d7!=_0x5912c8(0x155)||!f(_0x4192d7,['v','t',_0x5912c8(0x178)])||!('v'in _0x4192d7)||_0x4192d7['v']!==null&&typeof _0x4192d7['v']!=_0x5912c8(0x12d)&&typeof _0x4192d7['v']!=_0x5912c8(0xc9)&&typeof _0x4192d7['v']!=_0x5912c8(0x199)||'t'in _0x4192d7&&_0x4192d7['t']!=null&&!ee(_0x4192d7['t'])?!0x1:!(_0x5912c8(0x178)in _0x4192d7)||_0x4192d7[_0x5912c8(0x178)]==null||typeof _0x4192d7['pattern']==_0x5912c8(0x12d);}function f(_0x1d9aa7,_0x290360){const _0x8953a1=_0x2b5a93;let _0x58f474=new Set(_0x290360);return Object[_0x8953a1(0x16f)](_0x1d9aa7)[_0x8953a1(0x1a6)](_0x35b29a=>_0x58f474[_0x8953a1(0x9a)](_0x35b29a));}function ee(_0x45ff48){const _0x48f0c5=_0x2b5a93;return typeof _0x45ff48==_0x48f0c5(0xc9)&&Object[_0x48f0c5(0x1c4)](t[_0x48f0c5(0xd8)])[_0x48f0c5(0x183)](_0x45ff48);}const p=new Set([t[_0x2b5a93(0x17e)][_0x2b5a93(0xba)],t[_0x2b5a93(0x17e)]['TABLE_START'],t[_0x2b5a93(0x17e)][_0x2b5a93(0x182)],t[_0x2b5a93(0x17e)][_0x2b5a93(0x128)],t[_0x2b5a93(0x17e)][_0x2b5a93(0x1ba)],t[_0x2b5a93(0x17e)]['TABLE_ROW_END'],t[_0x2b5a93(0x17e)][_0x2b5a93(0x9c)],t[_0x2b5a93(0x17e)][_0x2b5a93(0x109)],t[_0x2b5a93(0x17e)][_0x2b5a93(0xcc)],t[_0x2b5a93(0x17e)][_0x2b5a93(0x103)],t[_0x2b5a93(0x17e)][_0x2b5a93(0xb5)],t['DataStreamTreeTokenType'][_0x2b5a93(0x162)],t[_0x2b5a93(0x17e)][_0x2b5a93(0x12b)],t['DataStreamTreeTokenType'][_0x2b5a93(0x147)]]);var m=class extends Error{constructor(){const _0x2010f1=_0x2b5a93;super(_0x2010f1(0x137));}};function te(_0x60b9ef){const _0x42a8b6=_0x2b5a93;var _0x2abd7d,_0x5582e5;let _0x40f52b=t[_0x42a8b6(0x1a2)][_0x42a8b6(0xa8)](_0x60b9ef[_0x42a8b6(0x10e)]),_0x50a943=T(_0x40f52b),{startOffset:_0x1e29ea,endOffset:_0x555bab}=oe(_0x50a943,_0x60b9ef[_0x42a8b6(0xb0)],_0x60b9ef['endOffset']);ie(_0x50a943,_0x1e29ea,_0x555bab);let _0x274a05=((_0x2abd7d=_0x50a943[_0x42a8b6(0x8c)])==null?void 0x0:_0x2abd7d['filter'](_0xf86ce0=>{const _0x1ff3cd=_0x42a8b6;if(!g(_0xf86ce0))return!0x1;let _0x3ea527=(0x0,t['getCustomRangeInterval'])(_0xf86ce0);return _0x3ea527[_0x1ff3cd(0xdd)]>_0x1e29ea&&_0x3ea527[_0x1ff3cd(0xb0)]<_0x555bab;})[_0x42a8b6(0xd2)](_0x22499e=>_0x22499e['rangeId']))??[];ce(_0x50a943,_0x1e29ea,_0x555bab,''),_0x50a943[_0x42a8b6(0x8c)]=[...((_0x5582e5=_0x50a943[_0x42a8b6(0x8c)])==null?void 0x0:_0x5582e5['filter'](_0xccd4e7=>!_0x274a05[_0x42a8b6(0x183)](_0xccd4e7[_0x42a8b6(0x101)])&&_0xccd4e7[_0x42a8b6(0x101)]!==_0x60b9ef[_0x42a8b6(0x101)]))??[],ae(_0x60b9ef['rangeId'],_0x1e29ea)][_0x42a8b6(0x197)]((_0x5be988,_0x2053b6)=>_0x5be988[_0x42a8b6(0x134)]-_0x2053b6[_0x42a8b6(0x134)]);let _0x1a5c11=v(_0x60b9ef[_0x42a8b6(0x166)]);return _0x274a05['forEach'](_0x12443d=>{const _0x359b15=_0x42a8b6;delete _0x1a5c11[_0x359b15(0x9e)][_0x12443d];}),_0x1a5c11[_0x42a8b6(0x9e)][_0x60b9ef[_0x42a8b6(0x101)]]=t['Tools'][_0x42a8b6(0xa8)](_0x60b9ef[_0x42a8b6(0x144)]),{'nextDocumentData':_0x40f52b,'nextResource':_0x1a5c11,'cursorOffset':_0x1e29ea+0x1};}function ne(_0x34fb08){const _0x53be2d=_0x2b5a93;var _0x1b14ad,_0x5c40ee;let _0x3ddf85=t[_0x53be2d(0x1a2)][_0x53be2d(0xa8)](_0x34fb08[_0x53be2d(0x10e)]),_0x72a1e6=(_0x1b14ad=T(_0x3ddf85)[_0x53be2d(0x8c)])==null?void 0x0:_0x1b14ad[_0x53be2d(0xb7)](_0x2f2f73=>_0x2f2f73['rangeId']===_0x34fb08[_0x53be2d(0x101)]&&g(_0x2f2f73));if(!_0x72a1e6||!((_0x5c40ee=_0x34fb08[_0x53be2d(0x166)])!=null&&_0x5c40ee[_0x53be2d(0x9e)][_0x34fb08[_0x53be2d(0x101)]]))return null;let _0x2fc493=v(_0x34fb08[_0x53be2d(0x166)]);return _0x2fc493[_0x53be2d(0x9e)][_0x34fb08[_0x53be2d(0x101)]]=t[_0x53be2d(0x1a2)][_0x53be2d(0xa8)](_0x34fb08[_0x53be2d(0x144)]),{'nextDocumentData':_0x3ddf85,'nextResource':_0x2fc493,'cursorOffset':_0x72a1e6[_0x53be2d(0x96)]+0x1};}function h(_0x4d5640){const _0x192a9c=_0x2b5a93;let _0x1eb48c=t[_0x192a9c(0x1a2)][_0x192a9c(0xa8)](_0x4d5640[_0x192a9c(0x10e)]),_0x3e2b94=le(_0x1eb48c,_0x4d5640[_0x192a9c(0x101)],_0x4d5640[_0x192a9c(0x173)]??'');if(_0x3e2b94==null)return null;let _0xb67ffa=v(_0x4d5640[_0x192a9c(0x166)]);return delete _0xb67ffa['formulas'][_0x4d5640['rangeId']],{'nextDocumentData':_0x1eb48c,'nextResource':_0xb67ffa,'cursorOffset':_0x3e2b94};}function re(_0x51911e,_0x26ef47){const _0x3f2406=_0x2b5a93;var _0x452b1c;let _0x145c22=t[_0x3f2406(0x1a2)][_0x3f2406(0xa8)](_0x51911e),_0x5ddde5=_0x145c22['body'];if(!_0x5ddde5)return _0x145c22;let _0x4fe72d=new Map(_0x26ef47[_0x3f2406(0xd2)](_0x1fa851=>[_0x1fa851['rangeId'],_0x1fa851['text']])),_0x2dc9b6=((_0x452b1c=_0x5ddde5['customRanges'])==null?void 0x0:_0x452b1c['filter'](_0x1cb1ad=>g(_0x1cb1ad)&&_0x4fe72d[_0x3f2406(0x9a)](_0x1cb1ad['rangeId']))[_0x3f2406(0x197)]((_0x5aa1f4,_0x284f95)=>_0x284f95['startIndex']-_0x5aa1f4[_0x3f2406(0x134)]))??[];for(let _0x47c296 of _0x2dc9b6)le(_0x145c22,_0x47c296[_0x3f2406(0x101)],_0x4fe72d['get'](_0x47c296[_0x3f2406(0x101)])??'');return _0x145c22;}function g(_0x2a2ac4){const _0x25b542=_0x2b5a93;var _0x30a2bc;return(_0x2a2ac4==null?void 0x0:_0x2a2ac4[_0x25b542(0xe6)])===t[_0x25b542(0x12f)][_0x25b542(0x15c)]&&_0x2a2ac4['wholeEntity']===!0x0&&((_0x30a2bc=_0x2a2ac4['properties'])==null?void 0x0:_0x30a2bc[_0x25b542(0x157)])===_0x25b542(0xee);}function _(_0x1d86aa,_0x17cbc6){const _0x56acb4=_0x2b5a93;var _0x1dbee5;return _0x1d86aa==null||(_0x1dbee5=_0x1d86aa[_0x56acb4(0x8c)])==null?void 0x0:_0x1dbee5[_0x56acb4(0xb7)](_0x4de520=>_0x4de520[_0x56acb4(0x101)]===_0x17cbc6&&g(_0x4de520));}function ie(_0x3ef3a9,_0x5e2d37,_0x5f18b6){const _0x3dc24f=_0x2b5a93;if(_0x5e2d37===_0x5f18b6){if(p[_0x3dc24f(0x9a)](_0x3ef3a9[_0x3dc24f(0x154)][_0x5e2d37]))throw new m();return;}for(let _0x1b8562=_0x5e2d37;_0x1b8562<_0x5f18b6;_0x1b8562++)if(_0x3ef3a9[_0x3dc24f(0x154)][_0x1b8562]===t['DataStreamTreeTokenType'][_0x3dc24f(0xe4)]||p[_0x3dc24f(0x9a)](_0x3ef3a9[_0x3dc24f(0x154)][_0x1b8562]))throw new m();}function ae(_0x4831bd,_0x4ba5e5){const _0x5bacab=_0x2b5a93;return{'startIndex':_0x4ba5e5,'endIndex':_0x4ba5e5,'rangeId':_0x4831bd,'rangeType':t[_0x5bacab(0x12f)]['CUSTOM'],'wholeEntity':!0x0,'properties':{'kind':s}};}function v(_0x3cbf0e){const _0xbce0e1=_0x2b5a93;return _0x3cbf0e?t['Tools'][_0xbce0e1(0xa8)](_0x3cbf0e):c();}function oe(_0x2d2d6b,_0x2512dc,_0x1f7cfb){const _0x1d7ddb=_0x2b5a93;let _0x1ed92f=se(_0x2d2d6b),_0x482d62=_0x2512dc??_0x1ed92f,_0x1818c1=_0x1f7cfb??_0x482d62;return{'startOffset':y(Math[_0x1d7ddb(0x11a)](_0x482d62,_0x1818c1),_0x1ed92f),'endOffset':y(Math[_0x1d7ddb(0xca)](_0x482d62,_0x1818c1),_0x1ed92f)};}function y(_0x1a28fd,_0x40a90d){const _0x42d1ba=_0x2b5a93;return Math[_0x42d1ba(0xca)](0x0,Math[_0x42d1ba(0x11a)](_0x1a28fd,_0x40a90d));}function se(_0x2b4bee){const _0x1fcbd4=_0x2b5a93;return _0x2b4bee['dataStream'][_0x1fcbd4(0x194)](''+t['DataStreamTreeTokenType'][_0x1fcbd4(0xe4)]+t[_0x1fcbd4(0x17e)][_0x1fcbd4(0xba)])?Math[_0x1fcbd4(0xca)](0x0,_0x2b4bee['dataStream'][_0x1fcbd4(0x117)]-0x2):_0x2b4bee[_0x1fcbd4(0x154)]['endsWith'](t[_0x1fcbd4(0x17e)][_0x1fcbd4(0xba)])?Math['max'](0x0,_0x2b4bee[_0x1fcbd4(0x154)][_0x1fcbd4(0x117)]-0x1):_0x2b4bee['dataStream'][_0x1fcbd4(0x117)];}function ce(_0x1e2176,_0x4bc6c0,_0x2487f6,_0x3accb3){_0x2487f6>_0x4bc6c0&&de(_0x1e2176,_0x4bc6c0,_0x2487f6),ue(_0x1e2176,_0x4bc6c0,_0x3accb3);}function le(_0x182fec,_0x1e09ca,_0xa560c9){const _0x363f9e=_0x2b5a93;var _0x5880bf,_0x1e40c3;let _0x1fbe98=T(_0x182fec),_0x44cdc5=(_0x5880bf=_0x1fbe98['customRanges'])==null?void 0x0:_0x5880bf[_0x363f9e(0xb7)](_0x5bbd73=>_0x5bbd73[_0x363f9e(0x101)]===_0x1e09ca&&g(_0x5bbd73));if(!_0x44cdc5)return null;let _0x544a97=(0x0,t['getCustomRangeInterval'])(_0x44cdc5);return ce(_0x1fbe98,_0x544a97[_0x363f9e(0xb0)],_0x544a97[_0x363f9e(0xdd)],_0xa560c9),_0x1fbe98['customRanges']=(_0x1e40c3=_0x1fbe98['customRanges'])==null?void 0x0:_0x1e40c3['filter'](_0x3e35ae=>_0x3e35ae['rangeId']!==_0x1e09ca),_0x544a97[_0x363f9e(0xb0)]+_0xa560c9[_0x363f9e(0x117)];}function _0x3201(_0x549848,_0x534a66){_0x549848=_0x549848-0x89;const _0x50fa2d=_0x50fa();let _0x320194=_0x50fa2d[_0x549848];return _0x320194;}function ue(_0x3cfe6f,_0x5d329f,_0x122467){const _0x598973=_0x2b5a93;_0x122467&&(_0x3cfe6f[_0x598973(0x154)]=''+_0x3cfe6f[_0x598973(0x154)][_0x598973(0x12c)](0x0,_0x5d329f)+_0x122467+_0x3cfe6f[_0x598973(0x154)][_0x598973(0x12c)](_0x5d329f),fe(_0x3cfe6f,_0x5d329f,_0x122467[_0x598973(0x117)]));}function de(_0x23d9e5,_0x317190,_0x4d4264){const _0x17a8ac=_0x2b5a93;let _0x3312e0=_0x4d4264-_0x317190;_0x23d9e5['dataStream']=''+_0x23d9e5[_0x17a8ac(0x154)]['slice'](0x0,_0x317190)+_0x23d9e5[_0x17a8ac(0x154)][_0x17a8ac(0x12c)](_0x4d4264),pe(_0x23d9e5,_0x317190,_0x3312e0);}function fe(_0x47d21e,_0x15195c,_0x543f9b){const _0x52fcf6=_0x2b5a93;_0x47d21e['paragraphs']=b(_0x47d21e[_0x52fcf6(0xc7)],_0x15195c,_0x543f9b),_0x47d21e[_0x52fcf6(0xdc)]=b(_0x47d21e[_0x52fcf6(0xdc)],_0x15195c,_0x543f9b),_0x47d21e[_0x52fcf6(0x10a)]=b(_0x47d21e[_0x52fcf6(0x10a)],_0x15195c,_0x543f9b),_0x47d21e[_0x52fcf6(0x13b)]=me(_0x47d21e[_0x52fcf6(0x13b)],_0x15195c,_0x543f9b),_0x47d21e[_0x52fcf6(0x14a)]=he(_0x47d21e[_0x52fcf6(0x14a)],_0x15195c,_0x543f9b),_0x47d21e[_0x52fcf6(0x145)]=S(_0x47d21e['columnGroups'],_0x15195c,_0x543f9b),_0x47d21e[_0x52fcf6(0x8c)]=S(_0x47d21e[_0x52fcf6(0x8c)],_0x15195c,_0x543f9b),_0x47d21e[_0x52fcf6(0x1ae)]=S(_0x47d21e[_0x52fcf6(0x1ae)],_0x15195c,_0x543f9b),_0x47d21e[_0x52fcf6(0x181)]=S(_0x47d21e[_0x52fcf6(0x181)],_0x15195c,_0x543f9b);}function pe(_0x2ae7d0,_0x393784,_0x51370c){const _0x23a228=_0x2b5a93;var _0x3d63,_0x170bcd;_0x2ae7d0[_0x23a228(0xc7)]=x(_0x2ae7d0[_0x23a228(0xc7)],_0x393784,_0x51370c),_0x2ae7d0[_0x23a228(0xdc)]=x(_0x2ae7d0['sectionBreaks'],_0x393784,_0x51370c),_0x2ae7d0[_0x23a228(0x10a)]=x(_0x2ae7d0[_0x23a228(0x10a)],_0x393784,_0x51370c),_0x2ae7d0[_0x23a228(0x13b)]=(_0x3d63=w((_0x170bcd=_0x2ae7d0[_0x23a228(0x13b)])==null?void 0x0:_0x170bcd[_0x23a228(0xd2)](_0xdef70a=>({..._0xdef70a,'startIndex':_0xdef70a['st'],'endIndex':_0xdef70a['ed']})),_0x393784,_0x51370c))==null?void 0x0:_0x3d63[_0x23a228(0xd2)](_0x47a0f1=>{let {startIndex:_0x21e3d9,endIndex:_0x1c65b7,..._0x3aec4b}=_0x47a0f1;return{..._0x3aec4b,'st':_0x21e3d9,'ed':_0x1c65b7};}),_0x2ae7d0[_0x23a228(0x14a)]=w(_0x2ae7d0[_0x23a228(0x14a)],_0x393784,_0x51370c),_0x2ae7d0['columnGroups']=C(_0x2ae7d0[_0x23a228(0x145)],_0x393784,_0x51370c),_0x2ae7d0['customRanges']=C(_0x2ae7d0[_0x23a228(0x8c)],_0x393784,_0x51370c),_0x2ae7d0[_0x23a228(0x1ae)]=C(_0x2ae7d0[_0x23a228(0x1ae)],_0x393784,_0x51370c),_0x2ae7d0[_0x23a228(0x181)]=C(_0x2ae7d0['blockRanges'],_0x393784,_0x51370c);}function b(_0x1a8ef7,_0x4ca012,_0x9b9b97){return _0x1a8ef7==null?void 0x0:_0x1a8ef7['map'](_0x2d38cf=>_0x2d38cf['startIndex']>=_0x4ca012?{..._0x2d38cf,'startIndex':_0x2d38cf['startIndex']+_0x9b9b97}:_0x2d38cf);}function x(_0x6404f6,_0x4ce685,_0x199f96){const _0x1d47cb=_0x2b5a93;let _0x2e94a7=_0x4ce685+_0x199f96;return _0x6404f6==null?void 0x0:_0x6404f6[_0x1d47cb(0xd2)](_0x57c9fe=>_0x57c9fe[_0x1d47cb(0x134)]>=_0x4ce685&&_0x57c9fe[_0x1d47cb(0x134)]<_0x2e94a7?null:_0x57c9fe[_0x1d47cb(0x134)]>=_0x2e94a7?{..._0x57c9fe,'startIndex':_0x57c9fe['startIndex']-_0x199f96}:_0x57c9fe)[_0x1d47cb(0xa2)](_0x156dfc=>_0x156dfc!=null);}function me(_0x49dcf2,_0x4fc2d6,_0x11fa41){const _0x5b69f2=_0x2b5a93;return _0x49dcf2==null?void 0x0:_0x49dcf2[_0x5b69f2(0xd2)](_0x36a199=>_0x36a199['st']>=_0x4fc2d6?{..._0x36a199,'st':_0x36a199['st']+_0x11fa41,'ed':_0x36a199['ed']+_0x11fa41}:_0x36a199['ed']>_0x4fc2d6?{..._0x36a199,'ed':_0x36a199['ed']+_0x11fa41}:_0x36a199);}function S(_0xff7bae,_0x360af6,_0xbc52c8){const _0x5bf692=_0x2b5a93;return _0xff7bae==null?void 0x0:_0xff7bae[_0x5bf692(0xd2)](_0xea0d7c=>(0x0,t[_0x5bf692(0x176)])(_0xea0d7c,_0x360af6,_0xbc52c8));}function he(_0xd35225,_0x2da495,_0x147243){const _0x1fc9fa=_0x2b5a93;return _0xd35225==null?void 0x0:_0xd35225[_0x1fc9fa(0xd2)](_0x4fd529=>(0x0,t['shiftExclusiveRangeOnInsert'])(_0x4fd529,_0x2da495,_0x147243));}function C(_0x51a33b,_0x247795,_0xf95097){const _0xb0a14d=_0x2b5a93;return _0x51a33b==null?void 0x0:_0x51a33b[_0xb0a14d(0xd2)](_0x573154=>(0x0,t[_0xb0a14d(0xcb)])(_0x573154,_0x247795,_0xf95097))[_0xb0a14d(0xa2)](_0x156f81=>_0x156f81!=null);}function w(_0xcf891b,_0x1c0d38,_0x5c9a70){const _0x27050a=_0x2b5a93;return _0xcf891b==null?void 0x0:_0xcf891b[_0x27050a(0xd2)](_0x362d99=>(0x0,t[_0x27050a(0x14e)])(_0x362d99,_0x1c0d38,_0x5c9a70))[_0x27050a(0xa2)](_0x282190=>_0x282190!=null);}function T(_0x100a8d){const _0x169106=_0x2b5a93;if(!_0x100a8d['body'])throw Error(_0x169106(0xf9));return _0x100a8d[_0x169106(0xf5)];}function E(_0x33bf09){'@babel/helpers - typeof';const _0x472a14=_0x2b5a93;return E=typeof Symbol==_0x472a14(0x168)&&typeof Symbol[_0x472a14(0x180)]=='symbol'?function(_0x346ea2){return typeof _0x346ea2;}:function(_0x38b2e7){const _0x55f054=_0x472a14;return _0x38b2e7&&typeof Symbol=='function'&&_0x38b2e7[_0x55f054(0x17d)]===Symbol&&_0x38b2e7!==Symbol[_0x55f054(0xbb)]?_0x55f054(0x119):typeof _0x38b2e7;},E(_0x33bf09);}function ge(_0x3e7785,_0x52c198){const _0x5835e3=_0x2b5a93;if(E(_0x3e7785)!='object'||!_0x3e7785)return _0x3e7785;var _0x3ad26f=_0x3e7785[Symbol['toPrimitive']];if(_0x3ad26f!==void 0x0){var _0x450acb=_0x3ad26f[_0x5835e3(0x136)](_0x3e7785,_0x52c198||_0x5835e3(0xed));if(E(_0x450acb)!='object')return _0x450acb;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x52c198===_0x5835e3(0x12d)?String:Number)(_0x3e7785);}function _e(_0x136023){const _0x6d29ef=_0x2b5a93;var _0x18cb4c=ge(_0x136023,_0x6d29ef(0x12d));return E(_0x18cb4c)==_0x6d29ef(0x119)?_0x18cb4c:_0x18cb4c+'';}function D(_0x5b841a,_0x1f5c77,_0x5141c0){return(_0x1f5c77=_e(_0x1f5c77))in _0x5b841a?Object['defineProperty'](_0x5b841a,_0x1f5c77,{'value':_0x5141c0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5b841a[_0x1f5c77]=_0x5141c0,_0x5b841a;}var O=class extends t['Disposable']{constructor(..._0x12fd9a){const _0x56ea65=_0x2b5a93;super(..._0x12fd9a),D(this,'_resources',new Map()),D(this,'_rawResources',new Map()),D(this,_0x56ea65(0x1ac),new Map()),D(this,'_change$',new i['Subject']()),D(this,_0x56ea65(0x175),this['_change$'][_0x56ea65(0xa1)]());}[_0x2b5a93(0xb3)](_0x22ae99,_0x1f09e3){const _0x88c103=_0x2b5a93;var _0xfcb068;let _0xe4bfb5=(_0xfcb068=this[_0x88c103(0x118)][_0x88c103(0x132)](_0x22ae99))==null?void 0x0:_0xfcb068[_0x88c103(0x9e)][_0x1f09e3];return _0xe4bfb5?t[_0x88c103(0x1a2)]['deepClone'](_0xe4bfb5):void 0x0;}[_0x2b5a93(0x17c)](_0x7a6c1){const _0x5431f6=_0x2b5a93;var _0x5a1e64;return t['Tools']['deepClone'](((_0x5a1e64=this['_resources'][_0x5431f6(0x132)](_0x7a6c1))==null?void 0x0:_0x5a1e64['formulas'])??{});}[_0x2b5a93(0xc3)](_0x591b4a){const _0x281dae=_0x2b5a93;let _0x1a798e=this[_0x281dae(0x118)][_0x281dae(0x132)](_0x591b4a);return _0x1a798e?t[_0x281dae(0x1a2)][_0x281dae(0xa8)](_0x1a798e):void 0x0;}[_0x2b5a93(0xc0)](_0x376e85,_0x47d90a,_0x3fc074){const _0x3ef871=_0x2b5a93;return this[_0x3ef871(0x127)](_0x376e85,{[_0x47d90a]:_0x3fc074});}[_0x2b5a93(0xd0)](_0x279337,_0x13b556){const _0x356491=_0x2b5a93;return this['_loadErrors'][_0x356491(0x9a)](_0x279337)||!l(_0x13b556)?!0x1:(this[_0x356491(0x118)]['set'](_0x279337,t[_0x356491(0x1a2)][_0x356491(0xa8)](_0x13b556)),this[_0x356491(0xce)][_0x356491(0x163)]({'unitId':_0x279337}),!0x0);}[_0x2b5a93(0x127)](_0x872992,_0x1a7142){const _0x5f46d2=_0x2b5a93;if(this[_0x5f46d2(0x1ac)][_0x5f46d2(0x9a)](_0x872992)||!Object['keys'](_0x1a7142)[_0x5f46d2(0x117)]||!l({'schemaVersion':0x1,'formulas':_0x1a7142}))return!0x1;let _0x3c3a02=this[_0x5f46d2(0x118)][_0x5f46d2(0x132)](_0x872992)??c(),_0x283bfd=t[_0x5f46d2(0x1a2)]['deepClone'](_0x3c3a02);return Object[_0x5f46d2(0x161)](_0x283bfd[_0x5f46d2(0x9e)],t[_0x5f46d2(0x1a2)][_0x5f46d2(0xa8)](_0x1a7142)),this['_resources']['set'](_0x872992,_0x283bfd),this[_0x5f46d2(0xce)][_0x5f46d2(0x163)]({'unitId':_0x872992,'rangeIds':Object[_0x5f46d2(0x16f)](_0x1a7142)}),!0x0;}['removeFormula'](_0x678dee,_0x10120c){const _0x205143=_0x2b5a93;if(this[_0x205143(0x1ac)][_0x205143(0x9a)](_0x678dee))return!0x1;let _0x354388=this['_resources']['get'](_0x678dee);if(!(_0x354388!=null&&_0x354388[_0x205143(0x9e)][_0x10120c]))return!0x1;let _0x57a6be=t[_0x205143(0x1a2)]['deepClone'](_0x354388);return delete _0x57a6be['formulas'][_0x10120c],this[_0x205143(0x118)][_0x205143(0x12e)](_0x678dee,_0x57a6be),this['_change$'][_0x205143(0x163)]({'unitId':_0x678dee,'rangeIds':[_0x10120c]}),!0x0;}[_0x2b5a93(0x184)](_0x523b7a,_0x2d516f){const _0x2f66ca=_0x2b5a93;return _0x2d516f&&typeof _0x2d516f==_0x2f66ca(0x155)&&'schemaVersion'in _0x2d516f&&_0x2d516f[_0x2f66ca(0x153)]!==0x1?(this['_preserveInvalid'](_0x523b7a,_0x2d516f,_0x2f66ca(0xa7)),!0x1):l(_0x2d516f)?(this[_0x2f66ca(0x118)]['set'](_0x523b7a,t[_0x2f66ca(0x1a2)][_0x2f66ca(0xa8)](_0x2d516f)),this[_0x2f66ca(0x123)][_0x2f66ca(0x148)](_0x523b7a),this[_0x2f66ca(0x1ac)]['delete'](_0x523b7a),this['_change$'][_0x2f66ca(0x163)]({'unitId':_0x523b7a}),!0x0):(this['_preserveInvalid'](_0x523b7a,_0x2d516f,_0x2f66ca(0x110)),!0x1);}[_0x2b5a93(0xfa)](_0x7de43b){const _0x2e4311=_0x2b5a93;let _0x13854f=this[_0x2e4311(0x118)][_0x2e4311(0x132)](_0x7de43b);return _0x13854f?t[_0x2e4311(0x1a2)][_0x2e4311(0xa8)](_0x13854f):this[_0x2e4311(0x123)][_0x2e4311(0x9a)](_0x7de43b)?t[_0x2e4311(0x1a2)][_0x2e4311(0xa8)](this['_rawResources'][_0x2e4311(0x132)](_0x7de43b)):c();}[_0x2b5a93(0x1c3)](_0x310b4c){const _0x143a54=_0x2b5a93;return this[_0x143a54(0x1ac)]['get'](_0x310b4c);}['removeUnit'](_0xcba7a3){const _0xeee2fc=_0x2b5a93;this['_resources']['delete'](_0xcba7a3),this[_0xeee2fc(0x123)][_0xeee2fc(0x148)](_0xcba7a3),this[_0xeee2fc(0x1ac)][_0xeee2fc(0x148)](_0xcba7a3),this[_0xeee2fc(0xce)]['next']({'unitId':_0xcba7a3});}[_0x2b5a93(0x188)](){const _0x5e8849=_0x2b5a93;this[_0x5e8849(0x118)]['clear'](),this[_0x5e8849(0x123)][_0x5e8849(0x1be)](),this[_0x5e8849(0x1ac)]['clear'](),this[_0x5e8849(0xce)][_0x5e8849(0x133)](),super[_0x5e8849(0x188)]();}['_preserveInvalid'](_0x1c7e3a,_0x34518c,_0x182f05){const _0x14a8c8=_0x2b5a93;this[_0x14a8c8(0x118)]['delete'](_0x1c7e3a),this['_rawResources'][_0x14a8c8(0x12e)](_0x1c7e3a,t[_0x14a8c8(0x1a2)][_0x14a8c8(0xa8)](_0x34518c)),this[_0x14a8c8(0x1ac)][_0x14a8c8(0x12e)](_0x1c7e3a,_0x182f05),this[_0x14a8c8(0xce)][_0x14a8c8(0x163)]({'unitId':_0x1c7e3a});}};let ve=function(_0x68effe){const _0x5b4e40=_0x2b5a93;return _0x68effe[_0x5b4e40(0x130)]=_0x5b4e40(0x122),_0x68effe[_0x5b4e40(0x18e)]=_0x5b4e40(0x114),_0x68effe[_0x5b4e40(0x16e)]=_0x5b4e40(0xb9),_0x68effe[_0x5b4e40(0x1b2)]=_0x5b4e40(0x1bc),_0x68effe;}({});function k(_0x3b8e34,_0x1cd2ba){return function(_0x1cd75f,_0x47a43e){_0x1cd2ba(_0x1cd75f,_0x47a43e,_0x3b8e34);};}function A(_0x68cc6a,_0x4aac86,_0x4d8294,_0x1f1cc1){const _0x4ae8a3=_0x2b5a93;var _0x2fba25=arguments[_0x4ae8a3(0x117)],_0x375f7a=_0x2fba25<0x3?_0x4aac86:_0x1f1cc1===null?_0x1f1cc1=Object[_0x4ae8a3(0xdb)](_0x4aac86,_0x4d8294):_0x1f1cc1,_0x4c54bb;if(typeof Reflect==_0x4ae8a3(0x155)&&typeof Reflect[_0x4ae8a3(0x99)]==_0x4ae8a3(0x168))_0x375f7a=Reflect[_0x4ae8a3(0x99)](_0x68cc6a,_0x4aac86,_0x4d8294,_0x1f1cc1);else{for(var _0x22e1e6=_0x68cc6a['length']-0x1;_0x22e1e6>=0x0;_0x22e1e6--)(_0x4c54bb=_0x68cc6a[_0x22e1e6])&&(_0x375f7a=(_0x2fba25<0x3?_0x4c54bb(_0x375f7a):_0x2fba25>0x3?_0x4c54bb(_0x4aac86,_0x4d8294,_0x375f7a):_0x4c54bb(_0x4aac86,_0x4d8294))||_0x375f7a);}return _0x2fba25>0x3&&_0x375f7a&&Object[_0x4ae8a3(0xd6)](_0x4aac86,_0x4d8294,_0x375f7a),_0x375f7a;}let j=class extends t[_0x2b5a93(0x1b0)]{constructor(_0x37e998,_0x21c993,_0xef4348){const _0x4be9b8=_0x2b5a93;super(),this[_0x4be9b8(0x149)]=_0x37e998,this[_0x4be9b8(0x1b4)]=_0x21c993,this['_hostExternalReferenceModel']=_0xef4348,D(this,_0x4be9b8(0xbe),new Map()),D(this,'_formulaKeys',new Map()),D(this,_0x4be9b8(0x94),new i['Subject']()),D(this,_0x4be9b8(0xfc),this['_presentationChanged$'][_0x4be9b8(0xa1)]()),this[_0x4be9b8(0x18f)](this[_0x4be9b8(0x1b4)][_0x4be9b8(0x1a9)][_0x4be9b8(0xaa)](_0x34d32c=>{const _0x1206fc=_0x4be9b8;for(let _0x108cbc of Object['values'](_0x34d32c))for(let _0x3d2c81 of Object['values'](_0x108cbc))_0x3d2c81[_0x1206fc(0x105)](_0x58a89a=>this[_0x1206fc(0xe0)](_0x58a89a));}));}[_0x2b5a93(0x93)](_0x42f37b){const _0x58e884=_0x2b5a93;var _0x1be0dc;let _0x279038=_0x42f37b[_0x58e884(0x152)](),_0x4f995c=((_0x1be0dc=_0x42f37b[_0x58e884(0x1ad)]()['body'])==null||(_0x1be0dc=_0x1be0dc[_0x58e884(0x8c)])==null?void 0x0:_0x1be0dc[_0x58e884(0xa2)](g))??[],_0x234812=this[_0x58e884(0x149)][_0x58e884(0x17c)](_0x279038),_0xbdc258=new Set();for(let _0x16c6ff of _0x4f995c){let _0x232d24=_0x234812[_0x16c6ff['rangeId']];_0x232d24&&(_0xbdc258[_0x58e884(0xc1)](M(_0x279038,_0x16c6ff['rangeId'])),this[_0x58e884(0x1a0)]({'unitId':_0x279038,'rangeId':_0x16c6ff[_0x58e884(0x101)]},_0x232d24));}for(let _0x398c09 of Array['from'](this[_0x58e884(0xbe)][_0x58e884(0x1c4)]()))_0x398c09[_0x58e884(0x97)]===_0x279038&&!_0xbdc258[_0x58e884(0x9a)](M(_0x398c09['unitId'],_0x398c09[_0x58e884(0x101)]))&&this[_0x58e884(0x170)](_0x398c09);}[_0x2b5a93(0x1a0)](_0xc81c49,_0x77d711){const _0x3c0573=_0x2b5a93;let _0x40d29f=M(_0xc81c49[_0x3c0573(0x97)],_0xc81c49['rangeId']),_0x10aca2=this[_0x3c0573(0xbe)][_0x3c0573(0x132)](_0x40d29f),_0x15b425=this[_0x3c0573(0x192)][_0x3c0573(0xc4)](_0xc81c49[_0x3c0573(0x97)]);if(_0x10aca2&&_0x10aca2[_0x3c0573(0x144)][_0x3c0573(0x16b)]===_0x77d711['formula']&&_0x10aca2[_0x3c0573(0x139)]===_0x15b425){_0x10aca2[_0x3c0573(0x144)]=_0x77d711;let _0x297770=_0x10aca2[_0x3c0573(0x102)]?this[_0x3c0573(0x1b4)][_0x3c0573(0x10b)](_0x10aca2[_0x3c0573(0x97)],_0x10aca2[_0x3c0573(0x97)],_0x10aca2['formulaId'])??void 0x0:void 0x0;_0x10aca2[_0x3c0573(0x142)]=_0x297770,this[_0x3c0573(0x14f)](_0x40d29f,N(_0x77d711,_0x297770));return;}_0x10aca2!=null&&_0x10aca2['formulaId']&&this[_0x3c0573(0xe5)](_0x10aca2);let _0x40d405={..._0xc81c49,'config':_0x77d711,'referenceRevision':_0x15b425,'presentation':N(_0x77d711,void 0x0)};if(this[_0x3c0573(0xbe)][_0x3c0573(0x12e)](_0x40d29f,_0x40d405),!_0x77d711[_0x3c0573(0x16b)]['trim']())return;let _0x414d0f=this[_0x3c0573(0x1b4)][_0x3c0573(0x13e)](_0xc81c49[_0x3c0573(0x97)],_0xc81c49[_0x3c0573(0x97)],_0x77d711[_0x3c0573(0x16b)],void 0x0,{'rangeId':_0xc81c49['rangeId']},r['OtherFormulaBizType'][_0x3c0573(0xad)],_0xc81c49[_0x3c0573(0x101)]);_0x40d405[_0x3c0573(0x102)]=_0x414d0f,this[_0x3c0573(0xaf)][_0x3c0573(0x12e)](_0x414d0f,_0x40d29f);}[_0x2b5a93(0x170)](_0x2e3a87){const _0x1478e3=_0x2b5a93;let _0x293c13=M(_0x2e3a87[_0x1478e3(0x97)],_0x2e3a87[_0x1478e3(0x101)]),_0x1435a3=this['_registrations']['get'](_0x293c13);_0x1435a3&&(this[_0x1478e3(0xe5)](_0x1435a3),this[_0x1478e3(0xbe)]['delete'](_0x293c13));}[_0x2b5a93(0x116)](_0x217f34){const _0x291a6c=_0x2b5a93;for(let _0x3da0d3 of Array[_0x291a6c(0x115)](this['_registrations'][_0x291a6c(0x1c4)]()))_0x3da0d3[_0x291a6c(0x97)]===_0x217f34&&this[_0x291a6c(0x170)](_0x3da0d3);}[_0x2b5a93(0x1b7)](_0x332927){const _0x14c1f9=_0x2b5a93;var _0x3ab14f;return(_0x3ab14f=this['_registrations']['get'](M(_0x332927[_0x14c1f9(0x97)],_0x332927[_0x14c1f9(0x101)])))==null?void 0x0:_0x3ab14f[_0x14c1f9(0x9b)];}[_0x2b5a93(0x140)](_0x10a9f6){const _0x538caf=_0x2b5a93;let _0x585fa2=this[_0x538caf(0xbe)][_0x538caf(0x132)](M(_0x10a9f6[_0x538caf(0x97)],_0x10a9f6[_0x538caf(0x101)]));return _0x585fa2?P(_0x585fa2):void 0x0;}[_0x2b5a93(0x91)](){const _0x2ca5b5=_0x2b5a93;return Array[_0x2ca5b5(0x115)](this[_0x2ca5b5(0xbe)][_0x2ca5b5(0x1c4)](),_0x4be8b3=>({'identity':{'unitId':_0x4be8b3[_0x2ca5b5(0x97)],'rangeId':_0x4be8b3[_0x2ca5b5(0x101)]},'config':_0x4be8b3[_0x2ca5b5(0x144)],'referenceRevision':_0x4be8b3['referenceRevision'],..._0x4be8b3[_0x2ca5b5(0x142)]?{'liveResult':_0x4be8b3[_0x2ca5b5(0x142)]}:null}));}[_0x2b5a93(0x188)](){const _0x3dca20=_0x2b5a93;for(let _0x4d1293 of this[_0x3dca20(0xbe)][_0x3dca20(0x1c4)]())this[_0x3dca20(0xe5)](_0x4d1293);this[_0x3dca20(0xbe)][_0x3dca20(0x1be)](),this[_0x3dca20(0xaf)][_0x3dca20(0x1be)](),this['_presentationChanged$'][_0x3dca20(0x133)](),super[_0x3dca20(0x188)]();}[_0x2b5a93(0xe0)](_0x58bb65){const _0x980fe3=_0x2b5a93;let _0x79cbd6=this[_0x980fe3(0xaf)][_0x980fe3(0x132)](_0x58bb65[_0x980fe3(0x102)]),_0x28dad4=_0x79cbd6?this[_0x980fe3(0xbe)][_0x980fe3(0x132)](_0x79cbd6):void 0x0;!_0x79cbd6||!_0x28dad4||(_0x28dad4[_0x980fe3(0x142)]=_0x58bb65,this[_0x980fe3(0x14f)](_0x79cbd6,N(_0x28dad4['config'],_0x58bb65)));}[_0x2b5a93(0x14f)](_0x269ea6,_0x5cbf82){const _0x456ea0=_0x2b5a93;var _0x420d7e,_0x317623;let _0xfa7aeb=this[_0x456ea0(0xbe)][_0x456ea0(0x132)](_0x269ea6);if(!_0xfa7aeb||ye(_0xfa7aeb[_0x456ea0(0x9b)],_0x5cbf82))return;let _0xd9fde2=_0xfa7aeb[_0x456ea0(0x9b)],_0x2ce0b7=P(_0xfa7aeb);_0xfa7aeb[_0x456ea0(0x9b)]=_0x5cbf82,this[_0x456ea0(0x94)][_0x456ea0(0x163)]({'unitId':_0xfa7aeb['unitId'],'rangeId':_0xfa7aeb['rangeId'],'presentation':_0x5cbf82,'previousPresentation':_0xd9fde2,'result':P(_0xfa7aeb),'previousResult':{..._0x2ce0b7,..._0xd9fde2,'value':(_0x420d7e=_0xd9fde2[_0x456ea0(0xf4)])==null?void 0x0:_0x420d7e['v'],'valueType':((_0x317623=_0xd9fde2['cell'])==null?void 0x0:_0x317623['t'])??void 0x0}});}[_0x2b5a93(0xe5)](_0x21d927){const _0x2b2777=_0x2b5a93;_0x21d927[_0x2b2777(0x102)]&&(this[_0x2b2777(0x1b4)][_0x2b2777(0x167)](_0x21d927[_0x2b2777(0x97)],_0x21d927[_0x2b2777(0x97)],[_0x21d927[_0x2b2777(0x102)]]),this[_0x2b2777(0xaf)][_0x2b2777(0x148)](_0x21d927[_0x2b2777(0x102)]));}};j=A([k(0x0,(0x0,t['Inject'])(O)),k(0x1,(0x0,t[_0x2b5a93(0xab)])(r[_0x2b5a93(0x113)])),k(0x2,(0x0,t[_0x2b5a93(0xab)])(e[_0x2b5a93(0xae)]))],j);function M(_0x4ff210,_0xfccc5d){return _0x4ff210+'\x00'+_0xfccc5d;}function N(_0xeaa92a,_0x59d264){const _0x3fce5b=_0x2b5a93;return(0x0,e[_0x3fce5b(0x15f)])({'numberFormat':_0xeaa92a[_0x3fce5b(0x17a)],'lastValue':_0xeaa92a[_0x3fce5b(0xe9)],'result':_0x59d264});}function P(_0x10e955){const _0x3ffa07=_0x2b5a93;var _0x22341d,_0x3c2add,_0x41cee0;let _0x5b810b=_0x10e955['presentation'],_0x21b9f7=_0x10e955[_0x3ffa07(0x144)][_0x3ffa07(0x16b)]['trim']()?_0x5b810b[_0x3ffa07(0xd4)]||_0x5b810b[_0x3ffa07(0xf4)]==null?_0x3ffa07(0x114):((_0x22341d=_0x10e955[_0x3ffa07(0x142)])==null?void 0x0:_0x22341d['status'])===r[_0x3ffa07(0x1a1)]['ERROR']?'error':_0x3ffa07(0xb9):_0x3ffa07(0x122);return{..._0x5b810b,'status':_0x21b9f7,'value':(_0x3c2add=_0x5b810b[_0x3ffa07(0xf4)])==null?void 0x0:_0x3c2add['v'],'valueType':((_0x41cee0=_0x5b810b['cell'])==null?void 0x0:_0x41cee0['t'])??void 0x0};}function ye(_0x1f3f99,_0x2ea2da){const _0x924d96=_0x2b5a93;var _0x2b244b,_0x4f16f2,_0x237b65,_0x43a6e7;return _0x1f3f99[_0x924d96(0x173)]===_0x2ea2da[_0x924d96(0x173)]&&_0x1f3f99['color']===_0x2ea2da[_0x924d96(0x1a4)]&&_0x1f3f99[_0x924d96(0x178)]===_0x2ea2da[_0x924d96(0x178)]&&_0x1f3f99[_0x924d96(0xc2)]===_0x2ea2da[_0x924d96(0xc2)]&&_0x1f3f99[_0x924d96(0xd4)]===_0x2ea2da['stale']&&((_0x2b244b=_0x1f3f99[_0x924d96(0xf4)])==null?void 0x0:_0x2b244b['t'])===((_0x4f16f2=_0x2ea2da['cell'])==null?void 0x0:_0x4f16f2['t'])&&Object['is']((_0x237b65=_0x1f3f99[_0x924d96(0xf4)])==null?void 0x0:_0x237b65['v'],(_0x43a6e7=_0x2ea2da['cell'])==null?void 0x0:_0x43a6e7['v']);}const F={'id':_0x2b5a93(0x89),'type':t[_0x2b5a93(0x131)][_0x2b5a93(0x19f)],'handler':(_0x2615c3,_0x1f52e8)=>!(_0x1f52e8!=null&&_0x1f52e8[_0x2b5a93(0x97)])||!_0x1f52e8[_0x2b5a93(0x101)]||!_0x1f52e8['config']?!0x1:_0x2615c3[_0x2b5a93(0x132)](O)['setFormula'](_0x1f52e8[_0x2b5a93(0x97)],_0x1f52e8[_0x2b5a93(0x101)],_0x1f52e8['config'])},I={'id':'docs-formula.mutation.remove-formula','type':t[_0x2b5a93(0x131)]['MUTATION'],'handler':(_0x30eff5,_0x569d37)=>!(_0x569d37!=null&&_0x569d37[_0x2b5a93(0x97)])||!_0x569d37['rangeId']?!0x1:_0x30eff5[_0x2b5a93(0x132)](O)[_0x2b5a93(0x10c)](_0x569d37[_0x2b5a93(0x97)],_0x569d37[_0x2b5a93(0x101)])},L={'id':'docs-formula.mutation.set-resource','type':t[_0x2b5a93(0x131)]['MUTATION'],'handler':(_0x5e12f2,_0x152f29)=>!(_0x152f29!=null&&_0x152f29[_0x2b5a93(0x97)])||!_0x152f29[_0x2b5a93(0x166)]?!0x1:_0x5e12f2[_0x2b5a93(0x132)](O)[_0x2b5a93(0xd0)](_0x152f29['unitId'],_0x152f29[_0x2b5a93(0x166)])},R={'id':_0x2b5a93(0x156),'type':t['CommandType'][_0x2b5a93(0x19f)],'handler':(_0x17080f,_0x4294c4)=>{const _0x4f53b5=_0x2b5a93;if(!(_0x4294c4!=null&&_0x4294c4['unitId'])||!_0x4294c4[_0x4f53b5(0x8f)][_0x4f53b5(0x117)])return!0x1;let _0xb09916=_0x17080f['get'](O),_0x31372e=_0x17080f[_0x4f53b5(0x132)](e[_0x4f53b5(0xae)]),_0x52f674=_0xb09916[_0x4f53b5(0xc3)](_0x4294c4[_0x4f53b5(0x97)]);if(!_0x52f674)return!0x1;let _0x5e9254=t[_0x4f53b5(0x1a2)]['deepClone'](_0x52f674),_0x271590=!0x1;for(let _0x27ea0d of _0x4294c4['updates']){var _0x227f7b,_0x16b38d,_0x2616c0,_0xc77e0b;let _0xf3fa1c=_0x5e9254[_0x4f53b5(0x9e)][_0x27ea0d[_0x4f53b5(0x101)]];!_0xf3fa1c||_0xf3fa1c[_0x4f53b5(0x16b)]!==_0x27ea0d[_0x4f53b5(0x95)]||((_0x227f7b=_0xf3fa1c[_0x4f53b5(0x17a)])==null?void 0x0:_0x227f7b[_0x4f53b5(0x178)])!==_0x27ea0d[_0x4f53b5(0x13a)]||_0x31372e[_0x4f53b5(0xc4)](_0x4294c4[_0x4f53b5(0x97)])!==_0x27ea0d[_0x4f53b5(0xe2)]||(((_0x16b38d=_0xf3fa1c[_0x4f53b5(0xe9)])==null?void 0x0:_0x16b38d['v'])!==_0x27ea0d[_0x4f53b5(0xe9)]['v']||((_0x2616c0=_0xf3fa1c['lastValue'])==null?void 0x0:_0x2616c0['t'])!==_0x27ea0d[_0x4f53b5(0xe9)]['t']||((_0xc77e0b=_0xf3fa1c[_0x4f53b5(0xe9)])==null?void 0x0:_0xc77e0b[_0x4f53b5(0x178)])!==_0x27ea0d['lastValue'][_0x4f53b5(0x178)])&&(_0xf3fa1c['lastValue']=t[_0x4f53b5(0x1a2)][_0x4f53b5(0xa8)](_0x27ea0d['lastValue']),_0x271590=!0x0);}return!_0x271590||_0xb09916[_0x4f53b5(0xd0)](_0x4294c4[_0x4f53b5(0x97)],_0x5e9254);}},z={'id':_0x2b5a93(0x120),'type':t['CommandType'][_0x2b5a93(0x1bb)],'handler':(_0x2e01e6,_0x44d7df)=>{const _0x7acbca=_0x2b5a93;if(!(_0x44d7df!=null&&_0x44d7df['formula'][_0x7acbca(0x8e)]()))return!0x1;let _0x4d6987=K(_0x2e01e6,_0x44d7df[_0x7acbca(0x97)],'');if(!_0x4d6987)return!0x1;let _0x3c72d2=xe(_0x44d7df[_0x7acbca(0x158)],_0x4d6987['body'],be(_0x2e01e6,_0x4d6987[_0x7acbca(0x97)]));if(!_0x3c72d2)return!0x1;let _0x473b1e=Se(_0x2e01e6,_0x4d6987[_0x7acbca(0x97)],_0x44d7df[_0x7acbca(0x16b)],_0x44d7df[_0x7acbca(0xbd)]??[]);if(!_0x473b1e)return!0x1;let _0xd2c6c2=Ce(_0x4d6987[_0x7acbca(0xf5)],_0x4d6987[_0x7acbca(0xa0)],_0x4d6987[_0x7acbca(0x97)]),_0xe8e59d=we({'documentData':_0x4d6987[_0x7acbca(0x10e)],'resource':_0x4d6987['resource'],'rangeId':_0xd2c6c2,'config':{'formula':_0x44d7df[_0x7acbca(0x16b)],..._0x44d7df[_0x7acbca(0x17a)]?{'numberFormat':_0x44d7df[_0x7acbca(0x17a)]}:null},'startOffset':_0x3c72d2['startOffset'],'endOffset':_0x3c72d2[_0x7acbca(0xdd)]});if(!_0xe8e59d)return!0x1;let _0x31465b=(0x0,e[_0x7acbca(0x1af)])(_0x2e01e6,_0x4d6987['unitId'],_0x473b1e);return!_0x31465b||!q({'accessor':_0x2e01e6,'document':_0x4d6987[_0x7acbca(0x18d)],'unitId':_0x4d6987[_0x7acbca(0x97)],'trigger':z['id'],'rangeId':_0xd2c6c2,'previousResource':_0x4d6987[_0x7acbca(0x166)],'nextResource':_0xe8e59d[_0x7acbca(0x16c)],'previousDocumentData':_0x4d6987[_0x7acbca(0x10e)],'nextDocumentData':_0xe8e59d['nextDocumentData'],'cursorOffset':_0xe8e59d[_0x7acbca(0x1c6)],'externalMutations':_0x31465b})?!0x1:{'rangeId':_0xd2c6c2,'startOffset':_0xe8e59d[_0x7acbca(0x1c6)]-0x1,'endOffset':_0xe8e59d[_0x7acbca(0x1c6)]};}},B={'id':_0x2b5a93(0x112),'type':t['CommandType']['COMMAND'],'handler':(_0x573556,_0x25a6b1)=>{const _0x5d78b9=_0x2b5a93;if(!(_0x25a6b1!=null&&_0x25a6b1[_0x5d78b9(0x101)])||!_0x25a6b1[_0x5d78b9(0x16b)][_0x5d78b9(0x8e)]())return!0x1;let _0x2b6634=K(_0x573556,_0x25a6b1['unitId'],''),_0x490aaa=_0x2b6634==null?void 0x0:_0x2b6634[_0x5d78b9(0xa0)][_0x5d78b9(0xb3)](_0x2b6634['unitId'],_0x25a6b1['rangeId']),_0x16c117=_0x2b6634?_(_0x2b6634[_0x5d78b9(0x10e)][_0x5d78b9(0xf5)],_0x25a6b1[_0x5d78b9(0x101)]):void 0x0;if(!_0x2b6634||!_0x490aaa||!_0x16c117)return!0x1;let _0xd018cf=Se(_0x573556,_0x2b6634['unitId'],_0x25a6b1['formula'],_0x25a6b1[_0x5d78b9(0xbd)]??[]);if(!_0xd018cf)return!0x1;let _0x471b74=(0x0,e[_0x5d78b9(0x1af)])(_0x573556,_0x2b6634['unitId'],_0xd018cf);if(!_0x471b74)return!0x1;let _0xe6a748=je(_0x2b6634['resource']);return _0xe6a748['formulas'][_0x25a6b1[_0x5d78b9(0x101)]]={'formula':_0x25a6b1[_0x5d78b9(0x16b)],..._0x25a6b1[_0x5d78b9(0x17a)]?{'numberFormat':_0x25a6b1['numberFormat']}:_0x490aaa['numberFormat']?{'numberFormat':_0x490aaa['numberFormat']}:null},q({'accessor':_0x573556,'document':_0x2b6634[_0x5d78b9(0x18d)],'unitId':_0x2b6634[_0x5d78b9(0x97)],'trigger':B['id'],'rangeId':_0x25a6b1[_0x5d78b9(0x101)],'previousResource':_0x2b6634[_0x5d78b9(0x166)],'nextResource':_0xe6a748,'cursorOffset':_0x16c117[_0x5d78b9(0x96)]+0x1,'externalMutations':_0x471b74});}},V={'id':'docs-formula.command.set-number-format','type':t[_0x2b5a93(0x131)]['COMMAND'],'handler':(_0x5efd18,_0x5f2776)=>{const _0x24f708=_0x2b5a93;if(!(_0x5f2776!=null&&_0x5f2776['rangeId']))return!0x1;let _0x182e92=K(_0x5efd18,_0x5f2776[_0x24f708(0x97)],''),_0x3e6050=_0x182e92==null?void 0x0:_0x182e92[_0x24f708(0xa0)][_0x24f708(0xb3)](_0x182e92[_0x24f708(0x97)],_0x5f2776[_0x24f708(0x101)]),_0x4e10dd=_0x182e92?_(_0x182e92[_0x24f708(0x10e)][_0x24f708(0xf5)],_0x5f2776['rangeId']):void 0x0;if(!_0x182e92||!_0x3e6050||!_0x4e10dd)return!0x1;let _0x110deb=je(_0x182e92[_0x24f708(0x166)]);return _0x110deb[_0x24f708(0x9e)][_0x5f2776['rangeId']]={..._0x3e6050,..._0x5f2776[_0x24f708(0x17a)]?{'numberFormat':_0x5f2776[_0x24f708(0x17a)]}:null},_0x5f2776[_0x24f708(0x17a)]||delete _0x110deb['formulas'][_0x5f2776[_0x24f708(0x101)]][_0x24f708(0x17a)],q({'accessor':_0x5efd18,'document':_0x182e92[_0x24f708(0x18d)],'unitId':_0x182e92[_0x24f708(0x97)],'trigger':V['id'],'rangeId':_0x5f2776['rangeId'],'previousResource':_0x182e92['resource'],'nextResource':_0x110deb,'cursorOffset':_0x4e10dd['endIndex']+0x1,'externalMutations':{}});}},H={'id':_0x2b5a93(0xea),'type':t[_0x2b5a93(0x131)]['COMMAND'],'handler':(_0x53bbd5,_0x13e731)=>G(_0x53bbd5,_0x13e731,'',H['id'])},U={'id':_0x2b5a93(0x1bf),'type':t[_0x2b5a93(0x131)][_0x2b5a93(0x1bb)],'handler':(_0x3e327f,_0x418e5b)=>G(_0x3e327f,_0x418e5b,(_0x418e5b==null?void 0x0:_0x418e5b[_0x2b5a93(0x173)])??'',U['id'])},W={'id':'docs-formula.command.convert-to-text','type':t[_0x2b5a93(0x131)][_0x2b5a93(0x1bb)],'handler':(_0x3e06a7,_0x519e4b)=>{const _0x414e39=_0x2b5a93;if(!(_0x519e4b!=null&&_0x519e4b[_0x414e39(0x101)]))return!0x1;let _0x5449a9=K(_0x3e06a7,_0x519e4b[_0x414e39(0x97)],'');if(!_0x5449a9)return!0x1;let _0x34cee6=_0x3e06a7[_0x414e39(0x132)](j)[_0x414e39(0x140)]({'unitId':_0x5449a9[_0x414e39(0x97)],'rangeId':_0x519e4b[_0x414e39(0x101)]});return _0x34cee6?G(_0x3e06a7,_0x519e4b,_0x34cee6[_0x414e39(0x173)],W['id']):!0x1;}};function G(_0x4ec490,_0x30afd0,_0x2fa2fe,_0x2a655c){const _0x455100=_0x2b5a93;if(!(_0x30afd0!=null&&_0x30afd0[_0x455100(0x101)]))return!0x1;let _0x373815=K(_0x4ec490,_0x30afd0[_0x455100(0x97)],'');if(!_0x373815)return!0x1;let _0x261bc4=h({'documentData':_0x373815[_0x455100(0x10e)],'resource':_0x373815['resource'],'rangeId':_0x30afd0[_0x455100(0x101)],'text':_0x2fa2fe});return _0x261bc4?q({'accessor':_0x4ec490,'document':_0x373815[_0x455100(0x18d)],'unitId':_0x373815[_0x455100(0x97)],'trigger':_0x2a655c,'rangeId':_0x30afd0[_0x455100(0x101)],'previousResource':_0x373815[_0x455100(0x166)],'nextResource':_0x261bc4[_0x455100(0x16c)],'previousDocumentData':_0x373815[_0x455100(0x10e)],'nextDocumentData':_0x261bc4[_0x455100(0x190)],'cursorOffset':_0x261bc4['cursorOffset'],'externalMutations':{}}):!0x1;}function K(_0x2fa774,_0x3028f5,_0x185a04){const _0x180d8e=_0x2b5a93;if(_0x185a04)return null;let _0x40d172=_0x2fa774['get'](t[_0x180d8e(0xfe)]),_0x4a363e=(_0x3028f5?_0x40d172[_0x180d8e(0x1ab)](_0x3028f5,t[_0x180d8e(0x141)][_0x180d8e(0xb6)]):_0x40d172[_0x180d8e(0x15d)](t[_0x180d8e(0x141)][_0x180d8e(0xb6)]))??null;if(!_0x4a363e)return null;let _0x40cfed=_0x4a363e[_0x180d8e(0x1ad)](),_0x4ae5b0=_0x40cfed[_0x180d8e(0xf5)];if(_0x40cfed['disabled']||!_0x4ae5b0)return null;let _0x5d46ac=_0x2fa774['get'](O);return _0x5d46ac[_0x180d8e(0x1c3)](_0x4a363e[_0x180d8e(0x152)]())?null:{'document':_0x4a363e,'body':_0x4ae5b0,'documentData':_0x40cfed,'model':_0x5d46ac,'resource':_0x5d46ac['getResource'](_0x4a363e['getUnitId']())??c(),'unitId':_0x4a363e['getUnitId']()};}function be(_0x414469,_0x50a7fc){const _0x68e327=_0x2b5a93;var _0x9afab4;return(_0x9afab4=_0x414469[_0x68e327(0x132)](n[_0x68e327(0x9d)])['getTextRanges']({'subUnitId':_0x50a7fc,'unitId':_0x50a7fc}))==null?void 0x0:_0x9afab4[0x0];}function xe(_0x1a77f7,_0xcefc05,_0x151470){const _0x3af0e4=_0x2b5a93;if((_0x1a77f7==null?void 0x0:_0x1a77f7[_0x3af0e4(0x143)])===_0x3af0e4(0x193)){var _0x306860;let _0x545b96=((_0x306860=_0xcefc05[_0x3af0e4(0xc7)])==null?void 0x0:_0x306860[_0x3af0e4(0xa2)](_0x32f57b=>_0x32f57b[_0x3af0e4(0xe3)]===_0x1a77f7[_0x3af0e4(0xe3)]))??[];if(_0x545b96['length']!==0x1)return null;let _0x5e307f=_0x545b96[0x0],_0x4b2e3a=(0x0,t[_0x3af0e4(0xff)])(_0xcefc05,_0x5e307f),_0x3ee925=_0x5e307f['startIndex']-_0x4b2e3a,_0x15eb1c=_0x1a77f7['position']===_0x3af0e4(0x14b)?_0x3ee925:_0x1a77f7['position'];if(!Number[_0x3af0e4(0x8a)](_0x15eb1c)||_0x15eb1c<0x0||_0x15eb1c>_0x3ee925)return null;let _0x2ecf9c=_0x4b2e3a+_0x15eb1c;return{'startOffset':_0x2ecf9c,'endOffset':_0x2ecf9c};}if((_0x1a77f7==null?void 0x0:_0x1a77f7['type'])===_0x3af0e4(0x17f))return!Number['isInteger'](_0x1a77f7[_0x3af0e4(0xb0)])||!Number[_0x3af0e4(0x8a)](_0x1a77f7['endOffset'])?null:{'startOffset':Math[_0x3af0e4(0x11a)](_0x1a77f7[_0x3af0e4(0xb0)],_0x1a77f7[_0x3af0e4(0xdd)]),'endOffset':Math[_0x3af0e4(0xca)](_0x1a77f7[_0x3af0e4(0xb0)],_0x1a77f7[_0x3af0e4(0xdd)])};let _0x2469d5=(_0x1a77f7==null?void 0x0:_0x1a77f7['type'])===_0x3af0e4(0x16a)?_0x1a77f7['selection']:_0x151470;return!_0x2469d5||_0x2469d5[_0x3af0e4(0x138)]?null:{'startOffset':Math[_0x3af0e4(0x11a)](_0x2469d5[_0x3af0e4(0xb0)],_0x2469d5['endOffset']),'endOffset':Math['max'](_0x2469d5[_0x3af0e4(0xb0)],_0x2469d5[_0x3af0e4(0xdd)])};}function Se(_0x4c4e5d,_0x20caca,_0xc9b01b,_0x33ff3a){const _0x3b3923=_0x2b5a93;let _0x1c3631=_0x4c4e5d['get'](r['LexerTreeBuilder']),_0x337479=_0xc9b01b[_0x3b3923(0x160)]('=')?_0xc9b01b[_0x3b3923(0x12c)](0x1):_0xc9b01b,_0x1e5181=_0x1c3631[_0x3b3923(0x191)](_0x337479);if(!_0x1e5181)return null;let _0xada9f1=_0x4c4e5d[_0x3b3923(0x132)](e['HostExternalReferenceModel']),_0x24e7c6=(0x0,e[_0x3b3923(0x12a)])({'qualifiers':(0x0,e[_0x3b3923(0xd9)])(_0x1e5181),'explicitReferences':_0x33ff3a??[],'resolveBinding':_0x1e2960=>_0xada9f1['resolveBinding'](_0x20caca,_0x1e2960)});return _0x24e7c6[_0x3b3923(0xe8)]===_0x3b3923(0xfb)?_0x24e7c6['references']:null;}function Ce(_0x35926a,_0x468667,_0x49a2ec){const _0x1aa224=_0x2b5a93;var _0x4d1e91;let _0x54a9cf=(0x0,t[_0x1aa224(0x151)])(0x6);for(;_0x35926a!=null&&(_0x4d1e91=_0x35926a[_0x1aa224(0x8c)])!=null&&_0x4d1e91[_0x1aa224(0x11d)](_0x22c8b8=>_0x22c8b8[_0x1aa224(0x101)]===_0x54a9cf)||_0x468667[_0x1aa224(0xb3)](_0x49a2ec,_0x54a9cf);)_0x54a9cf=(0x0,t[_0x1aa224(0x151)])(0x6);return _0x54a9cf;}function we(_0x26fbbe){try{return te(_0x26fbbe);}catch(_0x39dfe7){if(_0x39dfe7 instanceof m)return null;throw _0x39dfe7;}}function Te(_0xd29e0d){const _0xfc6661=_0x2b5a93;let _0x1a9225=_0xd29e0d[_0xfc6661(0xc8)]&&_0xd29e0d[_0xfc6661(0x190)]?De(_0xd29e0d['document'],_0xd29e0d[_0xfc6661(0x97)],_0xd29e0d[_0xfc6661(0xc8)],_0xd29e0d[_0xfc6661(0x190)],_0xd29e0d[_0xfc6661(0x1c6)],_0xd29e0d[_0xfc6661(0xcf)]):null;return _0xd29e0d[_0xfc6661(0xc8)]&&_0xd29e0d['nextDocumentData']&&!_0x1a9225?null:{'documentRedo':_0x1a9225,'resourceRedo':{'id':L['id'],'params':{'unitId':_0xd29e0d[_0xfc6661(0x97)],'resource':_0xd29e0d[_0xfc6661(0x16c)]}},'resourceUndo':{'id':L['id'],'params':{'unitId':_0xd29e0d[_0xfc6661(0x97)],'resource':_0xd29e0d[_0xfc6661(0x15b)]}}};}function Ee(_0x4abefd,_0x3c0561,_0x314bc5,_0x30cf04){const _0x2aa78e=_0x2b5a93;_0x30cf04[_0x2aa78e(0xb8)]({'id':_0x4abefd['trigger']+':'+_0x4abefd['rangeId'],'unitID':_0x4abefd['unitId'],'redoMutations':[..._0x4abefd[_0x2aa78e(0x11f)][_0x2aa78e(0x189)]?[_0x4abefd[_0x2aa78e(0x11f)][_0x2aa78e(0x189)]]:[],..._0x3c0561[_0x2aa78e(0x1c1)]?[_0x3c0561['documentRedo']]:[],_0x3c0561[_0x2aa78e(0x186)]],'undoMutations':[_0x3c0561[_0x2aa78e(0x100)],..._0x314bc5?[_0x314bc5]:[],..._0x4abefd['externalMutations'][_0x2aa78e(0x18c)]?[_0x4abefd[_0x2aa78e(0x11f)][_0x2aa78e(0x18c)]]:[]]});}function q(_0x1a3cbf){const _0x2f327c=_0x2b5a93;let _0x5d8579=_0x1a3cbf['accessor'][_0x2f327c(0x132)](t[_0x2f327c(0xdf)]),_0xd66c38=_0x1a3cbf[_0x2f327c(0xd7)][_0x2f327c(0x132)](t['IUndoRedoService']),_0x5a43c6=_0x1a3cbf['accessor']['get'](n[_0x2f327c(0x9d)]),_0x1b8a3e=Te(_0x1a3cbf);if(!_0x1b8a3e)return!0x1;let _0x1b3a81=!0x1,_0x1a16b3=null,_0x735dbc=!0x1;try{if(_0x1a3cbf[_0x2f327c(0x11f)]['redoMutation']){if(!_0x5d8579[_0x2f327c(0xac)](_0x1a3cbf[_0x2f327c(0x11f)][_0x2f327c(0x189)]['id'],_0x1a3cbf[_0x2f327c(0x11f)][_0x2f327c(0x189)][_0x2f327c(0x17b)]))return!0x1;_0x1b3a81=!0x0;}if(_0x1b8a3e[_0x2f327c(0x1c1)]){let _0x50fcd9=_0x5d8579[_0x2f327c(0xac)](_0x1b8a3e[_0x2f327c(0x1c1)]['id'],_0x1b8a3e[_0x2f327c(0x1c1)][_0x2f327c(0x17b)]);if(!_0x50fcd9)return J(_0x5d8579,_0x1a3cbf[_0x2f327c(0x11f)],_0x1b3a81),!0x1;_0x1a16b3={'id':n[_0x2f327c(0x13f)]['id'],'params':{..._0x50fcd9,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x5d8579['syncExecuteCommand'](_0x1b8a3e[_0x2f327c(0x186)]['id'],_0x1b8a3e[_0x2f327c(0x186)][_0x2f327c(0x17b)]))return Oe(_0x5d8579,_0x1a16b3),J(_0x5d8579,_0x1a3cbf[_0x2f327c(0x11f)],_0x1b3a81),!0x1;_0x735dbc=!0x0,Ee(_0x1a3cbf,_0x1b8a3e,_0x1a16b3,_0xd66c38);}catch(_0x4872cc){throw _0x735dbc&&_0x5d8579[_0x2f327c(0xac)](_0x1b8a3e[_0x2f327c(0x100)]['id'],_0x1b8a3e['resourceUndo'][_0x2f327c(0x17b)]),Oe(_0x5d8579,_0x1a16b3),J(_0x5d8579,_0x1a3cbf[_0x2f327c(0x11f)],_0x1b3a81),_0x4872cc;}return _0x5a43c6[_0x2f327c(0x14d)]([{'startOffset':_0x1a3cbf[_0x2f327c(0x1c6)],'endOffset':_0x1a3cbf[_0x2f327c(0x1c6)],'segmentId':''}],{'unitId':_0x1a3cbf['unitId'],'subUnitId':_0x1a3cbf[_0x2f327c(0x97)]},!0x1,{[n[_0x2f327c(0x171)]]:!0x0}),!0x0;}function De(_0x35bbfe,_0x1960a3,_0x4994ea,_0x289699,_0x3b1ac6,_0x5e4963){const _0x1861d1=_0x2b5a93;let _0x683e88=ke(_0x4994ea,_0x289699,(0x0,t['getRichTextEditPath'])(_0x35bbfe,''));return _0x683e88?{'id':n[_0x1861d1(0x13f)]['id'],'params':{'unitId':_0x1960a3,'actions':_0x683e88,'segmentId':'','textRanges':[{'startOffset':_0x3b1ac6,'endOffset':_0x3b1ac6,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x5e4963}}:null;}function Oe(_0x294303,_0x5d5aeb){const _0x21a939=_0x2b5a93;_0x5d5aeb&&_0x294303[_0x21a939(0xac)](_0x5d5aeb['id'],_0x5d5aeb[_0x21a939(0x17b)]);}function J(_0x5a43d9,_0x3a182a,_0x1567f9){const _0x4865a1=_0x2b5a93;_0x1567f9&&_0x3a182a[_0x4865a1(0x18c)]&&_0x5a43d9['syncExecuteCommand'](_0x3a182a[_0x4865a1(0x18c)]['id'],_0x3a182a[_0x4865a1(0x18c)][_0x4865a1(0x17b)]);}function ke(_0x31a853,_0x117a5e,_0x323a0d){const _0x389bf3=_0x2b5a93;let _0x807d4e=_0x31a853[_0x389bf3(0xf5)],_0x2b5052=_0x117a5e[_0x389bf3(0xf5)],_0x49bebd=Ae(_0x807d4e==null?void 0x0:_0x807d4e['dataStream'],_0x2b5052==null?void 0x0:_0x2b5052[_0x389bf3(0x154)]);if(!_0x49bebd||!_0x2b5052)return null;let _0x3b71ff=new t['TextX']();return _0x3b71ff['retain'](_0x49bebd['start']),_0x49bebd['insertLength']>0x0&&_0x3b71ff[_0x389bf3(0xd3)](_0x49bebd[_0x389bf3(0xf2)],(0x0,t[_0x389bf3(0xf8)])(_0x2b5052,_0x49bebd[_0x389bf3(0x185)],_0x49bebd[_0x389bf3(0x185)]+_0x49bebd['insertLength'],!0x1)),_0x49bebd['deleteLength']>0x0&&_0x3b71ff[_0x389bf3(0x148)](_0x49bebd[_0x389bf3(0x11b)]),t[_0x389bf3(0x106)][_0x389bf3(0x172)]()['editOp'](_0x3b71ff[_0x389bf3(0xfa)](),_0x323a0d);}function Ae(_0x2ebe49,_0x563647){const _0xd7a928=_0x2b5a93;if(_0x2ebe49==null||_0x563647==null||_0x2ebe49===_0x563647)return null;let _0x27bb67=0x0;for(;_0x27bb67<_0x2ebe49[_0xd7a928(0x117)]&&_0x27bb67<_0x563647[_0xd7a928(0x117)]&&_0x2ebe49[_0x27bb67]===_0x563647[_0x27bb67];)_0x27bb67+=0x1;let _0x4c85da=_0x2ebe49[_0xd7a928(0x117)],_0x17dcc8=_0x563647[_0xd7a928(0x117)];for(;_0x4c85da>_0x27bb67&&_0x17dcc8>_0x27bb67&&_0x2ebe49[_0x4c85da-0x1]===_0x563647[_0x17dcc8-0x1];)--_0x4c85da,--_0x17dcc8;return{'start':_0x27bb67,'deleteLength':_0x4c85da-_0x27bb67,'insertLength':_0x17dcc8-_0x27bb67};}function je(_0x2d6609){const _0x58a85e=_0x2b5a93;return{'schemaVersion':0x1,'formulas':Object[_0x58a85e(0xef)](Object[_0x58a85e(0xec)](_0x2d6609[_0x58a85e(0x9e)])[_0x58a85e(0xd2)](([_0x53b06b,_0x13f187])=>[_0x53b06b,{..._0x13f187,..._0x13f187[_0x58a85e(0x17a)]?{'numberFormat':{..._0x13f187[_0x58a85e(0x17a)]}}:null,..._0x13f187[_0x58a85e(0xe9)]?{'lastValue':{..._0x13f187[_0x58a85e(0xe9)]}}:null}]))};}let Y=class extends t[_0x2b5a93(0x1b0)]{constructor(_0x29dc95,_0xef4ab5,_0x2921d4,_0x9b0941){const _0x1a67c4=_0x2b5a93;super(),this[_0x1a67c4(0x13c)]=_0x29dc95,this[_0x1a67c4(0x15e)]=_0xef4ab5,this['_model']=_0x2921d4,this[_0x1a67c4(0x1a5)]=_0x9b0941,D(this,_0x1a67c4(0x15a),new Set()),D(this,_0x1a67c4(0xb4),!0x1),D(this,'_isDisposed',!0x1),this[_0x1a67c4(0x13c)][_0x1a67c4(0xda)](t['UniverInstanceType'][_0x1a67c4(0xb6)])[_0x1a67c4(0x105)](_0x5bb838=>this[_0x1a67c4(0x1a5)][_0x1a67c4(0x93)](_0x5bb838)),this[_0x1a67c4(0x18f)](this[_0x1a67c4(0x149)][_0x1a67c4(0x175)][_0x1a67c4(0xaa)](({unitId:_0x34ddcc})=>this[_0x1a67c4(0xd5)](_0x34ddcc))),this[_0x1a67c4(0x18f)](this[_0x1a67c4(0x13c)][_0x1a67c4(0xde)][_0x1a67c4(0xaa)](({unit:_0x2aad64})=>{const _0x2f154b=_0x1a67c4;_0x2aad64['type']===t[_0x2f154b(0x141)][_0x2f154b(0xb6)]&&this[_0x2f154b(0x198)](_0x2aad64['getUnitId']());})),this[_0x1a67c4(0x18f)](this[_0x1a67c4(0x13c)][_0x1a67c4(0xb1)][_0x1a67c4(0xaa)](_0x35bf75=>{const _0x3ed66d=_0x1a67c4;this['_service']['unregisterUnit'](_0x35bf75[_0x3ed66d(0x152)]());})),this[_0x1a67c4(0x18f)](this[_0x1a67c4(0x15e)][_0x1a67c4(0x18b)](_0x5dbcab=>{const _0x444d47=_0x1a67c4;if(_0x5dbcab['id']===n['RichTextEditingMutation']['id']&&Me(_0x5dbcab[_0x444d47(0x17b)])){let _0x2fd1e1=_0x5dbcab['params'];_0x2fd1e1['segmentId']||this[_0x444d47(0xd5)](_0x2fd1e1[_0x444d47(0x97)]);}}));}['dispose'](){const _0x19add8=_0x2b5a93;this[_0x19add8(0x19e)]=!0x0,super['dispose']();}[_0x2b5a93(0x198)](_0x303548){const _0x7acd3a=_0x2b5a93;this[_0x7acd3a(0x15a)][_0x7acd3a(0xc1)](_0x303548),!this[_0x7acd3a(0xb4)]&&(this[_0x7acd3a(0xb4)]=!0x0,queueMicrotask(()=>{const _0x344a58=_0x7acd3a;if(this['_syncScheduled']=!0x1,this[_0x344a58(0x19e)])return;let _0x200dae=Array[_0x344a58(0x115)](this[_0x344a58(0x15a)]);this[_0x344a58(0x15a)]['clear'](),_0x200dae['forEach'](_0x520cff=>this[_0x344a58(0xd5)](_0x520cff));}));}[_0x2b5a93(0xd5)](_0x1c6ba8){const _0x849d8=_0x2b5a93;let _0x52ad61=this[_0x849d8(0x13c)]['getUnit'](_0x1c6ba8,t[_0x849d8(0x141)][_0x849d8(0xb6)]);_0x52ad61&&this[_0x849d8(0x1a5)][_0x849d8(0x93)](_0x52ad61);}};Y=A([k(0x0,t[_0x2b5a93(0xfe)]),k(0x1,t[_0x2b5a93(0xdf)]),k(0x2,(0x0,t[_0x2b5a93(0xab)])(O)),k(0x3,(0x0,t['Inject'])(j))],Y);function Me(_0x1ac22c){const _0x569d17=_0x2b5a93;return typeof _0x1ac22c=='object'&&!!_0x1ac22c&&_0x569d17(0x97)in _0x1ac22c&&typeof _0x1ac22c[_0x569d17(0x97)]==_0x569d17(0x12d)&&(!('segmentId'in _0x1ac22c)||_0x1ac22c[_0x569d17(0x138)]===void 0x0||typeof _0x1ac22c[_0x569d17(0x138)]==_0x569d17(0x12d));}function _0x50fa(){const _0x1dd762=['_univerInstanceService','map','insert','stale','_syncUnit','defineProperty','accessor','CellValueType','collectFormulaExternalReferenceQualifiers','getAllUnitsForType','getOwnPropertyDescriptor','sectionBreaks','endOffset','unitAdded$','ICommandService','_updateFormulaResult','3901644gRdLOP','expectedReferenceRevision','paragraphId','PARAGRAPH','_deleteRegistration','rangeType','RemoveDocFormulaMutation','status','lastValue','docs-formula.command.remove','DocFormulaModel','entries','default','univer-docs-formula','fromEntries','data','FormulaLastValuePersistenceService','insertLength','resolveText','cell','body','identity','Module','getBodySliceForTextXAction','Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.','serialize','resolved','presentationChanged$','73634REAqSN','IUniverInstanceService','getParagraphContentStartOffset','resourceUndo','rangeId','formulaId','COLUMN_END','182XcIVIa','forEach','JSONX','SetDocFormulaLastValuesMutation','notifyTextChanged','COLUMN_GROUP_START','customBlocks','getFormulaValueSync','removeFormula','DOC_FORMULA_CUSTOM_RANGE_KIND','documentData','DocFormulaResultStatus','invalid-resource','108606rkIyRJ','docs-formula.command.update','RegisterOtherFormulaService','pending','from','unregisterUnit','length','_resources','symbol','min','deleteLength','Injector','some','DOC_FORMULA_PLUGIN','externalMutations','docs-formula.command.insert','_resourceManagerService','empty','_rawResources','ReplaceDocFormulaWithTextCommand','DOC_FORMULA_OBJECT_REPLACEMENT','UpdateDocFormulaCommand','setFormulas','TABLE_CELL_START','createEmptyDocFormulaResource','resolveHostFormulaExternalReferences','BLOCK_END','slice','string','set','CustomRangeType','EMPTY','CommandType','get','complete','startIndex','DocTextResolverService','call','Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries','segmentId','referenceRevision','expectedNumberFormat','textRuns','_instanceService','990IRnqWK','registerFormulaWithRange','RichTextEditingMutation','getResult','UniverInstanceType','liveResult','type','config','columnGroups','toFormulaLastValue','CUSTOM_BLOCK','delete','_model','tables','end','IConfigService','replaceDocRanges','shiftExclusiveRangeOnDelete','_setPresentation','SetDocFormulaMutation','generateRandomId','getUnitId','schemaVersion','dataStream','object','docs-formula.mutation.set-last-values','kind','target','packageName','_pendingUnitIds','previousResource','CUSTOM','getCurrentUnitOfType','_commandService','resolveFormulaResultPresentation','startsWith','assign','BLOCK_START','next','3088795kXDzoF','assess','resource','deleteFormula','function','_docFormulaModel','selection','formula','nextResource','UniverDocsPlugin','SUCCESS','keys','unregister','DOC_SELECTION_OPTION_PRESERVE_CARET','getInstance','text','name','change$','shiftInclusiveRangeOnInsert','DocFormulaResourceController','pattern','Plugin','numberFormat','params','getFormulas','constructor','DataStreamTreeTokenType','range','iterator','blockRanges','TABLE_ROW_START','includes','load','start','resourceRedo','degradeDocFormulaDocumentData','dispose','redoMutation','InvalidDocFormulaInsertRangeError','onCommandExecuted','undoMutation','document','PENDING','disposeWithMe','nextDocumentData','sequenceNodesBuilder','_hostExternalReferenceModel','paragraph','endsWith','1205nKarNk','InsertDocFormulaCommand','sort','_queueSync','boolean','314VawSOm','registerPluginResource','registerCommand','parse','_isDisposed','MUTATION','register','FormulaResultStatus','Tools','SetDocFormulaResourceMutation','color','_service','every','collectMutations','DependentOn','formulaResult$','_formulaService','getUnit','_loadErrors','getSnapshot','customDecorations','buildUpsertHostExternalReferenceMutations','Disposable','DocFormulaDisplayTextService','ERROR','resolveFormula','_registrationService','UniverLicensePlugin','UniverDocsFormulaPlugin','getPresentation','1280217aIoPax','setConfig','TABLE_CELL_END','COMMAND','error','isDocFormulaRange','clear','docs-formula.command.replace-with-text','pluginName','documentRedo','resources','getLoadError','values','touchDependencies','cursorOffset','docs-formula.mutation.set-formula','isInteger','onStarting','customRanges','docs-formula.config','trim','updates','degradeDocumentData','getRegisteredFormulas','FormulaCacheEligibilityService','syncUnit','_presentationChanged$','expectedFormula','endIndex','unitId','version','decorate','has','presentation','TABLE_END','DocSelectionManagerService','formulas','_injector','model','asObservable','filter','toStringTag','buildUpdateDocFormulaActions','12ZDItCC','8226496xlSyEu','unsupported-version','deepClone','buildInsertDocFormulaActions','subscribe','Inject','syncExecuteCommand','DOC','HostExternalReferenceModel','_formulaKeys','startOffset','unitDisposed$','_config','getFormula','_syncScheduled','COLUMN_GROUP_END','UNIVER_DOC','find','pushUndoRedo','success','SECTION_BREAK','prototype','_cacheEligibilityService','externalReferences','_registrations','RemoveDocFormulaCommand','setFormula','add','source','getResource','getRevision','SetDocFormulaNumberFormatCommand','registerProvider','paragraphs','previousDocumentData','number','max','shiftInclusiveRangeOnDelete','COLUMN_START','DocFormulaService','_change$','trigger','setResource'];_0x50fa=function(){return _0x1dd762;};return _0x50fa();}let X=class extends t[_0x2b5a93(0x1b0)]{constructor(_0x3e19ab,_0x30fb82){const _0x499680=_0x2b5a93;super(),this[_0x499680(0x121)]=_0x3e19ab,this[_0x499680(0x169)]=_0x30fb82,this['disposeWithMe'](this[_0x499680(0x121)][_0x499680(0x19b)]({'pluginName':o,'businesses':[t[_0x499680(0x141)][_0x499680(0xb6)]],'toJson':_0x17a87b=>JSON['stringify'](this[_0x499680(0x169)][_0x499680(0xfa)](_0x17a87b)),'parseJson':_0x5affe4=>JSON[_0x499680(0x19d)](_0x5affe4),'onLoad':(_0x1105ca,_0x4e8edf)=>{this['_docFormulaModel']['load'](_0x1105ca,_0x4e8edf);},'onUnLoad':_0x3af650=>this[_0x499680(0x169)]['removeUnit'](_0x3af650)}));}};X=A([k(0x0,t['IResourceManagerService']),k(0x1,(0x0,t['Inject'])(O))],X);var Ne='@univerjs-pro/docs-formula',Pe='1.0.0-insiders.20260809-70eefdd';const Fe={};let Z=class extends t[_0x2b5a93(0x1b0)]{constructor(_0x348784,_0x193e66,_0x467375){const _0x2b1e30=_0x2b5a93;super(),this[_0x2b1e30(0xd1)]=_0x348784,this['_formulaService']=_0x193e66,this[_0x2b1e30(0x18f)](_0x467375[_0x2b1e30(0x1a0)]({'resolve':(_0x1ae414,_0x103769)=>{const _0x5d2825=_0x2b1e30;var _0x23924b;return((_0x23924b=_0x103769[_0x5d2825(0x8c)])==null?void 0x0:_0x23924b['filter'](g)[_0x5d2825(0xd2)](_0x8d7940=>({'startOffset':_0x8d7940['startIndex'],'endOffset':_0x8d7940[_0x5d2825(0x96)]+0x1,'text':this[_0x5d2825(0x1b3)](_0x1ae414,_0x8d7940[_0x5d2825(0x101)])})))??[];}})),this[_0x2b1e30(0x18f)](this[_0x2b1e30(0x1aa)][_0x2b1e30(0xfc)]['subscribe'](({unitId:_0x4606fc})=>{const _0x31ba97=_0x2b1e30;_0x467375[_0x31ba97(0x108)](_0x4606fc);}));}[_0x2b5a93(0x1b3)](_0x54e4e4,_0x4cb729){const _0x467744=_0x2b5a93;var _0x5d8224;return((_0x5d8224=this[_0x467744(0x1aa)][_0x467744(0x140)]({'unitId':_0x54e4e4,'rangeId':_0x4cb729}))==null?void 0x0:_0x5d8224[_0x467744(0x173)])??'';}[_0x2b5a93(0xf3)](_0x12be76,_0x2fb45e,_0x3b7183){const _0x417be0=_0x2b5a93;var _0x23d70b;let _0x3e8630=this[_0x417be0(0xd1)][_0x417be0(0x1ab)](_0x12be76,t[_0x417be0(0x141)]['UNIVER_DOC']),_0x26732b=_0x3e8630==null?void 0x0:_0x3e8630['getBody']();if(!_0x26732b)return'';let _0x535db8=_0x26732b[_0x417be0(0x154)][_0x417be0(0x12c)](_0x2fb45e,_0x3b7183),_0x347d71=((_0x23d70b=_0x26732b['customRanges'])==null?void 0x0:_0x23d70b[_0x417be0(0xa2)](_0x2b7181=>g(_0x2b7181)&&_0x2b7181[_0x417be0(0x134)]>=_0x2fb45e&&_0x2b7181['endIndex']<_0x3b7183)[_0x417be0(0x197)]((_0x4deafb,_0x2b7af5)=>_0x2b7af5[_0x417be0(0x134)]-_0x4deafb[_0x417be0(0x134)]))??[];for(let _0x5ca67d of _0x347d71){let _0x8c5669=_0x5ca67d[_0x417be0(0x134)]-_0x2fb45e,_0x2d8ca9=_0x5ca67d['endIndex']-_0x2fb45e+0x1;_0x535db8=''+_0x535db8[_0x417be0(0x12c)](0x0,_0x8c5669)+this[_0x417be0(0x1b3)](_0x12be76,_0x5ca67d[_0x417be0(0x101)])+_0x535db8['slice'](_0x2d8ca9);}return _0x535db8;}[_0x2b5a93(0x90)](_0x5bb64d){return Ie(_0x5bb64d);}['degradeBody'](_0x553fb0,_0x51d935,_0x56eb43={}){const _0x3379cc=_0x2b5a93;var _0x524f0b;return re({'id':_0x553fb0,'body':_0x51d935,'documentStyle':{}},(((_0x524f0b=_0x51d935[_0x3379cc(0x8c)])==null?void 0x0:_0x524f0b[_0x3379cc(0xa2)](g))??[])['map'](_0x1f74cf=>({'rangeId':_0x1f74cf['rangeId'],'text':_0x56eb43[_0x1f74cf[_0x3379cc(0x101)]]??this['resolveFormula'](_0x553fb0,_0x1f74cf[_0x3379cc(0x101)])})))['body']??{'dataStream':''};}};Z=A([k(0x0,t[_0x2b5a93(0xfe)]),k(0x1,(0x0,t[_0x2b5a93(0xab)])(j)),k(0x2,(0x0,t['Inject'])(n[_0x2b5a93(0x135)]))],Z);function Ie(_0x54fd7d){const _0x1bb724=_0x2b5a93;var _0x2bec2a,_0x194d3a;let _0x384959=Le(_0x54fd7d),_0x14bcda=re(_0x54fd7d,(((_0x2bec2a=_0x54fd7d[_0x1bb724(0xf5)])==null||(_0x2bec2a=_0x2bec2a[_0x1bb724(0x8c)])==null?void 0x0:_0x2bec2a[_0x1bb724(0xa2)](g))??[])[_0x1bb724(0xd2)](_0x39f7e7=>({'rangeId':_0x39f7e7[_0x1bb724(0x101)],'text':Re(_0x384959==null?void 0x0:_0x384959[_0x1bb724(0x9e)][_0x39f7e7[_0x1bb724(0x101)]])})));return _0x14bcda['resources']=(_0x194d3a=_0x14bcda[_0x1bb724(0x1c2)])==null?void 0x0:_0x194d3a[_0x1bb724(0xa2)](_0x5b5f46=>_0x5b5f46[_0x1bb724(0x174)]!==o),_0x14bcda;}function Le(_0x38ff9b){const _0x4aea24=_0x2b5a93;var _0x4caa8c;let _0x2541fb=(_0x4caa8c=_0x38ff9b[_0x4aea24(0x1c2)])==null||(_0x4caa8c=_0x4caa8c[_0x4aea24(0xb7)](_0x27ba1f=>_0x27ba1f[_0x4aea24(0x174)]===_0x4aea24(0x11e)))==null?void 0x0:_0x4caa8c[_0x4aea24(0xf0)];if(_0x2541fb)try{let _0x18a80d=JSON[_0x4aea24(0x19d)](_0x2541fb);return l(_0x18a80d)?_0x18a80d:void 0x0;}catch{return;}}function Re(_0x460ce1){const _0x5c5fa2=_0x2b5a93;return _0x460ce1?(0x0,e['resolveFormulaResultPresentation'])({'lastValue':_0x460ce1[_0x5c5fa2(0xe9)],'numberFormat':_0x460ce1[_0x5c5fa2(0x17a)]})[_0x5c5fa2(0x173)]:'';}let Q=class extends t[_0x2b5a93(0x1b0)]{constructor(_0x10030c,_0x220abc,_0x3f5113){const _0x215201=_0x2b5a93;super(),this[_0x215201(0x1aa)]=_0x10030c,this['_cacheEligibilityService']=_0x220abc,this['disposeWithMe'](_0x3f5113[_0x215201(0xc6)](this));}[_0x2b5a93(0x1a7)](_0x368a1c){const _0x1af992=_0x2b5a93;let _0x437f0c=new Map();for(let _0x271801 of this[_0x1af992(0x1aa)]['getRegisteredFormulas']()){var _0x16edd9;if(!this[_0x1af992(0xbc)][_0x1af992(0x165)](_0x271801['config'][_0x1af992(0x16b)],_0x271801['liveResult'])['eligible'])continue;let _0xbf19d7=(0x0,e['getScalarFormulaResultCell'])(_0x271801[_0x1af992(0x142)]),_0x51def9=_0xbf19d7?(0x0,e[_0x1af992(0x146)])(_0xbf19d7):null;if(!_0x51def9||ze(_0x271801[_0x1af992(0x144)]['lastValue'],_0x51def9))continue;let _0x2292b4=_0x437f0c[_0x1af992(0x132)](_0x271801[_0x1af992(0xf6)][_0x1af992(0x97)])??[];_0x2292b4['push']({'rangeId':_0x271801[_0x1af992(0xf6)][_0x1af992(0x101)],'expectedFormula':_0x271801[_0x1af992(0x144)][_0x1af992(0x16b)],'expectedNumberFormat':(_0x16edd9=_0x271801[_0x1af992(0x144)][_0x1af992(0x17a)])==null?void 0x0:_0x16edd9['pattern'],'expectedReferenceRevision':_0x271801[_0x1af992(0x139)],'lastValue':_0x51def9}),_0x437f0c[_0x1af992(0x12e)](_0x271801[_0x1af992(0xf6)]['unitId'],_0x2292b4);}return Array[_0x1af992(0x115)](_0x437f0c,([_0xcc95cb,_0x58bb1b])=>({'id':R['id'],'params':{'unitId':_0xcc95cb,'updates':_0x58bb1b}}));}};Q=A([k(0x0,(0x0,t['Inject'])(j)),k(0x1,(0x0,t[_0x2b5a93(0xab)])(e[_0x2b5a93(0x92)])),k(0x2,(0x0,t[_0x2b5a93(0xab)])(e[_0x2b5a93(0xf1)]))],Q);function ze(_0x2b96cd,_0x79af6b){const _0x5bb076=_0x2b5a93;return(_0x2b96cd==null?void 0x0:_0x2b96cd['v'])===_0x79af6b['v']&&(_0x2b96cd==null?void 0x0:_0x2b96cd['t'])===_0x79af6b['t']&&(_0x2b96cd==null?void 0x0:_0x2b96cd[_0x5bb076(0x178)])===_0x79af6b['pattern'];}let $=class extends t[_0x2b5a93(0x179)]{constructor(_0x2769ea=Fe,_0x36f1cb,_0x67f658,_0x3f524a){const _0xc91f33=_0x2b5a93;super(),this[_0xc91f33(0xb2)]=_0x2769ea,this[_0xc91f33(0x9f)]=_0x36f1cb,this['_commandService']=_0x67f658,this['_configService']=_0x3f524a;let {..._0x447f11}=(0x0,t['merge'])({},Fe,this['_config']);this['_configService'][_0xc91f33(0x1b9)](_0xc91f33(0x8d),_0x447f11);}[_0x2b5a93(0x8b)](){const _0x4dad84=_0x2b5a93;this[_0x4dad84(0x9f)][_0x4dad84(0xc1)]([O]),this['_injector'][_0x4dad84(0xc1)]([j]),this[_0x4dad84(0x9f)]['add']([X]),this[_0x4dad84(0x9f)][_0x4dad84(0xc1)]([Y]),this[_0x4dad84(0x9f)][_0x4dad84(0xc1)]([Q]),this[_0x4dad84(0x9f)][_0x4dad84(0xc1)]([Z]),(0x0,t[_0x4dad84(0x1c5)])(this[_0x4dad84(0x9f)],[[O],[X],[Y],[Q],[Z]]),[F,I,L,R,z,B,V,H,U,W]['forEach'](_0x350eb1=>this[_0x4dad84(0x18f)](this[_0x4dad84(0x15e)][_0x4dad84(0x19c)](_0x350eb1)));}};D($,_0x2b5a93(0x1c0),o),D($,_0x2b5a93(0x159),Ne),D($,_0x2b5a93(0x98),Pe),D($,_0x2b5a93(0x143),t[_0x2b5a93(0x141)][_0x2b5a93(0xb6)]),$=A([(0x0,t[_0x2b5a93(0x1a8)])(a[_0x2b5a93(0x1b5)],e['UniverProFormulaEnginePlugin'],n[_0x2b5a93(0x16d)]),k(0x1,(0x0,t[_0x2b5a93(0xab)])(t[_0x2b5a93(0x11c)])),k(0x2,t[_0x2b5a93(0xdf)]),k(0x3,t[_0x2b5a93(0x14c)])],$),exports['ConvertDocFormulaToTextCommand']=W,exports[_0x2b5a93(0x10d)]=s,exports[_0x2b5a93(0x125)]='',exports['DOC_FORMULA_PLUGIN']=o,exports['DOC_FORMULA_SCHEMA_VERSION']=0x1,Object[_0x2b5a93(0xd6)](exports,_0x2b5a93(0x1b1),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x2b5a93(0xd6)](exports,'DocFormulaLifecycleController',{'enumerable':!0x0,'get':function(){return Y;}}),exports[_0x2b5a93(0xeb)]=O,Object[_0x2b5a93(0xd6)](exports,_0x2b5a93(0x177),{'enumerable':!0x0,'get':function(){return X;}}),exports[_0x2b5a93(0x10f)]=ve,Object[_0x2b5a93(0xd6)](exports,_0x2b5a93(0xcd),{'enumerable':!0x0,'get':function(){return j;}}),exports[_0x2b5a93(0x196)]=z,exports[_0x2b5a93(0x18a)]=m,exports[_0x2b5a93(0xbf)]=H,exports[_0x2b5a93(0xe7)]=I,exports[_0x2b5a93(0x124)]=U,exports[_0x2b5a93(0x107)]=R,exports[_0x2b5a93(0x150)]=F,exports[_0x2b5a93(0xc5)]=V,exports[_0x2b5a93(0x1a3)]=L,Object[_0x2b5a93(0xd6)](exports,_0x2b5a93(0x1b6),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x2b5a93(0x126)]=B,exports['assertSafeDocFormulaInsertRange']=ie,exports[_0x2b5a93(0xa9)]=te,exports['buildRemoveDocFormulaActions']=h,exports[_0x2b5a93(0xa4)]=ne,exports[_0x2b5a93(0x129)]=c,exports[_0x2b5a93(0x187)]=Ie,exports['findDocFormulaRange']=_,exports['isDocFormulaConfig']=u,exports[_0x2b5a93(0x1bd)]=g,exports['isDocFormulaResource']=l,exports['isFormulaLastValue']=d;
|
|
1
|
+
const _0x5e00f3=_0xbbb1;(function(_0xecb808,_0x34e99e){const _0x3c1b99=_0xbbb1,_0x57e8ae=_0xecb808();while(!![]){try{const _0x524a7d=-parseInt(_0x3c1b99(0x139))/0x1*(parseInt(_0x3c1b99(0x18a))/0x2)+-parseInt(_0x3c1b99(0x103))/0x3+parseInt(_0x3c1b99(0x117))/0x4+parseInt(_0x3c1b99(0x130))/0x5*(-parseInt(_0x3c1b99(0x183))/0x6)+-parseInt(_0x3c1b99(0xcf))/0x7+-parseInt(_0x3c1b99(0x171))/0x8+parseInt(_0x3c1b99(0xde))/0x9*(parseInt(_0x3c1b99(0x15c))/0xa);if(_0x524a7d===_0x34e99e)break;else _0x57e8ae['push'](_0x57e8ae['shift']());}catch(_0x6870d){_0x57e8ae['push'](_0x57e8ae['shift']());}}}(_0x3704,0x96ed4),Object['defineProperty'](exports,Symbol[_0x5e00f3(0xfb)],{'value':_0x5e00f3(0x1a3)}));let e=require('@univerjs-pro/engine-formula'),t=require('@univerjs/core'),n=require('@univerjs/docs'),r=require('@univerjs/engine-formula'),i=require('rxjs'),a=require('@univerjs-pro/license');const o=_0x5e00f3(0x144),s=_0x5e00f3(0xd3);function c(){return{'schemaVersion':0x1,'formulas':{}};}function l(_0x50a318){const _0x5227fd=_0x5e00f3;return!_0x50a318||typeof _0x50a318!=_0x5227fd(0xec)||!f(_0x50a318,['schemaVersion','formulas'])||!(_0x5227fd(0x7c)in _0x50a318)||_0x50a318[_0x5227fd(0x7c)]!==0x1||!('formulas'in _0x50a318)||!_0x50a318['formulas']||typeof _0x50a318[_0x5227fd(0x1a1)]!=_0x5227fd(0xec)||Array[_0x5227fd(0x176)](_0x50a318[_0x5227fd(0x1a1)])?!0x1:Object[_0x5227fd(0xd8)](_0x50a318[_0x5227fd(0x1a1)])[_0x5227fd(0x169)](([_0x3134b9,_0x1e1b31])=>_0x3134b9[_0x5227fd(0x19c)]>0x0&&u(_0x1e1b31));}function u(_0x28536f){const _0x55c641=_0x5e00f3;return!_0x28536f||typeof _0x28536f!=_0x55c641(0xec)||!f(_0x28536f,['formula',_0x55c641(0xe5),_0x55c641(0xbb)])||!('formula'in _0x28536f)||typeof _0x28536f[_0x55c641(0xd4)]!=_0x55c641(0x151)||!_0x28536f[_0x55c641(0xd4)]['trim']()||_0x55c641(0xe5)in _0x28536f&&_0x28536f[_0x55c641(0xe5)]!=null&&(typeof _0x28536f['numberFormat']!=_0x55c641(0xec)||!f(_0x28536f[_0x55c641(0xe5)],['pattern'])||!(_0x55c641(0x156)in _0x28536f[_0x55c641(0xe5)])||typeof _0x28536f['numberFormat'][_0x55c641(0x156)]!=_0x55c641(0x151))?!0x1:!(_0x55c641(0xbb)in _0x28536f)||_0x28536f[_0x55c641(0xbb)]==null||d(_0x28536f['lastValue']);}function d(_0x118bfa){const _0x42d7b8=_0x5e00f3;return!_0x118bfa||typeof _0x118bfa!='object'||!f(_0x118bfa,['v','t','pattern'])||!('v'in _0x118bfa)||_0x118bfa['v']!==null&&typeof _0x118bfa['v']!='string'&&typeof _0x118bfa['v']!=_0x42d7b8(0xe2)&&typeof _0x118bfa['v']!=_0x42d7b8(0xa8)||'t'in _0x118bfa&&_0x118bfa['t']!=null&&!ee(_0x118bfa['t'])?!0x1:!(_0x42d7b8(0x156)in _0x118bfa)||_0x118bfa[_0x42d7b8(0x156)]==null||typeof _0x118bfa[_0x42d7b8(0x156)]==_0x42d7b8(0x151);}function f(_0xb2f9b6,_0x1adc8e){const _0x4fbc12=_0x5e00f3;let _0x38ffcc=new Set(_0x1adc8e);return Object[_0x4fbc12(0xad)](_0xb2f9b6)[_0x4fbc12(0x169)](_0x1c4d9f=>_0x38ffcc[_0x4fbc12(0xf4)](_0x1c4d9f));}function ee(_0x51c984){const _0x713cd8=_0x5e00f3;return typeof _0x51c984==_0x713cd8(0xe2)&&Object[_0x713cd8(0x13f)](t[_0x713cd8(0x6e)])[_0x713cd8(0x154)](_0x51c984);}const p=new Set([t[_0x5e00f3(0x19b)]['SECTION_BREAK'],t[_0x5e00f3(0x19b)][_0x5e00f3(0x67)],t[_0x5e00f3(0x19b)]['TABLE_ROW_START'],t[_0x5e00f3(0x19b)][_0x5e00f3(0x19f)],t[_0x5e00f3(0x19b)][_0x5e00f3(0x8f)],t['DataStreamTreeTokenType']['TABLE_ROW_END'],t[_0x5e00f3(0x19b)][_0x5e00f3(0x100)],t[_0x5e00f3(0x19b)][_0x5e00f3(0x118)],t[_0x5e00f3(0x19b)][_0x5e00f3(0x112)],t[_0x5e00f3(0x19b)][_0x5e00f3(0x65)],t['DataStreamTreeTokenType'][_0x5e00f3(0x108)],t['DataStreamTreeTokenType']['BLOCK_START'],t[_0x5e00f3(0x19b)][_0x5e00f3(0x153)],t['DataStreamTreeTokenType'][_0x5e00f3(0xdf)]]);var m=class extends Error{constructor(){super('Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries');}};function te(_0x24f06d){const _0x37d648=_0x5e00f3;var _0x11719a,_0xf5e565;let _0x34d9ce=t['Tools'][_0x37d648(0x8e)](_0x24f06d[_0x37d648(0xa3)]),_0x5da32d=T(_0x34d9ce),{startOffset:_0x420f75,endOffset:_0x536b5b}=oe(_0x5da32d,_0x24f06d[_0x37d648(0xcd)],_0x24f06d['endOffset']);ie(_0x5da32d,_0x420f75,_0x536b5b);let _0x222d98=((_0x11719a=_0x5da32d[_0x37d648(0xce)])==null?void 0x0:_0x11719a[_0x37d648(0x87)](_0x2f4ca5=>{const _0x39947b=_0x37d648;if(!g(_0x2f4ca5))return!0x1;let _0x3a20a7=(0x0,t['getCustomRangeInterval'])(_0x2f4ca5);return _0x3a20a7['endOffset']>_0x420f75&&_0x3a20a7[_0x39947b(0xcd)]<_0x536b5b;})[_0x37d648(0x124)](_0x5c88a3=>_0x5c88a3['rangeId']))??[];ce(_0x5da32d,_0x420f75,_0x536b5b,''),_0x5da32d[_0x37d648(0xce)]=[...((_0xf5e565=_0x5da32d['customRanges'])==null?void 0x0:_0xf5e565['filter'](_0x589d98=>!_0x222d98[_0x37d648(0x154)](_0x589d98[_0x37d648(0xaa)])&&_0x589d98[_0x37d648(0xaa)]!==_0x24f06d['rangeId']))??[],ae(_0x24f06d[_0x37d648(0xaa)],_0x420f75)][_0x37d648(0x72)]((_0x1b0381,_0x5e2e9c)=>_0x1b0381['startIndex']-_0x5e2e9c[_0x37d648(0xc4)]);let _0x545428=v(_0x24f06d[_0x37d648(0xda)]);return _0x222d98['forEach'](_0x10ddf2=>{const _0x42bb5a=_0x37d648;delete _0x545428[_0x42bb5a(0x1a1)][_0x10ddf2];}),_0x545428['formulas'][_0x24f06d[_0x37d648(0xaa)]]=t['Tools'][_0x37d648(0x8e)](_0x24f06d[_0x37d648(0x182)]),{'nextDocumentData':_0x34d9ce,'nextResource':_0x545428,'cursorOffset':_0x420f75+0x1};}function ne(_0x5c435b){const _0x4a881d=_0x5e00f3;var _0x4a7a8e,_0x2ca333;let _0x495428=t[_0x4a881d(0xa2)][_0x4a881d(0x8e)](_0x5c435b['documentData']),_0x20c2a9=(_0x4a7a8e=T(_0x495428)['customRanges'])==null?void 0x0:_0x4a7a8e[_0x4a881d(0xca)](_0x14d107=>_0x14d107[_0x4a881d(0xaa)]===_0x5c435b[_0x4a881d(0xaa)]&&g(_0x14d107));if(!_0x20c2a9||!((_0x2ca333=_0x5c435b['resource'])!=null&&_0x2ca333[_0x4a881d(0x1a1)][_0x5c435b[_0x4a881d(0xaa)]]))return null;let _0x2e8839=v(_0x5c435b[_0x4a881d(0xda)]);return _0x2e8839[_0x4a881d(0x1a1)][_0x5c435b[_0x4a881d(0xaa)]]=t[_0x4a881d(0xa2)][_0x4a881d(0x8e)](_0x5c435b[_0x4a881d(0x182)]),{'nextDocumentData':_0x495428,'nextResource':_0x2e8839,'cursorOffset':_0x20c2a9[_0x4a881d(0xfc)]+0x1};}function h(_0x2db286){const _0x269926=_0x5e00f3;let _0x144780=t['Tools'][_0x269926(0x8e)](_0x2db286[_0x269926(0xa3)]),_0x45983a=le(_0x144780,_0x2db286['rangeId'],_0x2db286[_0x269926(0x14c)]??'');if(_0x45983a==null)return null;let _0x40eb95=v(_0x2db286['resource']);return delete _0x40eb95[_0x269926(0x1a1)][_0x2db286['rangeId']],{'nextDocumentData':_0x144780,'nextResource':_0x40eb95,'cursorOffset':_0x45983a};}function re(_0x1a43f1,_0x15d495){const _0x10eee9=_0x5e00f3;var _0x55ff1f;let _0x1f262f=t[_0x10eee9(0xa2)][_0x10eee9(0x8e)](_0x1a43f1),_0x4ba8d5=_0x1f262f[_0x10eee9(0x1a8)];if(!_0x4ba8d5)return _0x1f262f;let _0x51d5dc=new Map(_0x15d495[_0x10eee9(0x124)](_0x2cc442=>[_0x2cc442[_0x10eee9(0xaa)],_0x2cc442[_0x10eee9(0x14c)]])),_0xb5273=((_0x55ff1f=_0x4ba8d5[_0x10eee9(0xce)])==null?void 0x0:_0x55ff1f[_0x10eee9(0x87)](_0x598a36=>g(_0x598a36)&&_0x51d5dc[_0x10eee9(0xf4)](_0x598a36[_0x10eee9(0xaa)]))['sort']((_0x3548fe,_0x375c91)=>_0x375c91[_0x10eee9(0xc4)]-_0x3548fe[_0x10eee9(0xc4)]))??[];for(let _0x237396 of _0xb5273)le(_0x1f262f,_0x237396['rangeId'],_0x51d5dc[_0x10eee9(0xd9)](_0x237396[_0x10eee9(0xaa)])??'');return _0x1f262f;}function g(_0x28444d){const _0x422859=_0x5e00f3;var _0x18c6cc;return(_0x28444d==null?void 0x0:_0x28444d[_0x422859(0x116)])===t[_0x422859(0x184)][_0x422859(0x7a)]&&_0x28444d[_0x422859(0x8a)]===!0x0&&((_0x18c6cc=_0x28444d[_0x422859(0xa0)])==null?void 0x0:_0x18c6cc[_0x422859(0x160)])===_0x422859(0xd3);}function _(_0x1604f3,_0x2b9f43){const _0x2e61bc=_0x5e00f3;var _0x4cbfc7;return _0x1604f3==null||(_0x4cbfc7=_0x1604f3[_0x2e61bc(0xce)])==null?void 0x0:_0x4cbfc7[_0x2e61bc(0xca)](_0x56baa5=>_0x56baa5[_0x2e61bc(0xaa)]===_0x2b9f43&&g(_0x56baa5));}function ie(_0xe09886,_0x440b31,_0x5eb625){const _0x1aa642=_0x5e00f3;if(_0x440b31===_0x5eb625){if(p[_0x1aa642(0xf4)](_0xe09886['dataStream'][_0x440b31]))throw new m();return;}for(let _0x3516fa=_0x440b31;_0x3516fa<_0x5eb625;_0x3516fa++)if(_0xe09886[_0x1aa642(0x197)][_0x3516fa]===t['DataStreamTreeTokenType']['PARAGRAPH']||p[_0x1aa642(0xf4)](_0xe09886[_0x1aa642(0x197)][_0x3516fa]))throw new m();}function ae(_0x5ba7b6,_0x192193){const _0x1231f9=_0x5e00f3;return{'startIndex':_0x192193,'endIndex':_0x192193,'rangeId':_0x5ba7b6,'rangeType':t[_0x1231f9(0x184)][_0x1231f9(0x7a)],'wholeEntity':!0x0,'properties':{'kind':s}};}function v(_0x45f2d5){const _0x31cb81=_0x5e00f3;return _0x45f2d5?t['Tools'][_0x31cb81(0x8e)](_0x45f2d5):c();}function oe(_0x4a3cb2,_0x3c9311,_0x2d961d){const _0x2d7c1a=_0x5e00f3;let _0x1a9498=se(_0x4a3cb2),_0x539150=_0x3c9311??_0x1a9498,_0x173dc8=_0x2d961d??_0x539150;return{'startOffset':y(Math[_0x2d7c1a(0xf7)](_0x539150,_0x173dc8),_0x1a9498),'endOffset':y(Math['max'](_0x539150,_0x173dc8),_0x1a9498)};}function y(_0x5958db,_0x5eaaec){const _0x131c1f=_0x5e00f3;return Math[_0x131c1f(0xf2)](0x0,Math[_0x131c1f(0xf7)](_0x5958db,_0x5eaaec));}function se(_0x4989a5){const _0x8a25cc=_0x5e00f3;return _0x4989a5[_0x8a25cc(0x197)][_0x8a25cc(0xbe)](''+t[_0x8a25cc(0x19b)][_0x8a25cc(0x190)]+t[_0x8a25cc(0x19b)][_0x8a25cc(0x196)])?Math[_0x8a25cc(0xf2)](0x0,_0x4989a5[_0x8a25cc(0x197)][_0x8a25cc(0x19c)]-0x2):_0x4989a5[_0x8a25cc(0x197)][_0x8a25cc(0xbe)](t[_0x8a25cc(0x19b)][_0x8a25cc(0x196)])?Math[_0x8a25cc(0xf2)](0x0,_0x4989a5[_0x8a25cc(0x197)][_0x8a25cc(0x19c)]-0x1):_0x4989a5[_0x8a25cc(0x197)][_0x8a25cc(0x19c)];}function _0x3704(){const _0xeac52b=['onCommandExecuted','Inject','5Zqoxbt','getScalarFormulaResultCell','DocSelectionManagerService','isDocFormulaConfig','getFormulaValueSync','docs-formula.command.convert-to-text','values','presentationChanged$','IUniverInstanceService','pluginName','degradeDocumentData','DOC_FORMULA_PLUGIN','syncExecuteCommand','_deleteRegistration','removeFormula','type','trim','degradeBody','formulaResult$','text','setResource','from','getPresentation','selection','string','RemoveDocFormulaCommand','BLOCK_END','includes','DocFormulaDisplayTextService','pattern','SetDocFormulaNumberFormatCommand','resolved','constructor','SUCCESS','resources','10qfyFhu','dispose','_rawResources','registerProvider','kind','position','_config','stale','params','resolveFormula','resolveBinding','getCustomRangeInterval','DocFormulaLifecycleController','every','previousDocumentData','FormulaResultStatus','set','expectedNumberFormat','paragraphs','_syncUnit','segmentId','5979048Dvobjk','DocFormulaService','docs-formula.command.remove','ICommandService','accessor','isArray','_formulaService','documentRedo','undoMutation','_pendingUnitIds','touchDependencies','1.0.0-rc.0','sequenceNodesBuilder','serialize','docs-formula.command.set-number-format','getCurrentUnitOfType','setFormula','config','18276vTDPDu','CustomRangeType','getAllUnitsForType','getResult','customDecorations','references','_univerInstanceService','104296szlFDf','ReplaceDocFormulaWithTextCommand','_resourceManagerService','isDocFormulaResource','ERROR','Injector','PARAGRAPH','removeUnit','PENDING','EMPTY','docs-formula.command.replace-with-text','forEach','SECTION_BREAK','dataStream','registerPluginResource','getUnit','IResourceManagerService','DataStreamTreeTokenType','length','referenceRevision','shiftInclusiveRangeOnDelete','TABLE_CELL_START','UniverLicensePlugin','formulas','DOC','Module','DependentOn','DOC_FORMULA_OBJECT_REPLACEMENT','_commandService','_service','body','COLUMN_END','getFormulas','TABLE_START','RichTextEditingMutation','SetDocFormulaResourceMutation','Subject','externalMutations','getFormula','getRichTextEditPath','CellValueType','some','function','cell','sort','_hostExternalReferenceModel','source','updates','identity','Plugin','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','degradeDocFormulaDocumentData','CUSTOM','isInteger','schemaVersion','UniverInstanceType','color','expectedFormula','disabled','_isDisposed','notifyTextChanged','isFormulaLastValue','resolveHostFormulaExternalReferences','nextResource','fromEntries','filter','getRegisteredFormulas','decorate','wholeEntity','generateRandomId','subscribe','onStarting','deepClone','TABLE_CELL_END','paragraph','_presentationChanged$','collectMutations','assign','register','DOC_FORMULA_CUSTOM_RANGE_KIND','next','docs-formula.mutation.set-formula','replaceDocRanges','MUTATION','docs-formula.config','InvalidDocFormulaInsertRangeError','CommandType','docs-formula.mutation.set-last-values','endOffset','getSnapshot','properties','resourceRedo','Tools','documentData','isDocFormulaRange','SetDocFormulaLastValuesMutation','document','pending','boolean','externalReferences','rangeId','unregister','OtherFormulaBizType','keys','defineProperty','paragraphId','_resources','JSONX','load','presentation','blockRanges','columnGroups','insert','unregisterUnit','range','formulaId','unitId','lastValue','redoMutation','call','endsWith','name','_model','trigger','complete','UniverDocsFormulaPlugin','startIndex','merge','_loadErrors','findDocFormulaRange','DocFormulaResultStatus','packageName','find','DOC_FORMULA_SCHEMA_VERSION','buildInsertDocFormulaActions','startOffset','customRanges','8202782eiJyJS','default','_registrationService','data','univer-docs-formula','formula','_syncScheduled','syncUnit','UpdateDocFormulaCommand','entries','get','resource','error','docs-formula.mutation.set-resource','resolveFormulaResultPresentation','31501107CMnjar','CUSTOM_BLOCK','textRuns','model','number','_queueSync','nextDocumentData','numberFormat','liveResult','Disposable','status','push','customBlocks','_cacheEligibilityService','object','UNIVER_DOC','clear','buildUpsertHostExternalReferenceMutations','getLoadError','getResource','max','delete','has','change$','eligible','min','unitAdded$','symbol','cursorOffset','toStringTag','endIndex','FormulaLastValuePersistenceService','@univerjs-pro/docs-formula','_preserveInvalid','TABLE_END','resourceUndo','_setPresentation','420759ceZxyk','InsertDocFormulaCommand','slice','_updateFormulaResult','getUnitId','COLUMN_GROUP_END','COMMAND','DocFormulaModel','shiftInclusiveRangeOnInsert','deleteFormula','IUndoRedoService','_change$','unitDisposed$','getRevision','getTextRanges','COLUMN_START','collectFormulaExternalReferenceQualifiers','buildRemoveDocFormulaActions','tables','rangeType','1249900Ephtlu','COLUMN_GROUP_START','_docFormulaModel','disposeWithMe','DocFormulaResourceController','start','shiftExclusiveRangeOnInsert','shiftExclusiveRangeOnDelete','insertLength','deleteLength','_formulaKeys','getInstance','add','map','TextX','_injector','_registrations','sectionBreaks','_instanceService','HostExternalReferenceModel','IConfigService','getParagraphContentStartOffset','toPrimitive','pushUndoRedo','_configService','1435dJgwLN','setConfig','ConvertDocFormulaToTextCommand','docs-formula.mutation.remove-formula','iterator','setFormulas','prototype'];_0x3704=function(){return _0xeac52b;};return _0x3704();}function ce(_0x2625ba,_0x32a707,_0x2e0256,_0x3e2a38){_0x2e0256>_0x32a707&&de(_0x2625ba,_0x32a707,_0x2e0256),ue(_0x2625ba,_0x32a707,_0x3e2a38);}function le(_0xf666c1,_0x38e740,_0x172dd0){const _0x350666=_0x5e00f3;var _0x34bd7e,_0x53da86;let _0x52edb8=T(_0xf666c1),_0x317e06=(_0x34bd7e=_0x52edb8[_0x350666(0xce)])==null?void 0x0:_0x34bd7e[_0x350666(0xca)](_0x2657c3=>_0x2657c3[_0x350666(0xaa)]===_0x38e740&&g(_0x2657c3));if(!_0x317e06)return null;let _0x3db314=(0x0,t[_0x350666(0x167)])(_0x317e06);return ce(_0x52edb8,_0x3db314[_0x350666(0xcd)],_0x3db314[_0x350666(0x9e)],_0x172dd0),_0x52edb8['customRanges']=(_0x53da86=_0x52edb8['customRanges'])==null?void 0x0:_0x53da86[_0x350666(0x87)](_0x3170e5=>_0x3170e5['rangeId']!==_0x38e740),_0x3db314[_0x350666(0xcd)]+_0x172dd0['length'];}function ue(_0x4ecb1b,_0x561c5b,_0x56936e){const _0x4073f2=_0x5e00f3;_0x56936e&&(_0x4ecb1b['dataStream']=''+_0x4ecb1b['dataStream'][_0x4073f2(0x105)](0x0,_0x561c5b)+_0x56936e+_0x4ecb1b[_0x4073f2(0x197)][_0x4073f2(0x105)](_0x561c5b),fe(_0x4ecb1b,_0x561c5b,_0x56936e[_0x4073f2(0x19c)]));}function de(_0x617302,_0x4964c6,_0x16e263){const _0x1c13b2=_0x5e00f3;let _0x46af57=_0x16e263-_0x4964c6;_0x617302[_0x1c13b2(0x197)]=''+_0x617302['dataStream']['slice'](0x0,_0x4964c6)+_0x617302[_0x1c13b2(0x197)][_0x1c13b2(0x105)](_0x16e263),pe(_0x617302,_0x4964c6,_0x46af57);}function _0xbbb1(_0x86bfff,_0x2d4cd4){_0x86bfff=_0x86bfff-0x65;const _0x370420=_0x3704();let _0xbbb13f=_0x370420[_0x86bfff];return _0xbbb13f;}function fe(_0x5b2301,_0x2b94a8,_0x2eb46c){const _0x40aa8f=_0x5e00f3;_0x5b2301[_0x40aa8f(0x16e)]=b(_0x5b2301['paragraphs'],_0x2b94a8,_0x2eb46c),_0x5b2301[_0x40aa8f(0x128)]=b(_0x5b2301[_0x40aa8f(0x128)],_0x2b94a8,_0x2eb46c),_0x5b2301['customBlocks']=b(_0x5b2301[_0x40aa8f(0xea)],_0x2b94a8,_0x2eb46c),_0x5b2301[_0x40aa8f(0xe0)]=me(_0x5b2301[_0x40aa8f(0xe0)],_0x2b94a8,_0x2eb46c),_0x5b2301[_0x40aa8f(0x115)]=he(_0x5b2301['tables'],_0x2b94a8,_0x2eb46c),_0x5b2301[_0x40aa8f(0xb5)]=S(_0x5b2301[_0x40aa8f(0xb5)],_0x2b94a8,_0x2eb46c),_0x5b2301[_0x40aa8f(0xce)]=S(_0x5b2301[_0x40aa8f(0xce)],_0x2b94a8,_0x2eb46c),_0x5b2301[_0x40aa8f(0x187)]=S(_0x5b2301[_0x40aa8f(0x187)],_0x2b94a8,_0x2eb46c),_0x5b2301['blockRanges']=S(_0x5b2301[_0x40aa8f(0xb4)],_0x2b94a8,_0x2eb46c);}function pe(_0x147e48,_0x10ffe0,_0x786d6c){const _0x513772=_0x5e00f3;var _0x3b9dbd,_0x218a04;_0x147e48[_0x513772(0x16e)]=x(_0x147e48[_0x513772(0x16e)],_0x10ffe0,_0x786d6c),_0x147e48[_0x513772(0x128)]=x(_0x147e48[_0x513772(0x128)],_0x10ffe0,_0x786d6c),_0x147e48[_0x513772(0xea)]=x(_0x147e48['customBlocks'],_0x10ffe0,_0x786d6c),_0x147e48[_0x513772(0xe0)]=(_0x3b9dbd=w((_0x218a04=_0x147e48[_0x513772(0xe0)])==null?void 0x0:_0x218a04[_0x513772(0x124)](_0x281046=>({..._0x281046,'startIndex':_0x281046['st'],'endIndex':_0x281046['ed']})),_0x10ffe0,_0x786d6c))==null?void 0x0:_0x3b9dbd['map'](_0x1fd63b=>{let {startIndex:_0x1d1ca6,endIndex:_0xc8f4fd,..._0x32a66e}=_0x1fd63b;return{..._0x32a66e,'st':_0x1d1ca6,'ed':_0xc8f4fd};}),_0x147e48[_0x513772(0x115)]=w(_0x147e48[_0x513772(0x115)],_0x10ffe0,_0x786d6c),_0x147e48[_0x513772(0xb5)]=C(_0x147e48[_0x513772(0xb5)],_0x10ffe0,_0x786d6c),_0x147e48['customRanges']=C(_0x147e48[_0x513772(0xce)],_0x10ffe0,_0x786d6c),_0x147e48['customDecorations']=C(_0x147e48[_0x513772(0x187)],_0x10ffe0,_0x786d6c),_0x147e48[_0x513772(0xb4)]=C(_0x147e48[_0x513772(0xb4)],_0x10ffe0,_0x786d6c);}function b(_0xd8b739,_0x105db0,_0x4c7d13){const _0x3a1065=_0x5e00f3;return _0xd8b739==null?void 0x0:_0xd8b739[_0x3a1065(0x124)](_0x5369b4=>_0x5369b4[_0x3a1065(0xc4)]>=_0x105db0?{..._0x5369b4,'startIndex':_0x5369b4['startIndex']+_0x4c7d13}:_0x5369b4);}function x(_0x1da017,_0x587677,_0x135ce7){const _0xc6c897=_0x5e00f3;let _0x393d82=_0x587677+_0x135ce7;return _0x1da017==null?void 0x0:_0x1da017['map'](_0x2341fc=>_0x2341fc['startIndex']>=_0x587677&&_0x2341fc['startIndex']<_0x393d82?null:_0x2341fc[_0xc6c897(0xc4)]>=_0x393d82?{..._0x2341fc,'startIndex':_0x2341fc['startIndex']-_0x135ce7}:_0x2341fc)['filter'](_0x392f0f=>_0x392f0f!=null);}function me(_0x2b1378,_0x4c662d,_0x25c2b2){return _0x2b1378==null?void 0x0:_0x2b1378['map'](_0x51fa10=>_0x51fa10['st']>=_0x4c662d?{..._0x51fa10,'st':_0x51fa10['st']+_0x25c2b2,'ed':_0x51fa10['ed']+_0x25c2b2}:_0x51fa10['ed']>_0x4c662d?{..._0x51fa10,'ed':_0x51fa10['ed']+_0x25c2b2}:_0x51fa10);}function S(_0x5bbcd8,_0xaaa101,_0x26d6f0){const _0x567987=_0x5e00f3;return _0x5bbcd8==null?void 0x0:_0x5bbcd8[_0x567987(0x124)](_0x2501b6=>(0x0,t[_0x567987(0x10b)])(_0x2501b6,_0xaaa101,_0x26d6f0));}function he(_0xdcb367,_0xa9c4dc,_0x56cfaa){const _0x54d6fa=_0x5e00f3;return _0xdcb367==null?void 0x0:_0xdcb367[_0x54d6fa(0x124)](_0x91ba43=>(0x0,t[_0x54d6fa(0x11d)])(_0x91ba43,_0xa9c4dc,_0x56cfaa));}function C(_0x1a21ef,_0x261be2,_0x1623de){const _0x2d5295=_0x5e00f3;return _0x1a21ef==null?void 0x0:_0x1a21ef['map'](_0x409066=>(0x0,t[_0x2d5295(0x19e)])(_0x409066,_0x261be2,_0x1623de))['filter'](_0x3f6060=>_0x3f6060!=null);}function w(_0x59a8e0,_0x466fcd,_0x23b8a5){const _0x27b68d=_0x5e00f3;return _0x59a8e0==null?void 0x0:_0x59a8e0['map'](_0x1001cc=>(0x0,t[_0x27b68d(0x11e)])(_0x1001cc,_0x466fcd,_0x23b8a5))[_0x27b68d(0x87)](_0x3606ba=>_0x3606ba!=null);}function T(_0x4569c4){const _0x235581=_0x5e00f3;if(!_0x4569c4[_0x235581(0x1a8)])throw Error('Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.');return _0x4569c4[_0x235581(0x1a8)];}function E(_0x27906f){'@babel/helpers - typeof';const _0x5ec22a=_0x5e00f3;return E=typeof Symbol=='function'&&typeof Symbol[_0x5ec22a(0x134)]==_0x5ec22a(0xf9)?function(_0x18d420){return typeof _0x18d420;}:function(_0x48f78d){const _0x1d6182=_0x5ec22a;return _0x48f78d&&typeof Symbol=='function'&&_0x48f78d[_0x1d6182(0x159)]===Symbol&&_0x48f78d!==Symbol[_0x1d6182(0x136)]?'symbol':typeof _0x48f78d;},E(_0x27906f);}function ge(_0x499cad,_0x4aa69b){const _0x9ea332=_0x5e00f3;if(E(_0x499cad)!=_0x9ea332(0xec)||!_0x499cad)return _0x499cad;var _0x4b2897=_0x499cad[Symbol[_0x9ea332(0x12d)]];if(_0x4b2897!==void 0x0){var _0x2ed985=_0x4b2897[_0x9ea332(0xbd)](_0x499cad,_0x4aa69b||_0x9ea332(0xd0));if(E(_0x2ed985)!='object')return _0x2ed985;throw TypeError(_0x9ea332(0x78));}return(_0x4aa69b===_0x9ea332(0x151)?String:Number)(_0x499cad);}function _e(_0x1b5b67){const _0x3f4e4e=_0x5e00f3;var _0x7a10b9=ge(_0x1b5b67,'string');return E(_0x7a10b9)==_0x3f4e4e(0xf9)?_0x7a10b9:_0x7a10b9+'';}function D(_0x1130fe,_0x39f4de,_0x4a34dc){return(_0x39f4de=_e(_0x39f4de))in _0x1130fe?Object['defineProperty'](_0x1130fe,_0x39f4de,{'value':_0x4a34dc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1130fe[_0x39f4de]=_0x4a34dc,_0x1130fe;}var O=class extends t[_0x5e00f3(0xe7)]{constructor(..._0x48eba7){const _0x22e1f4=_0x5e00f3;super(..._0x48eba7),D(this,_0x22e1f4(0xb0),new Map()),D(this,_0x22e1f4(0x15e),new Map()),D(this,_0x22e1f4(0xc6),new Map()),D(this,_0x22e1f4(0x10e),new i[(_0x22e1f4(0x6a))]()),D(this,_0x22e1f4(0xf5),this[_0x22e1f4(0x10e)]['asObservable']());}['getFormula'](_0x555f6a,_0x4369b7){const _0x55092b=_0x5e00f3;var _0x359267;let _0x4becc2=(_0x359267=this[_0x55092b(0xb0)][_0x55092b(0xd9)](_0x555f6a))==null?void 0x0:_0x359267['formulas'][_0x4369b7];return _0x4becc2?t[_0x55092b(0xa2)][_0x55092b(0x8e)](_0x4becc2):void 0x0;}['getFormulas'](_0x42c14f){const _0x3e0eaa=_0x5e00f3;var _0xd8d68c;return t['Tools']['deepClone'](((_0xd8d68c=this[_0x3e0eaa(0xb0)][_0x3e0eaa(0xd9)](_0x42c14f))==null?void 0x0:_0xd8d68c[_0x3e0eaa(0x1a1)])??{});}[_0x5e00f3(0xf1)](_0x3e164e){const _0x5b0614=_0x5e00f3;let _0x4ee6d3=this['_resources']['get'](_0x3e164e);return _0x4ee6d3?t[_0x5b0614(0xa2)][_0x5b0614(0x8e)](_0x4ee6d3):void 0x0;}[_0x5e00f3(0x181)](_0x3ecaa0,_0x223185,_0xf74715){const _0x1acba6=_0x5e00f3;return this[_0x1acba6(0x135)](_0x3ecaa0,{[_0x223185]:_0xf74715});}[_0x5e00f3(0x14d)](_0x33d500,_0x2af622){const _0x836d9f=_0x5e00f3;return this[_0x836d9f(0xc6)]['has'](_0x33d500)||!l(_0x2af622)?!0x1:(this['_resources'][_0x836d9f(0x16c)](_0x33d500,t['Tools'][_0x836d9f(0x8e)](_0x2af622)),this[_0x836d9f(0x10e)][_0x836d9f(0x96)]({'unitId':_0x33d500}),!0x0);}[_0x5e00f3(0x135)](_0x156698,_0x2ec885){const _0x163d2a=_0x5e00f3;if(this['_loadErrors'][_0x163d2a(0xf4)](_0x156698)||!Object[_0x163d2a(0xad)](_0x2ec885)[_0x163d2a(0x19c)]||!l({'schemaVersion':0x1,'formulas':_0x2ec885}))return!0x1;let _0x45043e=this[_0x163d2a(0xb0)]['get'](_0x156698)??c(),_0x5db082=t[_0x163d2a(0xa2)]['deepClone'](_0x45043e);return Object[_0x163d2a(0x93)](_0x5db082[_0x163d2a(0x1a1)],t[_0x163d2a(0xa2)][_0x163d2a(0x8e)](_0x2ec885)),this['_resources'][_0x163d2a(0x16c)](_0x156698,_0x5db082),this['_change$']['next']({'unitId':_0x156698,'rangeIds':Object['keys'](_0x2ec885)}),!0x0;}[_0x5e00f3(0x147)](_0x2e43a7,_0x3d53a3){const _0x435d98=_0x5e00f3;if(this['_loadErrors'][_0x435d98(0xf4)](_0x2e43a7))return!0x1;let _0xd5fcc=this['_resources'][_0x435d98(0xd9)](_0x2e43a7);if(!(_0xd5fcc!=null&&_0xd5fcc[_0x435d98(0x1a1)][_0x3d53a3]))return!0x1;let _0x1c5e82=t[_0x435d98(0xa2)]['deepClone'](_0xd5fcc);return delete _0x1c5e82[_0x435d98(0x1a1)][_0x3d53a3],this['_resources'][_0x435d98(0x16c)](_0x2e43a7,_0x1c5e82),this[_0x435d98(0x10e)][_0x435d98(0x96)]({'unitId':_0x2e43a7,'rangeIds':[_0x3d53a3]}),!0x0;}[_0x5e00f3(0xb2)](_0xd93edb,_0x2b744d){const _0xc30657=_0x5e00f3;return _0x2b744d&&typeof _0x2b744d==_0xc30657(0xec)&&'schemaVersion'in _0x2b744d&&_0x2b744d[_0xc30657(0x7c)]!==0x1?(this[_0xc30657(0xff)](_0xd93edb,_0x2b744d,'unsupported-version'),!0x1):l(_0x2b744d)?(this[_0xc30657(0xb0)][_0xc30657(0x16c)](_0xd93edb,t['Tools']['deepClone'](_0x2b744d)),this[_0xc30657(0x15e)][_0xc30657(0xf3)](_0xd93edb),this['_loadErrors']['delete'](_0xd93edb),this[_0xc30657(0x10e)][_0xc30657(0x96)]({'unitId':_0xd93edb}),!0x0):(this[_0xc30657(0xff)](_0xd93edb,_0x2b744d,'invalid-resource'),!0x1);}[_0x5e00f3(0x17e)](_0x206cd2){const _0x2d8ba9=_0x5e00f3;let _0x37651b=this[_0x2d8ba9(0xb0)][_0x2d8ba9(0xd9)](_0x206cd2);return _0x37651b?t[_0x2d8ba9(0xa2)][_0x2d8ba9(0x8e)](_0x37651b):this['_rawResources']['has'](_0x206cd2)?t[_0x2d8ba9(0xa2)][_0x2d8ba9(0x8e)](this[_0x2d8ba9(0x15e)]['get'](_0x206cd2)):c();}['getLoadError'](_0x4f9eb4){const _0x29b0bb=_0x5e00f3;return this[_0x29b0bb(0xc6)][_0x29b0bb(0xd9)](_0x4f9eb4);}[_0x5e00f3(0x191)](_0x3a2a88){const _0x445bd3=_0x5e00f3;this[_0x445bd3(0xb0)][_0x445bd3(0xf3)](_0x3a2a88),this['_rawResources'][_0x445bd3(0xf3)](_0x3a2a88),this[_0x445bd3(0xc6)][_0x445bd3(0xf3)](_0x3a2a88),this['_change$']['next']({'unitId':_0x3a2a88});}['dispose'](){const _0x50deec=_0x5e00f3;this['_resources'][_0x50deec(0xee)](),this['_rawResources']['clear'](),this[_0x50deec(0xc6)][_0x50deec(0xee)](),this[_0x50deec(0x10e)][_0x50deec(0xc2)](),super[_0x50deec(0x15d)]();}['_preserveInvalid'](_0xa4eed4,_0x1b2ade,_0x16b2eb){const _0x35befc=_0x5e00f3;this[_0x35befc(0xb0)][_0x35befc(0xf3)](_0xa4eed4),this[_0x35befc(0x15e)][_0x35befc(0x16c)](_0xa4eed4,t[_0x35befc(0xa2)]['deepClone'](_0x1b2ade)),this[_0x35befc(0xc6)][_0x35befc(0x16c)](_0xa4eed4,_0x16b2eb),this[_0x35befc(0x10e)][_0x35befc(0x96)]({'unitId':_0xa4eed4});}};let ve=function(_0xd1d741){const _0x34773a=_0x5e00f3;return _0xd1d741[_0x34773a(0x193)]='empty',_0xd1d741[_0x34773a(0x192)]='pending',_0xd1d741[_0x34773a(0x15a)]='success',_0xd1d741['ERROR']=_0x34773a(0xdb),_0xd1d741;}({});function k(_0x20d5a1,_0x1bd1c6){return function(_0x5a9aa6,_0x1ad08f){_0x1bd1c6(_0x5a9aa6,_0x1ad08f,_0x20d5a1);};}function A(_0x54557e,_0x436f03,_0x33b182,_0x3fe646){const _0x5755aa=_0x5e00f3;var _0x37c5e2=arguments['length'],_0x3d15b4=_0x37c5e2<0x3?_0x436f03:_0x3fe646===null?_0x3fe646=Object['getOwnPropertyDescriptor'](_0x436f03,_0x33b182):_0x3fe646,_0x423f8e;if(typeof Reflect==_0x5755aa(0xec)&&typeof Reflect[_0x5755aa(0x89)]==_0x5755aa(0x70))_0x3d15b4=Reflect[_0x5755aa(0x89)](_0x54557e,_0x436f03,_0x33b182,_0x3fe646);else{for(var _0x1b62cf=_0x54557e[_0x5755aa(0x19c)]-0x1;_0x1b62cf>=0x0;_0x1b62cf--)(_0x423f8e=_0x54557e[_0x1b62cf])&&(_0x3d15b4=(_0x37c5e2<0x3?_0x423f8e(_0x3d15b4):_0x37c5e2>0x3?_0x423f8e(_0x436f03,_0x33b182,_0x3d15b4):_0x423f8e(_0x436f03,_0x33b182))||_0x3d15b4);}return _0x37c5e2>0x3&&_0x3d15b4&&Object[_0x5755aa(0xae)](_0x436f03,_0x33b182,_0x3d15b4),_0x3d15b4;}let j=class extends t['Disposable']{constructor(_0x3f3b96,_0xc20f8c,_0x1d818c){const _0x3b276d=_0x5e00f3;super(),this[_0x3b276d(0xc0)]=_0x3f3b96,this[_0x3b276d(0xd1)]=_0xc20f8c,this[_0x3b276d(0x73)]=_0x1d818c,D(this,'_registrations',new Map()),D(this,_0x3b276d(0x121),new Map()),D(this,_0x3b276d(0x91),new i[(_0x3b276d(0x6a))]()),D(this,'presentationChanged$',this[_0x3b276d(0x91)]['asObservable']()),this[_0x3b276d(0x11a)](this[_0x3b276d(0xd1)][_0x3b276d(0x14b)][_0x3b276d(0x8c)](_0x870ed9=>{const _0x3923b2=_0x3b276d;for(let _0xead275 of Object[_0x3923b2(0x13f)](_0x870ed9))for(let _0x1024cf of Object[_0x3923b2(0x13f)](_0xead275))_0x1024cf[_0x3923b2(0x195)](_0x4ddce5=>this[_0x3923b2(0x106)](_0x4ddce5));}));}[_0x5e00f3(0xd6)](_0x106825){const _0xc84734=_0x5e00f3;var _0x86cb56;let _0x12181a=_0x106825['getUnitId'](),_0x17ad2e=((_0x86cb56=_0x106825[_0xc84734(0x9f)]()[_0xc84734(0x1a8)])==null||(_0x86cb56=_0x86cb56[_0xc84734(0xce)])==null?void 0x0:_0x86cb56[_0xc84734(0x87)](g))??[],_0x4ab2d6=this[_0xc84734(0xc0)][_0xc84734(0x66)](_0x12181a),_0x39fb9d=new Set();for(let _0x41313e of _0x17ad2e){let _0x32a684=_0x4ab2d6[_0x41313e['rangeId']];_0x32a684&&(_0x39fb9d[_0xc84734(0x123)](M(_0x12181a,_0x41313e[_0xc84734(0xaa)])),this['register']({'unitId':_0x12181a,'rangeId':_0x41313e['rangeId']},_0x32a684));}for(let _0x15561f of Array[_0xc84734(0x14e)](this[_0xc84734(0x127)][_0xc84734(0x13f)]()))_0x15561f[_0xc84734(0xba)]===_0x12181a&&!_0x39fb9d['has'](M(_0x15561f[_0xc84734(0xba)],_0x15561f[_0xc84734(0xaa)]))&&this[_0xc84734(0xab)](_0x15561f);}['register'](_0x253391,_0x249649){const _0x1d4e3e=_0x5e00f3;let _0x4c8d41=M(_0x253391['unitId'],_0x253391[_0x1d4e3e(0xaa)]),_0x501075=this[_0x1d4e3e(0x127)][_0x1d4e3e(0xd9)](_0x4c8d41),_0xee0e5e=this[_0x1d4e3e(0x73)][_0x1d4e3e(0x110)](_0x253391['unitId']);if(_0x501075&&_0x501075[_0x1d4e3e(0x182)][_0x1d4e3e(0xd4)]===_0x249649['formula']&&_0x501075[_0x1d4e3e(0x19d)]===_0xee0e5e){_0x501075['config']=_0x249649;let _0x570370=_0x501075[_0x1d4e3e(0xb9)]?this['_registrationService'][_0x1d4e3e(0x13d)](_0x501075['unitId'],_0x501075[_0x1d4e3e(0xba)],_0x501075[_0x1d4e3e(0xb9)])??void 0x0:void 0x0;_0x501075['liveResult']=_0x570370,this[_0x1d4e3e(0x102)](_0x4c8d41,N(_0x249649,_0x570370));return;}_0x501075!=null&&_0x501075[_0x1d4e3e(0xb9)]&&this['_deleteRegistration'](_0x501075);let _0x136f54={..._0x253391,'config':_0x249649,'referenceRevision':_0xee0e5e,'presentation':N(_0x249649,void 0x0)};if(this[_0x1d4e3e(0x127)][_0x1d4e3e(0x16c)](_0x4c8d41,_0x136f54),!_0x249649[_0x1d4e3e(0xd4)][_0x1d4e3e(0x149)]())return;let _0xecc402=this['_registrationService']['registerFormulaWithRange'](_0x253391['unitId'],_0x253391[_0x1d4e3e(0xba)],_0x249649['formula'],void 0x0,{'rangeId':_0x253391[_0x1d4e3e(0xaa)]},r[_0x1d4e3e(0xac)][_0x1d4e3e(0x1a2)],_0x253391[_0x1d4e3e(0xaa)]);_0x136f54[_0x1d4e3e(0xb9)]=_0xecc402,this[_0x1d4e3e(0x121)]['set'](_0xecc402,_0x4c8d41);}['unregister'](_0x382a00){const _0x109be9=_0x5e00f3;let _0x2244ff=M(_0x382a00['unitId'],_0x382a00[_0x109be9(0xaa)]),_0x28786b=this[_0x109be9(0x127)]['get'](_0x2244ff);_0x28786b&&(this[_0x109be9(0x146)](_0x28786b),this['_registrations'][_0x109be9(0xf3)](_0x2244ff));}[_0x5e00f3(0xb7)](_0x23c8e0){const _0x41e250=_0x5e00f3;for(let _0x40828f of Array[_0x41e250(0x14e)](this[_0x41e250(0x127)][_0x41e250(0x13f)]()))_0x40828f['unitId']===_0x23c8e0&&this[_0x41e250(0xab)](_0x40828f);}[_0x5e00f3(0x14f)](_0x25fed8){const _0x5bf2a0=_0x5e00f3;var _0x5133b4;return(_0x5133b4=this[_0x5bf2a0(0x127)][_0x5bf2a0(0xd9)](M(_0x25fed8[_0x5bf2a0(0xba)],_0x25fed8['rangeId'])))==null?void 0x0:_0x5133b4[_0x5bf2a0(0xb3)];}[_0x5e00f3(0x186)](_0x5c019e){const _0x40d32d=_0x5e00f3;let _0x2d305e=this['_registrations']['get'](M(_0x5c019e[_0x40d32d(0xba)],_0x5c019e[_0x40d32d(0xaa)]));return _0x2d305e?P(_0x2d305e):void 0x0;}[_0x5e00f3(0x88)](){const _0x3fdedc=_0x5e00f3;return Array[_0x3fdedc(0x14e)](this[_0x3fdedc(0x127)][_0x3fdedc(0x13f)](),_0x26fb53=>({'identity':{'unitId':_0x26fb53[_0x3fdedc(0xba)],'rangeId':_0x26fb53[_0x3fdedc(0xaa)]},'config':_0x26fb53[_0x3fdedc(0x182)],'referenceRevision':_0x26fb53[_0x3fdedc(0x19d)],..._0x26fb53[_0x3fdedc(0xe6)]?{'liveResult':_0x26fb53[_0x3fdedc(0xe6)]}:null}));}[_0x5e00f3(0x15d)](){const _0x19769a=_0x5e00f3;for(let _0x5f328b of this[_0x19769a(0x127)][_0x19769a(0x13f)]())this[_0x19769a(0x146)](_0x5f328b);this[_0x19769a(0x127)][_0x19769a(0xee)](),this['_formulaKeys'][_0x19769a(0xee)](),this[_0x19769a(0x91)][_0x19769a(0xc2)](),super['dispose']();}[_0x5e00f3(0x106)](_0x46e97e){const _0x18ec0a=_0x5e00f3;let _0x5d2f3e=this['_formulaKeys']['get'](_0x46e97e[_0x18ec0a(0xb9)]),_0x3d01ee=_0x5d2f3e?this['_registrations']['get'](_0x5d2f3e):void 0x0;!_0x5d2f3e||!_0x3d01ee||(_0x3d01ee[_0x18ec0a(0xe6)]=_0x46e97e,this[_0x18ec0a(0x102)](_0x5d2f3e,N(_0x3d01ee[_0x18ec0a(0x182)],_0x46e97e)));}[_0x5e00f3(0x102)](_0x5b00f5,_0x2a3fe0){const _0x5b3195=_0x5e00f3;var _0x4302ad,_0x11ba39;let _0x539ccf=this[_0x5b3195(0x127)]['get'](_0x5b00f5);if(!_0x539ccf||ye(_0x539ccf[_0x5b3195(0xb3)],_0x2a3fe0))return;let _0x26f92a=_0x539ccf[_0x5b3195(0xb3)],_0x4127af=P(_0x539ccf);_0x539ccf[_0x5b3195(0xb3)]=_0x2a3fe0,this[_0x5b3195(0x91)][_0x5b3195(0x96)]({'unitId':_0x539ccf[_0x5b3195(0xba)],'rangeId':_0x539ccf[_0x5b3195(0xaa)],'presentation':_0x2a3fe0,'previousPresentation':_0x26f92a,'result':P(_0x539ccf),'previousResult':{..._0x4127af,..._0x26f92a,'value':(_0x4302ad=_0x26f92a[_0x5b3195(0x71)])==null?void 0x0:_0x4302ad['v'],'valueType':((_0x11ba39=_0x26f92a['cell'])==null?void 0x0:_0x11ba39['t'])??void 0x0}});}[_0x5e00f3(0x146)](_0x53d05c){const _0x1f306d=_0x5e00f3;_0x53d05c['formulaId']&&(this['_registrationService'][_0x1f306d(0x10c)](_0x53d05c[_0x1f306d(0xba)],_0x53d05c[_0x1f306d(0xba)],[_0x53d05c['formulaId']]),this['_formulaKeys'][_0x1f306d(0xf3)](_0x53d05c[_0x1f306d(0xb9)]));}};j=A([k(0x0,(0x0,t[_0x5e00f3(0x138)])(O)),k(0x1,(0x0,t['Inject'])(r['RegisterOtherFormulaService'])),k(0x2,(0x0,t[_0x5e00f3(0x138)])(e[_0x5e00f3(0x12a)]))],j);function M(_0x5becfe,_0x543128){return _0x5becfe+'\x00'+_0x543128;}function N(_0x99c658,_0x263b7d){const _0x51a0bf=_0x5e00f3;return(0x0,e['resolveFormulaResultPresentation'])({'numberFormat':_0x99c658[_0x51a0bf(0xe5)],'lastValue':_0x99c658['lastValue'],'result':_0x263b7d});}function P(_0x26489b){const _0x4086d7=_0x5e00f3;var _0x836e86,_0xfe4bdd,_0x4b245c;let _0x5709d9=_0x26489b['presentation'],_0x20373f=_0x26489b[_0x4086d7(0x182)][_0x4086d7(0xd4)]['trim']()?_0x5709d9['stale']||_0x5709d9[_0x4086d7(0x71)]==null?_0x4086d7(0xa7):((_0x836e86=_0x26489b[_0x4086d7(0xe6)])==null?void 0x0:_0x836e86[_0x4086d7(0xe8)])===r[_0x4086d7(0x16b)][_0x4086d7(0x18e)]?_0x4086d7(0xdb):'success':'empty';return{..._0x5709d9,'status':_0x20373f,'value':(_0xfe4bdd=_0x5709d9[_0x4086d7(0x71)])==null?void 0x0:_0xfe4bdd['v'],'valueType':((_0x4b245c=_0x5709d9[_0x4086d7(0x71)])==null?void 0x0:_0x4b245c['t'])??void 0x0};}function ye(_0x561ea6,_0x16fa96){const _0x46bfef=_0x5e00f3;var _0x399cdc,_0x399e4a,_0x43eca0,_0x4d2cbf;return _0x561ea6['text']===_0x16fa96['text']&&_0x561ea6[_0x46bfef(0x7e)]===_0x16fa96[_0x46bfef(0x7e)]&&_0x561ea6[_0x46bfef(0x156)]===_0x16fa96[_0x46bfef(0x156)]&&_0x561ea6[_0x46bfef(0x74)]===_0x16fa96[_0x46bfef(0x74)]&&_0x561ea6['stale']===_0x16fa96[_0x46bfef(0x163)]&&((_0x399cdc=_0x561ea6[_0x46bfef(0x71)])==null?void 0x0:_0x399cdc['t'])===((_0x399e4a=_0x16fa96['cell'])==null?void 0x0:_0x399e4a['t'])&&Object['is']((_0x43eca0=_0x561ea6[_0x46bfef(0x71)])==null?void 0x0:_0x43eca0['v'],(_0x4d2cbf=_0x16fa96[_0x46bfef(0x71)])==null?void 0x0:_0x4d2cbf['v']);}const F={'id':_0x5e00f3(0x97),'type':t[_0x5e00f3(0x9c)][_0x5e00f3(0x99)],'handler':(_0x35af1d,_0x4b6094)=>!(_0x4b6094!=null&&_0x4b6094['unitId'])||!_0x4b6094['rangeId']||!_0x4b6094[_0x5e00f3(0x182)]?!0x1:_0x35af1d[_0x5e00f3(0xd9)](O)[_0x5e00f3(0x181)](_0x4b6094['unitId'],_0x4b6094['rangeId'],_0x4b6094['config'])},I={'id':_0x5e00f3(0x133),'type':t[_0x5e00f3(0x9c)][_0x5e00f3(0x99)],'handler':(_0x13d073,_0x41e454)=>!(_0x41e454!=null&&_0x41e454[_0x5e00f3(0xba)])||!_0x41e454[_0x5e00f3(0xaa)]?!0x1:_0x13d073[_0x5e00f3(0xd9)](O)[_0x5e00f3(0x147)](_0x41e454[_0x5e00f3(0xba)],_0x41e454['rangeId'])},L={'id':_0x5e00f3(0xdc),'type':t['CommandType'][_0x5e00f3(0x99)],'handler':(_0x2b6c7f,_0x15bbc3)=>!(_0x15bbc3!=null&&_0x15bbc3[_0x5e00f3(0xba)])||!_0x15bbc3[_0x5e00f3(0xda)]?!0x1:_0x2b6c7f[_0x5e00f3(0xd9)](O)[_0x5e00f3(0x14d)](_0x15bbc3['unitId'],_0x15bbc3['resource'])},R={'id':_0x5e00f3(0x9d),'type':t[_0x5e00f3(0x9c)][_0x5e00f3(0x99)],'handler':(_0x4d0b81,_0x59dc0e)=>{const _0xd8a97c=_0x5e00f3;if(!(_0x59dc0e!=null&&_0x59dc0e[_0xd8a97c(0xba)])||!_0x59dc0e[_0xd8a97c(0x75)][_0xd8a97c(0x19c)])return!0x1;let _0x40ceb1=_0x4d0b81[_0xd8a97c(0xd9)](O),_0x5e1f9b=_0x4d0b81[_0xd8a97c(0xd9)](e[_0xd8a97c(0x12a)]),_0x429531=_0x40ceb1['getResource'](_0x59dc0e[_0xd8a97c(0xba)]);if(!_0x429531)return!0x1;let _0x42a4c5=t[_0xd8a97c(0xa2)][_0xd8a97c(0x8e)](_0x429531),_0x3b493c=!0x1;for(let _0x453b94 of _0x59dc0e['updates']){var _0x2a0c95,_0x5efa1a,_0x3bef5e,_0x102098;let _0x5be757=_0x42a4c5[_0xd8a97c(0x1a1)][_0x453b94[_0xd8a97c(0xaa)]];!_0x5be757||_0x5be757['formula']!==_0x453b94[_0xd8a97c(0x7f)]||((_0x2a0c95=_0x5be757[_0xd8a97c(0xe5)])==null?void 0x0:_0x2a0c95['pattern'])!==_0x453b94[_0xd8a97c(0x16d)]||_0x5e1f9b['getRevision'](_0x59dc0e[_0xd8a97c(0xba)])!==_0x453b94['expectedReferenceRevision']||(((_0x5efa1a=_0x5be757[_0xd8a97c(0xbb)])==null?void 0x0:_0x5efa1a['v'])!==_0x453b94['lastValue']['v']||((_0x3bef5e=_0x5be757[_0xd8a97c(0xbb)])==null?void 0x0:_0x3bef5e['t'])!==_0x453b94[_0xd8a97c(0xbb)]['t']||((_0x102098=_0x5be757['lastValue'])==null?void 0x0:_0x102098[_0xd8a97c(0x156)])!==_0x453b94['lastValue']['pattern'])&&(_0x5be757[_0xd8a97c(0xbb)]=t['Tools'][_0xd8a97c(0x8e)](_0x453b94[_0xd8a97c(0xbb)]),_0x3b493c=!0x0);}return!_0x3b493c||_0x40ceb1[_0xd8a97c(0x14d)](_0x59dc0e[_0xd8a97c(0xba)],_0x42a4c5);}},z={'id':'docs-formula.command.insert','type':t[_0x5e00f3(0x9c)][_0x5e00f3(0x109)],'handler':(_0x2a7808,_0x5bca1c)=>{const _0x279a13=_0x5e00f3;if(!(_0x5bca1c!=null&&_0x5bca1c[_0x279a13(0xd4)][_0x279a13(0x149)]()))return!0x1;let _0x46b311=K(_0x2a7808,_0x5bca1c[_0x279a13(0xba)],'');if(!_0x46b311)return!0x1;let _0x25764b=xe(_0x5bca1c['target'],_0x46b311[_0x279a13(0x1a8)],be(_0x2a7808,_0x46b311[_0x279a13(0xba)]));if(!_0x25764b)return!0x1;let _0x6c75fa=Se(_0x2a7808,_0x46b311['unitId'],_0x5bca1c[_0x279a13(0xd4)],_0x5bca1c[_0x279a13(0xa9)]??[]);if(!_0x6c75fa)return!0x1;let _0x43afe7=Ce(_0x46b311[_0x279a13(0x1a8)],_0x46b311[_0x279a13(0xe1)],_0x46b311['unitId']),_0x4df9c8=we({'documentData':_0x46b311[_0x279a13(0xa3)],'resource':_0x46b311[_0x279a13(0xda)],'rangeId':_0x43afe7,'config':{'formula':_0x5bca1c[_0x279a13(0xd4)],..._0x5bca1c['numberFormat']?{'numberFormat':_0x5bca1c[_0x279a13(0xe5)]}:null},'startOffset':_0x25764b['startOffset'],'endOffset':_0x25764b[_0x279a13(0x9e)]});if(!_0x4df9c8)return!0x1;let _0x20fe4e=(0x0,e[_0x279a13(0xef)])(_0x2a7808,_0x46b311[_0x279a13(0xba)],_0x6c75fa);return!_0x20fe4e||!q({'accessor':_0x2a7808,'document':_0x46b311[_0x279a13(0xa6)],'unitId':_0x46b311['unitId'],'trigger':z['id'],'rangeId':_0x43afe7,'previousResource':_0x46b311[_0x279a13(0xda)],'nextResource':_0x4df9c8[_0x279a13(0x85)],'previousDocumentData':_0x46b311[_0x279a13(0xa3)],'nextDocumentData':_0x4df9c8['nextDocumentData'],'cursorOffset':_0x4df9c8['cursorOffset'],'externalMutations':_0x20fe4e})?!0x1:{'rangeId':_0x43afe7,'startOffset':_0x4df9c8['cursorOffset']-0x1,'endOffset':_0x4df9c8[_0x279a13(0xfa)]};}},B={'id':'docs-formula.command.update','type':t[_0x5e00f3(0x9c)]['COMMAND'],'handler':(_0xe87c4b,_0x1dece9)=>{const _0xf4144a=_0x5e00f3;if(!(_0x1dece9!=null&&_0x1dece9['rangeId'])||!_0x1dece9[_0xf4144a(0xd4)][_0xf4144a(0x149)]())return!0x1;let _0x4d2d50=K(_0xe87c4b,_0x1dece9['unitId'],''),_0x55e5d7=_0x4d2d50==null?void 0x0:_0x4d2d50[_0xf4144a(0xe1)]['getFormula'](_0x4d2d50[_0xf4144a(0xba)],_0x1dece9[_0xf4144a(0xaa)]),_0x3fd00a=_0x4d2d50?_(_0x4d2d50[_0xf4144a(0xa3)][_0xf4144a(0x1a8)],_0x1dece9[_0xf4144a(0xaa)]):void 0x0;if(!_0x4d2d50||!_0x55e5d7||!_0x3fd00a)return!0x1;let _0x1e6978=Se(_0xe87c4b,_0x4d2d50[_0xf4144a(0xba)],_0x1dece9[_0xf4144a(0xd4)],_0x1dece9['externalReferences']??[]);if(!_0x1e6978)return!0x1;let _0x89503a=(0x0,e[_0xf4144a(0xef)])(_0xe87c4b,_0x4d2d50[_0xf4144a(0xba)],_0x1e6978);if(!_0x89503a)return!0x1;let _0x2bfac9=je(_0x4d2d50[_0xf4144a(0xda)]);return _0x2bfac9['formulas'][_0x1dece9[_0xf4144a(0xaa)]]={'formula':_0x1dece9[_0xf4144a(0xd4)],..._0x1dece9[_0xf4144a(0xe5)]?{'numberFormat':_0x1dece9[_0xf4144a(0xe5)]}:_0x55e5d7[_0xf4144a(0xe5)]?{'numberFormat':_0x55e5d7[_0xf4144a(0xe5)]}:null},q({'accessor':_0xe87c4b,'document':_0x4d2d50[_0xf4144a(0xa6)],'unitId':_0x4d2d50[_0xf4144a(0xba)],'trigger':B['id'],'rangeId':_0x1dece9[_0xf4144a(0xaa)],'previousResource':_0x4d2d50[_0xf4144a(0xda)],'nextResource':_0x2bfac9,'cursorOffset':_0x3fd00a['endIndex']+0x1,'externalMutations':_0x89503a});}},V={'id':_0x5e00f3(0x17f),'type':t[_0x5e00f3(0x9c)][_0x5e00f3(0x109)],'handler':(_0x4e7bc6,_0x98ff8e)=>{const _0x50a091=_0x5e00f3;if(!(_0x98ff8e!=null&&_0x98ff8e[_0x50a091(0xaa)]))return!0x1;let _0x1ac596=K(_0x4e7bc6,_0x98ff8e['unitId'],''),_0x37a330=_0x1ac596==null?void 0x0:_0x1ac596['model']['getFormula'](_0x1ac596['unitId'],_0x98ff8e['rangeId']),_0x114875=_0x1ac596?_(_0x1ac596[_0x50a091(0xa3)][_0x50a091(0x1a8)],_0x98ff8e[_0x50a091(0xaa)]):void 0x0;if(!_0x1ac596||!_0x37a330||!_0x114875)return!0x1;let _0x7fb9d9=je(_0x1ac596['resource']);return _0x7fb9d9[_0x50a091(0x1a1)][_0x98ff8e[_0x50a091(0xaa)]]={..._0x37a330,..._0x98ff8e[_0x50a091(0xe5)]?{'numberFormat':_0x98ff8e[_0x50a091(0xe5)]}:null},_0x98ff8e['numberFormat']||delete _0x7fb9d9[_0x50a091(0x1a1)][_0x98ff8e[_0x50a091(0xaa)]][_0x50a091(0xe5)],q({'accessor':_0x4e7bc6,'document':_0x1ac596[_0x50a091(0xa6)],'unitId':_0x1ac596[_0x50a091(0xba)],'trigger':V['id'],'rangeId':_0x98ff8e[_0x50a091(0xaa)],'previousResource':_0x1ac596['resource'],'nextResource':_0x7fb9d9,'cursorOffset':_0x114875[_0x50a091(0xfc)]+0x1,'externalMutations':{}});}},H={'id':_0x5e00f3(0x173),'type':t[_0x5e00f3(0x9c)][_0x5e00f3(0x109)],'handler':(_0x24fc68,_0x4fd919)=>G(_0x24fc68,_0x4fd919,'',H['id'])},U={'id':_0x5e00f3(0x194),'type':t[_0x5e00f3(0x9c)]['COMMAND'],'handler':(_0x207f94,_0x347b7d)=>G(_0x207f94,_0x347b7d,(_0x347b7d==null?void 0x0:_0x347b7d[_0x5e00f3(0x14c)])??'',U['id'])},W={'id':_0x5e00f3(0x13e),'type':t[_0x5e00f3(0x9c)][_0x5e00f3(0x109)],'handler':(_0x1d9900,_0x50957d)=>{const _0x47afc4=_0x5e00f3;if(!(_0x50957d!=null&&_0x50957d[_0x47afc4(0xaa)]))return!0x1;let _0x27eddf=K(_0x1d9900,_0x50957d[_0x47afc4(0xba)],'');if(!_0x27eddf)return!0x1;let _0x5088b0=_0x1d9900['get'](j)['getResult']({'unitId':_0x27eddf[_0x47afc4(0xba)],'rangeId':_0x50957d[_0x47afc4(0xaa)]});return _0x5088b0?G(_0x1d9900,_0x50957d,_0x5088b0[_0x47afc4(0x14c)],W['id']):!0x1;}};function G(_0x2f3cb3,_0x4f3c9e,_0x58518b,_0x5d4584){const _0x239094=_0x5e00f3;if(!(_0x4f3c9e!=null&&_0x4f3c9e[_0x239094(0xaa)]))return!0x1;let _0x1ef3ed=K(_0x2f3cb3,_0x4f3c9e[_0x239094(0xba)],'');if(!_0x1ef3ed)return!0x1;let _0x4bf463=h({'documentData':_0x1ef3ed[_0x239094(0xa3)],'resource':_0x1ef3ed['resource'],'rangeId':_0x4f3c9e[_0x239094(0xaa)],'text':_0x58518b});return _0x4bf463?q({'accessor':_0x2f3cb3,'document':_0x1ef3ed[_0x239094(0xa6)],'unitId':_0x1ef3ed[_0x239094(0xba)],'trigger':_0x5d4584,'rangeId':_0x4f3c9e[_0x239094(0xaa)],'previousResource':_0x1ef3ed[_0x239094(0xda)],'nextResource':_0x4bf463[_0x239094(0x85)],'previousDocumentData':_0x1ef3ed[_0x239094(0xa3)],'nextDocumentData':_0x4bf463[_0x239094(0xe4)],'cursorOffset':_0x4bf463[_0x239094(0xfa)],'externalMutations':{}}):!0x1;}function K(_0xd95ec5,_0x54ba9c,_0x1f59dd){const _0xadab98=_0x5e00f3;if(_0x1f59dd)return null;let _0x9d74a2=_0xd95ec5['get'](t[_0xadab98(0x141)]),_0x4bf626=(_0x54ba9c?_0x9d74a2['getUnit'](_0x54ba9c,t['UniverInstanceType'][_0xadab98(0xed)]):_0x9d74a2[_0xadab98(0x180)](t[_0xadab98(0x7d)]['UNIVER_DOC']))??null;if(!_0x4bf626)return null;let _0x14d395=_0x4bf626['getSnapshot'](),_0x69309c=_0x14d395['body'];if(_0x14d395[_0xadab98(0x80)]||!_0x69309c)return null;let _0x2ee9e1=_0xd95ec5[_0xadab98(0xd9)](O);return _0x2ee9e1[_0xadab98(0xf0)](_0x4bf626['getUnitId']())?null:{'document':_0x4bf626,'body':_0x69309c,'documentData':_0x14d395,'model':_0x2ee9e1,'resource':_0x2ee9e1[_0xadab98(0xf1)](_0x4bf626[_0xadab98(0x107)]())??c(),'unitId':_0x4bf626['getUnitId']()};}function be(_0x406227,_0x2f16d4){const _0x460b21=_0x5e00f3;var _0x7326e;return(_0x7326e=_0x406227['get'](n[_0x460b21(0x13b)])[_0x460b21(0x111)]({'subUnitId':_0x2f16d4,'unitId':_0x2f16d4}))==null?void 0x0:_0x7326e[0x0];}function xe(_0x4f69c1,_0x44a1ad,_0x65edaa){const _0x5035b6=_0x5e00f3;if((_0x4f69c1==null?void 0x0:_0x4f69c1[_0x5035b6(0x148)])===_0x5035b6(0x90)){var _0x47cab2;let _0xb46c97=((_0x47cab2=_0x44a1ad[_0x5035b6(0x16e)])==null?void 0x0:_0x47cab2[_0x5035b6(0x87)](_0x3f59e5=>_0x3f59e5[_0x5035b6(0xaf)]===_0x4f69c1['paragraphId']))??[];if(_0xb46c97[_0x5035b6(0x19c)]!==0x1)return null;let _0x4cfb4e=_0xb46c97[0x0],_0x547dd9=(0x0,t[_0x5035b6(0x12c)])(_0x44a1ad,_0x4cfb4e),_0x708a78=_0x4cfb4e['startIndex']-_0x547dd9,_0x4a61a5=_0x4f69c1[_0x5035b6(0x161)]==='end'?_0x708a78:_0x4f69c1['position'];if(!Number[_0x5035b6(0x7b)](_0x4a61a5)||_0x4a61a5<0x0||_0x4a61a5>_0x708a78)return null;let _0x51c86e=_0x547dd9+_0x4a61a5;return{'startOffset':_0x51c86e,'endOffset':_0x51c86e};}if((_0x4f69c1==null?void 0x0:_0x4f69c1[_0x5035b6(0x148)])===_0x5035b6(0xb8))return!Number['isInteger'](_0x4f69c1[_0x5035b6(0xcd)])||!Number[_0x5035b6(0x7b)](_0x4f69c1[_0x5035b6(0x9e)])?null:{'startOffset':Math[_0x5035b6(0xf7)](_0x4f69c1[_0x5035b6(0xcd)],_0x4f69c1['endOffset']),'endOffset':Math[_0x5035b6(0xf2)](_0x4f69c1[_0x5035b6(0xcd)],_0x4f69c1[_0x5035b6(0x9e)])};let _0x48267f=(_0x4f69c1==null?void 0x0:_0x4f69c1[_0x5035b6(0x148)])===_0x5035b6(0x150)?_0x4f69c1[_0x5035b6(0x150)]:_0x65edaa;return!_0x48267f||_0x48267f[_0x5035b6(0x170)]?null:{'startOffset':Math[_0x5035b6(0xf7)](_0x48267f['startOffset'],_0x48267f[_0x5035b6(0x9e)]),'endOffset':Math['max'](_0x48267f[_0x5035b6(0xcd)],_0x48267f[_0x5035b6(0x9e)])};}function Se(_0x3079c7,_0x33d1ee,_0x29bcca,_0xd3920e){const _0x38c614=_0x5e00f3;let _0x4c319c=_0x3079c7[_0x38c614(0xd9)](r['LexerTreeBuilder']),_0x8c1f00=_0x29bcca['startsWith']('=')?_0x29bcca['slice'](0x1):_0x29bcca,_0x18ef57=_0x4c319c[_0x38c614(0x17d)](_0x8c1f00);if(!_0x18ef57)return null;let _0x518752=_0x3079c7[_0x38c614(0xd9)](e[_0x38c614(0x12a)]),_0x47b014=(0x0,e[_0x38c614(0x84)])({'qualifiers':(0x0,e[_0x38c614(0x113)])(_0x18ef57),'explicitReferences':_0xd3920e??[],'resolveBinding':_0x2bb794=>_0x518752[_0x38c614(0x166)](_0x33d1ee,_0x2bb794)});return _0x47b014[_0x38c614(0xe8)]===_0x38c614(0x158)?_0x47b014[_0x38c614(0x188)]:null;}function Ce(_0x47cb0e,_0x3765e7,_0x40b16a){const _0x5af77f=_0x5e00f3;var _0x28ffd2;let _0x2c20f0=(0x0,t[_0x5af77f(0x8b)])(0x6);for(;_0x47cb0e!=null&&(_0x28ffd2=_0x47cb0e['customRanges'])!=null&&_0x28ffd2[_0x5af77f(0x6f)](_0x3c753c=>_0x3c753c[_0x5af77f(0xaa)]===_0x2c20f0)||_0x3765e7[_0x5af77f(0x6c)](_0x40b16a,_0x2c20f0);)_0x2c20f0=(0x0,t[_0x5af77f(0x8b)])(0x6);return _0x2c20f0;}function we(_0x1dd066){try{return te(_0x1dd066);}catch(_0x460cd4){if(_0x460cd4 instanceof m)return null;throw _0x460cd4;}}function Te(_0x278047){const _0x381347=_0x5e00f3;let _0x55b722=_0x278047[_0x381347(0x16a)]&&_0x278047[_0x381347(0xe4)]?De(_0x278047[_0x381347(0xa6)],_0x278047[_0x381347(0xba)],_0x278047[_0x381347(0x16a)],_0x278047[_0x381347(0xe4)],_0x278047['cursorOffset'],_0x278047[_0x381347(0xc1)]):null;return _0x278047['previousDocumentData']&&_0x278047[_0x381347(0xe4)]&&!_0x55b722?null:{'documentRedo':_0x55b722,'resourceRedo':{'id':L['id'],'params':{'unitId':_0x278047[_0x381347(0xba)],'resource':_0x278047[_0x381347(0x85)]}},'resourceUndo':{'id':L['id'],'params':{'unitId':_0x278047['unitId'],'resource':_0x278047['previousResource']}}};}function Ee(_0x1e1e0b,_0x1d85c4,_0x5ac1ed,_0x555a18){const _0x4fc7e8=_0x5e00f3;_0x555a18[_0x4fc7e8(0x12e)]({'id':_0x1e1e0b[_0x4fc7e8(0xc1)]+':'+_0x1e1e0b[_0x4fc7e8(0xaa)],'unitID':_0x1e1e0b['unitId'],'redoMutations':[..._0x1e1e0b['externalMutations'][_0x4fc7e8(0xbc)]?[_0x1e1e0b['externalMutations'][_0x4fc7e8(0xbc)]]:[],..._0x1d85c4['documentRedo']?[_0x1d85c4[_0x4fc7e8(0x178)]]:[],_0x1d85c4[_0x4fc7e8(0xa1)]],'undoMutations':[_0x1d85c4[_0x4fc7e8(0x101)],..._0x5ac1ed?[_0x5ac1ed]:[],..._0x1e1e0b['externalMutations'][_0x4fc7e8(0x179)]?[_0x1e1e0b['externalMutations'][_0x4fc7e8(0x179)]]:[]]});}function q(_0x3cd426){const _0x4ea16e=_0x5e00f3;let _0x2f2787=_0x3cd426[_0x4ea16e(0x175)]['get'](t[_0x4ea16e(0x174)]),_0x59a426=_0x3cd426[_0x4ea16e(0x175)][_0x4ea16e(0xd9)](t[_0x4ea16e(0x10d)]),_0x2ab766=_0x3cd426['accessor'][_0x4ea16e(0xd9)](n[_0x4ea16e(0x13b)]),_0x1b9f5b=Te(_0x3cd426);if(!_0x1b9f5b)return!0x1;let _0x547b4a=!0x1,_0x11cbed=null,_0x1ac01b=!0x1;try{if(_0x3cd426[_0x4ea16e(0x6b)][_0x4ea16e(0xbc)]){if(!_0x2f2787['syncExecuteCommand'](_0x3cd426[_0x4ea16e(0x6b)][_0x4ea16e(0xbc)]['id'],_0x3cd426[_0x4ea16e(0x6b)][_0x4ea16e(0xbc)][_0x4ea16e(0x164)]))return!0x1;_0x547b4a=!0x0;}if(_0x1b9f5b['documentRedo']){let _0x5c71cb=_0x2f2787[_0x4ea16e(0x145)](_0x1b9f5b[_0x4ea16e(0x178)]['id'],_0x1b9f5b[_0x4ea16e(0x178)]['params']);if(!_0x5c71cb)return J(_0x2f2787,_0x3cd426['externalMutations'],_0x547b4a),!0x1;_0x11cbed={'id':n[_0x4ea16e(0x68)]['id'],'params':{..._0x5c71cb,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x2f2787[_0x4ea16e(0x145)](_0x1b9f5b[_0x4ea16e(0xa1)]['id'],_0x1b9f5b[_0x4ea16e(0xa1)][_0x4ea16e(0x164)]))return Oe(_0x2f2787,_0x11cbed),J(_0x2f2787,_0x3cd426[_0x4ea16e(0x6b)],_0x547b4a),!0x1;_0x1ac01b=!0x0,Ee(_0x3cd426,_0x1b9f5b,_0x11cbed,_0x59a426);}catch(_0x5abae1){throw _0x1ac01b&&_0x2f2787[_0x4ea16e(0x145)](_0x1b9f5b[_0x4ea16e(0x101)]['id'],_0x1b9f5b[_0x4ea16e(0x101)][_0x4ea16e(0x164)]),Oe(_0x2f2787,_0x11cbed),J(_0x2f2787,_0x3cd426[_0x4ea16e(0x6b)],_0x547b4a),_0x5abae1;}return _0x2ab766[_0x4ea16e(0x98)]([{'startOffset':_0x3cd426[_0x4ea16e(0xfa)],'endOffset':_0x3cd426['cursorOffset'],'segmentId':''}],{'unitId':_0x3cd426[_0x4ea16e(0xba)],'subUnitId':_0x3cd426['unitId']},!0x1,{[n['DOC_SELECTION_OPTION_PRESERVE_CARET']]:!0x0}),!0x0;}function De(_0x409cac,_0xb87dd3,_0x2c0fb9,_0x1d4a34,_0x298750,_0x5ec2e5){const _0x1526cf=_0x5e00f3;let _0x1cc114=ke(_0x2c0fb9,_0x1d4a34,(0x0,t[_0x1526cf(0x6d)])(_0x409cac,''));return _0x1cc114?{'id':n[_0x1526cf(0x68)]['id'],'params':{'unitId':_0xb87dd3,'actions':_0x1cc114,'segmentId':'','textRanges':[{'startOffset':_0x298750,'endOffset':_0x298750,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x5ec2e5}}:null;}function Oe(_0x208da4,_0x7d225e){const _0x4cb854=_0x5e00f3;_0x7d225e&&_0x208da4[_0x4cb854(0x145)](_0x7d225e['id'],_0x7d225e[_0x4cb854(0x164)]);}function J(_0x2cf102,_0x2bff7f,_0x31ff4e){const _0x2f1f3d=_0x5e00f3;_0x31ff4e&&_0x2bff7f[_0x2f1f3d(0x179)]&&_0x2cf102[_0x2f1f3d(0x145)](_0x2bff7f[_0x2f1f3d(0x179)]['id'],_0x2bff7f[_0x2f1f3d(0x179)]['params']);}function ke(_0xb8df35,_0x13e572,_0x4797d5){const _0x32ef7c=_0x5e00f3;let _0x3db0b0=_0xb8df35[_0x32ef7c(0x1a8)],_0x4d812e=_0x13e572[_0x32ef7c(0x1a8)],_0x61d147=Ae(_0x3db0b0==null?void 0x0:_0x3db0b0['dataStream'],_0x4d812e==null?void 0x0:_0x4d812e[_0x32ef7c(0x197)]);if(!_0x61d147||!_0x4d812e)return null;let _0x619f91=new t[(_0x32ef7c(0x125))]();return _0x619f91['retain'](_0x61d147[_0x32ef7c(0x11c)]),_0x61d147['insertLength']>0x0&&_0x619f91[_0x32ef7c(0xb6)](_0x61d147[_0x32ef7c(0x11f)],(0x0,t['getBodySliceForTextXAction'])(_0x4d812e,_0x61d147['start'],_0x61d147[_0x32ef7c(0x11c)]+_0x61d147[_0x32ef7c(0x11f)],!0x1)),_0x61d147[_0x32ef7c(0x120)]>0x0&&_0x619f91[_0x32ef7c(0xf3)](_0x61d147[_0x32ef7c(0x120)]),t[_0x32ef7c(0xb1)][_0x32ef7c(0x122)]()['editOp'](_0x619f91[_0x32ef7c(0x17e)](),_0x4797d5);}function Ae(_0x537899,_0x1f1dbd){const _0xc1e370=_0x5e00f3;if(_0x537899==null||_0x1f1dbd==null||_0x537899===_0x1f1dbd)return null;let _0x24a631=0x0;for(;_0x24a631<_0x537899[_0xc1e370(0x19c)]&&_0x24a631<_0x1f1dbd[_0xc1e370(0x19c)]&&_0x537899[_0x24a631]===_0x1f1dbd[_0x24a631];)_0x24a631+=0x1;let _0x5dfd92=_0x537899['length'],_0x57aee5=_0x1f1dbd['length'];for(;_0x5dfd92>_0x24a631&&_0x57aee5>_0x24a631&&_0x537899[_0x5dfd92-0x1]===_0x1f1dbd[_0x57aee5-0x1];)--_0x5dfd92,--_0x57aee5;return{'start':_0x24a631,'deleteLength':_0x5dfd92-_0x24a631,'insertLength':_0x57aee5-_0x24a631};}function je(_0x2799a0){const _0x140e81=_0x5e00f3;return{'schemaVersion':0x1,'formulas':Object[_0x140e81(0x86)](Object[_0x140e81(0xd8)](_0x2799a0[_0x140e81(0x1a1)])[_0x140e81(0x124)](([_0x29fb9a,_0x46778c])=>[_0x29fb9a,{..._0x46778c,..._0x46778c[_0x140e81(0xe5)]?{'numberFormat':{..._0x46778c[_0x140e81(0xe5)]}}:null,..._0x46778c[_0x140e81(0xbb)]?{'lastValue':{..._0x46778c[_0x140e81(0xbb)]}}:null}]))};}let Y=class extends t[_0x5e00f3(0xe7)]{constructor(_0x2d9248,_0x1f0113,_0x1dcbc1,_0x24fc80){const _0x34f403=_0x5e00f3;super(),this['_instanceService']=_0x2d9248,this[_0x34f403(0x1a6)]=_0x1f0113,this['_model']=_0x1dcbc1,this['_service']=_0x24fc80,D(this,_0x34f403(0x17a),new Set()),D(this,'_syncScheduled',!0x1),D(this,_0x34f403(0x81),!0x1),this['_instanceService'][_0x34f403(0x185)](t[_0x34f403(0x7d)][_0x34f403(0xed)])[_0x34f403(0x195)](_0x5af9cb=>this[_0x34f403(0x1a7)][_0x34f403(0xd6)](_0x5af9cb)),this[_0x34f403(0x11a)](this[_0x34f403(0xc0)][_0x34f403(0xf5)]['subscribe'](({unitId:_0x8a7111})=>this['_syncUnit'](_0x8a7111))),this[_0x34f403(0x11a)](this['_instanceService'][_0x34f403(0xf8)][_0x34f403(0x8c)](({unit:_0x591bf9})=>{const _0x1fe5c4=_0x34f403;_0x591bf9[_0x1fe5c4(0x148)]===t[_0x1fe5c4(0x7d)][_0x1fe5c4(0xed)]&&this[_0x1fe5c4(0xe3)](_0x591bf9[_0x1fe5c4(0x107)]());})),this['disposeWithMe'](this[_0x34f403(0x129)][_0x34f403(0x10f)][_0x34f403(0x8c)](_0x10690f=>{const _0x4e049c=_0x34f403;this['_service'][_0x4e049c(0xb7)](_0x10690f[_0x4e049c(0x107)]());})),this[_0x34f403(0x11a)](this[_0x34f403(0x1a6)][_0x34f403(0x137)](_0x1b527a=>{const _0x401297=_0x34f403;if(_0x1b527a['id']===n[_0x401297(0x68)]['id']&&Me(_0x1b527a[_0x401297(0x164)])){let _0x483896=_0x1b527a['params'];_0x483896['segmentId']||this[_0x401297(0x16f)](_0x483896[_0x401297(0xba)]);}}));}['dispose'](){const _0x1a036a=_0x5e00f3;this['_isDisposed']=!0x0,super[_0x1a036a(0x15d)]();}[_0x5e00f3(0xe3)](_0x38c352){const _0x52874c=_0x5e00f3;this[_0x52874c(0x17a)][_0x52874c(0x123)](_0x38c352),!this[_0x52874c(0xd5)]&&(this[_0x52874c(0xd5)]=!0x0,queueMicrotask(()=>{const _0x2e3f5a=_0x52874c;if(this[_0x2e3f5a(0xd5)]=!0x1,this[_0x2e3f5a(0x81)])return;let _0x2d799f=Array['from'](this[_0x2e3f5a(0x17a)]);this['_pendingUnitIds'][_0x2e3f5a(0xee)](),_0x2d799f['forEach'](_0x30eafb=>this[_0x2e3f5a(0x16f)](_0x30eafb));}));}[_0x5e00f3(0x16f)](_0xb1937f){const _0x17d099=_0x5e00f3;let _0x33331=this[_0x17d099(0x129)][_0x17d099(0x199)](_0xb1937f,t[_0x17d099(0x7d)][_0x17d099(0xed)]);_0x33331&&this[_0x17d099(0x1a7)][_0x17d099(0xd6)](_0x33331);}};Y=A([k(0x0,t[_0x5e00f3(0x141)]),k(0x1,t[_0x5e00f3(0x174)]),k(0x2,(0x0,t['Inject'])(O)),k(0x3,(0x0,t[_0x5e00f3(0x138)])(j))],Y);function Me(_0xcb96e2){const _0x24a437=_0x5e00f3;return typeof _0xcb96e2==_0x24a437(0xec)&&!!_0xcb96e2&&_0x24a437(0xba)in _0xcb96e2&&typeof _0xcb96e2[_0x24a437(0xba)]=='string'&&(!(_0x24a437(0x170)in _0xcb96e2)||_0xcb96e2['segmentId']===void 0x0||typeof _0xcb96e2[_0x24a437(0x170)]==_0x24a437(0x151));}let X=class extends t[_0x5e00f3(0xe7)]{constructor(_0x54106d,_0x87a6c5){const _0x258ac2=_0x5e00f3;super(),this[_0x258ac2(0x18c)]=_0x54106d,this[_0x258ac2(0x119)]=_0x87a6c5,this[_0x258ac2(0x11a)](this[_0x258ac2(0x18c)][_0x258ac2(0x198)]({'pluginName':o,'businesses':[t[_0x258ac2(0x7d)][_0x258ac2(0xed)]],'toJson':_0x31a8c4=>JSON['stringify'](this[_0x258ac2(0x119)][_0x258ac2(0x17e)](_0x31a8c4)),'parseJson':_0x6c15a8=>JSON['parse'](_0x6c15a8),'onLoad':(_0x34e2ae,_0x538ff4)=>{const _0x4bf637=_0x258ac2;this['_docFormulaModel'][_0x4bf637(0xb2)](_0x34e2ae,_0x538ff4);},'onUnLoad':_0x49ddaf=>this[_0x258ac2(0x119)][_0x258ac2(0x191)](_0x49ddaf)}));}};X=A([k(0x0,t[_0x5e00f3(0x19a)]),k(0x1,(0x0,t[_0x5e00f3(0x138)])(O))],X);var Ne=_0x5e00f3(0xfe),Pe=_0x5e00f3(0x17c);const Fe={};let Z=class extends t[_0x5e00f3(0xe7)]{constructor(_0x1daf28,_0x59db42,_0x3e05e3){const _0x1aeabd=_0x5e00f3;super(),this[_0x1aeabd(0x189)]=_0x1daf28,this[_0x1aeabd(0x177)]=_0x59db42,this['disposeWithMe'](_0x3e05e3[_0x1aeabd(0x94)]({'resolve':(_0x18c66c,_0xc0bfa7)=>{const _0x541c3b=_0x1aeabd;var _0x5420bf;return((_0x5420bf=_0xc0bfa7['customRanges'])==null?void 0x0:_0x5420bf[_0x541c3b(0x87)](g)[_0x541c3b(0x124)](_0x235142=>({'startOffset':_0x235142[_0x541c3b(0xc4)],'endOffset':_0x235142[_0x541c3b(0xfc)]+0x1,'text':this[_0x541c3b(0x165)](_0x18c66c,_0x235142[_0x541c3b(0xaa)])})))??[];}})),this[_0x1aeabd(0x11a)](this['_formulaService'][_0x1aeabd(0x140)][_0x1aeabd(0x8c)](({unitId:_0x1dd4db})=>{const _0x2e8db2=_0x1aeabd;_0x3e05e3[_0x2e8db2(0x82)](_0x1dd4db);}));}['resolveFormula'](_0x55161a,_0x9a90f7){const _0x22d9b1=_0x5e00f3;var _0x273aff;return((_0x273aff=this[_0x22d9b1(0x177)][_0x22d9b1(0x186)]({'unitId':_0x55161a,'rangeId':_0x9a90f7}))==null?void 0x0:_0x273aff['text'])??'';}['resolveText'](_0x42d81c,_0x4d95ca,_0x13538f){const _0x180715=_0x5e00f3;var _0x5116f2;let _0x587dba=this['_univerInstanceService']['getUnit'](_0x42d81c,t[_0x180715(0x7d)][_0x180715(0xed)]),_0x5d60bd=_0x587dba==null?void 0x0:_0x587dba['getBody']();if(!_0x5d60bd)return'';let _0x518f1e=_0x5d60bd['dataStream']['slice'](_0x4d95ca,_0x13538f),_0x32e87b=((_0x5116f2=_0x5d60bd[_0x180715(0xce)])==null?void 0x0:_0x5116f2['filter'](_0x44e208=>g(_0x44e208)&&_0x44e208[_0x180715(0xc4)]>=_0x4d95ca&&_0x44e208[_0x180715(0xfc)]<_0x13538f)[_0x180715(0x72)]((_0x382d2a,_0x204eb6)=>_0x204eb6[_0x180715(0xc4)]-_0x382d2a['startIndex']))??[];for(let _0x55b6e7 of _0x32e87b){let _0x547d62=_0x55b6e7[_0x180715(0xc4)]-_0x4d95ca,_0x27eddb=_0x55b6e7[_0x180715(0xfc)]-_0x4d95ca+0x1;_0x518f1e=''+_0x518f1e[_0x180715(0x105)](0x0,_0x547d62)+this['resolveFormula'](_0x42d81c,_0x55b6e7[_0x180715(0xaa)])+_0x518f1e[_0x180715(0x105)](_0x27eddb);}return _0x518f1e;}[_0x5e00f3(0x143)](_0x2b80cf){return Ie(_0x2b80cf);}[_0x5e00f3(0x14a)](_0x46a567,_0x585de5,_0x1ec3ee={}){const _0x196bfc=_0x5e00f3;var _0x1eb2f9;return re({'id':_0x46a567,'body':_0x585de5,'documentStyle':{}},(((_0x1eb2f9=_0x585de5[_0x196bfc(0xce)])==null?void 0x0:_0x1eb2f9[_0x196bfc(0x87)](g))??[])['map'](_0x1ac260=>({'rangeId':_0x1ac260[_0x196bfc(0xaa)],'text':_0x1ec3ee[_0x1ac260[_0x196bfc(0xaa)]]??this['resolveFormula'](_0x46a567,_0x1ac260[_0x196bfc(0xaa)])})))['body']??{'dataStream':''};}};Z=A([k(0x0,t[_0x5e00f3(0x141)]),k(0x1,(0x0,t[_0x5e00f3(0x138)])(j)),k(0x2,(0x0,t[_0x5e00f3(0x138)])(n['DocTextResolverService']))],Z);function Ie(_0x329c7e){const _0x27fab5=_0x5e00f3;var _0x33ae95,_0xf98c2a;let _0x165c17=Le(_0x329c7e),_0x2c55d4=re(_0x329c7e,(((_0x33ae95=_0x329c7e['body'])==null||(_0x33ae95=_0x33ae95[_0x27fab5(0xce)])==null?void 0x0:_0x33ae95[_0x27fab5(0x87)](g))??[])[_0x27fab5(0x124)](_0x814953=>({'rangeId':_0x814953[_0x27fab5(0xaa)],'text':Re(_0x165c17==null?void 0x0:_0x165c17[_0x27fab5(0x1a1)][_0x814953['rangeId']])})));return _0x2c55d4[_0x27fab5(0x15b)]=(_0xf98c2a=_0x2c55d4['resources'])==null?void 0x0:_0xf98c2a['filter'](_0x2943c5=>_0x2943c5[_0x27fab5(0xbf)]!==o),_0x2c55d4;}function Le(_0x4e3386){const _0x38c66e=_0x5e00f3;var _0x5d98fb;let _0x2a3ac5=(_0x5d98fb=_0x4e3386[_0x38c66e(0x15b)])==null||(_0x5d98fb=_0x5d98fb['find'](_0x274165=>_0x274165[_0x38c66e(0xbf)]==='DOC_FORMULA_PLUGIN'))==null?void 0x0:_0x5d98fb[_0x38c66e(0xd2)];if(_0x2a3ac5)try{let _0x1ea86a=JSON['parse'](_0x2a3ac5);return l(_0x1ea86a)?_0x1ea86a:void 0x0;}catch{return;}}function Re(_0x3adcb9){const _0x38432c=_0x5e00f3;return _0x3adcb9?(0x0,e[_0x38432c(0xdd)])({'lastValue':_0x3adcb9[_0x38432c(0xbb)],'numberFormat':_0x3adcb9[_0x38432c(0xe5)]})['text']:'';}let Q=class extends t[_0x5e00f3(0xe7)]{constructor(_0x46af2e,_0x483674,_0xd22289){const _0x23b27b=_0x5e00f3;super(),this[_0x23b27b(0x177)]=_0x46af2e,this[_0x23b27b(0xeb)]=_0x483674,this['disposeWithMe'](_0xd22289[_0x23b27b(0x15f)](this));}[_0x5e00f3(0x92)](_0x4b7b35){const _0x2666ad=_0x5e00f3;let _0x5b2084=new Map();for(let _0x4065b1 of this[_0x2666ad(0x177)]['getRegisteredFormulas']()){var _0x16d912;if(!this['_cacheEligibilityService']['assess'](_0x4065b1['config'][_0x2666ad(0xd4)],_0x4065b1[_0x2666ad(0xe6)])[_0x2666ad(0xf6)])continue;let _0xf145ca=(0x0,e[_0x2666ad(0x13a)])(_0x4065b1[_0x2666ad(0xe6)]),_0x5e1e37=_0xf145ca?(0x0,e['toFormulaLastValue'])(_0xf145ca):null;if(!_0x5e1e37||ze(_0x4065b1[_0x2666ad(0x182)][_0x2666ad(0xbb)],_0x5e1e37))continue;let _0x151748=_0x5b2084['get'](_0x4065b1[_0x2666ad(0x76)][_0x2666ad(0xba)])??[];_0x151748[_0x2666ad(0xe9)]({'rangeId':_0x4065b1[_0x2666ad(0x76)][_0x2666ad(0xaa)],'expectedFormula':_0x4065b1[_0x2666ad(0x182)][_0x2666ad(0xd4)],'expectedNumberFormat':(_0x16d912=_0x4065b1[_0x2666ad(0x182)][_0x2666ad(0xe5)])==null?void 0x0:_0x16d912[_0x2666ad(0x156)],'expectedReferenceRevision':_0x4065b1['referenceRevision'],'lastValue':_0x5e1e37}),_0x5b2084[_0x2666ad(0x16c)](_0x4065b1[_0x2666ad(0x76)]['unitId'],_0x151748);}return Array[_0x2666ad(0x14e)](_0x5b2084,([_0x55246b,_0x2c7667])=>({'id':R['id'],'params':{'unitId':_0x55246b,'updates':_0x2c7667}}));}};Q=A([k(0x0,(0x0,t[_0x5e00f3(0x138)])(j)),k(0x1,(0x0,t[_0x5e00f3(0x138)])(e['FormulaCacheEligibilityService'])),k(0x2,(0x0,t[_0x5e00f3(0x138)])(e[_0x5e00f3(0xfd)]))],Q);function ze(_0x3a1122,_0x58c77b){const _0x515a21=_0x5e00f3;return(_0x3a1122==null?void 0x0:_0x3a1122['v'])===_0x58c77b['v']&&(_0x3a1122==null?void 0x0:_0x3a1122['t'])===_0x58c77b['t']&&(_0x3a1122==null?void 0x0:_0x3a1122['pattern'])===_0x58c77b[_0x515a21(0x156)];}let $=class extends t[_0x5e00f3(0x77)]{constructor(_0x2d6682=Fe,_0xb94897,_0x174a56,_0x5e04b0){const _0x241852=_0x5e00f3;super(),this[_0x241852(0x162)]=_0x2d6682,this[_0x241852(0x126)]=_0xb94897,this[_0x241852(0x1a6)]=_0x174a56,this[_0x241852(0x12f)]=_0x5e04b0;let {..._0x334be1}=(0x0,t[_0x241852(0xc5)])({},Fe,this[_0x241852(0x162)]);this[_0x241852(0x12f)][_0x241852(0x131)](_0x241852(0x9a),_0x334be1);}[_0x5e00f3(0x8d)](){const _0x3826ba=_0x5e00f3;this['_injector'][_0x3826ba(0x123)]([O]),this['_injector']['add']([j]),this[_0x3826ba(0x126)][_0x3826ba(0x123)]([X]),this[_0x3826ba(0x126)][_0x3826ba(0x123)]([Y]),this[_0x3826ba(0x126)][_0x3826ba(0x123)]([Q]),this[_0x3826ba(0x126)]['add']([Z]),(0x0,t[_0x3826ba(0x17b)])(this[_0x3826ba(0x126)],[[O],[X],[Y],[Q],[Z]]),[F,I,L,R,z,B,V,H,U,W][_0x3826ba(0x195)](_0x45e621=>this[_0x3826ba(0x11a)](this[_0x3826ba(0x1a6)]['registerCommand'](_0x45e621)));}};D($,_0x5e00f3(0x142),o),D($,_0x5e00f3(0xc9),Ne),D($,'version',Pe),D($,'type',t[_0x5e00f3(0x7d)][_0x5e00f3(0xed)]),$=A([(0x0,t[_0x5e00f3(0x1a4)])(a[_0x5e00f3(0x1a0)],e['UniverProFormulaEnginePlugin'],n['UniverDocsPlugin']),k(0x1,(0x0,t[_0x5e00f3(0x138)])(t[_0x5e00f3(0x18f)])),k(0x2,t['ICommandService']),k(0x3,t[_0x5e00f3(0x12b)])],$),exports[_0x5e00f3(0x132)]=W,exports[_0x5e00f3(0x95)]=s,exports[_0x5e00f3(0x1a5)]='',exports[_0x5e00f3(0x144)]=o,exports[_0x5e00f3(0xcb)]=0x1,Object['defineProperty'](exports,_0x5e00f3(0x155),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x5e00f3(0xae)](exports,_0x5e00f3(0x168),{'enumerable':!0x0,'get':function(){return Y;}}),exports[_0x5e00f3(0x10a)]=O,Object[_0x5e00f3(0xae)](exports,_0x5e00f3(0x11b),{'enumerable':!0x0,'get':function(){return X;}}),exports[_0x5e00f3(0xc8)]=ve,Object[_0x5e00f3(0xae)](exports,_0x5e00f3(0x172),{'enumerable':!0x0,'get':function(){return j;}}),exports[_0x5e00f3(0x104)]=z,exports[_0x5e00f3(0x9b)]=m,exports[_0x5e00f3(0x152)]=H,exports['RemoveDocFormulaMutation']=I,exports[_0x5e00f3(0x18b)]=U,exports[_0x5e00f3(0xa5)]=R,exports['SetDocFormulaMutation']=F,exports[_0x5e00f3(0x157)]=V,exports[_0x5e00f3(0x69)]=L,Object['defineProperty'](exports,_0x5e00f3(0xc3),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x5e00f3(0xd7)]=B,exports['assertSafeDocFormulaInsertRange']=ie,exports[_0x5e00f3(0xcc)]=te,exports[_0x5e00f3(0x114)]=h,exports['buildUpdateDocFormulaActions']=ne,exports['createEmptyDocFormulaResource']=c,exports[_0x5e00f3(0x79)]=Ie,exports[_0x5e00f3(0xc7)]=_,exports[_0x5e00f3(0x13c)]=u,exports[_0x5e00f3(0xa4)]=g,exports[_0x5e00f3(0x18d)]=l,exports[_0x5e00f3(0x83)]=d;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x380426=_0x1779;(function(_0x3ff714,_0x59bf90){var _0x4fbff3=_0x1779,_0x15cfb1=_0x3ff714();while(!![]){try{var _0x222c71=parseInt(_0x4fbff3(0x222))/0x1*(-parseInt(_0x4fbff3(0x218))/0x2)+parseInt(_0x4fbff3(0x220))/0x3+parseInt(_0x4fbff3(0x1e6))/0x4+parseInt(_0x4fbff3(0x217))/0x5+-parseInt(_0x4fbff3(0x1e5))/0x6*(-parseInt(_0x4fbff3(0x207))/0x7)+-parseInt(_0x4fbff3(0x21f))/0x8*(parseInt(_0x4fbff3(0x1f7))/0x9)+parseInt(_0x4fbff3(0x1f5))/0xa;if(_0x222c71===_0x59bf90)break;else _0x15cfb1['push'](_0x15cfb1['shift']());}catch(_0x33d565){_0x15cfb1['push'](_0x15cfb1['shift']());}}}(_0x3690,0x6fa40));import{ConvertDocFormulaToTextCommand as _0x2d4cac,DocFormulaDisplayTextService as _0x2da8f8,DocFormulaModel as _0x1acf10,DocFormulaService as _0x41ad49,InsertDocFormulaCommand as _0x1fbcf3,RemoveDocFormulaCommand as _0x51a7e7,ReplaceDocFormulaWithTextCommand as _0xea3076,SetDocFormulaNumberFormatCommand as _0x1f21bd,UpdateDocFormulaCommand as _0x5af9a2,isDocFormulaRange as _0x7283c7}from'@univerjs-pro/docs-formula';import{ICommandService as _0x2e7174,IResourceLoaderService as _0x49c7ff,IUniverInstanceService as _0x5a0386,Inject as _0x5e76b0,UniverInstanceType as _0x51f383}from'@univerjs/core';import{FDocument as _0x20993f,FDocumentParagraph as _0x198950,FDocumentTextRange as _0x40b1ca}from'@univerjs/docs/facade';function v(_0x32c58a,_0x3f462b){return function(_0x2cef10,_0x165048){_0x3f462b(_0x2cef10,_0x165048,_0x32c58a);};}function y(_0x15ae5e,_0x1c1583,_0x5de14d,_0x1abefd){var _0x132cd7=_0x1779,_0x24c5d0=arguments['length'],_0x5671d7=_0x24c5d0<0x3?_0x1c1583:_0x1abefd===null?_0x1abefd=Object[_0x132cd7(0x1ee)](_0x1c1583,_0x5de14d):_0x1abefd,_0x43b6e4;if(typeof Reflect==_0x132cd7(0x21d)&&typeof Reflect['decorate']=='function')_0x5671d7=Reflect[_0x132cd7(0x1ef)](_0x15ae5e,_0x1c1583,_0x5de14d,_0x1abefd);else{for(var _0x1b67a1=_0x15ae5e['length']-0x1;_0x1b67a1>=0x0;_0x1b67a1--)(_0x43b6e4=_0x15ae5e[_0x1b67a1])&&(_0x5671d7=(_0x24c5d0<0x3?_0x43b6e4(_0x5671d7):_0x24c5d0>0x3?_0x43b6e4(_0x1c1583,_0x5de14d,_0x5671d7):_0x43b6e4(_0x1c1583,_0x5de14d))||_0x5671d7);}return _0x24c5d0>0x3&&_0x5671d7&&Object[_0x132cd7(0x1eb)](_0x1c1583,_0x5de14d,_0x5671d7),_0x5671d7;}function _0x1779(_0x1e3b19,_0x7a410f){_0x1e3b19=_0x1e3b19-0x1e2;var _0x36900f=_0x3690();var _0x17795d=_0x36900f[_0x1e3b19];return _0x17795d;}let b=class{constructor(_0xdfc9bf,_0x2c805d,_0x26d84f,_0x230857,_0x487791,_0x1c1fef){var _0x2632b0=_0x1779;this[_0x2632b0(0x1e7)]=_0xdfc9bf,this['_rangeId']=_0x2c805d,this[_0x2632b0(0x228)]=_0x26d84f,this[_0x2632b0(0x1ff)]=_0x230857,this[_0x2632b0(0x21b)]=_0x487791,this['_univerInstanceService']=_0x1c1fef;}['getId'](){var _0x2bd534=_0x1779;return this[_0x2bd534(0x1fa)];}['getRange'](){var _0x569c3e=_0x1779;let _0x23cff6=this[_0x569c3e(0x1e8)]();return _0x23cff6?{'endOffset':_0x23cff6[_0x569c3e(0x1ea)]+0x1,'rangeId':_0x23cff6['rangeId'],'startOffset':_0x23cff6['startIndex']}:null;}[_0x380426(0x230)](){var _0x77c82f=_0x380426,_0x1a7575;return((_0x1a7575=this[_0x77c82f(0x1ff)][_0x77c82f(0x230)](this['_unitId'],this[_0x77c82f(0x1fa)]))==null?void 0x0:_0x1a7575[_0x77c82f(0x22a)])??'';}[_0x380426(0x223)](){var _0x39bb7e=_0x380426;return this[_0x39bb7e(0x1ff)][_0x39bb7e(0x230)](this[_0x39bb7e(0x1e7)],this[_0x39bb7e(0x1fa)])??null;}['getResult'](){var _0x1aad90=_0x380426;return this['_service'][_0x1aad90(0x209)]({'unitId':this[_0x1aad90(0x1e7)],'rangeId':this[_0x1aad90(0x1fa)]})??null;}[_0x380426(0x206)](){var _0x3253c0=_0x380426;let _0x4a7796=this[_0x3253c0(0x1f1)](),_0x472c49=this[_0x3253c0(0x223)](),_0x4699db=this[_0x3253c0(0x209)]();return!_0x4a7796||!_0x472c49||!_0x4699db?null:{..._0x4a7796,'config':_0x472c49,'formula':_0x472c49['formula'],'result':_0x4699db,'type':'formula'};}[_0x380426(0x213)](_0x1e5f7e){var _0x7ba4f2=_0x380426;return this[_0x7ba4f2(0x228)]['syncExecuteCommand'](_0x5af9a2['id'],{'externalReferences':_0x1e5f7e['externalReferences'],'formula':_0x1e5f7e[_0x7ba4f2(0x22a)],'numberFormat':_0x1e5f7e[_0x7ba4f2(0x219)],'rangeId':this[_0x7ba4f2(0x1fa)],'unitId':this[_0x7ba4f2(0x1e7)]});}[_0x380426(0x1fc)](_0x28be45){var _0x4c0177=_0x380426;return this[_0x4c0177(0x228)][_0x4c0177(0x21c)](_0x1f21bd['id'],{'numberFormat':_0x28be45,'rangeId':this[_0x4c0177(0x1fa)],'unitId':this[_0x4c0177(0x1e7)]});}[_0x380426(0x229)](){var _0xd20ecd=_0x380426;return this[_0xd20ecd(0x228)][_0xd20ecd(0x21c)](_0x51a7e7['id'],{'rangeId':this['_rangeId'],'unitId':this[_0xd20ecd(0x1e7)]});}[_0x380426(0x1ec)](_0x4ed62d){var _0x172c7e=_0x380426;return this[_0x172c7e(0x228)][_0x172c7e(0x21c)](_0xea3076['id'],{'rangeId':this[_0x172c7e(0x1fa)],'text':_0x4ed62d,'unitId':this[_0x172c7e(0x1e7)]});}[_0x380426(0x21e)](){var _0x123e58=_0x380426;return this[_0x123e58(0x228)]['syncExecuteCommand'](_0x2d4cac['id'],{'rangeId':this[_0x123e58(0x1fa)],'unitId':this[_0x123e58(0x1e7)]});}[_0x380426(0x1e8)](){var _0x5ddef5=_0x380426,_0x37260e;let _0x550636=this['_univerInstanceService']['getUnit'](this[_0x5ddef5(0x1e7)],_0x51f383[_0x5ddef5(0x20e)]);return _0x550636==null||(_0x37260e=_0x550636[_0x5ddef5(0x20b)]()[_0x5ddef5(0x221)])==null||(_0x37260e=_0x37260e[_0x5ddef5(0x210)])==null?void 0x0:_0x37260e[_0x5ddef5(0x1e4)](_0x102fc9=>_0x102fc9[_0x5ddef5(0x22f)]===this[_0x5ddef5(0x1fa)]&&_0x7283c7(_0x102fc9));}};b=y([v(0x2,_0x2e7174),v(0x3,_0x5e76b0(_0x1acf10)),v(0x4,_0x5e76b0(_0x41ad49)),v(0x5,_0x5a0386)],b);function x(_0x189ee5){'@babel/helpers - typeof';var _0x24068e=_0x380426;return x=typeof Symbol==_0x24068e(0x20c)&&typeof Symbol[_0x24068e(0x202)]==_0x24068e(0x1f4)?function(_0x293179){return typeof _0x293179;}:function(_0x5e46ee){var _0x1404c4=_0x24068e;return _0x5e46ee&&typeof Symbol=='function'&&_0x5e46ee['constructor']===Symbol&&_0x5e46ee!==Symbol[_0x1404c4(0x1f3)]?_0x1404c4(0x1f4):typeof _0x5e46ee;},x(_0x189ee5);}function S(_0x557c89,_0x4edcbc){var _0x4aae38=_0x380426;if(x(_0x557c89)!=_0x4aae38(0x21d)||!_0x557c89)return _0x557c89;var _0x38bec6=_0x557c89[Symbol['toPrimitive']];if(_0x38bec6!==void 0x0){var _0x31e576=_0x38bec6[_0x4aae38(0x214)](_0x557c89,_0x4edcbc||_0x4aae38(0x232));if(x(_0x31e576)!=_0x4aae38(0x21d))return _0x31e576;throw TypeError(_0x4aae38(0x1e3));}return(_0x4edcbc===_0x4aae38(0x22b)?String:Number)(_0x557c89);}function C(_0xc87f5c){var _0x2a72ad=_0x380426,_0x325ec9=S(_0xc87f5c,_0x2a72ad(0x22b));return x(_0x325ec9)==_0x2a72ad(0x1f4)?_0x325ec9:_0x325ec9+'';}function w(_0xbe310a,_0xbc8d3a,_0xf6bf5c){var _0x569efa=_0x380426;return(_0xbc8d3a=C(_0xbc8d3a))in _0xbe310a?Object[_0x569efa(0x1eb)](_0xbe310a,_0xbc8d3a,{'value':_0xf6bf5c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xbe310a[_0xbc8d3a]=_0xf6bf5c,_0xbe310a;}var T=class extends _0x20993f{constructor(..._0x2cb71f){var _0x4bc6a8=_0x380426;super(..._0x2cb71f),w(this,_0x4bc6a8(0x215),void 0x0),w(this,'_docsFormulaDisplayTextService',void 0x0),w(this,_0x4bc6a8(0x216),void 0x0),w(this,_0x4bc6a8(0x1fd),void 0x0);}[_0x380426(0x1f2)](_0x5ed23c){var _0x450af9=_0x380426;this[_0x450af9(0x215)]=_0x5ed23c['get'](_0x2e7174),this['_docsFormulaDisplayTextService']=_0x5ed23c[_0x450af9(0x204)](_0x2da8f8),this[_0x450af9(0x216)]=_0x5ed23c[_0x450af9(0x204)](_0x1acf10),this[_0x450af9(0x1fd)]=_0x5ed23c[_0x450af9(0x204)](_0x49c7ff);}[_0x380426(0x227)](){var _0x411550=_0x380426;return this[_0x411550(0x21a)]()['map'](_0xe1a6fb=>this[_0x411550(0x22d)](_0xe1a6fb['rangeId']));}[_0x380426(0x230)](_0x1a5076){var _0x486112=_0x380426;return this[_0x486112(0x21a)]()[_0x486112(0x1fe)](_0x1394a9=>_0x1394a9[_0x486112(0x22f)]===_0x1a5076)?this[_0x486112(0x22d)](_0x1a5076):null;}[_0x380426(0x1e2)](_0x308aae){var _0x1f36d6=_0x380426;let _0x1e64c8=this['_getCompleteRanges']()[_0x1f36d6(0x1e4)](_0xedbce0=>_0xedbce0[_0x1f36d6(0x1f9)]<=_0x308aae&&_0x308aae<=_0xedbce0[_0x1f36d6(0x1ea)]);return _0x1e64c8?this[_0x1f36d6(0x22d)](_0x1e64c8[_0x1f36d6(0x22f)]):null;}[_0x380426(0x20a)](){var _0x47e676=_0x380426;let _0x29056a=this[_0x47e676(0x1fd)][_0x47e676(0x203)](this['id']);if(!_0x29056a)throw Error(_0x47e676(0x22c)+this['id']+_0x47e676(0x211));return this[_0x47e676(0x1fb)][_0x47e676(0x22e)](_0x29056a);}[_0x380426(0x224)](_0x1c9733){var _0x1dd8c2=_0x380426;return this[_0x1dd8c2(0x205)]({'externalReferences':_0x1c9733[_0x1dd8c2(0x1f0)],'formula':_0x1c9733[_0x1dd8c2(0x22a)],'numberFormat':_0x1c9733[_0x1dd8c2(0x219)],'target':{'type':_0x1dd8c2(0x225),'startOffset':_0x1c9733[_0x1dd8c2(0x233)],'endOffset':_0x1c9733[_0x1dd8c2(0x200)]},'unitId':this[_0x1dd8c2(0x212)]()});}[_0x380426(0x205)](_0x5e3338){var _0x4fa28c=_0x380426;let _0x420670=this[_0x4fa28c(0x215)][_0x4fa28c(0x21c)](_0x1fbcf3['id'],_0x5e3338);return _0x420670?this[_0x4fa28c(0x22d)](_0x420670[_0x4fa28c(0x22f)]):null;}[_0x380426(0x21a)](){var _0x4cfd8b=_0x380426,_0x2b92b8;let _0x424000=this[_0x4cfd8b(0x216)][_0x4cfd8b(0x227)](this[_0x4cfd8b(0x212)]());return((_0x2b92b8=this[_0x4cfd8b(0x1e9)]('')['customRanges'])==null?void 0x0:_0x2b92b8[_0x4cfd8b(0x20f)](_0x3bca73=>_0x7283c7(_0x3bca73)&&_0x424000[_0x3bca73['rangeId']]!=null))??[];}[_0x380426(0x22d)](_0x35abbc){var _0x37b7e6=_0x380426;return this[_0x37b7e6(0x20d)][_0x37b7e6(0x226)](b,this[_0x37b7e6(0x212)](),_0x35abbc);}};_0x20993f['extend'](T);var E=class extends _0x198950{constructor(..._0x30551c){super(..._0x30551c),w(this,'_docsFormulaCommandService',void 0x0);}[_0x380426(0x1f2)](_0x1f8aef){var _0x149f88=_0x380426;this[_0x149f88(0x215)]=_0x1f8aef[_0x149f88(0x204)](_0x2e7174);}[_0x380426(0x224)](_0x558480,_0x2564bb,_0x732e2a={}){var _0x4265b5=_0x380426;return this[_0x4265b5(0x205)](_0x558480,_0x2564bb,_0x732e2a);}[_0x380426(0x1ed)](_0x2ff3c2,_0x2f5470={}){var _0x576114=_0x380426;return this['_insert'](_0x576114(0x1f6),_0x2ff3c2,_0x2f5470);}[_0x380426(0x205)](_0x3f8cbf,_0x3078a3,_0x89a0ee){var _0x1af0cf=_0x380426;if(this[_0x1af0cf(0x231)]())return null;let _0x5583fb={'externalReferences':_0x89a0ee[_0x1af0cf(0x1f0)],'formula':_0x3078a3,'numberFormat':_0x89a0ee['numberFormat'],'target':{'type':'paragraph','paragraphId':this['getId'](),'position':_0x3f8cbf},'unitId':this[_0x1af0cf(0x1f8)][_0x1af0cf(0x212)]()},_0x3abc08=this['_docsFormulaCommandService'][_0x1af0cf(0x21c)](_0x1fbcf3['id'],_0x5583fb);return _0x3abc08?this[_0x1af0cf(0x20d)][_0x1af0cf(0x226)](b,this[_0x1af0cf(0x1f8)][_0x1af0cf(0x212)](),_0x3abc08['rangeId']):null;}};_0x198950[_0x380426(0x208)](E);var D=class extends _0x40b1ca{constructor(..._0x4a5780){var _0x1b1c48=_0x380426;super(..._0x4a5780),w(this,_0x1b1c48(0x215),void 0x0);}['_initialize'](_0x4a92fd){var _0x3fcfbc=_0x380426;this[_0x3fcfbc(0x215)]=_0x4a92fd[_0x3fcfbc(0x204)](_0x2e7174);}[_0x380426(0x201)](_0x5d9edd,_0x158d2b={}){var _0x40b85a=_0x380426;let {endOffset:_0x19120d,segmentId:_0x35bd15,startOffset:_0x472cc8}=this[_0x40b85a(0x1f1)]();return _0x35bd15?null:this[_0x40b85a(0x205)](_0x472cc8,_0x19120d,_0x5d9edd,_0x158d2b);}[_0x380426(0x205)](_0x1e25df,_0x1d9770,_0x2f53ce,_0x1a19f0){var _0x4f4c9c=_0x380426;let _0x22da60={'externalReferences':_0x1a19f0['externalReferences'],'formula':_0x2f53ce,'numberFormat':_0x1a19f0[_0x4f4c9c(0x219)],'target':{'type':_0x4f4c9c(0x225),'startOffset':_0x1e25df,'endOffset':_0x1d9770},'unitId':this[_0x4f4c9c(0x1f8)][_0x4f4c9c(0x212)]()},_0x3c77b3=this[_0x4f4c9c(0x215)][_0x4f4c9c(0x21c)](_0x1fbcf3['id'],_0x22da60);return _0x3c77b3?this[_0x4f4c9c(0x20d)][_0x4f4c9c(0x226)](b,this[_0x4f4c9c(0x1f8)]['getId'](),_0x3c77b3[_0x4f4c9c(0x22f)]):null;}};_0x40b1ca[_0x380426(0x208)](D);function _0x3690(){var _0x528ff1=['getSegmentId','default','startOffset','getFormulaAt','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','find','41880vYJNtF','1986180vsiWYv','_unitId','_getCustomRange','getBody','endIndex','defineProperty','replaceWithText','appendFormula','getOwnPropertyDescriptor','decorate','externalReferences','getRange','_initialize','prototype','symbol','1073610SSrTeH','end','9awmCtH','_document','startIndex','_rangeId','_docsFormulaDisplayTextService','setNumberFormat','_docsFormulaResourceLoaderService','some','_model','endOffset','replaceWithFormula','iterator','saveUnit','get','_insert','describe','231eFWbCI','extend','getResult','saveFormulaDisplayTextSnapshot','getSnapshot','function','_injector','UNIVER_DOC','filter','customRanges','\x20could\x20not\x20be\x20serialized.','getId','update','call','_docsFormulaCommandService','_docsFormulaModel','85840qRKzTm','6URfrTx','numberFormat','_getCompleteRanges','_service','syncExecuteCommand','object','convertToText','3028352sVleLr','2192547eIgmwZ','body','248813bEAXYH','getConfig','insertFormula','range','createInstance','getFormulas','_commandService','remove','formula','string','Document\x20','_createFormula','degradeDocumentData','rangeId','getFormula'];_0x3690=function(){return _0x528ff1;};return _0x3690();}export{b as FDocumentFormula};
|
|
1
|
+
var _0x38962f=_0x1e42;(function(_0x2c8896,_0x2c7a38){var _0x16d654=_0x1e42,_0x1421e9=_0x2c8896();while(!![]){try{var _0x479c61=parseInt(_0x16d654(0x13e))/0x1*(-parseInt(_0x16d654(0x179))/0x2)+-parseInt(_0x16d654(0x162))/0x3+-parseInt(_0x16d654(0x17f))/0x4+-parseInt(_0x16d654(0x149))/0x5+-parseInt(_0x16d654(0x174))/0x6+-parseInt(_0x16d654(0x157))/0x7+parseInt(_0x16d654(0x170))/0x8;if(_0x479c61===_0x2c7a38)break;else _0x1421e9['push'](_0x1421e9['shift']());}catch(_0x1616e1){_0x1421e9['push'](_0x1421e9['shift']());}}}(_0x26ea,0x60474));import{ConvertDocFormulaToTextCommand as _0x5630ac,DocFormulaDisplayTextService as _0x503b3d,DocFormulaModel as _0x430368,DocFormulaService as _0x5e35b9,InsertDocFormulaCommand as _0x3db5b8,RemoveDocFormulaCommand as _0x5c8158,ReplaceDocFormulaWithTextCommand as _0x169f0a,SetDocFormulaNumberFormatCommand as _0x5d2be8,UpdateDocFormulaCommand as _0x9c564d,isDocFormulaRange as _0x2ec456}from'@univerjs-pro/docs-formula';import{ICommandService as _0x15d819,IResourceLoaderService as _0x5aabfe,IUniverInstanceService as _0x232552,Inject as _0x1a7be6,UniverInstanceType as _0x42414d}from'@univerjs/core';import{FDocument as _0x55da0f,FDocumentParagraph as _0x589793,FDocumentTextRange as _0x2362be}from'@univerjs/docs/facade';function v(_0x51931b,_0x390995){return function(_0x3c3122,_0x784975){_0x390995(_0x3c3122,_0x784975,_0x51931b);};}function y(_0x5d8d87,_0x84954,_0x233c77,_0x171d26){var _0x1ab2c5=_0x1e42,_0x2da630=arguments[_0x1ab2c5(0x151)],_0x145800=_0x2da630<0x3?_0x84954:_0x171d26===null?_0x171d26=Object[_0x1ab2c5(0x17e)](_0x84954,_0x233c77):_0x171d26,_0x28b326;if(typeof Reflect==_0x1ab2c5(0x13f)&&typeof Reflect['decorate']==_0x1ab2c5(0x154))_0x145800=Reflect['decorate'](_0x5d8d87,_0x84954,_0x233c77,_0x171d26);else{for(var _0x521019=_0x5d8d87[_0x1ab2c5(0x151)]-0x1;_0x521019>=0x0;_0x521019--)(_0x28b326=_0x5d8d87[_0x521019])&&(_0x145800=(_0x2da630<0x3?_0x28b326(_0x145800):_0x2da630>0x3?_0x28b326(_0x84954,_0x233c77,_0x145800):_0x28b326(_0x84954,_0x233c77))||_0x145800);}return _0x2da630>0x3&&_0x145800&&Object[_0x1ab2c5(0x15c)](_0x84954,_0x233c77,_0x145800),_0x145800;}let b=class{constructor(_0x2e699f,_0x54f53d,_0x37184e,_0x10db18,_0x29dd3a,_0x2275b8){var _0x375ff4=_0x1e42;this[_0x375ff4(0x140)]=_0x2e699f,this[_0x375ff4(0x148)]=_0x54f53d,this['_commandService']=_0x37184e,this[_0x375ff4(0x177)]=_0x10db18,this[_0x375ff4(0x141)]=_0x29dd3a,this[_0x375ff4(0x14a)]=_0x2275b8;}['getId'](){var _0x443ee3=_0x1e42;return this[_0x443ee3(0x148)];}[_0x38962f(0x13c)](){var _0x54b65a=_0x38962f;let _0x2a72bf=this[_0x54b65a(0x17c)]();return _0x2a72bf?{'endOffset':_0x2a72bf[_0x54b65a(0x180)]+0x1,'rangeId':_0x2a72bf[_0x54b65a(0x13b)],'startOffset':_0x2a72bf['startIndex']}:null;}[_0x38962f(0x14e)](){var _0xe44337=_0x38962f,_0xaea5db;return((_0xaea5db=this['_model']['getFormula'](this[_0xe44337(0x140)],this[_0xe44337(0x148)]))==null?void 0x0:_0xaea5db[_0xe44337(0x15e)])??'';}[_0x38962f(0x181)](){var _0x152406=_0x38962f;return this['_model'][_0x152406(0x14e)](this[_0x152406(0x140)],this[_0x152406(0x148)])??null;}[_0x38962f(0x144)](){var _0x7d072f=_0x38962f;return this[_0x7d072f(0x141)][_0x7d072f(0x144)]({'unitId':this[_0x7d072f(0x140)],'rangeId':this[_0x7d072f(0x148)]})??null;}[_0x38962f(0x178)](){var _0x3cdcbb=_0x38962f;let _0x592a75=this['getRange'](),_0x4c04d2=this[_0x3cdcbb(0x181)](),_0x55fc9c=this[_0x3cdcbb(0x144)]();return!_0x592a75||!_0x4c04d2||!_0x55fc9c?null:{..._0x592a75,'config':_0x4c04d2,'formula':_0x4c04d2[_0x3cdcbb(0x15e)],'result':_0x55fc9c,'type':_0x3cdcbb(0x15e)};}['update'](_0x42774d){var _0x46f641=_0x38962f;return this[_0x46f641(0x188)][_0x46f641(0x187)](_0x9c564d['id'],{'externalReferences':_0x42774d[_0x46f641(0x182)],'formula':_0x42774d[_0x46f641(0x15e)],'numberFormat':_0x42774d[_0x46f641(0x155)],'rangeId':this[_0x46f641(0x148)],'unitId':this[_0x46f641(0x140)]});}[_0x38962f(0x163)](_0xc855d2){var _0xab8155=_0x38962f;return this['_commandService'][_0xab8155(0x187)](_0x5d2be8['id'],{'numberFormat':_0xc855d2,'rangeId':this[_0xab8155(0x148)],'unitId':this[_0xab8155(0x140)]});}[_0x38962f(0x16c)](){var _0x38f81d=_0x38962f;return this[_0x38f81d(0x188)][_0x38f81d(0x187)](_0x5c8158['id'],{'rangeId':this[_0x38f81d(0x148)],'unitId':this[_0x38f81d(0x140)]});}[_0x38962f(0x16f)](_0x4258ae){var _0x160483=_0x38962f;return this['_commandService'][_0x160483(0x187)](_0x169f0a['id'],{'rangeId':this[_0x160483(0x148)],'text':_0x4258ae,'unitId':this[_0x160483(0x140)]});}['convertToText'](){var _0x38891b=_0x38962f;return this['_commandService'][_0x38891b(0x187)](_0x5630ac['id'],{'rangeId':this[_0x38891b(0x148)],'unitId':this[_0x38891b(0x140)]});}[_0x38962f(0x17c)](){var _0x2c6d3b=_0x38962f,_0xdfa00f;let _0x4bd2cb=this[_0x2c6d3b(0x14a)][_0x2c6d3b(0x183)](this[_0x2c6d3b(0x140)],_0x42414d[_0x2c6d3b(0x15b)]);return _0x4bd2cb==null||(_0xdfa00f=_0x4bd2cb[_0x2c6d3b(0x185)]()[_0x2c6d3b(0x143)])==null||(_0xdfa00f=_0xdfa00f[_0x2c6d3b(0x147)])==null?void 0x0:_0xdfa00f['find'](_0x1f3d17=>_0x1f3d17[_0x2c6d3b(0x13b)]===this[_0x2c6d3b(0x148)]&&_0x2ec456(_0x1f3d17));}};b=y([v(0x2,_0x15d819),v(0x3,_0x1a7be6(_0x430368)),v(0x4,_0x1a7be6(_0x5e35b9)),v(0x5,_0x232552)],b);function x(_0x25b11f){'@babel/helpers - typeof';var _0x1284ca=_0x38962f;return x=typeof Symbol==_0x1284ca(0x154)&&typeof Symbol['iterator']==_0x1284ca(0x145)?function(_0x383255){return typeof _0x383255;}:function(_0x5777b2){var _0x36c2c7=_0x1284ca;return _0x5777b2&&typeof Symbol==_0x36c2c7(0x154)&&_0x5777b2[_0x36c2c7(0x14c)]===Symbol&&_0x5777b2!==Symbol['prototype']?_0x36c2c7(0x145):typeof _0x5777b2;},x(_0x25b11f);}function S(_0x5d6807,_0x337bc5){var _0x5aa34c=_0x38962f;if(x(_0x5d6807)!=_0x5aa34c(0x13f)||!_0x5d6807)return _0x5d6807;var _0x4554dc=_0x5d6807[Symbol[_0x5aa34c(0x16d)]];if(_0x4554dc!==void 0x0){var _0x7dfebe=_0x4554dc[_0x5aa34c(0x176)](_0x5d6807,_0x337bc5||_0x5aa34c(0x13d));if(x(_0x7dfebe)!=_0x5aa34c(0x13f))return _0x7dfebe;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x337bc5===_0x5aa34c(0x165)?String:Number)(_0x5d6807);}function C(_0x1bb409){var _0x536077=_0x38962f,_0x3e5984=S(_0x1bb409,_0x536077(0x165));return x(_0x3e5984)==_0x536077(0x145)?_0x3e5984:_0x3e5984+'';}function _0x26ea(){var _0x59e4f6=['getRange','default','1uBRExi','object','_unitId','_service','filter','body','getResult','symbol','_docsFormulaDisplayTextService','customRanges','_rangeId','2202725UfrVqz','_univerInstanceService','get','constructor','insertFormula','getFormula','getSegmentId','startOffset','length','_createFormula','replaceWithFormula','function','numberFormat','_docsFormulaModel','2823555ubevcQ','end','degradeDocumentData','saveUnit','UNIVER_DOC','defineProperty','saveFormulaDisplayTextSnapshot','formula','_initialize','_document','getFormulaAt','714615dAmohY','setNumberFormat','getBody','string','extend','some','_docsFormulaCommandService','Document\x20','map','_injector','remove','toPrimitive','_insert','replaceWithText','15752392YZNJmf','range','getId','_docsFormulaResourceLoaderService','2610960HkWkxC','find','call','_model','describe','29158CnCvee','appendFormula','createInstance','_getCustomRange','paragraph','getOwnPropertyDescriptor','171356SanboD','endIndex','getConfig','externalReferences','getUnit','_getCompleteRanges','getSnapshot','\x20could\x20not\x20be\x20serialized.','syncExecuteCommand','_commandService','rangeId'];_0x26ea=function(){return _0x59e4f6;};return _0x26ea();}function w(_0x5458d5,_0x4d8686,_0x5880d0){var _0x3f95ca=_0x38962f;return(_0x4d8686=C(_0x4d8686))in _0x5458d5?Object[_0x3f95ca(0x15c)](_0x5458d5,_0x4d8686,{'value':_0x5880d0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5458d5[_0x4d8686]=_0x5880d0,_0x5458d5;}function _0x1e42(_0x16a32e,_0x524e8f){_0x16a32e=_0x16a32e-0x13b;var _0x26eac0=_0x26ea();var _0x1e4254=_0x26eac0[_0x16a32e];return _0x1e4254;}var T=class extends _0x55da0f{constructor(..._0x42340d){var _0x1ad76f=_0x38962f;super(..._0x42340d),w(this,_0x1ad76f(0x168),void 0x0),w(this,_0x1ad76f(0x146),void 0x0),w(this,_0x1ad76f(0x156),void 0x0),w(this,_0x1ad76f(0x173),void 0x0);}[_0x38962f(0x15f)](_0x1b2c89){var _0x53a655=_0x38962f;this[_0x53a655(0x168)]=_0x1b2c89[_0x53a655(0x14b)](_0x15d819),this[_0x53a655(0x146)]=_0x1b2c89[_0x53a655(0x14b)](_0x503b3d),this[_0x53a655(0x156)]=_0x1b2c89['get'](_0x430368),this[_0x53a655(0x173)]=_0x1b2c89['get'](_0x5aabfe);}['getFormulas'](){var _0x1cb4aa=_0x38962f;return this['_getCompleteRanges']()[_0x1cb4aa(0x16a)](_0x930586=>this[_0x1cb4aa(0x152)](_0x930586['rangeId']));}[_0x38962f(0x14e)](_0x2bd645){var _0x59d242=_0x38962f;return this[_0x59d242(0x184)]()[_0x59d242(0x167)](_0x5a297a=>_0x5a297a[_0x59d242(0x13b)]===_0x2bd645)?this['_createFormula'](_0x2bd645):null;}[_0x38962f(0x161)](_0x4fe1b7){var _0x4d38c3=_0x38962f;let _0x124282=this['_getCompleteRanges']()[_0x4d38c3(0x175)](_0x2850b9=>_0x2850b9['startIndex']<=_0x4fe1b7&&_0x4fe1b7<=_0x2850b9[_0x4d38c3(0x180)]);return _0x124282?this['_createFormula'](_0x124282[_0x4d38c3(0x13b)]):null;}[_0x38962f(0x15d)](){var _0x2d7c7a=_0x38962f;let _0x4c2f44=this[_0x2d7c7a(0x173)][_0x2d7c7a(0x15a)](this['id']);if(!_0x4c2f44)throw Error(_0x2d7c7a(0x169)+this['id']+_0x2d7c7a(0x186));return this[_0x2d7c7a(0x146)][_0x2d7c7a(0x159)](_0x4c2f44);}[_0x38962f(0x14d)](_0x19d9e3){var _0x5bb829=_0x38962f;return this['_insert']({'externalReferences':_0x19d9e3[_0x5bb829(0x182)],'formula':_0x19d9e3[_0x5bb829(0x15e)],'numberFormat':_0x19d9e3['numberFormat'],'target':{'type':_0x5bb829(0x171),'startOffset':_0x19d9e3[_0x5bb829(0x150)],'endOffset':_0x19d9e3['endOffset']},'unitId':this[_0x5bb829(0x172)]()});}[_0x38962f(0x16e)](_0x467f44){var _0x1a93a2=_0x38962f;let _0x4a5fee=this[_0x1a93a2(0x168)]['syncExecuteCommand'](_0x3db5b8['id'],_0x467f44);return _0x4a5fee?this['_createFormula'](_0x4a5fee[_0x1a93a2(0x13b)]):null;}[_0x38962f(0x184)](){var _0x374308=_0x38962f,_0x5b9374;let _0x1a0f54=this['_docsFormulaModel']['getFormulas'](this[_0x374308(0x172)]());return((_0x5b9374=this[_0x374308(0x164)]('')['customRanges'])==null?void 0x0:_0x5b9374[_0x374308(0x142)](_0xef2a09=>_0x2ec456(_0xef2a09)&&_0x1a0f54[_0xef2a09[_0x374308(0x13b)]]!=null))??[];}[_0x38962f(0x152)](_0x4c4c03){var _0xe9b90c=_0x38962f;return this[_0xe9b90c(0x16b)]['createInstance'](b,this[_0xe9b90c(0x172)](),_0x4c4c03);}};_0x55da0f[_0x38962f(0x166)](T);var E=class extends _0x589793{constructor(..._0x4ab080){var _0x378f2e=_0x38962f;super(..._0x4ab080),w(this,_0x378f2e(0x168),void 0x0);}[_0x38962f(0x15f)](_0x5dedec){var _0x4d2e8d=_0x38962f;this[_0x4d2e8d(0x168)]=_0x5dedec['get'](_0x15d819);}[_0x38962f(0x14d)](_0xc7a121,_0x1ba6a5,_0x39db6e={}){return this['_insert'](_0xc7a121,_0x1ba6a5,_0x39db6e);}[_0x38962f(0x17a)](_0x1a7892,_0xeb9c7f={}){var _0x592027=_0x38962f;return this[_0x592027(0x16e)](_0x592027(0x158),_0x1a7892,_0xeb9c7f);}[_0x38962f(0x16e)](_0x58b7ff,_0x3fbe01,_0x1316dc){var _0x4c5ac8=_0x38962f;if(this[_0x4c5ac8(0x14f)]())return null;let _0x44eaaf={'externalReferences':_0x1316dc[_0x4c5ac8(0x182)],'formula':_0x3fbe01,'numberFormat':_0x1316dc[_0x4c5ac8(0x155)],'target':{'type':_0x4c5ac8(0x17d),'paragraphId':this[_0x4c5ac8(0x172)](),'position':_0x58b7ff},'unitId':this[_0x4c5ac8(0x160)][_0x4c5ac8(0x172)]()},_0x45c04f=this['_docsFormulaCommandService'][_0x4c5ac8(0x187)](_0x3db5b8['id'],_0x44eaaf);return _0x45c04f?this[_0x4c5ac8(0x16b)][_0x4c5ac8(0x17b)](b,this[_0x4c5ac8(0x160)]['getId'](),_0x45c04f[_0x4c5ac8(0x13b)]):null;}};_0x589793[_0x38962f(0x166)](E);var D=class extends _0x2362be{constructor(..._0x47fcd8){super(..._0x47fcd8),w(this,'_docsFormulaCommandService',void 0x0);}[_0x38962f(0x15f)](_0x5d02d0){var _0x21d43c=_0x38962f;this[_0x21d43c(0x168)]=_0x5d02d0[_0x21d43c(0x14b)](_0x15d819);}[_0x38962f(0x153)](_0x26a1a8,_0x1385d4={}){var _0x40dba9=_0x38962f;let {endOffset:_0x2ea00b,segmentId:_0x106598,startOffset:_0x6d55a9}=this[_0x40dba9(0x13c)]();return _0x106598?null:this[_0x40dba9(0x16e)](_0x6d55a9,_0x2ea00b,_0x26a1a8,_0x1385d4);}[_0x38962f(0x16e)](_0x1f1c0c,_0x34293c,_0x49ce71,_0x5d9d1f){var _0x181709=_0x38962f;let _0xa89452={'externalReferences':_0x5d9d1f[_0x181709(0x182)],'formula':_0x49ce71,'numberFormat':_0x5d9d1f[_0x181709(0x155)],'target':{'type':_0x181709(0x171),'startOffset':_0x1f1c0c,'endOffset':_0x34293c},'unitId':this[_0x181709(0x160)][_0x181709(0x172)]()},_0x4ddd00=this['_docsFormulaCommandService'][_0x181709(0x187)](_0x3db5b8['id'],_0xa89452);return _0x4ddd00?this[_0x181709(0x16b)][_0x181709(0x17b)](b,this[_0x181709(0x160)]['getId'](),_0x4ddd00[_0x181709(0x13b)]):null;}};_0x2362be[_0x38962f(0x166)](D);export{b as FDocumentFormula};
|