"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,t){"function"==typeof define&&define.amd?define(t):"object"===("undefined"==typeof exports?"undefined":_typeof(exports))?module.exports=t():e.Breadcrumbs=t()}(window,function(){return function(t,e){function n(e){c(),(e.matches&&5<d.length||!e.matches&&2<d.length)&&(t.setAttribute("aria-expanded",!1),function(e){var t=document.createElement("a");t.textContent="...",t.href="#",t.addEventListener("click",u),(o=document.createElement("li")).classList.add("expandable"),o.appendChild(t),i.insertBefore(o,i.children[e]),i.tabIndex=-1}(d.length-2))}var o,r,i=t.querySelector("ol, ul"),d=t.querySelectorAll("li"),c=function(){o&&o.parentNode.removeChild(o)},u=function(e){c(),t.setAttribute("aria-expanded",!0),i.focus()};return r=window.matchMedia("(min-width: 768px)"),n(r),r.addListener(n),{}}});