@typecad/typecad
Version:
🤖programmatically 💥create 🛰️hardware
1 lines • 20 kB
JavaScript
(function(_0xc47fef,_0x452b2a){const a1_0x2b5ce4={_0x4a1585:0x348,_0x4bc4d5:0x373,_0x4a22be:0x376,_0x3afa19:0x371,_0x392d3b:0x390,_0x4f699:0x35c,_0x29f6db:0x3ae,_0x4db850:0x35d,_0x3ce06e:0x359,_0x3da0d9:0x381},a1_0x1af953={_0x58a3f2:0x1ad};function _0x18ee8d(_0x5768ae,_0x2fd262){return a1_0x4fb7(_0x5768ae-a1_0x1af953._0x58a3f2,_0x2fd262);}const _0xf79747=_0xc47fef();while(!![]){try{const _0x1c6995=-parseInt(_0x18ee8d(a1_0x2b5ce4._0x4a1585,0x339))/(0x201b*0x1+0x1*-0x236a+-0x10*-0x35)+parseInt(_0x18ee8d(0x349,a1_0x2b5ce4._0x4bc4d5))/(0x22b5+-0x1130+0x1183*-0x1)*(-parseInt(_0x18ee8d(a1_0x2b5ce4._0x4a22be,0x362))/(0x13cf+0x1*0x12ca+0x16*-0x1c1))+parseInt(_0x18ee8d(0x393,0x3b3))/(0xc0+0x15d*-0x3+0x35b)*(parseInt(_0x18ee8d(a1_0x2b5ce4._0x3afa19,a1_0x2b5ce4._0x392d3b))/(0xe*-0x20e+0x19ed*-0x1+0x36b6))+parseInt(_0x18ee8d(0x377,a1_0x2b5ce4._0x4f699))/(0x24b*0x1+-0x1*0xfc4+0x2b3*0x5)+parseInt(_0x18ee8d(0x388,a1_0x2b5ce4._0x29f6db))/(-0x16c*0xa+0x1c34+-0xdf5)+parseInt(_0x18ee8d(a1_0x2b5ce4._0x4db850,0x376))/(0x159*-0x6+0x1133+-0x5*0x1d1)*(parseInt(_0x18ee8d(0x37c,a1_0x2b5ce4._0x3ce06e))/(-0x2707+-0x21ee+-0x2*-0x247f))+-parseInt(_0x18ee8d(0x37d,0x3a0))/(-0x1354+0x34*0x25+-0x52*-0x25)*(-parseInt(_0x18ee8d(0x35e,a1_0x2b5ce4._0x3da0d9))/(0x12d2+0x7*-0x4b2+0xe17*0x1));if(_0x1c6995===_0x452b2a)break;else _0xf79747['push'](_0xf79747['shift']());}catch(_0x21375e){_0xf79747['push'](_0xf79747['shift']());}}}(a1_0xcbdd,-0xae*0x31d+0x298ff+0x71d*0x35));var __classPrivateFieldSet=this&&this[a1_0x2133c1(0x32,0x55)+'vateFieldS'+'et']||function(_0x5564fa,_0x382662,_0x324e52,_0x314ece,_0x3d0d93){const a1_0xbc6421={_0x22fc4d:0x4c9,_0x3506e0:0x4b3,_0x36186a:0x4df,_0x3553db:0x4ba,_0x11a9c3:0x497,_0x20f748:0x485,_0x42984:0x479,_0x4432e4:0x4c8},_0xc8961a={};_0xc8961a['owPRx']='Private\x20me'+'thod\x20is\x20no'+'t\x20writable',_0xc8961a[_0x7943bd(a1_0xbc6421._0x22fc4d,a1_0xbc6421._0x3506e0)]=function(_0xfad819,_0x53db48){return _0xfad819===_0x53db48;};const _0x42b09a=_0xc8961a;if(_0x314ece==='m')throw new TypeError(_0x42b09a[_0x7943bd(a1_0xbc6421._0x36186a,a1_0xbc6421._0x3553db)]);if(_0x42b09a['pMYSG'](_0x314ece,'a')&&!_0x3d0d93)throw new TypeError('Private\x20ac'+'cessor\x20was'+'\x20defined\x20w'+'ithout\x20a\x20s'+_0x7943bd(a1_0xbc6421._0x11a9c3,0x4c7));if(typeof _0x382662===_0x7943bd(a1_0xbc6421._0x3553db,0x4a7)?_0x5564fa!==_0x382662||!_0x3d0d93:!_0x382662['has'](_0x5564fa))throw new TypeError('Cannot\x20wri'+_0x7943bd(0x462,a1_0xbc6421._0x20f748)+_0x7943bd(0x4ab,a1_0xbc6421._0x42984)+_0x7943bd(a1_0xbc6421._0x4432e4,0x4c5)+'\x20whose\x20cla'+'ss\x20did\x20not'+'\x20declare\x20i'+'t');function _0x7943bd(_0x212773,_0x54d4f3){return a1_0x2133c1(_0x54d4f3-0x47a,_0x212773);}return _0x314ece==='a'?_0x3d0d93['call'](_0x5564fa,_0x324e52):_0x3d0d93?_0x3d0d93['value']=_0x324e52:_0x382662['set'](_0x5564fa,_0x324e52),_0x324e52;},__classPrivateFieldGet=this&&this['__classPri'+'vateFieldG'+'et']||function(_0x3e760c,_0x4dcfcb,_0x37b5c4,_0x294e5c){const a1_0x3780c9={_0xf25cc0:0x4f,_0xdbecc2:0x94,_0x1ea9b3:0x72,_0x2488db:0x67,_0x5477bc:0xa5,_0x292c3e:0xc5,_0xba8944:0xa1,_0x3ac85b:0xc5,_0x34220a:0x50,_0x37d96e:0x30,_0x3d460e:0x6d,_0x16b6bc:0x8c,_0x4ea354:0x92},_0x16f21c={};_0x16f21c[_0xab1936(-0x7b,-a1_0x3780c9._0xf25cc0)]=function(_0x48922c,_0x8af377){return _0x48922c===_0x8af377;},_0x16f21c[_0xab1936(-0x6f,-a1_0x3780c9._0xdbecc2)]='Private\x20ac'+'cessor\x20was'+_0xab1936(-a1_0x3780c9._0x1ea9b3,-a1_0x3780c9._0x2488db)+_0xab1936(-a1_0x3780c9._0x5477bc,-a1_0x3780c9._0x292c3e)+_0xab1936(-0x49,-0x79),_0x16f21c['fDvgJ']=function(_0x3fb45d,_0x32be79){return _0x3fb45d===_0x32be79;};function _0xab1936(_0x5441f7,_0x4508e3){return a1_0x2133c1(_0x5441f7- -0x96,_0x4508e3);}_0x16f21c['PrwQR']=_0xab1936(-0x69,-0x95);const _0x9722ee=_0x16f21c;if(_0x9722ee['NMINO'](_0x37b5c4,'a')&&!_0x294e5c)throw new TypeError(_0x9722ee['oLoaF']);if(_0x9722ee['fDvgJ'](typeof _0x4dcfcb,_0x9722ee['PrwQR'])?_0x3e760c!==_0x4dcfcb||!_0x294e5c:!_0x4dcfcb[_0xab1936(-a1_0x3780c9._0xba8944,-a1_0x3780c9._0x3ac85b)](_0x3e760c))throw new TypeError('Cannot\x20rea'+_0xab1936(-0x7d,-a1_0x3780c9._0x34220a)+_0xab1936(-0x57,-a1_0x3780c9._0x37d96e)+'m\x20an\x20objec'+_0xab1936(-0x70,-0x8e)+'ass\x20did\x20no'+_0xab1936(-a1_0x3780c9._0x3d460e,-a1_0x3780c9._0x16b6bc)+'it');return _0x37b5c4==='m'?_0x294e5c:_0x37b5c4==='a'?_0x294e5c[_0xab1936(-a1_0x3780c9._0x4ea354,-0x83)](_0x3e760c):_0x294e5c?_0x294e5c['value']:_0x4dcfcb['get'](_0x3e760c);},_Component_footprint_file,_Component_isInitialized;function a1_0x2133c1(_0x316243,_0xdb64a3){return a1_0x4fb7(_0x316243- -0x194,_0xdb64a3);}import a1_0x4febe6 from'fast-sexpr';import{execSync}from'node:child_process';import{randomUUID}from'node:crypto';import a1_0x3b0ca9 from'node:fs';function a1_0xcbdd(){const _0x5692cb=['x19JBgfZC1bYAq','C2LTDwXHDgLVBG','yMDzzwXSB3C','ntmXndC3vMXqENzT','mtKZnJiWCwPXvKTR','iMXPyNjHCNK6zG','lNbYzxr0Es8','Ce1zu0C','z3jVDxbZ','ntGWodzqsLbVree','mJqXotGXmhntD1H1AG','DxvPza','txfqA0y','BwvTyMvYigzYBW','B3DquNG','CgnI','Aw50iIKP','BgLI','D2f0DgfNzq','zxjYB3i','CMvMzxjLBMnL','nJa3ndK1BKzpuLjn','yM9Sza','C3bSAxq','BxbU','igfUig9IAMvJDa','C3rKB3v0','zxr0zxi','CMvWBgfJzufSBa','CgLUCW','C29iAvu','x2DLDhrPBMDvDq','mJbmEhLNthq','C3LTyM9S','zM9VDhbYAw50xW','AxrOB3v0igeGzW','8j+rUIbfCNjVCJO','ChvZAa','xsbgB290ChjPBG','AgfZ','sffTwKm','oLjFmdyWm18XnG','DMLH','Aw5JBhvKzxm','CMvHzezPBgvtEq','B3iGiMXPyJPmBW','BNvTyMvY','Aw5JBhvKzq','kguUzY4Sicjszq','ig1LBwjLCIb0BW','CIbTDxn0igjLia','EfLcveS','z2v0r3jVDxbZ','Cg9W','y2fSBa','EgXgv0m','lMTPy2fKx21Vza','mJe0ntu0sw1wzwTK','mKnts01Zua','yMDszwq','x3v1Awq','DguGChjPDMf0zq','Bw9KzwW','vw5RBM93BG','DxrMoa','ysbUDw1IzxiGBW','q0L0DKO','z2v0tMv4DfjLzG','shP6z2W','B290ChjPBNqIia','z0PPyLi','Bw9KDwXL','uvHpugW','l2XPyI9MB290Ca','zg5W','zcbWCML2yxrLia','iIbMCcb1CgDYyq','tK1jtK8','mteYDeLvvw56','mtfhsLLnufO','zM9VDhbYAw50','D3jPDgu','AwDUB3jL','zgf0yxnOzwv0','zxjLBMnL','zxHPDa','igrLzMLUzwqGDW','yI9MB290ChjPBG','Dcb3Ag9ZzsbJBa','B0XVyuy','CIbHihn0CMLUzW','DcbKzwnSyxjLia','C2nO','B3iGysbZDhjPBG','DM9SDgfNzq','zNvUy3rPB24','AfnsBhG','lI9IDwLSzc9SAq','nJGZotvqD1zrC0q','vxLpAfG'];a1_0xcbdd=function(){return _0x5692cb;};return a1_0xcbdd();}import{platform}from'node:os';import a1_0x884f6d from's-expression.js';import{kicad_cli_path,kicad_path}from'./kicad';import{Pin}from'./pin';import a1_0x20ee92 from'chalk';import{ReferenceCounter}from'./reference_counter';const referenceCounter=new ReferenceCounter(),S=new a1_0x884f6d();export class Component{constructor({reference:_0x322274,value:_0x10fe9c,footprint:_0x41d2f8,prefix:_0x85464a,datasheet:_0x4838ff,description:_0x4133e0,voltage:_0x4635de,wattage:_0x1c315c,mpn:_0x27cb07,via:_0x4d518b,uuid:_0x41e9b9,simulation:_0x56fd9b,symbol:_0x4ad0c6,sch:_0x532e8f,pcb:_0x40843b,viaData:_0x573bcc}={}){const a1_0x443805={_0x4cffa8:0x52e,_0x454bd6:0x54c,_0x30fba3:0x55e,_0x2d9ab5:0x543,_0x4302fa:0x578,_0x52b883:0x56e,_0x3b5e0e:0x550,_0x339a1e:0x533,_0x3c4c4a:0x572,_0x3dd5aa:0x567,_0x459e99:0x57e,_0x1a1cc0:0x563,_0x3b8d50:0x55d,_0xcb997a:0x55b,_0x52db18:0x55a,_0x3d6be9:0x549,_0x2bfe14:0x523,_0x37260f:0x56b,_0x251a1f:0x548,_0x25d64d:0x531,_0x469fc8:0x571,_0x4c14ff:0x53a,_0x319e51:0x52c,_0x5af9f9:0x525,_0x4f0253:0x536,_0x4a3ac3:0x54b,_0xcf478a:0x544,_0xbf5d04:0x533,_0x372a7a:0x57a,_0x4c54e8:0x55b,_0x90680e:0x539,_0x6daa6:0x54e,_0x35001d:0x564,_0x4e7b07:0x57c,_0x1c00b5:0x58f,_0x50bbed:0x550,_0x61f354:0x51c,_0x383e59:0x551,_0x1f96cf:0x579,_0x2237c6:0x52c,_0x29cefd:0x575,_0x40664d:0x530,_0x1204c4:0x569,_0xaeb9eb:0x53c,_0x4bbd00:0x531,_0x5df3ef:0x519},_0x4812e6={};_0x4812e6['hSRlx']='front',_0x4812e6[_0xb9b69(0x539,0x564)]=function(_0xc85f59,_0x10d9ee){return _0xc85f59!=_0x10d9ee;};function _0xb9b69(_0x1beb91,_0x5293fe){return a1_0x2133c1(_0x1beb91-0x538,_0x5293fe);}_0x4812e6['QUocv']=function(_0x1820e4,_0x4746b5){return _0x1820e4+_0x4746b5;},_0x4812e6[_0xb9b69(0x54c,0x55e)]=function(_0x527485,_0x3e0c52){return _0x527485||_0x3e0c52;},_0x4812e6['CItvJ']=function(_0x19c90a,_0x184ff6){return _0x19c90a!=_0x184ff6;},_0x4812e6[_0xb9b69(0x588,0x59c)]=function(_0x5be6fb,_0x5d9d32){return _0x5be6fb+_0x5d9d32;},_0x4812e6[_0xb9b69(a1_0x443805._0x4cffa8,a1_0x443805._0x454bd6)]='Unknown',_0x4812e6[_0xb9b69(0x54e,a1_0x443805._0x30fba3)]=function(_0x452b7b,_0x13d7b8){return _0x452b7b!=_0x13d7b8;},_0x4812e6[_0xb9b69(0x569,a1_0x443805._0x2d9ab5)]=function(_0x137d33,_0x389474){return _0x137d33||_0x389474;};const _0x18d642=_0x4812e6;this['reference']='',this['value']='',this[_0xb9b69(0x556,0x548)]='',this['datasheet']='',this['descriptio'+'n']='',this[_0xb9b69(0x564,a1_0x443805._0x4302fa)]='',this['wattage']='',this[_0xb9b69(0x582,0x5ae)]='';const _0x2d184f={};_0x2d184f['x']=0x0,_0x2d184f['y']=0x0,_0x2d184f['rotation']=0x0,_0x2d184f['side']=_0x18d642[_0xb9b69(0x566,a1_0x443805._0x52b883)],this['pcb']=_0x2d184f,this[_0xb9b69(a1_0x443805._0x3b5e0e,a1_0x443805._0x339a1e)]=![],_Component_footprint_file['set'](this,''),this['pins']=[],this['via']=![];const _0x3bbcd6={};_0x3bbcd6[_0xb9b69(0x535,a1_0x443805._0x4cffa8)]=![],_0x3bbcd6[_0xb9b69(0x544,0x54e)]='',this[_0xb9b69(0x56b,0x567)]=_0x3bbcd6,this['symbol']='';const _0x237dce={};_0x237dce['x']=0x0,_0x237dce['y']=0x0,_0x237dce['rotation']=0x0,this['sch']=_0x237dce,this[_0xb9b69(a1_0x443805._0x3c4c4a,a1_0x443805._0x3dd5aa)]=[],_Component_isInitialized['set'](this,![]),this['_uuid']='',this['_gettingUu'+'id']=![];if(_0x18d642['xYBTK'](_0x322274,undefined)){this[_0xb9b69(a1_0x443805._0x459e99,0x5a3)]=_0x322274;const _0x126bf9=/^[A-Za-z]+\d+$/;!_0x126bf9['test'](_0x322274)&&(process[_0xb9b69(0x584,0x55c)]['write'](a1_0x20ee92['bgRed']('👺\x20Error:')+a1_0x20ee92['bold'](_0x18d642['QUocv']('\x20['+_0x322274+',\x20'+_0x10fe9c+',\x20'+_0x41d2f8+(']\x20Pin\x20numb'+'er\x20must\x20be'+'\x20a\x20number\x20'+_0xb9b69(a1_0x443805._0x1a1cc0,a1_0x443805._0x3b8d50)+'g'),'\x0a'))),process[_0xb9b69(a1_0x443805._0xcb997a,0x539)](-0x1233*0x2+0xcf9+-0x1*-0x176e)),!referenceCounter['setReferen'+'ce'](_0x322274)&&(this['reference']=referenceCounter[_0xb9b69(0x549,0x51f)+_0xb9b69(a1_0x443805._0x52db18,a1_0x443805._0x3d6be9)](_0x18d642[_0xb9b69(a1_0x443805._0x454bd6,a1_0x443805._0x2bfe14)](_0x85464a,'U')),process['stdout']['write'](a1_0x20ee92['whiteBrigh'+'t'][_0xb9b69(0x56c,0x56c)](_0x18d642['QUocv']('🚩\x20\x20renamin'+'g\x20'+_0x322274+'\x20to\x20'+this[_0xb9b69(0x57e,a1_0x443805._0x37260f)],'\x0a'))));}else this['reference']=referenceCounter[_0xb9b69(0x549,a1_0x443805._0x3dd5aa)+'erence'](_0x85464a||'U');if(_0x10fe9c!=undefined)this['value']=_0x10fe9c;_0x18d642[_0xb9b69(a1_0x443805._0x251a1f,0x530)](_0x41d2f8,undefined)&&(_0x41d2f8&&!_0x41d2f8[_0xb9b69(a1_0x443805._0x25d64d,0x538)](':')&&(process['stdout'][_0xb9b69(0x557,a1_0x443805._0x469fc8)](_0x18d642['soHiU'](_0x18d642[_0xb9b69(0x588,a1_0x443805._0x3c4c4a)](a1_0x20ee92['bgRed'](_0xb9b69(0x52a,a1_0x443805._0x4c14ff)),a1_0x20ee92[_0xb9b69(0x580,0x5a0)]('\x20['+(_0x322274||_0x18d642[_0xb9b69(0x52e,0x520)])+',\x20'+(_0x10fe9c||_0xb9b69(0x545,0x53b))+',\x20'+_0x41d2f8+(_0xb9b69(a1_0x443805._0x319e51,0x556)+'t\x20must\x20be\x20'+'in\x20format\x20'+_0xb9b69(0x56f,0x580)+_0xb9b69(0x54b,a1_0x443805._0x5af9f9)+_0xb9b69(a1_0x443805._0x4f0253,a1_0x443805._0x4a3ac3)+'sistor_SMD'+_0xb9b69(0x52f,a1_0x443805._0xcf478a)+'08Metric\x22\x20'+_0xb9b69(a1_0x443805._0xbf5d04,0x505)+'cal_Footpr'+_0xb9b69(a1_0x443805._0x372a7a,0x596)))),'\x0a')),process[_0xb9b69(a1_0x443805._0x4c54e8,0x55a)](-0x16f*-0x12+-0x5a*0x61+0x84d)),this[_0xb9b69(0x556,0x532)]=_0x41d2f8);if(_0x4838ff!=undefined)this[_0xb9b69(0x559,0x543)]=_0x4838ff;if(_0x18d642[_0xb9b69(a1_0x443805._0x90680e,a1_0x443805._0x6daa6)](_0x4133e0,undefined))this['descriptio'+'n']=_0x4133e0;if(_0x18d642['xYBTK'](_0x4635de,undefined))this[_0xb9b69(a1_0x443805._0x35001d,0x562)]=_0x4635de;if(_0x1c315c!=undefined)this[_0xb9b69(a1_0x443805._0x4e7b07,a1_0x443805._0x1c00b5)]=_0x1c315c;if(_0x18d642[_0xb9b69(0x54e,a1_0x443805._0x50bbed)](_0x4ad0c6,undefined))this[_0xb9b69(0x527,a1_0x443805._0x61f354)]=_0x4ad0c6;if(_0x532e8f!=undefined)this[_0xb9b69(0x562,0x56e)]=_0x532e8f;if(_0x18d642['xYBTK'](_0x40843b,undefined))this[_0xb9b69(0x579,a1_0x443805._0x383e59)]=_0x40843b;if(_0x27cb07!=undefined)this[_0xb9b69(0x582,a1_0x443805._0x1f96cf)]=_0x27cb07;if(_0x56fd9b!=undefined)this['simulation']={'include':_0x56fd9b[_0xb9b69(0x535,a1_0x443805._0x2237c6)],'model':_0x56fd9b[_0xb9b69(0x544,a1_0x443805._0x29cefd)]||''};this[_0xb9b69(a1_0x443805._0x40664d,0x511)]=_0x18d642[_0xb9b69(a1_0x443805._0x1204c4,a1_0x443805._0xaeb9eb)](_0x4d518b,![]);_0x573bcc&&(this['viaData']=_0x573bcc);_0x41e9b9!=undefined&&(this[_0xb9b69(0x542,a1_0x443805._0x4bbd00)]=_0x41e9b9);if(this[_0xb9b69(0x530,a1_0x443805._0x5df3ef)]){}else{}__classPrivateFieldSet(this,_Component_isInitialized,!![],'f');}get['uuid'](){const a1_0x2ffb27={_0x1f9295:0x84,_0x3bd26c:0x3d},a1_0x67dd58={_0x39f06b:0x33},_0x59fecf={'srCgb':function(_0xa0f686){return _0xa0f686();}};if(this['_uuid']===''&&__classPrivateFieldGet(this,_Component_isInitialized,'f')){if(this[_0x431b87(0x7f,a1_0x2ffb27._0x1f9295)+'id'])return randomUUID();try{this['_gettingUu'+'id']=!![],this[_0x431b87(0x68,0x3d)]=_0x59fecf['srCgb'](randomUUID);}finally{this[_0x431b87(0x56,0x84)+'id']=![];}}function _0x431b87(_0x2d9916,_0x5508cb){return a1_0x2133c1(_0x5508cb-a1_0x67dd58._0x39f06b,_0x2d9916);}return this[_0x431b87(0x13,a1_0x2ffb27._0x3bd26c)];}set[a1_0x2133c1(0x3d,0x2f)](_0xa7c9f6){this['_uuid']=_0xa7c9f6;}['pin'](_0x43f8f1){const a1_0x1b9be1={_0x28b4b1:0x1ac,_0x424a28:0x177,_0x4f358f:0x1eb,_0x1b8569:0x21c,_0x583a62:0x1b2,_0x2c7b03:0x186,_0x3df1e8:0x1cb,_0xc03970:0x1a3,_0x5eaf6e:0x1cb,_0x5cc1d1:0x1fa,_0x4a45bb:0x208,_0x3abd6d:0x1e0,_0x23cbc1:0x1ca,_0x3af919:0x1f2,_0x4dbe34:0x188},_0x229367={'MJDiR':'number','gKWNS':'string','pFkIb':function(_0xd87ec4,_0x56d10d){return _0xd87ec4+_0x56d10d;},'kDGwX':function(_0x37df7c,_0x354fff){return _0x37df7c(_0x354fff);}};typeof _0x43f8f1!==_0x229367['MJDiR']&&typeof _0x43f8f1!==_0x229367['gKWNS']&&(process['stdout']['write'](_0x229367['pFkIb'](a1_0x20ee92[_0x4997c8(a1_0x1b9be1._0x28b4b1,0x1de)](_0x4997c8(0x195,a1_0x1b9be1._0x424a28)),a1_0x20ee92[_0x4997c8(a1_0x1b9be1._0x4f358f,a1_0x1b9be1._0x1b8569)]('\x20Pin\x20numbe'+_0x4997c8(0x1a3,0x1b5)+_0x4997c8(a1_0x1b9be1._0x583a62,a1_0x1b9be1._0x2c7b03)+_0x4997c8(a1_0x1b9be1._0x3df1e8,a1_0x1b9be1._0xc03970)+'\x0a'))),process['exit'](0x20f1+-0x8cf+-0x1821));const _0x558d1b=_0x229367['kDGwX'](String,_0x43f8f1),_0x21e217=this[_0x4997c8(0x1f2,a1_0x1b9be1._0x5eaf6e)]['find'](_0x1a45ee=>_0x1a45ee[_0x4997c8(0x19f,0x1b6)]===_0x558d1b);if(_0x21e217)return!_0x21e217[_0x4997c8(0x1e0,a1_0x1b9be1._0x5cc1d1)]&&(_0x21e217[_0x4997c8(0x1e0,0x1c1)]=this[_0x4997c8(0x1e0,0x1b3)]),_0x21e217;const _0x5a7843=new Pin(this[_0x4997c8(0x1e9,a1_0x1b9be1._0x4a45bb)],_0x558d1b,undefined,this);_0x5a7843[_0x4997c8(a1_0x1b9be1._0x3abd6d,0x1c4)]=this[_0x4997c8(a1_0x1b9be1._0x3abd6d,a1_0x1b9be1._0x23cbc1)];function _0x4997c8(_0x382a8e,_0x53339a){return a1_0x2133c1(_0x382a8e-0x1a3,_0x53339a);}return this[_0x4997c8(a1_0x1b9be1._0x3af919,0x1ff)][_0x4997c8(0x196,a1_0x1b9be1._0x4dbe34)](_0x5a7843),_0x5a7843;}['isInGroup'](_0xed4c0d){return this['groups']['includes'](_0xed4c0d);}[a1_0x2133c1(0x2,0x34)](){return[...this['groups']];}[a1_0x2133c1(-0x10,0x5)+a1_0x2133c1(0x43,0x5a)](_0x175d40){const a1_0x44ffed={_0x5d22ac:0x20,_0xf3b129:0x1,_0x1cd2ef:0x7,_0x359526:0x27,_0x4bf678:0x24,_0x346089:0x2a,_0x1edd02:0x9,_0x1aee39:0x6,_0x25856a:0xc,_0x44db85:0x1e,_0x12c539:0x2a,_0x492cb7:0x14,_0x5f0312:0xb,_0x2395bc:0x2d,_0x2671cd:0x32,_0x1e5bca:0x3d,_0x5bb8a7:0x34},_0xe10a7f={'Hzzgl':function(_0x36e582,_0x4bb547){return _0x36e582!=_0x4bb547;},'XspoN':function(_0x4066a9,_0x559843,_0x1c4d34,_0xeb3d2e){return _0x4066a9(_0x559843,_0x1c4d34,_0xeb3d2e);},'Ytrok':function(_0x1dfba5,_0x929890){return _0x1dfba5==_0x929890;},'jqtzU':function(_0x9b64b0){return _0x9b64b0();},'CAzXU':'win32','xlFWC':'footprints','MqPkF':_0x4ad815(-0x32,-0x3),'RMPLV':_0x4ad815(0x32,0xd),'ZZIqE':function(_0x51af48,_0x43259f,_0x3f0306,_0x2d0ab1,_0x482a43){return _0x51af48(_0x43259f,_0x3f0306,_0x2d0ab1,_0x482a43);},'AdBMh':function(_0x4fe90e,_0x1d1287){return _0x4fe90e==_0x1d1287;}},_0x61928=_0x2535bc=>{try{const _0xaaae88={};_0xaaae88['stdio']=_0x10b1e2(-0x108,-0x103),execSync(''+_0x2535bc,_0xaaae88);}catch(_0x3ecad0){console['log'](_0x3ecad0);}function _0x10b1e2(_0x55940f,_0x3e4c72){return _0x4ad815(_0x3e4c72,_0x55940f- -0x117);}return!![];};if(_0xe10a7f[_0x4ad815(-a1_0x44ffed._0x5d22ac,a1_0x44ffed._0xf3b129)](__classPrivateFieldGet(this,_Component_footprint_file,'f'),''))return _0xe10a7f['XspoN'](__classPrivateFieldGet,this,_Component_footprint_file,'f');let _0x2de73f='',_0x1a6997=_0x175d40[_0x4ad815(0x7,0x38)](':');function _0x4ad815(_0x2c5abb,_0x1cdbcd){return a1_0x2133c1(_0x1cdbcd- -0x11,_0x2c5abb);}let _0x301db7='';_0xe10a7f['Ytrok'](_0xe10a7f['jqtzU'](platform),_0xe10a7f['CAzXU'])?_0x301db7=kicad_path+('share/kica'+'d/footprin'+'ts'):_0x301db7=kicad_path+_0xe10a7f[_0x4ad815(-0x6,-0xc)];try{a1_0x3b0ca9['existsSync'](_0x301db7+'/'+_0x1a6997[0xe57+0x30a+-0x5cb*0x3]+_0x4ad815(-a1_0x44ffed._0x1cd2ef,a1_0x44ffed._0x359526)+_0x1a6997[0x2*-0x4dc+0x1*0x183+0x41b*0x2]+_0x4ad815(-a1_0x44ffed._0x4bf678,-0xb))?_0x2de73f=a1_0x3b0ca9['readFileSy'+'nc'](_0x301db7+'/'+_0x1a6997[-0x8ea+0x1*0x13d+0x7ad]+'.pretty/'+_0x1a6997[0x5ab+-0x75f+-0x1b5*-0x1]+'.kicad_mod',_0xe10a7f['MqPkF']):(_0x61928('\x22'+kicad_cli_path+(_0x4ad815(a1_0x44ffed._0x346089,a1_0x44ffed._0x1edd02)+'de\x20./build'+_0x4ad815(0x22,a1_0x44ffed._0x1aee39)+'rints/')),_0x2de73f=a1_0x3b0ca9[_0x4ad815(-0x25,-0x17)+'nc'](_0x4ad815(a1_0x44ffed._0x25856a,a1_0x44ffed._0x44db85)+_0x4ad815(a1_0x44ffed._0x12c539,a1_0x44ffed._0x492cb7)+'ts/'+_0x1a6997[-0x1*0x6f8+-0x59*0x53+0x23d4]+_0x4ad815(-0x31,-a1_0x44ffed._0x5f0312),_0xe10a7f[_0x4ad815(0x5e,a1_0x44ffed._0x2395bc)]));_0x2de73f=_0x2de73f['replaceAll']('\x22','`');const _0x34bbd4=a1_0x4febe6(_0x2de73f)[_0x4ad815(-a1_0x44ffed._0x5f0312,-0xe)]();_0x34bbd4[0x4af*0x8+-0x2117*-0x1+-0x468f]==_0x4ad815(0x1e,0x4)&&(_0x34bbd4[0x7f4+-0x1ab9*-0x1+-0x22ad]=_0xe10a7f['RMPLV']),_0xe10a7f['ZZIqE'](__classPrivateFieldSet,this,_Component_footprint_file,S['serialize'](_0x34bbd4)[_0x4ad815(a1_0x44ffed._0x2671cd,a1_0x44ffed._0x1e5bca)]('`','\x22'),'f');}catch(_0x4f1be5){console[_0x4ad815(0x49,a1_0x44ffed._0x5bb8a7)](_0x4f1be5);}if(_0xe10a7f['AdBMh'](__classPrivateFieldGet(this,_Component_footprint_file,'f'),'')){}return __classPrivateFieldGet(this,_Component_footprint_file,'f');}}function a1_0x4fb7(_0x2bfe16,_0x2d9f1c){const _0x2c102e=a1_0xcbdd();return a1_0x4fb7=function(_0x2e8721,_0xd535f2){_0x2e8721=_0x2e8721-(-0x5e1+0x1*0xe4a+-0x6e6*0x1);let _0x528e1e=_0x2c102e[_0x2e8721];if(a1_0x4fb7['nRBCGb']===undefined){var _0x1c31b6=function(_0x57fc67){const _0x18604f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x54cd54='',_0x5a26d3='';for(let _0x5ed5ae=0x5c2+-0x120+-0x251*0x2,_0x4419ec,_0x185561,_0x56044c=0x6b*0x31+0x1*0x9fe+-0x1e79;_0x185561=_0x57fc67['charAt'](_0x56044c++);~_0x185561&&(_0x4419ec=_0x5ed5ae%(-0x17c3+0x5b3*-0x3+0x28e0)?_0x4419ec*(-0xed6+-0x62c+0x1542*0x1)+_0x185561:_0x185561,_0x5ed5ae++%(0x1b69*0x1+0x90d*0x1+-0x2472))?_0x54cd54+=String['fromCharCode'](0x2b6*0x1+-0x9*-0x205+-0x13e4&_0x4419ec>>(-(-0x2*-0x15b+0x68e+-0x6*0x18b)*_0x5ed5ae&0xc5*-0x2f+0x9*-0x124+0x6a3*0x7)):-0x1d*-0x48+-0x35*0x65+0xcc1){_0x185561=_0x18604f['indexOf'](_0x185561);}for(let _0x9ded15=-0x12d*-0x7+-0x1*0x1841+0x1006,_0x22b270=_0x54cd54['length'];_0x9ded15<_0x22b270;_0x9ded15++){_0x5a26d3+='%'+('00'+_0x54cd54['charCodeAt'](_0x9ded15)['toString'](0xda3*0x1+-0x1ea1+0x110e))['slice'](-(0x3*0x812+0x1a11+0x1*-0x3245));}return decodeURIComponent(_0x5a26d3);};a1_0x4fb7['tlTveB']=_0x1c31b6,_0x2bfe16=arguments,a1_0x4fb7['nRBCGb']=!![];}const _0x2805e4=_0x2c102e[-0x1*-0x965+0x9af+-0x1314],_0x48537e=_0x2e8721+_0x2805e4,_0x138b0b=_0x2bfe16[_0x48537e];return!_0x138b0b?(_0x528e1e=a1_0x4fb7['tlTveB'](_0x528e1e),_0x2bfe16[_0x48537e]=_0x528e1e):_0x528e1e=_0x138b0b,_0x528e1e;},a1_0x4fb7(_0x2bfe16,_0x2d9f1c);}_Component_footprint_file=new WeakMap(),_Component_isInitialized=new WeakMap();