@univer-cli/resource-library-command 1.6.1 → 1.6.2

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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -1
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- (function(_0x1eac97,_0x55d48c){const _0x40ad3d=_0x276a,_0x48c843=_0x1eac97();while(!![]){try{const _0xa52d9a=parseInt(_0x40ad3d(0x121))/0x1*(-parseInt(_0x40ad3d(0x10d))/0x2)+parseInt(_0x40ad3d(0xe7))/0x3*(-parseInt(_0x40ad3d(0x115))/0x4)+-parseInt(_0x40ad3d(0x105))/0x5+parseInt(_0x40ad3d(0x136))/0x6*(parseInt(_0x40ad3d(0x125))/0x7)+parseInt(_0x40ad3d(0xe8))/0x8+-parseInt(_0x40ad3d(0x10f))/0x9*(parseInt(_0x40ad3d(0x109))/0xa)+parseInt(_0x40ad3d(0xf5))/0xb;if(_0xa52d9a===_0x55d48c)break;else _0x48c843['push'](_0x48c843['shift']());}catch(_0x4509dd){_0x48c843['push'](_0x48c843['shift']());}}}(_0x3acf,0x75c9c));import{isResourceLibraryError as _0x56730a}from'@univer-cli/resource-library';function _0x276a(_0x3acd82,_0x337f3e){_0x3acd82=_0x3acd82-0xe3;const _0x3acf8f=_0x3acf();let _0x276a34=_0x3acf8f[_0x3acd82];return _0x276a34;}import{Command as _0x46f7ce,InvalidArgumentError as _0x5c5193,Option as _0x473a8d}from'commander';var i=0x1e;function a(_0xd8488a){const _0x47beb7=_0x276a;let _0xba8488=new _0x46f7ce(_0x47beb7(0xf0))[_0x47beb7(0x133)](_0x47beb7(0xf4))[_0x47beb7(0x129)](()=>_0xba8488[_0x47beb7(0x110)]());_0xba8488[_0x47beb7(0x13b)]('registries')['description']('List\x20available\x20resource\x20registries')[_0x47beb7(0x114)](_0x47beb7(0x11f),'write\x20structured\x20JSON')[_0x47beb7(0x129)](async _0x3cb26f=>{const _0x216dc2=_0x47beb7;let _0x3c5fc8=await c(_0xba8488,async()=>_0xd8488a[_0x216dc2(0x101)]()['listRegistries']());l(_0xba8488,_0x3cb26f,{'registries':_0x3c5fc8},d(_0x3c5fc8));}),_0xba8488[_0x47beb7(0x13b)]('find')[_0x47beb7(0x133)](_0x47beb7(0x12c))['argument'](_0x47beb7(0x134),_0x47beb7(0x10e))['addOption'](new _0x473a8d(_0x47beb7(0xf1),_0x47beb7(0x138))['argParser'](o)[_0x47beb7(0xf9)]([]))[_0x47beb7(0x119)](new _0x473a8d('--limit\x20<number>','maximum\x20number\x20of\x20results')['argParser'](s)[_0x47beb7(0xf9)](i))[_0x47beb7(0x114)](_0x47beb7(0x11f),_0x47beb7(0xe9))[_0x47beb7(0x129)](async(_0x2559f4,_0xebb41f)=>{const _0x551340=_0x47beb7;let _0x12aba4=await c(_0xba8488,async()=>_0xd8488a[_0x551340(0x101)]()['find']({'queries':_0x2559f4,'registries':_0xebb41f[_0x551340(0xe4)],'limit':_0xebb41f[_0x551340(0xff)]}));l(_0xba8488,_0xebb41f,{'query':{'queries':_0x2559f4,'registries':_0xebb41f[_0x551340(0xe4)]},'resources':_0x12aba4[_0x551340(0xf0)],'total':_0x12aba4[_0x551340(0x13f)],'limit':_0xebb41f[_0x551340(0xff)]},f(_0x12aba4['resources'],_0x12aba4['total']));}),_0xba8488[_0x47beb7(0x13b)]('export')[_0x47beb7(0x133)](_0x47beb7(0x130))['argument'](_0x47beb7(0x132),'canonical\x20<registryId>/<resourceId>\x20handles')['option']('--out\x20<directory>',_0x47beb7(0x12f))[_0x47beb7(0x114)](_0x47beb7(0x11f),_0x47beb7(0xe9))['action'](async(_0x32b759,_0x581626)=>{const _0x47274c=_0x47beb7;if(_0x581626[_0x47274c(0xee)]===void 0x0){_0x32b759[_0x47274c(0xe5)]!==0x1&&_0xba8488[_0x47274c(0xfb)](_0x47274c(0x124),{'code':_0x47274c(0x11c),'exitCode':0x1});let _0x21842a=await c(_0xba8488,async()=>_0xd8488a[_0x47274c(0x101)]()[_0x47274c(0x139)]({'handle':_0x32b759[0x0]}));_0x581626['json']===!0x0?u(_0xba8488,_0x21842a):_0xba8488[_0x47274c(0x106)]()[_0x47274c(0xed)]?.(_0x21842a[_0x47274c(0x111)]);return;}let _0x370255=await c(_0xba8488,async()=>_0xd8488a['openLibrary']()[_0x47274c(0x131)]({'handles':_0x32b759,'destination':_0x581626[_0x47274c(0xee)]}));if(_0x581626[_0x47274c(0x128)]===!0x0)u(_0xba8488,_0x370255);else{let _0x9326b7=_0xba8488[_0x47274c(0x106)]();for(let _0x3bce85 of _0x370255[_0x47274c(0x135)])_0x9326b7[_0x47274c(0xed)]?.(_0x3bce85[_0x47274c(0x13a)]+'\x0a');for(let _0x19c552 of _0x370255[_0x47274c(0x10c)])_0x9326b7[_0x47274c(0x13d)]?.(_0x19c552[_0x47274c(0x141)]+':\x20'+_0x19c552[_0x47274c(0xf2)]+':\x20'+_0x19c552[_0x47274c(0x102)]+'\x0a');}_0x370255['failed'][_0x47274c(0xe5)]>0x0&&_0xba8488['error'](_0x370255[_0x47274c(0x10c)][_0x47274c(0xe5)]+_0x47274c(0x120)+(_0x370255[_0x47274c(0x10c)][_0x47274c(0xe5)]===0x1?'':'s')+_0x47274c(0x10a),{'code':'resources.export.failed','exitCode':0x1});});let _0x37f243=_0xba8488[_0x47beb7(0x13b)](_0x47beb7(0x11d))['description']('Inspect\x20or\x20clear\x20the\x20resource\x20cache');return _0x37f243[_0x47beb7(0x129)](()=>_0x37f243[_0x47beb7(0x110)]()),_0x37f243[_0x47beb7(0x13b)](_0x47beb7(0x13a))[_0x47beb7(0x133)](_0x47beb7(0x137))['option'](_0x47beb7(0x11f),'write\x20structured\x20JSON')[_0x47beb7(0x129)](_0x5ed2e8=>{const _0x1ff12f=_0x47beb7;let _0x3a53ef=_0xd8488a[_0x1ff12f(0x101)]()[_0x1ff12f(0x12d)];l(_0xba8488,_0x5ed2e8,{'path':_0x3a53ef},_0x3a53ef);}),_0x37f243['command'](_0x47beb7(0xfa))[_0x47beb7(0x133)](_0x47beb7(0x127))[_0x47beb7(0x114)](_0x47beb7(0x11f),'write\x20structured\x20JSON')[_0x47beb7(0x129)](async _0x40ba43=>{const _0x11e407=_0x47beb7;let _0x18b353=await c(_0xba8488,async()=>_0xd8488a[_0x11e407(0x101)]()[_0x11e407(0x10b)]());l(_0xba8488,_0x40ba43,{'cleared':_0x18b353},'Cleared\x20'+_0x18b353['resourceCount']+_0x11e407(0x118)+p(_0x18b353[_0x11e407(0xec)])+_0x11e407(0x107)+_0x18b353[_0x11e407(0x13a)]+'.');}),_0xba8488;}function o(_0x1b1ae3,_0x71d2a5){return[..._0x71d2a5,_0x1b1ae3];}function s(_0x146fda){const _0x48ad8f=_0x276a;let _0x22b2bc=Number(_0x146fda);if(!Number[_0x48ad8f(0x108)](_0x22b2bc)||_0x22b2bc<0x1)throw new _0x5c5193(_0x48ad8f(0x103)+_0x146fda+'\x22.');return _0x22b2bc;}async function c(_0xcb5a33,_0x3f3ea0){const _0x2d628b=_0x276a;try{return await _0x3f3ea0();}catch(_0x7a9de9){throw _0x56730a(_0x7a9de9)&&_0xcb5a33[_0x2d628b(0xfb)](_0x7a9de9[_0x2d628b(0xf2)]+':\x20'+_0x7a9de9['message'],{'code':_0x2d628b(0x11e),'exitCode':0x1}),_0x7a9de9;}}function l(_0x213351,_0x1eefbe,_0x3ed456,_0x2f381){const _0x18d487=_0x276a;_0x1eefbe[_0x18d487(0x128)]===!0x0?u(_0x213351,_0x3ed456):_0x213351[_0x18d487(0x106)]()[_0x18d487(0xed)]?.(_0x2f381+'\x0a');}function u(_0x151204,_0x4f1c27){const _0x418513=_0x276a;_0x151204[_0x418513(0x106)]()[_0x418513(0xed)]?.(JSON[_0x418513(0x104)](_0x4f1c27,null,0x2)+'\x0a');}function d(_0x242d3c){const _0x317982=_0x276a;return[_0x317982(0x11b)[_0x317982(0xf3)](0x22)+'\x20\x20'+_0x317982(0x12e)[_0x317982(0x112)](0x9)+'\x20\x20'+_0x317982(0x116)[_0x317982(0x112)](0x7)+'\x20\x20'+_0x317982(0x126)['padStart'](0x6)+'\x20\x20'+_0x317982(0x100)[_0x317982(0x112)](0xa),..._0x242d3c['map'](_0x3f9ffa=>[_0x3f9ffa['id'][_0x317982(0xf3)](0x22),String(_0x3f9ffa[_0x317982(0xfd)])[_0x317982(0x112)](0x9),String(_0x3f9ffa[_0x317982(0xef)])['padStart'](0x7),String(_0x3f9ffa[_0x317982(0x12a)])[_0x317982(0x112)](0x6),(_0x3f9ffa[_0x317982(0xe3)]+'/'+_0x3f9ffa[_0x317982(0xfd)])[_0x317982(0x112)](0xa)][_0x317982(0x13e)]('\x20\x20'))][_0x317982(0x13e)]('\x0a');}function f(_0x1a6a19,_0x55acae){const _0x433ed3=_0x276a;if(_0x1a6a19[_0x433ed3(0xe5)]===0x0)return _0x433ed3(0xe6);let _0x4564b7=[_0x433ed3(0x123)[_0x433ed3(0xf3)](0x32)+'\x20\x20'+_0x433ed3(0x113)[_0x433ed3(0xf3)](0x1c)+'\x20\x20'+_0x433ed3(0x13c)[_0x433ed3(0xf3)](0x12)+'\x20\x20'+_0x433ed3(0xfe)[_0x433ed3(0xf3)](0x8)+_0x433ed3(0x140),..._0x1a6a19[_0x433ed3(0xea)](_0x4a3569=>{const _0x974cf=_0x433ed3;let _0xcb23a7=_0x4a3569[_0x974cf(0xfc)]?.[_0x974cf(0xf7)]??'-',_0x482a99=_0x4a3569['colorEditable']?'editable':'fixed',_0x49e50a=_0x4a3569['intrinsicSize'][_0x974cf(0x12b)]+'×'+_0x4a3569[_0x974cf(0xeb)]['height'];return _0x4a3569[_0x974cf(0x141)][_0x974cf(0xf3)](0x32)+'\x20\x20'+_0x4a3569[_0x974cf(0x122)][_0x974cf(0xf3)](0x1c)+'\x20\x20'+_0xcb23a7[_0x974cf(0xf3)](0x12)+'\x20\x20'+_0x482a99[_0x974cf(0xf3)](0x8)+'\x20\x20'+_0x49e50a;})];return _0x55acae>_0x1a6a19[_0x433ed3(0xe5)]&&_0x4564b7[_0x433ed3(0x117)]('…\x20'+(_0x55acae-_0x1a6a19['length'])+'\x20more;\x20raise\x20--limit\x20or\x20narrow\x20the\x20query.'),_0x4564b7[_0x433ed3(0x13e)]('\x0a');}function _0x3acf(){const _0x20db3d=['resources.invalid-input','cache','resources.failed','--json','\x20resource','1MIhqZU','name','HANDLE','Exporting\x20more\x20than\x20one\x20resource\x20requires\x20--out\x20<directory>.','1111628kBdzyQ','TAGS','Clear\x20all\x20cached\x20resources','json','action','tagCount','width','Find\x20resources\x20by\x20name,\x20description,\x20group,\x20tag,\x20or\x20keyword','cacheLocation','RESOURCES','write\x20flat\x20<registry>--<resource>.svg\x20files','Read\x20one\x20SVG\x20or\x20export\x20resources\x20to\x20a\x20directory','export','<handles...>','description','<queries...>','exported','24sFOIFS','Show\x20the\x20resource\x20cache\x20path','restrict\x20results\x20to\x20a\x20registry;\x20repeatable','read','path','command','GROUP','writeErr','join','total','\x20\x20SIZE','handle','colorEditableCount','registry','length','No\x20resources\x20matched;\x20try\x20a\x20shorter\x20substring,\x20a\x20synonym,\x20or\x20another\x20registry.','33XTnstU','5691912LeGYfs','write\x20structured\x20JSON','map','intrinsicSize','byteCount','writeOut','out','groupCount','resources','--registry\x20<id>','code','padEnd','Find\x20and\x20export\x20SVG\x20resources\x20from\x20a\x20multi-registry\x20catalog','6727985cYbgCr','toFixed','label','\x20MB','default','clear','error','group','resourceCount','COLOR','limit','EDITABLE','openLibrary','message','Expected\x20a\x20positive\x20integer;\x20received\x20\x22','stringify','310780MTRyuG','configureOutput',')\x20from\x20','isInteger','340uZAKrq','\x20could\x20not\x20be\x20exported.','clearCache','failed','647254MJEzxv','one\x20or\x20more\x20queries,\x20searched\x20independently','70065UJEbgm','outputHelp','svg','padStart','NAME','option','300148YggKjt','GROUPS','push','\x20resources\x20(','addOption','\x20KB','REGISTRY'];_0x3acf=function(){return _0x20db3d;};return _0x3acf();}function p(_0x51628e){const _0x34ed57=_0x276a;return _0x51628e<0x400?_0x51628e+'\x20B':_0x51628e<0x100000?(_0x51628e/0x400)['toFixed'](0x1)+_0x34ed57(0x11a):(_0x51628e/0x100000)[_0x34ed57(0xf6)](0x1)+_0x34ed57(0xf8);}export{a as createResourcesCommand};
1
+ (function(_0x1a7801,_0x3d4d4b){const _0x4187dc=_0x58e7,_0x11fd0e=_0x1a7801();while(!![]){try{const _0x38de00=-parseInt(_0x4187dc(0x141))/0x1*(parseInt(_0x4187dc(0x11a))/0x2)+parseInt(_0x4187dc(0x155))/0x3+-parseInt(_0x4187dc(0x15b))/0x4*(-parseInt(_0x4187dc(0x142))/0x5)+-parseInt(_0x4187dc(0x12a))/0x6+parseInt(_0x4187dc(0x15c))/0x7*(parseInt(_0x4187dc(0x13e))/0x8)+-parseInt(_0x4187dc(0x132))/0x9*(parseInt(_0x4187dc(0x120))/0xa)+-parseInt(_0x4187dc(0x152))/0xb*(-parseInt(_0x4187dc(0x169))/0xc);if(_0x38de00===_0x3d4d4b)break;else _0x11fd0e['push'](_0x11fd0e['shift']());}catch(_0x2d8f89){_0x11fd0e['push'](_0x11fd0e['shift']());}}}(_0x22c0,0x1bd71));function _0x22c0(){const _0x2332e2=['Find\x20and\x20export\x20SVG\x20resources\x20from\x20a\x20multi-registry\x20catalog','registries','cacheLocation',')\x20from\x20','padStart','TAGS','NAME','<queries...>','length','--out\x20<directory>','push','read','Cleared\x20','1100JduYbf','export','GROUP','306873VQGzHx','map','\x20MB','restrict\x20results\x20to\x20a\x20registry;\x20repeatable','padEnd','COLOR','93268iJtAVB','42NvrBOl','write\x20structured\x20JSON','byteCount','<handles...>','writeOut','failed','RESOURCES','openLibrary','command','\x20more;\x20raise\x20--limit\x20or\x20narrow\x20the\x20query.','exported','List\x20available\x20resource\x20registries','resources.failed','5580DYzUjc','out','\x20resources\x20(','resources.export.failed','join','listRegistries','svg','editable','toFixed','colorEditable','intrinsicSize','option','error','--json','group','1374wnEOXP','argument','resources','code','Read\x20one\x20SVG\x20or\x20export\x20resources\x20to\x20a\x20directory','outputHelp','10jMvWtp','No\x20resources\x20matched;\x20try\x20a\x20shorter\x20substring,\x20a\x20synonym,\x20or\x20another\x20registry.','\x20could\x20not\x20be\x20exported.','maximum\x20number\x20of\x20results','cache','configureOutput','description','Exporting\x20more\x20than\x20one\x20resource\x20requires\x20--out\x20<directory>.','argParser','tagCount','609696KirduV','limit','action','fixed','label','message','Find\x20resources\x20by\x20name,\x20description,\x20group,\x20tag,\x20or\x20keyword','writeErr','1308924UnUzZr','resourceCount','--registry\x20<id>','EDITABLE','addOption','handle','width','total','Inspect\x20or\x20clear\x20the\x20resource\x20cache','path','Clear\x20all\x20cached\x20resources','stringify','128528gsKaqx','one\x20or\x20more\x20queries,\x20searched\x20independently','name','1dqgjuO','25yScyrX','json','isInteger'];_0x22c0=function(){return _0x2332e2;};return _0x22c0();}import{isResourceLibraryError as _0x253932}from'@univer-cli/resource-library';import{Command as _0xe5892f,InvalidArgumentError as _0x498a04,Option as _0x558ee4}from'commander';var i=0x1e;function _0x58e7(_0x5114d6,_0x333be7){_0x5114d6=_0x5114d6-0x116;const _0x22c051=_0x22c0();let _0x58e71f=_0x22c051[_0x5114d6];return _0x58e71f;}function a(_0x5065ce){const _0x1f142e=_0x58e7;let _0x5e1677=new _0xe5892f(_0x1f142e(0x11c))['description'](_0x1f142e(0x145))[_0x1f142e(0x12c)](()=>_0x5e1677['outputHelp']());_0x5e1677[_0x1f142e(0x164)](_0x1f142e(0x146))['description'](_0x1f142e(0x167))[_0x1f142e(0x116)](_0x1f142e(0x118),_0x1f142e(0x15d))[_0x1f142e(0x12c)](async _0x3384a5=>{const _0x20faf5=_0x1f142e;let _0x473b05=await c(_0x5e1677,async()=>_0x5065ce[_0x20faf5(0x163)]()[_0x20faf5(0x16e)]());l(_0x5e1677,_0x3384a5,{'registries':_0x473b05},d(_0x473b05));}),_0x5e1677[_0x1f142e(0x164)]('find')['description'](_0x1f142e(0x130))[_0x1f142e(0x11b)](_0x1f142e(0x14c),_0x1f142e(0x13f))[_0x1f142e(0x136)](new _0x558ee4(_0x1f142e(0x134),_0x1f142e(0x158))['argParser'](o)['default']([]))[_0x1f142e(0x136)](new _0x558ee4('--limit\x20<number>',_0x1f142e(0x123))[_0x1f142e(0x128)](s)['default'](i))[_0x1f142e(0x116)](_0x1f142e(0x118),_0x1f142e(0x15d))[_0x1f142e(0x12c)](async(_0x1cbc8e,_0xca0dd1)=>{const _0x2bf77c=_0x1f142e;let _0xccc8e=await c(_0x5e1677,async()=>_0x5065ce[_0x2bf77c(0x163)]()['find']({'queries':_0x1cbc8e,'registries':_0xca0dd1['registry'],'limit':_0xca0dd1[_0x2bf77c(0x12b)]}));l(_0x5e1677,_0xca0dd1,{'query':{'queries':_0x1cbc8e,'registries':_0xca0dd1['registry']},'resources':_0xccc8e['resources'],'total':_0xccc8e[_0x2bf77c(0x139)],'limit':_0xca0dd1[_0x2bf77c(0x12b)]},f(_0xccc8e['resources'],_0xccc8e[_0x2bf77c(0x139)]));}),_0x5e1677[_0x1f142e(0x164)](_0x1f142e(0x153))[_0x1f142e(0x126)](_0x1f142e(0x11e))['argument'](_0x1f142e(0x15f),'canonical\x20<registryId>/<resourceId>\x20handles')[_0x1f142e(0x116)](_0x1f142e(0x14e),'write\x20flat\x20<registry>--<resource>.svg\x20files')[_0x1f142e(0x116)](_0x1f142e(0x118),_0x1f142e(0x15d))[_0x1f142e(0x12c)](async(_0x5076e5,_0x2ae29a)=>{const _0x1dfe5c=_0x1f142e;if(_0x2ae29a[_0x1dfe5c(0x16a)]===void 0x0){_0x5076e5[_0x1dfe5c(0x14d)]!==0x1&&_0x5e1677[_0x1dfe5c(0x117)](_0x1dfe5c(0x127),{'code':'resources.invalid-input','exitCode':0x1});let _0x2de2e5=await c(_0x5e1677,async()=>_0x5065ce[_0x1dfe5c(0x163)]()[_0x1dfe5c(0x150)]({'handle':_0x5076e5[0x0]}));_0x2ae29a['json']===!0x0?u(_0x5e1677,_0x2de2e5):_0x5e1677[_0x1dfe5c(0x125)]()[_0x1dfe5c(0x160)]?.(_0x2de2e5[_0x1dfe5c(0x16f)]);return;}let _0x4ad34c=await c(_0x5e1677,async()=>_0x5065ce[_0x1dfe5c(0x163)]()[_0x1dfe5c(0x153)]({'handles':_0x5076e5,'destination':_0x2ae29a[_0x1dfe5c(0x16a)]}));if(_0x2ae29a[_0x1dfe5c(0x143)]===!0x0)u(_0x5e1677,_0x4ad34c);else{let _0x18e197=_0x5e1677['configureOutput']();for(let _0x50762a of _0x4ad34c[_0x1dfe5c(0x166)])_0x18e197['writeOut']?.(_0x50762a[_0x1dfe5c(0x13b)]+'\x0a');for(let _0x313858 of _0x4ad34c[_0x1dfe5c(0x161)])_0x18e197[_0x1dfe5c(0x131)]?.(_0x313858[_0x1dfe5c(0x137)]+':\x20'+_0x313858[_0x1dfe5c(0x11d)]+':\x20'+_0x313858[_0x1dfe5c(0x12f)]+'\x0a');}_0x4ad34c['failed'][_0x1dfe5c(0x14d)]>0x0&&_0x5e1677['error'](_0x4ad34c[_0x1dfe5c(0x161)][_0x1dfe5c(0x14d)]+'\x20resource'+(_0x4ad34c[_0x1dfe5c(0x161)][_0x1dfe5c(0x14d)]===0x1?'':'s')+_0x1dfe5c(0x122),{'code':_0x1dfe5c(0x16c),'exitCode':0x1});});let _0x3e0dbb=_0x5e1677['command'](_0x1f142e(0x124))[_0x1f142e(0x126)](_0x1f142e(0x13a));return _0x3e0dbb[_0x1f142e(0x12c)](()=>_0x3e0dbb[_0x1f142e(0x11f)]()),_0x3e0dbb[_0x1f142e(0x164)](_0x1f142e(0x13b))[_0x1f142e(0x126)]('Show\x20the\x20resource\x20cache\x20path')[_0x1f142e(0x116)]('--json',_0x1f142e(0x15d))[_0x1f142e(0x12c)](_0xa10bdf=>{const _0x21506f=_0x1f142e;let _0x2cab45=_0x5065ce[_0x21506f(0x163)]()[_0x21506f(0x147)];l(_0x5e1677,_0xa10bdf,{'path':_0x2cab45},_0x2cab45);}),_0x3e0dbb[_0x1f142e(0x164)]('clear')['description'](_0x1f142e(0x13c))[_0x1f142e(0x116)](_0x1f142e(0x118),_0x1f142e(0x15d))[_0x1f142e(0x12c)](async _0x2e8fe8=>{const _0x5591b7=_0x1f142e;let _0x23d87a=await c(_0x5e1677,async()=>_0x5065ce['openLibrary']()['clearCache']());l(_0x5e1677,_0x2e8fe8,{'cleared':_0x23d87a},_0x5591b7(0x151)+_0x23d87a[_0x5591b7(0x133)]+_0x5591b7(0x16b)+p(_0x23d87a[_0x5591b7(0x15e)])+_0x5591b7(0x148)+_0x23d87a['path']+'.');}),_0x5e1677;}function o(_0x23ff96,_0x4ac0ae){return[..._0x4ac0ae,_0x23ff96];}function s(_0x480a98){const _0x2cd5b1=_0x58e7;let _0x48309b=Number(_0x480a98);if(!Number[_0x2cd5b1(0x144)](_0x48309b)||_0x48309b<0x1)throw new _0x498a04('Expected\x20a\x20positive\x20integer;\x20received\x20\x22'+_0x480a98+'\x22.');return _0x48309b;}async function c(_0x46005e,_0x23ff3c){const _0x28b5e2=_0x58e7;try{return await _0x23ff3c();}catch(_0x4933de){throw _0x253932(_0x4933de)&&_0x46005e[_0x28b5e2(0x117)](_0x4933de[_0x28b5e2(0x11d)]+':\x20'+_0x4933de['message'],{'code':_0x28b5e2(0x168),'exitCode':0x1}),_0x4933de;}}function l(_0xdc3f93,_0x103112,_0x18e002,_0x3a569b){const _0x9796a8=_0x58e7;_0x103112[_0x9796a8(0x143)]===!0x0?u(_0xdc3f93,_0x18e002):_0xdc3f93['configureOutput']()[_0x9796a8(0x160)]?.(_0x3a569b+'\x0a');}function u(_0x3be110,_0x41bc55){const _0x4ccf72=_0x58e7;_0x3be110[_0x4ccf72(0x125)]()[_0x4ccf72(0x160)]?.(JSON[_0x4ccf72(0x13d)](_0x41bc55,null,0x2)+'\x0a');}function d(_0x11ed78){const _0x22f1f7=_0x58e7;return['REGISTRY'['padEnd'](0x22)+'\x20\x20'+_0x22f1f7(0x162)['padStart'](0x9)+'\x20\x20'+'GROUPS'[_0x22f1f7(0x149)](0x7)+'\x20\x20'+_0x22f1f7(0x14a)[_0x22f1f7(0x149)](0x6)+'\x20\x20'+_0x22f1f7(0x135)[_0x22f1f7(0x149)](0xa),..._0x11ed78[_0x22f1f7(0x156)](_0x511b02=>[_0x511b02['id']['padEnd'](0x22),String(_0x511b02[_0x22f1f7(0x133)])[_0x22f1f7(0x149)](0x9),String(_0x511b02['groupCount'])[_0x22f1f7(0x149)](0x7),String(_0x511b02[_0x22f1f7(0x129)])[_0x22f1f7(0x149)](0x6),(_0x511b02['colorEditableCount']+'/'+_0x511b02[_0x22f1f7(0x133)])[_0x22f1f7(0x149)](0xa)][_0x22f1f7(0x16d)]('\x20\x20'))][_0x22f1f7(0x16d)]('\x0a');}function f(_0x425f09,_0x24293a){const _0x3044cd=_0x58e7;if(_0x425f09[_0x3044cd(0x14d)]===0x0)return _0x3044cd(0x121);let _0x151d5a=['HANDLE'[_0x3044cd(0x159)](0x32)+'\x20\x20'+_0x3044cd(0x14b)[_0x3044cd(0x159)](0x1c)+'\x20\x20'+_0x3044cd(0x154)[_0x3044cd(0x159)](0x12)+'\x20\x20'+_0x3044cd(0x15a)[_0x3044cd(0x159)](0x8)+'\x20\x20SIZE',..._0x425f09['map'](_0x671cea=>{const _0x812cda=_0x3044cd;let _0x333f1b=_0x671cea[_0x812cda(0x119)]?.[_0x812cda(0x12e)]??'-',_0x33479a=_0x671cea[_0x812cda(0x172)]?_0x812cda(0x170):_0x812cda(0x12d),_0x21ca9b=_0x671cea[_0x812cda(0x173)][_0x812cda(0x138)]+'×'+_0x671cea[_0x812cda(0x173)]['height'];return _0x671cea[_0x812cda(0x137)][_0x812cda(0x159)](0x32)+'\x20\x20'+_0x671cea[_0x812cda(0x140)][_0x812cda(0x159)](0x1c)+'\x20\x20'+_0x333f1b[_0x812cda(0x159)](0x12)+'\x20\x20'+_0x33479a[_0x812cda(0x159)](0x8)+'\x20\x20'+_0x21ca9b;})];return _0x24293a>_0x425f09[_0x3044cd(0x14d)]&&_0x151d5a[_0x3044cd(0x14f)]('…\x20'+(_0x24293a-_0x425f09[_0x3044cd(0x14d)])+_0x3044cd(0x165)),_0x151d5a[_0x3044cd(0x16d)]('\x0a');}function p(_0x10896c){const _0x2e3107=_0x58e7;return _0x10896c<0x400?_0x10896c+'\x20B':_0x10896c<0x100000?(_0x10896c/0x400)[_0x2e3107(0x171)](0x1)+'\x20KB':(_0x10896c/0x100000)['toFixed'](0x1)+_0x2e3107(0x157);}export{a as createResourcesCommand};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@univer-cli/resource-library-command",
3
3
  "type": "module",
4
- "version": "1.6.1",
4
+ "version": "1.6.2",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  "README.zh-CN.md"
19
19
  ],
20
20
  "dependencies": {
21
- "@univer-cli/resource-library": "1.6.1"
21
+ "@univer-cli/resource-library": "1.6.2"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "commander": "^15.0.0"