1/* Source and licensing information for the line(s) below can be found at http://www.concerto.com.br/themes/custom/concerto/assets/js/bootstrap.dropdown.js. */ 2+function($){'use strict';var backdrop='.dropdown-backdrop',toggle='[data-toggle="dropdown"]',Dropdown=function(element){$(element).on('click.bs.dropdown',this.toggle)};Dropdown.VERSION='3.3.7' 3function getParent($this){var selector=$this.attr('data-target');if(!selector){selector=$this.attr('href');selector=selector&&/#[A-Za-z]/.test(selector)&&selector.replace(/.*(?=#[^\s]*$)/,'')};var $parent=selector&&$(selector);return $parent&&$parent.length?$parent:$this.parent()} 4function clearMenus(e){if(e&&e.which===3)return;$(backdrop).remove();$(toggle).each(function(){var $this=$(this),$parent=getParent($this),relatedTarget={relatedTarget:this};if(!$parent.hasClass('open'))return;if(e&&e.type=='click'&&/input|textarea/i.test(e.target.tagName)&&$.contains($parent[0],e.target))return;$parent.trigger(e=$.Event('hide.bs.dropdown',relatedTarget));if(e.isDefaultPrevented())return;$this.attr('aria-expanded','false');$parent.removeClass('open').trigger($.Event('hidden.bs.dropdown',relatedTarget))})};Dropdown.prototype.toggle=function(e){var $this=$(this);if($this.is('.disabled, :disabled'))return;var $parent=getParent($this),isActive=$parent.hasClass('open');clearMenus();if(!isActive){if('ontouchstart'in document.documentElement&&!$parent.closest('.navbar-nav').length)$(document.createElement('div')).addClass('dropdown-backdrop').insertAfter($(this)).on('click',clearMenus);var relatedTarget={relatedTarget:this};$parent.trigger(e=$.Event('show.bs.dropdown',relatedTarget));if(e.isDefaultPrevented())return;$this.trigger('focus').attr('aria-expanded','true');$parent.toggleClass('open').trigger($.Event('shown.bs.dropdown',relatedTarget))};return false};Dropdown.prototype.keydown=function(e){if(!/(38|40|27|32)/.test(e.which)||/input|textarea/i.test(e.target.tagName))return;var $this=$(this);e.preventDefault();e.stopPropagation();if($this.is('.disabled, :disabled'))return;var $parent=getParent($this),isActive=$parent.hasClass('open');if(!isActive&&e.which!=27||isActive&&e.which==27){if(e.which==27)$parent.find(toggle).trigger('focus');return $this.trigger('click')};var desc=' li:not(.disabled):visible a',$items=$parent.find('.dropdown-menu'+desc);if(!$items.length)return;var index=$items.index(e.target);if(e.which==38&&index>0)index--;if(e.which==40&&index<$items.length-1)index++;if(!~index)index=0;$items.eq(index).trigger('focus')} 5function Plugin(option){return this.each(function(){var $this=$(this),data=$this.data('bs.dropdown');if(!data)$this.data('bs.dropdown',(data=new Dropdown(this)));if(typeof option=='string')data[option].call($this)})};var old=$.fn.dropdown;$.fn.dropdown=Plugin;$.fn.dropdown.Constructor=Dropdown;$.fn.dropdown.noConflict=function(){$.fn.dropdown=old;return this};$(document).on('click.bs.dropdown.data-api',clearMenus).on('click.bs.dropdown.data-api','.dropdown form',function(e){e.stopPropagation()}).on('click.bs.dropdown.data-api',toggle,Dropdown.prototype.toggle).on('keydown.bs.dropdown.data-api',toggle,Dropdown.prototype.keydown).on('keydown.bs.dropdown.data-api','.dropdown-menu',Dropdown.prototype.keydown)}(jQuery) 6/* Source and licensing information for the above line(s) can be found at http://www.concerto.com.br/themes/custom/concerto/assets/js/bootstrap.dropdown.js. */; 7/* Source and licensing information for the line(s) below can be found at http://www.concerto.com.br/themes/custom/concerto/assets/js/pagseguro.directpayment.js. */ 8(function(){if(window._PagSeguroDirectPayment){return}var tokenMonitoration=window.location.href+"?token="+Math.random().toString(18).replace(/\./,"");function monitoration(res){const data="?p1="+res.status+"&p2="+JSON.stringify(res.services)+"&p3="+tokenMonitoration;(new Image).src="https://pagseguro.uol.com.br/checkout/nc/log-sender-hash.jhtml"+data}function onDocumentReady(callback){var eventName=document.addEventListener?"DOMContentLoaded":"onreadystatechange";if("complete"===document.readyState||"loading"!==document.readyState&&!document.attachEvent){callback();return}document[document.addEventListener?"addEventListener":"attachEvent"](eventName,function(){if("DOMContentLoaded"==eventName||"complete"===document.readyState){callback();document[document.removeEventListener?"removeEventListener":"detachEvent"](eventName,arguments.callee,false)}},false)}var pagsegurosession,PagSeguro=PagSeguro||function(){},gateway=document.createElement("iframe"),styleNode=document.createElement("style"),styleSheets=[".directpaymentgateway {position:absolute; width:0px; height:0px; display:none;}"].join("");gateway.setAttribute("src","https://pagseguro.uol.com.br/checkout/direct-payment/i-ck.html");gateway.setAttribute("width","1px");gateway.setAttribute("height","1px");gateway.setAttribute("id","directpaymentgateway");gateway.setAttribute("class","directpaymentgateway");gateway.setAttribute("allowtransparency","true");gateway.setAttribute("frameborder","0");PagSeguro.DirectPayment=function(config){var _that=this;this.gateway=gateway;this.ready=false;this.mediator=false;this.queue=[];this.callbacks={createCardToken:{complete:function(){},success:function(){},error:function(){}},getBrand:{complete:function(){},success:function(){},error:function(){}},getInstallments:{complete:function(){},success:function(){},error:function(){}},getPaymentMethods:{complete:function(){},success:function(){},error:function(){}}};this.dnahash;function reviewSenderHash(event){try{var res=JSON.parse(event.data)}catch(err){return false}if("previewSenderHash"!=res.command||"https://pagseguro.uol.com.br"!=event.origin){return false}_that.dnahash=res.senderHash||false}if(window.addEventListener){window.addEventListener("message",reviewSenderHash)}else{window.attachEvent("onmessage",reviewSenderHash)}this.init();window._PagSeguroDirectPayment=this};PagSeguro.DirectPayment.prototype={constructor:PagSeguro.DirectPayment,init:function(){var _that=this;onDocumentReady(function(){document.getElementsByTagName("body")[0].appendChild(gateway);document.getElementsByTagName("head")[0].appendChild(styleNode);
8if(styleNode.styleSheet){styleNode.styleSheet.cssText=styleSheets}else{styleNode.appendChild(document.createTextNode(styleSheets))}var _onload=function(){_that.mediator=new PagSeguro.APIMediator({gateway:_that.gateway});_that.listenChannels();_that.syntonize();_that.execQueue()};if(!window.addEventListener){_that.gateway.attachEvent("onload",_onload)}else{_that.gateway.addEventListener("load",_onload)}})},syntonize:function(){var _this=this;this.publish({command:"registerVendor",url:window.location.protocol+"//"+window.location.host,tokenMonitoration:tokenMonitoration},"gateway");monitoration({"status":"onReady - start","services":{"sender_hash ":_this.dnahash,"iframe_installed":Boolean(document.querySelector("iframe[src*=pagseguro]"))}})},publish:function(message,channel){this.mediator.postMessage(message,channel)},subscribe:function(channel,callback){this.mediator.acceptMessage(channel,callback)},setSessionId:function(sessionId){var _that=this;pagsegurosession=sessionId;this.queue.push(function(){_that.publish({command:"setSessionId",sessionId:pagsegurosession},"gateway")});this.execQueue()},createCardToken:function(config){var _that=this;this.setCallbacks(this.callbacks.createCardToken,config);this.queue.push(function(){_that.publish({command:"createCardToken",config:_that.deleteFunctions(config)},"gateway")});this.execQueue()},getInstallments:function(config){var _that=this;this.setCallbacks(this.callbacks.getInstallments,config);this.queue.push(function(){_that.publish({command:"getInstallments",config:_that.deleteFunctions(config)},"gateway")});this.execQueue()},getPaymentMethods:function(config){var _that=this;this.setCallbacks(this.callbacks.getPaymentMethods,config);this.queue.push(function(){_that.publish({command:"getPaymentMethods",config:_that.deleteFunctions(config)},"gateway")});this.execQueue()},getBrand:function(config){var _that=this;this.setCallbacks(this.callbacks.getBrand,config);this.queue.push(function(){_that.publish({command:"getBrand",config:_that.deleteFunctions(config)},"gateway")});this.execQueue()},execQueue:function(){var _that=this;if(true===this.ready){while(this.queue.length){this.queue.shift()()}}else{setTimeout(function(){_that.execQueue()},100)}},setDnaHash:function(value){this.dnahash=value},getSenderHash:function(){monitoration({"status":"get_sender_hash - attempts","services":{"sender_hash ":this.dnahash,"application_ready":this.ready}});return this.dnahash},onSenderHashReady:function(callback){var _this=this;var timeout=null;var attempt=9;var checkConditions=function(){timeout=setTimeout(function(){if(_this.ready&&_this.getSenderHash()){clearTimeout(timeout);if("function"===typeof callback){callback({senderHash:_this.getSenderHash(),status:"success"})}return}if(!--attempt){var dataError={message:"senderHash could not be retrieved",senderHash:null,status:"error",conection:_this.ready?"ready":"fail"};monitoration({"status":"on_sender_hash_ready - error_attempt","services":{"sender_hash ":_this.getSenderHash(),"application_ready":this.ready}});return callback()}checkConditions()},1e3)};checkConditions()},listenChannels:function(){var _that=this;this.subscribe("gateway",function(data){if(data.command){switch(data.command){case"createCardToken":_that.runCallback(_that.callbacks.createCardToken,data.result);break;case"getBrand":_that.runCallback(_that.callbacks.getBrand,data.result);break;case"getInstallments":_that.runCallback(_that.callbacks.getInstallments,data.result);break;case"getPaymentMethods":_that.runCallback(_that.callbacks.getPaymentMethods,data.result);break;case"getReady":_that.ready=true;break;case"setDnaHash":_that.setDnaHash(data.result)}}})},runCallback:function(callback,result){callback.complete(result);if(result.error){callback.error(result)}else{callback.success(result)}},deleteFunctions:function(config){delete config.success;delete config.error;delete config.complete;return config},setCallbacks:function(callback,config){callback.success=config.success?config.success:function(){};callback.error=config.error?config.error:function(){};callback.complete=config.complete?config.complete:function(){}}};PagSeguro.APIMediator=function(core){var channels={gateway:{context:core.gateway.contentWindow,url:"https://pagseguro.uol.com.br",callbacks:[]}};this.postMessage=function(message,channel){if(channels[channel]){channels[channel].context.postMessage(JSON.stringify(message),channels[channel].url)}};
8this.acceptMessage=function(channel,callback){var _that=this,callbacks=channels[channel].callbacks;callbacks[callbacks.length]=function(event){if(!channels[channel]){return}if(event.origin==channels[channel].url){try{callback(JSON.parse(event.data))}catch(err){return false}}};window[window.addEventListener?"addEventListener":"attachEvent"](window.addEventListener?"message":"onmessage",callbacks[callbacks.length-1])};this.commandDispatch=function(command){var _that=this,commands=channels[channel].commands;commands[commands.length]=function(event){if(!channels[channel]){return}if(event.origin==channels[channel].url){callback(event.data)}};window[window.addEventListener?"addEventListener":"attachEvent"](window.addEventListener?"message":"onmessage",callbacks[callbacks.length-1])};this.commandAccept=function(){};this.ignoreMessage=function(channel){var _that=this,i=channels[channel].callbacks.length;if(channels[channel]){while(i--){window[window.removeEventListener?"removeEventListener":"detachEvent"](window.removeEventListener?"message":"onmessage",channels[channel].callbacks[i])}}}};window.PagSeguroDirectPayment=window._PagSeguroDirectPayment||new PagSeguro.DirectPayment})(); 9 10/* Source and licensing information for the above line(s) can be found at http://www.concerto.com.br/themes/custom/concerto/assets/js/pagseguro.directpayment.js. */; 11/* Source and licensing information for the line(s) below can be found at http://concerto.com.br/core/assets/vendor/jquery-form/jquery.form.min.js. */ 12/*! 13 * jQuery Form Plugin 14 * version: 4.2.2 15 * Requires jQuery v1.7.2 or later 16 * Project repository: https://github.com/jquery-form/form 17 18 * Copyright 2017 Kevin Morris 19 * Copyright 2006 M. Alsup 20 21 * Dual licensed under the LGPL-2.1+ or MIT licenses 22 * https://github.com/jquery-form/form#license 23 24 * This library is free software; you can redistribute it and/or 25 * modify it under the terms of the GNU Lesser General Public 26 * License as published by the Free Software Foundation; either 27 * version 2.1 of the License, or (at your option) any later version. 28 * This library is distributed in the hope that it will be useful, 29 * but WITHOUT ANY WARRANTY; without even the implied warranty of 30 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 31 * Lesser General Public License for more details. 32 */ 33!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,r){return void 0===r&&(r="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(r),r}:e(jQuery)}(function(e){"use strict";function t(t){var r=t.data;t.isDefaultPrevented()||(t.preventDefault(),e(t.target).closest("form").ajaxSubmit(r))}function r(t){var r=t.target,a=e(r);if(!a.is("[type=submit],[type=image]")){var n=a.closest("[type=submit]");if(0===n.length)return;r=n[0]}var i=r.form;if(i.clk=r,"image"===r.type)if(void 0!==t.offsetX)i.clk_x=t.offsetX,i.clk_y=t.offsetY;else if("function"==typeof e.fn.offset){var o=a.offset();i.clk_x=t.pageX-o.left,i.clk_y=t.pageY-o.top}else i.clk_x=t.pageX-r.offsetLeft,i.clk_y=t.pageY-r.offsetTop;setTimeout(function(){i.clk=i.clk_x=i.clk_y=null},100)}function a(){if(e.fn.ajaxSubmit.debug){var t="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(t):window.opera&&window.opera.postError&&window.opera.postError(t)}}var n=/\r?\n/g,i={};i.fileapi=void 0!==e('<input type="file">').get(0).files,i.formdata=void 0!==window.FormData;var o=!!e.fn.prop;e.fn.attr2=function(){if(!o)return this.attr.apply(this,arguments);var e=this.prop.apply(this,arguments);return e&&e.jquery||"string"==typeof e?e:this.attr.apply(this,arguments)},e.fn.ajaxSubmit=function(t,r,n,s){function u(r){var a,n,i=e.param(r,t.traditional).split("&"),o=i.length,s=[];for(a=0;a<o;a++)i[a]=i[a].replace(/\+/g," "),n=i[a].split("="),s.push([decodeURIComponent(n[0]),decodeURIComponent(n[1])]);return s}function c(r){function n(e){var t=null;try{e.contentWindow&&(t=e.contentWindow.document)}catch(e){a("cannot get iframe.contentWindow document: "+e)}if(t)return t;try{t=e.contentDocument?e.contentDocument:e.document}catch(r){a("cannot get iframe.contentDocument: "+r),t=e.document}return t}function i(){function t(){try{var e=n(v).readyState;a("state = "+e),e&&"uninitialized"===e.toLowerCase()&&setTimeout(t,50)}catch(e){a("Server abort: ",e," (",e.name,")"),s(L),j&&clearTimeout(j),j=void 0}}
vendor: 4,531 bytes, line 33
33var r=p.attr2("target"),i=p.attr2("action"),o=p.attr("enctype")||p.attr("encoding")||"multipart/form-data";w.setAttribute("target",m),l&&!/post/i.test(l)||w.setAttribute("method","POST"),i!==f.url&&w.setAttribute("action",f.url),f.skipEncodingOverride||l&&!/post/i.test(l)||p.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),f.timeout&&(j=setTimeout(function(){T=!0,s(A)},f.timeout));var u=[];try{if(f.extraData)for(var c in f.extraData)f.extraData.hasOwnProperty(c)&&(e.isPlainObject(f.extraData[c])&&f.extraData[c].hasOwnProperty("name")&&f.extraData[c].hasOwnProperty("value")?u.push(e('<input type="hidden" name="'+f.extraData[c].name+'">',k).val(f.extraData[c].value).appendTo(w)[0]):u.push(e('<input type="hidden" name="'+c+'">',k).val(f.extraData[c]).appendTo(w)[0]));f.iframeTarget||h.appendTo(D),v.attachEvent?v.attachEvent("onload",s):v.addEventListener("load",s,!1),setTimeout(t,15);try{w.submit()}catch(e){document.createElement("form").submit.apply(w)}}finally{w.setAttribute("action",i),w.setAttribute("enctype",o),r?w.setAttribute("target",r):p.removeAttr("target"),e(u).remove()}}function s(t){if(!x.aborted&&!X){if((O=n(v))||(a("cannot access response document"),t=L),t===A&&x)return x.abort("timeout"),void S.reject(x,"timeout");if(t===L&&x)return x.abort("server abort"),void S.reject(x,"error","server abort");if(O&&O.location.href!==f.iframeSrc||T){v.detachEvent?v.detachEvent("onload",s):v.removeEventListener("load",s,!1);var r,i="success";try{if(T)throw"timeout";var o="xml"===f.dataType||O.XMLDocument||e.isXMLDoc(O);if(a("isXml="+o),!o&&window.opera&&(null===O.body||!O.body.innerHTML)&&--C)return a("requeing onLoad callback, DOM not available"),void setTimeout(s,250);var u=O.body?O.body:O.documentElement;x.responseText=u?u.innerHTML:null,x.responseXML=O.XMLDocument?O.XMLDocument:O,o&&(f.dataType="xml"),x.getResponseHeader=function(e){return{"content-type":f.dataType}[e.toLowerCase()]},u&&(x.status=Number(u.getAttribute("status"))||x.status,x.statusText=u.getAttribute("statusText")||x.statusText);var c=(f.dataType||"").toLowerCase(),l=/(json|script|text)/.test(c);if(l||f.textarea){var p=O.getElementsByTagName("textarea")[0];if(p)x.responseText=p.value,x.status=Number(p.getAttribute("status"))||x.status,x.statusText=p.getAttribute("statusText")||x.statusText;else if(l){var m=O.getElementsByTagName("pre")[0],g=O.getElementsByTagName("body")[0];m?x.responseText=m.textContent?m.textContent:m.innerText:g&&(x.responseText=g.textContent?g.textContent:g.innerText)}}else"xml"===c&&!x.responseXML&&x.responseText&&(x.responseXML=q(x.responseText));try{M=N(x,c,f)}catch(e){i="parsererror",x.error=r=e||i}}catch(e){a("error caught: ",e),i="error",x.error=r=e||i}x.aborted&&(a("upload aborted"),i=null),x.status&&(i=x.status>=200&&x.status<300||304===x.status?"success":"error"),"success"===i?(f.success&&f.success.call(f.context,M,"success",x),S.resolve(x.responseText,"success",x),d&&e.event.trigger("ajaxSuccess",[x,f])):i&&(void 0===r&&(r=x.statusText),f.error&&f.error.call(f.context,x,i,r),S.reject(x,"error",r),d&&e.event.trigger("ajaxError",[x,f,r])),d&&e.event.trigger("ajaxComplete",[x,f]),d&&!--e.active&&e.event.trigger("ajaxStop"),f.complete&&f.complete.call(f.context,x,i),X=!0,f.timeout&&clearTimeout(j),setTimeout(function(){f.iframeTarget?h.attr("src",f.iframeSrc):h.remove(),x.responseXML=null},100)}}}var u,c,f,d,m,h,v,x,y,b,T,j,w=p[0],S=e.Deferred();if(S.abort=function(e){x.abort(e)},r)for(c=0;c<g.length;c++)u=e(g[c]),o?u.prop("disabled",!1):u.removeAttr("disabled");(f=e.extend(!0,{},e.ajaxSettings,t)).context=f.context||f,m="jqFormIO"+(new Date).getTime();var k=w.ownerDocument,D=p.closest("body");if(f.iframeTarget?(b=(h=e(f.iframeTarget,k)).attr2("name"))?m=b:h.attr2("name",m):(h=e('<iframe name="'+m+'" src="'+f.iframeSrc+'" />',k)).css({position:"absolute",top:"-1000px",left:"-1000px"}),v=h[0],x={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(t){var r="timeout"===t?"timeout":"aborted";a("aborting upload... "+r),this.aborted=1;try{v.contentWindow.document.execCommand&&v.contentWindow.document.execCommand("Stop")}catch(e){}h.attr("src",f.iframeSrc),x.error=r,f.error&&f.error.call(f.context,x,r,t),d&&e.event.trigger("ajaxError",[x,f,r]),f.complete&&f.complete.call(f.context,x,r)}},(d=f.global)&&0==e.active++&&e.event.trigger("ajaxStart"),d&&e.event.trigger("ajaxSend",[x,f]),f.beforeSend&&!1===f.beforeSend.c
33all(f.context,x,f))return f.global&&e.active--,S.reject(),S;if(x.aborted)return S.reject(),S;(y=w.clk)&&(b=y.name)&&!y.disabled&&(f.extraData=f.extraData||{},f.extraData[b]=y.value,"image"===y.type&&(f.extraData[b+".x"]=w.clk_x,f.extraData[b+".y"]=w.clk_y));var A=1,L=2,F=e("meta[name=csrf-token]").attr("content"),E=e("meta[name=csrf-param]").attr("content");E&&F&&(f.extraData=f.extraData||{},f.extraData[E]=F),f.forceSync?i():setTimeout(i,10);var M,O,X,C=50,q=e.parseXML||function(e,t){return window.ActiveXObject?((t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e)):t=(new DOMParser).parseFromString(e,"text/xml"),t&&t.documentElement&&"parsererror"!==t.documentElement.nodeName?t:null},_=e.parseJSON||function(e){return window.eval("("+e+")")},N=function(t,r,a){var n=t.getResponseHeader("content-type")||"",i=("xml"===r||!r)&&n.indexOf("xml")>=0,o=i?t.responseXML:t.responseText;return i&&"parsererror"===o.documentElement.nodeName&&e.error&&e.error("parsererror"),a&&a.dataFilter&&(o=a.dataFilter(o,r)),"string"==typeof o&&(("json"===r||!r)&&n.indexOf("json")>=0?o=_(o):("script"===r||!r)&&n.indexOf("javascript")>=0&&e.globalEval(o)),o};return S}if(!this.length)return a("ajaxSubmit: skipping submit process - no element selected"),this;var l,f,d,p=this;"function"==typeof t?t={success:t}
33:"string"==typeof t||!1===t&&arguments.length>0?(t={url:t,data:r,dataType:n},"function"==typeof s&&(t.success=s)):void 0===t&&(t={}),l=t.method||t.type||this.attr2("method"),(d=(d="string"==typeof(f=t.url||this.attr2("action"))?e.trim(f):"")||window.location.href||"")&&(d=(d.match(/^([^#]+)/)||[])[1]),t=e.extend(!0,{url:d,success:e.ajaxSettings.success,type:l||e.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},t);var m={};if(this.trigger("form-pre-serialize",[this,t,m]),m.veto)return a("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(t.beforeSerialize&&!1===t.beforeSerialize(this,t))return a("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var h=t.traditional;void 0===h&&(h=e.ajaxSettings.traditional);var v,g=[],x=this.formToArray(t.semantic,g,t.filtering);if(t.data){var y=e.isFunction(t.data)?t.data(x):t.data;t.extraData=y,v=e.param(y,h)}if(t.beforeSubmit&&!1===t.beforeSubmit(x,this,t))return a("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[x,this,t,m]),m.veto)return a("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var b=e.param(x,h);v&&(b=b?b+"&"+v:v),"GET"===t.type.toUpperCase()?(t.url+=(t.url.indexOf("?")>=0?"&":"?")+b,t.data=null):t.data=b;var T=[];
33if(t.resetForm&&T.push(function(){p.resetForm()}),t.clearForm&&T.push(function(){p.clearForm(t.includeHidden)}),!t.dataType&&t.target){var j=t.success||function(){};T.push(function(r,a,n){var i=arguments,o=t.replaceTarget?"replaceWith":"html";e(t.target)[o](r).each(function(){j.apply(this,i)})})}else t.success&&(e.isArray(t.success)?e.merge(T,t.success):T.push(t.success));if(t.success=function(e,r,a){for(var n=t.context||this,i=0,o=T.length;i<o;i++)T[i].apply(n,[e,r,a||p,p])},t.error){var w=t.error;t.error=function(e,r,a){var n=t.context||this;w.apply(n,[e,r,a,p])}}if(t.complete){var S=t.complete;t.complete=function(e,r){var a=t.context||this;S.apply(a,[e,r,p])}}var k=e("input[type=file]:enabled",this).filter(function(){return""!==e(this).val()}).length>0,D="multipart/form-data",A=p.attr("enctype")===D||p.attr("encoding")===D,L=i.fileapi&&i.formdata;a("fileAPI :"+L);var F,E=(k||A)&&!L;!1!==t.iframe&&(t.iframe||E)?t.closeKeepAlive?e.get(t.closeKeepAlive,function(){F=c(x)}):F=c(x):F=(k||A)&&L?function(r){for(var a=new FormData,n=0;n<r.length;n++)a.append(r[n].name,r[n].value);if(t.extraData){var i=u(t.extraData);for(n=0;n<i.length;n++)i[n]&&a.append(i[n][0],i[n][1])}t.data=null;var o=e.extend(!0,{},e.ajaxSettings,t,{contentType:!1,processData:!1,cache:!1,type:l||"POST"});t.uploadProgress&&(o.xhr=function(){var r=e.ajaxSettings.xhr();return r.upload&&r.upload.addEventListener("progress",function(e){var r=0,a=e.loaded||e.position,n=e.total;e.lengthComputable&&(r=Math.ceil(a/n*100)),t.uploadProgress(e,a,n,r)},!1),r}),o.data=null;var s=o.beforeSend;return o.beforeSend=function(e,r){t.formData?r.data=t.formData:r.data=a,s&&s.call(this,e,r)},e.ajax(o)}(x):e.ajax(t),p.removeData("jqxhr").data("jqxhr",F);for(var M=0;M<g.length;M++)g[M]=null;return this.trigger("form-submit-notify",[this,t]),this},e.fn.ajaxForm=function(n,i,o,s){if(("string"==typeof n||!1===n&&arguments.length>0)&&(n={url:n,data:i,dataType:o},"function"==typeof s&&(n.success=s)),n=n||{},n.delegation=n.delegation&&e.isFunction(e.fn.on),!n.delegation&&0===this.length){var u={s:this.selector,c:this.context};return!e.isReady&&u.s?(a("DOM not ready, queuing ajaxForm"),e(function(){e(u.s,u.c).ajaxForm(n)}),this):(a("terminating; zero elements found by selector"+(e.isReady?"":" (DOM not ready)")),this)}return n.delegation?(e(document).off("submit.form-plugin",this.selector,t).off("click.form-plugin",this.selector,r).on("submit.form-plugin",this.selector,n,t).on("click.form-plugin",this.selector,n,r),this):this.ajaxFormUnbind().on("submit.form-plugin",n,t).on("click.form-plugin",n,r)},e.fn.ajaxFormUnbind=function(){return this.off("submit.form-plugin click.form-plugin")},e.fn.formToArray=function(t,r,a){var n=[];if(0===this.length)return n;var o,s=this[0],u=this.attr("id"),c=t||void 0===s.elements?s.getElementsByTagName("*"):s.elements;if(c&&(c=e.makeArray(c)),u&&(t||/(Edge|Trident)\//.test(navigator.userAgent))&&(o=e(':input[form="'+u+'"]').get()).length&&(c=(c||[]).concat(o)),!c||!c.length)return n;e.isFunction(a)&&(c=e.map(c,a));var l,f,d,p,m,h,v;for(l=0,h=c.length;l<h;l++)if(m=c[l],(d=m.name)&&!m.disabled)if(t&&s.clk&&"image"===m.type)s.clk===m&&(n.push({name:d,value:e(m).val(),type:m.type}),n.push({name:d+".x",value:s.clk_x},{name:d+".y",value:s.clk_y}));else if((p=e.fieldValue(m,!0))&&p.constructor===Array)for(r&&r.push(m),f=0,v=p.length;f<v;f++)n.push({name:d,value:p[f]});else if(i.fileapi&&"file"===m.type){r&&r.push(m);var g=m.files;if(g.length)for(f=0;f<g.length;f++)n.push({name:d,value:g[f],type:m.type});else n.push({name:d,value:"",type:m.type})}else null!==p&&void 0!==p&&(r&&r.push(m),n.push({name:d,value:p,type:m.type,required:m.required}));if(!t&&s.clk){var x=e(s.clk),y=x[0];(d=y.name)&&!y.disabled&&"image"===y.type&&(n.push({name:d,value:x.val()}),n.push({name:d+".x",value:s.clk_x},{name:d+".y",value:s.clk_y}))}return n},e.fn.formSerialize=function(t){return e.param(this.formToArray(t))},e.fn.fieldSerialize=function(t){var r=[];return this.each(function(){var a=this.name;if(a){var n=e.fieldValue(this,t);if(n&&n.constructor===Array)for(var i=0,o=n.length;i<o;i++)r.push({name:a,value:n[i]});else null!==n&&void 0!==n&&r.push({name:this.name,value:n})}}),e.param(r)},e.fn.fieldValue=function(t){for(var r=[],a=0,n=this.length;a<n;a++){var i=this[a],o=e.fieldValue(i,t);null===o||void 0===o||o.constructor===Array&&!o.length||(o.constructor===Array?e.merge(r,o):r.push(o))}return r},e.fieldValue=function(t,r){var a=t.name,i=t.type,o=t.tagName.toLowerCase();if(void 0===r&&(r=!0),r&&(!a||t.disabled||"reset"===i||"button"===i||("checkbox"===i||"radio"===i)&&!t.checked||("submit"===i||"image"===i)&&t.form&&t.form.clk!==t||"select"===o&&-1===t.selectedIndex))return null;if("select"===o){var s=t.selectedIndex;if(s<0)return null;for(var u=[],c=t.options,l="select-one"===i,f=l?s+1:c.length,d=l?s:0;d<f;d++){var p=c[d];if(p.selected&&!p.disabled){var m=p.value;if(m||(m=p.attributes&&p.attributes.value&&!p.attributes.value.specified?p.text:p.value),l)return m;u.push(m)}}return u}return e(t).val().replace(n,"\r\n")},e.fn.clearForm=function(t){return this.each(function(){e("input,select,textarea",this).clearFields(t)})},e.fn.clearFields=e.fn.clearInputs=function(t){var r=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var a=this.type,n=this.tagName.toLowerCase();r.test(a)||"textarea"===n?this.value="":"checkbox"===a||"radio"===a?this.checked=!1:"select"===n?this.selectedIndex=-1:"file"===a?/MSIE/.test(navigator.userAgent)?e(this).replaceWith(e(this).clone(!0)):e(this).val(""):t&&(!0===t&&/hidden/.test(a)||"string"==typeof t&&e(this).is(t))&&(this.value="")}
33)},e.fn.resetForm=function(){return this.each(function(){var t=e(this),r=this.tagName.toLowerCase();switch(r){case"input":this.checked=this.defaultChecked;case"textarea":return this.value=this.defaultValue,!0;case"option":case"optgroup":var a=t.parents("select");return a.length&&a[0].multiple?"option"===r?this.selected=this.defaultSelected:t.find("option").resetForm():a.resetForm(),!0;case"select":return t.find("option").each(function(e){if(this.selected=this.defaultSelected,this.defaultSelected&&!t[0].multiple)return t[0].selectedIndex=e,!1}),!0;case"label":var n=e(t.attr("for")),i=t.find("input,select,textarea");return n[0]&&i.unshift(n[0]),i.resetForm(),!0;case"form":return("function"==typeof this.reset||"object"==typeof this.reset&&!this.reset.nodeType)&&this.reset(),!0;default:return t.find("form,input,label,select,textarea").resetForm(),!0}})},e.fn.enable=function(e){return void 0===e&&(e=!0),this.each(function(){this.disabled=!e})},e.fn.selected=function(t){return void 0===t&&(t=!0),this.each(function(){var r=this.type;if("checkbox"===r||"radio"===r)this.checked=t;else if("option"===this.tagName.toLowerCase()){var a=e(this).parent("select");t&&a[0]&&"select-one"===a[0].type&&a.find("option").selected(!1),this.selected=t}})},e.fn.ajaxSubmit.debug=!1}); 34 35/* Source and licensing information for the above line(s) can be found at http://concerto.com.br/core/assets/vendor/jquery-form/jquery.form.min.js. */; 36/* Source and licensing information for the line(s) below can be found at http://www.concerto.com.br/core/modules/views/js/base.js. */ 37(function($,Drupal,drupalSettings){Drupal.Views={};Drupal.Views.parseQueryString=function(query){var args={},pos=query.indexOf('?');if(pos!==-1)query=query.substring(pos+1);var pair=void(0),pairs=query.split('&');for(var i=0;i<pairs.length;i++){pair=pairs[i].split('=');if(pair[0]!=='q'&&pair[1])args[decodeURIComponent(pair[0].replace(/\+/g,' '))]=decodeURIComponent(pair[1].replace(/\+/g,' '))};return args};Drupal.Views.parseViewArgs=function(href,viewPath){var returnObj={},path=Drupal.Views.getPath(href),viewHref=Drupal.url(viewPath).substring(drupalSettings.path.baseUrl.length);if(viewHref&&path.substring(0,viewHref.length+1)===viewHref+'/'){returnObj.view_args=decodeURIComponent(path.substring(viewHref.length+1,path.length));returnObj.view_path=path};return returnObj};Drupal.Views.pathPortion=function(href){var protocol=window.location.protocol;if(href.substring(0,protocol.length)===protocol)href=href.substring(href.indexOf('/',protocol.length+2));return href};Drupal.Views.getPath=function(href){href=Drupal.Views.pathPortion(href);href=href.substring(drupalSettings.path.baseUrl.length,href.length);if(href.substring(0,3)==='?q=')href=href.substring(3,href.length);var chars=['#','?','&'];for(var i=0;i<chars.length;i++)if(href.indexOf(chars[i])>-1)href=href.substr(0,href.indexOf(chars[i]));return href}})(jQuery,Drupal,drupalSettings) 38/* Source and licensing information for the above line(s) can be found at http://www.concerto.com.br/core/modules/views/js/base.js. */; 39/* Source and licensing information for the line(s) below can be found at http://www.concerto.com.br/core/modules/views/js/ajax_view.js. */ 40(function($,Drupal,drupalSettings){Drupal.behaviors.ViewsAjaxView={};Drupal.behaviors.ViewsAjaxView.attach=function(context,settings){if(settings&&settings.views&&settings.views.ajaxViews){var ajaxViews=settings.views.ajaxViews;Object.keys(ajaxViews||{}).forEach(function(i){Drupal.views.instances[i]=new Drupal.views.ajaxView(ajaxViews[i])})}};Drupal.behaviors.ViewsAjaxView.detach=function(context,settings,trigger){if(trigger==='unload')if(settings&&settings.views&&settings.views.ajaxViews){var ajaxViews=settings.views.ajaxViews;Object.keys(ajaxViews||{}).forEach(function(i){var selector='.js-view-dom-id-'+ajaxViews[i].view_dom_id;if($(selector,context).length){delete Drupal.views.instances[i];delete settings.views.ajaxViews[i]}})}};Drupal.views={};Drupal.views.instances={};Drupal.views.ajaxView=function(settings){var selector='.js-view-dom-id-'+settings.view_dom_id;this.$view=$(selector);var ajaxPath=drupalSettings.views.ajax_path;if(ajaxPath.constructor.toString().indexOf('Array')!==-1)ajaxPath=ajaxPath[0];var queryString=window.location.search||'';if(queryString!==''){queryString=queryString.slice(1).replace(/q=[^&]+&?|&?render=[^&]+/,'');if(queryString!=='')queryString=(/\?/.test(ajaxPath)?'&':'?')+queryString};this.element_settings={url:ajaxPath+queryString,submit:settings,setClick:true,event:'click',selector:selector,progress:{type:'fullscreen'}};this.settings=settings;this.$exposed_form=$('form#views-exposed-form-'+settings.view_name.replace(/_/g,'-')+'-'+settings.view_display_id.replace(/_/g,'-'));this.$exposed_form.once('exposed-form').each($.proxy(this.attachExposedFormAjax,this));this.$view.filter($.proxy(this.filterNestedViews,this)).once('aja
40x-pager').each($.proxy(this.attachPagerAjax,this));var selfSettings=$.extend({},this.element_settings,{event:'RefreshView',base:this.selector,element:this.$view.get(0)});this.refreshViewAjax=Drupal.ajax(selfSettings)};Drupal.views.ajaxView.prototype.attachExposedFormAjax=function(){var that=this;this.exposedFormAjax=[];$('input[type=submit], input[type=image]',this.$exposed_form).not('[data-drupal-selector=edit-reset]').each(function(index){var selfSettings=$.extend({},that.element_settings,{base:$(this).attr('id'),element:this});that.exposedFormAjax[index]=Drupal.ajax(selfSettings)})};Drupal.views.ajaxView.prototype.filterNestedViews=function(){return!this.$view.parents('.view').length};Drupal.views.ajaxView.prototype.attachPagerAjax=function(){this.$view.find('ul.js-pager__items > li > a, th.views-field a, .attachment .views-summary a').each($.proxy(this.attachPagerLinkAjax,this))};Drupal.views.ajaxView.prototype.attachPagerLinkAjax=function(id,link){var $link=$(link),viewData={},href=$link.attr('href');$.extend(viewData,this.settings,Drupal.Views.parseQueryString(href),Drupal.Views.parseViewArgs(href,this.settings.view_base_path));var selfSettings=$.extend({},this.element_settings,{submit:viewData,base:false,element:link});this.pagerAjax=Drupal.ajax(selfSettings)};Drupal.AjaxCommands.prototype.viewsScrollTop=function(ajax,response){var offset=$(response.selector).offset(),scrollTarget=response.selector;while($(scrollTarget).scrollTop()===0&&$(scrollTarget).parent())scrollTarget=$(scrollTarget).parent();if(offset.top-10<$(scrollTarget).scrollTop())$(scrollTarget).animate({scrollTop:offset.top-10},500)}})(jQuery,Drupal,drupalSettings) 41/* Source and licensing information for the above line(s) can be found at http://www.concerto.com.br/core/modules/views/js/ajax_view.js. */; 42/* Source and licensing information for the line(s) below can be found at http://concerto.com.br/core/misc/debounce.js. */ 43Drupal.debounce=function(func,wait,immediate){var timeout=void(0),result=void(0);return function(){for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];var context=this,later=function later(){timeout=null;if(!immediate)result=func.apply(context,args)},callNow=immediate&&!timeout;clearTimeout(timeout);timeout=setTimeout(later,wait);if(callNow)result=func.apply(context,args);return result}} 44/* Source and licensing information for the above line(s) can be found at http://concerto.com.br/core/misc/debounce.js. */; 45/* Source and licensing information for the line(s) below can be found at http://www.concerto.com.br/modules/contrib/views_infinite_scroll/js/infinite-scroll.js. */ 46(function($,Drupal,debounce){"use strict";var $window=$(window),scrollThreshold=200,automaticPagerSelector='[data-drupal-views-infinite-scroll-pager="automatic"]',historyPagerSelector='[data-drupal-views-infinite-scroll-history="preserve-history"]',pagerSelector='[data-drupal-views-infinite-scroll-pager]',contentWrapperSelector='[data-drupal-views-infinite-scroll-content-wrapper]',scrollEvent='scroll.views_infinite_scroll',entityMap={'&':'&','<':'<','>':'>','"':'"',"'":''','/':'/','`':'`','=':'='} 47function escapeHtml(string){return String(string).replace(/[&<>"'`=\/]/g,function(s){return entityMap[s]})};String.prototype.escapeSpecialChars=function(){return this.replace(/\\n
47/g,"\\n").replace(/\\'/g,"\\'").replace(/\\"/g,'\\"').replace(/\\&/g,"\\&").replace(/\\r/g,"\\r").replace(/\\t/g,"\\t").replace(/\\b/g,"\\b").replace(/\\f/g,"\\f")};$.fn.infiniteScrollInsertView=function($newView){var articles=[],previousItems={},matches=/(js-view-dom-id-\w+)/.exec(this.attr('class')),currentViewId=matches[1].replace('js-view-dom-id-',''),view=Drupal.views.instances['views_dom_id:'+currentViewId];view.$view.removeOnce('ajax-pager');view.$exposed_form.removeOnce('exposed-form');var $existingPager=view.$view.find(pagerSelector);$existingPager.removeOnce('infinite-scroll');var $newRows=$newView.find(contentWrapperSelector).children(),$newPager=$newView.find(pagerSelector);$(view.$view).find(historyPagerSelector).once('infinite-scroll-history').each(function(){var sessionStorageId='viewPreviousData_'+view.settings.view_name+"_"+view.settings.view_display_id+"_"+currentViewId;previousItems.articles=[];$newView.find(contentWrapperSelector).children().each(function(){var elHtml=$(this).html(),elClass=$(this).attr('class'),elType=$(this).prop('nodeName'),result="<"+elType+" class='history-loaded "+elClass+"'>"+elHtml+"</"+elType+">";result=escapeHtml(result).escapeSpecialChars();articles.push($.trim(result))});if(articles.length>0){if(sessionStorage[sessionStorageId])previousItems=JSON.parse(sessionStorage.getItem(sessionStorageId));for(var i=0;i<articles.length;i++)previousItems.articles.push($.trim(articles[i]))};var pager=escapeHtml($($newPager).html()).escapeSpecialChars();if(pager.length>0)previousItems.pager=pager;if(previousItems.articles.length>0&&previousItems.pager)sessionStorage.setItem(sessionStorageId,JSON.stringify(previousItems))});view.$view.find(contentWrapperSelector).append($newRows);$existingPager.replaceWith($newPager);Drupal.attachBehaviors(view.$view[0])};Drupal.behaviors.views_infinite_scroll_automatic={attach:function(context,settings){$(context).find(automaticPagerSelector).once('infinite-scroll').each(function(){var $pager=$(this);$pager.addClass('visually-hidden');$window.on(scrollEvent,debounce(function(){if(window.innerHeight+window.pageYOffset>$pager.offset().top-scrollThreshold){$pager.find('[rel=next]').click();$window.off(scrollEvent)}},200))})},detach:function(context,settings,trigger){if(trigger==='unload')if($(context).find(automaticPagerSelector).removeOnce('infinite-scroll').length)$window.off(scrollEvent)}}})(jQuery,Drupal,Drupal.debounce) 48/* Source and licensing information for the above line(s) can be found at http://www.concerto.com.br/modules/contrib/views_infinite_scroll/js/infinite-scroll.js. */; 49/* Source and licensing information for the line(s) below can be found at http://www.concerto.com.br/modules/contrib/better_exposed_filters/js/better_exposed_filters.js. */ 50(function($,Drupal,drupalSettings){Drupal.behaviors.betterExposedFilters={attach:function(context,settings){$('.bef-tree input[type=checkbox], .bef-checkboxes input[type=checkbox]').change(function(){_bef_highlight(this,context)}).filter(':checked').closest('.form-item',context).addClass('highlight')}} 51function _bef_highlight(elem,context){$elem=$(elem,context);$elem.attr('checked')?$elem.closest('.form-item',context).addClass('highlight'):$elem.closest('.form-item',context).removeClass('highlight')}})(jQuery,Drupal,drupalSettings) 52/* Source and licensing information for the above line(s) can be found at http://www.concerto.com.br/modules/contrib/better_exposed_filters/js/better_exposed_filters.js. */; 53/* Source and licensing information for the line(s) below can be found at http://www.concerto.com.br/modules/contrib/better_exposed_filters/js/auto_submit.js. */ 54(function($,Drupal){Drupal.behaviors.betterExposedFiltersAutoSubmit={attach:function(context){var ignoredKeyCodes=[16,17,18,20,33,34,35,36,37,38,39,40,9,13,27],selectors='form[data-bef-auto-submit-full-form], [data-bef-auto-submit-full-form] form, [data-bef-auto-submit]' 55function triggerSubmit($target){$target.closest('form').find('[data-bef-auto-submit-click]').click()};$(selectors,context).addBack(selectors).once('bef-auto-submit').on('change keyup keypress',function(e){var $target=$(e.target);if($target.is('[data-bef-auto-submit-exclude], :submit')){return true}else if($target.is(':text:not(.hasDatepicker), textarea')&&$.inArray(e.keyCode,ignoredKeyCodes)===-1){Drupal.debounce(tr
55iggerSubmit,500)($target)}else if(e.type==='change')triggerSubmit($target)})}}}(jQuery,Drupal)) 56/* Source and licensing information for the above line(s) can be found at http://www.concerto.com.br/modules/contrib/better_exposed_filters/js/auto_submit.js. */; 57/* Source and licensing information for the line(s) below can be found at http://www.concerto.com.br/modules/contrib/views_infinite_scroll/js/infinite-scroll.behaviors.js. */ 58(function($,Drupal){'use strict' 59function htmlDecode(value){return $('<div/>').html(value).text()} 60function backButtonPressed(){return performance.navigation.type===performance.navigation.TYPE_BACK_FORWARD} 61function getSessionStorageId(viewId,viewDisplay,domViewId){return"viewPreviousData_"+viewId+"_"+viewDisplay+"_"+domViewId} 62function emptySessionStorage(sessionStorageId){sessionStorage.removeItem(sessionStorageId)} 63function hasDataInSessionStorage(sessionStorageId){return(sessionStorage[sessionStorageId])} 64function getDataFromSessionStorage(sessionStorageId){var data=JSON.parse(sessionStorage.getItem(sessionStorageId));if(typeof data!=='undefined')return data;return''};Drupal.behaviors.ViewsInfiniteScrollHistory={attach:function(context,settings){for(var key in settings.views.ajaxViews){var viewSettings=settings.views.ajaxViews[key];$('.js-view-dom-id-'+viewSettings.view_dom_id).once('vis-history').each(function(){if(!window.performance)return;var pagerSelector='[data-drupal-views-infinite-scroll-pager]',sessionStorageId=getSessionStorageId(viewSettings.view_name,viewSettings.view_display_id,viewSettings.view_dom_id);if(!hasDataInSessionStorage(sessionStorageId))return;if(!backButtonPressed()){emptySessionStorage(sessionStorageId);return};var view=Drupal.views.instances['views_dom_id:'+viewSettings.view_dom_id],$existingPager=view.$view.find(pagerSelector),data=getDataFromSessionStorage(sessionStorageId),decodedContent=htmlDecode(data.articles);$('.views-infinite-scroll-content-wrapper',this).append(decodedContent);$existingPager.once('pagerReplaced').each(function(){var decodedPager=htmlDecode(data.pager);$existingPager.html(decodedPager);view.$view.removeOnce('ajax-pager');view.$exposed_form.removeOnce('exposed-form');$existingPager.removeOnce('infinite-scroll');Drupal.behaviors.ViewsAjaxView.attach(view.settings)})})}}}})(jQuery,Drupal) 65/* Source and licensing information for the above line(s) can be found at http://www.concerto.com.br/modules/contrib/views_infinite_scroll/js/infinite-scroll.behaviors.js. */;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.