@univerjs-pro/sheets-mcp 0.15.0-insiders.20260108-47c73e3 → 0.15.0-insiders.20260110-48b77c8
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 +10 -10
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x47991f=_0x2268;(function(_0x2fceeb,_0x39e5af){const _0x4c971e=_0x2268,_0x3c034b=_0x2fceeb();while(!![]){try{const _0x538aef=parseInt(_0x4c971e(0x134))/0x1+-parseInt(_0x4c971e(0x124))/0x2*(-parseInt(_0x4c971e(0x122))/0x3)+parseInt(_0x4c971e(0x121))/0x4+parseInt(_0x4c971e(0x141))/0x5+parseInt(_0x4c971e(0x125))/0x6+-parseInt(_0x4c971e(0x128))/0x7+-parseInt(_0x4c971e(0x129))/0x8;if(_0x538aef===_0x39e5af)break;else _0x3c034b['push'](_0x3c034b['shift']());}catch(_0xf746de){_0x3c034b['push'](_0x3c034b['shift']());}}}(_0x2747,0xa52b4));function _0x2268(_0x19b45c,_0x436b52){_0x19b45c=_0x19b45c-0x115;const _0x2747f1=_0x2747();let _0x2268ae=_0x2747f1[_0x19b45c];return _0x2268ae;}const U=require('@univerjs/core/facade');require('@univerjs/sheets-formula/facade'),require('@univerjs/sheets-data-validation/facade');function _0x2747(){const _0xd0d39d=['endColumn','updateConfig','endRow','getRange','getCellDataGrid','getAllFormulaUsages','FRange','getAllStyleUsages','156693FIDocd','getMaxRows','getSizeUsages','get','toA1','getStyleUsagesAsA1','startRow','moveFormulaRefOffset','_worksheet','length','getIntersectRange','push','getAllDataValidationErrorAsync','640895UFCrNA','filledRanges','formula','getStyleUsages','getCellRaw','getActiveWorkbook','extend','styleToA1','getMaxColumns','IFormulaUsageAnalyzer','_workbook','startColumn','getAllSizeUsages','formulaToA1','IStyleUsageAnalyzer','FWorkbook','getFormulaUsages','map','getFormulaUsagesAsA1','getSizeUsagesAsA1','getLintErrors','2691504IYofPB','4033017FBvBAw','FUniver','2eHoymP','5248770mMnHst','ISizeUsageAnalyzer','firstOccurrence','6456660zaQGYE','12623760GjvElr','FWorksheet','_injector'];_0x2747=function(){return _0xd0d39d;};return _0x2747();}const f=require('@univerjs/sheets/facade'),g=require('@univerjs-pro/sheets-mcp'),m=require('@univerjs/core');class y extends U[_0x47991f(0x123)]{async[_0x47991f(0x120)](){const _0x43ac83=_0x47991f;return this[_0x43ac83(0x146)]()[_0x43ac83(0x120)]();}}U[_0x47991f(0x123)][_0x47991f(0x147)](y);class C extends f[_0x47991f(0x11b)]{async[_0x47991f(0x120)](){const _0x437135=_0x47991f,_0x1f74d9=this['getAllFormulaError'](),_0x820d03=await this[_0x437135(0x140)]();return{'formulaErrors':_0x1f74d9,'dataValidationErrors':_0x820d03};}}f['FWorkbook'][_0x47991f(0x147)](C);class z extends f[_0x47991f(0x12a)]{async[_0x47991f(0x11c)](){const _0x101ce1=_0x47991f,_0x701ced=this[_0x101ce1(0x12b)]['get'](g[_0x101ce1(0x115)]),_0x2fa85d=this[_0x101ce1(0x12f)](0x0,0x0,this[_0x101ce1(0x135)](),this[_0x101ce1(0x149)]())[_0x101ce1(0x130)]();return await _0x701ced[_0x101ce1(0x131)](_0x2fa85d);}async[_0x47991f(0x11e)](){const _0x3e506e=_0x47991f;return(await this['getFormulaUsages']())[_0x3e506e(0x11d)](g['formulaToA1']);}[_0x47991f(0x144)](_0x4d67a7){const _0x298ece=_0x47991f,_0x5ec434=this[_0x298ece(0x12b)][_0x298ece(0x137)](g[_0x298ece(0x11a)]),_0x7c7c84=this[_0x298ece(0x12f)](0x0,0x0,this[_0x298ece(0x135)](),this[_0x298ece(0x149)]())[_0x298ece(0x130)]();return _0x5ec434[_0x298ece(0x12d)](_0x4d67a7),_0x5ec434[_0x298ece(0x133)](_0x7c7c84,this[_0x298ece(0x116)],this[_0x298ece(0x13c)]);}[_0x47991f(0x139)](_0x5e13de){const _0x1b0550=_0x47991f;return this[_0x1b0550(0x144)](_0x5e13de)['map'](g[_0x1b0550(0x148)]);}['getSizeUsages'](_0x31e31f){const _0x39dc3a=_0x47991f,_0x2ef67b=this['_injector'][_0x39dc3a(0x137)](g[_0x39dc3a(0x126)]);return _0x2ef67b['updateConfig'](_0x31e31f),_0x2ef67b[_0x39dc3a(0x118)](this[_0x39dc3a(0x13c)]);}['getSizeUsagesAsA1'](_0x191989){const _0x2d33f5=_0x47991f,_0x16969f=this['_injector'][_0x2d33f5(0x137)](g[_0x2d33f5(0x126)]);_0x16969f['updateConfig'](_0x191989);const _0x5bc7ea=_0x16969f[_0x2d33f5(0x118)](this[_0x2d33f5(0x13c)]);return _0x16969f['toA1'](_0x5bc7ea);}}f[_0x47991f(0x12a)][_0x47991f(0x147)](z);class S extends f[_0x47991f(0x132)]{async[_0x47991f(0x11c)](){const _0x2a9c9c=_0x47991f,_0x5a90cd=this[_0x2a9c9c(0x12b)]['get'](g['IFormulaUsageAnalyzer']),_0x343120=(({startRow:_0x1a8f5c,endRow:_0x140019,startColumn:_0x39d51c,endColumn:_0xe684fd})=>{const _0x530ae0=_0x2a9c9c,_0x366040=[];for(let _0x2488bf=_0x1a8f5c;_0x2488bf<=_0x140019;_0x2488bf++){const _0x167955=[];for(let _0x4dc1ab=_0x39d51c;_0x4dc1ab<=_0xe684fd;_0x4dc1ab++)_0x167955[_0x530ae0(0x13f)](this['_worksheet']['getCellRaw'](_0x2488bf,_0x4dc1ab));_0x366040['push'](_0x167955);}return _0x366040;})({'startRow':0x0,'endRow':this[_0x2a9c9c(0x13c)][_0x2a9c9c(0x135)](),'startColumn':0x0,'endColumn':this[_0x2a9c9c(0x13c)][_0x2a9c9c(0x149)]()}),_0x258619=await _0x5a90cd[_0x2a9c9c(0x131)](_0x343120),_0x13186a=this['getRange'](),_0x2b8175=[];for(let _0x562d23=0x0;_0x562d23<_0x258619[_0x2a9c9c(0x13d)];_0x562d23++){const _0x4a0daf=_0x258619[_0x562d23],_0x34c2dc=_0x4a0daf['filledRanges'],_0x2c1742=[];for(let _0x80c179=0x0;_0x80c179<_0x34c2dc[_0x2a9c9c(0x13d)];_0x80c179++){const _0x5a97e5=_0x34c2dc[_0x80c179],_0x44150c=m[_0x2a9c9c(0x13e)](_0x5a97e5,_0x13186a);_0x44150c&&_0x2c1742['push'](_0x44150c);}if(_0x2c1742['length']>0x0){if(_0x4a0daf[_0x2a9c9c(0x142)]=_0x2c1742,!(_0x4a0daf[_0x2a9c9c(0x127)]['startRow']>=_0x13186a[_0x2a9c9c(0x13a)]&&_0x4a0daf[_0x2a9c9c(0x127)][_0x2a9c9c(0x13a)]<=_0x13186a['endRow']&&_0x4a0daf[_0x2a9c9c(0x127)]['startColumn']>=_0x13186a[_0x2a9c9c(0x117)]&&_0x4a0daf[_0x2a9c9c(0x127)][_0x2a9c9c(0x117)]<=_0x13186a[_0x2a9c9c(0x12c)])){const _0x539988=_0x2c1742[0x0],_0x1656ca=_0x539988[_0x2a9c9c(0x13a)]-_0x4a0daf[_0x2a9c9c(0x127)][_0x2a9c9c(0x13a)],_0x1157ed=_0x539988[_0x2a9c9c(0x117)]-_0x4a0daf[_0x2a9c9c(0x127)][_0x2a9c9c(0x117)];_0x4a0daf['formula']=await _0x5a90cd[_0x2a9c9c(0x13b)](_0x4a0daf[_0x2a9c9c(0x143)],_0x1157ed,_0x1656ca),_0x4a0daf[_0x2a9c9c(0x127)]={'startRow':_0x539988[_0x2a9c9c(0x13a)],'endRow':_0x539988['startRow'],'startColumn':_0x539988[_0x2a9c9c(0x117)],'endColumn':_0x539988[_0x2a9c9c(0x117)]};}_0x2b8175[_0x2a9c9c(0x13f)](_0x4a0daf);}}return _0x2b8175;}async[_0x47991f(0x11e)](){const _0x19ad24=_0x47991f;return(await this['getFormulaUsages']())[_0x19ad24(0x11d)](g[_0x19ad24(0x119)]);}[_0x47991f(0x144)](_0x570701){const _0x123a50=_0x47991f,_0x6ba5c0=this[_0x123a50(0x12b)][_0x123a50(0x137)](g[_0x123a50(0x11a)]),_0x206651=(({startRow:_0x4cbe18,endRow:_0x544a4d,startColumn:_0x2db83f,endColumn:_0x45fd0e})=>{const _0x2290f2=_0x123a50,_0x3acfdc=[];for(let _0x4d3cb1=_0x4cbe18;_0x4d3cb1<=_0x544a4d;_0x4d3cb1++){const _0x22660b=[];for(let _0x4a08b4=_0x2db83f;_0x4a08b4<=_0x45fd0e;_0x4a08b4++)_0x22660b[_0x2290f2(0x13f)](this[_0x2290f2(0x13c)][_0x2290f2(0x145)](_0x4d3cb1,_0x4a08b4));_0x3acfdc[_0x2290f2(0x13f)](_0x22660b);}return _0x3acfdc;})({'startRow':0x0,'endRow':this['_worksheet'][_0x123a50(0x135)](),'startColumn':0x0,'endColumn':this[_0x123a50(0x13c)]['getMaxColumns']()});_0x6ba5c0[_0x123a50(0x12d)](_0x570701);const _0x770b0b=_0x6ba5c0['getAllStyleUsages'](_0x206651,this['_workbook'],this['_worksheet']),_0x508af5=this[_0x123a50(0x12f)](),_0x2f0da3=[];for(let _0x4f5213=0x0;_0x4f5213<_0x770b0b[_0x123a50(0x13d)];_0x4f5213++){const _0x346a0e=_0x770b0b[_0x4f5213],_0x214b43=_0x346a0e[_0x123a50(0x142)],_0x2232b5=[];for(let _0x1a9d0f=0x0;_0x1a9d0f<_0x214b43['length'];_0x1a9d0f++){const _0x51a0d1=_0x214b43[_0x1a9d0f],_0xa1f876=m['getIntersectRange'](_0x51a0d1,_0x508af5);_0xa1f876&&_0x2232b5[_0x123a50(0x13f)](_0xa1f876);}_0x2232b5[_0x123a50(0x13d)]>0x0&&(_0x346a0e[_0x123a50(0x142)]=_0x2232b5,_0x2f0da3[_0x123a50(0x13f)](_0x346a0e));}return _0x2f0da3;}['getStyleUsagesAsA1'](_0x1d0946){const _0x3010ac=_0x47991f;return this[_0x3010ac(0x144)](_0x1d0946)[_0x3010ac(0x11d)](g['styleToA1']);}[_0x47991f(0x136)](_0x5e5bd2){const _0x11f66c=_0x47991f,_0x4ea1e3=this[_0x11f66c(0x12b)][_0x11f66c(0x137)](g[_0x11f66c(0x126)]),_0x79cd83=this['getRange']();return _0x4ea1e3['updateConfig'](_0x5e5bd2),_0x4ea1e3[_0x11f66c(0x118)](this['_worksheet'],_0x79cd83[_0x11f66c(0x13a)],_0x79cd83[_0x11f66c(0x12e)],_0x79cd83[_0x11f66c(0x117)],_0x79cd83[_0x11f66c(0x12c)]);}[_0x47991f(0x11f)](_0xb5f1c4){const _0x301e3f=_0x47991f,_0x15c129=this[_0x301e3f(0x136)](_0xb5f1c4);return this[_0x301e3f(0x12b)][_0x301e3f(0x137)](g[_0x301e3f(0x126)])[_0x301e3f(0x138)](_0x15c129);}}f[_0x47991f(0x132)]['extend'](S);
|