Yaffs site version 1.1
[yaffs-website] / web / modules / contrib / blazy / js / dblazy.min.js
index aeec0456270b6362c99457d4998c8d1d83dad5b6..2309d5b997ba1ac08f014f8b91e029410cadd13c 100644 (file)
@@ -2,4 +2,4 @@
  * @file
  * Cherries by @toddmotto, @cferdinandi, @adamfschwartz, @daniellmb.
  */
-!function(t,e){"use strict";"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?module.exports=e():t.dBlazy=e()}(this,function(){"use strict";var t={};return t.matches=function(t,e){var n=Element.prototype;return n.matches||(n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector||function(t){for(var e=(this.document||this.ownerDocument).querySelectorAll(t),n=e.length;--n>=0&&e.item(n)!==this;);return n>-1}),!!t.matches(e)},t.closest=function(e,n){for(;e&&e!==document;e=e.parentNode)if(t.matches(e,n))return e;return null},t.extend=Object.assign||function(t){t=t||{};for(var e=1,n=arguments.length;n>e;e++)if(arguments[e])for(var r in arguments[e])arguments[e].hasOwnProperty(r)&&(t[r]=arguments[e][r]);return t},t.forEach=function(t,e,n){var r=Object.prototype;if("[object Object]"===r.toString.call(t))for(var o in t)r.hasOwnProperty.call(t,o)&&e.call(n,t[o],o,t);else for(var c=0,i=t.length;i>c;c++)e.call(n,t[c],c,t)},t.on=function(e,n,r,o){e.addEventListener(n,function(e){for(var n=e.target;n&&n!==this;)t.matches(n,r)&&o.call(n,e),n=n.parentNode})},t.once=function(t){var e,n=!1;return function(){return n?e:(n=!0,e=t.apply(this,arguments),t=null,e)}},t.parse=function(t){try{return JSON.parse(t)}catch(e){return!1}},t.resize=function(t,e){return window.onresize=function(){window.clearTimeout(e),e=window.setTimeout(t,200)},t},t.trigger=function(t,e,n,r){var o;n=n||{},r=r||"MouseEvents";var c=function(t,e){return e=e||{},o=document.createEvent(e&&"object"==typeof e?"Event":r),o.initEvent(t,!0,!0,e),o};try{o=n?new CustomEvent(e,{detail:n}):c(e)}catch(i){o=c(e,n)}t.dispatchEvent(o)},t});
+!function(a,b){"use strict";"function"==typeof define&&define.amd?define([],b):"object"==typeof exports?module.exports=b():a.dBlazy=b()}(this,function(){"use strict";var a={};return a.matches=function(a,b){var c=Element.prototype;return c.matches||(c.matches=c.matchesSelector||c.mozMatchesSelector||c.msMatchesSelector||c.oMatchesSelector||c.webkitMatchesSelector||function(a){for(var b=(this.document||this.ownerDocument).querySelectorAll(a),c=b.length;--c>=0&&b.item(c)!==this;);return c>-1}),!!a.matches(b)},a.closest=function(b,c){for(;b&&b!==document;b=b.parentNode)if(a.matches(b,c))return b;return null},a.extend=Object.assign||function(a){a=a||{};for(var b=1,c=arguments.length;b<c;b++)if(arguments[b])for(var d in arguments[b])arguments[b].hasOwnProperty(d)&&(a[d]=arguments[b][d]);return a},a.forEach=function(a,b,c){var d=Object.prototype;if("[object Object]"===d.toString.call(a))for(var e in a)d.hasOwnProperty.call(a,e)&&b.call(c,a[e],e,a);else for(var f=0,g=a.length;f<g;f++)b.call(c,a[f],f,a)},a.hasClass=function(a,b){return a.classList?a.classList.contains(b):-1!==a.className.indexOf(b)},a.on=function(b,c,d,e){b.addEventListener(c,function(b){for(var c=b.target;c&&c!==this;)a.matches(c,d)&&e.call(c,b),c=c.parentNode})},a.once=function(a){var b,c=!1;return function(){return c?b:(c=!0,b=a.apply(this,arguments),a=null,b)}},a.parse=function(a){try{return JSON.parse(a)}catch(a){return!1}},a.resize=function(a,b){return window.onresize=function(){window.clearTimeout(b),b=window.setTimeout(a,200)},a},a.trigger=function(a,b,c,d){var e;c=c||{},d=d||"MouseEvents";var f=function(a,b){return b=b||{},e=document.createEvent(b&&"object"==typeof b?"Event":d),e.initEvent(a,!0,!0,b),e};try{e=c?new CustomEvent(b,{detail:c}):f(b)}catch(a){e=f(b,c)}a.dispatchEvent(e)},a});