You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
22 KiB
JavaScript
2 lines
22 KiB
JavaScript
2 months ago
|
/*! For license information please see ext.isekai.masonry.js.LICENSE.txt */
|
||
|
(()=>{var t={388:(t,i,e)=>{var n,o;!function(s,r){"use strict";void 0===(o="function"==typeof(n=r)?n.call(i,e,i,t):n)||(t.exports=o)}(window,(function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var i=["webkit","moz","ms","o"],e=0;e<i.length;e++){var n=i[e]+"MatchesSelector";if(t[n])return n}}();return function(i,e){return i[t](e)}}))},285:function(t,i,e){var n,o;"undefined"!=typeof window&&window,void 0===(o="function"==typeof(n=function(){"use strict";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 s=e[o];n&&n[s]&&(this.off(t,s),delete n[s]),s.apply(this,i)}return this}},i.allOff=function(){delete this._events,delete this._onceEvents},t})?n.call(i,e,i,t):n)||(t.exports=o)},982:(t,i,e)=>{var n,o;!function(s,r){n=[e(388)],o=function(t){return function(t,i){"use strict";var e={extend:function(t,i){for(var e in i)t[e]=i[e];return t},modulo:function(t,i){return(t%i+i)%i}},n=Array.prototype.slice;e.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?n.call(t):[t]},e.removeFrom=function(t,i){var e=t.indexOf(i);-1!=e&&t.splice(e,1)},e.getParent=function(t,e){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,i(t,e))return t},e.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},e.handleEvent=function(t){var i="on"+t.type;this[i]&&this[i](t)},e.filterFindElements=function(t,n){t=e.makeArray(t);var o=[];return t.forEach((function(t){if(t instanceof HTMLElement)if(n){i(t,n)&&o.push(t);for(var e=t.querySelectorAll(n),s=0;s<e.length;s++)o.push(e[s])}else o.push(t)})),o},e.debounceMethod=function(t,i,e){e=e||100;var n=t.prototype[i],o=i+"Timeout";t.prototype[i]=function(){var t=this[o];clearTimeout(t);var i=arguments,s=this;this[o]=setTimeout((function(){n.apply(s,i),delete s[o]}),e)}},e.docReady=function(t){var i=document.readyState;"complete"==i||"interactive"==i?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},e.toDashed=function(t){return t.replace(/(.)([A-Z])/g,(function(t,i,e){return i+"-"+e})).toLowerCase()};var o=t.console;return e.htmlInit=function(i,n){e.docReady((function(){var s=e.toDashed(n),r="data-"+s,a=document.querySelectorAll("["+r+"]"),h=document.querySelectorAll(".js-"+s),u=e.makeArray(a).concat(e.makeArray(h)),l=r+"-options",d=t.jQuery;u.forEach((function(t){var e,s=t.getAttribute(r)||t.getAttribute(l);try{e=s&&JSON.parse(s)}catch(i){return void(o&&o.error("Error parsing "+r+" on "+t.className+": "+i))}var a=new i(t,e);d&&d.data(t,n,a)}))}))},e}(s,t)}.apply(i,n),void 0===o||(t.exports=o)}(window)},232:(t,i,e)=>{var n,o;window,void 0===(o="function"==typeof(n=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 s,r=!1;function a(i){if(function(){if(!r){r=!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)
|