@typecad/typecad
Version:
🤖programmatically 💥create 🛰️hardware
1 lines • 7.84 kB
JavaScript
(function(_0x5b1cc6,_0x292842){const a6_0x1d3f51={_0x1ee3d4:0x104,_0x25cfe1:0xe2,_0x19774a:0x100,_0x26ac4e:0xf0,_0x182164:0xf8,_0x4eb094:0xdf,_0x3583e2:0xd9};function _0x3170ed(_0x41bb36,_0x16fbc4){return a6_0x384a(_0x16fbc4- -0x2a7,_0x41bb36);}const _0xc96808=_0x5b1cc6();while(!![]){try{const _0x80d8c8=-parseInt(_0x3170ed(-0xd9,-0xce))/(-0xaa7+0xabb*-0x2+0x201e)+parseInt(_0x3170ed(-a6_0x1d3f51._0x1ee3d4,-0xf5))/(-0x707*0x3+0x33c*0x6+0x1af*0x1)+-parseInt(_0x3170ed(-0xdf,-0xcd))/(0x14*-0x2e+0x1a6*0x7+-0x7ef)+parseInt(_0x3170ed(-a6_0x1d3f51._0x25cfe1,-0xd2))/(0x1d81*-0x1+-0xf3+0x28*0xc3)*(-parseInt(_0x3170ed(-a6_0x1d3f51._0x19774a,-a6_0x1d3f51._0x26ac4e))/(0x5*-0xd6+0x4b3*0x1+0x20*-0x4))+-parseInt(_0x3170ed(-a6_0x1d3f51._0x182164,-0xed))/(-0x1118+-0x180a+0x2928)*(-parseInt(_0x3170ed(-a6_0x1d3f51._0x4eb094,-0xe8))/(0x4*0x70+-0x42d*-0x4+-0x35*0x59))+-parseInt(_0x3170ed(-0xdd,-a6_0x1d3f51._0x3583e2))/(-0x1b17+-0x31*-0x35+0x10fa)+-parseInt(_0x3170ed(-0xdc,-0xde))/(0x21a3+-0x17e2+-0x9b8)*(-parseInt(_0x3170ed(-0xe2,-0xdf))/(-0x5*0x786+-0x4a7*0x3+0x339d));if(_0x80d8c8===_0x292842)break;else _0xc96808['push'](_0xc96808['shift']());}catch(_0x4b5afc){_0xc96808['push'](_0xc96808['shift']());}}}(a6_0x7c81,0x7f235+0x2880d+-0x156d*0x47));var __classPrivateFieldGet=this&&this['__classPri'+a6_0x4c9f07(0x4e7,0x4f3)+'et']||function(_0x141d56,_0x366887,_0x3e5a3c,_0x4e3944){const a6_0x4159cd={_0x2d5420:0x411,_0x161a74:0x423,_0x1d3196:0x445,_0x2ddc13:0x447,_0x2b5fec:0x441,_0x468802:0x443,_0x2e5cbb:0x43a,_0xd74660:0x425,_0x3581a4:0x44c,_0x3d3e43:0x425,_0xde2519:0x434},a6_0x447e42={_0xa8a495:0xc0};function _0x5c9ecb(_0x4af25d,_0x28d779){return a6_0x4c9f07(_0x4af25d,_0x28d779- -a6_0x447e42._0xa8a495);}const _0x59873a={};_0x59873a['jiPkr']='function',_0x59873a['obEDy']=_0x5c9ecb(a6_0x4159cd._0x2d5420,a6_0x4159cd._0x161a74)+'d\x20private\x20'+_0x5c9ecb(0x44a,a6_0x4159cd._0x1d3196)+'m\x20an\x20objec'+_0x5c9ecb(a6_0x4159cd._0x2ddc13,0x432)+_0x5c9ecb(a6_0x4159cd._0x2b5fec,a6_0x4159cd._0x468802)+'t\x20declare\x20'+'it',_0x59873a[_0x5c9ecb(0x444,a6_0x4159cd._0x2e5cbb)]=function(_0x43dcf0,_0x23cf98){return _0x43dcf0===_0x23cf98;},_0x59873a['GvRrc']=function(_0x1f8c74,_0x6b05fe){return _0x1f8c74===_0x6b05fe;};const _0x407c6c=_0x59873a;if(_0x3e5a3c==='a'&&!_0x4e3944)throw new TypeError('Private\x20ac'+_0x5c9ecb(a6_0x4159cd._0xd74660,0x42e)+_0x5c9ecb(a6_0x4159cd._0x3581a4,0x444)+'ithout\x20a\x20g'+'etter');if(typeof _0x366887===_0x407c6c[_0x5c9ecb(0x448,0x437)]?_0x141d56!==_0x366887||!_0x4e3944:!_0x366887[_0x5c9ecb(0x42f,0x426)](_0x141d56))throw new TypeError(_0x407c6c[_0x5c9ecb(0x441,0x42f)]);return _0x407c6c[_0x5c9ecb(0x44f,a6_0x4159cd._0x2e5cbb)](_0x3e5a3c,'m')?_0x4e3944:_0x407c6c[_0x5c9ecb(a6_0x4159cd._0x3d3e43,0x421)](_0x3e5a3c,'a')?_0x4e3944['call'](_0x141d56):_0x4e3944?_0x4e3944[_0x5c9ecb(0x423,a6_0x4159cd._0xde2519)]:_0x366887['get'](_0x141d56);},_KiCAD_possible_paths;import a6_0x413079 from'node:fs';import{platform}from'node:os';import{lookpathSync}from'find-bin';function a6_0x4c9f07(_0x391652,_0x585871){return a6_0x384a(_0x585871-0x32d,_0x391652);}import{Config}from'./config';function a6_0x7c81(){const _0x224b5c=['A2LJywrFCgf0Aa','mtiWnJeYwuDYwfzx','yxnZigrPzcbUBW','igrLzMLUzwqGDW','BwvTyMvYigzYBW','ndi5nZy1A3f3rLzV','odKWnZa2sgvJvMvZ','B25Zl0TPq0felW','mJi3otrMu3LRzvK','AgfYzvn1ChbVCG','r3zsCMm','uLPuv3m','q2fUBM90ihjLyq','nwjmtvL2BG','yMLUl2TPy2fKlq','AgfZ','nteWu0zAyufs','ChvZAa','z2v0','A2LJywqTy2XP','l2TPy2fKlW','mta0mJnHt2LZuwi','iezPBgvZl0TPqW','y2vZC29YihDHCW','B2jfrhK','rvrLy0m','qZOVuhjVz3jHBq','Dcb3Ag9ZzsbJBa','DMf0zuzPzwXKrW','DMfSDwu','mteZnZm2ntbTAvvrywu','ou1NEg5nBW','AMLqA3i','DevQrxq','l3vZCI9ZAgfYzq','ref6wfO','mtC3mdi3mLnVyu5otW','rxDJswe','A2LJywrFy2XP','q29UDgvUDhmVuW','zxHPC3rZu3LUyW','weTbufC'];a6_0x7c81=function(){return _0x224b5c;};return a6_0x7c81();}let conf=new Config();export let kicad_path;export let kicad_cli_path;function a6_0x384a(_0x3d310e,_0xf70e56){const _0x4229a2=a6_0x7c81();return a6_0x384a=function(_0x2b91a0,_0x24af4d){_0x2b91a0=_0x2b91a0-(-0x20f9+-0xaac*-0x2+0xd53*0x1);let _0x2d9996=_0x4229a2[_0x2b91a0];if(a6_0x384a['NxQDnh']===undefined){var _0x1d41a2=function(_0x23a98a){const _0x372be5='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x121053='',_0x38954c='';for(let _0x237ee5=-0xa9*0x5+-0x216c+0x53f*0x7,_0x3ce90e,_0x1a3296,_0x49c0c2=-0x2371+0x2339*-0x1+0x46aa;_0x1a3296=_0x23a98a['charAt'](_0x49c0c2++);~_0x1a3296&&(_0x3ce90e=_0x237ee5%(0x158b+0x2193+-0x371a)?_0x3ce90e*(-0x19aa+0x175c+0x6*0x6d)+_0x1a3296:_0x1a3296,_0x237ee5++%(0x64e+-0x1277+0xc2d))?_0x121053+=String['fromCharCode'](0x62c+0x491+-0x9be&_0x3ce90e>>(-(0x55a+0x12e*0x1+-0x686)*_0x237ee5&-0x1*0xbbf+-0x3d*-0x79+-0x1110)):0x1e70+-0xf8b+-0x1*0xee5){_0x1a3296=_0x372be5['indexOf'](_0x1a3296);}for(let _0x33655b=0x1*0xb15+0x92d+-0x1442,_0x4425d9=_0x121053['length'];_0x33655b<_0x4425d9;_0x33655b++){_0x38954c+='%'+('00'+_0x121053['charCodeAt'](_0x33655b)['toString'](-0xbf*0x1b+-0x89c+0x1cd1))['slice'](-(0x1a52*0x1+0x262b+-0x407b));}return decodeURIComponent(_0x38954c);};a6_0x384a['oXumCe']=_0x1d41a2,_0x3d310e=arguments,a6_0x384a['NxQDnh']=!![];}const _0x3051a5=_0x4229a2[0x2465+0x1c*-0x64+-0x1975],_0x2508b8=_0x2b91a0+_0x3051a5,_0x170a11=_0x3d310e[_0x2508b8];return!_0x170a11?(_0x2d9996=a6_0x384a['oXumCe'](_0x2d9996),_0x3d310e[_0x2508b8]=_0x2d9996):_0x2d9996=_0x170a11,_0x2d9996;},a6_0x384a(_0x3d310e,_0xf70e56);}export class KiCAD{constructor(){const a6_0x194694={_0x3156e8:0x194,_0xa9984e:0x17d,_0x56615c:0x187,_0x6170cf:0x19a,_0x32fdf6:0x18a,_0x2aef3b:0x185,_0xfad3c4:0x17e,_0x55da99:0x199,_0x1554ce:0x17a,_0x2f2e98:0x184,_0x56c4eb:0x191,_0x74a37:0x182,_0x19e09e:0x192,_0x2290fd:0x1a2,_0x17855c:0x17f,_0xa9f15f:0x17c,_0x2928a0:0x17b,_0x308577:0x18f,_0x11b6bc:0x174},a6_0x554226={_0x4f7811:0x36e},_0xccb186={'RZTWs':'C:/Program'+_0x2c5915(0x17f,0x171)+'ad/9.0/','stTKw':_0x2c5915(0x183,a6_0x194694._0x3156e8)+'\x20Files/KiC'+'ad/7.0/','xtypb':_0x2c5915(0x18b,0x19c)+_0x2c5915(a6_0x194694._0xa9984e,a6_0x194694._0x56615c),'tEjEt':'/Applicati'+_0x2c5915(a6_0x194694._0x6170cf,a6_0x194694._0x32fdf6)+'KiCad.app/'+_0x2c5915(0x190,a6_0x194694._0x2aef3b)+_0x2c5915(0x172,a6_0x194694._0xfad3c4)+'t/','CLYwY':function(_0x10e0f2,_0x587d46,_0x235fa7,_0x2ee3bb){return _0x10e0f2(_0x587d46,_0x235fa7,_0x2ee3bb);},'EwcIa':function(_0x36bf8b,_0x15f77c,_0x76276b,_0x3a6524){return _0x36bf8b(_0x15f77c,_0x76276b,_0x3a6524);},'dFgKZ':function(_0x649c81,_0x589098){return _0x649c81==_0x589098;},'ETecC':'win32','XKAPW':function(_0xcfe745,_0x2bf73d){return _0xcfe745+_0x2bf73d;},'YxQjq':function(_0x43c3dc,_0x5736bf){return _0x43c3dc(_0x5736bf);},'hXpMC':'kicad_cli'};_KiCAD_possible_paths['set'](this,[_0xccb186[_0x2c5915(0x174,0x164)],_0xccb186['stTKw'],'C:/Program'+'\x20Files/KiC'+'ad/8.0/',_0xccb186['xtypb'],_0xccb186[_0x2c5915(a6_0x194694._0x32fdf6,a6_0x194694._0x55da99)]]);function _0x2c5915(_0x18f34f,_0x2b0a8b){return a6_0x4c9f07(_0x2b0a8b,_0x18f34f- -a6_0x554226._0x4f7811);}_0xccb186['CLYwY'](__classPrivateFieldGet,this,_KiCAD_possible_paths,'f')[_0x2c5915(a6_0x194694._0x1554ce,a6_0x194694._0x2f2e98)](conf['get'](_0x2c5915(0x193,0x19c)));for(const _0x4bb22 of _0xccb186[_0x2c5915(0x18e,0x1a1)](__classPrivateFieldGet,this,_KiCAD_possible_paths,'f')){if(a6_0x413079[_0x2c5915(a6_0x194694._0x56c4eb,0x187)](_0x4bb22)){kicad_path=_0x4bb22;break;}}if(kicad_path){_0xccb186['dFgKZ'](platform(),_0xccb186[_0x2c5915(a6_0x194694._0x74a37,0x183)])?kicad_cli_path=_0xccb186[_0x2c5915(a6_0x194694._0x19e09e,a6_0x194694._0x2290fd)](kicad_path,_0x2c5915(0x177,a6_0x194694._0x17855c)+'cli.exe'):kicad_cli_path=_0xccb186['YxQjq'](lookpathSync,_0x2c5915(a6_0x194694._0xa9f15f,a6_0x194694._0x2928a0));if(conf['get'](_0x2c5915(a6_0x194694._0x308577,0x185))!='')kicad_cli_path=conf[_0x2c5915(0x17b,a6_0x194694._0x11b6bc)](_0xccb186['hXpMC']);}}}_KiCAD_possible_paths=new WeakMap();