@univerjs-pro/sheets-mcp 0.15.2-insiders.20260119-edc718c → 0.15.2-insiders.20260122-b1556b1
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/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x18eb0a=_0x2925;(function(_0x4fa806,_0x3d4c73){const _0x133754=_0x2925,_0x4a7353=_0x4fa806();while(!![]){try{const _0x385801=parseInt(_0x133754(0x174))/0x1*(-parseInt(_0x133754(0x161))/0x2)+-parseInt(_0x133754(0x175))/0x3*(parseInt(_0x133754(0x170))/0x4)+parseInt(_0x133754(0x164))/0x5*(-parseInt(_0x133754(0x182))/0x6)+-parseInt(_0x133754(0x179))/0x7+parseInt(_0x133754(0x163))/0x8*(parseInt(_0x133754(0x16b))/0x9)+-parseInt(_0x133754(0x16a))/0xa+parseInt(_0x133754(0x177))/0xb;if(_0x385801===_0x3d4c73)break;else _0x4a7353['push'](_0x4a7353['shift']());}catch(_0x2e8914){_0x4a7353['push'](_0x4a7353['shift']());}}}(_0x531a,0xcbcd8));function _0x2925(_0x317b3e,_0x1f0fcb){_0x317b3e=_0x317b3e-0x160;const _0x531a1a=_0x531a();let _0x2925fe=_0x531a1a[_0x317b3e];return _0x2925fe;}import{FUniver as _0x559e68}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';function _0x531a(){const _0x4fb761=['_injector','getFormulaUsages','getSizeUsages','_workbook','550340pgoLYY','getSizeUsagesAsA1','8QMfzSr','468145HZbwZL','getAllSizeUsages','length','moveFormulaRefOffset','getAllFormulaError','getAllDataValidationErrorAsync','11836290NJZyaa','14017869hoXYrs','toA1','getCellDataGrid','getAllFormulaUsages','firstOccurrence','20EhYbgL','updateConfig','getMaxRows','_worksheet','2CsCoRS','123753VitACt','endRow','32227206patCzU','map','9364397JEKmyj','getFormulaUsagesAsA1','extend','startColumn','endColumn','push','getStyleUsages','startRow','get','24MUzegC','getRange','getMaxColumns','filledRanges','getStyleUsagesAsA1','getLintErrors','getActiveWorkbook','formula','getCellRaw','getAllStyleUsages'];_0x531a=function(){return _0x4fb761;};return _0x531a();}import{FWorkbook as _0x1761e6,FWorksheet as _0x18f10b,FRange as _0x3fae0f}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x311b10,formulaToA1 as _0x3cf370,IStyleUsageAnalyzer as _0x44aea4,styleToA1 as _0x3476ba,ISizeUsageAnalyzer as _0x1baa03}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x53c1e1}from'@univerjs/core';class z extends _0x559e68{async[_0x18eb0a(0x187)](){const _0x5e2052=_0x18eb0a;return this[_0x5e2052(0x188)]()[_0x5e2052(0x187)]();}}_0x559e68[_0x18eb0a(0x17b)](z);class _ extends _0x1761e6{async[_0x18eb0a(0x187)](){const _0x3795b0=_0x18eb0a,_0x420f3e=this[_0x3795b0(0x168)](),_0x32fac5=await this[_0x3795b0(0x169)]();return{'formulaErrors':_0x420f3e,'dataValidationErrors':_0x32fac5};}}_0x1761e6[_0x18eb0a(0x17b)](_);class x extends _0x18f10b{async[_0x18eb0a(0x18d)](){const _0x16aee1=_0x18eb0a,_0x5caf6f=this[_0x16aee1(0x18c)]['get'](_0x311b10),_0x455a92=this[_0x16aee1(0x183)](0x0,0x0,this[_0x16aee1(0x172)](),this[_0x16aee1(0x184)]())['getCellDataGrid']();return await _0x5caf6f[_0x16aee1(0x16e)](_0x455a92);}async['getFormulaUsagesAsA1'](){const _0xd83901=_0x18eb0a;return(await this['getFormulaUsages']())[_0xd83901(0x178)](_0x3cf370);}[_0x18eb0a(0x17f)](_0x4ab28d){const _0x367b62=_0x18eb0a,_0x204920=this[_0x367b62(0x18c)][_0x367b62(0x181)](_0x44aea4),_0x23f736=this[_0x367b62(0x183)](0x0,0x0,this[_0x367b62(0x172)](),this['getMaxColumns']())[_0x367b62(0x16d)]();return _0x204920[_0x367b62(0x171)](_0x4ab28d),_0x204920[_0x367b62(0x18b)](_0x23f736,this[_0x367b62(0x160)],this[_0x367b62(0x173)]);}[_0x18eb0a(0x186)](_0x38937d){const _0x5afe41=_0x18eb0a;return this[_0x5afe41(0x17f)](_0x38937d)[_0x5afe41(0x178)](_0x3476ba);}[_0x18eb0a(0x18e)](_0x319320){const _0x227818=_0x18eb0a,_0x4abf3a=this[_0x227818(0x18c)]['get'](_0x1baa03);return _0x4abf3a[_0x227818(0x171)](_0x319320),_0x4abf3a[_0x227818(0x165)](this[_0x227818(0x173)]);}[_0x18eb0a(0x162)](_0x368841){const _0x4b6db2=_0x18eb0a,_0x5730b6=this[_0x4b6db2(0x18c)][_0x4b6db2(0x181)](_0x1baa03);_0x5730b6['updateConfig'](_0x368841);const _0x17541e=_0x5730b6['getAllSizeUsages'](this[_0x4b6db2(0x173)]);return _0x5730b6[_0x4b6db2(0x16c)](_0x17541e);}}_0x18f10b[_0x18eb0a(0x17b)](x);class M extends _0x3fae0f{async[_0x18eb0a(0x18d)](){const _0x40e3db=_0x18eb0a,_0x92e40a=this[_0x40e3db(0x18c)][_0x40e3db(0x181)](_0x311b10),_0x300dcf=(({startRow:_0x5e0459,endRow:_0x369d5d,startColumn:_0x1fd6ad,endColumn:_0x166e94})=>{const _0x26eebb=_0x40e3db,_0x6587c8=[];for(let _0x24109c=_0x5e0459;_0x24109c<=_0x369d5d;_0x24109c++){const _0x39cfcc=[];for(let _0x17a6b7=_0x1fd6ad;_0x17a6b7<=_0x166e94;_0x17a6b7++)_0x39cfcc[_0x26eebb(0x17e)](this['_worksheet'][_0x26eebb(0x18a)](_0x24109c,_0x17a6b7));_0x6587c8[_0x26eebb(0x17e)](_0x39cfcc);}return _0x6587c8;})({'startRow':0x0,'endRow':this[_0x40e3db(0x173)][_0x40e3db(0x172)](),'startColumn':0x0,'endColumn':this[_0x40e3db(0x173)]['getMaxColumns']()}),_0x41839e=await _0x92e40a['getAllFormulaUsages'](_0x300dcf),_0x1a74c7=this[_0x40e3db(0x183)](),_0x3f9dfd=[];for(let _0xb871df=0x0;_0xb871df<_0x41839e['length'];_0xb871df++){const _0x1313ca=_0x41839e[_0xb871df],_0x34041e=_0x1313ca['filledRanges'],_0x513809=[];for(let _0x33d832=0x0;_0x33d832<_0x34041e[_0x40e3db(0x166)];_0x33d832++){const _0x2316f4=_0x34041e[_0x33d832],_0x2bc2fd=_0x53c1e1(_0x2316f4,_0x1a74c7);_0x2bc2fd&&_0x513809[_0x40e3db(0x17e)](_0x2bc2fd);}if(_0x513809['length']>0x0){if(_0x1313ca['filledRanges']=_0x513809,!(_0x1313ca[_0x40e3db(0x16f)]['startRow']>=_0x1a74c7['startRow']&&_0x1313ca[_0x40e3db(0x16f)]['startRow']<=_0x1a74c7[_0x40e3db(0x176)]&&_0x1313ca['firstOccurrence'][_0x40e3db(0x17c)]>=_0x1a74c7[_0x40e3db(0x17c)]&&_0x1313ca[_0x40e3db(0x16f)][_0x40e3db(0x17c)]<=_0x1a74c7[_0x40e3db(0x17d)])){const _0x484cba=_0x513809[0x0],_0x22b27f=_0x484cba[_0x40e3db(0x180)]-_0x1313ca['firstOccurrence'][_0x40e3db(0x180)],_0x565006=_0x484cba[_0x40e3db(0x17c)]-_0x1313ca[_0x40e3db(0x16f)][_0x40e3db(0x17c)];_0x1313ca[_0x40e3db(0x189)]=await _0x92e40a[_0x40e3db(0x167)](_0x1313ca['formula'],_0x565006,_0x22b27f),_0x1313ca[_0x40e3db(0x16f)]={'startRow':_0x484cba[_0x40e3db(0x180)],'endRow':_0x484cba[_0x40e3db(0x180)],'startColumn':_0x484cba[_0x40e3db(0x17c)],'endColumn':_0x484cba[_0x40e3db(0x17c)]};}_0x3f9dfd[_0x40e3db(0x17e)](_0x1313ca);}}return _0x3f9dfd;}async[_0x18eb0a(0x17a)](){const _0x18e5a2=_0x18eb0a;return(await this['getFormulaUsages']())[_0x18e5a2(0x178)](_0x3cf370);}['getStyleUsages'](_0x12ca29){const _0x311f12=_0x18eb0a,_0x1cf3f9=this[_0x311f12(0x18c)][_0x311f12(0x181)](_0x44aea4),_0x1f4b7f=(({startRow:_0x588e18,endRow:_0x1e64fd,startColumn:_0x3a97b1,endColumn:_0x2bd47d})=>{const _0x319b16=_0x311f12,_0x221836=[];for(let _0x445a44=_0x588e18;_0x445a44<=_0x1e64fd;_0x445a44++){const _0x54a28b=[];for(let _0x18e463=_0x3a97b1;_0x18e463<=_0x2bd47d;_0x18e463++)_0x54a28b[_0x319b16(0x17e)](this[_0x319b16(0x173)][_0x319b16(0x18a)](_0x445a44,_0x18e463));_0x221836[_0x319b16(0x17e)](_0x54a28b);}return _0x221836;})({'startRow':0x0,'endRow':this[_0x311f12(0x173)]['getMaxRows'](),'startColumn':0x0,'endColumn':this[_0x311f12(0x173)][_0x311f12(0x184)]()});_0x1cf3f9['updateConfig'](_0x12ca29);const _0x515219=_0x1cf3f9[_0x311f12(0x18b)](_0x1f4b7f,this[_0x311f12(0x160)],this[_0x311f12(0x173)]),_0x1cb192=this[_0x311f12(0x183)](),_0xbc45a6=[];for(let _0x22429f=0x0;_0x22429f<_0x515219[_0x311f12(0x166)];_0x22429f++){const _0x1c66f7=_0x515219[_0x22429f],_0x2515cc=_0x1c66f7[_0x311f12(0x185)],_0xb396a=[];for(let _0x50da4e=0x0;_0x50da4e<_0x2515cc[_0x311f12(0x166)];_0x50da4e++){const _0x2aaa4f=_0x2515cc[_0x50da4e],_0x557bbf=_0x53c1e1(_0x2aaa4f,_0x1cb192);_0x557bbf&&_0xb396a[_0x311f12(0x17e)](_0x557bbf);}_0xb396a[_0x311f12(0x166)]>0x0&&(_0x1c66f7[_0x311f12(0x185)]=_0xb396a,_0xbc45a6[_0x311f12(0x17e)](_0x1c66f7));}return _0xbc45a6;}[_0x18eb0a(0x186)](_0x197276){const _0x408032=_0x18eb0a;return this[_0x408032(0x17f)](_0x197276)['map'](_0x3476ba);}[_0x18eb0a(0x18e)](_0x400294){const _0x3dd418=_0x18eb0a,_0x49b393=this[_0x3dd418(0x18c)][_0x3dd418(0x181)](_0x1baa03),_0x4a47a=this['getRange']();return _0x49b393[_0x3dd418(0x171)](_0x400294),_0x49b393['getAllSizeUsages'](this[_0x3dd418(0x173)],_0x4a47a[_0x3dd418(0x180)],_0x4a47a[_0x3dd418(0x176)],_0x4a47a[_0x3dd418(0x17c)],_0x4a47a[_0x3dd418(0x17d)]);}['getSizeUsagesAsA1'](_0x292c99){const _0xeb8df2=_0x18eb0a,_0x4213bf=this[_0xeb8df2(0x18e)](_0x292c99);return this[_0xeb8df2(0x18c)][_0xeb8df2(0x181)](_0x1baa03)[_0xeb8df2(0x16c)](_0x4213bf);}}_0x3fae0f[_0x18eb0a(0x17b)](M);
|