15 lines
23 KiB
JavaScript
15 lines
23 KiB
JavaScript
![]() |
!function(t,i){for(var e in i)t[e]=i[e]}(window,function(t){var i={};function e(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,i){if(1&i&&(t=e(t)),8&i)return t;if(4&i&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var o in t)e.d(n,o,function(i){return t[i]}.bind(null,o));return n},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},e.p="",e(e.s=197)}({197:function(t,i,e){"use strict";e.r(i);var n=e(3);e.d(i,"Masonry",(function(){return n}))},198:function(t,i){t.exports=window.jQuery},3:function(t,i,e){var n,o,r,s,a,h,u,l,d,c,f,p,m,g,y;
|
||
|
/*!
|
||
|
* Masonry PACKAGED v4.2.2
|
||
|
* Cascading grid layout library
|
||
|
* https://masonry.desandro.com
|
||
|
* MIT License
|
||
|
* by David DeSandro
|
||
|
*/
|
||
|
!function(n,o){g=[e(198)],void 0===(y=function(t){return function(t,i){"use strict";var e=Array.prototype.slice,n=t.console,o=void 0===n?function(){}:function(t){n.error(t)};function r(n,r,a){function h(t,i,e){var r,s="$()."+n+'("'+i+'")';return t.each((function(t,h){var u=a.data(h,n);if(u){var l=u[i];if(l&&"_"!=i.charAt(0)){var d=l.apply(u,e);r=void 0===r?d:r}else o(s+" is not a valid method")}else o(n+" not initialized. Cannot call methods, i.e. "+s)})),void 0!==r?r:t}function u(t,i){t.each((function(t,e){var o=a.data(e,n);o?(o.option(i),o._init()):(o=new r(e,i),a.data(e,n,o))}))}(a=a||i||t.jQuery)&&(r.prototype.option||(r.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[n]=function(t){if("string"==typeof t){var i=e.call(arguments,1);return h(this,t,i)}return u(this,t),this},s(a))}function s(t){!t||t&&t.bridget||(t.bridget=r)}return s(i||t.jQuery),r}(n,t)}.apply(i,g))||(t.exports=y)}(window),"undefined"!=typeof window&&window,r={id:"ev-emitter/ev-emitter",exports:{},loaded:!1},n="function"==typeof(o=function(){function t(){}var i=t.prototype;return i.on=function(t,i){if(t&&i){var e=this._events=this._events||{},n=e[t]=e[t]||[];return-1==n.indexOf(i)&&n.push(i),this}},i.once=function(t,i){if(t&&i){this.on(t,i);var e=this._onceEvents=this._onceEvents||{};return(e[t]=e[t]||{})[i]=!0,this}},i.off=function(t,i){var e=this._events&&this._events[t];if(e&&e.length){var n=e.indexOf(i);return-1!=n&&e.splice(n,1),this}},i.emitEvent=function(t,i){var e=this._events&&this._events[t];if(e&&e.length){e=e.slice(0),i=i||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<e.length;o++){var r=e[o];n&&n[r]&&(this.off(t,r),delete n[r]),r.apply(this,i)}return this}},i.allOff=function(){delete this._events,delete this._onceEvents},t})?o.call(r.exports,e,r.exports,r):o,r.loaded=!0,void 0!==n||(n=r.exports),window,h={id:"get-size/get-size",exports:{},loaded:!1},s="function"==typeof(a=function(){"use strict";function t(t){var i=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(i)&&i}var i="undefined"==typeof console?function(){}:function(t){console.error(t)},e=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],n=e.length;function o(t){var e=getComputedStyle(t);return e||i("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}var r,s=!1;function a(i){if(function(){if(!s){s=!0;var i=document.createElement("div");i.style.width="200px",i.style.padding="1px 2px 3px 4px",i.style.borderStyle="solid",i.style.borderWidth="1px 2px 3px 4px",i.style.boxSizing="border-box";var e=document.body||document.documentElement;e.appendChild(i);var n=o(i);r=200==Math.round(t(n.width)),a.isBoxSizeOuter=r,e.removeChild(i)}}(),"string"==typeof i&&(i=document.querySelector(i)),i&&"object"==typeof i&&i.nodeType){var h=o(i);if("none"==h.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},i=0;i<n;i++)t[e[i]]=0;return t}();var u={};u.width=i.offsetWidth,u.height=i.offsetHeight;for(var l=u.isBorderBox="border-box"==h.boxSizing,d=0;d<n;d++){var c=e[d],f=h[c],p=parseFloat(f);u[c]=isNaN(p)?0:p}var m=u.paddingLeft+u.paddingRight,g=u.paddingTop+u.paddingBottom,y=u.marginLeft+u.marginRight,v=u.marginTop+u.marginBottom,_=u.borderLeftWidth+u.borderRightWidth,b=u.borderTopWidth+u.borderBottomWidth,E=l&&r,x=t(h.width);!1!==x&&(u.width=x+(E?0:m+_));var z=t(h.height);return!1!==z&&(u.height=z+(E?0:g+b)),u.innerWidth=u.width-(m+_),u.innerHeight=u.height-(g+b),u.outerWidth=u.width+y,u.outerHeight=u.height+v,u}}return a})?a.call(h.exports,e,h.exports,h):a,h.loaded=!0,void 0!==s||(s=h.exports),function(t,i){"use strict";d={id:"desandro-matches-selector/matches-selector",exports:{},loaded:!1},u="function"==typeof(l=i)?l.call(d.exports,e,d.exports,d):l,d.loaded=!0,void 0!==u||(u=d.exports)}(window,(function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)retur
|
||
|
/*!
|
||
|
* Outlayer v2.1.1
|
||
|
* the brains and guts of a layout library
|
||
|
* MIT license
|
||
|
*/
|
||
|
function(t,e){"use strict";p=function(i,e,n,o){return function(t,i,e,n,o){var r=t.console,s=t.jQuery,a=function(){},h=0,u={};function l(t,i){var e=n.getQueryElement(t);if(e){this.element=e,s&&(this.$element=s(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(i);var o=++h;this.element.outlayerGUID=o,u[o]=this,this._create(),this._getOption("initLayout")&&this.layout()}else r&&r.error("Bad element for "+this.constructor.namespace+": "+(e||t))}l.namespace="outlayer",l.Item=o,l.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var d=l.prototype;function c(t){function i(){t.apply(this,arguments)}return i.prototype=Object.create(t.prototype),i.prototype.constructor=i,i}n.extend(d,i.prototype),d.option=function(t){n.extend(this.options,t)},d._getOption=function(t){var i=this.constructor.compatOptions[t];return i&&void 0!==this.options[i]?this.options[i]:this.options[t]},l.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},d._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},d.reloadItems=function(){this.items=this._itemize(this.element.children)},d._itemize=function(t){for(var i=this._filterFindItemElements(t),e=this.constructor.Item,n=[],o=0;o<i.length;o++){var r=new e(i[o],this);n.push(r)}return n},d._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},d.getItemElements=function(){return this.items.map((function(t){return t.element}))},d.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),i=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,i),this._isLayoutInited=!0},d._init=d.layout,d._resetLayout=function(){this.getSize()},d.getSize=function(){this.size=e(this.element)},d._getMeasurement=function(t,i){var n,o=this.options[t];o?("string"==typeof o?n=this.element.querySelector(o):o instanceof HTMLElement&&(n=o),this[t]=n?e(n)[i]:o):this[t]=0},d.layoutItems=function(t,i){t=this._getItemsForLayout(t),this._layoutItems(t,i),this._postLayout()},d._getItemsForLayout=function(t){return t.filter((function(t){return!t.isIgnored}))},d._layoutItems=function(t,i){if(this._emitCompleteOnItems("layout",t),t&&t.length){var e=[];t.forEach((function(t){var n=this._getItemLayoutPosition(t);n.item=t,n.isInstant=i||t.isLayoutInstant,e.push(n)}),this),this._processLayoutQueue(e)}},d._getItemLayoutPosition=function(){return{x:0,y:0}},d._processLayoutQueue=function(t){this.updateStagger(),t.forEach((function(t,i){this._positionItem(t.item,t.x,t.y,t.isInstant,i)}),this)},d.updateStagger=function(){var t=this.options.stagger;if(null!=t)return this.stagger=function(t){if("number"==typeof t)return t;var i=t.match(/(^\d*\.?\d*)(\w*)/),e=i&&i[1],n=i&&i[2];if(!e.length)return 0;return(e=parseFloat(e))*(f[n]||1)}(t),this.stagger;this.stagger=0},d._positionItem=function(t,i,e,n,o){n?t.goTo(i,e):(t.stagger(o*this.stagger),t.moveTo(i,e))},d._postLayout=function(){this.resizeContainer()},d.resizeContainer=function(){if(this._getOption("resizeContainer")){var t=this._getContainerSize();t&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))}},d._getContainerSize=a,d._setContainerMeasure=function(t,i){if(void 0!==t){var e=this.size;e.isBorderBox&&(t+=i?e.paddingLeft+e.paddingRight+e.borderLeftWidth+e.borderRightWidth:e.paddingBottom+e.paddingTop+e.borderTopWidth+e.borderBottomWidth),t=Math.max(t,0),this.element.style[i?"width":"height"]=t+"px"}},d._emitCompleteOnItems=function(t,i){var e=this;function n(){e.dispatchEvent(t+"Complete",null,[i])}var o=i.length;if(i&&o){var r=0;i.forEach((function(i){i.once(t,s)}))}else n();functio
|