(()=>{"use strict";var e={998:e=>{var t="%[a-f0-9]{2}",r=RegExp("("+t+")|([^%]+?)","gi"),n=RegExp("("+t+")+","gi");e.exports=function(e){if("string"!=typeof e)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},i=n.exec(e);i;){try{t[i[0]]=decodeURIComponent(i[0])}catch(e){var o=function(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(r)||[],n=1;n<t.length;n++)t=(e=(function e(t,r){try{return[decodeURIComponent(t.join(""))]}catch(e){}if(1===t.length)return t;r=r||1;var n=t.slice(0,r),i=t.slice(r);return Array.prototype.concat.call([],e(n),e(i))})(t,n).join("")).match(r)||[];return e}}(i[0]);o!==i[0]&&(t[i[0]]=o)}i=n.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),s=0;s<a.length;s++){var c=a[s];e=e.replace(RegExp(c,"g"),t[c])}return e}(e)}}},857:e=>{var t=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==r},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s(Array.isArray(e)?[]:{},e,t):e}function i(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function o(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,r,c){(c=c||{}).arrayMerge=c.arrayMerge||i,c.isMergeableObject=c.isMergeableObject||t,c.cloneUnlessOtherwiseSpecified=n;var l,u,h=Array.isArray(r);return h!==Array.isArray(e)?n(r,c):h?c.arrayMerge(e,r,c):(u={},(l=c).isMergeableObject(e)&&o(e).forEach(function(t){u[t]=n(e[t],l)}),o(r).forEach(function(t){(!a(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(a(e,t)&&l.isMergeableObject(r[t])?u[t]=(function(e,t){if(!t.customMerge)return s;var r=t.customMerge(e);return"function"==typeof r?r:s})(t,l)(e[t],r[t],l):u[t]=n(r[t],l))}),u)}s.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return s(e,r,t)},{})},e.exports=s},728:e=>{e.exports=function(e,t){for(var r={},n=Object.keys(e),i=Array.isArray(t),o=0;o<n.length;o++){var a=n[o],s=e[a];(i?-1!==t.indexOf(a):t(a,s,e))&&(r[a]=s)}return r}},742:e=>{e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},940:(e,t,r)=>{let n=r(742),i=r(998),o=r(231),a=r(728),s=e=>null==e,c=Symbol("encodeFragmentIdentifier");function l(e){if("string"!=typeof e||1!==e.length)throw TypeError("arrayFormatSeparator must be single character string")}function u(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function h(e,t){return t.decode?i(e):e}function p(e){let t=e.indexOf("#");return -1!==t&&(e=e.slice(0,t)),e}function d(e){let t=(e=p(e)).indexOf("?");return -1===t?"":e.slice(t+1)}function f(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):t.parseBooleans&&null!==e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())&&(e="true"===e.toLowerCase()),e}function g(e,t){l((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);let r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{if(t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),!t){n[e]=r;return}void 0===n[e]&&(n[e]={}),n[e][t[1]]=r};case"bracket":return(e,r,n)=>{if(t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),!t){n[e]=r;return}if(void 0===n[e]){n[e]=[r];return}n[e]=[].concat(n[e],r)};case"colon-list-separator":return(e,r,n)=>{if(t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),!t){n[e]=r;return}if(void 0===n[e]){n[e]=[r];return}n[e]=[].concat(n[e],r)};case"comma":case"separator":return(t,r,n)=>{let i="string"==typeof r&&r.includes(e.arrayFormatSeparator),o="string"==typeof r&&!i&&h(r,e).includes(e.arrayFormatSeparator);r=o?h(r,e):r;let a=i||o?r.split(e.arrayFormatSeparator).map(t=>h(t,e)):null===r?r:h(r,e);n[t]=a};case"bracket-separator":return(t,r,n)=>{let i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i){n[t]=r?h(r,e):r;return}let o=null===r?[]:r.split(e.arrayFormatSeparator).map(t=>h(t,e));if(void 0===n[t]){n[t]=o;return}n[t]=[].concat(n[t],o)};default:return(e,t,r)=>{if(void 0===r[e]){r[e]=t;return}r[e]=[].concat(r[e],t)}}}(t),n=Object.create(null);if("string"!=typeof e||!(e=e.trim().replace(/^[?#&]/,"")))return n;for(let i of e.split("&")){if(""===i)continue;let[e,a]=o(t.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:h(a,t),r(h(e,t),a,n)}for(let e of Object.keys(n)){let r=n[e];if("object"==typeof r&&null!==r)for(let e of Object.keys(r))r[e]=f(r[e],t);else n[e]=f(r,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((e,t)=>{let r=n[t];return r&&"object"==typeof r&&!Array.isArray(r)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(r):e[t]=r,e},Object.create(null))}t.extract=d,t.parse=g,t.stringify=(e,t)=>{if(!e)return"";l((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);let r=r=>t.skipNull&&s(e[r])||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let i=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[u(t,e),"[",i,"]"].join("")]:[...r,[u(t,e),"[",u(i,e),"]=",u(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[u(t,e),"[]"].join("")]:[...r,[u(t,e),"[]=",u(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[u(t,e),":list="].join("")]:[...r,[u(t,e),":list=",u(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?n:(i=null===i?"":i,0===n.length)?[[u(r,e),t,u(i,e)].join("")]:[[n,u(i,e)].join(e.arrayFormatSeparator)]}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,u(t,e)]:[...r,[u(t,e),"=",u(n,e)].join("")]}}(t),i={};for(let t of Object.keys(e))r(t)||(i[t]=e[t]);let o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map(r=>{let i=e[r];return void 0===i?"":null===i?u(r,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?u(r,t)+"[]":i.reduce(n(r),[]).join("&"):u(r,t)+"="+u(i,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=o(e,"#");return Object.assign({url:r.split("?")[0]||"",query:g(d(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:h(n,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[c]:!0},r);let n=p(e.url).split("?")[0]||"",i=t.extract(e.url),o=Object.assign(t.parse(i,{sort:!1}),e.query),a=t.stringify(o,r);a&&(a="?".concat(a));let s=function(e){let t="",r=e.indexOf("#");return -1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(s="#".concat(r[c]?u(e.fragmentIdentifier,r):e.fragmentIdentifier)),"".concat(n).concat(a).concat(s)},t.pick=(e,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[c]:!1},n);let{url:i,query:o,fragmentIdentifier:s}=t.parseUrl(e,n);return t.stringifyUrl({url:i,query:a(o,r),fragmentIdentifier:s},n)},t.exclude=(e,r,n)=>{let i=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,i,n)}},231:e=>{e.exports=(e,t)=>{if(!("string"==typeof e&&"string"==typeof t))throw TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];let r=e.indexOf(t);return -1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}(()=>{r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t}})(),(()=>{r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(()=>{r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{var e=r(857),t=r.n(e);class n{static ucFirst(e){return e.charAt(0).toUpperCase()+e.slice(1)}static lcFirst(e){return e.charAt(0).toLowerCase()+e.slice(1)}static toDashCase(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}static toLowerCamelCase(e,t){let r=n.toUpperCamelCase(e,t);return n.lcFirst(r)}static toUpperCamelCase(e,t){return t?e.split(t).map(e=>n.ucFirst(e.toLowerCase())).join(""):n.ucFirst(e.toLowerCase())}static parsePrimitive(e){try{return/^\d+(.|,)\d+$/.test(e)&&(e=e.replace(",",".")),JSON.parse(e)}catch(t){return e.toString()}}}class i{static isNode(e){return"object"==typeof e&&null!==e&&(e===document||e===window||e instanceof Node)}static hasAttribute(e,t){if(!i.isNode(e))throw Error("The element must be a valid HTML Node!");return"function"==typeof e.hasAttribute&&e.hasAttribute(t)}static getAttribute(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!1===i.hasAttribute(e,t))throw Error('The required property "'.concat(t,'" does not exist!'));if("function"!=typeof e.getAttribute){if(r)throw Error("This node doesn't support the getAttribute function!");return}return e.getAttribute(t)}static getDataAttribute(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],o=t.replace(/^data(|-)/,""),a=n.toLowerCamelCase(o,"-");if(!i.isNode(e)){if(r)throw Error("The passed node is not a valid HTML Node!");return}if(void 0===e.dataset){if(r)throw Error("This node doesn't support the dataset attribute!");return}let s=e.dataset[a];if(void 0===s){if(r)throw Error('The required data attribute "'.concat(t,'" does not exist on ').concat(e,"!"));return s}return n.parsePrimitive(s)}static querySelector(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!i.isNode(e))throw Error("The parent node is not a valid HTML Node!");let n=e.querySelector(t)||!1;if(r&&!1===n)throw Error('The required element "'.concat(t,'" does not exist in parent node!'));return n}static querySelectorAll(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!i.isNode(e))throw Error("The parent node is not a valid HTML Node!");let n=e.querySelectorAll(t);if(0===n.length&&(n=!1),r&&!1===n)throw Error('At least one item of "'.concat(t,'" must exist in parent node!'));return n}}class o{publish(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new CustomEvent(e,{detail:t,cancelable:r});return this.el.dispatchEvent(n),n}subscribe(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this,i=e.split("."),o=r.scope?t.bind(r.scope):t;if(r.once&&!0===r.once){let t=o;o=function(r){n.unsubscribe(e),t(r)}}return this.el.addEventListener(i[0],o),this.listeners.push({splitEventName:i,opts:r,cb:o}),!0}unsubscribe(e){let t=e.split(".");return this.listeners=this.listeners.reduce((e,r)=>([...r.splitEventName].sort().toString()===t.sort().toString()?this.el.removeEventListener(r.splitEventName[0],r.cb):e.push(r),e),[]),!0}reset(){return this.listeners.forEach(e=>{this.el.removeEventListener(e.splitEventName[0],e.cb)}),this.listeners=[],!0}get el(){return this._el}set el(e){this._el=e}get listeners(){return this._listeners}set listeners(e){this._listeners=e}constructor(e=document){this._el=e,e.$emitter=this,this._listeners=[]}}class a{init(){throw Error('The "init" method for the plugin "'.concat(this._pluginName,'" is not defined.'))}update(){}_init(){this._initialized||(this.init(),this._initialized=!0)}_update(){this._initialized&&this.update()}_mergeOptions(e){let r=n.toDashCase(this._pluginName),o=i.getDataAttribute(this.el,"data-".concat(r,"-config"),!1),a=i.getAttribute(this.el,"data-".concat(r,"-options"),!1),s=[this.constructor.options,this.options,e];o&&s.push(window.PluginConfigManager.get(this._pluginName,o));try{a&&s.push(JSON.parse(a))}catch(e){throw console.error(this.el),Error('The data attribute "data-'.concat(r,'-options" could not be parsed to json: ').concat(e.message))}return t().all(s.filter(e=>e instanceof Object&&!(e instanceof Array)).map(e=>e||{}))}_registerInstance(){window.PluginManager.getPluginInstancesFromElement(this.el).set(this._pluginName,this),window.PluginManager.getPlugin(this._pluginName,!1).get("instances").push(this)}_getPluginName(e){return e||(e=this.constructor.name),e}constructor(e,t={},r=!1){if(!i.isNode(e))throw Error("There is no valid element given.");this.el=e,this.$emitter=new o(this.el),this._pluginName=this._getPluginName(r),this.options=this._mergeOptions(t),this._initialized=!1,this._registerInstance(),this._init()}}class s{static isSupported(){return"undefined"!==document.cookie}static setItem(e,t,r){if(null==e)throw Error("You must specify a key to set a cookie");let n=new Date;n.setTime(n.getTime()+864e5*r);let i="";"https:"===location.protocol&&(i="secure"),document.cookie="".concat(e,"=").concat(t,";expires=").concat(n.toUTCString(),";path=/;sameSite=lax;").concat(i)}static getItem(e){if(!e)return!1;let t=e+"=",r=document.cookie.split(";");for(let e=0;e<r.length;e++){let n=r[e];for(;" "===n.charAt(0);)n=n.substring(1);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return!1}static removeItem(e){document.cookie="".concat(e,"= ; expires = Thu, 01 Jan 1970 00:00:00 GMT;path=/")}static key(){return""}static clear(){}}var c=r(940);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function u(e){return"/"===e.charAt(0)}function h(e,t){for(var r=t,n=r+1,i=e.length;n<i;r+=1,n+=1)e[r]=e[n];e.pop()}let p=function(e,t){void 0===t&&(t="");var r,n=e&&e.split("/")||[],i=t&&t.split("/")||[],o=e&&u(e),a=t&&u(t),s=o||a;if(e&&u(e)?i=n:n.length&&(i.pop(),i=i.concat(n)),!i.length)return"/";if(i.length){var c=i[i.length-1];r="."===c||".."===c||""===c}else r=!1;for(var l=0,p=i.length;p>=0;p--){var d=i[p];"."===d?h(i,p):".."===d?(h(i,p),l++):l&&(h(i,p),l--)}if(!s)for(;l--;l)i.unshift("..");s&&""!==i[0]&&(!i[0]||!u(i[0]))&&i.unshift("");var f=i.join("/");return r&&"/"!==f.substr(-1)&&(f+="/"),f};function d(e,t,r,n){var i,o,a,s,c,u;"string"==typeof e?(a="",s="",-1!==(c=(o=e||"/").indexOf("#"))&&(s=o.substr(c),o=o.substr(0,c)),-1!==(u=o.indexOf("?"))&&(a=o.substr(u),o=o.substr(0,u)),(i={pathname:o,search:"?"===a?"":a,hash:"#"===s?"":s}).state=t):(void 0===(i=l({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){if(e instanceof URIError)throw URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.');throw e}return r&&(i.key=r),n?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=p(i.pathname,n.pathname)):i.pathname=n.pathname:i.pathname||(i.pathname="/"),i}var f=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function g(e,t){t(window.confirm(e))}var m="popstate",y="hashchange";function b(){try{return window.history.state||{}}catch(e){return{}}}let v=Object.freeze(new class{getLocation(){return this._history.location}listen(e){return this._history.listen(e)}unlisten(e){e()}push(e,t,r){this._history.push({pathname:e,search:t,state:r})}replace(e,t,r){this._history.replace({pathname:e,search:t,state:r})}pushParams(e,r){let n=this.getLocation().pathname,i=c.parse(location.search),o=c.stringify(t()(i,e));this.push(n,o,r)}replaceParams(e,r){let n=this.getLocation().pathname,i=c.parse(location.search),o=c.stringify(t()(i,e));this.replace(n,o,r)}getSearch(){return this._history.location.search}constructor(){this._history=function(e){void 0===e&&(e={}),f||function(e,t){if(!e)throw Error("Invariant failed")}(!1);var t,r,n,i,o,a=window.history,s=(o=window.navigator.userAgent,(!(-1!==o.indexOf("Android 2.")||-1!==o.indexOf("Android 4.0"))||-1===o.indexOf("Mobile Safari")||-1!==o.indexOf("Chrome")||-1!==o.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history),c=-1!==window.navigator.userAgent.indexOf("Trident"),u=e,h=u.forceRefresh,p=void 0!==h&&h,v=u.getUserConfirmation,w=void 0===v?g:v,k=u.keyLength,O=void 0===k?6:k,A=e.basename?"/"===(r="/"===(t=e.basename).charAt(0)?t:"/"+t).charAt(r.length-1)?r.slice(0,-1):r:"";function C(e){var t,r,n=e||{},i=n.key,o=n.state,a=window.location,s=a.pathname+a.search+a.hash;return A&&(t=s,r=A,s=0===t.toLowerCase().indexOf(r.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(r.length))?t.substr(r.length):t),d(s,o,i)}function j(){return Math.random().toString(36).substr(2,O)}var E=(n=null,i=[],{setPrompt:function(e){return n=e,function(){n===e&&(n=null)}},confirmTransitionTo:function(e,t,r,i){if(null!=n){var o="function"==typeof n?n(e,t):n;"string"==typeof o?"function"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var t=!0;function r(){t&&e.apply(void 0,arguments)}return i.push(r),function(){t=!1,i=i.filter(function(e){return e!==r})}},notifyListeners:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];i.forEach(function(e){return e.apply(void 0,t)})}});function N(e){l($,e),$.length=a.length,E.notifyListeners($.location,$.action)}function x(e){void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")||P(C(e.state))}function S(){P(C(b()))}var L=!1;function P(e){L?(L=!1,N()):E.confirmTransitionTo(e,"POP",w,function(t){var r,n,i,o;t?N({action:"POP",location:e}):(r=$.location,-1===(n=_.indexOf(r.key))&&(n=0),-1===(i=_.indexOf(e.key))&&(i=0),(o=n-i)&&(L=!0,I(o)))})}var T=C(b()),_=[T.key];function F(e){var t,r,n,i;return A+(t=e.pathname,r=e.search,n=e.hash,i=t||"/",r&&"?"!==r&&(i+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(i+="#"===n.charAt(0)?n:"#"+n),i)}function I(e){a.go(e)}var M=0;function U(e){1===(M+=e)&&1===e?(window.addEventListener(m,x),c&&window.addEventListener(y,S)):0===M&&(window.removeEventListener(m,x),c&&window.removeEventListener(y,S))}var R=!1,$={length:a.length,action:"POP",location:T,createHref:F,push:function(e,t){var r="PUSH",n=d(e,t,j(),$.location);E.confirmTransitionTo(n,r,w,function(e){if(e){var t=F(n),i=n.key,o=n.state;if(s){if(a.pushState({key:i,state:o},null,t),p)window.location.href=t;else{var c=_.indexOf($.location.key),l=_.slice(0,c+1);l.push(n.key),_=l,N({action:r,location:n})}}else window.location.href=t}})},replace:function(e,t){var r="REPLACE",n=d(e,t,j(),$.location);E.confirmTransitionTo(n,r,w,function(e){if(e){var t=F(n),i=n.key,o=n.state;if(s){if(a.replaceState({key:i,state:o},null,t),p)window.location.replace(t);else{var c=_.indexOf($.location.key);-1!==c&&(_[c]=n.key),N({action:r,location:n})}}else window.location.replace(t)}})},go:I,goBack:function(){I(-1)},goForward:function(){I(1)},block:function(e){void 0===e&&(e=!1);var t=E.setPrompt(e);return R||(U(1),R=!0),function(){return R&&(R=!1,U(-1)),t()}},listen:function(e){var t=E.appendListener(e);return U(1),function(){U(-1),t()}}};return $}()}});class w{static getLocation(){return v.getLocation()}static listen(e){v.listen(e)}static unlisten(e){v.unlisten(e)}static push(e,t,r){v.push(e,t,r)}static replace(e,t){v.replace(e,t)}static pushParams(e,t){v.pushParams(e,t)}static replaceParams(e,t){v.replaceParams(e,t)}static getSearch(){return v.getSearch()}}window.PluginManager.register("MomoLoginRedirectPlugin",class extends a{init(){if(this.cookieGroup=this.el.dataset.cookieGroup,this.cookieName=this.el.dataset.cookieName,this.cookieData=this.el.dataset.cookieData,this.debugLoggingActive=this.el.dataset.debugLoggingActive,this.cookieEnabledName="".concat(this.cookieName,"-enabled"),this.registerCookieChangeListener(),"comfort"===this.cookieGroup&&!s.getItem(this.cookieEnabledName)){this.onCookieNotAllowed();return}this.onCookieAllowed()}registerCookieChangeListener(){document.$emitter.subscribe("CookieConfiguration_Update",this.onCookieConfigurationChanged.bind(this))}registerHistoryChangeListener(){this.historyListener=w.listen(()=>{let e=JSON.parse(this.el.dataset.cookieData);e.queryParams=c.parse(w.getSearch()),this.cookieData=JSON.stringify(e),this.el.dataset.cookieData=this.cookieData,this.setCookie()})}onCookieConfigurationChanged(e){let t=e.detail;if(Object.prototype.hasOwnProperty.call(t,this.cookieEnabledName)){if(t[this.cookieEnabledName]){this.onCookieAllowed();return}this.onCookieNotAllowed()}}onCookieAllowed(){this.historyListener||this.registerHistoryChangeListener(),this.setCookie()}onCookieNotAllowed(){this.historyListener&&(w.unlisten(this.historyListener),this.historyListener=null),this.removeCookie()}setCookie(){"true"===this.debugLoggingActive&&console.debug("[MomoLoginRedirectSW6] Set cookie: ".concat(this.cookieName,"=").concat(this.cookieData)),document.cookie="".concat(this.cookieName,"=").concat(this.cookieData,"; path=/;").concat(window.Cypress?"":" secure")}removeCookie(){"true"===this.debugLoggingActive&&console.debug("[MomoLoginRedirectSW6] Remove cookie: ".concat(this.cookieName)),s.removeItem(this.cookieName)}},"[data-momo-login-redirect]")})()})();