editor
This commit is contained in:
parent
a11990f2e9
commit
e50754985d
7
.vscode/settings.json
vendored
7
.vscode/settings.json
vendored
|
@ -6,9 +6,6 @@
|
|||
"[typescriptreact]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
},
|
||||
"[svelte]": {
|
||||
"editor.defaultFormatter": "svelte.svelte-vscode"
|
||||
},
|
||||
"[javascript]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
},
|
||||
|
@ -37,7 +34,6 @@
|
|||
"[css]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
},
|
||||
"terminal.integrated.automationShell.linux": "",
|
||||
"[html]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
},
|
||||
|
@ -48,9 +44,6 @@
|
|||
"typescript.format.placeOpenBraceOnNewLineForFunctions": true,
|
||||
"typescript.updateImportsOnFileMove.enabled": "always",
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
"svelte.enable-ts-plugin": true,
|
||||
"workbench.colorTheme": "GitHub Dark Default",
|
||||
"redhat.telemetry.enabled": true,
|
||||
"editor.formatOnPaste": true,
|
||||
"editor.formatOnSave": true,
|
||||
"eslint.format.enable": true,
|
||||
|
|
3
dist/copy.68a9147d.svg
vendored
Normal file
3
dist/copy.68a9147d.svg
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M8.32178 7.42422V15.4242C8.32178 16.5288 9.21721 17.4242 10.3218 17.4242H16.3218M8.32178 7.42422V5.42422C8.32178 4.31966 9.21721 3.42422 10.3218 3.42422H14.9076C15.1728 3.42422 15.4271 3.52958 15.6147 3.71712L20.0289 8.13133C20.2164 8.31887 20.3218 8.57322 20.3218 8.83844V15.4242C20.3218 16.5288 19.4263 17.4242 18.3218 17.4242H16.3218M8.32178 7.42422H6.32178C5.21721 7.42422 4.32178 8.31966 4.32178 9.42422V19.4242C4.32178 20.5288 5.21721 21.4242 6.32178 21.4242H14.3218C15.4263 21.4242 16.3218 20.5288 16.3218 19.4242V17.4242" stroke="#FFFFFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
|
||||
</svg>
|
After Width: | Height: | Size: 731 B |
14227
dist/create.36fe0215.js
vendored
Normal file
14227
dist/create.36fe0215.js
vendored
Normal file
File diff suppressed because it is too large
Load diff
1
dist/create.36fe0215.js.map
vendored
Normal file
1
dist/create.36fe0215.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
538
dist/create.3ee03044.js
vendored
Normal file
538
dist/create.3ee03044.js
vendored
Normal file
|
@ -0,0 +1,538 @@
|
|||
// modules are defined as an array
|
||||
// [ module function, map of requires ]
|
||||
//
|
||||
// map of requires is short require name -> numeric require
|
||||
//
|
||||
// anything defined in a previous bundle is accessed via the
|
||||
// orig method which is the require for previous bundles
|
||||
|
||||
(function (modules, entry, mainEntry, parcelRequireName, globalName) {
|
||||
/* eslint-disable no-undef */
|
||||
var globalObject =
|
||||
typeof globalThis !== 'undefined'
|
||||
? globalThis
|
||||
: typeof self !== 'undefined'
|
||||
? self
|
||||
: typeof window !== 'undefined'
|
||||
? window
|
||||
: typeof global !== 'undefined'
|
||||
? global
|
||||
: {};
|
||||
/* eslint-enable no-undef */
|
||||
|
||||
// Save the require from previous bundle to this closure if any
|
||||
var previousRequire =
|
||||
typeof globalObject[parcelRequireName] === 'function' &&
|
||||
globalObject[parcelRequireName];
|
||||
|
||||
var cache = previousRequire.cache || {};
|
||||
// Do not use `require` to prevent Webpack from trying to bundle this call
|
||||
var nodeRequire =
|
||||
typeof module !== 'undefined' &&
|
||||
typeof module.require === 'function' &&
|
||||
module.require.bind(module);
|
||||
|
||||
function newRequire(name, jumped) {
|
||||
if (!cache[name]) {
|
||||
if (!modules[name]) {
|
||||
// if we cannot find the module within our internal map or
|
||||
// cache jump to the current global require ie. the last bundle
|
||||
// that was added to the page.
|
||||
var currentRequire =
|
||||
typeof globalObject[parcelRequireName] === 'function' &&
|
||||
globalObject[parcelRequireName];
|
||||
if (!jumped && currentRequire) {
|
||||
return currentRequire(name, true);
|
||||
}
|
||||
|
||||
// If there are other bundles on this page the require from the
|
||||
// previous one is saved to 'previousRequire'. Repeat this as
|
||||
// many times as there are bundles until the module is found or
|
||||
// we exhaust the require chain.
|
||||
if (previousRequire) {
|
||||
return previousRequire(name, true);
|
||||
}
|
||||
|
||||
// Try the node require function if it exists.
|
||||
if (nodeRequire && typeof name === 'string') {
|
||||
return nodeRequire(name);
|
||||
}
|
||||
|
||||
var err = new Error("Cannot find module '" + name + "'");
|
||||
err.code = 'MODULE_NOT_FOUND';
|
||||
throw err;
|
||||
}
|
||||
|
||||
localRequire.resolve = resolve;
|
||||
localRequire.cache = {};
|
||||
|
||||
var module = (cache[name] = new newRequire.Module(name));
|
||||
|
||||
modules[name][0].call(
|
||||
module.exports,
|
||||
localRequire,
|
||||
module,
|
||||
module.exports,
|
||||
this
|
||||
);
|
||||
}
|
||||
|
||||
return cache[name].exports;
|
||||
|
||||
function localRequire(x) {
|
||||
var res = localRequire.resolve(x);
|
||||
return res === false ? {} : newRequire(res);
|
||||
}
|
||||
|
||||
function resolve(x) {
|
||||
var id = modules[name][1][x];
|
||||
return id != null ? id : x;
|
||||
}
|
||||
}
|
||||
|
||||
function Module(moduleName) {
|
||||
this.id = moduleName;
|
||||
this.bundle = newRequire;
|
||||
this.exports = {};
|
||||
}
|
||||
|
||||
newRequire.isParcelRequire = true;
|
||||
newRequire.Module = Module;
|
||||
newRequire.modules = modules;
|
||||
newRequire.cache = cache;
|
||||
newRequire.parent = previousRequire;
|
||||
newRequire.register = function (id, exports) {
|
||||
modules[id] = [
|
||||
function (require, module) {
|
||||
module.exports = exports;
|
||||
},
|
||||
{},
|
||||
];
|
||||
};
|
||||
|
||||
Object.defineProperty(newRequire, 'root', {
|
||||
get: function () {
|
||||
return globalObject[parcelRequireName];
|
||||
},
|
||||
});
|
||||
|
||||
globalObject[parcelRequireName] = newRequire;
|
||||
|
||||
for (var i = 0; i < entry.length; i++) {
|
||||
newRequire(entry[i]);
|
||||
}
|
||||
|
||||
if (mainEntry) {
|
||||
// Expose entry point to Node, AMD or browser globals
|
||||
// Based on https://github.com/ForbesLindesay/umd/blob/master/template.js
|
||||
var mainExports = newRequire(mainEntry);
|
||||
|
||||
// CommonJS
|
||||
if (typeof exports === 'object' && typeof module !== 'undefined') {
|
||||
module.exports = mainExports;
|
||||
|
||||
// RequireJS
|
||||
} else if (typeof define === 'function' && define.amd) {
|
||||
define(function () {
|
||||
return mainExports;
|
||||
});
|
||||
|
||||
// <script>
|
||||
} else if (globalName) {
|
||||
this[globalName] = mainExports;
|
||||
}
|
||||
}
|
||||
})({"3mtEd":[function(require,module,exports) {
|
||||
"use strict";
|
||||
var global = arguments[3];
|
||||
var HMR_HOST = null;
|
||||
var HMR_PORT = null;
|
||||
var HMR_SECURE = false;
|
||||
var HMR_ENV_HASH = "d6ea1d42532a7575";
|
||||
module.bundle.HMR_BUNDLE_ID = "3af2abea3ee03044";
|
||||
/* global HMR_HOST, HMR_PORT, HMR_ENV_HASH, HMR_SECURE, chrome, browser, globalThis, __parcel__import__, __parcel__importScripts__, ServiceWorkerGlobalScope */ /*::
|
||||
import type {
|
||||
HMRAsset,
|
||||
HMRMessage,
|
||||
} from '@parcel/reporter-dev-server/src/HMRServer.js';
|
||||
interface ParcelRequire {
|
||||
(string): mixed;
|
||||
cache: {|[string]: ParcelModule|};
|
||||
hotData: mixed;
|
||||
Module: any;
|
||||
parent: ?ParcelRequire;
|
||||
isParcelRequire: true;
|
||||
modules: {|[string]: [Function, {|[string]: string|}]|};
|
||||
HMR_BUNDLE_ID: string;
|
||||
root: ParcelRequire;
|
||||
}
|
||||
interface ParcelModule {
|
||||
hot: {|
|
||||
data: mixed,
|
||||
accept(cb: (Function) => void): void,
|
||||
dispose(cb: (mixed) => void): void,
|
||||
// accept(deps: Array<string> | string, cb: (Function) => void): void,
|
||||
// decline(): void,
|
||||
_acceptCallbacks: Array<(Function) => void>,
|
||||
_disposeCallbacks: Array<(mixed) => void>,
|
||||
|};
|
||||
}
|
||||
interface ExtensionContext {
|
||||
runtime: {|
|
||||
reload(): void,
|
||||
getURL(url: string): string;
|
||||
getManifest(): {manifest_version: number, ...};
|
||||
|};
|
||||
}
|
||||
declare var module: {bundle: ParcelRequire, ...};
|
||||
declare var HMR_HOST: string;
|
||||
declare var HMR_PORT: string;
|
||||
declare var HMR_ENV_HASH: string;
|
||||
declare var HMR_SECURE: boolean;
|
||||
declare var chrome: ExtensionContext;
|
||||
declare var browser: ExtensionContext;
|
||||
declare var __parcel__import__: (string) => Promise<void>;
|
||||
declare var __parcel__importScripts__: (string) => Promise<void>;
|
||||
declare var globalThis: typeof self;
|
||||
declare var ServiceWorkerGlobalScope: Object;
|
||||
*/ var OVERLAY_ID = "__parcel__error__overlay__";
|
||||
var OldModule = module.bundle.Module;
|
||||
function Module(moduleName) {
|
||||
OldModule.call(this, moduleName);
|
||||
this.hot = {
|
||||
data: module.bundle.hotData,
|
||||
_acceptCallbacks: [],
|
||||
_disposeCallbacks: [],
|
||||
accept: function(fn) {
|
||||
this._acceptCallbacks.push(fn || function() {});
|
||||
},
|
||||
dispose: function(fn) {
|
||||
this._disposeCallbacks.push(fn);
|
||||
}
|
||||
};
|
||||
module.bundle.hotData = undefined;
|
||||
}
|
||||
module.bundle.Module = Module;
|
||||
var checkedAssets, acceptedAssets, assetsToAccept /*: Array<[ParcelRequire, string]> */ ;
|
||||
function getHostname() {
|
||||
return HMR_HOST || (location.protocol.indexOf("http") === 0 ? location.hostname : "localhost");
|
||||
}
|
||||
function getPort() {
|
||||
return HMR_PORT || location.port;
|
||||
} // eslint-disable-next-line no-redeclare
|
||||
var parent = module.bundle.parent;
|
||||
if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== "undefined") {
|
||||
var hostname = getHostname();
|
||||
var port = getPort();
|
||||
var protocol = HMR_SECURE || location.protocol == "https:" && !/localhost|127.0.0.1|0.0.0.0/.test(hostname) ? "wss" : "ws";
|
||||
var ws = new WebSocket(protocol + "://" + hostname + (port ? ":" + port : "") + "/"); // Web extension context
|
||||
var extCtx = typeof chrome === "undefined" ? typeof browser === "undefined" ? null : browser : chrome; // Safari doesn't support sourceURL in error stacks.
|
||||
// eval may also be disabled via CSP, so do a quick check.
|
||||
var supportsSourceURL = false;
|
||||
try {
|
||||
(0, eval)('throw new Error("test"); //# sourceURL=test.js');
|
||||
} catch (err) {
|
||||
supportsSourceURL = err.stack.includes("test.js");
|
||||
} // $FlowFixMe
|
||||
ws.onmessage = async function(event) {
|
||||
checkedAssets = {} /*: {|[string]: boolean|} */ ;
|
||||
acceptedAssets = {} /*: {|[string]: boolean|} */ ;
|
||||
assetsToAccept = [];
|
||||
var data = JSON.parse(event.data);
|
||||
if (data.type === "update") {
|
||||
// Remove error overlay if there is one
|
||||
if (typeof document !== "undefined") removeErrorOverlay();
|
||||
let assets = data.assets.filter((asset)=>asset.envHash === HMR_ENV_HASH); // Handle HMR Update
|
||||
let handled = assets.every((asset)=>{
|
||||
return asset.type === "css" || asset.type === "js" && hmrAcceptCheck(module.bundle.root, asset.id, asset.depsByBundle);
|
||||
});
|
||||
if (handled) {
|
||||
console.clear(); // Dispatch custom event so other runtimes (e.g React Refresh) are aware.
|
||||
if (typeof window !== "undefined" && typeof CustomEvent !== "undefined") window.dispatchEvent(new CustomEvent("parcelhmraccept"));
|
||||
await hmrApplyUpdates(assets);
|
||||
for(var i = 0; i < assetsToAccept.length; i++){
|
||||
var id = assetsToAccept[i][1];
|
||||
if (!acceptedAssets[id]) hmrAcceptRun(assetsToAccept[i][0], id);
|
||||
}
|
||||
} else fullReload();
|
||||
}
|
||||
if (data.type === "error") {
|
||||
// Log parcel errors to console
|
||||
for (let ansiDiagnostic of data.diagnostics.ansi){
|
||||
let stack = ansiDiagnostic.codeframe ? ansiDiagnostic.codeframe : ansiDiagnostic.stack;
|
||||
console.error("\uD83D\uDEA8 [parcel]: " + ansiDiagnostic.message + "\n" + stack + "\n\n" + ansiDiagnostic.hints.join("\n"));
|
||||
}
|
||||
if (typeof document !== "undefined") {
|
||||
// Render the fancy html overlay
|
||||
removeErrorOverlay();
|
||||
var overlay = createErrorOverlay(data.diagnostics.html); // $FlowFixMe
|
||||
document.body.appendChild(overlay);
|
||||
}
|
||||
}
|
||||
};
|
||||
ws.onerror = function(e) {
|
||||
console.error(e.message);
|
||||
};
|
||||
ws.onclose = function() {
|
||||
console.warn("[parcel] \uD83D\uDEA8 Connection to the HMR server was lost");
|
||||
};
|
||||
}
|
||||
function removeErrorOverlay() {
|
||||
var overlay = document.getElementById(OVERLAY_ID);
|
||||
if (overlay) {
|
||||
overlay.remove();
|
||||
console.log("[parcel] ✨ Error resolved");
|
||||
}
|
||||
}
|
||||
function createErrorOverlay(diagnostics) {
|
||||
var overlay = document.createElement("div");
|
||||
overlay.id = OVERLAY_ID;
|
||||
let errorHTML = '<div style="background: black; opacity: 0.85; font-size: 16px; color: white; position: fixed; height: 100%; width: 100%; top: 0px; left: 0px; padding: 30px; font-family: Menlo, Consolas, monospace; z-index: 9999;">';
|
||||
for (let diagnostic of diagnostics){
|
||||
let stack = diagnostic.frames.length ? diagnostic.frames.reduce((p, frame)=>{
|
||||
return `${p}
|
||||
<a href="/__parcel_launch_editor?file=${encodeURIComponent(frame.location)}" style="text-decoration: underline; color: #888" onclick="fetch(this.href); return false">${frame.location}</a>
|
||||
${frame.code}`;
|
||||
}, "") : diagnostic.stack;
|
||||
errorHTML += `
|
||||
<div>
|
||||
<div style="font-size: 18px; font-weight: bold; margin-top: 20px;">
|
||||
🚨 ${diagnostic.message}
|
||||
</div>
|
||||
<pre>${stack}</pre>
|
||||
<div>
|
||||
${diagnostic.hints.map((hint)=>"<div>\uD83D\uDCA1 " + hint + "</div>").join("")}
|
||||
</div>
|
||||
${diagnostic.documentation ? `<div>📝 <a style="color: violet" href="${diagnostic.documentation}" target="_blank">Learn more</a></div>` : ""}
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
errorHTML += "</div>";
|
||||
overlay.innerHTML = errorHTML;
|
||||
return overlay;
|
||||
}
|
||||
function fullReload() {
|
||||
if ("reload" in location) location.reload();
|
||||
else if (extCtx && extCtx.runtime && extCtx.runtime.reload) extCtx.runtime.reload();
|
||||
}
|
||||
function getParents(bundle, id) /*: Array<[ParcelRequire, string]> */ {
|
||||
var modules = bundle.modules;
|
||||
if (!modules) return [];
|
||||
var parents = [];
|
||||
var k, d, dep;
|
||||
for(k in modules)for(d in modules[k][1]){
|
||||
dep = modules[k][1][d];
|
||||
if (dep === id || Array.isArray(dep) && dep[dep.length - 1] === id) parents.push([
|
||||
bundle,
|
||||
k
|
||||
]);
|
||||
}
|
||||
if (bundle.parent) parents = parents.concat(getParents(bundle.parent, id));
|
||||
return parents;
|
||||
}
|
||||
function updateLink(link) {
|
||||
var newLink = link.cloneNode();
|
||||
newLink.onload = function() {
|
||||
if (link.parentNode !== null) // $FlowFixMe
|
||||
link.parentNode.removeChild(link);
|
||||
};
|
||||
newLink.setAttribute("href", link.getAttribute("href").split("?")[0] + "?" + Date.now()); // $FlowFixMe
|
||||
link.parentNode.insertBefore(newLink, link.nextSibling);
|
||||
}
|
||||
var cssTimeout = null;
|
||||
function reloadCSS() {
|
||||
if (cssTimeout) return;
|
||||
cssTimeout = setTimeout(function() {
|
||||
var links = document.querySelectorAll('link[rel="stylesheet"]');
|
||||
for(var i = 0; i < links.length; i++){
|
||||
// $FlowFixMe[incompatible-type]
|
||||
var href = links[i].getAttribute("href");
|
||||
var hostname = getHostname();
|
||||
var servedFromHMRServer = hostname === "localhost" ? new RegExp("^(https?:\\/\\/(0.0.0.0|127.0.0.1)|localhost):" + getPort()).test(href) : href.indexOf(hostname + ":" + getPort());
|
||||
var absolute = /^https?:\/\//i.test(href) && href.indexOf(location.origin) !== 0 && !servedFromHMRServer;
|
||||
if (!absolute) updateLink(links[i]);
|
||||
}
|
||||
cssTimeout = null;
|
||||
}, 50);
|
||||
}
|
||||
function hmrDownload(asset) {
|
||||
if (asset.type === "js") {
|
||||
if (typeof document !== "undefined") {
|
||||
let script = document.createElement("script");
|
||||
script.src = asset.url + "?t=" + Date.now();
|
||||
if (asset.outputFormat === "esmodule") script.type = "module";
|
||||
return new Promise((resolve, reject)=>{
|
||||
var _document$head;
|
||||
script.onload = ()=>resolve(script);
|
||||
script.onerror = reject;
|
||||
(_document$head = document.head) === null || _document$head === void 0 || _document$head.appendChild(script);
|
||||
});
|
||||
} else if (typeof importScripts === "function") {
|
||||
// Worker scripts
|
||||
if (asset.outputFormat === "esmodule") return import(asset.url + "?t=" + Date.now());
|
||||
else return new Promise((resolve, reject)=>{
|
||||
try {
|
||||
importScripts(asset.url + "?t=" + Date.now());
|
||||
resolve();
|
||||
} catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
async function hmrApplyUpdates(assets) {
|
||||
global.parcelHotUpdate = Object.create(null);
|
||||
let scriptsToRemove;
|
||||
try {
|
||||
// If sourceURL comments aren't supported in eval, we need to load
|
||||
// the update from the dev server over HTTP so that stack traces
|
||||
// are correct in errors/logs. This is much slower than eval, so
|
||||
// we only do it if needed (currently just Safari).
|
||||
// https://bugs.webkit.org/show_bug.cgi?id=137297
|
||||
// This path is also taken if a CSP disallows eval.
|
||||
if (!supportsSourceURL) {
|
||||
let promises = assets.map((asset)=>{
|
||||
var _hmrDownload;
|
||||
return (_hmrDownload = hmrDownload(asset)) === null || _hmrDownload === void 0 ? void 0 : _hmrDownload.catch((err)=>{
|
||||
// Web extension bugfix for Chromium
|
||||
// https://bugs.chromium.org/p/chromium/issues/detail?id=1255412#c12
|
||||
if (extCtx && extCtx.runtime && extCtx.runtime.getManifest().manifest_version == 3) {
|
||||
if (typeof ServiceWorkerGlobalScope != "undefined" && global instanceof ServiceWorkerGlobalScope) {
|
||||
extCtx.runtime.reload();
|
||||
return;
|
||||
}
|
||||
asset.url = extCtx.runtime.getURL("/__parcel_hmr_proxy__?url=" + encodeURIComponent(asset.url + "?t=" + Date.now()));
|
||||
return hmrDownload(asset);
|
||||
}
|
||||
throw err;
|
||||
});
|
||||
});
|
||||
scriptsToRemove = await Promise.all(promises);
|
||||
}
|
||||
assets.forEach(function(asset) {
|
||||
hmrApply(module.bundle.root, asset);
|
||||
});
|
||||
} finally{
|
||||
delete global.parcelHotUpdate;
|
||||
if (scriptsToRemove) scriptsToRemove.forEach((script)=>{
|
||||
if (script) {
|
||||
var _document$head2;
|
||||
(_document$head2 = document.head) === null || _document$head2 === void 0 || _document$head2.removeChild(script);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
function hmrApply(bundle, asset) {
|
||||
var modules = bundle.modules;
|
||||
if (!modules) return;
|
||||
if (asset.type === "css") reloadCSS();
|
||||
else if (asset.type === "js") {
|
||||
let deps = asset.depsByBundle[bundle.HMR_BUNDLE_ID];
|
||||
if (deps) {
|
||||
if (modules[asset.id]) {
|
||||
// Remove dependencies that are removed and will become orphaned.
|
||||
// This is necessary so that if the asset is added back again, the cache is gone, and we prevent a full page reload.
|
||||
let oldDeps = modules[asset.id][1];
|
||||
for(let dep in oldDeps)if (!deps[dep] || deps[dep] !== oldDeps[dep]) {
|
||||
let id = oldDeps[dep];
|
||||
let parents = getParents(module.bundle.root, id);
|
||||
if (parents.length === 1) hmrDelete(module.bundle.root, id);
|
||||
}
|
||||
}
|
||||
if (supportsSourceURL) // Global eval. We would use `new Function` here but browser
|
||||
// support for source maps is better with eval.
|
||||
(0, eval)(asset.output);
|
||||
// $FlowFixMe
|
||||
let fn = global.parcelHotUpdate[asset.id];
|
||||
modules[asset.id] = [
|
||||
fn,
|
||||
deps
|
||||
];
|
||||
} else if (bundle.parent) hmrApply(bundle.parent, asset);
|
||||
}
|
||||
}
|
||||
function hmrDelete(bundle, id) {
|
||||
let modules = bundle.modules;
|
||||
if (!modules) return;
|
||||
if (modules[id]) {
|
||||
// Collect dependencies that will become orphaned when this module is deleted.
|
||||
let deps = modules[id][1];
|
||||
let orphans = [];
|
||||
for(let dep in deps){
|
||||
let parents = getParents(module.bundle.root, deps[dep]);
|
||||
if (parents.length === 1) orphans.push(deps[dep]);
|
||||
} // Delete the module. This must be done before deleting dependencies in case of circular dependencies.
|
||||
delete modules[id];
|
||||
delete bundle.cache[id]; // Now delete the orphans.
|
||||
orphans.forEach((id)=>{
|
||||
hmrDelete(module.bundle.root, id);
|
||||
});
|
||||
} else if (bundle.parent) hmrDelete(bundle.parent, id);
|
||||
}
|
||||
function hmrAcceptCheck(bundle, id, depsByBundle) {
|
||||
if (hmrAcceptCheckOne(bundle, id, depsByBundle)) return true;
|
||||
// Traverse parents breadth first. All possible ancestries must accept the HMR update, or we'll reload.
|
||||
let parents = getParents(module.bundle.root, id);
|
||||
let accepted = false;
|
||||
while(parents.length > 0){
|
||||
let v = parents.shift();
|
||||
let a = hmrAcceptCheckOne(v[0], v[1], null);
|
||||
if (a) // If this parent accepts, stop traversing upward, but still consider siblings.
|
||||
accepted = true;
|
||||
else {
|
||||
// Otherwise, queue the parents in the next level upward.
|
||||
let p = getParents(module.bundle.root, v[1]);
|
||||
if (p.length === 0) {
|
||||
// If there are no parents, then we've reached an entry without accepting. Reload.
|
||||
accepted = false;
|
||||
break;
|
||||
}
|
||||
parents.push(...p);
|
||||
}
|
||||
}
|
||||
return accepted;
|
||||
}
|
||||
function hmrAcceptCheckOne(bundle, id, depsByBundle) {
|
||||
var modules = bundle.modules;
|
||||
if (!modules) return;
|
||||
if (depsByBundle && !depsByBundle[bundle.HMR_BUNDLE_ID]) {
|
||||
// If we reached the root bundle without finding where the asset should go,
|
||||
// there's nothing to do. Mark as "accepted" so we don't reload the page.
|
||||
if (!bundle.parent) return true;
|
||||
return hmrAcceptCheck(bundle.parent, id, depsByBundle);
|
||||
}
|
||||
if (checkedAssets[id]) return true;
|
||||
checkedAssets[id] = true;
|
||||
var cached = bundle.cache[id];
|
||||
assetsToAccept.push([
|
||||
bundle,
|
||||
id
|
||||
]);
|
||||
if (!cached || cached.hot && cached.hot._acceptCallbacks.length) return true;
|
||||
}
|
||||
function hmrAcceptRun(bundle, id) {
|
||||
var cached = bundle.cache[id];
|
||||
bundle.hotData = {};
|
||||
if (cached && cached.hot) cached.hot.data = bundle.hotData;
|
||||
if (cached && cached.hot && cached.hot._disposeCallbacks.length) cached.hot._disposeCallbacks.forEach(function(cb) {
|
||||
cb(bundle.hotData);
|
||||
});
|
||||
delete bundle.cache[id];
|
||||
bundle(id);
|
||||
cached = bundle.cache[id];
|
||||
if (cached && cached.hot && cached.hot._acceptCallbacks.length) cached.hot._acceptCallbacks.forEach(function(cb) {
|
||||
var assetsToAlsoAccept = cb(function() {
|
||||
return getParents(module.bundle.root, id);
|
||||
});
|
||||
if (assetsToAlsoAccept && assetsToAccept.length) // $FlowFixMe[method-unbinding]
|
||||
assetsToAccept.push.apply(assetsToAccept, assetsToAlsoAccept);
|
||||
});
|
||||
acceptedAssets[id] = true;
|
||||
}
|
||||
|
||||
},{}],"74IY9":[function(require,module,exports) {
|
||||
|
||||
},{}]},["3mtEd","74IY9"], "74IY9", "parcelRequire7e89")
|
||||
|
||||
//# sourceMappingURL=create.3ee03044.js.map
|
1
dist/create.3ee03044.js.map
vendored
Normal file
1
dist/create.3ee03044.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
16951
dist/create.47ad5880.js
vendored
Normal file
16951
dist/create.47ad5880.js
vendored
Normal file
File diff suppressed because it is too large
Load diff
1
dist/create.47ad5880.js.map
vendored
Normal file
1
dist/create.47ad5880.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
3263
dist/create.59a40e7a.js
vendored
Normal file
3263
dist/create.59a40e7a.js
vendored
Normal file
File diff suppressed because it is too large
Load diff
1
dist/create.59a40e7a.js.map
vendored
Normal file
1
dist/create.59a40e7a.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
538
dist/create.5b72b856.js
vendored
Normal file
538
dist/create.5b72b856.js
vendored
Normal file
|
@ -0,0 +1,538 @@
|
|||
// modules are defined as an array
|
||||
// [ module function, map of requires ]
|
||||
//
|
||||
// map of requires is short require name -> numeric require
|
||||
//
|
||||
// anything defined in a previous bundle is accessed via the
|
||||
// orig method which is the require for previous bundles
|
||||
|
||||
(function (modules, entry, mainEntry, parcelRequireName, globalName) {
|
||||
/* eslint-disable no-undef */
|
||||
var globalObject =
|
||||
typeof globalThis !== 'undefined'
|
||||
? globalThis
|
||||
: typeof self !== 'undefined'
|
||||
? self
|
||||
: typeof window !== 'undefined'
|
||||
? window
|
||||
: typeof global !== 'undefined'
|
||||
? global
|
||||
: {};
|
||||
/* eslint-enable no-undef */
|
||||
|
||||
// Save the require from previous bundle to this closure if any
|
||||
var previousRequire =
|
||||
typeof globalObject[parcelRequireName] === 'function' &&
|
||||
globalObject[parcelRequireName];
|
||||
|
||||
var cache = previousRequire.cache || {};
|
||||
// Do not use `require` to prevent Webpack from trying to bundle this call
|
||||
var nodeRequire =
|
||||
typeof module !== 'undefined' &&
|
||||
typeof module.require === 'function' &&
|
||||
module.require.bind(module);
|
||||
|
||||
function newRequire(name, jumped) {
|
||||
if (!cache[name]) {
|
||||
if (!modules[name]) {
|
||||
// if we cannot find the module within our internal map or
|
||||
// cache jump to the current global require ie. the last bundle
|
||||
// that was added to the page.
|
||||
var currentRequire =
|
||||
typeof globalObject[parcelRequireName] === 'function' &&
|
||||
globalObject[parcelRequireName];
|
||||
if (!jumped && currentRequire) {
|
||||
return currentRequire(name, true);
|
||||
}
|
||||
|
||||
// If there are other bundles on this page the require from the
|
||||
// previous one is saved to 'previousRequire'. Repeat this as
|
||||
// many times as there are bundles until the module is found or
|
||||
// we exhaust the require chain.
|
||||
if (previousRequire) {
|
||||
return previousRequire(name, true);
|
||||
}
|
||||
|
||||
// Try the node require function if it exists.
|
||||
if (nodeRequire && typeof name === 'string') {
|
||||
return nodeRequire(name);
|
||||
}
|
||||
|
||||
var err = new Error("Cannot find module '" + name + "'");
|
||||
err.code = 'MODULE_NOT_FOUND';
|
||||
throw err;
|
||||
}
|
||||
|
||||
localRequire.resolve = resolve;
|
||||
localRequire.cache = {};
|
||||
|
||||
var module = (cache[name] = new newRequire.Module(name));
|
||||
|
||||
modules[name][0].call(
|
||||
module.exports,
|
||||
localRequire,
|
||||
module,
|
||||
module.exports,
|
||||
this
|
||||
);
|
||||
}
|
||||
|
||||
return cache[name].exports;
|
||||
|
||||
function localRequire(x) {
|
||||
var res = localRequire.resolve(x);
|
||||
return res === false ? {} : newRequire(res);
|
||||
}
|
||||
|
||||
function resolve(x) {
|
||||
var id = modules[name][1][x];
|
||||
return id != null ? id : x;
|
||||
}
|
||||
}
|
||||
|
||||
function Module(moduleName) {
|
||||
this.id = moduleName;
|
||||
this.bundle = newRequire;
|
||||
this.exports = {};
|
||||
}
|
||||
|
||||
newRequire.isParcelRequire = true;
|
||||
newRequire.Module = Module;
|
||||
newRequire.modules = modules;
|
||||
newRequire.cache = cache;
|
||||
newRequire.parent = previousRequire;
|
||||
newRequire.register = function (id, exports) {
|
||||
modules[id] = [
|
||||
function (require, module) {
|
||||
module.exports = exports;
|
||||
},
|
||||
{},
|
||||
];
|
||||
};
|
||||
|
||||
Object.defineProperty(newRequire, 'root', {
|
||||
get: function () {
|
||||
return globalObject[parcelRequireName];
|
||||
},
|
||||
});
|
||||
|
||||
globalObject[parcelRequireName] = newRequire;
|
||||
|
||||
for (var i = 0; i < entry.length; i++) {
|
||||
newRequire(entry[i]);
|
||||
}
|
||||
|
||||
if (mainEntry) {
|
||||
// Expose entry point to Node, AMD or browser globals
|
||||
// Based on https://github.com/ForbesLindesay/umd/blob/master/template.js
|
||||
var mainExports = newRequire(mainEntry);
|
||||
|
||||
// CommonJS
|
||||
if (typeof exports === 'object' && typeof module !== 'undefined') {
|
||||
module.exports = mainExports;
|
||||
|
||||
// RequireJS
|
||||
} else if (typeof define === 'function' && define.amd) {
|
||||
define(function () {
|
||||
return mainExports;
|
||||
});
|
||||
|
||||
// <script>
|
||||
} else if (globalName) {
|
||||
this[globalName] = mainExports;
|
||||
}
|
||||
}
|
||||
})({"1JtAT":[function(require,module,exports) {
|
||||
"use strict";
|
||||
var global = arguments[3];
|
||||
var HMR_HOST = null;
|
||||
var HMR_PORT = null;
|
||||
var HMR_SECURE = false;
|
||||
var HMR_ENV_HASH = "d6ea1d42532a7575";
|
||||
module.bundle.HMR_BUNDLE_ID = "cad47b045b72b856";
|
||||
/* global HMR_HOST, HMR_PORT, HMR_ENV_HASH, HMR_SECURE, chrome, browser, globalThis, __parcel__import__, __parcel__importScripts__, ServiceWorkerGlobalScope */ /*::
|
||||
import type {
|
||||
HMRAsset,
|
||||
HMRMessage,
|
||||
} from '@parcel/reporter-dev-server/src/HMRServer.js';
|
||||
interface ParcelRequire {
|
||||
(string): mixed;
|
||||
cache: {|[string]: ParcelModule|};
|
||||
hotData: mixed;
|
||||
Module: any;
|
||||
parent: ?ParcelRequire;
|
||||
isParcelRequire: true;
|
||||
modules: {|[string]: [Function, {|[string]: string|}]|};
|
||||
HMR_BUNDLE_ID: string;
|
||||
root: ParcelRequire;
|
||||
}
|
||||
interface ParcelModule {
|
||||
hot: {|
|
||||
data: mixed,
|
||||
accept(cb: (Function) => void): void,
|
||||
dispose(cb: (mixed) => void): void,
|
||||
// accept(deps: Array<string> | string, cb: (Function) => void): void,
|
||||
// decline(): void,
|
||||
_acceptCallbacks: Array<(Function) => void>,
|
||||
_disposeCallbacks: Array<(mixed) => void>,
|
||||
|};
|
||||
}
|
||||
interface ExtensionContext {
|
||||
runtime: {|
|
||||
reload(): void,
|
||||
getURL(url: string): string;
|
||||
getManifest(): {manifest_version: number, ...};
|
||||
|};
|
||||
}
|
||||
declare var module: {bundle: ParcelRequire, ...};
|
||||
declare var HMR_HOST: string;
|
||||
declare var HMR_PORT: string;
|
||||
declare var HMR_ENV_HASH: string;
|
||||
declare var HMR_SECURE: boolean;
|
||||
declare var chrome: ExtensionContext;
|
||||
declare var browser: ExtensionContext;
|
||||
declare var __parcel__import__: (string) => Promise<void>;
|
||||
declare var __parcel__importScripts__: (string) => Promise<void>;
|
||||
declare var globalThis: typeof self;
|
||||
declare var ServiceWorkerGlobalScope: Object;
|
||||
*/ var OVERLAY_ID = "__parcel__error__overlay__";
|
||||
var OldModule = module.bundle.Module;
|
||||
function Module(moduleName) {
|
||||
OldModule.call(this, moduleName);
|
||||
this.hot = {
|
||||
data: module.bundle.hotData,
|
||||
_acceptCallbacks: [],
|
||||
_disposeCallbacks: [],
|
||||
accept: function(fn) {
|
||||
this._acceptCallbacks.push(fn || function() {});
|
||||
},
|
||||
dispose: function(fn) {
|
||||
this._disposeCallbacks.push(fn);
|
||||
}
|
||||
};
|
||||
module.bundle.hotData = undefined;
|
||||
}
|
||||
module.bundle.Module = Module;
|
||||
var checkedAssets, acceptedAssets, assetsToAccept /*: Array<[ParcelRequire, string]> */ ;
|
||||
function getHostname() {
|
||||
return HMR_HOST || (location.protocol.indexOf("http") === 0 ? location.hostname : "localhost");
|
||||
}
|
||||
function getPort() {
|
||||
return HMR_PORT || location.port;
|
||||
} // eslint-disable-next-line no-redeclare
|
||||
var parent = module.bundle.parent;
|
||||
if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== "undefined") {
|
||||
var hostname = getHostname();
|
||||
var port = getPort();
|
||||
var protocol = HMR_SECURE || location.protocol == "https:" && !/localhost|127.0.0.1|0.0.0.0/.test(hostname) ? "wss" : "ws";
|
||||
var ws = new WebSocket(protocol + "://" + hostname + (port ? ":" + port : "") + "/"); // Web extension context
|
||||
var extCtx = typeof chrome === "undefined" ? typeof browser === "undefined" ? null : browser : chrome; // Safari doesn't support sourceURL in error stacks.
|
||||
// eval may also be disabled via CSP, so do a quick check.
|
||||
var supportsSourceURL = false;
|
||||
try {
|
||||
(0, eval)('throw new Error("test"); //# sourceURL=test.js');
|
||||
} catch (err) {
|
||||
supportsSourceURL = err.stack.includes("test.js");
|
||||
} // $FlowFixMe
|
||||
ws.onmessage = async function(event) {
|
||||
checkedAssets = {} /*: {|[string]: boolean|} */ ;
|
||||
acceptedAssets = {} /*: {|[string]: boolean|} */ ;
|
||||
assetsToAccept = [];
|
||||
var data = JSON.parse(event.data);
|
||||
if (data.type === "update") {
|
||||
// Remove error overlay if there is one
|
||||
if (typeof document !== "undefined") removeErrorOverlay();
|
||||
let assets = data.assets.filter((asset)=>asset.envHash === HMR_ENV_HASH); // Handle HMR Update
|
||||
let handled = assets.every((asset)=>{
|
||||
return asset.type === "css" || asset.type === "js" && hmrAcceptCheck(module.bundle.root, asset.id, asset.depsByBundle);
|
||||
});
|
||||
if (handled) {
|
||||
console.clear(); // Dispatch custom event so other runtimes (e.g React Refresh) are aware.
|
||||
if (typeof window !== "undefined" && typeof CustomEvent !== "undefined") window.dispatchEvent(new CustomEvent("parcelhmraccept"));
|
||||
await hmrApplyUpdates(assets);
|
||||
for(var i = 0; i < assetsToAccept.length; i++){
|
||||
var id = assetsToAccept[i][1];
|
||||
if (!acceptedAssets[id]) hmrAcceptRun(assetsToAccept[i][0], id);
|
||||
}
|
||||
} else fullReload();
|
||||
}
|
||||
if (data.type === "error") {
|
||||
// Log parcel errors to console
|
||||
for (let ansiDiagnostic of data.diagnostics.ansi){
|
||||
let stack = ansiDiagnostic.codeframe ? ansiDiagnostic.codeframe : ansiDiagnostic.stack;
|
||||
console.error("\uD83D\uDEA8 [parcel]: " + ansiDiagnostic.message + "\n" + stack + "\n\n" + ansiDiagnostic.hints.join("\n"));
|
||||
}
|
||||
if (typeof document !== "undefined") {
|
||||
// Render the fancy html overlay
|
||||
removeErrorOverlay();
|
||||
var overlay = createErrorOverlay(data.diagnostics.html); // $FlowFixMe
|
||||
document.body.appendChild(overlay);
|
||||
}
|
||||
}
|
||||
};
|
||||
ws.onerror = function(e) {
|
||||
console.error(e.message);
|
||||
};
|
||||
ws.onclose = function() {
|
||||
console.warn("[parcel] \uD83D\uDEA8 Connection to the HMR server was lost");
|
||||
};
|
||||
}
|
||||
function removeErrorOverlay() {
|
||||
var overlay = document.getElementById(OVERLAY_ID);
|
||||
if (overlay) {
|
||||
overlay.remove();
|
||||
console.log("[parcel] ✨ Error resolved");
|
||||
}
|
||||
}
|
||||
function createErrorOverlay(diagnostics) {
|
||||
var overlay = document.createElement("div");
|
||||
overlay.id = OVERLAY_ID;
|
||||
let errorHTML = '<div style="background: black; opacity: 0.85; font-size: 16px; color: white; position: fixed; height: 100%; width: 100%; top: 0px; left: 0px; padding: 30px; font-family: Menlo, Consolas, monospace; z-index: 9999;">';
|
||||
for (let diagnostic of diagnostics){
|
||||
let stack = diagnostic.frames.length ? diagnostic.frames.reduce((p, frame)=>{
|
||||
return `${p}
|
||||
<a href="/__parcel_launch_editor?file=${encodeURIComponent(frame.location)}" style="text-decoration: underline; color: #888" onclick="fetch(this.href); return false">${frame.location}</a>
|
||||
${frame.code}`;
|
||||
}, "") : diagnostic.stack;
|
||||
errorHTML += `
|
||||
<div>
|
||||
<div style="font-size: 18px; font-weight: bold; margin-top: 20px;">
|
||||
🚨 ${diagnostic.message}
|
||||
</div>
|
||||
<pre>${stack}</pre>
|
||||
<div>
|
||||
${diagnostic.hints.map((hint)=>"<div>\uD83D\uDCA1 " + hint + "</div>").join("")}
|
||||
</div>
|
||||
${diagnostic.documentation ? `<div>📝 <a style="color: violet" href="${diagnostic.documentation}" target="_blank">Learn more</a></div>` : ""}
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
errorHTML += "</div>";
|
||||
overlay.innerHTML = errorHTML;
|
||||
return overlay;
|
||||
}
|
||||
function fullReload() {
|
||||
if ("reload" in location) location.reload();
|
||||
else if (extCtx && extCtx.runtime && extCtx.runtime.reload) extCtx.runtime.reload();
|
||||
}
|
||||
function getParents(bundle, id) /*: Array<[ParcelRequire, string]> */ {
|
||||
var modules = bundle.modules;
|
||||
if (!modules) return [];
|
||||
var parents = [];
|
||||
var k, d, dep;
|
||||
for(k in modules)for(d in modules[k][1]){
|
||||
dep = modules[k][1][d];
|
||||
if (dep === id || Array.isArray(dep) && dep[dep.length - 1] === id) parents.push([
|
||||
bundle,
|
||||
k
|
||||
]);
|
||||
}
|
||||
if (bundle.parent) parents = parents.concat(getParents(bundle.parent, id));
|
||||
return parents;
|
||||
}
|
||||
function updateLink(link) {
|
||||
var newLink = link.cloneNode();
|
||||
newLink.onload = function() {
|
||||
if (link.parentNode !== null) // $FlowFixMe
|
||||
link.parentNode.removeChild(link);
|
||||
};
|
||||
newLink.setAttribute("href", link.getAttribute("href").split("?")[0] + "?" + Date.now()); // $FlowFixMe
|
||||
link.parentNode.insertBefore(newLink, link.nextSibling);
|
||||
}
|
||||
var cssTimeout = null;
|
||||
function reloadCSS() {
|
||||
if (cssTimeout) return;
|
||||
cssTimeout = setTimeout(function() {
|
||||
var links = document.querySelectorAll('link[rel="stylesheet"]');
|
||||
for(var i = 0; i < links.length; i++){
|
||||
// $FlowFixMe[incompatible-type]
|
||||
var href = links[i].getAttribute("href");
|
||||
var hostname = getHostname();
|
||||
var servedFromHMRServer = hostname === "localhost" ? new RegExp("^(https?:\\/\\/(0.0.0.0|127.0.0.1)|localhost):" + getPort()).test(href) : href.indexOf(hostname + ":" + getPort());
|
||||
var absolute = /^https?:\/\//i.test(href) && href.indexOf(location.origin) !== 0 && !servedFromHMRServer;
|
||||
if (!absolute) updateLink(links[i]);
|
||||
}
|
||||
cssTimeout = null;
|
||||
}, 50);
|
||||
}
|
||||
function hmrDownload(asset) {
|
||||
if (asset.type === "js") {
|
||||
if (typeof document !== "undefined") {
|
||||
let script = document.createElement("script");
|
||||
script.src = asset.url + "?t=" + Date.now();
|
||||
if (asset.outputFormat === "esmodule") script.type = "module";
|
||||
return new Promise((resolve, reject)=>{
|
||||
var _document$head;
|
||||
script.onload = ()=>resolve(script);
|
||||
script.onerror = reject;
|
||||
(_document$head = document.head) === null || _document$head === void 0 || _document$head.appendChild(script);
|
||||
});
|
||||
} else if (typeof importScripts === "function") {
|
||||
// Worker scripts
|
||||
if (asset.outputFormat === "esmodule") return import(asset.url + "?t=" + Date.now());
|
||||
else return new Promise((resolve, reject)=>{
|
||||
try {
|
||||
importScripts(asset.url + "?t=" + Date.now());
|
||||
resolve();
|
||||
} catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
async function hmrApplyUpdates(assets) {
|
||||
global.parcelHotUpdate = Object.create(null);
|
||||
let scriptsToRemove;
|
||||
try {
|
||||
// If sourceURL comments aren't supported in eval, we need to load
|
||||
// the update from the dev server over HTTP so that stack traces
|
||||
// are correct in errors/logs. This is much slower than eval, so
|
||||
// we only do it if needed (currently just Safari).
|
||||
// https://bugs.webkit.org/show_bug.cgi?id=137297
|
||||
// This path is also taken if a CSP disallows eval.
|
||||
if (!supportsSourceURL) {
|
||||
let promises = assets.map((asset)=>{
|
||||
var _hmrDownload;
|
||||
return (_hmrDownload = hmrDownload(asset)) === null || _hmrDownload === void 0 ? void 0 : _hmrDownload.catch((err)=>{
|
||||
// Web extension bugfix for Chromium
|
||||
// https://bugs.chromium.org/p/chromium/issues/detail?id=1255412#c12
|
||||
if (extCtx && extCtx.runtime && extCtx.runtime.getManifest().manifest_version == 3) {
|
||||
if (typeof ServiceWorkerGlobalScope != "undefined" && global instanceof ServiceWorkerGlobalScope) {
|
||||
extCtx.runtime.reload();
|
||||
return;
|
||||
}
|
||||
asset.url = extCtx.runtime.getURL("/__parcel_hmr_proxy__?url=" + encodeURIComponent(asset.url + "?t=" + Date.now()));
|
||||
return hmrDownload(asset);
|
||||
}
|
||||
throw err;
|
||||
});
|
||||
});
|
||||
scriptsToRemove = await Promise.all(promises);
|
||||
}
|
||||
assets.forEach(function(asset) {
|
||||
hmrApply(module.bundle.root, asset);
|
||||
});
|
||||
} finally{
|
||||
delete global.parcelHotUpdate;
|
||||
if (scriptsToRemove) scriptsToRemove.forEach((script)=>{
|
||||
if (script) {
|
||||
var _document$head2;
|
||||
(_document$head2 = document.head) === null || _document$head2 === void 0 || _document$head2.removeChild(script);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
function hmrApply(bundle, asset) {
|
||||
var modules = bundle.modules;
|
||||
if (!modules) return;
|
||||
if (asset.type === "css") reloadCSS();
|
||||
else if (asset.type === "js") {
|
||||
let deps = asset.depsByBundle[bundle.HMR_BUNDLE_ID];
|
||||
if (deps) {
|
||||
if (modules[asset.id]) {
|
||||
// Remove dependencies that are removed and will become orphaned.
|
||||
// This is necessary so that if the asset is added back again, the cache is gone, and we prevent a full page reload.
|
||||
let oldDeps = modules[asset.id][1];
|
||||
for(let dep in oldDeps)if (!deps[dep] || deps[dep] !== oldDeps[dep]) {
|
||||
let id = oldDeps[dep];
|
||||
let parents = getParents(module.bundle.root, id);
|
||||
if (parents.length === 1) hmrDelete(module.bundle.root, id);
|
||||
}
|
||||
}
|
||||
if (supportsSourceURL) // Global eval. We would use `new Function` here but browser
|
||||
// support for source maps is better with eval.
|
||||
(0, eval)(asset.output);
|
||||
// $FlowFixMe
|
||||
let fn = global.parcelHotUpdate[asset.id];
|
||||
modules[asset.id] = [
|
||||
fn,
|
||||
deps
|
||||
];
|
||||
} else if (bundle.parent) hmrApply(bundle.parent, asset);
|
||||
}
|
||||
}
|
||||
function hmrDelete(bundle, id) {
|
||||
let modules = bundle.modules;
|
||||
if (!modules) return;
|
||||
if (modules[id]) {
|
||||
// Collect dependencies that will become orphaned when this module is deleted.
|
||||
let deps = modules[id][1];
|
||||
let orphans = [];
|
||||
for(let dep in deps){
|
||||
let parents = getParents(module.bundle.root, deps[dep]);
|
||||
if (parents.length === 1) orphans.push(deps[dep]);
|
||||
} // Delete the module. This must be done before deleting dependencies in case of circular dependencies.
|
||||
delete modules[id];
|
||||
delete bundle.cache[id]; // Now delete the orphans.
|
||||
orphans.forEach((id)=>{
|
||||
hmrDelete(module.bundle.root, id);
|
||||
});
|
||||
} else if (bundle.parent) hmrDelete(bundle.parent, id);
|
||||
}
|
||||
function hmrAcceptCheck(bundle, id, depsByBundle) {
|
||||
if (hmrAcceptCheckOne(bundle, id, depsByBundle)) return true;
|
||||
// Traverse parents breadth first. All possible ancestries must accept the HMR update, or we'll reload.
|
||||
let parents = getParents(module.bundle.root, id);
|
||||
let accepted = false;
|
||||
while(parents.length > 0){
|
||||
let v = parents.shift();
|
||||
let a = hmrAcceptCheckOne(v[0], v[1], null);
|
||||
if (a) // If this parent accepts, stop traversing upward, but still consider siblings.
|
||||
accepted = true;
|
||||
else {
|
||||
// Otherwise, queue the parents in the next level upward.
|
||||
let p = getParents(module.bundle.root, v[1]);
|
||||
if (p.length === 0) {
|
||||
// If there are no parents, then we've reached an entry without accepting. Reload.
|
||||
accepted = false;
|
||||
break;
|
||||
}
|
||||
parents.push(...p);
|
||||
}
|
||||
}
|
||||
return accepted;
|
||||
}
|
||||
function hmrAcceptCheckOne(bundle, id, depsByBundle) {
|
||||
var modules = bundle.modules;
|
||||
if (!modules) return;
|
||||
if (depsByBundle && !depsByBundle[bundle.HMR_BUNDLE_ID]) {
|
||||
// If we reached the root bundle without finding where the asset should go,
|
||||
// there's nothing to do. Mark as "accepted" so we don't reload the page.
|
||||
if (!bundle.parent) return true;
|
||||
return hmrAcceptCheck(bundle.parent, id, depsByBundle);
|
||||
}
|
||||
if (checkedAssets[id]) return true;
|
||||
checkedAssets[id] = true;
|
||||
var cached = bundle.cache[id];
|
||||
assetsToAccept.push([
|
||||
bundle,
|
||||
id
|
||||
]);
|
||||
if (!cached || cached.hot && cached.hot._acceptCallbacks.length) return true;
|
||||
}
|
||||
function hmrAcceptRun(bundle, id) {
|
||||
var cached = bundle.cache[id];
|
||||
bundle.hotData = {};
|
||||
if (cached && cached.hot) cached.hot.data = bundle.hotData;
|
||||
if (cached && cached.hot && cached.hot._disposeCallbacks.length) cached.hot._disposeCallbacks.forEach(function(cb) {
|
||||
cb(bundle.hotData);
|
||||
});
|
||||
delete bundle.cache[id];
|
||||
bundle(id);
|
||||
cached = bundle.cache[id];
|
||||
if (cached && cached.hot && cached.hot._acceptCallbacks.length) cached.hot._acceptCallbacks.forEach(function(cb) {
|
||||
var assetsToAlsoAccept = cb(function() {
|
||||
return getParents(module.bundle.root, id);
|
||||
});
|
||||
if (assetsToAlsoAccept && assetsToAccept.length) // $FlowFixMe[method-unbinding]
|
||||
assetsToAccept.push.apply(assetsToAccept, assetsToAlsoAccept);
|
||||
});
|
||||
acceptedAssets[id] = true;
|
||||
}
|
||||
|
||||
},{}],"4yr8I":[function(require,module,exports) {
|
||||
|
||||
},{}]},["1JtAT","4yr8I"], "4yr8I", "parcelRequire7e89")
|
||||
|
||||
//# sourceMappingURL=create.5b72b856.js.map
|
1
dist/create.5b72b856.js.map
vendored
Normal file
1
dist/create.5b72b856.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/create.html
vendored
Normal file
1
dist/create.html
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
<meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Noddy - Nano wallet</title><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="crossorigin"><link href="https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;500;700&display=swap" rel="stylesheet"><link rel="stylesheet" href="/index.77a9bc14.css"><body class="py-10"><header class="flex flex-col flex-1 gap-3 text-center mb-6"><h1 class="text-6xl font-bold text-primary">Noddy</h1></header><main class="flex flex-col items-center gap-2"><div class="p-4 pt-10 rounded-md bg-primary-50 relative" x-data="wallet"><button class="absolute top-0 right-0 flex text-white gap-1 bg-primary rounded-tr-md rounded-bl-md p-1 pl-2 disabled:bg-gray-500" x-data="{ copied: false }" @click="navigator.clipboard.writeText(wallet.mnemonic); copied = true; setTimeout(() => {copied = false}, 2e3)" x-bind:disabled="copied"><span x-text="copied ? 'Copied' : 'Copy'"></span><img src="/copy.68a9147d.svg"></button><ul class="grid grid-cols-2 grid-flow-col gap-x-10 text-sm" style="grid-template-rows: repeat(12, minmax(0, 1fr))"><template x-for="i in 24"><li class="flex items-center gap-1"><div x-text="`${i}. `"></div><div x-if="wallet?.splitMnemonic" x-text="wallet?.splitMnemonic[i - 1]"></div><div class="animate-pulse w-16 h-3 bg-gray-500 rounded-sm" x-if="!wallet?.splitMnemonic" x-effect="console.log(!wallet?.splitMnemonic)"></div></li></template></ul></div><div class="text-center px-10 mb-4"><p><span class="font-bold">Store this passphrase securely!</span></p><p>You will need it if you lose access to your device!</p></div><a class="flex items-center gap-4 px-5 text-3xl font-bold text-white rounded-md bg-primary py-4" href="/create.html">Create wallet <img src="/wallet.26c45bbb.svg"></a></main><script src="/create.47ad5880.js" defer=""></script></body>
|
471
dist/index.77a9bc14.css
vendored
Normal file
471
dist/index.77a9bc14.css
vendored
Normal file
|
@ -0,0 +1,471 @@
|
|||
body, html {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
font-family: Roboto Slab, sans-serif;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
* {
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
|
||||
*, :before, :after {
|
||||
box-sizing: border-box;
|
||||
border: 0 solid #e5e7eb;
|
||||
}
|
||||
|
||||
:before, :after {
|
||||
--tw-content: "";
|
||||
}
|
||||
|
||||
html {
|
||||
-webkit-text-size-adjust: 100%;
|
||||
tab-size: 4;
|
||||
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
body {
|
||||
line-height: inherit;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
hr {
|
||||
height: 0;
|
||||
color: inherit;
|
||||
border-top-width: 1px;
|
||||
}
|
||||
|
||||
abbr:where([title]) {
|
||||
text-decoration: underline dotted;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-size: inherit;
|
||||
font-weight: inherit;
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: inherit;
|
||||
}
|
||||
|
||||
b, strong {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
code, kbd, samp, pre {
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
small {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
sub, sup {
|
||||
vertical-align: baseline;
|
||||
font-size: 75%;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -.25em;
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -.5em;
|
||||
}
|
||||
|
||||
table {
|
||||
text-indent: 0;
|
||||
border-color: inherit;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
button, input, optgroup, select, textarea {
|
||||
font-family: inherit;
|
||||
font-size: 100%;
|
||||
font-weight: inherit;
|
||||
line-height: inherit;
|
||||
color: inherit;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
button, select {
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
button, [type="button"], [type="reset"], [type="submit"] {
|
||||
-webkit-appearance: button;
|
||||
background-color: #0000;
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
:-moz-focusring {
|
||||
outline: auto;
|
||||
}
|
||||
|
||||
:-moz-ui-invalid {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
progress {
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
[type="search"] {
|
||||
-webkit-appearance: textfield;
|
||||
outline-offset: -2px;
|
||||
}
|
||||
|
||||
::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
::-webkit-file-upload-button {
|
||||
-webkit-appearance: button;
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
summary {
|
||||
display: list-item;
|
||||
}
|
||||
|
||||
blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
legend {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
ol, ul, menu {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
input::placeholder, textarea::placeholder {
|
||||
opacity: 1;
|
||||
color: #9ca3af;
|
||||
}
|
||||
|
||||
button, [role="button"] {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
:disabled {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
img, svg, video, canvas, audio, iframe, embed, object {
|
||||
vertical-align: middle;
|
||||
display: block;
|
||||
}
|
||||
|
||||
img, video {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
*, :before, :after, ::backdrop {
|
||||
--tw-border-spacing-x: 0;
|
||||
--tw-border-spacing-y: 0;
|
||||
--tw-translate-x: 0;
|
||||
--tw-translate-y: 0;
|
||||
--tw-rotate: 0;
|
||||
--tw-skew-x: 0;
|
||||
--tw-skew-y: 0;
|
||||
--tw-scale-x: 1;
|
||||
--tw-scale-y: 1;
|
||||
--tw-pan-x: ;
|
||||
--tw-pan-y: ;
|
||||
--tw-pinch-zoom: ;
|
||||
--tw-scroll-snap-strictness: proximity;
|
||||
--tw-ordinal: ;
|
||||
--tw-slashed-zero: ;
|
||||
--tw-numeric-figure: ;
|
||||
--tw-numeric-spacing: ;
|
||||
--tw-numeric-fraction: ;
|
||||
--tw-ring-inset: ;
|
||||
--tw-ring-offset-width: 0px;
|
||||
--tw-ring-offset-color: #fff;
|
||||
--tw-ring-color: #3b82f680;
|
||||
--tw-ring-offset-shadow: 0 0 #0000;
|
||||
--tw-ring-shadow: 0 0 #0000;
|
||||
--tw-shadow: 0 0 #0000;
|
||||
--tw-shadow-colored: 0 0 #0000;
|
||||
--tw-blur: ;
|
||||
--tw-brightness: ;
|
||||
--tw-contrast: ;
|
||||
--tw-grayscale: ;
|
||||
--tw-hue-rotate: ;
|
||||
--tw-invert: ;
|
||||
--tw-saturate: ;
|
||||
--tw-sepia: ;
|
||||
--tw-drop-shadow: ;
|
||||
--tw-backdrop-blur: ;
|
||||
--tw-backdrop-brightness: ;
|
||||
--tw-backdrop-contrast: ;
|
||||
--tw-backdrop-grayscale: ;
|
||||
--tw-backdrop-hue-rotate: ;
|
||||
--tw-backdrop-invert: ;
|
||||
--tw-backdrop-opacity: ;
|
||||
--tw-backdrop-saturate: ;
|
||||
--tw-backdrop-sepia: ;
|
||||
}
|
||||
|
||||
.absolute {
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.relative {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.top-0 {
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.right-0 {
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.mb-6 {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.mb-4 {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.block {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.inline {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
}
|
||||
|
||||
.h-4 {
|
||||
height: 1rem;
|
||||
}
|
||||
|
||||
.h-2 {
|
||||
height: .5rem;
|
||||
}
|
||||
|
||||
.h-5 {
|
||||
height: 1.25rem;
|
||||
}
|
||||
|
||||
.h-3 {
|
||||
height: .75rem;
|
||||
}
|
||||
|
||||
.w-16 {
|
||||
width: 4rem;
|
||||
}
|
||||
|
||||
.flex-1 {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
50% {
|
||||
opacity: .5;
|
||||
}
|
||||
}
|
||||
|
||||
.animate-pulse {
|
||||
animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
|
||||
}
|
||||
|
||||
.grid-flow-col {
|
||||
grid-auto-flow: column;
|
||||
}
|
||||
|
||||
.grid-cols-2 {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.flex-col {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.items-end {
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
.items-center {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.gap-3 {
|
||||
gap: .75rem;
|
||||
}
|
||||
|
||||
.gap-2 {
|
||||
gap: .5rem;
|
||||
}
|
||||
|
||||
.gap-1 {
|
||||
gap: .25rem;
|
||||
}
|
||||
|
||||
.gap-4 {
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.gap-x-10 {
|
||||
column-gap: 2.5rem;
|
||||
}
|
||||
|
||||
.rounded-md {
|
||||
border-radius: .375rem;
|
||||
}
|
||||
|
||||
.rounded {
|
||||
border-radius: .25rem;
|
||||
}
|
||||
|
||||
.rounded-sm {
|
||||
border-radius: .125rem;
|
||||
}
|
||||
|
||||
.rounded-tr-md {
|
||||
border-top-right-radius: .375rem;
|
||||
}
|
||||
|
||||
.rounded-bl-md {
|
||||
border-bottom-left-radius: .375rem;
|
||||
}
|
||||
|
||||
.bg-primary-50 {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(242 237 255 / var(--tw-bg-opacity));
|
||||
}
|
||||
|
||||
.bg-primary {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(139 92 246 / var(--tw-bg-opacity));
|
||||
}
|
||||
|
||||
.bg-gray-500 {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(107 114 128 / var(--tw-bg-opacity));
|
||||
}
|
||||
|
||||
.p-4 {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.p-1 {
|
||||
padding: .25rem;
|
||||
}
|
||||
|
||||
.py-10 {
|
||||
padding-top: 2.5rem;
|
||||
padding-bottom: 2.5rem;
|
||||
}
|
||||
|
||||
.px-10 {
|
||||
padding-left: 2.5rem;
|
||||
padding-right: 2.5rem;
|
||||
}
|
||||
|
||||
.px-5 {
|
||||
padding-left: 1.25rem;
|
||||
padding-right: 1.25rem;
|
||||
}
|
||||
|
||||
.py-4 {
|
||||
padding-top: 1rem;
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
.pt-10 {
|
||||
padding-top: 2.5rem;
|
||||
}
|
||||
|
||||
.pl-2 {
|
||||
padding-left: .5rem;
|
||||
}
|
||||
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.text-6xl {
|
||||
font-size: 3.75rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.text-sm {
|
||||
font-size: .875rem;
|
||||
line-height: 1.25rem;
|
||||
}
|
||||
|
||||
.text-2xl {
|
||||
font-size: 1.5rem;
|
||||
line-height: 2rem;
|
||||
}
|
||||
|
||||
.text-lg {
|
||||
font-size: 1.125rem;
|
||||
line-height: 1.75rem;
|
||||
}
|
||||
|
||||
.text-3xl {
|
||||
font-size: 1.875rem;
|
||||
line-height: 2.25rem;
|
||||
}
|
||||
|
||||
.font-bold {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.text-primary {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(139 92 246 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.text-white {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(255 255 255 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.underline {
|
||||
text-decoration-line: underline;
|
||||
}
|
||||
|
||||
.disabled\:bg-gray-500:disabled {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(107 114 128 / var(--tw-bg-opacity));
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=index.77a9bc14.css.map */
|
1
dist/index.77a9bc14.css.map
vendored
Normal file
1
dist/index.77a9bc14.css.map
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"mappings":"AAAA;;;;;;;AAQA;;;;AAaA;;;;;AASA;;;;AAYA;;;;;;;AAaA;;;;;AAWA;;;;;;AAUA;;;;AAQA;;;;;AAcA;;;;;AASA;;;;AAUA;;;;;AAYA;;;;AAQA;;;;;;;AAQA;;;;AAIA;;;;AAUA;;;;;;AAYA;;;;;;;;;;AAkBA;;;;AAUA;;;;;;AAaA;;;;AAQA;;;;AAQA;;;;AAQA;;;;AAUA;;;;;AASA;;;;AASA;;;;;AASA;;;;AAQA;;;;AAgBA;;;;;AAKA;;;;AAIA;;;;;;AAYA;;;;AASA;;;;;AAUA;;;;AASA;;;;AAUA;;;;;AAgBA;;;;;AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8FA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;;;AAOA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;AAIA;;;;AAIA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;AAIA;;;;AAIA;;;;AAIA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;AAIA;;;;;AAKA;;;;;AAKA;;;;AAIA","sources":["src/css/styles.css"],"sourcesContent":["body,\nhtml {\n overflow: hidden;\n height: 100%;\n width: 100%;\n font-family: 'Roboto Slab', sans-serif;\n}\n\n* {\n -webkit-tap-highlight-color: transparent;\n}\n\n@tailwind base;\n@tailwind components;\n@tailwind utilities;\n"],"names":[],"version":3,"file":"index.77a9bc14.css.map","sourceRoot":"/__parcel_source_root/"}
|
1
dist/index.html
vendored
Normal file
1
dist/index.html
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
<meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Noddy - Nano wallet</title><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="crossorigin"><link href="https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;500;700&display=swap" rel="stylesheet"><link rel="stylesheet" href="/index.77a9bc14.css"><body class="flex flex-col py-10"><script src="/pages.265db5a8.js"></script></body><header class="flex flex-col flex-1 gap-3 text-center"><h1 class="text-6xl font-bold text-primary">Noddy</h1><h2 class="text-2xl">Your everyday nano wallet<br>and account manager</h2></header><main class="flex flex-col items-center gap-2"><a class="flex items-center gap-4 px-5 text-3xl font-bold text-white rounded-md bg-primary py-4" href="/create.html">Create wallet <img src="/wallet.26c45bbb.svg"></a><a class="underline text-lg">I already have a nano wallet</a></main>
|
538
dist/pages.0155c232.js
vendored
Normal file
538
dist/pages.0155c232.js
vendored
Normal file
|
@ -0,0 +1,538 @@
|
|||
// modules are defined as an array
|
||||
// [ module function, map of requires ]
|
||||
//
|
||||
// map of requires is short require name -> numeric require
|
||||
//
|
||||
// anything defined in a previous bundle is accessed via the
|
||||
// orig method which is the require for previous bundles
|
||||
|
||||
(function (modules, entry, mainEntry, parcelRequireName, globalName) {
|
||||
/* eslint-disable no-undef */
|
||||
var globalObject =
|
||||
typeof globalThis !== 'undefined'
|
||||
? globalThis
|
||||
: typeof self !== 'undefined'
|
||||
? self
|
||||
: typeof window !== 'undefined'
|
||||
? window
|
||||
: typeof global !== 'undefined'
|
||||
? global
|
||||
: {};
|
||||
/* eslint-enable no-undef */
|
||||
|
||||
// Save the require from previous bundle to this closure if any
|
||||
var previousRequire =
|
||||
typeof globalObject[parcelRequireName] === 'function' &&
|
||||
globalObject[parcelRequireName];
|
||||
|
||||
var cache = previousRequire.cache || {};
|
||||
// Do not use `require` to prevent Webpack from trying to bundle this call
|
||||
var nodeRequire =
|
||||
typeof module !== 'undefined' &&
|
||||
typeof module.require === 'function' &&
|
||||
module.require.bind(module);
|
||||
|
||||
function newRequire(name, jumped) {
|
||||
if (!cache[name]) {
|
||||
if (!modules[name]) {
|
||||
// if we cannot find the module within our internal map or
|
||||
// cache jump to the current global require ie. the last bundle
|
||||
// that was added to the page.
|
||||
var currentRequire =
|
||||
typeof globalObject[parcelRequireName] === 'function' &&
|
||||
globalObject[parcelRequireName];
|
||||
if (!jumped && currentRequire) {
|
||||
return currentRequire(name, true);
|
||||
}
|
||||
|
||||
// If there are other bundles on this page the require from the
|
||||
// previous one is saved to 'previousRequire'. Repeat this as
|
||||
// many times as there are bundles until the module is found or
|
||||
// we exhaust the require chain.
|
||||
if (previousRequire) {
|
||||
return previousRequire(name, true);
|
||||
}
|
||||
|
||||
// Try the node require function if it exists.
|
||||
if (nodeRequire && typeof name === 'string') {
|
||||
return nodeRequire(name);
|
||||
}
|
||||
|
||||
var err = new Error("Cannot find module '" + name + "'");
|
||||
err.code = 'MODULE_NOT_FOUND';
|
||||
throw err;
|
||||
}
|
||||
|
||||
localRequire.resolve = resolve;
|
||||
localRequire.cache = {};
|
||||
|
||||
var module = (cache[name] = new newRequire.Module(name));
|
||||
|
||||
modules[name][0].call(
|
||||
module.exports,
|
||||
localRequire,
|
||||
module,
|
||||
module.exports,
|
||||
this
|
||||
);
|
||||
}
|
||||
|
||||
return cache[name].exports;
|
||||
|
||||
function localRequire(x) {
|
||||
var res = localRequire.resolve(x);
|
||||
return res === false ? {} : newRequire(res);
|
||||
}
|
||||
|
||||
function resolve(x) {
|
||||
var id = modules[name][1][x];
|
||||
return id != null ? id : x;
|
||||
}
|
||||
}
|
||||
|
||||
function Module(moduleName) {
|
||||
this.id = moduleName;
|
||||
this.bundle = newRequire;
|
||||
this.exports = {};
|
||||
}
|
||||
|
||||
newRequire.isParcelRequire = true;
|
||||
newRequire.Module = Module;
|
||||
newRequire.modules = modules;
|
||||
newRequire.cache = cache;
|
||||
newRequire.parent = previousRequire;
|
||||
newRequire.register = function (id, exports) {
|
||||
modules[id] = [
|
||||
function (require, module) {
|
||||
module.exports = exports;
|
||||
},
|
||||
{},
|
||||
];
|
||||
};
|
||||
|
||||
Object.defineProperty(newRequire, 'root', {
|
||||
get: function () {
|
||||
return globalObject[parcelRequireName];
|
||||
},
|
||||
});
|
||||
|
||||
globalObject[parcelRequireName] = newRequire;
|
||||
|
||||
for (var i = 0; i < entry.length; i++) {
|
||||
newRequire(entry[i]);
|
||||
}
|
||||
|
||||
if (mainEntry) {
|
||||
// Expose entry point to Node, AMD or browser globals
|
||||
// Based on https://github.com/ForbesLindesay/umd/blob/master/template.js
|
||||
var mainExports = newRequire(mainEntry);
|
||||
|
||||
// CommonJS
|
||||
if (typeof exports === 'object' && typeof module !== 'undefined') {
|
||||
module.exports = mainExports;
|
||||
|
||||
// RequireJS
|
||||
} else if (typeof define === 'function' && define.amd) {
|
||||
define(function () {
|
||||
return mainExports;
|
||||
});
|
||||
|
||||
// <script>
|
||||
} else if (globalName) {
|
||||
this[globalName] = mainExports;
|
||||
}
|
||||
}
|
||||
})({"1ZQbA":[function(require,module,exports) {
|
||||
"use strict";
|
||||
var global = arguments[3];
|
||||
var HMR_HOST = null;
|
||||
var HMR_PORT = null;
|
||||
var HMR_SECURE = false;
|
||||
var HMR_ENV_HASH = "d6ea1d42532a7575";
|
||||
module.bundle.HMR_BUNDLE_ID = "b5ac21f30155c232";
|
||||
/* global HMR_HOST, HMR_PORT, HMR_ENV_HASH, HMR_SECURE, chrome, browser, globalThis, __parcel__import__, __parcel__importScripts__, ServiceWorkerGlobalScope */ /*::
|
||||
import type {
|
||||
HMRAsset,
|
||||
HMRMessage,
|
||||
} from '@parcel/reporter-dev-server/src/HMRServer.js';
|
||||
interface ParcelRequire {
|
||||
(string): mixed;
|
||||
cache: {|[string]: ParcelModule|};
|
||||
hotData: mixed;
|
||||
Module: any;
|
||||
parent: ?ParcelRequire;
|
||||
isParcelRequire: true;
|
||||
modules: {|[string]: [Function, {|[string]: string|}]|};
|
||||
HMR_BUNDLE_ID: string;
|
||||
root: ParcelRequire;
|
||||
}
|
||||
interface ParcelModule {
|
||||
hot: {|
|
||||
data: mixed,
|
||||
accept(cb: (Function) => void): void,
|
||||
dispose(cb: (mixed) => void): void,
|
||||
// accept(deps: Array<string> | string, cb: (Function) => void): void,
|
||||
// decline(): void,
|
||||
_acceptCallbacks: Array<(Function) => void>,
|
||||
_disposeCallbacks: Array<(mixed) => void>,
|
||||
|};
|
||||
}
|
||||
interface ExtensionContext {
|
||||
runtime: {|
|
||||
reload(): void,
|
||||
getURL(url: string): string;
|
||||
getManifest(): {manifest_version: number, ...};
|
||||
|};
|
||||
}
|
||||
declare var module: {bundle: ParcelRequire, ...};
|
||||
declare var HMR_HOST: string;
|
||||
declare var HMR_PORT: string;
|
||||
declare var HMR_ENV_HASH: string;
|
||||
declare var HMR_SECURE: boolean;
|
||||
declare var chrome: ExtensionContext;
|
||||
declare var browser: ExtensionContext;
|
||||
declare var __parcel__import__: (string) => Promise<void>;
|
||||
declare var __parcel__importScripts__: (string) => Promise<void>;
|
||||
declare var globalThis: typeof self;
|
||||
declare var ServiceWorkerGlobalScope: Object;
|
||||
*/ var OVERLAY_ID = "__parcel__error__overlay__";
|
||||
var OldModule = module.bundle.Module;
|
||||
function Module(moduleName) {
|
||||
OldModule.call(this, moduleName);
|
||||
this.hot = {
|
||||
data: module.bundle.hotData,
|
||||
_acceptCallbacks: [],
|
||||
_disposeCallbacks: [],
|
||||
accept: function(fn) {
|
||||
this._acceptCallbacks.push(fn || function() {});
|
||||
},
|
||||
dispose: function(fn) {
|
||||
this._disposeCallbacks.push(fn);
|
||||
}
|
||||
};
|
||||
module.bundle.hotData = undefined;
|
||||
}
|
||||
module.bundle.Module = Module;
|
||||
var checkedAssets, acceptedAssets, assetsToAccept /*: Array<[ParcelRequire, string]> */ ;
|
||||
function getHostname() {
|
||||
return HMR_HOST || (location.protocol.indexOf("http") === 0 ? location.hostname : "localhost");
|
||||
}
|
||||
function getPort() {
|
||||
return HMR_PORT || location.port;
|
||||
} // eslint-disable-next-line no-redeclare
|
||||
var parent = module.bundle.parent;
|
||||
if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== "undefined") {
|
||||
var hostname = getHostname();
|
||||
var port = getPort();
|
||||
var protocol = HMR_SECURE || location.protocol == "https:" && !/localhost|127.0.0.1|0.0.0.0/.test(hostname) ? "wss" : "ws";
|
||||
var ws = new WebSocket(protocol + "://" + hostname + (port ? ":" + port : "") + "/"); // Web extension context
|
||||
var extCtx = typeof chrome === "undefined" ? typeof browser === "undefined" ? null : browser : chrome; // Safari doesn't support sourceURL in error stacks.
|
||||
// eval may also be disabled via CSP, so do a quick check.
|
||||
var supportsSourceURL = false;
|
||||
try {
|
||||
(0, eval)('throw new Error("test"); //# sourceURL=test.js');
|
||||
} catch (err) {
|
||||
supportsSourceURL = err.stack.includes("test.js");
|
||||
} // $FlowFixMe
|
||||
ws.onmessage = async function(event) {
|
||||
checkedAssets = {} /*: {|[string]: boolean|} */ ;
|
||||
acceptedAssets = {} /*: {|[string]: boolean|} */ ;
|
||||
assetsToAccept = [];
|
||||
var data = JSON.parse(event.data);
|
||||
if (data.type === "update") {
|
||||
// Remove error overlay if there is one
|
||||
if (typeof document !== "undefined") removeErrorOverlay();
|
||||
let assets = data.assets.filter((asset)=>asset.envHash === HMR_ENV_HASH); // Handle HMR Update
|
||||
let handled = assets.every((asset)=>{
|
||||
return asset.type === "css" || asset.type === "js" && hmrAcceptCheck(module.bundle.root, asset.id, asset.depsByBundle);
|
||||
});
|
||||
if (handled) {
|
||||
console.clear(); // Dispatch custom event so other runtimes (e.g React Refresh) are aware.
|
||||
if (typeof window !== "undefined" && typeof CustomEvent !== "undefined") window.dispatchEvent(new CustomEvent("parcelhmraccept"));
|
||||
await hmrApplyUpdates(assets);
|
||||
for(var i = 0; i < assetsToAccept.length; i++){
|
||||
var id = assetsToAccept[i][1];
|
||||
if (!acceptedAssets[id]) hmrAcceptRun(assetsToAccept[i][0], id);
|
||||
}
|
||||
} else fullReload();
|
||||
}
|
||||
if (data.type === "error") {
|
||||
// Log parcel errors to console
|
||||
for (let ansiDiagnostic of data.diagnostics.ansi){
|
||||
let stack = ansiDiagnostic.codeframe ? ansiDiagnostic.codeframe : ansiDiagnostic.stack;
|
||||
console.error("\uD83D\uDEA8 [parcel]: " + ansiDiagnostic.message + "\n" + stack + "\n\n" + ansiDiagnostic.hints.join("\n"));
|
||||
}
|
||||
if (typeof document !== "undefined") {
|
||||
// Render the fancy html overlay
|
||||
removeErrorOverlay();
|
||||
var overlay = createErrorOverlay(data.diagnostics.html); // $FlowFixMe
|
||||
document.body.appendChild(overlay);
|
||||
}
|
||||
}
|
||||
};
|
||||
ws.onerror = function(e) {
|
||||
console.error(e.message);
|
||||
};
|
||||
ws.onclose = function() {
|
||||
console.warn("[parcel] \uD83D\uDEA8 Connection to the HMR server was lost");
|
||||
};
|
||||
}
|
||||
function removeErrorOverlay() {
|
||||
var overlay = document.getElementById(OVERLAY_ID);
|
||||
if (overlay) {
|
||||
overlay.remove();
|
||||
console.log("[parcel] ✨ Error resolved");
|
||||
}
|
||||
}
|
||||
function createErrorOverlay(diagnostics) {
|
||||
var overlay = document.createElement("div");
|
||||
overlay.id = OVERLAY_ID;
|
||||
let errorHTML = '<div style="background: black; opacity: 0.85; font-size: 16px; color: white; position: fixed; height: 100%; width: 100%; top: 0px; left: 0px; padding: 30px; font-family: Menlo, Consolas, monospace; z-index: 9999;">';
|
||||
for (let diagnostic of diagnostics){
|
||||
let stack = diagnostic.frames.length ? diagnostic.frames.reduce((p, frame)=>{
|
||||
return `${p}
|
||||
<a href="/__parcel_launch_editor?file=${encodeURIComponent(frame.location)}" style="text-decoration: underline; color: #888" onclick="fetch(this.href); return false">${frame.location}</a>
|
||||
${frame.code}`;
|
||||
}, "") : diagnostic.stack;
|
||||
errorHTML += `
|
||||
<div>
|
||||
<div style="font-size: 18px; font-weight: bold; margin-top: 20px;">
|
||||
🚨 ${diagnostic.message}
|
||||
</div>
|
||||
<pre>${stack}</pre>
|
||||
<div>
|
||||
${diagnostic.hints.map((hint)=>"<div>\uD83D\uDCA1 " + hint + "</div>").join("")}
|
||||
</div>
|
||||
${diagnostic.documentation ? `<div>📝 <a style="color: violet" href="${diagnostic.documentation}" target="_blank">Learn more</a></div>` : ""}
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
errorHTML += "</div>";
|
||||
overlay.innerHTML = errorHTML;
|
||||
return overlay;
|
||||
}
|
||||
function fullReload() {
|
||||
if ("reload" in location) location.reload();
|
||||
else if (extCtx && extCtx.runtime && extCtx.runtime.reload) extCtx.runtime.reload();
|
||||
}
|
||||
function getParents(bundle, id) /*: Array<[ParcelRequire, string]> */ {
|
||||
var modules = bundle.modules;
|
||||
if (!modules) return [];
|
||||
var parents = [];
|
||||
var k, d, dep;
|
||||
for(k in modules)for(d in modules[k][1]){
|
||||
dep = modules[k][1][d];
|
||||
if (dep === id || Array.isArray(dep) && dep[dep.length - 1] === id) parents.push([
|
||||
bundle,
|
||||
k
|
||||
]);
|
||||
}
|
||||
if (bundle.parent) parents = parents.concat(getParents(bundle.parent, id));
|
||||
return parents;
|
||||
}
|
||||
function updateLink(link) {
|
||||
var newLink = link.cloneNode();
|
||||
newLink.onload = function() {
|
||||
if (link.parentNode !== null) // $FlowFixMe
|
||||
link.parentNode.removeChild(link);
|
||||
};
|
||||
newLink.setAttribute("href", link.getAttribute("href").split("?")[0] + "?" + Date.now()); // $FlowFixMe
|
||||
link.parentNode.insertBefore(newLink, link.nextSibling);
|
||||
}
|
||||
var cssTimeout = null;
|
||||
function reloadCSS() {
|
||||
if (cssTimeout) return;
|
||||
cssTimeout = setTimeout(function() {
|
||||
var links = document.querySelectorAll('link[rel="stylesheet"]');
|
||||
for(var i = 0; i < links.length; i++){
|
||||
// $FlowFixMe[incompatible-type]
|
||||
var href = links[i].getAttribute("href");
|
||||
var hostname = getHostname();
|
||||
var servedFromHMRServer = hostname === "localhost" ? new RegExp("^(https?:\\/\\/(0.0.0.0|127.0.0.1)|localhost):" + getPort()).test(href) : href.indexOf(hostname + ":" + getPort());
|
||||
var absolute = /^https?:\/\//i.test(href) && href.indexOf(location.origin) !== 0 && !servedFromHMRServer;
|
||||
if (!absolute) updateLink(links[i]);
|
||||
}
|
||||
cssTimeout = null;
|
||||
}, 50);
|
||||
}
|
||||
function hmrDownload(asset) {
|
||||
if (asset.type === "js") {
|
||||
if (typeof document !== "undefined") {
|
||||
let script = document.createElement("script");
|
||||
script.src = asset.url + "?t=" + Date.now();
|
||||
if (asset.outputFormat === "esmodule") script.type = "module";
|
||||
return new Promise((resolve, reject)=>{
|
||||
var _document$head;
|
||||
script.onload = ()=>resolve(script);
|
||||
script.onerror = reject;
|
||||
(_document$head = document.head) === null || _document$head === void 0 || _document$head.appendChild(script);
|
||||
});
|
||||
} else if (typeof importScripts === "function") {
|
||||
// Worker scripts
|
||||
if (asset.outputFormat === "esmodule") return import(asset.url + "?t=" + Date.now());
|
||||
else return new Promise((resolve, reject)=>{
|
||||
try {
|
||||
importScripts(asset.url + "?t=" + Date.now());
|
||||
resolve();
|
||||
} catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
async function hmrApplyUpdates(assets) {
|
||||
global.parcelHotUpdate = Object.create(null);
|
||||
let scriptsToRemove;
|
||||
try {
|
||||
// If sourceURL comments aren't supported in eval, we need to load
|
||||
// the update from the dev server over HTTP so that stack traces
|
||||
// are correct in errors/logs. This is much slower than eval, so
|
||||
// we only do it if needed (currently just Safari).
|
||||
// https://bugs.webkit.org/show_bug.cgi?id=137297
|
||||
// This path is also taken if a CSP disallows eval.
|
||||
if (!supportsSourceURL) {
|
||||
let promises = assets.map((asset)=>{
|
||||
var _hmrDownload;
|
||||
return (_hmrDownload = hmrDownload(asset)) === null || _hmrDownload === void 0 ? void 0 : _hmrDownload.catch((err)=>{
|
||||
// Web extension bugfix for Chromium
|
||||
// https://bugs.chromium.org/p/chromium/issues/detail?id=1255412#c12
|
||||
if (extCtx && extCtx.runtime && extCtx.runtime.getManifest().manifest_version == 3) {
|
||||
if (typeof ServiceWorkerGlobalScope != "undefined" && global instanceof ServiceWorkerGlobalScope) {
|
||||
extCtx.runtime.reload();
|
||||
return;
|
||||
}
|
||||
asset.url = extCtx.runtime.getURL("/__parcel_hmr_proxy__?url=" + encodeURIComponent(asset.url + "?t=" + Date.now()));
|
||||
return hmrDownload(asset);
|
||||
}
|
||||
throw err;
|
||||
});
|
||||
});
|
||||
scriptsToRemove = await Promise.all(promises);
|
||||
}
|
||||
assets.forEach(function(asset) {
|
||||
hmrApply(module.bundle.root, asset);
|
||||
});
|
||||
} finally{
|
||||
delete global.parcelHotUpdate;
|
||||
if (scriptsToRemove) scriptsToRemove.forEach((script)=>{
|
||||
if (script) {
|
||||
var _document$head2;
|
||||
(_document$head2 = document.head) === null || _document$head2 === void 0 || _document$head2.removeChild(script);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
function hmrApply(bundle, asset) {
|
||||
var modules = bundle.modules;
|
||||
if (!modules) return;
|
||||
if (asset.type === "css") reloadCSS();
|
||||
else if (asset.type === "js") {
|
||||
let deps = asset.depsByBundle[bundle.HMR_BUNDLE_ID];
|
||||
if (deps) {
|
||||
if (modules[asset.id]) {
|
||||
// Remove dependencies that are removed and will become orphaned.
|
||||
// This is necessary so that if the asset is added back again, the cache is gone, and we prevent a full page reload.
|
||||
let oldDeps = modules[asset.id][1];
|
||||
for(let dep in oldDeps)if (!deps[dep] || deps[dep] !== oldDeps[dep]) {
|
||||
let id = oldDeps[dep];
|
||||
let parents = getParents(module.bundle.root, id);
|
||||
if (parents.length === 1) hmrDelete(module.bundle.root, id);
|
||||
}
|
||||
}
|
||||
if (supportsSourceURL) // Global eval. We would use `new Function` here but browser
|
||||
// support for source maps is better with eval.
|
||||
(0, eval)(asset.output);
|
||||
// $FlowFixMe
|
||||
let fn = global.parcelHotUpdate[asset.id];
|
||||
modules[asset.id] = [
|
||||
fn,
|
||||
deps
|
||||
];
|
||||
} else if (bundle.parent) hmrApply(bundle.parent, asset);
|
||||
}
|
||||
}
|
||||
function hmrDelete(bundle, id) {
|
||||
let modules = bundle.modules;
|
||||
if (!modules) return;
|
||||
if (modules[id]) {
|
||||
// Collect dependencies that will become orphaned when this module is deleted.
|
||||
let deps = modules[id][1];
|
||||
let orphans = [];
|
||||
for(let dep in deps){
|
||||
let parents = getParents(module.bundle.root, deps[dep]);
|
||||
if (parents.length === 1) orphans.push(deps[dep]);
|
||||
} // Delete the module. This must be done before deleting dependencies in case of circular dependencies.
|
||||
delete modules[id];
|
||||
delete bundle.cache[id]; // Now delete the orphans.
|
||||
orphans.forEach((id)=>{
|
||||
hmrDelete(module.bundle.root, id);
|
||||
});
|
||||
} else if (bundle.parent) hmrDelete(bundle.parent, id);
|
||||
}
|
||||
function hmrAcceptCheck(bundle, id, depsByBundle) {
|
||||
if (hmrAcceptCheckOne(bundle, id, depsByBundle)) return true;
|
||||
// Traverse parents breadth first. All possible ancestries must accept the HMR update, or we'll reload.
|
||||
let parents = getParents(module.bundle.root, id);
|
||||
let accepted = false;
|
||||
while(parents.length > 0){
|
||||
let v = parents.shift();
|
||||
let a = hmrAcceptCheckOne(v[0], v[1], null);
|
||||
if (a) // If this parent accepts, stop traversing upward, but still consider siblings.
|
||||
accepted = true;
|
||||
else {
|
||||
// Otherwise, queue the parents in the next level upward.
|
||||
let p = getParents(module.bundle.root, v[1]);
|
||||
if (p.length === 0) {
|
||||
// If there are no parents, then we've reached an entry without accepting. Reload.
|
||||
accepted = false;
|
||||
break;
|
||||
}
|
||||
parents.push(...p);
|
||||
}
|
||||
}
|
||||
return accepted;
|
||||
}
|
||||
function hmrAcceptCheckOne(bundle, id, depsByBundle) {
|
||||
var modules = bundle.modules;
|
||||
if (!modules) return;
|
||||
if (depsByBundle && !depsByBundle[bundle.HMR_BUNDLE_ID]) {
|
||||
// If we reached the root bundle without finding where the asset should go,
|
||||
// there's nothing to do. Mark as "accepted" so we don't reload the page.
|
||||
if (!bundle.parent) return true;
|
||||
return hmrAcceptCheck(bundle.parent, id, depsByBundle);
|
||||
}
|
||||
if (checkedAssets[id]) return true;
|
||||
checkedAssets[id] = true;
|
||||
var cached = bundle.cache[id];
|
||||
assetsToAccept.push([
|
||||
bundle,
|
||||
id
|
||||
]);
|
||||
if (!cached || cached.hot && cached.hot._acceptCallbacks.length) return true;
|
||||
}
|
||||
function hmrAcceptRun(bundle, id) {
|
||||
var cached = bundle.cache[id];
|
||||
bundle.hotData = {};
|
||||
if (cached && cached.hot) cached.hot.data = bundle.hotData;
|
||||
if (cached && cached.hot && cached.hot._disposeCallbacks.length) cached.hot._disposeCallbacks.forEach(function(cb) {
|
||||
cb(bundle.hotData);
|
||||
});
|
||||
delete bundle.cache[id];
|
||||
bundle(id);
|
||||
cached = bundle.cache[id];
|
||||
if (cached && cached.hot && cached.hot._acceptCallbacks.length) cached.hot._acceptCallbacks.forEach(function(cb) {
|
||||
var assetsToAlsoAccept = cb(function() {
|
||||
return getParents(module.bundle.root, id);
|
||||
});
|
||||
if (assetsToAlsoAccept && assetsToAccept.length) // $FlowFixMe[method-unbinding]
|
||||
assetsToAccept.push.apply(assetsToAccept, assetsToAlsoAccept);
|
||||
});
|
||||
acceptedAssets[id] = true;
|
||||
}
|
||||
|
||||
},{}],"7afug":[function(require,module,exports) {
|
||||
|
||||
},{}]},["1ZQbA","7afug"], "7afug", "parcelRequire7e89")
|
||||
|
||||
//# sourceMappingURL=pages.0155c232.js.map
|
1
dist/pages.0155c232.js.map
vendored
Normal file
1
dist/pages.0155c232.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
538
dist/pages.265db5a8.js
vendored
Normal file
538
dist/pages.265db5a8.js
vendored
Normal file
|
@ -0,0 +1,538 @@
|
|||
// modules are defined as an array
|
||||
// [ module function, map of requires ]
|
||||
//
|
||||
// map of requires is short require name -> numeric require
|
||||
//
|
||||
// anything defined in a previous bundle is accessed via the
|
||||
// orig method which is the require for previous bundles
|
||||
|
||||
(function (modules, entry, mainEntry, parcelRequireName, globalName) {
|
||||
/* eslint-disable no-undef */
|
||||
var globalObject =
|
||||
typeof globalThis !== 'undefined'
|
||||
? globalThis
|
||||
: typeof self !== 'undefined'
|
||||
? self
|
||||
: typeof window !== 'undefined'
|
||||
? window
|
||||
: typeof global !== 'undefined'
|
||||
? global
|
||||
: {};
|
||||
/* eslint-enable no-undef */
|
||||
|
||||
// Save the require from previous bundle to this closure if any
|
||||
var previousRequire =
|
||||
typeof globalObject[parcelRequireName] === 'function' &&
|
||||
globalObject[parcelRequireName];
|
||||
|
||||
var cache = previousRequire.cache || {};
|
||||
// Do not use `require` to prevent Webpack from trying to bundle this call
|
||||
var nodeRequire =
|
||||
typeof module !== 'undefined' &&
|
||||
typeof module.require === 'function' &&
|
||||
module.require.bind(module);
|
||||
|
||||
function newRequire(name, jumped) {
|
||||
if (!cache[name]) {
|
||||
if (!modules[name]) {
|
||||
// if we cannot find the module within our internal map or
|
||||
// cache jump to the current global require ie. the last bundle
|
||||
// that was added to the page.
|
||||
var currentRequire =
|
||||
typeof globalObject[parcelRequireName] === 'function' &&
|
||||
globalObject[parcelRequireName];
|
||||
if (!jumped && currentRequire) {
|
||||
return currentRequire(name, true);
|
||||
}
|
||||
|
||||
// If there are other bundles on this page the require from the
|
||||
// previous one is saved to 'previousRequire'. Repeat this as
|
||||
// many times as there are bundles until the module is found or
|
||||
// we exhaust the require chain.
|
||||
if (previousRequire) {
|
||||
return previousRequire(name, true);
|
||||
}
|
||||
|
||||
// Try the node require function if it exists.
|
||||
if (nodeRequire && typeof name === 'string') {
|
||||
return nodeRequire(name);
|
||||
}
|
||||
|
||||
var err = new Error("Cannot find module '" + name + "'");
|
||||
err.code = 'MODULE_NOT_FOUND';
|
||||
throw err;
|
||||
}
|
||||
|
||||
localRequire.resolve = resolve;
|
||||
localRequire.cache = {};
|
||||
|
||||
var module = (cache[name] = new newRequire.Module(name));
|
||||
|
||||
modules[name][0].call(
|
||||
module.exports,
|
||||
localRequire,
|
||||
module,
|
||||
module.exports,
|
||||
this
|
||||
);
|
||||
}
|
||||
|
||||
return cache[name].exports;
|
||||
|
||||
function localRequire(x) {
|
||||
var res = localRequire.resolve(x);
|
||||
return res === false ? {} : newRequire(res);
|
||||
}
|
||||
|
||||
function resolve(x) {
|
||||
var id = modules[name][1][x];
|
||||
return id != null ? id : x;
|
||||
}
|
||||
}
|
||||
|
||||
function Module(moduleName) {
|
||||
this.id = moduleName;
|
||||
this.bundle = newRequire;
|
||||
this.exports = {};
|
||||
}
|
||||
|
||||
newRequire.isParcelRequire = true;
|
||||
newRequire.Module = Module;
|
||||
newRequire.modules = modules;
|
||||
newRequire.cache = cache;
|
||||
newRequire.parent = previousRequire;
|
||||
newRequire.register = function (id, exports) {
|
||||
modules[id] = [
|
||||
function (require, module) {
|
||||
module.exports = exports;
|
||||
},
|
||||
{},
|
||||
];
|
||||
};
|
||||
|
||||
Object.defineProperty(newRequire, 'root', {
|
||||
get: function () {
|
||||
return globalObject[parcelRequireName];
|
||||
},
|
||||
});
|
||||
|
||||
globalObject[parcelRequireName] = newRequire;
|
||||
|
||||
for (var i = 0; i < entry.length; i++) {
|
||||
newRequire(entry[i]);
|
||||
}
|
||||
|
||||
if (mainEntry) {
|
||||
// Expose entry point to Node, AMD or browser globals
|
||||
// Based on https://github.com/ForbesLindesay/umd/blob/master/template.js
|
||||
var mainExports = newRequire(mainEntry);
|
||||
|
||||
// CommonJS
|
||||
if (typeof exports === 'object' && typeof module !== 'undefined') {
|
||||
module.exports = mainExports;
|
||||
|
||||
// RequireJS
|
||||
} else if (typeof define === 'function' && define.amd) {
|
||||
define(function () {
|
||||
return mainExports;
|
||||
});
|
||||
|
||||
// <script>
|
||||
} else if (globalName) {
|
||||
this[globalName] = mainExports;
|
||||
}
|
||||
}
|
||||
})({"f1W1f":[function(require,module,exports) {
|
||||
"use strict";
|
||||
var global = arguments[3];
|
||||
var HMR_HOST = null;
|
||||
var HMR_PORT = null;
|
||||
var HMR_SECURE = false;
|
||||
var HMR_ENV_HASH = "d6ea1d42532a7575";
|
||||
module.bundle.HMR_BUNDLE_ID = "f5ec50bd265db5a8";
|
||||
/* global HMR_HOST, HMR_PORT, HMR_ENV_HASH, HMR_SECURE, chrome, browser, globalThis, __parcel__import__, __parcel__importScripts__, ServiceWorkerGlobalScope */ /*::
|
||||
import type {
|
||||
HMRAsset,
|
||||
HMRMessage,
|
||||
} from '@parcel/reporter-dev-server/src/HMRServer.js';
|
||||
interface ParcelRequire {
|
||||
(string): mixed;
|
||||
cache: {|[string]: ParcelModule|};
|
||||
hotData: mixed;
|
||||
Module: any;
|
||||
parent: ?ParcelRequire;
|
||||
isParcelRequire: true;
|
||||
modules: {|[string]: [Function, {|[string]: string|}]|};
|
||||
HMR_BUNDLE_ID: string;
|
||||
root: ParcelRequire;
|
||||
}
|
||||
interface ParcelModule {
|
||||
hot: {|
|
||||
data: mixed,
|
||||
accept(cb: (Function) => void): void,
|
||||
dispose(cb: (mixed) => void): void,
|
||||
// accept(deps: Array<string> | string, cb: (Function) => void): void,
|
||||
// decline(): void,
|
||||
_acceptCallbacks: Array<(Function) => void>,
|
||||
_disposeCallbacks: Array<(mixed) => void>,
|
||||
|};
|
||||
}
|
||||
interface ExtensionContext {
|
||||
runtime: {|
|
||||
reload(): void,
|
||||
getURL(url: string): string;
|
||||
getManifest(): {manifest_version: number, ...};
|
||||
|};
|
||||
}
|
||||
declare var module: {bundle: ParcelRequire, ...};
|
||||
declare var HMR_HOST: string;
|
||||
declare var HMR_PORT: string;
|
||||
declare var HMR_ENV_HASH: string;
|
||||
declare var HMR_SECURE: boolean;
|
||||
declare var chrome: ExtensionContext;
|
||||
declare var browser: ExtensionContext;
|
||||
declare var __parcel__import__: (string) => Promise<void>;
|
||||
declare var __parcel__importScripts__: (string) => Promise<void>;
|
||||
declare var globalThis: typeof self;
|
||||
declare var ServiceWorkerGlobalScope: Object;
|
||||
*/ var OVERLAY_ID = "__parcel__error__overlay__";
|
||||
var OldModule = module.bundle.Module;
|
||||
function Module(moduleName) {
|
||||
OldModule.call(this, moduleName);
|
||||
this.hot = {
|
||||
data: module.bundle.hotData,
|
||||
_acceptCallbacks: [],
|
||||
_disposeCallbacks: [],
|
||||
accept: function(fn) {
|
||||
this._acceptCallbacks.push(fn || function() {});
|
||||
},
|
||||
dispose: function(fn) {
|
||||
this._disposeCallbacks.push(fn);
|
||||
}
|
||||
};
|
||||
module.bundle.hotData = undefined;
|
||||
}
|
||||
module.bundle.Module = Module;
|
||||
var checkedAssets, acceptedAssets, assetsToAccept /*: Array<[ParcelRequire, string]> */ ;
|
||||
function getHostname() {
|
||||
return HMR_HOST || (location.protocol.indexOf("http") === 0 ? location.hostname : "localhost");
|
||||
}
|
||||
function getPort() {
|
||||
return HMR_PORT || location.port;
|
||||
} // eslint-disable-next-line no-redeclare
|
||||
var parent = module.bundle.parent;
|
||||
if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== "undefined") {
|
||||
var hostname = getHostname();
|
||||
var port = getPort();
|
||||
var protocol = HMR_SECURE || location.protocol == "https:" && !/localhost|127.0.0.1|0.0.0.0/.test(hostname) ? "wss" : "ws";
|
||||
var ws = new WebSocket(protocol + "://" + hostname + (port ? ":" + port : "") + "/"); // Web extension context
|
||||
var extCtx = typeof chrome === "undefined" ? typeof browser === "undefined" ? null : browser : chrome; // Safari doesn't support sourceURL in error stacks.
|
||||
// eval may also be disabled via CSP, so do a quick check.
|
||||
var supportsSourceURL = false;
|
||||
try {
|
||||
(0, eval)('throw new Error("test"); //# sourceURL=test.js');
|
||||
} catch (err) {
|
||||
supportsSourceURL = err.stack.includes("test.js");
|
||||
} // $FlowFixMe
|
||||
ws.onmessage = async function(event) {
|
||||
checkedAssets = {} /*: {|[string]: boolean|} */ ;
|
||||
acceptedAssets = {} /*: {|[string]: boolean|} */ ;
|
||||
assetsToAccept = [];
|
||||
var data = JSON.parse(event.data);
|
||||
if (data.type === "update") {
|
||||
// Remove error overlay if there is one
|
||||
if (typeof document !== "undefined") removeErrorOverlay();
|
||||
let assets = data.assets.filter((asset)=>asset.envHash === HMR_ENV_HASH); // Handle HMR Update
|
||||
let handled = assets.every((asset)=>{
|
||||
return asset.type === "css" || asset.type === "js" && hmrAcceptCheck(module.bundle.root, asset.id, asset.depsByBundle);
|
||||
});
|
||||
if (handled) {
|
||||
console.clear(); // Dispatch custom event so other runtimes (e.g React Refresh) are aware.
|
||||
if (typeof window !== "undefined" && typeof CustomEvent !== "undefined") window.dispatchEvent(new CustomEvent("parcelhmraccept"));
|
||||
await hmrApplyUpdates(assets);
|
||||
for(var i = 0; i < assetsToAccept.length; i++){
|
||||
var id = assetsToAccept[i][1];
|
||||
if (!acceptedAssets[id]) hmrAcceptRun(assetsToAccept[i][0], id);
|
||||
}
|
||||
} else fullReload();
|
||||
}
|
||||
if (data.type === "error") {
|
||||
// Log parcel errors to console
|
||||
for (let ansiDiagnostic of data.diagnostics.ansi){
|
||||
let stack = ansiDiagnostic.codeframe ? ansiDiagnostic.codeframe : ansiDiagnostic.stack;
|
||||
console.error("\uD83D\uDEA8 [parcel]: " + ansiDiagnostic.message + "\n" + stack + "\n\n" + ansiDiagnostic.hints.join("\n"));
|
||||
}
|
||||
if (typeof document !== "undefined") {
|
||||
// Render the fancy html overlay
|
||||
removeErrorOverlay();
|
||||
var overlay = createErrorOverlay(data.diagnostics.html); // $FlowFixMe
|
||||
document.body.appendChild(overlay);
|
||||
}
|
||||
}
|
||||
};
|
||||
ws.onerror = function(e) {
|
||||
console.error(e.message);
|
||||
};
|
||||
ws.onclose = function() {
|
||||
console.warn("[parcel] \uD83D\uDEA8 Connection to the HMR server was lost");
|
||||
};
|
||||
}
|
||||
function removeErrorOverlay() {
|
||||
var overlay = document.getElementById(OVERLAY_ID);
|
||||
if (overlay) {
|
||||
overlay.remove();
|
||||
console.log("[parcel] ✨ Error resolved");
|
||||
}
|
||||
}
|
||||
function createErrorOverlay(diagnostics) {
|
||||
var overlay = document.createElement("div");
|
||||
overlay.id = OVERLAY_ID;
|
||||
let errorHTML = '<div style="background: black; opacity: 0.85; font-size: 16px; color: white; position: fixed; height: 100%; width: 100%; top: 0px; left: 0px; padding: 30px; font-family: Menlo, Consolas, monospace; z-index: 9999;">';
|
||||
for (let diagnostic of diagnostics){
|
||||
let stack = diagnostic.frames.length ? diagnostic.frames.reduce((p, frame)=>{
|
||||
return `${p}
|
||||
<a href="/__parcel_launch_editor?file=${encodeURIComponent(frame.location)}" style="text-decoration: underline; color: #888" onclick="fetch(this.href); return false">${frame.location}</a>
|
||||
${frame.code}`;
|
||||
}, "") : diagnostic.stack;
|
||||
errorHTML += `
|
||||
<div>
|
||||
<div style="font-size: 18px; font-weight: bold; margin-top: 20px;">
|
||||
🚨 ${diagnostic.message}
|
||||
</div>
|
||||
<pre>${stack}</pre>
|
||||
<div>
|
||||
${diagnostic.hints.map((hint)=>"<div>\uD83D\uDCA1 " + hint + "</div>").join("")}
|
||||
</div>
|
||||
${diagnostic.documentation ? `<div>📝 <a style="color: violet" href="${diagnostic.documentation}" target="_blank">Learn more</a></div>` : ""}
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
errorHTML += "</div>";
|
||||
overlay.innerHTML = errorHTML;
|
||||
return overlay;
|
||||
}
|
||||
function fullReload() {
|
||||
if ("reload" in location) location.reload();
|
||||
else if (extCtx && extCtx.runtime && extCtx.runtime.reload) extCtx.runtime.reload();
|
||||
}
|
||||
function getParents(bundle, id) /*: Array<[ParcelRequire, string]> */ {
|
||||
var modules = bundle.modules;
|
||||
if (!modules) return [];
|
||||
var parents = [];
|
||||
var k, d, dep;
|
||||
for(k in modules)for(d in modules[k][1]){
|
||||
dep = modules[k][1][d];
|
||||
if (dep === id || Array.isArray(dep) && dep[dep.length - 1] === id) parents.push([
|
||||
bundle,
|
||||
k
|
||||
]);
|
||||
}
|
||||
if (bundle.parent) parents = parents.concat(getParents(bundle.parent, id));
|
||||
return parents;
|
||||
}
|
||||
function updateLink(link) {
|
||||
var newLink = link.cloneNode();
|
||||
newLink.onload = function() {
|
||||
if (link.parentNode !== null) // $FlowFixMe
|
||||
link.parentNode.removeChild(link);
|
||||
};
|
||||
newLink.setAttribute("href", link.getAttribute("href").split("?")[0] + "?" + Date.now()); // $FlowFixMe
|
||||
link.parentNode.insertBefore(newLink, link.nextSibling);
|
||||
}
|
||||
var cssTimeout = null;
|
||||
function reloadCSS() {
|
||||
if (cssTimeout) return;
|
||||
cssTimeout = setTimeout(function() {
|
||||
var links = document.querySelectorAll('link[rel="stylesheet"]');
|
||||
for(var i = 0; i < links.length; i++){
|
||||
// $FlowFixMe[incompatible-type]
|
||||
var href = links[i].getAttribute("href");
|
||||
var hostname = getHostname();
|
||||
var servedFromHMRServer = hostname === "localhost" ? new RegExp("^(https?:\\/\\/(0.0.0.0|127.0.0.1)|localhost):" + getPort()).test(href) : href.indexOf(hostname + ":" + getPort());
|
||||
var absolute = /^https?:\/\//i.test(href) && href.indexOf(location.origin) !== 0 && !servedFromHMRServer;
|
||||
if (!absolute) updateLink(links[i]);
|
||||
}
|
||||
cssTimeout = null;
|
||||
}, 50);
|
||||
}
|
||||
function hmrDownload(asset) {
|
||||
if (asset.type === "js") {
|
||||
if (typeof document !== "undefined") {
|
||||
let script = document.createElement("script");
|
||||
script.src = asset.url + "?t=" + Date.now();
|
||||
if (asset.outputFormat === "esmodule") script.type = "module";
|
||||
return new Promise((resolve, reject)=>{
|
||||
var _document$head;
|
||||
script.onload = ()=>resolve(script);
|
||||
script.onerror = reject;
|
||||
(_document$head = document.head) === null || _document$head === void 0 || _document$head.appendChild(script);
|
||||
});
|
||||
} else if (typeof importScripts === "function") {
|
||||
// Worker scripts
|
||||
if (asset.outputFormat === "esmodule") return import(asset.url + "?t=" + Date.now());
|
||||
else return new Promise((resolve, reject)=>{
|
||||
try {
|
||||
importScripts(asset.url + "?t=" + Date.now());
|
||||
resolve();
|
||||
} catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
async function hmrApplyUpdates(assets) {
|
||||
global.parcelHotUpdate = Object.create(null);
|
||||
let scriptsToRemove;
|
||||
try {
|
||||
// If sourceURL comments aren't supported in eval, we need to load
|
||||
// the update from the dev server over HTTP so that stack traces
|
||||
// are correct in errors/logs. This is much slower than eval, so
|
||||
// we only do it if needed (currently just Safari).
|
||||
// https://bugs.webkit.org/show_bug.cgi?id=137297
|
||||
// This path is also taken if a CSP disallows eval.
|
||||
if (!supportsSourceURL) {
|
||||
let promises = assets.map((asset)=>{
|
||||
var _hmrDownload;
|
||||
return (_hmrDownload = hmrDownload(asset)) === null || _hmrDownload === void 0 ? void 0 : _hmrDownload.catch((err)=>{
|
||||
// Web extension bugfix for Chromium
|
||||
// https://bugs.chromium.org/p/chromium/issues/detail?id=1255412#c12
|
||||
if (extCtx && extCtx.runtime && extCtx.runtime.getManifest().manifest_version == 3) {
|
||||
if (typeof ServiceWorkerGlobalScope != "undefined" && global instanceof ServiceWorkerGlobalScope) {
|
||||
extCtx.runtime.reload();
|
||||
return;
|
||||
}
|
||||
asset.url = extCtx.runtime.getURL("/__parcel_hmr_proxy__?url=" + encodeURIComponent(asset.url + "?t=" + Date.now()));
|
||||
return hmrDownload(asset);
|
||||
}
|
||||
throw err;
|
||||
});
|
||||
});
|
||||
scriptsToRemove = await Promise.all(promises);
|
||||
}
|
||||
assets.forEach(function(asset) {
|
||||
hmrApply(module.bundle.root, asset);
|
||||
});
|
||||
} finally{
|
||||
delete global.parcelHotUpdate;
|
||||
if (scriptsToRemove) scriptsToRemove.forEach((script)=>{
|
||||
if (script) {
|
||||
var _document$head2;
|
||||
(_document$head2 = document.head) === null || _document$head2 === void 0 || _document$head2.removeChild(script);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
function hmrApply(bundle, asset) {
|
||||
var modules = bundle.modules;
|
||||
if (!modules) return;
|
||||
if (asset.type === "css") reloadCSS();
|
||||
else if (asset.type === "js") {
|
||||
let deps = asset.depsByBundle[bundle.HMR_BUNDLE_ID];
|
||||
if (deps) {
|
||||
if (modules[asset.id]) {
|
||||
// Remove dependencies that are removed and will become orphaned.
|
||||
// This is necessary so that if the asset is added back again, the cache is gone, and we prevent a full page reload.
|
||||
let oldDeps = modules[asset.id][1];
|
||||
for(let dep in oldDeps)if (!deps[dep] || deps[dep] !== oldDeps[dep]) {
|
||||
let id = oldDeps[dep];
|
||||
let parents = getParents(module.bundle.root, id);
|
||||
if (parents.length === 1) hmrDelete(module.bundle.root, id);
|
||||
}
|
||||
}
|
||||
if (supportsSourceURL) // Global eval. We would use `new Function` here but browser
|
||||
// support for source maps is better with eval.
|
||||
(0, eval)(asset.output);
|
||||
// $FlowFixMe
|
||||
let fn = global.parcelHotUpdate[asset.id];
|
||||
modules[asset.id] = [
|
||||
fn,
|
||||
deps
|
||||
];
|
||||
} else if (bundle.parent) hmrApply(bundle.parent, asset);
|
||||
}
|
||||
}
|
||||
function hmrDelete(bundle, id) {
|
||||
let modules = bundle.modules;
|
||||
if (!modules) return;
|
||||
if (modules[id]) {
|
||||
// Collect dependencies that will become orphaned when this module is deleted.
|
||||
let deps = modules[id][1];
|
||||
let orphans = [];
|
||||
for(let dep in deps){
|
||||
let parents = getParents(module.bundle.root, deps[dep]);
|
||||
if (parents.length === 1) orphans.push(deps[dep]);
|
||||
} // Delete the module. This must be done before deleting dependencies in case of circular dependencies.
|
||||
delete modules[id];
|
||||
delete bundle.cache[id]; // Now delete the orphans.
|
||||
orphans.forEach((id)=>{
|
||||
hmrDelete(module.bundle.root, id);
|
||||
});
|
||||
} else if (bundle.parent) hmrDelete(bundle.parent, id);
|
||||
}
|
||||
function hmrAcceptCheck(bundle, id, depsByBundle) {
|
||||
if (hmrAcceptCheckOne(bundle, id, depsByBundle)) return true;
|
||||
// Traverse parents breadth first. All possible ancestries must accept the HMR update, or we'll reload.
|
||||
let parents = getParents(module.bundle.root, id);
|
||||
let accepted = false;
|
||||
while(parents.length > 0){
|
||||
let v = parents.shift();
|
||||
let a = hmrAcceptCheckOne(v[0], v[1], null);
|
||||
if (a) // If this parent accepts, stop traversing upward, but still consider siblings.
|
||||
accepted = true;
|
||||
else {
|
||||
// Otherwise, queue the parents in the next level upward.
|
||||
let p = getParents(module.bundle.root, v[1]);
|
||||
if (p.length === 0) {
|
||||
// If there are no parents, then we've reached an entry without accepting. Reload.
|
||||
accepted = false;
|
||||
break;
|
||||
}
|
||||
parents.push(...p);
|
||||
}
|
||||
}
|
||||
return accepted;
|
||||
}
|
||||
function hmrAcceptCheckOne(bundle, id, depsByBundle) {
|
||||
var modules = bundle.modules;
|
||||
if (!modules) return;
|
||||
if (depsByBundle && !depsByBundle[bundle.HMR_BUNDLE_ID]) {
|
||||
// If we reached the root bundle without finding where the asset should go,
|
||||
// there's nothing to do. Mark as "accepted" so we don't reload the page.
|
||||
if (!bundle.parent) return true;
|
||||
return hmrAcceptCheck(bundle.parent, id, depsByBundle);
|
||||
}
|
||||
if (checkedAssets[id]) return true;
|
||||
checkedAssets[id] = true;
|
||||
var cached = bundle.cache[id];
|
||||
assetsToAccept.push([
|
||||
bundle,
|
||||
id
|
||||
]);
|
||||
if (!cached || cached.hot && cached.hot._acceptCallbacks.length) return true;
|
||||
}
|
||||
function hmrAcceptRun(bundle, id) {
|
||||
var cached = bundle.cache[id];
|
||||
bundle.hotData = {};
|
||||
if (cached && cached.hot) cached.hot.data = bundle.hotData;
|
||||
if (cached && cached.hot && cached.hot._disposeCallbacks.length) cached.hot._disposeCallbacks.forEach(function(cb) {
|
||||
cb(bundle.hotData);
|
||||
});
|
||||
delete bundle.cache[id];
|
||||
bundle(id);
|
||||
cached = bundle.cache[id];
|
||||
if (cached && cached.hot && cached.hot._acceptCallbacks.length) cached.hot._acceptCallbacks.forEach(function(cb) {
|
||||
var assetsToAlsoAccept = cb(function() {
|
||||
return getParents(module.bundle.root, id);
|
||||
});
|
||||
if (assetsToAlsoAccept && assetsToAccept.length) // $FlowFixMe[method-unbinding]
|
||||
assetsToAccept.push.apply(assetsToAccept, assetsToAlsoAccept);
|
||||
});
|
||||
acceptedAssets[id] = true;
|
||||
}
|
||||
|
||||
},{}],"g2ukU":[function(require,module,exports) {
|
||||
|
||||
},{}]},["f1W1f","g2ukU"], "g2ukU", "parcelRequire7e89")
|
||||
|
||||
//# sourceMappingURL=pages.265db5a8.js.map
|
1
dist/pages.265db5a8.js.map
vendored
Normal file
1
dist/pages.265db5a8.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
3
dist/question-mark.3700797e.svg
vendored
Normal file
3
dist/question-mark.3700797e.svg
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-3a1 1 0 00-.867.5 1 1 0 11-1.731-1A3 3 0 0113 8a3.001 3.001 0 01-2 2.83V11a1 1 0 11-2 0v-1a1 1 0 011-1 1 1 0 100-2zm0 8a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path>
|
||||
</svg>
|
After Width: | Height: | Size: 330 B |
3
dist/wallet.26c45bbb.svg
vendored
Normal file
3
dist/wallet.26c45bbb.svg
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
<svg width="39" height="31" viewBox="0 0 39 31" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.41166 0.5C3.31373 0.5 0.802368 3.0184 0.802368 6.125V24.875C0.802368 27.9816 3.31373 30.5 6.41166 30.5H32.5883C35.6863 30.5 38.1976 27.9816 38.1976 24.875V6.125C38.1976 3.01965 35.6883 0.502032 32.5921 0.500001C32.5908 0.5 32.5896 0.5 32.5883 0.5H6.41166ZM32.5883 4.25H6.41166C5.37901 4.25 4.54189 5.08947 4.54189 6.125C4.54189 7.16053 5.37902 8 6.41166 8H32.5883C33.2998 8 33.9191 8.14225 34.4581 8.39022V6.125C34.4581 5.08947 33.621 4.25 32.5883 4.25ZM34.4581 13.5983C34.1838 12.5953 33.6312 11.75 32.5883 11.75H6.41166C5.75605 11.75 5.12672 11.6372 4.54189 11.4299V24.875C4.54189 25.9105 5.37902 26.75 6.41166 26.75H32.5883C33.621 26.75 34.4581 25.9105 34.4581 24.875V13.5983Z" fill="white"></path>
|
||||
</svg>
|
After Width: | Height: | Size: 857 B |
Reference in a new issue