@univerjs-pro/sheets-mcp 0.12.0-nightly.202511220628 → 0.12.1-nightly.202511221011

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
- const _0x1cc88c=_0x2425;(function(_0x43d66a,_0x549d6a){const _0x5489c5=_0x2425,_0x17c66d=_0x43d66a();while(!![]){try{const _0x1d8f71=parseInt(_0x5489c5(0xab))/0x1+-parseInt(_0x5489c5(0x8d))/0x2*(parseInt(_0x5489c5(0xa7))/0x3)+parseInt(_0x5489c5(0x97))/0x4+parseInt(_0x5489c5(0xa5))/0x5+parseInt(_0x5489c5(0x9b))/0x6*(parseInt(_0x5489c5(0x91))/0x7)+parseInt(_0x5489c5(0x95))/0x8*(parseInt(_0x5489c5(0x94))/0x9)+-parseInt(_0x5489c5(0xa3))/0xa;if(_0x1d8f71===_0x549d6a)break;else _0x17c66d['push'](_0x17c66d['shift']());}catch(_0x563f51){_0x17c66d['push'](_0x17c66d['shift']());}}}(_0x2f75,0x60d6d));import{FUniver as _0x1f56c6}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';function _0x2f75(){const _0x1cb8f9=['getAllFormulaError','getLintErrors','_injector','363053tJExws','72lvxeRT','extend','_worksheet','length','5261501hJhLiV','startRow','getAllDataValidationErrorAsync','72CSYXGt','328784OHVTHc','formula','686836LIKvmF','moveFormulaRefOffset','push','filledRanges','6dZcSGe','getFormulaUsages','getCellRaw','getCellDataGrid','get','map','startColumn','getMaxColumns','16252810weCibE','getFormulaUsagesAsA1','2669485PokgOP','getMaxRows','10596lshoih'];_0x2f75=function(){return _0x1cb8f9;};return _0x2f75();}import{FWorkbook as _0x547f88,FWorksheet as _0x4921ef,FRange as _0x25d0f5}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x3e4a8a,toA1 as _0x49371b}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0xcc7a2d}from'@univerjs/core';class C extends _0x1f56c6{async[_0x1cc88c(0xa9)](){const _0x87e26b=_0x1cc88c;return this['getActiveWorkbook']()[_0x87e26b(0xa9)]();}}_0x1f56c6[_0x1cc88c(0x8e)](C);class U extends _0x547f88{async[_0x1cc88c(0xa9)](){const _0x1200f1=_0x1cc88c,_0x46d204=this[_0x1200f1(0xa8)](),_0x4f466e=await this[_0x1200f1(0x93)]();return{'formulaErrors':_0x46d204,'dataValidationErrors':_0x4f466e};}}_0x547f88[_0x1cc88c(0x8e)](U);class k extends _0x4921ef{async[_0x1cc88c(0x9c)](){const _0x10bebf=_0x1cc88c,_0x31f8d9=this[_0x10bebf(0xaa)][_0x10bebf(0x9f)](_0x3e4a8a),_0x557a7c=this['getRange'](0x0,0x0,this[_0x10bebf(0xa6)]()+0x1,this[_0x10bebf(0xa2)]()+0x1)[_0x10bebf(0x9e)]();return await _0x31f8d9['getAllFormulaUsages'](_0x557a7c);}async[_0x1cc88c(0xa4)](){const _0x14513b=_0x1cc88c;return(await this['getFormulaUsages']())[_0x14513b(0xa0)](_0x49371b);}}function _0x2425(_0x3ca10a,_0x57cf4a){const _0x2f755e=_0x2f75();return _0x2425=function(_0x24254a,_0x15ace6){_0x24254a=_0x24254a-0x8d;let _0x354693=_0x2f755e[_0x24254a];return _0x354693;},_0x2425(_0x3ca10a,_0x57cf4a);}_0x4921ef[_0x1cc88c(0x8e)](k);class y extends _0x25d0f5{async['getFormulaUsages'](){const _0x14ebab=_0x1cc88c,_0x256162=this[_0x14ebab(0xaa)][_0x14ebab(0x9f)](_0x3e4a8a),_0x1757dc=(({startRow:_0x78b488,endRow:_0x356b3a,startColumn:_0x223bfd,endColumn:_0x51efd1})=>{const _0x167960=_0x14ebab,_0xd4f7cb=[];for(let _0x4db386=_0x78b488;_0x4db386<=_0x356b3a;_0x4db386++){const _0x2893e6=[];for(let _0x59306d=_0x223bfd;_0x59306d<=_0x51efd1;_0x59306d++)_0x2893e6[_0x167960(0x99)](this[_0x167960(0x8f)][_0x167960(0x9d)](_0x4db386,_0x59306d));_0xd4f7cb[_0x167960(0x99)](_0x2893e6);}return _0xd4f7cb;})({'startRow':0x0,'endRow':this['_worksheet'][_0x14ebab(0xa6)](),'startColumn':0x0,'endColumn':this[_0x14ebab(0x8f)][_0x14ebab(0xa2)]()}),_0x514756=await _0x256162['getAllFormulaUsages'](_0x1757dc),_0x5537af=this['getRange'](),_0xcc524=[];for(let _0x4140ac=0x0;_0x4140ac<_0x514756[_0x14ebab(0x90)];_0x4140ac++){const _0x2e8e23=_0x514756[_0x4140ac],_0x369dd6=_0x2e8e23['filledRanges'],_0x378eb0=[];for(let _0x2733cd=0x0;_0x2733cd<_0x369dd6[_0x14ebab(0x90)];_0x2733cd++){const _0x397318=_0x369dd6[_0x2733cd],_0x52b5ec=_0xcc7a2d(_0x397318,_0x5537af);_0x52b5ec&&_0x378eb0[_0x14ebab(0x99)](_0x52b5ec);}if(_0x378eb0[_0x14ebab(0x90)]>0x0){_0x2e8e23[_0x14ebab(0x9a)]=_0x378eb0;const _0x2e9bf4=_0x378eb0[0x0],_0x3fa45d=_0x2e9bf4[_0x14ebab(0x92)]-_0x5537af['startRow'],_0x16e154=_0x2e9bf4['startColumn']-_0x5537af[_0x14ebab(0xa1)];_0x2e8e23[_0x14ebab(0x96)]=await _0x256162[_0x14ebab(0x98)](_0x2e8e23[_0x14ebab(0x96)],_0x3fa45d,_0x16e154),_0xcc524[_0x14ebab(0x99)](_0x2e8e23);}}return _0xcc524;}async['getFormulaUsagesAsA1'](){const _0x758ed1=_0x1cc88c;return(await this['getFormulaUsages']())[_0x758ed1(0xa0)](_0x49371b);}}_0x25d0f5[_0x1cc88c(0x8e)](y);
1
+ const _0x488f4b=_0x2f68;(function(_0x34ce59,_0x461d6a){const _0x2bea7d=_0x2f68,_0x35e47e=_0x34ce59();while(!![]){try{const _0x7b7b18=parseInt(_0x2bea7d(0x1b9))/0x1*(-parseInt(_0x2bea7d(0x1b8))/0x2)+parseInt(_0x2bea7d(0x1c3))/0x3*(-parseInt(_0x2bea7d(0x1c1))/0x4)+-parseInt(_0x2bea7d(0x1bb))/0x5+parseInt(_0x2bea7d(0x1b2))/0x6+-parseInt(_0x2bea7d(0x1be))/0x7+parseInt(_0x2bea7d(0x1cd))/0x8*(-parseInt(_0x2bea7d(0x1bd))/0x9)+parseInt(_0x2bea7d(0x1b3))/0xa;if(_0x7b7b18===_0x461d6a)break;else _0x35e47e['push'](_0x35e47e['shift']());}catch(_0x18fe92){_0x35e47e['push'](_0x35e47e['shift']());}}}(_0x407f,0x3342e));import{FUniver as _0x2f7a97}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';function _0x407f(){const _0x51a4b0=['797768wPFYtl','get','6auKFLa','extend','startColumn','getMaxColumns','length','_worksheet','getCellDataGrid','getMaxRows','getAllFormulaError','getRange','2440mhDcaQ','getLintErrors','map','getFormulaUsages','407862nIBJaf','9329310vUQoko','getActiveWorkbook','startRow','getFormulaUsagesAsA1','getAllFormulaUsages','10ZzWJUl','19493buWime','push','795080ajDBrW','moveFormulaRefOffset','1953XxwkAH','485744iWvZKy','filledRanges','getCellRaw'];_0x407f=function(){return _0x51a4b0;};return _0x407f();}import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x4824f7,FWorksheet as _0x4b3e7b,FRange as _0x5a65ed}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x456619,toA1 as _0x45487e}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x2a8021}from'@univerjs/core';class C extends _0x2f7a97{async[_0x488f4b(0x1ce)](){const _0x7ba27f=_0x488f4b;return this[_0x7ba27f(0x1b4)]()[_0x7ba27f(0x1ce)]();}}_0x2f7a97[_0x488f4b(0x1c4)](C);class U extends _0x4824f7{async['getLintErrors'](){const _0x3fad85=_0x488f4b,_0x5bc473=this[_0x3fad85(0x1cb)](),_0x44349c=await this['getAllDataValidationErrorAsync']();return{'formulaErrors':_0x5bc473,'dataValidationErrors':_0x44349c};}}_0x4824f7[_0x488f4b(0x1c4)](U);class k extends _0x4b3e7b{async[_0x488f4b(0x1b1)](){const _0x49e242=_0x488f4b,_0x47d7d5=this['_injector'][_0x49e242(0x1c2)](_0x456619),_0x176176=this[_0x49e242(0x1cc)](0x0,0x0,this[_0x49e242(0x1ca)]()+0x1,this['getMaxColumns']()+0x1)[_0x49e242(0x1c9)]();return await _0x47d7d5[_0x49e242(0x1b7)](_0x176176);}async[_0x488f4b(0x1b6)](){const _0xbfdd31=_0x488f4b;return(await this[_0xbfdd31(0x1b1)]())[_0xbfdd31(0x1b0)](_0x45487e);}}_0x4b3e7b[_0x488f4b(0x1c4)](k);class y extends _0x5a65ed{async[_0x488f4b(0x1b1)](){const _0x3f2517=_0x488f4b,_0x35aebf=this['_injector']['get'](_0x456619),_0x4a2bfd=(({startRow:_0x4834ba,endRow:_0x5e1f16,startColumn:_0x3c884e,endColumn:_0x47c5b5})=>{const _0x509f78=_0x2f68,_0x170e91=[];for(let _0x2e577c=_0x4834ba;_0x2e577c<=_0x5e1f16;_0x2e577c++){const _0x33061e=[];for(let _0x51d7da=_0x3c884e;_0x51d7da<=_0x47c5b5;_0x51d7da++)_0x33061e[_0x509f78(0x1ba)](this[_0x509f78(0x1c8)][_0x509f78(0x1c0)](_0x2e577c,_0x51d7da));_0x170e91[_0x509f78(0x1ba)](_0x33061e);}return _0x170e91;})({'startRow':0x0,'endRow':this[_0x3f2517(0x1c8)][_0x3f2517(0x1ca)](),'startColumn':0x0,'endColumn':this['_worksheet'][_0x3f2517(0x1c6)]()}),_0x174ec4=await _0x35aebf[_0x3f2517(0x1b7)](_0x4a2bfd),_0x1e3d65=this[_0x3f2517(0x1cc)](),_0x51a638=[];for(let _0x4952e8=0x0;_0x4952e8<_0x174ec4[_0x3f2517(0x1c7)];_0x4952e8++){const _0xad212f=_0x174ec4[_0x4952e8],_0x551c23=_0xad212f[_0x3f2517(0x1bf)],_0x23165d=[];for(let _0x499e4f=0x0;_0x499e4f<_0x551c23[_0x3f2517(0x1c7)];_0x499e4f++){const _0x47e5c1=_0x551c23[_0x499e4f],_0x1a0061=_0x2a8021(_0x47e5c1,_0x1e3d65);_0x1a0061&&_0x23165d[_0x3f2517(0x1ba)](_0x1a0061);}if(_0x23165d['length']>0x0){_0xad212f['filledRanges']=_0x23165d;const _0x4a513b=_0x23165d[0x0],_0x440a4f=_0x4a513b['startRow']-_0x1e3d65[_0x3f2517(0x1b5)],_0x5b4485=_0x4a513b[_0x3f2517(0x1c5)]-_0x1e3d65[_0x3f2517(0x1c5)];_0xad212f['formula']=await _0x35aebf[_0x3f2517(0x1bc)](_0xad212f['formula'],_0x440a4f,_0x5b4485),_0x51a638[_0x3f2517(0x1ba)](_0xad212f);}}return _0x51a638;}async[_0x488f4b(0x1b6)](){const _0x1a47b5=_0x488f4b;return(await this[_0x1a47b5(0x1b1)]())['map'](_0x45487e);}}function _0x2f68(_0x1c47a0,_0x40db1a){const _0x407fdd=_0x407f();return _0x2f68=function(_0x2f685b,_0x113de8){_0x2f685b=_0x2f685b-0x1b0;let _0x421866=_0x407fdd[_0x2f685b];return _0x421866;},_0x2f68(_0x1c47a0,_0x40db1a);}_0x5a65ed[_0x488f4b(0x1c4)](y);