animate.min.d8545e5f.js 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  1. // modules are defined as an array
  2. // [ module function, map of requires ]
  3. //
  4. // map of requires is short require name -> numeric require
  5. //
  6. // anything defined in a previous bundle is accessed via the
  7. // orig method which is the require for previous bundles
  8. // eslint-disable-next-line no-global-assign
  9. parcelRequire = (function (modules, cache, entry, globalName) {
  10. // Save the require from previous bundle to this closure if any
  11. var previousRequire = typeof parcelRequire === 'function' && parcelRequire;
  12. var nodeRequire = typeof require === 'function' && require;
  13. function newRequire(name, jumped) {
  14. if (!cache[name]) {
  15. if (!modules[name]) {
  16. // if we cannot find the module within our internal map or
  17. // cache jump to the current global require ie. the last bundle
  18. // that was added to the page.
  19. var currentRequire = typeof parcelRequire === 'function' && parcelRequire;
  20. if (!jumped && currentRequire) {
  21. return currentRequire(name, true);
  22. }
  23. // If there are other bundles on this page the require from the
  24. // previous one is saved to 'previousRequire'. Repeat this as
  25. // many times as there are bundles until the module is found or
  26. // we exhaust the require chain.
  27. if (previousRequire) {
  28. return previousRequire(name, true);
  29. }
  30. // Try the node require function if it exists.
  31. if (nodeRequire && typeof name === 'string') {
  32. return nodeRequire(name);
  33. }
  34. var err = new Error('Cannot find module \'' + name + '\'');
  35. err.code = 'MODULE_NOT_FOUND';
  36. throw err;
  37. }
  38. localRequire.resolve = resolve;
  39. var module = cache[name] = new newRequire.Module(name);
  40. modules[name][0].call(module.exports, localRequire, module, module.exports, this);
  41. }
  42. return cache[name].exports;
  43. function localRequire(x){
  44. return newRequire(localRequire.resolve(x));
  45. }
  46. function resolve(x){
  47. return modules[name][1][x] || x;
  48. }
  49. }
  50. function Module(moduleName) {
  51. this.id = moduleName;
  52. this.bundle = newRequire;
  53. this.exports = {};
  54. }
  55. newRequire.isParcelRequire = true;
  56. newRequire.Module = Module;
  57. newRequire.modules = modules;
  58. newRequire.cache = cache;
  59. newRequire.parent = previousRequire;
  60. for (var i = 0; i < entry.length; i++) {
  61. newRequire(entry[i]);
  62. }
  63. if (entry.length) {
  64. // Expose entry point to Node, AMD or browser globals
  65. // Based on https://github.com/ForbesLindesay/umd/blob/master/template.js
  66. var mainExports = newRequire(entry[entry.length - 1]);
  67. // CommonJS
  68. if (typeof exports === "object" && typeof module !== "undefined") {
  69. module.exports = mainExports;
  70. // RequireJS
  71. } else if (typeof define === "function" && define.amd) {
  72. define(function () {
  73. return mainExports;
  74. });
  75. // <script>
  76. } else if (globalName) {
  77. this[globalName] = mainExports;
  78. }
  79. }
  80. // Override the current require with this new one
  81. return newRequire;
  82. })({106:[function(require,module,exports) {
  83. var bundleURL = null;
  84. function getBundleURLCached() {
  85. if (!bundleURL) {
  86. bundleURL = getBundleURL();
  87. }
  88. return bundleURL;
  89. }
  90. function getBundleURL() {
  91. // Attempt to find the URL of the current script and use that as the base URL
  92. try {
  93. throw new Error();
  94. } catch (err) {
  95. var matches = ('' + err.stack).match(/(https?|file|ftp):\/\/[^)\n]+/g);
  96. if (matches) {
  97. return getBaseURL(matches[0]);
  98. }
  99. }
  100. return '/';
  101. }
  102. function getBaseURL(url) {
  103. return ('' + url).replace(/^((?:https?|file|ftp):\/\/.+)\/[^/]+$/, '$1') + '/';
  104. }
  105. exports.getBundleURL = getBundleURLCached;
  106. exports.getBaseURL = getBaseURL;
  107. },{}],46:[function(require,module,exports) {
  108. var bundle = require('./bundle-url');
  109. function updateLink(link) {
  110. var newLink = link.cloneNode();
  111. newLink.onload = function () {
  112. link.remove();
  113. };
  114. newLink.href = link.href.split('?')[0] + '?' + Date.now();
  115. link.parentNode.insertBefore(newLink, link.nextSibling);
  116. }
  117. var cssTimeout = null;
  118. function reloadCSS() {
  119. if (cssTimeout) {
  120. return;
  121. }
  122. cssTimeout = setTimeout(function () {
  123. var links = document.querySelectorAll('link[rel="stylesheet"]');
  124. for (var i = 0; i < links.length; i++) {
  125. if (bundle.getBaseURL(links[i].href) === bundle.getBundleURL()) {
  126. updateLink(links[i]);
  127. }
  128. }
  129. cssTimeout = null;
  130. }, 50);
  131. }
  132. module.exports = reloadCSS;
  133. },{"./bundle-url":106}],25:[function(require,module,exports) {
  134. var reloadCSS = require('_css_loader');
  135. module.hot.dispose(reloadCSS);
  136. module.hot.accept(reloadCSS);
  137. },{"_css_loader":46}],150:[function(require,module,exports) {
  138. var global = arguments[3];
  139. var OVERLAY_ID = '__parcel__error__overlay__';
  140. var OldModule = module.bundle.Module;
  141. function Module(moduleName) {
  142. OldModule.call(this, moduleName);
  143. this.hot = {
  144. data: module.bundle.hotData,
  145. _acceptCallbacks: [],
  146. _disposeCallbacks: [],
  147. accept: function (fn) {
  148. this._acceptCallbacks.push(fn || function () {});
  149. },
  150. dispose: function (fn) {
  151. this._disposeCallbacks.push(fn);
  152. }
  153. };
  154. module.bundle.hotData = null;
  155. }
  156. module.bundle.Module = Module;
  157. var parent = module.bundle.parent;
  158. if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
  159. var hostname = '' || location.hostname;
  160. var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
  161. var ws = new WebSocket(protocol + '://' + hostname + ':' + '52930' + '/');
  162. ws.onmessage = function (event) {
  163. var data = JSON.parse(event.data);
  164. if (data.type === 'update') {
  165. data.assets.forEach(function (asset) {
  166. hmrApply(global.parcelRequire, asset);
  167. });
  168. data.assets.forEach(function (asset) {
  169. if (!asset.isNew) {
  170. hmrAccept(global.parcelRequire, asset.id);
  171. }
  172. });
  173. // Clear the console after HMR
  174. console.clear();
  175. }
  176. if (data.type === 'reload') {
  177. ws.close();
  178. ws.onclose = function () {
  179. location.reload();
  180. };
  181. }
  182. if (data.type === 'error-resolved') {
  183. console.log('[parcel] ✨ Error resolved');
  184. removeErrorOverlay();
  185. }
  186. if (data.type === 'error') {
  187. console.error('[parcel] 🚨 ' + data.error.message + '\n' + data.error.stack);
  188. removeErrorOverlay();
  189. var overlay = createErrorOverlay(data);
  190. document.body.appendChild(overlay);
  191. }
  192. };
  193. }
  194. function removeErrorOverlay() {
  195. var overlay = document.getElementById(OVERLAY_ID);
  196. if (overlay) {
  197. overlay.remove();
  198. }
  199. }
  200. function createErrorOverlay(data) {
  201. var overlay = document.createElement('div');
  202. overlay.id = OVERLAY_ID;
  203. // html encode message and stack trace
  204. var message = document.createElement('div');
  205. var stackTrace = document.createElement('pre');
  206. message.innerText = data.error.message;
  207. stackTrace.innerText = data.error.stack;
  208. 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>';
  209. return overlay;
  210. }
  211. function getParents(bundle, id) {
  212. var modules = bundle.modules;
  213. if (!modules) {
  214. return [];
  215. }
  216. var parents = [];
  217. var k, d, dep;
  218. for (k in modules) {
  219. for (d in modules[k][1]) {
  220. dep = modules[k][1][d];
  221. if (dep === id || Array.isArray(dep) && dep[dep.length - 1] === id) {
  222. parents.push(+k);
  223. }
  224. }
  225. }
  226. if (bundle.parent) {
  227. parents = parents.concat(getParents(bundle.parent, id));
  228. }
  229. return parents;
  230. }
  231. function hmrApply(bundle, asset) {
  232. var modules = bundle.modules;
  233. if (!modules) {
  234. return;
  235. }
  236. if (modules[asset.id] || !bundle.parent) {
  237. var fn = new Function('require', 'module', 'exports', asset.generated.js);
  238. asset.isNew = !modules[asset.id];
  239. modules[asset.id] = [fn, asset.deps];
  240. } else if (bundle.parent) {
  241. hmrApply(bundle.parent, asset);
  242. }
  243. }
  244. function hmrAccept(bundle, id) {
  245. var modules = bundle.modules;
  246. if (!modules) {
  247. return;
  248. }
  249. if (!modules[id] && bundle.parent) {
  250. return hmrAccept(bundle.parent, id);
  251. }
  252. var cached = bundle.cache[id];
  253. bundle.hotData = {};
  254. if (cached) {
  255. cached.hot.data = bundle.hotData;
  256. }
  257. if (cached && cached.hot && cached.hot._disposeCallbacks.length) {
  258. cached.hot._disposeCallbacks.forEach(function (cb) {
  259. cb(bundle.hotData);
  260. });
  261. }
  262. delete bundle.cache[id];
  263. bundle(id);
  264. cached = bundle.cache[id];
  265. if (cached && cached.hot && cached.hot._acceptCallbacks.length) {
  266. cached.hot._acceptCallbacks.forEach(function (cb) {
  267. cb();
  268. });
  269. return true;
  270. }
  271. return getParents(global.parcelRequire, id).some(function (id) {
  272. return hmrAccept(global.parcelRequire, id);
  273. });
  274. }
  275. },{}]},{},[150], null)