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qBAChB,IAAI,gBAAkB,QAAQ,mBAE9B,SAAS,SAAS,GACd,IAAI,QAAE,GAAY,EAAI,EAAe,OAAO,EAAI,CAAC,YACjD,OAAO,UAAU,UAAM,OAAQ,GAAQ,YACnC,GAA0B,eAAtB,EAAa,KAAuB,CAEpC,GADA,EAAE,sDACU,aAAa,yBACrB,MAAM,IAAI,MAAM,uEAEd,aAAa,6BAA6B,OAAO,OAAO,CAAE,WAAW,GAC/E,KACK,CACD,EAAE,sEACF,MAAM,KAAE,SAAe,SAAS,oBAAoB,OAAO,OAAO,CAAE,WAAW,IAS/E,EAAE,sFACI,UAAU,MAAM,KACtB,EAAE,kDACI,SAAS,sBAAsB,OAAO,OAAO,CAAE,QAAQ,GACjE,OACM,SAAS,UAAU,CAAE,WAC/B,GACJ,CA7BA,QAAQ,0BAA4B,gBAAgB,gCA8BpD,QAAQ,SAAW","file":"/npm/electron-notarize@1.1.1/lib/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/electron-notarize@1.1.1/lib/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n    var t = {};\n    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n        t[p] = s[p];\n    if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n                t[p[i]] = s[p[i]];\n        }\n    return t;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst debug = require(\"debug\");\nconst helpers_1 = require(\"./helpers\");\nconst legacy_1 = require(\"./legacy\");\nconst notarytool_1 = require(\"./notarytool\");\nconst staple_1 = require(\"./staple\");\nconst d = debug('electron-notarize');\nvar validate_args_1 = require(\"./validate-args\");\nexports.validateAuthorizationArgs = validate_args_1.validateLegacyAuthorizationArgs;\nfunction notarize(_a) {\n    var { appPath } = _a, otherOptions = __rest(_a, [\"appPath\"]);\n    return __awaiter(this, void 0, void 0, function* () {\n        if (otherOptions.tool === 'notarytool') {\n            d('notarizing using the new notarytool system');\n            if (!(yield notarytool_1.isNotaryToolAvailable())) {\n                throw new Error('notarytool is not available, you must be on at least Xcode 13');\n            }\n            yield notarytool_1.notarizeAndWaitForNotaryTool(Object.assign({ appPath }, otherOptions));\n        }\n        else {\n            d('notarizing using the legacy notarization system, this will be slow');\n            const { uuid } = yield legacy_1.startLegacyNotarize(Object.assign({ appPath }, otherOptions));\n            /**\n             * Wait for Apples API to initialize the status UUID\n             *\n             * If we start checking too quickly the UUID is not ready yet\n             * and this step will fail.  It takes Apple a number of minutes\n             * to actually complete the job so an extra 10 second delay here\n             * is not a big deal\n             */\n            d('notarization started, waiting for 10 seconds before pinging Apple for status');\n            yield helpers_1.delay(10000);\n            d('starting to poll for notarization status');\n            yield legacy_1.waitForLegacyNotarize(Object.assign({ uuid }, otherOptions));\n        }\n        yield staple_1.stapleApp({ appPath });\n    });\n}\nexports.notarize = notarize;\n"]}