e.exports=function(){"use strict";functione(e,t){for(varn=0;n<t.length;n++){varr=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}functiont(e,t){returnfunction(e){if(Array.isArray(e))returne}(e)||function(e,t){varn=[],r=!0,o=!1,a=void0;try{for(varc,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throwa}}returnn}(e,t)||function(){thrownewTypeError("Invalid attempt to destructure non-iterable instance")}()}returnfunction(){functionn(){!function(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}(this,n)}varr,o,a;returnr=n,(o=[{key:"getColorAsync",value:function(e,t,n){e.complete?t.call(e,this.getColor(e,n),n&&n.data):this._bindImageEvents(e,t,n)}},{key:"getColor",value:function(e,t){t=t||{};varn=this._getDefaultColor(t),r=this._getOriginalSize(e),o=this._prepareSizeAndPosition(r,t),a=null,c=n;if(!(o.srcWidth&&o.srcHeight&&o.destWidth&&o.destHeight))returnthis._prepareResult(n,newError("FastAverageColor: Incorrect sizes."));if(!this._ctx&&(this._canvas=this._makeCanvas(),this._ctx=this._canvas.getContext&&this._canvas.getContext("2d"),!this._ctx))returnthis._prepareResult(n,newError("FastAverageColor: Canvas Context 2D is not supported in this browser."));this._canvas.width=o.destWidth,this._canvas.height=o.destHeight;try{this._ctx.clearRect(0,0,o.destWidth,o.destHeight),this._ctx.drawImage(e,o.srcLeft,o.srcTop,o.srcWidth,o.srcHeight,0,0,o.destWidth,o.destHeight);vari=this._ctx.getImageData(0,0,o.destWidth,o.destHeight).data;c=this.getColorFromArray4(i,t)}catch(e){a=e}returnthis._prepareResult(c,a)}},{key:"getColorFromArray4",value:function(e,t){t=t||{};varn=e.length;if(n<4)returnthis._getDefaultColor(t);varr=n-n%4,o=4*(t.step||1),a="_"+(t.algorithm||"sqrt")+"Algorithm";if("function"!=typeofthis[a])thrownewError("FastAverageColor: ".concat(t.algorithm," is unknown algorithm."));returnthis[a](e,r,o)}},{key:"destroy",value:function(){deletethis._canvas,deletethis._ctx}},{key:"_getDefaultColor",value:function(e){returnthis._getOption(e,"defaultColor",[255,255,255,255])}},{key:"_getOption",value:function(e,t,n){returnvoid0===e[t]?n:e[t]}},{key:"_prepareSizeAndPosition",value:function(e,t){varn,r=this._getOption(t,"left",0),o=this._getOption(t,"top",0),a=this._getOption(t,"width",e.width),c=this._getOption(t,"height",e.height),i=a,l=c;return"precision"===t.mode?{srcLeft:r,srcTop:o,srcWidth:a,srcHeight:c,destWidth:i,destHeight:l}:(a>c?(n=a/c,i=100,l=Math.round(i/n)):(n=c/a,l=100,i=Math.round(l/n)),(i>a||l>c||i<10||l<10)&&(i=a,l=c),{srcLeft:r,srcTop:o,srcWidth:a,srcHeight:c,destWidth:i,destHeight:l})}},{key:"_simpleAlgorithm",value:function(e,t,n){for(varr=0,o=0,a=0,c=0,i=0,l=0;l<t;l+=n){vars=e[l+3];r+=e[l]*s,o+=e[l+1]*s,a+=e[l+2]*s,c+=s,i++}returnc?[Math.round(r/c),Math.round(o/c),Math.round(a/c),Math.round(c/i)]:[0,0,0,0]}},{key:"_sqrtAlgorithm",value:function(e,t,n){for(varr=0,o=0,a=0,c=0,i=0,l=0;l<t;l+=n){vars=e[l],u=e[l+1],b=e[l+2],m=e[l+3];r+=s*s*m,o+=u*u*m,a+=b*b*m,c+=m,i++}returnc?[Math.round(Math.sqrt(r/c)),Math.round(Math.sqrt(o/c)),Math.round(Math.sqrt(a/c)),Math.round(c/i)]:[0,0,0,0]}},{key:"_dominantAlgorithm",value:function(e,n,r){for(varo={},a=0;a<n;a+=r){varc=e[a],i=e[a+1],l=e[a+2],s=e[a+3],u=Math.round(c/24)+","+Math.round(i/24)+","+Math.round(l/24);o[u]?o[u]=[o[u][0]+c*s,o[u][1]+i*s,o[u][2]+l*s,o[u][3]+s,o[u][4]+1]:o[u]=[c*s,i*s,l*s,s,1]}varb=t(Object.keys(o).map((function(e){returno[e]})).sort((function(e,t){varn=e[4],r=t[4];returnn>r?-1:n===r?0:1}))[0],5),m=b[0],d=b[1],h=b[2],p=b[3],g=b[4];returnp?[Math.round(m/p),Math.round(d/p),Math.round(h/p),Math.round(p/g)]:[0,0,0,0]}},{key:"_bindImageEvents",value:function(e,t,n){varr=this,o=(n=n||{})&&n.data,a=this._getDefaultColor(n),c=function(){s(),t.call(e,r.getColor(e,n),o)},i=function(){s(),t.call(e,r._prepareResult(a,newError("Image error")),o)},l=function(){s(),t.call(e,r._prepareResult(a,newError("Im
*/!function(){"use strict";var n=function(){function e(){}function t(e,t){for(var n=t.length,r=0;r<n;++r)o(e,t[r])}e.prototype=Object.create(null);var n={}.hasOwnProperty;var r=/\s+/;function o(e,o){if(o){var a=typeof o;"string"===a?function(e,t){for(var n=t.split(r),o=n.length,a=0;a<o;++a)e[n[a]]=!0}(e,o):Array.isArray(o)?t(e,o):"object"===a?function(e,t){for(var r in t)n.call(t,r)&&(e[r]=!!t[r])}(e,o):"number"===a&&function(e,t){e[t]=!0}(e,o)}}return function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];var a=new e;t(a,r);var c=[];for(var i in a)a[i]&&c.push(i);return c.join(" ")}}();e.exports?(n.default=n,e.exports=n):void 0===(r=function(){return n}.apply(t,[]))||(e.exports=r)}()},8:function(e,t){!function(){e.exports=this.wp.compose}()},85:function(e,t,n){"use strict";var r=n(121),o=n(123);function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=O,t.resolve=function(e,t){return O(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?O(e,!1,!0).resolveObject(t):t},t.format=function(e){o.isString(e)&&(e=O(e));return e instanceof a?e.format():a.prototype.format.call(e)},t.Url=a;var c=/^([a-z0-9.+-]+:)/i,i=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,s=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(s),b=["%","/","?",";","#"].concat(u),m=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},f={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=n(124);functionO(e,t,n){if(e&&o.isObject(e)&&einstanceofa)returne;varr=newa;returnr.parse(e,t,n),r}a.prototype.parse=function(e,t,n){if(!o.isString(e))thrownewTypeError("Parameter 'url' must be a string, not "+typeofe);vara=e.indexOf("?"),i=-1!==a&&a<e.indexOf("#")?"?":"#",s=e.split(i);s[0]=s[0].replace(/\\/g,"/");varO=e=s.join(i);if(O=O.trim(),!n&&1===e.split("#").length){varj=l.exec(O);if(j)returnthis.path=O,this.href=O,this.pathname=j[1],j[2]?(this.search=j[2],this.query=t?v.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}vary=c.exec(O);if(y){var_=(y=y[0]).toLowerCase();this.protocol=_,O=O.substr(y.length)}if(n||y||O.match(/^\/\/[^@\/]+@[^@\/]+/)){vark="//"===O.substr(0,2);!k||y&&g[y]||(O=O.substr(2),this.slashes=!0)}if(!g[y]&&(k||y&&!f[y])){for(varC,w,E=-1,x=0;x<m.length;x++){-1!==(S=O.indexOf(m[x]))&&(-1===E||S<E)&&(E=S)}-1!==(w=-1===E?O.lastIndexOf("@"):O.lastIndexOf("@",E))&&(C=O.slice(0,w),O=O.slice(w+1),this.auth=decodeURIComponent(C)),E=-1;for(x=0;x<b.length;x++){varS;-1!==(S=O.indexOf(b[x]))&&(-1===E||S<E)&&(E=S)}-1===E&&(E=O.length),this.host=O.slice(0,E),O=O.slice(E),this.parseHost(),this.hostname=this.hostname||"";varT="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!T)for(varN=this.hostname.split(/\./),B=(x=0,N.length);x<B;x++){varA=N[x];if(A&&!A.match(d)){for(varR="",I=0,M=A.length;I<M;I++)A.charCodeAt(I)>127?R+="x":R+=A[I];if(!R.match(d)){varP=N.slice(0,x),z=N.slice(x+1),H=A.match(h);H&&(P.push(H[1]),z.unshift(H[2])),z.length&&(O="/"+z.join(".")+O),this.hostname=P.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=r.toASCII(this.hostname));varL=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+L,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==O[0]&&(O="/"+O))}if(!p[_])for(x=0,B=u.length;x<B;x++){varF=u[x];if(-1!==O.indexOf(F)){varD=encodeURIComponent(F);D===F&&(D=escape(F)),O=O.split(F).join(D)}}varU=O.indexOf("#");-1!==U&&(this.hash=O.substr(U),O=O.slice(0,U));varG=O.indexOf("?");if(-1!==G?(this.search=O.substr(G),this.query=O.substr(G+1),t&&(this.query=v.parse(this.query)),O=O.slice(0,G)):t&&(this.search="",this.query={}),O&&(this.pathname=O),f[_]&&this.hostname&&!this.pathname