Plugin Directory

Changeset 3255408


Ignore:
Timestamp:
03/13/2025 01:58:48 PM (13 months ago)
Author:
ilovepdf
Message:

Update to version 2.2.7 from GitHub

Location:
watermark-protect-images
Files:
24 edited
1 copied

Legend:

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

    r3240632 r3255408  
    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.6
     3Version: 2.2.7
    44Author: iLovePDF
    55Author URI: https://www.iloveimg.com/
     
    88Requires at least: 5.3
    99Tested up to: 6.7
    10 Stable tag: 2.2.6
     10Stable tag: 2.2.7
    1111Requires PHP: 7.4
    1212License: GPLv2 or later
     
    100100
    101101== Changelog ==
     102
     103= 2.2.7 =
     104Improved
     105* Update Libraries.
    102106
    103107= 2.2.6 =
  • watermark-protect-images/tags/2.2.7/admin/Ilove_Img_Wm_Plugin.php

    r3240632 r3255408  
    1919     * @var      string    VERSION    The current version of the plugin.
    2020     */
    21     const VERSION = '2.2.6';
     21    const VERSION = '2.2.7';
    2222
    2323    /**
  • watermark-protect-images/tags/2.2.7/assets/js/main.min.js

    r3240632 r3255408  
    1 "use strict";!function(){var i,e="",r=(void 0!==window.adminpage&&(e=window.adminpage),new Array);var o;switch(e){case"upload-php":case"media_page_iloveimg-media-page":case"media_page_iloveimg-media-watermark-page":case"post-php":jQuery(document).on("click","button.iloveimg-watermark",function(e){var t=jQuery(e.target),i=t.closest("td");t.attr("disabled","disabled"),t.next().show(),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"ilove_img_wm_library",id:t.data("id")||t.attr("data-id"),imgnonce:t.data("imgnonce")||t.attr("data-imgnonce")},success:function(e){t.removeAttr("disabled"),i.html(e)},error:function(){t.removeAttr("disabled")}})}),jQuery(document).on("click","button#iloveimg_allcompress",function(e){o=jQuery("button.iloveimg-watermark").length,jQuery("button#iloveimg_allcompress").attr("disabled","disabled"),jQuery("button.iloveimg-watermark").each(function(e,t){jQuery(t).trigger("click"),i=setInterval(function(){var e=100-100*jQuery("button.iloveimg-watermark").length/o;jQuery("button#iloveimg_allcompress .iloveimg-watermark-all__percent").width(e+"%"),jQuery("button.iloveimg-watermark").length||clearInterval(i)},300),location.reload()})}),jQuery("<option>").val("iloveimg_bulk_action").text("Watermark Images").appendTo("select[name=action]"),jQuery("<option>").val("iloveimg_bulk_action").text("Watermark Images").appendTo("select[name=action2]"),jQuery(".iloveimg_watermarking").each(function(o,a){r["ref_"+o]=setInterval(function(){var e,t,i;e=a,t=o,i=(e=jQuery(e)).closest("td"),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"ilove_img_wm_library_is_watermarked",id:e.data("id")||e.attr("data-id"),imgnonce:e.data("imgnonce")||e.attr("data-imgnonce")},success:function(e){clearInterval(r["ref_"+t]),i.html(e)},error:function(e){console.log(e)},statusCode:{500:function(){},400:function(){}}})},1e3)}),jQuery(document).on("submit","form#images-filter, form#posts-filter",function(e){"iloveimg_bulk_action"==jQuery(document).find("select#bulk-action-selector-top option:checked").val()&&(e.preventDefault(),jQuery("table.wp-list-table.images tbody tr, table.wp-list-table.media tbody tr").each(function(e,t){jQuery(t).find("th.check-column input[type='checkbox']").is(":checked")&&jQuery(t).find("td.status button, td.iloveimg_watermarkion button").trigger("click")}))})}jQuery(".iloveimg_settings__options-container form input").on("change",function(e){jQuery(".iloveimg_settings__options-container form .submit button").hasClass("need_saving")||setTimeout(function(){jQuery(".iloveimg_settings__options-container form .submit button").addClass("need_saving"),setTimeout(function(){jQuery(".iloveimg_settings__options-container form .submit button").removeClass("need_saving")},5e3)},1e3)}),jQuery("#picker").spectrum({showPaletteOnly:!0,togglePaletteOnly:!0,togglePaletteMoreText:"more",togglePaletteLessText:"less",palette:[["#000","#444","#666","#999","#ccc","#eee","#f3f3f3","#fff"],["#f00","#f90","#ff0","#0f0","#0ff","#00f","#90f","#f0f"],["#f4cccc","#fce5cd","#fff2cc","#d9ead3","#d0e0e3","#cfe2f3","#d9d2e9","#ead1dc"],["#ea9999","#f9cb9c","#ffe599","#b6d7a8","#a2c4c9","#9fc5e8","#b4a7d6","#d5a6bd"],["#e06666","#f6b26b","#ffd966","#93c47d","#76a5af","#6fa8dc","#8e7cc3","#c27ba0"],["#c00","#e69138","#f1c232","#6aa84f","#45818e","#3d85c6","#674ea7","#a64d79"],["#900","#b45f06","#bf9000","#38761d","#134f5c","#0b5394","#351c75","#741b47"],["#600","#783f04","#7f6000","#274e13","#0c343d","#073763","#20124d","#4c1130"]],change:function(e){jQuery("#iloveimg_field_text_color").val(e),_()}});function t(){if(jQuery("#iloveimg_field_text").val()&&0<=jQuery("#iloveimg_field_scale").val()&&jQuery("#iloveimg_field_scale").val()<=100){var e=jQuery("#iloveimg_settings__watermark__preview").width()*(jQuery("#iloveimg_field_scale").val()/100);jQuery("#iloveimg_settings__watermark__preview p").css({fontSize:0});for(var t=0;jQuery("#iloveimg_settings__watermark__preview p").outerWidth()<e;t++)jQuery("#iloveimg_settings__watermark__preview p").css({fontSize:t});jQuery("#iloveimg_settings__watermark__preview p").css({fontSize:t-2,"line-height":t-2+"px"}),jQuery("#iloveimg_settings__watermark__preview img").width(e)}}function a(){var e="calc(50% - "+jQuery("#iloveimg_settings__watermark__preview p").outerWidth()/2+"px)",t="calc(50% - "+jQuery("#iloveimg_settings__watermark__preview p").outerHeight()/2+"px)";jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(0).css({top:"0px",bottom:"auto",left:"0px",right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(1).css({top:"0px",bottom:"auto",left:e,right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(2).css({top:"0px",bottom:"auto",left:"auto",right:"0px"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(3).css({top:t,bottom:"auto",left:"0px",right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(4).css({top:t,bottom:"auto",left:e,right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(5).css({top:t,bottom:"auto",left:"auto",right:"0px"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(6).css({top:"auto",bottom:"0px",left:"0px",right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(7).css({top:"auto",bottom:"0px",left:e,right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(8).css({top:"auto",bottom:"0px",left:"auto",right:"0px"}),e="calc(50% - "+jQuery("#iloveimg_settings__watermark__preview img").outerWidth()/2+"px)",t="calc(50% - "+jQuery("#iloveimg_settings__watermark__preview img").outerHeight()/2+"px)",jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(0).css({top:"0px",bottom:"auto",left:"0px",right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(1).css({top:"0px",bottom:"auto",left:e,right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(2).css({top:"0px",bottom:"auto",left:"auto",right:"0px"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(3).css({top:t,bottom:"auto",left:"0px",right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(4).css({top:t,bottom:"auto",left:e,right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(5).css({top:t,bottom:"auto",left:"auto",right:"0px"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(6).css({top:"auto",bottom:"0px",left:"0px",right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(7).css({top:"auto",bottom:"0px",left:e,right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(8).css({top:"auto",bottom:"0px",left:"auto",right:"0px"}),jQuery("#iloveimg_field_mosaic").is(":checked")?(jQuery("#iloveimg_settings__watermark__preview p, #iloveimg_settings__watermark__preview img").css({visibility:"visible"}),jQuery("table.iloveimg_watermark_position").addClass("mode_mosaic")):(jQuery("input:radio[name=iloveimg_field_position]").removeAttr("disabled"),jQuery("table.iloveimg_watermark_position").removeClass("mode_mosaic"),jQuery("#iloveimg_settings__watermark__preview p, #iloveimg_settings__watermark__preview img").css({visibility:"hidden"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(parseInt(jQuery("input:radio[name=iloveimg_field_position]:checked").val())-1).css({visibility:"visible"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(parseInt(jQuery("input:radio[name=iloveimg_field_position]:checked").val())-1).css({visibility:"visible"}))}var l,_=function(){var e=jQuery("#iloveimg_field_text_family").val(),t=jQuery("#iloveimg_field_text_bold").is(":checked")?"bold":"normal",i=jQuery("#iloveimg_field_text_italic").is(":checked")?"italic":"normal",o=jQuery("#iloveimg_field_text_underline").is(":checked")?"underline":"none",a=jQuery("#iloveimg_field_text_color").val()?jQuery("#iloveimg_field_text_color").val():"#000";-1<["Courier New","Comic Sans MS","WenQuanYi Zen Hei","Lohit Marathi","Impact"].indexOf(e)?(jQuery(".iloveimg_font_none_style").show(),jQuery("#iloveimg_field_text_bold, #iloveimg_field_text_italic").attr("disabled","disabled")):(jQuery(".iloveimg_font_none_style").hide(),jQuery("#iloveimg_field_text_bold, #iloveimg_field_text_italic").removeAttr("disabled")),jQuery("#iloveimg_settings__watermark__preview p").text(jQuery("#iloveimg_field_text").val()),jQuery("#iloveimg_settings__watermark__preview p").css({opacity:jQuery("#iloveimg_field_opacity").val()/100,transform:"rotate("+jQuery("#iloveimg_field_rotation").val()+"deg)","font-weight":t,"font-style":i,"text-decoration":o,"font-family":e,color:a}),jQuery("#iloveimg_settings__watermark__preview img").css({opacity:jQuery("#iloveimg_field_opacity").val()/100,transform:"rotate("+jQuery("#iloveimg_field_rotation").val()+"deg)"})};document.getElementById("iloveimg_settings__watermark__preview")&&(jQuery(".iloveimg_settings__options__field__cols__2-"+jQuery("#iloveimg_field_type input:checked").val()).show(),("text"==jQuery("#iloveimg_field_type input:checked").val()?(jQuery("#iloveimg_settings__watermark__preview img").hide(),jQuery("#iloveimg_settings__watermark__preview p")):(jQuery("#iloveimg_settings__watermark__preview p").hide(),jQuery("#iloveimg_settings__watermark__preview img"))).show(),jQuery("#iloveimg_field_type input").on("change",function(e){jQuery(".iloveimg_settings__options__field__cols__2-text,.iloveimg_settings__options__field__cols__2-image").hide(),jQuery(".iloveimg_settings__options__field__cols__2-"+jQuery("#iloveimg_field_type input:checked").val()).show(),("text"==jQuery("#iloveimg_field_type input:checked").val()?(jQuery("#iloveimg_settings__watermark__preview img").hide(),jQuery("#iloveimg_settings__watermark__preview p")):(jQuery("#iloveimg_settings__watermark__preview p").hide(),jQuery("#iloveimg_settings__watermark__preview img"))).show()}),jQuery(".iloveimg_settings__options__field-preview input[type='text'], .iloveimg_settings__options__field-preview input[type='number']").on("keyup change",function(e){_(),t(),a()}),jQuery(".iloveimg_settings__options__field-preview select").on("change",function(e){_(),t(),a()}),jQuery(".iloveimg_settings__options__field-preview input[type='radio']").on("change",function(e){_(),t(),a()}),jQuery(".iloveimg_settings__options__field-preview input[type='checkbox']").on("change",function(e){jQuery("#iloveimg_field_mosaic").is(":checked")&&33<jQuery("#iloveimg_field_scale").val()&&jQuery("#iloveimg_field_scale").val(33),_(),t(),a()}),_(),t(),a()),jQuery(".iloveimg_page_iloveimg-watermark-admin-page #iloveimg_restore_all").on("click",function(e){var t=jQuery(e.currentTarget),i=(e.preventDefault(),t.parent().append('\n                    <dialog id="iloveimg-watermark-restore-dialog" class="iloveimg-restore-dialog">\n                        <h2 class="iloveimg-title-dialog">Attention!</h2>\n                        <p class="iloveimg-content-dialog">The changes applied by all the tools will be lost. Do you want to continue?</p>\n                        <div class="iloveimg-btn-groups">\n                            <button id="iloveimg-watermark-dialog-aceptted" class="button button-primary">Yes</button>\n                            <button id="iloveimg-watermark-dialog-close" class="button button-secondary">Close</button>\n                        </div>\n                    </dialog>'),document.getElementById("iloveimg-watermark-restore-dialog")),e=document.getElementById("iloveimg-watermark-dialog-aceptted"),o=document.getElementById("iloveimg-watermark-dialog-close");i.showModal(),e.addEventListener("click",function(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",function(e){e.preventDefault(),i.close(),i.remove()})}),jQuery(".iloveimg_page_iloveimg-watermark-admin-page #iloveimg_clear_backup").on("click",function(e){e.preventDefault();var t=jQuery(e.currentTarget),i=(t.parent().append('\n                    <dialog id="iloveimg-watermark-restore-dialog" class="iloveimg-restore-dialog">\n                        <h2 class="iloveimg-title-dialog">Attention!</h2>\n                        <p class="iloveimg-content-dialog">All files inside iloveimg-backup folder will be deleted. Do you want to continue?</p>\n                        <div class="iloveimg-btn-groups">\n                            <button id="iloveimg-watermark-dialog-aceptted" class="button button-primary">Yes</button>\n                            <button id="iloveimg-watermark-dialog-close" class="button button-secondary">Close</button>\n                        </div>\n                    </dialog>'),document.getElementById("iloveimg-watermark-restore-dialog")),e=document.getElementById("iloveimg-watermark-dialog-aceptted"),o=document.getElementById("iloveimg-watermark-dialog-close");i.showModal(),e.addEventListener("click",function(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",function(e){e.preventDefault(),i.close(),i.remove()})}),jQuery(".iloveimg-watermark.iloveimg_restore_button_wrapper .iloveimg_restore_button").on("click",function(e){e.preventDefault();var t=jQuery(e.currentTarget),i=(i=jQuery(e.currentTarget).siblings("#_wpnonce")).val(),o=t.data("action"),a=t.data("id"),r=(t.hide(),t.nextAll(".loading").show(),t.parent().append('\n                    <dialog id="iloveimg-watermark-restore-dialog" class="iloveimg-restore-dialog">\n                        <h2 class="iloveimg-title-dialog">Attention!</h2>\n                        <p class="iloveimg-content-dialog">The changes applied by all the tools will be lost. Do you want to continue?</p>\n                        <div class="iloveimg-btn-groups">\n                            <button id="iloveimg-watermark-dialog-aceptted" class="button button-primary">Yes</button>\n                            <button id="iloveimg-watermark-dialog-close" class="button button-secondary">Close</button>\n                        </div>\n                    </dialog>'),document.getElementById("iloveimg-watermark-restore-dialog")),e=document.getElementById("iloveimg-watermark-dialog-aceptted"),l=document.getElementById("iloveimg-watermark-dialog-close");r.showModal(),e.addEventListener("click",function(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",function(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();
     1!function(){var i,e="",r=(void 0!==window.adminpage&&(e=window.adminpage),new Array);var o;switch(e){case"upload-php":case"media_page_iloveimg-media-page":case"media_page_iloveimg-media-watermark-page":case"post-php":jQuery(document).on("click","button.iloveimg-watermark",function(e){var t=jQuery(e.target),i=t.closest("td");t.attr("disabled","disabled"),t.next().show(),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"ilove_img_wm_library",id:t.data("id")||t.attr("data-id"),imgnonce:t.data("imgnonce")||t.attr("data-imgnonce")},success:function(e){t.removeAttr("disabled"),i.html(e)},error:function(){t.removeAttr("disabled")}})}),jQuery(document).on("click","button#iloveimg_allcompress",function(e){o=jQuery("button.iloveimg-watermark").length,jQuery("button#iloveimg_allcompress").attr("disabled","disabled"),jQuery("button.iloveimg-watermark").each(function(e,t){jQuery(t).trigger("click"),i=setInterval(function(){var e=100-100*jQuery("button.iloveimg-watermark").length/o;jQuery("button#iloveimg_allcompress .iloveimg-watermark-all__percent").width(e+"%"),jQuery("button.iloveimg-watermark").length||clearInterval(i)},300),location.reload()})}),jQuery("<option>").val("iloveimg_bulk_action").text("Watermark Images").appendTo("select[name=action]"),jQuery("<option>").val("iloveimg_bulk_action").text("Watermark Images").appendTo("select[name=action2]"),jQuery(".iloveimg_watermarking").each(function(o,a){r["ref_"+o]=setInterval(function(){var e,t,i;e=a,t=o,i=(e=jQuery(e)).closest("td"),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"ilove_img_wm_library_is_watermarked",id:e.data("id")||e.attr("data-id"),imgnonce:e.data("imgnonce")||e.attr("data-imgnonce")},success:function(e){clearInterval(r["ref_"+t]),i.html(e)},error:function(e){console.log(e)},statusCode:{500:function(){},400:function(){}}})},1e3)}),jQuery(document).on("submit","form#images-filter, form#posts-filter",function(e){"iloveimg_bulk_action"==jQuery(document).find("select#bulk-action-selector-top option:checked").val()&&(e.preventDefault(),jQuery("table.wp-list-table.images tbody tr, table.wp-list-table.media tbody tr").each(function(e,t){jQuery(t).find("th.check-column input[type='checkbox']").is(":checked")&&jQuery(t).find("td.status button, td.iloveimg_watermarkion button").trigger("click")}))})}jQuery(".iloveimg_settings__options-container form input").on("change",function(e){jQuery(".iloveimg_settings__options-container form .submit button").hasClass("need_saving")||setTimeout(function(){jQuery(".iloveimg_settings__options-container form .submit button").addClass("need_saving"),setTimeout(function(){jQuery(".iloveimg_settings__options-container form .submit button").removeClass("need_saving")},5e3)},1e3)}),jQuery("#picker").spectrum({showPaletteOnly:!0,togglePaletteOnly:!0,togglePaletteMoreText:"more",togglePaletteLessText:"less",palette:[["#000","#444","#666","#999","#ccc","#eee","#f3f3f3","#fff"],["#f00","#f90","#ff0","#0f0","#0ff","#00f","#90f","#f0f"],["#f4cccc","#fce5cd","#fff2cc","#d9ead3","#d0e0e3","#cfe2f3","#d9d2e9","#ead1dc"],["#ea9999","#f9cb9c","#ffe599","#b6d7a8","#a2c4c9","#9fc5e8","#b4a7d6","#d5a6bd"],["#e06666","#f6b26b","#ffd966","#93c47d","#76a5af","#6fa8dc","#8e7cc3","#c27ba0"],["#c00","#e69138","#f1c232","#6aa84f","#45818e","#3d85c6","#674ea7","#a64d79"],["#900","#b45f06","#bf9000","#38761d","#134f5c","#0b5394","#351c75","#741b47"],["#600","#783f04","#7f6000","#274e13","#0c343d","#073763","#20124d","#4c1130"]],change:function(e){jQuery("#iloveimg_field_text_color").val(e),_()}});function t(){if(jQuery("#iloveimg_field_text").val()&&0<=jQuery("#iloveimg_field_scale").val()&&jQuery("#iloveimg_field_scale").val()<=100){var e=jQuery("#iloveimg_settings__watermark__preview").width()*(jQuery("#iloveimg_field_scale").val()/100);jQuery("#iloveimg_settings__watermark__preview p").css({fontSize:0});for(var t=0;jQuery("#iloveimg_settings__watermark__preview p").outerWidth()<e;t++)jQuery("#iloveimg_settings__watermark__preview p").css({fontSize:t});jQuery("#iloveimg_settings__watermark__preview p").css({fontSize:t-2,"line-height":t-2+"px"}),jQuery("#iloveimg_settings__watermark__preview img").width(e)}}function a(){var e="calc(50% - "+jQuery("#iloveimg_settings__watermark__preview p").outerWidth()/2+"px)",t="calc(50% - "+jQuery("#iloveimg_settings__watermark__preview p").outerHeight()/2+"px)";jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(0).css({top:"0px",bottom:"auto",left:"0px",right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(1).css({top:"0px",bottom:"auto",left:e,right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(2).css({top:"0px",bottom:"auto",left:"auto",right:"0px"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(3).css({top:t,bottom:"auto",left:"0px",right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(4).css({top:t,bottom:"auto",left:e,right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(5).css({top:t,bottom:"auto",left:"auto",right:"0px"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(6).css({top:"auto",bottom:"0px",left:"0px",right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(7).css({top:"auto",bottom:"0px",left:e,right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(8).css({top:"auto",bottom:"0px",left:"auto",right:"0px"}),e="calc(50% - "+jQuery("#iloveimg_settings__watermark__preview img").outerWidth()/2+"px)",t="calc(50% - "+jQuery("#iloveimg_settings__watermark__preview img").outerHeight()/2+"px)",jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(0).css({top:"0px",bottom:"auto",left:"0px",right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(1).css({top:"0px",bottom:"auto",left:e,right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(2).css({top:"0px",bottom:"auto",left:"auto",right:"0px"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(3).css({top:t,bottom:"auto",left:"0px",right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(4).css({top:t,bottom:"auto",left:e,right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(5).css({top:t,bottom:"auto",left:"auto",right:"0px"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(6).css({top:"auto",bottom:"0px",left:"0px",right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(7).css({top:"auto",bottom:"0px",left:e,right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(8).css({top:"auto",bottom:"0px",left:"auto",right:"0px"}),jQuery("#iloveimg_field_mosaic").is(":checked")?(jQuery("#iloveimg_settings__watermark__preview p, #iloveimg_settings__watermark__preview img").css({visibility:"visible"}),jQuery("table.iloveimg_watermark_position").addClass("mode_mosaic")):(jQuery("input:radio[name=iloveimg_field_position]").removeAttr("disabled"),jQuery("table.iloveimg_watermark_position").removeClass("mode_mosaic"),jQuery("#iloveimg_settings__watermark__preview p, #iloveimg_settings__watermark__preview img").css({visibility:"hidden"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(parseInt(jQuery("input:radio[name=iloveimg_field_position]:checked").val())-1).css({visibility:"visible"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(parseInt(jQuery("input:radio[name=iloveimg_field_position]:checked").val())-1).css({visibility:"visible"}))}var l,_=function(){var e=jQuery("#iloveimg_field_text_family").val(),t=jQuery("#iloveimg_field_text_bold").is(":checked")?"bold":"normal",i=jQuery("#iloveimg_field_text_italic").is(":checked")?"italic":"normal",o=jQuery("#iloveimg_field_text_underline").is(":checked")?"underline":"none",a=jQuery("#iloveimg_field_text_color").val()?jQuery("#iloveimg_field_text_color").val():"#000";-1<["Courier New","Comic Sans MS","WenQuanYi Zen Hei","Lohit Marathi","Impact"].indexOf(e)?(jQuery(".iloveimg_font_none_style").show(),jQuery("#iloveimg_field_text_bold, #iloveimg_field_text_italic").attr("disabled","disabled")):(jQuery(".iloveimg_font_none_style").hide(),jQuery("#iloveimg_field_text_bold, #iloveimg_field_text_italic").removeAttr("disabled")),jQuery("#iloveimg_settings__watermark__preview p").text(jQuery("#iloveimg_field_text").val()),jQuery("#iloveimg_settings__watermark__preview p").css({opacity:jQuery("#iloveimg_field_opacity").val()/100,transform:"rotate("+jQuery("#iloveimg_field_rotation").val()+"deg)","font-weight":t,"font-style":i,"text-decoration":o,"font-family":e,color:a}),jQuery("#iloveimg_settings__watermark__preview img").css({opacity:jQuery("#iloveimg_field_opacity").val()/100,transform:"rotate("+jQuery("#iloveimg_field_rotation").val()+"deg)"})};document.getElementById("iloveimg_settings__watermark__preview")&&(jQuery(".iloveimg_settings__options__field__cols__2-"+jQuery("#iloveimg_field_type input:checked").val()).show(),("text"==jQuery("#iloveimg_field_type input:checked").val()?(jQuery("#iloveimg_settings__watermark__preview img").hide(),jQuery("#iloveimg_settings__watermark__preview p")):(jQuery("#iloveimg_settings__watermark__preview p").hide(),jQuery("#iloveimg_settings__watermark__preview img"))).show(),jQuery("#iloveimg_field_type input").on("change",function(e){jQuery(".iloveimg_settings__options__field__cols__2-text,.iloveimg_settings__options__field__cols__2-image").hide(),jQuery(".iloveimg_settings__options__field__cols__2-"+jQuery("#iloveimg_field_type input:checked").val()).show(),("text"==jQuery("#iloveimg_field_type input:checked").val()?(jQuery("#iloveimg_settings__watermark__preview img").hide(),jQuery("#iloveimg_settings__watermark__preview p")):(jQuery("#iloveimg_settings__watermark__preview p").hide(),jQuery("#iloveimg_settings__watermark__preview img"))).show()}),jQuery(".iloveimg_settings__options__field-preview input[type='text'], .iloveimg_settings__options__field-preview input[type='number']").on("keyup change",function(e){_(),t(),a()}),jQuery(".iloveimg_settings__options__field-preview select").on("change",function(e){_(),t(),a()}),jQuery(".iloveimg_settings__options__field-preview input[type='radio']").on("change",function(e){_(),t(),a()}),jQuery(".iloveimg_settings__options__field-preview input[type='checkbox']").on("change",function(e){jQuery("#iloveimg_field_mosaic").is(":checked")&&33<jQuery("#iloveimg_field_scale").val()&&jQuery("#iloveimg_field_scale").val(33),_(),t(),a()}),_(),t(),a()),jQuery(".iloveimg_page_iloveimg-watermark-admin-page #iloveimg_restore_all").on("click",function(e){var t=jQuery(e.currentTarget),i=(e.preventDefault(),t.parent().append('\n                    <dialog id="iloveimg-watermark-restore-dialog" class="iloveimg-restore-dialog">\n                        <h2 class="iloveimg-title-dialog">Attention!</h2>\n                        <p class="iloveimg-content-dialog">The changes applied by all the tools will be lost. Do you want to continue?</p>\n                        <div class="iloveimg-btn-groups">\n                            <button id="iloveimg-watermark-dialog-aceptted" class="button button-primary">Yes</button>\n                            <button id="iloveimg-watermark-dialog-close" class="button button-secondary">Close</button>\n                        </div>\n                    </dialog>'),document.getElementById("iloveimg-watermark-restore-dialog")),e=document.getElementById("iloveimg-watermark-dialog-aceptted"),o=document.getElementById("iloveimg-watermark-dialog-close");i.showModal(),e.addEventListener("click",function(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",function(e){e.preventDefault(),i.close(),i.remove()})}),jQuery(".iloveimg_page_iloveimg-watermark-admin-page #iloveimg_clear_backup").on("click",function(e){e.preventDefault();var t=jQuery(e.currentTarget),i=(t.parent().append('\n                    <dialog id="iloveimg-watermark-restore-dialog" class="iloveimg-restore-dialog">\n                        <h2 class="iloveimg-title-dialog">Attention!</h2>\n                        <p class="iloveimg-content-dialog">All files inside iloveimg-backup folder will be deleted. Do you want to continue?</p>\n                        <div class="iloveimg-btn-groups">\n                            <button id="iloveimg-watermark-dialog-aceptted" class="button button-primary">Yes</button>\n                            <button id="iloveimg-watermark-dialog-close" class="button button-secondary">Close</button>\n                        </div>\n                    </dialog>'),document.getElementById("iloveimg-watermark-restore-dialog")),e=document.getElementById("iloveimg-watermark-dialog-aceptted"),o=document.getElementById("iloveimg-watermark-dialog-close");i.showModal(),e.addEventListener("click",function(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",function(e){e.preventDefault(),i.close(),i.remove()})}),jQuery(".iloveimg-watermark.iloveimg_restore_button_wrapper .iloveimg_restore_button").on("click",function(e){e.preventDefault();var t=jQuery(e.currentTarget),i=(i=jQuery(e.currentTarget).siblings("#_wpnonce")).val(),o=t.data("action"),a=t.data("id"),r=(t.hide(),t.nextAll(".loading").show(),t.parent().append('\n                    <dialog id="iloveimg-watermark-restore-dialog" class="iloveimg-restore-dialog">\n                        <h2 class="iloveimg-title-dialog">Attention!</h2>\n                        <p class="iloveimg-content-dialog">The changes applied by all the tools will be lost. Do you want to continue?</p>\n                        <div class="iloveimg-btn-groups">\n                            <button id="iloveimg-watermark-dialog-aceptted" class="button button-primary">Yes</button>\n                            <button id="iloveimg-watermark-dialog-close" class="button button-secondary">Close</button>\n                        </div>\n                    </dialog>'),document.getElementById("iloveimg-watermark-restore-dialog")),e=document.getElementById("iloveimg-watermark-dialog-aceptted"),l=document.getElementById("iloveimg-watermark-dialog-close");r.showModal(),e.addEventListener("click",function(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",function(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.7/assets/js/spectrum.min.js

    r3223598 r3255408  
    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()})});
     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()})});
  • watermark-protect-images/tags/2.2.7/composer.json

    r3223598 r3255408  
    1818        "szepeviktor/phpstan-wordpress": "^2.0",
    1919        "phpstan/extension-installer": "^1.4",
    20         "wp-coding-standards/wpcs": "^3.0"
     20        "wp-coding-standards/wpcs": "^3.1"
    2121    },
    2222    "config": {
  • watermark-protect-images/tags/2.2.7/ilove-img-watermark.php

    r3240632 r3255408  
    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.6
     13 * Version:           2.2.7
    1414 * Requires at least: 5.3
    1515 * Requires PHP:      7.4
  • watermark-protect-images/tags/2.2.7/package.json

    r3240632 r3255408  
    1919    "gulp-if": "^3.0.0",
    2020    "gulp-rename": "^2.0.0",
    21     "gulp-sass": "^6.0.0",
     21    "gulp-sass": "^6.0.1",
    2222    "gulp-sourcemaps": "^3.0.0",
    2323    "gulp-uglify": "^3.0.2",
    2424    "merge-stream": "^2.0.0",
    25     "sass": "^1.84"
     25    "sass": "^1.85"
    2626  }
    2727}
  • watermark-protect-images/tags/2.2.7/vendor/autoload.php

    r3223598 r3255408  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit7abb1584d4975b6b8efa630a3484119f::getLoader();
     25return ComposerAutoloaderInit11def2a75e4497f0cda12c94b5a6169c::getLoader();
  • watermark-protect-images/tags/2.2.7/vendor/composer/autoload_real.php

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

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

    r3240632 r3255408  
    810810        {
    811811            "name": "phpstan/phpstan",
    812             "version": "2.1.4",
    813             "version_normalized": "2.1.4.0",
     812            "version": "2.1.8",
     813            "version_normalized": "2.1.8.0",
    814814            "source": {
    815815                "type": "git",
    816816                "url": "https://github.com/phpstan/phpstan.git",
    817                 "reference": "8f99e18eb775dbaf6460c95fa0b65312da9c746a"
    818             },
    819             "dist": {
    820                 "type": "zip",
    821                 "url": "https://api.github.com/repos/phpstan/phpstan/zipball/8f99e18eb775dbaf6460c95fa0b65312da9c746a",
    822                 "reference": "8f99e18eb775dbaf6460c95fa0b65312da9c746a",
     817                "reference": "f9adff3b87c03b12cc7e46a30a524648e497758f"
     818            },
     819            "dist": {
     820                "type": "zip",
     821                "url": "https://api.github.com/repos/phpstan/phpstan/zipball/f9adff3b87c03b12cc7e46a30a524648e497758f",
     822                "reference": "f9adff3b87c03b12cc7e46a30a524648e497758f",
    823823                "shasum": ""
    824824            },
     
    829829                "phpstan/phpstan-shim": "*"
    830830            },
    831             "time": "2025-02-10T08:25:21+00:00",
     831            "time": "2025-03-09T09:30:48+00:00",
    832832            "bin": [
    833833                "phpstan",
  • watermark-protect-images/tags/2.2.7/vendor/composer/installed.php

    r3240632 r3255408  
    44        'pretty_version' => 'dev-develop',
    55        'version' => 'dev-develop',
    6         'reference' => 'e3d54acf34318ccc486eebc26924627f8a656db6',
     6        'reference' => '9dd6d8fa3d7dba50fda12d66773de318ce4642a8',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    7070            'pretty_version' => 'dev-develop',
    7171            'version' => 'dev-develop',
    72             'reference' => 'e3d54acf34318ccc486eebc26924627f8a656db6',
     72            'reference' => '9dd6d8fa3d7dba50fda12d66773de318ce4642a8',
    7373            'type' => 'wordpress-plugin',
    7474            'install_path' => __DIR__ . '/../../',
     
    113113        ),
    114114        'phpstan/phpstan' => array(
    115             'pretty_version' => '2.1.4',
    116             'version' => '2.1.4.0',
    117             'reference' => '8f99e18eb775dbaf6460c95fa0b65312da9c746a',
     115            'pretty_version' => '2.1.8',
     116            'version' => '2.1.8.0',
     117            'reference' => 'f9adff3b87c03b12cc7e46a30a524648e497758f',
    118118            'type' => 'library',
    119119            'install_path' => __DIR__ . '/../phpstan/phpstan',
  • watermark-protect-images/trunk/README.txt

    r3240632 r3255408  
    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.6
     3Version: 2.2.7
    44Author: iLovePDF
    55Author URI: https://www.iloveimg.com/
     
    88Requires at least: 5.3
    99Tested up to: 6.7
    10 Stable tag: 2.2.6
     10Stable tag: 2.2.7
    1111Requires PHP: 7.4
    1212License: GPLv2 or later
     
    100100
    101101== Changelog ==
     102
     103= 2.2.7 =
     104Improved
     105* Update Libraries.
    102106
    103107= 2.2.6 =
  • watermark-protect-images/trunk/admin/Ilove_Img_Wm_Plugin.php

    r3240632 r3255408  
    1919     * @var      string    VERSION    The current version of the plugin.
    2020     */
    21     const VERSION = '2.2.6';
     21    const VERSION = '2.2.7';
    2222
    2323    /**
  • watermark-protect-images/trunk/assets/js/main.min.js

    r3240632 r3255408  
    1 "use strict";!function(){var i,e="",r=(void 0!==window.adminpage&&(e=window.adminpage),new Array);var o;switch(e){case"upload-php":case"media_page_iloveimg-media-page":case"media_page_iloveimg-media-watermark-page":case"post-php":jQuery(document).on("click","button.iloveimg-watermark",function(e){var t=jQuery(e.target),i=t.closest("td");t.attr("disabled","disabled"),t.next().show(),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"ilove_img_wm_library",id:t.data("id")||t.attr("data-id"),imgnonce:t.data("imgnonce")||t.attr("data-imgnonce")},success:function(e){t.removeAttr("disabled"),i.html(e)},error:function(){t.removeAttr("disabled")}})}),jQuery(document).on("click","button#iloveimg_allcompress",function(e){o=jQuery("button.iloveimg-watermark").length,jQuery("button#iloveimg_allcompress").attr("disabled","disabled"),jQuery("button.iloveimg-watermark").each(function(e,t){jQuery(t).trigger("click"),i=setInterval(function(){var e=100-100*jQuery("button.iloveimg-watermark").length/o;jQuery("button#iloveimg_allcompress .iloveimg-watermark-all__percent").width(e+"%"),jQuery("button.iloveimg-watermark").length||clearInterval(i)},300),location.reload()})}),jQuery("<option>").val("iloveimg_bulk_action").text("Watermark Images").appendTo("select[name=action]"),jQuery("<option>").val("iloveimg_bulk_action").text("Watermark Images").appendTo("select[name=action2]"),jQuery(".iloveimg_watermarking").each(function(o,a){r["ref_"+o]=setInterval(function(){var e,t,i;e=a,t=o,i=(e=jQuery(e)).closest("td"),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"ilove_img_wm_library_is_watermarked",id:e.data("id")||e.attr("data-id"),imgnonce:e.data("imgnonce")||e.attr("data-imgnonce")},success:function(e){clearInterval(r["ref_"+t]),i.html(e)},error:function(e){console.log(e)},statusCode:{500:function(){},400:function(){}}})},1e3)}),jQuery(document).on("submit","form#images-filter, form#posts-filter",function(e){"iloveimg_bulk_action"==jQuery(document).find("select#bulk-action-selector-top option:checked").val()&&(e.preventDefault(),jQuery("table.wp-list-table.images tbody tr, table.wp-list-table.media tbody tr").each(function(e,t){jQuery(t).find("th.check-column input[type='checkbox']").is(":checked")&&jQuery(t).find("td.status button, td.iloveimg_watermarkion button").trigger("click")}))})}jQuery(".iloveimg_settings__options-container form input").on("change",function(e){jQuery(".iloveimg_settings__options-container form .submit button").hasClass("need_saving")||setTimeout(function(){jQuery(".iloveimg_settings__options-container form .submit button").addClass("need_saving"),setTimeout(function(){jQuery(".iloveimg_settings__options-container form .submit button").removeClass("need_saving")},5e3)},1e3)}),jQuery("#picker").spectrum({showPaletteOnly:!0,togglePaletteOnly:!0,togglePaletteMoreText:"more",togglePaletteLessText:"less",palette:[["#000","#444","#666","#999","#ccc","#eee","#f3f3f3","#fff"],["#f00","#f90","#ff0","#0f0","#0ff","#00f","#90f","#f0f"],["#f4cccc","#fce5cd","#fff2cc","#d9ead3","#d0e0e3","#cfe2f3","#d9d2e9","#ead1dc"],["#ea9999","#f9cb9c","#ffe599","#b6d7a8","#a2c4c9","#9fc5e8","#b4a7d6","#d5a6bd"],["#e06666","#f6b26b","#ffd966","#93c47d","#76a5af","#6fa8dc","#8e7cc3","#c27ba0"],["#c00","#e69138","#f1c232","#6aa84f","#45818e","#3d85c6","#674ea7","#a64d79"],["#900","#b45f06","#bf9000","#38761d","#134f5c","#0b5394","#351c75","#741b47"],["#600","#783f04","#7f6000","#274e13","#0c343d","#073763","#20124d","#4c1130"]],change:function(e){jQuery("#iloveimg_field_text_color").val(e),_()}});function t(){if(jQuery("#iloveimg_field_text").val()&&0<=jQuery("#iloveimg_field_scale").val()&&jQuery("#iloveimg_field_scale").val()<=100){var e=jQuery("#iloveimg_settings__watermark__preview").width()*(jQuery("#iloveimg_field_scale").val()/100);jQuery("#iloveimg_settings__watermark__preview p").css({fontSize:0});for(var t=0;jQuery("#iloveimg_settings__watermark__preview p").outerWidth()<e;t++)jQuery("#iloveimg_settings__watermark__preview p").css({fontSize:t});jQuery("#iloveimg_settings__watermark__preview p").css({fontSize:t-2,"line-height":t-2+"px"}),jQuery("#iloveimg_settings__watermark__preview img").width(e)}}function a(){var e="calc(50% - "+jQuery("#iloveimg_settings__watermark__preview p").outerWidth()/2+"px)",t="calc(50% - "+jQuery("#iloveimg_settings__watermark__preview p").outerHeight()/2+"px)";jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(0).css({top:"0px",bottom:"auto",left:"0px",right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(1).css({top:"0px",bottom:"auto",left:e,right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(2).css({top:"0px",bottom:"auto",left:"auto",right:"0px"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(3).css({top:t,bottom:"auto",left:"0px",right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(4).css({top:t,bottom:"auto",left:e,right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(5).css({top:t,bottom:"auto",left:"auto",right:"0px"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(6).css({top:"auto",bottom:"0px",left:"0px",right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(7).css({top:"auto",bottom:"0px",left:e,right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(8).css({top:"auto",bottom:"0px",left:"auto",right:"0px"}),e="calc(50% - "+jQuery("#iloveimg_settings__watermark__preview img").outerWidth()/2+"px)",t="calc(50% - "+jQuery("#iloveimg_settings__watermark__preview img").outerHeight()/2+"px)",jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(0).css({top:"0px",bottom:"auto",left:"0px",right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(1).css({top:"0px",bottom:"auto",left:e,right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(2).css({top:"0px",bottom:"auto",left:"auto",right:"0px"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(3).css({top:t,bottom:"auto",left:"0px",right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(4).css({top:t,bottom:"auto",left:e,right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(5).css({top:t,bottom:"auto",left:"auto",right:"0px"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(6).css({top:"auto",bottom:"0px",left:"0px",right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(7).css({top:"auto",bottom:"0px",left:e,right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(8).css({top:"auto",bottom:"0px",left:"auto",right:"0px"}),jQuery("#iloveimg_field_mosaic").is(":checked")?(jQuery("#iloveimg_settings__watermark__preview p, #iloveimg_settings__watermark__preview img").css({visibility:"visible"}),jQuery("table.iloveimg_watermark_position").addClass("mode_mosaic")):(jQuery("input:radio[name=iloveimg_field_position]").removeAttr("disabled"),jQuery("table.iloveimg_watermark_position").removeClass("mode_mosaic"),jQuery("#iloveimg_settings__watermark__preview p, #iloveimg_settings__watermark__preview img").css({visibility:"hidden"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(parseInt(jQuery("input:radio[name=iloveimg_field_position]:checked").val())-1).css({visibility:"visible"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(parseInt(jQuery("input:radio[name=iloveimg_field_position]:checked").val())-1).css({visibility:"visible"}))}var l,_=function(){var e=jQuery("#iloveimg_field_text_family").val(),t=jQuery("#iloveimg_field_text_bold").is(":checked")?"bold":"normal",i=jQuery("#iloveimg_field_text_italic").is(":checked")?"italic":"normal",o=jQuery("#iloveimg_field_text_underline").is(":checked")?"underline":"none",a=jQuery("#iloveimg_field_text_color").val()?jQuery("#iloveimg_field_text_color").val():"#000";-1<["Courier New","Comic Sans MS","WenQuanYi Zen Hei","Lohit Marathi","Impact"].indexOf(e)?(jQuery(".iloveimg_font_none_style").show(),jQuery("#iloveimg_field_text_bold, #iloveimg_field_text_italic").attr("disabled","disabled")):(jQuery(".iloveimg_font_none_style").hide(),jQuery("#iloveimg_field_text_bold, #iloveimg_field_text_italic").removeAttr("disabled")),jQuery("#iloveimg_settings__watermark__preview p").text(jQuery("#iloveimg_field_text").val()),jQuery("#iloveimg_settings__watermark__preview p").css({opacity:jQuery("#iloveimg_field_opacity").val()/100,transform:"rotate("+jQuery("#iloveimg_field_rotation").val()+"deg)","font-weight":t,"font-style":i,"text-decoration":o,"font-family":e,color:a}),jQuery("#iloveimg_settings__watermark__preview img").css({opacity:jQuery("#iloveimg_field_opacity").val()/100,transform:"rotate("+jQuery("#iloveimg_field_rotation").val()+"deg)"})};document.getElementById("iloveimg_settings__watermark__preview")&&(jQuery(".iloveimg_settings__options__field__cols__2-"+jQuery("#iloveimg_field_type input:checked").val()).show(),("text"==jQuery("#iloveimg_field_type input:checked").val()?(jQuery("#iloveimg_settings__watermark__preview img").hide(),jQuery("#iloveimg_settings__watermark__preview p")):(jQuery("#iloveimg_settings__watermark__preview p").hide(),jQuery("#iloveimg_settings__watermark__preview img"))).show(),jQuery("#iloveimg_field_type input").on("change",function(e){jQuery(".iloveimg_settings__options__field__cols__2-text,.iloveimg_settings__options__field__cols__2-image").hide(),jQuery(".iloveimg_settings__options__field__cols__2-"+jQuery("#iloveimg_field_type input:checked").val()).show(),("text"==jQuery("#iloveimg_field_type input:checked").val()?(jQuery("#iloveimg_settings__watermark__preview img").hide(),jQuery("#iloveimg_settings__watermark__preview p")):(jQuery("#iloveimg_settings__watermark__preview p").hide(),jQuery("#iloveimg_settings__watermark__preview img"))).show()}),jQuery(".iloveimg_settings__options__field-preview input[type='text'], .iloveimg_settings__options__field-preview input[type='number']").on("keyup change",function(e){_(),t(),a()}),jQuery(".iloveimg_settings__options__field-preview select").on("change",function(e){_(),t(),a()}),jQuery(".iloveimg_settings__options__field-preview input[type='radio']").on("change",function(e){_(),t(),a()}),jQuery(".iloveimg_settings__options__field-preview input[type='checkbox']").on("change",function(e){jQuery("#iloveimg_field_mosaic").is(":checked")&&33<jQuery("#iloveimg_field_scale").val()&&jQuery("#iloveimg_field_scale").val(33),_(),t(),a()}),_(),t(),a()),jQuery(".iloveimg_page_iloveimg-watermark-admin-page #iloveimg_restore_all").on("click",function(e){var t=jQuery(e.currentTarget),i=(e.preventDefault(),t.parent().append('\n                    <dialog id="iloveimg-watermark-restore-dialog" class="iloveimg-restore-dialog">\n                        <h2 class="iloveimg-title-dialog">Attention!</h2>\n                        <p class="iloveimg-content-dialog">The changes applied by all the tools will be lost. Do you want to continue?</p>\n                        <div class="iloveimg-btn-groups">\n                            <button id="iloveimg-watermark-dialog-aceptted" class="button button-primary">Yes</button>\n                            <button id="iloveimg-watermark-dialog-close" class="button button-secondary">Close</button>\n                        </div>\n                    </dialog>'),document.getElementById("iloveimg-watermark-restore-dialog")),e=document.getElementById("iloveimg-watermark-dialog-aceptted"),o=document.getElementById("iloveimg-watermark-dialog-close");i.showModal(),e.addEventListener("click",function(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",function(e){e.preventDefault(),i.close(),i.remove()})}),jQuery(".iloveimg_page_iloveimg-watermark-admin-page #iloveimg_clear_backup").on("click",function(e){e.preventDefault();var t=jQuery(e.currentTarget),i=(t.parent().append('\n                    <dialog id="iloveimg-watermark-restore-dialog" class="iloveimg-restore-dialog">\n                        <h2 class="iloveimg-title-dialog">Attention!</h2>\n                        <p class="iloveimg-content-dialog">All files inside iloveimg-backup folder will be deleted. Do you want to continue?</p>\n                        <div class="iloveimg-btn-groups">\n                            <button id="iloveimg-watermark-dialog-aceptted" class="button button-primary">Yes</button>\n                            <button id="iloveimg-watermark-dialog-close" class="button button-secondary">Close</button>\n                        </div>\n                    </dialog>'),document.getElementById("iloveimg-watermark-restore-dialog")),e=document.getElementById("iloveimg-watermark-dialog-aceptted"),o=document.getElementById("iloveimg-watermark-dialog-close");i.showModal(),e.addEventListener("click",function(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",function(e){e.preventDefault(),i.close(),i.remove()})}),jQuery(".iloveimg-watermark.iloveimg_restore_button_wrapper .iloveimg_restore_button").on("click",function(e){e.preventDefault();var t=jQuery(e.currentTarget),i=(i=jQuery(e.currentTarget).siblings("#_wpnonce")).val(),o=t.data("action"),a=t.data("id"),r=(t.hide(),t.nextAll(".loading").show(),t.parent().append('\n                    <dialog id="iloveimg-watermark-restore-dialog" class="iloveimg-restore-dialog">\n                        <h2 class="iloveimg-title-dialog">Attention!</h2>\n                        <p class="iloveimg-content-dialog">The changes applied by all the tools will be lost. Do you want to continue?</p>\n                        <div class="iloveimg-btn-groups">\n                            <button id="iloveimg-watermark-dialog-aceptted" class="button button-primary">Yes</button>\n                            <button id="iloveimg-watermark-dialog-close" class="button button-secondary">Close</button>\n                        </div>\n                    </dialog>'),document.getElementById("iloveimg-watermark-restore-dialog")),e=document.getElementById("iloveimg-watermark-dialog-aceptted"),l=document.getElementById("iloveimg-watermark-dialog-close");r.showModal(),e.addEventListener("click",function(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",function(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();
     1!function(){var i,e="",r=(void 0!==window.adminpage&&(e=window.adminpage),new Array);var o;switch(e){case"upload-php":case"media_page_iloveimg-media-page":case"media_page_iloveimg-media-watermark-page":case"post-php":jQuery(document).on("click","button.iloveimg-watermark",function(e){var t=jQuery(e.target),i=t.closest("td");t.attr("disabled","disabled"),t.next().show(),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"ilove_img_wm_library",id:t.data("id")||t.attr("data-id"),imgnonce:t.data("imgnonce")||t.attr("data-imgnonce")},success:function(e){t.removeAttr("disabled"),i.html(e)},error:function(){t.removeAttr("disabled")}})}),jQuery(document).on("click","button#iloveimg_allcompress",function(e){o=jQuery("button.iloveimg-watermark").length,jQuery("button#iloveimg_allcompress").attr("disabled","disabled"),jQuery("button.iloveimg-watermark").each(function(e,t){jQuery(t).trigger("click"),i=setInterval(function(){var e=100-100*jQuery("button.iloveimg-watermark").length/o;jQuery("button#iloveimg_allcompress .iloveimg-watermark-all__percent").width(e+"%"),jQuery("button.iloveimg-watermark").length||clearInterval(i)},300),location.reload()})}),jQuery("<option>").val("iloveimg_bulk_action").text("Watermark Images").appendTo("select[name=action]"),jQuery("<option>").val("iloveimg_bulk_action").text("Watermark Images").appendTo("select[name=action2]"),jQuery(".iloveimg_watermarking").each(function(o,a){r["ref_"+o]=setInterval(function(){var e,t,i;e=a,t=o,i=(e=jQuery(e)).closest("td"),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"ilove_img_wm_library_is_watermarked",id:e.data("id")||e.attr("data-id"),imgnonce:e.data("imgnonce")||e.attr("data-imgnonce")},success:function(e){clearInterval(r["ref_"+t]),i.html(e)},error:function(e){console.log(e)},statusCode:{500:function(){},400:function(){}}})},1e3)}),jQuery(document).on("submit","form#images-filter, form#posts-filter",function(e){"iloveimg_bulk_action"==jQuery(document).find("select#bulk-action-selector-top option:checked").val()&&(e.preventDefault(),jQuery("table.wp-list-table.images tbody tr, table.wp-list-table.media tbody tr").each(function(e,t){jQuery(t).find("th.check-column input[type='checkbox']").is(":checked")&&jQuery(t).find("td.status button, td.iloveimg_watermarkion button").trigger("click")}))})}jQuery(".iloveimg_settings__options-container form input").on("change",function(e){jQuery(".iloveimg_settings__options-container form .submit button").hasClass("need_saving")||setTimeout(function(){jQuery(".iloveimg_settings__options-container form .submit button").addClass("need_saving"),setTimeout(function(){jQuery(".iloveimg_settings__options-container form .submit button").removeClass("need_saving")},5e3)},1e3)}),jQuery("#picker").spectrum({showPaletteOnly:!0,togglePaletteOnly:!0,togglePaletteMoreText:"more",togglePaletteLessText:"less",palette:[["#000","#444","#666","#999","#ccc","#eee","#f3f3f3","#fff"],["#f00","#f90","#ff0","#0f0","#0ff","#00f","#90f","#f0f"],["#f4cccc","#fce5cd","#fff2cc","#d9ead3","#d0e0e3","#cfe2f3","#d9d2e9","#ead1dc"],["#ea9999","#f9cb9c","#ffe599","#b6d7a8","#a2c4c9","#9fc5e8","#b4a7d6","#d5a6bd"],["#e06666","#f6b26b","#ffd966","#93c47d","#76a5af","#6fa8dc","#8e7cc3","#c27ba0"],["#c00","#e69138","#f1c232","#6aa84f","#45818e","#3d85c6","#674ea7","#a64d79"],["#900","#b45f06","#bf9000","#38761d","#134f5c","#0b5394","#351c75","#741b47"],["#600","#783f04","#7f6000","#274e13","#0c343d","#073763","#20124d","#4c1130"]],change:function(e){jQuery("#iloveimg_field_text_color").val(e),_()}});function t(){if(jQuery("#iloveimg_field_text").val()&&0<=jQuery("#iloveimg_field_scale").val()&&jQuery("#iloveimg_field_scale").val()<=100){var e=jQuery("#iloveimg_settings__watermark__preview").width()*(jQuery("#iloveimg_field_scale").val()/100);jQuery("#iloveimg_settings__watermark__preview p").css({fontSize:0});for(var t=0;jQuery("#iloveimg_settings__watermark__preview p").outerWidth()<e;t++)jQuery("#iloveimg_settings__watermark__preview p").css({fontSize:t});jQuery("#iloveimg_settings__watermark__preview p").css({fontSize:t-2,"line-height":t-2+"px"}),jQuery("#iloveimg_settings__watermark__preview img").width(e)}}function a(){var e="calc(50% - "+jQuery("#iloveimg_settings__watermark__preview p").outerWidth()/2+"px)",t="calc(50% - "+jQuery("#iloveimg_settings__watermark__preview p").outerHeight()/2+"px)";jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(0).css({top:"0px",bottom:"auto",left:"0px",right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(1).css({top:"0px",bottom:"auto",left:e,right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(2).css({top:"0px",bottom:"auto",left:"auto",right:"0px"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(3).css({top:t,bottom:"auto",left:"0px",right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(4).css({top:t,bottom:"auto",left:e,right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(5).css({top:t,bottom:"auto",left:"auto",right:"0px"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(6).css({top:"auto",bottom:"0px",left:"0px",right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(7).css({top:"auto",bottom:"0px",left:e,right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(8).css({top:"auto",bottom:"0px",left:"auto",right:"0px"}),e="calc(50% - "+jQuery("#iloveimg_settings__watermark__preview img").outerWidth()/2+"px)",t="calc(50% - "+jQuery("#iloveimg_settings__watermark__preview img").outerHeight()/2+"px)",jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(0).css({top:"0px",bottom:"auto",left:"0px",right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(1).css({top:"0px",bottom:"auto",left:e,right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(2).css({top:"0px",bottom:"auto",left:"auto",right:"0px"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(3).css({top:t,bottom:"auto",left:"0px",right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(4).css({top:t,bottom:"auto",left:e,right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(5).css({top:t,bottom:"auto",left:"auto",right:"0px"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(6).css({top:"auto",bottom:"0px",left:"0px",right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(7).css({top:"auto",bottom:"0px",left:e,right:"auto"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(8).css({top:"auto",bottom:"0px",left:"auto",right:"0px"}),jQuery("#iloveimg_field_mosaic").is(":checked")?(jQuery("#iloveimg_settings__watermark__preview p, #iloveimg_settings__watermark__preview img").css({visibility:"visible"}),jQuery("table.iloveimg_watermark_position").addClass("mode_mosaic")):(jQuery("input:radio[name=iloveimg_field_position]").removeAttr("disabled"),jQuery("table.iloveimg_watermark_position").removeClass("mode_mosaic"),jQuery("#iloveimg_settings__watermark__preview p, #iloveimg_settings__watermark__preview img").css({visibility:"hidden"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-texts p").eq(parseInt(jQuery("input:radio[name=iloveimg_field_position]:checked").val())-1).css({visibility:"visible"}),jQuery("#iloveimg_settings__watermark__preview .iloveimg_settings__watermark__preview-images img").eq(parseInt(jQuery("input:radio[name=iloveimg_field_position]:checked").val())-1).css({visibility:"visible"}))}var l,_=function(){var e=jQuery("#iloveimg_field_text_family").val(),t=jQuery("#iloveimg_field_text_bold").is(":checked")?"bold":"normal",i=jQuery("#iloveimg_field_text_italic").is(":checked")?"italic":"normal",o=jQuery("#iloveimg_field_text_underline").is(":checked")?"underline":"none",a=jQuery("#iloveimg_field_text_color").val()?jQuery("#iloveimg_field_text_color").val():"#000";-1<["Courier New","Comic Sans MS","WenQuanYi Zen Hei","Lohit Marathi","Impact"].indexOf(e)?(jQuery(".iloveimg_font_none_style").show(),jQuery("#iloveimg_field_text_bold, #iloveimg_field_text_italic").attr("disabled","disabled")):(jQuery(".iloveimg_font_none_style").hide(),jQuery("#iloveimg_field_text_bold, #iloveimg_field_text_italic").removeAttr("disabled")),jQuery("#iloveimg_settings__watermark__preview p").text(jQuery("#iloveimg_field_text").val()),jQuery("#iloveimg_settings__watermark__preview p").css({opacity:jQuery("#iloveimg_field_opacity").val()/100,transform:"rotate("+jQuery("#iloveimg_field_rotation").val()+"deg)","font-weight":t,"font-style":i,"text-decoration":o,"font-family":e,color:a}),jQuery("#iloveimg_settings__watermark__preview img").css({opacity:jQuery("#iloveimg_field_opacity").val()/100,transform:"rotate("+jQuery("#iloveimg_field_rotation").val()+"deg)"})};document.getElementById("iloveimg_settings__watermark__preview")&&(jQuery(".iloveimg_settings__options__field__cols__2-"+jQuery("#iloveimg_field_type input:checked").val()).show(),("text"==jQuery("#iloveimg_field_type input:checked").val()?(jQuery("#iloveimg_settings__watermark__preview img").hide(),jQuery("#iloveimg_settings__watermark__preview p")):(jQuery("#iloveimg_settings__watermark__preview p").hide(),jQuery("#iloveimg_settings__watermark__preview img"))).show(),jQuery("#iloveimg_field_type input").on("change",function(e){jQuery(".iloveimg_settings__options__field__cols__2-text,.iloveimg_settings__options__field__cols__2-image").hide(),jQuery(".iloveimg_settings__options__field__cols__2-"+jQuery("#iloveimg_field_type input:checked").val()).show(),("text"==jQuery("#iloveimg_field_type input:checked").val()?(jQuery("#iloveimg_settings__watermark__preview img").hide(),jQuery("#iloveimg_settings__watermark__preview p")):(jQuery("#iloveimg_settings__watermark__preview p").hide(),jQuery("#iloveimg_settings__watermark__preview img"))).show()}),jQuery(".iloveimg_settings__options__field-preview input[type='text'], .iloveimg_settings__options__field-preview input[type='number']").on("keyup change",function(e){_(),t(),a()}),jQuery(".iloveimg_settings__options__field-preview select").on("change",function(e){_(),t(),a()}),jQuery(".iloveimg_settings__options__field-preview input[type='radio']").on("change",function(e){_(),t(),a()}),jQuery(".iloveimg_settings__options__field-preview input[type='checkbox']").on("change",function(e){jQuery("#iloveimg_field_mosaic").is(":checked")&&33<jQuery("#iloveimg_field_scale").val()&&jQuery("#iloveimg_field_scale").val(33),_(),t(),a()}),_(),t(),a()),jQuery(".iloveimg_page_iloveimg-watermark-admin-page #iloveimg_restore_all").on("click",function(e){var t=jQuery(e.currentTarget),i=(e.preventDefault(),t.parent().append('\n                    <dialog id="iloveimg-watermark-restore-dialog" class="iloveimg-restore-dialog">\n                        <h2 class="iloveimg-title-dialog">Attention!</h2>\n                        <p class="iloveimg-content-dialog">The changes applied by all the tools will be lost. Do you want to continue?</p>\n                        <div class="iloveimg-btn-groups">\n                            <button id="iloveimg-watermark-dialog-aceptted" class="button button-primary">Yes</button>\n                            <button id="iloveimg-watermark-dialog-close" class="button button-secondary">Close</button>\n                        </div>\n                    </dialog>'),document.getElementById("iloveimg-watermark-restore-dialog")),e=document.getElementById("iloveimg-watermark-dialog-aceptted"),o=document.getElementById("iloveimg-watermark-dialog-close");i.showModal(),e.addEventListener("click",function(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",function(e){e.preventDefault(),i.close(),i.remove()})}),jQuery(".iloveimg_page_iloveimg-watermark-admin-page #iloveimg_clear_backup").on("click",function(e){e.preventDefault();var t=jQuery(e.currentTarget),i=(t.parent().append('\n                    <dialog id="iloveimg-watermark-restore-dialog" class="iloveimg-restore-dialog">\n                        <h2 class="iloveimg-title-dialog">Attention!</h2>\n                        <p class="iloveimg-content-dialog">All files inside iloveimg-backup folder will be deleted. Do you want to continue?</p>\n                        <div class="iloveimg-btn-groups">\n                            <button id="iloveimg-watermark-dialog-aceptted" class="button button-primary">Yes</button>\n                            <button id="iloveimg-watermark-dialog-close" class="button button-secondary">Close</button>\n                        </div>\n                    </dialog>'),document.getElementById("iloveimg-watermark-restore-dialog")),e=document.getElementById("iloveimg-watermark-dialog-aceptted"),o=document.getElementById("iloveimg-watermark-dialog-close");i.showModal(),e.addEventListener("click",function(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",function(e){e.preventDefault(),i.close(),i.remove()})}),jQuery(".iloveimg-watermark.iloveimg_restore_button_wrapper .iloveimg_restore_button").on("click",function(e){e.preventDefault();var t=jQuery(e.currentTarget),i=(i=jQuery(e.currentTarget).siblings("#_wpnonce")).val(),o=t.data("action"),a=t.data("id"),r=(t.hide(),t.nextAll(".loading").show(),t.parent().append('\n                    <dialog id="iloveimg-watermark-restore-dialog" class="iloveimg-restore-dialog">\n                        <h2 class="iloveimg-title-dialog">Attention!</h2>\n                        <p class="iloveimg-content-dialog">The changes applied by all the tools will be lost. Do you want to continue?</p>\n                        <div class="iloveimg-btn-groups">\n                            <button id="iloveimg-watermark-dialog-aceptted" class="button button-primary">Yes</button>\n                            <button id="iloveimg-watermark-dialog-close" class="button button-secondary">Close</button>\n                        </div>\n                    </dialog>'),document.getElementById("iloveimg-watermark-restore-dialog")),e=document.getElementById("iloveimg-watermark-dialog-aceptted"),l=document.getElementById("iloveimg-watermark-dialog-close");r.showModal(),e.addEventListener("click",function(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",function(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

    r3223598 r3255408  
    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()})});
     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()})});
  • watermark-protect-images/trunk/composer.json

    r3223598 r3255408  
    1818        "szepeviktor/phpstan-wordpress": "^2.0",
    1919        "phpstan/extension-installer": "^1.4",
    20         "wp-coding-standards/wpcs": "^3.0"
     20        "wp-coding-standards/wpcs": "^3.1"
    2121    },
    2222    "config": {
  • watermark-protect-images/trunk/ilove-img-watermark.php

    r3240632 r3255408  
    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.6
     13 * Version:           2.2.7
    1414 * Requires at least: 5.3
    1515 * Requires PHP:      7.4
  • watermark-protect-images/trunk/package.json

    r3240632 r3255408  
    1919    "gulp-if": "^3.0.0",
    2020    "gulp-rename": "^2.0.0",
    21     "gulp-sass": "^6.0.0",
     21    "gulp-sass": "^6.0.1",
    2222    "gulp-sourcemaps": "^3.0.0",
    2323    "gulp-uglify": "^3.0.2",
    2424    "merge-stream": "^2.0.0",
    25     "sass": "^1.84"
     25    "sass": "^1.85"
    2626  }
    2727}
  • watermark-protect-images/trunk/vendor/autoload.php

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

    r3223598 r3255408  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit7abb1584d4975b6b8efa630a3484119f
     5class ComposerAutoloaderInit11def2a75e4497f0cda12c94b5a6169c
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit7abb1584d4975b6b8efa630a3484119f', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit11def2a75e4497f0cda12c94b5a6169c', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit7abb1584d4975b6b8efa630a3484119f', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit11def2a75e4497f0cda12c94b5a6169c', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit7abb1584d4975b6b8efa630a3484119f::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit11def2a75e4497f0cda12c94b5a6169c::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $filesToLoad = \Composer\Autoload\ComposerStaticInit7abb1584d4975b6b8efa630a3484119f::$files;
     36        $filesToLoad = \Composer\Autoload\ComposerStaticInit11def2a75e4497f0cda12c94b5a6169c::$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

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

    r3240632 r3255408  
    810810        {
    811811            "name": "phpstan/phpstan",
    812             "version": "2.1.4",
    813             "version_normalized": "2.1.4.0",
     812            "version": "2.1.8",
     813            "version_normalized": "2.1.8.0",
    814814            "source": {
    815815                "type": "git",
    816816                "url": "https://github.com/phpstan/phpstan.git",
    817                 "reference": "8f99e18eb775dbaf6460c95fa0b65312da9c746a"
    818             },
    819             "dist": {
    820                 "type": "zip",
    821                 "url": "https://api.github.com/repos/phpstan/phpstan/zipball/8f99e18eb775dbaf6460c95fa0b65312da9c746a",
    822                 "reference": "8f99e18eb775dbaf6460c95fa0b65312da9c746a",
     817                "reference": "f9adff3b87c03b12cc7e46a30a524648e497758f"
     818            },
     819            "dist": {
     820                "type": "zip",
     821                "url": "https://api.github.com/repos/phpstan/phpstan/zipball/f9adff3b87c03b12cc7e46a30a524648e497758f",
     822                "reference": "f9adff3b87c03b12cc7e46a30a524648e497758f",
    823823                "shasum": ""
    824824            },
     
    829829                "phpstan/phpstan-shim": "*"
    830830            },
    831             "time": "2025-02-10T08:25:21+00:00",
     831            "time": "2025-03-09T09:30:48+00:00",
    832832            "bin": [
    833833                "phpstan",
  • watermark-protect-images/trunk/vendor/composer/installed.php

    r3240632 r3255408  
    44        'pretty_version' => 'dev-develop',
    55        'version' => 'dev-develop',
    6         'reference' => 'e3d54acf34318ccc486eebc26924627f8a656db6',
     6        'reference' => '9dd6d8fa3d7dba50fda12d66773de318ce4642a8',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    7070            'pretty_version' => 'dev-develop',
    7171            'version' => 'dev-develop',
    72             'reference' => 'e3d54acf34318ccc486eebc26924627f8a656db6',
     72            'reference' => '9dd6d8fa3d7dba50fda12d66773de318ce4642a8',
    7373            'type' => 'wordpress-plugin',
    7474            'install_path' => __DIR__ . '/../../',
     
    113113        ),
    114114        'phpstan/phpstan' => array(
    115             'pretty_version' => '2.1.4',
    116             'version' => '2.1.4.0',
    117             'reference' => '8f99e18eb775dbaf6460c95fa0b65312da9c746a',
     115            'pretty_version' => '2.1.8',
     116            'version' => '2.1.8.0',
     117            'reference' => 'f9adff3b87c03b12cc7e46a30a524648e497758f',
    118118            'type' => 'library',
    119119            'install_path' => __DIR__ . '/../phpstan/phpstan',
Note: See TracChangeset for help on using the changeset viewer.