mirror of https://github.com/aminya/setup-cpp
4 lines
531 KiB
JavaScript
4 lines
531 KiB
JavaScript
|
#!/usr/bin/env node
|
||
|
function A(A){return A&&A.__esModule&&{}.hasOwnProperty.call(A,"default")?A.default:A}function e(A){if(A.__esModule)return A;var e=A.default;if("function"==typeof e){var t=function A(){return this instanceof A?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(A).forEach((function(e){var r=Object.getOwnPropertyDescriptor(A,e);Object.defineProperty(t,e,r.get?r:{enumerable:!0,get:function(){return A[e]}})})),t}function t(A,e,t){const r=new on(A,e,t);process.stdout.write(""+r+rn.EOL)}function r(){return En>an.length-16&&(qt.randomFillSync(an),En=0),an.slice(En,En+=16)}function n(A){return"string"==typeof A&&gn.test(A)}function i(A,e=0){const t=(cn[A[e+0]]+cn[A[e+1]]+cn[A[e+2]]+cn[A[e+3]]+"-"+cn[A[e+4]]+cn[A[e+5]]+"-"+cn[A[e+6]]+cn[A[e+7]]+"-"+cn[A[e+8]]+cn[A[e+9]]+"-"+cn[A[e+10]]+cn[A[e+11]]+cn[A[e+12]]+cn[A[e+13]]+cn[A[e+14]]+cn[A[e+15]]).toLowerCase();if(!n(t))throw TypeError("Stringified UUID is invalid");return t}function o(A){if(!n(A))throw TypeError("Invalid UUID");let e;const t=new Uint8Array(16);return t[0]=(e=parseInt(A.slice(0,8),16))>>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=255&e,t[4]=(e=parseInt(A.slice(9,13),16))>>>8,t[5]=255&e,t[6]=(e=parseInt(A.slice(14,18),16))>>>8,t[7]=255&e,t[8]=(e=parseInt(A.slice(19,23),16))>>>8,t[9]=255&e,t[10]=(e=parseInt(A.slice(24,36),16))/1099511627776&255,t[11]=e/4294967296&255,t[12]=e>>>24&255,t[13]=e>>>16&255,t[14]=e>>>8&255,t[15]=255&e,t}function s(A,e,t){function r(A,r,n,s){if("string"==typeof A&&(A=function(A){A=unescape(encodeURIComponent(A));const e=[];for(let t=0;A.length>t;++t)e.push(A.charCodeAt(t));return e}(A)),"string"==typeof r&&(r=o(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let a=new Uint8Array(16+A.length);if(a.set(r),a.set(A,r.length),a=t(a),a[6]=15&a[6]|e,a[8]=63&a[8]|128,n){s=s||0;for(let A=0;16>A;++A)n[s+A]=a[A];return n}return i(a)}try{r.name=A}catch(n){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function a(A){if(!A.hostname)return!1;if(function(A){const e=A.toLowerCase();return"localhost"===e||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}(A.hostname))return!0;const e=process.env.no_proxy||process.env.NO_PROXY||"";if(!e)return!1;let t;A.port?t=+A.port:"http:"===A.protocol?t=80:"https:"===A.protocol&&(t=443);const r=[A.hostname.toUpperCase()];"number"==typeof t&&r.push(`${r[0]}:${t}`);for(const n of e.split(",").map((A=>A.trim().toUpperCase())).filter((A=>A)))if("*"===n||r.some((A=>A===n||A.endsWith("."+n)||n.startsWith(".")&&A.endsWith(""+n))))return!0;return!1}function E(A){var e=this;e.options=A||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||Ln.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",(function(A,t,r,n){for(var i=c(t,r,n),o=0,s=e.requests.length;s>o;++o){var a=e.requests[o];if(a.host===i.host&&a.port===i.port)return e.requests.splice(o,1),void a.request.onSocket(A)}A.destroy(),e.removeSocket(A)}))}function g(A,e){var t=this;E.prototype.createSocket.call(t,A,(function(r){var n=A.request.getHeader("host"),i=Q({},t.options,{socket:r,servername:n?n.replace(/:.*$/,""):A.host}),o=vn.connect(0,i);t.sockets[t.sockets.indexOf(r)]=o,e(o)}))}function c(A,e,t){return"string"==typeof A?{host:A,port:e,localAddress:t}:A}function Q(A){for(var e=1,t=arguments.length;t>e;++e){var r=arguments[e];if("object"==typeof r)for(var n=Object.keys(r),i=0,o=n.length;o>i;++i){var s=n[i];void 0!==r[s]&&(A[s]=r[s])}}return A}function I(){return Gn?Yn:(Gn=1,Yn={kClose:Symbol(),kDestroy:Symbol(),kDispatch:Symbol(),kUrl:Symbol(),kWriting:Symbol(),kResuming:Symbol(),kQueue:Symbol(),kConnect:Symbol(),kConnecting:Symbol(),kHeadersList:Symbol(),kKeepAliveDefaultTimeout:Symbol(),kKeepAliveMaxTimeout:Symbol(),kKeepAliveTimeoutThreshold:Symbol(),kKeepAliveTimeoutValue:Symbol(),kKeepAlive:Symbol(),kHeadersTimeout:Symbol(),kBodyTimeout:Symbol(),kServerName:Symbol(),kLocalAddress:Symbo
|
||
|
//# sourceMappingURL=setup-cpp.mjs.map
|