var instafeedApp=(function instafeedLoad(){/*!
* Copyright (c) 2023 Mintt Studio
* Unauthorized copying, modification, or distribution is prohibited.
* For inquiries, contact: business@minttstudio.com
*/const e="instafeed.nfcube.com",t="cdn.nfcube.com",i="9.4.2",s=!1;var n=function(){function s(t){this.translations={en:{SHOP_NOW:"Shop now",TAG_PRODUCTS:"Tag products",VIEW_ON_INSTAGRAM:"View on Instagram",HANG_ON:"Hang on we are processing your feed ☕",DELETE:"Delete"},"pt-PT":{SHOP_NOW:"Comprar agora",TAG_PRODUCTS:"Identificar produtos",VIEW_ON_INSTAGRAM:"Ver no Instagram",HANG_ON:"Aguarde, estamos a processar o seu feed ☕",DELETE:"Apagar"},"pt-BR":{SHOP_NOW:"Comprar agora",TAG_PRODUCTS:"Marcar produtos",VIEW_ON_INSTAGRAM:"Ver no Instagram",HANG_ON:"Aguarde, estamos processando seu feed ☕",DELETE:"Delete"},es:{SHOP_NOW:"Comprar ahora",TAG_PRODUCTS:"Etiquetar productos",VIEW_ON_INSTAGRAM:"Ver en Instagram",HANG_ON:"Espera, estamos procesando tu feed ☕",DELETE:"Eliminar"},"ja-JP":{SHOP_NOW:"今すぐ購入",TAG_PRODUCTS:"商品にタグを付ける",VIEW_ON_INSTAGRAM:"Instagramで見る",HANG_ON:"ちょっと待ってください。フィードを処理しています ☕",DELETE:"削除"},fr:{SHOP_NOW:"Acheter",TAG_PRODUCTS:"Étiqueter les produits",VIEW_ON_INSTAGRAM:"Afficher sur Instagram",HANG_ON:"Attendez, nous traitons votre flux ☕",DELETE:"Supprimer"},de:{SHOP_NOW:"Jetzt shoppen",TAG_PRODUCTS:"Produkte taggen",VIEW_ON_INSTAGRAM:"Auf Instagram ansehen",HANG_ON:"Warte, wir verarbeiten deinen Feed ☕",DELETE:"Löschen"},sv:{SHOP_NOW:"Handla nu",TAG_PRODUCTS:"Tagga produkter",VIEW_ON_INSTAGRAM:"Visa på Instagram",HANG_ON:"Vänta, vi bearbetar ditt flöde ☕",DELETE:"Radera"},it:{SHOP_NOW:"Acquista ora",TAG_PRODUCTS:"Tagga prodotti",VIEW_ON_INSTAGRAM:"Visualizza su Instagram",HANG_ON:"Aspetta, stiamo elaborando il tuo feed ☕",DELETE:"Elimina"},da:{SHOP_NOW:"Shop nu",TAG_PRODUCTS:"Tag produkter",VIEW_ON_INSTAGRAM:"Se på Instagram",HANG_ON:"Vent, vi behandler dit feed ☕",DELETE:"Slet"},nl:{SHOP_NOW:"Nu winkelen",TAG_PRODUCTS:"Producten taggen",VIEW_ON_INSTAGRAM:"Bekijk op Instagram",HANG_ON:"Even geduld, we verwerken je feed ☕",DELETE:"Verwijderen"}},this.availableLanguages=["en","es","de","fr","sv","da","it","nl","ja-JP","pt-PT","pt-BR"],this.options={target:"insta-feed",locale:"en",forceUpdate:!1,picturesLoaded:0,picturesNeeded:0,admin:window.location.hostname===e},"undefined"!=typeof Shopify&&Shopify.locale&&this.availableLanguages.includes(Shopify.locale)&&(this.options.locale=Shopify.locale),Object.assign(this.options,t),this.options.admin||this._loadCss(),this._loadRounderCornersCssHack();document.querySelectorAll(".instafeed-lightbox").forEach((e=>{e.parentNode.removeChild(e)}))}return s.prototype.translate=function(e){const t=this.options.locale;return this.translations[t]&&this.translations[t][e]?this.translations[t][e]:e},s.prototype.run=function(){var t=document.getElementById(this.options.target);if(0===t.clientWidth&&parseInt(this.options.autoLayout)>0)return this._checkClientWidth(this,t),!1;parseInt(this.options.autoLayout)>0?(this.options.picturesNeeded=this.options.rows*this._getAutoColumns(t.clientWidth),this._isMobileDevice()&&this._validateCharge(this.options.charge)&&(this.options.picturesNeeded=this.options.rowsMobile*this._getAutoColumns(t.clientWidth))):this._isMobileDevice()&&this._validateCharge(this.options.charge)?this.options.picturesNeeded=this.options.rowsMobile*this.options.columnsMobile:this.options.picturesNeeded=this.options.rows*this.options.columns;const i=this.options.admin?"<br/><em>"+this.translate("HANG_ON")+"</em>":"";t.innerHTML=`<img src="//${e}/assets/img/loader.gif" style="position:relative;height:11px;width:16px;" alt="loading bar" />${i}`;const s=this;return fetch(this._buildUrl()).then((e=>{if(!e.ok)throw new Error(`HTTP error: ${e.status} ${e.statusText}`);return e.json()})).then((e=>{s.parse(e)})).catch((e=>{console.log("Error:",e.message)})),!0},s.prototype.parse=function(t){var i,s,n,o,a,r,d;const l=document.getElementById(this.options.target);if(!l)return console.error("Target element not found"),!1;if("object"!=typeof t)throw new Error("Invalid JSON response");const{meta:{code:p,error_message:c}}=t,u=parseInt(p,10);if(l.innerHTML="",204===u||200!==u)return this.options.admin&&(l.innerHTML=204===u?c:`⚠️ ${c}`,"function"==typeof this.options.error&&this.options.error.call(this,t)),!1;"function"==typeof this.options.success&&this.options.success.call(this,t),r=t.data,i="",s="";var h="standard_resolution",g=parseInt(100-this.options.space),m=0,f=0;f=m=parseInt(this.options.autoLayout)>0?parseFloat(100/this._getAutoColumns(l.clientWidth)).toFixed(6):this._isMobileDevice()&&this._validateCharge(this.options.charge)?parseFloat(100/this.options.columnsMobile).toFixed(6):parseFloat(100/this.options.columns).toFixed(6),parseInt(this.options.layout)>=2&&(f=parseFloat(m*(16/9)).toFixed(6));var v,w="",y="";this._validateCharge(this.options.charge)&&parseInt(this.options.likes)>0&&4!==parseInt(this.options.apiVersion)&&(w="<div class='likes'><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='white'></path></svg></span>{{likes}}\x3c!--<span style='width: 10px;padding-right: 5px;padding-left: 5px;'><svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'><path d='M416 192c0-88.4-93.1-160-208-160S0 103.6 0 192c0 34.3 14.1 65.9 38 92-13.4 30.2-35.5 54.2-35.8 54.5-2.2 2.3-2.8 5.7-1.5 8.7S4.8 352 8 352c36.6 0 66.9-12.3 88.7-25 32.2 15.7 70.3 25 111.3 25 114.9 0 208-71.6 208-160zm122 220c23.9-26 38-57.7 38-92 0-66.9-53.5-124.2-129.3-148.1.9 6.6 1.3 13.3 1.3 20.1 0 105.9-107.7 192-240 192-10.8 0-21.3-.8-31.7-1.9C207.8 439.6 281.8 480 368 480c41 0 79.1-9.2 111.3-25 21.8 12.7 52.1 25 88.7 25 3.2 0 6.1-1.9 7.3-4.8 1.3-2.9.7-6.3-1.5-8.7-.3-.3-22.4-24.2-35.8-54.5z' fill='white'></path></svg></span> {{comments}}--\x3e</div>",y="<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> {{likes}}</span> \x3c!--<span>&#10078; {{comments}}</span>--\x3e");var b="<div class='instafeed-container' style='width:"+m+"%;padding-top:"+f+"%;'>{{containerContent}}"+("<div data-instafeed-open-id='{{id}}-"+this.options.target+"' style='width:"+g+"%;height:"+g+"%;' class='instafeed-overlay {{video}}'>"+w+"</div>")+"</div>",_="",I="";for(1===parseInt(this.options.openIg)?b="<a href='{{link}}' target='_blank' aria-label='@{{username}} on Instagram (opens in new window)' rel='noopener'>"+b+"</a>":3===parseInt(this.options.openIg)&&(this.options.admin&&(I="<div class='products-tagging'><a id='search' data-picture-id='{{fullId}}'><button class='btn primary'>"+this.translate("TAG_PRODUCTS")+"</button><</a></div><div class='tagging-message' id='tagging-{{fullId}}'></div>"),_="<div tabindex='0' class='instafeed-lightbox' data-instafeed-close-id='{{id}}-"+this.options.target+"' id='{{id}}-"+this.options.target+"'><div tabindex='0' role='button' aria-label='previous post' class='instafeed-new-arrow prev' data-instafeed-open-id='{{minusId}}-"+this.options.target+"'></div><div class='lightbox-instagram' role='dialog' aria-labelledby='{{id}}-"+this.options.target+"' aria-modal='true'><div class='instafeed-post-image'>{{imageFullHtml}}</div><div class='description'><div class='instafeed-header'><div class='instafeed-header-left-section'><div class='instafeed-header-logo'><img src='//"+e+"/assets/img/placeholder.gif' class='profile-picture js-lazy-image' data-src='{{userPicture}}' alt='instagram profile picture' /></div><a class='instafeed-fullname' href='https://www.instagram.com/{{username}}/' target='_blank' aria-label='@{{username}} on Instagram (opens in new window)' rel='noopener'><div class='instafeed-fullname' >{{username}}</div></a></div><div tabindex='0' role='button' class='instafeed-close-button' aria-label='close button' data-instafeed-close-id='{{id}}-"+this.options.target+"' id='close-button-url'>&nbsp;</div></div><div class='sub-header'><div class='post-engagement'>"+y+"</div><div class='arrows'><object><img tabindex='0' src='//"+e+"/assets/img/placeholder.gif' data-instafeed-open-id='{{minusId}}-"+this.options.target+"' alt='previous image' /></object><object><img tabindex='0' src='//"+e+"/assets/img/placeholder.gif' alt='next image' data-instafeed-open-id='{{plusId}}-"+this.options.target+"' /></object></div></div><div class='instafeed-content-wrapper'><div class='box-content'>"+I+" {{taggedProduct}}</div><div class='instafeed-caption'>{{caption}}</div></div><div class='post-date'><span style='padding-left:8px;'>{{date}}</span> • <a href='{{link}}' target='_blank' aria-label='@{{username}} on Instagram (opens in new window)' rel='noopener' class='follow'>"+this.translate("VIEW_ON_INSTAGRAM")+"</a></div></div></div><div tabindex='0' role='button' aria-label='next post' class='instafeed-new-arrow next' data-instafeed-open-id='{{plusId}}-"+this.options.target+"'></div></div>"),n=0,d=r.length;n<d;n++){o=r[n];var E="",S=o.user.followers,T=o.user.profile_picture;if("object"!=typeof(a=o.images[h]))throw new Error("No image found for resolution: "+h+".");if(this.options.picturesLoaded++,o.hasOwnProperty("tagged_products")&&o.tagged_products.length>0&&this._validateCharge(this.options.charge)){var N,O,A=this.options.admin,L=this.options.shopOrigin,x=this.options.target;o.tagged_products.forEach((t=>{if(t.translations&&this.options.locale in t.translations){let e=this.options.locale;"title"in t.translations[e]&&""!==t.translations[e].title.trim()&&(t.title=t.translations[e].title)}A?(N="<div class='product-title'><a href='https://"+L+"/"+t.handle+"' target='_blank' rel='noopener'>"+t.title+"</a><a href='#"+this.options.picturesLoaded+"-"+x+"' id='delete-product' data-picture-id='"+o.id+"' data-tagging-id='"+t.id+"'><div class='tagged-buy-button'>"+this.translate("DELETE")+"</div></a></div>",O="<div><a href='https://"+L+"/"+t.handle+"' target='_blank' rel='noopener'><img class='js-lazy-image' src='https://"+e+"/assets/img/placeholder.gif' data-src='"+t.image+"' alt='product image' /></a></div>"):(N="<div class='product-title'><a href='//"+window.location.hostname+Shopify.routes.root+t.handle+"'>"+t.title+"</a><a href='//"+window.location.hostname+Shopify.routes.root+t.handle+"'><button class='tagged-buy-button' tabindex='-1'>"+this.translate("SHOP_NOW").toUpperCase()+"</button></a></div>",O="<div><a href='//"+window.location.hostname+Shopify.routes.root+t.handle+"'><img class='js-lazy-image' src='https://"+e+"/assets/img/placeholder.gif' data-src='"+t.image+"' alt='product image' /></a></div>"),E+="<div class='tagged-products' id='"+o.id+"-"+t.id+"'><div class='tagged-products-image'>"+O+"</div><div class='tagged-products-buttons'>"+N+"</div></div>"}))}var C="";"video"===o.type&&o.hasOwnProperty("videos")?(C="instafeed-video",imageFullHtml='<video controls muted playsinline id="video-'+this.options.picturesLoaded+"-"+this.options.target+'" preload="none" poster="'+a.url+'" src="'+o.videos.standard_resolution.url+'" style="display:block;"></video>'):imageFullHtml="<img class='js-lazy-image' src='//"+e+"/assets/img/placeholder.gif' data-src='"+o.images.standard_resolution.url+"' alt='Instagram post with the caption: "+this._escapeHtml(this._getObjectProperty(o,"caption.text").substring(0,64))+"...' />",v="video"===o.type&&parseInt(this.options.autoplay)>0?'<video loop playsinline muted class="auto-loop-videos" id="inline-video-'+this.options.picturesLoaded+"-"+this.options.target+'" preload="none" poster="'+a.url+'" src="'+o.videos.standard_resolution.url+'" style="display:block;width:'+g+"%;height:"+g+'%;"></video>':"<img class='js-lazy-image' style='width:"+g+"%;height:"+g+"%;border-radius:"+this.options.corners+"px;' src='//"+e+"/assets/img/placeholder.gif' data-src='"+a.url+"' alt='Instagram post with the caption: "+this._escapeHtml(this._getObjectProperty(o,"caption.text").substring(0,64))+"...' />";var M=this.options.picturesLoaded-1;1===this.options.picturesLoaded&&(M=Math.min(this.options.picturesNeeded,r.length));var P=this.options.picturesLoaded===this.options.picturesNeeded||this.options.picturesLoaded===r.length?1:this.options.picturesLoaded+1;if(i+=this._makeTemplate(b,{model:o,id:this.options.picturesLoaded,fullId:o.id,minusId:M,plusId:P,link:o.link,image:a.url,video:C,username:o.user.username,fullName:o.user.full_name,userPicture:5===this.options.apiVersion?o.user.profile_picture:"https://"+e+"/assets/img/logo-instagram-transparent.png",imageFullHtml:imageFullHtml,taggedProduct:E,containerContent:v,date:this._timeConverter(o.created_time),caption:this._escapeHtml(this._getObjectProperty(o,"caption.text")),likes:this._shortenLargeNumber(o.likes.count,1),comments:this._shortenLargeNumber(o.comments.count,1),location:this._getObjectProperty(o,"location.name")}),s+=this._makeTemplate(_,{model:o,id:this.options.picturesLoaded,fullId:o.id,minusId:M,plusId:P,link:o.link,image:a.url,video:C,username:o.user.username,fullName:o.user.full_name,userPicture:5===this.options.apiVersion?o.user.profile_picture:"https://"+e+"/assets/img/logo-instagram-transparent.png",imageFullHtml:imageFullHtml,taggedProduct:E,date:this._timeConverter(o.created_time),caption:this._escapeHtml(this._getObjectProperty(o,"caption.text")),likes:this._shortenLargeNumber(o.likes.count,1),comments:this._shortenLargeNumber(o.comments.count,1),location:this._getObjectProperty(o,"location.name")}),this.options.picturesLoaded>=this.options.picturesNeeded||t.data.length===this.options.picturesLoaded)break}if(l.innerHTML="",this._appendHtmlToParent(s),4!==parseInt(this.options.layout)&&5!==parseInt(this.options.layout)){const e=document.createDocumentFragment();this._appendHtmlToParent(i,e),l.appendChild(e)}else window.instafeedSliderNumVisibleImages=parseInt(100/m),window.instafeedSliderTotalImages=this.options.picturesLoaded,l.innerHTML+=this._generateCarouselHTML(r,this._escapeHtml),this._setNumVisibleImages(),l.addEventListener("swiped-left",(e=>{instafeedSliderMove(1,this.options.feedId)})),l.addEventListener("swiped-right",(e=>{instafeedSliderMove(-1,this.options.feedId)}));return this._setFeedHeader(S,T),this._changeMobileDOM(),this._enableLazyLoading(),this._observeAndPlayVideos(),!0},s.prototype._changeMobileDOM=function(){if(this._isMobileDevice(!0)){document.querySelectorAll(".instafeed-post-image").forEach((e=>{const t=e.nextElementSibling,i=t?t.querySelector(".instafeed-header"):null;i&&e.parentNode.insertBefore(i,e)}))}},s.prototype._setFeedHeader=function(e,t){const i=document.getElementById(this.options.target),s=this._validateCharge(this.options.charge)&&5===parseInt(this.options.apiVersion)&&(1===parseInt(this.options.showFollowers)||3===parseInt(this.options.showFollowers)),n=this._validateCharge(this.options.charge)&&5===parseInt(this.options.apiVersion)&&parseInt(this.options.showFollowers)>1,o=s?`<h3>${this._shortenLargeNumber(e)} followers</h3>`:"",a=this.options.title.length>0||"undefined"!=typeof instafeedLocalTitle&&instafeedLocalTitle.length>0;let r="";if(n&&(r+=`<img id="instafeed-header-logo" alt="Instagram logo" src=${t} />`),a){r+=`<h2 style="${s?"margin-bottom:0;":""}">${"undefined"!=typeof instafeedLocalTitle&&instafeedLocalTitle.length>0?instafeedLocalTitle:this.options.title}</h2>`}s&&(r+=o),(a||s)&&this._appendHtmlToParent(r,i,i.firstChild)},s.prototype._setNumVisibleImages=function(){const e=document.getElementById(this.options.target).offsetWidth,t=e/instafeedSliderNumVisibleImages,i=5===parseInt(this.options.layout)?parseFloat(t*(16/9)).toFixed(6):t;document.querySelectorAll(".instafeed-new-carousel-item").forEach((e=>{e.style.width=`${t}px`,e.style.height=`${i}px`}));const s=document.querySelector(".instafeed-new-carousel-container");s.style.width=`${e}px`,s.style.height=`${i}px`,window.instafeedSliderStepSize=instafeedSliderNumVisibleImages*t},s.prototype._generateCarouselHTML=function(e){let t="",i=0;for(let s of e)i++,t+=this._imageTemplate(s,i);let s="";return i>instafeedSliderNumVisibleImages&&(s=`\n            <button class="instafeed-new-arrow instafeed-new-arrow-prev" onclick="instafeedSliderMove(-1,${this.options.feedId})" style="margin-left:10px;padding-right:2px;">&#10094;</button>\n            <button class="instafeed-new-arrow instafeed-new-arrow-next" onclick="instafeedSliderMove(1,${this.options.feedId})" style="margin-right:10px;padding-left:2px;">&#10095;</button>\n        `),`\n      <div class="instafeed-new-carousel-container">\n          <div class="instafeed-new-carousel-wrapper" data-feed-id="${this.options.feedId}">\n              ${t}\n          </div>\n          ${s}\n      </div>`},s.prototype._imageTemplate=function(t,i){let s=t.images.standard_resolution,n=parseInt(100-this.options.space,10),o=this._escapeHtml(t.caption.text).substring(0,64),a="";const r=this._generateIcon(t);a="video"===t.type&&parseInt(this.options.autoplay,10)>0?`\n      <video loop playsinline muted class="auto-loop-videos" id="inline-video-${i}-${this.options.target}" preload="none" poster="${s.url}" src="${t.videos.standard_resolution.url}" style="height:${n}%;width:${n}%;"></video>\n      <div class="instafeed-new-carousel-item-container" style="height:${n}%;width:${n}%;" data-instafeed-open-id="${i}-${this.options.target}">\n        <div class="instafeed-hover-layer" data-instafeed-open-id="${i}-${this.options.target}">\n          <span class="instafeed-hover-icon">${r}</span>\n        </div>\n      </div>`:`\n      <img style="height:${n}%;width:${n}%;border-radius:${this.options.corners}px;" class="js-lazy-image" src="//${e}/assets/img/placeholder.gif" data-src="${s.url}" alt="Instagram post with the caption: '${o}...'">\n      <div class="instafeed-new-carousel-item-container" style="height:${n}%;width:${n}%;" data-instafeed-open-id="${i}-${this.options.target}">\n        <div class="instafeed-hover-layer" data-instafeed-open-id="${i}-${this.options.target}" style="border-radius:${this.options.corners}px;">      \n          <div class="instafeed-hover-icon">${r}</div>\n        </div>\n      </div>`;return`\n        <div class="instafeed-new-carousel-item">\n            ${this._generatePostUrl(a,t,i)}\n        </div>`},s.prototype._generatePostUrl=function(e,t,i){const s=parseInt(this.options.openIg,10);return 1===s?`<a href="${t.link}" target="_blank" rel="noopener">${e}</a>`:3===s?`${e}`:e},s.prototype._generateIcon=function(t){if(parseInt(this.options.likes)>0&&5===parseInt(this.options.apiVersion))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._shortenLargeNumber(t.likes.count,1)}</span>`;{const i="video"===t.type?"video-icon-v2.svg":"instagram-icon-v2.svg";return`<img src="//${e}/assets/img/${i}" style="height:20px;width:20px;" alt="hover icon">`}},s.prototype._appendHtmlToParent=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)},s.prototype._buildUrl=function(){let t,i,s="";if(i=this.options.forceUpdate?1:0,window.location.pathname.includes("/products/")){let e=window.location.pathname.substring(window.location.pathname.indexOf("/products/")+10);e.length>0&&(s="&handle="+e)}return t="https://"+e+"/feed/v"+this.options.apiVersion+"?limit="+this.options.picturesNeeded+"&account="+this.options.shopOrigin+"&fu="+i+"&fid="+this.options.feedId+"&hash="+this.options.hash+"&locale="+this.options.locale+s+"&admin="+ +this.options.admin,t},s.prototype._makeTemplate=function(e,t){return e.replace(/{{([\w[\].]+)}}/g,((e,i)=>{const s=this._getObjectProperty(t,i);return null!==s?s:""}))},s.prototype._getObjectProperty=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},s.prototype._validateCharge=function(e){return parseInt(e)>0},s.prototype._getAutoColumns=function(e){return e<480?2:e<768?3:e<1024?4:e<=1200?5:6},s.prototype._escapeHtml=function(e){return e&&(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")),e},s.prototype._shortenLargeNumber=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},s.prototype._timeConverter=function(e){return new Date(1e3*e).toLocaleDateString(navigator.language,{month:"long",day:"numeric"})},s.prototype._isMobileDevice=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: 768px)").matches},s.prototype._checkClientWidth=function(e,t){0===t.clientWidth?setTimeout((()=>{e._checkClientWidth(e,t)}),100):e.run()},s.prototype._loadCss=function(){if(document.currentScript&&!document.currentScript.src.includes(t)&&!document.currentScript.src.includes(e))return!1;const s=document.createElement("link");s.href=`https://${e}/cdn/instafeed-${i}.css`,s.type="text/css",s.rel="stylesheet",s.media="screen,print",document.head.appendChild(s)},s.prototype._loadRounderCornersCssHack=function(){const e=parseInt(this.options.corners),t=parseInt(this.options.layout);e>0&&4!==t&&5!==t&&document.documentElement.style.setProperty("--instafeed-border-radius",`${e}px`)},s.prototype._enableLazyLoading=function(){const e=document.querySelectorAll(".js-lazy-image"),t={rootMargin:"100px 0px",threshold:.01};let i,s=e.length;function n(e){const t=e.dataset.src;var i;if(t.includes("https://"))return(i=t,new Promise(((e,t)=>{const s=new Image;s.src=i,s.onload=e,s.onerror=t}))).then((()=>{!function(e,t){e.classList.add("js-lazy-image--handled"),e.src=t}(e,t)})).catch((e=>{console.log(e)}))}"IntersectionObserver"in window&&e.length?(i=new IntersectionObserver((function(e){0===s&&i.disconnect();e.forEach((e=>{e.intersectionRatio>0&&(s--,i.unobserve(e.target),n(e.target))}))}),t),e.forEach((e=>{e.classList.contains("js-lazy-image--handled")||i.observe(e)}))):function(e){e.forEach((e=>n(e)))}(e)},s.prototype._observeAndPlayVideos=function(){const e=parseInt(this.options.autoplay),t=e=>{e&&e.play()},i=e=>document.getElementById(`inline-video-${e}-${this.options.target}`);if(1===e){const e=document.querySelectorAll(".auto-loop-videos");if(!("IntersectionObserver"in window))return void console.warn("IntersectionObserver not supported. Videos will not autoplay.");const i=new IntersectionObserver(((e,i)=>{e.forEach((e=>{e.isIntersecting&&(t(e.target),i.unobserve(e.target))}))}),{threshold:.5});e.forEach((e=>i.observe(e)))}if(2===e){document.querySelectorAll(".instafeed-hover-layer, .instafeed-overlay").forEach((e=>{const s=s=>{const n=e.getAttribute("data-instafeed-open-id").split("-")[0],o=i(n);var a;s?(t(o),e.style.opacity=0):((a=o)&&a.pause(),e.style.opacity=1)};e.addEventListener("mouseover",(()=>s(!0))),e.addEventListener("mouseout",(()=>s(!1))),e.addEventListener("touchstart",(()=>s(!0))),e.addEventListener("touchend",(()=>s(!1)))}))}},s}();!function(e,t){e.Instafeed=n}(this),function(){var e,t;function i(t){const i=document.getElementById(t);i&&(i.style.setProperty("display","none","important"),document.body.style.overflowY="visible",instafeedModalOpen=null,document.removeEventListener("keydown",e,!1))}window.instafeedModalOpen=null,document.addEventListener("click",(function(n){if(!n.target||!n.target.hasAttribute("data-instafeed-open-id")&&!n.target.hasAttribute("data-instafeed-close-id"))return!1;var o=n.target.hasAttribute("data-instafeed-open-id")?n.target.getAttribute("data-instafeed-open-id"):n.target.getAttribute("data-instafeed-close-id"),a=document.getElementById("video-"+t),r=document.getElementById("video-"+o);if(r&&(r.onplay=()=>{null===instafeedModalOpen&&r.pause()}),a&&a.pause(),n.target.hasAttribute("data-instafeed-open-id")){const t=document.getElementById(o);if(t){instafeedModalOpen&&i(instafeedModalOpen),instafeedModalOpen=o,t.style.setProperty("display","block","important"),document.body.style.overflowY="hidden",r&&r.play();const n=".instafeed-new-arrow",{firstFocusableElement:a,lastFocusableElement:d}=function(e,t){const i=e.querySelectorAll(t),s=i[0],n=i[i.length-1];return{firstFocusableElement:s,lastFocusableElement:n}}(t,n);e=e=>{!function(e,t,i){s;let n="Tab"===e.key||9===e.keyCode;if(!n)return;e.shiftKey?e.target===t&&(i.focus(),e.preventDefault()):e.target===i&&(t.focus(),e.preventDefault())}(e,a,d)},document.addEventListener("keydown",e,!1),t.focus()}}n.target.hasAttribute("data-instafeed-close-id")&&i(o),t=o})),window.addEventListener("keydown",(e=>{const{key:t}=e;if("Escape"===t)instafeedModalOpen&&i(instafeedModalOpen);else if("Enter"===e.key){const e=document.activeElement;(e.classList.contains("instafeed-new-arrow")||e.classList.contains("instafeed-close-button"))&&e.click()}var s=document.getElementById(instafeedModalOpen);if(s){var n="";if("ArrowLeft"===t?n=".instafeed-new-arrow.prev":"ArrowRight"===t&&(n=".instafeed-new-arrow.next"),n){var o=s.querySelector(n);o&&o.click()}}}))}(),window.instafeedSlidersState={},window.instafeedSliderMove=(e,t=0)=>{instafeedSlidersState[t]||(instafeedSlidersState[t]={currentTransform:0,minTransform:0});const i=instafeedSlidersState[t],s=Math.ceil(instafeedSliderTotalImages/instafeedSliderNumVisibleImages)-1,n=instafeedSliderStepSize*s;i.currentTransform+=e*-instafeedSliderStepSize,i.currentTransform<-n&&(i.currentTransform=i.minTransform),i.currentTransform>i.minTransform&&(i.currentTransform=-n),document.querySelector(`.instafeed-new-carousel-wrapper[data-feed-id="${t}"]`).style.transform=`translateX(${i.currentTransform}px)`},function(e,t){"use strict";"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,a=Date.now(),i=e.touches[0].clientX,s=e.touches[0].clientY,n=0,o=0)}),!1),t.addEventListener("touchmove",(function(e){if(i&&s){var t=e.touches[0].clientX,a=e.touches[0].clientY;n=i-t,o=s-a}}),!1),t.addEventListener("touchend",(function(e){if(r===e.target){var l=parseInt(d(r,"data-swipe-threshold","20"),10),p=d(r,"data-swipe-unit","px"),c=parseInt(d(r,"data-swipe-timeout","500"),10),u=Date.now()-a,h="",g=e.changedTouches||e.touches||[];if("vh"===p&&(l=Math.round(l/100*t.documentElement.clientHeight)),"vw"===p&&(l=Math.round(l/100*t.documentElement.clientWidth)),Math.abs(n)>Math.abs(o)?Math.abs(n)>l&&u<c&&(h=n>0?"swiped-left":"swiped-right"):Math.abs(o)>l&&u<c&&(h=o>0?"swiped-up":"swiped-down"),""!==h){var m={dir:h.replace(/swiped-/,""),touchType:(g[0]||{}).touchType||"direct",xStart:parseInt(i,10),xEnd:parseInt((g[0]||{}).clientX||-1,10),yStart:parseInt(s,10),yEnd:parseInt((g[0]||{}).clientY||-1,10)};r.dispatchEvent(new CustomEvent("swiped",{bubbles:!0,cancelable:!0,detail:m})),r.dispatchEvent(new CustomEvent(h,{bubbles:!0,cancelable:!0,detail:m}))}i=null,s=null,a=null}}),!1);var i=null,s=null,n=null,o=null,a=null,r=null;function d(e,i,s){for(;e&&e!==t.documentElement;){var n=e.getAttribute(i);if(n)return n;e=e.parentNode}return s}}(window,document);if(document.getElementById('insta-feed')!==null){var feed=new Instafeed({account:'',hash:'359c2796b74ca974750d928cbfaa9037',apiVersion:4,shopOrigin:'san-basilio-store.myshopify.com',title:'',openIg:3,space:0,corners:0,likes:1,showFollowers:0,layout:0,filter:'',public:0,columns:5,columnsMobile:5,rows:2,rowsMobile:2,autoplay:0,autoLayout:0,feedId:0,charge:'0'});feed.run();}return instafeedLoad;})();window.addEventListener('resize',((lastWidth)=>()=>window.innerWidth!==lastWidth&&(lastWidth=window.innerWidth,instafeedApp()))(window.innerWidth));document.addEventListener('shopify:section:load',()=>{instafeedApp()});