@univerjs-pro/sheets-mcp 0.13.0-insiders.20251216-1519cb7 → 0.13.0-insiders.20251220-0a5ea4d

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/es/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x568b(){const _0x31cb75=['80arbnSp','getMaxRows','getAllFormulaError','filledRanges','120pMogrD','getAllDataValidationErrorAsync','getMaxColumns','endColumn','moveFormulaRefOffset','formula','355896mNFxdN','_injector','getAllFormulaUsages','1223827tnBJng','getCellDataGrid','96kGRhnG','startRow','441028LGVLqK','map','285363zLnNrs','710oPtTId','firstOccurrence','getActiveWorkbook','get','12264VpzwUm','getLintErrors','push','extend','21CQFPTL','getRange','getFormulaUsages','_worksheet','getFormulaUsagesAsA1','83992axmuUf','length','startColumn','199787xxojXr'];_0x568b=function(){return _0x31cb75;};return _0x568b();}const _0x1c065f=_0x5d77;(function(_0x220083,_0x46ca4b){const _0x8be55b=_0x5d77,_0x52ae90=_0x220083();while(!![]){try{const _0x2e1a8c=parseInt(_0x8be55b(0x122))/0x1+parseInt(_0x8be55b(0x120))/0x2+parseInt(_0x8be55b(0x12b))/0x3*(-parseInt(_0x8be55b(0x10b))/0x4)+parseInt(_0x8be55b(0x123))/0x5*(parseInt(_0x8be55b(0x127))/0x6)+-parseInt(_0x8be55b(0x10e))/0x7*(-parseInt(_0x8be55b(0x11e))/0x8)+parseInt(_0x8be55b(0x119))/0x9*(parseInt(_0x8be55b(0x10f))/0xa)+-parseInt(_0x8be55b(0x11c))/0xb*(parseInt(_0x8be55b(0x113))/0xc);if(_0x2e1a8c===_0x46ca4b)break;else _0x52ae90['push'](_0x52ae90['shift']());}catch(_0x5a86ef){_0x52ae90['push'](_0x52ae90['shift']());}}}(_0x568b,0x2fb55));import{FUniver as _0x378221}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x591426,FWorksheet as _0x3b1a9a,FRange as _0x358a4c}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0xd57330,toA1 as _0x1b4f13}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x2dfbfc}from'@univerjs/core';class p extends _0x378221{async[_0x1c065f(0x128)](){const _0x49b5bd=_0x1c065f;return this[_0x49b5bd(0x125)]()[_0x49b5bd(0x128)]();}}function _0x5d77(_0x130167,_0x406901){_0x130167=_0x130167-0x10b;const _0x568b1e=_0x568b();let _0x5d77ee=_0x568b1e[_0x130167];return _0x5d77ee;}_0x378221[_0x1c065f(0x12a)](p);class O extends _0x591426{async[_0x1c065f(0x128)](){const _0x547e2f=_0x1c065f,_0x6a2525=this[_0x547e2f(0x111)](),_0x42603c=await this[_0x547e2f(0x114)]();return{'formulaErrors':_0x6a2525,'dataValidationErrors':_0x42603c};}}_0x591426[_0x1c065f(0x12a)](O);class U extends _0x3b1a9a{async[_0x1c065f(0x12d)](){const _0x1bec52=_0x1c065f,_0x32f108=this[_0x1bec52(0x11a)][_0x1bec52(0x126)](_0xd57330),_0x4de350=this[_0x1bec52(0x12c)](0x0,0x0,this[_0x1bec52(0x110)]()+0x1,this[_0x1bec52(0x115)]()+0x1)[_0x1bec52(0x11d)]();return await _0x32f108[_0x1bec52(0x11b)](_0x4de350);}async['getFormulaUsagesAsA1'](){const _0xf1bfe1=_0x1c065f;return(await this[_0xf1bfe1(0x12d)]())[_0xf1bfe1(0x121)](_0x1b4f13);}}_0x3b1a9a[_0x1c065f(0x12a)](U);class k extends _0x358a4c{async[_0x1c065f(0x12d)](){const _0x442121=_0x1c065f,_0x440865=this[_0x442121(0x11a)][_0x442121(0x126)](_0xd57330),_0x28f4bc=(({startRow:_0x415da5,endRow:_0x3e8317,startColumn:_0x2fd5f4,endColumn:_0x4ff3f3})=>{const _0x408b97=_0x442121,_0x3feb51=[];for(let _0x24aaed=_0x415da5;_0x24aaed<=_0x3e8317;_0x24aaed++){const _0x4c4a4d=[];for(let _0x1bce23=_0x2fd5f4;_0x1bce23<=_0x4ff3f3;_0x1bce23++)_0x4c4a4d[_0x408b97(0x129)](this[_0x408b97(0x12e)]['getCellRaw'](_0x24aaed,_0x1bce23));_0x3feb51[_0x408b97(0x129)](_0x4c4a4d);}return _0x3feb51;})({'startRow':0x0,'endRow':this[_0x442121(0x12e)]['getMaxRows'](),'startColumn':0x0,'endColumn':this['_worksheet'][_0x442121(0x115)]()}),_0x35ef59=await _0x440865[_0x442121(0x11b)](_0x28f4bc),_0x5296db=this['getRange'](),_0x5f532d=[];for(let _0x1d0584=0x0;_0x1d0584<_0x35ef59[_0x442121(0x10c)];_0x1d0584++){const _0x3e9449=_0x35ef59[_0x1d0584],_0x357f44=_0x3e9449[_0x442121(0x112)],_0x477fbe=[];for(let _0x20740e=0x0;_0x20740e<_0x357f44[_0x442121(0x10c)];_0x20740e++){const _0x538de6=_0x357f44[_0x20740e],_0x194dba=_0x2dfbfc(_0x538de6,_0x5296db);_0x194dba&&_0x477fbe['push'](_0x194dba);}if(_0x477fbe[_0x442121(0x10c)]>0x0){if(_0x3e9449[_0x442121(0x112)]=_0x477fbe,!(_0x3e9449[_0x442121(0x124)][_0x442121(0x11f)]>=_0x5296db[_0x442121(0x11f)]&&_0x3e9449[_0x442121(0x124)]['startRow']<=_0x5296db['endRow']&&_0x3e9449['firstOccurrence'][_0x442121(0x10d)]>=_0x5296db[_0x442121(0x10d)]&&_0x3e9449[_0x442121(0x124)]['startColumn']<=_0x5296db[_0x442121(0x116)])){const _0x2d30a2=_0x477fbe[0x0],_0x1fba99=_0x2d30a2[_0x442121(0x11f)]-_0x3e9449[_0x442121(0x124)][_0x442121(0x11f)],_0x62be43=_0x2d30a2['startColumn']-_0x3e9449[_0x442121(0x124)][_0x442121(0x10d)];_0x3e9449['formula']=await _0x440865[_0x442121(0x117)](_0x3e9449[_0x442121(0x118)],_0x62be43,_0x1fba99),_0x3e9449[_0x442121(0x124)]={'startRow':_0x2d30a2[_0x442121(0x11f)],'endRow':_0x2d30a2['startRow'],'startColumn':_0x2d30a2[_0x442121(0x10d)],'endColumn':_0x2d30a2['startColumn']};}_0x5f532d['push'](_0x3e9449);}}return _0x5f532d;}async[_0x1c065f(0x12f)](){const _0x73e419=_0x1c065f;return(await this[_0x73e419(0x12d)]())[_0x73e419(0x121)](_0x1b4f13);}}_0x358a4c[_0x1c065f(0x12a)](k);
1
+ const _0x44e360=_0x4061;(function(_0x2fb7a3,_0x280982){const _0x5f5624=_0x4061,_0x38d836=_0x2fb7a3();while(!![]){try{const _0x3a2ba7=parseInt(_0x5f5624(0x211))/0x1*(-parseInt(_0x5f5624(0x208))/0x2)+parseInt(_0x5f5624(0x1f6))/0x3*(parseInt(_0x5f5624(0x204))/0x4)+parseInt(_0x5f5624(0x207))/0x5*(-parseInt(_0x5f5624(0x20f))/0x6)+parseInt(_0x5f5624(0x1fd))/0x7*(parseInt(_0x5f5624(0x1fc))/0x8)+parseInt(_0x5f5624(0x20c))/0x9*(-parseInt(_0x5f5624(0x1fa))/0xa)+-parseInt(_0x5f5624(0x1f8))/0xb*(-parseInt(_0x5f5624(0x1fb))/0xc)+-parseInt(_0x5f5624(0x20b))/0xd*(-parseInt(_0x5f5624(0x215))/0xe);if(_0x3a2ba7===_0x280982)break;else _0x38d836['push'](_0x38d836['shift']());}catch(_0x33d6a8){_0x38d836['push'](_0x38d836['shift']());}}}(_0x1b53,0x52a46));function _0x4061(_0xbe1e58,_0x51ccbc){_0xbe1e58=_0xbe1e58-0x1f1;const _0x1b53cd=_0x1b53();let _0x406184=_0x1b53cd[_0xbe1e58];return _0x406184;}import{FUniver as _0x559b0e}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';function _0x1b53(){const _0x53c9d1=['getLintErrors','endColumn','15220TjLJSF','2FoIWoN','extend','get','24089jXbSLt','9SqZRBM','firstOccurrence','getFormulaUsagesAsA1','888HXhfkz','endRow','491489DMMKFm','startColumn','moveFormulaRefOffset','getMaxRows','7812LAhHpF','getAllFormulaUsages','push','length','getCellRaw','getActiveWorkbook','filledRanges','42CLeGtY','formula','5324NTvhuw','map','5750630FhQFWv','2364MsATTZ','401168HCONcU','21IjdQDC','startRow','getFormulaUsages','getMaxColumns','_worksheet','_injector','getRange','164516RJkwgO'];_0x1b53=function(){return _0x53c9d1;};return _0x1b53();}import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x2e8620,FWorksheet as _0x3a8533,FRange as _0x22468f}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x1d19fd,toA1 as _0x1cfe7d}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x1496bd}from'@univerjs/core';class p extends _0x559b0e{async['getLintErrors'](){const _0x139b1b=_0x4061;return this[_0x139b1b(0x1f4)]()[_0x139b1b(0x205)]();}}_0x559b0e[_0x44e360(0x209)](p);class O extends _0x2e8620{async[_0x44e360(0x205)](){const _0x11ed59=this['getAllFormulaError'](),_0x38dc23=await this['getAllDataValidationErrorAsync']();return{'formulaErrors':_0x11ed59,'dataValidationErrors':_0x38dc23};}}_0x2e8620['extend'](O);class U extends _0x3a8533{async[_0x44e360(0x1ff)](){const _0x361d43=_0x44e360,_0x5a2033=this[_0x361d43(0x202)][_0x361d43(0x20a)](_0x1d19fd),_0x2fd1da=this[_0x361d43(0x203)](0x0,0x0,this[_0x361d43(0x214)](),this['getMaxColumns']())['getCellDataGrid']();return await _0x5a2033[_0x361d43(0x216)](_0x2fd1da);}async[_0x44e360(0x20e)](){const _0x314009=_0x44e360;return(await this[_0x314009(0x1ff)]())[_0x314009(0x1f9)](_0x1cfe7d);}}_0x3a8533[_0x44e360(0x209)](U);class k extends _0x22468f{async[_0x44e360(0x1ff)](){const _0x1d8e16=_0x44e360,_0xfde3f5=this[_0x1d8e16(0x202)][_0x1d8e16(0x20a)](_0x1d19fd),_0x21d229=(({startRow:_0x2791d4,endRow:_0x4e439d,startColumn:_0x167a3c,endColumn:_0x2e016f})=>{const _0x48100c=_0x1d8e16,_0x241a16=[];for(let _0x453ca5=_0x2791d4;_0x453ca5<=_0x4e439d;_0x453ca5++){const _0x308c23=[];for(let _0x34e262=_0x167a3c;_0x34e262<=_0x2e016f;_0x34e262++)_0x308c23[_0x48100c(0x1f1)](this[_0x48100c(0x201)][_0x48100c(0x1f3)](_0x453ca5,_0x34e262));_0x241a16[_0x48100c(0x1f1)](_0x308c23);}return _0x241a16;})({'startRow':0x0,'endRow':this[_0x1d8e16(0x201)][_0x1d8e16(0x214)](),'startColumn':0x0,'endColumn':this['_worksheet'][_0x1d8e16(0x200)]()}),_0x38b927=await _0xfde3f5[_0x1d8e16(0x216)](_0x21d229),_0x258129=this[_0x1d8e16(0x203)](),_0x178396=[];for(let _0x55a610=0x0;_0x55a610<_0x38b927[_0x1d8e16(0x1f2)];_0x55a610++){const _0x1a7f45=_0x38b927[_0x55a610],_0x4036ae=_0x1a7f45[_0x1d8e16(0x1f5)],_0x4d7741=[];for(let _0x27e7e=0x0;_0x27e7e<_0x4036ae[_0x1d8e16(0x1f2)];_0x27e7e++){const _0x5bb970=_0x4036ae[_0x27e7e],_0x1b4620=_0x1496bd(_0x5bb970,_0x258129);_0x1b4620&&_0x4d7741[_0x1d8e16(0x1f1)](_0x1b4620);}if(_0x4d7741['length']>0x0){if(_0x1a7f45['filledRanges']=_0x4d7741,!(_0x1a7f45[_0x1d8e16(0x20d)][_0x1d8e16(0x1fe)]>=_0x258129['startRow']&&_0x1a7f45[_0x1d8e16(0x20d)]['startRow']<=_0x258129[_0x1d8e16(0x210)]&&_0x1a7f45[_0x1d8e16(0x20d)][_0x1d8e16(0x212)]>=_0x258129[_0x1d8e16(0x212)]&&_0x1a7f45['firstOccurrence'][_0x1d8e16(0x212)]<=_0x258129[_0x1d8e16(0x206)])){const _0x2e2d1b=_0x4d7741[0x0],_0x10d59e=_0x2e2d1b[_0x1d8e16(0x1fe)]-_0x1a7f45[_0x1d8e16(0x20d)]['startRow'],_0x87636d=_0x2e2d1b['startColumn']-_0x1a7f45[_0x1d8e16(0x20d)][_0x1d8e16(0x212)];_0x1a7f45[_0x1d8e16(0x1f7)]=await _0xfde3f5[_0x1d8e16(0x213)](_0x1a7f45['formula'],_0x87636d,_0x10d59e),_0x1a7f45[_0x1d8e16(0x20d)]={'startRow':_0x2e2d1b[_0x1d8e16(0x1fe)],'endRow':_0x2e2d1b[_0x1d8e16(0x1fe)],'startColumn':_0x2e2d1b[_0x1d8e16(0x212)],'endColumn':_0x2e2d1b[_0x1d8e16(0x212)]};}_0x178396[_0x1d8e16(0x1f1)](_0x1a7f45);}}return _0x178396;}async[_0x44e360(0x20e)](){const _0x48aa34=_0x44e360;return(await this['getFormulaUsages']())[_0x48aa34(0x1f9)](_0x1cfe7d);}}_0x22468f[_0x44e360(0x209)](k);