var instafeedApp = (function instafeedLoad(){/*! * Copyright (c) 2023 Mintt Studio * All rights reserved. * * This code is proprietary and protected under international copyright laws. * Redistribution, use, modification, or sublicensing without explicit written permission from * Mintt Studio is prohibited. * * License inquiries or unauthorized use reports should be directed to: * legal@minttstudio.com. */ const e="nfcube.com",t="instafeed.nfcube.com",i="cdn.nfcube.com",s="13.1.x",n="feed",a="insta-feed",o=".instafeed-lightbox",d="instafeed",r=!1,l=3,c=1024;window.instafeedEvents=window.instafeedEvents||[];class u{constructor(){this.listeners=window.instafeedEvents=window.instafeedEvents||[],this.debugMode=!1}addListener(e,t,i,s={}){this.listeners.some((i=>i.element===e&&i.event===t&&"swiped"===t))?this.debugMode&&console.log(`Listener for ${t} on the specified element already exists.`):(e.addEventListener(t,i,s),this.listeners.push({element:e,event:t,handler:i}),this.debugMode&&(console.log(`Added listener for ${t}`),console.log("Listeners",this.listeners)))}removeListener(e,t,i){e.removeEventListener(t,i),this.listeners=this.listeners.filter((s=>!(s.element===e&&s.event===t&&s.handler===i))),this.debugMode&&(console.log(`Removed listener for ${t}`),console.log("Listeners",this.listeners))}clearAllListeners(){this.listeners.forEach((({element:e,event:t,handler:i})=>{e.removeEventListener(t,i)})),this.listeners=[],this.debugMode&&console.log("All listeners have been removed")}}const h=new u;var Instafeed=function(){function Instafeed(e){this.translations={en:{SHOP_NOW:"Shop now",ADD_TO_CART:"Add to cart",TAG_PRODUCTS:"Tag products",TAGGED_BY:"Tagged by {username}",VIEW_ON_INSTAGRAM:"View on Instagram",REVIEWS:"{number} reviews",HANG_ON:"Please hang on while we process your feed. This may take a while.",DELETE:"Delete"},"pt-PT":{SHOP_NOW:"Comprar agora",ADD_TO_CART:"Adicionar ao carrinho",TAG_PRODUCTS:"Identificar produtos",TAGGED_BY:"Marcado por {username}",VIEW_ON_INSTAGRAM:"Ver no Instagram",REVIEWS:"{number} avaliações",HANG_ON:"Aguarde um momento, estamos a processar o seu feed. Isto pode demorar um pouco.",DELETE:"Apagar"},"pt-BR":{SHOP_NOW:"Comprar agora",ADD_TO_CART:"Adicionar ao carrinho",TAG_PRODUCTS:"Marcar produtos",TAGGED_BY:"Marcado por {username}",VIEW_ON_INSTAGRAM:"Ver no Instagram",REVIEWS:"{number} avaliações",HANG_ON:"Aguarde um momento, estamos processando seu feed. Isso pode demorar um pouco.",DELETE:"Delete"},es:{SHOP_NOW:"Comprar ahora",ADD_TO_CART:"Añadir al carrito",TAG_PRODUCTS:"Etiquetar productos",TAGGED_BY:"Etiquetado por {username}",VIEW_ON_INSTAGRAM:"Ver en Instagram",REVIEWS:"{number} reseñas",HANG_ON:"Espera un momento, estamos procesando tu feed. Esto puede llevar unos instantes.",DELETE:"Eliminar"},"ja-JP":{SHOP_NOW:"今ã™ã購入",ADD_TO_CART:"カートã«å…¥ã‚Œã‚‹",TAG_PRODUCTS:"商å“ã«ã‚¿ã‚°ã‚’付ã‘ã‚‹",TAGGED_BY:"{username}ã«ã‚ˆã£ã¦ã‚¿ã‚°ä»˜ã‘ã•ã‚Œã¾ã—ãŸ",VIEW_ON_INSTAGRAM:"Instagramã§è¦‹ã‚‹",REVIEWS:"{number} レビュー",HANG_ON:"少々ãŠå¾…ã¡ãã ã•ã„ã€ãƒ•ã‚£ãƒ¼ãƒ‰ã‚’処ç†ä¸ã§ã™ã€‚ã“ã‚Œã«ã¯æ™‚é–“ãŒã‹ã‹ã‚‹å ´åˆãŒã‚ã‚Šã¾ã™ã€‚",DELETE:"削除"},fr:{SHOP_NOW:"Acheter",ADD_TO_CART:"Ajouter au panier",TAG_PRODUCTS:"Étiqueter les produits",TAGGED_BY:"Tagué par {username}",VIEW_ON_INSTAGRAM:"Afficher sur Instagram",REVIEWS:"{number} avis",HANG_ON:"Patientez, nous traitons votre flux. Cela pourrait prendre un certain temps.",DELETE:"Supprimer"},de:{SHOP_NOW:"Jetzt shoppen",ADD_TO_CART:"Zum Warenkorb hinzufügen",TAG_PRODUCTS:"Produkte taggen",TAGGED_BY:"Getaggt von {username}",VIEW_ON_INSTAGRAM:"Auf Instagram ansehen",REVIEWS:"{number} Bewertungen",HANG_ON:"Einen Moment bitte, wir verarbeiten deinen Feed. Das könnte eine Weile dauern.",DELETE:"Löschen"},sv:{SHOP_NOW:"Handla nu",ADD_TO_CART:"Lägg i kundvagn",TAG_PRODUCTS:"Tagga produkter",TAGGED_BY:"Taggad av {username}",VIEW_ON_INSTAGRAM:"Visa pÃ¥ Instagram",REVIEWS:"{number} recensioner",HANG_ON:"Vänta, vi behandlar ditt flöde. Detta kan ta en stund.",DELETE:"Radera"},it:{SHOP_NOW:"Acquista ora",ADD_TO_CART:"Aggiungi al carrello",TAG_PRODUCTS:"Tagga prodotti",TAGGED_BY:"Taggato da {username}",VIEW_ON_INSTAGRAM:"Visualizza su Instagram",REVIEWS:"{number} recensioni",HANG_ON:"Aspetta, stiamo elaborando il tuo feed. Potrebbe richiedere un po' di tempo.",DELETE:"Elimina"},da:{SHOP_NOW:"Shop nu",ADD_TO_CART:"Tilføj til kurv",TAG_PRODUCTS:"Tag produkter",TAGGED_BY:"Tagget af {username}",VIEW_ON_INSTAGRAM:"Se pÃ¥ Instagram",REVIEWS:"{number} anmeldelser",HANG_ON:"Vent venligst, vi behandler dit feed. Det kan tage lidt tid.",DELETE:"Slet"},nb:{SHOP_NOW:"Handle nÃ¥",ADD_TO_CART:"Legg i handlekurv",TAG_PRODUCTS:"Tagge produkter",TAGGED_BY:"Taggede av {username}",VIEW_ON_INSTAGRAM:"Vis pÃ¥ Instagram",REVIEWS:"{number} anmeldelser",HANG_ON:"Vent litt, vi behandler din feed. Dette kan ta en stund.",DELETE:"Slett"},nl:{SHOP_NOW:"Nu winkelen",ADD_TO_CART:"Toevoegen aan winkelwagen",TAG_PRODUCTS:"Producten taggen",TAGGED_BY:"Getagd door {username}",VIEW_ON_INSTAGRAM:"Bekijk op Instagram",REVIEWS:"{number} beoordelingen",HANG_ON:"Even geduld alstublieft, we verwerken je feed. Dit kan even duren.",DELETE:"Verwijderen"}},this.availableLanguages=["en","es","de","fr","sv","da","it","nl","nb","ja-JP","pt-PT","pt-BR"],this.accountUsername="",this.options={target:a,language:"en",locale:"en-US",showLoading:!0,forceUpdate:!1,viewsAndClicks:!1,key:"",overrides:"",picturesLoaded:0,picturesNeeded:0,admin:window.location.hostname===t},"undefined"!=typeof Shopify&&Shopify.locale&&(this.options.locale=Shopify.locale,this.availableLanguages.includes(Shopify.locale)&&(this.options.language=Shopify.locale)),Object.assign(this.options,e),this.options.admin||this.t(),document.querySelectorAll(o).forEach((e=>{e.parentNode.removeChild(e)}))}return Instafeed.prototype.translate=function(e){return this.translations[this.options.language]&&this.translations[this.options.language][e]?this.translations[this.options.language][e]:e},Instafeed.prototype.run=function(){var e=document.getElementById(this.options.target);if(0===e.clientWidth&&parseInt(this.options.autoLayout)>0)return this.i(this,e),!1;this.options.corners=4===parseInt(this.options.format)?"50%":this.options.corners+"px",instafeedSettings.analyticsViewsClicks=Boolean(this.options.viewsAndClicks),!this.o(this.options.charge)&&parseInt(this.options.rows)>parseInt(this.options.rowsLimit)&&(this.options.rows=this.options.rowsLimit),parseInt(this.options.autoLayout)>0?(this.options.picturesNeeded=this.options.rows*this.l(e.clientWidth,this.options.admin),this.u()&&this.o(this.options.charge)&&(this.options.picturesNeeded=this.options.rowsMobile*this.l(e.clientWidth,this.options.admin))):this.u()&&this.o(this.options.charge)?this.options.picturesNeeded=this.options.rowsMobile*this.options.columnsMobile:this.options.picturesNeeded=this.options.rows*this.options.columns,this.options.admin&&this.options.showLoading&&(e.innerHTML='<div class="instafeed-spinner"></div><div><em>'+this.translate("HANG_ON")+"</em></div>"),!this.options.admin&&parseInt(this.options.loadingAnimation)>0&&(e.innerHTML='<div class="instafeed-spinner"></div>');const t=this;return Date.now(),fetch(this.h()).then((e=>{if(!e.ok)throw new Error(`${e.status} ${e.statusText}`);return e.json()})).then((e=>{try{t.parse(e)}catch(e){console.error("Parse function error:",e.message)}})).catch((e=>{console.log("Fetch error:",e.message),this.options.admin&&this.options.error.call(this,{meta:{code:204,username:"",error_message:"Taking a bit longer to fetch your feed, please refresh this page in a couple of minutes."}})})).finally((()=>{Date.now()})),!0},Instafeed.prototype.parse=function(e){var i,s,n,a,o,r,l,c,u,h,p,f,g,m,v,w,$,b;const S=document.getElementById(this.options.target);if(!S)return!1;if("object"!=typeof e)throw new Error("Invalid JSON response");const{meta:{code:y,error_message:I}}=e,T=parseInt(y,10);if(S.innerHTML="",200!==T)return this.options.admin&&"function"==typeof this.options.error&&this.options.error.call(this,e),!1;for("function"==typeof this.options.success&&this.options.success.call(this,e),i=e.data,s=0,n="",this.accountUsername=e.meta.username,s=0,len=i.length;s<len;s++){a=i[s],o=e.meta.followers,r=e.meta.profile_picture,l=a.images.standard_resolution,u="";const b=2===parseInt(this.options.openIg)&&(!Array.isArray(a.tagged_products)||a.tagged_products.length<=1)?"instafeed-simple-popup":"",S="instafeed-simple-popup"===b&&Array.isArray(a.tagged_products)&&a.tagged_products.length>1?"display:none;":"";if(h="instafeed-simple-popup"===b?"instafeed-tagged-buy-button-simple-popup":"tagged-buy-button",p=this.p(b,S),this.options.picturesLoaded++,parseInt(this.options.openIg)>1){if(parseInt(this.options.showProducts)<2&&a.hasOwnProperty("tagged_products")&&a.tagged_products.length>0&&this.o(this.options.charge)&&a.tagged_products.forEach((e=>{let i="";parseInt(e.variant)>0&&(i="?variant="+parseInt(e.variant));let s="undefined"!=typeof Shopify&&Shopify.locale?Shopify.locale:this.options.language;var n,o;e.translations&&s in e.translations&&"title"in e.translations[s]&&""!==e.translations[s].title.trim()&&(e.title=e.translations[s].title),this.options.addToCart&&parseInt(e.variant)>0&&!this.options.admin?(c=this.translate("ADD_TO_CART"),productClick=`onclick="event.preventDefault(); instafeedAddToCart(this, ${parseInt(e.variant)}, '${c}');"`):(c=this.translate("SHOP_NOW"),this.options.admin||(productClick="href = '//"+window.location.hostname+Shopify.routes.root+e.handle+i+"'"));let r=parseInt(this.options.showPrices)>0?this.m(e.price):"",l=parseInt(this.options.showReviews)>0&&e.rating_count>0?this.v(e.rating,e.rating_count):"";this.options.admin?(n="<div class='instafeed-tagged-product'><div class='instafeed-product-name'>"+e.title+"</div>"+l+r+"<div style='display:inline-block;'><a href='#"+this.options.picturesLoaded+"-"+this.options.target+"' id='delete-product' data-picture-id='"+a.id+"' data-tagging-id='"+e.id+"'><button class='secondary' style='display:block;'>"+this.translate("DELETE")+"</button></a></div></div>",o="<img class='"+d+"-lazy-image' src='https://"+t+"/assets/img/placeholder.png' data-instafeed-src='"+e.image+"' alt='"+e.title+"' />"):(n="<div class='instafeed-tagged-product'><a aria-label='Open product' "+productClick+"><div class='instafeed-product-name'>"+e.title+"</div>"+l+r+"<div style='display:inline-block;'><button class='"+h+"' style='display:block;' aria-label='open product' tabindex='-1'>"+c.toUpperCase()+"</button></a></div></div>",o="<a aria-label='Open product' href='//"+window.location.hostname+Shopify.routes.root+e.handle+i+"'><img class='"+d+"-lazy-image' src='https://"+t+"/assets/img/placeholder.png' data-instafeed-src='"+e.image+"' alt='"+e.title+"' /></a>"),u+="<div class='tagged-products "+b+"' id='"+a.id+"-"+e.id+"'><div class='tagged-products-image'>"+o+"</div><div class='tagged-products-buttons'>"+n+"</div></div>"})),f="",g="",m="",v="",a.carousel){const e=this.options.feedId;instafeedSettings.carousels[e]||(instafeedSettings.carousels[e]={}),instafeedSettings.carousels[e][s]=a.carousel.map((e=>e.thumbnail_url?e.thumbnail_url:e.media_url));let t="";a.carousel.forEach(((i,n)=>{t+=`<span id='instafeed-carousel-dot-${e}-${s}-${n}' class='instafeed-carousel-dot${0===n?" active":""}'></span>`})),v=`\n <div tabindex='0' role='link' aria-label='previous carousel post' style="left:10px; transform: rotate(180deg);" onclick="instafeedCarouselArrow(this, '${e}', ${s}, 'left')" class="instafeed-carousel-arrow"></div>\n <div tabindex='0' role='link' aria-label='next carousel post' style="right:10px;" onclick="instafeedCarouselArrow(this, '${e}', ${s}, 'right')" class="instafeed-carousel-arrow"></div>\n <div class="instafeed-carousel-dots" id="instafeed-carousel-dots-${e}-${s}">${t}</div>\n `}"video"===a.type&&a.hasOwnProperty("videos")?(f=d+"-video",g="<div tabindex='0' role='link' aria-label='Mute' class='instafeed-sound-button "+(instafeedSettings.sound?"sound-on":"")+"' onclick='instafeedToggleSound(this)' data-video-id='video-"+this.options.picturesLoaded+"-"+this.options.target+"'></div>",m="<div tabindex='0' role='link' class='instafeed-video-control' onclick='instafeedTogglePlay()' data-video-id='video-"+this.options.picturesLoaded+"-"+this.options.target+"'></div>",imageFullHtml=v+'<video class="'+b+'" muted loop playsinline id="video-'+this.options.picturesLoaded+"-"+this.options.target+'" preload="none" src="'+a.videos.standard_resolution.url+'">video not supported</video><div id="video-spinner-'+this.options.picturesLoaded+"-"+this.options.target+'" class="instafeed-video-spinner"></div>'):imageFullHtml=v+"<img class='"+d+"-lazy-image "+b+"' style='pointer-events:none;' src='//"+t+"/assets/img/placeholder.png' data-instafeed-src='"+a.images.standard_resolution.url+"' alt='Instagram post with the caption: "+this.$(this.S(a,"caption.text").substring(0,64))+"...' />",w=1===this.options.picturesLoaded?Math.min(this.options.picturesNeeded,i.length):this.options.picturesLoaded-1,$=this.options.picturesLoaded===this.options.picturesNeeded||this.options.picturesLoaded===i.length?1:this.options.picturesLoaded+1,imageFullHtml="<div tabindex='0' role='link' class='instafeed-post-control-button arrow-up' data-"+d+"-open-id='"+w+"-"+this.options.target+"'></div><div tabindex='0' role='link' class='instafeed-post-control-button arrow-down' data-"+d+"-open-id='"+$+"-"+this.options.target+"'></div>"+m+g+imageFullHtml,n+=this.I(p,{model:a,id:this.options.picturesLoaded,fullId:a.id,minusId:w,plusId:$,link:a.link,image:l.url,video:f,tagged_username:a.user.username.length>0&&this.accountUsername!==a.user.username?"<div style='color:gray;text-align:center;line-height:60px;'>"+this.translate("TAGGED_BY").replace("{username}","<a href='"+a.link+"' style='text-decoration:underline!important;color:gray;' target='_blank' aria-label='@"+a.user.username+" on Instagram (opens in new window)' rel='noopener nofollow'>@"+a.user.username+"</a></div>"):"",username:e.meta.username,fullName:e.meta.full_name,userPicture:this.options.apiVersion>4&&parseInt(this.options.charge)>0&&r.length>0?r:"https://"+t+"/assets/img/logo-instagram-transparent.png",imageFullHtml:imageFullHtml,taggedProduct:u,date:this.T(a.created_time),caption:this.$(this.S(a,"caption.text")),likes:a.likes.count>0?"<span><span style='padding-right: 5px;'><svg width='10' height='10' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z' fill='grey'></path></svg> "+this.A(a.likes.count,1)+"</span> \x3c!--<span>❞ {{comments}}</span>--\x3e":"",comments:this.A(a.comments.count,1),location:this.S(a,"location.name")})}if(this.options.picturesLoaded>=this.options.picturesNeeded||e.data.length===this.options.picturesLoaded)break}clearInterval(instafeedScrollIntervals[this.options.feedId]),this._(n),b=parseInt(this.options.autoLayout)>0?parseFloat(100/this.l(S.clientWidth,this.options.admin)).toFixed(3):this.u()&&this.o(this.options.charge)?parseFloat(100/this.options.columnsMobile).toFixed(3):parseFloat(100/this.options.columns).toFixed(3),instafeedSettings.sliderNumVisibleImages[this.options.feedId]=parseInt(Math.round(100/b)),instafeedSettings.totalImages[this.options.feedId]=this.options.picturesLoaded,S.innerHTML+=this.O(i,this.$),this.D(),this.N(o,r),this.k(),this.G(),this.R(),parseInt(this.options.openIg,10)>1&&this.P(),2===parseInt(this.options.openIg,10)&&this.u()&&this.C();const E=new CustomEvent("instafeedAppLoaded");return document.dispatchEvent(E),instafeedFeedsLoaded.push(this.options.feedId),!0},Instafeed.prototype.p=function(e,i){var s,n,a;let o="";s=this.o(this.options.charge)&&parseInt(this.options.likes)>0&&4!==parseInt(this.options.apiVersion)?s="{{likes}}":"",n=this.options.admin?"<div style='margin-bottom:10px;'><div class='tagging-message "+e+"' id='tagging-{{fullId}}'></div><div class='products-tagging "+e+"'><a id='search' data-picture-id='{{fullId}}'><button class='btn primary'>"+this.translate("TAG_PRODUCTS")+"</button></a></div></div>":"";const r=`<div tabindex='0' role='link' class='${d}-close-button' aria-label='close button' data-${d}-close-id='{{id}}-${this.options.target}'>✕</div>`,l=this.u(!0)?"":r,c=this.u(!0)?r:"",u=this.u(!0)?"":"<div tabindex='0' role='link' aria-label='previous post' class='"+d+"-new-arrow prev' data-instafeed-open-id='{{minusId}}-"+this.options.target+"'></div>",h=this.u(!0)?"":"<div tabindex='0' role='link' aria-label='next post' class='"+d+"-new-arrow next' data-instafeed-open-id='{{plusId}}-"+this.options.target+"'></div>";o="<div class='"+d+"-lightbox' data-"+d+"-close-id='{{id}}-"+this.options.target+"' id='{{id}}-"+this.options.target+"'>"+l+u,a="","instafeed-simple-popup"===e&&(a=n+"<div class='instafeed-simple-popup-product-list' data-picture-id='{{fullId}}'>{{taggedProduct}}</div>"),o+="<div class='lightbox-instagram "+e+"' role='dialog' aria-label='Instagram post details' aria-labelledby='{{id}}-"+this.options.target+"' aria-modal='true'><div class='"+d+"-post-image "+e+"'>{{imageFullHtml}} "+a+"</div>";let p=parseInt(this.options.instagramLinks)>0?"• <a href='{{link}}' target='_blank' aria-label='Opens @{{username}} Instagram profile on a new window' rel='noopener nofollow' class='follow'>"+this.translate("VIEW_ON_INSTAGRAM")+"</a>":"";return"instafeed-simple-popup"!==e&&(o+="<div class='description'><div class='"+d+"-header' style='"+i+"'><div class='"+d+"-header-left-section'><div class='"+d+"-header-logo'><img src='//"+t+"/assets/img/placeholder.png' class='profile-picture "+d+"-lazy-image' data-instafeed-src='{{userPicture}}' alt='Instagram profile picture' /></div><a class='"+d+"-fullname' href='https://www.instagram.com/{{username}}/' target='_blank' aria-label='Opens @{{username}} Instagram profile on a new window' rel='noopener nofollow'><div class='"+d+"-fullname' >{{username}}</div></a></div></div><div class='sub-header'><div class='post-engagement'>"+s+"</div></div><div class='"+d+"-content-wrapper'>{{tagged_username}}<div class='box-content' data-picture-id='{{fullId}}'>{{taggedProduct}}</div><div class='"+d+"-caption' style='"+i+"'>{{caption}}</div></div>"+n+"<div class='post-date' style='"+i+"'><span style='padding-left:8px;'>{{date}} "+p+"</span></a></div></div>"),o+=c,o+="</div>"+h+"</div>",o},Instafeed.prototype.k=function(){this.u(!0)&&document.querySelectorAll("."+d+"-post-image").forEach((e=>{const t=e.nextElementSibling,i=t?t.querySelector("."+d+"-header"):null;i&&e.parentNode.insertBefore(i,e)}))},Instafeed.prototype.N=function(e,t){const i=document.getElementById(this.options.target),s=this.o(this.options.charge)&&parseInt(this.options.apiVersion)>4&&(1===parseInt(this.options.showFollowers)||3===parseInt(this.options.showFollowers)),n=this.o(this.options.charge)&&parseInt(this.options.apiVersion)>4&&parseInt(this.options.showFollowers)>1,a=s?`<h3>${this.A(e)} followers</h3>`:"",o=0===parseInt(this.options.feedId)?"undefined"!=typeof instafeedLocalTitle&&instafeedLocalTitle.length>0:void 0!==window["instafeed"+this.options.feedId+"Title"]&&window["instafeed"+this.options.feedId+"Title"].length>0,r=o&&0===parseInt(this.options.feedId)?instafeedLocalTitle:window["instafeed"+this.options.feedId+"Title"],l=this.options.title.length>0||o;let c="";n&&(c+=`<img id="${d}-header-logo" alt="Instagram logo" src=${t} />`),l&&(c+=`<h2 style="${s?"margin-bottom:0;":""}">${o?r:this.options.title}</h2>`),s&&(c+=a),(l||s)&&this._(c,i,i.firstChild)},Instafeed.prototype.D=function(){const e=document.getElementById(this.options.target),t=document.querySelector(`.${d}-new-layout-container[data-feed-id="${this.options.feedId}"]`),i=document.querySelector(`.${d}-new-layout-wrapper[data-feed-id="${this.options.feedId}"]`),s=parseFloat(e.offsetWidth.toFixed(3)),n=parseFloat((s/instafeedSettings.sliderNumVisibleImages[this.options.feedId]*(parseInt(this.options.space)/100)).toFixed(3)),a=parseInt(instafeedSettings.sliderNumVisibleImages[this.options.feedId]-1),o=parseFloat((a*n).toFixed(3)),r=parseFloat((s-o).toFixed(3)),l=parseFloat((r/instafeedSettings.sliderNumVisibleImages[this.options.feedId]).toFixed(3)),c=1===parseInt(this.options.format)?parseFloat((l*(16/9)).toFixed(3)):2===parseInt(this.options.format)?parseFloat((l*(5/4)).toFixed(3)):3===parseInt(this.options.format)?parseFloat((l*(3/4)).toFixed(3)):parseFloat(l.toFixed(3));document.querySelectorAll(`.${d}-new-layout-item[data-feed-id="${this.options.feedId}"]`).forEach((e=>{e.style.width=`${l}px`,e.style.height=`${c}px`})),1===parseInt(this.options.showProducts,10)&&this.o(this.options.charge)&&c>=300&&(document.querySelectorAll(`.${d}-new-layout-item[data-feed-id="${this.options.feedId}"] .instafeed-product-item img`).forEach((e=>{e.style.display="block",e.style.height=Math.min(parseFloat((.15*c).toFixed(3)),60)+"px",e.style.width=Math.min(parseFloat((.15*c).toFixed(3)),60)+"px"})),document.querySelectorAll(`.${d}-new-layout-item[data-feed-id="${this.options.feedId}"] .instafeed-tagged-buy-button-simple-popup`).forEach((e=>{e.style.display="block"}))),t.style.width=`${s}px`,t.style.height=`${c}px`,i.style.gap=`${n}px`,instafeedSettings.sliderStepSize[this.options.feedId]=0===this.options.sliderBehavior||2===this.options.sliderBehavior?s+n:l+n,instafeedSettings.sliderRowSize[this.options.feedId]=s+n,instafeedSettings.totalImages[this.options.feedId]<instafeedSettings.sliderNumVisibleImages[this.options.feedId]&&(i.style.justifyContent="center"),6===parseInt(this.options.layout)&&instafeedSettings.totalImages[this.options.feedId]>=instafeedSettings.sliderNumVisibleImages[this.options.feedId]&&(i.style.display="grid",t.style.height="unset",i.style.gridTemplateColumns="repeat("+instafeedSettings.sliderNumVisibleImages[this.options.feedId]+", 1fr)"),7===parseInt(this.options.layout)&&instafeedSettings.totalImages[this.options.feedId]>=instafeedSettings.sliderNumVisibleImages[this.options.feedId]&&(this.u()&&(h.addListener(e,"swiped-left",(()=>{instafeedSliderMove(1,this.options.feedId)})),h.addListener(e,"swiped-right",(()=>{instafeedSliderMove(-1,this.options.feedId)}))),instafeedSettings.sliderState={},this.options.sliderBehavior>1&&(instafeedScrollIntervals[this.options.feedId]=setInterval((()=>{instafeedSliderMove(1,this.options.feedId)}),instafeedSlideSpeed)))},Instafeed.prototype.m=function(e){if(this.options.admin&&""!==e)return`<div class='instafeed-product-price'>${e}</div>`;if(!((e=Number(e))>0))return"";let t=e.toFixed(2);if("undefined"!=typeof Shopify){const i=Shopify.currency?.active||"USD";e*=Shopify.currency?.rate||1,t=new Intl.NumberFormat(void 0,{style:"currency",currency:i}).format(e)}return`<div class='instafeed-product-price'>${t}</div>`},Instafeed.prototype.v=function(e,t){let i='<div class="instafeed-product-reviews"><div class="instafeed-product-reviews-stars">';const s=Math.floor(e),n=e%1!=0;for(let e=0;e<5;e++)i+=e<s?'<div class="instafeed-product-reviews-star filled"></div>':e===s&&n?'<div class="instafeed-product-reviews-star half"></div>':'<div class="instafeed-product-reviews-star empty"></div>';return i+=`</div><span id="instafeed-product-reviews-count">${t>1?" | "+this.translate("REVIEWS").replace("{number}",t):"("+t+")"}</span></div>`,i},Instafeed.prototype.O=function(e){let t="",i=0;for(let s of e)if(i++,t+=this.M(s,i),i>=this.options.picturesNeeded||e.length===i)break;let s="";return i>instafeedSettings.sliderNumVisibleImages[this.options.feedId]&&this.options.sliderBehavior<=1&&7===parseInt(this.options.layout)&&(s=`\n <button aria-label='previous post' class="${d}-new-arrow ${d}-new-arrow-prev" onclick="instafeedSliderMove(-1,${this.options.feedId})" style="margin-left:10px;padding-right:2px;">❮</button>\n <button aria-label='next post' class="${d}-new-arrow ${d}-new-arrow-next" onclick="instafeedSliderMove(1,${this.options.feedId})" style="margin-right:10px;padding-left:2px;">❯</button>\n `),`\n <div class="${d}-new-layout-container" data-feed-id="${this.options.feedId}">\n <div class="${d}-new-layout-wrapper" data-feed-id="${this.options.feedId}">\n ${t}\n </div>\n ${s}\n </div>`},Instafeed.prototype.M=function(e,i){const s=parseInt(this.options.openIg,10),n=parseInt(this.options.showProducts,10);let a=e.images.standard_resolution,o=this.$(e.caption.text).substring(0,60),r=1===n&&4!==parseInt(this.options.format)&&e.hasOwnProperty("tagged_products")&&e.tagged_products.length>0&&this.o(this.options.charge)?this.W(e.tagged_products):"",l=r.length>0?"inline-product":"",c="video"===e.type&&parseInt(this.options.autoplay,10)>0&&this.o(this.options.charge)?`<video muted loop playsinline class="auto-loop-videos" data-feed-id="${this.options.feedId}" id="inline-video-${i}-${this.options.target}" preload="none" data-poster="${a.url}" src="${e.videos.standard_resolution.url}" style="border-radius:${this.options.corners};">video not supported</video>`:`<img style="border-radius:${this.options.corners};" class="${d}-lazy-image" src="//${t}/assets/img/placeholder.png" data-instafeed-src="${a.url}" alt="Instagram post with the caption: '${o}...'">`,u="inline-product"===l?`<div id="instafeed-product-container">${r}</div>`:`<div class="${d}-hover-icon">${this.V(e)}</div>`,h=s>0?"role='link' tabindex='0'":"",p=s>1?"aria-haspopup='dialog' aria-label='Instagram post opens in a popup'":"",f=0!==s?`<div class="${d}-hover-layer ${l}" data-feed-id="${this.options.feedId}-${e.type}" data-${d}-open-id="${i}-${this.options.target}" style="border-radius:${this.options.corners};">${u}</div>`:"";c+=`\n <div ${h} ${p} class="${d}-new-layout-item-container ${l} ${0===s?"no-cursor":""}" data-${d}-open-id="${i}-${this.options.target}">\n ${f}\n </div>`;const g=this.H(c,e,i);return`<div class="${d}-new-layout-item" data-feed-id="${this.options.feedId}">${g}</div>`},Instafeed.prototype.H=function(e,t){return 1===parseInt(this.options.openIg,10)?`<a href="${t.link}" onclick="instafeedEventTag('modal_open', ${this.options.feedId})" target="_blank" rel="noopener nofollow">${e}</a>`:e},Instafeed.prototype.W=function(e){let t=this.translate("SHOP_NOW"),i=this.options.admin?this.options.shopOrigin:window.location.hostname,s=this.options.admin?"/":Shopify.routes.root,n=this.options.admin?"":'style="pointer-events:all;"';return(e=e.slice(0,1)).map((e=>{let a=parseInt(e.variant)>0?"?variant="+parseInt(e.variant):"";return`\n <div class="instafeed-product-item">\n <a ${n} aria-label="Open product" href="//${i}${s}${e.handle}${a}">\n <img style="display:none;" src="${e.image}" class="instafeed-product-image" alt="${e.title}">\n </a>\n <div class="instafeed-product-info">\n <a ${n} aria-label="Open product" href="//${i}${s}${e.handle}${a}">\n <div class="instafeed-product-name">${e.title}</div>\n <div class="instafeed-tagged-buy-button-simple-popup" style="display:none;">${t}</div>\n </a>\n </div>\n </div>`})).join("")},Instafeed.prototype.V=function(e){if(this.o(this.options.charge)&&parseInt(this.options.likes)>0&&parseInt(this.options.apiVersion)>4)return`<svg style="height:16px;width:16px;" viewBox='0 0 512 512'><path d='M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z' fill='white'></path></svg>\n <span style="margin-left:5px;padding-bottom:2px;">${this.A(e.likes.count,1)}</span>`;{const i="video"===e.type?"video-icon-v3.png":"instagram-icon-v2.svg";return`<img class="${d}-lazy-image" src="//${t}/assets/img/placeholder.png" data-instafeed-src="https://${t}/assets/img/${i}" alt="">`}},Instafeed.prototype._=function(e,t=document.body,i=null){const s=document.createElement("template");for(s.innerHTML=e;s.content.firstChild;)t.insertBefore(s.content.firstChild,i)},Instafeed.prototype.C=function(){h.addListener(document,"swiped",(function(e){var t,i,s;(window.lastSwipeEventInstafeed||{}).target!==e.target&&(t=document.getElementById(instafeedSettings.modalOpen))&&e.target.className.includes("instafeed-simple-popup")&&(i="","up"===e.detail.dir?i=`.${d}-new-arrow.next`:"down"===e.detail.dir&&(i=`.${d}-new-arrow.prev`),i&&(s=t.querySelector(i))&&s.click(),window.lastSwipeEventInstafeed=e)}))},Instafeed.prototype.h=function(){const e=window.location.pathname.includes("/products/")?window.location.pathname.split("/products/")[1]:"",i=e&&e.length>0?`&handle=${e}`:"",s=this.options.overrides.length>0?`&overrides=${this.options.overrides}`:"",a=this.options.forceUpdate?1:0;return`https://${t}/${n}/v${this.options.apiVersion}?limit=${this.options.picturesNeeded}&account=${this.options.shopOrigin}&fu=${a}&fid=${this.options.feedId}&hash=${this.options.hash}&locale=${this.options.locale}${i}${s}`},Instafeed.prototype.I=function(e,t){return e.replace(/{{([\w[\].]+)}}/g,((e,i)=>{const s=this.S(t,i);return null!==s?s:""}))},Instafeed.prototype.S=function(e,t){const i=(t=t.replace(/\[(\w+)\]/g,".$1")).split(".");for(const t of i){if(null===e||!(t in e))return null;e=e[t]}return e},Instafeed.prototype.o=function(e){return parseInt(e)>0},Instafeed.prototype.l=function(e,t=!1){return t&&e>768?6:e<480?2:e<768?3:e<1024?4:e<=1200?5:6},Instafeed.prototype.$=function(e){return e&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")),e},Instafeed.prototype.A=function(e,t){const i=["k","M","G","T","P","E","Z","Y"];for(let s=i.length-1;s>=0;s--){const n=Math.pow(1e3,s+1);if(e<=-n||e>=n)return+(e/n).toFixed(t)+i[s]}return e},Instafeed.prototype.T=function(e){return new Date(1e3*e).toLocaleDateString(navigator.language,{month:"long",day:"numeric"})},Instafeed.prototype.u=function(e=!1){return!(!this.options.admin||this.options.desktopPreview||!1!==e)||(!this.options.admin||!this.options.desktopPreview||!1!==e)&&window.matchMedia("only screen and (max-width: 1024px)").matches},Instafeed.prototype.i=function(e,t){0===t.clientWidth?setTimeout((()=>{e.i(e,t)}),100):e.run()},Instafeed.prototype.t=function(){if(window.instafeedCssLoaded)return;if(document.currentScript&&!document.currentScript.src.includes(e))return!1;const i=document.createElement("link");i.href=`https://${t}/cdn/${d}-${s}.css`,i.type="text/css",i.rel="stylesheet",i.media="screen,print",document.head.appendChild(i),window.instafeedCssLoaded=!0},Instafeed.prototype.P=function(){if(instafeedPopupsPreloaded)return!1;if(this.F())return!1;instafeedPopupsPreloaded=!0;const e=new IntersectionObserver(((e,t)=>{e.forEach((e=>{e.isIntersecting&&(this.L(),t.unobserve(e.target))}))}),{threshold:.1}),t=document.querySelector("#insta-feed, .instafeed-shopify");t&&e.observe(t)},Instafeed.prototype.F=function(){if("connection"in navigator&&navigator.connection){const e=navigator.connection;if(!0===e.saveData)return!0;if("effectiveType"in e&&["slow-2g","2g","3g"].includes(e.effectiveType))return!0;if("downlink"in e&&"number"==typeof e.downlink&&e.downlink<1)return!0}return!1},Instafeed.prototype.L=function(){const e=document.querySelectorAll("div.lightbox-instagram");let t=0;e.forEach((e=>{let i=0;e.querySelectorAll("video, img").forEach((e=>{setTimeout((()=>{if("VIDEO"===e.tagName)e.setAttribute("preload","auto"),e.load();else{const t=e.getAttribute("data-instafeed-src");t&&(e.setAttribute("src",t),e.classList.add(d+"-lazy-image--handled"))}}),t),t+=200+i,i+=50}))}))},Instafeed.prototype.G=function(){const e=document.querySelectorAll("."+d+"-lazy-image");if(!e.length||!("IntersectionObserver"in window))return void e.forEach((e=>this.B(e)));const t=new IntersectionObserver(((e,t)=>{e.forEach((e=>{e.isIntersecting&&(this.U(),t.unobserve(e.target),this.B(e.target))}))}),{rootMargin:"100px 0px",threshold:.01});e.forEach((e=>{e.classList.contains(d+"-lazy-image--handled")||t.observe(e)}))},Instafeed.prototype.B=function(e){const t=e.dataset.instafeedSrc;e.classList.contains(d+"-lazy-image--handled")||(e.classList.add(d+"-lazy-image--handled"),e.onerror=()=>{e.classList.remove(d+"-lazy-image--handled")},e.src=t)},Instafeed.prototype.R=function(){const e=parseInt(this.options.autoplay);this.Y();const t=e=>e?.play(),i=e=>document.getElementById(`inline-video-${e}-${this.options.target}`),s={threshold:.01},n=document.querySelectorAll("video[data-poster]");let a=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){this.U();let t=e.target,i=t.getAttribute("data-poster");t.setAttribute("poster",i),a.unobserve(t)}}))}),s);if(n.forEach((e=>{a.observe(e)})),1===e&&this.o(this.options.charge)){const e=document.querySelectorAll('.auto-loop-videos[data-feed-id="'+this.options.feedId+'"]'),i=new IntersectionObserver(((e,i)=>{e.forEach((e=>{e.isIntersecting&&(t(e.target),i.unobserve(e.target))}))}),s);e.forEach((e=>i.observe(e)))}if(2===e&&this.o(this.options.charge)){const e=document.querySelectorAll(`.${d}-hover-layer[data-feed-id='${this.options.feedId}-video'], .${d}-overlay[data-feed-id='${this.options.feedId}-video']`);e.forEach((e=>{e.style.opacity="1",e.style.background="transparent"})),e.forEach((e=>{const s=s=>{const n=e.getAttribute(`data-${d}-open-id`).split("-")[0],a=i(n);var o;s?(t(a),e.style.opacity=0):(o=a,o?.pause(),e.style.opacity=1)};h.addListener(e,"mouseover",(()=>s(!0))),h.addListener(e,"mouseout",(()=>s(!1))),h.addListener(e,"touchstart",(()=>s(!0))),h.addListener(e,"touchend",(()=>s(!1)))}))}},Instafeed.prototype.Y=function(){Array.from(document.querySelectorAll('video[id^="video-"]')).filter((e=>e.id.includes(this.options.target))).forEach((e=>{e.onplay=()=>{e.muted=!instafeedSettings.sound,e.id.split("-").pop(),null===instafeedSettings.modalOpen&&e.pause()}}))},Instafeed.prototype.U=function(){if(instafeedSettings.feedViewed?.[this.options.feedId])return!1;instafeedSettings.feedViewed[this.options.feedId]=!0,instafeedEventTag("feed_view",this.options.feedId)},Instafeed}();!function e(){function t(e,t=!1){const s=document.getElementById(e);if(s){let e=document.getElementById("video-"+i);e&&e.pause(),s.style.setProperty("display","none","important"),s.style.opacity=0,t||document.body.classList.remove("instafeed-body-no-scroll"),instafeedSettings.modalOpen=null,instafeedSettings.previouslyFocusedElement&&instafeedSettings.previouslyFocusedElement.focus(),h.removeListener(window,"keydown",instafeedTrapFocusHandler,!1),h.removeListener(document.body,"touchmove",instafeedTouchScrollListener,{passive:!1})}}var i;h.addListener(document,"click",(function(e){var s,n;if(!e.target||!e.target.hasAttribute(`data-${d}-open-id`)&&!e.target.hasAttribute(`data-${d}-close-id`))return!1;if(s=e.target.hasAttribute(`data-${d}-open-id`)?e.target.getAttribute(`data-${d}-open-id`):e.target.getAttribute(`data-${d}-close-id`),n=document.getElementById("video-"+s),e.target.hasAttribute(`data-${d}-open-id`)){const e=document.getElementById(s);if(document.activeElement.classList.contains(`${d}-new-layout-item-container`)&&(instafeedSettings.previouslyFocusedElement=document.activeElement),e){let i=!1;if(instafeedSettings.modalOpen&&(i=!0,t(instafeedSettings.modalOpen,i)),instafeedSettings.modalOpen=s,e.style.setProperty("display","flex","important"),i?e.style.opacity=1:requestAnimationFrame((()=>{e.style.opacity=1})),document.body.classList.add("instafeed-body-no-scroll"),e.querySelector(".instafeed-simple-popup")&&h.addListener(document.body,"touchmove",instafeedTouchScrollListener,{passive:!1}),n){const e=document.getElementById("video-spinner-"+s);e.style.display="block",n.play().then((()=>{e.style.display="none"}))}(function a(e){let t=`.${d}-new-arrow, .${d}-close-button`;window.matchMedia("only screen and (max-width: 1024px)").matches&&(t=`.${d}-close-button, .tagged-buy-button, .${d}-sound-button, .${d}-post-control-button`);const{firstFocusableElement:i,lastFocusableElement:s}=function n(e,t){const i=e.querySelectorAll(t);return{firstFocusableElement:i[0],lastFocusableElement:i[i.length-1]}}(e,t);instafeedTrapFocusHandler=e=>{!function t(e,i,s){("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?e.target===i&&(s.focus(),e.preventDefault()):e.target===s&&(i.focus(),e.preventDefault()))}(e,i,s)},h.addListener(window,"keydown",instafeedTrapFocusHandler,!1),i&&i.focus()})(e),instafeedEventTag("modal_open",0)}}e.target.hasAttribute(`data-${d}-close-id`)&&t(s),i=s})),h.addListener(window,"keydown",(e=>{var i,s,n;const{key:a}=e;if(!document.getElementById("video-"+instafeedSettings.modalOpen)||" "!==a&&"Spacebar"!==a&&"Space"!==e.code||"INPUT"===e.target.tagName||"TEXTAREA"===e.target.tagName||(e.preventDefault(),instafeedTogglePlay()),"Escape"===a)instafeedSettings.modalOpen&&t(instafeedSettings.modalOpen);else if("Enter"===e.key){const e=document.activeElement;("dialog"===e.getAttribute("aria-haspopup")||e.classList.contains(`${d}-post-control-button`)||e.classList.contains(`${d}-sound-button`)||e.classList.contains(`${d}-video-control`)||e.classList.contains(`${d}-close-button`)||e.classList.contains(`${d}-carousel-arrow`)||e.classList.contains(`${d}-new-arrow`))&&e.click()}(i=document.getElementById(instafeedSettings.modalOpen))&&(s="","ArrowLeft"===a?s=`.${d}-new-arrow.prev`:"ArrowRight"===a&&(s=`.${d}-new-arrow.next`),s&&(n=i.querySelector(s))&&n.click())}))}(),function e(){window.instafeedEventTag=function(e,t){if("undefined"==typeof Shopify||!1===instafeedSettings.analyticsViewsClicks)return;const i={event:e,fid:t,shop:Shopify.shop,appVersion:s};fetch("https://tr.nfcube.com/index/v1",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}).catch((e=>console.error("Error:",e)))}}(),function e(){window.instafeedAddToCart=(e,t,i)=>{const s=e.querySelector("button");s.innerHTML='<div class="instafeed-cart-spinner"></div>';let n=e.querySelector(".instafeed-cart-icon");n||(n=document.createElement("div"),n.className="instafeed-cart-icon",n.style.cursor="pointer",n.setAttribute("aria-label","View Cart"),n.onclick=e=>{e.stopPropagation(),e.preventDefault(),window.location.href="/cart"},e.appendChild(n)),fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:t,quantity:1}]})}).then((e=>e.json())).then((()=>{fetch("/cart.js").then((e=>e.json())).then((e=>{const t=e.item_count;s.textContent=i,n.setAttribute("data-count",t),n.classList.add("instafeed-cart-icon-animate"),setTimeout((()=>{n.classList.remove("instafeed-cart-icon-animate")}),300)})).catch((e=>{console.error("Error fetching cart:",e)}))})).catch((e=>{console.error("Error:",e)}))}}(),function e(){window.instafeedToggleSound=e=>{var t=e.getAttribute("data-video-id"),i=document.getElementById(t);i.muted=!i.muted,instafeedSettings.sound=!i.muted,document.querySelectorAll(".instafeed-sound-button").forEach((function(e){e.classList.toggle("sound-on"),e.setAttribute("aria-label",i.muted?"Mute":"Unmute")}))}}(),function e(){window.instafeedTogglePlay=()=>{const e="video-"+instafeedSettings.modalOpen,t=document.getElementById(e),i=document.querySelector(`.instafeed-video-control[data-video-id="${e}"]`);t.paused?(t.play(),i.setAttribute("aria-label","Play"),i.classList.remove("paused")):(t.pause(),i.setAttribute("aria-label","Pause"),i.classList.add("paused"))}}(),function e(){window.instafeedCarouselArrow=function(e,t,i,s){const n=instafeedSettings.carousels[t][i],a=n.length,o=e.closest("div.instafeed-post-image");if(o){const e=o.querySelector("img");if(e&&a>0){const o=e.src;let d=n.indexOf(o);-1===d&&(d=0),d="left"===s?0===d?a-1:d-1:d===a-1?0:d+1,document.getElementById(`instafeed-carousel-dots-${t}-${i}`)?.querySelector(".instafeed-carousel-dot.active")?.classList.remove("active"),document.getElementById(`instafeed-carousel-dot-${t}-${i}-${d}`)?.classList.add("active"),e.src=n[d]}}}}(),function e(){window.instafeedSliderMove=(e,t=0)=>{instafeedSettings.sliderState[t]||(instafeedSettings.sliderState[t]={currentTransform:0,minTransform:0});const i=instafeedSettings.sliderState[t],s=Math.ceil(instafeedSettings.totalImages[t]/instafeedSettings.sliderNumVisibleImages[t])-1,n=parseFloat(instafeedSettings.sliderRowSize[t]*s).toFixed(3);i.currentTransform+=e*-instafeedSettings.sliderStepSize[t],i.currentTransform=parseFloat(i.currentTransform.toFixed(3)),i.currentTransform<-n&&(i.currentTransform=i.minTransform),i.currentTransform>i.minTransform&&(i.currentTransform=-n);const a=document.querySelector(`.${d}-new-layout-wrapper[data-feed-id="${t}"]`);let o=i.currentTransform;"rtl"===document.documentElement.dir&&"81c182-2.myshopify.com"!==(this.options&&this.options.shopOrigin||"undefined"!=typeof Shopify&&Shopify.shop)&&(o=Math.abs(i.currentTransform)),a&&(a.style.transform=`translateX(${o}px)`)}}(),window.instafeedSettings={},instafeedSettings.version=s,instafeedSettings.sound=!1,instafeedSettings.analyticsViewsClicks=!1,instafeedSettings.modalOpen=null,instafeedSettings.feedViewed={},instafeedSettings.previouslyFocusedElement=null,instafeedSettings.carousels={},instafeedSettings.sliderRowSize={},instafeedSettings.sliderStepSize={},instafeedSettings.sliderNumVisibleImages={},instafeedSettings.sliderState={},instafeedSettings.totalImages={},window.instafeedFeedsLoaded=window.instafeedFeedsLoaded||[],window.instafeedCssLoaded=window.instafeedCssLoaded||!1,window.instafeedScrollIntervals=window.instafeedScrollIntervals||{},window.instafeedSlideSpeed=window.instafeedSlideSpeed||6e3,window.instafeedPopupsPreloaded=window.instafeedPopupsPreloaded||!1,window.instafeedTrapFocusHandler=window.instafeedTrapFocusHandler||!1,window.instafeedTouchScrollListener=window.instafeedTouchScrollListener||function(e){e.preventDefault()},function(e,t){"use strict";function i(e,i,s){for(;e&&e!==t.documentElement;){var n=e.getAttribute(i);if(n)return n;e=e.parentNode}return s}"function"!=typeof e.CustomEvent&&(e.CustomEvent=function(e,i){i=i||{bubbles:!1,cancelable:!1,detail:void 0};var s=t.createEvent("CustomEvent");return s.initCustomEvent(e,i.bubbles,i.cancelable,i.detail),s},e.CustomEvent.prototype=e.Event.prototype),t.addEventListener("touchstart",(function(e){"true"!==e.target.getAttribute("data-swipe-ignore")&&(r=e.target,d=Date.now(),s=e.touches[0].clientX,n=e.touches[0].clientY,a=0,o=0,l=e.touches.length)}),!1),t.addEventListener("touchmove",(function(e){if(s&&n){var t=e.touches[0].clientX,i=e.touches[0].clientY;a=s-t,o=n-i}}),!1),t.addEventListener("touchend",(function(e){var c,u,h,p,f,g,m;r===e.target&&(c=parseInt(i(r,"data-swipe-threshold","20"),10),u=i(r,"data-swipe-unit","px"),h=parseInt(i(r,"data-swipe-timeout","500"),10),p=Date.now()-d,f="",g=e.changedTouches||e.touches||[],"vh"===u&&(c=Math.round(c/100*t.documentElement.clientHeight)),"vw"===u&&(c=Math.round(c/100*t.documentElement.clientWidth)),Math.abs(a)>Math.abs(o)?Math.abs(a)>c&&p<h&&(f=a>0?"swiped-left":"swiped-right"):Math.abs(o)>c&&p<h&&(f=o>0?"swiped-up":"swiped-down"),""!==f&&(m={dir:f.replace(/swiped-/,""),touchType:(g[0]||{}).touchType||"direct",fingers:l,xStart:parseInt(s,10),xEnd:parseInt((g[0]||{}).clientX||-1,10),yStart:parseInt(n,10),yEnd:parseInt((g[0]||{}).clientY||-1,10)},r.dispatchEvent(new CustomEvent("swiped",{bubbles:!0,cancelable:!0,detail:m})),r.dispatchEvent(new CustomEvent(f,{bubbles:!0,cancelable:!0,detail:m}))),s=null,n=null,d=null)}),!1);var s=null,n=null,a=null,o=null,d=null,r=null,l=0}(window,document);if (document.getElementById('insta-feed') !== null) { var feed = new Instafeed({"account":"cosmetic_cl","hash":"1aa1e34abcd6902c364a4c5bf2bcb4df","key":"instafeed-d30e0b3169da9578fd43d9bff167ddb0","apiVersion":6,"shopOrigin":"cosmetic-chile.myshopify.com","title":"INSTAGRAM","openIg":3,"space":0,"corners":0,"likes":1,"showFollowers":0,"showProducts":0,"layout":6,"format":0,"sliderBehavior":0,"instagramLinks":0,"loadingAnimation":0,"showPrices":0,"showReviews":0,"viewsAndClicks":0,"addToCart":0,"filter":"","taggedPosts":0,"columns":5,"columnsMobile":5,"rows":1,"rowsMobile":1,"autoplay":0,"autoLayout":0,"rowsLimit":4,"abTest":1,"feedId":0,"charge":0}); feed.run(); }return instafeedLoad;})();window.addEventListener('resize',(a=>{let b;return()=>{clearTimeout(b),b=setTimeout(()=>{window.innerWidth!==a&&(a=window.innerWidth,instafeedApp())},100)}})(window.innerWidth));document.addEventListener('shopify:section:load',()=>{instafeedApp()});