!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,()=>(()=>{var e={40:(e,t,n)=>{var r=n(1966);r.CLIENT_TOKEN_KEY="token",r.COOKIE_SHOPPER_EMAIL_KEY="e",r.COOKIE_CLIENT_TOKEN_KEY="tk",r.COOKIE_SHOPPING_CART_KEY="c",r.COOKIE_SHOPPING_CART_ID_KEY="ci",r.COOKIE_SHOPPING_CART_FREIGHT_KEY="f",r.COOKIE_SHOPPING_CART_TOTAL_PRICE="v",r.COOKIE_SHOPPER_NAME="n",r.COOKIE_SHOPPER_CELL="h",r.COOKIE_WEBPUSH="wp",r.METHOD_DEFAULT_DELAY_TIME=600,r.SHOPPING_CART_KEY="carrinho",r.SHOPPING_CART_ID_KEY="carrinhoId",r.ORDER_ID_KEY="pedidoId",r.ORDER_URL="pedidoUrl",r.SHOPPING_CART_FREIGHT_KEY="frete",r.SHOPPING_CART_TOTAL_PRICE="valorTotal",r.SHOPPER_EMAIL_KEY="email",r.SHOPPER_NAME_KEY="nome",r.SHOPPER_CELL_KEY="celular",r.COOKIE_WEBPUSH_KEY="webPushId",r.CUSTOM_TRIGGER_STARTED="cts",r.PIX_KEY="pixKey",r.PIX_EXPIRATION_DATE="pixExpirationDate",r.COOKIE_SIGNUP_MODEL_KEY="smk",r.PRODUCT_NAME_KEY="produto",r.PRODUCT_CATEGORY_KEY="categoria",r.PRODUCT_QUANTITY_KEY="quantidade",r.PRODUCT_PRICE_KEY="preco",r.PRODUCT_EXTRA_INFO="infoAdd",r.PRODUCT_IMAGE_URL_KEY="imagem",r.PRODUCT_URL_KEY="url",r.IS_BANK_SLIP_KEY="isBoleto",r.IS_EXTERNAL_GATEWAY_KEY="isidgatewayexterno",r.BANK_SLIP_URL="boletoUrl",r.BANK_SLIP_BAR_CODE="boletoCodigoBarras",r.NOT_ACCEPT_EMPTY_EMAIL=!1,r.ACCEPT_EMPTY_CART=!1;var i="undefined"!=typeof ENV_CART_URL_ROOT?ENV_CART_URL_ROOT:null;r.CONVERTION_URL="https://monitor-track.azurewebsites.net/conversao.aspx?",r.CONVERSION_URL_3="https://track3.enviou.com.br/sale?",r.CART_URL_ROOT=i||"https://abcart.enviou.com.br/",r.PING3_URL_ROOT="https://ping3.enviou.com.br",r.CA_SCRIPT_URL="https://ca.enviou.com.br/js",r.CREATE_SHOPPING_CART_ENDPOINT_DEFAULT="".concat(r.CART_URL_ROOT,"onephase.aspx/NovoCarrinho"),r.UPDATE_SHOPPING_CART_ENDPOINT_DEFAULT="".concat(r.CART_URL_ROOT,"onephase.aspx/AtualizaCarrinho"),r.CREATE_SHOPPING_CART_ENDPOINT_TWO_PHASES="".concat(r.CART_URL_ROOT,"twophases.aspx/NovoCarrinho"),r.UPDATE_SHOPPING_CART_ENDPOINT_TWO_PHASES="".concat(r.CART_URL_ROOT,"twophases.aspx/AtualizaCarrinho"),r.UPDATE_SHOPPING_CART_ENDPOINT_NO_RESTART="".concat(r.CART_URL_ROOT,"twophases.aspx/AtualizaCarrinhoSR"),r.CREATE_SHOPPING_CART_ENDPOINT_LI="".concat(r.CART_URL_ROOT,"onephase.aspx/NovoCarrinho"),r.UPDATE_SHOPPING_CART_ENDPOINT_LI="".concat(r.CART_URL_ROOT,"onephase.aspx/AtualizaCarrinho"),r.CONVERT_SHOPPING_CART_ENDPOINT="https://abcart.enviou.com.br/carrinho.aspx/ConversaoCarrinho",r.UPDATE_PUSH_EMAIL_ENDPOINT="https://api.enviou.com.br/PushNotification/UpdateEmailWebPushNotification",r.SCRIPT_STATUS_PING_ENDPOINT="".concat(r.PING3_URL_ROOT,"/script-status"),r.LOG_ENDPOINT="".concat(r.CART_URL_ROOT,"onephase.aspx/addlog"),r.CART_ID_GET_PARAMETER="caid",r.TRACKING_GET_PARAMETER="tkng",r.COOKIE_TRACKING_PARAMETER_KEY="tkng",r.TRACKING_PARAMETER_KEY="tkng",r.COOKIE_TRANSACTION_ITEM_ID="tiid",r.SCRIPT_STATUS_STORAGE_NAME="isScriptStatusActive"},70:(e,t,n)=>{"use strict";var r=n(4802),i=n(5296),o=n(662),a=n(7388),s=n(3909),c=n(9270),u=n(2348),l=n(6089);e.exports=function(e){return new Promise(function(t,n){var d=e.data,f=e.headers;r.isFormData(d)&&delete f["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";f.Authorization="Basic "+btoa(p+":"+m)}var g=s(e.baseURL,e.url);if(h.open(e.method.toUpperCase(),a(g,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in h?c(h.getAllResponseHeaders()):null,o={data:e.responseType&&"text"!==e.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};i(t,n,o),h=null}},h.onabort=function(){h&&(n(l("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(l("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var v=(e.withCredentials||u(g))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;v&&(f[e.xsrfHeaderName]=v)}if("setRequestHeader"in h&&r.forEach(f,function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete f[t]:h.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),e.responseType)try{h.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){h&&(h.abort(),n(e),h=null)}),d||(d=null),h.send(d)})}},102:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},281:(e,t,n)=>{"use strict";var r=n(4802),i=n(7388),o=n(3881),a=n(6112),s=n(6977);function c(e){this.defaults=e,this.interceptors={request:new o,response:new o}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},c.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],function(e){c.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}}),r.forEach(["post","put","patch"],function(e){c.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}}),e.exports=c},348:e=>{var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var s,c=[],u=!1,l=-1;function d(){u&&s&&(u=!1,s.length?c=s.concat(c):l=-1,c.length&&f())}function f(){if(!u){var e=a(d);u=!0;for(var t=c.length;t;){for(s=c,c=[];++l1)for(var n=1;n{"use strict";var r=n(4802);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1966:(e,t,n)=>{var r,i=n(1966);r="undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:{},e.exports=r},2348:(e,t,n)=>{"use strict";var r=n(4802);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},2674:function(e,t,n){var r;function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}e=n.nmd(e),function(t,n){"use strict";"object"===i(e)&&"object"===i(e.exports)?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(n,o){"use strict";var a=[],s=n.document,c=Object.getPrototypeOf,u=a.slice,l=a.concat,d=a.push,f=a.indexOf,h={},p=h.toString,m=h.hasOwnProperty,g=m.toString,v=g.call(Object),y={};function E(e,t){var n=(t=t||s).createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}var _="3.1.1",C=function(e,t){return new C.fn.init(e,t)},T=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,b=/^-ms-/,O=/-([a-z])/g,P=function(e,t){return t.toUpperCase()};function N(e){var t=!!e&&"length"in e&&e.length,n=C.type(e);return"function"!==n&&!C.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}C.fn=C.prototype={jquery:_,constructor:C,length:0,toArray:function(){return u.call(this)},get:function(e){return null==e?u.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=C.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return C.each(this,e)},map:function(e){return this.pushStack(C.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n+~]|"+K+")"+K+"*"),B=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),q=new RegExp(M),$=new RegExp("^"+U+"$"),W={ID:new RegExp("^#("+U+")"),CLASS:new RegExp("^\\.("+U+")"),TAG:new RegExp("^("+U+"|[*])"),ATTR:new RegExp("^"+H),PSEUDO:new RegExp("^"+M),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+k+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,z=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Q=/[+~]/,Z=new RegExp("\\\\([\\da-f]{1,6}"+K+"?|("+K+")|.)","ig"),ee=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},re=function(){f()},ie=ye(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{R.apply(S=D.call(C.childNodes),C.childNodes),S[C.childNodes.length].nodeType}catch(e){R={apply:S.length?function(e,t){w.apply(e,D.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function oe(e,t,r,i){var o,s,u,l,d,p,v,y=t&&t.ownerDocument,T=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==T&&9!==T&&11!==T)return r;if(!i&&((t?t.ownerDocument||t:C)!==h&&f(t),t=t||h,m)){if(11!==T&&(d=X.exec(e)))if(o=d[1]){if(9===T){if(!(u=t.getElementById(o)))return r;if(u.id===o)return r.push(u),r}else if(y&&(u=y.getElementById(o))&&E(t,u)&&u.id===o)return r.push(u),r}else{if(d[2])return R.apply(r,t.getElementsByTagName(e)),r;if((o=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return R.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!N[e+" "]&&(!g||!g.test(e))){if(1!==T)y=t,v=e;else if("object"!==t.nodeName.toLowerCase()){for((l=t.getAttribute("id"))?l=l.replace(te,ne):t.setAttribute("id",l=_),s=(p=a(e)).length;s--;)p[s]="#"+l+" "+ve(p[s]);v=p.join(","),y=Q.test(e)&&me(t.parentNode)||t}if(v)try{return R.apply(r,y.querySelectorAll(v)),r}catch(e){}finally{l===_&&t.removeAttribute("id")}}}return c(e.replace(j,"$1"),t,r,i)}function ae(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function se(e){return e[_]=!0,e}function ce(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function le(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function he(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ie(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function pe(e){return se(function(t){return t=+t,se(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function me(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=oe.support={},o=oe.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},f=oe.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:C;return a!==h&&9===a.nodeType&&a.documentElement?(p=(h=a).documentElement,m=!o(h),C!==h&&(i=h.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",re,!1):i.attachEvent&&i.attachEvent("onunload",re)),n.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ce(function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=J.test(h.getElementsByClassName),n.getById=ce(function(e){return p.appendChild(e).id=_,!h.getElementsByName||!h.getElementsByName(_).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(n.qsa=J.test(h.querySelectorAll))&&(ce(function(e){p.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+K+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+K+"*(?:value|"+k+")"),e.querySelectorAll("[id~="+_+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||g.push(".#.+[+~]")}),ce(function(e){e.innerHTML="";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+K+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(n.matchesSelector=J.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ce(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",M)}),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=J.test(p.compareDocumentPosition),E=t||J.test(p.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},I=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===h||e.ownerDocument===C&&E(C,e)?-1:t===h||t.ownerDocument===C&&E(C,t)?1:l?L(l,e)-L(l,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===h?-1:t===h?1:i?-1:o?1:l?L(l,e)-L(l,t):0;if(i===o)return le(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?le(a[r],s[r]):a[r]===C?-1:s[r]===C?1:0},h):h},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if((e.ownerDocument||e)!==h&&f(e),t=t.replace(B,"='$1']"),n.matchesSelector&&m&&!N[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return oe(t,h,null,[e]).length>0},oe.contains=function(e,t){return(e.ownerDocument||e)!==h&&f(e),E(e,t)},oe.attr=function(e,t){(e.ownerDocument||e)!==h&&f(e);var i=r.attrHandle[t.toLowerCase()],o=i&&A.call(r.attrHandle,t.toLowerCase())?i(e,t,!m):void 0;return void 0!==o?o:n.attributes||!m?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},oe.escape=function(e){return(e+"").replace(te,ne)},oe.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},oe.uniqueSort=function(e){var t,r=[],i=0,o=0;if(d=!n.detectDuplicates,l=!n.sortStable&&e.slice(0),e.sort(I),d){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return l=null,e},i=oe.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},r=oe.selectors={cacheLength:50,createPseudo:se,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Z,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(Z,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||oe.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&oe.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return W.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&q.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Z,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=O[e+" "];return t||(t=new RegExp("(^|"+K+")"+e+"("+K+"|$)"))&&O(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=oe.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(F," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,c){var u,l,d,f,h,p,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!c&&!s,E=!1;if(g){if(o){for(;m;){for(f=t;f=f[m];)if(s?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;p=m="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?g.firstChild:g.lastChild],a&&y){for(E=(h=(u=(l=(d=(f=g)[_]||(f[_]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===T&&u[1])&&u[2],f=h&&g.childNodes[h];f=++h&&f&&f[m]||(E=h=0)||p.pop();)if(1===f.nodeType&&++E&&f===t){l[e]=[T,h,E];break}}else if(y&&(E=h=(u=(l=(d=(f=t)[_]||(f[_]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===T&&u[1]),!1===E)for(;(f=++h&&f&&f[m]||(E=h=0)||p.pop())&&((s?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++E||(y&&((l=(d=f[_]||(f[_]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]=[T,E]),f!==t)););return(E-=i)===r||E%r===0&&E/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||oe.error("unsupported pseudo: "+e);return i[_]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?se(function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=L(e,o[a])]=!(n[r]=o[a])}):function(e){return i(e,0,n)}):i}},pseudos:{not:se(function(e){var t=[],n=[],r=s(e.replace(j,"$1"));return r[_]?se(function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:se(function(e){return function(t){return oe(e,t).length>0}}),contains:se(function(e){return e=e.replace(Z,ee),function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}}),lang:se(function(e){return $.test(e||"")||oe.error("unsupported lang: "+e),e=e.replace(Z,ee).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:he(!1),disabled:he(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return z.test(e.nodeName)},input:function(e){return V.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:pe(function(){return[0]}),last:pe(function(e,t){return[t-1]}),eq:pe(function(e,t,n){return[n<0?n+t:n]}),even:pe(function(e,t){for(var n=0;n=0;)e.push(r);return e}),gt:pe(function(e,t,n){for(var r=n<0?n+t:n;++r1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function _e(e,t,n,r,i){for(var o,a=[],s=0,c=e.length,u=null!=t;s-1&&(o[u]=!(a[u]=d))}}else v=_e(v===a?v.splice(p,v.length):v),i?i(null,a,v,c):R.apply(a,v)})}function Te(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],c=a?1:0,l=ye(function(e){return e===t},s,!0),d=ye(function(e){return L(t,e)>-1},s,!0),f=[function(e,n,r){var i=!a&&(r||n!==u)||((t=n).nodeType?l(e,n,r):d(e,n,r));return t=null,i}];c1&&Ee(f),c>1&&ve(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(j,"$1"),n,c0,i=e.length>0,o=function(o,a,s,c,l){var d,p,g,v=0,y="0",E=o&&[],_=[],C=u,b=o||i&&r.find.TAG("*",l),O=T+=null==C?1:Math.random()||.1,P=b.length;for(l&&(u=a===h||a||l);y!==P&&null!=(d=b[y]);y++){if(i&&d){for(p=0,a||d.ownerDocument===h||(f(d),s=!m);g=e[p++];)if(g(d,a||h,s)){c.push(d);break}l&&(T=O)}n&&((d=!g&&d)&&v--,o&&E.push(d))}if(v+=y,n&&y!==v){for(p=0;g=t[p++];)g(E,_,a,s);if(o){if(v>0)for(;y--;)E[y]||_[y]||(_[y]=x.call(c));_=_e(_)}R.apply(c,_),l&&!o&&_.length>0&&v+t.length>1&&oe.uniqueSort(c)}return l&&(T=O,u=C),E};return n?se(o):o}(o,i)),s.selector=e}return s},c=oe.select=function(e,t,n,i){var o,c,u,l,d,f="function"==typeof e&&e,h=!i&&a(e=f.selector||e);if(n=n||[],1===h.length){if((c=h[0]=h[0].slice(0)).length>2&&"ID"===(u=c[0]).type&&9===t.nodeType&&m&&r.relative[c[1].type]){if(!(t=(r.find.ID(u.matches[0].replace(Z,ee),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(c.shift().value.length)}for(o=W.needsContext.test(e)?0:c.length;o--&&(u=c[o],!r.relative[l=u.type]);)if((d=r.find[l])&&(i=d(u.matches[0].replace(Z,ee),Q.test(c[0].type)&&me(t.parentNode)||t))){if(c.splice(o,1),!(e=i.length&&ve(c)))return R.apply(n,i),n;break}}return(f||s(e,h))(i,t,!m,n,!t||Q.test(e)&&me(t.parentNode)||t),n},n.sortStable=_.split("").sort(I).join("")===_,n.detectDuplicates=!!d,f(),n.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))}),ce(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||ue("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ce(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ue("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||ue(k,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),oe}(n);C.find=I,C.expr=I.selectors,C.expr[":"]=C.expr.pseudos,C.uniqueSort=C.unique=I.uniqueSort,C.text=I.getText,C.isXMLDoc=I.isXML,C.contains=I.contains,C.escapeSelector=I.escape;var A=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&C(e).is(n))break;r.push(e)}return r},S=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},x=C.expr.match.needsContext,w=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,R=/^.[^:#\[\.,]*$/;function D(e,t,n){return C.isFunction(t)?C.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?C.grep(e,function(e){return e===t!==n}):"string"!=typeof t?C.grep(e,function(e){return f.call(t,e)>-1!==n}):R.test(t)?C.filter(t,e,n):(t=C.filter(t,e),C.grep(e,function(e){return f.call(t,e)>-1!==n&&1===e.nodeType}))}C.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?C.find.matchesSelector(r,e)?[r]:[]:C.find.matches(e,C.grep(t,function(e){return 1===e.nodeType}))},C.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(C(e).filter(function(){for(t=0;t1?C.uniqueSort(n):n},filter:function(e){return this.pushStack(D(this,e||[],!1))},not:function(e){return this.pushStack(D(this,e||[],!0))},is:function(e){return!!D(this,"string"==typeof e&&x.test(e)?C(e):e||[],!1).length}});var L,k=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(C.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||L,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:k.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:s,!0)),w.test(r[1])&&C.isPlainObject(t))for(r in t)C.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=s.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):C.isFunction(e)?void 0!==n.ready?n.ready(e):e(C):C.makeArray(e,this)}).prototype=C.fn,L=C(s);var K=/^(?:parents|prev(?:Until|All))/,U={children:!0,contents:!0,next:!0,prev:!0};function H(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t=C(e,this),n=t.length;return this.filter(function(){for(var e=0;e-1:1===n.nodeType&&C.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?C.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?f.call(C(e),this[0]):f.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),C.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return A(e,"parentNode")},parentsUntil:function(e,t,n){return A(e,"parentNode",n)},next:function(e){return H(e,"nextSibling")},prev:function(e){return H(e,"previousSibling")},nextAll:function(e){return A(e,"nextSibling")},prevAll:function(e){return A(e,"previousSibling")},nextUntil:function(e,t,n){return A(e,"nextSibling",n)},prevUntil:function(e,t,n){return A(e,"previousSibling",n)},siblings:function(e){return S((e.parentNode||{}).firstChild,e)},children:function(e){return S(e.firstChild)},contents:function(e){return e.contentDocument||C.merge([],e.childNodes)}},function(e,t){C.fn[e]=function(n,r){var i=C.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=C.filter(r,i)),this.length>1&&(U[e]||C.uniqueSort(i),K.test(e)&&i.reverse()),this.pushStack(i)}});var M=/[^\x20\t\r\n\f]+/g;function F(e){return e}function j(e){throw e}function G(e,t,n){var r;try{e&&C.isFunction(r=e.promise)?r.call(e).done(t).fail(n):e&&C.isFunction(r=e.then)?r.call(e,t,n):t.call(void 0,e)}catch(e){n.call(void 0,e)}}C.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return C.each(e.match(M)||[],function(e,n){t[n]=!0}),t}(e):C.extend({},e);var t,n,r,i,o=[],a=[],s=-1,c=function(){for(i=e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s-1;)o.splice(n,1),n<=s&&s--}),this},has:function(e){return e?C.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||c()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},C.extend({Deferred:function(e){var t=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],r="pending",o={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return C.Deferred(function(n){C.each(t,function(t,r){var i=C.isFunction(e[r[4]])&&e[r[4]];a[r[1]](function(){var e=i&&i.apply(this,arguments);e&&C.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(e,r,o){var a=0;function s(e,t,r,o){return function(){var c=this,u=arguments,l=function(){var n,l;if(!(e=a&&(r!==j&&(c=void 0,u=[n]),t.rejectWith(c,u))}};e?d():(C.Deferred.getStackHook&&(d.stackTrace=C.Deferred.getStackHook()),n.setTimeout(d))}}return C.Deferred(function(n){t[0][3].add(s(0,n,C.isFunction(o)?o:F,n.notifyWith)),t[1][3].add(s(0,n,C.isFunction(e)?e:F)),t[2][3].add(s(0,n,C.isFunction(r)?r:j))}).promise()},promise:function(e){return null!=e?C.extend(e,o):o}},a={};return C.each(t,function(e,n){var i=n[2],s=n[5];o[n[1]]=i.add,s&&i.add(function(){r=s},t[3-e][2].disable,t[0][2].lock),i.add(n[3].fire),a[n[0]]=function(){return a[n[0]+"With"](this===a?void 0:this,arguments),this},a[n[0]+"With"]=i.fireWith}),o.promise(a),e&&e.call(a,a),a},when:function(e){var t=arguments.length,n=t,r=Array(n),i=u.call(arguments),o=C.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?u.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(G(e,o.done(a(n)).resolve,o.reject),"pending"===o.state()||C.isFunction(i[n]&&i[n].then)))return o.then();for(;n--;)G(i[n],a(n),o.reject);return o.promise()}});var Y=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;C.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&Y.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},C.readyException=function(e){n.setTimeout(function(){throw e})};var B=C.Deferred();function q(){s.removeEventListener("DOMContentLoaded",q),n.removeEventListener("load",q),C.ready()}C.fn.ready=function(e){return B.then(e).catch(function(e){C.readyException(e)}),this},C.extend({isReady:!1,readyWait:1,holdReady:function(e){e?C.readyWait++:C.ready(!0)},ready:function(e){(!0===e?--C.readyWait:C.isReady)||(C.isReady=!0,!0!==e&&--C.readyWait>0||B.resolveWith(s,[C]))}}),C.ready.then=B.then,"complete"===s.readyState||"loading"!==s.readyState&&!s.documentElement.doScroll?n.setTimeout(C.ready):(s.addEventListener("DOMContentLoaded",q),n.addEventListener("load",q));var $=function(e,t,n,r,i,o,a){var s=0,c=e.length,u=null==n;if("object"===C.type(n))for(s in i=!0,n)$(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,C.isFunction(r)||(a=!0),u&&(a?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(C(e),n)})),t))for(;s1,null,!0)},removeData:function(e){return this.each(function(){J.remove(this,e)})}}),C.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=z.get(e,t),n&&(!r||C.isArray(n)?r=z.access(e,t,C.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=C.queue(e,t),r=n.length,i=n.shift(),o=C._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){C.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return z.get(e,n)||z.access(e,n,{empty:C.Callbacks("once memory").add(function(){z.remove(e,[t+"queue",n])})})}}),C.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length\x20\t\r\n\f]+)/i,ne=/^$|\/(?:java|ecma)script/i,re={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ie(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&C.nodeName(e,t)?C.merge([e],n):n}function oe(e,t){for(var n=0,r=e.length;n-1)i&&i.push(o);else if(u=C.contains(o.ownerDocument,o),a=ie(d.appendChild(o),"script"),u&&oe(a),n)for(l=0;o=a[l++];)ne.test(o.type||"")&&n.push(o);return d}ae=s.createDocumentFragment().appendChild(s.createElement("div")),(se=s.createElement("input")).setAttribute("type","radio"),se.setAttribute("checked","checked"),se.setAttribute("name","t"),ae.appendChild(se),y.checkClone=ae.cloneNode(!0).cloneNode(!0).lastChild.checked,ae.innerHTML="",y.noCloneChecked=!!ae.cloneNode(!0).lastChild.defaultValue;var le=s.documentElement,de=/^key/,fe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,he=/^([^.]*)(?:\.(.+)|)/;function pe(){return!0}function me(){return!1}function ge(){try{return s.activeElement}catch(e){}}function ve(e,t,n,r,o,a){var s,c;if("object"===i(t)){for(c in"string"!=typeof n&&(r=r||n,n=void 0),t)ve(e,c,n,r,t[c],a);return e}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=me;else if(!o)return e;return 1===a&&(s=o,o=function(e){return C().off(e),s.apply(this,arguments)},o.guid=s.guid||(s.guid=C.guid++)),e.each(function(){C.event.add(this,t,o,r,n)})}C.event={global:{},add:function(e,t,n,r,i){var o,a,s,c,u,l,d,f,h,p,m,g=z.get(e);if(g)for(n.handler&&(n=(o=n).handler,i=o.selector),i&&C.find.matchesSelector(le,i),n.guid||(n.guid=C.guid++),(c=g.events)||(c=g.events={}),(a=g.handle)||(a=g.handle=function(t){return void 0!==C&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(M)||[""]).length;u--;)h=m=(s=he.exec(t[u])||[])[1],p=(s[2]||"").split(".").sort(),h&&(d=C.event.special[h]||{},h=(i?d.delegateType:d.bindType)||h,d=C.event.special[h]||{},l=C.extend({type:h,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&C.expr.match.needsContext.test(i),namespace:p.join(".")},o),(f=c[h])||((f=c[h]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,p,a)||e.addEventListener&&e.addEventListener(h,a)),d.add&&(d.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,l):f.push(l),C.event.global[h]=!0)},remove:function(e,t,n,r,i){var o,a,s,c,u,l,d,f,h,p,m,g=z.hasData(e)&&z.get(e);if(g&&(c=g.events)){for(u=(t=(t||"").match(M)||[""]).length;u--;)if(h=m=(s=he.exec(t[u])||[])[1],p=(s[2]||"").split(".").sort(),h){for(d=C.event.special[h]||{},f=c[h=(r?d.delegateType:d.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=f.length;o--;)l=f[o],!i&&m!==l.origType||n&&n.guid!==l.guid||s&&!s.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(f.splice(o,1),l.selector&&f.delegateCount--,d.remove&&d.remove.call(e,l));a&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,p,g.handle)||C.removeEvent(e,h,g.handle),delete c[h])}else for(h in c)C.event.remove(e,h+t[u],n,r,!0);C.isEmptyObject(c)&&z.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=C.event.fix(e),c=new Array(arguments.length),u=(z.get(this,"events")||{})[s.type]||[],l=C.event.special[s.type]||{};for(c[0]=s,t=1;t=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(o=[],a={},n=0;n-1:C.find(i,this,null,[u]).length),a[i]&&o.push(r);o.length&&s.push({elem:u,handlers:o})}return u=this,c\x20\t\r\n\f]*)[^>]*)\/>/gi,Ee=/\s*$/g;function be(e,t){return C.nodeName(e,"table")&&C.nodeName(11!==t.nodeType?t:t.firstChild,"tr")&&e.getElementsByTagName("tbody")[0]||e}function Oe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Pe(e){var t=Ce.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Ne(e,t){var n,r,i,o,a,s,c,u;if(1===t.nodeType){if(z.hasData(e)&&(o=z.access(e),a=z.set(t,o),u=o.events))for(i in delete a.handle,a.events={},u)for(n=0,r=u[i].length;n1&&"string"==typeof p&&!y.checkClone&&_e.test(p))return e.each(function(i){var o=e.eq(i);m&&(t[0]=p.call(this,i,o.html())),Ae(o,t,n,r)});if(f&&(o=(i=ue(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=C.map(ie(i,"script"),Oe)).length;d")},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),c=C.contains(e.ownerDocument,e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||C.isXMLDoc(e)))for(a=ie(s),r=0,i=(o=ie(e)).length;r0&&oe(a,!c&&ie(e,"script")),s},cleanData:function(e){for(var t,n,r,i=C.event.special,o=0;void 0!==(n=e[o]);o++)if(W(n)){if(t=n[z.expando]){if(t.events)for(r in t.events)i[r]?C.event.remove(n,r):C.removeEvent(n,r,t.handle);n[z.expando]=void 0}n[J.expando]&&(n[J.expando]=void 0)}}}),C.fn.extend({detach:function(e){return Se(this,e,!0)},remove:function(e){return Se(this,e)},text:function(e){return $(this,function(e){return void 0===e?C.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Ae(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||be(this,e).appendChild(e)})},prepend:function(){return Ae(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=be(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Ae(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Ae(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(C.cleanData(ie(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return C.clone(this,e,t)})},html:function(e){return $(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ee.test(e)&&!re[(te.exec(e)||["",""])[1].toLowerCase()]){e=C.htmlPrefilter(e);try{for(;n1)},removeAttr:function(e){return this.each(function(){C.removeAttr(this,e)})}}),C.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?C.prop(e,t,n):(1===o&&C.isXMLDoc(e)||(i=C.attrHooks[t.toLowerCase()]||(C.expr.match.bool.test(t)?xe:void 0)),void 0!==n?null===n?void C.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=C.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&C.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(M);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),xe={set:function(e,t,n){return!1===t?C.removeAttr(e,n):e.setAttribute(n,n),n}},C.each(C.expr.match.bool.source.match(/\w+/g),function(e,t){var n=we[t]||C.find.attr;we[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=we[a],we[a]=i,i=null!=n(e,t,r)?a:null,we[a]=o),i}});var Re=/^(?:input|select|textarea|button)$/i,De=/^(?:a|area)$/i;function Le(e){return(e.match(M)||[]).join(" ")}function ke(e){return e.getAttribute&&e.getAttribute("class")||""}C.fn.extend({prop:function(e,t){return $(this,C.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[C.propFix[e]||e]})}}),C.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&C.isXMLDoc(e)||(t=C.propFix[t]||t,i=C.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=C.find.attr(e,"tabindex");return t?parseInt(t,10):Re.test(e.nodeName)||De.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),y.optSelected||(C.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){C.propFix[this.toLowerCase()]=this}),C.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,c=0;if(C.isFunction(e))return this.each(function(t){C(this).addClass(e.call(this,t,ke(this)))});if("string"==typeof e&&e)for(t=e.match(M)||[];n=this[c++];)if(i=ke(n),r=1===n.nodeType&&" "+Le(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=Le(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,c=0;if(C.isFunction(e))return this.each(function(t){C(this).removeClass(e.call(this,t,ke(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(M)||[];n=this[c++];)if(i=ke(n),r=1===n.nodeType&&" "+Le(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=Le(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=i(e);return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):C.isFunction(e)?this.each(function(n){C(this).toggleClass(e.call(this,n,ke(this),t),t)}):this.each(function(){var t,r,i,o;if("string"===n)for(r=0,i=C(this),o=e.match(M)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||((t=ke(this))&&z.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":z.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+Le(ke(n))+" ").indexOf(t)>-1)return!0;return!1}});var Ke=/\r/g;C.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=C.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,C(this).val()):e)?i="":"number"==typeof i?i+="":C.isArray(i)&&(i=C.map(i,function(e){return null==e?"":e+""})),(t=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=C.valHooks[i.type]||C.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Ke,""):null==n?"":n:void 0}}),C.extend({valHooks:{option:{get:function(e){var t=C.find.attr(e,"value");return null!=t?t:Le(C.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],c=a?o+1:i.length;for(r=o<0?c:a?o:0;r-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),C.each(["radio","checkbox"],function(){C.valHooks[this]={set:function(e,t){if(C.isArray(t))return e.checked=C.inArray(C(e).val(),t)>-1}},y.checkOn||(C.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Ue=/^(?:focusinfocus|focusoutblur)$/;C.extend(C.event,{trigger:function(e,t,r,o){var a,c,u,l,d,f,h,p=[r||s],g=m.call(e,"type")?e.type:e,v=m.call(e,"namespace")?e.namespace.split("."):[];if(c=u=r=r||s,3!==r.nodeType&&8!==r.nodeType&&!Ue.test(g+C.event.triggered)&&(g.indexOf(".")>-1&&(v=g.split("."),g=v.shift(),v.sort()),d=g.indexOf(":")<0&&"on"+g,(e=e[C.expando]?e:new C.Event(g,"object"===i(e)&&e)).isTrigger=o?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:C.makeArray(t,[e]),h=C.event.special[g]||{},o||!h.trigger||!1!==h.trigger.apply(r,t))){if(!o&&!h.noBubble&&!C.isWindow(r)){for(l=h.delegateType||g,Ue.test(l+g)||(c=c.parentNode);c;c=c.parentNode)p.push(c),u=c;u===(r.ownerDocument||s)&&p.push(u.defaultView||u.parentWindow||n)}for(a=0;(c=p[a++])&&!e.isPropagationStopped();)e.type=a>1?l:h.bindType||g,(f=(z.get(c,"events")||{})[e.type]&&z.get(c,"handle"))&&f.apply(c,t),(f=d&&c[d])&&f.apply&&W(c)&&(e.result=f.apply(c,t),!1===e.result&&e.preventDefault());return e.type=g,o||e.isDefaultPrevented()||h._default&&!1!==h._default.apply(p.pop(),t)||!W(r)||d&&C.isFunction(r[g])&&!C.isWindow(r)&&((u=r[d])&&(r[d]=null),C.event.triggered=g,r[g](),C.event.triggered=void 0,u&&(r[d]=u)),e.result}},simulate:function(e,t,n){var r=C.extend(new C.Event,n,{type:e,isSimulated:!0});C.event.trigger(r,null,t)}}),C.fn.extend({trigger:function(e,t){return this.each(function(){C.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return C.event.trigger(e,t,n,!0)}}),C.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){C.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),C.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),y.focusin="onfocusin"in n,y.focusin||C.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){C.event.simulate(t,e.target,C.event.fix(e))};C.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=z.access(r,t);i||r.addEventListener(e,n,!0),z.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=z.access(r,t)-1;i?z.access(r,t,i):(r.removeEventListener(e,n,!0),z.remove(r,t))}}});var He=n.location,Me=C.now(),Fe=/\?/;C.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||C.error("Invalid XML: "+e),t};var je=/\[\]$/,Ge=/\r?\n/g,Ye=/^(?:submit|button|image|reset|file)$/i,Be=/^(?:input|select|textarea|keygen)/i;function qe(e,t,n,r){var o;if(C.isArray(t))C.each(t,function(t,o){n||je.test(e)?r(e,o):qe(e+"["+("object"===i(o)&&null!=o?t:"")+"]",o,n,r)});else if(n||"object"!==C.type(t))r(e,t);else for(o in t)qe(e+"["+o+"]",t[o],n,r)}C.param=function(e,t){var n,r=[],i=function(e,t){var n=C.isFunction(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(C.isArray(e)||e.jquery&&!C.isPlainObject(e))C.each(e,function(){i(this.name,this.value)});else for(n in e)qe(n,e[n],t,i);return r.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=C.prop(this,"elements");return e?C.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!C(this).is(":disabled")&&Be.test(this.nodeName)&&!Ye.test(e)&&(this.checked||!ee.test(e))}).map(function(e,t){var n=C(this).val();return null==n?null:C.isArray(n)?C.map(n,function(e){return{name:t.name,value:e.replace(Ge,"\r\n")}}):{name:t.name,value:n.replace(Ge,"\r\n")}}).get()}});var $e=/%20/g,We=/#.*$/,Ve=/([?&])_=[^&]*/,ze=/^(.*?):[ \t]*([^\r\n]*)$/gm,Je=/^(?:GET|HEAD)$/,Xe=/^\/\//,Qe={},Ze={},et="*/".concat("*"),tt=s.createElement("a");function nt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(M)||[];if(C.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function rt(e,t,n,r){var i={},o=e===Ze;function a(s){var c;return i[s]=!0,C.each(e[s]||[],function(e,s){var u=s(t,n,r);return"string"!=typeof u||o||i[u]?o?!(c=u):void 0:(t.dataTypes.unshift(u),a(u),!1)}),c}return a(t.dataTypes[0])||!i["*"]&&a("*")}function it(e,t){var n,r,i=C.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&C.extend(!0,e,r),e}tt.href=He.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:He.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(He.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":et,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?it(it(e,C.ajaxSettings),t):it(C.ajaxSettings,e)},ajaxPrefilter:nt(Qe),ajaxTransport:nt(Ze),ajax:function(e,t){"object"===i(e)&&(t=e,e=void 0),t=t||{};var r,o,a,c,u,l,d,f,h,p,m=C.ajaxSetup({},t),g=m.context||m,v=m.context&&(g.nodeType||g.jquery)?C(g):C.event,y=C.Deferred(),E=C.Callbacks("once memory"),_=m.statusCode||{},T={},b={},O="canceled",P={readyState:0,getResponseHeader:function(e){var t;if(d){if(!c)for(c={};t=ze.exec(a);)c[t[1].toLowerCase()]=t[2];t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return d?a:null},setRequestHeader:function(e,t){return null==d&&(e=b[e.toLowerCase()]=b[e.toLowerCase()]||e,T[e]=t),this},overrideMimeType:function(e){return null==d&&(m.mimeType=e),this},statusCode:function(e){var t;if(e)if(d)P.always(e[P.status]);else for(t in e)_[t]=[_[t],e[t]];return this},abort:function(e){var t=e||O;return r&&r.abort(t),N(0,t),this}};if(y.promise(P),m.url=((e||m.url||He.href)+"").replace(Xe,He.protocol+"//"),m.type=t.method||t.type||m.method||m.type,m.dataTypes=(m.dataType||"*").toLowerCase().match(M)||[""],null==m.crossDomain){l=s.createElement("a");try{l.href=m.url,l.href=l.href,m.crossDomain=tt.protocol+"//"+tt.host!=l.protocol+"//"+l.host}catch(e){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=C.param(m.data,m.traditional)),rt(Qe,m,t,P),d)return P;for(h in(f=C.event&&m.global)&&0===C.active++&&C.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!Je.test(m.type),o=m.url.replace(We,""),m.hasContent?m.data&&m.processData&&0===(m.contentType||"").indexOf("application/x-www-form-urlencoded")&&(m.data=m.data.replace($e,"+")):(p=m.url.slice(o.length),m.data&&(o+=(Fe.test(o)?"&":"?")+m.data,delete m.data),!1===m.cache&&(o=o.replace(Ve,"$1"),p=(Fe.test(o)?"&":"?")+"_="+Me+++p),m.url=o+p),m.ifModified&&(C.lastModified[o]&&P.setRequestHeader("If-Modified-Since",C.lastModified[o]),C.etag[o]&&P.setRequestHeader("If-None-Match",C.etag[o])),(m.data&&m.hasContent&&!1!==m.contentType||t.contentType)&&P.setRequestHeader("Content-Type",m.contentType),P.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+et+"; q=0.01":""):m.accepts["*"]),m.headers)P.setRequestHeader(h,m.headers[h]);if(m.beforeSend&&(!1===m.beforeSend.call(g,P,m)||d))return P.abort();if(O="abort",E.add(m.complete),P.done(m.success),P.fail(m.error),r=rt(Ze,m,t,P)){if(P.readyState=1,f&&v.trigger("ajaxSend",[P,m]),d)return P;m.async&&m.timeout>0&&(u=n.setTimeout(function(){P.abort("timeout")},m.timeout));try{d=!1,r.send(T,N)}catch(e){if(d)throw e;N(-1,e)}}else N(-1,"No Transport");function N(e,t,i,s){var c,l,h,p,T,b=t;d||(d=!0,u&&n.clearTimeout(u),r=void 0,a=s||"",P.readyState=e>0?4:0,c=e>=200&&e<300||304===e,i&&(p=function(e,t,n){for(var r,i,o,a,s=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){c.unshift(i);break}if(c[0]in n)o=c[0];else{for(i in n){if(!c[0]||e.converters[i+" "+c[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==c[0]&&c.unshift(o),n[o]}(m,P,i)),p=function(e,t,n,r){var i,o,a,s,c,u={},l=e.dataTypes.slice();if(l[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=l.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=o,o=l.shift())if("*"===o)o=c;else if("*"!==c&&c!==o){if(!(a=u[c+" "+o]||u["* "+o]))for(i in u)if((s=i.split(" "))[1]===o&&(a=u[c+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[i]:!0!==u[i]&&(o=s[0],l.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+c+" to "+o}}}return{state:"success",data:t}}(m,p,P,c),c?(m.ifModified&&((T=P.getResponseHeader("Last-Modified"))&&(C.lastModified[o]=T),(T=P.getResponseHeader("etag"))&&(C.etag[o]=T)),204===e||"HEAD"===m.type?b="nocontent":304===e?b="notmodified":(b=p.state,l=p.data,c=!(h=p.error))):(h=b,!e&&b||(b="error",e<0&&(e=0))),P.status=e,P.statusText=(t||b)+"",c?y.resolveWith(g,[l,b,P]):y.rejectWith(g,[P,b,h]),P.statusCode(_),_=void 0,f&&v.trigger(c?"ajaxSuccess":"ajaxError",[P,m,c?l:h]),E.fireWith(g,[P,b]),f&&(v.trigger("ajaxComplete",[P,m]),--C.active||C.event.trigger("ajaxStop")))}return P},getJSON:function(e,t,n){return C.get(e,t,n,"json")},getScript:function(e,t){return C.get(e,void 0,t,"script")}}),C.each(["get","post"],function(e,t){C[t]=function(e,n,r,i){return C.isFunction(n)&&(i=i||r,r=n,n=void 0),C.ajax(C.extend({url:e,type:t,dataType:i,data:n,success:r},C.isPlainObject(e)&&e))}}),C._evalUrl=function(e){return C.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},C.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var ot,at={0:200,1223:204},st=C.ajaxSettings.xhr();y.cors=!!st&&"withCredentials"in st,y.ajax=st=!!st,C.ajaxTransport(function(e){var t,r;if(y.cors||st&&!e.crossDomain)return{send:function(i,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(at[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout(function(){t&&r()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),y.createHTMLDocument=((ot=s.implementation.createHTMLDocument("").body).innerHTML="
",2===ot.childNodes.length),C.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=s.implementation.createHTMLDocument("")).createElement("base")).href=s.location.href,t.head.appendChild(r)):t=s),o=!n&&[],(i=w.exec(e))?[t.createElement(i[1])]:(i=ue([e],t,o),o&&o.length&&C(o).remove(),C.merge([],i.childNodes)));var r,i,o},C.fn.load=function(e,t,n){var r,o,a,s=this,c=e.indexOf(" ");return c>-1&&(r=Le(e.slice(c)),e=e.slice(0,c)),C.isFunction(t)?(n=t,t=void 0):t&&"object"===i(t)&&(o="POST"),s.length>0&&C.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){a=arguments,s.html(r?C("
").append(C.parseHTML(e)).find(r):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,a||[e.responseText,t,e])})}),this},C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){C.fn[t]=function(e){return this.on(t,e)}}),void 0===(r=function(){return C}.apply(t,[]))||(e.exports=r);var ct=n.jQuery,ut=n.$;return C.noConflict=function(e){return n.$===C&&(n.$=ut),e&&n.jQuery===C&&(n.jQuery=ct),C},o||(n.jQuery=n.$=C),C})},2686:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r{"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},3727:(e,t,n)=>{"use strict";var r=n(4802);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},3881:(e,t,n)=>{"use strict";var r=n(4802);function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=i},3909:(e,t,n)=>{"use strict";var r=n(8387),i=n(8310);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},4802:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var i=n(2686),o=Object.prototype.toString;function a(e){return"[object Array]"===o.call(e)}function s(e){return void 0===e}function c(e){return null!==e&&"object"===r(e)}function u(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===o.call(e)}function d(e,t){if(null!=e)if("object"!==r(e)&&(e=[e]),a(e))for(var n=0,i=e.length;n{"use strict";var r=n(348),i=n(4802),o=n(7016),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,u={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==r&&"[object process]"===Object.prototype.toString.call(r))&&(c=n(70)),c),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.isObject(e)?(s(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],function(e){u.headers[e]={}}),i.forEach(["post","put","patch"],function(e){u.headers[e]=i.merge(a)}),e.exports=u},5126:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},5296:(e,t,n)=>{"use strict";var r=n(6089);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},6089:(e,t,n)=>{"use strict";var r=n(2871);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},6112:(e,t,n)=>{"use strict";var r=n(4802),i=n(3727),o=n(9690),a=n(4881);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return s(e),t.data=i(t.data,t.headers,e.transformResponse),t},function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},6977:(e,t,n)=>{"use strict";var r=n(4802);e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function u(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=c(void 0,e[i])):n[i]=c(e[i],t[i])}r.forEach(i,function(e){r.isUndefined(t[e])||(n[e]=c(void 0,t[e]))}),r.forEach(o,u),r.forEach(a,function(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=c(void 0,e[i])):n[i]=c(void 0,t[i])}),r.forEach(s,function(r){r in t?n[r]=c(e[r],t[r]):r in e&&(n[r]=c(void 0,e[r]))});var l=i.concat(o).concat(a).concat(s),d=Object.keys(e).concat(Object.keys(t)).filter(function(e){return-1===l.indexOf(e)});return r.forEach(d,u),n}},7016:(e,t,n)=>{"use strict";var r=n(4802);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},7309:(e,t,n)=>{"use strict";var r=n(102);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new r(e),t(n.reason))})}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i(function(t){e=t}),cancel:e}},e.exports=i},7388:(e,t,n)=>{"use strict";var r=n(4802);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))}))}),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},7389:(e,t,n)=>{var r,i;void 0===(i="function"==typeof(r=function(){function e(){for(var e=0,t={};e1){if("number"==typeof(o=e({path:"/"},r.defaults,o)).expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*o.expires),o.expires=s}try{a=JSON.stringify(i),/^[\{\[]/.test(a)&&(i=a)}catch(e){}return i=n.write?n.write(i,t):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5E|60|7B|7D|7C)/g,decodeURIComponent),t=(t=(t=encodeURIComponent(String(t))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[t,"=",i,o.expires?"; expires="+o.expires.toUTCString():"",o.path?"; path="+o.path:"",o.domain?"; domain="+o.domain:"",o.secure?"; secure":""].join("")}t||(a={});for(var c=document.cookie?document.cookie.split("; "):[],u=/(%[0-9A-Z]{2})+/g,l=0;l{"use strict";var r=n(4802),i=n(2686),o=n(281),a=n(6977);function s(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var c=s(n(4881));c.Axios=o,c.create=function(e){return s(a(c.defaults,e))},c.Cancel=n(102),c.CancelToken=n(7309),c.isCancel=n(9690),c.all=function(e){return Promise.all(e)},c.spread=n(5126),c.isAxiosError=n(9305),e.exports=c,e.exports.default=c},8310:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},8387:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},9270:(e,t,n)=>{"use strict";var r=n(4802),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}}),a):a}},9305:e=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){return"object"===t(e)&&!0===e.isAxiosError}},9690:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);return(()=>{"use strict";function e(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function t(t){return function(){var n=this,r=arguments;return new Promise(function(i,o){var a=t.apply(n,r);function s(t){e(a,i,o,s,c,"next",t)}function c(t){e(a,i,o,s,c,"throw",t)}s(void 0)})}}var r=n(7389),i=n.n(r),o=n(2674),a=n.n(o);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n255)return!1;var i="[a-zA-Z0-9]",o="".concat("[a-zA-Z0-9-]","*").concat(i),a="[\\w!#$%&'*+\\-\\/=?^`{}|]+",s=new RegExp("^".concat(a,"(\\.").concat(a,")*$")),c="".concat(i,"(").concat(o,")*"),u=new RegExp("^".concat(c,"(\\.").concat(c,")+$"));return s.test(n)&&u.test(r)},validateBrazilianPhone:function(e){if(!e||!this.isString(e))return!1;var t=e.replace(/[^0-9]/g,""),n=t.length;if(n<7||n>13)return!1;switch(n){case 8:case 10:case 12:return!0;case 9:return"9"===t[0];case 11:return"9"===t[2];case 13:return"9"===t[4];default:return!1}},convertRealCurrencyToNumber:function(e){var t;if(e)if(this.checkType(e,"string")){var n=e.replace("R$","").trim();t=y(n)}else this.checkType(e,"number")&&e>0&&(t=e);return t||-1},convertEuroCurrencyToNumber:function(e){var t;if(e)if(this.checkType(e,"string")){var n=e.replace("€","").trim();t=y(n)}else this.checkType(e,"number")&&e>0&&(t=e);return t||-1},convertAnyCurrencyToNumber:function(e){var t;if(e)if(this.checkType(e,"string")&&/^[^0-9]*[0-9]+([.,][0-9]{3})*([.,][0-9]+)?$/g.test(e)){var n=e.replace(/[^\d.,]/g,"").trim();t=y(n)}else this.checkType(e,"number")&&e>0&&(t=e);return t||-1},convertPriceHtmlToNumber:function(e){var t=e.html();if(!t)return-1;var n=t.match(/\d+\.?,?\d+/g)||[];return n=[n[0].replace(".","").replace(",",""),n[1]],Number(n.join("."))},createInvisibleImg:function(e,t){var n=document.createElement("img"),r=e;t&&!r.endsWith("?")&&(r="".concat(r,"?")),Object.keys(t).forEach(function(e){r="".concat(r+e,"=").concat(t[e],"&")}),r=r.substring(0,r.length-1),n.src=r,n.height="1",n.width="1",n.style.display="none",n.style.visibility="hidden",document.body.appendChild(n)},hashCode:function(e){var t,n=0;if(0===e.length)return n;for(t=0;t300&&this.accumulatedLog.shift()},watchAccumulatedLogs:function(){window.SHOW_ACCUMULATED_LOGS&&(window.console.log(JSON.stringify(this.accumulatedLog)),window.SHOW_ACCUMULATED_LOGS=!1),setTimeout(this.watchAccumulatedLogs.bind(this),500)},logger:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=g+e;(m._ENVIOU_DEBUG||window._FORCE_DEBUG)&&(m.INFO_LEVEL||window._FORCE_ERROR)?t?window.console.error(n,t):window.console.error(n):(m._ENVIOU_DEBUG||window._FORCE_DEBUG)&&(t?window.console.debug(n,t):window.console.debug(n)),this.accumulateLogInMemory(n)},loggerError:function(e){var t=g+e;(m._ENVIOU_DEBUG||window._FORCE_DEBUG)&&window.console.error(t),this.accumulateLogInMemory(t)},loggerBackend:function(e,t,n,r){var i=v;return i||(i=m.LOG_ENDPOINT),a().ajax({url:i,method:"POST",data:JSON.stringify({email_comprador:e,ordem_comprador:t,erro:n,pagina:r,token:m.CLIENT_TOKEN})})},bindSubtreeModification:function(e,t){var n=new(window.MutationObserver||window.WebKitMutationObserver)(function(){t()}.bind(this));e.length&&n.observe(e[0],{attributes:!0,subtree:!0,characterData:!0})},getDomain:function(){for(var e=0,t=document.domain,n=t.split("."),r="_gd".concat((new Date).getTime());e-1?e.substring(t):""},getRequestParameter:function(e,t){var n=this.getQueryString(e);if(n)for(var r=n.substring(1).split("&"),i=0;i-1?(t=(i=r.substring(n)).indexOf("?"),"/"===i?"":(i=t>-1?i.substring(0,t):i.substring(0)).replace(/\/$/,"")):""},extractDomainFromUrl:function(e){var t,n,r,i,o=/(\w+\.)+\w+/;return this.isString(e)&&""!==e?(n=(t=e.replace(/(https?:)?\/\//,"")).indexOf("/"))>-1&&(i=t.substring(0,n),o.test(i))||(r=t.indexOf("?"))>-1&&(i=t.substring(0,r),o.test(i))?i:o.test(t)?t:null:null},roundNumber:function(e,t){if(t=t||0,this.checkType(e,"number")){var n=Math.pow(10,t);return Math.round(e*n)/n}return 0},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},getMoneyFromText:function(e){var t=e.match(/[0-9]+[.,][0-9]+[.,]?[1-90-9]+/g);return t&&t.length?this.convertAnyCurrencyToNumber(t[0]):-1},validateProductList:function(e){if(!Array.isArray(e)||0===e.length)return!1;for(var t=0;t0},validatePrice:function(e){return this.checkType(e,"number")&&e>=0},validateProductQuantity:function(e){return this.checkType(e,"number")&&e===Math.round(e)&&e>0},validateUrl:function(e){return this.checkType(e,"string")&&/^((https?:)?\/\/)?\w+(\.\w+)+/i.test(e)},validateName:function(e){return this.checkType(e,"string")&&!/[^a-zàòèùìáóéúâôêûãçõ ]+|sem nome|nome completo/i.test(e)},removeAccents:function(e){return"string"==typeof e?e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/[áàãâä]/g,"a")).replace(/[ÁÀÃÂÄ]/g,"A")).replace(/[éèêë]/g,"e")).replace(/[ÉÈÊË]/g,"E")).replace(/[íìîï]/g,"i")).replace(/[ÍÌÎÏ]/g,"I")).replace(/[óòõôö]/g,"o")).replace(/[ÓÒÕÔÖ]/g,"O")).replace(/[úùûü]/g,"u")).replace(/[ÚÙÛÜ]/g,"U")).replace(/[ç]/g,"c")).replace(/[Ç]/g,"C"):null},removeSpecialChars:function(e){if("string"==typeof e){var t=e.replace(/[&/\\#,+()$~%.'":*?<>{}]/g,"");return(t=t.replace("-","")).replace(/[[]]/g,"")}return null},removeExcessSpaces:function(e){if("string"==typeof e)return e.replace(/\s+/g," ")},isAbsoluteUrl:function(e){return new RegExp("^(?:[a-z]+:)?//","i").test(e)},generateSlug:function(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase()},convertToAbsoluteUrl:function(e){var t="";return e?(this.isAbsoluteUrl(e)||(e.startsWith("/")||(t="/"),e="".concat(window.location.host).concat(t).concat(e)),e.startsWith("http")||e.startsWith("https")||(t="",e.startsWith("//")||(t="//"),e="".concat(window.location.protocol).concat(t).concat(e)),e):e},executeWithRetry:function(e,t){var n=t||{intervalMs:600,maxAttempts:1/0,data:null,onRetryLimitReached:function(){return null}},r=0,i=setInterval(function(){r++;try{(e(n.data,r)||r>=n.maxAttempts)&&(r>=n.maxAttempts&&n.onRetryLimitReached(),clearInterval(i))}catch(e){clearInterval(i)}},n.intervalMs)}};function C(e){var t=function(e,t){if("object"!==u(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===u(t)?t:String(t)}function T(e,t){for(var n=0;nP.COOKIE_LENGTH_LIMIT)return void _.loggerError("Could not save data due to limit overflow.")}else if(encodeURI(i).length+s>P.COOKIE_LENGTH_LIMIT)return void _.loggerError("Could not save data due to limit overflow.");a[r]=i}else a=function(e,t,n){return(t=C(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r,i);return e.set(t,a,o)}_.loggerError("Cannot save undefined or null values. Use `removeData` instead.")},r.getData=function(n){var r=e.getJSON(t);return r&&r[n]?r[n]:null},r.removeData=function(r,i){i||(i=n);var o=e.getJSON(t);return!!o&&(delete o[r],e.set(t,o,i))},r.eraseSubdomainCookies=function(n){if(e.getJSON(t)){var r={expires:1/24/60/6e4,domain:"".concat(n,".").concat(_.getDomain()),path:"/"};return e.set(t,{PLACEHOLDER:"placeholder"},r)}},r.get=e.get,r.set=e.set,r.remove=e.remove,this.model=r,r}};var I="enviouNavigationId",A=n(7705),S=n.n(A),x=S().create({baseURL:"https://ping3.enviou.com.br"});function w(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var c=r&&r.prototype instanceof s?r:s,u=Object.create(c.prototype);return R(u,"_invoke",function(n,r,i){var o,s,c,u=0,l=i||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,s=0,c=e,f.n=n,a}};function h(n,r){for(s=n,c=r,t=0;!d&&u&&!i&&t3?(i=p===r)&&(c=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=h&&((i=n<2&&hr||r>p)&&(o[4]=n,o[5]=r,f.n=p,s=0))}if(i||n>1)return a;throw d=!0,r}return function(i,l,p){if(u>1)throw TypeError("Generator is already running");for(d&&1===l&&h(l,p),s=l,c=p;(t=s<2?e:c)||!d;){o||(s?s<3?(s>1&&(f.n=-1),h(s,c)):f.n=c:f.v=c);try{if(u=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(c=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){o=e,s=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,i,o),!0),u}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(R(t={},r,function(){return this}),t),d=u.prototype=s.prototype=Object.create(l);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,R(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,R(d,"constructor",u),R(u,"constructor",c),c.displayName="GeneratorFunction",R(u,i,"GeneratorFunction"),R(d),R(d,i,"Generator"),R(d,r,function(){return this}),R(d,"toString",function(){return"[object Generator]"}),(w=function(){return{w:o,m:f}})()}function R(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}R=function(e,t,n,r){function o(t,n){R(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},R(e,t,n,r)}function D(e,t,n){return L.apply(this,arguments)}function L(){return(L=t(w().m(function e(t,n,r){var i;return w().w(function(e){for(;;)if(0===e.n)return i=btoa(t),e.a(2,x.delete("/navigation-trigger",{params:{t:i,email:n,navigationId:r}}))},e)}))).apply(this,arguments)}function k(e,t){return K.apply(this,arguments)}function K(){return(K=t(w().m(function e(t,n){var r;return w().w(function(e){for(;;)if(0===e.n)return r=btoa(t),e.a(2,x.post("/navigation-trigger/ping",n,{params:{t:r}}))},e)}))).apply(this,arguments)}function U(e){return H.apply(this,arguments)}function H(){return(H=t(w().m(function e(t){var n;return w().w(function(e){for(;;)if(0===e.n)return n=btoa(t),e.a(2,x.get("/navigation-trigger/is-active",{params:{t:n}}).then(function(e){return e.data}).catch(function(){return!1}))},e)}))).apply(this,arguments)}function M(){return(M=t(w().m(function e(t,n){var r;return w().w(function(e){for(;;)if(0===e.n)return r=btoa(t),e.a(2,x.post("/navigation-trigger/send-error",n,{params:{t:r}}))},e)}))).apply(this,arguments)}function F(e,t){return j.apply(this,arguments)}function j(){return(j=t(w().m(function e(t,n){return w().w(function(e){for(;;)if(0===e.n)return e.a(2,x.get("/store/token",{params:{gatewayStoreId:t,domain:n}}).then(function(e){return e.data.storeToken}).catch(function(e){return null}))},e)}))).apply(this,arguments)}var G=n(1966),Y="!ENVIOU ";G.LOG_ENDPOINT;function B(e){return Array.isArray(e)?e.join(", "):""}function q(e,t){return u(e)===t}function $(e){if(!q(e,"string"))return!1;var t=(e=e.trim()).split("@");if(2!==t.length)return!1;var n=t[0],r=t[1];if(r.length>255)return!1;var i="[a-zA-Z0-9]",o="".concat("[a-zA-Z0-9-]","*").concat(i),a="[\\w!#$%&'*+\\-\\/=?^`{}|]+",s=new RegExp("^".concat(a,"(\\.").concat(a,")*$")),c="".concat(i,"(").concat(o,")*"),u=new RegExp("^".concat(c,"(\\.").concat(c,")+$"));return s.test(n)&&u.test(r)}function W(){return!!window._FORCE_DEBUG||!1}function V(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Y+e;W()&&(t?window.console.error(n,t):window.console.error(n))}function z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Y+e;W()&&(t?window.console.debug(n,t):window.console.debug(n))}var J=n(1966),X=b(function e(){O(this,e),this.model=null,J.sendingCreate=!1,this.memoryShoppingCartKey=void 0,this.memoryTotalPrice=void 0,this.setupModel=function(e,t,n){return a().ajaxSetup({method:"GET",contentType:"application/json; charset=UTF-8"}),this.model=N.setup(e,t,n),this.getCardIdFromUrl(),this.getTrackingParameterFromUrl(),this.model},this._createOrUpdateCart=function(e,t,n){var r={};this.model.getData(J.COOKIE_SHOPPING_CART_ID_KEY)?(_.logger("Cart id was found, updating existing cart"),r=this.createDataToUpdateCart(e,t),this.commitUpdateCart(r,n)):J.sendingCreate||(_.logger("Cart id was not found, creating new one"),r=this.createDataForCart(e,t),this.commitCreateCart(r,n))},this.cancelNavigation=function(e,t,n){_.logger("Payload for navigation cancellation: "+"Store: ".concat(e,", email: ").concat(t,", navigationId: ").concat(n)),(t||n)&&D(e,t,n).catch(function(e){return _.logger("Error when trying to cancel existing navigation:",e)})},this.createOrUpdateCart=_.debounce(this._createOrUpdateCart.bind(this),J.METHOD_DEFAULT_DELAY_TIME),this.commitUpdateCart=function(e,t){var n=e?JSON.stringify(e):"{}",r=e[J.SHOPPING_CART_KEY]||e[J.SHOPPING_CART_ID_KEY];if(!J.ACCEPT_EMPTY_CART&&(""===r||'""'===r||"''"===r))return _.loggerError("Failed to update cart because there is no cart info"),null;var i=this.commitUpdatePushEmail;a().ajax({url:J.UPDATE_SHOPPING_CART_ENDPOINT,method:"POST",data:n,success:function(t){_.logger("Success on ".concat(J.UPDATE_SHOPPING_CART_ENDPOINT,": ").concat(JSON.stringify(t)));var n=e[J.SHOPPER_EMAIL_KEY],r=e[J.COOKIE_WEBPUSH_KEY];n&&r&&(_.logger("Trying to update Push email data"),i(n,r))},error:function(e,t,n){_.loggerError("Error: ".concat(JSON.stringify(e),"--").concat(t,"--").concat(n))},complete:function(){"function"==typeof t&&t()}})},this.commitUpdatePushEmail=function(e,t){if(!e||!t)return _.logger("Email or PushId invalid"),null;var n={email:btoa(e),webPushId:t};a().ajax({url:J.UPDATE_PUSH_EMAIL_ENDPOINT,method:"POST",data:JSON.stringify(n),success:function(e){_.logger("Success on ".concat(J.UPDATE_PUSH_EMAIL_ENDPOINT,": ").concat(JSON.stringify(e)))},error:function(e,t,n){_.loggerError("Error: ".concat(JSON.stringify(e),"--").concat(t,"--").concat(n))}})},this.commitCreateCart=function(e,t){var n=e?JSON.stringify(e):"{}";if(!e)return _.loggerError("Failed to commit cart because there is no data to send"),null;var r=e[J.SHOPPING_CART_KEY],i=""===r||'""'===r||"''"===r;if(!J.ACCEPT_EMPTY_CART&&i)return _.loggerError("Failed to commit cart because there is no cart info"),null;var o=e[J.SHOPPER_EMAIL_KEY];if(J.NOT_ACCEPT_EMPTY_EMAIL&&!o)return _.loggerError("Failed to commit cart because there is no email"),null;if(!e[J.CLIENT_TOKEN_KEY])return _.loggerError("Failed to commit cart because there is no token"),null;if(i&&!o)return null;var s=this.commitUpdatePushEmail;J.sendingCreate=!0,a().ajax({url:J.CREATE_SHOPPING_CART_ENDPOINT,method:"POST",data:n,success:function(t){_.logger("Succes on ".concat(J.CREATE_SHOPPING_CART_ENDPOINT,": ").concat(JSON.stringify(t))),this.model.setData(J.COOKIE_SHOPPING_CART_ID_KEY,t.d);try{_.logger("Cart was created or updated - canceling ongoing navigations...");var n=this.model.getData(J.COOKIE_CLIENT_TOKEN_KEY),r=this.model.getData(I);this.cancelNavigation(n,o,r)}catch(e){_.logger("Error when trying to cancel existing navigation:",e)}var i=o,a=e[J.COOKIE_WEBPUSH_KEY];i&&a&&(_.logger("Trying to update Push email data"),s(i,a))}.bind(this),error:function(e,t,n){_.loggerError("Error: ".concat(JSON.stringify(e),"--").concat(t,"--").concat(n))},complete:function(){J.sendingCreate=!1,"function"==typeof t&&t()}.bind(this)})},this.createBaseDataForCart=function(e){var t={},n=this.model.getData(J.COOKIE_SHOPPING_CART_FREIGHT_KEY),r=this.model.getData(J.COOKIE_SHOPPING_CART_TOTAL_PRICE);0===n||n||(n=-1),0===r||r||(r=-1),t[J.SHOPPING_CART_FREIGHT_KEY]=n,t[J.SHOPPING_CART_TOTAL_PRICE]=r;var i=this.model.getData(J.COOKIE_SHOPPER_EMAIL_KEY)||"",o="";try{o=atob(i)}catch(e){}_.validateEmail(i)||_.validateEmail(o)?t[J.SHOPPER_EMAIL_KEY]=o||i:t[J.SHOPPER_EMAIL_KEY]="";var a=this.model.getData(J.COOKIE_SHOPPER_NAME);t[J.SHOPPER_NAME_KEY]=a||"";var s=this.model.getData(J.COOKIE_SHOPPER_CELL);t[J.SHOPPER_CELL_KEY]=s||"";var c=this.model.getData(J.COOKIE_WEBPUSH);return t[J.COOKIE_WEBPUSH_KEY]=c||"",e=e.length?e:"",t[J.SHOPPING_CART_KEY]=JSON.stringify(e),t},this.createDataToUpdateCart=function(e){var t=this.createBaseDataForCart(e);return t[J.SHOPPING_CART_ID_KEY]=this.model.getData(J.COOKIE_SHOPPING_CART_ID_KEY),t},this.createDataForCart=function(e,t){var n=this.createBaseDataForCart(e),r=t?t():void 0;return r&&Object.keys(r).forEach(function(e){n[e]=r[e]}),n[J.CLIENT_TOKEN_KEY]=this.model.getData(J.COOKIE_CLIENT_TOKEN_KEY)||(window.ENVIOU_CA_CONFIG||{}).clientToken,n},this.saveFreight=function(e,t,n){var r=_.convertAnyCurrencyToNumber(e);if(void 0===r||r===Number(this.model.getData(J.COOKIE_SHOPPING_CART_FREIGHT_KEY)))return null;this.model.setData(J.COOKIE_SHOPPING_CART_FREIGHT_KEY,r),this.createOrUpdateCart(t,n)},this.saveTotalPriceAndFreight=function(e,t,n,r){var i=e.length?_.convertAnyCurrencyToNumber(e.html()):-1;i!==Number(this.model.getData(J.COOKIE_SHOPPING_CART_TOTAL_PRICE))&&i>0&&(this.model.setData(J.COOKIE_SHOPPING_CART_TOTAL_PRICE,i),_.logger("Saved new total price: ".concat(i)),this.createOrUpdateCart(n,r)),this.saveFreight(t,n,r)},this.createConvertionConfirmation=function(e,t,n,r,i){r=(r||"").replace(/&/g,"%26"),this.model.getData(J.COOKIE_SHOPPING_CART_ID_KEY)||this.memoryShoppingCartKey?a().ajax({url:J.CONVERT_SHOPPING_CART_ENDPOINT,method:"POST",data:JSON.stringify({carrinhoId:this.model.getData(J.COOKIE_SHOPPING_CART_ID_KEY)||this.memoryShoppingCartKey,token:J.CLIENT_TOKEN,isBoleto:t,pedidoId:e}),error:function(t,n,r){_.loggerError("Error: ".concat(JSON.stringify(t),"--").concat(n,"--").concat(r));var i="";try{i=atob(this.model.getData(J.COOKIE_SHOPPER_EMAIL_KEY)||"")}catch(e){i="not present"}_.loggerBackend(i,e||"","ConversaoCarrinho falhou com erros: ".concat(JSON.stringify(t)," -- ").concat(JSON.stringify(n)," -- ").concat(JSON.stringify(r)),window.location.href)}.bind(this)}):_.loggerBackend(atob(this.model.getData(J.COOKIE_SHOPPER_EMAIL_KEY))||"",e||"","Erro ao tentar converter: id do carrinho nao presente.",window.location.href),this.createConvertion(e,t,n,r,i)},this.createConvertion=function(e,t,n,r,i,o){var s=o||{};if(s[J.SHOPPING_CART_ID_KEY]=this.model.getData(J.COOKIE_SHOPPING_CART_ID_KEY)||this.memoryShoppingCartKey,s[J.CLIENT_TOKEN_KEY]=this.model.getData(J.COOKIE_CLIENT_TOKEN_KEY),s[J.SHOPPING_CART_TOTAL_PRICE]=this.model.getData(J.COOKIE_SHOPPING_CART_TOTAL_PRICE)||this.memoryTotalPrice,s[J.ORDER_ID_KEY]=e,s[J.IS_BANK_SLIP_KEY]=!!t,n&&(s[J.IS_EXTERNAL_GATEWAY_KEY]=n),r&&(s[J.BANK_SLIP_URL]=r.replace(/&/g,"%26")),i&&(s[J.BANK_SLIP_BAR_CODE]=i),void 0===s[J.SHOPPING_CART_ID_KEY]&&void 0===this.memoryShoppingCartKey)return null;var c=this.model.getData(J.COOKIE_TRACKING_PARAMETER_KEY);c&&(s[J.TRACKING_PARAMETER_KEY]=c),this.memoryShoppingCartKey=s[J.SHOPPING_CART_ID_KEY],this.memoryTotalPrice=s[J.SHOPPING_CART_TOTAL_PRICE];var u=document.createElement("img"),l=J.CONVERTION_URL;a().each(s,function(e,t){l="".concat(l+e,"=").concat(t,"&")}),l=l.substring(0,l.length-1),u.src=l,u.height="1",u.width="1",u.style.display="none",document.body.insertBefore(u,document.body.firstChild);var d=this.model.getData(J.COOKIE_TRACKING_PARAMETER_KEY),f=document.createElement("img"),h=J.CONVERSION_URL_3;d&&""!==d&&(h="".concat(h,"tkng=").concat(d)),h.endsWith("?")||(h+="&"),h+="saleValue=".concat(s[J.SHOPPING_CART_TOTAL_PRICE]),h+="&cartId=".concat(s[J.SHOPPING_CART_ID_KEY]),f.src=h,f.height="1",f.width="1",f.style.display="none",document.body.insertBefore(f,document.body.firstChild),this.resetCartData()},this.resetCartData=function(){var e=this.model.getData(J.COOKIE_SHOPPING_CART_KEY);this.model.removeData(J.COOKIE_SHOPPING_CART_KEY),this.model.removeData(J.COOKIE_SHOPPING_CART_ID_KEY),this.model.removeData(J.COOKIE_SHOPPING_CART_FREIGHT_KEY),this.model.removeData(J.COOKIE_SHOPPING_CART_TOTAL_PRICE),this.model.removeData(J.COOKIE_TRACKING_PARAMETER_KEY),_.logger("Erased data for shopping cart: ".concat(JSON.stringify(e)))},this.getCardIdFromUrl=function(){var e=_.getRequestParameter(window.location.search,J.CART_ID_GET_PARAMETER);if(e){var t=e;try{t=atob(e)}catch(e){_.loggerBackend(this.model.getData(J.COOKIE_SHOPPER_EMAIL_KEY),null,"".concat(e.message,"\n").concat(e.stack),window.location.href)}/^[0-9a-fA-F]{24}$/.test(t)&&(_.logger("Cart id found in url: ".concat(t)),this.model.setData(J.COOKIE_SHOPPING_CART_ID_KEY,t))}},this.getTrackingParameterFromUrl=function(){var e=_.getRequestParameter(window.location.search,J.TRACKING_GET_PARAMETER);e&&this.model.setData(J.COOKIE_TRACKING_PARAMETER_KEY,e)},this.checkForScriptActiveStatusAsync=function(e,t){try{var n=sessionStorage.getItem(J.SCRIPT_STATUS_STORAGE_NAME);n?"true"==n?t():V("CA script will not run due to inactive tool"):this.isScriptStatusActiveAsync(e).then(function(e){var n=e.data;window.sessionStorage.setItem(J.SCRIPT_STATUS_STORAGE_NAME,n),n&&t()})}catch(e){return!1}},this.isScriptStatusActiveAsync=function(e){var t=btoa(e);return S().create({baseURL:J.SCRIPT_STATUS_PING_ENDPOINT}).get("/is-active",{params:{t}})}}),Q=n(1966),Z="_lfi",ee="_lfe",te="lm",ne="e",re="_ga",ie="https://life.enviou.com.br/",oe="uid",ae=function(){return b(function e(t,n,r,i,o,s){O(this,e),a().ajaxSetup({method:"GET",contentType:"application/json; charset=UTF-8"}),this.model=t,this.lifeModel=N.setup(n,r,i),this.lifeModel.remove("_lfem"),void 0===this.lifeModel.getData(te)&&this.lifeModel.setData(te,!1),void 0===this.lifeModel.get(Z)&&this.lifeModel.set(Z,0),void 0===this.lifeModel.get(ee)&&this.lifeModel.set(ee,0),this.registerLifeId(),this.saveShopperEmailFromLifeEmail(o,s)},[{key:"registerLifeId",value:function(){var e=Number(this.lifeModel.get(Z));if(this.lifeModel.getData(ne)||e>2)return _.logger("Will not register Life Id. Email already exists or exceed max attempts."),null;var t=this.lifeModel.getData(re);t||(t=_.guid(),this.lifeModel.setData(re,t));var n={};n[Q.CLIENT_TOKEN_KEY]=Q.CLIENT_TOKEN,n[oe]=t,_.createInvisibleImg(ie,n),_.logger("Registered Life Id: "+t+". Attempt #"+e),this.lifeModel.set(Z,e+1)}},{key:"saveShopperEmailFromLifeEmail",value:function(e,t){var n=Number(this.lifeModel.get(ee));if(this.model.getData(Q.COOKIE_SHOPPER_EMAIL_KEY)||!this.lifeModel.getData(re)||n>2)return _.logger("Will not retrieve life email. Email already in cookie or UID not defined or max attempts exceeded."),null;var r={};r[oe]=this.lifeModel.getData(re),r[Q.CLIENT_TOKEN_KEY]=Q.CLIENT_TOKEN;var i=r?JSON.stringify(r):"{}";a().ajax({url:"https://life.enviou.com.br/default.aspx/BuscaLifeEmail",method:"POST",data:i,success:function(n){var r=n.d;if(r.length){r=r.trim().replace(/\s/g,"+"),_.logger("Success on getting Life Email: "+JSON.stringify(r));var i={expires:Q.TTL,domain:"."+_.getDomain(),path:"/"};this.model.setData(Q.COOKIE_SHOPPER_EMAIL_KEY,btoa(r),t||i),this.lifeModel.setData(te,!0),this.lifeModel.setData(ne,btoa(r)),e&&"function"==typeof e&&e()}else _.logger("Life Email not found.")}.bind(this),error:function(e,t,n){_.loggerError("Error: "+JSON.stringify(e)+"--"+t+"--"+n)},complete:function(){this.lifeModel.set(ee,n+1)}.bind(this)})}},{key:"saveLifeEmail",value:function(e){this.lifeModel.setData(ne,btoa(e),{expires:3650}),this.lifeModel.setData(te,!1,{expires:3650});var t=this.lifeModel.getData(re),n={};n[Q.CLIENT_TOKEN_KEY]=Q.CLIENT_TOKEN,n[oe]=t,n.email=e,_.createInvisibleImg(ie,n),_.logger("Registered Life Id and Email: "+t+" "+e)}},{key:"checkForLifeMail",value:function(){var e=this.lifeModel.getData(te)||!1,t=this.model.getData(Q.COOKIE_SHOPPER_EMAIL_KEY),n=this.lifeModel.getData(ne);return t&&n&&(e=e&&t===n),e}}])}(),se=['[type="email"]','[name="email"]',"#email","#user-email",".email"],ce=['[type="phone"]','[type="tel"]','[name="phone"]',"#phone",".phone","#mobile",".mobile"],ue=['[name="nome"]','[name="name"]',"#name","#nome"],le=['h1[itemprop="name"]',"#titlecomprejuntosite h2.product-name",".product-info .product_title","input[name*=_name]","div.productName","h1[class*=productNameContainer]",".product__information--general .product__name",".product-details__name","span.crumb.active",'div[itemprop="name"]',".product-name:last h1",'h1[data-qa="my-account-title"]',"h1#produto-nome:first","h1.t-product__name"],de=[".breadcrumbs:first li:last","input[name*=_category]",".bread-crumb .last","a[class^=vtex-breadcrumb]:last",".crumb:not(.active):last",'li[class*="category"]:last',"div.ui.breadcrumb a:last"],fe=[".by-brand",'span[itemprop="brand"] a',"input[name*=_brand]","span[class*=productBrandName]",".product-details__details .brand",".details__item .brand",".box-additional .data:last","a[class*=eachAttributeLinkstyles__Link]:first",".marcaProduto:first"],he=B(["span[itemprop=sku]","#idSku",".code","div[itemprop=sku]","#product-reference",".sku div",".product__sku>span",".sku-js>span:last","input[name=product_sku]","#product-reference",".details__data:first",'input[name*="Sku"]','input[name="ProductComment[product_id]"]',".variations-product div:first",'input[name*="sku"]:not(input[name*="radio"])',".sticky-container.hide .image-contain","span[class*=RaiaProductDescriptionstyles__Data]:first"]);var pe=n(1966);function me(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var c=r&&r.prototype instanceof s?r:s,u=Object.create(c.prototype);return ge(u,"_invoke",function(n,r,i){var o,s,c,u=0,l=i||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,s=0,c=e,f.n=n,a}};function h(n,r){for(s=n,c=r,t=0;!d&&u&&!i&&t3?(i=p===r)&&(c=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=h&&((i=n<2&&hr||r>p)&&(o[4]=n,o[5]=r,f.n=p,s=0))}if(i||n>1)return a;throw d=!0,r}return function(i,l,p){if(u>1)throw TypeError("Generator is already running");for(d&&1===l&&h(l,p),s=l,c=p;(t=s<2?e:c)||!d;){o||(s?s<3?(s>1&&(f.n=-1),h(s,c)):f.n=c:f.v=c);try{if(u=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(c=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){o=e,s=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,i,o),!0),u}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(ge(t={},r,function(){return this}),t),d=u.prototype=s.prototype=Object.create(l);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,ge(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,ge(d,"constructor",u),ge(u,"constructor",c),c.displayName="GeneratorFunction",ge(u,i,"GeneratorFunction"),ge(d),ge(d,i,"Generator"),ge(d,r,function(){return this}),ge(d,"toString",function(){return"[object Generator]"}),(me=function(){return{w:o,m:f}})()}function ge(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}ge=function(e,t,n,r){function o(t,n){ge(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},ge(e,t,n,r)}var ve="isNavigationTriggerActive",ye="enviouWaitUntil",Ee="previousUrlData",_e=function(){return b(function e(t){O(this,e);try{this.previousUrl="",this.setupConfiguration(t),this.setupSelectors(t),this.setupOptions(t),this.bindFunctions(),this.updateVariables()}catch(e){V(e.stack)}},[{key:"setupConfiguration",value:function(e){e.storageCookie?this.storage=e.storageCookie:V("Navigation Trigger Script will not run due to an invalid configuration")}},{key:"setupSelectors",value:function(e){e.selectors?this.selectors=e.selectors:this.selectors={}}},{key:"setupOptions",value:function(e){e.options?this.options=e.options:this.options={}}},{key:"bindFunctions",value:function(){this.hasAbandonedCart=this.hasAbandonedCart.bind(this),this.pingDataToBackend=this.pingDataToBackend.bind(this),this.updateVariables=this.updateVariables.bind(this),this.isEmailFound=this.isEmailFound.bind(this),this.setCustomerEmail=this.setCustomerEmail.bind(this),this.setCustomerPhoneNumber=this.setCustomerPhoneNumber.bind(this),this.setCustomerName=this.setCustomerName.bind(this),this.checkUrlChanges=this.checkUrlChanges.bind(this),this.getCustomerEmailFromStorage=this.getCustomerEmailFromStorage.bind(this),this.getProductSKU=this.getProductSKU.bind(this),this.getProductName=this.getProductName.bind(this),this.getProductCategory=this.getProductCategory.bind(this),this.getProductBrand=this.getProductBrand.bind(this),this.getProductPrice=this.getProductPrice.bind(this),this.getInfoAdd1=this.getInfoAdd1.bind(this),this.getInfoAdd2=this.getInfoAdd2.bind(this),this.cancelNavigation=this.cancelNavigation.bind(this)}},{key:"isEmailFound",value:function(){return!!this.dataToSend.customerEmail||(V("Email not found."),!1)}},{key:"updateVariables",value:function(){var e=this.storage.getData(pe.COOKIE_SHOPPER_CELL),t=this.getCustomerEmailFromStorage(),n=this.storage.getData(pe.COOKIE_SHOPPER_NAME),r=window.location.href,i=this.getProductSKU(),o=this.getProductName(),a=this.getProductPrice(),s=this.getProductCategory(),c=this.getProductBrand(),u=this.getInfoAdd1(),l=this.getInfoAdd2();this.storeToken=this.storage.getData(pe.COOKIE_CLIENT_TOKEN_KEY),this.dataToSend={customerEmail:t,currentUrl:r,customerPhone:e,customerName:n,productSKU:i,productName:o,productCategory:s,productBrand:c,productPrice:a,infoAdd1:u,infoAdd2:l}}},{key:"sendErrorToBackend",value:function(e){this.storeToken&&e&&function(e,t){M.apply(this,arguments)}(this.storeToken,e)}},{key:"run",value:(n=t(me().m(function e(){var t,n;return me().w(function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,sessionStorage.getItem(ve)){e.n=2;break}return e.n=1,U(this.storeToken);case 1:t=e.v,window.sessionStorage.setItem(ve,t);case 2:!this.options.ignoreToolCheck&&this.shouldCancelNavigation()||(this.previousUrl="",this.setupEventListeners(),this.checkUrlChanges()),e.n=4;break;case 3:e.p=3,n=e.v,this.dataToSend.infoMessageError=n.stack,this.sendErrorToBackend(this.dataToSend);case 4:return e.a(2)}},e,this,[[0,3]])})),function(){return n.apply(this,arguments)})},{key:"shouldCancelNavigation",value:function(){var e=sessionStorage.getItem(ve),t=!!this.storage.getData(pe.COOKIE_SHOPPING_CART_ID_KEY);return!(!t&&"true"===e)&&("Consumer has cart: ".concat(t,", tool is active: ").concat(e,"."),!0)}},{key:"checkUrlChanges",value:function(){var e=window.location.href;if(e!==this.previousUrl){z("Navigation url changed, calling action for current page."+" Previous was ".concat(this.previousUrl,", new is ").concat(e,".")),this.options.onUrlChange&&(this.options.onUrlChange(e,{context:this,previousUrl:this.storage.getData(Ee)}),this.options.savePreviousUrl&&this.storage.setData(Ee,e)),this.previousUrl=e;var t=3e3;this.options.sendPingDelayTime&&(t=this.options.sendPingDelayTime),this.disablePingOnPageChange(e)||setTimeout(this.pingDataToBackend,t)}var n=pe.METHOD_DEFAULT_DELAY_TIME;this.options.delayTime&&(n=this.options.delayTime),setTimeout(this.checkUrlChanges,n)}},{key:"disablePingOnPageChange",value:function(e){var t=!1;return this.options.disablePingOnPageChange&&(q(this.options.disablePingOnPageChange,"boolean")?t=this.options.disablePingOnPageChange:q(this.options.disablePingOnPageChange,"function")&&(t=this.options.disablePingOnPageChange(e,{context:this}))),t}},{key:"cancelNavigation",value:function(e){var t=this,n=e.onSuccess,r=e.isConvertion,i=void 0!==r&&r,o=e.saleValue,a=void 0===o?1:o,s=this.getCustomerEmailFromStorage(),c=this.storage.getData(pe.COOKIE_CLIENT_TOKEN_KEY),u=this.storage.getData(I);(s||u)&&D(c,s,u).then(function(){var e=t.storage.getData(pe.COOKIE_TRACKING_PARAMETER_KEY);i&&e&&(!function(e,t){var n=e;t&&!n.endsWith("?")&&(n="".concat(n,"?")),Object.keys(t).forEach(function(e){n="".concat(n+e,"=").concat(t[e],"&")}),n=n.substring(0,n.length-1);var r=document.createElement("img");r.src=n,r.height="1",r.width="1",r.style.display="none",r.style.visibility="hidden",document.body.appendChild(r)}(pe.CONVERSION_URL_3,{tkng:e,saleValue:a}),t.storage.removeData(pe.COOKIE_TRACKING_PARAMETER_KEY));n&&n()}).catch(function(e){return z("Error when trying to cancel existing navigation: ".concat(e))})}},{key:"pingDataToBackend",value:(e=t(me().m(function e(){var t,n,r,i,o,a,s,c,u;return me().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!this.hasAbandonedCart()){e.n=1;break}return e.a(2);case 1:if("true"===sessionStorage.getItem(ve)){e.n=2;break}return e.a(2);case 2:if(!(t=this.storage.getData(ye))){e.n=3;break}if(!(new Date(t)>new Date)){e.n=3;break}return e.a(2);case 3:if("function"!=typeof this.options.checkOutOfStockProduct){e.n=4;break}if(!this.options.checkOutOfStockProduct()){e.n=4;break}return e.a(2);case 4:if(this.updateVariables(),!this.isEmailFound()){e.n=8;break}return e.p=5,(n=this.storage.getData(I))&&(this.dataToSend.navigationId=n),e.n=6,k(this.storeToken,this.dataToSend);case 6:200===(r=e.v).status?r.data?(i=r.data,this.storage.setData(I,i)):V("Expected to receive navigationId response"):204!==r.status&&V("Received unexpected status code ".concat(r.status)),e.n=8;break;case 7:e.p=7,(u=e.v).response&&429===u.response.status?(o=u.response.headers["retry-after"])&&(a=new Date,s=1e3*parseInt(o),c=new Date(a.getTime()+s),this.storage.setData(ye,c.toISOString())):(V(u.message,{error:u}),u.isAxiosError||"Network Error"===u.message||(this.dataToSend.infoMessageError=u.stack,this.sendErrorToBackend(this.dataToSend)));case 8:return e.a(2)}},e,this,[[5,7]])})),function(){return e.apply(this,arguments)})},{key:"hasAbandonedCart",value:function(){var e=!!this.storage.getData(pe.COOKIE_SHOPPING_CART_ID_KEY);return!!e}},{key:"setupEventListeners",value:function(){var e=this;se.push("input");var t=se,n=ue,r=ce,i=this.selectors;if(i)for(var o in i){var a=i[o];switch(o){case"email":t=t.concat(a);break;case"name":n=n.concat(a);break;case"phone":r=r.concat(a)}}var s=function(i){var o=B(r);i.target.matches(o)&&e.setCustomerPhoneNumber(i);var a=B(t);i.target.matches(a)&&e.setCustomerEmail(i);var s=B(n);i.target.matches(s)&&e.setCustomerName(i)};_.executeWithRetry(function(){return!!document.body&&(document.body.addEventListener("focusout",s),!0)},{maxAttempts:5,intervalMs:300})}},{key:"setCustomerName",value:function(e){var t,n=function(e){var t,n,r,i=/^d[eoa]s?$/i;if(q(e,"string")&&""!==e){n=(t=(e=e.trim()).split(/ +/)).length;for(var o=0;o13)return!1;switch(n){case 8:case 10:case 12:return!0;case 9:return"9"===t[0];case 11:return"9"===t[2];case 13:return"9"===t[4];default:return!1}}(t)){var n=this.storage.getData(pe.COOKIE_SHOPPER_CELL);t&&t!==n&&(this.storage.setData(pe.COOKIE_SHOPPER_CELL,t),this.updateVariables())}}},{key:"setCustomerEmail",value:function(e){var t=e.target.value||"";if($(t)){var n=btoa(t);n!==this.storage.getData(pe.COOKIE_SHOPPER_EMAIL_KEY)&&(this.storage.setData(pe.COOKIE_SHOPPER_EMAIL_KEY,n),this.updateVariables())}}},{key:"getCustomerEmailFromStorage",value:function(){var e=this.storage.getData(pe.COOKIE_SHOPPER_EMAIL_KEY);if(!e)return null;try{var t=atob(e);if($(t))return t}catch(e){}return $(e)?e:null}},{key:"getProductSKU",value:function(){if(q(this.selectors.sku,"string")){var e=a()(this.selectors.sku);return e.val()||e.text().trim()}return q(this.selectors.sku,"function")?(this.selectors.sku=this.selectors.sku.bind(this),this.selectors.sku()):function(){var e=a()("#single-product").attr("data-variants");if(e)try{return JSON.parse(e)[0].sku}catch(e){V(e)}return null}()||function(){var e=a()('input[id*="sku-ids"]').val();if(e){var t=[/\d*/,/skuId=(\d*)/],n=e.match(t[0]),r=location.href.match(t[1]);if(r)return r[1];if(n)return n[0]}return a()('meta[property="product:sku"], body > div[itemscope] > meta[itemprop=sku]').first().attr("content")||null}()||((t=a()('input[id="produto-sku"]').val())&&"0"!==t||(t=a()('input[id="produto-id"]').val()),t||null)||function(){for(var e=0,t=["content","data-product-sku","id"];e3?(i=p===r)&&(c=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=h&&((i=n<2&&hr||r>p)&&(o[4]=n,o[5]=r,f.n=p,s=0))}if(i||n>1)return a;throw d=!0,r}return function(i,l,p){if(u>1)throw TypeError("Generator is already running");for(d&&1===l&&h(l,p),s=l,c=p;(t=s<2?e:c)||!d;){o||(s?s<3?(s>1&&(f.n=-1),h(s,c)):f.n=c:f.v=c);try{if(u=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(c=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){o=e,s=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,i,o),!0),u}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(Oe(t={},r,function(){return this}),t),d=u.prototype=s.prototype=Object.create(l);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Oe(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,Oe(d,"constructor",u),Oe(u,"constructor",c),c.displayName="GeneratorFunction",Oe(u,i,"GeneratorFunction"),Oe(d),Oe(d,i,"Generator"),Oe(d,r,function(){return this}),Oe(d,"toString",function(){return"[object Generator]"}),(be=function(){return{w:o,m:f}})()}function Oe(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}Oe=function(e,t,n,r){function o(t,n){Oe(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},Oe(e,t,n,r)}t(be().m(function e(){var t,n,r,o,s,c,u,l,d,f,h,p,m,g,v,y,E,C,T,b,O,P,N,I,A;return be().w(function(e){for(;;)switch(e.p=e.n){case 0:if(I=function(){this.previousUrl=null,this.elements={emailField:function(){return a()('input[type=email], input[name="cart[contact][email]"],[name="contact.email"], input[name="email"]')},emailOkButton:function(){return a()("#next-step, #btn-submit")},nameField:function(){var e=_.createSelectorListString(["#\\@shipping_first_name","#\\@shipping_last_name",'input[name="cart[shipping][first_name]"]','input[name="cart[shipping][last_name]"]',"#shipping_first_name","#shipping_last_name",'input[name="shippingAddress.first_name"]','input[name="shippingAddress.last_name"]','input[name="name"]','input[name="billingAddress.first_name"]','input[name="billingAddress.last_name"]']);return a()(e)},nameFieldValue:function(){var e=_.createSelectorListString(["#\\@shipping_first_name",'input[name="cart[shipping][first_name]"]',"#shipping_first_name",'input[name="shippingAddress.first_name"]','input[name="name"]','input[name="billingAddress.first_name"]']),t=_.createSelectorListString(["#\\@shipping_last_name",'input[name="cart[shipping][last_name]"]',"#shipping_last_name",'input[name="shippingAddress.last_name"]','input[name="billingAddress.last_name"]']),n=a()(e).val(),r=a()(t).val();return n&&r?_.capitalizeCustomerName("".concat(n.trim()," ").concat(r.trim())):n?_.capitalizeCustomerName("".concat(n.trim())):r?_.capitalizeCustomerName("".concat(r.trim())):null},firstNameFieldCheckoutPage:function(){return a()('input[name="shippingAddress.first_name"]')},lastNameFieldCheckoutPage:function(){return a()('input[name="shippingAddress.last_name"]')},cellField:function(){return a()('input[data-bind="value:phone"], [id="@shipping_phone"], input[name="cart[shipping][phone]"], #shipping_phone, [name="shippingAddress.phone"],input#phone, [name="billingAddress.phone"]')},totalPrice:function(){var e=a()(".success .text-right, .js-cart-total, span#cart-total").first().text();if(e)return e;var t=a()("div.total-price");return t.length?Number(t.attr("data-priceraw"))/100:a()(".table-subtotal .table-footer .text-right").first().text()},totalFreight:function(){var e=a()('.table-shipping-cost .text-right,tr[data-bind="visible: shipping() > 0"] .text-right').first().text(),t=a()("input[type=radio]:checked").first().parent().find(".shipping-method-price").text().trim(),n=a()("ul.shipping-list input.shipping-method:checked,input[type=radio]:checked").attr("data-price");return e||t||n},orderId:function(){var e=(a()('.detail-content h5, [test-id="order-id"]').text()||"").split("#");return e&&e.length>s?e[s].replace(/\D/g,""):"undefined"!=typeof LS&&LS.order&&LS.order.number?LS.order.number:null},bankSlipUrl:function(){return a()(".ticket-txt a, div.boleto-debit #print_ticket").attr("href")},hasBankSlipButton:function(){return!!this.bankSlipUrl()},loggedInInfo:{name:function(){return a()(a()(".customOption.pickup input[type=radio]:checked").parent().find(".description span").first()).text()},cell:function(){return a()(a()(".customOption.pickup input[type=radio]:checked").parent().find(".description span").last()).text()}},preview:{productListV3:function(){var e='.js-cart-item:not([style="display: none;"])';return a()(e).parent().first().children(e)},productList:function(){return a()('.cart-table-row:not([style="display: none;"])')},find:{productName:function(e){return a()(e).find("[class*=cart-item-name]").text().replace(/\s+/g," ").trim()},productQuantity:function(e){return Number(a()(e).find(".cart-quantity-input-container input, .cart-item-quantity span input, .cart-item-input, input.js-cart-quantity-input").val())},productPrice:function(e){var t=_.convertAnyCurrencyToNumber(a()(e).find(".ajax-cart-item-unit-price").first().text().trim()),n=_.convertAnyCurrencyToNumber(a()(e).find(".js-cart-item-subtotal").first().text().trim());return t===r?n/this.productQuantity(e):t},productUrl:function(e){return a()(e).find("a[class*=cart-item-name], [class*=cart-item-name] a").attr("href")},productImg:function(e){var t=a()(e).find("img").attr("src");return t?window.location.protocol+t:null}}},miniCartTable:{productList:function(){return a()("table#cart-table-body tr")},find:{productName:function(e){return a()(e).find("th a").first().text().trim()||""},productQuantity:function(e){return Number(a()(e).find("th span.itemqtd").text().trim()||o)},productUrl:function(e){return a()(e).find("th a").attr("href")},productPrice:function(e){var t=this.productQuantity(e),n=a()(e).find("th.cart_subtotal").text();return _.convertAnyCurrencyToNumber(n)/t},productImg:function(e){var t=a()(e).find("th span img").attr("src");return _.normalizeUrl(t,"https")}}},editCartPage:{productList:function(){return a()("ul.productrow")},find:{productName:function(e){return a()(e).find("li.col-product a.name").text().trim()},productQuantity:function(e){var t=a()(e).find("li.col-quantity div.quantity-input input").val();return Number(t)},productUrl:function(e){return a()(e).find("li.col-product a.name").attr("href")},productPrice:function(e){var t=a()(e).find("li.col-price span").text().trim();return _.convertAnyCurrencyToNumber(t)},productImg:function(e){var t=a()(e).find("li.col-product img").attr("src");return _.normalizeUrl(t,"https")}}},checkoutPage:{customerEmail:'p[test-id="consumer-email"]',customerName:"div.user-detail-content > div > div > h6 + p",customerPhone:'p[test-id="consumer-phone"]',totalPrice:'td[test-id="cart-total"]',totalFreight:'td[test-id="cart-shipping-cost"]',products:'[test-id="product-table"] tr',find:{productName:function(e){var t=a()(e).find("img").attr("title");return t},productImg:function(e){var t=a()(e).find("img");return _.normalizeUrl(t.attr("src"),"https").replace(/100-0/,"480-0")},productUrl:function(e){var t=this.productName(e).replace(/\(.+/,""),n=encodeURI(t),r="".concat(window.location.origin,"/search/?q=");return"".concat(r).concat(n)},productQuantity:function(e){var t=a()(e).find('td[test-id="product-name-qty"]').text().split(" ");return Number(t[t.length-s])||s},productPrice:function(e){var t=this.productQuantity(e),n=a()(e).find('td[test-id="product-subtotal"]').text();return _.convertAnyCurrencyToNumber(n)/t}}},selectedPaymentOption:"div.payment-option input[type=radio]:checked, div.active"},this.urls={isCheckedOutUrl:function(e){return this.checkoutUrl.some(function(t){return e.indexOf(t)>r})},isCheckoutStartPage:function(e){return/\/checkout\/v3\/start/i.test(e)},isPaymentMethodChoosePage:function(e){return/\/checkout\/v3\/next/i.test(e)},checkoutUrl:["/checkout/success","/checkout/v3/success"]},this.core=null,this.lifeMail=null,this.cartProducts=[],this.model=null,this.lifeModel=null,this.init=function(){this.core=new X,this.attemptsToCollectEmail=0,this.model=this.core.setupModel(i(),y,{expires:Ce.TTL}),this.model.setData(Ce.COOKIE_CLIENT_TOKEN_KEY,Ce.CLIENT_TOKEN),Ce._ENVIOU_LIFE&&(this.lifeMail=new ae(this.model,i(),C,{expires:T},null,{expires:Ce.TTL})),this.initializeNavigationTrigger(),this.wireEmailEvents(),this.scheduleOrderIdPresent();var e=window.location.href;this.urls.isCheckoutStartPage(e)?(this.wireNameAndPhoneEvents(),this.retrieveDataFromCheckoutPage(),this.checkForUrlChanges(),this.timerCheckTotalPriceChanges()):this.urls.isPaymentMethodChoosePage(e)?this.checkPaymentMethodChanges():this.urls.isCheckedOutUrl(e)||(this.wireNameAndPhoneEvents(),this.parseAndCommitCart(),this.timerCheckTotalPriceChanges(),this.retrieveLoggedInInfo())},this.initializeNavigationTrigger=function(){var e={storageCookie:this.model};new _e(e).run()},this.checkForUrlChanges=function(){var e=window.location.href;e!==this.previousUrl&&(_.logger("Current url changed. Calling correct action for current page"),this.previousUrl=e,this.urls.isPaymentMethodChoosePage(e)&&this.checkPaymentMethodChanges()),setTimeout(this.checkForUrlChanges.bind(this),Ce.METHOD_DEFAULT_DELAY_TIME)},this.retrieveDataFromCheckoutPage=function(){var e=this.elements.firstNameFieldCheckoutPage(),t=this.elements.lastNameFieldCheckoutPage(),n=this.elements.cellField(),r=_.convertAnyCurrencyToNumber(this.elements.totalFreight());e.length&&t.length&&n.length&&(e.off("focusout.enviou"),e.on("focusout.enviou",this.saveNameAndCommitCart.bind(this)),t.off("focusout.enviou"),t.on("focusout.enviou",this.saveNameAndCommitCart.bind(this)),n.off("focusout.enviou"),n.on("focusout.enviou",this.saveCellAndCommitCart.bind(this))),r>o&&r!==this.model.getData(Ce.COOKIE_SHOPPING_CART_FREIGHT_KEY)&&!this.urls.isCheckedOutUrl(window.location.href)&&(this.saveFreight(),this.core.createOrUpdateCart(this.cartProducts,this.dataForLifeEmail.bind(this))),setTimeout(this.retrieveDataFromCheckoutPage.bind(this),Ce.METHOD_DEFAULT_DELAY_TIME)},this.checkPaymentMethodChanges=function(){var e=a()(this.elements.selectedPaymentOption);if(e.length){var t=e.first().val()||e.first().text();if(t!==N){_.logger("Payment method has changed.");var n=this.isBankSlipPaymentOption(t);N=t,this.model.setData(P,n)}}setTimeout(this.checkPaymentMethodChanges.bind(this),Ce.METHOD_DEFAULT_DELAY_TIME)},this.isBankSlipPaymentOption=function(e){var t=/boleto bancário|boleto bancario/i;return["moip_transparent_offline","mercadopago_transparent_offline","mercadopago-offline","pagseguro_transparent_offline","boleto_paghiper_transparent_offline","boleto_paghiper-offline"].some(function(n){return n===e||t.test(e)})},this.orderIdAttempts=0,this.scheduleOrderIdPresent=function(){if(_.logger("Checking for orderId..."),this.orderIdAttempts>E){var e=this.elements.orderId(),t="";e&&(t="Html: ".concat(e),e.match(/\d+/)&&(t="Match: ".concat(e.match(/\d+/)))),_.loggerError("Reached the max attempts to query for the orderId");var n=atob(this.model.getData(Ce.COOKIE_SHOPPER_EMAIL_KEY))||"";return _.loggerBackend(n,t,"OrderId max attempts reached. ",window.location.href),null}var r=this.elements.orderId();r?(this.attemptsToCollectEmail=0,this.createConvertionFromCheckoutPage(r)):setTimeout(this.scheduleOrderIdPresent.bind(this),Ce.METHOD_DEFAULT_DELAY_TIME)},this.createConvertionFromCheckoutPage=function(e){var t=this,n=this.elements.checkoutPage,r=a()(n.customerEmail).first().text();if(r){var i=a()(n.customerName).first().text(),o=a()(n.customerPhone).first().text(),s=_.convertAnyCurrencyToNumber(a()(n.totalPrice).first().text()),c=_.convertAnyCurrencyToNumber(a()(n.totalFreight).first().text());this.model.setData(Ce.COOKIE_SHOPPER_NAME,i),this.model.setData(Ce.COOKIE_SHOPPER_EMAIL_KEY,r),this.model.setData(Ce.COOKIE_SHOPPER_CELL,o),this.model.setData(Ce.COOKIE_SHOPPING_CART_TOTAL_PRICE,s),this.model.setData(Ce.COOKIE_SHOPPING_CART_FREIGHT_KEY,c);var u=[];a()(n.products).each(function(e,t){var r={};r[Ce.PRODUCT_NAME_KEY]=n.find.productName(t),r[Ce.PRODUCT_QUANTITY_KEY]=n.find.productQuantity(t),r[Ce.PRODUCT_URL_KEY]=n.find.productUrl(t),r[Ce.PRODUCT_PRICE_KEY]=n.find.productPrice(t),r[Ce.PRODUCT_IMAGE_URL_KEY]=n.find.productImg(t),u.push(r)});this.core.createOrUpdateCart(u,this.dataForLifeEmail.bind(this),function(){var n=t.elements.hasBankSlipButton(),r=t.model.getData(P),i=(/boleto|boletos|bolbradesco/i.test(t.elements.bankSlipUrl())||r)&&n;t.core.createConvertion(e,i,!1,t.elements.bankSlipUrl(),null,{platCode:2}),t.model.removeData(P),p.removeItem(l)})}else{if(!(this.attemptsToCollectEmail=o&&(this.model.setData(Ce.COOKIE_SHOPPING_CART_FREIGHT_KEY,e),_.logger("Freight saved: ".concat(e)))},this.convertPriceHtmlToNumber=function(e){var t=e.html().match(/\d+/g)||[];return Number(t.join("."))},this.saveTotalPriceAndFreight=function(){var e=this.elements.totalPrice(),t=r;if(_.checkType(e,"number")?t=e:_.isString(e)&&(t=_.convertAnyCurrencyToNumber(e)),t!==Number(this.model.getData(Ce.COOKIE_SHOPPING_CART_TOTAL_PRICE))&&t>o){this.model.setData(Ce.COOKIE_SHOPPING_CART_TOTAL_PRICE,t),_.logger("Saved new total price: ".concat(t)),this.saveFreight();setTimeout(this.parseAndCommitCart.bind(this),1e3)}},this.storeEmailAndCommitCart=function(e){var t="";if("focusout"===e.type){var n=a()(e.target).val();_.validateEmail(n)&&(t=n)}else this.elements.emailField().each(function(e,n){var r=a()(n).val();_.validateEmail(r)&&(t=r)}.bind(this));if(_.validateEmail(t)){var r=btoa(t);this.model.getData(Ce.COOKIE_SHOPPER_EMAIL_KEY)!==r&&this.model.setData(Ce.COOKIE_SHOPPER_EMAIL_KEY,r),p.setItem(f,t),Ce._ENVIOU_LIFE&&this.lifeMail.saveLifeEmail(t),this.urls.isCheckedOutUrl(window.location.href)||(this.core.createOrUpdateCart(this.cartProducts,this.dataForLifeEmail.bind(this)),p.setItem(l,this.model.getData(Ce.COOKIE_SHOPPING_CART_ID_KEY)))}},this.dataForLifeEmail=function(){var e={};return Ce._ENVIOU_LIFE?e[b]=this.lifeMail.checkForLifeMail():e[b]=!1,e},this.parseAndCommitCart=function(){this.saveTotalPriceAndFreight();var e,t,n=[],r=this.elements.preview.productList(),i=this.elements.preview.productListV3(),o=this.elements.miniCartTable.productList(),s=this.elements.editCartPage.productList(),c=a()(this.elements.checkoutPage.products);c.length&&(e=c,t=this.elements.checkoutPage),r.length&&(e=r,t=this.elements.preview),i.length&&(e=i,t=this.elements.preview),o.length&&(e=o,t=this.elements.miniCartTable),s.length&&(e=s,t=this.elements.editCartPage),e&&(e.each(function(e,r){var i={};i[Ce.PRODUCT_NAME_KEY]=t.find.productName(r),i[Ce.PRODUCT_QUANTITY_KEY]=t.find.productQuantity(r),i[Ce.PRODUCT_URL_KEY]=t.find.productUrl(r),i[Ce.PRODUCT_PRICE_KEY]=t.find.productPrice(r),i[Ce.PRODUCT_IMAGE_URL_KEY]=t.find.productImg(r),n.push(i)}.bind(this)),!n.length&&this.cartProducts.length||(this.cartProducts=n),_.logger("Saved products from cart. Products: ".concat(JSON.stringify(this.cartProducts))),this.urls.isCheckedOutUrl(window.location.href)||(this.core.createOrUpdateCart(this.cartProducts,this.dataForLifeEmail.bind(this)),p.setItem(l,this.model.getData(Ce.COOKIE_SHOPPING_CART_ID_KEY))))};try{this.init()}catch(t){var e=this.model.getData(Ce.COOKIE_SHOPPER_EMAIL_KEY);e=e?atob(e):"",_.loggerBackend(e,"","Erro geral. ".concat(t.message," ").concat(t.stack),window.location.href)}},t="",n=null,r=-1,o=0,s=1,u="app-".concat(c=981,"-@enviou/").concat(Ce.COOKIE_CLIENT_TOKEN_KEY),l="app-".concat(c,"-@enviou/").concat(Ce.COOKIE_SHOPPING_CART_ID_KEY),d="app-".concat(c,"-@enviou/customer/name"),f="app-".concat(c,"-@enviou/customer/email"),h="app-".concat(c,"-@enviou/customer/phone"),p={setItem:function(e,t){_.logger("asyncLocalStorage.setItem: ".concat(JSON.stringify({key:e,value:t}))),window.localStorage.setItem(e,JSON.stringify({value:t}))},getItem:function(e){var t=window.localStorage.getItem(e);return t?JSON.parse(t).value:null},removeItem:function(e){window.localStorage.removeItem(e)}},t||(t=p.getItem(u)),document.currentScript?(v=new URL(document.currentScript.src),t=null!==(m=v.searchParams.get("CLIENT_TOKEN"))&&void 0!==m?m:t,n=null!==(g=v.searchParams.get("store"))&&void 0!==g?g:n):a()('script[src*="ca-nuvemshop"]').each(function(e,r){var i=a()(r).attr("src");if(i)try{var o,c,u=new URL(i,window.location.origin);t=null!==(o=u.searchParams.get("CLIENT_TOKEN"))&&void 0!==o?o:t,n=null!==(c=u.searchParams.get("store"))&&void 0!==c?c:n}catch(e){var l=i.match(/CLIENT_TOKEN=([^&]+)/);l&&l[s]&&(t=l[s]);var d=i.match(/store=([^&]+)/);d&&d[s]&&(n=d[s])}}),t||!n){e.n=4;break}return e.p=1,e.n=2,F(n,window.location.host);case 2:t=e.v,p.setItem(u,t),e.n=4;break;case 3:e.p=3,A=e.v,_.loggerError("Unexpected error while getting store token: ".concat(A.message));case 4:if(t){e.n=5;break}return _.loggerError("Stop the code from running if there's no CLIENT_TOKEN set."),e.a(2);case 5:Ce.CLIENT_TOKEN=t,p.setItem(u,t);case 6:Ce.CLIENT_URL="",_.setupGlobalVars(Te),y="_enviou.com-ca",Ce.CREATE_SHOPPING_CART_ENDPOINT=Ce.CREATE_SHOPPING_CART_ENDPOINT_TWO_PHASES,Ce.UPDATE_SHOPPING_CART_ENDPOINT=Ce.UPDATE_SHOPPING_CART_ENDPOINT_NO_RESTART,Ce.NOT_ACCEPT_EMPTY_EMAIL=!1,Ce.ACCEPT_EMPTY_CART=!0,E=100,Ce.PRODUCT_ID_KEY="id",C="_lf",T=3650,b="isLifeMail",O=20,P="bso",N=null,a()(document).ready(function(){_.createSingleController(I)});case 7:return e.a(2)}},e,null,[[1,3]])}))(void 0)})(),{}})());