!function(){"use strict";vare={1684:function(e){e.exports=functionmakeYoutubeEmbed(e){if("string"===typeofe){vart=functiongetId(e){vart=e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);if(t&&11==t[2].length)returnt[2]}(e);returnt?"//www.youtube.com/embed/"+t:void0}}}},t={};function__webpack_require__(n){vara=t[n];if(void0!==a)returna.exports;varo=t[n]={exports:{}};returne[n](o,o.exports,__webpack_require__),o.exports}!function(){vare="ajax-load",t="load-ready";function_typeof(e){return_typeof="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe},_typeof(e)}function_toConsumableArray(e){returnfunction_arrayWithoutHoles(e){if(Array.isArray(e))return_arrayLikeToArray(e)}(e)||function_iterableToArray(e){if("undefined"!==typeofSymbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])returnArray.from(e)}(e)||function_unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeofe)return_arrayLikeToArray(e,t);varn=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)returnArray.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return_arrayLikeToArray(e,t)}(e)||function_nonIterableSpread(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(varn=0,a=newArray(t);n<t;n++)a[n]=e[n];returna}function_defineProperties(e,t){for(varn=0;n<t.length;n++){vara=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"ina&&(a.writable=!0),Object.defineProperty(e,_toPropertyKey(a.key),a)}}function_defineProperty(e,t,n){return(t=_toPropertyKey(t))ine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function_toPropertyKey(e){vart=function_toPrimitive(e,t){if("object"!=_typeof(e)||!e)returne;varn=e[Symbol.toPrimitive];if(void0!==n){vara=n.call(e,t||"default");if("object"!=_typeof(a))returna;thrownewTypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_typeof(t)?t:t+""}varn=window,a=function(){returnfunction_createClass(e,t,n){returnt&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((functionMetaWindow(){vare=this,t=arguments.length>0&&void0!==arguments[0]?arguments[0]:{shown:!1},a=arguments.length>1?arguments[1]:void0;!function_classCallCheck(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}(this,MetaWindow),_defineProperty(this,"state",{content:"",type:["empty"],shown:!1,loading:!1,error:!1,embed:!1,collections:[],current:null,target:null,extraClass:null}),_defineProperty(this,"show",(function(){vart=e;console.log("".concat(t.name,": show")),t.setState({shown:!0}),n.dispatchEvent(newEvent("{ui.name}.show"))})),_defineProperty(this,"hide",(function(){vart=e;console.log("".concat(t.name,": hide")),t.setState({shown:!1}),n.dispatchEvent(newEvent("{ui.name}.hide"))})),_defineProperty(this,"next",(function(){vart=e,a=t.state.current.getAttribute("data-gallery"),o=t._currIndex();o<t.state.collections[a].length-1?o++:o=0,t.state.collections[a][o].click(),console.log("".concat(t.name,": next")),n.dispatchEvent(newEvent("{ui.name}.next"))})),_defineProperty(this,"prev",(function(){vart=e,a=t.state.current.getAttribute("data-gallery"),o=t._currIndex();o>0?o--:o=t.state.collections[a].length-1,t.state.collections[a][o].click(),console.log("".concat(t.name,": prev")),n.dispatchEvent(newEvent("{ui.name}.prev"))})),_defineProperty(this,"reset",(function(){e.setState({content:"",type:["empty"],shown:!1,loading:!1,error:!1,embed:!1})})),_defineProperty(this,"load",(function(t){vara=e;a.reset(),a.setState({loading:!0}),a.show(),window.fetch