Page MenuHomeSoftware Heritage

vault.c3b09286179cc55e5a20.js.map
No OneTemporary

vault.c3b09286179cc55e5a20.js.map

{
"version": 3,
"file": "js/vault.c3b09286179cc55e5a20.js",
"mappings": ";CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAa,IAAID,KAEjBD,EAAU,IAAIA,EAAU,KAAK,GAAIA,EAAU,IAAS,MAAIC,KAR1D,CASGK,MAAM,WACT,6DCVA,SAASC,EAAmBC,EAAKC,EAASC,EAAQC,EAAOC,EAAQC,EAAKC,GACpE,IACE,IAAIC,EAAOP,EAAIK,GAAKC,GAChBE,EAAQD,EAAKC,MACjB,MAAOC,GAEP,YADAP,EAAOO,GAILF,EAAKG,KACPT,EAAQO,GAERG,QAAQV,QAAQO,GAAOI,KAAKT,EAAOC,GAwBvCT,EAAOD,QApBP,SAA2BmB,GACzB,OAAO,WACL,IAAIf,EAAOgB,KACPC,EAAOC,UACX,OAAO,IAAIL,SAAQ,SAAUV,EAASC,GACpC,IAAIF,EAAMa,EAAGI,MAAMnB,EAAMiB,GAEzB,SAASZ,EAAMK,GACbT,EAAmBC,EAAKC,EAASC,EAAQC,EAAOC,EAAQ,OAAQI,GAGlE,SAASJ,EAAOc,GACdnB,EAAmBC,EAAKC,EAASC,EAAQC,EAAOC,EAAQ,QAASc,GAGnEf,OAAMgB,+BCtBZ,IAAIC,EAAI,WACN,OAAON,MAAyB,iBAAThB,MAAqBA,KADtC,IAEAuB,SAAS,cAATA,GAIJC,EAAaF,EAAEG,oBACjBC,OAAOC,oBAAoBL,GAAGM,QAAQ,uBAAyB,EAG7DC,EAAaL,GAAcF,EAAEG,mBAOjC,GAJAH,EAAEG,wBAAqBJ,EAEvBxB,EAAOD,QAAU,EAAjB,OAEI4B,EAEFF,EAAEG,mBAAqBI,OAGvB,WACSP,EAAE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ACAU,sBA0G2B,CAAExH,KAAM,MAGzC,QCpIIwJ,yBAA2B,GAG/B,SAASC,oBAAoBC,GAE5B,IAAIC,EAAeH,yBAAyBE,GAC5C,QAAqBzT,IAAjB0T,EACH,OAAOA,EAAanV,QAGrB,IAAIC,EAAS+U,yBAAyBE,GAAY,CAGjDlV,QAAS,IAOV,OAHAoV,oBAAoBF,GAAUjV,EAAQA,EAAOD,QAASiV,qBAG/ChV,EAAOD,QCpBfiV,oBAAoBI,EAAI,SAASpV,GAChC,IAAIqV,EAASrV,GAAUA,EAAOsV,WAC7B,WAAa,OAAOtV,EAAgB,SACpC,WAAa,OAAOA,GAErB,OADAgV,oBAAoBO,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,GCLRL,oBAAoBO,EAAI,SAASxV,EAAS0V,GACzC,IAAI,IAAI/U,KAAO+U,EACXT,oBAAoBU,EAAED,EAAY/U,KAASsU,oBAAoBU,EAAE3V,EAASW,IAC5EmB,OAAO8T,eAAe5V,EAASW,EAAK,CAAEkV,YAAY,EAAMvB,IAAKoB,EAAW/U,MCJ3EsU,oBAAoBU,EAAI,SAASzM,EAAK+H,GAAQ,OAAOnP,OAAOO,UAAUE,eAAeqB,KAAKsF,EAAK+H,ICC/FgE,oBAAoBpF,EAAI,SAAS7P,GACX,oBAAXyC,QAA0BA,OAAOM,aAC1CjB,OAAO8T,eAAe5V,EAASyC,OAAOM,YAAa,CAAEjC,MAAO,WAE7DgB,OAAO8T,eAAe5V,EAAS,aAAc,CAAEc,OAAO",
"sources": [
"webpack://swh.vault/webpack/universalModuleDefinition",
"webpack://swh.vault/./node_modules/@babel/runtime/helpers/asyncToGenerator.js",
"webpack://swh.vault/./node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime-module.js",
"webpack://swh.vault/./node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js",
"webpack://swh.vault/./node_modules/@babel/runtime/regenerator/index.js",
"webpack://swh.vault/./assets/src/bundles/vault/vault-create-tasks.js",
"webpack://swh.vault/./assets/src/bundles/vault/vault-ui.js",
"webpack://swh.vault/./assets/src/utils/functions.js",
"webpack://swh.vault/./assets/src/bundles/vault/vault-table-row.ejs",
"webpack://swh.vault/./node_modules/js-cookie/dist/js.cookie.mjs",
"webpack://swh.vault/webpack/bootstrap",
"webpack://swh.vault/webpack/runtime/compat get default export",
"webpack://swh.vault/webpack/runtime/define property getters",
"webpack://swh.vault/webpack/runtime/hasOwnProperty shorthand",
"webpack://swh.vault/webpack/runtime/make namespace object"
],
"sourcesContent": [
"(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"swh\"] = factory();\n\telse\n\t\troot[\"swh\"] = root[\"swh\"] || {}, root[\"swh\"][\"vault\"] = factory();\n})(self, function() {\nreturn ",
"function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nfunction _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}\n\nmodule.exports = _asyncToGenerator;",
"/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n// This method of obtaining a reference to the global object needs to be\n// kept identical to the way it is obtained in runtime.js\nvar g = (function() {\n return this || (typeof self === \"object\" && self);\n})() || Function(\"return this\")();\n\n// Use `getOwnPropertyNames` because not all browsers support calling\n// `hasOwnProperty` on the global `self` object in a worker. See #183.\nvar hadRuntime = g.regeneratorRuntime &&\n Object.getOwnPropertyNames(g).indexOf(\"regeneratorRuntime\") >= 0;\n\n// Save the old regeneratorRuntime in case it needs to be restored later.\nvar oldRuntime = hadRuntime && g.regeneratorRuntime;\n\n// Force reevalutation of runtime.js.\ng.regeneratorRuntime = undefined;\n\nmodule.exports = require(\"./runtime\");\n\nif (hadRuntime) {\n // Restore the original runtime.\n g.regeneratorRuntime = oldRuntime;\n} else {\n // Remove the global property added by runtime.js.\n try {\n delete g.regeneratorRuntime;\n } catch(e) {\n g.regeneratorRuntime = undefined;\n }\n}\n",
"/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n!(function(global) {\n \"use strict\";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n var inModule = typeof module === \"object\";\n var runtime = global.regeneratorRuntime;\n if (runtime) {\n if (inModule) {\n // If regeneratorRuntime is defined globally and we're in a module,\n // make the exports object identical to regeneratorRuntime.\n module.exports = runtime;\n }\n // Don't bother evaluating the rest of this file if the runtime was\n // already defined globally.\n return;\n }\n\n // Define the runtime globally (as expected by generated code) as either\n // module.exports (if we're in a module) or a new, empty object.\n runtime = global.regeneratorRuntime = inModule ? module.exports : {};\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n runtime.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n IteratorPrototype[iteratorSymbol] = function () {\n return this;\n };\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype &&\n NativeIteratorPrototype !== Op &&\n hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype =\n Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunctionPrototype[toStringTagSymbol] =\n GeneratorFunction.displayName = \"GeneratorFunction\";\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n prototype[method] = function(arg) {\n return this._invoke(method, arg);\n };\n });\n }\n\n runtime.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n runtime.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n if (!(toStringTagSymbol in genFun)) {\n genFun[toStringTagSymbol] = \"GeneratorFunction\";\n }\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n // meant to be awaited.\n runtime.awrap = function(arg) {\n return { __await: arg };\n };\n\n function AsyncIterator(generator) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value &&\n typeof value === \"object\" &&\n hasOwn.call(value, \"__await\")) {\n return Promise.resolve(value.__await).then(function(value) {\n invoke(\"next\", value, resolve, reject);\n }, function(err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n\n return Promise.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function(error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new Promise(function(resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n AsyncIterator.prototype[asyncIteratorSymbol] = function () {\n return this;\n };\n runtime.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n runtime.async = function(innerFn, outerFn, self, tryLocsList) {\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList)\n );\n\n return runtime.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === \"throw\") {\n if (delegate.iterator.return) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = \"throw\";\n context.arg = new TypeError(\n \"The iterator does not provide a 'throw' method\");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (! info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined;\n }\n\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n Gp[toStringTagSymbol] = \"Generator\";\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n Gp[iteratorSymbol] = function() {\n return this;\n };\n\n Gp.toString = function() {\n return \"[object Generator]\";\n };\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n runtime.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n runtime.values = values;\n\n function doneResult() {\n return { value: undefined, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n\n this.method = \"next\";\n this.arg = undefined;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined;\n }\n\n return !! caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc <= arg &&\n arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n };\n})(\n // In sloppy mode, unbound `this` refers to the global object, fallback to\n // Function constructor if we're in global strict mode. That is sadly a form\n // of indirect eval which violates Content Security Policy.\n (function() {\n return this || (typeof self === \"object\" && self);\n })() || Function(\"return this\")()\n);\n",
"module.exports = require(\"regenerator-runtime\");\n",
"/**\n * Copyright (C) 2018-2019 The Software Heritage developers\n * See the AUTHORS file at the top-level directory of this distribution\n * License: GNU Affero General Public License version 3, or any later version\n * See top-level LICENSE file for more information\n */\n\nimport {handleFetchError, csrfPost, htmlAlert} from 'utils/functions';\n\nconst alertStyle = {\n 'position': 'fixed',\n 'left': '1rem',\n 'bottom': '1rem',\n 'z-index': '100000'\n};\n\nexport async function vaultRequest(objectType, swhid) {\n let vaultUrl;\n if (objectType === 'directory') {\n vaultUrl = Urls.api_1_vault_cook_flat(swhid);\n } else {\n vaultUrl = Urls.api_1_vault_cook_git_bare(swhid);\n }\n // check if object has already been cooked\n const response = await fetch(vaultUrl);\n const data = await response.json();\n\n // object needs to be cooked\n if (data.exception === 'NotFoundExc' || data.status === 'failed') {\n // if last cooking has failed, remove previous task info from localStorage\n // in order to force the recooking of the object\n swh.vault.removeCookingTaskInfo([swhid]);\n $(`#vault-cook-${objectType}-modal`).modal('show');\n // object has been cooked and should be in the vault cache,\n // it will be asked to cook it again if it is not\n } else if (data.status === 'done') {\n $(`#vault-fetch-${objectType}-modal`).modal('show');\n } else {\n const cookingServiceDownAlert =\n $(htmlAlert('danger',\n 'Archive cooking service is currently experiencing issues.<br/>' +\n 'Please try again later.',\n true));\n cookingServiceDownAlert.css(alertStyle);\n $('body').append(cookingServiceDownAlert);\n }\n}\n\nasync function addVaultCookingTask(objectType, cookingTask) {\n\n const swhidsContext = swh.webapp.getSwhIdsContext();\n cookingTask.origin = swhidsContext[objectType].context.origin;\n cookingTask.path = swhidsContext[objectType].context.path;\n cookingTask.browse_url = swhidsContext[objectType].swhid_with_context_url;\n if (!cookingTask.browse_url) {\n cookingTask.browse_url = swhidsContext[objectType].swhid_url;\n }\n\n let vaultCookingTasks = JSON.parse(localStorage.getItem('swh-vault-cooking-tasks'));\n if (!vaultCookingTasks) {\n vaultCookingTasks = [];\n }\n if (vaultCookingTasks.find(val => {\n return val.bundle_type === cookingTask.bundle_type &&\n val.swhid === cookingTask.swhid;\n }) === undefined) {\n let cookingUrl;\n if (cookingTask.bundle_type === 'flat') {\n cookingUrl = Urls.api_1_vault_cook_flat(cookingTask.swhid);\n } else {\n cookingUrl = Urls.api_1_vault_cook_git_bare(cookingTask.swhid);\n }\n if (cookingTask.email) {\n cookingUrl += '?email=' + cookingTask.email;\n }\n\n try {\n const response = await csrfPost(cookingUrl);\n handleFetchError(response);\n vaultCookingTasks.push(cookingTask);\n localStorage.setItem('swh-vault-cooking-tasks', JSON.stringify(vaultCookingTasks));\n $('#vault-cook-directory-modal').modal('hide');\n $('#vault-cook-revision-modal').modal('hide');\n const cookingTaskCreatedAlert =\n $(htmlAlert('success',\n 'Archive cooking request successfully submitted.<br/>' +\n `Go to the <a href=\"${Urls.browse_vault()}\">Downloads</a> page ` +\n 'to get the download link once it is ready.',\n true));\n cookingTaskCreatedAlert.css(alertStyle);\n $('body').append(cookingTaskCreatedAlert);\n } catch (_) {\n $('#vault-cook-directory-modal').modal('hide');\n $('#vault-cook-revision-modal').modal('hide');\n const cookingTaskFailedAlert =\n $(htmlAlert('danger',\n 'Archive cooking request submission failed.',\n true));\n cookingTaskFailedAlert.css(alertStyle);\n $('body').append(cookingTaskFailedAlert);\n }\n }\n}\n\nfunction validateEmail(email) {\n const re = /^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\n return re.test(String(email).toLowerCase());\n}\n\nexport function cookDirectoryArchive(swhid) {\n const email = $('#swh-vault-directory-email').val().trim();\n if (!email || validateEmail(email)) {\n const cookingTask = {\n 'bundle_type': 'flat',\n 'swhid': swhid,\n 'email': email,\n 'status': 'new'\n };\n addVaultCookingTask('directory', cookingTask);\n\n } else {\n $('#invalid-email-modal').modal('show');\n }\n}\n\nexport async function fetchDirectoryArchive(directorySwhid) {\n $('#vault-fetch-directory-modal').modal('hide');\n const vaultUrl = Urls.api_1_vault_cook_flat(directorySwhid);\n const response = await fetch(vaultUrl);\n const data = await response.json();\n swh.vault.fetchCookedObject(data.fetch_url);\n}\n\nexport function cookRevisionArchive(revisionId) {\n const email = $('#swh-vault-revision-email').val().trim();\n if (!email || validateEmail(email)) {\n const cookingTask = {\n 'bundle_type': 'git_bare',\n 'swhid': revisionId,\n 'email': email,\n 'status': 'new'\n };\n addVaultCookingTask('revision', cookingTask);\n } else {\n $('#invalid-email-modal').modal('show');\n }\n}\n\nexport async function fetchRevisionArchive(revisionSwhid) {\n $('#vault-fetch-directory-modal').modal('hide');\n const vaultUrl = Urls.api_1_vault_cook_git_bare(revisionSwhid);\n const response = await fetch(vaultUrl);\n const data = await response.json();\n swh.vault.fetchCookedObject(data.fetch_url);\n}\n",
"/**\n * Copyright (C) 2018-2019 The Software Heritage developers\n * See the AUTHORS file at the top-level directory of this distribution\n * License: GNU Affero General Public License version 3, or any later version\n * See top-level LICENSE file for more information\n */\n\nimport {handleFetchError, handleFetchErrors, csrfPost} from 'utils/functions';\nimport vaultTableRowTemplate from './vault-table-row.ejs';\n\nconst progress =\n `<div class=\"progress\">\n <div class=\"progress-bar progress-bar-success progress-bar-striped\"\n role=\"progressbar\" aria-valuenow=\"100\" aria-valuemin=\"0\"\n aria-valuemax=\"100\" style=\"width: 100%;height: 100%;\">\n </div>\n </div>;`;\n\nconst pollingInterval = 5000;\nlet checkVaultId;\n\nfunction updateProgressBar(progressBar, cookingTask) {\n if (cookingTask.status === 'new') {\n progressBar.css('background-color', 'rgba(128, 128, 128, 0.5)');\n } else if (cookingTask.status === 'pending') {\n progressBar.css('background-color', 'rgba(0, 0, 255, 0.5)');\n } else if (cookingTask.status === 'done') {\n progressBar.css('background-color', '#5cb85c');\n } else if (cookingTask.status === 'failed') {\n progressBar.css('background-color', 'rgba(255, 0, 0, 0.5)');\n progressBar.css('background-image', 'none');\n }\n var text = cookingTask.progress_message || cookingTask.status;\n text = text.split('\\n', 2)[0];\n progressBar.text(text);\n if (cookingTask.status === 'new' || cookingTask.status === 'pending') {\n progressBar.addClass('progress-bar-animated');\n } else {\n progressBar.removeClass('progress-bar-striped');\n }\n}\n\nlet recookTask;\n\n// called when the user wants to download a cooked archive\nexport async function fetchCookedObject(fetchUrl) {\n recookTask = null;\n // first, check if the link is still available from the vault\n const response = await fetch(fetchUrl);\n\n // link is still alive, proceed to download\n if (response.ok) {\n $('#vault-fetch-iframe').attr('src', fetchUrl);\n // link is dead\n } else {\n // get the associated cooking task\n const vaultCookingTasks = JSON.parse(localStorage.getItem('swh-vault-cooking-tasks'));\n for (let i = 0; i < vaultCookingTasks.length; ++i) {\n if (vaultCookingTasks[i].fetch_url === fetchUrl) {\n recookTask = vaultCookingTasks[i];\n break;\n }\n }\n // display a modal asking the user if he wants to recook the archive\n $('#vault-recook-object-modal').modal('show');\n }\n}\n\n// called when the user wants to recook an archive\n// for which the download link is not available anymore\nexport async function recookObject() {\n if (recookTask) {\n // stop cooking tasks status polling\n clearTimeout(checkVaultId);\n // build cook request url\n let cookingUrl;\n if (recookTask.bundle_type === 'flat') {\n cookingUrl = Urls.api_1_vault_cook_flat(recookTask.swhid);\n } else {\n cookingUrl = Urls.api_1_vault_cook_git_bare(recookTask.swhid);\n }\n if (recookTask.email) {\n cookingUrl += '?email=' + recookTask.email;\n }\n try {\n // request archive cooking\n const response = await csrfPost(cookingUrl);\n handleFetchError(response);\n\n // update task status\n recookTask.status = 'new';\n const vaultCookingTasks = JSON.parse(localStorage.getItem('swh-vault-cooking-tasks'));\n for (let i = 0; i < vaultCookingTasks.length; ++i) {\n if (vaultCookingTasks[i].swhid === recookTask.swhid) {\n vaultCookingTasks[i] = recookTask;\n break;\n }\n }\n // save updated tasks to local storage\n localStorage.setItem('swh-vault-cooking-tasks', JSON.stringify(vaultCookingTasks));\n // hide recook archive modal\n $('#vault-recook-object-modal').modal('hide');\n // restart cooking tasks status polling\n await checkVaultCookingTasks();\n } catch (_) {\n // something went wrong\n $('#vault-recook-object-modal').modal('hide');\n await checkVaultCookingTasks();\n }\n }\n}\n\nasync function checkVaultCookingTasks() {\n const vaultCookingTasks = JSON.parse(localStorage.getItem('swh-vault-cooking-tasks'));\n if (!vaultCookingTasks || vaultCookingTasks.length === 0) {\n $('.swh-vault-table tbody tr').remove();\n checkVaultId = setTimeout(checkVaultCookingTasks, pollingInterval);\n return;\n }\n const cookingTaskRequests = [];\n const tasks = {};\n const currentObjectIds = [];\n\n for (let i = 0; i < vaultCookingTasks.length; ++i) {\n const cookingTask = vaultCookingTasks[i];\n\n if (typeof cookingTask.object_type !== 'undefined') {\n // Legacy cooking task, upgrade it to the new schema\n if (cookingTask.object_type === 'directory') {\n cookingTask.swhid = `swh:1:dir:${cookingTask.object_id}`;\n cookingTask.bundle_type = 'flat';\n cookingTask.fetch_url = Urls.api_1_vault_fetch_flat(cookingTask.swhid);\n } else if (cookingTask.object_type === 'revision') {\n cookingTask.swhid = `swh:1:rev:${cookingTask.object_id}`;\n cookingTask.bundle_type = 'git_bare';\n cookingTask.fetch_url = Urls.api_1_vault_fetch_git_bare(cookingTask.swhid);\n } else {\n // Log to the console + Sentry\n console.error(`Unexpected cookingTask.object_type: ${cookingTask.object_type}`);\n // Ignore it for now and hope a future version will fix it\n continue;\n }\n delete cookingTask.object_type;\n delete cookingTask.object_id;\n }\n\n currentObjectIds.push(cookingTask.swhid);\n tasks[cookingTask.swhid] = cookingTask;\n let cookingUrl;\n if (cookingTask.bundle_type === 'flat') {\n cookingUrl = Urls.api_1_vault_cook_flat(cookingTask.swhid);\n } else {\n cookingUrl = Urls.api_1_vault_cook_git_bare(cookingTask.swhid);\n }\n if (cookingTask.status !== 'done' && cookingTask.status !== 'failed') {\n cookingTaskRequests.push(fetch(cookingUrl));\n }\n }\n $('.swh-vault-table tbody tr').each((i, row) => {\n const swhid = $(row).find('.vault-object-info').data('swhid');\n if ($.inArray(swhid, currentObjectIds) === -1) {\n $(row).remove();\n }\n });\n try {\n const responses = await Promise.all(cookingTaskRequests);\n handleFetchErrors(responses);\n const cookingTasks = await Promise.all(responses.map(r => r.json()));\n\n const table = $('#vault-cooking-tasks tbody');\n for (let i = 0; i < cookingTasks.length; ++i) {\n const cookingTask = tasks[cookingTasks[i].swhid];\n cookingTask.status = cookingTasks[i].status;\n cookingTask.fetch_url = cookingTasks[i].fetch_url;\n cookingTask.progress_message = cookingTasks[i].progress_message;\n }\n for (let i = 0; i < vaultCookingTasks.length; ++i) {\n const cookingTask = vaultCookingTasks[i];\n const rowTask = $(`#vault-task-${CSS.escape(cookingTask.swhid)}`);\n\n if (!rowTask.length) {\n\n let browseUrl = cookingTask.browse_url;\n if (!browseUrl) {\n browseUrl = Urls.browse_swhid(cookingTask.swhid);\n }\n\n const progressBar = $.parseHTML(progress)[0];\n const progressBarContent = $(progressBar).find('.progress-bar');\n updateProgressBar(progressBarContent, cookingTask);\n table.prepend(vaultTableRowTemplate({\n browseUrl: browseUrl,\n cookingTask: cookingTask,\n progressBar: progressBar,\n Urls: Urls,\n swh: swh\n }));\n } else {\n const progressBar = rowTask.find('.progress-bar');\n updateProgressBar(progressBar, cookingTask);\n const downloadLink = rowTask.find('.vault-dl-link');\n if (cookingTask.status === 'done') {\n downloadLink[0].innerHTML =\n '<button class=\"btn btn-default btn-sm\" ' +\n `onclick=\"swh.vault.fetchCookedObject('${cookingTask.fetch_url}')\">` +\n '<i class=\"mdi mdi-download mdi-fw\" aria-hidden=\"true\"></i>Download</button>';\n } else {\n downloadLink[0].innerHTML = '';\n }\n }\n }\n localStorage.setItem('swh-vault-cooking-tasks', JSON.stringify(vaultCookingTasks));\n checkVaultId = setTimeout(checkVaultCookingTasks, pollingInterval);\n\n } catch (error) {\n console.log('Error when fetching vault cooking tasks:', error);\n }\n}\n\nexport function removeCookingTaskInfo(tasksToRemove) {\n let vaultCookingTasks = JSON.parse(localStorage.getItem('swh-vault-cooking-tasks'));\n if (!vaultCookingTasks) {\n return;\n }\n vaultCookingTasks = $.grep(vaultCookingTasks, task => {\n return $.inArray(task.swhid, tasksToRemove) === -1;\n });\n localStorage.setItem('swh-vault-cooking-tasks', JSON.stringify(vaultCookingTasks));\n}\n\nexport function initUi() {\n\n $('#vault-tasks-toggle-selection').change(event => {\n $('.vault-task-toggle-selection').prop('checked', event.currentTarget.checked);\n });\n\n $('#vault-remove-tasks').click(() => {\n clearTimeout(checkVaultId);\n const tasksToRemove = [];\n $('.swh-vault-table tbody tr').each((i, row) => {\n const taskSelected = $(row).find('.vault-task-toggle-selection').prop('checked');\n if (taskSelected) {\n const swhid = $(row).find('.vault-object-info').data('swhid');\n tasksToRemove.push(swhid);\n $(row).remove();\n }\n });\n removeCookingTaskInfo(tasksToRemove);\n $('#vault-tasks-toggle-selection').prop('checked', false);\n checkVaultId = setTimeout(checkVaultCookingTasks, pollingInterval);\n });\n\n checkVaultCookingTasks();\n\n window.onfocus = () => {\n clearTimeout(checkVaultId);\n checkVaultCookingTasks();\n };\n\n}\n",
"/**\n * Copyright (C) 2018-2020 The Software Heritage developers\n * See the AUTHORS file at the top-level directory of this distribution\n * License: GNU Affero General Public License version 3, or any later version\n * See top-level LICENSE file for more information\n */\n\n// utility functions\n\nimport Cookies from 'js-cookie';\n\nexport function handleFetchError(response) {\n if (!response.ok) {\n throw response;\n }\n return response;\n}\n\nexport function handleFetchErrors(responses) {\n for (let i = 0; i < responses.length; ++i) {\n if (!responses[i].ok) {\n throw responses[i];\n }\n }\n return responses;\n}\n\nexport function staticAsset(asset) {\n return `${__STATIC__}${asset}`;\n}\n\nexport function csrfPost(url, headers = {}, body = null) {\n headers['X-CSRFToken'] = Cookies.get('csrftoken');\n return fetch(url, {\n credentials: 'include',\n headers: headers,\n method: 'POST',\n body: body\n });\n}\n\nexport function isGitRepoUrl(url, pathPrefix = '/') {\n const allowedProtocols = ['http:', 'https:', 'git:'];\n if (allowedProtocols.find(protocol => protocol === url.protocol) === undefined) {\n return false;\n }\n if (!url.pathname.startsWith(pathPrefix)) {\n return false;\n }\n const re = new RegExp('[\\\\w\\\\.-]+\\\\/?(?!=.git)(?:\\\\.git\\\\/?)?$');\n return re.test(url.pathname.slice(pathPrefix.length));\n};\n\nexport function removeUrlFragment() {\n history.replaceState('', document.title, window.location.pathname + window.location.search);\n}\n\nexport function selectText(startNode, endNode) {\n const selection = window.getSelection();\n selection.removeAllRanges();\n const range = document.createRange();\n range.setStart(startNode, 0);\n if (endNode.nodeName !== '#text') {\n range.setEnd(endNode, endNode.childNodes.length);\n } else {\n range.setEnd(endNode, endNode.textContent.length);\n }\n selection.addRange(range);\n}\n\nexport function htmlAlert(type, message, closable = false) {\n let closeButton = '';\n let extraClasses = '';\n if (closable) {\n closeButton =\n `<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">\n <span aria-hidden=\"true\">&times;</span>\n </button>`;\n extraClasses = 'alert-dismissible';\n }\n return `<div class=\"alert alert-${type} ${extraClasses}\" role=\"alert\">${message}${closeButton}</div>`;\n}\n\nexport function isValidURL(string) {\n try {\n new URL(string);\n } catch (_) {\n return false;\n }\n return true;\n}\n\nexport async function isArchivedOrigin(originPath) {\n if (!isValidURL(originPath)) {\n // Not a valid URL, return immediately\n return false;\n } else {\n const response = await fetch(Urls.api_1_origin(originPath));\n return response.ok && response.status === 200; // Success response represents an archived origin\n }\n}\n\nexport async function getCanonicalOriginURL(originUrl) {\n let originUrlLower = originUrl.toLowerCase();\n // github.com URL processing\n const ghUrlRegex = /^http[s]*:\\/\\/github.com\\//;\n if (originUrlLower.match(ghUrlRegex)) {\n // remove trailing .git\n if (originUrlLower.endsWith('.git')) {\n originUrlLower = originUrlLower.slice(0, -4);\n }\n // remove trailing slash\n if (originUrlLower.endsWith('/')) {\n originUrlLower = originUrlLower.slice(0, -1);\n }\n // extract {owner}/{repo}\n const ownerRepo = originUrlLower.replace(ghUrlRegex, '');\n // fetch canonical URL from github Web API\n const ghApiResponse = await fetch(`https://api.github.com/repos/${ownerRepo}`);\n if (ghApiResponse.ok && ghApiResponse.status === 200) {\n const ghApiResponseData = await ghApiResponse.json();\n return ghApiResponseData.html_url;\n }\n }\n return originUrl;\n}\n",
"module.exports = function anonymous(locals, escapeFn, include, rethrow\n) {\nescapeFn = escapeFn || function (markup) {\n return markup == undefined\n ? ''\n : String(markup)\n .replace(_MATCH_HTML, encode_char);\n};\nvar _ENCODE_HTML_RULES = {\n \"&\": \"&amp;\"\n , \"<\": \"&lt;\"\n , \">\": \"&gt;\"\n , '\"': \"&#34;\"\n , \"'\": \"&#39;\"\n }\n , _MATCH_HTML = /[&<>'\"]/g;\nfunction encode_char(c) {\n return _ENCODE_HTML_RULES[c] || c;\n};\n;\n var __output = \"\";\n function __append(s) { if (s !== undefined && s !== null) __output += s }\n with (locals || {}) {\n ; __append(\"\\n\\n\")\n ; if (cookingTask.swhid.match(/^swh:1:dir:.*/)) { \n ; __append(\"\\n <tr id=\\\"vault-task-\")\n ; __append(escapeFn( cookingTask.swhid ))\n ; __append(\"\\\" title=\\\"Once downloaded, the directory can be extracted with the following command:\\n\\n$ tar xvzf \")\n ; __append(escapeFn( cookingTask.swhid ))\n ; __append(\".tar.gz\\\">\\n\")\n ; } else { \n ; __append(\"\\n </tr><tr id=\\\"vault-task-\")\n ; __append(escapeFn( cookingTask.swhid ))\n ; __append(\"\\\" title=\\\"Once downloaded, the git repository can be imported to a 'new_repository' directory with the following commands:\\n\\n$ tar xvf \")\n ; __append(escapeFn( cookingTask.swhid ))\n ; __append(\".git.tar\\n$ git clone \")\n ; __append(escapeFn( cookingTask.swhid ))\n ; __append(\".git new_repository\\n$ cd new_repository/\\\">\\n\")\n ; } \n ; __append(\"\\n <td>\\n <div class=\\\"custom-control custom-checkbox\\\">\\n <input type=\\\"checkbox\\\" class=\\\"custom-control-input vault-task-toggle-selection\\\" id=\\\"vault-task-toggle-selection-\")\n ; __append(escapeFn( cookingTask.swhid ))\n ; __append(\"\\\">\\n <label class=\\\"custom-control-label\\\" for=\\\"vault-task-toggle-selection-\")\n ; __append(escapeFn( cookingTask.swhid ))\n ; __append(\"\\\">\\n </label>\\n </div></td>\\n \")\n ; if (cookingTask.origin) { \n ; __append(\"\\n <td class=\\\"vault-origin\\\">\\n <a href=\\\"\")\n ; __append(escapeFn( Urls.browse_origin() ))\n ; __append(\"?origin_url=\")\n ; __append(escapeFn( cookingTask.origin ))\n ; __append(\"\\\">\\n \")\n ; __append(escapeFn( decodeURIComponent(cookingTask.origin) ))\n ; __append(\"\\n </a>\\n </td>\\n \")\n ; } else { \n ; __append(\"\\n <td class=\\\"vault-origin\\\">unknown</td>\\n \")\n ; } \n ; __append(\"\\n <td>\\n <i class=\\\"\")\n ; __append(escapeFn( swh.webapp.getSwhObjectIcon(cookingTask.swhid.match(/swh:1:([a-z]+):/)[1]) ))\n ; __append(\" mdi-fw\\\"></i>\\n \")\n ; __append(escapeFn( cookingTask.bundle_type ))\n ; __append(\"\\n </td>\\n <td class=\\\"vault-object-info\\\" data-swhid=\\\"\")\n ; __append(escapeFn( cookingTask.swhid ))\n ; __append(\"\\\">\\n <b>id:</b>&nbsp;<a href=\\\"\")\n ; __append(escapeFn( browseUrl ))\n ; __append(\"\\\">\")\n ; __append(escapeFn( cookingTask.swhid ))\n ; __append(\"</a>\\n \")\n ; if (cookingTask.path) { \n ; __append(\"\\n <br><b>path:</b>&nbsp;\")\n ; __append(escapeFn( cookingTask.path ))\n ; __append(\"\\n \")\n ; } \n ; __append(\"\\n </td>\\n <td>\")\n ; __append( progressBar.outerHTML )\n ; __append(\"</td>\\n <td class=\\\"vault-dl-link\\\">\\n \")\n ; if (cookingTask.status === 'done') { \n ; __append(\"\\n <button class=\\\"btn btn-default btn-sm\\\" onclick=\\\"swh.vault.fetchCookedObject('\")\n ; __append(escapeFn( cookingTask.fetch_url ))\n ; __append(\"')\\\">\\n <i class=\\\"mdi mdi-download mdi-fw\\\" aria-hidden=\\\"true\\\"></i>Download\\n </button>\\n \")\n ; } \n ; __append(\"\\n </td>\\n </tr>\\n\")\n }\n return __output;\n\n}",
"/*! js-cookie v3.0.1 | MIT */\n/* eslint-disable no-var */\nfunction assign (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n target[key] = source[key];\n }\n }\n return target\n}\n/* eslint-enable no-var */\n\n/* eslint-disable no-var */\nvar defaultConverter = {\n read: function (value) {\n if (value[0] === '\"') {\n value = value.slice(1, -1);\n }\n return value.replace(/(%[\\dA-F]{2})+/gi, decodeURIComponent)\n },\n write: function (value) {\n return encodeURIComponent(value).replace(\n /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,\n decodeURIComponent\n )\n }\n};\n/* eslint-enable no-var */\n\n/* eslint-disable no-var */\n\nfunction init (converter, defaultAttributes) {\n function set (key, value, attributes) {\n if (typeof document === 'undefined') {\n return\n }\n\n attributes = assign({}, defaultAttributes, attributes);\n\n if (typeof attributes.expires === 'number') {\n attributes.expires = new Date(Date.now() + attributes.expires * 864e5);\n }\n if (attributes.expires) {\n attributes.expires = attributes.expires.toUTCString();\n }\n\n key = encodeURIComponent(key)\n .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)\n .replace(/[()]/g, escape);\n\n var stringifiedAttributes = '';\n for (var attributeName in attributes) {\n if (!attributes[attributeName]) {\n continue\n }\n\n stringifiedAttributes += '; ' + attributeName;\n\n if (attributes[attributeName] === true) {\n continue\n }\n\n // Considers RFC 6265 section 5.2:\n // ...\n // 3. If the remaining unparsed-attributes contains a %x3B (\";\")\n // character:\n // Consume the characters of the unparsed-attributes up to,\n // not including, the first %x3B (\";\") character.\n // ...\n stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];\n }\n\n return (document.cookie =\n key + '=' + converter.write(value, key) + stringifiedAttributes)\n }\n\n function get (key) {\n if (typeof document === 'undefined' || (arguments.length && !key)) {\n return\n }\n\n // To prevent the for loop in the first place assign an empty array\n // in case there are no cookies at all.\n var cookies = document.cookie ? document.cookie.split('; ') : [];\n var jar = {};\n for (var i = 0; i < cookies.length; i++) {\n var parts = cookies[i].split('=');\n var value = parts.slice(1).join('=');\n\n try {\n var foundKey = decodeURIComponent(parts[0]);\n jar[foundKey] = converter.read(value, foundKey);\n\n if (key === foundKey) {\n break\n }\n } catch (e) {}\n }\n\n return key ? jar[key] : jar\n }\n\n return Object.create(\n {\n set: set,\n get: get,\n remove: function (key, attributes) {\n set(\n key,\n '',\n assign({}, attributes, {\n expires: -1\n })\n );\n },\n withAttributes: function (attributes) {\n return init(this.converter, assign({}, this.attributes, attributes))\n },\n withConverter: function (converter) {\n return init(assign({}, this.converter, converter), this.attributes)\n }\n },\n {\n attributes: { value: Object.freeze(defaultAttributes) },\n converter: { value: Object.freeze(converter) }\n }\n )\n}\n\nvar api = init(defaultConverter, { path: '/' });\n/* eslint-enable no-var */\n\nexport default api;\n",
"// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n",
"// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};",
"// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};",
"__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }",
"// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};"
],
"names": [
"root",
"factory",
"exports",
"module",
"define",
"amd",
"self",
"asyncGeneratorStep",
"gen",
"resolve",
"reject",
"_next",
"_throw",
"key",
"arg",
"info",
"value",
"error",
"done",
"Promise",
"then",
"fn",
"this",
"args",
"arguments",
"apply",
"err",
"undefined",
"g",
"Function",
"hadRuntime",
"regeneratorRuntime",
"Object",
"getOwnPropertyNames",
"indexOf",
"oldRuntime",
"e",
"global",
"Op",
"prototype",
"hasOwn",
"hasOwnProperty",
"$Symbol",
"Symbol",
"iteratorSymbol",
"iterator",
"asyncIteratorSymbol",
"asyncIterator",
"toStringTagSymbol",
"toStringTag",
"runtime",
"wrap",
"GenStateSuspendedStart",
"GenStateSuspendedYield",
"GenStateExecuting",
"GenStateCompleted",
"ContinueSentinel",
"IteratorPrototype",
"getProto",
"getPrototypeOf",
"NativeIteratorPrototype",
"values",
"call",
"Gp",
"GeneratorFunctionPrototype",
"Generator",
"create",
"GeneratorFunction",
"constructor",
"displayName",
"isGeneratorFunction",
"genFun",
"ctor",
"name",
"mark",
"setPrototypeOf",
"__proto__",
"awrap",
"__await",
"defineIteratorMethods",
"AsyncIterator",
"async",
"innerFn",
"outerFn",
"tryLocsList",
"iter",
"next",
"result",
"toString",
"keys",
"object",
"push",
"reverse",
"length",
"pop",
"Context",
"reset",
"skipTempReset",
"prev",
"sent",
"_sent",
"delegate",
"method",
"tryEntries",
"forEach",
"resetTryEntry",
"charAt",
"isNaN",
"slice",
"stop",
"rootRecord",
"completion",
"type",
"rval",
"dispatchException",
"exception",
"context",
"handle",
"loc",
"caught",
"record",
"i",
"entry",
"tryLoc",
"hasCatch",
"hasFinally",
"catchLoc",
"finallyLoc",
"Error",
"abrupt",
"finallyEntry",
"complete",
"afterLoc",
"finish",
"thrown",
"delegateYield",
"iterable",
"resultName",
"nextLoc",
"protoGenerator",
"generator",
"_invoke",
"state",
"doneResult",
"delegateResult",
"maybeInvokeDelegate",
"tryCatch",
"makeInvokeMethod",
"obj",
"invoke",
"unwrapped",
"previousPromise",
"callInvokeWithMethodAndArg",
"return",
"TypeError",
"pushTryEntry",
"locs",
"iteratorMethod",
"alertStyle",
"vaultRequest",
"objectType",
"swhid",
"vaultUrl",
"Urls",
"api_1_vault_cook_flat",
"api_1_vault_cook_git_bare",
"fetch",
"response",
"json",
"data",
"status",
"swh",
"vault",
"removeCookingTaskInfo",
"$",
"modal",
"cookingServiceDownAlert",
"htmlAlert",
"css",
"append",
"addVaultCookingTask",
"cookingTask",
"swhidsContext",
"webapp",
"getSwhIdsContext",
"origin",
"path",
"browse_url",
"swhid_with_context_url",
"swhid_url",
"vaultCookingTasks",
"JSON",
"parse",
"localStorage",
"getItem",
"find",
"val",
"bundle_type",
"cookingUrl",
"email",
"csrfPost",
"handleFetchError",
"setItem",
"stringify",
"cookingTaskCreatedAlert",
"browse_vault",
"cookingTaskFailedAlert",
"validateEmail",
"test",
"String",
"toLowerCase",
"cookDirectoryArchive",
"trim",
"fetchDirectoryArchive",
"directorySwhid",
"fetchCookedObject",
"fetch_url",
"cookRevisionArchive",
"revisionId",
"fetchRevisionArchive",
"revisionSwhid",
"checkVaultId",
"recookTask",
"progress",
"pollingInterval",
"updateProgressBar",
"progressBar",
"text",
"progress_message",
"split",
"addClass",
"removeClass",
"fetchUrl",
"ok",
"attr",
"recookObject",
"clearTimeout",
"checkVaultCookingTasks",
"remove",
"setTimeout",
"cookingTaskRequests",
"tasks",
"currentObjectIds",
"object_type",
"object_id",
"api_1_vault_fetch_flat",
"api_1_vault_fetch_git_bare",
"console",
"each",
"row",
"inArray",
"all",
"responses",
"handleFetchErrors",
"map",
"r",
"cookingTasks",
"table",
"rowTask",
"CSS",
"escape",
"downloadLink",
"innerHTML",
"browseUrl",
"browse_swhid",
"parseHTML",
"prepend",
"vaultTableRowTemplate",
"log",
"tasksToRemove",
"grep",
"task",
"initUi",
"change",
"event",
"prop",
"currentTarget",
"checked",
"click",
"window",
"onfocus",
"url",
"headers",
"body",
"Cookies",
"credentials",
"message",
"closable",
"closeButton",
"extraClasses",
"anonymous",
"locals",
"escapeFn",
"include",
"rethrow",
"markup",
"replace",
"_MATCH_HTML",
"encode_char",
"_ENCODE_HTML_RULES",
"c",
"__output",
"__append",
"s",
"match",
"browse_origin",
"decodeURIComponent",
"getSwhObjectIcon",
"outerHTML",
"assign",
"target",
"source",
"api",
"init",
"converter",
"defaultAttributes",
"set",
"attributes",
"document",
"expires",
"Date",
"now",
"toUTCString",
"encodeURIComponent",
"stringifiedAttributes",
"attributeName",
"cookie",
"write",
"get",
"cookies",
"jar",
"parts",
"join",
"foundKey",
"read",
"withAttributes",
"withConverter",
"freeze",
"__webpack_module_cache__",
"__webpack_require__",
"moduleId",
"cachedModule",
"__webpack_modules__",
"n",
"getter",
"__esModule",
"d",
"a",
"definition",
"o",
"defineProperty",
"enumerable"
],
"sourceRoot": ""
}

File Metadata

Mime Type
application/json
Expires
Thu, Jul 3, 12:22 PM (3 d, 8 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3452115

Event Timeline