const CLI_ACCEPT_COOKIE_NAME=(window.CLI_ACCEPT_COOKIE_NAME!==undefined ? window.CLI_ACCEPT_COOKIE_NAME:'viewed_cookie_policy');
const CLI_PREFERENCE_COOKIE=(window.CLI_PREFERENCE_COOKIE!==undefined ? window.CLI_PREFERENCE_COOKIE:'CookieLawInfoConsent');
const CLI_ACCEPT_COOKIE_EXPIRE=(window.CLI_ACCEPT_COOKIE_EXPIRE!==undefined ? window.CLI_ACCEPT_COOKIE_EXPIRE:365);
let CLI_COOKIEBAR_AS_POPUP=(window.CLI_COOKIEBAR_AS_POPUP!==undefined ? window.CLI_COOKIEBAR_AS_POPUP:false);
const CLI_Cookie={
set: function (name, value, days){
var secure="";
if(true===Boolean(Cli_Data.secure_cookies)){
secure=";secure";
}
if(days){
var date=new Date();
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
var expires="; expires=" + date.toGMTString();
}else{
var expires="";
}
document.cookie=name + "=" + value + secure + expires + "; path=/";
if(days < 1){
let host_name=window.location.hostname;
document.cookie=name + "=" + value + expires + "; path=/; domain=." + host_name + ";";
if(host_name.indexOf("www")!=1){
var host_name_withoutwww=host_name.replace('www', '');
document.cookie=name + "=" + value + secure + expires + "; path=/; domain=" + host_name_withoutwww + ";";
}
host_name=host_name.substring(host_name.lastIndexOf(".", host_name.lastIndexOf(".") - 1));
document.cookie=name + "=" + value + secure + expires + "; path=/; domain=" + host_name + ";";
}},
read: function (name){
var nameEQ=name + "=";
var ca=document.cookie.split(';');
for (var i=0; i < ca.length; i++){
var c=ca[i];
while (c.charAt(0)==' '){
c=c.substring(1, c.length);
}
if(c.indexOf(nameEQ)===0){
return c.substring(nameEQ.length, c.length);
}}
return null;
},
erase: function (name){
this.set(name, "", -10);
},
exists: function (name){
return (this.read(name)!==null);
},
getallcookies: function (){
var pairs=document.cookie.split(";");
var cookieslist={};
for (var i=0; i < pairs.length; i++){
var pair=pairs[i].split("=");
cookieslist[(pair[0] + '').trim()]=unescape(pair[1]);
}
return cookieslist;
}}
var CLI =
{
bar_config: {},
showagain_config: {},
allowedCategories: [],
js_blocking_enabled: false,
set: function (args){
if(typeof JSON.parse!=="function"){
console.log("CookieLawInfo requires JSON.parse but your browser doesn't support it");
return;
}
if(typeof args.settings!=='object'){
this.settings=JSON.parse(args.settings);
}else{
this.settings=args.settings;
}
this.js_blocking_enabled=Boolean(Cli_Data.js_blocking);
this.settings=args.settings;
this.bar_elm=jQuery(this.settings.notify_div_id);
this.showagain_elm=jQuery(this.settings.showagain_div_id);
this.settingsModal=jQuery('#cliSettingsPopup');
this.main_button=jQuery('.cli-plugin-main-button');
this.main_link=jQuery('.cli-plugin-main-link');
this.reject_link=jQuery('.cookie_action_close_header_reject');
this.delete_link=jQuery(".cookielawinfo-cookie-delete");
this.settings_button=jQuery('.cli_settings_button');
this.accept_all_button=jQuery('.wt-cli-accept-all-btn');
if(this.settings.cookie_bar_as=='popup'){
CLI_COOKIEBAR_AS_POPUP=true;
}
this.mayBeSetPreferenceCookie();
this.addStyleAttribute();
this.configBar();
this.toggleBar();
this.attachDelete();
this.attachEvents();
this.configButtons();
this.reviewConsent();
var cli_hidebar_on_readmore=this.hideBarInReadMoreLink();
if(Boolean(this.settings.scroll_close)===true&&cli_hidebar_on_readmore===false){
window.addEventListener("scroll", CLI.closeOnScroll, false);
}},
hideBarInReadMoreLink: function (){
if(Boolean(CLI.settings.button_2_hidebar)===true&&this.main_link.length > 0&&this.main_link.hasClass('cli-minimize-bar')){
this.hideHeader();
cliBlocker.cookieBar(false);
this.showagain_elm.slideDown(this.settings.animate_speed_show);
return true;
}
return false;
},
attachEvents: function (){
jQuery(document).on('click',
'.wt-cli-privacy-btn',
function (e){
e.preventDefault();
CLI.accept_close();
CLI.settingsPopUpClose();
}
);
jQuery('.wt-cli-accept-btn').on("click",
function (e){
e.preventDefault();
CLI.acceptRejectCookies(jQuery(this));
});
jQuery('.wt-cli-accept-all-btn').on("click",
function (e){
e.preventDefault();
CLI.acceptRejectCookies(jQuery(this), 'accept');
});
jQuery('.wt-cli-reject-btn').on("click",
function (e){
e.preventDefault();
CLI.acceptRejectCookies(jQuery(this), 'reject');
});
this.settingsPopUp();
this.settingsTabbedAccordion();
this.toggleUserPreferenceCheckBox();
this.hideCookieBarOnClose();
this.cookieLawInfoRunCallBacks();
},
acceptRejectCookies(element, action='custom'){
var open_link=element[0].hasAttribute("href")&&element.attr("href")!='#' ? true:false;
var new_window=false;
if(action=='accept'){
this.enableAllCookies();
this.accept_close();
new_window=CLI.settings.button_7_new_win ? true:false;
}else if(action=='reject'){
this.disableAllCookies();
this.reject_close();
new_window=Boolean(this.settings.button_3_new_win) ? true:false;
}else{
this.accept_close();
new_window=Boolean(this.settings.button_1_new_win) ? true:false;
}
if(open_link){
if(new_window){
window.open(element.attr("href"), '_blank');
}else{
window.location.href=element.attr("href");
}}
},
toggleUserPreferenceCheckBox: function (){
jQuery('.cli-user-preference-checkbox').each(function (){
const categoryCookie='cookielawinfo-' + jQuery(this).attr('data-id');
const categoryCookieValue=CLI_Cookie.read(categoryCookie);
if(categoryCookieValue==null){
if(jQuery(this).is(':checked')){
CLI_Cookie.set(categoryCookie, 'yes', CLI_ACCEPT_COOKIE_EXPIRE);
}else{
CLI_Cookie.set(categoryCookie, 'no', CLI_ACCEPT_COOKIE_EXPIRE);
}}else{
if(categoryCookieValue=="yes"){
jQuery(this).prop("checked", true);
}else{
jQuery(this).prop("checked", false);
}}
}
);
jQuery('.cli-user-preference-checkbox').on("click",
function (e){
var dataID=jQuery(this).attr('data-id');
var currentToggleElm=jQuery('.cli-user-preference-checkbox[data-id=' + dataID + ']');
if(jQuery(this).is(':checked')){
CLI_Cookie.set('cookielawinfo-' + dataID, 'yes', CLI_ACCEPT_COOKIE_EXPIRE);
currentToggleElm.prop('checked', true);
}else{
CLI_Cookie.set('cookielawinfo-' + dataID, 'no', CLI_ACCEPT_COOKIE_EXPIRE);
currentToggleElm.prop('checked', false);
}
CLI.checkCategories();
CLI.generateConsent();
}
);
},
settingsPopUp: function (){
jQuery(document).on('click',
'.cli_settings_button',
function (e){
e.preventDefault();
CLI.settingsModal.addClass("cli-show").css({ 'opacity': 0 }).animate({ 'opacity': 1 });
CLI.settingsModal.removeClass('cli-blowup cli-out').addClass("cli-blowup");
jQuery('body').addClass("cli-modal-open");
jQuery(".cli-settings-overlay").addClass("cli-show");
jQuery("#cookie-law-info-bar").css({ 'opacity': .1 });
if(!jQuery('.cli-settings-mobile').is(':visible')){
CLI.settingsModal.find('.cli-nav-link:eq(0)').trigger("click");
}}
);
jQuery('#cliModalClose').on("click",
function (e){
CLI.settingsPopUpClose();
}
);
CLI.settingsModal.on("click",
function (e){
if(!(document.getElementsByClassName('cli-modal-dialog')[0].contains(e.target))){
CLI.settingsPopUpClose();
}}
);
jQuery('.cli_enable_all_btn').on("click",
function (e){
var cli_toggle_btn=jQuery(this);
var enable_text=cli_toggle_btn.attr('data-enable-text');
var disable_text=cli_toggle_btn.attr('data-disable-text');
if(cli_toggle_btn.hasClass('cli-enabled')){
CLI.disableAllCookies();
cli_toggle_btn.html(enable_text);
}else{
CLI.enableAllCookies();
cli_toggle_btn.html(disable_text);
}
jQuery(this).toggleClass('cli-enabled');
}
);
this.privacyReadmore();
},
settingsTabbedAccordion: function (){
jQuery(".cli-tab-header").on("click",
function (e){
if(!(jQuery(e.target).hasClass('cli-slider')||jQuery(e.target).hasClass('cli-user-preference-checkbox'))){
if(jQuery(this).hasClass("cli-tab-active")){
jQuery(this).removeClass("cli-tab-active");
jQuery(this)
.siblings(".cli-tab-content")
.slideUp(200);
}else{
jQuery(".cli-tab-header").removeClass("cli-tab-active");
jQuery(this).addClass("cli-tab-active");
jQuery(".cli-tab-content").slideUp(200);
jQuery(this)
.siblings(".cli-tab-content")
.slideDown(200);
}}
}
);
},
settingsPopUpClose: function (){
this.settingsModal.removeClass('cli-show');
this.settingsModal.addClass('cli-out');
jQuery('body').removeClass("cli-modal-open");
jQuery(".cli-settings-overlay").removeClass("cli-show");
jQuery("#cookie-law-info-bar").css({ 'opacity': 1 });
},
privacyReadmore: function (){
var el=jQuery('.cli-privacy-content .cli-privacy-content-text');
if(el.length > 0){
var clone=el.clone(),
originalHtml=clone.html(),
originalHeight=el.outerHeight(),
Trunc={
addReadmore: function (textBlock){
if(textBlock.html().length > 250){
jQuery('.cli-privacy-readmore').show();
}else{
jQuery('.cli-privacy-readmore').hide();
}},
truncateText: function (textBlock){
var strippedText=jQuery('<div />').html(textBlock.html());
strippedText.find('table').remove();
textBlock.html(strippedText.html());
const currentText=textBlock.text();
if(currentText.trim().length > 250){
var newStr=currentText.substring(0, 250);
textBlock.empty().html(newStr).append('...');
}},
replaceText: function (textBlock, original){
return textBlock.html(original);
}};
Trunc.addReadmore(el);
Trunc.truncateText(el);
jQuery('a.cli-privacy-readmore').on("click",
function (e){
e.preventDefault();
if(jQuery('.cli-privacy-overview').hasClass('cli-collapsed')){
Trunc.truncateText(el);
jQuery('.cli-privacy-overview').removeClass('cli-collapsed');
el.css('height', '100%');
}else{
jQuery('.cli-privacy-overview').addClass('cli-collapsed');
Trunc.replaceText(el, originalHtml);
}}
);
}},
attachDelete: function (){
this.delete_link.on("click",
function (e){
CLI_Cookie.erase(CLI_ACCEPT_COOKIE_NAME);
for (var k in Cli_Data.nn_cookie_ids){
CLI_Cookie.erase(Cli_Data.nn_cookie_ids[k]);
}
CLI.generateConsent();
return false;
}
);
},
configButtons: function (){
this.main_button.css('color', this.settings.button_1_link_colour);
if(Boolean(this.settings.button_1_as_button)){
this.main_button.css('background-color', this.settings.button_1_button_colour);
this.main_button.on('mouseenter',
function (){
jQuery(this).css('background-color', CLI.settings.button_1_button_hover);
}
)
.on('mouseleave',
function (){
jQuery(this).css('background-color', CLI.settings.button_1_button_colour);
}
);
}
this.main_link.css('color', this.settings.button_2_link_colour);
if(Boolean(this.settings.button_2_as_button)){
this.main_link.css('background-color', this.settings.button_2_button_colour);
this.main_link.on('mouseenter',
function (){
jQuery(this).css('background-color', CLI.settings.button_2_button_hover);
}
)
.on('mouseleave',
function (){
jQuery(this).css('background-color', CLI.settings.button_2_button_colour);
}
);
}
this.reject_link.css('color', this.settings.button_3_link_colour);
if(Boolean(this.settings.button_3_as_button)){
this.reject_link.css('background-color', this.settings.button_3_button_colour);
this.reject_link.on('mouseenter',
function (){
jQuery(this).css('background-color', CLI.settings.button_3_button_hover);
}
)
.on('mouseleave',
function (){
jQuery(this).css('background-color', CLI.settings.button_3_button_colour);
}
);
}
this.settings_button.css('color', this.settings.button_4_link_colour);
if(Boolean(this.settings.button_4_as_button)){
this.settings_button.css('background-color', this.settings.button_4_button_colour);
this.settings_button.on('mouseenter',
function (){
jQuery(this).css('background-color', CLI.settings.button_4_button_hover);
}
)
.on('mouseleave',
function (){
jQuery(this).css('background-color', CLI.settings.button_4_button_colour);
}
);
}
this.accept_all_button.css('color', this.settings.button_7_link_colour);
if(this.settings.button_7_as_button){
this.accept_all_button.css('background-color', this.settings.button_7_button_colour);
this.accept_all_button.on('mouseenter',
function (){
jQuery(this).css('background-color', CLI.settings.button_7_button_hover);
}
)
.on('mouseleave',
function (){
jQuery(this).css('background-color', CLI.settings.button_7_button_colour);
}
);
}},
toggleBar: function (){
if(CLI_COOKIEBAR_AS_POPUP){
this.barAsPopUp(1);
}
if(CLI.settings.cookie_bar_as=='widget'){
this.barAsWidget(1);
}
if(!CLI_Cookie.exists(CLI_ACCEPT_COOKIE_NAME)){
this.displayHeader();
}else{
this.hideHeader();
}
if(Boolean(this.settings.show_once_yn)){
setTimeout(
function (){
CLI.close_header();
},
CLI.settings.show_once
);
}
if(CLI.js_blocking_enabled===false){
if(Boolean(Cli_Data.ccpaEnabled)===true){
if(Cli_Data.ccpaType==='ccpa'&&Boolean(Cli_Data.ccpaBarEnabled)===false){
cliBlocker.cookieBar(false);
}}else{
jQuery('.wt-cli-ccpa-opt-out,.wt-cli-ccpa-checkbox,.wt-cli-ccpa-element').remove();
}}
this.showagain_elm.on("click",
function (e){
e.preventDefault();
CLI.showagain_elm.slideUp(CLI.settings.animate_speed_hide,
function (){
CLI.bar_elm.slideDown(CLI.settings.animate_speed_show);
if(CLI_COOKIEBAR_AS_POPUP){
CLI.showPopupOverlay();
}}
);
}
);
},
configShowAgain: function (){
this.showagain_config={
'background-color': this.settings.background,
'color': this.l1hs(this.settings.text),
'position': 'fixed',
'font-family': this.settings.font_family
};
if(Boolean(this.settings.border_on)){
var border_to_hide='border-' + this.settings.notify_position_vertical;
this.showagain_config['border']='1px solid ' + this.l1hs(this.settings.border);
this.showagain_config[border_to_hide]='none';
}
var cli_win=jQuery(window);
var cli_winw=cli_win.width();
var showagain_x_pos=this.settings.showagain_x_position;
if(cli_winw < 300){
showagain_x_pos=10;
this.showagain_config.width=cli_winw - 20;
}else{
this.showagain_config.width='auto';
}
var cli_defw=cli_winw > 400 ? 500:cli_winw - 20;
if(CLI_COOKIEBAR_AS_POPUP){ 
var sa_pos=this.settings.popup_showagain_position;
var sa_pos_arr=sa_pos.split('-');
if(sa_pos_arr[1]=='left'){
this.showagain_config.left=showagain_x_pos;
}else if(sa_pos_arr[1]=='right'){
this.showagain_config.right=showagain_x_pos;
}
if(sa_pos_arr[0]=='top'){
this.showagain_config.top=0;
}else if(sa_pos_arr[0]=='bottom'){
this.showagain_config.bottom=0;
}
this.bar_config['position']='fixed';
}else if(this.settings.cookie_bar_as=='widget'){
this.showagain_config.bottom=0;
if(this.settings.widget_position=='left'){
this.showagain_config.left=showagain_x_pos;
}else if(this.settings.widget_position=='right'){
this.showagain_config.right=showagain_x_pos;
}}else{
if(this.settings.notify_position_vertical=="top"){
this.showagain_config.top='0';
}else if(this.settings.notify_position_vertical=="bottom"){
this.bar_config['position']='fixed';
this.bar_config['bottom']='0';
this.showagain_config.bottom='0';
}
if(this.settings.notify_position_horizontal=="left"){
this.showagain_config.left=showagain_x_pos;
}else if(this.settings.notify_position_horizontal=="right"){
this.showagain_config.right=showagain_x_pos;
}}
this.showagain_elm.css(this.showagain_config);
},
configBar: function (){
this.bar_config={
'background-color': this.settings.background,
'color': this.settings.text,
'font-family': this.settings.font_family
};
if(this.settings.notify_position_vertical=="top"){
this.bar_config['top']='0';
if(Boolean(this.settings.header_fix)===true){
this.bar_config['position']='fixed';
}}else{
this.bar_config['bottom']='0';
}
this.configShowAgain();
this.bar_elm.css(this.bar_config).hide();
},
l1hs: function (str){
if(str.charAt(0)=="#"){
str=str.substring(1, str.length);
}else{
return "#" + str;
}
return this.l1hs(str);
},
close_header: function (){
CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME, 'yes', CLI_ACCEPT_COOKIE_EXPIRE);
this.hideHeader();
},
accept_close: function (){
this.hidePopupOverlay();
this.generateConsent();
this.cookieLawInfoRunCallBacks();
CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME, 'yes', CLI_ACCEPT_COOKIE_EXPIRE);
if(Boolean(this.settings.notify_animate_hide)){
if(CLI.js_blocking_enabled===true){
this.bar_elm.slideUp(this.settings.animate_speed_hide, cliBlocker.runScripts);
}else{
this.bar_elm.slideUp(this.settings.animate_speed_hide);
}}else{
if(CLI.js_blocking_enabled===true){
this.bar_elm.hide(0, cliBlocker.runScripts);
}else{
this.bar_elm.hide();
}}
if(Boolean(this.settings.showagain_tab)){
this.showagain_elm.slideDown(this.settings.animate_speed_show);
}
if(Boolean(this.settings.accept_close_reload)===true){
this.reload_current_page();
}
return false;
},
reject_close: function (){
this.hidePopupOverlay();
this.generateConsent();
this.cookieLawInfoRunCallBacks();
for (var k in Cli_Data.nn_cookie_ids){
CLI_Cookie.erase(Cli_Data.nn_cookie_ids[k]);
}
CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME, 'no', CLI_ACCEPT_COOKIE_EXPIRE);
if(Boolean(this.settings.notify_animate_hide)){
if(CLI.js_blocking_enabled===true){
this.bar_elm.slideUp(this.settings.animate_speed_hide, cliBlocker.runScripts);
}else{
this.bar_elm.slideUp(this.settings.animate_speed_hide);
}}else{
if(CLI.js_blocking_enabled===true){
this.bar_elm.hide(cliBlocker.runScripts);
}else{
this.bar_elm.hide();
}}
if(Boolean(this.settings.showagain_tab)){
this.showagain_elm.slideDown(this.settings.animate_speed_show);
}
if(Boolean(this.settings.reject_close_reload)===true){
this.reload_current_page();
}
return false;
},
reload_current_page: function (){
window.location.reload(true);
},
closeOnScroll: function (){
if(window.pageYOffset > 100&&!CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)){
CLI.accept_close();
if(Boolean(CLI.settings.scroll_close_reload)===true){
window.location.reload();
}
window.removeEventListener("scroll", CLI.closeOnScroll, false);
}},
displayHeader: function (){
if(Boolean(this.settings.notify_animate_show)){
this.bar_elm.slideDown(this.settings.animate_speed_show);
}else{
this.bar_elm.show();
}
this.showagain_elm.hide();
if(CLI_COOKIEBAR_AS_POPUP){
this.showPopupOverlay();
}},
hideHeader: function (){
if(Boolean(this.settings.showagain_tab)){
if(Boolean(this.settings.notify_animate_show)){
this.showagain_elm.slideDown(this.settings.animate_speed_show);
}else{
this.showagain_elm.show();
}}else{
this.showagain_elm.hide();
}
this.bar_elm.slideUp(this.settings.animate_speed_show);
this.hidePopupOverlay();
},
hidePopupOverlay: function (){
jQuery('body').removeClass("cli-barmodal-open");
jQuery(".cli-popupbar-overlay").removeClass("cli-show");
},
showPopupOverlay: function (){
if(this.bar_elm.length){
if(Boolean(this.settings.popup_overlay)){
jQuery('body').addClass("cli-barmodal-open");
jQuery(".cli-popupbar-overlay").addClass("cli-show");
}}
},
barAsWidget: function (a){
var cli_elm=this.bar_elm;
cli_elm.attr('data-cli-type', 'widget');
var cli_win=jQuery(window);
var cli_winh=cli_win.height() - 40;
var cli_winw=cli_win.width();
var cli_defw=cli_winw > 400 ? 300:cli_winw - 30;
cli_elm.css({
'width': cli_defw, 'height': 'auto', 'max-height': cli_winh, 'overflow': 'auto', 'position': 'fixed', 'box-sizing': 'border-box'
}
);
if(this.checkifStyleAttributeExist()===false){
cli_elm.css({ 'padding': '25px 15px' });
}
if(this.settings.widget_position=='left'){
cli_elm.css({
'left': '15px', 'right': 'auto', 'bottom': '15px', 'top': 'auto'
}
);
}else{
cli_elm.css({
'left': 'auto', 'right': '15px', 'bottom': '15px', 'top': 'auto'
}
);
}
if(a){
this.setResize();
}},
barAsPopUp: function (a){
if(typeof cookie_law_info_bar_as_popup==='function'){
return false;
}
var cli_elm=this.bar_elm;
cli_elm.attr('data-cli-type', 'popup');
var cli_win=jQuery(window);
var cli_winh=cli_win.height() - 40;
var cli_winw=cli_win.width();
var cli_defw=cli_winw > 700 ? 500:cli_winw - 20;
cli_elm.css({
'width': cli_defw, 'height': 'auto', 'max-height': cli_winh, 'bottom': '', 'top': '50%', 'left': '50%', 'margin-left': (cli_defw / 2) * -1, 'margin-top': '-100px', 'overflow': 'auto'
}
).addClass('cli-bar-popup cli-modal-content');
if(this.checkifStyleAttributeExist()===false){
cli_elm.css({ 'padding': '25px 15px' });
}
const cli_h=cli_elm.height();
cli_elm.css({ 'top': '50%', 'margin-top': ((cli_h / 2) + 30) * -1 });
setTimeout(
function (){
cli_elm.css({
'bottom': ''
}
);
},
100
);
if(a){
this.setResize();
}},
setResize: function (){
var resizeTmr=null;
jQuery(window).resize(function (){
clearTimeout(resizeTmr);
resizeTmr=setTimeout(
function (){
if(CLI_COOKIEBAR_AS_POPUP){
CLI.barAsPopUp();
}
if(CLI.settings.cookie_bar_as=='widget'){
CLI.barAsWidget();
}
CLI.configShowAgain();
},
500
);
}
);
},
enableAllCookies: function (){
jQuery('.cli-user-preference-checkbox').each(function (){
var cli_chkbox_elm=jQuery(this);
var cli_chkbox_data_id=cli_chkbox_elm.attr('data-id');
if(cli_chkbox_data_id!='checkbox-necessary'){
cli_chkbox_elm.prop('checked', true);
CLI_Cookie.set('cookielawinfo-' + cli_chkbox_data_id, 'yes', CLI_ACCEPT_COOKIE_EXPIRE);
}}
);
},
disableAllCookies: function (){
jQuery('.cli-user-preference-checkbox').each(function (){
var cli_chkbox_elm=jQuery(this);
var cli_chkbox_data_id=cli_chkbox_elm.attr('data-id');
const cliCategorySlug=cli_chkbox_data_id.replace('checkbox-', '');
if(Cli_Data.strictlyEnabled.indexOf(cliCategorySlug)===-1){
cli_chkbox_elm.prop('checked', false);
CLI_Cookie.set('cookielawinfo-' + cli_chkbox_data_id, 'no', CLI_ACCEPT_COOKIE_EXPIRE);
}}
);
},
hideCookieBarOnClose: function (){
jQuery(document).on('click',
'.cli_cookie_close_button',
function (e){
e.preventDefault();
var elm=jQuery(this);
if(Cli_Data.ccpaType==='ccpa'){
CLI.enableAllCookies();
}
CLI.accept_close();
}
);
},
checkCategories: function (){
var cliAllowedCategories=[];
var cli_categories={};
jQuery('.cli-user-preference-checkbox').each(function (){
var status=false;
const cli_chkbox_elm=jQuery(this);
let cli_chkbox_data_id=cli_chkbox_elm.attr('data-id');
cli_chkbox_data_id=cli_chkbox_data_id.replace('checkbox-', '');
const cli_chkbox_data_id_trimmed=cli_chkbox_data_id.replace('-', '_')
if(jQuery(cli_chkbox_elm).is(':checked')){
status=true;
cliAllowedCategories.push(cli_chkbox_data_id);
}
cli_categories[cli_chkbox_data_id_trimmed]=status;
}
);
CLI.allowedCategories=cliAllowedCategories;
},
cookieLawInfoRunCallBacks: function (){
this.checkCategories();
if(CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)=='yes'){
if("function"==typeof CookieLawInfo_Accept_Callback){
CookieLawInfo_Accept_Callback();
}}
},
generateConsent: function (){
var preferenceCookie=CLI_Cookie.read(CLI_PREFERENCE_COOKIE);
let cliConsent={};
if(preferenceCookie!==null){
cliConsent=window.atob(preferenceCookie);
cliConsent=JSON.parse(cliConsent);
}
cliConsent.ver=Cli_Data.consentVersion;
jQuery('.cli-user-preference-checkbox').each(function (){
let categoryVal='';
let cli_chkbox_data_id=jQuery(this).attr('data-id');
cli_chkbox_data_id=cli_chkbox_data_id.replace('checkbox-', '');
if(jQuery(this).is(':checked')){
categoryVal=true;
}else{
categoryVal=false;
}
cliConsent[cli_chkbox_data_id]=categoryVal;
}
);
cliConsent=JSON.stringify(cliConsent);
cliConsent=window.btoa(cliConsent);
CLI_Cookie.set(CLI_PREFERENCE_COOKIE, cliConsent, CLI_ACCEPT_COOKIE_EXPIRE);
},
addStyleAttribute: function (){
var bar=this.bar_elm;
var styleClass='';
if(jQuery(bar).find('.cli-bar-container').length > 0){
styleClass=jQuery('.cli-bar-container').attr('class');
styleClass=styleClass.replace('cli-bar-container', '');
styleClass=styleClass.trim();
jQuery(bar).attr('data-cli-style', styleClass);
}},
getParameterByName: function (name, url){
if(!url){
url=window.location.href;
}
name=name.replace(/[\[\]]/g, '\\$&');
var regex=new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),
results=regex.exec(url);
if(!results){
return null;
}
if(!results[2]){
return '';
}
return decodeURIComponent(results[2].replace(/\+/g, ' '));
},
CookieLawInfo_Callback: function (enableBar, enableBlocking){
enableBar=typeof enableBar!=='undefined' ? enableBar:true;
enableBlocking=typeof enableBlocking!=='undefined' ? enableBlocking:true;
if(CLI.js_blocking_enabled===true&&Boolean(Cli_Data.custom_integration)===true){
cliBlocker.cookieBar(enableBar);
cliBlocker.runScripts(enableBlocking);
}},
checkifStyleAttributeExist: function (){
var exist=false;
var attr=this.bar_elm.attr('data-cli-style');
if(typeof attr!==typeof undefined&&attr!==false){
exist=true;
}
return exist;
},
reviewConsent: function (){
jQuery(document).on('click',
'.cli_manage_current_consent,.wt-cli-manage-consent-link',
function (){
CLI.displayHeader();
}
);
},
mayBeSetPreferenceCookie: function (){
if(CLI.getParameterByName('cli_bypass')==="1"){
CLI.generateConsent();
}}
}
var cliBlocker =
{
blockingStatus: true,
scriptsLoaded: false,
ccpaEnabled: false,
ccpaRegionBased: false,
ccpaApplicable: false,
ccpaBarEnabled: false,
cliShowBar: true,
isBypassEnabled: CLI.getParameterByName('cli_bypass'),
checkPluginStatus: function (callbackA, callbackB){
this.ccpaEnabled=Boolean(Cli_Data.ccpaEnabled);
this.ccpaRegionBased=Boolean(Cli_Data.ccpaRegionBased);
this.ccpaBarEnabled=Boolean(Cli_Data.ccpaBarEnabled);
if(Boolean(Cli_Data.custom_integration)===true){
callbackA(false);
}else{
if(this.ccpaEnabled===true){
this.ccpaApplicable=true;
if(Cli_Data.ccpaType==='ccpa'){
if(this.ccpaBarEnabled!==true){
this.cliShowBar=false;
this.blockingStatus=false;
}}
}else{
jQuery('.wt-cli-ccpa-opt-out,.wt-cli-ccpa-checkbox,.wt-cli-ccpa-element').remove();
}
if(cliBlocker.isBypassEnabled==="1"){
cliBlocker.blockingStatus=false;
}
callbackA(this.cliShowBar);
callbackB(this.blockingStatus);
}},
cookieBar: function (showbar){
showbar=typeof showbar!=='undefined' ? showbar:true;
cliBlocker.cliShowBar=showbar;
if(cliBlocker.cliShowBar===false){
CLI.bar_elm.hide();
CLI.showagain_elm.hide();
CLI.settingsModal.removeClass('cli-blowup cli-out');
CLI.hidePopupOverlay();
jQuery(".cli-settings-overlay").removeClass("cli-show");
}else{
if(!CLI_Cookie.exists(CLI_ACCEPT_COOKIE_NAME)){
CLI.displayHeader();
}else{
CLI.hideHeader();
}}
},
removeCookieByCategory: function (){
if(cliBlocker.blockingStatus===true){
if(CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)!==null){
var non_necessary_cookies=Cli_Data.non_necessary_cookies;
for (var key in non_necessary_cookies){
const currentCategory=key;
if(CLI.allowedCategories.indexOf(currentCategory)===-1){
var nonNecessaryCookies=non_necessary_cookies[currentCategory];
for (var i=0; i < nonNecessaryCookies.length; i++){
if(CLI_Cookie.read(nonNecessaryCookies[i])!==null){
CLI_Cookie.erase(nonNecessaryCookies[i]);
}}
}}
}}
},
runScripts: function (blocking){
blocking=typeof blocking!=='undefined' ? blocking:true;
cliBlocker.blockingStatus=blocking;
var genericFuncs =
{
renderByElement: function (callback){
cliScriptFuncs.renderScripts();
callback();
cliBlocker.scriptsLoaded=true;
},
};
var cliScriptFuncs =
{
scriptsDone: function (){
if(typeof Cli_Data.triggerDomRefresh!=='undefined'){
if(Boolean(Cli_Data.triggerDomRefresh)===true){
var DOMContentLoadedEvent=document.createEvent('Event')
DOMContentLoadedEvent.initEvent('DOMContentLoaded', true, true)
window.document.dispatchEvent(DOMContentLoadedEvent);
}}
},
seq: function (arr, callback, index){
if(typeof index==='undefined'){
index=0
}
arr[index](
function (){
index++
if(index===arr.length){
callback()
}else{
cliScriptFuncs.seq(arr, callback, index)
}}
)
},
insertScript: function ($script, callback){
var s='';
var scriptType=$script.getAttribute('data-cli-script-type');
var elementPosition=$script.getAttribute('data-cli-element-position');
var isBlock=$script.getAttribute('data-cli-block');
var s=document.createElement('script');
var ccpaOptedOut=cliBlocker.ccpaOptedOut();
s.type='text/plain';
if($script.async){
s.async=$script.async;
}
if($script.defer){
s.defer=$script.defer;
}
if($script.src){
s.onload=callback
s.onerror=callback
s.src=$script.src
}else{
s.textContent=$script.innerText
}
var attrs=jQuery($script).prop("attributes");
for (var ii=0; ii < attrs.length; ++ii){
if(attrs[ii].nodeName!=='id'){
s.setAttribute(attrs[ii].nodeName, attrs[ii].value);
}}
if(cliBlocker.blockingStatus===true){
if((CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)=='yes'&&CLI.allowedCategories.indexOf(scriptType)!==-1)){
s.setAttribute('data-cli-consent', 'accepted');
s.type='text/javascript';
}
if(cliBlocker.ccpaApplicable===true){
if(ccpaOptedOut===true||CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)==null){
s.type='text/plain';
}}
}else{
s.type='text/javascript';
}
if($script.type!=s.type){
if(elementPosition==='head'){
document.head.appendChild(s);
}else{
document.body.appendChild(s);
}
if(!$script.src){
callback()
}
$script.parentNode.removeChild($script);
}else{
callback();
}},
renderScripts: function (){
var $scripts=document.querySelectorAll('script[data-cli-class="cli-blocker-script"]');
if($scripts.length > 0){
var runList=[]
var typeAttr
Array.prototype.forEach.call($scripts,
function ($script){
typeAttr=$script.getAttribute('type')
runList.push(function (callback){
cliScriptFuncs.insertScript($script, callback)
}
)
}
)
cliScriptFuncs.seq(runList, cliScriptFuncs.scriptsDone);
}}
};
genericFuncs.renderByElement(cliBlocker.removeCookieByCategory);
},
ccpaOptedOut: function (){
var ccpaOptedOut=false;
var preferenceCookie=CLI_Cookie.read(CLI_PREFERENCE_COOKIE);
if(preferenceCookie!==null){
let cliConsent=window.atob(preferenceCookie);
cliConsent=JSON.parse(cliConsent);
if(typeof cliConsent.ccpaOptout!=='undefined'){
ccpaOptedOut=cliConsent.ccpaOptout;
}}
return ccpaOptedOut;
}}
jQuery(document).ready(function (){
if(typeof cli_cookiebar_settings!='undefined'){
CLI.set({
settings: cli_cookiebar_settings
}
);
if(CLI.js_blocking_enabled===true){
cliBlocker.checkPluginStatus(cliBlocker.cookieBar, cliBlocker.runScripts);
}}
}
);
(()=>{var e={978664(e){e.exports=function(e){function n(t){if(r[t])return r[t].exports;var a=r[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,n),a.l=!0,a.exports}var r={};return n.m=e,n.c=r,n.i=function(e){return e},n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:t})},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="",n(n.s=1)}([function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=function(){function e(e,n){for(var r=0;r<n.length;r++){var t=n[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}return function(n,r,t){return r&&e(n.prototype,r),t&&e(n,t),n}}(),a=function(){function e(){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e)}return t(e,null,[{key:"hash",value:function(n){return e.hex(e.md51(n))}},{key:"md5cycle",value:function(n,r){var t=n[0],a=n[1],o=n[2],i=n[3];t=e.ff(t,a,o,i,r[0],7,-680876936),i=e.ff(i,t,a,o,r[1],12,-389564586),o=e.ff(o,i,t,a,r[2],17,606105819),a=e.ff(a,o,i,t,r[3],22,-1044525330),t=e.ff(t,a,o,i,r[4],7,-176418897),i=e.ff(i,t,a,o,r[5],12,1200080426),o=e.ff(o,i,t,a,r[6],17,-1473231341),a=e.ff(a,o,i,t,r[7],22,-45705983),t=e.ff(t,a,o,i,r[8],7,1770035416),i=e.ff(i,t,a,o,r[9],12,-1958414417),o=e.ff(o,i,t,a,r[10],17,-42063),a=e.ff(a,o,i,t,r[11],22,-1990404162),t=e.ff(t,a,o,i,r[12],7,1804603682),i=e.ff(i,t,a,o,r[13],12,-40341101),o=e.ff(o,i,t,a,r[14],17,-1502002290),a=e.ff(a,o,i,t,r[15],22,1236535329),t=e.gg(t,a,o,i,r[1],5,-165796510),i=e.gg(i,t,a,o,r[6],9,-1069501632),o=e.gg(o,i,t,a,r[11],14,643717713),a=e.gg(a,o,i,t,r[0],20,-373897302),t=e.gg(t,a,o,i,r[5],5,-701558691),i=e.gg(i,t,a,o,r[10],9,38016083),o=e.gg(o,i,t,a,r[15],14,-660478335),a=e.gg(a,o,i,t,r[4],20,-405537848),t=e.gg(t,a,o,i,r[9],5,568446438),i=e.gg(i,t,a,o,r[14],9,-1019803690),o=e.gg(o,i,t,a,r[3],14,-187363961),a=e.gg(a,o,i,t,r[8],20,1163531501),t=e.gg(t,a,o,i,r[13],5,-1444681467),i=e.gg(i,t,a,o,r[2],9,-51403784),o=e.gg(o,i,t,a,r[7],14,1735328473),a=e.gg(a,o,i,t,r[12],20,-1926607734),t=e.hh(t,a,o,i,r[5],4,-378558),i=e.hh(i,t,a,o,r[8],11,-2022574463),o=e.hh(o,i,t,a,r[11],16,1839030562),a=e.hh(a,o,i,t,r[14],23,-35309556),t=e.hh(t,a,o,i,r[1],4,-1530992060),i=e.hh(i,t,a,o,r[4],11,1272893353),o=e.hh(o,i,t,a,r[7],16,-155497632),a=e.hh(a,o,i,t,r[10],23,-1094730640),t=e.hh(t,a,o,i,r[13],4,681279174),i=e.hh(i,t,a,o,r[0],11,-358537222),o=e.hh(o,i,t,a,r[3],16,-722521979),a=e.hh(a,o,i,t,r[6],23,76029189),t=e.hh(t,a,o,i,r[9],4,-640364487),i=e.hh(i,t,a,o,r[12],11,-421815835),o=e.hh(o,i,t,a,r[15],16,530742520),a=e.hh(a,o,i,t,r[2],23,-995338651),t=e.ii(t,a,o,i,r[0],6,-198630844),i=e.ii(i,t,a,o,r[7],10,1126891415),o=e.ii(o,i,t,a,r[14],15,-1416354905),a=e.ii(a,o,i,t,r[5],21,-57434055),t=e.ii(t,a,o,i,r[12],6,1700485571),i=e.ii(i,t,a,o,r[3],10,-1894986606),o=e.ii(o,i,t,a,r[10],15,-1051523),a=e.ii(a,o,i,t,r[1],21,-2054922799),t=e.ii(t,a,o,i,r[8],6,1873313359),i=e.ii(i,t,a,o,r[15],10,-30611744),o=e.ii(o,i,t,a,r[6],15,-1560198380),a=e.ii(a,o,i,t,r[13],21,1309151649),t=e.ii(t,a,o,i,r[4],6,-145523070),i=e.ii(i,t,a,o,r[11],10,-1120210379),o=e.ii(o,i,t,a,r[2],15,718787259),a=e.ii(a,o,i,t,r[9],21,-343485551),n[0]=t+n[0]&4294967295,n[1]=a+n[1]&4294967295,n[2]=o+n[2]&4294967295,n[3]=i+n[3]&4294967295}},{key:"cmn",value:function(e,n,r,t,a,o){return((n=(n+e&4294967295)+(t+o&4294967295)&4294967295)<<a|n>>>32-a)+r&4294967295}},{key:"ff",value:function(n,r,t,a,o,i,u){return e.cmn(r&t|~r&a,n,r,o,i,u)}},{key:"gg",value:function(n,r,t,a,o,i,u){return e.cmn(r&a|t&~a,n,r,o,i,u)}},{key:"hh",value:function(n,r,t,a,o,i,u){return e.cmn(r^t^a,n,r,o,i,u)}},{key:"ii",value:function(n,r,t,a,o,i,u){return e.cmn(t^(r|~a),n,r,o,i,u)}},{key:"md51",value:function(n){for(var r,t=n.length,a=[1732584193,-271733879,-1732584194,271733878],o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i=64;i<=t;i+=64)e.md5cycle(a,e.md5blk(n.substring(i-64,i)));for(n=n.substring(i-64),i=0,r=n.length;i<r;i++)o[i>>2]|=n.charCodeAt(i)<<(i%4<<3);if(o[i>>2]|=128<<(i%4<<3),i>55)for(e.md5cycle(a,o),i=0;i<16;i++)o[i]=0;return o[14]=8*t,e.md5cycle(a,o),a}},{key:"md5blk",value:function(e){for(var n=[],r=0;r<64;r+=4)n[r>>2]=e.charCodeAt(r)+(e.charCodeAt(r+1)<<8)+(e.charCodeAt(r+2)<<16)+(e.charCodeAt(r+3)<<24);return n}},{key:"rhex",value:function(n){var r="";return r+=e.hexArray[n>>4&15]+e.hexArray[15&n],r+=e.hexArray[n>>12&15]+e.hexArray[n>>8&15],(r+=e.hexArray[n>>20&15]+e.hexArray[n>>16&15])+(e.hexArray[n>>28&15]+e.hexArray[n>>24&15])}},{key:"hex",value:function(n){for(var r=n.length,t=0;t<r;t++)n[t]=e.rhex(n[t]);return n.join("")}}]),e}();a.hexArray=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n.default=a},function(e,n,r){e.exports=r(0)}])},527723(e){"use strict";e.exports=window.wp.i18n}},n={};function r(t){var a=n[t];if(void 0!==a)return a.exports;var o=n[t]={exports:{}};return e[t].call(o.exports,o,o.exports,r),o.exports}r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{"use strict";var e=r(527723),n=r(978664),t=r.n(n);const a={plugin:"plugins/",theme:"themes/",core:""},o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),i={state:{baseUrl:null,locale:null,domainMap:{},domainPaths:{}},async downloadI18n(n,r,i){const u=wp.eventinI18nLoader.state;if("en_US"===u.locale)return;if("undefined"==typeof fetch)throw new Error("Fetch API is not available.");const f=o(u.domainPaths,r)?u.domainPaths[r]:"";let c,l;const h=n.indexOf("?");h>=0?(c=t().hash((f+n.substring(0,h)).replace(/\\/g,"/")),l=n.substring(h)):(c=t().hash((f+n).replace(/\\/g,"/")),l="");const s=o(u.domainMap,r)?u.domainMap[r]:a[i]+r,g=await fetch(`${u.baseUrl}${s}-${u.locale}-${c}.json${l}`);if(!g.ok)throw new Error(`HTTP request failed: ${g.status} ${g.statusText}`);const d=await g.json(),p=o(d.locale_data,r)?d.locale_data[r]:d.locale_data.messages;p[""].domain=r,(0,e.setLocaleData)(p,r)}};window.eventin||(window.eventin={}),window.eventin.i18n=i})()})();
(function(){var l,a;l=this,a=function(){"use strict";var l={},a={};try{"undefined"!=typeof window&&(l=window),"undefined"!=typeof document&&(a=document)}catch(l){}var e=(l.navigator||{}).userAgent,r=void 0===e?"":e,n=l,o=a,u=(n.document,!!o.documentElement&&!!o.head&&"function"==typeof o.addEventListener&&o.createElement,~r.indexOf("MSIE")||r.indexOf("Trident/"),"___FONT_AWESOME___"),t=function(){try{return"production"===process.env.NODE_ENV}catch(l){return!1}}();var f=n||{};f[u]||(f[u]={}),f[u].styles||(f[u].styles={}),f[u].hooks||(f[u].hooks={}),f[u].shims||(f[u].shims=[]);var i=f[u],s=[["glass",null,"glass-martini"],["meetup","fab",null],["star-o","far","star"],["remove",null,"times"],["close",null,"times"],["gear",null,"cog"],["trash-o","far","trash-alt"],["file-o","far","file"],["clock-o","far","clock"],["arrow-circle-o-down","far","arrow-alt-circle-down"],["arrow-circle-o-up","far","arrow-alt-circle-up"],["play-circle-o","far","play-circle"],["repeat",null,"redo"],["rotate-right",null,"redo"],["refresh",null,"sync"],["list-alt","far",null],["dedent",null,"outdent"],["video-camera",null,"video"],["picture-o","far","image"],["photo","far","image"],["image","far","image"],["pencil",null,"pencil-alt"],["map-marker",null,"map-marker-alt"],["pencil-square-o","far","edit"],["share-square-o","far","share-square"],["check-square-o","far","check-square"],["arrows",null,"arrows-alt"],["times-circle-o","far","times-circle"],["check-circle-o","far","check-circle"],["mail-forward",null,"share"],["expand",null,"expand-alt"],["compress",null,"compress-alt"],["eye","far",null],["eye-slash","far",null],["warning",null,"exclamation-triangle"],["calendar",null,"calendar-alt"],["arrows-v",null,"arrows-alt-v"],["arrows-h",null,"arrows-alt-h"],["bar-chart","far","chart-bar"],["bar-chart-o","far","chart-bar"],["twitter-square","fab",null],["facebook-square","fab",null],["gears",null,"cogs"],["thumbs-o-up","far","thumbs-up"],["thumbs-o-down","far","thumbs-down"],["heart-o","far","heart"],["sign-out",null,"sign-out-alt"],["linkedin-square","fab","linkedin"],["thumb-tack",null,"thumbtack"],["external-link",null,"external-link-alt"],["sign-in",null,"sign-in-alt"],["github-square","fab",null],["lemon-o","far","lemon"],["square-o","far","square"],["bookmark-o","far","bookmark"],["twitter","fab",null],["facebook","fab","facebook-f"],["facebook-f","fab","facebook-f"],["github","fab",null],["credit-card","far",null],["feed",null,"rss"],["hdd-o","far","hdd"],["hand-o-right","far","hand-point-right"],["hand-o-left","far","hand-point-left"],["hand-o-up","far","hand-point-up"],["hand-o-down","far","hand-point-down"],["arrows-alt",null,"expand-arrows-alt"],["group",null,"users"],["chain",null,"link"],["scissors",null,"cut"],["files-o","far","copy"],["floppy-o","far","save"],["navicon",null,"bars"],["reorder",null,"bars"],["pinterest","fab",null],["pinterest-square","fab",null],["google-plus-square","fab",null],["google-plus","fab","google-plus-g"],["money","far","money-bill-alt"],["unsorted",null,"sort"],["sort-desc",null,"sort-down"],["sort-asc",null,"sort-up"],["linkedin","fab","linkedin-in"],["rotate-left",null,"undo"],["legal",null,"gavel"],["tachometer",null,"tachometer-alt"],["dashboard",null,"tachometer-alt"],["comment-o","far","comment"],["comments-o","far","comments"],["flash",null,"bolt"],["clipboard","far",null],["paste","far","clipboard"],["lightbulb-o","far","lightbulb"],["exchange",null,"exchange-alt"],["cloud-download",null,"cloud-download-alt"],["cloud-upload",null,"cloud-upload-alt"],["bell-o","far","bell"],["cutlery",null,"utensils"],["file-text-o","far","file-alt"],["building-o","far","building"],["hospital-o","far","hospital"],["tablet",null,"tablet-alt"],["mobile",null,"mobile-alt"],["mobile-phone",null,"mobile-alt"],["circle-o","far","circle"],["mail-reply",null,"reply"],["github-alt","fab",null],["folder-o","far","folder"],["folder-open-o","far","folder-open"],["smile-o","far","smile"],["frown-o","far","frown"],["meh-o","far","meh"],["keyboard-o","far","keyboard"],["flag-o","far","flag"],["mail-reply-all",null,"reply-all"],["star-half-o","far","star-half"],["star-half-empty","far","star-half"],["star-half-full","far","star-half"],["code-fork",null,"code-branch"],["chain-broken",null,"unlink"],["shield",null,"shield-alt"],["calendar-o","far","calendar"],["maxcdn","fab",null],["html5","fab",null],["css3","fab",null],["ticket",null,"ticket-alt"],["minus-square-o","far","minus-square"],["level-up",null,"level-up-alt"],["level-down",null,"level-down-alt"],["pencil-square",null,"pen-square"],["external-link-square",null,"external-link-square-alt"],["compass","far",null],["caret-square-o-down","far","caret-square-down"],["toggle-down","far","caret-square-down"],["caret-square-o-up","far","caret-square-up"],["toggle-up","far","caret-square-up"],["caret-square-o-right","far","caret-square-right"],["toggle-right","far","caret-square-right"],["eur",null,"euro-sign"],["euro",null,"euro-sign"],["gbp",null,"pound-sign"],["usd",null,"dollar-sign"],["dollar",null,"dollar-sign"],["inr",null,"rupee-sign"],["rupee",null,"rupee-sign"],["jpy",null,"yen-sign"],["cny",null,"yen-sign"],["rmb",null,"yen-sign"],["yen",null,"yen-sign"],["rub",null,"ruble-sign"],["ruble",null,"ruble-sign"],["rouble",null,"ruble-sign"],["krw",null,"won-sign"],["won",null,"won-sign"],["btc","fab",null],["bitcoin","fab","btc"],["file-text",null,"file-alt"],["sort-alpha-asc",null,"sort-alpha-down"],["sort-alpha-desc",null,"sort-alpha-down-alt"],["sort-amount-asc",null,"sort-amount-down"],["sort-amount-desc",null,"sort-amount-down-alt"],["sort-numeric-asc",null,"sort-numeric-down"],["sort-numeric-desc",null,"sort-numeric-down-alt"],["youtube-square","fab",null],["youtube","fab",null],["xing","fab",null],["xing-square","fab",null],["youtube-play","fab","youtube"],["dropbox","fab",null],["stack-overflow","fab",null],["instagram","fab",null],["flickr","fab",null],["adn","fab",null],["bitbucket","fab",null],["bitbucket-square","fab","bitbucket"],["tumblr","fab",null],["tumblr-square","fab",null],["long-arrow-down",null,"long-arrow-alt-down"],["long-arrow-up",null,"long-arrow-alt-up"],["long-arrow-left",null,"long-arrow-alt-left"],["long-arrow-right",null,"long-arrow-alt-right"],["apple","fab",null],["windows","fab",null],["android","fab",null],["linux","fab",null],["dribbble","fab",null],["skype","fab",null],["foursquare","fab",null],["trello","fab",null],["gratipay","fab",null],["gittip","fab","gratipay"],["sun-o","far","sun"],["moon-o","far","moon"],["vk","fab",null],["weibo","fab",null],["renren","fab",null],["pagelines","fab",null],["stack-exchange","fab",null],["arrow-circle-o-right","far","arrow-alt-circle-right"],["arrow-circle-o-left","far","arrow-alt-circle-left"],["caret-square-o-left","far","caret-square-left"],["toggle-left","far","caret-square-left"],["dot-circle-o","far","dot-circle"],["vimeo-square","fab",null],["try",null,"lira-sign"],["turkish-lira",null,"lira-sign"],["plus-square-o","far","plus-square"],["slack","fab",null],["wordpress","fab",null],["openid","fab",null],["institution",null,"university"],["bank",null,"university"],["mortar-board",null,"graduation-cap"],["yahoo","fab",null],["google","fab",null],["reddit","fab",null],["reddit-square","fab",null],["stumbleupon-circle","fab",null],["stumbleupon","fab",null],["delicious","fab",null],["digg","fab",null],["pied-piper-pp","fab",null],["pied-piper-alt","fab",null],["drupal","fab",null],["joomla","fab",null],["spoon",null,"utensil-spoon"],["behance","fab",null],["behance-square","fab",null],["steam","fab",null],["steam-square","fab",null],["automobile",null,"car"],["envelope-o","far","envelope"],["spotify","fab",null],["deviantart","fab",null],["soundcloud","fab",null],["file-pdf-o","far","file-pdf"],["file-word-o","far","file-word"],["file-excel-o","far","file-excel"],["file-powerpoint-o","far","file-powerpoint"],["file-image-o","far","file-image"],["file-photo-o","far","file-image"],["file-picture-o","far","file-image"],["file-archive-o","far","file-archive"],["file-zip-o","far","file-archive"],["file-audio-o","far","file-audio"],["file-sound-o","far","file-audio"],["file-video-o","far","file-video"],["file-movie-o","far","file-video"],["file-code-o","far","file-code"],["vine","fab",null],["codepen","fab",null],["jsfiddle","fab",null],["life-ring","far",null],["life-bouy","far","life-ring"],["life-buoy","far","life-ring"],["life-saver","far","life-ring"],["support","far","life-ring"],["circle-o-notch",null,"circle-notch"],["rebel","fab",null],["ra","fab","rebel"],["resistance","fab","rebel"],["empire","fab",null],["ge","fab","empire"],["git-square","fab",null],["git","fab",null],["hacker-news","fab",null],["y-combinator-square","fab","hacker-news"],["yc-square","fab","hacker-news"],["tencent-weibo","fab",null],["qq","fab",null],["weixin","fab",null],["wechat","fab","weixin"],["send",null,"paper-plane"],["paper-plane-o","far","paper-plane"],["send-o","far","paper-plane"],["circle-thin","far","circle"],["header",null,"heading"],["sliders",null,"sliders-h"],["futbol-o","far","futbol"],["soccer-ball-o","far","futbol"],["slideshare","fab",null],["twitch","fab",null],["yelp","fab",null],["newspaper-o","far","newspaper"],["paypal","fab",null],["google-wallet","fab",null],["cc-visa","fab",null],["cc-mastercard","fab",null],["cc-discover","fab",null],["cc-amex","fab",null],["cc-paypal","fab",null],["cc-stripe","fab",null],["bell-slash-o","far","bell-slash"],["trash",null,"trash-alt"],["copyright","far",null],["eyedropper",null,"eye-dropper"],["area-chart",null,"chart-area"],["pie-chart",null,"chart-pie"],["line-chart",null,"chart-line"],["lastfm","fab",null],["lastfm-square","fab",null],["ioxhost","fab",null],["angellist","fab",null],["cc","far","closed-captioning"],["ils",null,"shekel-sign"],["shekel",null,"shekel-sign"],["sheqel",null,"shekel-sign"],["meanpath","fab","font-awesome"],["buysellads","fab",null],["connectdevelop","fab",null],["dashcube","fab",null],["forumbee","fab",null],["leanpub","fab",null],["sellsy","fab",null],["shirtsinbulk","fab",null],["simplybuilt","fab",null],["skyatlas","fab",null],["diamond","far","gem"],["intersex",null,"transgender"],["facebook-official","fab","facebook"],["pinterest-p","fab",null],["whatsapp","fab",null],["hotel",null,"bed"],["viacoin","fab",null],["medium","fab",null],["y-combinator","fab",null],["yc","fab","y-combinator"],["optin-monster","fab",null],["opencart","fab",null],["expeditedssl","fab",null],["battery-4",null,"battery-full"],["battery",null,"battery-full"],["battery-3",null,"battery-three-quarters"],["battery-2",null,"battery-half"],["battery-1",null,"battery-quarter"],["battery-0",null,"battery-empty"],["object-group","far",null],["object-ungroup","far",null],["sticky-note-o","far","sticky-note"],["cc-jcb","fab",null],["cc-diners-club","fab",null],["clone","far",null],["hourglass-o","far","hourglass"],["hourglass-1",null,"hourglass-start"],["hourglass-2",null,"hourglass-half"],["hourglass-3",null,"hourglass-end"],["hand-rock-o","far","hand-rock"],["hand-grab-o","far","hand-rock"],["hand-paper-o","far","hand-paper"],["hand-stop-o","far","hand-paper"],["hand-scissors-o","far","hand-scissors"],["hand-lizard-o","far","hand-lizard"],["hand-spock-o","far","hand-spock"],["hand-pointer-o","far","hand-pointer"],["hand-peace-o","far","hand-peace"],["registered","far",null],["creative-commons","fab",null],["gg","fab",null],["gg-circle","fab",null],["tripadvisor","fab",null],["odnoklassniki","fab",null],["odnoklassniki-square","fab",null],["get-pocket","fab",null],["wikipedia-w","fab",null],["safari","fab",null],["chrome","fab",null],["firefox","fab",null],["opera","fab",null],["internet-explorer","fab",null],["television",null,"tv"],["contao","fab",null],["500px","fab",null],["amazon","fab",null],["calendar-plus-o","far","calendar-plus"],["calendar-minus-o","far","calendar-minus"],["calendar-times-o","far","calendar-times"],["calendar-check-o","far","calendar-check"],["map-o","far","map"],["commenting",null,"comment-dots"],["commenting-o","far","comment-dots"],["houzz","fab",null],["vimeo","fab","vimeo-v"],["black-tie","fab",null],["fonticons","fab",null],["reddit-alien","fab",null],["edge","fab",null],["credit-card-alt",null,"credit-card"],["codiepie","fab",null],["modx","fab",null],["fort-awesome","fab",null],["usb","fab",null],["product-hunt","fab",null],["mixcloud","fab",null],["scribd","fab",null],["pause-circle-o","far","pause-circle"],["stop-circle-o","far","stop-circle"],["bluetooth","fab",null],["bluetooth-b","fab",null],["gitlab","fab",null],["wpbeginner","fab",null],["wpforms","fab",null],["envira","fab",null],["wheelchair-alt","fab","accessible-icon"],["question-circle-o","far","question-circle"],["volume-control-phone",null,"phone-volume"],["asl-interpreting",null,"american-sign-language-interpreting"],["deafness",null,"deaf"],["hard-of-hearing",null,"deaf"],["glide","fab",null],["glide-g","fab",null],["signing",null,"sign-language"],["viadeo","fab",null],["viadeo-square","fab",null],["snapchat","fab",null],["snapchat-ghost","fab",null],["snapchat-square","fab",null],["pied-piper","fab",null],["first-order","fab",null],["yoast","fab",null],["themeisle","fab",null],["google-plus-official","fab","google-plus"],["google-plus-circle","fab","google-plus"],["font-awesome","fab",null],["fa","fab","font-awesome"],["handshake-o","far","handshake"],["envelope-open-o","far","envelope-open"],["linode","fab",null],["address-book-o","far","address-book"],["vcard",null,"address-card"],["address-card-o","far","address-card"],["vcard-o","far","address-card"],["user-circle-o","far","user-circle"],["user-o","far","user"],["id-badge","far",null],["drivers-license",null,"id-card"],["id-card-o","far","id-card"],["drivers-license-o","far","id-card"],["quora","fab",null],["free-code-camp","fab",null],["telegram","fab",null],["thermometer-4",null,"thermometer-full"],["thermometer",null,"thermometer-full"],["thermometer-3",null,"thermometer-three-quarters"],["thermometer-2",null,"thermometer-half"],["thermometer-1",null,"thermometer-quarter"],["thermometer-0",null,"thermometer-empty"],["bathtub",null,"bath"],["s15",null,"bath"],["window-maximize","far",null],["window-restore","far",null],["times-rectangle",null,"window-close"],["window-close-o","far","window-close"],["times-rectangle-o","far","window-close"],["bandcamp","fab",null],["grav","fab",null],["etsy","fab",null],["imdb","fab",null],["ravelry","fab",null],["eercast","fab","sellcast"],["snowflake-o","far","snowflake"],["superpowers","fab",null],["wpexplorer","fab",null],["cab",null,"taxi"]];return function(l){try{l()}catch(l){if(!t)throw l}}(function(){var l;"function"==typeof i.hooks.addShims?i.hooks.addShims(s):(l=i.shims).push.apply(l,s)}),s},"object"==typeof exports&&"undefined"!=typeof module?module.exports=a():"function"==typeof define&&define.amd?define(a):l["fontawesome-free-shims"]=a();})();
!function(e){e.fn.countdown=function(t,n){var o=e.extend({date:null,offset:null,day:"Day",days:"Days",hour:"Hour",hours:"Hours",minute:"Minute",minutes:"Minutes",second:"Second",seconds:"Seconds",hideOnComplete:!1},t);o.date||e.error("Date is not defined."),Date.parse(o.date)||e.error("Incorrect date format, it should look like this, 12/24/2012 12:00:00.");var r=this,i=function(){var e=new Date,t=e.getTime()+6e4*e.getTimezoneOffset();return new Date(t+36e5*o.offset)};var d=setInterval(function(){var t=new Date(o.date)-i();if(t<0)return clearInterval(d),o.hideOnComplete&&e(r).hide(),void(n&&"function"==typeof n&&n(r));var s=Math.floor(t/864e5),a=Math.floor(t%864e5/36e5),f=Math.floor(t%36e5/6e4),u=Math.floor(t%6e4/1e3),h=1===s?o.day:o.days,l=1===a?o.hour:o.hours,c=1===f?o.minute:o.minutes,x=1===u?o.second:o.seconds;s=String(s).length>=2?s:"0"+s,a=String(a).length>=2?a:"0"+a,f=String(f).length>=2?f:"0"+f,u=String(u).length>=2?u:"0"+u,r.find(".days").text(s),r.find(".hours").text(a),r.find(".minutes").text(f),r.find(".seconds").text(u),r.find(".days_text").text(h),r.find(".hours_text").text(l),r.find(".minutes_text").text(c),r.find(".seconds_text").text(x)},1e3)}}(jQuery);
var QRCode=function(t){"use strict";var r,e=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then},n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706],o=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},a=function(t){return n[t]},i=function(t){for(var r=0;0!==t;)r++,t>>>=1;return r},u=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');r=t},s=function(){return void 0!==r},f=function(t){return r(t)};function h(t,r){return t(r={exports:{}},r.exports),r.exports}var c=h((function(t,r){r.L={bit:1},r.M={bit:0},r.Q={bit:3},r.H={bit:2},r.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},r.from=function(t,e){if(r.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return r.L;case"m":case"medium":return r.M;case"q":case"quartile":return r.Q;case"h":case"high":return r.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(t){return e}}}));function g(){this.buffer=[],this.length=0}c.L,c.M,c.Q,c.H,c.isValid,g.prototype={get:function(t){var r=Math.floor(t/8);return 1==(this.buffer[r]>>>7-t%8&1)},put:function(t,r){for(var e=0;e<r;e++)this.putBit(1==(t>>>r-e-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var r=Math.floor(this.length/8);this.buffer.length<=r&&this.buffer.push(0),t&&(this.buffer[r]|=128>>>this.length%8),this.length++}};var d=g;function l(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}l.prototype.set=function(t,r,e,n){var o=t*this.size+r;this.data[o]=e,n&&(this.reservedBit[o]=!0)},l.prototype.get=function(t,r){return this.data[t*this.size+r]},l.prototype.xor=function(t,r,e){this.data[t*this.size+r]^=e},l.prototype.isReserved=function(t,r){return this.reservedBit[t*this.size+r]};var v=l,p=h((function(t,r){var e=o;r.getRowColCoords=function(t){if(1===t)return[];for(var r=Math.floor(t/7)+2,n=e(t),o=145===n?26:2*Math.ceil((n-13)/(2*r-2)),a=[n-7],i=1;i<r-1;i++)a[i]=a[i-1]-o;return a.push(6),a.reverse()},r.getPositions=function(t){for(var e=[],n=r.getRowColCoords(t),o=n.length,a=0;a<o;a++)for(var i=0;i<o;i++)0===a&&0===i||0===a&&i===o-1||a===o-1&&0===i||e.push([n[a],n[i]]);return e}}));p.getRowColCoords,p.getPositions;var w=o,m=function(t){var r=w(t);return[[0,0],[r-7,0],[0,r-7]]},E=h((function(t,r){r.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var e=3,n=3,o=40,a=10;function i(t,e,n){switch(t){case r.Patterns.PATTERN000:return(e+n)%2==0;case r.Patterns.PATTERN001:return e%2==0;case r.Patterns.PATTERN010:return n%3==0;case r.Patterns.PATTERN011:return(e+n)%3==0;case r.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(n/3))%2==0;case r.Patterns.PATTERN101:return e*n%2+e*n%3==0;case r.Patterns.PATTERN110:return(e*n%2+e*n%3)%2==0;case r.Patterns.PATTERN111:return(e*n%3+(e+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}r.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},r.from=function(t){return r.isValid(t)?parseInt(t,10):void 0},r.getPenaltyN1=function(t){for(var r=t.size,n=0,o=0,a=0,i=null,u=null,s=0;s<r;s++){o=a=0,i=u=null;for(var f=0;f<r;f++){var h=t.get(s,f);h===i?o++:(o>=5&&(n+=e+(o-5)),i=h,o=1),(h=t.get(f,s))===u?a++:(a>=5&&(n+=e+(a-5)),u=h,a=1)}o>=5&&(n+=e+(o-5)),a>=5&&(n+=e+(a-5))}return n},r.getPenaltyN2=function(t){for(var r=t.size,e=0,o=0;o<r-1;o++)for(var a=0;a<r-1;a++){var i=t.get(o,a)+t.get(o,a+1)+t.get(o+1,a)+t.get(o+1,a+1);4!==i&&0!==i||e++}return e*n},r.getPenaltyN3=function(t){for(var r=t.size,e=0,n=0,a=0,i=0;i<r;i++){n=a=0;for(var u=0;u<r;u++)n=n<<1&2047|t.get(i,u),u>=10&&(1488===n||93===n)&&e++,a=a<<1&2047|t.get(u,i),u>=10&&(1488===a||93===a)&&e++}return e*o},r.getPenaltyN4=function(t){for(var r=0,e=t.data.length,n=0;n<e;n++)r+=t.data[n];return Math.abs(Math.ceil(100*r/e/5)-10)*a},r.applyMask=function(t,r){for(var e=r.size,n=0;n<e;n++)for(var o=0;o<e;o++)r.isReserved(o,n)||r.xor(o,n,i(t,o,n))},r.getBestMask=function(t,e){for(var n=Object.keys(r.Patterns).length,o=0,a=1/0,i=0;i<n;i++){e(i),r.applyMask(i,t);var u=r.getPenaltyN1(t)+r.getPenaltyN2(t)+r.getPenaltyN3(t)+r.getPenaltyN4(t);r.applyMask(i,t),u<a&&(a=u,o=i)}return o}}));E.Patterns,E.isValid,E.getPenaltyN1,E.getPenaltyN2,E.getPenaltyN3,E.getPenaltyN4,E.applyMask,E.getBestMask;var y=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],A=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430],I=function(t,r){switch(r){case c.L:return y[4*(t-1)+0];case c.M:return y[4*(t-1)+1];case c.Q:return y[4*(t-1)+2];case c.H:return y[4*(t-1)+3];default:return}},M=function(t,r){switch(r){case c.L:return A[4*(t-1)+0];case c.M:return A[4*(t-1)+1];case c.Q:return A[4*(t-1)+2];case c.H:return A[4*(t-1)+3];default:return}},N=new Uint8Array(512),B=new Uint8Array(256);!function(){for(var t=1,r=0;r<255;r++)N[r]=t,B[t]=r,256&(t<<=1)&&(t^=285);for(var e=255;e<512;e++)N[e]=N[e-255]}();var C=function(t){return N[t]},P=function(t,r){return 0===t||0===r?0:N[B[t]+B[r]]},R=h((function(t,r){r.mul=function(t,r){for(var e=new Uint8Array(t.length+r.length-1),n=0;n<t.length;n++)for(var o=0;o<r.length;o++)e[n+o]^=P(t[n],r[o]);return e},r.mod=function(t,r){for(var e=new Uint8Array(t);e.length-r.length>=0;){for(var n=e[0],o=0;o<r.length;o++)e[o]^=P(r[o],n);for(var a=0;a<e.length&&0===e[a];)a++;e=e.slice(a)}return e},r.generateECPolynomial=function(t){for(var e=new Uint8Array([1]),n=0;n<t;n++)e=r.mul(e,new Uint8Array([1,C(n)]));return e}}));function T(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}R.mul,R.mod,R.generateECPolynomial,T.prototype.initialize=function(t){this.degree=t,this.genPoly=R.generateECPolynomial(this.degree)},T.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");var r=new Uint8Array(t.length+this.degree);r.set(t);var e=R.mod(r,this.genPoly),n=this.degree-e.length;if(n>0){var o=new Uint8Array(this.degree);return o.set(e,n),o}return e};var L=T,b=function(t){return!isNaN(t)&&t>=1&&t<=40},U="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",x="(?:(?![A-Z0-9 $%*+\\-./:]|"+(U=U.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+",k=new RegExp(U,"g"),F=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),S=new RegExp(x,"g"),D=new RegExp("[0-9]+","g"),Y=new RegExp("[A-Z $%*+\\-./:]+","g"),_=new RegExp("^"+U+"$"),z=new RegExp("^[0-9]+$"),H=new RegExp("^[A-Z0-9 $%*+\\-./:]+$"),J={KANJI:k,BYTE_KANJI:F,BYTE:S,NUMERIC:D,ALPHANUMERIC:Y,testKanji:function(t){return _.test(t)},testNumeric:function(t){return z.test(t)},testAlphanumeric:function(t){return H.test(t)}},K=h((function(t,r){r.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},r.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},r.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},r.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},r.MIXED={bit:-1},r.getCharCountIndicator=function(t,r){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!b(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?t.ccBits[0]:r<27?t.ccBits[1]:t.ccBits[2]},r.getBestModeForData=function(t){return J.testNumeric(t)?r.NUMERIC:J.testAlphanumeric(t)?r.ALPHANUMERIC:J.testKanji(t)?r.KANJI:r.BYTE},r.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},r.isValid=function(t){return t&&t.bit&&t.ccBits},r.from=function(t,e){if(r.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return r.NUMERIC;case"alphanumeric":return r.ALPHANUMERIC;case"kanji":return r.KANJI;case"byte":return r.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(t){return e}}}));K.NUMERIC,K.ALPHANUMERIC,K.BYTE,K.KANJI,K.MIXED,K.getCharCountIndicator,K.getBestModeForData,K.isValid;var O=h((function(t,r){var e=i(7973);function n(t,r){return K.getCharCountIndicator(t,r)+4}function o(t,r){var e=0;return t.forEach((function(t){var o=n(t.mode,r);e+=o+t.getBitsLength()})),e}r.from=function(t,r){return b(t)?parseInt(t,10):r},r.getCapacity=function(t,r,e){if(!b(t))throw new Error("Invalid QR Code version");void 0===e&&(e=K.BYTE);var o=8*(a(t)-M(t,r));if(e===K.MIXED)return o;var i=o-n(e,t);switch(e){case K.NUMERIC:return Math.floor(i/10*3);case K.ALPHANUMERIC:return Math.floor(i/11*2);case K.KANJI:return Math.floor(i/13);case K.BYTE:default:return Math.floor(i/8)}},r.getBestVersionForData=function(t,e){var n,a=c.from(e,c.M);if(Array.isArray(t)){if(t.length>1)return function(t,e){for(var n=1;n<=40;n++){if(o(t,n)<=r.getCapacity(n,e,K.MIXED))return n}}(t,a);if(0===t.length)return 1;n=t[0]}else n=t;return function(t,e,n){for(var o=1;o<=40;o++)if(e<=r.getCapacity(o,n,t))return o}(n.mode,n.getLength(),a)},r.getEncodedBits=function(t){if(!b(t)||t<7)throw new Error("Invalid QR Code version");for(var r=t<<12;i(r)-e>=0;)r^=7973<<i(r)-e;return t<<12|r}}));O.getCapacity,O.getBestVersionForData,O.getEncodedBits;var Q=i(1335),V=function(t,r){for(var e=t.bit<<3|r,n=e<<10;i(n)-Q>=0;)n^=1335<<i(n)-Q;return 21522^(e<<10|n)};function q(t){this.mode=K.NUMERIC,this.data=t.toString()}q.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},q.prototype.getLength=function(){return this.data.length},q.prototype.getBitsLength=function(){return q.getBitsLength(this.data.length)},q.prototype.write=function(t){var r,e,n;for(r=0;r+3<=this.data.length;r+=3)e=this.data.substr(r,3),n=parseInt(e,10),t.put(n,10);var o=this.data.length-r;o>0&&(e=this.data.substr(r),n=parseInt(e,10),t.put(n,3*o+1))};var j=q,$=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function X(t){this.mode=K.ALPHANUMERIC,this.data=t}X.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},X.prototype.getLength=function(){return this.data.length},X.prototype.getBitsLength=function(){return X.getBitsLength(this.data.length)},X.prototype.write=function(t){var r;for(r=0;r+2<=this.data.length;r+=2){var e=45*$.indexOf(this.data[r]);e+=$.indexOf(this.data[r+1]),t.put(e,11)}this.data.length%2&&t.put($.indexOf(this.data[r]),6)};var Z=X;function W(t){this.mode=K.BYTE,this.data=new Uint8Array(function(t){for(var r=[],e=t.length,n=0;n<e;n++){var o=t.charCodeAt(n);if(o>=55296&&o<=56319&&e>n+1){var a=t.charCodeAt(n+1);a>=56320&&a<=57343&&(o=1024*(o-55296)+a-56320+65536,n+=1)}o<128?r.push(o):o<2048?(r.push(o>>6|192),r.push(63&o|128)):o<55296||o>=57344&&o<65536?(r.push(o>>12|224),r.push(o>>6&63|128),r.push(63&o|128)):o>=65536&&o<=1114111?(r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(63&o|128)):r.push(239,191,189)}return new Uint8Array(r).buffer}(t))}W.getBitsLength=function(t){return 8*t},W.prototype.getLength=function(){return this.data.length},W.prototype.getBitsLength=function(){return W.getBitsLength(this.data.length)},W.prototype.write=function(t){for(var r=0,e=this.data.length;r<e;r++)t.put(this.data[r],8)};var G=W;function tt(t){this.mode=K.KANJI,this.data=t}tt.getBitsLength=function(t){return 13*t},tt.prototype.getLength=function(){return this.data.length},tt.prototype.getBitsLength=function(){return tt.getBitsLength(this.data.length)},tt.prototype.write=function(t){var r;for(r=0;r<this.data.length;r++){var e=f(this.data[r]);if(e>=33088&&e<=40956)e-=33088;else{if(!(e>=57408&&e<=60351))throw new Error("Invalid SJIS character: "+this.data[r]+"\nMake sure your charset is UTF-8");e-=49472}e=192*(e>>>8&255)+(255&e),t.put(e,13)}};var rt=tt,et=h((function(t){var r={single_source_shortest_paths:function(t,e,n){var o={},a={};a[e]=0;var i,u,s,f,h,c,g,d=r.PriorityQueue.make();for(d.push(e,0);!d.empty();)for(s in u=(i=d.pop()).value,f=i.cost,h=t[u]||{})h.hasOwnProperty(s)&&(c=f+h[s],g=a[s],(void 0===a[s]||g>c)&&(a[s]=c,d.push(s,c),o[s]=u));if(void 0!==n&&void 0===a[n]){var l=["Could not find a path from ",e," to ",n,"."].join("");throw new Error(l)}return o},extract_shortest_path_from_predecessor_list:function(t,r){for(var e=[],n=r;n;)e.push(n),n=t[n];return e.reverse(),e},find_path:function(t,e,n){var o=r.single_source_shortest_paths(t,e,n);return r.extract_shortest_path_from_predecessor_list(o,n)},PriorityQueue:{make:function(t){var e,n=r.PriorityQueue,o={};for(e in t=t||{},n)n.hasOwnProperty(e)&&(o[e]=n[e]);return o.queue=[],o.sorter=t.sorter||n.default_sorter,o},default_sorter:function(t,r){return t.cost-r.cost},push:function(t,r){var e={value:t,cost:r};this.queue.push(e),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=r})),nt=h((function(t,r){function e(t){return unescape(encodeURIComponent(t)).length}function n(t,r,e){for(var n,o=[];null!==(n=t.exec(e));)o.push({data:n[0],index:n.index,mode:r,length:n[0].length});return o}function o(t){var r,e,o=n(J.NUMERIC,K.NUMERIC,t),a=n(J.ALPHANUMERIC,K.ALPHANUMERIC,t);return s()?(r=n(J.BYTE,K.BYTE,t),e=n(J.KANJI,K.KANJI,t)):(r=n(J.BYTE_KANJI,K.BYTE,t),e=[]),o.concat(a,r,e).sort((function(t,r){return t.index-r.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function a(t,r){switch(r){case K.NUMERIC:return j.getBitsLength(t);case K.ALPHANUMERIC:return Z.getBitsLength(t);case K.KANJI:return rt.getBitsLength(t);case K.BYTE:return G.getBitsLength(t)}}function i(t,r){var e,n=K.getBestModeForData(t);if((e=K.from(r,n))!==K.BYTE&&e.bit<n.bit)throw new Error('"'+t+'" cannot be encoded with mode '+K.toString(e)+".\n Suggested mode is: "+K.toString(n));switch(e!==K.KANJI||s()||(e=K.BYTE),e){case K.NUMERIC:return new j(t);case K.ALPHANUMERIC:return new Z(t);case K.KANJI:return new rt(t);case K.BYTE:return new G(t)}}r.fromArray=function(t){return t.reduce((function(t,r){return"string"==typeof r?t.push(i(r,null)):r.data&&t.push(i(r.data,r.mode)),t}),[])},r.fromString=function(t,n){for(var i=function(t,r){for(var e={},n={start:{}},o=["start"],i=0;i<t.length;i++){for(var u=t[i],s=[],f=0;f<u.length;f++){var h=u[f],c=""+i+f;s.push(c),e[c]={node:h,lastCount:0},n[c]={};for(var g=0;g<o.length;g++){var d=o[g];e[d]&&e[d].node.mode===h.mode?(n[d][c]=a(e[d].lastCount+h.length,h.mode)-a(e[d].lastCount,h.mode),e[d].lastCount+=h.length):(e[d]&&(e[d].lastCount=h.length),n[d][c]=a(h.length,h.mode)+4+K.getCharCountIndicator(h.mode,r))}}o=s}for(var l=0;l<o.length;l++)n[o[l]].end=0;return{map:n,table:e}}(function(t){for(var r=[],n=0;n<t.length;n++){var o=t[n];switch(o.mode){case K.NUMERIC:r.push([o,{data:o.data,mode:K.ALPHANUMERIC,length:o.length},{data:o.data,mode:K.BYTE,length:o.length}]);break;case K.ALPHANUMERIC:r.push([o,{data:o.data,mode:K.BYTE,length:o.length}]);break;case K.KANJI:r.push([o,{data:o.data,mode:K.BYTE,length:e(o.data)}]);break;case K.BYTE:r.push([{data:o.data,mode:K.BYTE,length:e(o.data)}])}}return r}(o(t)),n),u=et.find_path(i.map,"start","end"),s=[],f=1;f<u.length-1;f++)s.push(i.table[u[f]].node);return r.fromArray(function(t){return t.reduce((function(t,r){var e=t.length-1>=0?t[t.length-1]:null;return e&&e.mode===r.mode?(t[t.length-1].data+=r.data,t):(t.push(r),t)}),[])}(s))},r.rawSplit=function(t){return r.fromArray(o(t))}}));function ot(t,r,e){var n,o,a=t.size,i=V(r,e);for(n=0;n<15;n++)o=1==(i>>n&1),n<6?t.set(n,8,o,!0):n<8?t.set(n+1,8,o,!0):t.set(a-15+n,8,o,!0),n<8?t.set(8,a-n-1,o,!0):n<9?t.set(8,15-n-1+1,o,!0):t.set(8,15-n-1,o,!0);t.set(a-8,8,1,!0)}function at(t,r,e){var n=new d;e.forEach((function(r){n.put(r.mode.bit,4),n.put(r.getLength(),K.getCharCountIndicator(r.mode,t)),r.write(n)}));var o=8*(a(t)-M(t,r));for(n.getLengthInBits()+4<=o&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(0);for(var i=(o-n.getLengthInBits())/8,u=0;u<i;u++)n.put(u%2?17:236,8);return function(t,r,e){for(var n=a(r),o=M(r,e),i=n-o,u=I(r,e),s=u-n%u,f=Math.floor(n/u),h=Math.floor(i/u),c=h+1,g=f-h,d=new L(g),l=0,v=new Array(u),p=new Array(u),w=0,m=new Uint8Array(t.buffer),E=0;E<u;E++){var y=E<s?h:c;v[E]=m.slice(l,l+y),p[E]=d.encode(v[E]),l+=y,w=Math.max(w,y)}var A,N,B=new Uint8Array(n),C=0;for(A=0;A<w;A++)for(N=0;N<u;N++)A<v[N].length&&(B[C++]=v[N][A]);for(A=0;A<g;A++)for(N=0;N<u;N++)B[C++]=p[N][A];return B}(n,t,r)}function it(t,r,e,n){var a;if(Array.isArray(t))a=nt.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");var i=r;if(!i){var u=nt.rawSplit(t);i=O.getBestVersionForData(u,e)}a=nt.fromString(t,i||40)}var s=O.getBestVersionForData(a,e);if(!s)throw new Error("The amount of data is too big to be stored in a QR Code");if(r){if(r<s)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+s+".\n")}else r=s;var f=at(r,e,a),h=o(r),c=new v(h);return function(t,r){for(var e=t.size,n=m(r),o=0;o<n.length;o++)for(var a=n[o][0],i=n[o][1],u=-1;u<=7;u++)if(!(a+u<=-1||e<=a+u))for(var s=-1;s<=7;s++)i+s<=-1||e<=i+s||(u>=0&&u<=6&&(0===s||6===s)||s>=0&&s<=6&&(0===u||6===u)||u>=2&&u<=4&&s>=2&&s<=4?t.set(a+u,i+s,!0,!0):t.set(a+u,i+s,!1,!0))}(c,r),function(t){for(var r=t.size,e=8;e<r-8;e++){var n=e%2==0;t.set(e,6,n,!0),t.set(6,e,n,!0)}}(c),function(t,r){for(var e=p.getPositions(r),n=0;n<e.length;n++)for(var o=e[n][0],a=e[n][1],i=-2;i<=2;i++)for(var u=-2;u<=2;u++)-2===i||2===i||-2===u||2===u||0===i&&0===u?t.set(o+i,a+u,!0,!0):t.set(o+i,a+u,!1,!0)}(c,r),ot(c,e,0),r>=7&&function(t,r){for(var e,n,o,a=t.size,i=O.getEncodedBits(r),u=0;u<18;u++)e=Math.floor(u/3),n=u%3+a-8-3,o=1==(i>>u&1),t.set(e,n,o,!0),t.set(n,e,o,!0)}(c,r),function(t,r){for(var e=t.size,n=-1,o=e-1,a=7,i=0,u=e-1;u>0;u-=2)for(6===u&&u--;;){for(var s=0;s<2;s++)if(!t.isReserved(o,u-s)){var f=!1;i<r.length&&(f=1==(r[i]>>>a&1)),t.set(o,u-s,f),-1===--a&&(i++,a=7)}if((o+=n)<0||e<=o){o-=n,n=-n;break}}}(c,f),isNaN(n)&&(n=E.getBestMask(c,ot.bind(null,c,e))),E.applyMask(n,c),ot(c,e,n),{modules:c,version:r,errorCorrectionLevel:e,maskPattern:n,segments:a}}nt.fromArray,nt.fromString,nt.rawSplit;var ut=function(t,r){if(void 0===t||""===t)throw new Error("No input text");var e,n,o=c.M;return void 0!==r&&(o=c.from(r.errorCorrectionLevel,c.M),e=O.from(r.version),n=E.from(r.maskPattern),r.toSJISFunc&&u(r.toSJISFunc)),it(t,e,o,n)},st=h((function(t,r){function e(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");var r=t.slice().replace("#","").split("");if(r.length<3||5===r.length||r.length>8)throw new Error("Invalid hex color: "+t);3!==r.length&&4!==r.length||(r=Array.prototype.concat.apply([],r.map((function(t){return[t,t]})))),6===r.length&&r.push("F","F");var e=parseInt(r.join(""),16);return{r:e>>24&255,g:e>>16&255,b:e>>8&255,a:255&e,hex:"#"+r.slice(0,6).join("")}}r.getOptions=function(t){t||(t={}),t.color||(t.color={});var r=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,n=t.width&&t.width>=21?t.width:void 0,o=t.scale||4;return{width:n,scale:n?4:o,margin:r,color:{dark:e(t.color.dark||"#000000ff"),light:e(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},r.getScale=function(t,r){return r.width&&r.width>=t+2*r.margin?r.width/(t+2*r.margin):r.scale},r.getImageWidth=function(t,e){var n=r.getScale(t,e);return Math.floor((t+2*e.margin)*n)},r.qrToImageData=function(t,e,n){for(var o=e.modules.size,a=e.modules.data,i=r.getScale(o,n),u=Math.floor((o+2*n.margin)*i),s=n.margin*i,f=[n.color.light,n.color.dark],h=0;h<u;h++)for(var c=0;c<u;c++){var g=4*(h*u+c),d=n.color.light;if(h>=s&&c>=s&&h<u-s&&c<u-s)d=f[a[Math.floor((h-s)/i)*o+Math.floor((c-s)/i)]?1:0];t[g++]=d.r,t[g++]=d.g,t[g++]=d.b,t[g]=d.a}}}));st.getOptions,st.getScale,st.getImageWidth,st.qrToImageData;var ft=h((function(t,r){r.render=function(t,r,e){var n=e,o=r;void 0!==n||r&&r.getContext||(n=r,r=void 0),r||(o=function(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}()),n=st.getOptions(n);var a=st.getImageWidth(t.modules.size,n),i=o.getContext("2d"),u=i.createImageData(a,a);return st.qrToImageData(u.data,t,n),function(t,r,e){t.clearRect(0,0,r.width,r.height),r.style||(r.style={}),r.height=e,r.width=e,r.style.height=e+"px",r.style.width=e+"px"}(i,o,a),i.putImageData(u,0,0),o},r.renderToDataURL=function(t,e,n){var o=n;void 0!==o||e&&e.getContext||(o=e,e=void 0),o||(o={});var a=r.render(t,e,o),i=o.type||"image/png",u=o.rendererOpts||{};return a.toDataURL(i,u.quality)}}));function ht(t,r){var e=t.a/255,n=r+'="'+t.hex+'"';return e<1?n+" "+r+'-opacity="'+e.toFixed(2).slice(1)+'"':n}function ct(t,r,e){var n=t+r;return void 0!==e&&(n+=" "+e),n}ft.render,ft.renderToDataURL;var gt=function(t,r,e){var n=st.getOptions(r),o=t.modules.size,a=t.modules.data,i=o+2*n.margin,u=n.color.light.a?"<path "+ht(n.color.light,"fill")+' d="M0 0h'+i+"v"+i+'H0z"/>':"",s="<path "+ht(n.color.dark,"stroke")+' d="'+function(t,r,e){for(var n="",o=0,a=!1,i=0,u=0;u<t.length;u++){var s=Math.floor(u%r),f=Math.floor(u/r);s||a||(a=!0),t[u]?(i++,u>0&&s>0&&t[u-1]||(n+=a?ct("M",s+e,.5+f+e):ct("m",o,0),o=0,a=!1),s+1<r&&t[u+1]||(n+=ct("h",i),i=0)):o++}return n}(a,o,n.margin)+'"/>',f='viewBox="0 0 '+i+" "+i+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(n.width?'width="'+n.width+'" height="'+n.width+'" ':"")+f+' shape-rendering="crispEdges">'+u+s+"</svg>\n";return"function"==typeof e&&e(null,h),h};function dt(t,r,n,o,a){var i=[].slice.call(arguments,1),u=i.length,s="function"==typeof i[u-1];if(!s&&!e())throw new Error("Callback required as last argument");if(!s){if(u<1)throw new Error("Too few arguments provided");return 1===u?(n=r,r=o=void 0):2!==u||r.getContext||(o=n,n=r,r=void 0),new Promise((function(e,a){try{var i=ut(n,o);e(t(i,r,o))}catch(t){a(t)}}))}if(u<2)throw new Error("Too few arguments provided");2===u?(a=n,n=r,r=o=void 0):3===u&&(r.getContext&&void 0===a?(a=o,o=void 0):(a=o,o=n,n=r,r=void 0));try{var f=ut(n,o);a(null,t(f,r,o))}catch(t){a(t)}}var lt=ut,vt=dt.bind(null,ft.render),pt=dt.bind(null,ft.renderToDataURL),wt=dt.bind(null,(function(t,r,e){return gt(t,e)})),mt={create:lt,toCanvas:vt,toDataURL:pt,toString:wt};return t.create=lt,t.default=mt,t.toCanvas=vt,t.toDataURL=pt,t.toString=wt,Object.defineProperty(t,"__esModule",{value:!0}),t}({});