"use strict";!function(t){var e='
\n
\n
\n Categorias \n \n \n \n
\n \n
',n={insertMenuButton:function(){return t(this.params.appendButton).prepend(this.params.contentButton),!0},closeMenuAndSidebar:function(){t(".md-mobile-menu, .md-sidebar, .md-overlay-mobile-menu").removeClass("md-open")},handleOpenAndCloseMenuMobile:function(){return t(".md-mobile-menu, .md-overlay-mobile-menu").toggleClass("md-open"),!0},handleOpenAndCloseSidebar:function(){return t(".md-sidebar, .md-overlay-mobile-menu").toggleClass("md-open"),!0},render:function(n){if(n&&n.length){console.warn("categories",n),this.insertMenuButton();var o=Handlebars.compile(e);return t("body").append(o({categories:n})),!0}},setRewritesName:function(t){var e=this;return t.map(function(t){return t.rewrite=e.rewrite(t.name),t})},rewrite:function(t){if(t)return t.toLowerCase().trim().replace(/[áàãâä]/g,"a").replace(/[éèẽêë]/g,"e").replace(/[íìĩîï]/g,"i").replace(/[óòõôö]/g,"o").replace(/[úùũûü]/g,"u").replace(/ç/g,"c").replace(/(\ |_)+/," ").replace(/(^-+|-+$)/,"").replace(/[^a-z0-9]+/g,"-")},getCategories:function(){var e=this;return t.get(this.params.domain+"/api/catalog_system/pub/category/tree/3",function(t){t&&t.length&&(t.splice(0,1),e.render(e.setRewritesName(t)))}),!0},isMobile:function(){return t(window).width()<900},isCatalogo:function(){return t("body").hasClass(this.params.bodyClassCatalogo)},insertClassSidebar:function(){t(this.params.catalogoSidebar).addClass("md-sidebar")},insertButtonsSidebarOpen:function(){t(this.params.prependButtonOpenSiderbar).prepend('
'+this.params.textButtonOpenSiderbar+"
")},insertTitleInSidebar:function(){t(".md-sidebar").prepend('
Filtros
')},events:function(){var e=this;return t("body").on("click",this.params.openModalButton,function(){e.handleOpenAndCloseMenuMobile()}),t("body").on("click",this.params.closeModalButton,function(){e.closeMenuAndSidebar()}),t("body").on("click",".md-content-links > ul.md-links > li.has-childs",function(e){var n="";console.warn("event 8888",e),"A"!==e.target.tagName&&(n="I"==e.target.tagName?t(e.target).parent():t(e.target),n.hasClass("has-childs")&&n.toggleClass("md-active"),e.preventDefault())}),t("body").on("click",".md-open-sidebar",function(){e.handleOpenAndCloseSidebar()}),t("body").on("click",".md-overlay-mobile-menu",function(){e.closeMenuAndSidebar()}),!0},init:function(e){return this.params=e,this.events(),this.isMobile()&&e.openMenuOnlyMobile&&t(e.appendButton).length&&this.getCategories(),this.isCatalogo()&&this.isMobile()&&(this.insertClassSidebar(),this.insertTitleInSidebar(),this.insertButtonsSidebarOpen()),!0}};t.fn.corebizVtexMenuMobile=function(e){e=t.extend(t.fn.corebizVtexMenuMobile.parametersDefaults,e),e.appendButton=this,n.init(e)},t.fn.corebizVtexMenuMobile.parametersDefaults={contentButton:'
',openModalButton:".md-btn-menu-mobile",closeModalButton:".md-btn-close-menu",openMenuOnlyMobile:!0,bodyClassCatalogo:"departamento",catalogoSidebar:"aside.sidebar",prependButtonOpenSiderbar:"#main-content",textButtonOpenSiderbar:"Abrir Filtros",domain:""}}($),function(t){var e=["items","totalizers","clientProfileData","shippingData","paymentData","sellers","messages","marketingData","clientPreferencesData","storePreferencesData","giftRegistryData","ratesAndBenefitsData","openTextField","commercialConditionData"],n={},o=new Date,r={};r.upperAllFirstLetter=function(t){if(t){for(var e,n,o=t.toLowerCase(),r=o.split(" "),i=0;i .quem > li").each(function(){var e=t(this);i.comments.push({author:e.find(".dados > strong").text().replace("Opinião de: ",""),rating:t.trim(e.find(".rating-wrapper div").attr("class").replace("rating","")),comment:e.find(".opt-texto p").text(),id:r.getNumberOfString(e.find("#lnkAjudou").attr("href"))})}),i.userId=r.getIdUserCripty(t(o).find("#ulPubliqueResenha #lnkPubliqueResenha").attr("href")),i.rating=t(o).find(".avaliacao > ul.rating").html(),i.media=t(o).find(".media > em").html(),i},r.getPriceTotalBuyTogether=function(e){if(e)return e=e.match(/total:(.*)/,""),"object"==typeof e?t.trim(e[1]):""},r.getSkusBuyTogether=function(t){var e=[];if(t)return"object"!=typeof(e=t.match(/sku=[0-9]{0,}/g,""))?"":(e[0]=r.getNumberOfString(e[0]),e[1]=r.getNumberOfString(e[1]),e)},r.toObjectBuyTogether=function(e){var n,o,i,a=new DOMParser,s=a.parseFromString(e,"text/html"),l=[],c={};return t(s).find("tr").each(function(){c={url:null,category:null,total_price:null,installment:null,skus:[],items:[]},i=t(this),n=i.find(".buy > strong:eq(0)").text(),o=i.find(".buy > strong:eq(1)").text(),c.url=i.find(".comprar-junto > #lnkComprar").attr("href"),c.installment={number:parseInt(t.trim(n)),price:t.trim(o)},c.total_price=r.getPriceTotalBuyTogether(i.find(".buy").text()),c.category=i.find(".more > a#lnkVejaMais").attr("href"),c.skus=r.getSkusBuyTogether(c.url),c.items.push({thumb:i.find(".itemA > a > img").attr("src"),title:i.find(".itemA > h3").text(),url:i.find(".itemA > a").attr("href")}),c.items.push({thumb:i.find(".itemB > a > img").attr("src"),title:i.find(".itemB > h3").text(),url:i.find(".itemB > a").attr("href")}),l.push(c)}),l},r.monthNumber=function(t){if(t){var e;switch(t){case"jan":e=0;break;case"fev":e=1;break;case"mar":e=2;break;case"abr":e=3;break;case"mai":e=4;break;case"jun":e=5;break;case"jul":e=6;break;case"ago":e=7;break;case"set":e=8;break;case"out":e=9;break;case"nov":e=10;break;case"dez":e=11}return e}},r.formatData=function(t){return t=t.replace(",",""),t=t.split(" "),t[0]=String(this.monthNumber(t[0])),new Date(t[2],t[0],t[1],hours[0],hours[1],hours[2])};var i=function(){return null};i.prototype.config=function(t){if(this.params=t,this.params){var e={Accept:"application/json; charset=utf-8","Content-Type":"application/json","REST-Range":"resources=0-49"};n.DEBUG=this.params.DEBUG||!1,n.headers=this.params.headers||e,n.store_url=this.params.store_url||"",n.url_api_search=n.store_url+"/api/catalog_system/pub/products/search",n.url_api_search_autocomplete=n.store_url+"/buscaautocomplete",n.url_api_search_buscapagina=n.store_url+"/buscapagina",n.url_api_category=n.store_url+"/api/catalog_system/pub/category/tree/3",n.url_api_brand=n.store_url+"/api/catalog_system/pvt/brand/list",n.url_product_sku=n.store_url+"/produto/sku/",n.url_product_variations=n.store_url+"/api/catalog_system/pub/products/variations/",n.url_profile=n.store_url+"/api/checkout/pub/profiles",n.url_get_profile=n.store_url+"/no-cache/profileSystem/getProfile",n.url_order_form=n.store_url+"/api/checkout/pub/orderForm",n.url_orders=n.store_url+"/api/checkout/pub/orders/",n.url_orders_oms=n.store_url+"/api/oms/pvt/orders/",n.url_postcode=n.store_url+"/no-cache/postalcode/address/",n.url_simulation_shipping=n.store_url+"/api/checkout/pub/orderForms/simulation",n.url_warn_me=n.store_url+"/no-cache/AviseMe.aspx",n.url_sku_details=n.store_url+"/api/catalog_system/pvt/sku/stockkeepingunitbyid/",n.url_publish_userreviewcomment=n.store_url+"/publishuserreviewcomment",n.url_userreview=n.store_url+"/userreview",n.url_publish_userreviewrelevance=n.store_url+"/PublishUserReviewRelevance",n.url_add_coupon=n.store_url+"/coupons",n.url_attachments_shippingData="/attachments/shippingData",n.url_attachments_openTextField="/attachments/openTextField",n.url_address_save=n.store_url+"/no-cache/account/address/save",n.url_profile_save=n.store_url+"/no-cache/account/profile/save",n.url_address_remove=n.store_url+"/no-cache/account/address/delete/",n.url_address_detail=n.store_url+"/no-cache/account/address/detail/",n.url_user_logout=n.store_url+"/no-cache/user/logout",n.url_orderform_clear=n.store_url+"/checkout/changeToAnonymousUser/",n.url_buy_together=n.store_url+"/comprejuntosku/",n.url_service_sku=n.store_url+"/servico/",n.url_api_newsletter=n.store_url+"/no-cache/Newsletter.aspx",n.url_api_dataserver=n.store_url+"/no-cache/HoraAtualServidor.aspx",n.url_api_carriers=n.store_url+"/api/logistics/pvt/configuration/carriers",n.url_api_facets_filters_category=n.store_url+"/api/catalog_system/pub/facets/search/${category}?map=c",n.url_api_crossselling_whosawalsosaw=n.store_url+"/api/catalog_system/pub/products/crossselling/whosawalsosaw/",n.url_api_crossselling_whosawalsobought=n.store_url+"/api/catalog_system/pub/products/crossselling/whosawalsobought/",n.url_api_crossselling_whoboughtalsobought=n.store_url+"/api/catalog_system/pub/products/crossselling/whoboughtalsobought/",n.url_api_crossselling_accessories=n.store_url+"/api/catalog_system/pub/products/crossselling/accessories/",n.url_api_crossselling_similars=n.store_url+"/api/catalog_system/pub/products/crossselling/similars/",n.url_api_crossselling_suggestions=n.store_url+"/api/catalog_system/pub/products/crossselling/suggestions/",n.url_api_address_information=n.store_url+"/api/checkout/pub/postal-code/",n.header=this.params.headers,n.apiMasterData="/api/dataentities/"}else console.error("Metodo config não definido!")},i.prototype.log=function(t){if(t)return this.DEBUG&&console.log(t)},i.prototype.error=function(t){if(t)return this.DEBUG&&console.error(t)},i.prototype.warn=function(t){if(t)return this.DEBUG&&console.warn(t)},i.prototype.parameters=function(t){if(!t)return"";var e="";for(var n in t)e+="&"+n+"="+t[n];return"?"+e.substring(1)},i.prototype.ajax=function(e,n,o,r,i,a){if(e&&n){var s,l;a&&"object"==typeof o?(o=JSON.stringify(o),s="application/json",l="json"):(s="application/x-www-form-urlencoded; charset=UTF-8",l=""),t.ajax({url:e,type:n,contentType:s,dataType:l,data:o||"",success:function(t){r(t)},error:function(t){i(t)}})}},i.prototype.search=function(){var e=this;return{products:function(o,r,i){if(o){var a="function"==typeof r&&"function"==typeof i;t.getJSON(n.url_api_search+e.parameters(o),function(t){a&&r(t)},function(t){a&&i(t)})}},autocomplete:function(o,r,i,a){if(o){var s="function"==typeof r&&"function"==typeof i,l={productNameContains:o};if(a||!1)return void r([{items:[],thumb:"",thumbUrl:null,name:"Pocket em Toy",href:"http://corebiz.vtexcommercestable.com.br/toy/Pocket",criteria:"£Pocket em Toy¢/toy/Pocket"},{items:[{itemId:"21",name:"Greg",nameComplete:"Pocket Steven Universo Greg",imageUrl:"http://corebiz.vteximg.com.br/arquivos/ids/156430-25-25/greg.jpg"},{itemId:"22",name:"Connie",nameComplete:"Pocket Steven Universo Connie",imageUrl:"http://corebiz.vteximg.com.br/arquivos/ids/156431-25-25/connie.jpg"},{itemId:"23",name:"Garnet",nameComplete:"Pocket Steven Universo Garnet",imageUrl:"http://corebiz.vteximg.com.br/arquivos/ids/156432-25-25/garnet.jpg"},{itemId:"24",name:"Leon",nameComplete:"Pocket Steven Universo Leon",imageUrl:"http://corebiz.vteximg.com.br/arquivos/ids/156434-25-25/leon.jpg"},{itemId:"25",name:"Rose",nameComplete:"Pocket Steven Universo Rose",imageUrl:"http://corebiz.vteximg.com.br/arquivos/ids/156435-25-25/rose.jpg"},{itemId:"26",name:"Peridot",nameComplete:"Pocket Steven Universo Peridot",imageUrl:"http://corebiz.vteximg.com.br/arquivos/ids/156436-25-25/peridot.jpg"},{itemId:"27",name:"Pérola",nameComplete:"Pocket Steven Universo Pérola",imageUrl:"http://corebiz.vteximg.com.br/arquivos/ids/156437-25-25/perola.jpg"},{itemId:"28",name:"steven",nameComplete:"Pocket Steven Universo steven",imageUrl:"http://corebiz.vteximg.com.br/arquivos/ids/156439-25-25/1stevenuniverse.jpg"}],thumb:'steven',thumbUrl:"http://corebiz.vteximg.com.br/arquivos/ids/156439-25-25/1stevenuniverse.jpg",name:"pocket steven universo",href:"http://corebiz.vtexcommercestable.com.br/pocket_steven_universo/p",criteria:null}]);t.getJSON(n.url_api_search_autocomplete+e.parameters(l),function(t){s&&r(t?t.itemsReturned:!1)},function(t){s&&i(t)})}},buscapagina:function(o,r,i){if(o){var a="function"==typeof r&&"function"==typeof i;e.ajax(n.url_api_search_buscapagina+e.parameters(o),"GET","",function(e){var n=t.parseHTML(e);a&&r(n)},function(t){a&&i(t)},!0)}},goPageSearch:function(t){t&&(window.location.href="/"+t)}}},i.prototype.crossSelling=function(){return{productSearchWhoSawAlsoSaw:function(e,o,r){if(e){var i="function"==typeof o&&"function"==typeof r;t.getJSON(n.url_api_crossselling_whosawalsosaw+e,function(t){i&&o(t)},function(t){i&&r(t)})}},productSearchWhoSawAlsoBought:function(e,o,r){if(e){var i="function"==typeof o&&"function"==typeof r;t.getJSON(n.url_api_crossselling_whosawalsobought+e,function(t){i&&o(t)},function(t){i&&r(t)})}},productSearchWhoBoughtAlsoBought:function(e,o,r){if(e){var i="function"==typeof o&&"function"==typeof r;t.getJSON(n.url_api_crossselling_whoboughtalsobought+e,function(t){i&&o(t)},function(t){i&&r(t)})}},productSearchAccessories:function(e,o,r){if(e){var i="function"==typeof o&&"function"==typeof r;t.getJSON(n.url_api_crossselling_accessories+e,function(t){i&&o(t)},function(t){i&&r(t)})}},productSearchSimilars:function(e,o,r){if(e){var i="function"==typeof o&&"function"==typeof r;t.getJSON(n.url_api_crossselling_similars+e,function(t){i&&o(t)},function(t){i&&r(t)})}},productSearchSuggestions:function(e,o,r){if(e){var i="function"==typeof o&&"function"==typeof r;t.getJSON(n.url_api_crossselling_suggestions+e,function(t){i&&o(t)},function(t){i&&r(t)})}}}},i.prototype.default=function(){var e=this;return{init:function(o,r){var i="function"==typeof o&&"function"==typeof r;t.getJSON(n.url_api_search+e.parameters(config),function(t){i&&o(t)},function(t){i&&r(t)})}}},i.prototype.brands=function(){return{list:function(e,o){var r="function"==typeof e&&"function"==typeof o;t.getJSON(n.url_api_brand,function(t){r&&e(t)},function(t){r&&o(t)})}}},i.prototype.category=function(){return{list:function(e,o,r){var i="function"==typeof e&&"function"==typeof o;if(r||!1)return void e([{id:1,name:"Testes e Integração (Departamento)",hasChildren:!1,url:"http://corebiz.vtexcommercestable.com.br/testes-e-integracao--departamento-",children:[]},{id:4,name:"Moda",hasChildren:!1,url:"http://corebiz.vtexcommercestable.com.br/moda",children:[{id:5,name:"Vestuario",hasChildren:!1,url:"http://corebiz.vtexcommercestable.com.br/moda/vestuario",children:[]},{id:6,name:"Celulares",hasChildren:!1,url:"http://corebiz.vtexcommercestable.com.br/moda/celulares",children:[]},{id:7,name:"Acessorios",hasChildren:!1,url:"http://corebiz.vtexcommercestable.com.br/moda/acessorios",children:[]}]},{id:8,name:"Eletrônicos",hasChildren:!1,url:"http://corebiz.vtexcommercestable.com.br/eletronicos",children:[]},{id:10,name:"Parceiros VTEX Store",hasChildren:!1,url:"http://corebiz.vtexcommercestable.com.br/parceiros-vtex-store",children:[]},{id:12,name:"Toy",hasChildren:!1,url:"http://corebiz.vtexcommercestable.com.br/toy",children:[{id:13,name:"steven universo",hasChildren:!1,url:"http://corebiz.vtexcommercestable.com.br/toy/steven-universo",children:[]}]},{id:14,name:"recorrencia",hasChildren:!1,url:"http://corebiz.vtexcommercestable.com.br/recorrencia",children:[]}]);t.getJSON(n.url_api_category,function(t){i&&e(t)},function(t){i&&o(t)})},filters:function(e,o,r,i){if(e){var a="function"==typeof o&&"function"==typeof r;if(i||!1)return void o({Departments:[{Quantity:30,Name:"Moda",Link:"/Moda"}],Brands:[{Quantity:2,Name:"Marca Moda",Link:"/moda/Marca-Moda"},{Quantity:1,Name:"Marca Eletrônicos",Link:"/moda/Marca-Eletronicos"}],SpecificationFilters:{"Exibe na vitrine":[{Quantity:1,Name:"Não",Link:"/moda/Não?map=c,specificationFilter_1029"},{Quantity:1,Name:"Sim",Link:"/moda/Sim?map=c,specificationFilter_1029"}]},CategoriesTrees:[{Quantity:3,Name:"Moda",Link:"/Moda",Children:[{Quantity:2,Name:"Vestuario",Link:"/Moda/Vestuario",Children:[]},{Quantity:1,Name:"Celulares",Link:"/Moda/Celulares",Children:[]}]}]});t.getJSON(n.url_api_facets_filters_category.replace("${category}",e),function(t){a&&o(t)},function(t){a&&r(t)})}}}},i.prototype.products=function(){var e=this;return{service:function(e,o,r){if(e){var i="function"==typeof o&&"function"==typeof r;t.get(n.url_service_sku+e,function(t){i&&o(t?t:!1)})}},buyTogether:function(e,o,i,a){if(e){var s="function"==typeof o&&"function"==typeof i;if(a||!1)return void o({url:"https://corebiz.vtexcommercestable.com.br/checkout/cart/add?sku=3&sku=19&qt…97a901a7e09572e8f34c43c1037f41_geral:467225D68C45B0DCBF4368FECA3DFB67&sc=1",category:"http://corebiz.vtexcommercestable.com.br/moda",total_price:"R$ 110,98",installment:{number:"12x",price:"R$ 9,24"},skus:["3","19"],items:[{thumb:"http://corebiz.vteximg.com.br/arquivos/ids/155398-90-90/carexemplo.png",title:"Produto Variação Cor e Tam SKU Variação Cor1 e Tam 1",url:"http://corebiz.vtexcommercestable.com.br/produto-variacao-cor-e-tam/p"},{thumb:"http://corebiz.vteximg.com.br/arquivos/ids/155397-90-90/corebiz-vtex-store.jpg",title:"Agência Corebiz Vermelho",url:"http://corebiz.vtexcommercestable.com.br/corebiz/p"}]});t.post(n.url_buy_together+e,function(t){s&&o(t?r.toObjectBuyTogether(t):!1)})}},sku:function(e,o,r){if(e){var i="function"==typeof o&&"function"==typeof r;t.getJSON(n.url_product_sku+e,function(t){i&&o(t)},function(t){i&&r(t)})}},product:function(t,n,o){if(t){var r="function"==typeof n&&"function"==typeof o;e.search().products({fq:"productId:"+t},function(t){r&&n(t)},function(t){r&&o(t)})}},variations:function(e,o,r){if(e){var i="function"==typeof o&&"function"==typeof r;t.getJSON(n.url_product_variations+e,function(t){i&&o(t)},function(t){i&&r(t)})}},simulationShipping:function(t,o,r){if(t){var i="function"==typeof o&&"function"==typeof r;e.ajax(n.url_simulation_shipping,"POST",t,function(t){i&&o(t.logisticsInfo?t.logisticsInfo:!1)},function(t){i&&r(t)},!0)}},warnMe:function(t,o,i){if(t){var a=r.toFormData(t),s="function"==typeof o&&"function"==typeof i;e.ajax(n.url_warn_me,"POST",a,function(t){s&&o(t)},function(t){s&&i(t)},!0)}},skuDetails:function(e,o,r){if(e){var i="function"==typeof o&&"function"==typeof r;t.getJSON(n.url_sku_details+e,function(t){i&&o(t)},function(t){i&&r(t)})}},publishReviewComment:function(t,o,i){if(t&&Object.keys(t).length){var a="function"==typeof o&&"function"==typeof i;e.orderForm().list(function(s){if(s.loggedIn){var l=encodeURI(""+t.productId+""+t.ratingValue+"");l=String(l);var c={userId:t.userId,productId:t.productId,title:t.title,comment:t.comment,allowShowUserEmail:"false",ratingValue:encodeURI(l),save:"true",categoryId:t.categoryId},u=r.toFormData(c);e.ajax(n.url_publish_userreviewcomment,"POST",u,function(t){a&&o(t)},function(t){a&&i(t)},!0)}},function(t){a&&i(t)})}},userReview:function(t,o,i,a){if(t){var s={productLinkId:t.produto_variacao,qtdReviewsToBeShown:t.qtdReviewsToBeShown,productId:t.productId,categoryId:t.categoryId},l=r.toFormData(s),c="function"==typeof o&&"function"==typeof i;if(a||!1)return void o({userId:"",rating:'\n
  • \n \n \n \n \n \n \n nenhum voto\n
  • \n
  • \n \n \n \n \n \n \n nenhum voto\n
  • \n
  • \n \n \n \n \n \n \n 1 Voto\n
  • \n
  • \n \n \n \n \n \n \n nenhum voto\n
  • \n
  • \n \n \n \n \n \n \n nenhum voto\n
  • \n
    ',media:'\n \n \n1 voto\n\n ',comments:[{author:"Rafael",rating:"a30",comment:"Meu comentario 2",id:"24"}]});e.ajax(n.url_userreview,"POST",l,function(t){c&&o(r.toObjectReview(t))},function(t){c&&i(t)},!0)}},ratingValue:function(t,o,r){if(t&&Object.keys(t).length){var i={productId:t.productId,categoryId:t.categoryId,productLinkId:t.productLinkId,ratingValue:t.ratingValue,qtdReviewsToBeShown:t.qtdReviewsToBeShown},a="function"==typeof o&&"function"==typeof r;e.ajax(n.url_userreview,"POST",i,function(t){a&&o(t)},function(t){a&&r(t)},!0)}},ratingViewRelevance:function(t,o,r){if(t&&Object.keys(t).length){var i={ProductId:t.ProductId,PaginaAtual:t.PaginaAtual,TamPagina:t.TamPagina,SortOrder:t.SortOrder,isRelevant:t.isRelevant,reviewId:t.reviewId,qtdReviewsToBeShown:t.qtdReviewsToBeShown,source:"UserReview",currentPage:t.currentPage},a="function"==typeof o&&"function"==typeof r;e.ajax(n.url_publish_userreviewrelevance,"POST",i,function(t){a&&o(t)},function(t){a&&r(t)},!0)}}}},i.prototype.profile=function(){var e=this;return{getProfileByEmail:function(o,r,i){if(o){var a="function"==typeof r&&"function"==typeof i;t.getJSON(n.url_profile+e.parameters(o),function(t){a&&r(t)},function(t){a&&i(t)})}},getProfile:function(e,o,r){var i="function"==typeof e&&"function"==typeof o;if(r||!1)return void e({UserId:"555c43ff-c97c-43a8-8bfc-2e76e2255cc0",IsReturningUser:!0,IsUserDefined:!0,IsPJ:!1,FirstName:"Rafael",LastName:"Cruz",Gender:"M",Email:"rafael.cruz@corebiz.com.br"});t.getJSON(n.url_get_profile,function(t){i&&e(t)},function(t){i&&o(t)})},isUserLogged:function(t,n){var o="function"==typeof t&&"function"==typeof n;e.orderForm().list(function(e){o&&t(e.loggedIn)},function(t){o&&n(t)})},postcode:function(e,o,r){var i="function"==typeof o&&"function"==typeof r;e&&t.getJSON(n.url_postcode+e,function(t){i&&o(t)},function(t){i&&r(t)})},getClientProfileData:function(t,n){var o="function"==typeof t&&"function"==typeof n;e.orderForm().list(function(e){o&&t(e.clientProfileData)},function(t){o&&n(t)})},getAddresses:function(t,e){var n="function"==typeof t&&"function"==typeof e,o=this;this.getProfile(function(r){if(!r&&n)return void t(!1);var i=r.Email;i||t(!1),o.getProfileByEmail({email:i},function(e){t(n&&e?{email:i,availableAddresses:e.availableAddresses}:!1)},function(t){n&&e(t)})},function(t){console.error(t)})},getAddress:function(e,o,r){var i="function"==typeof o&&"function"==typeof r;t.getJSON(n.url_address_detail+e,function(t){i&&o(t?t:!1)},function(t){i&&r(t)})},saveAddress:function(t,o,i){var a="function"==typeof o&&"function"==typeof i,s=r.toFormData(t);e.ajax(n.url_address_save,"POST",s,function(){a&&o(!0)},function(t){a&&i(t)},!0)},saveProfile:function(t,o,i){var a="function"==typeof o&&"function"==typeof i,s=r.toFormData(t);e.ajax(n.url_profile_save,"POST",s,function(t){a&&o(t)},function(t){a&&i(t)},!0)},removeAddress:function(e,o,r){var i="function"==typeof o&&"function"==typeof r;e&&t.get(n.url_address_remove+e,function(t){i&&o(t)},function(t){i&&r(t)},!0)},loggout:function(e,o){var r="function"==typeof e&&"function"==typeof o;r?t.get(n.url_user_logout,function(t){r&&e(t)},function(t){r&&o(t)},!0):window.location.href=n.url_user_logout}}},i.prototype.order=function(){return{list:function(e,o){var r="function"==typeof e&&"function"==typeof o;t.getJSON(n.url_orders,function(t){r&&e(t)},function(t){r&&o(t)})},orderByIdOrEmail:function(e,o,r){var i="function"==typeof o&&"function"==typeof r;e&&t.getJSON(n.url_orders+e,function(t){i&&o(t)},function(t){i&&r(t)})},oms:function(e,o,r){var i="function"==typeof o&&"function"==typeof r;e&&t.getJSON(n.url_orders_oms+e,function(t){i&&o(t)},function(t){i&&r(t)})}}},i.prototype.cart=function(){var t=this;return{listOrdination:function(o,r,i,a,s){var l="function"==typeof o&&"function"==typeof r,c=i||!1;a=a||"add_time",s=s||!1,c?o({resume:{total_cart:19798,sub_total_cart:13980,quantity_cart:2},items:[{uniqueId:"3C181015F9294BECB6AB3DAEECC3971A",id:"30",productId:"9",refId:"camisetaazulpp",ean:null,name:"camiseta azul-pp",skuName:"azul-pp",modalType:null,priceValidUntil:"2018-05-01T02:03:56.4800255Z",tax:0,price:9899,listPrice:2e4,manualPrice:null,sellingPrice:9899,rewardValue:0,isGift:!1,additionalInfo:{brandName:"Marca Eletrônicos",brandId:"2000001",offeringInfo:null,offeringType:null,offeringTypeId:null},preSaleDate:null,productCategoryIds:"/4/5/",productCategories:{4:"Moda",5:"Vestuario"},defaultPicker:null,handlerSequence:0,handling:!1,quantity:1,seller:"1",imageUrl:"http://corebiz.vteximg.com.br/arquivos/ids/156440-55-55/ico-socks-2x.png",detailUrl:"/camiseta/p",components:[],bundleItems:[],attachments:[],itemAttachment:{name:null,content:{}},attachmentOfferings:[],offerings:[],priceTags:[],availability:"available",measurementUnit:"un",unitMultiplier:1},{uniqueId:"3C181015F9294BECB6AB3DAEECC3971A",id:"30",productId:"9",refId:"camisetaazulpp",ean:null,name:"camiseta azul-pp 2",skuName:"azul-pp",modalType:null,priceValidUntil:"2018-05-01T02:03:56.4800255Z",tax:0,price:9899,listPrice:2e4,manualPrice:null,sellingPrice:9899,rewardValue:0,isGift:!1,additionalInfo:{brandName:"Marca Eletrônicos",brandId:"2000001",offeringInfo:null,offeringType:null,offeringTypeId:null},preSaleDate:null,productCategoryIds:"/4/5/",productCategories:{4:"Moda",5:"Vestuario"},defaultPicker:null,handlerSequence:0,handling:!1,quantity:1,seller:"1",imageUrl:"http://corebiz.vteximg.com.br/arquivos/ids/156440-55-55/ico-socks-2x.png",detailUrl:"/camiseta/p",components:[],bundleItems:[],attachments:[],itemAttachment:{name:null,content:{}},attachmentOfferings:[],offerings:[],priceTags:[],availability:"available",measurementUnit:"un",unitMultiplier:1}]}):t.orderForm().list(function(i){var c={ascending:s,criteria:a,expectedOrderFormSections:e};return t.ajax(n.url_order_form+"/"+i.orderFormId+"/itemsOrdination","POST",c,function(t){if(l){var e={},n=t.items.reduce(function(t,e){return t+e.quantity},0);if(t.totalizers.length>1)var r=t.totalizers[0].value;else var r="0";e.resume={total_cart:t.value,sub_total_cart:r,quantity_cart:n},e.items=t.items,o(e)}},function(t){l&&r(t)},!0),null}.bind(this),function(t){r(t)})},list:function(e,n,o){var r="function"==typeof e&&"function"==typeof n,i=o||!1;if(r&&i)return void e({resume:{total_cart:19798,sub_total_cart:13980,quantity_cart:2},items:[{uniqueId:"3C181015F9294BECB6AB3DAEECC3971A",id:"30",productId:"9",refId:"camisetaazulpp",ean:null,name:"camiseta azul-pp",skuName:"azul-pp",modalType:null,priceValidUntil:"2018-05-01T02:03:56.4800255Z",tax:0,price:9899,listPrice:2e4,manualPrice:null,sellingPrice:9899,rewardValue:0,isGift:!1,additionalInfo:{brandName:"Marca Eletrônicos",brandId:"2000001",offeringInfo:null,offeringType:null,offeringTypeId:null},preSaleDate:null,productCategoryIds:"/4/5/",productCategories:{4:"Moda",5:"Vestuario"},defaultPicker:null,handlerSequence:0,handling:!1,quantity:1,seller:"1",imageUrl:"http://corebiz.vteximg.com.br/arquivos/ids/156440-55-55/ico-socks-2x.png",detailUrl:"/camiseta/p",components:[],bundleItems:[],attachments:[],itemAttachment:{name:null,content:{}},attachmentOfferings:[],offerings:[],priceTags:[],availability:"available",measurementUnit:"un",unitMultiplier:1},{uniqueId:"3C181015F9294BECB6AB3DAEECC3971A",id:"30",productId:"9",refId:"camisetaazulpp",ean:null,name:"camiseta azul-pp 2",skuName:"azul-pp",modalType:null,priceValidUntil:"2018-05-01T02:03:56.4800255Z",tax:0,price:9899,listPrice:2e4,manualPrice:null,sellingPrice:9899,rewardValue:0,isGift:!1,additionalInfo:{brandName:"Marca Eletrônicos",brandId:"2000001",offeringInfo:null,offeringType:null,offeringTypeId:null},preSaleDate:null,productCategoryIds:"/4/5/",productCategories:{4:"Moda",5:"Vestuario"},defaultPicker:null,handlerSequence:0,handling:!1,quantity:1,seller:"1",imageUrl:"http://corebiz.vteximg.com.br/arquivos/ids/156440-55-55/ico-socks-2x.png",detailUrl:"/camiseta/p",components:[],bundleItems:[],attachments:[],itemAttachment:{name:null,content:{}},attachmentOfferings:[],offerings:[],priceTags:[],availability:"available",measurementUnit:"un",unitMultiplier:1}]});t.orderForm().list(function(t){var n={},o=t.items.reduce(function(t,e){return t+e.quantity},0);if(t.totalizers.length>1)var i=t.totalizers[0].value;else var i="0,00";n.resume={total_cart:t.value,sub_total_cart:i,quantity_cart:o},n.items=t.items,r&&e(n)},function(t){r&&error_fnr(t)})},handleremove:function(o,r,i,a){if(o=o||0,0!==r.items.length){var s="function"==typeof i&&"function"==typeof a,l=[{index:o,quantity:0}],c={orderItems:l,expectedOrderFormSections:e,noSplitItem:!1},u=r.orderFormId;return t.ajax(n.url_order_form+"/"+u+"/items/update","POST",c,function(t){s&&i(t)},function(t){s&&a(t)},!0),null}},handleRemoveAllSkus:function(o,r,i,a){if(0!==r.items.length){var s="function"==typeof i&&"function"==typeof a,l=[];o>=0?l.push({index:o,quantity:0}):l=r.items.map(function(t,e){return{index:e,quantity:0}}),t.warn(l);var c={orderItems:l,expectedOrderFormSections:e,noSplitItem:!1},u=r.orderFormId;return t.ajax(n.url_order_form+"/"+u+"/items/update","POST",c,function(t){s&&i(t)},function(t){s&&a(t)},!0),null}},remove:function(e,n,o,r){var i="function"==typeof n&&"function"==typeof o;r||!1?n(!0):t.orderForm().list(function(t){e>=0?this.handleremove(e,t,function(t){i&&n(t)},function(t){i&&o(t)}):this.handleRemoveAllSkus(e,t,function(t){i&&n(t)},function(t){i&&o(t)})}.bind(this),function(t){o(t)})},handleadd:function(o,r,i,a,s){var l="function"==typeof a&&"function"==typeof s,c={orderItems:r,expectedOrderFormSections:e};return t.ajax(n.url_order_form+"/"+i+"/items?sc="+o,"POST",c,function(t){l&&a(t)},function(t){l&&s(t)},!0),null},add:function(e,n,o,r,i){if(n&&"object"==typeof n){var a="function"==typeof o&&"function"==typeof r;i||!1?o(!0):t.orderForm().list(function(t){this.handleadd(e,n,t.orderFormId,function(t){a&&o(t)},function(t){a&&r(t)})}.bind(this),function(t){r(t)})}},handleUpdate:function(o,r,i,a){var s="function"==typeof i&&"function"==typeof a;o.hasBundleItems=!1;var l={orderItems:o,noSplitItem:!0,expectedOrderFormSections:e};return t.ajax(n.url_order_form+"/"+r+"/items/update/","POST",l,function(t){s&&i(t)},function(t){s&&a(t)},!0),null},update:function(e,n,o,r){if(e&&"object"==typeof e){var i="function"==typeof n&&"function"==typeof o;r||!1?n(!0):t.orderForm().list(function(t){this.handleUpdate(e,t.orderFormId,function(t){i&&n(t)},function(t){i&&o(t)})}.bind(this),function(t){o(t)})}},handleAddCoupon:function(o,r,i,a){var s="function"==typeof i&&"function"==typeof a,l={text:o,expectedOrderFormSections:e};return t.ajax(n.url_order_form+"/"+r+n.url_add_coupon,"POST",l,function(t){s&&i(t)},function(t){s&&a(t)},!0),null},addCoupon:function(e,n,o,r,i){var a="function"==typeof n&&"function"==typeof o,s=r||!1;i=i||!1,s?n(!0):t.orderForm().list(function(t){this.handleAddCoupon(e,t.orderFormId,function(t){a&&n(t.marketingData&&t.marketingData.coupon===e||i?t:!1)},function(t){a&&o(t)})}.bind(this),function(t){o(t)})},deleteCoupon:function(t,e){var n="function"==typeof t&&"function"==typeof e;this.addCoupon("",function(e){n&&t(e)},function(e){n&&t(e)},!1,!0)},getCouponActive:function(e,n,o){var r="function"==typeof e&&"function"==typeof n;o||!1?r&&e({marketingData:{attachmentId:"marketingData",utmSource:null,utmMedium:null,utmCampaign:null,utmipage:null,utmiPart:null,utmiCampaign:null,coupon:"isDeveloperCupom",marketingTags:[]},totalizers:[{id:"Items",name:"Total dos Itens",value:9899},{id:"Discounts",name:"Total dos Descontos",value:-990}],value:8909}):t.orderForm().list(function(t){r&&e(!(!t.marketingData||!t.marketingData.coupon)&&{marketingData:t.marketingData,totalizers:t.totalizers,value:t.value})},function(t){r&&n(t)},!1)},handleSimulationShipping:function(o,r,i,a){var s="function"==typeof i&&"function"==typeof a;if(o){var l={address:{postalCode:o,country:"BRA"},country:"BRA",postalCode:"06416070",expectedOrderFormSections:e};return t.ajax(n.url_order_form+"/"+r+n.url_attachments_shippingData,"POST",l,function(t){s&&i(t)},function(t){s&&a(t)},!0),null}},simulationShipping:function(e,n,o,r){if(e){var i="function"==typeof n&&"function"==typeof o;r||!1?n({orderFormId:"35480778a7354d1b8162515599255c13",salesChannel:"1",loggedIn:!0,isCheckedIn:!1,storeId:null,allowManualPrice:!1,canEditData:!0,userProfileId:"555c43ff-c97c-43a8-8bfc-2e76e2255cc0",userType:null,ignoreProfileData:!1,value:0,messages:[],items:[],selectableGifts:[],products:[],totalizers:[],shippingData:{attachmentId:"shippingData",address:{addressType:null,receiverName:null,addressId:"0e33c6c6387c4a8da1c02d80a399eed2",postalCode:"06416070",city:"Barueri",state:"SP",country:"BRA",street:"Rua Major Álvaro Fontes",number:null,neighborhood:"Vila Engenho Novo",complement:null,reference:null,geoCoordinates:[]},logisticsInfo:[],availableAddresses:[{addressType:null,receiverName:null,addressId:"0e33c6c6387c4a8da1c02d80a399eed2",postalCode:"06416070",city:"Barueri",state:"SP",country:"BRA",street:"Rua Major Álvaro Fontes",number:null,neighborhood:"Vila Engenho Novo",complement:null,reference:null,geoCoordinates:[]}]},clientProfileData:{attachmentId:"clientProfileData",email:"rafael.cruz@corebiz.com.br",firstName:null,lastName:null,document:null,documentType:null,phone:null,corporateName:null,tradeName:null,corporateDocument:null,stateInscription:null,corporatePhone:null,isCorporate:!1,profileCompleteOnLoading:!1,profileErrorOnLoading:!1},paymentData:{installmentOptions:[{paymentSystem:"2",bin:null,paymentName:null,paymentGroupName:null,value:39596,installments:[{count:1,hasInterestRate:!1,interestRate:0,value:39596,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:1,hasInterestRate:!1,interestRate:0,value:39596,total:39596}]},{count:2,hasInterestRate:!1,interestRate:0,value:19798,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:2,hasInterestRate:!1,interestRate:0,value:19798,total:39596}]},{count:3,hasInterestRate:!1,interestRate:0,value:13198,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:3,hasInterestRate:!1,interestRate:0,value:13198,total:39596}]},{count:4,hasInterestRate:!1,interestRate:0,value:9899,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:4,hasInterestRate:!1,interestRate:0,value:9899,total:39596}]},{count:5,hasInterestRate:!1,interestRate:0,value:7919,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:5,hasInterestRate:!1,interestRate:0,value:7919,total:39596}]},{count:6,hasInterestRate:!1,interestRate:0,value:6599,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:6,hasInterestRate:!1,interestRate:0,value:6599,total:39596}]},{count:7,hasInterestRate:!1,interestRate:0,value:5656,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:7,hasInterestRate:!1,interestRate:0,value:5656,total:39596}]},{count:8,hasInterestRate:!1,interestRate:0,value:4949,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:8,hasInterestRate:!1,interestRate:0,value:4949,total:39596}]},{count:9,hasInterestRate:!1,interestRate:0,value:4399,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:9,hasInterestRate:!1,interestRate:0,value:4399,total:39596}]},{count:10,hasInterestRate:!1,interestRate:0,value:3959,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:10,hasInterestRate:!1,interestRate:0,value:3959,total:39596}]},{count:11,hasInterestRate:!1,interestRate:0,value:3599,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:11,hasInterestRate:!1,interestRate:0,value:3599,total:39596}]},{count:12,hasInterestRate:!1,interestRate:0,value:3299,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:12,hasInterestRate:!1,interestRate:0,value:3299,total:39596}]}]},{paymentSystem:"4",bin:null,paymentName:null,paymentGroupName:null,value:39596,installments:[{count:1,hasInterestRate:!1,interestRate:0,value:39596,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:1,hasInterestRate:!1,interestRate:0,value:39596,total:39596}]},{count:2,hasInterestRate:!1,interestRate:0,value:19798,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:2,hasInterestRate:!1,interestRate:0,value:19798,total:39596}]},{count:3,hasInterestRate:!1,interestRate:0,value:13198,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:3,hasInterestRate:!1,interestRate:0,value:13198,total:39596}]},{count:4,hasInterestRate:!1,interestRate:0,value:9899,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:4,hasInterestRate:!1,interestRate:0,value:9899,total:39596}]},{count:5,hasInterestRate:!1,interestRate:0,value:7919,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:5,hasInterestRate:!1,interestRate:0,value:7919,total:39596}]},{count:6,hasInterestRate:!1,interestRate:0,value:6599,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:6,hasInterestRate:!1,interestRate:0,value:6599,total:39596}]},{count:7,hasInterestRate:!1,interestRate:0,value:5656,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:7,hasInterestRate:!1,interestRate:0,value:5656,total:39596}]},{count:8,hasInterestRate:!1,interestRate:0,value:4949,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:8,hasInterestRate:!1,interestRate:0,value:4949,total:39596}]},{count:9,hasInterestRate:!1,interestRate:0,value:4399,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:9,hasInterestRate:!1,interestRate:0,value:4399,total:39596}]},{count:10,hasInterestRate:!1,interestRate:0,value:3959,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:10,hasInterestRate:!1,interestRate:0,value:3959,total:39596}]},{count:11,hasInterestRate:!1,interestRate:0,value:3599,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:11,hasInterestRate:!1,interestRate:0,value:3599,total:39596}]},{count:12,hasInterestRate:!1,interestRate:0,value:3299,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:12,hasInterestRate:!1,interestRate:0,value:3299,total:39596}]}]},{paymentSystem:"16",bin:null,paymentName:null,paymentGroupName:null,value:39596,installments:[{count:1,hasInterestRate:!1,interestRate:0,value:39596,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:1,hasInterestRate:!1,interestRate:0,value:39596,total:39596}]}]},{paymentSystem:"201",bin:null,paymentName:null,paymentGroupName:null,value:39596,installments:[{count:1,hasInterestRate:!1,interestRate:0,value:39596,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:1,hasInterestRate:!1,interestRate:0,value:39596,total:39596}]}]}],paymentSystems:[{id:201,name:"Nome da Promissória",groupName:"custom201PaymentGroupPaymentGroup",validator:{regex:null,mask:null,cardCodeRegex:null,cardCodeMask:null,weights:null,useCvv:!1,useExpirationDate:!1,useCardHolderName:!1,useBillingAddress:!1},stringId:"201",template:"custom201PaymentGroupPaymentGroup-template",requiresDocument:!1,isCustom:!0,description:"Descrição da Promissória",requiresAuthentication:!1,dueDate:"2017-05-08T02:13:57.026031Z"},{id:16,name:"Vale",groupName:"giftCardPaymentGroup",validator:{regex:null,mask:null,cardCodeRegex:null,cardCodeMask:null,weights:null,useCvv:!1,useExpirationDate:!1,useCardHolderName:!1,useBillingAddress:!1},stringId:"16",template:"giftCardPaymentGroup-template",requiresDocument:!1,isCustom:!1,description:null,requiresAuthentication:!1,dueDate:"2017-05-02T02:13:57.0572039Z"},{id:2,name:"Visa",groupName:"creditCardPaymentGroup",validator:{regex:"^4",mask:"9999 9999 9999 9999",cardCodeRegex:"^[0-9]{3}$",cardCodeMask:"999",weights:[2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2],useCvv:!0,useExpirationDate:!0,useCardHolderName:!0,useBillingAddress:!0},stringId:"2",template:"creditCardPaymentGroup-template",requiresDocument:!1,isCustom:!1,description:null,requiresAuthentication:!1,dueDate:"2017-05-04T02:13:57.0728322Z"},{id:4,name:"Mastercard",groupName:"creditCardPaymentGroup",validator:{regex:"^((5(1(0(0(0([0-9])|[1-9][0-9])|[1-9][0-9]{0})|[1-9][0-9]{0})|3(0(4(0([0-9]))|[0-3][0-9]{0}))|2[0-9]{0})|^5(3(0(4(2([0-9])|[3-9][0-9])|[5-9][0-9]{0})|[1-9][0-9]{0})|5(9(9(9([0-9])|[0-8][0-9])|[0-8][0-9]{0})|[0-8][0-9]{0})|4[0-9]{0}))|((508116)\\d{0,10})|((502121)\\d{0,10})|((589916)\\d{0,10})|(2[0-9]{15}))",mask:"9999 9999 9999 9999",cardCodeRegex:"^[0-9]{3}$",cardCodeMask:"999",weights:[2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2],useCvv:!0,useExpirationDate:!0,useCardHolderName:!0,useBillingAddress:!0},stringId:"4",template:"creditCardPaymentGroup-template",requiresDocument:!1,isCustom:!1,description:null,requiresAuthentication:!1,dueDate:"2017-05-04T02:13:57.1040339Z"}],payments:[],giftCards:[],giftCardMessages:[],availableAccounts:[],availableTokens:[]},marketingData:null,sellers:[],clientPreferencesData:{attachmentId:"clientPreferencesData",locale:"pt-BR",optinNewsLetter:null},storePreferencesData:{countryCode:"BRA",checkToSavePersonDataByDefault:!0,templateOptions:{toggleCorporate:!1},timeZone:"E. South America Standard Time",currencyCode:"BRL",currencyLocale:1046,currencySymbol:"R$",currencyFormatInfo:{currencyDecimalDigits:2,currencyDecimalSeparator:",",currencyGroupSeparator:".",currencyGroupSize:3,startsWithCurrencySymbol:!0}},giftRegistryData:null,openTextField:{attachmentId:"openTextField",value:null},customData:null,hooksData:null,ratesAndBenefitsData:null,itemsOrdination:null}):t.orderForm().list(function(t){this.handleSimulationShipping(e,t.orderFormId,function(t){i&&n(t)},function(t){i&&o(t)})}.bind(this),function(t){o(t)})}}}},i.prototype.orderForm=function(){return{list:function(e,o,r){var i="function"==typeof e&&"function"==typeof o;r||!1?e({orderFormId:"35480778a7354d1b8162515599255c13",salesChannel:"1",loggedIn:!0,isCheckedIn:!1,storeId:null,allowManualPrice:!1,canEditData:!0,userProfileId:"555c43ff-c97c-43a8-8bfc-2e76e2255cc0",userType:null,ignoreProfileData:!1,value:0,messages:[],items:[],selectableGifts:[],products:[],totalizers:[],shippingData:{attachmentId:"shippingData",address:{addressType:null,receiverName:null,addressId:"0e33c6c6387c4a8da1c02d80a399eed2",postalCode:"06416070",city:"Barueri",state:"SP",country:"BRA",street:"Rua Major Álvaro Fontes",number:null,neighborhood:"Vila Engenho Novo",complement:null,reference:null,geoCoordinates:[]},logisticsInfo:[],availableAddresses:[{addressType:null,receiverName:null,addressId:"0e33c6c6387c4a8da1c02d80a399eed2",postalCode:"06416070",city:"Barueri",state:"SP",country:"BRA",street:"Rua Major Álvaro Fontes",number:null,neighborhood:"Vila Engenho Novo",complement:null,reference:null,geoCoordinates:[]}]},clientProfileData:{attachmentId:"clientProfileData",email:"rafael.cruz@corebiz.com.br",firstName:null,lastName:null,document:null,documentType:null,phone:null,corporateName:null,tradeName:null,corporateDocument:null,stateInscription:null,corporatePhone:null,isCorporate:!1,profileCompleteOnLoading:!1,profileErrorOnLoading:!1},paymentData:{installmentOptions:[{paymentSystem:"2",bin:null,paymentName:null,paymentGroupName:null,value:39596,installments:[{count:1,hasInterestRate:!1,interestRate:0,value:39596,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:1,hasInterestRate:!1,interestRate:0,value:39596,total:39596}]},{count:2,hasInterestRate:!1,interestRate:0,value:19798,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:2,hasInterestRate:!1,interestRate:0,value:19798,total:39596}]},{count:3,hasInterestRate:!1,interestRate:0,value:13198,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:3,hasInterestRate:!1,interestRate:0,value:13198,total:39596}]},{count:4,hasInterestRate:!1,interestRate:0,value:9899,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:4,hasInterestRate:!1,interestRate:0,value:9899,total:39596}]},{count:5,hasInterestRate:!1,interestRate:0,value:7919,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:5,hasInterestRate:!1,interestRate:0,value:7919,total:39596}]},{count:6,hasInterestRate:!1,interestRate:0,value:6599,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:6,hasInterestRate:!1,interestRate:0,value:6599,total:39596}]},{count:7,hasInterestRate:!1,interestRate:0,value:5656,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:7,hasInterestRate:!1,interestRate:0,value:5656,total:39596}]},{count:8,hasInterestRate:!1,interestRate:0,value:4949,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:8,hasInterestRate:!1,interestRate:0,value:4949,total:39596}]},{count:9,hasInterestRate:!1,interestRate:0,value:4399,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:9,hasInterestRate:!1,interestRate:0,value:4399,total:39596}]},{count:10,hasInterestRate:!1,interestRate:0,value:3959,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:10,hasInterestRate:!1,interestRate:0,value:3959,total:39596}]},{count:11,hasInterestRate:!1,interestRate:0,value:3599,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:11,hasInterestRate:!1,interestRate:0,value:3599,total:39596}]},{count:12,hasInterestRate:!1,interestRate:0,value:3299,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:12,hasInterestRate:!1,interestRate:0,value:3299,total:39596}]}]},{paymentSystem:"4",bin:null,paymentName:null,paymentGroupName:null,value:39596,installments:[{count:1,hasInterestRate:!1,interestRate:0,value:39596,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:1,hasInterestRate:!1,interestRate:0,value:39596,total:39596}]},{count:2,hasInterestRate:!1,interestRate:0,value:19798,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:2,hasInterestRate:!1,interestRate:0,value:19798,total:39596}]},{count:3,hasInterestRate:!1,interestRate:0,value:13198,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:3,hasInterestRate:!1,interestRate:0,value:13198,total:39596}]},{count:4,hasInterestRate:!1,interestRate:0,value:9899,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:4,hasInterestRate:!1,interestRate:0,value:9899,total:39596}]},{count:5,hasInterestRate:!1,interestRate:0,value:7919,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:5,hasInterestRate:!1,interestRate:0,value:7919,total:39596}]},{count:6,hasInterestRate:!1,interestRate:0,value:6599,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:6,hasInterestRate:!1,interestRate:0,value:6599,total:39596}]},{count:7,hasInterestRate:!1,interestRate:0,value:5656,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:7,hasInterestRate:!1,interestRate:0,value:5656,total:39596}]},{count:8,hasInterestRate:!1,interestRate:0,value:4949,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:8,hasInterestRate:!1,interestRate:0,value:4949,total:39596}]},{count:9,hasInterestRate:!1,interestRate:0,value:4399,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:9,hasInterestRate:!1,interestRate:0,value:4399,total:39596}]},{count:10,hasInterestRate:!1,interestRate:0,value:3959,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:10,hasInterestRate:!1,interestRate:0,value:3959,total:39596}]},{count:11,hasInterestRate:!1,interestRate:0,value:3599,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:11,hasInterestRate:!1,interestRate:0,value:3599,total:39596}]},{count:12,hasInterestRate:!1,interestRate:0,value:3299,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:12,hasInterestRate:!1,interestRate:0,value:3299,total:39596}]}]},{paymentSystem:"16",bin:null,paymentName:null,paymentGroupName:null,value:39596,installments:[{count:1,hasInterestRate:!1,interestRate:0,value:39596,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:1,hasInterestRate:!1,interestRate:0,value:39596,total:39596}]}]},{paymentSystem:"201",bin:null,paymentName:null,paymentGroupName:null,value:39596,installments:[{count:1,hasInterestRate:!1,interestRate:0,value:39596,total:39596,sellerMerchantInstallments:[{id:"COREBIZ",count:1,hasInterestRate:!1,interestRate:0,value:39596,total:39596}]}]}],paymentSystems:[{id:201,name:"Nome da Promissória",groupName:"custom201PaymentGroupPaymentGroup",validator:{regex:null,mask:null,cardCodeRegex:null,cardCodeMask:null,weights:null,useCvv:!1,useExpirationDate:!1,useCardHolderName:!1,useBillingAddress:!1},stringId:"201",template:"custom201PaymentGroupPaymentGroup-template",requiresDocument:!1,isCustom:!0,description:"Descrição da Promissória",requiresAuthentication:!1,dueDate:"2017-05-08T02:13:57.026031Z"},{id:16,name:"Vale",groupName:"giftCardPaymentGroup",validator:{regex:null,mask:null,cardCodeRegex:null,cardCodeMask:null,weights:null,useCvv:!1,useExpirationDate:!1,useCardHolderName:!1,useBillingAddress:!1},stringId:"16",template:"giftCardPaymentGroup-template",requiresDocument:!1,isCustom:!1,description:null,requiresAuthentication:!1,dueDate:"2017-05-02T02:13:57.0572039Z"},{id:2,name:"Visa",groupName:"creditCardPaymentGroup",validator:{regex:"^4",mask:"9999 9999 9999 9999",cardCodeRegex:"^[0-9]{3}$",cardCodeMask:"999",weights:[2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2],useCvv:!0,useExpirationDate:!0,useCardHolderName:!0,useBillingAddress:!0},stringId:"2",template:"creditCardPaymentGroup-template",requiresDocument:!1,isCustom:!1,description:null,requiresAuthentication:!1,dueDate:"2017-05-04T02:13:57.0728322Z"},{id:4,name:"Mastercard",groupName:"creditCardPaymentGroup",validator:{regex:"^((5(1(0(0(0([0-9])|[1-9][0-9])|[1-9][0-9]{0})|[1-9][0-9]{0})|3(0(4(0([0-9]))|[0-3][0-9]{0}))|2[0-9]{0})|^5(3(0(4(2([0-9])|[3-9][0-9])|[5-9][0-9]{0})|[1-9][0-9]{0})|5(9(9(9([0-9])|[0-8][0-9])|[0-8][0-9]{0})|[0-8][0-9]{0})|4[0-9]{0}))|((508116)\\d{0,10})|((502121)\\d{0,10})|((589916)\\d{0,10})|(2[0-9]{15}))",mask:"9999 9999 9999 9999",cardCodeRegex:"^[0-9]{3}$",cardCodeMask:"999",weights:[2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2],useCvv:!0,useExpirationDate:!0,useCardHolderName:!0,useBillingAddress:!0},stringId:"4",template:"creditCardPaymentGroup-template",requiresDocument:!1,isCustom:!1,description:null,requiresAuthentication:!1,dueDate:"2017-05-04T02:13:57.1040339Z"}],payments:[],giftCards:[],giftCardMessages:[],availableAccounts:[],availableTokens:[]},marketingData:null,sellers:[],clientPreferencesData:{attachmentId:"clientPreferencesData",locale:"pt-BR",optinNewsLetter:null},storePreferencesData:{countryCode:"BRA",checkToSavePersonDataByDefault:!0,templateOptions:{toggleCorporate:!1},timeZone:"E. South America Standard Time",currencyCode:"BRL",currencyLocale:1046,currencySymbol:"R$",currencyFormatInfo:{currencyDecimalDigits:2,currencyDecimalSeparator:",",currencyGroupSeparator:".",currencyGroupSize:3,startsWithCurrencySymbol:!0}},giftRegistryData:null,openTextField:{attachmentId:"openTextField",value:null},customData:null,hooksData:null,ratesAndBenefitsData:null,itemsOrdination:null}):t.getJSON(n.url_order_form,function(t){i&&e(t)},function(t){i&&o(t)})},clear:function(){this.list(function(t){t.orderFormId&&(window.location.href=n.url_orderform_clear+t.orderFormId)},function(t){error_fn(t)})}}},i.prototype.checkout=function(){var r=this;return{saveAttachments:function(t,e,o,i,a){var s="function"==typeof i&&"function"==typeof a;if(t&&o&&e)return r.ajax(n.url_order_form+"/"+o+"/attachments/"+e,"POST",t,function(t){s&&i(t)},function(t){s&&a(t)},!0),null},handleAddAttachmentsOpenTextField:function(t,o,i,a){var s="function"==typeof i&&"function"==typeof a;if(t){var l={value:t,expectedOrderFormSections:e};return r.ajax(n.url_order_form+"/"+o+n.url_attachments_openTextField,"POST",l,function(t){s&&i(t)},function(t){s&&a(t)},!0),null}},addAttachmentsOpenTextField:function(t,e,n){if(t){var o="function"==typeof e&&"function"==typeof n;r.orderForm().list(function(r){this.handleAddAttachmentsOpenTextField(t,r.orderFormId,function(t){o&&e(t)},function(t){o&&n(t)})}.bind(this),function(t){n(t)})}},handleAddItemAttachment:function(t,o,i,a,s,l){var c="function"==typeof s&&"function"==typeof l;if(t){var u={content:t,expectedOrderFormSections:e,noSplitItem:!1};return r.ajax(n.url_order_form+"/"+a+"/items/"+i+"/attachments/"+o,"POST",u,function(t){c&&s(t)},function(t){c&&l(t)},!0),null}},addItemAttachment:function(t,e,n,o,i){if(t&&e&&""!==n){var a="function"==typeof o&&"function"==typeof i;r.orderForm().list(function(r){this.handleAddItemAttachment(t,e,n,r.orderFormId,function(t){a&&o(t)},function(t){a&&i(t)})}.bind(this),function(t){i(t)})}},saveClientProfileData:function(t,e,n){if(t){var o="function"==typeof e&&"function"==typeof n;r.orderForm().list(function(r){void 0!==t.homePhone&&(t.homePhone="+55"+t.homePhone),void 0!==t.phone&&(t.phone="+55"+t.phone),this.saveAttachments(t,"clientProfileData",r.orderFormId,function(t){o&&e(t)},function(t){o&&n(t)})}.bind(this),function(t){n(t)})}},getAddressInformation:function(e,o,r,i){if(e&&e.country&&e.postalCode){var a="function"==typeof o&&"function"==typeof r;if(i||!1)return void o({postalCode:"22250040",city:"Rio de Janeiro Fake",state:"RJ",country:"BRA",street:"Praia de Botafogo",number:"",neighborhood:"Botafogo",complement:"",reference:"",geoCoordinates:[]});t.ajax({url:n.url_api_address_information+e.country+"/"+e.postalCode,type:"GET",headers:n.header,success:function(t){a&&o(t)},error:function(t){a&&r(!1,t)}})}},saveShippingData:function(t,n,i){if(t&&t.postalCode){var a="function"==typeof n&&"function"==typeof i;r.orderForm().list(function(s){t.addressName=t.addressName||o.getTime(),t.addressId=t.addressId||t.addressName;var l={clearAddressIfPostalCodeNotFound:!0,address:t,expectedOrderFormSections:e},c=this;c.saveAttachments(l,"shippingData",s.orderFormId,function(o){a&&r.orderForm().list(function(r){r.shippingData.address.street?a&&n(o):(l={logisticsInfo:r.shippingData.logisticsInfo,address:t,expectedOrderFormSections:e},c.saveAttachments(l,"shippingData",o.orderFormId,function(t){a&&n(t)},function(t){a&&i(t)}))},function(t){a&&i(t)})},function(t){a&&i(t)})}.bind(this),function(t){i(t)})}},getDeliveryShipping:function(t,e){var n="function"==typeof t&&"function"==typeof e;r.orderForm().list(function(e){n&&t(e.shippingData.logisticsInfo[0])}.bind(this),function(t){e(t)})},chooseDeliveryShipping:function(t,e,n){var o="function"==typeof e&&"function"==typeof n;""!==t&&r.orderForm().list(function(r){if(r.shippingData.logisticsInfo[0]){var i=r.shippingData.logisticsInfo[0].slas[t];if(i){var a={address:Object.assign({},r.shippingData.address),logisticsInfo:r.items.map(function(t,e){return{itemIndex:e,selectedSla:i.id}})},s={attachmentId:"shippingData",address:a.address,logisticsInfo:a.logisticsInfo};this.saveAttachments(s,"shippingData",r.orderFormId,function(t){o&&e(t)},function(t){o&&n(t)})}else o&&e(!1)}o&&e(r.shippingData.logisticsInfo[0])}.bind(this),function(t){n(t)})}}},i.prototype.masterData=function(){var e=this;return{request:function(o,r,i,a,s){a&&(n.header["REST-range"]="resources="+a);var l=n.apiMasterData+r;t.ajax({url:l,data:Object.keys(o).length?JSON.stringify(o):"",type:i,headers:n.header,success:function(t){s(t),e.log("OK "+i+" -- "+l),e.log(t)},error:function(t){s(!1,t),e.error("Error "+i+" -- "+l),e.error(t)}})},insert:function(t,e,n,o){if(!t||!Object.keys(t).length)return void console.info("O objeto de dados esta vazio");var r="function"==typeof n&&"function"==typeof o;return this.request(t,e,"POST","0-1",function(t,e){r&&(t?n(t||!0):o(e))}),null},select:function(t,n,o,r,i){var a="function"==typeof r&&"function"==typeof i;return this.request({},n+e.parameters(t),"GET",o,function(t,e){a&&(t?r(t||!0):i(e))}),null},update:function(t,e,n,o,r){if(!t||!Object.keys(t).length)return void console.info("O objeto de dados esta vazio");var i="function"==typeof n&&"function"==typeof o;return r=r||"PATCH",this.request(t,e,r,"0-1",function(t,e){i&&(t?n(t||!0):o(e))}),null},delete:function(t,e,n){var o="function"==typeof e&&"function"==typeof n;return this.request({},t,"DELETE","0-1",function(t,r){o&&(t?e(t||!0):n(r))}),null}}},i.prototype.newslatter=function(){return{send:function(e,o,i){var a="function"==typeof o&&"function"==typeof i;if(e){var s={};s.newsletterClientName=r.upperAllFirstLetter(e.name),s.newsletterClientEmail=e.email,s.newsInternalPage="_newsletter-vtex",s.newsInternalPart="newsletter",s.newsInternalCampaign="newsletter:opt-in",t.ajax({url:n.url_api_newsletter,type:"POST",data:s,success:function(t){"true"===t?a&&o(!0):o(!1)},error:function(t){a&&i(t)}})}}}},i.prototype.vtex=function(){return{dataserver:function(e,o){var i="function"==typeof e&&"function"==typeof o;t.ajax({url:n.url_api_dataserver,type:"GET",success:function(t){i&&(console.log(t),e(r.formatData(t)))},error:function(t){i&&o(t)}})}}},i.prototype.storage=function(){return{create:function(t,e){t&&("object"==typeof e&&(e=JSON.stringify(e)),window.localStorage.setItem(t,e))},select:function(t){if(t){var e=window.localStorage.getItem(t);return(e.indexOf("{")>-1||e.indexOf("[]")>-1)&&(e=JSON.parse(e)),e}},remove:function(t,e){if(t){if(e>=0){var n=this.select(t);if("object"!=typeof n)return;return n.splice(e,1),n&&this.create(t,n),n}return this.create(t,""),localStorage.removeItem(t),!1}}}},i.prototype.upload=function(){return{send:function(e,o,r,i,a,s,l,c,u){if(e&&o&&r&&i&&s){var d="function"==typeof l,f="function"==typeof c,p="function"==typeof u,h=e.name,m=e.size,v=new FormData;if(v.append("file",e),!(m<=i))return u(!1,"Arquivo maior do que o permitido"),{status:!1,error:"Arquivo maior do que o permitido"};if(!h)return u(!1,"Arquivo não encontrado"),{status:!1,error:"Arquivo não encontrado"};var g=h.split("."),y=g[g.length-1];if(!(a.indexOf(y)>-1))return u(!1,"Tipo do arquivo inválido"),{status:!1,error:"Tipo do arquivo inválido"};t.ajax({url:n.apiMasterData+o+"/documents/"+r+"/"+s+"/attachments",type:"POST",data:v,processData:!1,contentType:!1,enctype:"multipart/form-data",beforeSend:function(t){},xhr:function(){var t=new window.XMLHttpRequest;return t.upload.addEventListener("progress",function(t){if(t.lengthComputable){var e=t.loaded/t.total;e=parseInt(100*e),d&&l(e)}},!1),t}}).success(function(t){f&&c(t)}).error(function(t){p&&u(!1,t)})}}}};var a,s=new i,l={};for(var c in s)"function"==typeof s[c]&&("config"!=c?(a=s[c](),l[c]=a||s[c]):l[c]=s[c]);window.corebiz=l}($),function(t){window.CorebizVtexContentPlaceholder=function(){var e,n,o=arguments;o.length&&(e=o[0].lid_placeholder,n=o[0].lid_placeholder_mobile,origin=o[0].origin||window.location.origin);var r=function(n,r){if(o.length){var i="?lid="+e;t.get(origin+i,function(e){e=(new DOMParser).parseFromString(e,"text/html");var o=[],i="";t(e).find(n).each(function(){i=function(t){if(t)return t.toLowerCase().replace(/[áàãâä]/g,"a").replace(/[éèẽêë]/g,"e").replace(/[íìĩîï]/g,"i").replace(/[óòõôö]/g,"o").replace(/[úùũûü]/g,"u").replace(/ç/g,"c").replace(/(\ |_)+/," ").replace(/(^-+|-+$)/,"").replace(/[^a-z0-9]+/g,"-")}(t(this).children("h2,h1").text()),o.push({name:i,content:t.trim(t(this).html())})}),r(o)})}},i=function(r){if(o.length){var i,a,s=[];i="mobile"==((a=t("body").width())>=1200?"desktop":a>=550&&a<1200?"tablet":"mobile")?"?lid="+n:"?lid="+e,n&&e||(i=""),t.get(origin+i,function(e){e=(new DOMParser).parseFromString(e,"text/html");var n,o,i,a,l,c,u,d="";t(e).find(".box-banner").each(function(){n=t(this).find("img"),o=t(this),i=n.attr("src")||"",a=n.attr("alt")||"",l=n.attr("width")||"",c=n.attr("height")||"",u=n.parent().attr("href")||"",d=o.text()||"",s[o.parent().attr("class")]={src:i,alt:a,width:l,height:c,href:u,content:d,parent:o.parent().attr("class")}}),r(s)})}};this.getImages=function(t){i(function(e){t(e)})},this.getProducts=function(t){r(".vitrine",function(e){t(e)})},this.getContentHTML=function(t){r(".content-html",function(e){t(e)})}}}($),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t:t(jQuery,window,document)}(function(t){!function(e){var n="function"==typeof define&&define.amd,o="undefined"!=typeof module&&module.exports,r="https:"==document.location.protocol?"https:":"http:";n||(o?require("jquery-mousewheel")(t):t.event.special.mousewheel||t("head").append(decodeURI("%3Cscript src="+r+"//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js%3E%3C/script%3E"))),e()}(function(){var e,n="mCustomScrollbar",o="mCS",r=".mCustomScrollbar",i={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},a=0,s={},l=window.attachEvent&&!window.addEventListener?1:0,c=!1,u=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],d={init:function(e){var e=t.extend(!0,{},i,e),n=f.call(this);if(e.live){var l=e.liveSelector||this.selector||r,c=t(l);if("off"===e.live)return void h(l);s[l]=setTimeout(function(){c.mCustomScrollbar(e),"once"===e.live&&c.length&&h(l)},500)}else h(l);return e.setWidth=e.set_width?e.set_width:e.setWidth,e.setHeight=e.set_height?e.set_height:e.setHeight,e.axis=e.horizontalScroll?"x":m(e.axis),e.scrollInertia=e.scrollInertia>0&&e.scrollInertia<17?17:e.scrollInertia,"object"!=typeof e.mouseWheel&&1==e.mouseWheel&&(e.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),e.mouseWheel.scrollAmount=e.mouseWheelPixels?e.mouseWheelPixels:e.mouseWheel.scrollAmount,e.mouseWheel.normalizeDelta=e.advanced.normalizeMouseWheelDelta?e.advanced.normalizeMouseWheelDelta:e.mouseWheel.normalizeDelta,e.scrollButtons.scrollType=v(e.scrollButtons.scrollType),p(e),t(n).each(function(){var n=t(this);if(!n.data(o)){n.data(o,{idx:++a,opt:e,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:n.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var r=n.data(o),i=r.opt,s=n.data("mcs-axis"),l=n.data("mcs-scrollbar-position"),c=n.data("mcs-theme");s&&(i.axis=s),l&&(i.scrollbarPosition=l),c&&(i.theme=c,p(i)),g.call(this),r&&i.callbacks.onCreate&&"function"==typeof i.callbacks.onCreate&&i.callbacks.onCreate.call(this),t("#mCSB_"+r.idx+"_container img:not(."+u[2]+")").addClass(u[2]),d.update.call(null,n)}})},update:function(e,n){var r=e||f.call(this);return t(r).each(function(){var e=t(this);if(e.data(o)){var r=e.data(o),i=r.opt,a=t("#mCSB_"+r.idx+"_container"),s=t("#mCSB_"+r.idx),l=[t("#mCSB_"+r.idx+"_dragger_vertical"),t("#mCSB_"+r.idx+"_dragger_horizontal")];if(!a.length)return;r.tweenRunning&&Q(e),n&&r&&i.callbacks.onBeforeUpdate&&"function"==typeof i.callbacks.onBeforeUpdate&&i.callbacks.onBeforeUpdate.call(this),e.hasClass(u[3])&&e.removeClass(u[3]),e.hasClass(u[4])&&e.removeClass(u[4]),s.css("max-height","none"),s.height()!==e.height()&&s.css("max-height",e.height()),b.call(this),"y"===i.axis||i.advanced.autoExpandHorizontalScroll||a.css("width",y(a)),r.overflowed=S.call(this),I.call(this),i.autoDraggerLength&&w.call(this),x.call(this),k.call(this);var c=[Math.abs(a[0].offsetTop),Math.abs(a[0].offsetLeft)];"x"!==i.axis&&(r.overflowed[0]?l[0].height()>l[0].parent().height()?A.call(this):(G(e,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}),r.contentReset.y=null):(A.call(this),"y"===i.axis?T.call(this):"yx"===i.axis&&r.overflowed[1]&&G(e,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==i.axis&&(r.overflowed[1]?l[1].width()>l[1].parent().width()?A.call(this):(G(e,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}),r.contentReset.x=null):(A.call(this),"x"===i.axis?T.call(this):"yx"===i.axis&&r.overflowed[0]&&G(e,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),n&&r&&(2===n&&i.callbacks.onImageLoad&&"function"==typeof i.callbacks.onImageLoad?i.callbacks.onImageLoad.call(this):3===n&&i.callbacks.onSelectorChange&&"function"==typeof i.callbacks.onSelectorChange?i.callbacks.onSelectorChange.call(this):i.callbacks.onUpdate&&"function"==typeof i.callbacks.onUpdate&&i.callbacks.onUpdate.call(this)),V.call(this)}})},scrollTo:function(e,n){if(void 0!==e&&null!=e){var r=f.call(this);return t(r).each(function(){var r=t(this);if(r.data(o)){var i=r.data(o),a=i.opt,s={trigger:"external",scrollInertia:a.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},l=t.extend(!0,{},s,n),c=q.call(this,e),u=l.scrollInertia>0&&l.scrollInertia<17?17:l.scrollInertia;c[0]=W.call(this,c[0],"y"),c[1]=W.call(this,c[1],"x"),l.moveDragger&&(c[0]*=i.scrollRatio.y,c[1]*=i.scrollRatio.x),l.dur=rt()?0:u,setTimeout(function(){null!==c[0]&&void 0!==c[0]&&"x"!==a.axis&&i.overflowed[0]&&(l.dir="y",l.overwrite="all",G(r,c[0].toString(),l)),null!==c[1]&&void 0!==c[1]&&"y"!==a.axis&&i.overflowed[1]&&(l.dir="x",l.overwrite="none",G(r,c[1].toString(),l))},l.timeout)}})}},stop:function(){var e=f.call(this);return t(e).each(function(){var e=t(this);e.data(o)&&Q(e)})},disable:function(e){var n=f.call(this);return t(n).each(function(){var n=t(this);if(n.data(o)){n.data(o);V.call(this,"remove"),T.call(this),e&&A.call(this),I.call(this,!0),n.addClass(u[3])}})},destroy:function(){var e=f.call(this);return t(e).each(function(){var r=t(this);if(r.data(o)){var i=r.data(o),a=i.opt,s=t("#mCSB_"+i.idx),l=t("#mCSB_"+i.idx+"_container"),c=t(".mCSB_"+i.idx+"_scrollbar");a.live&&h(a.liveSelector||t(e).selector),V.call(this,"remove"),T.call(this),A.call(this),r.removeData(o),K(this,"mcs"),c.remove(),l.find("img."+u[2]).removeClass(u[2]),s.replaceWith(l.contents()),r.removeClass(n+" _"+o+"_"+i.idx+" "+u[6]+" "+u[7]+" "+u[5]+" "+u[3]).addClass(u[4])}})}},f=function(){return"object"!=typeof t(this)||t(this).length<1?r:this},p=function(e){var n=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],o=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],r=["minimal","minimal-dark"],i=["minimal","minimal-dark"],a=["minimal","minimal-dark"];e.autoDraggerLength=!(t.inArray(e.theme,n)>-1)&&e.autoDraggerLength,e.autoExpandScrollbar=!(t.inArray(e.theme,o)>-1)&&e.autoExpandScrollbar,e.scrollButtons.enable=!(t.inArray(e.theme,r)>-1)&&e.scrollButtons.enable,e.autoHideScrollbar=t.inArray(e.theme,i)>-1||e.autoHideScrollbar,e.scrollbarPosition=t.inArray(e.theme,a)>-1?"outside":e.scrollbarPosition},h=function(t){s[t]&&(clearTimeout(s[t]),K(s,t))},m=function(t){return"yx"===t||"xy"===t||"auto"===t?"yx":"x"===t||"horizontal"===t?"x":"y"},v=function(t){return"stepped"===t||"pixels"===t||"step"===t||"click"===t?"stepped":"stepless"},g=function(){var e=t(this),r=e.data(o),i=r.opt,a=i.autoExpandScrollbar?" "+u[1]+"_expand":"",s=["
    ","
    "],l="yx"===i.axis?"mCSB_vertical_horizontal":"x"===i.axis?"mCSB_horizontal":"mCSB_vertical",c="yx"===i.axis?s[0]+s[1]:"x"===i.axis?s[1]:s[0],d="yx"===i.axis?"
    ":"",f=i.autoHideScrollbar?" "+u[6]:"",p="x"!==i.axis&&"rtl"===r.langDir?" "+u[7]:"";i.setWidth&&e.css("width",i.setWidth),i.setHeight&&e.css("height",i.setHeight),i.setLeft="y"!==i.axis&&"rtl"===r.langDir?"989999px":i.setLeft,e.addClass(n+" _"+o+"_"+r.idx+f+p).wrapInner("
    ");var h=t("#mCSB_"+r.idx),m=t("#mCSB_"+r.idx+"_container");"y"===i.axis||i.advanced.autoExpandHorizontalScroll||m.css("width",y(m)),"outside"===i.scrollbarPosition?("static"===e.css("position")&&e.css("position","relative"),e.css("overflow","visible"),h.addClass("mCSB_outside").after(c)):(h.addClass("mCSB_inside").append(c),m.wrap(d)),_.call(this);var v=[t("#mCSB_"+r.idx+"_dragger_vertical"),t("#mCSB_"+r.idx+"_dragger_horizontal")];v[0].css("min-height",v[0].height()),v[1].css("min-width",v[1].width())},y=function(e){var n=[e[0].scrollWidth,Math.max.apply(Math,e.children().map(function(){return t(this).outerWidth(!0)}).get())],o=e.parent().width();return n[0]>o?n[0]:n[1]>o?n[1]:"100%"},b=function(){var e=t(this),n=e.data(o),r=n.opt,i=t("#mCSB_"+n.idx+"_container");if(r.advanced.autoExpandHorizontalScroll&&"y"!==r.axis){i.css({width:"auto","min-width":0,"overflow-x":"scroll"});var a=Math.ceil(i[0].scrollWidth);3===r.advanced.autoExpandHorizontalScroll||2!==r.advanced.autoExpandHorizontalScroll&&a>i.parent().width()?i.css({width:a,"min-width":"100%","overflow-x":"inherit"}):i.css({"overflow-x":"inherit",position:"absolute"}).wrap("
    ").css({width:Math.ceil(i[0].getBoundingClientRect().right+.4)-Math.floor(i[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},_=function(){var e=t(this),n=e.data(o),r=n.opt,i=t(".mCSB_"+n.idx+"_scrollbar:first"),a=nt(r.scrollButtons.tabindex)?"tabindex='"+r.scrollButtons.tabindex+"'":"",s=["","","",""],l=["x"===r.axis?s[2]:s[0],"x"===r.axis?s[3]:s[1],s[2],s[3]];r.scrollButtons.enable&&i.prepend(l[0]).append(l[1]).next(".mCSB_scrollTools").prepend(l[2]).append(l[3])},w=function(){var e=t(this),n=e.data(o),r=t("#mCSB_"+n.idx),i=t("#mCSB_"+n.idx+"_container"),a=[t("#mCSB_"+n.idx+"_dragger_vertical"),t("#mCSB_"+n.idx+"_dragger_horizontal")],s=[r.height()/i.outerHeight(!1),r.width()/i.outerWidth(!1)],c=[parseInt(a[0].css("min-height")),Math.round(s[0]*a[0].parent().height()),parseInt(a[1].css("min-width")),Math.round(s[1]*a[1].parent().width())],u=l&&c[1]a&&(a=l),c>s&&(s=c),[a>r.height(),s>r.width()]},A=function(){var e=t(this),n=e.data(o),r=n.opt,i=t("#mCSB_"+n.idx),a=t("#mCSB_"+n.idx+"_container"),s=[t("#mCSB_"+n.idx+"_dragger_vertical"),t("#mCSB_"+n.idx+"_dragger_horizontal")];if(Q(e),("x"!==r.axis&&!n.overflowed[0]||"y"===r.axis&&n.overflowed[0])&&(s[0].add(a).css("top",0),G(e,"_resetY")),"y"!==r.axis&&!n.overflowed[1]||"x"===r.axis&&n.overflowed[1]){var l=dx=0;"rtl"===n.langDir&&(l=i.width()-a.outerWidth(!1),dx=Math.abs(l/n.scrollRatio.x)),a.css("left",l),s[1].css("left",dx),G(e,"_resetX")}},k=function(){function e(){a=setTimeout(function(){t.event.special.mousewheel?(clearTimeout(a),E.call(n[0])):e()},100)}var n=t(this),r=n.data(o),i=r.opt;if(!r.bindEvents){if(M.call(this),i.contentTouchScroll&&B.call(this),R.call(this),i.mouseWheel.enable){var a;e()}L.call(this),z.call(this),i.advanced.autoScrollOnFocus&&N.call(this),i.scrollButtons.enable&&F.call(this),i.keyboard.enable&&U.call(this),r.bindEvents=!0}},T=function(){var e=t(this),n=e.data(o),r=n.opt,i=o+"_"+n.idx,a=".mCSB_"+n.idx+"_scrollbar",s=t("#mCSB_"+n.idx+",#mCSB_"+n.idx+"_container,#mCSB_"+n.idx+"_container_wrapper,"+a+" ."+u[12]+",#mCSB_"+n.idx+"_dragger_vertical,#mCSB_"+n.idx+"_dragger_horizontal,"+a+">a"),l=t("#mCSB_"+n.idx+"_container");r.advanced.releaseDraggableSelectors&&s.add(t(r.advanced.releaseDraggableSelectors)),r.advanced.extraDraggableSelectors&&s.add(t(r.advanced.extraDraggableSelectors)),n.bindEvents&&(t(document).add(t(!P()||top.document)).unbind("."+i),s.each(function(){t(this).unbind("."+i)}),clearTimeout(e[0]._focusTimeout),K(e[0],"_focusTimeout"),clearTimeout(n.sequential.step),K(n.sequential,"step"),clearTimeout(l[0].onCompleteTimeout),K(l[0],"onCompleteTimeout"),n.bindEvents=!1)},I=function(e){var n=t(this),r=n.data(o),i=r.opt,a=t("#mCSB_"+r.idx+"_container_wrapper"),s=a.length?a:t("#mCSB_"+r.idx+"_container"),l=[t("#mCSB_"+r.idx+"_scrollbar_vertical"),t("#mCSB_"+r.idx+"_scrollbar_horizontal")],c=[l[0].find(".mCSB_dragger"),l[1].find(".mCSB_dragger")];"x"!==i.axis&&(r.overflowed[0]&&!e?(l[0].add(c[0]).add(l[0].children("a")).css("display","block"),s.removeClass(u[8]+" "+u[10])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[0].css("display","none"),s.removeClass(u[10])):(l[0].css("display","none"),s.addClass(u[10])),s.addClass(u[8]))),"y"!==i.axis&&(r.overflowed[1]&&!e?(l[1].add(c[1]).add(l[1].children("a")).css("display","block"),s.removeClass(u[9]+" "+u[11])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[1].css("display","none"),s.removeClass(u[11])):(l[1].css("display","none"),s.addClass(u[11])),s.addClass(u[9]))),r.overflowed[0]||r.overflowed[1]?n.removeClass(u[5]):n.addClass(u[5])},O=function(e){var n=e.type,o=e.target.ownerDocument!==document&&null!==frameElement?[t(frameElement).offset().top,t(frameElement).offset().left]:null,r=P()&&e.target.ownerDocument!==top.document&&null!==frameElement?[t(e.view.frameElement).offset().top,t(e.view.frameElement).offset().left]:[0,0];switch(n){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return o?[e.originalEvent.pageY-o[0]+r[0],e.originalEvent.pageX-o[1]+r[1],!1]:[e.originalEvent.pageY,e.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var i=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],a=e.originalEvent.touches.length||e.originalEvent.changedTouches.length;return e.target.ownerDocument!==document?[i.screenY,i.screenX,a>1]:[i.pageY,i.pageX,a>1];default:return o?[e.pageY-o[0]+r[0],e.pageX-o[1]+r[1],!1]:[e.pageY,e.pageX,!1]}},M=function(){function e(t,e,o,r){if(p[0].idleTimer=u.scrollInertia<233?250:0,n.attr("id")===f[1])var i="x",l=(n[0].offsetLeft-e+r)*s.scrollRatio.x;else var i="y",l=(n[0].offsetTop-t+o)*s.scrollRatio.y;G(a,l.toString(),{dir:i,drag:!0})}var n,r,i,a=t(this),s=a.data(o),u=s.opt,d=o+"_"+s.idx,f=["mCSB_"+s.idx+"_dragger_vertical","mCSB_"+s.idx+"_dragger_horizontal"],p=t("#mCSB_"+s.idx+"_container"),h=t("#"+f[0]+",#"+f[1]),m=u.advanced.releaseDraggableSelectors?h.add(t(u.advanced.releaseDraggableSelectors)):h,v=u.advanced.extraDraggableSelectors?t(!P()||top.document).add(t(u.advanced.extraDraggableSelectors)):t(!P()||top.document);h.bind("contextmenu."+d,function(t){t.preventDefault()}).bind("mousedown."+d+" touchstart."+d+" pointerdown."+d+" MSPointerDown."+d,function(e){if(e.stopImmediatePropagation(),e.preventDefault(),tt(e)){c=!0,l&&(document.onselectstart=function(){return!1}),j.call(p,!1),Q(a),n=t(this);var o=n.offset(),s=O(e)[0]-o.top,d=O(e)[1]-o.left,f=n.height()+o.top,h=n.width()+o.left;s0&&d0&&(r=s,i=d),C(n,"active",u.autoExpandScrollbar)}}).bind("touchmove."+d,function(t){t.stopImmediatePropagation(),t.preventDefault();var o=n.offset(),a=O(t)[0]-o.top,s=O(t)[1]-o.left;e(r,i,a,s)}),t(document).add(v).bind("mousemove."+d+" pointermove."+d+" MSPointerMove."+d,function(t){if(n){var o=n.offset(),a=O(t)[0]-o.top,s=O(t)[1]-o.left;if(r===a&&i===s)return;e(r,i,a,s)}}).add(m).bind("mouseup."+d+" touchend."+d+" pointerup."+d+" MSPointerUp."+d,function(t){n&&(C(n,"active",u.autoExpandScrollbar),n=null),c=!1,l&&(document.onselectstart=null),j.call(p,!0)})},B=function(){function n(t){if(!et(t)||c||O(t)[2])return void(e=0);e=1,x=0,C=0,u=1,S.removeClass("mCS_touch_action");var n=M.offset();d=O(t)[0]-n.top,f=O(t)[1]-n.left,$=[O(t)[0],O(t)[1]]}function r(t){if(et(t)&&!c&&!O(t)[2]&&(k.documentTouchScroll||t.preventDefault(),t.stopImmediatePropagation(),(!C||x)&&u)){v=J();var e=I.offset(),n=O(t)[0]-e.top,o=O(t)[1]-e.left,r="mcsLinearOut";if(R.push(n),E.push(o),$[2]=Math.abs(O(t)[0]-$[0]),$[3]=Math.abs(O(t)[1]-$[1]),A.overflowed[0])var i=B[0].parent().height()-B[0].height(),a=d-n>0&&n-d>-i*A.scrollRatio.y&&(2*$[3]<$[2]||"yx"===k.axis);if(A.overflowed[1])var s=B[1].parent().width()-B[1].width(),p=f-o>0&&o-f>-s*A.scrollRatio.x&&(2*$[2]<$[3]||"yx"===k.axis);a||p?(z||t.preventDefault(),x=1):(C=1,S.addClass("mCS_touch_action")),z&&t.preventDefault(),_="yx"===k.axis?[d-n,f-o]:"x"===k.axis?[null,f-o]:[d-n,null],M[0].idleTimer=250,A.overflowed[0]&&l(_[0],D,r,"y","all",!0),A.overflowed[1]&&l(_[1],D,r,"x",j,!0)}}function i(t){if(!et(t)||c||O(t)[2])return void(e=0);e=1,t.stopImmediatePropagation(),Q(S),m=J();var n=I.offset();p=O(t)[0]-n.top,h=O(t)[1]-n.left,R=[],E=[]}function a(t){if(et(t)&&!c&&!O(t)[2]){u=0,t.stopImmediatePropagation(),x=0,C=0,g=J();var e=I.offset(),n=O(t)[0]-e.top,o=O(t)[1]-e.left;if(!(g-v>30)){b=1e3/(g-m);var r="mcsEaseOut",i=b<2.5,a=i?[R[R.length-2],E[E.length-2]]:[0,0];y=i?[n-a[0],o-a[1]]:[n-p,o-h];var d=[Math.abs(y[0]),Math.abs(y[1])];b=i?[Math.abs(y[0]/4),Math.abs(y[1]/4)]:[b,b];var f=[Math.abs(M[0].offsetTop)-y[0]*s(d[0]/b[0],b[0]),Math.abs(M[0].offsetLeft)-y[1]*s(d[1]/b[1],b[1])];_="yx"===k.axis?[f[0],f[1]]:"x"===k.axis?[null,f[1]]:[f[0],null],w=[4*d[0]+k.scrollInertia,4*d[1]+k.scrollInertia];var S=parseInt(k.contentTouchScroll)||0;_[0]=d[0]>S?_[0]:0,_[1]=d[1]>S?_[1]:0,A.overflowed[0]&&l(_[0],w[0],r,"y",j,!1),A.overflowed[1]&&l(_[1],w[1],r,"x",j,!1)}}}function s(t,e){var n=[1.5*e,2*e,e/1.5,e/2];return t>90?e>4?n[0]:n[3]:t>60?e>3?n[3]:n[2]:t>30?e>8?n[1]:e>6?n[0]:e>4?e:n[2]:e>8?e:n[3]}function l(t,e,n,o,r,i){t&&G(S,t.toString(),{dur:e,scrollEasing:n,dir:o,overwrite:r,drag:i})}var u,d,f,p,h,m,v,g,y,b,_,w,x,C,S=t(this),A=S.data(o),k=A.opt,T=o+"_"+A.idx,I=t("#mCSB_"+A.idx),M=t("#mCSB_"+A.idx+"_container"),B=[t("#mCSB_"+A.idx+"_dragger_vertical"),t("#mCSB_"+A.idx+"_dragger_horizontal")],R=[],E=[],D=0,j="yx"===k.axis?"none":"all",$=[],L=M.find("iframe"),N=["touchstart."+T+" pointerdown."+T+" MSPointerDown."+T,"touchmove."+T+" pointermove."+T+" MSPointerMove."+T,"touchend."+T+" pointerup."+T+" MSPointerUp."+T],z=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;M.bind(N[0],function(t){n(t)}).bind(N[1],function(t){r(t)}),I.bind(N[0],function(t){i(t)}).bind(N[2],function(t){a(t)}),L.length&&L.each(function(){t(this).bind("load",function(){P(this)&&t(this.contentDocument||this.contentWindow.document).bind(N[0],function(t){n(t),i(t)}).bind(N[1],function(t){r(t)}).bind(N[2],function(t){a(t)})})})},R=function(){function n(){return window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0}function r(t,e,n){u.type=n&&i?"stepped":"stepless",u.scrollAmount=10,H(a,t,e,"mcsLinearOut",n?60:null)}var i,a=t(this),s=a.data(o),l=s.opt,u=s.sequential,d=o+"_"+s.idx,f=t("#mCSB_"+s.idx+"_container"),p=f.parent();f.bind("mousedown."+d,function(t){e||i||(i=1,c=!0)}).add(document).bind("mousemove."+d,function(t){if(!e&&i&&n()){var o=f.offset(),a=O(t)[0]-o.top+f[0].offsetTop,c=O(t)[1]-o.left+f[0].offsetLeft;a>0&&a0&&cp.height()&&r("on",40)),"y"!==l.axis&&s.overflowed[1]&&(c<0?r("on",37):c>p.width()&&r("on",39)))}}).bind("mouseup."+d+" dragend."+d,function(t){e||(i&&(i=0,r("off",null)),c=!1)})},E=function(){function e(e,o){if(Q(n),!$(n,e.target)){var a="auto"!==i.mouseWheel.deltaFactor?parseInt(i.mouseWheel.deltaFactor):l&&e.deltaFactor<100?100:e.deltaFactor||100,u=i.scrollInertia;if("x"===i.axis||"x"===i.mouseWheel.axis)var d="x",f=[Math.round(a*r.scrollRatio.x),parseInt(i.mouseWheel.scrollAmount)],p="auto"!==i.mouseWheel.scrollAmount?f[1]:f[0]>=s.width()?.9*s.width():f[0],h=Math.abs(t("#mCSB_"+r.idx+"_container")[0].offsetLeft),m=c[1][0].offsetLeft,v=c[1].parent().width()-c[1].width(),g="y"===i.mouseWheel.axis?e.deltaY||o:e.deltaX;else var d="y",f=[Math.round(a*r.scrollRatio.y),parseInt(i.mouseWheel.scrollAmount)],p="auto"!==i.mouseWheel.scrollAmount?f[1]:f[0]>=s.height()?.9*s.height():f[0],h=Math.abs(t("#mCSB_"+r.idx+"_container")[0].offsetTop),m=c[0][0].offsetTop,v=c[0].parent().height()-c[0].height(),g=e.deltaY||o;"y"===d&&!r.overflowed[0]||"x"===d&&!r.overflowed[1]||((i.mouseWheel.invert||e.webkitDirectionInvertedFromDevice)&&(g=-g),i.mouseWheel.normalizeDelta&&(g=g<0?-1:1),(g>0&&0!==m||g<0&&m!==v||i.mouseWheel.preventDefault)&&(e.stopImmediatePropagation(),e.preventDefault()),e.deltaFactor<5&&!i.mouseWheel.normalizeDelta&&(p=e.deltaFactor,u=17),G(n,(h-g*p).toString(),{dir:d,dur:u}))}}if(t(this).data(o)){var n=t(this),r=n.data(o),i=r.opt,a=o+"_"+r.idx,s=t("#mCSB_"+r.idx),c=[t("#mCSB_"+r.idx+"_dragger_vertical"),t("#mCSB_"+r.idx+"_dragger_horizontal")],u=t("#mCSB_"+r.idx+"_container").find("iframe");u.length&&u.each(function(){t(this).bind("load",function(){P(this)&&t(this.contentDocument||this.contentWindow.document).bind("mousewheel."+a,function(t,n){e(t,n)})})}),s.bind("mousewheel."+a,function(t,n){e(t,n)})}},D=new Object,P=function(e){var n=!1,o=!1,r=null;if(void 0===e?o="#empty":void 0!==t(e).attr("id")&&(o=t(e).attr("id")),!1!==o&&void 0!==D[o])return D[o];if(e){try{var i=e.contentDocument||e.contentWindow.document;r=i.body.innerHTML}catch(t){}n=null!==r}else{try{var i=top.document;r=i.body.innerHTML}catch(t){}n=null!==r}return!1!==o&&(D[o]=n),n},j=function(t){var e=this.find("iframe");if(e.length){var n=t?"auto":"none";e.css("pointer-events",n)}},$=function(e,n){var r=n.nodeName.toLowerCase(),i=e.data(o).opt.mouseWheel.disableOver,a=["select","textarea"];return t.inArray(r,i)>-1&&!(t.inArray(r,a)>-1&&!t(n).is(":focus"))},L=function(){var e,n=t(this),r=n.data(o),i=o+"_"+r.idx,a=t("#mCSB_"+r.idx+"_container"),s=a.parent(),l=t(".mCSB_"+r.idx+"_scrollbar ."+u[12]);l.bind("mousedown."+i+" touchstart."+i+" pointerdown."+i+" MSPointerDown."+i,function(n){c=!0,t(n.target).hasClass("mCSB_dragger")||(e=1)}).bind("touchend."+i+" pointerup."+i+" MSPointerUp."+i,function(t){c=!1}).bind("click."+i,function(o){if(e&&(e=0,t(o.target).hasClass(u[12])||t(o.target).hasClass("mCSB_draggerRail"))){Q(n);var i=t(this),l=i.find(".mCSB_dragger");if(i.parent(".mCSB_scrollTools_horizontal").length>0){if(!r.overflowed[1])return;var c="x",d=o.pageX>l.offset().left?-1:1,f=Math.abs(a[0].offsetLeft)-d*(.9*s.width())}else{if(!r.overflowed[0])return;var c="y",d=o.pageY>l.offset().top?-1:1,f=Math.abs(a[0].offsetTop)-d*(.9*s.height())}G(n,f.toString(),{dir:c,scrollEasing:"mcsEaseInOut"})}})},N=function(){var e=t(this),n=e.data(o),r=n.opt,i=o+"_"+n.idx,a=t("#mCSB_"+n.idx+"_container"),s=a.parent();a.bind("focusin."+i,function(n){var o=t(document.activeElement),i=a.find(".mCustomScrollBox").length,l=0;o.is(r.advanced.autoScrollOnFocus)&&(Q(e),clearTimeout(e[0]._focusTimeout),e[0]._focusTimer=i?(l+17)*i:0,e[0]._focusTimeout=setTimeout(function(){var t=[ot(o)[0],ot(o)[1]],n=[a[0].offsetTop,a[0].offsetLeft],i=[n[0]+t[0]>=0&&n[0]+t[0]=0&&n[0]+t[1]a").bind("contextmenu."+a,function(t){t.preventDefault()}).bind("mousedown."+a+" touchstart."+a+" pointerdown."+a+" MSPointerDown."+a+" mouseup."+a+" touchend."+a+" pointerup."+a+" MSPointerUp."+a+" mouseout."+a+" pointerout."+a+" MSPointerOut."+a+" click."+a,function(o){function a(t,n){i.scrollAmount=r.scrollButtons.scrollAmount,H(e,t,n)}if(o.preventDefault(),tt(o)){var s=t(this).attr("class");switch(i.type=r.scrollButtons.scrollType,o.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===i.type)return;c=!0,n.tweenRunning=!1,a("on",s);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===i.type)return;c=!1,i.dir&&a("off",s);break;case"click":if("stepped"!==i.type||n.tweenRunning)return;a("on",s)}}})},U=function(){function e(e){function o(t,e){a.type=i.keyboard.scrollType,a.scrollAmount=i.keyboard.scrollAmount,"stepped"===a.type&&r.tweenRunning||H(n,t,e)}switch(e.type){case"blur":r.tweenRunning&&a.dir&&o("off",null);break;case"keydown":case"keyup":var s=e.keyCode?e.keyCode:e.which,l="on";if("x"!==i.axis&&(38===s||40===s)||"y"!==i.axis&&(37===s||39===s)){if((38===s||40===s)&&!r.overflowed[0]||(37===s||39===s)&&!r.overflowed[1])return;"keyup"===e.type&&(l="off"),t(document.activeElement).is(d)||(e.preventDefault(),e.stopImmediatePropagation(),o(l,s))}else if(33===s||34===s){if((r.overflowed[0]||r.overflowed[1])&&(e.preventDefault(),e.stopImmediatePropagation()),"keyup"===e.type){Q(n);var f=34===s?-1:1;if("x"===i.axis||"yx"===i.axis&&r.overflowed[1]&&!r.overflowed[0])var p="x",h=Math.abs(c[0].offsetLeft)-f*(.9*u.width());else var p="y",h=Math.abs(c[0].offsetTop)-f*(.9*u.height());G(n,h.toString(),{dir:p,scrollEasing:"mcsEaseInOut"})}}else if((35===s||36===s)&&!t(document.activeElement).is(d)&&((r.overflowed[0]||r.overflowed[1])&&(e.preventDefault(),e.stopImmediatePropagation()),"keyup"===e.type)){if("x"===i.axis||"yx"===i.axis&&r.overflowed[1]&&!r.overflowed[0])var p="x",h=35===s?Math.abs(u.width()-c.outerWidth(!1)):0;else var p="y",h=35===s?Math.abs(u.height()-c.outerHeight(!1)):0;G(n,h.toString(),{dir:p,scrollEasing:"mcsEaseInOut"})}}}var n=t(this),r=n.data(o),i=r.opt,a=r.sequential,s=o+"_"+r.idx,l=t("#mCSB_"+r.idx),c=t("#mCSB_"+r.idx+"_container"),u=c.parent(),d="input,textarea,select,datalist,keygen,[contenteditable='true']",f=c.find("iframe"),p=["blur."+s+" keydown."+s+" keyup."+s];f.length&&f.each(function(){t(this).bind("load",function(){P(this)&&t(this.contentDocument||this.contentWindow.document).bind(p[0],function(t){e(t)})})}),l.attr("tabindex","0").bind(p[0],function(t){e(t)})},H=function(e,n,r,i,a){function s(t){d.snapAmount&&(f.scrollAmount=d.snapAmount instanceof Array?"x"===f.dir[0]?d.snapAmount[1]:d.snapAmount[0]:d.snapAmount);var n="stepped"!==f.type,o=a||(t?n?m/1.5:v:1e3/60),r=t?n?7.5:40:2.5,l=[Math.abs(p[0].offsetTop),Math.abs(p[0].offsetLeft)],u=[c.scrollRatio.y>10?10:c.scrollRatio.y,c.scrollRatio.x>10?10:c.scrollRatio.x],h="x"===f.dir[0]?l[1]+f.dir[1]*(u[1]*r):l[0]+f.dir[1]*(u[0]*r),g="x"===f.dir[0]?l[1]+f.dir[1]*parseInt(f.scrollAmount):l[0]+f.dir[1]*parseInt(f.scrollAmount),y="auto"!==f.scrollAmount?g:h,b=i||(t?n?"mcsLinearOut":"mcsEaseInOut":"mcsLinear"),_=!!t;if(t&&o<17&&(y="x"===f.dir[0]?l[1]:l[0]),G(e,y.toString(),{dir:f.dir[0],scrollEasing:b,dur:o,onComplete:_}),t)return void(f.dir=!1);clearTimeout(f.step),f.step=setTimeout(function(){s()},o)}function l(){clearTimeout(f.step),K(f,"step"),Q(e)}var c=e.data(o),d=c.opt,f=c.sequential,p=t("#mCSB_"+c.idx+"_container"),h="stepped"===f.type,m=d.scrollInertia<26?26:d.scrollInertia,v=d.scrollInertia<1?17:d.scrollInertia;switch(n){case"on":if(f.dir=[r===u[16]||r===u[15]||39===r||37===r?"x":"y",r===u[13]||r===u[15]||38===r||37===r?-1:1],Q(e),nt(r)&&"stepped"===f.type)return;s(h);break;case"off":l(),(h||c.tweenRunning&&f.dir)&&s(!0)}},q=function(e){var n=t(this).data(o).opt,r=[];return"function"==typeof e&&(e=e()),e instanceof Array?r=e.length>1?[e[0],e[1]]:"x"===n.axis?[null,e[0]]:[e[0],null]:(r[0]=e.y?e.y:e.x||"x"===n.axis?null:e,r[1]=e.x?e.x:e.y||"y"===n.axis?null:e),"function"==typeof r[0]&&(r[0]=r[0]()),"function"==typeof r[1]&&(r[1]=r[1]()),r},W=function(e,n){if(null!=e&&void 0!==e){var r=t(this),i=r.data(o),a=i.opt,s=t("#mCSB_"+i.idx+"_container"),l=s.parent(),c=typeof e;n||(n="x"===a.axis?"x":"y");var u="x"===n?s.outerWidth(!1)-l.width():s.outerHeight(!1)-l.height(),f="x"===n?s[0].offsetLeft:s[0].offsetTop,p="x"===n?"left":"top";switch(c){case"function":return e();case"object":var h=e.jquery?e:t(e);if(!h.length)return;return"x"===n?ot(h)[1]:ot(h)[0];case"string":case"number":if(nt(e))return Math.abs(e);if(-1!==e.indexOf("%"))return Math.abs(u*parseInt(e)/100);if(-1!==e.indexOf("-="))return Math.abs(f-parseInt(e.split("-=")[1]));if(-1!==e.indexOf("+=")){var m=f+parseInt(e.split("+=")[1]);return m>=0?0:Math.abs(m)}if(-1!==e.indexOf("px")&&nt(e.split("px")[0]))return Math.abs(e.split("px")[0]);if("top"===e||"left"===e)return 0;if("bottom"===e)return Math.abs(l.height()-s.outerHeight(!1));if("right"===e)return Math.abs(l.width()-s.outerWidth(!1));if("first"===e||"last"===e){var h=s.find(":"+e);return"x"===n?ot(h)[1]:ot(h)[0]}return t(e).length?"x"===n?ot(t(e))[1]:ot(t(e))[0]:(s.css(p,e),void d.update.call(null,r[0]))}}},V=function(e){function n(){if(clearTimeout(f[0].autoUpdate),0===s.parents("html").length)return void(s=null);f[0].autoUpdate=setTimeout(function(){return c.advanced.updateOnSelectorChange&&(l.poll.change.n=i(),l.poll.change.n!==l.poll.change.o)?(l.poll.change.o=l.poll.change.n,void a(3)):c.advanced.updateOnContentResize&&(l.poll.size.n=s[0].scrollHeight+s[0].scrollWidth+f[0].offsetHeight+s[0].offsetHeight+s[0].offsetWidth,l.poll.size.n!==l.poll.size.o)?(l.poll.size.o=l.poll.size.n,void a(1)):!c.advanced.updateOnImageLoad||"auto"===c.advanced.updateOnImageLoad&&"y"===c.axis||(l.poll.img.n=f.find("img").length,l.poll.img.n===l.poll.img.o)?void((c.advanced.updateOnSelectorChange||c.advanced.updateOnContentResize||c.advanced.updateOnImageLoad)&&n()):(l.poll.img.o=l.poll.img.n,void f.find("img").each(function(){r(this)}))},c.advanced.autoUpdateTimeout)}function r(e){function n(t,e){return function(){return e.apply(t,arguments)}}function o(){this.onload=null,t(e).addClass(u[2]),a(2)}if(t(e).hasClass(u[2]))return void a();var r=new Image;r.onload=n(r,o),r.src=e.src}function i(){!0===c.advanced.updateOnSelectorChange&&(c.advanced.updateOnSelectorChange="*");var t=0,e=f.find(c.advanced.updateOnSelectorChange);return c.advanced.updateOnSelectorChange&&e.length>0&&e.each(function(){t+=this.offsetHeight+this.offsetWidth}),t}function a(t){clearTimeout(f[0].autoUpdate),d.update.call(null,s[0],t)}var s=t(this),l=s.data(o),c=l.opt,f=t("#mCSB_"+l.idx+"_container");if(e)return clearTimeout(f[0].autoUpdate),void K(f[0],"autoUpdate");n()},Z=function(t,e,n){return Math.round(t/e)*e-n},Q=function(e){var n=e.data(o);t("#mCSB_"+n.idx+"_container,#mCSB_"+n.idx+"_container_wrapper,#mCSB_"+n.idx+"_dragger_vertical,#mCSB_"+n.idx+"_dragger_horizontal").each(function(){Y.call(this)})},G=function(e,n,r){function i(t){return l&&c.callbacks[t]&&"function"==typeof c.callbacks[t]}function a(){return[c.callbacks.alwaysTriggerOffsets||_>=w[0]+S,c.callbacks.alwaysTriggerOffsets||_<=-A]}function s(){var t=[p[0].offsetTop,p[0].offsetLeft],n=[y[0].offsetTop,y[0].offsetLeft],o=[p.outerHeight(!1),p.outerWidth(!1)],i=[f.height(),f.width()];e[0].mcs={content:p,top:t[0],left:t[1],draggerTop:n[0],draggerLeft:n[1],topPct:Math.round(100*Math.abs(t[0])/(Math.abs(o[0])-i[0])),leftPct:Math.round(100*Math.abs(t[1])/(Math.abs(o[1])-i[1])),direction:r.dir}}var l=e.data(o),c=l.opt,u={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:c.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},r=t.extend(u,r),d=[r.dur,r.drag?0:r.dur],f=t("#mCSB_"+l.idx),p=t("#mCSB_"+l.idx+"_container"),h=p.parent(),m=c.callbacks.onTotalScrollOffset?q.call(e,c.callbacks.onTotalScrollOffset):[0,0],v=c.callbacks.onTotalScrollBackOffset?q.call(e,c.callbacks.onTotalScrollBackOffset):[0,0];if(l.trigger=r.trigger,0===h.scrollTop()&&0===h.scrollLeft()||(t(".mCSB_"+l.idx+"_scrollbar").css("visibility","visible"),h.scrollTop(0).scrollLeft(0)),"_resetY"!==n||l.contentReset.y||(i("onOverflowYNone")&&c.callbacks.onOverflowYNone.call(e[0]),l.contentReset.y=1),"_resetX"!==n||l.contentReset.x||(i("onOverflowXNone")&&c.callbacks.onOverflowXNone.call(e[0]),l.contentReset.x=1),"_resetY"!==n&&"_resetX"!==n){if(!l.contentReset.y&&e[0].mcs||!l.overflowed[0]||(i("onOverflowY")&&c.callbacks.onOverflowY.call(e[0]),l.contentReset.x=null),!l.contentReset.x&&e[0].mcs||!l.overflowed[1]||(i("onOverflowX")&&c.callbacks.onOverflowX.call(e[0]),l.contentReset.x=null),c.snapAmount){var g=c.snapAmount instanceof Array?"x"===r.dir?c.snapAmount[1]:c.snapAmount[0]:c.snapAmount;n=Z(n,g,c.snapOffset)}switch(r.dir){case"x":var y=t("#mCSB_"+l.idx+"_dragger_horizontal"),b="left",_=p[0].offsetLeft,w=[f.width()-p.outerWidth(!1),y.parent().width()-y.width()],x=[n,0===n?0:n/l.scrollRatio.x],S=m[1],A=v[1],k=S>0?S/l.scrollRatio.x:0,T=A>0?A/l.scrollRatio.x:0;break;case"y":var y=t("#mCSB_"+l.idx+"_dragger_vertical"),b="top",_=p[0].offsetTop,w=[f.height()-p.outerHeight(!1),y.parent().height()-y.height()],x=[n,0===n?0:n/l.scrollRatio.y],S=m[0],A=v[0],k=S>0?S/l.scrollRatio.y:0,T=A>0?A/l.scrollRatio.y:0}x[1]<0||0===x[0]&&0===x[1]?x=[0,0]:x[1]>=w[1]?x=[w[0],w[1]]:x[0]=-x[0],e[0].mcs||(s(),i("onInit")&&c.callbacks.onInit.call(e[0])),clearTimeout(p[0].onCompleteTimeout),X(y[0],b,Math.round(x[1]),d[1],r.scrollEasing),!l.tweenRunning&&(0===_&&x[0]>=0||_===w[0]&&x[0]<=w[0])||X(p[0],b,Math.round(x[0]),d[0],r.scrollEasing,r.overwrite,{onStart:function(){r.callbacks&&r.onStart&&!l.tweenRunning&&(i("onScrollStart")&&(s(),c.callbacks.onScrollStart.call(e[0])),l.tweenRunning=!0,C(y),l.cbOffsets=a())},onUpdate:function(){r.callbacks&&r.onUpdate&&i("whileScrolling")&&(s(),c.callbacks.whileScrolling.call(e[0]))},onComplete:function(){if(r.callbacks&&r.onComplete){"yx"===c.axis&&clearTimeout(p[0].onCompleteTimeout);var t=p[0].idleTimer||0;p[0].onCompleteTimeout=setTimeout(function(){i("onScroll")&&(s(),c.callbacks.onScroll.call(e[0])),i("onTotalScroll")&&x[1]>=w[1]-k&&l.cbOffsets[0]&&(s(),c.callbacks.onTotalScroll.call(e[0])),i("onTotalScrollBack")&&x[1]<=T&&l.cbOffsets[1]&&(s(),c.callbacks.onTotalScrollBack.call(e[0])),l.tweenRunning=!1,p[0].idleTimer=0,C(y,"hide")},t)}}})}},X=function(t,e,n,o,r,i,a){function s(){w.stop||(y||h.call(),y=J()-g,l(),y>=w.time&&(w.time=y>w.time?y+f-(y-w.time):y+f-1,w.time0?(w.currVal=d(w.time,b,x,o,r),_[e]=Math.round(w.currVal)+"px"):_[e]=n+"px",m.call()}function c(){f=1e3/60,w.time=y+f,p=window.requestAnimationFrame?window.requestAnimationFrame:function(t){return l(),setTimeout(t,.01)},w.id=p(s)}function u(){null!=w.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(w.id):clearTimeout(w.id),w.id=null)}function d(t,e,n,o,r){switch(r){case"linear":case"mcsLinear":return n*t/o+e;case"mcsLinearOut":return t/=o,t--,n*Math.sqrt(1-t*t)+e;case"easeInOutSmooth":return(t/=o/2)<1?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e);case"easeInOutStrong":return(t/=o/2)<1?n/2*Math.pow(2,10*(t-1))+e:(t--,n/2*(2-Math.pow(2,-10*t))+e);case"easeInOut":case"mcsEaseInOut":return(t/=o/2)<1?n/2*t*t*t+e:(t-=2,n/2*(t*t*t+2)+e);case"easeOutSmooth":return t/=o,t--,-n*(t*t*t*t-1)+e;case"easeOutStrong":return n*(1-Math.pow(2,-10*t/o))+e;case"easeOut":case"mcsEaseOut":default:var i=(t/=o)*t,a=i*t;return e+n*(.499999999999997*a*i+-2.5*i*i+5.5*a+-6.5*i+4*t)}}t._mTween||(t._mTween={top:{},left:{}});var f,p,a=a||{},h=a.onStart||function(){},m=a.onUpdate||function(){},v=a.onComplete||function(){},g=J(),y=0,b=t.offsetTop,_=t.style,w=t._mTween[e];"left"===e&&(b=t.offsetLeft);var x=n-b;w.stop=0,"none"!==i&&u(),c()},J=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},Y=function(){var t=this;t._mTween||(t._mTween={top:{},left:{}});for(var e=["top","left"],n=0;n=0&&o[0]+ot(r)[0]=0&&o[1]+ot(r)[1]=0&&a[1]-i[1]*s[1][0]<0&&a[1]+r[1]-i[1]*s[1][1]>=0},mcsOverflow:t.expr[":"].mcsOverflow||function(e){var n=t(e).data(o);if(n)return n.overflowed[0]||n.overflowed[1]}})})})}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t:t(jQuery,window,document)}(function(t){!function(e){var n="function"==typeof define&&define.amd,o="undefined"!=typeof module&&module.exports,r="https:"==document.location.protocol?"https:":"http:";n||(o?require("jquery-mousewheel")(t):t.event.special.mousewheel||t("head").append(decodeURI("%3Cscript src="+r+"//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js%3E%3C/script%3E"))),e()}(function(){var e,n="mCustomScrollbar",o="mCS",r=".mCustomScrollbar",i={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},a=0,s={},l=window.attachEvent&&!window.addEventListener?1:0,c=!1,u=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],d={init:function(e){var e=t.extend(!0,{},i,e),n=f.call(this);if(e.live){var l=e.liveSelector||this.selector||r,c=t(l);if("off"===e.live)return void h(l);s[l]=setTimeout(function(){c.mCustomScrollbar(e),"once"===e.live&&c.length&&h(l)},500)}else h(l);return e.setWidth=e.set_width?e.set_width:e.setWidth,e.setHeight=e.set_height?e.set_height:e.setHeight,e.axis=e.horizontalScroll?"x":m(e.axis),e.scrollInertia=e.scrollInertia>0&&e.scrollInertia<17?17:e.scrollInertia,"object"!=typeof e.mouseWheel&&1==e.mouseWheel&&(e.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),e.mouseWheel.scrollAmount=e.mouseWheelPixels?e.mouseWheelPixels:e.mouseWheel.scrollAmount,e.mouseWheel.normalizeDelta=e.advanced.normalizeMouseWheelDelta?e.advanced.normalizeMouseWheelDelta:e.mouseWheel.normalizeDelta,e.scrollButtons.scrollType=v(e.scrollButtons.scrollType),p(e),t(n).each(function(){var n=t(this);if(!n.data(o)){n.data(o,{idx:++a,opt:e,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:n.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var r=n.data(o),i=r.opt,s=n.data("mcs-axis"),l=n.data("mcs-scrollbar-position"),c=n.data("mcs-theme");s&&(i.axis=s),l&&(i.scrollbarPosition=l),c&&(i.theme=c,p(i)),g.call(this),r&&i.callbacks.onCreate&&"function"==typeof i.callbacks.onCreate&&i.callbacks.onCreate.call(this),t("#mCSB_"+r.idx+"_container img:not(."+u[2]+")").addClass(u[2]),d.update.call(null,n)}})},update:function(e,n){var r=e||f.call(this);return t(r).each(function(){var e=t(this);if(e.data(o)){var r=e.data(o),i=r.opt,a=t("#mCSB_"+r.idx+"_container"),s=t("#mCSB_"+r.idx),l=[t("#mCSB_"+r.idx+"_dragger_vertical"),t("#mCSB_"+r.idx+"_dragger_horizontal")];if(!a.length)return;r.tweenRunning&&Q(e),n&&r&&i.callbacks.onBeforeUpdate&&"function"==typeof i.callbacks.onBeforeUpdate&&i.callbacks.onBeforeUpdate.call(this),e.hasClass(u[3])&&e.removeClass(u[3]),e.hasClass(u[4])&&e.removeClass(u[4]),s.css("max-height","none"),s.height()!==e.height()&&s.css("max-height",e.height()),b.call(this),"y"===i.axis||i.advanced.autoExpandHorizontalScroll||a.css("width",y(a)),r.overflowed=S.call(this),I.call(this),i.autoDraggerLength&&w.call(this),x.call(this),k.call(this);var c=[Math.abs(a[0].offsetTop),Math.abs(a[0].offsetLeft)];"x"!==i.axis&&(r.overflowed[0]?l[0].height()>l[0].parent().height()?A.call(this):(G(e,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}),r.contentReset.y=null):(A.call(this),"y"===i.axis?T.call(this):"yx"===i.axis&&r.overflowed[1]&&G(e,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==i.axis&&(r.overflowed[1]?l[1].width()>l[1].parent().width()?A.call(this):(G(e,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}),r.contentReset.x=null):(A.call(this),"x"===i.axis?T.call(this):"yx"===i.axis&&r.overflowed[0]&&G(e,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),n&&r&&(2===n&&i.callbacks.onImageLoad&&"function"==typeof i.callbacks.onImageLoad?i.callbacks.onImageLoad.call(this):3===n&&i.callbacks.onSelectorChange&&"function"==typeof i.callbacks.onSelectorChange?i.callbacks.onSelectorChange.call(this):i.callbacks.onUpdate&&"function"==typeof i.callbacks.onUpdate&&i.callbacks.onUpdate.call(this)),V.call(this)}})},scrollTo:function(e,n){if(void 0!==e&&null!=e){var r=f.call(this);return t(r).each(function(){var r=t(this);if(r.data(o)){var i=r.data(o),a=i.opt,s={trigger:"external",scrollInertia:a.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},l=t.extend(!0,{},s,n),c=q.call(this,e),u=l.scrollInertia>0&&l.scrollInertia<17?17:l.scrollInertia;c[0]=W.call(this,c[0],"y"),c[1]=W.call(this,c[1],"x"),l.moveDragger&&(c[0]*=i.scrollRatio.y,c[1]*=i.scrollRatio.x),l.dur=rt()?0:u,setTimeout(function(){null!==c[0]&&void 0!==c[0]&&"x"!==a.axis&&i.overflowed[0]&&(l.dir="y",l.overwrite="all",G(r,c[0].toString(),l)),null!==c[1]&&void 0!==c[1]&&"y"!==a.axis&&i.overflowed[1]&&(l.dir="x",l.overwrite="none",G(r,c[1].toString(),l))},l.timeout)}})}},stop:function(){var e=f.call(this);return t(e).each(function(){var e=t(this);e.data(o)&&Q(e)})},disable:function(e){var n=f.call(this);return t(n).each(function(){var n=t(this);n.data(o)&&(n.data(o),V.call(this,"remove"),T.call(this),e&&A.call(this),I.call(this,!0),n.addClass(u[3]))})},destroy:function(){var e=f.call(this);return t(e).each(function(){var r=t(this);if(r.data(o)){var i=r.data(o),a=i.opt,s=t("#mCSB_"+i.idx),l=t("#mCSB_"+i.idx+"_container"),c=t(".mCSB_"+i.idx+"_scrollbar");a.live&&h(a.liveSelector||t(e).selector),V.call(this,"remove"),T.call(this),A.call(this),r.removeData(o),K(this,"mcs"),c.remove(),l.find("img."+u[2]).removeClass(u[2]),s.replaceWith(l.contents()),r.removeClass(n+" _"+o+"_"+i.idx+" "+u[6]+" "+u[7]+" "+u[5]+" "+u[3]).addClass(u[4])}})}},f=function(){return"object"!=typeof t(this)||t(this).length<1?r:this},p=function(e){var n=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],o=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],r=["minimal","minimal-dark"],i=["minimal","minimal-dark"],a=["minimal","minimal-dark"];e.autoDraggerLength=!(t.inArray(e.theme,n)>-1)&&e.autoDraggerLength,e.autoExpandScrollbar=!(t.inArray(e.theme,o)>-1)&&e.autoExpandScrollbar,e.scrollButtons.enable=!(t.inArray(e.theme,r)>-1)&&e.scrollButtons.enable,e.autoHideScrollbar=t.inArray(e.theme,i)>-1||e.autoHideScrollbar,e.scrollbarPosition=t.inArray(e.theme,a)>-1?"outside":e.scrollbarPosition},h=function(t){s[t]&&(clearTimeout(s[t]),K(s,t))},m=function(t){return"yx"===t||"xy"===t||"auto"===t?"yx":"x"===t||"horizontal"===t?"x":"y"},v=function(t){return"stepped"===t||"pixels"===t||"step"===t||"click"===t?"stepped":"stepless"},g=function(){var e=t(this),r=e.data(o),i=r.opt,a=i.autoExpandScrollbar?" "+u[1]+"_expand":"",s=["
    ","
    "],l="yx"===i.axis?"mCSB_vertical_horizontal":"x"===i.axis?"mCSB_horizontal":"mCSB_vertical",c="yx"===i.axis?s[0]+s[1]:"x"===i.axis?s[1]:s[0],d="yx"===i.axis?"
    ":"",f=i.autoHideScrollbar?" "+u[6]:"",p="x"!==i.axis&&"rtl"===r.langDir?" "+u[7]:"";i.setWidth&&e.css("width",i.setWidth),i.setHeight&&e.css("height",i.setHeight),i.setLeft="y"!==i.axis&&"rtl"===r.langDir?"989999px":i.setLeft,e.addClass(n+" _"+o+"_"+r.idx+f+p).wrapInner("
    ");var h=t("#mCSB_"+r.idx),m=t("#mCSB_"+r.idx+"_container");"y"===i.axis||i.advanced.autoExpandHorizontalScroll||m.css("width",y(m)),"outside"===i.scrollbarPosition?("static"===e.css("position")&&e.css("position","relative"),e.css("overflow","visible"),h.addClass("mCSB_outside").after(c)):(h.addClass("mCSB_inside").append(c),m.wrap(d)),_.call(this);var v=[t("#mCSB_"+r.idx+"_dragger_vertical"),t("#mCSB_"+r.idx+"_dragger_horizontal")];v[0].css("min-height",v[0].height()),v[1].css("min-width",v[1].width())},y=function(e){var n=[e[0].scrollWidth,Math.max.apply(Math,e.children().map(function(){return t(this).outerWidth(!0)}).get())],o=e.parent().width();return n[0]>o?n[0]:n[1]>o?n[1]:"100%"},b=function(){var e=t(this),n=e.data(o),r=n.opt,i=t("#mCSB_"+n.idx+"_container");if(r.advanced.autoExpandHorizontalScroll&&"y"!==r.axis){i.css({width:"auto","min-width":0,"overflow-x":"scroll"});var a=Math.ceil(i[0].scrollWidth);3===r.advanced.autoExpandHorizontalScroll||2!==r.advanced.autoExpandHorizontalScroll&&a>i.parent().width()?i.css({width:a,"min-width":"100%","overflow-x":"inherit"}):i.css({"overflow-x":"inherit",position:"absolute"}).wrap("
    ").css({width:Math.ceil(i[0].getBoundingClientRect().right+.4)-Math.floor(i[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},_=function(){var e=t(this),n=e.data(o),r=n.opt,i=t(".mCSB_"+n.idx+"_scrollbar:first"),a=nt(r.scrollButtons.tabindex)?"tabindex='"+r.scrollButtons.tabindex+"'":"",s=["","","",""],l=["x"===r.axis?s[2]:s[0],"x"===r.axis?s[3]:s[1],s[2],s[3]];r.scrollButtons.enable&&i.prepend(l[0]).append(l[1]).next(".mCSB_scrollTools").prepend(l[2]).append(l[3])},w=function(){var e=t(this),n=e.data(o),r=t("#mCSB_"+n.idx),i=t("#mCSB_"+n.idx+"_container"),a=[t("#mCSB_"+n.idx+"_dragger_vertical"),t("#mCSB_"+n.idx+"_dragger_horizontal")],s=[r.height()/i.outerHeight(!1),r.width()/i.outerWidth(!1)],c=[parseInt(a[0].css("min-height")),Math.round(s[0]*a[0].parent().height()),parseInt(a[1].css("min-width")),Math.round(s[1]*a[1].parent().width())],u=l&&c[1]a&&(a=l),c>s&&(s=c),[a>r.height(),s>r.width()]},A=function(){var e=t(this),n=e.data(o),r=n.opt,i=t("#mCSB_"+n.idx),a=t("#mCSB_"+n.idx+"_container"),s=[t("#mCSB_"+n.idx+"_dragger_vertical"),t("#mCSB_"+n.idx+"_dragger_horizontal")];if(Q(e),("x"!==r.axis&&!n.overflowed[0]||"y"===r.axis&&n.overflowed[0])&&(s[0].add(a).css("top",0),G(e,"_resetY")),"y"!==r.axis&&!n.overflowed[1]||"x"===r.axis&&n.overflowed[1]){var l=dx=0;"rtl"===n.langDir&&(l=i.width()-a.outerWidth(!1),dx=Math.abs(l/n.scrollRatio.x)),a.css("left",l),s[1].css("left",dx),G(e,"_resetX")}},k=function(){function e(){a=setTimeout(function(){t.event.special.mousewheel?(clearTimeout(a),E.call(n[0])):e()},100)}var n=t(this),r=n.data(o),i=r.opt;if(!r.bindEvents){if(M.call(this),i.contentTouchScroll&&B.call(this),R.call(this),i.mouseWheel.enable){var a;e()}L.call(this),z.call(this),i.advanced.autoScrollOnFocus&&N.call(this),i.scrollButtons.enable&&F.call(this),i.keyboard.enable&&U.call(this),r.bindEvents=!0}},T=function(){var e=t(this),n=e.data(o),r=n.opt,i=o+"_"+n.idx,a=".mCSB_"+n.idx+"_scrollbar",s=t("#mCSB_"+n.idx+",#mCSB_"+n.idx+"_container,#mCSB_"+n.idx+"_container_wrapper,"+a+" ."+u[12]+",#mCSB_"+n.idx+"_dragger_vertical,#mCSB_"+n.idx+"_dragger_horizontal,"+a+">a"),l=t("#mCSB_"+n.idx+"_container");r.advanced.releaseDraggableSelectors&&s.add(t(r.advanced.releaseDraggableSelectors)),r.advanced.extraDraggableSelectors&&s.add(t(r.advanced.extraDraggableSelectors)),n.bindEvents&&(t(document).add(t(!P()||top.document)).unbind("."+i),s.each(function(){t(this).unbind("."+i)}),clearTimeout(e[0]._focusTimeout),K(e[0],"_focusTimeout"),clearTimeout(n.sequential.step),K(n.sequential,"step"),clearTimeout(l[0].onCompleteTimeout),K(l[0],"onCompleteTimeout"),n.bindEvents=!1)},I=function(e){var n=t(this),r=n.data(o),i=r.opt,a=t("#mCSB_"+r.idx+"_container_wrapper"),s=a.length?a:t("#mCSB_"+r.idx+"_container"),l=[t("#mCSB_"+r.idx+"_scrollbar_vertical"),t("#mCSB_"+r.idx+"_scrollbar_horizontal")],c=[l[0].find(".mCSB_dragger"),l[1].find(".mCSB_dragger")];"x"!==i.axis&&(r.overflowed[0]&&!e?(l[0].add(c[0]).add(l[0].children("a")).css("display","block"),s.removeClass(u[8]+" "+u[10])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[0].css("display","none"),s.removeClass(u[10])):(l[0].css("display","none"),s.addClass(u[10])),s.addClass(u[8]))),"y"!==i.axis&&(r.overflowed[1]&&!e?(l[1].add(c[1]).add(l[1].children("a")).css("display","block"),s.removeClass(u[9]+" "+u[11])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[1].css("display","none"),s.removeClass(u[11])):(l[1].css("display","none"),s.addClass(u[11])),s.addClass(u[9]))),r.overflowed[0]||r.overflowed[1]?n.removeClass(u[5]):n.addClass(u[5])},O=function(e){var n=e.type,o=e.target.ownerDocument!==document&&null!==frameElement?[t(frameElement).offset().top,t(frameElement).offset().left]:null,r=P()&&e.target.ownerDocument!==top.document&&null!==frameElement?[t(e.view.frameElement).offset().top,t(e.view.frameElement).offset().left]:[0,0];switch(n){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return o?[e.originalEvent.pageY-o[0]+r[0],e.originalEvent.pageX-o[1]+r[1],!1]:[e.originalEvent.pageY,e.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var i=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],a=e.originalEvent.touches.length||e.originalEvent.changedTouches.length;return e.target.ownerDocument!==document?[i.screenY,i.screenX,a>1]:[i.pageY,i.pageX,a>1];default:return o?[e.pageY-o[0]+r[0],e.pageX-o[1]+r[1],!1]:[e.pageY,e.pageX,!1]}},M=function(){function e(t,e,o,r){if(p[0].idleTimer=u.scrollInertia<233?250:0,n.attr("id")===f[1])var i="x",l=(n[0].offsetLeft-e+r)*s.scrollRatio.x;else var i="y",l=(n[0].offsetTop-t+o)*s.scrollRatio.y;G(a,l.toString(),{dir:i,drag:!0})}var n,r,i,a=t(this),s=a.data(o),u=s.opt,d=o+"_"+s.idx,f=["mCSB_"+s.idx+"_dragger_vertical","mCSB_"+s.idx+"_dragger_horizontal"],p=t("#mCSB_"+s.idx+"_container"),h=t("#"+f[0]+",#"+f[1]),m=u.advanced.releaseDraggableSelectors?h.add(t(u.advanced.releaseDraggableSelectors)):h,v=u.advanced.extraDraggableSelectors?t(!P()||top.document).add(t(u.advanced.extraDraggableSelectors)):t(!P()||top.document);h.bind("contextmenu."+d,function(t){t.preventDefault()}).bind("mousedown."+d+" touchstart."+d+" pointerdown."+d+" MSPointerDown."+d,function(e){if(e.stopImmediatePropagation(),e.preventDefault(),tt(e)){c=!0,l&&(document.onselectstart=function(){return!1}),j.call(p,!1),Q(a),n=t(this);var o=n.offset(),s=O(e)[0]-o.top,d=O(e)[1]-o.left,f=n.height()+o.top,h=n.width()+o.left;f>s&&s>0&&h>d&&d>0&&(r=s,i=d),C(n,"active",u.autoExpandScrollbar)}}).bind("touchmove."+d,function(t){t.stopImmediatePropagation(),t.preventDefault();var o=n.offset(),a=O(t)[0]-o.top,s=O(t)[1]-o.left;e(r,i,a,s)}),t(document).add(v).bind("mousemove."+d+" pointermove."+d+" MSPointerMove."+d,function(t){if(n){var o=n.offset(),a=O(t)[0]-o.top,s=O(t)[1]-o.left;if(r===a&&i===s)return;e(r,i,a,s)}}).add(m).bind("mouseup."+d+" touchend."+d+" pointerup."+d+" MSPointerUp."+d,function(){n&&(C(n,"active",u.autoExpandScrollbar),n=null),c=!1,l&&(document.onselectstart=null),j.call(p,!0)})},B=function(){function n(t){if(!et(t)||c||O(t)[2])return void(e=0);e=1,x=0,C=0,u=1,S.removeClass("mCS_touch_action");var n=M.offset();d=O(t)[0]-n.top,f=O(t)[1]-n.left,$=[O(t)[0],O(t)[1]]}function r(t){if(et(t)&&!c&&!O(t)[2]&&(k.documentTouchScroll||t.preventDefault(),t.stopImmediatePropagation(),(!C||x)&&u)){v=J();var e=I.offset(),n=O(t)[0]-e.top,o=O(t)[1]-e.left,r="mcsLinearOut";if(R.push(n),E.push(o),$[2]=Math.abs(O(t)[0]-$[0]),$[3]=Math.abs(O(t)[1]-$[1]),A.overflowed[0])var i=B[0].parent().height()-B[0].height(),a=d-n>0&&n-d>-i*A.scrollRatio.y&&(2*$[3]<$[2]||"yx"===k.axis);if(A.overflowed[1])var s=B[1].parent().width()-B[1].width(),p=f-o>0&&o-f>-s*A.scrollRatio.x&&(2*$[2]<$[3]||"yx"===k.axis);a||p?(z||t.preventDefault(),x=1):(C=1,S.addClass("mCS_touch_action")),z&&t.preventDefault(),_="yx"===k.axis?[d-n,f-o]:"x"===k.axis?[null,f-o]:[d-n,null],M[0].idleTimer=250,A.overflowed[0]&&l(_[0],D,r,"y","all",!0),A.overflowed[1]&&l(_[1],D,r,"x",j,!0)}}function i(t){if(!et(t)||c||O(t)[2])return void(e=0);e=1,t.stopImmediatePropagation(),Q(S),m=J();var n=I.offset();p=O(t)[0]-n.top,h=O(t)[1]-n.left,R=[],E=[]}function a(t){if(et(t)&&!c&&!O(t)[2]){u=0,t.stopImmediatePropagation(),x=0,C=0,g=J();var e=I.offset(),n=O(t)[0]-e.top,o=O(t)[1]-e.left;if(!(g-v>30)){b=1e3/(g-m);var r="mcsEaseOut",i=2.5>b,a=i?[R[R.length-2],E[E.length-2]]:[0,0];y=i?[n-a[0],o-a[1]]:[n-p,o-h];var d=[Math.abs(y[0]),Math.abs(y[1])];b=i?[Math.abs(y[0]/4),Math.abs(y[1]/4)]:[b,b];var f=[Math.abs(M[0].offsetTop)-y[0]*s(d[0]/b[0],b[0]),Math.abs(M[0].offsetLeft)-y[1]*s(d[1]/b[1],b[1])];_="yx"===k.axis?[f[0],f[1]]:"x"===k.axis?[null,f[1]]:[f[0],null],w=[4*d[0]+k.scrollInertia,4*d[1]+k.scrollInertia];var S=parseInt(k.contentTouchScroll)||0;_[0]=d[0]>S?_[0]:0,_[1]=d[1]>S?_[1]:0,A.overflowed[0]&&l(_[0],w[0],r,"y",j,!1),A.overflowed[1]&&l(_[1],w[1],r,"x",j,!1)}}}function s(t,e){var n=[1.5*e,2*e,e/1.5,e/2];return t>90?e>4?n[0]:n[3]:t>60?e>3?n[3]:n[2]:t>30?e>8?n[1]:e>6?n[0]:e>4?e:n[2]:e>8?e:n[3]}function l(t,e,n,o,r,i){t&&G(S,t.toString(),{dur:e,scrollEasing:n,dir:o,overwrite:r,drag:i})}var u,d,f,p,h,m,v,g,y,b,_,w,x,C,S=t(this),A=S.data(o),k=A.opt,T=o+"_"+A.idx,I=t("#mCSB_"+A.idx),M=t("#mCSB_"+A.idx+"_container"),B=[t("#mCSB_"+A.idx+"_dragger_vertical"),t("#mCSB_"+A.idx+"_dragger_horizontal")],R=[],E=[],D=0,j="yx"===k.axis?"none":"all",$=[],L=M.find("iframe"),N=["touchstart."+T+" pointerdown."+T+" MSPointerDown."+T,"touchmove."+T+" pointermove."+T+" MSPointerMove."+T,"touchend."+T+" pointerup."+T+" MSPointerUp."+T],z=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;M.bind(N[0],function(t){n(t)}).bind(N[1],function(t){r(t)}),I.bind(N[0],function(t){i(t)}).bind(N[2],function(t){a(t)}),L.length&&L.each(function(){t(this).bind("load",function(){P(this)&&t(this.contentDocument||this.contentWindow.document).bind(N[0],function(t){n(t),i(t)}).bind(N[1],function(t){r(t)}).bind(N[2],function(t){a(t)})})})},R=function(){function n(){return window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0}function r(t,e,n){u.type=n&&i?"stepped":"stepless",u.scrollAmount=10,H(a,t,e,"mcsLinearOut",n?60:null)}var i,a=t(this),s=a.data(o),l=s.opt,u=s.sequential,d=o+"_"+s.idx,f=t("#mCSB_"+s.idx+"_container"),p=f.parent();f.bind("mousedown."+d,function(){e||i||(i=1,c=!0)}).add(document).bind("mousemove."+d,function(t){if(!e&&i&&n()){var o=f.offset(),a=O(t)[0]-o.top+f[0].offsetTop,c=O(t)[1]-o.left+f[0].offsetLeft;a>0&&a0&&ca?r("on",38):a>p.height()&&r("on",40)),"y"!==l.axis&&s.overflowed[1]&&(0>c?r("on",37):c>p.width()&&r("on",39)))}}).bind("mouseup."+d+" dragend."+d,function(){e||(i&&(i=0,r("off",null)),c=!1)})},E=function(){function e(e,o){if(Q(n),!$(n,e.target)){var a="auto"!==i.mouseWheel.deltaFactor?parseInt(i.mouseWheel.deltaFactor):l&&e.deltaFactor<100?100:e.deltaFactor||100,u=i.scrollInertia;if("x"===i.axis||"x"===i.mouseWheel.axis)var d="x",f=[Math.round(a*r.scrollRatio.x),parseInt(i.mouseWheel.scrollAmount)],p="auto"!==i.mouseWheel.scrollAmount?f[1]:f[0]>=s.width()?.9*s.width():f[0],h=Math.abs(t("#mCSB_"+r.idx+"_container")[0].offsetLeft),m=c[1][0].offsetLeft,v=c[1].parent().width()-c[1].width(),g="y"===i.mouseWheel.axis?e.deltaY||o:e.deltaX;else var d="y",f=[Math.round(a*r.scrollRatio.y),parseInt(i.mouseWheel.scrollAmount)],p="auto"!==i.mouseWheel.scrollAmount?f[1]:f[0]>=s.height()?.9*s.height():f[0],h=Math.abs(t("#mCSB_"+r.idx+"_container")[0].offsetTop),m=c[0][0].offsetTop,v=c[0].parent().height()-c[0].height(),g=e.deltaY||o;"y"===d&&!r.overflowed[0]||"x"===d&&!r.overflowed[1]||((i.mouseWheel.invert||e.webkitDirectionInvertedFromDevice)&&(g=-g),i.mouseWheel.normalizeDelta&&(g=0>g?-1:1),(g>0&&0!==m||0>g&&m!==v||i.mouseWheel.preventDefault)&&(e.stopImmediatePropagation(),e.preventDefault()),e.deltaFactor<5&&!i.mouseWheel.normalizeDelta&&(p=e.deltaFactor,u=17),G(n,(h-g*p).toString(),{dir:d,dur:u}))}}if(t(this).data(o)){var n=t(this),r=n.data(o),i=r.opt,a=o+"_"+r.idx,s=t("#mCSB_"+r.idx),c=[t("#mCSB_"+r.idx+"_dragger_vertical"),t("#mCSB_"+r.idx+"_dragger_horizontal")],u=t("#mCSB_"+r.idx+"_container").find("iframe");u.length&&u.each(function(){t(this).bind("load",function(){P(this)&&t(this.contentDocument||this.contentWindow.document).bind("mousewheel."+a,function(t,n){e(t,n)})})}),s.bind("mousewheel."+a,function(t,n){e(t,n)})}},D=new Object,P=function(e){var n=!1,o=!1,r=null;if(void 0===e?o="#empty":void 0!==t(e).attr("id")&&(o=t(e).attr("id")),!1!==o&&void 0!==D[o])return D[o];if(e){try{var i=e.contentDocument||e.contentWindow.document;r=i.body.innerHTML}catch(t){}n=null!==r}else{try{var i=top.document;r=i.body.innerHTML}catch(t){}n=null!==r}return!1!==o&&(D[o]=n),n},j=function(t){var e=this.find("iframe");if(e.length){var n=t?"auto":"none";e.css("pointer-events",n)}},$=function(e,n){var r=n.nodeName.toLowerCase(),i=e.data(o).opt.mouseWheel.disableOver,a=["select","textarea"];return t.inArray(r,i)>-1&&!(t.inArray(r,a)>-1&&!t(n).is(":focus"))},L=function(){var e,n=t(this),r=n.data(o),i=o+"_"+r.idx,a=t("#mCSB_"+r.idx+"_container"),s=a.parent();t(".mCSB_"+r.idx+"_scrollbar ."+u[12]).bind("mousedown."+i+" touchstart."+i+" pointerdown."+i+" MSPointerDown."+i,function(n){c=!0,t(n.target).hasClass("mCSB_dragger")||(e=1)}).bind("touchend."+i+" pointerup."+i+" MSPointerUp."+i,function(){c=!1}).bind("click."+i,function(o){if(e&&(e=0,t(o.target).hasClass(u[12])||t(o.target).hasClass("mCSB_draggerRail"))){Q(n);var i=t(this),l=i.find(".mCSB_dragger");if(i.parent(".mCSB_scrollTools_horizontal").length>0){if(!r.overflowed[1])return;var c="x",d=o.pageX>l.offset().left?-1:1,f=Math.abs(a[0].offsetLeft)-d*(.9*s.width())}else{if(!r.overflowed[0])return;var c="y",d=o.pageY>l.offset().top?-1:1,f=Math.abs(a[0].offsetTop)-d*(.9*s.height())}G(n,f.toString(),{dir:c,scrollEasing:"mcsEaseInOut"})}})},N=function(){var e=t(this),n=e.data(o),r=n.opt,i=o+"_"+n.idx,a=t("#mCSB_"+n.idx+"_container"),s=a.parent();a.bind("focusin."+i,function(){var n=t(document.activeElement),o=a.find(".mCustomScrollBox").length,i=0;n.is(r.advanced.autoScrollOnFocus)&&(Q(e),clearTimeout(e[0]._focusTimeout),e[0]._focusTimer=o?(i+17)*o:0,e[0]._focusTimeout=setTimeout(function(){var t=[ot(n)[0],ot(n)[1]],o=[a[0].offsetTop,a[0].offsetLeft],l=[o[0]+t[0]>=0&&o[0]+t[0]=0&&o[0]+t[1]a").bind("contextmenu."+a,function(t){t.preventDefault()}).bind("mousedown."+a+" touchstart."+a+" pointerdown."+a+" MSPointerDown."+a+" mouseup."+a+" touchend."+a+" pointerup."+a+" MSPointerUp."+a+" mouseout."+a+" pointerout."+a+" MSPointerOut."+a+" click."+a,function(o){function a(t,n){i.scrollAmount=r.scrollButtons.scrollAmount,H(e,t,n)}if(o.preventDefault(),tt(o)){var s=t(this).attr("class");switch(i.type=r.scrollButtons.scrollType,o.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===i.type)return;c=!0,n.tweenRunning=!1,a("on",s);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===i.type)return;c=!1,i.dir&&a("off",s);break;case"click":if("stepped"!==i.type||n.tweenRunning)return;a("on",s)}}})},U=function(){function e(e){function o(t,e){a.type=i.keyboard.scrollType,a.scrollAmount=i.keyboard.scrollAmount,"stepped"===a.type&&r.tweenRunning||H(n,t,e)}switch(e.type){case"blur":r.tweenRunning&&a.dir&&o("off",null);break;case"keydown":case"keyup":var s=e.keyCode?e.keyCode:e.which,l="on";if("x"!==i.axis&&(38===s||40===s)||"y"!==i.axis&&(37===s||39===s)){if((38===s||40===s)&&!r.overflowed[0]||(37===s||39===s)&&!r.overflowed[1])return;"keyup"===e.type&&(l="off"),t(document.activeElement).is(d)||(e.preventDefault(),e.stopImmediatePropagation(),o(l,s))}else if(33===s||34===s){if((r.overflowed[0]||r.overflowed[1])&&(e.preventDefault(),e.stopImmediatePropagation()),"keyup"===e.type){Q(n);var f=34===s?-1:1;if("x"===i.axis||"yx"===i.axis&&r.overflowed[1]&&!r.overflowed[0])var p="x",h=Math.abs(c[0].offsetLeft)-f*(.9*u.width());else var p="y",h=Math.abs(c[0].offsetTop)-f*(.9*u.height());G(n,h.toString(),{dir:p,scrollEasing:"mcsEaseInOut"})}}else if((35===s||36===s)&&!t(document.activeElement).is(d)&&((r.overflowed[0]||r.overflowed[1])&&(e.preventDefault(),e.stopImmediatePropagation()),"keyup"===e.type)){if("x"===i.axis||"yx"===i.axis&&r.overflowed[1]&&!r.overflowed[0])var p="x",h=35===s?Math.abs(u.width()-c.outerWidth(!1)):0;else var p="y",h=35===s?Math.abs(u.height()-c.outerHeight(!1)):0;G(n,h.toString(),{dir:p,scrollEasing:"mcsEaseInOut"})}}}var n=t(this),r=n.data(o),i=r.opt,a=r.sequential,s=o+"_"+r.idx,l=t("#mCSB_"+r.idx),c=t("#mCSB_"+r.idx+"_container"),u=c.parent(),d="input,textarea,select,datalist,keygen,[contenteditable='true']",f=c.find("iframe"),p=["blur."+s+" keydown."+s+" keyup."+s];f.length&&f.each(function(){t(this).bind("load",function(){P(this)&&t(this.contentDocument||this.contentWindow.document).bind(p[0],function(t){e(t)})})}),l.attr("tabindex","0").bind(p[0],function(t){e(t)})},H=function(e,n,r,i,a){function s(t){d.snapAmount&&(f.scrollAmount=d.snapAmount instanceof Array?"x"===f.dir[0]?d.snapAmount[1]:d.snapAmount[0]:d.snapAmount);var n="stepped"!==f.type,o=a||(t?n?m/1.5:v:1e3/60),r=t?n?7.5:40:2.5,l=[Math.abs(p[0].offsetTop),Math.abs(p[0].offsetLeft)],u=[c.scrollRatio.y>10?10:c.scrollRatio.y,c.scrollRatio.x>10?10:c.scrollRatio.x],h="x"===f.dir[0]?l[1]+f.dir[1]*(u[1]*r):l[0]+f.dir[1]*(u[0]*r),g="x"===f.dir[0]?l[1]+f.dir[1]*parseInt(f.scrollAmount):l[0]+f.dir[1]*parseInt(f.scrollAmount),y="auto"!==f.scrollAmount?g:h,b=i||(t?n?"mcsLinearOut":"mcsEaseInOut":"mcsLinear"),_=!!t;return t&&17>o&&(y="x"===f.dir[0]?l[1]:l[0]),G(e,y.toString(),{dir:f.dir[0],scrollEasing:b,dur:o,onComplete:_}),t?void(f.dir=!1):(clearTimeout(f.step),void(f.step=setTimeout(function(){s()},o)))}function l(){clearTimeout(f.step),K(f,"step"),Q(e)}var c=e.data(o),d=c.opt,f=c.sequential,p=t("#mCSB_"+c.idx+"_container"),h="stepped"===f.type,m=d.scrollInertia<26?26:d.scrollInertia,v=d.scrollInertia<1?17:d.scrollInertia;switch(n){case"on":if(f.dir=[r===u[16]||r===u[15]||39===r||37===r?"x":"y",r===u[13]||r===u[15]||38===r||37===r?-1:1],Q(e),nt(r)&&"stepped"===f.type)return;s(h);break;case"off":l(),(h||c.tweenRunning&&f.dir)&&s(!0)}},q=function(e){var n=t(this).data(o).opt,r=[];return"function"==typeof e&&(e=e()),e instanceof Array?r=e.length>1?[e[0],e[1]]:"x"===n.axis?[null,e[0]]:[e[0],null]:(r[0]=e.y?e.y:e.x||"x"===n.axis?null:e,r[1]=e.x?e.x:e.y||"y"===n.axis?null:e),"function"==typeof r[0]&&(r[0]=r[0]()),"function"==typeof r[1]&&(r[1]=r[1]()),r},W=function(e,n){if(null!=e&&void 0!==e){var r=t(this),i=r.data(o),a=i.opt,s=t("#mCSB_"+i.idx+"_container"),l=s.parent(),c=typeof e;n||(n="x"===a.axis?"x":"y");var u="x"===n?s.outerWidth(!1)-l.width():s.outerHeight(!1)-l.height(),f="x"===n?s[0].offsetLeft:s[0].offsetTop,p="x"===n?"left":"top";switch(c){case"function":return e();case"object":var h=e.jquery?e:t(e);if(!h.length)return;return"x"===n?ot(h)[1]:ot(h)[0];case"string":case"number":if(nt(e))return Math.abs(e);if(-1!==e.indexOf("%"))return Math.abs(u*parseInt(e)/100);if(-1!==e.indexOf("-="))return Math.abs(f-parseInt(e.split("-=")[1]));if(-1!==e.indexOf("+=")){var m=f+parseInt(e.split("+=")[1]);return m>=0?0:Math.abs(m)}if(-1!==e.indexOf("px")&&nt(e.split("px")[0]))return Math.abs(e.split("px")[0]);if("top"===e||"left"===e)return 0;if("bottom"===e)return Math.abs(l.height()-s.outerHeight(!1));if("right"===e)return Math.abs(l.width()-s.outerWidth(!1));if("first"===e||"last"===e){var h=s.find(":"+e);return"x"===n?ot(h)[1]:ot(h)[0]}return t(e).length?"x"===n?ot(t(e))[1]:ot(t(e))[0]:(s.css(p,e),void d.update.call(null,r[0]))}}},V=function(e){function n(){return clearTimeout(f[0].autoUpdate),0===s.parents("html").length?void(s=null):void(f[0].autoUpdate=setTimeout(function(){return c.advanced.updateOnSelectorChange&&(l.poll.change.n=i(),l.poll.change.n!==l.poll.change.o)?(l.poll.change.o=l.poll.change.n,void a(3)):c.advanced.updateOnContentResize&&(l.poll.size.n=s[0].scrollHeight+s[0].scrollWidth+f[0].offsetHeight+s[0].offsetHeight+s[0].offsetWidth,l.poll.size.n!==l.poll.size.o)?(l.poll.size.o=l.poll.size.n,void a(1)):!c.advanced.updateOnImageLoad||"auto"===c.advanced.updateOnImageLoad&&"y"===c.axis||(l.poll.img.n=f.find("img").length,l.poll.img.n===l.poll.img.o)?void((c.advanced.updateOnSelectorChange||c.advanced.updateOnContentResize||c.advanced.updateOnImageLoad)&&n()):(l.poll.img.o=l.poll.img.n,void f.find("img").each(function(){r(this)}))},c.advanced.autoUpdateTimeout))}function r(e){function n(t,e){return function(){return e.apply(t,arguments)}}function o(){this.onload=null,t(e).addClass(u[2]),a(2)}if(t(e).hasClass(u[2]))return void a();var r=new Image;r.onload=n(r,o),r.src=e.src}function i(){!0===c.advanced.updateOnSelectorChange&&(c.advanced.updateOnSelectorChange="*");var t=0,e=f.find(c.advanced.updateOnSelectorChange);return c.advanced.updateOnSelectorChange&&e.length>0&&e.each(function(){t+=this.offsetHeight+this.offsetWidth}),t}function a(t){clearTimeout(f[0].autoUpdate),d.update.call(null,s[0],t)}var s=t(this),l=s.data(o),c=l.opt,f=t("#mCSB_"+l.idx+"_container");return e?(clearTimeout(f[0].autoUpdate),void K(f[0],"autoUpdate")):void n()},Z=function(t,e,n){return Math.round(t/e)*e-n},Q=function(e){var n=e.data(o);t("#mCSB_"+n.idx+"_container,#mCSB_"+n.idx+"_container_wrapper,#mCSB_"+n.idx+"_dragger_vertical,#mCSB_"+n.idx+"_dragger_horizontal").each(function(){Y.call(this)})},G=function(e,n,r){function i(t){return l&&c.callbacks[t]&&"function"==typeof c.callbacks[t]}function a(){return[c.callbacks.alwaysTriggerOffsets||_>=w[0]+S,c.callbacks.alwaysTriggerOffsets||-A>=_]}function s(){var t=[p[0].offsetTop,p[0].offsetLeft],n=[y[0].offsetTop,y[0].offsetLeft],o=[p.outerHeight(!1),p.outerWidth(!1)],i=[f.height(),f.width()];e[0].mcs={content:p,top:t[0],left:t[1],draggerTop:n[0],draggerLeft:n[1],topPct:Math.round(100*Math.abs(t[0])/(Math.abs(o[0])-i[0])),leftPct:Math.round(100*Math.abs(t[1])/(Math.abs(o[1])-i[1])),direction:r.dir}}var l=e.data(o),c=l.opt,u={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:c.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},r=t.extend(u,r),d=[r.dur,r.drag?0:r.dur],f=t("#mCSB_"+l.idx),p=t("#mCSB_"+l.idx+"_container"),h=p.parent(),m=c.callbacks.onTotalScrollOffset?q.call(e,c.callbacks.onTotalScrollOffset):[0,0],v=c.callbacks.onTotalScrollBackOffset?q.call(e,c.callbacks.onTotalScrollBackOffset):[0,0];if(l.trigger=r.trigger,0===h.scrollTop()&&0===h.scrollLeft()||(t(".mCSB_"+l.idx+"_scrollbar").css("visibility","visible"),h.scrollTop(0).scrollLeft(0)),"_resetY"!==n||l.contentReset.y||(i("onOverflowYNone")&&c.callbacks.onOverflowYNone.call(e[0]),l.contentReset.y=1),"_resetX"!==n||l.contentReset.x||(i("onOverflowXNone")&&c.callbacks.onOverflowXNone.call(e[0]),l.contentReset.x=1),"_resetY"!==n&&"_resetX"!==n){if(!l.contentReset.y&&e[0].mcs||!l.overflowed[0]||(i("onOverflowY")&&c.callbacks.onOverflowY.call(e[0]),l.contentReset.x=null),!l.contentReset.x&&e[0].mcs||!l.overflowed[1]||(i("onOverflowX")&&c.callbacks.onOverflowX.call(e[0]),l.contentReset.x=null),c.snapAmount){var g=c.snapAmount instanceof Array?"x"===r.dir?c.snapAmount[1]:c.snapAmount[0]:c.snapAmount;n=Z(n,g,c.snapOffset)}switch(r.dir){case"x":var y=t("#mCSB_"+l.idx+"_dragger_horizontal"),b="left",_=p[0].offsetLeft,w=[f.width()-p.outerWidth(!1),y.parent().width()-y.width()],x=[n,0===n?0:n/l.scrollRatio.x],S=m[1],A=v[1],k=S>0?S/l.scrollRatio.x:0,T=A>0?A/l.scrollRatio.x:0;break;case"y":var y=t("#mCSB_"+l.idx+"_dragger_vertical"),b="top",_=p[0].offsetTop,w=[f.height()-p.outerHeight(!1),y.parent().height()-y.height()],x=[n,0===n?0:n/l.scrollRatio.y],S=m[0],A=v[0],k=S>0?S/l.scrollRatio.y:0,T=A>0?A/l.scrollRatio.y:0}x[1]<0||0===x[0]&&0===x[1]?x=[0,0]:x[1]>=w[1]?x=[w[0],w[1]]:x[0]=-x[0],e[0].mcs||(s(),i("onInit")&&c.callbacks.onInit.call(e[0])),clearTimeout(p[0].onCompleteTimeout),X(y[0],b,Math.round(x[1]),d[1],r.scrollEasing),!l.tweenRunning&&(0===_&&x[0]>=0||_===w[0]&&x[0]<=w[0])||X(p[0],b,Math.round(x[0]),d[0],r.scrollEasing,r.overwrite,{onStart:function(){r.callbacks&&r.onStart&&!l.tweenRunning&&(i("onScrollStart")&&(s(),c.callbacks.onScrollStart.call(e[0])),l.tweenRunning=!0,C(y),l.cbOffsets=a())},onUpdate:function(){r.callbacks&&r.onUpdate&&i("whileScrolling")&&(s(),c.callbacks.whileScrolling.call(e[0]))},onComplete:function(){if(r.callbacks&&r.onComplete){"yx"===c.axis&&clearTimeout(p[0].onCompleteTimeout);var t=p[0].idleTimer||0;p[0].onCompleteTimeout=setTimeout(function(){i("onScroll")&&(s(),c.callbacks.onScroll.call(e[0])),i("onTotalScroll")&&x[1]>=w[1]-k&&l.cbOffsets[0]&&(s(),c.callbacks.onTotalScroll.call(e[0])),i("onTotalScrollBack")&&x[1]<=T&&l.cbOffsets[1]&&(s(),c.callbacks.onTotalScrollBack.call(e[0])),l.tweenRunning=!1,p[0].idleTimer=0,C(y,"hide")},t)}}})}},X=function(t,e,n,o,r,i,a){function s(){w.stop||(y||h.call(),y=J()-g,l(),y>=w.time&&(w.time=y>w.time?y+f-(y-w.time):y+f-1,w.time0?(w.currVal=d(w.time,b,x,o,r),_[e]=Math.round(w.currVal)+"px"):_[e]=n+"px",m.call()}function c(){f=1e3/60,w.time=y+f,p=window.requestAnimationFrame?window.requestAnimationFrame:function(t){return l(),setTimeout(t,.01)},w.id=p(s)}function u(){null!=w.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(w.id):clearTimeout(w.id),w.id=null)}function d(t,e,n,o,r){switch(r){case"linear":case"mcsLinear":return n*t/o+e;case"mcsLinearOut":return t/=o,t--,n*Math.sqrt(1-t*t)+e;case"easeInOutSmooth":return t/=o/2,1>t?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e);case"easeInOutStrong":return t/=o/2,1>t?n/2*Math.pow(2,10*(t-1))+e:(t--,n/2*(2-Math.pow(2,-10*t))+e);case"easeInOut":case"mcsEaseInOut":return t/=o/2,1>t?n/2*t*t*t+e:(t-=2,n/2*(t*t*t+2)+e);case"easeOutSmooth":return t/=o,t--,-n*(t*t*t*t-1)+e;case"easeOutStrong":return n*(1-Math.pow(2,-10*t/o))+e;case"easeOut":case"mcsEaseOut":default:var i=(t/=o)*t,a=i*t;return e+n*(.499999999999997*a*i+-2.5*i*i+5.5*a+-6.5*i+4*t)}}t._mTween||(t._mTween={top:{},left:{}});var f,p,a=a||{},h=a.onStart||function(){},m=a.onUpdate||function(){},v=a.onComplete||function(){},g=J(),y=0,b=t.offsetTop,_=t.style,w=t._mTween[e];"left"===e&&(b=t.offsetLeft);var x=n-b;w.stop=0,"none"!==i&&u(),c()},J=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},Y=function(){var t=this;t._mTween||(t._mTween={top:{},left:{}});for(var e=["top","left"],n=0;n=0&&o[0]+ot(r)[0]=0&&o[1]+ot(r)[1]=0&&a[1]-i[1]*s[1][0]<0&&a[1]+r[1]-i[1]*s[1][1]>=0},mcsOverflow:t.expr[":"].mcsOverflow||function(e){var n=t(e).data(o);if(n)return n.overflowed[0]||n.overflowed[1]}})})})}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=function(e,n){return void 0===n&&(n="undefined"!=typeof window?require("jquery"):require("jquery")(e)),t(n),n}:t(jQuery)}(function(t){function e(e,n,o){"string"==typeof o&&(o={className:o}),this.options=x(w,t.isPlainObject(o)?o:{}),this.loadHTML(),this.wrapper=t(p.html),this.options.clickToHide&&this.wrapper.addClass(r+"-hidable"),this.wrapper.data(r,this),this.arrow=this.wrapper.find("."+r+"-arrow"),this.container=this.wrapper.find("."+r+"-container"),this.container.append(this.userContainer),e&&e.length&&(this.elementType=e.attr("type"),this.originalElement=e,this.elem=k(e),this.elem.data(r,this),this.elem.before(this.wrapper)),this.container.hide(),this.run(n)}var n=[].indexOf||function(t){for(var e=0,n=this.length;e\n\t
    \n\t
    \n
    ',css:"."+r+"-corner {\n\tposition: fixed;\n\tmargin: 5px;\n\tz-index: 1050;\n}\n\n."+r+"-corner ."+r+"-wrapper,\n."+r+"-corner ."+r+"-container {\n\tposition: relative;\n\tdisplay: block;\n\theight: inherit;\n\twidth: inherit;\n\tmargin: 3px;\n}\n\n."+r+"-wrapper {\n\tz-index: 1;\n\tposition: absolute;\n\tdisplay: inline-block;\n\theight: 0;\n\twidth: 0;\n}\n\n."+r+"-container {\n\tdisplay: none;\n\tz-index: 1;\n\tposition: absolute;\n}\n\n."+r+"-hidable {\n\tcursor: pointer;\n}\n\n[data-notify-text],[data-notify-html] {\n\tposition: relative;\n}\n\n."+r+"-arrow {\n\tposition: absolute;\n\tz-index: 2;\n\twidth: 0;\n\theight: 0;\n}"},h={"border-radius":["-webkit-","-moz-"]},m=function(t){return f[t]},v=function(t){if(!t)throw"Missing Style name";f[t]&&delete f[t]},g=function(e,n){if(!e)throw"Missing Style name";if(!n)throw"Missing Style definition";if(!n.html)throw"Missing Style HTML";var i=f[e];i&&i.cssElem&&(window.console&&console.warn(o+": overwriting style '"+e+"'"),f[e].cssElem.remove()),n.name=e,f[e]=n;var a="";n.classes&&t.each(n.classes,function(e,o){return a+="."+r+"-"+n.name+"-"+e+" {\n",t.each(o,function(e,n){return h[e]&&t.each(h[e],function(t,o){return a+="\t"+o+e+": "+n+";\n"}),a+="\t"+e+": "+n+";\n"}),a+="}\n"}),n.css&&(a+="/* styles for "+n.name+" */\n"+n.css),a&&(n.cssElem=y(a),n.cssElem.attr("id","notify-"+n.name));var s={},l=t(n.html);b("html",l,s),b("text",l,s),n.fields=s},y=function(e){var n;n=S("style"),n.attr("type","text/css"),t("head").append(n);try{n.html(e)}catch(t){n[0].styleSheet.cssText=e}return n},b=function(e,n,o){var r;return"html"!==e&&(e="text"),r="data-notify-"+e,_(n,"["+r+"]").each(function(){var n;n=t(this).attr(r),n||(n=i),o[n]=e})},_=function(t,e){return t.is(e)?t:t.find(e)},w={clickToHide:!0,autoHide:!0,autoHideDelay:5e3,arrowShow:!0,arrowSize:5,breakNewLines:!0,elementPosition:"bottom",globalPosition:"top right",style:"bootstrap",className:"error",showAnimation:"slideDown",showDuration:400,hideAnimation:"slideUp",hideDuration:200,gap:5},x=function(e,n){var o;return o=function(){},o.prototype=e,t.extend(!0,new o,n)},C=function(e){return t.extend(w,e)},S=function(e){return t("<"+e+">")},A={},k=function(e){var n;return e.is("[type=radio]")&&(n=e.parents("form:first").find("[type=radio]").filter(function(n,o){return t(o).attr("name")===e.attr("name")}),e=n.first()),e},T=function(t,e,n){var o;if("string"==typeof n)n=parseInt(n,10);else if("number"!=typeof n)return;if(!isNaN(n))return o=a[u[e.charAt(0)]],e,void 0!==t[o]&&(e=a[o.charAt(0)],n=-n),void 0===t[e]?t[e]=n:t[e]+=n,null},I=function(t,e,n){if("l"===t||"t"===t)return 0;if("c"===t||"m"===t)return n/2-e/2;if("r"===t||"b"===t)return n-e;throw"Invalid alignment"},O=function(t){return O.e=O.e||S("div"),O.e.text(t).html()};e.prototype.loadHTML=function(){var e;e=this.getStyle(),this.userContainer=t(e.html),this.userFields=e.fields},e.prototype.show=function(t,e){var n,o,r,i,a;if(o=function(n){return function(){if(!t&&!n.elem&&n.destroy(),e)return e()}}(this),a=this.container.parent().parents(":hidden").length>0,r=this.container.add(this.arrow),n=[],a&&t)i="show";else if(a&&!t)i="hide";else if(!a&&t)i=this.options.showAnimation,n.push(this.options.showDuration);else{if(a||t)return o();i=this.options.hideAnimation,n.push(this.options.hideDuration)}return n.push(o),r[i].apply(r,n)},e.prototype.setGlobalPosition=function(){var e=this.getPosition(),n=e[0],o=e[1],i=a[n],s=a[o],l=n+"|"+o,c=A[l];if(!c||!document.body.contains(c[0])){c=A[l]=S("div");var u={};u[i]=0,"middle"===s?u.top="45%":"center"===s?u.left="45%":u[s]=0,c.css(u).addClass(r+"-corner"),t("body").append(c)}return c.prepend(this.wrapper)},e.prototype.setElementPosition=function(){var e,o,r,i,d,f,p,h,m,v,g,y,b,_,w,x,C,S,A,k,O,M,B,R,E,D,P,j;for(D=this.getPosition(),B=D[0],M=D[1],D[2],g=this.elem.position(),h=this.elem.outerHeight(),y=this.elem.outerWidth(),m=this.elem.innerHeight(),v=this.elem.innerWidth(),j=this.wrapper.position(),d=this.container.height(),f=this.container.width(),S=a[B],k=u[B],O=a[k],p={},p[O]="b"===B?h:"r"===B?y:0,T(p,"top",g.top-j.top),T(p,"left",g.left-j.left),P=["top","left"],_=0,x=P.length;_=0&&T(o,a[M],2*r)}else this.arrow.hide();if(n.call(l,B)>=0?(T(p,"left",I(M,f,y)),o&&T(o,"left",I(M,r,v))):n.call(s,B)>=0&&(T(p,"top",I(M,d,h)),o&&T(o,"top",I(M,r,m))),this.container.is(":visible")&&(p.display="block"),this.container.removeAttr("style").css(p),o)return this.arrow.removeAttr("style").css(o)},e.prototype.getPosition=function(){var t,e,o,r,i,a,u,f;if(f=this.options.position||(this.elem?this.options.elementPosition:this.options.globalPosition),t=d(f),0===t.length&&(t[0]="b"),e=t[0],n.call(c,e)<0)throw"Must be one of ["+c+"]";return(1===t.length||(o=t[0],n.call(l,o)>=0&&(r=t[1],n.call(s,r)<0))||(i=t[0],n.call(s,i)>=0&&(a=t[1],n.call(l,a)<0)))&&(t[1]=(u=t[0],n.call(s,u)>=0?"m":"l")),2===t.length&&(t[2]=t[1]),t},e.prototype.getStyle=function(t){var e;if(t||(t=this.options.style),t||(t="default"),e=f[t],!e)throw"Missing style: "+t;return e},e.prototype.updateClasses=function(){var e,n;return e=["base"],t.isArray(this.options.className)?e=e.concat(this.options.className):this.options.className&&e.push(this.options.className),n=this.getStyle(),e=t.map(e,function(t){return r+"-"+n.name+"-"+t}).join(" "),this.userContainer.attr("class",e)},e.prototype.run=function(e,n){var o,r,a,s,l;if(t.isPlainObject(n)?t.extend(this.options,n):"string"===t.type(n)&&(this.options.className=n),this.container&&!e)return void this.show(!1);if(this.container||e){r={},t.isPlainObject(e)?r=e:r[i]=e;for(a in r)o=r[a],s=this.userFields[a],s&&("text"===s&&(o=O(o),this.options.breakNewLines&&(o=o.replace(/\n/g,"
    "))),l=a===i?"":"="+a,_(this.userContainer,"[data-notify-"+s+l+"]").html(o));this.updateClasses(),this.elem?this.setElementPosition():this.setGlobalPosition(),this.show(!0),this.options.autoHide&&(clearTimeout(this.autohideTimer),this.autohideTimer=setTimeout(this.show.bind(this,!1),this.options.autoHideDelay))}},e.prototype.destroy=function(){this.wrapper.data(r,null),this.wrapper.remove()},t[o]=function(n,r,i){return n&&n.nodeName||n.jquery?t(n)[o](r,i):(i=r,r=n,new e(null,r,i)),n},t.fn[o]=function(n,o){return t(this).each(function(){var i=k(t(this)).data(r);i&&i.destroy();new e(t(this),n,o)}),this},t.extend(t[o],{defaults:C,addStyle:g,removeStyle:v,pluginOptions:w,getStyle:m,insertCSS:y}),g("bootstrap",{html:"
    \n\n
    ",classes:{base:{"font-weight":"bold",padding:"8px 15px 8px 14px","text-shadow":"0 1px 0 rgba(255, 255, 255, 0.5)","background-color":"#fcf8e3",border:"1px solid #fbeed5","border-radius":"4px","white-space":"nowrap","padding-left":"25px","background-repeat":"no-repeat","background-position":"3px 7px"},error:{color:"#B94A48","background-color":"#F2DEDE","border-color":"#EED3D7","background-image":"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAtRJREFUeNqkVc1u00AQHq+dOD+0poIQfkIjalW0SEGqRMuRnHos3DjwAH0ArlyQeANOOSMeAA5VjyBxKBQhgSpVUKKQNGloFdw4cWw2jtfMOna6JOUArDTazXi/b3dm55socPqQhFka++aHBsI8GsopRJERNFlY88FCEk9Yiwf8RhgRyaHFQpPHCDmZG5oX2ui2yilkcTT1AcDsbYC1NMAyOi7zTX2Agx7A9luAl88BauiiQ/cJaZQfIpAlngDcvZZMrl8vFPK5+XktrWlx3/ehZ5r9+t6e+WVnp1pxnNIjgBe4/6dAysQc8dsmHwPcW9C0h3fW1hans1ltwJhy0GxK7XZbUlMp5Ww2eyan6+ft/f2FAqXGK4CvQk5HueFz7D6GOZtIrK+srupdx1GRBBqNBtzc2AiMr7nPplRdKhb1q6q6zjFhrklEFOUutoQ50xcX86ZlqaZpQrfbBdu2R6/G19zX6XSgh6RX5ubyHCM8nqSID6ICrGiZjGYYxojEsiw4PDwMSL5VKsC8Yf4VRYFzMzMaxwjlJSlCyAQ9l0CW44PBADzXhe7xMdi9HtTrdYjFYkDQL0cn4Xdq2/EAE+InCnvADTf2eah4Sx9vExQjkqXT6aAERICMewd/UAp/IeYANM2joxt+q5VI+ieq2i0Wg3l6DNzHwTERPgo1ko7XBXj3vdlsT2F+UuhIhYkp7u7CarkcrFOCtR3H5JiwbAIeImjT/YQKKBtGjRFCU5IUgFRe7fF4cCNVIPMYo3VKqxwjyNAXNepuopyqnld602qVsfRpEkkz+GFL1wPj6ySXBpJtWVa5xlhpcyhBNwpZHmtX8AGgfIExo0ZpzkWVTBGiXCSEaHh62/PoR0p/vHaczxXGnj4bSo+G78lELU80h1uogBwWLf5YlsPmgDEd4M236xjm+8nm4IuE/9u+/PH2JXZfbwz4zw1WbO+SQPpXfwG/BBgAhCNZiSb/pOQAAAAASUVORK5CYII=)"},success:{color:"#468847","background-color":"#DFF0D8","border-color":"#D6E9C6","background-image":"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAutJREFUeNq0lctPE0Ecx38zu/RFS1EryqtgJFA08YCiMZIAQQ4eRG8eDGdPJiYeTIwHTfwPiAcvXIwXLwoXPaDxkWgQ6islKlJLSQWLUraPLTv7Gme32zoF9KSTfLO7v53vZ3d/M7/fIth+IO6INt2jjoA7bjHCJoAlzCRw59YwHYjBnfMPqAKWQYKjGkfCJqAF0xwZjipQtA3MxeSG87VhOOYegVrUCy7UZM9S6TLIdAamySTclZdYhFhRHloGYg7mgZv1Zzztvgud7V1tbQ2twYA34LJmF4p5dXF1KTufnE+SxeJtuCZNsLDCQU0+RyKTF27Unw101l8e6hns3u0PBalORVVVkcaEKBJDgV3+cGM4tKKmI+ohlIGnygKX00rSBfszz/n2uXv81wd6+rt1orsZCHRdr1Imk2F2Kob3hutSxW8thsd8AXNaln9D7CTfA6O+0UgkMuwVvEFFUbbAcrkcTA8+AtOk8E6KiQiDmMFSDqZItAzEVQviRkdDdaFgPp8HSZKAEAL5Qh7Sq2lIJBJwv2scUqkUnKoZgNhcDKhKg5aH+1IkcouCAdFGAQsuWZYhOjwFHQ96oagWgRoUov1T9kRBEODAwxM2QtEUl+Wp+Ln9VRo6BcMw4ErHRYjH4/B26AlQoQQTRdHWwcd9AH57+UAXddvDD37DmrBBV34WfqiXPl61g+vr6xA9zsGeM9gOdsNXkgpEtTwVvwOklXLKm6+/p5ezwk4B+j6droBs2CsGa/gNs6RIxazl4Tc25mpTgw/apPR1LYlNRFAzgsOxkyXYLIM1V8NMwyAkJSctD1eGVKiq5wWjSPdjmeTkiKvVW4f2YPHWl3GAVq6ymcyCTgovM3FzyRiDe2TaKcEKsLpJvNHjZgPNqEtyi6mZIm4SRFyLMUsONSSdkPeFtY1n0mczoY3BHTLhwPRy9/lzcziCw9ACI+yql0VLzcGAZbYSM5CCSZg1/9oc/nn7+i8N9p/8An4JMADxhH+xHfuiKwAAAABJRU5ErkJggg==)"},info:{color:"#3A87AD","background-color":"#D9EDF7","border-color":"#BCE8F1","background-image":"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QYFAhkSsdes/QAAA8dJREFUOMvVlGtMW2UYx//POaWHXg6lLaW0ypAtw1UCgbniNOLcVOLmAjHZolOYlxmTGXVZdAnRfXQm+7SoU4mXaOaiZsEpC9FkiQs6Z6bdCnNYruM6KNBw6YWewzl9z+sHImEWv+vz7XmT95f/+3/+7wP814v+efDOV3/SoX3lHAA+6ODeUFfMfjOWMADgdk+eEKz0pF7aQdMAcOKLLjrcVMVX3xdWN29/GhYP7SvnP0cWfS8caSkfHZsPE9Fgnt02JNutQ0QYHB2dDz9/pKX8QjjuO9xUxd/66HdxTeCHZ3rojQObGQBcuNjfplkD3b19Y/6MrimSaKgSMmpGU5WevmE/swa6Oy73tQHA0Rdr2Mmv/6A1n9w9suQ7097Z9lM4FlTgTDrzZTu4StXVfpiI48rVcUDM5cmEksrFnHxfpTtU/3BFQzCQF/2bYVoNbH7zmItbSoMj40JSzmMyX5qDvriA7QdrIIpA+3cdsMpu0nXI8cV0MtKXCPZev+gCEM1S2NHPvWfP/hL+7FSr3+0p5RBEyhEN5JCKYr8XnASMT0xBNyzQGQeI8fjsGD39RMPk7se2bd5ZtTyoFYXftF6y37gx7NeUtJJOTFlAHDZLDuILU3j3+H5oOrD3yWbIztugaAzgnBKJuBLpGfQrS8wO4FZgV+c1IxaLgWVU0tMLEETCos4xMzEIv9cJXQcyagIwigDGwJgOAtHAwAhisQUjy0ORGERiELgG4iakkzo4MYAxcM5hAMi1WWG1yYCJIcMUaBkVRLdGeSU2995TLWzcUAzONJ7J6FBVBYIggMzmFbvdBV44Corg8vjhzC+EJEl8U1kJtgYrhCzgc/vvTwXKSib1paRFVRVORDAJAsw5FuTaJEhWM2SHB3mOAlhkNxwuLzeJsGwqWzf5TFNdKgtY5qHp6ZFf67Y/sAVadCaVY5YACDDb3Oi4NIjLnWMw2QthCBIsVhsUTU9tvXsjeq9+X1d75/KEs4LNOfcdf/+HthMnvwxOD0wmHaXr7ZItn2wuH2SnBzbZAbPJwpPx+VQuzcm7dgRCB57a1uBzUDRL4bfnI0RE0eaXd9W89mpjqHZnUI5Hh2l2dkZZUhOqpi2qSmpOmZ64Tuu9qlz/SEXo6MEHa3wOip46F1n7633eekV8ds8Wxjn37Wl63VVa+ej5oeEZ/82ZBETJjpJ1Rbij2D3Z/1trXUvLsblCK0XfOx0SX2kMsn9dX+d+7Kf6h8o4AIykuffjT8L20LU+w4AZd5VvEPY+XpWqLV327HR7DzXuDnD8r+ovkBehJ8i+y8YAAAAASUVORK5CYII=)"},warn:{color:"#C09853","background-color":"#FCF8E3","border-color":"#FBEED5","background-image":"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAABJlBMVEXr6eb/2oD/wi7/xjr/0mP/ykf/tQD/vBj/3o7/uQ//vyL/twebhgD/4pzX1K3z8e349vK6tHCilCWbiQymn0jGworr6dXQza3HxcKkn1vWvV/5uRfk4dXZ1bD18+/52YebiAmyr5S9mhCzrWq5t6ufjRH54aLs0oS+qD751XqPhAybhwXsujG3sm+Zk0PTwG6Shg+PhhObhwOPgQL4zV2nlyrf27uLfgCPhRHu7OmLgAafkyiWkD3l49ibiAfTs0C+lgCniwD4sgDJxqOilzDWowWFfAH08uebig6qpFHBvH/aw26FfQTQzsvy8OyEfz20r3jAvaKbhgG9q0nc2LbZxXanoUu/u5WSggCtp1anpJKdmFz/zlX/1nGJiYmuq5Dx7+sAAADoPUZSAAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfdBgUBGhh4aah5AAAAlklEQVQY02NgoBIIE8EUcwn1FkIXM1Tj5dDUQhPU502Mi7XXQxGz5uVIjGOJUUUW81HnYEyMi2HVcUOICQZzMMYmxrEyMylJwgUt5BljWRLjmJm4pI1hYp5SQLGYxDgmLnZOVxuooClIDKgXKMbN5ggV1ACLJcaBxNgcoiGCBiZwdWxOETBDrTyEFey0jYJ4eHjMGWgEAIpRFRCUt08qAAAAAElFTkSuQmCC)"}}}),t(function(){y(p.css).attr("id","core-notify"),t(document).on("click","."+r+"-hidable",function(e){t(this).trigger("notify-hide")}),t(document).on("notify-hide","."+r+"-wrapper",function(e){var n=t(this).data(r);n&&n.show(!1)})})}),Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert first argument to object");for(var e=Object(t),n=1;n1||t.items.merge,i[o]=r?e*n:this._items[o].width();this._widths=i}},{filter:["items","settings"],run:function(){var e=[],n=this._items,o=this.settings,r=Math.max(2*o.items,4),i=2*Math.ceil(n.length/2),a=o.loop&&n.length?o.rewind?r:Math.max(r,i):0,s="",l="";for(a/=2;a>0;)e.push(this.normalize(e.length/2,!0)),s+=n[e[e.length-1]][0].outerHTML,e.push(this.normalize(n.length-1-(e.length-1)/2,!0)),l=n[e[e.length-1]][0].outerHTML+l,a-=1;this._clones=e,t(s).addClass("cloned").appendTo(this.$stage),t(l).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var t=this.settings.rtl?1:-1,e=this._clones.length+this._items.length,n=-1,o=0,r=0,i=[];++n",s)||this.op(e,"<",a)&&this.op(e,">",s))&&l.push(n);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+l.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],r.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=t("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(t("
    ",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},r.prototype.initializeItems=function(){var e=this.$element.find(".owl-item");if(e.length)return this._items=e.get().map(function(e){return t(e)}),this._mergers=this._items.map(function(){return 1}),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},r.prototype.initialize=function(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")){var t,e,n;t=this.$element.find("img"),e=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:o,n=this.$element.children(e).width(),t.length&&n<=0&&this.preloadAutoWidthImages(t)}this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},r.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},r.prototype.setup=function(){var e=this.viewport(),n=this.options.responsive,o=-1,r=null;n?(t.each(n,function(t){t<=e&&t>o&&(o=Number(t))}),r=t.extend({},this.options,n[o]),"function"==typeof r.stagePadding&&(r.stagePadding=r.stagePadding()),delete r.responsive,r.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+o))):r=t.extend({},this.options),this.trigger("change",{property:{name:"settings",value:r}}),this._breakpoint=o,this.settings=r,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},r.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},r.prototype.prepare=function(e){var n=this.trigger("prepare",{content:e});return n.data||(n.data=t("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(e)),this.trigger("prepared",{content:n.data}),n.data},r.prototype.update=function(){for(var e=0,n=this._pipe.length,o=t.proxy(function(t){return this[t]},this._invalidated),r={};e0)&&this._pipe[e].run(r),e++;this._invalidated={},!this.is("valid")&&this.enter("valid")},r.prototype.width=function(t){switch(t=t||r.Width.Default){case r.Width.Inner:case r.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},r.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},r.prototype.onThrottledResize=function(){e.clearTimeout(this.resizeTimer),this.resizeTimer=e.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},r.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},r.prototype.registerEventHandlers=function(){t.support.transition&&this.$stage.on(t.support.transition.end+".owl.core",t.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(e,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",t.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",t.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",t.proxy(this.onDragEnd,this)))},r.prototype.onDragStart=function(e){var o=null;3!==e.which&&(t.support.transform?(o=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),o={x:o[16===o.length?12:4],y:o[16===o.length?13:5]}):(o=this.$stage.position(),o={x:this.settings.rtl?o.left+this.$stage.width()-this.width()+this.settings.margin:o.left,y:o.top}),this.is("animating")&&(t.support.transform?this.animate(o.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===e.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=t(e.target),this._drag.stage.start=o,this._drag.stage.current=o,this._drag.pointer=this.pointer(e),t(n).on("mouseup.owl.core touchend.owl.core",t.proxy(this.onDragEnd,this)),t(n).one("mousemove.owl.core touchmove.owl.core",t.proxy(function(e){var o=this.difference(this._drag.pointer,this.pointer(e));t(n).on("mousemove.owl.core touchmove.owl.core",t.proxy(this.onDragMove,this)),Math.abs(o.x)0^this.settings.rtl?"left":"right";t(n).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==o.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(r.x,0!==o.x?i:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=i,(Math.abs(o.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},r.prototype.closest=function(e,n){var r=-1,i=30,a=this.width(),s=this.coordinates();return this.settings.freeDrag||t.each(s,t.proxy(function(t,l){return"left"===n&&e>l-i&&el-a-i&&e",s[t+1]!==o?s[t+1]:l-a)&&(r="left"===n?t+1:t),-1===r},this)),this.settings.loop||(this.op(e,">",s[this.minimum()])?r=e=this.minimum():this.op(e,"<",s[this.maximum()])&&(r=e=this.maximum())),r},r.prototype.animate=function(e){var n=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),n&&(this.enter("animating"),this.trigger("translate")),t.support.transform3d&&t.support.transition?this.$stage.css({transform:"translate3d("+e+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):n?this.$stage.animate({left:e+"px"},this.speed(),this.settings.fallbackEasing,t.proxy(this.onTransitionEnd,this)):this.$stage.css({left:e+"px"})},r.prototype.is=function(t){return this._states.current[t]&&this._states.current[t]>0},r.prototype.current=function(t){if(t===o)return this._current;if(0===this._items.length)return o;if(t=this.normalize(t),this._current!==t){var e=this.trigger("change",{property:{name:"position",value:t}});e.data!==o&&(t=this.normalize(e.data)),this._current=t,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},r.prototype.invalidate=function(e){return"string"===t.type(e)&&(this._invalidated[e]=!0,this.is("valid")&&this.leave("valid")),t.map(this._invalidated,function(t,e){return e})},r.prototype.reset=function(t){(t=this.normalize(t))!==o&&(this._speed=0,this._current=t,this.suppress(["translate","translated"]),this.animate(this.coordinates(t)),this.release(["translate","translated"]))},r.prototype.normalize=function(t,e){var n=this._items.length,r=e?0:this._clones.length;return!this.isNumeric(t)||n<1?t=o:(t<0||t>=n+r)&&(t=((t-r/2)%n+n)%n+r/2),t},r.prototype.relative=function(t){return t-=this._clones.length/2,this.normalize(t,!0)},r.prototype.maximum=function(t){var e,n,o,r=this.settings,i=this._coordinates.length;if(r.loop)i=this._clones.length/2+this._items.length-1;else if(r.autoWidth||r.merge){if(e=this._items.length)for(n=this._items[--e].width(),o=this.$element.width();e--&&!((n+=this._items[e].width()+this.settings.margin)>o););i=e+1}else i=r.center?this._items.length-1:this._items.length-r.items;return t&&(i-=this._clones.length/2),Math.max(i,0)},r.prototype.minimum=function(t){return t?0:this._clones.length/2},r.prototype.items=function(t){return t===o?this._items.slice():(t=this.normalize(t,!0),this._items[t])},r.prototype.mergers=function(t){return t===o?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},r.prototype.clones=function(e){var n=this._clones.length/2,r=n+this._items.length,i=function(t){return t%2==0?r+t/2:n-(t+1)/2};return e===o?t.map(this._clones,function(t,e){return i(e)}):t.map(this._clones,function(t,n){return t===e?i(n):null})},r.prototype.speed=function(t){return t!==o&&(this._speed=t),this._speed},r.prototype.coordinates=function(e){var n,r=1,i=e-1;return e===o?t.map(this._coordinates,t.proxy(function(t,e){return this.coordinates(e)},this)):(this.settings.center?(this.settings.rtl&&(r=-1,i=e+1),n=this._coordinates[e],n+=(this.width()-n+(this._coordinates[i]||0))/2*r):n=this._coordinates[i]||0,n=Math.ceil(n))},r.prototype.duration=function(t,e,n){return 0===n?0:Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(n||this.settings.smartSpeed)},r.prototype.to=function(t,e){var n=this.current(),o=null,r=t-this.relative(n),i=(r>0)-(r<0),a=this._items.length,s=this.minimum(),l=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(r)>a/2&&(r+=-1*i*a),t=n+r,(o=((t-s)%a+a)%a+s)!==t&&o-r<=l&&o-r>0&&(n=o-r,t=o,this.reset(n))):this.settings.rewind?(l+=1,t=(t%l+l)%l):t=Math.max(s,Math.min(l,t)),this.speed(this.duration(n,t,e)),this.current(t),this.isVisible()&&this.update()},r.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},r.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},r.prototype.onTransitionEnd=function(t){if(t!==o&&(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},r.prototype.viewport=function(){var o;return this.options.responsiveBaseElement!==e?o=t(this.options.responsiveBaseElement).width():e.innerWidth?o=e.innerWidth:n.documentElement&&n.documentElement.clientWidth?o=n.documentElement.clientWidth:console.warn("Can not detect viewport width."),o},r.prototype.replace=function(e){this.$stage.empty(),this._items=[],e&&(e=e instanceof jQuery?e:t(e)),this.settings.nestedItemSelector&&(e=e.find("."+this.settings.nestedItemSelector)),e.filter(function(){return 1===this.nodeType}).each(t.proxy(function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},r.prototype.add=function(e,n){var r=this.relative(this._current);n=n===o?this._items.length:this.normalize(n,!0),e=e instanceof jQuery?e:t(e),this.trigger("add",{content:e,position:n}),e=this.prepare(e),0===this._items.length||n===this._items.length?(0===this._items.length&&this.$stage.append(e),0!==this._items.length&&this._items[n-1].after(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[n].before(e),this._items.splice(n,0,e),this._mergers.splice(n,0,1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[r]&&this.reset(this._items[r].index()),this.invalidate("items"),this.trigger("added",{content:e,position:n})},r.prototype.remove=function(t){(t=this.normalize(t,!0))!==o&&(this.trigger("remove",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate("items"),this.trigger("removed",{content:null,position:t}))},r.prototype.preloadAutoWidthImages=function(e){e.each(t.proxy(function(e,n){this.enter("pre-loading"),n=t(n),t(new Image).one("load",t.proxy(function(t){n.attr("src",t.target.src),n.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",n.attr("src")||n.attr("data-src")||n.attr("data-src-retina"))},this))},r.prototype.destroy=function(){this.$element.off(".owl.core"),this.$stage.off(".owl.core"),t(n).off(".owl.core"),!1!==this.settings.responsive&&(e.clearTimeout(this.resizeTimer),this.off(e,"resize",this._handlers.onThrottledResize));for(var o in this._plugins)this._plugins[o].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},r.prototype.op=function(t,e,n){var o=this.settings.rtl;switch(e){case"<":return o?t>n:t":return o?tn;case">=":return o?t<=n:t>=n;case"<=":return o?t>=n:t<=n}},r.prototype.on=function(t,e,n,o){t.addEventListener?t.addEventListener(e,n,o):t.attachEvent&&t.attachEvent("on"+e,n)},r.prototype.off=function(t,e,n,o){t.removeEventListener?t.removeEventListener(e,n,o):t.detachEvent&&t.detachEvent("on"+e,n)},r.prototype.trigger=function(e,n,o,i,a){var s={item:{count:this._items.length,index:this.current()}},l=t.camelCase(t.grep(["on",e,o],function(t){return t}).join("-").toLowerCase()),c=t.Event([e,"owl",o||"carousel"].join(".").toLowerCase(),t.extend({relatedTarget:this},s,n));return this._supress[e]||(t.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(c)}),this.register({type:r.Type.Event,name:e}),this.$element.trigger(c),this.settings&&"function"==typeof this.settings[l]&&this.settings[l].call(this,c)),c},r.prototype.enter=function(e){t.each([e].concat(this._states.tags[e]||[]),t.proxy(function(t,e){this._states.current[e]===o&&(this._states.current[e]=0),this._states.current[e]++},this))},r.prototype.leave=function(e){t.each([e].concat(this._states.tags[e]||[]),t.proxy(function(t,e){this._states.current[e]--},this))},r.prototype.register=function(e){if(e.type===r.Type.Event){if(t.event.special[e.name]||(t.event.special[e.name]={}),!t.event.special[e.name].owl){var n=t.event.special[e.name]._default;t.event.special[e.name]._default=function(t){return!n||!n.apply||t.namespace&&-1!==t.namespace.indexOf("owl")?t.namespace&&t.namespace.indexOf("owl")>-1:n.apply(this,arguments)},t.event.special[e.name].owl=!0}}else e.type===r.Type.State&&(this._states.tags[e.name]?this._states.tags[e.name]=this._states.tags[e.name].concat(e.tags):this._states.tags[e.name]=e.tags,this._states.tags[e.name]=t.grep(this._states.tags[e.name],t.proxy(function(n,o){return t.inArray(n,this._states.tags[e.name])===o},this)))},r.prototype.suppress=function(e){t.each(e,t.proxy(function(t,e){this._supress[e]=!0},this))},r.prototype.release=function(e){t.each(e,t.proxy(function(t,e){delete this._supress[e]},this))},r.prototype.pointer=function(t){var n={x:null,y:null};return t=t.originalEvent||t||e.event,t=t.touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,t.pageX?(n.x=t.pageX,n.y=t.pageY):(n.x=t.clientX,n.y=t.clientY),n},r.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))},r.prototype.difference=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},t.fn.owlCarousel=function(e){var n=Array.prototype.slice.call(arguments,1);return this.each(function(){var o=t(this),i=o.data("owl.carousel");i||(i=new r(this,"object"==typeof e&&e),o.data("owl.carousel",i),t.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(e,n){i.register({type:r.Type.Event,name:n}),i.$element.on(n+".owl.carousel.core",t.proxy(function(t){t.namespace&&t.relatedTarget!==this&&(this.suppress([n]),i[n].apply(this,[].slice.call(arguments,1)),this.release([n]))},i))})),"string"==typeof e&&"_"!==e.charAt(0)&&i[e].apply(i,n)})},t.fn.owlCarousel.Constructor=r}(window.Zepto||window.jQuery,window,document),function(t,e,n,o){var r=function(e){this._core=e,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=t.extend({},r.Defaults,this._core.options),this._core.$element.on(this._handlers)};r.Defaults={autoRefresh:!0,autoRefreshInterval:500},r.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=e.setInterval(t.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},r.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},r.prototype.destroy=function(){var t,n;e.clearInterval(this._interval);for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoRefresh=r}(window.Zepto||window.jQuery,window,document),function(t,e,n,o){var r=function(e){this._core=e,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":t.proxy(function(e){if(e.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(e.property&&"position"==e.property.name||"initialized"==e.type)){var n=this._core.settings,r=n.center&&Math.ceil(n.items/2)||n.items,i=n.center&&-1*r||0,a=(e.property&&e.property.value!==o?e.property.value:this._core.current())+i,s=this._core.clones().length,l=t.proxy(function(t,e){this.load(e)},this);for(n.lazyLoadEager>0&&(r+=n.lazyLoadEager,n.loop&&(a-=n.lazyLoadEager,r++));i++-1||(r.each(t.proxy(function(n,o){var r,i=t(o),a=e.devicePixelRatio>1&&i.attr("data-src-retina")||i.attr("data-src")||i.attr("data-srcset");this._core.trigger("load",{element:i,url:a},"lazy"),i.is("img")?i.one("load.owl.lazy",t.proxy(function(){i.css("opacity",1),this._core.trigger("loaded",{element:i,url:a},"lazy")},this)).attr("src",a):i.is("source")?i.one("load.owl.lazy",t.proxy(function(){this._core.trigger("loaded",{element:i,url:a},"lazy")},this)).attr("srcset",a):(r=new Image,r.onload=t.proxy(function(){i.css({"background-image":'url("'+a+'")',opacity:"1"}),this._core.trigger("loaded",{element:i,url:a},"lazy")},this),r.src=a)},this)),this._loaded.push(o.get(0)))},r.prototype.destroy=function(){var t,e;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Lazy=r}(window.Zepto||window.jQuery,window,document),function(t,e,n,o){var r=function(n){this._core=n,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&"position"===t.property.name&&this.update()},this),"loaded.owl.lazy":t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&t.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=t.extend({},r.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var o=this;t(e).on("load",function(){o._core.settings.autoHeight&&o.update()}),t(e).resize(function(){o._core.settings.autoHeight&&(null!=o._intervalId&&clearTimeout(o._intervalId),o._intervalId=setTimeout(function(){o.update()},250))})};r.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},r.prototype.update=function(){var e=this._core._current,n=e+this._core.settings.items,o=this._core.settings.lazyLoad,r=this._core.$stage.children().toArray().slice(e,n),i=[],a=0;t.each(r,function(e,n){i.push(t(n).height())}),a=Math.max.apply(null,i),a<=1&&o&&this._previousHeight&&(a=this._previousHeight),this._previousHeight=a,this._core.$stage.parent().height(a).addClass(this._core.settings.autoHeightClass)},r.prototype.destroy=function(){var t,e;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoHeight=r}(window.Zepto||window.jQuery,window,document),function(t,e,n,o){var r=function(e){this._core=e,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":t.proxy(function(t){t.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.video&&this.isInFullScreen()&&t.preventDefault()},this),"refreshed.owl.carousel":t.proxy(function(t){t.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":t.proxy(function(t){t.namespace&&"position"===t.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":t.proxy(function(e){if(e.namespace){var n=t(e.content).find(".owl-video");n.length&&(n.css("display","none"),this.fetch(n,t(e.content)))}},this)},this._core.options=t.extend({},r.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",t.proxy(function(t){this.play(t)},this))};r.Defaults={video:!1,videoHeight:!1,videoWidth:!1},r.prototype.fetch=function(t,e){var n=function(){return t.attr("data-vimeo-id")?"vimeo":t.attr("data-vzaar-id")?"vzaar":"youtube"}(),o=t.attr("data-vimeo-id")||t.attr("data-youtube-id")||t.attr("data-vzaar-id"),r=t.attr("data-width")||this._core.settings.videoWidth,i=t.attr("data-height")||this._core.settings.videoHeight,a=t.attr("href");if(!a)throw new Error("Missing video URL.");if(o=a.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),o[3].indexOf("youtu")>-1)n="youtube";else if(o[3].indexOf("vimeo")>-1)n="vimeo";else{if(!(o[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");n="vzaar"}o=o[6],this._videos[a]={type:n,id:o,width:r,height:i},e.attr("data-video",a),this.thumbnail(t,this._videos[a])},r.prototype.thumbnail=function(e,n){var o,r,i,a=n.width&&n.height?"width:"+n.width+"px;height:"+n.height+"px;":"",s=e.find("img"),l="src",c="",u=this._core.settings,d=function(n){r='
    ',o=u.lazyLoad?t("
    ",{class:"owl-video-tn "+c,srcType:n}):t("
    ",{class:"owl-video-tn",style:"opacity:1;background-image:url("+n+")"}),e.after(o),e.after(r)};if(e.wrap(t("
    ",{class:"owl-video-wrapper",style:a})),this._core.settings.lazyLoad&&(l="data-src",c="owl-lazy"),s.length)return d(s.attr(l)),s.remove(),!1;"youtube"===n.type?(i="//img.youtube.com/vi/"+n.id+"/hqdefault.jpg",d(i)):"vimeo"===n.type?t.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+n.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){i=t[0].thumbnail_large,d(i)}}):"vzaar"===n.type&&t.ajax({type:"GET",url:"//vzaar.com/api/videos/"+n.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){i=t.framegrab_url,d(i)}})},r.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},r.prototype.play=function(e){var n,o=t(e.target),r=o.closest("."+this._core.settings.itemClass),i=this._videos[r.attr("data-video")],a=i.width||"100%",s=i.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),r=this._core.items(this._core.relative(r.index())),this._core.reset(r.index()),n=t(''),n.attr("height",s),n.attr("width",a),"youtube"===i.type?n.attr("src","//www.youtube.com/embed/"+i.id+"?autoplay=1&rel=0&v="+i.id):"vimeo"===i.type?n.attr("src","//player.vimeo.com/video/"+i.id+"?autoplay=1"):"vzaar"===i.type&&n.attr("src","//view.vzaar.com/"+i.id+"/player?autoplay=true"),t(n).wrap('
    ').insertAfter(r.find(".owl-video")),this._playing=r.addClass("owl-video-playing"))},r.prototype.isInFullScreen=function(){var e=n.fullscreenElement||n.mozFullScreenElement||n.webkitFullscreenElement;return e&&t(e).parent().hasClass("owl-video-frame")},r.prototype.destroy=function(){var t,e;this._core.$element.off("click.owl.video");for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Video=r}(window.Zepto||window.jQuery,window,document),function(t,e,n,o){var r=function(e){this.core=e,this.core.options=t.extend({},r.Defaults,this.core.options),this.swapping=!0,this.previous=o,this.next=o,this.handlers={"change.owl.carousel":t.proxy(function(t){t.namespace&&"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":t.proxy(function(t){t.namespace&&(this.swapping="translated"==t.type)},this),"translate.owl.carousel":t.proxy(function(t){t.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};r.Defaults={animateOut:!1,animateIn:!1},r.prototype.swap=function(){if(1===this.core.settings.items&&t.support.animation&&t.support.transition){this.core.speed(0);var e,n=t.proxy(this.clear,this),o=this.core.$stage.children().eq(this.previous),r=this.core.$stage.children().eq(this.next),i=this.core.settings.animateIn,a=this.core.settings.animateOut;this.core.current()!==this.previous&&(a&&(e=this.core.coordinates(this.previous)-this.core.coordinates(this.next),o.one(t.support.animation.end,n).css({left:e+"px"}).addClass("animated owl-animated-out").addClass(a)),i&&r.one(t.support.animation.end,n).addClass("animated owl-animated-in").addClass(i))}},r.prototype.clear=function(e){t(e.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},r.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Animate=r}(window.Zepto||window.jQuery,window,document),function(t,e,n,o){var r=function(e){this._core=e,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":t.proxy(function(t){t.namespace&&"settings"===t.property.name?this._core.settings.autoplay?this.play():this.stop():t.namespace&&"position"===t.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":t.proxy(function(t,e,n){t.namespace&&this.play(e,n)},this),"stop.owl.autoplay":t.proxy(function(t){t.namespace&&this.stop()},this),"mouseover.owl.autoplay":t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":t.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=t.extend({},r.Defaults,this._core.options)};r.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},r.prototype._next=function(o){this._call=e.setTimeout(t.proxy(this._next,this,o),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||n.hidden||this._core.next(o||this._core.settings.autoplaySpeed)},r.prototype.read=function(){return(new Date).getTime()-this._time},r.prototype.play=function(n,o){var r;this._core.is("rotating")||this._core.enter("rotating"),n=n||this._core.settings.autoplayTimeout,r=Math.min(this._time%(this._timeout||n),n),this._paused?(this._time=this.read(),this._paused=!1):e.clearTimeout(this._call),this._time+=this.read()%n-r,this._timeout=n,this._call=e.setTimeout(t.proxy(this._next,this,o),n-r)},r.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,e.clearTimeout(this._call),this._core.leave("rotating"))},r.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,e.clearTimeout(this._call))},r.prototype.destroy=function(){var t,e;this.stop();for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.autoplay=r}(window.Zepto||window.jQuery,window,document),function(t,e,n,o){var r=function(e){this._core=e,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":t.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.push('
    '+t(e.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"
    ")},this),"added.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,0,this._templates.pop())},this),"remove.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"changed.owl.carousel":t.proxy(function(t){t.namespace&&"position"==t.property.name&&this.draw()},this),"initialized.owl.carousel":t.proxy(function(t){t.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":t.proxy(function(t){t.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=t.extend({},r.Defaults,this._core.options),this.$element.on(this._handlers)};r.Defaults={nav:!1,navText:['',''],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},r.prototype.initialize=function(){var e,n=this._core.settings;this._controls.$relative=(n.navContainer?t(n.navContainer):t("
    ").addClass(n.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=t("<"+n.navElement+">").addClass(n.navClass[0]).html(n.navText[0]).prependTo(this._controls.$relative).on("click",t.proxy(function(t){this.prev(n.navSpeed)},this)),this._controls.$next=t("<"+n.navElement+">").addClass(n.navClass[1]).html(n.navText[1]).appendTo(this._controls.$relative).on("click",t.proxy(function(t){this.next(n.navSpeed)},this)),n.dotsData||(this._templates=[t('
    ',"after"),null},extend:function(t,e){if(!t||!e)return t;for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},countObj:function(t){if(t)return Object.keys(t).length},sort_by:function(t,e,n){if(t&&e&&n){var o=n?function(e){return n(e[t])}:function(e){return e[t]};return e=e?-1:1,function(t,n){return t=o(t),n=o(n),e*((t>n)-(n>t))}}},endTime:function(t){if(t){var e=(new Date).getTime(),n=e-t<0?0:e-t;n>=1e3?console.log("Call to doSomething took "+n/1e3+" seconds."):console.log("Call to doSomething took "+n+" milliseconds.")}},selector:function(e,n,o){if(n){if(o){for(var r=n.childNodes,i=[],a=0;a")?p.convertHTML(e).querySelectorAll(e.replace("<","").replace(">","")):document.querySelectorAll(e):[e]},getParams:function(t,e){if(t){e=e||window.location.href,t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n="[\\?&]"+t+"=([^&#]*)",o=new RegExp(n),r=o.exec(e);return null==r?"":decodeURIComponent(r[1].replace(/\+/g," "))}},isIE:function(){return a()},whatBrowser:function(){var t=!1;return navigator.appVersion.indexOf("MSIE 12")>-1?t="IE12":navigator.appVersion.indexOf("MSIE 11")>-1?t="IE11":navigator.appVersion.indexOf("MSIE 10")>-1?t="IE10":navigator.appVersion.indexOf("MSIE 9")>-1?t="IE9":navigator.appVersion.indexOf("MSIE 8")>-1?t="IE8":navigator.appVersion.indexOf("MSIE 7")>-1?t="IE7":navigator.userAgent.indexOf("Chrome")>-1?t="Chrome":navigator.userAgent.indexOf("Firefox")>-1?t="Firefox":navigator.userAgent.indexOf("Safari")>-1?t="Safari":navigator.userAgent.toLowerCase().indexOf("op")>-1&&(t="Opera"),t},ieObjectSetPrototypeOf:function(t,e){if(t&&e)return t.__proto__=e,t},elementExist:function(e){if(e)return!!t(e).length},whatDevice:function(){var e=t("body").size();return e.w>=1200?"desktop":e.w>=550&&e.w<1200?"tablet":"mobile"},daysDifferenceBetweenDates:function(t,e){if(t&&e){if(t.getTime()<=e.getTime()){var n=Date.UTC(t.getYear(),t.getMonth(),t.getDate(),0,0,0)-Date.UTC(e.getYear(),e.getMonth(),e.getDate(),0,0,0);return Math.abs(n/1e3/60/60/24)}return 0}}};var p=new f;window.$savana||(window.$savana=t,window.$sjs=t,window.savana=p,window.sjs=p,console.info("%cSavanaJS - You are working on your project! Thanks:) | See documentation: http://savanajs.github.io/docs","color:#7ac142;font-weight:bold;font-size:11px"))}(),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Sweetalert2=e()}(this,function(){function t(t){var e=function t(){for(var e=arguments.length,n=Array(e),o=0;o")),"string"==typeof t.backdrop?et().style.background=t.backdrop:t.backdrop||V([document.documentElement,document.body],z["no-backdrop"]),t.html?Ct(t.html,c):t.text?(c.textContent=t.text,G(c)):X(c),t.position in z?V(s,z[t.position]):(I('The "position" parameter is not valid, defaulting to "center"'),V(s,z.center)),t.grow&&"string"==typeof t.grow){var m="grow-"+t.grow;m in z&&V(s,z[m])}"function"==typeof t.animation&&(t.animation=t.animation.call()),t.showCloseButton?(p.setAttribute("aria-label",t.closeButtonAriaLabel),G(p)):X(p),e.className=z.popup,t.toast?(V([document.documentElement,document.body],z["toast-shown"]),V(e,z.toast)):V(e,z.modal),t.customClass&&V(e,t.customClass);var v=lt(),g=parseInt(null===t.currentProgressStep?ee.getQueueStep():t.currentProgressStep,10);t.progressSteps&&t.progressSteps.length?(G(v),J(v),g>=t.progressSteps.length&&I("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach(function(e,n){var o=document.createElement("li");if(V(o,z.progresscircle),o.innerHTML=e,n===g&&V(o,z.activeprogressstep),v.appendChild(o),n!==t.progressSteps.length-1){var r=document.createElement("li");V(r,z.progressline),t.progressStepsDistance&&(r.style.width=t.progressStepsDistance),v.appendChild(r)}})):X(v);for(var y=rt(),b=0;be?1:t\n
    \n
      \n
      \n \n
      \n
      \n ?\n
      \n
      \n !\n
      \n
      \n i\n
      \n
      \n
      \n \n
      \n
      \n
      \n \n

      \n \n
      \n
      \n
      \n \n \n
      \n \n \n
      \n \n
      \n \n \n
      \n
      \n
      \n \n \n
      \n
      \n
      \n
      \n').replace(/(^|\n)\s*/g,""),xt=function(t){var e=et();if(e&&(e.parentNode.removeChild(e),Z([document.documentElement,document.body],[z["no-backdrop"],z["has-input"],z["toast-shown"]])),_t())return void O("SweetAlert2 requires document to initialize");var n=document.createElement("div");n.className=z.container,n.innerHTML=wt,("string"==typeof t.target?document.querySelector(t.target):t.target).appendChild(n);var o=ot(),r=at(),i=Q(r,z.input),a=Q(r,z.file),s=r.querySelector("."+z.range+" input"),l=r.querySelector("."+z.range+" output"),c=Q(r,z.select),u=r.querySelector("."+z.checkbox+" input"),d=Q(r,z.textarea);o.setAttribute("role",t.toast?"alert":"dialog"),o.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||o.setAttribute("aria-modal","true");var f=function(){ee.isVisible()&&ee.resetValidationError()};return i.oninput=f,a.onchange=f,c.onchange=f,u.onchange=f,d.oninput=f,s.oninput=function(){f(),l.value=s.value},s.onchange=function(){f(),s.nextSibling.value=s.value},o},Ct=function(t,e){if(!t)return X(e);if("object"===(void 0===t?"undefined":g(t)))if(e.innerHTML="",0 in t)for(var n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0));else t&&(e.innerHTML=t);G(e)},St=function(){if(_t())return!1;var t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var n in e)if(e.hasOwnProperty(n)&&void 0!==t.style[n])return e[n];return!1}(),At=function(){if("ontouchstart"in window||navigator.msMaxTouchPoints)return 0;var t=document.createElement("div");t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e},kt=function(){null===U.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(U.previousBodyPadding=document.body.style.paddingRight,document.body.style.paddingRight=At()+"px")},Tt=function(){null!==U.previousBodyPadding&&(document.body.style.paddingRight=U.previousBodyPadding,U.previousBodyPadding=null)},It=function(){if(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&!H(document.body,z.iosfix)){var t=document.body.scrollTop;document.body.style.top=-1*t+"px",V(document.body,z.iosfix)}},Ot=function(){if(H(document.body,z.iosfix)){var t=parseInt(document.body.style.top,10);Z(document.body,z.iosfix),document.body.style.top="",document.body.scrollTop=-1*t}},Mt={},Bt=function(t,e){var n=et(),o=ot();if(o){null!==t&&"function"==typeof t&&t(o),Z(o,z.show),V(o,z.hide),clearTimeout(o.timeout),yt()||(tt(),window.onkeydown=Mt.previousWindowKeyDown,Mt.windowOnkeydownOverridden=!1);var r=function(){n.parentNode&&n.parentNode.removeChild(n),Z([document.documentElement,document.body],[z.shown,z["no-backdrop"],z["has-input"],z["toast-shown"]]),gt()&&(Tt(),Ot()),null!==e&&"function"==typeof e&&setTimeout(function(){e()})};St&&!H(o,z.noanimation)?o.addEventListener(St,function t(){o.removeEventListener(St,t),H(o,z.hide)&&r()}):r()}},Rt=function(){return!!ot()},Et=function(){return ut().click()},Dt=function(){return dt().click()},Pt={title:"",titleText:"",text:"",html:"",footer:"",type:null,toast:!1,customClass:"",target:"body",backdrop:!0,animation:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,showConfirmButton:!0,showCancelButton:!1,preConfirm:null,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:null,confirmButtonClass:null,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:null,cancelButtonClass:null,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusCancel:!1,showCloseButton:!1,closeButtonAriaLabel:"Close this dialog",showLoaderOnConfirm:!1,imageUrl:null,imageWidth:null,imageHeight:null,imageAlt:"",imageClass:null,timer:null,width:null,padding:null,background:null,input:null,inputPlaceholder:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputClass:null,inputAttributes:{},inputValidator:null,grow:!1,position:"center",progressSteps:[],currentProgressStep:null,progressStepsDistance:null,onBeforeOpen:null,onAfterClose:null,onOpen:null,onClose:null,useRejections:!1,expectRejections:!1},jt=["useRejections","expectRejections"],$t=function(t){return Pt.hasOwnProperty(t)||"extraParams"===t},Lt=function(t){return-1!==jt.indexOf(t)},Nt=function(t){for(var e in t)$t(e)||I('Unknown parameter "'+e+'"'),Lt(e)&&B('The parameter "'+e+'" is deprecated and will be removed in the next major release.')},zt='"setDefaults" & "resetDefaults" methods are deprecated in favor of "mixin" method and will be removed in the next major release. For new projects, use "mixin". For past projects already using "setDefaults", support will be provided through an additional package.',Ft={},Ut=[],Ht=function(t){var e=this;Ut=t;var n=function(){Ut=[],document.body.removeAttribute("data-swal2-queue-step")},o=[];return new Promise(function(t,r){!function r(i,a){iCarregar mais
      ').insertAfter(".pager.bottom");var n=function(t,e){"object"==typeof console&&console.log("[Smart Research - "+(e||"Erro")+"] "+t)},o={pageLimit:500,loadContent:".shelve[id^=ResultItems]",shelfClass:".shelve",filterDefault:null,filtersMenu:".search-multiple-navigator",linksMenu:".search-single-navigator",menuDepartament:".navigation .menu-departamento",mergeMenu:!0,insertMenuAfter:".search-multiple-navigator h3:first",emptySearchElem:jQuery('
      '),elemLoading:'
      ',returnTopText:'voltar aoTOPO',emptySearchMsg:"

      Esta combinação de filtros não retornou nenhum resultado!

      ",filterErrorMsg:"Houve um erro ao tentar filtrar a página!",searchUrl:null,usePopup:!1,showLinks:!0,popupAutoCloseSeconds:3,filterScrollTop:function(t){return t.top-20},callback:function(){},getShelfHeight:function(t){return t.scrollTop()+t.height()},shelfCallback:function(){},ajaxCallback:function(t){setTimeout(function(){$(".products:eq(0) .prateleira ul li:not(.helperComplement)").length,$(".pager.bottom").hide()},1e3),$(".resultado-busca-numero .value").text($(".products:eq(0) .prateleira ul li:not(.helperComplement)").length)},emptySearchCallback:function(){},authorizeScroll:function(){return!0},authorizeUpdate:function(){return!0},labelCallback:function(t){}},r=jQuery.extend(o,t),i=jQuery(""),a=jQuery(r.elemLoading),s=2,l=!0,c=jQuery(window),u=(jQuery(document),jQuery("html,body")),d=jQuery("body"),f="",p="",h="",m=!1,v=jQuery(r.loadContent),g=jQuery(r.filtersMenu),y={requests:0,filters:0,isEmpty:!1},b={},_={getUrl:function(t){var e=t||!1;return e?f.replace(/PageNumber=[0-9]*/,"PageNumber="+s):(h+p).replace(/PageNumber=[0-9]*/,"PageNumber="+A)},getSearchUrl:function(){var t,e,o;return jQuery("script:not([src])").each(function(){if(e=jQuery(this)[0].innerHTML,o=/\/buscapagina\?.+&PageNumber=/i,e.search(/\/buscapagina\?/i)>-1)return t=o.exec(e),!1}),void 0!==t&&void 0!==t[0]?t[0]:(n("Não foi possível localizar a url de busca da página.\n Tente adicionar o .js ao final da página. \n[Método: getSearchUrl]"),"")},scrollToTop:function(){var t=d.find("#returnToTop");t.length<1&&(t=jQuery(''),d.append(t));var e=c.height();c.bind("resize",function(){e=c.height()}),c.bind("scroll",function(){c.scrollTop()>e?t.stop(!0).fadeTo(300,1,function(){t.show()}):t.stop(!0).fadeTo(300,0,function(){t.hide()})}),t.bind("click",function(){return u.animate({scrollTop:0},"slow"),!1})},quantityProducts:function(){if($(".catalogo-block .searchResultsTime .value").length)return parseInt($(".catalogo-block .resultado-busca-numero:eq(0) span.value").text())},infinitScroll:function(t){var e,o,i,c;e=d.find(".pager:first").attr("id"),c=(e||"").split("_").pop(),o=null!==r.pageLimit?r.pageLimit:window["pagecount_"+c],i=!0,void 0===o&&(o=99999999),t&&0==infinitScroll&&(infinitScroll=!0,$("body").on("click","a.vejamais-vtexresearch",function(t){t.preventDefault();jQuery(this);if(m||!l||!r.authorizeScroll(y))return!1;if(i){var e=v.find(r.shelfClass).filter(":last");e.after(a),i=!1,T=jQuery.ajax({url:_.getUrl(!0),success:function(t){t.trim().length<1?(l=!1,$(".vejamais-vtexresearch.btn-shop").addClass("no-result").html("Não foram encontrados mais produtos!"),n("Não existem mais resultados a partir da página: "+(s-1),"Aviso")):e.after(t),i=!0,a.remove(),y.requests++,r.ajaxCallback(y)}}),s++}}))}};if(f=h=null!==r.searchUrl?r.searchUrl:_.getSearchUrl(),l&&_.quantityProducts()>18&&$("a.vejamais-vtexresearch").show(),e.length<1)return n("Nenhuma opção de filtro encontrada","Aviso"),r.showLinks&&jQuery(r.linksMenu).css("visibility","visible").show(),$(d).hasClass("resultado-busca")?_.infinitScroll(!0):_.infinitScroll(!1),_.scrollToTop(),e;if(v.length<1)return n("Elemento para destino da requisição não foi encontrado \n ("+v.selector+")"),!1;g.length<1&&n("O menu de filtros não foi encontrado \n ("+g.selector+")");var w=(document.location.href,jQuery(r.linksMenu)),x=jQuery('
      '),C=jQuery(r.menuDepartament),S=v.offset(),A=1,k=null,T=null;r.emptySearchElem.append(r.emptySearchMsg),v.before(x);var I={exec:function(){I.triggerFilter(),I.setFilterMenu(),I.fieldsetFormat(),e.each(function(){var t=jQuery(this),n=t.parent();t.is(":checked")&&(p+="&"+(t.attr("rel")||""),n.addClass("sr_selected")),I.adjustText(t),n.append(''),t.bind("change",function(){I.inputAction(),t.is(":checked")?I.addFilter(t):I.removeFilter(t),y.filters=e.filter(":checked").length})}),""!==p&&I.addFilter(i)},mergeMenu:function(){if(!r.mergeMenu)return!1;var t=C;t.insertAfter(r.insertMenuAfter),I.departamentMenuFormat(t)},mergeMenuList:function(){var t=0;g.find("h3,h4").each(function(){var e=w.find("h3,h4").eq(t).next("ul");e.insertAfter(jQuery(this)),I.departamentMenuFormat(e),t++})},departamentMenuFormat:function(t){t.find("a").each(function(){var t=jQuery(this);t.text(I.removeCounter(t.text()))})},fieldsetFormat:function(){b.fieldsetCount=0,b.tmpCurrentLabel={},g.find("fieldset").each(function(){var t=jQuery(this),e=t.find("label"),n="filtro_"+(t.find("h5:first").text()||"").toLowerCase().replaceSpecialChars().replace(/\s/g,"-");if(b[n]={},e.length<1)return void t.hide();t.addClass(n),e.each(function(e){var o=jQuery(this),i=o.find("input").val()||"",a="sr_"+i.toLowerCase().replaceSpecialChars().replace(/\s/g,"-");b.tmpCurrentLabel={fieldsetParent:[t,n],elem:o},b[n][e.toString()]={className:a,title:i},o.addClass(a).attr({title:i,index:e}),r.labelCallback(b)}),b.fieldsetCount++})},inputAction:function(){null!==T&&T.abort(),null!==k&&k.abort(),s=2,l=!0},addFilter:function(t){p+="&"+(t.attr("rel")||""),x.fadeTo(300,.6),f=_.getUrl(),k=jQuery.ajax({url:f,success:I.filterAjaxSuccess,error:I.filterAjaxError}),t.parent().addClass("sr_selected")},triggerFilter:function(){r.filterDefault&&(p+=r.filterDefault,x.fadeTo(300,.6),f=_.getUrl(),k=jQuery.ajax({url:f,success:I.filterAjaxSuccess,error:I.filterAjaxError}))},removeFilter:function(t){var e=t.attr("rel")||"";x.fadeTo(300,.6),""!==e&&(p=p.replace("&"+e,"")),f=_.getUrl(),k=jQuery.ajax({url:f,success:I.filterAjaxSuccess,error:I.filterAjaxError}),t.parent().removeClass("sr_selected")},filterAjaxSuccess:function(t){var e=jQuery(t);x.fadeTo(300,0,function(){jQuery(this).hide()}),I.updateContent(e),y.requests++,r.ajaxCallback(y),u.animate({scrollTop:r.filterScrollTop(S||{top:0,left:0})},600)},filterAjaxError:function(){x.fadeTo(300,0,function(){jQuery(this).hide()}),alert(r.filterErrorMsg),n("Houve um erro ao tentar fazer a requisição da página com filtros.")},updateContent:function(t){if(m=!0,!r.authorizeUpdate(y))return!1;var e=t.filter(r.shelfClass),n=v.find(r.shelfClass);(n.length>0?n:r.emptySearchElem).slideUp(50,function(){jQuery(this).remove(),r.usePopup?d.find(".boxPopUp2").vtexPopUp2():r.emptySearchElem.remove(),e.length>0?(e.hide(),v.append(e),r.shelfCallback(),e.slideDown(50,function(){m=!1}),y.isEmpty=!1):(y.isEmpty=!0,r.usePopup?r.emptySearchElem.addClass("freeContent autoClose ac_"+r.popupAutoCloseSeconds).vtexPopUp2().stop(!0).show():(v.append(r.emptySearchElem),r.emptySearchElem.show().css("height","auto").fadeTo(300,.2,function(){r.emptySearchElem.fadeTo(300,1)})),r.emptySearchCallback(y))})},adjustText:function(t){var e=t.parent(),n=e.text();n=I.removeCounter(n),e.text(n).prepend(t)},removeCounter:function(t){return t.replace(/\([0-9]+\)/gi,function(t){t.replace(/\(|\)/,"");return""})},setFilterMenu:function(){g.length>0&&(w.hide(),g.show())}};d.hasClass("departamento")?I.mergeMenu():(d.hasClass("categoria")||d.hasClass("resultado-busca"))&&I.mergeMenuList(),I.exec(),_.infinitScroll(!0),_.scrollToTop(),r.callback(),g.css("visibility","visible")},$(function(){}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Vue=e()}(this,function(){function t(t){return void 0===t||null===t}function e(t){return void 0!==t&&null!==t}function n(t){return!0===t}function o(t){return"string"==typeof t||"number"==typeof t}function r(t){return null!==t&&"object"==typeof t}function i(t){return"[object Object]"===Gr.call(t)}function a(t){return"[object RegExp]"===Gr.call(t)}function s(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function l(t){var e=parseFloat(t);return isNaN(e)?t:e}function c(t,e){for(var n=Object.create(null),o=t.split(","),r=0;r-1)return t.splice(n,1)}}function d(t,e){return Jr.call(t,e)}function f(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}function p(t,e){function n(n){var o=arguments.length;return o?o>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function h(t,e){e=e||0;for(var n=t.length-e,o=new Array(n);n--;)o[n]=t[n+e];return o}function m(t,e){for(var n in e)t[n]=e[n];return t}function v(t){for(var e={},n=0;n1?h(o):o;for(var r=h(arguments,1),i=0,a=o.length;ila)){di("You may have an infinite update loop "+(t.user?'in watcher with expression "'+t.expression+'"':"in a component render function."),t.vm);break}var n=ua.slice(),o=ca.slice();kt(),Mt(n),It(o),Ri&&li.devtools&&Ri.emit("flush")}function It(t){for(var e=t.length;e--;){var n=t[e],o=n.vm;o._watcher===n&&o._isMounted&&At(o,"updated")}}function Ot(t){t._inactive=!1,ua.push(t)}function Mt(t){for(var e=0;e=0&&ca[n].id>t.id;)n--;ca.splice(Math.max(n,ma)+1,0,t)}else ca.push(t);pa||(pa=!0,Di(Tt))}}function Rt(t){ya.clear(),Et(t,ya)}function Et(t,e){var n,o,i=Array.isArray(t);if((i||r(t))&&Object.isExtensible(t)){if(t.__ob__){var a=t.__ob__.dep.id;if(e.has(a))return;e.add(a)}if(i)for(n=t.length;n--;)Et(t[n],e);else for(o=Object.keys(t),n=o.length;n--;)Et(t[o[n]],e)}}function Dt(t,e,n){ba.get=function(){return this[e][n]},ba.set=function(t){this[e][n]=t},Object.defineProperty(t,n,ba)}function Pt(t){t._watchers=[];var e=t.$options;e.props&&jt(t,e.props),e.methods&&Ut(t,e.methods),e.data?$t(t):B(t._data={},!0),e.computed&&Nt(t,e.computed),e.watch&&Ht(t,e.watch)}function jt(t,e){var n=t.$options.propsData||{},o=t._props={},r=t.$options._propKeys=[],i=!t.$parent;Fi.shouldConvert=i;var a=function(i){r.push(i);var a=q(i,e,n,t);(_a[i]||li.isReservedAttr(i))&&di('"'+i+'" is a reserved attribute and cannot be used as component prop.',t),R(o,i,a,function(){t.$parent&&!Fi.isSettingProps&&di("Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: \""+i+'"',t)}),i in t||Dt(t,"_props",i)};for(var s in e)a(s);Fi.shouldConvert=!0}function $t(t){var e=t.$options.data;e=t._data="function"==typeof e?Lt(e,t):e||{},i(e)||(e={},di("data functions should return an object:\nhttps://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function",t));for(var n=Object.keys(e),o=t.$options.props,r=n.length;r--;)o&&d(o,n[r])?di('The data property "'+n[r]+'" is already declared as a prop. Use prop default value instead.',t):x(n[r])||Dt(t,"_data",n[r]);B(e,!0)}function Lt(t,e){try{return t.call(e)}catch(t){return A(t,e,"data()"),{}}}function Nt(t,e){var n=t._computedWatchers=Object.create(null);for(var o in e){var r=e[o],i="function"==typeof r?r:r.get;void 0===i&&(di('No getter function has been defined for computed property "'+o+'".',t),i=g),n[o]=new ga(t,i,g,wa),o in t?o in t.$data?di('The computed property "'+o+'" is already defined in data.',t):t.$options.props&&o in t.$options.props&&di('The computed property "'+o+'" is already defined as a prop.',t):zt(t,o,r)}}function zt(t,e,n){"function"==typeof n?(ba.get=Ft(e),ba.set=g):(ba.get=n.get?!1!==n.cache?Ft(e):n.get:g,ba.set=n.set?n.set:g),Object.defineProperty(t,e,ba)}function Ft(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ji.target&&e.depend(),e.value}}function Ut(t,e){var n=t.$options.props;for(var o in e)t[o]=null==e[o]?g:p(e[o],t),null==e[o]&&di('method "'+o+'" has an undefined value in the component definition. Did you reference the function correctly?',t),n&&d(n,o)&&di('method "'+o+'" has already been defined as a prop.',t)}function Ht(t,e){for(var n in e){var o=e[n];if(Array.isArray(o))for(var r=0;r=0||n.indexOf(t[r])<0)&&o.push(t[r]);return o}return t}function we(t){this instanceof we||di("Vue is a constructor and should be called with the `new` keyword"),this._init(t)}function xe(t){t.use=function(t){if(!t.installed){var e=h(arguments,1);return e.unshift(this),"function"==typeof t.install?t.install.apply(t,e):"function"==typeof t&&t.apply(null,e),t.installed=!0,this}}}function Ce(t){t.mixin=function(t){this.options=U(this.options,t)}}function Se(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,o=n.cid,r=t._Ctor||(t._Ctor={});if(r[o])return r[o];var i=t.name||n.options.name;/^[a-zA-Z][\w-]*$/.test(i)||di('Invalid component name: "'+i+'". Component names can only contain alphanumeric characters and the hyphen, and must start with a letter.');var a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=U(n.options,t),a.super=n,a.options.props&&Ae(a),a.options.computed&&ke(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,ai.forEach(function(t){a[t]=n[t]}),i&&(a.options.components[i]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=m({},a.options),r[o]=a,a}}function Ae(t){var e=t.options.props;for(var n in e)Dt(t.prototype,"_props",n)}function ke(t){var e=t.options.computed;for(var n in e)zt(t.prototype,n,e[n])}function Te(t){ai.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&li.isReservedTag(t)&&di("Do not use built-in or reserved HTML elements as component id: "+t),"component"===e&&i(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}function Ie(t){return t&&(t.Ctor.options.name||t.tag)}function Oe(t,e){return"string"==typeof t?t.split(",").indexOf(e)>-1:!!a(t)&&t.test(e)}function Me(t,e,n){for(var o in t){var r=t[o];if(r){var i=Ie(r.componentOptions);i&&!n(i)&&(r!==e&&Be(r),t[o]=null)}}}function Be(t){t&&t.componentInstance.$destroy()}function Re(t){var e={};e.get=function(){return li},e.set=function(){di("Do not replace the Vue.config object, set individual fields instead.")},Object.defineProperty(t,"config",e),t.util={warn:di,extend:m,mergeOptions:U,defineReactive:R},t.set=E,t.delete=D,t.nextTick=Di,t.options=Object.create(null),ai.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,m(t.options.components,Oa),xe(t),Ce(t),Se(t),Te(t)}function Ee(t){for(var n=t.data,o=t,r=t;e(r.componentInstance);)r=r.componentInstance._vnode,r.data&&(n=De(r.data,n));for(;e(o=o.parent);)o.data&&(n=De(n,o.data));return Pe(n)}function De(t,n){return{staticClass:je(t.staticClass,n.staticClass),class:e(t.class)?[t.class,n.class]:n.class}}function Pe(t){var n=t.class,o=t.staticClass;return e(o)||e(n)?je(o,$e(n)):""}function je(t,e){return t?e?t+" "+e:t:e||""}function $e(n){if(t(n))return"";if("string"==typeof n)return n;var o="";if(Array.isArray(n)){for(var i,a=0,s=n.length;a-1?Ka[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Ka[t]=/HTMLUnknownElement/.test(e.toString())}function ze(t){if("string"==typeof t){var e=document.querySelector(t);return e||(di("Cannot find element: "+t),document.createElement("div"))}return t}function Fe(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function Ue(t,e){return document.createElementNS(Qa[t],e)}function He(t){return document.createTextNode(t)}function qe(t){return document.createComment(t)}function We(t,e,n){t.insertBefore(e,n)}function Ve(t,e){t.removeChild(e)}function Ze(t,e){t.appendChild(e)}function Qe(t){return t.parentNode}function Ge(t){return t.nextSibling}function Xe(t){return t.tagName}function Je(t,e){t.textContent=e}function Ye(t,e,n){t.setAttribute(e,n)}function Ke(t,e){var n=t.data.ref;if(n){var o=t.context,r=t.componentInstance||t.elm,i=o.$refs;e?Array.isArray(i[n])?u(i[n],r):i[n]===r&&(i[n]=void 0):t.data.refInFor?Array.isArray(i[n])&&i[n].indexOf(r)<0?i[n].push(r):i[n]=[r]:i[n]=r}}function tn(t,n){return t.key===n.key&&t.tag===n.tag&&t.isComment===n.isComment&&e(t.data)===e(n.data)&&en(t,n)}function en(t,n){if("input"!==t.tag)return!0;var o;return(e(o=t.data)&&e(o=o.attrs)&&o.type)===(e(o=n.data)&&e(o=o.attrs)&&o.type)}function nn(t,n,o){var r,i,a={};for(r=n;r<=o;++r)i=t[r].key,e(i)&&(a[i]=r);return a}function on(r){function i(t){return new na(B.tagName(t).toLowerCase(),{},[],void 0,t)}function a(t,e){function n(){0==--n.listeners&&s(t)}return n.listeners=e,n}function s(t){var n=B.parentNode(t);e(n)&&B.removeChild(n,t)}function l(t,o,r,i,a){if(t.isRootInsert=!a,!u(t,o,r,i)){var s=t.data,l=t.children,c=t.tag;e(c)?(s&&s.pre&&R++,R||t.ns||li.ignoredElements.length&&li.ignoredElements.indexOf(c)>-1||!li.isUnknownElement(c)||di("Unknown custom element: <"+c+'> - did you register the component correctly? For recursive components, make sure to provide the "name" option.',t.context),t.elm=t.ns?B.createElementNS(t.ns,c):B.createElement(c,t),g(t),h(t,l,o),e(s)&&v(t,o),p(r,t.elm,i),s&&s.pre&&R--):n(t.isComment)?(t.elm=B.createComment(t.text),p(r,t.elm,i)):(t.elm=B.createTextNode(t.text),p(r,t.elm,i))}}function u(t,o,r,i){var a=t.data;if(e(a)){var s=e(t.componentInstance)&&a.keepAlive;if(e(a=a.hook)&&e(a=a.init)&&a(t,!1,r,i),e(t.componentInstance))return d(t,o),n(s)&&f(t,o,r,i),!0}}function d(t,n){e(t.data.pendingInsert)&&n.push.apply(n,t.data.pendingInsert),t.elm=t.componentInstance.$el,m(t)?(v(t,n),g(t)):(Ke(t),n.push(t))}function f(t,n,o,r){for(var i,a=t;a.componentInstance;)if(a=a.componentInstance._vnode,e(i=a.data)&&e(i=i.transition)){for(i=0;ih?(d=t(r[g+1])?null:r[g+1].elm,y(n,d,r,p,g,i)):p>g&&_(n,o,f,h)}function C(o,r,i,a){if(o!==r){if(n(r.isStatic)&&n(o.isStatic)&&r.key===o.key&&(n(r.isCloned)||n(r.isOnce)))return r.elm=o.elm,void(r.componentInstance=o.componentInstance);var s,l=r.data;e(l)&&e(s=l.hook)&&e(s=s.prepatch)&&s(o,r);var c=r.elm=o.elm,u=o.children,d=r.children;if(e(l)&&m(r)){for(s=0;s, or missing . Bailing hydration and performing full client-side render.")}o=i(o)}var h=o.elm,v=B.parentNode(h);if(l(r,f,h._leaveCb?null:v,B.nextSibling(h)),e(r.parent)){for(var g=r.parent;g;)g.elm=r.elm,g=g.parent;if(m(r))for(var y=0;y=0&&" "===(v=t.charAt(m));m--);v&&cs.test(v)||(u=!0)}}else void 0===i?(h=r+1,i=t.slice(0,r).trim()):e();if(void 0===i?i=t.slice(0,r).trim():0!==h&&e(),a)for(r=0;r=Ma}function In(t){return 34===t||39===t}function On(t){var e=1;for(Da=Ea;!Tn();)if(t=kn(),In(t))Mn(t);else if(91===t&&e++,93===t&&e--,0===e){Pa=Ea;break}}function Mn(t){for(var e=t;!Tn()&&(t=kn())!==e;);}function Bn(t,e,n){ja=n;var o=e.value,r=e.modifiers,i=t.tag,a=t.attrsMap.type,s=t.attrsMap["v-bind_type"]||t.attrsMap._type;if("input"===i&&s&&ja(':\nv-model does not support dynamic input types. Use v-if branches instead.'),"input"===i&&"file"===a&&ja("<"+t.tag+' v-model="'+o+'" type="file">:\nFile inputs are read only. Use a v-on_change listener instead.'),"select"===i)Dn(t,o,r);else if("input"===i&&"checkbox"===a)Rn(t,o,r);else if("input"===i&&"radio"===a)En(t,o,r);else if("input"===i||"textarea"===i)Pn(t,o,r);else{if(!li.isReservedTag(i))return Cn(t,o,r),!1;ja("<"+t.tag+' v-model="'+o+"\">: v-model is not supported on this element type. If you are working with contenteditable, it's recommended to wrap a library dedicated for that purpose inside a custom component.")}return!0}function Rn(t,e,n){var o=n&&n.number,r=wn(t,"value")||"null",i=wn(t,"true-value")||"true",a=wn(t,"false-value")||"false";gn(t,"checked","Array.isArray("+e+")?_i("+e+","+r+")>-1"+("true"===i?":("+e+")":":_q("+e+","+i+")")),_n(t,ds,"var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+i+"):("+a+");if(Array.isArray($$a)){var $$v="+(o?"_n("+r+")":r)+",$$i=_i($$a,$$v);if($$c){$$i<0&&("+e+"=$$a.concat($$v))}else{$$i>-1&&("+e+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+Sn(e,"$$c")+"}",null,!0)}function En(t,e,n){var o=n&&n.number,r=wn(t,"value")||"null";r=o?"_n("+r+")":r,gn(t,"checked","_q("+e+","+r+")"),_n(t,ds,Sn(e,r),null,!0)}function Dn(t,e,n){var o=n&&n.number,r='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(o?"_n(val)":"val")+"})",i="var $$selectedVal = "+r+";";i=i+" "+Sn(e,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),_n(t,"change",i,null,!0)}function Pn(t,e,n){var o=t.attrsMap.type,r=n||{},i=r.lazy,a=r.number,s=r.trim,l=!i&&"range"!==o,c=i?"change":"range"===o?us:"input",u="$event.target.value";s&&(u="$event.target.value.trim()"),a&&(u="_n("+u+")");var d=Sn(e,u);l&&(d="if($event.target.composing)return;"+d),gn(t,"value","("+e+")"),_n(t,c,d,null,!0),(s||a||"number"===o)&&_n(t,"blur","$forceUpdate()")}function jn(t){var n;e(t[us])&&(n=wi?"change":"input",t[n]=[].concat(t[us],t[n]||[]),delete t[us]),e(t[ds])&&(n=ki?"click":"change",t[n]=[].concat(t[ds],t[n]||[]),delete t[ds])}function $n(t,e,n,o,r){if(n){var i=e,a=$a;e=function(n){null!==(1===arguments.length?i(n):i.apply(null,arguments))&&Ln(t,e,o,a)}}$a.addEventListener(t,e,Ti?{capture:o,passive:r}:o)}function Ln(t,e,n,o){(o||$a).removeEventListener(t,e,n)}function Nn(e,n){if(!t(e.data.on)||!t(n.data.on)){var o=n.data.on||{},r=e.data.on||{};$a=n.elm,jn(o),tt(o,r,$n,Ln,n.context)}}function zn(n,o){if(!t(n.data.domProps)||!t(o.data.domProps)){var r,i,a=o.elm,s=n.data.domProps||{},l=o.data.domProps||{};e(l.__ob__)&&(l=o.data.domProps=m({},l));for(r in s)t(l[r])&&(a[r]="");for(r in l)if(i=l[r],"textContent"!==r&&"innerHTML"!==r||(o.children&&(o.children.length=0),i!==s[r]))if("value"===r){a._value=i;var c=null==i?"":String(i);Fn(a,o,c)&&(a.value=c)}else a[r]=i}}function Fn(t,e,n){return!t.composing&&("option"===e.tag||Un(t,n)||Hn(t,n))}function Un(t,e){return document.activeElement!==t&&t.value!==e}function Hn(t,n){var o=t.value,r=t._vModifiers;return e(r)&&r.number||"number"===t.type?l(o)!==l(n):e(r)&&r.trim?o.trim()!==n.trim():o!==n}function qn(t){var e=Wn(t.style);return t.staticStyle?m(t.staticStyle,e):e}function Wn(t){return Array.isArray(t)?v(t):"string"==typeof t?hs(t):t}function Vn(t,e){var n,o={};if(e)for(var r=t;r.componentInstance;)r=r.componentInstance._vnode,r.data&&(n=qn(r.data))&&m(o,n);(n=qn(t.data))&&m(o,n);for(var i=t;i=i.parent;)i.data&&(n=qn(i.data))&&m(o,n);return o}function Zn(n,o){var r=o.data,i=n.data;if(!(t(r.staticStyle)&&t(r.style)&&t(i.staticStyle)&&t(i.style))){var a,s,l=o.elm,c=i.staticStyle,u=i.normalizedStyle||i.style||{},d=c||u,f=Wn(o.data.style)||{};o.data.normalizedStyle=e(f.__ob__)?m({},f):f;var p=Vn(o,!0);for(s in d)t(p[s])&&gs(l,s,"");for(s in p)(a=p[s])!==d[s]&&gs(l,s,null==a?"":a)}}function Qn(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Gn(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e);else{for(var n=" "+(t.getAttribute("class")||"")+" ",o=" "+e+" ";n.indexOf(o)>=0;)n=n.replace(o," ");t.setAttribute("class",n.trim())}}function Xn(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&m(e,ws(t.name||"v")),m(e,t),e}return"string"==typeof t?ws(t):void 0}}function Jn(t){Os(function(){Os(t)})}function Yn(t,e){(t._transitionClasses||(t._transitionClasses=[])).push(e),Qn(t,e)}function Kn(t,e){t._transitionClasses&&u(t._transitionClasses,e),Gn(t,e)}function to(t,e,n){var o=eo(t,e),r=o.type,i=o.timeout,a=o.propCount;if(!r)return n();var s=r===Cs?ks:Is,l=0,c=function(){t.removeEventListener(s,u),n()},u=function(e){e.target===t&&++l>=a&&c()};setTimeout(function(){l0&&(n=Cs,u=a,d=i.length):e===Ss?c>0&&(n=Ss,u=c,d=l.length):(u=Math.max(a,c),n=u>0?a>c?Cs:Ss:null,d=n?n===Cs?i.length:l.length:0),{type:n,timeout:u,propCount:d,hasTransform:n===Cs&&Ms.test(o[As+"Property"])}}function no(t,e){for(;t.length explicit "+e+" duration is not a valid number - got "+JSON.stringify(t)+".",n.context):isNaN(t)&&di(" explicit "+e+" duration is NaN - the duration expression might be incorrect.",n.context)}function so(t){return"number"==typeof t&&!isNaN(t)}function lo(n){if(t(n))return!1;var o=n.fns;return e(o)?lo(Array.isArray(o)?o[0]:o):(n._length||n.length)>1}function co(t,e){!0!==e.data.show&&ro(e)}function uo(t,e,n){var o=e.value,r=t.multiple;if(r&&!Array.isArray(o))return void di('