@univerjs-pro/sheets-mcp 0.12.2-experimental.20251129-0fa20cd → 0.12.2-experimental.20251202-45172c6

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/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x574e9c=_0x3510;(function(_0x2063f8,_0x5c3530){const _0x290840=_0x3510,_0x507f3d=_0x2063f8();while(!![]){try{const _0x2e88de=-parseInt(_0x290840(0x108))/0x1*(-parseInt(_0x290840(0x10a))/0x2)+-parseInt(_0x290840(0x113))/0x3*(-parseInt(_0x290840(0x114))/0x4)+-parseInt(_0x290840(0x118))/0x5*(parseInt(_0x290840(0x111))/0x6)+-parseInt(_0x290840(0x121))/0x7+-parseInt(_0x290840(0x106))/0x8+-parseInt(_0x290840(0x122))/0x9+parseInt(_0x290840(0x10c))/0xa;if(_0x2e88de===_0x5c3530)break;else _0x507f3d['push'](_0x507f3d['shift']());}catch(_0x431bca){_0x507f3d['push'](_0x507f3d['shift']());}}}(_0x3e6e,0x897f5));import{FUniver as _0x109cba}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x2e1e4b,FWorksheet as _0x234950,FRange as _0x2475fb}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x2c2c07,toA1 as _0x3ec659}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x3b2920}from'@univerjs/core';class C extends _0x109cba{async[_0x574e9c(0x11f)](){const _0x3a4452=_0x574e9c;return this[_0x3a4452(0x109)]()[_0x3a4452(0x11f)]();}}_0x109cba[_0x574e9c(0x120)](C);class U extends _0x2e1e4b{async[_0x574e9c(0x11f)](){const _0x12f148=_0x574e9c,_0x2d6e70=this[_0x12f148(0x112)](),_0x2d4785=await this[_0x12f148(0x119)]();return{'formulaErrors':_0x2d6e70,'dataValidationErrors':_0x2d4785};}}_0x2e1e4b[_0x574e9c(0x120)](U);class k extends _0x234950{async[_0x574e9c(0x117)](){const _0x51d520=_0x574e9c,_0x37eb6a=this[_0x51d520(0x115)][_0x51d520(0x11b)](_0x2c2c07),_0x4cb468=this[_0x51d520(0x116)](0x0,0x0,this[_0x51d520(0x110)]()+0x1,this[_0x51d520(0x104)]()+0x1)[_0x51d520(0x11d)]();return await _0x37eb6a[_0x51d520(0x10d)](_0x4cb468);}async[_0x574e9c(0x11a)](){const _0x5155c1=_0x574e9c;return(await this[_0x5155c1(0x117)]())['map'](_0x3ec659);}}function _0x3510(_0xfc84c4,_0x3075b3){const _0x3e6e2a=_0x3e6e();return _0x3510=function(_0x35105a,_0x336747){_0x35105a=_0x35105a-0x104;let _0x2a6561=_0x3e6e2a[_0x35105a];return _0x2a6561;},_0x3510(_0xfc84c4,_0x3075b3);}_0x234950['extend'](k);function _0x3e6e(){const _0x58023d=['getCellRaw','279079vWsvLU','getActiveWorkbook','6geosQj','filledRanges','22300610Qnoomi','getAllFormulaUsages','moveFormulaRefOffset','_worksheet','getMaxRows','6hFtETI','getAllFormulaError','3XVbqUA','2164516kILxpk','_injector','getRange','getFormulaUsages','4138430ZivIBG','getAllDataValidationErrorAsync','getFormulaUsagesAsA1','get','push','getCellDataGrid','startRow','getLintErrors','extend','7460880mevreX','927225HCtboh','length','getMaxColumns','formula','8389496KEXobn'];_0x3e6e=function(){return _0x58023d;};return _0x3e6e();}class y extends _0x2475fb{async['getFormulaUsages'](){const _0x15df63=_0x574e9c,_0x139d8a=this[_0x15df63(0x115)][_0x15df63(0x11b)](_0x2c2c07),_0x39497f=(({startRow:_0x3c979e,endRow:_0x32dbae,startColumn:_0x24efb0,endColumn:_0x26a612})=>{const _0x264429=_0x15df63,_0x1eb3c4=[];for(let _0x5b07c3=_0x3c979e;_0x5b07c3<=_0x32dbae;_0x5b07c3++){const _0xba5b3a=[];for(let _0x43cf88=_0x24efb0;_0x43cf88<=_0x26a612;_0x43cf88++)_0xba5b3a[_0x264429(0x11c)](this[_0x264429(0x10f)][_0x264429(0x107)](_0x5b07c3,_0x43cf88));_0x1eb3c4[_0x264429(0x11c)](_0xba5b3a);}return _0x1eb3c4;})({'startRow':0x0,'endRow':this[_0x15df63(0x10f)][_0x15df63(0x110)](),'startColumn':0x0,'endColumn':this[_0x15df63(0x10f)][_0x15df63(0x104)]()}),_0xa7a769=await _0x139d8a[_0x15df63(0x10d)](_0x39497f),_0x5c285f=this[_0x15df63(0x116)](),_0x46e32f=[];for(let _0x2f7abf=0x0;_0x2f7abf<_0xa7a769[_0x15df63(0x123)];_0x2f7abf++){const _0x174fdd=_0xa7a769[_0x2f7abf],_0x3394cf=_0x174fdd[_0x15df63(0x10b)],_0x521fcd=[];for(let _0x1e007a=0x0;_0x1e007a<_0x3394cf[_0x15df63(0x123)];_0x1e007a++){const _0xa0e82c=_0x3394cf[_0x1e007a],_0x30936f=_0x3b2920(_0xa0e82c,_0x5c285f);_0x30936f&&_0x521fcd[_0x15df63(0x11c)](_0x30936f);}if(_0x521fcd[_0x15df63(0x123)]>0x0){_0x174fdd[_0x15df63(0x10b)]=_0x521fcd;const _0x153ea7=_0x521fcd[0x0],_0xdfe12c=_0x153ea7[_0x15df63(0x11e)]-_0x5c285f[_0x15df63(0x11e)],_0x4b761f=_0x153ea7['startColumn']-_0x5c285f['startColumn'];_0x174fdd[_0x15df63(0x105)]=await _0x139d8a[_0x15df63(0x10e)](_0x174fdd[_0x15df63(0x105)],_0xdfe12c,_0x4b761f),_0x46e32f[_0x15df63(0x11c)](_0x174fdd);}}return _0x46e32f;}async[_0x574e9c(0x11a)](){const _0x4bc938=_0x574e9c;return(await this[_0x4bc938(0x117)]())['map'](_0x3ec659);}}_0x2475fb[_0x574e9c(0x120)](y);
1
+ const _0x2c1eb9=_0x415f;(function(_0x29953a,_0x362600){const _0x1bb5a3=_0x415f,_0x45ada7=_0x29953a();while(!![]){try{const _0xd29223=parseInt(_0x1bb5a3(0x147))/0x1*(-parseInt(_0x1bb5a3(0x14f))/0x2)+parseInt(_0x1bb5a3(0x138))/0x3*(parseInt(_0x1bb5a3(0x150))/0x4)+-parseInt(_0x1bb5a3(0x137))/0x5+-parseInt(_0x1bb5a3(0x13c))/0x6+parseInt(_0x1bb5a3(0x14a))/0x7+parseInt(_0x1bb5a3(0x13a))/0x8+parseInt(_0x1bb5a3(0x145))/0x9;if(_0xd29223===_0x362600)break;else _0x45ada7['push'](_0x45ada7['shift']());}catch(_0x32763d){_0x45ada7['push'](_0x45ada7['shift']());}}}(_0x1362,0x7cd2b));import{FUniver as _0x4c9c5c}from'@univerjs/core/facade';function _0x415f(_0x2095c6,_0x5705a9){const _0x1362ab=_0x1362();return _0x415f=function(_0x415feb,_0x726989){_0x415feb=_0x415feb-0x133;let _0x28c8f7=_0x1362ab[_0x415feb];return _0x28c8f7;},_0x415f(_0x2095c6,_0x5705a9);}import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x332f83,FWorksheet as _0x2c1619,FRange as _0xefbd57}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x19a0fc,toA1 as _0x50e672}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x3a2ef6}from'@univerjs/core';function _0x1362(){const _0x574fbe=['_injector','getFormulaUsages','getCellDataGrid','12857364lLWuQR','getAllFormulaUsages','2329bxrXza','getRange','getLintErrors','5157467ERemBD','push','getCellRaw','extend','getMaxRows','438DNSijU','21408ExUvja','getAllDataValidationErrorAsync','getMaxColumns','get','formula','getActiveWorkbook','length','4192890COruOb','156yokaUa','filledRanges','245936GzapzC','_worksheet','3687114zMcuZX','moveFormulaRefOffset','startRow','map','getFormulaUsagesAsA1','startColumn'];_0x1362=function(){return _0x574fbe;};return _0x1362();}class C extends _0x4c9c5c{async[_0x2c1eb9(0x149)](){const _0x46e165=_0x2c1eb9;return this[_0x46e165(0x135)]()[_0x46e165(0x149)]();}}_0x4c9c5c[_0x2c1eb9(0x14d)](C);class U extends _0x332f83{async['getLintErrors'](){const _0x2b9da9=_0x2c1eb9,_0x32a63d=this['getAllFormulaError'](),_0x33f4f4=await this[_0x2b9da9(0x151)]();return{'formulaErrors':_0x32a63d,'dataValidationErrors':_0x33f4f4};}}_0x332f83['extend'](U);class k extends _0x2c1619{async[_0x2c1eb9(0x143)](){const _0x5673d7=_0x2c1eb9,_0x2cc1bd=this['_injector'][_0x5673d7(0x133)](_0x19a0fc),_0x525a4e=this[_0x5673d7(0x148)](0x0,0x0,this[_0x5673d7(0x14e)]()+0x1,this[_0x5673d7(0x152)]()+0x1)[_0x5673d7(0x144)]();return await _0x2cc1bd['getAllFormulaUsages'](_0x525a4e);}async[_0x2c1eb9(0x140)](){return(await this['getFormulaUsages']())['map'](_0x50e672);}}_0x2c1619[_0x2c1eb9(0x14d)](k);class y extends _0xefbd57{async[_0x2c1eb9(0x143)](){const _0x5dfec0=_0x2c1eb9,_0x26b869=this[_0x5dfec0(0x142)]['get'](_0x19a0fc),_0x315efb=(({startRow:_0x2bacba,endRow:_0x3585fa,startColumn:_0x3f6d91,endColumn:_0x2b0ac4})=>{const _0x46ca5a=_0x5dfec0,_0x482a8e=[];for(let _0x19121d=_0x2bacba;_0x19121d<=_0x3585fa;_0x19121d++){const _0x59d6e4=[];for(let _0x44af5e=_0x3f6d91;_0x44af5e<=_0x2b0ac4;_0x44af5e++)_0x59d6e4[_0x46ca5a(0x14b)](this[_0x46ca5a(0x13b)][_0x46ca5a(0x14c)](_0x19121d,_0x44af5e));_0x482a8e[_0x46ca5a(0x14b)](_0x59d6e4);}return _0x482a8e;})({'startRow':0x0,'endRow':this['_worksheet']['getMaxRows'](),'startColumn':0x0,'endColumn':this[_0x5dfec0(0x13b)][_0x5dfec0(0x152)]()}),_0x257f91=await _0x26b869[_0x5dfec0(0x146)](_0x315efb),_0x5f5bf9=this[_0x5dfec0(0x148)](),_0x280994=[];for(let _0x5b53de=0x0;_0x5b53de<_0x257f91[_0x5dfec0(0x136)];_0x5b53de++){const _0x35acbc=_0x257f91[_0x5b53de],_0x1a12aa=_0x35acbc[_0x5dfec0(0x139)],_0x2d1f6d=[];for(let _0x445e7a=0x0;_0x445e7a<_0x1a12aa['length'];_0x445e7a++){const _0x4386d2=_0x1a12aa[_0x445e7a],_0x3ccc80=_0x3a2ef6(_0x4386d2,_0x5f5bf9);_0x3ccc80&&_0x2d1f6d['push'](_0x3ccc80);}if(_0x2d1f6d[_0x5dfec0(0x136)]>0x0){_0x35acbc[_0x5dfec0(0x139)]=_0x2d1f6d;const _0x2f9fd9=_0x2d1f6d[0x0],_0x9cdc64=_0x2f9fd9[_0x5dfec0(0x13e)]-_0x5f5bf9[_0x5dfec0(0x13e)],_0x3d0445=_0x2f9fd9[_0x5dfec0(0x141)]-_0x5f5bf9[_0x5dfec0(0x141)];_0x35acbc[_0x5dfec0(0x134)]=await _0x26b869[_0x5dfec0(0x13d)](_0x35acbc[_0x5dfec0(0x134)],_0x9cdc64,_0x3d0445),_0x280994[_0x5dfec0(0x14b)](_0x35acbc);}}return _0x280994;}async[_0x2c1eb9(0x140)](){const _0x766e91=_0x2c1eb9;return(await this[_0x766e91(0x143)]())[_0x766e91(0x13f)](_0x50e672);}}_0xefbd57[_0x2c1eb9(0x14d)](y);