!function(r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():System.registerDynamic("npm:dompurify/dist/purify.js",[],!1,function(t,e,n){return r.call(this)})}(function(){"use strict";var r,o=Object.hasOwnProperty,i=Object.setPrototypeOf,a=Object.isFrozen,s=Object.getPrototypeOf,c=Object.getOwnPropertyDescriptor,St=Object.freeze,t=Object.seal,u=Object.create,e="undefined"!=typeof Reflect&&Reflect,l=(l=e.apply)||function(t,e,n){return t.apply(e,n)},St=St||function(t){return t},t=t||function(t){return t},d=(d=e.construct)||function(t,e){return new(Function.prototype.bind.apply(t,[null].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(e))))},_t=f(Array.prototype.forEach),xt=f(Array.prototype.pop),Ht=f(Array.prototype.push),Mt=f(String.prototype.toLowerCase),Ct=f(String.prototype.match),Dt=f(String.prototype.replace),Pt=f(String.prototype.indexOf),Nt=f(String.prototype.trim),Ft=f(RegExp.prototype.test),It=(r=TypeError,function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return d(r,e)});function f(o){return function(t){for(var e=arguments.length,n=Array(1<e?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return l(o,t,n)}}function Ut(t,e){i&&i(t,null);for(var n=e.length;n--;){var r,o=e[n];"string"!=typeof o||(r=Mt(o))!==o&&(a(e)||(e[n]=r),o=r),t[o]=!0}return t}function Bt(t){var e=u(null),n=void 0;for(n in t)l(o,t,[n])&&(e[n]=t[n]);return e}function jt(t,e){for(;null!==t;){var n=c(t,e);if(n){if(n.get)return f(n.get);if("function"==typeof n.value)return f(n.value)}t=s(t)}return null}var zt=St(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Gt=St(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Yt=St(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Wt=St(["animate","color-profile","cursor","discard","fedropshadow","feimage","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),qt=St(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),Xt=St(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Kt=St(["#text"]),Qt=St(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns"]),Vt=St(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),$t=St(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Zt=St(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Jt=t(/\{\{[\s\S]*|[\s\S]*\}\}/gm),te=t(/<%[\s\S]*|[\s\S]*%>/gm),ee=t(/^data-[\-\w.\u00B7-\uFFFF]/),ne=t(/^aria-[\-\w]+$/),re=t(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),oe=t(/^(?:\w+script|data):/i),ie=t(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function se(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var ce=function(){return"undefined"==typeof window?null:window},ue=function(t,e){if("object"!==(void 0===t?"undefined":ae(t))||"function"!=typeof t.createPolicy)return null;var n=null,r="data-tt-policy-suffix",o="dompurify"+((n=e.currentScript&&e.currentScript.hasAttribute(r)?e.currentScript.getAttribute(r):n)?"#"+n:"");try{return t.createPolicy(o,{createHTML:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};return function e(t){function u(t){return e(t)}var s=0<arguments.length&&void 0!==t?t:ce();if(u.version="2.2.6",u.removed=[],!s||!s.document||9!==s.document.nodeType)return u.isSupported=!1,u;var c=s.document,i=s.document,l=s.DocumentFragment,n=s.HTMLTemplateElement,d=s.Node,a=s.Element,r=s.NodeFilter,o=s.NamedNodeMap,f=void 0===o?s.NamedNodeMap||s.MozNamedAttrMap:o,h=s.Text,p=s.Comment,m=s.DOMParser,t=s.trustedTypes,o=a.prototype,g=jt(o,"cloneNode"),v=jt(o,"nextSibling"),y=jt(o,"childNodes"),w=jt(o,"parentNode");"function"!=typeof n||(n=i.createElement("template")).content&&n.content.ownerDocument&&(i=n.content.ownerDocument);var b=ue(t,c),A=b&&tt?b.createHTML(""):"",T=i.implementation,E=i.createNodeIterator,k=i.getElementsByTagName,R=i.createDocumentFragment,O=c.importNode,L={};try{L=Bt(i).documentMode?i.documentMode:{}}catch(t){}var S={};u.isSupported=T&&void 0!==T.createHTMLDocument&&9!==L;function _(t){ut&&ut===t||(t=Bt(t=t&&"object"===(void 0===t?"undefined":ae(t))?t:{}),I="ALLOWED_TAGS"in t?Ut({},t.ALLOWED_TAGS):U,B="ALLOWED_ATTR"in t?Ut({},t.ALLOWED_ATTR):j,st="ADD_URI_SAFE_ATTR"in t?Ut(Bt(ct),t.ADD_URI_SAFE_ATTR):ct,it="ADD_DATA_URI_TAGS"in t?Ut(Bt(at),t.ADD_DATA_URI_TAGS):at,z="FORBID_TAGS"in t?Ut({},t.FORBID_TAGS):{},G="FORBID_ATTR"in t?Ut({},t.FORBID_ATTR):{},x="USE_PROFILES"in t&&t.USE_PROFILES,Y=!1!==t.ALLOW_ARIA_ATTR,W=!1!==t.ALLOW_DATA_ATTR,q=t.ALLOW_UNKNOWN_PROTOCOLS||!1,X=t.SAFE_FOR_TEMPLATES||!1,K=t.WHOLE_DOCUMENT||!1,$=t.RETURN_DOM||!1,Z=t.RETURN_DOM_FRAGMENT||!1,J=!1!==t.RETURN_DOM_IMPORT,tt=t.RETURN_TRUSTED_TYPE||!1,V=t.FORCE_BODY||!1,et=!1!==t.SANITIZE_DOM,nt=!1!==t.KEEP_CONTENT,rt=t.IN_PLACE||!1,F=t.ALLOWED_URI_REGEXP||F,X&&(W=!1),Z&&($=!0),x&&(I=Ut({},[].concat(se(Kt))),B=[],!0===x.html&&(Ut(I,zt),Ut(B,Qt)),!0===x.svg&&(Ut(I,Gt),Ut(B,Vt),Ut(B,Zt)),!0===x.svgFilters&&(Ut(I,Yt),Ut(B,Vt),Ut(B,Zt)),!0===x.mathMl&&(Ut(I,qt),Ut(B,$t),Ut(B,Zt))),t.ADD_TAGS&&Ut(I=I===U?Bt(I):I,t.ADD_TAGS),t.ADD_ATTR&&Ut(B=B===j?Bt(B):B,t.ADD_ATTR),t.ADD_URI_SAFE_ATTR&&Ut(st,t.ADD_URI_SAFE_ATTR),nt&&(I["#text"]=!0),K&&Ut(I,["html","head","body"]),I.table&&(Ut(I,["tbody"]),delete z.tbody),St&&St(t),ut=t)}var x,H=Jt,M=te,C=ee,D=ne,P=oe,N=ie,F=re,I=null,U=Ut({},[].concat(se(zt),se(Gt),se(Yt),se(qt),se(Kt))),B=null,j=Ut({},[].concat(se(Qt),se(Vt),se($t),se(Zt))),z=null,G=null,Y=!0,W=!0,q=!1,X=!1,K=!1,Q=!1,V=!1,$=!1,Z=!1,J=!0,tt=!1,et=!0,nt=!0,rt=!1,ot=Ut({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),it=null,at=Ut({},["audio","video","img","source","image","track"]),st=null,ct=Ut({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),ut=null,lt=i.createElement("form"),dt=Ut({},["mi","mo","mn","ms","mtext"]),ft=Ut({},["foreignobject","desc","title","annotation-xml"]),ht=Ut({},Gt);Ut(ht,Yt),Ut(ht,Wt);var pt=Ut({},qt);Ut(pt,Xt);function mt(e){Ht(u.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=A}catch(t){e.remove()}}}function gt(t,e){try{Ht(u.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){Ht(u.removed,{attribute:null,from:e})}e.removeAttribute(t)}function vt(t){var e=void 0,n=void 0;V?t="<remove></remove>"+t:n=(r=Ct(t,/^[\r\n\t ]+/))&&r[0];var r,o=b?b.createHTML(t):t;try{e=(new m).parseFromString(o,"text/html")}catch(t){}return e&&e.documentElement||((r=(e=T.createHTMLDocument("")).body).parentNode.removeChild(r.parentNode.firstElementChild),r.outerHTML=o),t&&n&&e.body.insertBefore(i.createTextNode(n),e.body.childNodes[0]||null),k.call(e,K?"html":"body")[0]}function yt(t){return E.call(t.ownerDocument||t,t,r.SHOW_ELEMENT|r.SHOW_COMMENT|r.SHOW_TEXT,function(){return r.FILTER_ACCEPT},!1)}function wt(t){return"object"===(void 0===d?"undefined":ae(d))?t instanceof d:t&&"object"===(void 0===t?"undefined":ae(t))&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName}function bt(t,e,n){S[t]&&_t(S[t],function(t){t.call(u,e,n,ut)})}function At(t){var e;if(bt("beforeSanitizeElements",t,null),!((n=t)instanceof h||n instanceof p||"string"==typeof n.nodeName&&"string"==typeof n.textContent&&"function"==typeof n.removeChild&&n.attributes instanceof f&&"function"==typeof n.removeAttribute&&"function"==typeof n.setAttribute&&"string"==typeof n.namespaceURI&&"function"==typeof n.insertBefore))return mt(t),1;if(Ct(t.nodeName,/[\u0080-\uFFFF]/))return mt(t),1;var n=Mt(t.nodeName);if(bt("uponSanitizeElement",t,{tagName:n,allowedTags:I}),!wt(t.firstElementChild)&&(!wt(t.content)||!wt(t.content.firstElementChild))&&Ft(/<[/\w]/g,t.innerHTML)&&Ft(/<[/\w]/g,t.textContent))return mt(t),1;if(I[n]&&!z[n])return t instanceof a&&!function(t){var e=w(t);e&&e.tagName||(e={namespaceURI:Lt,tagName:"template"});var n=Mt(t.tagName),r=Mt(e.tagName);return t.namespaceURI===Ot?e.namespaceURI===Lt?"svg"===n:e.namespaceURI===Rt?"svg"===n&&("annotation-xml"===r||dt[r]):Boolean(ht[n]):t.namespaceURI===Rt?e.namespaceURI===Lt?"math"===n:e.namespaceURI===Ot?"math"===n&&ft[r]:Boolean(pt[n]):t.namespaceURI===Lt&&((e.namespaceURI!==Ot||ft[r])&&((e.namespaceURI!==Rt||dt[r])&&(r=Ut({},["title","style","font","a","script"]),!pt[n]&&(r[n]||!ht[n]))))}(t)||("noscript"===n||"noembed"===n)&&Ft(/<\/no(script|embed)/i,t.innerHTML)?(mt(t),1):(X&&3===t.nodeType&&(e=t.textContent,e=Dt(e,H," "),e=Dt(e,M," "),t.textContent!==e&&(Ht(u.removed,{element:t.cloneNode()}),t.textContent=e)),bt("afterSanitizeElements",t,null),0);if(nt&&!ot[n])for(var r=w(t),o=y(t),i=o.length-1;0<=i;--i)r.insertBefore(g(o[i],!0),v(t));return mt(t),1}function Tt(t,e,n){if(et&&("id"===e||"name"===e)&&(n in i||n in lt))return!1;if(!(W&&Ft(C,e)||Y&&Ft(D,e))){if(!B[e]||G[e])return!1;if(!st[e]&&!Ft(F,Dt(n,N,""))&&("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==Pt(n,"data:")||!it[t])&&(!q||Ft(P,Dt(n,N,"")))&&n)return!1}return!0}function Et(t){var e=void 0,n=void 0;bt("beforeSanitizeAttributes",t,null);var r=t.attributes;if(r){for(var o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B},n=r.length;n--;){var i=(c=r[n]).name,a=c.namespaceURI,e=Nt(c.value),s=Mt(i);if(o.attrName=s,o.attrValue=e,o.keepAttr=!0,o.forceKeepAttr=void 0,bt("uponSanitizeAttribute",t,o),e=o.attrValue,!o.forceKeepAttr&&(gt(i,t),o.keepAttr))if(Ft(/\/>/i,e))gt(i,t);else{X&&(e=Dt(e,H," "),e=Dt(e,M," "));var c=t.nodeName.toLowerCase();if(Tt(c,s,e))try{a?t.setAttributeNS(a,i,e):t.setAttribute(i,e),xt(u.removed)}catch(t){}}}bt("afterSanitizeAttributes",t,null)}}function kt(t){var e,n=yt(t);for(bt("beforeSanitizeShadowDOM",t,null);e=n.nextNode();)bt("uponSanitizeShadowNode",e,null),At(e)||(e.content instanceof l&&kt(e.content),Et(e));bt("afterSanitizeShadowDOM",t,null)}var Rt="http://www.w3.org/1998/Math/MathML",Ot="http://www.w3.org/2000/svg",Lt="http://www.w3.org/1999/xhtml";return u.sanitize=function(t,e){var n,r=void 0,o=void 0,i=void 0;if("string"!=typeof(t=t||"\x3c!--\x3e")&&!wt(t)){if("function"!=typeof t.toString)throw It("toString is not a function");if("string"!=typeof(t=t.toString()))throw It("dirty is not a string, aborting")}if(!u.isSupported){if("object"===ae(s.toStaticHTML)||"function"==typeof s.toStaticHTML){if("string"==typeof t)return s.toStaticHTML(t);if(wt(t))return s.toStaticHTML(t.outerHTML)}return t}if(Q||_(e),u.removed=[],"string"==typeof t&&(rt=!1),!rt)if(t instanceof d)1===(e=(r=vt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===e.nodeName||"HTML"===e.nodeName?r=e:r.appendChild(e);else{if(!$&&!X&&!K&&-1===t.indexOf("<"))return b&&tt?b.createHTML(t):t;if(!(r=vt(t)))return $?null:A}r&&V&&mt(r.firstChild);for(var a=yt(rt?t:r);n=a.nextNode();)3===n.nodeType&&n===o||At(n)||(n.content instanceof l&&kt(n.content),Et(n),o=n);if(o=null,rt)return t;if($){if(Z)for(i=R.call(r.ownerDocument);r.firstChild;)i.appendChild(r.firstChild);else i=r;return i=J?O.call(c,i,!0):i}return t=K?r.outerHTML:r.innerHTML,X&&(t=Dt(t,H," "),t=Dt(t,M," ")),b&&tt?b.createHTML(t):t},u.setConfig=function(t){_(t),Q=!0},u.clearConfig=function(){ut=null,Q=!1},u.isValidAttribute=function(t,e,n){return ut||_({}),t=Mt(t),e=Mt(e),Tt(t,e,n)},u.addHook=function(t,e){"function"==typeof e&&(S[t]=S[t]||[],Ht(S[t],e))},u.removeHook=function(t){S[t]&&xt(S[t])},u.removeHooks=function(t){S[t]&&(S[t]=[])},u.removeAllHooks=function(){S={}},u}()}),function(r){"object"==typeof exports&&"object"==typeof module?module.exports=r():System.registerDynamic("npm:navigo/lib/navigo.js",[],!1,function(t,e,n){return"function"==typeof r?r.call(this):r})}(function(){return(()=>{"use strict";var n={"./src/Q.ts":(t,e,n)=>{function r(t,e,n){var r=e||{},o=0;!function e(){t[o]?Array.isArray(t[o])?(t.splice.apply(t,[o,1].concat(t[o][0](r)?t[o][1]:t[o][2])),e()):t[o](r,function(t){void 0===t||!0===t?(o+=1,e()):n&&n(r)}):n&&n(r)}()}n.r(e),n.d(e,{default:()=>r}),r.if=function(t,e,n){return[t,e=!Array.isArray(e)?[e]:e,n=!Array.isArray(n)?[n]:n]}},"./src/constants.ts":(t,e,n)=>{n.r(e),n.d(e,{PARAMETER_REGEXP:()=>r,REPLACE_VARIABLE_REGEXP:()=>o,WILDCARD_REGEXP:()=>i,REPLACE_WILDCARD:()=>a,NOT_SURE_REGEXP:()=>s,REPLACE_NOT_SURE:()=>c,START_BY_SLASH_REGEXP:()=>u,MATCH_REGEXP_FLAGS:()=>l});var r=/([:*])(\w+)/g,o="([^/]+)",i=/\*/g,a="?(?:.*)",s=/\/\?/g,c="/?([^/]+|)",u="(?:/^|^)",l=""},"./src/index.ts":(t,e,n)=>{n.r(e),n.d(e,{default:()=>function(t,e){var a,n=e||{strategy:"ONE",hash:!1,noMatchWarning:!1},i=this,r="/",o=null,s=[],c=!1,u=(0,A.pushStateAvailable)(),l=(0,A.windowAvailable)();t?r=(0,A.clean)(t):console.warn('Navigo requires a root path in its constructor. If not provided will use "/" as default.');function d(t){return t=0<=t.indexOf("#")?!0===n.hash?t.split("#")[1]||"/":t.split("#")[0]:t}function f(t){return(0,A.clean)(r+"/"+(0,A.clean)(t))}function h(t,e,n,r){return t=(0,A.isString)(t)?f(t):t,{name:r||(0,A.clean)(String(t)),path:t,handler:e,hooks:(0,A.accumulateHooks)(n)}}function p(t,e){t=t?(0,A.clean)(r)+"/"+(0,A.clean)(t):void 0;e={instance:i,to:t,currentLocationPath:t,navigateOptions:{},resolveOptions:x({},n,e)};return(0,T.default)([E.default,k.default,T.default.if(function(t){t=t.matches;return t&&0<t.length},S.default,_.notFoundLifeCycle)],e),e.matches||!1}function m(t,e){t=(0,A.clean)(r)+"/"+(0,A.clean)(t);t={instance:i,to:t,navigateOptions:e||{},resolveOptions:e&&e.resolveOptions?e.resolveOptions:n,currentLocationPath:d(t)};(0,T.default)([R.default,O.default,k.default,T.default.if(function(t){t=t.matches;return t&&0<t.length},S.default,_.notFoundLifeCycle),L.default],t)}function g(){if(l)return function(){if(l)return[].slice.call(document.querySelectorAll("[data-navigo]"));return[]}().forEach(function(o){"false"!==o.getAttribute("data-navigo")&&"_blank"!==o.getAttribute("target")?o.hasListenerAttached||(o.hasListenerAttached=!0,o.navigoHandler=function(t){if((t.ctrlKey||t.metaKey)&&"a"===t.target.tagName.toLowerCase())return!1;if(null==(n=o.getAttribute("href")))return!1;if(n.match(/^(http|https)/)&&"undefined"!=typeof URL)try{var e=new URL(n),n=e.pathname+e.search}catch(t){}var r=(0,A.parseNavigateOptions)(o.getAttribute("data-navigo-options"));c||(t.preventDefault(),t.stopPropagation(),i.navigate((0,A.clean)(n),r))},o.addEventListener("click",o.navigoHandler)):o.hasListenerAttached&&o.removeEventListener("click",o.navigoHandler)}),i}function v(e,t){var n=s.find(function(t){return t.name===e});if(n){var r=n.path;if(t)for(var o in t)r=r.replace(":"+o,t[o]);return r.match(/^\//)?r:"/"+r}return null}function y(t){var e=(0,A.extractGETParameters)((0,A.clean)(t)),n=e[0],r=e[1],e=""===r?null:(0,A.parseQuery)(r);return{url:n,queryString:r,hashString:(0,A.extractHashFromURL)(t),route:h(n,function(){},[a],n),data:null,params:e}}function w(t,e,n){return(e="string"==typeof e?b(e):e)?(e.hooks[t]||(e.hooks[t]=[]),e.hooks[t].push(n),function(){e.hooks[t]=e.hooks[t].filter(function(t){return t!==n})}):(console.warn("Route doesn't exists: "+e),function(){})}function b(e){return"string"==typeof e?s.find(function(t){return t.name===f(e)}):s.find(function(t){return t.handler===e})}this.root=r,this.routes=s,this.destroyed=c,this.current=o,this.__freezeListening=!1,this.on=function(o,t,e){var i=this;return"object"!=typeof o||o instanceof RegExp?("function"==typeof o&&(e=t,t=o,o=r),s.push(h(o,t,[a,e]))):Object.keys(o).forEach(function(t){var e,n,r;"function"==typeof o[t]?i.on(t,o[t]):(e=(r=o[t]).uses,n=r.as,r=r.hooks,s.push(h(t,e,[a,r],n)))}),this},this.off=function(e){return this.routes=s=s.filter(function(t){return(0,A.isString)(e)?(0,A.clean)(t.path)!==(0,A.clean)(e):(0,A.isFunction)(e)?e!==t.handler:String(t.path)!==String(e)}),this},this.resolve=p,this.navigate=m,this.navigateByName=function(t,e,n){return null!==(e=v(t,e))&&(m(e,n),!0)},this.destroy=function(){this.routes=s=[],u&&window.removeEventListener("popstate",this.__popstateListener),this.destroyed=c=!0},this.notFound=function(t,e){return i._notFoundRoute=h("*",t,[a,e],"__NOT_FOUND__"),this},this.updatePageLinks=g,this.link=function(t){return"/"+r+"/"+(0,A.clean)(t)},this.hooks=function(t){return a=t,this},this.extractGETParameters=function(t){return(0,A.extractGETParameters)(d(t))},this.lastResolved=function(){return o},this.generate=v,this.getLinkPath=function(t){return t.getAttribute("href")},this.match=function(t){return t={instance:i,currentLocationPath:t,to:t,navigateOptions:{},resolveOptions:n},(0,k.default)(t,function(){}),t.matches||!1},this.matchLocation=function(t,e){return e={instance:i,to:e,currentLocationPath:e},(0,E.default)(e,function(){}),"string"==typeof t&&(t=(0,A.clean)(t)),(t=(0,A.matchRoute)(e,{name:String(t),path:t,handler:function(){},hooks:{}}))||!1},this.getCurrentLocation=function(){return y((0,A.clean)((0,A.getCurrentEnvURL)(r)).replace(new RegExp("^"+r),""))},this.addBeforeHook=w.bind(this,"before"),this.addAfterHook=w.bind(this,"after"),this.addAlreadyHook=w.bind(this,"already"),this.addLeaveHook=w.bind(this,"leave"),this.getRoute=b,this._pathToMatchObject=y,this._clean=A.clean,this._checkForAHash=d,this._setCurrent=function(t){return o=i.current=t},function(){u&&(this.__popstateListener=function(){i.__freezeListening||p()},window.addEventListener("popstate",this.__popstateListener))}.call(this),g.call(this)}});var A=n("./src/utils.ts"),T=n("./src/Q.ts"),E=n("./src/middlewares/setLocationPath.ts"),k=n("./src/middlewares/matchPathToRegisteredRoutes.ts"),R=n("./src/middlewares/checkForDeprecationMethods.ts"),O=n("./src/middlewares/checkForForceOp.ts"),L=n("./src/middlewares/updateBrowserURL.ts"),S=n("./src/middlewares/processMatches.ts"),_=n("./src/lifecycles.ts");function x(){return(x=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n,r=arguments[e];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}},"./src/lifecycles.ts":(t,e,n)=>{n.r(e),n.d(e,{foundLifecycle:()=>d,notFoundLifeCycle:()=>f});var r=n("./src/Q.ts"),o=n("./src/middlewares/checkForLeaveHook.ts"),i=n("./src/middlewares/checkForBeforeHook.ts"),a=n("./src/middlewares/callHandler.ts"),s=n("./src/middlewares/checkForAfterHook.ts"),c=n("./src/middlewares/checkForAlreadyHook.ts"),u=n("./src/middlewares/checkForNotFoundHandler.ts"),l=n("./src/middlewares/errorOut.ts"),e=n("./src/middlewares/flushCurrent.ts"),n=n("./src/middlewares/updateState.ts"),d=[c.default,i.default,a.default,s.default],f=[o.default,u.default,r.default.if(function(t){return t.notFoundHandled},d.concat([n.default]),[l.default,e.default])]},"./src/middlewares/callHandler.ts":(t,e,n)=>{n.r(e),n.d(e,{default:()=>function(t,e){(0,r.undefinedOrTrue)(t.navigateOptions,"callHandler")&&t.match.route.handler(t.match);t.instance.updatePageLinks(),e()}});var r=n("./src/utils.ts")},"./src/middlewares/checkForAfterHook.ts":(t,e,n)=>{n.r(e),n.d(e,{default:()=>function(e,t){e.match.route.hooks&&e.match.route.hooks.after&&(0,r.undefinedOrTrue)(e.navigateOptions,"callHooks")&&e.match.route.hooks.after.forEach(function(t){return t(e.match)});t()}});var r=n("./src/utils.ts")},"./src/middlewares/checkForAlreadyHook.ts":(t,e,n)=>{n.r(e),n.d(e,{default:()=>function(e,t){var n=e.instance.lastResolved();if(n&&n[0]&&n[0].route===e.match.route&&n[0].url===e.match.url&&n[0].queryString===e.match.queryString)return n.forEach(function(t){t.route.hooks&&t.route.hooks.already&&(0,r.undefinedOrTrue)(e.navigateOptions,"callHooks")&&t.route.hooks.already.forEach(function(t){return t(e.match)})}),void t(!1);t()}});var r=n("./src/utils.ts")},"./src/middlewares/checkForBeforeHook.ts":(t,e,n)=>{n.r(e),n.d(e,{default:()=>function(r,t){r.match.route.hooks&&r.match.route.hooks.before&&(0,i.undefinedOrTrue)(r.navigateOptions,"callHooks")?(0,o.default)(r.match.route.hooks.before.map(function(n){return function(t,e){return n(e,r.match)}}).concat([function(){return t()}])):t()}});var o=n("./src/Q.ts"),i=n("./src/utils.ts")},"./src/middlewares/checkForDeprecationMethods.ts":(t,e,n)=>{n.r(e),n.d(e,{default:()=>function(t,e){t.navigateOptions&&(void 0!==t.navigateOptions.shouldResolve&&console.warn('"shouldResolve" is deprecated. Please check the documentation.'),void 0!==t.navigateOptions.silent&&console.warn('"silent" is deprecated. Please check the documentation.'));e()}})},"./src/middlewares/checkForForceOp.ts":(t,e,n)=>{n.r(e),n.d(e,{default:()=>function(t,e){!0===t.navigateOptions.force?(t.instance._setCurrent([t.instance._pathToMatchObject(t.to)]),e(!1)):e()}})},"./src/middlewares/checkForLeaveHook.ts":(t,e,n)=>{n.r(e),n.d(e,{default:()=>function(i,t){var e=i.instance;if(!e.lastResolved())return void t();(0,a.default)(e.lastResolved().map(function(o){return function(t,e){var n,r;o.route.hooks&&o.route.hooks.leave?(r=!1,n=i.instance.matchLocation(o.route.path,i.currentLocationPath),r="*"!==o.route.path?!n:!(!!i.matches&&i.matches.find(function(t){return o.route.path===t.route.path})),(0,s.undefinedOrTrue)(i.navigateOptions,"callHooks")&&r?(0,a.default)(o.route.hooks.leave.map(function(n){return function(t,e){return n(e,i.matches&&0<i.matches.length?1===i.matches.length?i.matches[0]:i.matches:void 0)}}).concat([function(){return e()}])):e()):e()}}),{},function(){return t()})}});var a=n("./src/Q.ts"),s=n("./src/utils.ts")},"./src/middlewares/checkForNotFoundHandler.ts":(t,e,n)=>{n.r(e),n.d(e,{default:()=>function(t,e){var n=t.instance._notFoundRoute;{var r,o,i;n&&(t.notFoundHandled=!0,o=(0,a.extractGETParameters)(t.currentLocationPath),r=o[0],i=o[1],o=(0,a.extractHashFromURL)(t.to),n.path=(0,a.clean)(r),i={url:n.path,queryString:i,hashString:o,data:null,route:n,params:""!==i?(0,a.parseQuery)(i):null},t.matches=[i],t.match=i)}e()}});var a=n("./src/utils.ts")},"./src/middlewares/errorOut.ts":(t,e,n)=>{n.r(e),n.d(e,{default:()=>function(t,e){t.resolveOptions&&!1!==t.resolveOptions.noMatchWarning&&void 0!==t.resolveOptions.noMatchWarning||console.warn('Navigo: "'+t.currentLocationPath+"\" didn't match any of the registered routes.");e()}})},"./src/middlewares/flushCurrent.ts":(t,e,n)=>{n.r(e),n.d(e,{default:()=>function(t,e){t.instance._setCurrent(null),e()}})},"./src/middlewares/matchPathToRegisteredRoutes.ts":(t,e,n)=>{n.r(e),n.d(e,{default:()=>function(t,e){for(var n=0;n<t.instance.routes.length;n++){var r=t.instance.routes[n],r=(0,o.matchRoute)(t,r);if(r&&(t.matches||(t.matches=[]),t.matches.push(r),"ONE"===t.resolveOptions.strategy))return void e()}e()}});var o=n("./src/utils.ts")},"./src/middlewares/processMatches.ts":(t,e,n)=>{n.r(e),n.d(e,{default:()=>function(e,n){var r=0;(0,s.default)(e,function t(){r!==e.matches.length?(0,o.default)(i.foundLifecycle,c({},e,{match:e.matches[r]}),function(){r+=1,t()}):(0,a.default)(e,n)})}});var o=n("./src/Q.ts"),i=n("./src/lifecycles.ts"),a=n("./src/middlewares/updateState.ts"),s=n("./src/middlewares/checkForLeaveHook.ts");function c(){return(c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n,r=arguments[e];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}},"./src/middlewares/setLocationPath.ts":(t,e,n)=>{n.r(e),n.d(e,{default:()=>function(t,e){void 0===t.currentLocationPath&&(t.currentLocationPath=t.to=(0,r.getCurrentEnvURL)(t.instance.root));t.currentLocationPath=t.instance._checkForAHash(t.currentLocationPath),e()}});var r=n("./src/utils.ts")},"./src/middlewares/updateBrowserURL.ts":(t,e,n)=>{n.r(e),n.d(e,{default:()=>function(e,t){{var n,r;(0,o.undefinedOrTrue)(e.navigateOptions,"updateBrowserURL")&&(n=("/"+e.to).replace(/\/\//g,"/"),r=i&&e.resolveOptions&&!0===e.resolveOptions.hash,a?(history[e.navigateOptions.historyAPIMethod||"pushState"](e.navigateOptions.stateObj||{},e.navigateOptions.title||"",r?"#"+n:n),location&&location.hash&&(e.instance.__freezeListening=!0,setTimeout(function(){var t=location.hash;location.hash="",location.hash=t,e.instance.__freezeListening=!1},1))):i&&(window.location.href=e.to))}t()}});var o=n("./src/utils.ts"),i=(0,o.windowAvailable)(),a=(0,o.pushStateAvailable)()},"./src/middlewares/updateState.ts":(t,e,n)=>{n.r(e),n.d(e,{default:()=>function(t,e){(0,r.undefinedOrTrue)(t.navigateOptions,"updateState")&&t.instance._setCurrent(t.matches);e()}});var r=n("./src/utils.ts")},"./src/utils.ts":(t,e,n)=>{n.r(e),n.d(e,{getCurrentEnvURL:()=>function(t){void 0===t&&(t="/");if(r())return location.pathname+location.search+location.hash;return t},clean:()=>c,isString:()=>u,isFunction:()=>function(t){return"function"==typeof t},extractHashFromURL:()=>l,regExpResultToParams:()=>d,extractGETParameters:()=>f,parseQuery:()=>h,matchRoute:()=>function(t,e){var n=f(c(t.currentLocationPath)),r=n[0],o=n[1],n=""===o?null:h(o),i=[];if(u(e.path)){if(a=s.START_BY_SLASH_REGEXP+c(e.path).replace(s.PARAMETER_REGEXP,function(t,e,n){return i.push(n),s.REPLACE_VARIABLE_REGEXP}).replace(s.WILDCARD_REGEXP,s.REPLACE_WILDCARD).replace(s.NOT_SURE_REGEXP,s.REPLACE_NOT_SURE)+"$",""===c(e.path)&&""===c(r))return{url:r,queryString:o,hashString:l(t.to),route:e,data:null,params:n}}else a=e.path;var a=new RegExp(a,s.MATCH_REGEXP_FLAGS),a=r.match(a);if(a){a=u(e.path)?d(a,i):a.groups||a.slice(1);return{url:r,queryString:o,hashString:l(t.to),route:e,data:a,params:n}}return!1},pushStateAvailable:()=>function(){return!("undefined"==typeof window||!window.history||!window.history.pushState)},undefinedOrTrue:()=>function(t,e){return void 0===t[e]||!0===t[e]},parseNavigateOptions:()=>function(t){if(!t)return{};var n,t=t.split(","),r={};t.forEach(function(t){var e=t.split(":").map(function(t){return t.replace(/(^ +| +$)/g,"")});switch(e[0]){case"historyAPIMethod":r.historyAPIMethod=e[1];break;case"resolveOptionsStrategy":(n=n||{}).strategy=e[1];break;case"resolveOptionsHash":(n=n||{}).hash="true"===e[1];break;case"updateBrowserURL":case"callHandler":case"updateState":case"force":r[e[0]]="true"===e[1]}}),n&&(r.resolveOptions=n);return r},windowAvailable:()=>r,accumulateHooks:()=>function(t,n){void 0===t&&(t=[]);void 0===n&&(n={});return t.filter(function(t){return t}).forEach(function(e){["before","after","already","leave"].forEach(function(t){e[t]&&(n[t]||(n[t]=[]),n[t].push(e[t]))})}),n}});var s=n("./src/constants.ts");function c(t){return t.replace(/\/+$/,"").replace(/^\/+/,"")}function u(t){return"string"==typeof t}function l(t){return t&&0<=t.indexOf("#")&&t.split("#").pop()||""}function d(t,r){return 0!==r.length&&t?t.slice(1,t.length).reduce(function(t,e,n){return(t=null===t?{}:t)[r[n]]=decodeURIComponent(e),t},null):null}function f(t){t=c(t).split(/\?(.*)?$/);return[c(t[0]),t.slice(1).join("")]}function h(t){for(var e={},n=t.split("&"),r=0;r<n.length;r++){var o,i=n[r].split("=");""!==i[0]&&(e[o=decodeURIComponent(i[0])]?(Array.isArray(e[o])||(e[o]=[e[o]]),e[o].push(decodeURIComponent(i[1]||""))):e[o]=decodeURIComponent(i[1]||""))}return e}function r(){return"undefined"!=typeof window}}},r={};function o(t){if(r[t])return r[t].exports;var e=r[t]={exports:{}};return n[t](e,e.exports,o),e.exports}return o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o("./src/index.ts")})().default}),System.registerDynamic("npm:tablesort/dist/tablesort.min.js",[],!0,function(t,e,n){var v;this||self;function r(t,e){if(!(this instanceof r))return new r(t,e);if(!t||"TABLE"!==t.tagName)throw new Error("Element must be a table");this.init(t,e||{})}function y(t){var e;return window.CustomEvent&&"function"==typeof window.CustomEvent?e=new CustomEvent(t):(e=document.createEvent("CustomEvent")).initCustomEvent(t,!1,!1,void 0),e}function w(t){return t.getAttribute("data-sort")||t.textContent||t.innerText||""}function b(t,e){return(t=t.trim().toLowerCase())===(e=e.trim().toLowerCase())?0:t<e?1:-1}function A(t,e){return[].slice.call(t).find(function(t){return t.getAttribute("data-sort-column-key")===e})}function T(r,o){return function(t,e){var n=r(t.td,e.td);return 0===n?o?e.index-t.index:t.index-e.index:n}}v=[],r.extend=function(t,e,n){if("function"!=typeof e||"function"!=typeof n)throw new Error("Pattern and sort must be a function");v.push({name:t,pattern:e,sort:n})},r.prototype={init:function(t,e){var n,r,o,i=this;if(i.table=t,i.thead=!1,i.options=e,t.rows&&0<t.rows.length)if(t.tHead&&0<t.tHead.rows.length){for(s=0;s<t.tHead.rows.length;s++)if("thead"===t.tHead.rows[s].getAttribute("data-sort-method")){n=t.tHead.rows[s];break}n=n||t.tHead.rows[t.tHead.rows.length-1],i.thead=!0}else n=t.rows[0];if(n){function a(){i.current&&i.current!==this&&i.current.removeAttribute("aria-sort"),i.current=this,i.sortTable(this)}for(var s=0;s<n.cells.length;s++)(o=n.cells[s]).setAttribute("role","columnheader"),"none"!==o.getAttribute("data-sort-method")&&(o.tabindex=0,o.addEventListener("click",a,!1),null!==o.getAttribute("data-sort-default")&&(r=o));r&&(i.current=r,i.sortTable(r))}},sortTable:function(t,e){var n=this,r=t.getAttribute("data-sort-column-key"),o=t.cellIndex,i=b,a="",s=[],c=n.thead?0:1,u=t.getAttribute("data-sort-method"),l=t.getAttribute("aria-sort");if(n.table.dispatchEvent(y("beforeSort")),e||(l="ascending"===l||"descending"!==l&&n.options.descending?"descending":"ascending",t.setAttribute("aria-sort",l)),!(n.table.rows.length<2)){if(!u){for(;s.length<3&&c<n.table.tBodies[0].rows.length;)0<(a=(a=(f=r?A(n.table.tBodies[0].rows[c].cells,r):n.table.tBodies[0].rows[c].cells[o])?w(f):"").trim()).length&&s.push(a),c++;if(!s)return}for(c=0;c<v.length;c++)if(a=v[c],u){if(a.name===u){i=a.sort;break}}else if(s.every(a.pattern)){i=a.sort;break}for(n.col=o,c=0;c<n.table.tBodies.length;c++){var d,f,h=[],p={},m=0,g=0;if(!(n.table.tBodies[c].rows.length<2)){for(d=0;d<n.table.tBodies[c].rows.length;d++)"none"===(a=n.table.tBodies[c].rows[d]).getAttribute("data-sort-method")?p[m]=a:(f=r?A(a.cells,r):a.cells[n.col],h.push({tr:a,td:f?w(f):"",index:m})),m++;for("descending"===l?h.sort(T(i,!0)):(h.sort(T(i,!1)),h.reverse()),d=0;d<m;d++)p[d]?(a=p[d],g++):a=h[d-g].tr,n.table.tBodies[c].appendChild(a)}}n.table.dispatchEvent(y("afterSort"))}},refresh:function(){void 0!==this.current&&this.sortTable(this.current,!0)}},void 0!==n&&n.exports?n.exports=r:window.Tablesort=r}),function(o){System.registerDynamic("npm:zenscroll/zenscroll.js",[],!1,function(t,e,n){var r=o();return"function"==typeof r?r.call(this):r})}(function(){"use strict";function m(t){return t&&"getComputedStyle"in window&&"smooth"===window.getComputedStyle(t)["scroll-behavior"]}if("undefined"==typeof window||!("document"in window))return{};function r(c,n,u){var e;function l(t){e=t}function d(){clearTimeout(e),l(0)}function f(t){return Math.max(0,c.getTopOf(t)-u)}function h(t,r,o){var i,a,s;d(),0===r||r&&r<0||m(c.body)?(c.toY(t),o&&o()):(i=c.getY(),a=Math.max(0,t)-i,s=(new Date).getTime(),r=r||Math.min(Math.abs(a),n),function n(){l(setTimeout(function(){var t=Math.min(1,((new Date).getTime()-s)/r),e=Math.max(0,Math.floor(i+a*(t<.5?2*t*t:t*(4-2*t)-1)));c.toY(e),t<1&&c.getHeight()+e<c.body.scrollHeight?n():(setTimeout(d,99),o&&o())},9))}())}function p(t,e,n){h(f(t),e,n)}return n=n||999,u||0===u||(u=9),{setup:function(t,e){return{defaultDuration:n=0===t||t?t:n,edgeOffset:u=0===e||e?e:u}},to:p,toY:h,intoView:function(t,e,n){var r=t.getBoundingClientRect().height,o=c.getTopOf(t)+r,i=c.getHeight(),a=c.getY(),s=a+i;f(t)<a||i<r+u?p(t,e,n):s<o+u?h(o-i+u,e,n):n&&n()},center:function(t,e,n,r){h(Math.max(0,c.getTopOf(t)-c.getHeight()/2+(n||t.getBoundingClientRect().height/2)),e,r)},stop:d,moving:function(){return!!e},getY:c.getY,getTopOf:c.getTopOf}}function e(){return window.scrollY||o.scrollTop}var a,s,c,o=document.documentElement,u=r({body:document.scrollingElement||document.body,toY:function(t){window.scrollTo(0,t)},getY:e,getHeight:function(){return window.innerHeight||o.clientHeight},getTopOf:function(t){return t.getBoundingClientRect().top+e()-o.offsetTop}});return u.createScroller=function(e,t,n){return r({body:e,toY:function(t){e.scrollTop=t},getY:function(){return e.scrollTop},getHeight:function(){return Math.min(e.clientHeight,window.innerHeight||o.clientHeight)},getTopOf:function(t){return t.offsetTop}},t,n)},"addEventListener"in window&&!window.noZensmooth&&!m(document.body)&&(a="history"in window&&"pushState"in history,(s=a&&"scrollRestoration"in history)&&(history.scrollRestoration="auto"),window.addEventListener("load",function(){s&&(setTimeout(function(){history.scrollRestoration="manual"},9),window.addEventListener("popstate",function(t){t.state&&"zenscrollY"in t.state&&u.toY(t.state.zenscrollY)},!1)),window.location.hash&&setTimeout(function(){var t,e=u.setup().edgeOffset;!e||(t=document.getElementById(window.location.href.split("#")[1]))&&(t=Math.max(0,u.getTopOf(t)-e),0<=(e=u.getY()-t)&&e<9&&window.scrollTo(0,t))},9)},!1),c=new RegExp("(^|\\s)noZensmooth(\\s|$)"),window.addEventListener("click",function(t){for(var e=t.target;e&&"A"!==e.tagName;)e=e.parentNode;if(!(!e||1!==t.which||t.shiftKey||t.metaKey||t.ctrlKey||t.altKey)){if(s){var n=history.state&&"object"==typeof history.state?history.state:{};n.zenscrollY=u.getY();try{history.replaceState(n,"")}catch(t){}}var r=e.getAttribute("href")||"";if(0===r.indexOf("#")&&!c.test(e.className)){var o=0,i=document.getElementById(r.substring(1));if("#"!==r){if(!i)return;o=u.getTopOf(i)}t.preventDefault();i=function(){window.location=r},t=u.setup().edgeOffset;t&&(o=Math.max(0,o-t),a&&(i=function(){history.pushState({},"",r)})),u.toY(o,null,i)}}},!1)),u});