module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=4)}([function(e,t,n){var r=n(1);function o(e,t){if(!e||e.length<=0)throw new Error(t+" is required.")}e.exports={getPassword:function(e,t){return o(e,"Service"),o(t,"Account"),r.getPassword(e,t)},setPassword:function(e,t,n){return o(e,"Service"),o(t,"Account"),o(n,"Password"),r.setPassword(e,t,n)},deletePassword:function(e,t){return o(e,"Service"),o(t,"Account"),r.deletePassword(e,t)},findPassword:function(e){return o(e,"Service"),r.findPassword(e)},findCredentials:function(e){return o(e,"Service"),r.findCredentials(e)}}},function(e,t,n){(function(e){const t=n(3).join(__dirname,"keytar.node");try{global.process.dlopen(e,t)}catch(e){throw new Error("Cannot open "+t+": "+e)}}).call(this,n(2)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){e.exports=require("path")},function(e,t,n){"use strict";function r(e){return"GitHub - "+e}n.r(t);var o=n(0);const u={setItem:function(e,t,n){return o.setPassword(e,t,n)},getItem:function(e,t){return o.getPassword(e,t)},deleteItem:function(e,t){return o.deletePassword(e,t)}};(async function(e){const t=process.env.DESKTOP_USERNAME;if(null==t||0===t.length)return null;if(e.startsWith("Username"))return t;if(e.startsWith("Password")){const e=process.env.DESKTOP_ENDPOINT;if(null==e||0===e.length)return null;const n=r(e);return await u.getItem(n,t)}return null})(process.argv[2]).then(e=>{e&&(process.stdout.write(e),process.stdout.end())})}]);
//# sourceMappingURL=ask-pass.js.map