@univerjs-pro/sheets-mcp 0.15.3 → 0.15.4
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 +12 -12
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x1c49a1=_0xcbed;(function(_0xd0ee27,_0x5b821a){const _0x13878d=_0xcbed,_0x268f23=_0xd0ee27();while(!![]){try{const _0x29f058=-parseInt(_0x13878d(0x93))/0x1*(parseInt(_0x13878d(0xb2))/0x2)+-parseInt(_0x13878d(0x95))/0x3+parseInt(_0x13878d(0x94))/0x4+-parseInt(_0x13878d(0xb1))/0x5+-parseInt(_0x13878d(0x8a))/0x6*(parseInt(_0x13878d(0xa3))/0x7)+-parseInt(_0x13878d(0xaf))/0x8*(-parseInt(_0x13878d(0x90))/0x9)+parseInt(_0x13878d(0xa8))/0xa;if(_0x29f058===_0x5b821a)break;else _0x268f23['push'](_0x268f23['shift']());}catch(_0x8573ef){_0x268f23['push'](_0x268f23['shift']());}}}(_0x22aa,0xd323b));import{FUniver as _0x3e9580}from'@univerjs/core/facade';function _0xcbed(_0x2c942c,_0x562ca3){_0x2c942c=_0x2c942c-0x87;const _0x22aa92=_0x22aa();let _0xcbeda0=_0x22aa92[_0x2c942c];return _0xcbeda0;}import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x45457d,FWorksheet as _0x2e3295,FRange as _0x481074}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x2e7dad,formulaToA1 as _0x1a96b5,IStyleUsageAnalyzer as _0x1b11d5,styleToA1 as _0x13223d,ISizeUsageAnalyzer as _0x32bca9}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x3d7dd7}from'@univerjs/core';class z extends _0x3e9580{async['getLintErrors'](){const _0xbc20aa=_0xcbed;return this[_0xbc20aa(0x92)]()['getLintErrors']();}}_0x3e9580['extend'](z);class _ extends _0x45457d{async[_0x1c49a1(0x89)](){const _0x5b2fb0=_0x1c49a1,_0x2f2076=this[_0x5b2fb0(0xa7)](),_0x2214c8=await this[_0x5b2fb0(0x8b)]();return{'formulaErrors':_0x2f2076,'dataValidationErrors':_0x2214c8};}}_0x45457d[_0x1c49a1(0xa6)](_);class x extends _0x2e3295{async[_0x1c49a1(0xa0)](){const _0x3cf8fb=_0x1c49a1,_0x30db74=this[_0x3cf8fb(0xac)]['get'](_0x2e7dad),_0x3bc717=this[_0x3cf8fb(0x9b)](0x0,0x0,this['getMaxRows'](),this[_0x3cf8fb(0x97)]())[_0x3cf8fb(0x9f)]();return await _0x30db74[_0x3cf8fb(0x8f)](_0x3bc717);}async[_0x1c49a1(0x8d)](){const _0x10112f=_0x1c49a1;return(await this['getFormulaUsages']())[_0x10112f(0x98)](_0x1a96b5);}[_0x1c49a1(0x9d)](_0x1d1a55){const _0x2692e6=_0x1c49a1,_0x49255c=this['_injector'][_0x2692e6(0x9c)](_0x1b11d5),_0x2b9f4b=this[_0x2692e6(0x9b)](0x0,0x0,this['getMaxRows'](),this[_0x2692e6(0x97)]())[_0x2692e6(0x9f)]();return _0x49255c[_0x2692e6(0xaa)](_0x1d1a55),_0x49255c[_0x2692e6(0xab)](_0x2b9f4b,this[_0x2692e6(0xa9)],this[_0x2692e6(0x8c)]);}[_0x1c49a1(0x88)](_0x45366c){const _0x49d702=_0x1c49a1;return this[_0x49d702(0x9d)](_0x45366c)[_0x49d702(0x98)](_0x13223d);}[_0x1c49a1(0x9a)](_0x5496af){const _0x4aefd8=_0x1c49a1,_0xf91efe=this[_0x4aefd8(0xac)][_0x4aefd8(0x9c)](_0x32bca9);return _0xf91efe[_0x4aefd8(0xaa)](_0x5496af),_0xf91efe[_0x4aefd8(0xb0)](this[_0x4aefd8(0x8c)]);}[_0x1c49a1(0x96)](_0x3ba59b){const _0x2be234=_0x1c49a1,_0x456a57=this[_0x2be234(0xac)][_0x2be234(0x9c)](_0x32bca9);_0x456a57[_0x2be234(0xaa)](_0x3ba59b);const _0x24325e=_0x456a57[_0x2be234(0xb0)](this['_worksheet']);return _0x456a57[_0x2be234(0x8e)](_0x24325e);}}_0x2e3295[_0x1c49a1(0xa6)](x);class M extends _0x481074{async[_0x1c49a1(0xa0)](){const _0x10f8fb=_0x1c49a1,_0x1249dd=this[_0x10f8fb(0xac)][_0x10f8fb(0x9c)](_0x2e7dad),_0x376406=(({startRow:_0x27a097,endRow:_0x7aef56,startColumn:_0x51a0e6,endColumn:_0x292f81})=>{const _0x57c4f8=_0x10f8fb,_0x258d5d=[];for(let _0x2daed5=_0x27a097;_0x2daed5<=_0x7aef56;_0x2daed5++){const _0x4c4b16=[];for(let _0x1011c1=_0x51a0e6;_0x1011c1<=_0x292f81;_0x1011c1++)_0x4c4b16[_0x57c4f8(0xa2)](this[_0x57c4f8(0x8c)][_0x57c4f8(0xb3)](_0x2daed5,_0x1011c1));_0x258d5d[_0x57c4f8(0xa2)](_0x4c4b16);}return _0x258d5d;})({'startRow':0x0,'endRow':this[_0x10f8fb(0x8c)][_0x10f8fb(0xa4)](),'startColumn':0x0,'endColumn':this['_worksheet']['getMaxColumns']()}),_0x4b06ca=await _0x1249dd[_0x10f8fb(0x8f)](_0x376406),_0x3bdc53=this['getRange'](),_0x380e22=[];for(let _0x452169=0x0;_0x452169<_0x4b06ca[_0x10f8fb(0xb4)];_0x452169++){const _0x39796b=_0x4b06ca[_0x452169],_0x1921fd=_0x39796b[_0x10f8fb(0x91)],_0x5d97cd=[];for(let _0x14974f=0x0;_0x14974f<_0x1921fd[_0x10f8fb(0xb4)];_0x14974f++){const _0x539d2b=_0x1921fd[_0x14974f],_0x495deb=_0x3d7dd7(_0x539d2b,_0x3bdc53);_0x495deb&&_0x5d97cd[_0x10f8fb(0xa2)](_0x495deb);}if(_0x5d97cd[_0x10f8fb(0xb4)]>0x0){if(_0x39796b[_0x10f8fb(0x91)]=_0x5d97cd,!(_0x39796b[_0x10f8fb(0x9e)][_0x10f8fb(0xa1)]>=_0x3bdc53[_0x10f8fb(0xa1)]&&_0x39796b[_0x10f8fb(0x9e)][_0x10f8fb(0xa1)]<=_0x3bdc53[_0x10f8fb(0xad)]&&_0x39796b[_0x10f8fb(0x9e)]['startColumn']>=_0x3bdc53['startColumn']&&_0x39796b[_0x10f8fb(0x9e)][_0x10f8fb(0x87)]<=_0x3bdc53['endColumn'])){const _0x1198d4=_0x5d97cd[0x0],_0x27f4d4=_0x1198d4[_0x10f8fb(0xa1)]-_0x39796b[_0x10f8fb(0x9e)][_0x10f8fb(0xa1)],_0x12c328=_0x1198d4[_0x10f8fb(0x87)]-_0x39796b[_0x10f8fb(0x9e)][_0x10f8fb(0x87)];_0x39796b[_0x10f8fb(0x99)]=await _0x1249dd[_0x10f8fb(0xae)](_0x39796b[_0x10f8fb(0x99)],_0x12c328,_0x27f4d4),_0x39796b[_0x10f8fb(0x9e)]={'startRow':_0x1198d4[_0x10f8fb(0xa1)],'endRow':_0x1198d4[_0x10f8fb(0xa1)],'startColumn':_0x1198d4[_0x10f8fb(0x87)],'endColumn':_0x1198d4['startColumn']};}_0x380e22[_0x10f8fb(0xa2)](_0x39796b);}}return _0x380e22;}async[_0x1c49a1(0x8d)](){const _0x2e17d4=_0x1c49a1;return(await this['getFormulaUsages']())[_0x2e17d4(0x98)](_0x1a96b5);}['getStyleUsages'](_0x339d55){const _0x30c173=_0x1c49a1,_0x5095d5=this[_0x30c173(0xac)][_0x30c173(0x9c)](_0x1b11d5),_0x21a2c4=(({startRow:_0x2e660f,endRow:_0x34b658,startColumn:_0x50c86c,endColumn:_0x4b2163})=>{const _0x39c032=_0x30c173,_0x2f4ce5=[];for(let _0x206262=_0x2e660f;_0x206262<=_0x34b658;_0x206262++){const _0x313f4d=[];for(let _0x26743a=_0x50c86c;_0x26743a<=_0x4b2163;_0x26743a++)_0x313f4d['push'](this[_0x39c032(0x8c)][_0x39c032(0xb3)](_0x206262,_0x26743a));_0x2f4ce5['push'](_0x313f4d);}return _0x2f4ce5;})({'startRow':0x0,'endRow':this[_0x30c173(0x8c)][_0x30c173(0xa4)](),'startColumn':0x0,'endColumn':this['_worksheet'][_0x30c173(0x97)]()});_0x5095d5[_0x30c173(0xaa)](_0x339d55);const _0x15f6d5=_0x5095d5[_0x30c173(0xab)](_0x21a2c4,this[_0x30c173(0xa9)],this['_worksheet']),_0x2a134d=this['getRange'](),_0x22a84d=[];for(let _0x2745f0=0x0;_0x2745f0<_0x15f6d5[_0x30c173(0xb4)];_0x2745f0++){const _0x32e298=_0x15f6d5[_0x2745f0],_0x325b47=_0x32e298['filledRanges'],_0x1de2e6=[];for(let _0x5a1617=0x0;_0x5a1617<_0x325b47[_0x30c173(0xb4)];_0x5a1617++){const _0x33e675=_0x325b47[_0x5a1617],_0x1323ed=_0x3d7dd7(_0x33e675,_0x2a134d);_0x1323ed&&_0x1de2e6[_0x30c173(0xa2)](_0x1323ed);}_0x1de2e6[_0x30c173(0xb4)]>0x0&&(_0x32e298[_0x30c173(0x91)]=_0x1de2e6,_0x22a84d['push'](_0x32e298));}return _0x22a84d;}['getStyleUsagesAsA1'](_0x5abb36){const _0x163750=_0x1c49a1;return this[_0x163750(0x9d)](_0x5abb36)[_0x163750(0x98)](_0x13223d);}['getSizeUsages'](_0x297871){const _0x2beb26=_0x1c49a1,_0x1ebce0=this['_injector'][_0x2beb26(0x9c)](_0x32bca9),_0x4e0dd4=this[_0x2beb26(0x9b)]();return _0x1ebce0['updateConfig'](_0x297871),_0x1ebce0[_0x2beb26(0xb0)](this[_0x2beb26(0x8c)],_0x4e0dd4[_0x2beb26(0xa1)],_0x4e0dd4[_0x2beb26(0xad)],_0x4e0dd4[_0x2beb26(0x87)],_0x4e0dd4[_0x2beb26(0xa5)]);}[_0x1c49a1(0x96)](_0x4d3c60){const _0xf1a4f5=_0x1c49a1,_0x4468a6=this[_0xf1a4f5(0x9a)](_0x4d3c60);return this[_0xf1a4f5(0xac)][_0xf1a4f5(0x9c)](_0x32bca9)[_0xf1a4f5(0x8e)](_0x4468a6);}}function _0x22aa(){const _0xbf8748=['7945LqJmCL','getMaxRows','endColumn','extend','getAllFormulaError','40573060CQtYrH','_workbook','updateConfig','getAllStyleUsages','_injector','endRow','moveFormulaRefOffset','1459232joHaTP','getAllSizeUsages','2050410yzzLpq','2gzgmwY','getCellRaw','length','startColumn','getStyleUsagesAsA1','getLintErrors','7794vkmSOW','getAllDataValidationErrorAsync','_worksheet','getFormulaUsagesAsA1','toA1','getAllFormulaUsages','18ITOeks','filledRanges','getActiveWorkbook','1415667YplBgd','4246120CISDQQ','3956109goRDUy','getSizeUsagesAsA1','getMaxColumns','map','formula','getSizeUsages','getRange','get','getStyleUsages','firstOccurrence','getCellDataGrid','getFormulaUsages','startRow','push'];_0x22aa=function(){return _0xbf8748;};return _0x22aa();}_0x481074[_0x1c49a1(0xa6)](M);
|