2019-10-26 02:17:07 +02:00
/*! This file is auto-generated */
2021-05-19 17:09:27 +02:00
this . wp = this . wp || { } , this . wp . blockLibrary = function ( e ) { var t = { } ; function o ( n ) { if ( t [ n ] ) return t [ n ] . exports ; var r = t [ n ] = { i : n , l : ! 1 , exports : { } } ; return e [ n ] . call ( r . exports , r , r . exports , o ) , r . l = ! 0 , r . exports } return o . m = e , o . c = t , o . d = function ( e , t , n ) { o . o ( e , t ) || Object . defineProperty ( e , t , { enumerable : ! 0 , get : n } ) } , o . r = function ( e ) { "undefined" != typeof Symbol && Symbol . toStringTag && Object . defineProperty ( e , Symbol . toStringTag , { value : "Module" } ) , Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) } , o . t = function ( e , t ) { if ( 1 & t && ( e = o ( e ) ) , 8 & t ) return e ; if ( 4 & t && "object" == typeof e && e && e . _ _esModule ) return e ; var n = Object . create ( null ) ; if ( o . r ( n ) , Object . defineProperty ( n , "default" , { enumerable : ! 0 , value : e } ) , 2 & t && "string" != typeof e ) for ( var r in e ) o . d ( n , r , function ( t ) { return e [ t ] } . bind ( null , r ) ) ; return n } , o . n = function ( e ) { var t = e && e . _ _esModule ? function ( ) { return e . default } : function ( ) { return e } ; return o . d ( t , "a" , t ) , t } , o . o = function ( e , t ) { return Object . prototype . hasOwnProperty . call ( e , t ) } , o . p = "" , o ( o . s = 553 ) } ( [ function ( e , t ) { e . exports = window . wp . element } , function ( e , t ) { e . exports = window . wp . i18n } , function ( e , t ) { e . exports = window . lodash } , function ( e , t ) { e . exports = window . wp . primitives } , function ( e , t ) { e . exports = window . wp . components } , function ( e , t ) { e . exports = window . wp . data } , function ( e , t ) { e . exports = window . wp . blockEditor } , function ( e , t , o ) { "use strict" ; function n ( ) { return ( n = Object . assign || function ( e ) { for ( var t = 1 ; t < arguments . length ; t ++ ) { var o = arguments [ t ] ; for ( var n in o ) Object . prototype . hasOwnProperty . call ( o , n ) && ( e [ n ] = o [ n ] ) } return e } ) . apply ( this , arguments ) } o . d ( t , "a" , ( function ( ) { return n } ) ) } , function ( e , t ) { e . exports = window . wp . blocks } , function ( e , t , o ) { var n ;
2018-12-14 05:11:47 +01:00
/ * !
2021-04-15 17:19:43 +02:00
Copyright ( c ) 2018 Jed Watson .
2018-12-14 05:11:47 +01:00
Licensed under the MIT License ( MIT ) , see
http : //jedwatson.github.io/classnames
2021-05-19 17:09:27 +02:00
* /!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var c=r.apply(null,n);c&&e.push(c)}}else if("object"===a)if(n.toString===Object.prototype.toString)for(var l in n)o.call(n,l)&&n[l]&&e.push(l);else e.push(n.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},function(e,t){e.exports=window.wp.compose},function(e,t){e.exports=window.React},function(e,t){e.exports=window.wp.keycodes},,function(e,t){e.exports=window.wp.richText},,,,function(e,t){e.exports=window.wp.coreData},,function(e,t){e.exports=window.wp.url},function(e,t){e.exports=window.wp.hooks},function(e,t){e.exports=window.wp.editor},,function(e,t){e.exports=window.wp.deprecated},,,function(e,t){e.exports=window.wp.blob},,function(e,t){e.exports=window.moment},,,,function(e,t){e.exports=window.wp.apiFetch},,,function(e,t){e.exports=window.wp.notices},function(e,t,o){var n;!function(r){var a=/ ^ \ s + /,c=/ \ s + $ / , l = 0 , i = r . round , s = r . min , u = r . max , m = r . random ; function d ( e , t ) { if ( t = t || { } , ( e = e || "" ) instanceof d ) return e ; if ( ! ( this instanceof d ) ) return new d ( e , t ) ; var o = function ( e ) { var t = { r : 0 , g : 0 , b : 0 } , o = 1 , n = null , l = null , i = null , m = ! 1 , d = ! 1 ; "string" == typeof e && ( e = function ( e ) { e = e . replace ( a , "" ) . replace ( c , "" ) . toLowerCase ( ) ; var t , o = ! 1 ; if ( T [ e ] ) e = T [ e ] , o = ! 0 ; else if ( "transparent" == e ) return { r : 0 , g : 0 , b : 0 , a : 0 , format : "name" } ; if ( t = G . rgb . exec ( e ) ) return { r : t [ 1 ] , g : t [ 2 ] , b : t [ 3 ] } ; if ( t = G . rgba . exec ( e ) ) return { r : t [ 1 ] , g : t [ 2 ] , b : t [ 3 ] , a : t [ 4 ] } ; if ( t = G . hsl . exec ( e ) ) return { h : t [ 1 ] , s : t [ 2 ] , l : t [ 3 ] } ; if ( t = G . hsla . exec ( e ) ) return { h : t [ 1 ] , s : t [ 2 ] , l : t [ 3 ] , a : t [ 4 ] } ; if ( t = G . hsv . exec ( e ) ) return { h : t [ 1 ] , s : t [ 2 ] , v : t [ 3 ] } ; if ( t = G . hsva . exec ( e ) ) return { h : t [ 1 ] , s : t [ 2 ] , v : t [ 3 ] , a : t [ 4 ] } ; if ( t = G . hex8 . exec ( e ) ) return { r : V ( t [ 1 ] ) , g : V ( t [ 2 ] ) , b : V ( t [ 3 ] ) , a : I ( t [ 4 ] ) , format : o ? "name" : "hex8" } ; if ( t = G . hex6 . exec ( e ) ) return { r : V ( t [ 1 ] ) , g : V ( t [ 2 ] ) , b : V ( t [ 3 ] ) , format : o ? "name" : "hex" } ; if ( t = G . hex4 . exec ( e ) ) return { r : V ( t [ 1 ] + "" + t [ 1 ] ) , g : V ( t [ 2 ] + "" + t [ 2 ] ) , b : V ( t [ 3 ] + "" + t [ 3 ] ) , a : I ( t [ 4 ] + "" + t [ 4 ] ) , format : o ? "name" : "hex8" } ; if ( t = G . hex3 . exec ( e ) ) return { r : V ( t [ 1 ] + "" + t [ 1 ] ) , g : V ( t [ 2 ] + "" + t [ 2 ] ) , b : V ( t [ 3 ] + "" + t [ 3 ] ) , format : o ? "name" : "hex" } ; return ! 1 } ( e ) ) ; "object" == typeof e && ( U ( e . r ) && U ( e . g ) && U ( e . b ) ? ( b = e . r , p = e . g , g = e . b , t = { r : 255 * N ( b , 255 ) , g : 255 * N ( p , 255 ) , b : 255 * N ( g , 255 ) } , m = ! 0 , d = "%" === String ( e . r ) . substr ( - 1 ) ? "prgb" : "rgb" ) : U ( e . h ) && U ( e . s ) && U ( e . v ) ? ( n = H ( e . s ) , l = H ( e . v ) , t = function ( e , t , o ) { e = 6 * N ( e , 360 ) , t = N ( t , 100 ) , o = N ( o , 100 ) ; var n = r . floor ( e ) , a = e - n , c = o * ( 1 - t ) , l = o * ( 1 - a * t ) , i = o * ( 1 - ( 1 - a ) * t ) , s = n % 6 ; return { r : 255 * [ o , l , c , c , i , o ] [ s ] , g : 255 * [ i , o , o , l , c , c ] [ s ] , b : 255 * [ c , c , i , o , o , l ] [ s ] } } ( e . h , n , l ) , m = ! 0 , d = "hsv" ) : U ( e . h ) && U ( e . s ) && U ( e . l ) && ( n = H ( e . s ) , i = H ( e . l ) , t = function ( e , t , o ) { var n , r , a ; function c ( e , t , o ) { return o < 0 && ( o += 1 ) , o > 1 && ( o -= 1 ) , o < 1 / 6 ? e + 6 * ( t - e ) * o : o < . 5 ? t : o < 2 / 3 ? e + ( t - e ) * ( 2 / 3 - o ) * 6 : e } if ( e = N ( e , 360 ) , t = N ( t , 100 ) , o = N ( o , 100 ) , 0 === t ) n = r = a = o ; else { var l = o < . 5 ? o * ( 1 + t ) : o + t - o * t , i = 2 * o - l ; n = c ( i , l , e + 1 / 3 ) , r = c ( i , l , e ) , a = c ( i , l , e - 1 / 3 ) } return { r : 255 * n , g : 255 * r , b : 255 * a } } ( e . h , n , i ) , m = ! 0 , d = "hsl" ) , e . hasOwnProperty ( "a" ) && ( o = e . a ) ) ; var b , p , g ; return o = P ( o ) , { ok : m , format : e . format || d , r : s ( 255 , u ( t . r , 0 ) ) , g : s ( 255 , u ( t . g , 0 ) ) , b : s ( 255 , u ( t . b , 0 ) ) , a : o } } ( e ) ; this . _originalInput = e , this . _r = o . r , this . _g = o . g , this . _b = o . b , this . _a = o . a , this . _roundA = i ( 100 * this . _a ) / 100 , this . _format = t . format || o . format , this . _gradientType = t . gradientType , this . _r < 1 && ( this . _r = i ( this . _r ) ) , this . _g < 1 && ( this . _g = i ( this . _g ) ) , this . _b < 1 && ( this . _b = i ( this . _b ) ) , this . _ok = o . ok , this . _tc _id = l ++ } function b ( e , t , o ) { e = N ( e , 255 ) , t = N ( t , 255 ) , o = N ( o , 255 ) ; var n , r , a = u ( e , t , o ) , c = s ( e , t , o ) , l = ( a + c ) / 2 ; if ( a == c ) n = r = 0 ; else { var i = a - c ; switch ( r = l > . 5 ? i / ( 2 - a - c ) : i / ( a + c ) , a ) { case e : n = ( t - o ) / i + ( t < o ? 6 : 0 ) ; break ; case t : n = ( o - e ) / i + 2 ; break ; case o : n = ( e - t ) / i + 4 } n /= 6 } return { h : n , s : r , l : l } } function p ( e , t , o ) { e = N ( e , 255 ) , t = N ( t , 255 ) , o = N ( o , 255 ) ; var n , r , a = u ( e , t , o ) , c = s ( e , t , o ) , l = a , i = a - c ; if ( r = 0 === a ? 0 : i / a , a == c ) n = 0 ; else { switch ( a ) { case e : n = ( t - o ) / i + ( t < o ? 6 : 0 ) ; break ; case t : n = ( o - e ) / i + 2 ; break ; case o : n = ( e - t ) / i + 4 } n /= 6 } return { h : n , s : r , v : l } } function g ( e , t , o , n ) { var r = [ R ( i ( e ) . toString ( 16 ) ) , R ( i ( t ) . toString ( 16 ) ) , R ( i ( o ) . toString ( 16 ) ) ] ; return n && r [ 0 ] . charAt ( 0 ) == r [ 0 ] . charAt ( 1 ) && r [ 1 ] .
2021-01-28 03:04:13 +01:00
/ * !
2021-04-15 17:19:43 +02:00
Copyright ( c ) 2018 Jed Watson .
2021-01-28 03:04:13 +01:00
Licensed under the MIT License ( MIT ) , see
http : //jedwatson.github.io/classnames
2021-05-19 17:09:27 +02:00
* /!function(){"use strict";var o=function(){function e(){}function t(e,t){for(var o=t.length,n=0;n<o;++n)r(e,t[n])}e.prototype=Object.create(null);var o={}.hasOwnProperty;var n=/ \ s + /;function r(e,r){if(r){var a=typeof r;"string"===a?function(e,t){for(var o=t.split(n),r=o.length,a=0;a<r;++a)e[o[a]]=!0}(e,r):Array.isArray(r)?t(e,r):"object"===a?function(e,t){if(t.toString===Object.prototype.toString)for(var n in t)o.call(t,n)&&(e[n]=!!t[n]);else e[t.toString()]=!0}(e,r):"number"===a&&function(e,t){e[t]=!0}(e,r)}}return function(){for(var o=arguments.length,n=Array(o),r=0;r<o;r++)n[r]=arguments[r];var a=new e;t(a,n);var c=[];for(var l in a)a[l]&&c.push(l);return c.join(" ")}}();e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},,,,,,,,,,,,function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http:/ / www . w3 . org / 2000 / svg ",viewBox:" 0 0 24 24 "},Object(n.createElement)(r.Path,{d:" M12 13.06 l3 . 712 3.713 1.061 - 1.06 L13 . 061 12 l3 . 712 - 3.712 - 1.06 - 1.06 L12 10.938 8.288 7.227 l - 1.061 1.06 L10 . 939 12 l - 3.712 3.712 1.06 1.061 L12 13.061 z "}));t.a=a},function(e,t,o){" use strict ";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:" http : //www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));t.a=a},,function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"}));t.a=a},,,,,,,,,,,,function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=a},,function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(n.createElement)(r.Path,{d:"M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"}));t.a=a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));t.a=a},function(e,t,o){"use strict";var n=o(65);t.a=n.a},function(e,t,o){"use strict";var n=o(0),r=o(3);const a=Object(n.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(r.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"}));t.a=a},,,,,,,function(e,t){e.exports=wi
2019-10-15 17:37:08 +02:00
/*! Fast Average Color | © 2019 Denis Seleznev | MIT License | https://github.com/hcodes/fast-average-color/ */
2021-05-19 17:09:27 +02:00
e . exports = function ( ) { "use strict" ; function e ( e , t ) { for ( var o = 0 ; o < t . length ; o ++ ) { var n = t [ o ] ; n . enumerable = n . enumerable || ! 1 , n . configurable = ! 0 , "value" in n && ( n . writable = ! 0 ) , Object . defineProperty ( e , n . key , n ) } } function t ( e , t ) { return function ( e ) { if ( Array . isArray ( e ) ) return e } ( e ) || function ( e , t ) { var o = [ ] , n = ! 0 , r = ! 1 , a = void 0 ; try { for ( var c , l = e [ Symbol . iterator ] ( ) ; ! ( n = ( c = l . next ( ) ) . done ) && ( o . push ( c . value ) , ! t || o . length !== t ) ; n = ! 0 ) ; } catch ( e ) { r = ! 0 , a = e } finally { try { n || null == l . return || l . return ( ) } finally { if ( r ) throw a } } return o } ( e , t ) || function ( ) { throw new TypeError ( "Invalid attempt to destructure non-iterable instance" ) } ( ) } return function ( ) { function o ( ) { ! function ( e , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } ( this , o ) } var n , r , a ; return n = o , ( r = [ { key : "getColorAsync" , value : function ( e , t , o ) { e . complete ? t . call ( e , this . getColor ( e , o ) , o && o . data ) : this . _bindImageEvents ( e , t , o ) } } , { key : "getColor" , value : function ( e , t ) { t = t || { } ; var o = this . _getDefaultColor ( t ) , n = this . _getOriginalSize ( e ) , r = this . _prepareSizeAndPosition ( n , t ) , a = null , c = o ; if ( ! ( r . srcWidth && r . srcHeight && r . destWidth && r . destHeight ) ) return this . _prepareResult ( o , new Error ( "FastAverageColor: Incorrect sizes." ) ) ; if ( ! this . _ctx && ( this . _canvas = this . _makeCanvas ( ) , this . _ctx = this . _canvas . getContext && this . _canvas . getContext ( "2d" ) , ! this . _ctx ) ) return this . _prepareResult ( o , new Error ( "FastAverageColor: Canvas Context 2D is not supported in this browser." ) ) ; this . _canvas . width = r . destWidth , this . _canvas . height = r . destHeight ; try { this . _ctx . clearRect ( 0 , 0 , r . destWidth , r . destHeight ) , this . _ctx . drawImage ( e , r . srcLeft , r . srcTop , r . srcWidth , r . srcHeight , 0 , 0 , r . destWidth , r . destHeight ) ; var l = this . _ctx . getImageData ( 0 , 0 , r . destWidth , r . destHeight ) . data ; c = this . getColorFromArray4 ( l , t ) } catch ( e ) { a = e } return this . _prepareResult ( c , a ) } } , { key : "getColorFromArray4" , value : function ( e , t ) { t = t || { } ; var o = e . length ; if ( o < 4 ) return this . _getDefaultColor ( t ) ; var n = o - o % 4 , r = 4 * ( t . step || 1 ) , a = "_" + ( t . algorithm || "sqrt" ) + "Algorithm" ; if ( "function" != typeof this [ a ] ) throw new Error ( "FastAverageColor: " . concat ( t . algorithm , " is unknown algorithm." ) ) ; return this [ a ] ( e , n , r ) } } , { key : "destroy" , value : function ( ) { delete this . _canvas , delete this . _ctx } } , { key : "_getDefaultColor" , value : function ( e ) { return this . _getOption ( e , "defaultColor" , [ 255 , 255 , 255 , 255 ] ) } } , { key : "_getOption" , value : function ( e , t , o ) { return void 0 === e [ t ] ? o : e [ t ] } } , { key : "_prepareSizeAndPosition" , value : function ( e , t ) { var o , n = this . _getOption ( t , "left" , 0 ) , r = this . _getOption ( t , "top" , 0 ) , a = this . _getOption ( t , "width" , e . width ) , c = this . _getOption ( t , "height" , e . height ) , l = a , i = c ; return "precision" === t . mode || ( a > c ? ( o = a / c , l = 100 , i = Math . round ( l / o ) ) : ( o = c / a , i = 100 , l = Math . round ( i / o ) ) , ( l > a || i > c || l < 10 || i < 10 ) && ( l = a , i = c ) ) , { srcLeft : n , srcTop : r , srcWidth : a , srcHeight : c , destWidth : l , destHeight : i } } } , { key : "_simpleAlgorithm" , value : function ( e , t , o ) { for ( var n = 0 , r = 0 , a = 0 , c = 0 , l = 0 , i = 0 ; i < t ; i += o ) { var s = e [ i + 3 ] ; n += e [ i ] * s , r += e [ i + 1 ] * s , a += e [ i + 2 ] * s , c += s , l ++ } return c ? [ Math . round ( n / c ) , Math . round ( r / c ) , Math . round ( a / c ) , Math . round ( c / l ) ] : [ 0 , 0 , 0 , 0 ] } } , { key : "_sqrtAlgorithm" , value : function ( e , t , o ) { for ( var n = 0 , r = 0 , a = 0 , c = 0 , l = 0 , i = 0 ; i < t ; i += o ) { var s = e [ i ] , u = e [ i + 1 ] , m = e [ i + 2 ] , d = e [ i + 3 ] ; n += s * s * d , r += u * u * d , a += m * m * d , c += d , l ++ } return c ? [ Math . round ( Math . sqrt ( n / c ) ) , Math . round ( Math . sqrt ( r / c ) ) , Math . round ( Math . sqrt ( a / c ) ) , Math . round ( c / l ) ] : [ 0 , 0 , 0 , 0 ] } } , { key : "_dominantAlgorithm" , value : function ( e , o , n ) { for ( var r = { } , a = 0 ; a < o ; a += n ) { var c = e [ a ] , l = e [ a + 1 ] , i = e [ a + 2 ] , s = e [ a + 3 ] , u = Math . round ( c / 24 ) + "," + Math . round ( l / 24 ) + "," + Math . round ( i / 24 ) ; r [ u ] ? r [ u ] = [ r [ u ] [ 0 ] + c * s , r [ u ] [ 1 ] + l * s , r [ u ] [ 2 ] + i * s , r [ u ] [ 3 ] + s , r [ u ] [ 4 ] + 1 ] : r [ u ] = [ c * s , l * s , i * s , s , 1 ] } var m = t ( Object . keys ( r ) . map ( ( function ( e ) { return r [ e ] } ) ) . sort ( ( function ( e , t ) { var o = e [ 4 ] , n = t [ 4 ] ; return o > n ? - 1 : o === n ? 0 : 1 } ) ) [ 0 ] , 5 ) , d = m [ 0 ] , b = m [ 1 ] , p = m [ 2 ] , g = m [ 3 ] , h = m [ 4 ] ; return g ? [ Math . round ( d / g ) , Math . round ( b / g ) , Math . round ( p / g ) , Math . round ( g / h ) ] : [ 0 , 0 , 0 , 0 ] } } , { key : "_bindImageEvents" , value : function ( e , t , o ) { var n = this , r = ( o = o || { } ) && o . data , a = this . _getDefaultColor ( o ) , c = function ( ) { s ( ) , t . call ( e , n . getColor ( e , o ) , r ) } , l = function ( ) { s ( ) , t . call ( e , n . _prepareResult ( a , new Error ( "Image error" ) ) , r ) } , i = function ( ) { s ( ) , t . call ( e , n . _prepareResult ( a , new Error ( "Image abort" ) ) , r ) } , s = function ( ) { e . removeEventListener ( "load" , c ) , e . remo
2020-12-01 13:19:43 +01:00
/ * *
* Checks if an event is supported in the current execution environment .
*
* NOTE : This will not work correctly for non - generic events such as ` change ` ,
* ` reset ` , ` load ` , ` error ` , and ` select ` .
*
* Borrows from Modernizr .
*
* @ param { string } eventNameSuffix Event name , e . g . "click" .
* @ param { ? boolean } capture Check if the capture phase is supported .
* @ return { boolean } True if the event is supported .
* @ internal
* @ license Modernizr 3.0 . 0 pre ( Custom Build ) | MIT
2021-05-19 17:09:27 +02:00
* / , e . e x p o r t s = f u n c t i o n ( e , t ) { i f ( ! r . c a n U s e D O M | | t & & ! ( " a d d E v e n t L i s t e n e r " i n d o c u m e n t ) ) r e t u r n ! 1 ; v a r o = " o n " + e , a = o i n d o c u m e n t ; i f ( ! a ) { v a r c = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; c . s e t A t t r i b u t e ( o , " r e t u r n ; " ) , a = " f u n c t i o n " = = t y p e o f c [ o ] } r e t u r n ! a & & n & & " w h e e l " = = = e & & ( a = d o c u m e n t . i m p l e m e n t a t i o n . h a s F e a t u r e ( " E v e n t s . w h e e l " , " 3 . 0 " ) ) , a } } , f u n c t i o n ( e , t , o ) { " u s e s t r i c t " ; v a r n = ! ( " u n d e f i n e d " = = t y p e o f w i n d o w | | ! w i n d o w . d o c u m e n t | | ! w i n d o w . d o c u m e n t . c r e a t e E l e m e n t ) , r = { c a n U s e D O M : n , c a n U s e W o r k e r s : " u n d e f i n e d " ! = t y p e o f W o r k e r , c a n U s e E v e n t L i s t e n e r s : n & & ! ( ! w i n d o w . a d d E v e n t L i s t e n e r & & ! w i n d o w . a t t a c h E v e n t ) , c a n U s e V i e w p o r t : n & & ! ! w i n d o w . s c r e e n , i s I n W o r k e r : ! n } ; e . e x p o r t s = r } , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , f u n c t i o n ( e , t , o ) { " u s e s t r i c t " ; o . r ( t ) , o . d ( t , " _ _ e x p e r i m e n t a l G e t C o r e B l o c k s " , ( f u n c t i o n ( ) { r e t u r n e d } ) ) , o . d ( t , " r e g i s t e r C o r e B l o c k s " , ( f u n c t i o n ( ) { r e t u r n t d } ) ) , o . d ( t , " _ _ e x p e r i m e n t a l R e g i s t e r E x p e r i m e n t a l C o r e B l o c k s " , ( f u n c t i o n ( ) { r e t u r n o d } ) ) ; v a r n = { } ; o . r ( n ) , o . d ( n , " m e t a d a t a " , ( f u n c t i o n ( ) { r e t u r n T e } ) ) , o . d ( n , " n a m e " , ( f u n c t i o n ( ) { r e t u r n z e } ) ) , o . d ( n , " s e t t i n g s " , ( f u n c t i o n ( ) { r e t u r n P e } ) ) ; v a r r = { } ; o . r ( r ) , o . d ( r , " m e t a d a t a " , ( f u n c t i o n ( ) { r e t u r n Z t } ) ) , o . d ( r , " n a m e " , ( f u n c t i o n ( ) { r e t u r n Q t } ) ) , o . d ( r , " s e t t i n g s " , ( f u n c t i o n ( ) { r e t u r n Y t } ) ) ; v a r a = { } ; o . r ( a ) , o . d ( a , " m e t a d a t a " , ( f u n c t i o n ( ) { r e t u r n b o } ) ) , o . d ( a , " n a m e " , ( f u n c t i o n ( ) { r e t u r n p o } ) ) , o . d ( a , " s e t t i n g s " , ( f u n c t i o n ( ) { r e t u r n g o } ) ) ; v a r c = { } ; o . r ( c ) , o . d ( c , " m e t a d a t a " , ( f u n c t i o n ( ) { r e t u r n _ o } ) ) , o . d ( c , " n a m e " , ( f u n c t i o n ( ) { r e t u r n w o } ) ) , o . d ( c , " s e t t i n g s " , ( f u n c t i o n ( ) { r e t u r n k o } ) ) ; v a r l = { } ; o . r ( l ) , o . d ( l , " m e t a d a t a " , ( f u n c t i o n ( ) { r e t u r n $ o } ) ) , o . d ( l , " n a m e " , ( f u n c t i o n ( ) { r e t u r n Z o } ) ) , o . d ( l , " s e t t i n g s " , ( f u n c t i o n ( ) { r e t u r n Q o } ) ) ; v a r i = { } ; o . r ( i ) , o . d ( i , " m e t a d a t a " , ( f u n c t i o n ( ) { r e t u r n X o } ) ) , o . d ( i , " n a m e " , ( f u n c t i o n ( ) { r e t u r n e n } ) ) , o . d ( i , " s e t t i n g s " , ( f u n c t i o n ( ) { r e t u r n t n } ) ) ; v a r s = { } ; o . r ( s ) , o . d ( s , " m e t a d a t a " , ( f u n c t i o n ( ) { r e t u r n l n } ) ) , o . d ( s , " n a m e " , ( f u n c t i o n ( ) { r e t u r n s n } ) ) , o . d ( s , " s e t t i n g s " , ( f u n c t i o n ( ) { r e t u r n u n } ) ) ; v a r u = { } ; o . r ( u ) , o . d ( u , " m e t a d a t a " , ( f u n c t i o n ( ) { r e t u r n C n } ) ) , o . d ( u , " n a m e " , ( f u n c t i o n ( ) { r e t u r n x n } ) ) , o . d ( u , " s e t t i n g s " , ( f u n c t i o n ( ) { r e t u r n S n } ) ) ; v a r m = { } ; o . r ( m ) , o . d ( m , " m e t a d a t a " , ( f u n c t i o n ( ) { r e t u r n N n } ) ) , o . d ( m , " n a m e " , ( f u n c t i o n ( ) { r e t u r n M n } ) ) , o . d ( m , " s e t t i n g s " , ( f u n c t i o n ( ) { r e t u r n V n } ) ) ; v a r d = { } ; o . r ( d ) , o . d ( d , " m e t a d a t a " , ( f u n c t i o n ( ) { r e t u r n D n } ) ) , o . d ( d , " n a m e " , ( f u n c t i o n ( ) { r e t u r n F n } ) ) , o . d ( d , " s e t t i n g s " , ( f u n c t i o n ( ) { r e t u r n G n } ) ) ; v a r b = { } ; o . r ( b ) , o . d ( b , " m e t a d a t a " , ( f u n c t i o n ( ) { r e t u r n W n } ) ) , o . d ( b , " n a m e " , ( f u n c t i o n ( ) { r e t u r n $ n } ) ) , o . d ( b , " s e t t i n g s " , ( f u n c t i o n ( ) { r e t u r n Z n } ) ) ; v a r p = { } ; o . r ( p ) , o . d ( p , " m e t a d a t a " , ( f u n c t i o n ( ) { r e t u r n X n } ) ) , o . d ( p , " n a m e " , ( f u n c t i o n ( ) { r e t u r n e r } ) ) , o . d ( p , " s e t t i n g s " , ( f u n c t i o n ( ) { r e t u r n t r } ) ) ; v a r g = { } ; o . r ( g ) , o . d ( g , " m e t a d a t a " , ( f u n c t i o n ( ) { r e t u r n v r } ) ) , o . d ( g , " n a m e " , ( f u n c t i o n ( ) { r e t u r n O r } ) ) , o . d ( g , " s e t t i n g s " , ( f u n c t i o n ( ) { r e t u r n j r } ) ) ; v a r h = { } ; o . r ( h ) , o . d ( h , " m e t a d a t a " , ( f u n c t i o n ( ) { r e t u r n w r } ) ) , o . d ( h , " n a m e " , ( f u n c t i o n ( ) { r e t u r n k r } ) ) , o . d ( h , " s e t t i n g s " , ( f u n c t i o n ( ) { r e t u r n E r } ) ) ; v a r v = { } ; o . r ( v ) , o . d ( v , " m e t a d a t a " , ( f u n c t i o n ( ) { r e t u r n J r } ) ) , o . d ( v , " n a m e " , ( f u n c t i o n ( ) { r e t u r n K r } ) ) , o . d ( v , " s e t t i n g s " , ( f u n c t i o n ( ) { r e t u r n X r } ) ) ; v a r O = { } ; o . r ( O ) , o . d ( O , " m e t a d a t a " , ( f u n c t i o n ( ) { r e t u r n z a } ) ) , o . d ( O , " n a m e " , ( f u n c t i o n ( ) { r e t u r n P a } ) ) , o . d ( O , " s e t t i n g s " , ( f u n c t i o n ( ) { r e t u r n N a } ) ) ; v a r j = { } ; o . r ( j ) , o . d ( j , " m e t a d a t a " , ( f u n c t i o n ( ) { r e t u r n G a } ) ) , o . d ( j , " n a m e " , ( f u n c t i o n ( ) { r e t u r n U a } ) ) , o . d ( j , " s e t t i n g s " , ( f u n c t i o n ( ) { r e t u r n q a } ) ) ; v a r f = { } ; o . r ( f ) , o . d ( f , " m e t a d a t a " , ( f u n c t i o n ( ) { r e t u r n Z a } ) ) , o . d ( f , " n a m e " , ( f u n c t i o n ( ) { r e t u r n Q a } ) ) , o . d ( f , " s e t t i n g s " , ( f u n c t i o n ( ) { r e t u r n Y a } ) ) ; v a r y = { } ; o . r ( y ) , o . d ( y , " m e t a d a t a " , ( f u n c t i o n ( ) { r e t u r n g c } ) ) , o . d ( y , " n a m e " , ( f u n c t i o n ( ) { r e t u r n h c } ) ) , o . d ( y , " s e t t i n g s " , ( f u n c t i o n ( ) { r e t u r n v c } ) ) ; v a r _ = { } ; o . r ( _ ) , o . d ( _ , " m e t a d a t a " , ( f u n c t i o n ( ) { r e t u r n j c } ) ) , o . d ( _ , " n a m e " , ( f u n c t i o n ( ) { r e t u r n f c } ) ) , o . d ( _ , " s e t t i n g s " , ( f u n c t i o n ( ) { r e t u r n y c } ) ) ; v a r w = { } ; o . r ( w ) , o . d ( w , " m e t a d a t a " , ( f u n c t i o n ( ) { r e t u r n T c } ) ) , o . d ( w , " n a m e " , ( f u n c t i o n ( ) { r e t u r n z c } ) ) , o . d ( w , " s e t t i n g s " , ( f u n c t i o n ( ) { r e t u r n P c } ) ) ; v a r k = { } ; o . r ( k ) , o . d ( k , " m e t a d a t a " , ( f u n c t i o n ( ) { r e t u r n M c } ) ) , o . d ( k , " n a m e " , ( f u n c t i o n ( ) { r e t u r n V c } ) ) , o . d ( k , " s e t t i n g s " , ( f u n c t i o n ( ) { r e t u r n R c } ) ) ; v a r E = { } ; o . r ( E ) , o . d ( E , " m e t a d a t a " , ( f u n c t i o n ( ) { r e t u r n Z c } ) ) , o . d ( E , " n a m e " , ( f u n c t i o n ( ) { r e t u r n Q c
2020-06-26 15:33:47 +02:00
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Copyright ( c ) Microsoft Corporation .
Permission to use , copy , modify , and / or distribute this software for any
purpose with or without fee is hereby granted .
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS . IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL , DIRECT ,
INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE , DATA OR PROFITS , WHETHER IN AN ACTION OF CONTRACT , NEGLIGENCE OR
OTHER TORTIOUS ACTION , ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE .
2021-05-19 17:09:27 +02:00
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * / v a r o t = f u n c t i o n ( e , t ) { r e t u r n ( o t = O b j e c t . s e t P r o t o t y p e O f | | { _ _ p r o t o _ _ : [ ] } i n s t a n c e o f A r r a y & & f u n c t i o n ( e , t ) { e . _ _ p r o t o _ _ = t } | | f u n c t i o n ( e , t ) { f o r ( v a r o i n t ) O b j e c t . p r o t o t y p e . h a s O w n P r o p e r t y . c a l l ( t , o ) & & ( e [ o ] = t [ o ] ) } ) ( e , t ) } ; v a r n t = f u n c t i o n ( ) { r e t u r n ( n t = O b j e c t . a s s i g n | | f u n c t i o n ( e ) { f o r ( v a r t , o = 1 , n = a r g u m e n t s . l e n g t h ; o < n ; o + + ) f o r ( v a r r i n t = a r g u m e n t s [ o ] ) O b j e c t . p r o t o t y p e . h a s O w n P r o p e r t y . c a l l ( t , r ) & & ( e [ r ] = t [ r ] ) ; r e t u r n e } ) . a p p l y ( t h i s , a r g u m e n t s ) } ; O b j e c t . c r e a t e ; O b j e c t . c r e a t e ; v a r r t = o ( 1 1 ) , a t = o . n ( r t ) , c t = o ( 3 9 8 ) , l t = o . n ( c t ) ; f u n c t i o n i t ( e , t , o , n , r , a ) { v o i d 0 = = = a & & ( a = 0 ) ; v a r c = j t ( e , t , a ) , l = c . w i d t h , i = c . h e i g h t , s = M a t h . m i n ( l , o ) , u = M a t h . m i n ( i , n ) ; r e t u r n s > u * r ? { w i d t h : u * r , h e i g h t : u } : { w i d t h : s , h e i g h t : s / r } } f u n c t i o n s t ( e , t , o , n , r ) { v o i d 0 = = = r & & ( r = 0 ) ; v a r a = j t ( t . w i d t h , t . h e i g h t , r ) , c = a . w i d t h , l = a . h e i g h t ; r e t u r n { x : u t ( e . x , c , o . w i d t h , n ) , y : u t ( e . y , l , o . h e i g h t , n ) } } f u n c t i o n u t ( e , t , o , n ) { v a r r = t * n / 2 - o / 2 ; r e t u r n M a t h . m i n ( r , M a t h . m a x ( e , - r ) ) } f u n c t i o n m t ( e , t ) { r e t u r n M a t h . s q r t ( M a t h . p o w ( e . y - t . y , 2 ) + M a t h . p o w ( e . x - t . x , 2 ) ) } f u n c t i o n d t ( e , t ) { r e t u r n 1 8 0 * M a t h . a t a n 2 ( t . y - e . y , t . x - e . x ) / M a t h . P I } f u n c t i o n b t ( e , t , o , n , r , a , c ) { v o i d 0 = = = a & & ( a = 0 ) , v o i d 0 = = = c & & ( c = ! 0 ) ; v a r l = c & & 0 = = = a ? p t : g t , i = { x : l ( 1 0 0 , ( ( t . w i d t h - o . w i d t h / r ) / 2 - e . x / r ) / t . w i d t h * 1 0 0 ) , y : l ( 1 0 0 , ( ( t . h e i g h t - o . h e i g h t / r ) / 2 - e . y / r ) / t . h e i g h t * 1 0 0 ) , w i d t h : l ( 1 0 0 , o . w i d t h / t . w i d t h * 1 0 0 / r ) , h e i g h t : l ( 1 0 0 , o . h e i g h t / t . h e i g h t * 1 0 0 / r ) } , s = M a t h . r o u n d ( l ( t . n a t u r a l W i d t h , i . w i d t h * t . n a t u r a l W i d t h / 1 0 0 ) ) , u = M a t h . r o u n d ( l ( t . n a t u r a l H e i g h t , i . h e i g h t * t . n a t u r a l H e i g h t / 1 0 0 ) ) , m = t . n a t u r a l W i d t h > = t . n a t u r a l H e i g h t * n ? { w i d t h : M a t h . r o u n d ( u * n ) , h e i g h t : u } : { w i d t h : s , h e i g h t : M a t h . r o u n d ( s / n ) } ; r e t u r n { c r o p p e d A r e a P e r c e n t a g e s : i , c r o p p e d A r e a P i x e l s : n t ( n t ( { } , m ) , { x : M a t h . r o u n d ( l ( t . n a t u r a l W i d t h - m . w i d t h , i . x * t . n a t u r a l W i d t h / 1 0 0 ) ) , y : M a t h . r o u n d ( l ( t . n a t u r a l H e i g h t - m . h e i g h t , i . y * t . n a t u r a l H e i g h t / 1 0 0 ) ) } ) } } f u n c t i o n p t ( e , t ) { r e t u r n M a t h . m i n ( e , M a t h . m a x ( 0 , t ) ) } f u n c t i o n g t ( e , t ) { r e t u r n t } f u n c t i o n h t ( e , t , o ) { v a r n = t . w i d t h / t . n a t u r a l W i d t h , r = f u n c t i o n ( e , t , o ) { v a r n = t . w i d t h / t . n a t u r a l W i d t h ; i f ( o ) r e t u r n o . h e i g h t > o . w i d t h ? o . h e i g h t / n / e . h e i g h t : o . w i d t h / n / e . w i d t h ; v a r r = e . w i d t h / e . h e i g h t ; r e t u r n t . n a t u r a l W i d t h > = t . n a t u r a l H e i g h t * r ? t . n a t u r a l H e i g h t / e . h e i g h t : t . n a t u r a l W i d t h / e . w i d t h } ( e , t , o ) , a = n * r ; r e t u r n { c r o p : { x : ( ( t . n a t u r a l W i d t h - e . w i d t h ) / 2 - e . x ) * a , y : ( ( t . n a t u r a l H e i g h t - e . h e i g h t ) / 2 - e . y ) * a } , z o o m : r } } f u n c t i o n v t ( e , t ) { r e t u r n { x : ( t . x + e . x ) / 2 , y : ( t . y + e . y ) / 2 } } f u n c t i o n O t ( e , t , o , n , r ) { v a r a = M a t h . c o s , c = M a t h . s i n , l = r * M a t h . P I / 1 8 0 ; r e t u r n [ ( e - o ) * a ( l ) - ( t - n ) * c ( l ) + o , ( e - o ) * c ( l ) + ( t - n ) * a ( l ) + n ] } f u n c t i o n j t ( e , t , o ) { v a r n = e / 2 , r = t / 2 , a = [ O t ( 0 , 0 , n , r , o ) , O t ( e , 0 , n , r , o ) , O t ( e , t , n , r , o ) , O t ( 0 , t , n , r , o ) ] , c = M a t h . m i n . a p p l y ( M a t h , a . m a p ( ( f u n c t i o n ( e ) { r e t u r n e [ 0 ] } ) ) ) , l = M a t h . m a x . a p p l y ( M a t h , a . m a p ( ( f u n c t i o n ( e ) { r e t u r n e [ 0 ] } ) ) ) , i = M a t h . m i n . a p p l y ( M a t h , a . m a p ( ( f u n c t i o n ( e ) { r e t u r n e [ 1 ] } ) ) ) ; r e t u r n { w i d t h : l - c , h e i g h t : M a t h . m a x . a p p l y ( M a t h , a . m a p ( ( f u n c t i o n ( e ) { r e t u r n e [ 1 ] } ) ) ) - i } } f u n c t i o n f t ( ) { f o r ( v a r e = [ ] , t = 0 ; t < a r g u m e n t s . l e n g t h ; t + + ) e [ t ] = a r g u m e n t s [ t ] ; r e t u r n e . f i l t e r ( ( f u n c t i o n ( e ) { r e t u r n " s t r i n g " = = t y p e o f e & & e . l e n g t h > 0 } ) ) . j o i n ( " " ) . t r i m ( ) } v a r y t = f u n c t i o n ( e ) { f u n c t i o n t ( ) { v a r o = n u l l ! = = e & & e . a p p l y ( t h i s , a r g u m e n t s ) | | t h i s ; r e t u r n o . i m a g e R e f = n u l l , o . v i d e o R e f = n u l l , o . c o n t a i n e r R e f = n u l l , o . s t y l e R e f = n u l l , o . c o n t a i n e r R e c t = n u l l , o . m e d i a S i z e = { w i d t h : 0 , h e i g h t : 0 , n a t u r a l W i d t h : 0 , n a t u r a l H e i g h t : 0 } , o . d r a g S t a r t P o s i t i o n = { x : 0 , y : 0 } , o . d r a g S t a r t C r o p = { x : 0 , y : 0 } , o . l a s t P i n c h D i s t a n c e = 0 , o . l a s t P i n c h R o t a t i o n = 0 , o . r a f D r a g T i m e o u t = n u l l , o . r a f P i n c h T i m e o u t = n u l l , o . w h e e l T i m e r = n u l l , o . s t a t e = { c r o p S i z e : n u l l , h a s W h e e l J u s t S t a r t e d : ! 1 } , o . p r e v e n t Z o o m S a f a r i = f u n c t i o n ( e ) { r e t u r n e . p r e v e n t D e f a u l t ( ) } , o . c l e a n E v e n t s = f u n c t i o n ( ) { d o c u m e n t . r e m o v e E v e n t L i s t e n e r ( " m o u s e m o v e " , o . o n M o u s e M o v e ) , d o c u m e n t . r e m o v e E v e n t L i s t e n e r ( " m o u s e u p " , o . o n D r a g S t o p p e d ) , d o c u m e n t . r e m o v e E v e n t L i s t e n e r ( " t o u c h m o v e " , o . o n T o u c h M o v e ) , d o c u m e n t . r e m o v e E v e n t L i s t e n e r ( " t o u c h e n d " , o . o n D r a g S t o p p e d ) } , o . c l e a r S c r o l l E v e n t = f u n c t i o n ( ) { o . c o n t a i n e r R e f & & o . c o n t a i n e r R e f . r e m o v e E v e n t L i s t e n e r ( " w h e e l " , o . o n W h e e l ) , o . w h e e l T i m e r & & c l e a r T i m e o u t ( o . w h e e l T i m e r ) } , o . o n M e d i a L o a d = f u n c t i o n ( ) { o . c o m p u t e S i z e s ( ) , o . e m i t C r o p D a t a ( ) , o . s e t I n i t i a l C r o p ( ) , o . p r o p s . o n M e d i a L o a d e d & & o . p r o p s . o n M e d i a L o a d e d ( o . m e d i a S i z e ) } , o . s e t I n i t i a l C r o p = f u n c t i o n ( ) { v a r e = o . p r o p s , t = e . i n i t i a l C r o p p e d A r e a P i x e l s , n = e . c r o p S i z e ; i f ( t ) { v a r r = h t ( t , o . m e d i a S i z e , n ) , a = r . c r o p , c = r . z o o m ; o . p r