UNPKG

react-gallery-designer

Version:

react component for creating image galleries, carousels, lightbox-like layouts and more

11 lines 41.1 kB
module.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=73)}([function(t,e){t.exports=require("react")},function(t,e,n){var r=n(16)("wks"),o=n(12),i=n(2).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(13)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(2),o=n(7),i=n(10),a=n(12)("src"),c=n(46),s=(""+c).split("toString");n(5).inspectSource=function(t){return c.call(t)},(t.exports=function(t,e,n,c){var u="function"==typeof n;u&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(u&&(i(n,a)||o(n,a,t[e]?""+t[e]:s.join(String(e)))),t===r?t[e]=n:c?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[a]||c.call(this)}))},function(t,e,n){var r=n(8),o=n(17);t.exports=n(4)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(9),o=n(28),i=n(30),a=Object.defineProperty;e.f=n(4)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(3);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){t.exports={}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(48);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(52),o=n(19);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(5),o=n(2),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(27)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";var r=n(27),o=n(32),i=n(6),a=n(7),c=n(11),s=n(49),u=n(22),l=n(56),f=n(1)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,h,g,y,v){s(n,e,h);var m,b,w,x=function(t){if(!p&&t in _)return _[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",O="values"==g,k=!1,_=t.prototype,P=_[f]||_["@@iterator"]||g&&_[g],j=P||x(g),I=g?O?x("entries"):j:void 0,E="Array"==e&&_.entries||P;if(E&&(w=l(E.call(new t)))!==Object.prototype&&w.next&&(u(w,S,!0),r||"function"==typeof w[f]||a(w,f,d)),O&&P&&"values"!==P.name&&(k=!0,j=function(){return P.call(this)}),r&&!v||!p&&!k&&_[f]||a(_,f,j),c[e]=j,c[S]=d,g)if(m={values:O?j:x("values"),keys:y?j:x("keys"),entries:I},v)for(b in m)b in _||i(_,b,m[b]);else o(o.P+o.F*(p||k),e,m);return m}},function(t,e,n){var r=n(16)("keys"),o=n(12);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(8).f,o=n(10),i=n(1)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(3);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){"use strict";var r=n(25),o={};o[n(1)("toStringTag")]="z",o+""!="[object z]"&&n(6)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(t,e,n){var r=n(26),o=n(1)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:i?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=!1},function(t,e,n){t.exports=!n(4)&&!n(13)((function(){return 7!=Object.defineProperty(n(29)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(3),o=n(2).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(3);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){"use strict";var r=n(47)(!0);n(20)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},function(t,e,n){var r=n(2),o=n(5),i=n(7),a=n(6),c=n(14),s=function(t,e,n){var u,l,f,p,d=t&s.F,h=t&s.G,g=t&s.S,y=t&s.P,v=t&s.B,m=h?r:g?r[e]||(r[e]={}):(r[e]||{}).prototype,b=h?o:o[e]||(o[e]={}),w=b.prototype||(b.prototype={});for(u in h&&(n=e),n)f=((l=!d&&m&&void 0!==m[u])?m:n)[u],p=v&&l?c(f,r):y&&"function"==typeof f?c(Function.call,f):f,m&&a(m,u,f,t&s.U),b[u]!=f&&i(b,u,p),y&&w[u]!=f&&(w[u]=f)};r.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e,n){var r=n(9),o=n(50),i=n(36),a=n(21)("IE_PROTO"),c=function(){},s=function(){var t,e=n(29)("iframe"),r=i.length;for(e.style.display="none",n(55).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),s=t.F;r--;)delete s.prototype[i[r]];return s()};t.exports=Object.create||function(t,e){var n;return null!==t?(c.prototype=r(t),n=new c,c.prototype=null,n[a]=t):n=s(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(51),o=n(36);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(18),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){for(var r=n(58),o=n(34),i=n(6),a=n(2),c=n(7),s=n(11),u=n(1),l=u("iterator"),f=u("toStringTag"),p=s.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=o(d),g=0;g<h.length;g++){var y,v=h[g],m=d[v],b=a[v],w=b&&b.prototype;if(w&&(w[l]||c(w,l,p),w[f]||c(w,f,v),s[v]=p,m))for(y in r)w[y]||i(w,y,r[y],!0)}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r=n(8).f,o=n(33),i=n(40),a=n(14),c=n(41),s=n(42),u=n(20),l=n(38),f=n(64),p=n(4),d=n(43).fastKey,h=n(23),g=p?"_s":"size",y=function(t,e){var n,r=d(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,u){var l=t((function(t,r){c(t,l,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[g]=0,null!=r&&s(r,n,t[u],t)}));return i(l.prototype,{clear:function(){for(var t=h(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[g]=0},delete:function(t){var n=h(this,e),r=y(n,t);if(r){var o=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),n._f==r&&(n._f=o),n._l==r&&(n._l=i),n[g]--}return!!r},forEach:function(t){h(this,e);for(var n,r=a(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!y(h(this,e),t)}}),p&&r(l.prototype,"size",{get:function(){return h(this,e)[g]}}),l},def:function(t,e,n){var r,o,i=y(t,e);return i?i.v=n:(t._l=i={i:o=d(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=i),r&&(r.n=i),t[g]++,"F"!==o&&(t._i[o]=i)),t},getEntry:y,setStrong:function(t,e,n){u(t,e,(function(t,n){this._t=h(t,e),this._k=n,this._l=void 0}),(function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?l(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,l(1))}),n?"entries":"values",!n,!0),f(e)}}},function(t,e,n){var r=n(6);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(14),o=n(61),i=n(62),a=n(9),c=n(35),s=n(63),u={},l={};(e=t.exports=function(t,e,n,f,p){var d,h,g,y,v=p?function(){return t}:s(t),m=r(n,f,e?2:1),b=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(i(v)){for(d=c(t.length);d>b;b++)if((y=e?m(a(h=t[b])[0],h[1]):m(t[b]))===u||y===l)return y}else for(g=v.call(t);!(h=g.next()).done;)if((y=o(g,m,h.value,e))===u||y===l)return y}).BREAK=u,e.RETURN=l},function(t,e,n){var r=n(12)("meta"),o=n(3),i=n(10),a=n(8).f,c=0,s=Object.isExtensible||function(){return!0},u=!n(13)((function(){return s(Object.preventExtensions({}))})),l=function(t){a(t,r,{value:{i:"O"+ ++c,w:{}}})},f=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!s(t))return"F";if(!e)return"E";l(t)}return t[r].i},getWeak:function(t,e){if(!i(t,r)){if(!s(t))return!0;if(!e)return!1;l(t)}return t[r].w},onFreeze:function(t){return u&&f.NEED&&s(t)&&!i(t,r)&&l(t),t}}},function(t,e,n){"use strict";var r=n(2),o=n(32),i=n(6),a=n(40),c=n(43),s=n(42),u=n(41),l=n(3),f=n(13),p=n(65),d=n(22),h=n(66);t.exports=function(t,e,n,g,y,v){var m=r[t],b=m,w=y?"set":"add",x=b&&b.prototype,S={},O=function(t){var e=x[t];i(x,t,"delete"==t||"has"==t?function(t){return!(v&&!l(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return v&&!l(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof b&&(v||x.forEach&&!f((function(){(new b).entries().next()})))){var k=new b,_=k[w](v?{}:-0,1)!=k,P=f((function(){k.has(1)})),j=p((function(t){new b(t)})),I=!v&&f((function(){for(var t=new b,e=5;e--;)t[w](e,e);return!t.has(-0)}));j||((b=e((function(e,n){u(e,b,t);var r=h(new m,e,b);return null!=n&&s(n,y,r[w],r),r}))).prototype=x,x.constructor=b),(P||I)&&(O("delete"),O("has"),y&&O("get")),(I||_)&&O(w),v&&x.clear&&delete x.clear}else b=g.getConstructor(e,t,y,w),a(b.prototype,n),c.NEED=!0;return d(b,t),S[t]=b,o(o.G+o.W+o.F*(b!=m),S),v||g.setStrong(b,t,y),b}},function(t,e,n){n(24),n(31),n(37),n(60),t.exports=n(5).Map},function(t,e,n){t.exports=n(16)("native-function-to-string",Function.toString)},function(t,e,n){var r=n(18),o=n(19);t.exports=function(t){return function(e,n){var i,a,c=String(o(e)),s=r(n),u=c.length;return s<0||s>=u?t?"":void 0:(i=c.charCodeAt(s))<55296||i>56319||s+1===u||(a=c.charCodeAt(s+1))<56320||a>57343?t?c.charAt(s):i:t?c.slice(s,s+2):a-56320+(i-55296<<10)+65536}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){"use strict";var r=n(33),o=n(17),i=n(22),a={};n(7)(a,n(1)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(8),o=n(9),i=n(34);t.exports=n(4)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),c=a.length,s=0;c>s;)r.f(t,n=a[s++],e[n]);return t}},function(t,e,n){var r=n(10),o=n(15),i=n(53)(!1),a=n(21)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),s=0,u=[];for(n in c)n!=a&&r(c,n)&&u.push(n);for(;e.length>s;)r(c,n=e[s++])&&(~i(u,n)||u.push(n));return u}},function(t,e,n){var r=n(26);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(15),o=n(35),i=n(54);t.exports=function(t){return function(e,n,a){var c,s=r(e),u=o(s.length),l=i(a,u);if(t&&n!=n){for(;u>l;)if((c=s[l++])!=c)return!0}else for(;u>l;l++)if((t||l in s)&&s[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var r=n(18),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(2).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(10),o=n(57),i=n(21)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(19);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";var r=n(59),o=n(38),i=n(11),a=n(15);t.exports=n(20)(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(1)("unscopables"),o=Array.prototype;null==o[r]&&n(7)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e,n){"use strict";var r=n(39),o=n(23);t.exports=n(44)("Map",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=r.getEntry(o(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(o(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){var r=n(9);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r=n(11),o=n(1)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){var r=n(25),o=n(1)("iterator"),i=n(11);t.exports=n(5).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){"use strict";var r=n(2),o=n(8),i=n(4),a=n(1)("species");t.exports=function(t){var e=r[t];i&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(1)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},t(i)}catch(t){}return n}},function(t,e,n){var r=n(3),o=n(67).set;t.exports=function(t,e,n){var i,a=e.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(t,i),t}},function(t,e,n){var r=n(3),o=n(9),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(14)(Function.call,n(68).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){var r=n(69),o=n(17),i=n(15),a=n(30),c=n(10),s=n(28),u=Object.getOwnPropertyDescriptor;e.f=n(4)?u:function(t,e){if(t=i(t),e=a(e,!0),s)try{return u(t,e)}catch(t){}if(c(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){n(24),n(31),n(37),n(71),t.exports=n(5).Set},function(t,e,n){"use strict";var r=n(39),o=n(23);t.exports=n(44)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e){!function(t){for(var e=0,n=["ms","moz","webkit","o"],r=0;r<n.length&&!t.requestAnimationFrame;++r)t.requestAnimationFrame=t[n[r]+"RequestAnimationFrame"],t.cancelAnimationFrame=t[n[r]+"CancelAnimationFrame"]||t[n[r]+"CancelRequestAnimationFrame"];t.requestAnimationFrame||(t.requestAnimationFrame=function(n,r){var o=(new Date).getTime(),i=Math.max(0,16-(o-e)),a=t.setTimeout((function(){n(o+i)}),i);return e=o+i,a}),t.cancelAnimationFrame||(t.cancelAnimationFrame=function(t){clearTimeout(t)})}(window)},function(t,e,n){"use strict";n.r(e);var r=n(0),o=n.n(r);function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=function(t,e){var n;return function(){var r=this,o=arguments,i=function(){n=!1};n||(t.apply(r,o),n=!0,setTimeout(i,e))}},c=function(t){if(function(t){return t&&null===t.offsetParent}(t)||!t)return!1;var e="undefined"!=typeof window?window.pageYOffset:0,n="undefined"!=typeof window?window.pageXOffset:0,r="undefined"!=typeof window?e+window.innerHeight:0,o="undefined"!=typeof window?n+window.innerWidth:0,i=function(t){if(t&&t.getBoundingClientRect){var e=t.getBoundingClientRect();return{top:"undefined"!=typeof window?e.top+window.pageYOffset:0,left:"undefined"!=typeof window?e.left+window.pageXOffset:0,bottom:"undefined"!=typeof window?e.bottom+window.pageYOffset:0,right:"undefined"!=typeof window?e.right+window.pageXOffset:0}}return!1}(t)||{top:0,left:0};return(i.bottom>=e&&i.bottom<=r||i.top<=r&&i.top>=e||i.top<=e&&i.bottom>=r)&&(n<=i.left||o>=i.left)},s=function(t,e,n){var r=e.reduce((function(t,e){return t&&void 0!==t[e]?t[e]:void 0}),t);return void 0!==r?r:n},u=function(t,e,n){return n+t>=e.length?{wrap:n+t-e.length,diff:n+t}:{wrap:n+t,diff:n+t}},l=function(t,e,n){return n-t<0?{wrap:e.length+(n-t),diff:n-t}:{wrap:n-t,diff:n-t}},f=function(t,e,n,r){return n>r&&n<=u(t,e,r).diff||n<r&&u(t,e,r).wrap<r&&n<=u(t,e,r).wrap},p=function(t,e,n,r){return n<r&&n>=l(t,e,r).diff||n>r&&l(t,e,r).wrap>r&&n>=l(t,e,r).wrap},d=function(t,e,n,r){return r=r||t.length,e>=n||e-n>=0?e-n:t.length-n+e},h=function(t,e,n,r){return r=r||t.length,e<n||n-e>=0?n-e:t.length-e+n},g=function(t,e){return"flip"===t||"fade"===t?1:"book"===t?2:"carousel"===t&&parseInt(e,10)<3?3:parseInt(e,10)},y=function(t,e,n){var r=s(t,["height"],e),o=parseInt(r,10),i="string"==typeof r?r.match(/\D.+?$/)[0]:"px";return n?n(o,i):"".concat(o).concat(i)},v=function(t){return Object.keys(t).map((function(e){return"".concat(e,"(").concat(t[e],")")})).join(" ")},m=function(t,e){var n,r="".concat(t.slice(0,1).toUpperCase()).concat(t.slice(1));return i(n={},t,e),i(n,"ms".concat(r),e),i(n,"Webkit".concat(r),e),n},b=function(t){try{return decodeURIComponent(t)}catch(e){return t}},w=function(t,e){return(e&&e.clientHeight||"undefined"!=typeof window?window.innerHeight:1200)/100*t};function x(t){return(x="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})(t)}function S(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 O(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?S(Object(n),!0).forEach((function(e){T(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function k(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function P(t,e){return(P=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function j(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=L(t);if(e){var o=L(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return I(this,n)}}function I(t,e){return!e||"object"!==x(e)&&"function"!=typeof e?E(t):e}function E(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function L(t){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function T(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t} /* react-image-designer (c) Long Story Media @license MIT */var z=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&P(t,e)}(u,t);var e,n,i,s=j(u);function u(){var t;k(this,u);for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return T(E(t=s.call.apply(s,[this].concat(n))),"state",{src:t.props.placeholder||"",ref:Object(r.createRef)(),mounted:!1,onScreen:!1,lazy:void 0===t.props.lazy||t.props.lazy,styles:t.props.noImage?{}:{filter:"blur(5px)",transition:"filter 0.85s ease-in-out"}}),T(E(t),"throttleLoad",a((function(){return t.shouldLoad()}),500)),T(E(t),"shouldLoad",(function(){var e=t.props,n=e.src,r=e.timeout,o=t.state,i=o.ref,a=o.lazy;return!i.current||i.current&&!c(i.current)&&a?t.setState({loading:!0}):i.current.clientHeight<=0?t.setState({clientHeight:i.current.clientHeight}):void((i.current&&c(i.current)&&i.current.clientHeight>0||!a)&&setTimeout((function(){return t.loadImage(n)}),r))})),T(E(t),"onLoad",(function(){t.setState({src:t.props.src,styles:{transition:"filter 0.85s ease-in-out",filter:""},loaded:!0}),"undefined"!=typeof window&&window.removeEventListener("scroll",t.throttleLoad)})),T(E(t),"onError",(function(e){return t.props.onError&&t.props.onError(e)})),T(E(t),"loadImage",(function(e){if(t.image.src===t.state.src&&t.image.src&&t.state.src)return clearInterval(t.checkLocation);var n=t.props,r=n.srcset,o=n.sizes;t.image&&(t.image.onload=null,t.image.onerror=null);var i=new Image;t.image=i,i.onload=t.onLoad,i.onerror=t.onError,i.src=e,r&&(i.srcset=r,i.sizes=o),clearInterval(t.checkLocation)})),t}return e=u,(n=[{key:"componentDidUpdate",value:function(t,e){var n=this.state,r=n.ref,o=n.lazy,i=n.src,a=n.clientHeight;(i!==t.src&&r.current&&(o&&c(r.current)||!o)||a!==e.clientHeight&&r.current&&(o&&c(r.current)||!o))&&this.shouldLoad()}},{key:"componentDidMount",value:function(){var t=this;this.image=new Image;var e=this.state.lazy;this.setState({mounted:!0}),"undefined"!=typeof window&&(e&&window.addEventListener("scroll",this.throttleLoad),window.addEventListener("load",this.shouldLoad)),this.checkLocation=setInterval((function(){return t.shouldLoad()}),this.props.scanScreen||1e3)}},{key:"componentWillUnmount",value:function(){clearInterval(this.checkLocation),this.image&&(this.image.onload=null,this.image.onerror=null),this.state.lazy&&"undefined"!=typeof window&&window.removeEventListener("scroll",this.throttleLoad)}},{key:"render",value:function(){var t=this.props,e=t.style,n=t.className,r=t.contain,i=t.repeat,a=t.position,c=t.children,s=t.alt,u=t.tag,l=t.srcset,f=t.sizes,p=t.id,d=t.noImage,h=this.state,g=h.src,y=h.styles,v=h.ref,m=h.loaded,b="".concat(u||"img"),w="img"===u.toLowerCase(),x=O(O(O({},y),e),{},{backgroundColor:e&&e.backgroundColor||"transparent",backgroundImage:d||w?"":'url("'.concat(g,'")'),backgroundPosition:a||"center",backgroundOrigin:"initial",backgroundClip:"initial",backgroundAttachment:"initial",backgroundSize:r?"contain":"cover",backgroundRepeat:i?"repeat":"no-repeat",height:w?e&&e.height||"":e&&e.height||"200px"});return w?o.a.createElement(b,{alt:s||g,srcSet:m?l:"",sizes:m?f:"",src:g,style:x,className:n,id:p,ref:v},c):o.a.createElement(b,{style:x,className:n,id:p,ref:v},c)}}])&&_(e.prototype,n),i&&_(e,i),u}(r.PureComponent);function C(t){return(C="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})(t)}function M(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 A(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?M(Object(n),!0).forEach((function(e){U(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function D(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function R(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function F(t,e){return(F=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function H(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=W(t);if(e){var o=W(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return N(this,n)}}function N(t,e){return!e||"object"!==C(e)&&"function"!=typeof e?V(t):e}function V(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function W(t){return(W=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function U(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t} /* react-gallery-designer (c) Long Story Media @license MIT */n.d(e,"default",(function(){return q})),n.d(e,"ImageDesigner",(function(){return z})),"undefined"!=typeof window&&(n(45),n(70),n(72));var q=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&F(t,e)}(c,t);var e,n,i,a=H(c);function c(){var t;D(this,c);for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return U(V(t=a.call.apply(a,[this].concat(n))),"state",{isPaused:!0,slide:0,images:[],arrowOpacity:0,zoomedIn:!1,touchX:0,ref:Object(r.createRef)()}),U(V(t),"settings",{inview:s(t.props,["settings","inview"],1),auto:s(t.props,["settings","auto"],!0),noImages:s(t.props,["settings","noImages"]),playpause:s(t.props,["settings","playpause"]),pauseonhover:s(t.props,["settings","pauseonhover"]),direction:s(t.props,["settings","direction"],"left"),orientation:s(t.props,["settings","orientation"],"horizontal"),animation:s(t.props,["settings","animation"],"slide"),speed:s(t.props,["settings","speed"],2e3),timingfn:s(t.props,["settings","timingfn"],"ease-in-out"),transitionspeed:s(t.props,["settings","transitionspeed"],.25),arrows:s(t.props,["settings","arrows"]),advance:s(t.props,["settings","advance"],1),startposition:s(t.props,["settings","startposition"],"center"),showcaptions:s(t.props,["settings","showcaptions"]),linkslides:s(t.props,["settings","linkslides"]),thumbnails:s(t.props,["settings","thumbnails"]),lightbox:s(t.props,["settings","lightbox"]),contain:s(t.props,["settings","contain"]),playIcon:s(t.props,["settings","playIcon"],"&#9654;"),pauseIcon:s(t.props,["settings","pauseIcon"],"&#9208;"),nextIcon:s(t.props,["settings","nextIcon"],"&#8250;"),prevIcon:s(t.props,["settings","prevIcon"],"&#8249;"),imagePercentHigh:s(t.props,["settings","imagePercentHigh"],s(t.props,["settings","thumbnails"])?80:100),thumbPercentHigh:s(t.props,["settings","thumbPercentHigh"],s(t.props,["settings","thumbnails"])?15:0),lbSmallPercentHigh:s(t.props,["settings","lbSmallPercentHigh"],30),tag:s(t.props,["settings","tag"],"div")}),U(V(t),"setThumbId",(function(e){for(var n=t.props.images,r=t.state.images.length/n.length,o=[];r>0;)o.push(e+r*n.length-n.length),r--;return"thumbNailImg_"+o.join(",")})),U(V(t),"playPauseCtrl",(function(){var e,n,r,o=t.state.isPaused,i=t.settings,a=i.pauseonhover,c=i.pauseIcon,s=i.playIcon;return o?(e=s,n=t.play):(e=c,n=t.pause),a&&(r=n),{playPauseIcon:e,playPauseOnClick:n,playPauseOnHover:r}})),U(V(t),"setSlides",(function(e){var n=t.settings,r=n.inview,o=n.advance,i=n.animation,a=n.startposition,c=n.lightbox,s="flip"===i||"fade"===i?1:"book"===i?2:Number(o),u=Number(s),l=g(i,r),f=(l%2+1)%2,p=Math.floor(l/2)-f,d=e.length-Math.floor(l/2),h=e.length<l+2*u&&e.length>0,y=e.map((function(e,n){return A(A({},e),{},{isLoaded:!1,index:n,thumbId:t.setThumbId(n)})}));return h?t.setSlides(y.concat(y.map((function(t,e){return A(A({},t),{},{isLoaded:!1,index:e})})))):"left"===a?(t.setState({slide:p}),t.mapSlides(y,p)):"right"===a?(t.setState({slide:d}),t.mapSlides(y,d)):c?t.mapSlides(y,-1):t.mapSlides(y,0)})),U(V(t),"mapSlides",(function(e,n,r){var o=t.state.ref,i=t.settings,a=i.inview,c=i.animation,u=i.orientation,l=i.style,m=i.lightbox,b=i.imagePercentHigh,x=g(c,a),S=(x%2+1)%2,O=Math.floor(x/2)-S,k=Math.floor(e.length/2);return e.map((function(t,i){var g=d(e,t.index,n,k),x=h(e,t.index,n,k),_=f(O,e,t.index,n),P=p(O,e,t.index,n),j=f(k,e,t.index,n),I=p(k,e,t.index,n),E=("book"!==c||1!==x&&2!==x)&&("book"!==c||2!==g&&3!==g)?"flip"===c?100:0:200,L=100*(O+g)-E,T=100*(O-x)+E,z=s(o,["current"]),C=w(b,z),M=y(l,C,(function(t,e){return"".concat(t/a*(O+g)).concat(e)})),D=y(l,C,(function(t,e){return"".concat(t/a*(O-x)).concat(e)}));if(m)return t.index===n?A(A({},t),{},{isLoaded:!0}):t;if(t.index===n)return A(A({},t),{},{transform:v({translate:"flip"===c?"0, 0":"horizontal"===u?"".concat(100*O,"%, 0"):"0, ".concat(D),scale:"1",rotateY:"0"}),transformStyle:"preserve-3d",backfaceVisibility:"hidden",transformOrigin:"book"===c?"right":"center",visibility:"visible",opacity:1,isLoaded:!0,zIndex:"book"===c?5:"carousel"===c?10:""});if(j){var R=_||g===O+S||i===n+S||0===i&&n===e.length-1&&S>0;return A(A({},t),{},{transform:v({translate:"flip"===c?"0, 0":"horizontal"===u?"".concat(L,"%, 0"):"0, ".concat(M),scale:"carousel"===c?"".concat(1/(2*O)*(2*O-g+S)):"1",rotateY:"flip"===c||2===g&&"book"===c?"180deg":"carousel"===c?"".concat(90/(O+1)*(g-S),"deg"):"0"}),transformStyle:"preserve-3d",backfaceVisibility:"hidden",transformOrigin:"book"===c?1===g?"left":"right":"carousel"===c?"".concat(-100*Math.log10(g-S),"%"):"center",visibility:R||"book"===c&&g<=2?"visible":"hidden",opacity:R||"book"===c&&g<=3?1:0,isLoaded:R||s(r,[t.index,"isLoaded"],!1),zIndex:"carousel"!==c&&"book"!==c||1!==g?"carousel"!==c&&"book"!==c||2!==g?"carousel"===c&&g>=O+S?-1:"":6:7})}return A(A({},t),{},I?{transform:v({translate:"flip"===c?"0, 0":"horizontal"===u?"".concat(T,"%, 0"):"0, ".concat(D),scale:"carousel"===c?"".concat(1/(2*O)*(2*O-x)):"1",rotateY:"flip"===c||1===x&&"book"===c?"180deg":"carousel"===c?"".concat(90/(O+1)*x,"deg"):"0"}),transformStyle:"preserve-3d",backfaceVisibility:"hidden",transformOrigin:"book"===c?"left":"carousel"===c?"".concat(100+100*Math.log10(x),"%"):"center",visibility:P||"book"===c&&x<=1?"visible":"hidden",opacity:P||"book"===c&&x<=3?1:0,isLoaded:P||s(r,[t.index,"isLoaded"],!1),zIndex:"carousel"!==c&&"book"!==c||1!==x?"carousel"===c&&x>=O?-1:"":8}:{transform:v({translate:"carousel"===c?"0, 0":"".concat(100*k,"%, 0"),scale:"carousel"===c?".5":"1",rotateY:"0"}),transformStyle:"preserve-3d",backfaceVisibility:"hidden",transformOrigin:"book"===c?"left":"center",opacity:0,visibility:"hidden",zIndex:""})}))})),U(V(t),"slide",(function(e){var n=t.state,r=n.slide,o=n.images,i=n.isPaused,a=t.settings,c=a.advance,s=a.animation,u="flip"===s||"fade"===s?1:"book"===s?2:parseInt(c,10);t.setState((function(n){if(n.slide===r){var a=i||"carousel"===s?r===o.length-1&&"book"!==s||"book"===s&&r===o.length-2?0:"book"===s&&r===o.length-1?1:"book"===s?r+2:r+1:r+u>=o.length?r+u-o.length+0:r+u,c=i||"carousel"===s?0===r&&"book"!==s||"book"===s&&1===r?o.length-1:"book"===s&&0===r?o.length-2:"book"===s?r-2:r-1:r-u<0?o.length+(r-u+0):r-u,l="next"===e?a:"prev"===e?c:a;return{slide:l,images:t.mapSlides(o,l,n.images)}}}))})),U(V(t),"play",(function(){var e=t.settings,n=e.direction,r=e.speed,o="left"===n||"up"===n?"next":"prev";t.setState({isPaused:!1}),t.newSlide=setInterval((function(){return t.slide(o)}),r)})),U(V(t),"pause",(function(){t.setState({isPaused:!0}),clearInterval(t.newSlide)})),U(V(t),"playPause",(function(e){e.preventDefault();var n=e.target.id;return"play"===n?t.play():"pause"===n?t.pause():t.play()})),U(V(t),"arrow",(function(e){e.preventDefault();var n=t.settings.pauseonhover,r=t.state.isPaused;return clearInterval(t.newSlide),t.slide(e.currentTarget.id),!r&&!n&&(r?t.play():t.pause())})),U(V(t),"arrowToggle",(function(){return t.setState((function(){return{arrowOpacity:1===t.state.arrowOpacity?0:1}}))})),U(V(t),"touchStart",(function(e){var n=e.touches[0].clientX;t.setState({touchX:n})})),U(V(t),"touchEnd",(function(e){var n=t.state.touchX,r=e.changedTouches[0].clientX<n?"next":"prev";return clearInterval(t.newSlide),t.slide(r)})),U(V(t),"zoom",(function(){return t.setState({zoomedIn:!t.state.zoomedIn})})),U(V(t),"onThumbnailClick",(function(e){var n=t.state,r=n.slide,o=n.images,i=e.currentTarget.id.split("thumbNailImg_").pop().split(",").map((function(t){return Number(t)})),a=function(t){return h(o,t,r)<d(o,t,r)?h(o,t,r):d(o,t,r)},c=i.reduce((function(t,e){return a(t)<a(e)?t:e}));t.setState((function(e){return{slide:c,images:t.mapSlides(o,c,e.images),zoomedIn:t.settings.lightbox&&!0}}))})),t}return e=c,(n=[{key:"componentDidMount",value:function(){var t=this.settings,e=t.auto,n=t.lightbox,r=this.props.images.sort((function(t,e){return t.index-e.index}));return this.setState({images:this.setSlides(r)}),this.playPauseCtrl(),e&&!n&&this.play()}},{key:"componentWillUnmount",value:function(){clearInterval(this.newSlide)}},{key:"componentDidUpdate",value:function(t,e){var n=this.state,r=n.zoomedIn,o=n.slide,i=n.images;this.settings.lightbox&&!r&&e.zoomedIn&&o>=0&&this.setState({images:i.map((function(t){return A(A({},t),{},{isLoaded:!1})}))})}},{key:"render",value:function(){var t=this,e=this.state,n=e.images,r=e.isPaused,i=e.arrowOpacity,a=e.zoomedIn,c=e.slide,u=e.ref,l=this.settings,f=l.animation,p=l.transitionspeed,d=l.timingfn,h=l.showcaptions,g=l.linkslides,y=l.inview,v=l.arrows,x=l.contain,S=l.playpause,O=l.nextIcon,k=l.prevIcon,_=l.thumbnails,P=l.lightbox,j=l.tag,I=l.noImages,E=l.orientation,L=l.thumbPercentHigh,T=l.imagePercentHigh,C=l.lbSmallPercentHigh,M=this.props,D=M.style,R=M.thumbnailStyle,F=M.imgStyle,H=M.captionStyle,N=M.lightboxStyle,V=M.controlStyle,W=M.className,U=M.imgClass,q=M.captionClass,G=M.thumbnailClass,X=M.controlClass,Y=M.id,B=this.playPauseCtrl(),K=(B.playPauseOnHover,B.playPauseIcon),$=B.playPauseOnClick,J="flip"===f||"fade"===f?1:"book"===f?2:"carousel"===f&&parseInt(y,10)<3?3:parseInt(y,10),Q=function(t){return"fade"!==f?A(A(A({},m("transform",t.transform)),{},{visibility:t.visibility,zIndex:t.zIndex},m("transformOrigin",t.transformOrigin)),m("backfaceVisibility",t.backfaceVisibility)):{opacity:t.opacity,zIndex:t.zIndex}},Z="fade"===f?"opacity ".concat(p,"s ").concat(d,", visibility ").concat(p,"s ").concat(d):"transform ".concat(p,"s ").concat(d,", visibility ").concat(p,"s ").concat(d,", transform-origin ").concat(p,"s ").concat(d),tt=P?w(C):w(L,s(u,["current"])),et=s(R,["height"],"".concat(tt,"px")),nt="calc(".concat(w(50),"px - ").concat(et,")"),rt="calc(".concat(s(D,["height"],nt)," - ").concat(1.1*parseInt(et,10),"px)"),ot="".concat(w(T,s(u,["current"])),"px"),it="calc(".concat(rt," / ").concat(J,")"),at="vertical"===E?it:ot,ct=g&&!P?"a":"span",st=A(A({fontSize:"1.25em",top:"45%",position:"absolute",opacity:P?1:i},m("transition","opacity ease-in-out 0.25s")),{},{backgroundColor:"rgba(150, 150, 150, 0.5)",width:"auto",height:"1.35em",textAlign:"center",cursor:"pointer",zIndex:P?21:11}),ut=function(t,e){return{src:t.src,noImage:I,srcset:t.srcset,sizes:t.sizes,placeholder:s(t,["placeholder"],t.src),id:"img-".concat(e),style:A(A(A({backgroundColor:"book"===f||I?s(F,["backgroundColor"],"#fff"):s(F,["backgroundColor"]),margin:P?"5vh auto":"",visibility:t.visibility,opacity:"fade"!==f?1:t.opacity},m("transition",Z)),{},{height:at,maxHeight:P?"90vh":"",maxWidth:P?"90vw":""},F),t.style),className:U,contain:x,tag:j,lazy:!0}};return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:W,onMouseEnter:P?function(){return null}:this.arrowToggle,onMouseLeave:P?function(){return null}:this.arrowToggle,onTouchStart:this.touchStart,onTouchEnd:this.touchEnd,style:A(A(A({},m("transition",Z)),{},{display:"flex",overflow:P?"auto":"hidden",position:s(D,["position"],"relative"),width:s(D,["width"],"100%")},D),{},{height:P?"":rt},a?A({position:"fixed",height:"100vh",width:"100vw",top:0,bottom:0,left:0,right:0,margin:"auto",zIndex:20,backgroundColor:"#000"},N):{}),id:Y,ref:u},n&&n.map((function(e,n){return o.a.createElement(ct,{key:"".concat(e.id,"-").concat(n),id:["slideBox",n].join("-"),onClick:P?t.zoom:function(){return null},className:"hidden"!==e.visibility?"react-gallery-slide active":"react-gallery-slide",style:A(A(A(A({},Q(e)),{},{width:"horizontal"!==E||P?"100%":"".concat(100/J,"%")},m("transition",Z)),m("transformStyle",e.transformStyle)),{},{position:"absolute",display:P&&!a?"none":"block",zIndex:P&&a&&e.index===c?20:"",textAlign:"center",cursor:P?a?"zoom-out":"zoom-in":g?"pointer":"auto"}),href:g?/^https?:\/\//.test(b(e.link))||/^\//.test(b(e.link))?b(e.link):"http://".concat(b(e.link)):"",target:e.target?"_blank":"",rel:e.target?"noopener noreferrer":""},e.children,e.isLoaded&&("img"!==j?o.a.createElement(z,ut(e,n),h&&o.a.createElement("div",{className:q,dangerouslySetInnerHTML:{__html:b(e.caption)},style:A(A({visibility:e.visibility,opacity:"fade"!==f?1:e.opacity},m("transition",Z)),H)})):o.a.createElement(z,ut(e,n))))})),(v&&!P||P&&a)&&o.a.createElement(o.a.Fragment,null,o.a.createElement("span",{onClick:this.arrow,id:"prev",className:X,dangerouslySetInnerHTML:{__html:k},style:A(A({left:"0"},st),V)}),o.a.createElement("span",{onClick:this.arrow,id:"next",className:X,dangerouslySetInnerHTML:{__html:O},style:A(A({right:"0"},st),V)})),S&&!P&&o.a.createElement("span",{onClick:$,id:r?"play":"pause",className:X,dangerouslySetInnerHTML:{__html:K},style:A(A({top:"0",left:"0",position:"absolute",opacity:i},m("transition","opacity ease-in-out 0.25s")),{},{backgroundColor:"rgba(150, 150, 150, 0.5)",cursor:"pointer",zIndex:11},V)})),(_||P)&&o.a.createElement("div",{className:G,style:A(A({},R),{},{display:"flex",flexFlow:"row ".concat(P?"wrap":""),position:"relative",bottom:0,margin:"0 auto",width:"100%",justifyContent:"space-around"})},n&&this.props.images.map((function(e,n){return n>=0&&o.a.createElement("div",{onClick:t.onThumbnailClick,id:t.setThumbId(n),key:["thumb",n].join("-"),style:{width:P?"":"100%",margin:P?"25px":"",maxWidth:P?"":"".concat(100/t.props.images.length,"%"),cursor:"pointer",zIndex:11,position:"relative",height:et,textAlign:"center"}},o.a.createElement(z,{src:e.src,placeholder:e.placeholder?e.placeholder:e.src,srcset:e.srcset,id:e.thumbId,style:A({height:et,margin:"auto",maxWidth:"90%"},R),tag:"img"}))}))))}}])&&R(e.prototype,n),i&&R(e,i),c}(r.PureComponent)}]);