Guest User

Untitled

a guest
Apr 26th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /******/ (function(modules) { // webpackBootstrap
  2. /******/    // The module cache
  3. /******/    var installedModules = {};
  4. /******/
  5. /******/    // The require function
  6. /******/    function __webpack_require__(moduleId) {
  7. /******/
  8. /******/        // Check if module is in cache
  9. /******/        if(installedModules[moduleId]) {
  10. /******/            return installedModules[moduleId].exports;
  11. /******/        }
  12. /******/        // Create a new module (and put it into the cache)
  13. /******/        var module = installedModules[moduleId] = {
  14. /******/            i: moduleId,
  15. /******/            l: false,
  16. /******/            exports: {}
  17. /******/        };
  18. /******/
  19. /******/        // Execute the module function
  20. /******/        modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  21. /******/
  22. /******/        // Flag the module as loaded
  23. /******/        module.l = true;
  24. /******/
  25. /******/        // Return the exports of the module
  26. /******/        return module.exports;
  27. /******/    }
  28. /******/
  29. /******/
  30. /******/    // expose the modules object (__webpack_modules__)
  31. /******/    __webpack_require__.m = modules;
  32. /******/
  33. /******/    // expose the module cache
  34. /******/    __webpack_require__.c = installedModules;
  35. /******/
  36. /******/    // define getter function for harmony exports
  37. /******/    __webpack_require__.d = function(exports, name, getter) {
  38. /******/        if(!__webpack_require__.o(exports, name)) {
  39. /******/            Object.defineProperty(exports, name, { enumerable: true, get: getter });
  40. /******/        }
  41. /******/    };
  42. /******/
  43. /******/    // define __esModule on exports
  44. /******/    __webpack_require__.r = function(exports) {
  45. /******/        if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  46. /******/            Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  47. /******/        }
  48. /******/        Object.defineProperty(exports, '__esModule', { value: true });
  49. /******/    };
  50. /******/
  51. /******/    // create a fake namespace object
  52. /******/    // mode & 1: value is a module id, require it
  53. /******/    // mode & 2: merge all properties of value into the ns
  54. /******/    // mode & 4: return value when already ns object
  55. /******/    // mode & 8|1: behave like require
  56. /******/    __webpack_require__.t = function(value, mode) {
  57. /******/        if(mode & 1) value = __webpack_require__(value);
  58. /******/        if(mode & 8) return value;
  59. /******/        if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  60. /******/        var ns = Object.create(null);
  61. /******/        __webpack_require__.r(ns);
  62. /******/        Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  63. /******/        if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  64. /******/        return ns;
  65. /******/    };
  66. /******/
  67. /******/    // getDefaultExport function for compatibility with non-harmony modules
  68. /******/    __webpack_require__.n = function(module) {
  69. /******/        var getter = module && module.__esModule ?
  70. /******/            function getDefault() { return module['default']; } :
  71. /******/            function getModuleExports() { return module; };
  72. /******/        __webpack_require__.d(getter, 'a', getter);
  73. /******/        return getter;
  74. /******/    };
  75. /******/
  76. /******/    // Object.prototype.hasOwnProperty.call
  77. /******/    __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  78. /******/
  79. /******/    // __webpack_public_path__
  80. /******/    __webpack_require__.p = "";
  81. /******/
  82. /******/
  83. /******/    // Load entry module and return exports
  84. /******/    return __webpack_require__(__webpack_require__.s = 0);
  85. /******/ })
  86. /************************************************************************/
  87. /******/ ([
  88. /* 0 */
  89. /***/ (function(module, exports, __webpack_require__) {
  90.  
  91. module.exports = __webpack_require__(2);
  92.  
  93.  
  94. /***/ }),
  95. /* 1 */
  96. /***/ (function(module, exports, __webpack_require__) {
  97.  
  98. // extracted by mini-css-extract-plugin
  99.  
  100. /***/ }),
  101. /* 2 */
  102. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  103.  
  104. "use strict";
  105. __webpack_require__.r(__webpack_exports__);
  106.  
  107. // CONCATENATED MODULE: ./node_modules/svelte/internal.mjs
  108. function noop() {}
  109.  
  110. const identity = x => x;
  111.  
  112. function internal_assign(tar, src) {
  113.     for (const k in src) tar[k] = src[k];
  114.     return tar;
  115. }
  116.  
  117. function is_promise(value) {
  118.     return value && typeof value.then === 'function';
  119. }
  120.  
  121. function add_location(element, file, line, column, char) {
  122.     element.__svelte_meta = {
  123.         loc: { file, line, column, char }
  124.     };
  125. }
  126.  
  127. function run(fn) {
  128.     return fn();
  129. }
  130.  
  131. function blank_object() {
  132.     return Object.create(null);
  133. }
  134.  
  135. function run_all(fns) {
  136.     fns.forEach(run);
  137. }
  138.  
  139. function is_function(thing) {
  140.     return typeof thing === 'function';
  141. }
  142.  
  143. function safe_not_equal(a, b) {
  144.     return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');
  145. }
  146.  
  147. function not_equal(a, b) {
  148.     return a != a ? b == b : a !== b;
  149. }
  150.  
  151. function validate_store(store, name) {
  152.     if (!store || typeof store.subscribe !== 'function') {
  153.         throw new Error(`'${name}' is not a store with a 'subscribe' method`);
  154.     }
  155. }
  156.  
  157. function subscribe(component, store, callback) {
  158.     component.$$.on_destroy.push(store.subscribe(callback));
  159. }
  160.  
  161. function create_slot(definition, ctx, fn) {
  162.     if (definition) {
  163.         const slot_ctx = get_slot_context(definition, ctx, fn);
  164.         return definition[0](slot_ctx);
  165.     }
  166. }
  167.  
  168. function get_slot_context(definition, ctx, fn) {
  169.     return definition[1]
  170.         ? internal_assign({}, internal_assign(ctx.$$scope.ctx, definition[1](fn ? fn(ctx) : {})))
  171.         : ctx.$$scope.ctx;
  172. }
  173.  
  174. function get_slot_changes(definition, ctx, changed, fn) {
  175.     return definition[1]
  176.         ? internal_assign({}, internal_assign(ctx.$$scope.changed || {}, definition[1](fn ? fn(changed) : {})))
  177.         : ctx.$$scope.changed || {};
  178. }
  179.  
  180. function exclude_internal_props(props) {
  181.     const result = {};
  182.     for (const k in props) if (k[0] !== '$') result[k] = props[k];
  183.     return result;
  184. }
  185.  
  186. const tasks = new Set();
  187. let running = false;
  188.  
  189. function run_tasks() {
  190.     tasks.forEach(task => {
  191.         if (!task[0](window.performance.now())) {
  192.             tasks.delete(task);
  193.             task[1]();
  194.         }
  195.     });
  196.  
  197.     running = tasks.size > 0;
  198.     if (running) requestAnimationFrame(run_tasks);
  199. }
  200.  
  201. function clear_loops() {
  202.     // for testing...
  203.     tasks.forEach(task => tasks.delete(task));
  204.     running = false;
  205. }
  206.  
  207. function loop(fn) {
  208.     let task;
  209.  
  210.     if (!running) {
  211.         running = true;
  212.         requestAnimationFrame(run_tasks);
  213.     }
  214.  
  215.     return {
  216.         promise: new Promise(fulfil => {
  217.             tasks.add(task = [fn, fulfil]);
  218.         }),
  219.         abort() {
  220.             tasks.delete(task);
  221.         }
  222.     };
  223. }
  224.  
  225. function append(target, node) {
  226.     target.appendChild(node);
  227. }
  228.  
  229. function insert(target, node, anchor) {
  230.     target.insertBefore(node, anchor);
  231. }
  232.  
  233. function detach(node) {
  234.     node.parentNode.removeChild(node);
  235. }
  236.  
  237. function detach_between(before, after) {
  238.     while (before.nextSibling && before.nextSibling !== after) {
  239.         before.parentNode.removeChild(before.nextSibling);
  240.     }
  241. }
  242.  
  243. function detach_before(after) {
  244.     while (after.previousSibling) {
  245.         after.parentNode.removeChild(after.previousSibling);
  246.     }
  247. }
  248.  
  249. function detach_after(before) {
  250.     while (before.nextSibling) {
  251.         before.parentNode.removeChild(before.nextSibling);
  252.     }
  253. }
  254.  
  255. function destroy_each(iterations, detaching) {
  256.     for (let i = 0; i < iterations.length; i += 1) {
  257.         if (iterations[i]) iterations[i].d(detaching);
  258.     }
  259. }
  260.  
  261. function internal_element(name) {
  262.     return document.createElement(name);
  263. }
  264.  
  265. function svg_element(name) {
  266.     return document.createElementNS('http://www.w3.org/2000/svg', name);
  267. }
  268.  
  269. function internal_text(data) {
  270.     return document.createTextNode(data);
  271. }
  272.  
  273. function space() {
  274.     return internal_text(' ');
  275. }
  276.  
  277. function empty() {
  278.     return internal_text('');
  279. }
  280.  
  281. function listen(node, event, handler, options) {
  282.     node.addEventListener(event, handler, options);
  283.     return () => node.removeEventListener(event, handler, options);
  284. }
  285.  
  286. function prevent_default(fn) {
  287.     return function(event) {
  288.         event.preventDefault();
  289.         return fn.call(this, event);
  290.     };
  291. }
  292.  
  293. function stop_propagation(fn) {
  294.     return function(event) {
  295.         event.stopPropagation();
  296.         return fn.call(this, event);
  297.     };
  298. }
  299.  
  300. function attr(node, attribute, value) {
  301.     if (value == null) node.removeAttribute(attribute);
  302.     else node.setAttribute(attribute, value);
  303. }
  304.  
  305. function set_attributes(node, attributes) {
  306.     for (const key in attributes) {
  307.         if (key === 'style') {
  308.             node.style.cssText = attributes[key];
  309.         } else if (key in node) {
  310.             node[key] = attributes[key];
  311.         } else {
  312.             attr(node, key, attributes[key]);
  313.         }
  314.     }
  315. }
  316.  
  317. function set_custom_element_data(node, prop, value) {
  318.     if (prop in node) {
  319.         node[prop] = value;
  320.     } else {
  321.         attr(node, prop, value);
  322.     }
  323. }
  324.  
  325. function xlink_attr(node, attribute, value) {
  326.     node.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);
  327. }
  328.  
  329. function get_binding_group_value(group) {
  330.     const value = [];
  331.     for (let i = 0; i < group.length; i += 1) {
  332.         if (group[i].checked) value.push(group[i].__value);
  333.     }
  334.     return value;
  335. }
  336.  
  337. function to_number(value) {
  338.     return value === '' ? undefined : +value;
  339. }
  340.  
  341. function time_ranges_to_array(ranges) {
  342.     const array = [];
  343.     for (let i = 0; i < ranges.length; i += 1) {
  344.         array.push({ start: ranges.start(i), end: ranges.end(i) });
  345.     }
  346.     return array;
  347. }
  348.  
  349. function children(element) {
  350.     return Array.from(element.childNodes);
  351. }
  352.  
  353. function claim_element(nodes, name, attributes, svg) {
  354.     for (let i = 0; i < nodes.length; i += 1) {
  355.         const node = nodes[i];
  356.         if (node.nodeName === name) {
  357.             for (let j = 0; j < node.attributes.length; j += 1) {
  358.                 const attribute = node.attributes[j];
  359.                 if (!attributes[attribute.name]) node.removeAttribute(attribute.name);
  360.             }
  361.             return nodes.splice(i, 1)[0]; // TODO strip unwanted attributes
  362.         }
  363.     }
  364.  
  365.     return svg ? svg_element(name) : internal_element(name);
  366. }
  367.  
  368. function claim_text(nodes, data) {
  369.     for (let i = 0; i < nodes.length; i += 1) {
  370.         const node = nodes[i];
  371.         if (node.nodeType === 3) {
  372.             node.data = data;
  373.             return nodes.splice(i, 1)[0];
  374.         }
  375.     }
  376.  
  377.     return internal_text(data);
  378. }
  379.  
  380. function set_data(text, data) {
  381.     data = '' + data;
  382.     if (text.data !== data) text.data = data;
  383. }
  384.  
  385. function set_input_type(input, type) {
  386.     try {
  387.         input.type = type;
  388.     } catch (e) {
  389.         // do nothing
  390.     }
  391. }
  392.  
  393. function set_style(node, key, value) {
  394.     node.style.setProperty(key, value);
  395. }
  396.  
  397. function select_option(select, value) {
  398.     for (let i = 0; i < select.options.length; i += 1) {
  399.         const option = select.options[i];
  400.  
  401.         if (option.__value === value) {
  402.             option.selected = true;
  403.             return;
  404.         }
  405.     }
  406. }
  407.  
  408. function select_options(select, value) {
  409.     for (let i = 0; i < select.options.length; i += 1) {
  410.         const option = select.options[i];
  411.         option.selected = ~value.indexOf(option.__value);
  412.     }
  413. }
  414.  
  415. function select_value(select) {
  416.     const selected_option = select.querySelector(':checked') || select.options[0];
  417.     return selected_option && selected_option.__value;
  418. }
  419.  
  420. function select_multiple_value(select) {
  421.     return [].map.call(select.querySelectorAll(':checked'), option => option.__value);
  422. }
  423.  
  424. function add_resize_listener(element, fn) {
  425.     if (getComputedStyle(element).position === 'static') {
  426.         element.style.position = 'relative';
  427.     }
  428.  
  429.     const object = document.createElement('object');
  430.     object.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1;');
  431.     object.type = 'text/html';
  432.  
  433.     let win;
  434.  
  435.     object.onload = () => {
  436.         win = object.contentDocument.defaultView;
  437.         win.addEventListener('resize', fn);
  438.     };
  439.  
  440.     if (/Trident/.test(navigator.userAgent)) {
  441.         element.appendChild(object);
  442.         object.data = 'about:blank';
  443.     } else {
  444.         object.data = 'about:blank';
  445.         element.appendChild(object);
  446.     }
  447.  
  448.     return {
  449.         cancel: () => {
  450.             win && win.removeEventListener && win.removeEventListener('resize', fn);
  451.             element.removeChild(object);
  452.         }
  453.     };
  454. }
  455.  
  456. function toggle_class(element, name, toggle) {
  457.     element.classList[toggle ? 'add' : 'remove'](name);
  458. }
  459.  
  460. function custom_event(type, detail) {
  461.     const e = document.createEvent('CustomEvent');
  462.     e.initCustomEvent(type, false, false, detail);
  463.     return e;
  464. }
  465.  
  466. let stylesheet;
  467. let active = 0;
  468. let current_rules = {};
  469.  
  470. // https://github.com/darkskyapp/string-hash/blob/master/index.js
  471. function hash(str) {
  472.     let hash = 5381;
  473.     let i = str.length;
  474.  
  475.     while (i--) hash = ((hash << 5) - hash) ^ str.charCodeAt(i);
  476.     return hash >>> 0;
  477. }
  478.  
  479. function create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {
  480.     const step = 16.666 / duration;
  481.     let keyframes = '{\n';
  482.  
  483.     for (let p = 0; p <= 1; p += step) {
  484.         const t = a + (b - a) * ease(p);
  485.         keyframes += p * 100 + `%{${fn(t, 1 - t)}}\n`;
  486.     }
  487.  
  488.     const rule = keyframes + `100% {${fn(b, 1 - b)}}\n}`;
  489.     const name = `__svelte_${hash(rule)}_${uid}`;
  490.  
  491.     if (!current_rules[name]) {
  492.         if (!stylesheet) {
  493.             const style = internal_element('style');
  494.             document.head.appendChild(style);
  495.             stylesheet = style.sheet;
  496.         }
  497.  
  498.         current_rules[name] = true;
  499.         stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);
  500.     }
  501.  
  502.     const animation = node.style.animation || '';
  503.     node.style.animation = `${animation ? `${animation}, ` : ``}${name} ${duration}ms linear ${delay}ms 1 both`;
  504.  
  505.     active += 1;
  506.     return name;
  507. }
  508.  
  509. function delete_rule(node, name) {
  510.     node.style.animation = (node.style.animation || '')
  511.         .split(', ')
  512.         .filter(name
  513.             ? anim => anim.indexOf(name) < 0 // remove specific animation
  514.             : anim => anim.indexOf('__svelte') === -1 // remove all Svelte animations
  515.         )
  516.         .join(', ');
  517.  
  518.     if (name && !--active) clear_rules();
  519. }
  520.  
  521. function clear_rules() {
  522.     requestAnimationFrame(() => {
  523.         if (active) return;
  524.         let i = stylesheet.cssRules.length;
  525.         while (i--) stylesheet.deleteRule(i);
  526.         current_rules = {};
  527.     });
  528. }
  529.  
  530. function create_animation(node, from, fn, params) {
  531.     if (!from) return noop;
  532.  
  533.     const to = node.getBoundingClientRect();
  534.     if (from.left === to.left && from.right === to.right && from.top === to.top && from.bottom === to.bottom) return noop;
  535.  
  536.     const {
  537.         delay = 0,
  538.         duration = 300,
  539.         easing = identity,
  540.         start: start_time = window.performance.now() + delay,
  541.         end = start_time + duration,
  542.         tick = noop,
  543.         css
  544.     } = fn(node, { from, to }, params);
  545.  
  546.     let running = true;
  547.     let started = false;
  548.     let name;
  549.  
  550.     const css_text = node.style.cssText;
  551.  
  552.     function start() {
  553.         if (css) {
  554.             if (delay) node.style.cssText = css_text; // TODO create delayed animation instead?
  555.             name = create_rule(node, 0, 1, duration, 0, easing, css);
  556.         }
  557.  
  558.         started = true;
  559.     }
  560.  
  561.     function stop() {
  562.         if (css) delete_rule(node, name);
  563.         running = false;
  564.     }
  565.  
  566.     loop(now => {
  567.         if (!started && now >= start_time) {
  568.             start();
  569.         }
  570.  
  571.         if (started && now >= end) {
  572.             tick(1, 0);
  573.             stop();
  574.         }
  575.  
  576.         if (!running) {
  577.             return false;
  578.         }
  579.  
  580.         if (started) {
  581.             const p = now - start_time;
  582.             const t = 0 + 1 * easing(p / duration);
  583.             tick(t, 1 - t);
  584.         }
  585.  
  586.         return true;
  587.     });
  588.  
  589.     if (delay) {
  590.         if (css) node.style.cssText += css(0, 1);
  591.     } else {
  592.         start();
  593.     }
  594.  
  595.     tick(0, 1);
  596.  
  597.     return stop;
  598. }
  599.  
  600. function fix_position(node) {
  601.     const style = getComputedStyle(node);
  602.  
  603.     if (style.position !== 'absolute' && style.position !== 'fixed') {
  604.         const { width, height } = style;
  605.         const a = node.getBoundingClientRect();
  606.         node.style.position = 'absolute';
  607.         node.style.width = width;
  608.         node.style.height = height;
  609.         const b = node.getBoundingClientRect();
  610.  
  611.         if (a.left !== b.left || a.top !== b.top) {
  612.             const style = getComputedStyle(node);
  613.             const transform = style.transform === 'none' ? '' : style.transform;
  614.  
  615.             node.style.transform = `${transform} translate(${a.left - b.left}px, ${a.top - b.top}px)`;
  616.         }
  617.     }
  618. }
  619.  
  620. let current_component;
  621.  
  622. function set_current_component(component) {
  623.     current_component = component;
  624. }
  625.  
  626. function get_current_component() {
  627.     if (!current_component) throw new Error(`Function called outside component initialization`);
  628.     return current_component;
  629. }
  630.  
  631. function beforeUpdate(fn) {
  632.     get_current_component().$$.before_render.push(fn);
  633. }
  634.  
  635. function onMount(fn) {
  636.     get_current_component().$$.on_mount.push(fn);
  637. }
  638.  
  639. function afterUpdate(fn) {
  640.     get_current_component().$$.after_render.push(fn);
  641. }
  642.  
  643. function onDestroy(fn) {
  644.     get_current_component().$$.on_destroy.push(fn);
  645. }
  646.  
  647. function createEventDispatcher() {
  648.     const component = current_component;
  649.  
  650.     return (type, detail) => {
  651.         const callbacks = component.$$.callbacks[type];
  652.  
  653.         if (callbacks) {
  654.             // TODO are there situations where events could be dispatched
  655.             // in a server (non-DOM) environment?
  656.             const event = custom_event(type, detail);
  657.             callbacks.slice().forEach(fn => {
  658.                 fn.call(component, event);
  659.             });
  660.         }
  661.     };
  662. }
  663.  
  664. function setContext(key, context) {
  665.     get_current_component().$$.context.set(key, context);
  666. }
  667.  
  668. function getContext(key) {
  669.     return get_current_component().$$.context.get(key);
  670. }
  671.  
  672. // TODO figure out if we still want to support
  673. // shorthand events, or if we want to implement
  674. // a real bubbling mechanism
  675. function bubble(component, event) {
  676.     const callbacks = component.$$.callbacks[event.type];
  677.  
  678.     if (callbacks) {
  679.         callbacks.slice().forEach(fn => fn(event));
  680.     }
  681. }
  682.  
  683. const dirty_components = [];
  684. const intros = { enabled: false };
  685.  
  686. const resolved_promise = Promise.resolve();
  687. let update_scheduled = false;
  688. const binding_callbacks = [];
  689. const render_callbacks = [];
  690. const flush_callbacks = [];
  691.  
  692. function schedule_update() {
  693.     if (!update_scheduled) {
  694.         update_scheduled = true;
  695.         resolved_promise.then(flush);
  696.     }
  697. }
  698.  
  699. function tick() {
  700.     schedule_update();
  701.     return resolved_promise;
  702. }
  703.  
  704. function add_binding_callback(fn) {
  705.     binding_callbacks.push(fn);
  706. }
  707.  
  708. function add_render_callback(fn) {
  709.     render_callbacks.push(fn);
  710. }
  711.  
  712. function add_flush_callback(fn) {
  713.     flush_callbacks.push(fn);
  714. }
  715.  
  716. function flush() {
  717.     const seen_callbacks = new Set();
  718.  
  719.     do {
  720.         // first, call beforeUpdate functions
  721.         // and update components
  722.         while (dirty_components.length) {
  723.             const component = dirty_components.shift();
  724.             set_current_component(component);
  725.             update(component.$$);
  726.         }
  727.  
  728.         while (binding_callbacks.length) binding_callbacks.shift()();
  729.  
  730.         // then, once components are updated, call
  731.         // afterUpdate functions. This may cause
  732.         // subsequent updates...
  733.         while (render_callbacks.length) {
  734.             const callback = render_callbacks.pop();
  735.             if (!seen_callbacks.has(callback)) {
  736.                 callback();
  737.  
  738.                 // ...so guard against infinite loops
  739.                 seen_callbacks.add(callback);
  740.             }
  741.         }
  742.     } while (dirty_components.length);
  743.  
  744.     while (flush_callbacks.length) {
  745.         flush_callbacks.pop()();
  746.     }
  747.  
  748.     update_scheduled = false;
  749. }
  750.  
  751. function update($$) {
  752.     if ($$.fragment) {
  753.         $$.update($$.dirty);
  754.         run_all($$.before_render);
  755.         $$.fragment.p($$.dirty, $$.ctx);
  756.         $$.dirty = null;
  757.  
  758.         $$.after_render.forEach(add_render_callback);
  759.     }
  760. }
  761.  
  762. let promise;
  763.  
  764. function wait() {
  765.     if (!promise) {
  766.         promise = Promise.resolve();
  767.         promise.then(() => {
  768.             promise = null;
  769.         });
  770.     }
  771.  
  772.     return promise;
  773. }
  774.  
  775. function dispatch(node, direction, kind) {
  776.     node.dispatchEvent(custom_event(`${direction ? 'intro' : 'outro'}${kind}`));
  777. }
  778.  
  779. let outros;
  780.  
  781. function group_outros() {
  782.     outros = {
  783.         remaining: 0,
  784.         callbacks: []
  785.     };
  786. }
  787.  
  788. function check_outros() {
  789.     if (!outros.remaining) {
  790.         run_all(outros.callbacks);
  791.     }
  792. }
  793.  
  794. function on_outro(callback) {
  795.     outros.callbacks.push(callback);
  796. }
  797.  
  798. function create_in_transition(node, fn, params) {
  799.     let config = fn(node, params);
  800.     let running = false;
  801.     let animation_name;
  802.     let task;
  803.     let uid = 0;
  804.  
  805.     function cleanup() {
  806.         if (animation_name) delete_rule(node, animation_name);
  807.     }
  808.  
  809.     function go() {
  810.         const {
  811.             delay = 0,
  812.             duration = 300,
  813.             easing = identity,
  814.             tick: tick$$1 = noop,
  815.             css
  816.         } = config;
  817.  
  818.         if (css) animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);
  819.         tick$$1(0, 1);
  820.  
  821.         const start_time = window.performance.now() + delay;
  822.         const end_time = start_time + duration;
  823.  
  824.         if (task) task.abort();
  825.         running = true;
  826.  
  827.         task = loop(now => {
  828.             if (running) {
  829.                 if (now >= end_time) {
  830.                     tick$$1(1, 0);
  831.                     cleanup();
  832.                     return running = false;
  833.                 }
  834.  
  835.                 if (now >= start_time) {
  836.                     const t = easing((now - start_time) / duration);
  837.                     tick$$1(t, 1 - t);
  838.                 }
  839.             }
  840.  
  841.             return running;
  842.         });
  843.     }
  844.  
  845.     let started = false;
  846.  
  847.     return {
  848.         start() {
  849.             if (started) return;
  850.  
  851.             delete_rule(node);
  852.  
  853.             if (typeof config === 'function') {
  854.                 config = config();
  855.                 wait().then(go);
  856.             } else {
  857.                 go();
  858.             }
  859.         },
  860.  
  861.         invalidate() {
  862.             started = false;
  863.         },
  864.  
  865.         end() {
  866.             if (running) {
  867.                 cleanup();
  868.                 running = false;
  869.             }
  870.         }
  871.     };
  872. }
  873.  
  874. function create_out_transition(node, fn, params) {
  875.     let config = fn(node, params);
  876.     let running = true;
  877.     let animation_name;
  878.  
  879.     const group = outros;
  880.  
  881.     group.remaining += 1;
  882.  
  883.     function go() {
  884.         const {
  885.             delay = 0,
  886.             duration = 300,
  887.             easing = identity,
  888.             tick: tick$$1 = noop,
  889.             css
  890.         } = config;
  891.  
  892.         if (css) animation_name = create_rule(node, 1, 0, duration, delay, easing, css);
  893.  
  894.         const start_time = window.performance.now() + delay;
  895.         const end_time = start_time + duration;
  896.  
  897.         loop(now => {
  898.             if (running) {
  899.                 if (now >= end_time) {
  900.                     tick$$1(0, 1);
  901.  
  902.                     if (!--group.remaining) {
  903.                         // this will result in `end()` being called,
  904.                         // so we don't need to clean up here
  905.                         run_all(group.callbacks);
  906.                     }
  907.  
  908.                     return false;
  909.                 }
  910.  
  911.                 if (now >= start_time) {
  912.                     const t = easing((now - start_time) / duration);
  913.                     tick$$1(1 - t, t);
  914.                 }
  915.             }
  916.  
  917.             return running;
  918.         });
  919.     }
  920.  
  921.     if (typeof config === 'function') {
  922.         wait().then(() => {
  923.             config = config();
  924.             go();
  925.         });
  926.     } else {
  927.         go();
  928.     }
  929.  
  930.     return {
  931.         end(reset) {
  932.             if (reset && config.tick) {
  933.                 config.tick(1, 0);
  934.             }
  935.  
  936.             if (running) {
  937.                 if (animation_name) delete_rule(node, animation_name);
  938.                 running = false;
  939.             }
  940.         }
  941.     };
  942. }
  943.  
  944. function create_bidirectional_transition(node, fn, params, intro) {
  945.     let config = fn(node, params);
  946.  
  947.     let t = intro ? 0 : 1;
  948.  
  949.     let running_program = null;
  950.     let pending_program = null;
  951.     let animation_name = null;
  952.  
  953.     function clear_animation() {
  954.         if (animation_name) delete_rule(node, animation_name);
  955.     }
  956.  
  957.     function init(program, duration) {
  958.         const d = program.b - t;
  959.         duration *= Math.abs(d);
  960.  
  961.         return {
  962.             a: t,
  963.             b: program.b,
  964.             d,
  965.             duration,
  966.             start: program.start,
  967.             end: program.start + duration,
  968.             group: program.group
  969.         };
  970.     }
  971.  
  972.     function go(b) {
  973.         const {
  974.             delay = 0,
  975.             duration = 300,
  976.             easing = identity,
  977.             tick: tick$$1 = noop,
  978.             css
  979.         } = config;
  980.  
  981.         const program = {
  982.             start: window.performance.now() + delay,
  983.             b
  984.         };
  985.  
  986.         if (!b) {
  987.             program.group = outros;
  988.             outros.remaining += 1;
  989.         }
  990.  
  991.         if (running_program) {
  992.             pending_program = program;
  993.         } else {
  994.             // if this is an intro, and there's a delay, we need to do
  995.             // an initial tick and/or apply CSS animation immediately
  996.             if (css) {
  997.                 clear_animation();
  998.                 animation_name = create_rule(node, t, b, duration, delay, easing, css);
  999.             }
  1000.  
  1001.             if (b) tick$$1(0, 1);
  1002.  
  1003.             running_program = init(program, duration);
  1004.             add_render_callback(() => dispatch(node, b, 'start'));
  1005.  
  1006.             loop(now => {
  1007.                 if (pending_program && now > pending_program.start) {
  1008.                     running_program = init(pending_program, duration);
  1009.                     pending_program = null;
  1010.  
  1011.                     dispatch(node, running_program.b, 'start');
  1012.  
  1013.                     if (css) {
  1014.                         clear_animation();
  1015.                         animation_name = create_rule(node, t, running_program.b, running_program.duration, 0, easing, config.css);
  1016.                     }
  1017.                 }
  1018.  
  1019.                 if (running_program) {
  1020.                     if (now >= running_program.end) {
  1021.                         tick$$1(t = running_program.b, 1 - t);
  1022.                         dispatch(node, running_program.b, 'end');
  1023.  
  1024.                         if (!pending_program) {
  1025.                             // we're done
  1026.                             if (running_program.b) {
  1027.                                 // intro — we can tidy up immediately
  1028.                                 clear_animation();
  1029.                             } else {
  1030.                                 // outro — needs to be coordinated
  1031.                                 if (!--running_program.group.remaining) run_all(running_program.group.callbacks);
  1032.                             }
  1033.                         }
  1034.  
  1035.                         running_program = null;
  1036.                     }
  1037.  
  1038.                     else if (now >= running_program.start) {
  1039.                         const p = now - running_program.start;
  1040.                         t = running_program.a + running_program.d * easing(p / running_program.duration);
  1041.                         tick$$1(t, 1 - t);
  1042.                     }
  1043.                 }
  1044.  
  1045.                 return !!(running_program || pending_program);
  1046.             });
  1047.         }
  1048.     }
  1049.  
  1050.     return {
  1051.         run(b) {
  1052.             if (typeof config === 'function') {
  1053.                 wait().then(() => {
  1054.                     config = config();
  1055.                     go(b);
  1056.                 });
  1057.             } else {
  1058.                 go(b);
  1059.             }
  1060.         },
  1061.  
  1062.         end() {
  1063.             clear_animation();
  1064.             running_program = pending_program = null;
  1065.         }
  1066.     };
  1067. }
  1068.  
  1069. function handle_promise(promise, info) {
  1070.     const token = info.token = {};
  1071.  
  1072.     function update(type, index, key, value) {
  1073.         if (info.token !== token) return;
  1074.  
  1075.         info.resolved = key && { [key]: value };
  1076.  
  1077.         const child_ctx = internal_assign(internal_assign({}, info.ctx), info.resolved);
  1078.         const block = type && (info.current = type)(child_ctx);
  1079.  
  1080.         if (info.block) {
  1081.             if (info.blocks) {
  1082.                 info.blocks.forEach((block, i) => {
  1083.                     if (i !== index && block) {
  1084.                         group_outros();
  1085.                         on_outro(() => {
  1086.                             block.d(1);
  1087.                             info.blocks[i] = null;
  1088.                         });
  1089.                         block.o(1);
  1090.                         check_outros();
  1091.                     }
  1092.                 });
  1093.             } else {
  1094.                 info.block.d(1);
  1095.             }
  1096.  
  1097.             block.c();
  1098.             if (block.i) block.i(1);
  1099.             block.m(info.mount(), info.anchor);
  1100.  
  1101.             flush();
  1102.         }
  1103.  
  1104.         info.block = block;
  1105.         if (info.blocks) info.blocks[index] = block;
  1106.     }
  1107.  
  1108.     if (is_promise(promise)) {
  1109.         promise.then(value => {
  1110.             update(info.then, 1, info.value, value);
  1111.         }, error => {
  1112.             update(info.catch, 2, info.error, error);
  1113.         });
  1114.  
  1115.         // if we previously had a then/catch block, destroy it
  1116.         if (info.current !== info.pending) {
  1117.             update(info.pending, 0);
  1118.             return true;
  1119.         }
  1120.     } else {
  1121.         if (info.current !== info.then) {
  1122.             update(info.then, 1, info.value, promise);
  1123.             return true;
  1124.         }
  1125.  
  1126.         info.resolved = { [info.value]: promise };
  1127.     }
  1128. }
  1129.  
  1130. function destroy_block(block, lookup) {
  1131.     block.d(1);
  1132.     lookup.delete(block.key);
  1133. }
  1134.  
  1135. function outro_and_destroy_block(block, lookup) {
  1136.     on_outro(() => {
  1137.         destroy_block(block, lookup);
  1138.     });
  1139.  
  1140.     block.o(1);
  1141. }
  1142.  
  1143. function fix_and_outro_and_destroy_block(block, lookup) {
  1144.     block.f();
  1145.     outro_and_destroy_block(block, lookup);
  1146. }
  1147.  
  1148. function update_keyed_each(old_blocks, changed, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) {
  1149.     let o = old_blocks.length;
  1150.     let n = list.length;
  1151.  
  1152.     let i = o;
  1153.     const old_indexes = {};
  1154.     while (i--) old_indexes[old_blocks[i].key] = i;
  1155.  
  1156.     const new_blocks = [];
  1157.     const new_lookup = new Map();
  1158.     const deltas = new Map();
  1159.  
  1160.     i = n;
  1161.     while (i--) {
  1162.         const child_ctx = get_context(ctx, list, i);
  1163.         const key = get_key(child_ctx);
  1164.         let block = lookup.get(key);
  1165.  
  1166.         if (!block) {
  1167.             block = create_each_block(key, child_ctx);
  1168.             block.c();
  1169.         } else if (dynamic) {
  1170.             block.p(changed, child_ctx);
  1171.         }
  1172.  
  1173.         new_lookup.set(key, new_blocks[i] = block);
  1174.  
  1175.         if (key in old_indexes) deltas.set(key, Math.abs(i - old_indexes[key]));
  1176.     }
  1177.  
  1178.     const will_move = new Set();
  1179.     const did_move = new Set();
  1180.  
  1181.     function insert(block) {
  1182.         if (block.i) block.i(1);
  1183.         block.m(node, next);
  1184.         lookup.set(block.key, block);
  1185.         next = block.first;
  1186.         n--;
  1187.     }
  1188.  
  1189.     while (o && n) {
  1190.         const new_block = new_blocks[n - 1];
  1191.         const old_block = old_blocks[o - 1];
  1192.         const new_key = new_block.key;
  1193.         const old_key = old_block.key;
  1194.  
  1195.         if (new_block === old_block) {
  1196.             // do nothing
  1197.             next = new_block.first;
  1198.             o--;
  1199.             n--;
  1200.         }
  1201.  
  1202.         else if (!new_lookup.has(old_key)) {
  1203.             // remove old block
  1204.             destroy(old_block, lookup);
  1205.             o--;
  1206.         }
  1207.  
  1208.         else if (!lookup.has(new_key) || will_move.has(new_key)) {
  1209.             insert(new_block);
  1210.         }
  1211.  
  1212.         else if (did_move.has(old_key)) {
  1213.             o--;
  1214.  
  1215.         } else if (deltas.get(new_key) > deltas.get(old_key)) {
  1216.             did_move.add(new_key);
  1217.             insert(new_block);
  1218.  
  1219.         } else {
  1220.             will_move.add(old_key);
  1221.             o--;
  1222.         }
  1223.     }
  1224.  
  1225.     while (o--) {
  1226.         const old_block = old_blocks[o];
  1227.         if (!new_lookup.has(old_block.key)) destroy(old_block, lookup);
  1228.     }
  1229.  
  1230.     while (n) insert(new_blocks[n - 1]);
  1231.  
  1232.     return new_blocks;
  1233. }
  1234.  
  1235. function measure(blocks) {
  1236.     const rects = {};
  1237.     let i = blocks.length;
  1238.     while (i--) rects[blocks[i].key] = blocks[i].node.getBoundingClientRect();
  1239.     return rects;
  1240. }
  1241.  
  1242. function get_spread_update(levels, updates) {
  1243.     const update = {};
  1244.  
  1245.     const to_null_out = {};
  1246.     const accounted_for = {};
  1247.  
  1248.     let i = levels.length;
  1249.     while (i--) {
  1250.         const o = levels[i];
  1251.         const n = updates[i];
  1252.  
  1253.         if (n) {
  1254.             for (const key in o) {
  1255.                 if (!(key in n)) to_null_out[key] = 1;
  1256.             }
  1257.  
  1258.             for (const key in n) {
  1259.                 if (!accounted_for[key]) {
  1260.                     update[key] = n[key];
  1261.                     accounted_for[key] = 1;
  1262.                 }
  1263.             }
  1264.  
  1265.             levels[i] = n;
  1266.         } else {
  1267.             for (const key in o) {
  1268.                 accounted_for[key] = 1;
  1269.             }
  1270.         }
  1271.     }
  1272.  
  1273.     for (const key in to_null_out) {
  1274.         if (!(key in update)) update[key] = undefined;
  1275.     }
  1276.  
  1277.     return update;
  1278. }
  1279.  
  1280. const invalid_attribute_name_character = /[\s'">/=\u{FDD0}-\u{FDEF}\u{FFFE}\u{FFFF}\u{1FFFE}\u{1FFFF}\u{2FFFE}\u{2FFFF}\u{3FFFE}\u{3FFFF}\u{4FFFE}\u{4FFFF}\u{5FFFE}\u{5FFFF}\u{6FFFE}\u{6FFFF}\u{7FFFE}\u{7FFFF}\u{8FFFE}\u{8FFFF}\u{9FFFE}\u{9FFFF}\u{AFFFE}\u{AFFFF}\u{BFFFE}\u{BFFFF}\u{CFFFE}\u{CFFFF}\u{DFFFE}\u{DFFFF}\u{EFFFE}\u{EFFFF}\u{FFFFE}\u{FFFFF}\u{10FFFE}\u{10FFFF}]/u;
  1281. // https://html.spec.whatwg.org/multipage/syntax.html#attributes-2
  1282. // https://infra.spec.whatwg.org/#noncharacter
  1283.  
  1284. function spread(args) {
  1285.     const attributes = Object.assign({}, ...args);
  1286.     let str = '';
  1287.  
  1288.     Object.keys(attributes).forEach(name => {
  1289.         if (invalid_attribute_name_character.test(name)) return;
  1290.  
  1291.         const value = attributes[name];
  1292.         if (value === undefined) return;
  1293.         if (value === true) str += " " + name;
  1294.  
  1295.         const escaped = String(value)
  1296.             .replace(/"/g, '&#34;')
  1297.             .replace(/'/g, '&#39;');
  1298.  
  1299.         str += " " + name + "=" + JSON.stringify(escaped);
  1300.     });
  1301.  
  1302.     return str;
  1303. }
  1304.  
  1305. const escaped = {
  1306.     '"': '&quot;',
  1307.     "'": '&#39;',
  1308.     '&': '&amp;',
  1309.     '<': '&lt;',
  1310.     '>': '&gt;'
  1311. };
  1312.  
  1313. function internal_escape(html) {
  1314.     return String(html).replace(/["'&<>]/g, match => escaped[match]);
  1315. }
  1316.  
  1317. function each(items, fn) {
  1318.     let str = '';
  1319.     for (let i = 0; i < items.length; i += 1) {
  1320.         str += fn(items[i], i);
  1321.     }
  1322.     return str;
  1323. }
  1324.  
  1325. const missing_component = {
  1326.     $$render: () => ''
  1327. };
  1328.  
  1329. function validate_component(component, name) {
  1330.     if (!component || !component.$$render) {
  1331.         if (name === 'svelte:component') name += ' this={...}';
  1332.         throw new Error(`<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules`);
  1333.     }
  1334.  
  1335.     return component;
  1336. }
  1337.  
  1338. function debug(file, line, column, values) {
  1339.     console.log(`{@debug} ${file ? file + ' ' : ''}(${line}:${column})`); // eslint-disable-line no-console
  1340.     console.log(values); // eslint-disable-line no-console
  1341.     return '';
  1342. }
  1343.  
  1344. let on_destroy;
  1345.  
  1346. function create_ssr_component(fn) {
  1347.     function $$render(result, props, bindings, slots) {
  1348.         const parent_component = current_component;
  1349.  
  1350.         const $$ = {
  1351.             on_destroy,
  1352.             context: new Map(parent_component ? parent_component.$$.context : []),
  1353.  
  1354.             // these will be immediately discarded
  1355.             on_mount: [],
  1356.             before_render: [],
  1357.             after_render: [],
  1358.             callbacks: blank_object()
  1359.         };
  1360.  
  1361.         set_current_component({ $$ });
  1362.  
  1363.         const html = fn(result, props, bindings, slots);
  1364.  
  1365.         set_current_component(parent_component);
  1366.         return html;
  1367.     }
  1368.  
  1369.     return {
  1370.         render: (props = {}, options = {}) => {
  1371.             on_destroy = [];
  1372.  
  1373.             const result = { head: '', css: new Set() };
  1374.             const html = $$render(result, props, {}, options);
  1375.  
  1376.             run_all(on_destroy);
  1377.  
  1378.             return {
  1379.                 html,
  1380.                 css: {
  1381.                     code: Array.from(result.css).map(css => css.code).join('\n'),
  1382.                     map: null // TODO
  1383.                 },
  1384.                 head: result.head
  1385.             };
  1386.         },
  1387.  
  1388.         $$render
  1389.     };
  1390. }
  1391.  
  1392. function get_store_value(store) {
  1393.     let value;
  1394.     store.subscribe(_ => value = _)();
  1395.     return value;
  1396. }
  1397.  
  1398. function bind(component, name, callback) {
  1399.     if (component.$$.props.indexOf(name) === -1) return;
  1400.     component.$$.bound[name] = callback;
  1401.     callback(component.$$.ctx[name]);
  1402. }
  1403.  
  1404. function mount_component(component, target, anchor) {
  1405.     const { fragment, on_mount, on_destroy, after_render } = component.$$;
  1406.  
  1407.     fragment.m(target, anchor);
  1408.  
  1409.     // onMount happens after the initial afterUpdate. Because
  1410.     // afterUpdate callbacks happen in reverse order (inner first)
  1411.     // we schedule onMount callbacks before afterUpdate callbacks
  1412.     add_render_callback(() => {
  1413.         const new_on_destroy = on_mount.map(run).filter(is_function);
  1414.         if (on_destroy) {
  1415.             on_destroy.push(...new_on_destroy);
  1416.         } else {
  1417.             // Edge case - component was destroyed immediately,
  1418.             // most likely as a result of a binding initialising
  1419.             run_all(new_on_destroy);
  1420.         }
  1421.         component.$$.on_mount = [];
  1422.     });
  1423.  
  1424.     after_render.forEach(add_render_callback);
  1425. }
  1426.  
  1427. function destroy(component, detaching) {
  1428.     if (component.$$) {
  1429.         run_all(component.$$.on_destroy);
  1430.         component.$$.fragment.d(detaching);
  1431.  
  1432.         // TODO null out other refs, including component.$$ (but need to
  1433.         // preserve final state?)
  1434.         component.$$.on_destroy = component.$$.fragment = null;
  1435.         component.$$.ctx = {};
  1436.     }
  1437. }
  1438.  
  1439. function make_dirty(component, key) {
  1440.     if (!component.$$.dirty) {
  1441.         dirty_components.push(component);
  1442.         schedule_update();
  1443.         component.$$.dirty = {};
  1444.     }
  1445.     component.$$.dirty[key] = true;
  1446. }
  1447.  
  1448. function init(component, options, instance, create_fragment, not_equal$$1, prop_names) {
  1449.     const parent_component = current_component;
  1450.     set_current_component(component);
  1451.  
  1452.     const props = options.props || {};
  1453.  
  1454.     const $$ = component.$$ = {
  1455.         fragment: null,
  1456.         ctx: null,
  1457.  
  1458.         // state
  1459.         props: prop_names,
  1460.         update: noop,
  1461.         not_equal: not_equal$$1,
  1462.         bound: blank_object(),
  1463.  
  1464.         // lifecycle
  1465.         on_mount: [],
  1466.         on_destroy: [],
  1467.         before_render: [],
  1468.         after_render: [],
  1469.         context: new Map(parent_component ? parent_component.$$.context : []),
  1470.  
  1471.         // everything else
  1472.         callbacks: blank_object(),
  1473.         dirty: null
  1474.     };
  1475.  
  1476.     let ready = false;
  1477.  
  1478.     $$.ctx = instance
  1479.         ? instance(component, props, (key, value) => {
  1480.             if ($$.ctx && not_equal$$1($$.ctx[key], $$.ctx[key] = value)) {
  1481.                 if ($$.bound[key]) $$.bound[key](value);
  1482.                 if (ready) make_dirty(component, key);
  1483.             }
  1484.         })
  1485.         : props;
  1486.  
  1487.     $$.update();
  1488.     ready = true;
  1489.     run_all($$.before_render);
  1490.     $$.fragment = create_fragment($$.ctx);
  1491.  
  1492.     if (options.target) {
  1493.         if (options.hydrate) {
  1494.             $$.fragment.l(children(options.target));
  1495.         } else {
  1496.             $$.fragment.c();
  1497.         }
  1498.  
  1499.         if (options.intro && component.$$.fragment.i) component.$$.fragment.i();
  1500.         mount_component(component, options.target, options.anchor);
  1501.         flush();
  1502.     }
  1503.  
  1504.     set_current_component(parent_component);
  1505. }
  1506.  
  1507. let SvelteElement;
  1508. if (typeof HTMLElement !== 'undefined') {
  1509.     SvelteElement = class extends HTMLElement {
  1510.         constructor() {
  1511.             super();
  1512.             this.attachShadow({ mode: 'open' });
  1513.         }
  1514.  
  1515.         connectedCallback() {
  1516.             for (const key in this.$$.slotted) {
  1517.                 this.appendChild(this.$$.slotted[key]);
  1518.             }
  1519.         }
  1520.  
  1521.         attributeChangedCallback(attr$$1, oldValue, newValue) {
  1522.             this[attr$$1] = newValue;
  1523.         }
  1524.  
  1525.         $destroy() {
  1526.             destroy(this, true);
  1527.             this.$destroy = noop;
  1528.         }
  1529.  
  1530.         $on(type, callback) {
  1531.             // TODO should this delegate to addEventListener?
  1532.             const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));
  1533.             callbacks.push(callback);
  1534.  
  1535.             return () => {
  1536.                 const index = callbacks.indexOf(callback);
  1537.                 if (index !== -1) callbacks.splice(index, 1);
  1538.             };
  1539.         }
  1540.  
  1541.         $set() {
  1542.             // overridden by instance, if it has props
  1543.         }
  1544.     };
  1545. }
  1546.  
  1547. class SvelteComponent {
  1548.     $destroy() {
  1549.         destroy(this, true);
  1550.         this.$destroy = noop;
  1551.     }
  1552.  
  1553.     $on(type, callback) {
  1554.         const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));
  1555.         callbacks.push(callback);
  1556.  
  1557.         return () => {
  1558.             const index = callbacks.indexOf(callback);
  1559.             if (index !== -1) callbacks.splice(index, 1);
  1560.         };
  1561.     }
  1562.  
  1563.     $set() {
  1564.         // overridden by instance, if it has props
  1565.     }
  1566. }
  1567.  
  1568. class SvelteComponentDev extends SvelteComponent {
  1569.     constructor(options) {
  1570.         if (!options || (!options.target && !options.$$inline)) {
  1571.             throw new Error(`'target' is a required option`);
  1572.         }
  1573.  
  1574.         super();
  1575.     }
  1576.  
  1577.     $destroy() {
  1578.         super.$destroy();
  1579.         this.$destroy = () => {
  1580.             console.warn(`Component was already destroyed`); // eslint-disable-line no-console
  1581.         };
  1582.     }
  1583. }
  1584.  
  1585.  
  1586.  
  1587. // EXTERNAL MODULE: ./src/App.svelte.css
  1588. var App_svelte = __webpack_require__(1);
  1589.  
  1590. // CONCATENATED MODULE: ./src/App.svelte
  1591. /* src\App.svelte generated by Svelte v3.0.1 */
  1592.  
  1593.  
  1594. function create_fragment(ctx) {
  1595.     var h1, t0, t1, t2;
  1596.  
  1597.     return {
  1598.         c() {
  1599.             h1 = internal_element("h1");
  1600.             t0 = internal_text("Hello ");
  1601.             t1 = internal_text(ctx.name);
  1602.             t2 = internal_text("!");
  1603.             h1.className = "svelte-i7qo5m";
  1604.         },
  1605.  
  1606.         m(target, anchor) {
  1607.             insert(target, h1, anchor);
  1608.             append(h1, t0);
  1609.             append(h1, t1);
  1610.             append(h1, t2);
  1611.         },
  1612.  
  1613.         p(changed, ctx) {
  1614.             if (changed.name) {
  1615.                 set_data(t1, ctx.name);
  1616.             }
  1617.         },
  1618.  
  1619.         i: noop,
  1620.         o: noop,
  1621.  
  1622.         d(detaching) {
  1623.             if (detaching) {
  1624.                 detach(h1);
  1625.             }
  1626.         }
  1627.     };
  1628. }
  1629.  
  1630. function instance($$self, $$props, $$invalidate) {
  1631.     let { name } = $$props;
  1632.  
  1633.     $$self.$set = $$props => {
  1634.         if ('name' in $$props) $$invalidate('name', name = $$props.name);
  1635.     };
  1636.  
  1637.     return { name };
  1638. }
  1639.  
  1640. class App_svelte_App extends SvelteComponent {
  1641.     constructor(options) {
  1642.         super();
  1643.         init(this, options, instance, create_fragment, safe_not_equal, ["name"]);
  1644.     }
  1645. }
  1646.  
  1647. /* harmony default export */ var src_App_svelte = (App_svelte_App);
  1648.  
  1649.  
  1650. // CONCATENATED MODULE: ./src/main.js
  1651.  
  1652.  
  1653. const app = new src_App_svelte({
  1654.     target: document.body,
  1655.     props: {
  1656.         name: 'world'
  1657.     }
  1658. });
  1659.  
  1660. window.app = app;
  1661.  
  1662. /* harmony default export */ var main = __webpack_exports__["default"] = (app);
  1663.  
  1664. /***/ })
  1665. /******/ ]);
Add Comment
Please, Sign In to add comment