487 lines
15 KiB
JavaScript
487 lines
15 KiB
JavaScript
// 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
|
|
|
|
// eslint-disable-next-line no-global-assign
|
|
parcelRequire = (function (modules, cache, entry, globalName) {
|
|
// Save the require from previous bundle to this closure if any
|
|
var previousRequire = typeof parcelRequire === 'function' && parcelRequire;
|
|
var nodeRequire = typeof require === 'function' && require;
|
|
|
|
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 parcelRequire === 'function' && parcelRequire;
|
|
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;
|
|
|
|
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){
|
|
return newRequire(localRequire.resolve(x));
|
|
}
|
|
|
|
function resolve(x){
|
|
return modules[name][1][x] || 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;
|
|
|
|
for (var i = 0; i < entry.length; i++) {
|
|
newRequire(entry[i]);
|
|
}
|
|
|
|
if (entry.length) {
|
|
// Expose entry point to Node, AMD or browser globals
|
|
// Based on https://github.com/ForbesLindesay/umd/blob/master/template.js
|
|
var mainExports = newRequire(entry[entry.length - 1]);
|
|
|
|
// 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;
|
|
}
|
|
}
|
|
|
|
// Override the current require with this new one
|
|
return newRequire;
|
|
})({71:[function(require,module,exports) {
|
|
var bundleURL = null;
|
|
function getBundleURLCached() {
|
|
if (!bundleURL) {
|
|
bundleURL = getBundleURL();
|
|
}
|
|
|
|
return bundleURL;
|
|
}
|
|
|
|
function getBundleURL() {
|
|
// Attempt to find the URL of the current script and use that as the base URL
|
|
try {
|
|
throw new Error();
|
|
} catch (err) {
|
|
var matches = ('' + err.stack).match(/(https?|file|ftp):\/\/[^)\n]+/g);
|
|
if (matches) {
|
|
return getBaseURL(matches[0]);
|
|
}
|
|
}
|
|
|
|
return '/';
|
|
}
|
|
|
|
function getBaseURL(url) {
|
|
return ('' + url).replace(/^((?:https?|file|ftp):\/\/.+)\/[^/]+$/, '$1') + '/';
|
|
}
|
|
|
|
exports.getBundleURL = getBundleURLCached;
|
|
exports.getBaseURL = getBaseURL;
|
|
},{}],49:[function(require,module,exports) {
|
|
var bundle = require('./bundle-url');
|
|
|
|
function updateLink(link) {
|
|
var newLink = link.cloneNode();
|
|
newLink.onload = function () {
|
|
link.remove();
|
|
};
|
|
newLink.href = link.href.split('?')[0] + '?' + Date.now();
|
|
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++) {
|
|
if (bundle.getBaseURL(links[i].href) === bundle.getBundleURL()) {
|
|
updateLink(links[i]);
|
|
}
|
|
}
|
|
|
|
cssTimeout = null;
|
|
}, 50);
|
|
}
|
|
|
|
module.exports = reloadCSS;
|
|
},{"./bundle-url":71}],36:[function(require,module,exports) {
|
|
|
|
var reloadCSS = require('_css_loader');
|
|
module.hot.dispose(reloadCSS);
|
|
module.hot.accept(reloadCSS);
|
|
|
|
},{"_css_loader":49}],37:[function(require,module,exports) {
|
|
|
|
var reloadCSS = require('_css_loader');
|
|
module.hot.dispose(reloadCSS);
|
|
module.hot.accept(reloadCSS);
|
|
|
|
},{"_css_loader":49}],38:[function(require,module,exports) {
|
|
|
|
var reloadCSS = require('_css_loader');
|
|
module.hot.dispose(reloadCSS);
|
|
module.hot.accept(reloadCSS);
|
|
|
|
},{"./../fonts/ionicons.eot":56,"./../fonts/ionicons.woff":57,"./../fonts/ionicons.ttf":58,"./../fonts/ionicons.svg":59,"./../fonts/Lato-Light.eot":60,"./../fonts/Lato-Light.woff2":61,"./../fonts/Lato-Light.woff":62,"./../fonts/Lato-Light.ttf":63,"./../fonts/Lato-LightItalic.eot":64,"./../fonts/Lato-LightItalic.woff2":65,"./../fonts/Lato-LightItalic.woff":66,"./../fonts/Lato-LightItalic.ttf":67,"_css_loader":49}],39:[function(require,module,exports) {
|
|
|
|
var reloadCSS = require('_css_loader');
|
|
module.hot.dispose(reloadCSS);
|
|
module.hot.accept(reloadCSS);
|
|
|
|
},{"_css_loader":49}],40:[function(require,module,exports) {
|
|
|
|
var reloadCSS = require('_css_loader');
|
|
module.hot.dispose(reloadCSS);
|
|
module.hot.accept(reloadCSS);
|
|
|
|
},{"./../fonts/ionicons.eot":56,"./../fonts/ionicons.woff":57,"./../fonts/ionicons.ttf":58,"./../fonts/ionicons.svg":59,"_css_loader":49}],41:[function(require,module,exports) {
|
|
|
|
var reloadCSS = require('_css_loader');
|
|
module.hot.dispose(reloadCSS);
|
|
module.hot.accept(reloadCSS);
|
|
|
|
},{"./../fonts/Lato-Light.eot":60,"./../fonts/Lato-Light.woff2":61,"./../fonts/Lato-Light.woff":62,"./../fonts/Lato-Light.ttf":63,"./../fonts/Lato-LightItalic.eot":64,"./../fonts/Lato-LightItalic.woff2":65,"./../fonts/Lato-LightItalic.woff":66,"./../fonts/Lato-LightItalic.ttf":67,"_css_loader":49}],42:[function(require,module,exports) {
|
|
|
|
var reloadCSS = require('_css_loader');
|
|
module.hot.dispose(reloadCSS);
|
|
module.hot.accept(reloadCSS);
|
|
|
|
},{"_css_loader":49}],43:[function(require,module,exports) {
|
|
|
|
var reloadCSS = require('_css_loader');
|
|
module.hot.dispose(reloadCSS);
|
|
module.hot.accept(reloadCSS);
|
|
|
|
},{"_css_loader":49}],44:[function(require,module,exports) {
|
|
|
|
var reloadCSS = require('_css_loader');
|
|
module.hot.dispose(reloadCSS);
|
|
module.hot.accept(reloadCSS);
|
|
|
|
},{"_css_loader":49}],45:[function(require,module,exports) {
|
|
|
|
var reloadCSS = require('_css_loader');
|
|
module.hot.dispose(reloadCSS);
|
|
module.hot.accept(reloadCSS);
|
|
|
|
},{"../../vendors/css/combined.css":38,"./img/GcP71BP-min.png":68,"./img/testimonials_bg.jpg":69,"_css_loader":49}],46:[function(require,module,exports) {
|
|
|
|
var reloadCSS = require('_css_loader');
|
|
module.hot.dispose(reloadCSS);
|
|
module.hot.accept(reloadCSS);
|
|
|
|
},{"_css_loader":49}],20:[function(require,module,exports) {
|
|
|
|
var reloadCSS = require('_css_loader');
|
|
module.hot.dispose(reloadCSS);
|
|
module.hot.accept(reloadCSS);
|
|
|
|
},{"./vendors/css/animate.css":36,"./vendors/css/codemirror.css":37,"./vendors/css/combined.css":38,"./vendors/css/grid.css":39,"./vendors/css/ionicons.css":40,"./vendors/css/latofonts.css":41,"./vendors/css/magnific-popup.css":42,"./vendors/css/normalize.css":43,"./vendors/css/shadowfox.css":44,"./resources/css/style":45,"./resources/css/queries":46,"_css_loader":49}],112:[function(require,module,exports) {
|
|
var global = arguments[3];
|
|
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 = null;
|
|
}
|
|
|
|
module.bundle.Module = Module;
|
|
|
|
var parent = module.bundle.parent;
|
|
if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
|
|
var hostname = '' || location.hostname;
|
|
var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
|
|
var ws = new WebSocket(protocol + '://' + hostname + ':' + '54296' + '/');
|
|
ws.onmessage = function (event) {
|
|
var data = JSON.parse(event.data);
|
|
|
|
if (data.type === 'update') {
|
|
data.assets.forEach(function (asset) {
|
|
hmrApply(global.parcelRequire, asset);
|
|
});
|
|
|
|
data.assets.forEach(function (asset) {
|
|
if (!asset.isNew) {
|
|
hmrAccept(global.parcelRequire, asset.id);
|
|
}
|
|
});
|
|
// Clear the console after HMR
|
|
console.clear();
|
|
}
|
|
|
|
if (data.type === 'reload') {
|
|
ws.close();
|
|
ws.onclose = function () {
|
|
location.reload();
|
|
};
|
|
}
|
|
|
|
if (data.type === 'error-resolved') {
|
|
console.log('[parcel] ✨ Error resolved');
|
|
|
|
removeErrorOverlay();
|
|
}
|
|
|
|
if (data.type === 'error') {
|
|
console.error('[parcel] 🚨 ' + data.error.message + '\n' + data.error.stack);
|
|
|
|
removeErrorOverlay();
|
|
|
|
var overlay = createErrorOverlay(data);
|
|
document.body.appendChild(overlay);
|
|
}
|
|
};
|
|
}
|
|
|
|
function removeErrorOverlay() {
|
|
var overlay = document.getElementById(OVERLAY_ID);
|
|
if (overlay) {
|
|
overlay.remove();
|
|
}
|
|
}
|
|
|
|
function createErrorOverlay(data) {
|
|
var overlay = document.createElement('div');
|
|
overlay.id = OVERLAY_ID;
|
|
|
|
// html encode message and stack trace
|
|
var message = document.createElement('div');
|
|
var stackTrace = document.createElement('pre');
|
|
message.innerText = data.error.message;
|
|
stackTrace.innerText = data.error.stack;
|
|
|
|
overlay.innerHTML = '<div style="background: black; font-size: 16px; color: white; position: fixed; height: 100%; width: 100%; top: 0px; left: 0px; padding: 30px; opacity: 0.85; font-family: Menlo, Consolas, monospace; z-index: 9999;">' + '<span style="background: red; padding: 2px 4px; border-radius: 2px;">ERROR</span>' + '<span style="top: 2px; margin-left: 5px; position: relative;">🚨</span>' + '<div style="font-size: 18px; font-weight: bold; margin-top: 20px;">' + message.innerHTML + '</div>' + '<pre>' + stackTrace.innerHTML + '</pre>' + '</div>';
|
|
|
|
return overlay;
|
|
}
|
|
|
|
function getParents(bundle, id) {
|
|
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(+k);
|
|
}
|
|
}
|
|
}
|
|
|
|
if (bundle.parent) {
|
|
parents = parents.concat(getParents(bundle.parent, id));
|
|
}
|
|
|
|
return parents;
|
|
}
|
|
|
|
function hmrApply(bundle, asset) {
|
|
var modules = bundle.modules;
|
|
if (!modules) {
|
|
return;
|
|
}
|
|
|
|
if (modules[asset.id] || !bundle.parent) {
|
|
var fn = new Function('require', 'module', 'exports', asset.generated.js);
|
|
asset.isNew = !modules[asset.id];
|
|
modules[asset.id] = [fn, asset.deps];
|
|
} else if (bundle.parent) {
|
|
hmrApply(bundle.parent, asset);
|
|
}
|
|
}
|
|
|
|
function hmrAccept(bundle, id) {
|
|
var modules = bundle.modules;
|
|
if (!modules) {
|
|
return;
|
|
}
|
|
|
|
if (!modules[id] && bundle.parent) {
|
|
return hmrAccept(bundle.parent, id);
|
|
}
|
|
|
|
var cached = bundle.cache[id];
|
|
bundle.hotData = {};
|
|
if (cached) {
|
|
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) {
|
|
cb();
|
|
});
|
|
return true;
|
|
}
|
|
|
|
return getParents(global.parcelRequire, id).some(function (id) {
|
|
return hmrAccept(global.parcelRequire, id);
|
|
});
|
|
}
|
|
},{}],113:[function(require,module,exports) {
|
|
var getBundleURL = require('./bundle-url').getBundleURL;
|
|
|
|
function loadBundlesLazy(bundles) {
|
|
if (!Array.isArray(bundles)) {
|
|
bundles = [bundles];
|
|
}
|
|
|
|
var id = bundles[bundles.length - 1];
|
|
|
|
try {
|
|
return Promise.resolve(require(id));
|
|
} catch (err) {
|
|
if (err.code === 'MODULE_NOT_FOUND') {
|
|
return new LazyPromise(function (resolve, reject) {
|
|
loadBundles(bundles).then(resolve, reject);
|
|
});
|
|
}
|
|
|
|
throw err;
|
|
}
|
|
}
|
|
|
|
function loadBundles(bundles) {
|
|
var id = bundles[bundles.length - 1];
|
|
|
|
return Promise.all(bundles.slice(0, -1).map(loadBundle)).then(function () {
|
|
return require(id);
|
|
});
|
|
}
|
|
|
|
var bundleLoaders = {};
|
|
function registerBundleLoader(type, loader) {
|
|
bundleLoaders[type] = loader;
|
|
}
|
|
|
|
module.exports = exports = loadBundlesLazy;
|
|
exports.load = loadBundles;
|
|
exports.register = registerBundleLoader;
|
|
|
|
var bundles = {};
|
|
function loadBundle(bundle) {
|
|
var id;
|
|
if (Array.isArray(bundle)) {
|
|
id = bundle[1];
|
|
bundle = bundle[0];
|
|
}
|
|
|
|
if (bundles[bundle]) {
|
|
return bundles[bundle];
|
|
}
|
|
|
|
var type = (bundle.substring(bundle.lastIndexOf('.') + 1, bundle.length) || bundle).toLowerCase();
|
|
var bundleLoader = bundleLoaders[type];
|
|
if (bundleLoader) {
|
|
return bundles[bundle] = bundleLoader(getBundleURL() + bundle).then(function (resolved) {
|
|
if (resolved) {
|
|
module.bundle.modules[id] = [function (require, module) {
|
|
module.exports = resolved;
|
|
}, {}];
|
|
}
|
|
|
|
return resolved;
|
|
});
|
|
}
|
|
}
|
|
|
|
function LazyPromise(executor) {
|
|
this.executor = executor;
|
|
this.promise = null;
|
|
}
|
|
|
|
LazyPromise.prototype.then = function (onSuccess, onError) {
|
|
if (this.promise === null) this.promise = new Promise(this.executor);
|
|
return this.promise.then(onSuccess, onError);
|
|
};
|
|
|
|
LazyPromise.prototype.catch = function (onError) {
|
|
if (this.promise === null) this.promise = new Promise(this.executor);
|
|
return this.promise.catch(onError);
|
|
};
|
|
},{"./bundle-url":71}],0:[function(require,module,exports) {
|
|
var b=require(113);b.load([["ionicons.7ea6beda.eot",56],["ionicons.e9599233.woff",57],["ionicons.8e595e5d.ttf",58],["ionicons.5c32eb05.svg",59],["Lato-Light.3acc152e.eot",60],["Lato-Light.0cf75d24.woff2",61],["Lato-Light.c00f9bd1.woff",62],["Lato-Light.14471854.ttf",63],["Lato-LightItalic.cace5c53.eot",64],["Lato-LightItalic.b3fd8a03.woff2",65],["Lato-LightItalic.e57e9f3b.woff",66],["Lato-LightItalic.f94aeb72.ttf",67],["GcP71BP-min.21c94d22.png",68],["testimonials_bg.24ccf0e1.jpg",69]]);
|
|
},{}]},{},[112,0], null) |