diff --git a/material/assets/images/icons/gitlab-black.svg b/material/assets/images/icons/gitlab-black.svg index bd082aeb9..7f93abbf2 100644 --- a/material/assets/images/icons/gitlab-black.svg +++ b/material/assets/images/icons/gitlab-black.svg @@ -1,31 +1,31 @@ - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/material/assets/images/icons/gitlab-white.svg b/material/assets/images/icons/gitlab-white.svg index b8e34209e..b3ede9bde 100644 --- a/material/assets/images/icons/gitlab-white.svg +++ b/material/assets/images/icons/gitlab-white.svg @@ -1,32 +1,32 @@ - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/material/assets/javascripts/application.js b/material/assets/javascripts/application.js index 4c6f9bd3a..edbd556e1 100644 --- a/material/assets/javascripts/application.js +++ b/material/assets/javascripts/application.js @@ -2,41 +2,41 @@ var Application = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; - +/******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { - +/******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModules[moduleId].exports; - +/******/ /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ exports: {}, /******/ id: moduleId, /******/ loaded: false /******/ }; - +/******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); - +/******/ /******/ // Flag the module as loaded /******/ module.loaded = true; - +/******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } - - +/******/ +/******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; - +/******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; - +/******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; - +/******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(0); /******/ }) @@ -46,11 +46,11 @@ var Application = /***/ function(module, exports, __webpack_require__) { "use strict"; - + Object.defineProperty(exports, "__esModule", { value: true }); - + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); /* * Copyright (c) 2016 Martin Donath * @@ -72,115 +72,146 @@ var Application = * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ - + /* ---------------------------------------------------------------------------- * Imports * ------------------------------------------------------------------------- */ - + // import Expander from "./components/expander" - + var _fastclick = __webpack_require__(1); - + var _fastclick2 = _interopRequireDefault(_fastclick); - + var _lunr = __webpack_require__(3); - + var _lunr2 = _interopRequireDefault(_lunr); - - var _Material = __webpack_require__(4); - + + var _GithubSourceFacts = __webpack_require__(4); + + var _GithubSourceFacts2 = _interopRequireDefault(_GithubSourceFacts); + + var _Material = __webpack_require__(5); + var _Material2 = _interopRequireDefault(_Material); - + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - + // import Search from './components/search'; - + /* ---------------------------------------------------------------------------- * Application * ------------------------------------------------------------------------- */ - + var Application = function () { - function Application() { + + /** + * Constructor. + * + * @constructor + * @param {object} config Configuration object + * @return {void} + */ + function Application(config) { _classCallCheck(this, Application); + + this.config = config; } - + + /** + * @return {void} + */ + + _createClass(Application, [{ key: "initialize", - - - /** - * @return {void} - */ value: function initialize() { var material = new _Material2.default(); material.initialize(); + + if (this.hasGithubRepo()) { + var githubSource = new _GithubSourceFacts2.default(this.config.storage, this.config.repo.url); + githubSource.initialize(); + } + } + + /** + * Is this application about a Github repository? + * + * @return {bool} - true if `repo.icon` or `repo.url` contains 'github' + */ + + }, { + key: "hasGithubRepo", + value: function hasGithubRepo() { + return this.config.repo.icon === "github" || this.config.repo.url.includes("github"); } }]); - + return Application; }(); - + exports.default = Application; - + // TODO: wrap in function call // application module export - + /* Initialize application upon DOM ready */ - + document.addEventListener("DOMContentLoaded", function () { - + /* Test for iOS */ Modernizr.addTest("ios", function () { return !!navigator.userAgent.match(/(iPad|iPhone|iPod)/g); }); - + /* Test for web application context */ Modernizr.addTest("standalone", function () { return !!navigator.standalone; }); - + /* Attack FastClick to mitigate 300ms delay on touch devices */ _fastclick2.default.attach(document.body); - + var query = document.getElementById("query"); query.addEventListener("focus", function () { document.querySelector(".md-search").dataset.mdLocked = ""; }); - + /* Intercept click on search mode toggle */ var offset = 0; var toggle = document.getElementById("search"); - toggle.addEventListener("click", function (ev) { + toggle.addEventListener("click", function () { // TODO: click may be the wrong event... var list = document.body; // classList md bla var lock = !matchMedia("only screen and (min-width: 960px)").matches; - + /* Exiting search mode */ if (list.dataset.mdLocked) { delete list.dataset.mdLocked; - + /* Scroll to former position, but wait for 100ms to prevent flashes on iOS. A short timeout seems to do the trick */ if (lock) setTimeout(function () { window.scrollTo(0, offset); }, 100); - + /* Entering search mode */ } else { offset = window.scrollY; - + /* First timeout: scroll to top after transition, to omit flickering */ if (lock) setTimeout(function () { window.scrollTo(0, 0); }, 400); - + /* Second timeout: Lock body after finishing transition and scrolling to top and focus input field. Sadly, the focus event is not dispatched on iOS Safari and there's nothing we can do about it. */ setTimeout(function () { - + /* This additional check is necessary to handle fast subsequent clicks on the toggle and the timeout to lock the body must be cancelled */ // if (ev.target.checked) { @@ -192,10 +223,10 @@ var Application = }, 450); } }); - + // TODO: only do this on MOBILE and TABLET var toggleSearchClose = document.querySelector(".md-search__icon"); - toggleSearchClose.setAttribute("for", "search"); // override query with search, when on mobile!!! + toggleSearchClose.setAttribute("for", "search"); // TODO: override query with search, when on mobile!!! // toggleSearchClose.addEventListener("click", ev => { // ev.preventDefault() // // ev.target @@ -203,42 +234,42 @@ var Application = // const search = document.getElementById("search") // search.checked = false // }) - + // var toc = new Sidebar('.md-sidebar--secondary'); // toc.listen(); - + var toggles = document.querySelectorAll(".md-nav__item--nested > .md-nav__link"); [].forEach.call(toggles, function (togglex) { var nav = togglex.nextElementSibling; - + // 1. - + nav.style.maxHeight = nav.getBoundingClientRect().height + "px"; - + togglex.addEventListener("click", function () { var first = nav.getBoundingClientRect().height; if (first) { // console.log('closing'); nav.style.maxHeight = first + "px"; // reset! requestAnimationFrame(function () { - + nav.classList.add("md-nav--transitioning"); nav.style.maxHeight = "0px"; }); } else { (function () { // console.log('opening'); - + /* Toggle and read height */ nav.style.maxHeight = ""; - + nav.classList.add("md-nav--toggled"); var last = nav.getBoundingClientRect().height; nav.classList.remove("md-nav--toggled"); - + // Initial state nav.style.maxHeight = "0px"; - + /* Enable animations */ requestAnimationFrame(function () { nav.classList.add("md-nav--transitioning"); @@ -247,7 +278,7 @@ var Application = })(); } }); - + // Capture the end with transitionend nav.addEventListener("transitionend", function (ev) { ev.target.classList.remove("md-nav--transitioning"); @@ -256,52 +287,14 @@ var Application = } }); }); - - // setTimeout(function() { - fetch("https://api.github.com/repos/squidfunk/mkdocs-material").then(function (response) { - return response.json(); - }).then(function (data) { - // console.log(data) - var stars = data.stargazers_count; - var forks = data.forks_count; - // store in session!!! - var lists = document.querySelectorAll(".md-source__facts"); // TODO 2x list in drawer and header - [].forEach.call(lists, function (list) { - - var li = document.createElement("li"); - li.className = "md-source__fact md-source__fact--hidden"; - li.innerText = stars + " Stars"; - list.appendChild(li); - - setTimeout(function (lix) { - lix.classList.remove("md-source__fact--hidden"); - }, 100, li); - - li = document.createElement("li"); - li.className = "md-source__fact md-source__fact--hidden"; - li.innerText = forks + " Forks"; - list.appendChild(li); - - setTimeout(function (lix) { - lix.classList.remove("md-source__fact--hidden"); - }, 500, li); - }); - - // setTimeout(function() { - // li.classList.remove('md-source__fact--hidden'); - // }, 100); - }).catch(function () { - // console.log("parsing failed", ex) - - }); - + // setTimeout(function() { fetch("/mkdocs/search_index.json") // TODO: prepend BASE URL!!! .then(function (response) { return response.json(); }).then(function (data) { // console.log(data) - + /* Create index */ var index = (0, _lunr2.default)(function () { /* eslint-disable no-invalid-this, lines-around-comment */ @@ -310,11 +303,11 @@ var Application = this.ref("location"); /* eslint-enable no-invalid-this, lines-around-comment */ }); - + /* Index articles */ var articles = {}; data.docs.forEach(function (article) { - + // TODO: match for two whitespaces, then replace unnecessary whitespace after string article.text = article.text.replace(/\s(\.,\:)\s/gi, function (string, g1) { return g1 + " "; @@ -324,7 +317,7 @@ var Application = articles[article.location] = article; index.add(article); }); - + /* Register keyhandler to execute search on key up */ var queryx = document.getElementById("query"); queryx.addEventListener("keyup", function () { @@ -341,34 +334,34 @@ var Application = // bar.classList.remove('non-empty'); // return; // } - + /* Show reset button */ // bar.classList.add('non-empty'); - + /* Execute search */ var results = index.search(query.value); results.forEach(function (result) { var article = articles[result.ref]; - + /* Create a link referring to the article */ var link = document.createElement("a"); link.classList.add("md-search-result__link"); link.href = article.location; - + // /* Create article container */ var li = document.createElement("li"); li.classList.add("md-search-result__item"); li.appendChild(link); - + /* Create title element */ var title = document.createElement("div"); title.classList.add("md-search-result__title"); - + // article.title.split(//) - + title.innerHTML = article.title; link.appendChild(title); - + /* Truncate a string after the given number of characters */ var truncate = function truncate(string, n) { var i = n; @@ -378,29 +371,29 @@ var Application = } return string; }; - + /* Create text element */ var text = document.createElement("p"); text.classList.add("md-search-result__description"); text.innerHTML = truncate(article.text); // .truncate(140); text.innerHTML = truncate(article.text, 140); // .truncate(140); link.appendChild(text); - + container.appendChild(li); }); - + /* Show number of search results */ // var number = document.createElement('strong'); - + var meta = document.querySelector(".md-search-result__meta"); meta.innerHTML = results.length + " search result" + (results.length !== 1 ? "s" : ""); - + /* Update number */ // while (meta.firstChild) // meta.removeChild(meta.firstChild); // meta.appendChild(number); }); - + // setTimeout(function() { // li.classList.remove('md-source__fact--hidden'); // }, 100); @@ -408,7 +401,7 @@ var Application = // console.log("parsing failed", ex) }); // }, 1000); - + fetch("https://api.github.com/repos/squidfunk/mkdocs-material/releases/latest").then(function (response) { return response.json(); }); @@ -423,12 +416,12 @@ var Application = /***/ function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_RESULT__;'use strict'; - + var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - + ;(function () { 'use strict'; - + /** * @preserve FastClick: polyfill to remove click delays on browsers with touch UIs. * @@ -436,10 +429,10 @@ var Application = * @copyright The Financial Times Limited [All Rights Reserved] * @license MIT License (see LICENSE.txt) */ - + /*jslint browser:true, node:true*/ /*global define, Event, Node*/ - + /** * Instantiate fast-clicking listeners on the specified layer. * @@ -447,112 +440,112 @@ var Application = * @param {Element} layer The layer to listen on * @param {Object} [options={}] The options to override the defaults */ - + function FastClick(layer, options) { var oldOnClick; - + options = options || {}; - + /** * Whether a click is currently being tracked. * * @type boolean */ this.trackingClick = false; - + /** * Timestamp for when click tracking started. * * @type number */ this.trackingClickStart = 0; - + /** * The element being tracked for a click. * * @type EventTarget */ this.targetElement = null; - + /** * X-coordinate of touch start event. * * @type number */ this.touchStartX = 0; - + /** * Y-coordinate of touch start event. * * @type number */ this.touchStartY = 0; - + /** * ID of the last touch, retrieved from Touch.identifier. * * @type number */ this.lastTouchIdentifier = 0; - + /** * Touchmove boundary, beyond which a click will be cancelled. * * @type number */ this.touchBoundary = options.touchBoundary || 10; - + /** * The FastClick layer. * * @type Element */ this.layer = layer; - + /** * The minimum time between tap(touchstart and touchend) events * * @type number */ this.tapDelay = options.tapDelay || 200; - + /** * The maximum time for a tap * * @type number */ this.tapTimeout = options.tapTimeout || 700; - + if (FastClick.notNeeded(layer)) { return; } - + // Some old versions of Android don't have Function.prototype.bind function bind(method, context) { return function () { return method.apply(context, arguments); }; } - + var methods = ['onMouse', 'onClick', 'onTouchStart', 'onTouchMove', 'onTouchEnd', 'onTouchCancel']; var context = this; for (var i = 0, l = methods.length; i < l; i++) { context[methods[i]] = bind(context[methods[i]], context); } - + // Set up event handlers as required if (deviceIsAndroid) { layer.addEventListener('mouseover', this.onMouse, true); layer.addEventListener('mousedown', this.onMouse, true); layer.addEventListener('mouseup', this.onMouse, true); } - + layer.addEventListener('click', this.onClick, true); layer.addEventListener('touchstart', this.onTouchStart, false); layer.addEventListener('touchmove', this.onTouchMove, false); layer.addEventListener('touchend', this.onTouchEnd, false); layer.addEventListener('touchcancel', this.onTouchCancel, false); - + // Hack is required for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2) // which is how FastClick normally stops click events bubbling to callbacks registered on the FastClick // layer when they are cancelled. @@ -565,7 +558,7 @@ var Application = rmv.call(layer, type, callback, capture); } }; - + layer.addEventListener = function (type, callback, capture) { var adv = Node.prototype.addEventListener; if (type === 'click') { @@ -579,12 +572,12 @@ var Application = } }; } - + // If a handler is already declared in the element's onclick attribute, it will be fired before // FastClick's onClick handler. Fix this by pulling out the user-defined handler function and // adding it as listener. if (typeof layer.onclick === 'function') { - + // Android browser on at least 3.2 requires a new reference to the function in layer.onclick // - the old one won't work if passed to addEventListener directly. oldOnClick = layer.onclick; @@ -594,49 +587,49 @@ var Application = layer.onclick = null; } } - + /** * Windows Phone 8.1 fakes user agent string to look like Android and iPhone. * * @type boolean */ var deviceIsWindowsPhone = navigator.userAgent.indexOf("Windows Phone") >= 0; - + /** * Android requires exceptions. * * @type boolean */ var deviceIsAndroid = navigator.userAgent.indexOf('Android') > 0 && !deviceIsWindowsPhone; - + /** * iOS requires exceptions. * * @type boolean */ var deviceIsIOS = /iP(ad|hone|od)/.test(navigator.userAgent) && !deviceIsWindowsPhone; - + /** * iOS 4 requires an exception for select elements. * * @type boolean */ var deviceIsIOS4 = deviceIsIOS && /OS 4_\d(_\d)?/.test(navigator.userAgent); - + /** * iOS 6.0-7.* requires the target element to be manually derived * * @type boolean */ var deviceIsIOSWithBadTarget = deviceIsIOS && /OS [6-7]_\d/.test(navigator.userAgent); - + /** * BlackBerry requires exceptions. * * @type boolean */ var deviceIsBlackBerry10 = navigator.userAgent.indexOf('BB10') > 0; - + /** * Determine whether a given element requires a native click. * @@ -645,7 +638,7 @@ var Application = */ FastClick.prototype.needsClick = function (target) { switch (target.nodeName.toLowerCase()) { - + // Don't send a synthetic click to disabled inputs (issue #62) case 'button': case 'select': @@ -653,26 +646,26 @@ var Application = if (target.disabled) { return true; } - + break; case 'input': - + // File inputs need real clicks on iOS 6 due to a browser bug (issue #68) if (deviceIsIOS && target.type === 'file' || target.disabled) { return true; } - + break; case 'label': case 'iframe': // iOS8 homescreen apps can prevent events bubbling into frames case 'video': return true; } - + return (/\bneedsclick\b/.test(target.className) ); }; - + /** * Determine whether a given element requires a call to focus to simulate click into element. * @@ -695,7 +688,7 @@ var Application = case 'submit': return false; } - + // No point in attempting to focus disabled inputs return !target.disabled && !target.readOnly; default: @@ -703,7 +696,7 @@ var Application = ); } }; - + /** * Send a click event to the specified element. * @@ -712,37 +705,37 @@ var Application = */ FastClick.prototype.sendClick = function (targetElement, event) { var clickEvent, touch; - + // On some Android devices activeElement needs to be blurred otherwise the synthetic click will have no effect (#24) if (document.activeElement && document.activeElement !== targetElement) { document.activeElement.blur(); } - + touch = event.changedTouches[0]; - + // Synthesise a click event, with an extra attribute so it can be tracked clickEvent = document.createEvent('MouseEvents'); clickEvent.initMouseEvent(this.determineEventType(targetElement), true, true, window, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null); clickEvent.forwardedTouchEvent = true; targetElement.dispatchEvent(clickEvent); }; - + FastClick.prototype.determineEventType = function (targetElement) { - + //Issue #159: Android Chrome Select Box does not open with a synthetic click event if (deviceIsAndroid && targetElement.tagName.toLowerCase() === 'select') { return 'mousedown'; } - + return 'click'; }; - + /** * @param {EventTarget|Element} targetElement */ FastClick.prototype.focus = function (targetElement) { var length; - + // Issue #160: on iOS 7, some input elements (e.g. date datetime month) throw a vague TypeError on setSelectionRange. These elements don't have an integer value for the selectionStart and selectionEnd properties, but unfortunately that can't be used for detection because accessing the properties also throws a TypeError. Just check the type instead. Filed as Apple bug #15122724. if (deviceIsIOS && targetElement.setSelectionRange && targetElement.type.indexOf('date') !== 0 && targetElement.type !== 'time' && targetElement.type !== 'month') { length = targetElement.value.length; @@ -751,7 +744,7 @@ var Application = targetElement.focus(); } }; - + /** * Check whether the given target element is a child of a scrollable layer and if so, set a flag on it. * @@ -759,9 +752,9 @@ var Application = */ FastClick.prototype.updateScrollParent = function (targetElement) { var scrollParent, parentElement; - + scrollParent = targetElement.fastClickScrollParent; - + // Attempt to discover whether the target element is contained within a scrollable layer. Re-check if the // target element was moved to another parent. if (!scrollParent || !scrollParent.contains(targetElement)) { @@ -772,31 +765,31 @@ var Application = targetElement.fastClickScrollParent = parentElement; break; } - + parentElement = parentElement.parentElement; } while (parentElement); } - + // Always update the scroll top tracker if possible. if (scrollParent) { scrollParent.fastClickLastScrollTop = scrollParent.scrollTop; } }; - + /** * @param {EventTarget} targetElement * @returns {Element|EventTarget} */ FastClick.prototype.getTargetElementFromEventTarget = function (eventTarget) { - + // On some older browsers (notably Safari on iOS 4.1 - see issue #56) the event target may be a text node. if (eventTarget.nodeType === Node.TEXT_NODE) { return eventTarget.parentNode; } - + return eventTarget; }; - + /** * On touch start, record the position and scroll offset. * @@ -805,25 +798,25 @@ var Application = */ FastClick.prototype.onTouchStart = function (event) { var targetElement, touch, selection; - + // Ignore multiple touches, otherwise pinch-to-zoom is prevented if both fingers are on the FastClick element (issue #111). if (event.targetTouches.length > 1) { return true; } - + targetElement = this.getTargetElementFromEventTarget(event.target); touch = event.targetTouches[0]; - + if (deviceIsIOS) { - + // Only trusted events will deselect text on iOS (issue #49) selection = window.getSelection(); if (selection.rangeCount && !selection.isCollapsed) { return true; } - + if (!deviceIsIOS4) { - + // Weird things happen on iOS when an alert or confirm dialog is opened from a click event callback (issue #23): // when the user next taps anywhere else on the page, new touchstart and touchend events are dispatched // with the same identifier as the touch event that previously triggered the click that triggered the alert. @@ -836,9 +829,9 @@ var Application = event.preventDefault(); return false; } - + this.lastTouchIdentifier = touch.identifier; - + // If the target element is a child of a scrollable layer (using -webkit-overflow-scrolling: touch) and: // 1) the user does a fling scroll on the scrollable layer // 2) the user stops the fling scroll with another tap @@ -848,22 +841,22 @@ var Application = this.updateScrollParent(targetElement); } } - + this.trackingClick = true; this.trackingClickStart = event.timeStamp; this.targetElement = targetElement; - + this.touchStartX = touch.pageX; this.touchStartY = touch.pageY; - + // Prevent phantom clicks on fast double-tap (issue #36) if (event.timeStamp - this.lastClickTime < this.tapDelay) { event.preventDefault(); } - + return true; }; - + /** * Based on a touchmove event object, check whether the touch has moved past a boundary since it started. * @@ -873,14 +866,14 @@ var Application = FastClick.prototype.touchHasMoved = function (event) { var touch = event.changedTouches[0], boundary = this.touchBoundary; - + if (Math.abs(touch.pageX - this.touchStartX) > boundary || Math.abs(touch.pageY - this.touchStartY) > boundary) { return true; } - + return false; }; - + /** * Update the last position. * @@ -891,16 +884,16 @@ var Application = if (!this.trackingClick) { return true; } - + // If the touch has moved, cancel the click tracking if (this.targetElement !== this.getTargetElementFromEventTarget(event.target) || this.touchHasMoved(event)) { this.trackingClick = false; this.targetElement = null; } - + return true; }; - + /** * Attempt to find the labelled control for the given label element. * @@ -908,22 +901,22 @@ var Application = * @returns {Element|null} */ FastClick.prototype.findControl = function (labelElement) { - + // Fast path for newer browsers supporting the HTML5 control attribute if (labelElement.control !== undefined) { return labelElement.control; } - + // All browsers under test that support touch events also support the HTML5 htmlFor attribute if (labelElement.htmlFor) { return document.getElementById(labelElement.htmlFor); } - + // If no for attribute exists, attempt to retrieve the first labellable descendant element // the list of which is defined here: http://www.w3.org/TR/html5/forms.html#category-label return labelElement.querySelector('button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea'); }; - + /** * On touch end, determine whether to send a click event at once. * @@ -937,42 +930,42 @@ var Application = scrollParent, touch, targetElement = this.targetElement; - + if (!this.trackingClick) { return true; } - + // Prevent phantom clicks on fast double-tap (issue #36) if (event.timeStamp - this.lastClickTime < this.tapDelay) { this.cancelNextClick = true; return true; } - + if (event.timeStamp - this.trackingClickStart > this.tapTimeout) { return true; } - + // Reset to prevent wrong click cancel on input (issue #156). this.cancelNextClick = false; - + this.lastClickTime = event.timeStamp; - + trackingClickStart = this.trackingClickStart; this.trackingClick = false; this.trackingClickStart = 0; - + // On some iOS devices, the targetElement supplied with the event is invalid if the layer // is performing a transition or scroll, and has to be re-detected manually. Note that // for this to function correctly, it must be called *after* the event target is checked! // See issue #57; also filed as rdar://13048589 . if (deviceIsIOSWithBadTarget) { touch = event.changedTouches[0]; - + // In certain cases arguments of elementFromPoint can be negative, so prevent setting targetElement to null targetElement = document.elementFromPoint(touch.pageX - window.pageXOffset, touch.pageY - window.pageYOffset) || targetElement; targetElement.fastClickScrollParent = this.targetElement.fastClickScrollParent; } - + targetTagName = targetElement.tagName.toLowerCase(); if (targetTagName === 'label') { forElement = this.findControl(targetElement); @@ -981,33 +974,33 @@ var Application = if (deviceIsAndroid) { return false; } - + targetElement = forElement; } } else if (this.needsFocus(targetElement)) { - + // Case 1: If the touch started a while ago (best guess is 100ms based on tests for issue #36) then focus will be triggered anyway. Return early and unset the target element reference so that the subsequent click will be allowed through. // Case 2: Without this exception for input elements tapped when the document is contained in an iframe, then any inputted text won't be visible even though the value attribute is updated as the user types (issue #37). if (event.timeStamp - trackingClickStart > 100 || deviceIsIOS && window.top !== window && targetTagName === 'input') { this.targetElement = null; return false; } - + this.focus(targetElement); this.sendClick(targetElement, event); - + // Select elements need the event to go through on iOS 4, otherwise the selector menu won't open. // Also this breaks opening selects when VoiceOver is active on iOS6, iOS7 (and possibly others) if (!deviceIsIOS || targetTagName !== 'select') { this.targetElement = null; event.preventDefault(); } - + return false; } - + if (deviceIsIOS && !deviceIsIOS4) { - + // Don't send a synthetic click event if the target element is contained within a parent layer that was scrolled // and this tap is being used to stop the scrolling (usually initiated by a fling - issue #42). scrollParent = targetElement.fastClickScrollParent; @@ -1015,17 +1008,17 @@ var Application = return true; } } - + // Prevent the actual click from going though - unless the target node is marked as requiring // real clicks or if it is in the whitelist in which case only non-programmatic clicks are permitted. if (!this.needsClick(targetElement)) { event.preventDefault(); this.sendClick(targetElement, event); } - + return false; }; - + /** * On touch cancel, stop tracking the click. * @@ -1035,7 +1028,7 @@ var Application = this.trackingClick = false; this.targetElement = null; }; - + /** * Determine mouse events which should be permitted. * @@ -1043,46 +1036,46 @@ var Application = * @returns {boolean} */ FastClick.prototype.onMouse = function (event) { - + // If a target element was never set (because a touch event was never fired) allow the event if (!this.targetElement) { return true; } - + if (event.forwardedTouchEvent) { return true; } - + // Programmatically generated events targeting a specific element should be permitted if (!event.cancelable) { return true; } - + // Derive and check the target element to see whether the mouse event needs to be permitted; // unless explicitly enabled, prevent non-touch click events from triggering actions, // to prevent ghost/doubleclicks. if (!this.needsClick(this.targetElement) || this.cancelNextClick) { - + // Prevent any user-added listeners declared on FastClick element from being fired. if (event.stopImmediatePropagation) { event.stopImmediatePropagation(); } else { - + // Part of the hack for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2) event.propagationStopped = true; } - + // Cancel the event event.stopPropagation(); event.preventDefault(); - + return false; } - + // If the mouse event is permitted, return true for the action to go through. return true; }; - + /** * On actual clicks, determine whether this is a touch-generated click, a click action occurring * naturally after a delay after a touch (which needs to be cancelled to avoid duplication), or @@ -1093,30 +1086,30 @@ var Application = */ FastClick.prototype.onClick = function (event) { var permitted; - + // It's possible for another FastClick-like library delivered with third-party code to fire a click event before FastClick does (issue #44). In that case, set the click-tracking flag back to false and return early. This will cause onTouchEnd to return early. if (this.trackingClick) { this.targetElement = null; this.trackingClick = false; return true; } - + // Very odd behaviour on iOS (issue #18): if a submit element is present inside a form and the user hits enter in the iOS simulator or clicks the Go button on the pop-up OS keyboard the a kind of 'fake' click event will be triggered with the submit-type input element as the target. if (event.target.type === 'submit' && event.detail === 0) { return true; } - + permitted = this.onMouse(event); - + // Only unset targetElement if the click is not permitted. This will ensure that the check for !targetElement in onMouse fails and the browser's click doesn't go through. if (!permitted) { this.targetElement = null; } - + // If clicks are permitted, return true for the action to go through. return permitted; }; - + /** * Remove all FastClick's event listeners. * @@ -1124,20 +1117,20 @@ var Application = */ FastClick.prototype.destroy = function () { var layer = this.layer; - + if (deviceIsAndroid) { layer.removeEventListener('mouseover', this.onMouse, true); layer.removeEventListener('mousedown', this.onMouse, true); layer.removeEventListener('mouseup', this.onMouse, true); } - + layer.removeEventListener('click', this.onClick, true); layer.removeEventListener('touchstart', this.onTouchStart, false); layer.removeEventListener('touchmove', this.onTouchMove, false); layer.removeEventListener('touchend', this.onTouchEnd, false); layer.removeEventListener('touchcancel', this.onTouchCancel, false); }; - + /** * Check whether FastClick is needed. * @@ -1148,20 +1141,20 @@ var Application = var chromeVersion; var blackberryVersion; var firefoxVersion; - + // Devices that don't support touch don't need FastClick if (typeof window.ontouchstart === 'undefined') { return true; } - + // Chrome version - zero for other browsers chromeVersion = +(/Chrome\/([0-9]+)/.exec(navigator.userAgent) || [, 0])[1]; - + if (chromeVersion) { - + if (deviceIsAndroid) { metaViewport = document.querySelector('meta[name=viewport]'); - + if (metaViewport) { // Chrome on Android with user-scalable="no" doesn't need FastClick (issue #89) if (metaViewport.content.indexOf('user-scalable=no') !== -1) { @@ -1172,21 +1165,21 @@ var Application = return true; } } - + // Chrome desktop doesn't need FastClick (issue #15) } else { return true; } } - + if (deviceIsBlackBerry10) { blackberryVersion = navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/); - + // BlackBerry 10.3+ does not require Fastclick library. // https://github.com/ftlabs/fastclick/issues/251 if (blackberryVersion[1] >= 10 && blackberryVersion[2] >= 3) { metaViewport = document.querySelector('meta[name=viewport]'); - + if (metaViewport) { // user-scalable=no eliminates click delay. if (metaViewport.content.indexOf('user-scalable=no') !== -1) { @@ -1199,33 +1192,33 @@ var Application = } } } - + // IE10 with -ms-touch-action: none or manipulation, which disables double-tap-to-zoom (issue #97) if (layer.style.msTouchAction === 'none' || layer.style.touchAction === 'manipulation') { return true; } - + // Firefox version - zero for other browsers firefoxVersion = +(/Firefox\/([0-9]+)/.exec(navigator.userAgent) || [, 0])[1]; - + if (firefoxVersion >= 27) { // Firefox 27+ does not have tap delay if the content is not zoomable - https://bugzilla.mozilla.org/show_bug.cgi?id=922896 - + metaViewport = document.querySelector('meta[name=viewport]'); if (metaViewport && (metaViewport.content.indexOf('user-scalable=no') !== -1 || document.documentElement.scrollWidth <= window.outerWidth)) { return true; } } - + // IE11: prefixed -ms-touch-action is no longer supported and it's recomended to use non-prefixed version // http://msdn.microsoft.com/en-us/library/windows/apps/Hh767313.aspx if (layer.style.touchAction === 'none' || layer.style.touchAction === 'manipulation') { return true; } - + return false; }; - + /** * Factory method for creating a FastClick object * @@ -1235,9 +1228,9 @@ var Application = FastClick.attach = function (layer, options) { return new FastClick(layer, options); }; - + if ("function" === 'function' && _typeof(__webpack_require__(2)) === 'object' && __webpack_require__(2)) { - + // AMD. Register as an anonymous module. !(__WEBPACK_AMD_DEFINE_RESULT__ = function () { return FastClick; @@ -1254,8 +1247,8 @@ var Application = /* 2 */ /***/ function(module, exports) { - /* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {module.exports = __webpack_amd_options__; - + /* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {module.exports = __webpack_amd_options__; + /* WEBPACK VAR INJECTION */}.call(exports, {})) /***/ }, @@ -1263,17 +1256,17 @@ var Application = /***/ function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;"use strict"; - + var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - + /** - * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 0.7.1 + * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 0.7.2 * Copyright (C) 2016 Oliver Nightingale * @license MIT */ - + ;(function () { - + /** * Convenience function for instantiating a new lunr index and configuring it * with the default pipeline functions and the passed config function. @@ -1311,25 +1304,25 @@ var Application = */ var lunr = function lunr(config) { var idx = new lunr.Index(); - + idx.pipeline.add(lunr.trimmer, lunr.stopWordFilter, lunr.stemmer); - + if (config) config.call(idx, idx); - + return idx; }; - - lunr.version = "0.7.1"; + + lunr.version = "0.7.2"; /*! * lunr.utils * Copyright (C) 2016 Oliver Nightingale */ - + /** * A namespace containing utils for the rest of the lunr library */ lunr.utils = {}; - + /** * Print a warning message to the console. * @@ -1343,7 +1336,7 @@ var Application = } }; }(this); - + /** * Convert an object to a string. * @@ -1366,7 +1359,7 @@ var Application = * lunr.EventEmitter * Copyright (C) 2016 Oliver Nightingale */ - + /** * lunr.EventEmitter is an event emitter for lunr. It manages adding and removing event handlers and triggering events and their handlers. * @@ -1375,7 +1368,7 @@ var Application = lunr.EventEmitter = function () { this.events = {}; }; - + /** * Binds a handler function to a specific event(s). * @@ -1389,15 +1382,15 @@ var Application = var args = Array.prototype.slice.call(arguments), fn = args.pop(), names = args; - + if (typeof fn !== "function") throw new TypeError("last argument must be a function"); - + names.forEach(function (name) { if (!this.hasHandler(name)) this.events[name] = []; this.events[name].push(fn); }, this); }; - + /** * Removes a handler function from a specific event. * @@ -1407,13 +1400,13 @@ var Application = */ lunr.EventEmitter.prototype.removeListener = function (name, fn) { if (!this.hasHandler(name)) return; - + var fnIndex = this.events[name].indexOf(fn); this.events[name].splice(fnIndex, 1); - + if (!this.events[name].length) delete this.events[name]; }; - + /** * Calls all functions bound to the given event. * @@ -1425,14 +1418,14 @@ var Application = */ lunr.EventEmitter.prototype.emit = function (name) { if (!this.hasHandler(name)) return; - + var args = Array.prototype.slice.call(arguments, 1); - + this.events[name].forEach(function (fn) { fn.apply(undefined, args); }); }; - + /** * Checks whether a handler has ever been stored against an event. * @@ -1443,20 +1436,20 @@ var Application = lunr.EventEmitter.prototype.hasHandler = function (name) { return name in this.events; }; - + /*! * lunr.tokenizer * Copyright (C) 2016 Oliver Nightingale */ - + /** * A function for splitting a string into tokens ready to be inserted into - * the search index. Uses `lunr.tokenizer.seperator` to split strings, change + * the search index. Uses `lunr.tokenizer.separator` to split strings, change * the value of this property to change how strings are split into tokens. * * @module * @param {String} obj The string to convert into tokens - * @see lunr.tokenizer.seperator + * @see lunr.tokenizer.separator * @returns {Array} */ lunr.tokenizer = function (obj) { @@ -1464,10 +1457,30 @@ var Application = if (Array.isArray(obj)) return obj.map(function (t) { return lunr.utils.asString(t).toLowerCase(); }); - - return obj.toString().trim().toLowerCase().split(lunr.tokenizer.seperator); + + // TODO: This exists so that the deprecated property lunr.tokenizer.seperator can still be used. By + // default it is set to false and so the correctly spelt lunr.tokenizer.separator is used unless + // the user is using the old property to customise the tokenizer. + // + // This should be removed when version 1.0.0 is released. + var separator = lunr.tokenizer.seperator || lunr.tokenizer.separator; + + return obj.toString().trim().toLowerCase().split(separator); }; - + + /** + * This property is legacy alias for lunr.tokenizer.separator to maintain backwards compatability. + * When introduced the token was spelt incorrectly. It will remain until 1.0.0 when it will be removed, + * all code should use the correctly spelt lunr.tokenizer.separator property instead. + * + * @static + * @see lunr.tokenizer.separator + * @deprecated since 0.7.2 will be removed in 1.0.0 + * @private + * @see lunr.tokenizer + */ + lunr.tokenizer.seperator = false; + /** * The sperator used to split a string into tokens. Override this property to change the behaviour of * `lunr.tokenizer` behaviour when tokenizing strings. By default this splits on whitespace and hyphens. @@ -1475,8 +1488,8 @@ var Application = * @static * @see lunr.tokenizer */ - lunr.tokenizer.seperator = /[\s\-]+/; - + lunr.tokenizer.separator = /[\s\-]+/; + /** * Loads a previously serialised tokenizer. * @@ -1489,20 +1502,20 @@ var Application = */ lunr.tokenizer.load = function (label) { var fn = this.registeredFunctions[label]; - + if (!fn) { throw new Error('Cannot load un-registered function: ' + label); } - + return fn; }; - + lunr.tokenizer.label = 'default'; - + lunr.tokenizer.registeredFunctions = { 'default': lunr.tokenizer }; - + /** * Register a tokenizer function. * @@ -1518,7 +1531,7 @@ var Application = if (label in this.registeredFunctions) { lunr.utils.warn('Overwriting existing tokenizer: ' + label); } - + fn.label = label; this.registeredFunctions[label] = fn; }; @@ -1526,7 +1539,7 @@ var Application = * lunr.Pipeline * Copyright (C) 2016 Oliver Nightingale */ - + /** * lunr.Pipelines maintain an ordered list of functions to be applied to all * tokens in documents entering the search index and queries being ran against @@ -1559,9 +1572,9 @@ var Application = lunr.Pipeline = function () { this._stack = []; }; - + lunr.Pipeline.registeredFunctions = {}; - + /** * Register a function with the pipeline. * @@ -1579,11 +1592,11 @@ var Application = if (label in this.registeredFunctions) { lunr.utils.warn('Overwriting existing registered function: ' + label); } - + fn.label = label; lunr.Pipeline.registeredFunctions[fn.label] = fn; }; - + /** * Warns if the function is not registered as a Pipeline function. * @@ -1593,12 +1606,12 @@ var Application = */ lunr.Pipeline.warnIfFunctionNotRegistered = function (fn) { var isRegistered = fn.label && fn.label in this.registeredFunctions; - + if (!isRegistered) { lunr.utils.warn('Function is not registered with pipeline. This may cause problems when serialising the index.\n', fn); } }; - + /** * Loads a previously serialised pipeline. * @@ -1612,20 +1625,20 @@ var Application = */ lunr.Pipeline.load = function (serialised) { var pipeline = new lunr.Pipeline(); - + serialised.forEach(function (fnName) { var fn = lunr.Pipeline.registeredFunctions[fnName]; - + if (fn) { pipeline.add(fn); } else { throw new Error('Cannot load un-registered function: ' + fnName); } }); - + return pipeline; }; - + /** * Adds new functions to the end of the pipeline. * @@ -1636,13 +1649,13 @@ var Application = */ lunr.Pipeline.prototype.add = function () { var fns = Array.prototype.slice.call(arguments); - + fns.forEach(function (fn) { lunr.Pipeline.warnIfFunctionNotRegistered(fn); this._stack.push(fn); }, this); }; - + /** * Adds a single function after a function that already exists in the * pipeline. @@ -1655,16 +1668,16 @@ var Application = */ lunr.Pipeline.prototype.after = function (existingFn, newFn) { lunr.Pipeline.warnIfFunctionNotRegistered(newFn); - + var pos = this._stack.indexOf(existingFn); if (pos == -1) { throw new Error('Cannot find existingFn'); } - + pos = pos + 1; this._stack.splice(pos, 0, newFn); }; - + /** * Adds a single function before a function that already exists in the * pipeline. @@ -1677,15 +1690,15 @@ var Application = */ lunr.Pipeline.prototype.before = function (existingFn, newFn) { lunr.Pipeline.warnIfFunctionNotRegistered(newFn); - + var pos = this._stack.indexOf(existingFn); if (pos == -1) { throw new Error('Cannot find existingFn'); } - + this._stack.splice(pos, 0, newFn); }; - + /** * Removes a function from the pipeline. * @@ -1697,10 +1710,10 @@ var Application = if (pos == -1) { return; } - + this._stack.splice(pos, 1); }; - + /** * Runs the current list of functions that make up the pipeline against the * passed tokens. @@ -1713,21 +1726,21 @@ var Application = var out = [], tokenLength = tokens.length, stackLength = this._stack.length; - + for (var i = 0; i < tokenLength; i++) { var token = tokens[i]; - + for (var j = 0; j < stackLength; j++) { token = this._stack[j](token, i, tokens); if (token === void 0 || token === '') break; }; - + if (token !== void 0 && token !== '') out.push(token); }; - + return out; }; - + /** * Resets the pipeline by removing any existing processors. * @@ -1736,7 +1749,7 @@ var Application = lunr.Pipeline.prototype.reset = function () { this._stack = []; }; - + /** * Returns a representation of the pipeline ready for serialisation. * @@ -1748,7 +1761,7 @@ var Application = lunr.Pipeline.prototype.toJSON = function () { return this._stack.map(function (fn) { lunr.Pipeline.warnIfFunctionNotRegistered(fn); - + return fn.label; }); }; @@ -1756,7 +1769,7 @@ var Application = * lunr.Vector * Copyright (C) 2016 Oliver Nightingale */ - + /** * lunr.Vectors implement vector related operations for * a series of elements. @@ -1768,7 +1781,7 @@ var Application = this.list = undefined; this.length = 0; }; - + /** * lunr.Vector.Node is a simple struct for each node * in a lunr.Vector. @@ -1785,7 +1798,7 @@ var Application = this.val = val; this.next = next; }; - + /** * Inserts a new value at a position in a vector. * @@ -1796,33 +1809,33 @@ var Application = lunr.Vector.prototype.insert = function (idx, val) { this._magnitude = undefined; var list = this.list; - + if (!list) { this.list = new lunr.Vector.Node(idx, val, list); return this.length++; } - + if (idx < list.idx) { this.list = new lunr.Vector.Node(idx, val, list); return this.length++; } - + var prev = list, next = list.next; - + while (next != undefined) { if (idx < next.idx) { prev.next = new lunr.Vector.Node(idx, val, next); return this.length++; } - + prev = next, next = next.next; } - + prev.next = new lunr.Vector.Node(idx, val, next); return this.length++; }; - + /** * Calculates the magnitude of this vector. * @@ -1834,16 +1847,16 @@ var Application = var node = this.list, sumOfSquares = 0, val; - + while (node) { val = node.val; sumOfSquares += val * val; node = node.next; } - + return this._magnitude = Math.sqrt(sumOfSquares); }; - + /** * Calculates the dot product of this vector and another vector. * @@ -1855,7 +1868,7 @@ var Application = var node = this.list, otherNode = otherVector.list, dotProduct = 0; - + while (node && otherNode) { if (node.idx < otherNode.idx) { node = node.next; @@ -1867,10 +1880,10 @@ var Application = otherNode = otherNode.next; } } - + return dotProduct; }; - + /** * Calculates the cosine similarity between this vector and another * vector. @@ -1887,7 +1900,7 @@ var Application = * lunr.SortedSet * Copyright (C) 2016 Oliver Nightingale */ - + /** * lunr.SortedSets are used to maintain an array of uniq values in a sorted * order. @@ -1898,7 +1911,7 @@ var Application = this.length = 0; this.elements = []; }; - + /** * Loads a previously serialised sorted set. * @@ -1908,13 +1921,13 @@ var Application = */ lunr.SortedSet.load = function (serialisedData) { var set = new this(); - + set.elements = serialisedData; set.length = serialisedData.length; - + return set; }; - + /** * Inserts new items into the set in the correct position to maintain the * order. @@ -1924,16 +1937,16 @@ var Application = */ lunr.SortedSet.prototype.add = function () { var i, element; - + for (i = 0; i < arguments.length; i++) { element = arguments[i]; if (~this.indexOf(element)) continue; this.elements.splice(this.locationFor(element), 0, element); } - + this.length = this.elements.length; }; - + /** * Converts this sorted set into an array. * @@ -1943,7 +1956,7 @@ var Application = lunr.SortedSet.prototype.toArray = function () { return this.elements.slice(); }; - + /** * Creates a new array with the results of calling a provided function on every * element in this sorted set. @@ -1960,7 +1973,7 @@ var Application = lunr.SortedSet.prototype.map = function (fn, ctx) { return this.elements.map(fn, ctx); }; - + /** * Executes a provided function once per sorted set element. * @@ -1975,7 +1988,7 @@ var Application = lunr.SortedSet.prototype.forEach = function (fn, ctx) { return this.elements.forEach(fn, ctx); }; - + /** * Returns the index at which a given element can be found in the * sorted set, or -1 if it is not present. @@ -1990,23 +2003,23 @@ var Application = sectionLength = end - start, pivot = start + Math.floor(sectionLength / 2), pivotElem = this.elements[pivot]; - + while (sectionLength > 1) { if (pivotElem === elem) return pivot; - + if (pivotElem < elem) start = pivot; if (pivotElem > elem) end = pivot; - + sectionLength = end - start; pivot = start + Math.floor(sectionLength / 2); pivotElem = this.elements[pivot]; } - + if (pivotElem === elem) return pivot; - + return -1; }; - + /** * Returns the position within the sorted set that an element should be * inserted at to maintain the current order of the set. @@ -2024,20 +2037,20 @@ var Application = sectionLength = end - start, pivot = start + Math.floor(sectionLength / 2), pivotElem = this.elements[pivot]; - + while (sectionLength > 1) { if (pivotElem < elem) start = pivot; if (pivotElem > elem) end = pivot; - + sectionLength = end - start; pivot = start + Math.floor(sectionLength / 2); pivotElem = this.elements[pivot]; } - + if (pivotElem > elem) return pivot; if (pivotElem < elem) return pivot + 1; }; - + /** * Creates a new lunr.SortedSet that contains the elements in the intersection * of this set and the passed set. @@ -2054,30 +2067,30 @@ var Application = b_len = otherSet.length, a = this.elements, b = otherSet.elements; - + while (true) { if (i > a_len - 1 || j > b_len - 1) break; - + if (a[i] === b[j]) { intersectSet.add(a[i]); i++, j++; continue; } - + if (a[i] < b[j]) { i++; continue; } - + if (a[i] > b[j]) { j++; continue; } }; - + return intersectSet; }; - + /** * Makes a copy of this set * @@ -2086,13 +2099,13 @@ var Application = */ lunr.SortedSet.prototype.clone = function () { var clone = new lunr.SortedSet(); - + clone.elements = this.toArray(); clone.length = clone.elements.length; - + return clone; }; - + /** * Creates a new lunr.SortedSet that contains the elements in the union * of this set and the passed set. @@ -2103,22 +2116,22 @@ var Application = */ lunr.SortedSet.prototype.union = function (otherSet) { var longSet, shortSet, unionSet; - + if (this.length >= otherSet.length) { longSet = this, shortSet = otherSet; } else { longSet = otherSet, shortSet = this; } - + unionSet = longSet.clone(); - + for (var i = 0, shortSetElements = shortSet.toArray(); i < shortSetElements.length; i++) { unionSet.add(shortSetElements[i]); } - + return unionSet; }; - + /** * Returns a representation of the sorted set ready for serialisation. * @@ -2132,7 +2145,7 @@ var Application = * lunr.Index * Copyright (C) 2016 Oliver Nightingale */ - + /** * lunr.Index is object that manages a search index. It contains the indexes * and stores all the tokens and document lookups. It also provides the main @@ -2149,14 +2162,14 @@ var Application = this.corpusTokens = new lunr.SortedSet(); this.eventEmitter = new lunr.EventEmitter(); this.tokenizerFn = lunr.tokenizer; - + this._idfCache = {}; - + this.on('add', 'remove', 'update', function () { this._idfCache = {}; }.bind(this)); }; - + /** * Bind a handler to events being emitted by the index. * @@ -2170,7 +2183,7 @@ var Application = var args = Array.prototype.slice.call(arguments); return this.eventEmitter.addListener.apply(this.eventEmitter, args); }; - + /** * Removes a handler from an event being emitted by the index. * @@ -2181,7 +2194,7 @@ var Application = lunr.Index.prototype.off = function (name, fn) { return this.eventEmitter.removeListener(name, fn); }; - + /** * Loads a previously serialised index. * @@ -2196,21 +2209,21 @@ var Application = if (serialisedData.version !== lunr.version) { lunr.utils.warn('version mismatch: current ' + lunr.version + ' importing ' + serialisedData.version); } - + var idx = new this(); - + idx._fields = serialisedData.fields; idx._ref = serialisedData.ref; - - idx.tokenizer = lunr.tokenizer.load(serialisedData.tokenizer); + + idx.tokenizer(lunr.tokenizer.load(serialisedData.tokenizer)); idx.documentStore = lunr.Store.load(serialisedData.documentStore); idx.tokenStore = lunr.TokenStore.load(serialisedData.tokenStore); idx.corpusTokens = lunr.SortedSet.load(serialisedData.corpusTokens); idx.pipeline = lunr.Pipeline.load(serialisedData.pipeline); - + return idx; }; - + /** * Adds a field to the list of fields that will be searchable within documents * in the index. @@ -2232,11 +2245,11 @@ var Application = lunr.Index.prototype.field = function (fieldName, opts) { var opts = opts || {}, field = { name: fieldName, boost: opts.boost || 1 }; - + this._fields.push(field); return this; }; - + /** * Sets the property used to uniquely identify documents added to the index, * by default this property is 'id'. @@ -2257,7 +2270,7 @@ var Application = this._ref = refName; return this; }; - + /** * Sets the tokenizer used for this index. * @@ -2271,15 +2284,15 @@ var Application = */ lunr.Index.prototype.tokenizer = function (fn) { var isRegistered = fn.label && fn.label in lunr.tokenizer.registeredFunctions; - + if (!isRegistered) { lunr.utils.warn('Function is not a registered tokenizer. This may cause problems when serialising the index'); } - + this.tokenizerFn = fn; return this; }; - + /** * Add a document to the index. * @@ -2300,48 +2313,48 @@ var Application = allDocumentTokens = new lunr.SortedSet(), docRef = doc[this._ref], emitEvent = emitEvent === undefined ? true : emitEvent; - + this._fields.forEach(function (field) { var fieldTokens = this.pipeline.run(this.tokenizerFn(doc[field.name])); - + docTokens[field.name] = fieldTokens; - + for (var i = 0; i < fieldTokens.length; i++) { var token = fieldTokens[i]; allDocumentTokens.add(token); this.corpusTokens.add(token); } }, this); - + this.documentStore.set(docRef, allDocumentTokens); - + for (var i = 0; i < allDocumentTokens.length; i++) { var token = allDocumentTokens.elements[i]; var tf = 0; - + for (var j = 0; j < this._fields.length; j++) { var field = this._fields[j]; var fieldTokens = docTokens[field.name]; var fieldLength = fieldTokens.length; - + if (!fieldLength) continue; - + var tokenCount = 0; for (var k = 0; k < fieldLength; k++) { if (fieldTokens[k] === token) { tokenCount++; } } - + tf += tokenCount / fieldLength * field.boost; } - + this.tokenStore.add(token, { ref: docRef, tf: tf }); }; - + if (emitEvent) this.eventEmitter.emit('add', doc, this); }; - + /** * Removes a document from the index. * @@ -2363,20 +2376,20 @@ var Application = lunr.Index.prototype.remove = function (doc, emitEvent) { var docRef = doc[this._ref], emitEvent = emitEvent === undefined ? true : emitEvent; - + if (!this.documentStore.has(docRef)) return; - + var docTokens = this.documentStore.get(docRef); - + this.documentStore.remove(docRef); - + docTokens.forEach(function (token) { this.tokenStore.remove(token, docRef); }, this); - + if (emitEvent) this.eventEmitter.emit('remove', doc, this); }; - + /** * Updates a document in the index. * @@ -2399,13 +2412,13 @@ var Application = */ lunr.Index.prototype.update = function (doc, emitEvent) { var emitEvent = emitEvent === undefined ? true : emitEvent; - + this.remove(doc, false); this.add(doc, false); - + if (emitEvent) this.eventEmitter.emit('update', doc, this); }; - + /** * Calculates the inverse document frequency for a token within the index. * @@ -2417,17 +2430,17 @@ var Application = lunr.Index.prototype.idf = function (term) { var cacheKey = "@" + term; if (Object.prototype.hasOwnProperty.call(this._idfCache, cacheKey)) return this._idfCache[cacheKey]; - + var documentFrequency = this.tokenStore.count(term), idf = 1; - + if (documentFrequency > 0) { idf = 1 + Math.log(this.documentStore.length / documentFrequency); } - + return this._idfCache[cacheKey] = idf; }; - + /** * Searches the index using the passed query. * @@ -2459,23 +2472,23 @@ var Application = fieldBoosts = this._fields.reduce(function (memo, f) { return memo + f.boost; }, 0); - + var hasSomeToken = queryTokens.some(function (token) { return this.tokenStore.has(token); }, this); - + if (!hasSomeToken) return []; - + queryTokens.forEach(function (token, i, tokens) { var tf = 1 / tokens.length * this._fields.length * fieldBoosts, self = this; - + var set = this.tokenStore.expand(token).reduce(function (memo, key) { var pos = self.corpusTokens.indexOf(key), idf = self.idf(key), similarityBoost = 1, set = new lunr.SortedSet(); - + // if the expanded key is not an exact match to the token then // penalise the score for this key by how different the key is // to the token. @@ -2483,39 +2496,39 @@ var Application = var diff = Math.max(3, key.length - token.length); similarityBoost = 1 / Math.log(diff); } - + // calculate the query tf-idf score for this token // applying an similarityBoost to ensure exact matches // these rank higher than expanded terms if (pos > -1) queryVector.insert(pos, tf * idf * similarityBoost); - + // add all the documents that have this key into a set // ensuring that the type of key is preserved var matchingDocuments = self.tokenStore.get(key), refs = Object.keys(matchingDocuments), refsLen = refs.length; - + for (var i = 0; i < refsLen; i++) { set.add(matchingDocuments[refs[i]].ref); } - + return memo.union(set); }, new lunr.SortedSet()); - + documentSets.push(set); }, this); - + var documentSet = documentSets.reduce(function (memo, set) { return memo.intersect(set); }); - + return documentSet.map(function (ref) { return { ref: ref, score: queryVector.similarity(this.documentVector(ref)) }; }, this).sort(function (a, b) { return b.score - a.score; }); }; - + /** * Generates a vector containing all the tokens in the document matching the * passed documentRef. @@ -2534,18 +2547,18 @@ var Application = var documentTokens = this.documentStore.get(documentRef), documentTokensLength = documentTokens.length, documentVector = new lunr.Vector(); - + for (var i = 0; i < documentTokensLength; i++) { var token = documentTokens.elements[i], tf = this.tokenStore.get(token)[documentRef].tf, idf = this.idf(token); - + documentVector.insert(this.corpusTokens.indexOf(token), tf * idf); }; - + return documentVector; }; - + /** * Returns a representation of the index ready for serialisation. * @@ -2564,7 +2577,7 @@ var Application = pipeline: this.pipeline.toJSON() }; }; - + /** * Applies a plugin to the current index. * @@ -2600,7 +2613,7 @@ var Application = * lunr.Store * Copyright (C) 2016 Oliver Nightingale */ - + /** * lunr.Store is a simple key-value store used for storing sets of tokens for * documents stored in index. @@ -2612,7 +2625,7 @@ var Application = this.store = {}; this.length = 0; }; - + /** * Loads a previously serialised store * @@ -2622,16 +2635,16 @@ var Application = */ lunr.Store.load = function (serialisedData) { var store = new this(); - + store.length = serialisedData.length; store.store = Object.keys(serialisedData.store).reduce(function (memo, key) { memo[key] = lunr.SortedSet.load(serialisedData.store[key]); return memo; }, {}); - + return store; }; - + /** * Stores the given tokens in the store against the given id. * @@ -2643,7 +2656,7 @@ var Application = if (!this.has(id)) this.length++; this.store[id] = tokens; }; - + /** * Retrieves the tokens from the store for a given key. * @@ -2654,7 +2667,7 @@ var Application = lunr.Store.prototype.get = function (id) { return this.store[id]; }; - + /** * Checks whether the store contains a key. * @@ -2665,7 +2678,7 @@ var Application = lunr.Store.prototype.has = function (id) { return id in this.store; }; - + /** * Removes the value for a key in the store. * @@ -2674,11 +2687,11 @@ var Application = */ lunr.Store.prototype.remove = function (id) { if (!this.has(id)) return; - + delete this.store[id]; this.length--; }; - + /** * Returns a representation of the store ready for serialisation. * @@ -2691,13 +2704,13 @@ var Application = length: this.length }; }; - + /*! * lunr.stemmer * Copyright (C) 2016 Oliver Nightingale * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt */ - + /** * lunr.stemmer is an english language stemmer, this is a JavaScript * implementation of the PorterStemmer taken from http://tartarus.org/~martin @@ -2748,7 +2761,7 @@ var Application = // consonant sequence V = v + "[aeiou]*", // vowel sequence - + mgr0 = "^(" + C + ")?" + V + C, // [C]VC... is m>0 meq1 = "^(" + C + ")?" + V + C + "(" + V + ")?$", @@ -2756,12 +2769,12 @@ var Application = mgr1 = "^(" + C + ")?" + V + C + V + C, // [C]VCVC... is m>1 s_v = "^(" + C + ")?" + v; // vowel in stem - + var re_mgr0 = new RegExp(mgr0); var re_mgr1 = new RegExp(mgr1); var re_meq1 = new RegExp(meq1); var re_s_v = new RegExp(s_v); - + var re_1a = /^(.+?)(ss|i)es$/; var re2_1a = /^(.+?)([^s])s$/; var re_1b = /^(.+?)eed$/; @@ -2770,41 +2783,41 @@ var Application = var re2_1b_2 = /(at|bl|iz)$/; var re3_1b_2 = new RegExp("([^aeiouylsz])\\1$"); var re4_1b_2 = new RegExp("^" + C + v + "[^aeiouwxy]$"); - + var re_1c = /^(.+?[^aeiou])y$/; var re_2 = /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/; - + var re_3 = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/; - + var re_4 = /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/; var re2_4 = /^(.+?)(s|t)(ion)$/; - + var re_5 = /^(.+?)e$/; var re_5_1 = /ll$/; var re3_5 = new RegExp("^" + C + v + "[^aeiouwxy]$"); - + var porterStemmer = function porterStemmer(w) { var stem, suffix, firstch, re, re2, re3, re4; - + if (w.length < 3) { return w; } - + firstch = w.substr(0, 1); if (firstch == "y") { w = firstch.toUpperCase() + w.substr(1); } - + // Step 1a re = re_1a; re2 = re2_1a; - + if (re.test(w)) { w = w.replace(re, "$1$2"); } else if (re2.test(w)) { w = w.replace(re2, "$1$2"); } - + // Step 1b re = re_1b; re2 = re2_1b; @@ -2833,7 +2846,7 @@ var Application = } } } - + // Step 1c - replace suffix y or Y by i if preceded by a non-vowel which is not the first letter of the word (so cry -> cri, by -> by, say -> say) re = re_1c; if (re.test(w)) { @@ -2841,7 +2854,7 @@ var Application = stem = fp[1]; w = stem + "i"; } - + // Step 2 re = re_2; if (re.test(w)) { @@ -2853,7 +2866,7 @@ var Application = w = stem + step2list[suffix]; } } - + // Step 3 re = re_3; if (re.test(w)) { @@ -2865,7 +2878,7 @@ var Application = w = stem + step3list[suffix]; } } - + // Step 4 re = re_4; re2 = re2_4; @@ -2884,7 +2897,7 @@ var Application = w = stem; } } - + // Step 5 re = re_5; if (re.test(w)) { @@ -2897,32 +2910,32 @@ var Application = w = stem; } } - + re = re_5_1; re2 = re_mgr1; if (re.test(w) && re2.test(w)) { re = re_1b_2; w = w.replace(re, ""); } - + // and turn initial Y back to y - + if (firstch == "y") { w = firstch.toLowerCase() + w.substr(1); } - + return w; }; - + return porterStemmer; }(); - + lunr.Pipeline.registerFunction(lunr.stemmer, 'stemmer'); /*! * lunr.stopWordFilter * Copyright (C) 2016 Oliver Nightingale */ - + /** * lunr.generateStopWordFilter builds a stopWordFilter function from the provided * list of stop words. @@ -2941,12 +2954,12 @@ var Application = memo[stopWord] = stopWord; return memo; }, {}); - + return function (token) { if (token && words[token] !== token) return token; }; }; - + /** * lunr.stopWordFilter is an English language stop word list filter, any words * contained in the list will not be passed through the filter. @@ -2960,13 +2973,13 @@ var Application = * @see lunr.Pipeline */ lunr.stopWordFilter = lunr.generateStopWordFilter(['a', 'able', 'about', 'across', 'after', 'all', 'almost', 'also', 'am', 'among', 'an', 'and', 'any', 'are', 'as', 'at', 'be', 'because', 'been', 'but', 'by', 'can', 'cannot', 'could', 'dear', 'did', 'do', 'does', 'either', 'else', 'ever', 'every', 'for', 'from', 'get', 'got', 'had', 'has', 'have', 'he', 'her', 'hers', 'him', 'his', 'how', 'however', 'i', 'if', 'in', 'into', 'is', 'it', 'its', 'just', 'least', 'let', 'like', 'likely', 'may', 'me', 'might', 'most', 'must', 'my', 'neither', 'no', 'nor', 'not', 'of', 'off', 'often', 'on', 'only', 'or', 'other', 'our', 'own', 'rather', 'said', 'say', 'says', 'she', 'should', 'since', 'so', 'some', 'than', 'that', 'the', 'their', 'them', 'then', 'there', 'these', 'they', 'this', 'tis', 'to', 'too', 'twas', 'us', 'wants', 'was', 'we', 'were', 'what', 'when', 'where', 'which', 'while', 'who', 'whom', 'why', 'will', 'with', 'would', 'yet', 'you', 'your']); - + lunr.Pipeline.registerFunction(lunr.stopWordFilter, 'stopWordFilter'); /*! * lunr.trimmer * Copyright (C) 2016 Oliver Nightingale */ - + /** * lunr.trimmer is a pipeline function for trimming non word * characters from the begining and end of tokens before they @@ -2984,14 +2997,14 @@ var Application = lunr.trimmer = function (token) { return token.replace(/^\W+/, '').replace(/\W+$/, ''); }; - + lunr.Pipeline.registerFunction(lunr.trimmer, 'trimmer'); /*! * lunr.stemmer * Copyright (C) 2016 Oliver Nightingale * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt */ - + /** * lunr.TokenStore is used for efficient storing and lookup of the reverse * index of token to document ref. @@ -3002,7 +3015,7 @@ var Application = this.root = { docs: {} }; this.length = 0; }; - + /** * Loads a previously serialised token store * @@ -3012,13 +3025,13 @@ var Application = */ lunr.TokenStore.load = function (serialisedData) { var store = new this(); - + store.root = serialisedData.root; store.length = serialisedData.length; - + return store; }; - + /** * Adds a new token doc pair to the store. * @@ -3036,9 +3049,9 @@ var Application = var root = root || this.root, key = token.charAt(0), rest = token.slice(1); - + if (!(key in root)) root[key] = { docs: {} }; - + if (rest.length === 0) { root[key].docs[doc.ref] = doc; this.length += 1; @@ -3047,7 +3060,7 @@ var Application = return this.add(rest, doc, root[key]); } }; - + /** * Checks whether this key is contained within this lunr.TokenStore. * @@ -3060,18 +3073,18 @@ var Application = */ lunr.TokenStore.prototype.has = function (token) { if (!token) return false; - + var node = this.root; - + for (var i = 0; i < token.length; i++) { if (!node[token.charAt(i)]) return false; - + node = node[token.charAt(i)]; } - + return true; }; - + /** * Retrieve a node from the token store for a given token. * @@ -3086,18 +3099,18 @@ var Application = */ lunr.TokenStore.prototype.getNode = function (token) { if (!token) return {}; - + var node = this.root; - + for (var i = 0; i < token.length; i++) { if (!node[token.charAt(i)]) return {}; - + node = node[token.charAt(i)]; } - + return node; }; - + /** * Retrieve the documents for a node for the given token. * @@ -3112,11 +3125,11 @@ var Application = lunr.TokenStore.prototype.get = function (token, root) { return this.getNode(token, root).docs || {}; }; - + lunr.TokenStore.prototype.count = function (token, root) { return Object.keys(this.get(token, root)).length; }; - + /** * Remove the document identified by ref from the token in the store. * @@ -3132,15 +3145,15 @@ var Application = lunr.TokenStore.prototype.remove = function (token, ref) { if (!token) return; var node = this.root; - + for (var i = 0; i < token.length; i++) { if (!(token.charAt(i) in node)) return; node = node[token.charAt(i)]; } - + delete node.docs[ref]; }; - + /** * Find all the possible suffixes of the passed token using tokens * currently in the store. @@ -3153,18 +3166,18 @@ var Application = var root = this.getNode(token), docs = root.docs || {}, memo = memo || []; - + if (Object.keys(docs).length) memo.push(token); - + Object.keys(root).forEach(function (key) { if (key === 'docs') return; - + memo.concat(this.expand(token + key, memo)); }, this); - + return memo; }; - + /** * Returns a representation of the token store ready for serialisation. * @@ -3177,7 +3190,7 @@ var Application = length: this.length }; } - + /** * export the module via AMD, CommonJS or as a browser global * Export code from https://github.com/umdjs/umd/blob/master/returnExports.js @@ -3209,14 +3222,153 @@ var Application = /***/ }, /* 4 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { "use strict"; - + Object.defineProperty(exports, "__esModule", { value: true }); + + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + /* + * Copyright (c) 2016 Martin Donath + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ + + /* ---------------------------------------------------------------------------- + * Github Source + * ------------------------------------------------------------------------- */ + + var GithubSourceFacts = function () { + + /** + * Constructor. + * + * @constructor + * @param {object} storage - Accessor to storage, eg. `window.sessionStorage` + * @param {string} repoUrl - URL to Github repository + */ + function GithubSourceFacts(storage, repoUrl) { + _classCallCheck(this, GithubSourceFacts); + + this.storage = storage; + this.storageKey = "github-source-facts"; + this.apiRepoUrl = repoUrl.replace("github.com/", "api.github.com/repos/"); + } + + /** + * Retrieve stars and fork counts for the repository before invoking + * `GithubSourceFacts.paint`. + * + * @return {void} + */ + + + _createClass(GithubSourceFacts, [{ + key: "initialize", + value: function initialize() { + var _this = this; + + var facts = this.storage.getItem(this.storageKey); + + // Retrieve the facts, then invoke paint + if (!facts) { + fetch(this.apiRepoUrl).then(function (response) { + return response.json(); + }).then(function (data) { + var repoFacts = { + stars: data.stargazers_count, + forks: data.forks_count + }; + + _this.storage.setItem(_this.storageKey, JSON.stringify(repoFacts)); + + GithubSourceFacts.paint(repoFacts); + }).catch(function () { + // console.log("parsing failed", ex) + }); + // Use the cached facts + } else { + GithubSourceFacts.paint(JSON.parse(facts)); + } + } + + /** + * Populates `.md-source__facts` with star and fork counts. + * + * @param {integer} options.stars - Stars count for the repo + * @param {integer} options.forks - Fork count for the repo + * @return {void} + */ + + }], [{ + key: "paint", + value: function paint(_ref) { + var stars = _ref.stars; + var forks = _ref.forks; + + var lists = document.querySelectorAll(".md-source__facts"); // TODO 2x list in drawer and header + + [].forEach.call(lists, function (list) { + + var li = document.createElement("li"); + li.className = "md-source__fact md-source__fact--hidden"; + li.innerText = stars + " Stars"; + list.appendChild(li); + + setTimeout(function (lix) { + lix.classList.remove("md-source__fact--hidden"); + }, 100, li); + + li = document.createElement("li"); + li.className = "md-source__fact md-source__fact--hidden"; + li.innerText = forks + " Forks"; + list.appendChild(li); + + setTimeout(function (lix) { + lix.classList.remove("md-source__fact--hidden"); + }, 500, li); + }); + } + }]); + + return GithubSourceFacts; + }(); + + exports.default = GithubSourceFacts; + module.exports = exports["default"]; +/***/ }, +/* 5 */ +/***/ function(module, exports, __webpack_require__) { + + "use strict"; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); /* * Copyright (c) 2016 Martin Donath * @@ -3238,28 +3390,28 @@ var Application = * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ - - var _Sidebar = __webpack_require__(5); - + + var _Sidebar = __webpack_require__(6); + var _Sidebar2 = _interopRequireDefault(_Sidebar); - + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - + /* ---------------------------------------------------------------------------- * Material application * ------------------------------------------------------------------------- */ - + var Material = function () { function Material() { _classCallCheck(this, Material); } - + _createClass(Material, [{ key: "initialize", - - + + /** * Constructor * @@ -3268,19 +3420,19 @@ var Application = // constructor() { // // } - + /** * @return {void} */ value: function initialize() { - + // class AnchorMarker extends PageYOffsetListener // class SidebarConstrainer extends PageYOffsetListener - + // MatchMedia!? - + var width = window.matchMedia("(min-width: 1200px)"); - + // separate function in application.js --> initSidebar() var sidebar = new _Sidebar2.default.Position("[data-md-sidebar=primary]"); var handler = function handler() { @@ -3291,47 +3443,47 @@ var Application = } }; handler(); // check listen! - + var toc = new _Sidebar2.default.Position("[data-md-sidebar=secondary]"); toc.listen(); - + window.addEventListener("resize", handler); // TODO: orientation change etc... - + var marker = new _Sidebar2.default.Marker("[data-md-sidebar=secondary] .md-nav__link"); marker.listen(); } }]); - + return Material; }(); - + exports.default = Material; module.exports = exports["default"]; /***/ }, -/* 5 */ +/* 6 */ /***/ function(module, exports, __webpack_require__) { "use strict"; - + Object.defineProperty(exports, "__esModule", { value: true }); - - var _Marker = __webpack_require__(6); - + + var _Marker = __webpack_require__(7); + var _Marker2 = _interopRequireDefault(_Marker); - - var _Position = __webpack_require__(8); - + + var _Position = __webpack_require__(9); + var _Position2 = _interopRequireDefault(_Position); - + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - + /* ---------------------------------------------------------------------------- * Definition * ------------------------------------------------------------------------- */ - + /* * Copyright (c) 2016 Martin Donath * @@ -3353,7 +3505,7 @@ var Application = * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ - + exports.default = { Marker: _Marker2.default, Position: _Position2.default @@ -3361,27 +3513,27 @@ var Application = module.exports = exports["default"]; /***/ }, -/* 6 */ +/* 7 */ /***/ function(module, exports, __webpack_require__) { "use strict"; - + Object.defineProperty(exports, "__esModule", { value: true }); - + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - - var _Abstract2 = __webpack_require__(7); - + + var _Abstract2 = __webpack_require__(8); + var _Abstract3 = _interopRequireDefault(_Abstract2); - + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* * Copyright (c) 2016 Martin Donath * @@ -3403,14 +3555,14 @@ var Application = * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ - + /* ---------------------------------------------------------------------------- * Definition * ------------------------------------------------------------------------- */ - + var Marker = function (_Abstract) { _inherits(Marker, _Abstract); - + /** * Mark anchors within the table of contents above current page y-offset * @@ -3419,35 +3571,35 @@ var Application = */ function Marker(els) { _classCallCheck(this, Marker); - + /* Resolve elements */ var _this = _possibleConstructorReturn(this, (Marker.__proto__ || Object.getPrototypeOf(Marker)).call(this)); - + _this.els_ = typeof els === "string" ? document.querySelectorAll(els) : els; - + /* Initialize index and page y-offset */ _this.index_ = 0; _this.offset_ = window.pageYOffset; - + /* Index anchor nodes for fast lookup */ _this.anchors_ = [].map.call(_this.els_, function (el) { return document.querySelector(el.hash); }); return _this; } - + /** * Update anchor states * * @param {Event} ev - Event (omitted) */ - - + + _createClass(Marker, [{ key: "update", value: function update() { var offset = window.pageYOffset; - + /* Scroll direction is down */ if (this.offset_ <= offset) { for (var i = this.index_ + 1; i < this.els_.length; i++) { @@ -3458,7 +3610,7 @@ var Application = break; } } - + /* Scroll direction is up */ } else { for (var _i = this.index_; _i >= 0; _i--) { @@ -3470,15 +3622,15 @@ var Application = } } } - + /* Remember current offset for next iteration */ this.offset_ = offset; } - + /** * Reset anchor states */ - + }, { key: "reset", value: function reset() { @@ -3487,27 +3639,27 @@ var Application = }); } }]); - + return Marker; }(_Abstract3.default); - + exports.default = Marker; module.exports = exports["default"]; /***/ }, -/* 7 */ +/* 8 */ /***/ function(module, exports) { "use strict"; - + Object.defineProperty(exports, "__esModule", { value: true }); - + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - + /* * Copyright (c) 2016 Martin Donath * @@ -3529,13 +3681,13 @@ var Application = * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ - + /* ---------------------------------------------------------------------------- * Definition * ------------------------------------------------------------------------- */ - + var Abstract = function () { - + /** * Dispatch update on next repaint * @@ -3543,11 +3695,11 @@ var Application = */ function Abstract() { var _this = this; - + _classCallCheck(this, Abstract); - + if (this === Abstract) throw new TypeError("Cannot construct abstract instance"); - + /* Dispatch update on next repaint */ this.handler_ = function (ev) { window.requestAnimationFrame(function () { @@ -3555,95 +3707,95 @@ var Application = }); }; } - + /** * Update state * * @abstract */ - - + + _createClass(Abstract, [{ key: "update", value: function update() { throw new Error("update(): not implemented"); } - + /** * Reset state * * @abstract */ - + }, { key: "reset", value: function reset() { throw new Error("reset(): not implemented"); } - + /** * Register listener for all relevant events */ - + }, { key: "listen", value: function listen() { var _this2 = this; - + ["scroll", "resize", "orientationchange"].forEach(function (name) { window.addEventListener(name, _this2.handler_, false); }); - + /* Initial update */ this.update(); } - + /** * Unregister listener for all relevant events */ - + }, { key: "unlisten", value: function unlisten() { var _this3 = this; - + ["scroll", "resize", "orientationchange"].forEach(function (name) { window.removeEventListener(name, _this3.handler_, false); }); - + /* Final reset */ this.reset(); } }]); - + return Abstract; }(); - + exports.default = Abstract; module.exports = exports["default"]; /***/ }, -/* 8 */ +/* 9 */ /***/ function(module, exports, __webpack_require__) { "use strict"; - + Object.defineProperty(exports, "__esModule", { value: true }); - + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - - var _Abstract2 = __webpack_require__(7); - + + var _Abstract2 = __webpack_require__(8); + var _Abstract3 = _interopRequireDefault(_Abstract2); - + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* * Copyright (c) 2016 Martin Donath * @@ -3665,14 +3817,14 @@ var Application = * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ - + /* ---------------------------------------------------------------------------- * Definition * ------------------------------------------------------------------------- */ - + var Position = function (_Abstract) { _inherits(Position, _Abstract); - + /** * Set sidebars to locked state and limit height to parent node * @@ -3681,62 +3833,62 @@ var Application = */ function Position(el) { _classCallCheck(this, Position); - + /* Resolve elements */ var _this = _possibleConstructorReturn(this, (Position.__proto__ || Object.getPrototypeOf(Position)).call(this)); - + _this.el_ = typeof el === "string" ? document.querySelector(el) : el; - + /* Index inner and outer container */ var inner = _this.el_.parentNode; var outer = _this.el_.parentNode.parentNode; - + /* Get top and bottom bounds */ _this.offset_ = outer.offsetTop; _this.bounds_ = { top: inner.offsetTop, bottom: inner.offsetTop + inner.offsetHeight }; - + /* Initialize current height */ _this.height_ = 0; return _this; } - + /** * Update locked state and height * * @param {Event} ev - Event (omitted) */ - - + + _createClass(Position, [{ key: "update", value: function update() { var scroll = window.pageYOffset; var expand = window.innerHeight; - + /* Calculate new bounds */ var offset = this.bounds_.top - scroll; var height = expand - Math.max(0, scroll + expand - this.bounds_.bottom) - Math.max(offset, this.offset_); - + /* If height changed, update element */ if (height !== this.height_) this.el_.style.height = (this.height_ = height) + "px"; - + /* Sidebar should be locked, as we're below parent offset */ if (offset < this.offset_) { if (!this.el_.dataset.mdLocked) this.el_.dataset.mdLocked = ""; - + /* Sidebar should be unlocked, if locked */ } else if (typeof this.el_.dataset.mdLocked === "string") { delete this.el_.dataset.mdLocked; } } - + /** * Reset locked state and height */ - + }, { key: "reset", value: function reset() { @@ -3745,12 +3897,13 @@ var Application = this.height_ = 0; } }]); - + return Position; }(_Abstract3.default); - + exports.default = Position; module.exports = exports["default"]; /***/ } -/******/ ]); \ No newline at end of file +/******/ ]); +//# sourceMappingURL=application.js.map \ No newline at end of file diff --git a/material/assets/javascripts/application.js.map b/material/assets/javascripts/application.js.map index faab8ffb3..9f601a8f4 100644 --- a/material/assets/javascripts/application.js.map +++ b/material/assets/javascripts/application.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/bootstrap 97ae729e1a23bf686599","webpack:///./src/assets/javascripts/application.js","webpack:///./~/fastclick/lib/fastclick.js","webpack:///(webpack)/buildin/amd-options.js","webpack:///./~/lunr/lunr.js","webpack:///./src/assets/javascripts/components/Material.js","webpack:///./src/assets/javascripts/components/Material/Sidebar.js","webpack:///./src/assets/javascripts/components/Material/Sidebar/Marker.js","webpack:///./src/assets/javascripts/components/Material/Sidebar/Abstract.js","webpack:///./src/assets/javascripts/components/Material/Sidebar/Position.js"],"names":["Application","material","initialize","document","addEventListener","Modernizr","addTest","navigator","userAgent","match","standalone","attach","body","query","getElementById","querySelector","dataset","mdLocked","offset","toggle","list","lock","matchMedia","matches","setTimeout","window","scrollTo","scrollY","focus","toggleSearchClose","setAttribute","toggles","querySelectorAll","forEach","call","nav","togglex","nextElementSibling","style","maxHeight","getBoundingClientRect","height","first","requestAnimationFrame","classList","add","last","remove","ev","target","fetch","then","response","json","stars","data","stargazers_count","forks","forks_count","lists","li","createElement","className","innerText","appendChild","lix","catch","index","field","boost","ref","articles","docs","article","text","replace","string","g1","location","baseUrl","queryx","container","firstChild","removeChild","results","search","value","result","link","href","title","innerHTML","truncate","n","i","length","substring","meta","FastClick","layer","options","oldOnClick","trackingClick","trackingClickStart","targetElement","touchStartX","touchStartY","lastTouchIdentifier","touchBoundary","tapDelay","tapTimeout","notNeeded","bind","method","context","apply","arguments","methods","l","deviceIsAndroid","onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel","Event","prototype","stopImmediatePropagation","removeEventListener","type","callback","capture","rmv","Node","hijacked","adv","event","propagationStopped","onclick","deviceIsWindowsPhone","indexOf","deviceIsIOS","test","deviceIsIOS4","deviceIsIOSWithBadTarget","deviceIsBlackBerry10","needsClick","nodeName","toLowerCase","disabled","needsFocus","readOnly","sendClick","clickEvent","touch","activeElement","blur","changedTouches","createEvent","initMouseEvent","determineEventType","screenX","screenY","clientX","clientY","forwardedTouchEvent","dispatchEvent","tagName","setSelectionRange","updateScrollParent","scrollParent","parentElement","fastClickScrollParent","contains","scrollHeight","offsetHeight","fastClickLastScrollTop","scrollTop","getTargetElementFromEventTarget","eventTarget","nodeType","TEXT_NODE","parentNode","selection","targetTouches","getSelection","rangeCount","isCollapsed","identifier","preventDefault","timeStamp","pageX","pageY","lastClickTime","touchHasMoved","boundary","Math","abs","findControl","labelElement","control","undefined","htmlFor","forElement","targetTagName","cancelNextClick","elementFromPoint","pageXOffset","pageYOffset","top","cancelable","stopPropagation","permitted","detail","destroy","metaViewport","chromeVersion","blackberryVersion","firefoxVersion","ontouchstart","exec","content","documentElement","scrollWidth","outerWidth","msTouchAction","touchAction","define","module","exports","lunr","config","idx","Index","pipeline","trimmer","stopWordFilter","stemmer","version","utils","warn","global","message","console","asString","obj","toString","EventEmitter","events","addListener","args","Array","slice","fn","pop","names","TypeError","name","hasHandler","push","removeListener","fnIndex","splice","emit","tokenizer","isArray","map","t","trim","split","seperator","load","label","registeredFunctions","Error","registerFunction","Pipeline","_stack","warnIfFunctionNotRegistered","isRegistered","serialised","fnName","fns","after","existingFn","newFn","pos","before","run","tokens","out","tokenLength","stackLength","token","j","reset","toJSON","Vector","_magnitude","val","next","insert","prev","magnitude","node","sumOfSquares","sqrt","dot","otherVector","otherNode","dotProduct","similarity","SortedSet","elements","serialisedData","set","element","locationFor","toArray","ctx","elem","start","end","sectionLength","pivot","floor","pivotElem","intersect","otherSet","intersectSet","a_len","b_len","a","b","clone","union","longSet","shortSet","unionSet","shortSetElements","_fields","_ref","documentStore","Store","tokenStore","TokenStore","corpusTokens","eventEmitter","tokenizerFn","_idfCache","on","off","fields","fieldName","opts","refName","doc","emitEvent","docTokens","allDocumentTokens","docRef","fieldTokens","tf","fieldLength","tokenCount","k","has","get","update","idf","term","cacheKey","Object","hasOwnProperty","documentFrequency","count","log","queryTokens","queryVector","documentSets","fieldBoosts","reduce","memo","f","hasSomeToken","some","self","expand","key","similarityBoost","diff","max","matchingDocuments","refs","keys","refsLen","documentSet","score","documentVector","sort","documentRef","documentTokens","documentTokensLength","use","plugin","unshift","store","id","step2list","step3list","c","v","C","V","mgr0","meq1","mgr1","s_v","re_mgr0","RegExp","re_mgr1","re_meq1","re_s_v","re_1a","re2_1a","re_1b","re2_1b","re_1b_2","re2_1b_2","re3_1b_2","re4_1b_2","re_1c","re_2","re_3","re_4","re2_4","re_5","re_5_1","re3_5","porterStemmer","w","stem","suffix","firstch","re","re2","re3","re4","substr","toUpperCase","fp","generateStopWordFilter","stopWords","words","stopWord","root","charAt","rest","getNode","concat","factory","Material","width","sidebar","Position","handler","listen","unlisten","toc","marker","Marker","els","els_","index_","offset_","anchors_","el","hash","offsetTop","mdMarked","Abstract","handler_","el_","inner","outer","bounds_","bottom","height_","scroll","innerHeight"],"mappings":";;AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;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AAiBC,QAAjB,GAA4B,EAA5B;;AAEJ;AACC,QALD,MAKO,IAAI,OAAO,KAAKkd,GAAL,CAASnd,OAAT,CAAiBC,QAAxB,KAAqC,QAAzC,EAAmD;AACxD,gBAAO,KAAKkd,GAAL,CAASnd,OAAT,CAAiBC,QAAxB;AACD;AACF;;AAED;;;;;;6BAGQ;AACN,cAAO,KAAKkd,GAAL,CAASnd,OAAT,CAAiBC,QAAxB;AACA,YAAKkd,GAAL,CAAS7b,KAAT,CAAeG,MAAf,GAAwB,EAAxB;AACA,YAAK+b,OAAL,GAAe,CAAf;AACD;;;;;;mBApEkBvB,Q","file":"application.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap 97ae729e1a23bf686599\n **/","/*\n * Copyright (c) 2016 Martin Donath \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/* ----------------------------------------------------------------------------\n * Imports\n * ------------------------------------------------------------------------- */\n\nimport FastClick from \"fastclick\"\nimport lunr from \"lunr\"\n\n// import Expander from \"./components/expander\"\n\nimport Material from \"./components/Material\"\n\n// import Search from './components/search';\n\n/* ----------------------------------------------------------------------------\n * Application\n * ------------------------------------------------------------------------- */\n\nclass Application {\n\n /**\n * @return {void}\n */\n initialize() {\n const material = new Material()\n material.initialize()\n }\n}\n\nexport default Application\n\n// TODO: wrap in function call\n// application module export\n\n/* Initialize application upon DOM ready */\ndocument.addEventListener(\"DOMContentLoaded\", () => {\n\n /* Test for iOS */\n Modernizr.addTest(\"ios\", () => {\n return !!navigator.userAgent.match(/(iPad|iPhone|iPod)/g)\n })\n\n /* Test for web application context */\n Modernizr.addTest(\"standalone\", () => {\n return !!navigator.standalone\n })\n\n /* Attack FastClick to mitigate 300ms delay on touch devices */\n FastClick.attach(document.body)\n\n const query = document.getElementById(\"query\")\n query.addEventListener(\"focus\", () => {\n document.querySelector(\".md-search\").dataset.mdLocked = \"\"\n })\n\n /* Intercept click on search mode toggle */\n let offset = 0\n const toggle = document.getElementById(\"search\")\n toggle.addEventListener(\"click\", ev => { // TODO: click may be the wrong event...\n const list = document.body // classList md bla\n const lock = !matchMedia(\"only screen and (min-width: 960px)\").matches\n\n /* Exiting search mode */\n if (list.dataset.mdLocked) {\n delete list.dataset.mdLocked\n\n /* Scroll to former position, but wait for 100ms to prevent flashes\n on iOS. A short timeout seems to do the trick */\n if (lock)\n setTimeout(() => {\n window.scrollTo(0, offset)\n }, 100)\n\n /* Entering search mode */\n } else {\n offset = window.scrollY\n\n /* First timeout: scroll to top after transition, to omit flickering */\n if (lock)\n setTimeout(() => {\n window.scrollTo(0, 0)\n }, 400)\n\n /* Second timeout: Lock body after finishing transition and scrolling to\n top and focus input field. Sadly, the focus event is not dispatched\n on iOS Safari and there's nothing we can do about it. */\n setTimeout(() => {\n\n /* This additional check is necessary to handle fast subsequent clicks\n on the toggle and the timeout to lock the body must be cancelled */\n // if (ev.target.checked) {\n if (lock)\n list.dataset.mdLocked = \"\"\n setTimeout(() => {\n document.getElementById(\"query\").focus()\n }, 200)\n // }\n }, 450)\n }\n })\n\n // TODO: only do this on MOBILE and TABLET\n const toggleSearchClose = document.querySelector(\".md-search__icon\")\n toggleSearchClose.setAttribute(\"for\", \"search\") // override query with search, when on mobile!!!\n // toggleSearchClose.addEventListener(\"click\", ev => {\n // ev.preventDefault()\n // // ev.target\n //\n // const search = document.getElementById(\"search\")\n // search.checked = false\n // })\n\n // var toc = new Sidebar('.md-sidebar--secondary');\n // toc.listen();\n\n const toggles =\n document.querySelectorAll(\".md-nav__item--nested > .md-nav__link\");\n [].forEach.call(toggles, togglex => {\n const nav = togglex.nextElementSibling\n\n // 1.\n\n nav.style.maxHeight = `${nav.getBoundingClientRect().height}px`\n\n togglex.addEventListener(\"click\", () => {\n const first = nav.getBoundingClientRect().height\n if (first) {\n // console.log('closing');\n nav.style.maxHeight = `${first}px` // reset!\n requestAnimationFrame(() => {\n\n nav.classList.add(\"md-nav--transitioning\")\n nav.style.maxHeight = \"0px\"\n })\n } else {\n // console.log('opening');\n\n /* Toggle and read height */\n nav.style.maxHeight = \"\"\n\n nav.classList.add(\"md-nav--toggled\")\n const last = nav.getBoundingClientRect().height\n nav.classList.remove(\"md-nav--toggled\")\n\n // Initial state\n nav.style.maxHeight = \"0px\"\n\n /* Enable animations */\n requestAnimationFrame(() => {\n nav.classList.add(\"md-nav--transitioning\")\n nav.style.maxHeight = `${last}px`\n })\n }\n\n })\n\n // Capture the end with transitionend\n nav.addEventListener(\"transitionend\", ev => {\n ev.target.classList.remove(\"md-nav--transitioning\")\n if (ev.target.getBoundingClientRect().height > 0) {\n ev.target.style.maxHeight = \"100%\"\n }\n })\n })\n\n// setTimeout(function() {\n fetch(\"https://api.github.com/repos/squidfunk/mkdocs-material\")\n .then(response => {\n return response.json()\n })\n .then(data => {\n // console.log(data)\n const stars = data.stargazers_count\n const forks = data.forks_count\n // store in session!!!\n const lists = document.querySelectorAll(\".md-source__facts\"); // TODO 2x list in drawer and header\n [].forEach.call(lists, list => {\n\n let li = document.createElement(\"li\")\n li.className = \"md-source__fact md-source__fact--hidden\"\n li.innerText = `${stars} Stars`\n list.appendChild(li)\n\n setTimeout(lix => {\n lix.classList.remove(\"md-source__fact--hidden\")\n }, 100, li)\n\n li = document.createElement(\"li\")\n li.className = \"md-source__fact md-source__fact--hidden\"\n li.innerText = `${forks} Forks`\n list.appendChild(li)\n\n setTimeout(lix => {\n lix.classList.remove(\"md-source__fact--hidden\")\n }, 500, li)\n })\n\n // setTimeout(function() {\n // li.classList.remove('md-source__fact--hidden');\n // }, 100);\n\n })\n .catch(() => {\n // console.log(\"parsing failed\", ex)\n\n })\n\n // setTimeout(function() {\n fetch(\"/mkdocs/search_index.json\") // TODO: prepend BASE URL!!!\n .then(response => {\n return response.json()\n })\n .then(data => {\n // console.log(data)\n\n /* Create index */\n const index = lunr(function() {\n /* eslint-disable no-invalid-this, lines-around-comment */\n this.field(\"title\", { boost: 10 })\n this.field(\"text\")\n this.ref(\"location\")\n /* eslint-enable no-invalid-this, lines-around-comment */\n })\n\n /* Index articles */\n const articles = {}\n data.docs.forEach(article => {\n\n // TODO: match for two whitespaces, then replace unnecessary whitespace after string\n article.text = article.text.replace(/\\s(\\.,\\:)\\s/gi, (string, g1) => {\n return `${g1} `\n })\n // TODO: window.baseUrl sucks...\n article.location = window.baseUrl + article.location\n articles[article.location] = article\n index.add(article)\n })\n\n /* Register keyhandler to execute search on key up */\n const queryx = document.getElementById(\"query\")\n queryx.addEventListener(\"keyup\", () => {\n const container = document.querySelector(\".md-search-result__list\")\n while (container.firstChild)\n container.removeChild(container.firstChild)\n\n // /* Abort, if the query is empty */\n // var bar = document.querySelector('.bar.search');\n // if (!query.value.length) {\n // while (meta.firstChild)\n // meta.removeChild(meta.firstChild);\n //\n // /* Restore state */\n // bar.classList.remove('non-empty');\n // return;\n // }\n\n /* Show reset button */\n // bar.classList.add('non-empty');\n\n /* Execute search */\n const results = index.search(query.value)\n results.forEach(result => {\n const article = articles[result.ref]\n\n /* Create a link referring to the article */\n const link = document.createElement(\"a\")\n link.classList.add(\"md-search-result__link\")\n link.href = article.location\n\n // /* Create article container */\n const li = document.createElement(\"li\")\n li.classList.add(\"md-search-result__item\")\n li.appendChild(link)\n\n /* Create title element */\n const title = document.createElement(\"div\")\n title.classList.add(\"md-search-result__title\")\n\n // article.title.split(//)\n\n title.innerHTML = article.title\n link.appendChild(title)\n\n /* Truncate a string after the given number of characters */\n const truncate = function(string, n) {\n let i = n\n if (string.length > i) {\n while (string[i] !== \" \" && --i > 0);\n return `${string.substring(0, i)}…`\n }\n return string\n }\n\n /* Create text element */\n const text = document.createElement(\"p\")\n text.classList.add(\"md-search-result__description\")\n text.innerHTML = truncate(article.text) // .truncate(140);\n text.innerHTML = truncate(article.text, 140) // .truncate(140);\n link.appendChild(text)\n\n container.appendChild(li)\n })\n\n /* Show number of search results */\n // var number = document.createElement('strong');\n\n const meta = document.querySelector(\".md-search-result__meta\")\n meta.innerHTML = `${results.length} search result${\n results.length !== 1\n ? \"s\"\n : \"\"}`\n\n /* Update number */\n // while (meta.firstChild)\n // meta.removeChild(meta.firstChild);\n // meta.appendChild(number);\n })\n\n // setTimeout(function() {\n // li.classList.remove('md-source__fact--hidden');\n // }, 100);\n\n })\n .catch(() => {\n // console.log(\"parsing failed\", ex)\n })\n// }, 1000);\n\n fetch(\n \"https://api.github.com/repos/squidfunk/mkdocs-material/releases/latest\")\n .then(response => {\n return response.json()\n })\n // .then(data => {\n // // console.log(data)\n // })\n\n})\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/assets/javascripts/application.js\n **/",";(function () {\n\t'use strict';\n\n\t/**\n\t * @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.\n\t *\n\t * @codingstandard ftlabs-jsv2\n\t * @copyright The Financial Times Limited [All Rights Reserved]\n\t * @license MIT License (see LICENSE.txt)\n\t */\n\n\t/*jslint browser:true, node:true*/\n\t/*global define, Event, Node*/\n\n\n\t/**\n\t * Instantiate fast-clicking listeners on the specified layer.\n\t *\n\t * @constructor\n\t * @param {Element} layer The layer to listen on\n\t * @param {Object} [options={}] The options to override the defaults\n\t */\n\tfunction FastClick(layer, options) {\n\t\tvar oldOnClick;\n\n\t\toptions = options || {};\n\n\t\t/**\n\t\t * Whether a click is currently being tracked.\n\t\t *\n\t\t * @type boolean\n\t\t */\n\t\tthis.trackingClick = false;\n\n\n\t\t/**\n\t\t * Timestamp for when click tracking started.\n\t\t *\n\t\t * @type number\n\t\t */\n\t\tthis.trackingClickStart = 0;\n\n\n\t\t/**\n\t\t * The element being tracked for a click.\n\t\t *\n\t\t * @type EventTarget\n\t\t */\n\t\tthis.targetElement = null;\n\n\n\t\t/**\n\t\t * X-coordinate of touch start event.\n\t\t *\n\t\t * @type number\n\t\t */\n\t\tthis.touchStartX = 0;\n\n\n\t\t/**\n\t\t * Y-coordinate of touch start event.\n\t\t *\n\t\t * @type number\n\t\t */\n\t\tthis.touchStartY = 0;\n\n\n\t\t/**\n\t\t * ID of the last touch, retrieved from Touch.identifier.\n\t\t *\n\t\t * @type number\n\t\t */\n\t\tthis.lastTouchIdentifier = 0;\n\n\n\t\t/**\n\t\t * Touchmove boundary, beyond which a click will be cancelled.\n\t\t *\n\t\t * @type number\n\t\t */\n\t\tthis.touchBoundary = options.touchBoundary || 10;\n\n\n\t\t/**\n\t\t * The FastClick layer.\n\t\t *\n\t\t * @type Element\n\t\t */\n\t\tthis.layer = layer;\n\n\t\t/**\n\t\t * The minimum time between tap(touchstart and touchend) events\n\t\t *\n\t\t * @type number\n\t\t */\n\t\tthis.tapDelay = options.tapDelay || 200;\n\n\t\t/**\n\t\t * The maximum time for a tap\n\t\t *\n\t\t * @type number\n\t\t */\n\t\tthis.tapTimeout = options.tapTimeout || 700;\n\n\t\tif (FastClick.notNeeded(layer)) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Some old versions of Android don't have Function.prototype.bind\n\t\tfunction bind(method, context) {\n\t\t\treturn function() { return method.apply(context, arguments); };\n\t\t}\n\n\n\t\tvar methods = ['onMouse', 'onClick', 'onTouchStart', 'onTouchMove', 'onTouchEnd', 'onTouchCancel'];\n\t\tvar context = this;\n\t\tfor (var i = 0, l = methods.length; i < l; i++) {\n\t\t\tcontext[methods[i]] = bind(context[methods[i]], context);\n\t\t}\n\n\t\t// Set up event handlers as required\n\t\tif (deviceIsAndroid) {\n\t\t\tlayer.addEventListener('mouseover', this.onMouse, true);\n\t\t\tlayer.addEventListener('mousedown', this.onMouse, true);\n\t\t\tlayer.addEventListener('mouseup', this.onMouse, true);\n\t\t}\n\n\t\tlayer.addEventListener('click', this.onClick, true);\n\t\tlayer.addEventListener('touchstart', this.onTouchStart, false);\n\t\tlayer.addEventListener('touchmove', this.onTouchMove, false);\n\t\tlayer.addEventListener('touchend', this.onTouchEnd, false);\n\t\tlayer.addEventListener('touchcancel', this.onTouchCancel, false);\n\n\t\t// Hack is required for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2)\n\t\t// which is how FastClick normally stops click events bubbling to callbacks registered on the FastClick\n\t\t// layer when they are cancelled.\n\t\tif (!Event.prototype.stopImmediatePropagation) {\n\t\t\tlayer.removeEventListener = function(type, callback, capture) {\n\t\t\t\tvar rmv = Node.prototype.removeEventListener;\n\t\t\t\tif (type === 'click') {\n\t\t\t\t\trmv.call(layer, type, callback.hijacked || callback, capture);\n\t\t\t\t} else {\n\t\t\t\t\trmv.call(layer, type, callback, capture);\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tlayer.addEventListener = function(type, callback, capture) {\n\t\t\t\tvar adv = Node.prototype.addEventListener;\n\t\t\t\tif (type === 'click') {\n\t\t\t\t\tadv.call(layer, type, callback.hijacked || (callback.hijacked = function(event) {\n\t\t\t\t\t\tif (!event.propagationStopped) {\n\t\t\t\t\t\t\tcallback(event);\n\t\t\t\t\t\t}\n\t\t\t\t\t}), capture);\n\t\t\t\t} else {\n\t\t\t\t\tadv.call(layer, type, callback, capture);\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\n\t\t// If a handler is already declared in the element's onclick attribute, it will be fired before\n\t\t// FastClick's onClick handler. Fix this by pulling out the user-defined handler function and\n\t\t// adding it as listener.\n\t\tif (typeof layer.onclick === 'function') {\n\n\t\t\t// Android browser on at least 3.2 requires a new reference to the function in layer.onclick\n\t\t\t// - the old one won't work if passed to addEventListener directly.\n\t\t\toldOnClick = layer.onclick;\n\t\t\tlayer.addEventListener('click', function(event) {\n\t\t\t\toldOnClick(event);\n\t\t\t}, false);\n\t\t\tlayer.onclick = null;\n\t\t}\n\t}\n\n\t/**\n\t* Windows Phone 8.1 fakes user agent string to look like Android and iPhone.\n\t*\n\t* @type boolean\n\t*/\n\tvar deviceIsWindowsPhone = navigator.userAgent.indexOf(\"Windows Phone\") >= 0;\n\n\t/**\n\t * Android requires exceptions.\n\t *\n\t * @type boolean\n\t */\n\tvar deviceIsAndroid = navigator.userAgent.indexOf('Android') > 0 && !deviceIsWindowsPhone;\n\n\n\t/**\n\t * iOS requires exceptions.\n\t *\n\t * @type boolean\n\t */\n\tvar deviceIsIOS = /iP(ad|hone|od)/.test(navigator.userAgent) && !deviceIsWindowsPhone;\n\n\n\t/**\n\t * iOS 4 requires an exception for select elements.\n\t *\n\t * @type boolean\n\t */\n\tvar deviceIsIOS4 = deviceIsIOS && (/OS 4_\\d(_\\d)?/).test(navigator.userAgent);\n\n\n\t/**\n\t * iOS 6.0-7.* requires the target element to be manually derived\n\t *\n\t * @type boolean\n\t */\n\tvar deviceIsIOSWithBadTarget = deviceIsIOS && (/OS [6-7]_\\d/).test(navigator.userAgent);\n\n\t/**\n\t * BlackBerry requires exceptions.\n\t *\n\t * @type boolean\n\t */\n\tvar deviceIsBlackBerry10 = navigator.userAgent.indexOf('BB10') > 0;\n\n\t/**\n\t * Determine whether a given element requires a native click.\n\t *\n\t * @param {EventTarget|Element} target Target DOM element\n\t * @returns {boolean} Returns true if the element needs a native click\n\t */\n\tFastClick.prototype.needsClick = function(target) {\n\t\tswitch (target.nodeName.toLowerCase()) {\n\n\t\t// Don't send a synthetic click to disabled inputs (issue #62)\n\t\tcase 'button':\n\t\tcase 'select':\n\t\tcase 'textarea':\n\t\t\tif (target.disabled) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tbreak;\n\t\tcase 'input':\n\n\t\t\t// File inputs need real clicks on iOS 6 due to a browser bug (issue #68)\n\t\t\tif ((deviceIsIOS && target.type === 'file') || target.disabled) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tbreak;\n\t\tcase 'label':\n\t\tcase 'iframe': // iOS8 homescreen apps can prevent events bubbling into frames\n\t\tcase 'video':\n\t\t\treturn true;\n\t\t}\n\n\t\treturn (/\\bneedsclick\\b/).test(target.className);\n\t};\n\n\n\t/**\n\t * Determine whether a given element requires a call to focus to simulate click into element.\n\t *\n\t * @param {EventTarget|Element} target Target DOM element\n\t * @returns {boolean} Returns true if the element requires a call to focus to simulate native click.\n\t */\n\tFastClick.prototype.needsFocus = function(target) {\n\t\tswitch (target.nodeName.toLowerCase()) {\n\t\tcase 'textarea':\n\t\t\treturn true;\n\t\tcase 'select':\n\t\t\treturn !deviceIsAndroid;\n\t\tcase 'input':\n\t\t\tswitch (target.type) {\n\t\t\tcase 'button':\n\t\t\tcase 'checkbox':\n\t\t\tcase 'file':\n\t\t\tcase 'image':\n\t\t\tcase 'radio':\n\t\t\tcase 'submit':\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// No point in attempting to focus disabled inputs\n\t\t\treturn !target.disabled && !target.readOnly;\n\t\tdefault:\n\t\t\treturn (/\\bneedsfocus\\b/).test(target.className);\n\t\t}\n\t};\n\n\n\t/**\n\t * Send a click event to the specified element.\n\t *\n\t * @param {EventTarget|Element} targetElement\n\t * @param {Event} event\n\t */\n\tFastClick.prototype.sendClick = function(targetElement, event) {\n\t\tvar clickEvent, touch;\n\n\t\t// On some Android devices activeElement needs to be blurred otherwise the synthetic click will have no effect (#24)\n\t\tif (document.activeElement && document.activeElement !== targetElement) {\n\t\t\tdocument.activeElement.blur();\n\t\t}\n\n\t\ttouch = event.changedTouches[0];\n\n\t\t// Synthesise a click event, with an extra attribute so it can be tracked\n\t\tclickEvent = document.createEvent('MouseEvents');\n\t\tclickEvent.initMouseEvent(this.determineEventType(targetElement), true, true, window, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null);\n\t\tclickEvent.forwardedTouchEvent = true;\n\t\ttargetElement.dispatchEvent(clickEvent);\n\t};\n\n\tFastClick.prototype.determineEventType = function(targetElement) {\n\n\t\t//Issue #159: Android Chrome Select Box does not open with a synthetic click event\n\t\tif (deviceIsAndroid && targetElement.tagName.toLowerCase() === 'select') {\n\t\t\treturn 'mousedown';\n\t\t}\n\n\t\treturn 'click';\n\t};\n\n\n\t/**\n\t * @param {EventTarget|Element} targetElement\n\t */\n\tFastClick.prototype.focus = function(targetElement) {\n\t\tvar length;\n\n\t\t// Issue #160: on iOS 7, some input elements (e.g. date datetime month) throw a vague TypeError on setSelectionRange. These elements don't have an integer value for the selectionStart and selectionEnd properties, but unfortunately that can't be used for detection because accessing the properties also throws a TypeError. Just check the type instead. Filed as Apple bug #15122724.\n\t\tif (deviceIsIOS && targetElement.setSelectionRange && targetElement.type.indexOf('date') !== 0 && targetElement.type !== 'time' && targetElement.type !== 'month') {\n\t\t\tlength = targetElement.value.length;\n\t\t\ttargetElement.setSelectionRange(length, length);\n\t\t} else {\n\t\t\ttargetElement.focus();\n\t\t}\n\t};\n\n\n\t/**\n\t * Check whether the given target element is a child of a scrollable layer and if so, set a flag on it.\n\t *\n\t * @param {EventTarget|Element} targetElement\n\t */\n\tFastClick.prototype.updateScrollParent = function(targetElement) {\n\t\tvar scrollParent, parentElement;\n\n\t\tscrollParent = targetElement.fastClickScrollParent;\n\n\t\t// Attempt to discover whether the target element is contained within a scrollable layer. Re-check if the\n\t\t// target element was moved to another parent.\n\t\tif (!scrollParent || !scrollParent.contains(targetElement)) {\n\t\t\tparentElement = targetElement;\n\t\t\tdo {\n\t\t\t\tif (parentElement.scrollHeight > parentElement.offsetHeight) {\n\t\t\t\t\tscrollParent = parentElement;\n\t\t\t\t\ttargetElement.fastClickScrollParent = parentElement;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tparentElement = parentElement.parentElement;\n\t\t\t} while (parentElement);\n\t\t}\n\n\t\t// Always update the scroll top tracker if possible.\n\t\tif (scrollParent) {\n\t\t\tscrollParent.fastClickLastScrollTop = scrollParent.scrollTop;\n\t\t}\n\t};\n\n\n\t/**\n\t * @param {EventTarget} targetElement\n\t * @returns {Element|EventTarget}\n\t */\n\tFastClick.prototype.getTargetElementFromEventTarget = function(eventTarget) {\n\n\t\t// On some older browsers (notably Safari on iOS 4.1 - see issue #56) the event target may be a text node.\n\t\tif (eventTarget.nodeType === Node.TEXT_NODE) {\n\t\t\treturn eventTarget.parentNode;\n\t\t}\n\n\t\treturn eventTarget;\n\t};\n\n\n\t/**\n\t * On touch start, record the position and scroll offset.\n\t *\n\t * @param {Event} event\n\t * @returns {boolean}\n\t */\n\tFastClick.prototype.onTouchStart = function(event) {\n\t\tvar targetElement, touch, selection;\n\n\t\t// Ignore multiple touches, otherwise pinch-to-zoom is prevented if both fingers are on the FastClick element (issue #111).\n\t\tif (event.targetTouches.length > 1) {\n\t\t\treturn true;\n\t\t}\n\n\t\ttargetElement = this.getTargetElementFromEventTarget(event.target);\n\t\ttouch = event.targetTouches[0];\n\n\t\tif (deviceIsIOS) {\n\n\t\t\t// Only trusted events will deselect text on iOS (issue #49)\n\t\t\tselection = window.getSelection();\n\t\t\tif (selection.rangeCount && !selection.isCollapsed) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tif (!deviceIsIOS4) {\n\n\t\t\t\t// Weird things happen on iOS when an alert or confirm dialog is opened from a click event callback (issue #23):\n\t\t\t\t// when the user next taps anywhere else on the page, new touchstart and touchend events are dispatched\n\t\t\t\t// with the same identifier as the touch event that previously triggered the click that triggered the alert.\n\t\t\t\t// Sadly, there is an issue on iOS 4 that causes some normal touch events to have the same identifier as an\n\t\t\t\t// immediately preceeding touch event (issue #52), so this fix is unavailable on that platform.\n\t\t\t\t// Issue 120: touch.identifier is 0 when Chrome dev tools 'Emulate touch events' is set with an iOS device UA string,\n\t\t\t\t// which causes all touch events to be ignored. As this block only applies to iOS, and iOS identifiers are always long,\n\t\t\t\t// random integers, it's safe to to continue if the identifier is 0 here.\n\t\t\t\tif (touch.identifier && touch.identifier === this.lastTouchIdentifier) {\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tthis.lastTouchIdentifier = touch.identifier;\n\n\t\t\t\t// If the target element is a child of a scrollable layer (using -webkit-overflow-scrolling: touch) and:\n\t\t\t\t// 1) the user does a fling scroll on the scrollable layer\n\t\t\t\t// 2) the user stops the fling scroll with another tap\n\t\t\t\t// then the event.target of the last 'touchend' event will be the element that was under the user's finger\n\t\t\t\t// when the fling scroll was started, causing FastClick to send a click event to that layer - unless a check\n\t\t\t\t// is made to ensure that a parent layer was not scrolled before sending a synthetic click (issue #42).\n\t\t\t\tthis.updateScrollParent(targetElement);\n\t\t\t}\n\t\t}\n\n\t\tthis.trackingClick = true;\n\t\tthis.trackingClickStart = event.timeStamp;\n\t\tthis.targetElement = targetElement;\n\n\t\tthis.touchStartX = touch.pageX;\n\t\tthis.touchStartY = touch.pageY;\n\n\t\t// Prevent phantom clicks on fast double-tap (issue #36)\n\t\tif ((event.timeStamp - this.lastClickTime) < this.tapDelay) {\n\t\t\tevent.preventDefault();\n\t\t}\n\n\t\treturn true;\n\t};\n\n\n\t/**\n\t * Based on a touchmove event object, check whether the touch has moved past a boundary since it started.\n\t *\n\t * @param {Event} event\n\t * @returns {boolean}\n\t */\n\tFastClick.prototype.touchHasMoved = function(event) {\n\t\tvar touch = event.changedTouches[0], boundary = this.touchBoundary;\n\n\t\tif (Math.abs(touch.pageX - this.touchStartX) > boundary || Math.abs(touch.pageY - this.touchStartY) > boundary) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t};\n\n\n\t/**\n\t * Update the last position.\n\t *\n\t * @param {Event} event\n\t * @returns {boolean}\n\t */\n\tFastClick.prototype.onTouchMove = function(event) {\n\t\tif (!this.trackingClick) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// If the touch has moved, cancel the click tracking\n\t\tif (this.targetElement !== this.getTargetElementFromEventTarget(event.target) || this.touchHasMoved(event)) {\n\t\t\tthis.trackingClick = false;\n\t\t\tthis.targetElement = null;\n\t\t}\n\n\t\treturn true;\n\t};\n\n\n\t/**\n\t * Attempt to find the labelled control for the given label element.\n\t *\n\t * @param {EventTarget|HTMLLabelElement} labelElement\n\t * @returns {Element|null}\n\t */\n\tFastClick.prototype.findControl = function(labelElement) {\n\n\t\t// Fast path for newer browsers supporting the HTML5 control attribute\n\t\tif (labelElement.control !== undefined) {\n\t\t\treturn labelElement.control;\n\t\t}\n\n\t\t// All browsers under test that support touch events also support the HTML5 htmlFor attribute\n\t\tif (labelElement.htmlFor) {\n\t\t\treturn document.getElementById(labelElement.htmlFor);\n\t\t}\n\n\t\t// If no for attribute exists, attempt to retrieve the first labellable descendant element\n\t\t// the list of which is defined here: http://www.w3.org/TR/html5/forms.html#category-label\n\t\treturn labelElement.querySelector('button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea');\n\t};\n\n\n\t/**\n\t * On touch end, determine whether to send a click event at once.\n\t *\n\t * @param {Event} event\n\t * @returns {boolean}\n\t */\n\tFastClick.prototype.onTouchEnd = function(event) {\n\t\tvar forElement, trackingClickStart, targetTagName, scrollParent, touch, targetElement = this.targetElement;\n\n\t\tif (!this.trackingClick) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Prevent phantom clicks on fast double-tap (issue #36)\n\t\tif ((event.timeStamp - this.lastClickTime) < this.tapDelay) {\n\t\t\tthis.cancelNextClick = true;\n\t\t\treturn true;\n\t\t}\n\n\t\tif ((event.timeStamp - this.trackingClickStart) > this.tapTimeout) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Reset to prevent wrong click cancel on input (issue #156).\n\t\tthis.cancelNextClick = false;\n\n\t\tthis.lastClickTime = event.timeStamp;\n\n\t\ttrackingClickStart = this.trackingClickStart;\n\t\tthis.trackingClick = false;\n\t\tthis.trackingClickStart = 0;\n\n\t\t// On some iOS devices, the targetElement supplied with the event is invalid if the layer\n\t\t// is performing a transition or scroll, and has to be re-detected manually. Note that\n\t\t// for this to function correctly, it must be called *after* the event target is checked!\n\t\t// See issue #57; also filed as rdar://13048589 .\n\t\tif (deviceIsIOSWithBadTarget) {\n\t\t\ttouch = event.changedTouches[0];\n\n\t\t\t// In certain cases arguments of elementFromPoint can be negative, so prevent setting targetElement to null\n\t\t\ttargetElement = document.elementFromPoint(touch.pageX - window.pageXOffset, touch.pageY - window.pageYOffset) || targetElement;\n\t\t\ttargetElement.fastClickScrollParent = this.targetElement.fastClickScrollParent;\n\t\t}\n\n\t\ttargetTagName = targetElement.tagName.toLowerCase();\n\t\tif (targetTagName === 'label') {\n\t\t\tforElement = this.findControl(targetElement);\n\t\t\tif (forElement) {\n\t\t\t\tthis.focus(targetElement);\n\t\t\t\tif (deviceIsAndroid) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\ttargetElement = forElement;\n\t\t\t}\n\t\t} else if (this.needsFocus(targetElement)) {\n\n\t\t\t// Case 1: If the touch started a while ago (best guess is 100ms based on tests for issue #36) then focus will be triggered anyway. Return early and unset the target element reference so that the subsequent click will be allowed through.\n\t\t\t// Case 2: Without this exception for input elements tapped when the document is contained in an iframe, then any inputted text won't be visible even though the value attribute is updated as the user types (issue #37).\n\t\t\tif ((event.timeStamp - trackingClickStart) > 100 || (deviceIsIOS && window.top !== window && targetTagName === 'input')) {\n\t\t\t\tthis.targetElement = null;\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tthis.focus(targetElement);\n\t\t\tthis.sendClick(targetElement, event);\n\n\t\t\t// Select elements need the event to go through on iOS 4, otherwise the selector menu won't open.\n\t\t\t// Also this breaks opening selects when VoiceOver is active on iOS6, iOS7 (and possibly others)\n\t\t\tif (!deviceIsIOS || targetTagName !== 'select') {\n\t\t\t\tthis.targetElement = null;\n\t\t\t\tevent.preventDefault();\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}\n\n\t\tif (deviceIsIOS && !deviceIsIOS4) {\n\n\t\t\t// Don't send a synthetic click event if the target element is contained within a parent layer that was scrolled\n\t\t\t// and this tap is being used to stop the scrolling (usually initiated by a fling - issue #42).\n\t\t\tscrollParent = targetElement.fastClickScrollParent;\n\t\t\tif (scrollParent && scrollParent.fastClickLastScrollTop !== scrollParent.scrollTop) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\t// Prevent the actual click from going though - unless the target node is marked as requiring\n\t\t// real clicks or if it is in the whitelist in which case only non-programmatic clicks are permitted.\n\t\tif (!this.needsClick(targetElement)) {\n\t\t\tevent.preventDefault();\n\t\t\tthis.sendClick(targetElement, event);\n\t\t}\n\n\t\treturn false;\n\t};\n\n\n\t/**\n\t * On touch cancel, stop tracking the click.\n\t *\n\t * @returns {void}\n\t */\n\tFastClick.prototype.onTouchCancel = function() {\n\t\tthis.trackingClick = false;\n\t\tthis.targetElement = null;\n\t};\n\n\n\t/**\n\t * Determine mouse events which should be permitted.\n\t *\n\t * @param {Event} event\n\t * @returns {boolean}\n\t */\n\tFastClick.prototype.onMouse = function(event) {\n\n\t\t// If a target element was never set (because a touch event was never fired) allow the event\n\t\tif (!this.targetElement) {\n\t\t\treturn true;\n\t\t}\n\n\t\tif (event.forwardedTouchEvent) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Programmatically generated events targeting a specific element should be permitted\n\t\tif (!event.cancelable) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Derive and check the target element to see whether the mouse event needs to be permitted;\n\t\t// unless explicitly enabled, prevent non-touch click events from triggering actions,\n\t\t// to prevent ghost/doubleclicks.\n\t\tif (!this.needsClick(this.targetElement) || this.cancelNextClick) {\n\n\t\t\t// Prevent any user-added listeners declared on FastClick element from being fired.\n\t\t\tif (event.stopImmediatePropagation) {\n\t\t\t\tevent.stopImmediatePropagation();\n\t\t\t} else {\n\n\t\t\t\t// Part of the hack for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2)\n\t\t\t\tevent.propagationStopped = true;\n\t\t\t}\n\n\t\t\t// Cancel the event\n\t\t\tevent.stopPropagation();\n\t\t\tevent.preventDefault();\n\n\t\t\treturn false;\n\t\t}\n\n\t\t// If the mouse event is permitted, return true for the action to go through.\n\t\treturn true;\n\t};\n\n\n\t/**\n\t * On actual clicks, determine whether this is a touch-generated click, a click action occurring\n\t * naturally after a delay after a touch (which needs to be cancelled to avoid duplication), or\n\t * an actual click which should be permitted.\n\t *\n\t * @param {Event} event\n\t * @returns {boolean}\n\t */\n\tFastClick.prototype.onClick = function(event) {\n\t\tvar permitted;\n\n\t\t// It's possible for another FastClick-like library delivered with third-party code to fire a click event before FastClick does (issue #44). In that case, set the click-tracking flag back to false and return early. This will cause onTouchEnd to return early.\n\t\tif (this.trackingClick) {\n\t\t\tthis.targetElement = null;\n\t\t\tthis.trackingClick = false;\n\t\t\treturn true;\n\t\t}\n\n\t\t// Very odd behaviour on iOS (issue #18): if a submit element is present inside a form and the user hits enter in the iOS simulator or clicks the Go button on the pop-up OS keyboard the a kind of 'fake' click event will be triggered with the submit-type input element as the target.\n\t\tif (event.target.type === 'submit' && event.detail === 0) {\n\t\t\treturn true;\n\t\t}\n\n\t\tpermitted = this.onMouse(event);\n\n\t\t// Only unset targetElement if the click is not permitted. This will ensure that the check for !targetElement in onMouse fails and the browser's click doesn't go through.\n\t\tif (!permitted) {\n\t\t\tthis.targetElement = null;\n\t\t}\n\n\t\t// If clicks are permitted, return true for the action to go through.\n\t\treturn permitted;\n\t};\n\n\n\t/**\n\t * Remove all FastClick's event listeners.\n\t *\n\t * @returns {void}\n\t */\n\tFastClick.prototype.destroy = function() {\n\t\tvar layer = this.layer;\n\n\t\tif (deviceIsAndroid) {\n\t\t\tlayer.removeEventListener('mouseover', this.onMouse, true);\n\t\t\tlayer.removeEventListener('mousedown', this.onMouse, true);\n\t\t\tlayer.removeEventListener('mouseup', this.onMouse, true);\n\t\t}\n\n\t\tlayer.removeEventListener('click', this.onClick, true);\n\t\tlayer.removeEventListener('touchstart', this.onTouchStart, false);\n\t\tlayer.removeEventListener('touchmove', this.onTouchMove, false);\n\t\tlayer.removeEventListener('touchend', this.onTouchEnd, false);\n\t\tlayer.removeEventListener('touchcancel', this.onTouchCancel, false);\n\t};\n\n\n\t/**\n\t * Check whether FastClick is needed.\n\t *\n\t * @param {Element} layer The layer to listen on\n\t */\n\tFastClick.notNeeded = function(layer) {\n\t\tvar metaViewport;\n\t\tvar chromeVersion;\n\t\tvar blackberryVersion;\n\t\tvar firefoxVersion;\n\n\t\t// Devices that don't support touch don't need FastClick\n\t\tif (typeof window.ontouchstart === 'undefined') {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Chrome version - zero for other browsers\n\t\tchromeVersion = +(/Chrome\\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1];\n\n\t\tif (chromeVersion) {\n\n\t\t\tif (deviceIsAndroid) {\n\t\t\t\tmetaViewport = document.querySelector('meta[name=viewport]');\n\n\t\t\t\tif (metaViewport) {\n\t\t\t\t\t// Chrome on Android with user-scalable=\"no\" doesn't need FastClick (issue #89)\n\t\t\t\t\tif (metaViewport.content.indexOf('user-scalable=no') !== -1) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\t// Chrome 32 and above with width=device-width or less don't need FastClick\n\t\t\t\t\tif (chromeVersion > 31 && document.documentElement.scrollWidth <= window.outerWidth) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t// Chrome desktop doesn't need FastClick (issue #15)\n\t\t\t} else {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\tif (deviceIsBlackBerry10) {\n\t\t\tblackberryVersion = navigator.userAgent.match(/Version\\/([0-9]*)\\.([0-9]*)/);\n\n\t\t\t// BlackBerry 10.3+ does not require Fastclick library.\n\t\t\t// https://github.com/ftlabs/fastclick/issues/251\n\t\t\tif (blackberryVersion[1] >= 10 && blackberryVersion[2] >= 3) {\n\t\t\t\tmetaViewport = document.querySelector('meta[name=viewport]');\n\n\t\t\t\tif (metaViewport) {\n\t\t\t\t\t// user-scalable=no eliminates click delay.\n\t\t\t\t\tif (metaViewport.content.indexOf('user-scalable=no') !== -1) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\t// width=device-width (or less than device-width) eliminates click delay.\n\t\t\t\t\tif (document.documentElement.scrollWidth <= window.outerWidth) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// IE10 with -ms-touch-action: none or manipulation, which disables double-tap-to-zoom (issue #97)\n\t\tif (layer.style.msTouchAction === 'none' || layer.style.touchAction === 'manipulation') {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Firefox version - zero for other browsers\n\t\tfirefoxVersion = +(/Firefox\\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1];\n\n\t\tif (firefoxVersion >= 27) {\n\t\t\t// Firefox 27+ does not have tap delay if the content is not zoomable - https://bugzilla.mozilla.org/show_bug.cgi?id=922896\n\n\t\t\tmetaViewport = document.querySelector('meta[name=viewport]');\n\t\t\tif (metaViewport && (metaViewport.content.indexOf('user-scalable=no') !== -1 || document.documentElement.scrollWidth <= window.outerWidth)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\t// IE11: prefixed -ms-touch-action is no longer supported and it's recomended to use non-prefixed version\n\t\t// http://msdn.microsoft.com/en-us/library/windows/apps/Hh767313.aspx\n\t\tif (layer.style.touchAction === 'none' || layer.style.touchAction === 'manipulation') {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t};\n\n\n\t/**\n\t * Factory method for creating a FastClick object\n\t *\n\t * @param {Element} layer The layer to listen on\n\t * @param {Object} [options={}] The options to override the defaults\n\t */\n\tFastClick.attach = function(layer, options) {\n\t\treturn new FastClick(layer, options);\n\t};\n\n\n\tif (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\n\t\t// AMD. Register as an anonymous module.\n\t\tdefine(function() {\n\t\t\treturn FastClick;\n\t\t});\n\t} else if (typeof module !== 'undefined' && module.exports) {\n\t\tmodule.exports = FastClick.attach;\n\t\tmodule.exports.FastClick = FastClick;\n\t} else {\n\t\twindow.FastClick = FastClick;\n\t}\n}());\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/fastclick/lib/fastclick.js\n **/","module.exports = __webpack_amd_options__;\r\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/buildin/amd-options.js\n ** module id = 2\n ** module chunks = 0\n **/","/**\n * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 0.7.1\n * Copyright (C) 2016 Oliver Nightingale\n * @license MIT\n */\n\n;(function(){\n\n/**\n * Convenience function for instantiating a new lunr index and configuring it\n * with the default pipeline functions and the passed config function.\n *\n * When using this convenience function a new index will be created with the\n * following functions already in the pipeline:\n *\n * lunr.StopWordFilter - filters out any stop words before they enter the\n * index\n *\n * lunr.stemmer - stems the tokens before entering the index.\n *\n * Example:\n *\n * var idx = lunr(function () {\n * this.field('title', 10)\n * this.field('tags', 100)\n * this.field('body')\n * \n * this.ref('cid')\n * \n * this.pipeline.add(function () {\n * // some custom pipeline function\n * })\n * \n * })\n *\n * @param {Function} config A function that will be called with the new instance\n * of the lunr.Index as both its context and first parameter. It can be used to\n * customize the instance of new lunr.Index.\n * @namespace\n * @module\n * @returns {lunr.Index}\n *\n */\nvar lunr = function (config) {\n var idx = new lunr.Index\n\n idx.pipeline.add(\n lunr.trimmer,\n lunr.stopWordFilter,\n lunr.stemmer\n )\n\n if (config) config.call(idx, idx)\n\n return idx\n}\n\nlunr.version = \"0.7.1\"\n/*!\n * lunr.utils\n * Copyright (C) 2016 Oliver Nightingale\n */\n\n/**\n * A namespace containing utils for the rest of the lunr library\n */\nlunr.utils = {}\n\n/**\n * Print a warning message to the console.\n *\n * @param {String} message The message to be printed.\n * @memberOf Utils\n */\nlunr.utils.warn = (function (global) {\n return function (message) {\n if (global.console && console.warn) {\n console.warn(message)\n }\n }\n})(this)\n\n/**\n * Convert an object to a string.\n *\n * In the case of `null` and `undefined` the function returns\n * the empty string, in all other cases the result of calling\n * `toString` on the passed object is returned.\n *\n * @param {Any} obj The object to convert to a string.\n * @return {String} string representation of the passed object.\n * @memberOf Utils\n */\nlunr.utils.asString = function (obj) {\n if (obj === void 0 || obj === null) {\n return \"\"\n } else {\n return obj.toString()\n }\n}\n/*!\n * lunr.EventEmitter\n * Copyright (C) 2016 Oliver Nightingale\n */\n\n/**\n * lunr.EventEmitter is an event emitter for lunr. It manages adding and removing event handlers and triggering events and their handlers.\n *\n * @constructor\n */\nlunr.EventEmitter = function () {\n this.events = {}\n}\n\n/**\n * Binds a handler function to a specific event(s).\n *\n * Can bind a single function to many different events in one call.\n *\n * @param {String} [eventName] The name(s) of events to bind this function to.\n * @param {Function} fn The function to call when an event is fired.\n * @memberOf EventEmitter\n */\nlunr.EventEmitter.prototype.addListener = function () {\n var args = Array.prototype.slice.call(arguments),\n fn = args.pop(),\n names = args\n\n if (typeof fn !== \"function\") throw new TypeError (\"last argument must be a function\")\n\n names.forEach(function (name) {\n if (!this.hasHandler(name)) this.events[name] = []\n this.events[name].push(fn)\n }, this)\n}\n\n/**\n * Removes a handler function from a specific event.\n *\n * @param {String} eventName The name of the event to remove this function from.\n * @param {Function} fn The function to remove from an event.\n * @memberOf EventEmitter\n */\nlunr.EventEmitter.prototype.removeListener = function (name, fn) {\n if (!this.hasHandler(name)) return\n\n var fnIndex = this.events[name].indexOf(fn)\n this.events[name].splice(fnIndex, 1)\n\n if (!this.events[name].length) delete this.events[name]\n}\n\n/**\n * Calls all functions bound to the given event.\n *\n * Additional data can be passed to the event handler as arguments to `emit`\n * after the event name.\n *\n * @param {String} eventName The name of the event to emit.\n * @memberOf EventEmitter\n */\nlunr.EventEmitter.prototype.emit = function (name) {\n if (!this.hasHandler(name)) return\n\n var args = Array.prototype.slice.call(arguments, 1)\n\n this.events[name].forEach(function (fn) {\n fn.apply(undefined, args)\n })\n}\n\n/**\n * Checks whether a handler has ever been stored against an event.\n *\n * @param {String} eventName The name of the event to check.\n * @private\n * @memberOf EventEmitter\n */\nlunr.EventEmitter.prototype.hasHandler = function (name) {\n return name in this.events\n}\n\n/*!\n * lunr.tokenizer\n * Copyright (C) 2016 Oliver Nightingale\n */\n\n/**\n * A function for splitting a string into tokens ready to be inserted into\n * the search index. Uses `lunr.tokenizer.seperator` to split strings, change\n * the value of this property to change how strings are split into tokens.\n *\n * @module\n * @param {String} obj The string to convert into tokens\n * @see lunr.tokenizer.seperator\n * @returns {Array}\n */\nlunr.tokenizer = function (obj) {\n if (!arguments.length || obj == null || obj == undefined) return []\n if (Array.isArray(obj)) return obj.map(function (t) { return lunr.utils.asString(t).toLowerCase() })\n\n return obj.toString().trim().toLowerCase().split(lunr.tokenizer.seperator)\n}\n\n/**\n * The sperator used to split a string into tokens. Override this property to change the behaviour of\n * `lunr.tokenizer` behaviour when tokenizing strings. By default this splits on whitespace and hyphens.\n *\n * @static\n * @see lunr.tokenizer\n */\nlunr.tokenizer.seperator = /[\\s\\-]+/\n\n/**\n * Loads a previously serialised tokenizer.\n *\n * A tokenizer function to be loaded must already be registered with lunr.tokenizer.\n * If the serialised tokenizer has not been registered then an error will be thrown.\n *\n * @param {String} label The label of the serialised tokenizer.\n * @returns {Function}\n * @memberOf tokenizer\n */\nlunr.tokenizer.load = function (label) {\n var fn = this.registeredFunctions[label]\n\n if (!fn) {\n throw new Error('Cannot load un-registered function: ' + label)\n }\n\n return fn\n}\n\nlunr.tokenizer.label = 'default'\n\nlunr.tokenizer.registeredFunctions = {\n 'default': lunr.tokenizer\n}\n\n/**\n * Register a tokenizer function.\n *\n * Functions that are used as tokenizers should be registered if they are to be used with a serialised index.\n *\n * Registering a function does not add it to an index, functions must still be associated with a specific index for them to be used when indexing and searching documents.\n *\n * @param {Function} fn The function to register.\n * @param {String} label The label to register this function with\n * @memberOf tokenizer\n */\nlunr.tokenizer.registerFunction = function (fn, label) {\n if (label in this.registeredFunctions) {\n lunr.utils.warn('Overwriting existing tokenizer: ' + label)\n }\n\n fn.label = label\n this.registeredFunctions[label] = fn\n}\n/*!\n * lunr.Pipeline\n * Copyright (C) 2016 Oliver Nightingale\n */\n\n/**\n * lunr.Pipelines maintain an ordered list of functions to be applied to all\n * tokens in documents entering the search index and queries being ran against\n * the index.\n *\n * An instance of lunr.Index created with the lunr shortcut will contain a\n * pipeline with a stop word filter and an English language stemmer. Extra\n * functions can be added before or after either of these functions or these\n * default functions can be removed.\n *\n * When run the pipeline will call each function in turn, passing a token, the\n * index of that token in the original list of all tokens and finally a list of\n * all the original tokens.\n *\n * The output of functions in the pipeline will be passed to the next function\n * in the pipeline. To exclude a token from entering the index the function\n * should return undefined, the rest of the pipeline will not be called with\n * this token.\n *\n * For serialisation of pipelines to work, all functions used in an instance of\n * a pipeline should be registered with lunr.Pipeline. Registered functions can\n * then be loaded. If trying to load a serialised pipeline that uses functions\n * that are not registered an error will be thrown.\n *\n * If not planning on serialising the pipeline then registering pipeline functions\n * is not necessary.\n *\n * @constructor\n */\nlunr.Pipeline = function () {\n this._stack = []\n}\n\nlunr.Pipeline.registeredFunctions = {}\n\n/**\n * Register a function with the pipeline.\n *\n * Functions that are used in the pipeline should be registered if the pipeline\n * needs to be serialised, or a serialised pipeline needs to be loaded.\n *\n * Registering a function does not add it to a pipeline, functions must still be\n * added to instances of the pipeline for them to be used when running a pipeline.\n *\n * @param {Function} fn The function to check for.\n * @param {String} label The label to register this function with\n * @memberOf Pipeline\n */\nlunr.Pipeline.registerFunction = function (fn, label) {\n if (label in this.registeredFunctions) {\n lunr.utils.warn('Overwriting existing registered function: ' + label)\n }\n\n fn.label = label\n lunr.Pipeline.registeredFunctions[fn.label] = fn\n}\n\n/**\n * Warns if the function is not registered as a Pipeline function.\n *\n * @param {Function} fn The function to check for.\n * @private\n * @memberOf Pipeline\n */\nlunr.Pipeline.warnIfFunctionNotRegistered = function (fn) {\n var isRegistered = fn.label && (fn.label in this.registeredFunctions)\n\n if (!isRegistered) {\n lunr.utils.warn('Function is not registered with pipeline. This may cause problems when serialising the index.\\n', fn)\n }\n}\n\n/**\n * Loads a previously serialised pipeline.\n *\n * All functions to be loaded must already be registered with lunr.Pipeline.\n * If any function from the serialised data has not been registered then an\n * error will be thrown.\n *\n * @param {Object} serialised The serialised pipeline to load.\n * @returns {lunr.Pipeline}\n * @memberOf Pipeline\n */\nlunr.Pipeline.load = function (serialised) {\n var pipeline = new lunr.Pipeline\n\n serialised.forEach(function (fnName) {\n var fn = lunr.Pipeline.registeredFunctions[fnName]\n\n if (fn) {\n pipeline.add(fn)\n } else {\n throw new Error('Cannot load un-registered function: ' + fnName)\n }\n })\n\n return pipeline\n}\n\n/**\n * Adds new functions to the end of the pipeline.\n *\n * Logs a warning if the function has not been registered.\n *\n * @param {Function} functions Any number of functions to add to the pipeline.\n * @memberOf Pipeline\n */\nlunr.Pipeline.prototype.add = function () {\n var fns = Array.prototype.slice.call(arguments)\n\n fns.forEach(function (fn) {\n lunr.Pipeline.warnIfFunctionNotRegistered(fn)\n this._stack.push(fn)\n }, this)\n}\n\n/**\n * Adds a single function after a function that already exists in the\n * pipeline.\n *\n * Logs a warning if the function has not been registered.\n *\n * @param {Function} existingFn A function that already exists in the pipeline.\n * @param {Function} newFn The new function to add to the pipeline.\n * @memberOf Pipeline\n */\nlunr.Pipeline.prototype.after = function (existingFn, newFn) {\n lunr.Pipeline.warnIfFunctionNotRegistered(newFn)\n\n var pos = this._stack.indexOf(existingFn)\n if (pos == -1) {\n throw new Error('Cannot find existingFn')\n }\n\n pos = pos + 1\n this._stack.splice(pos, 0, newFn)\n}\n\n/**\n * Adds a single function before a function that already exists in the\n * pipeline.\n *\n * Logs a warning if the function has not been registered.\n *\n * @param {Function} existingFn A function that already exists in the pipeline.\n * @param {Function} newFn The new function to add to the pipeline.\n * @memberOf Pipeline\n */\nlunr.Pipeline.prototype.before = function (existingFn, newFn) {\n lunr.Pipeline.warnIfFunctionNotRegistered(newFn)\n\n var pos = this._stack.indexOf(existingFn)\n if (pos == -1) {\n throw new Error('Cannot find existingFn')\n }\n\n this._stack.splice(pos, 0, newFn)\n}\n\n/**\n * Removes a function from the pipeline.\n *\n * @param {Function} fn The function to remove from the pipeline.\n * @memberOf Pipeline\n */\nlunr.Pipeline.prototype.remove = function (fn) {\n var pos = this._stack.indexOf(fn)\n if (pos == -1) {\n return\n }\n\n this._stack.splice(pos, 1)\n}\n\n/**\n * Runs the current list of functions that make up the pipeline against the\n * passed tokens.\n *\n * @param {Array} tokens The tokens to run through the pipeline.\n * @returns {Array}\n * @memberOf Pipeline\n */\nlunr.Pipeline.prototype.run = function (tokens) {\n var out = [],\n tokenLength = tokens.length,\n stackLength = this._stack.length\n\n for (var i = 0; i < tokenLength; i++) {\n var token = tokens[i]\n\n for (var j = 0; j < stackLength; j++) {\n token = this._stack[j](token, i, tokens)\n if (token === void 0 || token === '') break\n };\n\n if (token !== void 0 && token !== '') out.push(token)\n };\n\n return out\n}\n\n/**\n * Resets the pipeline by removing any existing processors.\n *\n * @memberOf Pipeline\n */\nlunr.Pipeline.prototype.reset = function () {\n this._stack = []\n}\n\n/**\n * Returns a representation of the pipeline ready for serialisation.\n *\n * Logs a warning if the function has not been registered.\n *\n * @returns {Array}\n * @memberOf Pipeline\n */\nlunr.Pipeline.prototype.toJSON = function () {\n return this._stack.map(function (fn) {\n lunr.Pipeline.warnIfFunctionNotRegistered(fn)\n\n return fn.label\n })\n}\n/*!\n * lunr.Vector\n * Copyright (C) 2016 Oliver Nightingale\n */\n\n/**\n * lunr.Vectors implement vector related operations for\n * a series of elements.\n *\n * @constructor\n */\nlunr.Vector = function () {\n this._magnitude = null\n this.list = undefined\n this.length = 0\n}\n\n/**\n * lunr.Vector.Node is a simple struct for each node\n * in a lunr.Vector.\n *\n * @private\n * @param {Number} The index of the node in the vector.\n * @param {Object} The data at this node in the vector.\n * @param {lunr.Vector.Node} The node directly after this node in the vector.\n * @constructor\n * @memberOf Vector\n */\nlunr.Vector.Node = function (idx, val, next) {\n this.idx = idx\n this.val = val\n this.next = next\n}\n\n/**\n * Inserts a new value at a position in a vector.\n *\n * @param {Number} The index at which to insert a value.\n * @param {Object} The object to insert in the vector.\n * @memberOf Vector.\n */\nlunr.Vector.prototype.insert = function (idx, val) {\n this._magnitude = undefined;\n var list = this.list\n\n if (!list) {\n this.list = new lunr.Vector.Node (idx, val, list)\n return this.length++\n }\n\n if (idx < list.idx) {\n this.list = new lunr.Vector.Node (idx, val, list)\n return this.length++\n }\n\n var prev = list,\n next = list.next\n\n while (next != undefined) {\n if (idx < next.idx) {\n prev.next = new lunr.Vector.Node (idx, val, next)\n return this.length++\n }\n\n prev = next, next = next.next\n }\n\n prev.next = new lunr.Vector.Node (idx, val, next)\n return this.length++\n}\n\n/**\n * Calculates the magnitude of this vector.\n *\n * @returns {Number}\n * @memberOf Vector\n */\nlunr.Vector.prototype.magnitude = function () {\n if (this._magnitude) return this._magnitude\n var node = this.list,\n sumOfSquares = 0,\n val\n\n while (node) {\n val = node.val\n sumOfSquares += val * val\n node = node.next\n }\n\n return this._magnitude = Math.sqrt(sumOfSquares)\n}\n\n/**\n * Calculates the dot product of this vector and another vector.\n *\n * @param {lunr.Vector} otherVector The vector to compute the dot product with.\n * @returns {Number}\n * @memberOf Vector\n */\nlunr.Vector.prototype.dot = function (otherVector) {\n var node = this.list,\n otherNode = otherVector.list,\n dotProduct = 0\n\n while (node && otherNode) {\n if (node.idx < otherNode.idx) {\n node = node.next\n } else if (node.idx > otherNode.idx) {\n otherNode = otherNode.next\n } else {\n dotProduct += node.val * otherNode.val\n node = node.next\n otherNode = otherNode.next\n }\n }\n\n return dotProduct\n}\n\n/**\n * Calculates the cosine similarity between this vector and another\n * vector.\n *\n * @param {lunr.Vector} otherVector The other vector to calculate the\n * similarity with.\n * @returns {Number}\n * @memberOf Vector\n */\nlunr.Vector.prototype.similarity = function (otherVector) {\n return this.dot(otherVector) / (this.magnitude() * otherVector.magnitude())\n}\n/*!\n * lunr.SortedSet\n * Copyright (C) 2016 Oliver Nightingale\n */\n\n/**\n * lunr.SortedSets are used to maintain an array of uniq values in a sorted\n * order.\n *\n * @constructor\n */\nlunr.SortedSet = function () {\n this.length = 0\n this.elements = []\n}\n\n/**\n * Loads a previously serialised sorted set.\n *\n * @param {Array} serialisedData The serialised set to load.\n * @returns {lunr.SortedSet}\n * @memberOf SortedSet\n */\nlunr.SortedSet.load = function (serialisedData) {\n var set = new this\n\n set.elements = serialisedData\n set.length = serialisedData.length\n\n return set\n}\n\n/**\n * Inserts new items into the set in the correct position to maintain the\n * order.\n *\n * @param {Object} The objects to add to this set.\n * @memberOf SortedSet\n */\nlunr.SortedSet.prototype.add = function () {\n var i, element\n\n for (i = 0; i < arguments.length; i++) {\n element = arguments[i]\n if (~this.indexOf(element)) continue\n this.elements.splice(this.locationFor(element), 0, element)\n }\n\n this.length = this.elements.length\n}\n\n/**\n * Converts this sorted set into an array.\n *\n * @returns {Array}\n * @memberOf SortedSet\n */\nlunr.SortedSet.prototype.toArray = function () {\n return this.elements.slice()\n}\n\n/**\n * Creates a new array with the results of calling a provided function on every\n * element in this sorted set.\n *\n * Delegates to Array.prototype.map and has the same signature.\n *\n * @param {Function} fn The function that is called on each element of the\n * set.\n * @param {Object} ctx An optional object that can be used as the context\n * for the function fn.\n * @returns {Array}\n * @memberOf SortedSet\n */\nlunr.SortedSet.prototype.map = function (fn, ctx) {\n return this.elements.map(fn, ctx)\n}\n\n/**\n * Executes a provided function once per sorted set element.\n *\n * Delegates to Array.prototype.forEach and has the same signature.\n *\n * @param {Function} fn The function that is called on each element of the\n * set.\n * @param {Object} ctx An optional object that can be used as the context\n * @memberOf SortedSet\n * for the function fn.\n */\nlunr.SortedSet.prototype.forEach = function (fn, ctx) {\n return this.elements.forEach(fn, ctx)\n}\n\n/**\n * Returns the index at which a given element can be found in the\n * sorted set, or -1 if it is not present.\n *\n * @param {Object} elem The object to locate in the sorted set.\n * @returns {Number}\n * @memberOf SortedSet\n */\nlunr.SortedSet.prototype.indexOf = function (elem) {\n var start = 0,\n end = this.elements.length,\n sectionLength = end - start,\n pivot = start + Math.floor(sectionLength / 2),\n pivotElem = this.elements[pivot]\n\n while (sectionLength > 1) {\n if (pivotElem === elem) return pivot\n\n if (pivotElem < elem) start = pivot\n if (pivotElem > elem) end = pivot\n\n sectionLength = end - start\n pivot = start + Math.floor(sectionLength / 2)\n pivotElem = this.elements[pivot]\n }\n\n if (pivotElem === elem) return pivot\n\n return -1\n}\n\n/**\n * Returns the position within the sorted set that an element should be\n * inserted at to maintain the current order of the set.\n *\n * This function assumes that the element to search for does not already exist\n * in the sorted set.\n *\n * @param {Object} elem The elem to find the position for in the set\n * @returns {Number}\n * @memberOf SortedSet\n */\nlunr.SortedSet.prototype.locationFor = function (elem) {\n var start = 0,\n end = this.elements.length,\n sectionLength = end - start,\n pivot = start + Math.floor(sectionLength / 2),\n pivotElem = this.elements[pivot]\n\n while (sectionLength > 1) {\n if (pivotElem < elem) start = pivot\n if (pivotElem > elem) end = pivot\n\n sectionLength = end - start\n pivot = start + Math.floor(sectionLength / 2)\n pivotElem = this.elements[pivot]\n }\n\n if (pivotElem > elem) return pivot\n if (pivotElem < elem) return pivot + 1\n}\n\n/**\n * Creates a new lunr.SortedSet that contains the elements in the intersection\n * of this set and the passed set.\n *\n * @param {lunr.SortedSet} otherSet The set to intersect with this set.\n * @returns {lunr.SortedSet}\n * @memberOf SortedSet\n */\nlunr.SortedSet.prototype.intersect = function (otherSet) {\n var intersectSet = new lunr.SortedSet,\n i = 0, j = 0,\n a_len = this.length, b_len = otherSet.length,\n a = this.elements, b = otherSet.elements\n\n while (true) {\n if (i > a_len - 1 || j > b_len - 1) break\n\n if (a[i] === b[j]) {\n intersectSet.add(a[i])\n i++, j++\n continue\n }\n\n if (a[i] < b[j]) {\n i++\n continue\n }\n\n if (a[i] > b[j]) {\n j++\n continue\n }\n };\n\n return intersectSet\n}\n\n/**\n * Makes a copy of this set\n *\n * @returns {lunr.SortedSet}\n * @memberOf SortedSet\n */\nlunr.SortedSet.prototype.clone = function () {\n var clone = new lunr.SortedSet\n\n clone.elements = this.toArray()\n clone.length = clone.elements.length\n\n return clone\n}\n\n/**\n * Creates a new lunr.SortedSet that contains the elements in the union\n * of this set and the passed set.\n *\n * @param {lunr.SortedSet} otherSet The set to union with this set.\n * @returns {lunr.SortedSet}\n * @memberOf SortedSet\n */\nlunr.SortedSet.prototype.union = function (otherSet) {\n var longSet, shortSet, unionSet\n\n if (this.length >= otherSet.length) {\n longSet = this, shortSet = otherSet\n } else {\n longSet = otherSet, shortSet = this\n }\n\n unionSet = longSet.clone()\n\n for(var i = 0, shortSetElements = shortSet.toArray(); i < shortSetElements.length; i++){\n unionSet.add(shortSetElements[i])\n }\n\n return unionSet\n}\n\n/**\n * Returns a representation of the sorted set ready for serialisation.\n *\n * @returns {Array}\n * @memberOf SortedSet\n */\nlunr.SortedSet.prototype.toJSON = function () {\n return this.toArray()\n}\n/*!\n * lunr.Index\n * Copyright (C) 2016 Oliver Nightingale\n */\n\n/**\n * lunr.Index is object that manages a search index. It contains the indexes\n * and stores all the tokens and document lookups. It also provides the main\n * user facing API for the library.\n *\n * @constructor\n */\nlunr.Index = function () {\n this._fields = []\n this._ref = 'id'\n this.pipeline = new lunr.Pipeline\n this.documentStore = new lunr.Store\n this.tokenStore = new lunr.TokenStore\n this.corpusTokens = new lunr.SortedSet\n this.eventEmitter = new lunr.EventEmitter\n this.tokenizerFn = lunr.tokenizer\n\n this._idfCache = {}\n\n this.on('add', 'remove', 'update', (function () {\n this._idfCache = {}\n }).bind(this))\n}\n\n/**\n * Bind a handler to events being emitted by the index.\n *\n * The handler can be bound to many events at the same time.\n *\n * @param {String} [eventName] The name(s) of events to bind the function to.\n * @param {Function} fn The serialised set to load.\n * @memberOf Index\n */\nlunr.Index.prototype.on = function () {\n var args = Array.prototype.slice.call(arguments)\n return this.eventEmitter.addListener.apply(this.eventEmitter, args)\n}\n\n/**\n * Removes a handler from an event being emitted by the index.\n *\n * @param {String} eventName The name of events to remove the function from.\n * @param {Function} fn The serialised set to load.\n * @memberOf Index\n */\nlunr.Index.prototype.off = function (name, fn) {\n return this.eventEmitter.removeListener(name, fn)\n}\n\n/**\n * Loads a previously serialised index.\n *\n * Issues a warning if the index being imported was serialised\n * by a different version of lunr.\n *\n * @param {Object} serialisedData The serialised set to load.\n * @returns {lunr.Index}\n * @memberOf Index\n */\nlunr.Index.load = function (serialisedData) {\n if (serialisedData.version !== lunr.version) {\n lunr.utils.warn('version mismatch: current ' + lunr.version + ' importing ' + serialisedData.version)\n }\n\n var idx = new this\n\n idx._fields = serialisedData.fields\n idx._ref = serialisedData.ref\n\n idx.tokenizer = lunr.tokenizer.load(serialisedData.tokenizer)\n idx.documentStore = lunr.Store.load(serialisedData.documentStore)\n idx.tokenStore = lunr.TokenStore.load(serialisedData.tokenStore)\n idx.corpusTokens = lunr.SortedSet.load(serialisedData.corpusTokens)\n idx.pipeline = lunr.Pipeline.load(serialisedData.pipeline)\n\n return idx\n}\n\n/**\n * Adds a field to the list of fields that will be searchable within documents\n * in the index.\n *\n * An optional boost param can be passed to affect how much tokens in this field\n * rank in search results, by default the boost value is 1.\n *\n * Fields should be added before any documents are added to the index, fields\n * that are added after documents are added to the index will only apply to new\n * documents added to the index.\n *\n * @param {String} fieldName The name of the field within the document that\n * should be indexed\n * @param {Number} boost An optional boost that can be applied to terms in this\n * field.\n * @returns {lunr.Index}\n * @memberOf Index\n */\nlunr.Index.prototype.field = function (fieldName, opts) {\n var opts = opts || {},\n field = { name: fieldName, boost: opts.boost || 1 }\n\n this._fields.push(field)\n return this\n}\n\n/**\n * Sets the property used to uniquely identify documents added to the index,\n * by default this property is 'id'.\n *\n * This should only be changed before adding documents to the index, changing\n * the ref property without resetting the index can lead to unexpected results.\n *\n * The value of ref can be of any type but it _must_ be stably comparable and\n * orderable.\n *\n * @param {String} refName The property to use to uniquely identify the\n * documents in the index.\n * @param {Boolean} emitEvent Whether to emit add events, defaults to true\n * @returns {lunr.Index}\n * @memberOf Index\n */\nlunr.Index.prototype.ref = function (refName) {\n this._ref = refName\n return this\n}\n\n/**\n * Sets the tokenizer used for this index.\n *\n * By default the index will use the default tokenizer, lunr.tokenizer. The tokenizer\n * should only be changed before adding documents to the index. Changing the tokenizer\n * without re-building the index can lead to unexpected results.\n *\n * @param {Function} fn The function to use as a tokenizer.\n * @returns {lunr.Index}\n * @memberOf Index\n */\nlunr.Index.prototype.tokenizer = function (fn) {\n var isRegistered = fn.label && (fn.label in lunr.tokenizer.registeredFunctions)\n\n if (!isRegistered) {\n lunr.utils.warn('Function is not a registered tokenizer. This may cause problems when serialising the index')\n }\n\n this.tokenizerFn = fn\n return this\n}\n\n/**\n * Add a document to the index.\n *\n * This is the way new documents enter the index, this function will run the\n * fields from the document through the index's pipeline and then add it to\n * the index, it will then show up in search results.\n *\n * An 'add' event is emitted with the document that has been added and the index\n * the document has been added to. This event can be silenced by passing false\n * as the second argument to add.\n *\n * @param {Object} doc The document to add to the index.\n * @param {Boolean} emitEvent Whether or not to emit events, default true.\n * @memberOf Index\n */\nlunr.Index.prototype.add = function (doc, emitEvent) {\n var docTokens = {},\n allDocumentTokens = new lunr.SortedSet,\n docRef = doc[this._ref],\n emitEvent = emitEvent === undefined ? true : emitEvent\n\n this._fields.forEach(function (field) {\n var fieldTokens = this.pipeline.run(this.tokenizerFn(doc[field.name]))\n\n docTokens[field.name] = fieldTokens\n\n for (var i = 0; i < fieldTokens.length; i++) {\n var token = fieldTokens[i]\n allDocumentTokens.add(token)\n this.corpusTokens.add(token)\n }\n }, this)\n\n this.documentStore.set(docRef, allDocumentTokens)\n\n for (var i = 0; i < allDocumentTokens.length; i++) {\n var token = allDocumentTokens.elements[i]\n var tf = 0;\n\n for (var j = 0; j < this._fields.length; j++){\n var field = this._fields[j]\n var fieldTokens = docTokens[field.name]\n var fieldLength = fieldTokens.length\n\n if (!fieldLength) continue\n\n var tokenCount = 0\n for (var k = 0; k < fieldLength; k++){\n if (fieldTokens[k] === token){\n tokenCount++\n }\n }\n\n tf += (tokenCount / fieldLength * field.boost)\n }\n\n this.tokenStore.add(token, { ref: docRef, tf: tf })\n };\n\n if (emitEvent) this.eventEmitter.emit('add', doc, this)\n}\n\n/**\n * Removes a document from the index.\n *\n * To make sure documents no longer show up in search results they can be\n * removed from the index using this method.\n *\n * The document passed only needs to have the same ref property value as the\n * document that was added to the index, they could be completely different\n * objects.\n *\n * A 'remove' event is emitted with the document that has been removed and the index\n * the document has been removed from. This event can be silenced by passing false\n * as the second argument to remove.\n *\n * @param {Object} doc The document to remove from the index.\n * @param {Boolean} emitEvent Whether to emit remove events, defaults to true\n * @memberOf Index\n */\nlunr.Index.prototype.remove = function (doc, emitEvent) {\n var docRef = doc[this._ref],\n emitEvent = emitEvent === undefined ? true : emitEvent\n\n if (!this.documentStore.has(docRef)) return\n\n var docTokens = this.documentStore.get(docRef)\n\n this.documentStore.remove(docRef)\n\n docTokens.forEach(function (token) {\n this.tokenStore.remove(token, docRef)\n }, this)\n\n if (emitEvent) this.eventEmitter.emit('remove', doc, this)\n}\n\n/**\n * Updates a document in the index.\n *\n * When a document contained within the index gets updated, fields changed,\n * added or removed, to make sure it correctly matched against search queries,\n * it should be updated in the index.\n *\n * This method is just a wrapper around `remove` and `add`\n *\n * An 'update' event is emitted with the document that has been updated and the index.\n * This event can be silenced by passing false as the second argument to update. Only\n * an update event will be fired, the 'add' and 'remove' events of the underlying calls\n * are silenced.\n *\n * @param {Object} doc The document to update in the index.\n * @param {Boolean} emitEvent Whether to emit update events, defaults to true\n * @see Index.prototype.remove\n * @see Index.prototype.add\n * @memberOf Index\n */\nlunr.Index.prototype.update = function (doc, emitEvent) {\n var emitEvent = emitEvent === undefined ? true : emitEvent\n\n this.remove(doc, false)\n this.add(doc, false)\n\n if (emitEvent) this.eventEmitter.emit('update', doc, this)\n}\n\n/**\n * Calculates the inverse document frequency for a token within the index.\n *\n * @param {String} token The token to calculate the idf of.\n * @see Index.prototype.idf\n * @private\n * @memberOf Index\n */\nlunr.Index.prototype.idf = function (term) {\n var cacheKey = \"@\" + term\n if (Object.prototype.hasOwnProperty.call(this._idfCache, cacheKey)) return this._idfCache[cacheKey]\n\n var documentFrequency = this.tokenStore.count(term),\n idf = 1\n\n if (documentFrequency > 0) {\n idf = 1 + Math.log(this.documentStore.length / documentFrequency)\n }\n\n return this._idfCache[cacheKey] = idf\n}\n\n/**\n * Searches the index using the passed query.\n *\n * Queries should be a string, multiple words are allowed and will lead to an\n * AND based query, e.g. `idx.search('foo bar')` will run a search for\n * documents containing both 'foo' and 'bar'.\n *\n * All query tokens are passed through the same pipeline that document tokens\n * are passed through, so any language processing involved will be run on every\n * query term.\n *\n * Each query term is expanded, so that the term 'he' might be expanded to\n * 'hello' and 'help' if those terms were already included in the index.\n *\n * Matching documents are returned as an array of objects, each object contains\n * the matching document ref, as set for this index, and the similarity score\n * for this document against the query.\n *\n * @param {String} query The query to search the index with.\n * @returns {Object}\n * @see Index.prototype.idf\n * @see Index.prototype.documentVector\n * @memberOf Index\n */\nlunr.Index.prototype.search = function (query) {\n var queryTokens = this.pipeline.run(this.tokenizerFn(query)),\n queryVector = new lunr.Vector,\n documentSets = [],\n fieldBoosts = this._fields.reduce(function (memo, f) { return memo + f.boost }, 0)\n\n var hasSomeToken = queryTokens.some(function (token) {\n return this.tokenStore.has(token)\n }, this)\n\n if (!hasSomeToken) return []\n\n queryTokens\n .forEach(function (token, i, tokens) {\n var tf = 1 / tokens.length * this._fields.length * fieldBoosts,\n self = this\n\n var set = this.tokenStore.expand(token).reduce(function (memo, key) {\n var pos = self.corpusTokens.indexOf(key),\n idf = self.idf(key),\n similarityBoost = 1,\n set = new lunr.SortedSet\n\n // if the expanded key is not an exact match to the token then\n // penalise the score for this key by how different the key is\n // to the token.\n if (key !== token) {\n var diff = Math.max(3, key.length - token.length)\n similarityBoost = 1 / Math.log(diff)\n }\n\n // calculate the query tf-idf score for this token\n // applying an similarityBoost to ensure exact matches\n // these rank higher than expanded terms\n if (pos > -1) queryVector.insert(pos, tf * idf * similarityBoost)\n\n // add all the documents that have this key into a set\n // ensuring that the type of key is preserved\n var matchingDocuments = self.tokenStore.get(key),\n refs = Object.keys(matchingDocuments),\n refsLen = refs.length\n\n for (var i = 0; i < refsLen; i++) {\n set.add(matchingDocuments[refs[i]].ref)\n }\n\n return memo.union(set)\n }, new lunr.SortedSet)\n\n documentSets.push(set)\n }, this)\n\n var documentSet = documentSets.reduce(function (memo, set) {\n return memo.intersect(set)\n })\n\n return documentSet\n .map(function (ref) {\n return { ref: ref, score: queryVector.similarity(this.documentVector(ref)) }\n }, this)\n .sort(function (a, b) {\n return b.score - a.score\n })\n}\n\n/**\n * Generates a vector containing all the tokens in the document matching the\n * passed documentRef.\n *\n * The vector contains the tf-idf score for each token contained in the\n * document with the passed documentRef. The vector will contain an element\n * for every token in the indexes corpus, if the document does not contain that\n * token the element will be 0.\n *\n * @param {Object} documentRef The ref to find the document with.\n * @returns {lunr.Vector}\n * @private\n * @memberOf Index\n */\nlunr.Index.prototype.documentVector = function (documentRef) {\n var documentTokens = this.documentStore.get(documentRef),\n documentTokensLength = documentTokens.length,\n documentVector = new lunr.Vector\n\n for (var i = 0; i < documentTokensLength; i++) {\n var token = documentTokens.elements[i],\n tf = this.tokenStore.get(token)[documentRef].tf,\n idf = this.idf(token)\n\n documentVector.insert(this.corpusTokens.indexOf(token), tf * idf)\n };\n\n return documentVector\n}\n\n/**\n * Returns a representation of the index ready for serialisation.\n *\n * @returns {Object}\n * @memberOf Index\n */\nlunr.Index.prototype.toJSON = function () {\n return {\n version: lunr.version,\n fields: this._fields,\n ref: this._ref,\n tokenizer: this.tokenizerFn.label,\n documentStore: this.documentStore.toJSON(),\n tokenStore: this.tokenStore.toJSON(),\n corpusTokens: this.corpusTokens.toJSON(),\n pipeline: this.pipeline.toJSON()\n }\n}\n\n/**\n * Applies a plugin to the current index.\n *\n * A plugin is a function that is called with the index as its context.\n * Plugins can be used to customise or extend the behaviour the index\n * in some way. A plugin is just a function, that encapsulated the custom\n * behaviour that should be applied to the index.\n *\n * The plugin function will be called with the index as its argument, additional\n * arguments can also be passed when calling use. The function will be called\n * with the index as its context.\n *\n * Example:\n *\n * var myPlugin = function (idx, arg1, arg2) {\n * // `this` is the index to be extended\n * // apply any extensions etc here.\n * }\n *\n * var idx = lunr(function () {\n * this.use(myPlugin, 'arg1', 'arg2')\n * })\n *\n * @param {Function} plugin The plugin to apply.\n * @memberOf Index\n */\nlunr.Index.prototype.use = function (plugin) {\n var args = Array.prototype.slice.call(arguments, 1)\n args.unshift(this)\n plugin.apply(this, args)\n}\n/*!\n * lunr.Store\n * Copyright (C) 2016 Oliver Nightingale\n */\n\n/**\n * lunr.Store is a simple key-value store used for storing sets of tokens for\n * documents stored in index.\n *\n * @constructor\n * @module\n */\nlunr.Store = function () {\n this.store = {}\n this.length = 0\n}\n\n/**\n * Loads a previously serialised store\n *\n * @param {Object} serialisedData The serialised store to load.\n * @returns {lunr.Store}\n * @memberOf Store\n */\nlunr.Store.load = function (serialisedData) {\n var store = new this\n\n store.length = serialisedData.length\n store.store = Object.keys(serialisedData.store).reduce(function (memo, key) {\n memo[key] = lunr.SortedSet.load(serialisedData.store[key])\n return memo\n }, {})\n\n return store\n}\n\n/**\n * Stores the given tokens in the store against the given id.\n *\n * @param {Object} id The key used to store the tokens against.\n * @param {Object} tokens The tokens to store against the key.\n * @memberOf Store\n */\nlunr.Store.prototype.set = function (id, tokens) {\n if (!this.has(id)) this.length++\n this.store[id] = tokens\n}\n\n/**\n * Retrieves the tokens from the store for a given key.\n *\n * @param {Object} id The key to lookup and retrieve from the store.\n * @returns {Object}\n * @memberOf Store\n */\nlunr.Store.prototype.get = function (id) {\n return this.store[id]\n}\n\n/**\n * Checks whether the store contains a key.\n *\n * @param {Object} id The id to look up in the store.\n * @returns {Boolean}\n * @memberOf Store\n */\nlunr.Store.prototype.has = function (id) {\n return id in this.store\n}\n\n/**\n * Removes the value for a key in the store.\n *\n * @param {Object} id The id to remove from the store.\n * @memberOf Store\n */\nlunr.Store.prototype.remove = function (id) {\n if (!this.has(id)) return\n\n delete this.store[id]\n this.length--\n}\n\n/**\n * Returns a representation of the store ready for serialisation.\n *\n * @returns {Object}\n * @memberOf Store\n */\nlunr.Store.prototype.toJSON = function () {\n return {\n store: this.store,\n length: this.length\n }\n}\n\n/*!\n * lunr.stemmer\n * Copyright (C) 2016 Oliver Nightingale\n * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt\n */\n\n/**\n * lunr.stemmer is an english language stemmer, this is a JavaScript\n * implementation of the PorterStemmer taken from http://tartarus.org/~martin\n *\n * @module\n * @param {String} str The string to stem\n * @returns {String}\n * @see lunr.Pipeline\n */\nlunr.stemmer = (function(){\n var step2list = {\n \"ational\" : \"ate\",\n \"tional\" : \"tion\",\n \"enci\" : \"ence\",\n \"anci\" : \"ance\",\n \"izer\" : \"ize\",\n \"bli\" : \"ble\",\n \"alli\" : \"al\",\n \"entli\" : \"ent\",\n \"eli\" : \"e\",\n \"ousli\" : \"ous\",\n \"ization\" : \"ize\",\n \"ation\" : \"ate\",\n \"ator\" : \"ate\",\n \"alism\" : \"al\",\n \"iveness\" : \"ive\",\n \"fulness\" : \"ful\",\n \"ousness\" : \"ous\",\n \"aliti\" : \"al\",\n \"iviti\" : \"ive\",\n \"biliti\" : \"ble\",\n \"logi\" : \"log\"\n },\n\n step3list = {\n \"icate\" : \"ic\",\n \"ative\" : \"\",\n \"alize\" : \"al\",\n \"iciti\" : \"ic\",\n \"ical\" : \"ic\",\n \"ful\" : \"\",\n \"ness\" : \"\"\n },\n\n c = \"[^aeiou]\", // consonant\n v = \"[aeiouy]\", // vowel\n C = c + \"[^aeiouy]*\", // consonant sequence\n V = v + \"[aeiou]*\", // vowel sequence\n\n mgr0 = \"^(\" + C + \")?\" + V + C, // [C]VC... is m>0\n meq1 = \"^(\" + C + \")?\" + V + C + \"(\" + V + \")?$\", // [C]VC[V] is m=1\n mgr1 = \"^(\" + C + \")?\" + V + C + V + C, // [C]VCVC... is m>1\n s_v = \"^(\" + C + \")?\" + v; // vowel in stem\n\n var re_mgr0 = new RegExp(mgr0);\n var re_mgr1 = new RegExp(mgr1);\n var re_meq1 = new RegExp(meq1);\n var re_s_v = new RegExp(s_v);\n\n var re_1a = /^(.+?)(ss|i)es$/;\n var re2_1a = /^(.+?)([^s])s$/;\n var re_1b = /^(.+?)eed$/;\n var re2_1b = /^(.+?)(ed|ing)$/;\n var re_1b_2 = /.$/;\n var re2_1b_2 = /(at|bl|iz)$/;\n var re3_1b_2 = new RegExp(\"([^aeiouylsz])\\\\1$\");\n var re4_1b_2 = new RegExp(\"^\" + C + v + \"[^aeiouwxy]$\");\n\n var re_1c = /^(.+?[^aeiou])y$/;\n var re_2 = /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/;\n\n var re_3 = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/;\n\n var re_4 = /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/;\n var re2_4 = /^(.+?)(s|t)(ion)$/;\n\n var re_5 = /^(.+?)e$/;\n var re_5_1 = /ll$/;\n var re3_5 = new RegExp(\"^\" + C + v + \"[^aeiouwxy]$\");\n\n var porterStemmer = function porterStemmer(w) {\n var stem,\n suffix,\n firstch,\n re,\n re2,\n re3,\n re4;\n\n if (w.length < 3) { return w; }\n\n firstch = w.substr(0,1);\n if (firstch == \"y\") {\n w = firstch.toUpperCase() + w.substr(1);\n }\n\n // Step 1a\n re = re_1a\n re2 = re2_1a;\n\n if (re.test(w)) { w = w.replace(re,\"$1$2\"); }\n else if (re2.test(w)) { w = w.replace(re2,\"$1$2\"); }\n\n // Step 1b\n re = re_1b;\n re2 = re2_1b;\n if (re.test(w)) {\n var fp = re.exec(w);\n re = re_mgr0;\n if (re.test(fp[1])) {\n re = re_1b_2;\n w = w.replace(re,\"\");\n }\n } else if (re2.test(w)) {\n var fp = re2.exec(w);\n stem = fp[1];\n re2 = re_s_v;\n if (re2.test(stem)) {\n w = stem;\n re2 = re2_1b_2;\n re3 = re3_1b_2;\n re4 = re4_1b_2;\n if (re2.test(w)) { w = w + \"e\"; }\n else if (re3.test(w)) { re = re_1b_2; w = w.replace(re,\"\"); }\n else if (re4.test(w)) { w = w + \"e\"; }\n }\n }\n\n // Step 1c - replace suffix y or Y by i if preceded by a non-vowel which is not the first letter of the word (so cry -> cri, by -> by, say -> say)\n re = re_1c;\n if (re.test(w)) {\n var fp = re.exec(w);\n stem = fp[1];\n w = stem + \"i\";\n }\n\n // Step 2\n re = re_2;\n if (re.test(w)) {\n var fp = re.exec(w);\n stem = fp[1];\n suffix = fp[2];\n re = re_mgr0;\n if (re.test(stem)) {\n w = stem + step2list[suffix];\n }\n }\n\n // Step 3\n re = re_3;\n if (re.test(w)) {\n var fp = re.exec(w);\n stem = fp[1];\n suffix = fp[2];\n re = re_mgr0;\n if (re.test(stem)) {\n w = stem + step3list[suffix];\n }\n }\n\n // Step 4\n re = re_4;\n re2 = re2_4;\n if (re.test(w)) {\n var fp = re.exec(w);\n stem = fp[1];\n re = re_mgr1;\n if (re.test(stem)) {\n w = stem;\n }\n } else if (re2.test(w)) {\n var fp = re2.exec(w);\n stem = fp[1] + fp[2];\n re2 = re_mgr1;\n if (re2.test(stem)) {\n w = stem;\n }\n }\n\n // Step 5\n re = re_5;\n if (re.test(w)) {\n var fp = re.exec(w);\n stem = fp[1];\n re = re_mgr1;\n re2 = re_meq1;\n re3 = re3_5;\n if (re.test(stem) || (re2.test(stem) && !(re3.test(stem)))) {\n w = stem;\n }\n }\n\n re = re_5_1;\n re2 = re_mgr1;\n if (re.test(w) && re2.test(w)) {\n re = re_1b_2;\n w = w.replace(re,\"\");\n }\n\n // and turn initial Y back to y\n\n if (firstch == \"y\") {\n w = firstch.toLowerCase() + w.substr(1);\n }\n\n return w;\n };\n\n return porterStemmer;\n})();\n\nlunr.Pipeline.registerFunction(lunr.stemmer, 'stemmer')\n/*!\n * lunr.stopWordFilter\n * Copyright (C) 2016 Oliver Nightingale\n */\n\n/**\n * lunr.generateStopWordFilter builds a stopWordFilter function from the provided\n * list of stop words.\n *\n * The built in lunr.stopWordFilter is built using this generator and can be used\n * to generate custom stopWordFilters for applications or non English languages.\n *\n * @module\n * @param {Array} token The token to pass through the filter\n * @returns {Function}\n * @see lunr.Pipeline\n * @see lunr.stopWordFilter\n */\nlunr.generateStopWordFilter = function (stopWords) {\n var words = stopWords.reduce(function (memo, stopWord) {\n memo[stopWord] = stopWord\n return memo\n }, {})\n\n return function (token) {\n if (token && words[token] !== token) return token\n }\n}\n\n/**\n * lunr.stopWordFilter is an English language stop word list filter, any words\n * contained in the list will not be passed through the filter.\n *\n * This is intended to be used in the Pipeline. If the token does not pass the\n * filter then undefined will be returned.\n *\n * @module\n * @param {String} token The token to pass through the filter\n * @returns {String}\n * @see lunr.Pipeline\n */\nlunr.stopWordFilter = lunr.generateStopWordFilter([\n 'a',\n 'able',\n 'about',\n 'across',\n 'after',\n 'all',\n 'almost',\n 'also',\n 'am',\n 'among',\n 'an',\n 'and',\n 'any',\n 'are',\n 'as',\n 'at',\n 'be',\n 'because',\n 'been',\n 'but',\n 'by',\n 'can',\n 'cannot',\n 'could',\n 'dear',\n 'did',\n 'do',\n 'does',\n 'either',\n 'else',\n 'ever',\n 'every',\n 'for',\n 'from',\n 'get',\n 'got',\n 'had',\n 'has',\n 'have',\n 'he',\n 'her',\n 'hers',\n 'him',\n 'his',\n 'how',\n 'however',\n 'i',\n 'if',\n 'in',\n 'into',\n 'is',\n 'it',\n 'its',\n 'just',\n 'least',\n 'let',\n 'like',\n 'likely',\n 'may',\n 'me',\n 'might',\n 'most',\n 'must',\n 'my',\n 'neither',\n 'no',\n 'nor',\n 'not',\n 'of',\n 'off',\n 'often',\n 'on',\n 'only',\n 'or',\n 'other',\n 'our',\n 'own',\n 'rather',\n 'said',\n 'say',\n 'says',\n 'she',\n 'should',\n 'since',\n 'so',\n 'some',\n 'than',\n 'that',\n 'the',\n 'their',\n 'them',\n 'then',\n 'there',\n 'these',\n 'they',\n 'this',\n 'tis',\n 'to',\n 'too',\n 'twas',\n 'us',\n 'wants',\n 'was',\n 'we',\n 'were',\n 'what',\n 'when',\n 'where',\n 'which',\n 'while',\n 'who',\n 'whom',\n 'why',\n 'will',\n 'with',\n 'would',\n 'yet',\n 'you',\n 'your'\n])\n\nlunr.Pipeline.registerFunction(lunr.stopWordFilter, 'stopWordFilter')\n/*!\n * lunr.trimmer\n * Copyright (C) 2016 Oliver Nightingale\n */\n\n/**\n * lunr.trimmer is a pipeline function for trimming non word\n * characters from the begining and end of tokens before they\n * enter the index.\n *\n * This implementation may not work correctly for non latin\n * characters and should either be removed or adapted for use\n * with languages with non-latin characters.\n *\n * @module\n * @param {String} token The token to pass through the filter\n * @returns {String}\n * @see lunr.Pipeline\n */\nlunr.trimmer = function (token) {\n return token.replace(/^\\W+/, '').replace(/\\W+$/, '')\n}\n\nlunr.Pipeline.registerFunction(lunr.trimmer, 'trimmer')\n/*!\n * lunr.stemmer\n * Copyright (C) 2016 Oliver Nightingale\n * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt\n */\n\n/**\n * lunr.TokenStore is used for efficient storing and lookup of the reverse\n * index of token to document ref.\n *\n * @constructor\n */\nlunr.TokenStore = function () {\n this.root = { docs: {} }\n this.length = 0\n}\n\n/**\n * Loads a previously serialised token store\n *\n * @param {Object} serialisedData The serialised token store to load.\n * @returns {lunr.TokenStore}\n * @memberOf TokenStore\n */\nlunr.TokenStore.load = function (serialisedData) {\n var store = new this\n\n store.root = serialisedData.root\n store.length = serialisedData.length\n\n return store\n}\n\n/**\n * Adds a new token doc pair to the store.\n *\n * By default this function starts at the root of the current store, however\n * it can start at any node of any token store if required.\n *\n * @param {String} token The token to store the doc under\n * @param {Object} doc The doc to store against the token\n * @param {Object} root An optional node at which to start looking for the\n * correct place to enter the doc, by default the root of this lunr.TokenStore\n * is used.\n * @memberOf TokenStore\n */\nlunr.TokenStore.prototype.add = function (token, doc, root) {\n var root = root || this.root,\n key = token.charAt(0),\n rest = token.slice(1)\n\n if (!(key in root)) root[key] = {docs: {}}\n\n if (rest.length === 0) {\n root[key].docs[doc.ref] = doc\n this.length += 1\n return\n } else {\n return this.add(rest, doc, root[key])\n }\n}\n\n/**\n * Checks whether this key is contained within this lunr.TokenStore.\n *\n * By default this function starts at the root of the current store, however\n * it can start at any node of any token store if required.\n *\n * @param {String} token The token to check for\n * @param {Object} root An optional node at which to start\n * @memberOf TokenStore\n */\nlunr.TokenStore.prototype.has = function (token) {\n if (!token) return false\n\n var node = this.root\n\n for (var i = 0; i < token.length; i++) {\n if (!node[token.charAt(i)]) return false\n\n node = node[token.charAt(i)]\n }\n\n return true\n}\n\n/**\n * Retrieve a node from the token store for a given token.\n *\n * By default this function starts at the root of the current store, however\n * it can start at any node of any token store if required.\n *\n * @param {String} token The token to get the node for.\n * @param {Object} root An optional node at which to start.\n * @returns {Object}\n * @see TokenStore.prototype.get\n * @memberOf TokenStore\n */\nlunr.TokenStore.prototype.getNode = function (token) {\n if (!token) return {}\n\n var node = this.root\n\n for (var i = 0; i < token.length; i++) {\n if (!node[token.charAt(i)]) return {}\n\n node = node[token.charAt(i)]\n }\n\n return node\n}\n\n/**\n * Retrieve the documents for a node for the given token.\n *\n * By default this function starts at the root of the current store, however\n * it can start at any node of any token store if required.\n *\n * @param {String} token The token to get the documents for.\n * @param {Object} root An optional node at which to start.\n * @returns {Object}\n * @memberOf TokenStore\n */\nlunr.TokenStore.prototype.get = function (token, root) {\n return this.getNode(token, root).docs || {}\n}\n\nlunr.TokenStore.prototype.count = function (token, root) {\n return Object.keys(this.get(token, root)).length\n}\n\n/**\n * Remove the document identified by ref from the token in the store.\n *\n * By default this function starts at the root of the current store, however\n * it can start at any node of any token store if required.\n *\n * @param {String} token The token to get the documents for.\n * @param {String} ref The ref of the document to remove from this token.\n * @param {Object} root An optional node at which to start.\n * @returns {Object}\n * @memberOf TokenStore\n */\nlunr.TokenStore.prototype.remove = function (token, ref) {\n if (!token) return\n var node = this.root\n\n for (var i = 0; i < token.length; i++) {\n if (!(token.charAt(i) in node)) return\n node = node[token.charAt(i)]\n }\n\n delete node.docs[ref]\n}\n\n/**\n * Find all the possible suffixes of the passed token using tokens\n * currently in the store.\n *\n * @param {String} token The token to expand.\n * @returns {Array}\n * @memberOf TokenStore\n */\nlunr.TokenStore.prototype.expand = function (token, memo) {\n var root = this.getNode(token),\n docs = root.docs || {},\n memo = memo || []\n\n if (Object.keys(docs).length) memo.push(token)\n\n Object.keys(root)\n .forEach(function (key) {\n if (key === 'docs') return\n\n memo.concat(this.expand(token + key, memo))\n }, this)\n\n return memo\n}\n\n/**\n * Returns a representation of the token store ready for serialisation.\n *\n * @returns {Object}\n * @memberOf TokenStore\n */\nlunr.TokenStore.prototype.toJSON = function () {\n return {\n root: this.root,\n length: this.length\n }\n}\n\n /**\n * export the module via AMD, CommonJS or as a browser global\n * Export code from https://github.com/umdjs/umd/blob/master/returnExports.js\n */\n ;(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(factory)\n } else if (typeof exports === 'object') {\n /**\n * Node. Does not work with strict CommonJS, but\n * only CommonJS-like enviroments that support module.exports,\n * like Node.\n */\n module.exports = factory()\n } else {\n // Browser globals (root is window)\n root.lunr = factory()\n }\n }(this, function () {\n /**\n * Just return a value to define the module export.\n * This example returns an object, but the module\n * can return a function as the exported value.\n */\n return lunr\n }))\n})();\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/lunr/lunr.js\n **/","/*\n * Copyright (c) 2016 Martin Donath \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport Sidebar from \"./Material/Sidebar\"\n\n/* ----------------------------------------------------------------------------\n * Material application\n * ------------------------------------------------------------------------- */\n\nexport default\nclass Material {\n\n /**\n * Constructor\n *\n * @constructor\n */\n // constructor() {\n //\n // }\n\n /**\n * @return {void}\n */\n initialize() {\n\n // class AnchorMarker extends PageYOffsetListener\n // class SidebarConstrainer extends PageYOffsetListener\n\n // MatchMedia!?\n\n const width = window.matchMedia(\"(min-width: 1200px)\")\n\n // separate function in application.js --> initSidebar()\n const sidebar = new Sidebar.Position(\"[data-md-sidebar=primary]\")\n const handler = function() {\n if (width.matches) {\n sidebar.listen()\n } else {\n sidebar.unlisten()\n }\n }\n handler() // check listen!\n\n const toc = new Sidebar.Position(\"[data-md-sidebar=secondary]\")\n toc.listen()\n\n window.addEventListener(\"resize\", handler) // TODO: orientation change etc...\n\n const marker =\n new Sidebar.Marker(\"[data-md-sidebar=secondary] .md-nav__link\")\n marker.listen()\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/assets/javascripts/components/Material.js\n **/","/*\n * Copyright (c) 2016 Martin Donath \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport Marker from \"./Sidebar/Marker\"\nimport Position from \"./Sidebar/Position\"\n\n/* ----------------------------------------------------------------------------\n * Definition\n * ------------------------------------------------------------------------- */\n\nexport default {\n Marker,\n Position\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/assets/javascripts/components/Material/Sidebar.js\n **/","/*\n * Copyright (c) 2016 Martin Donath \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport Abstract from \"./Abstract\"\n\n/* ----------------------------------------------------------------------------\n * Definition\n * ------------------------------------------------------------------------- */\n\nexport default class Marker extends Abstract {\n\n /**\n * Mark anchors within the table of contents above current page y-offset\n *\n * @constructor\n * @param {(string|NodeList)} els - Selector or HTML elements\n */\n constructor(els) {\n super()\n\n /* Resolve elements */\n this.els_ = (typeof els === \"string\")\n ? document.querySelectorAll(els)\n : els\n\n /* Initialize index and page y-offset */\n this.index_ = 0\n this.offset_ = window.pageYOffset\n\n /* Index anchor nodes for fast lookup */\n this.anchors_ = [].map.call(this.els_, el => {\n return document.querySelector(el.hash)\n })\n }\n\n /**\n * Update anchor states\n *\n * @param {Event} ev - Event (omitted)\n */\n update() {\n const offset = window.pageYOffset\n\n /* Scroll direction is down */\n if (this.offset_ <= offset) {\n for (let i = this.index_ + 1; i < this.els_.length; i++) {\n if (this.anchors_[i].offsetTop <= offset) {\n if (i > 0)\n this.els_[i - 1].dataset.mdMarked = \"\"\n this.index_ = i\n } else {\n break\n }\n }\n\n /* Scroll direction is up */\n } else {\n for (let i = this.index_; i >= 0; i--) {\n if (this.anchors_[i].offsetTop > offset) {\n if (i > 0)\n delete this.els_[i - 1].dataset.mdMarked\n } else {\n this.index_ = i\n break\n }\n }\n }\n\n /* Remember current offset for next iteration */\n this.offset_ = offset\n }\n\n /**\n * Reset anchor states\n */\n reset() {\n [].forEach.call(this.els_, el => {\n delete el.dataset.mdMarked\n })\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/assets/javascripts/components/Material/Sidebar/Marker.js\n **/","/*\n * Copyright (c) 2016 Martin Donath \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/* ----------------------------------------------------------------------------\n * Definition\n * ------------------------------------------------------------------------- */\n\nexport default class Abstract {\n\n /**\n * Dispatch update on next repaint\n *\n * @constructor\n */\n constructor() {\n if (this === Abstract)\n throw new TypeError(\"Cannot construct abstract instance\")\n\n /* Dispatch update on next repaint */\n this.handler_ = ev => {\n window.requestAnimationFrame(() => {\n this.update(ev)\n })\n }\n }\n\n /**\n * Update state\n *\n * @abstract\n */\n update() {\n throw new Error(\"update(): not implemented\")\n }\n\n /**\n * Reset state\n *\n * @abstract\n */\n reset() {\n throw new Error(\"reset(): not implemented\")\n }\n\n /**\n * Register listener for all relevant events\n */\n listen() {\n [\"scroll\", \"resize\", \"orientationchange\"].forEach(name => {\n window.addEventListener(name, this.handler_, false)\n })\n\n /* Initial update */\n this.update()\n }\n\n /**\n * Unregister listener for all relevant events\n */\n unlisten() {\n [\"scroll\", \"resize\", \"orientationchange\"].forEach(name => {\n window.removeEventListener(name, this.handler_, false)\n })\n\n /* Final reset */\n this.reset()\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/assets/javascripts/components/Material/Sidebar/Abstract.js\n **/","/*\n * Copyright (c) 2016 Martin Donath \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport Abstract from \"./Abstract\"\n\n/* ----------------------------------------------------------------------------\n * Definition\n * ------------------------------------------------------------------------- */\n\nexport default class Position extends Abstract {\n\n /**\n * Set sidebars to locked state and limit height to parent node\n *\n * @constructor\n * @param {(string|HTMLElement)} el - Selector or HTML element\n */\n constructor(el) {\n super()\n\n /* Resolve elements */\n this.el_ = (typeof el === \"string\")\n ? document.querySelector(el)\n : el\n\n /* Index inner and outer container */\n const inner = this.el_.parentNode\n const outer = this.el_.parentNode.parentNode\n\n /* Get top and bottom bounds */\n this.offset_ = outer.offsetTop\n this.bounds_ = {\n top: inner.offsetTop,\n bottom: inner.offsetTop + inner.offsetHeight\n }\n\n /* Initialize current height */\n this.height_ = 0\n }\n\n /**\n * Update locked state and height\n *\n * @param {Event} ev - Event (omitted)\n */\n update() {\n const scroll = window.pageYOffset\n const expand = window.innerHeight\n\n /* Calculate new bounds */\n const offset = this.bounds_.top - scroll\n const height = expand\n - Math.max(0, scroll + expand - this.bounds_.bottom)\n - Math.max(offset, this.offset_)\n\n /* If height changed, update element */\n if (height !== this.height_)\n this.el_.style.height = `${this.height_ = height}px`\n\n /* Sidebar should be locked, as we're below parent offset */\n if (offset < this.offset_) {\n if (!this.el_.dataset.mdLocked)\n this.el_.dataset.mdLocked = \"\"\n\n /* Sidebar should be unlocked, if locked */\n } else if (typeof this.el_.dataset.mdLocked === \"string\") {\n delete this.el_.dataset.mdLocked\n }\n }\n\n /**\n * Reset locked state and height\n */\n reset() {\n delete this.el_.dataset.mdLocked\n this.el_.style.height = \"\"\n this.height_ = 0\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/assets/javascripts/components/Material/Sidebar/Position.js\n **/"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/bootstrap 66a33cb106306134b98f","webpack:///./src/assets/javascripts/application.js","webpack:///./~/fastclick/lib/fastclick.js","webpack:///(webpack)/buildin/amd-options.js","webpack:///./~/lunr/lunr.js","webpack:///./src/assets/javascripts/components/GithubSourceFacts.js","webpack:///./src/assets/javascripts/components/Material.js","webpack:///./src/assets/javascripts/components/Material/Sidebar.js","webpack:///./src/assets/javascripts/components/Material/Sidebar/Marker.js","webpack:///./src/assets/javascripts/components/Material/Sidebar/Abstract.js","webpack:///./src/assets/javascripts/components/Material/Sidebar/Position.js"],"names":["Application","config","material","initialize","hasGithubRepo","githubSource","storage","repo","url","icon","includes","document","addEventListener","Modernizr","addTest","navigator","userAgent","match","standalone","attach","body","query","getElementById","querySelector","dataset","mdLocked","offset","toggle","list","lock","matchMedia","matches","setTimeout","window","scrollTo","scrollY","focus","toggleSearchClose","setAttribute","toggles","querySelectorAll","forEach","call","nav","togglex","nextElementSibling","style","maxHeight","getBoundingClientRect","height","first","requestAnimationFrame","classList","add","last","remove","ev","target","fetch","then","response","json","index","field","boost","ref","articles","data","docs","article","text","replace","string","g1","location","baseUrl","queryx","container","firstChild","removeChild","results","search","value","result","link","createElement","href","li","appendChild","title","innerHTML","truncate","n","i","length","substring","meta","catch","FastClick","layer","options","oldOnClick","trackingClick","trackingClickStart","targetElement","touchStartX","touchStartY","lastTouchIdentifier","touchBoundary","tapDelay","tapTimeout","notNeeded","bind","method","context","apply","arguments","methods","l","deviceIsAndroid","onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel","Event","prototype","stopImmediatePropagation","removeEventListener","type","callback","capture","rmv","Node","hijacked","adv","event","propagationStopped","onclick","deviceIsWindowsPhone","indexOf","deviceIsIOS","test","deviceIsIOS4","deviceIsIOSWithBadTarget","deviceIsBlackBerry10","needsClick","nodeName","toLowerCase","disabled","className","needsFocus","readOnly","sendClick","clickEvent","touch","activeElement","blur","changedTouches","createEvent","initMouseEvent","determineEventType","screenX","screenY","clientX","clientY","forwardedTouchEvent","dispatchEvent","tagName","setSelectionRange","updateScrollParent","scrollParent","parentElement","fastClickScrollParent","contains","scrollHeight","offsetHeight","fastClickLastScrollTop","scrollTop","getTargetElementFromEventTarget","eventTarget","nodeType","TEXT_NODE","parentNode","selection","targetTouches","getSelection","rangeCount","isCollapsed","identifier","preventDefault","timeStamp","pageX","pageY","lastClickTime","touchHasMoved","boundary","Math","abs","findControl","labelElement","control","undefined","htmlFor","forElement","targetTagName","cancelNextClick","elementFromPoint","pageXOffset","pageYOffset","top","cancelable","stopPropagation","permitted","detail","destroy","metaViewport","chromeVersion","blackberryVersion","firefoxVersion","ontouchstart","exec","content","documentElement","scrollWidth","outerWidth","msTouchAction","touchAction","define","module","exports","lunr","idx","Index","pipeline","trimmer","stopWordFilter","stemmer","version","utils","warn","global","message","console","asString","obj","toString","EventEmitter","events","addListener","args","Array","slice","fn","pop","names","TypeError","name","hasHandler","push","removeListener","fnIndex","splice","emit","tokenizer","isArray","map","t","separator","seperator","trim","split","load","label","registeredFunctions","Error","registerFunction","Pipeline","_stack","warnIfFunctionNotRegistered","isRegistered","serialised","fnName","fns","after","existingFn","newFn","pos","before","run","tokens","out","tokenLength","stackLength","token","j","reset","toJSON","Vector","_magnitude","val","next","insert","prev","magnitude","node","sumOfSquares","sqrt","dot","otherVector","otherNode","dotProduct","similarity","SortedSet","elements","serialisedData","set","element","locationFor","toArray","ctx","elem","start","end","sectionLength","pivot","floor","pivotElem","intersect","otherSet","intersectSet","a_len","b_len","a","b","clone","union","longSet","shortSet","unionSet","shortSetElements","_fields","_ref","documentStore","Store","tokenStore","TokenStore","corpusTokens","eventEmitter","tokenizerFn","_idfCache","on","off","fields","fieldName","opts","refName","doc","emitEvent","docTokens","allDocumentTokens","docRef","fieldTokens","tf","fieldLength","tokenCount","k","has","get","update","idf","term","cacheKey","Object","hasOwnProperty","documentFrequency","count","log","queryTokens","queryVector","documentSets","fieldBoosts","reduce","memo","f","hasSomeToken","some","self","expand","key","similarityBoost","diff","max","matchingDocuments","refs","keys","refsLen","documentSet","score","documentVector","sort","documentRef","documentTokens","documentTokensLength","use","plugin","unshift","store","id","step2list","step3list","c","v","C","V","mgr0","meq1","mgr1","s_v","re_mgr0","RegExp","re_mgr1","re_meq1","re_s_v","re_1a","re2_1a","re_1b","re2_1b","re_1b_2","re2_1b_2","re3_1b_2","re4_1b_2","re_1c","re_2","re_3","re_4","re2_4","re_5","re_5_1","re3_5","porterStemmer","w","stem","suffix","firstch","re","re2","re3","re4","substr","toUpperCase","fp","generateStopWordFilter","stopWords","words","stopWord","root","charAt","rest","getNode","concat","factory","GithubSourceFacts","repoUrl","storageKey","apiRepoUrl","facts","getItem","repoFacts","stars","stargazers_count","forks","forks_count","setItem","JSON","stringify","paint","parse","lists","innerText","lix","Material","width","sidebar","Position","handler","listen","unlisten","toc","marker","Marker","els","els_","index_","offset_","anchors_","el","hash","offsetTop","mdMarked","Abstract","handler_","el_","inner","outer","bounds_","bottom","height_","scroll","innerHeight"],"mappings":";;AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;;;;;;;sjBCtCA;;;;;;;;;;;;;;;;;;;;;;AAsBA;;;;AAOA;;AAHA;;;;AACA;;;;AAIA;;;;AACA;;;;;;;;AAEA;;AAEA;;;;KAIMA,W;;AAEJ;;;;;;;AAOA,wBAAYC,MAAZ,EAAoB;AAAA;;AAClB,UAAKA,MAAL,GAAcA,MAAd;AACD;;AAED;;;;;;;kCAGa;AACX,WAAMC,WAAW,wBAAjB;AACAA,gBAASC,UAAT;;AAEA,WAAI,KAAKC,aAAL,EAAJ,EAA0B;AACxB,aAAMC,eAAe,gCACnB,KAAKJ,MAAL,CAAYK,OADO,EAEnB,K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;;AAED;;;;;;6BAGQ;AACN,cAAO,KAAK8d,GAAL,CAAS/d,OAAT,CAAiBC,QAAxB;AACA,YAAK8d,GAAL,CAASzc,KAAT,CAAeG,MAAf,GAAwB,EAAxB;AACA,YAAK2c,OAAL,GAAe,CAAf;AACD;;;;;;mBApEkBvB,Q","file":"application.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap 66a33cb106306134b98f\n **/","/*\n * Copyright (c) 2016 Martin Donath \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/* ----------------------------------------------------------------------------\n * Imports\n * ------------------------------------------------------------------------- */\n\nimport FastClick from \"fastclick\"\nimport lunr from \"lunr\"\n\n// import Expander from \"./components/expander\"\n\nimport GithubSourceFacts from \"./components/GithubSourceFacts\"\nimport Material from \"./components/Material\"\n\n// import Search from './components/search';\n\n/* ----------------------------------------------------------------------------\n * Application\n * ------------------------------------------------------------------------- */\n\nclass Application {\n\n /**\n * Constructor.\n *\n * @constructor\n * @param {object} config Configuration object\n * @return {void}\n */\n constructor(config) {\n this.config = config\n }\n\n /**\n * @return {void}\n */\n initialize() {\n const material = new Material()\n material.initialize()\n\n if (this.hasGithubRepo()) {\n const githubSource = new GithubSourceFacts(\n this.config.storage,\n this.config.repo.url\n )\n githubSource.initialize()\n }\n }\n\n /**\n * Is this application about a Github repository?\n *\n * @return {bool} - true if `repo.icon` or `repo.url` contains 'github'\n */\n hasGithubRepo() {\n return this.config.repo.icon === \"github\"\n || this.config.repo.url.includes(\"github\")\n }\n}\n\nexport default Application\n\n// TODO: wrap in function call\n// application module export\n\n/* Initialize application upon DOM ready */\ndocument.addEventListener(\"DOMContentLoaded\", () => {\n\n /* Test for iOS */\n Modernizr.addTest(\"ios\", () => {\n return !!navigator.userAgent.match(/(iPad|iPhone|iPod)/g)\n })\n\n /* Test for web application context */\n Modernizr.addTest(\"standalone\", () => {\n return !!navigator.standalone\n })\n\n /* Attack FastClick to mitigate 300ms delay on touch devices */\n FastClick.attach(document.body)\n\n const query = document.getElementById(\"query\")\n query.addEventListener(\"focus\", () => {\n document.querySelector(\".md-search\").dataset.mdLocked = \"\"\n })\n\n /* Intercept click on search mode toggle */\n let offset = 0\n const toggle = document.getElementById(\"search\")\n toggle.addEventListener(\"click\", () => { // TODO: click may be the wrong event...\n const list = document.body // classList md bla\n const lock = !matchMedia(\"only screen and (min-width: 960px)\").matches\n\n /* Exiting search mode */\n if (list.dataset.mdLocked) {\n delete list.dataset.mdLocked\n\n /* Scroll to former position, but wait for 100ms to prevent flashes\n on iOS. A short timeout seems to do the trick */\n if (lock)\n setTimeout(() => {\n window.scrollTo(0, offset)\n }, 100)\n\n /* Entering search mode */\n } else {\n offset = window.scrollY\n\n /* First timeout: scroll to top after transition, to omit flickering */\n if (lock)\n setTimeout(() => {\n window.scrollTo(0, 0)\n }, 400)\n\n /* Second timeout: Lock body after finishing transition and scrolling to\n top and focus input field. Sadly, the focus event is not dispatched\n on iOS Safari and there's nothing we can do about it. */\n setTimeout(() => {\n\n /* This additional check is necessary to handle fast subsequent clicks\n on the toggle and the timeout to lock the body must be cancelled */\n // if (ev.target.checked) {\n if (lock)\n list.dataset.mdLocked = \"\"\n setTimeout(() => {\n document.getElementById(\"query\").focus()\n }, 200)\n // }\n }, 450)\n }\n })\n\n // TODO: only do this on MOBILE and TABLET\n const toggleSearchClose = document.querySelector(\".md-search__icon\")\n toggleSearchClose.setAttribute(\"for\", \"search\") // TODO: override query with search, when on mobile!!!\n // toggleSearchClose.addEventListener(\"click\", ev => {\n // ev.preventDefault()\n // // ev.target\n //\n // const search = document.getElementById(\"search\")\n // search.checked = false\n // })\n\n // var toc = new Sidebar('.md-sidebar--secondary');\n // toc.listen();\n\n const toggles =\n document.querySelectorAll(\".md-nav__item--nested > .md-nav__link\");\n [].forEach.call(toggles, togglex => {\n const nav = togglex.nextElementSibling\n\n // 1.\n\n nav.style.maxHeight = `${nav.getBoundingClientRect().height}px`\n\n togglex.addEventListener(\"click\", () => {\n const first = nav.getBoundingClientRect().height\n if (first) {\n // console.log('closing');\n nav.style.maxHeight = `${first}px` // reset!\n requestAnimationFrame(() => {\n\n nav.classList.add(\"md-nav--transitioning\")\n nav.style.maxHeight = \"0px\"\n })\n } else {\n // console.log('opening');\n\n /* Toggle and read height */\n nav.style.maxHeight = \"\"\n\n nav.classList.add(\"md-nav--toggled\")\n const last = nav.getBoundingClientRect().height\n nav.classList.remove(\"md-nav--toggled\")\n\n // Initial state\n nav.style.maxHeight = \"0px\"\n\n /* Enable animations */\n requestAnimationFrame(() => {\n nav.classList.add(\"md-nav--transitioning\")\n nav.style.maxHeight = `${last}px`\n })\n }\n\n })\n\n // Capture the end with transitionend\n nav.addEventListener(\"transitionend\", ev => {\n ev.target.classList.remove(\"md-nav--transitioning\")\n if (ev.target.getBoundingClientRect().height > 0) {\n ev.target.style.maxHeight = \"100%\"\n }\n })\n })\n\n// setTimeout(function() {\n fetch(\"/mkdocs/search_index.json\") // TODO: prepend BASE URL!!!\n .then(response => {\n return response.json()\n })\n .then(data => {\n // console.log(data)\n\n /* Create index */\n const index = lunr(function() {\n /* eslint-disable no-invalid-this, lines-around-comment */\n this.field(\"title\", { boost: 10 })\n this.field(\"text\")\n this.ref(\"location\")\n /* eslint-enable no-invalid-this, lines-around-comment */\n })\n\n /* Index articles */\n const articles = {}\n data.docs.forEach(article => {\n\n // TODO: match for two whitespaces, then replace unnecessary whitespace after string\n article.text = article.text.replace(/\\s(\\.,\\:)\\s/gi, (string, g1) => {\n return `${g1} `\n })\n // TODO: window.baseUrl sucks...\n article.location = window.baseUrl + article.location\n articles[article.location] = article\n index.add(article)\n })\n\n /* Register keyhandler to execute search on key up */\n const queryx = document.getElementById(\"query\")\n queryx.addEventListener(\"keyup\", () => {\n const container = document.querySelector(\".md-search-result__list\")\n while (container.firstChild)\n container.removeChild(container.firstChild)\n\n // /* Abort, if the query is empty */\n // var bar = document.querySelector('.bar.search');\n // if (!query.value.length) {\n // while (meta.firstChild)\n // meta.removeChild(meta.firstChild);\n //\n // /* Restore state */\n // bar.classList.remove('non-empty');\n // return;\n // }\n\n /* Show reset button */\n // bar.classList.add('non-empty');\n\n /* Execute search */\n const results = index.search(query.value)\n results.forEach(result => {\n const article = articles[result.ref]\n\n /* Create a link referring to the article */\n const link = document.createElement(\"a\")\n link.classList.add(\"md-search-result__link\")\n link.href = article.location\n\n // /* Create article container */\n const li = document.createElement(\"li\")\n li.classList.add(\"md-search-result__item\")\n li.appendChild(link)\n\n /* Create title element */\n const title = document.createElement(\"div\")\n title.classList.add(\"md-search-result__title\")\n\n // article.title.split(//)\n\n title.innerHTML = article.title\n link.appendChild(title)\n\n /* Truncate a string after the given number of characters */\n const truncate = function(string, n) {\n let i = n\n if (string.length > i) {\n while (string[i] !== \" \" && --i > 0);\n return `${string.substring(0, i)}…`\n }\n return string\n }\n\n /* Create text element */\n const text = document.createElement(\"p\")\n text.classList.add(\"md-search-result__description\")\n text.innerHTML = truncate(article.text) // .truncate(140);\n text.innerHTML = truncate(article.text, 140) // .truncate(140);\n link.appendChild(text)\n\n container.appendChild(li)\n })\n\n /* Show number of search results */\n // var number = document.createElement('strong');\n\n const meta = document.querySelector(\".md-search-result__meta\")\n meta.innerHTML = `${results.length} search result${\n results.length !== 1\n ? \"s\"\n : \"\"}`\n\n /* Update number */\n // while (meta.firstChild)\n // meta.removeChild(meta.firstChild);\n // meta.appendChild(number);\n })\n\n // setTimeout(function() {\n // li.classList.remove('md-source__fact--hidden');\n // }, 100);\n\n })\n .catch(() => {\n // console.log(\"parsing failed\", ex)\n })\n// }, 1000);\n\n fetch(\n \"https://api.github.com/repos/squidfunk/mkdocs-material/releases/latest\")\n .then(response => {\n return response.json()\n })\n // .then(data => {\n // // console.log(data)\n // })\n\n})\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/assets/javascripts/application.js\n **/",";(function () {\n\t'use strict';\n\n\t/**\n\t * @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.\n\t *\n\t * @codingstandard ftlabs-jsv2\n\t * @copyright The Financial Times Limited [All Rights Reserved]\n\t * @license MIT License (see LICENSE.txt)\n\t */\n\n\t/*jslint browser:true, node:true*/\n\t/*global define, Event, Node*/\n\n\n\t/**\n\t * Instantiate fast-clicking listeners on the specified layer.\n\t *\n\t * @constructor\n\t * @param {Element} layer The layer to listen on\n\t * @param {Object} [options={}] The options to override the defaults\n\t */\n\tfunction FastClick(layer, options) {\n\t\tvar oldOnClick;\n\n\t\toptions = options || {};\n\n\t\t/**\n\t\t * Whether a click is currently being tracked.\n\t\t *\n\t\t * @type boolean\n\t\t */\n\t\tthis.trackingClick = false;\n\n\n\t\t/**\n\t\t * Timestamp for when click tracking started.\n\t\t *\n\t\t * @type number\n\t\t */\n\t\tthis.trackingClickStart = 0;\n\n\n\t\t/**\n\t\t * The element being tracked for a click.\n\t\t *\n\t\t * @type EventTarget\n\t\t */\n\t\tthis.targetElement = null;\n\n\n\t\t/**\n\t\t * X-coordinate of touch start event.\n\t\t *\n\t\t * @type number\n\t\t */\n\t\tthis.touchStartX = 0;\n\n\n\t\t/**\n\t\t * Y-coordinate of touch start event.\n\t\t *\n\t\t * @type number\n\t\t */\n\t\tthis.touchStartY = 0;\n\n\n\t\t/**\n\t\t * ID of the last touch, retrieved from Touch.identifier.\n\t\t *\n\t\t * @type number\n\t\t */\n\t\tthis.lastTouchIdentifier = 0;\n\n\n\t\t/**\n\t\t * Touchmove boundary, beyond which a click will be cancelled.\n\t\t *\n\t\t * @type number\n\t\t */\n\t\tthis.touchBoundary = options.touchBoundary || 10;\n\n\n\t\t/**\n\t\t * The FastClick layer.\n\t\t *\n\t\t * @type Element\n\t\t */\n\t\tthis.layer = layer;\n\n\t\t/**\n\t\t * The minimum time between tap(touchstart and touchend) events\n\t\t *\n\t\t * @type number\n\t\t */\n\t\tthis.tapDelay = options.tapDelay || 200;\n\n\t\t/**\n\t\t * The maximum time for a tap\n\t\t *\n\t\t * @type number\n\t\t */\n\t\tthis.tapTimeout = options.tapTimeout || 700;\n\n\t\tif (FastClick.notNeeded(layer)) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Some old versions of Android don't have Function.prototype.bind\n\t\tfunction bind(method, context) {\n\t\t\treturn function() { return method.apply(context, arguments); };\n\t\t}\n\n\n\t\tvar methods = ['onMouse', 'onClick', 'onTouchStart', 'onTouchMove', 'onTouchEnd', 'onTouchCancel'];\n\t\tvar context = this;\n\t\tfor (var i = 0, l = methods.length; i < l; i++) {\n\t\t\tcontext[methods[i]] = bind(context[methods[i]], context);\n\t\t}\n\n\t\t// Set up event handlers as required\n\t\tif (deviceIsAndroid) {\n\t\t\tlayer.addEventListener('mouseover', this.onMouse, true);\n\t\t\tlayer.addEventListener('mousedown', this.onMouse, true);\n\t\t\tlayer.addEventListener('mouseup', this.onMouse, true);\n\t\t}\n\n\t\tlayer.addEventListener('click', this.onClick, true);\n\t\tlayer.addEventListener('touchstart', this.onTouchStart, false);\n\t\tlayer.addEventListener('touchmove', this.onTouchMove, false);\n\t\tlayer.addEventListener('touchend', this.onTouchEnd, false);\n\t\tlayer.addEventListener('touchcancel', this.onTouchCancel, false);\n\n\t\t// Hack is required for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2)\n\t\t// which is how FastClick normally stops click events bubbling to callbacks registered on the FastClick\n\t\t// layer when they are cancelled.\n\t\tif (!Event.prototype.stopImmediatePropagation) {\n\t\t\tlayer.removeEventListener = function(type, callback, capture) {\n\t\t\t\tvar rmv = Node.prototype.removeEventListener;\n\t\t\t\tif (type === 'click') {\n\t\t\t\t\trmv.call(layer, type, callback.hijacked || callback, capture);\n\t\t\t\t} else {\n\t\t\t\t\trmv.call(layer, type, callback, capture);\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tlayer.addEventListener = function(type, callback, capture) {\n\t\t\t\tvar adv = Node.prototype.addEventListener;\n\t\t\t\tif (type === 'click') {\n\t\t\t\t\tadv.call(layer, type, callback.hijacked || (callback.hijacked = function(event) {\n\t\t\t\t\t\tif (!event.propagationStopped) {\n\t\t\t\t\t\t\tcallback(event);\n\t\t\t\t\t\t}\n\t\t\t\t\t}), capture);\n\t\t\t\t} else {\n\t\t\t\t\tadv.call(layer, type, callback, capture);\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\n\t\t// If a handler is already declared in the element's onclick attribute, it will be fired before\n\t\t// FastClick's onClick handler. Fix this by pulling out the user-defined handler function and\n\t\t// adding it as listener.\n\t\tif (typeof layer.onclick === 'function') {\n\n\t\t\t// Android browser on at least 3.2 requires a new reference to the function in layer.onclick\n\t\t\t// - the old one won't work if passed to addEventListener directly.\n\t\t\toldOnClick = layer.onclick;\n\t\t\tlayer.addEventListener('click', function(event) {\n\t\t\t\toldOnClick(event);\n\t\t\t}, false);\n\t\t\tlayer.onclick = null;\n\t\t}\n\t}\n\n\t/**\n\t* Windows Phone 8.1 fakes user agent string to look like Android and iPhone.\n\t*\n\t* @type boolean\n\t*/\n\tvar deviceIsWindowsPhone = navigator.userAgent.indexOf(\"Windows Phone\") >= 0;\n\n\t/**\n\t * Android requires exceptions.\n\t *\n\t * @type boolean\n\t */\n\tvar deviceIsAndroid = navigator.userAgent.indexOf('Android') > 0 && !deviceIsWindowsPhone;\n\n\n\t/**\n\t * iOS requires exceptions.\n\t *\n\t * @type boolean\n\t */\n\tvar deviceIsIOS = /iP(ad|hone|od)/.test(navigator.userAgent) && !deviceIsWindowsPhone;\n\n\n\t/**\n\t * iOS 4 requires an exception for select elements.\n\t *\n\t * @type boolean\n\t */\n\tvar deviceIsIOS4 = deviceIsIOS && (/OS 4_\\d(_\\d)?/).test(navigator.userAgent);\n\n\n\t/**\n\t * iOS 6.0-7.* requires the target element to be manually derived\n\t *\n\t * @type boolean\n\t */\n\tvar deviceIsIOSWithBadTarget = deviceIsIOS && (/OS [6-7]_\\d/).test(navigator.userAgent);\n\n\t/**\n\t * BlackBerry requires exceptions.\n\t *\n\t * @type boolean\n\t */\n\tvar deviceIsBlackBerry10 = navigator.userAgent.indexOf('BB10') > 0;\n\n\t/**\n\t * Determine whether a given element requires a native click.\n\t *\n\t * @param {EventTarget|Element} target Target DOM element\n\t * @returns {boolean} Returns true if the element needs a native click\n\t */\n\tFastClick.prototype.needsClick = function(target) {\n\t\tswitch (target.nodeName.toLowerCase()) {\n\n\t\t// Don't send a synthetic click to disabled inputs (issue #62)\n\t\tcase 'button':\n\t\tcase 'select':\n\t\tcase 'textarea':\n\t\t\tif (target.disabled) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tbreak;\n\t\tcase 'input':\n\n\t\t\t// File inputs need real clicks on iOS 6 due to a browser bug (issue #68)\n\t\t\tif ((deviceIsIOS && target.type === 'file') || target.disabled) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tbreak;\n\t\tcase 'label':\n\t\tcase 'iframe': // iOS8 homescreen apps can prevent events bubbling into frames\n\t\tcase 'video':\n\t\t\treturn true;\n\t\t}\n\n\t\treturn (/\\bneedsclick\\b/).test(target.className);\n\t};\n\n\n\t/**\n\t * Determine whether a given element requires a call to focus to simulate click into element.\n\t *\n\t * @param {EventTarget|Element} target Target DOM element\n\t * @returns {boolean} Returns true if the element requires a call to focus to simulate native click.\n\t */\n\tFastClick.prototype.needsFocus = function(target) {\n\t\tswitch (target.nodeName.toLowerCase()) {\n\t\tcase 'textarea':\n\t\t\treturn true;\n\t\tcase 'select':\n\t\t\treturn !deviceIsAndroid;\n\t\tcase 'input':\n\t\t\tswitch (target.type) {\n\t\t\tcase 'button':\n\t\t\tcase 'checkbox':\n\t\t\tcase 'file':\n\t\t\tcase 'image':\n\t\t\tcase 'radio':\n\t\t\tcase 'submit':\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// No point in attempting to focus disabled inputs\n\t\t\treturn !target.disabled && !target.readOnly;\n\t\tdefault:\n\t\t\treturn (/\\bneedsfocus\\b/).test(target.className);\n\t\t}\n\t};\n\n\n\t/**\n\t * Send a click event to the specified element.\n\t *\n\t * @param {EventTarget|Element} targetElement\n\t * @param {Event} event\n\t */\n\tFastClick.prototype.sendClick = function(targetElement, event) {\n\t\tvar clickEvent, touch;\n\n\t\t// On some Android devices activeElement needs to be blurred otherwise the synthetic click will have no effect (#24)\n\t\tif (document.activeElement && document.activeElement !== targetElement) {\n\t\t\tdocument.activeElement.blur();\n\t\t}\n\n\t\ttouch = event.changedTouches[0];\n\n\t\t// Synthesise a click event, with an extra attribute so it can be tracked\n\t\tclickEvent = document.createEvent('MouseEvents');\n\t\tclickEvent.initMouseEvent(this.determineEventType(targetElement), true, true, window, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null);\n\t\tclickEvent.forwardedTouchEvent = true;\n\t\ttargetElement.dispatchEvent(clickEvent);\n\t};\n\n\tFastClick.prototype.determineEventType = function(targetElement) {\n\n\t\t//Issue #159: Android Chrome Select Box does not open with a synthetic click event\n\t\tif (deviceIsAndroid && targetElement.tagName.toLowerCase() === 'select') {\n\t\t\treturn 'mousedown';\n\t\t}\n\n\t\treturn 'click';\n\t};\n\n\n\t/**\n\t * @param {EventTarget|Element} targetElement\n\t */\n\tFastClick.prototype.focus = function(targetElement) {\n\t\tvar length;\n\n\t\t// Issue #160: on iOS 7, some input elements (e.g. date datetime month) throw a vague TypeError on setSelectionRange. These elements don't have an integer value for the selectionStart and selectionEnd properties, but unfortunately that can't be used for detection because accessing the properties also throws a TypeError. Just check the type instead. Filed as Apple bug #15122724.\n\t\tif (deviceIsIOS && targetElement.setSelectionRange && targetElement.type.indexOf('date') !== 0 && targetElement.type !== 'time' && targetElement.type !== 'month') {\n\t\t\tlength = targetElement.value.length;\n\t\t\ttargetElement.setSelectionRange(length, length);\n\t\t} else {\n\t\t\ttargetElement.focus();\n\t\t}\n\t};\n\n\n\t/**\n\t * Check whether the given target element is a child of a scrollable layer and if so, set a flag on it.\n\t *\n\t * @param {EventTarget|Element} targetElement\n\t */\n\tFastClick.prototype.updateScrollParent = function(targetElement) {\n\t\tvar scrollParent, parentElement;\n\n\t\tscrollParent = targetElement.fastClickScrollParent;\n\n\t\t// Attempt to discover whether the target element is contained within a scrollable layer. Re-check if the\n\t\t// target element was moved to another parent.\n\t\tif (!scrollParent || !scrollParent.contains(targetElement)) {\n\t\t\tparentElement = targetElement;\n\t\t\tdo {\n\t\t\t\tif (parentElement.scrollHeight > parentElement.offsetHeight) {\n\t\t\t\t\tscrollParent = parentElement;\n\t\t\t\t\ttargetElement.fastClickScrollParent = parentElement;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tparentElement = parentElement.parentElement;\n\t\t\t} while (parentElement);\n\t\t}\n\n\t\t// Always update the scroll top tracker if possible.\n\t\tif (scrollParent) {\n\t\t\tscrollParent.fastClickLastScrollTop = scrollParent.scrollTop;\n\t\t}\n\t};\n\n\n\t/**\n\t * @param {EventTarget} targetElement\n\t * @returns {Element|EventTarget}\n\t */\n\tFastClick.prototype.getTargetElementFromEventTarget = function(eventTarget) {\n\n\t\t// On some older browsers (notably Safari on iOS 4.1 - see issue #56) the event target may be a text node.\n\t\tif (eventTarget.nodeType === Node.TEXT_NODE) {\n\t\t\treturn eventTarget.parentNode;\n\t\t}\n\n\t\treturn eventTarget;\n\t};\n\n\n\t/**\n\t * On touch start, record the position and scroll offset.\n\t *\n\t * @param {Event} event\n\t * @returns {boolean}\n\t */\n\tFastClick.prototype.onTouchStart = function(event) {\n\t\tvar targetElement, touch, selection;\n\n\t\t// Ignore multiple touches, otherwise pinch-to-zoom is prevented if both fingers are on the FastClick element (issue #111).\n\t\tif (event.targetTouches.length > 1) {\n\t\t\treturn true;\n\t\t}\n\n\t\ttargetElement = this.getTargetElementFromEventTarget(event.target);\n\t\ttouch = event.targetTouches[0];\n\n\t\tif (deviceIsIOS) {\n\n\t\t\t// Only trusted events will deselect text on iOS (issue #49)\n\t\t\tselection = window.getSelection();\n\t\t\tif (selection.rangeCount && !selection.isCollapsed) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tif (!deviceIsIOS4) {\n\n\t\t\t\t// Weird things happen on iOS when an alert or confirm dialog is opened from a click event callback (issue #23):\n\t\t\t\t// when the user next taps anywhere else on the page, new touchstart and touchend events are dispatched\n\t\t\t\t// with the same identifier as the touch event that previously triggered the click that triggered the alert.\n\t\t\t\t// Sadly, there is an issue on iOS 4 that causes some normal touch events to have the same identifier as an\n\t\t\t\t// immediately preceeding touch event (issue #52), so this fix is unavailable on that platform.\n\t\t\t\t// Issue 120: touch.identifier is 0 when Chrome dev tools 'Emulate touch events' is set with an iOS device UA string,\n\t\t\t\t// which causes all touch events to be ignored. As this block only applies to iOS, and iOS identifiers are always long,\n\t\t\t\t// random integers, it's safe to to continue if the identifier is 0 here.\n\t\t\t\tif (touch.identifier && touch.identifier === this.lastTouchIdentifier) {\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tthis.lastTouchIdentifier = touch.identifier;\n\n\t\t\t\t// If the target element is a child of a scrollable layer (using -webkit-overflow-scrolling: touch) and:\n\t\t\t\t// 1) the user does a fling scroll on the scrollable layer\n\t\t\t\t// 2) the user stops the fling scroll with another tap\n\t\t\t\t// then the event.target of the last 'touchend' event will be the element that was under the user's finger\n\t\t\t\t// when the fling scroll was started, causing FastClick to send a click event to that layer - unless a check\n\t\t\t\t// is made to ensure that a parent layer was not scrolled before sending a synthetic click (issue #42).\n\t\t\t\tthis.updateScrollParent(targetElement);\n\t\t\t}\n\t\t}\n\n\t\tthis.trackingClick = true;\n\t\tthis.trackingClickStart = event.timeStamp;\n\t\tthis.targetElement = targetElement;\n\n\t\tthis.touchStartX = touch.pageX;\n\t\tthis.touchStartY = touch.pageY;\n\n\t\t// Prevent phantom clicks on fast double-tap (issue #36)\n\t\tif ((event.timeStamp - this.lastClickTime) < this.tapDelay) {\n\t\t\tevent.preventDefault();\n\t\t}\n\n\t\treturn true;\n\t};\n\n\n\t/**\n\t * Based on a touchmove event object, check whether the touch has moved past a boundary since it started.\n\t *\n\t * @param {Event} event\n\t * @returns {boolean}\n\t */\n\tFastClick.prototype.touchHasMoved = function(event) {\n\t\tvar touch = event.changedTouches[0], boundary = this.touchBoundary;\n\n\t\tif (Math.abs(touch.pageX - this.touchStartX) > boundary || Math.abs(touch.pageY - this.touchStartY) > boundary) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t};\n\n\n\t/**\n\t * Update the last position.\n\t *\n\t * @param {Event} event\n\t * @returns {boolean}\n\t */\n\tFastClick.prototype.onTouchMove = function(event) {\n\t\tif (!this.trackingClick) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// If the touch has moved, cancel the click tracking\n\t\tif (this.targetElement !== this.getTargetElementFromEventTarget(event.target) || this.touchHasMoved(event)) {\n\t\t\tthis.trackingClick = false;\n\t\t\tthis.targetElement = null;\n\t\t}\n\n\t\treturn true;\n\t};\n\n\n\t/**\n\t * Attempt to find the labelled control for the given label element.\n\t *\n\t * @param {EventTarget|HTMLLabelElement} labelElement\n\t * @returns {Element|null}\n\t */\n\tFastClick.prototype.findControl = function(labelElement) {\n\n\t\t// Fast path for newer browsers supporting the HTML5 control attribute\n\t\tif (labelElement.control !== undefined) {\n\t\t\treturn labelElement.control;\n\t\t}\n\n\t\t// All browsers under test that support touch events also support the HTML5 htmlFor attribute\n\t\tif (labelElement.htmlFor) {\n\t\t\treturn document.getElementById(labelElement.htmlFor);\n\t\t}\n\n\t\t// If no for attribute exists, attempt to retrieve the first labellable descendant element\n\t\t// the list of which is defined here: http://www.w3.org/TR/html5/forms.html#category-label\n\t\treturn labelElement.querySelector('button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea');\n\t};\n\n\n\t/**\n\t * On touch end, determine whether to send a click event at once.\n\t *\n\t * @param {Event} event\n\t * @returns {boolean}\n\t */\n\tFastClick.prototype.onTouchEnd = function(event) {\n\t\tvar forElement, trackingClickStart, targetTagName, scrollParent, touch, targetElement = this.targetElement;\n\n\t\tif (!this.trackingClick) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Prevent phantom clicks on fast double-tap (issue #36)\n\t\tif ((event.timeStamp - this.lastClickTime) < this.tapDelay) {\n\t\t\tthis.cancelNextClick = true;\n\t\t\treturn true;\n\t\t}\n\n\t\tif ((event.timeStamp - this.trackingClickStart) > this.tapTimeout) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Reset to prevent wrong click cancel on input (issue #156).\n\t\tthis.cancelNextClick = false;\n\n\t\tthis.lastClickTime = event.timeStamp;\n\n\t\ttrackingClickStart = this.trackingClickStart;\n\t\tthis.trackingClick = false;\n\t\tthis.trackingClickStart = 0;\n\n\t\t// On some iOS devices, the targetElement supplied with the event is invalid if the layer\n\t\t// is performing a transition or scroll, and has to be re-detected manually. Note that\n\t\t// for this to function correctly, it must be called *after* the event target is checked!\n\t\t// See issue #57; also filed as rdar://13048589 .\n\t\tif (deviceIsIOSWithBadTarget) {\n\t\t\ttouch = event.changedTouches[0];\n\n\t\t\t// In certain cases arguments of elementFromPoint can be negative, so prevent setting targetElement to null\n\t\t\ttargetElement = document.elementFromPoint(touch.pageX - window.pageXOffset, touch.pageY - window.pageYOffset) || targetElement;\n\t\t\ttargetElement.fastClickScrollParent = this.targetElement.fastClickScrollParent;\n\t\t}\n\n\t\ttargetTagName = targetElement.tagName.toLowerCase();\n\t\tif (targetTagName === 'label') {\n\t\t\tforElement = this.findControl(targetElement);\n\t\t\tif (forElement) {\n\t\t\t\tthis.focus(targetElement);\n\t\t\t\tif (deviceIsAndroid) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\ttargetElement = forElement;\n\t\t\t}\n\t\t} else if (this.needsFocus(targetElement)) {\n\n\t\t\t// Case 1: If the touch started a while ago (best guess is 100ms based on tests for issue #36) then focus will be triggered anyway. Return early and unset the target element reference so that the subsequent click will be allowed through.\n\t\t\t// Case 2: Without this exception for input elements tapped when the document is contained in an iframe, then any inputted text won't be visible even though the value attribute is updated as the user types (issue #37).\n\t\t\tif ((event.timeStamp - trackingClickStart) > 100 || (deviceIsIOS && window.top !== window && targetTagName === 'input')) {\n\t\t\t\tthis.targetElement = null;\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tthis.focus(targetElement);\n\t\t\tthis.sendClick(targetElement, event);\n\n\t\t\t// Select elements need the event to go through on iOS 4, otherwise the selector menu won't open.\n\t\t\t// Also this breaks opening selects when VoiceOver is active on iOS6, iOS7 (and possibly others)\n\t\t\tif (!deviceIsIOS || targetTagName !== 'select') {\n\t\t\t\tthis.targetElement = null;\n\t\t\t\tevent.preventDefault();\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}\n\n\t\tif (deviceIsIOS && !deviceIsIOS4) {\n\n\t\t\t// Don't send a synthetic click event if the target element is contained within a parent layer that was scrolled\n\t\t\t// and this tap is being used to stop the scrolling (usually initiated by a fling - issue #42).\n\t\t\tscrollParent = targetElement.fastClickScrollParent;\n\t\t\tif (scrollParent && scrollParent.fastClickLastScrollTop !== scrollParent.scrollTop) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\t// Prevent the actual click from going though - unless the target node is marked as requiring\n\t\t// real clicks or if it is in the whitelist in which case only non-programmatic clicks are permitted.\n\t\tif (!this.needsClick(targetElement)) {\n\t\t\tevent.preventDefault();\n\t\t\tthis.sendClick(targetElement, event);\n\t\t}\n\n\t\treturn false;\n\t};\n\n\n\t/**\n\t * On touch cancel, stop tracking the click.\n\t *\n\t * @returns {void}\n\t */\n\tFastClick.prototype.onTouchCancel = function() {\n\t\tthis.trackingClick = false;\n\t\tthis.targetElement = null;\n\t};\n\n\n\t/**\n\t * Determine mouse events which should be permitted.\n\t *\n\t * @param {Event} event\n\t * @returns {boolean}\n\t */\n\tFastClick.prototype.onMouse = function(event) {\n\n\t\t// If a target element was never set (because a touch event was never fired) allow the event\n\t\tif (!this.targetElement) {\n\t\t\treturn true;\n\t\t}\n\n\t\tif (event.forwardedTouchEvent) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Programmatically generated events targeting a specific element should be permitted\n\t\tif (!event.cancelable) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Derive and check the target element to see whether the mouse event needs to be permitted;\n\t\t// unless explicitly enabled, prevent non-touch click events from triggering actions,\n\t\t// to prevent ghost/doubleclicks.\n\t\tif (!this.needsClick(this.targetElement) || this.cancelNextClick) {\n\n\t\t\t// Prevent any user-added listeners declared on FastClick element from being fired.\n\t\t\tif (event.stopImmediatePropagation) {\n\t\t\t\tevent.stopImmediatePropagation();\n\t\t\t} else {\n\n\t\t\t\t// Part of the hack for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2)\n\t\t\t\tevent.propagationStopped = true;\n\t\t\t}\n\n\t\t\t// Cancel the event\n\t\t\tevent.stopPropagation();\n\t\t\tevent.preventDefault();\n\n\t\t\treturn false;\n\t\t}\n\n\t\t// If the mouse event is permitted, return true for the action to go through.\n\t\treturn true;\n\t};\n\n\n\t/**\n\t * On actual clicks, determine whether this is a touch-generated click, a click action occurring\n\t * naturally after a delay after a touch (which needs to be cancelled to avoid duplication), or\n\t * an actual click which should be permitted.\n\t *\n\t * @param {Event} event\n\t * @returns {boolean}\n\t */\n\tFastClick.prototype.onClick = function(event) {\n\t\tvar permitted;\n\n\t\t// It's possible for another FastClick-like library delivered with third-party code to fire a click event before FastClick does (issue #44). In that case, set the click-tracking flag back to false and return early. This will cause onTouchEnd to return early.\n\t\tif (this.trackingClick) {\n\t\t\tthis.targetElement = null;\n\t\t\tthis.trackingClick = false;\n\t\t\treturn true;\n\t\t}\n\n\t\t// Very odd behaviour on iOS (issue #18): if a submit element is present inside a form and the user hits enter in the iOS simulator or clicks the Go button on the pop-up OS keyboard the a kind of 'fake' click event will be triggered with the submit-type input element as the target.\n\t\tif (event.target.type === 'submit' && event.detail === 0) {\n\t\t\treturn true;\n\t\t}\n\n\t\tpermitted = this.onMouse(event);\n\n\t\t// Only unset targetElement if the click is not permitted. This will ensure that the check for !targetElement in onMouse fails and the browser's click doesn't go through.\n\t\tif (!permitted) {\n\t\t\tthis.targetElement = null;\n\t\t}\n\n\t\t// If clicks are permitted, return true for the action to go through.\n\t\treturn permitted;\n\t};\n\n\n\t/**\n\t * Remove all FastClick's event listeners.\n\t *\n\t * @returns {void}\n\t */\n\tFastClick.prototype.destroy = function() {\n\t\tvar layer = this.layer;\n\n\t\tif (deviceIsAndroid) {\n\t\t\tlayer.removeEventListener('mouseover', this.onMouse, true);\n\t\t\tlayer.removeEventListener('mousedown', this.onMouse, true);\n\t\t\tlayer.removeEventListener('mouseup', this.onMouse, true);\n\t\t}\n\n\t\tlayer.removeEventListener('click', this.onClick, true);\n\t\tlayer.removeEventListener('touchstart', this.onTouchStart, false);\n\t\tlayer.removeEventListener('touchmove', this.onTouchMove, false);\n\t\tlayer.removeEventListener('touchend', this.onTouchEnd, false);\n\t\tlayer.removeEventListener('touchcancel', this.onTouchCancel, false);\n\t};\n\n\n\t/**\n\t * Check whether FastClick is needed.\n\t *\n\t * @param {Element} layer The layer to listen on\n\t */\n\tFastClick.notNeeded = function(layer) {\n\t\tvar metaViewport;\n\t\tvar chromeVersion;\n\t\tvar blackberryVersion;\n\t\tvar firefoxVersion;\n\n\t\t// Devices that don't support touch don't need FastClick\n\t\tif (typeof window.ontouchstart === 'undefined') {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Chrome version - zero for other browsers\n\t\tchromeVersion = +(/Chrome\\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1];\n\n\t\tif (chromeVersion) {\n\n\t\t\tif (deviceIsAndroid) {\n\t\t\t\tmetaViewport = document.querySelector('meta[name=viewport]');\n\n\t\t\t\tif (metaViewport) {\n\t\t\t\t\t// Chrome on Android with user-scalable=\"no\" doesn't need FastClick (issue #89)\n\t\t\t\t\tif (metaViewport.content.indexOf('user-scalable=no') !== -1) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\t// Chrome 32 and above with width=device-width or less don't need FastClick\n\t\t\t\t\tif (chromeVersion > 31 && document.documentElement.scrollWidth <= window.outerWidth) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t// Chrome desktop doesn't need FastClick (issue #15)\n\t\t\t} else {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\tif (deviceIsBlackBerry10) {\n\t\t\tblackberryVersion = navigator.userAgent.match(/Version\\/([0-9]*)\\.([0-9]*)/);\n\n\t\t\t// BlackBerry 10.3+ does not require Fastclick library.\n\t\t\t// https://github.com/ftlabs/fastclick/issues/251\n\t\t\tif (blackberryVersion[1] >= 10 && blackberryVersion[2] >= 3) {\n\t\t\t\tmetaViewport = document.querySelector('meta[name=viewport]');\n\n\t\t\t\tif (metaViewport) {\n\t\t\t\t\t// user-scalable=no eliminates click delay.\n\t\t\t\t\tif (metaViewport.content.indexOf('user-scalable=no') !== -1) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\t// width=device-width (or less than device-width) eliminates click delay.\n\t\t\t\t\tif (document.documentElement.scrollWidth <= window.outerWidth) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// IE10 with -ms-touch-action: none or manipulation, which disables double-tap-to-zoom (issue #97)\n\t\tif (layer.style.msTouchAction === 'none' || layer.style.touchAction === 'manipulation') {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Firefox version - zero for other browsers\n\t\tfirefoxVersion = +(/Firefox\\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1];\n\n\t\tif (firefoxVersion >= 27) {\n\t\t\t// Firefox 27+ does not have tap delay if the content is not zoomable - https://bugzilla.mozilla.org/show_bug.cgi?id=922896\n\n\t\t\tmetaViewport = document.querySelector('meta[name=viewport]');\n\t\t\tif (metaViewport && (metaViewport.content.indexOf('user-scalable=no') !== -1 || document.documentElement.scrollWidth <= window.outerWidth)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\t// IE11: prefixed -ms-touch-action is no longer supported and it's recomended to use non-prefixed version\n\t\t// http://msdn.microsoft.com/en-us/library/windows/apps/Hh767313.aspx\n\t\tif (layer.style.touchAction === 'none' || layer.style.touchAction === 'manipulation') {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t};\n\n\n\t/**\n\t * Factory method for creating a FastClick object\n\t *\n\t * @param {Element} layer The layer to listen on\n\t * @param {Object} [options={}] The options to override the defaults\n\t */\n\tFastClick.attach = function(layer, options) {\n\t\treturn new FastClick(layer, options);\n\t};\n\n\n\tif (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\n\t\t// AMD. Register as an anonymous module.\n\t\tdefine(function() {\n\t\t\treturn FastClick;\n\t\t});\n\t} else if (typeof module !== 'undefined' && module.exports) {\n\t\tmodule.exports = FastClick.attach;\n\t\tmodule.exports.FastClick = FastClick;\n\t} else {\n\t\twindow.FastClick = FastClick;\n\t}\n}());\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/fastclick/lib/fastclick.js\n **/","module.exports = __webpack_amd_options__;\r\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/buildin/amd-options.js\n ** module id = 2\n ** module chunks = 0\n **/","/**\n * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 0.7.2\n * Copyright (C) 2016 Oliver Nightingale\n * @license MIT\n */\n\n;(function(){\n\n/**\n * Convenience function for instantiating a new lunr index and configuring it\n * with the default pipeline functions and the passed config function.\n *\n * When using this convenience function a new index will be created with the\n * following functions already in the pipeline:\n *\n * lunr.StopWordFilter - filters out any stop words before they enter the\n * index\n *\n * lunr.stemmer - stems the tokens before entering the index.\n *\n * Example:\n *\n * var idx = lunr(function () {\n * this.field('title', 10)\n * this.field('tags', 100)\n * this.field('body')\n * \n * this.ref('cid')\n * \n * this.pipeline.add(function () {\n * // some custom pipeline function\n * })\n * \n * })\n *\n * @param {Function} config A function that will be called with the new instance\n * of the lunr.Index as both its context and first parameter. It can be used to\n * customize the instance of new lunr.Index.\n * @namespace\n * @module\n * @returns {lunr.Index}\n *\n */\nvar lunr = function (config) {\n var idx = new lunr.Index\n\n idx.pipeline.add(\n lunr.trimmer,\n lunr.stopWordFilter,\n lunr.stemmer\n )\n\n if (config) config.call(idx, idx)\n\n return idx\n}\n\nlunr.version = \"0.7.2\"\n/*!\n * lunr.utils\n * Copyright (C) 2016 Oliver Nightingale\n */\n\n/**\n * A namespace containing utils for the rest of the lunr library\n */\nlunr.utils = {}\n\n/**\n * Print a warning message to the console.\n *\n * @param {String} message The message to be printed.\n * @memberOf Utils\n */\nlunr.utils.warn = (function (global) {\n return function (message) {\n if (global.console && console.warn) {\n console.warn(message)\n }\n }\n})(this)\n\n/**\n * Convert an object to a string.\n *\n * In the case of `null` and `undefined` the function returns\n * the empty string, in all other cases the result of calling\n * `toString` on the passed object is returned.\n *\n * @param {Any} obj The object to convert to a string.\n * @return {String} string representation of the passed object.\n * @memberOf Utils\n */\nlunr.utils.asString = function (obj) {\n if (obj === void 0 || obj === null) {\n return \"\"\n } else {\n return obj.toString()\n }\n}\n/*!\n * lunr.EventEmitter\n * Copyright (C) 2016 Oliver Nightingale\n */\n\n/**\n * lunr.EventEmitter is an event emitter for lunr. It manages adding and removing event handlers and triggering events and their handlers.\n *\n * @constructor\n */\nlunr.EventEmitter = function () {\n this.events = {}\n}\n\n/**\n * Binds a handler function to a specific event(s).\n *\n * Can bind a single function to many different events in one call.\n *\n * @param {String} [eventName] The name(s) of events to bind this function to.\n * @param {Function} fn The function to call when an event is fired.\n * @memberOf EventEmitter\n */\nlunr.EventEmitter.prototype.addListener = function () {\n var args = Array.prototype.slice.call(arguments),\n fn = args.pop(),\n names = args\n\n if (typeof fn !== \"function\") throw new TypeError (\"last argument must be a function\")\n\n names.forEach(function (name) {\n if (!this.hasHandler(name)) this.events[name] = []\n this.events[name].push(fn)\n }, this)\n}\n\n/**\n * Removes a handler function from a specific event.\n *\n * @param {String} eventName The name of the event to remove this function from.\n * @param {Function} fn The function to remove from an event.\n * @memberOf EventEmitter\n */\nlunr.EventEmitter.prototype.removeListener = function (name, fn) {\n if (!this.hasHandler(name)) return\n\n var fnIndex = this.events[name].indexOf(fn)\n this.events[name].splice(fnIndex, 1)\n\n if (!this.events[name].length) delete this.events[name]\n}\n\n/**\n * Calls all functions bound to the given event.\n *\n * Additional data can be passed to the event handler as arguments to `emit`\n * after the event name.\n *\n * @param {String} eventName The name of the event to emit.\n * @memberOf EventEmitter\n */\nlunr.EventEmitter.prototype.emit = function (name) {\n if (!this.hasHandler(name)) return\n\n var args = Array.prototype.slice.call(arguments, 1)\n\n this.events[name].forEach(function (fn) {\n fn.apply(undefined, args)\n })\n}\n\n/**\n * Checks whether a handler has ever been stored against an event.\n *\n * @param {String} eventName The name of the event to check.\n * @private\n * @memberOf EventEmitter\n */\nlunr.EventEmitter.prototype.hasHandler = function (name) {\n return name in this.events\n}\n\n/*!\n * lunr.tokenizer\n * Copyright (C) 2016 Oliver Nightingale\n */\n\n/**\n * A function for splitting a string into tokens ready to be inserted into\n * the search index. Uses `lunr.tokenizer.separator` to split strings, change\n * the value of this property to change how strings are split into tokens.\n *\n * @module\n * @param {String} obj The string to convert into tokens\n * @see lunr.tokenizer.separator\n * @returns {Array}\n */\nlunr.tokenizer = function (obj) {\n if (!arguments.length || obj == null || obj == undefined) return []\n if (Array.isArray(obj)) return obj.map(function (t) { return lunr.utils.asString(t).toLowerCase() })\n\n // TODO: This exists so that the deprecated property lunr.tokenizer.seperator can still be used. By\n // default it is set to false and so the correctly spelt lunr.tokenizer.separator is used unless\n // the user is using the old property to customise the tokenizer.\n //\n // This should be removed when version 1.0.0 is released.\n var separator = lunr.tokenizer.seperator || lunr.tokenizer.separator\n\n return obj.toString().trim().toLowerCase().split(separator)\n}\n\n/**\n * This property is legacy alias for lunr.tokenizer.separator to maintain backwards compatability.\n * When introduced the token was spelt incorrectly. It will remain until 1.0.0 when it will be removed,\n * all code should use the correctly spelt lunr.tokenizer.separator property instead.\n *\n * @static\n * @see lunr.tokenizer.separator\n * @deprecated since 0.7.2 will be removed in 1.0.0\n * @private\n * @see lunr.tokenizer\n */\nlunr.tokenizer.seperator = false\n\n/**\n * The sperator used to split a string into tokens. Override this property to change the behaviour of\n * `lunr.tokenizer` behaviour when tokenizing strings. By default this splits on whitespace and hyphens.\n *\n * @static\n * @see lunr.tokenizer\n */\nlunr.tokenizer.separator = /[\\s\\-]+/\n\n/**\n * Loads a previously serialised tokenizer.\n *\n * A tokenizer function to be loaded must already be registered with lunr.tokenizer.\n * If the serialised tokenizer has not been registered then an error will be thrown.\n *\n * @param {String} label The label of the serialised tokenizer.\n * @returns {Function}\n * @memberOf tokenizer\n */\nlunr.tokenizer.load = function (label) {\n var fn = this.registeredFunctions[label]\n\n if (!fn) {\n throw new Error('Cannot load un-registered function: ' + label)\n }\n\n return fn\n}\n\nlunr.tokenizer.label = 'default'\n\nlunr.tokenizer.registeredFunctions = {\n 'default': lunr.tokenizer\n}\n\n/**\n * Register a tokenizer function.\n *\n * Functions that are used as tokenizers should be registered if they are to be used with a serialised index.\n *\n * Registering a function does not add it to an index, functions must still be associated with a specific index for them to be used when indexing and searching documents.\n *\n * @param {Function} fn The function to register.\n * @param {String} label The label to register this function with\n * @memberOf tokenizer\n */\nlunr.tokenizer.registerFunction = function (fn, label) {\n if (label in this.registeredFunctions) {\n lunr.utils.warn('Overwriting existing tokenizer: ' + label)\n }\n\n fn.label = label\n this.registeredFunctions[label] = fn\n}\n/*!\n * lunr.Pipeline\n * Copyright (C) 2016 Oliver Nightingale\n */\n\n/**\n * lunr.Pipelines maintain an ordered list of functions to be applied to all\n * tokens in documents entering the search index and queries being ran against\n * the index.\n *\n * An instance of lunr.Index created with the lunr shortcut will contain a\n * pipeline with a stop word filter and an English language stemmer. Extra\n * functions can be added before or after either of these functions or these\n * default functions can be removed.\n *\n * When run the pipeline will call each function in turn, passing a token, the\n * index of that token in the original list of all tokens and finally a list of\n * all the original tokens.\n *\n * The output of functions in the pipeline will be passed to the next function\n * in the pipeline. To exclude a token from entering the index the function\n * should return undefined, the rest of the pipeline will not be called with\n * this token.\n *\n * For serialisation of pipelines to work, all functions used in an instance of\n * a pipeline should be registered with lunr.Pipeline. Registered functions can\n * then be loaded. If trying to load a serialised pipeline that uses functions\n * that are not registered an error will be thrown.\n *\n * If not planning on serialising the pipeline then registering pipeline functions\n * is not necessary.\n *\n * @constructor\n */\nlunr.Pipeline = function () {\n this._stack = []\n}\n\nlunr.Pipeline.registeredFunctions = {}\n\n/**\n * Register a function with the pipeline.\n *\n * Functions that are used in the pipeline should be registered if the pipeline\n * needs to be serialised, or a serialised pipeline needs to be loaded.\n *\n * Registering a function does not add it to a pipeline, functions must still be\n * added to instances of the pipeline for them to be used when running a pipeline.\n *\n * @param {Function} fn The function to check for.\n * @param {String} label The label to register this function with\n * @memberOf Pipeline\n */\nlunr.Pipeline.registerFunction = function (fn, label) {\n if (label in this.registeredFunctions) {\n lunr.utils.warn('Overwriting existing registered function: ' + label)\n }\n\n fn.label = label\n lunr.Pipeline.registeredFunctions[fn.label] = fn\n}\n\n/**\n * Warns if the function is not registered as a Pipeline function.\n *\n * @param {Function} fn The function to check for.\n * @private\n * @memberOf Pipeline\n */\nlunr.Pipeline.warnIfFunctionNotRegistered = function (fn) {\n var isRegistered = fn.label && (fn.label in this.registeredFunctions)\n\n if (!isRegistered) {\n lunr.utils.warn('Function is not registered with pipeline. This may cause problems when serialising the index.\\n', fn)\n }\n}\n\n/**\n * Loads a previously serialised pipeline.\n *\n * All functions to be loaded must already be registered with lunr.Pipeline.\n * If any function from the serialised data has not been registered then an\n * error will be thrown.\n *\n * @param {Object} serialised The serialised pipeline to load.\n * @returns {lunr.Pipeline}\n * @memberOf Pipeline\n */\nlunr.Pipeline.load = function (serialised) {\n var pipeline = new lunr.Pipeline\n\n serialised.forEach(function (fnName) {\n var fn = lunr.Pipeline.registeredFunctions[fnName]\n\n if (fn) {\n pipeline.add(fn)\n } else {\n throw new Error('Cannot load un-registered function: ' + fnName)\n }\n })\n\n return pipeline\n}\n\n/**\n * Adds new functions to the end of the pipeline.\n *\n * Logs a warning if the function has not been registered.\n *\n * @param {Function} functions Any number of functions to add to the pipeline.\n * @memberOf Pipeline\n */\nlunr.Pipeline.prototype.add = function () {\n var fns = Array.prototype.slice.call(arguments)\n\n fns.forEach(function (fn) {\n lunr.Pipeline.warnIfFunctionNotRegistered(fn)\n this._stack.push(fn)\n }, this)\n}\n\n/**\n * Adds a single function after a function that already exists in the\n * pipeline.\n *\n * Logs a warning if the function has not been registered.\n *\n * @param {Function} existingFn A function that already exists in the pipeline.\n * @param {Function} newFn The new function to add to the pipeline.\n * @memberOf Pipeline\n */\nlunr.Pipeline.prototype.after = function (existingFn, newFn) {\n lunr.Pipeline.warnIfFunctionNotRegistered(newFn)\n\n var pos = this._stack.indexOf(existingFn)\n if (pos == -1) {\n throw new Error('Cannot find existingFn')\n }\n\n pos = pos + 1\n this._stack.splice(pos, 0, newFn)\n}\n\n/**\n * Adds a single function before a function that already exists in the\n * pipeline.\n *\n * Logs a warning if the function has not been registered.\n *\n * @param {Function} existingFn A function that already exists in the pipeline.\n * @param {Function} newFn The new function to add to the pipeline.\n * @memberOf Pipeline\n */\nlunr.Pipeline.prototype.before = function (existingFn, newFn) {\n lunr.Pipeline.warnIfFunctionNotRegistered(newFn)\n\n var pos = this._stack.indexOf(existingFn)\n if (pos == -1) {\n throw new Error('Cannot find existingFn')\n }\n\n this._stack.splice(pos, 0, newFn)\n}\n\n/**\n * Removes a function from the pipeline.\n *\n * @param {Function} fn The function to remove from the pipeline.\n * @memberOf Pipeline\n */\nlunr.Pipeline.prototype.remove = function (fn) {\n var pos = this._stack.indexOf(fn)\n if (pos == -1) {\n return\n }\n\n this._stack.splice(pos, 1)\n}\n\n/**\n * Runs the current list of functions that make up the pipeline against the\n * passed tokens.\n *\n * @param {Array} tokens The tokens to run through the pipeline.\n * @returns {Array}\n * @memberOf Pipeline\n */\nlunr.Pipeline.prototype.run = function (tokens) {\n var out = [],\n tokenLength = tokens.length,\n stackLength = this._stack.length\n\n for (var i = 0; i < tokenLength; i++) {\n var token = tokens[i]\n\n for (var j = 0; j < stackLength; j++) {\n token = this._stack[j](token, i, tokens)\n if (token === void 0 || token === '') break\n };\n\n if (token !== void 0 && token !== '') out.push(token)\n };\n\n return out\n}\n\n/**\n * Resets the pipeline by removing any existing processors.\n *\n * @memberOf Pipeline\n */\nlunr.Pipeline.prototype.reset = function () {\n this._stack = []\n}\n\n/**\n * Returns a representation of the pipeline ready for serialisation.\n *\n * Logs a warning if the function has not been registered.\n *\n * @returns {Array}\n * @memberOf Pipeline\n */\nlunr.Pipeline.prototype.toJSON = function () {\n return this._stack.map(function (fn) {\n lunr.Pipeline.warnIfFunctionNotRegistered(fn)\n\n return fn.label\n })\n}\n/*!\n * lunr.Vector\n * Copyright (C) 2016 Oliver Nightingale\n */\n\n/**\n * lunr.Vectors implement vector related operations for\n * a series of elements.\n *\n * @constructor\n */\nlunr.Vector = function () {\n this._magnitude = null\n this.list = undefined\n this.length = 0\n}\n\n/**\n * lunr.Vector.Node is a simple struct for each node\n * in a lunr.Vector.\n *\n * @private\n * @param {Number} The index of the node in the vector.\n * @param {Object} The data at this node in the vector.\n * @param {lunr.Vector.Node} The node directly after this node in the vector.\n * @constructor\n * @memberOf Vector\n */\nlunr.Vector.Node = function (idx, val, next) {\n this.idx = idx\n this.val = val\n this.next = next\n}\n\n/**\n * Inserts a new value at a position in a vector.\n *\n * @param {Number} The index at which to insert a value.\n * @param {Object} The object to insert in the vector.\n * @memberOf Vector.\n */\nlunr.Vector.prototype.insert = function (idx, val) {\n this._magnitude = undefined;\n var list = this.list\n\n if (!list) {\n this.list = new lunr.Vector.Node (idx, val, list)\n return this.length++\n }\n\n if (idx < list.idx) {\n this.list = new lunr.Vector.Node (idx, val, list)\n return this.length++\n }\n\n var prev = list,\n next = list.next\n\n while (next != undefined) {\n if (idx < next.idx) {\n prev.next = new lunr.Vector.Node (idx, val, next)\n return this.length++\n }\n\n prev = next, next = next.next\n }\n\n prev.next = new lunr.Vector.Node (idx, val, next)\n return this.length++\n}\n\n/**\n * Calculates the magnitude of this vector.\n *\n * @returns {Number}\n * @memberOf Vector\n */\nlunr.Vector.prototype.magnitude = function () {\n if (this._magnitude) return this._magnitude\n var node = this.list,\n sumOfSquares = 0,\n val\n\n while (node) {\n val = node.val\n sumOfSquares += val * val\n node = node.next\n }\n\n return this._magnitude = Math.sqrt(sumOfSquares)\n}\n\n/**\n * Calculates the dot product of this vector and another vector.\n *\n * @param {lunr.Vector} otherVector The vector to compute the dot product with.\n * @returns {Number}\n * @memberOf Vector\n */\nlunr.Vector.prototype.dot = function (otherVector) {\n var node = this.list,\n otherNode = otherVector.list,\n dotProduct = 0\n\n while (node && otherNode) {\n if (node.idx < otherNode.idx) {\n node = node.next\n } else if (node.idx > otherNode.idx) {\n otherNode = otherNode.next\n } else {\n dotProduct += node.val * otherNode.val\n node = node.next\n otherNode = otherNode.next\n }\n }\n\n return dotProduct\n}\n\n/**\n * Calculates the cosine similarity between this vector and another\n * vector.\n *\n * @param {lunr.Vector} otherVector The other vector to calculate the\n * similarity with.\n * @returns {Number}\n * @memberOf Vector\n */\nlunr.Vector.prototype.similarity = function (otherVector) {\n return this.dot(otherVector) / (this.magnitude() * otherVector.magnitude())\n}\n/*!\n * lunr.SortedSet\n * Copyright (C) 2016 Oliver Nightingale\n */\n\n/**\n * lunr.SortedSets are used to maintain an array of uniq values in a sorted\n * order.\n *\n * @constructor\n */\nlunr.SortedSet = function () {\n this.length = 0\n this.elements = []\n}\n\n/**\n * Loads a previously serialised sorted set.\n *\n * @param {Array} serialisedData The serialised set to load.\n * @returns {lunr.SortedSet}\n * @memberOf SortedSet\n */\nlunr.SortedSet.load = function (serialisedData) {\n var set = new this\n\n set.elements = serialisedData\n set.length = serialisedData.length\n\n return set\n}\n\n/**\n * Inserts new items into the set in the correct position to maintain the\n * order.\n *\n * @param {Object} The objects to add to this set.\n * @memberOf SortedSet\n */\nlunr.SortedSet.prototype.add = function () {\n var i, element\n\n for (i = 0; i < arguments.length; i++) {\n element = arguments[i]\n if (~this.indexOf(element)) continue\n this.elements.splice(this.locationFor(element), 0, element)\n }\n\n this.length = this.elements.length\n}\n\n/**\n * Converts this sorted set into an array.\n *\n * @returns {Array}\n * @memberOf SortedSet\n */\nlunr.SortedSet.prototype.toArray = function () {\n return this.elements.slice()\n}\n\n/**\n * Creates a new array with the results of calling a provided function on every\n * element in this sorted set.\n *\n * Delegates to Array.prototype.map and has the same signature.\n *\n * @param {Function} fn The function that is called on each element of the\n * set.\n * @param {Object} ctx An optional object that can be used as the context\n * for the function fn.\n * @returns {Array}\n * @memberOf SortedSet\n */\nlunr.SortedSet.prototype.map = function (fn, ctx) {\n return this.elements.map(fn, ctx)\n}\n\n/**\n * Executes a provided function once per sorted set element.\n *\n * Delegates to Array.prototype.forEach and has the same signature.\n *\n * @param {Function} fn The function that is called on each element of the\n * set.\n * @param {Object} ctx An optional object that can be used as the context\n * @memberOf SortedSet\n * for the function fn.\n */\nlunr.SortedSet.prototype.forEach = function (fn, ctx) {\n return this.elements.forEach(fn, ctx)\n}\n\n/**\n * Returns the index at which a given element can be found in the\n * sorted set, or -1 if it is not present.\n *\n * @param {Object} elem The object to locate in the sorted set.\n * @returns {Number}\n * @memberOf SortedSet\n */\nlunr.SortedSet.prototype.indexOf = function (elem) {\n var start = 0,\n end = this.elements.length,\n sectionLength = end - start,\n pivot = start + Math.floor(sectionLength / 2),\n pivotElem = this.elements[pivot]\n\n while (sectionLength > 1) {\n if (pivotElem === elem) return pivot\n\n if (pivotElem < elem) start = pivot\n if (pivotElem > elem) end = pivot\n\n sectionLength = end - start\n pivot = start + Math.floor(sectionLength / 2)\n pivotElem = this.elements[pivot]\n }\n\n if (pivotElem === elem) return pivot\n\n return -1\n}\n\n/**\n * Returns the position within the sorted set that an element should be\n * inserted at to maintain the current order of the set.\n *\n * This function assumes that the element to search for does not already exist\n * in the sorted set.\n *\n * @param {Object} elem The elem to find the position for in the set\n * @returns {Number}\n * @memberOf SortedSet\n */\nlunr.SortedSet.prototype.locationFor = function (elem) {\n var start = 0,\n end = this.elements.length,\n sectionLength = end - start,\n pivot = start + Math.floor(sectionLength / 2),\n pivotElem = this.elements[pivot]\n\n while (sectionLength > 1) {\n if (pivotElem < elem) start = pivot\n if (pivotElem > elem) end = pivot\n\n sectionLength = end - start\n pivot = start + Math.floor(sectionLength / 2)\n pivotElem = this.elements[pivot]\n }\n\n if (pivotElem > elem) return pivot\n if (pivotElem < elem) return pivot + 1\n}\n\n/**\n * Creates a new lunr.SortedSet that contains the elements in the intersection\n * of this set and the passed set.\n *\n * @param {lunr.SortedSet} otherSet The set to intersect with this set.\n * @returns {lunr.SortedSet}\n * @memberOf SortedSet\n */\nlunr.SortedSet.prototype.intersect = function (otherSet) {\n var intersectSet = new lunr.SortedSet,\n i = 0, j = 0,\n a_len = this.length, b_len = otherSet.length,\n a = this.elements, b = otherSet.elements\n\n while (true) {\n if (i > a_len - 1 || j > b_len - 1) break\n\n if (a[i] === b[j]) {\n intersectSet.add(a[i])\n i++, j++\n continue\n }\n\n if (a[i] < b[j]) {\n i++\n continue\n }\n\n if (a[i] > b[j]) {\n j++\n continue\n }\n };\n\n return intersectSet\n}\n\n/**\n * Makes a copy of this set\n *\n * @returns {lunr.SortedSet}\n * @memberOf SortedSet\n */\nlunr.SortedSet.prototype.clone = function () {\n var clone = new lunr.SortedSet\n\n clone.elements = this.toArray()\n clone.length = clone.elements.length\n\n return clone\n}\n\n/**\n * Creates a new lunr.SortedSet that contains the elements in the union\n * of this set and the passed set.\n *\n * @param {lunr.SortedSet} otherSet The set to union with this set.\n * @returns {lunr.SortedSet}\n * @memberOf SortedSet\n */\nlunr.SortedSet.prototype.union = function (otherSet) {\n var longSet, shortSet, unionSet\n\n if (this.length >= otherSet.length) {\n longSet = this, shortSet = otherSet\n } else {\n longSet = otherSet, shortSet = this\n }\n\n unionSet = longSet.clone()\n\n for(var i = 0, shortSetElements = shortSet.toArray(); i < shortSetElements.length; i++){\n unionSet.add(shortSetElements[i])\n }\n\n return unionSet\n}\n\n/**\n * Returns a representation of the sorted set ready for serialisation.\n *\n * @returns {Array}\n * @memberOf SortedSet\n */\nlunr.SortedSet.prototype.toJSON = function () {\n return this.toArray()\n}\n/*!\n * lunr.Index\n * Copyright (C) 2016 Oliver Nightingale\n */\n\n/**\n * lunr.Index is object that manages a search index. It contains the indexes\n * and stores all the tokens and document lookups. It also provides the main\n * user facing API for the library.\n *\n * @constructor\n */\nlunr.Index = function () {\n this._fields = []\n this._ref = 'id'\n this.pipeline = new lunr.Pipeline\n this.documentStore = new lunr.Store\n this.tokenStore = new lunr.TokenStore\n this.corpusTokens = new lunr.SortedSet\n this.eventEmitter = new lunr.EventEmitter\n this.tokenizerFn = lunr.tokenizer\n\n this._idfCache = {}\n\n this.on('add', 'remove', 'update', (function () {\n this._idfCache = {}\n }).bind(this))\n}\n\n/**\n * Bind a handler to events being emitted by the index.\n *\n * The handler can be bound to many events at the same time.\n *\n * @param {String} [eventName] The name(s) of events to bind the function to.\n * @param {Function} fn The serialised set to load.\n * @memberOf Index\n */\nlunr.Index.prototype.on = function () {\n var args = Array.prototype.slice.call(arguments)\n return this.eventEmitter.addListener.apply(this.eventEmitter, args)\n}\n\n/**\n * Removes a handler from an event being emitted by the index.\n *\n * @param {String} eventName The name of events to remove the function from.\n * @param {Function} fn The serialised set to load.\n * @memberOf Index\n */\nlunr.Index.prototype.off = function (name, fn) {\n return this.eventEmitter.removeListener(name, fn)\n}\n\n/**\n * Loads a previously serialised index.\n *\n * Issues a warning if the index being imported was serialised\n * by a different version of lunr.\n *\n * @param {Object} serialisedData The serialised set to load.\n * @returns {lunr.Index}\n * @memberOf Index\n */\nlunr.Index.load = function (serialisedData) {\n if (serialisedData.version !== lunr.version) {\n lunr.utils.warn('version mismatch: current ' + lunr.version + ' importing ' + serialisedData.version)\n }\n\n var idx = new this\n\n idx._fields = serialisedData.fields\n idx._ref = serialisedData.ref\n\n idx.tokenizer(lunr.tokenizer.load(serialisedData.tokenizer))\n idx.documentStore = lunr.Store.load(serialisedData.documentStore)\n idx.tokenStore = lunr.TokenStore.load(serialisedData.tokenStore)\n idx.corpusTokens = lunr.SortedSet.load(serialisedData.corpusTokens)\n idx.pipeline = lunr.Pipeline.load(serialisedData.pipeline)\n\n return idx\n}\n\n/**\n * Adds a field to the list of fields that will be searchable within documents\n * in the index.\n *\n * An optional boost param can be passed to affect how much tokens in this field\n * rank in search results, by default the boost value is 1.\n *\n * Fields should be added before any documents are added to the index, fields\n * that are added after documents are added to the index will only apply to new\n * documents added to the index.\n *\n * @param {String} fieldName The name of the field within the document that\n * should be indexed\n * @param {Number} boost An optional boost that can be applied to terms in this\n * field.\n * @returns {lunr.Index}\n * @memberOf Index\n */\nlunr.Index.prototype.field = function (fieldName, opts) {\n var opts = opts || {},\n field = { name: fieldName, boost: opts.boost || 1 }\n\n this._fields.push(field)\n return this\n}\n\n/**\n * Sets the property used to uniquely identify documents added to the index,\n * by default this property is 'id'.\n *\n * This should only be changed before adding documents to the index, changing\n * the ref property without resetting the index can lead to unexpected results.\n *\n * The value of ref can be of any type but it _must_ be stably comparable and\n * orderable.\n *\n * @param {String} refName The property to use to uniquely identify the\n * documents in the index.\n * @param {Boolean} emitEvent Whether to emit add events, defaults to true\n * @returns {lunr.Index}\n * @memberOf Index\n */\nlunr.Index.prototype.ref = function (refName) {\n this._ref = refName\n return this\n}\n\n/**\n * Sets the tokenizer used for this index.\n *\n * By default the index will use the default tokenizer, lunr.tokenizer. The tokenizer\n * should only be changed before adding documents to the index. Changing the tokenizer\n * without re-building the index can lead to unexpected results.\n *\n * @param {Function} fn The function to use as a tokenizer.\n * @returns {lunr.Index}\n * @memberOf Index\n */\nlunr.Index.prototype.tokenizer = function (fn) {\n var isRegistered = fn.label && (fn.label in lunr.tokenizer.registeredFunctions)\n\n if (!isRegistered) {\n lunr.utils.warn('Function is not a registered tokenizer. This may cause problems when serialising the index')\n }\n\n this.tokenizerFn = fn\n return this\n}\n\n/**\n * Add a document to the index.\n *\n * This is the way new documents enter the index, this function will run the\n * fields from the document through the index's pipeline and then add it to\n * the index, it will then show up in search results.\n *\n * An 'add' event is emitted with the document that has been added and the index\n * the document has been added to. This event can be silenced by passing false\n * as the second argument to add.\n *\n * @param {Object} doc The document to add to the index.\n * @param {Boolean} emitEvent Whether or not to emit events, default true.\n * @memberOf Index\n */\nlunr.Index.prototype.add = function (doc, emitEvent) {\n var docTokens = {},\n allDocumentTokens = new lunr.SortedSet,\n docRef = doc[this._ref],\n emitEvent = emitEvent === undefined ? true : emitEvent\n\n this._fields.forEach(function (field) {\n var fieldTokens = this.pipeline.run(this.tokenizerFn(doc[field.name]))\n\n docTokens[field.name] = fieldTokens\n\n for (var i = 0; i < fieldTokens.length; i++) {\n var token = fieldTokens[i]\n allDocumentTokens.add(token)\n this.corpusTokens.add(token)\n }\n }, this)\n\n this.documentStore.set(docRef, allDocumentTokens)\n\n for (var i = 0; i < allDocumentTokens.length; i++) {\n var token = allDocumentTokens.elements[i]\n var tf = 0;\n\n for (var j = 0; j < this._fields.length; j++){\n var field = this._fields[j]\n var fieldTokens = docTokens[field.name]\n var fieldLength = fieldTokens.length\n\n if (!fieldLength) continue\n\n var tokenCount = 0\n for (var k = 0; k < fieldLength; k++){\n if (fieldTokens[k] === token){\n tokenCount++\n }\n }\n\n tf += (tokenCount / fieldLength * field.boost)\n }\n\n this.tokenStore.add(token, { ref: docRef, tf: tf })\n };\n\n if (emitEvent) this.eventEmitter.emit('add', doc, this)\n}\n\n/**\n * Removes a document from the index.\n *\n * To make sure documents no longer show up in search results they can be\n * removed from the index using this method.\n *\n * The document passed only needs to have the same ref property value as the\n * document that was added to the index, they could be completely different\n * objects.\n *\n * A 'remove' event is emitted with the document that has been removed and the index\n * the document has been removed from. This event can be silenced by passing false\n * as the second argument to remove.\n *\n * @param {Object} doc The document to remove from the index.\n * @param {Boolean} emitEvent Whether to emit remove events, defaults to true\n * @memberOf Index\n */\nlunr.Index.prototype.remove = function (doc, emitEvent) {\n var docRef = doc[this._ref],\n emitEvent = emitEvent === undefined ? true : emitEvent\n\n if (!this.documentStore.has(docRef)) return\n\n var docTokens = this.documentStore.get(docRef)\n\n this.documentStore.remove(docRef)\n\n docTokens.forEach(function (token) {\n this.tokenStore.remove(token, docRef)\n }, this)\n\n if (emitEvent) this.eventEmitter.emit('remove', doc, this)\n}\n\n/**\n * Updates a document in the index.\n *\n * When a document contained within the index gets updated, fields changed,\n * added or removed, to make sure it correctly matched against search queries,\n * it should be updated in the index.\n *\n * This method is just a wrapper around `remove` and `add`\n *\n * An 'update' event is emitted with the document that has been updated and the index.\n * This event can be silenced by passing false as the second argument to update. Only\n * an update event will be fired, the 'add' and 'remove' events of the underlying calls\n * are silenced.\n *\n * @param {Object} doc The document to update in the index.\n * @param {Boolean} emitEvent Whether to emit update events, defaults to true\n * @see Index.prototype.remove\n * @see Index.prototype.add\n * @memberOf Index\n */\nlunr.Index.prototype.update = function (doc, emitEvent) {\n var emitEvent = emitEvent === undefined ? true : emitEvent\n\n this.remove(doc, false)\n this.add(doc, false)\n\n if (emitEvent) this.eventEmitter.emit('update', doc, this)\n}\n\n/**\n * Calculates the inverse document frequency for a token within the index.\n *\n * @param {String} token The token to calculate the idf of.\n * @see Index.prototype.idf\n * @private\n * @memberOf Index\n */\nlunr.Index.prototype.idf = function (term) {\n var cacheKey = \"@\" + term\n if (Object.prototype.hasOwnProperty.call(this._idfCache, cacheKey)) return this._idfCache[cacheKey]\n\n var documentFrequency = this.tokenStore.count(term),\n idf = 1\n\n if (documentFrequency > 0) {\n idf = 1 + Math.log(this.documentStore.length / documentFrequency)\n }\n\n return this._idfCache[cacheKey] = idf\n}\n\n/**\n * Searches the index using the passed query.\n *\n * Queries should be a string, multiple words are allowed and will lead to an\n * AND based query, e.g. `idx.search('foo bar')` will run a search for\n * documents containing both 'foo' and 'bar'.\n *\n * All query tokens are passed through the same pipeline that document tokens\n * are passed through, so any language processing involved will be run on every\n * query term.\n *\n * Each query term is expanded, so that the term 'he' might be expanded to\n * 'hello' and 'help' if those terms were already included in the index.\n *\n * Matching documents are returned as an array of objects, each object contains\n * the matching document ref, as set for this index, and the similarity score\n * for this document against the query.\n *\n * @param {String} query The query to search the index with.\n * @returns {Object}\n * @see Index.prototype.idf\n * @see Index.prototype.documentVector\n * @memberOf Index\n */\nlunr.Index.prototype.search = function (query) {\n var queryTokens = this.pipeline.run(this.tokenizerFn(query)),\n queryVector = new lunr.Vector,\n documentSets = [],\n fieldBoosts = this._fields.reduce(function (memo, f) { return memo + f.boost }, 0)\n\n var hasSomeToken = queryTokens.some(function (token) {\n return this.tokenStore.has(token)\n }, this)\n\n if (!hasSomeToken) return []\n\n queryTokens\n .forEach(function (token, i, tokens) {\n var tf = 1 / tokens.length * this._fields.length * fieldBoosts,\n self = this\n\n var set = this.tokenStore.expand(token).reduce(function (memo, key) {\n var pos = self.corpusTokens.indexOf(key),\n idf = self.idf(key),\n similarityBoost = 1,\n set = new lunr.SortedSet\n\n // if the expanded key is not an exact match to the token then\n // penalise the score for this key by how different the key is\n // to the token.\n if (key !== token) {\n var diff = Math.max(3, key.length - token.length)\n similarityBoost = 1 / Math.log(diff)\n }\n\n // calculate the query tf-idf score for this token\n // applying an similarityBoost to ensure exact matches\n // these rank higher than expanded terms\n if (pos > -1) queryVector.insert(pos, tf * idf * similarityBoost)\n\n // add all the documents that have this key into a set\n // ensuring that the type of key is preserved\n var matchingDocuments = self.tokenStore.get(key),\n refs = Object.keys(matchingDocuments),\n refsLen = refs.length\n\n for (var i = 0; i < refsLen; i++) {\n set.add(matchingDocuments[refs[i]].ref)\n }\n\n return memo.union(set)\n }, new lunr.SortedSet)\n\n documentSets.push(set)\n }, this)\n\n var documentSet = documentSets.reduce(function (memo, set) {\n return memo.intersect(set)\n })\n\n return documentSet\n .map(function (ref) {\n return { ref: ref, score: queryVector.similarity(this.documentVector(ref)) }\n }, this)\n .sort(function (a, b) {\n return b.score - a.score\n })\n}\n\n/**\n * Generates a vector containing all the tokens in the document matching the\n * passed documentRef.\n *\n * The vector contains the tf-idf score for each token contained in the\n * document with the passed documentRef. The vector will contain an element\n * for every token in the indexes corpus, if the document does not contain that\n * token the element will be 0.\n *\n * @param {Object} documentRef The ref to find the document with.\n * @returns {lunr.Vector}\n * @private\n * @memberOf Index\n */\nlunr.Index.prototype.documentVector = function (documentRef) {\n var documentTokens = this.documentStore.get(documentRef),\n documentTokensLength = documentTokens.length,\n documentVector = new lunr.Vector\n\n for (var i = 0; i < documentTokensLength; i++) {\n var token = documentTokens.elements[i],\n tf = this.tokenStore.get(token)[documentRef].tf,\n idf = this.idf(token)\n\n documentVector.insert(this.corpusTokens.indexOf(token), tf * idf)\n };\n\n return documentVector\n}\n\n/**\n * Returns a representation of the index ready for serialisation.\n *\n * @returns {Object}\n * @memberOf Index\n */\nlunr.Index.prototype.toJSON = function () {\n return {\n version: lunr.version,\n fields: this._fields,\n ref: this._ref,\n tokenizer: this.tokenizerFn.label,\n documentStore: this.documentStore.toJSON(),\n tokenStore: this.tokenStore.toJSON(),\n corpusTokens: this.corpusTokens.toJSON(),\n pipeline: this.pipeline.toJSON()\n }\n}\n\n/**\n * Applies a plugin to the current index.\n *\n * A plugin is a function that is called with the index as its context.\n * Plugins can be used to customise or extend the behaviour the index\n * in some way. A plugin is just a function, that encapsulated the custom\n * behaviour that should be applied to the index.\n *\n * The plugin function will be called with the index as its argument, additional\n * arguments can also be passed when calling use. The function will be called\n * with the index as its context.\n *\n * Example:\n *\n * var myPlugin = function (idx, arg1, arg2) {\n * // `this` is the index to be extended\n * // apply any extensions etc here.\n * }\n *\n * var idx = lunr(function () {\n * this.use(myPlugin, 'arg1', 'arg2')\n * })\n *\n * @param {Function} plugin The plugin to apply.\n * @memberOf Index\n */\nlunr.Index.prototype.use = function (plugin) {\n var args = Array.prototype.slice.call(arguments, 1)\n args.unshift(this)\n plugin.apply(this, args)\n}\n/*!\n * lunr.Store\n * Copyright (C) 2016 Oliver Nightingale\n */\n\n/**\n * lunr.Store is a simple key-value store used for storing sets of tokens for\n * documents stored in index.\n *\n * @constructor\n * @module\n */\nlunr.Store = function () {\n this.store = {}\n this.length = 0\n}\n\n/**\n * Loads a previously serialised store\n *\n * @param {Object} serialisedData The serialised store to load.\n * @returns {lunr.Store}\n * @memberOf Store\n */\nlunr.Store.load = function (serialisedData) {\n var store = new this\n\n store.length = serialisedData.length\n store.store = Object.keys(serialisedData.store).reduce(function (memo, key) {\n memo[key] = lunr.SortedSet.load(serialisedData.store[key])\n return memo\n }, {})\n\n return store\n}\n\n/**\n * Stores the given tokens in the store against the given id.\n *\n * @param {Object} id The key used to store the tokens against.\n * @param {Object} tokens The tokens to store against the key.\n * @memberOf Store\n */\nlunr.Store.prototype.set = function (id, tokens) {\n if (!this.has(id)) this.length++\n this.store[id] = tokens\n}\n\n/**\n * Retrieves the tokens from the store for a given key.\n *\n * @param {Object} id The key to lookup and retrieve from the store.\n * @returns {Object}\n * @memberOf Store\n */\nlunr.Store.prototype.get = function (id) {\n return this.store[id]\n}\n\n/**\n * Checks whether the store contains a key.\n *\n * @param {Object} id The id to look up in the store.\n * @returns {Boolean}\n * @memberOf Store\n */\nlunr.Store.prototype.has = function (id) {\n return id in this.store\n}\n\n/**\n * Removes the value for a key in the store.\n *\n * @param {Object} id The id to remove from the store.\n * @memberOf Store\n */\nlunr.Store.prototype.remove = function (id) {\n if (!this.has(id)) return\n\n delete this.store[id]\n this.length--\n}\n\n/**\n * Returns a representation of the store ready for serialisation.\n *\n * @returns {Object}\n * @memberOf Store\n */\nlunr.Store.prototype.toJSON = function () {\n return {\n store: this.store,\n length: this.length\n }\n}\n\n/*!\n * lunr.stemmer\n * Copyright (C) 2016 Oliver Nightingale\n * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt\n */\n\n/**\n * lunr.stemmer is an english language stemmer, this is a JavaScript\n * implementation of the PorterStemmer taken from http://tartarus.org/~martin\n *\n * @module\n * @param {String} str The string to stem\n * @returns {String}\n * @see lunr.Pipeline\n */\nlunr.stemmer = (function(){\n var step2list = {\n \"ational\" : \"ate\",\n \"tional\" : \"tion\",\n \"enci\" : \"ence\",\n \"anci\" : \"ance\",\n \"izer\" : \"ize\",\n \"bli\" : \"ble\",\n \"alli\" : \"al\",\n \"entli\" : \"ent\",\n \"eli\" : \"e\",\n \"ousli\" : \"ous\",\n \"ization\" : \"ize\",\n \"ation\" : \"ate\",\n \"ator\" : \"ate\",\n \"alism\" : \"al\",\n \"iveness\" : \"ive\",\n \"fulness\" : \"ful\",\n \"ousness\" : \"ous\",\n \"aliti\" : \"al\",\n \"iviti\" : \"ive\",\n \"biliti\" : \"ble\",\n \"logi\" : \"log\"\n },\n\n step3list = {\n \"icate\" : \"ic\",\n \"ative\" : \"\",\n \"alize\" : \"al\",\n \"iciti\" : \"ic\",\n \"ical\" : \"ic\",\n \"ful\" : \"\",\n \"ness\" : \"\"\n },\n\n c = \"[^aeiou]\", // consonant\n v = \"[aeiouy]\", // vowel\n C = c + \"[^aeiouy]*\", // consonant sequence\n V = v + \"[aeiou]*\", // vowel sequence\n\n mgr0 = \"^(\" + C + \")?\" + V + C, // [C]VC... is m>0\n meq1 = \"^(\" + C + \")?\" + V + C + \"(\" + V + \")?$\", // [C]VC[V] is m=1\n mgr1 = \"^(\" + C + \")?\" + V + C + V + C, // [C]VCVC... is m>1\n s_v = \"^(\" + C + \")?\" + v; // vowel in stem\n\n var re_mgr0 = new RegExp(mgr0);\n var re_mgr1 = new RegExp(mgr1);\n var re_meq1 = new RegExp(meq1);\n var re_s_v = new RegExp(s_v);\n\n var re_1a = /^(.+?)(ss|i)es$/;\n var re2_1a = /^(.+?)([^s])s$/;\n var re_1b = /^(.+?)eed$/;\n var re2_1b = /^(.+?)(ed|ing)$/;\n var re_1b_2 = /.$/;\n var re2_1b_2 = /(at|bl|iz)$/;\n var re3_1b_2 = new RegExp(\"([^aeiouylsz])\\\\1$\");\n var re4_1b_2 = new RegExp(\"^\" + C + v + \"[^aeiouwxy]$\");\n\n var re_1c = /^(.+?[^aeiou])y$/;\n var re_2 = /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/;\n\n var re_3 = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/;\n\n var re_4 = /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/;\n var re2_4 = /^(.+?)(s|t)(ion)$/;\n\n var re_5 = /^(.+?)e$/;\n var re_5_1 = /ll$/;\n var re3_5 = new RegExp(\"^\" + C + v + \"[^aeiouwxy]$\");\n\n var porterStemmer = function porterStemmer(w) {\n var stem,\n suffix,\n firstch,\n re,\n re2,\n re3,\n re4;\n\n if (w.length < 3) { return w; }\n\n firstch = w.substr(0,1);\n if (firstch == \"y\") {\n w = firstch.toUpperCase() + w.substr(1);\n }\n\n // Step 1a\n re = re_1a\n re2 = re2_1a;\n\n if (re.test(w)) { w = w.replace(re,\"$1$2\"); }\n else if (re2.test(w)) { w = w.replace(re2,\"$1$2\"); }\n\n // Step 1b\n re = re_1b;\n re2 = re2_1b;\n if (re.test(w)) {\n var fp = re.exec(w);\n re = re_mgr0;\n if (re.test(fp[1])) {\n re = re_1b_2;\n w = w.replace(re,\"\");\n }\n } else if (re2.test(w)) {\n var fp = re2.exec(w);\n stem = fp[1];\n re2 = re_s_v;\n if (re2.test(stem)) {\n w = stem;\n re2 = re2_1b_2;\n re3 = re3_1b_2;\n re4 = re4_1b_2;\n if (re2.test(w)) { w = w + \"e\"; }\n else if (re3.test(w)) { re = re_1b_2; w = w.replace(re,\"\"); }\n else if (re4.test(w)) { w = w + \"e\"; }\n }\n }\n\n // Step 1c - replace suffix y or Y by i if preceded by a non-vowel which is not the first letter of the word (so cry -> cri, by -> by, say -> say)\n re = re_1c;\n if (re.test(w)) {\n var fp = re.exec(w);\n stem = fp[1];\n w = stem + \"i\";\n }\n\n // Step 2\n re = re_2;\n if (re.test(w)) {\n var fp = re.exec(w);\n stem = fp[1];\n suffix = fp[2];\n re = re_mgr0;\n if (re.test(stem)) {\n w = stem + step2list[suffix];\n }\n }\n\n // Step 3\n re = re_3;\n if (re.test(w)) {\n var fp = re.exec(w);\n stem = fp[1];\n suffix = fp[2];\n re = re_mgr0;\n if (re.test(stem)) {\n w = stem + step3list[suffix];\n }\n }\n\n // Step 4\n re = re_4;\n re2 = re2_4;\n if (re.test(w)) {\n var fp = re.exec(w);\n stem = fp[1];\n re = re_mgr1;\n if (re.test(stem)) {\n w = stem;\n }\n } else if (re2.test(w)) {\n var fp = re2.exec(w);\n stem = fp[1] + fp[2];\n re2 = re_mgr1;\n if (re2.test(stem)) {\n w = stem;\n }\n }\n\n // Step 5\n re = re_5;\n if (re.test(w)) {\n var fp = re.exec(w);\n stem = fp[1];\n re = re_mgr1;\n re2 = re_meq1;\n re3 = re3_5;\n if (re.test(stem) || (re2.test(stem) && !(re3.test(stem)))) {\n w = stem;\n }\n }\n\n re = re_5_1;\n re2 = re_mgr1;\n if (re.test(w) && re2.test(w)) {\n re = re_1b_2;\n w = w.replace(re,\"\");\n }\n\n // and turn initial Y back to y\n\n if (firstch == \"y\") {\n w = firstch.toLowerCase() + w.substr(1);\n }\n\n return w;\n };\n\n return porterStemmer;\n})();\n\nlunr.Pipeline.registerFunction(lunr.stemmer, 'stemmer')\n/*!\n * lunr.stopWordFilter\n * Copyright (C) 2016 Oliver Nightingale\n */\n\n/**\n * lunr.generateStopWordFilter builds a stopWordFilter function from the provided\n * list of stop words.\n *\n * The built in lunr.stopWordFilter is built using this generator and can be used\n * to generate custom stopWordFilters for applications or non English languages.\n *\n * @module\n * @param {Array} token The token to pass through the filter\n * @returns {Function}\n * @see lunr.Pipeline\n * @see lunr.stopWordFilter\n */\nlunr.generateStopWordFilter = function (stopWords) {\n var words = stopWords.reduce(function (memo, stopWord) {\n memo[stopWord] = stopWord\n return memo\n }, {})\n\n return function (token) {\n if (token && words[token] !== token) return token\n }\n}\n\n/**\n * lunr.stopWordFilter is an English language stop word list filter, any words\n * contained in the list will not be passed through the filter.\n *\n * This is intended to be used in the Pipeline. If the token does not pass the\n * filter then undefined will be returned.\n *\n * @module\n * @param {String} token The token to pass through the filter\n * @returns {String}\n * @see lunr.Pipeline\n */\nlunr.stopWordFilter = lunr.generateStopWordFilter([\n 'a',\n 'able',\n 'about',\n 'across',\n 'after',\n 'all',\n 'almost',\n 'also',\n 'am',\n 'among',\n 'an',\n 'and',\n 'any',\n 'are',\n 'as',\n 'at',\n 'be',\n 'because',\n 'been',\n 'but',\n 'by',\n 'can',\n 'cannot',\n 'could',\n 'dear',\n 'did',\n 'do',\n 'does',\n 'either',\n 'else',\n 'ever',\n 'every',\n 'for',\n 'from',\n 'get',\n 'got',\n 'had',\n 'has',\n 'have',\n 'he',\n 'her',\n 'hers',\n 'him',\n 'his',\n 'how',\n 'however',\n 'i',\n 'if',\n 'in',\n 'into',\n 'is',\n 'it',\n 'its',\n 'just',\n 'least',\n 'let',\n 'like',\n 'likely',\n 'may',\n 'me',\n 'might',\n 'most',\n 'must',\n 'my',\n 'neither',\n 'no',\n 'nor',\n 'not',\n 'of',\n 'off',\n 'often',\n 'on',\n 'only',\n 'or',\n 'other',\n 'our',\n 'own',\n 'rather',\n 'said',\n 'say',\n 'says',\n 'she',\n 'should',\n 'since',\n 'so',\n 'some',\n 'than',\n 'that',\n 'the',\n 'their',\n 'them',\n 'then',\n 'there',\n 'these',\n 'they',\n 'this',\n 'tis',\n 'to',\n 'too',\n 'twas',\n 'us',\n 'wants',\n 'was',\n 'we',\n 'were',\n 'what',\n 'when',\n 'where',\n 'which',\n 'while',\n 'who',\n 'whom',\n 'why',\n 'will',\n 'with',\n 'would',\n 'yet',\n 'you',\n 'your'\n])\n\nlunr.Pipeline.registerFunction(lunr.stopWordFilter, 'stopWordFilter')\n/*!\n * lunr.trimmer\n * Copyright (C) 2016 Oliver Nightingale\n */\n\n/**\n * lunr.trimmer is a pipeline function for trimming non word\n * characters from the begining and end of tokens before they\n * enter the index.\n *\n * This implementation may not work correctly for non latin\n * characters and should either be removed or adapted for use\n * with languages with non-latin characters.\n *\n * @module\n * @param {String} token The token to pass through the filter\n * @returns {String}\n * @see lunr.Pipeline\n */\nlunr.trimmer = function (token) {\n return token.replace(/^\\W+/, '').replace(/\\W+$/, '')\n}\n\nlunr.Pipeline.registerFunction(lunr.trimmer, 'trimmer')\n/*!\n * lunr.stemmer\n * Copyright (C) 2016 Oliver Nightingale\n * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt\n */\n\n/**\n * lunr.TokenStore is used for efficient storing and lookup of the reverse\n * index of token to document ref.\n *\n * @constructor\n */\nlunr.TokenStore = function () {\n this.root = { docs: {} }\n this.length = 0\n}\n\n/**\n * Loads a previously serialised token store\n *\n * @param {Object} serialisedData The serialised token store to load.\n * @returns {lunr.TokenStore}\n * @memberOf TokenStore\n */\nlunr.TokenStore.load = function (serialisedData) {\n var store = new this\n\n store.root = serialisedData.root\n store.length = serialisedData.length\n\n return store\n}\n\n/**\n * Adds a new token doc pair to the store.\n *\n * By default this function starts at the root of the current store, however\n * it can start at any node of any token store if required.\n *\n * @param {String} token The token to store the doc under\n * @param {Object} doc The doc to store against the token\n * @param {Object} root An optional node at which to start looking for the\n * correct place to enter the doc, by default the root of this lunr.TokenStore\n * is used.\n * @memberOf TokenStore\n */\nlunr.TokenStore.prototype.add = function (token, doc, root) {\n var root = root || this.root,\n key = token.charAt(0),\n rest = token.slice(1)\n\n if (!(key in root)) root[key] = {docs: {}}\n\n if (rest.length === 0) {\n root[key].docs[doc.ref] = doc\n this.length += 1\n return\n } else {\n return this.add(rest, doc, root[key])\n }\n}\n\n/**\n * Checks whether this key is contained within this lunr.TokenStore.\n *\n * By default this function starts at the root of the current store, however\n * it can start at any node of any token store if required.\n *\n * @param {String} token The token to check for\n * @param {Object} root An optional node at which to start\n * @memberOf TokenStore\n */\nlunr.TokenStore.prototype.has = function (token) {\n if (!token) return false\n\n var node = this.root\n\n for (var i = 0; i < token.length; i++) {\n if (!node[token.charAt(i)]) return false\n\n node = node[token.charAt(i)]\n }\n\n return true\n}\n\n/**\n * Retrieve a node from the token store for a given token.\n *\n * By default this function starts at the root of the current store, however\n * it can start at any node of any token store if required.\n *\n * @param {String} token The token to get the node for.\n * @param {Object} root An optional node at which to start.\n * @returns {Object}\n * @see TokenStore.prototype.get\n * @memberOf TokenStore\n */\nlunr.TokenStore.prototype.getNode = function (token) {\n if (!token) return {}\n\n var node = this.root\n\n for (var i = 0; i < token.length; i++) {\n if (!node[token.charAt(i)]) return {}\n\n node = node[token.charAt(i)]\n }\n\n return node\n}\n\n/**\n * Retrieve the documents for a node for the given token.\n *\n * By default this function starts at the root of the current store, however\n * it can start at any node of any token store if required.\n *\n * @param {String} token The token to get the documents for.\n * @param {Object} root An optional node at which to start.\n * @returns {Object}\n * @memberOf TokenStore\n */\nlunr.TokenStore.prototype.get = function (token, root) {\n return this.getNode(token, root).docs || {}\n}\n\nlunr.TokenStore.prototype.count = function (token, root) {\n return Object.keys(this.get(token, root)).length\n}\n\n/**\n * Remove the document identified by ref from the token in the store.\n *\n * By default this function starts at the root of the current store, however\n * it can start at any node of any token store if required.\n *\n * @param {String} token The token to get the documents for.\n * @param {String} ref The ref of the document to remove from this token.\n * @param {Object} root An optional node at which to start.\n * @returns {Object}\n * @memberOf TokenStore\n */\nlunr.TokenStore.prototype.remove = function (token, ref) {\n if (!token) return\n var node = this.root\n\n for (var i = 0; i < token.length; i++) {\n if (!(token.charAt(i) in node)) return\n node = node[token.charAt(i)]\n }\n\n delete node.docs[ref]\n}\n\n/**\n * Find all the possible suffixes of the passed token using tokens\n * currently in the store.\n *\n * @param {String} token The token to expand.\n * @returns {Array}\n * @memberOf TokenStore\n */\nlunr.TokenStore.prototype.expand = function (token, memo) {\n var root = this.getNode(token),\n docs = root.docs || {},\n memo = memo || []\n\n if (Object.keys(docs).length) memo.push(token)\n\n Object.keys(root)\n .forEach(function (key) {\n if (key === 'docs') return\n\n memo.concat(this.expand(token + key, memo))\n }, this)\n\n return memo\n}\n\n/**\n * Returns a representation of the token store ready for serialisation.\n *\n * @returns {Object}\n * @memberOf TokenStore\n */\nlunr.TokenStore.prototype.toJSON = function () {\n return {\n root: this.root,\n length: this.length\n }\n}\n\n /**\n * export the module via AMD, CommonJS or as a browser global\n * Export code from https://github.com/umdjs/umd/blob/master/returnExports.js\n */\n ;(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(factory)\n } else if (typeof exports === 'object') {\n /**\n * Node. Does not work with strict CommonJS, but\n * only CommonJS-like enviroments that support module.exports,\n * like Node.\n */\n module.exports = factory()\n } else {\n // Browser globals (root is window)\n root.lunr = factory()\n }\n }(this, function () {\n /**\n * Just return a value to define the module export.\n * This example returns an object, but the module\n * can return a function as the exported value.\n */\n return lunr\n }))\n})();\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/lunr/lunr.js\n **/","/*\n * Copyright (c) 2016 Martin Donath \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/* ----------------------------------------------------------------------------\n * Github Source\n * ------------------------------------------------------------------------- */\n\nexport default\nclass GithubSourceFacts {\n\n /**\n * Constructor.\n *\n * @constructor\n * @param {object} storage - Accessor to storage, eg. `window.sessionStorage`\n * @param {string} repoUrl - URL to Github repository\n */\n constructor(storage, repoUrl) {\n this.storage = storage\n this.storageKey = \"github-source-facts\"\n this.apiRepoUrl = repoUrl.replace(\"github.com/\", \"api.github.com/repos/\")\n }\n\n /**\n * Retrieve stars and fork counts for the repository before invoking\n * `GithubSourceFacts.paint`.\n *\n * @return {void}\n */\n initialize() {\n const facts = this.storage.getItem(this.storageKey)\n\n // Retrieve the facts, then invoke paint\n if (!facts) {\n fetch(this.apiRepoUrl)\n .then(response => {\n return response.json()\n })\n .then(data => {\n const repoFacts = {\n stars: data.stargazers_count,\n forks: data.forks_count\n }\n\n this.storage.setItem(this.storageKey, JSON.stringify(repoFacts))\n\n GithubSourceFacts.paint(repoFacts)\n })\n .catch(() => {\n // console.log(\"parsing failed\", ex)\n })\n // Use the cached facts\n } else {\n GithubSourceFacts.paint(JSON.parse(facts))\n }\n }\n\n /**\n * Populates `.md-source__facts` with star and fork counts.\n *\n * @param {integer} options.stars - Stars count for the repo\n * @param {integer} options.forks - Fork count for the repo\n * @return {void}\n */\n static paint({ stars, forks }) {\n const lists = document.querySelectorAll(\".md-source__facts\"); // TODO 2x list in drawer and header\n\n [].forEach.call(lists, list => {\n\n let li = document.createElement(\"li\")\n li.className = \"md-source__fact md-source__fact--hidden\"\n li.innerText = `${stars} Stars`\n list.appendChild(li)\n\n setTimeout(lix => {\n lix.classList.remove(\"md-source__fact--hidden\")\n }, 100, li)\n\n li = document.createElement(\"li\")\n li.className = \"md-source__fact md-source__fact--hidden\"\n li.innerText = `${forks} Forks`\n list.appendChild(li)\n\n setTimeout(lix => {\n lix.classList.remove(\"md-source__fact--hidden\")\n }, 500, li)\n })\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/assets/javascripts/components/GithubSourceFacts.js\n **/","/*\n * Copyright (c) 2016 Martin Donath \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport Sidebar from \"./Material/Sidebar\"\n\n/* ----------------------------------------------------------------------------\n * Material application\n * ------------------------------------------------------------------------- */\n\nexport default\nclass Material {\n\n /**\n * Constructor\n *\n * @constructor\n */\n // constructor() {\n //\n // }\n\n /**\n * @return {void}\n */\n initialize() {\n\n // class AnchorMarker extends PageYOffsetListener\n // class SidebarConstrainer extends PageYOffsetListener\n\n // MatchMedia!?\n\n const width = window.matchMedia(\"(min-width: 1200px)\")\n\n // separate function in application.js --> initSidebar()\n const sidebar = new Sidebar.Position(\"[data-md-sidebar=primary]\")\n const handler = function() {\n if (width.matches) {\n sidebar.listen()\n } else {\n sidebar.unlisten()\n }\n }\n handler() // check listen!\n\n const toc = new Sidebar.Position(\"[data-md-sidebar=secondary]\")\n toc.listen()\n\n window.addEventListener(\"resize\", handler) // TODO: orientation change etc...\n\n const marker =\n new Sidebar.Marker(\"[data-md-sidebar=secondary] .md-nav__link\")\n marker.listen()\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/assets/javascripts/components/Material.js\n **/","/*\n * Copyright (c) 2016 Martin Donath \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport Marker from \"./Sidebar/Marker\"\nimport Position from \"./Sidebar/Position\"\n\n/* ----------------------------------------------------------------------------\n * Definition\n * ------------------------------------------------------------------------- */\n\nexport default {\n Marker,\n Position\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/assets/javascripts/components/Material/Sidebar.js\n **/","/*\n * Copyright (c) 2016 Martin Donath \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport Abstract from \"./Abstract\"\n\n/* ----------------------------------------------------------------------------\n * Definition\n * ------------------------------------------------------------------------- */\n\nexport default class Marker extends Abstract {\n\n /**\n * Mark anchors within the table of contents above current page y-offset\n *\n * @constructor\n * @param {(string|NodeList)} els - Selector or HTML elements\n */\n constructor(els) {\n super()\n\n /* Resolve elements */\n this.els_ = (typeof els === \"string\")\n ? document.querySelectorAll(els)\n : els\n\n /* Initialize index and page y-offset */\n this.index_ = 0\n this.offset_ = window.pageYOffset\n\n /* Index anchor nodes for fast lookup */\n this.anchors_ = [].map.call(this.els_, el => {\n return document.querySelector(el.hash)\n })\n }\n\n /**\n * Update anchor states\n *\n * @param {Event} ev - Event (omitted)\n */\n update() {\n const offset = window.pageYOffset\n\n /* Scroll direction is down */\n if (this.offset_ <= offset) {\n for (let i = this.index_ + 1; i < this.els_.length; i++) {\n if (this.anchors_[i].offsetTop <= offset) {\n if (i > 0)\n this.els_[i - 1].dataset.mdMarked = \"\"\n this.index_ = i\n } else {\n break\n }\n }\n\n /* Scroll direction is up */\n } else {\n for (let i = this.index_; i >= 0; i--) {\n if (this.anchors_[i].offsetTop > offset) {\n if (i > 0)\n delete this.els_[i - 1].dataset.mdMarked\n } else {\n this.index_ = i\n break\n }\n }\n }\n\n /* Remember current offset for next iteration */\n this.offset_ = offset\n }\n\n /**\n * Reset anchor states\n */\n reset() {\n [].forEach.call(this.els_, el => {\n delete el.dataset.mdMarked\n })\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/assets/javascripts/components/Material/Sidebar/Marker.js\n **/","/*\n * Copyright (c) 2016 Martin Donath \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/* ----------------------------------------------------------------------------\n * Definition\n * ------------------------------------------------------------------------- */\n\nexport default class Abstract {\n\n /**\n * Dispatch update on next repaint\n *\n * @constructor\n */\n constructor() {\n if (this === Abstract)\n throw new TypeError(\"Cannot construct abstract instance\")\n\n /* Dispatch update on next repaint */\n this.handler_ = ev => {\n window.requestAnimationFrame(() => {\n this.update(ev)\n })\n }\n }\n\n /**\n * Update state\n *\n * @abstract\n */\n update() {\n throw new Error(\"update(): not implemented\")\n }\n\n /**\n * Reset state\n *\n * @abstract\n */\n reset() {\n throw new Error(\"reset(): not implemented\")\n }\n\n /**\n * Register listener for all relevant events\n */\n listen() {\n [\"scroll\", \"resize\", \"orientationchange\"].forEach(name => {\n window.addEventListener(name, this.handler_, false)\n })\n\n /* Initial update */\n this.update()\n }\n\n /**\n * Unregister listener for all relevant events\n */\n unlisten() {\n [\"scroll\", \"resize\", \"orientationchange\"].forEach(name => {\n window.removeEventListener(name, this.handler_, false)\n })\n\n /* Final reset */\n this.reset()\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/assets/javascripts/components/Material/Sidebar/Abstract.js\n **/","/*\n * Copyright (c) 2016 Martin Donath \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport Abstract from \"./Abstract\"\n\n/* ----------------------------------------------------------------------------\n * Definition\n * ------------------------------------------------------------------------- */\n\nexport default class Position extends Abstract {\n\n /**\n * Set sidebars to locked state and limit height to parent node\n *\n * @constructor\n * @param {(string|HTMLElement)} el - Selector or HTML element\n */\n constructor(el) {\n super()\n\n /* Resolve elements */\n this.el_ = (typeof el === \"string\")\n ? document.querySelector(el)\n : el\n\n /* Index inner and outer container */\n const inner = this.el_.parentNode\n const outer = this.el_.parentNode.parentNode\n\n /* Get top and bottom bounds */\n this.offset_ = outer.offsetTop\n this.bounds_ = {\n top: inner.offsetTop,\n bottom: inner.offsetTop + inner.offsetHeight\n }\n\n /* Initialize current height */\n this.height_ = 0\n }\n\n /**\n * Update locked state and height\n *\n * @param {Event} ev - Event (omitted)\n */\n update() {\n const scroll = window.pageYOffset\n const expand = window.innerHeight\n\n /* Calculate new bounds */\n const offset = this.bounds_.top - scroll\n const height = expand\n - Math.max(0, scroll + expand - this.bounds_.bottom)\n - Math.max(offset, this.offset_)\n\n /* If height changed, update element */\n if (height !== this.height_)\n this.el_.style.height = `${this.height_ = height}px`\n\n /* Sidebar should be locked, as we're below parent offset */\n if (offset < this.offset_) {\n if (!this.el_.dataset.mdLocked)\n this.el_.dataset.mdLocked = \"\"\n\n /* Sidebar should be unlocked, if locked */\n } else if (typeof this.el_.dataset.mdLocked === \"string\") {\n delete this.el_.dataset.mdLocked\n }\n }\n\n /**\n * Reset locked state and height\n */\n reset() {\n delete this.el_.dataset.mdLocked\n this.el_.style.height = \"\"\n this.height_ = 0\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/assets/javascripts/components/Material/Sidebar/Position.js\n **/"],"sourceRoot":""} \ No newline at end of file diff --git a/material/assets/stylesheets/application.css b/material/assets/stylesheets/application.css index 133e90b1d..45f9ee2d3 100644 --- a/material/assets/stylesheets/application.css +++ b/material/assets/stylesheets/application.css @@ -1507,7 +1507,7 @@ mark { transition: transform 0.3s 0.1s, opacity 0.2s 0.2s; transition: transform 0.3s 0.1s, opacity 0.2s 0.2s, -webkit-transform 0.3s 0.1s; border-radius: 2.0rem; - background: #EEEEEE; + background: white; opacity: 0; overflow: hidden; z-index: 1; } @@ -1574,3 +1574,5 @@ mark { @media only screen and (min-width: 60em) and (min-width: 75em){ .md-sidebar--secondary[data-md-locked]{ margin-left: 120.0rem; } } + +/*# sourceMappingURL=application.css.map */ diff --git a/material/assets/stylesheets/application.css.map b/material/assets/stylesheets/application.css.map index 2cf78623d..f8298f58b 100644 --- a/material/assets/stylesheets/application.css.map +++ b/material/assets/stylesheets/application.css.map @@ -1 +1 @@ -{"version":3,"sources":["application.css","base/_reset.scss","base/_icons.scss","_config.scss","base/_typeset.scss","../../../node_modules/modularscale-sass/stylesheets/modular-scale/_calc.scss","../../../node_modules/material-design-color/material-color.scss","layout/_base.scss","layout/_content.scss","layout/_header.scss","../../../node_modules/material-shadows/material-shadows.scss","layout/_footer.scss","layout/_nav.scss","layout/_search.scss","layout/_sidebar.scss","layout/_source.scss","extensions/_admonition.scss","extensions/_codehilite.scss","extensions/_footnotes.scss","extensions/_permalinks.scss","_shame.scss","helpers/_break.scss"],"names":[],"mappings":"AAAA,iBAAiB;AC4BjB;EACU,uBAAuB;EAC5B,4BAA4B;EAC/B,+BAA+B,EAChC;;AAGD;;;EAGU,oBAAoB;EACzB,yBAAyB;EAC5B,4BAA4B,EAC7B;;AAGD;EACE,+BAAuB;MAAvB,2BAAuB;UAAvB,uBAAuB,EACxB;;AAGD;EACE,UAAU,EACX;;AAGD;;;;;;;;;EASE,eAAe,EAChB;;AAGD;EACE,kBAAkB;EAClB,wBAAwB,EACzB;;AAGD;EACE,eAAe;EACf,sBAAsB,EAOvB;EATD;IAOI,iBAAiB,EAClB;;AAIH;EACE,sCAAsC,EACvC;;AAGD;;;;EAIE,yCAAyC,EAC1C;;AAGD;EACE,eAAe,EAChB;;AAGD;;EAEE,mBAAmB;EACnB,eAAe;EACf,eAAe;EACf,yBAAyB,EAC1B;;AAGD;EACE,gBAAgB,EACjB;;AAGD;EACE,YAAY,EACb;;AAED;EACE,mBAAmB,EACpB;;AAGD;EACE,0BAA0B;EAC1B,kBAAkB,EACnB;;AAGD;;EAEE,oBAAoB;EACpB,iBAAiB;EACjB,oBAAoB,EACrB;;AAGD;EACE,WAAW;EACX,UAAU;EACV,WAAW;EACX,wBAAwB;EACxB,mBAAmB,EACpB;;AAGD;EACE,UAAU;EACV,WAAW,EACZ;;AC7HD;EACE,8BAA8B;EAC9B,mBAAmB;EACnB,qBAAqB;EACrB,oBAAoB;EACpB,eAAe;EACf,qBAAqB;EACrB,oBAAoB;EACpB,YAAY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gB;IAAhB,qBAAgB;IAChB,2DAEiB;IAFjB,mDAEiB;IAFjB,2CAEiB;IAFjB,mEAEiB;IACjB,WAAW,EACZ;EA3CP;IAqDM,gBAAgB;IAChB,OAAO;IACP,WAAW;IACX,aAAa;IACb,kCAAqB;IAArB,0BAAqB;IACrB,kHAGuB;IAHvB,0GAGuB;IAHvB,kGAGuB;IAHvB,8JAGuB;IACvB,WAAW;IACX,WAAW,EAkBd;EAjFH;IAmEQ,QAAQ;IACR,iCAAqB;IAArB,yBAAqB;IACrB,kHAGuB;IAHvB,0GAGuB;IAHvB,kGAGuB;IAHvB,gKAGuB;IACvB,WAAW,EACZ;EA1EP;IAoHM,YAAY;IACZ,aAAa,EAOhB;EA5HH;IAyHQ,sBAAsB,EACvB;EA1HP;IA2IM,YAAY;IACZ,eAAe;IACf,kBAAkB,EA0CrB;EOxJD;IACE,mBAAmB;IACnB,YAAY;IACZ,UAAU;IAEV,qKAEiB;IAFjB,2JAEiB;IAGlB,6BAA6B;IAC7B,wBAAwB;IACxB,sCAAsC;IAGtC,qCAAqC,EACrC;EAID;IACE,kBAAkB,EAInB;EACD;IACE,qBAAqB;IACrB,6CAA6B,EAC9B,ERiPE;ES1GD;EPnMJ;IA2EU,sBAAsB,EAEzB,EAAA","file":"application.css","sourcesContent":["@charset \"UTF-8\";\nhtml {\n box-sizing: border-box;\n -moz-box-sizing: border-box;\n -webkit-box-sizing: border-box; }\n\n*,\n*::before,\n*::after {\n box-sizing: inherit;\n -moz-box-sizing: inherit;\n -webkit-box-sizing: inherit; }\n\nhtml {\n text-size-adjust: none; }\n\nbody {\n margin: 0; }\n\narticle,\naside,\nfigcaption,\nfigure,\nfooter,\nheader,\nmain,\nnav,\nsection {\n display: block; }\n\nhr {\n overflow: visible;\n box-sizing: content-box; }\n\na {\n color: inherit;\n text-decoration: none; }\n a:active, a:hover {\n outline-width: 0; }\n\na {\n -webkit-text-decoration-skip: objects; }\n\na,\nbutton,\nlabel,\ninput {\n -webkit-tap-highlight-color: transparent; }\n\nsmall {\n font-size: 80%; }\n\nsub,\nsup {\n position: relative;\n font-size: 80%;\n line-height: 0;\n vertical-align: baseline; }\n\nsub {\n bottom: -0.25em; }\n\nsup {\n top: -0.5em; }\n\nimg {\n border-style: none; }\n\ntable {\n border-collapse: collapse;\n border-spacing: 0; }\n\ntd,\nth {\n font-weight: normal;\n text-align: left;\n vertical-align: top; }\n\nbutton {\n padding: 0;\n border: 0;\n outline: 0;\n background: transparent;\n font-size: inherit; }\n\ninput {\n border: 0;\n outline: 0; }\n\n.md-icon, .md-nav__title::before, .md-nav__link::after, .admonition-title::before, .footnote-backref, .md-search-term::before, .checklist li::before, .critic.comment::before {\n font-family: \"Material Icons\";\n font-style: normal;\n font-variant: normal;\n font-weight: normal;\n line-height: 1;\n text-transform: none;\n white-space: nowrap;\n speak: none;\n word-wrap: normal;\n direction: ltr;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale; }\n .md-header-nav__icon, .md-footer-nav__icon, .md-nav__title::before {\n display: inline-block;\n margin: 0.4rem;\n padding: 0.8rem;\n font-size: 2.4rem;\n cursor: pointer; }\n\n.md-icon--back::before {\n content: \"arrow_back\"; }\n\n.md-icon--forward::before {\n content: \"arrow_forward\"; }\n\nbody,\ninput {\n color: rgba(0, 0, 0, 0.87);\n font-family: \"Roboto\", Helvetica, Arial, sans-serif;\n font-weight: 400;\n font-feature-settings: \"kern\", \"onum\", \"liga\";\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale; }\n .no-fontface body, .no-fontface\n input {\n font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; }\n\npre,\ncode,\nkbd {\n color: rgba(0, 0, 0, 0.87);\n font-family: \"Roboto Mono\", \"Courier New\", Courier, monospace;\n font-weight: 400;\n font-feature-settings: \"kern\", \"onum\", \"liga\"; }\n .no-fontface pre, .no-fontface\n code, .no-fontface\n kbd {\n font-family: \"Courier New\", Courier, monospace; }\n\n.md-typeset {\n font-size: 1.6rem;\n line-height: 1.6; }\n .md-typeset p,\n .md-typeset ul,\n .md-typeset ol,\n .md-typeset blockquote {\n margin: 1.0em 0; }\n .md-typeset h1 {\n margin: 0 0 4.0rem;\n color: rgba(0, 0, 0, 0.54);\n font-size: 3.125rem;\n font-weight: 300;\n letter-spacing: -0.01em;\n line-height: 1.3; }\n .md-typeset h2 {\n margin: 4.0rem 0 1.6rem;\n font-size: 2.5rem;\n font-weight: 300;\n letter-spacing: -0.01em;\n line-height: 1.4; }\n .md-typeset h3 {\n margin: 3.2rem 0 1.6rem;\n font-size: 2rem;\n font-weight: 400;\n letter-spacing: -0.01em;\n line-height: 1.5; }\n .md-typeset h2 + h3 {\n margin-top: 1.6rem; }\n .md-typeset h4 {\n margin: 1.6rem 0;\n font-size: 1.6rem;\n font-weight: 700;\n letter-spacing: -0.01em; }\n .md-typeset h5,\n .md-typeset h6 {\n margin: 1.6rem 0;\n color: rgba(0, 0, 0, 0.54);\n font-size: 1.28rem;\n font-weight: 700;\n letter-spacing: -0.01em; }\n .md-typeset h5 {\n text-transform: uppercase; }\n .md-typeset hr {\n margin: 2.4rem 0;\n border-bottom: 0.1rem dotted rgba(0, 0, 0, 0.26); }\n .md-typeset a {\n color: #3f51b5; }\n .md-typeset a, .md-typeset a::before {\n transition: color 0.125s; }\n .md-typeset a:hover, .md-typeset a:active {\n color: #536dfe; }\n .md-typeset code {\n margin: 0 0.4rem;\n padding: 0.1rem 0;\n border-radius: 0.2rem;\n background: rgba(0, 0, 0, 0.035);\n color: #37474F;\n font-size: 85%;\n box-shadow: 0.4rem 0 0 rgba(0, 0, 0, 0.035), -0.4rem 0 0 rgba(0, 0, 0, 0.035);\n word-break: break-word;\n box-decoration-break: clone; }\n .md-typeset h1 code,\n .md-typeset h2 code,\n .md-typeset h3 code,\n .md-typeset h4 code,\n .md-typeset h5 code,\n .md-typeset h6 code {\n margin: 0;\n background: transparent;\n box-shadow: none; }\n .md-typeset pre {\n margin: 1.0em 0;\n padding: 1.0rem 1.2rem;\n border-radius: 0.2rem;\n background: rgba(0, 0, 0, 0.035);\n color: #37474F;\n font-size: 85%;\n line-height: 1.4;\n overflow: auto;\n -webkit-overflow-scrolling: touch; }\n .md-typeset pre > code {\n font-size: inherit; }\n @media only screen and (max-width: 44.9375em) {\n .md-typeset > div > pre,\n .md-typeset > pre > code {\n margin: 1.0em -1.6rem;\n padding: 1.0rem 1.6rem;\n border-radius: 0; } }\n .md-typeset > div > pre::-webkit-scrollbar,\n .md-typeset > pre > code::-webkit-scrollbar {\n width: 0.4rem;\n height: 0.4rem; }\n .md-typeset > div > pre::-webkit-scrollbar-thumb,\n .md-typeset > pre > code::-webkit-scrollbar-thumb {\n background: rgba(0, 0, 0, 0.26); }\n .md-typeset kbd {\n display: inline-block;\n padding: 0.4rem 0.5rem 0.5rem;\n border: 0.1rem solid #c9c9c9;\n border-radius: 0.2rem;\n border-bottom-color: #bcbcbc;\n background-color: #FCFCFC;\n color: #555555;\n font-size: 85%;\n line-height: 1.0rem;\n box-shadow: 0 -0.1rem 0 #b0b0b0 inset;\n vertical-align: 0.1rem;\n word-break: break-word; }\n .md-typeset small {\n opacity: 0.75; }\n .md-typeset sup,\n .md-typeset sub {\n margin-left: 0.1rem; }\n .md-typeset blockquote {\n padding-left: 1.2rem;\n border-left: 0.4rem solid rgba(0, 0, 0, 0.26);\n color: rgba(0, 0, 0, 0.54); }\n .md-typeset ul {\n list-style-type: disc; }\n .md-typeset ol ol {\n list-style-type: lower-alpha; }\n .md-typeset ol ol ol {\n list-style-type: lower-roman; }\n .md-typeset ul,\n .md-typeset ol {\n margin-left: 1.0rem;\n padding: 0; }\n .md-typeset ul li,\n .md-typeset ol li {\n margin-bottom: 0.5em;\n margin-left: 2.0rem; }\n .md-typeset ul li p,\n .md-typeset ul li blockquote,\n .md-typeset ol li p,\n .md-typeset ol li blockquote {\n margin: 0.5em 0; }\n .md-typeset ul li:last-child,\n .md-typeset ol li:last-child {\n margin-bottom: 0; }\n .md-typeset ul li ul,\n .md-typeset ul li ol,\n .md-typeset ol li ul,\n .md-typeset ol li ol {\n margin-bottom: 1.0rem;\n margin-left: 1.0rem;\n padding-top: 1.0rem; }\n\nhtml {\n height: 100%;\n font-size: 62.5%; }\n @media only screen and (min-width: 100em) {\n html {\n font-size: 68.75%; } }\n @media only screen and (min-width: 125em) {\n html {\n font-size: 75%; } }\n\nbody {\n position: relative;\n min-height: 100%; }\n body[data-md-locked] {\n height: 100%;\n overflow: hidden; }\n\nhr {\n display: block;\n height: 0.1rem;\n padding: 0;\n border: 0; }\n\n.md-grid {\n max-width: 120.0rem;\n margin-right: auto;\n margin-left: auto; }\n\n.md-container,\n.md-main {\n overflow: auto; }\n\n.md-main {\n margin-top: 5.6rem; }\n .md-main__inner {\n margin-top: 3rem;\n margin-bottom: 9.2rem;\n overflow: auto; }\n\n.md-toggle {\n display: none; }\n\n.md-overlay {\n position: fixed;\n top: 0;\n width: 0;\n height: 0;\n transition: width 0s 0.25s, height 0s 0.25s, opacity 0.25s;\n background: rgba(0, 0, 0, 0.54);\n opacity: 0;\n z-index: 2; }\n @media only screen and (max-width: 74.9375em) {\n .md-toggle--drawer:checked ~ .md-overlay {\n width: 100%;\n height: 100%;\n transition: width 0s, height 0s, opacity 0.25s;\n opacity: 1; } }\n\n.md-flex {\n display: table; }\n .md-flex__cell {\n display: table-cell;\n position: relative;\n vertical-align: top; }\n .md-flex__cell--shrink {\n width: 0%; }\n .md-flex__cell--stretch {\n display: table;\n width: 100%;\n table-layout: fixed; }\n .md-flex__ellipsis {\n display: table-cell;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden; }\n\n@media only screen and (min-width: 60em) {\n .md-content {\n margin-right: 24.2rem; } }\n\n@media only screen and (min-width: 75em) {\n .md-content {\n margin-left: 24.2rem; } }\n\n.md-content__inner {\n margin: 2.4rem 1.6rem; }\n @media only screen and (min-width: 75em) {\n .md-content__inner {\n margin: 2.4rem; } }\n\n.md-content__copyright {\n display: block; }\n\n.md-header {\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);\n position: fixed;\n top: 0;\n right: 0;\n left: 0;\n height: 5.6rem;\n background: #3f51b5;\n color: white;\n z-index: 1; }\n\n.md-header-nav {\n padding: 0.4rem; }\n .md-header-nav__icon {\n position: relative;\n transition: opacity 0.25s;\n z-index: 1; }\n .md-header-nav__icon:hover {\n opacity: 0.7; }\n .no-js .md-header-nav__icon--search {\n display: none; }\n @media only screen and (min-width: 60em) {\n .md-header-nav__icon--search {\n display: none; } }\n @media only screen and (max-width: 74.9375em) {\n .md-header-nav__icon--home {\n display: none; } }\n @media only screen and (min-width: 75em) {\n .md-header-nav__icon--menu {\n display: none; } }\n .md-header-nav__title {\n padding: 0 2.0rem;\n font-size: 1.8rem;\n line-height: 4.8rem; }\n .md-header-nav__source {\n display: none; }\n @media only screen and (min-width: 60em) {\n .md-header-nav__source {\n display: block;\n width: 23.0rem;\n max-width: 23.0rem;\n padding-right: 1.2rem; } }\n\n.md-footer {\n position: absolute;\n bottom: 0;\n width: 100%; }\n\n.md-footer-pagination {\n background: rgba(0, 0, 0, 0.87);\n color: white; }\n\n.md-footer-nav {\n padding: 0.4rem;\n overflow: auto; }\n .md-footer-nav__link {\n padding-top: 2.8rem;\n padding-bottom: 0.8rem;\n transition: opacity 0.25s; }\n @media only screen and (min-width: 30em) {\n .md-footer-nav__link {\n width: 50%; } }\n .md-footer-nav__link:hover {\n opacity: 0.7; }\n .md-footer-nav__link--prev {\n width: 25%;\n float: left; }\n @media only screen and (max-width: 29.9375em) {\n .md-footer-nav__link--prev .md-footer-nav__title {\n display: none; } }\n .md-footer-nav__link--next {\n width: 75%;\n float: right;\n text-align: right; }\n .md-footer-nav__icon {\n transition: background 0.25s; }\n .md-footer-nav__title {\n position: relative;\n padding: 0 0.4rem;\n font-size: 1.8rem;\n line-height: 4.8rem; }\n .md-footer-nav__direction {\n position: absolute;\n right: 0;\n left: 0;\n margin-top: -2.0rem;\n padding: 0 0.4rem;\n color: rgba(255, 255, 255, 0.7);\n font-size: 1.5rem; }\n\n.md-nav {\n font-size: 1.28rem;\n line-height: 1.3; }\n .md-nav--secondary {\n border-left: 0.4rem solid #3f51b5; }\n .md-nav__title {\n display: block;\n padding: 1.2rem 1.2rem 0;\n font-weight: 700;\n text-overflow: ellipsis;\n overflow: hidden; }\n .md-nav__title::before {\n display: none;\n content: \"arrow_back\"; }\n .md-nav__list {\n margin: 0;\n padding: 0;\n list-style: none; }\n .md-nav__item {\n padding: 0.625em 1.2rem 0; }\n .md-nav__item:last-child {\n padding-bottom: 1.2rem; }\n .md-nav__item .md-nav__item {\n padding-right: 0; }\n .md-nav__item .md-nav__item:last-child {\n padding-bottom: 0; }\n .md-nav__link {\n display: block;\n transition: color 0.125s;\n text-overflow: ellipsis;\n cursor: pointer;\n overflow: hidden; }\n .md-nav__item--nested > .md-nav__link::after {\n content: \"expand_more\"; }\n html .md-nav__link[for=\"toc\"] {\n display: none; }\n html .md-nav__link[for=\"toc\"] ~ .md-nav {\n display: none; }\n html .md-nav__link[for=\"toc\"] + .md-nav__link::after {\n display: none; }\n .md-nav__link[data-md-marked] {\n color: rgba(0, 0, 0, 0.54); }\n .md-nav__link:hover, .md-nav__link:active, .md-nav__link--active {\n color: #536dfe; }\n .md-nav__source {\n display: none; }\n @media only screen and (max-width: 74.9375em) {\n .md-nav--primary,\n .md-nav--primary .md-nav {\n display: flex;\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n flex-direction: column;\n height: 100%;\n z-index: 1; }\n .md-nav--primary {\n background: white; }\n .md-nav--primary .md-nav__toggle ~ .md-nav {\n box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.4);\n left: 0.4rem;\n background: white; }\n html .md-nav--primary .md-nav__title {\n position: relative;\n padding: 0.4rem 1.6rem 0.4rem 5.6rem;\n background: rgba(0, 0, 0, 0.07);\n color: rgba(0, 0, 0, 0.54);\n font-size: 1.8rem;\n font-weight: 400;\n line-height: 4.8rem;\n white-space: nowrap;\n cursor: pointer; }\n html .md-nav--primary .md-nav__title::before {\n display: block;\n position: absolute;\n left: 0.4rem;\n width: 4.0rem;\n height: 4.0rem;\n color: rgba(0, 0, 0, 0.54); }\n html .md-nav--primary .md-nav__title ~ .md-nav__list > .md-nav__item:first-child {\n border-top: 0; }\n .md-nav--primary .md-nav__list {\n flex: 1;\n overflow-y: scroll; }\n .md-nav--primary .md-nav__item {\n padding: 0;\n border-top: 0.1rem solid rgba(0, 0, 0, 0.07); }\n .md-nav--primary .md-nav__item--nested > .md-nav__link {\n padding-right: 4.8rem; }\n .md-nav--primary .md-nav__link {\n position: relative;\n padding: 1.6rem; }\n .md-nav--primary .md-nav__link::after {\n position: absolute;\n top: 50%;\n right: 1.2rem;\n transform: translateY(-50%) rotate(-90deg);\n transition: inherit;\n color: rgba(0, 0, 0, 0.54);\n font-size: 2.4rem; }\n .md-nav--primary .md-nav__link:hover::after {\n color: #536dfe; }\n .md-nav--primary .md-nav--secondary .md-nav {\n position: static; }\n .md-nav--primary .md-nav--secondary .md-nav .md-nav__link {\n padding-left: 2.8rem; }\n .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav__link {\n padding-left: 4.0rem; }\n .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav__link {\n padding-left: 5.2rem; }\n .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav .md-nav__link {\n padding-left: 6.4rem; }\n .md-nav__toggle ~ .md-nav {\n display: none; }\n .csstransforms3d .md-nav__toggle ~ .md-nav {\n display: block;\n transform: translateX(100%);\n transition: transform 0.25s cubic-bezier(0.8, 0, 0.6, 1), opacity 0.125s 0.05s;\n opacity: 0; }\n .md-nav__toggle:checked ~ .md-nav {\n display: block; }\n .csstransforms3d .md-nav__toggle:checked ~ .md-nav {\n transform: translateX(0);\n transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.125s 0.125s;\n opacity: 1; }\n .md-nav .md-nav__title,\n .md-nav .md-nav__item {\n font-size: 1.6rem;\n line-height: 1.4; } }\n @media only screen and (max-width: 59.9375em) {\n .md-nav--secondary {\n border-left: 0; }\n html .md-nav__link[for=\"toc\"] {\n display: block; }\n html .md-nav__link[for=\"toc\"]::after {\n transform: translateY(-50%);\n color: #536dfe;\n content: \"toc\"; }\n html .md-nav__link[for=\"toc\"] + .md-nav__link {\n display: none; }\n html .md-nav__link[for=\"toc\"] ~ .md-nav {\n display: flex; }\n .md-nav__source {\n display: block;\n padding: 0.4rem;\n background: rgba(0, 0, 0, 0.87);\n color: white; } }\n @media only screen and (min-width: 75em) {\n .md-nav.md-nav--transitioning {\n transition: max-height 0.25s cubic-bezier(0.86, 0, 0.07, 1); }\n .md-nav__toggle ~ .md-nav {\n max-height: 0;\n overflow: hidden; }\n .md-nav__toggle:checked ~ .md-nav, .md-nav.md-nav--toggled {\n max-height: 100%; }\n .md-nav__title + .md-nav__list .md-nav__title {\n display: none; }\n .md-nav__item--nested > .md-nav__link::after {\n display: inline-block;\n transform-origin: 0.45em 0.45em;\n transform-style: preserve-3d;\n vertical-align: -0.125em; }\n .js .md-nav__item--nested > .md-nav__link::after {\n transition: transform 0.4s; }\n .md-nav__item--nested .md-nav__toggle:checked ~ .md-nav__link::after {\n transform: rotateX(180deg); } }\n\n.no-js .md-search {\n display: none; }\n\n@media only screen and (min-width: 60em) {\n .md-search {\n padding: 0.4rem;\n padding-right: 3.2rem; } }\n\n.md-search__overlay {\n display: none;\n pointer-events: none; }\n @media only screen and (max-width: 59.9375em) {\n .md-search__overlay {\n display: block;\n position: absolute;\n top: 0.4rem;\n left: 0.4rem;\n width: 4.0rem;\n height: 4.0rem;\n transform-origin: center;\n transition: transform 0.3s 0.1s, opacity 0.2s 0.2s;\n border-radius: 2.0rem;\n background: #EEEEEE;\n opacity: 0;\n overflow: hidden;\n z-index: 1; }\n .md-toggle--search:checked ~ .md-header .md-search__overlay {\n transform: scale(40);\n transition: transform 0.4s, opacity 0.1s;\n opacity: 1; } }\n\n.md-search__inner {\n width: 100%; }\n @media only screen and (max-width: 59.9375em) {\n .md-search__inner {\n position: fixed;\n top: 0;\n left: 100%;\n height: 100%;\n transform: translateX(5%);\n transition: left 0s 0.3s, transform 0.15s 0.15s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s 0.15s;\n opacity: 0;\n z-index: 2; }\n .md-toggle--search:checked ~ .md-header .md-search__inner {\n left: 0;\n transform: translateX(0);\n transition: left 0s 0s, transform 0.15s 0.15s cubic-bezier(0.1, 0.7, 0.1, 1), opacity 0.15s 0.15s;\n opacity: 1; } }\n @media only screen and (min-width: 60em) {\n .md-search__inner {\n position: relative; } }\n\n@media only screen and (min-width: 60em) {\n .md-search__form {\n width: 23.0rem;\n transition: width 0.25s cubic-bezier(0.1, 0.7, 0.1, 1);\n border-radius: 0.2rem; }\n [data-md-locked] .md-search__form {\n width: 66.8rem; } }\n\n.md-search__icon {\n position: absolute;\n top: 0.8rem;\n left: 1.2rem;\n transition: color 0.25s;\n font-size: 2.4rem;\n cursor: pointer; }\n .md-search__icon::before {\n content: \"search\"; }\n @media only screen and (max-width: 59.9375em) {\n .md-search__icon {\n top: 1.6rem;\n left: 1.6rem; }\n .md-search__icon::before {\n content: \"arrow_back\"; } }\n\n.md-search__input {\n padding: 0 1.6rem 0 7.2rem;\n text-overflow: ellipsis; }\n .md-search__input + .md-search__icon, .md-search__input::placeholder {\n color: rgba(0, 0, 0, 0.54); }\n @media only screen and (max-width: 59.9375em) {\n .md-search__input {\n width: 100%;\n height: 5.6rem;\n font-size: 1.8rem; } }\n @media only screen and (min-width: 60em) {\n .md-search__input {\n width: 100%;\n height: 4.0rem;\n padding-left: 4.8rem;\n transition: background-color 0.25s, color 0.25s;\n border-radius: 0.2rem;\n background: rgba(0, 0, 0, 0.26);\n color: white;\n font-size: 1.6rem; }\n .md-search__input + .md-search__icon, .md-search__input::placeholder {\n transition: color 0.25s;\n color: white; }\n .md-search__input:hover {\n background: rgba(255, 255, 255, 0.12); }\n [data-md-locked] .md-search__input {\n border-radius: 0.2rem 0.2rem 0 0;\n background: white;\n color: rgba(0, 0, 0, 0.87);\n text-overflow: none; }\n [data-md-locked] .md-search__input + .md-search__icon, [data-md-locked] .md-search__input::placeholder {\n color: rgba(0, 0, 0, 0.54); } }\n\n.md-sidebar {\n position: relative;\n width: 24.2rem;\n float: left;\n overflow: visible; }\n .md-sidebar[data-md-locked] {\n position: fixed;\n top: 5.6rem; }\n .md-sidebar--primary {\n backface-visibility: hidden; }\n @media only screen and (max-width: 74.9375em) {\n .md-sidebar--primary {\n position: fixed;\n top: 0;\n left: -24.2rem;\n width: 24.2rem;\n height: 100%;\n transform: translateX(0);\n transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s;\n background: white;\n z-index: 2; }\n .no-csstransforms3d .md-sidebar--primary {\n display: none; }\n .md-toggle--drawer:checked ~ .md-container .md-sidebar--primary {\n box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.4);\n transform: translateX(24.2rem); }\n .no-csstransforms3d .md-toggle--drawer:checked ~ .md-container .md-sidebar--primary {\n display: block; }\n .md-sidebar--primary .md-sidebar__scrollwrap {\n overflow: hidden; } }\n .md-sidebar--secondary {\n display: none; }\n @media only screen and (min-width: 60em) {\n .md-sidebar--secondary {\n display: block;\n float: right; }\n .md-sidebar--secondary[data-md-locked] {\n margin-left: 100%;\n transform: translate(-100%, 0); } }\n @media only screen and (min-width: 60em) and (min-width: 75em) {\n .md-sidebar--secondary[data-md-locked] {\n margin-left: 120.0rem; } }\n .md-sidebar__scrollwrap {\n margin: 2.4rem 0.4rem;\n overflow-y: scroll; }\n @media only screen and (max-width: 74.9375em) {\n .md-sidebar--primary .md-sidebar__scrollwrap {\n margin: 0; } }\n .js .md-sidebar__scrollwrap {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0; }\n .md-sidebar__scrollwrap::-webkit-scrollbar {\n width: 0.4rem;\n height: 0.4rem; }\n .md-sidebar__scrollwrap::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.26); }\n .md-sidebar__scrollwrap::-webkit-scrollbar-thumb:hover {\n background-color: #536dfe; }\n @media only screen and (min-width: 75em) {\n .md-sidebar__inner {\n border-right: 0.1rem solid rgba(0, 0, 0, 0.07); } }\n\n.md-source {\n display: block;\n transition: opacity 0.25s;\n font-size: 1.3rem;\n line-height: 1.2;\n white-space: nowrap; }\n .md-source:hover {\n opacity: 0.7; }\n .md-source::before {\n display: inline-block;\n height: 4.8rem;\n content: \"\";\n vertical-align: middle; }\n .md-source--bitbucket::before, .md-source--github::before, .md-source--gitlab::before {\n width: 4.8rem;\n background-repeat: no-repeat;\n background-position: center;\n background-size: 2.4rem 2.4rem; }\n .md-source--bitbucket .md-source__repository, .md-source--github .md-source__repository, .md-source--gitlab .md-source__repository {\n margin-left: -4.4rem;\n padding-left: 4.0rem; }\n .md-source--bitbucket::before {\n background-image: url(\"../images/icons/bitbucket-white.svg\"); }\n .md-source--github::before {\n background-image: url(\"../images/icons/github-white.svg\"); }\n .md-source--gitlab::before {\n background-image: url(\"../images/icons/gitlab-white.svg\"); }\n .md-source__repository {\n display: inline-block;\n max-width: 100%;\n margin-left: 0.8rem;\n font-weight: 700;\n text-overflow: ellipsis;\n overflow: hidden;\n vertical-align: middle; }\n .md-source__facts {\n margin: 0;\n padding: 0;\n font-size: 1.1rem;\n font-weight: 700;\n opacity: 0.75;\n list-style-type: none; }\n .md-source__fact {\n float: left;\n transform: translateY(0%);\n transition: transform 0.25s cubic-bezier(0.1, 0.7, 0.1, 1), opacity 0.25s;\n opacity: 1; }\n .md-source__fact--hidden {\n transform: translateY(100%);\n opacity: 0; }\n .md-source__fact::before {\n margin: 0 0.2rem;\n content: \"\\00B7\"; }\n .md-source__fact:first-child::before {\n display: none; }\n\n.admonition {\n margin: 2.0rem 0;\n padding: 0.8rem 1.2rem;\n border-left: 0.4rem solid #448aff;\n border-radius: 0 0.2rem 0.2rem 0;\n background: rgba(68, 138, 255, 0.05); }\n .admonition-title {\n color: #2979ff;\n font-size: 1.28rem;\n font-weight: 700;\n line-height: 2;\n text-transform: uppercase; }\n html .admonition-title {\n margin-bottom: 0; }\n html .admonition-title + * {\n margin-top: 0; }\n .admonition-title::before {\n margin-right: 0.45em;\n font-size: 2.0rem;\n content: \"edit\";\n vertical-align: -0.25em; }\n .admonition :first-child {\n margin-top: 0; }\n .admonition :last-child {\n margin-bottom: 0; }\n .admonition.tldr, .admonition.summary {\n border-color: #00b0ff;\n background: rgba(0, 176, 255, 0.05); }\n .admonition.tldr .admonition-title, .admonition.summary .admonition-title {\n color: #00b0ff; }\n .admonition.tldr .admonition-title::before, .admonition.summary .admonition-title::before {\n content: \"subject\"; }\n .admonition.idea, .admonition.tip {\n border-color: #00bfa5;\n background: rgba(0, 191, 165, 0.05); }\n .admonition.idea .admonition-title, .admonition.tip .admonition-title {\n color: #00bfa5; }\n .admonition.idea .admonition-title::before, .admonition.tip .admonition-title::before {\n content: \"whatshot\"; }\n .admonition.check, .admonition.done, .admonition.success {\n border-color: #00e676;\n background: rgba(0, 230, 118, 0.05); }\n .admonition.check .admonition-title, .admonition.done .admonition-title, .admonition.success .admonition-title {\n color: #00e676; }\n .admonition.check .admonition-title::before, .admonition.done .admonition-title::before, .admonition.success .admonition-title::before {\n content: \"done\"; }\n .admonition.attention, .admonition.important, .admonition.warning {\n border-color: #ff9100;\n background: rgba(255, 145, 0, 0.05); }\n .admonition.attention .admonition-title, .admonition.important .admonition-title, .admonition.warning .admonition-title {\n color: #ff9100; }\n .admonition.attention .admonition-title::before, .admonition.important .admonition-title::before, .admonition.warning .admonition-title::before {\n content: \"warning\"; }\n .admonition.fail, .admonition.missing, .admonition.failure {\n border-color: #ff5252;\n background: rgba(255, 82, 82, 0.05); }\n .admonition.fail .admonition-title, .admonition.missing .admonition-title, .admonition.failure .admonition-title {\n color: #ff5252; }\n .admonition.fail .admonition-title::before, .admonition.missing .admonition-title::before, .admonition.failure .admonition-title::before {\n content: \"clear\"; }\n .admonition.caution, .admonition.danger {\n border-color: #ff1744;\n background: rgba(255, 23, 68, 0.05); }\n .admonition.caution .admonition-title, .admonition.danger .admonition-title {\n color: #ff1744; }\n .admonition.caution .admonition-title::before, .admonition.danger .admonition-title::before {\n content: \"flash_on\"; }\n .admonition.bug, .admonition.error {\n border-color: #f50057;\n background: rgba(245, 0, 87, 0.05); }\n .admonition.bug .admonition-title, .admonition.error .admonition-title {\n color: #f50057; }\n .admonition.bug .admonition-title::before, .admonition.error .admonition-title::before {\n content: \"bug_report\"; }\n\n.codehilite .err,\n.code .err {\n color: #A61717; }\n\n.codehilite .o,\n.code .o {\n color: inherit; }\n\n.codehilite .ge,\n.code .ge {\n color: #000000; }\n\n.codehilite .gr,\n.code .gr {\n color: #AA0000; }\n\n.codehilite .gh,\n.code .gh {\n color: #999999; }\n\n.codehilite .go,\n.code .go {\n color: #888888; }\n\n.codehilite .gp,\n.code .gp {\n color: #555555; }\n\n.codehilite .gs,\n.code .gs {\n color: inherit; }\n\n.codehilite .gu,\n.code .gu {\n color: #AAAAAA; }\n\n.codehilite .gt,\n.code .gt {\n color: #AA0000; }\n\n.codehilite .k,\n.code .k {\n color: #3B78E7; }\n\n.codehilite .kc,\n.code .kc {\n color: #A71D5D; }\n\n.codehilite .kd,\n.code .kd {\n color: #3B78E7; }\n\n.codehilite .kn,\n.code .kn {\n color: #3B78E7; }\n\n.codehilite .kp,\n.code .kp {\n color: #A71D5D; }\n\n.codehilite .kr,\n.code .kr {\n color: #3E61A2; }\n\n.codehilite .kt,\n.code .kt {\n color: #3E61A2; }\n\n.codehilite .c,\n.code .c {\n color: #999999; }\n\n.codehilite .cm,\n.code .cm {\n color: #999999; }\n\n.codehilite .cp,\n.code .cp {\n color: #666666; }\n\n.codehilite .c1,\n.code .c1 {\n color: #999999; }\n\n.codehilite .cs,\n.code .cs {\n color: #999999; }\n\n.codehilite .na,\n.code .na {\n color: #C2185B; }\n\n.codehilite .nb,\n.code .nb {\n color: #C2185B; }\n\n.codehilite .bp,\n.code .bp {\n color: #3E61A2; }\n\n.codehilite .nc,\n.code .nc {\n color: #C2185B; }\n\n.codehilite .no,\n.code .no {\n color: #3E61A2; }\n\n.codehilite .nd,\n.code .nd {\n color: #666666; }\n\n.codehilite .ni,\n.code .ni {\n color: #666666; }\n\n.codehilite .ne,\n.code .ne {\n color: #C2185B; }\n\n.codehilite .nf,\n.code .nf {\n color: #C2185B; }\n\n.codehilite .nl,\n.code .nl {\n color: #3B5179; }\n\n.codehilite .nn,\n.code .nn {\n color: #EC407A; }\n\n.codehilite .nt,\n.code .nt {\n color: #3B78E7; }\n\n.codehilite .nv,\n.code .nv {\n color: #3E61A2; }\n\n.codehilite .vc,\n.code .vc {\n color: #3E61A2; }\n\n.codehilite .vg,\n.code .vg {\n color: #3E61A2; }\n\n.codehilite .vi,\n.code .vi {\n color: #3E61A2; }\n\n.codehilite .nx,\n.code .nx {\n color: #EC407A; }\n\n.codehilite .ow,\n.code .ow {\n color: inherit; }\n\n.codehilite .m,\n.code .m {\n color: #E74C3C; }\n\n.codehilite .mf,\n.code .mf {\n color: #E74C3C; }\n\n.codehilite .mh,\n.code .mh {\n color: #E74C3C; }\n\n.codehilite .mi,\n.code .mi {\n color: #E74C3C; }\n\n.codehilite .il,\n.code .il {\n color: #E74C3C; }\n\n.codehilite .mo,\n.code .mo {\n color: #E74C3C; }\n\n.codehilite .s,\n.code .s {\n color: #0D904F; }\n\n.codehilite .sb,\n.code .sb {\n color: #0D904F; }\n\n.codehilite .sc,\n.code .sc {\n color: #0D904F; }\n\n.codehilite .sd,\n.code .sd {\n color: #999999; }\n\n.codehilite .s2,\n.code .s2 {\n color: #0D904F; }\n\n.codehilite .se,\n.code .se {\n color: #183691; }\n\n.codehilite .sh,\n.code .sh {\n color: #183691; }\n\n.codehilite .si,\n.code .si {\n color: #183691; }\n\n.codehilite .sx,\n.code .sx {\n color: #183691; }\n\n.codehilite .sr,\n.code .sr {\n color: #009926; }\n\n.codehilite .s1,\n.code .s1 {\n color: #0D904F; }\n\n.codehilite .ss,\n.code .ss {\n color: #0D904F; }\n\n.codehilite .gd,\n.code .gd {\n background-color: #FFDDDD; }\n\n.codehilite .gi,\n.code .gi {\n background-color: #DDFFDD; }\n\n.codehilite .w,\n.code .w {\n color: transparent; }\n\n.footnote {\n color: rgba(0, 0, 0, 0.54);\n font-size: 80%; }\n .footnote ol {\n margin-left: 0; }\n .footnote li:hover .footnote-backref,\n .footnote li:target .footnote-backref {\n transform: translateX(0);\n opacity: 1; }\n .footnote li:hover .footnote-backref:hover,\n .footnote li:target .footnote-backref {\n color: #536dfe; }\n .footnote-ref::before {\n position: absolute;\n margin-top: -8rem;\n padding-top: 8rem;\n content: \"\";\n pointer-events: none; }\n .footnote-backref {\n position: absolute;\n transform: translateX(0.5rem);\n transition: transform 0.25s 0.125s, color 0.25s, opacity 0.125s 0.125s;\n color: rgba(0, 0, 0, 0.26);\n font-size: 2.0rem;\n opacity: 0;\n vertical-align: middle; }\n .footnote-backref::first-letter {\n font-size: 0; }\n .footnote-backref::after {\n content: \"keyboard_return\"; }\n\n.md-typeset .headerlink {\n display: inline-block;\n margin-left: 1.0rem;\n transform: translate(0, 0.5rem);\n transition: transform 0.25s 0.25s, color 0.25s, opacity 0.125s 0.25s;\n color: rgba(0, 0, 0, 0.26);\n opacity: 0; }\n\n.md-typeset [id]:hover .headerlink,\n.md-typeset [id]:target .headerlink,\n.md-typeset [id] .headerlink:focus {\n transform: translate(0, 0);\n opacity: 1; }\n\n.md-typeset [id]:hover .headerlink:hover,\n.md-typeset [id]:target .headerlink,\n.md-typeset [id] .headerlink:focus {\n color: #536dfe; }\n\n.md-typeset h1[id]::before {\n display: block;\n margin-top: -11rem;\n padding-top: 11rem;\n content: \"\"; }\n\n.md-typeset h2[id]::before {\n display: block;\n margin-top: -8.2rem;\n padding-top: 8.2rem;\n content: \"\"; }\n\n.md-typeset h3[id]::before {\n display: block;\n margin-top: -8.4rem;\n padding-top: 8.4rem;\n content: \"\"; }\n\n.md-typeset h4[id]::before {\n display: block;\n margin-top: -8.6rem;\n padding-top: 8.6rem;\n content: \"\"; }\n\n.md-typeset h5[id]::before {\n display: block;\n margin-top: -9rem;\n padding-top: 9rem;\n content: \"\"; }\n\n.md-typeset h6[id]::before {\n display: block;\n margin-top: -9rem;\n padding-top: 9rem;\n content: \"\"; }\n\n.md-search__output {\n overflow-y: auto;\n width: 100%;\n opacity: 0;\n transition: opacity .4s, max-height .4s;\n text-align: left;\n z-index: -1; }\n [data-md-locked] .md-search__output {\n opacity: 1; }\n\n@media only screen and (max-width: 59.9375em) {\n .md-search__output {\n position: absolute;\n top: 5.6rem;\n bottom: 0;\n background: linear-gradient(white 10%, rgba(255, 255, 255, 0)), linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.125) 20%, transparent 60%);\n background-repeat: no-repeat;\n background-color: white;\n background-size: 100% 20px, 100% 10px;\n background-attachment: local, scroll; }\n .md-search-result__link {\n padding: 0 1.6rem; }\n .md-search-result__meta {\n padding-left: 1.6rem;\n border-top: 0.1rem solid rgba(0, 0, 0, 0.07); } }\n\n@media only screen and (min-width: 60em) {\n .md-search__output {\n box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12), 0 3px 5px -1px rgba(0, 0, 0, 0.4);\n background: white;\n border-top: 0.1rem solid rgba(0, 0, 0, 0.07);\n border-radius: 0 0 0.3rem 0.3rem;\n position: absolute;\n max-height: 0vh;\n background: linear-gradient(white 10%, rgba(255, 255, 255, 0)), linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2) 20%, transparent 60%);\n background-repeat: no-repeat;\n background-color: white;\n background-size: 100% 20px, 100% 5px;\n /* Opera doesn't support this in the shorthand */\n background-attachment: local, scroll; }\n [data-md-locked] .md-search__output {\n max-height: 75vh; }\n .md-search__output::-webkit-scrollbar {\n width: 0.4rem;\n height: 0.4rem; }\n .md-search__output::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.26); }\n .md-search__output::-webkit-scrollbar-thumb:hover {\n background-color: #536dfe; } }\n\n.md-search-result__meta {\n color: rgba(0, 0, 0, 0.54);\n padding-left: 4.8rem;\n padding-right: 1.6rem;\n line-height: 4.0rem;\n font-size: 1.28rem; }\n\n.md-search-result__list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n border-top: 0.1rem solid rgba(0, 0, 0, 0.07); }\n\n.md-search-result__link {\n overflow: auto;\n display: block;\n padding-left: 4.8rem;\n padding-right: 1.6rem;\n transition: background 0.25s; }\n .md-search-result__link:hover {\n background: rgba(83, 109, 254, 0.1); }\n\n.md-search-result__title {\n color: rgba(0, 0, 0, 0.87);\n font-size: 1.6rem;\n line-height: 1.4;\n margin-top: 0.5em; }\n\n.md-search-result__description {\n color: rgba(0, 0, 0, 0.54);\n font-size: 1.28rem;\n line-height: 1.4;\n margin: 0.5em 0; }\n\n@media only screen and (max-width: 44.9375em) {\n .md-search__suggest {\n position: relative;\n z-index: 2; } }\n\n.md-search-term {\n position: relative;\n padding: 0 0.8rem 0 4.8rem;\n line-height: 4.0rem;\n font-size: 1.6rem;\n transition: background .25s;\n cursor: pointer; }\n .md-search-term::before {\n position: absolute;\n content: \"access_time\";\n font-size: 2.4rem;\n line-height: 4.0rem;\n left: 1.2rem;\n color: rgba(0, 0, 0, 0.26); }\n .md-search-term:hover {\n background: #eceef8; }\n\n.checklist li {\n position: relative;\n list-style-type: none; }\n .checklist li::before {\n position: absolute;\n appearance: none;\n color: blue;\n content: \"check_box\";\n font-size: 2.4rem; }\n\n.checklist input[type=\"checkbox\"]:checked {\n width: 20px; }\n\nins.critic, del.critic, mark {\n margin: 0 0.4rem;\n padding: 0.1rem 0;\n word-break: break-word;\n box-decoration-break: clone;\n border-radius: 0.2rem; }\n\nins.critic {\n background: #DDFFDD;\n box-shadow: 0.4rem 0 0 #DDFFDD, -0.4rem 0 0 #DDFFDD;\n text-decoration: none; }\n\ndel.critic {\n background: #FFDDDD;\n box-shadow: 0.4rem 0 0 #FFDDDD, -0.4rem 0 0 #FFDDDD; }\n\nmark {\n background: #FFFF00;\n box-shadow: 0.4rem 0 0 #FFFF00, -0.4rem 0 0 #FFFF00;\n overflow: auto; }\n\n.critic.comment {\n margin: 0 0.4rem;\n padding: 0.1rem 0;\n border-radius: 0.2rem;\n background: #F0F0F0;\n color: #37474F;\n box-shadow: 0.4rem 0 0 #F0F0F0, -0.4rem 0 0 #F0F0F0;\n box-decoration-break: clone; }\n .critic.comment::before {\n color: rgba(0, 0, 0, 0.26);\n content: \"chat\";\n font-size: 1.6rem;\n padding-right: 0.2rem;\n vertical-align: -0.2rem; }\n\n.md-button {\n float: right;\n margin-top: 9px;\n font-size: 13px;\n padding-left: 2.6rem;\n font-weight: 700;\n text-transform: uppercase; }\n\n.task-list-item {\n list-style-type: none; }\n\n.task-list-item input {\n margin: 0 4px 0.25em -20px;\n vertical-align: middle; }\n\n.task-list-item {\n position: relative; }\n\n.task-list-item input[type=\"checkbox\"] {\n opacity: 0; }\n\n.task-list-item input[type=\"checkbox\"] + label {\n display: block;\n position: absolute;\n top: 50%;\n left: -24px;\n width: 16px;\n margin-top: -8px;\n height: 16px;\n border-radius: 2px;\n background: #CCC; }\n\n.task-list-item input[type=\"checkbox\"]:checked + label::before {\n display: block;\n margin-top: -4px;\n margin-left: 2px;\n font-size: 1.2em;\n line-height: 1;\n border-radius: 2px;\n content: \"✔\";\n color: #1EBB52; }\n\n.codehilite .hll {\n background: #FFFF00;\n display: block;\n margin: 0 -16px;\n padding: 0 16px; }\n\n.md-typeset sup {\n padding: 0 0.125em;\n border-radius: 0.2em; }\n .md-typeset sup[id]:target {\n background: orange; }\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Enfore correct box model - the prefixed versions are necessary for older\n// browsers, i.e. Chrome < 10, Firefox < 29, Safari < 6 and Android < 4\nhtml {\n box-sizing: border-box;\n -moz-box-sizing: border-box;\n -webkit-box-sizing: border-box;\n}\n\n// All elements shall inherit the document default\n*,\n*::before,\n*::after {\n box-sizing: inherit;\n -moz-box-sizing: inherit;\n -webkit-box-sizing: inherit;\n}\n\n// Prevent adjustments of font size after orientation changes in IE and iOS\nhtml {\n text-size-adjust: none;\n}\n\n// Remove margin in all browsers\nbody {\n margin: 0;\n}\n\n// Add correct display property in IE < 9\narticle,\naside,\nfigcaption,\nfigure,\nfooter,\nheader,\nmain,\nnav,\nsection {\n display: block;\n}\n\n// Reset horizontal rules in FF\nhr {\n overflow: visible;\n box-sizing: content-box;\n}\n\n// Reset link styles\na {\n color: inherit;\n text-decoration: none;\n\n // Remove outline on focused or active links\n &:active,\n &:hover {\n outline-width: 0;\n }\n}\n\n// Remove gaps in links underline in iOS >= 8 and Safari >= 8\na {\n -webkit-text-decoration-skip: objects;\n}\n\n// Reset tap outlines on iOS and Android\na,\nbutton,\nlabel,\ninput {\n -webkit-tap-highlight-color: transparent;\n}\n\n// Correct font-size in all browsers\nsmall {\n font-size: 80%;\n}\n\n// Prevent subscript and superscript from affecting line-height\nsub,\nsup {\n position: relative;\n font-size: 80%;\n line-height: 0;\n vertical-align: baseline;\n}\n\n// Correct subscript offset\nsub {\n bottom: -0.25em;\n}\n\n// Correct superscript offset\nsup {\n top: -0.5em;\n}\n\nimg {\n border-style: none;\n}\n\n// Reset table styles\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\n// Reset table cell styles\ntd,\nth {\n font-weight: normal;\n text-align: left;\n vertical-align: top;\n}\n\n// Reset (native) button styles\nbutton {\n padding: 0;\n border: 0;\n outline: 0;\n background: transparent;\n font-size: inherit;\n}\n\n// Reset (native) input styles\ninput {\n border: 0;\n outline: 0;\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Icon placeholders\n%md-icon {\n font-family: \"Material Icons\";\n font-style: normal;\n font-variant: normal;\n font-weight: normal;\n line-height: 1;\n text-transform: none;\n white-space: nowrap;\n speak: none;\n word-wrap: normal;\n direction: ltr;\n\n // Enable font-smoothing in Webkit and FF\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n\n // Icon rendered as button\n &__button {\n display: inline-block;\n margin: $md-icon-margin;\n padding: $md-icon-padding;\n font-size: $md-icon-size;\n cursor: pointer;\n }\n}\n\n// Representational classes\n.md-icon {\n @extend %md-icon;\n\n // Build representational classes\n @each $ligature, $name in (\n \"arrow_back\": \"back\",\n \"arrow_forward\": \"forward\"\n ) {\n &--#{$name}::before {\n content: $ligature;\n }\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Variables: typography\n// ----------------------------------------------------------------------------\n\n// Modular typographic scale\n$ms-base: 1.6rem;\n$ms-ratio: $major-third;\n\n// ----------------------------------------------------------------------------\n// Variables: breakpoints\n// ----------------------------------------------------------------------------\n\n// Device-specific breakpoints\n$break-devices: (\n mobile: (\n portrait: px2em(220px) px2em(479px),\n landscape: px2em(480px) px2em(719px)\n ),\n tablet: (\n portrait: px2em(720px) px2em(959px),\n landscape: px2em(960px) px2em(1199px)\n ),\n screen: (\n small: px2em(1200px) px2em(1599px),\n medium: px2em(1600px) px2em(1999px),\n large: px2em(2000px)\n )\n);\n\n// ----------------------------------------------------------------------------\n// Variables: base colors\n// ----------------------------------------------------------------------------\n\n// Primary and accent colors\n$md-color-primary: $clr-indigo-500;\n$md-color-accent: $clr-indigo-a200;\n\n// Shades of black\n$md-color-black: hsla(0, 0%, 0%, 0.87);\n$md-color-black--light: hsla(0, 0%, 0%, 0.54);\n$md-color-black--lighter: hsla(0, 0%, 0%, 0.26);\n$md-color-black--lightest: hsla(0, 0%, 0%, 0.07);\n\n// Shades of white\n$md-color-white: hsla(0, 0%, 100%, 1.00);\n$md-color-white--light: hsla(0, 0%, 100%, 0.70);\n$md-color-white--lighter: hsla(0, 0%, 100%, 0.30);\n$md-color-white--lightest: hsla(0, 0%, 100%, 0.12);\n\n// ----------------------------------------------------------------------------\n// Variables: sizing and spacing\n// ----------------------------------------------------------------------------\n\n// Icons\n$md-icon-size: $ms-base * 1.5;\n$md-icon-padding: $ms-base * 0.5;\n$md-icon-margin: $ms-base * 0.25;\n\n// Code blocks\n$md-code-background: hsla(0, 0%, 0%, 0.035);\n$md-code-color: #37474F;\n\n// Keystrokes\n$md-keyboard-background: #FCFCFC;\n$md-keyboard-color: #555555;\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules: font definitions\n// ----------------------------------------------------------------------------\n\n// Default fonts\nbody,\ninput {\n color: $md-color-black;\n font-family: \"Roboto\", Helvetica, Arial, sans-serif;\n font-weight: 400;\n font-feature-settings: \"kern\", \"onum\", \"liga\";\n\n // Enable font-smoothing in Webkit and FF\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n\n // Use system fonts, if browser doesn't support webfonts\n .no-fontface & {\n font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n }\n}\n\n// Proportionally spaced fonts\npre,\ncode,\nkbd {\n color: $md-color-black;\n font-family: \"Roboto Mono\", \"Courier New\", Courier, monospace;\n font-weight: 400;\n font-feature-settings: \"kern\", \"onum\", \"liga\";\n\n // Use system fonts, if browser doesn't support webfonts\n .no-fontface & {\n font-family: \"Courier New\", Courier, monospace;\n }\n}\n\n// ----------------------------------------------------------------------------\n// Rules: typesetted content\n// ----------------------------------------------------------------------------\n\n// Content that is typeset\n.md-typeset {\n font-size: ms(0);\n line-height: 1.6;\n\n // Default spacing\n p,\n ul,\n ol,\n blockquote {\n margin: 1.0em 0;\n }\n\n // 1st level headline\n h1 {\n margin: 0 0 4.0rem;\n color: $md-color-black--light;\n font-size: ms(3);\n font-weight: 300;\n letter-spacing: -0.01em;\n line-height: 1.3;\n }\n\n // 2nd level headline\n h2 {\n margin: 4.0rem 0 1.6rem;\n font-size: ms(2);\n font-weight: 300;\n letter-spacing: -0.01em;\n line-height: 1.4;\n }\n\n // 3rd level headline\n h3 {\n margin: 3.2rem 0 1.6rem;\n font-size: ms(1);\n font-weight: 400;\n letter-spacing: -0.01em;\n line-height: 1.5;\n }\n\n // 3rd level headline following an 2nd level headline\n h2 + h3 {\n margin-top: 1.6rem;\n }\n\n // 4th level headline\n h4 {\n margin: 1.6rem 0;\n font-size: ms(0);\n font-weight: 700;\n letter-spacing: -0.01em;\n }\n\n // 5th and 6th level headline\n h5,\n h6 {\n margin: 1.6rem 0;\n color: $md-color-black--light;\n font-size: ms(-1);\n font-weight: 700;\n letter-spacing: -0.01em;\n }\n\n // Overrides for 5th level headline\n h5 {\n text-transform: uppercase;\n }\n\n // Horizontal separators\n hr {\n margin: 2.4rem 0;\n border-bottom: 0.1rem dotted $md-color-black--lighter;\n }\n\n // Links\n a {\n color: $md-color-primary;\n\n // Also enable transition on pseudo elements\n &,\n &::before {\n transition: color 0.125s;\n }\n\n // Active links\n &:hover,\n &:active {\n color: $md-color-accent;\n }\n }\n\n // Inline code blocks\n code {\n margin: 0 0.4rem;\n padding: 0.1rem 0;\n border-radius: 0.2rem;\n background: $md-code-background;\n color: $md-code-color;\n font-size: 85%;\n box-shadow:\n 0.4rem 0 0 $md-code-background,\n -0.4rem 0 0 $md-code-background;\n word-break: break-word;\n box-decoration-break: clone;\n }\n\n // Disable containing block inside headlines\n h1 code,\n h2 code,\n h3 code,\n h4 code,\n h5 code,\n h6 code {\n margin: 0;\n background: transparent;\n box-shadow: none;\n }\n\n // Formatted code blocks\n pre {\n margin: 1.0em 0;\n padding: 1.0rem 1.2rem;\n border-radius: 0.2rem;\n background: $md-code-background;\n color: $md-code-color;\n font-size: 85%;\n line-height: 1.4;\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n\n // Reset, if pre is inside code\n > code {\n font-size: inherit;\n }\n }\n\n // Full-width container\n > div > pre,\n > pre > code {\n\n // [mobile -]: Stretch to whole width\n @include break-to-device(mobile) {\n margin: 1.0em -1.6rem;\n padding: 1.0rem 1.6rem;\n border-radius: 0;\n }\n\n // Override native scrollbar styles\n &::-webkit-scrollbar {\n width: 0.4rem;\n height: 0.4rem;\n\n // Style scrollbar thumb\n &-thumb {\n background: $md-color-black--lighter;\n }\n }\n }\n\n // Keystrokes\n kbd {\n display: inline-block;\n padding: 0.4rem 0.5rem 0.5rem;\n border: 0.1rem solid darken($md-keyboard-background, 20%);\n border-radius: 0.2rem;\n border-bottom-color: darken($md-keyboard-background, 25%);\n background-color: $md-keyboard-background;\n color: $md-keyboard-color;\n font-size: 85%;\n line-height: 1.0rem;\n box-shadow: 0 -0.1rem 0\n darken($md-keyboard-background, 30%) inset;\n vertical-align: 0.1rem;\n word-break: break-word;\n }\n\n // Smaller text\n small {\n opacity: 0.75;\n }\n\n // Superscript and subscript\n sup,\n sub {\n margin-left: 0.1rem;\n }\n\n // Blockquotes, possibly nested\n blockquote {\n padding-left: 1.2rem;\n border-left: 0.4rem solid $md-color-black--lighter;\n color: $md-color-black--light;\n }\n\n // Unordered lists\n ul {\n list-style-type: disc;\n }\n\n // Ordered lists\n ol ol {\n list-style-type: lower-alpha;\n\n // Triply nested ordered list\n ol {\n list-style-type: lower-roman;\n }\n }\n\n // Unordered and ordered lists\n ul,\n ol {\n margin-left: 1.0rem;\n padding: 0;\n\n // List elements\n li {\n margin-bottom: 0.5em;\n margin-left: 2.0rem;\n\n // Decrease vertical spacing\n p,\n blockquote {\n margin: 0.5em 0;\n }\n\n // Remove margin on last element\n &:last-child {\n margin-bottom: 0;\n }\n\n // Nested lists\n ul,\n ol {\n margin-bottom: 1.0rem;\n margin-left: 1.0rem;\n padding-top: 1.0rem;\n }\n }\n }\n}\n","@function ms-calc($Value, $Base: $ms-base, $Ratio: $ms-ratio) {\n \n // If pow exists use it.\n // It supports non-interger values!\n @if $MS-pow-exists {\n\n // The formula for figuring out modular scales is:\n // (r^v)*b\n @return pow($Ratio, $Value) * $Base;\n }\n\n // If not, use ms-pow().\n // Not as fast or capable of non-integer exponents.\n @else {\n @return ms-pow($Ratio, $Value) * $Base;\n }\n}","// ==========================================================================\n//\n// Name: UI Color Palette\n// Description: The color palette of material design.\n// Version: 2.3.1\n//\n// Author: Denis Malinochkin\n// Git: https://github.com/mrmlnc/material-color\n//\n// twitter: @mrmlnc\n//\n// ==========================================================================\n\n\n//\n// List of base colors\n//\n\n// $clr-red\n// $clr-pink\n// $clr-purple\n// $clr-deep-purple\n// $clr-indigo\n// $clr-blue\n// $clr-light-blue\n// $clr-cyan\n// $clr-teal\n// $clr-green\n// $clr-light-green\n// $clr-lime\n// $clr-yellow\n// $clr-amber\n// $clr-orange\n// $clr-deep-orange\n// $clr-brown\n// $clr-grey\n// $clr-blue-grey\n// $clr-black\n// $clr-white\n\n\n//\n// Red\n//\n\n$clr-red-list: (\n \"base\": #f44336,\n \"50\": #ffebee,\n \"100\": #ffcdd2,\n \"200\": #ef9a9a,\n \"300\": #e57373,\n \"400\": #ef5350,\n \"500\": #f44336,\n \"600\": #e53935,\n \"700\": #d32f2f,\n \"800\": #c62828,\n \"900\": #b71c1c,\n \"a100\": #ff8a80,\n \"a200\": #ff5252,\n \"a400\": #ff1744,\n \"a700\": #d50000\n);\n\n$clr-red: map-get($clr-red-list, \"base\");\n\n$clr-red-50: map-get($clr-red-list, \"50\");\n$clr-red-100: map-get($clr-red-list, \"100\");\n$clr-red-200: map-get($clr-red-list, \"200\");\n$clr-red-300: map-get($clr-red-list, \"300\");\n$clr-red-400: map-get($clr-red-list, \"400\");\n$clr-red-500: map-get($clr-red-list, \"500\");\n$clr-red-600: map-get($clr-red-list, \"600\");\n$clr-red-700: map-get($clr-red-list, \"700\");\n$clr-red-800: map-get($clr-red-list, \"800\");\n$clr-red-900: map-get($clr-red-list, \"900\");\n$clr-red-a100: map-get($clr-red-list, \"a100\");\n$clr-red-a200: map-get($clr-red-list, \"a200\");\n$clr-red-a400: map-get($clr-red-list, \"a400\");\n$clr-red-a700: map-get($clr-red-list, \"a700\");\n\n\n//\n// Pink\n//\n\n$clr-pink-list: (\n \"base\": #e91e63,\n \"50\": #fce4ec,\n \"100\": #f8bbd0,\n \"200\": #f48fb1,\n \"300\": #f06292,\n \"400\": #ec407a,\n \"500\": #e91e63,\n \"600\": #d81b60,\n \"700\": #c2185b,\n \"800\": #ad1457,\n \"900\": #880e4f,\n \"a100\": #ff80ab,\n \"a200\": #ff4081,\n \"a400\": #f50057,\n \"a700\": #c51162\n);\n\n$clr-pink: map-get($clr-pink-list, \"base\");\n\n$clr-pink-50: map-get($clr-pink-list, \"50\");\n$clr-pink-100: map-get($clr-pink-list, \"100\");\n$clr-pink-200: map-get($clr-pink-list, \"200\");\n$clr-pink-300: map-get($clr-pink-list, \"300\");\n$clr-pink-400: map-get($clr-pink-list, \"400\");\n$clr-pink-500: map-get($clr-pink-list, \"500\");\n$clr-pink-600: map-get($clr-pink-list, \"600\");\n$clr-pink-700: map-get($clr-pink-list, \"700\");\n$clr-pink-800: map-get($clr-pink-list, \"800\");\n$clr-pink-900: map-get($clr-pink-list, \"900\");\n$clr-pink-a100: map-get($clr-pink-list, \"a100\");\n$clr-pink-a200: map-get($clr-pink-list, \"a200\");\n$clr-pink-a400: map-get($clr-pink-list, \"a400\");\n$clr-pink-a700: map-get($clr-pink-list, \"a700\");\n\n\n//\n// Purple\n//\n\n$clr-purple-list: (\n \"base\": #9c27b0,\n \"50\": #f3e5f5,\n \"100\": #e1bee7,\n \"200\": #ce93d8,\n \"300\": #ba68c8,\n \"400\": #ab47bc,\n \"500\": #9c27b0,\n \"600\": #8e24aa,\n \"700\": #7b1fa2,\n \"800\": #6a1b9a,\n \"900\": #4a148c,\n \"a100\": #ea80fc,\n \"a200\": #e040fb,\n \"a400\": #d500f9,\n \"a700\": #aa00ff\n);\n\n$clr-purple: map-get($clr-purple-list, \"base\");\n\n$clr-purple-50: map-get($clr-purple-list, \"50\");\n$clr-purple-100: map-get($clr-purple-list, \"100\");\n$clr-purple-200: map-get($clr-purple-list, \"200\");\n$clr-purple-300: map-get($clr-purple-list, \"300\");\n$clr-purple-400: map-get($clr-purple-list, \"400\");\n$clr-purple-500: map-get($clr-purple-list, \"500\");\n$clr-purple-600: map-get($clr-purple-list, \"600\");\n$clr-purple-700: map-get($clr-purple-list, \"700\");\n$clr-purple-800: map-get($clr-purple-list, \"800\");\n$clr-purple-900: map-get($clr-purple-list, \"900\");\n$clr-purple-a100: map-get($clr-purple-list, \"a100\");\n$clr-purple-a200: map-get($clr-purple-list, \"a200\");\n$clr-purple-a400: map-get($clr-purple-list, \"a400\");\n$clr-purple-a700: map-get($clr-purple-list, \"a700\");\n\n\n//\n// Deep purple\n//\n\n$clr-deep-purple-list: (\n \"base\": #673ab7,\n \"50\": #ede7f6,\n \"100\": #d1c4e9,\n \"200\": #b39ddb,\n \"300\": #9575cd,\n \"400\": #7e57c2,\n \"500\": #673ab7,\n \"600\": #5e35b1,\n \"700\": #512da8,\n \"800\": #4527a0,\n \"900\": #311b92,\n \"a100\": #b388ff,\n \"a200\": #7c4dff,\n \"a400\": #651fff,\n \"a700\": #6200ea\n);\n\n$clr-deep-purple: map-get($clr-deep-purple-list, \"base\");\n\n$clr-deep-purple-50: map-get($clr-deep-purple-list, \"50\");\n$clr-deep-purple-100: map-get($clr-deep-purple-list, \"100\");\n$clr-deep-purple-200: map-get($clr-deep-purple-list, \"200\");\n$clr-deep-purple-300: map-get($clr-deep-purple-list, \"300\");\n$clr-deep-purple-400: map-get($clr-deep-purple-list, \"400\");\n$clr-deep-purple-500: map-get($clr-deep-purple-list, \"500\");\n$clr-deep-purple-600: map-get($clr-deep-purple-list, \"600\");\n$clr-deep-purple-700: map-get($clr-deep-purple-list, \"700\");\n$clr-deep-purple-800: map-get($clr-deep-purple-list, \"800\");\n$clr-deep-purple-900: map-get($clr-deep-purple-list, \"900\");\n$clr-deep-purple-a100: map-get($clr-deep-purple-list, \"a100\");\n$clr-deep-purple-a200: map-get($clr-deep-purple-list, \"a200\");\n$clr-deep-purple-a400: map-get($clr-deep-purple-list, \"a400\");\n$clr-deep-purple-a700: map-get($clr-deep-purple-list, \"a700\");\n\n\n//\n// Indigo\n//\n\n$clr-indigo-list: (\n \"base\": #3f51b5,\n \"50\": #e8eaf6,\n \"100\": #c5cae9,\n \"200\": #9fa8da,\n \"300\": #7986cb,\n \"400\": #5c6bc0,\n \"500\": #3f51b5,\n \"600\": #3949ab,\n \"700\": #303f9f,\n \"800\": #283593,\n \"900\": #1a237e,\n \"a100\": #8c9eff,\n \"a200\": #536dfe,\n \"a400\": #3d5afe,\n \"a700\": #304ffe\n);\n\n$clr-indigo: map-get($clr-indigo-list, \"base\");\n\n$clr-indigo-50: map-get($clr-indigo-list, \"50\");\n$clr-indigo-100: map-get($clr-indigo-list, \"100\");\n$clr-indigo-200: map-get($clr-indigo-list, \"200\");\n$clr-indigo-300: map-get($clr-indigo-list, \"300\");\n$clr-indigo-400: map-get($clr-indigo-list, \"400\");\n$clr-indigo-500: map-get($clr-indigo-list, \"500\");\n$clr-indigo-600: map-get($clr-indigo-list, \"600\");\n$clr-indigo-700: map-get($clr-indigo-list, \"700\");\n$clr-indigo-800: map-get($clr-indigo-list, \"800\");\n$clr-indigo-900: map-get($clr-indigo-list, \"900\");\n$clr-indigo-a100: map-get($clr-indigo-list, \"a100\");\n$clr-indigo-a200: map-get($clr-indigo-list, \"a200\");\n$clr-indigo-a400: map-get($clr-indigo-list, \"a400\");\n$clr-indigo-a700: map-get($clr-indigo-list, \"a700\");\n\n\n//\n// Blue\n//\n\n$clr-blue-list: (\n \"base\": #2196f3,\n \"50\": #e3f2fd,\n \"100\": #bbdefb,\n \"200\": #90caf9,\n \"300\": #64b5f6,\n \"400\": #42a5f5,\n \"500\": #2196f3,\n \"600\": #1e88e5,\n \"700\": #1976d2,\n \"800\": #1565c0,\n \"900\": #0d47a1,\n \"a100\": #82b1ff,\n \"a200\": #448aff,\n \"a400\": #2979ff,\n \"a700\": #2962ff\n);\n\n$clr-blue: map-get($clr-blue-list, \"base\");\n\n$clr-blue-50: map-get($clr-blue-list, \"50\");\n$clr-blue-100: map-get($clr-blue-list, \"100\");\n$clr-blue-200: map-get($clr-blue-list, \"200\");\n$clr-blue-300: map-get($clr-blue-list, \"300\");\n$clr-blue-400: map-get($clr-blue-list, \"400\");\n$clr-blue-500: map-get($clr-blue-list, \"500\");\n$clr-blue-600: map-get($clr-blue-list, \"600\");\n$clr-blue-700: map-get($clr-blue-list, \"700\");\n$clr-blue-800: map-get($clr-blue-list, \"800\");\n$clr-blue-900: map-get($clr-blue-list, \"900\");\n$clr-blue-a100: map-get($clr-blue-list, \"a100\");\n$clr-blue-a200: map-get($clr-blue-list, \"a200\");\n$clr-blue-a400: map-get($clr-blue-list, \"a400\");\n$clr-blue-a700: map-get($clr-blue-list, \"a700\");\n\n\n//\n// Light Blue\n//\n\n$clr-light-blue-list: (\n \"base\": #03a9f4,\n \"50\": #e1f5fe,\n \"100\": #b3e5fc,\n \"200\": #81d4fa,\n \"300\": #4fc3f7,\n \"400\": #29b6f6,\n \"500\": #03a9f4,\n \"600\": #039be5,\n \"700\": #0288d1,\n \"800\": #0277bd,\n \"900\": #01579b,\n \"a100\": #80d8ff,\n \"a200\": #40c4ff,\n \"a400\": #00b0ff,\n \"a700\": #0091ea\n);\n\n$clr-light-blue: map-get($clr-light-blue-list, \"base\");\n\n$clr-light-blue-50: map-get($clr-light-blue-list, \"50\");\n$clr-light-blue-100: map-get($clr-light-blue-list, \"100\");\n$clr-light-blue-200: map-get($clr-light-blue-list, \"200\");\n$clr-light-blue-300: map-get($clr-light-blue-list, \"300\");\n$clr-light-blue-400: map-get($clr-light-blue-list, \"400\");\n$clr-light-blue-500: map-get($clr-light-blue-list, \"500\");\n$clr-light-blue-600: map-get($clr-light-blue-list, \"600\");\n$clr-light-blue-700: map-get($clr-light-blue-list, \"700\");\n$clr-light-blue-800: map-get($clr-light-blue-list, \"800\");\n$clr-light-blue-900: map-get($clr-light-blue-list, \"900\");\n$clr-light-blue-a100: map-get($clr-light-blue-list, \"a100\");\n$clr-light-blue-a200: map-get($clr-light-blue-list, \"a200\");\n$clr-light-blue-a400: map-get($clr-light-blue-list, \"a400\");\n$clr-light-blue-a700: map-get($clr-light-blue-list, \"a700\");\n\n\n//\n// Cyan\n//\n\n$clr-cyan-list: (\n \"base\": #00bcd4,\n \"50\": #e0f7fa,\n \"100\": #b2ebf2,\n \"200\": #80deea,\n \"300\": #4dd0e1,\n \"400\": #26c6da,\n \"500\": #00bcd4,\n \"600\": #00acc1,\n \"700\": #0097a7,\n \"800\": #00838f,\n \"900\": #006064,\n \"a100\": #84ffff,\n \"a200\": #18ffff,\n \"a400\": #00e5ff,\n \"a700\": #00b8d4\n);\n\n$clr-cyan: map-get($clr-cyan-list, \"base\");\n\n$clr-cyan-50: map-get($clr-cyan-list, \"50\");\n$clr-cyan-100: map-get($clr-cyan-list, \"100\");\n$clr-cyan-200: map-get($clr-cyan-list, \"200\");\n$clr-cyan-300: map-get($clr-cyan-list, \"300\");\n$clr-cyan-400: map-get($clr-cyan-list, \"400\");\n$clr-cyan-500: map-get($clr-cyan-list, \"500\");\n$clr-cyan-600: map-get($clr-cyan-list, \"600\");\n$clr-cyan-700: map-get($clr-cyan-list, \"700\");\n$clr-cyan-800: map-get($clr-cyan-list, \"800\");\n$clr-cyan-900: map-get($clr-cyan-list, \"900\");\n$clr-cyan-a100: map-get($clr-cyan-list, \"a100\");\n$clr-cyan-a200: map-get($clr-cyan-list, \"a200\");\n$clr-cyan-a400: map-get($clr-cyan-list, \"a400\");\n$clr-cyan-a700: map-get($clr-cyan-list, \"a700\");\n\n\n//\n// Teal\n//\n\n$clr-teal-list: (\n \"base\": #009688,\n \"50\": #e0f2f1,\n \"100\": #b2dfdb,\n \"200\": #80cbc4,\n \"300\": #4db6ac,\n \"400\": #26a69a,\n \"500\": #009688,\n \"600\": #00897b,\n \"700\": #00796b,\n \"800\": #00695c,\n \"900\": #004d40,\n \"a100\": #a7ffeb,\n \"a200\": #64ffda,\n \"a400\": #1de9b6,\n \"a700\": #00bfa5\n);\n\n$clr-teal: map-get($clr-teal-list, \"base\");\n\n$clr-teal-50: map-get($clr-teal-list, \"50\");\n$clr-teal-100: map-get($clr-teal-list, \"100\");\n$clr-teal-200: map-get($clr-teal-list, \"200\");\n$clr-teal-300: map-get($clr-teal-list, \"300\");\n$clr-teal-400: map-get($clr-teal-list, \"400\");\n$clr-teal-500: map-get($clr-teal-list, \"500\");\n$clr-teal-600: map-get($clr-teal-list, \"600\");\n$clr-teal-700: map-get($clr-teal-list, \"700\");\n$clr-teal-800: map-get($clr-teal-list, \"800\");\n$clr-teal-900: map-get($clr-teal-list, \"900\");\n$clr-teal-a100: map-get($clr-teal-list, \"a100\");\n$clr-teal-a200: map-get($clr-teal-list, \"a200\");\n$clr-teal-a400: map-get($clr-teal-list, \"a400\");\n$clr-teal-a700: map-get($clr-teal-list, \"a700\");\n\n\n//\n// Green\n//\n\n$clr-green-list: (\n \"base\": #4caf50,\n \"50\": #e8f5e9,\n \"100\": #c8e6c9,\n \"200\": #a5d6a7,\n \"300\": #81c784,\n \"400\": #66bb6a,\n \"500\": #4caf50,\n \"600\": #43a047,\n \"700\": #388e3c,\n \"800\": #2e7d32,\n \"900\": #1b5e20,\n \"a100\": #b9f6ca,\n \"a200\": #69f0ae,\n \"a400\": #00e676,\n \"a700\": #00c853\n);\n\n$clr-green: map-get($clr-green-list, \"base\");\n\n$clr-green-50: map-get($clr-green-list, \"50\");\n$clr-green-100: map-get($clr-green-list, \"100\");\n$clr-green-200: map-get($clr-green-list, \"200\");\n$clr-green-300: map-get($clr-green-list, \"300\");\n$clr-green-400: map-get($clr-green-list, \"400\");\n$clr-green-500: map-get($clr-green-list, \"500\");\n$clr-green-600: map-get($clr-green-list, \"600\");\n$clr-green-700: map-get($clr-green-list, \"700\");\n$clr-green-800: map-get($clr-green-list, \"800\");\n$clr-green-900: map-get($clr-green-list, \"900\");\n$clr-green-a100: map-get($clr-green-list, \"a100\");\n$clr-green-a200: map-get($clr-green-list, \"a200\");\n$clr-green-a400: map-get($clr-green-list, \"a400\");\n$clr-green-a700: map-get($clr-green-list, \"a700\");\n\n\n//\n// Light green\n//\n\n$clr-light-green-list: (\n \"base\": #8bc34a,\n \"50\": #f1f8e9,\n \"100\": #dcedc8,\n \"200\": #c5e1a5,\n \"300\": #aed581,\n \"400\": #9ccc65,\n \"500\": #8bc34a,\n \"600\": #7cb342,\n \"700\": #689f38,\n \"800\": #558b2f,\n \"900\": #33691e,\n \"a100\": #ccff90,\n \"a200\": #b2ff59,\n \"a400\": #76ff03,\n \"a700\": #64dd17\n);\n\n$clr-light-green: map-get($clr-light-green-list, \"base\");\n\n$clr-light-green-50: map-get($clr-light-green-list, \"50\");\n$clr-light-green-100: map-get($clr-light-green-list, \"100\");\n$clr-light-green-200: map-get($clr-light-green-list, \"200\");\n$clr-light-green-300: map-get($clr-light-green-list, \"300\");\n$clr-light-green-400: map-get($clr-light-green-list, \"400\");\n$clr-light-green-500: map-get($clr-light-green-list, \"500\");\n$clr-light-green-600: map-get($clr-light-green-list, \"600\");\n$clr-light-green-700: map-get($clr-light-green-list, \"700\");\n$clr-light-green-800: map-get($clr-light-green-list, \"800\");\n$clr-light-green-900: map-get($clr-light-green-list, \"900\");\n$clr-light-green-a100: map-get($clr-light-green-list, \"a100\");\n$clr-light-green-a200: map-get($clr-light-green-list, \"a200\");\n$clr-light-green-a400: map-get($clr-light-green-list, \"a400\");\n$clr-light-green-a700: map-get($clr-light-green-list, \"a700\");\n\n\n//\n// Lime\n//\n\n$clr-lime-list: (\n \"base\": #cddc39,\n \"50\": #f9fbe7,\n \"100\": #f0f4c3,\n \"200\": #e6ee9c,\n \"300\": #dce775,\n \"400\": #d4e157,\n \"500\": #cddc39,\n \"600\": #c0ca33,\n \"700\": #afb42b,\n \"800\": #9e9d24,\n \"900\": #827717,\n \"a100\": #f4ff81,\n \"a200\": #eeff41,\n \"a400\": #c6ff00,\n \"a700\": #aeea00\n);\n\n$clr-lime: map-get($clr-lime-list, \"base\");\n\n$clr-lime-50: map-get($clr-lime-list, \"50\");\n$clr-lime-100: map-get($clr-lime-list, \"100\");\n$clr-lime-200: map-get($clr-lime-list, \"200\");\n$clr-lime-300: map-get($clr-lime-list, \"300\");\n$clr-lime-400: map-get($clr-lime-list, \"400\");\n$clr-lime-500: map-get($clr-lime-list, \"500\");\n$clr-lime-600: map-get($clr-lime-list, \"600\");\n$clr-lime-700: map-get($clr-lime-list, \"700\");\n$clr-lime-800: map-get($clr-lime-list, \"800\");\n$clr-lime-900: map-get($clr-lime-list, \"900\");\n$clr-lime-a100: map-get($clr-lime-list, \"a100\");\n$clr-lime-a200: map-get($clr-lime-list, \"a200\");\n$clr-lime-a400: map-get($clr-lime-list, \"a400\");\n$clr-lime-a700: map-get($clr-lime-list, \"a700\");\n\n\n//\n// Yellow\n//\n\n$clr-yellow-list: (\n \"base\": #ffeb3b,\n \"50\": #fffde7,\n \"100\": #fff9c4,\n \"200\": #fff59d,\n \"300\": #fff176,\n \"400\": #ffee58,\n \"500\": #ffeb3b,\n \"600\": #fdd835,\n \"700\": #fbc02d,\n \"800\": #f9a825,\n \"900\": #f57f17,\n \"a100\": #ffff8d,\n \"a200\": #ffff00,\n \"a400\": #ffea00,\n \"a700\": #ffd600\n);\n\n$clr-yellow: map-get($clr-yellow-list, \"base\");\n\n$clr-yellow-50: map-get($clr-yellow-list, \"50\");\n$clr-yellow-100: map-get($clr-yellow-list, \"100\");\n$clr-yellow-200: map-get($clr-yellow-list, \"200\");\n$clr-yellow-300: map-get($clr-yellow-list, \"300\");\n$clr-yellow-400: map-get($clr-yellow-list, \"400\");\n$clr-yellow-500: map-get($clr-yellow-list, \"500\");\n$clr-yellow-600: map-get($clr-yellow-list, \"600\");\n$clr-yellow-700: map-get($clr-yellow-list, \"700\");\n$clr-yellow-800: map-get($clr-yellow-list, \"800\");\n$clr-yellow-900: map-get($clr-yellow-list, \"900\");\n$clr-yellow-a100: map-get($clr-yellow-list, \"a100\");\n$clr-yellow-a200: map-get($clr-yellow-list, \"a200\");\n$clr-yellow-a400: map-get($clr-yellow-list, \"a400\");\n$clr-yellow-a700: map-get($clr-yellow-list, \"a700\");\n\n\n//\n// amber\n//\n\n$clr-amber-list: (\n \"base\": #ffc107,\n \"50\": #fff8e1,\n \"100\": #ffecb3,\n \"200\": #ffe082,\n \"300\": #ffd54f,\n \"400\": #ffca28,\n \"500\": #ffc107,\n \"600\": #ffb300,\n \"700\": #ffa000,\n \"800\": #ff8f00,\n \"900\": #ff6f00,\n \"a100\": #ffe57f,\n \"a200\": #ffd740,\n \"a400\": #ffc400,\n \"a700\": #ffab00\n);\n\n$clr-amber: map-get($clr-amber-list, \"base\");\n\n$clr-amber-50: map-get($clr-amber-list, \"50\");\n$clr-amber-100: map-get($clr-amber-list, \"100\");\n$clr-amber-200: map-get($clr-amber-list, \"200\");\n$clr-amber-300: map-get($clr-amber-list, \"300\");\n$clr-amber-400: map-get($clr-amber-list, \"400\");\n$clr-amber-500: map-get($clr-amber-list, \"500\");\n$clr-amber-600: map-get($clr-amber-list, \"600\");\n$clr-amber-700: map-get($clr-amber-list, \"700\");\n$clr-amber-800: map-get($clr-amber-list, \"800\");\n$clr-amber-900: map-get($clr-amber-list, \"900\");\n$clr-amber-a100: map-get($clr-amber-list, \"a100\");\n$clr-amber-a200: map-get($clr-amber-list, \"a200\");\n$clr-amber-a400: map-get($clr-amber-list, \"a400\");\n$clr-amber-a700: map-get($clr-amber-list, \"a700\");\n\n\n//\n// Orange\n//\n\n$clr-orange-list: (\n \"base\": #ff9800,\n \"50\": #fff3e0,\n \"100\": #ffe0b2,\n \"200\": #ffcc80,\n \"300\": #ffb74d,\n \"400\": #ffa726,\n \"500\": #ff9800,\n \"600\": #fb8c00,\n \"700\": #f57c00,\n \"800\": #ef6c00,\n \"900\": #e65100,\n \"a100\": #ffd180,\n \"a200\": #ffab40,\n \"a400\": #ff9100,\n \"a700\": #ff6d00\n);\n\n$clr-orange: map-get($clr-orange-list, \"base\");\n\n$clr-orange-50: map-get($clr-orange-list, \"50\");\n$clr-orange-100: map-get($clr-orange-list, \"100\");\n$clr-orange-200: map-get($clr-orange-list, \"200\");\n$clr-orange-300: map-get($clr-orange-list, \"300\");\n$clr-orange-400: map-get($clr-orange-list, \"400\");\n$clr-orange-500: map-get($clr-orange-list, \"500\");\n$clr-orange-600: map-get($clr-orange-list, \"600\");\n$clr-orange-700: map-get($clr-orange-list, \"700\");\n$clr-orange-800: map-get($clr-orange-list, \"800\");\n$clr-orange-900: map-get($clr-orange-list, \"900\");\n$clr-orange-a100: map-get($clr-orange-list, \"a100\");\n$clr-orange-a200: map-get($clr-orange-list, \"a200\");\n$clr-orange-a400: map-get($clr-orange-list, \"a400\");\n$clr-orange-a700: map-get($clr-orange-list, \"a700\");\n\n\n//\n// Deep orange\n//\n\n$clr-deep-orange-list: (\n \"base\": #ff5722,\n \"50\": #fbe9e7,\n \"100\": #ffccbc,\n \"200\": #ffab91,\n \"300\": #ff8a65,\n \"400\": #ff7043,\n \"500\": #ff5722,\n \"600\": #f4511e,\n \"700\": #e64a19,\n \"800\": #d84315,\n \"900\": #bf360c,\n \"a100\": #ff9e80,\n \"a200\": #ff6e40,\n \"a400\": #ff3d00,\n \"a700\": #dd2c00\n);\n\n$clr-deep-orange: map-get($clr-deep-orange-list, \"base\");\n\n$clr-deep-orange-50: map-get($clr-deep-orange-list, \"50\");\n$clr-deep-orange-100: map-get($clr-deep-orange-list, \"100\");\n$clr-deep-orange-200: map-get($clr-deep-orange-list, \"200\");\n$clr-deep-orange-300: map-get($clr-deep-orange-list, \"300\");\n$clr-deep-orange-400: map-get($clr-deep-orange-list, \"400\");\n$clr-deep-orange-500: map-get($clr-deep-orange-list, \"500\");\n$clr-deep-orange-600: map-get($clr-deep-orange-list, \"600\");\n$clr-deep-orange-700: map-get($clr-deep-orange-list, \"700\");\n$clr-deep-orange-800: map-get($clr-deep-orange-list, \"800\");\n$clr-deep-orange-900: map-get($clr-deep-orange-list, \"900\");\n$clr-deep-orange-a100: map-get($clr-deep-orange-list, \"a100\");\n$clr-deep-orange-a200: map-get($clr-deep-orange-list, \"a200\");\n$clr-deep-orange-a400: map-get($clr-deep-orange-list, \"a400\");\n$clr-deep-orange-a700: map-get($clr-deep-orange-list, \"a700\");\n\n\n//\n// Brown\n//\n\n$clr-brown-list: (\n \"base\": #795548,\n \"50\": #efebe9,\n \"100\": #d7ccc8,\n \"200\": #bcaaa4,\n \"300\": #a1887f,\n \"400\": #8d6e63,\n \"500\": #795548,\n \"600\": #6d4c41,\n \"700\": #5d4037,\n \"800\": #4e342e,\n \"900\": #3e2723,\n);\n\n$clr-brown: map-get($clr-brown-list, \"base\");\n\n$clr-brown-50: map-get($clr-brown-list, \"50\");\n$clr-brown-100: map-get($clr-brown-list, \"100\");\n$clr-brown-200: map-get($clr-brown-list, \"200\");\n$clr-brown-300: map-get($clr-brown-list, \"300\");\n$clr-brown-400: map-get($clr-brown-list, \"400\");\n$clr-brown-500: map-get($clr-brown-list, \"500\");\n$clr-brown-600: map-get($clr-brown-list, \"600\");\n$clr-brown-700: map-get($clr-brown-list, \"700\");\n$clr-brown-800: map-get($clr-brown-list, \"800\");\n$clr-brown-900: map-get($clr-brown-list, \"900\");\n\n\n//\n// Grey\n//\n\n$clr-grey-list: (\n \"base\": #9e9e9e,\n \"50\": #fafafa,\n \"100\": #f5f5f5,\n \"200\": #eeeeee,\n \"300\": #e0e0e0,\n \"400\": #bdbdbd,\n \"500\": #9e9e9e,\n \"600\": #757575,\n \"700\": #616161,\n \"800\": #424242,\n \"900\": #212121,\n);\n\n$clr-grey: map-get($clr-grey-list, \"base\");\n\n$clr-grey-50: map-get($clr-grey-list, \"50\");\n$clr-grey-100: map-get($clr-grey-list, \"100\");\n$clr-grey-200: map-get($clr-grey-list, \"200\");\n$clr-grey-300: map-get($clr-grey-list, \"300\");\n$clr-grey-400: map-get($clr-grey-list, \"400\");\n$clr-grey-500: map-get($clr-grey-list, \"500\");\n$clr-grey-600: map-get($clr-grey-list, \"600\");\n$clr-grey-700: map-get($clr-grey-list, \"700\");\n$clr-grey-800: map-get($clr-grey-list, \"800\");\n$clr-grey-900: map-get($clr-grey-list, \"900\");\n\n\n//\n// Blue grey\n//\n\n$clr-blue-grey-list: (\n \"base\": #607d8b,\n \"50\": #eceff1,\n \"100\": #cfd8dc,\n \"200\": #b0bec5,\n \"300\": #90a4ae,\n \"400\": #78909c,\n \"500\": #607d8b,\n \"600\": #546e7a,\n \"700\": #455a64,\n \"800\": #37474f,\n \"900\": #263238,\n);\n\n$clr-blue-grey: map-get($clr-blue-grey-list, \"base\");\n\n$clr-blue-grey-50: map-get($clr-blue-grey-list, \"50\");\n$clr-blue-grey-100: map-get($clr-blue-grey-list, \"100\");\n$clr-blue-grey-200: map-get($clr-blue-grey-list, \"200\");\n$clr-blue-grey-300: map-get($clr-blue-grey-list, \"300\");\n$clr-blue-grey-400: map-get($clr-blue-grey-list, \"400\");\n$clr-blue-grey-500: map-get($clr-blue-grey-list, \"500\");\n$clr-blue-grey-600: map-get($clr-blue-grey-list, \"600\");\n$clr-blue-grey-700: map-get($clr-blue-grey-list, \"700\");\n$clr-blue-grey-800: map-get($clr-blue-grey-list, \"800\");\n$clr-blue-grey-900: map-get($clr-blue-grey-list, \"900\");\n\n\n//\n// Black\n//\n\n$clr-black-list: (\n \"base\": #000\n);\n\n$clr-black: map-get($clr-black-list, \"base\");\n\n\n//\n// White\n//\n\n$clr-white-list: (\n \"base\": #fff\n);\n\n$clr-white: map-get($clr-white-list, \"base\");\n\n\n//\n// List for all Colors for looping\n//\n\n$clr-list-all: (\n \"red\": $clr-red-list,\n \"pink\": $clr-pink-list,\n \"purple\": $clr-purple-list,\n \"deep-purple\": $clr-deep-purple-list,\n \"indigo\": $clr-indigo-list,\n \"blue\": $clr-blue-list,\n \"light-blue\": $clr-light-blue-list,\n \"cyan\": $clr-cyan-list,\n \"teal\": $clr-teal-list,\n \"green\": $clr-green-list,\n \"light-green\": $clr-light-green-list,\n \"lime\": $clr-lime-list,\n \"yellow\": $clr-yellow-list,\n \"amber\": $clr-amber-list,\n \"orange\": $clr-orange-list,\n \"deep-orange\": $clr-deep-orange-list,\n \"brown\": $clr-brown-list,\n \"grey\": $clr-grey-list,\n \"blue-grey\": $clr-blue-grey-list,\n \"black\": $clr-black-list,\n \"white\": $clr-white-list\n);\n\n\n//\n// Typography\n//\n\n$clr-ui-display-4: $clr-grey-600;\n$clr-ui-display-3: $clr-grey-600;\n$clr-ui-display-2: $clr-grey-600;\n$clr-ui-display-1: $clr-grey-600;\n$clr-ui-headline: $clr-grey-900;\n$clr-ui-title: $clr-grey-900;\n$clr-ui-subhead-1: $clr-grey-900;\n$clr-ui-body-2: $clr-grey-900;\n$clr-ui-body-1: $clr-grey-900;\n$clr-ui-caption: $clr-grey-600;\n$clr-ui-menu: $clr-grey-900;\n$clr-ui-button: $clr-grey-900;\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules: base grid and containers\n// ----------------------------------------------------------------------------\n\n// Stretch container to viewport and set base font-size to 10px for simple\n// calculations base on relative ems (rems).\nhtml {\n height: 100%;\n font-size: 62.5%;\n\n // [screen medium +] Set base font-size to 11px\n @include break-from-device(screen medium) {\n font-size: 68.75%;\n }\n\n // [screen large +] Set base font-size to 12px\n @include break-from-device(screen large) {\n font-size: 75%;\n }\n}\n\n// Stretch body to container and leave room for footer.\nbody {\n position: relative;\n min-height: 100%;\n\n // Lock body to viewport height (e.g. in search mode)\n &[data-md-locked] {\n height: 100%;\n overflow: hidden;\n }\n}\n\n// Horizontal separators\nhr {\n display: block;\n height: 0.1rem;\n padding: 0;\n border: 0;\n}\n\n// Template-wide grid\n.md-grid {\n max-width: 120.0rem;\n margin-right: auto;\n margin-left: auto;\n}\n\n// Prevent collapse of margin when setting margin on child element\n.md-container,\n.md-main {\n overflow: auto;\n}\n\n// Add top spacing to acount for header\n.md-main {\n margin-top: 5.6rem;\n\n // Bottom spacing to account for header and footer\n &__inner {\n margin-top: 2.4rem + 0.6rem;\n margin-bottom: 9.2rem;\n overflow: auto;\n }\n}\n\n// ----------------------------------------------------------------------------\n// Rules: navigational elements\n// ----------------------------------------------------------------------------\n\n// Toggle checkbox\n.md-toggle {\n display: none;\n}\n\n// Overlay below expanded drawer\n.md-overlay {\n position: fixed;\n top: 0;\n width: 0;\n height: 0;\n transition:\n width 0s 0.25s,\n height 0s 0.25s,\n opacity 0.25s;\n background: $md-color-black--light;\n opacity: 0;\n z-index: 2;\n\n // [tablet -]: Trigger overlay\n @include break-to-device(tablet) {\n\n // Expanded drawer\n .md-toggle--drawer:checked ~ & {\n width: 100%;\n height: 100%;\n transition:\n width 0s,\n height 0s,\n opacity 0.25s;\n opacity: 1;\n }\n }\n}\n\n// ----------------------------------------------------------------------------\n// Rules: flexible elements, implemented with table layout\n// ----------------------------------------------------------------------------\n\n// Flexible layout container\n.md-flex {\n display: table;\n\n // Flexible layout container cell/element\n &__cell {\n display: table-cell;\n position: relative;\n vertical-align: top;\n\n // Shrink to minimum width\n &--shrink {\n width: 0%;\n }\n\n // Stretch to maximum width\n &--stretch {\n display: table;\n width: 100%;\n table-layout: fixed;\n }\n }\n\n // Apply ellipsis in case of overflowing text\n &__ellipsis {\n display: table-cell;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Content container\n.md-content {\n\n // [tablet landscape +]: Add space for table of contents\n @include break-from-device(tablet landscape) {\n margin-right: 24.2rem;\n }\n\n // [screen +]: Add space for table of contents\n @include break-from-device(screen) {\n margin-left: 24.2rem;\n }\n\n // Define spacing\n &__inner {\n margin: 2.4rem 1.6rem;\n\n // Hack: this is necessary for floating the edit button\n // overflow: auto;\n\n // [screen +]: Increase spacing\n @include break-from-device(screen) {\n margin: 2.4rem;\n }\n }\n\n // Copyright and theme information\n &__copyright {\n display: block;\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Application header (stays always on top)\n.md-header {\n @include z-depth(2);\n\n position: fixed;\n top: 0;\n right: 0;\n left: 0;\n height: 5.6rem;\n background: $md-color-primary;\n color: $md-color-white;\n z-index: 1;\n}\n\n// Navigation within header\n.md-header-nav {\n padding: 0.4rem;\n\n // Icons\n &__icon {\n @extend %md-icon__button;\n\n position: relative;\n transition: opacity 0.25s;\n z-index: 1;\n\n // Hovered icon\n &:hover {\n opacity: 0.7;\n }\n\n // Hide search icon, if JavaScript is not available.\n .no-js &--search {\n display: none;\n }\n\n // [tablet landscape +]: Hide the search icon\n @include break-from-device(tablet landscape) {\n\n // Search icon\n &--search {\n display: none;\n }\n }\n\n // [tablet -]: Hide the home icon\n @include break-to-device(tablet) {\n\n // Home icon\n &--home {\n display: none;\n }\n }\n\n // [screen +]: Hide the menu icon\n @include break-from-device(screen) {\n\n // Menu icon\n &--menu {\n display: none;\n }\n }\n }\n\n // Header title\n &__title {\n padding: 0 2.0rem;\n font-size: 1.8rem;\n line-height: 4.8rem;\n }\n\n // Repository containing source\n &__source {\n display: none;\n\n // [tablet landscape +]: Show the reposistory from tablet\n @include break-from-device(tablet landscape) {\n display: block;\n width: 23.0rem;\n max-width: 23.0rem;\n padding-right: 1.2rem;\n }\n }\n}\n","//\n// Name: Material Shadows\n// Description: Mixins for Material Design Shadows.\n// Version: 3.0.1\n//\n// Author: Denis Malinochkin\n// Git: https://github.com/mrmlnc/material-shadows\n//\n// twitter: @mrmlnc\n//\n// ------------------------------------\n\n\n// Mixins\n// ------------------------------------\n\n@mixin z-depth-transition() {\n transition: box-shadow .28s cubic-bezier(.4, 0, .2, 1);\n}\n\n@mixin z-depth-focus() {\n box-shadow: 0 0 8px rgba(0, 0, 0, .18), 0 8px 16px rgba(0, 0, 0, .36);\n}\n\n@mixin z-depth-2dp() {\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14),\n 0 1px 5px 0 rgba(0, 0, 0, .12),\n 0 3px 1px -2px rgba(0, 0, 0, .2);\n}\n\n@mixin z-depth-3dp() {\n box-shadow: 0 3px 4px 0 rgba(0, 0, 0, .14),\n 0 1px 8px 0 rgba(0, 0, 0, .12),\n 0 3px 3px -2px rgba(0, 0, 0, .4);\n}\n\n@mixin z-depth-4dp() {\n box-shadow: 0 4px 5px 0 rgba(0, 0, 0, .14),\n 0 1px 10px 0 rgba(0, 0, 0, .12),\n 0 2px 4px -1px rgba(0, 0, 0, .4);\n}\n\n@mixin z-depth-6dp() {\n box-shadow: 0 6px 10px 0 rgba(0, 0, 0, .14),\n 0 1px 18px 0 rgba(0, 0, 0, .12),\n 0 3px 5px -1px rgba(0, 0, 0, .4);\n}\n\n@mixin z-depth-8dp() {\n box-shadow: 0 8px 10px 1px rgba(0, 0, 0, .14),\n 0 3px 14px 2px rgba(0, 0, 0, .12),\n 0 5px 5px -3px rgba(0, 0, 0, .4);\n}\n\n@mixin z-depth-16dp() {\n box-shadow: 0 16px 24px 2px rgba(0, 0, 0, .14),\n 0 6px 30px 5px rgba(0, 0, 0, .12),\n 0 8px 10px -5px rgba(0, 0, 0, .4);\n}\n\n@mixin z-depth-24dp() {\n box-shadow: 0 9px 46px 8px rgba(0, 0, 0, .14),\n 0 24px 38px 3px rgba(0, 0, 0, .12),\n 0 11px 15px -7px rgba(0, 0, 0, .4);\n}\n\n@mixin z-depth($dp: 2) {\n @if $dp == 2 {\n @include z-depth-2dp();\n } @else if $dp == 3 {\n @include z-depth-3dp();\n } @else if $dp == 4 {\n @include z-depth-4dp();\n } @else if $dp == 6 {\n @include z-depth-6dp();\n } @else if $dp == 8 {\n @include z-depth-8dp();\n } @else if $dp == 16 {\n @include z-depth-16dp();\n } @else if $dp == 24 {\n @include z-depth-24dp();\n }\n}\n\n\n// Class generator\n// ------------------------------------\n\n@mixin z-depth-classes($transition: false, $focus: false) {\n @if $transition == true {\n &-transition {\n @include z-depth-transition();\n }\n }\n\n @if $focus == true {\n &-focus {\n @include z-depth-focus();\n }\n }\n\n // The available values for the shadow depth\n @each $depth in 2, 3, 4, 6, 8, 16, 24 {\n &-#{$depth}dp {\n @include z-depth($depth);\n }\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Application footer\n.md-footer {\n position: absolute;\n bottom: 0;\n width: 100%;\n}\n\n// Pagination container\n.md-footer-pagination {\n background: $md-color-black;\n color: $md-color-white;\n}\n\n// Footer navigation\n.md-footer-nav {\n padding: 0.4rem;\n overflow: auto;\n\n // Links to previous and next page\n &__link {\n padding-top: 2.8rem;\n padding-bottom: 0.8rem;\n transition: opacity 0.25s;\n\n // [mobile landscape +]: Set proportional width\n @include break-from-device(mobile landscape) {\n width: 50%;\n }\n\n // Hovered link\n &:hover {\n opacity: 0.7;\n }\n\n // Link to previous page\n &--prev {\n width: 25%;\n float: left;\n\n // Title\n .md-footer-nav__title {\n\n // [mobile portrait -]: Hide title for previous page\n @include break-to-device(mobile portrait) {\n display: none;\n }\n }\n }\n\n // Link to next page\n &--next {\n width: 75%;\n float: right;\n text-align: right;\n }\n }\n\n // Icons\n &__icon {\n @extend %md-icon__button;\n\n transition: background 0.25s;\n }\n\n // Link title\n &__title {\n position: relative;\n padding: 0 0.4rem;\n font-size: 1.8rem;\n line-height: 4.8rem;\n }\n\n // Link direction\n &__direction {\n position: absolute;\n right: 0;\n left: 0;\n margin-top: -2.0rem;\n padding: 0 0.4rem;\n color: $md-color-white--light;\n font-size: 1.5rem;\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Navigation container\n.md-nav {\n font-size: ms(-1);\n line-height: 1.3;\n\n // Table of contents\n &--secondary {\n border-left: 0.4rem solid $md-color-primary;\n }\n\n // List title\n &__title {\n display: block;\n padding: 1.2rem 1.2rem 0;\n font-weight: 700;\n text-overflow: ellipsis;\n overflow: hidden;\n\n // Icon, hidden by default\n &::before {\n @extend %md-icon, %md-icon__button;\n\n display: none;\n content: \"arrow_back\";\n }\n }\n\n // List of items\n &__list {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n\n // List item\n &__item {\n padding: 0.625em 1.2rem 0;\n\n // Add bottom spacing to last item\n &:last-child {\n padding-bottom: 1.2rem;\n }\n\n // 2nd+ level items\n & & {\n padding-right: 0;\n\n // Remove bottom spacing for nested items\n &:last-child {\n padding-bottom: 0;\n }\n }\n }\n\n // Link inside item\n &__link {\n display: block;\n transition: color 0.125s;\n text-overflow: ellipsis;\n cursor: pointer;\n overflow: hidden;\n\n // Icon\n &::after {\n @extend %md-icon;\n\n // Item contains a nested list\n .md-nav__item--nested > & {\n content: \"expand_more\";\n }\n }\n\n // Hide link to table of contents by default - this will only match the\n // table of contents inside the drawer below and including tablet portrait\n html &[for=\"toc\"] {\n display: none;\n\n // Hide table of contents by default\n & ~ .md-nav {\n display: none;\n }\n\n // Hide icon for current item\n + .md-nav__link::after {\n display: none;\n }\n }\n\n // Marked item\n &[data-md-marked] {\n color: $md-color-black--light;\n }\n\n // Current or hovered item\n &:hover,\n &:active,\n &--active {\n color: $md-color-accent;\n }\n }\n\n // Repository containing source\n &__source {\n display: none;\n }\n\n // [tablet -]: Layered navigation\n @include break-to-device(tablet) {\n\n // Stretch primary navigation to drawer\n &--primary,\n &--primary .md-nav {\n display: flex;\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n flex-direction: column;\n height: 100%;\n z-index: 1;\n }\n\n // Adjust styles for primary navigation\n &--primary {\n background: $md-color-white;\n\n // Move subsequent navigations off\n .md-nav__toggle ~ .md-nav {\n @include z-depth(4);\n\n left: 0.4rem;\n background: $md-color-white;\n }\n\n // List title - higher specificity is necessary to ensure that the title\n // inside the drawer is always styled accordingly\n html & .md-nav__title {\n position: relative;\n padding: 0.4rem 1.6rem 0.4rem 5.6rem;\n background: $md-color-black--lightest;\n color: $md-color-black--light;\n font-size: 1.8rem;\n font-weight: 400;\n line-height: 4.8rem;\n white-space: nowrap;\n cursor: pointer;\n\n // Icon\n &::before {\n display: block;\n position: absolute;\n left: 0.4rem;\n width: 4.0rem;\n height: 4.0rem;\n color: $md-color-black--light;\n }\n\n // Remove border for first ist item\n ~ .md-nav__list > .md-nav__item:first-child {\n border-top: 0;\n }\n }\n\n // List of items\n .md-nav__list {\n flex: 1;\n overflow-y: scroll;\n }\n\n // List item\n .md-nav__item {\n padding: 0;\n border-top: 0.1rem solid $md-color-black--lightest;\n\n // Increase spacing to account for icon\n &--nested > .md-nav__link {\n padding-right: 4.8rem;\n }\n }\n\n // Link inside item\n .md-nav__link {\n position: relative;\n padding: 1.6rem;\n\n // Rotate icon\n &::after {\n position: absolute;\n top: 50%;\n right: 1.2rem;\n transform: translateY(-50%) rotate(-90deg);\n transition: inherit;\n color: $md-color-black--light;\n font-size: 2.4rem;\n }\n\n // Color of icon should inherit link color on hover\n &:hover::after {\n color: $md-color-accent;\n }\n }\n\n // Set nested navigation for table of contents to static\n .md-nav--secondary .md-nav {\n position: static;\n\n // 3rd level link\n .md-nav__link {\n padding-left: 2.8rem;\n }\n\n // 4th level link\n .md-nav .md-nav__link {\n padding-left: 4.0rem;\n }\n\n // 5th level link\n .md-nav .md-nav .md-nav__link {\n padding-left: 5.2rem;\n }\n\n // 6th level link\n .md-nav .md-nav .md-nav .md-nav__link {\n padding-left: 6.4rem;\n }\n }\n }\n\n // Hide nested navigation by default\n .md-nav__toggle ~ & {\n display: none;\n\n // Animate appearance, if browser supports 3D transforms\n .csstransforms3d & {\n display: block;\n transform: translateX(100%);\n transition:\n transform 0.25s cubic-bezier(0.8, 0.0, 0.6, 1.0),\n opacity 0.125s 0.05s;\n opacity: 0;\n }\n }\n\n // Expand nested navigation, if toggle is checked\n .md-nav__toggle:checked ~ & {\n display: block;\n\n // Animate appearance, if browser supports 3D transforms\n .csstransforms3d & {\n transform: translateX(0);\n transition:\n transform 0.25s cubic-bezier(0.4, 0.0, 0.2, 1.0),\n opacity 0.125s 0.125s;\n opacity: 1;\n }\n }\n\n // List item\n .md-nav__title,\n .md-nav__item {\n font-size: 1.6rem;\n line-height: 1.4;\n }\n }\n\n // [tablet portrait -]: Show table of contents in drawer\n @include break-to-device(tablet portrait) {\n\n // Remove border on secondary navigation\n &--secondary {\n border-left: 0;\n }\n\n // Show link to table of contents - higher specificity is necessary to\n // display the table of contents inside the drawer\n html &__link[for=\"toc\"] {\n display: block;\n\n // Unrotate icon for table of contents\n &::after {\n transform: translateY(-50%);\n color: $md-color-accent;\n content: \"toc\";\n }\n\n // Hide link to current item\n + .md-nav__link {\n display: none;\n }\n\n // Show table of contents\n & ~ .md-nav {\n display: flex;\n }\n }\n\n // Repository containing source\n &__source {\n display: block;\n padding: 0.4rem;\n background: $md-color-black;\n color: $md-color-white;\n }\n }\n\n // [screen +]: Tree-like navigation\n @include break-from-device(screen) {\n\n // Animation is only possible if JavaScript is available, as the max-height\n // property must be calculated before transitioning\n &.md-nav--transitioning {\n transition: max-height 0.25s cubic-bezier(0.86, 0.0, 0.07, 1.0);\n }\n\n // Hide nested navigation by default\n .md-nav__toggle ~ & {\n max-height: 0;\n overflow: hidden;\n }\n\n // Expand nested navigation, if toggle is checked\n .md-nav__toggle:checked ~ &,\n &.md-nav--toggled {\n max-height: 100%;\n }\n\n // List title\n &__title {\n\n // Hide titles for nested navigation\n & + .md-nav__list & {\n display: none;\n }\n }\n\n // Link inside item\n &__link {\n\n // Item contains a nested list\n .md-nav__item--nested > &::after {\n display: inline-block;\n transform-origin: 0.45em 0.45em;\n transform-style: preserve-3d;\n vertical-align: -0.125em;\n\n // Only animate icon when JavaScript is available, as the height can\n // not be animated anyway, and better no fun than half the fun\n .js & {\n transition: transform 0.4s;\n }\n }\n\n // Rotate icon for expanded lists\n .md-nav__item--nested .md-nav__toggle:checked ~ &::after {\n transform: rotateX(180deg);\n }\n }\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Search container\n.md-search {\n\n // Hide search, if JavaScript is not available.\n .no-js & {\n display: none;\n }\n\n // [tablet landscape +]: Header-embedded search\n @include break-from-device(tablet landscape) {\n padding: 0.4rem;\n padding-right: 3.2rem;\n }\n\n // Search modal overlay\n &__overlay {\n display: none;\n pointer-events: none;\n\n // [tablet portrait -]: Show overlay\n @include break-to-device(tablet portrait) {\n display: block;\n position: absolute;\n top: 0.4rem;\n left: 0.4rem;\n width: 4.0rem;\n height: 4.0rem;\n transform-origin: center;\n transition:\n transform 0.3s 0.1s,\n opacity 0.2s 0.2s;\n border-radius: 2.0rem; // TODO: correct?\n background: #EEEEEE; // TODO: put in variable\n opacity: 0;\n overflow: hidden;\n z-index: 1;\n\n // Expanded overlay\n .md-toggle--search:checked ~ .md-header & {\n transform: scale(40); // TODO: increase scale on larger devices factor, so the transition remains smooth\n transition:\n transform 0.4s,\n opacity 0.1s;\n opacity: 1;\n }\n }\n }\n\n // Search modal wrapper\n &__inner {\n width: 100%;\n\n // [tablet portrait -]: Put search modal off-canvas by default\n @include break-to-device(tablet portrait) {\n position: fixed;\n top: 0;\n left: 100%;\n height: 100%;\n transform: translateX(5%);\n transition:\n left 0s 0.3s,\n transform 0.15s 0.15s cubic-bezier(0.4, 0.0, 0.2, 1.0),\n opacity 0.15s 0.15s;\n opacity: 0;\n z-index: 2;\n\n // Active search modal\n .md-toggle--search:checked ~ .md-header & {\n left: 0;\n transform: translateX(0);\n transition:\n left 0s 0s,\n transform 0.15s 0.15s cubic-bezier(0.1, 0.7, 0.1, 1.0),\n opacity 0.15s 0.15s;\n opacity: 1;\n }\n }\n\n // [tablet landscape +]: Make relative for inner positioning\n @include break-from-device(tablet landscape) {\n position: relative;\n }\n }\n\n // Search form\n &__form {\n\n // [tablet landscape +]: Header-embedded search\n @include break-from-device(tablet landscape) {\n width: 23.0rem;\n transition: width 0.25s cubic-bezier(0.1, 0.7, 0.1, 1.0);\n border-radius: 0.2rem;\n\n // Active search field\n [data-md-locked] & {\n width: 66.8rem;\n }\n }\n }\n\n // Icon\n &__icon {\n position: absolute;\n top: $md-icon-padding;\n left: $md-icon-padding + $md-icon-margin; // TODO: solve in some other way...\n transition: color 0.25s;\n font-size: $md-icon-size;\n cursor: pointer;\n\n // Set search icon on pseudo class, so it can be overridden for mobile\n // and tablet when the search is rendered in an overlay\n &::before {\n content: \"search\";\n }\n\n // [tablet portrait -]: Use back arrow as search icon\n @include break-to-device(tablet portrait) {\n top: 1.6rem;\n left: 1.6rem;\n\n // Show back arrow instead of search icon\n &::before {\n content: \"arrow_back\";\n }\n }\n }\n\n // Search field\n &__input {\n padding: 0 1.6rem 0 7.2rem;\n text-overflow: ellipsis;\n\n // Placeholder and icon color in active state\n + .md-search__icon,\n &::placeholder {\n color: $md-color-black--light;\n }\n\n // [tablet portrait -]: Full-screen search bar\n @include break-to-device(tablet portrait) {\n width: 100%;\n height: 5.6rem;\n font-size: 1.8rem;\n }\n\n // [tablet landscape +]: Header-embedded search\n @include break-from-device(tablet landscape) {\n width: 100%;\n height: 4.0rem;\n padding-left: 4.8rem;\n transition:\n background-color 0.25s,\n color 0.25s;\n border-radius: 0.2rem;\n background: $md-color-black--lighter;\n color: $md-color-white;\n font-size: ms(0);\n\n // Placeholder color\n + .md-search__icon,\n &::placeholder {\n transition: color 0.25s;\n color: $md-color-white;\n }\n\n // Hovered search field\n &:hover {\n background: $md-color-white--lightest;\n }\n\n // Active search field\n [data-md-locked] & {\n border-radius: 0.2rem 0.2rem 0 0;\n background: $md-color-white;\n color: $md-color-black;\n text-overflow: none;\n\n // Placeholder and icon color in active state\n + .md-search__icon,\n &::placeholder {\n color: $md-color-black--light;\n }\n }\n }\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Sidebar container\n.md-sidebar {\n position: relative;\n width: 24.2rem;\n float: left;\n overflow: visible;\n\n // Lock sidebar to container height (account for fixed header)\n &[data-md-locked] {\n position: fixed;\n top: 5.6rem;\n }\n\n // Omit repaint of whole page by promoting primary sidebar to a separate\n // layer, but not the secondary sidebar to omit jittering\n &--primary {\n backface-visibility: hidden;\n }\n\n // [tablet -]: Convert navigation to drawer\n @include break-to-device(tablet) {\n\n // Render primary sidebar as a slideout container\n &--primary {\n position: fixed;\n top: 0;\n left: -24.2rem;\n width: 24.2rem;\n height: 100%;\n transform: translateX(0);\n transition:\n transform 0.25s cubic-bezier(0.4, 0.0, 0.2, 1.0),\n box-shadow 0.25s;\n background: $md-color-white;\n z-index: 2;\n\n // Just hide drawer, if browser doesn't support 3D transforms\n .no-csstransforms3d & {\n display: none;\n }\n\n // Expanded drawer\n .md-toggle--drawer:checked ~ .md-container & {\n @include z-depth(8);\n\n transform: translateX(24.2rem);\n\n // Just show drawer, if browser doesn't support 3D transforms\n .no-csstransforms3d & {\n display: block;\n }\n }\n\n // Hide overflow for nested navigation\n .md-sidebar__scrollwrap {\n overflow: hidden;\n }\n }\n }\n\n // Secondary sidebar with table of contents\n &--secondary {\n display: none;\n\n // [tablet landscape +]: Show table of contents next to body copy\n @include break-from-device(tablet landscape) {\n display: block;\n float: right;\n\n // Hack: align right in case of locked sidebar\n &[data-md-locked] {\n margin-left: 100%;\n transform: translate(-100%, 0);\n\n // [screen +]: Limit to grid\n @include break-from-device(screen) {\n margin-left: 120.0rem;\n }\n }\n }\n }\n\n // Wrapper for scrolling on overflow\n &__scrollwrap {\n margin: 2.4rem 0.4rem;\n overflow-y: scroll;\n // -webkit-overflow-scrolling: touch; // TODO: problems with iOS\n\n // [tablet -]: Adjust margins\n @include break-to-device(tablet) {\n\n // Adjust margins for primary scrollbar\n .md-sidebar--primary & {\n margin: 0;\n }\n }\n\n // Limit height to window, if JavaScript is available\n .js & {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n }\n\n // Override native scrollbar styles\n &::-webkit-scrollbar {\n width: 0.4rem;\n height: 0.4rem;\n\n // Style scrollbar thumb\n &-thumb {\n background-color: $md-color-black--lighter;\n\n // Hovered scrollbar thumb\n &:hover {\n background-color: $md-color-accent;\n }\n }\n }\n }\n\n // Sidebar content\n &__inner {\n\n // [screen +]: Add line for reference\n @include break-from-device(screen) {\n border-right: 0.1rem solid $md-color-black--lightest;\n }\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Source container\n.md-source {\n display: block;\n transition: opacity 0.25s;\n font-size: 1.3rem;\n line-height: 1.2;\n white-space: nowrap;\n\n // Hovered source information\n &:hover {\n opacity: 0.7;\n }\n\n // Necessary for vertical alignment\n &::before {\n display: inline-block;\n height: 4.8rem;\n content: \"\";\n vertical-align: middle;\n }\n\n // Repository is hosted on platform\n &--bitbucket,\n &--github,\n &--gitlab {\n\n // Platform icon\n &::before {\n width: 4.8rem;\n background-repeat: no-repeat;\n background-position: center;\n background-size: $md-icon-size $md-icon-size;\n }\n\n // Adjust repository information for platform icon\n .md-source__repository {\n margin-left: -4.4rem;\n padding-left: 4.0rem;\n }\n }\n\n // Code is hosted on BitBucket\n &--bitbucket::before {\n background-image: url(\"../images/icons/bitbucket-white.svg\");\n }\n\n // Code is hosted on GitHub\n &--github::before {\n background-image: url(\"../images/icons/github-white.svg\");\n }\n\n // Code is hosted on GitLab\n &--gitlab::before {\n background-image: url(\"../images/icons/gitlab-white.svg\");\n }\n\n // Repository name\n &__repository {\n display: inline-block;\n max-width: 100%;\n margin-left: 0.8rem;\n font-weight: 700;\n text-overflow: ellipsis;\n overflow: hidden;\n vertical-align: middle;\n }\n\n // Source facts (statistics etc.)\n &__facts {\n margin: 0;\n padding: 0;\n font-size: 1.1rem;\n font-weight: 700;\n opacity: 0.75;\n list-style-type: none;\n }\n\n // Fact\n &__fact {\n float: left;\n transform: translateY(0%);\n transition:\n transform 0.25s cubic-bezier(0.1, 0.7, 0.1, 1.0),\n opacity 0.25s;\n opacity: 1;\n\n // Facts are hidden by default\n &--hidden {\n transform: translateY(100%);\n opacity: 0;\n }\n\n // Middle dots before fact\n &::before {\n margin: 0 0.2rem;\n content: \"\\00B7\";\n }\n\n // Remove middle dot on first fact\n &:first-child::before {\n display: none;\n }\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Admonition extension\n.admonition {\n margin: 2.0rem 0;\n padding: 0.8rem 1.2rem;\n border-left: 0.4rem solid $clr-blue-a200;\n border-radius: 0 0.2rem 0.2rem 0;\n background: transparentize($clr-blue-a200, 0.95);\n\n // Title\n &-title {\n color: $clr-blue-a400;\n font-size: ms(-1);\n font-weight: 700;\n line-height: 2;\n text-transform: uppercase;\n\n // Remove bottom spacing for title\n html & {\n margin-bottom: 0;\n }\n\n // Remove top spacing for first element following title\n html & + * {\n margin-top: 0;\n }\n\n // Icon\n &::before {\n @extend %md-icon;\n\n margin-right: 0.45em;\n font-size: 2.0rem;\n content: \"edit\";\n vertical-align: -0.25em;\n }\n }\n\n // Remove spacing on first element\n :first-child {\n margin-top: 0;\n }\n\n // Remove spacing on last element\n :last-child {\n margin-bottom: 0;\n }\n\n // Build representational classes\n @each $names, $appearance in (\n summary tldr: $clr-light-blue-a400 \"subject\",\n tip idea: $clr-teal-a700 \"whatshot\",\n success check done: $clr-green-a400 \"done\",\n warning attention important: $clr-orange-a400 \"warning\",\n failure fail missing: $clr-red-a200 \"clear\",\n danger caution: $clr-red-a400 \"flash_on\",\n error bug: $clr-pink-a400 \"bug_report\"\n ) {\n $tint: nth($appearance, 1);\n $icon: nth($appearance, 2);\n\n // Define base class\n &%#{nth($names, 1)},\n &.#{nth($names, 1)} {\n border-color: $tint;\n background: transparentize($tint, 0.95);\n\n // Set color for title\n .admonition-title {\n color: $tint;\n\n // Icon\n &::before {\n content: $icon;\n }\n }\n }\n\n // Define synonyms for base class\n @if length($names) > 1 {\n @for $n from 2 through length($names) {\n &.#{nth($names, $n)} {\n @extend .admonition%#{nth($names, 1)};\n }\n }\n }\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Variables\n// ----------------------------------------------------------------------------\n\n// Keywords\n$codehilite-keyword: #3B78E7;\n$codehilite-keyword-declaration: #3B78E7;\n$codehilite-keyword-namespace: #3B78E7;\n$codehilite-keyword-reserved: #3E61A2;\n$codehilite-keyword-type: #3E61A2;\n\n// Comments\n$codehilite-comment: #999999;\n$codehilite-comment-multiline: #999999;\n$codehilite-comment-preproc: #666666;\n$codehilite-comment-single: #999999;\n$codehilite-comment-special: #999999;\n\n// Names\n$codehilite-name-attribute: #C2185B;\n$codehilite-name-builtin: #C2185B;\n$codehilite-name-builtin-pseudo: #3E61A2;\n$codehilite-name-class: #C2185B;\n$codehilite-name-constant: #3E61A2;\n$codehilite-name-decorator: #666666;\n$codehilite-name-entity: #666666;\n$codehilite-name-exception: #C2185B;\n$codehilite-name-function: #C2185B;\n$codehilite-name-label: #3B5179;\n$codehilite-name-namespace: #EC407A;\n$codehilite-name-tag: #3B78E7;\n$codehilite-name-variable: #3E61A2;\n$codehilite-name-variable-class: #3E61A2;\n$codehilite-name-variable-instance: #3E61A2;\n$codehilite-name-variable-global: #3E61A2;\n$codehilite-name-extension: #EC407A;\n\n// Literals\n$codehilite-literal-string: #0D904F; // #1eec86 for dark background\n$codehilite-literal-string-backticks: #0D904F;\n$codehilite-literal-string-char: #0D904F;\n$codehilite-literal-string-doc: #999999;\n$codehilite-literal-string-double: #0D904F;\n$codehilite-literal-string-single: #0D904F;\n$codehilite-literal-string-symbol: #0D904F;\n\n// Numbers\n$codehilite-literal-number: #E74C3C;\n$codehilite-literal-number-float: #E74C3C;\n$codehilite-literal-number-hex: #E74C3C;\n$codehilite-literal-number-integer: #E74C3C;\n$codehilite-literal-number-integer-long: #E74C3C;\n$codehilite-literal-number-oct: #E74C3C;\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Codehilite extension\n.codehilite,\n.code {\n\n // Errors\n .err { color: #A61717; }\n\n // Operators\n .o { color: inherit; }\n\n // Generics\n .ge { color: #000000; } // Generic.Emph\n .gr { color: #AA0000; } // Generic.Error\n .gh { color: #999999; } // Generic.Heading\n .go { color: #888888; } // Generic.Output\n .gp { color: #555555; } // Generic.Prompt\n .gs { color: inherit; } // Generic.Strong\n .gu { color: #AAAAAA; } // Generic.Subheading\n .gt { color: #AA0000; } // Generic.Traceback\n\n // Keywords\n .k { color: $codehilite-keyword; }\n .kc { color: #A71D5D; } // Keyword.Constant\n .kd { color: $codehilite-keyword-declaration; }\n .kn { color: $codehilite-keyword-namespace; }\n .kp { color: #A71D5D; } // Keyword.Pseudo\n .kr { color: $codehilite-keyword-reserved; }\n .kt { color: $codehilite-keyword-type; }\n\n // Comments\n .c { color: $codehilite-comment; }\n .cm { color: $codehilite-comment-multiline; }\n .cp { color: $codehilite-comment-preproc; }\n .c1 { color: $codehilite-comment-single; }\n .cs { color: $codehilite-comment-special; }\n\n // Names\n .na { color: $codehilite-name-attribute; }\n .nb { color: $codehilite-name-builtin; }\n .bp { color: $codehilite-name-builtin-pseudo; }\n .nc { color: $codehilite-name-class; }\n .no { color: $codehilite-name-constant; }\n .nd { color: $codehilite-name-entity; }\n .ni { color: $codehilite-name-entity; }\n .ne { color: $codehilite-name-exception; }\n .nf { color: $codehilite-name-function; }\n .nl { color: $codehilite-name-label; }\n .nn { color: $codehilite-name-namespace; }\n .nt { color: $codehilite-name-tag; }\n .nv { color: $codehilite-name-variable; }\n .vc { color: $codehilite-name-variable-class; }\n .vg { color: $codehilite-name-variable-global; }\n .vi { color: $codehilite-name-variable-instance; }\n .nx { color: $codehilite-name-extension; }\n .ow { color: inherit; }\n\n // Numbers\n .m { color: $codehilite-literal-number; }\n .mf { color: $codehilite-literal-number-float; }\n .mh { color: $codehilite-literal-number-hex; }\n .mi { color: $codehilite-literal-number-integer; }\n .il { color: $codehilite-literal-number-integer-long; }\n .mo { color: $codehilite-literal-number-oct; }\n\n // Strings\n .s { color: $codehilite-literal-string; }\n .sb { color: $codehilite-literal-string-backticks; }\n .sc { color: $codehilite-literal-string-char; }\n .sd { color: $codehilite-literal-string-doc; }\n .s2 { color: $codehilite-literal-string-double; }\n .se { color: #183691; } // Literal.String.Escape\n .sh { color: #183691; } // Literal.String.Heredoc\n .si { color: #183691; } // Literal.String.Interpol\n .sx { color: #183691; } // Literal.String.Other\n .sr { color: #009926; } // Literal.String.Regex\n .s1 { color: $codehilite-literal-string-single; }\n .ss { color: $codehilite-literal-string-symbol; }\n\n // Diffs\n .gd { background-color: #FFDDDD; } // Generic.Deleted\n .gi { background-color: #DDFFDD; } // Generic.Inserted\n\n // Miscellaneous\n .w { color: transparent; } // Text.Whitespace\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Footnotes extension\n.footnote {\n color: $md-color-black--light;\n font-size: 80%;\n\n // Remove additional spacing on footnotes\n ol {\n margin-left: 0;\n }\n\n // Single footnote\n li {\n\n // TODO: this doesn't work entirely\n // &::before {\n // display: block;\n // content: \"\";\n // padding-top: (5.6rem + 2.4rem + 0.4rem);\n // margin-top: -(5.6rem + 2.4rem + 0.4rem);\n // }\n\n // Make back references visible on hover\n &:hover .footnote-backref,\n &:target .footnote-backref {\n transform: translateX(0);\n opacity: 1;\n }\n\n // Active or targeted back reference\n &:hover .footnote-backref:hover,\n &:target .footnote-backref {\n color: $md-color-accent;\n }\n }\n\n // Correct anchor offset\n &-ref::before {\n position: absolute;\n margin-top: -(5.6rem + 2.4rem);\n padding-top: (5.6rem + 2.4rem);\n content: \"\";\n pointer-events: none;\n }\n\n // Make back reference text transparent for icon\n &-backref {\n @extend %md-icon;\n\n position: absolute;\n transform: translateX(0.5rem);\n transition: transform 0.25s 0.125s,\n color 0.25s,\n opacity 0.125s 0.125s;\n color: $md-color-black--lighter;\n font-size: 2.0rem;\n opacity: 0;\n vertical-align: middle;\n\n // Hack: remove Unicode arrow for icon\n &::first-letter {\n font-size: 0;\n }\n\n // Back reference icon\n &::after {\n content: \"keyboard_return\";\n }\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Scoped in typesetted content for greater specificity\n.md-typeset {\n\n // Permalinks extension\n .headerlink {\n display: inline-block;\n margin-left: 1.0rem;\n transform: translate(0, 0.5rem);\n transition: transform 0.25s 0.25s,\n color 0.25s,\n opacity 0.125s 0.25s;\n color: $md-color-black--lighter;\n opacity: 0;\n }\n\n // All headers with permalinks have ids\n [id] {\n\n // Make permalink visible on hover\n &:hover .headerlink,\n &:target .headerlink,\n & .headerlink:focus {\n transform: translate(0, 0);\n opacity: 1;\n }\n\n // Active or targeted permalink\n &:hover .headerlink:hover,\n &:target .headerlink,\n & .headerlink:focus {\n color: $md-color-accent;\n }\n }\n\n // Correct anchor offset of headlines\n @each $level, $delta in (\n h1: 3.0rem,\n h2: 0.2rem,\n h3: 0.4rem,\n h4: 0.6rem,\n h5: 1.0rem,\n h6: 1.0rem\n ) {\n #{$level}[id]::before {\n display: block;\n margin-top: -(5.6rem + 2.4rem + $delta);\n padding-top: (5.6rem + 2.4rem + $delta);\n content: \"\";\n }\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// TODO: cleanup redundant data-md-locked,\n// --> use hidden checkbox for reasons of label/button/trigger easyness...\n// TODO: set label for magnifying glasses onto search toggle\n// --> this way we can always use the search toggle and only need the locked state on the body!\n// --> question: how does this play with directly focusing the search field!?\n\n.md-search__output {\n overflow-y: auto; // necessary for rounded borders\n // &::after {\n // display: block;\n // content: \"\";\n // width: 100%;\n // height: 20px;\n // background: red; // TODO: white shadow overlay to fade out result scrolling\n // }\n\n [data-md-locked] & {\n opacity: 1;\n }\n\n width: 100%;\n\n opacity: 0;\n transition: opacity .4s, max-height .4s;\n\n\n text-align: left; // TODO: wrap with another div for this effect\n\n z-index: -1; // ??? wherefor? probably not necessary anymore.\n}\n\n@include break-to-device(tablet portrait) {\n .md-search__output {\n position: absolute;\n top: 5.6rem;\n bottom: 0;\n\n background:\n \t\tlinear-gradient(white 10%, rgba(255,255,255,0)), // cover\n linear-gradient(to bottom, rgba(0, 0, 0, 0.25),\n rgba(0, 0, 0, 0.125) 20%,\n rgba(0, 0, 0, 0) 60%); // shadow\n \tbackground-repeat: no-repeat;\n \tbackground-color: white;\n \tbackground-size: 100% 20px, 100% 10px;\n\n \t// Opera doesn't support this in the shorthand\n \tbackground-attachment: local, scroll;\n }\n .md-search-result__item {\n // margin: 0.8rem;\n }\n .md-search-result__link {\n padding: 0 1.6rem;\n // background: white;\n // border-radius: 0.2rem;\n // @include z-depth(2);\n }\n .md-search-result__meta {\n padding-left: 1.6rem;\n border-top: 0.1rem solid rgba(0, 0, 0, 0.07);\n }\n}\n\n@include break-from-device(tablet landscape) {\n\n // Scroll shadow - WIP\n .md-search__output {\n @include z-depth(6);\n\n background: $md-color-white;\n // color: red;\n border-top: 0.1rem solid $md-color-black--lightest; // TODO: box-shadow inset!\n border-radius: 0 0 0.3rem 0.3rem; // ???\n position: absolute; // must be absolute, or header nav will stretch\n max-height: 0vh; // TODO: can this be done in percent!?!?!?\n [data-md-locked] & {\n max-height: 75vh;\n }\n\n // Override native scrollbar styles\n &::-webkit-scrollbar {\n width: 0.4rem;\n height: 0.4rem;\n\n // Style scrollbar thumb\n &-thumb {\n background-color: $md-color-black--lighter;\n\n // Hovered scrollbar thumb\n &:hover {\n background-color: $md-color-accent;\n }\n }\n }\n\n \tbackground:\n \t\tlinear-gradient(white 10%, rgba(255,255,255,0)), // cover\n linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2) 20%, rgba(0, 0, 0, 0) 60%); // shadow\n \tbackground-repeat: no-repeat;\n \tbackground-color: white;\n \tbackground-size: 100% 20px, 100% 5px;\n\n \t/* Opera doesn't support this in the shorthand */\n \tbackground-attachment: local, scroll;\n }\n}\n\n.md-search-result {\n\n\n &__meta {\n color: $md-color-black--light;\n padding-left: 4.8rem;\n padding-right: 1.6rem;\n line-height: 4.0rem;\n font-size: ms(-1);\n\n }\n\n &__list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n border-top: 0.1rem solid $md-color-black--lightest;\n }\n\n &__item {\n // background: yellow;\n\n // border-top: 0.1rem solid $md-color-black--lightest;\n }\n\n\n &__link {\n overflow: auto;\n display: block;\n padding-left: 4.8rem;\n padding-right: 1.6rem;\n transition: background 0.25s;\n\n &:hover {\n background: transparentize($md-color-accent, 0.9);\n }\n }\n\n &__title {\n color: $md-color-black;\n font-size: ms(0);\n line-height: 1.4;\n margin-top: 0.5em;\n }\n\n &__description {\n color: $md-color-black--light;\n font-size: ms(-1);\n line-height: 1.4;\n margin: 0.5em 0;;\n }\n}\n\n// .md-nav--secondary > .md-nav__title {\n// // -webkit-overflow-scrolling: touch;\n// @include z-depth(1);\n// }\n\n\n// // add light border for more contrast\n// .md-typeset pre {\n// border: 1px solid rgba(0,0,0,0.0125);\n// }\n\n\n// .md-search__suggest {\n//\n//\n// background: $md-color-white;\n// border-radius: 0 0 0.3rem 0.3rem;\n// color: #000000;\n// text-align: left;\n// border-top: 0.1rem solid $md-color-black--lightest;\n// display: none; // TODO: doesnt work due to display: none;\n// opacity: 0;\n//\n// // overflow: auto;\n// transition: opacity .3s;\n// // pointer-events: none;\n//\n//\n// .md-search__input:focus ~ & {\n// // animation: anima .3s;\n// display: block;\n// opacity: 1;\n// }\n// }\n\n// TODO: only on tablet and bind to search active state!\n// .md-search__input:focus {\n// border-radius: 0.3rem 0.3rem 0 0;\n// }\n\n@include break-to-device(mobile landscape) {\n\n .md-search__suggest {\n position: relative;\n z-index: 2;\n }\n}\n\n.md-search-term {\n position: relative;\n padding: 0 0.8rem 0 4.8rem;\n line-height: 4.0rem; // don't use line height????\n font-size: 1.6rem;\n\n &::before {\n @extend %md-icon;\n\n position: absolute;\n\n content: \"access_time\";\n font-size: 2.4rem;\n line-height: 4.0rem; // this sucks...\n left: 1.2rem;\n color: $md-color-black--lighter;\n }\n transition: background .25s;\n cursor: pointer;\n &:hover {\n background: mix($md-color-white, $md-color-primary, 90%);\n }\n}\n\n\n\n\n\n\n\n\n\n.checklist {\n\n li {\n position: relative;\n list-style-type: none;\n\n &::before {\n @extend %md-icon;\n\n position: absolute;\n appearance: none;\n color: blue;\n\n content: \"check_box\";\n font-size: 2.4rem;\n }\n }\n\n input[type=\"checkbox\"]:checked {\n width: 20px;\n // & ~ .checklist li::after {\n // color: red;\n // }\n }\n}\n\n// Inline code blocks\nins.critic, del.critic, mark {\n margin: 0 0.4rem;\n padding: 0.1rem 0;\n word-break: break-word;\n box-decoration-break: clone;\n\n border-radius: 0.2rem;\n\n // &::before {\n // @extend %md-icon;\n //\n // color: $md-color-black--light;\n //\n // font-size: 1.6rem;\n // padding-right: 0.2rem;\n // vertical-align: -0.2rem;\n // }\n}\n\nins.critic {\n background: #DDFFDD;\n box-shadow: 0.4rem 0 0 #DDFFDD,\n -0.4rem 0 0 #DDFFDD;\n text-decoration: none;\n // &::before {\n // content: \"add\";\n // }\n}\n\ndel.critic {\n background: #FFDDDD;\n box-shadow: 0.4rem 0 0 #FFDDDD,\n -0.4rem 0 0 #FFDDDD;\n //\n // &::before {\n // content: \"remove\";\n // }\n}\n\n// Not critic-specific!\nmark {\n background: #FFFF00;\n box-shadow: 0.4rem 0 0 #FFFF00,\n -0.4rem 0 0 #FFFF00; // ligher yellow...\n overflow: auto; // TODO: remove this, just needed to rebuild\n}\n\n.critic.comment {\n margin: 0 0.4rem;\n padding: 0.1rem 0;\n border-radius: 0.2rem;\n background: #F0F0F0;\n color: #37474F;\n // font-size: 85%;\n box-shadow: 0.4rem 0 0 #F0F0F0,\n -0.4rem 0 0 #F0F0F0; // darker than code!!!\n box-decoration-break: clone;\n\n &::before {\n @extend %md-icon;\n\n color: $md-color-black--lighter;\n\n content: \"chat\";\n font-size: 1.6rem;\n padding-right: 0.2rem;\n vertical-align: -0.2rem;\n }\n}\n\n.md-button {\n float: right;\n margin-top: 9px;\n font-size: 13px;\n padding-left: 2.6rem;\n font-weight: 700;\n text-transform: uppercase;\n}\n\n.task-list-item {\n list-style-type: none;\n}\n\n.task-list-item input {\n margin: 0 4px 0.25em -20px;\n vertical-align: middle;\n}\n//\n//\n//\n.task-list-item {\n position: relative;\n}\n\n.task-list-item input[type=\"checkbox\"] {\n opacity: 0;\n}\n\n.task-list-item input[type=\"checkbox\"] + label {\n display: block;\n position: absolute;\n top: 50%;\n left: -24px;\n width: 16px;\n margin-top: -8px;\n height: 16px;\n border-radius: 2px;\n background: #CCC;\n}\n\n.task-list-item input[type=\"checkbox\"]:checked + label::before {\n display: block;\n margin-top: -4px;\n margin-left: 2px;\n font-size: 1.2em;\n line-height: 1;\n border-radius: 2px;\n content: \"✔\";\n color: #1EBB52;\n}\n\n.codehilite .hll {\n background: #FFFF00;\n display: block;\n margin: 0 -16px;\n padding: 0 16px;\n}\n\n// TODO: integrate stylelint and property order!\n\n\n.md-typeset {\n sup {\n // background: $md-color-black--lighter;\n padding: 0 0.125em;\n border-radius: 0.2em;\n // font-weight: bold;\n // color: $md-color-white;\n &[id]:target {\n background: orange;\n }\n\n a {\n // color: white;\n }\n }\n}\n\n// TODO: remove jitter\n// .md-search,\n// .md-search__inner,\n// .md-search__form {\n// text-align: right;\n// }\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Variables\n// ----------------------------------------------------------------------------\n\n///\n/// Device-specific breakpoints\n///\n/// @example\n/// $break-devices: (\n/// mobile: (\n/// portrait: 220px 479px,\n/// landscape: 480px 719px\n/// ),\n/// tablet: (\n/// portrait: 720px 959px,\n/// landscape: 960px 1199px\n/// ),\n/// screen: (\n/// small: 1200px 1599px,\n/// medium: 1600px 1999px,\n/// large: 2000px\n/// )\n/// );\n///\n/// @group helpers\n/// @access private\n/// @type Map\n///\n$break-devices: () !default;\n\n// ----------------------------------------------------------------------------\n// Helpers\n// ----------------------------------------------------------------------------\n\n///\n/// Choose minimum and maximum device widths\n///\n/// @group helpers\n/// @access private\n/// @param {Map} $devices Map of devices\n/// @return {List} Minimum and maximum width\n///\n@function break-select-min-max($devices) {\n $min: 1000000;\n $max: 0;\n @each $key, $value in $devices {\n @while type-of($value) == map {\n $value: break-select-min-max($value);\n }\n @if type-of($value) == list {\n @each $number in $value {\n @if type-of($number) == number {\n $min: min($number, $min);\n @if $max != null {\n $max: max($number, $max);\n }\n } @else {\n @error \"Invalid number: #{$number}\";\n }\n }\n } @elseif type-of($value) == number {\n $min: min($value, $min);\n $max: null;\n } @else {\n @error \"Invalid value: #{$value}\";\n }\n }\n @return $min, $max;\n}\n\n///\n/// Select minimum and maximum widths for a device breakpoint\n///\n/// @group helpers\n/// @access private\n/// @param {String} $device Device\n/// @return {List} Minimum and maximum width\n///\n@function break-select-device($device) {\n $current: $break-devices;\n @for $n from 1 through length($device) {\n @if type-of($current) == map {\n $current: map-get($current, nth($device, $n));\n } @else {\n @error \"Invalid device map: #{$devices}\";\n }\n }\n @if type-of($current) == list or\n type-of($current) == number {\n $current: (default: $current);\n }\n @return break-select-min-max($current);\n}\n\n// ----------------------------------------------------------------------------\n// Mixins\n// ----------------------------------------------------------------------------\n\n///\n/// A minimum-maximum media query breakpoint\n///\n/// @group helpers\n/// @access public\n/// @param {Number|List} $breakpoint Number or number pair\n///\n@mixin break-at($breakpoint) {\n @if type-of($breakpoint) == number {\n @media only screen and (min-width: $breakpoint) {\n @content;\n }\n } @elseif type-of($breakpoint) == list {\n $min: nth($breakpoint, 1);\n $max: nth($breakpoint, 2);\n @if type-of($min) == number and type-of($max) == number {\n @media only screen and (min-width: $min) and (max-width: $max) {\n @content;\n }\n } @else {\n @error \"Invalid breakpoint: #{$breakpoint}\";\n }\n } @else {\n @error \"Invalid breakpoint: #{$breakpoint}\";\n }\n}\n\n///\n/// An orientation media query breakpoint\n///\n/// @group helpers\n/// @access public\n/// @param {String} $breakpoint Orientation\n///\n@mixin break-at-orientation($breakpoint) {\n @if type-of($breakpoint) == string {\n @media only screen and (orientation: $breakpoint) {\n @content;\n }\n } @else {\n @error \"Invalid breakpoint: #{$breakpoint}\";\n }\n}\n\n///\n/// A maximum-aspect-ratio media query breakpoint\n///\n/// @group helpers\n/// @access public\n/// @param {Number} $breakpoint Ratio\n///\n@mixin break-at-ratio($breakpoint) {\n @if type-of($breakpoint) == number {\n @media only screen and (max-aspect-ratio: $breakpoint) {\n @content;\n }\n } @else {\n @error \"Invalid breakpoint: #{$breakpoint}\";\n }\n}\n\n///\n/// A minimum-maximum media query device breakpoint\n///\n/// @group helpers\n/// @access public\n/// @param {String|List} $breakpoint Device\n///\n@mixin break-at-device($device) {\n @if type-of($device) == string {\n $device: $device,;\n }\n @if type-of($device) == list {\n $breakpoint: break-select-device($device);\n @if nth($breakpoint, 2) != null {\n $min: nth($breakpoint, 1);\n $max: nth($breakpoint, 2);\n @media only screen and (min-width: $min) and (max-width: $max) {\n @content;\n }\n } @else {\n @error \"Invalid device: #{$device}\";\n }\n } @else {\n @error \"Invalid device: #{$device}\";\n }\n}\n\n///\n/// A minimum media query device breakpoint\n///\n/// @group helpers\n/// @access public\n/// @param {String|List} $breakpoint Device\n///\n@mixin break-from-device($device) {\n @if type-of($device) == string {\n $device: $device,;\n }\n @if type-of($device) == list {\n $breakpoint: break-select-device($device);\n $min: nth($breakpoint, 1);\n @media only screen and (min-width: $min) {\n @content;\n }\n } @else {\n @error \"Invalid device: #{$device}\";\n }\n}\n\n///\n/// A maximum media query device breakpoint\n///\n/// @group helpers\n/// @access public\n/// @param {String|List} $breakpoint Device\n///\n@mixin break-to-device($device) {\n @if type-of($device) == string {\n $device: $device,;\n }\n @if type-of($device) == list {\n $breakpoint: break-select-device($device);\n $max: nth($breakpoint, 2);\n @media only screen and (max-width: $max) {\n @content;\n }\n } @else {\n @error \"Invalid device: #{$device}\";\n }\n}\n"],"sourceRoot":"/source/"} \ No newline at end of file +{"version":3,"sources":["application.css","base/_reset.scss","base/_icons.scss","_config.scss","base/_typeset.scss","../../../node_modules/modularscale-sass/stylesheets/modular-scale/_calc.scss","../../../node_modules/material-design-color/material-color.scss","layout/_base.scss","layout/_content.scss","layout/_header.scss","../../../node_modules/material-shadows/material-shadows.scss","layout/_footer.scss","layout/_nav.scss","layout/_search.scss","layout/_sidebar.scss","layout/_source.scss","extensions/_admonition.scss","extensions/_codehilite.scss","extensions/_footnotes.scss","extensions/_permalinks.scss","_shame.scss","helpers/_break.scss"],"names":[],"mappings":"AAAA,iBAAiB;AC4BjB;EACU,uBAAuB;EAC5B,4BAA4B;EAC/B,+BAA+B,EAChC;;AAGD;;;EAGU,oBAAoB;EACzB,yBAAyB;EAC5B,4BAA4B,EAC7B;;AAGD;EACE,+BAAuB;MAAvB,2BAAuB;UAAvB,uBAAuB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AkB,EA0CrB;EO1KD;IACE,mBAAmB;IACnB,YAAY;IACZ,UAAU;IAEV,qKAEiB;IAFjB,2JAEiB;IAGlB,6BAA6B;IAC7B,wBAAwB;IACxB,sCAAsC;IAGtC,qCAAqC,EACrC;EAID;IACE,kBAAkB,EAInB;EACD;IACE,qBAAqB;IACrB,6CAA6B,EAC9B,ERiPE;ESnIC;ER1KN;IAuDQ,6BAAgB;IAAhB,qBAAgB,EAOnB,EAAA;EQ4GC;ER1KN;IA4DQ,6BAAgB;IAAhB,qBAAgB,EAEnB,EAAA;EQqID;EPnMJ;IA2EU,sBAAsB,EAEzB,EAAA","file":"application.css","sourcesContent":["@charset \"UTF-8\";\nhtml {\n box-sizing: border-box;\n -moz-box-sizing: border-box;\n -webkit-box-sizing: border-box; }\n\n*,\n*::before,\n*::after {\n box-sizing: inherit;\n -moz-box-sizing: inherit;\n -webkit-box-sizing: inherit; }\n\nhtml {\n text-size-adjust: none; }\n\nbody {\n margin: 0; }\n\narticle,\naside,\nfigcaption,\nfigure,\nfooter,\nheader,\nmain,\nnav,\nsection {\n display: block; }\n\nhr {\n overflow: visible;\n box-sizing: content-box; }\n\na {\n color: inherit;\n text-decoration: none; }\n a:active, a:hover {\n outline-width: 0; }\n\na {\n -webkit-text-decoration-skip: objects; }\n\na,\nbutton,\nlabel,\ninput {\n -webkit-tap-highlight-color: transparent; }\n\nsmall {\n font-size: 80%; }\n\nsub,\nsup {\n position: relative;\n font-size: 80%;\n line-height: 0;\n vertical-align: baseline; }\n\nsub {\n bottom: -0.25em; }\n\nsup {\n top: -0.5em; }\n\nimg {\n border-style: none; }\n\ntable {\n border-collapse: collapse;\n border-spacing: 0; }\n\ntd,\nth {\n font-weight: normal;\n text-align: left;\n vertical-align: top; }\n\nbutton {\n padding: 0;\n border: 0;\n outline: 0;\n background: transparent;\n font-size: inherit; }\n\ninput {\n border: 0;\n outline: 0; }\n\n.md-icon, .md-nav__title::before, .md-nav__link::after, .admonition-title::before, .footnote-backref, .md-search-term::before, .checklist li::before, .critic.comment::before {\n font-family: \"Material Icons\";\n font-style: normal;\n font-variant: normal;\n font-weight: normal;\n line-height: 1;\n text-transform: none;\n white-space: nowrap;\n speak: none;\n word-wrap: normal;\n direction: ltr;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale; }\n .md-header-nav__icon, .md-footer-nav__icon, .md-nav__title::before {\n display: inline-block;\n margin: 0.4rem;\n padding: 0.8rem;\n font-size: 2.4rem;\n cursor: pointer; }\n\n.md-icon--back::before {\n content: \"arrow_back\"; }\n\n.md-icon--forward::before {\n content: \"arrow_forward\"; }\n\nbody,\ninput {\n color: rgba(0, 0, 0, 0.87);\n font-family: \"Roboto\", Helvetica, Arial, sans-serif;\n font-weight: 400;\n font-feature-settings: \"kern\", \"onum\", \"liga\";\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale; }\n .no-fontface body, .no-fontface\n input {\n font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; }\n\npre,\ncode,\nkbd {\n color: rgba(0, 0, 0, 0.87);\n font-family: \"Roboto Mono\", \"Courier New\", Courier, monospace;\n font-weight: 400;\n font-feature-settings: \"kern\", \"onum\", \"liga\"; }\n .no-fontface pre, .no-fontface\n code, .no-fontface\n kbd {\n font-family: \"Courier New\", Courier, monospace; }\n\n.md-typeset {\n font-size: 1.6rem;\n line-height: 1.6; }\n .md-typeset p,\n .md-typeset ul,\n .md-typeset ol,\n .md-typeset blockquote {\n margin: 1.0em 0; }\n .md-typeset h1 {\n margin: 0 0 4.0rem;\n color: rgba(0, 0, 0, 0.54);\n font-size: 3.125rem;\n font-weight: 300;\n letter-spacing: -0.01em;\n line-height: 1.3; }\n .md-typeset h2 {\n margin: 4.0rem 0 1.6rem;\n font-size: 2.5rem;\n font-weight: 300;\n letter-spacing: -0.01em;\n line-height: 1.4; }\n .md-typeset h3 {\n margin: 3.2rem 0 1.6rem;\n font-size: 2rem;\n font-weight: 400;\n letter-spacing: -0.01em;\n line-height: 1.5; }\n .md-typeset h2 + h3 {\n margin-top: 1.6rem; }\n .md-typeset h4 {\n margin: 1.6rem 0;\n font-size: 1.6rem;\n font-weight: 700;\n letter-spacing: -0.01em; }\n .md-typeset h5,\n .md-typeset h6 {\n margin: 1.6rem 0;\n color: rgba(0, 0, 0, 0.54);\n font-size: 1.28rem;\n font-weight: 700;\n letter-spacing: -0.01em; }\n .md-typeset h5 {\n text-transform: uppercase; }\n .md-typeset hr {\n margin: 2.4rem 0;\n border-bottom: 0.1rem dotted rgba(0, 0, 0, 0.26); }\n .md-typeset a {\n color: #3f51b5; }\n .md-typeset a, .md-typeset a::before {\n transition: color 0.125s; }\n .md-typeset a:hover, .md-typeset a:active {\n color: #536dfe; }\n .md-typeset code {\n margin: 0 0.4rem;\n padding: 0.1rem 0;\n border-radius: 0.2rem;\n background: rgba(0, 0, 0, 0.035);\n color: #37474F;\n font-size: 85%;\n box-shadow: 0.4rem 0 0 rgba(0, 0, 0, 0.035), -0.4rem 0 0 rgba(0, 0, 0, 0.035);\n word-break: break-word;\n box-decoration-break: clone; }\n .md-typeset h1 code,\n .md-typeset h2 code,\n .md-typeset h3 code,\n .md-typeset h4 code,\n .md-typeset h5 code,\n .md-typeset h6 code {\n margin: 0;\n background: transparent;\n box-shadow: none; }\n .md-typeset pre {\n margin: 1.0em 0;\n padding: 1.0rem 1.2rem;\n border-radius: 0.2rem;\n background: rgba(0, 0, 0, 0.035);\n color: #37474F;\n font-size: 85%;\n line-height: 1.4;\n overflow: auto;\n -webkit-overflow-scrolling: touch; }\n .md-typeset pre > code {\n font-size: inherit; }\n @media only screen and (max-width: 44.9375em) {\n .md-typeset > div > pre,\n .md-typeset > pre > code {\n margin: 1.0em -1.6rem;\n padding: 1.0rem 1.6rem;\n border-radius: 0; } }\n .md-typeset > div > pre::-webkit-scrollbar,\n .md-typeset > pre > code::-webkit-scrollbar {\n width: 0.4rem;\n height: 0.4rem; }\n .md-typeset > div > pre::-webkit-scrollbar-thumb,\n .md-typeset > pre > code::-webkit-scrollbar-thumb {\n background: rgba(0, 0, 0, 0.26); }\n .md-typeset kbd {\n display: inline-block;\n padding: 0.4rem 0.5rem 0.5rem;\n border: 0.1rem solid #c9c9c9;\n border-radius: 0.2rem;\n border-bottom-color: #bcbcbc;\n background-color: #FCFCFC;\n color: #555555;\n font-size: 85%;\n line-height: 1.0rem;\n box-shadow: 0 -0.1rem 0 #b0b0b0 inset;\n vertical-align: 0.1rem;\n word-break: break-word; }\n .md-typeset small {\n opacity: 0.75; }\n .md-typeset sup,\n .md-typeset sub {\n margin-left: 0.1rem; }\n .md-typeset blockquote {\n padding-left: 1.2rem;\n border-left: 0.4rem solid rgba(0, 0, 0, 0.26);\n color: rgba(0, 0, 0, 0.54); }\n .md-typeset ul {\n list-style-type: disc; }\n .md-typeset ol ol {\n list-style-type: lower-alpha; }\n .md-typeset ol ol ol {\n list-style-type: lower-roman; }\n .md-typeset ul,\n .md-typeset ol {\n margin-left: 1.0rem;\n padding: 0; }\n .md-typeset ul li,\n .md-typeset ol li {\n margin-bottom: 0.5em;\n margin-left: 2.0rem; }\n .md-typeset ul li p,\n .md-typeset ul li blockquote,\n .md-typeset ol li p,\n .md-typeset ol li blockquote {\n margin: 0.5em 0; }\n .md-typeset ul li:last-child,\n .md-typeset ol li:last-child {\n margin-bottom: 0; }\n .md-typeset ul li ul,\n .md-typeset ul li ol,\n .md-typeset ol li ul,\n .md-typeset ol li ol {\n margin-bottom: 1.0rem;\n margin-left: 1.0rem;\n padding-top: 1.0rem; }\n\nhtml {\n height: 100%;\n font-size: 62.5%; }\n @media only screen and (min-width: 100em) {\n html {\n font-size: 68.75%; } }\n @media only screen and (min-width: 125em) {\n html {\n font-size: 75%; } }\n\nbody {\n position: relative;\n min-height: 100%; }\n body[data-md-locked] {\n height: 100%;\n overflow: hidden; }\n\nhr {\n display: block;\n height: 0.1rem;\n padding: 0;\n border: 0; }\n\n.md-grid {\n max-width: 120.0rem;\n margin-right: auto;\n margin-left: auto; }\n\n.md-container,\n.md-main {\n overflow: auto; }\n\n.md-main {\n margin-top: 5.6rem; }\n .md-main__inner {\n margin-top: 3rem;\n margin-bottom: 9.2rem;\n overflow: auto; }\n\n.md-toggle {\n display: none; }\n\n.md-overlay {\n position: fixed;\n top: 0;\n width: 0;\n height: 0;\n transition: width 0s 0.25s, height 0s 0.25s, opacity 0.25s;\n background: rgba(0, 0, 0, 0.54);\n opacity: 0;\n z-index: 2; }\n @media only screen and (max-width: 74.9375em) {\n .md-toggle--drawer:checked ~ .md-overlay {\n width: 100%;\n height: 100%;\n transition: width 0s, height 0s, opacity 0.25s;\n opacity: 1; } }\n\n.md-flex {\n display: table; }\n .md-flex__cell {\n display: table-cell;\n position: relative;\n vertical-align: top; }\n .md-flex__cell--shrink {\n width: 0%; }\n .md-flex__cell--stretch {\n display: table;\n width: 100%;\n table-layout: fixed; }\n .md-flex__ellipsis {\n display: table-cell;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden; }\n\n@media only screen and (min-width: 60em) {\n .md-content {\n margin-right: 24.2rem; } }\n\n@media only screen and (min-width: 75em) {\n .md-content {\n margin-left: 24.2rem; } }\n\n.md-content__inner {\n margin: 2.4rem 1.6rem; }\n @media only screen and (min-width: 75em) {\n .md-content__inner {\n margin: 2.4rem; } }\n\n.md-content__copyright {\n display: block; }\n\n.md-header {\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);\n position: fixed;\n top: 0;\n right: 0;\n left: 0;\n height: 5.6rem;\n background: #3f51b5;\n color: white;\n z-index: 1; }\n\n.md-header-nav {\n padding: 0.4rem; }\n .md-header-nav__icon {\n position: relative;\n transition: opacity 0.25s;\n z-index: 1; }\n .md-header-nav__icon:hover {\n opacity: 0.7; }\n .no-js .md-header-nav__icon--search {\n display: none; }\n @media only screen and (min-width: 60em) {\n .md-header-nav__icon--search {\n display: none; } }\n @media only screen and (max-width: 74.9375em) {\n .md-header-nav__icon--home {\n display: none; } }\n @media only screen and (min-width: 75em) {\n .md-header-nav__icon--menu {\n display: none; } }\n .md-header-nav__title {\n padding: 0 2.0rem;\n font-size: 1.8rem;\n line-height: 4.8rem; }\n .md-header-nav__source {\n display: none; }\n @media only screen and (min-width: 60em) {\n .md-header-nav__source {\n display: block;\n width: 23.0rem;\n max-width: 23.0rem;\n padding-right: 1.2rem; } }\n\n.md-footer {\n position: absolute;\n bottom: 0;\n width: 100%; }\n\n.md-footer-pagination {\n background: rgba(0, 0, 0, 0.87);\n color: white; }\n\n.md-footer-nav {\n padding: 0.4rem;\n overflow: auto; }\n .md-footer-nav__link {\n padding-top: 2.8rem;\n padding-bottom: 0.8rem;\n transition: opacity 0.25s; }\n @media only screen and (min-width: 30em) {\n .md-footer-nav__link {\n width: 50%; } }\n .md-footer-nav__link:hover {\n opacity: 0.7; }\n .md-footer-nav__link--prev {\n width: 25%;\n float: left; }\n @media only screen and (max-width: 29.9375em) {\n .md-footer-nav__link--prev .md-footer-nav__title {\n display: none; } }\n .md-footer-nav__link--next {\n width: 75%;\n float: right;\n text-align: right; }\n .md-footer-nav__icon {\n transition: background 0.25s; }\n .md-footer-nav__title {\n position: relative;\n padding: 0 0.4rem;\n font-size: 1.8rem;\n line-height: 4.8rem; }\n .md-footer-nav__direction {\n position: absolute;\n right: 0;\n left: 0;\n margin-top: -2.0rem;\n padding: 0 0.4rem;\n color: rgba(255, 255, 255, 0.7);\n font-size: 1.5rem; }\n\n.md-nav {\n font-size: 1.28rem;\n line-height: 1.3; }\n .md-nav--secondary {\n border-left: 0.4rem solid #3f51b5; }\n .md-nav__title {\n display: block;\n padding: 1.2rem 1.2rem 0;\n font-weight: 700;\n text-overflow: ellipsis;\n overflow: hidden; }\n .md-nav__title::before {\n display: none;\n content: \"arrow_back\"; }\n .md-nav__list {\n margin: 0;\n padding: 0;\n list-style: none; }\n .md-nav__item {\n padding: 0.625em 1.2rem 0; }\n .md-nav__item:last-child {\n padding-bottom: 1.2rem; }\n .md-nav__item .md-nav__item {\n padding-right: 0; }\n .md-nav__item .md-nav__item:last-child {\n padding-bottom: 0; }\n .md-nav__link {\n display: block;\n transition: color 0.125s;\n text-overflow: ellipsis;\n cursor: pointer;\n overflow: hidden; }\n .md-nav__item--nested > .md-nav__link::after {\n content: \"expand_more\"; }\n html .md-nav__link[for=\"toc\"] {\n display: none; }\n html .md-nav__link[for=\"toc\"] ~ .md-nav {\n display: none; }\n html .md-nav__link[for=\"toc\"] + .md-nav__link::after {\n display: none; }\n .md-nav__link[data-md-marked] {\n color: rgba(0, 0, 0, 0.54); }\n .md-nav__link:hover, .md-nav__link:active, .md-nav__link--active {\n color: #536dfe; }\n .md-nav__source {\n display: none; }\n @media only screen and (max-width: 74.9375em) {\n .md-nav--primary,\n .md-nav--primary .md-nav {\n display: flex;\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n flex-direction: column;\n height: 100%;\n z-index: 1; }\n .md-nav--primary {\n background: white; }\n .md-nav--primary .md-nav__toggle ~ .md-nav {\n box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.4);\n left: 0.4rem;\n background: white; }\n html .md-nav--primary .md-nav__title {\n position: relative;\n padding: 0.4rem 1.6rem 0.4rem 5.6rem;\n background: rgba(0, 0, 0, 0.07);\n color: rgba(0, 0, 0, 0.54);\n font-size: 1.8rem;\n font-weight: 400;\n line-height: 4.8rem;\n white-space: nowrap;\n cursor: pointer; }\n html .md-nav--primary .md-nav__title::before {\n display: block;\n position: absolute;\n left: 0.4rem;\n width: 4.0rem;\n height: 4.0rem;\n color: rgba(0, 0, 0, 0.54); }\n html .md-nav--primary .md-nav__title ~ .md-nav__list > .md-nav__item:first-child {\n border-top: 0; }\n .md-nav--primary .md-nav__list {\n flex: 1;\n overflow-y: scroll; }\n .md-nav--primary .md-nav__item {\n padding: 0;\n border-top: 0.1rem solid rgba(0, 0, 0, 0.07); }\n .md-nav--primary .md-nav__item--nested > .md-nav__link {\n padding-right: 4.8rem; }\n .md-nav--primary .md-nav__link {\n position: relative;\n padding: 1.6rem; }\n .md-nav--primary .md-nav__link::after {\n position: absolute;\n top: 50%;\n right: 1.2rem;\n transform: translateY(-50%) rotate(-90deg);\n transition: inherit;\n color: rgba(0, 0, 0, 0.54);\n font-size: 2.4rem; }\n .md-nav--primary .md-nav__link:hover::after {\n color: #536dfe; }\n .md-nav--primary .md-nav--secondary .md-nav {\n position: static; }\n .md-nav--primary .md-nav--secondary .md-nav .md-nav__link {\n padding-left: 2.8rem; }\n .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav__link {\n padding-left: 4.0rem; }\n .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav__link {\n padding-left: 5.2rem; }\n .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav .md-nav__link {\n padding-left: 6.4rem; }\n .md-nav__toggle ~ .md-nav {\n display: none; }\n .csstransforms3d .md-nav__toggle ~ .md-nav {\n display: block;\n transform: translateX(100%);\n transition: transform 0.25s cubic-bezier(0.8, 0, 0.6, 1), opacity 0.125s 0.05s;\n opacity: 0; }\n .md-nav__toggle:checked ~ .md-nav {\n display: block; }\n .csstransforms3d .md-nav__toggle:checked ~ .md-nav {\n transform: translateX(0);\n transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.125s 0.125s;\n opacity: 1; }\n .md-nav .md-nav__title,\n .md-nav .md-nav__item {\n font-size: 1.6rem;\n line-height: 1.4; } }\n @media only screen and (max-width: 59.9375em) {\n .md-nav--secondary {\n border-left: 0; }\n html .md-nav__link[for=\"toc\"] {\n display: block; }\n html .md-nav__link[for=\"toc\"]::after {\n transform: translateY(-50%);\n color: #536dfe;\n content: \"toc\"; }\n html .md-nav__link[for=\"toc\"] + .md-nav__link {\n display: none; }\n html .md-nav__link[for=\"toc\"] ~ .md-nav {\n display: flex; }\n .md-nav__source {\n display: block;\n padding: 0.4rem;\n background: rgba(0, 0, 0, 0.87);\n color: white; } }\n @media only screen and (min-width: 75em) {\n .md-nav.md-nav--transitioning {\n transition: max-height 0.25s cubic-bezier(0.86, 0, 0.07, 1); }\n .md-nav__toggle ~ .md-nav {\n max-height: 0;\n overflow: hidden; }\n .md-nav__toggle:checked ~ .md-nav, .md-nav.md-nav--toggled {\n max-height: 100%; }\n .md-nav__title + .md-nav__list .md-nav__title {\n display: none; }\n .md-nav__item--nested > .md-nav__link::after {\n display: inline-block;\n transform-origin: 0.45em 0.45em;\n transform-style: preserve-3d;\n vertical-align: -0.125em; }\n .js .md-nav__item--nested > .md-nav__link::after {\n transition: transform 0.4s; }\n .md-nav__item--nested .md-nav__toggle:checked ~ .md-nav__link::after {\n transform: rotateX(180deg); } }\n\n.no-js .md-search {\n display: none; }\n\n@media only screen and (min-width: 60em) {\n .md-search {\n padding: 0.4rem;\n padding-right: 3.2rem; } }\n\n.md-search__overlay {\n display: none;\n pointer-events: none; }\n @media only screen and (max-width: 59.9375em) {\n .md-search__overlay {\n display: block;\n position: absolute;\n top: 0.4rem;\n left: 0.4rem;\n width: 4.0rem;\n height: 4.0rem;\n transform-origin: center;\n transition: transform 0.3s 0.1s, opacity 0.2s 0.2s;\n border-radius: 2.0rem;\n background: white;\n opacity: 0;\n overflow: hidden;\n z-index: 1; }\n .md-toggle--search:checked ~ .md-header .md-search__overlay {\n transition: transform 0.4s, opacity 0.1s;\n opacity: 1; } }\n @media only screen and (max-width: 29.9375em) {\n .md-toggle--search:checked ~ .md-header .md-search__overlay {\n transform: scale(45); } }\n @media only screen and (min-width: 30em) and (max-width: 44.9375em) {\n .md-toggle--search:checked ~ .md-header .md-search__overlay {\n transform: scale(60); } }\n @media only screen and (min-width: 45em) and (max-width: 59.9375em) {\n .md-toggle--search:checked ~ .md-header .md-search__overlay {\n transform: scale(75); } }\n\n.md-search__inner {\n width: 100%; }\n @media only screen and (max-width: 59.9375em) {\n .md-search__inner {\n position: fixed;\n top: 0;\n left: 100%;\n height: 100%;\n transform: translateX(5%);\n transition: left 0s 0.3s, transform 0.15s 0.15s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s 0.15s;\n opacity: 0;\n z-index: 2; }\n .md-toggle--search:checked ~ .md-header .md-search__inner {\n left: 0;\n transform: translateX(0);\n transition: left 0s 0s, transform 0.15s 0.15s cubic-bezier(0.1, 0.7, 0.1, 1), opacity 0.15s 0.15s;\n opacity: 1; } }\n @media only screen and (min-width: 60em) {\n .md-search__inner {\n position: relative; } }\n\n@media only screen and (min-width: 60em) {\n .md-search__form {\n width: 23.0rem;\n transition: width 0.25s cubic-bezier(0.1, 0.7, 0.1, 1);\n border-radius: 0.2rem; }\n [data-md-locked] .md-search__form {\n width: 66.8rem; } }\n\n.md-search__icon {\n position: absolute;\n top: 0.8rem;\n left: 1.2rem;\n transition: color 0.25s;\n font-size: 2.4rem;\n cursor: pointer; }\n .md-search__icon::before {\n content: \"search\"; }\n @media only screen and (max-width: 59.9375em) {\n .md-search__icon {\n top: 1.6rem;\n left: 1.6rem; }\n .md-search__icon::before {\n content: \"arrow_back\"; } }\n\n.md-search__input {\n padding: 0 1.6rem 0 7.2rem;\n text-overflow: ellipsis; }\n .md-search__input + .md-search__icon, .md-search__input::placeholder {\n color: rgba(0, 0, 0, 0.54); }\n @media only screen and (max-width: 59.9375em) {\n .md-search__input {\n width: 100%;\n height: 5.6rem;\n font-size: 1.8rem; } }\n @media only screen and (min-width: 60em) {\n .md-search__input {\n width: 100%;\n height: 4.0rem;\n padding-left: 4.8rem;\n transition: background-color 0.25s, color 0.25s;\n border-radius: 0.2rem;\n background: rgba(0, 0, 0, 0.26);\n color: white;\n font-size: 1.6rem; }\n .md-search__input + .md-search__icon, .md-search__input::placeholder {\n transition: color 0.25s;\n color: white; }\n .md-search__input:hover {\n background: rgba(255, 255, 255, 0.12); }\n [data-md-locked] .md-search__input {\n border-radius: 0.2rem 0.2rem 0 0;\n background: white;\n color: rgba(0, 0, 0, 0.87);\n text-overflow: none; }\n [data-md-locked] .md-search__input + .md-search__icon, [data-md-locked] .md-search__input::placeholder {\n color: rgba(0, 0, 0, 0.54); } }\n\n.md-sidebar {\n position: relative;\n width: 24.2rem;\n float: left;\n overflow: visible; }\n .md-sidebar[data-md-locked] {\n position: fixed;\n top: 5.6rem; }\n .md-sidebar--primary {\n backface-visibility: hidden; }\n @media only screen and (max-width: 74.9375em) {\n .md-sidebar--primary {\n position: fixed;\n top: 0;\n left: -24.2rem;\n width: 24.2rem;\n height: 100%;\n transform: translateX(0);\n transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s;\n background: white;\n z-index: 2; }\n .no-csstransforms3d .md-sidebar--primary {\n display: none; }\n .md-toggle--drawer:checked ~ .md-container .md-sidebar--primary {\n box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.4);\n transform: translateX(24.2rem); }\n .no-csstransforms3d .md-toggle--drawer:checked ~ .md-container .md-sidebar--primary {\n display: block; }\n .md-sidebar--primary .md-sidebar__scrollwrap {\n overflow: hidden; } }\n .md-sidebar--secondary {\n display: none; }\n @media only screen and (min-width: 60em) {\n .md-sidebar--secondary {\n display: block;\n float: right; }\n .md-sidebar--secondary[data-md-locked] {\n margin-left: 100%;\n transform: translate(-100%, 0); } }\n @media only screen and (min-width: 60em) and (min-width: 75em) {\n .md-sidebar--secondary[data-md-locked] {\n margin-left: 120.0rem; } }\n .md-sidebar__scrollwrap {\n margin: 2.4rem 0.4rem;\n overflow-y: scroll; }\n @media only screen and (max-width: 74.9375em) {\n .md-sidebar--primary .md-sidebar__scrollwrap {\n margin: 0; } }\n .js .md-sidebar__scrollwrap {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0; }\n .md-sidebar__scrollwrap::-webkit-scrollbar {\n width: 0.4rem;\n height: 0.4rem; }\n .md-sidebar__scrollwrap::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.26); }\n .md-sidebar__scrollwrap::-webkit-scrollbar-thumb:hover {\n background-color: #536dfe; }\n @media only screen and (min-width: 75em) {\n .md-sidebar__inner {\n border-right: 0.1rem solid rgba(0, 0, 0, 0.07); } }\n\n.md-source {\n display: block;\n transition: opacity 0.25s;\n font-size: 1.3rem;\n line-height: 1.2;\n white-space: nowrap; }\n .md-source:hover {\n opacity: 0.7; }\n .md-source::before {\n display: inline-block;\n height: 4.8rem;\n content: \"\";\n vertical-align: middle; }\n .md-source--bitbucket::before, .md-source--github::before, .md-source--gitlab::before {\n width: 4.8rem;\n background-repeat: no-repeat;\n background-position: center;\n background-size: 2.4rem 2.4rem; }\n .md-source--bitbucket .md-source__repository, .md-source--github .md-source__repository, .md-source--gitlab .md-source__repository {\n margin-left: -4.4rem;\n padding-left: 4.0rem; }\n .md-source--bitbucket::before {\n background-image: url(\"../images/icons/bitbucket-white.svg\"); }\n .md-source--github::before {\n background-image: url(\"../images/icons/github-white.svg\"); }\n .md-source--gitlab::before {\n background-image: url(\"../images/icons/gitlab-white.svg\"); }\n .md-source__repository {\n display: inline-block;\n max-width: 100%;\n margin-left: 0.8rem;\n font-weight: 700;\n text-overflow: ellipsis;\n overflow: hidden;\n vertical-align: middle; }\n .md-source__facts {\n margin: 0;\n padding: 0;\n font-size: 1.1rem;\n font-weight: 700;\n opacity: 0.75;\n list-style-type: none; }\n .md-source__fact {\n float: left;\n transform: translateY(0%);\n transition: transform 0.25s cubic-bezier(0.1, 0.7, 0.1, 1), opacity 0.25s;\n opacity: 1; }\n .md-source__fact--hidden {\n transform: translateY(100%);\n opacity: 0; }\n .md-source__fact::before {\n margin: 0 0.2rem;\n content: \"\\00B7\"; }\n .md-source__fact:first-child::before {\n display: none; }\n\n.admonition {\n margin: 2.0rem 0;\n padding: 0.8rem 1.2rem;\n border-left: 0.4rem solid #448aff;\n border-radius: 0 0.2rem 0.2rem 0;\n background: rgba(68, 138, 255, 0.05); }\n .admonition-title {\n color: #2979ff;\n font-size: 1.28rem;\n font-weight: 700;\n line-height: 2;\n text-transform: uppercase; }\n html .admonition-title {\n margin-bottom: 0; }\n html .admonition-title + * {\n margin-top: 0; }\n .admonition-title::before {\n margin-right: 0.45em;\n font-size: 2.0rem;\n content: \"edit\";\n vertical-align: -0.25em; }\n .admonition :first-child {\n margin-top: 0; }\n .admonition :last-child {\n margin-bottom: 0; }\n .admonition.tldr, .admonition.summary {\n border-color: #00b0ff;\n background: rgba(0, 176, 255, 0.05); }\n .admonition.tldr .admonition-title, .admonition.summary .admonition-title {\n color: #00b0ff; }\n .admonition.tldr .admonition-title::before, .admonition.summary .admonition-title::before {\n content: \"subject\"; }\n .admonition.idea, .admonition.tip {\n border-color: #00bfa5;\n background: rgba(0, 191, 165, 0.05); }\n .admonition.idea .admonition-title, .admonition.tip .admonition-title {\n color: #00bfa5; }\n .admonition.idea .admonition-title::before, .admonition.tip .admonition-title::before {\n content: \"whatshot\"; }\n .admonition.check, .admonition.done, .admonition.success {\n border-color: #00e676;\n background: rgba(0, 230, 118, 0.05); }\n .admonition.check .admonition-title, .admonition.done .admonition-title, .admonition.success .admonition-title {\n color: #00e676; }\n .admonition.check .admonition-title::before, .admonition.done .admonition-title::before, .admonition.success .admonition-title::before {\n content: \"done\"; }\n .admonition.attention, .admonition.important, .admonition.warning {\n border-color: #ff9100;\n background: rgba(255, 145, 0, 0.05); }\n .admonition.attention .admonition-title, .admonition.important .admonition-title, .admonition.warning .admonition-title {\n color: #ff9100; }\n .admonition.attention .admonition-title::before, .admonition.important .admonition-title::before, .admonition.warning .admonition-title::before {\n content: \"warning\"; }\n .admonition.fail, .admonition.missing, .admonition.failure {\n border-color: #ff5252;\n background: rgba(255, 82, 82, 0.05); }\n .admonition.fail .admonition-title, .admonition.missing .admonition-title, .admonition.failure .admonition-title {\n color: #ff5252; }\n .admonition.fail .admonition-title::before, .admonition.missing .admonition-title::before, .admonition.failure .admonition-title::before {\n content: \"clear\"; }\n .admonition.caution, .admonition.danger {\n border-color: #ff1744;\n background: rgba(255, 23, 68, 0.05); }\n .admonition.caution .admonition-title, .admonition.danger .admonition-title {\n color: #ff1744; }\n .admonition.caution .admonition-title::before, .admonition.danger .admonition-title::before {\n content: \"flash_on\"; }\n .admonition.bug, .admonition.error {\n border-color: #f50057;\n background: rgba(245, 0, 87, 0.05); }\n .admonition.bug .admonition-title, .admonition.error .admonition-title {\n color: #f50057; }\n .admonition.bug .admonition-title::before, .admonition.error .admonition-title::before {\n content: \"bug_report\"; }\n\n.codehilite .err,\n.code .err {\n color: #A61717; }\n\n.codehilite .o,\n.code .o {\n color: inherit; }\n\n.codehilite .ge,\n.code .ge {\n color: #000000; }\n\n.codehilite .gr,\n.code .gr {\n color: #AA0000; }\n\n.codehilite .gh,\n.code .gh {\n color: #999999; }\n\n.codehilite .go,\n.code .go {\n color: #888888; }\n\n.codehilite .gp,\n.code .gp {\n color: #555555; }\n\n.codehilite .gs,\n.code .gs {\n color: inherit; }\n\n.codehilite .gu,\n.code .gu {\n color: #AAAAAA; }\n\n.codehilite .gt,\n.code .gt {\n color: #AA0000; }\n\n.codehilite .k,\n.code .k {\n color: #3B78E7; }\n\n.codehilite .kc,\n.code .kc {\n color: #A71D5D; }\n\n.codehilite .kd,\n.code .kd {\n color: #3B78E7; }\n\n.codehilite .kn,\n.code .kn {\n color: #3B78E7; }\n\n.codehilite .kp,\n.code .kp {\n color: #A71D5D; }\n\n.codehilite .kr,\n.code .kr {\n color: #3E61A2; }\n\n.codehilite .kt,\n.code .kt {\n color: #3E61A2; }\n\n.codehilite .c,\n.code .c {\n color: #999999; }\n\n.codehilite .cm,\n.code .cm {\n color: #999999; }\n\n.codehilite .cp,\n.code .cp {\n color: #666666; }\n\n.codehilite .c1,\n.code .c1 {\n color: #999999; }\n\n.codehilite .cs,\n.code .cs {\n color: #999999; }\n\n.codehilite .na,\n.code .na {\n color: #C2185B; }\n\n.codehilite .nb,\n.code .nb {\n color: #C2185B; }\n\n.codehilite .bp,\n.code .bp {\n color: #3E61A2; }\n\n.codehilite .nc,\n.code .nc {\n color: #C2185B; }\n\n.codehilite .no,\n.code .no {\n color: #3E61A2; }\n\n.codehilite .nd,\n.code .nd {\n color: #666666; }\n\n.codehilite .ni,\n.code .ni {\n color: #666666; }\n\n.codehilite .ne,\n.code .ne {\n color: #C2185B; }\n\n.codehilite .nf,\n.code .nf {\n color: #C2185B; }\n\n.codehilite .nl,\n.code .nl {\n color: #3B5179; }\n\n.codehilite .nn,\n.code .nn {\n color: #EC407A; }\n\n.codehilite .nt,\n.code .nt {\n color: #3B78E7; }\n\n.codehilite .nv,\n.code .nv {\n color: #3E61A2; }\n\n.codehilite .vc,\n.code .vc {\n color: #3E61A2; }\n\n.codehilite .vg,\n.code .vg {\n color: #3E61A2; }\n\n.codehilite .vi,\n.code .vi {\n color: #3E61A2; }\n\n.codehilite .nx,\n.code .nx {\n color: #EC407A; }\n\n.codehilite .ow,\n.code .ow {\n color: inherit; }\n\n.codehilite .m,\n.code .m {\n color: #E74C3C; }\n\n.codehilite .mf,\n.code .mf {\n color: #E74C3C; }\n\n.codehilite .mh,\n.code .mh {\n color: #E74C3C; }\n\n.codehilite .mi,\n.code .mi {\n color: #E74C3C; }\n\n.codehilite .il,\n.code .il {\n color: #E74C3C; }\n\n.codehilite .mo,\n.code .mo {\n color: #E74C3C; }\n\n.codehilite .s,\n.code .s {\n color: #0D904F; }\n\n.codehilite .sb,\n.code .sb {\n color: #0D904F; }\n\n.codehilite .sc,\n.code .sc {\n color: #0D904F; }\n\n.codehilite .sd,\n.code .sd {\n color: #999999; }\n\n.codehilite .s2,\n.code .s2 {\n color: #0D904F; }\n\n.codehilite .se,\n.code .se {\n color: #183691; }\n\n.codehilite .sh,\n.code .sh {\n color: #183691; }\n\n.codehilite .si,\n.code .si {\n color: #183691; }\n\n.codehilite .sx,\n.code .sx {\n color: #183691; }\n\n.codehilite .sr,\n.code .sr {\n color: #009926; }\n\n.codehilite .s1,\n.code .s1 {\n color: #0D904F; }\n\n.codehilite .ss,\n.code .ss {\n color: #0D904F; }\n\n.codehilite .gd,\n.code .gd {\n background-color: #FFDDDD; }\n\n.codehilite .gi,\n.code .gi {\n background-color: #DDFFDD; }\n\n.codehilite .w,\n.code .w {\n color: transparent; }\n\n.footnote {\n color: rgba(0, 0, 0, 0.54);\n font-size: 80%; }\n .footnote ol {\n margin-left: 0; }\n .footnote li:hover .footnote-backref,\n .footnote li:target .footnote-backref {\n transform: translateX(0);\n opacity: 1; }\n .footnote li:hover .footnote-backref:hover,\n .footnote li:target .footnote-backref {\n color: #536dfe; }\n .footnote-ref::before {\n position: absolute;\n margin-top: -8rem;\n padding-top: 8rem;\n content: \"\";\n pointer-events: none; }\n .footnote-backref {\n position: absolute;\n transform: translateX(0.5rem);\n transition: transform 0.25s 0.125s, color 0.25s, opacity 0.125s 0.125s;\n color: rgba(0, 0, 0, 0.26);\n font-size: 2.0rem;\n opacity: 0;\n vertical-align: middle; }\n .footnote-backref::first-letter {\n font-size: 0; }\n .footnote-backref::after {\n content: \"keyboard_return\"; }\n\n.md-typeset .headerlink {\n display: inline-block;\n margin-left: 1.0rem;\n transform: translate(0, 0.5rem);\n transition: transform 0.25s 0.25s, color 0.25s, opacity 0.125s 0.25s;\n color: rgba(0, 0, 0, 0.26);\n opacity: 0; }\n\n.md-typeset [id]:hover .headerlink,\n.md-typeset [id]:target .headerlink,\n.md-typeset [id] .headerlink:focus {\n transform: translate(0, 0);\n opacity: 1; }\n\n.md-typeset [id]:hover .headerlink:hover,\n.md-typeset [id]:target .headerlink,\n.md-typeset [id] .headerlink:focus {\n color: #536dfe; }\n\n.md-typeset h1[id]::before {\n display: block;\n margin-top: -11rem;\n padding-top: 11rem;\n content: \"\"; }\n\n.md-typeset h2[id]::before {\n display: block;\n margin-top: -8.2rem;\n padding-top: 8.2rem;\n content: \"\"; }\n\n.md-typeset h3[id]::before {\n display: block;\n margin-top: -8.4rem;\n padding-top: 8.4rem;\n content: \"\"; }\n\n.md-typeset h4[id]::before {\n display: block;\n margin-top: -8.6rem;\n padding-top: 8.6rem;\n content: \"\"; }\n\n.md-typeset h5[id]::before {\n display: block;\n margin-top: -9rem;\n padding-top: 9rem;\n content: \"\"; }\n\n.md-typeset h6[id]::before {\n display: block;\n margin-top: -9rem;\n padding-top: 9rem;\n content: \"\"; }\n\n.md-search__output {\n overflow-y: auto;\n width: 100%;\n opacity: 0;\n transition: opacity .4s, max-height .4s;\n text-align: left;\n z-index: -1; }\n [data-md-locked] .md-search__output {\n opacity: 1; }\n\n@media only screen and (max-width: 59.9375em) {\n .md-search__output {\n position: absolute;\n top: 5.6rem;\n bottom: 0;\n background: linear-gradient(white 10%, rgba(255, 255, 255, 0)), linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.125) 20%, transparent 60%);\n background-repeat: no-repeat;\n background-color: white;\n background-size: 100% 20px, 100% 10px;\n background-attachment: local, scroll; }\n .md-search-result__link {\n padding: 0 1.6rem; }\n .md-search-result__meta {\n padding-left: 1.6rem;\n border-top: 0.1rem solid rgba(0, 0, 0, 0.07); } }\n\n@media only screen and (min-width: 60em) {\n .md-search__output {\n box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12), 0 3px 5px -1px rgba(0, 0, 0, 0.4);\n background: white;\n border-top: 0.1rem solid rgba(0, 0, 0, 0.07);\n border-radius: 0 0 0.3rem 0.3rem;\n position: absolute;\n max-height: 0vh;\n background: linear-gradient(white 10%, rgba(255, 255, 255, 0)), linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2) 20%, transparent 60%);\n background-repeat: no-repeat;\n background-color: white;\n background-size: 100% 20px, 100% 5px;\n /* Opera doesn't support this in the shorthand */\n background-attachment: local, scroll; }\n [data-md-locked] .md-search__output {\n max-height: 75vh; }\n .md-search__output::-webkit-scrollbar {\n width: 0.4rem;\n height: 0.4rem; }\n .md-search__output::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.26); }\n .md-search__output::-webkit-scrollbar-thumb:hover {\n background-color: #536dfe; } }\n\n.md-search-result__meta {\n color: rgba(0, 0, 0, 0.54);\n padding-left: 4.8rem;\n padding-right: 1.6rem;\n line-height: 4.0rem;\n font-size: 1.28rem; }\n\n.md-search-result__list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n border-top: 0.1rem solid rgba(0, 0, 0, 0.07); }\n\n.md-search-result__link {\n overflow: auto;\n display: block;\n padding-left: 4.8rem;\n padding-right: 1.6rem;\n transition: background 0.25s; }\n .md-search-result__link:hover {\n background: rgba(83, 109, 254, 0.1); }\n\n.md-search-result__title {\n color: rgba(0, 0, 0, 0.87);\n font-size: 1.6rem;\n line-height: 1.4;\n margin-top: 0.5em; }\n\n.md-search-result__description {\n color: rgba(0, 0, 0, 0.54);\n font-size: 1.28rem;\n line-height: 1.4;\n margin: 0.5em 0; }\n\n@media only screen and (max-width: 44.9375em) {\n .md-search__suggest {\n position: relative;\n z-index: 2; } }\n\n.md-search-term {\n position: relative;\n padding: 0 0.8rem 0 4.8rem;\n line-height: 4.0rem;\n font-size: 1.6rem;\n transition: background .25s;\n cursor: pointer; }\n .md-search-term::before {\n position: absolute;\n content: \"access_time\";\n font-size: 2.4rem;\n line-height: 4.0rem;\n left: 1.2rem;\n color: rgba(0, 0, 0, 0.26); }\n .md-search-term:hover {\n background: #eceef8; }\n\n.checklist li {\n position: relative;\n list-style-type: none; }\n .checklist li::before {\n position: absolute;\n appearance: none;\n color: blue;\n content: \"check_box\";\n font-size: 2.4rem; }\n\n.checklist input[type=\"checkbox\"]:checked {\n width: 20px; }\n\nins.critic, del.critic, mark {\n margin: 0 0.4rem;\n padding: 0.1rem 0;\n word-break: break-word;\n box-decoration-break: clone;\n border-radius: 0.2rem; }\n\nins.critic {\n background: #DDFFDD;\n box-shadow: 0.4rem 0 0 #DDFFDD, -0.4rem 0 0 #DDFFDD;\n text-decoration: none; }\n\ndel.critic {\n background: #FFDDDD;\n box-shadow: 0.4rem 0 0 #FFDDDD, -0.4rem 0 0 #FFDDDD; }\n\nmark {\n background: #FFFF00;\n box-shadow: 0.4rem 0 0 #FFFF00, -0.4rem 0 0 #FFFF00;\n overflow: auto; }\n\n.critic.comment {\n margin: 0 0.4rem;\n padding: 0.1rem 0;\n border-radius: 0.2rem;\n background: #F0F0F0;\n color: #37474F;\n box-shadow: 0.4rem 0 0 #F0F0F0, -0.4rem 0 0 #F0F0F0;\n box-decoration-break: clone; }\n .critic.comment::before {\n color: rgba(0, 0, 0, 0.26);\n content: \"chat\";\n font-size: 1.6rem;\n padding-right: 0.2rem;\n vertical-align: -0.2rem; }\n\n.md-button {\n float: right;\n margin-top: 9px;\n font-size: 13px;\n padding-left: 2.6rem;\n font-weight: 700;\n text-transform: uppercase; }\n\n.task-list-item {\n list-style-type: none; }\n\n.task-list-item input {\n margin: 0 4px 0.25em -20px;\n vertical-align: middle; }\n\n.task-list-item {\n position: relative; }\n\n.task-list-item input[type=\"checkbox\"] {\n opacity: 0; }\n\n.task-list-item input[type=\"checkbox\"] + label {\n display: block;\n position: absolute;\n top: 50%;\n left: -24px;\n width: 16px;\n margin-top: -8px;\n height: 16px;\n border-radius: 2px;\n background: #CCC; }\n\n.task-list-item input[type=\"checkbox\"]:checked + label::before {\n display: block;\n margin-top: -4px;\n margin-left: 2px;\n font-size: 1.2em;\n line-height: 1;\n border-radius: 2px;\n content: \"✔\";\n color: #1EBB52; }\n\n.codehilite .hll {\n background: #FFFF00;\n display: block;\n margin: 0 -16px;\n padding: 0 16px; }\n\n.md-typeset sup {\n padding: 0 0.125em;\n border-radius: 0.2em; }\n .md-typeset sup[id]:target {\n background: orange; }\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Enfore correct box model - the prefixed versions are necessary for older\n// browsers, i.e. Chrome < 10, Firefox < 29, Safari < 6 and Android < 4\nhtml {\n box-sizing: border-box;\n -moz-box-sizing: border-box;\n -webkit-box-sizing: border-box;\n}\n\n// All elements shall inherit the document default\n*,\n*::before,\n*::after {\n box-sizing: inherit;\n -moz-box-sizing: inherit;\n -webkit-box-sizing: inherit;\n}\n\n// Prevent adjustments of font size after orientation changes in IE and iOS\nhtml {\n text-size-adjust: none;\n}\n\n// Remove margin in all browsers\nbody {\n margin: 0;\n}\n\n// Add correct display property in IE < 9\narticle,\naside,\nfigcaption,\nfigure,\nfooter,\nheader,\nmain,\nnav,\nsection {\n display: block;\n}\n\n// Reset horizontal rules in FF\nhr {\n overflow: visible;\n box-sizing: content-box;\n}\n\n// Reset link styles\na {\n color: inherit;\n text-decoration: none;\n\n // Remove outline on focused or active links\n &:active,\n &:hover {\n outline-width: 0;\n }\n}\n\n// Remove gaps in links underline in iOS >= 8 and Safari >= 8\na {\n -webkit-text-decoration-skip: objects;\n}\n\n// Reset tap outlines on iOS and Android\na,\nbutton,\nlabel,\ninput {\n -webkit-tap-highlight-color: transparent;\n}\n\n// Correct font-size in all browsers\nsmall {\n font-size: 80%;\n}\n\n// Prevent subscript and superscript from affecting line-height\nsub,\nsup {\n position: relative;\n font-size: 80%;\n line-height: 0;\n vertical-align: baseline;\n}\n\n// Correct subscript offset\nsub {\n bottom: -0.25em;\n}\n\n// Correct superscript offset\nsup {\n top: -0.5em;\n}\n\nimg {\n border-style: none;\n}\n\n// Reset table styles\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\n// Reset table cell styles\ntd,\nth {\n font-weight: normal;\n text-align: left;\n vertical-align: top;\n}\n\n// Reset (native) button styles\nbutton {\n padding: 0;\n border: 0;\n outline: 0;\n background: transparent;\n font-size: inherit;\n}\n\n// Reset (native) input styles\ninput {\n border: 0;\n outline: 0;\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Icon placeholders\n%md-icon {\n font-family: \"Material Icons\";\n font-style: normal;\n font-variant: normal;\n font-weight: normal;\n line-height: 1;\n text-transform: none;\n white-space: nowrap;\n speak: none;\n word-wrap: normal;\n direction: ltr;\n\n // Enable font-smoothing in Webkit and FF\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n\n // Icon rendered as button\n &__button {\n display: inline-block;\n margin: $md-icon-margin;\n padding: $md-icon-padding;\n font-size: $md-icon-size;\n cursor: pointer;\n }\n}\n\n// Representational classes\n.md-icon {\n @extend %md-icon;\n\n // Build representational classes\n @each $ligature, $name in (\n \"arrow_back\": \"back\",\n \"arrow_forward\": \"forward\"\n ) {\n &--#{$name}::before {\n content: $ligature;\n }\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Variables: typography\n// ----------------------------------------------------------------------------\n\n// Modular typographic scale\n$ms-base: 1.6rem;\n$ms-ratio: $major-third;\n\n// ----------------------------------------------------------------------------\n// Variables: breakpoints\n// ----------------------------------------------------------------------------\n\n// Device-specific breakpoints\n$break-devices: (\n mobile: (\n portrait: px2em(220px) px2em(479px),\n landscape: px2em(480px) px2em(719px)\n ),\n tablet: (\n portrait: px2em(720px) px2em(959px),\n landscape: px2em(960px) px2em(1199px)\n ),\n screen: (\n small: px2em(1200px) px2em(1599px),\n medium: px2em(1600px) px2em(1999px),\n large: px2em(2000px)\n )\n);\n\n// ----------------------------------------------------------------------------\n// Variables: base colors\n// ----------------------------------------------------------------------------\n\n// Primary and accent colors\n$md-color-primary: $clr-indigo-500;\n$md-color-accent: $clr-indigo-a200;\n\n// Shades of black\n$md-color-black: hsla(0, 0%, 0%, 0.87);\n$md-color-black--light: hsla(0, 0%, 0%, 0.54);\n$md-color-black--lighter: hsla(0, 0%, 0%, 0.26);\n$md-color-black--lightest: hsla(0, 0%, 0%, 0.07);\n\n// Shades of white\n$md-color-white: hsla(0, 0%, 100%, 1.00);\n$md-color-white--light: hsla(0, 0%, 100%, 0.70);\n$md-color-white--lighter: hsla(0, 0%, 100%, 0.30);\n$md-color-white--lightest: hsla(0, 0%, 100%, 0.12);\n\n// ----------------------------------------------------------------------------\n// Variables: sizing and spacing\n// ----------------------------------------------------------------------------\n\n// Icons\n$md-icon-size: $ms-base * 1.5;\n$md-icon-padding: $ms-base * 0.5;\n$md-icon-margin: $ms-base * 0.25;\n\n// Code blocks\n$md-code-background: hsla(0, 0%, 0%, 0.035);\n$md-code-color: #37474F;\n\n// Keystrokes\n$md-keyboard-background: #FCFCFC;\n$md-keyboard-color: #555555;\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules: font definitions\n// ----------------------------------------------------------------------------\n\n// Default fonts\nbody,\ninput {\n color: $md-color-black;\n font-family: \"Roboto\", Helvetica, Arial, sans-serif;\n font-weight: 400;\n font-feature-settings: \"kern\", \"onum\", \"liga\";\n\n // Enable font-smoothing in Webkit and FF\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n\n // Use system fonts, if browser doesn't support webfonts\n .no-fontface & {\n font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n }\n}\n\n// Proportionally spaced fonts\npre,\ncode,\nkbd {\n color: $md-color-black;\n font-family: \"Roboto Mono\", \"Courier New\", Courier, monospace;\n font-weight: 400;\n font-feature-settings: \"kern\", \"onum\", \"liga\";\n\n // Use system fonts, if browser doesn't support webfonts\n .no-fontface & {\n font-family: \"Courier New\", Courier, monospace;\n }\n}\n\n// ----------------------------------------------------------------------------\n// Rules: typesetted content\n// ----------------------------------------------------------------------------\n\n// Content that is typeset\n.md-typeset {\n font-size: ms(0);\n line-height: 1.6;\n\n // Default spacing\n p,\n ul,\n ol,\n blockquote {\n margin: 1.0em 0;\n }\n\n // 1st level headline\n h1 {\n margin: 0 0 4.0rem;\n color: $md-color-black--light;\n font-size: ms(3);\n font-weight: 300;\n letter-spacing: -0.01em;\n line-height: 1.3;\n }\n\n // 2nd level headline\n h2 {\n margin: 4.0rem 0 1.6rem;\n font-size: ms(2);\n font-weight: 300;\n letter-spacing: -0.01em;\n line-height: 1.4;\n }\n\n // 3rd level headline\n h3 {\n margin: 3.2rem 0 1.6rem;\n font-size: ms(1);\n font-weight: 400;\n letter-spacing: -0.01em;\n line-height: 1.5;\n }\n\n // 3rd level headline following an 2nd level headline\n h2 + h3 {\n margin-top: 1.6rem;\n }\n\n // 4th level headline\n h4 {\n margin: 1.6rem 0;\n font-size: ms(0);\n font-weight: 700;\n letter-spacing: -0.01em;\n }\n\n // 5th and 6th level headline\n h5,\n h6 {\n margin: 1.6rem 0;\n color: $md-color-black--light;\n font-size: ms(-1);\n font-weight: 700;\n letter-spacing: -0.01em;\n }\n\n // Overrides for 5th level headline\n h5 {\n text-transform: uppercase;\n }\n\n // Horizontal separators\n hr {\n margin: 2.4rem 0;\n border-bottom: 0.1rem dotted $md-color-black--lighter;\n }\n\n // Links\n a {\n color: $md-color-primary;\n\n // Also enable transition on pseudo elements\n &,\n &::before {\n transition: color 0.125s;\n }\n\n // Active links\n &:hover,\n &:active {\n color: $md-color-accent;\n }\n }\n\n // Inline code blocks\n code {\n margin: 0 0.4rem;\n padding: 0.1rem 0;\n border-radius: 0.2rem;\n background: $md-code-background;\n color: $md-code-color;\n font-size: 85%;\n box-shadow:\n 0.4rem 0 0 $md-code-background,\n -0.4rem 0 0 $md-code-background;\n word-break: break-word;\n box-decoration-break: clone;\n }\n\n // Disable containing block inside headlines\n h1 code,\n h2 code,\n h3 code,\n h4 code,\n h5 code,\n h6 code {\n margin: 0;\n background: transparent;\n box-shadow: none;\n }\n\n // Formatted code blocks\n pre {\n margin: 1.0em 0;\n padding: 1.0rem 1.2rem;\n border-radius: 0.2rem;\n background: $md-code-background;\n color: $md-code-color;\n font-size: 85%;\n line-height: 1.4;\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n\n // Reset, if pre is inside code\n > code {\n font-size: inherit;\n }\n }\n\n // Full-width container\n > div > pre,\n > pre > code {\n\n // [mobile -]: Stretch to whole width\n @include break-to-device(mobile) {\n margin: 1.0em -1.6rem;\n padding: 1.0rem 1.6rem;\n border-radius: 0;\n }\n\n // Override native scrollbar styles\n &::-webkit-scrollbar {\n width: 0.4rem;\n height: 0.4rem;\n\n // Style scrollbar thumb\n &-thumb {\n background: $md-color-black--lighter;\n }\n }\n }\n\n // Keystrokes\n kbd {\n display: inline-block;\n padding: 0.4rem 0.5rem 0.5rem;\n border: 0.1rem solid darken($md-keyboard-background, 20%);\n border-radius: 0.2rem;\n border-bottom-color: darken($md-keyboard-background, 25%);\n background-color: $md-keyboard-background;\n color: $md-keyboard-color;\n font-size: 85%;\n line-height: 1.0rem;\n box-shadow: 0 -0.1rem 0\n darken($md-keyboard-background, 30%) inset;\n vertical-align: 0.1rem;\n word-break: break-word;\n }\n\n // Smaller text\n small {\n opacity: 0.75;\n }\n\n // Superscript and subscript\n sup,\n sub {\n margin-left: 0.1rem;\n }\n\n // Blockquotes, possibly nested\n blockquote {\n padding-left: 1.2rem;\n border-left: 0.4rem solid $md-color-black--lighter;\n color: $md-color-black--light;\n }\n\n // Unordered lists\n ul {\n list-style-type: disc;\n }\n\n // Ordered lists\n ol ol {\n list-style-type: lower-alpha;\n\n // Triply nested ordered list\n ol {\n list-style-type: lower-roman;\n }\n }\n\n // Unordered and ordered lists\n ul,\n ol {\n margin-left: 1.0rem;\n padding: 0;\n\n // List elements\n li {\n margin-bottom: 0.5em;\n margin-left: 2.0rem;\n\n // Decrease vertical spacing\n p,\n blockquote {\n margin: 0.5em 0;\n }\n\n // Remove margin on last element\n &:last-child {\n margin-bottom: 0;\n }\n\n // Nested lists\n ul,\n ol {\n margin-bottom: 1.0rem;\n margin-left: 1.0rem;\n padding-top: 1.0rem;\n }\n }\n }\n}\n","@function ms-calc($Value, $Base: $ms-base, $Ratio: $ms-ratio) {\n \n // If pow exists use it.\n // It supports non-interger values!\n @if $MS-pow-exists {\n\n // The formula for figuring out modular scales is:\n // (r^v)*b\n @return pow($Ratio, $Value) * $Base;\n }\n\n // If not, use ms-pow().\n // Not as fast or capable of non-integer exponents.\n @else {\n @return ms-pow($Ratio, $Value) * $Base;\n }\n}","// ==========================================================================\n//\n// Name: UI Color Palette\n// Description: The color palette of material design.\n// Version: 2.3.1\n//\n// Author: Denis Malinochkin\n// Git: https://github.com/mrmlnc/material-color\n//\n// twitter: @mrmlnc\n//\n// ==========================================================================\n\n\n//\n// List of base colors\n//\n\n// $clr-red\n// $clr-pink\n// $clr-purple\n// $clr-deep-purple\n// $clr-indigo\n// $clr-blue\n// $clr-light-blue\n// $clr-cyan\n// $clr-teal\n// $clr-green\n// $clr-light-green\n// $clr-lime\n// $clr-yellow\n// $clr-amber\n// $clr-orange\n// $clr-deep-orange\n// $clr-brown\n// $clr-grey\n// $clr-blue-grey\n// $clr-black\n// $clr-white\n\n\n//\n// Red\n//\n\n$clr-red-list: (\n \"base\": #f44336,\n \"50\": #ffebee,\n \"100\": #ffcdd2,\n \"200\": #ef9a9a,\n \"300\": #e57373,\n \"400\": #ef5350,\n \"500\": #f44336,\n \"600\": #e53935,\n \"700\": #d32f2f,\n \"800\": #c62828,\n \"900\": #b71c1c,\n \"a100\": #ff8a80,\n \"a200\": #ff5252,\n \"a400\": #ff1744,\n \"a700\": #d50000\n);\n\n$clr-red: map-get($clr-red-list, \"base\");\n\n$clr-red-50: map-get($clr-red-list, \"50\");\n$clr-red-100: map-get($clr-red-list, \"100\");\n$clr-red-200: map-get($clr-red-list, \"200\");\n$clr-red-300: map-get($clr-red-list, \"300\");\n$clr-red-400: map-get($clr-red-list, \"400\");\n$clr-red-500: map-get($clr-red-list, \"500\");\n$clr-red-600: map-get($clr-red-list, \"600\");\n$clr-red-700: map-get($clr-red-list, \"700\");\n$clr-red-800: map-get($clr-red-list, \"800\");\n$clr-red-900: map-get($clr-red-list, \"900\");\n$clr-red-a100: map-get($clr-red-list, \"a100\");\n$clr-red-a200: map-get($clr-red-list, \"a200\");\n$clr-red-a400: map-get($clr-red-list, \"a400\");\n$clr-red-a700: map-get($clr-red-list, \"a700\");\n\n\n//\n// Pink\n//\n\n$clr-pink-list: (\n \"base\": #e91e63,\n \"50\": #fce4ec,\n \"100\": #f8bbd0,\n \"200\": #f48fb1,\n \"300\": #f06292,\n \"400\": #ec407a,\n \"500\": #e91e63,\n \"600\": #d81b60,\n \"700\": #c2185b,\n \"800\": #ad1457,\n \"900\": #880e4f,\n \"a100\": #ff80ab,\n \"a200\": #ff4081,\n \"a400\": #f50057,\n \"a700\": #c51162\n);\n\n$clr-pink: map-get($clr-pink-list, \"base\");\n\n$clr-pink-50: map-get($clr-pink-list, \"50\");\n$clr-pink-100: map-get($clr-pink-list, \"100\");\n$clr-pink-200: map-get($clr-pink-list, \"200\");\n$clr-pink-300: map-get($clr-pink-list, \"300\");\n$clr-pink-400: map-get($clr-pink-list, \"400\");\n$clr-pink-500: map-get($clr-pink-list, \"500\");\n$clr-pink-600: map-get($clr-pink-list, \"600\");\n$clr-pink-700: map-get($clr-pink-list, \"700\");\n$clr-pink-800: map-get($clr-pink-list, \"800\");\n$clr-pink-900: map-get($clr-pink-list, \"900\");\n$clr-pink-a100: map-get($clr-pink-list, \"a100\");\n$clr-pink-a200: map-get($clr-pink-list, \"a200\");\n$clr-pink-a400: map-get($clr-pink-list, \"a400\");\n$clr-pink-a700: map-get($clr-pink-list, \"a700\");\n\n\n//\n// Purple\n//\n\n$clr-purple-list: (\n \"base\": #9c27b0,\n \"50\": #f3e5f5,\n \"100\": #e1bee7,\n \"200\": #ce93d8,\n \"300\": #ba68c8,\n \"400\": #ab47bc,\n \"500\": #9c27b0,\n \"600\": #8e24aa,\n \"700\": #7b1fa2,\n \"800\": #6a1b9a,\n \"900\": #4a148c,\n \"a100\": #ea80fc,\n \"a200\": #e040fb,\n \"a400\": #d500f9,\n \"a700\": #aa00ff\n);\n\n$clr-purple: map-get($clr-purple-list, \"base\");\n\n$clr-purple-50: map-get($clr-purple-list, \"50\");\n$clr-purple-100: map-get($clr-purple-list, \"100\");\n$clr-purple-200: map-get($clr-purple-list, \"200\");\n$clr-purple-300: map-get($clr-purple-list, \"300\");\n$clr-purple-400: map-get($clr-purple-list, \"400\");\n$clr-purple-500: map-get($clr-purple-list, \"500\");\n$clr-purple-600: map-get($clr-purple-list, \"600\");\n$clr-purple-700: map-get($clr-purple-list, \"700\");\n$clr-purple-800: map-get($clr-purple-list, \"800\");\n$clr-purple-900: map-get($clr-purple-list, \"900\");\n$clr-purple-a100: map-get($clr-purple-list, \"a100\");\n$clr-purple-a200: map-get($clr-purple-list, \"a200\");\n$clr-purple-a400: map-get($clr-purple-list, \"a400\");\n$clr-purple-a700: map-get($clr-purple-list, \"a700\");\n\n\n//\n// Deep purple\n//\n\n$clr-deep-purple-list: (\n \"base\": #673ab7,\n \"50\": #ede7f6,\n \"100\": #d1c4e9,\n \"200\": #b39ddb,\n \"300\": #9575cd,\n \"400\": #7e57c2,\n \"500\": #673ab7,\n \"600\": #5e35b1,\n \"700\": #512da8,\n \"800\": #4527a0,\n \"900\": #311b92,\n \"a100\": #b388ff,\n \"a200\": #7c4dff,\n \"a400\": #651fff,\n \"a700\": #6200ea\n);\n\n$clr-deep-purple: map-get($clr-deep-purple-list, \"base\");\n\n$clr-deep-purple-50: map-get($clr-deep-purple-list, \"50\");\n$clr-deep-purple-100: map-get($clr-deep-purple-list, \"100\");\n$clr-deep-purple-200: map-get($clr-deep-purple-list, \"200\");\n$clr-deep-purple-300: map-get($clr-deep-purple-list, \"300\");\n$clr-deep-purple-400: map-get($clr-deep-purple-list, \"400\");\n$clr-deep-purple-500: map-get($clr-deep-purple-list, \"500\");\n$clr-deep-purple-600: map-get($clr-deep-purple-list, \"600\");\n$clr-deep-purple-700: map-get($clr-deep-purple-list, \"700\");\n$clr-deep-purple-800: map-get($clr-deep-purple-list, \"800\");\n$clr-deep-purple-900: map-get($clr-deep-purple-list, \"900\");\n$clr-deep-purple-a100: map-get($clr-deep-purple-list, \"a100\");\n$clr-deep-purple-a200: map-get($clr-deep-purple-list, \"a200\");\n$clr-deep-purple-a400: map-get($clr-deep-purple-list, \"a400\");\n$clr-deep-purple-a700: map-get($clr-deep-purple-list, \"a700\");\n\n\n//\n// Indigo\n//\n\n$clr-indigo-list: (\n \"base\": #3f51b5,\n \"50\": #e8eaf6,\n \"100\": #c5cae9,\n \"200\": #9fa8da,\n \"300\": #7986cb,\n \"400\": #5c6bc0,\n \"500\": #3f51b5,\n \"600\": #3949ab,\n \"700\": #303f9f,\n \"800\": #283593,\n \"900\": #1a237e,\n \"a100\": #8c9eff,\n \"a200\": #536dfe,\n \"a400\": #3d5afe,\n \"a700\": #304ffe\n);\n\n$clr-indigo: map-get($clr-indigo-list, \"base\");\n\n$clr-indigo-50: map-get($clr-indigo-list, \"50\");\n$clr-indigo-100: map-get($clr-indigo-list, \"100\");\n$clr-indigo-200: map-get($clr-indigo-list, \"200\");\n$clr-indigo-300: map-get($clr-indigo-list, \"300\");\n$clr-indigo-400: map-get($clr-indigo-list, \"400\");\n$clr-indigo-500: map-get($clr-indigo-list, \"500\");\n$clr-indigo-600: map-get($clr-indigo-list, \"600\");\n$clr-indigo-700: map-get($clr-indigo-list, \"700\");\n$clr-indigo-800: map-get($clr-indigo-list, \"800\");\n$clr-indigo-900: map-get($clr-indigo-list, \"900\");\n$clr-indigo-a100: map-get($clr-indigo-list, \"a100\");\n$clr-indigo-a200: map-get($clr-indigo-list, \"a200\");\n$clr-indigo-a400: map-get($clr-indigo-list, \"a400\");\n$clr-indigo-a700: map-get($clr-indigo-list, \"a700\");\n\n\n//\n// Blue\n//\n\n$clr-blue-list: (\n \"base\": #2196f3,\n \"50\": #e3f2fd,\n \"100\": #bbdefb,\n \"200\": #90caf9,\n \"300\": #64b5f6,\n \"400\": #42a5f5,\n \"500\": #2196f3,\n \"600\": #1e88e5,\n \"700\": #1976d2,\n \"800\": #1565c0,\n \"900\": #0d47a1,\n \"a100\": #82b1ff,\n \"a200\": #448aff,\n \"a400\": #2979ff,\n \"a700\": #2962ff\n);\n\n$clr-blue: map-get($clr-blue-list, \"base\");\n\n$clr-blue-50: map-get($clr-blue-list, \"50\");\n$clr-blue-100: map-get($clr-blue-list, \"100\");\n$clr-blue-200: map-get($clr-blue-list, \"200\");\n$clr-blue-300: map-get($clr-blue-list, \"300\");\n$clr-blue-400: map-get($clr-blue-list, \"400\");\n$clr-blue-500: map-get($clr-blue-list, \"500\");\n$clr-blue-600: map-get($clr-blue-list, \"600\");\n$clr-blue-700: map-get($clr-blue-list, \"700\");\n$clr-blue-800: map-get($clr-blue-list, \"800\");\n$clr-blue-900: map-get($clr-blue-list, \"900\");\n$clr-blue-a100: map-get($clr-blue-list, \"a100\");\n$clr-blue-a200: map-get($clr-blue-list, \"a200\");\n$clr-blue-a400: map-get($clr-blue-list, \"a400\");\n$clr-blue-a700: map-get($clr-blue-list, \"a700\");\n\n\n//\n// Light Blue\n//\n\n$clr-light-blue-list: (\n \"base\": #03a9f4,\n \"50\": #e1f5fe,\n \"100\": #b3e5fc,\n \"200\": #81d4fa,\n \"300\": #4fc3f7,\n \"400\": #29b6f6,\n \"500\": #03a9f4,\n \"600\": #039be5,\n \"700\": #0288d1,\n \"800\": #0277bd,\n \"900\": #01579b,\n \"a100\": #80d8ff,\n \"a200\": #40c4ff,\n \"a400\": #00b0ff,\n \"a700\": #0091ea\n);\n\n$clr-light-blue: map-get($clr-light-blue-list, \"base\");\n\n$clr-light-blue-50: map-get($clr-light-blue-list, \"50\");\n$clr-light-blue-100: map-get($clr-light-blue-list, \"100\");\n$clr-light-blue-200: map-get($clr-light-blue-list, \"200\");\n$clr-light-blue-300: map-get($clr-light-blue-list, \"300\");\n$clr-light-blue-400: map-get($clr-light-blue-list, \"400\");\n$clr-light-blue-500: map-get($clr-light-blue-list, \"500\");\n$clr-light-blue-600: map-get($clr-light-blue-list, \"600\");\n$clr-light-blue-700: map-get($clr-light-blue-list, \"700\");\n$clr-light-blue-800: map-get($clr-light-blue-list, \"800\");\n$clr-light-blue-900: map-get($clr-light-blue-list, \"900\");\n$clr-light-blue-a100: map-get($clr-light-blue-list, \"a100\");\n$clr-light-blue-a200: map-get($clr-light-blue-list, \"a200\");\n$clr-light-blue-a400: map-get($clr-light-blue-list, \"a400\");\n$clr-light-blue-a700: map-get($clr-light-blue-list, \"a700\");\n\n\n//\n// Cyan\n//\n\n$clr-cyan-list: (\n \"base\": #00bcd4,\n \"50\": #e0f7fa,\n \"100\": #b2ebf2,\n \"200\": #80deea,\n \"300\": #4dd0e1,\n \"400\": #26c6da,\n \"500\": #00bcd4,\n \"600\": #00acc1,\n \"700\": #0097a7,\n \"800\": #00838f,\n \"900\": #006064,\n \"a100\": #84ffff,\n \"a200\": #18ffff,\n \"a400\": #00e5ff,\n \"a700\": #00b8d4\n);\n\n$clr-cyan: map-get($clr-cyan-list, \"base\");\n\n$clr-cyan-50: map-get($clr-cyan-list, \"50\");\n$clr-cyan-100: map-get($clr-cyan-list, \"100\");\n$clr-cyan-200: map-get($clr-cyan-list, \"200\");\n$clr-cyan-300: map-get($clr-cyan-list, \"300\");\n$clr-cyan-400: map-get($clr-cyan-list, \"400\");\n$clr-cyan-500: map-get($clr-cyan-list, \"500\");\n$clr-cyan-600: map-get($clr-cyan-list, \"600\");\n$clr-cyan-700: map-get($clr-cyan-list, \"700\");\n$clr-cyan-800: map-get($clr-cyan-list, \"800\");\n$clr-cyan-900: map-get($clr-cyan-list, \"900\");\n$clr-cyan-a100: map-get($clr-cyan-list, \"a100\");\n$clr-cyan-a200: map-get($clr-cyan-list, \"a200\");\n$clr-cyan-a400: map-get($clr-cyan-list, \"a400\");\n$clr-cyan-a700: map-get($clr-cyan-list, \"a700\");\n\n\n//\n// Teal\n//\n\n$clr-teal-list: (\n \"base\": #009688,\n \"50\": #e0f2f1,\n \"100\": #b2dfdb,\n \"200\": #80cbc4,\n \"300\": #4db6ac,\n \"400\": #26a69a,\n \"500\": #009688,\n \"600\": #00897b,\n \"700\": #00796b,\n \"800\": #00695c,\n \"900\": #004d40,\n \"a100\": #a7ffeb,\n \"a200\": #64ffda,\n \"a400\": #1de9b6,\n \"a700\": #00bfa5\n);\n\n$clr-teal: map-get($clr-teal-list, \"base\");\n\n$clr-teal-50: map-get($clr-teal-list, \"50\");\n$clr-teal-100: map-get($clr-teal-list, \"100\");\n$clr-teal-200: map-get($clr-teal-list, \"200\");\n$clr-teal-300: map-get($clr-teal-list, \"300\");\n$clr-teal-400: map-get($clr-teal-list, \"400\");\n$clr-teal-500: map-get($clr-teal-list, \"500\");\n$clr-teal-600: map-get($clr-teal-list, \"600\");\n$clr-teal-700: map-get($clr-teal-list, \"700\");\n$clr-teal-800: map-get($clr-teal-list, \"800\");\n$clr-teal-900: map-get($clr-teal-list, \"900\");\n$clr-teal-a100: map-get($clr-teal-list, \"a100\");\n$clr-teal-a200: map-get($clr-teal-list, \"a200\");\n$clr-teal-a400: map-get($clr-teal-list, \"a400\");\n$clr-teal-a700: map-get($clr-teal-list, \"a700\");\n\n\n//\n// Green\n//\n\n$clr-green-list: (\n \"base\": #4caf50,\n \"50\": #e8f5e9,\n \"100\": #c8e6c9,\n \"200\": #a5d6a7,\n \"300\": #81c784,\n \"400\": #66bb6a,\n \"500\": #4caf50,\n \"600\": #43a047,\n \"700\": #388e3c,\n \"800\": #2e7d32,\n \"900\": #1b5e20,\n \"a100\": #b9f6ca,\n \"a200\": #69f0ae,\n \"a400\": #00e676,\n \"a700\": #00c853\n);\n\n$clr-green: map-get($clr-green-list, \"base\");\n\n$clr-green-50: map-get($clr-green-list, \"50\");\n$clr-green-100: map-get($clr-green-list, \"100\");\n$clr-green-200: map-get($clr-green-list, \"200\");\n$clr-green-300: map-get($clr-green-list, \"300\");\n$clr-green-400: map-get($clr-green-list, \"400\");\n$clr-green-500: map-get($clr-green-list, \"500\");\n$clr-green-600: map-get($clr-green-list, \"600\");\n$clr-green-700: map-get($clr-green-list, \"700\");\n$clr-green-800: map-get($clr-green-list, \"800\");\n$clr-green-900: map-get($clr-green-list, \"900\");\n$clr-green-a100: map-get($clr-green-list, \"a100\");\n$clr-green-a200: map-get($clr-green-list, \"a200\");\n$clr-green-a400: map-get($clr-green-list, \"a400\");\n$clr-green-a700: map-get($clr-green-list, \"a700\");\n\n\n//\n// Light green\n//\n\n$clr-light-green-list: (\n \"base\": #8bc34a,\n \"50\": #f1f8e9,\n \"100\": #dcedc8,\n \"200\": #c5e1a5,\n \"300\": #aed581,\n \"400\": #9ccc65,\n \"500\": #8bc34a,\n \"600\": #7cb342,\n \"700\": #689f38,\n \"800\": #558b2f,\n \"900\": #33691e,\n \"a100\": #ccff90,\n \"a200\": #b2ff59,\n \"a400\": #76ff03,\n \"a700\": #64dd17\n);\n\n$clr-light-green: map-get($clr-light-green-list, \"base\");\n\n$clr-light-green-50: map-get($clr-light-green-list, \"50\");\n$clr-light-green-100: map-get($clr-light-green-list, \"100\");\n$clr-light-green-200: map-get($clr-light-green-list, \"200\");\n$clr-light-green-300: map-get($clr-light-green-list, \"300\");\n$clr-light-green-400: map-get($clr-light-green-list, \"400\");\n$clr-light-green-500: map-get($clr-light-green-list, \"500\");\n$clr-light-green-600: map-get($clr-light-green-list, \"600\");\n$clr-light-green-700: map-get($clr-light-green-list, \"700\");\n$clr-light-green-800: map-get($clr-light-green-list, \"800\");\n$clr-light-green-900: map-get($clr-light-green-list, \"900\");\n$clr-light-green-a100: map-get($clr-light-green-list, \"a100\");\n$clr-light-green-a200: map-get($clr-light-green-list, \"a200\");\n$clr-light-green-a400: map-get($clr-light-green-list, \"a400\");\n$clr-light-green-a700: map-get($clr-light-green-list, \"a700\");\n\n\n//\n// Lime\n//\n\n$clr-lime-list: (\n \"base\": #cddc39,\n \"50\": #f9fbe7,\n \"100\": #f0f4c3,\n \"200\": #e6ee9c,\n \"300\": #dce775,\n \"400\": #d4e157,\n \"500\": #cddc39,\n \"600\": #c0ca33,\n \"700\": #afb42b,\n \"800\": #9e9d24,\n \"900\": #827717,\n \"a100\": #f4ff81,\n \"a200\": #eeff41,\n \"a400\": #c6ff00,\n \"a700\": #aeea00\n);\n\n$clr-lime: map-get($clr-lime-list, \"base\");\n\n$clr-lime-50: map-get($clr-lime-list, \"50\");\n$clr-lime-100: map-get($clr-lime-list, \"100\");\n$clr-lime-200: map-get($clr-lime-list, \"200\");\n$clr-lime-300: map-get($clr-lime-list, \"300\");\n$clr-lime-400: map-get($clr-lime-list, \"400\");\n$clr-lime-500: map-get($clr-lime-list, \"500\");\n$clr-lime-600: map-get($clr-lime-list, \"600\");\n$clr-lime-700: map-get($clr-lime-list, \"700\");\n$clr-lime-800: map-get($clr-lime-list, \"800\");\n$clr-lime-900: map-get($clr-lime-list, \"900\");\n$clr-lime-a100: map-get($clr-lime-list, \"a100\");\n$clr-lime-a200: map-get($clr-lime-list, \"a200\");\n$clr-lime-a400: map-get($clr-lime-list, \"a400\");\n$clr-lime-a700: map-get($clr-lime-list, \"a700\");\n\n\n//\n// Yellow\n//\n\n$clr-yellow-list: (\n \"base\": #ffeb3b,\n \"50\": #fffde7,\n \"100\": #fff9c4,\n \"200\": #fff59d,\n \"300\": #fff176,\n \"400\": #ffee58,\n \"500\": #ffeb3b,\n \"600\": #fdd835,\n \"700\": #fbc02d,\n \"800\": #f9a825,\n \"900\": #f57f17,\n \"a100\": #ffff8d,\n \"a200\": #ffff00,\n \"a400\": #ffea00,\n \"a700\": #ffd600\n);\n\n$clr-yellow: map-get($clr-yellow-list, \"base\");\n\n$clr-yellow-50: map-get($clr-yellow-list, \"50\");\n$clr-yellow-100: map-get($clr-yellow-list, \"100\");\n$clr-yellow-200: map-get($clr-yellow-list, \"200\");\n$clr-yellow-300: map-get($clr-yellow-list, \"300\");\n$clr-yellow-400: map-get($clr-yellow-list, \"400\");\n$clr-yellow-500: map-get($clr-yellow-list, \"500\");\n$clr-yellow-600: map-get($clr-yellow-list, \"600\");\n$clr-yellow-700: map-get($clr-yellow-list, \"700\");\n$clr-yellow-800: map-get($clr-yellow-list, \"800\");\n$clr-yellow-900: map-get($clr-yellow-list, \"900\");\n$clr-yellow-a100: map-get($clr-yellow-list, \"a100\");\n$clr-yellow-a200: map-get($clr-yellow-list, \"a200\");\n$clr-yellow-a400: map-get($clr-yellow-list, \"a400\");\n$clr-yellow-a700: map-get($clr-yellow-list, \"a700\");\n\n\n//\n// amber\n//\n\n$clr-amber-list: (\n \"base\": #ffc107,\n \"50\": #fff8e1,\n \"100\": #ffecb3,\n \"200\": #ffe082,\n \"300\": #ffd54f,\n \"400\": #ffca28,\n \"500\": #ffc107,\n \"600\": #ffb300,\n \"700\": #ffa000,\n \"800\": #ff8f00,\n \"900\": #ff6f00,\n \"a100\": #ffe57f,\n \"a200\": #ffd740,\n \"a400\": #ffc400,\n \"a700\": #ffab00\n);\n\n$clr-amber: map-get($clr-amber-list, \"base\");\n\n$clr-amber-50: map-get($clr-amber-list, \"50\");\n$clr-amber-100: map-get($clr-amber-list, \"100\");\n$clr-amber-200: map-get($clr-amber-list, \"200\");\n$clr-amber-300: map-get($clr-amber-list, \"300\");\n$clr-amber-400: map-get($clr-amber-list, \"400\");\n$clr-amber-500: map-get($clr-amber-list, \"500\");\n$clr-amber-600: map-get($clr-amber-list, \"600\");\n$clr-amber-700: map-get($clr-amber-list, \"700\");\n$clr-amber-800: map-get($clr-amber-list, \"800\");\n$clr-amber-900: map-get($clr-amber-list, \"900\");\n$clr-amber-a100: map-get($clr-amber-list, \"a100\");\n$clr-amber-a200: map-get($clr-amber-list, \"a200\");\n$clr-amber-a400: map-get($clr-amber-list, \"a400\");\n$clr-amber-a700: map-get($clr-amber-list, \"a700\");\n\n\n//\n// Orange\n//\n\n$clr-orange-list: (\n \"base\": #ff9800,\n \"50\": #fff3e0,\n \"100\": #ffe0b2,\n \"200\": #ffcc80,\n \"300\": #ffb74d,\n \"400\": #ffa726,\n \"500\": #ff9800,\n \"600\": #fb8c00,\n \"700\": #f57c00,\n \"800\": #ef6c00,\n \"900\": #e65100,\n \"a100\": #ffd180,\n \"a200\": #ffab40,\n \"a400\": #ff9100,\n \"a700\": #ff6d00\n);\n\n$clr-orange: map-get($clr-orange-list, \"base\");\n\n$clr-orange-50: map-get($clr-orange-list, \"50\");\n$clr-orange-100: map-get($clr-orange-list, \"100\");\n$clr-orange-200: map-get($clr-orange-list, \"200\");\n$clr-orange-300: map-get($clr-orange-list, \"300\");\n$clr-orange-400: map-get($clr-orange-list, \"400\");\n$clr-orange-500: map-get($clr-orange-list, \"500\");\n$clr-orange-600: map-get($clr-orange-list, \"600\");\n$clr-orange-700: map-get($clr-orange-list, \"700\");\n$clr-orange-800: map-get($clr-orange-list, \"800\");\n$clr-orange-900: map-get($clr-orange-list, \"900\");\n$clr-orange-a100: map-get($clr-orange-list, \"a100\");\n$clr-orange-a200: map-get($clr-orange-list, \"a200\");\n$clr-orange-a400: map-get($clr-orange-list, \"a400\");\n$clr-orange-a700: map-get($clr-orange-list, \"a700\");\n\n\n//\n// Deep orange\n//\n\n$clr-deep-orange-list: (\n \"base\": #ff5722,\n \"50\": #fbe9e7,\n \"100\": #ffccbc,\n \"200\": #ffab91,\n \"300\": #ff8a65,\n \"400\": #ff7043,\n \"500\": #ff5722,\n \"600\": #f4511e,\n \"700\": #e64a19,\n \"800\": #d84315,\n \"900\": #bf360c,\n \"a100\": #ff9e80,\n \"a200\": #ff6e40,\n \"a400\": #ff3d00,\n \"a700\": #dd2c00\n);\n\n$clr-deep-orange: map-get($clr-deep-orange-list, \"base\");\n\n$clr-deep-orange-50: map-get($clr-deep-orange-list, \"50\");\n$clr-deep-orange-100: map-get($clr-deep-orange-list, \"100\");\n$clr-deep-orange-200: map-get($clr-deep-orange-list, \"200\");\n$clr-deep-orange-300: map-get($clr-deep-orange-list, \"300\");\n$clr-deep-orange-400: map-get($clr-deep-orange-list, \"400\");\n$clr-deep-orange-500: map-get($clr-deep-orange-list, \"500\");\n$clr-deep-orange-600: map-get($clr-deep-orange-list, \"600\");\n$clr-deep-orange-700: map-get($clr-deep-orange-list, \"700\");\n$clr-deep-orange-800: map-get($clr-deep-orange-list, \"800\");\n$clr-deep-orange-900: map-get($clr-deep-orange-list, \"900\");\n$clr-deep-orange-a100: map-get($clr-deep-orange-list, \"a100\");\n$clr-deep-orange-a200: map-get($clr-deep-orange-list, \"a200\");\n$clr-deep-orange-a400: map-get($clr-deep-orange-list, \"a400\");\n$clr-deep-orange-a700: map-get($clr-deep-orange-list, \"a700\");\n\n\n//\n// Brown\n//\n\n$clr-brown-list: (\n \"base\": #795548,\n \"50\": #efebe9,\n \"100\": #d7ccc8,\n \"200\": #bcaaa4,\n \"300\": #a1887f,\n \"400\": #8d6e63,\n \"500\": #795548,\n \"600\": #6d4c41,\n \"700\": #5d4037,\n \"800\": #4e342e,\n \"900\": #3e2723,\n);\n\n$clr-brown: map-get($clr-brown-list, \"base\");\n\n$clr-brown-50: map-get($clr-brown-list, \"50\");\n$clr-brown-100: map-get($clr-brown-list, \"100\");\n$clr-brown-200: map-get($clr-brown-list, \"200\");\n$clr-brown-300: map-get($clr-brown-list, \"300\");\n$clr-brown-400: map-get($clr-brown-list, \"400\");\n$clr-brown-500: map-get($clr-brown-list, \"500\");\n$clr-brown-600: map-get($clr-brown-list, \"600\");\n$clr-brown-700: map-get($clr-brown-list, \"700\");\n$clr-brown-800: map-get($clr-brown-list, \"800\");\n$clr-brown-900: map-get($clr-brown-list, \"900\");\n\n\n//\n// Grey\n//\n\n$clr-grey-list: (\n \"base\": #9e9e9e,\n \"50\": #fafafa,\n \"100\": #f5f5f5,\n \"200\": #eeeeee,\n \"300\": #e0e0e0,\n \"400\": #bdbdbd,\n \"500\": #9e9e9e,\n \"600\": #757575,\n \"700\": #616161,\n \"800\": #424242,\n \"900\": #212121,\n);\n\n$clr-grey: map-get($clr-grey-list, \"base\");\n\n$clr-grey-50: map-get($clr-grey-list, \"50\");\n$clr-grey-100: map-get($clr-grey-list, \"100\");\n$clr-grey-200: map-get($clr-grey-list, \"200\");\n$clr-grey-300: map-get($clr-grey-list, \"300\");\n$clr-grey-400: map-get($clr-grey-list, \"400\");\n$clr-grey-500: map-get($clr-grey-list, \"500\");\n$clr-grey-600: map-get($clr-grey-list, \"600\");\n$clr-grey-700: map-get($clr-grey-list, \"700\");\n$clr-grey-800: map-get($clr-grey-list, \"800\");\n$clr-grey-900: map-get($clr-grey-list, \"900\");\n\n\n//\n// Blue grey\n//\n\n$clr-blue-grey-list: (\n \"base\": #607d8b,\n \"50\": #eceff1,\n \"100\": #cfd8dc,\n \"200\": #b0bec5,\n \"300\": #90a4ae,\n \"400\": #78909c,\n \"500\": #607d8b,\n \"600\": #546e7a,\n \"700\": #455a64,\n \"800\": #37474f,\n \"900\": #263238,\n);\n\n$clr-blue-grey: map-get($clr-blue-grey-list, \"base\");\n\n$clr-blue-grey-50: map-get($clr-blue-grey-list, \"50\");\n$clr-blue-grey-100: map-get($clr-blue-grey-list, \"100\");\n$clr-blue-grey-200: map-get($clr-blue-grey-list, \"200\");\n$clr-blue-grey-300: map-get($clr-blue-grey-list, \"300\");\n$clr-blue-grey-400: map-get($clr-blue-grey-list, \"400\");\n$clr-blue-grey-500: map-get($clr-blue-grey-list, \"500\");\n$clr-blue-grey-600: map-get($clr-blue-grey-list, \"600\");\n$clr-blue-grey-700: map-get($clr-blue-grey-list, \"700\");\n$clr-blue-grey-800: map-get($clr-blue-grey-list, \"800\");\n$clr-blue-grey-900: map-get($clr-blue-grey-list, \"900\");\n\n\n//\n// Black\n//\n\n$clr-black-list: (\n \"base\": #000\n);\n\n$clr-black: map-get($clr-black-list, \"base\");\n\n\n//\n// White\n//\n\n$clr-white-list: (\n \"base\": #fff\n);\n\n$clr-white: map-get($clr-white-list, \"base\");\n\n\n//\n// List for all Colors for looping\n//\n\n$clr-list-all: (\n \"red\": $clr-red-list,\n \"pink\": $clr-pink-list,\n \"purple\": $clr-purple-list,\n \"deep-purple\": $clr-deep-purple-list,\n \"indigo\": $clr-indigo-list,\n \"blue\": $clr-blue-list,\n \"light-blue\": $clr-light-blue-list,\n \"cyan\": $clr-cyan-list,\n \"teal\": $clr-teal-list,\n \"green\": $clr-green-list,\n \"light-green\": $clr-light-green-list,\n \"lime\": $clr-lime-list,\n \"yellow\": $clr-yellow-list,\n \"amber\": $clr-amber-list,\n \"orange\": $clr-orange-list,\n \"deep-orange\": $clr-deep-orange-list,\n \"brown\": $clr-brown-list,\n \"grey\": $clr-grey-list,\n \"blue-grey\": $clr-blue-grey-list,\n \"black\": $clr-black-list,\n \"white\": $clr-white-list\n);\n\n\n//\n// Typography\n//\n\n$clr-ui-display-4: $clr-grey-600;\n$clr-ui-display-3: $clr-grey-600;\n$clr-ui-display-2: $clr-grey-600;\n$clr-ui-display-1: $clr-grey-600;\n$clr-ui-headline: $clr-grey-900;\n$clr-ui-title: $clr-grey-900;\n$clr-ui-subhead-1: $clr-grey-900;\n$clr-ui-body-2: $clr-grey-900;\n$clr-ui-body-1: $clr-grey-900;\n$clr-ui-caption: $clr-grey-600;\n$clr-ui-menu: $clr-grey-900;\n$clr-ui-button: $clr-grey-900;\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules: base grid and containers\n// ----------------------------------------------------------------------------\n\n// Stretch container to viewport and set base font-size to 10px for simple\n// calculations base on relative ems (rems).\nhtml {\n height: 100%;\n font-size: 62.5%;\n\n // [screen medium +] Set base font-size to 11px\n @include break-from-device(screen medium) {\n font-size: 68.75%;\n }\n\n // [screen large +] Set base font-size to 12px\n @include break-from-device(screen large) {\n font-size: 75%;\n }\n}\n\n// Stretch body to container and leave room for footer.\nbody {\n position: relative;\n min-height: 100%;\n\n // Lock body to viewport height (e.g. in search mode)\n &[data-md-locked] {\n height: 100%;\n overflow: hidden;\n }\n}\n\n// Horizontal separators\nhr {\n display: block;\n height: 0.1rem;\n padding: 0;\n border: 0;\n}\n\n// Template-wide grid\n.md-grid {\n max-width: 120.0rem;\n margin-right: auto;\n margin-left: auto;\n}\n\n// Prevent collapse of margin when setting margin on child element\n.md-container,\n.md-main {\n overflow: auto;\n}\n\n// Add top spacing to acount for header\n.md-main {\n margin-top: 5.6rem;\n\n // Bottom spacing to account for header and footer\n &__inner {\n margin-top: 2.4rem + 0.6rem;\n margin-bottom: 9.2rem;\n overflow: auto;\n }\n}\n\n// ----------------------------------------------------------------------------\n// Rules: navigational elements\n// ----------------------------------------------------------------------------\n\n// Toggle checkbox\n.md-toggle {\n display: none;\n}\n\n// Overlay below expanded drawer\n.md-overlay {\n position: fixed;\n top: 0;\n width: 0;\n height: 0;\n transition:\n width 0s 0.25s,\n height 0s 0.25s,\n opacity 0.25s;\n background: $md-color-black--light;\n opacity: 0;\n z-index: 2;\n\n // [tablet -]: Trigger overlay\n @include break-to-device(tablet) {\n\n // Expanded drawer\n .md-toggle--drawer:checked ~ & {\n width: 100%;\n height: 100%;\n transition:\n width 0s,\n height 0s,\n opacity 0.25s;\n opacity: 1;\n }\n }\n}\n\n// ----------------------------------------------------------------------------\n// Rules: flexible elements, implemented with table layout\n// ----------------------------------------------------------------------------\n\n// Flexible layout container\n.md-flex {\n display: table;\n\n // Flexible layout container cell/element\n &__cell {\n display: table-cell;\n position: relative;\n vertical-align: top;\n\n // Shrink to minimum width\n &--shrink {\n width: 0%;\n }\n\n // Stretch to maximum width\n &--stretch {\n display: table;\n width: 100%;\n table-layout: fixed;\n }\n }\n\n // Apply ellipsis in case of overflowing text\n &__ellipsis {\n display: table-cell;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Content container\n.md-content {\n\n // [tablet landscape +]: Add space for table of contents\n @include break-from-device(tablet landscape) {\n margin-right: 24.2rem;\n }\n\n // [screen +]: Add space for table of contents\n @include break-from-device(screen) {\n margin-left: 24.2rem;\n }\n\n // Define spacing\n &__inner {\n margin: 2.4rem 1.6rem;\n\n // Hack: this is necessary for floating the edit button\n // overflow: auto;\n\n // [screen +]: Increase spacing\n @include break-from-device(screen) {\n margin: 2.4rem;\n }\n }\n\n // Copyright and theme information\n &__copyright {\n display: block;\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Application header (stays always on top)\n.md-header {\n @include z-depth(2);\n\n position: fixed;\n top: 0;\n right: 0;\n left: 0;\n height: 5.6rem;\n background: $md-color-primary;\n color: $md-color-white;\n z-index: 1;\n}\n\n// Navigation within header\n.md-header-nav {\n padding: 0.4rem;\n\n // Icons\n &__icon {\n @extend %md-icon__button;\n\n position: relative;\n transition: opacity 0.25s;\n z-index: 1;\n\n // Hovered icon\n &:hover {\n opacity: 0.7;\n }\n\n // Hide search icon, if JavaScript is not available.\n .no-js &--search {\n display: none;\n }\n\n // [tablet landscape +]: Hide the search icon\n @include break-from-device(tablet landscape) {\n\n // Search icon\n &--search {\n display: none;\n }\n }\n\n // [tablet -]: Hide the home icon\n @include break-to-device(tablet) {\n\n // Home icon\n &--home {\n display: none;\n }\n }\n\n // [screen +]: Hide the menu icon\n @include break-from-device(screen) {\n\n // Menu icon\n &--menu {\n display: none;\n }\n }\n }\n\n // Header title\n &__title {\n padding: 0 2.0rem;\n font-size: 1.8rem;\n line-height: 4.8rem;\n }\n\n // Repository containing source\n &__source {\n display: none;\n\n // [tablet landscape +]: Show the reposistory from tablet\n @include break-from-device(tablet landscape) {\n display: block;\n width: 23.0rem;\n max-width: 23.0rem;\n padding-right: 1.2rem;\n }\n }\n}\n","//\n// Name: Material Shadows\n// Description: Mixins for Material Design Shadows.\n// Version: 3.0.1\n//\n// Author: Denis Malinochkin\n// Git: https://github.com/mrmlnc/material-shadows\n//\n// twitter: @mrmlnc\n//\n// ------------------------------------\n\n\n// Mixins\n// ------------------------------------\n\n@mixin z-depth-transition() {\n transition: box-shadow .28s cubic-bezier(.4, 0, .2, 1);\n}\n\n@mixin z-depth-focus() {\n box-shadow: 0 0 8px rgba(0, 0, 0, .18), 0 8px 16px rgba(0, 0, 0, .36);\n}\n\n@mixin z-depth-2dp() {\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14),\n 0 1px 5px 0 rgba(0, 0, 0, .12),\n 0 3px 1px -2px rgba(0, 0, 0, .2);\n}\n\n@mixin z-depth-3dp() {\n box-shadow: 0 3px 4px 0 rgba(0, 0, 0, .14),\n 0 1px 8px 0 rgba(0, 0, 0, .12),\n 0 3px 3px -2px rgba(0, 0, 0, .4);\n}\n\n@mixin z-depth-4dp() {\n box-shadow: 0 4px 5px 0 rgba(0, 0, 0, .14),\n 0 1px 10px 0 rgba(0, 0, 0, .12),\n 0 2px 4px -1px rgba(0, 0, 0, .4);\n}\n\n@mixin z-depth-6dp() {\n box-shadow: 0 6px 10px 0 rgba(0, 0, 0, .14),\n 0 1px 18px 0 rgba(0, 0, 0, .12),\n 0 3px 5px -1px rgba(0, 0, 0, .4);\n}\n\n@mixin z-depth-8dp() {\n box-shadow: 0 8px 10px 1px rgba(0, 0, 0, .14),\n 0 3px 14px 2px rgba(0, 0, 0, .12),\n 0 5px 5px -3px rgba(0, 0, 0, .4);\n}\n\n@mixin z-depth-16dp() {\n box-shadow: 0 16px 24px 2px rgba(0, 0, 0, .14),\n 0 6px 30px 5px rgba(0, 0, 0, .12),\n 0 8px 10px -5px rgba(0, 0, 0, .4);\n}\n\n@mixin z-depth-24dp() {\n box-shadow: 0 9px 46px 8px rgba(0, 0, 0, .14),\n 0 24px 38px 3px rgba(0, 0, 0, .12),\n 0 11px 15px -7px rgba(0, 0, 0, .4);\n}\n\n@mixin z-depth($dp: 2) {\n @if $dp == 2 {\n @include z-depth-2dp();\n } @else if $dp == 3 {\n @include z-depth-3dp();\n } @else if $dp == 4 {\n @include z-depth-4dp();\n } @else if $dp == 6 {\n @include z-depth-6dp();\n } @else if $dp == 8 {\n @include z-depth-8dp();\n } @else if $dp == 16 {\n @include z-depth-16dp();\n } @else if $dp == 24 {\n @include z-depth-24dp();\n }\n}\n\n\n// Class generator\n// ------------------------------------\n\n@mixin z-depth-classes($transition: false, $focus: false) {\n @if $transition == true {\n &-transition {\n @include z-depth-transition();\n }\n }\n\n @if $focus == true {\n &-focus {\n @include z-depth-focus();\n }\n }\n\n // The available values for the shadow depth\n @each $depth in 2, 3, 4, 6, 8, 16, 24 {\n &-#{$depth}dp {\n @include z-depth($depth);\n }\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Application footer\n.md-footer {\n position: absolute;\n bottom: 0;\n width: 100%;\n}\n\n// Pagination container\n.md-footer-pagination {\n background: $md-color-black;\n color: $md-color-white;\n}\n\n// Footer navigation\n.md-footer-nav {\n padding: 0.4rem;\n overflow: auto;\n\n // Links to previous and next page\n &__link {\n padding-top: 2.8rem;\n padding-bottom: 0.8rem;\n transition: opacity 0.25s;\n\n // [mobile landscape +]: Set proportional width\n @include break-from-device(mobile landscape) {\n width: 50%;\n }\n\n // Hovered link\n &:hover {\n opacity: 0.7;\n }\n\n // Link to previous page\n &--prev {\n width: 25%;\n float: left;\n\n // Title\n .md-footer-nav__title {\n\n // [mobile portrait -]: Hide title for previous page\n @include break-to-device(mobile portrait) {\n display: none;\n }\n }\n }\n\n // Link to next page\n &--next {\n width: 75%;\n float: right;\n text-align: right;\n }\n }\n\n // Icons\n &__icon {\n @extend %md-icon__button;\n\n transition: background 0.25s;\n }\n\n // Link title\n &__title {\n position: relative;\n padding: 0 0.4rem;\n font-size: 1.8rem;\n line-height: 4.8rem;\n }\n\n // Link direction\n &__direction {\n position: absolute;\n right: 0;\n left: 0;\n margin-top: -2.0rem;\n padding: 0 0.4rem;\n color: $md-color-white--light;\n font-size: 1.5rem;\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Navigation container\n.md-nav {\n font-size: ms(-1);\n line-height: 1.3;\n\n // Table of contents\n &--secondary {\n border-left: 0.4rem solid $md-color-primary;\n }\n\n // List title\n &__title {\n display: block;\n padding: 1.2rem 1.2rem 0;\n font-weight: 700;\n text-overflow: ellipsis;\n overflow: hidden;\n\n // Icon, hidden by default\n &::before {\n @extend %md-icon, %md-icon__button;\n\n display: none;\n content: \"arrow_back\";\n }\n }\n\n // List of items\n &__list {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n\n // List item\n &__item {\n padding: 0.625em 1.2rem 0;\n\n // Add bottom spacing to last item\n &:last-child {\n padding-bottom: 1.2rem;\n }\n\n // 2nd+ level items\n & & {\n padding-right: 0;\n\n // Remove bottom spacing for nested items\n &:last-child {\n padding-bottom: 0;\n }\n }\n }\n\n // Link inside item\n &__link {\n display: block;\n transition: color 0.125s;\n text-overflow: ellipsis;\n cursor: pointer;\n overflow: hidden;\n\n // Icon\n &::after {\n @extend %md-icon;\n\n // Item contains a nested list\n .md-nav__item--nested > & {\n content: \"expand_more\";\n }\n }\n\n // Hide link to table of contents by default - this will only match the\n // table of contents inside the drawer below and including tablet portrait\n html &[for=\"toc\"] {\n display: none;\n\n // Hide table of contents by default\n & ~ .md-nav {\n display: none;\n }\n\n // Hide icon for current item\n + .md-nav__link::after {\n display: none;\n }\n }\n\n // Marked item\n &[data-md-marked] {\n color: $md-color-black--light;\n }\n\n // Current or hovered item\n &:hover,\n &:active,\n &--active {\n color: $md-color-accent;\n }\n }\n\n // Repository containing source\n &__source {\n display: none;\n }\n\n // [tablet -]: Layered navigation\n @include break-to-device(tablet) {\n\n // Stretch primary navigation to drawer\n &--primary,\n &--primary .md-nav {\n display: flex;\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n flex-direction: column;\n height: 100%;\n z-index: 1;\n }\n\n // Adjust styles for primary navigation\n &--primary {\n background: $md-color-white;\n\n // Move subsequent navigations off\n .md-nav__toggle ~ .md-nav {\n @include z-depth(4);\n\n left: 0.4rem;\n background: $md-color-white;\n }\n\n // List title - higher specificity is necessary to ensure that the title\n // inside the drawer is always styled accordingly\n html & .md-nav__title {\n position: relative;\n padding: 0.4rem 1.6rem 0.4rem 5.6rem;\n background: $md-color-black--lightest;\n color: $md-color-black--light;\n font-size: 1.8rem;\n font-weight: 400;\n line-height: 4.8rem;\n white-space: nowrap;\n cursor: pointer;\n\n // Icon\n &::before {\n display: block;\n position: absolute;\n left: 0.4rem;\n width: 4.0rem;\n height: 4.0rem;\n color: $md-color-black--light;\n }\n\n // Remove border for first ist item\n ~ .md-nav__list > .md-nav__item:first-child {\n border-top: 0;\n }\n }\n\n // List of items\n .md-nav__list {\n flex: 1;\n overflow-y: scroll;\n }\n\n // List item\n .md-nav__item {\n padding: 0;\n border-top: 0.1rem solid $md-color-black--lightest;\n\n // Increase spacing to account for icon\n &--nested > .md-nav__link {\n padding-right: 4.8rem;\n }\n }\n\n // Link inside item\n .md-nav__link {\n position: relative;\n padding: 1.6rem;\n\n // Rotate icon\n &::after {\n position: absolute;\n top: 50%;\n right: 1.2rem;\n transform: translateY(-50%) rotate(-90deg);\n transition: inherit;\n color: $md-color-black--light;\n font-size: 2.4rem;\n }\n\n // Color of icon should inherit link color on hover\n &:hover::after {\n color: $md-color-accent;\n }\n }\n\n // Set nested navigation for table of contents to static\n .md-nav--secondary .md-nav {\n position: static;\n\n // 3rd level link\n .md-nav__link {\n padding-left: 2.8rem;\n }\n\n // 4th level link\n .md-nav .md-nav__link {\n padding-left: 4.0rem;\n }\n\n // 5th level link\n .md-nav .md-nav .md-nav__link {\n padding-left: 5.2rem;\n }\n\n // 6th level link\n .md-nav .md-nav .md-nav .md-nav__link {\n padding-left: 6.4rem;\n }\n }\n }\n\n // Hide nested navigation by default\n .md-nav__toggle ~ & {\n display: none;\n\n // Animate appearance, if browser supports 3D transforms\n .csstransforms3d & {\n display: block;\n transform: translateX(100%);\n transition:\n transform 0.25s cubic-bezier(0.8, 0.0, 0.6, 1.0),\n opacity 0.125s 0.05s;\n opacity: 0;\n }\n }\n\n // Expand nested navigation, if toggle is checked\n .md-nav__toggle:checked ~ & {\n display: block;\n\n // Animate appearance, if browser supports 3D transforms\n .csstransforms3d & {\n transform: translateX(0);\n transition:\n transform 0.25s cubic-bezier(0.4, 0.0, 0.2, 1.0),\n opacity 0.125s 0.125s;\n opacity: 1;\n }\n }\n\n // List item\n .md-nav__title,\n .md-nav__item {\n font-size: 1.6rem;\n line-height: 1.4;\n }\n }\n\n // [tablet portrait -]: Show table of contents in drawer\n @include break-to-device(tablet portrait) {\n\n // Remove border on secondary navigation\n &--secondary {\n border-left: 0;\n }\n\n // Show link to table of contents - higher specificity is necessary to\n // display the table of contents inside the drawer\n html &__link[for=\"toc\"] {\n display: block;\n\n // Unrotate icon for table of contents\n &::after {\n transform: translateY(-50%);\n color: $md-color-accent;\n content: \"toc\";\n }\n\n // Hide link to current item\n + .md-nav__link {\n display: none;\n }\n\n // Show table of contents\n & ~ .md-nav {\n display: flex;\n }\n }\n\n // Repository containing source\n &__source {\n display: block;\n padding: 0.4rem;\n background: $md-color-black;\n color: $md-color-white;\n }\n }\n\n // [screen +]: Tree-like navigation\n @include break-from-device(screen) {\n\n // Animation is only possible if JavaScript is available, as the max-height\n // property must be calculated before transitioning\n &.md-nav--transitioning {\n transition: max-height 0.25s cubic-bezier(0.86, 0.0, 0.07, 1.0);\n }\n\n // Hide nested navigation by default\n .md-nav__toggle ~ & {\n max-height: 0;\n overflow: hidden;\n }\n\n // Expand nested navigation, if toggle is checked\n .md-nav__toggle:checked ~ &,\n &.md-nav--toggled {\n max-height: 100%;\n }\n\n // List title\n &__title {\n\n // Hide titles for nested navigation\n & + .md-nav__list & {\n display: none;\n }\n }\n\n // Link inside item\n &__link {\n\n // Item contains a nested list\n .md-nav__item--nested > &::after {\n display: inline-block;\n transform-origin: 0.45em 0.45em;\n transform-style: preserve-3d;\n vertical-align: -0.125em;\n\n // Only animate icon when JavaScript is available, as the height can\n // not be animated anyway, and better no fun than half the fun\n .js & {\n transition: transform 0.4s;\n }\n }\n\n // Rotate icon for expanded lists\n .md-nav__item--nested .md-nav__toggle:checked ~ &::after {\n transform: rotateX(180deg);\n }\n }\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Search container\n.md-search {\n\n // Hide search, if JavaScript is not available.\n .no-js & {\n display: none;\n }\n\n // [tablet landscape +]: Header-embedded search\n @include break-from-device(tablet landscape) {\n padding: 0.4rem;\n padding-right: 3.2rem;\n }\n\n // Search modal overlay\n &__overlay {\n display: none;\n pointer-events: none;\n\n // [tablet portrait -]: Show overlay\n @include break-to-device(tablet portrait) {\n display: block;\n position: absolute;\n top: 0.4rem;\n left: 0.4rem;\n width: 4.0rem;\n height: 4.0rem;\n transform-origin: center;\n transition:\n transform 0.3s 0.1s,\n opacity 0.2s 0.2s;\n border-radius: 2.0rem;\n background: $md-color-white;\n opacity: 0;\n overflow: hidden;\n z-index: 1;\n\n // Expanded overlay\n .md-toggle--search:checked ~ .md-header & {\n transition:\n transform 0.4s,\n opacity 0.1s;\n opacity: 1;\n }\n }\n\n // Set scale factors (currently selected by trial)\n .md-toggle--search:checked ~ .md-header & {\n\n // [mobile portrait -]: Scale up 45 times\n @include break-to-device(mobile portrait) {\n transform: scale(45);\n }\n\n // [mobile landscape]: Scale up 60 times\n @include break-at-device(mobile landscape) {\n transform: scale(60);\n }\n\n // [mobile landscape]: Scale up 75 times\n @include break-at-device(tablet portrait) {\n transform: scale(75);\n }\n }\n }\n\n // Search modal wrapper\n &__inner {\n width: 100%;\n\n // [tablet portrait -]: Put search modal off-canvas by default\n @include break-to-device(tablet portrait) {\n position: fixed;\n top: 0;\n left: 100%;\n height: 100%;\n transform: translateX(5%);\n transition:\n left 0s 0.3s,\n transform 0.15s 0.15s cubic-bezier(0.4, 0.0, 0.2, 1.0),\n opacity 0.15s 0.15s;\n opacity: 0;\n z-index: 2;\n\n // Active search modal\n .md-toggle--search:checked ~ .md-header & {\n left: 0;\n transform: translateX(0);\n transition:\n left 0s 0s,\n transform 0.15s 0.15s cubic-bezier(0.1, 0.7, 0.1, 1.0),\n opacity 0.15s 0.15s;\n opacity: 1;\n }\n }\n\n // [tablet landscape +]: Make relative for inner positioning\n @include break-from-device(tablet landscape) {\n position: relative;\n }\n }\n\n // Search form\n &__form {\n\n // [tablet landscape +]: Header-embedded search\n @include break-from-device(tablet landscape) {\n width: 23.0rem;\n transition: width 0.25s cubic-bezier(0.1, 0.7, 0.1, 1.0);\n border-radius: 0.2rem;\n\n // Active search field\n [data-md-locked] & {\n width: 66.8rem;\n }\n }\n }\n\n // Icon\n &__icon {\n position: absolute;\n top: $md-icon-padding;\n left: $md-icon-padding + $md-icon-margin; // TODO: solve in some other way...\n transition: color 0.25s;\n font-size: $md-icon-size;\n cursor: pointer;\n\n // Set search icon on pseudo class, so it can be overridden for mobile\n // and tablet when the search is rendered in an overlay\n &::before {\n content: \"search\";\n }\n\n // [tablet portrait -]: Use back arrow as search icon\n @include break-to-device(tablet portrait) {\n top: 1.6rem;\n left: 1.6rem;\n\n // Show back arrow instead of search icon\n &::before {\n content: \"arrow_back\";\n }\n }\n }\n\n // Search field\n &__input {\n padding: 0 1.6rem 0 7.2rem;\n text-overflow: ellipsis;\n\n // Placeholder and icon color in active state\n + .md-search__icon,\n &::placeholder {\n color: $md-color-black--light;\n }\n\n // [tablet portrait -]: Full-screen search bar\n @include break-to-device(tablet portrait) {\n width: 100%;\n height: 5.6rem;\n font-size: 1.8rem;\n }\n\n // [tablet landscape +]: Header-embedded search\n @include break-from-device(tablet landscape) {\n width: 100%;\n height: 4.0rem;\n padding-left: 4.8rem;\n transition:\n background-color 0.25s,\n color 0.25s;\n border-radius: 0.2rem;\n background: $md-color-black--lighter;\n color: $md-color-white;\n font-size: ms(0);\n\n // Placeholder color\n + .md-search__icon,\n &::placeholder {\n transition: color 0.25s;\n color: $md-color-white;\n }\n\n // Hovered search field\n &:hover {\n background: $md-color-white--lightest;\n }\n\n // Active search field\n [data-md-locked] & {\n border-radius: 0.2rem 0.2rem 0 0;\n background: $md-color-white;\n color: $md-color-black;\n text-overflow: none;\n\n // Placeholder and icon color in active state\n + .md-search__icon,\n &::placeholder {\n color: $md-color-black--light;\n }\n }\n }\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Sidebar container\n.md-sidebar {\n position: relative;\n width: 24.2rem;\n float: left;\n overflow: visible;\n\n // Lock sidebar to container height (account for fixed header)\n &[data-md-locked] {\n position: fixed;\n top: 5.6rem;\n }\n\n // Omit repaint of whole page by promoting primary sidebar to a separate\n // layer, but not the secondary sidebar to omit jittering\n &--primary {\n backface-visibility: hidden;\n }\n\n // [tablet -]: Convert navigation to drawer\n @include break-to-device(tablet) {\n\n // Render primary sidebar as a slideout container\n &--primary {\n position: fixed;\n top: 0;\n left: -24.2rem;\n width: 24.2rem;\n height: 100%;\n transform: translateX(0);\n transition:\n transform 0.25s cubic-bezier(0.4, 0.0, 0.2, 1.0),\n box-shadow 0.25s;\n background: $md-color-white;\n z-index: 2;\n\n // Just hide drawer, if browser doesn't support 3D transforms\n .no-csstransforms3d & {\n display: none;\n }\n\n // Expanded drawer\n .md-toggle--drawer:checked ~ .md-container & {\n @include z-depth(8);\n\n transform: translateX(24.2rem);\n\n // Just show drawer, if browser doesn't support 3D transforms\n .no-csstransforms3d & {\n display: block;\n }\n }\n\n // Hide overflow for nested navigation\n .md-sidebar__scrollwrap {\n overflow: hidden;\n }\n }\n }\n\n // Secondary sidebar with table of contents\n &--secondary {\n display: none;\n\n // [tablet landscape +]: Show table of contents next to body copy\n @include break-from-device(tablet landscape) {\n display: block;\n float: right;\n\n // Hack: align right in case of locked sidebar\n &[data-md-locked] {\n margin-left: 100%;\n transform: translate(-100%, 0);\n\n // [screen +]: Limit to grid\n @include break-from-device(screen) {\n margin-left: 120.0rem;\n }\n }\n }\n }\n\n // Wrapper for scrolling on overflow\n &__scrollwrap {\n margin: 2.4rem 0.4rem;\n overflow-y: scroll;\n // -webkit-overflow-scrolling: touch; // TODO: problems with iOS\n\n // [tablet -]: Adjust margins\n @include break-to-device(tablet) {\n\n // Adjust margins for primary scrollbar\n .md-sidebar--primary & {\n margin: 0;\n }\n }\n\n // Limit height to window, if JavaScript is available\n .js & {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n }\n\n // Override native scrollbar styles\n &::-webkit-scrollbar {\n width: 0.4rem;\n height: 0.4rem;\n\n // Style scrollbar thumb\n &-thumb {\n background-color: $md-color-black--lighter;\n\n // Hovered scrollbar thumb\n &:hover {\n background-color: $md-color-accent;\n }\n }\n }\n }\n\n // Sidebar content\n &__inner {\n\n // [screen +]: Add line for reference\n @include break-from-device(screen) {\n border-right: 0.1rem solid $md-color-black--lightest;\n }\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Source container\n.md-source {\n display: block;\n transition: opacity 0.25s;\n font-size: 1.3rem;\n line-height: 1.2;\n white-space: nowrap;\n\n // Hovered source information\n &:hover {\n opacity: 0.7;\n }\n\n // Necessary for vertical alignment\n &::before {\n display: inline-block;\n height: 4.8rem;\n content: \"\";\n vertical-align: middle;\n }\n\n // Repository is hosted on platform\n &--bitbucket,\n &--github,\n &--gitlab {\n\n // Platform icon\n &::before {\n width: 4.8rem;\n background-repeat: no-repeat;\n background-position: center;\n background-size: $md-icon-size $md-icon-size;\n }\n\n // Adjust repository information for platform icon\n .md-source__repository {\n margin-left: -4.4rem;\n padding-left: 4.0rem;\n }\n }\n\n // Code is hosted on BitBucket\n &--bitbucket::before {\n background-image: url(\"../images/icons/bitbucket-white.svg\");\n }\n\n // Code is hosted on GitHub\n &--github::before {\n background-image: url(\"../images/icons/github-white.svg\");\n }\n\n // Code is hosted on GitLab\n &--gitlab::before {\n background-image: url(\"../images/icons/gitlab-white.svg\");\n }\n\n // Repository name\n &__repository {\n display: inline-block;\n max-width: 100%;\n margin-left: 0.8rem;\n font-weight: 700;\n text-overflow: ellipsis;\n overflow: hidden;\n vertical-align: middle;\n }\n\n // Source facts (statistics etc.)\n &__facts {\n margin: 0;\n padding: 0;\n font-size: 1.1rem;\n font-weight: 700;\n opacity: 0.75;\n list-style-type: none;\n }\n\n // Fact\n &__fact {\n float: left;\n transform: translateY(0%);\n transition:\n transform 0.25s cubic-bezier(0.1, 0.7, 0.1, 1.0),\n opacity 0.25s;\n opacity: 1;\n\n // Facts are hidden by default\n &--hidden {\n transform: translateY(100%);\n opacity: 0;\n }\n\n // Middle dots before fact\n &::before {\n margin: 0 0.2rem;\n content: \"\\00B7\";\n }\n\n // Remove middle dot on first fact\n &:first-child::before {\n display: none;\n }\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Admonition extension\n.admonition {\n margin: 2.0rem 0;\n padding: 0.8rem 1.2rem;\n border-left: 0.4rem solid $clr-blue-a200;\n border-radius: 0 0.2rem 0.2rem 0;\n background: transparentize($clr-blue-a200, 0.95);\n\n // Title\n &-title {\n color: $clr-blue-a400;\n font-size: ms(-1);\n font-weight: 700;\n line-height: 2;\n text-transform: uppercase;\n\n // Remove bottom spacing for title\n html & {\n margin-bottom: 0;\n }\n\n // Remove top spacing for first element following title\n html & + * {\n margin-top: 0;\n }\n\n // Icon\n &::before {\n @extend %md-icon;\n\n margin-right: 0.45em;\n font-size: 2.0rem;\n content: \"edit\";\n vertical-align: -0.25em;\n }\n }\n\n // Remove spacing on first element\n :first-child {\n margin-top: 0;\n }\n\n // Remove spacing on last element\n :last-child {\n margin-bottom: 0;\n }\n\n // Build representational classes\n @each $names, $appearance in (\n summary tldr: $clr-light-blue-a400 \"subject\",\n tip idea: $clr-teal-a700 \"whatshot\",\n success check done: $clr-green-a400 \"done\",\n warning attention important: $clr-orange-a400 \"warning\",\n failure fail missing: $clr-red-a200 \"clear\",\n danger caution: $clr-red-a400 \"flash_on\",\n error bug: $clr-pink-a400 \"bug_report\"\n ) {\n $tint: nth($appearance, 1);\n $icon: nth($appearance, 2);\n\n // Define base class\n &%#{nth($names, 1)},\n &.#{nth($names, 1)} {\n border-color: $tint;\n background: transparentize($tint, 0.95);\n\n // Set color for title\n .admonition-title {\n color: $tint;\n\n // Icon\n &::before {\n content: $icon;\n }\n }\n }\n\n // Define synonyms for base class\n @if length($names) > 1 {\n @for $n from 2 through length($names) {\n &.#{nth($names, $n)} {\n @extend .admonition%#{nth($names, 1)};\n }\n }\n }\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Variables\n// ----------------------------------------------------------------------------\n\n// Keywords\n$codehilite-keyword: #3B78E7;\n$codehilite-keyword-declaration: #3B78E7;\n$codehilite-keyword-namespace: #3B78E7;\n$codehilite-keyword-reserved: #3E61A2;\n$codehilite-keyword-type: #3E61A2;\n\n// Comments\n$codehilite-comment: #999999;\n$codehilite-comment-multiline: #999999;\n$codehilite-comment-preproc: #666666;\n$codehilite-comment-single: #999999;\n$codehilite-comment-special: #999999;\n\n// Names\n$codehilite-name-attribute: #C2185B;\n$codehilite-name-builtin: #C2185B;\n$codehilite-name-builtin-pseudo: #3E61A2;\n$codehilite-name-class: #C2185B;\n$codehilite-name-constant: #3E61A2;\n$codehilite-name-decorator: #666666;\n$codehilite-name-entity: #666666;\n$codehilite-name-exception: #C2185B;\n$codehilite-name-function: #C2185B;\n$codehilite-name-label: #3B5179;\n$codehilite-name-namespace: #EC407A;\n$codehilite-name-tag: #3B78E7;\n$codehilite-name-variable: #3E61A2;\n$codehilite-name-variable-class: #3E61A2;\n$codehilite-name-variable-instance: #3E61A2;\n$codehilite-name-variable-global: #3E61A2;\n$codehilite-name-extension: #EC407A;\n\n// Literals\n$codehilite-literal-string: #0D904F; // #1eec86 for dark background\n$codehilite-literal-string-backticks: #0D904F;\n$codehilite-literal-string-char: #0D904F;\n$codehilite-literal-string-doc: #999999;\n$codehilite-literal-string-double: #0D904F;\n$codehilite-literal-string-single: #0D904F;\n$codehilite-literal-string-symbol: #0D904F;\n\n// Numbers\n$codehilite-literal-number: #E74C3C;\n$codehilite-literal-number-float: #E74C3C;\n$codehilite-literal-number-hex: #E74C3C;\n$codehilite-literal-number-integer: #E74C3C;\n$codehilite-literal-number-integer-long: #E74C3C;\n$codehilite-literal-number-oct: #E74C3C;\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Codehilite extension\n.codehilite,\n.code {\n\n // Errors\n .err { color: #A61717; }\n\n // Operators\n .o { color: inherit; }\n\n // Generics\n .ge { color: #000000; } // Generic.Emph\n .gr { color: #AA0000; } // Generic.Error\n .gh { color: #999999; } // Generic.Heading\n .go { color: #888888; } // Generic.Output\n .gp { color: #555555; } // Generic.Prompt\n .gs { color: inherit; } // Generic.Strong\n .gu { color: #AAAAAA; } // Generic.Subheading\n .gt { color: #AA0000; } // Generic.Traceback\n\n // Keywords\n .k { color: $codehilite-keyword; }\n .kc { color: #A71D5D; } // Keyword.Constant\n .kd { color: $codehilite-keyword-declaration; }\n .kn { color: $codehilite-keyword-namespace; }\n .kp { color: #A71D5D; } // Keyword.Pseudo\n .kr { color: $codehilite-keyword-reserved; }\n .kt { color: $codehilite-keyword-type; }\n\n // Comments\n .c { color: $codehilite-comment; }\n .cm { color: $codehilite-comment-multiline; }\n .cp { color: $codehilite-comment-preproc; }\n .c1 { color: $codehilite-comment-single; }\n .cs { color: $codehilite-comment-special; }\n\n // Names\n .na { color: $codehilite-name-attribute; }\n .nb { color: $codehilite-name-builtin; }\n .bp { color: $codehilite-name-builtin-pseudo; }\n .nc { color: $codehilite-name-class; }\n .no { color: $codehilite-name-constant; }\n .nd { color: $codehilite-name-entity; }\n .ni { color: $codehilite-name-entity; }\n .ne { color: $codehilite-name-exception; }\n .nf { color: $codehilite-name-function; }\n .nl { color: $codehilite-name-label; }\n .nn { color: $codehilite-name-namespace; }\n .nt { color: $codehilite-name-tag; }\n .nv { color: $codehilite-name-variable; }\n .vc { color: $codehilite-name-variable-class; }\n .vg { color: $codehilite-name-variable-global; }\n .vi { color: $codehilite-name-variable-instance; }\n .nx { color: $codehilite-name-extension; }\n .ow { color: inherit; }\n\n // Numbers\n .m { color: $codehilite-literal-number; }\n .mf { color: $codehilite-literal-number-float; }\n .mh { color: $codehilite-literal-number-hex; }\n .mi { color: $codehilite-literal-number-integer; }\n .il { color: $codehilite-literal-number-integer-long; }\n .mo { color: $codehilite-literal-number-oct; }\n\n // Strings\n .s { color: $codehilite-literal-string; }\n .sb { color: $codehilite-literal-string-backticks; }\n .sc { color: $codehilite-literal-string-char; }\n .sd { color: $codehilite-literal-string-doc; }\n .s2 { color: $codehilite-literal-string-double; }\n .se { color: #183691; } // Literal.String.Escape\n .sh { color: #183691; } // Literal.String.Heredoc\n .si { color: #183691; } // Literal.String.Interpol\n .sx { color: #183691; } // Literal.String.Other\n .sr { color: #009926; } // Literal.String.Regex\n .s1 { color: $codehilite-literal-string-single; }\n .ss { color: $codehilite-literal-string-symbol; }\n\n // Diffs\n .gd { background-color: #FFDDDD; } // Generic.Deleted\n .gi { background-color: #DDFFDD; } // Generic.Inserted\n\n // Miscellaneous\n .w { color: transparent; } // Text.Whitespace\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Footnotes extension\n.footnote {\n color: $md-color-black--light;\n font-size: 80%;\n\n // Remove additional spacing on footnotes\n ol {\n margin-left: 0;\n }\n\n // Single footnote\n li {\n\n // TODO: this doesn't work entirely\n // &::before {\n // display: block;\n // content: \"\";\n // padding-top: (5.6rem + 2.4rem + 0.4rem);\n // margin-top: -(5.6rem + 2.4rem + 0.4rem);\n // }\n\n // Make back references visible on hover\n &:hover .footnote-backref,\n &:target .footnote-backref {\n transform: translateX(0);\n opacity: 1;\n }\n\n // Active or targeted back reference\n &:hover .footnote-backref:hover,\n &:target .footnote-backref {\n color: $md-color-accent;\n }\n }\n\n // Correct anchor offset\n &-ref::before {\n position: absolute;\n margin-top: -(5.6rem + 2.4rem);\n padding-top: (5.6rem + 2.4rem);\n content: \"\";\n pointer-events: none;\n }\n\n // Make back reference text transparent for icon\n &-backref {\n @extend %md-icon;\n\n position: absolute;\n transform: translateX(0.5rem);\n transition: transform 0.25s 0.125s,\n color 0.25s,\n opacity 0.125s 0.125s;\n color: $md-color-black--lighter;\n font-size: 2.0rem;\n opacity: 0;\n vertical-align: middle;\n\n // Hack: remove Unicode arrow for icon\n &::first-letter {\n font-size: 0;\n }\n\n // Back reference icon\n &::after {\n content: \"keyboard_return\";\n }\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Scoped in typesetted content for greater specificity\n.md-typeset {\n\n // Permalinks extension\n .headerlink {\n display: inline-block;\n margin-left: 1.0rem;\n transform: translate(0, 0.5rem);\n transition: transform 0.25s 0.25s,\n color 0.25s,\n opacity 0.125s 0.25s;\n color: $md-color-black--lighter;\n opacity: 0;\n }\n\n // All headers with permalinks have ids\n [id] {\n\n // Make permalink visible on hover\n &:hover .headerlink,\n &:target .headerlink,\n & .headerlink:focus {\n transform: translate(0, 0);\n opacity: 1;\n }\n\n // Active or targeted permalink\n &:hover .headerlink:hover,\n &:target .headerlink,\n & .headerlink:focus {\n color: $md-color-accent;\n }\n }\n\n // Correct anchor offset of headlines\n @each $level, $delta in (\n h1: 3.0rem,\n h2: 0.2rem,\n h3: 0.4rem,\n h4: 0.6rem,\n h5: 1.0rem,\n h6: 1.0rem\n ) {\n #{$level}[id]::before {\n display: block;\n margin-top: -(5.6rem + 2.4rem + $delta);\n padding-top: (5.6rem + 2.4rem + $delta);\n content: \"\";\n }\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// TODO: cleanup redundant data-md-locked,\n// --> use hidden checkbox for reasons of label/button/trigger easyness...\n// TODO: set label for magnifying glasses onto search toggle\n// --> this way we can always use the search toggle and only need the locked state on the body!\n// --> question: how does this play with directly focusing the search field!?\n\n.md-search__output {\n overflow-y: auto; // necessary for rounded borders\n // &::after {\n // display: block;\n // content: \"\";\n // width: 100%;\n // height: 20px;\n // background: red; // TODO: white shadow overlay to fade out result scrolling\n // }\n\n [data-md-locked] & {\n opacity: 1;\n }\n\n width: 100%;\n\n opacity: 0;\n transition: opacity .4s, max-height .4s;\n\n\n text-align: left; // TODO: wrap with another div for this effect\n\n z-index: -1; // ??? wherefor? probably not necessary anymore.\n}\n\n@include break-to-device(tablet portrait) {\n .md-search__output {\n position: absolute;\n top: 5.6rem;\n bottom: 0;\n\n background:\n \t\tlinear-gradient(white 10%, rgba(255,255,255,0)), // cover\n linear-gradient(to bottom, rgba(0, 0, 0, 0.25),\n rgba(0, 0, 0, 0.125) 20%,\n rgba(0, 0, 0, 0) 60%); // shadow\n \tbackground-repeat: no-repeat;\n \tbackground-color: white;\n \tbackground-size: 100% 20px, 100% 10px;\n\n \t// Opera doesn't support this in the shorthand\n \tbackground-attachment: local, scroll;\n }\n .md-search-result__item {\n // margin: 0.8rem;\n }\n .md-search-result__link {\n padding: 0 1.6rem;\n // background: white;\n // border-radius: 0.2rem;\n // @include z-depth(2);\n }\n .md-search-result__meta {\n padding-left: 1.6rem;\n border-top: 0.1rem solid rgba(0, 0, 0, 0.07);\n }\n}\n\n@include break-from-device(tablet landscape) {\n\n // Scroll shadow - WIP\n .md-search__output {\n @include z-depth(6);\n\n background: $md-color-white;\n // color: red;\n border-top: 0.1rem solid $md-color-black--lightest; // TODO: box-shadow inset!\n border-radius: 0 0 0.3rem 0.3rem; // ???\n position: absolute; // must be absolute, or header nav will stretch\n max-height: 0vh; // TODO: can this be done in percent!?!?!?\n [data-md-locked] & {\n max-height: 75vh;\n }\n\n // Override native scrollbar styles\n &::-webkit-scrollbar {\n width: 0.4rem;\n height: 0.4rem;\n\n // Style scrollbar thumb\n &-thumb {\n background-color: $md-color-black--lighter;\n\n // Hovered scrollbar thumb\n &:hover {\n background-color: $md-color-accent;\n }\n }\n }\n\n \tbackground:\n \t\tlinear-gradient(white 10%, rgba(255,255,255,0)), // cover\n linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2) 20%, rgba(0, 0, 0, 0) 60%); // shadow\n \tbackground-repeat: no-repeat;\n \tbackground-color: white;\n \tbackground-size: 100% 20px, 100% 5px;\n\n \t/* Opera doesn't support this in the shorthand */\n \tbackground-attachment: local, scroll;\n }\n}\n\n.md-search-result {\n\n\n &__meta {\n color: $md-color-black--light;\n padding-left: 4.8rem;\n padding-right: 1.6rem;\n line-height: 4.0rem;\n font-size: ms(-1);\n\n }\n\n &__list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n border-top: 0.1rem solid $md-color-black--lightest;\n }\n\n &__item {\n // background: yellow;\n\n // border-top: 0.1rem solid $md-color-black--lightest;\n }\n\n\n &__link {\n overflow: auto;\n display: block;\n padding-left: 4.8rem;\n padding-right: 1.6rem;\n transition: background 0.25s;\n\n &:hover {\n background: transparentize($md-color-accent, 0.9);\n }\n }\n\n &__title {\n color: $md-color-black;\n font-size: ms(0);\n line-height: 1.4;\n margin-top: 0.5em;\n }\n\n &__description {\n color: $md-color-black--light;\n font-size: ms(-1);\n line-height: 1.4;\n margin: 0.5em 0;;\n }\n}\n\n// .md-nav--secondary > .md-nav__title {\n// // -webkit-overflow-scrolling: touch;\n// @include z-depth(1);\n// }\n\n\n// // add light border for more contrast\n// .md-typeset pre {\n// border: 1px solid rgba(0,0,0,0.0125);\n// }\n\n\n// .md-search__suggest {\n//\n//\n// background: $md-color-white;\n// border-radius: 0 0 0.3rem 0.3rem;\n// color: #000000;\n// text-align: left;\n// border-top: 0.1rem solid $md-color-black--lightest;\n// display: none; // TODO: doesnt work due to display: none;\n// opacity: 0;\n//\n// // overflow: auto;\n// transition: opacity .3s;\n// // pointer-events: none;\n//\n//\n// .md-search__input:focus ~ & {\n// // animation: anima .3s;\n// display: block;\n// opacity: 1;\n// }\n// }\n\n// TODO: only on tablet and bind to search active state!\n// .md-search__input:focus {\n// border-radius: 0.3rem 0.3rem 0 0;\n// }\n\n@include break-to-device(mobile landscape) {\n\n .md-search__suggest {\n position: relative;\n z-index: 2;\n }\n}\n\n.md-search-term {\n position: relative;\n padding: 0 0.8rem 0 4.8rem;\n line-height: 4.0rem; // don't use line height????\n font-size: 1.6rem;\n\n &::before {\n @extend %md-icon;\n\n position: absolute;\n\n content: \"access_time\";\n font-size: 2.4rem;\n line-height: 4.0rem; // this sucks...\n left: 1.2rem;\n color: $md-color-black--lighter;\n }\n transition: background .25s;\n cursor: pointer;\n &:hover {\n background: mix($md-color-white, $md-color-primary, 90%);\n }\n}\n\n\n\n\n\n\n\n\n\n.checklist {\n\n li {\n position: relative;\n list-style-type: none;\n\n &::before {\n @extend %md-icon;\n\n position: absolute;\n appearance: none;\n color: blue;\n\n content: \"check_box\";\n font-size: 2.4rem;\n }\n }\n\n input[type=\"checkbox\"]:checked {\n width: 20px;\n // & ~ .checklist li::after {\n // color: red;\n // }\n }\n}\n\n// Inline code blocks\nins.critic, del.critic, mark {\n margin: 0 0.4rem;\n padding: 0.1rem 0;\n word-break: break-word;\n box-decoration-break: clone;\n\n border-radius: 0.2rem;\n\n // &::before {\n // @extend %md-icon;\n //\n // color: $md-color-black--light;\n //\n // font-size: 1.6rem;\n // padding-right: 0.2rem;\n // vertical-align: -0.2rem;\n // }\n}\n\nins.critic {\n background: #DDFFDD;\n box-shadow: 0.4rem 0 0 #DDFFDD,\n -0.4rem 0 0 #DDFFDD;\n text-decoration: none;\n // &::before {\n // content: \"add\";\n // }\n}\n\ndel.critic {\n background: #FFDDDD;\n box-shadow: 0.4rem 0 0 #FFDDDD,\n -0.4rem 0 0 #FFDDDD;\n //\n // &::before {\n // content: \"remove\";\n // }\n}\n\n// Not critic-specific!\nmark {\n background: #FFFF00;\n box-shadow: 0.4rem 0 0 #FFFF00,\n -0.4rem 0 0 #FFFF00; // ligher yellow...\n overflow: auto; // TODO: remove this, just needed to rebuild\n}\n\n.critic.comment {\n margin: 0 0.4rem;\n padding: 0.1rem 0;\n border-radius: 0.2rem;\n background: #F0F0F0;\n color: #37474F;\n // font-size: 85%;\n box-shadow: 0.4rem 0 0 #F0F0F0,\n -0.4rem 0 0 #F0F0F0; // darker than code!!!\n box-decoration-break: clone;\n\n &::before {\n @extend %md-icon;\n\n color: $md-color-black--lighter;\n\n content: \"chat\";\n font-size: 1.6rem;\n padding-right: 0.2rem;\n vertical-align: -0.2rem;\n }\n}\n\n.md-button {\n float: right;\n margin-top: 9px;\n font-size: 13px;\n padding-left: 2.6rem;\n font-weight: 700;\n text-transform: uppercase;\n}\n\n.task-list-item {\n list-style-type: none;\n}\n\n.task-list-item input {\n margin: 0 4px 0.25em -20px;\n vertical-align: middle;\n}\n//\n//\n//\n.task-list-item {\n position: relative;\n}\n\n.task-list-item input[type=\"checkbox\"] {\n opacity: 0;\n}\n\n.task-list-item input[type=\"checkbox\"] + label {\n display: block;\n position: absolute;\n top: 50%;\n left: -24px;\n width: 16px;\n margin-top: -8px;\n height: 16px;\n border-radius: 2px;\n background: #CCC;\n}\n\n.task-list-item input[type=\"checkbox\"]:checked + label::before {\n display: block;\n margin-top: -4px;\n margin-left: 2px;\n font-size: 1.2em;\n line-height: 1;\n border-radius: 2px;\n content: \"✔\";\n color: #1EBB52;\n}\n\n.codehilite .hll {\n background: #FFFF00;\n display: block;\n margin: 0 -16px;\n padding: 0 16px;\n}\n\n// TODO: integrate stylelint and property order!\n\n\n.md-typeset {\n sup {\n // background: $md-color-black--lighter;\n padding: 0 0.125em;\n border-radius: 0.2em;\n // font-weight: bold;\n // color: $md-color-white;\n &[id]:target {\n background: orange;\n }\n\n a {\n // color: white;\n }\n }\n}\n\n// TODO: remove jitter\n// .md-search,\n// .md-search__inner,\n// .md-search__form {\n// text-align: right;\n// }\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Variables\n// ----------------------------------------------------------------------------\n\n///\n/// Device-specific breakpoints\n///\n/// @example\n/// $break-devices: (\n/// mobile: (\n/// portrait: 220px 479px,\n/// landscape: 480px 719px\n/// ),\n/// tablet: (\n/// portrait: 720px 959px,\n/// landscape: 960px 1199px\n/// ),\n/// screen: (\n/// small: 1200px 1599px,\n/// medium: 1600px 1999px,\n/// large: 2000px\n/// )\n/// );\n///\n/// @group helpers\n/// @access private\n/// @type Map\n///\n$break-devices: () !default;\n\n// ----------------------------------------------------------------------------\n// Helpers\n// ----------------------------------------------------------------------------\n\n///\n/// Choose minimum and maximum device widths\n///\n/// @group helpers\n/// @access private\n/// @param {Map} $devices Map of devices\n/// @return {List} Minimum and maximum width\n///\n@function break-select-min-max($devices) {\n $min: 1000000;\n $max: 0;\n @each $key, $value in $devices {\n @while type-of($value) == map {\n $value: break-select-min-max($value);\n }\n @if type-of($value) == list {\n @each $number in $value {\n @if type-of($number) == number {\n $min: min($number, $min);\n @if $max != null {\n $max: max($number, $max);\n }\n } @else {\n @error \"Invalid number: #{$number}\";\n }\n }\n } @elseif type-of($value) == number {\n $min: min($value, $min);\n $max: null;\n } @else {\n @error \"Invalid value: #{$value}\";\n }\n }\n @return $min, $max;\n}\n\n///\n/// Select minimum and maximum widths for a device breakpoint\n///\n/// @group helpers\n/// @access private\n/// @param {String} $device Device\n/// @return {List} Minimum and maximum width\n///\n@function break-select-device($device) {\n $current: $break-devices;\n @for $n from 1 through length($device) {\n @if type-of($current) == map {\n $current: map-get($current, nth($device, $n));\n } @else {\n @error \"Invalid device map: #{$devices}\";\n }\n }\n @if type-of($current) == list or\n type-of($current) == number {\n $current: (default: $current);\n }\n @return break-select-min-max($current);\n}\n\n// ----------------------------------------------------------------------------\n// Mixins\n// ----------------------------------------------------------------------------\n\n///\n/// A minimum-maximum media query breakpoint\n///\n/// @group helpers\n/// @access public\n/// @param {Number|List} $breakpoint Number or number pair\n///\n@mixin break-at($breakpoint) {\n @if type-of($breakpoint) == number {\n @media only screen and (min-width: $breakpoint) {\n @content;\n }\n } @elseif type-of($breakpoint) == list {\n $min: nth($breakpoint, 1);\n $max: nth($breakpoint, 2);\n @if type-of($min) == number and type-of($max) == number {\n @media only screen and (min-width: $min) and (max-width: $max) {\n @content;\n }\n } @else {\n @error \"Invalid breakpoint: #{$breakpoint}\";\n }\n } @else {\n @error \"Invalid breakpoint: #{$breakpoint}\";\n }\n}\n\n///\n/// An orientation media query breakpoint\n///\n/// @group helpers\n/// @access public\n/// @param {String} $breakpoint Orientation\n///\n@mixin break-at-orientation($breakpoint) {\n @if type-of($breakpoint) == string {\n @media only screen and (orientation: $breakpoint) {\n @content;\n }\n } @else {\n @error \"Invalid breakpoint: #{$breakpoint}\";\n }\n}\n\n///\n/// A maximum-aspect-ratio media query breakpoint\n///\n/// @group helpers\n/// @access public\n/// @param {Number} $breakpoint Ratio\n///\n@mixin break-at-ratio($breakpoint) {\n @if type-of($breakpoint) == number {\n @media only screen and (max-aspect-ratio: $breakpoint) {\n @content;\n }\n } @else {\n @error \"Invalid breakpoint: #{$breakpoint}\";\n }\n}\n\n///\n/// A minimum-maximum media query device breakpoint\n///\n/// @group helpers\n/// @access public\n/// @param {String|List} $breakpoint Device\n///\n@mixin break-at-device($device) {\n @if type-of($device) == string {\n $device: $device,;\n }\n @if type-of($device) == list {\n $breakpoint: break-select-device($device);\n @if nth($breakpoint, 2) != null {\n $min: nth($breakpoint, 1);\n $max: nth($breakpoint, 2);\n @media only screen and (min-width: $min) and (max-width: $max) {\n @content;\n }\n } @else {\n @error \"Invalid device: #{$device}\";\n }\n } @else {\n @error \"Invalid device: #{$device}\";\n }\n}\n\n///\n/// A minimum media query device breakpoint\n///\n/// @group helpers\n/// @access public\n/// @param {String|List} $breakpoint Device\n///\n@mixin break-from-device($device) {\n @if type-of($device) == string {\n $device: $device,;\n }\n @if type-of($device) == list {\n $breakpoint: break-select-device($device);\n $min: nth($breakpoint, 1);\n @media only screen and (min-width: $min) {\n @content;\n }\n } @else {\n @error \"Invalid device: #{$device}\";\n }\n}\n\n///\n/// A maximum media query device breakpoint\n///\n/// @group helpers\n/// @access public\n/// @param {String|List} $breakpoint Device\n///\n@mixin break-to-device($device) {\n @if type-of($device) == string {\n $device: $device,;\n }\n @if type-of($device) == list {\n $breakpoint: break-select-device($device);\n $max: nth($breakpoint, 2);\n @media only screen and (max-width: $max) {\n @content;\n }\n } @else {\n @error \"Invalid device: #{$device}\";\n }\n}\n"]} \ No newline at end of file diff --git a/material/base.html b/material/base.html index 19cba13a5..979442e3a 100644 --- a/material/base.html +++ b/material/base.html @@ -93,8 +93,12 @@ var config = { url: { base: "{{ base_url }}", - repo: "{{ repo_url }}" - } + }, + repo: { + url: "{{ repo_url }}", + icon: "{{ repo_icon }}", + }, + storage: window.sessionStorage, }; /* Initialize application */ var app = new Application(config); diff --git a/src/assets/javascripts/application.js b/src/assets/javascripts/application.js index c6be950fb..ecdc1a804 100644 --- a/src/assets/javascripts/application.js +++ b/src/assets/javascripts/application.js @@ -29,6 +29,7 @@ import lunr from "lunr" // import Expander from "./components/expander" +import GithubSourceFacts from "./components/GithubSourceFacts" import Material from "./components/Material" // import Search from './components/search'; @@ -39,12 +40,41 @@ import Material from "./components/Material" class Application { + /** + * Constructor. + * + * @constructor + * @param {object} config Configuration object + * @return {void} + */ + constructor(config) { + this.config = config + } + /** * @return {void} */ initialize() { const material = new Material() material.initialize() + + if (this.hasGithubRepo()) { + const githubSource = new GithubSourceFacts( + this.config.storage, + this.config.repo.url + ) + githubSource.initialize() + } + } + + /** + * Is this application about a Github repository? + * + * @return {bool} - true if `repo.icon` or `repo.url` contains 'github' + */ + hasGithubRepo() { + return this.config.repo.icon === "github" + || this.config.repo.url.includes("github") } } @@ -185,48 +215,6 @@ document.addEventListener("DOMContentLoaded", () => { }) // setTimeout(function() { - fetch("https://api.github.com/repos/squidfunk/mkdocs-material") - .then(response => { - return response.json() - }) - .then(data => { - // console.log(data) - const stars = data.stargazers_count - const forks = data.forks_count - // store in session!!! - const lists = document.querySelectorAll(".md-source__facts"); // TODO 2x list in drawer and header - [].forEach.call(lists, list => { - - let li = document.createElement("li") - li.className = "md-source__fact md-source__fact--hidden" - li.innerText = `${stars} Stars` - list.appendChild(li) - - setTimeout(lix => { - lix.classList.remove("md-source__fact--hidden") - }, 100, li) - - li = document.createElement("li") - li.className = "md-source__fact md-source__fact--hidden" - li.innerText = `${forks} Forks` - list.appendChild(li) - - setTimeout(lix => { - lix.classList.remove("md-source__fact--hidden") - }, 500, li) - }) - - // setTimeout(function() { - // li.classList.remove('md-source__fact--hidden'); - // }, 100); - - }) - .catch(() => { - // console.log("parsing failed", ex) - - }) - - // setTimeout(function() { fetch("/mkdocs/search_index.json") // TODO: prepend BASE URL!!! .then(response => { return response.json() diff --git a/src/assets/javascripts/components/GithubSourceFacts.js b/src/assets/javascripts/components/GithubSourceFacts.js new file mode 100644 index 000000000..1cc77bf5c --- /dev/null +++ b/src/assets/javascripts/components/GithubSourceFacts.js @@ -0,0 +1,108 @@ +/* + * Copyright (c) 2016 Martin Donath + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ + +/* ---------------------------------------------------------------------------- + * Github Source + * ------------------------------------------------------------------------- */ + +export default +class GithubSourceFacts { + + /** + * Constructor. + * + * @constructor + * @param {object} storage - Accessor to storage, eg. `window.sessionStorage` + * @param {string} repoUrl - URL to Github repository + */ + constructor(storage, repoUrl) { + this.storage = storage + this.storageKey = "github-source-facts" + this.apiRepoUrl = repoUrl.replace("github.com/", "api.github.com/repos/") + } + + /** + * Retrieve stars and fork counts for the repository before invoking + * `GithubSourceFacts.paint`. + * + * @return {void} + */ + initialize() { + const facts = this.storage.getItem(this.storageKey) + + // Retrieve the facts, then invoke paint + if (!facts) { + fetch(this.apiRepoUrl) + .then(response => { + return response.json() + }) + .then(data => { + const repoFacts = { + stars: data.stargazers_count, + forks: data.forks_count + } + + this.storage.setItem(this.storageKey, JSON.stringify(repoFacts)) + + GithubSourceFacts.paint(repoFacts) + }) + .catch(() => { + // console.log("parsing failed", ex) + }) + // Use the cached facts + } else { + GithubSourceFacts.paint(JSON.parse(facts)) + } + } + + /** + * Populates `.md-source__facts` with star and fork counts. + * + * @param {integer} options.stars - Stars count for the repo + * @param {integer} options.forks - Fork count for the repo + * @return {void} + */ + static paint({ stars, forks }) { + const lists = document.querySelectorAll(".md-source__facts"); // TODO 2x list in drawer and header + + [].forEach.call(lists, list => { + + let li = document.createElement("li") + li.className = "md-source__fact md-source__fact--hidden" + li.innerText = `${stars} Stars` + list.appendChild(li) + + setTimeout(lix => { + lix.classList.remove("md-source__fact--hidden") + }, 100, li) + + li = document.createElement("li") + li.className = "md-source__fact md-source__fact--hidden" + li.innerText = `${forks} Forks` + list.appendChild(li) + + setTimeout(lix => { + lix.classList.remove("md-source__fact--hidden") + }, 500, li) + }) + } +} diff --git a/src/base.html b/src/base.html index 617cc9c84..041edc192 100644 --- a/src/base.html +++ b/src/base.html @@ -178,8 +178,12 @@ var config = { url: { base: "{{ base_url }}", - repo: "{{ repo_url }}" - } + }, + repo: { + url: "{{ repo_url }}", + icon: "{{ repo_icon }}", + }, + storage: window.sessionStorage, }; /* Initialize application */