芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/public_html/wp-content/plugins/chaty/admin/assets/js/spectrum.min.js
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports&&"object"==typeof module?module.exports=t(require("jquery")):t(jQuery)}((function(t,e){"use strict";var r={beforeShow:f,move:f,change:f,show:f,hide:f,color:!1,flat:!1,showInput:!1,allowEmpty:!1,showButtons:!0,clickoutFiresChange:!0,showInitial:!1,showPalette:!1,showPaletteOnly:!1,hideAfterPaletteSelect:!1,togglePaletteOnly:!1,showSelectionPalette:!0,localStorageKey:!1,appendTo:"body",maxSelectionSize:7,cancelText:"cancel",chooseText:"choose",togglePaletteMoreText:"more",togglePaletteLessText:"less",clearText:"Clear Color Selection",noColorSelectedText:"No Color Selected",preferredFormat:!1,className:"",containerClassName:"",replacerClassName:"",showAlpha:!1,theme:"sp-light",palette:[["#ffffff","#000000","#ff0000","#ff8000","#ffff00","#008000","#0000ff","#4b0082","#9400d3"]],selectionPalette:[],disabled:!1,offset:null},n=[],a=!!/msie/i.exec(window.navigator.userAgent),i=function(){function t(t,e){return!!~(""+t).indexOf(e)}var e=document.createElement("div").style;return e.cssText="background-color:rgba(0,0,0,.5)",t(e.backgroundColor,"rgba")||t(e.backgroundColor,"hsla")}(),o=["
","
","
▼
","
"].join(""),s=function(){var t="";if(a)for(var e=1;e<=6;e++)t+="
";return["
","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
",t,"
","
","
","
","
","
","
","
","
","
","
","
","
","
"].join("")}();function l(e,r,n,a){for(var o=[],s=0;s
')}else{o.push(t("
").append(t('
').attr("title",a.noColorSelectedText)).html())}}return"
"+o.join("")+"
"}function c(c,f){var g,b,v,m,y=function(e,n){var a=t.extend({},r,e);return a.callbacks={move:h(a.move,n),change:h(a.change,n),show:h(a.show,n),hide:h(a.hide,n),beforeShow:h(a.beforeShow,n)},a}(f,c),w=y.flat,_=y.showSelectionPalette,x=y.localStorageKey,k=y.theme,S=y.callbacks,C=(g=Kt,b=10,function(){var t=this,e=arguments,r=function(){m=null,g.apply(t,e)};v&&clearTimeout(m),!v&&m||(m=setTimeout(r,b))}),P=!1,A=!1,M=0,R=0,H=0,F=0,T=0,O=0,E=0,I=0,q=0,N=0,j=1,D=[],$=[],z={},B=y.selectionPalette.slice(0),L=y.maxSelectionSize,K="sp-dragging",V=null,X=c.ownerDocument,W=(X.body,t(c)),Y=!1,G=t(s,X).addClass(k),Q=G.find(".sp-picker-container"),J=G.find(".sp-color"),U=G.find(".sp-dragger"),Z=G.find(".sp-hue"),tt=G.find(".sp-slider"),et=G.find(".sp-alpha-inner"),rt=G.find(".sp-alpha"),nt=G.find(".sp-alpha-handle"),at=G.find(".sp-input"),it=G.find(".sp-palette"),ot=G.find(".sp-initial"),st=G.find(".sp-cancel"),lt=G.find(".sp-clear"),ct=G.find(".sp-choose"),ft=G.find(".sp-palette-toggle"),ut=W.is("input"),ht=ut&&"color"===W.attr("type")&&p(),dt=ut&&!w,pt=dt?t(o).addClass(k).addClass(y.className).addClass(y.replacerClassName):t([]),gt=dt?pt:W,bt=pt.find(".sp-preview-inner"),vt=y.color||ut&&W.val(),mt=!1,yt=y.preferredFormat,wt=!y.showButtons||y.clickoutFiresChange,_t=!vt,xt=y.allowEmpty&&!ht;function kt(){if(y.showPaletteOnly&&(y.showPalette=!0),ft.text(y.showPaletteOnly?y.togglePaletteMoreText:y.togglePaletteLessText),y.palette){D=y.palette.slice(0),$=t.isArray(D[0])?D:[D],z={};for(var e=0;e<$.length;e++)for(var r=0;r<$[e].length;r++){var n=tinycolor($[e][r]).toRgbString();z[n]=!0}}G.toggleClass("sp-flat",w),G.toggleClass("sp-input-disabled",!y.showInput),G.toggleClass("sp-alpha-enabled",y.showAlpha),G.toggleClass("sp-clear-enabled",xt),G.toggleClass("sp-buttons-disabled",!y.showButtons),G.toggleClass("sp-palette-buttons-disabled",!y.togglePaletteOnly),G.toggleClass("sp-palette-disabled",!y.showPalette),G.toggleClass("sp-palette-only",y.showPaletteOnly),G.toggleClass("sp-initial-disabled",!y.showInitial),G.addClass(y.className).addClass(y.containerClassName),Kt()}function St(){if(x&&window.localStorage){try{var e=window.localStorage[x].split(",#");e.length>1&&(delete window.localStorage[x],t.each(e,(function(t,e){Ct(e)})))}catch(t){}try{B=window.localStorage[x].split(";")}catch(t){}}}function Ct(e){if(_){var r=tinycolor(e).toRgbString();if(!z[r]&&-1===t.inArray(r,B))for(B.push(r);B.length>L;)B.shift();if(x&&window.localStorage)try{window.localStorage[x]=B.join(";")}catch(t){}}}function Pt(){var e=jt(),r=t.map($,(function(t,r){return l(t,e,"sp-palette-row sp-palette-row-"+r,y)}));St(),B&&r.push(l(function(){var t=[];if(y.showPalette)for(var e=0;e
1)return 1;return e}(l,e)})`}(t))&&""!==t||!xt){var e=tinycolor(t);e.isValid()?(Nt(e),Dt(),Lt()):at.addClass("sp-validation-error")}else Nt(null),Dt(),Lt()}function Ft(){P?It():Tt()}function Tt(){var e=t.Event("beforeShow.spectrum");P?Kt():(W.trigger(e,[jt()]),!1===S.beforeShow(jt())||e.isDefaultPrevented()||(!function(){for(var t=0;t
c&&c>a?Math.abs(h+a-c):0),{top:d-=Math.min(d,d+i>f&&f>i?Math.abs(i+o-n):n),bottom:u.bottom,left:h,right:u.right,width:u.width,height:u.height}}(G,gt))),Bt(),y.showPalette&&Pt(),W.trigger("reflow.spectrum"))}function Vt(){It(),Y=!0,W.attr("disabled",!0),gt.addClass("sp-disabled")}!function(){if(a&&G.find("*:not(input)").attr("unselectable","on"),kt(),dt&&W.after(pt).hide(),xt||lt.hide(),w)W.after(G).hide();else{var e="parent"===y.appendTo?W.parent():t(y.appendTo);1!==e.length&&(e=t("body")),e.append(G)}function r(e){return e.data&&e.data.ignore?(Nt(t(e.target).closest(".sp-thumb-el").data("color")),Dt()):(Nt(t(e.target).closest(".sp-thumb-el").data("color")),Dt(),y.hideAfterPaletteSelect?(Lt(!0),It()):Lt()),!1}St(),gt.on("click.spectrum touchstart.spectrum",(function(e){Y||Ft(),e.stopPropagation(),t(e.target).is("input")||e.preventDefault()})),(W.is(":disabled")||!0===y.disabled)&&Vt(),G.click(u),at.change(Ht),at.on("paste",(function(){setTimeout(Ht,1)})),at.keydown((function(t){13==t.keyCode&&Ht()})),st.text(y.cancelText),st.on("click.spectrum",(function(t){t.stopPropagation(),t.preventDefault(),qt(),It()})),lt.attr("title",y.clearText),lt.on("click.spectrum",(function(t){t.stopPropagation(),t.preventDefault(),_t=!0,Dt(),w&&Lt(!0)})),ct.text(y.chooseText),ct.on("click.spectrum",(function(t){t.stopPropagation(),t.preventDefault(),a&&at.is(":focus")&&at.trigger("change"),at.hasClass("sp-validation-error")||(Lt(!0),It())})),ft.text(y.showPaletteOnly?y.togglePaletteMoreText:y.togglePaletteLessText),ft.on("click.spectrum",(function(t){t.stopPropagation(),t.preventDefault(),y.showPaletteOnly=!y.showPaletteOnly,y.showPaletteOnly||w||G.css("left","-="+(Q.outerWidth(!0)+5)),kt()})),d(rt,(function(t,e,r){j=t/T,_t=!1,r.shiftKey&&(j=Math.round(10*j)/10),Dt()}),Mt,Rt),d(Z,(function(t,e){I=parseFloat(e/F),_t=!1,y.showAlpha||(j=1),Dt()}),Mt,Rt),d(J,(function(t,e,r){if(r.shiftKey){if(!V){var n=q*M,a=R-N*R,i=Math.abs(t-n)>Math.abs(e-a);V=i?"x":"y"}}else V=null;var o=!V||"y"===V;(!V||"x"===V)&&(q=parseFloat(t/M)),o&&(N=parseFloat((R-e)/R)),_t=!1,y.showAlpha||(j=1),Dt()}),Mt,Rt),vt?(Nt(vt),$t(),yt=y.preferredFormat||tinycolor(vt).format,Ct(vt)):$t(),w&&Tt();var n=a?"mousedown.spectrum":"click.spectrum touchstart.spectrum";it.on(n,".sp-thumb-el",r),ot.on(n,".sp-thumb-el:nth-child(1)",{ignore:!0},r)}();var Xt={show:Tt,hide:It,toggle:Ft,reflow:Kt,option:function(r,n){return r===e?t.extend({},y):n===e?y[r]:(y[r]=n,"preferredFormat"===r&&(yt=y.preferredFormat),void kt())},enable:function(){Y=!1,W.attr("disabled",!1),gt.removeClass("sp-disabled")},disable:Vt,offset:function(t){y.offset=t,Kt()},set:function(t){Nt(t),Lt()},get:jt,destroy:function(){W.show(),gt.off("click.spectrum touchstart.spectrum"),G.remove(),pt.remove(),n[Xt.id]=null},container:G};return Xt.id=n.push(Xt)-1,Xt}function f(){}function u(t){t.stopPropagation()}function h(t,e){var r=Array.prototype.slice,n=r.call(arguments,2);return function(){return t.apply(e,n.concat(r.call(arguments)))}}function d(e,r,n,i){r=r||function(){},n=n||function(){},i=i||function(){};var o=document,s=!1,l={},c=0,f=0,u="ontouchstart"in window,h={};function d(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),t.returnValue=!1}function p(t){if(s){if(a&&o.documentMode<9&&!t.button)return g();var n=t.originalEvent&&t.originalEvent.touches&&t.originalEvent.touches[0],i=n&&n.pageX||t.pageX,h=n&&n.pageY||t.pageY,p=Math.max(0,Math.min(i-l.left,f)),b=Math.max(0,Math.min(h-l.top,c));u&&d(t),r.apply(e,[p,b,t])}}function g(){s&&(t(o).off(h),t(o.body).removeClass("sp-dragging"),setTimeout((function(){i.apply(e,arguments)}),0)),s=!1}h.selectstart=d,h.dragstart=d,h["touchmove mousemove"]=p,h["touchend mouseup"]=g,t(e).on("touchstart mousedown",(function(r){(r.which?3==r.which:2==r.button)||s||!1!==n.apply(e,arguments)&&(s=!0,c=t(e).height(),f=t(e).width(),l=t(e).offset(),t(o).on(h),t(o.body).addClass("sp-dragging"),p(r),d(r))}))}function p(){return t.fn.spectrum.inputTypeColorSupport()}var g="spectrum.id";t.fn.spectrum=function(e,r){if("string"==typeof e){var a=this,i=Array.prototype.slice.call(arguments,1);return this.each((function(){var r=n[t(this).data(g)];if(r){var o=r[e];if(!o)throw new Error("Spectrum: no such method: '"+e+"'");"get"==e?a=r.get():"container"==e?a=r.container:"option"==e?a=r.option.apply(r,i):"destroy"==e?(r.destroy(),t(this).removeData(g)):o.apply(r,i)}})),a}return this.spectrum("destroy").each((function(){var r=c(this,t.extend({},t(this).data(),e));t(this).data(g,r.id)}))},t.fn.spectrum.load=!0,t.fn.spectrum.loadOpts={},t.fn.spectrum.draggable=d,t.fn.spectrum.defaults=r,t.fn.spectrum.inputTypeColorSupport=function e(){if(void 0===e._cachedResult){var r=t("
")[0];e._cachedResult="color"===r.type&&""!==r.value}return e._cachedResult},t.spectrum={},t.spectrum.localization={},t.spectrum.palettes={},t.fn.spectrum.processNativeColorInputs=function(){var e=t("input[type=color]");e.length&&!p()&&e.spectrum({preferredFormat:"hex6"})},function(){var t=/^[\s,#]+/,e=/\s+$/,r=0,n=Math,a=n.round,i=n.min,o=n.max,s=n.random,l=function(s,c){if(c=c||{},(s=s||"")instanceof l)return s;if(!(this instanceof l))return new l(s,c);var f=function(r){var a={r:0,g:0,b:0},s=1,l=!1,c=!1;"string"==typeof r&&(r=function(r){r=r.replace(t,"").replace(e,"").toLowerCase();var n,a=!1;if(P[r])r=P[r],a=!0;else if("transparent"==r)return{r:0,g:0,b:0,a:0,format:"name"};if(n=j.rgb.exec(r))return{r:n[1],g:n[2],b:n[3]};if(n=j.rgba.exec(r))return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=j.hsl.exec(r))return{h:n[1],s:n[2],l:n[3]};if(n=j.hsla.exec(r))return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=j.hsv.exec(r))return{h:n[1],s:n[2],v:n[3]};if(n=j.hsva.exec(r))return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=j.hex8.exec(r))return{a:E(n[1]),r:F(n[2]),g:F(n[3]),b:F(n[4]),format:a?"name":"hex8"};if(n=j.hex6.exec(r))return{r:F(n[1]),g:F(n[2]),b:F(n[3]),format:a?"name":"hex"};if(n=j.hex3.exec(r))return{r:F(n[1]+""+n[1]),g:F(n[2]+""+n[2]),b:F(n[3]+""+n[3]),format:a?"name":"hex"};return!1}(r));"object"==typeof r&&(r.hasOwnProperty("r")&&r.hasOwnProperty("g")&&r.hasOwnProperty("b")?(f=r.r,u=r.g,h=r.b,a={r:255*R(f,255),g:255*R(u,255),b:255*R(h,255)},l=!0,c="%"===String(r.r).substr(-1)?"prgb":"rgb"):r.hasOwnProperty("h")&&r.hasOwnProperty("s")&&r.hasOwnProperty("v")?(r.s=O(r.s),r.v=O(r.v),a=function(t,e,r){t=6*R(t,360),e=R(e,100),r=R(r,100);var a=n.floor(t),i=t-a,o=r*(1-e),s=r*(1-i*e),l=r*(1-(1-i)*e),c=a%6,f=[r,s,o,o,l,r][c],u=[l,r,r,s,o,o][c],h=[o,o,l,r,r,s][c];return{r:255*f,g:255*u,b:255*h}}(r.h,r.s,r.v),l=!0,c="hsv"):r.hasOwnProperty("h")&&r.hasOwnProperty("s")&&r.hasOwnProperty("l")&&(r.s=O(r.s),r.l=O(r.l),a=function(t,e,r){var n,a,i;function o(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t=R(t,360),e=R(e,100),r=R(r,100),0===e)n=a=i=r;else{var s=r<.5?r*(1+e):r+e-r*e,l=2*r-s;n=o(l,s,t+1/3),a=o(l,s,t),i=o(l,s,t-1/3)}return{r:255*n,g:255*a,b:255*i}}(r.h,r.s,r.l),l=!0,c="hsl"),r.hasOwnProperty("a")&&(s=r.a));var f,u,h;return s=M(s),{ok:l,format:r.format||c,r:i(255,o(a.r,0)),g:i(255,o(a.g,0)),b:i(255,o(a.b,0)),a:s}}(s);this._originalInput=s,this._r=f.r,this._g=f.g,this._b=f.b,this._a=f.a,this._roundA=a(1e3*this._a)/1e3,this._format=c.format||f.format,this._gradientType=c.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=f.ok,this._tc_id=r++};function c(t,e,r){t=R(t,255),e=R(e,255),r=R(r,255);var n,a,s=o(t,e,r),l=i(t,e,r),c=(s+l)/2;if(s==l)n=a=0;else{var f=s-l;switch(a=c>.5?f/(2-s-l):f/(s+l),s){case t:n=(e-r)/f+(e
>1)+720)%360;--e;)n.h=(n.h+a)%360,i.push(l(n));return i}function C(t,e){e=e||6;for(var r=l(t).toHsv(),n=r.h,a=r.s,i=r.v,o=[],s=1/e;e--;)o.push(l({h:n,s:a,v:i})),i=(i+s)%1;return o}l.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 t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},setAlpha:function(t){return this._a=M(t),this._roundA=a(1e3*this._a)/1e3,this},toHsv:function(){var t=f(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=f(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),n=a(100*t.v);return 1==this._a?"hsv("+e+", "+r+"%, "+n+"%)":"hsva("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=c(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=c(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),n=a(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+n+"%)":"hsla("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return u(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(){return h(this._r,this._g,this._b,this._a)},toHex8String:function(){return"#"+this.toHex8()},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(100*R(this._r,255))+"%",g:a(100*R(this._g,255))+"%",b:a(100*R(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+a(100*R(this._r,255))+"%, "+a(100*R(this._g,255))+"%, "+a(100*R(this._b,255))+"%)":"rgba("+a(100*R(this._r,255))+"%, "+a(100*R(this._g,255))+"%, "+a(100*R(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(A[u(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+h(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?"GradientType = 1, ":"";t&&(r=l(t).toHex8String());return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0;return e||!n||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"name"!==t?("rgb"===t&&(r=this.toRgbString()),"prgb"===t&&(r=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(r=this.toHexString()),"hex3"===t&&(r=this.toHexString(!0)),"hex8"===t&&(r=this.toHex8String()),"name"===t&&(r=this.toName()),"hsl"===t&&(r=this.toHslString()),"hsv"===t&&(r=this.toHsvString()),r||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(b,arguments)},brighten:function(){return this._applyModification(v,arguments)},darken:function(){return this._applyModification(m,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(p,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(y,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(w,arguments)},monochromatic:function(){return this._applyCombination(C,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(_,arguments)},tetrad:function(){return this._applyCombination(x,arguments)}},l.fromRatio=function(t,e){if("object"==typeof t){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]="a"===n?t[n]:O(t[n]));t=r}return l(t,e)},l.equals=function(t,e){return!(!t||!e)&&l(t).toRgbString()==l(e).toRgbString()},l.random=function(){return l.fromRatio({r:s(),g:s(),b:s()})},l.mix=function(t,e,r){r=0===r?0:r||50;var n,a=l(t).toRgb(),i=l(e).toRgb(),o=r/100,s=2*o-1,c=i.a-a.a,f=1-(n=((n=s*c==-1?s:(s+c)/(1+s*c))+1)/2),u={r:i.r*n+a.r*f,g:i.g*n+a.g*f,b:i.b*n+a.b*f,a:i.a*o+a.a*(1-o)};return l(u)},l.readability=function(t,e){var r=l(t),n=l(e),a=r.toRgb(),i=n.toRgb(),o=r.getBrightness(),s=n.getBrightness(),c=Math.max(a.r,i.r)-Math.min(a.r,i.r)+Math.max(a.g,i.g)-Math.min(a.g,i.g)+Math.max(a.b,i.b)-Math.min(a.b,i.b);return{brightness:Math.abs(o-s),color:c}},l.isReadable=function(t,e){var r=l.readability(t,e);return r.brightness>125&&r.color>500},l.mostReadable=function(t,e){for(var r=null,n=0,a=!1,i=0;i
125&&o.color>500,c=o.brightness/125*3+o.color/500;(s&&!a||s&&a&&c>n||!s&&!a&&c>n)&&(a=s,n=c,r=l(e[i]))}return r};var P=l.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},A=l.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(P);function M(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function R(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var r=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=i(e,o(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),n.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function H(t){return i(1,o(0,t))}function F(t){return parseInt(t,16)}function T(t){return 1==t.length?"0"+t:""+t}function O(t){return t<=1&&(t=100*t+"%"),t}function E(t){return F(t)/255}var I,q,N,j=(q="[\\s|\\(]+("+(I="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?",N="[\\s|\\(]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?",{rgb:new RegExp("rgb"+q),rgba:new RegExp("rgba"+N),hsl:new RegExp("hsl"+q),hsla:new RegExp("hsla"+N),hsv:new RegExp("hsv"+q),hsva:new RegExp("hsva"+N),hex3:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex8:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});window.tinycolor=l}(),t((function(){t.fn.spectrum.load&&t.fn.spectrum.processNativeColorInputs()}))}));