<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/*! For license information please see front.min.js.LICENSE.txt */
(()=&gt;{var t={20:t=&gt;{"use strict";var e="%[a-f0-9]{2}",r=new RegExp(e,"gi"),n=new RegExp("("+e+")+","gi");function o(t,e){try{return decodeURIComponent(t.join(""))}catch(t){}if(1===t.length)return t;e=e||1;var r=t.slice(0,e),n=t.slice(e);return Array.prototype.concat.call([],o(r),o(n))}function i(t){try{return decodeURIComponent(t)}catch(i){for(var e=t.match(r),n=1;n&lt;e.length;n++)e=(t=o(e,n).join("")).match(r);return t}}t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch(e){return function(t){for(var e={"%FE%FF":"��","%FF%FE":"��"},r=n.exec(t);r;){try{e[r[0]]=decodeURIComponent(r[0])}catch(t){var o=i(r[0]);o!==r[0]&amp;&amp;(e[r[0]]=o)}r=n.exec(t)}e["%C2"]="�";for(var a=Object.keys(e),s=0;s&lt;a.length;s++){var c=a[s];t=t.replace(new RegExp(c,"g"),e[c])}return t}(t)}}},806:t=&gt;{"use strict";t.exports=function(t,e){for(var r={},n=Object.keys(t),o=Array.isArray(e),i=0;i&lt;n.length;i++){var a=n[i],s=t[a];(o?-1!==e.indexOf(a):e(a,s,t))&amp;&amp;(r[a]=s)}return r}},727:function(t){var e;e=function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}return r.m=t,r.c=e,r.p="",r(0)}([function(t,e,r){"use strict";var n,o=r(1),i=(n=o)&amp;&amp;n.__esModule?n:{default:n};t.exports=i.default},function(t,e,r){"use strict";e.__esModule=!0;var n,o=u(r(2)),i=u(r(3)),a=r(6),s=(n=a)&amp;&amp;n.__esModule?n:{default:n},c=r(5);function u(t){if(t&amp;&amp;t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&amp;&amp;(e[r]=t[r]);return e.default=t,e}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var f={comment:/^&lt;!--/,endTag:/^&lt;\//,atomicTag:/^&lt;\s*(script|style|noscript|iframe|textarea)[\s\/&gt;]/i,startTag:/^&lt;/,chars:/^[^&lt;]/},d=function(){function t(){var e=this,r=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:"",n=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{};l(this,t),this.stream=r;var i=!1,a={};for(var c in o)o.hasOwnProperty(c)&amp;&amp;(n.autoFix&amp;&amp;(a[c+"Fix"]=!0),i=i||a[c+"Fix"]);i?(this._readToken=(0,s.default)(this,a,(function(){return e._readTokenImpl()})),this._peekToken=(0,s.default)(this,a,(function(){return e._peekTokenImpl()}))):(this._readToken=this._readTokenImpl,this._peekToken=this._peekTokenImpl)}return t.prototype.append=function(t){this.stream+=t},t.prototype.prepend=function(t){this.stream=t+this.stream},t.prototype._readTokenImpl=function(){var t=this._peekTokenImpl();if(t)return this.stream=this.stream.slice(t.length),t},t.prototype._peekTokenImpl=function(){for(var t in f)if(f.hasOwnProperty(t)&amp;&amp;f[t].test(this.stream)){var e=i[t](this.stream);if(e)return"startTag"===e.type&amp;&amp;/script|style/i.test(e.tagName)?null:(e.text=this.stream.substr(0,e.length),e)}},t.prototype.peekToken=function(){return this._peekToken()},t.prototype.readToken=function(){return this._readToken()},t.prototype.readTokens=function(t){for(var e=void 0;e=this.readToken();)if(t[e.type]&amp;&amp;!1===t[e.type](e))return},t.prototype.clear=function(){var t=this.stream;return this.stream="",t},t.prototype.rest=function(){return this.stream},t}();for(var h in e.default=d,d.tokenToString=function(t){return t.toString()},d.escapeAttributes=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&amp;&amp;(e[r]=(0,c.escapeQuotes)(t[r],null));return e},d.supports=o,o)o.hasOwnProperty(h)&amp;&amp;(d.browserHasFlaw=d.browserHasFlaw||!o[h]&amp;&amp;h)},function(t,e){"use strict";e.__esModule=!0;var r=!1,n=!1,o=window.document.createElement("div");try{var i="&lt;P&gt;&lt;I&gt;&lt;/P&gt;&lt;/I&gt;";o.innerHTML=i,e.tagSoup=r=o.innerHTML!==i}catch(t){e.tagSoup=r=!1}try{o.innerHTML="&lt;P&gt;&lt;i&gt;&lt;P&gt;&lt;/P&gt;&lt;/i&gt;&lt;/P&gt;",e.selfClose=n=2===o.childNodes.length}catch(t){e.selfClose=n=!1}o=null,e.tagSoup=r,e.selfClose=n},function(t,e,r){"use strict";e.__esModule=!0,e.comment=function(t){var e=t.indexOf("--\x3e");if(e&gt;=0)return new n.CommentToken(t.substr(4,e-1),e+3)},e.chars=function(t){var e=t.indexOf("&lt;");return new n.CharsToken(e&gt;=0?e:t.length)},e.startTag=i,e.atomicTag=function(t){var e=i(t);if(e){var r=t.slice(e.length);if(r.match(new RegExp("&lt;/\\s*"+e.tagName+"\\s*&gt;","i"))){var o=r.match(new RegExp("([\\s\\S]*?)&lt;/\\s*"+e.tagName+"\\s*&gt;","i"));if(o)return new n.AtomicTagToken(e.tagName,o[0].length+e.length,e.attrs,e.booleanAttrs,o[1])}}},e.endTag=function(t){var e=t.match(o.endTag);if(e)return new n.EndTagToken(e[1],e[0].length)};var n=r(4),o={startTag:/^&lt;([\-A-Za-z0-9_!:]+)((?:\s+[\w\-]+(?:\s*=?\s*(?:(?:"[^"]*")|(?:'[^']*')|[^&gt;\s]+))?)*)\s*(\/?)&gt;/,endTag:/^&lt;\/([\-A-Za-z0-9_:]+)[^&gt;]*&gt;/,attr:/(?:([\-A-Za-z0-9_]+)\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^&gt;\s]+)))|(?:([\-A-Za-z0-9_]+)(\s|$)+)/g,fillAttr:/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noresize|noshade|nowrap|readonly|selected)$/i};function i(t){if(-1!==t.indexOf("&gt;")){var e=t.match(o.startTag);if(e){var r={},i={},a=e[2];return e[2].replace(o.attr,(function(t,e){arguments[2]||arguments[3]||arguments[4]||arguments[5]?arguments[5]?(r[arguments[5]]="",i[arguments[5]]=!0):r[e]=arguments[2]||arguments[3]||arguments[4]||o.fillAttr.test(e)&amp;&amp;e||"":r[e]="",a=a.replace(t,"")})),new n.StartTagToken(e[1],e[0].length,r,i,!!e[3],a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""))}}}},function(t,e,r){"use strict";e.__esModule=!0,e.EndTagToken=e.AtomicTagToken=e.StartTagToken=e.TagToken=e.CharsToken=e.CommentToken=e.Token=void 0;var n=r(5);function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.Token=function t(e,r){o(this,t),this.type=e,this.length=r,this.text=""},e.CommentToken=function(){function t(e,r){o(this,t),this.type="comment",this.length=r||(e?e.length:0),this.text="",this.content=e}return t.prototype.toString=function(){return"\x3c!--"+this.content},t}(),e.CharsToken=function(){function t(e){o(this,t),this.type="chars",this.length=e,this.text=""}return t.prototype.toString=function(){return this.text},t}();var i=e.TagToken=function(){function t(e,r,n,i,a){o(this,t),this.type=e,this.length=n,this.text="",this.tagName=r,this.attrs=i,this.booleanAttrs=a,this.unary=!1,this.html5Unary=!1}return t.formatTag=function(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:null,r="&lt;"+t.tagName;for(var o in t.attrs)if(t.attrs.hasOwnProperty(o)){r+=" "+o;var i=t.attrs[o];void 0!==t.booleanAttrs&amp;&amp;void 0!==t.booleanAttrs[o]||(r+='="'+(0,n.escapeQuotes)(i)+'"')}return t.rest&amp;&amp;(r+=" "+t.rest),t.unary&amp;&amp;!t.html5Unary?r+="/&gt;":r+="&gt;",null!=e&amp;&amp;(r+=e+"&lt;/"+t.tagName+"&gt;"),r},t}();e.StartTagToken=function(){function t(e,r,n,i,a,s){o(this,t),this.type="startTag",this.length=r,this.text="",this.tagName=e,this.attrs=n,this.booleanAttrs=i,this.html5Unary=!1,this.unary=a,this.rest=s}return t.prototype.toString=function(){return i.formatTag(this)},t}(),e.AtomicTagToken=function(){function t(e,r,n,i,a){o(this,t),this.type="atomicTag",this.length=r,this.text="",this.tagName=e,this.attrs=n,this.booleanAttrs=i,this.unary=!1,this.html5Unary=!1,this.content=a}return t.prototype.toString=function(){return i.formatTag(this,this.content)},t}(),e.EndTagToken=function(){function t(e,r){o(this,t),this.type="endTag",this.length=r,this.text="",this.tagName=e}return t.prototype.toString=function(){return"&lt;/"+this.tagName+"&gt;"},t}()},function(t,e){"use strict";e.__esModule=!0,e.escapeQuotes=function(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:"";return t?t.replace(/([^"]*)"/g,(function(t,e){return/\\/.test(e)?e+'"':e+'\\"'})):e}},function(t,e){"use strict";e.__esModule=!0,e.default=function(t,e,r){var a=function(){var t=[];return t.last=function(){return this[this.length-1]},t.lastTagNameEq=function(t){var e=this.last();return e&amp;&amp;e.tagName&amp;&amp;e.tagName.toUpperCase()===t.toUpperCase()},t.containsTagName=function(t){for(var e,r=0;e=this[r];r++)if(e.tagName===t)return!0;return!1},t}(),s={startTag:function(r){var o=r.tagName;"TR"===o.toUpperCase()&amp;&amp;a.lastTagNameEq("TABLE")?(t.prepend("&lt;TBODY&gt;"),c()):e.selfCloseFix&amp;&amp;n.test(o)&amp;&amp;a.containsTagName(o)?a.lastTagNameEq(o)?i(t,a):(t.prepend("&lt;/"+r.tagName+"&gt;"),c()):r.unary||a.push(r)},endTag:function(n){a.last()?e.tagSoupFix&amp;&amp;!a.lastTagNameEq(n.tagName)?i(t,a):a.pop():e.tagSoupFix&amp;&amp;(r(),c())}};function c(){var e=function(t,e){var r=t.stream,n=o(e());return t.stream=r,n}(t,r);e&amp;&amp;s[e.type]&amp;&amp;s[e.type](e)}return function(){return c(),o(r())}};var r=/^(AREA|BASE|BASEFONT|BR|COL|FRAME|HR|IMG|INPUT|ISINDEX|LINK|META|PARAM|EMBED)$/i,n=/^(COLGROUP|DD|DT|LI|OPTIONS|P|TD|TFOOT|TH|THEAD|TR)$/i;function o(t){return t&amp;&amp;"startTag"===t.type&amp;&amp;(t.unary=r.test(t.tagName)||t.unary,t.html5Unary=!/\/&gt;$/.test(t.text)),t}function i(t,e){var r=e.pop();t.prepend("&lt;/"+r.tagName+"&gt;")}}])},t.exports=e()},563:(t,e,r)=&gt;{"use strict";const n=r(610),o=r(20),i=r(500),a=r(806),s=Symbol("encodeFragmentIdentifier");function c(t){if("string"!=typeof t||1!==t.length)throw new TypeError("arrayFormatSeparator must be single character string")}function u(t,e){return e.encode?e.strict?n(t):encodeURIComponent(t):t}function l(t,e){return e.decode?o(t):t}function f(t){return Array.isArray(t)?t.sort():"object"==typeof t?f(Object.keys(t)).sort(((t,e)=&gt;Number(t)-Number(e))).map((e=&gt;t[e])):t}function d(t){const e=t.indexOf("#");return-1!==e&amp;&amp;(t=t.slice(0,e)),t}function h(t){const e=(t=d(t)).indexOf("?");return-1===e?"":t.slice(e+1)}function p(t,e){return e.parseNumbers&amp;&amp;!Number.isNaN(Number(t))&amp;&amp;"string"==typeof t&amp;&amp;""!==t.trim()?t=Number(t):!e.parseBooleans||null===t||"true"!==t.toLowerCase()&amp;&amp;"false"!==t.toLowerCase()||(t="true"===t.toLowerCase()),t}function y(t,e){c((e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e)).arrayFormatSeparator);const r=function(t){let e;switch(t.arrayFormat){case"index":return(t,r,n)=&gt;{e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===n[t]&amp;&amp;(n[t]={}),n[t][e[1]]=r):n[t]=r};case"bracket":return(t,r,n)=&gt;{e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0!==n[t]?n[t]=[].concat(n[t],r):n[t]=[r]:n[t]=r};case"comma":case"separator":return(e,r,n)=&gt;{const o="string"==typeof r&amp;&amp;r.includes(t.arrayFormatSeparator),i="string"==typeof r&amp;&amp;!o&amp;&amp;l(r,t).includes(t.arrayFormatSeparator);r=i?l(r,t):r;const a=o||i?r.split(t.arrayFormatSeparator).map((e=&gt;l(e,t))):null===r?r:l(r,t);n[e]=a};case"bracket-separator":return(e,r,n)=&gt;{const o=/(\[\])$/.test(e);if(e=e.replace(/\[\]$/,""),!o)return void(n[e]=r?l(r,t):r);const i=null===r?[]:r.split(t.arrayFormatSeparator).map((e=&gt;l(e,t)));void 0!==n[e]?n[e]=[].concat(n[e],i):n[e]=i};default:return(t,e,r)=&gt;{void 0!==r[t]?r[t]=[].concat(r[t],e):r[t]=e}}}(e),n=Object.create(null);if("string"!=typeof t)return n;if(!(t=t.trim().replace(/^[?#&amp;]/,"")))return n;for(const o of t.split("&amp;")){if(""===o)continue;let[t,a]=i(e.decode?o.replace(/\+/g," "):o,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?a:l(a,e),r(l(t,e),a,n)}for(const t of Object.keys(n)){const r=n[t];if("object"==typeof r&amp;&amp;null!==r)for(const t of Object.keys(r))r[t]=p(r[t],e);else n[t]=p(r,e)}return!1===e.sort?n:(!0===e.sort?Object.keys(n).sort():Object.keys(n).sort(e.sort)).reduce(((t,e)=&gt;{const r=n[e];return Boolean(r)&amp;&amp;"object"==typeof r&amp;&amp;!Array.isArray(r)?t[e]=f(r):t[e]=r,t}),Object.create(null))}e.extract=h,e.parse=y,e.stringify=(t,e)=&gt;{if(!t)return"";c((e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e)).arrayFormatSeparator);const r=r=&gt;e.skipNull&amp;&amp;null==t[r]||e.skipEmptyString&amp;&amp;""===t[r],n=function(t){switch(t.arrayFormat){case"index":return e=&gt;(r,n)=&gt;{const o=r.length;return void 0===n||t.skipNull&amp;&amp;null===n||t.skipEmptyString&amp;&amp;""===n?r:null===n?[...r,[u(e,t),"[",o,"]"].join("")]:[...r,[u(e,t),"[",u(o,t),"]=",u(n,t)].join("")]};case"bracket":return e=&gt;(r,n)=&gt;void 0===n||t.skipNull&amp;&amp;null===n||t.skipEmptyString&amp;&amp;""===n?r:null===n?[...r,[u(e,t),"[]"].join("")]:[...r,[u(e,t),"[]=",u(n,t)].join("")];case"comma":case"separator":case"bracket-separator":{const e="bracket-separator"===t.arrayFormat?"[]=":"=";return r=&gt;(n,o)=&gt;void 0===o||t.skipNull&amp;&amp;null===o||t.skipEmptyString&amp;&amp;""===o?n:(o=null===o?"":o,0===n.length?[[u(r,t),e,u(o,t)].join("")]:[[n,u(o,t)].join(t.arrayFormatSeparator)])}default:return e=&gt;(r,n)=&gt;void 0===n||t.skipNull&amp;&amp;null===n||t.skipEmptyString&amp;&amp;""===n?r:null===n?[...r,u(e,t)]:[...r,[u(e,t),"=",u(n,t)].join("")]}}(e),o={};for(const e of Object.keys(t))r(e)||(o[e]=t[e]);const i=Object.keys(o);return!1!==e.sort&amp;&amp;i.sort(e.sort),i.map((r=&gt;{const o=t[r];return void 0===o?"":null===o?u(r,e):Array.isArray(o)?0===o.length&amp;&amp;"bracket-separator"===e.arrayFormat?u(r,e)+"[]":o.reduce(n(r),[]).join("&amp;"):u(r,e)+"="+u(o,e)})).filter((t=&gt;t.length&gt;0)).join("&amp;")},e.parseUrl=(t,e)=&gt;{e=Object.assign({decode:!0},e);const[r,n]=i(t,"#");return Object.assign({url:r.split("?")[0]||"",query:y(h(t),e)},e&amp;&amp;e.parseFragmentIdentifier&amp;&amp;n?{fragmentIdentifier:l(n,e)}:{})},e.stringifyUrl=(t,r)=&gt;{r=Object.assign({encode:!0,strict:!0,[s]:!0},r);const n=d(t.url).split("?")[0]||"",o=e.extract(t.url),i=e.parse(o,{sort:!1}),a=Object.assign(i,t.query);let c=e.stringify(a,r);c&amp;&amp;(c=`?${c}`);let l=function(t){let e="";const r=t.indexOf("#");return-1!==r&amp;&amp;(e=t.slice(r)),e}(t.url);return t.fragmentIdentifier&amp;&amp;(l=`#${r[s]?u(t.fragmentIdentifier,r):t.fragmentIdentifier}`),`${n}${c}${l}`},e.pick=(t,r,n)=&gt;{n=Object.assign({parseFragmentIdentifier:!0,[s]:!1},n);const{url:o,query:i,fragmentIdentifier:c}=e.parseUrl(t,n);return e.stringifyUrl({url:o,query:a(i,r),fragmentIdentifier:c},n)},e.exclude=(t,r,n)=&gt;{const o=Array.isArray(r)?t=&gt;!r.includes(t):(t,e)=&gt;!r(t,e);return e.pick(t,o,n)}},666:t=&gt;{var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&amp;&amp;e.prototype instanceof m?e:m,i=Object.create(o.prototype),a=new j(n||[]);return i._invoke=function(t,e,r){var n=f;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw i;return C()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&amp;&amp;r.abrupt("return",r.arg);n=h;var c=l(t,e,r);if("normal"===c.type){if(n=r.done?p:d,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&amp;&amp;(n=p,r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f="suspendedStart",d="suspendedYield",h="executing",p="completed",y={};function m(){}function g(){}function v(){}var b={};c(b,i,(function(){return this}));var w=Object.getPrototypeOf,k=w&amp;&amp;w(w(L([])));k&amp;&amp;k!==r&amp;&amp;n.call(k,i)&amp;&amp;(b=k);var S=v.prototype=m.prototype=Object.create(b);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function r(o,i,a,s){var c=l(t[o],t,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&amp;&amp;"object"==typeof f&amp;&amp;n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function O(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&amp;&amp;(r.method="return",r.arg=e,O(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&amp;&amp;(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function E(t){var e={tryLoc:t[0]};1 in t&amp;&amp;(e.catchLoc=t[1]),2 in t&amp;&amp;(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function L(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o&lt;t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:C}}function C(){return{value:e,done:!0}}return g.prototype=v,c(S,"constructor",v),c(v,"constructor",g),g.displayName=c(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&amp;&amp;t.constructor;return!!e&amp;&amp;(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,s,"GeneratorFunction")),t.prototype=Object.create(S),t},t.awrap=function(t){return{__await:t}},x(T.prototype),c(T.prototype,a,(function(){return this})),t.AsyncIterator=T,t.async=function(e,r,n,o,i){void 0===i&amp;&amp;(i=Promise);var a=new T(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(S),c(S,s,"Generator"),c(S,i,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=L,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var r in this)"t"===r.charAt(0)&amp;&amp;n.call(this,r)&amp;&amp;!isNaN(+r.slice(1))&amp;&amp;(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&amp;&amp;(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i&gt;=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc&lt;=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&amp;&amp;u){if(this.prev&lt;a.catchLoc)return o(a.catchLoc,!0);if(this.prev&lt;a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev&lt;a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev&lt;a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r&gt;=0;--r){var o=this.tryEntries[r];if(o.tryLoc&lt;=this.prev&amp;&amp;n.call(o,"finallyLoc")&amp;&amp;this.prev&lt;o.finallyLoc){var i=o;break}}i&amp;&amp;("break"===t||"continue"===t)&amp;&amp;i.tryLoc&lt;=e&amp;&amp;e&lt;=i.finallyLoc&amp;&amp;(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&amp;&amp;e&amp;&amp;(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e&gt;=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e&gt;=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:L(t),resultName:r,nextLoc:n},"next"===this.method&amp;&amp;(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},500:t=&gt;{"use strict";t.exports=(t,e)=&gt;{if("string"!=typeof t||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===e)return[t];const r=t.indexOf(e);return-1===r?[t]:[t.slice(0,r),t.slice(r+e.length)]}},610:t=&gt;{"use strict";t.exports=t=&gt;encodeURIComponent(t).replace(/[!'()*]/g,(t=&gt;`%${t.charCodeAt(0).toString(16).toUpperCase()}`))}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}r.n=t=&gt;{var e=t&amp;&amp;t.__esModule?()=&gt;t.default:()=&gt;t;return r.d(e,{a:e}),e},r.d=(t,e)=&gt;{for(var n in e)r.o(e,n)&amp;&amp;!r.o(t,n)&amp;&amp;Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=&gt;Object.prototype.hasOwnProperty.call(t,e),(()=&gt;{"use strict";r(666);var t=r(563);function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&amp;&amp;t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&amp;&amp;(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(t,e)||c(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&amp;&amp;(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e&lt;arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t,e){var r="undefined"!=typeof Symbol&amp;&amp;t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=c(t))||e&amp;&amp;t&amp;&amp;"number"==typeof t.length){r&amp;&amp;(t=r);var n=0,o=function(){};return{s:o,n:function(){return n&gt;=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function s(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&amp;&amp;null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||c(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){if(t){if("string"==typeof t)return u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&amp;&amp;t.constructor&amp;&amp;(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}function u(t,e){(null==e||e&gt;t.length)&amp;&amp;(e=t.length);for(var r=0,n=new Array(e);r&lt;e;r++)n[r]=t[r];return n}var l=function(e,r){var n=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:"POST",i=t.stringify(o({},r),{arrayFormat:"index"}),a={method:n,credentials:"same-origin",headers:new Headers({"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"})};return"GET"===n?e+="?"+i:a.body=i,fetch(e,a)},f=function(t){return{data:JSON.stringify(o({},t))}},d=function(t){return document.cookie.split("; ").reduce((function(e,r){var n=r.split("=");return n[0]===t?decodeURIComponent(n[1]):e}),null)},h=function(t,e,r){var n=new Date;e=e||"",r=r||365,n.setTime(n.getTime()+24*r*60*60*1e3),document.cookie=t+"="+encodeURIComponent(e)+"; expires="+n.toGMTString()+"; path="+wpgdprcFront.path};function p(t){return function(t){if(Array.isArray(t))return y(t)}(t)||function(t){if("undefined"!=typeof Symbol&amp;&amp;null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return y(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&amp;&amp;t.constructor&amp;&amp;(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(t,e){(null==e||e&gt;t.length)&amp;&amp;(e=t.length);for(var r=0,n=new Array(e);r&lt;e;r++)n[r]=t[r];return n}var m="data-animation",g=function(t){t.setAttribute("".concat(m,"-appearing"),""),setTimeout((function(){t.removeAttribute("".concat(m)),t.removeAttribute("".concat(m,"-appearing")),t.setAttribute("".concat(m,"-complete"),"")}),function(t){var e=getComputedStyle(t);return 1e3*(parseFloat(e.animationDuration)+parseFloat(e.animationDelay))}(t))};const v=function(){if("IntersectionObserver"in window)!function(t,e){var r=new IntersectionObserver((function(t){s(t).forEach((function(t){var n=t.isIntersecting,o=(t._,t.target);n&amp;&amp;(e(o),r.unobserve(o))}))}),{threshold:arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:[0]});if(t&amp;&amp;e){var n,o=a([].concat(t));try{for(o.s();!(n=o.n()).done;)for(var i=n.value,c=0,u=s(document.querySelectorAll(i));c&lt;u.length;c++){var l=u[c];r.observe(l)}}catch(t){o.e(t)}finally{o.f()}}}("[".concat(m,"]"),(function(t){g(t)}),[0]);else for(var t=0,e=p(document.querySelectorAll("[".concat(m,"]")));t&lt;e.length;t++){var r=e[t];g(r)}};function b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&amp;&amp;(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function w(t){for(var e=1;e&lt;arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?b(Object(r),!0).forEach((function(e){k(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function k(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function S(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}var x=function(){var t,e=(t=regeneratorRuntime.mark((function t(){var e,r,n,o,i,a,s,c=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=c.length&gt;0&amp;&amp;void 0!==c[0]?c[0]:"all",r=wpgdprcFront.prefix,n=wpgdprcFront.ajaxUrl,o=wpgdprcFront.ajaxNonce,i=wpgdprcFront.ajaxArg,a=wpgdprcFront.cookieName,s=!0,t.prev=7,t.next=10,l(n,w(k({action:r+"_consent_cookie"},i,o),f({checked:e})),"POST").then((function(t){return t.json()})).then((function(t){if(s=!1,void 0!==t.success&amp;&amp;t.success){var e=void 0!==t.message&amp;&amp;t.message;h(a,e),window.location.reload(!0)}else console.dir(t)}));case 10:t.next=16;break;case 12:t.prev=12,t.t0=t.catch(7),console.error(t.t0),s=!1;case 16:return t.abrupt("return",s);case 17:case"end":return t.stop()}}),t,null,[[7,12]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){S(i,n,o,a,s,"next",t)}function s(t){S(i,n,o,a,s,"throw",t)}a(void 0)}))});return function(){return e.apply(this,arguments)}}();function T(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}var O=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.setProperties(),this.init()}var e,r,n;return e=t,(r=[{key:"setProperties",value:function(){this.cookieName=wpgdprcFront.cookieName,this.consentBar=document.querySelector(".wpgdprc-consent-bar"),this.buttonAccept=document.querySelector(".wpgdprc-consent-bar .wpgdprc-button--accept"),this.isLoading=!1}},{key:"init",value:function(){this.consentBar&amp;&amp;(null===d(this.cookieName)?(document.querySelector("body").prepend(this.consentBar),this.consentBar.style.display="block",this.handleButtonAccept()):this.consentBar.style.display="none")}},{key:"handleButtonAccept",value:function(){var t=this;this.buttonAccept&amp;&amp;this.buttonAccept.addEventListener("click",(function(e){e.preventDefault(),t.isLoading||(t.isLoading=x("all"))}))}}])&amp;&amp;T(e.prototype,r),n&amp;&amp;T(e,n),t}();function E(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}function A(t){return function(t){if(Array.isArray(t))return j(t)}(t)||function(t){if("undefined"!=typeof Symbol&amp;&amp;Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return j(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&amp;&amp;t.constructor&amp;&amp;(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return j(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(t,e){(null==e||e&gt;t.length)&amp;&amp;(e=t.length);for(var r=0,n=new Array(e);r&lt;e;r++)n[r]=t[r];return n}var L,C,_,N,F,P=(L=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex^="-"])'],C=function(){function t(e){var r=e.targetModal,n=e.triggers,o=void 0===n?[]:n,i=e.onShow,a=void 0===i?function(){}:i,s=e.onClose,c=void 0===s?function(){}:s,u=e.openTrigger,l=void 0===u?"data-micromodal-trigger":u,f=e.closeTrigger,d=void 0===f?"data-micromodal-close":f,h=e.openClass,p=void 0===h?"is-open":h,y=e.disableScroll,m=void 0!==y&amp;&amp;y,g=e.disableFocus,v=void 0!==g&amp;&amp;g,b=e.awaitCloseAnimation,w=void 0!==b&amp;&amp;b,k=e.awaitOpenAnimation,S=void 0!==k&amp;&amp;k,x=e.debugMode,T=void 0!==x&amp;&amp;x;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.modal=document.getElementById(r),this.config={debugMode:T,disableScroll:m,openTrigger:l,closeTrigger:d,openClass:p,onShow:a,onClose:c,awaitCloseAnimation:w,awaitOpenAnimation:S,disableFocus:v},o.length&gt;0&amp;&amp;this.registerTriggers.apply(this,A(o)),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this)}var e,r,n;return e=t,r=[{key:"registerTriggers",value:function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n&lt;e;n++)r[n]=arguments[n];r.filter(Boolean).forEach((function(e){e.addEventListener("click",(function(e){return t.showModal(e)}))}))}},{key:"showModal",value:function(){var t=this,e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:null;if(this.activeElement=document.activeElement,this.modal.setAttribute("aria-hidden","false"),this.modal.classList.add(this.config.openClass),this.scrollBehaviour("disable"),this.addEventListeners(),this.config.awaitOpenAnimation){var r=function e(){t.modal.removeEventListener("animationend",e,!1),t.setFocusToFirstNode()};this.modal.addEventListener("animationend",r,!1)}else this.setFocusToFirstNode();this.config.onShow(this.modal,this.activeElement,e)}},{key:"closeModal",value:function(){var t=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:null,e=this.modal;if(this.modal.setAttribute("aria-hidden","true"),this.removeEventListeners(),this.scrollBehaviour("enable"),this.activeElement&amp;&amp;this.activeElement.focus&amp;&amp;this.activeElement.focus(),this.config.onClose(this.modal,this.activeElement,t),this.config.awaitCloseAnimation){var r=this.config.openClass;this.modal.addEventListener("animationend",(function t(){e.classList.remove(r),e.removeEventListener("animationend",t,!1)}),!1)}else e.classList.remove(this.config.openClass)}},{key:"closeModalById",value:function(t){this.modal=document.getElementById(t),this.modal&amp;&amp;this.closeModal()}},{key:"scrollBehaviour",value:function(t){if(this.config.disableScroll){var e=document.querySelector("body");switch(t){case"enable":Object.assign(e.style,{overflow:""});break;case"disable":Object.assign(e.style,{overflow:"hidden"})}}}},{key:"addEventListeners",value:function(){this.modal.addEventListener("touchstart",this.onClick),this.modal.addEventListener("click",this.onClick),document.addEventListener("keydown",this.onKeydown)}},{key:"removeEventListeners",value:function(){this.modal.removeEventListener("touchstart",this.onClick),this.modal.removeEventListener("click",this.onClick),document.removeEventListener("keydown",this.onKeydown)}},{key:"onClick",value:function(t){t.target.hasAttribute(this.config.closeTrigger)&amp;&amp;this.closeModal(t)}},{key:"onKeydown",value:function(t){27===t.keyCode&amp;&amp;this.closeModal(t),9===t.keyCode&amp;&amp;this.retainFocus(t)}},{key:"getFocusableNodes",value:function(){var t=this.modal.querySelectorAll(L);return Array.apply(void 0,A(t))}},{key:"setFocusToFirstNode",value:function(){var t=this;if(!this.config.disableFocus){var e=this.getFocusableNodes();if(0!==e.length){var r=e.filter((function(e){return!e.hasAttribute(t.config.closeTrigger)}));r.length&gt;0&amp;&amp;r[0].focus(),0===r.length&amp;&amp;e[0].focus()}}}},{key:"retainFocus",value:function(t){var e=this.getFocusableNodes();if(0!==e.length)if(e=e.filter((function(t){return null!==t.offsetParent})),this.modal.contains(document.activeElement)){var r=e.indexOf(document.activeElement);t.shiftKey&amp;&amp;0===r&amp;&amp;(e[e.length-1].focus(),t.preventDefault()),!t.shiftKey&amp;&amp;e.length&gt;0&amp;&amp;r===e.length-1&amp;&amp;(e[0].focus(),t.preventDefault())}else e[0].focus()}}],r&amp;&amp;E(e.prototype,r),n&amp;&amp;E(e,n),t}(),_=null,N=function(t){if(!document.getElementById(t))return console.warn("MicroModal: ❗Seems like you have missed %c'".concat(t,"'"),"background-color: #f8f9fa;color: #50596c;font-weight: bold;","ID somewhere in your code. Refer example below to resolve it."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'&lt;div class="modal" id="'.concat(t,'"&gt;&lt;/div&gt;')),!1},F=function(t,e){if(function(t){t.length&lt;=0&amp;&amp;(console.warn("MicroModal: ❗Please specify at least one %c'micromodal-trigger'","background-color: #f8f9fa;color: #50596c;font-weight: bold;","data attribute."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'&lt;a href="#" data-micromodal-trigger="my-modal"&gt;&lt;/a&gt;'))}(t),!e)return!0;for(var r in e)N(r);return!0},{init:function(t){var e=Object.assign({},{openTrigger:"data-micromodal-trigger"},t),r=A(document.querySelectorAll("[".concat(e.openTrigger,"]"))),n=function(t,e){var r=[];return t.forEach((function(t){var n=t.attributes[e].value;void 0===r[n]&amp;&amp;(r[n]=[]),r[n].push(t)})),r}(r,e.openTrigger);if(!0!==e.debugMode||!1!==F(r,n))for(var o in n){var i=n[o];e.targetModal=o,e.triggers=A(i),_=new C(e)}},show:function(t,e){var r=e||{};r.targetModal=t,!0===r.debugMode&amp;&amp;!1===N(t)||(_&amp;&amp;_.removeEventListeners(),(_=new C(r)).showModal())},close:function(t){t?_.closeModalById(t):_.closeModal()}});window.MicroModal=P;const I=P;function M(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}var q=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),void 0!==I&amp;&amp;(this.setProperties(),this.init())}var e,r,n;return e=t,(r=[{key:"setProperties",value:function(){this.isLoading=!1,this.modalKey="wpgdprc-consent-modal",this.modalId="#wpgdprc-consent-modal",this.consentModal=document.querySelector(this.modalId),this.navigationButtonClass=".wpgdprc-consent-modal__navigation-button",this.navigationButtonActiveClass=".wpgdprc-consent-modal__navigation-button--active",this.navigationButtonActiveKey="wpgdprc-consent-modal__navigation-button--active",this.descriptionClass=".wpgdprc-consent-modal__description",this.descriptionActiveClass=".wpgdprc-consent-modal__description--active",this.settingsLinks=document.querySelectorAll(".wpgdprc-consents-settings-link, .wpgdprc-processor-settings-link")}},{key:"init",value:function(){if(this.consentModal){var t,e,r,n,o=document.querySelector("[data-micromodal-trigger="+this.modalKey+"]");t=this.consentModal,e=t.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])'),r=e[0],n=e[e.length-1],t.addEventListener("keydown",(function(t){("Tab"===t.key||9===t.keyCode)&amp;&amp;(t.shiftKey?document.activeElement===r&amp;&amp;(n.focus(),t.preventDefault()):document.activeElement===n&amp;&amp;(r.focus(),t.preventDefault()))})),this.initModal(o),this.triggerModal(),this.tabSwitcher(this.consentModal),this.modalListener(this.consentModal)}}},{key:"initModal",value:function(t){var e=this;I.init({disableScroll:!0,disableFocus:!0,onShow:function(){t&amp;&amp;t.setAttribute("aria-expanded","true")},onClose:function(r){var n=r.querySelectorAll(e.descriptionClass),o=r.querySelectorAll(e.navigationButtonClass),i=r.querySelectorAll('input[type="checkbox"]'),a=!1;n.forEach((function(t){t.classList.remove(e.descriptionActiveClass),a||(a=!0,t.classList.add(e.descriptionActiveClass))})),a=!1,o.forEach((function(t){t.classList.remove(e.navigationButtonActiveClass),a||(a=!0,t.classList.add(e.navigationButtonActiveClass))})),i.forEach((function(t){t.checked=!1})),t&amp;&amp;t.setAttribute("aria-expanded","false")}})}},{key:"triggerModal",value:function(){var t=this;this.settingsLinks&amp;&amp;this.settingsLinks.forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault(),I.show(t.modalKey,{})}))}))}},{key:"tabSwitcher",value:function(t){var e=this,r=t.querySelectorAll(".wpgdprc-consent-modal__navigation button");if(r){var n=t.querySelectorAll(".wpgdprc-consent-modal__description");r.forEach((function(o){o.addEventListener("click",(function(i){i.preventDefault();var a=t.querySelector('.wpgdprc-consent-modal__description[data-target="'+o.getAttribute("data-target")+'"]');a&amp;&amp;(r.forEach((function(t){t.classList.remove(e.navigationButtonActiveKey)})),o.classList.add(e.navigationButtonActiveKey),n.forEach((function(t){t.style.display="none"})),a.style.display="flex")}))}))}}},{key:"modalListener",value:function(t){var e=t.querySelector(".wpgdprc-button--secondary");if(null!=e){var r=this.isLoading;e.addEventListener("click",(function(e){if(e.preventDefault(),!r){var n=t.querySelectorAll('input[type="checkbox"]'),o=[];if(n.length&gt;0)for(var i=0;i&lt;n.length;i++){var a=n[i],s=a.value;!0!==a.checked||isNaN(s)||o.push(parseInt(s))}r=x(o)}})),this.isLoading=r}}}])&amp;&amp;M(e.prototype,r),n&amp;&amp;M(e,n),t}(),R=r(727),D=r.n(R);function B(t){return null!=t}function U(t){return"function"==typeof t}function $(t,e,r){for(var n in t)t.hasOwnProperty(n)&amp;&amp;e.call(r,n,t[n])}function H(t){try{return Array.prototype.slice.call(t)}catch(r){var e=[];return function(t,e,r){var n,o=t&amp;&amp;t.length||0;for(n=0;n&lt;o;n++)e.call(r,t[n],n)}(t,(function(t){e.push(t)})),e}}function K(t,e){return!(!t||"startTag"!==t.type&amp;&amp;"atomicTag"!==t.type||!("tagName"in t))&amp;&amp;!!~t.tagName.toLowerCase().indexOf(e)}function G(t){return K(t,"script")}function W(t){return K(t,"style")}function Q(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function z(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}var Y="data-ps-",Z="ps-style",J="ps-script";function V(t,e){var r=Y+e,n=t.getAttribute(r);return B(n)?String(n):n}function X(t,e){var r=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:null,n=Y+e;B(r)&amp;&amp;""!==r?t.setAttribute(n,r):t.removeAttribute(n)}var tt=function(){function t(e){var r=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{};Q(this,t),this.root=e,this.options=r,this.doc=e.ownerDocument,this.win=this.doc.defaultView||this.doc.parentWindow,this.parser=new(D())("",{autoFix:r.autoFix}),this.actuals=[e],this.proxyHistory="",this.proxyRoot=this.doc.createElement(e.nodeName),this.scriptStack=[],this.writeQueue=[],X(this.proxyRoot,"proxyof",0)}var e,r,n;return e=t,r=[{key:"write",value:function(){var t;for((t=this.writeQueue).push.apply(t,arguments);!this.deferredRemote&amp;&amp;this.writeQueue.length;){var e=this.writeQueue.shift();U(e)?this._callFunction(e):this._writeImpl(e)}}},{key:"_callFunction",value:function(t){var e={type:"function",value:t.name||t.toString()};this._onScriptStart(e),t.call(this.win,this.doc),this._onScriptDone(e)}},{key:"_writeImpl",value:function(t){var e,r,n;this.parser.append(t);for(var o=[];(e=this.parser.readToken())&amp;&amp;!(r=G(e))&amp;&amp;!(n=W(e));)(e=this.options.beforeWriteToken(e))&amp;&amp;o.push(e);o.length&gt;0&amp;&amp;this._writeStaticTokens(o),r&amp;&amp;this._handleScriptToken(e),n&amp;&amp;this._handleStyleToken(e)}},{key:"_writeStaticTokens",value:function(t){var e=this._buildChunk(t);return e.actual?(e.html=this.proxyHistory+e.actual,this.proxyHistory+=e.proxy,this.proxyRoot.innerHTML=e.html,this._walkChunk(),e):null}},{key:"_buildChunk",value:function(t){for(var e=this.actuals.length,r=[],n=[],o=[],i=t.length,a=0;a&lt;i;a++){var s=t[a],c=s.toString();if(r.push(c),s.attrs){if(!/^noscript$/i.test(s.tagName)){var u=e++;n.push(c.replace(/(\/?&gt;)/," ".concat(Y,"id=").concat(u," $1"))),s.attrs.id!==J&amp;&amp;s.attrs.id!==Z&amp;&amp;o.push("atomicTag"===s.type?"":"&lt;".concat(s.tagName," ").concat(Y,"proxyof=").concat(u)+(s.unary?" /&gt;":"&gt;"))}}else n.push(c),o.push("endTag"===s.type?c:"")}return{tokens:t,raw:r.join(""),actual:n.join(""),proxy:o.join("")}}},{key:"_walkChunk",value:function(){for(var t,e=[this.proxyRoot];B(t=e.shift());){var r=1===t.nodeType;if(!r||!V(t,"proxyof")){r&amp;&amp;(this.actuals[V(t,"id")]=t,X(t,"id"));var n=t.parentNode&amp;&amp;V(t.parentNode,"proxyof");n&amp;&amp;this.actuals[n].appendChild(t)}e.unshift.apply(e,H(t.childNodes))}}},{key:"_handleScriptToken",value:function(t){var e=this,r=this.parser.clear();r&amp;&amp;this.writeQueue.unshift(r),t.src=t.attrs.src||t.attrs.SRC,(t=this.options.beforeWriteToken(t))&amp;&amp;(t.src&amp;&amp;this.scriptStack.length?this.deferredRemote=t:this._onScriptStart(t),this._writeScriptToken(t,(function(){e._onScriptDone(t)})))}},{key:"_handleStyleToken",value:function(t){var e=this.parser.clear();e&amp;&amp;this.writeQueue.unshift(e),t.type=t.attrs.type||t.attrs.TYPE||"text/css",(t=this.options.beforeWriteToken(t))&amp;&amp;this._writeStyleToken(t),e&amp;&amp;this.write()}},{key:"_writeStyleToken",value:function(t){var e=this._buildStyle(t);this._insertCursor(e,Z),t.content&amp;&amp;(e.styleSheet&amp;&amp;!e.sheet?e.styleSheet.cssText=t.content:e.appendChild(this.doc.createTextNode(t.content)))}},{key:"_buildStyle",value:function(t){var e=this.doc.createElement(t.tagName);return e.setAttribute("type",t.type),$(t.attrs,(function(t,r){e.setAttribute(t,r)})),e}},{key:"_insertCursor",value:function(t,e){this._writeImpl('&lt;span id="'.concat(e,'"/&gt;'));var r=this.doc.getElementById(e);r&amp;&amp;r.parentNode.replaceChild(t,r)}},{key:"_onScriptStart",value:function(t){t.outerWrites=this.writeQueue,this.writeQueue=[],this.scriptStack.unshift(t)}},{key:"_onScriptDone",value:function(t){t===this.scriptStack[0]?(this.scriptStack.shift(),this.write.apply(this,t.outerWrites),!this.scriptStack.length&amp;&amp;this.deferredRemote&amp;&amp;(this._onScriptStart(this.deferredRemote),this.deferredRemote=null)):this.options.error({msg:"Bad script nesting or script finished twice"})}},{key:"_writeScriptToken",value:function(t,e){var r=this._buildScript(t),n=this._shouldRelease(r),o=this.options.afterAsync;t.src&amp;&amp;(r.src=t.src,this._scriptLoadHandler(r,n?o:function(){e(),o()}));try{this._insertCursor(r,J),r.src&amp;&amp;!n||e()}catch(t){this.options.error(t),e()}}},{key:"_buildScript",value:function(t){var e,r,n=this.doc.createElement(t.tagName);return $(t.attrs,(function(t,e){n.setAttribute(t,e)})),t.content&amp;&amp;G(t)&amp;&amp;(n.text=t.content),t.content&amp;&amp;function(t){return K(t,"noscript")}(t)&amp;&amp;(e=t.content,(r=document.createElement("template")).innerHTML=e,r.content.childNodes).forEach((function(t){n.appendChild(t)})),n}},{key:"_scriptLoadHandler",value:function(t,e){function r(){t=t.onload=t.onreadystatechange=t.onerror=null}var n=this.options.error;function o(){r(),null!=e&amp;&amp;e(),e=null}function i(t){r(),n(t),null!=e&amp;&amp;e(),e=null}function a(t,e){var r=t["on".concat(e)];null!=r&amp;&amp;(t["_on".concat(e)]=r)}a(t,"load"),a(t,"error"),Object.assign(t,{onload:function(){if(t._onload)try{t._onload.apply(this,Array.prototype.slice.call(arguments,0))}catch(e){i({msg:"onload handler failed ".concat(e," @ ").concat(t.src)})}o()},onerror:function(){if(t._onerror)try{t._onerror.apply(this,Array.prototype.slice.call(arguments,0))}catch(e){return void i({msg:"onerror handler failed ".concat(e," @ ").concat(t.src)})}i({msg:"remote script failed ".concat(t.src)})},onreadystatechange:function(){/^(loaded|complete)$/.test(t.readyState)&amp;&amp;o()}})}},{key:"_shouldRelease",value:function(t){return!/^script$/i.test(t.nodeName)||!!(this.options.releaseAsync&amp;&amp;t.src&amp;&amp;t.hasAttribute("async"))}}],r&amp;&amp;z(e.prototype,r),n&amp;&amp;z(e,n),t}();function et(t){return function(t){if(Array.isArray(t))return rt(t)}(t)||function(t){if("undefined"!=typeof Symbol&amp;&amp;null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return rt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&amp;&amp;t.constructor&amp;&amp;(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rt(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rt(t,e){(null==e||e&gt;t.length)&amp;&amp;(e=t.length);for(var r=0,n=new Array(e);r&lt;e;r++)n[r]=t[r];return n}function nt(){}var ot={afterAsync:nt,afterDequeue:nt,afterStreamStart:nt,afterWrite:nt,autoFix:!0,beforeEnqueue:nt,beforeWriteToken:function(t){return t},beforeWrite:function(t){return t},done:nt,error:function(t){throw new Error(t.msg)},releaseAsync:!1},it=0,at=[],st=null;function ct(){var t,e=at.shift();if(e){var r=(t=e)[t.length-1];r.afterDequeue(),e.stream=ut.apply(void 0,et(e)),r.afterStreamStart()}}function ut(t,e,r){(st=new tt(t,r)).id=it++,st.name=r.name||st.id,lt.streams[st.name]=st;var n=t.ownerDocument,o={close:n.close,open:n.open,write:n.write,writeln:n.writeln};function i(t){t=r.beforeWrite(t),st.write(t),r.afterWrite(t)}Object.assign(n,{close:nt,open:nt,write:function(){for(var t=arguments.length,e=new Array(t),r=0;r&lt;t;r++)e[r]=arguments[r];return i(e.join(""))},writeln:function(){for(var t=arguments.length,e=new Array(t),r=0;r&lt;t;r++)e[r]=arguments[r];return i(e.join("")+"\n")}});var a=st.win.onerror||nt;return st.win.onerror=function(t,e,n){r.error({msg:"".concat(t," - ").concat(e,": ").concat(n)}),a.apply(st.win,[t,e,n])},st.write(e,(function(){Object.assign(n,o),st.win.onerror=a,r.done(),st=null,ct()})),st}function lt(t,e,r){if(U(r))r={done:r};else if("clear"===r)return at=[],st=null,void(it=0);r=function(t,e){return t=t||{},$(e,(function(e,r){B(t[e])||(t[e]=r)})),t}(r,ot);var n=[t=/^#/.test(t)?window.document.getElementById(t.substr(1)):t.jquery?t[0]:t,e,r];return t.postscribe={cancel:function(){n.stream?n.stream.abort():n[1]=nt}},r.beforeEnqueue(n),at.push(n),st||ct(),t.postscribe}function ft(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&amp;&amp;t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&amp;&amp;(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return dt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&amp;&amp;t.constructor&amp;&amp;(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return dt(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dt(t,e){(null==e||e&gt;t.length)&amp;&amp;(e=t.length);for(var r=0,n=new Array(e);r&lt;e;r++)n[r]=t[r];return n}function ht(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}Object.assign(lt,{streams:{},queue:at,WriteStream:tt});var pt=function(){function t(){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n,o=void 0!==wpgdprcFront.consents?wpgdprcFront.consents:[],i=ft((n=function(t){return t.required},o.reduce((function(t,r){var o=e(t,2),i=o[0],a=o[1];return n(r)?[[].concat(s(i),[r]),a]:[i,[].concat(s(a),[r])]}),[[],[]])),2),a=i[0],c=i[1];a.forEach((function(t){return r.loadConsent(t)}));var u=d(wpgdprcFront.cookieName);if(null!=u){var l=this._parseConsentCookie(u);c.forEach((function(t){(!0===l||void 0!==l[t.ID]&amp;&amp;"declined"!==l[t.ID])&amp;&amp;r.loadConsent(t)}))}}var r,n,o;return r=t,(n=[{key:"_parseConsentCookie",value:function(t){if("accept"===t)return!0;var e=t.split(",");return Object.fromEntries(e.map((function(t){return t.split("_")})))}},{key:"getTargetByPlacement",value:function(t){var e;switch(t){case"head":e=document.head;break;case"body":if(null===(e=document.querySelector("#wpgdprc-consent-body"))){var r=document.createElement("div");r.id="wpgdprc-consent-body",document.body.prepend(r),e="#"+r.id}break;case"footer":e=document.body}return e}},{key:"loadConsent",value:function(t){var e=this.getTargetByPlacement(t.placement);null!==e&amp;&amp;lt(e,t.content)}}])&amp;&amp;ht(r.prototype,n),o&amp;&amp;ht(r,o),t}();function yt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&amp;&amp;(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function mt(t){for(var e=1;e&lt;arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yt(Object(r),!0).forEach((function(e){gt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function gt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vt(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}function bt(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}var wt=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.setProperties(),this.init()}var e,r,n,o,i;return e=t,r=[{key:"setProperties",value:function(){this.prefix=wpgdprcFront.pluginPrefix,this.ajaxUrl=wpgdprcFront.ajaxUrl,this.ajaxNonce=wpgdprcFront.ajaxNonce,this.ajaxArg=wpgdprcFront.ajaxArg,this.successClassName="wpgdprc-message--success",this.errorClassName="wpgdprc-message--error",this.formAction=this.prefix+"_process_action",this.form=document.querySelector(".wpgdprc-form--access-request"),this.isLoading=!1,this.isLoadingClassName="is-loading"}},{key:"init",value:function(){this.handleForm()}},{key:"handleForm",value:function(){var t=this;this.form&amp;&amp;this.form.addEventListener("submit",(function(e){e.preventDefault(),t.accessRequest()}))}},{key:"setIsLoading",value:function(){var t=!(arguments.length&gt;0&amp;&amp;void 0!==arguments[0])||arguments[0];this.isLoading=t,t?document.body.classList.add(this.isLoadingClassName):document.body.classList.remove(this.isLoadingClassName)}},{key:"accessRequest",value:(o=regeneratorRuntime.mark((function t(){var e,r,n,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isLoading){t.next=2;break}return t.abrupt("return");case 2:return this.setIsLoading(),e=this.form.querySelector(".wpgdprc-message"),r=this.form.querySelector("#wpgdprc-form__consent"),n=this.form.querySelector("#wpgdprc-form__email"),e.style.display="none",e.classList.remove(this.successClassName,this.errorClassName),e.innerHTML="",t.prev=9,t.next=12,l(this.ajaxUrl,mt(gt({action:this.formAction},this.ajaxArg,this.ajaxNonce),f({type:"access_request",email:n.value,consent:r.checked})),"POST").then((function(t){return t.json()})).then((function(t){o.setIsLoading(!1);var r=void 0!==t.message&amp;&amp;t.message;r&amp;&amp;(o.form.reset(),n.blur(),e.innerHTML=r,e.classList.add(o.successClassName),e.removeAttribute("style"));var i=void 0!==t.error&amp;&amp;t.error;i&amp;&amp;(n.focus(),e.innerHTML=i,e.classList.add(o.errorClassName),e.removeAttribute("style"))}));case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(9),console.error(t.t0),this.setIsLoading(!1);case 18:case"end":return t.stop()}}),t,this,[[9,14]])})),i=function(){var t=this,e=arguments;return new Promise((function(r,n){var i=o.apply(t,e);function a(t){vt(i,r,n,a,s,"next",t)}function s(t){vt(i,r,n,a,s,"throw",t)}a(void 0)}))},function(){return i.apply(this,arguments)})}],r&amp;&amp;bt(e.prototype,r),n&amp;&amp;bt(e,n),t}();function kt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&amp;&amp;(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function St(t){for(var e=1;e&lt;arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?kt(Object(r),!0).forEach((function(e){xt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function xt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Tt(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}function Ot(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Tt(i,n,o,a,s,"next",t)}function s(t){Tt(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Et(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}var At,jt=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.setProperties(),this.init()}var e,r,n,o;return e=t,r=[{key:"setProperties",value:function(){this.prefix=wpgdprcFront.pluginPrefix,this.ajaxUrl=wpgdprcFront.ajaxUrl,this.ajaxNonce=wpgdprcFront.ajaxNonce,this.ajaxArg=wpgdprcFront.ajaxArg,this.token=wpgdprcFront.token,this.forms=document.querySelectorAll(".wpgdprc-form--delete-request"),this.statusErrorClassName="wpgdprc-status--error",this.statusProcessingClassName="wpgdprc-status--processing",this.statusRemovedClassName="wpgdprc-status--removed",this.messageErrorClassName="wpgdprc-message--error",this.isLoading=!1,this.isLoadingClassName="is-loading",this.isHiddenClassName="is-hidden"}},{key:"init",value:function(){this.handleForm()}},{key:"handleForm",value:function(){var t=this;this.forms&amp;&amp;this.forms.forEach((function(e){t.handleFormSubmit(e),t.handleSelectAllCheckboxes(e)}))}},{key:"handleSelectAllCheckboxes",value:function(t){var e=t.querySelector(".wpgdprc-select-all");if(t&amp;&amp;e){var r=t.querySelectorAll(".wpgdprc-checkbox");r.forEach((function(t){t.addEventListener("change",(function(n){!1!==t.checked?(e.checked=!0,r.forEach((function(t){!1===t.checked&amp;&amp;(e.checked=!1)}))):e.checked=!1}))})),e.addEventListener("change",(function(t){var e=t.target.checked;r.forEach((function(t){t.checked=e}))}))}}},{key:"handleFormSubmit",value:function(t){var e=this;t&amp;&amp;t.addEventListener("submit",(function(r){r.preventDefault();var n=t.querySelector(".wpgdprc-select-all"),o=function(t){var e=[];return t.length?(t.forEach((function(t){var r=parseInt(t.value);t.checked&amp;&amp;r&gt;0&amp;&amp;e.push(r)})),e):e}(t.querySelectorAll(".wpgdprc-checkbox"));n.checked=!1,e.deleteRequest(t,o)}))}},{key:"setIsLoading",value:function(){var t=!(arguments.length&gt;0&amp;&amp;void 0!==arguments[0])||arguments[0];this.isLoading=t,t?document.body.classList.add(this.isLoadingClassName):document.body.classList.remove(this.isLoadingClassName)}},{key:"deleteRequest",value:(o=Ot(regeneratorRuntime.mark((function t(e){var r,n,o,i,a,s,c=this,u=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=u.length&gt;1&amp;&amp;void 0!==u[1]?u[1]:[],n=u.length&gt;2&amp;&amp;void 0!==u[2]?u[2]:0,e&amp;&amp;r){t.next=4;break}return t.abrupt("return");case 4:if(o=e.getAttribute("data-wpgdprc"),i=e.querySelector(".wpgdprc-message"),(a=r.slice(0,1)).length){t.next=9;break}return t.abrupt("return");case 9:(s=e.querySelector('tr[data-id="'+a[0]+'"]')).classList.remove(this.statusErrorClassName),s.classList.add(this.statusProcessingClassName),i.classList.add(this.isHiddenClassName),i.classList.remove(this.messageErrorClassName),i.innerHTML="",this.setIsLoading(),setTimeout(Ot(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,l(c.ajaxUrl,St(xt({action:c.prefix+"_process_action"},c.ajaxArg,c.ajaxNonce),f({type:"delete_request",token:c.token,settings:JSON.parse(o),value:a[0]})),"POST").then((function(t){return t.json()})).then((function(t){c.setIsLoading(!1);var n=void 0!==t.message&amp;&amp;t.message,o=void 0!==t.error&amp;&amp;t.error;n&amp;&amp;(r.splice(0,1),s.querySelector('input[type="checkbox"]').remove(),s.classList.add(c.statusRemovedClassName),i.innerHTML=n,i.classList.remove(c.isHiddenClassName),r.length&amp;&amp;c.deleteRequest(e,r,500)),o&amp;&amp;(s.classList.add(c.statusErrorClassName),i.innerHTML=o,i.classList.add(c.messageErrorClassName),i.classList.remove(c.isHiddenClassName))}));case 3:t.next=9;break;case 5:t.prev=5,t.t0=t.catch(0),console.error(t.t0),c.setIsLoading(!1);case 9:case"end":return t.stop()}}),t,null,[[0,5]])}))),n||0);case 17:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})}],r&amp;&amp;Et(e.prototype,r),n&amp;&amp;Et(e,n),t}();At=function(){var t=void 0!==wpgdprcFront.consents?wpgdprcFront.consents:[];v(),Array.isArray(t)&amp;&amp;t.length&gt;0&amp;&amp;(new O,new q,new pt),new wt,new jt},document.addEventListener("DOMContentLoaded",(function(){At()}))})()})();</pre></body></html>