Plugin Directory

Changeset 3223598


Ignore:
Timestamp:
01/16/2025 01:48:47 PM (15 months ago)
Author:
ilovepdf
Message:

Update to version 2.2.5 from GitHub

Location:
watermark-protect-images
Files:
2 deleted
36 edited
1 copied

Legend:

Unmodified
Added
Removed
  • watermark-protect-images/tags/2.2.5/README.txt

    r3196636 r3223598  
    11=== Best Watermark - Protect images on your site with iLoveIMG ===
    22Plugin Name: Best Watermark - Protect images on your site with iLoveIMG
    3 Version: 2.2.4
     3Version: 2.2.5
    44Author: iLovePDF
    55Author URI: https://www.iloveimg.com/
     
    88Requires at least: 5.3
    99Tested up to: 6.7
    10 Stable tag: 2.2.4
     10Stable tag: 2.2.5
    1111Requires PHP: 7.4
    1212License: GPLv2 or later
     
    100100
    101101== Changelog ==
     102
     103= 2.2.5 =
     104Improved
     105* Update Libraries.
     106
     107Fixed
     108* Thumbnails and other intermediate sizes that came from a PDF file were watermarked.
    102109
    103110= 2.2.4 =
  • watermark-protect-images/tags/2.2.5/admin/Ilove_Img_Wm_Plugin.php

    r3196636 r3223598  
    1919     * @var      string    VERSION    The current version of the plugin.
    2020     */
    21     const VERSION = '2.2.4';
     21    const VERSION = '2.2.5';
    2222
    2323    /**
     
    248248     */
    249249    public function process_attachment( $metadata, $attachment_id ) {
     250        $file                 = get_post( $attachment_id );
     251        $accepted_file_format = array( 'image/jpeg', 'image/jpg', 'image/png', 'image/gif' );
     252
     253        if ( ! in_array( $file->post_mime_type, $accepted_file_format, true ) ) {
     254            return $metadata;
     255        }
     256
    250257        update_post_meta( $attachment_id, 'iloveimg_status_watermark', 0 ); // status no watermarked
    251258
  • watermark-protect-images/tags/2.2.5/assets/js/main.min.js

    r3196636 r3223598  
    77                            <button id="iloveimg-watermark-dialog-close" class="button button-secondary">Close</button>
    88                        </div>
    9                     </dialog>`);let i=document.getElementById("iloveimg-watermark-restore-dialog");var e=document.getElementById("iloveimg-watermark-dialog-aceptted"),o=document.getElementById("iloveimg-watermark-dialog-close");i.showModal(),e.addEventListener("click",e=>{e.preventDefault(),t.attr("disabled","disabled"),i.close(),i.remove(),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"ilove_img_wm_restore_all"},success:function(){t.removeAttr("disabled"),location.reload()},error:function(){t.removeAttr("disabled")}})}),o.addEventListener("click",e=>{e.preventDefault(),i.close(),i.remove()})}),jQuery(".iloveimg_page_iloveimg-watermark-admin-page #iloveimg_clear_backup").on("click",function(e){e.preventDefault();let t=jQuery(e.currentTarget);t.parent().append(`
     9                    </dialog>`);const i=document.getElementById("iloveimg-watermark-restore-dialog");var e=document.getElementById("iloveimg-watermark-dialog-aceptted"),o=document.getElementById("iloveimg-watermark-dialog-close");i.showModal(),e.addEventListener("click",e=>{e.preventDefault(),t.attr("disabled","disabled"),i.close(),i.remove(),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"ilove_img_wm_restore_all"},success:function(){t.removeAttr("disabled"),location.reload()},error:function(){t.removeAttr("disabled")}})}),o.addEventListener("click",e=>{e.preventDefault(),i.close(),i.remove()})}),jQuery(".iloveimg_page_iloveimg-watermark-admin-page #iloveimg_clear_backup").on("click",function(e){e.preventDefault();let t=jQuery(e.currentTarget);t.parent().append(`
    1010                    <dialog id="iloveimg-watermark-restore-dialog" class="iloveimg-restore-dialog">
    1111                        <h2 class="iloveimg-title-dialog">Attention!</h2>
     
    1515                            <button id="iloveimg-watermark-dialog-close" class="button button-secondary">Close</button>
    1616                        </div>
    17                     </dialog>`);let i=document.getElementById("iloveimg-watermark-restore-dialog");var e=document.getElementById("iloveimg-watermark-dialog-aceptted"),o=document.getElementById("iloveimg-watermark-dialog-close");i.showModal(),e.addEventListener("click",e=>{e.preventDefault(),t.attr("disabled","disabled"),i.close(),i.remove(),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"ilove_img_wm_clear_backup"},success:function(){t.removeAttr("disabled"),location.reload()},error:function(){t.removeAttr("disabled")}})}),o.addEventListener("click",e=>{e.preventDefault(),i.close(),i.remove()})}),jQuery(".iloveimg-watermark.iloveimg_restore_button_wrapper .iloveimg_restore_button").on("click",function(e){e.preventDefault();let t=jQuery(e.currentTarget),i=jQuery(e.currentTarget).siblings("#_wpnonce"),o=(i=i.val(),t.data("action")),a=t.data("id");t.hide(),t.nextAll(".loading").show();t.parent().append(`
     17                    </dialog>`);const i=document.getElementById("iloveimg-watermark-restore-dialog");var e=document.getElementById("iloveimg-watermark-dialog-aceptted"),o=document.getElementById("iloveimg-watermark-dialog-close");i.showModal(),e.addEventListener("click",e=>{e.preventDefault(),t.attr("disabled","disabled"),i.close(),i.remove(),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"ilove_img_wm_clear_backup"},success:function(){t.removeAttr("disabled"),location.reload()},error:function(){t.removeAttr("disabled")}})}),o.addEventListener("click",e=>{e.preventDefault(),i.close(),i.remove()})}),jQuery(".iloveimg-watermark.iloveimg_restore_button_wrapper .iloveimg_restore_button").on("click",function(e){e.preventDefault();let t=jQuery(e.currentTarget),i=jQuery(e.currentTarget).siblings("#_wpnonce"),o=(i=i.val(),t.data("action")),a=t.data("id");t.hide(),t.nextAll(".loading").show();t.parent().append(`
    1818                    <dialog id="iloveimg-watermark-restore-dialog" class="iloveimg-restore-dialog">
    1919                        <h2 class="iloveimg-title-dialog">Attention!</h2>
     
    2323                            <button id="iloveimg-watermark-dialog-close" class="button button-secondary">Close</button>
    2424                        </div>
    25                     </dialog>`);let r=document.getElementById("iloveimg-watermark-restore-dialog");var e=document.getElementById("iloveimg-watermark-dialog-aceptted"),l=document.getElementById("iloveimg-watermark-dialog-close");r.showModal(),e.addEventListener("click",e=>{e.preventDefault(),t.attr("disabled","disabled"),r.close(),r.remove(),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:o,id:a,_wpnonce:i},dataType:"json",success:function(e){t.nextAll(".loading").hide(),t.nextAll(".success").html(e.data).show(),location.reload()},error:function(e){t.nextAll(".loading").hide(),t.nextAll(".error").html(e.responseJSON.data).show(),t.show()}})}),l.addEventListener("click",e=>{e.preventDefault(),t.show(),t.nextAll(".loading").hide(),r.close(),r.remove()})}),jQuery("input[name='iloveimg_field_image']").on("keyup change",function(e){jQuery("#iloveimg_settings__watermark__preview img").attr("src",jQuery("input[name='iloveimg_field_image']").val())}),jQuery("#media-open").on("click",function(e){e.preventDefault(),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"ilove_img_wm_library_set_watermark_image"},success:function(e){}}),l||(l=wp.media({title:"Select or Upload Media",button:{text:"Select Watermark"},multiple:!1})).on("select",function(){var e=l.state().get("selection").first().toJSON();jQuery("input[name='iloveimg_field_image']").val(e.url),jQuery("#iloveimg_settings__watermark__preview img").attr("src",e.url),_(),t(),a()}),l.open()})}.call();
     25                    </dialog>`);const r=document.getElementById("iloveimg-watermark-restore-dialog");var e=document.getElementById("iloveimg-watermark-dialog-aceptted"),l=document.getElementById("iloveimg-watermark-dialog-close");r.showModal(),e.addEventListener("click",e=>{e.preventDefault(),t.attr("disabled","disabled"),r.close(),r.remove(),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:o,id:a,_wpnonce:i},dataType:"json",success:function(e){t.nextAll(".loading").hide(),t.nextAll(".success").html(e.data).show(),location.reload()},error:function(e){t.nextAll(".loading").hide(),t.nextAll(".error").html(e.responseJSON.data).show(),t.show()}})}),l.addEventListener("click",e=>{e.preventDefault(),t.show(),t.nextAll(".loading").hide(),r.close(),r.remove()})}),jQuery("input[name='iloveimg_field_image']").on("keyup change",function(e){jQuery("#iloveimg_settings__watermark__preview img").attr("src",jQuery("input[name='iloveimg_field_image']").val())}),jQuery("#media-open").on("click",function(e){e.preventDefault(),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"ilove_img_wm_library_set_watermark_image"},success:function(e){}}),l||(l=wp.media({title:"Select or Upload Media",button:{text:"Select Watermark"},multiple:!1})).on("select",function(){var e=l.state().get("selection").first().toJSON();jQuery("input[name='iloveimg_field_image']").val(e.url),jQuery("#iloveimg_settings__watermark__preview img").attr("src",e.url),_(),t(),a()}),l.open()})}.call();
  • watermark-protect-images/tags/2.2.5/assets/js/spectrum.min.js

    r3196636 r3223598  
    1 (t=>{"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports&&"object"==typeof module?module.exports=t(require("jquery")):t(jQuery)})(function(Tt,Ot){var qt={beforeShow:e,move:e,change:e,show:e,hide:e,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},Nt=[],jt=!!/msie/i.exec(window.navigator.userAgent),Et=((u=document.createElement("div").style).cssText="background-color:rgba(0,0,0,.5)",t(u.backgroundColor,"rgba")||t(u.backgroundColor,"hsla")),Lt=["<div class='sp-replacer'>","<div class='sp-preview'><div class='sp-preview-inner'></div></div>","<div class='sp-dd'>&#9660;</div>","</div>"].join(""),Kt=(()=>{var t="";if(jt)for(var e=1;e<=6;e++)t+="<div class='sp-"+e+"'></div>";return["<div class='sp-container sp-hidden'>","<div class='sp-palette-container'>","<div class='sp-palette sp-thumb sp-cf'></div>","<div class='sp-palette-button-container sp-cf'>","<button type='button' class='sp-palette-toggle'></button>","</div>","</div>","<div class='sp-picker-container'>","<div class='sp-top sp-cf'>","<div class='sp-fill'></div>","<div class='sp-top-inner'>","<div class='sp-color'>","<div class='sp-sat'>","<div class='sp-val'>","<div class='sp-dragger'></div>","</div>","</div>","</div>","<div class='sp-clear sp-clear-display'>","</div>","<div class='sp-hue'>","<div class='sp-slider'></div>",t,"</div>","</div>","<div class='sp-alpha'><div class='sp-alpha-inner'><div class='sp-alpha-handle'></div></div></div>","</div>","<div class='sp-input-container sp-cf'>","<input class='sp-input' type='text' spellcheck='false'  />","</div>","<div class='sp-initial sp-thumb sp-cf'></div>","<div class='sp-button-container sp-cf'>","<a class='sp-cancel' href='#'></a>","<button type='button' class='sp-choose'></button>","</div>","</div>","</div>"].join("")})();function t(t,e){return!!~(""+t).indexOf(e)}function Dt(t,e,r,a){for(var n=[],i=0;i<t.length;i++){var s,o,l,c=t[i];c?(o=(s=tinycolor(c)).toHsl().l<.5?"sp-thumb-el sp-thumb-dark":"sp-thumb-el sp-thumb-light",o+=tinycolor.equals(e,c)?" sp-thumb-active":"",c=s.toString(a.preferredFormat||"rgb"),l=Et?"background-color:"+s.toRgbString():"filter:"+s.toFilter(),n.push('<span title="'+c+'" data-color="'+s.toRgbString()+'" class="'+o+'"><span class="sp-thumb-inner" style="'+l+';" /></span>')):n.push(Tt("<div />").append(Tt('<span data-color="" style="background-color:transparent;" class="sp-clear-display"></span>').attr("title",a.noColorSelectedText)).html())}return"<div class='sp-cf "+r+"'>"+n.join("")+"</div>"}function P(t,e){e=e,n=t,(e=Tt.extend({},qt,e)).callbacks={move:It(e.move,n),change:It(e.change,n),show:It(e.show,n),hide:It(e.hide,n),beforeShow:It(e.beforeShow,n)};var j,E,D,I,r,o=e,l=o.flat,z=o.showSelectionPalette,a=o.localStorageKey,n=o.theme,i=o.callbacks,B=(j=N,function(){var t=this,e=arguments;D&&clearTimeout(I),!D&&I||(I=setTimeout(function(){I=null,j.apply(t,e)},E))}),c=!(E=10),L=!1,f=0,h=0,u=0,K=0,V=0,$=0,W=0,s=0,d=0,p=0,g=1,X=[],b=[],Y={},m=o.selectionPalette.slice(0),G=o.maxSelectionSize,Q="sp-dragging",v=null,y=t.ownerDocument,w=(y.body,Tt(t)),J=!1,_=Tt(Kt,y).addClass(n),U=_.find(".sp-picker-container"),Z=_.find(".sp-color"),tt=_.find(".sp-dragger"),et=_.find(".sp-hue"),rt=_.find(".sp-slider"),at=_.find(".sp-alpha-inner"),nt=_.find(".sp-alpha"),it=_.find(".sp-alpha-handle"),x=_.find(".sp-input"),st=_.find(".sp-palette"),ot=_.find(".sp-initial"),e=_.find(".sp-cancel"),t=_.find(".sp-clear"),lt=_.find(".sp-choose"),ct=_.find(".sp-palette-toggle"),ft=w.is("input"),ht=ft&&"color"===w.attr("type")&&Bt(),ut=ft&&!l,k=ut?Tt(Lt).addClass(n).addClass(o.className).addClass(o.replacerClassName):Tt([]),dt=ut?k:w,S=k.find(".sp-preview-inner"),n=o.color||ft&&w.val(),C=!1,P=o.preferredFormat,pt=!o.showButtons||o.clickoutFiresChange,A=!n,M=o.allowEmpty&&!ht;function gt(){if(o.showPaletteOnly&&(o.showPalette=!0),ct.text(o.showPaletteOnly?o.togglePaletteMoreText:o.togglePaletteLessText),o.palette){X=o.palette.slice(0),b=Tt.isArray(X[0])?X:[X],Y={};for(var t=0;t<b.length;t++)for(var e=0;e<b[t].length;e++){var r=tinycolor(b[t][e]).toRgbString();Y[r]=!0}}_.toggleClass("sp-flat",l),_.toggleClass("sp-input-disabled",!o.showInput),_.toggleClass("sp-alpha-enabled",o.showAlpha),_.toggleClass("sp-clear-enabled",M),_.toggleClass("sp-buttons-disabled",!o.showButtons),_.toggleClass("sp-palette-buttons-disabled",!o.togglePaletteOnly),_.toggleClass("sp-palette-disabled",!o.showPalette),_.toggleClass("sp-palette-only",o.showPaletteOnly),_.toggleClass("sp-initial-disabled",!o.showInitial),_.addClass(o.className).addClass(o.containerClassName),N()}function bt(){if(a&&window.localStorage){try{var t=window.localStorage[a].split(",#");1<t.length&&(delete window.localStorage[a],Tt.each(t,function(t,e){mt(e)}))}catch(t){}try{m=window.localStorage[a].split(";")}catch(t){}}}function mt(t){if(z){t=tinycolor(t).toRgbString();if(!Y[t]&&-1===Tt.inArray(t,m))for(m.push(t);m.length>G;)m.shift();if(a&&window.localStorage)try{window.localStorage[a]=m.join(";")}catch(t){}}}function vt(){var r=F(),t=Tt.map(b,function(t,e){return Dt(t,r,"sp-palette-row sp-palette-row-"+e,o)});bt(),m&&t.push(Dt((()=>{var t=[];if(o.showPalette)for(var e=0;e<m.length;e++){var r=tinycolor(m[e]).toRgbString();Y[r]||t.push(m[e])}return t.reverse().slice(0,o.maxSelectionSize)})(),r,"sp-palette-row sp-palette-row-selection",o)),st.html(t.join(""))}function yt(){var t,e;o.showInitial&&(t=C,e=F(),ot.html(Dt([t,e],e,"sp-palette-row-initial",o)))}function wt(){(h<=0||f<=0||K<=0)&&N(),L=!0,_.addClass(Q),v=null,w.trigger("dragstart.spectrum",[F()])}function _t(){L=!1,_.removeClass(Q),w.trigger("dragstop.spectrum",[F()])}function xt(){var t=x.val();null!==t&&""!==t||!M?(t=tinycolor(t)).isValid()?(H(t),q(!0)):x.addClass("sp-validation-error"):(H(null),q(!0))}function kt(){(c?R:St)()}function St(){var t=Tt.Event("beforeShow.spectrum");if(c)N();else if(w.trigger(t,[F()]),!1!==i.beforeShow(F())&&!t.isDefaultPrevented()){for(var e=0;e<Nt.length;e++)Nt[e]&&Nt[e].hide();c=!0,Tt(y).bind("keydown.spectrum",Ct),Tt(y).bind("click.spectrum",Pt),Tt(window).bind("resize.spectrum",B),k.addClass("sp-active"),_.removeClass("sp-hidden"),N(),O(),C=F(),yt(),i.show(C),w.trigger("show.spectrum",[C])}}function Ct(t){27===t.keyCode&&R()}function Pt(t){2==t.button||L||(pt?q(!0):At(),R())}function R(){c&&!l&&(c=!1,Tt(y).unbind("keydown.spectrum",Ct),Tt(y).unbind("click.spectrum",Pt),Tt(window).unbind("resize.spectrum",B),k.removeClass("sp-active"),_.addClass("sp-hidden"),i.hide(F()),w.trigger("hide.spectrum",[F()]))}function At(){H(C,!0)}function H(t,e){var r;tinycolor.equals(t,F())?O():(!t&&M?A=!0:(A=!1,t=(r=tinycolor(t)).toHsv(),s=t.h%360/360,d=t.s,p=t.v,g=t.a),O(),r&&r.isValid()&&!e&&(P=o.preferredFormat||r.getFormat()))}function F(t){return t=t||{},M&&A?null:tinycolor.fromRatio({h:s,s:d,v:p,a:Math.round(100*g)/100},{format:t.format||P})}function T(){O(),i.move(F()),w.trigger("move.spectrum",[F()])}function O(){x.removeClass("sp-validation-error"),Mt();var t,e,r,a=tinycolor.fromRatio({h:s,s:1,v:1}),a=(Z.css("background-color",a.toHexString()),P),n=F({format:a=!(g<1)||0===g&&"name"===P||"hex"!==P&&"hex3"!==P&&"hex6"!==P&&"name"!==P?P:"rgb"}),i="";S.removeClass("sp-clear-display"),S.css("background-color","transparent"),!n&&M?S.addClass("sp-clear-display"):(t=n.toHexString(),e=n.toRgbString(),Et||1===n.alpha?S.css("background-color",e):(S.css("background-color","transparent"),S.css("filter",n.toFilter())),o.showAlpha&&((e=n.toRgb()).a=0,r="linear-gradient(left, "+(e=tinycolor(e).toRgbString())+", "+t+")",jt?at.css("filter",tinycolor(e).toFilter({gradientType:1},t)):(at.css("background","-webkit-"+r),at.css("background","-moz-"+r),at.css("background","-ms-"+r),at.css("background","linear-gradient(to right, "+e+", "+t+")"))),i=n.toString(a)),o.showInput&&x.val(i),o.showPalette&&vt(),yt()}function Mt(){var t=d,e=p;M&&A?(it.hide(),rt.hide(),tt.hide()):(it.show(),rt.show(),tt.show(),t=t*f,e=h-e*h,t=Math.max(-u,Math.min(f-u,t-u)),e=Math.max(-u,Math.min(h-u,e-u)),tt.css({top:e+"px",left:t+"px"}),e=g*V,it.css({left:e-$/2+"px"}),t=s*K,rt.css({top:t-W+"px"}))}function q(t){var e=F(),r="",a=!tinycolor.equals(e,C);e&&(r=e.toString(P),mt(e)),ft&&w.val(r),t&&a&&(i.change(e),w.trigger("change",[e]))}function N(){var t,e,r,a,n,i,s;c&&(f=Z.width(),h=Z.height(),u=tt.height(),et.width(),K=et.height(),W=rt.height(),V=nt.width(),$=it.width(),l||(_.css("position","absolute"),o.offset?_.offset(o.offset):_.offset((e=dt,r=(t=_).outerWidth(),a=t.outerHeight(),n=e.outerHeight(),t=t[0].ownerDocument,i=t.documentElement,s=i.clientWidth+Tt(t).scrollLeft(),i=i.clientHeight+Tt(t).scrollTop(),(t=e.offset()).top+=n,t.left-=Math.min(t.left,s<t.left+r&&r<s?Math.abs(t.left+r-s):0),t.top-=Math.min(t.top,t.top+a>i&&a<i?Math.abs(+(a+n)):0),t))),Mt(),o.showPalette&&vt(),w.trigger("reflow.spectrum"))}function Rt(){R(),J=!0,w.attr("disabled",!0),dt.addClass("sp-disabled")}function Ht(t){return t.data&&t.data.ignore?(H(Tt(t.target).closest(".sp-thumb-el").data("color")),T()):(H(Tt(t.target).closest(".sp-thumb-el").data("color")),T(),q(!0),o.hideAfterPaletteSelect&&R()),!1}jt&&_.find("*:not(input)").attr("unselectable","on"),gt(),ut&&w.after(k).hide(),M||t.hide(),l?w.after(_).hide():(r=1!==(r="parent"===o.appendTo?w.parent():Tt(o.appendTo)).length?Tt("body"):r).append(_),bt(),dt.bind("click.spectrum touchstart.spectrum",function(t){J||kt(),t.stopPropagation(),Tt(t.target).is("input")||t.preventDefault()}),!w.is(":disabled")&&!0!==o.disabled||Rt(),_.click(Vt),x.change(xt),x.bind("paste",function(){setTimeout(xt,1)}),x.keydown(function(t){13==t.keyCode&&xt()}),e.text(o.cancelText),e.bind("click.spectrum",function(t){t.stopPropagation(),t.preventDefault(),At(),R()}),t.attr("title",o.clearText),t.bind("click.spectrum",function(t){t.stopPropagation(),t.preventDefault(),A=!0,T(),l&&q(!0)}),lt.text(o.chooseText),lt.bind("click.spectrum",function(t){t.stopPropagation(),t.preventDefault(),jt&&x.is(":focus")&&x.trigger("change"),x.hasClass("sp-validation-error")||(q(!0),R())}),ct.text(o.showPaletteOnly?o.togglePaletteMoreText:o.togglePaletteLessText),ct.bind("click.spectrum",function(t){t.stopPropagation(),t.preventDefault(),o.showPaletteOnly=!o.showPaletteOnly,o.showPaletteOnly||l||_.css("left","-="+(U.outerWidth(!0)+5)),gt()}),zt(nt,function(t,e,r){g=t/V,A=!1,r.shiftKey&&(g=Math.round(10*g)/10),T()},wt,_t),zt(et,function(t,e){s=parseFloat(e/K),A=!1,o.showAlpha||(g=1),T()},wt,_t),zt(Z,function(t,e,r){r.shiftKey?v||(r=d*f,a=h-p*h,r=Math.abs(t-r)>Math.abs(e-a),v=r?"x":"y"):v=null;var a=!v||"x"===v,r=!v||"y"===v;a&&(d=parseFloat(t/f)),r&&(p=parseFloat((h-e)/h)),A=!1,o.showAlpha||(g=1),T()},wt,_t),n?(H(n),O(),P=o.preferredFormat||tinycolor(n).format,mt(n)):O(),l&&St(),r=jt?"mousedown.spectrum":"click.spectrum touchstart.spectrum",st.delegate(".sp-thumb-el",r,Ht),ot.delegate(".sp-thumb-el:nth-child(1)",r,{ignore:!0},Ht);var Ft={show:St,hide:R,toggle:kt,reflow:N,option:function(t,e){return t===Ot?Tt.extend({},o):e===Ot?o[t]:(o[t]=e,"preferredFormat"===t&&(P=o.preferredFormat),void gt())},enable:function(){J=!1,w.attr("disabled",!1),dt.removeClass("sp-disabled")},disable:Rt,offset:function(t){o.offset=t,N()},set:function(t){H(t),q()},get:F,destroy:function(){w.show(),dt.unbind("click.spectrum touchstart.spectrum"),_.remove(),k.remove(),Nt[Ft.id]=null},container:_};return Ft.id=Nt.push(Ft)-1,Ft}function e(){}function Vt(t){t.stopPropagation()}function It(t,e){var r=Array.prototype.slice,a=r.call(arguments,2);return function(){return t.apply(e,a.concat(r.call(arguments)))}}function zt(a,n,e,t){n=n||function(){},e=e||function(){},t=t||function(){};var i=document,s=!1,o={},l=0,c=0,f="ontouchstart"in window,r={};function h(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),t.returnValue=!1}function u(t){if(s){if(jt&&i.documentMode<9&&!t.button)return d();var e=t.originalEvent&&t.originalEvent.touches&&t.originalEvent.touches[0],r=e&&e.pageX||t.pageX,e=e&&e.pageY||t.pageY,r=Math.max(0,Math.min(r-o.left,c)),e=Math.max(0,Math.min(e-o.top,l));f&&h(t),n.apply(a,[r,e,t])}}function d(){s&&(Tt(i).unbind(r),Tt(i.body).removeClass("sp-dragging"),setTimeout(function(){t.apply(a,arguments)},0)),s=!1}r.selectstart=h,r.dragstart=h,r["touchmove mousemove"]=u,r["touchend mouseup"]=d,Tt(a).bind("touchstart mousedown",function(t){(t.which?3==t.which:2==t.button)||s||!1!==e.apply(a,arguments)&&(s=!0,l=Tt(a).height(),c=Tt(a).width(),o=Tt(a).offset(),Tt(i).bind(r),Tt(i.body).addClass("sp-dragging"),u(t),h(t))})}function Bt(){return Tt.fn.spectrum.inputTypeColorSupport()}var i,s,a,o,n,c,f,r,l,h,u,d,p,g="spectrum.id";function b(t,e){var r;return e=e||{},(t=t||"")instanceof b?t:this instanceof b?(r=(t=>{var e={r:0,g:0,b:0},r=1,a=!1,n=!1;return"string"==typeof t&&(t=(t=>{t=t.replace(i,"").replace(s,"").toLowerCase();var e,r=!1;if(l[t])t=l[t],r=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(e=p.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=p.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=p.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=p.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=p.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=p.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=p.hex8.exec(t))?{a:(t=>k(t)/255)(e[1]),r:k(e[2]),g:k(e[3]),b:k(e[4]),format:r?"name":"hex8"}:(e=p.hex6.exec(t))?{r:k(e[1]),g:k(e[2]),b:k(e[3]),format:r?"name":"hex"}:!!(e=p.hex3.exec(t))&&{r:k(e[1]+""+e[1]),g:k(e[2]+""+e[2]),b:k(e[3]+""+e[3]),format:r?"name":"hex"}})(t)),r=z(r="object"==typeof t&&(t.hasOwnProperty("r")&&t.hasOwnProperty("g")&&t.hasOwnProperty("b")?(e=((t,e,r)=>({r:255*_(t,255),g:255*_(e,255),b:255*_(r,255)}))(t.r,t.g,t.b),a=!0,n="%"===String(t.r).substr(-1)?"prgb":"rgb"):t.hasOwnProperty("h")&&t.hasOwnProperty("s")&&t.hasOwnProperty("v")?(t.s=C(t.s),t.v=C(t.v),e=((t,e,r)=>{t=6*_(t,360),e=_(e,100),r=_(r,100);var a=o.floor(t),n=r*(1-e),i=r*(1-(t=t-a)*e);return{r:255*[r,i,n,n,t=r*(1-(1-t)*e),r][e=a%6],g:255*[t,r,r,i,n,n][e],b:255*[n,n,t,r,r,i][e]}})(t.h,t.s,t.v),a=!0,n="hsv"):t.hasOwnProperty("h")&&t.hasOwnProperty("s")&&t.hasOwnProperty("l")&&(t.s=C(t.s),t.l=C(t.l),e=((t,e,r)=>{var a,n,i;function s(t,e,r){return r<0&&(r+=1),1<r&&--r,r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}return t=_(t,360),e=_(e,100),r=_(r,100),0===e?a=n=i=r:(a=s(e=2*r-(r=r<.5?r*(1+e):r+e-r*e),r,t+1/3),n=s(e,r,t),i=s(e,r,t-1/3)),{r:255*a,g:255*n,b:255*i}})(t.h,t.s,t.l),a=!0,n="hsl"),t.hasOwnProperty("a"))?t.a:r),{ok:a,format:t.format||n,r:c(255,f(e.r,0)),g:c(255,f(e.g,0)),b:c(255,f(e.b,0)),a:r}})(t),this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=n(100*this._a)/100,this._format=e.format||r.format,this._gradientType=e.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=r.ok,void(this._tc_id=a++)):new b(t,e)}function m(t,e,r){t=_(t,255),e=_(e,255),r=_(r,255);var a,n=f(t,e,r),i=c(t,e,r),s=(n+i)/2;if(n==i)a=l=0;else{var o=n-i,l=.5<s?o/(2-n-i):o/(n+i);switch(n){case t:a=(e-r)/o+(e<r?6:0);break;case e:a=(r-t)/o+2;break;case r:a=(t-e)/o+4}a/=6}return{h:a,s:l,l:s}}function v(t,e,r){t=_(t,255),e=_(e,255),r=_(r,255);var a,n=f(t,e,r),i=c(t,e,r),s=n,o=n-i,l=0===n?0:o/n;if(n==i)a=0;else{switch(n){case t:a=(e-r)/o+(e<r?6:0);break;case e:a=(r-t)/o+2;break;case r:a=(t-e)/o+4}a/=6}return{h:a,s:l,v:s}}function y(t,e,r,a){t=[S(n(t).toString(16)),S(n(e).toString(16)),S(n(r).toString(16))];return a&&t[0].charAt(0)==t[0].charAt(1)&&t[1].charAt(0)==t[1].charAt(1)&&t[2].charAt(0)==t[2].charAt(1)?t[0].charAt(0)+t[1].charAt(0)+t[2].charAt(0):t.join("")}function w(t,e,r,a){return[S(Math.round(255*parseFloat(a)).toString(16)),S(n(t).toString(16)),S(n(e).toString(16)),S(n(r).toString(16))].join("")}function A(t,e){e=0===e?0:e||10;t=b(t).toHsl();return t.s-=e/100,t.s=x(t.s),b(t)}function M(t,e){e=0===e?0:e||10;t=b(t).toHsl();return t.s+=e/100,t.s=x(t.s),b(t)}function R(t){return b(t).desaturate(100)}function H(t,e){e=0===e?0:e||10;t=b(t).toHsl();return t.l+=e/100,t.l=x(t.l),b(t)}function F(t,e){e=0===e?0:e||10;t=b(t).toRgb();return t.r=f(0,c(255,t.r-n(-e/100*255))),t.g=f(0,c(255,t.g-n(-e/100*255))),t.b=f(0,c(255,t.b-n(-e/100*255))),b(t)}function T(t,e){e=0===e?0:e||10;t=b(t).toHsl();return t.l-=e/100,t.l=x(t.l),b(t)}function O(t,e){t=b(t).toHsl(),e=(n(t.h)+e)%360;return t.h=e<0?360+e:e,b(t)}function q(t){t=b(t).toHsl();return t.h=(t.h+180)%360,b(t)}function N(t){var e=b(t).toHsl(),r=e.h;return[b(t),b({h:(r+120)%360,s:e.s,l:e.l}),b({h:(r+240)%360,s:e.s,l:e.l})]}function j(t){var e=b(t).toHsl(),r=e.h;return[b(t),b({h:(r+90)%360,s:e.s,l:e.l}),b({h:(r+180)%360,s:e.s,l:e.l}),b({h:(r+270)%360,s:e.s,l:e.l})]}function E(t){var e=b(t).toHsl(),r=e.h;return[b(t),b({h:(r+72)%360,s:e.s,l:e.l}),b({h:(r+216)%360,s:e.s,l:e.l})]}function D(t,e,r){e=e||6,r=r||30;var a=b(t).toHsl(),n=360/r,i=[b(t)];for(a.h=(a.h-(n*e>>1)+720)%360;--e;)a.h=(a.h+n)%360,i.push(b(a));return i}function I(t,e){e=e||6;for(var t=b(t).toHsv(),r=t.h,a=t.s,n=t.v,i=[],s=1/e;e--;)i.push(b({h:r,s:a,v:n})),n=(n+s)%1;return i}function z(t){return t=parseFloat(t),t=isNaN(t)||t<0||1<t?1:t}function _(t,e){"string"==typeof(r=t)&&-1!=r.indexOf(".")&&1===parseFloat(r)&&(t="100%");var r="string"==typeof(r=t)&&-1!=r.indexOf("%");return t=c(e,f(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),o.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function x(t){return c(1,f(0,t))}function k(t){return parseInt(t,16)}function S(t){return 1==t.length?"0"+t:""+t}function C(t){return t=t<=1?100*t+"%":t}Tt.fn.spectrum=function(r,t){var a,n;return"string"==typeof r?(a=this,n=Array.prototype.slice.call(arguments,1),this.each(function(){var t=Nt[Tt(this).data(g)];if(t){var e=t[r];if(!e)throw new Error("Spectrum: no such method: '"+r+"'");"get"==r?a=t.get():"container"==r?a=t.container:"option"==r?a=t.option.apply(t,n):"destroy"==r?(t.destroy(),Tt(this).removeData(g)):e.apply(t,n)}}),a):this.spectrum("destroy").each(function(){var t=P(this,Tt.extend({},r,Tt(this).data()));Tt(this).data(g,t.id)})},Tt.fn.spectrum.load=!0,Tt.fn.spectrum.loadOpts={},Tt.fn.spectrum.draggable=zt,Tt.fn.spectrum.defaults=qt,Tt.fn.spectrum.inputTypeColorSupport=function t(){var e;return void 0===t._cachedResult&&(e=Tt("<input type='color'/>")[0],t._cachedResult="color"===e.type&&""!==e.value),t._cachedResult},Tt.spectrum={},Tt.spectrum.localization={},Tt.spectrum.palettes={},Tt.fn.spectrum.processNativeColorInputs=function(){var t=Tt("input[type=color]");t.length&&!Bt()&&t.spectrum({preferredFormat:"hex6"})},i=/^[\s,#]+/,s=/\s+$/,a=0,o=Math,n=o.round,c=o.min,f=o.max,r=o.random,b.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=z(t),this._roundA=n(100*this._a)/100,this},toHsv:function(){var t=v(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=v(this._r,this._g,this._b),e=n(360*t.h),r=n(100*t.s),t=n(100*t.v);return 1==this._a?"hsv("+e+", "+r+"%, "+t+"%)":"hsva("+e+", "+r+"%, "+t+"%, "+this._roundA+")"},toHsl:function(){var t=m(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=m(this._r,this._g,this._b),e=n(360*t.h),r=n(100*t.s),t=n(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+t+"%)":"hsla("+e+", "+r+"%, "+t+"%, "+this._roundA+")"},toHex:function(t){return y(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(){return w(this._r,this._g,this._b,this._a)},toHex8String:function(){return"#"+this.toHex8()},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(100*_(this._r,255))+"%",g:n(100*_(this._g,255))+"%",b:n(100*_(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+n(100*_(this._r,255))+"%, "+n(100*_(this._g,255))+"%, "+n(100*_(this._b,255))+"%)":"rgba("+n(100*_(this._r,255))+"%, "+n(100*_(this._g,255))+"%, "+n(100*_(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&h[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var e="#"+w(this._r,this._g,this._b,this._a),r=e;return"progid:DXImageTransform.Microsoft.gradient("+(this._gradientType?"GradientType = 1, ":"")+"startColorstr="+e+",endColorstr="+(r=t?b(t).toHex8String():r)+")"},toString:function(t){var e=!!t,r=(t=t||this._format,!1),a=this._a<1&&0<=this._a;return e||!a||"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()),(r="hsv"===t?this.toHsvString():r)||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},_applyModification:function(t,e){t=t.apply(null,[this].concat([].slice.call(e)));return this._r=t._r,this._g=t._g,this._b=t._b,this.setAlpha(t._a),this},lighten:function(){return this._applyModification(H,arguments)},brighten:function(){return this._applyModification(F,arguments)},darken:function(){return this._applyModification(T,arguments)},desaturate:function(){return this._applyModification(A,arguments)},saturate:function(){return this._applyModification(M,arguments)},greyscale:function(){return this._applyModification(R,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(D,arguments)},complement:function(){return this._applyCombination(q,arguments)},monochromatic:function(){return this._applyCombination(I,arguments)},splitcomplement:function(){return this._applyCombination(E,arguments)},triad:function(){return this._applyCombination(N,arguments)},tetrad:function(){return this._applyCombination(j,arguments)}},b.fromRatio=function(t,e){if("object"==typeof t){var r,a={};for(r in t)t.hasOwnProperty(r)&&(a[r]="a"===r?t[r]:C(t[r]));t=a}return b(t,e)},b.equals=function(t,e){return!(!t||!e)&&b(t).toRgbString()==b(e).toRgbString()},b.random=function(){return b.fromRatio({r:r(),g:r(),b:r()})},b.mix=function(t,e,r){r=0===r?0:r||50;var t=b(t).toRgb(),e=b(e).toRgb(),r=r/100,a=2*r-1,n=e.a-t.a,a=a*n==-1?a:(a+n)/(1+a*n),n=1-(a=(a+1)/2),a={r:e.r*a+t.r*n,g:e.g*a+t.g*n,b:e.b*a+t.b*n,a:e.a*r+t.a*(1-r)};return b(a)},b.readability=function(t,e){var t=b(t),e=b(e),r=t.toRgb(),a=e.toRgb(),t=t.getBrightness(),e=e.getBrightness(),r=Math.max(r.r,a.r)-Math.min(r.r,a.r)+Math.max(r.g,a.g)-Math.min(r.g,a.g)+Math.max(r.b,a.b)-Math.min(r.b,a.b);return{brightness:Math.abs(t-e),color:r}},b.isReadable=function(t,e){t=b.readability(t,e);return 125<t.brightness&&500<t.color},b.mostReadable=function(t,e){for(var r=null,a=0,n=!1,i=0;i<e.length;i++){var s=b.readability(t,e[i]),o=125<s.brightness&&500<s.color,s=s.brightness/125*3+s.color/500;(o&&!n||o&&n&&a<s||!o&&!n&&a<s)&&(n=o,a=s,r=b(e[i]))}return r},l=b.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"},h=b.hexNames=(t=>{var e,r={};for(e in t)t.hasOwnProperty(e)&&(r[t[e]]=e);return r})(l),d="[\\s|\\(]+("+(u="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+u+")[,|\\s]+("+u+")\\s*\\)?",u="[\\s|\\(]+("+u+")[,|\\s]+("+u+")[,|\\s]+("+u+")[,|\\s]+("+u+")\\s*\\)?",p={rgb:new RegExp("rgb"+d),rgba:new RegExp("rgba"+u),hsl:new RegExp("hsl"+d),hsla:new RegExp("hsla"+u),hsv:new RegExp("hsv"+d),hsva:new RegExp("hsva"+u),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=b,Tt(function(){Tt.fn.spectrum.load&&Tt.fn.spectrum.processNativeColorInputs()})});
     1!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(Tt,Ot){"use strict";var qt={beforeShow:e,move:e,change:e,show:e,hide:e,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},Nt=[],jt=!!/msie/i.exec(window.navigator.userAgent),Et=((h=document.createElement("div").style).cssText="background-color:rgba(0,0,0,.5)",t(h.backgroundColor,"rgba")||t(h.backgroundColor,"hsla")),Lt=["<div class='sp-replacer'>","<div class='sp-preview'><div class='sp-preview-inner'></div></div>","<div class='sp-dd'>&#9660;</div>","</div>"].join(""),Kt=function(){var t="";if(jt)for(var e=1;e<=6;e++)t+="<div class='sp-"+e+"'></div>";return["<div class='sp-container sp-hidden'>","<div class='sp-palette-container'>","<div class='sp-palette sp-thumb sp-cf'></div>","<div class='sp-palette-button-container sp-cf'>","<button type='button' class='sp-palette-toggle'></button>","</div>","</div>","<div class='sp-picker-container'>","<div class='sp-top sp-cf'>","<div class='sp-fill'></div>","<div class='sp-top-inner'>","<div class='sp-color'>","<div class='sp-sat'>","<div class='sp-val'>","<div class='sp-dragger'></div>","</div>","</div>","</div>","<div class='sp-clear sp-clear-display'>","</div>","<div class='sp-hue'>","<div class='sp-slider'></div>",t,"</div>","</div>","<div class='sp-alpha'><div class='sp-alpha-inner'><div class='sp-alpha-handle'></div></div></div>","</div>","<div class='sp-input-container sp-cf'>","<input class='sp-input' type='text' spellcheck='false'  />","</div>","<div class='sp-initial sp-thumb sp-cf'></div>","<div class='sp-button-container sp-cf'>","<a class='sp-cancel' href='#'></a>","<button type='button' class='sp-choose'></button>","</div>","</div>","</div>"].join("")}();function t(t,e){return!!~(""+t).indexOf(e)}function Dt(t,e,r,n){for(var a=[],i=0;i<t.length;i++){var o,s,l,c=t[i];c?(s=(o=tinycolor(c)).toHsl().l<.5?"sp-thumb-el sp-thumb-dark":"sp-thumb-el sp-thumb-light",s+=tinycolor.equals(e,c)?" sp-thumb-active":"",c=o.toString(n.preferredFormat||"rgb"),l=Et?"background-color:"+o.toRgbString():"filter:"+o.toFilter(),a.push('<span title="'+c+'" data-color="'+o.toRgbString()+'" class="'+s+'"><span class="sp-thumb-inner" style="'+l+';" /></span>')):a.push(Tt("<div />").append(Tt('<span data-color="" style="background-color:transparent;" class="sp-clear-display"></span>').attr("title",n.noColorSelectedText)).html())}return"<div class='sp-cf "+r+"'>"+a.join("")+"</div>"}function P(t,e){e=e,a=t,(e=Tt.extend({},qt,e)).callbacks={move:It(e.move,a),change:It(e.change,a),show:It(e.show,a),hide:It(e.hide,a),beforeShow:It(e.beforeShow,a)};var j,E,D,I,r,s=e,l=s.flat,z=s.showSelectionPalette,n=s.localStorageKey,a=s.theme,i=s.callbacks,B=(j=N,function(){var t=this,e=arguments;D&&clearTimeout(I),!D&&I||(I=setTimeout(function(){I=null,j.apply(t,e)},E))}),c=!(E=10),L=!1,f=0,u=0,h=0,K=0,V=0,$=0,W=0,o=0,d=0,p=0,g=1,X=[],b=[],Y={},m=s.selectionPalette.slice(0),G=s.maxSelectionSize,Q="sp-dragging",v=null,y=t.ownerDocument,w=(y.body,Tt(t)),J=!1,_=Tt(Kt,y).addClass(a),U=_.find(".sp-picker-container"),Z=_.find(".sp-color"),tt=_.find(".sp-dragger"),et=_.find(".sp-hue"),rt=_.find(".sp-slider"),nt=_.find(".sp-alpha-inner"),at=_.find(".sp-alpha"),it=_.find(".sp-alpha-handle"),x=_.find(".sp-input"),ot=_.find(".sp-palette"),st=_.find(".sp-initial"),e=_.find(".sp-cancel"),t=_.find(".sp-clear"),lt=_.find(".sp-choose"),ct=_.find(".sp-palette-toggle"),ft=w.is("input"),ut=ft&&"color"===w.attr("type")&&Bt(),ht=ft&&!l,k=ht?Tt(Lt).addClass(a).addClass(s.className).addClass(s.replacerClassName):Tt([]),dt=ht?k:w,S=k.find(".sp-preview-inner"),a=s.color||ft&&w.val(),C=!1,P=s.preferredFormat,pt=!s.showButtons||s.clickoutFiresChange,A=!a,M=s.allowEmpty&&!ut;function gt(){if(s.showPaletteOnly&&(s.showPalette=!0),ct.text(s.showPaletteOnly?s.togglePaletteMoreText:s.togglePaletteLessText),s.palette){X=s.palette.slice(0),b=Tt.isArray(X[0])?X:[X],Y={};for(var t=0;t<b.length;t++)for(var e=0;e<b[t].length;e++){var r=tinycolor(b[t][e]).toRgbString();Y[r]=!0}}_.toggleClass("sp-flat",l),_.toggleClass("sp-input-disabled",!s.showInput),_.toggleClass("sp-alpha-enabled",s.showAlpha),_.toggleClass("sp-clear-enabled",M),_.toggleClass("sp-buttons-disabled",!s.showButtons),_.toggleClass("sp-palette-buttons-disabled",!s.togglePaletteOnly),_.toggleClass("sp-palette-disabled",!s.showPalette),_.toggleClass("sp-palette-only",s.showPaletteOnly),_.toggleClass("sp-initial-disabled",!s.showInitial),_.addClass(s.className).addClass(s.containerClassName),N()}function bt(){if(n&&window.localStorage){try{var t=window.localStorage[n].split(",#");1<t.length&&(delete window.localStorage[n],Tt.each(t,function(t,e){mt(e)}))}catch(t){}try{m=window.localStorage[n].split(";")}catch(t){}}}function mt(t){if(z){t=tinycolor(t).toRgbString();if(!Y[t]&&-1===Tt.inArray(t,m))for(m.push(t);m.length>G;)m.shift();if(n&&window.localStorage)try{window.localStorage[n]=m.join(";")}catch(t){}}}function vt(){var r=F(),t=Tt.map(b,function(t,e){return Dt(t,r,"sp-palette-row sp-palette-row-"+e,s)});bt(),m&&t.push(Dt(function(){var t=[];if(s.showPalette)for(var e=0;e<m.length;e++){var r=tinycolor(m[e]).toRgbString();Y[r]||t.push(m[e])}return t.reverse().slice(0,s.maxSelectionSize)}(),r,"sp-palette-row sp-palette-row-selection",s)),ot.html(t.join(""))}function yt(){var t,e;s.showInitial&&(t=C,e=F(),st.html(Dt([t,e],e,"sp-palette-row-initial",s)))}function wt(){(u<=0||f<=0||K<=0)&&N(),L=!0,_.addClass(Q),v=null,w.trigger("dragstart.spectrum",[F()])}function _t(){L=!1,_.removeClass(Q),w.trigger("dragstop.spectrum",[F()])}function xt(){var t=x.val();null!==t&&""!==t||!M?(t=tinycolor(t)).isValid()?(H(t),q(!0)):x.addClass("sp-validation-error"):(H(null),q(!0))}function kt(){(c?R:St)()}function St(){var t=Tt.Event("beforeShow.spectrum");if(c)N();else if(w.trigger(t,[F()]),!1!==i.beforeShow(F())&&!t.isDefaultPrevented()){for(var e=0;e<Nt.length;e++)Nt[e]&&Nt[e].hide();c=!0,Tt(y).bind("keydown.spectrum",Ct),Tt(y).bind("click.spectrum",Pt),Tt(window).bind("resize.spectrum",B),k.addClass("sp-active"),_.removeClass("sp-hidden"),N(),O(),C=F(),yt(),i.show(C),w.trigger("show.spectrum",[C])}}function Ct(t){27===t.keyCode&&R()}function Pt(t){2==t.button||L||(pt?q(!0):At(),R())}function R(){c&&!l&&(c=!1,Tt(y).unbind("keydown.spectrum",Ct),Tt(y).unbind("click.spectrum",Pt),Tt(window).unbind("resize.spectrum",B),k.removeClass("sp-active"),_.addClass("sp-hidden"),i.hide(F()),w.trigger("hide.spectrum",[F()]))}function At(){H(C,!0)}function H(t,e){var r;tinycolor.equals(t,F())?O():(!t&&M?A=!0:(A=!1,t=(r=tinycolor(t)).toHsv(),o=t.h%360/360,d=t.s,p=t.v,g=t.a),O(),r&&r.isValid()&&!e&&(P=s.preferredFormat||r.getFormat()))}function F(t){return t=t||{},M&&A?null:tinycolor.fromRatio({h:o,s:d,v:p,a:Math.round(100*g)/100},{format:t.format||P})}function T(){O(),i.move(F()),w.trigger("move.spectrum",[F()])}function O(){x.removeClass("sp-validation-error"),Mt();var t,e,r,n=tinycolor.fromRatio({h:o,s:1,v:1}),n=(Z.css("background-color",n.toHexString()),P),a=F({format:n=!(g<1)||0===g&&"name"===P||"hex"!==P&&"hex3"!==P&&"hex6"!==P&&"name"!==P?P:"rgb"}),i="";S.removeClass("sp-clear-display"),S.css("background-color","transparent"),!a&&M?S.addClass("sp-clear-display"):(t=a.toHexString(),e=a.toRgbString(),Et||1===a.alpha?S.css("background-color",e):(S.css("background-color","transparent"),S.css("filter",a.toFilter())),s.showAlpha&&((e=a.toRgb()).a=0,r="linear-gradient(left, "+(e=tinycolor(e).toRgbString())+", "+t+")",jt?nt.css("filter",tinycolor(e).toFilter({gradientType:1},t)):(nt.css("background","-webkit-"+r),nt.css("background","-moz-"+r),nt.css("background","-ms-"+r),nt.css("background","linear-gradient(to right, "+e+", "+t+")"))),i=a.toString(n)),s.showInput&&x.val(i),s.showPalette&&vt(),yt()}function Mt(){var t=d,e=p;M&&A?(it.hide(),rt.hide(),tt.hide()):(it.show(),rt.show(),tt.show(),t=t*f,e=u-e*u,t=Math.max(-h,Math.min(f-h,t-h)),e=Math.max(-h,Math.min(u-h,e-h)),tt.css({top:e+"px",left:t+"px"}),e=g*V,it.css({left:e-$/2+"px"}),t=o*K,rt.css({top:t-W+"px"}))}function q(t){var e=F(),r="",n=!tinycolor.equals(e,C);e&&(r=e.toString(P),mt(e)),ft&&w.val(r),t&&n&&(i.change(e),w.trigger("change",[e]))}function N(){var t,e,r,n,a,i,o;c&&(f=Z.width(),u=Z.height(),h=tt.height(),et.width(),K=et.height(),W=rt.height(),V=at.width(),$=it.width(),l||(_.css("position","absolute"),s.offset?_.offset(s.offset):_.offset((e=dt,r=(t=_).outerWidth(),n=t.outerHeight(),a=e.outerHeight(),t=t[0].ownerDocument,i=t.documentElement,o=i.clientWidth+Tt(t).scrollLeft(),i=i.clientHeight+Tt(t).scrollTop(),(t=e.offset()).top+=a,t.left-=Math.min(t.left,t.left+r>o&&r<o?Math.abs(t.left+r-o):0),t.top-=Math.min(t.top,t.top+n>i&&n<i?Math.abs(+(n+a)):0),t))),Mt(),s.showPalette&&vt(),w.trigger("reflow.spectrum"))}function Rt(){R(),J=!0,w.attr("disabled",!0),dt.addClass("sp-disabled")}function Ht(t){return t.data&&t.data.ignore?(H(Tt(t.target).closest(".sp-thumb-el").data("color")),T()):(H(Tt(t.target).closest(".sp-thumb-el").data("color")),T(),q(!0),s.hideAfterPaletteSelect&&R()),!1}jt&&_.find("*:not(input)").attr("unselectable","on"),gt(),ht&&w.after(k).hide(),M||t.hide(),l?w.after(_).hide():(r=1!==(r="parent"===s.appendTo?w.parent():Tt(s.appendTo)).length?Tt("body"):r).append(_),bt(),dt.bind("click.spectrum touchstart.spectrum",function(t){J||kt(),t.stopPropagation(),Tt(t.target).is("input")||t.preventDefault()}),!w.is(":disabled")&&!0!==s.disabled||Rt(),_.click(Vt),x.change(xt),x.bind("paste",function(){setTimeout(xt,1)}),x.keydown(function(t){13==t.keyCode&&xt()}),e.text(s.cancelText),e.bind("click.spectrum",function(t){t.stopPropagation(),t.preventDefault(),At(),R()}),t.attr("title",s.clearText),t.bind("click.spectrum",function(t){t.stopPropagation(),t.preventDefault(),A=!0,T(),l&&q(!0)}),lt.text(s.chooseText),lt.bind("click.spectrum",function(t){t.stopPropagation(),t.preventDefault(),jt&&x.is(":focus")&&x.trigger("change"),x.hasClass("sp-validation-error")||(q(!0),R())}),ct.text(s.showPaletteOnly?s.togglePaletteMoreText:s.togglePaletteLessText),ct.bind("click.spectrum",function(t){t.stopPropagation(),t.preventDefault(),s.showPaletteOnly=!s.showPaletteOnly,s.showPaletteOnly||l||_.css("left","-="+(U.outerWidth(!0)+5)),gt()}),zt(at,function(t,e,r){g=t/V,A=!1,r.shiftKey&&(g=Math.round(10*g)/10),T()},wt,_t),zt(et,function(t,e){o=parseFloat(e/K),A=!1,s.showAlpha||(g=1),T()},wt,_t),zt(Z,function(t,e,r){r.shiftKey?v||(r=d*f,n=u-p*u,r=Math.abs(t-r)>Math.abs(e-n),v=r?"x":"y"):v=null;var n=!v||"x"===v,r=!v||"y"===v;n&&(d=parseFloat(t/f)),r&&(p=parseFloat((u-e)/u)),A=!1,s.showAlpha||(g=1),T()},wt,_t),a?(H(a),O(),P=s.preferredFormat||tinycolor(a).format,mt(a)):O(),l&&St(),r=jt?"mousedown.spectrum":"click.spectrum touchstart.spectrum",ot.delegate(".sp-thumb-el",r,Ht),st.delegate(".sp-thumb-el:nth-child(1)",r,{ignore:!0},Ht);var Ft={show:St,hide:R,toggle:kt,reflow:N,option:function(t,e){return t===Ot?Tt.extend({},s):e===Ot?s[t]:(s[t]=e,"preferredFormat"===t&&(P=s.preferredFormat),void gt())},enable:function(){J=!1,w.attr("disabled",!1),dt.removeClass("sp-disabled")},disable:Rt,offset:function(t){s.offset=t,N()},set:function(t){H(t),q()},get:F,destroy:function(){w.show(),dt.unbind("click.spectrum touchstart.spectrum"),_.remove(),k.remove(),Nt[Ft.id]=null},container:_};return Ft.id=Nt.push(Ft)-1,Ft}function e(){}function Vt(t){t.stopPropagation()}function It(t,e){var r=Array.prototype.slice,n=r.call(arguments,2);return function(){return t.apply(e,n.concat(r.call(arguments)))}}function zt(n,a,e,t){a=a||function(){},e=e||function(){},t=t||function(){};var i=document,o=!1,s={},l=0,c=0,f="ontouchstart"in window,r={};function u(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),t.returnValue=!1}function h(t){if(o){if(jt&&i.documentMode<9&&!t.button)return d();var e=t.originalEvent&&t.originalEvent.touches&&t.originalEvent.touches[0],r=e&&e.pageX||t.pageX,e=e&&e.pageY||t.pageY,r=Math.max(0,Math.min(r-s.left,c)),e=Math.max(0,Math.min(e-s.top,l));f&&u(t),a.apply(n,[r,e,t])}}function d(){o&&(Tt(i).unbind(r),Tt(i.body).removeClass("sp-dragging"),setTimeout(function(){t.apply(n,arguments)},0)),o=!1}r.selectstart=u,r.dragstart=u,r["touchmove mousemove"]=h,r["touchend mouseup"]=d,Tt(n).bind("touchstart mousedown",function(t){(t.which?3==t.which:2==t.button)||o||!1!==e.apply(n,arguments)&&(o=!0,l=Tt(n).height(),c=Tt(n).width(),s=Tt(n).offset(),Tt(i).bind(r),Tt(i.body).addClass("sp-dragging"),h(t),u(t))})}function Bt(){return Tt.fn.spectrum.inputTypeColorSupport()}var i,o,n,s,a,c,f,r,l,u,h,d,p,g="spectrum.id";function b(t,e){var r;return e=e||{},(t=t||"")instanceof b?t:this instanceof b?(r=function(t){var e={r:0,g:0,b:0},r=1,n=!1,a=!1;"string"==typeof t&&(t=function(t){t=t.replace(i,"").replace(o,"").toLowerCase();var e,r=!1;if(l[t])t=l[t],r=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=p.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=p.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=p.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=p.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=p.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=p.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=p.hex8.exec(t))return{a:function(t){return k(t)/255}(e[1]),r:k(e[2]),g:k(e[3]),b:k(e[4]),format:r?"name":"hex8"};if(e=p.hex6.exec(t))return{r:k(e[1]),g:k(e[2]),b:k(e[3]),format:r?"name":"hex"};if(e=p.hex3.exec(t))return{r:k(e[1]+""+e[1]),g:k(e[2]+""+e[2]),b:k(e[3]+""+e[3]),format:r?"name":"hex"};return!1}(t));"object"==typeof t&&(t.hasOwnProperty("r")&&t.hasOwnProperty("g")&&t.hasOwnProperty("b")?(e=function(t,e,r){return{r:255*_(t,255),g:255*_(e,255),b:255*_(r,255)}}(t.r,t.g,t.b),n=!0,a="%"===String(t.r).substr(-1)?"prgb":"rgb"):t.hasOwnProperty("h")&&t.hasOwnProperty("s")&&t.hasOwnProperty("v")?(t.s=C(t.s),t.v=C(t.v),e=function(t,e,r){t=6*_(t,360),e=_(e,100),r=_(r,100);var n=s.floor(t),t=t-n,a=r*(1-e),i=r*(1-t*e),t=r*(1-(1-t)*e),e=n%6;return{r:255*[r,i,a,a,t,r][e],g:255*[t,r,r,i,a,a][e],b:255*[a,a,t,r,r,i][e]}}(t.h,t.s,t.v),n=!0,a="hsv"):t.hasOwnProperty("h")&&t.hasOwnProperty("s")&&t.hasOwnProperty("l")&&(t.s=C(t.s),t.l=C(t.l),e=function(t,e,r){var n,a,i;function o(t,e,r){return r<0&&(r+=1),1<r&&--r,r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}t=_(t,360),e=_(e,100),r=_(r,100),0===e?n=a=i=r:(n=o(e=2*r-(r=r<.5?r*(1+e):r+e-r*e),r,t+1/3),a=o(e,r,t),i=o(e,r,t-1/3));return{r:255*n,g:255*a,b:255*i}}(t.h,t.s,t.l),n=!0,a="hsl"),t.hasOwnProperty("a"))&&(r=t.a);return r=z(r),{ok:n,format:t.format||a,r:c(255,f(e.r,0)),g:c(255,f(e.g,0)),b:c(255,f(e.b,0)),a:r}}(t),this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=a(100*this._a)/100,this._format=e.format||r.format,this._gradientType=e.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=r.ok,void(this._tc_id=n++)):new b(t,e)}function m(t,e,r){t=_(t,255),e=_(e,255),r=_(r,255);var n,a=f(t,e,r),i=c(t,e,r),o=(a+i)/2;if(a==i)n=l=0;else{var s=a-i,l=.5<o?s/(2-a-i):s/(a+i);switch(a){case t:n=(e-r)/s+(e<r?6:0);break;case e:n=(r-t)/s+2;break;case r:n=(t-e)/s+4}n/=6}return{h:n,s:l,l:o}}function v(t,e,r){t=_(t,255),e=_(e,255),r=_(r,255);var n,a=f(t,e,r),i=c(t,e,r),o=a,s=a-i,l=0===a?0:s/a;if(a==i)n=0;else{switch(a){case t:n=(e-r)/s+(e<r?6:0);break;case e:n=(r-t)/s+2;break;case r:n=(t-e)/s+4}n/=6}return{h:n,s:l,v:o}}function y(t,e,r,n){t=[S(a(t).toString(16)),S(a(e).toString(16)),S(a(r).toString(16))];return n&&t[0].charAt(0)==t[0].charAt(1)&&t[1].charAt(0)==t[1].charAt(1)&&t[2].charAt(0)==t[2].charAt(1)?t[0].charAt(0)+t[1].charAt(0)+t[2].charAt(0):t.join("")}function w(t,e,r,n){return[S(Math.round(255*parseFloat(n)).toString(16)),S(a(t).toString(16)),S(a(e).toString(16)),S(a(r).toString(16))].join("")}function A(t,e){e=0===e?0:e||10;t=b(t).toHsl();return t.s-=e/100,t.s=x(t.s),b(t)}function M(t,e){e=0===e?0:e||10;t=b(t).toHsl();return t.s+=e/100,t.s=x(t.s),b(t)}function R(t){return b(t).desaturate(100)}function H(t,e){e=0===e?0:e||10;t=b(t).toHsl();return t.l+=e/100,t.l=x(t.l),b(t)}function F(t,e){e=0===e?0:e||10;t=b(t).toRgb();return t.r=f(0,c(255,t.r-a(-e/100*255))),t.g=f(0,c(255,t.g-a(-e/100*255))),t.b=f(0,c(255,t.b-a(-e/100*255))),b(t)}function T(t,e){e=0===e?0:e||10;t=b(t).toHsl();return t.l-=e/100,t.l=x(t.l),b(t)}function O(t,e){t=b(t).toHsl(),e=(a(t.h)+e)%360;return t.h=e<0?360+e:e,b(t)}function q(t){t=b(t).toHsl();return t.h=(t.h+180)%360,b(t)}function N(t){var e=b(t).toHsl(),r=e.h;return[b(t),b({h:(r+120)%360,s:e.s,l:e.l}),b({h:(r+240)%360,s:e.s,l:e.l})]}function j(t){var e=b(t).toHsl(),r=e.h;return[b(t),b({h:(r+90)%360,s:e.s,l:e.l}),b({h:(r+180)%360,s:e.s,l:e.l}),b({h:(r+270)%360,s:e.s,l:e.l})]}function E(t){var e=b(t).toHsl(),r=e.h;return[b(t),b({h:(r+72)%360,s:e.s,l:e.l}),b({h:(r+216)%360,s:e.s,l:e.l})]}function D(t,e,r){e=e||6,r=r||30;var n=b(t).toHsl(),a=360/r,i=[b(t)];for(n.h=(n.h-(a*e>>1)+720)%360;--e;)n.h=(n.h+a)%360,i.push(b(n));return i}function I(t,e){e=e||6;for(var t=b(t).toHsv(),r=t.h,n=t.s,a=t.v,i=[],o=1/e;e--;)i.push(b({h:r,s:n,v:a})),a=(a+o)%1;return i}function z(t){return t=parseFloat(t),t=isNaN(t)||t<0||1<t?1:t}function _(t,e){"string"==typeof(r=t)&&-1!=r.indexOf(".")&&1===parseFloat(r)&&(t="100%");var r="string"==typeof(r=t)&&-1!=r.indexOf("%");return t=c(e,f(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),s.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function x(t){return c(1,f(0,t))}function k(t){return parseInt(t,16)}function S(t){return 1==t.length?"0"+t:""+t}function C(t){return t=t<=1?100*t+"%":t}Tt.fn.spectrum=function(r,t){var n,a;return"string"==typeof r?(n=this,a=Array.prototype.slice.call(arguments,1),this.each(function(){var t=Nt[Tt(this).data(g)];if(t){var e=t[r];if(!e)throw new Error("Spectrum: no such method: '"+r+"'");"get"==r?n=t.get():"container"==r?n=t.container:"option"==r?n=t.option.apply(t,a):"destroy"==r?(t.destroy(),Tt(this).removeData(g)):e.apply(t,a)}}),n):this.spectrum("destroy").each(function(){var t=P(this,Tt.extend({},r,Tt(this).data()));Tt(this).data(g,t.id)})},Tt.fn.spectrum.load=!0,Tt.fn.spectrum.loadOpts={},Tt.fn.spectrum.draggable=zt,Tt.fn.spectrum.defaults=qt,Tt.fn.spectrum.inputTypeColorSupport=function t(){var e;return void 0===t._cachedResult&&(e=Tt("<input type='color'/>")[0],t._cachedResult="color"===e.type&&""!==e.value),t._cachedResult},Tt.spectrum={},Tt.spectrum.localization={},Tt.spectrum.palettes={},Tt.fn.spectrum.processNativeColorInputs=function(){var t=Tt("input[type=color]");t.length&&!Bt()&&t.spectrum({preferredFormat:"hex6"})},i=/^[\s,#]+/,o=/\s+$/,n=0,s=Math,a=s.round,c=s.min,f=s.max,r=s.random,b.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=z(t),this._roundA=a(100*this._a)/100,this},toHsv:function(){var t=v(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=v(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),t=a(100*t.v);return 1==this._a?"hsv("+e+", "+r+"%, "+t+"%)":"hsva("+e+", "+r+"%, "+t+"%, "+this._roundA+")"},toHsl:function(){var t=m(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=m(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),t=a(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+t+"%)":"hsla("+e+", "+r+"%, "+t+"%, "+this._roundA+")"},toHex:function(t){return y(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(){return w(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*_(this._r,255))+"%",g:a(100*_(this._g,255))+"%",b:a(100*_(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+a(100*_(this._r,255))+"%, "+a(100*_(this._g,255))+"%, "+a(100*_(this._b,255))+"%)":"rgba("+a(100*_(this._r,255))+"%, "+a(100*_(this._g,255))+"%, "+a(100*_(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&u[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var e="#"+w(this._r,this._g,this._b,this._a),r=e;return"progid:DXImageTransform.Microsoft.gradient("+(this._gradientType?"GradientType = 1, ":"")+"startColorstr="+e+",endColorstr="+(r=t?b(t).toHex8String():r)+")"},toString:function(t){var e=!!t,r=(t=t||this._format,!1),n=this._a<1&&0<=this._a;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()),(r="hsv"===t?this.toHsvString():r)||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},_applyModification:function(t,e){t=t.apply(null,[this].concat([].slice.call(e)));return this._r=t._r,this._g=t._g,this._b=t._b,this.setAlpha(t._a),this},lighten:function(){return this._applyModification(H,arguments)},brighten:function(){return this._applyModification(F,arguments)},darken:function(){return this._applyModification(T,arguments)},desaturate:function(){return this._applyModification(A,arguments)},saturate:function(){return this._applyModification(M,arguments)},greyscale:function(){return this._applyModification(R,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(D,arguments)},complement:function(){return this._applyCombination(q,arguments)},monochromatic:function(){return this._applyCombination(I,arguments)},splitcomplement:function(){return this._applyCombination(E,arguments)},triad:function(){return this._applyCombination(N,arguments)},tetrad:function(){return this._applyCombination(j,arguments)}},b.fromRatio=function(t,e){if("object"==typeof t){var r,n={};for(r in t)t.hasOwnProperty(r)&&(n[r]="a"===r?t[r]:C(t[r]));t=n}return b(t,e)},b.equals=function(t,e){return!(!t||!e)&&b(t).toRgbString()==b(e).toRgbString()},b.random=function(){return b.fromRatio({r:r(),g:r(),b:r()})},b.mix=function(t,e,r){r=0===r?0:r||50;var t=b(t).toRgb(),e=b(e).toRgb(),r=r/100,n=2*r-1,a=e.a-t.a,n=n*a==-1?n:(n+a)/(1+n*a),a=1-(n=(n+1)/2),n={r:e.r*n+t.r*a,g:e.g*n+t.g*a,b:e.b*n+t.b*a,a:e.a*r+t.a*(1-r)};return b(n)},b.readability=function(t,e){var t=b(t),e=b(e),r=t.toRgb(),n=e.toRgb(),t=t.getBrightness(),e=e.getBrightness(),r=Math.max(r.r,n.r)-Math.min(r.r,n.r)+Math.max(r.g,n.g)-Math.min(r.g,n.g)+Math.max(r.b,n.b)-Math.min(r.b,n.b);return{brightness:Math.abs(t-e),color:r}},b.isReadable=function(t,e){t=b.readability(t,e);return 125<t.brightness&&500<t.color},b.mostReadable=function(t,e){for(var r=null,n=0,a=!1,i=0;i<e.length;i++){var o=b.readability(t,e[i]),s=125<o.brightness&&500<o.color,o=o.brightness/125*3+o.color/500;(s&&!a||s&&a&&n<o||!s&&!a&&n<o)&&(a=s,n=o,r=b(e[i]))}return r},l=b.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"},u=b.hexNames=function(t){var e,r={};for(e in t)t.hasOwnProperty(e)&&(r[t[e]]=e);return r}(l),d="[\\s|\\(]+("+(h="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+h+")[,|\\s]+("+h+")\\s*\\)?",h="[\\s|\\(]+("+h+")[,|\\s]+("+h+")[,|\\s]+("+h+")[,|\\s]+("+h+")\\s*\\)?",p={rgb:new RegExp("rgb"+d),rgba:new RegExp("rgba"+h),hsl:new RegExp("hsl"+d),hsla:new RegExp("hsla"+h),hsv:new RegExp("hsv"+d),hsva:new RegExp("hsva"+h),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=b,Tt(function(){Tt.fn.spectrum.load&&Tt.fn.spectrum.processNativeColorInputs()})});
  • watermark-protect-images/tags/2.2.5/composer.json

    r3196636 r3223598  
    1515    },
    1616    "require-dev": {
    17         "phpstan/phpstan": "^1.12",
    18         "szepeviktor/phpstan-wordpress": "^1.3",
     17        "phpstan/phpstan": "^2.1",
     18        "szepeviktor/phpstan-wordpress": "^2.0",
    1919        "phpstan/extension-installer": "^1.4",
    2020        "wp-coding-standards/wpcs": "^3.0"
  • watermark-protect-images/tags/2.2.5/ilove-img-watermark.php

    r3196636 r3223598  
    1111 * Plugin URI:        https://iloveapi.com/
    1212 * Description:       Protect your site from image theft with our reliable and easy-to-use watermark plugin. Effective protection for your images.
    13  * Version:           2.2.4
     13 * Version:           2.2.5
    1414 * Requires at least: 5.3
    1515 * Requires PHP:      7.4
  • watermark-protect-images/tags/2.2.5/package.json

    r3196636 r3223598  
    1616    "gulp-if": "^3.0.0",
    1717    "gulp-rename": "^2.0.0",
    18     "gulp-sass": "^5.1.0",
     18    "gulp-sass": "^6.0.0",
    1919    "gulp-sourcemaps": "^3.0.0",
    2020    "gulp-uglify": "^3.0.2",
    2121    "merge-stream": "^2.0.0",
    22     "sass": "^1.81"
     22    "sass": "^1.83"
    2323  }
    2424}
  • watermark-protect-images/tags/2.2.5/phpstan.neon

    r3088389 r3223598  
    88            analyseAndScan:
    99                    - vendor
    10                     - node_modules
     10                    - node_modules?
    1111            analyse:
    1212                    - vendor/ilovepdf/iloveimg-php
  • watermark-protect-images/tags/2.2.5/vendor/autoload.php

    r3196636 r3223598  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit496f012232819ee156bf98e2ecbf20ff::getLoader();
     25return ComposerAutoloaderInit7abb1584d4975b6b8efa630a3484119f::getLoader();
  • watermark-protect-images/tags/2.2.5/vendor/composer/InstalledVersions.php

    r2995900 r3223598  
    323323
    324324        $installed = array();
     325        $copiedLocalDir = false;
    325326
    326327        if (self::$canGetVendors) {
     
    331332                    /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
    332333                    $required = require $vendorDir.'/composer/installed.php';
    333                     $installed[] = self::$installedByVendor[$vendorDir] = $required;
    334                     if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
    335                         self::$installed = $installed[count($installed) - 1];
     334                    self::$installedByVendor[$vendorDir] = $required;
     335                    $installed[] = $required;
     336                    if (strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
     337                        self::$installed = $required;
     338                        $copiedLocalDir = true;
    336339                    }
    337340                }
     
    351354        }
    352355
    353         if (self::$installed !== array()) {
     356        if (self::$installed !== array() && !$copiedLocalDir) {
    354357            $installed[] = self::$installed;
    355358        }
  • watermark-protect-images/tags/2.2.5/vendor/composer/autoload_real.php

    r3196636 r3223598  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit496f012232819ee156bf98e2ecbf20ff
     5class ComposerAutoloaderInit7abb1584d4975b6b8efa630a3484119f
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit496f012232819ee156bf98e2ecbf20ff', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit7abb1584d4975b6b8efa630a3484119f', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit496f012232819ee156bf98e2ecbf20ff', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit7abb1584d4975b6b8efa630a3484119f', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit496f012232819ee156bf98e2ecbf20ff::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit7abb1584d4975b6b8efa630a3484119f::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $filesToLoad = \Composer\Autoload\ComposerStaticInit496f012232819ee156bf98e2ecbf20ff::$files;
     36        $filesToLoad = \Composer\Autoload\ComposerStaticInit7abb1584d4975b6b8efa630a3484119f::$files;
    3737        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
    3838            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • watermark-protect-images/tags/2.2.5/vendor/composer/autoload_static.php

    r3196636 r3223598  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit496f012232819ee156bf98e2ecbf20ff
     7class ComposerStaticInit7abb1584d4975b6b8efa630a3484119f
    88{
    99    public static $files = array (
     
    7979    {
    8080        return \Closure::bind(function () use ($loader) {
    81             $loader->prefixLengthsPsr4 = ComposerStaticInit496f012232819ee156bf98e2ecbf20ff::$prefixLengthsPsr4;
    82             $loader->prefixDirsPsr4 = ComposerStaticInit496f012232819ee156bf98e2ecbf20ff::$prefixDirsPsr4;
    83             $loader->classMap = ComposerStaticInit496f012232819ee156bf98e2ecbf20ff::$classMap;
     81            $loader->prefixLengthsPsr4 = ComposerStaticInit7abb1584d4975b6b8efa630a3484119f::$prefixLengthsPsr4;
     82            $loader->prefixDirsPsr4 = ComposerStaticInit7abb1584d4975b6b8efa630a3484119f::$prefixDirsPsr4;
     83            $loader->classMap = ComposerStaticInit7abb1584d4975b6b8efa630a3484119f::$classMap;
    8484
    8585        }, null, ClassLoader::class);
  • watermark-protect-images/tags/2.2.5/vendor/composer/installed.json

    r3196636 r3223598  
    8484        {
    8585            "name": "firebase/php-jwt",
    86             "version": "v6.10.1",
    87             "version_normalized": "6.10.1.0",
     86            "version": "v6.10.2",
     87            "version_normalized": "6.10.2.0",
    8888            "source": {
    8989                "type": "git",
    9090                "url": "https://github.com/firebase/php-jwt.git",
    91                 "reference": "500501c2ce893c824c801da135d02661199f60c5"
    92             },
    93             "dist": {
    94                 "type": "zip",
    95                 "url": "https://api.github.com/repos/firebase/php-jwt/zipball/500501c2ce893c824c801da135d02661199f60c5",
    96                 "reference": "500501c2ce893c824c801da135d02661199f60c5",
     91                "reference": "30c19ed0f3264cb660ea496895cfb6ef7ee3653b"
     92            },
     93            "dist": {
     94                "type": "zip",
     95                "url": "https://api.github.com/repos/firebase/php-jwt/zipball/30c19ed0f3264cb660ea496895cfb6ef7ee3653b",
     96                "reference": "30c19ed0f3264cb660ea496895cfb6ef7ee3653b",
    9797                "shasum": ""
    9898            },
     
    112112                "paragonie/sodium_compat": "Support EdDSA (Ed25519) signatures when libsodium is not present"
    113113            },
    114             "time": "2024-05-18T18:05:11+00:00",
     114            "time": "2024-11-24T11:22:49+00:00",
    115115            "type": "library",
    116116            "installation-source": "dist",
     
    144144            "support": {
    145145                "issues": "https://github.com/firebase/php-jwt/issues",
    146                 "source": "https://github.com/firebase/php-jwt/tree/v6.10.1"
     146                "source": "https://github.com/firebase/php-jwt/tree/v6.10.2"
    147147            },
    148148            "install-path": "../firebase/php-jwt"
     
    536536        {
    537537            "name": "php-stubs/wordpress-stubs",
    538             "version": "v6.6.2",
    539             "version_normalized": "6.6.2.0",
     538            "version": "v6.7.1",
     539            "version_normalized": "6.7.1.0",
    540540            "source": {
    541541                "type": "git",
    542542                "url": "https://github.com/php-stubs/wordpress-stubs.git",
    543                 "reference": "f50fd7ed45894d036e4fef9ab7e5bbbaff6a30cc"
    544             },
    545             "dist": {
    546                 "type": "zip",
    547                 "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/f50fd7ed45894d036e4fef9ab7e5bbbaff6a30cc",
    548                 "reference": "f50fd7ed45894d036e4fef9ab7e5bbbaff6a30cc",
     543                "reference": "83448e918bf06d1ed3d67ceb6a985fc266a02fd1"
     544            },
     545            "dist": {
     546                "type": "zip",
     547                "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/83448e918bf06d1ed3d67ceb6a985fc266a02fd1",
     548                "reference": "83448e918bf06d1ed3d67ceb6a985fc266a02fd1",
    549549                "shasum": ""
    550550            },
     
    555555                "php-stubs/generator": "^0.8.3",
    556556                "phpdocumentor/reflection-docblock": "^5.4.1",
    557                 "phpstan/phpstan": "^1.10.49",
     557                "phpstan/phpstan": "^1.11",
    558558                "phpunit/phpunit": "^9.5",
    559                 "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^1.0",
     559                "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^1.1.1",
    560560                "wp-coding-standards/wpcs": "3.1.0 as 2.3.0"
    561561            },
     
    565565                "szepeviktor/phpstan-wordpress": "WordPress extensions for PHPStan"
    566566            },
    567             "time": "2024-09-30T07:10:48+00:00",
     567            "time": "2024-11-24T03:57:09+00:00",
    568568            "type": "library",
    569569            "installation-source": "dist",
     
    581581            "support": {
    582582                "issues": "https://github.com/php-stubs/wordpress-stubs/issues",
    583                 "source": "https://github.com/php-stubs/wordpress-stubs/tree/v6.6.2"
     583                "source": "https://github.com/php-stubs/wordpress-stubs/tree/v6.7.1"
    584584            },
    585585            "install-path": "../php-stubs/wordpress-stubs"
     
    810810        {
    811811            "name": "phpstan/phpstan",
    812             "version": "1.12.11",
    813             "version_normalized": "1.12.11.0",
     812            "version": "2.1.1",
     813            "version_normalized": "2.1.1.0",
    814814            "source": {
    815815                "type": "git",
    816816                "url": "https://github.com/phpstan/phpstan.git",
    817                 "reference": "0d1fc20a962a91be578bcfe7cf939e6e1a2ff733"
    818             },
    819             "dist": {
    820                 "type": "zip",
    821                 "url": "https://api.github.com/repos/phpstan/phpstan/zipball/0d1fc20a962a91be578bcfe7cf939e6e1a2ff733",
    822                 "reference": "0d1fc20a962a91be578bcfe7cf939e6e1a2ff733",
    823                 "shasum": ""
    824             },
    825             "require": {
    826                 "php": "^7.2|^8.0"
     817                "reference": "cd6e973e04b4c2b94c86e8612b5a65f0da0e08e7"
     818            },
     819            "dist": {
     820                "type": "zip",
     821                "url": "https://api.github.com/repos/phpstan/phpstan/zipball/cd6e973e04b4c2b94c86e8612b5a65f0da0e08e7",
     822                "reference": "cd6e973e04b4c2b94c86e8612b5a65f0da0e08e7",
     823                "shasum": ""
     824            },
     825            "require": {
     826                "php": "^7.4|^8.0"
    827827            },
    828828            "conflict": {
    829829                "phpstan/phpstan-shim": "*"
    830830            },
    831             "time": "2024-11-17T14:08:01+00:00",
     831            "time": "2025-01-05T16:43:48+00:00",
    832832            "bin": [
    833833                "phpstan",
     
    10871087        {
    10881088            "name": "squizlabs/php_codesniffer",
    1089             "version": "3.11.1",
    1090             "version_normalized": "3.11.1.0",
     1089            "version": "3.11.2",
     1090            "version_normalized": "3.11.2.0",
    10911091            "source": {
    10921092                "type": "git",
    10931093                "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git",
    1094                 "reference": "19473c30efe4f7b3cd42522d0b2e6e7f243c6f87"
    1095             },
    1096             "dist": {
    1097                 "type": "zip",
    1098                 "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/19473c30efe4f7b3cd42522d0b2e6e7f243c6f87",
    1099                 "reference": "19473c30efe4f7b3cd42522d0b2e6e7f243c6f87",
     1094                "reference": "1368f4a58c3c52114b86b1abe8f4098869cb0079"
     1095            },
     1096            "dist": {
     1097                "type": "zip",
     1098                "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/1368f4a58c3c52114b86b1abe8f4098869cb0079",
     1099                "reference": "1368f4a58c3c52114b86b1abe8f4098869cb0079",
    11001100                "shasum": ""
    11011101            },
     
    11091109                "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4"
    11101110            },
    1111             "time": "2024-11-16T12:02:36+00:00",
     1111            "time": "2024-12-11T16:04:26+00:00",
    11121112            "bin": [
    11131113                "bin/phpcbf",
     
    11701170        {
    11711171            "name": "symfony/deprecation-contracts",
    1172             "version": "v3.5.0",
    1173             "version_normalized": "3.5.0.0",
     1172            "version": "v3.5.1",
     1173            "version_normalized": "3.5.1.0",
    11741174            "source": {
    11751175                "type": "git",
    11761176                "url": "https://github.com/symfony/deprecation-contracts.git",
    1177                 "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1"
    1178             },
    1179             "dist": {
    1180                 "type": "zip",
    1181                 "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1",
    1182                 "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1",
     1177                "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6"
     1178            },
     1179            "dist": {
     1180                "type": "zip",
     1181                "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6",
     1182                "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6",
    11831183                "shasum": ""
    11841184            },
     
    11861186                "php": ">=8.1"
    11871187            },
    1188             "time": "2024-04-18T09:32:20+00:00",
     1188            "time": "2024-09-25T14:20:29+00:00",
    11891189            "type": "library",
    11901190            "extra": {
     1191                "thanks": {
     1192                    "url": "https://github.com/symfony/contracts",
     1193                    "name": "symfony/contracts"
     1194                },
    11911195                "branch-alias": {
    11921196                    "dev-main": "3.5-dev"
    1193                 },
    1194                 "thanks": {
    1195                     "name": "symfony/contracts",
    1196                     "url": "https://github.com/symfony/contracts"
    11971197                }
    11981198            },
     
    12201220            "homepage": "https://symfony.com",
    12211221            "support": {
    1222                 "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.0"
     1222                "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.1"
    12231223            },
    12241224            "funding": [
     
    12391239        },
    12401240        {
    1241             "name": "symfony/polyfill-php73",
    1242             "version": "v1.31.0",
    1243             "version_normalized": "1.31.0.0",
    1244             "source": {
    1245                 "type": "git",
    1246                 "url": "https://github.com/symfony/polyfill-php73.git",
    1247                 "reference": "0f68c03565dcaaf25a890667542e8bd75fe7e5bb"
    1248             },
    1249             "dist": {
    1250                 "type": "zip",
    1251                 "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/0f68c03565dcaaf25a890667542e8bd75fe7e5bb",
    1252                 "reference": "0f68c03565dcaaf25a890667542e8bd75fe7e5bb",
    1253                 "shasum": ""
    1254             },
    1255             "require": {
    1256                 "php": ">=7.2"
    1257             },
    1258             "time": "2024-09-09T11:45:10+00:00",
    1259             "type": "library",
    1260             "extra": {
    1261                 "thanks": {
    1262                     "name": "symfony/polyfill",
    1263                     "url": "https://github.com/symfony/polyfill"
    1264                 }
    1265             },
    1266             "installation-source": "dist",
    1267             "autoload": {
    1268                 "files": [
    1269                     "bootstrap.php"
    1270                 ],
    1271                 "psr-4": {
    1272                     "Symfony\\Polyfill\\Php73\\": ""
    1273                 },
    1274                 "classmap": [
    1275                     "Resources/stubs"
    1276                 ]
    1277             },
    1278             "notification-url": "https://packagist.org/downloads/",
    1279             "license": [
    1280                 "MIT"
    1281             ],
    1282             "authors": [
    1283                 {
    1284                     "name": "Nicolas Grekas",
    1285                     "email": "p@tchwork.com"
    1286                 },
    1287                 {
    1288                     "name": "Symfony Community",
    1289                     "homepage": "https://symfony.com/contributors"
    1290                 }
    1291             ],
    1292             "description": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions",
    1293             "homepage": "https://symfony.com",
    1294             "keywords": [
    1295                 "compatibility",
    1296                 "polyfill",
    1297                 "portable",
    1298                 "shim"
    1299             ],
    1300             "support": {
    1301                 "source": "https://github.com/symfony/polyfill-php73/tree/v1.31.0"
    1302             },
    1303             "funding": [
    1304                 {
    1305                     "url": "https://symfony.com/sponsor",
    1306                     "type": "custom"
    1307                 },
    1308                 {
    1309                     "url": "https://github.com/fabpot",
    1310                     "type": "github"
    1311                 },
    1312                 {
    1313                     "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
    1314                     "type": "tidelift"
    1315                 }
    1316             ],
    1317             "install-path": "../symfony/polyfill-php73"
    1318         },
    1319         {
    13201241            "name": "szepeviktor/phpstan-wordpress",
    1321             "version": "v1.3.5",
    1322             "version_normalized": "1.3.5.0",
     1242            "version": "v2.0.1",
     1243            "version_normalized": "2.0.1.0",
    13231244            "source": {
    13241245                "type": "git",
    13251246                "url": "https://github.com/szepeviktor/phpstan-wordpress.git",
    1326                 "reference": "7f8cfe992faa96b6a33bbd75c7bace98864161e7"
    1327             },
    1328             "dist": {
    1329                 "type": "zip",
    1330                 "url": "https://api.github.com/repos/szepeviktor/phpstan-wordpress/zipball/7f8cfe992faa96b6a33bbd75c7bace98864161e7",
    1331                 "reference": "7f8cfe992faa96b6a33bbd75c7bace98864161e7",
    1332                 "shasum": ""
    1333             },
    1334             "require": {
    1335                 "php": "^7.2 || ^8.0",
    1336                 "php-stubs/wordpress-stubs": "^4.7 || ^5.0 || ^6.0",
    1337                 "phpstan/phpstan": "^1.10.31",
    1338                 "symfony/polyfill-php73": "^1.12.0"
     1247                "reference": "f7beb13cd22998e3d913fdb897a1e2553ccd637e"
     1248            },
     1249            "dist": {
     1250                "type": "zip",
     1251                "url": "https://api.github.com/repos/szepeviktor/phpstan-wordpress/zipball/f7beb13cd22998e3d913fdb897a1e2553ccd637e",
     1252                "reference": "f7beb13cd22998e3d913fdb897a1e2553ccd637e",
     1253                "shasum": ""
     1254            },
     1255            "require": {
     1256                "php": "^7.4 || ^8.0",
     1257                "php-stubs/wordpress-stubs": "^6.6.2",
     1258                "phpstan/phpstan": "^2.0"
    13391259            },
    13401260            "require-dev": {
     
    13421262                "dealerdirect/phpcodesniffer-composer-installer": "^1.0",
    13431263                "php-parallel-lint/php-parallel-lint": "^1.1",
    1344                 "phpstan/phpstan-strict-rules": "^1.2",
    1345                 "phpunit/phpunit": "^8.0 || ^9.0",
     1264                "phpstan/phpstan-strict-rules": "^2.0",
     1265                "phpunit/phpunit": "^9.0",
    13461266                "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^1.0",
    13471267                "wp-coding-standards/wpcs": "3.1.0 as 2.3.0"
     
    13501270                "swissspidy/phpstan-no-private": "Detect usage of internal core functions, classes and methods"
    13511271            },
    1352             "time": "2024-06-28T22:27:19+00:00",
     1272            "time": "2024-12-01T02:13:05+00:00",
    13531273            "type": "phpstan-extension",
    13541274            "extra": {
     
    13791299            "support": {
    13801300                "issues": "https://github.com/szepeviktor/phpstan-wordpress/issues",
    1381                 "source": "https://github.com/szepeviktor/phpstan-wordpress/tree/v1.3.5"
     1301                "source": "https://github.com/szepeviktor/phpstan-wordpress/tree/v2.0.1"
    13821302            },
    13831303            "install-path": "../szepeviktor/phpstan-wordpress"
     
    14621382        "phpstan/phpstan",
    14631383        "squizlabs/php_codesniffer",
    1464         "symfony/polyfill-php73",
    14651384        "szepeviktor/phpstan-wordpress",
    14661385        "wp-coding-standards/wpcs"
  • watermark-protect-images/tags/2.2.5/vendor/composer/installed.php

    r3196636 r3223598  
    22    'root' => array(
    33        'name' => 'ilovepdf/iloveimg-wp-watermark',
    4         'pretty_version' => 'dev-master',
    5         'version' => 'dev-master',
    6         'reference' => 'b38e7bc53f2dc99454d47649842800063084fa67',
     4        'pretty_version' => 'dev-develop',
     5        'version' => 'dev-develop',
     6        'reference' => 'b499f7a3d6a87730e282e0a64f62b51a6f469572',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    2121        ),
    2222        'firebase/php-jwt' => array(
    23             'pretty_version' => 'v6.10.1',
    24             'version' => '6.10.1.0',
    25             'reference' => '500501c2ce893c824c801da135d02661199f60c5',
     23            'pretty_version' => 'v6.10.2',
     24            'version' => '6.10.2.0',
     25            'reference' => '30c19ed0f3264cb660ea496895cfb6ef7ee3653b',
    2626            'type' => 'library',
    2727            'install_path' => __DIR__ . '/../firebase/php-jwt',
     
    6868        ),
    6969        'ilovepdf/iloveimg-wp-watermark' => array(
    70             'pretty_version' => 'dev-master',
    71             'version' => 'dev-master',
    72             'reference' => 'b38e7bc53f2dc99454d47649842800063084fa67',
     70            'pretty_version' => 'dev-develop',
     71            'version' => 'dev-develop',
     72            'reference' => 'b499f7a3d6a87730e282e0a64f62b51a6f469572',
    7373            'type' => 'wordpress-plugin',
    7474            'install_path' => __DIR__ . '/../../',
     
    7777        ),
    7878        'php-stubs/wordpress-stubs' => array(
    79             'pretty_version' => 'v6.6.2',
    80             'version' => '6.6.2.0',
    81             'reference' => 'f50fd7ed45894d036e4fef9ab7e5bbbaff6a30cc',
     79            'pretty_version' => 'v6.7.1',
     80            'version' => '6.7.1.0',
     81            'reference' => '83448e918bf06d1ed3d67ceb6a985fc266a02fd1',
    8282            'type' => 'library',
    8383            'install_path' => __DIR__ . '/../php-stubs/wordpress-stubs',
     
    113113        ),
    114114        'phpstan/phpstan' => array(
    115             'pretty_version' => '1.12.11',
    116             'version' => '1.12.11.0',
    117             'reference' => '0d1fc20a962a91be578bcfe7cf939e6e1a2ff733',
     115            'pretty_version' => '2.1.1',
     116            'version' => '2.1.1.0',
     117            'reference' => 'cd6e973e04b4c2b94c86e8612b5a65f0da0e08e7',
    118118            'type' => 'library',
    119119            'install_path' => __DIR__ . '/../phpstan/phpstan',
     
    176176        ),
    177177        'squizlabs/php_codesniffer' => array(
    178             'pretty_version' => '3.11.1',
    179             'version' => '3.11.1.0',
    180             'reference' => '19473c30efe4f7b3cd42522d0b2e6e7f243c6f87',
     178            'pretty_version' => '3.11.2',
     179            'version' => '3.11.2.0',
     180            'reference' => '1368f4a58c3c52114b86b1abe8f4098869cb0079',
    181181            'type' => 'library',
    182182            'install_path' => __DIR__ . '/../squizlabs/php_codesniffer',
     
    185185        ),
    186186        'symfony/deprecation-contracts' => array(
    187             'pretty_version' => 'v3.5.0',
    188             'version' => '3.5.0.0',
    189             'reference' => '0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1',
     187            'pretty_version' => 'v3.5.1',
     188            'version' => '3.5.1.0',
     189            'reference' => '74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6',
    190190            'type' => 'library',
    191191            'install_path' => __DIR__ . '/../symfony/deprecation-contracts',
     
    193193            'dev_requirement' => false,
    194194        ),
    195         'symfony/polyfill-php73' => array(
    196             'pretty_version' => 'v1.31.0',
    197             'version' => '1.31.0.0',
    198             'reference' => '0f68c03565dcaaf25a890667542e8bd75fe7e5bb',
    199             'type' => 'library',
    200             'install_path' => __DIR__ . '/../symfony/polyfill-php73',
    201             'aliases' => array(),
    202             'dev_requirement' => true,
    203         ),
    204195        'szepeviktor/phpstan-wordpress' => array(
    205             'pretty_version' => 'v1.3.5',
    206             'version' => '1.3.5.0',
    207             'reference' => '7f8cfe992faa96b6a33bbd75c7bace98864161e7',
     196            'pretty_version' => 'v2.0.1',
     197            'version' => '2.0.1.0',
     198            'reference' => 'f7beb13cd22998e3d913fdb897a1e2553ccd637e',
    208199            'type' => 'phpstan-extension',
    209200            'install_path' => __DIR__ . '/../szepeviktor/phpstan-wordpress',
  • watermark-protect-images/tags/2.2.5/vendor/firebase/php-jwt/CHANGELOG.md

    r3165756 r3223598  
    11# Changelog
     2
     3## [6.10.2](https://github.com/firebase/php-jwt/compare/v6.10.1...v6.10.2) (2024-11-24)
     4
     5
     6### Bug Fixes
     7
     8* Mitigate PHP8.4 deprecation warnings ([#570](https://github.com/firebase/php-jwt/issues/570)) ([76808fa](https://github.com/firebase/php-jwt/commit/76808fa227f3811aa5cdb3bf81233714b799a5b5))
     9* support php 8.4 ([#583](https://github.com/firebase/php-jwt/issues/583)) ([e3d68b0](https://github.com/firebase/php-jwt/commit/e3d68b044421339443c74199edd020e03fb1887e))
    210
    311## [6.10.1](https://github.com/firebase/php-jwt/compare/v6.10.0...v6.10.1) (2024-05-18)
  • watermark-protect-images/tags/2.2.5/vendor/firebase/php-jwt/src/CachedKeySet.php

    r3165756 r3223598  
    8181        RequestFactoryInterface $httpFactory,
    8282        CacheItemPoolInterface $cache,
    83         int $expiresAfter = null,
     83        ?int $expiresAfter = null,
    8484        bool $rateLimit = false,
    85         string $defaultAlg = null
     85        ?string $defaultAlg = null
    8686    ) {
    8787        $this->jwksUri = $jwksUri;
     
    181181            if ($jwksResponse->getStatusCode() !== 200) {
    182182                throw new UnexpectedValueException(
    183                     sprintf('HTTP Error: %d %s for URI "%s"',
     183                    \sprintf('HTTP Error: %d %s for URI "%s"',
    184184                        $jwksResponse->getStatusCode(),
    185185                        $jwksResponse->getReasonPhrase(),
  • watermark-protect-images/tags/2.2.5/vendor/firebase/php-jwt/src/JWK.php

    r3165756 r3223598  
    5353     * @uses parseKey
    5454     */
    55     public static function parseKeySet(array $jwks, string $defaultAlg = null): array
     55    public static function parseKeySet(array $jwks, ?string $defaultAlg = null): array
    5656    {
    5757        $keys = [];
     
    9494     * @uses createPemFromModulusAndExponent
    9595     */
    96     public static function parseKey(array $jwk, string $defaultAlg = null): ?Key
     96    public static function parseKey(array $jwk, ?string $defaultAlg = null): ?Key
    9797    {
    9898        if (empty($jwk)) {
     
    213213            );
    214214
    215         return sprintf(
     215        return \sprintf(
    216216            "-----BEGIN PUBLIC KEY-----\n%s\n-----END PUBLIC KEY-----\n",
    217217            wordwrap(base64_encode($pem), 64, "\n", true)
  • watermark-protect-images/tags/2.2.5/vendor/firebase/php-jwt/src/JWT.php

    r3165756 r3223598  
    9797        string $jwt,
    9898        $keyOrKeyArray,
    99         stdClass &$headers = null
     99        ?stdClass &$headers = null
    100100    ): stdClass {
    101101        // Validate JWT
     
    201201        $key,
    202202        string $alg,
    203         string $keyId = null,
    204         array $head = null
     203        ?string $keyId = null,
     204        ?array $head = null
    205205    ): string {
    206206        $header = ['typ' => 'JWT'];
    207         if (isset($head) && \is_array($head)) {
     207        if (isset($head)) {
    208208            $header = \array_merge($header, $head);
    209209        }
     
    388388    public static function jsonEncode(array $input): string
    389389    {
    390         if (PHP_VERSION_ID >= 50400) {
    391             $json = \json_encode($input, \JSON_UNESCAPED_SLASHES);
    392         } else {
    393             // PHP 5.3 only
    394             $json = \json_encode($input);
    395         }
     390        $json = \json_encode($input, \JSON_UNESCAPED_SLASHES);
    396391        if ($errno = \json_last_error()) {
    397392            self::handleJsonError($errno);
  • watermark-protect-images/trunk/README.txt

    r3196636 r3223598  
    11=== Best Watermark - Protect images on your site with iLoveIMG ===
    22Plugin Name: Best Watermark - Protect images on your site with iLoveIMG
    3 Version: 2.2.4
     3Version: 2.2.5
    44Author: iLovePDF
    55Author URI: https://www.iloveimg.com/
     
    88Requires at least: 5.3
    99Tested up to: 6.7
    10 Stable tag: 2.2.4
     10Stable tag: 2.2.5
    1111Requires PHP: 7.4
    1212License: GPLv2 or later
     
    100100
    101101== Changelog ==
     102
     103= 2.2.5 =
     104Improved
     105* Update Libraries.
     106
     107Fixed
     108* Thumbnails and other intermediate sizes that came from a PDF file were watermarked.
    102109
    103110= 2.2.4 =
  • watermark-protect-images/trunk/admin/Ilove_Img_Wm_Plugin.php

    r3196636 r3223598  
    1919     * @var      string    VERSION    The current version of the plugin.
    2020     */
    21     const VERSION = '2.2.4';
     21    const VERSION = '2.2.5';
    2222
    2323    /**
     
    248248     */
    249249    public function process_attachment( $metadata, $attachment_id ) {
     250        $file                 = get_post( $attachment_id );
     251        $accepted_file_format = array( 'image/jpeg', 'image/jpg', 'image/png', 'image/gif' );
     252
     253        if ( ! in_array( $file->post_mime_type, $accepted_file_format, true ) ) {
     254            return $metadata;
     255        }
     256
    250257        update_post_meta( $attachment_id, 'iloveimg_status_watermark', 0 ); // status no watermarked
    251258
  • watermark-protect-images/trunk/assets/js/main.min.js

    r3196636 r3223598  
    77                            <button id="iloveimg-watermark-dialog-close" class="button button-secondary">Close</button>
    88                        </div>
    9                     </dialog>`);let i=document.getElementById("iloveimg-watermark-restore-dialog");var e=document.getElementById("iloveimg-watermark-dialog-aceptted"),o=document.getElementById("iloveimg-watermark-dialog-close");i.showModal(),e.addEventListener("click",e=>{e.preventDefault(),t.attr("disabled","disabled"),i.close(),i.remove(),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"ilove_img_wm_restore_all"},success:function(){t.removeAttr("disabled"),location.reload()},error:function(){t.removeAttr("disabled")}})}),o.addEventListener("click",e=>{e.preventDefault(),i.close(),i.remove()})}),jQuery(".iloveimg_page_iloveimg-watermark-admin-page #iloveimg_clear_backup").on("click",function(e){e.preventDefault();let t=jQuery(e.currentTarget);t.parent().append(`
     9                    </dialog>`);const i=document.getElementById("iloveimg-watermark-restore-dialog");var e=document.getElementById("iloveimg-watermark-dialog-aceptted"),o=document.getElementById("iloveimg-watermark-dialog-close");i.showModal(),e.addEventListener("click",e=>{e.preventDefault(),t.attr("disabled","disabled"),i.close(),i.remove(),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"ilove_img_wm_restore_all"},success:function(){t.removeAttr("disabled"),location.reload()},error:function(){t.removeAttr("disabled")}})}),o.addEventListener("click",e=>{e.preventDefault(),i.close(),i.remove()})}),jQuery(".iloveimg_page_iloveimg-watermark-admin-page #iloveimg_clear_backup").on("click",function(e){e.preventDefault();let t=jQuery(e.currentTarget);t.parent().append(`
    1010                    <dialog id="iloveimg-watermark-restore-dialog" class="iloveimg-restore-dialog">
    1111                        <h2 class="iloveimg-title-dialog">Attention!</h2>
     
    1515                            <button id="iloveimg-watermark-dialog-close" class="button button-secondary">Close</button>
    1616                        </div>
    17                     </dialog>`);let i=document.getElementById("iloveimg-watermark-restore-dialog");var e=document.getElementById("iloveimg-watermark-dialog-aceptted"),o=document.getElementById("iloveimg-watermark-dialog-close");i.showModal(),e.addEventListener("click",e=>{e.preventDefault(),t.attr("disabled","disabled"),i.close(),i.remove(),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"ilove_img_wm_clear_backup"},success:function(){t.removeAttr("disabled"),location.reload()},error:function(){t.removeAttr("disabled")}})}),o.addEventListener("click",e=>{e.preventDefault(),i.close(),i.remove()})}),jQuery(".iloveimg-watermark.iloveimg_restore_button_wrapper .iloveimg_restore_button").on("click",function(e){e.preventDefault();let t=jQuery(e.currentTarget),i=jQuery(e.currentTarget).siblings("#_wpnonce"),o=(i=i.val(),t.data("action")),a=t.data("id");t.hide(),t.nextAll(".loading").show();t.parent().append(`
     17                    </dialog>`);const i=document.getElementById("iloveimg-watermark-restore-dialog");var e=document.getElementById("iloveimg-watermark-dialog-aceptted"),o=document.getElementById("iloveimg-watermark-dialog-close");i.showModal(),e.addEventListener("click",e=>{e.preventDefault(),t.attr("disabled","disabled"),i.close(),i.remove(),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"ilove_img_wm_clear_backup"},success:function(){t.removeAttr("disabled"),location.reload()},error:function(){t.removeAttr("disabled")}})}),o.addEventListener("click",e=>{e.preventDefault(),i.close(),i.remove()})}),jQuery(".iloveimg-watermark.iloveimg_restore_button_wrapper .iloveimg_restore_button").on("click",function(e){e.preventDefault();let t=jQuery(e.currentTarget),i=jQuery(e.currentTarget).siblings("#_wpnonce"),o=(i=i.val(),t.data("action")),a=t.data("id");t.hide(),t.nextAll(".loading").show();t.parent().append(`
    1818                    <dialog id="iloveimg-watermark-restore-dialog" class="iloveimg-restore-dialog">
    1919                        <h2 class="iloveimg-title-dialog">Attention!</h2>
     
    2323                            <button id="iloveimg-watermark-dialog-close" class="button button-secondary">Close</button>
    2424                        </div>
    25                     </dialog>`);let r=document.getElementById("iloveimg-watermark-restore-dialog");var e=document.getElementById("iloveimg-watermark-dialog-aceptted"),l=document.getElementById("iloveimg-watermark-dialog-close");r.showModal(),e.addEventListener("click",e=>{e.preventDefault(),t.attr("disabled","disabled"),r.close(),r.remove(),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:o,id:a,_wpnonce:i},dataType:"json",success:function(e){t.nextAll(".loading").hide(),t.nextAll(".success").html(e.data).show(),location.reload()},error:function(e){t.nextAll(".loading").hide(),t.nextAll(".error").html(e.responseJSON.data).show(),t.show()}})}),l.addEventListener("click",e=>{e.preventDefault(),t.show(),t.nextAll(".loading").hide(),r.close(),r.remove()})}),jQuery("input[name='iloveimg_field_image']").on("keyup change",function(e){jQuery("#iloveimg_settings__watermark__preview img").attr("src",jQuery("input[name='iloveimg_field_image']").val())}),jQuery("#media-open").on("click",function(e){e.preventDefault(),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"ilove_img_wm_library_set_watermark_image"},success:function(e){}}),l||(l=wp.media({title:"Select or Upload Media",button:{text:"Select Watermark"},multiple:!1})).on("select",function(){var e=l.state().get("selection").first().toJSON();jQuery("input[name='iloveimg_field_image']").val(e.url),jQuery("#iloveimg_settings__watermark__preview img").attr("src",e.url),_(),t(),a()}),l.open()})}.call();
     25                    </dialog>`);const r=document.getElementById("iloveimg-watermark-restore-dialog");var e=document.getElementById("iloveimg-watermark-dialog-aceptted"),l=document.getElementById("iloveimg-watermark-dialog-close");r.showModal(),e.addEventListener("click",e=>{e.preventDefault(),t.attr("disabled","disabled"),r.close(),r.remove(),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:o,id:a,_wpnonce:i},dataType:"json",success:function(e){t.nextAll(".loading").hide(),t.nextAll(".success").html(e.data).show(),location.reload()},error:function(e){t.nextAll(".loading").hide(),t.nextAll(".error").html(e.responseJSON.data).show(),t.show()}})}),l.addEventListener("click",e=>{e.preventDefault(),t.show(),t.nextAll(".loading").hide(),r.close(),r.remove()})}),jQuery("input[name='iloveimg_field_image']").on("keyup change",function(e){jQuery("#iloveimg_settings__watermark__preview img").attr("src",jQuery("input[name='iloveimg_field_image']").val())}),jQuery("#media-open").on("click",function(e){e.preventDefault(),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"ilove_img_wm_library_set_watermark_image"},success:function(e){}}),l||(l=wp.media({title:"Select or Upload Media",button:{text:"Select Watermark"},multiple:!1})).on("select",function(){var e=l.state().get("selection").first().toJSON();jQuery("input[name='iloveimg_field_image']").val(e.url),jQuery("#iloveimg_settings__watermark__preview img").attr("src",e.url),_(),t(),a()}),l.open()})}.call();
  • watermark-protect-images/trunk/assets/js/spectrum.min.js

    r3196636 r3223598  
    1 (t=>{"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports&&"object"==typeof module?module.exports=t(require("jquery")):t(jQuery)})(function(Tt,Ot){var qt={beforeShow:e,move:e,change:e,show:e,hide:e,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},Nt=[],jt=!!/msie/i.exec(window.navigator.userAgent),Et=((u=document.createElement("div").style).cssText="background-color:rgba(0,0,0,.5)",t(u.backgroundColor,"rgba")||t(u.backgroundColor,"hsla")),Lt=["<div class='sp-replacer'>","<div class='sp-preview'><div class='sp-preview-inner'></div></div>","<div class='sp-dd'>&#9660;</div>","</div>"].join(""),Kt=(()=>{var t="";if(jt)for(var e=1;e<=6;e++)t+="<div class='sp-"+e+"'></div>";return["<div class='sp-container sp-hidden'>","<div class='sp-palette-container'>","<div class='sp-palette sp-thumb sp-cf'></div>","<div class='sp-palette-button-container sp-cf'>","<button type='button' class='sp-palette-toggle'></button>","</div>","</div>","<div class='sp-picker-container'>","<div class='sp-top sp-cf'>","<div class='sp-fill'></div>","<div class='sp-top-inner'>","<div class='sp-color'>","<div class='sp-sat'>","<div class='sp-val'>","<div class='sp-dragger'></div>","</div>","</div>","</div>","<div class='sp-clear sp-clear-display'>","</div>","<div class='sp-hue'>","<div class='sp-slider'></div>",t,"</div>","</div>","<div class='sp-alpha'><div class='sp-alpha-inner'><div class='sp-alpha-handle'></div></div></div>","</div>","<div class='sp-input-container sp-cf'>","<input class='sp-input' type='text' spellcheck='false'  />","</div>","<div class='sp-initial sp-thumb sp-cf'></div>","<div class='sp-button-container sp-cf'>","<a class='sp-cancel' href='#'></a>","<button type='button' class='sp-choose'></button>","</div>","</div>","</div>"].join("")})();function t(t,e){return!!~(""+t).indexOf(e)}function Dt(t,e,r,a){for(var n=[],i=0;i<t.length;i++){var s,o,l,c=t[i];c?(o=(s=tinycolor(c)).toHsl().l<.5?"sp-thumb-el sp-thumb-dark":"sp-thumb-el sp-thumb-light",o+=tinycolor.equals(e,c)?" sp-thumb-active":"",c=s.toString(a.preferredFormat||"rgb"),l=Et?"background-color:"+s.toRgbString():"filter:"+s.toFilter(),n.push('<span title="'+c+'" data-color="'+s.toRgbString()+'" class="'+o+'"><span class="sp-thumb-inner" style="'+l+';" /></span>')):n.push(Tt("<div />").append(Tt('<span data-color="" style="background-color:transparent;" class="sp-clear-display"></span>').attr("title",a.noColorSelectedText)).html())}return"<div class='sp-cf "+r+"'>"+n.join("")+"</div>"}function P(t,e){e=e,n=t,(e=Tt.extend({},qt,e)).callbacks={move:It(e.move,n),change:It(e.change,n),show:It(e.show,n),hide:It(e.hide,n),beforeShow:It(e.beforeShow,n)};var j,E,D,I,r,o=e,l=o.flat,z=o.showSelectionPalette,a=o.localStorageKey,n=o.theme,i=o.callbacks,B=(j=N,function(){var t=this,e=arguments;D&&clearTimeout(I),!D&&I||(I=setTimeout(function(){I=null,j.apply(t,e)},E))}),c=!(E=10),L=!1,f=0,h=0,u=0,K=0,V=0,$=0,W=0,s=0,d=0,p=0,g=1,X=[],b=[],Y={},m=o.selectionPalette.slice(0),G=o.maxSelectionSize,Q="sp-dragging",v=null,y=t.ownerDocument,w=(y.body,Tt(t)),J=!1,_=Tt(Kt,y).addClass(n),U=_.find(".sp-picker-container"),Z=_.find(".sp-color"),tt=_.find(".sp-dragger"),et=_.find(".sp-hue"),rt=_.find(".sp-slider"),at=_.find(".sp-alpha-inner"),nt=_.find(".sp-alpha"),it=_.find(".sp-alpha-handle"),x=_.find(".sp-input"),st=_.find(".sp-palette"),ot=_.find(".sp-initial"),e=_.find(".sp-cancel"),t=_.find(".sp-clear"),lt=_.find(".sp-choose"),ct=_.find(".sp-palette-toggle"),ft=w.is("input"),ht=ft&&"color"===w.attr("type")&&Bt(),ut=ft&&!l,k=ut?Tt(Lt).addClass(n).addClass(o.className).addClass(o.replacerClassName):Tt([]),dt=ut?k:w,S=k.find(".sp-preview-inner"),n=o.color||ft&&w.val(),C=!1,P=o.preferredFormat,pt=!o.showButtons||o.clickoutFiresChange,A=!n,M=o.allowEmpty&&!ht;function gt(){if(o.showPaletteOnly&&(o.showPalette=!0),ct.text(o.showPaletteOnly?o.togglePaletteMoreText:o.togglePaletteLessText),o.palette){X=o.palette.slice(0),b=Tt.isArray(X[0])?X:[X],Y={};for(var t=0;t<b.length;t++)for(var e=0;e<b[t].length;e++){var r=tinycolor(b[t][e]).toRgbString();Y[r]=!0}}_.toggleClass("sp-flat",l),_.toggleClass("sp-input-disabled",!o.showInput),_.toggleClass("sp-alpha-enabled",o.showAlpha),_.toggleClass("sp-clear-enabled",M),_.toggleClass("sp-buttons-disabled",!o.showButtons),_.toggleClass("sp-palette-buttons-disabled",!o.togglePaletteOnly),_.toggleClass("sp-palette-disabled",!o.showPalette),_.toggleClass("sp-palette-only",o.showPaletteOnly),_.toggleClass("sp-initial-disabled",!o.showInitial),_.addClass(o.className).addClass(o.containerClassName),N()}function bt(){if(a&&window.localStorage){try{var t=window.localStorage[a].split(",#");1<t.length&&(delete window.localStorage[a],Tt.each(t,function(t,e){mt(e)}))}catch(t){}try{m=window.localStorage[a].split(";")}catch(t){}}}function mt(t){if(z){t=tinycolor(t).toRgbString();if(!Y[t]&&-1===Tt.inArray(t,m))for(m.push(t);m.length>G;)m.shift();if(a&&window.localStorage)try{window.localStorage[a]=m.join(";")}catch(t){}}}function vt(){var r=F(),t=Tt.map(b,function(t,e){return Dt(t,r,"sp-palette-row sp-palette-row-"+e,o)});bt(),m&&t.push(Dt((()=>{var t=[];if(o.showPalette)for(var e=0;e<m.length;e++){var r=tinycolor(m[e]).toRgbString();Y[r]||t.push(m[e])}return t.reverse().slice(0,o.maxSelectionSize)})(),r,"sp-palette-row sp-palette-row-selection",o)),st.html(t.join(""))}function yt(){var t,e;o.showInitial&&(t=C,e=F(),ot.html(Dt([t,e],e,"sp-palette-row-initial",o)))}function wt(){(h<=0||f<=0||K<=0)&&N(),L=!0,_.addClass(Q),v=null,w.trigger("dragstart.spectrum",[F()])}function _t(){L=!1,_.removeClass(Q),w.trigger("dragstop.spectrum",[F()])}function xt(){var t=x.val();null!==t&&""!==t||!M?(t=tinycolor(t)).isValid()?(H(t),q(!0)):x.addClass("sp-validation-error"):(H(null),q(!0))}function kt(){(c?R:St)()}function St(){var t=Tt.Event("beforeShow.spectrum");if(c)N();else if(w.trigger(t,[F()]),!1!==i.beforeShow(F())&&!t.isDefaultPrevented()){for(var e=0;e<Nt.length;e++)Nt[e]&&Nt[e].hide();c=!0,Tt(y).bind("keydown.spectrum",Ct),Tt(y).bind("click.spectrum",Pt),Tt(window).bind("resize.spectrum",B),k.addClass("sp-active"),_.removeClass("sp-hidden"),N(),O(),C=F(),yt(),i.show(C),w.trigger("show.spectrum",[C])}}function Ct(t){27===t.keyCode&&R()}function Pt(t){2==t.button||L||(pt?q(!0):At(),R())}function R(){c&&!l&&(c=!1,Tt(y).unbind("keydown.spectrum",Ct),Tt(y).unbind("click.spectrum",Pt),Tt(window).unbind("resize.spectrum",B),k.removeClass("sp-active"),_.addClass("sp-hidden"),i.hide(F()),w.trigger("hide.spectrum",[F()]))}function At(){H(C,!0)}function H(t,e){var r;tinycolor.equals(t,F())?O():(!t&&M?A=!0:(A=!1,t=(r=tinycolor(t)).toHsv(),s=t.h%360/360,d=t.s,p=t.v,g=t.a),O(),r&&r.isValid()&&!e&&(P=o.preferredFormat||r.getFormat()))}function F(t){return t=t||{},M&&A?null:tinycolor.fromRatio({h:s,s:d,v:p,a:Math.round(100*g)/100},{format:t.format||P})}function T(){O(),i.move(F()),w.trigger("move.spectrum",[F()])}function O(){x.removeClass("sp-validation-error"),Mt();var t,e,r,a=tinycolor.fromRatio({h:s,s:1,v:1}),a=(Z.css("background-color",a.toHexString()),P),n=F({format:a=!(g<1)||0===g&&"name"===P||"hex"!==P&&"hex3"!==P&&"hex6"!==P&&"name"!==P?P:"rgb"}),i="";S.removeClass("sp-clear-display"),S.css("background-color","transparent"),!n&&M?S.addClass("sp-clear-display"):(t=n.toHexString(),e=n.toRgbString(),Et||1===n.alpha?S.css("background-color",e):(S.css("background-color","transparent"),S.css("filter",n.toFilter())),o.showAlpha&&((e=n.toRgb()).a=0,r="linear-gradient(left, "+(e=tinycolor(e).toRgbString())+", "+t+")",jt?at.css("filter",tinycolor(e).toFilter({gradientType:1},t)):(at.css("background","-webkit-"+r),at.css("background","-moz-"+r),at.css("background","-ms-"+r),at.css("background","linear-gradient(to right, "+e+", "+t+")"))),i=n.toString(a)),o.showInput&&x.val(i),o.showPalette&&vt(),yt()}function Mt(){var t=d,e=p;M&&A?(it.hide(),rt.hide(),tt.hide()):(it.show(),rt.show(),tt.show(),t=t*f,e=h-e*h,t=Math.max(-u,Math.min(f-u,t-u)),e=Math.max(-u,Math.min(h-u,e-u)),tt.css({top:e+"px",left:t+"px"}),e=g*V,it.css({left:e-$/2+"px"}),t=s*K,rt.css({top:t-W+"px"}))}function q(t){var e=F(),r="",a=!tinycolor.equals(e,C);e&&(r=e.toString(P),mt(e)),ft&&w.val(r),t&&a&&(i.change(e),w.trigger("change",[e]))}function N(){var t,e,r,a,n,i,s;c&&(f=Z.width(),h=Z.height(),u=tt.height(),et.width(),K=et.height(),W=rt.height(),V=nt.width(),$=it.width(),l||(_.css("position","absolute"),o.offset?_.offset(o.offset):_.offset((e=dt,r=(t=_).outerWidth(),a=t.outerHeight(),n=e.outerHeight(),t=t[0].ownerDocument,i=t.documentElement,s=i.clientWidth+Tt(t).scrollLeft(),i=i.clientHeight+Tt(t).scrollTop(),(t=e.offset()).top+=n,t.left-=Math.min(t.left,s<t.left+r&&r<s?Math.abs(t.left+r-s):0),t.top-=Math.min(t.top,t.top+a>i&&a<i?Math.abs(+(a+n)):0),t))),Mt(),o.showPalette&&vt(),w.trigger("reflow.spectrum"))}function Rt(){R(),J=!0,w.attr("disabled",!0),dt.addClass("sp-disabled")}function Ht(t){return t.data&&t.data.ignore?(H(Tt(t.target).closest(".sp-thumb-el").data("color")),T()):(H(Tt(t.target).closest(".sp-thumb-el").data("color")),T(),q(!0),o.hideAfterPaletteSelect&&R()),!1}jt&&_.find("*:not(input)").attr("unselectable","on"),gt(),ut&&w.after(k).hide(),M||t.hide(),l?w.after(_).hide():(r=1!==(r="parent"===o.appendTo?w.parent():Tt(o.appendTo)).length?Tt("body"):r).append(_),bt(),dt.bind("click.spectrum touchstart.spectrum",function(t){J||kt(),t.stopPropagation(),Tt(t.target).is("input")||t.preventDefault()}),!w.is(":disabled")&&!0!==o.disabled||Rt(),_.click(Vt),x.change(xt),x.bind("paste",function(){setTimeout(xt,1)}),x.keydown(function(t){13==t.keyCode&&xt()}),e.text(o.cancelText),e.bind("click.spectrum",function(t){t.stopPropagation(),t.preventDefault(),At(),R()}),t.attr("title",o.clearText),t.bind("click.spectrum",function(t){t.stopPropagation(),t.preventDefault(),A=!0,T(),l&&q(!0)}),lt.text(o.chooseText),lt.bind("click.spectrum",function(t){t.stopPropagation(),t.preventDefault(),jt&&x.is(":focus")&&x.trigger("change"),x.hasClass("sp-validation-error")||(q(!0),R())}),ct.text(o.showPaletteOnly?o.togglePaletteMoreText:o.togglePaletteLessText),ct.bind("click.spectrum",function(t){t.stopPropagation(),t.preventDefault(),o.showPaletteOnly=!o.showPaletteOnly,o.showPaletteOnly||l||_.css("left","-="+(U.outerWidth(!0)+5)),gt()}),zt(nt,function(t,e,r){g=t/V,A=!1,r.shiftKey&&(g=Math.round(10*g)/10),T()},wt,_t),zt(et,function(t,e){s=parseFloat(e/K),A=!1,o.showAlpha||(g=1),T()},wt,_t),zt(Z,function(t,e,r){r.shiftKey?v||(r=d*f,a=h-p*h,r=Math.abs(t-r)>Math.abs(e-a),v=r?"x":"y"):v=null;var a=!v||"x"===v,r=!v||"y"===v;a&&(d=parseFloat(t/f)),r&&(p=parseFloat((h-e)/h)),A=!1,o.showAlpha||(g=1),T()},wt,_t),n?(H(n),O(),P=o.preferredFormat||tinycolor(n).format,mt(n)):O(),l&&St(),r=jt?"mousedown.spectrum":"click.spectrum touchstart.spectrum",st.delegate(".sp-thumb-el",r,Ht),ot.delegate(".sp-thumb-el:nth-child(1)",r,{ignore:!0},Ht);var Ft={show:St,hide:R,toggle:kt,reflow:N,option:function(t,e){return t===Ot?Tt.extend({},o):e===Ot?o[t]:(o[t]=e,"preferredFormat"===t&&(P=o.preferredFormat),void gt())},enable:function(){J=!1,w.attr("disabled",!1),dt.removeClass("sp-disabled")},disable:Rt,offset:function(t){o.offset=t,N()},set:function(t){H(t),q()},get:F,destroy:function(){w.show(),dt.unbind("click.spectrum touchstart.spectrum"),_.remove(),k.remove(),Nt[Ft.id]=null},container:_};return Ft.id=Nt.push(Ft)-1,Ft}function e(){}function Vt(t){t.stopPropagation()}function It(t,e){var r=Array.prototype.slice,a=r.call(arguments,2);return function(){return t.apply(e,a.concat(r.call(arguments)))}}function zt(a,n,e,t){n=n||function(){},e=e||function(){},t=t||function(){};var i=document,s=!1,o={},l=0,c=0,f="ontouchstart"in window,r={};function h(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),t.returnValue=!1}function u(t){if(s){if(jt&&i.documentMode<9&&!t.button)return d();var e=t.originalEvent&&t.originalEvent.touches&&t.originalEvent.touches[0],r=e&&e.pageX||t.pageX,e=e&&e.pageY||t.pageY,r=Math.max(0,Math.min(r-o.left,c)),e=Math.max(0,Math.min(e-o.top,l));f&&h(t),n.apply(a,[r,e,t])}}function d(){s&&(Tt(i).unbind(r),Tt(i.body).removeClass("sp-dragging"),setTimeout(function(){t.apply(a,arguments)},0)),s=!1}r.selectstart=h,r.dragstart=h,r["touchmove mousemove"]=u,r["touchend mouseup"]=d,Tt(a).bind("touchstart mousedown",function(t){(t.which?3==t.which:2==t.button)||s||!1!==e.apply(a,arguments)&&(s=!0,l=Tt(a).height(),c=Tt(a).width(),o=Tt(a).offset(),Tt(i).bind(r),Tt(i.body).addClass("sp-dragging"),u(t),h(t))})}function Bt(){return Tt.fn.spectrum.inputTypeColorSupport()}var i,s,a,o,n,c,f,r,l,h,u,d,p,g="spectrum.id";function b(t,e){var r;return e=e||{},(t=t||"")instanceof b?t:this instanceof b?(r=(t=>{var e={r:0,g:0,b:0},r=1,a=!1,n=!1;return"string"==typeof t&&(t=(t=>{t=t.replace(i,"").replace(s,"").toLowerCase();var e,r=!1;if(l[t])t=l[t],r=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(e=p.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=p.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=p.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=p.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=p.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=p.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=p.hex8.exec(t))?{a:(t=>k(t)/255)(e[1]),r:k(e[2]),g:k(e[3]),b:k(e[4]),format:r?"name":"hex8"}:(e=p.hex6.exec(t))?{r:k(e[1]),g:k(e[2]),b:k(e[3]),format:r?"name":"hex"}:!!(e=p.hex3.exec(t))&&{r:k(e[1]+""+e[1]),g:k(e[2]+""+e[2]),b:k(e[3]+""+e[3]),format:r?"name":"hex"}})(t)),r=z(r="object"==typeof t&&(t.hasOwnProperty("r")&&t.hasOwnProperty("g")&&t.hasOwnProperty("b")?(e=((t,e,r)=>({r:255*_(t,255),g:255*_(e,255),b:255*_(r,255)}))(t.r,t.g,t.b),a=!0,n="%"===String(t.r).substr(-1)?"prgb":"rgb"):t.hasOwnProperty("h")&&t.hasOwnProperty("s")&&t.hasOwnProperty("v")?(t.s=C(t.s),t.v=C(t.v),e=((t,e,r)=>{t=6*_(t,360),e=_(e,100),r=_(r,100);var a=o.floor(t),n=r*(1-e),i=r*(1-(t=t-a)*e);return{r:255*[r,i,n,n,t=r*(1-(1-t)*e),r][e=a%6],g:255*[t,r,r,i,n,n][e],b:255*[n,n,t,r,r,i][e]}})(t.h,t.s,t.v),a=!0,n="hsv"):t.hasOwnProperty("h")&&t.hasOwnProperty("s")&&t.hasOwnProperty("l")&&(t.s=C(t.s),t.l=C(t.l),e=((t,e,r)=>{var a,n,i;function s(t,e,r){return r<0&&(r+=1),1<r&&--r,r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}return t=_(t,360),e=_(e,100),r=_(r,100),0===e?a=n=i=r:(a=s(e=2*r-(r=r<.5?r*(1+e):r+e-r*e),r,t+1/3),n=s(e,r,t),i=s(e,r,t-1/3)),{r:255*a,g:255*n,b:255*i}})(t.h,t.s,t.l),a=!0,n="hsl"),t.hasOwnProperty("a"))?t.a:r),{ok:a,format:t.format||n,r:c(255,f(e.r,0)),g:c(255,f(e.g,0)),b:c(255,f(e.b,0)),a:r}})(t),this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=n(100*this._a)/100,this._format=e.format||r.format,this._gradientType=e.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=r.ok,void(this._tc_id=a++)):new b(t,e)}function m(t,e,r){t=_(t,255),e=_(e,255),r=_(r,255);var a,n=f(t,e,r),i=c(t,e,r),s=(n+i)/2;if(n==i)a=l=0;else{var o=n-i,l=.5<s?o/(2-n-i):o/(n+i);switch(n){case t:a=(e-r)/o+(e<r?6:0);break;case e:a=(r-t)/o+2;break;case r:a=(t-e)/o+4}a/=6}return{h:a,s:l,l:s}}function v(t,e,r){t=_(t,255),e=_(e,255),r=_(r,255);var a,n=f(t,e,r),i=c(t,e,r),s=n,o=n-i,l=0===n?0:o/n;if(n==i)a=0;else{switch(n){case t:a=(e-r)/o+(e<r?6:0);break;case e:a=(r-t)/o+2;break;case r:a=(t-e)/o+4}a/=6}return{h:a,s:l,v:s}}function y(t,e,r,a){t=[S(n(t).toString(16)),S(n(e).toString(16)),S(n(r).toString(16))];return a&&t[0].charAt(0)==t[0].charAt(1)&&t[1].charAt(0)==t[1].charAt(1)&&t[2].charAt(0)==t[2].charAt(1)?t[0].charAt(0)+t[1].charAt(0)+t[2].charAt(0):t.join("")}function w(t,e,r,a){return[S(Math.round(255*parseFloat(a)).toString(16)),S(n(t).toString(16)),S(n(e).toString(16)),S(n(r).toString(16))].join("")}function A(t,e){e=0===e?0:e||10;t=b(t).toHsl();return t.s-=e/100,t.s=x(t.s),b(t)}function M(t,e){e=0===e?0:e||10;t=b(t).toHsl();return t.s+=e/100,t.s=x(t.s),b(t)}function R(t){return b(t).desaturate(100)}function H(t,e){e=0===e?0:e||10;t=b(t).toHsl();return t.l+=e/100,t.l=x(t.l),b(t)}function F(t,e){e=0===e?0:e||10;t=b(t).toRgb();return t.r=f(0,c(255,t.r-n(-e/100*255))),t.g=f(0,c(255,t.g-n(-e/100*255))),t.b=f(0,c(255,t.b-n(-e/100*255))),b(t)}function T(t,e){e=0===e?0:e||10;t=b(t).toHsl();return t.l-=e/100,t.l=x(t.l),b(t)}function O(t,e){t=b(t).toHsl(),e=(n(t.h)+e)%360;return t.h=e<0?360+e:e,b(t)}function q(t){t=b(t).toHsl();return t.h=(t.h+180)%360,b(t)}function N(t){var e=b(t).toHsl(),r=e.h;return[b(t),b({h:(r+120)%360,s:e.s,l:e.l}),b({h:(r+240)%360,s:e.s,l:e.l})]}function j(t){var e=b(t).toHsl(),r=e.h;return[b(t),b({h:(r+90)%360,s:e.s,l:e.l}),b({h:(r+180)%360,s:e.s,l:e.l}),b({h:(r+270)%360,s:e.s,l:e.l})]}function E(t){var e=b(t).toHsl(),r=e.h;return[b(t),b({h:(r+72)%360,s:e.s,l:e.l}),b({h:(r+216)%360,s:e.s,l:e.l})]}function D(t,e,r){e=e||6,r=r||30;var a=b(t).toHsl(),n=360/r,i=[b(t)];for(a.h=(a.h-(n*e>>1)+720)%360;--e;)a.h=(a.h+n)%360,i.push(b(a));return i}function I(t,e){e=e||6;for(var t=b(t).toHsv(),r=t.h,a=t.s,n=t.v,i=[],s=1/e;e--;)i.push(b({h:r,s:a,v:n})),n=(n+s)%1;return i}function z(t){return t=parseFloat(t),t=isNaN(t)||t<0||1<t?1:t}function _(t,e){"string"==typeof(r=t)&&-1!=r.indexOf(".")&&1===parseFloat(r)&&(t="100%");var r="string"==typeof(r=t)&&-1!=r.indexOf("%");return t=c(e,f(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),o.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function x(t){return c(1,f(0,t))}function k(t){return parseInt(t,16)}function S(t){return 1==t.length?"0"+t:""+t}function C(t){return t=t<=1?100*t+"%":t}Tt.fn.spectrum=function(r,t){var a,n;return"string"==typeof r?(a=this,n=Array.prototype.slice.call(arguments,1),this.each(function(){var t=Nt[Tt(this).data(g)];if(t){var e=t[r];if(!e)throw new Error("Spectrum: no such method: '"+r+"'");"get"==r?a=t.get():"container"==r?a=t.container:"option"==r?a=t.option.apply(t,n):"destroy"==r?(t.destroy(),Tt(this).removeData(g)):e.apply(t,n)}}),a):this.spectrum("destroy").each(function(){var t=P(this,Tt.extend({},r,Tt(this).data()));Tt(this).data(g,t.id)})},Tt.fn.spectrum.load=!0,Tt.fn.spectrum.loadOpts={},Tt.fn.spectrum.draggable=zt,Tt.fn.spectrum.defaults=qt,Tt.fn.spectrum.inputTypeColorSupport=function t(){var e;return void 0===t._cachedResult&&(e=Tt("<input type='color'/>")[0],t._cachedResult="color"===e.type&&""!==e.value),t._cachedResult},Tt.spectrum={},Tt.spectrum.localization={},Tt.spectrum.palettes={},Tt.fn.spectrum.processNativeColorInputs=function(){var t=Tt("input[type=color]");t.length&&!Bt()&&t.spectrum({preferredFormat:"hex6"})},i=/^[\s,#]+/,s=/\s+$/,a=0,o=Math,n=o.round,c=o.min,f=o.max,r=o.random,b.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=z(t),this._roundA=n(100*this._a)/100,this},toHsv:function(){var t=v(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=v(this._r,this._g,this._b),e=n(360*t.h),r=n(100*t.s),t=n(100*t.v);return 1==this._a?"hsv("+e+", "+r+"%, "+t+"%)":"hsva("+e+", "+r+"%, "+t+"%, "+this._roundA+")"},toHsl:function(){var t=m(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=m(this._r,this._g,this._b),e=n(360*t.h),r=n(100*t.s),t=n(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+t+"%)":"hsla("+e+", "+r+"%, "+t+"%, "+this._roundA+")"},toHex:function(t){return y(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(){return w(this._r,this._g,this._b,this._a)},toHex8String:function(){return"#"+this.toHex8()},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(100*_(this._r,255))+"%",g:n(100*_(this._g,255))+"%",b:n(100*_(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+n(100*_(this._r,255))+"%, "+n(100*_(this._g,255))+"%, "+n(100*_(this._b,255))+"%)":"rgba("+n(100*_(this._r,255))+"%, "+n(100*_(this._g,255))+"%, "+n(100*_(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&h[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var e="#"+w(this._r,this._g,this._b,this._a),r=e;return"progid:DXImageTransform.Microsoft.gradient("+(this._gradientType?"GradientType = 1, ":"")+"startColorstr="+e+",endColorstr="+(r=t?b(t).toHex8String():r)+")"},toString:function(t){var e=!!t,r=(t=t||this._format,!1),a=this._a<1&&0<=this._a;return e||!a||"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()),(r="hsv"===t?this.toHsvString():r)||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},_applyModification:function(t,e){t=t.apply(null,[this].concat([].slice.call(e)));return this._r=t._r,this._g=t._g,this._b=t._b,this.setAlpha(t._a),this},lighten:function(){return this._applyModification(H,arguments)},brighten:function(){return this._applyModification(F,arguments)},darken:function(){return this._applyModification(T,arguments)},desaturate:function(){return this._applyModification(A,arguments)},saturate:function(){return this._applyModification(M,arguments)},greyscale:function(){return this._applyModification(R,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(D,arguments)},complement:function(){return this._applyCombination(q,arguments)},monochromatic:function(){return this._applyCombination(I,arguments)},splitcomplement:function(){return this._applyCombination(E,arguments)},triad:function(){return this._applyCombination(N,arguments)},tetrad:function(){return this._applyCombination(j,arguments)}},b.fromRatio=function(t,e){if("object"==typeof t){var r,a={};for(r in t)t.hasOwnProperty(r)&&(a[r]="a"===r?t[r]:C(t[r]));t=a}return b(t,e)},b.equals=function(t,e){return!(!t||!e)&&b(t).toRgbString()==b(e).toRgbString()},b.random=function(){return b.fromRatio({r:r(),g:r(),b:r()})},b.mix=function(t,e,r){r=0===r?0:r||50;var t=b(t).toRgb(),e=b(e).toRgb(),r=r/100,a=2*r-1,n=e.a-t.a,a=a*n==-1?a:(a+n)/(1+a*n),n=1-(a=(a+1)/2),a={r:e.r*a+t.r*n,g:e.g*a+t.g*n,b:e.b*a+t.b*n,a:e.a*r+t.a*(1-r)};return b(a)},b.readability=function(t,e){var t=b(t),e=b(e),r=t.toRgb(),a=e.toRgb(),t=t.getBrightness(),e=e.getBrightness(),r=Math.max(r.r,a.r)-Math.min(r.r,a.r)+Math.max(r.g,a.g)-Math.min(r.g,a.g)+Math.max(r.b,a.b)-Math.min(r.b,a.b);return{brightness:Math.abs(t-e),color:r}},b.isReadable=function(t,e){t=b.readability(t,e);return 125<t.brightness&&500<t.color},b.mostReadable=function(t,e){for(var r=null,a=0,n=!1,i=0;i<e.length;i++){var s=b.readability(t,e[i]),o=125<s.brightness&&500<s.color,s=s.brightness/125*3+s.color/500;(o&&!n||o&&n&&a<s||!o&&!n&&a<s)&&(n=o,a=s,r=b(e[i]))}return r},l=b.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"},h=b.hexNames=(t=>{var e,r={};for(e in t)t.hasOwnProperty(e)&&(r[t[e]]=e);return r})(l),d="[\\s|\\(]+("+(u="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+u+")[,|\\s]+("+u+")\\s*\\)?",u="[\\s|\\(]+("+u+")[,|\\s]+("+u+")[,|\\s]+("+u+")[,|\\s]+("+u+")\\s*\\)?",p={rgb:new RegExp("rgb"+d),rgba:new RegExp("rgba"+u),hsl:new RegExp("hsl"+d),hsla:new RegExp("hsla"+u),hsv:new RegExp("hsv"+d),hsva:new RegExp("hsva"+u),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=b,Tt(function(){Tt.fn.spectrum.load&&Tt.fn.spectrum.processNativeColorInputs()})});
     1!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(Tt,Ot){"use strict";var qt={beforeShow:e,move:e,change:e,show:e,hide:e,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},Nt=[],jt=!!/msie/i.exec(window.navigator.userAgent),Et=((h=document.createElement("div").style).cssText="background-color:rgba(0,0,0,.5)",t(h.backgroundColor,"rgba")||t(h.backgroundColor,"hsla")),Lt=["<div class='sp-replacer'>","<div class='sp-preview'><div class='sp-preview-inner'></div></div>","<div class='sp-dd'>&#9660;</div>","</div>"].join(""),Kt=function(){var t="";if(jt)for(var e=1;e<=6;e++)t+="<div class='sp-"+e+"'></div>";return["<div class='sp-container sp-hidden'>","<div class='sp-palette-container'>","<div class='sp-palette sp-thumb sp-cf'></div>","<div class='sp-palette-button-container sp-cf'>","<button type='button' class='sp-palette-toggle'></button>","</div>","</div>","<div class='sp-picker-container'>","<div class='sp-top sp-cf'>","<div class='sp-fill'></div>","<div class='sp-top-inner'>","<div class='sp-color'>","<div class='sp-sat'>","<div class='sp-val'>","<div class='sp-dragger'></div>","</div>","</div>","</div>","<div class='sp-clear sp-clear-display'>","</div>","<div class='sp-hue'>","<div class='sp-slider'></div>",t,"</div>","</div>","<div class='sp-alpha'><div class='sp-alpha-inner'><div class='sp-alpha-handle'></div></div></div>","</div>","<div class='sp-input-container sp-cf'>","<input class='sp-input' type='text' spellcheck='false'  />","</div>","<div class='sp-initial sp-thumb sp-cf'></div>","<div class='sp-button-container sp-cf'>","<a class='sp-cancel' href='#'></a>","<button type='button' class='sp-choose'></button>","</div>","</div>","</div>"].join("")}();function t(t,e){return!!~(""+t).indexOf(e)}function Dt(t,e,r,n){for(var a=[],i=0;i<t.length;i++){var o,s,l,c=t[i];c?(s=(o=tinycolor(c)).toHsl().l<.5?"sp-thumb-el sp-thumb-dark":"sp-thumb-el sp-thumb-light",s+=tinycolor.equals(e,c)?" sp-thumb-active":"",c=o.toString(n.preferredFormat||"rgb"),l=Et?"background-color:"+o.toRgbString():"filter:"+o.toFilter(),a.push('<span title="'+c+'" data-color="'+o.toRgbString()+'" class="'+s+'"><span class="sp-thumb-inner" style="'+l+';" /></span>')):a.push(Tt("<div />").append(Tt('<span data-color="" style="background-color:transparent;" class="sp-clear-display"></span>').attr("title",n.noColorSelectedText)).html())}return"<div class='sp-cf "+r+"'>"+a.join("")+"</div>"}function P(t,e){e=e,a=t,(e=Tt.extend({},qt,e)).callbacks={move:It(e.move,a),change:It(e.change,a),show:It(e.show,a),hide:It(e.hide,a),beforeShow:It(e.beforeShow,a)};var j,E,D,I,r,s=e,l=s.flat,z=s.showSelectionPalette,n=s.localStorageKey,a=s.theme,i=s.callbacks,B=(j=N,function(){var t=this,e=arguments;D&&clearTimeout(I),!D&&I||(I=setTimeout(function(){I=null,j.apply(t,e)},E))}),c=!(E=10),L=!1,f=0,u=0,h=0,K=0,V=0,$=0,W=0,o=0,d=0,p=0,g=1,X=[],b=[],Y={},m=s.selectionPalette.slice(0),G=s.maxSelectionSize,Q="sp-dragging",v=null,y=t.ownerDocument,w=(y.body,Tt(t)),J=!1,_=Tt(Kt,y).addClass(a),U=_.find(".sp-picker-container"),Z=_.find(".sp-color"),tt=_.find(".sp-dragger"),et=_.find(".sp-hue"),rt=_.find(".sp-slider"),nt=_.find(".sp-alpha-inner"),at=_.find(".sp-alpha"),it=_.find(".sp-alpha-handle"),x=_.find(".sp-input"),ot=_.find(".sp-palette"),st=_.find(".sp-initial"),e=_.find(".sp-cancel"),t=_.find(".sp-clear"),lt=_.find(".sp-choose"),ct=_.find(".sp-palette-toggle"),ft=w.is("input"),ut=ft&&"color"===w.attr("type")&&Bt(),ht=ft&&!l,k=ht?Tt(Lt).addClass(a).addClass(s.className).addClass(s.replacerClassName):Tt([]),dt=ht?k:w,S=k.find(".sp-preview-inner"),a=s.color||ft&&w.val(),C=!1,P=s.preferredFormat,pt=!s.showButtons||s.clickoutFiresChange,A=!a,M=s.allowEmpty&&!ut;function gt(){if(s.showPaletteOnly&&(s.showPalette=!0),ct.text(s.showPaletteOnly?s.togglePaletteMoreText:s.togglePaletteLessText),s.palette){X=s.palette.slice(0),b=Tt.isArray(X[0])?X:[X],Y={};for(var t=0;t<b.length;t++)for(var e=0;e<b[t].length;e++){var r=tinycolor(b[t][e]).toRgbString();Y[r]=!0}}_.toggleClass("sp-flat",l),_.toggleClass("sp-input-disabled",!s.showInput),_.toggleClass("sp-alpha-enabled",s.showAlpha),_.toggleClass("sp-clear-enabled",M),_.toggleClass("sp-buttons-disabled",!s.showButtons),_.toggleClass("sp-palette-buttons-disabled",!s.togglePaletteOnly),_.toggleClass("sp-palette-disabled",!s.showPalette),_.toggleClass("sp-palette-only",s.showPaletteOnly),_.toggleClass("sp-initial-disabled",!s.showInitial),_.addClass(s.className).addClass(s.containerClassName),N()}function bt(){if(n&&window.localStorage){try{var t=window.localStorage[n].split(",#");1<t.length&&(delete window.localStorage[n],Tt.each(t,function(t,e){mt(e)}))}catch(t){}try{m=window.localStorage[n].split(";")}catch(t){}}}function mt(t){if(z){t=tinycolor(t).toRgbString();if(!Y[t]&&-1===Tt.inArray(t,m))for(m.push(t);m.length>G;)m.shift();if(n&&window.localStorage)try{window.localStorage[n]=m.join(";")}catch(t){}}}function vt(){var r=F(),t=Tt.map(b,function(t,e){return Dt(t,r,"sp-palette-row sp-palette-row-"+e,s)});bt(),m&&t.push(Dt(function(){var t=[];if(s.showPalette)for(var e=0;e<m.length;e++){var r=tinycolor(m[e]).toRgbString();Y[r]||t.push(m[e])}return t.reverse().slice(0,s.maxSelectionSize)}(),r,"sp-palette-row sp-palette-row-selection",s)),ot.html(t.join(""))}function yt(){var t,e;s.showInitial&&(t=C,e=F(),st.html(Dt([t,e],e,"sp-palette-row-initial",s)))}function wt(){(u<=0||f<=0||K<=0)&&N(),L=!0,_.addClass(Q),v=null,w.trigger("dragstart.spectrum",[F()])}function _t(){L=!1,_.removeClass(Q),w.trigger("dragstop.spectrum",[F()])}function xt(){var t=x.val();null!==t&&""!==t||!M?(t=tinycolor(t)).isValid()?(H(t),q(!0)):x.addClass("sp-validation-error"):(H(null),q(!0))}function kt(){(c?R:St)()}function St(){var t=Tt.Event("beforeShow.spectrum");if(c)N();else if(w.trigger(t,[F()]),!1!==i.beforeShow(F())&&!t.isDefaultPrevented()){for(var e=0;e<Nt.length;e++)Nt[e]&&Nt[e].hide();c=!0,Tt(y).bind("keydown.spectrum",Ct),Tt(y).bind("click.spectrum",Pt),Tt(window).bind("resize.spectrum",B),k.addClass("sp-active"),_.removeClass("sp-hidden"),N(),O(),C=F(),yt(),i.show(C),w.trigger("show.spectrum",[C])}}function Ct(t){27===t.keyCode&&R()}function Pt(t){2==t.button||L||(pt?q(!0):At(),R())}function R(){c&&!l&&(c=!1,Tt(y).unbind("keydown.spectrum",Ct),Tt(y).unbind("click.spectrum",Pt),Tt(window).unbind("resize.spectrum",B),k.removeClass("sp-active"),_.addClass("sp-hidden"),i.hide(F()),w.trigger("hide.spectrum",[F()]))}function At(){H(C,!0)}function H(t,e){var r;tinycolor.equals(t,F())?O():(!t&&M?A=!0:(A=!1,t=(r=tinycolor(t)).toHsv(),o=t.h%360/360,d=t.s,p=t.v,g=t.a),O(),r&&r.isValid()&&!e&&(P=s.preferredFormat||r.getFormat()))}function F(t){return t=t||{},M&&A?null:tinycolor.fromRatio({h:o,s:d,v:p,a:Math.round(100*g)/100},{format:t.format||P})}function T(){O(),i.move(F()),w.trigger("move.spectrum",[F()])}function O(){x.removeClass("sp-validation-error"),Mt();var t,e,r,n=tinycolor.fromRatio({h:o,s:1,v:1}),n=(Z.css("background-color",n.toHexString()),P),a=F({format:n=!(g<1)||0===g&&"name"===P||"hex"!==P&&"hex3"!==P&&"hex6"!==P&&"name"!==P?P:"rgb"}),i="";S.removeClass("sp-clear-display"),S.css("background-color","transparent"),!a&&M?S.addClass("sp-clear-display"):(t=a.toHexString(),e=a.toRgbString(),Et||1===a.alpha?S.css("background-color",e):(S.css("background-color","transparent"),S.css("filter",a.toFilter())),s.showAlpha&&((e=a.toRgb()).a=0,r="linear-gradient(left, "+(e=tinycolor(e).toRgbString())+", "+t+")",jt?nt.css("filter",tinycolor(e).toFilter({gradientType:1},t)):(nt.css("background","-webkit-"+r),nt.css("background","-moz-"+r),nt.css("background","-ms-"+r),nt.css("background","linear-gradient(to right, "+e+", "+t+")"))),i=a.toString(n)),s.showInput&&x.val(i),s.showPalette&&vt(),yt()}function Mt(){var t=d,e=p;M&&A?(it.hide(),rt.hide(),tt.hide()):(it.show(),rt.show(),tt.show(),t=t*f,e=u-e*u,t=Math.max(-h,Math.min(f-h,t-h)),e=Math.max(-h,Math.min(u-h,e-h)),tt.css({top:e+"px",left:t+"px"}),e=g*V,it.css({left:e-$/2+"px"}),t=o*K,rt.css({top:t-W+"px"}))}function q(t){var e=F(),r="",n=!tinycolor.equals(e,C);e&&(r=e.toString(P),mt(e)),ft&&w.val(r),t&&n&&(i.change(e),w.trigger("change",[e]))}function N(){var t,e,r,n,a,i,o;c&&(f=Z.width(),u=Z.height(),h=tt.height(),et.width(),K=et.height(),W=rt.height(),V=at.width(),$=it.width(),l||(_.css("position","absolute"),s.offset?_.offset(s.offset):_.offset((e=dt,r=(t=_).outerWidth(),n=t.outerHeight(),a=e.outerHeight(),t=t[0].ownerDocument,i=t.documentElement,o=i.clientWidth+Tt(t).scrollLeft(),i=i.clientHeight+Tt(t).scrollTop(),(t=e.offset()).top+=a,t.left-=Math.min(t.left,t.left+r>o&&r<o?Math.abs(t.left+r-o):0),t.top-=Math.min(t.top,t.top+n>i&&n<i?Math.abs(+(n+a)):0),t))),Mt(),s.showPalette&&vt(),w.trigger("reflow.spectrum"))}function Rt(){R(),J=!0,w.attr("disabled",!0),dt.addClass("sp-disabled")}function Ht(t){return t.data&&t.data.ignore?(H(Tt(t.target).closest(".sp-thumb-el").data("color")),T()):(H(Tt(t.target).closest(".sp-thumb-el").data("color")),T(),q(!0),s.hideAfterPaletteSelect&&R()),!1}jt&&_.find("*:not(input)").attr("unselectable","on"),gt(),ht&&w.after(k).hide(),M||t.hide(),l?w.after(_).hide():(r=1!==(r="parent"===s.appendTo?w.parent():Tt(s.appendTo)).length?Tt("body"):r).append(_),bt(),dt.bind("click.spectrum touchstart.spectrum",function(t){J||kt(),t.stopPropagation(),Tt(t.target).is("input")||t.preventDefault()}),!w.is(":disabled")&&!0!==s.disabled||Rt(),_.click(Vt),x.change(xt),x.bind("paste",function(){setTimeout(xt,1)}),x.keydown(function(t){13==t.keyCode&&xt()}),e.text(s.cancelText),e.bind("click.spectrum",function(t){t.stopPropagation(),t.preventDefault(),At(),R()}),t.attr("title",s.clearText),t.bind("click.spectrum",function(t){t.stopPropagation(),t.preventDefault(),A=!0,T(),l&&q(!0)}),lt.text(s.chooseText),lt.bind("click.spectrum",function(t){t.stopPropagation(),t.preventDefault(),jt&&x.is(":focus")&&x.trigger("change"),x.hasClass("sp-validation-error")||(q(!0),R())}),ct.text(s.showPaletteOnly?s.togglePaletteMoreText:s.togglePaletteLessText),ct.bind("click.spectrum",function(t){t.stopPropagation(),t.preventDefault(),s.showPaletteOnly=!s.showPaletteOnly,s.showPaletteOnly||l||_.css("left","-="+(U.outerWidth(!0)+5)),gt()}),zt(at,function(t,e,r){g=t/V,A=!1,r.shiftKey&&(g=Math.round(10*g)/10),T()},wt,_t),zt(et,function(t,e){o=parseFloat(e/K),A=!1,s.showAlpha||(g=1),T()},wt,_t),zt(Z,function(t,e,r){r.shiftKey?v||(r=d*f,n=u-p*u,r=Math.abs(t-r)>Math.abs(e-n),v=r?"x":"y"):v=null;var n=!v||"x"===v,r=!v||"y"===v;n&&(d=parseFloat(t/f)),r&&(p=parseFloat((u-e)/u)),A=!1,s.showAlpha||(g=1),T()},wt,_t),a?(H(a),O(),P=s.preferredFormat||tinycolor(a).format,mt(a)):O(),l&&St(),r=jt?"mousedown.spectrum":"click.spectrum touchstart.spectrum",ot.delegate(".sp-thumb-el",r,Ht),st.delegate(".sp-thumb-el:nth-child(1)",r,{ignore:!0},Ht);var Ft={show:St,hide:R,toggle:kt,reflow:N,option:function(t,e){return t===Ot?Tt.extend({},s):e===Ot?s[t]:(s[t]=e,"preferredFormat"===t&&(P=s.preferredFormat),void gt())},enable:function(){J=!1,w.attr("disabled",!1),dt.removeClass("sp-disabled")},disable:Rt,offset:function(t){s.offset=t,N()},set:function(t){H(t),q()},get:F,destroy:function(){w.show(),dt.unbind("click.spectrum touchstart.spectrum"),_.remove(),k.remove(),Nt[Ft.id]=null},container:_};return Ft.id=Nt.push(Ft)-1,Ft}function e(){}function Vt(t){t.stopPropagation()}function It(t,e){var r=Array.prototype.slice,n=r.call(arguments,2);return function(){return t.apply(e,n.concat(r.call(arguments)))}}function zt(n,a,e,t){a=a||function(){},e=e||function(){},t=t||function(){};var i=document,o=!1,s={},l=0,c=0,f="ontouchstart"in window,r={};function u(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),t.returnValue=!1}function h(t){if(o){if(jt&&i.documentMode<9&&!t.button)return d();var e=t.originalEvent&&t.originalEvent.touches&&t.originalEvent.touches[0],r=e&&e.pageX||t.pageX,e=e&&e.pageY||t.pageY,r=Math.max(0,Math.min(r-s.left,c)),e=Math.max(0,Math.min(e-s.top,l));f&&u(t),a.apply(n,[r,e,t])}}function d(){o&&(Tt(i).unbind(r),Tt(i.body).removeClass("sp-dragging"),setTimeout(function(){t.apply(n,arguments)},0)),o=!1}r.selectstart=u,r.dragstart=u,r["touchmove mousemove"]=h,r["touchend mouseup"]=d,Tt(n).bind("touchstart mousedown",function(t){(t.which?3==t.which:2==t.button)||o||!1!==e.apply(n,arguments)&&(o=!0,l=Tt(n).height(),c=Tt(n).width(),s=Tt(n).offset(),Tt(i).bind(r),Tt(i.body).addClass("sp-dragging"),h(t),u(t))})}function Bt(){return Tt.fn.spectrum.inputTypeColorSupport()}var i,o,n,s,a,c,f,r,l,u,h,d,p,g="spectrum.id";function b(t,e){var r;return e=e||{},(t=t||"")instanceof b?t:this instanceof b?(r=function(t){var e={r:0,g:0,b:0},r=1,n=!1,a=!1;"string"==typeof t&&(t=function(t){t=t.replace(i,"").replace(o,"").toLowerCase();var e,r=!1;if(l[t])t=l[t],r=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=p.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=p.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=p.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=p.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=p.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=p.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=p.hex8.exec(t))return{a:function(t){return k(t)/255}(e[1]),r:k(e[2]),g:k(e[3]),b:k(e[4]),format:r?"name":"hex8"};if(e=p.hex6.exec(t))return{r:k(e[1]),g:k(e[2]),b:k(e[3]),format:r?"name":"hex"};if(e=p.hex3.exec(t))return{r:k(e[1]+""+e[1]),g:k(e[2]+""+e[2]),b:k(e[3]+""+e[3]),format:r?"name":"hex"};return!1}(t));"object"==typeof t&&(t.hasOwnProperty("r")&&t.hasOwnProperty("g")&&t.hasOwnProperty("b")?(e=function(t,e,r){return{r:255*_(t,255),g:255*_(e,255),b:255*_(r,255)}}(t.r,t.g,t.b),n=!0,a="%"===String(t.r).substr(-1)?"prgb":"rgb"):t.hasOwnProperty("h")&&t.hasOwnProperty("s")&&t.hasOwnProperty("v")?(t.s=C(t.s),t.v=C(t.v),e=function(t,e,r){t=6*_(t,360),e=_(e,100),r=_(r,100);var n=s.floor(t),t=t-n,a=r*(1-e),i=r*(1-t*e),t=r*(1-(1-t)*e),e=n%6;return{r:255*[r,i,a,a,t,r][e],g:255*[t,r,r,i,a,a][e],b:255*[a,a,t,r,r,i][e]}}(t.h,t.s,t.v),n=!0,a="hsv"):t.hasOwnProperty("h")&&t.hasOwnProperty("s")&&t.hasOwnProperty("l")&&(t.s=C(t.s),t.l=C(t.l),e=function(t,e,r){var n,a,i;function o(t,e,r){return r<0&&(r+=1),1<r&&--r,r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}t=_(t,360),e=_(e,100),r=_(r,100),0===e?n=a=i=r:(n=o(e=2*r-(r=r<.5?r*(1+e):r+e-r*e),r,t+1/3),a=o(e,r,t),i=o(e,r,t-1/3));return{r:255*n,g:255*a,b:255*i}}(t.h,t.s,t.l),n=!0,a="hsl"),t.hasOwnProperty("a"))&&(r=t.a);return r=z(r),{ok:n,format:t.format||a,r:c(255,f(e.r,0)),g:c(255,f(e.g,0)),b:c(255,f(e.b,0)),a:r}}(t),this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=a(100*this._a)/100,this._format=e.format||r.format,this._gradientType=e.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=r.ok,void(this._tc_id=n++)):new b(t,e)}function m(t,e,r){t=_(t,255),e=_(e,255),r=_(r,255);var n,a=f(t,e,r),i=c(t,e,r),o=(a+i)/2;if(a==i)n=l=0;else{var s=a-i,l=.5<o?s/(2-a-i):s/(a+i);switch(a){case t:n=(e-r)/s+(e<r?6:0);break;case e:n=(r-t)/s+2;break;case r:n=(t-e)/s+4}n/=6}return{h:n,s:l,l:o}}function v(t,e,r){t=_(t,255),e=_(e,255),r=_(r,255);var n,a=f(t,e,r),i=c(t,e,r),o=a,s=a-i,l=0===a?0:s/a;if(a==i)n=0;else{switch(a){case t:n=(e-r)/s+(e<r?6:0);break;case e:n=(r-t)/s+2;break;case r:n=(t-e)/s+4}n/=6}return{h:n,s:l,v:o}}function y(t,e,r,n){t=[S(a(t).toString(16)),S(a(e).toString(16)),S(a(r).toString(16))];return n&&t[0].charAt(0)==t[0].charAt(1)&&t[1].charAt(0)==t[1].charAt(1)&&t[2].charAt(0)==t[2].charAt(1)?t[0].charAt(0)+t[1].charAt(0)+t[2].charAt(0):t.join("")}function w(t,e,r,n){return[S(Math.round(255*parseFloat(n)).toString(16)),S(a(t).toString(16)),S(a(e).toString(16)),S(a(r).toString(16))].join("")}function A(t,e){e=0===e?0:e||10;t=b(t).toHsl();return t.s-=e/100,t.s=x(t.s),b(t)}function M(t,e){e=0===e?0:e||10;t=b(t).toHsl();return t.s+=e/100,t.s=x(t.s),b(t)}function R(t){return b(t).desaturate(100)}function H(t,e){e=0===e?0:e||10;t=b(t).toHsl();return t.l+=e/100,t.l=x(t.l),b(t)}function F(t,e){e=0===e?0:e||10;t=b(t).toRgb();return t.r=f(0,c(255,t.r-a(-e/100*255))),t.g=f(0,c(255,t.g-a(-e/100*255))),t.b=f(0,c(255,t.b-a(-e/100*255))),b(t)}function T(t,e){e=0===e?0:e||10;t=b(t).toHsl();return t.l-=e/100,t.l=x(t.l),b(t)}function O(t,e){t=b(t).toHsl(),e=(a(t.h)+e)%360;return t.h=e<0?360+e:e,b(t)}function q(t){t=b(t).toHsl();return t.h=(t.h+180)%360,b(t)}function N(t){var e=b(t).toHsl(),r=e.h;return[b(t),b({h:(r+120)%360,s:e.s,l:e.l}),b({h:(r+240)%360,s:e.s,l:e.l})]}function j(t){var e=b(t).toHsl(),r=e.h;return[b(t),b({h:(r+90)%360,s:e.s,l:e.l}),b({h:(r+180)%360,s:e.s,l:e.l}),b({h:(r+270)%360,s:e.s,l:e.l})]}function E(t){var e=b(t).toHsl(),r=e.h;return[b(t),b({h:(r+72)%360,s:e.s,l:e.l}),b({h:(r+216)%360,s:e.s,l:e.l})]}function D(t,e,r){e=e||6,r=r||30;var n=b(t).toHsl(),a=360/r,i=[b(t)];for(n.h=(n.h-(a*e>>1)+720)%360;--e;)n.h=(n.h+a)%360,i.push(b(n));return i}function I(t,e){e=e||6;for(var t=b(t).toHsv(),r=t.h,n=t.s,a=t.v,i=[],o=1/e;e--;)i.push(b({h:r,s:n,v:a})),a=(a+o)%1;return i}function z(t){return t=parseFloat(t),t=isNaN(t)||t<0||1<t?1:t}function _(t,e){"string"==typeof(r=t)&&-1!=r.indexOf(".")&&1===parseFloat(r)&&(t="100%");var r="string"==typeof(r=t)&&-1!=r.indexOf("%");return t=c(e,f(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),s.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function x(t){return c(1,f(0,t))}function k(t){return parseInt(t,16)}function S(t){return 1==t.length?"0"+t:""+t}function C(t){return t=t<=1?100*t+"%":t}Tt.fn.spectrum=function(r,t){var n,a;return"string"==typeof r?(n=this,a=Array.prototype.slice.call(arguments,1),this.each(function(){var t=Nt[Tt(this).data(g)];if(t){var e=t[r];if(!e)throw new Error("Spectrum: no such method: '"+r+"'");"get"==r?n=t.get():"container"==r?n=t.container:"option"==r?n=t.option.apply(t,a):"destroy"==r?(t.destroy(),Tt(this).removeData(g)):e.apply(t,a)}}),n):this.spectrum("destroy").each(function(){var t=P(this,Tt.extend({},r,Tt(this).data()));Tt(this).data(g,t.id)})},Tt.fn.spectrum.load=!0,Tt.fn.spectrum.loadOpts={},Tt.fn.spectrum.draggable=zt,Tt.fn.spectrum.defaults=qt,Tt.fn.spectrum.inputTypeColorSupport=function t(){var e;return void 0===t._cachedResult&&(e=Tt("<input type='color'/>")[0],t._cachedResult="color"===e.type&&""!==e.value),t._cachedResult},Tt.spectrum={},Tt.spectrum.localization={},Tt.spectrum.palettes={},Tt.fn.spectrum.processNativeColorInputs=function(){var t=Tt("input[type=color]");t.length&&!Bt()&&t.spectrum({preferredFormat:"hex6"})},i=/^[\s,#]+/,o=/\s+$/,n=0,s=Math,a=s.round,c=s.min,f=s.max,r=s.random,b.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=z(t),this._roundA=a(100*this._a)/100,this},toHsv:function(){var t=v(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=v(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),t=a(100*t.v);return 1==this._a?"hsv("+e+", "+r+"%, "+t+"%)":"hsva("+e+", "+r+"%, "+t+"%, "+this._roundA+")"},toHsl:function(){var t=m(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=m(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),t=a(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+t+"%)":"hsla("+e+", "+r+"%, "+t+"%, "+this._roundA+")"},toHex:function(t){return y(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(){return w(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*_(this._r,255))+"%",g:a(100*_(this._g,255))+"%",b:a(100*_(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+a(100*_(this._r,255))+"%, "+a(100*_(this._g,255))+"%, "+a(100*_(this._b,255))+"%)":"rgba("+a(100*_(this._r,255))+"%, "+a(100*_(this._g,255))+"%, "+a(100*_(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&u[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var e="#"+w(this._r,this._g,this._b,this._a),r=e;return"progid:DXImageTransform.Microsoft.gradient("+(this._gradientType?"GradientType = 1, ":"")+"startColorstr="+e+",endColorstr="+(r=t?b(t).toHex8String():r)+")"},toString:function(t){var e=!!t,r=(t=t||this._format,!1),n=this._a<1&&0<=this._a;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()),(r="hsv"===t?this.toHsvString():r)||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},_applyModification:function(t,e){t=t.apply(null,[this].concat([].slice.call(e)));return this._r=t._r,this._g=t._g,this._b=t._b,this.setAlpha(t._a),this},lighten:function(){return this._applyModification(H,arguments)},brighten:function(){return this._applyModification(F,arguments)},darken:function(){return this._applyModification(T,arguments)},desaturate:function(){return this._applyModification(A,arguments)},saturate:function(){return this._applyModification(M,arguments)},greyscale:function(){return this._applyModification(R,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(D,arguments)},complement:function(){return this._applyCombination(q,arguments)},monochromatic:function(){return this._applyCombination(I,arguments)},splitcomplement:function(){return this._applyCombination(E,arguments)},triad:function(){return this._applyCombination(N,arguments)},tetrad:function(){return this._applyCombination(j,arguments)}},b.fromRatio=function(t,e){if("object"==typeof t){var r,n={};for(r in t)t.hasOwnProperty(r)&&(n[r]="a"===r?t[r]:C(t[r]));t=n}return b(t,e)},b.equals=function(t,e){return!(!t||!e)&&b(t).toRgbString()==b(e).toRgbString()},b.random=function(){return b.fromRatio({r:r(),g:r(),b:r()})},b.mix=function(t,e,r){r=0===r?0:r||50;var t=b(t).toRgb(),e=b(e).toRgb(),r=r/100,n=2*r-1,a=e.a-t.a,n=n*a==-1?n:(n+a)/(1+n*a),a=1-(n=(n+1)/2),n={r:e.r*n+t.r*a,g:e.g*n+t.g*a,b:e.b*n+t.b*a,a:e.a*r+t.a*(1-r)};return b(n)},b.readability=function(t,e){var t=b(t),e=b(e),r=t.toRgb(),n=e.toRgb(),t=t.getBrightness(),e=e.getBrightness(),r=Math.max(r.r,n.r)-Math.min(r.r,n.r)+Math.max(r.g,n.g)-Math.min(r.g,n.g)+Math.max(r.b,n.b)-Math.min(r.b,n.b);return{brightness:Math.abs(t-e),color:r}},b.isReadable=function(t,e){t=b.readability(t,e);return 125<t.brightness&&500<t.color},b.mostReadable=function(t,e){for(var r=null,n=0,a=!1,i=0;i<e.length;i++){var o=b.readability(t,e[i]),s=125<o.brightness&&500<o.color,o=o.brightness/125*3+o.color/500;(s&&!a||s&&a&&n<o||!s&&!a&&n<o)&&(a=s,n=o,r=b(e[i]))}return r},l=b.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"},u=b.hexNames=function(t){var e,r={};for(e in t)t.hasOwnProperty(e)&&(r[t[e]]=e);return r}(l),d="[\\s|\\(]+("+(h="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+h+")[,|\\s]+("+h+")\\s*\\)?",h="[\\s|\\(]+("+h+")[,|\\s]+("+h+")[,|\\s]+("+h+")[,|\\s]+("+h+")\\s*\\)?",p={rgb:new RegExp("rgb"+d),rgba:new RegExp("rgba"+h),hsl:new RegExp("hsl"+d),hsla:new RegExp("hsla"+h),hsv:new RegExp("hsv"+d),hsva:new RegExp("hsva"+h),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=b,Tt(function(){Tt.fn.spectrum.load&&Tt.fn.spectrum.processNativeColorInputs()})});
  • watermark-protect-images/trunk/composer.json

    r3196636 r3223598  
    1515    },
    1616    "require-dev": {
    17         "phpstan/phpstan": "^1.12",
    18         "szepeviktor/phpstan-wordpress": "^1.3",
     17        "phpstan/phpstan": "^2.1",
     18        "szepeviktor/phpstan-wordpress": "^2.0",
    1919        "phpstan/extension-installer": "^1.4",
    2020        "wp-coding-standards/wpcs": "^3.0"
  • watermark-protect-images/trunk/ilove-img-watermark.php

    r3196636 r3223598  
    1111 * Plugin URI:        https://iloveapi.com/
    1212 * Description:       Protect your site from image theft with our reliable and easy-to-use watermark plugin. Effective protection for your images.
    13  * Version:           2.2.4
     13 * Version:           2.2.5
    1414 * Requires at least: 5.3
    1515 * Requires PHP:      7.4
  • watermark-protect-images/trunk/package.json

    r3196636 r3223598  
    1616    "gulp-if": "^3.0.0",
    1717    "gulp-rename": "^2.0.0",
    18     "gulp-sass": "^5.1.0",
     18    "gulp-sass": "^6.0.0",
    1919    "gulp-sourcemaps": "^3.0.0",
    2020    "gulp-uglify": "^3.0.2",
    2121    "merge-stream": "^2.0.0",
    22     "sass": "^1.81"
     22    "sass": "^1.83"
    2323  }
    2424}
  • watermark-protect-images/trunk/phpstan.neon

    r3088389 r3223598  
    88            analyseAndScan:
    99                    - vendor
    10                     - node_modules
     10                    - node_modules?
    1111            analyse:
    1212                    - vendor/ilovepdf/iloveimg-php
  • watermark-protect-images/trunk/vendor/autoload.php

    r3196636 r3223598  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit496f012232819ee156bf98e2ecbf20ff::getLoader();
     25return ComposerAutoloaderInit7abb1584d4975b6b8efa630a3484119f::getLoader();
  • watermark-protect-images/trunk/vendor/composer/InstalledVersions.php

    r2995900 r3223598  
    323323
    324324        $installed = array();
     325        $copiedLocalDir = false;
    325326
    326327        if (self::$canGetVendors) {
     
    331332                    /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
    332333                    $required = require $vendorDir.'/composer/installed.php';
    333                     $installed[] = self::$installedByVendor[$vendorDir] = $required;
    334                     if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
    335                         self::$installed = $installed[count($installed) - 1];
     334                    self::$installedByVendor[$vendorDir] = $required;
     335                    $installed[] = $required;
     336                    if (strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
     337                        self::$installed = $required;
     338                        $copiedLocalDir = true;
    336339                    }
    337340                }
     
    351354        }
    352355
    353         if (self::$installed !== array()) {
     356        if (self::$installed !== array() && !$copiedLocalDir) {
    354357            $installed[] = self::$installed;
    355358        }
  • watermark-protect-images/trunk/vendor/composer/autoload_real.php

    r3196636 r3223598  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit496f012232819ee156bf98e2ecbf20ff
     5class ComposerAutoloaderInit7abb1584d4975b6b8efa630a3484119f
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit496f012232819ee156bf98e2ecbf20ff', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit7abb1584d4975b6b8efa630a3484119f', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit496f012232819ee156bf98e2ecbf20ff', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit7abb1584d4975b6b8efa630a3484119f', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit496f012232819ee156bf98e2ecbf20ff::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit7abb1584d4975b6b8efa630a3484119f::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $filesToLoad = \Composer\Autoload\ComposerStaticInit496f012232819ee156bf98e2ecbf20ff::$files;
     36        $filesToLoad = \Composer\Autoload\ComposerStaticInit7abb1584d4975b6b8efa630a3484119f::$files;
    3737        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
    3838            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • watermark-protect-images/trunk/vendor/composer/autoload_static.php

    r3196636 r3223598  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit496f012232819ee156bf98e2ecbf20ff
     7class ComposerStaticInit7abb1584d4975b6b8efa630a3484119f
    88{
    99    public static $files = array (
     
    7979    {
    8080        return \Closure::bind(function () use ($loader) {
    81             $loader->prefixLengthsPsr4 = ComposerStaticInit496f012232819ee156bf98e2ecbf20ff::$prefixLengthsPsr4;
    82             $loader->prefixDirsPsr4 = ComposerStaticInit496f012232819ee156bf98e2ecbf20ff::$prefixDirsPsr4;
    83             $loader->classMap = ComposerStaticInit496f012232819ee156bf98e2ecbf20ff::$classMap;
     81            $loader->prefixLengthsPsr4 = ComposerStaticInit7abb1584d4975b6b8efa630a3484119f::$prefixLengthsPsr4;
     82            $loader->prefixDirsPsr4 = ComposerStaticInit7abb1584d4975b6b8efa630a3484119f::$prefixDirsPsr4;
     83            $loader->classMap = ComposerStaticInit7abb1584d4975b6b8efa630a3484119f::$classMap;
    8484
    8585        }, null, ClassLoader::class);
  • watermark-protect-images/trunk/vendor/composer/installed.json

    r3196636 r3223598  
    8484        {
    8585            "name": "firebase/php-jwt",
    86             "version": "v6.10.1",
    87             "version_normalized": "6.10.1.0",
     86            "version": "v6.10.2",
     87            "version_normalized": "6.10.2.0",
    8888            "source": {
    8989                "type": "git",
    9090                "url": "https://github.com/firebase/php-jwt.git",
    91                 "reference": "500501c2ce893c824c801da135d02661199f60c5"
    92             },
    93             "dist": {
    94                 "type": "zip",
    95                 "url": "https://api.github.com/repos/firebase/php-jwt/zipball/500501c2ce893c824c801da135d02661199f60c5",
    96                 "reference": "500501c2ce893c824c801da135d02661199f60c5",
     91                "reference": "30c19ed0f3264cb660ea496895cfb6ef7ee3653b"
     92            },
     93            "dist": {
     94                "type": "zip",
     95                "url": "https://api.github.com/repos/firebase/php-jwt/zipball/30c19ed0f3264cb660ea496895cfb6ef7ee3653b",
     96                "reference": "30c19ed0f3264cb660ea496895cfb6ef7ee3653b",
    9797                "shasum": ""
    9898            },
     
    112112                "paragonie/sodium_compat": "Support EdDSA (Ed25519) signatures when libsodium is not present"
    113113            },
    114             "time": "2024-05-18T18:05:11+00:00",
     114            "time": "2024-11-24T11:22:49+00:00",
    115115            "type": "library",
    116116            "installation-source": "dist",
     
    144144            "support": {
    145145                "issues": "https://github.com/firebase/php-jwt/issues",
    146                 "source": "https://github.com/firebase/php-jwt/tree/v6.10.1"
     146                "source": "https://github.com/firebase/php-jwt/tree/v6.10.2"
    147147            },
    148148            "install-path": "../firebase/php-jwt"
     
    536536        {
    537537            "name": "php-stubs/wordpress-stubs",
    538             "version": "v6.6.2",
    539             "version_normalized": "6.6.2.0",
     538            "version": "v6.7.1",
     539            "version_normalized": "6.7.1.0",
    540540            "source": {
    541541                "type": "git",
    542542                "url": "https://github.com/php-stubs/wordpress-stubs.git",
    543                 "reference": "f50fd7ed45894d036e4fef9ab7e5bbbaff6a30cc"
    544             },
    545             "dist": {
    546                 "type": "zip",
    547                 "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/f50fd7ed45894d036e4fef9ab7e5bbbaff6a30cc",
    548                 "reference": "f50fd7ed45894d036e4fef9ab7e5bbbaff6a30cc",
     543                "reference": "83448e918bf06d1ed3d67ceb6a985fc266a02fd1"
     544            },
     545            "dist": {
     546                "type": "zip",
     547                "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/83448e918bf06d1ed3d67ceb6a985fc266a02fd1",
     548                "reference": "83448e918bf06d1ed3d67ceb6a985fc266a02fd1",
    549549                "shasum": ""
    550550            },
     
    555555                "php-stubs/generator": "^0.8.3",
    556556                "phpdocumentor/reflection-docblock": "^5.4.1",
    557                 "phpstan/phpstan": "^1.10.49",
     557                "phpstan/phpstan": "^1.11",
    558558                "phpunit/phpunit": "^9.5",
    559                 "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^1.0",
     559                "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^1.1.1",
    560560                "wp-coding-standards/wpcs": "3.1.0 as 2.3.0"
    561561            },
     
    565565                "szepeviktor/phpstan-wordpress": "WordPress extensions for PHPStan"
    566566            },
    567             "time": "2024-09-30T07:10:48+00:00",
     567            "time": "2024-11-24T03:57:09+00:00",
    568568            "type": "library",
    569569            "installation-source": "dist",
     
    581581            "support": {
    582582                "issues": "https://github.com/php-stubs/wordpress-stubs/issues",
    583                 "source": "https://github.com/php-stubs/wordpress-stubs/tree/v6.6.2"
     583                "source": "https://github.com/php-stubs/wordpress-stubs/tree/v6.7.1"
    584584            },
    585585            "install-path": "../php-stubs/wordpress-stubs"
     
    810810        {
    811811            "name": "phpstan/phpstan",
    812             "version": "1.12.11",
    813             "version_normalized": "1.12.11.0",
     812            "version": "2.1.1",
     813            "version_normalized": "2.1.1.0",
    814814            "source": {
    815815                "type": "git",
    816816                "url": "https://github.com/phpstan/phpstan.git",
    817                 "reference": "0d1fc20a962a91be578bcfe7cf939e6e1a2ff733"
    818             },
    819             "dist": {
    820                 "type": "zip",
    821                 "url": "https://api.github.com/repos/phpstan/phpstan/zipball/0d1fc20a962a91be578bcfe7cf939e6e1a2ff733",
    822                 "reference": "0d1fc20a962a91be578bcfe7cf939e6e1a2ff733",
    823                 "shasum": ""
    824             },
    825             "require": {
    826                 "php": "^7.2|^8.0"
     817                "reference": "cd6e973e04b4c2b94c86e8612b5a65f0da0e08e7"
     818            },
     819            "dist": {
     820                "type": "zip",
     821                "url": "https://api.github.com/repos/phpstan/phpstan/zipball/cd6e973e04b4c2b94c86e8612b5a65f0da0e08e7",
     822                "reference": "cd6e973e04b4c2b94c86e8612b5a65f0da0e08e7",
     823                "shasum": ""
     824            },
     825            "require": {
     826                "php": "^7.4|^8.0"
    827827            },
    828828            "conflict": {
    829829                "phpstan/phpstan-shim": "*"
    830830            },
    831             "time": "2024-11-17T14:08:01+00:00",
     831            "time": "2025-01-05T16:43:48+00:00",
    832832            "bin": [
    833833                "phpstan",
     
    10871087        {
    10881088            "name": "squizlabs/php_codesniffer",
    1089             "version": "3.11.1",
    1090             "version_normalized": "3.11.1.0",
     1089            "version": "3.11.2",
     1090            "version_normalized": "3.11.2.0",
    10911091            "source": {
    10921092                "type": "git",
    10931093                "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git",
    1094                 "reference": "19473c30efe4f7b3cd42522d0b2e6e7f243c6f87"
    1095             },
    1096             "dist": {
    1097                 "type": "zip",
    1098                 "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/19473c30efe4f7b3cd42522d0b2e6e7f243c6f87",
    1099                 "reference": "19473c30efe4f7b3cd42522d0b2e6e7f243c6f87",
     1094                "reference": "1368f4a58c3c52114b86b1abe8f4098869cb0079"
     1095            },
     1096            "dist": {
     1097                "type": "zip",
     1098                "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/1368f4a58c3c52114b86b1abe8f4098869cb0079",
     1099                "reference": "1368f4a58c3c52114b86b1abe8f4098869cb0079",
    11001100                "shasum": ""
    11011101            },
     
    11091109                "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4"
    11101110            },
    1111             "time": "2024-11-16T12:02:36+00:00",
     1111            "time": "2024-12-11T16:04:26+00:00",
    11121112            "bin": [
    11131113                "bin/phpcbf",
     
    11701170        {
    11711171            "name": "symfony/deprecation-contracts",
    1172             "version": "v3.5.0",
    1173             "version_normalized": "3.5.0.0",
     1172            "version": "v3.5.1",
     1173            "version_normalized": "3.5.1.0",
    11741174            "source": {
    11751175                "type": "git",
    11761176                "url": "https://github.com/symfony/deprecation-contracts.git",
    1177                 "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1"
    1178             },
    1179             "dist": {
    1180                 "type": "zip",
    1181                 "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1",
    1182                 "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1",
     1177                "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6"
     1178            },
     1179            "dist": {
     1180                "type": "zip",
     1181                "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6",
     1182                "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6",
    11831183                "shasum": ""
    11841184            },
     
    11861186                "php": ">=8.1"
    11871187            },
    1188             "time": "2024-04-18T09:32:20+00:00",
     1188            "time": "2024-09-25T14:20:29+00:00",
    11891189            "type": "library",
    11901190            "extra": {
     1191                "thanks": {
     1192                    "url": "https://github.com/symfony/contracts",
     1193                    "name": "symfony/contracts"
     1194                },
    11911195                "branch-alias": {
    11921196                    "dev-main": "3.5-dev"
    1193                 },
    1194                 "thanks": {
    1195                     "name": "symfony/contracts",
    1196                     "url": "https://github.com/symfony/contracts"
    11971197                }
    11981198            },
     
    12201220            "homepage": "https://symfony.com",
    12211221            "support": {
    1222                 "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.0"
     1222                "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.1"
    12231223            },
    12241224            "funding": [
     
    12391239        },
    12401240        {
    1241             "name": "symfony/polyfill-php73",
    1242             "version": "v1.31.0",
    1243             "version_normalized": "1.31.0.0",
    1244             "source": {
    1245                 "type": "git",
    1246                 "url": "https://github.com/symfony/polyfill-php73.git",
    1247                 "reference": "0f68c03565dcaaf25a890667542e8bd75fe7e5bb"
    1248             },
    1249             "dist": {
    1250                 "type": "zip",
    1251                 "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/0f68c03565dcaaf25a890667542e8bd75fe7e5bb",
    1252                 "reference": "0f68c03565dcaaf25a890667542e8bd75fe7e5bb",
    1253                 "shasum": ""
    1254             },
    1255             "require": {
    1256                 "php": ">=7.2"
    1257             },
    1258             "time": "2024-09-09T11:45:10+00:00",
    1259             "type": "library",
    1260             "extra": {
    1261                 "thanks": {
    1262                     "name": "symfony/polyfill",
    1263                     "url": "https://github.com/symfony/polyfill"
    1264                 }
    1265             },
    1266             "installation-source": "dist",
    1267             "autoload": {
    1268                 "files": [
    1269                     "bootstrap.php"
    1270                 ],
    1271                 "psr-4": {
    1272                     "Symfony\\Polyfill\\Php73\\": ""
    1273                 },
    1274                 "classmap": [
    1275                     "Resources/stubs"
    1276                 ]
    1277             },
    1278             "notification-url": "https://packagist.org/downloads/",
    1279             "license": [
    1280                 "MIT"
    1281             ],
    1282             "authors": [
    1283                 {
    1284                     "name": "Nicolas Grekas",
    1285                     "email": "p@tchwork.com"
    1286                 },
    1287                 {
    1288                     "name": "Symfony Community",
    1289                     "homepage": "https://symfony.com/contributors"
    1290                 }
    1291             ],
    1292             "description": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions",
    1293             "homepage": "https://symfony.com",
    1294             "keywords": [
    1295                 "compatibility",
    1296                 "polyfill",
    1297                 "portable",
    1298                 "shim"
    1299             ],
    1300             "support": {
    1301                 "source": "https://github.com/symfony/polyfill-php73/tree/v1.31.0"
    1302             },
    1303             "funding": [
    1304                 {
    1305                     "url": "https://symfony.com/sponsor",
    1306                     "type": "custom"
    1307                 },
    1308                 {
    1309                     "url": "https://github.com/fabpot",
    1310                     "type": "github"
    1311                 },
    1312                 {
    1313                     "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
    1314                     "type": "tidelift"
    1315                 }
    1316             ],
    1317             "install-path": "../symfony/polyfill-php73"
    1318         },
    1319         {
    13201241            "name": "szepeviktor/phpstan-wordpress",
    1321             "version": "v1.3.5",
    1322             "version_normalized": "1.3.5.0",
     1242            "version": "v2.0.1",
     1243            "version_normalized": "2.0.1.0",
    13231244            "source": {
    13241245                "type": "git",
    13251246                "url": "https://github.com/szepeviktor/phpstan-wordpress.git",
    1326                 "reference": "7f8cfe992faa96b6a33bbd75c7bace98864161e7"
    1327             },
    1328             "dist": {
    1329                 "type": "zip",
    1330                 "url": "https://api.github.com/repos/szepeviktor/phpstan-wordpress/zipball/7f8cfe992faa96b6a33bbd75c7bace98864161e7",
    1331                 "reference": "7f8cfe992faa96b6a33bbd75c7bace98864161e7",
    1332                 "shasum": ""
    1333             },
    1334             "require": {
    1335                 "php": "^7.2 || ^8.0",
    1336                 "php-stubs/wordpress-stubs": "^4.7 || ^5.0 || ^6.0",
    1337                 "phpstan/phpstan": "^1.10.31",
    1338                 "symfony/polyfill-php73": "^1.12.0"
     1247                "reference": "f7beb13cd22998e3d913fdb897a1e2553ccd637e"
     1248            },
     1249            "dist": {
     1250                "type": "zip",
     1251                "url": "https://api.github.com/repos/szepeviktor/phpstan-wordpress/zipball/f7beb13cd22998e3d913fdb897a1e2553ccd637e",
     1252                "reference": "f7beb13cd22998e3d913fdb897a1e2553ccd637e",
     1253                "shasum": ""
     1254            },
     1255            "require": {
     1256                "php": "^7.4 || ^8.0",
     1257                "php-stubs/wordpress-stubs": "^6.6.2",
     1258                "phpstan/phpstan": "^2.0"
    13391259            },
    13401260            "require-dev": {
     
    13421262                "dealerdirect/phpcodesniffer-composer-installer": "^1.0",
    13431263                "php-parallel-lint/php-parallel-lint": "^1.1",
    1344                 "phpstan/phpstan-strict-rules": "^1.2",
    1345                 "phpunit/phpunit": "^8.0 || ^9.0",
     1264                "phpstan/phpstan-strict-rules": "^2.0",
     1265                "phpunit/phpunit": "^9.0",
    13461266                "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^1.0",
    13471267                "wp-coding-standards/wpcs": "3.1.0 as 2.3.0"
     
    13501270                "swissspidy/phpstan-no-private": "Detect usage of internal core functions, classes and methods"
    13511271            },
    1352             "time": "2024-06-28T22:27:19+00:00",
     1272            "time": "2024-12-01T02:13:05+00:00",
    13531273            "type": "phpstan-extension",
    13541274            "extra": {
     
    13791299            "support": {
    13801300                "issues": "https://github.com/szepeviktor/phpstan-wordpress/issues",
    1381                 "source": "https://github.com/szepeviktor/phpstan-wordpress/tree/v1.3.5"
     1301                "source": "https://github.com/szepeviktor/phpstan-wordpress/tree/v2.0.1"
    13821302            },
    13831303            "install-path": "../szepeviktor/phpstan-wordpress"
     
    14621382        "phpstan/phpstan",
    14631383        "squizlabs/php_codesniffer",
    1464         "symfony/polyfill-php73",
    14651384        "szepeviktor/phpstan-wordpress",
    14661385        "wp-coding-standards/wpcs"
  • watermark-protect-images/trunk/vendor/composer/installed.php

    r3196636 r3223598  
    22    'root' => array(
    33        'name' => 'ilovepdf/iloveimg-wp-watermark',
    4         'pretty_version' => 'dev-master',
    5         'version' => 'dev-master',
    6         'reference' => 'b38e7bc53f2dc99454d47649842800063084fa67',
     4        'pretty_version' => 'dev-develop',
     5        'version' => 'dev-develop',
     6        'reference' => 'b499f7a3d6a87730e282e0a64f62b51a6f469572',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    2121        ),
    2222        'firebase/php-jwt' => array(
    23             'pretty_version' => 'v6.10.1',
    24             'version' => '6.10.1.0',
    25             'reference' => '500501c2ce893c824c801da135d02661199f60c5',
     23            'pretty_version' => 'v6.10.2',
     24            'version' => '6.10.2.0',
     25            'reference' => '30c19ed0f3264cb660ea496895cfb6ef7ee3653b',
    2626            'type' => 'library',
    2727            'install_path' => __DIR__ . '/../firebase/php-jwt',
     
    6868        ),
    6969        'ilovepdf/iloveimg-wp-watermark' => array(
    70             'pretty_version' => 'dev-master',
    71             'version' => 'dev-master',
    72             'reference' => 'b38e7bc53f2dc99454d47649842800063084fa67',
     70            'pretty_version' => 'dev-develop',
     71            'version' => 'dev-develop',
     72            'reference' => 'b499f7a3d6a87730e282e0a64f62b51a6f469572',
    7373            'type' => 'wordpress-plugin',
    7474            'install_path' => __DIR__ . '/../../',
     
    7777        ),
    7878        'php-stubs/wordpress-stubs' => array(
    79             'pretty_version' => 'v6.6.2',
    80             'version' => '6.6.2.0',
    81             'reference' => 'f50fd7ed45894d036e4fef9ab7e5bbbaff6a30cc',
     79            'pretty_version' => 'v6.7.1',
     80            'version' => '6.7.1.0',
     81            'reference' => '83448e918bf06d1ed3d67ceb6a985fc266a02fd1',
    8282            'type' => 'library',
    8383            'install_path' => __DIR__ . '/../php-stubs/wordpress-stubs',
     
    113113        ),
    114114        'phpstan/phpstan' => array(
    115             'pretty_version' => '1.12.11',
    116             'version' => '1.12.11.0',
    117             'reference' => '0d1fc20a962a91be578bcfe7cf939e6e1a2ff733',
     115            'pretty_version' => '2.1.1',
     116            'version' => '2.1.1.0',
     117            'reference' => 'cd6e973e04b4c2b94c86e8612b5a65f0da0e08e7',
    118118            'type' => 'library',
    119119            'install_path' => __DIR__ . '/../phpstan/phpstan',
     
    176176        ),
    177177        'squizlabs/php_codesniffer' => array(
    178             'pretty_version' => '3.11.1',
    179             'version' => '3.11.1.0',
    180             'reference' => '19473c30efe4f7b3cd42522d0b2e6e7f243c6f87',
     178            'pretty_version' => '3.11.2',
     179            'version' => '3.11.2.0',
     180            'reference' => '1368f4a58c3c52114b86b1abe8f4098869cb0079',
    181181            'type' => 'library',
    182182            'install_path' => __DIR__ . '/../squizlabs/php_codesniffer',
     
    185185        ),
    186186        'symfony/deprecation-contracts' => array(
    187             'pretty_version' => 'v3.5.0',
    188             'version' => '3.5.0.0',
    189             'reference' => '0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1',
     187            'pretty_version' => 'v3.5.1',
     188            'version' => '3.5.1.0',
     189            'reference' => '74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6',
    190190            'type' => 'library',
    191191            'install_path' => __DIR__ . '/../symfony/deprecation-contracts',
     
    193193            'dev_requirement' => false,
    194194        ),
    195         'symfony/polyfill-php73' => array(
    196             'pretty_version' => 'v1.31.0',
    197             'version' => '1.31.0.0',
    198             'reference' => '0f68c03565dcaaf25a890667542e8bd75fe7e5bb',
    199             'type' => 'library',
    200             'install_path' => __DIR__ . '/../symfony/polyfill-php73',
    201             'aliases' => array(),
    202             'dev_requirement' => true,
    203         ),
    204195        'szepeviktor/phpstan-wordpress' => array(
    205             'pretty_version' => 'v1.3.5',
    206             'version' => '1.3.5.0',
    207             'reference' => '7f8cfe992faa96b6a33bbd75c7bace98864161e7',
     196            'pretty_version' => 'v2.0.1',
     197            'version' => '2.0.1.0',
     198            'reference' => 'f7beb13cd22998e3d913fdb897a1e2553ccd637e',
    208199            'type' => 'phpstan-extension',
    209200            'install_path' => __DIR__ . '/../szepeviktor/phpstan-wordpress',
  • watermark-protect-images/trunk/vendor/firebase/php-jwt/CHANGELOG.md

    r3165756 r3223598  
    11# Changelog
     2
     3## [6.10.2](https://github.com/firebase/php-jwt/compare/v6.10.1...v6.10.2) (2024-11-24)
     4
     5
     6### Bug Fixes
     7
     8* Mitigate PHP8.4 deprecation warnings ([#570](https://github.com/firebase/php-jwt/issues/570)) ([76808fa](https://github.com/firebase/php-jwt/commit/76808fa227f3811aa5cdb3bf81233714b799a5b5))
     9* support php 8.4 ([#583](https://github.com/firebase/php-jwt/issues/583)) ([e3d68b0](https://github.com/firebase/php-jwt/commit/e3d68b044421339443c74199edd020e03fb1887e))
    210
    311## [6.10.1](https://github.com/firebase/php-jwt/compare/v6.10.0...v6.10.1) (2024-05-18)
  • watermark-protect-images/trunk/vendor/firebase/php-jwt/src/CachedKeySet.php

    r3165756 r3223598  
    8181        RequestFactoryInterface $httpFactory,
    8282        CacheItemPoolInterface $cache,
    83         int $expiresAfter = null,
     83        ?int $expiresAfter = null,
    8484        bool $rateLimit = false,
    85         string $defaultAlg = null
     85        ?string $defaultAlg = null
    8686    ) {
    8787        $this->jwksUri = $jwksUri;
     
    181181            if ($jwksResponse->getStatusCode() !== 200) {
    182182                throw new UnexpectedValueException(
    183                     sprintf('HTTP Error: %d %s for URI "%s"',
     183                    \sprintf('HTTP Error: %d %s for URI "%s"',
    184184                        $jwksResponse->getStatusCode(),
    185185                        $jwksResponse->getReasonPhrase(),
  • watermark-protect-images/trunk/vendor/firebase/php-jwt/src/JWK.php

    r3165756 r3223598  
    5353     * @uses parseKey
    5454     */
    55     public static function parseKeySet(array $jwks, string $defaultAlg = null): array
     55    public static function parseKeySet(array $jwks, ?string $defaultAlg = null): array
    5656    {
    5757        $keys = [];
     
    9494     * @uses createPemFromModulusAndExponent
    9595     */
    96     public static function parseKey(array $jwk, string $defaultAlg = null): ?Key
     96    public static function parseKey(array $jwk, ?string $defaultAlg = null): ?Key
    9797    {
    9898        if (empty($jwk)) {
     
    213213            );
    214214
    215         return sprintf(
     215        return \sprintf(
    216216            "-----BEGIN PUBLIC KEY-----\n%s\n-----END PUBLIC KEY-----\n",
    217217            wordwrap(base64_encode($pem), 64, "\n", true)
  • watermark-protect-images/trunk/vendor/firebase/php-jwt/src/JWT.php

    r3165756 r3223598  
    9797        string $jwt,
    9898        $keyOrKeyArray,
    99         stdClass &$headers = null
     99        ?stdClass &$headers = null
    100100    ): stdClass {
    101101        // Validate JWT
     
    201201        $key,
    202202        string $alg,
    203         string $keyId = null,
    204         array $head = null
     203        ?string $keyId = null,
     204        ?array $head = null
    205205    ): string {
    206206        $header = ['typ' => 'JWT'];
    207         if (isset($head) && \is_array($head)) {
     207        if (isset($head)) {
    208208            $header = \array_merge($header, $head);
    209209        }
     
    388388    public static function jsonEncode(array $input): string
    389389    {
    390         if (PHP_VERSION_ID >= 50400) {
    391             $json = \json_encode($input, \JSON_UNESCAPED_SLASHES);
    392         } else {
    393             // PHP 5.3 only
    394             $json = \json_encode($input);
    395         }
     390        $json = \json_encode($input, \JSON_UNESCAPED_SLASHES);
    396391        if ($errno = \json_last_error()) {
    397392            self::handleJsonError($errno);
Note: See TracChangeset for help on using the changeset viewer.