var ZordObject=function(){var m=document,c={},p={};this.modules={};this.loadScript=function(b,a,e){if(e&&!c[e]){c[e]={loaded:!1,queue:[]};var d=m.getElementsByTagName("script")[0],f=m.createElement("script");a&&(f.async=1);f.src=b;f.onload=function(){c[e].loaded=!0;c[e].queue.forEach(function(a){a()});c[e].queue=[]};d.parentNode.insertBefore(f,d)}};this.requireModule=function(b){this.loadScript(p.module_files[b],!0,b)};this.set=function(b,a){p[b]=a};this.countdown=function(b){b.length&&(this.requireModule("countdown"), this.callScript("countdown",function(){b.each(function(){var a=$(this),b=ZordCountdown.strToDate(a.data("fim")),d=ZordCountdown.strToDate(a.data("ini")),f=ZordCountdown.strToDate(a.data("inicio")),n=ZordCountdown.strToDate(a.data("fim")),h=a.data("diff-days"),s=a.data("progress"),k=a.data("interval")||1E3,g=a.data("refresh");if(b){ZordCountdown.setTimerValue(a,b);var c=setInterval(function(){ZordCountdown.setTimerValue(a,b,c,g,h);ZordCountdown.setProgressBar(a,f,n,s)},k)}else d&&(ZordCountdown.setTimerValueReverse(a, d),c=setInterval(function(){ZordCountdown.setTimerValueReverse(a,d,c,g);ZordCountdown.setProgressBar(a,f,n,s)},k))})}))};this.swal=function(b){this.requireModule("swal");this.callScript("swal",function(){b.call(null,Swal)})};this.swiper=function(b){this.requireModule("swiper");this.callScript("swiper",function(){b.call(null,Swiper)})};this.callScript=function(b,a){c[b]||(c[b]={loaded:!1,queue:[]});c[b].loaded?a.call():c[b].queue.push(a)};this.ready=function(b){"loading"===m.readyState?m.addEventListener("DOMContentLoaded", b):b.call()};this._callFunction=function(){var b=Array.prototype.slice.call(arguments),a=b.shift();if(this[a])this[a].apply(this,b);else throw Error("Invalid function "+a);};this.validateDateField=function(b,a){function e(a,b,d){return String(a).padStart(2,"0")+"/"+String(b).padStart(2,"0")+"/"+String(d)}function d(a){a?(f.removeClass("field-invalid").addClass("field-valid"),n.removeClass("field-invalid").addClass("field-valid"),h.removeClass("field-invalid").addClass("field-valid")):(f.removeClass("field-valid").addClass("field-invalid"), n.removeClass("field-valid").addClass("field-invalid"),h.removeClass("field-valid").addClass("field-invalid"))}a=a?a:!1;var f=$(b.getForm()).find('select[name="datanasc-dia"]'),n=$(b.getForm()).find('select[name="datanasc-mes"]'),h=$(b.getForm()).find('select[name="datanasc-ano"]'),c=f.val(),k=n.val(),g=h.val();if(this.valiDate(c,k,g))return d(!0),$(b.getForm()).find('input[name="datanasc"]').val(e(c,k,g)),!0;if(a&&""!==c&&""!==k&&""!==g)throw d(!1),$(b.getForm()).find('input[name="datanasc"]').val(""), Error("Data inv\u00e1lida");""!==c&&f.addClass("field-valid");""!==k&&n.addClass("field-valid");""!==g&&h.addClass("field-valid");if(""!==c&&""!==k&&""!==g)throw d(!1),$(b.getForm()).find('input[name="datanasc"]').val(""),Error("Data inv\u00e1lida");return!1};this.valiDate=function(b,a,e,d){b=parseInt(b);a=parseInt(a)-1;e=parseInt(e);if(isNaN(b)||isNaN(a)||isNaN(e))return!1;var c=new Date(e,a,b);return("undefined"===typeof d||d)&&c>new Date||c.getDate()!==b||c.getMonth()!==a||c.getFullYear()!==e? !1:!0};this.autoEmail=function(b){var a="gmail.com outlook.com hotmail.com live.com yahoo.com msn.com icloud.com".split(" ");return b.each(function(){function b(a){var e=$(c).find(".auto-list > li");e.first().addClass("highlighted");e.click(function(){d.val($(this).text());d.blur();d.focus();$(".auto-list").hide();$("button.button-send").removeAttr("disabled");$("#register-form .submit button").removeAttr("disabled")});e.mouseenter(function(){$(this).siblings().removeClass("highlighted")});$(".auto-list").show(); ""==a&&$(".auto-list").hide()}var d=$(this),c=d.closest("form");d.keyup(function(c){$(".auto-list").is(":visible")?(d.attr("autocomplete","off"),$("button.button-send").attr("disabled",!0),$("#register-form .submit button").attr("disabled",!0)):(d.attr("autocomplete","on"),$("button.button-send").removeAttr("disabled"),$("#register-form .submit button").removeAttr("disabled"));try{if(40==c.keyCode||38==c.keyCode){var h;40==c.keyCode?h=$(".highlighted").next():38==c.keyCode&&(h=$(".highlighted").prev()); h.addClass("highlighted").siblings().removeClass("highlighted")}else if(13==c.keyCode)$(".auto-list").is(":visible")&&d.val($(".highlighted").text()),$(".auto-list").hide(),d.blur(),d.focus(),$("button.button-send").removeAttr("disabled"),$("#register-form .submit button").removeAttr("disabled");else{c=[];h=[];var f=$(".auto-list");f.empty().hide();var k=d.val().split("@");if(!(2>k.length||""==k[0])){var g=k[1];if(0===g.length)c=a;else for(var m=new RegExp("^"+g.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")), l=0;lzrd("getEditDistance",g,a[l].slice(0,-1))&&1"+d.val()+""+r+"")}b(r);""==r&&($("button.button-send").removeAttr("disabled"),$("#register-form .submit button").removeAttr("disabled"))}}}}catch(p){$(".auto-list").hide(),console.error("Ocorreu um erro:",p)}})})};this.getEditDistance=function(b,a){var c=0;if(b===a)return c; if(0===b.length)return a.length;if(0===a.length)return b.length;for(var d=0;d