').parent();
m.navtitle && r.children().prepend("
" + m.navtitle + "
");
var t = "\n .hc-mobile-nav." + v + " {\n display: block;\n }\n .hc-nav-trigger." + v + ",\n " + m.customtoggle + "." + v + " {\n display: " + (i.css("display") || "block") + "\n }\n .hc-nav." + v + " {\n display: none;\n }";
if (m.maxwidth && (t = "@media screen and (max-width: " + (m.maxwidth - 1) + "px) {\n " + t + "\n }"), p(t), n.on("click", b).removeattr("id").removeclass().addclass("\n hc-mobile-nav\n " + v + "\n " + (m.navclass || "") + "\n nav-levels-" + (m.levelopen || "none") + "\n side-" + m.side + "\n " + (m.offcanvas ? "off-canvas" : "") + "\n " + (m.disablebody ? "disable-body" : "") + "\n " + (t ? "is-ios" : "") + "\n " + (w ? "touch-device" : "") + "\n ").find("[id]").removeattr("id"), m.disablebody && n.on("click", h), m.closeonclick && o.find("li").children("a").on("click", h), !1 !== m.insertclose) {
var s = y('
' + (m.labelclose || "") + "");
s.children("a").on("click", m(!0, !0, h)), !0 === m.insertclose ? o.first().prepend(s) : o(m.insertclose) && n(s, m.insertclose, o.first().add(o.siblings("ul")))
}
o.each(function() {
var e = y(this),
n = e.parents("li").length;
if (0 !== n) {
var a = e.parent().addclass("nav-parent"),
l = a.children("a");
p[n] || (p[n] = []), p[n].push({ nav: e });
var o = p[n].length - 1;
p[n][o].wrapper = e.closest(".nav-wrapper");
var i = e.wrap('
').parent().on("click", b);
if (!m.levelspacing || "expand" !== m.levelopen && !1 !== m.levelopen && "none" !== m.levelopen || e.css("text-indent", m.levelspacing * n + "px"), !1 === m.levelopen || "none" === m.levelopen) return;
!0 === m.leveltitles && i.prepend("
" + l.text() + "
");
var t = y('
').appendto(l),
r = y('