UNPKG

jamis

Version:

一种支持通过JSON配置方式生成页面的组件库

27 lines (26 loc) 125 kB
import{a as le,i as B,b as L,d as j,e as Gn,f as Zr,h as Jr,t as zn,j as Un,r as S,R as s,P as g,m as O,k as Wn,l as Vn,n as Kn,o as Xn,p as qn,q as Yn,s as Zn,u as Jn,v as Qn,w as D,x as ea,C as ta,I as ra,O as na,y as Kt,z as aa,A as ke,B as ia,D as oa}from"../sdk.js";var P={},Ee={},sa=le,la=B,ca=L,ha="[object String]";function ua(t){return typeof t=="string"||!la(t)&&ca(t)&&sa(t)==ha}var pa=ua;function fa(t){return function(e,r,n){for(var a=-1,i=Object(e),o=n(e),l=o.length;l--;){var c=o[t?l:++a];if(r(i[c],c,i)===!1)break}return e}}var da=fa,ga=da,ba=ga(),va=ba;function ya(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var xa=ya,ma=le,wa=L,Ca="[object Arguments]";function _a(t){return wa(t)&&ma(t)==Ca}var Ea=_a,Xt=Ea,$a=L,Qr=Object.prototype,Sa=Qr.hasOwnProperty,Oa=Qr.propertyIsEnumerable,Aa=Xt(function(){return arguments}())?Xt:function(t){return $a(t)&&Sa.call(t,"callee")&&!Oa.call(t,"callee")},en=Aa,je={exports:{}};function Ta(){return!1}var Pa=Ta;je.exports;(function(t,e){var r=j,n=Pa,a=e&&!e.nodeType&&e,i=a&&!0&&t&&!t.nodeType&&t,o=i&&i.exports===a,l=o?r.Buffer:void 0,c=l?l.isBuffer:void 0,h=c||n;t.exports=h})(je,je.exports);var pt=je.exports,Ma=9007199254740991,ka=/^(?:0|[1-9]\d*)$/;function Ra(t,e){var r=typeof t;return e=e??Ma,!!e&&(r=="number"||r!="symbol"&&ka.test(t))&&t>-1&&t%1==0&&t<e}var tn=Ra,Fa=9007199254740991;function Ba(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Fa}var ft=Ba,Ha=le,ja=ft,Da=L,La="[object Arguments]",Na="[object Array]",Ia="[object Boolean]",Ga="[object Date]",za="[object Error]",Ua="[object Function]",Wa="[object Map]",Va="[object Number]",Ka="[object Object]",Xa="[object RegExp]",qa="[object Set]",Ya="[object String]",Za="[object WeakMap]",Ja="[object ArrayBuffer]",Qa="[object DataView]",ei="[object Float32Array]",ti="[object Float64Array]",ri="[object Int8Array]",ni="[object Int16Array]",ai="[object Int32Array]",ii="[object Uint8Array]",oi="[object Uint8ClampedArray]",si="[object Uint16Array]",li="[object Uint32Array]",E={};E[ei]=E[ti]=E[ri]=E[ni]=E[ai]=E[ii]=E[oi]=E[si]=E[li]=!0;E[La]=E[Na]=E[Ja]=E[Ia]=E[Qa]=E[Ga]=E[za]=E[Ua]=E[Wa]=E[Va]=E[Ka]=E[Xa]=E[qa]=E[Ya]=E[Za]=!1;function ci(t){return Da(t)&&ja(t.length)&&!!E[Ha(t)]}var hi=ci;function ui(t){return function(e){return t(e)}}var dt=ui,De={exports:{}};De.exports;(function(t,e){var r=Gn,n=e&&!e.nodeType&&e,a=n&&!0&&t&&!t.nodeType&&t,i=a&&a.exports===n,o=i&&r.process,l=function(){try{var c=a&&a.require&&a.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();t.exports=l})(De,De.exports);var gt=De.exports,pi=hi,fi=dt,qt=gt,Yt=qt&&qt.isTypedArray,di=Yt?fi(Yt):pi,rn=di,gi=xa,bi=en,vi=B,yi=pt,xi=tn,mi=rn,wi=Object.prototype,Ci=wi.hasOwnProperty;function _i(t,e){var r=vi(t),n=!r&&bi(t),a=!r&&!n&&yi(t),i=!r&&!n&&!a&&mi(t),o=r||n||a||i,l=o?gi(t.length,String):[],c=l.length;for(var h in t)(e||Ci.call(t,h))&&!(o&&(h=="length"||a&&(h=="offset"||h=="parent")||i&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||xi(h,c)))&&l.push(h);return l}var nn=_i,Ei=Object.prototype;function $i(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Ei;return t===r}var bt=$i;function Si(t,e){return function(r){return t(e(r))}}var an=Si,Oi=an,Ai=Oi(Object.keys,Object),Ti=Ai,Pi=bt,Mi=Ti,ki=Object.prototype,Ri=ki.hasOwnProperty;function Fi(t){if(!Pi(t))return Mi(t);var e=[];for(var r in Object(t))Ri.call(t,r)&&r!="constructor"&&e.push(r);return e}var Bi=Fi;function Hi(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var ce=Hi,ji=le,Di=ce,Li="[object AsyncFunction]",Ni="[object Function]",Ii="[object GeneratorFunction]",Gi="[object Proxy]";function zi(t){if(!Di(t))return!1;var e=ji(t);return e==Ni||e==Ii||e==Li||e==Gi}var on=zi,Ui=on,Wi=ft;function Vi(t){return t!=null&&Wi(t.length)&&!Ui(t)}var Ge=Vi,Ki=nn,Xi=Bi,qi=Ge;function Yi(t){return qi(t)?Ki(t):Xi(t)}var $e=Yi,Zi=va,Ji=$e;function Qi(t,e){return t&&Zi(t,e,Ji)}var sn=Qi;function eo(t){return t}var ln=eo,to=ln;function ro(t){return typeof t=="function"?t:to}var no=ro,ao=sn,io=no;function oo(t,e){return t&&ao(t,io(e))}var vt=oo,so=an,lo=so(Object.getPrototypeOf,Object),yt=lo,co=le,ho=yt,uo=L,po="[object Object]",fo=Function.prototype,go=Object.prototype,cn=fo.toString,bo=go.hasOwnProperty,vo=cn.call(Object);function yo(t){if(!uo(t)||co(t)!=po)return!1;var e=ho(t);if(e===null)return!0;var r=bo.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&cn.call(r)==vo}var xo=yo;function mo(){this.__data__=[],this.size=0}var wo=mo;function Co(t,e){return t===e||t!==t&&e!==e}var xt=Co,_o=xt;function Eo(t,e){for(var r=t.length;r--;)if(_o(t[r][0],e))return r;return-1}var ze=Eo,$o=ze,So=Array.prototype,Oo=So.splice;function Ao(t){var e=this.__data__,r=$o(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():Oo.call(e,r,1),--this.size,!0}var To=Ao,Po=ze;function Mo(t){var e=this.__data__,r=Po(e,t);return r<0?void 0:e[r][1]}var ko=Mo,Ro=ze;function Fo(t){return Ro(this.__data__,t)>-1}var Bo=Fo,Ho=ze;function jo(t,e){var r=this.__data__,n=Ho(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var Do=jo,Lo=wo,No=To,Io=ko,Go=Bo,zo=Do;function he(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}he.prototype.clear=Lo;he.prototype.delete=No;he.prototype.get=Io;he.prototype.has=Go;he.prototype.set=zo;var Ue=he,Uo=Ue;function Wo(){this.__data__=new Uo,this.size=0}var Vo=Wo;function Ko(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var Xo=Ko;function qo(t){return this.__data__.get(t)}var Yo=qo;function Zo(t){return this.__data__.has(t)}var Jo=Zo,Qo=j,es=Qo["__core-js_shared__"],ts=es,Qe=ts,Zt=function(){var t=/[^.]+$/.exec(Qe&&Qe.keys&&Qe.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function rs(t){return!!Zt&&Zt in t}var ns=rs,as=Function.prototype,is=as.toString;function os(t){if(t!=null){try{return is.call(t)}catch{}try{return t+""}catch{}}return""}var hn=os,ss=on,ls=ns,cs=ce,hs=hn,us=/[\\^$.*+?()[\]{}|]/g,ps=/^\[object .+?Constructor\]$/,fs=Function.prototype,ds=Object.prototype,gs=fs.toString,bs=ds.hasOwnProperty,vs=RegExp("^"+gs.call(bs).replace(us,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ys(t){if(!cs(t)||ls(t))return!1;var e=ss(t)?vs:ps;return e.test(hs(t))}var xs=ys;function ms(t,e){return t==null?void 0:t[e]}var ws=ms,Cs=xs,_s=ws;function Es(t,e){var r=_s(t,e);return Cs(r)?r:void 0}var G=Es,$s=G,Ss=j,Os=$s(Ss,"Map"),mt=Os,As=G,Ts=As(Object,"create"),We=Ts,Jt=We;function Ps(){this.__data__=Jt?Jt(null):{},this.size=0}var Ms=Ps;function ks(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Rs=ks,Fs=We,Bs="__lodash_hash_undefined__",Hs=Object.prototype,js=Hs.hasOwnProperty;function Ds(t){var e=this.__data__;if(Fs){var r=e[t];return r===Bs?void 0:r}return js.call(e,t)?e[t]:void 0}var Ls=Ds,Ns=We,Is=Object.prototype,Gs=Is.hasOwnProperty;function zs(t){var e=this.__data__;return Ns?e[t]!==void 0:Gs.call(e,t)}var Us=zs,Ws=We,Vs="__lodash_hash_undefined__";function Ks(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Ws&&e===void 0?Vs:e,this}var Xs=Ks,qs=Ms,Ys=Rs,Zs=Ls,Js=Us,Qs=Xs;function ue(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ue.prototype.clear=qs;ue.prototype.delete=Ys;ue.prototype.get=Zs;ue.prototype.has=Js;ue.prototype.set=Qs;var el=ue,Qt=el,tl=Ue,rl=mt;function nl(){this.size=0,this.__data__={hash:new Qt,map:new(rl||tl),string:new Qt}}var al=nl;function il(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var ol=il,sl=ol;function ll(t,e){var r=t.__data__;return sl(e)?r[typeof e=="string"?"string":"hash"]:r.map}var Ve=ll,cl=Ve;function hl(t){var e=cl(this,t).delete(t);return this.size-=e?1:0,e}var ul=hl,pl=Ve;function fl(t){return pl(this,t).get(t)}var dl=fl,gl=Ve;function bl(t){return gl(this,t).has(t)}var vl=bl,yl=Ve;function xl(t,e){var r=yl(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}var ml=xl,wl=al,Cl=ul,_l=dl,El=vl,$l=ml;function pe(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}pe.prototype.clear=wl;pe.prototype.delete=Cl;pe.prototype.get=_l;pe.prototype.has=El;pe.prototype.set=$l;var wt=pe,Sl=Ue,Ol=mt,Al=wt,Tl=200;function Pl(t,e){var r=this.__data__;if(r instanceof Sl){var n=r.__data__;if(!Ol||n.length<Tl-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Al(n)}return r.set(t,e),this.size=r.size,this}var Ml=Pl,kl=Ue,Rl=Vo,Fl=Xo,Bl=Yo,Hl=Jo,jl=Ml;function fe(t){var e=this.__data__=new kl(t);this.size=e.size}fe.prototype.clear=Rl;fe.prototype.delete=Fl;fe.prototype.get=Bl;fe.prototype.has=Hl;fe.prototype.set=jl;var Ct=fe,Dl="__lodash_hash_undefined__";function Ll(t){return this.__data__.set(t,Dl),this}var Nl=Ll;function Il(t){return this.__data__.has(t)}var Gl=Il,zl=wt,Ul=Nl,Wl=Gl;function Le(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new zl;++e<r;)this.add(t[e])}Le.prototype.add=Le.prototype.push=Ul;Le.prototype.has=Wl;var Vl=Le;function Kl(t,e){for(var r=-1,n=t==null?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}var Xl=Kl;function ql(t,e){return t.has(e)}var Yl=ql,Zl=Vl,Jl=Xl,Ql=Yl,ec=1,tc=2;function rc(t,e,r,n,a,i){var o=r&ec,l=t.length,c=e.length;if(l!=c&&!(o&&c>l))return!1;var h=i.get(t),u=i.get(e);if(h&&u)return h==e&&u==t;var p=-1,f=!0,d=r&tc?new Zl:void 0;for(i.set(t,e),i.set(e,t);++p<l;){var y=t[p],b=e[p];if(n)var x=o?n(b,y,p,e,t,i):n(y,b,p,t,e,i);if(x!==void 0){if(x)continue;f=!1;break}if(d){if(!Jl(e,function(C,F){if(!Ql(d,F)&&(y===C||a(y,C,r,n,i)))return d.push(F)})){f=!1;break}}else if(!(y===b||a(y,b,r,n,i))){f=!1;break}}return i.delete(t),i.delete(e),f}var un=rc,nc=j,ac=nc.Uint8Array,pn=ac;function ic(t){var e=-1,r=Array(t.size);return t.forEach(function(n,a){r[++e]=[a,n]}),r}var oc=ic;function sc(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var lc=sc,er=Zr,tr=pn,cc=xt,hc=un,uc=oc,pc=lc,fc=1,dc=2,gc="[object Boolean]",bc="[object Date]",vc="[object Error]",yc="[object Map]",xc="[object Number]",mc="[object RegExp]",wc="[object Set]",Cc="[object String]",_c="[object Symbol]",Ec="[object ArrayBuffer]",$c="[object DataView]",rr=er?er.prototype:void 0,et=rr?rr.valueOf:void 0;function Sc(t,e,r,n,a,i,o){switch(r){case $c:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Ec:return!(t.byteLength!=e.byteLength||!i(new tr(t),new tr(e)));case gc:case bc:case xc:return cc(+t,+e);case vc:return t.name==e.name&&t.message==e.message;case mc:case Cc:return t==e+"";case yc:var l=uc;case wc:var c=n&fc;if(l||(l=pc),t.size!=e.size&&!c)return!1;var h=o.get(t);if(h)return h==e;n|=dc,o.set(t,e);var u=hc(l(t),l(e),n,a,i,o);return o.delete(t),u;case _c:if(et)return et.call(t)==et.call(e)}return!1}var Oc=Sc;function Ac(t,e){for(var r=-1,n=e.length,a=t.length;++r<n;)t[a+r]=e[r];return t}var fn=Ac,Tc=fn,Pc=B;function Mc(t,e,r){var n=e(t);return Pc(t)?n:Tc(n,r(t))}var dn=Mc;function kc(t,e){for(var r=-1,n=t==null?0:t.length,a=0,i=[];++r<n;){var o=t[r];e(o,r,t)&&(i[a++]=o)}return i}var Rc=kc;function Fc(){return[]}var gn=Fc,Bc=Rc,Hc=gn,jc=Object.prototype,Dc=jc.propertyIsEnumerable,nr=Object.getOwnPropertySymbols,Lc=nr?function(t){return t==null?[]:(t=Object(t),Bc(nr(t),function(e){return Dc.call(t,e)}))}:Hc,_t=Lc,Nc=dn,Ic=_t,Gc=$e;function zc(t){return Nc(t,Gc,Ic)}var bn=zc,ar=bn,Uc=1,Wc=Object.prototype,Vc=Wc.hasOwnProperty;function Kc(t,e,r,n,a,i){var o=r&Uc,l=ar(t),c=l.length,h=ar(e),u=h.length;if(c!=u&&!o)return!1;for(var p=c;p--;){var f=l[p];if(!(o?f in e:Vc.call(e,f)))return!1}var d=i.get(t),y=i.get(e);if(d&&y)return d==e&&y==t;var b=!0;i.set(t,e),i.set(e,t);for(var x=o;++p<c;){f=l[p];var C=t[f],F=e[f];if(n)var ye=o?n(F,C,f,e,t,i):n(C,F,f,t,e,i);if(!(ye===void 0?C===F||a(C,F,r,n,i):ye)){b=!1;break}x||(x=f=="constructor")}if(b&&!x){var M=t.constructor,Me=e.constructor;M!=Me&&"constructor"in t&&"constructor"in e&&!(typeof M=="function"&&M instanceof M&&typeof Me=="function"&&Me instanceof Me)&&(b=!1)}return i.delete(t),i.delete(e),b}var Xc=Kc,qc=G,Yc=j,Zc=qc(Yc,"DataView"),Jc=Zc,Qc=G,eh=j,th=Qc(eh,"Promise"),rh=th,nh=G,ah=j,ih=nh(ah,"Set"),oh=ih,sh=G,lh=j,ch=sh(lh,"WeakMap"),hh=ch,ot=Jc,st=mt,lt=rh,ct=oh,ht=hh,vn=le,de=hn,ir="[object Map]",uh="[object Object]",or="[object Promise]",sr="[object Set]",lr="[object WeakMap]",cr="[object DataView]",ph=de(ot),fh=de(st),dh=de(lt),gh=de(ct),bh=de(ht),I=vn;(ot&&I(new ot(new ArrayBuffer(1)))!=cr||st&&I(new st)!=ir||lt&&I(lt.resolve())!=or||ct&&I(new ct)!=sr||ht&&I(new ht)!=lr)&&(I=function(t){var e=vn(t),r=e==uh?t.constructor:void 0,n=r?de(r):"";if(n)switch(n){case ph:return cr;case fh:return ir;case dh:return or;case gh:return sr;case bh:return lr}return e});var Ke=I,tt=Ct,vh=un,yh=Oc,xh=Xc,hr=Ke,ur=B,pr=pt,mh=rn,wh=1,fr="[object Arguments]",dr="[object Array]",Re="[object Object]",Ch=Object.prototype,gr=Ch.hasOwnProperty;function _h(t,e,r,n,a,i){var o=ur(t),l=ur(e),c=o?dr:hr(t),h=l?dr:hr(e);c=c==fr?Re:c,h=h==fr?Re:h;var u=c==Re,p=h==Re,f=c==h;if(f&&pr(t)){if(!pr(e))return!1;o=!0,u=!1}if(f&&!u)return i||(i=new tt),o||mh(t)?vh(t,e,r,n,a,i):yh(t,e,c,r,n,a,i);if(!(r&wh)){var d=u&&gr.call(t,"__wrapped__"),y=p&&gr.call(e,"__wrapped__");if(d||y){var b=d?t.value():t,x=y?e.value():e;return i||(i=new tt),a(b,x,r,n,i)}}return f?(i||(i=new tt),xh(t,e,r,n,a,i)):!1}var Eh=_h,$h=Eh,br=L;function yn(t,e,r,n,a){return t===e?!0:t==null||e==null||!br(t)&&!br(e)?t!==t&&e!==e:$h(t,e,r,n,yn,a)}var xn=yn,Sh=Ct,Oh=xn,Ah=1,Th=2;function Ph(t,e,r,n){var a=r.length,i=a,o=!n;if(t==null)return!i;for(t=Object(t);a--;){var l=r[a];if(o&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<i;){l=r[a];var c=l[0],h=t[c],u=l[1];if(o&&l[2]){if(h===void 0&&!(c in t))return!1}else{var p=new Sh;if(n)var f=n(h,u,c,t,e,p);if(!(f===void 0?Oh(u,h,Ah|Th,n,p):f))return!1}}return!0}var Mh=Ph,kh=ce;function Rh(t){return t===t&&!kh(t)}var mn=Rh,Fh=mn,Bh=$e;function Hh(t){for(var e=Bh(t),r=e.length;r--;){var n=e[r],a=t[n];e[r]=[n,a,Fh(a)]}return e}var jh=Hh;function Dh(t,e){return function(r){return r==null?!1:r[t]===e&&(e!==void 0||t in Object(r))}}var wn=Dh,Lh=Mh,Nh=jh,Ih=wn;function Gh(t){var e=Nh(t);return e.length==1&&e[0][2]?Ih(e[0][0],e[0][1]):function(r){return r===t||Lh(r,t,e)}}var zh=Gh,Uh=B,Wh=Jr,Vh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Kh=/^\w*$/;function Xh(t,e){if(Uh(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||Wh(t)?!0:Kh.test(t)||!Vh.test(t)||e!=null&&t in Object(e)}var Et=Xh,Cn=wt,qh="Expected a function";function $t(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(qh);var r=function(){var n=arguments,a=e?e.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=t.apply(this,n);return r.cache=i.set(a,o)||i,o};return r.cache=new($t.Cache||Cn),r}$t.Cache=Cn;var Yh=$t,Zh=Yh,Jh=500;function Qh(t){var e=Zh(t,function(n){return r.size===Jh&&r.clear(),n}),r=e.cache;return e}var eu=Qh,tu=eu,ru=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nu=/\\(\\)?/g,au=tu(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(ru,function(r,n,a,i){e.push(a?i.replace(nu,"$1"):n||r)}),e}),iu=au,ou=B,su=Et,lu=iu,cu=zn;function hu(t,e){return ou(t)?t:su(t,e)?[t]:lu(cu(t))}var _n=hu,uu=Jr,pu=1/0;function fu(t){if(typeof t=="string"||uu(t))return t;var e=t+"";return e=="0"&&1/t==-pu?"-0":e}var Xe=fu,du=_n,gu=Xe;function bu(t,e){e=du(e,t);for(var r=0,n=e.length;t!=null&&r<n;)t=t[gu(e[r++])];return r&&r==n?t:void 0}var En=bu,vu=En;function yu(t,e,r){var n=t==null?void 0:vu(t,e);return n===void 0?r:n}var xu=yu;function mu(t,e){return t!=null&&e in Object(t)}var wu=mu,Cu=_n,_u=en,Eu=B,$u=tn,Su=ft,Ou=Xe;function Au(t,e,r){e=Cu(e,t);for(var n=-1,a=e.length,i=!1;++n<a;){var o=Ou(e[n]);if(!(i=t!=null&&r(t,o)))break;t=t[o]}return i||++n!=a?i:(a=t==null?0:t.length,!!a&&Su(a)&&$u(o,a)&&(Eu(t)||_u(t)))}var Tu=Au,Pu=wu,Mu=Tu;function ku(t,e){return t!=null&&Mu(t,e,Pu)}var Ru=ku,Fu=xn,Bu=xu,Hu=Ru,ju=Et,Du=mn,Lu=wn,Nu=Xe,Iu=1,Gu=2;function zu(t,e){return ju(t)&&Du(e)?Lu(Nu(t),e):function(r){var n=Bu(r,t);return n===void 0&&n===e?Hu(r,t):Fu(e,n,Iu|Gu)}}var Uu=zu;function Wu(t){return function(e){return e==null?void 0:e[t]}}var Vu=Wu,Ku=En;function Xu(t){return function(e){return Ku(e,t)}}var qu=Xu,Yu=Vu,Zu=qu,Ju=Et,Qu=Xe;function ep(t){return Ju(t)?Yu(Qu(t)):Zu(t)}var tp=ep,rp=zh,np=Uu,ap=ln,ip=B,op=tp;function sp(t){return typeof t=="function"?t:t==null?ap:typeof t=="object"?ip(t)?np(t[0],t[1]):rp(t):op(t)}var lp=sp,cp=Ge;function hp(t,e){return function(r,n){if(r==null)return r;if(!cp(r))return t(r,n);for(var a=r.length,i=e?a:-1,o=Object(r);(e?i--:++i<a)&&n(o[i],i,o)!==!1;);return r}}var up=hp,pp=sn,fp=up,dp=fp(pp),gp=dp,bp=gp,vp=Ge;function yp(t,e){var r=-1,n=vp(t)?Array(t.length):[];return bp(t,function(a,i,o){n[++r]=e(a,i,o)}),n}var xp=yp,mp=Un,wp=lp,Cp=xp,_p=B;function Ep(t,e){var r=_p(t)?mp:Cp;return r(t,wp(e))}var $p=Ep;Object.defineProperty(Ee,"__esModule",{value:!0});Ee.flattenNames=void 0;var Sp=pa,Op=qe(Sp),Ap=vt,Tp=qe(Ap),Pp=xo,Mp=qe(Pp),kp=$p,Rp=qe(kp);function qe(t){return t&&t.__esModule?t:{default:t}}var Fp=Ee.flattenNames=function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[];return(0,Rp.default)(e,function(n){Array.isArray(n)?t(n).map(function(a){return r.push(a)}):(0,Mp.default)(n)?(0,Tp.default)(n,function(a,i){a===!0&&r.push(i),r.push(i+"-"+a)}):(0,Op.default)(n)&&r.push(n)}),r};Ee.default=Fp;var Se={};function Bp(t,e){for(var r=-1,n=t==null?0:t.length;++r<n&&e(t[r],r,t)!==!1;);return t}var Hp=Bp,jp=G,Dp=function(){try{var t=jp(Object,"defineProperty");return t({},"",{}),t}catch{}}(),Lp=Dp,vr=Lp;function Np(t,e,r){e=="__proto__"&&vr?vr(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var $n=Np,Ip=$n,Gp=xt,zp=Object.prototype,Up=zp.hasOwnProperty;function Wp(t,e,r){var n=t[e];(!(Up.call(t,e)&&Gp(n,r))||r===void 0&&!(e in t))&&Ip(t,e,r)}var Sn=Wp,Vp=Sn,Kp=$n;function Xp(t,e,r,n){var a=!r;r||(r={});for(var i=-1,o=e.length;++i<o;){var l=e[i],c=n?n(r[l],t[l],l,r,t):void 0;c===void 0&&(c=t[l]),a?Kp(r,l,c):Vp(r,l,c)}return r}var Ye=Xp,qp=Ye,Yp=$e;function Zp(t,e){return t&&qp(e,Yp(e),t)}var Jp=Zp;function Qp(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var ef=Qp,tf=ce,rf=bt,nf=ef,af=Object.prototype,of=af.hasOwnProperty;function sf(t){if(!tf(t))return nf(t);var e=rf(t),r=[];for(var n in t)n=="constructor"&&(e||!of.call(t,n))||r.push(n);return r}var lf=sf,cf=nn,hf=lf,uf=Ge;function pf(t){return uf(t)?cf(t,!0):hf(t)}var St=pf,ff=Ye,df=St;function gf(t,e){return t&&ff(e,df(e),t)}var bf=gf,Ne={exports:{}};Ne.exports;(function(t,e){var r=j,n=e&&!e.nodeType&&e,a=n&&!0&&t&&!t.nodeType&&t,i=a&&a.exports===n,o=i?r.Buffer:void 0,l=o?o.allocUnsafe:void 0;function c(h,u){if(u)return h.slice();var p=h.length,f=l?l(p):new h.constructor(p);return h.copy(f),f}t.exports=c})(Ne,Ne.exports);var vf=Ne.exports;function yf(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}var xf=yf,mf=Ye,wf=_t;function Cf(t,e){return mf(t,wf(t),e)}var _f=Cf,Ef=fn,$f=yt,Sf=_t,Of=gn,Af=Object.getOwnPropertySymbols,Tf=Af?function(t){for(var e=[];t;)Ef(e,Sf(t)),t=$f(t);return e}:Of,On=Tf,Pf=Ye,Mf=On;function kf(t,e){return Pf(t,Mf(t),e)}var Rf=kf,Ff=dn,Bf=On,Hf=St;function jf(t){return Ff(t,Hf,Bf)}var Df=jf,Lf=Object.prototype,Nf=Lf.hasOwnProperty;function If(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&Nf.call(t,"index")&&(r.index=t.index,r.input=t.input),r}var Gf=If,yr=pn;function zf(t){var e=new t.constructor(t.byteLength);return new yr(e).set(new yr(t)),e}var Ot=zf,Uf=Ot;function Wf(t,e){var r=e?Uf(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}var Vf=Wf,Kf=/\w*$/;function Xf(t){var e=new t.constructor(t.source,Kf.exec(t));return e.lastIndex=t.lastIndex,e}var qf=Xf,xr=Zr,mr=xr?xr.prototype:void 0,wr=mr?mr.valueOf:void 0;function Yf(t){return wr?Object(wr.call(t)):{}}var Zf=Yf,Jf=Ot;function Qf(t,e){var r=e?Jf(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var e0=Qf,t0=Ot,r0=Vf,n0=qf,a0=Zf,i0=e0,o0="[object Boolean]",s0="[object Date]",l0="[object Map]",c0="[object Number]",h0="[object RegExp]",u0="[object Set]",p0="[object String]",f0="[object Symbol]",d0="[object ArrayBuffer]",g0="[object DataView]",b0="[object Float32Array]",v0="[object Float64Array]",y0="[object Int8Array]",x0="[object Int16Array]",m0="[object Int32Array]",w0="[object Uint8Array]",C0="[object Uint8ClampedArray]",_0="[object Uint16Array]",E0="[object Uint32Array]";function $0(t,e,r){var n=t.constructor;switch(e){case d0:return t0(t);case o0:case s0:return new n(+t);case g0:return r0(t,r);case b0:case v0:case y0:case x0:case m0:case w0:case C0:case _0:case E0:return i0(t,r);case l0:return new n;case c0:case p0:return new n(t);case h0:return n0(t);case u0:return new n;case f0:return a0(t)}}var S0=$0,O0=ce,Cr=Object.create,A0=function(){function t(){}return function(e){if(!O0(e))return{};if(Cr)return Cr(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),T0=A0,P0=T0,M0=yt,k0=bt;function R0(t){return typeof t.constructor=="function"&&!k0(t)?P0(M0(t)):{}}var F0=R0,B0=Ke,H0=L,j0="[object Map]";function D0(t){return H0(t)&&B0(t)==j0}var L0=D0,N0=L0,I0=dt,_r=gt,Er=_r&&_r.isMap,G0=Er?I0(Er):N0,z0=G0,U0=Ke,W0=L,V0="[object Set]";function K0(t){return W0(t)&&U0(t)==V0}var X0=K0,q0=X0,Y0=dt,$r=gt,Sr=$r&&$r.isSet,Z0=Sr?Y0(Sr):q0,J0=Z0,Q0=Ct,ed=Hp,td=Sn,rd=Jp,nd=bf,ad=vf,id=xf,od=_f,sd=Rf,ld=bn,cd=Df,hd=Ke,ud=Gf,pd=S0,fd=F0,dd=B,gd=pt,bd=z0,vd=ce,yd=J0,xd=$e,md=St,wd=1,Cd=2,_d=4,An="[object Arguments]",Ed="[object Array]",$d="[object Boolean]",Sd="[object Date]",Od="[object Error]",Tn="[object Function]",Ad="[object GeneratorFunction]",Td="[object Map]",Pd="[object Number]",Pn="[object Object]",Md="[object RegExp]",kd="[object Set]",Rd="[object String]",Fd="[object Symbol]",Bd="[object WeakMap]",Hd="[object ArrayBuffer]",jd="[object DataView]",Dd="[object Float32Array]",Ld="[object Float64Array]",Nd="[object Int8Array]",Id="[object Int16Array]",Gd="[object Int32Array]",zd="[object Uint8Array]",Ud="[object Uint8ClampedArray]",Wd="[object Uint16Array]",Vd="[object Uint32Array]",_={};_[An]=_[Ed]=_[Hd]=_[jd]=_[$d]=_[Sd]=_[Dd]=_[Ld]=_[Nd]=_[Id]=_[Gd]=_[Td]=_[Pd]=_[Pn]=_[Md]=_[kd]=_[Rd]=_[Fd]=_[zd]=_[Ud]=_[Wd]=_[Vd]=!0;_[Od]=_[Tn]=_[Bd]=!1;function He(t,e,r,n,a,i){var o,l=e&wd,c=e&Cd,h=e&_d;if(r&&(o=a?r(t,n,a,i):r(t)),o!==void 0)return o;if(!vd(t))return t;var u=dd(t);if(u){if(o=ud(t),!l)return id(t,o)}else{var p=hd(t),f=p==Tn||p==Ad;if(gd(t))return ad(t,l);if(p==Pn||p==An||f&&!a){if(o=c||f?{}:fd(t),!l)return c?sd(t,nd(o,t)):od(t,rd(o,t))}else{if(!_[p])return a?t:{};o=pd(t,p,l)}}i||(i=new Q0);var d=i.get(t);if(d)return d;i.set(t,o),yd(t)?t.forEach(function(x){o.add(He(x,e,r,x,t,i))}):bd(t)&&t.forEach(function(x,C){o.set(C,He(x,e,r,C,t,i))});var y=h?c?cd:ld:c?md:xd,b=u?void 0:y(t);return ed(b||t,function(x,C){b&&(C=x,x=t[C]),td(o,C,He(x,e,r,C,t,i))}),o}var Kd=He,Xd=Kd,qd=1,Yd=4;function Zd(t){return Xd(t,qd|Yd)}var Jd=Zd;Object.defineProperty(Se,"__esModule",{value:!0});Se.mergeClasses=void 0;var Qd=vt,eg=Mn(Qd),tg=Jd,rg=Mn(tg),ng=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};function Mn(t){return t&&t.__esModule?t:{default:t}}var ag=Se.mergeClasses=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.default&&(0,rg.default)(e.default)||{};return r.map(function(a){var i=e[a];return i&&(0,eg.default)(i,function(o,l){n[l]||(n[l]={}),n[l]=ng({},n[l],i[l])}),a}),n};Se.default=ag;var Oe={};Object.defineProperty(Oe,"__esModule",{value:!0});Oe.autoprefix=void 0;var ig=vt,Or=sg(ig),og=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};function sg(t){return t&&t.__esModule?t:{default:t}}var lg={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var r=e&&e.split(" ");return{position:"absolute",top:r&&r[0],right:r&&r[1],bottom:r&&r[2],left:r&&r[3]}},extend:function(e,r){var n=r[e];return n||{extend:e}}},cg=Oe.autoprefix=function(e){var r={};return(0,Or.default)(e,function(n,a){var i={};(0,Or.default)(n,function(o,l){var c=lg[l];c?i=og({},i,c(o)):i[l]=o}),r[a]=i}),r};Oe.default=cg;var Ae={};Object.defineProperty(Ae,"__esModule",{value:!0});Ae.hover=void 0;var hg=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ug=S,rt=pg(ug);function pg(t){return t&&t.__esModule?t:{default:t}}function fg(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ar(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function dg(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var gg=Ae.hover=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){dg(a,n);function a(){var i,o,l,c;fg(this,a);for(var h=arguments.length,u=Array(h),p=0;p<h;p++)u[p]=arguments[p];return c=(o=(l=Ar(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(u))),l),l.state={hover:!1},l.handleMouseOver=function(){return l.setState({hover:!0})},l.handleMouseOut=function(){return l.setState({hover:!1})},l.render=function(){return rt.default.createElement(r,{onMouseOver:l.handleMouseOver,onMouseOut:l.handleMouseOut},rt.default.createElement(e,hg({},l.props,l.state)))},o),Ar(l,c)}return a}(rt.default.Component)};Ae.default=gg;var Te={};Object.defineProperty(Te,"__esModule",{value:!0});Te.active=void 0;var bg=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},vg=S,nt=yg(vg);function yg(t){return t&&t.__esModule?t:{default:t}}function xg(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Tr(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function mg(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var wg=Te.active=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){mg(a,n);function a(){var i,o,l,c;xg(this,a);for(var h=arguments.length,u=Array(h),p=0;p<h;p++)u[p]=arguments[p];return c=(o=(l=Tr(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(u))),l),l.state={active:!1},l.handleMouseDown=function(){return l.setState({active:!0})},l.handleMouseUp=function(){return l.setState({active:!1})},l.render=function(){return nt.default.createElement(r,{onMouseDown:l.handleMouseDown,onMouseUp:l.handleMouseUp},nt.default.createElement(e,bg({},l.props,l.state)))},o),Tr(l,c)}return a}(nt.default.Component)};Te.default=wg;var At={};Object.defineProperty(At,"__esModule",{value:!0});var Cg=function(e,r){var n={},a=function(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n[o]=l};return e===0&&a("first-child"),e===r-1&&a("last-child"),(e===0||e%2===0)&&a("even"),Math.abs(e%2)===1&&a("odd"),a("nth-child",e),n};At.default=Cg;Object.defineProperty(P,"__esModule",{value:!0});P.ReactCSS=P.loop=P.handleActive=Tt=P.handleHover=P.hover=void 0;var _g=Ee,Eg=ge(_g),$g=Se,Sg=ge($g),Og=Oe,Ag=ge(Og),Tg=Ae,kn=ge(Tg),Pg=Te,Mg=ge(Pg),kg=At,Rg=ge(kg);function ge(t){return t&&t.__esModule?t:{default:t}}P.hover=kn.default;var Tt=P.handleHover=kn.default;P.handleActive=Mg.default;P.loop=Rg.default;var Fg=P.ReactCSS=function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];var i=(0,Eg.default)(n),o=(0,Sg.default)(e,i);return(0,Ag.default)(o)},m=P.default=Fg,Bg=function(e,r,n,a,i){var o=i.clientWidth,l=i.clientHeight,c=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,h=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,u=c-(i.getBoundingClientRect().left+window.pageXOffset),p=h-(i.getBoundingClientRect().top+window.pageYOffset);if(n==="vertical"){var f=void 0;if(p<0?f=0:p>l?f=1:f=Math.round(p*100/l)/100,r.a!==f)return{h:r.h,s:r.s,l:r.l,a:f,source:"rgb"}}else{var d=void 0;if(u<0?d=0:u>o?d=1:d=Math.round(u*100/o)/100,a!==d)return{h:r.h,s:r.s,l:r.l,a:d,source:"rgb"}}return null},at={},Hg=function(e,r,n,a){if(typeof document>"u"&&!a)return null;var i=a?new a:document.createElement("canvas");i.width=n*2,i.height=n*2;var o=i.getContext("2d");return o?(o.fillStyle=e,o.fillRect(0,0,i.width,i.height),o.fillStyle=r,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),i.toDataURL()):null},jg=function(e,r,n,a){var i=e+"-"+r+"-"+n+(a?"-server":"");if(at[i])return at[i];var o=Hg(e,r,n,a);return at[i]=o,o},Pr=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},be=function(e){var r=e.white,n=e.grey,a=e.size,i=e.renderers,o=e.borderRadius,l=e.boxShadow,c=e.children,h=m({default:{grid:{borderRadius:o,boxShadow:l,absolute:"0px 0px 0px 0px",background:"url("+jg(r,n,a,i.canvas)+") center left"}}});return S.isValidElement(c)?s.cloneElement(c,Pr({},c.props,{style:Pr({},c.props.style,h.grid)})):s.createElement("div",{style:h.grid})};be.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var Dg=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Lg=function(){function t(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();function Ng(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Mr(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Ig(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Pt=function(t){Ig(e,t);function e(){var r,n,a,i;Ng(this,e);for(var o=arguments.length,l=Array(o),c=0;c<o;c++)l[c]=arguments[c];return i=(n=(a=Mr(this,(r=e.__proto__||Object.getPrototypeOf(e)).call.apply(r,[this].concat(l))),a),a.handleChange=function(h){var u=Bg(h,a.props.hsl,a.props.direction,a.props.a,a.container);u&&typeof a.props.onChange=="function"&&a.props.onChange(u,h)},a.handleMouseDown=function(h){a.handleChange(h),window.addEventListener("mousemove",a.handleChange),window.addEventListener("mouseup",a.handleMouseUp)},a.handleMouseUp=function(){a.unbindEventListeners()},a.unbindEventListeners=function(){window.removeEventListener("mousemove",a.handleChange),window.removeEventListener("mouseup",a.handleMouseUp)},n),Mr(a,i)}return Lg(e,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var n=this,a=this.props.rgb,i=m({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+a.r+","+a.g+","+a.b+`, 0) 0%, rgba(`+a.r+","+a.g+","+a.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:a.a*100+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+a.r+","+a.g+","+a.b+`, 0) 0%, rgba(`+a.r+","+a.g+","+a.b+", 1) 100%)"},pointer:{left:0,top:a.a*100+"%"}},overwrite:Dg({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return s.createElement("div",{style:i.alpha},s.createElement("div",{style:i.checkboard},s.createElement(be,{renderers:this.props.renderers})),s.createElement("div",{style:i.gradient}),s.createElement("div",{style:i.container,ref:function(l){return n.container=l},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},s.createElement("div",{style:i.pointer},this.props.pointer?s.createElement(this.props.pointer,this.props):s.createElement("div",{style:i.slider}))))}}]),e}(S.PureComponent||S.Component),Gg=function(){function t(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();function zg(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ug(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wg(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Vg(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Kg=1,Rn=38,Xg=40,qg=[Rn,Xg],Yg=function(e){return qg.indexOf(e)>-1},Zg=function(e){return Number(String(e).replace(/%/g,""))},Jg=1,w=function(t){Vg(e,t);function e(r){Ug(this,e);var n=Wg(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(a){n.setUpdatedValue(a.target.value,a)},n.handleKeyDown=function(a){var i=Zg(a.target.value);if(!isNaN(i)&&Yg(a.keyCode)){var o=n.getArrowOffset(),l=a.keyCode===Rn?i+o:i-o;n.setUpdatedValue(l,a)}},n.handleDrag=function(a){if(n.props.dragLabel){var i=Math.round(n.props.value+a.movementX);i>=0&&i<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(i),a)}},n.handleMouseDown=function(a){n.props.dragLabel&&(a.preventDefault(),n.handleDrag(a),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},n.inputId="rc-editable-input-"+Jg++,n}return Gg(e,[{key:"componentDidUpdate",value:function(n,a){this.props.value!==this.state.value&&(n.value!==this.props.value||a.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(n){return zg({},this.props.label,n)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||Kg}},{key:"setUpdatedValue",value:function(n,a){var i=this.props.label?this.getValueObjectWithLabel(n):n;this.props.onChange&&this.props.onChange(i,a),this.setState({value:n})}},{key:"render",value:function(){var n=this,a=m({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return s.createElement("div",{style:a.wrap},s.createElement("input",{id:this.inputId,style:a.input,ref:function(o){return n.input=o},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?s.createElement("label",{htmlFor:this.inputId,style:a.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),e}(S.PureComponent||S.Component),Qg=function(e,r,n,a){var i=a.clientWidth,o=a.clientHeight,l=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,c=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,h=l-(a.getBoundingClientRect().left+window.pageXOffset),u=c-(a.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var p=void 0;if(u<0)p=359;else if(u>o)p=0;else{var f=-(u*100/o)+100;p=360*f/100}if(n.h!==p)return{h:p,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var d=void 0;if(h<0)d=0;else if(h>i)d=359;else{var y=h*100/i;d=360*y/100}if(n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null},eb=function(){function t(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();function tb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kr(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function rb(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var ve=function(t){rb(e,t);function e(){var r,n,a,i;tb(this,e);for(var o=arguments.length,l=Array(o),c=0;c<o;c++)l[c]=arguments[c];return i=(n=(a=kr(this,(r=e.__proto__||Object.getPrototypeOf(e)).call.apply(r,[this].concat(l))),a),a.handleChange=function(h){var u=Qg(h,a.props.direction,a.props.hsl,a.container);u&&typeof a.props.onChange=="function"&&a.props.onChange(u,h)},a.handleMouseDown=function(h){a.handleChange(h),window.addEventListener("mousemove",a.handleChange),window.addEventListener("mouseup",a.handleMouseUp)},a.handleMouseUp=function(){a.unbindEventListeners()},n),kr(a,i)}return eb(e,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var n=this,a=this.props.direction,i=a===void 0?"horizontal":a,o=m({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:this.props.hsl.h*100/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-(this.props.hsl.h*100/360)+100+"%"}}},{vertical:i==="vertical"});return s.createElement("div",{style:o.hue},s.createElement("div",{className:"hue-"+i,style:o.container,ref:function(c){return n.container=c},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},s.createElement("style",null,` .hue-horizontal { background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%); background: -webkit-linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%); } .hue-vertical { background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%); background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%); } `),s.createElement("div",{style:o.pointer},this.props.pointer?s.createElement(this.props.pointer,this.props):s.createElement("div",{style:o.slider}))))}}]),e}(S.PureComponent||S.Component),Pe=function(e){var r=e.zDepth,n=e.radius,a=e.background,i=e.children,o=e.styles,l=o===void 0?{}:o,c=m(O({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+r+"px "+r*4+"px rgba(0,0,0,.24)",borderRadius:n,background:a}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},l),{"zDepth-1":r===1});return s.createElement("div",{style:c.wrap},s.createElement("div",{style:c.bg}),s.createElement("div",{style:c.content},i))};Pe.propTypes={background:g.string,zDepth:g.oneOf([0,1,2,3,4,5]),radius:g.number,styles:g.object};Pe.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};var nb=function(e,r,n){var a=n.getBoundingClientRect(),i=a.width,o=a.height,l=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,c=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,h=l-(n.getBoundingClientRect().left+window.pageXOffset),u=c-(n.getBoundingClientRect().top+window.pageYOffset);h<0?h=0:h>i&&(h=i),u<0?u=0:u>o&&(u=o);var p=h/i,f=1-u/o;return{h:r.h,s:p,v:f,a:r.a,source:"hsv"}},ab=function(){function t(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();function ib(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ob(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function sb(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Ze=function(t){sb(e,t);function e(r){ib(this,e);var n=ob(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r));return n.handleChange=function(a){typeof n.props.onChange=="function"&&n.throttle(n.props.onChange,nb(a,n.props.hsl,n.container),a)},n.handleMouseDown=function(a){n.handleChange(a);var i=n.getContainerRenderWindow();i.addEventListener("mousemove",n.handleChange),i.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=Wn(function(a,i,o){a(i,o)},50),n}return ab(e,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var n=this.container,a=window;!a.document.contains(n)&&a.parent!==a;)a=a.parent;return a}},{key:"unbindEventListeners",value:function(){var n=this.getContainerRenderWindow();n.removeEventListener("mousemove",this.handleChange),n.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var n=this,a=this.props.style||{},i=a.color,o=a.white,l=a.black,c=a.pointer,h=a.circle,u=m({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-(this.props.hsv.v*100)+100+"%",left:this.props.hsv.s*100+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3), 0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:i,white:o,black:l,pointer:c,circle:h}},{custom:!!this.props.style});return s.createElement("div",{style:u.color,ref:function(f){return n.container=f},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},s.createElement("style",null,` .saturation-white { background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0)); background: linear-gradient(to right, #fff, rgba(255,255,255,0)); } .saturation-black { background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0)); background: linear-gradient(to top, #000, rgba(0,0,0,0)); } `),s.createElement("div",{style:u.white,className:"saturation-white"},s.createElement("div",{style:u.black,className:"saturation-black"}),s.createElement("div",{style:u.pointer},this.props.pointer?s.createElement(this.props.pointer,this.props):s.createElement("div",{style:u.circle}))))}}]),e}(S.PureComponent||S.Component);function Ie(t){"@babel/helpers - typeof";return Ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ie(t)}var lb=/^\s+/,cb=/\s+$/;function v(t,e){if(t=t||"",e=e||{},t instanceof v)return t;if(!(this instanceof v))return new v(t,e);var r=hb(t);this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||r.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}v.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),r,n,a,i,o,l;return r=e.r/255,n=e.g/255,a=e.b/255,r<=.03928?i=r/12.92:i=Math.pow((r+.055)/1.055,2.4),n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),a<=.03928?l=a/12.92:l=Math.pow((a+.055)/1.055,2.4),.2126*i+.7152*o+.0722*l},setAlpha:function(e){return this._a=Fn(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=Fr(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=Fr(this._r,this._g,this._b),r=Math.round(e.h*360),n=Math.round(e.s*100),a=Math.round(e.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+a+"%)":"hsva("+r+", "+n+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var e=Rr(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=Rr(this._r,this._g,this._b),r=Math.round(e.h*360),n=Math.round(e.s*100),a=Math.round(e.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+a+"%)":"hsla("+r+", "+n+"%, "+a+"%, "+this._roundA+")"},toHex:function(e){return Br(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return db(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round($(this._r,255)*100)+"%",g:Math.round($(this._g,255)*100)+"%",b:Math.round($(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round($(this._r,255)*100)+"%, "+Math.round($(this._g,255)*100)+"%, "+Math.round($(this._b,255)*100)+"%)":"rgba("+Mat