/*! For license information please see index.js.LICENSE.txt */ (()=>{var t={500(t,e){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var t="",e=0;e{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";var t,e,r,o,i,a,l,u,c,s,d,f,_={},m=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,g=Array.isArray;function v(t,e){for(var n in e)t[n]=e[n];return t}function y(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function h(e,n,r){var o,i,a,l={};for(a in n)"key"==a?o=n[a]:"ref"==a?i=n[a]:l[a]=n[a];if(arguments.length>2&&(l.children=arguments.length>3?t.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===l[a]&&(l[a]=e.defaultProps[a]);return b(e,l,o,i,null)}function b(t,n,o,i,a){var l={type:t,props:n,key:o,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==a?++r:a,__i:-1,__u:0};return null==a&&null!=e.vnode&&e.vnode(l),l}function w(t){return t.children}function S(t,e){this.props=t,this.context=e}function k(t,e){if(null==e)return t.__?k(t.__,t.__i+1):null;for(var n;es&&o.sort(l),t=o.shift(),s=o.length,t.__d&&(r=void 0,i=void 0,a=(i=(n=t).__v).__e,u=[],c=[],n.__P&&((r=v({},i)).__v=i.__v+1,e.vnode&&e.vnode(r),M(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[a]:null,u,null==a?k(i):a,!!(32&i.__u),c),r.__v=i.__v,r.__.__k[r.__i]=r,L(u,r,c),i.__e=i.__=null,r.__e!=a&&O(r)));N.__r=0}function I(t,e,n,r,o,i,a,l,u,c,s){var d,f,p,g,v,y,h,b=r&&r.__k||m,w=e.length;for(u=P(n,e,b,u,w),d=0;d0?a=t.__k[i]=b(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):t.__k[i]=a,u=i+f,a.__=t,a.__b=t.__b+1,l=null,-1!=(c=a.__i=A(a,n,u,d))&&(d--,(l=n[c])&&(l.__u|=2)),null==l||null==l.__v?(-1==c&&(o>s?f--:ou?f--:f++,a.__u|=4))):t.__k[i]=null;if(d)for(i=0;i(s?1:0))for(o=n-1,i=n+1;o>=0||i=0?o--:i++])&&!(2&c.__u)&&l==c.key&&u==c.type)return a;return-1}function C(t,e,n){"-"==e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||p.test(e)?n:n+"px"}function T(t,e,n,r,o){var i,a;t:if("style"==e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||C(t.style,e,"");if(n)for(e in n)r&&n[e]==r[e]||C(t.style,e,n[e])}else if("o"==e[0]&&"n"==e[1])i=e!=(e=e.replace(u,"$1")),a=e.toLowerCase(),e=a in t||"onFocusOut"==e||"onFocusIn"==e?a.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r?n.u=r.u:(n.u=c,t.addEventListener(e,i?d:s,i)):t.removeEventListener(e,i?d:s,i);else{if("http://www.w3.org/2000/svg"==o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!=e[4]?t.removeAttribute(e):t.setAttribute(e,"popover"==e&&1==n?"":n))}}function q(t){return function(n){if(this.l){var r=this.l[n.type+t];if(null==n.t)n.t=c++;else if(n.t0?t:g(t)?t.map(D):v({},t)}function U(n,r,o,i,a,l,u,c,s){var d,f,m,p,v,h,b,w=o.props||_,S=r.props,O=r.type;if("svg"==O?a="http://www.w3.org/2000/svg":"math"==O?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),null!=l)for(d=0;d=n.__.length&&n.__.push({}),n.__[t]}function ot(t){return $=1,it(gt,t)}function it(t,e,n){var r=rt(V++,2);if(r.t=t,!r.__c&&(r.__=[n?n(e):gt(void 0,e),function(t){var e=r.__N?r.__N[0]:r.__[0],n=r.t(e,t);e!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=B,!B.__f)){var o=function(t,e,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter(function(t){return!!t.__c});if(o.every(function(t){return!t.__N}))return!i||i.call(this,t,e,n);var a=r.__c.props!==t;return o.forEach(function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(a=!0)}}),i&&i.call(this,t,e,n)||a};B.__f=!0;var i=B.shouldComponentUpdate,a=B.componentWillUpdate;B.componentWillUpdate=function(t,e,n){if(this.__e){var r=i;i=void 0,o(t,e,n),i=r}a&&a.call(this,t,e,n)},B.shouldComponentUpdate=o}return r.__N||r.__}function at(t,e){var n=rt(V++,3);!X.__s&&pt(n.__H,e)&&(n.__=t,n.u=e,B.__H.__h.push(n))}function lt(t){return $=5,ut(function(){return{current:t}},[])}function ut(t,e){var n=rt(V++,7);return pt(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function ct(t,e){return $=8,ut(function(){return t},e)}function st(){for(var t;t=J.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(_t),t.__H.__h.forEach(mt),t.__H.__h=[]}catch(e){t.__H.__h=[],X.__e(e,t.__v)}}X.__b=function(t){B=null,Y&&Y(t)},X.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),nt&&nt(t,e)},X.__r=function(t){K&&K(t),V=0;var e=(B=t.__c).__H;e&&(z===B?(e.__h=[],B.__h=[],e.__.forEach(function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0})):(e.__h.forEach(_t),e.__h.forEach(mt),e.__h=[],V=0)),z=B},X.diffed=function(t){Q&&Q(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==J.push(e)&&Z===X.requestAnimationFrame||((Z=X.requestAnimationFrame)||ft)(st)),e.__H.__.forEach(function(t){t.u&&(t.__H=t.u),t.u=void 0})),z=B=null},X.__c=function(t,e){e.some(function(t){try{t.__h.forEach(_t),t.__h=t.__h.filter(function(t){return!t.__||mt(t)})}catch(n){e.some(function(t){t.__h&&(t.__h=[])}),e=[],X.__e(n,t.__v)}}),tt&&tt(t,e)},X.unmount=function(t){et&&et(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(t){try{_t(t)}catch(t){e=t}}),n.__H=void 0,e&&X.__e(e,n.__v))};var dt="function"==typeof requestAnimationFrame;function ft(t){var e,n=function(){clearTimeout(r),dt&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,35);dt&&(e=requestAnimationFrame(n))}function _t(t){var e=B,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),B=e}function mt(t){var e=B;t.__c=t.__(),B=e}function pt(t,e){return!t||t.length!==e.length||e.some(function(e,n){return e!==t[n]})}function gt(t,e){return"function"==typeof e?e(t):e}function vt(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof l?r:l,c=Object.create(u.prototype);return yt(c,"_invoke",function(n,r,o){var i,l,u,c=0,s=o||[],d=!1,f={p:0,n:0,v:t,a:_,f:_.bind(t,4),d:function(e,n){return i=e,l=0,u=t,f.n=n,a}};function _(n,r){for(l=n,u=r,e=0;!d&&c&&!o&&e3?(o=m===r)&&(u=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=t):i[0]<=_&&((o=n<2&&_r||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===s&&_(s,m),l=s,u=m;(e=l<2?t:u)||!d;){i||(l?l<3?(l>1&&(f.n=-1),_(l,u)):f.n=u:f.v=u);try{if(c=2,i){if(l||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,l<2&&(l=0)}else 1===l&&(e=i.return)&&e.call(i),l<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=t}else if((e=(d=f.n<0)?u:n.call(r,f))!==a)break}catch(e){i=t,l=1,u=e}finally{c=1}}return{value:e,done:d}}}(n,o,i),!0),c}var a={};function l(){}function u(){}function c(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(yt(e={},r,function(){return this}),e),d=c.prototype=l.prototype=Object.create(s);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,yt(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return u.prototype=c,yt(d,"constructor",c),yt(c,"constructor",u),u.displayName="GeneratorFunction",yt(c,o,"GeneratorFunction"),yt(d),yt(d,o,"Generator"),yt(d,r,function(){return this}),yt(d,"toString",function(){return"[object Generator]"}),(vt=function(){return{w:i,m:f}})()}function yt(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}yt=function(t,e,n,r){function i(e,n){yt(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},yt(t,e,n,r)}function ht(t,e,n,r,o,i,a){try{var l=t[i](a),u=l.value}catch(t){return void n(t)}l.done?e(u):Promise.resolve(u).then(r,o)}function bt(t){return wt.apply(this,arguments)}function wt(){return wt=function(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(t){ht(i,r,o,a,l,"next",t)}function l(t){ht(i,r,o,a,l,"throw",t)}a(void 0)})}}(vt().m(function t(e){var n,r,o,i;return vt().w(function(t){for(;;)switch(t.n){case 0:if(n=e.url,r=e.data,o=e.method,n){t.n=1;break}throw new Error("Empty url: ".concat(n));case 1:return i={"Content-Type":"application/json"},"undefined"!=typeof wpApiSettings&&wpApiSettings.nonce&&(i["X-WP-Nonce"]=wpApiSettings.nonce),t.n=2,fetch(n,{body:r?JSON.stringify(r):void 0,method:o,headers:i,credentials:"same-origin"}).then(function(t){return t.json()}).then(function(t){if(t.code)throw new Error("".concat(t.code,": ").concat((null==t?void 0:t.message)||"Unknown"));return t}).catch(function(t){throw new Error(t)});case 2:return t.a(2,t.v)}},t)})),wt.apply(this,arguments)}function St(t){return St="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},St(t)}function kt(t,e){var n=[];for(var r in t)if(t.hasOwnProperty(r)){var o=e?e+"["+r+"]":r,i=t[r];n.push(null!==i&&"object"===St(i)?kt(i,o):encodeURIComponent(o)+"="+encodeURIComponent(i))}return n.join("&")}function Ot(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof l?r:l,c=Object.create(u.prototype);return xt(c,"_invoke",function(n,r,o){var i,l,u,c=0,s=o||[],d=!1,f={p:0,n:0,v:t,a:_,f:_.bind(t,4),d:function(e,n){return i=e,l=0,u=t,f.n=n,a}};function _(n,r){for(l=n,u=r,e=0;!d&&c&&!o&&e3?(o=m===r)&&(u=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=t):i[0]<=_&&((o=n<2&&_r||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===s&&_(s,m),l=s,u=m;(e=l<2?t:u)||!d;){i||(l?l<3?(l>1&&(f.n=-1),_(l,u)):f.n=u:f.v=u);try{if(c=2,i){if(l||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,l<2&&(l=0)}else 1===l&&(e=i.return)&&e.call(i),l<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=t}else if((e=(d=f.n<0)?u:n.call(r,f))!==a)break}catch(e){i=t,l=1,u=e}finally{c=1}}return{value:e,done:d}}}(n,o,i),!0),c}var a={};function l(){}function u(){}function c(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(xt(e={},r,function(){return this}),e),d=c.prototype=l.prototype=Object.create(s);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,xt(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return u.prototype=c,xt(d,"constructor",c),xt(c,"constructor",u),u.displayName="GeneratorFunction",xt(c,o,"GeneratorFunction"),xt(d),xt(d,o,"Generator"),xt(d,r,function(){return this}),xt(d,"toString",function(){return"[object Generator]"}),(Ot=function(){return{w:i,m:f}})()}function xt(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}xt=function(t,e,n,r){function i(e,n){xt(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},xt(t,e,n,r)}function Nt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return It(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?It(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function It(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);nt.length)&&(e=t.length);for(var n=0,r=Array(e);n3?(o=m===r)&&(u=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=t):i[0]<=_&&((o=n<2&&_r||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===s&&_(s,m),l=s,u=m;(e=l<2?t:u)||!d;){i||(l?l<3?(l>1&&(f.n=-1),_(l,u)):f.n=u:f.v=u);try{if(c=2,i){if(l||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,l<2&&(l=0)}else 1===l&&(e=i.return)&&e.call(i),l<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=t}else if((e=(d=f.n<0)?u:n.call(r,f))!==a)break}catch(e){i=t,l=1,u=e}finally{c=1}}return{value:e,done:d}}}(n,o,i),!0),c}var a={};function l(){}function u(){}function c(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(Ht(e={},r,function(){return this}),e),d=c.prototype=l.prototype=Object.create(s);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,Ht(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return u.prototype=c,Ht(d,"constructor",c),Ht(c,"constructor",u),u.displayName="GeneratorFunction",Ht(c,o,"GeneratorFunction"),Ht(d),Ht(d,o,"Generator"),Ht(d,r,function(){return this}),Ht(d,"toString",function(){return"[object Generator]"}),(Gt=function(){return{w:i,m:f}})()}function Ht(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}Ht=function(t,e,n,r){function i(e,n){Ht(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},Ht(t,e,n,r)}function Wt(t){return function(t){if(Array.isArray(t))return zt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Bt(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(t,e)||Bt(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bt(t,e){if(t){if("string"==typeof t)return zt(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zt(t,e):void 0}}function zt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n1&&void 0!==v[1]?v[1]:"",a=v.length>2&&void 0!==v[2]?v[2]:0,l=null==e?void 0:e.account_id,u=null==e?void 0:e.limit,c=null==e||null===(n=e.copyright)||void 0===n?void 0:n.hide,s=null==e||null===(r=e.reel)||void 0===r?void 0:r.hide,d=null==e?void 0:e.order_by,f=null==e?void 0:e.tag,_=null==e?void 0:e.source,m=null===(o=window)||void 0===o||null===(o=o.qligg_frontend)||void 0===o||null===(o=o.restRoutePaths)||void 0===o?void 0:o[_]){t.n=1;break}throw new Error("Unknown source: ".concat(_));case 1:return p=kt({account_id:l,limit:u,hide_items_with_copyright:c,hide_reels:s,after:i,pagination:a,order_by:d,tag:f}).toString(),g="".concat(m).concat(m.includes("?")?"&":"?").concat(p),t.n=2,bt({url:g,method:"GET"});case 2:return t.a(2,t.v)}},t)})),Xt.apply(this,arguments)}Lt.Consumer;var Yt=n(500),Kt=n.n(Yt);const Qt=function(t){var e=t.href,n=t.className,r=t.children,o=t.onClick,i=t.disabled;return h("a",{href:e,target:"blank",onClick:o,className:Kt()("instagram-gallery__button",n,i&&"instagram-gallery__button--disabled")},r)};function te(t,e){var n=t.tag,r=t.source,o=null==e?void 0:e.username;switch(r){case"username":return"https://www.instagram.com/".concat(o);case"tag":return"https://www.instagram.com/explore/tags/".concat(n);default:return"https://www.instagram.com"}}const ee=function(t){var e,n,r=t.userProfile,o=t.feedSettings,i=t.onClick,a=t.after,l=!(null==o||null===(e=o.button)||void 0===e||!e.display),u=!(null==o||null===(n=o.button_load)||void 0===n||!n.display);return h("div",{className:"instagram-gallery__actions"},l&&h(Qt,{feedSettings:o,href:te(o,r),target:"blank",className:"instagram-gallery__button--follow"},h("i",{className:"qligg-icon-instagram "}),o.button.text),u&&h(Qt,{feedSettings:o,className:"instagram-gallery__button--load",disabled:""===a,onClick:i},o.button_load.text))},ne=function(){return h("div",{className:"instagram-gallery__spinner"})},re=function(t){var e=t.errorUserProfile,n=t.errorUserMediaList;return h("div",{className:"instagram-gallery__alert"},h("ul",null,e&&h("li",null,h("b",null,e.error),h("p",null,e.message)),n&&h("li",null,h("b",null,n.error),h("p",null,n.message))))};function oe(t,e){for(var n in e)t[n]=e[n];return t}function ie(t,e){for(var n in t)if("__source"!==n&&!(n in e))return!0;for(var r in e)if("__source"!==r&&t[r]!==e[r])return!0;return!1}function ae(t,e){this.props=t,this.context=e}function le(t,e){function n(t){var n=this.props.ref,r=n==t.ref;return!r&&n&&(n.call?n(null):n.current=null),e?!e(this.props,t)||!r:ie(this.props,t)}function r(e){return this.shouldComponentUpdate=n,h(t,e)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r.type=t,r}(ae.prototype=new S).isPureReactComponent=!0,ae.prototype.shouldComponentUpdate=function(t,e){return ie(this.props,t)||ie(this.state,e)};var ue=e.__b;e.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),ue&&ue(t)};var ce="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var se=e.__e;e.__e=function(t,e,n,r){if(t.then)for(var o,i=e;i=i.__;)if((o=i.__c)&&o.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),o.__c(t,e);se(t,e,n,r)};var de=e.unmount;function fe(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(t){"function"==typeof t.__c&&t.__c()}),t.__c.__H=null),null!=(t=oe({},t)).__c&&(t.__c.__P===n&&(t.__c.__P=e),t.__c.__e=!0,t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return fe(t,e,n)})),t}function _e(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return _e(t,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=n)),t}function me(){this.__u=0,this.o=null,this.__b=null}function pe(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function ge(){this.i=null,this.l=null}e.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),de&&de(t)},(me.prototype=new S).__c=function(t,e){var n=e.__c,r=this;null==r.o&&(r.o=[]),r.o.push(n);var o=pe(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(l):l())};n.__R=a;var l=function(){if(! --r.__u){if(r.state.__a){var t=r.state.__a;r.__v.__k[0]=_e(t,t.__c.__P,t.__c.__O)}var e;for(r.setState({__a:r.__b=null});e=r.o.pop();)e.forceUpdate()}};r.__u++||32&e.__u||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(a,a)},me.prototype.componentWillUnmount=function(){this.o=[]},me.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=fe(this.__b,n,r.__O=r.__P)}this.__b=null}var o=e.__a&&h(w,null,t.fallback);return o&&(o.__u&=-33),[h(w,null,e.__a?null:t.children),o]};var ve=function(t,e,n){if(++n[1]===n[0]&&t.l.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.l.size))for(n=t.i;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),e.h.removeChild(t)}}}W(h(ye,{context:e.context},t.__v),e.v)}(ge.prototype=new S).__a=function(t){var e=this,n=pe(e.__v),r=e.l.get(t);return r[0]++,function(o){var i=function(){e.props.revealOrder?(r.push(o),ve(e,t,r)):o()};n?n(i):i()}},ge.prototype.render=function(t){this.i=null,this.l=new Map;var e=E(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var n=e.length;n--;)this.l.set(e[n],this.i=[1,0,this.i]);return t.children},ge.prototype.componentDidUpdate=ge.prototype.componentDidMount=function(){var t=this;this.l.forEach(function(e,n){ve(t,n,e)})};var be="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,we=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Se=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ke=/[A-Z0-9]/g,Oe="undefined"!=typeof document,xe=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(t)};S.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(S.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Ne=e.event;function Ie(){}function Pe(){return this.cancelBubble}function je(){return this.defaultPrevented}e.event=function(t){return Ne&&(t=Ne(t)),t.persist=Ie,t.isPropagationStopped=Pe,t.isDefaultPrevented=je,t.nativeEvent=t};var Ee={enumerable:!1,configurable:!0,get:function(){return this.class}},Ae=e.vnode;e.vnode=function(t){"string"==typeof t.type&&function(t){var e=t.props,n=t.type,r={},o=-1===n.indexOf("-");for(var i in e){var a=e[i];if(!("value"===i&&"defaultValue"in e&&null==a||Oe&&"children"===i&&"noscript"===n||"class"===i||"className"===i)){var l=i.toLowerCase();"defaultValue"===i&&"value"in e&&null==e.value?i="value":"download"===i&&!0===a?a="":"translate"===l&&"no"===a?a=!1:"o"===l[0]&&"n"===l[1]?"ondoubleclick"===l?i="ondblclick":"onchange"!==l||"input"!==n&&"textarea"!==n||xe(e.type)?"onfocus"===l?i="onfocusin":"onblur"===l?i="onfocusout":Se.test(i)&&(i=l):l=i="oninput":o&&we.test(i)?i=i.replace(ke,"-$&").toLowerCase():null===a&&(a=void 0),"oninput"===l&&r[i=l]&&(i="oninputCapture"),r[i]=a}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=E(e.children).forEach(function(t){t.props.selected=-1!=r.value.indexOf(t.props.value)})),"select"==n&&null!=r.defaultValue&&(r.value=E(e.children).forEach(function(t){t.props.selected=r.multiple?-1!=r.defaultValue.indexOf(t.props.value):r.defaultValue==t.props.value})),e.class&&!e.className?(r.class=e.class,Object.defineProperty(r,"className",Ee)):(e.className&&!e.class||e.class&&e.className)&&(r.class=r.className=e.className),t.props=r}(t),t.$$typeof=be,Ae&&Ae(t)};var Ce=e.__r;e.__r=function(t){Ce&&Ce(t),t.__c};var Te=e.diffed;function qe(t){return qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qe(t)}function Me(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Fe(t){for(var e=1;e]+>/g,He=/[\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF\uFF66-\uFF9F]/,We=function(t){var e;return(null===(e=t.highlight.tag)||void 0===e?void 0:e.split(" ")).map(function(t){return t.includes("#")?t:t.split(" ").map(function(t){return"#"+t}).join(" ")})},Ve=function(t,e){if(t){var n,r=t.replace(Ge,"");return(n=He.test(t)?r.split("",e).join(""):r.split(" ",e).join(" ")).length]+>/g;const Ze=function(t){var e,n,r,o=t.index,i=t.length,a=t.feedSettings,l=t.feedItem,u=t.onClick,c=function(t,e,n){var r;if(!["highlight","highlight-square"].includes(t.layout))return!1;if(null==t||!t.highlight)return!1;for(var o in t.highlight){var i=t.highlight[o].split(",").map(function(t){return t.toString().trim()});switch(o){case"position":if(i.includes(n.toString()))return!0;break;case"id":if(i.includes(e.id))return!0;break;case"tag":if(null===(r=e.tags)||void 0===r?void 0:r.filter(function(e){return We(t).includes(e)}).length)return!0}}return!1}(a,l,o),s=function(t){return["carousel","carousel-vertical"].includes(t.layout)}(a),d=!(null!=a&&null!==(e=a.modal)&&void 0!==e&&e.display||null==l||!l.share_url);return h(d?"a":"div",{href:d?l.share_url:void 0,target:d?"_blank":void 0,rel:d?"noopener noreferrer":void 0,className:Kt()("instagram-gallery-item",s&&"swiper-slide",c&&"instagram-gallery-item--highlight","instagram-gallery-item--cols-".concat(a.columns)),"data-elementor-open-lightbox":"no","data-feed-item-index":o,onClick:u,onKeyDown:d?void 0:function(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),u(t))},tabIndex:d?void 0:0,role:d?void 0:"button","aria-label":(n="VIDEO"===l.media_type?"Video":"Image",r=l.media_description?": ".concat(l.media_description.replace(ze,"")):"",r.length>100&&(r=r.substring(0,100)+"..."),"Instagram ".concat(n).concat(r))},h("div",{className:"instagram-gallery-item__wrap"},h(Re,{index:o,feedItem:l,length:i,feedSettings:a}),a.card.display&&h(Be,{feedItem:l,feedSettings:a})))};window.React;const $e="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjRweCIgaGVpZ2h0PSIyNHB4IiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0IiB2aWV3Qm94PSIwIDAgMjAgMjAiIHN0eWxlPSItbXMtdHJhbnNmb3JtOiByb3RhdGUoMzYwZGVnKTsgLXdlYmtpdC10cmFuc2Zvcm06IHJvdGF0ZSgzNjBkZWcpOyB0cmFuc2Zvcm06IHJvdGF0ZSgzNjBkZWcpOyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTE2IDE3SDJsMy41LTQuNWwyLjUgM2wzLTMuODFBMiAyIDAgMCAxIDEwIDEwVjZIMmEyIDIgMCAwIDAtMiAydjEwYTIgMiAwIDAgMCAyIDJoMTRhMiAyIDAgMCAwIDItMnYtNmgtNS43NXoiLz48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMTkgNGgtLjVWMi41YTIuNSAyLjUgMCAwIDAtNSAwVjRIMTNhMSAxIDAgMCAwLTEgMXY0YTEgMSAwIDAgMCAxIDFoNmExIDEgMCAwIDAgMS0xVjVhMSAxIDAgMCAwLTEtMXptLTMgNGExIDEgMCAxIDEgMS0xYTEgMSAwIDAgMS0xIDF6bTEuNS00aC0zVjIuNzVDMTQuNSAyIDE0LjUgMSAxNiAxczEuNSAxIDEuNSAxLjc1eiIvPjwvc3ZnPgo=",Je=function(t){var e=t.currentFeedItem,n=t.feedSettings,r=lt(null);return h("section",{className:"instagram-gallery-modal__media-container insta-gallery-slider-container"},h("div",{ref:r,className:"insta-gallery-slider"},e.children.map(function(t){return h("div",{key:t.id,className:"insta-gallery__media"},null===t.media.url?h("img",{className:Kt()("instagram-gallery-modal__media",!n.copyright.placeholder&&"instagram-gallery-modal__media--placeholder"),src:n.copyright.placeholder?n.copyright.placeholder:$e,alt:t.media.alt}):"VIDEO"===t.media.type?h("video",{controls:!0,poster:t.media.thumbnail,className:"instagram-gallery-modal__media",src:t.media.url}):h("img",{className:"instagram-gallery-modal__media",src:t.media.url,alt:t.media.alt}))})),h("div",{className:"insta-gallery-slider__button-container"},h("span",{onClick:function(){if(r.current.children.length>0){var t=r.current.children.length-1,e=r.current.children[t];r.current.insertBefore(e,r.current.firstChild),r.current.style.transition="none";var n=r.current.children[0].offsetWidth;r.current.style.transform="translateX(-".concat(n,"px)"),setTimeout(function(){r.current.style.transition="200ms ease-out all",r.current.style.transform="translateX(0)"},30)}},className:"insta-gallery-slider__button insta-gallery-slider__button--left qligg-icon-prev"}),h("span",{onClick:function(){if(r.current.children.length>0){var t=r.current.children[0];r.current.style.transition="300ms ease-out all";var e=r.current.children[0].offsetWidth;r.current.style.transform="translateX(-".concat(e,"px)");var n=function(){r.current.style.transition="none",r.current.style.transform="translateX(0)",r.current.appendChild(t),r.current.removeEventListener("transitionend",n)};r.current.addEventListener("transitionend",n)}},className:"insta-gallery-slider__button insta-gallery-slider__button--right qligg-icon-next"})))},Xe=le(function(t){var e,n,r,o,i=t.currentFeedItem,a=t.feedSettings,l=!(null!=i&&null!==(e=i.media)&&void 0!==e&&e.url);switch(i.media_type){case"CAROUSEL_ALBUM":return h(Je,{feedSettings:a,currentFeedItem:i});case"VIDEO":return h("section",{className:"instagram-gallery-modal__media-container"},l?h("img",{src:$e,alt:"thumbnail",className:"instagram-gallery-item__icon qligg-icon-video instagram-gallery-item__icon--views"}):h("video",{poster:i.media.thumbnail,src:i.media.url,controls:!0,className:"instagram-gallery-modal__media"}));default:return h("section",{className:"instagram-gallery-modal__media-container"},h("img",l?{src:null!==(n=null==i||null===(r=i.media)||void 0===r?void 0:r.thumbnail)&&void 0!==n?n:null==a||null===(o=a.copyright)||void 0===o?void 0:o.placeholder,className:"instagram-gallery-modal__media"}:{src:i.media.url,className:"instagram-gallery-modal__media"}))}});function Ye(t){return Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ye(t)}function Ke(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof l?r:l,c=Object.create(u.prototype);return Qe(c,"_invoke",function(n,r,o){var i,l,u,c=0,s=o||[],d=!1,f={p:0,n:0,v:t,a:_,f:_.bind(t,4),d:function(e,n){return i=e,l=0,u=t,f.n=n,a}};function _(n,r){for(l=n,u=r,e=0;!d&&c&&!o&&e3?(o=m===r)&&(u=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=t):i[0]<=_&&((o=n<2&&_r||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===s&&_(s,m),l=s,u=m;(e=l<2?t:u)||!d;){i||(l?l<3?(l>1&&(f.n=-1),_(l,u)):f.n=u:f.v=u);try{if(c=2,i){if(l||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,l<2&&(l=0)}else 1===l&&(e=i.return)&&e.call(i),l<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=t}else if((e=(d=f.n<0)?u:n.call(r,f))!==a)break}catch(e){i=t,l=1,u=e}finally{c=1}}return{value:e,done:d}}}(n,o,i),!0),c}var a={};function l(){}function u(){}function c(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(Qe(e={},r,function(){return this}),e),d=c.prototype=l.prototype=Object.create(s);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,Qe(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return u.prototype=c,Qe(d,"constructor",c),Qe(c,"constructor",u),u.displayName="GeneratorFunction",Qe(c,o,"GeneratorFunction"),Qe(d),Qe(d,o,"Generator"),Qe(d,r,function(){return this}),Qe(d,"toString",function(){return"[object Generator]"}),(Ke=function(){return{w:i,m:f}})()}function Qe(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}Qe=function(t,e,n,r){function i(e,n){Qe(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},Qe(t,e,n,r)}function tn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return en(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?en(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function en(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);nt.length)&&(e=t.length);for(var n=0,r=Array(e);nd,k="BUSINESS"===i.user_type;return h("section",{className:"instagram-gallery-modal__media-sidebar"},u.modal.profile&&a.username&&a.link&&h("div",{className:"instagram-gallery-modal__profile"},a.avatar&&h("img",{alt:null!==(e=a.nickname)&&void 0!==e?e:a.username,src:a.avatar}),h("div",null,h("span",null,null!==(n=a.nickname)&&void 0!==n?n:a.username),h("a",{href:a.link,title:null!==(r=a.nickname)&&void 0!==r?r:a.username,target:"_blank",rel:"noopener noreferrer","aria-label":"Visit ".concat(null!==(o=a.nickname)&&void 0!==o?o:a.username,"'s Instagram profile")},"@".concat(a.username)))),h("div",{className:"instagram-gallery-modal__icons"},h("span",{className:"instagram-gallery-modal__counter","aria-live":"polite"},"".concat(c+1," / ").concat(l)),h("a",{className:"instagram-gallery-modal__link",href:i.share_url,target:"_blank",rel:"noopener noreferrer","aria-label":"View on Instagram"},h("i",{className:"qligg-icon-instagram","aria-hidden":"true"})," ","Instagram")),u.modal.media_description&&!!i.media_description&&h("div",{className:"instagram-gallery-modal__media_description"},h("p",{dangerouslySetInnerHTML:{__html:Ve(i.media_description,u.modal.text_length)}})),(u.modal.likes_count||u.modal.comments_count)&&k&&h("div",{className:"instagram-gallery-modal__info"},u.modal.likes_count&&h("span",{className:"instagram-gallery-modal__likes_count"},h("i",{className:"qligg-icon-heart","aria-hidden":"true"}),i.likes_count||0),u.modal.comments_count&&h("span",{className:"instagram-gallery-modal__comments_count"},h("i",{className:"qligg-icon-comment","aria-hidden":"true"}),i.comments_count||0)),u.modal.comments_list&&k&&h("div",{className:"instagram-gallery-modal__comments-list"},h("p",null,h("b",null,"Comments")),p?h("p",{"aria-live":"polite"},"Loading comments..."):g?h("p",{className:"instagram-gallery-modal__error","aria-live":"assertive"},"Unable to load comments. Please try again later."):b.length>0?h(w,null,h("ul",null,b.map(function(t){return h("li",{key:t.id,className:"instagram-gallery-modal__comment"},h("div",{className:"instagram-gallery-modal__comment-header"},h("strong",null,t.username),h("span",{className:"instagram-gallery-modal__comment-time"},v(t.timestamp))),h("p",null,t.text),t.replies&&t.replies.length>0&&h("ul",{className:"instagram-gallery-modal__comment-replies"},t.replies.map(function(t){return h("li",{key:t.id,className:"instagram-gallery-modal__comment-reply"},h("div",{className:"instagram-gallery-modal__comment-header"},h("strong",null,t.username),h("span",{className:"instagram-gallery-modal__comment-time"},v(t.timestamp))),h("p",null,t.text))})))})),S&&h("button",{className:"instagram-gallery-modal__load-more",onClick:y,"aria-label":"Load more comments"},"Load more comments")):h("div",null,h("p",null,"No comments available for this post."),window.qligg_frontend&&window.qligg_frontend.QLIGG_DEVELOPER&&h("p",null,"Comment count in feed item:"," ",i.comments_count))))};var cn=["isPrevious","classname","onClick"];function sn(){return sn=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);n1,p=!!e[i+1]||e.length>1,g=ct(function(){m&&(e[i-1]?a(i-1):a(e.length-1))},[i,e,m,a]),v=ct(function(){p&&(e[i+1]?a(i+1):a(0))},[i,e,p,a]),y=ct(function(t){"ArrowLeft"===t.key?g():"ArrowRight"===t.key?v():"Escape"===t.key&&u(!1)},[g,v,u]);return at(function(){_(e[i])},[i,e]),at(function(){return document.addEventListener("keydown",y),s.current&&s.current.focus(),c&&(document.body.style.overflow="hidden"),function(){document.removeEventListener("keydown",y),document.body.style.overflow=""}},[y,c]),h(pn,{id:"instagram-gallery-modal-".concat(n.id)},h("div",{className:"instagram-gallery-modal",onClick:function(t){return t.stopPropagation()},ref:s,tabIndex:"-1","aria-modal":"true",role:"dialog","aria-label":"Instagram media viewer"},h("div",{className:"instagram-gallery-modal__options"},h("div",{className:"instagram-gallery-modal__options--arrows"},h(dn,{isPrevious:!0,onClick:function(t){t.stopPropagation(),g()},"aria-label":"Previous image",tabIndex:"0"}),h(dn,{next:!0,onClick:function(t){t.stopPropagation(),v()},"aria-label":"Next image",tabIndex:"0"})),h(mn,{onClick:function(){return u(!1)},"aria-label":"Close modal",tabIndex:"0"})),h("section",{className:Kt()("instagram-gallery-modal__body","right"!==n.modal.modal_align&&"instagram-gallery-modal__body--sidebar-".concat(n.modal.modal_align))},h(Xe,{feedSettings:n,currentFeedItem:f}),h(un,{feedSettings:n,currentFeedItem:f,userProfile:r,feedItemsNumber:e.length}))))};var yn=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null==e||""===e?"":"".concat(t,": ").concat(e).concat(n,";")};function hn(){return hn=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);n=m.current&&m.current>0&&(s(!1),o.classList.add("loaded"))},[p,o]),v=(e=function(t){var e=t.ownerDocument.defaultView;if(e.Masonry){var n={itemSelector:".instagram-gallery-item",isResizable:!0,isAnimated:!1,transitionDuration:0,percentPosition:!0,gutter:0};n.columnWidth=l&&"function"==typeof l?l(t,a):".instagram-gallery-item";var r=new e.Masonry(t,n);d.current=r;var i=t.querySelectorAll(".instagram-gallery-item__media");m.current=i.length,_.current.clear(),i.forEach(function(t,e){var n="media-".concat(e),r=function(){g(n),t.removeEventListener("load",r),t.removeEventListener("loadeddata",r),t.removeEventListener("canplay",r),t.removeEventListener("error",r)};"IMG"===t.tagName?t.complete&&0!==t.naturalWidth?g(n):(t.addEventListener("load",r),t.addEventListener("error",r)):"VIDEO"===t.tagName&&(t.readyState>=3?g(n):(t.addEventListener("loadeddata",r),t.addEventListener("canplay",r),t.addEventListener("error",r)))}),0===m.current&&(s(!1),o.classList.add("loaded"));var u=new e.MutationObserver(function(t){var e=!1;t.forEach(function(t){"childList"===t.type&&t.addedNodes.length>0&&(e=!0)}),e&&p()}),c=t.querySelector(".instagram-gallery-item__wrap")||t;return u.observe(c,{childList:!0,subtree:!0}),setTimeout(function(){r.layout()},50),function(){f.current&&clearTimeout(f.current),u.disconnect(),r.destroy(),d.current=null}}},n=[i,g,p,o,l,a],r=lt(),ct(function(t){t?r.current=e(t):r.current&&r.current()},n));return h(w,null,c&&h(ne,null),h(bn,Sn({},t,{masonryRef:v})))};function xn(t){return xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xn(t)}function Nn(){return Nn=Object.assign?Object.assign.bind():function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:document).querySelectorAll(".instagram-gallery-feed");Array.from(t).forEach(Ln)}null!==(Tn=window.elementorFrontend)&&void 0!==Tn&&null!==(qn=Tn.isEditMode)&&void 0!==qn&&qn.call(Tn)||Dn(),window.qliggFrontend={init:Dn,renderFeed:Ln},null!==(Mn=window.elementorFrontend)&&void 0!==Mn&&Mn.hooks&&window.elementorFrontend.hooks.addAction("frontend/element_ready/instagram_feed.default",function(t){return Dn((null==t?void 0:t[0])||t)})})()})();