@univerjs-pro/sheets-mcp 0.15.0-insiders.20251227-c108ce3 → 0.15.0-insiders.20260106-79b11f9

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 _0x3a04ba=_0x3cb5;(function(_0x3d0e53,_0x123bde){const _0x172d1a=_0x3cb5,_0x52debb=_0x3d0e53();while(!![]){try{const _0x41cdcd=-parseInt(_0x172d1a(0x11c))/0x1+parseInt(_0x172d1a(0x10a))/0x2+parseInt(_0x172d1a(0x117))/0x3*(parseInt(_0x172d1a(0x10d))/0x4)+parseInt(_0x172d1a(0x11f))/0x5*(parseInt(_0x172d1a(0x10c))/0x6)+-parseInt(_0x172d1a(0x11b))/0x7+parseInt(_0x172d1a(0x11e))/0x8*(parseInt(_0x172d1a(0x10b))/0x9)+-parseInt(_0x172d1a(0x112))/0xa;if(_0x41cdcd===_0x123bde)break;else _0x52debb['push'](_0x52debb['shift']());}catch(_0x2878b5){_0x52debb['push'](_0x52debb['shift']());}}}(_0x4f4d,0x8b78d));function _0x4f4d(){const _0x118011=['firstOccurrence','_worksheet','extend','get','length','getLintErrors','getFormulaUsages','getCellRaw','1948108UjxxPF','1119141FjHFhV','4901142jZszzs','52FWIWUF','startRow','formula','getActiveWorkbook','getAllFormulaUsages','17382990UvHCxa','_injector','map','moveFormulaRefOffset','getAllDataValidationErrorAsync','193275BFviyf','getRange','push','filledRanges','3207050mpkZlG','482455sczQnp','startColumn','40ZYBwMC','5ZEAeXc','getCellDataGrid'];_0x4f4d=function(){return _0x118011;};return _0x4f4d();}import{FUniver as _0x1b03cf}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x59af74,FWorksheet as _0x22503f,FRange as _0x57cc1e}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x6f2a5c,toA1 as _0x9ed613}from'@univerjs-pro/sheets-mcp';function _0x3cb5(_0x23c332,_0x33e097){_0x23c332=_0x23c332-0x108;const _0x4f4d10=_0x4f4d();let _0x3cb531=_0x4f4d10[_0x23c332];return _0x3cb531;}import{getIntersectRange as _0xbe99ec}from'@univerjs/core';class p extends _0x1b03cf{async['getLintErrors'](){const _0x305a2d=_0x3cb5;return this[_0x305a2d(0x110)]()[_0x305a2d(0x126)]();}}_0x1b03cf[_0x3a04ba(0x123)](p);class O extends _0x59af74{async[_0x3a04ba(0x126)](){const _0xfbb6ca=_0x3a04ba,_0x31c395=this['getAllFormulaError'](),_0x3d093a=await this[_0xfbb6ca(0x116)]();return{'formulaErrors':_0x31c395,'dataValidationErrors':_0x3d093a};}}_0x59af74[_0x3a04ba(0x123)](O);class U extends _0x22503f{async[_0x3a04ba(0x108)](){const _0x495f66=_0x3a04ba,_0x71539f=this['_injector'][_0x495f66(0x124)](_0x6f2a5c),_0x3c1faa=this[_0x495f66(0x118)](0x0,0x0,this['getMaxRows'](),this['getMaxColumns']())[_0x495f66(0x120)]();return await _0x71539f[_0x495f66(0x111)](_0x3c1faa);}async['getFormulaUsagesAsA1'](){const _0x46fb3e=_0x3a04ba;return(await this[_0x46fb3e(0x108)]())[_0x46fb3e(0x114)](_0x9ed613);}}_0x22503f[_0x3a04ba(0x123)](U);class k extends _0x57cc1e{async[_0x3a04ba(0x108)](){const _0x91b57b=_0x3a04ba,_0x1eba8a=this[_0x91b57b(0x113)][_0x91b57b(0x124)](_0x6f2a5c),_0x1019ba=(({startRow:_0x18aa0d,endRow:_0x5a979a,startColumn:_0x2639a3,endColumn:_0x3f0e97})=>{const _0x289f5a=_0x91b57b,_0x1e52f8=[];for(let _0x503647=_0x18aa0d;_0x503647<=_0x5a979a;_0x503647++){const _0x35dfcb=[];for(let _0x2a605b=_0x2639a3;_0x2a605b<=_0x3f0e97;_0x2a605b++)_0x35dfcb[_0x289f5a(0x119)](this[_0x289f5a(0x122)][_0x289f5a(0x109)](_0x503647,_0x2a605b));_0x1e52f8[_0x289f5a(0x119)](_0x35dfcb);}return _0x1e52f8;})({'startRow':0x0,'endRow':this['_worksheet']['getMaxRows'](),'startColumn':0x0,'endColumn':this[_0x91b57b(0x122)]['getMaxColumns']()}),_0x3b3989=await _0x1eba8a[_0x91b57b(0x111)](_0x1019ba),_0x13e92a=this[_0x91b57b(0x118)](),_0x45c5c9=[];for(let _0x2bd2dd=0x0;_0x2bd2dd<_0x3b3989[_0x91b57b(0x125)];_0x2bd2dd++){const _0x4edb30=_0x3b3989[_0x2bd2dd],_0xb57a45=_0x4edb30[_0x91b57b(0x11a)],_0x99b76e=[];for(let _0x4f5d30=0x0;_0x4f5d30<_0xb57a45['length'];_0x4f5d30++){const _0x2d95d2=_0xb57a45[_0x4f5d30],_0x440506=_0xbe99ec(_0x2d95d2,_0x13e92a);_0x440506&&_0x99b76e[_0x91b57b(0x119)](_0x440506);}if(_0x99b76e['length']>0x0){if(_0x4edb30['filledRanges']=_0x99b76e,!(_0x4edb30['firstOccurrence'][_0x91b57b(0x10e)]>=_0x13e92a[_0x91b57b(0x10e)]&&_0x4edb30['firstOccurrence']['startRow']<=_0x13e92a['endRow']&&_0x4edb30[_0x91b57b(0x121)][_0x91b57b(0x11d)]>=_0x13e92a[_0x91b57b(0x11d)]&&_0x4edb30['firstOccurrence']['startColumn']<=_0x13e92a['endColumn'])){const _0x577434=_0x99b76e[0x0],_0x3a528e=_0x577434[_0x91b57b(0x10e)]-_0x4edb30['firstOccurrence'][_0x91b57b(0x10e)],_0x513d83=_0x577434['startColumn']-_0x4edb30[_0x91b57b(0x121)][_0x91b57b(0x11d)];_0x4edb30['formula']=await _0x1eba8a[_0x91b57b(0x115)](_0x4edb30[_0x91b57b(0x10f)],_0x513d83,_0x3a528e),_0x4edb30['firstOccurrence']={'startRow':_0x577434[_0x91b57b(0x10e)],'endRow':_0x577434['startRow'],'startColumn':_0x577434[_0x91b57b(0x11d)],'endColumn':_0x577434[_0x91b57b(0x11d)]};}_0x45c5c9[_0x91b57b(0x119)](_0x4edb30);}}return _0x45c5c9;}async['getFormulaUsagesAsA1'](){const _0x4bbe3d=_0x3a04ba;return(await this[_0x4bbe3d(0x108)]())[_0x4bbe3d(0x114)](_0x9ed613);}}_0x57cc1e[_0x3a04ba(0x123)](k);
1
+ const _0xe8b6df=_0x5e4e;(function(_0x2794b0,_0x162be3){const _0x4a8cb2=_0x5e4e,_0x5d3981=_0x2794b0();while(!![]){try{const _0x45f16e=parseInt(_0x4a8cb2(0xb5))/0x1*(-parseInt(_0x4a8cb2(0xaf))/0x2)+parseInt(_0x4a8cb2(0xc5))/0x3*(-parseInt(_0x4a8cb2(0xb0))/0x4)+parseInt(_0x4a8cb2(0xbb))/0x5*(-parseInt(_0x4a8cb2(0xb9))/0x6)+parseInt(_0x4a8cb2(0xae))/0x7*(parseInt(_0x4a8cb2(0xcc))/0x8)+-parseInt(_0x4a8cb2(0xc4))/0x9*(parseInt(_0x4a8cb2(0xd1))/0xa)+parseInt(_0x4a8cb2(0xb2))/0xb*(-parseInt(_0x4a8cb2(0xc3))/0xc)+parseInt(_0x4a8cb2(0xd0))/0xd;if(_0x45f16e===_0x162be3)break;else _0x5d3981['push'](_0x5d3981['shift']());}catch(_0xf4089c){_0x5d3981['push'](_0x5d3981['shift']());}}}(_0x4769,0xc5b04));import{FUniver as _0x3378d}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';function _0x4769(){const _0x11c2e9=['64238837VFNzJS','300YLFZaC','getFormulaUsagesAsA1','getLintErrors','extend','_worksheet','getSizeUsagesAsA1','getMaxColumns','startRow','toA1','getActiveWorkbook','getAllStyleUsages','startColumn','7IvdJlu','18fNxhWg','4872uAtDkB','getFormulaUsages','22ThAwtv','endColumn','endRow','152443xCIYPp','formula','get','getMaxRows','5118CewxNe','map','9135DRvhxh','getAllDataValidationErrorAsync','updateConfig','getRange','_injector','push','getCellDataGrid','length','6899784jazIKk','393489sNvnrg','402dGPQDo','getCellRaw','getStyleUsagesAsA1','firstOccurrence','getAllFormulaUsages','getAllSizeUsages','filledRanges','11388056mncikB','_workbook','getStyleUsages','getAllFormulaError'];_0x4769=function(){return _0x11c2e9;};return _0x4769();}import{FWorkbook as _0x45dd4d,FWorksheet as _0x4dc8cf,FRange as _0x112a41}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x49c5b5,formulaToA1 as _0x3f8315,IStyleUsageAnalyzer as _0x93a90e,styleToA1 as _0x354f65,ISizeUsageAnalyzer as _0x261405}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x1a495b}from'@univerjs/core';class z extends _0x3378d{async[_0xe8b6df(0xd3)](){const _0x3d91d1=_0xe8b6df;return this[_0x3d91d1(0xab)]()[_0x3d91d1(0xd3)]();}}_0x3378d[_0xe8b6df(0xd4)](z);class _ extends _0x45dd4d{async[_0xe8b6df(0xd3)](){const _0x364756=_0xe8b6df,_0x522ced=this[_0x364756(0xcf)](),_0x29f6b2=await this[_0x364756(0xbc)]();return{'formulaErrors':_0x522ced,'dataValidationErrors':_0x29f6b2};}}_0x45dd4d[_0xe8b6df(0xd4)](_);class x extends _0x4dc8cf{async[_0xe8b6df(0xb1)](){const _0x8a4142=_0xe8b6df,_0x11d4a5=this['_injector']['get'](_0x49c5b5),_0x371e8a=this[_0x8a4142(0xbe)](0x0,0x0,this[_0x8a4142(0xb8)](),this[_0x8a4142(0xa8)]())[_0x8a4142(0xc1)]();return await _0x11d4a5[_0x8a4142(0xc9)](_0x371e8a);}async[_0xe8b6df(0xd2)](){const _0x3b65b6=_0xe8b6df;return(await this[_0x3b65b6(0xb1)]())[_0x3b65b6(0xba)](_0x3f8315);}[_0xe8b6df(0xce)](_0x11bd93){const _0x3c3bd3=_0xe8b6df,_0x3b7efb=this[_0x3c3bd3(0xbf)][_0x3c3bd3(0xb7)](_0x93a90e),_0x2c149b=this[_0x3c3bd3(0xbe)](0x0,0x0,this[_0x3c3bd3(0xb8)](),this[_0x3c3bd3(0xa8)]())[_0x3c3bd3(0xc1)]();return _0x3b7efb[_0x3c3bd3(0xbd)](_0x11bd93),_0x3b7efb[_0x3c3bd3(0xac)](_0x2c149b,this[_0x3c3bd3(0xcd)],this['_worksheet']);}[_0xe8b6df(0xc7)](_0x912a8d){const _0x298b49=_0xe8b6df;return this[_0x298b49(0xce)](_0x912a8d)['map'](_0x354f65);}['getSizeUsages'](_0x50a647){const _0x59831b=_0xe8b6df,_0x346e68=this[_0x59831b(0xbf)][_0x59831b(0xb7)](_0x261405);return _0x346e68[_0x59831b(0xbd)](_0x50a647),_0x346e68[_0x59831b(0xca)](this[_0x59831b(0xd5)]);}[_0xe8b6df(0xd6)](_0x4dc792){const _0x2f2cde=_0xe8b6df,_0x2e205f=this['_injector']['get'](_0x261405);_0x2e205f[_0x2f2cde(0xbd)](_0x4dc792);const _0x34643a=_0x2e205f[_0x2f2cde(0xca)](this[_0x2f2cde(0xd5)]);return _0x2e205f[_0x2f2cde(0xaa)](_0x34643a);}}_0x4dc8cf[_0xe8b6df(0xd4)](x);class M extends _0x112a41{async['getFormulaUsages'](){const _0x55c025=_0xe8b6df,_0x1deec5=this[_0x55c025(0xbf)][_0x55c025(0xb7)](_0x49c5b5),_0x2ebdc4=(({startRow:_0x45738e,endRow:_0x4c4781,startColumn:_0x3b46da,endColumn:_0xb28c18})=>{const _0x30839e=_0x55c025,_0x504fc4=[];for(let _0x45f2f4=_0x45738e;_0x45f2f4<=_0x4c4781;_0x45f2f4++){const _0x23d0f1=[];for(let _0x3a42ae=_0x3b46da;_0x3a42ae<=_0xb28c18;_0x3a42ae++)_0x23d0f1[_0x30839e(0xc0)](this[_0x30839e(0xd5)]['getCellRaw'](_0x45f2f4,_0x3a42ae));_0x504fc4['push'](_0x23d0f1);}return _0x504fc4;})({'startRow':0x0,'endRow':this[_0x55c025(0xd5)][_0x55c025(0xb8)](),'startColumn':0x0,'endColumn':this[_0x55c025(0xd5)]['getMaxColumns']()}),_0x38f1dc=await _0x1deec5[_0x55c025(0xc9)](_0x2ebdc4),_0xaa0835=this['getRange'](),_0x18af06=[];for(let _0x5c17c3=0x0;_0x5c17c3<_0x38f1dc[_0x55c025(0xc2)];_0x5c17c3++){const _0x3e5ada=_0x38f1dc[_0x5c17c3],_0x460b64=_0x3e5ada['filledRanges'],_0xd57c14=[];for(let _0xa91eff=0x0;_0xa91eff<_0x460b64[_0x55c025(0xc2)];_0xa91eff++){const _0x35939e=_0x460b64[_0xa91eff],_0x977629=_0x1a495b(_0x35939e,_0xaa0835);_0x977629&&_0xd57c14[_0x55c025(0xc0)](_0x977629);}if(_0xd57c14['length']>0x0){if(_0x3e5ada[_0x55c025(0xcb)]=_0xd57c14,!(_0x3e5ada[_0x55c025(0xc8)][_0x55c025(0xa9)]>=_0xaa0835['startRow']&&_0x3e5ada[_0x55c025(0xc8)]['startRow']<=_0xaa0835['endRow']&&_0x3e5ada[_0x55c025(0xc8)][_0x55c025(0xad)]>=_0xaa0835[_0x55c025(0xad)]&&_0x3e5ada[_0x55c025(0xc8)]['startColumn']<=_0xaa0835[_0x55c025(0xb3)])){const _0x5e77d9=_0xd57c14[0x0],_0x36e016=_0x5e77d9[_0x55c025(0xa9)]-_0x3e5ada[_0x55c025(0xc8)]['startRow'],_0x3c6d22=_0x5e77d9['startColumn']-_0x3e5ada[_0x55c025(0xc8)][_0x55c025(0xad)];_0x3e5ada['formula']=await _0x1deec5['moveFormulaRefOffset'](_0x3e5ada[_0x55c025(0xb6)],_0x3c6d22,_0x36e016),_0x3e5ada[_0x55c025(0xc8)]={'startRow':_0x5e77d9['startRow'],'endRow':_0x5e77d9['startRow'],'startColumn':_0x5e77d9['startColumn'],'endColumn':_0x5e77d9[_0x55c025(0xad)]};}_0x18af06[_0x55c025(0xc0)](_0x3e5ada);}}return _0x18af06;}async[_0xe8b6df(0xd2)](){const _0xae98f9=_0xe8b6df;return(await this[_0xae98f9(0xb1)]())[_0xae98f9(0xba)](_0x3f8315);}[_0xe8b6df(0xce)](_0x21e34d){const _0x24bd7c=_0xe8b6df,_0x5ce4c8=this[_0x24bd7c(0xbf)][_0x24bd7c(0xb7)](_0x93a90e),_0x420195=(({startRow:_0x23efe8,endRow:_0x470c3c,startColumn:_0x128c09,endColumn:_0x57a76c})=>{const _0x4a1330=_0x24bd7c,_0x37b62b=[];for(let _0x474c27=_0x23efe8;_0x474c27<=_0x470c3c;_0x474c27++){const _0x8ab082=[];for(let _0x1da619=_0x128c09;_0x1da619<=_0x57a76c;_0x1da619++)_0x8ab082[_0x4a1330(0xc0)](this[_0x4a1330(0xd5)][_0x4a1330(0xc6)](_0x474c27,_0x1da619));_0x37b62b[_0x4a1330(0xc0)](_0x8ab082);}return _0x37b62b;})({'startRow':0x0,'endRow':this[_0x24bd7c(0xd5)][_0x24bd7c(0xb8)](),'startColumn':0x0,'endColumn':this['_worksheet'][_0x24bd7c(0xa8)]()});_0x5ce4c8[_0x24bd7c(0xbd)](_0x21e34d);const _0x1197cd=_0x5ce4c8[_0x24bd7c(0xac)](_0x420195,this['_workbook'],this['_worksheet']),_0x43b514=this[_0x24bd7c(0xbe)](),_0x557f7b=[];for(let _0x2679c4=0x0;_0x2679c4<_0x1197cd[_0x24bd7c(0xc2)];_0x2679c4++){const _0x1207d4=_0x1197cd[_0x2679c4],_0x5e990f=_0x1207d4[_0x24bd7c(0xcb)],_0x4e3cdc=[];for(let _0x31faf2=0x0;_0x31faf2<_0x5e990f[_0x24bd7c(0xc2)];_0x31faf2++){const _0x5a6908=_0x5e990f[_0x31faf2],_0x5e6665=_0x1a495b(_0x5a6908,_0x43b514);_0x5e6665&&_0x4e3cdc[_0x24bd7c(0xc0)](_0x5e6665);}_0x4e3cdc[_0x24bd7c(0xc2)]>0x0&&(_0x1207d4[_0x24bd7c(0xcb)]=_0x4e3cdc,_0x557f7b['push'](_0x1207d4));}return _0x557f7b;}[_0xe8b6df(0xc7)](_0x3102f1){const _0x5843b9=_0xe8b6df;return this[_0x5843b9(0xce)](_0x3102f1)[_0x5843b9(0xba)](_0x354f65);}['getSizeUsages'](_0x2735f7){const _0x393294=_0xe8b6df,_0x3dcb91=this[_0x393294(0xbf)][_0x393294(0xb7)](_0x261405),_0x5eb62b=this[_0x393294(0xbe)]();return _0x3dcb91[_0x393294(0xbd)](_0x2735f7),_0x3dcb91[_0x393294(0xca)](this[_0x393294(0xd5)],_0x5eb62b[_0x393294(0xa9)],_0x5eb62b[_0x393294(0xb4)],_0x5eb62b[_0x393294(0xad)],_0x5eb62b[_0x393294(0xb3)]);}[_0xe8b6df(0xd6)](_0x48ef64){const _0x43743c=_0xe8b6df,_0x54ad52=this['getSizeUsages'](_0x48ef64);return this['_injector'][_0x43743c(0xb7)](_0x261405)[_0x43743c(0xaa)](_0x54ad52);}}function _0x5e4e(_0x488ef4,_0x1762fa){_0x488ef4=_0x488ef4-0xa8;const _0x47699a=_0x4769();let _0x5e4e47=_0x47699a[_0x488ef4];return _0x5e4e47;}_0x112a41['extend'](M);