define("_commonjsHelpers-BCozaH8h.js",["exports"],(function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};t.commonjsGlobal=e,t.getDefaultExportFromCjs=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}})),define("npm:navigo/lib/navigo.js",["_commonjsHelpers-BCozaH8h.js"],(function(t){"use strict";var e,n,r={exports:{}};e=r,"undefined"!=typeof self?self:t.commonjsGlobal,n=function(){return function(){var t={"./src/Q.ts":function(t,e,n){function r(t,e,n){var r=e||{},i=0;!function e(){t[i]?Array.isArray(t[i])?(t.splice.apply(t,[i,1].concat(t[i][0](r)?t[i][1]:t[i][2])),e()):t[i](r,(function(t){void 0===t||!0===t?(i+=1,e()):n&&n(r)})):n&&n(r)}()}n.r(e),n.d(e,{default:function(){return r}}),r.if=function(t,e,n){return Array.isArray(e)||(e=[e]),Array.isArray(n)||(n=[n]),[t,e,n]}},"./src/constants.ts":function(t,e,n){n.r(e),n.d(e,{PARAMETER_REGEXP:function(){return r},REPLACE_VARIABLE_REGEXP:function(){return i},WILDCARD_REGEXP:function(){return o},REPLACE_WILDCARD:function(){return a},NOT_SURE_REGEXP:function(){return s},REPLACE_NOT_SURE:function(){return u},START_BY_SLASH_REGEXP:function(){return c},MATCH_REGEXP_FLAGS:function(){return l}});var r=/([:*])(\w+)/g,i="([^/]+)",o=/\*/g,a="?(?:.*)",s=/\/\?/g,u="/?([^/]+|)",c="(?:/^|^)",l=""},"./src/index.ts":function(t,e,n){n.r(e),n.d(e,{default:function(){return m}});var r=n("./src/utils.ts"),i=n("./src/Q.ts"),o=n("./src/middlewares/setLocationPath.ts"),a=n("./src/middlewares/matchPathToRegisteredRoutes.ts"),s=n("./src/middlewares/checkForDeprecationMethods.ts"),u=n("./src/middlewares/checkForForceOp.ts"),c=n("./src/middlewares/updateBrowserURL.ts"),l=n("./src/middlewares/processMatches.ts"),f=n("./src/middlewares/waitingList.ts"),d=n("./src/lifecycles.ts");function h(){return h=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},h.apply(this,arguments)}var p="[data-navigo]";function m(t,e){var n,m=e||{strategy:"ONE",hash:!1,noMatchWarning:!1,linksSelector:p},g=this,v="/",y=null,w=[],b=!1,_=(0,r.pushStateAvailable)(),T=(0,r.windowAvailable)();function E(t){return t.indexOf("#")>=0&&(t=!0===m.hash?t.split("#")[1]||"/":t.split("#")[0]),t}function k(t){return(0,r.clean)(v+"/"+(0,r.clean)(t))}function A(t,e,n,i){return t=(0,r.isString)(t)?k(t):t,{name:i||(0,r.clean)(String(t)),path:t,handler:e,hooks:(0,r.accumulateHooks)(n)}}function S(t,e){if(!g.__dirty){g.__dirty=!0,t=t?(0,r.clean)(v)+"/"+(0,r.clean)(t):void 0;var n={instance:g,to:t,currentLocationPath:t,navigateOptions:{},resolveOptions:h({},m,e)};return(0,i.default)([o.default,a.default,i.default.if((function(t){var e=t.matches;return e&&e.length>0}),l.default,d.notFoundLifeCycle)],n,f.default),!!n.matches&&n.matches}g.__waiting.push((function(){return g.resolve(t,e)}))}function O(t,e){if(g.__dirty)g.__waiting.push((function(){return g.navigate(t,e)}));else{g.__dirty=!0,t=(0,r.clean)(v)+"/"+(0,r.clean)(t);var n={instance:g,to:t,navigateOptions:e||{},resolveOptions:e&&e.resolveOptions?e.resolveOptions:m,currentLocationPath:E(t)};(0,i.default)([s.default,u.default,a.default,i.default.if((function(t){var e=t.matches;return e&&e.length>0}),l.default,d.notFoundLifeCycle),c.default,f.default],n,f.default)}}function R(){if(T)return(T?[].slice.call(document.querySelectorAll(m.linksSelector||p)):[]).forEach((function(t){"false"!==t.getAttribute("data-navigo")&&"_blank"!==t.getAttribute("target")?t.hasListenerAttached||(t.hasListenerAttached=!0,t.navigoHandler=function(e){if((e.ctrlKey||e.metaKey)&&"a"===e.target.tagName.toLowerCase())return!1;var n=t.getAttribute("href");if(null==n)return!1;if(n.match(/^(http|https)/)&&"undefined"!=typeof URL)try{var i=new URL(n);n=i.pathname+i.search}catch(t){}var o=(0,r.parseNavigateOptions)(t.getAttribute("data-navigo-options"));b||(e.preventDefault(),e.stopPropagation(),g.navigate((0,r.clean)(n),o))},t.addEventListener("click",t.navigoHandler)):t.hasListenerAttached&&t.removeEventListener("click",t.navigoHandler)})),g}function L(t,e,n){var r=w.find((function(e){return e.name===t})),i=null;if(r){if(i=r.path,e)for(var o in e)i=i.replace(":"+o,e[o]);i=i.match(/^\//)?i:"/"+i}return i&&n&&!n.includeRoot&&(i=i.replace(new RegExp("^/"+v),"")),i}function x(t){var e=(0,r.extractGETParameters)((0,r.clean)(t)),i=e[0],o=e[1],a=""===o?null:(0,r.parseQuery)(o);return{url:i,queryString:o,hashString:(0,r.extractHashFromURL)(t),route:A(i,(function(){}),[n],i),data:null,params:a}}function C(t,e,n){return"string"==typeof e&&(e=H(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 H(t){return"string"==typeof t?w.find((function(e){return e.name===k(t)})):w.find((function(e){return e.handler===t}))}t?v=(0,r.clean)(t):console.warn('Navigo requires a root path in its constructor. If not provided will use "/" as default.'),this.root=v,this.routes=w,this.destroyed=b,this.current=y,this.__freezeListening=!1,this.__waiting=[],this.__dirty=!1,this.__markAsClean=function(t){t.instance.__dirty=!1,t.instance.__waiting.length>0&&t.instance.__waiting.shift()()},this.on=function(t,e,r){var i=this;return"object"!=typeof t||t instanceof RegExp?("function"==typeof t&&(r=e,e=t,t=v),w.push(A(t,e,[n,r])),this):(Object.keys(t).forEach((function(e){if("function"==typeof t[e])i.on(e,t[e]);else{var r=t[e],o=r.uses,a=r.as,s=r.hooks;w.push(A(e,o,[n,s],a))}})),this)},this.off=function(t){return this.routes=w=w.filter((function(e){return(0,r.isString)(t)?(0,r.clean)(e.path)!==(0,r.clean)(t):(0,r.isFunction)(t)?t!==e.handler:String(e.path)!==String(t)})),this},this.resolve=S,this.navigate=O,this.navigateByName=function(t,e,n){var r=L(t,e);return null!==r&&(O(r.replace(new RegExp("^/?"+v),""),n),!0)},this.destroy=function(){this.routes=w=[],_&&window.removeEventListener("popstate",this.__popstateListener),this.destroyed=b=!0},this.notFound=function(t,e){return g._notFoundRoute=A("*",t,[n,e],"__NOT_FOUND__"),this},this.updatePageLinks=R,this.link=function(t){return"/"+v+"/"+(0,r.clean)(t)},this.hooks=function(t){return n=t,this},this.extractGETParameters=function(t){return(0,r.extractGETParameters)(E(t))},this.lastResolved=function(){return y},this.generate=L,this.getLinkPath=function(t){return t.getAttribute("href")},this.match=function(t){var e={instance:g,currentLocationPath:t,to:t,navigateOptions:{},resolveOptions:m};return(0,a.default)(e,(function(){})),!!e.matches&&e.matches},this.matchLocation=function(t,e,n){void 0===e||void 0!==n&&!n||(e=k(e));var i={instance:g,to:e,currentLocationPath:e};(0,o.default)(i,(function(){})),"string"==typeof t&&(t=void 0===n||n?k(t):t);var a=(0,r.matchRoute)(i,{name:String(t),path:t,handler:function(){},hooks:{}});return a||!1},this.getCurrentLocation=function(){return x((0,r.clean)((0,r.getCurrentEnvURL)(v)).replace(new RegExp("^"+v),""))},this.addBeforeHook=C.bind(this,"before"),this.addAfterHook=C.bind(this,"after"),this.addAlreadyHook=C.bind(this,"already"),this.addLeaveHook=C.bind(this,"leave"),this.getRoute=H,this._pathToMatchObject=x,this._clean=r.clean,this._checkForAHash=E,this._setCurrent=function(t){return y=g.current=t},function(){_&&(this.__popstateListener=function(){g.__freezeListening||S()},window.addEventListener("popstate",this.__popstateListener))}.call(this),R.call(this)}},"./src/lifecycles.ts":function(t,e,n){n.r(e),n.d(e,{foundLifecycle:function(){return h},notFoundLifeCycle:function(){return p}});var r=n("./src/Q.ts"),i=n("./src/middlewares/checkForLeaveHook.ts"),o=n("./src/middlewares/checkForBeforeHook.ts"),a=n("./src/middlewares/callHandler.ts"),s=n("./src/middlewares/checkForAfterHook.ts"),u=n("./src/middlewares/checkForAlreadyHook.ts"),c=n("./src/middlewares/checkForNotFoundHandler.ts"),l=n("./src/middlewares/errorOut.ts"),f=n("./src/middlewares/flushCurrent.ts"),d=n("./src/middlewares/updateState.ts"),h=[u.default,o.default,a.default,s.default],p=[i.default,c.default,r.default.if((function(t){return t.notFoundHandled}),h.concat([d.default]),[l.default,f.default])]},"./src/middlewares/callHandler.ts":function(t,e,n){n.r(e),n.d(e,{default:function(){return i}});var r=n("./src/utils.ts");function i(t,e){(0,r.undefinedOrTrue)(t.navigateOptions,"callHandler")&&t.match.route.handler(t.match),t.instance.updatePageLinks(),e()}},"./src/middlewares/checkForAfterHook.ts":function(t,e,n){n.r(e),n.d(e,{default:function(){return i}});var r=n("./src/utils.ts");function i(t,e){t.match.route.hooks&&t.match.route.hooks.after&&(0,r.undefinedOrTrue)(t.navigateOptions,"callHooks")&&t.match.route.hooks.after.forEach((function(e){return e(t.match)})),e()}},"./src/middlewares/checkForAlreadyHook.ts":function(t,e,n){n.r(e),n.d(e,{default:function(){return i}});var r=n("./src/utils.ts");function i(t,e){var n=t.instance.lastResolved();if(n&&n[0]&&n[0].route===t.match.route&&n[0].url===t.match.url&&n[0].queryString===t.match.queryString)return n.forEach((function(e){e.route.hooks&&e.route.hooks.already&&(0,r.undefinedOrTrue)(t.navigateOptions,"callHooks")&&e.route.hooks.already.forEach((function(e){return e(t.match)}))})),void e(!1);e()}},"./src/middlewares/checkForBeforeHook.ts":function(t,e,n){n.r(e),n.d(e,{default:function(){return o}});var r=n("./src/Q.ts"),i=n("./src/utils.ts");function o(t,e){t.match.route.hooks&&t.match.route.hooks.before&&(0,i.undefinedOrTrue)(t.navigateOptions,"callHooks")?(0,r.default)(t.match.route.hooks.before.map((function(e){return function(n,r){return e((function(e){!1===e?t.instance.__markAsClean(t):r()}),t.match)}})).concat([function(){return e()}])):e()}},"./src/middlewares/checkForDeprecationMethods.ts":function(t,e,n){function r(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()}n.r(e),n.d(e,{default:function(){return r}})},"./src/middlewares/checkForForceOp.ts":function(t,e,n){function r(t,e){!0===t.navigateOptions.force?(t.instance._setCurrent([t.instance._pathToMatchObject(t.to)]),e(!1)):e()}n.r(e),n.d(e,{default:function(){return r}})},"./src/middlewares/checkForLeaveHook.ts":function(t,e,n){n.r(e),n.d(e,{default:function(){return o}});var r=n("./src/Q.ts"),i=n("./src/utils.ts");function o(t,e){var n=t.instance;n.lastResolved()?(0,r.default)(n.lastResolved().map((function(e){return function(n,o){if(e.route.hooks&&e.route.hooks.leave){var a=!1,s=t.instance.matchLocation(e.route.path,t.currentLocationPath,!1);a="*"!==e.route.path?!s:!(t.matches&&t.matches.find((function(t){return e.route.path===t.route.path}))),(0,i.undefinedOrTrue)(t.navigateOptions,"callHooks")&&a?(0,r.default)(e.route.hooks.leave.map((function(e){return function(n,r){return e((function(e){!1===e?t.instance.__markAsClean(t):r()}),t.matches&&t.matches.length>0?1===t.matches.length?t.matches[0]:t.matches:void 0)}})).concat([function(){return o()}])):o()}else o()}})),{},(function(){return e()})):e()}},"./src/middlewares/checkForNotFoundHandler.ts":function(t,e,n){n.r(e),n.d(e,{default:function(){return i}});var r=n("./src/utils.ts");function i(t,e){var n=t.instance._notFoundRoute;if(n){t.notFoundHandled=!0;var i=(0,r.extractGETParameters)(t.currentLocationPath),o=i[0],a=i[1],s=(0,r.extractHashFromURL)(t.to);n.path=(0,r.clean)(o);var u={url:n.path,queryString:a,hashString:s,data:null,route:n,params:""!==a?(0,r.parseQuery)(a):null};t.matches=[u],t.match=u}e()}},"./src/middlewares/errorOut.ts":function(t,e,n){function r(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()}n.r(e),n.d(e,{default:function(){return r}})},"./src/middlewares/flushCurrent.ts":function(t,e,n){function r(t,e){t.instance._setCurrent(null),e()}n.r(e),n.d(e,{default:function(){return r}})},"./src/middlewares/matchPathToRegisteredRoutes.ts":function(t,e,n){n.r(e),n.d(e,{default:function(){return i}});var r=n("./src/utils.ts");function i(t,e){for(var n=0;n<t.instance.routes.length;n++){var i=t.instance.routes[n],o=(0,r.matchRoute)(t,i);if(o&&(t.matches||(t.matches=[]),t.matches.push(o),"ONE"===t.resolveOptions.strategy))return void e()}e()}},"./src/middlewares/processMatches.ts":function(t,e,n){n.r(e),n.d(e,{default:function(){return u}});var r=n("./src/Q.ts"),i=n("./src/lifecycles.ts"),o=n("./src/middlewares/updateState.ts"),a=n("./src/middlewares/checkForLeaveHook.ts");function s(){return s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s.apply(this,arguments)}function u(t,e){var n=0;(0,a.default)(t,(function a(){n!==t.matches.length?(0,r.default)(i.foundLifecycle,s({},t,{match:t.matches[n]}),(function(){n+=1,a()})):(0,o.default)(t,e)}))}},"./src/middlewares/setLocationPath.ts":function(t,e,n){n.r(e),n.d(e,{default:function(){return i}});var r=n("./src/utils.ts");function i(t,e){void 0===t.currentLocationPath&&(t.currentLocationPath=t.to=(0,r.getCurrentEnvURL)(t.instance.root)),t.currentLocationPath=t.instance._checkForAHash(t.currentLocationPath),e()}},"./src/middlewares/updateBrowserURL.ts":function(t,e,n){n.r(e),n.d(e,{default:function(){return a}});var r=n("./src/utils.ts"),i=(0,r.windowAvailable)(),o=(0,r.pushStateAvailable)();function a(t,e){if((0,r.undefinedOrTrue)(t.navigateOptions,"updateBrowserURL")){var n=("/"+t.to).replace(/\/\//g,"/"),a=i&&t.resolveOptions&&!0===t.resolveOptions.hash;o?(history[t.navigateOptions.historyAPIMethod||"pushState"](t.navigateOptions.stateObj||{},t.navigateOptions.title||"",a?"#"+n:n),location&&location.hash&&(t.instance.__freezeListening=!0,setTimeout((function(){if(!a){var e=location.hash;location.hash="",location.hash=e}t.instance.__freezeListening=!1}),1))):i&&(window.location.href=t.to)}e()}},"./src/middlewares/updateState.ts":function(t,e,n){n.r(e),n.d(e,{default:function(){return i}});var r=n("./src/utils.ts");function i(t,e){(0,r.undefinedOrTrue)(t.navigateOptions,"updateState")&&t.instance._setCurrent(t.matches),e()}},"./src/middlewares/waitingList.ts":function(t,e,n){function r(t){t.instance.__markAsClean(t)}n.r(e),n.d(e,{default:function(){return r}})},"./src/utils.ts":function(t,e,n){n.r(e),n.d(e,{getCurrentEnvURL:function(){return i},clean:function(){return o},isString:function(){return a},isFunction:function(){return s},extractHashFromURL:function(){return u},regExpResultToParams:function(){return c},extractGETParameters:function(){return l},parseQuery:function(){return f},matchRoute:function(){return d},pushStateAvailable:function(){return h},undefinedOrTrue:function(){return p},parseNavigateOptions:function(){return m},windowAvailable:function(){return g},accumulateHooks:function(){return v}});var r=n("./src/constants.ts");function i(t){return void 0===t&&(t="/"),g()?location.pathname+location.search+location.hash:t}function o(t){return t.replace(/\/+$/,"").replace(/^\/+/,"")}function a(t){return"string"==typeof t}function s(t){return"function"==typeof t}function u(t){return t&&t.indexOf("#")>=0&&t.split("#").pop()||""}function c(t,e){return 0===e.length?null:t?t.slice(1,t.length).reduce((function(t,n,r){return null===t&&(t={}),t[e[r]]=decodeURIComponent(n),t}),null):null}function l(t){var e=o(t).split(/\?(.*)?$/);return[o(e[0]),e.slice(1).join("")]}function f(t){for(var e={},n=t.split("&"),r=0;r<n.length;r++){var i=n[r].split("=");if(""!==i[0]){var o=decodeURIComponent(i[0]);e[o]?(Array.isArray(e[o])||(e[o]=[e[o]]),e[o].push(decodeURIComponent(i[1]||""))):e[o]=decodeURIComponent(i[1]||"")}}return e}function d(t,e){var n,i=l(o(t.currentLocationPath)),s=i[0],d=i[1],h=""===d?null:f(d),p=[];if(a(e.path)){if(n=r.START_BY_SLASH_REGEXP+o(e.path).replace(r.PARAMETER_REGEXP,(function(t,e,n){return p.push(n),r.REPLACE_VARIABLE_REGEXP})).replace(r.WILDCARD_REGEXP,r.REPLACE_WILDCARD).replace(r.NOT_SURE_REGEXP,r.REPLACE_NOT_SURE)+"$",""===o(e.path)&&""===o(s))return{url:s,queryString:d,hashString:u(t.to),route:e,data:null,params:h}}else n=e.path;var m=new RegExp(n,r.MATCH_REGEXP_FLAGS),g=s.match(m);if(g){var v=a(e.path)?c(g,p):g.groups?g.groups:g.slice(1);return{url:o(s.replace(new RegExp("^"+t.instance.root),"")),queryString:d,hashString:u(t.to),route:e,data:v,params:h}}return!1}function h(){return!("undefined"==typeof window||!window.history||!window.history.pushState)}function p(t,e){return void 0===t[e]||!0===t[e]}function m(t){if(!t)return{};var e,n=t.split(","),r={};return n.forEach((function(t){var n=t.split(":").map((function(t){return t.replace(/(^ +| +$)/g,"")}));switch(n[0]){case"historyAPIMethod":r.historyAPIMethod=n[1];break;case"resolveOptionsStrategy":e||(e={}),e.strategy=n[1];break;case"resolveOptionsHash":e||(e={}),e.hash="true"===n[1];break;case"updateBrowserURL":case"callHandler":case"updateState":case"force":r[n[0]]="true"===n[1]}})),e&&(r.resolveOptions=e),r}function g(){return"undefined"!=typeof window}function v(t,e){return void 0===t&&(t=[]),void 0===e&&(e={}),t.filter((function(t){return t})).forEach((function(t){["before","after","already","leave"].forEach((function(n){t[n]&&(e[n]||(e[n]=[]),e[n].push(t[n]))}))})),e}}},e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}return n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n("./src/index.ts")}().default},e.exports=n();var i=r.exports;return t.getDefaultExportFromCjs(i)})),define("npm:dompurify/dist/purify.js",["_commonjsHelpers-BCozaH8h.js"],(function(t){"use strict";var e,n={exports:{}};e=n,t.commonjsGlobal,e.exports=function(){const{entries:t,setPrototypeOf:e,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:i}=Object;let{freeze:o,seal:a,create:s}=Object,{apply:u,construct:c}="undefined"!=typeof Reflect&&Reflect;o||(o=function(t){return t}),a||(a=function(t){return t}),u||(u=function(t,e,n){return t.apply(e,n)}),c||(c=function(t,e){return new t(...e)});const l=T(Array.prototype.forEach),f=T(Array.prototype.pop),d=T(Array.prototype.push),h=T(String.prototype.toLowerCase),p=T(String.prototype.toString),m=T(String.prototype.match),g=T(String.prototype.replace),v=T(String.prototype.indexOf),y=T(String.prototype.trim),w=T(Object.prototype.hasOwnProperty),b=T(RegExp.prototype.test),_=E(TypeError);function T(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return u(t,e,r)}}function E(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return c(t,n)}}function k(t,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h;e&&e(t,null);let o=r.length;for(;o--;){let e=r[o];if("string"==typeof e){const t=i(e);t!==e&&(n(r)||(r[o]=t),e=t)}t[e]=!0}return t}function A(t){for(let e=0;e<t.length;e++)w(t,e)||(t[e]=null);return t}function S(e){const n=s(null);for(const[r,i]of t(e))w(e,r)&&(Array.isArray(i)?n[r]=A(i):i&&"object"==typeof i&&i.constructor===Object?n[r]=S(i):n[r]=i);return n}function O(t,e){for(;null!==t;){const n=i(t,e);if(n){if(n.get)return T(n.get);if("function"==typeof n.value)return T(n.value)}t=r(t)}function n(){return null}return n}const R=o(["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"]),L=o(["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"]),x=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),C=o(["animate","color-profile","cursor","discard","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"]),H=o(["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","mprescripts"]),N=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),P=o(["#text"]),D=o(["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","nonce","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","slot"]),M=o(["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","transform-origin","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"]),I=o(["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"]),F=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),j=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),z=a(/<%[\w\W]*|[\w\W]*%>/gm),U=a(/\${[\w\W]*}/gm),B=a(/^data-[\-\w.\u00B7-\uFFFF]/),G=a(/^aria-[\-\w]+$/),W=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=a(/^(?:\w+script|data):/i),q=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=a(/^html$/i);var V=Object.freeze({__proto__:null,MUSTACHE_EXPR:j,ERB_EXPR:z,TMPLIT_EXPR:U,DATA_ATTR:B,ARIA_ATTR:G,IS_ALLOWED_URI:W,IS_SCRIPT_OR_DATA:Y,ATTR_WHITESPACE:q,DOCTYPE_NAME:X});const K=function(){return"undefined"==typeof window?null:window},Q=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(n=e.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function $(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:K();const n=t=>$(t);if(n.version="3.0.9",n.removed=[],!e||!e.document||9!==e.document.nodeType)return n.isSupported=!1,n;let{document:r}=e;const i=r,a=i.currentScript,{DocumentFragment:u,HTMLTemplateElement:c,Node:T,Element:E,NodeFilter:A,NamedNodeMap:j=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:z,DOMParser:U,trustedTypes:B}=e,G=E.prototype,Y=O(G,"cloneNode"),q=O(G,"nextSibling"),Z=O(G,"childNodes"),J=O(G,"parentNode");if("function"==typeof c){const t=r.createElement("template");t.content&&t.content.ownerDocument&&(r=t.content.ownerDocument)}let tt,et="";const{implementation:nt,createNodeIterator:rt,createDocumentFragment:it,getElementsByTagName:ot}=r,{importNode:at}=i;let st={};n.isSupported="function"==typeof t&&"function"==typeof J&&nt&&void 0!==nt.createHTMLDocument;const{MUSTACHE_EXPR:ut,ERB_EXPR:ct,TMPLIT_EXPR:lt,DATA_ATTR:ft,ARIA_ATTR:dt,IS_SCRIPT_OR_DATA:ht,ATTR_WHITESPACE:pt}=V;let{IS_ALLOWED_URI:mt}=V,gt=null;const vt=k({},[...R,...L,...x,...H,...P]);let yt=null;const wt=k({},[...D,...M,...I,...F]);let bt=Object.seal(s(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),_t=null,Tt=null,Et=!0,kt=!0,At=!1,St=!0,Ot=!1,Rt=!1,Lt=!1,xt=!1,Ct=!1,Ht=!1,Nt=!1,Pt=!0,Dt=!1;const Mt="user-content-";let It=!0,Ft=!1,jt={},zt=null;const Ut=k({},["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"]);let Bt=null;const Gt=k({},["audio","video","img","source","image","track"]);let Wt=null;const Yt=k({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qt="http://www.w3.org/1998/Math/MathML",Xt="http://www.w3.org/2000/svg",Vt="http://www.w3.org/1999/xhtml";let Kt=Vt,Qt=!1,$t=null;const Zt=k({},[qt,Xt,Vt],p);let Jt=null;const te=["application/xhtml+xml","text/html"],ee="text/html";let ne=null,re=null;const ie=r.createElement("form"),oe=function(t){return t instanceof RegExp||t instanceof Function},ae=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!re||re!==t){if(t&&"object"==typeof t||(t={}),t=S(t),Jt=-1===te.indexOf(t.PARSER_MEDIA_TYPE)?ee:t.PARSER_MEDIA_TYPE,ne="application/xhtml+xml"===Jt?p:h,gt=w(t,"ALLOWED_TAGS")?k({},t.ALLOWED_TAGS,ne):vt,yt=w(t,"ALLOWED_ATTR")?k({},t.ALLOWED_ATTR,ne):wt,$t=w(t,"ALLOWED_NAMESPACES")?k({},t.ALLOWED_NAMESPACES,p):Zt,Wt=w(t,"ADD_URI_SAFE_ATTR")?k(S(Yt),t.ADD_URI_SAFE_ATTR,ne):Yt,Bt=w(t,"ADD_DATA_URI_TAGS")?k(S(Gt),t.ADD_DATA_URI_TAGS,ne):Gt,zt=w(t,"FORBID_CONTENTS")?k({},t.FORBID_CONTENTS,ne):Ut,_t=w(t,"FORBID_TAGS")?k({},t.FORBID_TAGS,ne):{},Tt=w(t,"FORBID_ATTR")?k({},t.FORBID_ATTR,ne):{},jt=!!w(t,"USE_PROFILES")&&t.USE_PROFILES,Et=!1!==t.ALLOW_ARIA_ATTR,kt=!1!==t.ALLOW_DATA_ATTR,At=t.ALLOW_UNKNOWN_PROTOCOLS||!1,St=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Ot=t.SAFE_FOR_TEMPLATES||!1,Rt=t.WHOLE_DOCUMENT||!1,Ct=t.RETURN_DOM||!1,Ht=t.RETURN_DOM_FRAGMENT||!1,Nt=t.RETURN_TRUSTED_TYPE||!1,xt=t.FORCE_BODY||!1,Pt=!1!==t.SANITIZE_DOM,Dt=t.SANITIZE_NAMED_PROPS||!1,It=!1!==t.KEEP_CONTENT,Ft=t.IN_PLACE||!1,mt=t.ALLOWED_URI_REGEXP||W,Kt=t.NAMESPACE||Vt,bt=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&oe(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(bt.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&oe(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(bt.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(bt.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ot&&(kt=!1),Ht&&(Ct=!0),jt&&(gt=k({},P),yt=[],!0===jt.html&&(k(gt,R),k(yt,D)),!0===jt.svg&&(k(gt,L),k(yt,M),k(yt,F)),!0===jt.svgFilters&&(k(gt,x),k(yt,M),k(yt,F)),!0===jt.mathMl&&(k(gt,H),k(yt,I),k(yt,F))),t.ADD_TAGS&&(gt===vt&&(gt=S(gt)),k(gt,t.ADD_TAGS,ne)),t.ADD_ATTR&&(yt===wt&&(yt=S(yt)),k(yt,t.ADD_ATTR,ne)),t.ADD_URI_SAFE_ATTR&&k(Wt,t.ADD_URI_SAFE_ATTR,ne),t.FORBID_CONTENTS&&(zt===Ut&&(zt=S(zt)),k(zt,t.FORBID_CONTENTS,ne)),It&&(gt["#text"]=!0),Rt&&k(gt,["html","head","body"]),gt.table&&(k(gt,["tbody"]),delete _t.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw _('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw _('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');tt=t.TRUSTED_TYPES_POLICY,et=tt.createHTML("")}else void 0===tt&&(tt=Q(B,a)),null!==tt&&"string"==typeof et&&(et=tt.createHTML(""));o&&o(t),re=t}},se=k({},["mi","mo","mn","ms","mtext"]),ue=k({},["foreignobject","desc","title","annotation-xml"]),ce=k({},["title","style","font","a","script"]),le=k({},[...L,...x,...C]),fe=k({},[...H,...N]),de=function(t){let e=J(t);e&&e.tagName||(e={namespaceURI:Kt,tagName:"template"});const n=h(t.tagName),r=h(e.tagName);return!!$t[t.namespaceURI]&&(t.namespaceURI===Xt?e.namespaceURI===Vt?"svg"===n:e.namespaceURI===qt?"svg"===n&&("annotation-xml"===r||se[r]):Boolean(le[n]):t.namespaceURI===qt?e.namespaceURI===Vt?"math"===n:e.namespaceURI===Xt?"math"===n&&ue[r]:Boolean(fe[n]):t.namespaceURI===Vt?!(e.namespaceURI===Xt&&!ue[r])&&!(e.namespaceURI===qt&&!se[r])&&!fe[n]&&(ce[n]||!le[n]):!("application/xhtml+xml"!==Jt||!$t[t.namespaceURI]))},he=function(t){d(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){t.remove()}},pe=function(t,e){try{d(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){d(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!yt[t])if(Ct||Ht)try{he(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},me=function(t){let e=null,n=null;if(xt)t="<remove></remove>"+t;else{const e=m(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===Jt&&Kt===Vt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const i=tt?tt.createHTML(t):t;if(Kt===Vt)try{e=(new U).parseFromString(i,Jt)}catch(t){}if(!e||!e.documentElement){e=nt.createDocument(Kt,"template",null);try{e.documentElement.innerHTML=Qt?et:i}catch(t){}}const o=e.body||e.documentElement;return t&&n&&o.insertBefore(r.createTextNode(n),o.childNodes[0]||null),Kt===Vt?ot.call(e,Rt?"html":"body")[0]:Rt?e.documentElement:o},ge=function(t){return rt.call(t.ownerDocument||t,t,A.SHOW_ELEMENT|A.SHOW_COMMENT|A.SHOW_TEXT,null)},ve=function(t){return t instanceof z&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof j)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},ye=function(t){return"function"==typeof T&&t instanceof T},we=function(t,e,r){st[t]&&l(st[t],(t=>{t.call(n,e,r,re)}))},be=function(t){let e=null;if(we("beforeSanitizeElements",t,null),ve(t))return he(t),!0;const r=ne(t.nodeName);if(we("uponSanitizeElement",t,{tagName:r,allowedTags:gt}),t.hasChildNodes()&&!ye(t.firstElementChild)&&b(/<[/\w]/g,t.innerHTML)&&b(/<[/\w]/g,t.textContent))return he(t),!0;if(!gt[r]||_t[r]){if(!_t[r]&&Te(r)){if(bt.tagNameCheck instanceof RegExp&&b(bt.tagNameCheck,r))return!1;if(bt.tagNameCheck instanceof Function&&bt.tagNameCheck(r))return!1}if(It&&!zt[r]){const e=J(t)||t.parentNode,n=Z(t)||t.childNodes;if(n&&e)for(let r=n.length-1;r>=0;--r)e.insertBefore(Y(n[r],!0),q(t))}return he(t),!0}return t instanceof E&&!de(t)?(he(t),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!b(/<\/no(script|embed|frames)/i,t.innerHTML)?(Ot&&3===t.nodeType&&(e=t.textContent,l([ut,ct,lt],(t=>{e=g(e,t," ")})),t.textContent!==e&&(d(n.removed,{element:t.cloneNode()}),t.textContent=e)),we("afterSanitizeElements",t,null),!1):(he(t),!0)},_e=function(t,e,n){if(Pt&&("id"===e||"name"===e)&&(n in r||n in ie))return!1;if(kt&&!Tt[e]&&b(ft,e));else if(Et&&b(dt,e));else if(!yt[e]||Tt[e]){if(!(Te(t)&&(bt.tagNameCheck instanceof RegExp&&b(bt.tagNameCheck,t)||bt.tagNameCheck instanceof Function&&bt.tagNameCheck(t))&&(bt.attributeNameCheck instanceof RegExp&&b(bt.attributeNameCheck,e)||bt.attributeNameCheck instanceof Function&&bt.attributeNameCheck(e))||"is"===e&&bt.allowCustomizedBuiltInElements&&(bt.tagNameCheck instanceof RegExp&&b(bt.tagNameCheck,n)||bt.tagNameCheck instanceof Function&&bt.tagNameCheck(n))))return!1}else if(Wt[e]);else if(b(mt,g(n,pt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==v(n,"data:")||!Bt[t])if(At&&!b(ht,g(n,pt,"")));else if(n)return!1;return!0},Te=function(t){return"annotation-xml"!==t&&t.indexOf("-")>0},Ee=function(t){we("beforeSanitizeAttributes",t,null);const{attributes:e}=t;if(!e)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:yt};let i=e.length;for(;i--;){const o=e[i],{name:a,namespaceURI:s,value:u}=o,c=ne(a);let d="value"===a?u:y(u);if(r.attrName=c,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,we("uponSanitizeAttribute",t,r),d=r.attrValue,r.forceKeepAttr)continue;if(pe(a,t),!r.keepAttr)continue;if(!St&&b(/\/>/i,d)){pe(a,t);continue}Ot&&l([ut,ct,lt],(t=>{d=g(d,t," ")}));const h=ne(t.nodeName);if(_e(h,c,d)){if(!Dt||"id"!==c&&"name"!==c||(pe(a,t),d=Mt+d),tt&&"object"==typeof B&&"function"==typeof B.getAttributeType)if(s);else switch(B.getAttributeType(h,c)){case"TrustedHTML":d=tt.createHTML(d);break;case"TrustedScriptURL":d=tt.createScriptURL(d)}try{s?t.setAttributeNS(s,a,d):t.setAttribute(a,d),f(n.removed)}catch(t){}}}we("afterSanitizeAttributes",t,null)},ke=function t(e){let n=null;const r=ge(e);for(we("beforeSanitizeShadowDOM",e,null);n=r.nextNode();)we("uponSanitizeShadowNode",n,null),be(n)||(n.content instanceof u&&t(n.content),Ee(n));we("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,o=null,a=null,s=null;if(Qt=!t,Qt&&(t="\x3c!--\x3e"),"string"!=typeof t&&!ye(t)){if("function"!=typeof t.toString)throw _("toString is not a function");if("string"!=typeof(t=t.toString()))throw _("dirty is not a string, aborting")}if(!n.isSupported)return t;if(Lt||ae(e),n.removed=[],"string"==typeof t&&(Ft=!1),Ft){if(t.nodeName){const e=ne(t.nodeName);if(!gt[e]||_t[e])throw _("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof T)r=me("\x3c!----\x3e"),o=r.ownerDocument.importNode(t,!0),1===o.nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!Ct&&!Ot&&!Rt&&-1===t.indexOf("<"))return tt&&Nt?tt.createHTML(t):t;if(r=me(t),!r)return Ct?null:Nt?et:""}r&&xt&&he(r.firstChild);const c=ge(Ft?t:r);for(;a=c.nextNode();)be(a)||(a.content instanceof u&&ke(a.content),Ee(a));if(Ft)return t;if(Ct){if(Ht)for(s=it.call(r.ownerDocument);r.firstChild;)s.appendChild(r.firstChild);else s=r;return(yt.shadowroot||yt.shadowrootmode)&&(s=at.call(i,s,!0)),s}let f=Rt?r.outerHTML:r.innerHTML;return Rt&&gt["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&b(X,r.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+f),Ot&&l([ut,ct,lt],(t=>{f=g(f,t," ")})),tt&&Nt?tt.createHTML(f):f},n.setConfig=function(){ae(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Lt=!0},n.clearConfig=function(){re=null,Lt=!1},n.isValidAttribute=function(t,e,n){re||ae({});const r=ne(t),i=ne(e);return _e(r,i,n)},n.addHook=function(t,e){"function"==typeof e&&(st[t]=st[t]||[],d(st[t],e))},n.removeHook=function(t){if(st[t])return f(st[t])},n.removeHooks=function(t){st[t]&&(st[t]=[])},n.removeAllHooks=function(){st={}},n}var Z=$();return Z}();var r=n.exports;return t.getDefaultExportFromCjs(r)})),define("npm:zenscroll/zenscroll.js",["_commonjsHelpers-BCozaH8h.js"],(function(t){"use strict";var e,n,r,i={exports:{}};e=i,n=t.commonjsGlobal,r=function(){var t=function(t){return t&&"getComputedStyle"in window&&"smooth"===window.getComputedStyle(t)["scroll-behavior"]};if("undefined"==typeof window||!("document"in window))return{};var e=function(e,n,r){var i;n=n||999,r||0===r||(r=9);var o=function(t){i=t},a=function(){clearTimeout(i),o(0)},s=function(t){return Math.max(0,e.getTopOf(t)-r)},u=function(r,i,s){if(a(),0===i||i&&i<0||t(e.body))e.toY(r),s&&s();else{var u=e.getY(),c=Math.max(0,r)-u,l=(new Date).getTime();i=i||Math.min(Math.abs(c),n),function t(){o(setTimeout((function(){var n=Math.min(1,((new Date).getTime()-l)/i),r=Math.max(0,Math.floor(u+c*(n<.5?2*n*n:n*(4-2*n)-1)));e.toY(r),n<1&&e.getHeight()+r<e.body.scrollHeight?t():(setTimeout(a,99),s&&s())}),9))}()}},c=function(t,e,n){u(s(t),e,n)};return{setup:function(t,e){return(0===t||t)&&(n=t),(0===e||e)&&(r=e),{defaultDuration:n,edgeOffset:r}},to:c,toY:u,intoView:function(t,n,i){var o=t.getBoundingClientRect().height,a=e.getTopOf(t)+o,l=e.getHeight(),f=e.getY(),d=f+l;s(t)<f||o+r>l?c(t,n,i):a+r>d?u(a-l+r,n,i):i&&i()},center:function(t,n,r,i){u(Math.max(0,e.getTopOf(t)-e.getHeight()/2+(r||t.getBoundingClientRect().height/2)),n,i)},stop:a,moving:function(){return!!i},getY:e.getY,getTopOf:e.getTopOf}},n=document.documentElement,r=function(){return window.scrollY||n.scrollTop},i=e({body:document.scrollingElement||document.body,toY:function(t){window.scrollTo(0,t)},getY:r,getHeight:function(){return window.innerHeight||n.clientHeight},getTopOf:function(t){return t.getBoundingClientRect().top+r()-n.offsetTop}});if(i.createScroller=function(t,r,i){return e({body:t,toY:function(e){t.scrollTop=e},getY:function(){return t.scrollTop},getHeight:function(){return Math.min(t.clientHeight,window.innerHeight||n.clientHeight)},getTopOf:function(t){return t.offsetTop}},r,i)},"addEventListener"in window&&!window.noZensmooth&&!t(document.body)){var o="history"in window&&"pushState"in history,a=o&&"scrollRestoration"in history;a&&(history.scrollRestoration="auto"),window.addEventListener("load",(function(){a&&(setTimeout((function(){history.scrollRestoration="manual"}),9),window.addEventListener("popstate",(function(t){t.state&&"zenscrollY"in t.state&&i.toY(t.state.zenscrollY)}),!1)),window.location.hash&&setTimeout((function(){var t=i.setup().edgeOffset;if(t){var e=document.getElementById(window.location.href.split("#")[1]);if(e){var n=Math.max(0,i.getTopOf(e)-t),r=i.getY()-n;0<=r&&r<9&&window.scrollTo(0,n)}}}),9)}),!1);var s=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(a){var n=history.state&&"object"==typeof history.state?history.state:{};n.zenscrollY=i.getY();try{history.replaceState(n,"")}catch(t){}}var r=e.getAttribute("href")||"";if(0===r.indexOf("#")&&!s.test(e.className)){var u=0,c=document.getElementById(r.substring(1));if("#"!==r){if(!c)return;u=i.getTopOf(c)}t.preventDefault();var l=function(){window.location=r},f=i.setup().edgeOffset;f&&(u=Math.max(0,u-f),o&&(l=function(){history.pushState({},"",r)})),i.toY(u,null,l)}}}),!1)}return i},e.exports?e.exports=r():function t(){document&&document.body?n.zenscroll=r():setTimeout(t,9)}();var o=i.exports;return t.getDefaultExportFromCjs(o)})),define("npm:@glidejs/glide/dist/glide.js",["_commonjsHelpers-BCozaH8h.js"],(function(t){"use strict";var e,n={exports:{}};e=n,t.commonjsGlobal,e.exports=function(){var t={type:"slider",startAt:0,perView:1,focusAt:0,gap:10,autoplay:!1,hoverpause:!0,keyboard:!0,bound:!1,swipeThreshold:80,dragThreshold:120,perSwipe:"|",touchRatio:.5,touchAngle:45,animationDuration:400,rewind:!0,rewindDuration:800,animationTimingFunc:"cubic-bezier(.165, .840, .440, 1)",waitForTransition:!0,throttle:10,direction:"ltr",peek:0,breakpoints:{},classes:{swipeable:"glide--swipeable",dragging:"glide--dragging",direction:{ltr:"glide--ltr",rtl:"glide--rtl"},type:{slider:"glide--slider",carousel:"glide--carousel"},slide:{clone:"glide__slide--clone",active:"glide__slide--active"},arrow:{disabled:"glide__arrow--disabled"},nav:{active:"glide__bullet--active"}}};function e(t){console.error("[Glide warn]: "+t)}var n="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},r=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},a=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},s=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},u=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e};function c(t){return parseInt(t)}function l(t){return parseFloat(t)}function f(t){return"string"==typeof t}function d(t){var e=void 0===t?"undefined":n(t);return"function"===e||"object"===e&&!!t}function h(t){return"function"==typeof t}function p(t){return void 0===t}function m(t){return t.constructor===Array}function g(t,n,r){var i={};for(var o in n)h(n[o])?i[o]=n[o](t,i,r):e("Extension must be a function");for(var a in i)h(i[a].mount)&&i[a].mount();return i}function v(t,e,n){Object.defineProperty(t,e,n)}function y(t){return Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e[n],e}),{})}function w(t,e){var n=o({},t,e);return e.hasOwnProperty("classes")&&(n.classes=o({},t.classes,e.classes),e.classes.hasOwnProperty("direction")&&(n.classes.direction=o({},t.classes.direction,e.classes.direction)),e.classes.hasOwnProperty("type")&&(n.classes.type=o({},t.classes.type,e.classes.type)),e.classes.hasOwnProperty("slide")&&(n.classes.slide=o({},t.classes.slide,e.classes.slide)),e.classes.hasOwnProperty("arrow")&&(n.classes.arrow=o({},t.classes.arrow,e.classes.arrow)),e.classes.hasOwnProperty("nav")&&(n.classes.nav=o({},t.classes.nav,e.classes.nav))),e.hasOwnProperty("breakpoints")&&(n.breakpoints=o({},t.breakpoints,e.breakpoints)),n}var b=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,t),this.events=e,this.hop=e.hasOwnProperty}return i(t,[{key:"on",value:function(t,e){if(m(t))for(var n=0;n<t.length;n++)this.on(t[n],e);this.hop.call(this.events,t)||(this.events[t]=[]);var r=this.events[t].push(e)-1;return{remove:function(){delete this.events[t][r]}}}},{key:"emit",value:function(t,e){if(m(t))for(var n=0;n<t.length;n++)this.emit(t[n],e);this.hop.call(this.events,t)&&this.events[t].forEach((function(t){t(e||{})}))}}]),t}(),_=function(){function n(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,n),this._c={},this._t=[],this._e=new b,this.disabled=!1,this.selector=e,this.settings=w(t,i),this.index=this.settings.startAt}return i(n,[{key:"mount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._e.emit("mount.before"),d(t)?this._c=g(this,t,this._e):e("You need to provide a object on `mount()`"),this._e.emit("mount.after"),this}},{key:"mutate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return m(t)?this._t=t:e("You need to provide a array on `mutate()`"),this}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.settings=w(this.settings,t),t.hasOwnProperty("startAt")&&(this.index=t.startAt),this._e.emit("update"),this}},{key:"go",value:function(t){return this._c.Run.make(t),this}},{key:"move",value:function(t){return this._c.Transition.disable(),this._c.Move.make(t),this}},{key:"destroy",value:function(){return this._e.emit("destroy"),this}},{key:"play",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t&&(this.settings.autoplay=t),this._e.emit("play"),this}},{key:"pause",value:function(){return this._e.emit("pause"),this}},{key:"disable",value:function(){return this.disabled=!0,this}},{key:"enable",value:function(){return this.disabled=!1,this}},{key:"on",value:function(t,e){return this._e.on(t,e),this}},{key:"isType",value:function(t){return this.settings.type===t}},{key:"settings",get:function(){return this._o},set:function(t){d(t)?this._o=t:e("Options must be an `object` instance.")}},{key:"index",get:function(){return this._i},set:function(t){this._i=c(t)}},{key:"type",get:function(){return this.settings.type}},{key:"disabled",get:function(){return this._d},set:function(t){this._d=!!t}}]),n}();function T(t,n,r){var i={mount:function(){this._o=!1},make:function(e){var i=this;t.disabled||(!t.settings.waitForTransition||t.disable(),this.move=e,r.emit("run.before",this.move),this.calculate(),r.emit("run",this.move),n.Transition.after((function(){i.isStart()&&r.emit("run.start",i.move),i.isEnd()&&r.emit("run.end",i.move),i.isOffset()&&(i._o=!1,r.emit("run.offset",i.move)),r.emit("run.after",i.move),t.enable()})))},calculate:function(){var n=this.move,r=this.length,i=n.steps,c=n.direction,l=1;if("="!==c)if(">"!==c||">"!==i)if("<"!==c||"<"!==i){if("|"===c&&(l=t.settings.perView||1),">"===c||"|"===c&&">"===i){var f=o(l);return f>r&&(this._o=!0),void(t.index=a(f,l))}if("<"===c||"|"===c&&"<"===i){var d=s(l);return d<0&&(this._o=!0),void(t.index=u(d,l))}e("Invalid direction pattern ["+c+i+"] has been used")}else t.index=0;else t.index=r;else t.index=i},isStart:function(){return t.index<=0},isEnd:function(){return t.index>=this.length},isOffset:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return t?!!this._o&&("|>"===t?"|"===this.move.direction&&">"===this.move.steps:"|<"===t?"|"===this.move.direction&&"<"===this.move.steps:this.move.direction===t):this._o},isBound:function(){return t.isType("slider")&&"center"!==t.settings.focusAt&&t.settings.bound}};function o(e){var n=t.index;return t.isType("carousel")?n+e:n+(e-n%e)}function a(e,n){var r=i.length;return e<=r?e:t.isType("carousel")?e-(r+1):t.settings.rewind?i.isBound()&&!i.isEnd()?r:0:i.isBound()?r:Math.floor(r/n)*n}function s(e){var n=t.index;return t.isType("carousel")?n-e:(Math.ceil(n/e)-1)*e}function u(e,n){var r=i.length;return e>=0?e:t.isType("carousel")?e+(r+1):t.settings.rewind?i.isBound()&&i.isStart()?r:Math.floor(r/n)*n:0}return v(i,"move",{get:function(){return this._m},set:function(t){var e=t.substr(1);this._m={direction:t.substr(0,1),steps:e?c(e)?c(e):e:0}}}),v(i,"length",{get:function(){var e=t.settings,r=n.Html.slides.length;return this.isBound()?r-1-(c(e.perView)-1)+c(e.focusAt):r-1}}),v(i,"offset",{get:function(){return this._o}}),i}function E(){return(new Date).getTime()}function k(t,e,n){var r=void 0,i=void 0,o=void 0,a=void 0,s=0;n||(n={});var u=function(){s=!1===n.leading?0:E(),r=null,a=t.apply(i,o),r||(i=o=null)},c=function(){var c=E();s||!1!==n.leading||(s=c);var l=e-(c-s);return i=this,o=arguments,l<=0||l>e?(r&&(clearTimeout(r),r=null),s=c,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(u,l)),a};return c.cancel=function(){clearTimeout(r),s=0,r=i=o=null},c}var A={ltr:["marginLeft","marginRight"],rtl:["marginRight","marginLeft"]};function S(t,e,n){var r={apply:function(t){for(var n=0,r=t.length;n<r;n++){var i=t[n].style,o=e.Direction.value;i[A[o][0]]=0!==n?this.value/2+"px":"",n!==t.length-1?i[A[o][1]]=this.value/2+"px":i[A[o][1]]=""}},remove:function(t){for(var e=0,n=t.length;e<n;e++){var r=t[e].style;r.marginLeft="",r.marginRight=""}}};return v(r,"value",{get:function(){return c(t.settings.gap)}}),v(r,"grow",{get:function(){return r.value*e.Sizes.length}}),v(r,"reductor",{get:function(){var e=t.settings.perView;return r.value*(e-1)/e}}),n.on(["build.after","update"],k((function(){r.apply(e.Html.wrapper.children)}),30)),n.on("destroy",(function(){r.remove(e.Html.wrapper.children)})),r}function O(t){if(t&&t.parentNode){for(var e=t.parentNode.firstChild,n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}return[]}function R(t){return!!(t&&t instanceof window.HTMLElement)}var L='[data-glide-el="track"]';function x(t,n){var r={mount:function(){this.root=t.selector,this.track=this.root.querySelector(L),this.slides=Array.prototype.slice.call(this.wrapper.children).filter((function(e){return!e.classList.contains(t.settings.classes.slide.clone)}))}};return v(r,"root",{get:function(){return r._r},set:function(t){f(t)&&(t=document.querySelector(t)),R(t)?r._r=t:e("Root element must be a existing Html node")}}),v(r,"track",{get:function(){return r._t},set:function(t){R(t)?r._t=t:e("Could not find track element. Please use "+L+" attribute.")}}),v(r,"wrapper",{get:function(){return r.track.children[0]}}),r}function C(t,e,n){var r={mount:function(){this.value=t.settings.peek}};return v(r,"value",{get:function(){return r._v},set:function(t){d(t)?(t.before=c(t.before),t.after=c(t.after)):t=c(t),r._v=t}}),v(r,"reductor",{get:function(){var e=r.value,n=t.settings.perView;return d(e)?e.before/n+e.after/n:2*e/n}}),n.on(["resize","update"],(function(){r.mount()})),r}function H(t,e,n){var r={mount:function(){this._o=0},make:function(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.offset=r,n.emit("move",{movement:this.value}),e.Transition.after((function(){n.emit("move.after",{movement:t.value})}))}};return v(r,"offset",{get:function(){return r._o},set:function(t){r._o=p(t)?0:c(t)}}),v(r,"translate",{get:function(){return e.Sizes.slideWidth*t.index}}),v(r,"value",{get:function(){var t=this.offset,n=this.translate;return e.Direction.is("rtl")?n+t:n-t}}),n.on(["build.before","run"],(function(){r.make()})),r}function N(t,e,n){var r={setupSlides:function(){for(var t=this.slideWidth+"px",n=e.Html.slides,r=0;r<n.length;r++)n[r].style.width=t},setupWrapper:function(){e.Html.wrapper.style.width=this.wrapperSize+"px"},remove:function(){for(var t=e.Html.slides,n=0;n<t.length;n++)t[n].style.width="";e.Html.wrapper.style.width=""}};return v(r,"length",{get:function(){return e.Html.slides.length}}),v(r,"width",{get:function(){return e.Html.root.offsetWidth}}),v(r,"wrapperSize",{get:function(){return r.slideWidth*r.length+e.Gaps.grow+e.Clones.grow}}),v(r,"slideWidth",{get:function(){return r.width/t.settings.perView-e.Peek.reductor-e.Gaps.reductor}}),n.on(["build.before","resize","update"],(function(){r.setupSlides(),r.setupWrapper()})),n.on("destroy",(function(){r.remove()})),r}function P(t,e,n){var r={mount:function(){n.emit("build.before"),this.typeClass(),this.activeClass(),n.emit("build.after")},typeClass:function(){e.Html.root.classList.add(t.settings.classes.type[t.settings.type])},activeClass:function(){var n=t.settings.classes,r=e.Html.slides[t.index];r&&(r.classList.add(n.slide.active),O(r).forEach((function(t){t.classList.remove(n.slide.active)})))},removeClasses:function(){var n=t.settings.classes,r=n.type,i=n.slide;e.Html.root.classList.remove(r[t.settings.type]),e.Html.slides.forEach((function(t){t.classList.remove(i.active)}))}};return n.on(["destroy","update"],(function(){r.removeClasses()})),n.on(["resize","update"],(function(){r.mount()})),n.on("move.after",(function(){r.activeClass()})),r}function D(t,e,n){var r={mount:function(){this.items=[],t.isType("carousel")&&(this.items=this.collect())},collect:function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=e.Html.slides,i=t.settings,o=i.perView,a=i.classes,s=o+ +!!t.settings.peek+Math.round(o/2),u=r.slice(0,s).reverse(),c=r.slice(-1*s),l=0;l<Math.max(1,Math.floor(o/r.length));l++){for(var f=0;f<u.length;f++){var d=u[f].cloneNode(!0);d.classList.add(a.slide.clone),n.push(d)}for(var h=0;h<c.length;h++){var p=c[h].cloneNode(!0);p.classList.add(a.slide.clone),n.unshift(p)}}return n},append:function(){for(var t=this.items,n=e.Html,r=n.wrapper,i=n.slides,o=Math.floor(t.length/2),a=t.slice(0,o).reverse(),s=t.slice(-1*o).reverse(),u=e.Sizes.slideWidth+"px",c=0;c<s.length;c++)r.appendChild(s[c]);for(var l=0;l<a.length;l++)r.insertBefore(a[l],i[0]);for(var f=0;f<t.length;f++)t[f].style.width=u},remove:function(){for(var t=this.items,n=0;n<t.length;n++)e.Html.wrapper.removeChild(t[n])}};return v(r,"grow",{get:function(){return(e.Sizes.slideWidth+e.Gaps.value)*r.items.length}}),n.on("update",(function(){r.remove(),r.mount(),r.append()})),n.on("build.before",(function(){t.isType("carousel")&&r.append()})),n.on("destroy",(function(){r.remove()})),r}var M=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,t),this.listeners=e}return i(t,[{key:"on",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];f(t)&&(t=[t]);for(var i=0;i<t.length;i++)this.listeners[t[i]]=n,e.addEventListener(t[i],this.listeners[t[i]],r)}},{key:"off",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];f(t)&&(t=[t]);for(var r=0;r<t.length;r++)e.removeEventListener(t[r],this.listeners[t[r]],n)}},{key:"destroy",value:function(){delete this.listeners}}]),t}();function I(t,e,n){var r=new M,i={mount:function(){this.bind()},bind:function(){r.on("resize",window,k((function(){n.emit("resize")}),t.settings.throttle))},unbind:function(){r.off("resize",window)}};return n.on("destroy",(function(){i.unbind(),r.destroy()})),i}var F=["ltr","rtl"],j={">":"<","<":">","=":"="};function z(t,n,r){var i={mount:function(){this.value=t.settings.direction},resolve:function(t){var e=t.slice(0,1);return this.is("rtl")?t.split(e).join(j[e]):t},is:function(t){return this.value===t},addClass:function(){n.Html.root.classList.add(t.settings.classes.direction[this.value])},removeClass:function(){n.Html.root.classList.remove(t.settings.classes.direction[this.value])}};return v(i,"value",{get:function(){return i._v},set:function(t){F.indexOf(t)>-1?i._v=t:e("Direction value must be `ltr` or `rtl`")}}),r.on(["destroy","update"],(function(){i.removeClass()})),r.on("update",(function(){i.mount()})),r.on(["build.before","update"],(function(){i.addClass()})),i}function U(t,e){return{modify:function(t){return e.Direction.is("rtl")?-t:t}}}function B(t,e){return{modify:function(t){var n=Math.floor(t/e.Sizes.slideWidth);return t+e.Gaps.value*n}}}function G(t,e){return{modify:function(t){return t+e.Clones.grow/2}}}function W(t,e){return{modify:function(n){if(t.settings.focusAt>=0){var r=e.Peek.value;return d(r)?n-r.before:n-r}return n}}}function Y(t,e){return{modify:function(n){var r=e.Gaps.value,i=e.Sizes.width,o=t.settings.focusAt,a=e.Sizes.slideWidth;return"center"===o?n-(i/2-a/2):n-a*o-r*o}}}function q(t,n,r){var i=[B,G,W,Y].concat(t._t,[U]);return{mutate:function(o){for(var a=0;a<i.length;a++){var s=i[a];h(s)&&h(s().modify)?o=s(t,n,r).modify(o):e("Transformer should be a function that returns an object with `modify()` method")}return o}}}function X(t,e,n){var r={set:function(n){var r=q(t,e).mutate(n);e.Html.wrapper.style.transform="translate3d("+-1*r+"px, 0px, 0px)"},remove:function(){e.Html.wrapper.style.transform=""},getStartIndex:function(){var n=e.Sizes.length,r=t.index,i=t.settings.perView;return e.Run.isOffset(">")||e.Run.isOffset("|>")?n+(r-i):(r+i)%n},getTravelDistance:function(){var n=e.Sizes.slideWidth*t.settings.perView;return e.Run.isOffset(">")||e.Run.isOffset("|>")?-1*n:n}};return n.on("move",(function(i){if(!t.isType("carousel")||!e.Run.isOffset())return r.set(i.movement);e.Transition.after((function(){n.emit("translate.jump"),r.set(e.Sizes.slideWidth*t.index)}));var o=e.Sizes.slideWidth*e.Translate.getStartIndex();return r.set(o-e.Translate.getTravelDistance())})),n.on("destroy",(function(){r.remove()})),r}function V(t,e,n){var r=!1,i={compose:function(e){var n=t.settings;return r?e+" 0ms "+n.animationTimingFunc:e+" "+this.duration+"ms "+n.animationTimingFunc},set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";e.Html.wrapper.style.transition=this.compose(t)},remove:function(){e.Html.wrapper.style.transition=""},after:function(t){setTimeout((function(){t()}),this.duration)},enable:function(){r=!1,this.set()},disable:function(){r=!0,this.set()}};return v(i,"duration",{get:function(){var n=t.settings;return t.isType("slider")&&e.Run.offset?n.rewindDuration:n.animationDuration}}),n.on("move",(function(){i.set()})),n.on(["build.before","resize","translate.jump"],(function(){i.disable()})),n.on("run",(function(){i.enable()})),n.on("destroy",(function(){i.remove()})),i}var K=!1;try{var Q=Object.defineProperty({},"passive",{get:function(){K=!0}});window.addEventListener("testPassive",null,Q),window.removeEventListener("testPassive",null,Q)}catch(t){}var $=K,Z=["touchstart","mousedown"],J=["touchmove","mousemove"],tt=["touchend","touchcancel","mouseup","mouseleave"],et=["mousedown","mousemove","mouseup","mouseleave"];function nt(t,e,n){var r=new M,i=0,o=0,a=0,s=!1,u=!!$&&{passive:!0},f={mount:function(){this.bindSwipeStart()},start:function(e){if(!s&&!t.disabled){this.disable();var r=this.touches(e);i=null,o=c(r.pageX),a=c(r.pageY),this.bindSwipeMove(),this.bindSwipeEnd(),n.emit("swipe.start")}},move:function(r){if(!t.disabled){var s=t.settings,u=s.touchAngle,f=s.touchRatio,d=s.classes,h=this.touches(r),p=c(h.pageX)-o,m=c(h.pageY)-a,g=Math.abs(p<<2),v=Math.abs(m<<2),y=Math.sqrt(g+v),w=Math.sqrt(v);if(!(180*(i=Math.asin(w/y))/Math.PI<u))return!1;r.stopPropagation(),e.Move.make(p*l(f)),e.Html.root.classList.add(d.dragging),r.cancelable&&r.preventDefault(),n.emit("swipe.move")}},end:function(r){if(!t.disabled){var a=t.settings,s=a.perSwipe,u=a.touchAngle,c=a.classes,l=this.touches(r),f=this.threshold(r),d=l.pageX-o,h=180*i/Math.PI;this.enable(),d>f&&h<u?e.Run.make(e.Direction.resolve(s+"<")):d<-f&&h<u?e.Run.make(e.Direction.resolve(s+">")):e.Move.make(),e.Html.root.classList.remove(c.dragging),this.unbindSwipeMove(),this.unbindSwipeEnd(),n.emit("swipe.end")}},bindSwipeStart:function(){var n=this,i=t.settings,o=i.swipeThreshold,a=i.dragThreshold;o&&r.on(Z[0],e.Html.wrapper,(function(t){n.start(t)}),u),a&&r.on(Z[1],e.Html.wrapper,(function(t){n.start(t)}),u)},unbindSwipeStart:function(){r.off(Z[0],e.Html.wrapper,u),r.off(Z[1],e.Html.wrapper,u)},bindSwipeMove:function(){var n=this;r.on(J,e.Html.wrapper,k((function(t){n.move(t)}),t.settings.throttle))},unbindSwipeMove:function(){r.off(J,e.Html.wrapper)},bindSwipeEnd:function(){var t=this;r.on(tt,e.Html.wrapper,(function(e){t.end(e)}))},unbindSwipeEnd:function(){r.off(tt,e.Html.wrapper)},touches:function(t){return et.indexOf(t.type)>-1?t:t.touches[0]||t.changedTouches[0]},threshold:function(e){var n=t.settings;return et.indexOf(e.type)>-1?n.dragThreshold:n.swipeThreshold},enable:function(){return s=!1,e.Transition.enable(),this},disable:function(){return s=!0,e.Transition.disable(),this}};return n.on("build.after",(function(){e.Html.root.classList.add(t.settings.classes.swipeable)})),n.on("destroy",(function(){f.unbindSwipeStart(),f.unbindSwipeMove(),f.unbindSwipeEnd(),r.destroy()})),f}function rt(t,e,n){var r=new M,i={mount:function(){this.bind()},bind:function(){r.on("dragstart",e.Html.wrapper,this.dragstart)},unbind:function(){r.off("dragstart",e.Html.wrapper)},dragstart:function(t){t.preventDefault()}};return n.on("destroy",(function(){i.unbind(),r.destroy()})),i}function it(t,e,n){var r=new M,i=!1,o=!1,a={mount:function(){this._a=e.Html.wrapper.querySelectorAll("a"),this.bind()},bind:function(){r.on("click",e.Html.wrapper,this.click)},unbind:function(){r.off("click",e.Html.wrapper)},click:function(t){o&&(t.stopPropagation(),t.preventDefault())},detach:function(){if(o=!0,!i){for(var t=0;t<this.items.length;t++)this.items[t].draggable=!1,this.items[t].setAttribute("data-href",this.items[t].getAttribute("href")),this.items[t].removeAttribute("href");i=!0}return this},attach:function(){if(o=!1,i){for(var t=0;t<this.items.length;t++)this.items[t].draggable=!0,this.items[t].setAttribute("href",this.items[t].getAttribute("data-href"));i=!1}return this}};return v(a,"items",{get:function(){return a._a}}),n.on("swipe.move",(function(){a.detach()})),n.on("swipe.end",(function(){e.Transition.after((function(){a.attach()}))})),n.on("destroy",(function(){a.attach(),a.unbind(),r.destroy()})),a}var ot='[data-glide-el="controls[nav]"]',at='[data-glide-el^="controls"]';function st(t,e,n){var r=new M,i=!!$&&{passive:!0},o={mount:function(){this._n=e.Html.root.querySelectorAll(ot),this._c=e.Html.root.querySelectorAll(at),this.addBindings()},setActive:function(){for(var t=0;t<this._n.length;t++)this.addClass(this._n[t].children)},removeActive:function(){for(var t=0;t<this._n.length;t++)this.removeClass(this._n[t].children)},addClass:function(e){var n=t.settings,r=e[t.index];r&&(r.classList.add(n.classes.nav.active),O(r).forEach((function(t){t.classList.remove(n.classes.nav.active)})))},removeClass:function(e){var n=e[t.index];n&&n.classList.remove(t.settings.classes.nav.active)},addBindings:function(){for(var t=0;t<this._c.length;t++)this.bind(this._c[t].children)},removeBindings:function(){for(var t=0;t<this._c.length;t++)this.unbind(this._c[t].children)},bind:function(t){for(var e=0;e<t.length;e++)r.on("click",t[e],this.click),r.on("touchstart",t[e],this.click,i)},unbind:function(t){for(var e=0;e<t.length;e++)r.off(["click","touchstart"],t[e])},click:function(t){t.preventDefault(),e.Run.make(e.Direction.resolve(t.currentTarget.getAttribute("data-glide-dir")))}};return v(o,"items",{get:function(){return o._c}}),n.on(["mount.after","move.after"],(function(){o.setActive()})),n.on("destroy",(function(){o.removeBindings(),o.removeActive(),r.destroy()})),o}function ut(t,e,n){var r=new M,i={mount:function(){t.settings.keyboard&&this.bind()},bind:function(){r.on("keyup",document,this.press)},unbind:function(){r.off("keyup",document)},press:function(t){39===t.keyCode&&e.Run.make(e.Direction.resolve(">")),37===t.keyCode&&e.Run.make(e.Direction.resolve("<"))}};return n.on(["destroy","update"],(function(){i.unbind()})),n.on("update",(function(){i.mount()})),n.on("destroy",(function(){r.destroy()})),i}function ct(t,e,n){var r=new M,i={mount:function(){this.start(),t.settings.hoverpause&&this.bind()},start:function(){var n=this;t.settings.autoplay&&p(this._i)&&(this._i=setInterval((function(){n.stop(),e.Run.make(">"),n.start()}),this.time))},stop:function(){this._i=clearInterval(this._i)},bind:function(){var t=this;r.on("mouseover",e.Html.root,(function(){t.stop()})),r.on("mouseout",e.Html.root,(function(){t.start()}))},unbind:function(){r.off(["mouseover","mouseout"],e.Html.root)}};return v(i,"time",{get:function(){var n=e.Html.slides[t.index].getAttribute("data-glide-autoplay");return c(n||t.settings.autoplay)}}),n.on(["destroy","update"],(function(){i.unbind()})),n.on(["run.before","pause","destroy","swipe.start","update"],(function(){i.stop()})),n.on(["run.after","play","swipe.end"],(function(){i.start()})),n.on("update",(function(){i.mount()})),n.on("destroy",(function(){r.destroy()})),i}function lt(t){return d(t)?y(t):(e("Breakpoints option must be an object"),{})}function ft(t,e,n){var r=new M,i=t.settings,a=lt(i.breakpoints),s=o({},i),u={match:function(t){if(void 0!==window.matchMedia)for(var e in t)if(t.hasOwnProperty(e)&&window.matchMedia("(max-width: "+e+"px)").matches)return t[e];return s}};return o(i,u.match(a)),r.on("resize",window,k((function(){t.settings=w(i,u.match(a))}),t.settings.throttle)),n.on("update",(function(){a=lt(a),s=o({},i)})),n.on("destroy",(function(){r.off("resize",window)})),u}var dt={Html:x,Translate:X,Transition:V,Direction:z,Peek:C,Sizes:N,Gaps:S,Move:H,Clones:D,Resize:I,Build:P,Run:T,Swipe:nt,Images:rt,Anchors:it,Controls:st,Keyboard:ut,Autoplay:ct,Breakpoints:ft},ht=function(t){function e(){return r(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,t),i(e,[{key:"mount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"mount",this).call(this,o({},dt,t))}}]),e}(_);return ht}();var r=n.exports;return t.getDefaultExportFromCjs(r)}));