var instafeedApp=(function instafeedLoad(){const appDomain="instafeed.nfcube.com",cssVer="4.4.0";var Instafeed=function(){function b(b){var c,d;for(c in this.options={target:"insta-feed",feedLoaded:!1,account:"",hash:"",forceUpdate:!1,picturesLoaded:0,admin:window.location.hostname===appDomain,title:"",columns:5},b)d=b[c],this.options[c]=d}return b.prototype.run=function(b){var c;if(c=this.options.target,c=document.getElementById(c),""===this.options.accessToken&&4===this.options.apiVersion)return c.innerHTML="
",c.innerHTML+="
Connect your Instagram account to see your feed
",!1;c.innerHTML="";var d=this;const e=new XMLHttpRequest;return e.open("GET",b||this._buildUrl(),!0),e.onreadystatechange=function(){if(4===e.readyState){var b=e.status;0===b||200>=b&&400>b?d.parse(JSON.parse(e.responseText)):console.log("error")}},e.send(),!0},b.prototype.parse=function(b){var c,d,e,f,g,h,k,l,m,o,p,q,r,s,t,u,v,w,x;if(w=this.options.target,w=document.getElementById(w),"object"!=typeof b)throw new Error("Invalid JSON response");if(200!==b.meta.code)throw w.innerHTML=""+b.meta.error_message+"",new Error("Error from API: "+b.meta.error_message);if(0===b.data.length)throw w.innerHTML="No images were returned from this Instagram account",new Error("No images were returned from Instagram");if(null===w)throw f="No element with id=\""+this.options.target+"\" on page.",new Error(f);if(null!==this.options.success&&"function"==typeof this.options.success&&this.options.success.call(this,b),"undefined"!=typeof document&&null!==document){q=b.data,g=document.createDocumentFragment(),h="",o="",r="",x=document.createElement("div");var y=w.clientWidth/this.options.columns*window.devicePixelRatio,z="standard_resolution",A=this.options.limit,B=parseFloat(100/this.options.columns).toFixed(6),C=parseInt(100-this.options.space);isMobileDevice()&&validateCharge(this.options.charge)&&(y=w.clientWidth/this.options.columnsMobile*window.devicePixelRatio,B=parseFloat(100/this.options.columnsMobile).toFixed(6),A=this.options.limitMobile),150>=y?z="thumbnail":320>=y&&(z="low_resolution");var D="",E="";validateCharge(this.options.charge)&&0{{likes}}",E=" {{likes}} ");var F="